@ecan-bi/datav 1.4.64 → 1.4.65

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.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @ecan-bi/datav@1.4.64 */
1
+ /*! @ecan-bi/datav@1.4.65 */
2
2
  (function(Ur,ai){typeof exports=="object"&&typeof module<"u"?ai(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"],ai):(Ur=typeof globalThis<"u"?globalThis:Ur||self,ai(Ur["@ecan/bi-datav"]={},Ur.Vue,Ur["echarts/core"],Ur.ResizeDetector,Ur.AntDesignVue,null,null,Ur.LodashEs,Ur.Dayjs,Ur.Axios,Ur.Mitt,null,null,null,Ur["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,Ur["echarts/renderers"],Ur["echarts/charts"],Ur["echarts/components"],null,Ur.Echarts,null,null,Ur.Xlsx,Ur.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 Ur,ai,Ai,_i;"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(...p)=>{if(c.value||u(),!c.value)throw new Error("ECharts is not initialized yet.");return c.value[d].apply(c.value,p)}}function h(){const d=Object.create(null);return METHOD_NAMES.forEach(p=>{d[p]=f(p)}),d}return h()}function useAutoresize(c,u,f){let h=null;vue.watch([f,c,u],([d,p,v],m,g)=>{d&&p&&v&&(h=core$1.throttle(()=>{p.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 p=c.value;p&&(u.value?p.showLoading(d.value):p.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(),p=vue.shallowRef(),v=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),_=vue.computed(()=>p.value||c.option||Object.create(null)),J=vue.computed(()=>c.theme||vue.unref(v)||{}),re=vue.computed(()=>c.initOptions||vue.unref(m)||{}),Rn=vue.computed(()=>c.updateOptions||vue.unref(g)||{}),Bn=vue.computed(()=>omitOn(u));function w(Un){if(d.value||!h.value)return;const Wn=d.value=core$1.init(h.value,J.value,re.value);c.group&&(Wn.group=c.group);let tr=f;tr||(tr={},Object.keys(u).filter(Jn=>Jn.indexOf("on")===0&&Jn.length>2).forEach(Jn=>{const ir=Jn.charAt(2).toLowerCase()+Jn.slice(3);tr[ir]=u[Jn]})),Object.keys(tr).forEach(Jn=>{const ir=tr[Jn];ir&&(Jn.indexOf("zr:")===0?Wn.getZr().on(Jn.slice(3).toLowerCase(),ir):Wn.on(Jn.toLowerCase(),ir))});function Yn(){if(Wn&&!Wn.isDisposed())try{Wn.resize()}catch(Jn){if(Jn.message==="Cannot read property 'get' of undefined")return;throw Jn}}function Xn(){Wn.setOption(Un||_.value,Rn.value)}y.value?vue.nextTick(()=>{Yn(),Xn()}):Xn()}function vn(Un,Wn){c.manualUpdate&&(p.value=Un),d.value?d.value.setOption(Un,Wn||{}):w(Un)}function gn(){d.value&&(d.value.dispose(),d.value=void 0)}let Fn=null;vue.watch(x,Un=>{typeof Fn=="function"&&(Fn(),Fn=null),Un||(Fn=vue.watch(()=>c.option,Wn=>{Wn&&(d.value?d.value.setOption(Wn,Rn.value):w())},{deep:!0}))},{immediate:!0}),vue.watch([J,re],()=>{gn(),w()},{deep:!0}),vue.watchEffect(()=>{c.group&&d.value&&(d.value.group=c.group)});const zn=usePublicAPI(d,w);return useLoading(d,Pn,b),useAutoresize(d,y,h),vue.onMounted(()=>{c.option&&w()}),vue.onUnmounted(gn),{chart:d,root:h,setOption:vn,nonEventAttrs:Bn,...zn}},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,p;if(c=bound01(c,360),u=bound01(u,100),f=bound01(f,100),u===0)d=f,p=f,h=f;else{var v=f<.5?f*(1+u):f+u-f*u,m=2*f-v;h=hue2rgb(m,v,c+1/3),d=hue2rgb(m,v,c),p=hue2rgb(m,v,c-1/3)}return{r:h*255,g:d*255,b:p*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),p=0,v=h,m=h-d,g=h===0?0:m/h;if(h===d)p=0;else{switch(h){case c:p=(u-f)/m+(u<f?6:0);break;case u:p=(f-c)/m+2;break;case f:p=(c-u)/m+4;break}p/=6}return{h:p,s:g,v}}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,p=f*(1-u),v=f*(1-d*u),m=f*(1-(1-d)*u),g=h%6,y=[f,v,p,p,m,f][g],x=[m,f,f,v,p,p][g],Pn=[p,p,m,f,f,v][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,p=null,v=!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),v=!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),v=!0,m="hsv"):isValidCSSUnit(c.h)&&isValidCSSUnit(c.s)&&isValidCSSUnit(c.l)&&(h=convertToPercentage(c.s),p=convertToPercentage(c.l),u=hslToRgb(c.h,h,p),v=!0,m="hsl"),Object.prototype.hasOwnProperty.call(c,"a")&&(f=c.a)),f=boundAlpha(f),{ok:v,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 p=toHsv(h),v=toHex(inputToRGB({h:getHue(p,d,!0),s:getSaturation(p,d,!0),v:getValue(p,d,!0)}));f.push(v)}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,_=toHex(mix(inputToRGB(u.backgroundColor||"#141414"),inputToRGB(f[Pn]),b*100));return _}):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 p;return styleElements[d]!==void 0&&styleElements[d][f]!==void 0?p=styleElements[d][f]:(p=styleElements[d][f]=createStyleElement(),f==="prepend"?h.insertBefore(p,h.childNodes[0]):h.appendChild(p)),c.charCodeAt(0)===65279&&(c=c.substr(1,c.length)),p.styleSheet?p.styleSheet.cssText+=c:p.textContent+=c,p}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;
@@ -58,7 +58,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
58
58
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(c,u){if(c){if(typeof c=="string")return _arrayLikeToArray(c,u);var f=Object.prototype.toString.call(c).slice(8,-1);if(f==="Object"&&c.constructor&&(f=c.constructor.name),f==="Map"||f==="Set")return Array.from(c);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return _arrayLikeToArray(c,u)}}function _arrayLikeToArray(c,u){(u==null||u>c.length)&&(u=c.length);for(var f=0,h=new Array(u);f<u;f++)h[f]=c[f];return h}function _iterableToArrayLimit(c,u){var f=c==null?null:typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(f!=null){var h=[],d=!0,p=!1,v,m;try{for(f=f.call(c);!(d=(v=f.next()).done)&&(h.push(v.value),!(u&&h.length===u));d=!0);}catch(g){p=!0,m=g}finally{try{!d&&f.return!=null&&f.return()}finally{if(p)throw m}}return h}}function _arrayWithHoles(c){if(Array.isArray(c))return c}function _objectSpread$6(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$6(c,d,f[d])})}return c}function _defineProperty$6(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}function _objectWithoutProperties(c,u){if(c==null)return{};var f=_objectWithoutPropertiesLoose(c,u),h,d;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(c);for(d=0;d<p.length;d++)h=p[d],!(u.indexOf(h)>=0)&&Object.prototype.propertyIsEnumerable.call(c,h)&&(f[h]=c[h])}return f}function _objectWithoutPropertiesLoose(c,u){if(c==null)return{};var f={},h=Object.keys(c),d,p;for(p=0;p<h.length;p++)d=h[p],!(u.indexOf(d)>=0)&&(f[d]=c[d]);return f}setTwoToneColor("#1890ff");var Icon$1=function(u,f){var h,d=_objectSpread$6({},u,f.attrs),p=d.class,v=d.icon,m=d.spin,g=d.rotate,y=d.tabindex,x=d.twoToneColor,Pn=d.onClick,b=_objectWithoutProperties(d,_excluded),_=(h={anticon:!0},_defineProperty$6(h,"anticon-".concat(v.name),!!v.name),_defineProperty$6(h,p,p),h),J=m===""||m||v.name==="loading"?"anticon-spin":"",re=y;re===void 0&&Pn&&(re=-1,b.tabindex=re);var Rn=g?{msTransform:"rotate(".concat(g,"deg)"),transform:"rotate(".concat(g,"deg)")}:void 0,Bn=normalizeTwoToneColors(x),w=_slicedToArray(Bn,2),vn=w[0],gn=w[1];return vue.createVNode("span",_objectSpread$6({role:"img","aria-label":v.name},b,{onClick:Pn,class:_}),[vue.createVNode(VueIcon,{class:J,icon:v,primaryColor:vn,secondaryColor:gn,style:Rn},null)])};Icon$1.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Icon$1.displayName="AntdIcon",Icon$1.inheritAttrs=!1,Icon$1.getTwoToneColor=getTwoToneColor,Icon$1.setTwoToneColor=setTwoToneColor;const AntdIcon=Icon$1;var CalendarOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};const CalendarOutlinedSvg=CalendarOutlined$2;function _objectSpread$5(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$5(c,d,f[d])})}return c}function _defineProperty$5(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var CalendarOutlined=function(u,f){var h=_objectSpread$5({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$5({},h,{icon:CalendarOutlinedSvg}),null)};CalendarOutlined.displayName="CalendarOutlined",CalendarOutlined.inheritAttrs=!1;const CalendarOutlined$1=CalendarOutlined;var CloseCircleFilled$2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const CloseCircleFilledSvg=CloseCircleFilled$2;function _objectSpread$4(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$4(c,d,f[d])})}return c}function _defineProperty$4(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var CloseCircleFilled=function(u,f){var h=_objectSpread$4({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$4({},h,{icon:CloseCircleFilledSvg}),null)};CloseCircleFilled.displayName="CloseCircleFilled",CloseCircleFilled.inheritAttrs=!1;const CloseCircleFilled$1=CloseCircleFilled;var CloseOutlined$2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const CloseOutlinedSvg=CloseOutlined$2;function _objectSpread$3(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$3(c,d,f[d])})}return c}function _defineProperty$3(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var CloseOutlined=function(u,f){var h=_objectSpread$3({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$3({},h,{icon:CloseOutlinedSvg}),null)};CloseOutlined.displayName="CloseOutlined",CloseOutlined.inheritAttrs=!1;const CloseOutlined$1=CloseOutlined;var DownOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const DownOutlinedSvg=DownOutlined$2;function _objectSpread$2(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$2(c,d,f[d])})}return c}function _defineProperty$2(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var DownOutlined=function(u,f){var h=_objectSpread$2({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$2({},h,{icon:DownOutlinedSvg}),null)};DownOutlined.displayName="DownOutlined",DownOutlined.inheritAttrs=!1;const DownOutlined$1=DownOutlined;var LoadingOutlined$2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const LoadingOutlinedSvg=LoadingOutlined$2;function _objectSpread$1(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$1(c,d,f[d])})}return c}function _defineProperty$1(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var LoadingOutlined=function(u,f){var h=_objectSpread$1({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$1({},h,{icon:LoadingOutlinedSvg}),null)};LoadingOutlined.displayName="LoadingOutlined",LoadingOutlined.inheritAttrs=!1;const LoadingOutlined$1=LoadingOutlined;var RightOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const RightOutlinedSvg=RightOutlined$2;function _objectSpread(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(c,d,f[d])})}return c}function _defineProperty(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var RightOutlined=function(u,f){var h=_objectSpread({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread({},h,{icon:RightOutlinedSvg}),null)};RightOutlined.displayName="RightOutlined",RightOutlined.inheritAttrs=!1;const RightOutlined$1=RightOutlined,_sfc_main$y=vue.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:antDesignVue.Spin},setup(){return{indicator:vue.h(LoadingOutlined$1,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Spin_vue_vue_type_style_index_0_lang="",_export_sfc$1=(c,u)=>{const f=c.__vccOpts||c;for(const[h,d]of u)f[h]=d;return f},_hoisted_1$i={class:"spin-wrapper"};function _sfc_render$D(c,u,f,h,d,p){const v=vue.resolveComponent("a-spin");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$i,[c.spinning?(vue.openBlock(),vue.createBlock(v,{key:0,class:"spin",spinning:c.spinning,indicator:c.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):vue.renderSlot(c.$slots,"default",{key:1})])}const Spin=_export_sfc$1(_sfc_main$y,[["render",_sfc_render$D]]),_sfc_main$x=vue.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:antDesignVue.Skeleton}});function _sfc_render$C(c,u,f,h,d,p){const v=vue.resolveComponent("a-skeleton");return vue.openBlock(),vue.createBlock(v,{active:"",loading:c.loading},{default:vue.withCtx(()=>[vue.renderSlot(c.$slots,"default")]),_:3},8,["loading"])}const Skeleton=_export_sfc$1(_sfc_main$x,[["render",_sfc_render$C]]);(function(){try{if(typeof document<"u"){var c=document.createElement("style");c.appendChild(document.createTextNode('.vue3-marquee{display:flex!important;position:relative}.vue3-marquee.horizontal{overflow-x:hidden!important;flex-direction:row!important;width:100%;height:max-content}.vue3-marquee.vertical{overflow-y:hidden!important;flex-direction:column!important;height:100%;width:max-content}.vue3-marquee:hover>.marquee{animation-play-state:var(--pauseOnHover)}.vue3-marquee:active>.marquee{animation-play-state:var(--pauseOnClick)}.vue3-marquee>.marquee{flex:0 0 auto;min-width:var(--min-width);min-height:var(--min-height);z-index:1;animation:var(--orientation) var(--duration) linear var(--delay) var(--loops);animation-play-state:var(--pauseAnimation);animation-direction:var(--direction)}.vue3-marquee.horizontal>.marquee{display:flex;flex-direction:row;align-items:center}.vue3-marquee.vertical>.marquee{display:flex;flex-direction:column;align-items:center}@keyframes scrollX{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes scrollY{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.vue3-marquee>.overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.transparent-overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.overlay:before,.vue3-marquee>.overlay:after{content:"";position:absolute;z-index:2}.vue3-marquee.horizontal>.overlay:before,.vue3-marquee.horizontal>.overlay:after{background:linear-gradient(to right,var(--gradient-color));height:100%;width:var(--gradient-length)}.vue3-marquee.vertical>.overlay:before,.vue3-marquee.vertical>.overlay:after{background:linear-gradient(to bottom,var(--gradient-color));height:var(--gradient-length);width:100%}.vue3-marquee.horizontal>.overlay:after{transform:rotate(180deg)}.vue3-marquee.vertical>.overlay:after{transform:rotate(-180deg)}.vue3-marquee>.overlay:before{left:0;top:0}.vue3-marquee.horizontal>.overlay:after{right:0;top:0}.vue3-marquee.vertical>.overlay:after{left:0;bottom:0}')),document.head.appendChild(c)}}catch(u){console.error("vite-plugin-css-injected-by-js",u)}})();var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(c,u,f)=>u in c?__defProp(c,u,{enumerable:!0,configurable:!0,writable:!0,value:f}):c[u]=f,__spreadValues=(c,u)=>{for(var f in u||(u={}))__hasOwnProp.call(u,f)&&__defNormalProp(c,f,u[f]);if(__getOwnPropSymbols)for(var f of __getOwnPropSymbols(u))__propIsEnum.call(u,f)&&__defNormalProp(c,f,u[f]);return c},_export_sfc=(c,u)=>{const f=c.__vccOpts||c;for(const[h,d]of u)f[h]=d;return f};const _sfc_main$w=vue.defineComponent({props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:Array,default:[255,255,255]},gradientWidth:{type:String},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1},animateOnOverflowOnly:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume","onOverflowDetected","onOverflowCleared"],setup(c,{emit:u}){const f=vue.ref(0),h=vue.ref("100%"),d=vue.ref("100%"),p=vue.ref(0),v=vue.ref(!1),m=vue.ref(!1),g=vue.ref(0),y=vue.ref(0),x=vue.ref(0),Pn=vue.ref(0),b=vue.ref(!1),_=vue.ref(!1),J=vue.ref(0),re=vue.ref(null),Rn=vue.ref("200px"),Bn=vue.ref(!1),w=vue.ref(null),vn=vue.ref(null),gn=async()=>{await Fn(),p.value++},Fn=async()=>{c.vertical&&(v.value=!0),setInterval(()=>{if(h.value="0%",d.value="0%",w.value!==null&&vn.value!==null&&w.value&&vn.value)if(c.vertical&&"clientHeight"in w.value&&"clientHeight"in vn.value){Pn.value=w.value.clientHeight,x.value=vn.value.clientHeight;const Gn=Math.ceil(x.value/Pn.value);return f.value=isFinite(Gn)?Gn:0,v.value=!1,f.value}else if(!c.vertical&&"clientWidth"in w.value&&"clientWidth"in vn.value){if(y.value=w.value.clientWidth,g.value=vn.value.clientWidth,c.animateOnOverflowOnly)return y.value<g.value?(m.value=!0,u("onOverflowDetected")):(m.value=!1,u("onOverflowCleared")),0;const Gn=Math.ceil(g.value/y.value);return f.value=isFinite(Gn)?Gn:0,f.value}else return h.value="100%",d.value="100%",0;else return h.value="100%",d.value="100%",0},100)};vue.watch(y,async()=>{c.clone&&gn()}),vue.watch(g,async()=>{(c.clone||c.animateOnOverflowOnly)&&gn()}),vue.watch(()=>c.pause,(Gn,Kn)=>{Gn!==Kn&&u(Gn?"onResume":"onPause")});const zn=()=>{c.pauseOnHover&&(u("onPause"),b.value=!0)},Un=()=>{c.pauseOnHover&&(u("onResume"),b.value=!1)},Wn=()=>{c.pauseOnClick&&(u("onPause"),_.value=!0)},tr=()=>{c.pauseOnClick&&(u("onResume"),_.value=!1)},Yn=vue.computed(()=>c.pause||c.vertical&&v.value||c.animateOnOverflowOnly&&m.value?"paused":"running"),Xn=vue.computed(()=>c.pauseOnHover&&(b.value||_.value)||!c.pauseOnHover&&Yn.value==="paused"?"paused":"running"),Jn=vue.computed(()=>c.pauseOnHover&&b.value||c.pauseOnClick&&_.value||!c.pauseOnHover&&Yn.value==="paused"?"paused":"running"),ir=vue.computed(()=>{const Gn={"--duration":`${c.duration}s`,"--delay":`${c.delay}s`,"--direction":`${c.direction}`,"--pauseOnHover":`${Xn.value}`,"--pauseOnClick":`${Jn.value}`,"--pauseAnimation":`${Yn.value}`,"--loops":`${c.loop===0?"infinite":c.loop}`,"--gradient-color":`rgba(${c.gradientColor[0]}, ${c.gradientColor[1]}, ${c.gradientColor[2]}, 1), rgba(${c.gradientColor[0]}, ${c.gradientColor[1]}, ${c.gradientColor[2]}, 0)`,"--gradient-length":`${Rn.value}`,"--min-width":`${h.value}`,"--min-height":`${d.value}`},Kn={"--orientation":"scrollX",orientation:"horizontal"};return c.vertical&&(Kn["--orientation"]="scrollY"),__spreadValues(__spreadValues({},Gn),Kn)}),sr=vue.computed(()=>!!c.gradient),Zn=async()=>{c.vertical?(d.value="100%",h.value="auto",c.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(d.value="auto",c.animateOnOverflowOnly?h.value="auto":h.value="100%"),c.gradient&&(c.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),Rn.value=c.gradientWidth):c.gradientLength&&(Rn.value=c.gradientLength)),(c.clone||c.animateOnOverflowOnly)&&(await Fn(),gn()),Bn.value=!0};return vue.onMounted(async()=>{Zn(),re.value=setInterval(()=>{J.value++,c.loop!==0&&J.value===c.loop&&(u("onComplete"),clearInterval(re.value)),u("onLoopComplete")},c.duration*1e3)}),vue.onBeforeUnmount(()=>{clearInterval(re.value)}),{ready:Bn,contentWidth:y,containerWidth:g,contentHeight:Pn,containerHeight:x,loopCounter:J,loopInterval:re,mouseOverMarquee:b,mouseDownMarquee:_,minWidth:h,minHeight:d,animateOnOverflowPause:m,marqueeContent:w,marqueeOverlayContainer:vn,componentKey:p,showGradient:sr,cloneAmount:f,ForcesUpdate:gn,checkForClone:Fn,setupMarquee:Zn,getCurrentStyle:ir,hoverStarted:zn,hoverEnded:Un,mouseDown:Wn,mouseUp:tr}}}),_hoisted_1$h={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},_hoisted_2$8={class:"marquee",ref:"marqueeContent"},_hoisted_3$4={key:1,"aria-hidden":!0,class:"marquee"};function _sfc_render$B(c,u,f,h,d,p){return c.ready?(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vue3-marquee",{vertical:c.vertical,horizontal:!c.vertical}]),style:vue.normalizeStyle(c.getCurrentStyle),key:c.componentKey,onMouseenter:u[0]||(u[0]=(...v)=>c.hoverStarted&&c.hoverStarted(...v)),onMouseleave:u[1]||(u[1]=(...v)=>c.hoverEnded&&c.hoverEnded(...v)),onMousedown:u[2]||(u[2]=(...v)=>c.mouseDown&&c.mouseDown(...v)),onMouseup:u[3]||(u[3]=(...v)=>c.mouseUp&&c.mouseUp(...v))},[vue.createElementVNode("div",_hoisted_1$h,null,512),c.showGradient?(vue.openBlock(),vue.createElementBlock("div",{key:0,"aria-hidden":!0,class:vue.normalizeClass(["overlay",{vertical:c.vertical,horizontal:!c.vertical}])},null,2)):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_2$8,[vue.renderSlot(c.$slots,"default")],512),!c.animateOnOverflowOnly||c.animateOnOverflowOnly&&!c.animateOnOverflowPause?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$4,[vue.renderSlot(c.$slots,"default")])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.cloneAmount,v=>(vue.openBlock(),vue.createElementBlock("div",{"aria-hidden":!0,class:"marquee cloned",key:v},[vue.renderSlot(c.$slots,"default")]))),128))],38)):vue.createCommentVNode("",!0)}var Vue3Marquee=_export_sfc(_sfc_main$w,[["render",_sfc_render$B]]);const _sfc_main$v=vue.defineComponent({name:"SeamScroll",components:{Vue3Marquee},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},vertical:{type:Boolean,default:!0},step:{type:Number,default:1},wrapStyle:{type:Object,default:()=>({})},marqueeStyle:{type:Object,default:()=>({})}},setup(c){return{isAutoScroll:vue.ref(c.visible)}}}),MarqueeScroll_vue_vue_type_style_index_0_lang="";function _sfc_render$A(c,u,f,h,d,p){const v=vue.resolveComponent("Vue3Marquee");return c.isAutoScroll?(vue.openBlock(),vue.createBlock(v,{key:0,class:"vue-marquee",style:vue.normalizeStyle({...c.marqueeStyle,width:"100%"}),duration:c.step,vertical:c.vertical,pauseOnHover:!0},{default:vue.withCtx(()=>[vue.renderSlot(c.$slots,"default")]),_:3},8,["style","duration","vertical"])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"list-wrap",style:vue.normalizeStyle(c.wrapStyle)},[vue.renderSlot(c.$slots,"default")],4))}const MarqueeScroll=_export_sfc$1(_sfc_main$v,[["render",_sfc_render$A]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const withInstall$1=(c,u)=>{if(c.install=f=>{for(const h of[c,...Object.values(u??{})])f.component(h.name,h)},u)for(const[f,h]of Object.entries(u))c[f]=h;return c},props={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestType:0,requestMethod:"get",dataSetParam:{},requestHeaders:"{}",isOpenRequestTimer:!1,isViewRedrawing:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1,requestParamsMode:"1",customRequestParams:"{}",componentDoc:null},transformToComponentProps=c=>{const u={};if(typeof c=="object"&&c!=null)for(const f in c){const h=c[f];u[f]={type:h==null?void 0:h.constructor,default:h}}return u},pageConfig={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[]},pageConfigComponentProps=transformToComponentProps(pageConfig),EVENT_BUS="EVENT_BUS",GLOBAL_CONFIG="GLOBAL_CONFIG",GLOBAL_MODEL="GLOBAL_MODEL",REQUEST_MODEL="REQUEST_MODEL",GLOBAL_TOKEN="GLOBAL_TOKEN",REFRESH_PAGE="REFRESH_PAGE",MODAL_MODEL="MODAL_MODEL",LOADED_DATA="LOADED_DATA",ZOOM_FONT_SIZE=18,CONTEXT="ygt",INDICATOR_URL=((Ur=window==null?void 0:window.config)==null?void 0:Ur.indicatorURL)||"";(ai=window==null?void 0:window.config)!=null&&ai.uploadPath;const BASE_URL=((Ai=window==null?void 0:window.config)==null?void 0:Ai.routerBaseURL)||"./",ERD_URL=((_i=window==null?void 0:window.config)==null?void 0:_i.erdURL)||"",MODEL_KEY_LIST=["table","bar","combograph","line","pie","radar","scatter","list","circulate"];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 p=O[O.length-1];if(!p)return[];const v=[];for(;p;){const m=v[0];m&&m.vnode===p?m.recurseCount++:v.push({vnode:p,recurseCount:0});const g=p.component&&p.component.parent;p=g&&g.vnode}return v}();if(h)$(h,f,11,[c+u.join(""),f&&f.proxy,d.map(({vnode:p})=>`at <${oe(f,p.type)}>`).join(`
59
59
  `),d]);else{const p=[`[Vue warn]: ${c}`,...u];d.length&&p.push(`
60
60
  `,...function(v){const m=[];return v.forEach((g,y)=>{m.push(...y===0?[]:[`
61
- `],...function({vnode:x,recurseCount:Pn}){const b=Pn>0?`... (${Pn} recursive calls)`:"",_=!!x.component&&x.component.parent==null,J=` at <${oe(x.component,x.type,_)}`,re=">"+b;return x.props?[J,...L(x.props),re]:[J+re]}(g))}),m}(d)),console.warn(...p)}}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(p){(function(v,m,g,y=!0){const x=m?m.vnode:null;if(m){let Pn=m.parent;const b=m.proxy,_=process.env.NODE_ENV!=="production"?N[g]:g;for(;Pn;){const re=Pn.ec;if(re){for(let Rn=0;Rn<re.length;Rn++)if(re[Rn](v,b,_)===!1)return}Pn=Pn.parent}const J=m.appContext.config.errorHandler;if(J)return void $(J,null,10,[v,b,_])}(function(Pn,b,_,J=!0){if(process.env.NODE_ENV!=="production"){const Rn=N[b];if(_&&(re=_,O.push(re)),C("Unhandled error"+(Rn?` during execution of ${Rn}`:"")),_&&O.pop(),J)throw Pn;console.error(Pn)}else console.error(Pn);var re})(v,g,x,y)})(p,u,f)}return d}let k=!1,M=!1;const D=[];let E=0;const I=[];let F=null,V=0;const z$1=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,p=D[d],v=G(p);v<u||v===u&&p.pre?f=d+1:h=d}return f}(c.id),0,c),U())}function U(){k||M||(M=!0,z$1.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,p)=>G(d)-G(p)),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 p of h){const v=K(p.type);H.has(v)||(v!==f.initialDef&&q(v,u),H.add(v)),p.appContext.propsCache.delete(p.type),p.appContext.emitsCache.delete(p.type),p.appContext.optionsCache.delete(p.type),p.ceReload?(H.add(v),p.ceReload(u.styles),H.delete(v)):p.parent?R(p.parent.update):p.appContext.reload?p.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}d=()=>{for(const p of h)H.delete(K(p.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=p=>{for(const v in p)if(p[v]===u)return v};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",p="minute",v="hour",m="day",g="week",y="month",x="quarter",Pn="year",b="date",_="Invalid Date",J=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,re=/\[([^\]]+)]|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,Rn={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(Jn){var ir=["th","st","nd","rd"],sr=Jn%100;return"["+Jn+(ir[(sr-20)%10]||ir[sr]||ir[0])+"]"}},Bn=function(Jn,ir,sr){var Zn=String(Jn);return!Zn||Zn.length>=ir?Jn:""+Array(ir+1-Zn.length).join(sr)+Jn},w={s:Bn,z:function(Jn){var ir=-Jn.utcOffset(),sr=Math.abs(ir),Zn=Math.floor(sr/60),Gn=sr%60;return(ir<=0?"+":"-")+Bn(Zn,2,"0")+":"+Bn(Gn,2,"0")},m:function Jn(ir,sr){if(ir.date()<sr.date())return-Jn(sr,ir);var Zn=12*(sr.year()-ir.year())+(sr.month()-ir.month()),Gn=ir.clone().add(Zn,y),Kn=sr-Gn<0,Vn=ir.clone().add(Zn+(Kn?-1:1),y);return+(-(Zn+(sr-Gn)/(Kn?Gn-Vn:Vn-Gn))||0)},a:function(Jn){return Jn<0?Math.ceil(Jn)||0:Math.floor(Jn)},p:function(Jn){return{M:y,y:Pn,w:g,d:m,D:b,h:v,m:p,s:d,ms:h,Q:x}[Jn]||String(Jn||"").toLowerCase().replace(/s$/,"")},u:function(Jn){return Jn===void 0}},vn="en",gn={};gn[vn]=Rn;var Fn="$isDayjsObject",zn=function(Jn){return Jn instanceof Yn||!(!Jn||!Jn[Fn])},Un=function Jn(ir,sr,Zn){var Gn;if(!ir)return vn;if(typeof ir=="string"){var Kn=ir.toLowerCase();gn[Kn]&&(Gn=Kn),sr&&(gn[Kn]=sr,Gn=Kn);var Vn=ir.split("-");if(!Gn&&Vn.length>1)return Jn(Vn[0])}else{var qn=ir.name;gn[qn]=ir,Gn=qn}return!Zn&&Gn&&(vn=Gn),Gn||!Zn&&vn},Wn=function(Jn,ir){if(zn(Jn))return Jn.clone();var sr=typeof ir=="object"?ir:{};return sr.date=Jn,sr.args=arguments,new Yn(sr)},tr=w;tr.l=Un,tr.i=zn,tr.w=function(Jn,ir){return Wn(Jn,{locale:ir.$L,utc:ir.$u,x:ir.$x,$offset:ir.$offset})};var Yn=function(){function Jn(sr){this.$L=Un(sr.locale,null,!0),this.parse(sr),this.$x=this.$x||sr.x||{},this[Fn]=!0}var ir=Jn.prototype;return ir.parse=function(sr){this.$d=function(Zn){var Gn=Zn.date,Kn=Zn.utc;if(Gn===null)return new Date(NaN);if(tr.u(Gn))return new Date;if(Gn instanceof Date)return new Date(Gn);if(typeof Gn=="string"&&!/Z$/i.test(Gn)){var Vn=Gn.match(J);if(Vn){var qn=Vn[2]-1||0,nr=(Vn[7]||"0").substring(0,3);return Kn?new Date(Date.UTC(Vn[1],qn,Vn[3]||1,Vn[4]||0,Vn[5]||0,Vn[6]||0,nr)):new Date(Vn[1],qn,Vn[3]||1,Vn[4]||0,Vn[5]||0,Vn[6]||0,nr)}}return new Date(Gn)}(sr),this.init()},ir.init=function(){var sr=this.$d;this.$y=sr.getFullYear(),this.$M=sr.getMonth(),this.$D=sr.getDate(),this.$W=sr.getDay(),this.$H=sr.getHours(),this.$m=sr.getMinutes(),this.$s=sr.getSeconds(),this.$ms=sr.getMilliseconds()},ir.$utils=function(){return tr},ir.isValid=function(){return this.$d.toString()!==_},ir.isSame=function(sr,Zn){var Gn=Wn(sr);return this.startOf(Zn)<=Gn&&Gn<=this.endOf(Zn)},ir.isAfter=function(sr,Zn){return Wn(sr)<this.startOf(Zn)},ir.isBefore=function(sr,Zn){return this.endOf(Zn)<Wn(sr)},ir.$g=function(sr,Zn,Gn){return tr.u(sr)?this[Zn]:this.set(Gn,sr)},ir.unix=function(){return Math.floor(this.valueOf()/1e3)},ir.valueOf=function(){return this.$d.getTime()},ir.startOf=function(sr,Zn){var Gn=this,Kn=!!tr.u(Zn)||Zn,Vn=tr.p(sr),qn=function(ur,hr){var or=tr.w(Gn.$u?Date.UTC(Gn.$y,hr,ur):new Date(Gn.$y,hr,ur),Gn);return Kn?or:or.endOf(m)},nr=function(ur,hr){return tr.w(Gn.toDate()[ur].apply(Gn.toDate("s"),(Kn?[0,0,0,0]:[23,59,59,999]).slice(hr)),Gn)},Hn=this.$W,lr=this.$M,cr=this.$D,Qn="set"+(this.$u?"UTC":"");switch(Vn){case Pn:return Kn?qn(1,0):qn(31,11);case y:return Kn?qn(1,lr):qn(0,lr+1);case g:var ar=this.$locale().weekStart||0,er=(Hn<ar?Hn+7:Hn)-ar;return qn(Kn?cr-er:cr+(6-er),lr);case m:case b:return nr(Qn+"Hours",0);case v:return nr(Qn+"Minutes",1);case p:return nr(Qn+"Seconds",2);case d:return nr(Qn+"Milliseconds",3);default:return this.clone()}},ir.endOf=function(sr){return this.startOf(sr,!1)},ir.$set=function(sr,Zn){var Gn,Kn=tr.p(sr),Vn="set"+(this.$u?"UTC":""),qn=(Gn={},Gn[m]=Vn+"Date",Gn[b]=Vn+"Date",Gn[y]=Vn+"Month",Gn[Pn]=Vn+"FullYear",Gn[v]=Vn+"Hours",Gn[p]=Vn+"Minutes",Gn[d]=Vn+"Seconds",Gn[h]=Vn+"Milliseconds",Gn)[Kn],nr=Kn===m?this.$D+(Zn-this.$W):Zn;if(Kn===y||Kn===Pn){var Hn=this.clone().set(b,1);Hn.$d[qn](nr),Hn.init(),this.$d=Hn.set(b,Math.min(this.$D,Hn.daysInMonth())).$d}else qn&&this.$d[qn](nr);return this.init(),this},ir.set=function(sr,Zn){return this.clone().$set(sr,Zn)},ir.get=function(sr){return this[tr.p(sr)]()},ir.add=function(sr,Zn){var Gn,Kn=this;sr=Number(sr);var Vn=tr.p(Zn),qn=function(lr){var cr=Wn(Kn);return tr.w(cr.date(cr.date()+Math.round(lr*sr)),Kn)};if(Vn===y)return this.set(y,this.$M+sr);if(Vn===Pn)return this.set(Pn,this.$y+sr);if(Vn===m)return qn(1);if(Vn===g)return qn(7);var nr=(Gn={},Gn[p]=u,Gn[v]=f,Gn[d]=c,Gn)[Vn]||1,Hn=this.$d.getTime()+sr*nr;return tr.w(Hn,this)},ir.subtract=function(sr,Zn){return this.add(-1*sr,Zn)},ir.format=function(sr){var Zn=this,Gn=this.$locale();if(!this.isValid())return Gn.invalidDate||_;var Kn=sr||"YYYY-MM-DDTHH:mm:ssZ",Vn=tr.z(this),qn=this.$H,nr=this.$m,Hn=this.$M,lr=Gn.weekdays,cr=Gn.months,Qn=Gn.meridiem,ar=function(hr,or,mr,dr){return hr&&(hr[or]||hr(Zn,Kn))||mr[or].slice(0,dr)},er=function(hr){return tr.s(qn%12||12,hr,"0")},ur=Qn||function(hr,or,mr){var dr=hr<12?"AM":"PM";return mr?dr.toLowerCase():dr};return Kn.replace(re,function(hr,or){return or||function(mr){switch(mr){case"YY":return String(Zn.$y).slice(-2);case"YYYY":return tr.s(Zn.$y,4,"0");case"M":return Hn+1;case"MM":return tr.s(Hn+1,2,"0");case"MMM":return ar(Gn.monthsShort,Hn,cr,3);case"MMMM":return ar(cr,Hn);case"D":return Zn.$D;case"DD":return tr.s(Zn.$D,2,"0");case"d":return String(Zn.$W);case"dd":return ar(Gn.weekdaysMin,Zn.$W,lr,2);case"ddd":return ar(Gn.weekdaysShort,Zn.$W,lr,3);case"dddd":return lr[Zn.$W];case"H":return String(qn);case"HH":return tr.s(qn,2,"0");case"h":return er(1);case"hh":return er(2);case"a":return ur(qn,nr,!0);case"A":return ur(qn,nr,!1);case"m":return String(nr);case"mm":return tr.s(nr,2,"0");case"s":return String(Zn.$s);case"ss":return tr.s(Zn.$s,2,"0");case"SSS":return tr.s(Zn.$ms,3,"0");case"Z":return Vn}return null}(hr)||Vn.replace(":","")})},ir.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ir.diff=function(sr,Zn,Gn){var Kn,Vn=this,qn=tr.p(Zn),nr=Wn(sr),Hn=(nr.utcOffset()-this.utcOffset())*u,lr=this-nr,cr=function(){return tr.m(Vn,nr)};switch(qn){case Pn:Kn=cr()/12;break;case y:Kn=cr();break;case x:Kn=cr()/3;break;case g:Kn=(lr-Hn)/6048e5;break;case m:Kn=(lr-Hn)/864e5;break;case v:Kn=lr/f;break;case p:Kn=lr/u;break;case d:Kn=lr/c;break;default:Kn=lr}return Gn?Kn:tr.a(Kn)},ir.daysInMonth=function(){return this.endOf(y).$D},ir.$locale=function(){return gn[this.$L]},ir.locale=function(sr,Zn){if(!sr)return this.$L;var Gn=this.clone(),Kn=Un(sr,Zn,!0);return Kn&&(Gn.$L=Kn),Gn},ir.clone=function(){return tr.w(this.$d,this)},ir.toDate=function(){return new Date(this.valueOf())},ir.toJSON=function(){return this.isValid()?this.toISOString():null},ir.toISOString=function(){return this.$d.toISOString()},ir.toString=function(){return this.$d.toUTCString()},Jn}(),Xn=Yn.prototype;return Wn.prototype=Xn,[["$ms",h],["$s",d],["$m",p],["$H",v],["$W",m],["$M",y],["$y",Pn],["$D",b]].forEach(function(Jn){Xn[Jn[1]]=function(ir){return this.$g(ir,Jn[0],Jn[1])}}),Wn.extend=function(Jn,ir){return Jn.$i||(Jn(ir,Yn,Wn),Jn.$i=!0),Wn},Wn.locale=Un,Wn.isDayjs=zn,Wn.unix=function(Jn){return Wn(1e3*Jn)},Wn.en=gn[vn],Wn.Ls=gn,Wn.p={},Wn}()),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 p=me.call(u);return d&&(f?u[be]=h:delete u[be]),p}(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,p,v){p=="__proto__"&&Ue?Ue(d,p,{configurable:!0,enumerable:!0,value:v,writable:!0}):d[p]=v}(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),p=!f&&!h&&!d&&ft(c),v=f||h||d||p,m=v?function(x,Pn){for(var b=-1,_=Array(x);++b<x;)_[b]=Pn(b);return _}(c.length,String):[],g=m.length;for(var y in c)!pt.call(c,y)||v&&(y=="length"||d&&(y=="offset"||y=="parent")||p&&(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,p=0,v=[];++h<d;){var m=u[h];f(m,h,u)&&(v[p++]=m)}return v}(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(p,v){for(var m=-1,g=v.length,y=p.length;++m<g;)p[y+m]=v[m];return p}(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,p,v,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((v=c).buffer),new v.constructor(m,v.byteOffset,v.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(p=new(d=c).constructor(d.source,Xt.exec(d))).lastIndex=d.lastIndex,p;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,p){var v;if(v!==void 0)return v;if(!Ae(c))return c;var m=Se(c);if(m)v=function(b){var _=b.length,J=new b.constructor(_);return _&&typeof b[0]=="string"&&qt.call(b,"index")&&(J.index=b.index,J.input=b.input),J}(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)v=y?{}:function(b){return typeof b.constructor!="function"||qe(b)?{}:Re(Tt(b))}(c);else{if(!un[g])return d?c:{};v=tn(c,g)}}p||(p=new Nt);var x=p.get(c);if(x)return x;p.set(c,v),an(c)?c.forEach(function(b){v.add(dn(b,u,f,b,c,p))}):on(c)&&c.forEach(function(b,_){v.set(_,dn(b,u,f,_,c,p))});var Pn=m?void 0:Dt(c);return function(b,_){for(var J=-1,re=b==null?0:b.length;++J<re&&_(b[J],J,b)!==!1;);}(Pn||c,function(b,_){Pn&&(b=c[_=b]),He(v,_,dn(b,u,f,_,c,p))}),v}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 pn=(c,u)=>{const f=Object.assign({dayjs:ce},u);let h="";const d=[];for(const m in f)h+=`${m},`,d.push(f[m]);h=h.replace(/,$/,"");const p=`function (${h}){return ${c}}`;let v;try{v=Function(`"use strict";return (${p})`)()(...d)}catch{return c}return v},hn=(c="",{textData:u,codeData:f}={},{useNewline:h=!1,useSpace:d=!1}={})=>{const p=window.config||{},v=Object.assign(Object.assign({},p),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 _=0;_<b.length;_++){const J=b[_],re=v[J];re!=null&&typeof re!="function"&&(x=x.replace(J,re))}(/\(.*\)/g.test(x)||/[+/\\*]/g.test(x))&&(x=pn(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,"&nbsp;&nbsp;")),c=c.replace(/Qfw\((.*?)\)/,(g,y)=>u!=null&&u.Qfw?u==null?void 0:u.Qfw(y):y)},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:p=""}=c;if(d===5&&(f!=null&&f.length)&&(h!=null&&h.length)&&p){const v=f[0].split("-");(v==null?void 0:v.length)>1&&v[0]==="rangeValue"&&(c.calcWays=((m,g={})=>{const{around:y,unit:x,id:Pn}=m;let b="";const{pageMode:_="",componentList:J=[]}=(g==null?void 0:g.graphicConfig)||{};let re=null,Rn=null;if(_==="design"){const Bn=J==null?void 0:J.find(Wn=>Wn.id===Pn);if(!Bn)return[];const{interval:w,intervalUnit:vn,startTime:gn,endTime:Fn,operate:zn,useCurrentTime:Un}=Bn||{};if(Un&&(re=ce().subtract(w,vn),Rn=ce()),gn&&(re=ce(gn)),Fn&&(Rn=ce(Fn)),zn){const{type:Wn,value:tr,mode:Yn}=zn;switch(Wn){case"add":re=re&&re.add(tr,Yn),Rn=Rn&&Rn.add(tr,Yn);break;case"minus":re=re&&re.subtract(tr,Yn),Rn=Rn&&Rn.subtract(tr,Yn)}}}else{const Bn=An(Pn)||{};j(Bn.startTime)&&(re=ce(j(Bn.startTime))),j(Bn.endTime)&&(Rn=ce(j(Bn.endTime)))}return re&&Rn&&(b=`${y==="before"?"-":""}${Rn.diff(re,x.toLowerCase())+1}`),b?[b]:[]})({around:v[1],unit:h[0],id:p})),delete c.radioValue}if(mn(c,"dataType")){if(c.fieldType==="DATE"&&(c.label=c.fieldName),c.dataType==="component")if(c.fieldValue==="PARENT"){let v=c.modelKey;v&&c.prop&&(v+=`-${c.prop}`),c.fieldValue="${"+v+"}"}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(p=>p.join&&p.conditions);h.conditions.forEach((p,v)=>{jn(p,u);const m={};if(v<h.conditions.length-1&&(m.join=h.join),d)f.push(Object.assign(Object.assign({},m),p));else if(p.join&&p.conditions){const g=u?"sqlConditions":"conditions";f.push(Object.assign({[g]:_n([p],u)},m))}else f.push(Object.assign(Object.assign({},m),p))})}else jn(h,u),f.push(h)}),f},On=(c={},u)=>{if(c!=null&&c.sortCpnts&&u){const gn=kn(c);gn&&(u.sort=gn)}const{label:f,name:h,location:d,show:p,indexCode:v,indexCodeNum:m,calcType:g="COLUMN",builtInFormula:y,builtInValueSource:x,builtInCalcWay:Pn,formula:b,conditions:_,aggregate:J,distinct:re,dimByCount:Rn,dataTo:Bn}=c;let w;if(_&&(w=_n(_)),g==="COMPONENT"){const gn={};return Nn(gn,x),{label:f.trim(),columnName:h,show:p,calcType:g,componentAlias:Pn,componentValue:gn.fieldValue||null}}const vn={label:f.trim(),columnName:h,location:d,show:p,calcType:Bn==="1"?"VIEW":g,hrpIndexCode:v,hrpIndexCodeNum:m,aggregate:J,builtInFormula:y,builtInValueSource:x,formula:b,conditions:w};if(y!=="DATE_OFFSET")return h==="the_count"&&(vn.calcType="AGGREGATE",vn.distinct=!!re,vn.typeGuid=Rn),Object.assign(Object.assign({},vn),{builtInCalcWay:Pn});{const gn=Pn.split("-");if((gn==null?void 0:gn.length)===3){let Fn=gn[0];return gn[2]==="before"&&gn[0]!=="0"&&(Fn=`-${gn[0]}`),Object.assign(Object.assign({},vn),{calcWays:[Fn],dateCalcTypes:[gn[1]]})}}},Cn=c=>{if(!c)return[];const u=fn((c==null?void 0:c.controlList)||[]).filter(J=>J.conditionKey!=="parentCode"),{classificationList:f=[],rowHeaderList:h=[],dimensionList:d=[],seriesList:p=[],leftAxisList:v=[],rightAxisList:m=[],queryColumnList:g=[],indicators:y=[]}=c;Tn(u);const x=[...f,...h,...d,...p,...v,...m,...g,...y],Pn=[];for(const J of x){const re=bn((J==null?void 0:J.conditions)||[]);if(re!=null&&re.length){const Rn=re.filter(Bn=>(Bn==null?void 0:Bn.dataType)==="component").map(Bn=>{const w={};return Bn!=null&&Bn.dateFormat&&(w.format=Bn.dateFormat),Bn.fieldValue==="PARENT"&&(w.id="PARENT",w.keyName=Bn.modelKey,w.modelKey=Bn.modelKey,w.prop=Bn.prop),Object.assign({conditionKey:Bn.fieldName,conditionLabel:Bn.fieldName,conditionName:Bn.fieldName,conditionValueType:Bn.fieldType,id:Bn.componentId,keyName:Bn.fieldValue,rule:Bn.rule,notGlobal:!0,indexCode:Bn.indexCode,typeGuid:Bn.typeGuid,indexCodeNum:Bn.indexCodeNum},w)});if(Rn!=null&&Rn.length)for(const Bn of Rn)Pn.find(w=>w.keyName===Bn.keyName)||Pn.push(Bn)}}const b=Pn.length,_=u;for(let J=0;J<b;J++){const re=Pn[J];if((re==null?void 0:re.conditionKey)==="parentCode")continue;const{id:Rn,keyName:Bn,prop:w,format:vn,modelKey:gn,dataType:Fn="component",customValue:zn}=re,Un=Ln(re);Nn(Un,Rn,{prop:w,dateFormat:vn,modelKey:gn,keyName:Bn}),Fn===""&&(Un.fieldValue=zn||""),_.push(Un)}for(let J=_.length-1;J>=0;J--){const re=_[J];re.globalCondition||bn(_).find(Rn=>Rn.alias===re.alias&&Rn.globalCondition)&&_.splice(J,1)}return _};function Ln(c){const{id:u,keyName:f,conditionLabel:h,conditionKey:d,conditionValueType:p,prop:v,rule:m="NONE",notGlobal:g=!1,indexCode:y,typeGuid:x,indexCodeNum:Pn,dataType:b="component"}=c;let _=f||u;_&&v&&(_+=`-${v}`);let J=m;return J==="NONE"&&(J=["startTime","endTime"].includes(v)?v==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":f!=null&&f.includes("startTime")?v==="GREATER_EQUAL":f!=null&&f.includes("endTime")?v==="LESS_EQUAL":"EQUAL"),u==="PARENT"&&(_=c.modelKey,_&&v&&(_+=`-${v}`),J=m),{rule:J,label:h,fieldName:d,fieldValue:"",valueType:p,alias:_,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:p,format:v,dataType:m="component",customValue:g}=u,y=Ln(u);Nn(y,f,{prop:d,dateFormat:v,modelKey:p,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:p="",keyName:v="",operateValue:m,operateMode:g,operateType:y}=f||{},x=p||v;if(u==="PARENT"&&x&&h){const w=window.config.record;let vn=h,gn=d;const Fn=h.match(/\{(.+?)\}/g);if(Fn!=null&&Fn.length){const zn=Fn[0].slice(1,-1).trim();vn=h.replace(Fn[0],""),gn=zn,c.dateFormat=gn}if(w&&w[x]){const zn=j(w[x][vn]);ce.isDayjs(zn)?c.fieldValue=zn.format(gn||"YYYY-MM-DD"):c.fieldValue=zn}return}const Pn=An(u)||{},{value:b,format:_="YYYY-MM-DD",type:J="",useCurrentTime:re,RECORD:Rn}=Pn||{},Bn=d||_;if(yn(Pn.type,"date")){let w;if(w=re?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(Bn),c.dateFormat=Bn}else if(J==="ecanRangePicker"){let w=h;if(!h){const gn=v&&v.split("-");gn!=null&&gn.length&&(w=gn[gn.length-1])}if(!w)return;let vn=null;if(j(Pn[w])&&(vn=ce(j(Pn[w]))),m&&g&&y){if(m==="rangeValue"){if(Pn.startTime&&Pn.endTime){const gn=j(Pn.endTime).diff(j(Pn.startTime),g)+1;switch(y){case"add":vn=vn&&vn.add(gn,g);break;case"minus":vn=vn&&vn.subtract(gn,g)}}}else if(!isNaN(+m))switch(y){case"add":vn=vn&&vn.add(m,g);break;case"minus":vn=vn&&vn.subtract(m,g)}}if(vn&&(c.fieldValue=vn==null?void 0:vn.format(Bn)),w==="rangeValue"&&Pn.startTime&&Pn.endTime){const gn=function(Fn){const zn=Fn.split("-");let Un="";if(zn!=null&&zn.length)switch(zn[zn.length-1]){case"YYYY":Un="year";break;case"MM":Un="month";break;case"DD":Un="day"}return Un}(Bn);gn&&(c.fieldValue=j(Pn.endTime).diff(j(Pn.startTime),gn)+1)}c.dateFormat=Bn}else yn(J,xn)?c.fieldValue=p&&Rn?Rn[p]:!p&&Rn?Rn.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 p=[],v=[],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,p.push(g.label),(u=g.columnName)===null||u===void 0?void 0:u.includes("_ecanrepeat_")){const y=g.columnName.split("_ecanrepeat_");v.push(y[0])}else v.push(g.columnName);m.push(g.order)}return h!=="CUSTOM"&&(p==null?void 0:p.length)>1&&(h="COMBINATION"),h==="CUSTOM"?{label:p.join(","),columnName:v.join(","),type:h,customOrderColumns:d}:{label:p.join(","),columnName:v.join(","),order:m.join(","),type:h}}return c},kn=c=>{const{sortCpnts:u=[]}=c;let f,h="";for(const d of u){const p=An(d)||{},{type:v,RECORD:m}=p;if(yn(v,"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,p,v,m,g,y,x,Pn;const{graphicConfig:b,type:_,globalModel:J,isGroupTable:re=!1}=c;J&&(wn=J);const Rn=yn(_,"pivottable");let Bn,{source:w,dataViewId:vn,plugin:gn="1",layer:Fn,chartType:zn,classificationList:Un=[],rowHeaderList:Wn=[],dimensionList:tr=[],seriesList:Yn=[],leftAxisList:Xn=[],rightAxisList:Jn=[],queryColumnList:ir=[],indicators:sr=[],controlList:Zn=[],formFields:Gn={},variableList:Kn=[],variableConditions:Vn=[],dataSourceId:qn="",idxLibMode:nr,preview:Hn=!1,edvDataSetId:lr}=b||{},cr=[];if((b==null?void 0:b.pageMode)==="design"?(cr=((f=b.sqlConditions)!==null&&f!==void 0?f:[]).map(yr=>{const br={};if(mn(yr,"globalCondition")||yr.join||(br.globalCondition=!0),!yr.join){const Sr=yr.rule||"EQUAL";br.rule=Sr==="NONE"?"EQUAL":Sr}return Object.assign(Object.assign({},yr),br)}),Vn!=null&&Vn.length&&(cr=cr.concat(Vn))):(cr=Cn(b),Kn!=null&&Kn.length&&(cr=cr.concat(function(yr){const br=[];if(yr!=null&&yr.length){for(const Sr of yr)if(Sr.variableName){const gr={variateName:Sr.variableName,globalCondition:!1,valueType:Sr.variableType,alias:Sr.keyName||""};Nn(gr,Sr.id,{dateFormat:Sr.format,prop:Sr.dateTypeValue,keyName:Sr.keyName,operateType:Sr.operateType,operateMode:Sr.operateMode,operateValue:Sr.operateValue}),Sr.dataType===""&&(gr.fieldValue=Sr.variableValue),Sr.format&&(gr.dateFormat=Sr.format),Sr.label&&(gr.label=Sr.label),br.push(gr)}}return br}(Kn)))),cr==null?void 0:cr.length){const yr=cr.filter(Sr=>Sr.globalCondition),br=cr.filter(Sr=>!Sr.globalCondition);(yr==null?void 0:yr.length)>1&&(cr=[{join:"&&",conditions:yr},...br])}cr!=null&&cr.length&&(cr=_n(cr,"1")),Fn==null&&(Fn=yn(_,["table","card"])||yn(_,["list","circulate"])&&(Un==null?void 0:Un.length)>1?"1":yn(_,["select","checkbox","radio"])?"3":"2");const Qn=[];let ar,er="";if(Array.isArray(Un)&&Un.length>0&&(!["ecanList","ecanCirculate"].includes(_)||(Un==null?void 0:Un.length)===1)){const yr=Un.length;for(let br=0;br<yr;br++){const Sr=Un[br]||{},{label:gr="",name:kr="",show:wr=!1,sort:Er,customGroup:Pr,conditions:_r,dateFormat:Mr,typeGuid:Or="",truncations:Rr=[]}=Sr;if(wr||yr===1){er=Or,Bn={label:gr.trim(),columnName:kr,show:wr,sort:kn(Sr)||$n(Er)||Er,customGroup:Pr,conditions:_n(_r),typeGuid:Or},Mr&&(Bn.dateFormat=Mr),kr!=="the_date"||Bn.dateFormat||(Bn.dateFormat="YYYY-MM");const Lr={};if(Array.isArray(Rr)&&Rr.length>0){const jr=Rr.length;for(let Gr=0;Gr<jr;Gr++){const Hr=Rr[Gr]||{},{rule:Wr="",num:Kr=0,name:ei=""}=Hr;Wr&&Kr&&(Lr.num=Kr,Lr.rule=Wr,ei&&(Lr.otherGroupName=ei))}}if(!((h=Object.keys(Lr))===null||h===void 0)&&h.length&&(Bn.truncation=Lr),!yn(_,["scatter","valueline"]))break;Qn.push(Bn)}}}if(Array.isArray(Yn)&&Yn.length>0){const yr=Yn.length;for(let br=0;br<yr;br++){const Sr=Yn[br]||{},{label:gr="",name:kr="",show:wr=!1,sort:Er,customGroup:Pr,conditions:_r,typeGuid:Mr}=Sr;if(wr||yr===1){ar={label:gr.trim(),columnName:kr,show:wr,sort:$n(Er),customGroup:Pr,conditions:_n(_r),typeGuid:Mr};break}}}const ur=[];Xn==null||Xn.forEach(yr=>{yr.location="LEFT",ur.push(On(yr,Bn))}),Jn==null||Jn.forEach(yr=>{yr.location="RIGHT",ur.push(On(yr,Bn))});let hr=sr;!((p=(d=u==null?void 0:u.pivotTableCal)===null||d===void 0?void 0:d.indicators)===null||p===void 0)&&p.length&&(hr=u.pivotTableCal.indicators),hr==null||hr.forEach(yr=>{yr.location="LEFT",ur.push(On(yr,Bn))});const or=[];["ecanList","ecanCirculate"].includes(_)&&(Un==null?void 0:Un.length)>1&&(ir=Un),!((m=(v=u==null?void 0:u.pivotTableCal)===null||v===void 0?void 0:v.dimensions)===null||m===void 0)&&m.length&&(ir=u.pivotTableCal.dimensions),ir==null||ir.forEach(yr=>{const{label:br,name:Sr,location:gr,show:kr,indexCode:wr,sort:Er,typeGuid:Pr,indexCodeNum:_r,dateFormat:Mr,conditions:Or}=yr;let Rr=$n(Er);if(u.sort){const{field:jr,order:Gr}=u.sort;let Hr=ur.find(Wr=>Wr.label===jr);Hr||br!==jr||(Hr=yr),Hr&&(Rr={columnName:Hr.columnName,label:u.sort.field,order:Gr.toUpperCase(),type:"NORMAL"})}const Lr={label:br,columnName:Sr,location:gr,show:kr,sort:Rr,calcType:"COLUMN",hrpIndexCode:wr,hrpIndexCodeNum:_r,conditions:_n(Or),typeGuid:Pr};Mr&&(Lr.dateFormat=Mr),Sr!=="the_date"||Lr.dateFormat||(Lr.dateFormat="YYYY-MM"),or.push(Lr)});let mr=[],dr=[];if(Array.isArray(Wn)&&Wn.length>0?dr=Wn:Array.isArray(tr)&&tr.length>0&&(dr=tr),dr==null?void 0:dr.length){const yr=dr.length;for(let br=0;br<yr;br++){const Sr=dr[br]||{},{label:gr="",name:kr="",show:wr=!1,sort:Er,customGroup:Pr,conditions:_r,truncations:Mr,typeGuid:Or="",dateFormat:Rr}=Sr;let Lr=$n(Er);if(u.sort){const{field:Hr,order:Wr}=u.sort;let Kr=ur.find(ei=>ei.label===Hr);Kr||Sr.label!==Hr||(Kr=Sr),Kr&&(Lr={columnName:Kr.columnName,label:u.sort.field,order:Wr.toUpperCase(),type:"NORMAL"})}const jr={label:gr.trim(),columnName:kr,show:wr,sort:Lr,customGroup:Pr,conditions:_n(_r),typeGuid:Or};Rr&&(jr.dateFormat=Rr),kr!=="the_date"||jr.dateFormat||(jr.dateFormat="YYYY-MM");const Gr={};if(Array.isArray(Mr)&&Mr.length>0){const Hr=Mr.length;for(let Wr=0;Wr<Hr;Wr++){const Kr=Mr[Wr]||{},{rule:ei="",num:ni=0,name:ri=""}=Kr;ei&&ni&&(Gr.num=ni,Gr.rule=ei,ri&&(Gr.otherGroupName=ri))}}!((g=Object.keys(Gr))===null||g===void 0)&&g.length&&(jr.truncation=Gr),mr.push(jr)}}let fr,vr,pr=[];if(u!=null&&u.pivotTableCal){let yr=[];const{calc:br=[],filter:Sr=[],truncations:gr=[],sorts:kr=[],aggregateMethod:wr=[],rowDimensionKeys:Er=[],colDimensionKeys:Pr=[]}=u.pivotTableCal;if(ur.push(...br),Sr==null?void 0:Sr.length)for(const _r of Sr){const{type:Mr}=_r,Or=e(_r,["type"]);Mr==="indicators"?yr=ur:Mr==="dimension"&&(yr=or);const Rr=yr.find(Lr=>Lr.columnName===_r.fieldName);Rr&&(Rr.conditions||(Rr.conditions=[]),Rr.conditions.push(Or))}if(gr!=null&&gr.length)for(const _r of gr){const Mr=or.find(Or=>Or.columnName===_r.key);Mr&&(Mr.truncation={num:_r.num,rule:_r.rule})}if(kr!=null&&kr.length)for(const _r of kr){const{fieldType:Mr,columnData:Or}=_r,Rr=e(_r,["fieldType","columnData"]);Mr==="indicators"?(yr=ur,fr=Or):Mr==="dimension"&&(yr=or);const Lr=yr.find(jr=>jr.label===Rr.label);Lr&&(Lr.sort=Object.assign(Object.assign({},Rr),{columnName:Lr.columnName}))}if(!((y=Object.keys(wr))===null||y===void 0)&&y.length)for(const _r in wr){const Mr=or.find(Or=>Or.label===_r);Mr&&(!((x=wr[_r])===null||x===void 0)&&x.length)&&(Mr.aggregateMethod=wr[_r])}mr=[],pr=[];for(const _r of or)Er.includes(_r.columnName)?mr.push(_r):Pr.includes(_r.columnName)&&pr.push(_r)}if(yn(_,["text","proportion","counter"])?zn="zb":yn(_,["valueline"])&&(zn="valueline"),re||_==="card"){if(mr.length===0||ur.length===0)return;zn="grouptable"}else if(Fn==="1"&&or.length===0||Fn==="2"&&ur.length===0||!(Fn!=="3"||(er||w==="EDV_DATA_SET")&&Gn.labelField&&Gn.valueField)||Fn==="3"&&_==="ecanDataSelect"&&ur.length===0)return;if(tr!=null&&tr.length&&(Fn="1",zn="grouptable"),!yn(_,["scatter","valueline"])&&((Pn=Object.keys(Gn))===null||Pn===void 0?void 0:Pn.length)){const yr=bn(Zn).find(Sr=>Sr.conditionKey==="parentCode"),br={};if(yr){const Sr=An(yr.id)||{};if(!(Sr!=null&&Sr.itemCodes))return;br.parentItemCodes=Sr.itemCodes}_==="ecanDataSelect"&&(br.indicatorList=ur.filter(Sr=>Sr.show)),w==="EDV_DATA_SET"&&(br.edvDataSetId=lr),vr=Object.assign({url:"/diagram/formData",source:w,dataViewId:vn,plugin:"4",layer:Fn,chartType:"normalSelect",rangeIndexTypeGuid:er,type:_==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:Gn.labelField,valueField:Gn.valueField,sqlConditions:cr,idxLibMode:"WITH_DATE_DIM_TABLE",dataSourceId:qn,keyName:c.keyName},br)}else{let yr={};yr=yn(_,["scatter","valueline"])?{classifications:Qn}:{classification:Bn},vr=Object.assign({url:"/diagram",source:w,dataViewId:vn,plugin:Rn?"5":gn,layer:Fn,chartType:Rn?"pivot-table":zn,series:ar,indicatorList:ur,queryColumns:re?[]:or,pageFlag:!0,edvDataSetId:lr||"",sqlConditions:cr.map(br=>{const{fieldValue:Sr}=br,gr={};return Sr&&Array.isArray(Sr)&&(gr.fieldValue=JSON.stringify(Sr)),Object.assign(Object.assign({},br),gr)}),idxLibMode:nr,dataSourceId:qn,preview:Hn,rowHeaders:mr,keyName:c.keyName,columnData:fr,columnHeaders:pr},yr)}return vr},Dn=(c=[],u,f=!1)=>{let{name:h="name",types:d=[]}=u||{};h=(h==null?void 0:h.trim())||h;const p=new Set,v=new Map,m=c.length,g=d.length;if(m!==1||f)for(let Pn=0;Pn<m;Pn++){const b=c[Pn],_=b[h];p.add(_);for(let J=0;J<g;J++){const re=d[J],{label:Rn,value:Bn}=re,w=Object.assign(Object.assign({},b),{value:b[Bn]});if(v.has(Rn)){const vn=v.get(Rn);vn.push(w),v.set(Rn,vn)}else v.set(Rn,[w])}}else{const Pn=[];for(let _=0;_<g;_++){const J=d[_],{label:re,value:Rn}=J,Bn=Object.assign(Object.assign({},c[0]),{value:c[0][Rn]});p.add(re),Pn.push(Bn)}const b=c[0][h]||"";v.set(b,Pn)}const y=Array.from(p),x=[];for(const[Pn,b]of v)x.push({name:Pn,data:b});return{dimensions:y,dataset:x}},En=(c,u)=>{let{name:f="name",value:h="value",type:d="type"}=u||{};f=f==null?void 0:f.trim(),h=h==null?void 0:h.trim(),d=d==null?void 0:d.trim();const p=new Map,v=c.length;for(let y=0;y<v;y++){const x=c[y],Pn=x[f]||"",b=x[h]||"",_=x[d]||"";if(p.has(_)){const J=p.get(_);J.push(Object.assign({name:Pn,value:b},x)),p.set(_,J)}else p.set(_,[Object.assign({name:Pn,value:b},x)])}const m=[],g=[];for(const[y,x]of p)if(g.push({name:y,data:x}),x==null?void 0:x.length)if(m.length)for(const Pn of x)m.includes(Pn.name)||m.push(Pn.name);else m.push(...x.map(Pn=>Pn.name));return{dimensions:m,dataset:g}},In=(c,u)=>{var f;if(c==null)return u;const h=c.match(/\{.*\}/g);if(h==null||h.length===0)return u;const d=h.length;for(let p=0;p<d;p++){const v=h[p];if(v==null||v==="")break;let m=(f=v.slice(1,-1))===null||f===void 0?void 0:f.trim();m=m==null?void 0:m.replace(/value/g,u);try{let g=m;(/\(.*\)/g.test(m)||/[+/\\*]/g.test(m))&&(g=pn(m)),c=c.replace(v,g)}catch{c=c.replace(v,m)}}return c},styleList=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","lineHeight","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","borderWidth","borderStyle","borderRadius","borderColor","textShadow","justifyContent","alignItems","zIndex","scale"],usePickComponentStyle=(c,u=[])=>{const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),h=lodashEs.without(styleList,...u);return vue.computed(()=>{var v,m;const d=lodashEs.pick(c,h),p=["width","height","top","left"];for(const g of p)mn(d,g)&&(["width","height"].includes(g)&&((v=c[g])==null?void 0:v.suffix)==="%"&&vue.unref(f)==="design"?d[g]="100%":(m=c[g])!=null&&m.suffix&&(d[g]=(c[g].value||0)+c[g].suffix));return d})},useOnEvent=(c,u)=>{vue.watch(()=>c.id,f=>{const h=vue.inject(EVENT_BUS,{onEvent:(d,p)=>{}});f!=null&&f!==""&&h.onEvent(f,u)},{immediate:!0})},useEmitEvent=c=>{const u=c.events,f=c.id,h=vue.inject(EVENT_BUS,{emitEvent:(p,v,m)=>{}}),{touchEventId:d}=vue.inject(GLOBAL_CONFIG,{touchEventId:vue.ref("")});return(p,v=()=>{},m)=>function(){v.call(this,...arguments);const{emitEvent:g}=h;u.forEach(y=>{if(p===y.on)try{d.value=f,m?g(y.target,y.emit,m):g(y.target,y.emit)}catch(x){console.error(x)}})}};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}function getAugmentedNamespace(c){if(c.__esModule)return c;var u=c.default;if(typeof u=="function"){var f=function h(){return this instanceof h?Reflect.construct(u,arguments,this.constructor):u.apply(this,arguments)};f.prototype=u.prototype}else f={};return Object.defineProperty(f,"__esModule",{value:!0}),Object.keys(c).forEach(function(h){var d=Object.getOwnPropertyDescriptor(c,h);Object.defineProperty(f,h,d.get?d:{enumerable:!0,get:function(){return c[h]}})}),f}var cryptoJs={exports:{}};function commonjsRequire(c){throw new Error('Could not dynamically require "'+c+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(c,u){(function(f,h){c.exports=h()})(commonjsGlobal,function(){var f=f||function(h,d){var p;if(typeof window<"u"&&window.crypto&&(p=window.crypto),typeof self<"u"&&self.crypto&&(p=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(p=globalThis.crypto),!p&&typeof window<"u"&&window.msCrypto&&(p=window.msCrypto),!p&&typeof commonjsGlobal<"u"&&commonjsGlobal.crypto&&(p=commonjsGlobal.crypto),!p&&typeof commonjsRequire=="function")try{p=require$$0}catch{}var v=function(){if(p){if(typeof p.getRandomValues=="function")try{return p.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof p.randomBytes=="function")try{return p.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},m=Object.create||function(){function w(){}return function(vn){var gn;return w.prototype=vn,gn=new w,w.prototype=null,gn}}(),g={},y=g.lib={},x=y.Base=function(){return{extend:function(w){var vn=m(this);return w&&vn.mixIn(w),(!vn.hasOwnProperty("init")||this.init===vn.init)&&(vn.init=function(){vn.$super.init.apply(this,arguments)}),vn.init.prototype=vn,vn.$super=this,vn},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var vn in w)w.hasOwnProperty(vn)&&(this[vn]=w[vn]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),Pn=y.WordArray=x.extend({init:function(w,vn){w=this.words=w||[],vn!=d?this.sigBytes=vn:this.sigBytes=w.length*4},toString:function(w){return(w||_).stringify(this)},concat:function(w){var vn=this.words,gn=w.words,Fn=this.sigBytes,zn=w.sigBytes;if(this.clamp(),Fn%4)for(var Un=0;Un<zn;Un++){var Wn=gn[Un>>>2]>>>24-Un%4*8&255;vn[Fn+Un>>>2]|=Wn<<24-(Fn+Un)%4*8}else for(var tr=0;tr<zn;tr+=4)vn[Fn+tr>>>2]=gn[tr>>>2];return this.sigBytes+=zn,this},clamp:function(){var w=this.words,vn=this.sigBytes;w[vn>>>2]&=4294967295<<32-vn%4*8,w.length=h.ceil(vn/4)},clone:function(){var w=x.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var vn=[],gn=0;gn<w;gn+=4)vn.push(v());return new Pn.init(vn,w)}}),b=g.enc={},_=b.Hex={stringify:function(w){for(var vn=w.words,gn=w.sigBytes,Fn=[],zn=0;zn<gn;zn++){var Un=vn[zn>>>2]>>>24-zn%4*8&255;Fn.push((Un>>>4).toString(16)),Fn.push((Un&15).toString(16))}return Fn.join("")},parse:function(w){for(var vn=w.length,gn=[],Fn=0;Fn<vn;Fn+=2)gn[Fn>>>3]|=parseInt(w.substr(Fn,2),16)<<24-Fn%8*4;return new Pn.init(gn,vn/2)}},J=b.Latin1={stringify:function(w){for(var vn=w.words,gn=w.sigBytes,Fn=[],zn=0;zn<gn;zn++){var Un=vn[zn>>>2]>>>24-zn%4*8&255;Fn.push(String.fromCharCode(Un))}return Fn.join("")},parse:function(w){for(var vn=w.length,gn=[],Fn=0;Fn<vn;Fn++)gn[Fn>>>2]|=(w.charCodeAt(Fn)&255)<<24-Fn%4*8;return new Pn.init(gn,vn)}},re=b.Utf8={stringify:function(w){try{return decodeURIComponent(escape(J.stringify(w)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(w){return J.parse(unescape(encodeURIComponent(w)))}},Rn=y.BufferedBlockAlgorithm=x.extend({reset:function(){this._data=new Pn.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=re.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var vn,gn=this._data,Fn=gn.words,zn=gn.sigBytes,Un=this.blockSize,Wn=Un*4,tr=zn/Wn;w?tr=h.ceil(tr):tr=h.max((tr|0)-this._minBufferSize,0);var Yn=tr*Un,Xn=h.min(Yn*4,zn);if(Yn){for(var Jn=0;Jn<Yn;Jn+=Un)this._doProcessBlock(Fn,Jn);vn=Fn.splice(0,Yn),gn.sigBytes-=Xn}return new Pn.init(vn,Xn)},clone:function(){var w=x.clone.call(this);return w._data=this._data.clone(),w},_minBufferSize:0});y.Hasher=Rn.extend({cfg:x.extend(),init:function(w){this.cfg=this.cfg.extend(w),this.reset()},reset:function(){Rn.reset.call(this),this._doReset()},update:function(w){return this._append(w),this._process(),this},finalize:function(w){w&&this._append(w);var vn=this._doFinalize();return vn},blockSize:16,_createHelper:function(w){return function(vn,gn){return new w.init(gn).finalize(vn)}},_createHmacHelper:function(w){return function(vn,gn){return new Bn.HMAC.init(w,gn).finalize(vn)}}});var Bn=g.algo={};return g}(Math);return f})}(core)),core.exports}var x64Core={exports:{}},hasRequiredX64Core;function requireX64Core(){return hasRequiredX64Core||(hasRequiredX64Core=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(h){var d=f,p=d.lib,v=p.Base,m=p.WordArray,g=d.x64={};g.Word=v.extend({init:function(y,x){this.high=y,this.low=x}}),g.WordArray=v.extend({init:function(y,x){y=this.words=y||[],x!=h?this.sigBytes=x:this.sigBytes=y.length*8},toX32:function(){for(var y=this.words,x=y.length,Pn=[],b=0;b<x;b++){var _=y[b];Pn.push(_.high),Pn.push(_.low)}return m.create(Pn,this.sigBytes)},clone:function(){for(var y=v.clone.call(this),x=y.words=this.words.slice(0),Pn=x.length,b=0;b<Pn;b++)x[b]=x[b].clone();return y}})}(),f})}(x64Core)),x64Core.exports}var libTypedarrays={exports:{}},hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(){if(typeof ArrayBuffer=="function"){var h=f,d=h.lib,p=d.WordArray,v=p.init,m=p.init=function(g){if(g instanceof ArrayBuffer&&(g=new Uint8Array(g)),(g instanceof Int8Array||typeof Uint8ClampedArray<"u"&&g instanceof Uint8ClampedArray||g instanceof Int16Array||g instanceof Uint16Array||g instanceof Int32Array||g instanceof Uint32Array||g instanceof Float32Array||g instanceof Float64Array)&&(g=new Uint8Array(g.buffer,g.byteOffset,g.byteLength)),g instanceof Uint8Array){for(var y=g.byteLength,x=[],Pn=0;Pn<y;Pn++)x[Pn>>>2]|=g[Pn]<<24-Pn%4*8;v.call(this,x,y)}else v.apply(this,arguments)};m.prototype=p}}(),f.lib.WordArray})}(libTypedarrays)),libTypedarrays.exports}var encUtf16={exports:{}},hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,p=d.WordArray,v=h.enc;v.Utf16=v.Utf16BE={stringify:function(g){for(var y=g.words,x=g.sigBytes,Pn=[],b=0;b<x;b+=2){var _=y[b>>>2]>>>16-b%4*8&65535;Pn.push(String.fromCharCode(_))}return Pn.join("")},parse:function(g){for(var y=g.length,x=[],Pn=0;Pn<y;Pn++)x[Pn>>>1]|=g.charCodeAt(Pn)<<16-Pn%2*16;return p.create(x,y*2)}},v.Utf16LE={stringify:function(g){for(var y=g.words,x=g.sigBytes,Pn=[],b=0;b<x;b+=2){var _=m(y[b>>>2]>>>16-b%4*8&65535);Pn.push(String.fromCharCode(_))}return Pn.join("")},parse:function(g){for(var y=g.length,x=[],Pn=0;Pn<y;Pn++)x[Pn>>>1]|=m(g.charCodeAt(Pn)<<16-Pn%2*16);return p.create(x,y*2)}};function m(g){return g<<8&4278255360|g>>>8&16711935}}(),f.enc.Utf16})}(encUtf16)),encUtf16.exports}var encBase64={exports:{}},hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,p=d.WordArray,v=h.enc;v.Base64={stringify:function(g){var y=g.words,x=g.sigBytes,Pn=this._map;g.clamp();for(var b=[],_=0;_<x;_+=3)for(var J=y[_>>>2]>>>24-_%4*8&255,re=y[_+1>>>2]>>>24-(_+1)%4*8&255,Rn=y[_+2>>>2]>>>24-(_+2)%4*8&255,Bn=J<<16|re<<8|Rn,w=0;w<4&&_+w*.75<x;w++)b.push(Pn.charAt(Bn>>>6*(3-w)&63));var vn=Pn.charAt(64);if(vn)for(;b.length%4;)b.push(vn);return b.join("")},parse:function(g){var y=g.length,x=this._map,Pn=this._reverseMap;if(!Pn){Pn=this._reverseMap=[];for(var b=0;b<x.length;b++)Pn[x.charCodeAt(b)]=b}var _=x.charAt(64);if(_){var J=g.indexOf(_);J!==-1&&(y=J)}return m(g,y,Pn)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function m(g,y,x){for(var Pn=[],b=0,_=0;_<y;_++)if(_%4){var J=x[g.charCodeAt(_-1)]<<_%4*2,re=x[g.charCodeAt(_)]>>>6-_%4*2,Rn=J|re;Pn[b>>>2]|=Rn<<24-b%4*8,b++}return p.create(Pn,b)}}(),f.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,p=d.WordArray,v=h.enc;v.Base64url={stringify:function(g,y=!0){var x=g.words,Pn=g.sigBytes,b=y?this._safe_map:this._map;g.clamp();for(var _=[],J=0;J<Pn;J+=3)for(var re=x[J>>>2]>>>24-J%4*8&255,Rn=x[J+1>>>2]>>>24-(J+1)%4*8&255,Bn=x[J+2>>>2]>>>24-(J+2)%4*8&255,w=re<<16|Rn<<8|Bn,vn=0;vn<4&&J+vn*.75<Pn;vn++)_.push(b.charAt(w>>>6*(3-vn)&63));var gn=b.charAt(64);if(gn)for(;_.length%4;)_.push(gn);return _.join("")},parse:function(g,y=!0){var x=g.length,Pn=y?this._safe_map:this._map,b=this._reverseMap;if(!b){b=this._reverseMap=[];for(var _=0;_<Pn.length;_++)b[Pn.charCodeAt(_)]=_}var J=Pn.charAt(64);if(J){var re=g.indexOf(J);re!==-1&&(x=re)}return m(g,x,b)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function m(g,y,x){for(var Pn=[],b=0,_=0;_<y;_++)if(_%4){var J=x[g.charCodeAt(_-1)]<<_%4*2,re=x[g.charCodeAt(_)]>>>6-_%4*2,Rn=J|re;Pn[b>>>2]|=Rn<<24-b%4*8,b++}return p.create(Pn,b)}}(),f.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(h){var d=f,p=d.lib,v=p.WordArray,m=p.Hasher,g=d.algo,y=[];(function(){for(var re=0;re<64;re++)y[re]=h.abs(h.sin(re+1))*4294967296|0})();var x=g.MD5=m.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(re,Rn){for(var Bn=0;Bn<16;Bn++){var w=Rn+Bn,vn=re[w];re[w]=(vn<<8|vn>>>24)&16711935|(vn<<24|vn>>>8)&4278255360}var gn=this._hash.words,Fn=re[Rn+0],zn=re[Rn+1],Un=re[Rn+2],Wn=re[Rn+3],tr=re[Rn+4],Yn=re[Rn+5],Xn=re[Rn+6],Jn=re[Rn+7],ir=re[Rn+8],sr=re[Rn+9],Zn=re[Rn+10],Gn=re[Rn+11],Kn=re[Rn+12],Vn=re[Rn+13],qn=re[Rn+14],nr=re[Rn+15],Hn=gn[0],lr=gn[1],cr=gn[2],Qn=gn[3];Hn=Pn(Hn,lr,cr,Qn,Fn,7,y[0]),Qn=Pn(Qn,Hn,lr,cr,zn,12,y[1]),cr=Pn(cr,Qn,Hn,lr,Un,17,y[2]),lr=Pn(lr,cr,Qn,Hn,Wn,22,y[3]),Hn=Pn(Hn,lr,cr,Qn,tr,7,y[4]),Qn=Pn(Qn,Hn,lr,cr,Yn,12,y[5]),cr=Pn(cr,Qn,Hn,lr,Xn,17,y[6]),lr=Pn(lr,cr,Qn,Hn,Jn,22,y[7]),Hn=Pn(Hn,lr,cr,Qn,ir,7,y[8]),Qn=Pn(Qn,Hn,lr,cr,sr,12,y[9]),cr=Pn(cr,Qn,Hn,lr,Zn,17,y[10]),lr=Pn(lr,cr,Qn,Hn,Gn,22,y[11]),Hn=Pn(Hn,lr,cr,Qn,Kn,7,y[12]),Qn=Pn(Qn,Hn,lr,cr,Vn,12,y[13]),cr=Pn(cr,Qn,Hn,lr,qn,17,y[14]),lr=Pn(lr,cr,Qn,Hn,nr,22,y[15]),Hn=b(Hn,lr,cr,Qn,zn,5,y[16]),Qn=b(Qn,Hn,lr,cr,Xn,9,y[17]),cr=b(cr,Qn,Hn,lr,Gn,14,y[18]),lr=b(lr,cr,Qn,Hn,Fn,20,y[19]),Hn=b(Hn,lr,cr,Qn,Yn,5,y[20]),Qn=b(Qn,Hn,lr,cr,Zn,9,y[21]),cr=b(cr,Qn,Hn,lr,nr,14,y[22]),lr=b(lr,cr,Qn,Hn,tr,20,y[23]),Hn=b(Hn,lr,cr,Qn,sr,5,y[24]),Qn=b(Qn,Hn,lr,cr,qn,9,y[25]),cr=b(cr,Qn,Hn,lr,Wn,14,y[26]),lr=b(lr,cr,Qn,Hn,ir,20,y[27]),Hn=b(Hn,lr,cr,Qn,Vn,5,y[28]),Qn=b(Qn,Hn,lr,cr,Un,9,y[29]),cr=b(cr,Qn,Hn,lr,Jn,14,y[30]),lr=b(lr,cr,Qn,Hn,Kn,20,y[31]),Hn=_(Hn,lr,cr,Qn,Yn,4,y[32]),Qn=_(Qn,Hn,lr,cr,ir,11,y[33]),cr=_(cr,Qn,Hn,lr,Gn,16,y[34]),lr=_(lr,cr,Qn,Hn,qn,23,y[35]),Hn=_(Hn,lr,cr,Qn,zn,4,y[36]),Qn=_(Qn,Hn,lr,cr,tr,11,y[37]),cr=_(cr,Qn,Hn,lr,Jn,16,y[38]),lr=_(lr,cr,Qn,Hn,Zn,23,y[39]),Hn=_(Hn,lr,cr,Qn,Vn,4,y[40]),Qn=_(Qn,Hn,lr,cr,Fn,11,y[41]),cr=_(cr,Qn,Hn,lr,Wn,16,y[42]),lr=_(lr,cr,Qn,Hn,Xn,23,y[43]),Hn=_(Hn,lr,cr,Qn,sr,4,y[44]),Qn=_(Qn,Hn,lr,cr,Kn,11,y[45]),cr=_(cr,Qn,Hn,lr,nr,16,y[46]),lr=_(lr,cr,Qn,Hn,Un,23,y[47]),Hn=J(Hn,lr,cr,Qn,Fn,6,y[48]),Qn=J(Qn,Hn,lr,cr,Jn,10,y[49]),cr=J(cr,Qn,Hn,lr,qn,15,y[50]),lr=J(lr,cr,Qn,Hn,Yn,21,y[51]),Hn=J(Hn,lr,cr,Qn,Kn,6,y[52]),Qn=J(Qn,Hn,lr,cr,Wn,10,y[53]),cr=J(cr,Qn,Hn,lr,Zn,15,y[54]),lr=J(lr,cr,Qn,Hn,zn,21,y[55]),Hn=J(Hn,lr,cr,Qn,ir,6,y[56]),Qn=J(Qn,Hn,lr,cr,nr,10,y[57]),cr=J(cr,Qn,Hn,lr,Xn,15,y[58]),lr=J(lr,cr,Qn,Hn,Vn,21,y[59]),Hn=J(Hn,lr,cr,Qn,tr,6,y[60]),Qn=J(Qn,Hn,lr,cr,Gn,10,y[61]),cr=J(cr,Qn,Hn,lr,Un,15,y[62]),lr=J(lr,cr,Qn,Hn,sr,21,y[63]),gn[0]=gn[0]+Hn|0,gn[1]=gn[1]+lr|0,gn[2]=gn[2]+cr|0,gn[3]=gn[3]+Qn|0},_doFinalize:function(){var re=this._data,Rn=re.words,Bn=this._nDataBytes*8,w=re.sigBytes*8;Rn[w>>>5]|=128<<24-w%32;var vn=h.floor(Bn/4294967296),gn=Bn;Rn[(w+64>>>9<<4)+15]=(vn<<8|vn>>>24)&16711935|(vn<<24|vn>>>8)&4278255360,Rn[(w+64>>>9<<4)+14]=(gn<<8|gn>>>24)&16711935|(gn<<24|gn>>>8)&4278255360,re.sigBytes=(Rn.length+1)*4,this._process();for(var Fn=this._hash,zn=Fn.words,Un=0;Un<4;Un++){var Wn=zn[Un];zn[Un]=(Wn<<8|Wn>>>24)&16711935|(Wn<<24|Wn>>>8)&4278255360}return Fn},clone:function(){var re=m.clone.call(this);return re._hash=this._hash.clone(),re}});function Pn(re,Rn,Bn,w,vn,gn,Fn){var zn=re+(Rn&Bn|~Rn&w)+vn+Fn;return(zn<<gn|zn>>>32-gn)+Rn}function b(re,Rn,Bn,w,vn,gn,Fn){var zn=re+(Rn&w|Bn&~w)+vn+Fn;return(zn<<gn|zn>>>32-gn)+Rn}function _(re,Rn,Bn,w,vn,gn,Fn){var zn=re+(Rn^Bn^w)+vn+Fn;return(zn<<gn|zn>>>32-gn)+Rn}function J(re,Rn,Bn,w,vn,gn,Fn){var zn=re+(Bn^(Rn|~w))+vn+Fn;return(zn<<gn|zn>>>32-gn)+Rn}d.MD5=m._createHelper(x),d.HmacMD5=m._createHmacHelper(x)}(Math),f.MD5})}(md5)),md5.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,p=d.WordArray,v=d.Hasher,m=h.algo,g=[],y=m.SHA1=v.extend({_doReset:function(){this._hash=new p.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(x,Pn){for(var b=this._hash.words,_=b[0],J=b[1],re=b[2],Rn=b[3],Bn=b[4],w=0;w<80;w++){if(w<16)g[w]=x[Pn+w]|0;else{var vn=g[w-3]^g[w-8]^g[w-14]^g[w-16];g[w]=vn<<1|vn>>>31}var gn=(_<<5|_>>>27)+Bn+g[w];w<20?gn+=(J&re|~J&Rn)+1518500249:w<40?gn+=(J^re^Rn)+1859775393:w<60?gn+=(J&re|J&Rn|re&Rn)-1894007588:gn+=(J^re^Rn)-899497514,Bn=Rn,Rn=re,re=J<<30|J>>>2,J=_,_=gn}b[0]=b[0]+_|0,b[1]=b[1]+J|0,b[2]=b[2]+re|0,b[3]=b[3]+Rn|0,b[4]=b[4]+Bn|0},_doFinalize:function(){var x=this._data,Pn=x.words,b=this._nDataBytes*8,_=x.sigBytes*8;return Pn[_>>>5]|=128<<24-_%32,Pn[(_+64>>>9<<4)+14]=Math.floor(b/4294967296),Pn[(_+64>>>9<<4)+15]=b,x.sigBytes=Pn.length*4,this._process(),this._hash},clone:function(){var x=v.clone.call(this);return x._hash=this._hash.clone(),x}});h.SHA1=v._createHelper(y),h.HmacSHA1=v._createHmacHelper(y)}(),f.SHA1})}(sha1)),sha1.exports}var sha256={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(h){var d=f,p=d.lib,v=p.WordArray,m=p.Hasher,g=d.algo,y=[],x=[];(function(){function _(Bn){for(var w=h.sqrt(Bn),vn=2;vn<=w;vn++)if(!(Bn%vn))return!1;return!0}function J(Bn){return(Bn-(Bn|0))*4294967296|0}for(var re=2,Rn=0;Rn<64;)_(re)&&(Rn<8&&(y[Rn]=J(h.pow(re,1/2))),x[Rn]=J(h.pow(re,1/3)),Rn++),re++})();var Pn=[],b=g.SHA256=m.extend({_doReset:function(){this._hash=new v.init(y.slice(0))},_doProcessBlock:function(_,J){for(var re=this._hash.words,Rn=re[0],Bn=re[1],w=re[2],vn=re[3],gn=re[4],Fn=re[5],zn=re[6],Un=re[7],Wn=0;Wn<64;Wn++){if(Wn<16)Pn[Wn]=_[J+Wn]|0;else{var tr=Pn[Wn-15],Yn=(tr<<25|tr>>>7)^(tr<<14|tr>>>18)^tr>>>3,Xn=Pn[Wn-2],Jn=(Xn<<15|Xn>>>17)^(Xn<<13|Xn>>>19)^Xn>>>10;Pn[Wn]=Yn+Pn[Wn-7]+Jn+Pn[Wn-16]}var ir=gn&Fn^~gn&zn,sr=Rn&Bn^Rn&w^Bn&w,Zn=(Rn<<30|Rn>>>2)^(Rn<<19|Rn>>>13)^(Rn<<10|Rn>>>22),Gn=(gn<<26|gn>>>6)^(gn<<21|gn>>>11)^(gn<<7|gn>>>25),Kn=Un+Gn+ir+x[Wn]+Pn[Wn],Vn=Zn+sr;Un=zn,zn=Fn,Fn=gn,gn=vn+Kn|0,vn=w,w=Bn,Bn=Rn,Rn=Kn+Vn|0}re[0]=re[0]+Rn|0,re[1]=re[1]+Bn|0,re[2]=re[2]+w|0,re[3]=re[3]+vn|0,re[4]=re[4]+gn|0,re[5]=re[5]+Fn|0,re[6]=re[6]+zn|0,re[7]=re[7]+Un|0},_doFinalize:function(){var _=this._data,J=_.words,re=this._nDataBytes*8,Rn=_.sigBytes*8;return J[Rn>>>5]|=128<<24-Rn%32,J[(Rn+64>>>9<<4)+14]=h.floor(re/4294967296),J[(Rn+64>>>9<<4)+15]=re,_.sigBytes=J.length*4,this._process(),this._hash},clone:function(){var _=m.clone.call(this);return _._hash=this._hash.clone(),_}});d.SHA256=m._createHelper(b),d.HmacSHA256=m._createHmacHelper(b)}(Math),f.SHA256})}(sha256)),sha256.exports}var sha224={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireSha256())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,p=d.WordArray,v=h.algo,m=v.SHA256,g=v.SHA224=m.extend({_doReset:function(){this._hash=new p.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var y=m._doFinalize.call(this);return y.sigBytes-=4,y}});h.SHA224=m._createHelper(g),h.HmacSHA224=m._createHmacHelper(g)}(),f.SHA224})}(sha224)),sha224.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireX64Core())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,p=d.Hasher,v=h.x64,m=v.Word,g=v.WordArray,y=h.algo;function x(){return m.create.apply(m,arguments)}var Pn=[x(1116352408,3609767458),x(1899447441,602891725),x(3049323471,3964484399),x(3921009573,2173295548),x(961987163,4081628472),x(1508970993,3053834265),x(2453635748,2937671579),x(2870763221,3664609560),x(3624381080,2734883394),x(310598401,1164996542),x(607225278,1323610764),x(1426881987,3590304994),x(1925078388,4068182383),x(2162078206,991336113),x(2614888103,633803317),x(3248222580,3479774868),x(3835390401,2666613458),x(4022224774,944711139),x(264347078,2341262773),x(604807628,2007800933),x(770255983,1495990901),x(1249150122,1856431235),x(1555081692,3175218132),x(1996064986,2198950837),x(2554220882,3999719339),x(2821834349,766784016),x(2952996808,2566594879),x(3210313671,3203337956),x(3336571891,1034457026),x(3584528711,2466948901),x(113926993,3758326383),x(338241895,168717936),x(666307205,1188179964),x(773529912,1546045734),x(1294757372,1522805485),x(1396182291,2643833823),x(1695183700,2343527390),x(1986661051,1014477480),x(2177026350,1206759142),x(2456956037,344077627),x(2730485921,1290863460),x(2820302411,3158454273),x(3259730800,3505952657),x(3345764771,106217008),x(3516065817,3606008344),x(3600352804,1432725776),x(4094571909,1467031594),x(275423344,851169720),x(430227734,3100823752),x(506948616,1363258195),x(659060556,3750685593),x(883997877,3785050280),x(958139571,3318307427),x(1322822218,3812723403),x(1537002063,2003034995),x(1747873779,3602036899),x(1955562222,1575990012),x(2024104815,1125592928),x(2227730452,2716904306),x(2361852424,442776044),x(2428436474,593698344),x(2756734187,3733110249),x(3204031479,2999351573),x(3329325298,3815920427),x(3391569614,3928383900),x(3515267271,566280711),x(3940187606,3454069534),x(4118630271,4000239992),x(116418474,1914138554),x(174292421,2731055270),x(289380356,3203993006),x(460393269,320620315),x(685471733,587496836),x(852142971,1086792851),x(1017036298,365543100),x(1126000580,2618297676),x(1288033470,3409855158),x(1501505948,4234509866),x(1607167915,987167468),x(1816402316,1246189591)],b=[];(function(){for(var J=0;J<80;J++)b[J]=x()})();var _=y.SHA512=p.extend({_doReset:function(){this._hash=new g.init([new m.init(1779033703,4089235720),new m.init(3144134277,2227873595),new m.init(1013904242,4271175723),new m.init(2773480762,1595750129),new m.init(1359893119,2917565137),new m.init(2600822924,725511199),new m.init(528734635,4215389547),new m.init(1541459225,327033209)])},_doProcessBlock:function(J,re){for(var Rn=this._hash.words,Bn=Rn[0],w=Rn[1],vn=Rn[2],gn=Rn[3],Fn=Rn[4],zn=Rn[5],Un=Rn[6],Wn=Rn[7],tr=Bn.high,Yn=Bn.low,Xn=w.high,Jn=w.low,ir=vn.high,sr=vn.low,Zn=gn.high,Gn=gn.low,Kn=Fn.high,Vn=Fn.low,qn=zn.high,nr=zn.low,Hn=Un.high,lr=Un.low,cr=Wn.high,Qn=Wn.low,ar=tr,er=Yn,ur=Xn,hr=Jn,or=ir,mr=sr,dr=Zn,fr=Gn,vr=Kn,pr=Vn,yr=qn,br=nr,Sr=Hn,gr=lr,kr=cr,wr=Qn,Er=0;Er<80;Er++){var Pr,_r,Mr=b[Er];if(Er<16)_r=Mr.high=J[re+Er*2]|0,Pr=Mr.low=J[re+Er*2+1]|0;else{var Or=b[Er-15],Rr=Or.high,Lr=Or.low,jr=(Rr>>>1|Lr<<31)^(Rr>>>8|Lr<<24)^Rr>>>7,Gr=(Lr>>>1|Rr<<31)^(Lr>>>8|Rr<<24)^(Lr>>>7|Rr<<25),Hr=b[Er-2],Wr=Hr.high,Kr=Hr.low,ei=(Wr>>>19|Kr<<13)^(Wr<<3|Kr>>>29)^Wr>>>6,ni=(Kr>>>19|Wr<<13)^(Kr<<3|Wr>>>29)^(Kr>>>6|Wr<<26),ri=b[Er-7],mi=ri.high,gi=ri.low,li=b[Er-16],ci=li.high,ui=li.low;Pr=Gr+gi,_r=jr+mi+(Pr>>>0<Gr>>>0?1:0),Pr=Pr+ni,_r=_r+ei+(Pr>>>0<ni>>>0?1:0),Pr=Pr+ui,_r=_r+ci+(Pr>>>0<ui>>>0?1:0),Mr.high=_r,Mr.low=Pr}var yi=vr&yr^~vr&Sr,fi=pr&br^~pr&gr,bi=ar&ur^ar&or^ur&or,xi=er&hr^er&mr^hr&mr,si=(ar>>>28|er<<4)^(ar<<30|er>>>2)^(ar<<25|er>>>7),hi=(er>>>28|ar<<4)^(er<<30|ar>>>2)^(er<<25|ar>>>7),Si=(vr>>>14|pr<<18)^(vr>>>18|pr<<14)^(vr<<23|pr>>>9),di=(pr>>>14|vr<<18)^(pr>>>18|vr<<14)^(pr<<23|vr>>>9),pi=Pn[Er],Ci=pi.high,vi=pi.low,Jr=wr+di,Qr=kr+Si+(Jr>>>0<wr>>>0?1:0),Jr=Jr+fi,Qr=Qr+yi+(Jr>>>0<fi>>>0?1:0),Jr=Jr+vi,Qr=Qr+Ci+(Jr>>>0<vi>>>0?1:0),Jr=Jr+Pr,Qr=Qr+_r+(Jr>>>0<Pr>>>0?1:0),wi=hi+xi,xr=si+bi+(wi>>>0<hi>>>0?1:0);kr=Sr,wr=gr,Sr=yr,gr=br,yr=vr,br=pr,pr=fr+Jr|0,vr=dr+Qr+(pr>>>0<fr>>>0?1:0)|0,dr=or,fr=mr,or=ur,mr=hr,ur=ar,hr=er,er=Jr+wi|0,ar=Qr+xr+(er>>>0<Jr>>>0?1:0)|0}Yn=Bn.low=Yn+er,Bn.high=tr+ar+(Yn>>>0<er>>>0?1:0),Jn=w.low=Jn+hr,w.high=Xn+ur+(Jn>>>0<hr>>>0?1:0),sr=vn.low=sr+mr,vn.high=ir+or+(sr>>>0<mr>>>0?1:0),Gn=gn.low=Gn+fr,gn.high=Zn+dr+(Gn>>>0<fr>>>0?1:0),Vn=Fn.low=Vn+pr,Fn.high=Kn+vr+(Vn>>>0<pr>>>0?1:0),nr=zn.low=nr+br,zn.high=qn+yr+(nr>>>0<br>>>0?1:0),lr=Un.low=lr+gr,Un.high=Hn+Sr+(lr>>>0<gr>>>0?1:0),Qn=Wn.low=Qn+wr,Wn.high=cr+kr+(Qn>>>0<wr>>>0?1:0)},_doFinalize:function(){var J=this._data,re=J.words,Rn=this._nDataBytes*8,Bn=J.sigBytes*8;re[Bn>>>5]|=128<<24-Bn%32,re[(Bn+128>>>10<<5)+30]=Math.floor(Rn/4294967296),re[(Bn+128>>>10<<5)+31]=Rn,J.sigBytes=re.length*4,this._process();var w=this._hash.toX32();return w},clone:function(){var J=p.clone.call(this);return J._hash=this._hash.clone(),J},blockSize:1024/32});h.SHA512=p._createHelper(_),h.HmacSHA512=p._createHmacHelper(_)}(),f.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(f){return function(){var h=f,d=h.x64,p=d.Word,v=d.WordArray,m=h.algo,g=m.SHA512,y=m.SHA384=g.extend({_doReset:function(){this._hash=new v.init([new p.init(3418070365,3238371032),new p.init(1654270250,914150663),new p.init(2438529370,812702999),new p.init(355462360,4144912697),new p.init(1731405415,4290775857),new p.init(2394180231,1750603025),new p.init(3675008525,1694076839),new p.init(1203062813,3204075428)])},_doFinalize:function(){var x=g._doFinalize.call(this);return x.sigBytes-=16,x}});h.SHA384=g._createHelper(y),h.HmacSHA384=g._createHmacHelper(y)}(),f.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireX64Core())})(commonjsGlobal,function(f){return function(h){var d=f,p=d.lib,v=p.WordArray,m=p.Hasher,g=d.x64,y=g.Word,x=d.algo,Pn=[],b=[],_=[];(function(){for(var Rn=1,Bn=0,w=0;w<24;w++){Pn[Rn+5*Bn]=(w+1)*(w+2)/2%64;var vn=Bn%5,gn=(2*Rn+3*Bn)%5;Rn=vn,Bn=gn}for(var Rn=0;Rn<5;Rn++)for(var Bn=0;Bn<5;Bn++)b[Rn+5*Bn]=Bn+(2*Rn+3*Bn)%5*5;for(var Fn=1,zn=0;zn<24;zn++){for(var Un=0,Wn=0,tr=0;tr<7;tr++){if(Fn&1){var Yn=(1<<tr)-1;Yn<32?Wn^=1<<Yn:Un^=1<<Yn-32}Fn&128?Fn=Fn<<1^113:Fn<<=1}_[zn]=y.create(Un,Wn)}})();var J=[];(function(){for(var Rn=0;Rn<25;Rn++)J[Rn]=y.create()})();var re=x.SHA3=m.extend({cfg:m.cfg.extend({outputLength:512}),_doReset:function(){for(var Rn=this._state=[],Bn=0;Bn<25;Bn++)Rn[Bn]=new y.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(Rn,Bn){for(var w=this._state,vn=this.blockSize/2,gn=0;gn<vn;gn++){var Fn=Rn[Bn+2*gn],zn=Rn[Bn+2*gn+1];Fn=(Fn<<8|Fn>>>24)&16711935|(Fn<<24|Fn>>>8)&4278255360,zn=(zn<<8|zn>>>24)&16711935|(zn<<24|zn>>>8)&4278255360;var Un=w[gn];Un.high^=zn,Un.low^=Fn}for(var Wn=0;Wn<24;Wn++){for(var tr=0;tr<5;tr++){for(var Yn=0,Xn=0,Jn=0;Jn<5;Jn++){var Un=w[tr+5*Jn];Yn^=Un.high,Xn^=Un.low}var ir=J[tr];ir.high=Yn,ir.low=Xn}for(var tr=0;tr<5;tr++)for(var sr=J[(tr+4)%5],Zn=J[(tr+1)%5],Gn=Zn.high,Kn=Zn.low,Yn=sr.high^(Gn<<1|Kn>>>31),Xn=sr.low^(Kn<<1|Gn>>>31),Jn=0;Jn<5;Jn++){var Un=w[tr+5*Jn];Un.high^=Yn,Un.low^=Xn}for(var Vn=1;Vn<25;Vn++){var Yn,Xn,Un=w[Vn],qn=Un.high,nr=Un.low,Hn=Pn[Vn];Hn<32?(Yn=qn<<Hn|nr>>>32-Hn,Xn=nr<<Hn|qn>>>32-Hn):(Yn=nr<<Hn-32|qn>>>64-Hn,Xn=qn<<Hn-32|nr>>>64-Hn);var lr=J[b[Vn]];lr.high=Yn,lr.low=Xn}var cr=J[0],Qn=w[0];cr.high=Qn.high,cr.low=Qn.low;for(var tr=0;tr<5;tr++)for(var Jn=0;Jn<5;Jn++){var Vn=tr+5*Jn,Un=w[Vn],ar=J[Vn],er=J[(tr+1)%5+5*Jn],ur=J[(tr+2)%5+5*Jn];Un.high=ar.high^~er.high&ur.high,Un.low=ar.low^~er.low&ur.low}var Un=w[0],hr=_[Wn];Un.high^=hr.high,Un.low^=hr.low}},_doFinalize:function(){var Rn=this._data,Bn=Rn.words;this._nDataBytes*8;var w=Rn.sigBytes*8,vn=this.blockSize*32;Bn[w>>>5]|=1<<24-w%32,Bn[(h.ceil((w+1)/vn)*vn>>>5)-1]|=128,Rn.sigBytes=Bn.length*4,this._process();for(var gn=this._state,Fn=this.cfg.outputLength/8,zn=Fn/8,Un=[],Wn=0;Wn<zn;Wn++){var tr=gn[Wn],Yn=tr.high,Xn=tr.low;Yn=(Yn<<8|Yn>>>24)&16711935|(Yn<<24|Yn>>>8)&4278255360,Xn=(Xn<<8|Xn>>>24)&16711935|(Xn<<24|Xn>>>8)&4278255360,Un.push(Xn),Un.push(Yn)}return new v.init(Un,Fn)},clone:function(){for(var Rn=m.clone.call(this),Bn=Rn._state=this._state.slice(0),w=0;w<25;w++)Bn[w]=Bn[w].clone();return Rn}});d.SHA3=m._createHelper(re),d.HmacSHA3=m._createHmacHelper(re)}(Math),f.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){/** @preserve
61
+ `],...function({vnode:x,recurseCount:Pn}){const b=Pn>0?`... (${Pn} recursive calls)`:"",_=!!x.component&&x.component.parent==null,J=` at <${oe(x.component,x.type,_)}`,re=">"+b;return x.props?[J,...L(x.props),re]:[J+re]}(g))}),m}(d)),console.warn(...p)}}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(p){(function(v,m,g,y=!0){const x=m?m.vnode:null;if(m){let Pn=m.parent;const b=m.proxy,_=process.env.NODE_ENV!=="production"?N[g]:g;for(;Pn;){const re=Pn.ec;if(re){for(let Rn=0;Rn<re.length;Rn++)if(re[Rn](v,b,_)===!1)return}Pn=Pn.parent}const J=m.appContext.config.errorHandler;if(J)return void $(J,null,10,[v,b,_])}(function(Pn,b,_,J=!0){if(process.env.NODE_ENV!=="production"){const Rn=N[b];if(_&&(re=_,O.push(re)),C("Unhandled error"+(Rn?` during execution of ${Rn}`:"")),_&&O.pop(),J)throw Pn;console.error(Pn)}else console.error(Pn);var re})(v,g,x,y)})(p,u,f)}return d}let k=!1,M=!1;const D=[];let E=0;const I=[];let F=null,V=0;const z$1=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,p=D[d],v=G(p);v<u||v===u&&p.pre?f=d+1:h=d}return f}(c.id),0,c),U())}function U(){k||M||(M=!0,z$1.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,p)=>G(d)-G(p)),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 p of h){const v=K(p.type);H.has(v)||(v!==f.initialDef&&q(v,u),H.add(v)),p.appContext.propsCache.delete(p.type),p.appContext.emitsCache.delete(p.type),p.appContext.optionsCache.delete(p.type),p.ceReload?(H.add(v),p.ceReload(u.styles),H.delete(v)):p.parent?R(p.parent.update):p.appContext.reload?p.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}d=()=>{for(const p of h)H.delete(K(p.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=p=>{for(const v in p)if(p[v]===u)return v};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",p="minute",v="hour",m="day",g="week",y="month",x="quarter",Pn="year",b="date",_="Invalid Date",J=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,re=/\[([^\]]+)]|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,Rn={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(Jn){var ir=["th","st","nd","rd"],sr=Jn%100;return"["+Jn+(ir[(sr-20)%10]||ir[sr]||ir[0])+"]"}},Bn=function(Jn,ir,sr){var Zn=String(Jn);return!Zn||Zn.length>=ir?Jn:""+Array(ir+1-Zn.length).join(sr)+Jn},w={s:Bn,z:function(Jn){var ir=-Jn.utcOffset(),sr=Math.abs(ir),Zn=Math.floor(sr/60),Gn=sr%60;return(ir<=0?"+":"-")+Bn(Zn,2,"0")+":"+Bn(Gn,2,"0")},m:function Jn(ir,sr){if(ir.date()<sr.date())return-Jn(sr,ir);var Zn=12*(sr.year()-ir.year())+(sr.month()-ir.month()),Gn=ir.clone().add(Zn,y),Kn=sr-Gn<0,Vn=ir.clone().add(Zn+(Kn?-1:1),y);return+(-(Zn+(sr-Gn)/(Kn?Gn-Vn:Vn-Gn))||0)},a:function(Jn){return Jn<0?Math.ceil(Jn)||0:Math.floor(Jn)},p:function(Jn){return{M:y,y:Pn,w:g,d:m,D:b,h:v,m:p,s:d,ms:h,Q:x}[Jn]||String(Jn||"").toLowerCase().replace(/s$/,"")},u:function(Jn){return Jn===void 0}},vn="en",gn={};gn[vn]=Rn;var Fn="$isDayjsObject",zn=function(Jn){return Jn instanceof Yn||!(!Jn||!Jn[Fn])},Un=function Jn(ir,sr,Zn){var Gn;if(!ir)return vn;if(typeof ir=="string"){var Kn=ir.toLowerCase();gn[Kn]&&(Gn=Kn),sr&&(gn[Kn]=sr,Gn=Kn);var Vn=ir.split("-");if(!Gn&&Vn.length>1)return Jn(Vn[0])}else{var qn=ir.name;gn[qn]=ir,Gn=qn}return!Zn&&Gn&&(vn=Gn),Gn||!Zn&&vn},Wn=function(Jn,ir){if(zn(Jn))return Jn.clone();var sr=typeof ir=="object"?ir:{};return sr.date=Jn,sr.args=arguments,new Yn(sr)},tr=w;tr.l=Un,tr.i=zn,tr.w=function(Jn,ir){return Wn(Jn,{locale:ir.$L,utc:ir.$u,x:ir.$x,$offset:ir.$offset})};var Yn=function(){function Jn(sr){this.$L=Un(sr.locale,null,!0),this.parse(sr),this.$x=this.$x||sr.x||{},this[Fn]=!0}var ir=Jn.prototype;return ir.parse=function(sr){this.$d=function(Zn){var Gn=Zn.date,Kn=Zn.utc;if(Gn===null)return new Date(NaN);if(tr.u(Gn))return new Date;if(Gn instanceof Date)return new Date(Gn);if(typeof Gn=="string"&&!/Z$/i.test(Gn)){var Vn=Gn.match(J);if(Vn){var qn=Vn[2]-1||0,nr=(Vn[7]||"0").substring(0,3);return Kn?new Date(Date.UTC(Vn[1],qn,Vn[3]||1,Vn[4]||0,Vn[5]||0,Vn[6]||0,nr)):new Date(Vn[1],qn,Vn[3]||1,Vn[4]||0,Vn[5]||0,Vn[6]||0,nr)}}return new Date(Gn)}(sr),this.init()},ir.init=function(){var sr=this.$d;this.$y=sr.getFullYear(),this.$M=sr.getMonth(),this.$D=sr.getDate(),this.$W=sr.getDay(),this.$H=sr.getHours(),this.$m=sr.getMinutes(),this.$s=sr.getSeconds(),this.$ms=sr.getMilliseconds()},ir.$utils=function(){return tr},ir.isValid=function(){return this.$d.toString()!==_},ir.isSame=function(sr,Zn){var Gn=Wn(sr);return this.startOf(Zn)<=Gn&&Gn<=this.endOf(Zn)},ir.isAfter=function(sr,Zn){return Wn(sr)<this.startOf(Zn)},ir.isBefore=function(sr,Zn){return this.endOf(Zn)<Wn(sr)},ir.$g=function(sr,Zn,Gn){return tr.u(sr)?this[Zn]:this.set(Gn,sr)},ir.unix=function(){return Math.floor(this.valueOf()/1e3)},ir.valueOf=function(){return this.$d.getTime()},ir.startOf=function(sr,Zn){var Gn=this,Kn=!!tr.u(Zn)||Zn,Vn=tr.p(sr),qn=function(ur,hr){var or=tr.w(Gn.$u?Date.UTC(Gn.$y,hr,ur):new Date(Gn.$y,hr,ur),Gn);return Kn?or:or.endOf(m)},nr=function(ur,hr){return tr.w(Gn.toDate()[ur].apply(Gn.toDate("s"),(Kn?[0,0,0,0]:[23,59,59,999]).slice(hr)),Gn)},Hn=this.$W,lr=this.$M,cr=this.$D,Qn="set"+(this.$u?"UTC":"");switch(Vn){case Pn:return Kn?qn(1,0):qn(31,11);case y:return Kn?qn(1,lr):qn(0,lr+1);case g:var ar=this.$locale().weekStart||0,er=(Hn<ar?Hn+7:Hn)-ar;return qn(Kn?cr-er:cr+(6-er),lr);case m:case b:return nr(Qn+"Hours",0);case v:return nr(Qn+"Minutes",1);case p:return nr(Qn+"Seconds",2);case d:return nr(Qn+"Milliseconds",3);default:return this.clone()}},ir.endOf=function(sr){return this.startOf(sr,!1)},ir.$set=function(sr,Zn){var Gn,Kn=tr.p(sr),Vn="set"+(this.$u?"UTC":""),qn=(Gn={},Gn[m]=Vn+"Date",Gn[b]=Vn+"Date",Gn[y]=Vn+"Month",Gn[Pn]=Vn+"FullYear",Gn[v]=Vn+"Hours",Gn[p]=Vn+"Minutes",Gn[d]=Vn+"Seconds",Gn[h]=Vn+"Milliseconds",Gn)[Kn],nr=Kn===m?this.$D+(Zn-this.$W):Zn;if(Kn===y||Kn===Pn){var Hn=this.clone().set(b,1);Hn.$d[qn](nr),Hn.init(),this.$d=Hn.set(b,Math.min(this.$D,Hn.daysInMonth())).$d}else qn&&this.$d[qn](nr);return this.init(),this},ir.set=function(sr,Zn){return this.clone().$set(sr,Zn)},ir.get=function(sr){return this[tr.p(sr)]()},ir.add=function(sr,Zn){var Gn,Kn=this;sr=Number(sr);var Vn=tr.p(Zn),qn=function(lr){var cr=Wn(Kn);return tr.w(cr.date(cr.date()+Math.round(lr*sr)),Kn)};if(Vn===y)return this.set(y,this.$M+sr);if(Vn===Pn)return this.set(Pn,this.$y+sr);if(Vn===m)return qn(1);if(Vn===g)return qn(7);var nr=(Gn={},Gn[p]=u,Gn[v]=f,Gn[d]=c,Gn)[Vn]||1,Hn=this.$d.getTime()+sr*nr;return tr.w(Hn,this)},ir.subtract=function(sr,Zn){return this.add(-1*sr,Zn)},ir.format=function(sr){var Zn=this,Gn=this.$locale();if(!this.isValid())return Gn.invalidDate||_;var Kn=sr||"YYYY-MM-DDTHH:mm:ssZ",Vn=tr.z(this),qn=this.$H,nr=this.$m,Hn=this.$M,lr=Gn.weekdays,cr=Gn.months,Qn=Gn.meridiem,ar=function(hr,or,mr,dr){return hr&&(hr[or]||hr(Zn,Kn))||mr[or].slice(0,dr)},er=function(hr){return tr.s(qn%12||12,hr,"0")},ur=Qn||function(hr,or,mr){var dr=hr<12?"AM":"PM";return mr?dr.toLowerCase():dr};return Kn.replace(re,function(hr,or){return or||function(mr){switch(mr){case"YY":return String(Zn.$y).slice(-2);case"YYYY":return tr.s(Zn.$y,4,"0");case"M":return Hn+1;case"MM":return tr.s(Hn+1,2,"0");case"MMM":return ar(Gn.monthsShort,Hn,cr,3);case"MMMM":return ar(cr,Hn);case"D":return Zn.$D;case"DD":return tr.s(Zn.$D,2,"0");case"d":return String(Zn.$W);case"dd":return ar(Gn.weekdaysMin,Zn.$W,lr,2);case"ddd":return ar(Gn.weekdaysShort,Zn.$W,lr,3);case"dddd":return lr[Zn.$W];case"H":return String(qn);case"HH":return tr.s(qn,2,"0");case"h":return er(1);case"hh":return er(2);case"a":return ur(qn,nr,!0);case"A":return ur(qn,nr,!1);case"m":return String(nr);case"mm":return tr.s(nr,2,"0");case"s":return String(Zn.$s);case"ss":return tr.s(Zn.$s,2,"0");case"SSS":return tr.s(Zn.$ms,3,"0");case"Z":return Vn}return null}(hr)||Vn.replace(":","")})},ir.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ir.diff=function(sr,Zn,Gn){var Kn,Vn=this,qn=tr.p(Zn),nr=Wn(sr),Hn=(nr.utcOffset()-this.utcOffset())*u,lr=this-nr,cr=function(){return tr.m(Vn,nr)};switch(qn){case Pn:Kn=cr()/12;break;case y:Kn=cr();break;case x:Kn=cr()/3;break;case g:Kn=(lr-Hn)/6048e5;break;case m:Kn=(lr-Hn)/864e5;break;case v:Kn=lr/f;break;case p:Kn=lr/u;break;case d:Kn=lr/c;break;default:Kn=lr}return Gn?Kn:tr.a(Kn)},ir.daysInMonth=function(){return this.endOf(y).$D},ir.$locale=function(){return gn[this.$L]},ir.locale=function(sr,Zn){if(!sr)return this.$L;var Gn=this.clone(),Kn=Un(sr,Zn,!0);return Kn&&(Gn.$L=Kn),Gn},ir.clone=function(){return tr.w(this.$d,this)},ir.toDate=function(){return new Date(this.valueOf())},ir.toJSON=function(){return this.isValid()?this.toISOString():null},ir.toISOString=function(){return this.$d.toISOString()},ir.toString=function(){return this.$d.toUTCString()},Jn}(),Xn=Yn.prototype;return Wn.prototype=Xn,[["$ms",h],["$s",d],["$m",p],["$H",v],["$W",m],["$M",y],["$y",Pn],["$D",b]].forEach(function(Jn){Xn[Jn[1]]=function(ir){return this.$g(ir,Jn[0],Jn[1])}}),Wn.extend=function(Jn,ir){return Jn.$i||(Jn(ir,Yn,Wn),Jn.$i=!0),Wn},Wn.locale=Un,Wn.isDayjs=zn,Wn.unix=function(Jn){return Wn(1e3*Jn)},Wn.en=gn[vn],Wn.Ls=gn,Wn.p={},Wn}()),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 p=me.call(u);return d&&(f?u[be]=h:delete u[be]),p}(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,p,v){p=="__proto__"&&Ue?Ue(d,p,{configurable:!0,enumerable:!0,value:v,writable:!0}):d[p]=v}(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),p=!f&&!h&&!d&&ft(c),v=f||h||d||p,m=v?function(x,Pn){for(var b=-1,_=Array(x);++b<x;)_[b]=Pn(b);return _}(c.length,String):[],g=m.length;for(var y in c)!pt.call(c,y)||v&&(y=="length"||d&&(y=="offset"||y=="parent")||p&&(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,p=0,v=[];++h<d;){var m=u[h];f(m,h,u)&&(v[p++]=m)}return v}(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(p,v){for(var m=-1,g=v.length,y=p.length;++m<g;)p[y+m]=v[m];return p}(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,p,v,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((v=c).buffer),new v.constructor(m,v.byteOffset,v.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(p=new(d=c).constructor(d.source,Xt.exec(d))).lastIndex=d.lastIndex,p;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,p){var v;if(v!==void 0)return v;if(!Ae(c))return c;var m=Se(c);if(m)v=function(b){var _=b.length,J=new b.constructor(_);return _&&typeof b[0]=="string"&&qt.call(b,"index")&&(J.index=b.index,J.input=b.input),J}(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)v=y?{}:function(b){return typeof b.constructor!="function"||qe(b)?{}:Re(Tt(b))}(c);else{if(!un[g])return d?c:{};v=tn(c,g)}}p||(p=new Nt);var x=p.get(c);if(x)return x;p.set(c,v),an(c)?c.forEach(function(b){v.add(dn(b,u,f,b,c,p))}):on(c)&&c.forEach(function(b,_){v.set(_,dn(b,u,f,_,c,p))});var Pn=m?void 0:Dt(c);return function(b,_){for(var J=-1,re=b==null?0:b.length;++J<re&&_(b[J],J,b)!==!1;);}(Pn||c,function(b,_){Pn&&(b=c[_=b]),He(v,_,dn(b,u,f,_,c,p))}),v}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 pn=(c,u)=>{const f=Object.assign({dayjs:ce},u);let h="";const d=[];for(const m in f)h+=`${m},`,d.push(f[m]);h=h.replace(/,$/,"");const p=`function (${h}){return ${c}}`;let v;try{v=Function(`"use strict";return (${p})`)()(...d)}catch{return c}return v},hn=(c="",{textData:u,codeData:f}={},{useNewline:h=!1,useSpace:d=!1}={})=>{const p=window.config||{},v=Object.assign(Object.assign({},p),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 _=0;_<b.length;_++){const J=b[_],re=v[J];re!=null&&typeof re!="function"&&(x=x.replace(J,re))}(/\(.*\)/g.test(x)||/[+/\\*]/g.test(x))&&(x=pn(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,"&nbsp;&nbsp;")),c=c.replace(/Qfw\((.*?)\)/,(g,y)=>u!=null&&u.Qfw?u==null?void 0:u.Qfw(y):y)},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:p=""}=c;if(d===5&&(f!=null&&f.length)&&(h!=null&&h.length)&&p){const v=f[0].split("-");(v==null?void 0:v.length)>1&&v[0]==="rangeValue"&&(c.calcWays=((m,g={})=>{const{around:y,unit:x,id:Pn}=m;let b="";const{pageMode:_="",componentList:J=[]}=(g==null?void 0:g.graphicConfig)||{};let re=null,Rn=null;if(_==="design"){const Bn=J==null?void 0:J.find(Wn=>Wn.id===Pn);if(!Bn)return[];const{interval:w,intervalUnit:vn,startTime:gn,endTime:Fn,operate:zn,useCurrentTime:Un}=Bn||{};if(Un&&(re=ce().subtract(w,vn),Rn=ce()),gn&&(re=ce(gn)),Fn&&(Rn=ce(Fn)),zn){const{type:Wn,value:tr,mode:Yn}=zn;switch(Wn){case"add":re=re&&re.add(tr,Yn),Rn=Rn&&Rn.add(tr,Yn);break;case"minus":re=re&&re.subtract(tr,Yn),Rn=Rn&&Rn.subtract(tr,Yn)}}}else{const Bn=An(Pn)||{};j(Bn.startTime)&&(re=ce(j(Bn.startTime))),j(Bn.endTime)&&(Rn=ce(j(Bn.endTime)))}return re&&Rn&&(b=`${y==="before"?"-":""}${Rn.diff(re,x.toLowerCase())+1}`),b?[b]:[]})({around:v[1],unit:h[0],id:p})),delete c.radioValue}if(mn(c,"dataType")){if(c.fieldType==="DATE"&&(c.label=c.fieldName),c.dataType==="component")if(c.fieldValue==="PARENT"){let v=c.modelKey;v&&c.prop&&(v+=`-${c.prop}`),c.fieldValue="${"+v+"}"}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(p=>p.join&&p.conditions);h.conditions.forEach((p,v)=>{jn(p,u);const m={};if(v<h.conditions.length-1&&(m.join=h.join),d)f.push(Object.assign(Object.assign({},m),p));else if(p.join&&p.conditions){const g=u?"sqlConditions":"conditions";f.push(Object.assign({[g]:_n([p],u)},m))}else f.push(Object.assign(Object.assign({},m),p))})}else jn(h,u),f.push(h)}),f},On=(c={},u)=>{if(c!=null&&c.sortCpnts&&u){const gn=kn(c);gn&&(u.sort=gn)}const{label:f,name:h,location:d,show:p,indexCode:v,indexCodeNum:m,calcType:g="COLUMN",builtInFormula:y,builtInValueSource:x,builtInCalcWay:Pn,formula:b,conditions:_,aggregate:J,distinct:re,dimByCount:Rn,dataTo:Bn}=c;let w;if(_&&(w=_n(_)),g==="COMPONENT"){const gn={};return Nn(gn,x),{label:f.trim(),columnName:h,show:p,calcType:g,componentAlias:Pn,componentValue:gn.fieldValue||null}}const vn={label:f.trim(),columnName:h,location:d,show:p,calcType:Bn==="1"?"VIEW":g,hrpIndexCode:v,hrpIndexCodeNum:m,aggregate:J,builtInFormula:y,builtInValueSource:x,formula:b,conditions:w};if(y!=="DATE_OFFSET")return h==="the_count"&&(vn.calcType="AGGREGATE",vn.distinct=!!re,vn.typeGuid=Rn),Object.assign(Object.assign({},vn),{builtInCalcWay:Pn});{const gn=Pn.split("-");if((gn==null?void 0:gn.length)===3){let Fn=gn[0];return gn[2]==="before"&&gn[0]!=="0"&&(Fn=`-${gn[0]}`),Object.assign(Object.assign({},vn),{calcWays:[Fn],dateCalcTypes:[gn[1]]})}}},Cn=c=>{if(!c)return[];const u=fn((c==null?void 0:c.controlList)||[]).filter(J=>J.conditionKey!=="parentCode"),{classificationList:f=[],rowHeaderList:h=[],dimensionList:d=[],seriesList:p=[],leftAxisList:v=[],rightAxisList:m=[],queryColumnList:g=[],indicators:y=[]}=c;Tn(u);const x=[...f,...h,...d,...p,...v,...m,...g,...y],Pn=[];for(const J of x){const re=bn((J==null?void 0:J.conditions)||[]);if(re!=null&&re.length){const Rn=re.filter(Bn=>(Bn==null?void 0:Bn.dataType)==="component").map(Bn=>{const w={};return Bn!=null&&Bn.dateFormat&&(w.format=Bn.dateFormat),Bn.fieldValue==="PARENT"&&(w.id="PARENT",w.keyName=Bn.modelKey,w.modelKey=Bn.modelKey,w.prop=Bn.prop),Object.assign({conditionKey:Bn.fieldName,conditionLabel:Bn.fieldName,conditionName:Bn.fieldName,conditionValueType:Bn.fieldType,id:Bn.componentId,keyName:Bn.fieldValue,rule:Bn.rule,notGlobal:!0,indexCode:Bn.indexCode,typeGuid:Bn.typeGuid,indexCodeNum:Bn.indexCodeNum},w)});if(Rn!=null&&Rn.length)for(const Bn of Rn)Pn.find(w=>w.keyName===Bn.keyName)||Pn.push(Bn)}}const b=Pn.length,_=u;for(let J=0;J<b;J++){const re=Pn[J];if((re==null?void 0:re.conditionKey)==="parentCode")continue;const{id:Rn,keyName:Bn,prop:w,format:vn,modelKey:gn,dataType:Fn="component",customValue:zn}=re,Un=Ln(re);Nn(Un,Rn,{prop:w,dateFormat:vn,modelKey:gn,keyName:Bn}),Fn===""&&(Un.fieldValue=zn||""),_.push(Un)}for(let J=_.length-1;J>=0;J--){const re=_[J];re.globalCondition||bn(_).find(Rn=>Rn.alias===re.alias&&Rn.globalCondition)&&_.splice(J,1)}return _};function Ln(c){const{id:u,keyName:f,conditionLabel:h,conditionKey:d,conditionValueType:p,prop:v,rule:m="NONE",notGlobal:g=!1,indexCode:y,typeGuid:x,indexCodeNum:Pn,dataType:b="component"}=c;let _=f||u;_&&v&&(_+=`-${v}`);let J=m;return J==="NONE"&&(J=["startTime","endTime"].includes(v)?v==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":f!=null&&f.includes("startTime")?v==="GREATER_EQUAL":f!=null&&f.includes("endTime")?v==="LESS_EQUAL":"EQUAL"),u==="PARENT"&&(_=c.modelKey,_&&v&&(_+=`-${v}`),J=m),{rule:J,label:h,fieldName:d,fieldValue:"",valueType:p,alias:_,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:p,format:v,dataType:m="component",customValue:g}=u,y=Ln(u);Nn(y,f,{prop:d,dateFormat:v,modelKey:p,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:p="",keyName:v="",operateValue:m,operateMode:g,operateType:y}=f||{},x=p||v;if(u==="PARENT"&&x&&h){const w=window.config.record;let vn=h,gn=d;const Fn=h.match(/\{(.+?)\}/g);if(Fn!=null&&Fn.length){const zn=Fn[0].slice(1,-1).trim();vn=h.replace(Fn[0],""),gn=zn,c.dateFormat=gn}if(w&&w[x]){const zn=j(w[x][vn]);ce.isDayjs(zn)?c.fieldValue=zn.format(gn||"YYYY-MM-DD"):c.fieldValue=zn}return}const Pn=An(u)||{},{value:b,format:_="YYYY-MM-DD",type:J="",useCurrentTime:re,RECORD:Rn}=Pn||{},Bn=d||_;if(yn(Pn.type,"date")){let w;if(w=re?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(Bn),c.dateFormat=Bn}else if(J==="ecanRangePicker"){let w=h;if(!h){const gn=v&&v.split("-");gn!=null&&gn.length&&(w=gn[gn.length-1])}if(!w)return;let vn=null;if(j(Pn[w])&&(vn=ce(j(Pn[w]))),m&&g&&y){if(m==="rangeValue"){if(Pn.startTime&&Pn.endTime){const gn=j(Pn.endTime).diff(j(Pn.startTime),g)+1;switch(y){case"add":vn=vn&&vn.add(gn,g);break;case"minus":vn=vn&&vn.subtract(gn,g)}}}else if(!isNaN(+m))switch(y){case"add":vn=vn&&vn.add(m,g);break;case"minus":vn=vn&&vn.subtract(m,g)}}if(vn&&(c.fieldValue=vn==null?void 0:vn.format(Bn)),w==="rangeValue"&&Pn.startTime&&Pn.endTime){const gn=function(Fn){const zn=Fn.split("-");let Un="";if(zn!=null&&zn.length)switch(zn[zn.length-1]){case"YYYY":Un="year";break;case"MM":Un="month";break;case"DD":Un="day"}return Un}(Bn);gn&&(c.fieldValue=j(Pn.endTime).diff(j(Pn.startTime),gn)+1)}c.dateFormat=Bn}else yn(J,xn)?c.fieldValue=p&&Rn?Rn[p]:!p&&Rn?Rn.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 p=[],v=[],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,p.push(g.label),(u=g.columnName)===null||u===void 0?void 0:u.includes("_ecanrepeat_")){const y=g.columnName.split("_ecanrepeat_");v.push(y[0])}else v.push(g.columnName);m.push(g.order)}return h!=="CUSTOM"&&(p==null?void 0:p.length)>1&&(h="COMBINATION"),h==="CUSTOM"?{label:p.join(","),columnName:v.join(","),type:h,customOrderColumns:d}:{label:p.join(","),columnName:v.join(","),order:m.join(","),type:h}}return c},kn=c=>{const{sortCpnts:u=[]}=c;let f,h="";for(const d of u){const p=An(d)||{},{type:v,RECORD:m}=p;if(yn(v,"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,p,v,m,g,y,x,Pn;const{graphicConfig:b,type:_,globalModel:J,isGroupTable:re=!1}=c;J&&(wn=J);const Rn=yn(_,"pivottable");let Bn,{source:w,dataViewId:vn,plugin:gn="1",layer:Fn,chartType:zn,classificationList:Un=[],rowHeaderList:Wn=[],dimensionList:tr=[],seriesList:Yn=[],leftAxisList:Xn=[],rightAxisList:Jn=[],queryColumnList:ir=[],indicators:sr=[],controlList:Zn=[],formFields:Gn={},variableList:Kn=[],variableConditions:Vn=[],dataSourceId:qn="",idxLibMode:nr,preview:Hn=!1,edvDataSetId:lr}=b||{},cr=[];if((b==null?void 0:b.pageMode)==="design"?(cr=((f=b.sqlConditions)!==null&&f!==void 0?f:[]).map(yr=>{const br={};if(mn(yr,"globalCondition")||yr.join||(br.globalCondition=!0),!yr.join){const Sr=yr.rule||"EQUAL";br.rule=Sr==="NONE"?"EQUAL":Sr}return Object.assign(Object.assign({},yr),br)}),Vn!=null&&Vn.length&&(cr=cr.concat(Vn))):(cr=Cn(b),Kn!=null&&Kn.length&&(cr=cr.concat(function(yr){const br=[];if(yr!=null&&yr.length){for(const Sr of yr)if(Sr.variableName){const gr={variateName:Sr.variableName,globalCondition:!1,valueType:Sr.variableType,alias:Sr.keyName||""};Nn(gr,Sr.id,{dateFormat:Sr.format,prop:Sr.dateTypeValue,keyName:Sr.keyName,operateType:Sr.operateType,operateMode:Sr.operateMode,operateValue:Sr.operateValue}),Sr.dataType===""&&(gr.fieldValue=Sr.variableValue),Sr.format&&(gr.dateFormat=Sr.format),Sr.label&&(gr.label=Sr.label),br.push(gr)}}return br}(Kn)))),cr==null?void 0:cr.length){const yr=cr.filter(Sr=>Sr.globalCondition),br=cr.filter(Sr=>!Sr.globalCondition);(yr==null?void 0:yr.length)>1&&(cr=[{join:"&&",conditions:yr},...br])}cr!=null&&cr.length&&(cr=_n(cr,"1")),Fn==null&&(Fn=yn(_,["table","card"])||yn(_,["list","circulate"])&&(Un==null?void 0:Un.length)>1?"1":yn(_,["select","checkbox","radio"])?"3":"2");const Qn=[];let ar,er="";if(Array.isArray(Un)&&Un.length>0&&(!["ecanList","ecanCirculate"].includes(_)||(Un==null?void 0:Un.length)===1)){const yr=Un.length;for(let br=0;br<yr;br++){const Sr=Un[br]||{},{label:gr="",name:kr="",show:wr=!1,sort:Er,customGroup:Tr,conditions:_r,dateFormat:Mr,typeGuid:Or="",truncations:Rr=[]}=Sr;if(wr||yr===1){er=Or,Bn={label:gr.trim(),columnName:kr,show:wr,sort:kn(Sr)||$n(Er)||Er,customGroup:Tr,conditions:_n(_r),typeGuid:Or},Mr&&(Bn.dateFormat=Mr),kr!=="the_date"||Bn.dateFormat||(Bn.dateFormat="YYYY-MM");const Lr={};if(Array.isArray(Rr)&&Rr.length>0){const jr=Rr.length;for(let Gr=0;Gr<jr;Gr++){const Hr=Rr[Gr]||{},{rule:Wr="",num:Kr=0,name:ei=""}=Hr;Wr&&Kr&&(Lr.num=Kr,Lr.rule=Wr,ei&&(Lr.otherGroupName=ei))}}if(!((h=Object.keys(Lr))===null||h===void 0)&&h.length&&(Bn.truncation=Lr),!yn(_,["scatter","valueline"]))break;Qn.push(Bn)}}}if(Array.isArray(Yn)&&Yn.length>0){const yr=Yn.length;for(let br=0;br<yr;br++){const Sr=Yn[br]||{},{label:gr="",name:kr="",show:wr=!1,sort:Er,customGroup:Tr,conditions:_r,typeGuid:Mr}=Sr;if(wr||yr===1){ar={label:gr.trim(),columnName:kr,show:wr,sort:$n(Er),customGroup:Tr,conditions:_n(_r),typeGuid:Mr};break}}}const ur=[];Xn==null||Xn.forEach(yr=>{yr.location="LEFT",ur.push(On(yr,Bn))}),Jn==null||Jn.forEach(yr=>{yr.location="RIGHT",ur.push(On(yr,Bn))});let hr=sr;!((p=(d=u==null?void 0:u.pivotTableCal)===null||d===void 0?void 0:d.indicators)===null||p===void 0)&&p.length&&(hr=u.pivotTableCal.indicators),hr==null||hr.forEach(yr=>{yr.location="LEFT",ur.push(On(yr,Bn))});const or=[];["ecanList","ecanCirculate"].includes(_)&&(Un==null?void 0:Un.length)>1&&(ir=Un),!((m=(v=u==null?void 0:u.pivotTableCal)===null||v===void 0?void 0:v.dimensions)===null||m===void 0)&&m.length&&(ir=u.pivotTableCal.dimensions),ir==null||ir.forEach(yr=>{const{label:br,name:Sr,location:gr,show:kr,indexCode:wr,sort:Er,typeGuid:Tr,indexCodeNum:_r,dateFormat:Mr,conditions:Or}=yr;let Rr=$n(Er);if(u.sort){const{field:jr,order:Gr}=u.sort;let Hr=ur.find(Wr=>Wr.label===jr);Hr||br!==jr||(Hr=yr),Hr&&(Rr={columnName:Hr.columnName,label:u.sort.field,order:Gr.toUpperCase(),type:"NORMAL"})}const Lr={label:br,columnName:Sr,location:gr,show:kr,sort:Rr,calcType:"COLUMN",hrpIndexCode:wr,hrpIndexCodeNum:_r,conditions:_n(Or),typeGuid:Tr};Mr&&(Lr.dateFormat=Mr),Sr!=="the_date"||Lr.dateFormat||(Lr.dateFormat="YYYY-MM"),or.push(Lr)});let mr=[],dr=[];if(Array.isArray(Wn)&&Wn.length>0?dr=Wn:Array.isArray(tr)&&tr.length>0&&(dr=tr),dr==null?void 0:dr.length){const yr=dr.length;for(let br=0;br<yr;br++){const Sr=dr[br]||{},{label:gr="",name:kr="",show:wr=!1,sort:Er,customGroup:Tr,conditions:_r,truncations:Mr,typeGuid:Or="",dateFormat:Rr}=Sr;let Lr=$n(Er);if(u.sort){const{field:Hr,order:Wr}=u.sort;let Kr=ur.find(ei=>ei.label===Hr);Kr||Sr.label!==Hr||(Kr=Sr),Kr&&(Lr={columnName:Kr.columnName,label:u.sort.field,order:Wr.toUpperCase(),type:"NORMAL"})}const jr={label:gr.trim(),columnName:kr,show:wr,sort:Lr,customGroup:Tr,conditions:_n(_r),typeGuid:Or};Rr&&(jr.dateFormat=Rr),kr!=="the_date"||jr.dateFormat||(jr.dateFormat="YYYY-MM");const Gr={};if(Array.isArray(Mr)&&Mr.length>0){const Hr=Mr.length;for(let Wr=0;Wr<Hr;Wr++){const Kr=Mr[Wr]||{},{rule:ei="",num:ni=0,name:ri=""}=Kr;ei&&ni&&(Gr.num=ni,Gr.rule=ei,ri&&(Gr.otherGroupName=ri))}}!((g=Object.keys(Gr))===null||g===void 0)&&g.length&&(jr.truncation=Gr),mr.push(jr)}}let fr,vr,pr=[];if(u!=null&&u.pivotTableCal){let yr=[];const{calc:br=[],filter:Sr=[],truncations:gr=[],sorts:kr=[],aggregateMethod:wr=[],rowDimensionKeys:Er=[],colDimensionKeys:Tr=[]}=u.pivotTableCal;if(ur.push(...br),Sr==null?void 0:Sr.length)for(const _r of Sr){const{type:Mr}=_r,Or=e(_r,["type"]);Mr==="indicators"?yr=ur:Mr==="dimension"&&(yr=or);const Rr=yr.find(Lr=>Lr.columnName===_r.fieldName);Rr&&(Rr.conditions||(Rr.conditions=[]),Rr.conditions.push(Or))}if(gr!=null&&gr.length)for(const _r of gr){const Mr=or.find(Or=>Or.columnName===_r.key);Mr&&(Mr.truncation={num:_r.num,rule:_r.rule})}if(kr!=null&&kr.length)for(const _r of kr){const{fieldType:Mr,columnData:Or}=_r,Rr=e(_r,["fieldType","columnData"]);Mr==="indicators"?(yr=ur,fr=Or):Mr==="dimension"&&(yr=or);const Lr=yr.find(jr=>jr.label===Rr.label);Lr&&(Lr.sort=Object.assign(Object.assign({},Rr),{columnName:Lr.columnName}))}if(!((y=Object.keys(wr))===null||y===void 0)&&y.length)for(const _r in wr){const Mr=or.find(Or=>Or.label===_r);Mr&&(!((x=wr[_r])===null||x===void 0)&&x.length)&&(Mr.aggregateMethod=wr[_r])}mr=[],pr=[];for(const _r of or)Er.includes(_r.columnName)?mr.push(_r):Tr.includes(_r.columnName)&&pr.push(_r)}if(yn(_,["text","proportion","counter"])?zn="zb":yn(_,["valueline"])&&(zn="valueline"),re||_==="card"){if(mr.length===0||ur.length===0)return;zn="grouptable"}else if(Fn==="1"&&or.length===0||Fn==="2"&&ur.length===0||!(Fn!=="3"||(er||w==="EDV_DATA_SET")&&Gn.labelField&&Gn.valueField)||Fn==="3"&&_==="ecanDataSelect"&&ur.length===0)return;if(tr!=null&&tr.length&&(Fn="1",zn="grouptable"),!yn(_,["scatter","valueline"])&&((Pn=Object.keys(Gn))===null||Pn===void 0?void 0:Pn.length)){const yr=bn(Zn).find(Sr=>Sr.conditionKey==="parentCode"),br={};if(yr){const Sr=An(yr.id)||{};if(!(Sr!=null&&Sr.itemCodes))return;br.parentItemCodes=Sr.itemCodes}_==="ecanDataSelect"&&(br.indicatorList=ur.filter(Sr=>Sr.show)),w==="EDV_DATA_SET"&&(br.edvDataSetId=lr),vr=Object.assign({url:"/diagram/formData",source:w,dataViewId:vn,plugin:"4",layer:Fn,chartType:"normalSelect",rangeIndexTypeGuid:er,type:_==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:Gn.labelField,valueField:Gn.valueField,sqlConditions:cr,idxLibMode:"WITH_DATE_DIM_TABLE",dataSourceId:qn,keyName:c.keyName},br)}else{let yr={};yr=yn(_,["scatter","valueline"])?{classifications:Qn}:{classification:Bn},vr=Object.assign({url:"/diagram",source:w,dataViewId:vn,plugin:Rn?"5":gn,layer:Fn,chartType:Rn?"pivot-table":zn,series:ar,indicatorList:ur,queryColumns:re?[]:or,pageFlag:!0,edvDataSetId:lr||"",sqlConditions:cr.map(br=>{const{fieldValue:Sr}=br,gr={};return Sr&&Array.isArray(Sr)&&(gr.fieldValue=JSON.stringify(Sr)),Object.assign(Object.assign({},br),gr)}),idxLibMode:nr,dataSourceId:qn,preview:Hn,rowHeaders:mr,keyName:c.keyName,columnData:fr,columnHeaders:pr},yr)}return vr},Dn=(c=[],u,f=!1)=>{let{name:h="name",types:d=[]}=u||{};h=(h==null?void 0:h.trim())||h;const p=new Set,v=new Map,m=c.length,g=d.length;if(m!==1||f)for(let Pn=0;Pn<m;Pn++){const b=c[Pn],_=b[h];p.add(_);for(let J=0;J<g;J++){const re=d[J],{label:Rn,value:Bn}=re,w=Object.assign(Object.assign({},b),{value:b[Bn]});if(v.has(Rn)){const vn=v.get(Rn);vn.push(w),v.set(Rn,vn)}else v.set(Rn,[w])}}else{const Pn=[];for(let _=0;_<g;_++){const J=d[_],{label:re,value:Rn}=J,Bn=Object.assign(Object.assign({},c[0]),{value:c[0][Rn]});p.add(re),Pn.push(Bn)}const b=c[0][h]||"";v.set(b,Pn)}const y=Array.from(p),x=[];for(const[Pn,b]of v)x.push({name:Pn,data:b});return{dimensions:y,dataset:x}},En=(c,u)=>{let{name:f="name",value:h="value",type:d="type"}=u||{};f=f==null?void 0:f.trim(),h=h==null?void 0:h.trim(),d=d==null?void 0:d.trim();const p=new Map,v=c.length;for(let y=0;y<v;y++){const x=c[y],Pn=x[f]||"",b=x[h]||"",_=x[d]||"";if(p.has(_)){const J=p.get(_);J.push(Object.assign({name:Pn,value:b},x)),p.set(_,J)}else p.set(_,[Object.assign({name:Pn,value:b},x)])}const m=[],g=[];for(const[y,x]of p)if(g.push({name:y,data:x}),x==null?void 0:x.length)if(m.length)for(const Pn of x)m.includes(Pn.name)||m.push(Pn.name);else m.push(...x.map(Pn=>Pn.name));return{dimensions:m,dataset:g}},In=(c,u)=>{var f;if(c==null)return u;const h=c.match(/\{.*\}/g);if(h==null||h.length===0)return u;const d=h.length;for(let p=0;p<d;p++){const v=h[p];if(v==null||v==="")break;let m=(f=v.slice(1,-1))===null||f===void 0?void 0:f.trim();m=m==null?void 0:m.replace(/value/g,u);try{let g=m;(/\(.*\)/g.test(m)||/[+/\\*]/g.test(m))&&(g=pn(m)),c=c.replace(v,g)}catch{c=c.replace(v,m)}}return c},styleList=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","lineHeight","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","borderWidth","borderStyle","borderRadius","borderColor","textShadow","justifyContent","alignItems","zIndex","scale"],usePickComponentStyle=(c,u=[])=>{const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),h=lodashEs.without(styleList,...u);return vue.computed(()=>{var v,m;const d=lodashEs.pick(c,h),p=["width","height","top","left"];for(const g of p)mn(d,g)&&(["width","height"].includes(g)&&((v=c[g])==null?void 0:v.suffix)==="%"&&vue.unref(f)==="design"?d[g]="100%":(m=c[g])!=null&&m.suffix&&(d[g]=(c[g].value||0)+c[g].suffix));return d})},useOnEvent=(c,u)=>{vue.watch(()=>c.id,f=>{const h=vue.inject(EVENT_BUS,{onEvent:(d,p)=>{}});f!=null&&f!==""&&h.onEvent(f,u)},{immediate:!0})},useEmitEvent=c=>{const u=c.events,f=c.id,h=vue.inject(EVENT_BUS,{emitEvent:(p,v,m)=>{}}),{touchEventId:d}=vue.inject(GLOBAL_CONFIG,{touchEventId:vue.ref("")});return(p,v=()=>{},m)=>function(){v.call(this,...arguments);const{emitEvent:g}=h;u.forEach(y=>{if(p===y.on)try{d.value=f,m?g(y.target,y.emit,m):g(y.target,y.emit)}catch(x){console.error(x)}})}};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}function getAugmentedNamespace(c){if(c.__esModule)return c;var u=c.default;if(typeof u=="function"){var f=function h(){return this instanceof h?Reflect.construct(u,arguments,this.constructor):u.apply(this,arguments)};f.prototype=u.prototype}else f={};return Object.defineProperty(f,"__esModule",{value:!0}),Object.keys(c).forEach(function(h){var d=Object.getOwnPropertyDescriptor(c,h);Object.defineProperty(f,h,d.get?d:{enumerable:!0,get:function(){return c[h]}})}),f}var cryptoJs={exports:{}};function commonjsRequire(c){throw new Error('Could not dynamically require "'+c+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(c,u){(function(f,h){c.exports=h()})(commonjsGlobal,function(){var f=f||function(h,d){var p;if(typeof window<"u"&&window.crypto&&(p=window.crypto),typeof self<"u"&&self.crypto&&(p=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(p=globalThis.crypto),!p&&typeof window<"u"&&window.msCrypto&&(p=window.msCrypto),!p&&typeof commonjsGlobal<"u"&&commonjsGlobal.crypto&&(p=commonjsGlobal.crypto),!p&&typeof commonjsRequire=="function")try{p=require$$0}catch{}var v=function(){if(p){if(typeof p.getRandomValues=="function")try{return p.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof p.randomBytes=="function")try{return p.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},m=Object.create||function(){function w(){}return function(vn){var gn;return w.prototype=vn,gn=new w,w.prototype=null,gn}}(),g={},y=g.lib={},x=y.Base=function(){return{extend:function(w){var vn=m(this);return w&&vn.mixIn(w),(!vn.hasOwnProperty("init")||this.init===vn.init)&&(vn.init=function(){vn.$super.init.apply(this,arguments)}),vn.init.prototype=vn,vn.$super=this,vn},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var vn in w)w.hasOwnProperty(vn)&&(this[vn]=w[vn]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),Pn=y.WordArray=x.extend({init:function(w,vn){w=this.words=w||[],vn!=d?this.sigBytes=vn:this.sigBytes=w.length*4},toString:function(w){return(w||_).stringify(this)},concat:function(w){var vn=this.words,gn=w.words,Fn=this.sigBytes,zn=w.sigBytes;if(this.clamp(),Fn%4)for(var Un=0;Un<zn;Un++){var Wn=gn[Un>>>2]>>>24-Un%4*8&255;vn[Fn+Un>>>2]|=Wn<<24-(Fn+Un)%4*8}else for(var tr=0;tr<zn;tr+=4)vn[Fn+tr>>>2]=gn[tr>>>2];return this.sigBytes+=zn,this},clamp:function(){var w=this.words,vn=this.sigBytes;w[vn>>>2]&=4294967295<<32-vn%4*8,w.length=h.ceil(vn/4)},clone:function(){var w=x.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var vn=[],gn=0;gn<w;gn+=4)vn.push(v());return new Pn.init(vn,w)}}),b=g.enc={},_=b.Hex={stringify:function(w){for(var vn=w.words,gn=w.sigBytes,Fn=[],zn=0;zn<gn;zn++){var Un=vn[zn>>>2]>>>24-zn%4*8&255;Fn.push((Un>>>4).toString(16)),Fn.push((Un&15).toString(16))}return Fn.join("")},parse:function(w){for(var vn=w.length,gn=[],Fn=0;Fn<vn;Fn+=2)gn[Fn>>>3]|=parseInt(w.substr(Fn,2),16)<<24-Fn%8*4;return new Pn.init(gn,vn/2)}},J=b.Latin1={stringify:function(w){for(var vn=w.words,gn=w.sigBytes,Fn=[],zn=0;zn<gn;zn++){var Un=vn[zn>>>2]>>>24-zn%4*8&255;Fn.push(String.fromCharCode(Un))}return Fn.join("")},parse:function(w){for(var vn=w.length,gn=[],Fn=0;Fn<vn;Fn++)gn[Fn>>>2]|=(w.charCodeAt(Fn)&255)<<24-Fn%4*8;return new Pn.init(gn,vn)}},re=b.Utf8={stringify:function(w){try{return decodeURIComponent(escape(J.stringify(w)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(w){return J.parse(unescape(encodeURIComponent(w)))}},Rn=y.BufferedBlockAlgorithm=x.extend({reset:function(){this._data=new Pn.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=re.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var vn,gn=this._data,Fn=gn.words,zn=gn.sigBytes,Un=this.blockSize,Wn=Un*4,tr=zn/Wn;w?tr=h.ceil(tr):tr=h.max((tr|0)-this._minBufferSize,0);var Yn=tr*Un,Xn=h.min(Yn*4,zn);if(Yn){for(var Jn=0;Jn<Yn;Jn+=Un)this._doProcessBlock(Fn,Jn);vn=Fn.splice(0,Yn),gn.sigBytes-=Xn}return new Pn.init(vn,Xn)},clone:function(){var w=x.clone.call(this);return w._data=this._data.clone(),w},_minBufferSize:0});y.Hasher=Rn.extend({cfg:x.extend(),init:function(w){this.cfg=this.cfg.extend(w),this.reset()},reset:function(){Rn.reset.call(this),this._doReset()},update:function(w){return this._append(w),this._process(),this},finalize:function(w){w&&this._append(w);var vn=this._doFinalize();return vn},blockSize:16,_createHelper:function(w){return function(vn,gn){return new w.init(gn).finalize(vn)}},_createHmacHelper:function(w){return function(vn,gn){return new Bn.HMAC.init(w,gn).finalize(vn)}}});var Bn=g.algo={};return g}(Math);return f})}(core)),core.exports}var x64Core={exports:{}},hasRequiredX64Core;function requireX64Core(){return hasRequiredX64Core||(hasRequiredX64Core=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(h){var d=f,p=d.lib,v=p.Base,m=p.WordArray,g=d.x64={};g.Word=v.extend({init:function(y,x){this.high=y,this.low=x}}),g.WordArray=v.extend({init:function(y,x){y=this.words=y||[],x!=h?this.sigBytes=x:this.sigBytes=y.length*8},toX32:function(){for(var y=this.words,x=y.length,Pn=[],b=0;b<x;b++){var _=y[b];Pn.push(_.high),Pn.push(_.low)}return m.create(Pn,this.sigBytes)},clone:function(){for(var y=v.clone.call(this),x=y.words=this.words.slice(0),Pn=x.length,b=0;b<Pn;b++)x[b]=x[b].clone();return y}})}(),f})}(x64Core)),x64Core.exports}var libTypedarrays={exports:{}},hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(){if(typeof ArrayBuffer=="function"){var h=f,d=h.lib,p=d.WordArray,v=p.init,m=p.init=function(g){if(g instanceof ArrayBuffer&&(g=new Uint8Array(g)),(g instanceof Int8Array||typeof Uint8ClampedArray<"u"&&g instanceof Uint8ClampedArray||g instanceof Int16Array||g instanceof Uint16Array||g instanceof Int32Array||g instanceof Uint32Array||g instanceof Float32Array||g instanceof Float64Array)&&(g=new Uint8Array(g.buffer,g.byteOffset,g.byteLength)),g instanceof Uint8Array){for(var y=g.byteLength,x=[],Pn=0;Pn<y;Pn++)x[Pn>>>2]|=g[Pn]<<24-Pn%4*8;v.call(this,x,y)}else v.apply(this,arguments)};m.prototype=p}}(),f.lib.WordArray})}(libTypedarrays)),libTypedarrays.exports}var encUtf16={exports:{}},hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,p=d.WordArray,v=h.enc;v.Utf16=v.Utf16BE={stringify:function(g){for(var y=g.words,x=g.sigBytes,Pn=[],b=0;b<x;b+=2){var _=y[b>>>2]>>>16-b%4*8&65535;Pn.push(String.fromCharCode(_))}return Pn.join("")},parse:function(g){for(var y=g.length,x=[],Pn=0;Pn<y;Pn++)x[Pn>>>1]|=g.charCodeAt(Pn)<<16-Pn%2*16;return p.create(x,y*2)}},v.Utf16LE={stringify:function(g){for(var y=g.words,x=g.sigBytes,Pn=[],b=0;b<x;b+=2){var _=m(y[b>>>2]>>>16-b%4*8&65535);Pn.push(String.fromCharCode(_))}return Pn.join("")},parse:function(g){for(var y=g.length,x=[],Pn=0;Pn<y;Pn++)x[Pn>>>1]|=m(g.charCodeAt(Pn)<<16-Pn%2*16);return p.create(x,y*2)}};function m(g){return g<<8&4278255360|g>>>8&16711935}}(),f.enc.Utf16})}(encUtf16)),encUtf16.exports}var encBase64={exports:{}},hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,p=d.WordArray,v=h.enc;v.Base64={stringify:function(g){var y=g.words,x=g.sigBytes,Pn=this._map;g.clamp();for(var b=[],_=0;_<x;_+=3)for(var J=y[_>>>2]>>>24-_%4*8&255,re=y[_+1>>>2]>>>24-(_+1)%4*8&255,Rn=y[_+2>>>2]>>>24-(_+2)%4*8&255,Bn=J<<16|re<<8|Rn,w=0;w<4&&_+w*.75<x;w++)b.push(Pn.charAt(Bn>>>6*(3-w)&63));var vn=Pn.charAt(64);if(vn)for(;b.length%4;)b.push(vn);return b.join("")},parse:function(g){var y=g.length,x=this._map,Pn=this._reverseMap;if(!Pn){Pn=this._reverseMap=[];for(var b=0;b<x.length;b++)Pn[x.charCodeAt(b)]=b}var _=x.charAt(64);if(_){var J=g.indexOf(_);J!==-1&&(y=J)}return m(g,y,Pn)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function m(g,y,x){for(var Pn=[],b=0,_=0;_<y;_++)if(_%4){var J=x[g.charCodeAt(_-1)]<<_%4*2,re=x[g.charCodeAt(_)]>>>6-_%4*2,Rn=J|re;Pn[b>>>2]|=Rn<<24-b%4*8,b++}return p.create(Pn,b)}}(),f.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,p=d.WordArray,v=h.enc;v.Base64url={stringify:function(g,y=!0){var x=g.words,Pn=g.sigBytes,b=y?this._safe_map:this._map;g.clamp();for(var _=[],J=0;J<Pn;J+=3)for(var re=x[J>>>2]>>>24-J%4*8&255,Rn=x[J+1>>>2]>>>24-(J+1)%4*8&255,Bn=x[J+2>>>2]>>>24-(J+2)%4*8&255,w=re<<16|Rn<<8|Bn,vn=0;vn<4&&J+vn*.75<Pn;vn++)_.push(b.charAt(w>>>6*(3-vn)&63));var gn=b.charAt(64);if(gn)for(;_.length%4;)_.push(gn);return _.join("")},parse:function(g,y=!0){var x=g.length,Pn=y?this._safe_map:this._map,b=this._reverseMap;if(!b){b=this._reverseMap=[];for(var _=0;_<Pn.length;_++)b[Pn.charCodeAt(_)]=_}var J=Pn.charAt(64);if(J){var re=g.indexOf(J);re!==-1&&(x=re)}return m(g,x,b)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function m(g,y,x){for(var Pn=[],b=0,_=0;_<y;_++)if(_%4){var J=x[g.charCodeAt(_-1)]<<_%4*2,re=x[g.charCodeAt(_)]>>>6-_%4*2,Rn=J|re;Pn[b>>>2]|=Rn<<24-b%4*8,b++}return p.create(Pn,b)}}(),f.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(h){var d=f,p=d.lib,v=p.WordArray,m=p.Hasher,g=d.algo,y=[];(function(){for(var re=0;re<64;re++)y[re]=h.abs(h.sin(re+1))*4294967296|0})();var x=g.MD5=m.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(re,Rn){for(var Bn=0;Bn<16;Bn++){var w=Rn+Bn,vn=re[w];re[w]=(vn<<8|vn>>>24)&16711935|(vn<<24|vn>>>8)&4278255360}var gn=this._hash.words,Fn=re[Rn+0],zn=re[Rn+1],Un=re[Rn+2],Wn=re[Rn+3],tr=re[Rn+4],Yn=re[Rn+5],Xn=re[Rn+6],Jn=re[Rn+7],ir=re[Rn+8],sr=re[Rn+9],Zn=re[Rn+10],Gn=re[Rn+11],Kn=re[Rn+12],Vn=re[Rn+13],qn=re[Rn+14],nr=re[Rn+15],Hn=gn[0],lr=gn[1],cr=gn[2],Qn=gn[3];Hn=Pn(Hn,lr,cr,Qn,Fn,7,y[0]),Qn=Pn(Qn,Hn,lr,cr,zn,12,y[1]),cr=Pn(cr,Qn,Hn,lr,Un,17,y[2]),lr=Pn(lr,cr,Qn,Hn,Wn,22,y[3]),Hn=Pn(Hn,lr,cr,Qn,tr,7,y[4]),Qn=Pn(Qn,Hn,lr,cr,Yn,12,y[5]),cr=Pn(cr,Qn,Hn,lr,Xn,17,y[6]),lr=Pn(lr,cr,Qn,Hn,Jn,22,y[7]),Hn=Pn(Hn,lr,cr,Qn,ir,7,y[8]),Qn=Pn(Qn,Hn,lr,cr,sr,12,y[9]),cr=Pn(cr,Qn,Hn,lr,Zn,17,y[10]),lr=Pn(lr,cr,Qn,Hn,Gn,22,y[11]),Hn=Pn(Hn,lr,cr,Qn,Kn,7,y[12]),Qn=Pn(Qn,Hn,lr,cr,Vn,12,y[13]),cr=Pn(cr,Qn,Hn,lr,qn,17,y[14]),lr=Pn(lr,cr,Qn,Hn,nr,22,y[15]),Hn=b(Hn,lr,cr,Qn,zn,5,y[16]),Qn=b(Qn,Hn,lr,cr,Xn,9,y[17]),cr=b(cr,Qn,Hn,lr,Gn,14,y[18]),lr=b(lr,cr,Qn,Hn,Fn,20,y[19]),Hn=b(Hn,lr,cr,Qn,Yn,5,y[20]),Qn=b(Qn,Hn,lr,cr,Zn,9,y[21]),cr=b(cr,Qn,Hn,lr,nr,14,y[22]),lr=b(lr,cr,Qn,Hn,tr,20,y[23]),Hn=b(Hn,lr,cr,Qn,sr,5,y[24]),Qn=b(Qn,Hn,lr,cr,qn,9,y[25]),cr=b(cr,Qn,Hn,lr,Wn,14,y[26]),lr=b(lr,cr,Qn,Hn,ir,20,y[27]),Hn=b(Hn,lr,cr,Qn,Vn,5,y[28]),Qn=b(Qn,Hn,lr,cr,Un,9,y[29]),cr=b(cr,Qn,Hn,lr,Jn,14,y[30]),lr=b(lr,cr,Qn,Hn,Kn,20,y[31]),Hn=_(Hn,lr,cr,Qn,Yn,4,y[32]),Qn=_(Qn,Hn,lr,cr,ir,11,y[33]),cr=_(cr,Qn,Hn,lr,Gn,16,y[34]),lr=_(lr,cr,Qn,Hn,qn,23,y[35]),Hn=_(Hn,lr,cr,Qn,zn,4,y[36]),Qn=_(Qn,Hn,lr,cr,tr,11,y[37]),cr=_(cr,Qn,Hn,lr,Jn,16,y[38]),lr=_(lr,cr,Qn,Hn,Zn,23,y[39]),Hn=_(Hn,lr,cr,Qn,Vn,4,y[40]),Qn=_(Qn,Hn,lr,cr,Fn,11,y[41]),cr=_(cr,Qn,Hn,lr,Wn,16,y[42]),lr=_(lr,cr,Qn,Hn,Xn,23,y[43]),Hn=_(Hn,lr,cr,Qn,sr,4,y[44]),Qn=_(Qn,Hn,lr,cr,Kn,11,y[45]),cr=_(cr,Qn,Hn,lr,nr,16,y[46]),lr=_(lr,cr,Qn,Hn,Un,23,y[47]),Hn=J(Hn,lr,cr,Qn,Fn,6,y[48]),Qn=J(Qn,Hn,lr,cr,Jn,10,y[49]),cr=J(cr,Qn,Hn,lr,qn,15,y[50]),lr=J(lr,cr,Qn,Hn,Yn,21,y[51]),Hn=J(Hn,lr,cr,Qn,Kn,6,y[52]),Qn=J(Qn,Hn,lr,cr,Wn,10,y[53]),cr=J(cr,Qn,Hn,lr,Zn,15,y[54]),lr=J(lr,cr,Qn,Hn,zn,21,y[55]),Hn=J(Hn,lr,cr,Qn,ir,6,y[56]),Qn=J(Qn,Hn,lr,cr,nr,10,y[57]),cr=J(cr,Qn,Hn,lr,Xn,15,y[58]),lr=J(lr,cr,Qn,Hn,Vn,21,y[59]),Hn=J(Hn,lr,cr,Qn,tr,6,y[60]),Qn=J(Qn,Hn,lr,cr,Gn,10,y[61]),cr=J(cr,Qn,Hn,lr,Un,15,y[62]),lr=J(lr,cr,Qn,Hn,sr,21,y[63]),gn[0]=gn[0]+Hn|0,gn[1]=gn[1]+lr|0,gn[2]=gn[2]+cr|0,gn[3]=gn[3]+Qn|0},_doFinalize:function(){var re=this._data,Rn=re.words,Bn=this._nDataBytes*8,w=re.sigBytes*8;Rn[w>>>5]|=128<<24-w%32;var vn=h.floor(Bn/4294967296),gn=Bn;Rn[(w+64>>>9<<4)+15]=(vn<<8|vn>>>24)&16711935|(vn<<24|vn>>>8)&4278255360,Rn[(w+64>>>9<<4)+14]=(gn<<8|gn>>>24)&16711935|(gn<<24|gn>>>8)&4278255360,re.sigBytes=(Rn.length+1)*4,this._process();for(var Fn=this._hash,zn=Fn.words,Un=0;Un<4;Un++){var Wn=zn[Un];zn[Un]=(Wn<<8|Wn>>>24)&16711935|(Wn<<24|Wn>>>8)&4278255360}return Fn},clone:function(){var re=m.clone.call(this);return re._hash=this._hash.clone(),re}});function Pn(re,Rn,Bn,w,vn,gn,Fn){var zn=re+(Rn&Bn|~Rn&w)+vn+Fn;return(zn<<gn|zn>>>32-gn)+Rn}function b(re,Rn,Bn,w,vn,gn,Fn){var zn=re+(Rn&w|Bn&~w)+vn+Fn;return(zn<<gn|zn>>>32-gn)+Rn}function _(re,Rn,Bn,w,vn,gn,Fn){var zn=re+(Rn^Bn^w)+vn+Fn;return(zn<<gn|zn>>>32-gn)+Rn}function J(re,Rn,Bn,w,vn,gn,Fn){var zn=re+(Bn^(Rn|~w))+vn+Fn;return(zn<<gn|zn>>>32-gn)+Rn}d.MD5=m._createHelper(x),d.HmacMD5=m._createHmacHelper(x)}(Math),f.MD5})}(md5)),md5.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,p=d.WordArray,v=d.Hasher,m=h.algo,g=[],y=m.SHA1=v.extend({_doReset:function(){this._hash=new p.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(x,Pn){for(var b=this._hash.words,_=b[0],J=b[1],re=b[2],Rn=b[3],Bn=b[4],w=0;w<80;w++){if(w<16)g[w]=x[Pn+w]|0;else{var vn=g[w-3]^g[w-8]^g[w-14]^g[w-16];g[w]=vn<<1|vn>>>31}var gn=(_<<5|_>>>27)+Bn+g[w];w<20?gn+=(J&re|~J&Rn)+1518500249:w<40?gn+=(J^re^Rn)+1859775393:w<60?gn+=(J&re|J&Rn|re&Rn)-1894007588:gn+=(J^re^Rn)-899497514,Bn=Rn,Rn=re,re=J<<30|J>>>2,J=_,_=gn}b[0]=b[0]+_|0,b[1]=b[1]+J|0,b[2]=b[2]+re|0,b[3]=b[3]+Rn|0,b[4]=b[4]+Bn|0},_doFinalize:function(){var x=this._data,Pn=x.words,b=this._nDataBytes*8,_=x.sigBytes*8;return Pn[_>>>5]|=128<<24-_%32,Pn[(_+64>>>9<<4)+14]=Math.floor(b/4294967296),Pn[(_+64>>>9<<4)+15]=b,x.sigBytes=Pn.length*4,this._process(),this._hash},clone:function(){var x=v.clone.call(this);return x._hash=this._hash.clone(),x}});h.SHA1=v._createHelper(y),h.HmacSHA1=v._createHmacHelper(y)}(),f.SHA1})}(sha1)),sha1.exports}var sha256={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(h){var d=f,p=d.lib,v=p.WordArray,m=p.Hasher,g=d.algo,y=[],x=[];(function(){function _(Bn){for(var w=h.sqrt(Bn),vn=2;vn<=w;vn++)if(!(Bn%vn))return!1;return!0}function J(Bn){return(Bn-(Bn|0))*4294967296|0}for(var re=2,Rn=0;Rn<64;)_(re)&&(Rn<8&&(y[Rn]=J(h.pow(re,1/2))),x[Rn]=J(h.pow(re,1/3)),Rn++),re++})();var Pn=[],b=g.SHA256=m.extend({_doReset:function(){this._hash=new v.init(y.slice(0))},_doProcessBlock:function(_,J){for(var re=this._hash.words,Rn=re[0],Bn=re[1],w=re[2],vn=re[3],gn=re[4],Fn=re[5],zn=re[6],Un=re[7],Wn=0;Wn<64;Wn++){if(Wn<16)Pn[Wn]=_[J+Wn]|0;else{var tr=Pn[Wn-15],Yn=(tr<<25|tr>>>7)^(tr<<14|tr>>>18)^tr>>>3,Xn=Pn[Wn-2],Jn=(Xn<<15|Xn>>>17)^(Xn<<13|Xn>>>19)^Xn>>>10;Pn[Wn]=Yn+Pn[Wn-7]+Jn+Pn[Wn-16]}var ir=gn&Fn^~gn&zn,sr=Rn&Bn^Rn&w^Bn&w,Zn=(Rn<<30|Rn>>>2)^(Rn<<19|Rn>>>13)^(Rn<<10|Rn>>>22),Gn=(gn<<26|gn>>>6)^(gn<<21|gn>>>11)^(gn<<7|gn>>>25),Kn=Un+Gn+ir+x[Wn]+Pn[Wn],Vn=Zn+sr;Un=zn,zn=Fn,Fn=gn,gn=vn+Kn|0,vn=w,w=Bn,Bn=Rn,Rn=Kn+Vn|0}re[0]=re[0]+Rn|0,re[1]=re[1]+Bn|0,re[2]=re[2]+w|0,re[3]=re[3]+vn|0,re[4]=re[4]+gn|0,re[5]=re[5]+Fn|0,re[6]=re[6]+zn|0,re[7]=re[7]+Un|0},_doFinalize:function(){var _=this._data,J=_.words,re=this._nDataBytes*8,Rn=_.sigBytes*8;return J[Rn>>>5]|=128<<24-Rn%32,J[(Rn+64>>>9<<4)+14]=h.floor(re/4294967296),J[(Rn+64>>>9<<4)+15]=re,_.sigBytes=J.length*4,this._process(),this._hash},clone:function(){var _=m.clone.call(this);return _._hash=this._hash.clone(),_}});d.SHA256=m._createHelper(b),d.HmacSHA256=m._createHmacHelper(b)}(Math),f.SHA256})}(sha256)),sha256.exports}var sha224={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireSha256())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,p=d.WordArray,v=h.algo,m=v.SHA256,g=v.SHA224=m.extend({_doReset:function(){this._hash=new p.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var y=m._doFinalize.call(this);return y.sigBytes-=4,y}});h.SHA224=m._createHelper(g),h.HmacSHA224=m._createHmacHelper(g)}(),f.SHA224})}(sha224)),sha224.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireX64Core())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,p=d.Hasher,v=h.x64,m=v.Word,g=v.WordArray,y=h.algo;function x(){return m.create.apply(m,arguments)}var Pn=[x(1116352408,3609767458),x(1899447441,602891725),x(3049323471,3964484399),x(3921009573,2173295548),x(961987163,4081628472),x(1508970993,3053834265),x(2453635748,2937671579),x(2870763221,3664609560),x(3624381080,2734883394),x(310598401,1164996542),x(607225278,1323610764),x(1426881987,3590304994),x(1925078388,4068182383),x(2162078206,991336113),x(2614888103,633803317),x(3248222580,3479774868),x(3835390401,2666613458),x(4022224774,944711139),x(264347078,2341262773),x(604807628,2007800933),x(770255983,1495990901),x(1249150122,1856431235),x(1555081692,3175218132),x(1996064986,2198950837),x(2554220882,3999719339),x(2821834349,766784016),x(2952996808,2566594879),x(3210313671,3203337956),x(3336571891,1034457026),x(3584528711,2466948901),x(113926993,3758326383),x(338241895,168717936),x(666307205,1188179964),x(773529912,1546045734),x(1294757372,1522805485),x(1396182291,2643833823),x(1695183700,2343527390),x(1986661051,1014477480),x(2177026350,1206759142),x(2456956037,344077627),x(2730485921,1290863460),x(2820302411,3158454273),x(3259730800,3505952657),x(3345764771,106217008),x(3516065817,3606008344),x(3600352804,1432725776),x(4094571909,1467031594),x(275423344,851169720),x(430227734,3100823752),x(506948616,1363258195),x(659060556,3750685593),x(883997877,3785050280),x(958139571,3318307427),x(1322822218,3812723403),x(1537002063,2003034995),x(1747873779,3602036899),x(1955562222,1575990012),x(2024104815,1125592928),x(2227730452,2716904306),x(2361852424,442776044),x(2428436474,593698344),x(2756734187,3733110249),x(3204031479,2999351573),x(3329325298,3815920427),x(3391569614,3928383900),x(3515267271,566280711),x(3940187606,3454069534),x(4118630271,4000239992),x(116418474,1914138554),x(174292421,2731055270),x(289380356,3203993006),x(460393269,320620315),x(685471733,587496836),x(852142971,1086792851),x(1017036298,365543100),x(1126000580,2618297676),x(1288033470,3409855158),x(1501505948,4234509866),x(1607167915,987167468),x(1816402316,1246189591)],b=[];(function(){for(var J=0;J<80;J++)b[J]=x()})();var _=y.SHA512=p.extend({_doReset:function(){this._hash=new g.init([new m.init(1779033703,4089235720),new m.init(3144134277,2227873595),new m.init(1013904242,4271175723),new m.init(2773480762,1595750129),new m.init(1359893119,2917565137),new m.init(2600822924,725511199),new m.init(528734635,4215389547),new m.init(1541459225,327033209)])},_doProcessBlock:function(J,re){for(var Rn=this._hash.words,Bn=Rn[0],w=Rn[1],vn=Rn[2],gn=Rn[3],Fn=Rn[4],zn=Rn[5],Un=Rn[6],Wn=Rn[7],tr=Bn.high,Yn=Bn.low,Xn=w.high,Jn=w.low,ir=vn.high,sr=vn.low,Zn=gn.high,Gn=gn.low,Kn=Fn.high,Vn=Fn.low,qn=zn.high,nr=zn.low,Hn=Un.high,lr=Un.low,cr=Wn.high,Qn=Wn.low,ar=tr,er=Yn,ur=Xn,hr=Jn,or=ir,mr=sr,dr=Zn,fr=Gn,vr=Kn,pr=Vn,yr=qn,br=nr,Sr=Hn,gr=lr,kr=cr,wr=Qn,Er=0;Er<80;Er++){var Tr,_r,Mr=b[Er];if(Er<16)_r=Mr.high=J[re+Er*2]|0,Tr=Mr.low=J[re+Er*2+1]|0;else{var Or=b[Er-15],Rr=Or.high,Lr=Or.low,jr=(Rr>>>1|Lr<<31)^(Rr>>>8|Lr<<24)^Rr>>>7,Gr=(Lr>>>1|Rr<<31)^(Lr>>>8|Rr<<24)^(Lr>>>7|Rr<<25),Hr=b[Er-2],Wr=Hr.high,Kr=Hr.low,ei=(Wr>>>19|Kr<<13)^(Wr<<3|Kr>>>29)^Wr>>>6,ni=(Kr>>>19|Wr<<13)^(Kr<<3|Wr>>>29)^(Kr>>>6|Wr<<26),ri=b[Er-7],mi=ri.high,gi=ri.low,li=b[Er-16],ci=li.high,ui=li.low;Tr=Gr+gi,_r=jr+mi+(Tr>>>0<Gr>>>0?1:0),Tr=Tr+ni,_r=_r+ei+(Tr>>>0<ni>>>0?1:0),Tr=Tr+ui,_r=_r+ci+(Tr>>>0<ui>>>0?1:0),Mr.high=_r,Mr.low=Tr}var yi=vr&yr^~vr&Sr,fi=pr&br^~pr&gr,bi=ar&ur^ar&or^ur&or,xi=er&hr^er&mr^hr&mr,si=(ar>>>28|er<<4)^(ar<<30|er>>>2)^(ar<<25|er>>>7),hi=(er>>>28|ar<<4)^(er<<30|ar>>>2)^(er<<25|ar>>>7),Si=(vr>>>14|pr<<18)^(vr>>>18|pr<<14)^(vr<<23|pr>>>9),di=(pr>>>14|vr<<18)^(pr>>>18|vr<<14)^(pr<<23|vr>>>9),pi=Pn[Er],Ci=pi.high,vi=pi.low,Jr=wr+di,Qr=kr+Si+(Jr>>>0<wr>>>0?1:0),Jr=Jr+fi,Qr=Qr+yi+(Jr>>>0<fi>>>0?1:0),Jr=Jr+vi,Qr=Qr+Ci+(Jr>>>0<vi>>>0?1:0),Jr=Jr+Tr,Qr=Qr+_r+(Jr>>>0<Tr>>>0?1:0),wi=hi+xi,xr=si+bi+(wi>>>0<hi>>>0?1:0);kr=Sr,wr=gr,Sr=yr,gr=br,yr=vr,br=pr,pr=fr+Jr|0,vr=dr+Qr+(pr>>>0<fr>>>0?1:0)|0,dr=or,fr=mr,or=ur,mr=hr,ur=ar,hr=er,er=Jr+wi|0,ar=Qr+xr+(er>>>0<Jr>>>0?1:0)|0}Yn=Bn.low=Yn+er,Bn.high=tr+ar+(Yn>>>0<er>>>0?1:0),Jn=w.low=Jn+hr,w.high=Xn+ur+(Jn>>>0<hr>>>0?1:0),sr=vn.low=sr+mr,vn.high=ir+or+(sr>>>0<mr>>>0?1:0),Gn=gn.low=Gn+fr,gn.high=Zn+dr+(Gn>>>0<fr>>>0?1:0),Vn=Fn.low=Vn+pr,Fn.high=Kn+vr+(Vn>>>0<pr>>>0?1:0),nr=zn.low=nr+br,zn.high=qn+yr+(nr>>>0<br>>>0?1:0),lr=Un.low=lr+gr,Un.high=Hn+Sr+(lr>>>0<gr>>>0?1:0),Qn=Wn.low=Qn+wr,Wn.high=cr+kr+(Qn>>>0<wr>>>0?1:0)},_doFinalize:function(){var J=this._data,re=J.words,Rn=this._nDataBytes*8,Bn=J.sigBytes*8;re[Bn>>>5]|=128<<24-Bn%32,re[(Bn+128>>>10<<5)+30]=Math.floor(Rn/4294967296),re[(Bn+128>>>10<<5)+31]=Rn,J.sigBytes=re.length*4,this._process();var w=this._hash.toX32();return w},clone:function(){var J=p.clone.call(this);return J._hash=this._hash.clone(),J},blockSize:1024/32});h.SHA512=p._createHelper(_),h.HmacSHA512=p._createHmacHelper(_)}(),f.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(f){return function(){var h=f,d=h.x64,p=d.Word,v=d.WordArray,m=h.algo,g=m.SHA512,y=m.SHA384=g.extend({_doReset:function(){this._hash=new v.init([new p.init(3418070365,3238371032),new p.init(1654270250,914150663),new p.init(2438529370,812702999),new p.init(355462360,4144912697),new p.init(1731405415,4290775857),new p.init(2394180231,1750603025),new p.init(3675008525,1694076839),new p.init(1203062813,3204075428)])},_doFinalize:function(){var x=g._doFinalize.call(this);return x.sigBytes-=16,x}});h.SHA384=g._createHelper(y),h.HmacSHA384=g._createHmacHelper(y)}(),f.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireX64Core())})(commonjsGlobal,function(f){return function(h){var d=f,p=d.lib,v=p.WordArray,m=p.Hasher,g=d.x64,y=g.Word,x=d.algo,Pn=[],b=[],_=[];(function(){for(var Rn=1,Bn=0,w=0;w<24;w++){Pn[Rn+5*Bn]=(w+1)*(w+2)/2%64;var vn=Bn%5,gn=(2*Rn+3*Bn)%5;Rn=vn,Bn=gn}for(var Rn=0;Rn<5;Rn++)for(var Bn=0;Bn<5;Bn++)b[Rn+5*Bn]=Bn+(2*Rn+3*Bn)%5*5;for(var Fn=1,zn=0;zn<24;zn++){for(var Un=0,Wn=0,tr=0;tr<7;tr++){if(Fn&1){var Yn=(1<<tr)-1;Yn<32?Wn^=1<<Yn:Un^=1<<Yn-32}Fn&128?Fn=Fn<<1^113:Fn<<=1}_[zn]=y.create(Un,Wn)}})();var J=[];(function(){for(var Rn=0;Rn<25;Rn++)J[Rn]=y.create()})();var re=x.SHA3=m.extend({cfg:m.cfg.extend({outputLength:512}),_doReset:function(){for(var Rn=this._state=[],Bn=0;Bn<25;Bn++)Rn[Bn]=new y.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(Rn,Bn){for(var w=this._state,vn=this.blockSize/2,gn=0;gn<vn;gn++){var Fn=Rn[Bn+2*gn],zn=Rn[Bn+2*gn+1];Fn=(Fn<<8|Fn>>>24)&16711935|(Fn<<24|Fn>>>8)&4278255360,zn=(zn<<8|zn>>>24)&16711935|(zn<<24|zn>>>8)&4278255360;var Un=w[gn];Un.high^=zn,Un.low^=Fn}for(var Wn=0;Wn<24;Wn++){for(var tr=0;tr<5;tr++){for(var Yn=0,Xn=0,Jn=0;Jn<5;Jn++){var Un=w[tr+5*Jn];Yn^=Un.high,Xn^=Un.low}var ir=J[tr];ir.high=Yn,ir.low=Xn}for(var tr=0;tr<5;tr++)for(var sr=J[(tr+4)%5],Zn=J[(tr+1)%5],Gn=Zn.high,Kn=Zn.low,Yn=sr.high^(Gn<<1|Kn>>>31),Xn=sr.low^(Kn<<1|Gn>>>31),Jn=0;Jn<5;Jn++){var Un=w[tr+5*Jn];Un.high^=Yn,Un.low^=Xn}for(var Vn=1;Vn<25;Vn++){var Yn,Xn,Un=w[Vn],qn=Un.high,nr=Un.low,Hn=Pn[Vn];Hn<32?(Yn=qn<<Hn|nr>>>32-Hn,Xn=nr<<Hn|qn>>>32-Hn):(Yn=nr<<Hn-32|qn>>>64-Hn,Xn=qn<<Hn-32|nr>>>64-Hn);var lr=J[b[Vn]];lr.high=Yn,lr.low=Xn}var cr=J[0],Qn=w[0];cr.high=Qn.high,cr.low=Qn.low;for(var tr=0;tr<5;tr++)for(var Jn=0;Jn<5;Jn++){var Vn=tr+5*Jn,Un=w[Vn],ar=J[Vn],er=J[(tr+1)%5+5*Jn],ur=J[(tr+2)%5+5*Jn];Un.high=ar.high^~er.high&ur.high,Un.low=ar.low^~er.low&ur.low}var Un=w[0],hr=_[Wn];Un.high^=hr.high,Un.low^=hr.low}},_doFinalize:function(){var Rn=this._data,Bn=Rn.words;this._nDataBytes*8;var w=Rn.sigBytes*8,vn=this.blockSize*32;Bn[w>>>5]|=1<<24-w%32,Bn[(h.ceil((w+1)/vn)*vn>>>5)-1]|=128,Rn.sigBytes=Bn.length*4,this._process();for(var gn=this._state,Fn=this.cfg.outputLength/8,zn=Fn/8,Un=[],Wn=0;Wn<zn;Wn++){var tr=gn[Wn],Yn=tr.high,Xn=tr.low;Yn=(Yn<<8|Yn>>>24)&16711935|(Yn<<24|Yn>>>8)&4278255360,Xn=(Xn<<8|Xn>>>24)&16711935|(Xn<<24|Xn>>>8)&4278255360,Un.push(Xn),Un.push(Yn)}return new v.init(Un,Fn)},clone:function(){for(var Rn=m.clone.call(this),Bn=Rn._state=this._state.slice(0),w=0;w<25;w++)Bn[w]=Bn[w].clone();return Rn}});d.SHA3=m._createHelper(re),d.HmacSHA3=m._createHmacHelper(re)}(Math),f.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){/** @preserve
62
62
  (c) 2012 by Cédric Mesnil. All rights reserved.
63
63
 
64
64
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -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 p of u){const v=p[0],m=p[1];m instanceof Blob?f.append(v,m):h[v]=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 handleFormatter=c=>c.replace(/\\n/g,`
100
100
  `),formatMoney=(c,u=2)=>{const f=parseFloat(c+"");return isNaN(f)?c:f.toFixed(u).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},formatThousands=c=>{const u=parseFloat(c+"");return isNaN(u)?c:(u+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},formatPercentage=(c,u=2)=>{const f=c+"";if(f.includes("%"))return c;const h=parseFloat(f);return isNaN(h)?c:`${(h*100).toFixed(u)}%`},formatDecimals=(c,u=2)=>{const f=c+"",h=parseFloat(f);return isNaN(h)?c:h.toFixed(u)},formatCustom=(c,u)=>In(u,c),getFixedValueDatas=c=>{const{leftAxisList:u=[],rightAxisList:f=[],queryColumnList:h=[],indicators:d=[]}=c;return[...u,...f,...h,...d].filter(p=>(p==null?void 0:p.calcType)==="COMPONENT").map(p=>({keyName:p.builtInCalcWay,id:p.builtInValueSource}))},canRequestIndicator=(c,u)=>{let f=!0;const h=getFixedValueDatas(c);return h!=null&&h.length&&(f=h.map(d=>u[d.id]).every(d=>d)),f},getLegendFormat=(c,u)=>{var v;const f=c.match(/\{(.+?)\}/g),h=((v=c.split(`
101
101
  `))==null?void 0:v.length)-1;let d="";if(h)for(let m=0;m<h;m++)d+=`
102
- `;let p=c;if(f!=null&&f.length){for(const m of f){const g=hn(m,{textData:u},{useNewline:!1,useSpace:!1});g&&(p=p.replace(m,g))}return`${d}{text|${p}}`}else return c},setDefaultRangeVal=(c,u)=>{const{props:f,componentList:h,getGlobalModel:d}=c,{graphicConfig:p={},startValue:v,endValue:m}=f,g=getdefCompleteData({graphicConfig:p,startValue:v,endValue:m,componentList:h,getGlobalModel:d}),{dimensions:y,dataset:x}=u,{classificationList:Pn=[]}=p,_=Pn.find(J=>J.show).label||"";for(const J of g)y.includes(J)||y.push(J);y.sort((J,re)=>dayjs(J).isBefore(dayjs(re))?-1:1);for(const J of x){const{data:re}=J;if(re!=null&&re.length){const Rn=[];for(const Bn of g)if(re.find(w=>w[_]!==Bn)){const w=lodashEs.cloneDeep(re[0]);for(const vn in w)vn===_?w[vn]=Bn:w[vn]=0;Rn.push(w)}J.data.push(...Rn),J.data.sort((Bn,w)=>dayjs(Bn[_]).isBefore(dayjs(w[_]))?-1:1)}}},getConditions=c=>{const u=[];for(const f of c)f.conditions?u.push(...getConditions(f.conditions)):(f==null?void 0:f.dataType)==="component"&&u.push(f);return u};function getdefCompleteData(c){const{startValue:u,endValue:f,componentList:h,graphicConfig:d,getGlobalModel:p}=c,v=getVariableAndField(u),m=getVariableAndField(f),g=[];if(v&&m){const y=h.find(Pn=>Pn.keyName===v.keyName),x=h.find(Pn=>Pn.keyName===m.keyName);if(y&&x){const Pn=p(y.id),b=p(x.id),{classificationList:_=[]}=d,J=_.find(re=>re.show);if(J){let re="YYYY-MM";switch(J.name){case"the_year":re="YYYY";break;case"the_month":re="MM";break;case"the_day":re="DD";break;case"the_date":re=(J==null?void 0:J.dateFormat)||re;break}const Rn=getFormatStep(re);if(re){const Bn=vue.unref(Pn[v.field]),w=vue.unref(b[m.field]);let vn=dayjs(Bn);const gn=dayjs(w);for(g.push(gn.format(re));vn.isBefore(gn);)g.push(vn.format(re)),vn=vn.add(1,Rn)}}}}return g}function getVariableAndField(c){let u=null;if(c){const f=c.match(/\{(.+?)\}/g);if(f!=null&&f.length){let h=f[0].slice(1,-1).trim();const d=h.match(/\[(.+?)\]/g);let p="";d!=null&&d.length&&(h=h.replace(d[0],""),p=d[0].slice(1,-1).trim()),u={keyName:h,field:p}}}return u}function getFormatStep(c){const u=c.split("-");let f="";if(u!=null&&u.length)switch(u[u.length-1]){case"YYYY":f="year";break;case"MM":f="month";break;case"DD":f="day";break}return f}function handleJumpLink(c,u){var Pn;const{pageMode:f,targetTemplate:h,getRecordValueByKeyName:d,setTemplateData:p}=u,v=c.linkPage||"",m=usePageUrl(f,v),g=c.href;let y=g||m;y=hn(y);const x=c.target;if(x)if(x==="event")window.parent.postMessage({type:"openPage",url:g},"*");else{const b={pageId:v,componentId:h};if((Pn=c.transParams)!=null&&Pn.length){y.includes("?")?y+="&":y+="?";const _=[];for(const J of c.transParams){const re=d(String(J.fieldName));_.push(`${J.keyName}=${re}`),b[J.keyName]=re}y+=_.join("&")}x==="template"?(Object.prototype.hasOwnProperty.call(window,"oldPageId")||(window.oldPageId=""),window.oldPageId&&(window.controller.abort(),window.controller=new AbortController),window.oldPageId=v,p(b)):(x==="blank"&&(y+=`${y.includes("?")?"&":"?"}drillFlag=1`),window.open(y,"_"+x))}}function getPageUrlParams(c){var f,h;let u={};if(c){const d=(((f=window.config)==null?void 0:f.urlParams)||{})[c]||{};for(const p in d)p.includes("{")||(u[p]=d[p])}else u=((h=window.config)==null?void 0:h.requestParams)||{};return u}function getNewValueFromUrlParams(c,u,f){let h="";const{urlParams:d}=window.config;if(c&&d[c])for(const p in d[c]){const v=d[c][p];if(p===`{${u}[${f}]}`&&v){h=v;break}}return h}const useRequestData=(c,u,f=()=>{})=>{var ir;const{requestUrl:h,requestMethod:d,requestHeaders:p,requestParams:v,requestInterval:m,isOpenRequestTimer:g,openCustomRequestData:y,projectRequestUrl:x="",getModel:Pn,requestParamsMode:b,customRequestParams:_,dataSetParam:J,requestType:re,dataType:Rn,dataSetchecked:Bn}=c,{pageMode:w}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:vn}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:gn,touchEventId:Fn}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:zn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:sr=>{}})||{},{loadedData:Un}=vue.inject(LOADED_DATA,{loadedData:{}})||{},Wn=Pn||zn;let tr=hn(h),Yn=vue.unref(gn)||x||"";(Rn==="request"&&Bn||re===1)&&(Yn="",tr=((ir=window.config)==null?void 0:ir.dataSetUrl)||"/api/datav/dataset/data2");const Xn=async(sr={})=>{var cr;if(Rn!=="request"&&Jn){clearInterval(Jn);return}if(!tr||!d||!p)return;let Zn={};for(const Qn of v){const{key:ar,value:er}=Qn;if((er==null?void 0:er.id)==="PARENT"&&(er!=null&&er.prop)){const hr=(((cr=window.config)==null?void 0:cr.record)||{})[er.prop];if(hr){const or=hr[er.propKey||"value"];or&&(["date","range"].some(dr=>yn(hr==null?void 0:hr.type,dr))?Zn[ar]=vue.unref(or).format(hr.format||"YYYY-MM-DD"):Zn[ar]=vue.unref(or))}continue}if(typeof er=="object"&&er!=null&&er.id){let ur={};const{id:hr,prop:or,propKey:mr,operate:dr}=er;let fr=!1;try{JSON.parse(hr),fr=!0}catch{fr=!1}if(hr==="THIS"?ur=Wn(vue.unref(Fn))||{}:ur=Wn(hr)||{},console.log("record",ur),console.log("loadedData",Un.value),(ur==null?void 0:ur.type)==="ecanSelect"&&vue.unref(Un)&&!vue.unref(Un)[hr]&&(ur==null?void 0:ur.dataType)!=="static")return;const vr=vue.unref(ur[or]);let pr=null;if(["date","range"].some(br=>yn(ur==null?void 0:ur.type,br))){const{value:br,type:Sr,mode:gr}=dr||{};if(br&&Sr&&gr)switch(Sr){case"add":pr=vue.unref(vr).add(br,gr);break;case"minus":pr=vue.unref(vr).subtract(br,gr);break}pr==null&&(pr=vue.unref(vr)),pr=pr&&(pr==null?void 0:pr.format((mr==null?void 0:mr.trim())||ur.format))||""}else if(Object.prototype.toString.call(vr)==="[object Object]")mr?pr=vr[mr]:pr=or?vr[or]:vr;else if(yn(ur==null?void 0:ur.type,"select")&&vue.unref(vr)&&or&&Array.isArray(vue.unref(vr)))pr=vue.unref(vr).map(br=>Object.prototype.hasOwnProperty.call(br,or)?br[or]:br);else if(fr){const br=JSON.parse(hr);console.log(br,"urlvalue"),pr=br.value}else pr=vr;Zn[ar]=pr}else typeof er=="object"&&!er.id&&re===1?(console.log(er.propKey,"value.propKey"),Zn[ar]=er.propKey):typeof er=="string"&&(Zn[ar]=hn(er))}if(re===1){console.log(Zn,"_params");const Qn=Object.entries(Zn);let ar=J;if(!J.param&&Array.isArray(J)){const er={};for(const ur of J)er[ur.key]=ur.value;ar=er}ar.param=ar.param.map((er,ur)=>({...er,paramKey:Qn[ur][0],defaultValue:Qn[ur][1]||""})),Zn=ar}if(b==="2"&&_!=="{}"){const Qn=JSON.parse(_);Gn(Qn),Qn&&(Zn=Qn)}function Gn(Qn){const ar={...Zn,...getPageUrlParams(vn)};if(Array.isArray(Qn))Qn.forEach((er,ur)=>{if(typeof er=="string"){const hr=er.match(/\${(.+?)\}/g);if(hr!=null&&hr.length){const or=hr[0].slice(2,-1);or&&ar[or]?Qn[ur]=ar[or]:Qn[ur]=""}}else Gn(er)});else if(Object.prototype.toString.call(Qn)==="[object Object]")for(const er in Qn)if(typeof Qn[er]=="string"){const ur=Qn[er].match(/\${(.+?)\}/g);if(ur!=null&&ur.length){const hr=ur[0].slice(2,-1);hr&&ar[hr]?Qn[er]=ar[hr]:Qn[er]=""}}else Gn(Qn[er])}const Kn=getPageUrlParams(vn);for(const Qn in Kn)Kn[Qn]&&(Kn[Qn]=decodeURIComponent(Kn[Qn]));Zn={...Kn,...sr,...Zn};let Vn="";const qn=Object.keys(Zn),nr=qn.length-1,Hn=qn.length;qn.forEach((Qn,ar)=>{let er=Zn[Qn];Object.prototype.toString.call(er)==="[object Object]"&&(er=JSON.stringify(er)),ar===0?Hn!==1?Vn+=`?${Qn}=${er}&`:Vn+=`?${Qn}=${er}`:ar===nr?Vn+=`${Qn}=${er}`:Vn+=`${Qn}=${er}&`}),tr.includes("?")&&(Vn=Vn.replace("?","&"));function lr(Qn){var ar;if(re===1)return{Authentication:(ar=window==null?void 0:window.config)==null?void 0:ar.indicatorToken};if(typeof Qn=="string"){const er=JSON.parse(Qn),ur=getPageUrlParams(vn);if(Object.prototype.toString.call(er)==="[object Object]"){for(const hr in er)if(typeof er[hr]=="string"){const or=er[hr].match(/\${(.+?)\}/g);if(or!=null&&or.length){const mr=or[0].slice(2,-1);mr&&ur[mr]?er[hr]=ur[mr]:er[hr]=""}}}return er}else return Qn}try{const Qn=["get","head"].includes(d),ar={};let er=Qn?tr+Vn:tr;Zn.dataSqlId&&!er.includes("dataSqlId")&&(er+=`${er.includes("?")?"&":"?"}dataSqlId=${Zn.dataSqlId}`),Object.prototype.hasOwnProperty.call(Zn,"signal")?ar.signal=Zn.signal:window.controller&&(ar.signal=window.controller.signal);const ur=await request({baseURL:Yn,url:er,method:d,headers:p?lr(p):{},data:Qn?{}:Zn,...ar});return f(ur),ur}catch(Qn){console.error(Qn)}},Jn=vue.unref(w)!=="design"&&g&&(y||y===void 0)&&setInterval(Xn,m*1e3);return vue.onUnmounted(()=>{clearInterval(Jn)}),Xn},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},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:p}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),{pageId:v}=vue.inject("templateOperate",{pageId:""})||{};c.dataType==="indicator"&&h();const m=async(x={})=>{var Rn,Bn,w;const Pn=p();d(c.id,!1);const b=Mn({...c,globalModel:Pn},x),{url:_,...J}=b||{};let re=v||((Rn=window==null?void 0:window.config)==null?void 0:Rn.pageId);if(!re){const{pathname:vn}=window==null?void 0:window.location;if(vn){const gn=vn.split("/");gn!=null&&gn.length&&(re=gn[gn.length-1])}}if(_&&J)try{const vn=await request({url:`${INDICATOR_URL}${_}`,method:"post",headers:{Authentication:(Bn=window==null?void 0:window.config)==null?void 0:Bn.indicatorToken,operateContext:CONTEXT},data:{...J,pageId:re},signal:((w=window.controller)==null?void 0:w.signal)||""});return x!=null&&x.isTimer&&u(vn),vn}catch(vn){console.error(vn)}},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 p=u[d];if(p==null||p==="")continue;const v=p.split("=");if(Array.isArray(v)){const m=v[0];m.includes("{")||(h[m]=v[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",gn=>{}),d=vue.inject("isMobile",!1),p=vue.computed(()=>{const gn={};return d||(gn.width=u.value,gn.height=f.value),{...gn,backgroundColor:c.pageId?"transparent":c.backgroundColor,backgroundImage:useImagePath(c.backgroundImage,!0),backgroundSize:c.backgroundSize}}),v=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 _=()=>new Promise(gn=>{vue.nextTick(()=>{u.value&&f.value?(v.value=parseFloat(u.value),m.value=parseFloat(f.value)):(v.value=Pn.value.clientWidth,m.value=Pn.value.clientHeight),(!g.value||!y.value)&&(g.value=window.screen.width,y.value=window.screen.height),gn()})}),J=()=>{v.value&&m.value?(Pn.value.style.width=`${v.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 _(),J(),Rn(),window.addEventListener("resize",Bn),w()),x.value=!0},{immediate:!0});const re=vue.ref({});vue.provide("scaleValue",re);const Rn=()=>{if(d){Pn.value.style.width="100%",Pn.value.style.height="auto",h("auto");return}const gn=document.body.clientWidth,Fn=document.body.clientHeight,zn=v.value||g.value,Un=m.value||y.value,Wn=gn/zn;let tr=Fn/Un;(v.value!==1920||m.value!==1080)&&(tr=m.value/v.value*gn/Un),re.value={widthScale:Wn,heightScale:tr},Pn.value&&(Pn.value.style.transform=`scale(${Wn}, ${tr})`),h(tr)},Bn=lodashEs.debounce(async()=>{await _(),Rn()},100),w=()=>{const gn=window.MutationObserver;b=new gn(Bn),b.observe(Pn.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},vn=()=>{b&&(b.disconnect(),b.takeRecords(),b=null)};return vue.onMounted(()=>{x.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",Bn),vn()}),{style:p,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,p){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(),p=()=>{d.value.setAttribute("datav-theme",c.theme)},v=vue.ref({$page:{currentYmd:dayjs().format("YYYY-MM-DD"),currentYear:dayjs().format("YYYY"),currentMonth:dayjs().format("MM"),currentDay:dayjs().format("DD")}}),m=vue.inject("usedComponentList",[]),g=vue.inject("componentList",[]);vue.watch(v,gr=>{f("setGlobalVar",gr.$page)},{deep:!0,immediate:!0});const y=vue.computed(()=>{const gr=[];for(const kr of vue.unref(m))kr.type==="ecanModal"?gr.push(...kr.componentList):gr.push(kr);return gr});vue.watch(()=>c.theme,()=>{p()}),vue.onMounted(()=>{p()});const x=vue.computed(()=>hn(c.contextRequestUrl)),Pn=vue.computed(()=>c.pageMode),b=vue.computed(()=>c.theme),_=vue.computed(()=>c.width),J=vue.computed(()=>c.height),re=vue.computed(()=>c.pageFontFamily),Rn=vue.computed(()=>{const gr=[],kr=vue.unref(g).filter(wr=>wr.type==="ecanModal");for(const wr of kr)wr!=null&&wr.requestList&&gr.push(...wr.requestList);return[...gr,...c.requestList]}),Bn=gr=>Object.prototype.toString.call(gr)==="[object Object]",w=gr=>{const kr=gr.split(".");let wr=vue.unref(v);for(const Er of kr)if(wr&&Bn(wr))wr=wr[Er];else{wr="";break}return wr},vn=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:x,pageMode:Pn,theme:b,touchEventId:vn,width:_,height:J,fontFamily:re,requestList:Rn,getGlobalVar:w});const gn=vue.ref({height:"100%",overflow:c.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",gr=>{let kr=gr;h.value||(kr=parseFloat(J.value)*gr+"px"),gn.value.height=kr}),vue.provide("isMobile",h.value),vue.provide("getContainerMap",()=>c.containerMap),vue.provide("getCombinationMap",()=>c.combinationMap),vue.provide("templateOperate",{pageId:c.pageId,templateEmit:f,setTemplateData:gr=>{var kr;if(gr!=null&&gr.pageId){const{componentId:wr,...Er}=gr;(kr=window.config)!=null&&kr.urlParams||(window.config.urlParams={}),window.config.urlParams[gr.pageId]=Er,f("templateChange",gr)}}});const Fn=vue.ref(),zn=new Map,Un=()=>zn,Wn=gr=>{let kr=zn.get(gr);if(!kr){const wr=vue.unref(g).find(Er=>Er.keyName===gr);wr&&(kr=zn.get(wr.id))}return kr},tr=(gr,kr)=>{var wr;if(Fn.value=kr,zn.set(gr,kr),!c.pageId){const Er=vue.unref(m).find(Pr=>Pr.id===gr);Er&&((wr=window.config)!=null&&wr.record||(window.config.record={}),window.config.record[Er.keyName]=kr)}},Yn=()=>{Fn.value=null},Xn=gr=>{let kr=gr;if(kr){const wr=gr.match(/\{(.+?)\}/g);if(wr!=null&&wr.length){let Er=wr[0].slice(1,-1).trim();const Pr=Er.match(/\[(.+?)\]/g);let _r="";Pr!=null&&Pr.length&&(Er=Er.replace(Pr[0],""),_r=Pr[0].slice(1,-1).trim());const Mr=vue.unref(y).find(Or=>Or.keyName===Er);if(Mr){const Or=Wn(Mr.id),{type:Rr,value:Lr,RECORD:jr,recordData:Gr}=Or||{};yn(Rr,MODEL_KEY_LIST)?kr=jr[_r]:yn(Rr,"select")?Gr[_r]?kr=Gr[_r]:kr=vue.unref(Lr):yn(Rr,["rangePicker","date"])?dayjs.isDayjs(vue.unref(Or[_r]))?kr=vue.unref(Or[_r]).format(Or.format):kr=vue.unref(Or[_r]):kr=Lr}else kr=(window.config.requestParams||{})[Er]||""}}return kr},Jn=new Map,ir={},sr=async(gr,kr)=>{var Mr;const{requestName:wr}=gr,Er=await useRequestData({...gr,projectRequestUrl:vue.unref(x),getModel:Wn})(),Pr=((Mr=Er==null?void 0:Er.data)==null?void 0:Mr.data)||{};gr.requestKeyName&&(v.value.$page[gr.requestKeyName]=Pr);const _r=Jn.get(wr);if(_r!=null&&_r.length&&(!kr||ir[wr])){for(const Or of _r)Or(Pr);kr||Jn.delete(wr)}},Zn=(gr,kr)=>{ir[gr]&&(clearInterval(ir[gr]),delete ir[gr],Jn.delete(gr));const wr=vue.unref(y).filter(Pr=>!Pr.openCustomRequestData&&Pr.customRequestName===gr),Er=Jn.get(gr)||[];if((wr==null?void 0:wr.length)>Er.length&&(Er.push(kr),Jn.set(gr,Er),(wr==null?void 0:wr.length)===Er.length)){const Pr=vue.unref(Rn).find(_r=>_r.requestName===gr);Pr&&(Pr!=null&&Pr.isOpenRequestTimer&&(Pr!=null&&Pr.requestInterval)?(sr(Pr,!0),ir[gr]=setInterval(()=>{sr(Pr,!0)},Pr.requestInterval*1e3)):sr(Pr))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:Wn,setGlobalModel:tr,getAllGlobalModel:Un,clearInteractiveData:Yn,getRecordValueByKeyName:Xn,hanldePageRequestData:Zn,interactiveData:Fn});const Gn=vue.ref({}),Kn=(gr,kr)=>{Gn.value[gr]=kr};vue.provide(LOADED_DATA,{loadedData:Gn,setLoadedData:Kn});const Vn=[],qn=()=>{Vn.pop()},nr=gr=>{Vn.push(gr)},Hn=new Map,lr=gr=>Hn.get(gr),cr=(gr,kr)=>{Hn.set(gr,kr)};vue.provide(MODAL_MODEL,{popUseModalIds:qn,pushUseModalIds:nr,getModalModel:lr,setModalModel:cr});const Qn=mitt(),ar=new Set,er=(gr,kr)=>{ar.add(gr),Qn.on(gr,wr=>{const{eventName:Er,params:Pr}=wr;return typeof kr[Er]=="function"&&kr[Er](Pr)}),vue.onBeforeUnmount(()=>{ur(gr)})},ur=gr=>{ar.delete(gr),Qn.off(gr)},hr=(gr,kr,wr={})=>{if(gr==="PAGE"){const Er=Vn.length;let Pr=[];if(Er===0)Pr=[...ar];else{const _r=Vn[Er-1];Pr=[...lr(_r)]}Pr.forEach(_r=>{Qn.emit(_r,{eventName:kr,params:wr})})}else Qn.emit(gr,{eventName:kr,params:wr})};vue.provide(EVENT_BUS,{onEvent:er,offEvent:ur,emitEvent:hr});const or=vue.ref(0),mr=()=>{or.value=vue.unref(or)+1};vue.provide(GLOBAL_TOKEN,{requestToken:mr});const dr=new Map,fr=new Map,vr=({requestFn:gr=()=>{},sortNum:kr=0,id:wr=""})=>{if(dr.has(kr)){const Er=dr.get(kr);Er==null||Er.push(gr)}else dr.set(kr,[gr]);fr.set(wr,gr)},pr=gr=>new Promise((kr,wr)=>{const Er=gr.map(Pr=>Pr());Promise.all(Er).then(Pr=>{kr(Pr)}).catch(Pr=>{wr(Pr)})}),yr=gr=>new Promise(async(kr,wr)=>{if(gr){if(typeof gr=="string"){const Er=fr.get(gr);if(typeof Er=="function"){const Pr=request.interceptors.response.use(_r=>(kr(_r),_r),_r=>(wr(_r),Promise.reject(_r)));Er(),request.interceptors.response.eject(Pr)}}}else{const Er=Array.from(dr);Er.sort((_r,Mr)=>Mr[0]-_r[0]);const Pr=Er.length;try{c.pageMode!=="design"&&vue.unref(or)>0;for(let _r=0;_r<Pr;_r++){const Mr=Er[_r][1];await pr(Mr)}}catch(_r){console.error(_r)}finally{dr.clear(),kr(null)}}});vue.provide(REQUEST_MODEL,{setRequest:vr,touchRequest:yr});const br=()=>{Qn.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:br});const Sr=gr=>{Qn.on(REFRESH_PAGE,()=>gr()),vue.onMounted(()=>{Qn.off(REFRESH_PAGE)})};return vue.watchEffect(()=>{var gr;if((gr=vue.unref(m))!=null&&gr.length&&vue.unref(Pn)!=="design"){const{jumpType:kr,jumpTime:wr,jumpPage:Er,jumpLink:Pr}=c;if(wr!=null&&wr.value){let _r=0;switch(wr==null?void 0:wr.suffix){case"hours":_r=wr.value*60*60*1e3;break;case"minute":_r=wr.value*60*1e3;break;case"seconds":_r=wr.value*1e3;break}setTimeout(()=>{let Mr="";kr==="page"&&Er?Mr=usePageUrl(vue.unref(Pn),Er):kr==="link"&&Pr&&(Mr=Pr),Mr=hn(Mr),window.open(Mr,"_self")},_r)}}}),vue.onBeforeUnmount(()=>{dr==null||dr.clear(),fr==null||fr.clear()}),u({touchRequest:yr,getGlobalModel:Wn,onRefreshPage:Sr,emitEvent:hr,getRecordValueByKeyName:Xn,props:c}),{providerConfig:d,configStyle:gn}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_dc7a8e46_lang="";function _sfc_render$y(c,u,f,h,d,p){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-dc7a8e46"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:"18px",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:"",dataSetchecked:!1,titleContent:"",titleBackgroundColor:"#ffffff",titleFontColor:"#000000",isMarkDown:!1,isContentMarkDown:!1},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==";var esmEntry$1={exports:{}},defaults$5={exports:{}};function getDefaults$1(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function changeDefaults$1(c){defaults$5.exports.defaults=c}defaults$5.exports={defaults:getDefaults$1(),getDefaults:getDefaults$1,changeDefaults:changeDefaults$1};const escapeTest=/[&<>"']/,escapeReplace=/[&<>"']/g,escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g,escapeReplacements={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},getEscapeReplacement=c=>escapeReplacements[c];function escape$3(c,u){if(u){if(escapeTest.test(c))return c.replace(escapeReplace,getEscapeReplacement)}else if(escapeTestNoEncode.test(c))return c.replace(escapeReplaceNoEncode,getEscapeReplacement);return c}const unescapeTest=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function unescape$1(c){return c.replace(unescapeTest,(u,f)=>(f=f.toLowerCase(),f==="colon"?":":f.charAt(0)==="#"?f.charAt(1)==="x"?String.fromCharCode(parseInt(f.substring(2),16)):String.fromCharCode(+f.substring(1)):""))}const caret=/(^|[^\[])\^/g;function edit$1(c,u){c=c.source||c,u=u||"";const f={replace:(h,d)=>(d=d.source||d,d=d.replace(caret,"$1"),c=c.replace(h,d),f),getRegex:()=>new RegExp(c,u)};return f}const nonWordAndColonTest=/[^\w:]/g,originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function cleanUrl$1(c,u,f){if(c){let h;try{h=decodeURIComponent(unescape$1(f)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(h.indexOf("javascript:")===0||h.indexOf("vbscript:")===0||h.indexOf("data:")===0)return null}u&&!originIndependentUrl.test(f)&&(f=resolveUrl(u,f));try{f=encodeURI(f).replace(/%25/g,"%")}catch{return null}return f}const baseUrls={},justDomain=/^[^:]+:\/*[^/]*$/,protocol=/^([^:]+:)[\s\S]*$/,domain=/^([^:]+:\/*[^/]*)[\s\S]*$/;function resolveUrl(c,u){baseUrls[" "+c]||(justDomain.test(c)?baseUrls[" "+c]=c+"/":baseUrls[" "+c]=rtrim$1(c,"/",!0)),c=baseUrls[" "+c];const f=c.indexOf(":")===-1;return u.substring(0,2)==="//"?f?u:c.replace(protocol,"$1")+u:u.charAt(0)==="/"?f?u:c.replace(domain,"$1")+u:c+u}const noopTest$1={exec:function(){}};function merge$2(c){let u=1,f,h;for(;u<arguments.length;u++){f=arguments[u];for(h in f)Object.prototype.hasOwnProperty.call(f,h)&&(c[h]=f[h])}return c}function splitCells$1(c,u){const f=c.replace(/\|/g,(p,v,m)=>{let g=!1,y=v;for(;--y>=0&&m[y]==="\\";)g=!g;return g?"|":" |"}),h=f.split(/ \|/);let d=0;if(h[0].trim()||h.shift(),h[h.length-1].trim()||h.pop(),h.length>u)h.splice(u);else for(;h.length<u;)h.push("");for(;d<h.length;d++)h[d]=h[d].trim().replace(/\\\|/g,"|");return h}function rtrim$1(c,u,f){const h=c.length;if(h===0)return"";let d=0;for(;d<h;){const p=c.charAt(h-d-1);if(p===u&&!f)d++;else if(p!==u&&f)d++;else break}return c.substr(0,h-d)}function findClosingBracket$1(c,u){if(c.indexOf(u[1])===-1)return-1;const f=c.length;let h=0,d=0;for(;d<f;d++)if(c[d]==="\\")d++;else if(c[d]===u[0])h++;else if(c[d]===u[1]&&(h--,h<0))return d;return-1}function checkSanitizeDeprecation$1(c){c&&c.sanitize&&!c.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function repeatString$1(c,u){if(u<1)return"";let f="";for(;u>1;)u&1&&(f+=c),u>>=1,c+=c;return f+c}var helpers={escape:escape$3,unescape:unescape$1,edit:edit$1,cleanUrl:cleanUrl$1,resolveUrl,noopTest:noopTest$1,merge:merge$2,splitCells:splitCells$1,rtrim:rtrim$1,findClosingBracket:findClosingBracket$1,checkSanitizeDeprecation:checkSanitizeDeprecation$1,repeatString:repeatString$1};const{defaults:defaults$4}=defaults$5.exports,{rtrim,splitCells,escape:escape$2,findClosingBracket}=helpers;function outputLink(c,u,f,h){const d=u.href,p=u.title?escape$2(u.title):null,v=c[1].replace(/\\([\[\]])/g,"$1");if(c[0].charAt(0)!=="!"){h.state.inLink=!0;const m={type:"link",raw:f,href:d,title:p,text:v,tokens:h.inlineTokens(v,[])};return h.state.inLink=!1,m}else return{type:"image",raw:f,href:d,title:p,text:escape$2(v)}}function indentCodeCompensation(c,u){const f=c.match(/^(\s+)(?:```)/);if(f===null)return u;const h=f[1];return u.split(`
102
+ `;let p=c;if(f!=null&&f.length){for(const m of f){const g=hn(m,{textData:u},{useNewline:!1,useSpace:!1});g&&(p=p.replace(m,g))}return`${d}{text|${p}}`}else return c},setDefaultRangeVal=(c,u)=>{const{props:f,componentList:h,getGlobalModel:d}=c,{graphicConfig:p={},startValue:v,endValue:m}=f,g=getdefCompleteData({graphicConfig:p,startValue:v,endValue:m,componentList:h,getGlobalModel:d}),{dimensions:y,dataset:x}=u,{classificationList:Pn=[]}=p,_=Pn.find(J=>J.show).label||"";for(const J of g)y.includes(J)||y.push(J);y.sort((J,re)=>dayjs(J).isBefore(dayjs(re))?-1:1);for(const J of x){const{data:re}=J;if(re!=null&&re.length){const Rn=[];for(const Bn of g)if(re.find(w=>w[_]!==Bn)){const w=lodashEs.cloneDeep(re[0]);for(const vn in w)vn===_?w[vn]=Bn:w[vn]=0;Rn.push(w)}J.data.push(...Rn),J.data.sort((Bn,w)=>dayjs(Bn[_]).isBefore(dayjs(w[_]))?-1:1)}}},getConditions=c=>{const u=[];for(const f of c)f.conditions?u.push(...getConditions(f.conditions)):(f==null?void 0:f.dataType)==="component"&&u.push(f);return u};function getdefCompleteData(c){const{startValue:u,endValue:f,componentList:h,graphicConfig:d,getGlobalModel:p}=c,v=getVariableAndField(u),m=getVariableAndField(f),g=[];if(v&&m){const y=h.find(Pn=>Pn.keyName===v.keyName),x=h.find(Pn=>Pn.keyName===m.keyName);if(y&&x){const Pn=p(y.id),b=p(x.id),{classificationList:_=[]}=d,J=_.find(re=>re.show);if(J){let re="YYYY-MM";switch(J.name){case"the_year":re="YYYY";break;case"the_month":re="MM";break;case"the_day":re="DD";break;case"the_date":re=(J==null?void 0:J.dateFormat)||re;break}const Rn=getFormatStep(re);if(re){const Bn=vue.unref(Pn[v.field]),w=vue.unref(b[m.field]);let vn=dayjs(Bn);const gn=dayjs(w);for(g.push(gn.format(re));vn.isBefore(gn);)g.push(vn.format(re)),vn=vn.add(1,Rn)}}}}return g}function getVariableAndField(c){let u=null;if(c){const f=c.match(/\{(.+?)\}/g);if(f!=null&&f.length){let h=f[0].slice(1,-1).trim();const d=h.match(/\[(.+?)\]/g);let p="";d!=null&&d.length&&(h=h.replace(d[0],""),p=d[0].slice(1,-1).trim()),u={keyName:h,field:p}}}return u}function getFormatStep(c){const u=c.split("-");let f="";if(u!=null&&u.length)switch(u[u.length-1]){case"YYYY":f="year";break;case"MM":f="month";break;case"DD":f="day";break}return f}function handleJumpLink(c,u){var Pn;const{pageMode:f,targetTemplate:h,getRecordValueByKeyName:d,setTemplateData:p}=u,v=c.linkPage||"",m=usePageUrl(f,v),g=c.href;let y=g||m;y=hn(y);const x=c.target;if(x)if(x==="event")window.parent.postMessage({type:"openPage",url:g},"*");else{const b={pageId:v,componentId:h};if((Pn=c.transParams)!=null&&Pn.length){y.includes("?")?y+="&":y+="?";const _=[];for(const J of c.transParams){const re=d(String(J.fieldName));_.push(`${J.keyName}=${re}`),b[J.keyName]=re}y+=_.join("&")}x==="template"?(Object.prototype.hasOwnProperty.call(window,"oldPageId")||(window.oldPageId=""),window.oldPageId&&(window.controller.abort(),window.controller=new AbortController),window.oldPageId=v,p(b)):(x==="blank"&&(y+=`${y.includes("?")?"&":"?"}drillFlag=1`),window.open(y,"_"+x))}}function getPageUrlParams(c){var f,h;let u={};if(c){const d=(((f=window.config)==null?void 0:f.urlParams)||{})[c]||{};for(const p in d)p.includes("{")||(u[p]=d[p])}else u=((h=window.config)==null?void 0:h.requestParams)||{};return u}function getNewValueFromUrlParams(c,u,f){let h="";const{urlParams:d}=window.config;if(c&&d[c])for(const p in d[c]){const v=d[c][p];if(p===`{${u}[${f}]}`&&v){h=v;break}}return h}const useRequestData=(c,u,f=()=>{})=>{var ir;const{requestUrl:h,requestMethod:d,requestHeaders:p,requestParams:v,requestInterval:m,isOpenRequestTimer:g,openCustomRequestData:y,projectRequestUrl:x="",getModel:Pn,requestParamsMode:b,customRequestParams:_,dataSetParam:J,requestType:re,dataType:Rn,dataSetchecked:Bn}=c,{pageMode:w}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:vn}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:gn,touchEventId:Fn}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:zn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:sr=>{}})||{},{loadedData:Un}=vue.inject(LOADED_DATA,{loadedData:{}})||{},Wn=Pn||zn;let tr=hn(h),Yn=vue.unref(gn)||x||"";(Rn==="request"&&Bn||re===1)&&(Yn="",tr=((ir=window.config)==null?void 0:ir.dataSetUrl)||"/api/datav/dataset/data2");const Xn=async(sr={})=>{var cr;if(Rn!=="request"&&Jn){clearInterval(Jn);return}if(!tr||!d||!p)return;let Zn={};for(const Qn of v){const{key:ar,value:er}=Qn;if((er==null?void 0:er.id)==="PARENT"&&(er!=null&&er.prop)){const hr=(((cr=window.config)==null?void 0:cr.record)||{})[er.prop];if(hr){const or=hr[er.propKey||"value"];or&&(["date","range"].some(dr=>yn(hr==null?void 0:hr.type,dr))?Zn[ar]=vue.unref(or).format(hr.format||"YYYY-MM-DD"):Zn[ar]=vue.unref(or))}continue}if(typeof er=="object"&&er!=null&&er.id){let ur={};const{id:hr,prop:or,propKey:mr,operate:dr}=er;let fr=!1;try{JSON.parse(hr),fr=!0}catch{fr=!1}if(hr==="THIS"?ur=Wn(vue.unref(Fn))||{}:ur=Wn(hr)||{},(ur==null?void 0:ur.type)==="ecanSelect"&&vue.unref(Un)&&!vue.unref(Un)[hr]&&(ur==null?void 0:ur.dataType)!=="static")return;const vr=vue.unref(ur[or]);let pr=null;if(["date","range"].some(br=>yn(ur==null?void 0:ur.type,br))){const{value:br,type:Sr,mode:gr}=dr||{};if(br&&Sr&&gr)switch(Sr){case"add":pr=vue.unref(vr).add(br,gr);break;case"minus":pr=vue.unref(vr).subtract(br,gr);break}pr==null&&(pr=vue.unref(vr)),pr=pr&&(pr==null?void 0:pr.format((mr==null?void 0:mr.trim())||ur.format))||""}else if(Object.prototype.toString.call(vr)==="[object Object]")mr?pr=vr[mr]:pr=or?vr[or]:vr;else if(yn(ur==null?void 0:ur.type,"select")&&vue.unref(vr)&&or&&Array.isArray(vue.unref(vr)))pr=vue.unref(vr).map(br=>Object.prototype.hasOwnProperty.call(br,or)?br[or]:br);else if(fr){const br=JSON.parse(hr);console.log(br,"urlvalue"),pr=br.value}else pr=vr;Zn[ar]=pr}else typeof er=="object"&&!er.id&&re===1?(console.log(er.propKey,"value.propKey"),Zn[ar]=er.propKey):typeof er=="string"&&(Zn[ar]=hn(er))}if(re===1){console.log(Zn,"_params");const Qn=Object.entries(Zn);let ar=J;if(!J.param&&Array.isArray(J)){const er={};for(const ur of J)er[ur.key]=ur.value;ar=er}ar.param=ar.param.map((er,ur)=>({...er,paramKey:Qn[ur][0],defaultValue:Qn[ur][1]||""})),Zn=ar}if(b==="2"&&_!=="{}"){const Qn=JSON.parse(_);Gn(Qn),Qn&&(Zn=Qn)}function Gn(Qn){const ar={...Zn,...getPageUrlParams(vn)};if(Array.isArray(Qn))Qn.forEach((er,ur)=>{if(typeof er=="string"){const hr=er.match(/\${(.+?)\}/g);if(hr!=null&&hr.length){const or=hr[0].slice(2,-1);or&&ar[or]?Qn[ur]=ar[or]:Qn[ur]=""}}else Gn(er)});else if(Object.prototype.toString.call(Qn)==="[object Object]")for(const er in Qn)if(typeof Qn[er]=="string"){const ur=Qn[er].match(/\${(.+?)\}/g);if(ur!=null&&ur.length){const hr=ur[0].slice(2,-1);hr&&ar[hr]?Qn[er]=ar[hr]:Qn[er]=""}}else Gn(Qn[er])}const Kn=getPageUrlParams(vn);for(const Qn in Kn)Kn[Qn]&&(Kn[Qn]=decodeURIComponent(Kn[Qn]));Zn={...Kn,...sr,...Zn};let Vn="";const qn=Object.keys(Zn),nr=qn.length-1,Hn=qn.length;qn.forEach((Qn,ar)=>{let er=Zn[Qn];Object.prototype.toString.call(er)==="[object Object]"&&(er=JSON.stringify(er)),ar===0?Hn!==1?Vn+=`?${Qn}=${er}&`:Vn+=`?${Qn}=${er}`:ar===nr?Vn+=`${Qn}=${er}`:Vn+=`${Qn}=${er}&`}),tr.includes("?")&&(Vn=Vn.replace("?","&"));function lr(Qn){var ar;if(re===1)return{Authentication:(ar=window==null?void 0:window.config)==null?void 0:ar.indicatorToken};if(typeof Qn=="string"){const er=JSON.parse(Qn),ur=getPageUrlParams(vn);if(Object.prototype.toString.call(er)==="[object Object]"){for(const hr in er)if(typeof er[hr]=="string"){const or=er[hr].match(/\${(.+?)\}/g);if(or!=null&&or.length){const mr=or[0].slice(2,-1);mr&&ur[mr]?er[hr]=ur[mr]:er[hr]=""}}}return er}else return Qn}try{const Qn=["get","head"].includes(d),ar={};let er=Qn?tr+Vn:tr;Zn.dataSqlId&&!er.includes("dataSqlId")&&(er+=`${er.includes("?")?"&":"?"}dataSqlId=${Zn.dataSqlId}`),Object.prototype.hasOwnProperty.call(Zn,"signal")?ar.signal=Zn.signal:window.controller&&(ar.signal=window.controller.signal);const ur=await request({baseURL:Yn,url:er,method:d,headers:p?lr(p):{},data:Qn?{}:Zn,...ar});return f(ur),ur}catch(Qn){console.error(Qn)}},Jn=vue.unref(w)!=="design"&&g&&(y||y===void 0)&&setInterval(Xn,m*1e3);return vue.onUnmounted(()=>{clearInterval(Jn)}),Xn},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},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:p}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),{pageId:v}=vue.inject("templateOperate",{pageId:""})||{};c.dataType==="indicator"&&h();const m=async(x={})=>{var Rn,Bn,w;const Pn=p();d(c.id,!1);const b=Mn({...c,globalModel:Pn},x),{url:_,...J}=b||{};let re=v||((Rn=window==null?void 0:window.config)==null?void 0:Rn.pageId);if(!re){const{pathname:vn}=window==null?void 0:window.location;if(vn){const gn=vn.split("/");gn!=null&&gn.length&&(re=gn[gn.length-1])}}if(_&&J)try{const vn=await request({url:`${INDICATOR_URL}${_}`,method:"post",headers:{Authentication:(Bn=window==null?void 0:window.config)==null?void 0:Bn.indicatorToken,operateContext:CONTEXT},data:{...J,pageId:re},signal:((w=window.controller)==null?void 0:w.signal)||""});return x!=null&&x.isTimer&&u(vn),vn}catch(vn){console.error(vn)}},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 p=u[d];if(p==null||p==="")continue;const v=p.split("=");if(Array.isArray(v)){const m=v[0];m.includes("{")||(h[m]=v[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",gn=>{}),d=vue.inject("isMobile",!1),p=vue.computed(()=>{const gn={};return d||(gn.width=u.value,gn.height=f.value),{...gn,backgroundColor:c.pageId?"transparent":c.backgroundColor,backgroundImage:useImagePath(c.backgroundImage,!0),backgroundSize:c.backgroundSize}}),v=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 _=()=>new Promise(gn=>{vue.nextTick(()=>{u.value&&f.value?(v.value=parseFloat(u.value),m.value=parseFloat(f.value)):(v.value=Pn.value.clientWidth,m.value=Pn.value.clientHeight),(!g.value||!y.value)&&(g.value=window.screen.width,y.value=window.screen.height),gn()})}),J=()=>{v.value&&m.value?(Pn.value.style.width=`${v.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 _(),J(),Rn(),window.addEventListener("resize",Bn),w()),x.value=!0},{immediate:!0});const re=vue.ref({});vue.provide("scaleValue",re);const Rn=()=>{if(d){Pn.value.style.width="100%",Pn.value.style.height="auto",h("auto");return}const gn=document.body.clientWidth,Fn=document.body.clientHeight,zn=v.value||g.value,Un=m.value||y.value,Wn=gn/zn;let tr=Fn/Un;(v.value!==1920||m.value!==1080)&&(tr=m.value/v.value*gn/Un),re.value={widthScale:Wn,heightScale:tr},Pn.value&&(Pn.value.style.transform=`scale(${Wn}, ${tr})`),h(tr)},Bn=lodashEs.debounce(async()=>{await _(),Rn()},100),w=()=>{const gn=window.MutationObserver;b=new gn(Bn),b.observe(Pn.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},vn=()=>{b&&(b.disconnect(),b.takeRecords(),b=null)};return vue.onMounted(()=>{x.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",Bn),vn()}),{style:p,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,p){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(),p=()=>{d.value.setAttribute("datav-theme",c.theme)},v=vue.ref({$page:{currentYmd:dayjs().format("YYYY-MM-DD"),currentYear:dayjs().format("YYYY"),currentMonth:dayjs().format("MM"),currentDay:dayjs().format("DD")}}),m=vue.inject("usedComponentList",[]),g=vue.inject("componentList",[]);vue.watch(v,gr=>{f("setGlobalVar",gr.$page)},{deep:!0,immediate:!0});const y=vue.computed(()=>{const gr=[];for(const kr of vue.unref(m))kr.type==="ecanModal"?gr.push(...kr.componentList):gr.push(kr);return gr});vue.watch(()=>c.theme,()=>{p()}),vue.onMounted(()=>{p()});const x=vue.computed(()=>hn(c.contextRequestUrl)),Pn=vue.computed(()=>c.pageMode),b=vue.computed(()=>c.theme),_=vue.computed(()=>c.width),J=vue.computed(()=>c.height),re=vue.computed(()=>c.pageFontFamily),Rn=vue.computed(()=>{const gr=[],kr=vue.unref(g).filter(wr=>wr.type==="ecanModal");for(const wr of kr)wr!=null&&wr.requestList&&gr.push(...wr.requestList);return[...gr,...c.requestList]}),Bn=gr=>Object.prototype.toString.call(gr)==="[object Object]",w=gr=>{const kr=gr.split(".");let wr=vue.unref(v);for(const Er of kr)if(wr&&Bn(wr))wr=wr[Er];else{wr="";break}return wr},vn=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:x,pageMode:Pn,theme:b,touchEventId:vn,width:_,height:J,fontFamily:re,requestList:Rn,getGlobalVar:w});const gn=vue.ref({height:"100%",overflow:c.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",gr=>{let kr=gr;h.value||(kr=parseFloat(J.value)*gr+"px"),gn.value.height=kr}),vue.provide("isMobile",h.value),vue.provide("getContainerMap",()=>c.containerMap),vue.provide("getCombinationMap",()=>c.combinationMap),vue.provide("templateOperate",{pageId:c.pageId,templateEmit:f,setTemplateData:gr=>{var kr;if(gr!=null&&gr.pageId){const{componentId:wr,...Er}=gr;(kr=window.config)!=null&&kr.urlParams||(window.config.urlParams={}),window.config.urlParams[gr.pageId]=Er,f("templateChange",gr)}}});const Fn=vue.ref(),zn=new Map,Un=()=>zn,Wn=gr=>{let kr=zn.get(gr);if(!kr){const wr=vue.unref(g).find(Er=>Er.keyName===gr);wr&&(kr=zn.get(wr.id))}return kr},tr=(gr,kr)=>{var wr;if(Fn.value=kr,zn.set(gr,kr),!c.pageId){const Er=vue.unref(m).find(Tr=>Tr.id===gr);Er&&((wr=window.config)!=null&&wr.record||(window.config.record={}),window.config.record[Er.keyName]=kr)}},Yn=()=>{Fn.value=null},Xn=gr=>{let kr=gr;if(kr){const wr=gr.match(/\{(.+?)\}/g);if(wr!=null&&wr.length){let Er=wr[0].slice(1,-1).trim();const Tr=Er.match(/\[(.+?)\]/g);let _r="";Tr!=null&&Tr.length&&(Er=Er.replace(Tr[0],""),_r=Tr[0].slice(1,-1).trim());const Mr=vue.unref(y).find(Or=>Or.keyName===Er);if(Mr){const Or=Wn(Mr.id),{type:Rr,value:Lr,RECORD:jr,recordData:Gr}=Or||{};yn(Rr,MODEL_KEY_LIST)?kr=jr[_r]:yn(Rr,"select")?Gr[_r]?kr=Gr[_r]:kr=vue.unref(Lr):yn(Rr,["rangePicker","date"])?dayjs.isDayjs(vue.unref(Or[_r]))?kr=vue.unref(Or[_r]).format(Or.format):kr=vue.unref(Or[_r]):kr=Lr}else kr=(window.config.requestParams||{})[Er]||""}}return kr},Jn=new Map,ir={},sr=async(gr,kr)=>{var Mr;const{requestName:wr}=gr,Er=await useRequestData({...gr,projectRequestUrl:vue.unref(x),getModel:Wn})(),Tr=((Mr=Er==null?void 0:Er.data)==null?void 0:Mr.data)||{};gr.requestKeyName&&(v.value.$page[gr.requestKeyName]=Tr);const _r=Jn.get(wr);if(_r!=null&&_r.length&&(!kr||ir[wr])){for(const Or of _r)Or(Tr);kr||Jn.delete(wr)}},Zn=(gr,kr)=>{ir[gr]&&(clearInterval(ir[gr]),delete ir[gr],Jn.delete(gr));const wr=vue.unref(y).filter(Tr=>Tr.dataType==="request"&&!Tr.openCustomRequestData&&Tr.customRequestName===gr),Er=Jn.get(gr)||[];if((wr==null?void 0:wr.length)>Er.length&&(Er.push(kr),Jn.set(gr,Er),(wr==null?void 0:wr.length)===Er.length)){const Tr=vue.unref(Rn).find(_r=>_r.requestName===gr);Tr&&(Tr!=null&&Tr.isOpenRequestTimer&&(Tr!=null&&Tr.requestInterval)?(sr(Tr,!0),ir[gr]=setInterval(()=>{sr(Tr,!0)},Tr.requestInterval*1e3)):sr(Tr))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:Wn,setGlobalModel:tr,getAllGlobalModel:Un,clearInteractiveData:Yn,getRecordValueByKeyName:Xn,hanldePageRequestData:Zn,interactiveData:Fn});const Gn=vue.ref({}),Kn=(gr,kr)=>{Gn.value[gr]=kr};vue.provide(LOADED_DATA,{loadedData:Gn,setLoadedData:Kn});const Vn=[],qn=()=>{Vn.pop()},nr=gr=>{Vn.push(gr)},Hn=new Map,lr=gr=>Hn.get(gr),cr=(gr,kr)=>{Hn.set(gr,kr)};vue.provide(MODAL_MODEL,{popUseModalIds:qn,pushUseModalIds:nr,getModalModel:lr,setModalModel:cr});const Qn=mitt(),ar=new Set,er=(gr,kr)=>{ar.add(gr),Qn.on(gr,wr=>{const{eventName:Er,params:Tr}=wr;return typeof kr[Er]=="function"&&kr[Er](Tr)}),vue.onBeforeUnmount(()=>{ur(gr)})},ur=gr=>{ar.delete(gr),Qn.off(gr)},hr=(gr,kr,wr={})=>{if(gr==="PAGE"){const Er=Vn.length;let Tr=[];if(Er===0)Tr=[...ar];else{const _r=Vn[Er-1];Tr=[...lr(_r)]}Tr.forEach(_r=>{Qn.emit(_r,{eventName:kr,params:wr})})}else Qn.emit(gr,{eventName:kr,params:wr})};vue.provide(EVENT_BUS,{onEvent:er,offEvent:ur,emitEvent:hr});const or=vue.ref(0),mr=()=>{or.value=vue.unref(or)+1};vue.provide(GLOBAL_TOKEN,{requestToken:mr});const dr=new Map,fr=new Map,vr=({requestFn:gr=()=>{},sortNum:kr=0,id:wr=""})=>{if(dr.has(kr)){const Er=dr.get(kr);Er==null||Er.push(gr)}else dr.set(kr,[gr]);fr.set(wr,gr)},pr=gr=>new Promise((kr,wr)=>{const Er=gr.map(Tr=>Tr());Promise.all(Er).then(Tr=>{kr(Tr)}).catch(Tr=>{wr(Tr)})}),yr=gr=>new Promise(async(kr,wr)=>{if(gr){if(typeof gr=="string"){const Er=fr.get(gr);if(typeof Er=="function"){const Tr=request.interceptors.response.use(_r=>(kr(_r),_r),_r=>(wr(_r),Promise.reject(_r)));Er(),request.interceptors.response.eject(Tr)}}}else{const Er=Array.from(dr);Er.sort((_r,Mr)=>Mr[0]-_r[0]);const Tr=Er.length;try{c.pageMode!=="design"&&vue.unref(or)>0;for(let _r=0;_r<Tr;_r++){const Mr=Er[_r][1];await pr(Mr)}}catch(_r){console.error(_r)}finally{dr.clear(),kr(null)}}});vue.provide(REQUEST_MODEL,{setRequest:vr,touchRequest:yr});const br=()=>{Qn.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:br});const Sr=gr=>{Qn.on(REFRESH_PAGE,()=>gr()),vue.onMounted(()=>{Qn.off(REFRESH_PAGE)})};return vue.watchEffect(()=>{var gr;if((gr=vue.unref(m))!=null&&gr.length&&vue.unref(Pn)!=="design"){const{jumpType:kr,jumpTime:wr,jumpPage:Er,jumpLink:Tr}=c;if(wr!=null&&wr.value){let _r=0;switch(wr==null?void 0:wr.suffix){case"hours":_r=wr.value*60*60*1e3;break;case"minute":_r=wr.value*60*1e3;break;case"seconds":_r=wr.value*1e3;break}setTimeout(()=>{let Mr="";kr==="page"&&Er?Mr=usePageUrl(vue.unref(Pn),Er):kr==="link"&&Tr&&(Mr=Tr),Mr=hn(Mr),window.open(Mr,"_self")},_r)}}}),vue.onBeforeUnmount(()=>{dr==null||dr.clear(),fr==null||fr.clear()}),u({touchRequest:yr,getGlobalModel:Wn,onRefreshPage:Sr,emitEvent:hr,getRecordValueByKeyName:Xn,props:c}),{providerConfig:d,configStyle:gn}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_1fa3ddb2_lang="";function _sfc_render$y(c,u,f,h,d,p){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-1fa3ddb2"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:"18px",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:"",dataSetchecked:!1,titleContent:"",titleBackgroundColor:"#ffffff",titleFontColor:"#000000",isMarkDown:!1,isContentMarkDown:!1},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==";var esmEntry$1={exports:{}},defaults$5={exports:{}};function getDefaults$1(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function changeDefaults$1(c){defaults$5.exports.defaults=c}defaults$5.exports={defaults:getDefaults$1(),getDefaults:getDefaults$1,changeDefaults:changeDefaults$1};const escapeTest=/[&<>"']/,escapeReplace=/[&<>"']/g,escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g,escapeReplacements={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},getEscapeReplacement=c=>escapeReplacements[c];function escape$3(c,u){if(u){if(escapeTest.test(c))return c.replace(escapeReplace,getEscapeReplacement)}else if(escapeTestNoEncode.test(c))return c.replace(escapeReplaceNoEncode,getEscapeReplacement);return c}const unescapeTest=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function unescape$1(c){return c.replace(unescapeTest,(u,f)=>(f=f.toLowerCase(),f==="colon"?":":f.charAt(0)==="#"?f.charAt(1)==="x"?String.fromCharCode(parseInt(f.substring(2),16)):String.fromCharCode(+f.substring(1)):""))}const caret=/(^|[^\[])\^/g;function edit$1(c,u){c=c.source||c,u=u||"";const f={replace:(h,d)=>(d=d.source||d,d=d.replace(caret,"$1"),c=c.replace(h,d),f),getRegex:()=>new RegExp(c,u)};return f}const nonWordAndColonTest=/[^\w:]/g,originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function cleanUrl$1(c,u,f){if(c){let h;try{h=decodeURIComponent(unescape$1(f)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(h.indexOf("javascript:")===0||h.indexOf("vbscript:")===0||h.indexOf("data:")===0)return null}u&&!originIndependentUrl.test(f)&&(f=resolveUrl(u,f));try{f=encodeURI(f).replace(/%25/g,"%")}catch{return null}return f}const baseUrls={},justDomain=/^[^:]+:\/*[^/]*$/,protocol=/^([^:]+:)[\s\S]*$/,domain=/^([^:]+:\/*[^/]*)[\s\S]*$/;function resolveUrl(c,u){baseUrls[" "+c]||(justDomain.test(c)?baseUrls[" "+c]=c+"/":baseUrls[" "+c]=rtrim$1(c,"/",!0)),c=baseUrls[" "+c];const f=c.indexOf(":")===-1;return u.substring(0,2)==="//"?f?u:c.replace(protocol,"$1")+u:u.charAt(0)==="/"?f?u:c.replace(domain,"$1")+u:c+u}const noopTest$1={exec:function(){}};function merge$2(c){let u=1,f,h;for(;u<arguments.length;u++){f=arguments[u];for(h in f)Object.prototype.hasOwnProperty.call(f,h)&&(c[h]=f[h])}return c}function splitCells$1(c,u){const f=c.replace(/\|/g,(p,v,m)=>{let g=!1,y=v;for(;--y>=0&&m[y]==="\\";)g=!g;return g?"|":" |"}),h=f.split(/ \|/);let d=0;if(h[0].trim()||h.shift(),h[h.length-1].trim()||h.pop(),h.length>u)h.splice(u);else for(;h.length<u;)h.push("");for(;d<h.length;d++)h[d]=h[d].trim().replace(/\\\|/g,"|");return h}function rtrim$1(c,u,f){const h=c.length;if(h===0)return"";let d=0;for(;d<h;){const p=c.charAt(h-d-1);if(p===u&&!f)d++;else if(p!==u&&f)d++;else break}return c.substr(0,h-d)}function findClosingBracket$1(c,u){if(c.indexOf(u[1])===-1)return-1;const f=c.length;let h=0,d=0;for(;d<f;d++)if(c[d]==="\\")d++;else if(c[d]===u[0])h++;else if(c[d]===u[1]&&(h--,h<0))return d;return-1}function checkSanitizeDeprecation$1(c){c&&c.sanitize&&!c.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function repeatString$1(c,u){if(u<1)return"";let f="";for(;u>1;)u&1&&(f+=c),u>>=1,c+=c;return f+c}var helpers={escape:escape$3,unescape:unescape$1,edit:edit$1,cleanUrl:cleanUrl$1,resolveUrl,noopTest:noopTest$1,merge:merge$2,splitCells:splitCells$1,rtrim:rtrim$1,findClosingBracket:findClosingBracket$1,checkSanitizeDeprecation:checkSanitizeDeprecation$1,repeatString:repeatString$1};const{defaults:defaults$4}=defaults$5.exports,{rtrim,splitCells,escape:escape$2,findClosingBracket}=helpers;function outputLink(c,u,f,h){const d=u.href,p=u.title?escape$2(u.title):null,v=c[1].replace(/\\([\[\]])/g,"$1");if(c[0].charAt(0)!=="!"){h.state.inLink=!0;const m={type:"link",raw:f,href:d,title:p,text:v,tokens:h.inlineTokens(v,[])};return h.state.inLink=!1,m}else return{type:"image",raw:f,href:d,title:p,text:escape$2(v)}}function indentCodeCompensation(c,u){const f=c.match(/^(\s+)(?:```)/);if(f===null)return u;const h=f[1];return u.split(`
103
103
  `).map(d=>{const p=d.match(/^\s+/);if(p===null)return d;const[v]=p;return v.length>=h.length?d.slice(h.length):d}).join(`
104
104
  `)}var Tokenizer_1$1=class{constructor(u){this.options=u||defaults$4}space(u){const f=this.rules.block.newline.exec(u);if(f)return f[0].length>1?{type:"space",raw:f[0]}:{raw:`
105
105
  `}}code(u){const f=this.rules.block.code.exec(u);if(f){const h=f[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:f[0],codeBlockStyle:"indented",text:this.options.pedantic?h:rtrim(h,`
@@ -158,7 +158,7 @@ Please report this to https://github.com/markedjs/marked.`,u.silent)return"<p>An
158
158
  <img style="width: ${vue.unref(p)};filter: ${`drop-shadow(${br||hr||"#6ACB97"} ${vue.unref(p)} 0px)`};" src="${goDown}"/>
159
159
  </div>
160
160
  <span style="color: ${br||c.color};${vue.unref(Fn)}">${c.minusSignShow?"-":""}${Math.abs(+yr).toFixed(2)}%</span>
161
- </span>`}dr=or}for(let pr=0;pr<mr.length;pr++){const yr=mr[pr],br=(vr=yr==null?void 0:yr.slice(1,yr.length-1))==null?void 0:vr.trim();let Sr=br;if(br.includes("$page"))Sr=Pn(br)||c.variableDefaultValue;else{const kr=br.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let wr=0;wr<kr.length;wr++){const Er=kr[wr],Pr=er[Er];if(Pr)Sr=br.replace(Er,J(String(Pr))||Pr);else{const _r=getPageUrlParams(Jn);_r[Er]&&(Sr=decodeURIComponent(_r[Er]))}}if(/\(.*\)/g.test(Sr)){const wr=pn(Sr);wr!=null&&(Sr=wr)}}let gr=c.isContentMarkDown&&Sr&&vue.unref(x)!=="design"?esmEntry(Sr):Sr;if(gr===br&&(gr=c.variableDefaultValue),gr!=null){const kr=c.format;if(kr==="percentage")if(gr=+gr,isNaN(gr))c.variableDefaultValue?or=or.replace(yr,`<span class="${fr}" style="color:${Xn("0.00")||c.variableColor};font-size:${vue.unref(p)};${vue.unref(Fn)}">${c.variableDefaultValue}</span>`):or=or.replace(yr,`<span class="${fr}" style="color:${Xn("0.00")||c.variableColor};font-size:${vue.unref(p)};${vue.unref(Fn)}">0%</span>`);else if(gr>=0){gr=gr*100;const wr=Xn(gr.toFixed(2));or=or.replace(yr,`<span class="${fr}" style="color: ${wr||ur||"#ED6643"};font-size:${vue.unref(p)};display: inline-block;${vue.unref(Fn)}">
161
+ </span>`}dr=or}for(let pr=0;pr<mr.length;pr++){const yr=mr[pr],br=(vr=yr==null?void 0:yr.slice(1,yr.length-1))==null?void 0:vr.trim();let Sr=br;if(br.includes("$page"))Sr=Pn(br)||c.variableDefaultValue;else{const kr=br.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let wr=0;wr<kr.length;wr++){const Er=kr[wr],Tr=er[Er];if(Tr)Sr=br.replace(Er,J(String(Tr))||Tr);else{const _r=getPageUrlParams(Jn);_r[Er]&&(Sr=decodeURIComponent(_r[Er]))}}if(/\(.*\)/g.test(Sr)){const wr=pn(Sr);wr!=null&&(Sr=wr)}}let gr=c.isContentMarkDown&&Sr&&vue.unref(x)!=="design"?esmEntry(Sr):Sr;if(gr===br&&(gr=c.variableDefaultValue),gr!=null){const kr=c.format;if(kr==="percentage")if(gr=+gr,isNaN(gr))c.variableDefaultValue?or=or.replace(yr,`<span class="${fr}" style="color:${Xn("0.00")||c.variableColor};font-size:${vue.unref(p)};${vue.unref(Fn)}">${c.variableDefaultValue}</span>`):or=or.replace(yr,`<span class="${fr}" style="color:${Xn("0.00")||c.variableColor};font-size:${vue.unref(p)};${vue.unref(Fn)}">0%</span>`);else if(gr>=0){gr=gr*100;const wr=Xn(gr.toFixed(2));or=or.replace(yr,`<span class="${fr}" style="color: ${wr||ur||"#ED6643"};font-size:${vue.unref(p)};display: inline-block;${vue.unref(Fn)}">
162
162
  <div class="percentage-img-box">
163
163
  <img style="width: ${vue.unref(p)};filter: ${`drop-shadow(${wr||ur||"#ED6643"} ${vue.unref(p)} 0px)`};" src="${goUp}"/>
164
164
  </div>
@@ -168,7 +168,7 @@ Please report this to https://github.com/markedjs/marked.`,u.silent)return"<p>An
168
168
  <img style="width: ${vue.unref(p)};filter: ${`drop-shadow(${wr||hr||"#6ACB97"} ${vue.unref(p)} 0px)`};" src="${goDown}"/>
169
169
  </div>
170
170
  <span style="color: ${wr||c.color};${vue.unref(Fn)}">${c.minusSignShow?"-":""}${Math.abs(+gr).toFixed(2)}%</span>
171
- </span>`)}else c.format==="percent"?(gr=+gr,isNaN(gr)||(gr=(gr*100).toFixed(2),or=or.replace(yr,`<span class="${fr}" style="color:${Xn(gr)||c.variableColor};font-size:${vue.unref(p)};${vue.unref(Fn)}">${gr}%</span>`))):c.format==="money"?(gr=+gr,isNaN(gr)||(gr=formatMoney(gr),or=or.replace(yr,`<span class="${fr}" style="color:${Xn(gr)||c.variableColor};font-size:${vue.unref(p)};${vue.unref(Fn)}">${gr}</span>`))):kr==="thousands"?(gr=+gr,isNaN(gr)||(gr=formatThousands(gr),or=or.replace(yr,`<span class="${fr}" style="color:${Xn(gr)||c.variableColor};font-size:${vue.unref(p)};${vue.unref(Fn)}">${gr}</span>`))):or=or.replace(yr,`<span class="${fr}" style="color:${Xn(gr)||c.variableColor};font-size:${vue.unref(p)};${vue.unref(Fn)}">${gr}</span>`)}}if(dr||(dr=`<span class="${fr}" style="color: ${Xn(or)};${vue.unref(Fn)}">${or}</span>`),c.unitShow&&c.unitText){const{unitTop:pr,unitLeft:yr}=c;let br="position:relative;";pr&&(br+=`top:${pr};`),yr&&(br+=`margin-left:${yr};`),dr+=`<span style='color:${c.unitColor};font-size:${c.unitFontSize};font-weight:${c.unitFontWeight};${br};${vue.unref(Fn)}'>${c.unitText}</span>`}return c.exceedConfig&&(dr=`<span class="${fr}" style="display: inline-block;color: ${Xn(dr)};">${dr}</span>`),dr.includes("span")||(dr=`<span class="${fr}" style="color: ${Xn(dr)};">${dr}</span>`),dr});function Xn(er){let ur="",hr=!1;const{targetValue:or,targetShow:mr,notExpectColor:dr}=c;if(mr){switch(c.targetRule){case"equal":er!==or&&(hr=!0);break;case"greater":er<=or&&(hr=!0);break;case"greater_equal":er<or&&(hr=!0);break;case"less":er>=or&&(hr=!0);break;case"less_equal":er>or&&(hr=!0);break}hr&&(ur=dr)}return ur}const{pageId:Jn}=vue.inject("templateOperate",{pageId:""})||{},ir=useRequestData(c),sr=vue.ref(!1),Zn=async()=>{var er,ur,hr;try{sr.value=!0;const or=await ir();(er=or==null?void 0:or.data)!=null&&er.data.rowsToData?gn(((ur=or==null?void 0:or.data)==null?void 0:ur.data.rowsToData)||{}):gn(((hr=or==null?void 0:or.data)==null?void 0:hr.data)||{})}catch(or){console.error(or)}finally{sr.value=!1}},Gn=()=>{vn("")},Kn=er=>{var hr,or;const{data:ur}=(er==null?void 0:er.data)||{};if(ur){f.value=!1;const{columns:mr=[],rows:dr=[]}=((hr=er==null?void 0:er.data)==null?void 0:hr.data)??{},{graphicConfig:fr}=c;let vr={};if(mr.length>0)if((or=fr==null?void 0:fr.dimensionList)!=null&&or.length){const pr=mr[0];pr&&(dr!=null&&dr.length)&&(vr={value:dr[0][pr]})}else{const pr=mr.find(yr=>!!yr);pr&&(vr={value:isNaN(dr[pr])?0:dr[pr]||0})}vn(vr==null?void 0:vr.value),gn(vr)}else f.value=!0,vn(c.variableDefaultValue),gn({value:c.variableDefaultValue})},Vn=useIndicatorData(c,Kn),qn=async()=>{try{sr.value=!0;const er=await Vn();Kn(er)}catch(er){console.error(er)}finally{sr.value=!1,Rn(c.id,!0)}},nr=vue.ref(!1);vue.watch(Bn,er=>{if(c.dataType==="indicator"){const ur=getFixedValueDatas(c.graphicConfig);ur!=null&&ur.length&&(!vue.unref(nr)&&canRequestIndicator(c.graphicConfig,er)?(nr.value=!0,Hn()):canRequestIndicator(c.graphicConfig,er)||(nr.value=!1))}},{deep:!0});const Hn=()=>{switch(c.dataType){case"indicator":qn();break;case"request":{const{openCustomRequestData:er,customRequestName:ur}=c;er||er===void 0?Zn():(sr.value=!0,re(ur,hr=>{hr&&(hr.rowsToData?gn(hr.rowsToData):gn(hr)),sr.value=!1}));break}}},{setRequest:lr}=vue.inject(REQUEST_MODEL,{setRequest:({id:er,sortNum:ur,requestFn:hr})=>{}});typeof lr=="function"&&lr({id:c.id,requestFn:Hn,sortNum:c.requestSort}),u({refreshData:Hn});const cr=useEmitEvent(c),Qn=cr("click",()=>{const er=document.getElementsByClassName(`ecan-text_${c.id}`);er!=null&&er.length&&vn(er[0].innerText),setTimeout(()=>{vn("")},0),!(!c.linkPage&&!c.href)&&handleJumpLink(c,{pageMode:vue.unref(x),targetTemplate:c.targetTemplate,getRecordValueByKeyName:J,setTemplateData:w})}),ar=cr("valueChange",()=>{tr.value++});return useOnEvent(c,{refreshData:Hn,resetRecord:Gn,click:Qn,valueChange:ar}),vue.watch(()=>Yn.value,(er,ur)=>{er!==ur&&ar(),vue.nextTick(()=>{var hr;(hr=vue.unref(g))!=null&&hr.textContent?y.value=!0:y.value=!1})}),{style:h,myText:Yn,loading:sr,click:Qn,textIndent:v,vFontSize:p,gradientStyle:zn,cursorStyle:Un,myTitle:m,wrapStyle:Wn,textRef:g}}}),__injectCSSVars__$4=()=>{vue.useCssVars(c=>({"55186bf6":c.vFontSize,fdb4fccc:c.textIndent,"460a83f2":c.percentageSide,"64f1c9bd":c.titleFontColor,"5a0fdd46":c.variableColor}))},__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_2a8d73e9_lang="",Text_vue_vue_type_style_index_1_lang="",_hoisted_1$f=["innerHTML"],_hoisted_2$7=["innerHTML"],_hoisted_3$3=["innerHTML"];function _sfc_render$x(c,u,f,h,d,p){const v=vue.resolveComponent("skeleton"),m=vue.resolveComponent("a-tooltip");return c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{loading:c.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-text",style:vue.normalizeStyle(c.style),onClick:u[0]||(u[0]=(...g)=>c.click&&c.click(...g))},[c.myTitle?(vue.openBlock(),vue.createBlock(m,{key:0,overlayClassName:"ecan-text-tooltip",color:c.titleBackgroundColor||"#ffffff"},{title:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({padding:"10px",maxHeight:"500px",overflow:"auto",color:c.titleFontColor||"#000000"}),innerHTML:c.myTitle},null,12,_hoisted_1$f)]),default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass("ecan-text_"+c.id),style:vue.normalizeStyle({...c.gradientStyle,...c.cursorStyle}),innerHTML:c.myText},null,14,_hoisted_2$7)]),_:1},8,["color"])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["ecan-text_"+c.id,c.isContentMarkDown?"markdown-content-tenxt":""]),style:vue.normalizeStyle({...c.gradientStyle,...c.cursorStyle,...c.wrapStyle}),ref:"textRef",innerHTML:c.myText},null,14,_hoisted_3$3))],4))}const Text=_export_sfc$1(__default__$4,[["render",_sfc_render$x],["__scopeId","data-v-2a8d73e9"]]),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,p){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:_,value:J,mode:re}=Pn;switch(_){case"add":b=b.add(J,re);break;case"minus":b=b.subtract(J,re)}}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 p=null;const v=()=>{clearInterval(p),p=null},g=useEmitEvent(c)("timeChange",()=>{}),y=()=>{p&&v();let x=1e3;const{value:Pn,mode:b}=c.updateInterval||{};Pn&&(x=x*Pn);const _={second:1,minute:60,hour:60*60,day:24*60*60};b&&(x=x*_[b]),p=setInterval(()=>{d.value=h(),vue.unref(u)!=="design"&&g()},x)};return useOnEvent(c,{timeChange:g}),vue.onMounted(()=>{y()}),vue.onUnmounted(()=>{v()}),{style:f,time:d}}}),TimeDisplay_vue_vue_type_style_index_0_scoped_b9216314_lang="";function _sfc_render$v(c,u,f,h,d,p){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=(Kn,Vn)=>{const{format:qn,customFormatter:nr}=Vn;if(qn==null||qn==="")return Kn;const Hn={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,custom:formatCustom};return Hn[qn]?qn==="custom"?Hn[qn](Kn,nr)||"":Hn[qn](Kn)||"":""},p=(Kn,Vn)=>{const qn=parseFloat(Kn+"");if(Vn!=="contrast")return"";switch(!0){case qn>=0:return"goUp";case qn<0:return"goDown"}},v=useRequestData(c),m=vue.ref(!1),g=async()=>{var Kn;if(c.dataType==="request")try{m.value=!0;const Vn=await v();f.value=((Kn=Vn==null?void 0:Vn.data)==null?void 0:Kn.data.rows)||[]}catch(Vn){console.error(Vn)}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:Kn,isUseSeq:Vn}=c;return Vn?[vue.unref(y),...Kn]:Kn}),Pn=Kn=>{var nr;const{columns:Vn=[],rows:qn=[]}=((nr=Kn==null?void 0:Kn.data)==null?void 0:nr.data)??{};c.isUseSeq&&Vn.unshift(c.seqName),x.value.forEach((Hn,lr)=>{(!c.isUseSeq||lr!==0)&&(Hn.title=Vn[lr],Hn.key=Vn[lr])}),f.value=qn},b=useIndicatorData(c,Pn),_=async()=>{try{m.value=!0;const Kn=await b();Pn(Kn)}catch(Kn){console.error(Kn)}finally{m.value=!1}},J=()=>{switch(c.dataType){case"indicator":_();break;case"request":g();break}},re=useEmitEvent(c),{getGlobalModel:Rn,setGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Kn=>{},setGlobalModel:(Kn,Vn)=>{}}),w=Kn=>{re("click",()=>{const Vn=Rn(c.id);Bn(c.id,{...Vn,type:c.type,RECORD:Kn})})()};useOnEvent(c,{refreshData:J,resetRecord:()=>{const Kn=c.id,Vn=Rn(Kn);Bn(Kn,{...Vn,type:c.type,RECORD:""})}});const{setRequest:gn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Kn,sortNum:Vn,requestFn:qn})=>{}});typeof gn=="function"&&gn({id:c.id,requestFn:J,sortNum:c.requestSort}),u({refreshData:J});const Fn=(Kn,Vn)=>({flex:Kn.width?"none":"1",width:Kn.width,height:c.itemHeight,lineHeight:c.itemHeight,textAlign:(Vn?Kn.cellAlign:Kn.align)||"left",backgroundColor:Kn.cellColor}),zn=(Kn,Vn)=>{let qn=0;const nr=vue.unref(f).map(lr=>lr[Vn]),Hn=Math.max(...nr);return Hn&&(qn=Kn[Vn]/Hn*100),qn},Un=Kn=>{const{progressColor:Vn="#1890ff",progressGradientColor:qn=""}=Kn;return qn?{background:`linear-gradient(to right, ${Vn} 0%, ${qn} 100%)`}:{backgroundColor:Vn||"#1890ff"}},Wn=vue.computed(()=>{const Kn=parseFloat(c.seqFontSize)+5;return{width:Kn+10,height:Kn}}),{pageMode:tr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),Yn=vue.computed(()=>vue.unref(tr)!=="design"&&c.isAutoScroll),Xn=Kn=>{const{seqIconConfig:Vn}=c;let qn=Vn.find(nr=>nr.key===Kn+1);return qn||(qn=Vn.find(nr=>nr.key==="other")),!!(qn!=null&&qn.icon)},Jn=(Kn,Vn)=>{const{seqIconConfig:qn}=c;let nr=qn.find(Hn=>Hn.key===Kn+1);return nr||(nr=qn.find(Hn=>Hn.key==="other")),Vn===1?nr!=null&&nr.icon?useImagePath(nr.icon):"":Vn===2?(nr==null?void 0:nr.color)||"#fff":""},ir=Kn=>{const{seqIndexFormatter:Vn}=c,qn=Kn+1;return Vn?hn(Vn,{textData:{index:qn}},{useNewline:!1,useSpace:!0}):qn},sr=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:p,dataSource:f,loading:m,myColumns:x,click:w,getColumnStyle:Fn,getPercentage:zn,getBackgroundColor:Un,isShowSeqIcon:Xn,getSeqIconData:Jn,seqIcon4,seqIcon5,seqIcon6,seqIcon7,iconSize:Wn,isScroll:Yn,formatSeq:ir,wrapStyle:sr,colSpan:Zn,getText:(Kn,Vn)=>(Kn.format!=null||Kn.format!=="")&&d(Vn[Kn.key],Kn)}}}),List_vue_vue_type_style_index_0_scoped_0f13dff6_lang="",List_vue_vue_type_style_index_1_lang="",_withScopeId$4=c=>(vue.pushScopeId("data-v-0f13dff6"),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,p){const v=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(v,{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-0f13dff6"]]),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),p=vue.computed(()=>{const Fn=c.width;return parseFloat(Fn)}),v=vue.ref({});vue.watch(()=>c.data,()=>{(c.dataType==="static"||vue.unref(h)==="design")&&(v.value=c.data)},{immediate:!0,deep:!0});const m=vue.computed(()=>{const Fn=vue.unref(v),zn=+c.variableDefaultValue;if(Fn==null)return isNaN(zn)?0:zn;const Un=c.text.match(/\{(.+?)\}/g)||[];let Wn;const tr=new Set(Object.keys(Fn));for(let Yn=0;Yn<Un.length;Yn++){const Xn=Un[Yn],Jn=Xn.slice(1,Xn.length-1);if(tr.has(Jn)){Wn=Fn[Jn];break}}return typeof Wn=="number"?Wn=Wn*100:typeof Wn=="string"&&!isNaN(+Wn)?Wn=+Wn*100:isNaN(zn)?Wn=0:Wn=zn*100,c.decimalFormat&&(Wn=+Wn.toFixed(2)),Wn}),g=vue.computed(()=>{var tr;let Fn=c.text;if(Fn==="")return vue.unref(m);const zn=c.variableDefaultValue,Un=vue.unref(v),Wn=Fn.match(/\{(.+?)\}/g)||[];for(let Yn=0;Yn<Wn.length;Yn++){const Xn=Wn[Yn];let Jn=Xn.slice(1,Xn.length-1);const ir=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,sr=Xn.match(ir);for(let Gn=0;Gn<(sr==null?void 0:sr.length);Gn++){const Kn=(tr=sr[Gn])==null?void 0:tr.trim();Un[Kn]!=null&&(Jn=Jn.replace(Kn,Un[Kn]))}let Zn=Jn;try{(/\(.*\)/g.test(Jn)||/[+/\\*]/g.test(Jn))&&(Zn=pn(Jn))}catch(Gn){console.error(Gn)}typeof+Zn=="number"&&!isNaN(+Zn)?(Zn=+Zn*100,c.decimalFormat&&(Zn=Zn.toFixed(2))):typeof Zn!="string"&&(Zn=zn),Fn=Fn.replace(Xn,`<span style="color: ${c.variableColor};">${Zn+""}</span>`)}return Fn=Fn==null?void 0:Fn.replace(/\n|\\n/g,"<br/>"),vue.unref(f)?"NaN":Fn}),y=useRequestData(c),x=vue.ref(!1),Pn=async()=>{var Fn,zn,Un,Wn,tr;if(c.dataType==="request")try{x.value=!0;const Yn=await y();v.value=((Fn=Yn==null?void 0:Yn.data)==null?void 0:Fn.data)||{},(Un=(zn=Yn==null?void 0:Yn.data)==null?void 0:zn.data)!=null&&Un.rowsToData&&(v.value=((tr=(Wn=Yn==null?void 0:Yn.data)==null?void 0:Wn.data)==null?void 0:tr.rowsToData)||{})}catch(Yn){console.error(Yn)}finally{x.value=!1}},b=(Fn={})=>{v.value=Fn},_=Fn=>{var Un;const{data:zn}=(Fn==null?void 0:Fn.data)||{};if(zn){f.value=!1;const{columns:Wn=[],rows:tr=[]}=((Un=Fn==null?void 0:Fn.data)==null?void 0:Un.data)??{};let Yn={};if(Wn.length>0){const Xn=Wn.find(Jn=>!!Jn);Xn&&(Yn={percent:tr[Xn]})}b(Yn)}else f.value=!0,b({percent:"NaN"})},J=useIndicatorData(c,_),re=async()=>{try{x.value=!0;const Fn=await J();_(Fn)}catch(Fn){console.error(Fn)}finally{x.value=!1}},Rn=()=>{switch(c.dataType){case"indicator":re();break;case"request":Pn();break}};useOnEvent(c,{refreshData:Rn}),u({refreshData:Rn});const w=useEmitEvent(c)("click",()=>{}),{setRequest:vn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Fn,sortNum:zn,requestFn:Un})=>{}});typeof vn=="function"&&vn({id:c.id,requestFn:Rn,sortNum:c.requestSort});const gn=vue.computed(()=>{const{gradientShow:Fn,gradientColor:zn,gradientOffset:Un,strokeColor:Wn}=c;let tr=Wn;return Fn&&(tr={"0%":Wn||"transparent",[`${Un*100}%`]:zn||"transparent"}),tr});return{style:d,myWidth:p,text:g,myValue:m,loading:x,click:w,customStrokeColor:gn}}}),Proportion_vue_vue_type_style_index_0_scoped_ca061c1e_lang="",_hoisted_1$c=["innerHTML"];function _sfc_render$t(c,u,f,h,d,p){const v=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(v,{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-ca061c1e"]]),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"})),p=vue.computed(()=>({color:c.color,fontSize:c.fontSize,fontWeight:c.fontWeight,fontStyle:c.fontStyle}));vue.watch(()=>[c.data,c.dataType],([gn,Fn])=>{Fn==="static"&&(f.value=gn)},{immediate:!0});const{getGlobalModel:v,setGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:gn=>{},setGlobalModel:(gn,Fn)=>{}}),y=useEmitEvent(c)("click",()=>{const gn=v(c.id);m(c.id,{...gn,type:c.type,value:vue.unref(f)})}),x=()=>{const gn=c.id,Fn=v(gn);m(gn,{...Fn,type:c.type,value:""})},Pn=useRequestData(c),b=vue.ref(!1),_=async()=>{var gn,Fn;try{b.value=!0;const zn=await Pn();f.value=((Fn=(gn=zn==null?void 0:zn.data)==null?void 0:gn.data)==null?void 0:Fn.value)||""}catch(zn){console.error(zn)}finally{b.value=!1}},J=gn=>{var Un;const{data:Fn}=(gn==null?void 0:gn.data)||{};let zn="";if(Fn){const{columns:Wn=[],rows:tr=[]}=((Un=gn==null?void 0:gn.data)==null?void 0:Un.data)??{};if(Wn.length>0){const Yn=Wn.find(Xn=>!!Xn);Yn&&(zn=tr[Yn]||"")}}f.value=String(zn)},re=useIndicatorData(c,J),Rn=async()=>{try{b.value=!0;const gn=await re();J(gn)}catch(gn){console.error(gn)}finally{b.value=!1}},Bn=()=>{switch(c.dataType){case"indicator":Rn();break;case"request":_();break}},w=vue.computed(()=>{const gn=[],{digits:Fn}=c,zn=vue.unref(f)?vue.unref(f).split("").reverse().join(""):"";for(let Un=0;Un<Fn;Un++)zn&&zn[Un]?gn.push(zn[Un]):gn.push("0");return gn.reverse()});useOnEvent(c,{refreshData:Bn,resetRecord:x});const{setRequest:vn}=vue.inject(REQUEST_MODEL,{setRequest:({id:gn,sortNum:Fn,requestFn:zn})=>{}});return typeof vn=="function"&&vn({id:c.id,requestFn:Bn,sortNum:c.requestSort}),u({refreshData:Bn}),{style:h,valueList:w,digitsStyle:d,fontStyle:p,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,p){var m;const v=vue.resolveComponent("skeleton");return c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{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:p}=vue.inject(GLOBAL_MODEL,{getGlobalModel:x=>{},setGlobalModel:(x,Pn)=>{},getRecordValueByKeyName:x=>{}});vue.watch(()=>c.value,x=>{f.value=p(x)},{immediate:!0}),d(c.id,{type:c.type,value:f});const v=()=>{const x=h(c.id);d(c.id,{...x,RECORD:f})},m=useEmitEvent(c),g=lodashEs.debounce(m("inputChange",()=>{v()}),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,p){const v=vue.resolveComponent("a-input");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-input",style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{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:"",data:""},datePickerComponentProps=transformToComponentProps(datePickerProps$1),datePickerEvents=["dateChange","refreshData"],__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,p=vue.ref(null),v=vue.ref(null),m=vue.ref(""),g=vue.ref(!1),y=vue.ref([]),x=vue.ref(""),Pn=vue.computed(()=>{let Hn=["year","month","day"];switch(c.picker){case"year":Hn=["year"];break;case"month":Hn=["year","month"];break}return Hn}),{setGlobalModel:b,getGlobalModel:_}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Hn=>{},setGlobalModel:(Hn,lr)=>{}}),{pageId:J}=vue.inject("templateOperate",{pageId:""})||{};b(c.id,{type:c.type,format:c.format,useCurrentTime:c.useCurrentTime,value:p,RECORD:p});const{getGlobalVar:re}=vue.inject(GLOBAL_CONFIG,{getGlobalVar:Hn=>{}}),Rn=useEmitEvent(c),Bn=Hn=>{const lr=c.id,cr=_(lr);b(lr,{...cr,value:Hn||"",RECORD:Hn||""})},w=Rn("refreshData",Hn=>{Bn(Hn)});vue.watch(()=>[c.value,c.useCurrentTime,c.operate,x.value],([Hn,lr,cr,Qn])=>{let ar=null,er=Hn;if(c.dataType==="request"&&(er=Qn),er){const ur=er.match(/\{(.+?)\}/g);if(ur){const hr={};for(let or of ur){const mr=or.slice(1,-1).trim(),dr=_(mr);if(dr)hr[mr]=dr.value.format(dr.format);else if(mr.includes("$page")){const fr=mr.replace(/[$.]/g,"");er=er.replaceAll(mr,fr),hr[fr]=re(mr)}}ar=dayjs(hn(er,{textData:hr}))}else ar=dayjs(hn(er))}else lr&&(ar=dayjs());if(cr&&ar){const{type:ur,value:hr,mode:or}=cr;switch(ur){case"add":ar=ar.add(hr,or);break;case"minus":ar=ar.subtract(hr,or)}}p.value=ar,v.value=ar,vue.unref(u)&&Jn(ar),w(ar)},{deep:!0,immediate:!0});const vn=Rn("dateChange",()=>{const Hn=getNewValueFromUrlParams(J,c.keyName,"value");Hn&&(p.value=dayjs(Hn)),Bn(vue.unref(p))}),gn=()=>{vue.unref(p)&&vn()};useOnEvent(c,{dateChange:vn});const Fn=vue.ref({}),zn=vue.ref({}),Un=Hn=>{Hn?setTimeout(()=>{zn.value=vue.unref(Fn)},300):zn.value={}};vue.onMounted(()=>{setTimeout(()=>{const Hn=document.querySelector(`#ecan-date-picker-${c.id}`);if(Hn){const lr=Hn.getBoundingClientRect(),cr=parseFloat(vue.unref(f).widthScale)*280;document.body.clientWidth-lr.left<cr&&(Fn.value.marginLeft=-1*(cr-lr.width)+"px")}},0)});const Wn=()=>{Jn(vue.unref(p)),g.value=!0},tr=()=>{Jn(),p.value=null},Yn=()=>{const Hn=dayjs(vue.unref(y).join("-"));p.value=Hn,Jn(Hn),g.value=!1,gn()},Xn=()=>{p.value=dayjs(),Jn(),m.value=dayjs().format(c.format),g.value=!1};function Jn(Hn){y.value=ir(Hn||dayjs()),m.value=(Hn==null?void 0:Hn.format(c.format))||""}function ir(Hn){const lr=[];for(const cr of vue.unref(Pn))cr==="day"?lr.push(Hn.date()):lr.push(Hn[cr]()+(cr==="month"?1:0));return lr}const sr=Hn=>{let lr=!1,{limitStartTime:cr,limitEndTime:Qn}=c,ar=c.picker;const er={current:vue.unref(v)};return c.picker==="date"&&(ar="day"),cr=hn(cr,{textData:er}),Qn=hn(Qn,{textData:er}),cr&&Qn?lr=!(dayjs(cr).isBefore(Hn,ar)&&Hn.isBefore(dayjs(Qn),ar)):cr?lr=Hn.isBefore(dayjs(cr),ar):Qn&&(lr=dayjs(Qn).isBefore(Hn,ar)),lr},Zn=(Hn={})=>{var lr;if((lr=Object.keys(Hn))!=null&&lr.length)for(const cr in Hn)x.value=Hn[cr]},Gn=useRequestData(c),Kn=vue.ref(!1),Vn=async()=>{var Hn,lr,cr;try{Kn.value=!0;const Qn=await Gn();(Hn=Qn==null?void 0:Qn.data)!=null&&Hn.data.rowsToData?Zn(((lr=Qn==null?void 0:Qn.data)==null?void 0:lr.data.rowsToData)||{}):Zn(((cr=Qn==null?void 0:Qn.data)==null?void 0:cr.data)||{})}catch(Qn){console.error(Qn)}finally{Kn.value=!1}},qn=()=>{switch(c.dataType){case"request":{Vn();break}}},{setRequest:nr}=vue.inject(REQUEST_MODEL,{setRequest:({id:Hn,sortNum:lr,requestFn:cr})=>{}});return typeof nr=="function"&&nr({id:c.id,requestFn:qn,sortNum:c.requestSort}),{style:h,getPopupContainer:d,myValue:p,locale,change:gn,scaleValue:f,popupStyle:Fn,customStyle:zn,openChange:Un,isMobile:u,mobileDateStr:m,handleClearDate:tr,openDatePick:Wn,datePickVisible:g,columnsType:Pn,mobileDate:y,onConfirmDate:Yn,onCancelDate:Xn,disabledDate:sr}}}),__injectCSSVars__$3=()=>{vue.useCssVars(c=>({edd07842: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_dba55fcd_lang="",DatePicker_vue_vue_type_style_index_1_lang="",_hoisted_1$a=["id"];function _sfc_render$q(c,u,f,h,d,p){const v=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(v,{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-dba55fcd"]]),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,p){var v=p.prototype;v.quarter=function(y){return this.$utils().u(y)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(y-1))};var m=v.add;v.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=v.startOf;v.startOf=function(y,x){var Pn=this.$utils(),b=!!Pn.u(x)||x;if(Pn.p(y)===h){var _=this.quarter()-1;return b?this.month(3*_).startOf(f).startOf("day"):this.month(3*_+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,getGlobalVar:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",getGlobalVar:dr=>{}}),{getGlobalModel:d,setGlobalModel:p}=vue.inject(GLOBAL_MODEL,{getGlobalModel:dr=>{},setGlobalModel:(dr,fr)=>{}}),v=usePickComponentStyle(c),m=()=>document.getElementById("ProviderConfig")||document.body,g=vue.ref([null,null]),y=vue.ref(!1),x=vue.ref([]),Pn=vue.ref([]),b=vue.ref(),_=vue.ref(),J=vue.ref(),re=vue.ref(),Rn=vue.ref(0),Bn=vue.ref({}),w=vue.ref(""),vn=vue.computed(()=>{let dr=["year","month","day"];switch(c.picker){case"year":dr=["year"];break;case"month":dr=["year","month"];break}return dr}),gn=dr=>{const fr=dr==null?void 0:dr.match(/\{(.+?)\}/g);let vr;if(fr){const pr={};for(let yr of fr){const br=yr.slice(1,-1).trim(),Sr=d(br);if(Sr)pr[br]=Sr.value.format(Sr.format);else if(br.includes("$page")){const gr=br.replace(/[$.]/g,"");dr=dr.replaceAll(br,gr),pr[gr]=h(br)}}vr=dayjs(hn(dr,{textData:pr}))}else vr=dayjs(hn(dr));return vr};vue.watch(()=>[c.startTime,c.endTime,c.useCurrentTime,c.interval,c.intervalUnit,c.operate],([dr,fr,vr,pr,yr,br])=>{if(vue.unref(g).every(Sr=>!Sr)||vue.unref(f)==="design"){let Sr=null,gr=null;if(vr&&(Sr=dayjs().subtract(pr,yr),gr=dayjs()),dr&&(Sr=gn(dr)),fr&&(gr=gn(fr)),br){const{type:kr,value:wr,mode:Er}=br;switch(kr){case"add":Sr=Sr&&Sr.add(wr,Er),gr=gr&&gr.add(wr,Er);break;case"minus":Sr=Sr&&Sr.subtract(wr,Er),gr=gr&&gr.subtract(wr,Er)}}g.value=[Sr,gr],vue.unref(u)&&or()}},{immediate:!0});let Fn=vue.unref(g)[0],zn=vue.unref(g)[1],Un="";const Wn=(dr,fr,vr)=>{Array.isArray(dr)?(Fn=dr[0],zn=dr[1],Un=vr.range):(Fn=null,zn=null)},tr=dr=>{let fr=!1,{limitStartTime:vr,limitEndTime:pr}=c;const yr={startTime:`${Fn||""}`,endTime:`${zn||""}`};if(vr=hn(vr,{codeData:yr}),pr=hn(pr,{codeData:yr}),vr&&pr?fr=!(dayjs(vr)<dr&&dr<dayjs(pr)):vr?fr=dayjs(vr)>dr:pr&&(fr=dayjs(pr)<dr),!c.isAllowSpanYear&&Un){let br=null;if(Un==="start"?br=Fn:Un==="end"&&(br=zn),br){const Sr=br.startOf("year"),gr=br.endOf("year");fr=!(Sr<=dr&&dr<gr)}}if(!fr){const{value:br=0,mode:Sr="year"}=c.limitInterval||{};br&&(Un==="start"?fr=Fn.add(br,Sr)<dr:Un==="end"&&(fr=zn.subtract(br,Sr)>dr))}return fr},Yn=vue.computed(()=>Array.isArray(vue.unref(g))?vue.unref(g)[0]:null),Xn=vue.computed(()=>Array.isArray(vue.unref(g))?vue.unref(g)[1]:null),{pageId:Jn}=vue.inject("templateOperate",{pageId:""})||{};p(c.id,{type:c.type,format:c.format,startTime:Yn,endTime:Xn,interval:c.interval,intervalUnit:c.intervalUnit,useCurrentTime:c.useCurrentTime,operate:c.operate});const ir=useEmitEvent(c);let sr=!1;const Zn=ir("dateChange",()=>{var vr;const dr=getNewValueFromUrlParams(Jn,c.keyName,"startTime"),fr=getNewValueFromUrlParams(Jn,c.keyName,"endTime");(vr=g.value)!=null&&vr.length||(g.value=[null,null]),dr&&(g.value[0]=dayjs(dr)),fr&&(g.value[1]=dayjs(fr))}),Gn=dr=>{const fr=vue.unref(g),vr=fr&&fr[0]&&fr[1];dr===!1&&sr===!0&&vr&&(Zn(),sr=!1),dr||(Un="")},Kn=()=>{sr=!0},Vn=()=>{const{associated:dr}=c;if(dr){const fr=d(dr)||{};if(fr){const{value:vr}=fr;if(vr)switch(vue.unref(vr)){case"day":g.value=[dayjs().startOf("day"),dayjs().endOf("day")];break;case"month":g.value=[dayjs().startOf("month"),dayjs().endOf("month")];break;case"quarter":g.value=[dayjs().startOf("quarter"),dayjs().endOf("quarter")];break;case"year":g.value=[dayjs().startOf("year"),dayjs().endOf("year")];break}}}Zn()},qn=()=>{ur(vue.unref(g)),y.value=!0},nr=()=>{ur(),w.value="",g.value=[null,null]},Hn=()=>{g.value=[dayjs(vue.unref(x).join("-")),dayjs(vue.unref(Pn).join("-"))],ur(vue.unref(g)),hr(),ar(),y.value=!1,Zn()},lr=()=>{er(),y.value=!1},cr=()=>{var dr,fr;(dr=vue.unref(x))!=null&&dr.length&&c.format&&(J.value=new Date(vue.unref(x).join("-")),(fr=vue.unref(Pn))!=null&&fr.length&&dayjs(vue.unref(Pn).join("-")).isBefore(dayjs(vue.unref(x).join("-")))&&(Pn.value=lodashEs.cloneDeep(vue.unref(x))))},Qn=()=>{var dr,fr;(dr=vue.unref(Pn))!=null&&dr.length&&c.format&&(_.value=new Date(vue.unref(Pn).join("-")),(fr=vue.unref(x))!=null&&fr.length&&dayjs(vue.unref(x).join("-")).isAfter(dayjs(vue.unref(Pn).join("-")))&&(x.value=lodashEs.cloneDeep(vue.unref(Pn))))};function ar(){Bn.value={startMinDate:lodashEs.cloneDeep(vue.unref(b)),startMaxDate:lodashEs.cloneDeep(vue.unref(_)),endMinDate:lodashEs.cloneDeep(vue.unref(J)),endMaxDate:lodashEs.cloneDeep(vue.unref(re))}}function er(){b.value=vue.unref(Bn).startMinDate,_.value=vue.unref(Bn).startMaxDate,J.value=vue.unref(Bn).endMinDate,re.value=vue.unref(Bn).endMaxDate}function ur(dr=[]){x.value=mr(dr[0]||dayjs()),Pn.value=mr(dr[1]||dayjs())}function hr(){var vr,pr;const dr=(vr=vue.unref(x))!=null&&vr.length?dayjs(vue.unref(x).join("-")):"",fr=(pr=vue.unref(Pn))!=null&&pr.length?dayjs(vue.unref(Pn).join("-")):"";w.value=dr&&fr&&`${dr.format(c.format)} 至 ${fr.format(c.format)}`}function or(){const{limitStartTime:dr,limitEndTime:fr,limitInterval:vr,isAllowSpanYear:pr}=c;ur(vue.unref(g)),dr&&(b.value=new Date(dr),J.value=new Date(dr),vue.unref(g)[0].isBefore(dayjs(dr))&&(vue.unref(g)[0]=dayjs(dr),x.value=mr(vue.unref(g)[0]))),fr&&(_.value=new Date(fr),re.value=new Date(fr),vue.unref(g)[1].isAfter(dayjs(fr))&&(vue.unref(g)[1]=dayjs(fr),Pn.value=mr(vue.unref(g)[1]))),vue.unref(g).every(yr=>yr)&&(vr!=null&&vr.value)&&vue.unref(g)[1].diff(vue.unref(g)[0],vr.mode)>vr.value&&(vue.unref(g)[0]=vue.unref(g)[1].subtract(vr.value,vr.mode),x.value=mr(vue.unref(g)[0])),vue.unref(g).every(yr=>yr)&&!pr&&vue.unref(g)[0].year()!==vue.unref(g)[1].year()&&(vue.unref(g)[0]=dayjs(`${vue.unref(g)[1].year()}-01-01`),x.value=mr(vue.unref(g)[0])),ar(),hr()}function mr(dr){const fr=[];for(const vr of vue.unref(vn))vr==="day"?fr.push(dr.date()):fr.push(dr[vr]()+(vr==="month"?1:0));return fr}return useOnEvent(c,{dateChange:Vn}),{style:v,getPopupContainer:m,locale,dateChange:Zn,myValue:g,disabledDate:tr,calendarChange:Wn,openChange:Gn,change:Kn,isMobile:u,mobileDateStr:w,datePickVisible:y,columnsType:vn,openDatePick:qn,handleClearDate:nr,onConfirmDate:Hn,onCancelDate:lr,mobileStartDate:x,mobileEndDate:Pn,startMinDate:b,startMaxDate:_,endMinDate:J,endMaxDate:re,pickerTabKey:Rn,onStartDateChange:cr,onEndDateChange:Qn}}}),__injectCSSVars__$2=()=>{vue.useCssVars(c=>({"80ea8338":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_50c19548_lang="",RangePicker_vue_vue_type_style_index_1_lang="";function _sfc_render$p(c,u,f,h,d,p){const v=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(v,{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]=_=>c.datePickVisible=_),"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]=_=>c.pickerTabKey=_),tabs:["开始日期","结束日期"],onConfirm:c.onConfirmDate,onCancel:c.onCancelDate},{default:vue.withCtx(()=>[vue.createVNode(y,{modelValue:c.mobileStartDate,"onUpdate:modelValue":u[0]||(u[0]=_=>c.mobileStartDate=_),"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]=_=>c.mobileEndDate=_),"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]=_=>c.myValue=_),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-50c19548"]]),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(v);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}}),p=vue.computed(()=>hn(c.text)),v=vue.computed(()=>hn(c.href)||null),m=vue.computed(()=>{const g=c.target;if(!(g==="event"||vue.unref(v)==null))return{self:"_self",blank:"_blank"}[g]});return{style:u,click:h,myText:p,myHref:v,myTarget:m,buttonStyle:d}}}),Button_vue_vue_type_style_index_0_lang="";function _sfc_render$o(c,u,f,h,d,p){const v=vue.resolveComponent("a-button");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-button",style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{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([]),p=Bn=>{const w=c.value;let vn=[];Bn.forEach(gn=>{gn.checked&&vn.push(gn.value)}),typeof w=="string"&&w!==""?vn=vn.concat(w.split(",")):Array.isArray(w)&&(vn=vn.concat(w)),h.value=Bn,d.value=vn};vue.watch(()=>[c.data,c.value],([Bn])=>{p(Bn)},{immediate:!0,deep:!0});const v=useRequestData(c),m=async()=>{var vn,gn;if(c.dataType!=="request")return;const Bn=await v(),w=((gn=(vn=Bn==null?void 0:Bn.data)==null?void 0:vn.data)==null?void 0:gn.rows)||[];p(w)},{getGlobalModel:g,setGlobalModel:y}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Bn=>{},setGlobalModel:(Bn,w)=>{}});y(c.id,{type:c.type,value:d});const Pn=useEmitEvent(c)("checkboxChange",()=>{const Bn=g(c.id);y(c.id,{...Bn,RECORD:d})}),b=Bn=>{var vn;const{data:w}=(Bn==null?void 0:Bn.data)||{};if(w){const Fn=(((vn=Bn==null?void 0:Bn.data)==null?void 0:vn.data)??[]).map(zn=>({label:zn.label,value:zn.value}));p(Fn)}else p([])},_=useIndicatorData(c,b),J=async()=>{try{const Bn=await _();b(Bn)}catch(Bn){console.error(Bn)}},re=()=>{switch(c.dataType){case"indicator":J();break;case"request":m();break}},{setRequest:Rn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Bn,sortNum:w,requestFn:vn})=>{}});return typeof Rn=="function"&&Rn({id:c.id,requestFn:re,sortNum:c.requestSort}),u({refreshData:re}),{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,p){const v=vue.resolveComponent("a-checkbox-group");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-checkbox",style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{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 er,ur,hr;const f=vue.inject("isMobile",!1),h=vue.ref(!1),d={text:((er=c.dataFieldNames)==null?void 0:er.label)||"label",value:((ur=c.dataFieldNames)==null?void 0:ur.value)||"value"},p=vue.ref([]),v=usePickComponentStyle(c),m=()=>document.getElementById("ProviderConfig")||document.body,g=vue.ref(c.data||[]),y=vue.ref(),x=vue.computed({get:()=>{var mr;const{mode:or}=c;return(mr=vue.unref(g))!=null&&mr.length?y.value:or==="multiple"||or==="tags"||or==="combobox"?[]:""},set:or=>{y.value=or}}),Pn=vue.computed(()=>{const{value:or,label:mr}=c.dataFieldNames,dr=[];if(Array.isArray(vue.unref(x)))for(const fr of vue.unref(x)){const vr=vue.unref(g).find(pr=>pr[or]===fr);vr&&dr.push(vr[mr])}else{const fr=vue.unref(g).find(vr=>vr[or]===vue.unref(x));fr&&dr.push(fr[mr])}return dr.join(",")}),{setLoadedData:b,loadedData:_}=vue.inject(LOADED_DATA,{setLoadedData:(or,mr)=>{},loadedData:{}}),{getGlobalModel:J,setGlobalModel:re,getRecordValueByKeyName:Rn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:or=>{},setGlobalModel:(or,mr)=>{},getRecordValueByKeyName:or=>{}}),Bn=c.dataFieldNames;vue.watch(()=>[c.value,c.mode,c.selectFirstOption,c.valueType,g.value],()=>{const{mode:or,selectFirstOption:mr,value:dr}=c,fr=Rn(dr),vr=Bn.value;if(or==="multiple"||or==="tags"||or==="combobox"){if(fr)y.value=fr.split(",");else if(mr){const pr=vue.unref(g)[0];y.value=pr?[pr[vr]]:[]}}else if(fr)y.value=fr;else if(mr){const pr=vue.unref(g)[0];y.value=pr?pr[vr]:""}},{immediate:!0});const w=(or,mr)=>{const dr=Bn.label,fr=Bn.value;let vr;const pr=mr[dr],yr=mr[fr];return pr!=null?vr=pr:yr!=null&&(vr=yr),(vr==null?void 0:vr.toLowerCase().indexOf(or==null?void 0:or.toLowerCase()))>=0},vn=or=>{const{label:mr,value:dr,options:fr}=c.dataFieldNames;if(fr&&Array.isArray(or))if(or.some(vr=>fr in vr)){const vr={},pr=[];or.forEach(yr=>{vr[yr[fr]]||(vr[yr[fr]]=[]),vr[yr[fr]].push({[mr]:yr[mr],[dr]:yr[dr]})});for(const yr in vr)pr.push({[mr]:yr,[fr]:vr[yr]});return pr}else return or;else{if(!fr&&Array.isArray(or))return or=or.map(vr=>({label:vr[mr],value:vr[dr]})),or;if(!fr&&!Array.isArray(or))return or}},gn=vue.ref(!1),Fn=or=>{var mr,dr;if(g.value=vn(((dr=(mr=or==null?void 0:or.data)==null?void 0:mr.data)==null?void 0:dr.rows)||[]),c.selectFirstOption){let fr=vue.unref(g)[0];if(Bn.options){const vr=fr[Bn.options];vr&&vr.length&&(fr=vr[0])}y.value=fr[Bn.value]}b(c.id,!0),vue.nextTick(()=>{c.dataType!=="static"&&sr()})},zn=useRequestData(c),Un=async()=>{if(c.dataType==="request"){gn.value=!0;try{const or=await zn();Fn(or)}catch(or){console.error(or)}finally{gn.value=!1}}},Wn=vue.computed(()=>{let or=y.value;if(c.valueType==="label"&&vue.unref(y)&&vue.unref(g)){const mr=Bn.label,dr=Bn.value;if(c.mode==="multiple")or=vue.unref(g).filter(fr=>vue.unref(y).includes(fr[dr])).map(fr=>fr[mr]);else{const fr=vue.unref(g).find(vr=>vue.unref(y)===vr[dr]);fr&&(or=fr[mr])}}return or}),tr=vue.ref([]),Yn=vue.computed(()=>{const or={};if(c.mode!=="multiple"){const mr=vue.unref(tr).find(dr=>dr.value===vue.unref(y));mr&&(or.itemCodes=mr.item_codes)}return or}),Xn=vue.computed(()=>{const{value:or,label:mr}=Bn,dr=vue.unref(g).find(fr=>fr[or]===vue.unref(x));return dr?{label:dr[mr],value:dr[or]}:{}}),{pageId:Jn}=vue.inject("templateOperate",{pageId:""})||{};re(c.id,{type:c.type,dataType:c.dataType,value:Wn,label:(hr=vue.unref(Xn))==null?void 0:hr.label,...vue.unref(Yn),recordData:vue.unref(Xn)});const ir=useEmitEvent(c),sr=ir("selectChange",()=>{const or=c.id,mr=J(or);re(or,{...mr,...vue.unref(Yn),RECORD:Wn,recordData:vue.unref(Xn),dataType:c.dataType});const dr=getNewValueFromUrlParams(Jn,c.keyName,"value");dr&&(x.value=dr)}),Zn=ir("clearValue",()=>{["multiple","tags","combobox"].includes(c.mode)?y.value=[]:y.value=null;const or=c.id;re(or,{RECORD:"",recordData:vue.unref(Xn),dataType:c.dataType})}),Gn=ir("refreshData",(or=[])=>{var dr,fr;const mr=vn(or);if((fr=(dr=c==null?void 0:c.graphicConfig)==null?void 0:dr.formFields)!=null&&fr.hasAllOption){const vr=Bn.label,pr=Bn.value;mr.unshift({[vr]:"全部",[pr]:""})}if(g.value=mr,c.selectFirstOption){let vr=vue.unref(g)[0];if(Bn.options){const pr=vr[Bn.options];pr&&pr.length&&(vr=pr[0])}y.value=vr[Bn.value]}re(c.id,{type:c.type,value:Wn,...vue.unref(Yn),recordData:vue.unref(Xn),dataType:c.dataType})}),Kn=or=>{var vr;const{data:mr}=(or==null?void 0:or.data)||{},dr=Bn.label,fr=Bn.value;if(mr){const{rows:pr=[]}=((vr=or==null?void 0:or.data)==null?void 0:vr.data)||{};tr.value=pr;const yr=pr.map(gr=>({[dr]:gr.label,[fr]:gr.value})),{id:br}=c,Sr=J(br);re(br,{...Sr,...vue.unref(Yn),dataType:c.dataType}),b(br,!0),Gn(yr)}else Gn([])},Vn=useIndicatorData(c,Kn),qn=async()=>{try{gn.value=!0;const or=await Vn();Kn(or)}catch(or){console.error(or)}finally{gn.value=!1}},nr=vue.computed(()=>{var or,mr;return(mr=getConditions(((or=c==null?void 0:c.graphicConfig)==null?void 0:or.controlList)||[]))==null?void 0:mr.find(dr=>dr.conditionKey==="parentCode")}),Hn=vue.ref(!1);vue.watch(_,or=>{!vue.unref(Hn)&&vue.unref(nr)&&or[vue.unref(nr).id]&&(Hn.value=!0,lr())},{deep:!0});const lr=()=>{switch(c.dataType){case"indicator":{if(vue.unref(nr)){if(vue.unref(_)[vue.unref(nr).id]){const{mode:or}=c;or==="multiple"||or==="tags"||or==="combobox"?x.value=[]:x.value="",qn()}}else qn();break}case"request":Un();break}};useOnEvent(c,{selectChange:sr,refreshData:lr,clearValue:Zn});const{setRequest:cr}=vue.inject(REQUEST_MODEL,{setRequest:({id:or,sortNum:mr,requestFn:dr})=>{}});return typeof cr=="function"&&cr({id:c.id,requestFn:lr,sortNum:c.requestSort}),u({refreshData:lr}),{style:v,getPopupContainer:m,myValue:y,selectChange:sr,options:g,filterOption:w,loading:gn,resultValue:x,isMobile:f,customFieldName:d,pickVisible:h,onConfirmPicker:()=>{x.value=vue.unref(p)[0],sr(),h.value=!1},mobileValue:Pn,openPicker:()=>{var or;!Array.isArray(vue.unref(x))&&((or=vue.unref(g))!=null&&or.length)&&c.dataFieldNames.value&&(p.value=vue.unref(x)?[vue.unref(x)]:[vue.unref(g)[0][c.dataFieldNames.value]]),h.value=!0},mobileSelectValue:p}}}),Select_vue_vue_type_style_index_0_scoped_1b6377da_lang="",Select_vue_vue_type_style_index_1_lang="";function _sfc_render$m(c,u,f,h,d,p){const v=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(v)]),_: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,_)=>(vue.openBlock(),vue.createBlock(x,{key:_,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-1b6377da"]]),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,re)=>{const Rn=c.dataFieldNames,Bn=Rn.label,w=Rn.value;let vn;const gn=re[Bn],Fn=re[w];return gn!=null?vn=gn:Fn!=null&&(vn=Fn),(vn==null?void 0:vn.toLowerCase().indexOf(J==null?void 0:J.toLowerCase()))>=0},d=vue.ref();vue.watch(()=>[c.multiple,c.value,c.treeCheckable,c.selectFirstOption],()=>{const{multiple:J,value:re,selectFirstOption:Rn}=c;J?re?d.value=re.split(","):Rn&&(d.value=[vue.unref(f)[0]]):re?d.value=re:Rn&&(d.value=vue.unref(f)[0])},{immediate:!0});const p=vue.ref(!1),v=J=>{var Rn,Bn;f.value=((Bn=(Rn=J==null?void 0:J.data)==null?void 0:Rn.data)==null?void 0:Bn.rows)||[];const re=vue.unref(f)[0];c.value===""&&re!=null&&(d.value=re[c.dataFieldNames.value])},m=useRequestData(c),g=async()=>{if(c.dataType==="request"){p.value=!0;try{const J=await m();v(J)}catch(J){console.error(J)}finally{p.value=!1}}},{getGlobalModel:y,setGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:J=>{},setGlobalModel:(J,re)=>{}});x(c.id,{type:c.type,value:d});const b=useEmitEvent(c)("selectChange",()=>{const J=c.id,re=y(J);x(J,{...re,RECORD:d})});useOnEvent(c,{selectChange:b,refreshData:g});const{setRequest:_}=vue.inject(REQUEST_MODEL,{setRequest:({id:J,sortNum:re,requestFn:Rn})=>{}});return _({id:c.id,requestFn:g,sortNum:c.requestSort}),{style:u,treeData:f,filterTreeNode:h,myValue:d,loading:p,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,p){const v=vue.resolveComponent("a-tree-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tree-select",style:vue.normalizeStyle(h.style)},[vue.createVNode(v,{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([]),p=vue.ref(""),v=(Fn=[])=>{var Wn;const zn=c.value;let Un=[];typeof zn=="string"&&zn!==""?Un=Un.concat(zn.split(",")):Array.isArray(zn)&&(Un=Un.concat(zn)),d.value=Fn,c.selectFirstOption?p.value=((Wn=Fn[0])==null?void 0:Wn.value)||"":p.value=Un[0]||""};vue.watch(()=>[c.data,c.value,c.selectFirstOption],([Fn])=>{vue.unref(f)==="design"&&v(Fn)},{immediate:!0,deep:!0});const m=useRequestData(c),g=async()=>{var Un,Wn;if(c.dataType!=="request")return;const Fn=await m(),zn=((Wn=(Un=Fn==null?void 0:Fn.data)==null?void 0:Un.data)==null?void 0:Wn.rows)||[];v(zn)},{getGlobalModel:y,setGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Fn=>{},setGlobalModel:(Fn,zn)=>{}});x(c.id,{type:c.type,value:p});const Pn=useEmitEvent(c),b=()=>{const Fn=vue.unref(d).find(zn=>zn.value===vue.unref(p))||{};Pn("checkboxChange",()=>{const zn=y(c.id);x(c.id,{...zn,RECORD:p})},Fn)()},_=Fn=>{p.value=Fn,Pn("click",()=>{const zn=y(c.id);x(c.id,{...zn,RECORD:p})})()};vue.watch(p,()=>{b()});const J=Fn=>{var Un;const{data:zn}=(Fn==null?void 0:Fn.data)||{};if(zn){const tr=(((Un=Fn==null?void 0:Fn.data)==null?void 0:Un.data)??[]).map(Yn=>({label:Yn.label,value:Yn.value}));v(tr)}else v([])},re=useIndicatorData(c,J),Rn=async()=>{try{const Fn=await re();J(Fn)}catch(Fn){console.error(Fn)}},Bn=()=>{switch(c.dataType){case"indicator":Rn();break;case"request":g();break}},{setRequest:w}=vue.inject(REQUEST_MODEL,{setRequest:({id:Fn,sortNum:zn,requestFn:Un})=>{}});typeof w=="function"&&w({id:c.id,requestFn:Bn,sortNum:c.requestSort});const vn=Fn=>{p.value=Fn.value},gn=vue.computed(()=>c.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px",fontSize:c.tabFontSize}:{fontSize:c.tabFontSize});return vue.onMounted(()=>{v(c.data)}),u({refreshData:Bn}),{myOption:d,style:h,myValue:p,radioStyle:gn,onClickButton:_,useImagePath,tabChange:vn}}}),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,p){const v=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(v,{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:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},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"),p=new Blob([f]),v=document.createElement("a"),m=window.URL.createObjectURL(p);v.href=m,v.download=decodeURI(d),v.style.display="none",document.body.appendChild(v),v.click(),(g=v.parentNode)==null||g.removeChild(v),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(p=>p.type==="ecanTabs"&&p.isAutoScroll);if(d!=null&&d.length)for(const p of d){const v=u[p.id],m=[];if((!mn(p,"componentList")||!(p!=null&&p.componentList))&&(p.componentList=[]),v){let g=0;for(const y in v){const x=v[y],Pn=[];if(x!=null&&x.length)for(const b of x){let _=h.find(J=>J.id===b);_||(_=f.find(J=>J.id===b)),_&&(Pn.push(_),containerType.includes(_.type)&&Pn.push(...getComponentByContainer(_.id,u,f)))}for(const b of Pn)mn(b,"scale")?parseFloat(y)>0&&(b.left=parseFloat(b.left)+g+"px"):(b.left=parseFloat(b.sourceLeft||b.left)-parseFloat(p.sourceLeft||p.left)+g+"px",b.top=parseFloat(b.sourceTop||b.top)-parseFloat(p.sourceTop||p.top)+"px"),m.includes(b.id)||m.push(b.id);p.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 p,v;const{combinationMap:u={},sourceList:f=[]}=c,h=c.containerMap,d=lodashEs.cloneDeep([...c.componentList,...getTabsSomeComponentList(h,f)]);if(handleContainerMap(h,d),(p=Object.keys(h))!=null&&p.length||(v=Object.keys(u))!=null&&v.length){for(const b in h){const _=d.find(J=>J.id===b);if(_){mn(_,"parentId")||(_.parentId="",_.sourceLeft=_.left,_.sourceTop=_.top);for(const J in h[b])if(h[b][J])for(const re of h[b][J]){const Rn=d.find(Bn=>Bn.id===re);Rn&&(Rn.parentId=b,Rn.sourceLeft=Rn.left,Rn.sourceTop=Rn.top,Rn.left=parseFloat(Rn.left)-parseFloat(_.sourceLeft||_.left)+"px",Rn.top=parseFloat(Rn.top)-parseFloat(_.sourceTop||_.top)+"px")}}}const m=Array.from(new Set(d.filter(b=>(!mn(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)&&!mn(b,"parentId")),Pn=[];for(const b of x)if(b){const _=b.id+"_vir";Pn.push({id:_,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=_,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 _=document.body.clientWidth;if(b.parentId===""&&containerType.includes(b.type))b.sourceWidth=parseFloat(b.width),b.height=(_/(b.sourceWidth/parseFloat(b.height))).toFixed(2)+"px",b.width="100%",b.position="relative",b.top="auto",b.left="auto";else{const J=d.find(re=>re.id===b.parentId);if((J==null?void 0:J.parentId)===""){const re=J.sourceWidth||parseFloat(J.width),Rn=_/re;b.scale=Rn,b.top=parseFloat(b.top)*Rn-parseFloat(b.height)*(1-Rn)/2+"px",b.left=parseFloat(b.left)*Rn-parseFloat(b.width)*(1-Rn)/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 p=f[d.id];for(const v in p)for(const m of p[v]){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][v].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 p=c[d.id];for(const v in p)if(parseFloat(v)>0)for(const m of p[v]){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 p in d)for(const v of d[p]){const m=f.find(g=>g.id===v);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,p=[];for(const v of c){const m=h[v];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){p.push({...y,id:v,keyName:v,parentId:f||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:y.left,sourceTop:y.top});for(const x of g)x&&(x.parentId=v,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 p}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 p=0;p<h.length-d-1;p++){let v=!1;if((h[p].sourceTop-h[p+1].sourceTop>50||Math.abs(h[p+1].sourceTop-h[p].sourceTop)<=50&&h[p].sourceLeft>h[p+1].sourceLeft)&&(v=!0),v){const m=h[p];h[p]=h[p+1],h[p+1]=m}}for(const d of h){const p=c.findIndex(v=>v.id===d.id);p!==-1&&c.splice(p,1)}return[...h,...c]}return c}function getCombinateRect(c){const u=c.sort((p,v)=>parseFloat(p.top)-parseFloat(v.top))[0],f=c.sort((p,v)=>parseFloat(p.left)-parseFloat(v.left))[0],h=c.map(p=>({...p,computedTop:parseFloat(p.top)+parseFloat(p.height)})).sort((p,v)=>v.computedTop-p.computedTop)[0],d=c.map(p=>({...p,computedLeft:parseFloat(p.left)+parseFloat(p.width)})).sort((p,v)=>v.computedLeft-p.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 p in h){const v=h[p];for(const m of v){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,p){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),p=vue.inject("getContainerMap",()=>{}),v=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:m,interactiveData:g,setRequestData:y}=vue.inject(GLOBAL_MODEL,{setRequestData:(pr,yr)=>{},clearInteractiveData:()=>{},interactiveData:null}),x=()=>document.getElementById("ProviderConfig")||document.body,Pn=vue.computed(()=>{const pr=c.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[pr]}}),b=c.fullModal?"1920px":c.width,_=c.fullModal?"1080px":c.height,J=c.originalWidth,re=c.originalHeight,Rn=vue.ref("80%"),Bn=vue.ref(0),w=vue.ref(),vn=vue.ref(0),gn=vue.ref({}),Fn=usePickComponentStyle(c),zn=vue.ref({}),Un=vue.ref(!1),Wn=vue.ref();let tr;const Yn=()=>{w.value=parseFloat(b)/parseFloat(J);const pr=parseFloat(_)/parseFloat(re),yr=document.body.offsetWidth,br=document.body.offsetHeight;if(Bn.value=yr*vue.unref(w),vn.value=br*pr,Rn.value=`${vue.unref(w)*100}%`,gn.value={width:`${vue.unref(Bn)}px`,height:`${vue.unref(vn)}px`,border:`${c.borderWidth} solid ${c.borderColor}`,borderRadius:c.borderRadius+"px",boxShadow:c.boxShadow},zn.value={...vue.unref(Fn),backgroundImage:useImagePath(c.backgroundImage,!0)},h)zn.value={...zn.value,width:"100%",height:"100%"};else{const Sr={...zn.value,width:b,height:_};c.banScale&&vue.unref(d)?(Sr.width="100%",Sr.height="100%"):Sr.transform=`scale(${vue.unref(Bn)/parseFloat(b)},${vue.unref(vn)/parseFloat(_)})`,zn.value=Sr}},Xn=lodashEs.debounce(()=>{Yn()},100),Jn=()=>{const pr=window.MutationObserver;tr=new pr(Xn),tr.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},ir=()=>{tr&&(tr.disconnect(),tr.takeRecords(),tr=null)},sr=vue.ref(!1),{touchRequest:Zn}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),Gn=vue.ref(""),Kn=()=>{var br;const{title:pr}=c,yr=(br=vue.unref(g))==null?void 0:br.RECORD;return yr?hn(pr,{textData:yr},{useNewline:!1,useSpace:!1}):pr},Vn=useEmitEvent(c),qn=pr=>{const{changeIframeStyle:yr}=window.parent;yr&&typeof yr=="function"&&yr({iframeId:c.parentIframeId||"",action:pr})},nr=()=>{vue.unref(d)&&qn("open"),h&&(document.documentElement.style.overflow="hidden"),Gn.value=Kn(),sr.value=!0},Hn=Vn("hideModal",()=>{vue.unref(d)&&qn("close"),u("close"),h&&(document.documentElement.style.overflow="hidden auto",f.value=[]),sr.value=!1}),lr=()=>{Hn()},cr=()=>{Hn(),m()},{setModalModel:Qn,pushUseModalIds:ar,popUseModalIds:er}=vue.inject(MODAL_MODEL,{pushUseModalIds:pr=>{},popUseModalIds:()=>{},setModalModel:(pr,yr)=>{}}),ur=vue.computed(()=>{let pr=c.componentList;const yr=lodashEs.cloneDeep(c.componentList),br=p(),Sr=v(),gr={containerMap:br,combinationMap:Sr};h&&(pr=compatibleMobileList({...gr,componentList:yr,sourceList:c.allComponentList})),pr=handleScrollCombinations({...gr,componentList:pr,sourceList:c.allComponentList});const kr=[];for(const wr of pr)if(wr.type==="ecanCirculate"){const Er=moveToComponentList(br,vue.unref(yr),wr.id);wr.componentList=Er,kr.push(...Er.map(Pr=>Pr.id))}if(kr!=null&&kr.length)for(const wr of kr){const Er=pr.findIndex(Pr=>Pr.id===wr);Er!==-1&&pr.splice(Er,1)}return pr}),hr=()=>{const pr=c.id;let yr=[];const br=c.componentList;Array.isArray(br)&&(yr=br.map(Sr=>Sr.id),Qn(pr,[...new Set(yr)]))},or=vue.ref(!1),mr={};for(const pr of c.requestList)mr[pr.requestName]=useRequestData(pr);vue.watch(()=>sr.value,async pr=>{if(pr)Un.value=!1,ar(c.id),hr(),await vue.nextTick(()=>{Yn(),window.addEventListener("resize",Xn),Jn(),Un.value=!0}),Zn();else{if(y)for(const yr in mr)y(yr,{});er(),window.removeEventListener("resize",Xn),ir()}});const dr=vue.computed(()=>vue.unref(w)>=1),fr=vue.computed(()=>{let pr="ecan-modal";return vue.unref(dr)&&(pr+=" ecan-full-width-modal"),vue.unref(d)&&(pr+=" ecan-full-modal"),pr});return useOnEvent(c,{showModal:nr,hideModal:Hn}),{modalRef:Wn,containStyle:gn,contentStyle:zn,getContainer:x,modalStyle:Pn,modalWith:Rn,isFullModal:d,style:Fn,visible:sr,showModal:nr,onOk:lr,onCancel:cr,isFullWidth:dr,wrapClassName:fr,ready:Un,usedComponentList:ur,isMobile:h,readyIds:f,hasOwn:mn,onComponentReady:pr=>{f.value.push(pr)},formatTitle:Gn,requestLoaded:or}}}),Modal_vue_vue_type_style_index_0_scoped_d34efac2_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$i(c,u,f,h,d,p){const v=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(v,{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-d34efac2"]]),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 f=vue.ref(!1),{pageMode:h,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),p=vue.ref(),v=vue.ref(!1),m=usePickComponentStyle(c),g=vue.ref([]),y=vue.ref(),x=vue.ref({}),Pn=vue.computed(()=>{let{data:Zn=[]}=vue.unref(g)[0]||{};if(Array.isArray(c.colors)){const Gn=c.isUseLabelColors,Kn=c.colors;Zn=Zn.map((Vn,qn)=>({label:Gn?{color:Kn[qn]}:{},...Vn}))}return{textStyle:{fontFamily:vue.unref(d)},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 Gn;v.value=!0,(Gn=y.value)==null||Gn.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:Gn=>{const{marker:Kn,seriesName:Vn,name:qn,value:nr,percent:Hn,data:lr}=Gn||{};return hn(c.tooltipFormatter,{textData:{marker:Kn,name:qn,value:nr,percent:Hn,a:Vn,b:qn,c:nr,d:Hn,...lr}},{useNewline:!0,useSpace:!0})},textStyle:{color:c.tooltipTextStyleColor},position:c.tooltipPosition||void 0},legend:vue.unref(x),color:c.colors,series:[{data:Zn,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:{}}}]}}),b=()=>{var Gn,Kn;const Zn=v.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize);x.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:Zn+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:Zn}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:(Kn=(Gn=vue.unref(g)[0])==null?void 0:Gn.data)==null?void 0:Kn.map(Vn=>({name:Vn.name,icon:c.legendType})),formatter:Vn=>{const{data:qn}=g.value[0]||{};let nr=0,Hn,lr="0%";if(qn)for(const cr of qn)cr.name===Vn&&(Hn=+cr.value),nr+=+cr.value;return nr&&(lr=`${(Hn/nr*100).toFixed(2)}%`),getLegendFormat(c.legendFormatter,{name:Vn,value:Hn,percent:lr})}}},_=()=>{v.value=!1},{getGlobalModel:J,setGlobalModel:re}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Zn=>{},setGlobalModel:(Zn,Gn)=>{}}),Rn=(Zn=[],Gn)=>{const{dataset:Kn}=En(Zn,Gn);g.value=Kn,Kn!=null&&Kn.length||(f.value=!0)},Bn=(Zn=[],Gn)=>{var Vn;const Kn=En(Zn,Gn);g.value=Kn.dataset,(Vn=Kn.dataset)!=null&&Vn.length||(f.value=!0)};vue.watch(()=>c.data,Zn=>{(c.dataType==="static"||vue.unref(h)==="design")&&Rn(Zn)},{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],()=>{b()},{immediate:!0});const w=vue.ref(!1),vn=useRequestData(c),gn=async()=>{var Zn,Gn;if(c.dataType==="request")try{w.value=!0;const Kn=await vn();Rn((Gn=(Zn=Kn==null?void 0:Kn.data)==null?void 0:Zn.data)==null?void 0:Gn.rows,c.valueTypeDataFieldNames)}catch(Kn){console.error(Kn)}finally{w.value=!1}},Fn=useEmitEvent(c);re(c.id,{type:c.type,RECORD:""});const zn=Fn("click",Zn=>{const Gn=J(c.id);re(c.id,{...Gn,type:c.type,RECORD:Zn==null?void 0:Zn.data})}),Un=Zn=>{var Kn;const{data:Gn}=(Zn==null?void 0:Zn.data)||{};if(Gn){const{columns:Vn=[],rows:qn=[]}=((Kn=Zn==null?void 0:Zn.data)==null?void 0:Kn.data)??{};let nr=[];if(Vn.length>0){const Hn=Vn[0],lr=Vn[1];nr=qn.filter(cr=>!!cr).map(cr=>({name:cr[Hn],value:isNaN(cr[lr])?0:cr[lr]||0}))}Bn(nr)}},Wn=useIndicatorData(c,Zn=>{c.isViewRedrawing&&p.value.clear(),Un(Zn)}),tr=async()=>{try{w.value=!0;const Zn=await Wn();Un(Zn)}catch(Zn){console.error(Zn)}finally{w.value=!1}},{loadedData:Yn}=vue.inject(LOADED_DATA,{loadedData:{}}),Xn=vue.ref(!1);vue.watch(Yn,Zn=>{if(c.dataType==="indicator"){const Gn=getFixedValueDatas(c.graphicConfig);Gn!=null&&Gn.length&&(!vue.unref(Xn)&&canRequestIndicator(c.graphicConfig,Zn)?(Xn.value=!0,Jn()):canRequestIndicator(c.graphicConfig,Zn)||(Xn.value=!1))}},{deep:!0});const Jn=()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(Yn))&&tr();break;case"request":gn();break}};useOnEvent(c,{resetRecord:()=>{const Zn=c.id,Gn=J(Zn);re(Zn,{...Gn,RECORD:""})},refreshData:Jn,click:zn}),u({refreshData:Jn});const{setRequest:sr}=vue.inject(REQUEST_MODEL,{setRequest:Zn=>{}});return typeof sr=="function"&&sr({id:c.id,requestFn:Jn,sortNum:c.requestSort}),{option:Pn,style:m,click:zn,onClose:_,loading:w,ecanModal:y,echartRef:p,emptyData:f}}}),Pie_vue_vue_type_style_index_0_lang="",Pie_vue_vue_type_style_index_1_scoped_387baab7_lang="";function _sfc_render$h(c,u,f,h,d,p){const v=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(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(v,{key:1,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(v,{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],["__scopeId","data-v-387baab7"]]),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:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},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 f=vue.ref(!1),{pageMode:h,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),p=vue.ref(),v=vue.ref(!1),m=usePickComponentStyle(c),g=vue.ref([]),y=vue.ref([]),x=vue.ref(),Pn=vue.computed(()=>v.value?ZOOM_FONT_SIZE:12),b=vue.ref({});let _;const J=vue.ref([]),re=vue.computed(()=>{const Vn=c.xAxisLabelFormatter,qn=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(d)},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 nr;v.value=!0,(nr=x.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,tooltip:{trigger:"axis",textStyle:{fontSize:Pn.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:nr=>{var Qn;const Hn=nr.length;let lr="",cr=c.tooltipFormatter;_=(Qn=nr[0])==null?void 0:Qn.data,cr===""&&(cr="{marker} {a} {c}");for(let ar=0;ar<Hn;ar++){const{marker:er,seriesName:ur,name:hr,value:or,data:mr}=nr[ar]||{};if(ar===0){let dr=hr;typeof hr=="string"&&hr[0]==="0"&&!isNaN(+hr)&&(dr=(+hr).toString()),lr+=`${In(Vn,dr)}<br/>`}lr+=hn(cr,{textData:{marker:er,name:hr,value:or,a:ur,b:hr,c:or||0,...mr}},{useNewline:!0,useSpace:!0}),lr+="<br/>"}return lr},position:c.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:c.isBoundaryGap,data:vue.unref(y).map(nr=>{let Hn={};return nr&&typeof nr=="object"?Hn={...nr}:Hn={value:nr},Hn}),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(nr){return typeof nr=="string"&&nr[0]==="0"&&!isNaN(+nr)&&(nr=(+nr).toString()),In(Vn,nr)}},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(nr){return In(qn,nr)}},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(J).map(nr=>({name:nr.name,icon:c.legendType})),formatter:nr=>getLegendFormat(c.legendFormatter,{name:nr})},series:vue.unref(g)}}),Rn=()=>{v.value=!1},{getGlobalModel:Bn,setGlobalModel:w}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Vn=>{},setGlobalModel:(Vn,qn)=>{}}),vn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),gn=(Vn=[],qn=!1)=>{var Qn;let nr;if(c.dataFieldConfigType==="key"){const ar=qn?c.keyTypeDataFieldNames:null;nr=Dn(Vn,ar)}else if(c.dataFieldConfigType==="value"){const ar=qn?c.valueTypeDataFieldNames:null;nr=En(Vn,ar)}y.value=nr.dimensions,J.value=nr.dataset;const Hn=nr.dataset,lr=[],cr=Hn.length;for(let ar=0;ar<cr;ar++){const er={};c.shadowColor&&(er.shadowColor=c.shadowColor,er.shadowBlur=c.shadowBlur,er.shadowOffsetY=c.shadowOffsetY,er.shadowOffsetX=c.shadowOffsetX),lr.push({type:"line",...Hn[ar],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[ar]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[ar],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...er},...vue.unref(vn)})}g.value=lr,(Qn=nr.dataset)!=null&&Qn.length||(f.value=!0)},Fn=(Vn=[],qn,nr=!1)=>{var er;const lr=Dn(Vn,nr?qn:null,!0);y.value=lr.dimensions,J.value=lr.dataset;const cr=lr.dataset,Qn=[],ar=cr.length;for(let ur=0;ur<ar;ur++){const hr={};c.shadowColor&&(hr.shadowColor=c.shadowColor,hr.shadowBlur=c.shadowBlur,hr.shadowOffsetY=c.shadowOffsetY,hr.shadowOffsetX=c.shadowOffsetX),Qn.push({type:"line",...cr[ur],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[ur]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[ur],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...hr},...vue.unref(vn)})}g.value=Qn,(er=lr.dataset)!=null&&er.length||(f.value=!0)};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],([Vn])=>{(c.dataType==="static"||vue.unref(h)==="design")&&gn(Vn)},{immediate:!0,deep:!0});const zn=vue.ref(!1),Un=useRequestData(c),Wn=async()=>{var Vn,qn;if(c.dataType==="request")try{zn.value=!0;const nr=await Un();gn((qn=(Vn=nr==null?void 0:nr.data)==null?void 0:Vn.data)==null?void 0:qn.rows,!0)}catch(nr){console.error(nr)}finally{zn.value=!1}},tr=useEmitEvent(c);w(c.id,{type:c.type,RECORD:""});const Yn=tr("click",Vn=>{const qn=Bn(c.id);w(c.id,{...qn,type:c.type,RECORD:c.tooltipShow?_:Vn.data})}),Xn=Vn=>{p.value.chart.containPixel("grid",[Vn.offsetX,Vn.offsetY])&&Yn()};c.tooltipShow?b.value["zr:click"]=Xn:b.value.click=Yn;const Jn=Vn=>{var lr;const{columns:qn=[],rows:nr=[]}=((lr=Vn==null?void 0:Vn.data)==null?void 0:lr.data)??{};let Hn;qn.length>0&&(Hn={name:qn[0],types:qn.slice(1).map(cr=>({label:cr,value:cr}))}),Fn(nr,Hn,!0)},ir=useIndicatorData(c,Vn=>{c.isViewRedrawing&&p.value.clear(),Jn(Vn)}),sr=async()=>{try{zn.value=!0;const Vn=await ir();Jn(Vn)}catch(Vn){console.error(Vn)}finally{zn.value=!1}},Zn=()=>{switch(c.dataType){case"indicator":sr();break;case"request":Wn();break}};useOnEvent(c,{refreshData:Zn,resetRecord:()=>{const Vn=c.id,qn=Bn(Vn);w(Vn,{...qn,RECORD:""})},click:Yn});const{setRequest:Kn}=vue.inject(REQUEST_MODEL,{setRequest:Vn=>{}});return typeof Kn=="function"&&Kn({id:c.id,requestFn:Zn,sortNum:c.requestSort}),u({refreshData:Zn}),{option:re,style:m,click:Yn,loading:zn,onClose:Rn,ecanModal:x,eventObj:b,echartRef:p,emptyData:f}}}),Line_vue_vue_type_style_index_0_lang="",Line_vue_vue_type_style_index_1_scoped_7ff666b7_lang="";function _sfc_render$g(c,u,f,h,d,p){const v=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(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(v,vue.mergeProps({key:1,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(v,{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],["__scopeId","data-v-7ff666b7"]]),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,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},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 f=vue.ref(!1),{pageMode:h,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),p=vue.inject("usedComponentList",[]),v=vue.ref(),m=vue.ref(!1),g=vue.ref(!1),y=vue.ref(null),x=vue.ref([]),Pn=usePickComponentStyle(c),b=vue.ref([]),_=vue.ref(),J=vue.ref({});let re;const Rn=vue.computed(()=>m.value?ZOOM_FONT_SIZE:12),Bn=vue.computed(()=>{const{gradientShow:ur,gradientColors:hr,gradientOffset:or,barBorderRadius:mr}=c,dr=vue.unref(b),fr=dr.length,vr=[];for(let pr=0;pr<fr;pr++){const yr={...dr[pr],type:"bar",barWidth:c.barWidth.value+c.barWidth.suffix,showBackground:c.showBarBackground};if(c.isStack&&(yr.stack="stack"),yr.label={show:c.labelShow,fontSize:c.labelFontSize,position:c.labelPosition,color:c.labelColor,width:c.labelWidth,overflow:c.labelOverflow,formatter:br=>{let Sr="",gr=c.labelFormatter;gr===""&&(gr="{c}");const{seriesName:kr,name:wr,value:Er,data:Pr}=br||{};return Sr+=hn(gr,{textData:{name:wr,value:Er,a:kr,b:wr,c:Er||0,...Pr}},{useNewline:!0,useSpace:!0}),Sr}},yr.itemStyle={},ur&&(yr.itemStyle={color:{x:c.isUseHorizontalAxis?1:0,y:0,x2:0,y2:c.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:c.colors[pr]},{offset:or,color:hr[pr]},{offset:1,color:hr[pr]}]}}),mr){const br=mr.split(",");if(br!=null&&br.length){const Sr=[];for(const gr of br){const kr=parseFloat(gr);isNaN(kr)||Sr.push(kr)}yr.itemStyle.borderRadius=Sr}}c.isShowMarkLine&&(yr.markLine={data:[{type:c.markLineType}]}),vr.push(yr)}return vr}),w=vue.ref([]),vn=vue.ref(!1),gn=vue.computed(()=>{const ur=c.yAxisLabelFormatter,hr=c.xAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(d)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,feature:{myLocation:{show:m.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(){g.value=!0;const or=v.value.chart.getOption(),{xAxis:mr}=or||{};mr&&mr.length&&(x.value=mr[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:m.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;m.value=!0,(or=_.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 mr=or.length;let dr="",fr=c.tooltipFormatter;re=(vr=or[0])==null?void 0:vr.data,fr===""&&(fr="{marker} {a} {c}");for(let pr=0;pr<mr;pr++){const{marker:yr,seriesName:br,name:Sr,value:gr,data:kr}=or[pr]||{};if(pr===0){let wr=Sr;typeof Sr=="string"&&Sr[0]==="0"&&!isNaN(+Sr)&&(wr=(+Sr).toString()),dr+=`${In(hr,wr)}<br/>`}dr+=hn(fr,{textData:{marker:yr,name:Sr,value:gr,a:br,b:Sr,c:kr.sourceValue||gr||0,...kr}},{useNewline:!0,useSpace:!0}),dr+="<br/>"}return dr},textStyle:{color:c.tooltipTextStyleColor,fontSize:Rn.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:(m.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:m.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(b).map((or,mr)=>({name:or.name,itemStyle:{color:c.colors[mr]},icon:c.legendType})),formatter:or=>getLegendFormat(c.legendFormatter,{name:or})},xAxis:{type:c.isUseHorizontalAxis?"value":"category",data:c.isUseHorizontalAxis?null:vue.unref(Wn),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()),In(hr,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(w):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 In(ur,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(Bn)}}),Fn=()=>{m.value=!1},zn=(ur=[],hr=!1)=>{var mr,dr,fr;let or={};if(c.dataFieldConfigType==="key"){const vr=hr?c.keyTypeDataFieldNames:null;or=Dn(ur,vr)}else if(c.dataFieldConfigType==="value"){const vr=hr?c.valueTypeDataFieldNames:null;or=En(ur,vr)}if(b.value=or.dataset,(mr=vue.unref(b))!=null&&mr.length){for(const vr of vue.unref(b))if((dr=vr==null?void 0:vr.data)!=null&&dr.length)for(const pr of vr.data)pr.sourceValue=pr.value,pr.value=parseFloat(pr.value)}w.value=or.dimensions,(fr=or.dataset)!=null&&fr.length||(f.value=!0)},Un=(ur=[],hr,or=!1)=>{var fr;const dr=Dn(ur,or?hr:null,!0);c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(p),getGlobalModel:Hn},dr),b.value=dr.dataset,w.value=dr.dimensions,(fr=dr.dataset)!=null&&fr.length||(f.value=!0)},Wn=vue.computed(()=>vue.unref(w).map(ur=>{let hr={};return ur&&typeof ur=="object"?hr={...ur}:hr={value:ur},hr}));vue.watch(()=>[c.data,c.labelFormatter,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([ur])=>{(c.dataType==="static"||vue.unref(h)==="design")&&zn(ur)},{immediate:!0,deep:!0});const tr=useRequestData(c),Yn=async()=>{var ur,hr;try{vn.value=!0;const or=await tr();zn((hr=(ur=or==null?void 0:or.data)==null?void 0:ur.data)==null?void 0:hr.rows,!0)}catch(or){console.error(or)}finally{vn.value=!1}},Xn=ur=>{var dr;const{columns:hr=[],rows:or=[]}=((dr=ur==null?void 0:ur.data)==null?void 0:dr.data)??{};let mr;hr.length>0&&(mr={name:hr[0],types:hr.slice(1).map(fr=>({label:fr,value:fr}))}),Un(or,mr,!0)},Jn=useIndicatorData(c,ur=>{c.isViewRedrawing&&v.value.clear(),Xn(ur)}),ir=async()=>{try{vn.value=!0;const ur=await Jn();Xn(ur)}catch(ur){console.error(ur)}finally{vn.value=!1}},{loadedData:sr}=vue.inject(LOADED_DATA,{loadedData:{}}),Zn=vue.ref(!1);vue.watch(sr,ur=>{if(c.dataType==="indicator"){const hr=getFixedValueDatas(c.graphicConfig);hr!=null&&hr.length&&(!vue.unref(Zn)&&canRequestIndicator(c.graphicConfig,ur)?(Zn.value=!0,Gn()):canRequestIndicator(c.graphicConfig,ur)||(Zn.value=!1))}},{deep:!0});const Gn=()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(sr))&&ir();break;case"request":Yn();break}},Kn=(ur,hr)=>!!vue.unref(x)[hr.value].value.includes(ur),Vn=async()=>{g.value=!1;const ur=v.value.chart.getOption();for(let hr=0;hr<7;hr++)await qn(ur,hr)},qn=(ur,hr)=>new Promise(or=>{setTimeout(()=>{const{series:mr,color:dr,xAxis:fr}=ur,vr=v.value.chart,{splitArea:pr={}}=fr[0]||{};mr.forEach((yr,br)=>{const Sr=yr.data;let gr="";hr%2?gr=dr[br]+"a8":gr=dr[br],Sr[y.value].itemStyle={color:gr}}),hr%2?(pr.show=!0,pr.areaStyle.color=vue.unref(x).map((yr,br)=>br===y.value?"#ff003b26":"")):pr.show=!1,vr.setOption({series:mr,xAxis:fr}),or()},200)});u({refreshData:Gn});const nr=useEmitEvent(c),{getGlobalModel:Hn,setGlobalModel:lr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ur=>{},setGlobalModel:(ur,hr)=>{}});lr(c.id,{type:c.type,RECORD:""});const cr=nr("click",ur=>{const hr=Hn(c.id);lr(c.id,{...hr,type:c.type,RECORD:c.tooltipShow?re:ur.data})}),{setRequest:Qn}=vue.inject(REQUEST_MODEL,{setRequest:ur=>{}});typeof Qn=="function"&&Qn({id:c.id,requestFn:Gn,sortNum:c.requestSort});const ar=()=>{const ur=c.id,hr=Hn(ur);lr(ur,{...hr,RECORD:""})},er=ur=>{v.value.chart.containPixel("grid",[ur.offsetX,ur.offsetY])&&cr()};return c.tooltipShow?J.value["zr:click"]=er:J.value.click=cr,useOnEvent(c,{refreshData:Gn,click:cr,resetRecord:ar}),{option:gn,style:Pn,refreshData:Gn,click:cr,loading:vn,onClose:Fn,ecanModal:_,echartRef:v,handleLocationOk:Vn,onFilterOption:Kn,locationVisible:g,locationValue:y,locationNames:x,eventObj:J,emptyData:f}}}),Bar_vue_vue_type_style_index_0_lang="",Bar_vue_vue_type_style_index_1_scoped_41271cbc_lang="",_withScopeId$3=c=>(vue.pushScopeId("data-v-41271cbc"),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,p){const v=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(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(v,vue.mergeProps({key:1,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(v,{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,_)=>(vue.openBlock(),vue.createBlock(y,{key:_,value:_},{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-41271cbc"]]),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,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},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 f=vue.ref(!1),{pageMode:h,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),p=vue.ref(),v=vue.ref(!1),m=usePickComponentStyle(c),g=vue.ref([]),y=vue.ref(),x=vue.computed(()=>v.value?ZOOM_FONT_SIZE:12),Pn=vue.ref(),b=vue.ref(),_=vue.ref(),J=vue.ref(),re=vue.inject("componentList",[]),{loadedData:Rn}=vue.inject(LOADED_DATA,{loadedData:{}}),Bn=vue.ref({}),w=vue.computed(()=>{const{xAxisMarkLineValue:Qn=[],yAxisMarkLineValue:ar=[]}=c,er=Qn.concat(ar),ur=[];for(const hr of er){let or=hr.value;const mr=or.match(/\{(.+?)\}/g);if(mr!=null&&mr.length){for(const fr of mr)or=or.replace(fr,fr.slice(1,-1));const dr=vue.unref(re).find(fr=>fr.keyName===or);dr!=null&&dr.id&&!ur.find(fr=>fr.keyName===or)&&ur.push({componentId:dr.id,keyName:dr.keyName})}}return ur});vue.watch(Rn,Qn=>{var ar;if((ar=vue.unref(w))!=null&&ar.length)for(const er of vue.unref(w)){const{componentId:ur,keyName:hr}=er;if(Qn[ur]){const or=Un(ur);Bn.value[hr]=or.value}else delete Bn.value[hr]}},{deep:!0});const vn=vue.computed(()=>{const{xAxisMarkLineValue:Qn=[],yAxisMarkLineValue:ar=[]}=c,er=Qn.map(or=>({...or,x:!0})),ur=ar.map(or=>({...or,y:!0})),hr=er.concat(ur);if(hr!=null&&hr.length){const or=[];for(const mr of hr){const dr={label:{show:!0,formatter:"",rich:{ft:{}}}},fr={};let vr=mr.value;const pr=vr.match(/\{(.+?)\}/g);let yr="";if(dr.label.formatter=mr.label?`{ft|${mr.label}}`:"",(mr.offsetHorizontal||mr.offsetVertical)&&(mr.x?dr.label.rich.ft.padding=[0,mr.offsetHorizontal||0,mr.offsetVertical||0,0]:mr.y&&(dr.label.rich.ft.padding=[mr.offsetVertical||0,0,0,mr.offsetHorizontal||0])),mr.labelColor&&(dr.label.rich.ft.color=mr.labelColor),mr.lineColor&&(fr.color=mr.lineColor),mr.x?yr="xAxis":mr.y&&(yr="yAxis"),pr!=null&&pr.length){for(const br of pr)vr=vr.replace(br,br.slice(1,-1));if(vr){let br;Bn.value[vr]?br=vue.unref(Bn)[vr]:br=pn(vr,{max:mr.x?vue.unref(Pn):mr.y?vue.unref(_):0,min:mr.x?vue.unref(b):mr.y?vue.unref(J):0}),isNaN(+br)||or.push({[yr]:+br,lineStyle:fr,...dr})}}else isNaN(+mr.value)||or.push({[yr]:mr.value,lineStyle:fr,...dr})}return{symbol:["none","none"],data:or}}else return{data:[]}});function gn(Qn,ar,er){switch(ar){case"startX":Qn[0].coord[0]=+er;break;case"startY":Qn[0].coord[1]=+er;break;case"endX":Qn[1].coord[0]=+er;break;case"endY":Qn[1].coord[1]=+er;break}}const Fn=vue.computed(()=>{const{axisMarkArea:Qn=[]}=c;if(Qn!=null&&Qn.length){const ar=[];for(const er of Qn){const ur=[{name:"",coord:[],itemStyle:{color:er.color}},{coord:[]}];for(const hr in er)if(hr!=="color"){let or=er[hr];const mr=or.match(/\{(.+?)\}/g);if(mr!=null&&mr.length){for(const dr of mr)or=or.replace(dr,dr.slice(1,-1));if(or){const dr=pn(or,{xMax:vue.unref(Pn),xMin:vue.unref(b),yMax:vue.unref(_),yMin:vue.unref(J)});isNaN(+dr)||gn(ur,hr,dr)}}else isNaN(+er[hr])||gn(ur,hr,er[hr])}ur.every(hr=>{var or;return(or=hr.coord)==null?void 0:or.length})&&ar.push(ur)}return{data:ar}}else return{data:[]}}),zn=vue.computed(()=>{const Qn=c.xAxisLabelFormatter,ar=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(d)},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 er;v.value=!0,(er=y.value)==null||er.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(er){return typeof er=="string"&&er[0]==="0"&&!isNaN(+er)&&(er=(+er).toString()),In(Qn,er)}},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(er){return In(ar,er)}},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(er){var vr;const{marker:ur,seriesName:hr,componentType:or}=er,mr=((vr=er==null?void 0:er.data)==null?void 0:vr.record)??{},dr=mr[vue.unref(Yn).name],fr=mr[vue.unref(Yn).value];return["markLine","markArea"].includes(or)?"":hn(c.tooltipFormatter,{textData:{marker:ur,seriesName:hr,a:hr,b:dr,c:fr,...mr}},{useNewline:!0,useSpace:!0})},axisPointer:{type:c.crossShow||c.crossShow===void 0?"cross":""},textStyle:{fontSize:x.value},position:c.tooltipPosition||void 0},legend:{show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{color:c.legendTextStyleColor,fontSize:x.value}},series:[{data:vue.unref(g),type:"scatter",symbolSize:c.symbolSize,itemStyle:{color:c.symbolColor},markLine:vn.value,markArea:Fn.value}]}}),{getGlobalModel:Un,setGlobalModel:Wn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Qn=>{},setGlobalModel:(Qn,ar)=>{}}),tr=()=>{var er,ur;const Qn=(er=vue.unref(p))==null?void 0:er.chart.getModel().getComponent("yAxis").axis.scale._extent,ar=(ur=vue.unref(p))==null?void 0:ur.chart.getModel().getComponent("xAxis").axis.scale._extent;ar&&Qn&&(b.value=ar[0],Pn.value=ar[1],J.value=Qn[0],_.value=Qn[1])},Yn=vue.computed(()=>{let Qn=c.dataFieldNames;if(c.dataType==="indicator"){const{formFields:ar={}}=c.graphicConfig;ar!=null&&ar.labelField&&(ar!=null&&ar.valueField)&&(Qn={name:ar.labelField,value:ar.valueField})}return Qn}),Xn=(Qn=[])=>{var ur;const{name:ar="name",value:er="value"}=vue.unref(Yn)||{};g.value=Qn.map(hr=>({value:[hr[ar],hr[er]],record:hr})),setTimeout(()=>{tr()},0),(ur=g.value)!=null&&ur.length||(f.value=!0)};vue.watch(()=>c.data,Qn=>{(c.dataType==="static"||vue.unref(h)==="design")&&Xn(Qn)},{immediate:!0,deep:!0});const Jn=vue.ref(!1),ir=useRequestData(c),sr=async()=>{var Qn,ar;if(c.dataType==="request"){Jn.value=!0;try{const er=await ir();Xn((ar=(Qn=er==null?void 0:er.data)==null?void 0:Qn.data)==null?void 0:ar.rows)}catch(er){console.error(er)}finally{Jn.value=!1}}},Zn=()=>{v.value=!1},Gn=useEmitEvent(c);Wn(c.id,{type:c.type,RECORD:""});const Kn=Gn("click",Qn=>{const ar=c.id,er=Un(ar);Wn(ar,{...er,type:c.type,RECORD:Qn==null?void 0:Qn.data})}),Vn=Qn=>{var ar,er;Xn((er=(ar=Qn==null?void 0:Qn.data)==null?void 0:ar.data)==null?void 0:er.rows)},qn=useIndicatorData(c,Qn=>{c.isViewRedrawing&&p.value.clear(),Vn(Qn)}),nr=async()=>{try{Jn.value=!0;const Qn=await qn();Vn(Qn)}catch(Qn){console.error(Qn)}finally{Jn.value=!1}},Hn=()=>{switch(c.dataType){case"indicator":nr();break;case"request":sr();break}};useOnEvent(c,{refreshData:Hn,click:Kn,resetRecord:()=>{const Qn=c.id,ar=Un(Qn);Wn(Qn,{...ar,RECORD:""})}});const{setRequest:cr}=vue.inject(REQUEST_MODEL,{setRequest:Qn=>{}});return typeof cr=="function"&&cr({id:c.id,requestFn:Hn,sortNum:c.requestSort}),u({refreshData:Hn}),{option:zn,style:m,click:Kn,loading:Jn,onClose:Zn,ecanModal:y,echartRef:p,emptyData:f}}}),Scatter_vue_vue_type_style_index_0_lang="",Scatter_vue_vue_type_style_index_1_scoped_f8d34c14_lang="";function _sfc_render$e(c,u,f,h,d,p){const v=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(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(v,{key:1,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(v,{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],["__scopeId","data-v-f8d34c14"]]),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,p){const v=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{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,yAxisLeftUnitAdapt:!1,yAxisRightUnitAdapt:!1,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},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 f=vue.ref(!1),{pageMode:h,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),p=vue.inject("usedComponentList",[]),{getGlobalModel:v,setGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:fr=>{},setGlobalModel:(fr,vr)=>{}}),g=vue.ref(),y=vue.ref(!1),x=vue.ref(!1),Pn=vue.ref(null),b=vue.ref([]),_=vue.ref({});let J;const re=usePickComponentStyle(c),Rn=vue.ref([]),Bn=vue.ref([]),w=vue.ref(),vn=vue.ref([]),gn=vue.ref([0,0]),Fn=vue.computed(()=>y.value?ZOOM_FONT_SIZE:12),zn=vue.computed(()=>({textStyle:{fontFamily:vue.unref(d)},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:y.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(){x.value=!0;const fr=g.value.chart.getOption(),{xAxis:vr}=fr||{};vr&&vr.length&&(b.value=vr[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:y.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 fr;y.value=!0,(fr=w.value)==null||fr.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:(y.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:y.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(vn).map((fr,vr)=>({name:fr.name,itemStyle:{color:c.colors[vr]},icon:c.legendType})),formatter:fr=>getLegendFormat(c.legendFormatter,{name:fr})},tooltip:{trigger:"axis",show:c.tooltipShow,formatter:fr=>{var Sr;const vr=fr.length;let pr="",yr=c.tooltipFormatter;J=(Sr=fr[0])==null?void 0:Sr.data,yr===""&&(yr="{marker} {a} {c}");const br=c.seriesTypes;for(let gr=0;gr<vr;gr++){const kr=br[gr],{tooltipFormatter:wr}=kr||{},{marker:Er,seriesName:Pr,name:_r,value:Mr,data:Or}=fr[gr]||{};if(gr===0){let Rr=_r;typeof _r=="string"&&_r[0]==="0"&&!isNaN(+_r)&&(Rr=(+_r).toString()),pr+=`${In(c.xAxisLabelFormatter,Rr)}<br/>`}pr+=hn(wr||yr,{textData:{marker:Er,name:_r,value:Mr,seriesName:Pr,a:Pr,b:_r,c:Mr||0,...Or}},{useNewline:!0,useSpace:!0}),pr+="<br/>"}return pr},textStyle:{color:c.tooltipTextStyleColor,fontSize:Fn.value},position:c.tooltipPosition||void 0},xAxis:{minInterval:c.xAxisMinInterval,type:"category",data:vue.unref(Bn).map(fr=>{let vr={};return fr&&typeof fr=="object"?vr={...fr}:vr={value:fr},vr}),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(fr){return typeof fr=="string"&&fr[0]==="0"&&!isNaN(+fr)&&(fr=(+fr).toString()),In(c.xAxisLabelFormatter,fr)}},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(ir),series:vue.unref(Rn)})),Un=()=>{y.value=!1},Wn=fr=>{const vr=[];let pr=0;return c.seriesTypes.forEach((yr,br)=>{var Sr,gr;yr.axisIndex===fr&&((gr=(Sr=vue.unref(vn)[br])==null?void 0:Sr.data)!=null&&gr.length)&&vr.push(...vue.unref(vn)[br].data.map(kr=>+kr.value))}),vr.some(yr=>yr>=1e7)?pr=4:vr.some(yr=>yr>=1e6)?pr=3:vr.some(yr=>yr>=1e4)&&(pr=1),pr},tr=()=>{gn.value[0]=c.yAxisLeftUnitAdapt?Wn(0):0,gn.value[1]=c.yAxisRightUnitAdapt?Wn(1):0},Yn=(fr=[],vr=!1)=>{var br;let pr;if(c.dataFieldConfigType==="key"){const Sr=vr?c.keyTypeDataFieldNames:null;pr=Dn(fr,Sr,!0)}else if(c.dataFieldConfigType==="value"){const Sr=vr?c.valueTypeDataFieldNames:null;pr=En(fr,Sr)}Bn.value=pr.dimensions;const yr=pr.dataset;vn.value=pr.dataset,Rn.value=Jn(yr),tr(),(br=pr.dataset)!=null&&br.length||(f.value=!0)},Xn=(fr=[],vr,pr=!1)=>{var gr;const br=Dn(fr,pr?vr:null,!0);c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(p),getGlobalModel:v},br),Bn.value=br.dimensions;const Sr=br.dataset;vn.value=br.dataset,Rn.value=Jn(Sr),tr(),(gr=br.dataset)!=null&&gr.length||(f.value=!0)};function Jn(fr){const vr=[],pr=fr.length,yr=c.seriesTypes;for(let br=0;br<pr;br++){const Sr=yr[br],{type:gr,axisIndex:kr}=Sr||{};let wr={type:gr,yAxisIndex:kr,...fr[br]};if(gr==="line"){const Er={};c.shadowColor&&(Er.shadowColor=c.shadowColor,Er.shadowBlur=c.shadowBlur,Er.shadowOffsetY=c.shadowOffsetY,Er.shadowOffsetX=c.shadowOffsetX),wr={...wr,symbolSize:c.symbolSize,smooth:c.smooth,itemStyle:{color:c.colors[br]},areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[br]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[br],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Er}}}if(gr==="bar"){const{gradientShow:Er,gradientColors:Pr,gradientOffset:_r}=c,Mr={color:c.colors[br]};if(c.barBorderRadius){const Or=c.barBorderRadius.split(",");if(Or!=null&&Or.length){const Rr=[];for(const Lr of Or){const jr=parseFloat(Lr);isNaN(jr)||Rr.push(jr)}Mr.borderRadius=Rr}}Er&&(Mr.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[br]},{offset:_r,color:Pr[br]},{offset:1,color:Pr[br]}]}),wr={...wr,barWidth:c.barWidth.value+c.barWidth.suffix,itemStyle:Mr}}c.isShowMarkLine&&(wr.markLine={data:[{type:c.markLineType}]}),vr.push(wr)}return vr}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,c.yAxisLeftUnitAdapt,c.yAxisRightUnitAdapt],([fr])=>{(c.dataType==="static"||vue.unref(h)==="design")&&Yn(fr)},{immediate:!0,deep:!0});const ir=vue.computed(()=>{const fr=c.yAxis;return fr==null?void 0:fr.map((vr,pr)=>{const yr=gn.value[pr];let br;return yr&&(br=1e4*Math.pow(10,yr-1)),{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:pr===0?c.yAxisLeftSplitLineShow:c.yAxisRightSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:pr===0?c.yAxisLeftSplitLineType:c.yAxisRightSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(Sr){let gr=Sr;return br&&(gr=(+Sr/br).toString()),In(vr.axisLabelFormatter,gr)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:sr(yr)+(pr===0?c.yAxisLeftName:c.yAxisRightName),nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:pr===0?"right":"left"},max:c.yAxisMaxValue||null}})});function sr(fr){let vr="";switch(fr){case 1:vr="万";break;case 3:vr="百万";break;case 4:vr="千万";break}return vr}const Zn=vue.ref(!1),Gn=useRequestData(c),Kn=async()=>{var fr,vr;if(c.dataType==="request")try{Zn.value=!0;const pr=await Gn();Yn((vr=(fr=pr==null?void 0:pr.data)==null?void 0:fr.data)==null?void 0:vr.rows,!0)}catch(pr){console.error(pr)}finally{Zn.value=!1}},Vn=fr=>{var br;const{columns:vr=[],rows:pr=[]}=((br=fr==null?void 0:fr.data)==null?void 0:br.data)??{};let yr;vr.length>0&&(yr={name:vr[0],types:vr.slice(1).map(Sr=>({label:Sr,value:Sr}))}),Xn(pr,yr,!0)},qn=useIndicatorData(c,fr=>{c.isViewRedrawing&&g.value.clear(),Vn(fr)}),nr=async()=>{try{Zn.value=!0;const fr=await qn();Vn(fr)}catch(fr){console.error(fr)}finally{Zn.value=!1}},{loadedData:Hn}=vue.inject(LOADED_DATA,{loadedData:{}}),lr=vue.ref(!1);vue.watch(Hn,fr=>{if(c.dataType==="indicator"){const vr=getFixedValueDatas(c.graphicConfig);vr!=null&&vr.length&&(!vue.unref(lr)&&canRequestIndicator(c.graphicConfig,fr)?(lr.value=!0,cr()):canRequestIndicator(c.graphicConfig,fr)||(lr.value=!1))}},{deep:!0});const cr=()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(Hn))&&nr();break;case"request":Kn();break}},Qn=(fr,vr)=>!!vue.unref(b)[vr.value].value.includes(fr),ar=async()=>{x.value=!1;const fr=g.value.chart.getOption();for(let vr=0;vr<7;vr++)await er(fr,vr)},er=(fr,vr)=>new Promise(pr=>{setTimeout(()=>{const{series:yr,color:br,xAxis:Sr}=fr,gr=g.value.chart,{splitArea:kr={}}=Sr[0]||{};yr.forEach((wr,Er)=>{const Pr=wr.data;let _r="";vr%2?_r=br[Er]+"a8":_r=br[Er],Pr[Pn.value].itemStyle={color:_r}}),vr%2?(kr.show=!0,kr.areaStyle.color=vue.unref(b).map((wr,Er)=>Er===Pn.value?"#ff003b26":"")):kr.show=!1,gr.setOption({series:yr,xAxis:Sr}),pr()},200)});u({refreshData:cr});const ur=useEmitEvent(c);m(c.id,{type:c.type,RECORD:""});const hr=ur("click",fr=>{const vr=v(c.id);m(c.id,{...vr,type:c.type,RECORD:c.tooltipShow?J:fr==null?void 0:fr.data})}),or=fr=>{g.value.chart.containPixel("grid",[fr.offsetX,fr.offsetY])&&hr()};c.tooltipShow?_.value["zr:click"]=or:_.value.click=hr;const{setRequest:mr}=vue.inject(REQUEST_MODEL,{setRequest:fr=>{}});return typeof mr=="function"&&mr({id:c.id,requestFn:cr,sortNum:c.requestSort}),useOnEvent(c,{resetRecord:()=>{const fr=c.id,vr=v(fr);m(fr,{...vr,RECORD:""})},refreshData:cr,click:hr}),{style:re,option:zn,click:hr,loading:Zn,onClose:Un,ecanModal:w,echartRef:g,handleLocationOk:ar,onFilterOption:Qn,locationVisible:x,locationValue:Pn,locationNames:b,eventObj:_,emptyData:f}}}),ComboGraph_vue_vue_type_style_index_0_lang="",ComboGraph_vue_vue_type_style_index_1_scoped_833c976a_lang="",_withScopeId$2=c=>(vue.pushScopeId("data-v-833c976a"),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,p){const v=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(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(v,vue.mergeProps({key:1,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(v,{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,_)=>(vue.openBlock(),vue.createBlock(y,{key:_,value:_},{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-833c976a"]]),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(),p=vue.ref(!1),v=usePickComponentStyle(c),m=vue.ref([]),g=vue.ref(),y=vue.computed(()=>p.value?ZOOM_FONT_SIZE:12),x=vue.ref([]),Pn=vue.ref(c.valueTypeDataFieldNames.name),b=vue.computed(()=>{const Zn=vue.unref(x),Gn=Zn.length,Kn=[];for(let Vn=0;Vn<Gn;Vn++){const{name:qn,data:nr=[]}=Zn[Vn],Hn=[{name:qn,value:nr.map(Qn=>Qn.value)}];let lr=c.colors[Vn];if(c.gradientShow){const{gradientOffset:Qn,gradientColors:ar}=c;lr={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:c.colors[Vn]},{offset:Qn,color:ar[Vn]},{offset:1,color:ar[Vn]}]}}const cr={type:"radar",name:qn,data:Hn,areaStyle:{color:lr,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:Qn=>{const{data:ar,value:er}=Qn;let ur=0,hr="0%";if(ar)for(const or of ar.value)ur+=+or;return ur&&(hr=`${(er/ur*100).toFixed(2)}%`),hn(c.labelFormatter,{textData:{value:er,percent:hr}},{useNewline:!1,useSpace:!1})}}};Kn.push(cr)}return Kn}),_=vue.computed(()=>{var qn;const Zn=[],Gn=[],Kn=vue.unref(x),Vn=Kn.length;for(let nr=0;nr<Vn;nr++){const{data:Hn=[]}=Kn[nr];for(let lr=0;lr<Hn.length;lr++)Gn.push(Hn[lr].value)}if((qn=m.value)!=null&&qn.length){const nr=Gn!=null&&Gn.length?Math.max(...Gn)*1.2:0;for(const Hn of m.value)Zn.push({name:Hn,max:nr})}return Zn}),J=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: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 Zn;p.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 Gn="",Kn=c.tooltipFormatter;Kn===""&&(Kn="{marker} {a} {c}");for(let Vn=0;Vn<vue.unref(_).length;Vn++){const qn=vue.unref(_)[Vn],{marker:nr,seriesName:Hn,value:lr}=Zn||{};Vn===0&&Hn&&(Gn+=`${Hn}<br/>`),Gn+=hn(Kn,{textData:{marker:nr,name:qn.name,value:lr[Vn],a:qn.name,b:qn.name,c:lr[Vn]||0,type:Hn}},{useNewline:!0,useSpace:!0}),Gn+="<br/>"}return Gn},position:c.tooltipPosition||void 0},radar:{indicator:vue.unref(_),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:(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(x).map(Zn=>({name:Zn.name,icon:c.legendType})),formatter:Zn=>getLegendFormat(c.legendFormatter,{name:Zn})},series:vue.unref(b)})),re=()=>{p.value=!1},{getGlobalModel:Rn,setGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Zn=>{},setGlobalModel:(Zn,Gn)=>{}}),w=(Zn=[],Gn=!1)=>{let Kn;if(c.dataFieldConfigType==="key"){const Vn=Gn?c.keyTypeDataFieldNames:null;Kn=Dn(Zn,Vn)}else if(c.dataFieldConfigType==="value"){const Vn=Gn?c.valueTypeDataFieldNames:null;Kn=En(Zn,Vn)}m.value=Kn.dimensions,x.value=Kn.dataset},vn=(Zn=[],Gn,Kn=!1)=>{const qn=Dn(Zn,Kn?Gn:null,!0);m.value=qn.dimensions,x.value=qn.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 gn=vue.ref(!1),Fn=useRequestData(c),zn=async()=>{var Zn,Gn;if(c.dataType==="request")try{gn.value=!0;const Kn=await Fn();w((Gn=(Zn=Kn==null?void 0:Kn.data)==null?void 0:Zn.data)==null?void 0:Gn.rows,!0)}catch(Kn){console.error(Kn)}finally{gn.value=!1}},Un=useEmitEvent(c);Bn(c.id,{type:c.type,RECORD:""});const Wn=Zn=>{const Gn=Zn.event.topTarget.__dimIdx;Gn!==void 0&&Un("click",()=>{var nr;const{value:Kn,name:Vn}=Zn.data||{},qn=Rn(c.id);Bn(c.id,{...qn,type:c.type,RECORD:{[vue.unref(Pn)]:((nr=vue.unref(_)[Gn])==null?void 0:nr.name)||"",[Vn]:Kn[Gn],seriesName:Vn}})})()},tr=Zn=>{var qn;const{columns:Gn=[],rows:Kn=[]}=((qn=Zn==null?void 0:Zn.data)==null?void 0:qn.data)??{};let Vn;Gn.length>0&&(Pn.value=Gn[0],Vn={name:Gn[0],types:Gn.slice(1).map(nr=>({label:nr,value:nr}))}),vn(Kn,Vn,!0)},Yn=useIndicatorData(c,Zn=>{c.isViewRedrawing&&d.value.clear(),tr(Zn)}),Xn=async()=>{try{gn.value=!0;const Zn=await Yn();tr(Zn)}catch(Zn){console.error(Zn)}finally{gn.value=!1}},Jn=()=>{switch(c.dataType){case"indicator":Xn();break;case"request":zn();break}};useOnEvent(c,{refreshData:Jn,resetRecord:()=>{const Zn=c.id,Gn=Rn(Zn);Bn(Zn,{...Gn,RECORD:""})},click:Wn});const{setRequest:sr}=vue.inject(REQUEST_MODEL,{setRequest:Zn=>{}});return typeof sr=="function"&&sr({id:c.id,requestFn:Jn,sortNum:c.requestSort}),u({refreshData:Jn}),{option:J,style:v,click:Wn,loading:gn,onClose:re,ecanModal:g,echartRef:d}}}),Radar_vue_vue_type_style_index_0_lang="";function _sfc_render$b(c,u,f,h,d,p){const v=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(v,{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(v,{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:J,gradientShow:re,gradientColor:Rn,gradientOffset:Bn,gradientAngle:w,backgroundColor:vn}=c;if(re){let gn=Rn;return J&&(gn="transparent"),gn?{background:`linear-gradient(${w}, ${vn}, ${gn} ${Bn*100}%)`}:{}}else return{}}),h=vue.computed(()=>{const{events:J}=c;let re={};return J!=null&&J.length&&J.find(Bn=>Bn.emit==="showModal")&&(re={cursor:"pointer"}),re}),{theme:d}=vue.inject(GLOBAL_CONFIG,{theme:"light"}),p=vue.computed(()=>{let J="";switch(c.titleMode){case"type-2":J="2";break}return J}),v=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${p.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${p.value}.png`],self.location).href),g=vue.computed(()=>({width:"100%",height:"100%"})),y=vue.computed(()=>{const{borderRadius:J}=c,re=[],Rn={};if(J){const Bn=J.split(",");for(const w of Bn)(+w||+w==0)&&re.push(+w+"px")}return re!=null&&re.length&&(Rn.borderRadius=re.join(" ")),Rn}),Pn=useEmitEvent(c)("click",()=>{}),b=vue.ref([]);vue.watch(()=>c.data,J=>{b.value=J},{immediate:!0,deep:!0}),useOnEvent(c,{click:Pn});const{setGlobalModel:_}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(J,re)=>{}});return _(c.id,{type:c.type,value:b}),{style:u,gradientStyle:f,click:Pn,borderStyle:g,theme:d,borderRadiusStyle:y,titleLeftIcon:v,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,p){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]=(...v)=>c.click&&c.click(...v)),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,Wn=>{f.value=Wn},{immediate:!0});const{pageMode:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),d=vue.inject("getContainerMap",()=>{}),p=vue.inject("componentList",[]),v=["ecanBorder","ecanTabs","ecanCirculate"],m=vue.computed(()=>d()||{}),g=Wn=>{const tr=vue.unref(m)[Wn],Yn=[];if(tr)for(const Xn in tr)for(const Jn of tr[Xn]){const ir=vue.unref(p).find(sr=>sr.id===Jn);Yn.push(Jn),v.includes(ir==null?void 0:ir.type)&&Yn.push(...g(Jn))}return Yn},y=vue.computed(()=>g(c.id));let x=null;const Pn=()=>{const Wn=Array.isArray(vue.unref(_))?vue.unref(_).length-1:0;vue.unref(h)!=="design"&&!c.isAutoScroll&&c.autoSwitch&&Wn>0&&(x=setInterval(()=>{const tr=vue.unref(f)+1;tr<=Wn?f.value=tr:f.value=0,J.value=vue.unref(_)[vue.unref(f)],w()},c.autoSwitchInterval*1e3))},b=()=>{clearInterval(x)};vue.onMounted(()=>{vue.unref(h)!=="design"&&Pn()}),vue.onBeforeUnmount(()=>{Bn(c.id,{activeKey:c.activeKey}),w(),b()});const _=vue.ref([]),J=vue.ref({});vue.watch(()=>c.data,Wn=>{_.value=Wn,J.value=Array.isArray(Wn)&&Wn.length>0?Wn[0]:{}},{immediate:!0,deep:!0});const re=Wn=>f.value===Wn,Rn=useEmitEvent(c),{setGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(Wn,tr)=>{}});Bn(c.id,{RECORD:vue.unref(J),value:vue.unref(J),activeKey:f});const{emitRefreshPage:w}=vue.inject(REFRESH_PAGE,{emitRefreshPage:()=>{}}),vn=Wn=>{let{tab:tr,index:Yn}=Wn||{};if(Wn.label){const Xn=vue.unref(_).findIndex(Jn=>Jn.title===Wn.label);Xn!==-1&&(Yn=Xn,tr=vue.unref(_)[Xn])}Rn("tabChange",()=>{!isNaN(+Yn)&&Yn!==vue.unref(f)&&(J.value=tr,f.value=Yn,Bn(c.id,{RECORD:tr,value:tr,activeKey:Yn}),w())})()},gn=vue.computed(()=>{const Wn=c.componentList.map(tr=>parseFloat(tr.left)+parseFloat(tr.width)).sort((tr,Yn)=>Yn-tr)[0];return{width:Wn?Wn+"px":"100%"}}),Fn=()=>{vue.unref(h)!=="design"&&b()},zn=Wn=>{var tr,Yn;return Wn?(Yn=(tr=Wn==null?void 0:Wn.parentNode)==null?void 0:tr.className)!=null&&Yn.includes("ecan-")?Wn.parentNode.getAttribute("cpntid"):zn(Wn.parentNode):""},Un=Wn=>{var tr;if(vue.unref(h)!=="design"){const Yn=(Wn==null?void 0:Wn.toElement)||{};if((tr=Yn==null?void 0:Yn.className)!=null&&tr.includes("ecan-"))vue.unref(y).includes(Yn.getAttribute("cpntid"))||Pn();else if((Yn==null?void 0:Yn.className)==="page-config")Pn();else{const Xn=zn(Yn);vue.unref(y).includes(Xn)||Pn()}}};return useOnEvent(c,{tabChange:vn}),{style:u,activeKey:f,isActive:re,tabChange:vn,myData:_,useImagePath,pageMode:h,scrollWrapStyle:gn,onMouseEnter:Fn,onMouseLeave:Un}}}),Tabs_vue_vue_type_style_index_0_scoped_0f61e67d_lang="",_hoisted_1$5=["id"],_hoisted_2$2=["onClick"];function _sfc_render$9(c,u,f,h,d,p){const v=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(v,{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-0f61e67d"]]),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",[]),p=vue.inject("isMobile",!1),{getGlobalModel:v,setGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Yn=>{},setGlobalModel:(Yn,Xn)=>{}}),g=vue.ref([]),y=vue.ref({}),{pageMode:x}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),Pn=vue.computed(()=>{if(vue.unref(p)){const Yn=document.body.clientWidth,Xn=c.sourceWidth||parseFloat(c.width);return Yn/Xn||1}else return 1});function b(Yn,Xn){const Jn=Xn.find(ir=>ir.id===c.id);if(Jn)for(const ir of Yn)ir.left=parseFloat(ir.left)-parseFloat(Jn.sourceLeft||Jn.left)+"px",ir.top=parseFloat(ir.top)-parseFloat(Jn.sourceTop||Jn.top)+"px"}const _=Yn=>{const Xn=Yn.sort((Zn,Gn)=>parseFloat(Zn.top)-parseFloat(Gn.top))[0],Jn=Yn.sort((Zn,Gn)=>parseFloat(Zn.left)-parseFloat(Gn.left))[0],ir=Yn.map(Zn=>parseFloat(Zn.left)+parseFloat(Zn.width)).sort((Zn,Gn)=>Gn-Zn)[0],sr=Yn.map(Zn=>parseFloat(Zn.top)+parseFloat(Zn.height)).sort((Zn,Gn)=>Gn-Zn)[0];if(Jn&&ir&&Xn&&sr){const Zn=parseFloat(Jn.left),Gn=parseFloat(Xn.top);return{width:ir-Zn,height:sr-Gn,left:Zn}}else return{width:0,height:0,left:0}},J=vue.ref({}),re=Yn=>{var Hn,lr;const Xn=[],{graphicConfig:Jn,id:ir,componentList:sr,keyFieldMap:Zn,unitInterval:Gn,colNum:Kn}=c;let Vn=lodashEs.cloneDeep(sr),qn=[];if((Hn=vue.unref(d))!=null&&Hn.length)for(const cr of vue.unref(d))qn.push(cr),(lr=cr==null?void 0:cr.componentList)!=null&&lr.length&&qn.push(...cr.componentList);if(Jn.pageMode==="design"&&Jn.preview){const{containerMap:cr}=Jn.pageConfig||{};qn=Jn.componentList||[],qn.push(c),Vn=moveToComponentList(cr,lodashEs.cloneDeep(qn),ir)}b(Vn,qn);const nr=_(Vn);if(Yn!=null&&Yn.length){const{width:cr,left:Qn,height:ar}=nr;let er=0,ur=0;Yn.forEach((hr,or)=>{hr.index=or+1;const mr=nanoid(),dr=lodashEs.cloneDeep(Vn);for(const fr of dr){const vr=Zn.find(yr=>yr.keyName===fr.keyName),pr=nanoid();if(fr.left=(parseFloat(fr.left)+er)*vue.unref(Pn)+"px",fr.top=(parseFloat(fr.top)+ur)*vue.unref(Pn)+"px",fr.scale=vue.unref(Pn),fr.id=pr,fr.keyName=fr.name+"_"+pr,fr.unitId=mr,vr!=null&&vr.fieldName){const yr=fr.text.match(/\{(.+?)\}/g);switch(fr.type){case"ecanText":{fr.data={value:String(hr[vr.fieldName])},yr!=null&&yr.length||(fr.text="{value}");break}case"ecanProportion":{fr.data={percent:String(hr[vr.fieldName])},yr!=null&&yr.length||(fr.text="{percent}");break}}}}Kn&&hr.index%Kn===0?(er=0,ur+=Gn+ar):er+=Gn+cr,Xn.push(...dr),J.value[mr]=hr}),y.value={width:((Kn||Yn.length)*(cr+Gn)+Qn)*vue.unref(Pn)+"px",height:(Kn?Math.ceil(Yn.length/Kn)*(Gn+ar):Gn+ar)*vue.unref(Pn)+"px"}}g.value=Xn},Rn=Yn=>{var Jn;const{rows:Xn=[]}=((Jn=Yn==null?void 0:Yn.data)==null?void 0:Jn.data)??{};re(Xn)},Bn=useIndicatorData(c,Rn),w=async()=>{try{f.value=!0;const Yn=await Bn();Rn(Yn)}catch(Yn){console.error(Yn)}finally{f.value=!1}},vn=useRequestData(c),gn=async()=>{try{f.value=!0;const Yn=await vn();Rn(Yn)}catch(Yn){console.error(Yn)}finally{f.value=!1}},Fn=()=>{switch(c.dataType){case"indicator":w();break;case"request":gn();break}};useOnEvent(c,{refreshData:Fn,resetRecord:()=>{const Yn=c.id,Xn=v(Yn);m(Yn,{...Xn,RECORD:""})}}),u({refreshData:Fn}),m(c.id,{type:c.type,RECORD:""});const{setRequest:Un}=vue.inject(REQUEST_MODEL,{setRequest:Yn=>{}});typeof Un=="function"&&Un({id:c.id,requestFn:Fn,sortNum:c.requestSort});const Wn=useEmitEvent(c);return{loading:f,style:h,myComponentList:g,scrollWrapStyle:y,pageMode:x,click:Yn=>{let Xn=Yn.target;if(Xn){let Jn=Xn.getAttribute("unitId");for(;!Jn&&!Xn.className.includes("ecan-");)Xn=Xn.parentElement,Jn=Xn.getAttribute("unitId");Jn&&Wn("click",()=>{const ir=v(c.id);m(c.id,{...ir,type:c.type,RECORD:vue.unref(J)[Jn]})})()}}}}}),Circulate_vue_vue_type_style_index_0_scoped_c1c6c563_lang="",_hoisted_1$4=["id"];function _sfc_render$8(c,u,f,h,d,p){const v=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(v,{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-c1c6c563"]]),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,p)=>{}})||{};return useOnEvent(c,{refreshData:()=>{f("refreshTemplate",c.pageId)}}),{style:u}}});function _sfc_render$7(c,u,f,h,d,p){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 p in d)Object.prototype.hasOwnProperty.call(d,p)&&(u.prototype[p]=d[p])}}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,p=[],v;switch(f){case"int16":case"uint8c":v=1;break;default:v=1.1;break}for(d=0;d<h;d+=1)p.push(v);return p}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,p,v,m,g,y,x;switch(v=Math.floor(c*6),m=c*6-v,g=f*(1-u),y=f*(1-m*u),x=f*(1-(1-m)*u),v%6){case 0:h=f,d=x,p=g;break;case 1:h=y,d=f,p=g;break;case 2:h=g,d=f,p=x;break;case 3:h=g,d=y,p=f;break;case 4:h=x,d=g,p=f;break;case 5:h=f,d=g,p=y;break}return[h,d,p]}function RGBtoHSV(c,u,f){var h=Math.max(c,u,f),d=Math.min(c,u,f),p=h-d,v,m=h===0?0:p/h,g=h/255;switch(h){case d:v=0;break;case c:v=u-f+p*(u<f?6:0),v/=6*p;break;case u:v=f-c+p*2,v/=6*p;break;case f:v=c-u+p*4,v/=6*p;break}return[v,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,p){return h<0&&(h=0),d<0&&(d=0),p<0&&(p=0),"#"+c[h]+c[d]+c[p]}}(),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(_){f({data:_})}},p={postMessage:function(_){d.onmessage({data:_})}};function v(b){if(window.Worker&&window.Blob&&getWebWorker()){var _=new Blob(["var _workerSelf = self; self.onmessage = ",b.toString()],{type:"text/javascript"}),J=URL.createObjectURL(_);return new Worker(J)}return f=b,d}function m(){h||(h=v(function(_){function J(){function Rn(Zn,Gn){var Kn,Vn,qn=Zn.length,nr,Hn,lr,cr;for(Vn=0;Vn<qn;Vn+=1)if(Kn=Zn[Vn],"ks"in Kn&&!Kn.completed){if(Kn.completed=!0,Kn.hasMask){var Qn=Kn.masksProperties;for(Hn=Qn.length,nr=0;nr<Hn;nr+=1)if(Qn[nr].pt.k.i)Fn(Qn[nr].pt.k);else for(cr=Qn[nr].pt.k.length,lr=0;lr<cr;lr+=1)Qn[nr].pt.k[lr].s&&Fn(Qn[nr].pt.k[lr].s[0]),Qn[nr].pt.k[lr].e&&Fn(Qn[nr].pt.k[lr].e[0])}Kn.ty===0?(Kn.layers=vn(Kn.refId,Gn),Rn(Kn.layers,Gn)):Kn.ty===4?gn(Kn.shapes):Kn.ty===5&&ir(Kn)}}function Bn(Zn,Gn){if(Zn){var Kn=0,Vn=Zn.length;for(Kn=0;Kn<Vn;Kn+=1)Zn[Kn].t===1&&(Zn[Kn].data.layers=vn(Zn[Kn].data.refId,Gn),Rn(Zn[Kn].data.layers,Gn))}}function w(Zn,Gn){for(var Kn=0,Vn=Gn.length;Kn<Vn;){if(Gn[Kn].id===Zn)return Gn[Kn];Kn+=1}return null}function vn(Zn,Gn){var Kn=w(Zn,Gn);return Kn?Kn.layers.__used?JSON.parse(JSON.stringify(Kn.layers)):(Kn.layers.__used=!0,Kn.layers):null}function gn(Zn){var Gn,Kn=Zn.length,Vn,qn;for(Gn=Kn-1;Gn>=0;Gn-=1)if(Zn[Gn].ty==="sh")if(Zn[Gn].ks.k.i)Fn(Zn[Gn].ks.k);else for(qn=Zn[Gn].ks.k.length,Vn=0;Vn<qn;Vn+=1)Zn[Gn].ks.k[Vn].s&&Fn(Zn[Gn].ks.k[Vn].s[0]),Zn[Gn].ks.k[Vn].e&&Fn(Zn[Gn].ks.k[Vn].e[0]);else Zn[Gn].ty==="gr"&&gn(Zn[Gn].it)}function Fn(Zn){var Gn,Kn=Zn.i.length;for(Gn=0;Gn<Kn;Gn+=1)Zn.i[Gn][0]+=Zn.v[Gn][0],Zn.i[Gn][1]+=Zn.v[Gn][1],Zn.o[Gn][0]+=Zn.v[Gn][0],Zn.o[Gn][1]+=Zn.v[Gn][1]}function zn(Zn,Gn){var Kn=Gn?Gn.split("."):[100,100,100];return Zn[0]>Kn[0]?!0:Kn[0]>Zn[0]?!1:Zn[1]>Kn[1]?!0:Kn[1]>Zn[1]?!1:Zn[2]>Kn[2]?!0:Kn[2]>Zn[2]?!1:null}var Un=function(){var Zn=[4,4,14];function Gn(Vn){var qn=Vn.t.d;Vn.t.d={k:[{s:qn,t:0}]}}function Kn(Vn){var qn,nr=Vn.length;for(qn=0;qn<nr;qn+=1)Vn[qn].ty===5&&Gn(Vn[qn])}return function(Vn){if(zn(Zn,Vn.v)&&(Kn(Vn.layers),Vn.assets)){var qn,nr=Vn.assets.length;for(qn=0;qn<nr;qn+=1)Vn.assets[qn].layers&&Kn(Vn.assets[qn].layers)}}}(),Wn=function(){var Zn=[4,7,99];return function(Gn){if(Gn.chars&&!zn(Zn,Gn.v)){var Kn,Vn=Gn.chars.length;for(Kn=0;Kn<Vn;Kn+=1){var qn=Gn.chars[Kn];qn.data&&qn.data.shapes&&(gn(qn.data.shapes),qn.data.ip=0,qn.data.op=99999,qn.data.st=0,qn.data.sr=1,qn.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}},Gn.chars[Kn].t||(qn.data.shapes.push({ty:"no"}),qn.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"})))}}}}(),tr=function(){var Zn=[5,7,15];function Gn(Vn){var qn=Vn.t.p;typeof qn.a=="number"&&(qn.a={a:0,k:qn.a}),typeof qn.p=="number"&&(qn.p={a:0,k:qn.p}),typeof qn.r=="number"&&(qn.r={a:0,k:qn.r})}function Kn(Vn){var qn,nr=Vn.length;for(qn=0;qn<nr;qn+=1)Vn[qn].ty===5&&Gn(Vn[qn])}return function(Vn){if(zn(Zn,Vn.v)&&(Kn(Vn.layers),Vn.assets)){var qn,nr=Vn.assets.length;for(qn=0;qn<nr;qn+=1)Vn.assets[qn].layers&&Kn(Vn.assets[qn].layers)}}}(),Yn=function(){var Zn=[4,1,9];function Gn(Vn){var qn,nr=Vn.length,Hn,lr;for(qn=0;qn<nr;qn+=1)if(Vn[qn].ty==="gr")Gn(Vn[qn].it);else if(Vn[qn].ty==="fl"||Vn[qn].ty==="st")if(Vn[qn].c.k&&Vn[qn].c.k[0].i)for(lr=Vn[qn].c.k.length,Hn=0;Hn<lr;Hn+=1)Vn[qn].c.k[Hn].s&&(Vn[qn].c.k[Hn].s[0]/=255,Vn[qn].c.k[Hn].s[1]/=255,Vn[qn].c.k[Hn].s[2]/=255,Vn[qn].c.k[Hn].s[3]/=255),Vn[qn].c.k[Hn].e&&(Vn[qn].c.k[Hn].e[0]/=255,Vn[qn].c.k[Hn].e[1]/=255,Vn[qn].c.k[Hn].e[2]/=255,Vn[qn].c.k[Hn].e[3]/=255);else Vn[qn].c.k[0]/=255,Vn[qn].c.k[1]/=255,Vn[qn].c.k[2]/=255,Vn[qn].c.k[3]/=255}function Kn(Vn){var qn,nr=Vn.length;for(qn=0;qn<nr;qn+=1)Vn[qn].ty===4&&Gn(Vn[qn].shapes)}return function(Vn){if(zn(Zn,Vn.v)&&(Kn(Vn.layers),Vn.assets)){var qn,nr=Vn.assets.length;for(qn=0;qn<nr;qn+=1)Vn.assets[qn].layers&&Kn(Vn.assets[qn].layers)}}}(),Xn=function(){var Zn=[4,4,18];function Gn(Vn){var qn,nr=Vn.length,Hn,lr;for(qn=nr-1;qn>=0;qn-=1)if(Vn[qn].ty==="sh")if(Vn[qn].ks.k.i)Vn[qn].ks.k.c=Vn[qn].closed;else for(lr=Vn[qn].ks.k.length,Hn=0;Hn<lr;Hn+=1)Vn[qn].ks.k[Hn].s&&(Vn[qn].ks.k[Hn].s[0].c=Vn[qn].closed),Vn[qn].ks.k[Hn].e&&(Vn[qn].ks.k[Hn].e[0].c=Vn[qn].closed);else Vn[qn].ty==="gr"&&Gn(Vn[qn].it)}function Kn(Vn){var qn,nr,Hn=Vn.length,lr,cr,Qn,ar;for(nr=0;nr<Hn;nr+=1){if(qn=Vn[nr],qn.hasMask){var er=qn.masksProperties;for(cr=er.length,lr=0;lr<cr;lr+=1)if(er[lr].pt.k.i)er[lr].pt.k.c=er[lr].cl;else for(ar=er[lr].pt.k.length,Qn=0;Qn<ar;Qn+=1)er[lr].pt.k[Qn].s&&(er[lr].pt.k[Qn].s[0].c=er[lr].cl),er[lr].pt.k[Qn].e&&(er[lr].pt.k[Qn].e[0].c=er[lr].cl)}qn.ty===4&&Gn(qn.shapes)}}return function(Vn){if(zn(Zn,Vn.v)&&(Kn(Vn.layers),Vn.assets)){var qn,nr=Vn.assets.length;for(qn=0;qn<nr;qn+=1)Vn.assets[qn].layers&&Kn(Vn.assets[qn].layers)}}}();function Jn(Zn){Zn.__complete||(Yn(Zn),Un(Zn),Wn(Zn),tr(Zn),Xn(Zn),Rn(Zn.layers,Zn.assets),Bn(Zn.chars,Zn.assets),Zn.__complete=!0)}function ir(Zn){Zn.t.a.length===0&&"m"in Zn.t.p}var sr={};return sr.completeData=Jn,sr.checkColors=Yn,sr.checkChars=Wn,sr.checkPathProperties=tr,sr.checkShapes=Xn,sr.completeLayers=Rn,sr}if(p.dataManager||(p.dataManager=J()),p.assetLoader||(p.assetLoader=function(){function Rn(w){var vn=w.getResponseHeader("content-type");return vn&&w.responseType==="json"&&vn.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 Bn(w,vn,gn,Fn){var zn,Un=new XMLHttpRequest;try{Un.responseType="json"}catch{}Un.onreadystatechange=function(){if(Un.readyState===4)if(Un.status===200)zn=Rn(Un),gn(zn);else try{zn=Rn(Un),gn(zn)}catch(Wn){Fn&&Fn(Wn)}};try{Un.open(["G","E","T"].join(""),w,!0)}catch{Un.open(["G","E","T"].join(""),vn+"/"+w,!0)}Un.send()}return{load:Bn}}()),_.data.type==="loadAnimation")p.assetLoader.load(_.data.path,_.data.fullPath,function(Rn){p.dataManager.completeData(Rn),p.postMessage({id:_.data.id,payload:Rn,status:"success"})},function(){p.postMessage({id:_.data.id,status:"error"})});else if(_.data.type==="complete"){var re=_.data.animation;p.dataManager.completeData(re),p.postMessage({id:_.data.id,payload:re,status:"success"})}else _.data.type==="loadData"&&p.assetLoader.load(_.data.path,_.data.fullPath,function(Rn){p.postMessage({id:_.data.id,payload:Rn,status:"success"})},function(){p.postMessage({id:_.data.id,status:"error"})})}),h.onmessage=function(b){var _=b.data,J=_.id,re=u[J];u[J]=null,_.status==="success"?re.onComplete(_.payload):re.onError&&re.onError()})}function g(b,_){c+=1;var J="processId_"+c;return u[J]={onComplete:b,onError:_},J}function y(b,_,J){m();var re=g(_,J);h.postMessage({type:"loadAnimation",path:b,fullPath:window.location.origin+window.location.pathname,id:re})}function x(b,_,J){m();var re=g(_,J);h.postMessage({type:"loadData",path:b,fullPath:window.location.origin+window.location.pathname,id:re})}function Pn(b,_,J){m();var re=g(_,J);h.postMessage({type:"complete",animation:b,id:re})}return{loadAnimation:y,loadData:x,completeAnimation:Pn}}(),ImagePreloader=function(){var c=function(){var Bn=createTag("canvas");Bn.width=1,Bn.height=1;var w=Bn.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),Bn}();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(Bn,w,vn){var gn="";if(Bn.e)gn=Bn.p;else if(w){var Fn=Bn.p;Fn.indexOf("images/")!==-1&&(Fn=Fn.split("/")[1]),gn=w+Fn}else gn=vn,gn+=Bn.u?Bn.u:"",gn+=Bn.p;return gn}function d(Bn){var w=0,vn=setInterval((function(){var gn=Bn.getBBox();(gn.width||w>500)&&(this._imageLoaded(),clearInterval(vn)),w+=1}).bind(this),50)}function p(Bn){var w=h(Bn,this.assetsPath,this.path),vn=createNS("image");isSafari?this.testImageLoaded(vn):vn.addEventListener("load",this._imageLoaded,!1),vn.addEventListener("error",(function(){gn.img=c,this._imageLoaded()}).bind(this),!1),vn.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(vn):this._elementHelper.appendChild(vn);var gn={img:vn,assetData:Bn};return gn}function v(Bn){var w=h(Bn,this.assetsPath,this.path),vn=createTag("img");vn.crossOrigin="anonymous",vn.addEventListener("load",this._imageLoaded,!1),vn.addEventListener("error",(function(){gn.img=c,this._imageLoaded()}).bind(this),!1),vn.src=w;var gn={img:vn,assetData:Bn};return gn}function m(Bn){var w={assetData:Bn},vn=h(Bn,this.assetsPath,this.path);return dataManager.loadData(vn,(function(gn){w.img=gn,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function g(Bn,w){this.imagesLoadedCb=w;var vn,gn=Bn.length;for(vn=0;vn<gn;vn+=1)Bn[vn].layers||(!Bn[vn].t||Bn[vn].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(Bn[vn]))):Bn[vn].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Bn[vn]))))}function y(Bn){this.path=Bn||""}function x(Bn){this.assetsPath=Bn||""}function Pn(Bn){for(var w=0,vn=this.images.length;w<vn;){if(this.images[w].assetData===Bn)return this.images[w].img;w+=1}return null}function b(){this.imagesLoadedCb=null,this.images.length=0}function _(){return this.totalImages===this.loadedAssets}function J(){return this.totalFootages===this.loadedFootagesCount}function re(Bn,w){Bn==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function Rn(){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 Rn.prototype={loadAssets:g,setAssetsPath:x,setPath:y,loadedImages:_,loadedFootages:J,destroy:b,getAsset:Pn,createImgData:v,createImageData:p,imageLoaded:u,footageLoaded:f,setCacheType:re},Rn}();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
171
+ </span>`)}else c.format==="percent"?(gr=+gr,isNaN(gr)||(gr=(gr*100).toFixed(2),or=or.replace(yr,`<span class="${fr}" style="color:${Xn(gr)||c.variableColor};font-size:${vue.unref(p)};${vue.unref(Fn)}">${gr}%</span>`))):c.format==="money"?(gr=+gr,isNaN(gr)||(gr=formatMoney(gr),or=or.replace(yr,`<span class="${fr}" style="color:${Xn(gr)||c.variableColor};font-size:${vue.unref(p)};${vue.unref(Fn)}">${gr}</span>`))):kr==="thousands"?(gr=+gr,isNaN(gr)||(gr=formatThousands(gr),or=or.replace(yr,`<span class="${fr}" style="color:${Xn(gr)||c.variableColor};font-size:${vue.unref(p)};${vue.unref(Fn)}">${gr}</span>`))):or=or.replace(yr,`<span class="${fr}" style="color:${Xn(gr)||c.variableColor};font-size:${vue.unref(p)};${vue.unref(Fn)}">${gr}</span>`)}}if(dr||(dr=`<span class="${fr}" style="color: ${Xn(or)};${vue.unref(Fn)}">${or}</span>`),c.unitShow&&c.unitText){const{unitTop:pr,unitLeft:yr}=c;let br="position:relative;";pr&&(br+=`top:${pr};`),yr&&(br+=`margin-left:${yr};`),dr+=`<span style='color:${c.unitColor};font-size:${c.unitFontSize};font-weight:${c.unitFontWeight};${br};${vue.unref(Fn)}'>${c.unitText}</span>`}return c.exceedConfig&&(dr=`<span class="${fr}" style="display: inline-block;color: ${Xn(dr)};">${dr}</span>`),dr.includes("span")||(dr=`<span class="${fr}" style="color: ${Xn(dr)};">${dr}</span>`),dr});function Xn(er){let ur="",hr=!1;const{targetValue:or,targetShow:mr,notExpectColor:dr}=c;if(mr){switch(c.targetRule){case"equal":er!==or&&(hr=!0);break;case"greater":er<=or&&(hr=!0);break;case"greater_equal":er<or&&(hr=!0);break;case"less":er>=or&&(hr=!0);break;case"less_equal":er>or&&(hr=!0);break}hr&&(ur=dr)}return ur}const{pageId:Jn}=vue.inject("templateOperate",{pageId:""})||{},ir=useRequestData(c),sr=vue.ref(!1),Zn=async()=>{var er,ur,hr;try{sr.value=!0;const or=await ir();(er=or==null?void 0:or.data)!=null&&er.data.rowsToData?gn(((ur=or==null?void 0:or.data)==null?void 0:ur.data.rowsToData)||{}):gn(((hr=or==null?void 0:or.data)==null?void 0:hr.data)||{})}catch(or){console.error(or)}finally{sr.value=!1}},Gn=()=>{vn("")},Kn=er=>{var hr,or;const{data:ur}=(er==null?void 0:er.data)||{};if(ur){f.value=!1;const{columns:mr=[],rows:dr=[]}=((hr=er==null?void 0:er.data)==null?void 0:hr.data)??{},{graphicConfig:fr}=c;let vr={};if(mr.length>0)if((or=fr==null?void 0:fr.dimensionList)!=null&&or.length){const pr=mr[0];pr&&(dr!=null&&dr.length)&&(vr={value:dr[0][pr]})}else{const pr=mr.find(yr=>!!yr);pr&&(vr={value:isNaN(dr[pr])?0:dr[pr]||0})}vn(vr==null?void 0:vr.value),gn(vr)}else f.value=!0,vn(c.variableDefaultValue),gn({value:c.variableDefaultValue})},Vn=useIndicatorData(c,Kn),qn=async()=>{try{sr.value=!0;const er=await Vn();Kn(er)}catch(er){console.error(er)}finally{sr.value=!1,Rn(c.id,!0)}},nr=vue.ref(!1);vue.watch(Bn,er=>{if(c.dataType==="indicator"){const ur=getFixedValueDatas(c.graphicConfig);ur!=null&&ur.length&&(!vue.unref(nr)&&canRequestIndicator(c.graphicConfig,er)?(nr.value=!0,Hn()):canRequestIndicator(c.graphicConfig,er)||(nr.value=!1))}},{deep:!0});const Hn=()=>{switch(c.dataType){case"indicator":qn();break;case"request":{const{openCustomRequestData:er,customRequestName:ur}=c;er||er===void 0?Zn():(sr.value=!0,re(ur,hr=>{hr&&(hr.rowsToData?gn(hr.rowsToData):gn(hr)),sr.value=!1}));break}}},{setRequest:lr}=vue.inject(REQUEST_MODEL,{setRequest:({id:er,sortNum:ur,requestFn:hr})=>{}});typeof lr=="function"&&lr({id:c.id,requestFn:Hn,sortNum:c.requestSort}),u({refreshData:Hn});const cr=useEmitEvent(c),Qn=cr("click",()=>{const er=document.getElementsByClassName(`ecan-text_${c.id}`);er!=null&&er.length&&vn(er[0].innerText),setTimeout(()=>{vn("")},0),!(!c.linkPage&&!c.href)&&handleJumpLink(c,{pageMode:vue.unref(x),targetTemplate:c.targetTemplate,getRecordValueByKeyName:J,setTemplateData:w})}),ar=cr("valueChange",()=>{tr.value++});return useOnEvent(c,{refreshData:Hn,resetRecord:Gn,click:Qn,valueChange:ar}),vue.watch(()=>Yn.value,(er,ur)=>{er!==ur&&ar(),vue.nextTick(()=>{var hr;(hr=vue.unref(g))!=null&&hr.textContent?y.value=!0:y.value=!1})}),{style:h,myText:Yn,loading:sr,click:Qn,textIndent:v,vFontSize:p,gradientStyle:zn,cursorStyle:Un,myTitle:m,wrapStyle:Wn,textRef:g}}}),__injectCSSVars__$4=()=>{vue.useCssVars(c=>({"55186bf6":c.vFontSize,fdb4fccc:c.textIndent,"460a83f2":c.percentageSide,"64f1c9bd":c.titleFontColor,"5a0fdd46":c.variableColor}))},__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_2a8d73e9_lang="",Text_vue_vue_type_style_index_1_lang="",_hoisted_1$f=["innerHTML"],_hoisted_2$7=["innerHTML"],_hoisted_3$3=["innerHTML"];function _sfc_render$x(c,u,f,h,d,p){const v=vue.resolveComponent("skeleton"),m=vue.resolveComponent("a-tooltip");return c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{loading:c.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-text",style:vue.normalizeStyle(c.style),onClick:u[0]||(u[0]=(...g)=>c.click&&c.click(...g))},[c.myTitle?(vue.openBlock(),vue.createBlock(m,{key:0,overlayClassName:"ecan-text-tooltip",color:c.titleBackgroundColor||"#ffffff"},{title:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({padding:"10px",maxHeight:"500px",overflow:"auto",color:c.titleFontColor||"#000000"}),innerHTML:c.myTitle},null,12,_hoisted_1$f)]),default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass("ecan-text_"+c.id),style:vue.normalizeStyle({...c.gradientStyle,...c.cursorStyle}),innerHTML:c.myText},null,14,_hoisted_2$7)]),_:1},8,["color"])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["ecan-text_"+c.id,c.isContentMarkDown?"markdown-content-tenxt":""]),style:vue.normalizeStyle({...c.gradientStyle,...c.cursorStyle,...c.wrapStyle}),ref:"textRef",innerHTML:c.myText},null,14,_hoisted_3$3))],4))}const Text=_export_sfc$1(__default__$4,[["render",_sfc_render$x],["__scopeId","data-v-2a8d73e9"]]),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,p){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:_,value:J,mode:re}=Pn;switch(_){case"add":b=b.add(J,re);break;case"minus":b=b.subtract(J,re)}}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 p=null;const v=()=>{clearInterval(p),p=null},g=useEmitEvent(c)("timeChange",()=>{}),y=()=>{p&&v();let x=1e3;const{value:Pn,mode:b}=c.updateInterval||{};Pn&&(x=x*Pn);const _={second:1,minute:60,hour:60*60,day:24*60*60};b&&(x=x*_[b]),p=setInterval(()=>{d.value=h(),vue.unref(u)!=="design"&&g()},x)};return useOnEvent(c,{timeChange:g}),vue.onMounted(()=>{y()}),vue.onUnmounted(()=>{v()}),{style:f,time:d}}}),TimeDisplay_vue_vue_type_style_index_0_scoped_b9216314_lang="";function _sfc_render$v(c,u,f,h,d,p){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=(Kn,Vn)=>{const{format:qn,customFormatter:nr}=Vn;if(qn==null||qn==="")return Kn;const Hn={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,custom:formatCustom};return Hn[qn]?qn==="custom"?Hn[qn](Kn,nr)||"":Hn[qn](Kn)||"":""},p=(Kn,Vn)=>{const qn=parseFloat(Kn+"");if(Vn!=="contrast")return"";switch(!0){case qn>=0:return"goUp";case qn<0:return"goDown"}},v=useRequestData(c),m=vue.ref(!1),g=async()=>{var Kn;if(c.dataType==="request")try{m.value=!0;const Vn=await v();f.value=((Kn=Vn==null?void 0:Vn.data)==null?void 0:Kn.data.rows)||[]}catch(Vn){console.error(Vn)}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:Kn,isUseSeq:Vn}=c;return Vn?[vue.unref(y),...Kn]:Kn}),Pn=Kn=>{var nr;const{columns:Vn=[],rows:qn=[]}=((nr=Kn==null?void 0:Kn.data)==null?void 0:nr.data)??{};c.isUseSeq&&Vn.unshift(c.seqName),x.value.forEach((Hn,lr)=>{(!c.isUseSeq||lr!==0)&&(Hn.title=Vn[lr],Hn.key=Vn[lr])}),f.value=qn},b=useIndicatorData(c,Pn),_=async()=>{try{m.value=!0;const Kn=await b();Pn(Kn)}catch(Kn){console.error(Kn)}finally{m.value=!1}},J=()=>{switch(c.dataType){case"indicator":_();break;case"request":g();break}},re=useEmitEvent(c),{getGlobalModel:Rn,setGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Kn=>{},setGlobalModel:(Kn,Vn)=>{}}),w=Kn=>{re("click",()=>{const Vn=Rn(c.id);Bn(c.id,{...Vn,type:c.type,RECORD:Kn})})()};useOnEvent(c,{refreshData:J,resetRecord:()=>{const Kn=c.id,Vn=Rn(Kn);Bn(Kn,{...Vn,type:c.type,RECORD:""})}});const{setRequest:gn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Kn,sortNum:Vn,requestFn:qn})=>{}});typeof gn=="function"&&gn({id:c.id,requestFn:J,sortNum:c.requestSort}),u({refreshData:J});const Fn=(Kn,Vn)=>({flex:Kn.width?"none":"1",width:Kn.width,height:c.itemHeight,lineHeight:c.itemHeight,textAlign:(Vn?Kn.cellAlign:Kn.align)||"left",backgroundColor:Kn.cellColor}),zn=(Kn,Vn)=>{let qn=0;const nr=vue.unref(f).map(lr=>lr[Vn]),Hn=Math.max(...nr);return Hn&&(qn=Kn[Vn]/Hn*100),qn},Un=Kn=>{const{progressColor:Vn="#1890ff",progressGradientColor:qn=""}=Kn;return qn?{background:`linear-gradient(to right, ${Vn} 0%, ${qn} 100%)`}:{backgroundColor:Vn||"#1890ff"}},Wn=vue.computed(()=>{const Kn=parseFloat(c.seqFontSize)+5;return{width:Kn+10,height:Kn}}),{pageMode:tr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),Yn=vue.computed(()=>vue.unref(tr)!=="design"&&c.isAutoScroll),Xn=Kn=>{const{seqIconConfig:Vn}=c;let qn=Vn.find(nr=>nr.key===Kn+1);return qn||(qn=Vn.find(nr=>nr.key==="other")),!!(qn!=null&&qn.icon)},Jn=(Kn,Vn)=>{const{seqIconConfig:qn}=c;let nr=qn.find(Hn=>Hn.key===Kn+1);return nr||(nr=qn.find(Hn=>Hn.key==="other")),Vn===1?nr!=null&&nr.icon?useImagePath(nr.icon):"":Vn===2?(nr==null?void 0:nr.color)||"#fff":""},ir=Kn=>{const{seqIndexFormatter:Vn}=c,qn=Kn+1;return Vn?hn(Vn,{textData:{index:qn}},{useNewline:!1,useSpace:!0}):qn},sr=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:p,dataSource:f,loading:m,myColumns:x,click:w,getColumnStyle:Fn,getPercentage:zn,getBackgroundColor:Un,isShowSeqIcon:Xn,getSeqIconData:Jn,seqIcon4,seqIcon5,seqIcon6,seqIcon7,iconSize:Wn,isScroll:Yn,formatSeq:ir,wrapStyle:sr,colSpan:Zn,getText:(Kn,Vn)=>(Kn.format!=null||Kn.format!=="")&&d(Vn[Kn.key],Kn)}}}),List_vue_vue_type_style_index_0_scoped_0f13dff6_lang="",List_vue_vue_type_style_index_1_lang="",_withScopeId$4=c=>(vue.pushScopeId("data-v-0f13dff6"),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$1={key:2,class:"empty"};function _sfc_render$u(c,u,f,h,d,p){const v=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(v,{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$1," 暂无数据 "))]),_:1},8,["loading"])],4)}const List=_export_sfc$1(_sfc_main$q,[["render",_sfc_render$u],["__scopeId","data-v-0f13dff6"]]),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),p=vue.computed(()=>{const Fn=c.width;return parseFloat(Fn)}),v=vue.ref({});vue.watch(()=>c.data,()=>{(c.dataType==="static"||vue.unref(h)==="design")&&(v.value=c.data)},{immediate:!0,deep:!0});const m=vue.computed(()=>{const Fn=vue.unref(v),zn=+c.variableDefaultValue;if(Fn==null)return isNaN(zn)?0:zn;const Un=c.text.match(/\{(.+?)\}/g)||[];let Wn;const tr=new Set(Object.keys(Fn));for(let Yn=0;Yn<Un.length;Yn++){const Xn=Un[Yn],Jn=Xn.slice(1,Xn.length-1);if(tr.has(Jn)){Wn=Fn[Jn];break}}return typeof Wn=="number"?Wn=Wn*100:typeof Wn=="string"&&!isNaN(+Wn)?Wn=+Wn*100:isNaN(zn)?Wn=0:Wn=zn*100,c.decimalFormat&&(Wn=+Wn.toFixed(2)),Wn}),g=vue.computed(()=>{var tr;let Fn=c.text;if(Fn==="")return vue.unref(m);const zn=c.variableDefaultValue,Un=vue.unref(v),Wn=Fn.match(/\{(.+?)\}/g)||[];for(let Yn=0;Yn<Wn.length;Yn++){const Xn=Wn[Yn];let Jn=Xn.slice(1,Xn.length-1);const ir=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,sr=Xn.match(ir);for(let Gn=0;Gn<(sr==null?void 0:sr.length);Gn++){const Kn=(tr=sr[Gn])==null?void 0:tr.trim();Un[Kn]!=null&&(Jn=Jn.replace(Kn,Un[Kn]))}let Zn=Jn;try{(/\(.*\)/g.test(Jn)||/[+/\\*]/g.test(Jn))&&(Zn=pn(Jn))}catch(Gn){console.error(Gn)}typeof+Zn=="number"&&!isNaN(+Zn)?(Zn=+Zn*100,c.decimalFormat&&(Zn=Zn.toFixed(2))):typeof Zn!="string"&&(Zn=zn),Fn=Fn.replace(Xn,`<span style="color: ${c.variableColor};">${Zn+""}</span>`)}return Fn=Fn==null?void 0:Fn.replace(/\n|\\n/g,"<br/>"),vue.unref(f)?"NaN":Fn}),y=useRequestData(c),x=vue.ref(!1),Pn=async()=>{var Fn,zn,Un,Wn,tr;if(c.dataType==="request")try{x.value=!0;const Yn=await y();v.value=((Fn=Yn==null?void 0:Yn.data)==null?void 0:Fn.data)||{},(Un=(zn=Yn==null?void 0:Yn.data)==null?void 0:zn.data)!=null&&Un.rowsToData&&(v.value=((tr=(Wn=Yn==null?void 0:Yn.data)==null?void 0:Wn.data)==null?void 0:tr.rowsToData)||{})}catch(Yn){console.error(Yn)}finally{x.value=!1}},b=(Fn={})=>{v.value=Fn},_=Fn=>{var Un;const{data:zn}=(Fn==null?void 0:Fn.data)||{};if(zn){f.value=!1;const{columns:Wn=[],rows:tr=[]}=((Un=Fn==null?void 0:Fn.data)==null?void 0:Un.data)??{};let Yn={};if(Wn.length>0){const Xn=Wn.find(Jn=>!!Jn);Xn&&(Yn={percent:tr[Xn]})}b(Yn)}else f.value=!0,b({percent:"NaN"})},J=useIndicatorData(c,_),re=async()=>{try{x.value=!0;const Fn=await J();_(Fn)}catch(Fn){console.error(Fn)}finally{x.value=!1}},Rn=()=>{switch(c.dataType){case"indicator":re();break;case"request":Pn();break}};useOnEvent(c,{refreshData:Rn}),u({refreshData:Rn});const w=useEmitEvent(c)("click",()=>{}),{setRequest:vn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Fn,sortNum:zn,requestFn:Un})=>{}});typeof vn=="function"&&vn({id:c.id,requestFn:Rn,sortNum:c.requestSort});const gn=vue.computed(()=>{const{gradientShow:Fn,gradientColor:zn,gradientOffset:Un,strokeColor:Wn}=c;let tr=Wn;return Fn&&(tr={"0%":Wn||"transparent",[`${Un*100}%`]:zn||"transparent"}),tr});return{style:d,myWidth:p,text:g,myValue:m,loading:x,click:w,customStrokeColor:gn}}}),Proportion_vue_vue_type_style_index_0_scoped_ca061c1e_lang="",_hoisted_1$c=["innerHTML"];function _sfc_render$t(c,u,f,h,d,p){const v=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(v,{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-ca061c1e"]]),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"})),p=vue.computed(()=>({color:c.color,fontSize:c.fontSize,fontWeight:c.fontWeight,fontStyle:c.fontStyle}));vue.watch(()=>[c.data,c.dataType],([gn,Fn])=>{Fn==="static"&&(f.value=gn)},{immediate:!0});const{getGlobalModel:v,setGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:gn=>{},setGlobalModel:(gn,Fn)=>{}}),y=useEmitEvent(c)("click",()=>{const gn=v(c.id);m(c.id,{...gn,type:c.type,value:vue.unref(f)})}),x=()=>{const gn=c.id,Fn=v(gn);m(gn,{...Fn,type:c.type,value:""})},Pn=useRequestData(c),b=vue.ref(!1),_=async()=>{var gn,Fn;try{b.value=!0;const zn=await Pn();f.value=((Fn=(gn=zn==null?void 0:zn.data)==null?void 0:gn.data)==null?void 0:Fn.value)||""}catch(zn){console.error(zn)}finally{b.value=!1}},J=gn=>{var Un;const{data:Fn}=(gn==null?void 0:gn.data)||{};let zn="";if(Fn){const{columns:Wn=[],rows:tr=[]}=((Un=gn==null?void 0:gn.data)==null?void 0:Un.data)??{};if(Wn.length>0){const Yn=Wn.find(Xn=>!!Xn);Yn&&(zn=tr[Yn]||"")}}f.value=String(zn)},re=useIndicatorData(c,J),Rn=async()=>{try{b.value=!0;const gn=await re();J(gn)}catch(gn){console.error(gn)}finally{b.value=!1}},Bn=()=>{switch(c.dataType){case"indicator":Rn();break;case"request":_();break}},w=vue.computed(()=>{const gn=[],{digits:Fn}=c,zn=vue.unref(f)?vue.unref(f).split("").reverse().join(""):"";for(let Un=0;Un<Fn;Un++)zn&&zn[Un]?gn.push(zn[Un]):gn.push("0");return gn.reverse()});useOnEvent(c,{refreshData:Bn,resetRecord:x});const{setRequest:vn}=vue.inject(REQUEST_MODEL,{setRequest:({id:gn,sortNum:Fn,requestFn:zn})=>{}});return typeof vn=="function"&&vn({id:c.id,requestFn:Bn,sortNum:c.requestSort}),u({refreshData:Bn}),{style:h,valueList:w,digitsStyle:d,fontStyle:p,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,p){var m;const v=vue.resolveComponent("skeleton");return c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{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:p}=vue.inject(GLOBAL_MODEL,{getGlobalModel:x=>{},setGlobalModel:(x,Pn)=>{},getRecordValueByKeyName:x=>{}});vue.watch(()=>c.value,x=>{f.value=p(x)},{immediate:!0}),d(c.id,{type:c.type,value:f});const v=()=>{const x=h(c.id);d(c.id,{...x,RECORD:f})},m=useEmitEvent(c),g=lodashEs.debounce(m("inputChange",()=>{v()}),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,p){const v=vue.resolveComponent("a-input");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-input",style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{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:"",data:""},datePickerComponentProps=transformToComponentProps(datePickerProps$1),datePickerEvents=["dateChange","refreshData"],__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,p=vue.ref(null),v=vue.ref(null),m=vue.ref(""),g=vue.ref(!1),y=vue.ref([]),x=vue.ref(""),Pn=vue.computed(()=>{let Hn=["year","month","day"];switch(c.picker){case"year":Hn=["year"];break;case"month":Hn=["year","month"];break}return Hn}),{setGlobalModel:b,getGlobalModel:_}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Hn=>{},setGlobalModel:(Hn,lr)=>{}}),{pageId:J}=vue.inject("templateOperate",{pageId:""})||{};b(c.id,{type:c.type,format:c.format,useCurrentTime:c.useCurrentTime,value:p,RECORD:p});const{getGlobalVar:re}=vue.inject(GLOBAL_CONFIG,{getGlobalVar:Hn=>{}}),Rn=useEmitEvent(c),Bn=Hn=>{const lr=c.id,cr=_(lr);b(lr,{...cr,value:Hn||"",RECORD:Hn||""})},w=Rn("refreshData",Hn=>{Bn(Hn)});vue.watch(()=>[c.value,c.useCurrentTime,c.operate,x.value],([Hn,lr,cr,Qn])=>{let ar=null,er=Hn;if(c.dataType==="request"&&(er=Qn),er){const ur=er.match(/\{(.+?)\}/g);if(ur){const hr={};for(let or of ur){const mr=or.slice(1,-1).trim(),dr=_(mr);if(dr)hr[mr]=dr.value.format(dr.format);else if(mr.includes("$page")){const fr=mr.replace(/[$.]/g,"");er=er.replaceAll(mr,fr),hr[fr]=re(mr)}}ar=dayjs(hn(er,{textData:hr}))}else ar=dayjs(hn(er))}else lr&&(ar=dayjs());if(cr&&ar){const{type:ur,value:hr,mode:or}=cr;switch(ur){case"add":ar=ar.add(hr,or);break;case"minus":ar=ar.subtract(hr,or)}}p.value=ar,v.value=ar,vue.unref(u)&&Jn(ar),w(ar)},{deep:!0,immediate:!0});const vn=Rn("dateChange",()=>{const Hn=getNewValueFromUrlParams(J,c.keyName,"value");Hn&&(p.value=dayjs(Hn)),Bn(vue.unref(p))}),gn=()=>{vue.unref(p)&&vn()};useOnEvent(c,{dateChange:vn});const Fn=vue.ref({}),zn=vue.ref({}),Un=Hn=>{Hn?setTimeout(()=>{zn.value=vue.unref(Fn)},300):zn.value={}};vue.onMounted(()=>{setTimeout(()=>{const Hn=document.querySelector(`#ecan-date-picker-${c.id}`);if(Hn){const lr=Hn.getBoundingClientRect(),cr=parseFloat(vue.unref(f).widthScale)*280;document.body.clientWidth-lr.left<cr&&(Fn.value.marginLeft=-1*(cr-lr.width)+"px")}},0)});const Wn=()=>{Jn(vue.unref(p)),g.value=!0},tr=()=>{Jn(),p.value=null},Yn=()=>{const Hn=dayjs(vue.unref(y).join("-"));p.value=Hn,Jn(Hn),g.value=!1,gn()},Xn=()=>{p.value=dayjs(),Jn(),m.value=dayjs().format(c.format),g.value=!1};function Jn(Hn){y.value=ir(Hn||dayjs()),m.value=(Hn==null?void 0:Hn.format(c.format))||""}function ir(Hn){const lr=[];for(const cr of vue.unref(Pn))cr==="day"?lr.push(Hn.date()):lr.push(Hn[cr]()+(cr==="month"?1:0));return lr}const sr=Hn=>{let lr=!1,{limitStartTime:cr,limitEndTime:Qn}=c,ar=c.picker;const er={current:vue.unref(v)};return c.picker==="date"&&(ar="day"),cr=hn(cr,{textData:er}),Qn=hn(Qn,{textData:er}),cr&&Qn?lr=!(dayjs(cr).isBefore(Hn,ar)&&Hn.isBefore(dayjs(Qn),ar)):cr?lr=Hn.isBefore(dayjs(cr),ar):Qn&&(lr=dayjs(Qn).isBefore(Hn,ar)),lr},Zn=(Hn={})=>{var lr;if((lr=Object.keys(Hn))!=null&&lr.length)for(const cr in Hn)x.value=Hn[cr]},Gn=useRequestData(c),Kn=vue.ref(!1),Vn=async()=>{var Hn,lr,cr;try{Kn.value=!0;const Qn=await Gn();(Hn=Qn==null?void 0:Qn.data)!=null&&Hn.data.rowsToData?Zn(((lr=Qn==null?void 0:Qn.data)==null?void 0:lr.data.rowsToData)||{}):Zn(((cr=Qn==null?void 0:Qn.data)==null?void 0:cr.data)||{})}catch(Qn){console.error(Qn)}finally{Kn.value=!1}},qn=()=>{switch(c.dataType){case"request":{Vn();break}}},{setRequest:nr}=vue.inject(REQUEST_MODEL,{setRequest:({id:Hn,sortNum:lr,requestFn:cr})=>{}});return typeof nr=="function"&&nr({id:c.id,requestFn:qn,sortNum:c.requestSort}),{style:h,getPopupContainer:d,myValue:p,locale,change:gn,scaleValue:f,popupStyle:Fn,customStyle:zn,openChange:Un,isMobile:u,mobileDateStr:m,handleClearDate:tr,openDatePick:Wn,datePickVisible:g,columnsType:Pn,mobileDate:y,onConfirmDate:Yn,onCancelDate:Xn,disabledDate:sr}}}),__injectCSSVars__$3=()=>{vue.useCssVars(c=>({edd07842: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_dba55fcd_lang="",DatePicker_vue_vue_type_style_index_1_lang="",_hoisted_1$a=["id"];function _sfc_render$q(c,u,f,h,d,p){const v=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(v,{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-dba55fcd"]]),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,p){var v=p.prototype;v.quarter=function(y){return this.$utils().u(y)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(y-1))};var m=v.add;v.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=v.startOf;v.startOf=function(y,x){var Pn=this.$utils(),b=!!Pn.u(x)||x;if(Pn.p(y)===h){var _=this.quarter()-1;return b?this.month(3*_).startOf(f).startOf("day"):this.month(3*_+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,getGlobalVar:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",getGlobalVar:dr=>{}}),{getGlobalModel:d,setGlobalModel:p}=vue.inject(GLOBAL_MODEL,{getGlobalModel:dr=>{},setGlobalModel:(dr,fr)=>{}}),v=usePickComponentStyle(c),m=()=>document.getElementById("ProviderConfig")||document.body,g=vue.ref([null,null]),y=vue.ref(!1),x=vue.ref([]),Pn=vue.ref([]),b=vue.ref(),_=vue.ref(),J=vue.ref(),re=vue.ref(),Rn=vue.ref(0),Bn=vue.ref({}),w=vue.ref(""),vn=vue.computed(()=>{let dr=["year","month","day"];switch(c.picker){case"year":dr=["year"];break;case"month":dr=["year","month"];break}return dr}),gn=dr=>{const fr=dr==null?void 0:dr.match(/\{(.+?)\}/g);let vr;if(fr){const pr={};for(let yr of fr){const br=yr.slice(1,-1).trim(),Sr=d(br);if(Sr)pr[br]=Sr.value.format(Sr.format);else if(br.includes("$page")){const gr=br.replace(/[$.]/g,"");dr=dr.replaceAll(br,gr),pr[gr]=h(br)}}vr=dayjs(hn(dr,{textData:pr}))}else vr=dayjs(hn(dr));return vr};vue.watch(()=>[c.startTime,c.endTime,c.useCurrentTime,c.interval,c.intervalUnit,c.operate],([dr,fr,vr,pr,yr,br])=>{if(vue.unref(g).every(Sr=>!Sr)||vue.unref(f)==="design"){let Sr=null,gr=null;if(vr&&(Sr=dayjs().subtract(pr,yr),gr=dayjs()),dr&&(Sr=gn(dr)),fr&&(gr=gn(fr)),br){const{type:kr,value:wr,mode:Er}=br;switch(kr){case"add":Sr=Sr&&Sr.add(wr,Er),gr=gr&&gr.add(wr,Er);break;case"minus":Sr=Sr&&Sr.subtract(wr,Er),gr=gr&&gr.subtract(wr,Er)}}g.value=[Sr,gr],vue.unref(u)&&or()}},{immediate:!0});let Fn=vue.unref(g)[0],zn=vue.unref(g)[1],Un="";const Wn=(dr,fr,vr)=>{Array.isArray(dr)?(Fn=dr[0],zn=dr[1],Un=vr.range):(Fn=null,zn=null)},tr=dr=>{let fr=!1,{limitStartTime:vr,limitEndTime:pr}=c;const yr={startTime:`${Fn||""}`,endTime:`${zn||""}`};if(vr=hn(vr,{codeData:yr}),pr=hn(pr,{codeData:yr}),vr&&pr?fr=!(dayjs(vr)<dr&&dr<dayjs(pr)):vr?fr=dayjs(vr)>dr:pr&&(fr=dayjs(pr)<dr),!c.isAllowSpanYear&&Un){let br=null;if(Un==="start"?br=Fn:Un==="end"&&(br=zn),br){const Sr=br.startOf("year"),gr=br.endOf("year");fr=!(Sr<=dr&&dr<gr)}}if(!fr){const{value:br=0,mode:Sr="year"}=c.limitInterval||{};br&&(Un==="start"?fr=Fn.add(br,Sr)<dr:Un==="end"&&(fr=zn.subtract(br,Sr)>dr))}return fr},Yn=vue.computed(()=>Array.isArray(vue.unref(g))?vue.unref(g)[0]:null),Xn=vue.computed(()=>Array.isArray(vue.unref(g))?vue.unref(g)[1]:null),{pageId:Jn}=vue.inject("templateOperate",{pageId:""})||{};p(c.id,{type:c.type,format:c.format,startTime:Yn,endTime:Xn,interval:c.interval,intervalUnit:c.intervalUnit,useCurrentTime:c.useCurrentTime,operate:c.operate});const ir=useEmitEvent(c);let sr=!1;const Zn=ir("dateChange",()=>{var vr;const dr=getNewValueFromUrlParams(Jn,c.keyName,"startTime"),fr=getNewValueFromUrlParams(Jn,c.keyName,"endTime");(vr=g.value)!=null&&vr.length||(g.value=[null,null]),dr&&(g.value[0]=dayjs(dr)),fr&&(g.value[1]=dayjs(fr))}),Gn=dr=>{const fr=vue.unref(g),vr=fr&&fr[0]&&fr[1];dr===!1&&sr===!0&&vr&&(Zn(),sr=!1),dr||(Un="")},Kn=()=>{sr=!0},Vn=()=>{const{associated:dr}=c;if(dr){const fr=d(dr)||{};if(fr){const{value:vr}=fr;if(vr)switch(vue.unref(vr)){case"day":g.value=[dayjs().startOf("day"),dayjs().endOf("day")];break;case"month":g.value=[dayjs().startOf("month"),dayjs().endOf("month")];break;case"quarter":g.value=[dayjs().startOf("quarter"),dayjs().endOf("quarter")];break;case"year":g.value=[dayjs().startOf("year"),dayjs().endOf("year")];break}}}Zn()},qn=()=>{ur(vue.unref(g)),y.value=!0},nr=()=>{ur(),w.value="",g.value=[null,null]},Hn=()=>{g.value=[dayjs(vue.unref(x).join("-")),dayjs(vue.unref(Pn).join("-"))],ur(vue.unref(g)),hr(),ar(),y.value=!1,Zn()},lr=()=>{er(),y.value=!1},cr=()=>{var dr,fr;(dr=vue.unref(x))!=null&&dr.length&&c.format&&(J.value=new Date(vue.unref(x).join("-")),(fr=vue.unref(Pn))!=null&&fr.length&&dayjs(vue.unref(Pn).join("-")).isBefore(dayjs(vue.unref(x).join("-")))&&(Pn.value=lodashEs.cloneDeep(vue.unref(x))))},Qn=()=>{var dr,fr;(dr=vue.unref(Pn))!=null&&dr.length&&c.format&&(_.value=new Date(vue.unref(Pn).join("-")),(fr=vue.unref(x))!=null&&fr.length&&dayjs(vue.unref(x).join("-")).isAfter(dayjs(vue.unref(Pn).join("-")))&&(x.value=lodashEs.cloneDeep(vue.unref(Pn))))};function ar(){Bn.value={startMinDate:lodashEs.cloneDeep(vue.unref(b)),startMaxDate:lodashEs.cloneDeep(vue.unref(_)),endMinDate:lodashEs.cloneDeep(vue.unref(J)),endMaxDate:lodashEs.cloneDeep(vue.unref(re))}}function er(){b.value=vue.unref(Bn).startMinDate,_.value=vue.unref(Bn).startMaxDate,J.value=vue.unref(Bn).endMinDate,re.value=vue.unref(Bn).endMaxDate}function ur(dr=[]){x.value=mr(dr[0]||dayjs()),Pn.value=mr(dr[1]||dayjs())}function hr(){var vr,pr;const dr=(vr=vue.unref(x))!=null&&vr.length?dayjs(vue.unref(x).join("-")):"",fr=(pr=vue.unref(Pn))!=null&&pr.length?dayjs(vue.unref(Pn).join("-")):"";w.value=dr&&fr&&`${dr.format(c.format)} 至 ${fr.format(c.format)}`}function or(){const{limitStartTime:dr,limitEndTime:fr,limitInterval:vr,isAllowSpanYear:pr}=c;ur(vue.unref(g)),dr&&(b.value=new Date(dr),J.value=new Date(dr),vue.unref(g)[0].isBefore(dayjs(dr))&&(vue.unref(g)[0]=dayjs(dr),x.value=mr(vue.unref(g)[0]))),fr&&(_.value=new Date(fr),re.value=new Date(fr),vue.unref(g)[1].isAfter(dayjs(fr))&&(vue.unref(g)[1]=dayjs(fr),Pn.value=mr(vue.unref(g)[1]))),vue.unref(g).every(yr=>yr)&&(vr!=null&&vr.value)&&vue.unref(g)[1].diff(vue.unref(g)[0],vr.mode)>vr.value&&(vue.unref(g)[0]=vue.unref(g)[1].subtract(vr.value,vr.mode),x.value=mr(vue.unref(g)[0])),vue.unref(g).every(yr=>yr)&&!pr&&vue.unref(g)[0].year()!==vue.unref(g)[1].year()&&(vue.unref(g)[0]=dayjs(`${vue.unref(g)[1].year()}-01-01`),x.value=mr(vue.unref(g)[0])),ar(),hr()}function mr(dr){const fr=[];for(const vr of vue.unref(vn))vr==="day"?fr.push(dr.date()):fr.push(dr[vr]()+(vr==="month"?1:0));return fr}return useOnEvent(c,{dateChange:Vn}),{style:v,getPopupContainer:m,locale,dateChange:Zn,myValue:g,disabledDate:tr,calendarChange:Wn,openChange:Gn,change:Kn,isMobile:u,mobileDateStr:w,datePickVisible:y,columnsType:vn,openDatePick:qn,handleClearDate:nr,onConfirmDate:Hn,onCancelDate:lr,mobileStartDate:x,mobileEndDate:Pn,startMinDate:b,startMaxDate:_,endMinDate:J,endMaxDate:re,pickerTabKey:Rn,onStartDateChange:cr,onEndDateChange:Qn}}}),__injectCSSVars__$2=()=>{vue.useCssVars(c=>({"80ea8338":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_50c19548_lang="",RangePicker_vue_vue_type_style_index_1_lang="";function _sfc_render$p(c,u,f,h,d,p){const v=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(v,{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]=_=>c.datePickVisible=_),"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]=_=>c.pickerTabKey=_),tabs:["开始日期","结束日期"],onConfirm:c.onConfirmDate,onCancel:c.onCancelDate},{default:vue.withCtx(()=>[vue.createVNode(y,{modelValue:c.mobileStartDate,"onUpdate:modelValue":u[0]||(u[0]=_=>c.mobileStartDate=_),"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]=_=>c.mobileEndDate=_),"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]=_=>c.myValue=_),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-50c19548"]]),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(v);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}}),p=vue.computed(()=>hn(c.text)),v=vue.computed(()=>hn(c.href)||null),m=vue.computed(()=>{const g=c.target;if(!(g==="event"||vue.unref(v)==null))return{self:"_self",blank:"_blank"}[g]});return{style:u,click:h,myText:p,myHref:v,myTarget:m,buttonStyle:d}}}),Button_vue_vue_type_style_index_0_lang="";function _sfc_render$o(c,u,f,h,d,p){const v=vue.resolveComponent("a-button");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-button",style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{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([]),p=Bn=>{const w=c.value;let vn=[];Bn.forEach(gn=>{gn.checked&&vn.push(gn.value)}),typeof w=="string"&&w!==""?vn=vn.concat(w.split(",")):Array.isArray(w)&&(vn=vn.concat(w)),h.value=Bn,d.value=vn};vue.watch(()=>[c.data,c.value],([Bn])=>{p(Bn)},{immediate:!0,deep:!0});const v=useRequestData(c),m=async()=>{var vn,gn;if(c.dataType!=="request")return;const Bn=await v(),w=((gn=(vn=Bn==null?void 0:Bn.data)==null?void 0:vn.data)==null?void 0:gn.rows)||[];p(w)},{getGlobalModel:g,setGlobalModel:y}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Bn=>{},setGlobalModel:(Bn,w)=>{}});y(c.id,{type:c.type,value:d});const Pn=useEmitEvent(c)("checkboxChange",()=>{const Bn=g(c.id);y(c.id,{...Bn,RECORD:d})}),b=Bn=>{var vn;const{data:w}=(Bn==null?void 0:Bn.data)||{};if(w){const Fn=(((vn=Bn==null?void 0:Bn.data)==null?void 0:vn.data)??[]).map(zn=>({label:zn.label,value:zn.value}));p(Fn)}else p([])},_=useIndicatorData(c,b),J=async()=>{try{const Bn=await _();b(Bn)}catch(Bn){console.error(Bn)}},re=()=>{switch(c.dataType){case"indicator":J();break;case"request":m();break}},{setRequest:Rn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Bn,sortNum:w,requestFn:vn})=>{}});return typeof Rn=="function"&&Rn({id:c.id,requestFn:re,sortNum:c.requestSort}),u({refreshData:re}),{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,p){const v=vue.resolveComponent("a-checkbox-group");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-checkbox",style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{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 er,ur,hr;const f=vue.inject("isMobile",!1),h=vue.ref(!1),d={text:((er=c.dataFieldNames)==null?void 0:er.label)||"label",value:((ur=c.dataFieldNames)==null?void 0:ur.value)||"value"},p=vue.ref([]),v=usePickComponentStyle(c),m=()=>document.getElementById("ProviderConfig")||document.body,g=vue.ref(c.data||[]),y=vue.ref(),x=vue.computed({get:()=>{var mr;const{mode:or}=c;return(mr=vue.unref(g))!=null&&mr.length?y.value:or==="multiple"||or==="tags"||or==="combobox"?[]:""},set:or=>{y.value=or}}),Pn=vue.computed(()=>{const{value:or,label:mr}=c.dataFieldNames,dr=[];if(Array.isArray(vue.unref(x)))for(const fr of vue.unref(x)){const vr=vue.unref(g).find(pr=>pr[or]===fr);vr&&dr.push(vr[mr])}else{const fr=vue.unref(g).find(vr=>vr[or]===vue.unref(x));fr&&dr.push(fr[mr])}return dr.join(",")}),{setLoadedData:b,loadedData:_}=vue.inject(LOADED_DATA,{setLoadedData:(or,mr)=>{},loadedData:{}}),{getGlobalModel:J,setGlobalModel:re,getRecordValueByKeyName:Rn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:or=>{},setGlobalModel:(or,mr)=>{},getRecordValueByKeyName:or=>{}}),Bn=c.dataFieldNames;vue.watch(()=>[c.value,c.mode,c.selectFirstOption,c.valueType,g.value],()=>{const{mode:or,selectFirstOption:mr,value:dr}=c,fr=Rn(dr),vr=Bn.value;if(or==="multiple"||or==="tags"||or==="combobox"){if(fr)y.value=fr.split(",");else if(mr){const pr=vue.unref(g)[0];y.value=pr?[pr[vr]]:[]}}else if(fr)y.value=fr;else if(mr){const pr=vue.unref(g)[0];y.value=pr?pr[vr]:""}},{immediate:!0});const w=(or,mr)=>{const dr=Bn.label,fr=Bn.value;let vr;const pr=mr[dr],yr=mr[fr];return pr!=null?vr=pr:yr!=null&&(vr=yr),(vr==null?void 0:vr.toLowerCase().indexOf(or==null?void 0:or.toLowerCase()))>=0},vn=or=>{const{label:mr,value:dr,options:fr}=c.dataFieldNames;if(fr&&Array.isArray(or))if(or.some(vr=>fr in vr)){const vr={},pr=[];or.forEach(yr=>{vr[yr[fr]]||(vr[yr[fr]]=[]),vr[yr[fr]].push({[mr]:yr[mr],[dr]:yr[dr]})});for(const yr in vr)pr.push({[mr]:yr,[fr]:vr[yr]});return pr}else return or;else{if(!fr&&Array.isArray(or))return or=or.map(vr=>({label:vr[mr],value:vr[dr]})),or;if(!fr&&!Array.isArray(or))return or}},gn=vue.ref(!1),Fn=or=>{var mr,dr;if(g.value=vn(((dr=(mr=or==null?void 0:or.data)==null?void 0:mr.data)==null?void 0:dr.rows)||[]),c.selectFirstOption){let fr=vue.unref(g)[0];if(Bn.options){const vr=fr[Bn.options];vr&&vr.length&&(fr=vr[0])}y.value=fr[Bn.value]}b(c.id,!0),vue.nextTick(()=>{c.dataType!=="static"&&sr()})},zn=useRequestData(c),Un=async()=>{if(c.dataType==="request"){gn.value=!0;try{const or=await zn();Fn(or)}catch(or){console.error(or)}finally{gn.value=!1}}},Wn=vue.computed(()=>{let or=y.value;if(c.valueType==="label"&&vue.unref(y)&&vue.unref(g)){const mr=Bn.label,dr=Bn.value;if(c.mode==="multiple")or=vue.unref(g).filter(fr=>vue.unref(y).includes(fr[dr])).map(fr=>fr[mr]);else{const fr=vue.unref(g).find(vr=>vue.unref(y)===vr[dr]);fr&&(or=fr[mr])}}return or}),tr=vue.ref([]),Yn=vue.computed(()=>{const or={};if(c.mode!=="multiple"){const mr=vue.unref(tr).find(dr=>dr.value===vue.unref(y));mr&&(or.itemCodes=mr.item_codes)}return or}),Xn=vue.computed(()=>{const{value:or,label:mr}=Bn,dr=vue.unref(g).find(fr=>fr[or]===vue.unref(x));return dr?{label:dr[mr],value:dr[or]}:{}}),{pageId:Jn}=vue.inject("templateOperate",{pageId:""})||{};re(c.id,{type:c.type,dataType:c.dataType,value:Wn,label:(hr=vue.unref(Xn))==null?void 0:hr.label,...vue.unref(Yn),recordData:vue.unref(Xn)});const ir=useEmitEvent(c),sr=ir("selectChange",()=>{const or=c.id,mr=J(or);re(or,{...mr,...vue.unref(Yn),RECORD:Wn,recordData:vue.unref(Xn),dataType:c.dataType});const dr=getNewValueFromUrlParams(Jn,c.keyName,"value");dr&&(x.value=dr)}),Zn=ir("clearValue",()=>{["multiple","tags","combobox"].includes(c.mode)?y.value=[]:y.value=null;const or=c.id;re(or,{RECORD:"",recordData:vue.unref(Xn),dataType:c.dataType})}),Gn=ir("refreshData",(or=[])=>{var dr,fr;const mr=vn(or);if((fr=(dr=c==null?void 0:c.graphicConfig)==null?void 0:dr.formFields)!=null&&fr.hasAllOption){const vr=Bn.label,pr=Bn.value;mr.unshift({[vr]:"全部",[pr]:""})}if(g.value=mr,c.selectFirstOption){let vr=vue.unref(g)[0];if(Bn.options){const pr=vr[Bn.options];pr&&pr.length&&(vr=pr[0])}y.value=vr[Bn.value]}re(c.id,{type:c.type,value:Wn,...vue.unref(Yn),recordData:vue.unref(Xn),dataType:c.dataType})}),Kn=or=>{var vr;const{data:mr}=(or==null?void 0:or.data)||{},dr=Bn.label,fr=Bn.value;if(mr){const{rows:pr=[]}=((vr=or==null?void 0:or.data)==null?void 0:vr.data)||{};tr.value=pr;const yr=pr.map(gr=>({[dr]:gr.label,[fr]:gr.value})),{id:br}=c,Sr=J(br);re(br,{...Sr,...vue.unref(Yn),dataType:c.dataType}),b(br,!0),Gn(yr)}else Gn([])},Vn=useIndicatorData(c,Kn),qn=async()=>{try{gn.value=!0;const or=await Vn();Kn(or)}catch(or){console.error(or)}finally{gn.value=!1}},nr=vue.computed(()=>{var or,mr;return(mr=getConditions(((or=c==null?void 0:c.graphicConfig)==null?void 0:or.controlList)||[]))==null?void 0:mr.find(dr=>dr.conditionKey==="parentCode")}),Hn=vue.ref(!1);vue.watch(_,or=>{!vue.unref(Hn)&&vue.unref(nr)&&or[vue.unref(nr).id]&&(Hn.value=!0,lr())},{deep:!0});const lr=()=>{switch(c.dataType){case"indicator":{if(vue.unref(nr)){if(vue.unref(_)[vue.unref(nr).id]){const{mode:or}=c;or==="multiple"||or==="tags"||or==="combobox"?x.value=[]:x.value="",qn()}}else qn();break}case"request":Un();break}};useOnEvent(c,{selectChange:sr,refreshData:lr,clearValue:Zn});const{setRequest:cr}=vue.inject(REQUEST_MODEL,{setRequest:({id:or,sortNum:mr,requestFn:dr})=>{}});return typeof cr=="function"&&cr({id:c.id,requestFn:lr,sortNum:c.requestSort}),u({refreshData:lr}),{style:v,getPopupContainer:m,myValue:y,selectChange:sr,options:g,filterOption:w,loading:gn,resultValue:x,isMobile:f,customFieldName:d,pickVisible:h,onConfirmPicker:()=>{x.value=vue.unref(p)[0],sr(),h.value=!1},mobileValue:Pn,openPicker:()=>{var or;!Array.isArray(vue.unref(x))&&((or=vue.unref(g))!=null&&or.length)&&c.dataFieldNames.value&&(p.value=vue.unref(x)?[vue.unref(x)]:[vue.unref(g)[0][c.dataFieldNames.value]]),h.value=!0},mobileSelectValue:p}}}),Select_vue_vue_type_style_index_0_scoped_1b6377da_lang="",Select_vue_vue_type_style_index_1_lang="";function _sfc_render$m(c,u,f,h,d,p){const v=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(v)]),_: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,_)=>(vue.openBlock(),vue.createBlock(x,{key:_,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-1b6377da"]]),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,re)=>{const Rn=c.dataFieldNames,Bn=Rn.label,w=Rn.value;let vn;const gn=re[Bn],Fn=re[w];return gn!=null?vn=gn:Fn!=null&&(vn=Fn),(vn==null?void 0:vn.toLowerCase().indexOf(J==null?void 0:J.toLowerCase()))>=0},d=vue.ref();vue.watch(()=>[c.multiple,c.value,c.treeCheckable,c.selectFirstOption],()=>{const{multiple:J,value:re,selectFirstOption:Rn}=c;J?re?d.value=re.split(","):Rn&&(d.value=[vue.unref(f)[0]]):re?d.value=re:Rn&&(d.value=vue.unref(f)[0])},{immediate:!0});const p=vue.ref(!1),v=J=>{var Rn,Bn;f.value=((Bn=(Rn=J==null?void 0:J.data)==null?void 0:Rn.data)==null?void 0:Bn.rows)||[];const re=vue.unref(f)[0];c.value===""&&re!=null&&(d.value=re[c.dataFieldNames.value])},m=useRequestData(c),g=async()=>{if(c.dataType==="request"){p.value=!0;try{const J=await m();v(J)}catch(J){console.error(J)}finally{p.value=!1}}},{getGlobalModel:y,setGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:J=>{},setGlobalModel:(J,re)=>{}});x(c.id,{type:c.type,value:d});const b=useEmitEvent(c)("selectChange",()=>{const J=c.id,re=y(J);x(J,{...re,RECORD:d})});useOnEvent(c,{selectChange:b,refreshData:g});const{setRequest:_}=vue.inject(REQUEST_MODEL,{setRequest:({id:J,sortNum:re,requestFn:Rn})=>{}});return _({id:c.id,requestFn:g,sortNum:c.requestSort}),{style:u,treeData:f,filterTreeNode:h,myValue:d,loading:p,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,p){const v=vue.resolveComponent("a-tree-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tree-select",style:vue.normalizeStyle(h.style)},[vue.createVNode(v,{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([]),p=vue.ref(""),v=(Fn=[])=>{var Wn;const zn=c.value;let Un=[];typeof zn=="string"&&zn!==""?Un=Un.concat(zn.split(",")):Array.isArray(zn)&&(Un=Un.concat(zn)),d.value=Fn,c.selectFirstOption?p.value=((Wn=Fn[0])==null?void 0:Wn.value)||"":p.value=Un[0]||""};vue.watch(()=>[c.data,c.value,c.selectFirstOption],([Fn])=>{vue.unref(f)==="design"&&v(Fn)},{immediate:!0,deep:!0});const m=useRequestData(c),g=async()=>{var Un,Wn;if(c.dataType!=="request")return;const Fn=await m(),zn=((Wn=(Un=Fn==null?void 0:Fn.data)==null?void 0:Un.data)==null?void 0:Wn.rows)||[];v(zn)},{getGlobalModel:y,setGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Fn=>{},setGlobalModel:(Fn,zn)=>{}});x(c.id,{type:c.type,value:p});const Pn=useEmitEvent(c),b=()=>{const Fn=vue.unref(d).find(zn=>zn.value===vue.unref(p))||{};Pn("checkboxChange",()=>{const zn=y(c.id);x(c.id,{...zn,RECORD:p})},Fn)()},_=Fn=>{p.value=Fn,Pn("click",()=>{const zn=y(c.id);x(c.id,{...zn,RECORD:p})})()};vue.watch(p,()=>{b()});const J=Fn=>{var Un;const{data:zn}=(Fn==null?void 0:Fn.data)||{};if(zn){const tr=(((Un=Fn==null?void 0:Fn.data)==null?void 0:Un.data)??[]).map(Yn=>({label:Yn.label,value:Yn.value}));v(tr)}else v([])},re=useIndicatorData(c,J),Rn=async()=>{try{const Fn=await re();J(Fn)}catch(Fn){console.error(Fn)}},Bn=()=>{switch(c.dataType){case"indicator":Rn();break;case"request":g();break}},{setRequest:w}=vue.inject(REQUEST_MODEL,{setRequest:({id:Fn,sortNum:zn,requestFn:Un})=>{}});typeof w=="function"&&w({id:c.id,requestFn:Bn,sortNum:c.requestSort});const vn=Fn=>{p.value=Fn.value},gn=vue.computed(()=>c.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px",fontSize:c.tabFontSize}:{fontSize:c.tabFontSize});return vue.onMounted(()=>{v(c.data)}),u({refreshData:Bn}),{myOption:d,style:h,myValue:p,radioStyle:gn,onClickButton:_,useImagePath,tabChange:vn}}}),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,p){const v=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(v,{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:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},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"),p=new Blob([f]),v=document.createElement("a"),m=window.URL.createObjectURL(p);v.href=m,v.download=decodeURI(d),v.style.display="none",document.body.appendChild(v),v.click(),(g=v.parentNode)==null||g.removeChild(v),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(p=>p.type==="ecanTabs"&&p.isAutoScroll);if(d!=null&&d.length)for(const p of d){const v=u[p.id],m=[];if((!mn(p,"componentList")||!(p!=null&&p.componentList))&&(p.componentList=[]),v){let g=0;for(const y in v){const x=v[y],Pn=[];if(x!=null&&x.length)for(const b of x){let _=h.find(J=>J.id===b);_||(_=f.find(J=>J.id===b)),_&&(Pn.push(_),containerType.includes(_.type)&&Pn.push(...getComponentByContainer(_.id,u,f)))}for(const b of Pn)mn(b,"scale")?parseFloat(y)>0&&(b.left=parseFloat(b.left)+g+"px"):(b.left=parseFloat(b.sourceLeft||b.left)-parseFloat(p.sourceLeft||p.left)+g+"px",b.top=parseFloat(b.sourceTop||b.top)-parseFloat(p.sourceTop||p.top)+"px"),m.includes(b.id)||m.push(b.id);p.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 p,v;const{combinationMap:u={},sourceList:f=[]}=c,h=c.containerMap,d=lodashEs.cloneDeep([...c.componentList,...getTabsSomeComponentList(h,f)]);if(handleContainerMap(h,d),(p=Object.keys(h))!=null&&p.length||(v=Object.keys(u))!=null&&v.length){for(const b in h){const _=d.find(J=>J.id===b);if(_){mn(_,"parentId")||(_.parentId="",_.sourceLeft=_.left,_.sourceTop=_.top);for(const J in h[b])if(h[b][J])for(const re of h[b][J]){const Rn=d.find(Bn=>Bn.id===re);Rn&&(Rn.parentId=b,Rn.sourceLeft=Rn.left,Rn.sourceTop=Rn.top,Rn.left=parseFloat(Rn.left)-parseFloat(_.sourceLeft||_.left)+"px",Rn.top=parseFloat(Rn.top)-parseFloat(_.sourceTop||_.top)+"px")}}}const m=Array.from(new Set(d.filter(b=>(!mn(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)&&!mn(b,"parentId")),Pn=[];for(const b of x)if(b){const _=b.id+"_vir";Pn.push({id:_,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=_,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 _=document.body.clientWidth;if(b.parentId===""&&containerType.includes(b.type))b.sourceWidth=parseFloat(b.width),b.height=(_/(b.sourceWidth/parseFloat(b.height))).toFixed(2)+"px",b.width="100%",b.position="relative",b.top="auto",b.left="auto";else{const J=d.find(re=>re.id===b.parentId);if((J==null?void 0:J.parentId)===""){const re=J.sourceWidth||parseFloat(J.width),Rn=_/re;b.scale=Rn,b.top=parseFloat(b.top)*Rn-parseFloat(b.height)*(1-Rn)/2+"px",b.left=parseFloat(b.left)*Rn-parseFloat(b.width)*(1-Rn)/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 p=f[d.id];for(const v in p)for(const m of p[v]){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][v].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 p=c[d.id];for(const v in p)if(parseFloat(v)>0)for(const m of p[v]){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 p in d)for(const v of d[p]){const m=f.find(g=>g.id===v);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,p=[];for(const v of c){const m=h[v];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){p.push({...y,id:v,keyName:v,parentId:f||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:y.left,sourceTop:y.top});for(const x of g)x&&(x.parentId=v,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 p}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 p=0;p<h.length-d-1;p++){let v=!1;if((h[p].sourceTop-h[p+1].sourceTop>50||Math.abs(h[p+1].sourceTop-h[p].sourceTop)<=50&&h[p].sourceLeft>h[p+1].sourceLeft)&&(v=!0),v){const m=h[p];h[p]=h[p+1],h[p+1]=m}}for(const d of h){const p=c.findIndex(v=>v.id===d.id);p!==-1&&c.splice(p,1)}return[...h,...c]}return c}function getCombinateRect(c){const u=c.sort((p,v)=>parseFloat(p.top)-parseFloat(v.top))[0],f=c.sort((p,v)=>parseFloat(p.left)-parseFloat(v.left))[0],h=c.map(p=>({...p,computedTop:parseFloat(p.top)+parseFloat(p.height)})).sort((p,v)=>v.computedTop-p.computedTop)[0],d=c.map(p=>({...p,computedLeft:parseFloat(p.left)+parseFloat(p.width)})).sort((p,v)=>v.computedLeft-p.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 p in h){const v=h[p];for(const m of v){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,p){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),p=vue.inject("getContainerMap",()=>{}),v=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:m,interactiveData:g,setRequestData:y}=vue.inject(GLOBAL_MODEL,{setRequestData:(pr,yr)=>{},clearInteractiveData:()=>{},interactiveData:null}),x=()=>document.getElementById("ProviderConfig")||document.body,Pn=vue.computed(()=>{const pr=c.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[pr]}}),b=c.fullModal?"1920px":c.width,_=c.fullModal?"1080px":c.height,J=c.originalWidth,re=c.originalHeight,Rn=vue.ref("80%"),Bn=vue.ref(0),w=vue.ref(),vn=vue.ref(0),gn=vue.ref({}),Fn=usePickComponentStyle(c),zn=vue.ref({}),Un=vue.ref(!1),Wn=vue.ref();let tr;const Yn=()=>{w.value=parseFloat(b)/parseFloat(J);const pr=parseFloat(_)/parseFloat(re),yr=document.body.offsetWidth,br=document.body.offsetHeight;if(Bn.value=yr*vue.unref(w),vn.value=br*pr,Rn.value=`${vue.unref(w)*100}%`,gn.value={width:`${vue.unref(Bn)}px`,height:`${vue.unref(vn)}px`,border:`${c.borderWidth} solid ${c.borderColor}`,borderRadius:c.borderRadius+"px",boxShadow:c.boxShadow},zn.value={...vue.unref(Fn),backgroundImage:useImagePath(c.backgroundImage,!0)},h)zn.value={...zn.value,width:"100%",height:"100%"};else{const Sr={...zn.value,width:b,height:_};c.banScale&&vue.unref(d)?(Sr.width="100%",Sr.height="100%"):Sr.transform=`scale(${vue.unref(Bn)/parseFloat(b)},${vue.unref(vn)/parseFloat(_)})`,zn.value=Sr}},Xn=lodashEs.debounce(()=>{Yn()},100),Jn=()=>{const pr=window.MutationObserver;tr=new pr(Xn),tr.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},ir=()=>{tr&&(tr.disconnect(),tr.takeRecords(),tr=null)},sr=vue.ref(!1),{touchRequest:Zn}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),Gn=vue.ref(""),Kn=()=>{var br;const{title:pr}=c,yr=(br=vue.unref(g))==null?void 0:br.RECORD;return yr?hn(pr,{textData:yr},{useNewline:!1,useSpace:!1}):pr},Vn=useEmitEvent(c),qn=pr=>{const{changeIframeStyle:yr}=window.parent;yr&&typeof yr=="function"&&yr({iframeId:c.parentIframeId||"",action:pr})},nr=()=>{vue.unref(d)&&qn("open"),h&&(document.documentElement.style.overflow="hidden"),Gn.value=Kn(),sr.value=!0},Hn=Vn("hideModal",()=>{vue.unref(d)&&qn("close"),u("close"),h&&(document.documentElement.style.overflow="hidden auto",f.value=[]),sr.value=!1}),lr=()=>{Hn()},cr=()=>{Hn(),m()},{setModalModel:Qn,pushUseModalIds:ar,popUseModalIds:er}=vue.inject(MODAL_MODEL,{pushUseModalIds:pr=>{},popUseModalIds:()=>{},setModalModel:(pr,yr)=>{}}),ur=vue.computed(()=>{let pr=c.componentList;const yr=lodashEs.cloneDeep(c.componentList),br=p(),Sr=v(),gr={containerMap:br,combinationMap:Sr};h&&(pr=compatibleMobileList({...gr,componentList:yr,sourceList:c.allComponentList})),pr=handleScrollCombinations({...gr,componentList:pr,sourceList:c.allComponentList});const kr=[];for(const wr of pr)if(wr.type==="ecanCirculate"){const Er=moveToComponentList(br,vue.unref(yr),wr.id);wr.componentList=Er,kr.push(...Er.map(Tr=>Tr.id))}if(kr!=null&&kr.length)for(const wr of kr){const Er=pr.findIndex(Tr=>Tr.id===wr);Er!==-1&&pr.splice(Er,1)}return pr}),hr=()=>{const pr=c.id;let yr=[];const br=c.componentList;Array.isArray(br)&&(yr=br.map(Sr=>Sr.id),Qn(pr,[...new Set(yr)]))},or=vue.ref(!1),mr={};for(const pr of c.requestList)mr[pr.requestName]=useRequestData(pr);vue.watch(()=>sr.value,async pr=>{if(pr)Un.value=!1,ar(c.id),hr(),await vue.nextTick(()=>{Yn(),window.addEventListener("resize",Xn),Jn(),Un.value=!0}),Zn();else{if(y)for(const yr in mr)y(yr,{});er(),window.removeEventListener("resize",Xn),ir()}});const dr=vue.computed(()=>vue.unref(w)>=1),fr=vue.computed(()=>{let pr="ecan-modal";return vue.unref(dr)&&(pr+=" ecan-full-width-modal"),vue.unref(d)&&(pr+=" ecan-full-modal"),pr});return useOnEvent(c,{showModal:nr,hideModal:Hn}),{modalRef:Wn,containStyle:gn,contentStyle:zn,getContainer:x,modalStyle:Pn,modalWith:Rn,isFullModal:d,style:Fn,visible:sr,showModal:nr,onOk:lr,onCancel:cr,isFullWidth:dr,wrapClassName:fr,ready:Un,usedComponentList:ur,isMobile:h,readyIds:f,hasOwn:mn,onComponentReady:pr=>{f.value.push(pr)},formatTitle:Gn,requestLoaded:or}}}),Modal_vue_vue_type_style_index_0_scoped_d34efac2_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$i(c,u,f,h,d,p){const v=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(v,{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-d34efac2"]]),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 f=vue.ref(!1),{pageMode:h,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),p=vue.ref(),v=vue.ref(!1),m=usePickComponentStyle(c),g=vue.ref([]),y=vue.ref(),x=vue.ref({}),Pn=vue.computed(()=>{let{data:Zn=[]}=vue.unref(g)[0]||{};if(Array.isArray(c.colors)){const Gn=c.isUseLabelColors,Kn=c.colors;Zn=Zn.map((Vn,qn)=>({label:Gn?{color:Kn[qn]}:{},...Vn}))}return{textStyle:{fontFamily:vue.unref(d)},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 Gn;v.value=!0,(Gn=y.value)==null||Gn.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:Gn=>{const{marker:Kn,seriesName:Vn,name:qn,value:nr,percent:Hn,data:lr}=Gn||{};return hn(c.tooltipFormatter,{textData:{marker:Kn,name:qn,value:nr,percent:Hn,a:Vn,b:qn,c:nr,d:Hn,...lr}},{useNewline:!0,useSpace:!0})},textStyle:{color:c.tooltipTextStyleColor},position:c.tooltipPosition||void 0},legend:vue.unref(x),color:c.colors,series:[{data:Zn,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:{}}}]}}),b=()=>{var Gn,Kn;const Zn=v.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize);x.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:Zn+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:Zn}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:(Kn=(Gn=vue.unref(g)[0])==null?void 0:Gn.data)==null?void 0:Kn.map(Vn=>({name:Vn.name,icon:c.legendType})),formatter:Vn=>{const{data:qn}=g.value[0]||{};let nr=0,Hn,lr="0%";if(qn)for(const cr of qn)cr.name===Vn&&(Hn=+cr.value),nr+=+cr.value;return nr&&(lr=`${(Hn/nr*100).toFixed(2)}%`),getLegendFormat(c.legendFormatter,{name:Vn,value:Hn,percent:lr})}}},_=()=>{v.value=!1},{getGlobalModel:J,setGlobalModel:re}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Zn=>{},setGlobalModel:(Zn,Gn)=>{}}),Rn=(Zn=[],Gn)=>{const{dataset:Kn}=En(Zn,Gn);g.value=Kn,Kn!=null&&Kn.length||(f.value=!0)},Bn=(Zn=[],Gn)=>{var Vn;const Kn=En(Zn,Gn);g.value=Kn.dataset,(Vn=Kn.dataset)!=null&&Vn.length||(f.value=!0)};vue.watch(()=>c.data,Zn=>{(c.dataType==="static"||vue.unref(h)==="design")&&Rn(Zn)},{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],()=>{b()},{immediate:!0});const w=vue.ref(!1),vn=useRequestData(c),gn=async()=>{var Zn,Gn;if(c.dataType==="request")try{w.value=!0;const Kn=await vn();Rn((Gn=(Zn=Kn==null?void 0:Kn.data)==null?void 0:Zn.data)==null?void 0:Gn.rows,c.valueTypeDataFieldNames)}catch(Kn){console.error(Kn)}finally{w.value=!1}},Fn=useEmitEvent(c);re(c.id,{type:c.type,RECORD:""});const zn=Fn("click",Zn=>{const Gn=J(c.id);re(c.id,{...Gn,type:c.type,RECORD:Zn==null?void 0:Zn.data})}),Un=Zn=>{var Kn;const{data:Gn}=(Zn==null?void 0:Zn.data)||{};if(Gn){const{columns:Vn=[],rows:qn=[]}=((Kn=Zn==null?void 0:Zn.data)==null?void 0:Kn.data)??{};let nr=[];if(Vn.length>0){const Hn=Vn[0],lr=Vn[1];nr=qn.filter(cr=>!!cr).map(cr=>({name:cr[Hn],value:isNaN(cr[lr])?0:cr[lr]||0}))}Bn(nr)}},Wn=useIndicatorData(c,Zn=>{c.isViewRedrawing&&p.value.clear(),Un(Zn)}),tr=async()=>{try{w.value=!0;const Zn=await Wn();Un(Zn)}catch(Zn){console.error(Zn)}finally{w.value=!1}},{loadedData:Yn}=vue.inject(LOADED_DATA,{loadedData:{}}),Xn=vue.ref(!1);vue.watch(Yn,Zn=>{if(c.dataType==="indicator"){const Gn=getFixedValueDatas(c.graphicConfig);Gn!=null&&Gn.length&&(!vue.unref(Xn)&&canRequestIndicator(c.graphicConfig,Zn)?(Xn.value=!0,Jn()):canRequestIndicator(c.graphicConfig,Zn)||(Xn.value=!1))}},{deep:!0});const Jn=()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(Yn))&&tr();break;case"request":gn();break}};useOnEvent(c,{resetRecord:()=>{const Zn=c.id,Gn=J(Zn);re(Zn,{...Gn,RECORD:""})},refreshData:Jn,click:zn}),u({refreshData:Jn});const{setRequest:sr}=vue.inject(REQUEST_MODEL,{setRequest:Zn=>{}});return typeof sr=="function"&&sr({id:c.id,requestFn:Jn,sortNum:c.requestSort}),{option:Pn,style:m,click:zn,onClose:_,loading:w,ecanModal:y,echartRef:p,emptyData:f}}}),Pie_vue_vue_type_style_index_0_lang="",Pie_vue_vue_type_style_index_1_scoped_387baab7_lang="";function _sfc_render$h(c,u,f,h,d,p){const v=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(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(v,{key:1,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(v,{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],["__scopeId","data-v-387baab7"]]),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:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},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 f=vue.ref(!1),{pageMode:h,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),p=vue.ref(),v=vue.ref(!1),m=usePickComponentStyle(c),g=vue.ref([]),y=vue.ref([]),x=vue.ref(),Pn=vue.computed(()=>v.value?ZOOM_FONT_SIZE:12),b=vue.ref({});let _;const J=vue.ref([]),re=vue.computed(()=>{const Vn=c.xAxisLabelFormatter,qn=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(d)},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 nr;v.value=!0,(nr=x.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,tooltip:{trigger:"axis",textStyle:{fontSize:Pn.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:nr=>{var Qn;const Hn=nr.length;let lr="",cr=c.tooltipFormatter;_=(Qn=nr[0])==null?void 0:Qn.data,cr===""&&(cr="{marker} {a} {c}");for(let ar=0;ar<Hn;ar++){const{marker:er,seriesName:ur,name:hr,value:or,data:mr}=nr[ar]||{};if(ar===0){let dr=hr;typeof hr=="string"&&hr[0]==="0"&&!isNaN(+hr)&&(dr=(+hr).toString()),lr+=`${In(Vn,dr)}<br/>`}lr+=hn(cr,{textData:{marker:er,name:hr,value:or,a:ur,b:hr,c:or||0,...mr}},{useNewline:!0,useSpace:!0}),lr+="<br/>"}return lr},position:c.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:c.isBoundaryGap,data:vue.unref(y).map(nr=>{let Hn={};return nr&&typeof nr=="object"?Hn={...nr}:Hn={value:nr},Hn}),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(nr){return typeof nr=="string"&&nr[0]==="0"&&!isNaN(+nr)&&(nr=(+nr).toString()),In(Vn,nr)}},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(nr){return In(qn,nr)}},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(J).map(nr=>({name:nr.name,icon:c.legendType})),formatter:nr=>getLegendFormat(c.legendFormatter,{name:nr})},series:vue.unref(g)}}),Rn=()=>{v.value=!1},{getGlobalModel:Bn,setGlobalModel:w}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Vn=>{},setGlobalModel:(Vn,qn)=>{}}),vn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),gn=(Vn=[],qn=!1)=>{var Qn;let nr;if(c.dataFieldConfigType==="key"){const ar=qn?c.keyTypeDataFieldNames:null;nr=Dn(Vn,ar)}else if(c.dataFieldConfigType==="value"){const ar=qn?c.valueTypeDataFieldNames:null;nr=En(Vn,ar)}y.value=nr.dimensions,J.value=nr.dataset;const Hn=nr.dataset,lr=[],cr=Hn.length;for(let ar=0;ar<cr;ar++){const er={};c.shadowColor&&(er.shadowColor=c.shadowColor,er.shadowBlur=c.shadowBlur,er.shadowOffsetY=c.shadowOffsetY,er.shadowOffsetX=c.shadowOffsetX),lr.push({type:"line",...Hn[ar],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[ar]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[ar],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...er},...vue.unref(vn)})}g.value=lr,(Qn=nr.dataset)!=null&&Qn.length||(f.value=!0)},Fn=(Vn=[],qn,nr=!1)=>{var er;const lr=Dn(Vn,nr?qn:null,!0);y.value=lr.dimensions,J.value=lr.dataset;const cr=lr.dataset,Qn=[],ar=cr.length;for(let ur=0;ur<ar;ur++){const hr={};c.shadowColor&&(hr.shadowColor=c.shadowColor,hr.shadowBlur=c.shadowBlur,hr.shadowOffsetY=c.shadowOffsetY,hr.shadowOffsetX=c.shadowOffsetX),Qn.push({type:"line",...cr[ur],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[ur]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[ur],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...hr},...vue.unref(vn)})}g.value=Qn,(er=lr.dataset)!=null&&er.length||(f.value=!0)};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],([Vn])=>{(c.dataType==="static"||vue.unref(h)==="design")&&gn(Vn)},{immediate:!0,deep:!0});const zn=vue.ref(!1),Un=useRequestData(c),Wn=async()=>{var Vn,qn;if(c.dataType==="request")try{zn.value=!0;const nr=await Un();gn((qn=(Vn=nr==null?void 0:nr.data)==null?void 0:Vn.data)==null?void 0:qn.rows,!0)}catch(nr){console.error(nr)}finally{zn.value=!1}},tr=useEmitEvent(c);w(c.id,{type:c.type,RECORD:""});const Yn=tr("click",Vn=>{const qn=Bn(c.id);w(c.id,{...qn,type:c.type,RECORD:c.tooltipShow?_:Vn.data})}),Xn=Vn=>{p.value.chart.containPixel("grid",[Vn.offsetX,Vn.offsetY])&&Yn()};c.tooltipShow?b.value["zr:click"]=Xn:b.value.click=Yn;const Jn=Vn=>{var lr;const{columns:qn=[],rows:nr=[]}=((lr=Vn==null?void 0:Vn.data)==null?void 0:lr.data)??{};let Hn;qn.length>0&&(Hn={name:qn[0],types:qn.slice(1).map(cr=>({label:cr,value:cr}))}),Fn(nr,Hn,!0)},ir=useIndicatorData(c,Vn=>{c.isViewRedrawing&&p.value.clear(),Jn(Vn)}),sr=async()=>{try{zn.value=!0;const Vn=await ir();Jn(Vn)}catch(Vn){console.error(Vn)}finally{zn.value=!1}},Zn=()=>{switch(c.dataType){case"indicator":sr();break;case"request":Wn();break}};useOnEvent(c,{refreshData:Zn,resetRecord:()=>{const Vn=c.id,qn=Bn(Vn);w(Vn,{...qn,RECORD:""})},click:Yn});const{setRequest:Kn}=vue.inject(REQUEST_MODEL,{setRequest:Vn=>{}});return typeof Kn=="function"&&Kn({id:c.id,requestFn:Zn,sortNum:c.requestSort}),u({refreshData:Zn}),{option:re,style:m,click:Yn,loading:zn,onClose:Rn,ecanModal:x,eventObj:b,echartRef:p,emptyData:f}}}),Line_vue_vue_type_style_index_0_lang="",Line_vue_vue_type_style_index_1_scoped_7ff666b7_lang="";function _sfc_render$g(c,u,f,h,d,p){const v=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(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(v,vue.mergeProps({key:1,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(v,{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],["__scopeId","data-v-7ff666b7"]]),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,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},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 f=vue.ref(!1),{pageMode:h,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),p=vue.inject("usedComponentList",[]),v=vue.ref(),m=vue.ref(!1),g=vue.ref(!1),y=vue.ref(null),x=vue.ref([]),Pn=usePickComponentStyle(c),b=vue.ref([]),_=vue.ref(),J=vue.ref({});let re;const Rn=vue.computed(()=>m.value?ZOOM_FONT_SIZE:12),Bn=vue.computed(()=>{const{gradientShow:ur,gradientColors:hr,gradientOffset:or,barBorderRadius:mr}=c,dr=vue.unref(b),fr=dr.length,vr=[];for(let pr=0;pr<fr;pr++){const yr={...dr[pr],type:"bar",barWidth:c.barWidth.value+c.barWidth.suffix,showBackground:c.showBarBackground};if(c.isStack&&(yr.stack="stack"),yr.label={show:c.labelShow,fontSize:c.labelFontSize,position:c.labelPosition,color:c.labelColor,width:c.labelWidth,overflow:c.labelOverflow,formatter:br=>{let Sr="",gr=c.labelFormatter;gr===""&&(gr="{c}");const{seriesName:kr,name:wr,value:Er,data:Tr}=br||{};return Sr+=hn(gr,{textData:{name:wr,value:Er,a:kr,b:wr,c:Er||0,...Tr}},{useNewline:!0,useSpace:!0}),Sr}},yr.itemStyle={},ur&&(yr.itemStyle={color:{x:c.isUseHorizontalAxis?1:0,y:0,x2:0,y2:c.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:c.colors[pr]},{offset:or,color:hr[pr]},{offset:1,color:hr[pr]}]}}),mr){const br=mr.split(",");if(br!=null&&br.length){const Sr=[];for(const gr of br){const kr=parseFloat(gr);isNaN(kr)||Sr.push(kr)}yr.itemStyle.borderRadius=Sr}}c.isShowMarkLine&&(yr.markLine={data:[{type:c.markLineType}]}),vr.push(yr)}return vr}),w=vue.ref([]),vn=vue.ref(!1),gn=vue.computed(()=>{const ur=c.yAxisLabelFormatter,hr=c.xAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(d)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,feature:{myLocation:{show:m.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(){g.value=!0;const or=v.value.chart.getOption(),{xAxis:mr}=or||{};mr&&mr.length&&(x.value=mr[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:m.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;m.value=!0,(or=_.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 mr=or.length;let dr="",fr=c.tooltipFormatter;re=(vr=or[0])==null?void 0:vr.data,fr===""&&(fr="{marker} {a} {c}");for(let pr=0;pr<mr;pr++){const{marker:yr,seriesName:br,name:Sr,value:gr,data:kr}=or[pr]||{};if(pr===0){let wr=Sr;typeof Sr=="string"&&Sr[0]==="0"&&!isNaN(+Sr)&&(wr=(+Sr).toString()),dr+=`${In(hr,wr)}<br/>`}dr+=hn(fr,{textData:{marker:yr,name:Sr,value:gr,a:br,b:Sr,c:kr.sourceValue||gr||0,...kr}},{useNewline:!0,useSpace:!0}),dr+="<br/>"}return dr},textStyle:{color:c.tooltipTextStyleColor,fontSize:Rn.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:(m.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:m.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(b).map((or,mr)=>({name:or.name,itemStyle:{color:c.colors[mr]},icon:c.legendType})),formatter:or=>getLegendFormat(c.legendFormatter,{name:or})},xAxis:{type:c.isUseHorizontalAxis?"value":"category",data:c.isUseHorizontalAxis?null:vue.unref(Wn),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()),In(hr,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(w):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 In(ur,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(Bn)}}),Fn=()=>{m.value=!1},zn=(ur=[],hr=!1)=>{var mr,dr,fr;let or={};if(c.dataFieldConfigType==="key"){const vr=hr?c.keyTypeDataFieldNames:null;or=Dn(ur,vr)}else if(c.dataFieldConfigType==="value"){const vr=hr?c.valueTypeDataFieldNames:null;or=En(ur,vr)}if(b.value=or.dataset,(mr=vue.unref(b))!=null&&mr.length){for(const vr of vue.unref(b))if((dr=vr==null?void 0:vr.data)!=null&&dr.length)for(const pr of vr.data)pr.sourceValue=pr.value,pr.value=parseFloat(pr.value)}w.value=or.dimensions,(fr=or.dataset)!=null&&fr.length||(f.value=!0)},Un=(ur=[],hr,or=!1)=>{var fr;const dr=Dn(ur,or?hr:null,!0);c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(p),getGlobalModel:Hn},dr),b.value=dr.dataset,w.value=dr.dimensions,(fr=dr.dataset)!=null&&fr.length||(f.value=!0)},Wn=vue.computed(()=>vue.unref(w).map(ur=>{let hr={};return ur&&typeof ur=="object"?hr={...ur}:hr={value:ur},hr}));vue.watch(()=>[c.data,c.labelFormatter,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([ur])=>{(c.dataType==="static"||vue.unref(h)==="design")&&zn(ur)},{immediate:!0,deep:!0});const tr=useRequestData(c),Yn=async()=>{var ur,hr;try{vn.value=!0;const or=await tr();zn((hr=(ur=or==null?void 0:or.data)==null?void 0:ur.data)==null?void 0:hr.rows,!0)}catch(or){console.error(or)}finally{vn.value=!1}},Xn=ur=>{var dr;const{columns:hr=[],rows:or=[]}=((dr=ur==null?void 0:ur.data)==null?void 0:dr.data)??{};let mr;hr.length>0&&(mr={name:hr[0],types:hr.slice(1).map(fr=>({label:fr,value:fr}))}),Un(or,mr,!0)},Jn=useIndicatorData(c,ur=>{c.isViewRedrawing&&v.value.clear(),Xn(ur)}),ir=async()=>{try{vn.value=!0;const ur=await Jn();Xn(ur)}catch(ur){console.error(ur)}finally{vn.value=!1}},{loadedData:sr}=vue.inject(LOADED_DATA,{loadedData:{}}),Zn=vue.ref(!1);vue.watch(sr,ur=>{if(c.dataType==="indicator"){const hr=getFixedValueDatas(c.graphicConfig);hr!=null&&hr.length&&(!vue.unref(Zn)&&canRequestIndicator(c.graphicConfig,ur)?(Zn.value=!0,Gn()):canRequestIndicator(c.graphicConfig,ur)||(Zn.value=!1))}},{deep:!0});const Gn=()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(sr))&&ir();break;case"request":Yn();break}},Kn=(ur,hr)=>!!vue.unref(x)[hr.value].value.includes(ur),Vn=async()=>{g.value=!1;const ur=v.value.chart.getOption();for(let hr=0;hr<7;hr++)await qn(ur,hr)},qn=(ur,hr)=>new Promise(or=>{setTimeout(()=>{const{series:mr,color:dr,xAxis:fr}=ur,vr=v.value.chart,{splitArea:pr={}}=fr[0]||{};mr.forEach((yr,br)=>{const Sr=yr.data;let gr="";hr%2?gr=dr[br]+"a8":gr=dr[br],Sr[y.value].itemStyle={color:gr}}),hr%2?(pr.show=!0,pr.areaStyle.color=vue.unref(x).map((yr,br)=>br===y.value?"#ff003b26":"")):pr.show=!1,vr.setOption({series:mr,xAxis:fr}),or()},200)});u({refreshData:Gn});const nr=useEmitEvent(c),{getGlobalModel:Hn,setGlobalModel:lr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ur=>{},setGlobalModel:(ur,hr)=>{}});lr(c.id,{type:c.type,RECORD:""});const cr=nr("click",ur=>{const hr=Hn(c.id);lr(c.id,{...hr,type:c.type,RECORD:c.tooltipShow?re:ur.data})}),{setRequest:Qn}=vue.inject(REQUEST_MODEL,{setRequest:ur=>{}});typeof Qn=="function"&&Qn({id:c.id,requestFn:Gn,sortNum:c.requestSort});const ar=()=>{const ur=c.id,hr=Hn(ur);lr(ur,{...hr,RECORD:""})},er=ur=>{v.value.chart.containPixel("grid",[ur.offsetX,ur.offsetY])&&cr()};return c.tooltipShow?J.value["zr:click"]=er:J.value.click=cr,useOnEvent(c,{refreshData:Gn,click:cr,resetRecord:ar}),{option:gn,style:Pn,refreshData:Gn,click:cr,loading:vn,onClose:Fn,ecanModal:_,echartRef:v,handleLocationOk:Vn,onFilterOption:Kn,locationVisible:g,locationValue:y,locationNames:x,eventObj:J,emptyData:f}}}),Bar_vue_vue_type_style_index_0_lang="",Bar_vue_vue_type_style_index_1_scoped_41271cbc_lang="",_withScopeId$3=c=>(vue.pushScopeId("data-v-41271cbc"),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,p){const v=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(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(v,vue.mergeProps({key:1,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(v,{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,_)=>(vue.openBlock(),vue.createBlock(y,{key:_,value:_},{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-41271cbc"]]),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,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},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 f=vue.ref(!1),{pageMode:h,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),p=vue.ref(),v=vue.ref(!1),m=usePickComponentStyle(c),g=vue.ref([]),y=vue.ref(),x=vue.computed(()=>v.value?ZOOM_FONT_SIZE:12),Pn=vue.ref(),b=vue.ref(),_=vue.ref(),J=vue.ref(),re=vue.inject("componentList",[]),{loadedData:Rn}=vue.inject(LOADED_DATA,{loadedData:{}}),Bn=vue.ref({}),w=vue.computed(()=>{const{xAxisMarkLineValue:Qn=[],yAxisMarkLineValue:ar=[]}=c,er=Qn.concat(ar),ur=[];for(const hr of er){let or=hr.value;const mr=or.match(/\{(.+?)\}/g);if(mr!=null&&mr.length){for(const fr of mr)or=or.replace(fr,fr.slice(1,-1));const dr=vue.unref(re).find(fr=>fr.keyName===or);dr!=null&&dr.id&&!ur.find(fr=>fr.keyName===or)&&ur.push({componentId:dr.id,keyName:dr.keyName})}}return ur});vue.watch(Rn,Qn=>{var ar;if((ar=vue.unref(w))!=null&&ar.length)for(const er of vue.unref(w)){const{componentId:ur,keyName:hr}=er;if(Qn[ur]){const or=Un(ur);Bn.value[hr]=or.value}else delete Bn.value[hr]}},{deep:!0});const vn=vue.computed(()=>{const{xAxisMarkLineValue:Qn=[],yAxisMarkLineValue:ar=[]}=c,er=Qn.map(or=>({...or,x:!0})),ur=ar.map(or=>({...or,y:!0})),hr=er.concat(ur);if(hr!=null&&hr.length){const or=[];for(const mr of hr){const dr={label:{show:!0,formatter:"",rich:{ft:{}}}},fr={};let vr=mr.value;const pr=vr.match(/\{(.+?)\}/g);let yr="";if(dr.label.formatter=mr.label?`{ft|${mr.label}}`:"",(mr.offsetHorizontal||mr.offsetVertical)&&(mr.x?dr.label.rich.ft.padding=[0,mr.offsetHorizontal||0,mr.offsetVertical||0,0]:mr.y&&(dr.label.rich.ft.padding=[mr.offsetVertical||0,0,0,mr.offsetHorizontal||0])),mr.labelColor&&(dr.label.rich.ft.color=mr.labelColor),mr.lineColor&&(fr.color=mr.lineColor),mr.x?yr="xAxis":mr.y&&(yr="yAxis"),pr!=null&&pr.length){for(const br of pr)vr=vr.replace(br,br.slice(1,-1));if(vr){let br;Bn.value[vr]?br=vue.unref(Bn)[vr]:br=pn(vr,{max:mr.x?vue.unref(Pn):mr.y?vue.unref(_):0,min:mr.x?vue.unref(b):mr.y?vue.unref(J):0}),isNaN(+br)||or.push({[yr]:+br,lineStyle:fr,...dr})}}else isNaN(+mr.value)||or.push({[yr]:mr.value,lineStyle:fr,...dr})}return{symbol:["none","none"],data:or}}else return{data:[]}});function gn(Qn,ar,er){switch(ar){case"startX":Qn[0].coord[0]=+er;break;case"startY":Qn[0].coord[1]=+er;break;case"endX":Qn[1].coord[0]=+er;break;case"endY":Qn[1].coord[1]=+er;break}}const Fn=vue.computed(()=>{const{axisMarkArea:Qn=[]}=c;if(Qn!=null&&Qn.length){const ar=[];for(const er of Qn){const ur=[{name:"",coord:[],itemStyle:{color:er.color}},{coord:[]}];for(const hr in er)if(hr!=="color"){let or=er[hr];const mr=or.match(/\{(.+?)\}/g);if(mr!=null&&mr.length){for(const dr of mr)or=or.replace(dr,dr.slice(1,-1));if(or){const dr=pn(or,{xMax:vue.unref(Pn),xMin:vue.unref(b),yMax:vue.unref(_),yMin:vue.unref(J)});isNaN(+dr)||gn(ur,hr,dr)}}else isNaN(+er[hr])||gn(ur,hr,er[hr])}ur.every(hr=>{var or;return(or=hr.coord)==null?void 0:or.length})&&ar.push(ur)}return{data:ar}}else return{data:[]}}),zn=vue.computed(()=>{const Qn=c.xAxisLabelFormatter,ar=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(d)},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 er;v.value=!0,(er=y.value)==null||er.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(er){return typeof er=="string"&&er[0]==="0"&&!isNaN(+er)&&(er=(+er).toString()),In(Qn,er)}},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(er){return In(ar,er)}},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(er){var vr;const{marker:ur,seriesName:hr,componentType:or}=er,mr=((vr=er==null?void 0:er.data)==null?void 0:vr.record)??{},dr=mr[vue.unref(Yn).name],fr=mr[vue.unref(Yn).value];return["markLine","markArea"].includes(or)?"":hn(c.tooltipFormatter,{textData:{marker:ur,seriesName:hr,a:hr,b:dr,c:fr,...mr}},{useNewline:!0,useSpace:!0})},axisPointer:{type:c.crossShow||c.crossShow===void 0?"cross":""},textStyle:{fontSize:x.value},position:c.tooltipPosition||void 0},legend:{show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{color:c.legendTextStyleColor,fontSize:x.value}},series:[{data:vue.unref(g),type:"scatter",symbolSize:c.symbolSize,itemStyle:{color:c.symbolColor},markLine:vn.value,markArea:Fn.value}]}}),{getGlobalModel:Un,setGlobalModel:Wn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Qn=>{},setGlobalModel:(Qn,ar)=>{}}),tr=()=>{var er,ur;const Qn=(er=vue.unref(p))==null?void 0:er.chart.getModel().getComponent("yAxis").axis.scale._extent,ar=(ur=vue.unref(p))==null?void 0:ur.chart.getModel().getComponent("xAxis").axis.scale._extent;ar&&Qn&&(b.value=ar[0],Pn.value=ar[1],J.value=Qn[0],_.value=Qn[1])},Yn=vue.computed(()=>{let Qn=c.dataFieldNames;if(c.dataType==="indicator"){const{formFields:ar={}}=c.graphicConfig;ar!=null&&ar.labelField&&(ar!=null&&ar.valueField)&&(Qn={name:ar.labelField,value:ar.valueField})}return Qn}),Xn=(Qn=[])=>{var ur;const{name:ar="name",value:er="value"}=vue.unref(Yn)||{};g.value=Qn.map(hr=>({value:[hr[ar],hr[er]],record:hr})),setTimeout(()=>{tr()},0),(ur=g.value)!=null&&ur.length||(f.value=!0)};vue.watch(()=>c.data,Qn=>{(c.dataType==="static"||vue.unref(h)==="design")&&Xn(Qn)},{immediate:!0,deep:!0});const Jn=vue.ref(!1),ir=useRequestData(c),sr=async()=>{var Qn,ar;if(c.dataType==="request"){Jn.value=!0;try{const er=await ir();Xn((ar=(Qn=er==null?void 0:er.data)==null?void 0:Qn.data)==null?void 0:ar.rows)}catch(er){console.error(er)}finally{Jn.value=!1}}},Zn=()=>{v.value=!1},Gn=useEmitEvent(c);Wn(c.id,{type:c.type,RECORD:""});const Kn=Gn("click",Qn=>{const ar=c.id,er=Un(ar);Wn(ar,{...er,type:c.type,RECORD:Qn==null?void 0:Qn.data})}),Vn=Qn=>{var ar,er;Xn((er=(ar=Qn==null?void 0:Qn.data)==null?void 0:ar.data)==null?void 0:er.rows)},qn=useIndicatorData(c,Qn=>{c.isViewRedrawing&&p.value.clear(),Vn(Qn)}),nr=async()=>{try{Jn.value=!0;const Qn=await qn();Vn(Qn)}catch(Qn){console.error(Qn)}finally{Jn.value=!1}},Hn=()=>{switch(c.dataType){case"indicator":nr();break;case"request":sr();break}};useOnEvent(c,{refreshData:Hn,click:Kn,resetRecord:()=>{const Qn=c.id,ar=Un(Qn);Wn(Qn,{...ar,RECORD:""})}});const{setRequest:cr}=vue.inject(REQUEST_MODEL,{setRequest:Qn=>{}});return typeof cr=="function"&&cr({id:c.id,requestFn:Hn,sortNum:c.requestSort}),u({refreshData:Hn}),{option:zn,style:m,click:Kn,loading:Jn,onClose:Zn,ecanModal:y,echartRef:p,emptyData:f}}}),Scatter_vue_vue_type_style_index_0_lang="",Scatter_vue_vue_type_style_index_1_scoped_f8d34c14_lang="";function _sfc_render$e(c,u,f,h,d,p){const v=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(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(v,{key:1,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(v,{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],["__scopeId","data-v-f8d34c14"]]),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,p){const v=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{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,yAxisLeftUnitAdapt:!1,yAxisRightUnitAdapt:!1,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},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 f=vue.ref(!1),{pageMode:h,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),p=vue.inject("usedComponentList",[]),{getGlobalModel:v,setGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:fr=>{},setGlobalModel:(fr,vr)=>{}}),g=vue.ref(),y=vue.ref(!1),x=vue.ref(!1),Pn=vue.ref(null),b=vue.ref([]),_=vue.ref({});let J;const re=usePickComponentStyle(c),Rn=vue.ref([]),Bn=vue.ref([]),w=vue.ref(),vn=vue.ref([]),gn=vue.ref([0,0]),Fn=vue.computed(()=>y.value?ZOOM_FONT_SIZE:12),zn=vue.computed(()=>({textStyle:{fontFamily:vue.unref(d)},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:y.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(){x.value=!0;const fr=g.value.chart.getOption(),{xAxis:vr}=fr||{};vr&&vr.length&&(b.value=vr[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:y.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 fr;y.value=!0,(fr=w.value)==null||fr.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:(y.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:y.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(vn).map((fr,vr)=>({name:fr.name,itemStyle:{color:c.colors[vr]},icon:c.legendType})),formatter:fr=>getLegendFormat(c.legendFormatter,{name:fr})},tooltip:{trigger:"axis",show:c.tooltipShow,formatter:fr=>{var Sr;const vr=fr.length;let pr="",yr=c.tooltipFormatter;J=(Sr=fr[0])==null?void 0:Sr.data,yr===""&&(yr="{marker} {a} {c}");const br=c.seriesTypes;for(let gr=0;gr<vr;gr++){const kr=br[gr],{tooltipFormatter:wr}=kr||{},{marker:Er,seriesName:Tr,name:_r,value:Mr,data:Or}=fr[gr]||{};if(gr===0){let Rr=_r;typeof _r=="string"&&_r[0]==="0"&&!isNaN(+_r)&&(Rr=(+_r).toString()),pr+=`${In(c.xAxisLabelFormatter,Rr)}<br/>`}pr+=hn(wr||yr,{textData:{marker:Er,name:_r,value:Mr,seriesName:Tr,a:Tr,b:_r,c:Mr||0,...Or}},{useNewline:!0,useSpace:!0}),pr+="<br/>"}return pr},textStyle:{color:c.tooltipTextStyleColor,fontSize:Fn.value},position:c.tooltipPosition||void 0},xAxis:{minInterval:c.xAxisMinInterval,type:"category",data:vue.unref(Bn).map(fr=>{let vr={};return fr&&typeof fr=="object"?vr={...fr}:vr={value:fr},vr}),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(fr){return typeof fr=="string"&&fr[0]==="0"&&!isNaN(+fr)&&(fr=(+fr).toString()),In(c.xAxisLabelFormatter,fr)}},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(ir),series:vue.unref(Rn)})),Un=()=>{y.value=!1},Wn=fr=>{const vr=[];let pr=0;return c.seriesTypes.forEach((yr,br)=>{var Sr,gr;yr.axisIndex===fr&&((gr=(Sr=vue.unref(vn)[br])==null?void 0:Sr.data)!=null&&gr.length)&&vr.push(...vue.unref(vn)[br].data.map(kr=>+kr.value))}),vr.some(yr=>yr>=1e7)?pr=4:vr.some(yr=>yr>=1e6)?pr=3:vr.some(yr=>yr>=1e4)&&(pr=1),pr},tr=()=>{gn.value[0]=c.yAxisLeftUnitAdapt?Wn(0):0,gn.value[1]=c.yAxisRightUnitAdapt?Wn(1):0},Yn=(fr=[],vr=!1)=>{var br;let pr;if(c.dataFieldConfigType==="key"){const Sr=vr?c.keyTypeDataFieldNames:null;pr=Dn(fr,Sr,!0)}else if(c.dataFieldConfigType==="value"){const Sr=vr?c.valueTypeDataFieldNames:null;pr=En(fr,Sr)}Bn.value=pr.dimensions;const yr=pr.dataset;vn.value=pr.dataset,Rn.value=Jn(yr),tr(),(br=pr.dataset)!=null&&br.length||(f.value=!0)},Xn=(fr=[],vr,pr=!1)=>{var gr;const br=Dn(fr,pr?vr:null,!0);c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(p),getGlobalModel:v},br),Bn.value=br.dimensions;const Sr=br.dataset;vn.value=br.dataset,Rn.value=Jn(Sr),tr(),(gr=br.dataset)!=null&&gr.length||(f.value=!0)};function Jn(fr){const vr=[],pr=fr.length,yr=c.seriesTypes;for(let br=0;br<pr;br++){const Sr=yr[br],{type:gr,axisIndex:kr}=Sr||{};let wr={type:gr,yAxisIndex:kr,...fr[br]};if(gr==="line"){const Er={};c.shadowColor&&(Er.shadowColor=c.shadowColor,Er.shadowBlur=c.shadowBlur,Er.shadowOffsetY=c.shadowOffsetY,Er.shadowOffsetX=c.shadowOffsetX),wr={...wr,symbolSize:c.symbolSize,smooth:c.smooth,itemStyle:{color:c.colors[br]},areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[br]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[br],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Er}}}if(gr==="bar"){const{gradientShow:Er,gradientColors:Tr,gradientOffset:_r}=c,Mr={color:c.colors[br]};if(c.barBorderRadius){const Or=c.barBorderRadius.split(",");if(Or!=null&&Or.length){const Rr=[];for(const Lr of Or){const jr=parseFloat(Lr);isNaN(jr)||Rr.push(jr)}Mr.borderRadius=Rr}}Er&&(Mr.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[br]},{offset:_r,color:Tr[br]},{offset:1,color:Tr[br]}]}),wr={...wr,barWidth:c.barWidth.value+c.barWidth.suffix,itemStyle:Mr}}c.isShowMarkLine&&(wr.markLine={data:[{type:c.markLineType}]}),vr.push(wr)}return vr}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,c.yAxisLeftUnitAdapt,c.yAxisRightUnitAdapt],([fr])=>{(c.dataType==="static"||vue.unref(h)==="design")&&Yn(fr)},{immediate:!0,deep:!0});const ir=vue.computed(()=>{const fr=c.yAxis;return fr==null?void 0:fr.map((vr,pr)=>{const yr=gn.value[pr];let br;return yr&&(br=1e4*Math.pow(10,yr-1)),{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:pr===0?c.yAxisLeftSplitLineShow:c.yAxisRightSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:pr===0?c.yAxisLeftSplitLineType:c.yAxisRightSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(Sr){let gr=Sr;return br&&(gr=(+Sr/br).toString()),In(vr.axisLabelFormatter,gr)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:sr(yr)+(pr===0?c.yAxisLeftName:c.yAxisRightName),nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:pr===0?"right":"left"},max:c.yAxisMaxValue||null}})});function sr(fr){let vr="";switch(fr){case 1:vr="万";break;case 3:vr="百万";break;case 4:vr="千万";break}return vr}const Zn=vue.ref(!1),Gn=useRequestData(c),Kn=async()=>{var fr,vr;if(c.dataType==="request")try{Zn.value=!0;const pr=await Gn();Yn((vr=(fr=pr==null?void 0:pr.data)==null?void 0:fr.data)==null?void 0:vr.rows,!0)}catch(pr){console.error(pr)}finally{Zn.value=!1}},Vn=fr=>{var br;const{columns:vr=[],rows:pr=[]}=((br=fr==null?void 0:fr.data)==null?void 0:br.data)??{};let yr;vr.length>0&&(yr={name:vr[0],types:vr.slice(1).map(Sr=>({label:Sr,value:Sr}))}),Xn(pr,yr,!0)},qn=useIndicatorData(c,fr=>{c.isViewRedrawing&&g.value.clear(),Vn(fr)}),nr=async()=>{try{Zn.value=!0;const fr=await qn();Vn(fr)}catch(fr){console.error(fr)}finally{Zn.value=!1}},{loadedData:Hn}=vue.inject(LOADED_DATA,{loadedData:{}}),lr=vue.ref(!1);vue.watch(Hn,fr=>{if(c.dataType==="indicator"){const vr=getFixedValueDatas(c.graphicConfig);vr!=null&&vr.length&&(!vue.unref(lr)&&canRequestIndicator(c.graphicConfig,fr)?(lr.value=!0,cr()):canRequestIndicator(c.graphicConfig,fr)||(lr.value=!1))}},{deep:!0});const cr=()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(Hn))&&nr();break;case"request":Kn();break}},Qn=(fr,vr)=>!!vue.unref(b)[vr.value].value.includes(fr),ar=async()=>{x.value=!1;const fr=g.value.chart.getOption();for(let vr=0;vr<7;vr++)await er(fr,vr)},er=(fr,vr)=>new Promise(pr=>{setTimeout(()=>{const{series:yr,color:br,xAxis:Sr}=fr,gr=g.value.chart,{splitArea:kr={}}=Sr[0]||{};yr.forEach((wr,Er)=>{const Tr=wr.data;let _r="";vr%2?_r=br[Er]+"a8":_r=br[Er],Tr[Pn.value].itemStyle={color:_r}}),vr%2?(kr.show=!0,kr.areaStyle.color=vue.unref(b).map((wr,Er)=>Er===Pn.value?"#ff003b26":"")):kr.show=!1,gr.setOption({series:yr,xAxis:Sr}),pr()},200)});u({refreshData:cr});const ur=useEmitEvent(c);m(c.id,{type:c.type,RECORD:""});const hr=ur("click",fr=>{const vr=v(c.id);m(c.id,{...vr,type:c.type,RECORD:c.tooltipShow?J:fr==null?void 0:fr.data})}),or=fr=>{g.value.chart.containPixel("grid",[fr.offsetX,fr.offsetY])&&hr()};c.tooltipShow?_.value["zr:click"]=or:_.value.click=hr;const{setRequest:mr}=vue.inject(REQUEST_MODEL,{setRequest:fr=>{}});return typeof mr=="function"&&mr({id:c.id,requestFn:cr,sortNum:c.requestSort}),useOnEvent(c,{resetRecord:()=>{const fr=c.id,vr=v(fr);m(fr,{...vr,RECORD:""})},refreshData:cr,click:hr}),{style:re,option:zn,click:hr,loading:Zn,onClose:Un,ecanModal:w,echartRef:g,handleLocationOk:ar,onFilterOption:Qn,locationVisible:x,locationValue:Pn,locationNames:b,eventObj:_,emptyData:f}}}),ComboGraph_vue_vue_type_style_index_0_lang="",ComboGraph_vue_vue_type_style_index_1_scoped_833c976a_lang="",_withScopeId$2=c=>(vue.pushScopeId("data-v-833c976a"),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,p){const v=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(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(v,vue.mergeProps({key:1,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(v,{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,_)=>(vue.openBlock(),vue.createBlock(y,{key:_,value:_},{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-833c976a"]]),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(),p=vue.ref(!1),v=usePickComponentStyle(c),m=vue.ref([]),g=vue.ref(),y=vue.computed(()=>p.value?ZOOM_FONT_SIZE:12),x=vue.ref([]),Pn=vue.ref(c.valueTypeDataFieldNames.name),b=vue.computed(()=>{const Zn=vue.unref(x),Gn=Zn.length,Kn=[];for(let Vn=0;Vn<Gn;Vn++){const{name:qn,data:nr=[]}=Zn[Vn],Hn=[{name:qn,value:nr.map(Qn=>Qn.value)}];let lr=c.colors[Vn];if(c.gradientShow){const{gradientOffset:Qn,gradientColors:ar}=c;lr={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:c.colors[Vn]},{offset:Qn,color:ar[Vn]},{offset:1,color:ar[Vn]}]}}const cr={type:"radar",name:qn,data:Hn,areaStyle:{color:lr,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:Qn=>{const{data:ar,value:er}=Qn;let ur=0,hr="0%";if(ar)for(const or of ar.value)ur+=+or;return ur&&(hr=`${(er/ur*100).toFixed(2)}%`),hn(c.labelFormatter,{textData:{value:er,percent:hr}},{useNewline:!1,useSpace:!1})}}};Kn.push(cr)}return Kn}),_=vue.computed(()=>{var qn;const Zn=[],Gn=[],Kn=vue.unref(x),Vn=Kn.length;for(let nr=0;nr<Vn;nr++){const{data:Hn=[]}=Kn[nr];for(let lr=0;lr<Hn.length;lr++)Gn.push(Hn[lr].value)}if((qn=m.value)!=null&&qn.length){const nr=Gn!=null&&Gn.length?Math.max(...Gn)*1.2:0;for(const Hn of m.value)Zn.push({name:Hn,max:nr})}return Zn}),J=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: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 Zn;p.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 Gn="",Kn=c.tooltipFormatter;Kn===""&&(Kn="{marker} {a} {c}");for(let Vn=0;Vn<vue.unref(_).length;Vn++){const qn=vue.unref(_)[Vn],{marker:nr,seriesName:Hn,value:lr}=Zn||{};Vn===0&&Hn&&(Gn+=`${Hn}<br/>`),Gn+=hn(Kn,{textData:{marker:nr,name:qn.name,value:lr[Vn],a:qn.name,b:qn.name,c:lr[Vn]||0,type:Hn}},{useNewline:!0,useSpace:!0}),Gn+="<br/>"}return Gn},position:c.tooltipPosition||void 0},radar:{indicator:vue.unref(_),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:(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(x).map(Zn=>({name:Zn.name,icon:c.legendType})),formatter:Zn=>getLegendFormat(c.legendFormatter,{name:Zn})},series:vue.unref(b)})),re=()=>{p.value=!1},{getGlobalModel:Rn,setGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Zn=>{},setGlobalModel:(Zn,Gn)=>{}}),w=(Zn=[],Gn=!1)=>{let Kn;if(c.dataFieldConfigType==="key"){const Vn=Gn?c.keyTypeDataFieldNames:null;Kn=Dn(Zn,Vn)}else if(c.dataFieldConfigType==="value"){const Vn=Gn?c.valueTypeDataFieldNames:null;Kn=En(Zn,Vn)}m.value=Kn.dimensions,x.value=Kn.dataset},vn=(Zn=[],Gn,Kn=!1)=>{const qn=Dn(Zn,Kn?Gn:null,!0);m.value=qn.dimensions,x.value=qn.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 gn=vue.ref(!1),Fn=useRequestData(c),zn=async()=>{var Zn,Gn;if(c.dataType==="request")try{gn.value=!0;const Kn=await Fn();w((Gn=(Zn=Kn==null?void 0:Kn.data)==null?void 0:Zn.data)==null?void 0:Gn.rows,!0)}catch(Kn){console.error(Kn)}finally{gn.value=!1}},Un=useEmitEvent(c);Bn(c.id,{type:c.type,RECORD:""});const Wn=Zn=>{const Gn=Zn.event.topTarget.__dimIdx;Gn!==void 0&&Un("click",()=>{var nr;const{value:Kn,name:Vn}=Zn.data||{},qn=Rn(c.id);Bn(c.id,{...qn,type:c.type,RECORD:{[vue.unref(Pn)]:((nr=vue.unref(_)[Gn])==null?void 0:nr.name)||"",[Vn]:Kn[Gn],seriesName:Vn}})})()},tr=Zn=>{var qn;const{columns:Gn=[],rows:Kn=[]}=((qn=Zn==null?void 0:Zn.data)==null?void 0:qn.data)??{};let Vn;Gn.length>0&&(Pn.value=Gn[0],Vn={name:Gn[0],types:Gn.slice(1).map(nr=>({label:nr,value:nr}))}),vn(Kn,Vn,!0)},Yn=useIndicatorData(c,Zn=>{c.isViewRedrawing&&d.value.clear(),tr(Zn)}),Xn=async()=>{try{gn.value=!0;const Zn=await Yn();tr(Zn)}catch(Zn){console.error(Zn)}finally{gn.value=!1}},Jn=()=>{switch(c.dataType){case"indicator":Xn();break;case"request":zn();break}};useOnEvent(c,{refreshData:Jn,resetRecord:()=>{const Zn=c.id,Gn=Rn(Zn);Bn(Zn,{...Gn,RECORD:""})},click:Wn});const{setRequest:sr}=vue.inject(REQUEST_MODEL,{setRequest:Zn=>{}});return typeof sr=="function"&&sr({id:c.id,requestFn:Jn,sortNum:c.requestSort}),u({refreshData:Jn}),{option:J,style:v,click:Wn,loading:gn,onClose:re,ecanModal:g,echartRef:d}}}),Radar_vue_vue_type_style_index_0_lang="";function _sfc_render$b(c,u,f,h,d,p){const v=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(v,{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(v,{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,color:"",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:J,gradientShow:re,gradientColor:Rn,gradientOffset:Bn,gradientAngle:w,backgroundColor:vn}=c;if(re){let gn=Rn;return J&&(gn="transparent"),gn?{background:`linear-gradient(${w}, ${vn}, ${gn} ${Bn*100}%)`}:{}}else return{}}),h=vue.computed(()=>{const{events:J}=c;let re={};return J!=null&&J.length&&J.find(Bn=>Bn.emit==="showModal")&&(re={cursor:"pointer"}),re}),{theme:d}=vue.inject(GLOBAL_CONFIG,{theme:"light"}),p=vue.computed(()=>{let J="";switch(c.titleMode){case"type-2":J="2";break}return J}),v=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${p.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${p.value}.png`],self.location).href),g=vue.computed(()=>({width:"100%",height:"100%"})),y=vue.computed(()=>{const{borderRadius:J}=c,re=[],Rn={};if(J){const Bn=J.split(",");for(const w of Bn)(+w||+w==0)&&re.push(+w+"px")}return re!=null&&re.length&&(Rn.borderRadius=re.join(" ")),Rn}),Pn=useEmitEvent(c)("click",()=>{}),b=vue.ref([]);vue.watch(()=>c.data,J=>{b.value=J},{immediate:!0,deep:!0}),useOnEvent(c,{click:Pn});const{setGlobalModel:_}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(J,re)=>{}});return _(c.id,{type:c.type,value:b}),{style:u,gradientStyle:f,click:Pn,borderStyle:g,theme:d,borderRadiusStyle:y,titleLeftIcon:v,titleRightIcon:m,cursorStyle:h}}}),Border_vue_vue_type_style_index_0_scoped_d49a39d2_lang="",_withScopeId$1=c=>(vue.pushScopeId("data-v-d49a39d2"),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=["src"],_hoisted_9$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-left border-item"},null,-1)),_hoisted_10$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-right border-item"},null,-1)),_hoisted_11$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),_hoisted_12$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),_hoisted_13$1={key:2,class:"left-title"},_hoisted_14$1={class:"title"};function _sfc_render$a(c,u,f,h,d,p){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]=(...v)=>c.click&&c.click(...v)),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",{class:vue.normalizeClass(["title",c.color?"":"gradient"]),style:vue.normalizeStyle({color:c.color||""})},vue.toDisplayString(c.title),7),vue.createElementVNode("img",{class:vue.normalizeClass(["title-decoration",c.titleMode]),src:c.titleRightIcon},null,10,_hoisted_8$1)])],2),_hoisted_9$1,_hoisted_10$1,_hoisted_11$1,_hoisted_12$1],4)):vue.createCommentVNode("",!0),c.mode==="left-title"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_13$1,[vue.createElementVNode("div",_hoisted_14$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-d49a39d2"]]),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,Wn=>{f.value=Wn},{immediate:!0});const{pageMode:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),d=vue.inject("getContainerMap",()=>{}),p=vue.inject("componentList",[]),v=["ecanBorder","ecanTabs","ecanCirculate"],m=vue.computed(()=>d()||{}),g=Wn=>{const tr=vue.unref(m)[Wn],Yn=[];if(tr)for(const Xn in tr)for(const Jn of tr[Xn]){const ir=vue.unref(p).find(sr=>sr.id===Jn);Yn.push(Jn),v.includes(ir==null?void 0:ir.type)&&Yn.push(...g(Jn))}return Yn},y=vue.computed(()=>g(c.id));let x=null;const Pn=()=>{const Wn=Array.isArray(vue.unref(_))?vue.unref(_).length-1:0;vue.unref(h)!=="design"&&!c.isAutoScroll&&c.autoSwitch&&Wn>0&&(x=setInterval(()=>{const tr=vue.unref(f)+1;tr<=Wn?f.value=tr:f.value=0,J.value=vue.unref(_)[vue.unref(f)],w()},c.autoSwitchInterval*1e3))},b=()=>{clearInterval(x)};vue.onMounted(()=>{vue.unref(h)!=="design"&&Pn()}),vue.onBeforeUnmount(()=>{Bn(c.id,{activeKey:c.activeKey}),w(),b()});const _=vue.ref([]),J=vue.ref({});vue.watch(()=>c.data,Wn=>{_.value=Wn,J.value=Array.isArray(Wn)&&Wn.length>0?Wn[0]:{}},{immediate:!0,deep:!0});const re=Wn=>f.value===Wn,Rn=useEmitEvent(c),{setGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(Wn,tr)=>{}});Bn(c.id,{RECORD:vue.unref(J),value:vue.unref(J),activeKey:f});const{emitRefreshPage:w}=vue.inject(REFRESH_PAGE,{emitRefreshPage:()=>{}}),vn=Wn=>{let{tab:tr,index:Yn}=Wn||{};if(Wn.label){const Xn=vue.unref(_).findIndex(Jn=>Jn.title===Wn.label);Xn!==-1&&(Yn=Xn,tr=vue.unref(_)[Xn])}Rn("tabChange",()=>{!isNaN(+Yn)&&Yn!==vue.unref(f)&&(J.value=tr,f.value=Yn,Bn(c.id,{RECORD:tr,value:tr,activeKey:Yn}),w())})()},gn=vue.computed(()=>{const Wn=c.componentList.map(tr=>parseFloat(tr.left)+parseFloat(tr.width)).sort((tr,Yn)=>Yn-tr)[0];return{width:Wn?Wn+"px":"100%"}}),Fn=()=>{vue.unref(h)!=="design"&&b()},zn=Wn=>{var tr,Yn;return Wn?(Yn=(tr=Wn==null?void 0:Wn.parentNode)==null?void 0:tr.className)!=null&&Yn.includes("ecan-")?Wn.parentNode.getAttribute("cpntid"):zn(Wn.parentNode):""},Un=Wn=>{var tr;if(vue.unref(h)!=="design"){const Yn=(Wn==null?void 0:Wn.toElement)||{};if((tr=Yn==null?void 0:Yn.className)!=null&&tr.includes("ecan-"))vue.unref(y).includes(Yn.getAttribute("cpntid"))||Pn();else if((Yn==null?void 0:Yn.className)==="page-config")Pn();else{const Xn=zn(Yn);vue.unref(y).includes(Xn)||Pn()}}};return useOnEvent(c,{tabChange:vn}),{style:u,activeKey:f,isActive:re,tabChange:vn,myData:_,useImagePath,pageMode:h,scrollWrapStyle:gn,onMouseEnter:Fn,onMouseLeave:Un}}}),Tabs_vue_vue_type_style_index_0_scoped_0f61e67d_lang="",_hoisted_1$5=["id"],_hoisted_2$2=["onClick"];function _sfc_render$9(c,u,f,h,d,p){const v=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(v,{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-0f61e67d"]]),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",[]),p=vue.inject("isMobile",!1),{getGlobalModel:v,setGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Yn=>{},setGlobalModel:(Yn,Xn)=>{}}),g=vue.ref([]),y=vue.ref({}),{pageMode:x}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),Pn=vue.computed(()=>{if(vue.unref(p)){const Yn=document.body.clientWidth,Xn=c.sourceWidth||parseFloat(c.width);return Yn/Xn||1}else return 1});function b(Yn,Xn){const Jn=Xn.find(ir=>ir.id===c.id);if(Jn)for(const ir of Yn)ir.left=parseFloat(ir.left)-parseFloat(Jn.sourceLeft||Jn.left)+"px",ir.top=parseFloat(ir.top)-parseFloat(Jn.sourceTop||Jn.top)+"px"}const _=Yn=>{const Xn=Yn.sort((Zn,Gn)=>parseFloat(Zn.top)-parseFloat(Gn.top))[0],Jn=Yn.sort((Zn,Gn)=>parseFloat(Zn.left)-parseFloat(Gn.left))[0],ir=Yn.map(Zn=>parseFloat(Zn.left)+parseFloat(Zn.width)).sort((Zn,Gn)=>Gn-Zn)[0],sr=Yn.map(Zn=>parseFloat(Zn.top)+parseFloat(Zn.height)).sort((Zn,Gn)=>Gn-Zn)[0];if(Jn&&ir&&Xn&&sr){const Zn=parseFloat(Jn.left),Gn=parseFloat(Xn.top);return{width:ir-Zn,height:sr-Gn,left:Zn}}else return{width:0,height:0,left:0}},J=vue.ref({}),re=Yn=>{var Hn,lr;const Xn=[],{graphicConfig:Jn,id:ir,componentList:sr,keyFieldMap:Zn,unitInterval:Gn,colNum:Kn}=c;let Vn=lodashEs.cloneDeep(sr),qn=[];if((Hn=vue.unref(d))!=null&&Hn.length)for(const cr of vue.unref(d))qn.push(cr),(lr=cr==null?void 0:cr.componentList)!=null&&lr.length&&qn.push(...cr.componentList);if(Jn.pageMode==="design"&&Jn.preview){const{containerMap:cr}=Jn.pageConfig||{};qn=Jn.componentList||[],qn.push(c),Vn=moveToComponentList(cr,lodashEs.cloneDeep(qn),ir)}b(Vn,qn);const nr=_(Vn);if(Yn!=null&&Yn.length){const{width:cr,left:Qn,height:ar}=nr;let er=0,ur=0;Yn.forEach((hr,or)=>{hr.index=or+1;const mr=nanoid(),dr=lodashEs.cloneDeep(Vn);for(const fr of dr){const vr=Zn.find(yr=>yr.keyName===fr.keyName),pr=nanoid();if(fr.left=(parseFloat(fr.left)+er)*vue.unref(Pn)+"px",fr.top=(parseFloat(fr.top)+ur)*vue.unref(Pn)+"px",fr.scale=vue.unref(Pn),fr.id=pr,fr.keyName=fr.name+"_"+pr,fr.unitId=mr,vr!=null&&vr.fieldName){const yr=fr.text.match(/\{(.+?)\}/g);switch(fr.type){case"ecanText":{fr.data={value:String(hr[vr.fieldName])},yr!=null&&yr.length||(fr.text="{value}");break}case"ecanProportion":{fr.data={percent:String(hr[vr.fieldName])},yr!=null&&yr.length||(fr.text="{percent}");break}}}}Kn&&hr.index%Kn===0?(er=0,ur+=Gn+ar):er+=Gn+cr,Xn.push(...dr),J.value[mr]=hr}),y.value={width:((Kn||Yn.length)*(cr+Gn)+Qn)*vue.unref(Pn)+"px",height:(Kn?Math.ceil(Yn.length/Kn)*(Gn+ar):Gn+ar)*vue.unref(Pn)+"px"}}g.value=Xn},Rn=Yn=>{var Jn;const{rows:Xn=[]}=((Jn=Yn==null?void 0:Yn.data)==null?void 0:Jn.data)??{};re(Xn)},Bn=useIndicatorData(c,Rn),w=async()=>{try{f.value=!0;const Yn=await Bn();Rn(Yn)}catch(Yn){console.error(Yn)}finally{f.value=!1}},vn=useRequestData(c),gn=async()=>{try{f.value=!0;const Yn=await vn();Rn(Yn)}catch(Yn){console.error(Yn)}finally{f.value=!1}},Fn=()=>{switch(c.dataType){case"indicator":w();break;case"request":gn();break}};useOnEvent(c,{refreshData:Fn,resetRecord:()=>{const Yn=c.id,Xn=v(Yn);m(Yn,{...Xn,RECORD:""})}}),u({refreshData:Fn}),m(c.id,{type:c.type,RECORD:""});const{setRequest:Un}=vue.inject(REQUEST_MODEL,{setRequest:Yn=>{}});typeof Un=="function"&&Un({id:c.id,requestFn:Fn,sortNum:c.requestSort});const Wn=useEmitEvent(c);return{loading:f,style:h,myComponentList:g,scrollWrapStyle:y,pageMode:x,click:Yn=>{let Xn=Yn.target;if(Xn){let Jn=Xn.getAttribute("unitId");for(;!Jn&&!Xn.className.includes("ecan-");)Xn=Xn.parentElement,Jn=Xn.getAttribute("unitId");Jn&&Wn("click",()=>{const ir=v(c.id);m(c.id,{...ir,type:c.type,RECORD:vue.unref(J)[Jn]})})()}}}}}),Circulate_vue_vue_type_style_index_0_scoped_c1c6c563_lang="",_hoisted_1$4=["id"];function _sfc_render$8(c,u,f,h,d,p){const v=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(v,{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-c1c6c563"]]),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,p)=>{}})||{};return useOnEvent(c,{refreshData:()=>{f("refreshTemplate",c.pageId)}}),{style:u}}});function _sfc_render$7(c,u,f,h,d,p){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 p in d)Object.prototype.hasOwnProperty.call(d,p)&&(u.prototype[p]=d[p])}}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,p=[],v;switch(f){case"int16":case"uint8c":v=1;break;default:v=1.1;break}for(d=0;d<h;d+=1)p.push(v);return p}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,p,v,m,g,y,x;switch(v=Math.floor(c*6),m=c*6-v,g=f*(1-u),y=f*(1-m*u),x=f*(1-(1-m)*u),v%6){case 0:h=f,d=x,p=g;break;case 1:h=y,d=f,p=g;break;case 2:h=g,d=f,p=x;break;case 3:h=g,d=y,p=f;break;case 4:h=x,d=g,p=f;break;case 5:h=f,d=g,p=y;break}return[h,d,p]}function RGBtoHSV(c,u,f){var h=Math.max(c,u,f),d=Math.min(c,u,f),p=h-d,v,m=h===0?0:p/h,g=h/255;switch(h){case d:v=0;break;case c:v=u-f+p*(u<f?6:0),v/=6*p;break;case u:v=f-c+p*2,v/=6*p;break;case f:v=c-u+p*4,v/=6*p;break}return[v,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,p){return h<0&&(h=0),d<0&&(d=0),p<0&&(p=0),"#"+c[h]+c[d]+c[p]}}(),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(_){f({data:_})}},p={postMessage:function(_){d.onmessage({data:_})}};function v(b){if(window.Worker&&window.Blob&&getWebWorker()){var _=new Blob(["var _workerSelf = self; self.onmessage = ",b.toString()],{type:"text/javascript"}),J=URL.createObjectURL(_);return new Worker(J)}return f=b,d}function m(){h||(h=v(function(_){function J(){function Rn(Zn,Gn){var Kn,Vn,qn=Zn.length,nr,Hn,lr,cr;for(Vn=0;Vn<qn;Vn+=1)if(Kn=Zn[Vn],"ks"in Kn&&!Kn.completed){if(Kn.completed=!0,Kn.hasMask){var Qn=Kn.masksProperties;for(Hn=Qn.length,nr=0;nr<Hn;nr+=1)if(Qn[nr].pt.k.i)Fn(Qn[nr].pt.k);else for(cr=Qn[nr].pt.k.length,lr=0;lr<cr;lr+=1)Qn[nr].pt.k[lr].s&&Fn(Qn[nr].pt.k[lr].s[0]),Qn[nr].pt.k[lr].e&&Fn(Qn[nr].pt.k[lr].e[0])}Kn.ty===0?(Kn.layers=vn(Kn.refId,Gn),Rn(Kn.layers,Gn)):Kn.ty===4?gn(Kn.shapes):Kn.ty===5&&ir(Kn)}}function Bn(Zn,Gn){if(Zn){var Kn=0,Vn=Zn.length;for(Kn=0;Kn<Vn;Kn+=1)Zn[Kn].t===1&&(Zn[Kn].data.layers=vn(Zn[Kn].data.refId,Gn),Rn(Zn[Kn].data.layers,Gn))}}function w(Zn,Gn){for(var Kn=0,Vn=Gn.length;Kn<Vn;){if(Gn[Kn].id===Zn)return Gn[Kn];Kn+=1}return null}function vn(Zn,Gn){var Kn=w(Zn,Gn);return Kn?Kn.layers.__used?JSON.parse(JSON.stringify(Kn.layers)):(Kn.layers.__used=!0,Kn.layers):null}function gn(Zn){var Gn,Kn=Zn.length,Vn,qn;for(Gn=Kn-1;Gn>=0;Gn-=1)if(Zn[Gn].ty==="sh")if(Zn[Gn].ks.k.i)Fn(Zn[Gn].ks.k);else for(qn=Zn[Gn].ks.k.length,Vn=0;Vn<qn;Vn+=1)Zn[Gn].ks.k[Vn].s&&Fn(Zn[Gn].ks.k[Vn].s[0]),Zn[Gn].ks.k[Vn].e&&Fn(Zn[Gn].ks.k[Vn].e[0]);else Zn[Gn].ty==="gr"&&gn(Zn[Gn].it)}function Fn(Zn){var Gn,Kn=Zn.i.length;for(Gn=0;Gn<Kn;Gn+=1)Zn.i[Gn][0]+=Zn.v[Gn][0],Zn.i[Gn][1]+=Zn.v[Gn][1],Zn.o[Gn][0]+=Zn.v[Gn][0],Zn.o[Gn][1]+=Zn.v[Gn][1]}function zn(Zn,Gn){var Kn=Gn?Gn.split("."):[100,100,100];return Zn[0]>Kn[0]?!0:Kn[0]>Zn[0]?!1:Zn[1]>Kn[1]?!0:Kn[1]>Zn[1]?!1:Zn[2]>Kn[2]?!0:Kn[2]>Zn[2]?!1:null}var Un=function(){var Zn=[4,4,14];function Gn(Vn){var qn=Vn.t.d;Vn.t.d={k:[{s:qn,t:0}]}}function Kn(Vn){var qn,nr=Vn.length;for(qn=0;qn<nr;qn+=1)Vn[qn].ty===5&&Gn(Vn[qn])}return function(Vn){if(zn(Zn,Vn.v)&&(Kn(Vn.layers),Vn.assets)){var qn,nr=Vn.assets.length;for(qn=0;qn<nr;qn+=1)Vn.assets[qn].layers&&Kn(Vn.assets[qn].layers)}}}(),Wn=function(){var Zn=[4,7,99];return function(Gn){if(Gn.chars&&!zn(Zn,Gn.v)){var Kn,Vn=Gn.chars.length;for(Kn=0;Kn<Vn;Kn+=1){var qn=Gn.chars[Kn];qn.data&&qn.data.shapes&&(gn(qn.data.shapes),qn.data.ip=0,qn.data.op=99999,qn.data.st=0,qn.data.sr=1,qn.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}},Gn.chars[Kn].t||(qn.data.shapes.push({ty:"no"}),qn.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"})))}}}}(),tr=function(){var Zn=[5,7,15];function Gn(Vn){var qn=Vn.t.p;typeof qn.a=="number"&&(qn.a={a:0,k:qn.a}),typeof qn.p=="number"&&(qn.p={a:0,k:qn.p}),typeof qn.r=="number"&&(qn.r={a:0,k:qn.r})}function Kn(Vn){var qn,nr=Vn.length;for(qn=0;qn<nr;qn+=1)Vn[qn].ty===5&&Gn(Vn[qn])}return function(Vn){if(zn(Zn,Vn.v)&&(Kn(Vn.layers),Vn.assets)){var qn,nr=Vn.assets.length;for(qn=0;qn<nr;qn+=1)Vn.assets[qn].layers&&Kn(Vn.assets[qn].layers)}}}(),Yn=function(){var Zn=[4,1,9];function Gn(Vn){var qn,nr=Vn.length,Hn,lr;for(qn=0;qn<nr;qn+=1)if(Vn[qn].ty==="gr")Gn(Vn[qn].it);else if(Vn[qn].ty==="fl"||Vn[qn].ty==="st")if(Vn[qn].c.k&&Vn[qn].c.k[0].i)for(lr=Vn[qn].c.k.length,Hn=0;Hn<lr;Hn+=1)Vn[qn].c.k[Hn].s&&(Vn[qn].c.k[Hn].s[0]/=255,Vn[qn].c.k[Hn].s[1]/=255,Vn[qn].c.k[Hn].s[2]/=255,Vn[qn].c.k[Hn].s[3]/=255),Vn[qn].c.k[Hn].e&&(Vn[qn].c.k[Hn].e[0]/=255,Vn[qn].c.k[Hn].e[1]/=255,Vn[qn].c.k[Hn].e[2]/=255,Vn[qn].c.k[Hn].e[3]/=255);else Vn[qn].c.k[0]/=255,Vn[qn].c.k[1]/=255,Vn[qn].c.k[2]/=255,Vn[qn].c.k[3]/=255}function Kn(Vn){var qn,nr=Vn.length;for(qn=0;qn<nr;qn+=1)Vn[qn].ty===4&&Gn(Vn[qn].shapes)}return function(Vn){if(zn(Zn,Vn.v)&&(Kn(Vn.layers),Vn.assets)){var qn,nr=Vn.assets.length;for(qn=0;qn<nr;qn+=1)Vn.assets[qn].layers&&Kn(Vn.assets[qn].layers)}}}(),Xn=function(){var Zn=[4,4,18];function Gn(Vn){var qn,nr=Vn.length,Hn,lr;for(qn=nr-1;qn>=0;qn-=1)if(Vn[qn].ty==="sh")if(Vn[qn].ks.k.i)Vn[qn].ks.k.c=Vn[qn].closed;else for(lr=Vn[qn].ks.k.length,Hn=0;Hn<lr;Hn+=1)Vn[qn].ks.k[Hn].s&&(Vn[qn].ks.k[Hn].s[0].c=Vn[qn].closed),Vn[qn].ks.k[Hn].e&&(Vn[qn].ks.k[Hn].e[0].c=Vn[qn].closed);else Vn[qn].ty==="gr"&&Gn(Vn[qn].it)}function Kn(Vn){var qn,nr,Hn=Vn.length,lr,cr,Qn,ar;for(nr=0;nr<Hn;nr+=1){if(qn=Vn[nr],qn.hasMask){var er=qn.masksProperties;for(cr=er.length,lr=0;lr<cr;lr+=1)if(er[lr].pt.k.i)er[lr].pt.k.c=er[lr].cl;else for(ar=er[lr].pt.k.length,Qn=0;Qn<ar;Qn+=1)er[lr].pt.k[Qn].s&&(er[lr].pt.k[Qn].s[0].c=er[lr].cl),er[lr].pt.k[Qn].e&&(er[lr].pt.k[Qn].e[0].c=er[lr].cl)}qn.ty===4&&Gn(qn.shapes)}}return function(Vn){if(zn(Zn,Vn.v)&&(Kn(Vn.layers),Vn.assets)){var qn,nr=Vn.assets.length;for(qn=0;qn<nr;qn+=1)Vn.assets[qn].layers&&Kn(Vn.assets[qn].layers)}}}();function Jn(Zn){Zn.__complete||(Yn(Zn),Un(Zn),Wn(Zn),tr(Zn),Xn(Zn),Rn(Zn.layers,Zn.assets),Bn(Zn.chars,Zn.assets),Zn.__complete=!0)}function ir(Zn){Zn.t.a.length===0&&"m"in Zn.t.p}var sr={};return sr.completeData=Jn,sr.checkColors=Yn,sr.checkChars=Wn,sr.checkPathProperties=tr,sr.checkShapes=Xn,sr.completeLayers=Rn,sr}if(p.dataManager||(p.dataManager=J()),p.assetLoader||(p.assetLoader=function(){function Rn(w){var vn=w.getResponseHeader("content-type");return vn&&w.responseType==="json"&&vn.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 Bn(w,vn,gn,Fn){var zn,Un=new XMLHttpRequest;try{Un.responseType="json"}catch{}Un.onreadystatechange=function(){if(Un.readyState===4)if(Un.status===200)zn=Rn(Un),gn(zn);else try{zn=Rn(Un),gn(zn)}catch(Wn){Fn&&Fn(Wn)}};try{Un.open(["G","E","T"].join(""),w,!0)}catch{Un.open(["G","E","T"].join(""),vn+"/"+w,!0)}Un.send()}return{load:Bn}}()),_.data.type==="loadAnimation")p.assetLoader.load(_.data.path,_.data.fullPath,function(Rn){p.dataManager.completeData(Rn),p.postMessage({id:_.data.id,payload:Rn,status:"success"})},function(){p.postMessage({id:_.data.id,status:"error"})});else if(_.data.type==="complete"){var re=_.data.animation;p.dataManager.completeData(re),p.postMessage({id:_.data.id,payload:re,status:"success"})}else _.data.type==="loadData"&&p.assetLoader.load(_.data.path,_.data.fullPath,function(Rn){p.postMessage({id:_.data.id,payload:Rn,status:"success"})},function(){p.postMessage({id:_.data.id,status:"error"})})}),h.onmessage=function(b){var _=b.data,J=_.id,re=u[J];u[J]=null,_.status==="success"?re.onComplete(_.payload):re.onError&&re.onError()})}function g(b,_){c+=1;var J="processId_"+c;return u[J]={onComplete:b,onError:_},J}function y(b,_,J){m();var re=g(_,J);h.postMessage({type:"loadAnimation",path:b,fullPath:window.location.origin+window.location.pathname,id:re})}function x(b,_,J){m();var re=g(_,J);h.postMessage({type:"loadData",path:b,fullPath:window.location.origin+window.location.pathname,id:re})}function Pn(b,_,J){m();var re=g(_,J);h.postMessage({type:"complete",animation:b,id:re})}return{loadAnimation:y,loadData:x,completeAnimation:Pn}}(),ImagePreloader=function(){var c=function(){var Bn=createTag("canvas");Bn.width=1,Bn.height=1;var w=Bn.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),Bn}();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(Bn,w,vn){var gn="";if(Bn.e)gn=Bn.p;else if(w){var Fn=Bn.p;Fn.indexOf("images/")!==-1&&(Fn=Fn.split("/")[1]),gn=w+Fn}else gn=vn,gn+=Bn.u?Bn.u:"",gn+=Bn.p;return gn}function d(Bn){var w=0,vn=setInterval((function(){var gn=Bn.getBBox();(gn.width||w>500)&&(this._imageLoaded(),clearInterval(vn)),w+=1}).bind(this),50)}function p(Bn){var w=h(Bn,this.assetsPath,this.path),vn=createNS("image");isSafari?this.testImageLoaded(vn):vn.addEventListener("load",this._imageLoaded,!1),vn.addEventListener("error",(function(){gn.img=c,this._imageLoaded()}).bind(this),!1),vn.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(vn):this._elementHelper.appendChild(vn);var gn={img:vn,assetData:Bn};return gn}function v(Bn){var w=h(Bn,this.assetsPath,this.path),vn=createTag("img");vn.crossOrigin="anonymous",vn.addEventListener("load",this._imageLoaded,!1),vn.addEventListener("error",(function(){gn.img=c,this._imageLoaded()}).bind(this),!1),vn.src=w;var gn={img:vn,assetData:Bn};return gn}function m(Bn){var w={assetData:Bn},vn=h(Bn,this.assetsPath,this.path);return dataManager.loadData(vn,(function(gn){w.img=gn,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function g(Bn,w){this.imagesLoadedCb=w;var vn,gn=Bn.length;for(vn=0;vn<gn;vn+=1)Bn[vn].layers||(!Bn[vn].t||Bn[vn].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(Bn[vn]))):Bn[vn].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Bn[vn]))))}function y(Bn){this.path=Bn||""}function x(Bn){this.assetsPath=Bn||""}function Pn(Bn){for(var w=0,vn=this.images.length;w<vn;){if(this.images[w].assetData===Bn)return this.images[w].img;w+=1}return null}function b(){this.imagesLoadedCb=null,this.images.length=0}function _(){return this.totalImages===this.loadedAssets}function J(){return this.totalFootages===this.loadedFootagesCount}function re(Bn,w){Bn==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function Rn(){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 Rn.prototype={loadAssets:g,setAssetsPath:x,setPath:y,loadedImages:_,loadedFootages:J,destroy:b,getAsset:Pn,createImgData:v,createImageData:p,imageLoaded:u,footageLoaded:f,setCacheType:re},Rn}();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
172
172
  `),h={},d,p=0,v=0;v<f.length;v+=1)d=f[v].split(":"),d.length===2&&(h[d[0]]=d[1].trim(),p+=1);if(p===0)throw new Error;return h}return function(u){for(var f=[],h=0;h<u.length;h+=1){var d=u[h],p={time:d.tm,duration:d.dr};try{p.payload=JSON.parse(u[h].cm)}catch{try{p.payload=c(u[h].cm)}catch{p.payload={name:u[h].cm}}}f.push(p)}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 p=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=p!=="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 v=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:"";v==="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,p,v=d.length;for(p=0;p<v;p+=1)for(f=0;f<h;){if(u[f].id===d[p].id){u[f]=d[p];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,p=!0,v=!1;function m(Gn){for(var Kn=0,Vn=Gn.target;Kn<h;)u[Kn].animation===Vn&&(u.splice(Kn,1),Kn-=1,h-=1,Vn.isPaused||Pn()),Kn+=1}function g(Gn,Kn){if(!Gn)return null;for(var Vn=0;Vn<h;){if(u[Vn].elem===Gn&&u[Vn].elem!==null)return u[Vn].animation;Vn+=1}var qn=new AnimationItem;return b(qn,Gn),qn.setData(Gn,Kn),qn}function y(){var Gn,Kn=u.length,Vn=[];for(Gn=0;Gn<Kn;Gn+=1)Vn.push(u[Gn].animation);return Vn}function x(){d+=1,Yn()}function Pn(){d-=1}function b(Gn,Kn){Gn.addEventListener("destroy",m),Gn.addEventListener("_active",x),Gn.addEventListener("_idle",Pn),u.push({elem:Kn,animation:Gn}),h+=1}function _(Gn){var Kn=new AnimationItem;return b(Kn,null),Kn.setParams(Gn),Kn}function J(Gn,Kn){var Vn;for(Vn=0;Vn<h;Vn+=1)u[Vn].animation.setSpeed(Gn,Kn)}function re(Gn,Kn){var Vn;for(Vn=0;Vn<h;Vn+=1)u[Vn].animation.setDirection(Gn,Kn)}function Rn(Gn){var Kn;for(Kn=0;Kn<h;Kn+=1)u[Kn].animation.play(Gn)}function Bn(Gn){var Kn=Gn-f,Vn;for(Vn=0;Vn<h;Vn+=1)u[Vn].animation.advanceTime(Kn);f=Gn,d&&!v?window.requestAnimationFrame(Bn):p=!0}function w(Gn){f=Gn,window.requestAnimationFrame(Bn)}function vn(Gn){var Kn;for(Kn=0;Kn<h;Kn+=1)u[Kn].animation.pause(Gn)}function gn(Gn,Kn,Vn){var qn;for(qn=0;qn<h;qn+=1)u[qn].animation.goToAndStop(Gn,Kn,Vn)}function Fn(Gn){var Kn;for(Kn=0;Kn<h;Kn+=1)u[Kn].animation.stop(Gn)}function zn(Gn){var Kn;for(Kn=0;Kn<h;Kn+=1)u[Kn].animation.togglePause(Gn)}function Un(Gn){var Kn;for(Kn=h-1;Kn>=0;Kn-=1)u[Kn].animation.destroy(Gn)}function Wn(Gn,Kn,Vn){var qn=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),nr,Hn=qn.length;for(nr=0;nr<Hn;nr+=1)Vn&&qn[nr].setAttribute("data-bm-type",Vn),g(qn[nr],Gn);if(Kn&&Hn===0){Vn||(Vn="svg");var lr=document.getElementsByTagName("body")[0];lr.innerText="";var cr=createTag("div");cr.style.width="100%",cr.style.height="100%",cr.setAttribute("data-bm-type",Vn),lr.appendChild(cr),g(cr,Gn)}}function tr(){var Gn;for(Gn=0;Gn<h;Gn+=1)u[Gn].animation.resize()}function Yn(){!v&&d&&p&&(window.requestAnimationFrame(w),p=!1)}function Xn(){v=!0}function Jn(){v=!1,Yn()}function ir(Gn,Kn){var Vn;for(Vn=0;Vn<h;Vn+=1)u[Vn].animation.setVolume(Gn,Kn)}function sr(Gn){var Kn;for(Kn=0;Kn<h;Kn+=1)u[Kn].animation.mute(Gn)}function Zn(Gn){var Kn;for(Kn=0;Kn<h;Kn+=1)u[Kn].animation.unmute(Gn)}return c.registerAnimation=g,c.loadAnimation=_,c.setSpeed=J,c.setDirection=re,c.play=Rn,c.pause=vn,c.stop=Fn,c.togglePause=zn,c.searchAnimations=Wn,c.resize=tr,c.goToAndStop=gn,c.destroy=Un,c.freeze=Xn,c.unfreeze=Jn,c.setVolume=ir,c.mute=sr,c.unmute=Zn,c.getRegisteredAnimations=y,c}(),BezierFactory=function(){var c={};c.getBezierEasing=f;var u={};function f(w,vn,gn,Fn,zn){var Un=zn||("bez_"+w+"_"+vn+"_"+gn+"_"+Fn).replace(/\./g,"p");if(u[Un])return u[Un];var Wn=new Bn([w,vn,gn,Fn]);return u[Un]=Wn,Wn}var h=4,d=.001,p=1e-7,v=10,m=11,g=1/(m-1),y=typeof Float32Array=="function";function x(w,vn){return 1-3*vn+3*w}function Pn(w,vn){return 3*vn-6*w}function b(w){return 3*w}function _(w,vn,gn){return((x(vn,gn)*w+Pn(vn,gn))*w+b(vn))*w}function J(w,vn,gn){return 3*x(vn,gn)*w*w+2*Pn(vn,gn)*w+b(vn)}function re(w,vn,gn,Fn,zn){var Un,Wn,tr=0;do Wn=vn+(gn-vn)/2,Un=_(Wn,Fn,zn)-w,Un>0?gn=Wn:vn=Wn;while(Math.abs(Un)>p&&++tr<v);return Wn}function Rn(w,vn,gn,Fn){for(var zn=0;zn<h;++zn){var Un=J(vn,gn,Fn);if(Un===0)return vn;var Wn=_(vn,gn,Fn)-w;vn-=Wn/Un}return vn}function Bn(w){this._p=w,this._mSampleValues=y?new Float32Array(m):new Array(m),this._precomputed=!1,this.get=this.get.bind(this)}return Bn.prototype={get:function(vn){var gn=this._p[0],Fn=this._p[1],zn=this._p[2],Un=this._p[3];return this._precomputed||this._precompute(),gn===Fn&&zn===Un?vn:vn===0?0:vn===1?1:_(this._getTForX(vn),Fn,Un)},_precompute:function(){var vn=this._p[0],gn=this._p[1],Fn=this._p[2],zn=this._p[3];this._precomputed=!0,(vn!==gn||Fn!==zn)&&this._calcSampleValues()},_calcSampleValues:function(){for(var vn=this._p[0],gn=this._p[2],Fn=0;Fn<m;++Fn)this._mSampleValues[Fn]=_(Fn*g,vn,gn)},_getTForX:function(vn){for(var gn=this._p[0],Fn=this._p[2],zn=this._mSampleValues,Un=0,Wn=1,tr=m-1;Wn!==tr&&zn[Wn]<=vn;++Wn)Un+=g;--Wn;var Yn=(vn-zn[Wn])/(zn[Wn+1]-zn[Wn]),Xn=Un+Yn*g,Jn=J(Xn,gn,Fn);return Jn>=d?Rn(vn,Xn,gn,Fn):Jn===0?Xn:re(vn,Un,Un+g,gn,Fn)}},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,p=createSizedArray(d),v={newElement:m,release:g};function m(){var y;return h?(h-=1,y=p[h]):y=u(),y}function g(y){h===d&&(p=pooling.double(p),d*=2),f&&f(y),p[h]=y,h+=1}return v}}(),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,_,J,re,Rn,Bn){var w=b*re+_*Rn+J*Bn-Rn*re-Bn*b-J*_;return w>-.001&&w<.001}function f(b,_,J,re,Rn,Bn,w,vn,gn){if(J===0&&Bn===0&&gn===0)return u(b,_,re,Rn,w,vn);var Fn=c.sqrt(c.pow(re-b,2)+c.pow(Rn-_,2)+c.pow(Bn-J,2)),zn=c.sqrt(c.pow(w-b,2)+c.pow(vn-_,2)+c.pow(gn-J,2)),Un=c.sqrt(c.pow(w-re,2)+c.pow(vn-Rn,2)+c.pow(gn-Bn,2)),Wn;return Fn>zn?Fn>Un?Wn=Fn-zn-Un:Wn=Un-zn-Fn:Un>zn?Wn=Un-zn-Fn:Wn=zn-Fn-Un,Wn>-1e-4&&Wn<1e-4}var h=function(){return function(b,_,J,re){var Rn=getDefaultCurveSegments(),Bn,w,vn,gn,Fn,zn=0,Un,Wn=[],tr=[],Yn=bezierLengthPool.newElement();for(vn=J.length,Bn=0;Bn<Rn;Bn+=1){for(Fn=Bn/(Rn-1),Un=0,w=0;w<vn;w+=1)gn=bmPow(1-Fn,3)*b[w]+3*bmPow(1-Fn,2)*Fn*J[w]+3*(1-Fn)*bmPow(Fn,2)*re[w]+bmPow(Fn,3)*_[w],Wn[w]=gn,tr[w]!==null&&(Un+=bmPow(Wn[w]-tr[w],2)),tr[w]=Wn[w];Un&&(Un=bmSqrt(Un),zn+=Un),Yn.percents[Bn]=Fn,Yn.lengths[Bn]=zn}return Yn.addedLength=zn,Yn}}();function d(b){var _=segmentsLengthPool.newElement(),J=b.c,re=b.v,Rn=b.o,Bn=b.i,w,vn=b._length,gn=_.lengths,Fn=0;for(w=0;w<vn-1;w+=1)gn[w]=h(re[w],re[w+1],Rn[w],Bn[w+1]),Fn+=gn[w].addedLength;return J&&vn&&(gn[w]=h(re[w],re[0],Rn[w],Bn[0]),Fn+=gn[w].addedLength),_.totalLength=Fn,_}function p(b){this.segmentLength=0,this.points=new Array(b)}function v(b,_){this.partialLength=b,this.point=_}var m=function(){var b={};return function(_,J,re,Rn){var Bn=(_[0]+"_"+_[1]+"_"+J[0]+"_"+J[1]+"_"+re[0]+"_"+re[1]+"_"+Rn[0]+"_"+Rn[1]).replace(/\./g,"p");if(!b[Bn]){var w=getDefaultCurveSegments(),vn,gn,Fn,zn,Un,Wn=0,tr,Yn,Xn=null;_.length===2&&(_[0]!==J[0]||_[1]!==J[1])&&u(_[0],_[1],J[0],J[1],_[0]+re[0],_[1]+re[1])&&u(_[0],_[1],J[0],J[1],J[0]+Rn[0],J[1]+Rn[1])&&(w=2);var Jn=new p(w);for(Fn=re.length,vn=0;vn<w;vn+=1){for(Yn=createSizedArray(Fn),Un=vn/(w-1),tr=0,gn=0;gn<Fn;gn+=1)zn=bmPow(1-Un,3)*_[gn]+3*bmPow(1-Un,2)*Un*(_[gn]+re[gn])+3*(1-Un)*bmPow(Un,2)*(J[gn]+Rn[gn])+bmPow(Un,3)*J[gn],Yn[gn]=zn,Xn!==null&&(tr+=bmPow(Yn[gn]-Xn[gn],2));tr=bmSqrt(tr),Wn+=tr,Jn.points[vn]=new v(tr,Yn),Xn=Yn}Jn.segmentLength=Wn,b[Bn]=Jn}return b[Bn]}}();function g(b,_){var J=_.percents,re=_.lengths,Rn=J.length,Bn=bmFloor((Rn-1)*b),w=b*_.addedLength,vn=0;if(Bn===Rn-1||Bn===0||w===re[Bn])return J[Bn];for(var gn=re[Bn]>w?-1:1,Fn=!0;Fn;)if(re[Bn]<=w&&re[Bn+1]>w?(vn=(w-re[Bn])/(re[Bn+1]-re[Bn]),Fn=!1):Bn+=gn,Bn<0||Bn>=Rn-1){if(Bn===Rn-1)return J[Bn];Fn=!1}return J[Bn]+(J[Bn+1]-J[Bn])*vn}function y(b,_,J,re,Rn,Bn){var w=g(Rn,Bn),vn=1-w,gn=c.round((vn*vn*vn*b[0]+(w*vn*vn+vn*w*vn+vn*vn*w)*J[0]+(w*w*vn+vn*w*w+w*vn*w)*re[0]+w*w*w*_[0])*1e3)/1e3,Fn=c.round((vn*vn*vn*b[1]+(w*vn*vn+vn*w*vn+vn*vn*w)*J[1]+(w*w*vn+vn*w*w+w*vn*w)*re[1]+w*w*w*_[1])*1e3)/1e3;return[gn,Fn]}var x=createTypedArray("float32",8);function Pn(b,_,J,re,Rn,Bn,w){Rn<0?Rn=0:Rn>1&&(Rn=1);var vn=g(Rn,w);Bn=Bn>1?1:Bn;var gn=g(Bn,w),Fn,zn=b.length,Un=1-vn,Wn=1-gn,tr=Un*Un*Un,Yn=vn*Un*Un*3,Xn=vn*vn*Un*3,Jn=vn*vn*vn,ir=Un*Un*Wn,sr=vn*Un*Wn+Un*vn*Wn+Un*Un*gn,Zn=vn*vn*Wn+Un*vn*gn+vn*Un*gn,Gn=vn*vn*gn,Kn=Un*Wn*Wn,Vn=vn*Wn*Wn+Un*gn*Wn+Un*Wn*gn,qn=vn*gn*Wn+Un*gn*gn+vn*Wn*gn,nr=vn*gn*gn,Hn=Wn*Wn*Wn,lr=gn*Wn*Wn+Wn*gn*Wn+Wn*Wn*gn,cr=gn*gn*Wn+Wn*gn*gn+gn*Wn*gn,Qn=gn*gn*gn;for(Fn=0;Fn<zn;Fn+=1)x[Fn*4]=c.round((tr*b[Fn]+Yn*J[Fn]+Xn*re[Fn]+Jn*_[Fn])*1e3)/1e3,x[Fn*4+1]=c.round((ir*b[Fn]+sr*J[Fn]+Zn*re[Fn]+Gn*_[Fn])*1e3)/1e3,x[Fn*4+2]=c.round((Kn*b[Fn]+Vn*J[Fn]+qn*re[Fn]+nr*_[Fn])*1e3)/1e3,x[Fn*4+3]=c.round((Hn*b[Fn]+lr*J[Fn]+cr*re[Fn]+Qn*_[Fn])*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,p=d,v=this.keyframes.length-1,m=!0,g,y,x;m;){if(g=this.keyframes[p],y=this.keyframes[p+1],p===v-1&&c>=y.t-f){g.h&&(g=y),d=0;break}if(y.t-f>c){d=p;break}p<v-1?p+=1:(d=0,m=!1)}x=this.keyframesMetadata[p]||{};var Pn,b,_,J,re,Rn,Bn=y.t-f,w=g.t-f,vn;if(g.to){x.bezierData||(x.bezierData=bez.buildBezierData(g.s,y.s||g.e,g.to,g.ti));var gn=x.bezierData;if(c>=Bn||c<w){var Fn=c>=Bn?gn.points.length-1:0;for(b=gn.points[Fn].point.length,Pn=0;Pn<b;Pn+=1)h[Pn]=gn.points[Fn].point[Pn]}else{x.__fnct?Rn=x.__fnct:(Rn=BezierFactory.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y,g.n).get,x.__fnct=Rn),_=Rn((c-w)/(Bn-w));var zn=gn.segmentLength*_,Un,Wn=u.lastFrame<c&&u._lastKeyframeIndex===p?u._lastAddedLength:0;for(re=u.lastFrame<c&&u._lastKeyframeIndex===p?u._lastPoint:0,m=!0,J=gn.points.length;m;){if(Wn+=gn.points[re].partialLength,zn===0||_===0||re===gn.points.length-1){for(b=gn.points[re].point.length,Pn=0;Pn<b;Pn+=1)h[Pn]=gn.points[re].point[Pn];break}else if(zn>=Wn&&zn<Wn+gn.points[re+1].partialLength){for(Un=(zn-Wn)/gn.points[re+1].partialLength,b=gn.points[re].point.length,Pn=0;Pn<b;Pn+=1)h[Pn]=gn.points[re].point[Pn]+(gn.points[re+1].point[Pn]-gn.points[re].point[Pn])*Un;break}re<J-1?re+=1:m=!1}u._lastPoint=re,u._lastAddedLength=Wn-gn.points[re].partialLength,u._lastKeyframeIndex=p}}else{var tr,Yn,Xn,Jn,ir;if(v=g.s.length,vn=y.s||g.e,this.sh&&g.h!==1)if(c>=Bn)h[0]=vn[0],h[1]=vn[1],h[2]=vn[2];else if(c<=w)h[0]=g.s[0],h[1]=g.s[1],h[2]=g.s[2];else{var sr=createQuaternion(g.s),Zn=createQuaternion(vn),Gn=(c-w)/(Bn-w);quaternionToEuler(h,slerp(sr,Zn,Gn))}else for(p=0;p<v;p+=1)g.h!==1&&(c>=Bn?_=1:c<w?_=0:(g.o.x.constructor===Array?(x.__fnct||(x.__fnct=[]),x.__fnct[p]?Rn=x.__fnct[p]:(tr=g.o.x[p]===void 0?g.o.x[0]:g.o.x[p],Yn=g.o.y[p]===void 0?g.o.y[0]:g.o.y[p],Xn=g.i.x[p]===void 0?g.i.x[0]:g.i.x[p],Jn=g.i.y[p]===void 0?g.i.y[0]:g.i.y[p],Rn=BezierFactory.getBezierEasing(tr,Yn,Xn,Jn).get,x.__fnct[p]=Rn)):x.__fnct?Rn=x.__fnct:(tr=g.o.x,Yn=g.o.y,Xn=g.i.x,Jn=g.i.y,Rn=BezierFactory.getBezierEasing(tr,Yn,Xn,Jn).get,g.keyframeMetadata=Rn),_=Rn((c-w)/(Bn-w)))),vn=y.s||g.e,ir=g.h===1?g.s[p]:g.s[p]+(vn[p]-g.s[p])*_,this.propType==="multidimensional"?h[p]=ir:h=ir}return u.lastIndex=d,h}function slerp(c,u,f){var h=[],d=c[0],p=c[1],v=c[2],m=c[3],g=u[0],y=u[1],x=u[2],Pn=u[3],b,_,J,re,Rn;return _=d*g+p*y+v*x+m*Pn,_<0&&(_=-_,g=-g,y=-y,x=-x,Pn=-Pn),1-_>1e-6?(b=Math.acos(_),J=Math.sin(b),re=Math.sin((1-f)*b)/J,Rn=Math.sin(f*b)/J):(re=1-f,Rn=f),h[0]=re*d+Rn*g,h[1]=re*p+Rn*y,h[2]=re*v+Rn*x,h[3]=re*m+Rn*Pn,h}function quaternionToEuler(c,u){var f=u[0],h=u[1],d=u[2],p=u[3],v=Math.atan2(2*h*p-2*f*d,1-2*h*h-2*d*d),m=Math.asin(2*f*h+2*d*p),g=Math.atan2(2*f*p-2*h*d,1-2*f*f-2*d*d);c[0]=v/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),p=Math.cos(f/2),v=Math.cos(h/2),m=Math.sin(u/2),g=Math.sin(f/2),y=Math.sin(h/2),x=d*p*v-m*g*y,Pn=m*g*v+d*p*y,b=m*p*v+d*g*y,_=d*g*v-m*p*y;return[Pn,b,_,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,p=u.k.length;for(this.v=createTypedArray("float32",p),this.pv=createTypedArray("float32",p),this.vel=createTypedArray("float32",p),d=0;d<p;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,p=u.k.length,v,m,g,y;for(d=0;d<p-1;d+=1)u.k[d].to&&u.k[d].s&&u.k[d+1]&&u.k[d+1].s&&(v=u.k[d].s,m=u.k[d+1].s,g=u.k[d].to,y=u.k[d].ti,(v.length===2&&!(v[0]===m[0]&&v[1]===m[1])&&bez.pointOnLine2D(v[0],v[1],m[0],m[1],v[0]+g[0],v[1]+g[1])&&bez.pointOnLine2D(v[0],v[1],m[0],m[1],m[0]+y[0],m[1]+y[1])||v.length===3&&!(v[0]===m[0]&&v[1]===m[1]&&v[2]===m[2])&&bez.pointOnLine3D(v[0],v[1],v[2],m[0],m[1],m[2],v[0]+g[0],v[1]+g[1],v[2]+g[2])&&bez.pointOnLine3D(v[0],v[1],v[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),v[0]===m[0]&&v[1]===m[1]&&g[0]===0&&g[1]===0&&y[0]===0&&y[1]===0&&(v.length===2||v[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,p,v){h.sid&&(h=f.globalData.slotManager.getProp(h));var m;if(!h.k.length)m=new ValueProperty(f,h,p,v);else if(typeof h.k[0]=="number")m=new MultiDimensionalProperty(f,h,p,v);else switch(d){case 0:m=new KeyframedValueProperty(f,h,p,v);break;case 1:m=new KeyframedMultidimensionalProperty(f,h,p,v);break}return m.effectsSequence.length&&v.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 p;switch(this._length=Math.max(this._length,h+1),this._length>=this._maxLength&&this.doubleArrayLength(),f){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[h]||p[h]&&!d)&&(p[h]=pointPool.newElement()),p[h][0]=c,p[h][1]=u},ShapePath.prototype.setTripleAt=function(c,u,f,h,d,p,v,m){this.setXYAt(c,u,"v",v,m),this.setXYAt(f,h,"o",v,m),this.setXYAt(d,p,"i",v,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 p=this._length-1,v=this._length,m;for(m=d;m<v;m+=1)c.setTripleAt(u[p][0],u[p][1],h[p][0],h[p][1],f[p][0],f[p][1],m,!1),p-=1;return c},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function c(){return new ShapePath}function u(d){var p=d._length,v;for(v=0;v<p;v+=1)pointPool.release(d.v[v]),pointPool.release(d.i[v]),pointPool.release(d.o[v]),d.v[v]=null,d.i[v]=null,d.o[v]=null;d._length=0,d.c=!1}function f(d){var p=h.newElement(),v,m=d._length===void 0?d.v.length:d._length;for(p.setLength(m),p.c=d.c,v=0;v<m;v+=1)p.setTripleAt(d.v[v][0],d.v[v][1],d.o[v][0],d.o[v][1],d.i[v][0],d.i[v][1],v);return p}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:p},u=0,f=4,h=createSizedArray(f);function d(){var v;return u?(u-=1,v=h[u]):v=new ShapeCollection,v}function p(v){var m,g=v._length;for(m=0;m<g;m+=1)shapePool.release(v.shapes[m]);v._length=0,u===f&&(h=pooling.double(h),f*=2),h[u]=v,u+=1}return c}(),ShapePropertyFactory=function(){var c=-999999;function u(Bn,w,vn){var gn=vn.lastIndex,Fn,zn,Un,Wn,tr,Yn,Xn,Jn,ir,sr=this.keyframes;if(Bn<sr[0].t-this.offsetTime)Fn=sr[0].s[0],Un=!0,gn=0;else if(Bn>=sr[sr.length-1].t-this.offsetTime)Fn=sr[sr.length-1].s?sr[sr.length-1].s[0]:sr[sr.length-2].e[0],Un=!0;else{for(var Zn=gn,Gn=sr.length-1,Kn=!0,Vn,qn,nr;Kn&&(Vn=sr[Zn],qn=sr[Zn+1],!(qn.t-this.offsetTime>Bn));)Zn<Gn-1?Zn+=1:Kn=!1;if(nr=this.keyframesMetadata[Zn]||{},Un=Vn.h===1,gn=Zn,!Un){if(Bn>=qn.t-this.offsetTime)Jn=1;else if(Bn<Vn.t-this.offsetTime)Jn=0;else{var Hn;nr.__fnct?Hn=nr.__fnct:(Hn=BezierFactory.getBezierEasing(Vn.o.x,Vn.o.y,Vn.i.x,Vn.i.y).get,nr.__fnct=Hn),Jn=Hn((Bn-(Vn.t-this.offsetTime))/(qn.t-this.offsetTime-(Vn.t-this.offsetTime)))}zn=qn.s?qn.s[0]:Vn.e[0]}Fn=Vn.s[0]}for(Yn=w._length,Xn=Fn.i[0].length,vn.lastIndex=gn,Wn=0;Wn<Yn;Wn+=1)for(tr=0;tr<Xn;tr+=1)ir=Un?Fn.i[Wn][tr]:Fn.i[Wn][tr]+(zn.i[Wn][tr]-Fn.i[Wn][tr])*Jn,w.i[Wn][tr]=ir,ir=Un?Fn.o[Wn][tr]:Fn.o[Wn][tr]+(zn.o[Wn][tr]-Fn.o[Wn][tr])*Jn,w.o[Wn][tr]=ir,ir=Un?Fn.v[Wn][tr]:Fn.v[Wn][tr]+(zn.v[Wn][tr]-Fn.v[Wn][tr])*Jn,w.v[Wn][tr]=ir}function f(){var Bn=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,vn=this.keyframes[this.keyframes.length-1].t-this.offsetTime,gn=this._caching.lastFrame;return gn!==c&&(gn<w&&Bn<w||gn>vn&&Bn>vn)||(this._caching.lastIndex=gn<Bn?this._caching.lastIndex:0,this.interpolateShape(Bn,this.pv,this._caching)),this._caching.lastFrame=Bn,this.pv}function h(){this.paths=this.localShapeCollection}function d(Bn,w){if(Bn._length!==w._length||Bn.c!==w.c)return!1;var vn,gn=Bn._length;for(vn=0;vn<gn;vn+=1)if(Bn.v[vn][0]!==w.v[vn][0]||Bn.v[vn][1]!==w.v[vn][1]||Bn.o[vn][0]!==w.o[vn][0]||Bn.o[vn][1]!==w.o[vn][1]||Bn.i[vn][0]!==w.i[vn][0]||Bn.i[vn][1]!==w.i[vn][1])return!1;return!0}function p(Bn){d(this.v,Bn)||(this.v=shapePool.clone(Bn),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function v(){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 Bn;this.kf?Bn=this.pv:this.data.ks?Bn=this.data.ks.k:Bn=this.data.pt.k;var w,vn=this.effectsSequence.length;for(w=0;w<vn;w+=1)Bn=this.effectsSequence[w](Bn);this.setVValue(Bn),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function m(Bn,w,vn){this.propType="shape",this.comp=Bn.comp,this.container=Bn,this.elem=Bn,this.data=w,this.k=!1,this.kf=!1,this._mdf=!1;var gn=vn===3?w.pt.k:w.ks.k;this.v=shapePool.clone(gn),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(Bn){this.effectsSequence.push(Bn),this.container.addDynamicProperty(this)}m.prototype.interpolateShape=u,m.prototype.getValue=v,m.prototype.setVValue=p,m.prototype.addEffect=g;function y(Bn,w,vn){this.propType="shape",this.comp=Bn.comp,this.elem=Bn,this.container=Bn,this.offsetTime=Bn.data.st,this.keyframes=vn===3?w.pt.k:w.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var gn=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,gn),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=v,y.prototype.interpolateShape=u,y.prototype.setVValue=p,y.prototype.addEffect=g;var x=function(){var Bn=roundCorner;function w(vn,gn){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=gn.d,this.elem=vn,this.comp=vn.comp,this.frameId=-1,this.initDynamicPropertyContainer(vn),this.p=PropertyFactory.getProp(vn,gn.p,1,0,this),this.s=PropertyFactory.getProp(vn,gn.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 gn=this.p.v[0],Fn=this.p.v[1],zn=this.s.v[0]/2,Un=this.s.v[1]/2,Wn=this.d!==3,tr=this.v;tr.v[0][0]=gn,tr.v[0][1]=Fn-Un,tr.v[1][0]=Wn?gn+zn:gn-zn,tr.v[1][1]=Fn,tr.v[2][0]=gn,tr.v[2][1]=Fn+Un,tr.v[3][0]=Wn?gn-zn:gn+zn,tr.v[3][1]=Fn,tr.i[0][0]=Wn?gn-zn*Bn:gn+zn*Bn,tr.i[0][1]=Fn-Un,tr.i[1][0]=Wn?gn+zn:gn-zn,tr.i[1][1]=Fn-Un*Bn,tr.i[2][0]=Wn?gn+zn*Bn:gn-zn*Bn,tr.i[2][1]=Fn+Un,tr.i[3][0]=Wn?gn-zn:gn+zn,tr.i[3][1]=Fn+Un*Bn,tr.o[0][0]=Wn?gn+zn*Bn:gn-zn*Bn,tr.o[0][1]=Fn-Un,tr.o[1][0]=Wn?gn+zn:gn-zn,tr.o[1][1]=Fn+Un*Bn,tr.o[2][0]=Wn?gn-zn*Bn:gn+zn*Bn,tr.o[2][1]=Fn+Un,tr.o[3][0]=Wn?gn-zn:gn+zn,tr.o[3][1]=Fn-Un*Bn}},extendPrototype([DynamicPropertyContainer],w),w}(),Pn=function(){function Bn(w,vn){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=w,this.comp=w.comp,this.data=vn,this.frameId=-1,this.d=vn.d,this.initDynamicPropertyContainer(w),vn.sy===1?(this.ir=PropertyFactory.getProp(w,vn.ir,0,0,this),this.is=PropertyFactory.getProp(w,vn.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(w,vn.pt,0,0,this),this.p=PropertyFactory.getProp(w,vn.p,1,0,this),this.r=PropertyFactory.getProp(w,vn.r,0,degToRads,this),this.or=PropertyFactory.getProp(w,vn.or,0,0,this),this.os=PropertyFactory.getProp(w,vn.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 Bn.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 vn=Math.floor(this.pt.v)*2,gn=Math.PI*2/vn,Fn=!0,zn=this.or.v,Un=this.ir.v,Wn=this.os.v,tr=this.is.v,Yn=2*Math.PI*zn/(vn*2),Xn=2*Math.PI*Un/(vn*2),Jn,ir,sr,Zn,Gn=-Math.PI/2;Gn+=this.r.v;var Kn=this.data.d===3?-1:1;for(this.v._length=0,Jn=0;Jn<vn;Jn+=1){ir=Fn?zn:Un,sr=Fn?Wn:tr,Zn=Fn?Yn:Xn;var Vn=ir*Math.cos(Gn),qn=ir*Math.sin(Gn),nr=Vn===0&&qn===0?0:qn/Math.sqrt(Vn*Vn+qn*qn),Hn=Vn===0&&qn===0?0:-Vn/Math.sqrt(Vn*Vn+qn*qn);Vn+=+this.p.v[0],qn+=+this.p.v[1],this.v.setTripleAt(Vn,qn,Vn-nr*Zn*sr*Kn,qn-Hn*Zn*sr*Kn,Vn+nr*Zn*sr*Kn,qn+Hn*Zn*sr*Kn,Jn,!0),Fn=!Fn,Gn+=gn*Kn}},convertPolygonToPath:function(){var vn=Math.floor(this.pt.v),gn=Math.PI*2/vn,Fn=this.or.v,zn=this.os.v,Un=2*Math.PI*Fn/(vn*4),Wn,tr=-Math.PI*.5,Yn=this.data.d===3?-1:1;for(tr+=this.r.v,this.v._length=0,Wn=0;Wn<vn;Wn+=1){var Xn=Fn*Math.cos(tr),Jn=Fn*Math.sin(tr),ir=Xn===0&&Jn===0?0:Jn/Math.sqrt(Xn*Xn+Jn*Jn),sr=Xn===0&&Jn===0?0:-Xn/Math.sqrt(Xn*Xn+Jn*Jn);Xn+=+this.p.v[0],Jn+=+this.p.v[1],this.v.setTripleAt(Xn,Jn,Xn-ir*Un*zn*Yn,Jn-sr*Un*zn*Yn,Xn+ir*Un*zn*Yn,Jn+sr*Un*zn*Yn,Wn,!0),tr+=gn*Yn}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],Bn),Bn}(),b=function(){function Bn(w,vn){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=vn.d,this.initDynamicPropertyContainer(w),this.p=PropertyFactory.getProp(w,vn.p,1,0,this),this.s=PropertyFactory.getProp(w,vn.s,1,0,this),this.r=PropertyFactory.getProp(w,vn.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return Bn.prototype={convertRectToPath:function(){var vn=this.p.v[0],gn=this.p.v[1],Fn=this.s.v[0]/2,zn=this.s.v[1]/2,Un=bmMin(Fn,zn,this.r.v),Wn=Un*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(vn+Fn,gn-zn+Un,vn+Fn,gn-zn+Un,vn+Fn,gn-zn+Wn,0,!0),this.v.setTripleAt(vn+Fn,gn+zn-Un,vn+Fn,gn+zn-Wn,vn+Fn,gn+zn-Un,1,!0),Un!==0?(this.v.setTripleAt(vn+Fn-Un,gn+zn,vn+Fn-Un,gn+zn,vn+Fn-Wn,gn+zn,2,!0),this.v.setTripleAt(vn-Fn+Un,gn+zn,vn-Fn+Wn,gn+zn,vn-Fn+Un,gn+zn,3,!0),this.v.setTripleAt(vn-Fn,gn+zn-Un,vn-Fn,gn+zn-Un,vn-Fn,gn+zn-Wn,4,!0),this.v.setTripleAt(vn-Fn,gn-zn+Un,vn-Fn,gn-zn+Wn,vn-Fn,gn-zn+Un,5,!0),this.v.setTripleAt(vn-Fn+Un,gn-zn,vn-Fn+Un,gn-zn,vn-Fn+Wn,gn-zn,6,!0),this.v.setTripleAt(vn+Fn-Un,gn-zn,vn+Fn-Wn,gn-zn,vn+Fn-Un,gn-zn,7,!0)):(this.v.setTripleAt(vn-Fn,gn+zn,vn-Fn+Wn,gn+zn,vn-Fn,gn+zn,2),this.v.setTripleAt(vn-Fn,gn-zn,vn-Fn,gn-zn+Wn,vn-Fn,gn-zn,3))):(this.v.setTripleAt(vn+Fn,gn-zn+Un,vn+Fn,gn-zn+Wn,vn+Fn,gn-zn+Un,0,!0),Un!==0?(this.v.setTripleAt(vn+Fn-Un,gn-zn,vn+Fn-Un,gn-zn,vn+Fn-Wn,gn-zn,1,!0),this.v.setTripleAt(vn-Fn+Un,gn-zn,vn-Fn+Wn,gn-zn,vn-Fn+Un,gn-zn,2,!0),this.v.setTripleAt(vn-Fn,gn-zn+Un,vn-Fn,gn-zn+Un,vn-Fn,gn-zn+Wn,3,!0),this.v.setTripleAt(vn-Fn,gn+zn-Un,vn-Fn,gn+zn-Wn,vn-Fn,gn+zn-Un,4,!0),this.v.setTripleAt(vn-Fn+Un,gn+zn,vn-Fn+Un,gn+zn,vn-Fn+Wn,gn+zn,5,!0),this.v.setTripleAt(vn+Fn-Un,gn+zn,vn+Fn-Wn,gn+zn,vn+Fn-Un,gn+zn,6,!0),this.v.setTripleAt(vn+Fn,gn+zn-Un,vn+Fn,gn+zn-Un,vn+Fn,gn+zn-Wn,7,!0)):(this.v.setTripleAt(vn-Fn,gn-zn,vn-Fn+Wn,gn-zn,vn-Fn,gn-zn,1,!0),this.v.setTripleAt(vn-Fn,gn+zn,vn-Fn,gn+zn-Wn,vn-Fn,gn+zn,2,!0),this.v.setTripleAt(vn+Fn,gn+zn,vn+Fn-Wn,gn+zn,vn+Fn,gn+zn,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],Bn),Bn}();function _(Bn,w,vn){var gn;if(vn===3||vn===4){var Fn=vn===3?w.pt:w.ks,zn=Fn.k;zn.length?gn=new y(Bn,w,vn):gn=new m(Bn,w,vn)}else vn===5?gn=new b(Bn,w):vn===6?gn=new x(Bn,w):vn===7&&(gn=new Pn(Bn,w));return gn.k&&Bn.addDynamicProperty(gn),gn}function J(){return m}function re(){return y}var Rn={};return Rn.getShapeProp=_,Rn.getConstructorFunction=J,Rn.getKeyframedConstructorFunction=re,Rn}();/*!
173
173
  Transformation Matrix v2.0
174
174
  (c) Epistemex 2014-2015
@@ -176,7 +176,7 @@ Please report this to https://github.com/markedjs/marked.`,u.silent)return"<p>An
176
176
  By Ken Fyrstenberg
177
177
  Contributions by leeoniya.
178
178
  License: MIT, header required.
179
- */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 p(Vn){if(Vn===0)return this;var qn=c(Vn),nr=u(Vn);return this._t(qn,-nr,0,0,nr,qn,0,0,0,0,1,0,0,0,0,1)}function v(Vn){if(Vn===0)return this;var qn=c(Vn),nr=u(Vn);return this._t(1,0,0,0,0,qn,-nr,0,0,nr,qn,0,0,0,0,1)}function m(Vn){if(Vn===0)return this;var qn=c(Vn),nr=u(Vn);return this._t(qn,0,nr,0,0,1,0,0,-nr,0,qn,0,0,0,0,1)}function g(Vn){if(Vn===0)return this;var qn=c(Vn),nr=u(Vn);return this._t(qn,-nr,0,0,nr,qn,0,0,0,0,1,0,0,0,0,1)}function y(Vn,qn){return this._t(1,qn,Vn,1,0,0)}function x(Vn,qn){return this.shear(f(Vn),f(qn))}function Pn(Vn,qn){var nr=c(qn),Hn=u(qn);return this._t(nr,Hn,0,0,-Hn,nr,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,f(Vn),1,0,0,0,0,1,0,0,0,0,1)._t(nr,-Hn,0,0,Hn,nr,0,0,0,0,1,0,0,0,0,1)}function b(Vn,qn,nr){return!nr&&nr!==0&&(nr=1),Vn===1&&qn===1&&nr===1?this:this._t(Vn,0,0,0,0,qn,0,0,0,0,nr,0,0,0,0,1)}function _(Vn,qn,nr,Hn,lr,cr,Qn,ar,er,ur,hr,or,mr,dr,fr,vr){return this.props[0]=Vn,this.props[1]=qn,this.props[2]=nr,this.props[3]=Hn,this.props[4]=lr,this.props[5]=cr,this.props[6]=Qn,this.props[7]=ar,this.props[8]=er,this.props[9]=ur,this.props[10]=hr,this.props[11]=or,this.props[12]=mr,this.props[13]=dr,this.props[14]=fr,this.props[15]=vr,this}function J(Vn,qn,nr){return nr=nr||0,Vn!==0||qn!==0||nr!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Vn,qn,nr,1):this}function re(Vn,qn,nr,Hn,lr,cr,Qn,ar,er,ur,hr,or,mr,dr,fr,vr){var pr=this.props;if(Vn===1&&qn===0&&nr===0&&Hn===0&&lr===0&&cr===1&&Qn===0&&ar===0&&er===0&&ur===0&&hr===1&&or===0)return pr[12]=pr[12]*Vn+pr[15]*mr,pr[13]=pr[13]*cr+pr[15]*dr,pr[14]=pr[14]*hr+pr[15]*fr,pr[15]*=vr,this._identityCalculated=!1,this;var yr=pr[0],br=pr[1],Sr=pr[2],gr=pr[3],kr=pr[4],wr=pr[5],Er=pr[6],Pr=pr[7],_r=pr[8],Mr=pr[9],Or=pr[10],Rr=pr[11],Lr=pr[12],jr=pr[13],Gr=pr[14],Hr=pr[15];return pr[0]=yr*Vn+br*lr+Sr*er+gr*mr,pr[1]=yr*qn+br*cr+Sr*ur+gr*dr,pr[2]=yr*nr+br*Qn+Sr*hr+gr*fr,pr[3]=yr*Hn+br*ar+Sr*or+gr*vr,pr[4]=kr*Vn+wr*lr+Er*er+Pr*mr,pr[5]=kr*qn+wr*cr+Er*ur+Pr*dr,pr[6]=kr*nr+wr*Qn+Er*hr+Pr*fr,pr[7]=kr*Hn+wr*ar+Er*or+Pr*vr,pr[8]=_r*Vn+Mr*lr+Or*er+Rr*mr,pr[9]=_r*qn+Mr*cr+Or*ur+Rr*dr,pr[10]=_r*nr+Mr*Qn+Or*hr+Rr*fr,pr[11]=_r*Hn+Mr*ar+Or*or+Rr*vr,pr[12]=Lr*Vn+jr*lr+Gr*er+Hr*mr,pr[13]=Lr*qn+jr*cr+Gr*ur+Hr*dr,pr[14]=Lr*nr+jr*Qn+Gr*hr+Hr*fr,pr[15]=Lr*Hn+jr*ar+Gr*or+Hr*vr,this._identityCalculated=!1,this}function Rn(Vn){var qn=Vn.props;return this.transform(qn[0],qn[1],qn[2],qn[3],qn[4],qn[5],qn[6],qn[7],qn[8],qn[9],qn[10],qn[11],qn[12],qn[13],qn[14],qn[15])}function Bn(){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(Vn){for(var qn=0;qn<16;){if(Vn.props[qn]!==this.props[qn])return!1;qn+=1}return!0}function vn(Vn){var qn;for(qn=0;qn<16;qn+=1)Vn.props[qn]=this.props[qn];return Vn}function gn(Vn){var qn;for(qn=0;qn<16;qn+=1)this.props[qn]=Vn[qn]}function Fn(Vn,qn,nr){return{x:Vn*this.props[0]+qn*this.props[4]+nr*this.props[8]+this.props[12],y:Vn*this.props[1]+qn*this.props[5]+nr*this.props[9]+this.props[13],z:Vn*this.props[2]+qn*this.props[6]+nr*this.props[10]+this.props[14]}}function zn(Vn,qn,nr){return Vn*this.props[0]+qn*this.props[4]+nr*this.props[8]+this.props[12]}function Un(Vn,qn,nr){return Vn*this.props[1]+qn*this.props[5]+nr*this.props[9]+this.props[13]}function Wn(Vn,qn,nr){return Vn*this.props[2]+qn*this.props[6]+nr*this.props[10]+this.props[14]}function tr(){var Vn=this.props[0]*this.props[5]-this.props[1]*this.props[4],qn=this.props[5]/Vn,nr=-this.props[1]/Vn,Hn=-this.props[4]/Vn,lr=this.props[0]/Vn,cr=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/Vn,Qn=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/Vn,ar=new Matrix;return ar.props[0]=qn,ar.props[1]=nr,ar.props[4]=Hn,ar.props[5]=lr,ar.props[12]=cr,ar.props[13]=Qn,ar}function Yn(Vn){var qn=this.getInverseMatrix();return qn.applyToPointArray(Vn[0],Vn[1],Vn[2]||0)}function Xn(Vn){var qn,nr=Vn.length,Hn=[];for(qn=0;qn<nr;qn+=1)Hn[qn]=Yn(Vn[qn]);return Hn}function Jn(Vn,qn,nr){var Hn=createTypedArray("float32",6);if(this.isIdentity())Hn[0]=Vn[0],Hn[1]=Vn[1],Hn[2]=qn[0],Hn[3]=qn[1],Hn[4]=nr[0],Hn[5]=nr[1];else{var lr=this.props[0],cr=this.props[1],Qn=this.props[4],ar=this.props[5],er=this.props[12],ur=this.props[13];Hn[0]=Vn[0]*lr+Vn[1]*Qn+er,Hn[1]=Vn[0]*cr+Vn[1]*ar+ur,Hn[2]=qn[0]*lr+qn[1]*Qn+er,Hn[3]=qn[0]*cr+qn[1]*ar+ur,Hn[4]=nr[0]*lr+nr[1]*Qn+er,Hn[5]=nr[0]*cr+nr[1]*ar+ur}return Hn}function ir(Vn,qn,nr){var Hn;return this.isIdentity()?Hn=[Vn,qn,nr]:Hn=[Vn*this.props[0]+qn*this.props[4]+nr*this.props[8]+this.props[12],Vn*this.props[1]+qn*this.props[5]+nr*this.props[9]+this.props[13],Vn*this.props[2]+qn*this.props[6]+nr*this.props[10]+this.props[14]],Hn}function sr(Vn,qn){if(this.isIdentity())return Vn+","+qn;var nr=this.props;return Math.round((Vn*nr[0]+qn*nr[4]+nr[12])*100)/100+","+Math.round((Vn*nr[1]+qn*nr[5]+nr[13])*100)/100}function Zn(){for(var Vn=0,qn=this.props,nr="matrix3d(",Hn=1e4;Vn<16;)nr+=h(qn[Vn]*Hn)/Hn,nr+=Vn===15?")":",",Vn+=1;return nr}function Gn(Vn){var qn=1e4;return Vn<1e-6&&Vn>0||Vn>-1e-6&&Vn<0?h(Vn*qn)/qn:Vn}function Kn(){var Vn=this.props,qn=Gn(Vn[0]),nr=Gn(Vn[1]),Hn=Gn(Vn[4]),lr=Gn(Vn[5]),cr=Gn(Vn[12]),Qn=Gn(Vn[13]);return"matrix("+qn+","+nr+","+Hn+","+lr+","+cr+","+Qn+")"}return function(){this.reset=d,this.rotate=p,this.rotateX=v,this.rotateY=m,this.rotateZ=g,this.skew=x,this.skewFromAxis=Pn,this.shear=y,this.scale=b,this.setTransform=_,this.translate=J,this.transform=re,this.multiply=Rn,this.applyToPoint=Fn,this.applyToX=zn,this.applyToY=Un,this.applyToZ=Wn,this.applyToPointArray=ir,this.applyToTriplePoints=Jn,this.applyToPointStringified=sr,this.toCSS=Zn,this.to2dCSS=Kn,this.clone=vn,this.cloneFromProps=gn,this.equals=w,this.inversePoints=Xn,this.inversePoint=Yn,this.getInverseMatrix=tr,this._t=this.transform,this.isIdentity=Bn,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,p){u[d]||(u[d]=p)}function h(d,p,v){return new u[d](p,v)}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 p=[];u<=1?p.push({s:c,e:u}):c>=1?p.push({s:c-1,e:u-1}):(p.push({s:c,e:1}),p.push({s:0,e:u-1}));var v=[],m,g=p.length,y;for(m=0;m<g;m+=1)if(y=p[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,v.push([x,Pn])}return v.length||v.push([0,0]),v},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 p,v,m=this.shapes.length,g,y,x,Pn,b,_=0;if(f===u)for(v=0;v<m;v+=1)this.shapes[v].localShapeCollection.releaseShapes(),this.shapes[v].shape._mdf=!0,this.shapes[v].shape.paths=this.shapes[v].localShapeCollection,this._mdf&&(this.shapes[v].pathsData.length=0);else if(f===1&&u===0||f===0&&u===1){if(this._mdf)for(v=0;v<m;v+=1)this.shapes[v].pathsData.length=0,this.shapes[v].shape._mdf=!0}else{var J=[],re,Rn;for(v=0;v<m;v+=1)if(re=this.shapes[v],!re.shape._mdf&&!this._mdf&&!c&&this.m!==2)re.shape.paths=re.localShapeCollection;else{if(p=re.shape.paths,y=p._length,b=0,!re.shape._mdf&&re.pathsData.length)b=re.totalShapeLength;else{for(x=this.releasePathsData(re.pathsData),g=0;g<y;g+=1)Pn=bez.getSegmentsLength(p.shapes[g]),x.push(Pn),b+=Pn.totalLength;re.totalShapeLength=b,re.pathsData=x}_+=b,re.shape._mdf=!0}var Bn=u,w=f,vn=0,gn;for(v=m-1;v>=0;v-=1)if(re=this.shapes[v],re.shape._mdf){for(Rn=re.localShapeCollection,Rn.releaseShapes(),this.m===2&&m>1?(gn=this.calculateShapeEdges(u,f,re.totalShapeLength,vn,_),vn+=re.totalShapeLength):gn=[[Bn,w]],y=gn.length,g=0;g<y;g+=1){Bn=gn[g][0],w=gn[g][1],J.length=0,w<=1?J.push({s:re.totalShapeLength*Bn,e:re.totalShapeLength*w}):Bn>=1?J.push({s:re.totalShapeLength*(Bn-1),e:re.totalShapeLength*(w-1)}):(J.push({s:re.totalShapeLength*Bn,e:re.totalShapeLength}),J.push({s:0,e:re.totalShapeLength*(w-1)}));var Fn=this.addShapes(re,J[0]);if(J[0].s!==J[0].e){if(J.length>1){var zn=re.shape.paths.shapes[re.shape.paths._length-1];if(zn.c){var Un=Fn.pop();this.addPaths(Fn,Rn),Fn=this.addShapes(re,J[1],Un)}else this.addPaths(Fn,Rn),Fn=this.addShapes(re,J[1])}this.addPaths(Fn,Rn)}}re.shape.paths=Rn}}},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,p,v){d.setXYAt(u[0],u[1],"o",p),d.setXYAt(f[0],f[1],"i",p+1),v&&d.setXYAt(c[0],c[1],"v",p),d.setXYAt(h[0],h[1],"v",p+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,p,v=c.shape.paths._length,m,g,y=0,x,Pn,b,_,J=[],re,Rn=!0;for(f?(Pn=f._length,re=f._length):(f=shapePool.newElement(),Pn=0,re=0),J.push(f),p=0;p<v;p+=1){for(b=h[p].lengths,f.c=d[p].c,g=d[p].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[p].v[m-1],d[p].o[m-1],d[p].i[m],d[p].v[m],f,Pn,Rn),Rn=!1):(_=bez.getNewSegment(d[p].v[m-1],d[p].v[m],d[p].o[m-1],d[p].i[m],(u.s-y)/x.addedLength,(u.e-y)/x.addedLength,b[m-1]),this.addSegmentFromArray(_,f,Pn,Rn),Rn=!1,f.c=!1),y+=x.addedLength,Pn+=1;if(d[p].c&&b.length){if(x=b[m-1],y<=u.e){var Bn=b[m-1].addedLength;u.s<=y&&u.e>=y+Bn?(this.addSegment(d[p].v[m-1],d[p].o[m-1],d[p].i[0],d[p].v[0],f,Pn,Rn),Rn=!1):(_=bez.getNewSegment(d[p].v[m-1],d[p].v[0],d[p].o[m-1],d[p].i[0],(u.s-y)/Bn,(u.e-y)/Bn,b[m-1]),this.addSegmentFromArray(_,f,Pn,Rn),Rn=!1,f.c=!1)}else f.c=!1;y+=x.addedLength,Pn+=1}if(f._length&&(f.setXYAt(f.v[re][0],f.v[re][1],"i",re),f.setXYAt(f.v[f._length-1][0],f.v[f._length-1][1],"o",f._length-1)),y>u.e)break;p<v-1&&(f=shapePool.newElement(),Rn=!0,J.push(f),Pn=0)}return J};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,p=0;for(p=0;p<d;p+=1)h[0]+=c.v[p][0],h[1]+=c.v[p][1];h[0]/=d,h[1]/=d;var v=shapePool.newElement();v.c=c.c;var m,g,y,x,Pn,b;for(p=0;p<d;p+=1)m=c.v[p][0]+(h[0]-c.v[p][0])*f,g=c.v[p][1]+(h[1]-c.v[p][1])*f,y=c.o[p][0]+(h[0]-c.o[p][0])*-f,x=c.o[p][1]+(h[1]-c.o[p][1])*-f,Pn=c.i[p][0]+(h[0]-c.i[p][0])*-f,b=c.i[p][1]+(h[1]-c.i[p][1])*-f,v.setTripleAt(m,g,y,x,Pn,b,p);return v},PuckerAndBloatModifier.prototype.processShapes=function(c){var u,f,h=this.shapes.length,d,p,v=this.amount.v;if(v!==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,p=m.shape.paths._length,d=0;d<p;d+=1)g.addShape(this.processPath(u[d],v));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,_=this.py;b._caching.lastFrame+b.offsetTime<=b.keyframes[0].t?(x[0]=b.getValueAtTime((b.keyframes[0].t+.01)/y,0),x[1]=_.getValueAtTime((_.keyframes[0].t+.01)/y,0),Pn[0]=b.getValueAtTime(b.keyframes[0].t/y,0),Pn[1]=_.getValueAtTime(_.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]=_.getValueAtTime(_.keyframes[_.keyframes.length-1].t/y,0),Pn[0]=b.getValueAtTime((b.keyframes[b.keyframes.length-1].t-.01)/y,0),Pn[1]=_.getValueAtTime((_.keyframes[_.keyframes.length-1].t-.01)/y,0)):(x=[b.pv,_.pv],Pn[0]=b.getValueAtTime((b._caching.lastFrame+b.offsetTime-.01)/y,b.offsetTime),Pn[1]=_.getValueAtTime((_._caching.lastFrame+_.offsetTime-.01)/y,_.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 p(g){this._addDynamicProperty(g),this.elem.addDynamicProperty(g),this._isDirty=!0}function v(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)}v.prototype={applyToMatrix:u,getValue:f,precalculateMatrix:h,autoOrient:d},extendPrototype([DynamicPropertyContainer],v),v.prototype.addDynamicProperty=p,v.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function m(g,y,x){return new v(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,p){var v=p?-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]*v*d,h.p.v[1]*v*d,h.p.v[2]),u.translate(-h.a.v[0],-h.a.v[1],h.a.v[2]),u.rotate(-h.r.v*v*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(p?1/m:m,p?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,p,v=!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(),v=!0}p=0;var y;for(h=0;h<=this._groups.length-1;h+=1){if(y=p<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}p+=1}this._currentCopies=m;var b=this.o.v,_=b%1,J=b>0?Math.floor(b):Math.ceil(b),re=this.pMatrix.props,Rn=this.rMatrix.props,Bn=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<J;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;_&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,_,!1),w+=_)}else if(b<0){for(;w>J;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;_&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-_,!0),w-=_)}h=this.data.m===1?0:this._currentCopies-1,d=this.data.m===1?1:-1,p=this._currentCopies;for(var vn,gn;p;){if(u=this.elemsData[h].it,f=u[u.length-1].transform.mProps.v.props,gn=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(Rn[0],Rn[1],Rn[2],Rn[3],Rn[4],Rn[5],Rn[6],Rn[7],Rn[8],Rn[9],Rn[10],Rn[11],Rn[12],Rn[13],Rn[14],Rn[15]),this.matrix.transform(Bn[0],Bn[1],Bn[2],Bn[3],Bn[4],Bn[5],Bn[6],Bn[7],Bn[8],Bn[9],Bn[10],Bn[11],Bn[12],Bn[13],Bn[14],Bn[15]),this.matrix.transform(re[0],re[1],re[2],re[3],re[4],re[5],re[6],re[7],re[8],re[9],re[10],re[11],re[12],re[13],re[14],re[15]),vn=0;vn<gn;vn+=1)f[vn]=this.matrix.props[vn];this.matrix.reset()}else for(this.matrix.reset(),vn=0;vn<gn;vn+=1)f[vn]=this.matrix.props[vn];w+=1,p-=1,h+=d}}else for(p=this._currentCopies,h=0,d=1;p;)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,p-=1,h+=d;return v},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,p,v,m,g,y,x,Pn=0,b,_,J,re,Rn,Bn;for(h=0;h<d;h+=1)p=c.v[h],m=c.o[h],v=c.i[h],p[0]===m[0]&&p[1]===m[1]&&p[0]===v[0]&&p[1]===v[1]?(h===0||h===d-1)&&!c.c?(f.setTripleAt(p[0],p[1],m[0],m[1],v[0],v[1],Pn),Pn+=1):(h===0?g=c.v[d-1]:g=c.v[h-1],y=Math.sqrt(Math.pow(p[0]-g[0],2)+Math.pow(p[1]-g[1],2)),x=y?Math.min(y/2,u)/y:0,Rn=p[0]+(g[0]-p[0])*x,b=Rn,Bn=p[1]-(p[1]-g[1])*x,_=Bn,J=b-(b-p[0])*roundCorner,re=_-(_-p[1])*roundCorner,f.setTripleAt(b,_,J,re,Rn,Bn,Pn),Pn+=1,h===d-1?g=c.v[0]:g=c.v[h+1],y=Math.sqrt(Math.pow(p[0]-g[0],2)+Math.pow(p[1]-g[1],2)),x=y?Math.min(y/2,u)/y:0,J=p[0]+(g[0]-p[0])*x,b=J,re=p[1]+(g[1]-p[1])*x,_=re,Rn=b-(b-p[0])*roundCorner,Bn=_-(_-p[1])*roundCorner,f.setTripleAt(b,_,J,re,Rn,Bn,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,p,v=this.rd.v;if(v!==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,p=m.shape.paths._length,d=0;d<p;d+=1)g.addShape(this.processPath(u[d],v));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 p=Math.sqrt(h)/(2*c);return[d-p,d+p]}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 p=polynomialCoefficients(c[0],u[0],f[0],h[0]),v=polynomialCoefficients(c[1],u[1],f[1],h[1]);this.a=[p[0],v[0]],this.b=[p[1],v[1]],this.c=[p[2],v[2]],this.d=[p[3],v[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),p=lerpPoint(f,h,c),v=lerpPoint(d,p,c);return[new PolynomialBezier(this.points[0],u,d,v,!0),new PolynomialBezier(v,p,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 p=quadRoots(3*c.a[u],2*c.b[u],c.c[u]),v=0;v<p.length;v+=1)if(p[v]>0&&p[v]<1){var m=c.point(p[v])[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,p){if(boxIntersect(c,u)){if(f>=p||c.width<=h&&c.height<=h&&u.width<=h&&u.height<=h){d.push([c.t,u.t]);return}var v=splitData(c),m=splitData(u);intersectsImpl(v[0],m[0],f+1,h,d,p),intersectsImpl(v[0],m[1],f+1,h,d,p),intersectsImpl(v[1],m[0],f+1,h,d,p),intersectsImpl(v[1],m[1],f+1,h,d,p)}}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],p=[u[0],u[1],1],v=[f[0],f[1],1],m=[h[0],h[1],1],g=crossProduct(crossProduct(d,p),crossProduct(v,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,p,v){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)*p,x-Math.sin(m)*p,y+Math.cos(g)*v,x-Math.sin(g)*v,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],p=c.v[h],v=getPerpendicularVector(d,p);return Math.atan2(0,1)-Math.atan2(v[1],v[0])}function zigZagCorner(c,u,f,h,d,p,v){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=p===2?Math.sqrt(Math.pow(g[0]-y[0],2)+Math.pow(g[1]-y[1],2)):0,b=p===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,v,h,b/((d+1)*2),Pn/((d+1)*2))}function zigZagSegment(c,u,f,h,d,p){for(var v=0;v<h;v+=1){var m=(v+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,p,f,g/((h+1)*2),g/((h+1)*2)),p=-p}return p}ZigZagModifier.prototype.processPath=function(c,u,f,h){var d=c._length,p=shapePool.newElement();if(p.c=c.c,c.c||(d-=1),d===0)return p;var v=-1,m=PolynomialBezier.shapeSegment(c,0);zigZagCorner(p,c,0,u,f,h,v);for(var g=0;g<d;g+=1)v=zigZagSegment(p,m,u,f,h,-v),g===d-1&&!c.c?m=null:m=PolynomialBezier.shapeSegment(c,(g+1)%d),zigZagCorner(p,c,g+1,u,f,h,v);return p},ZigZagModifier.prototype.processShapes=function(c){var u,f,h=this.shapes.length,d,p,v=this.amplitude.v,m=Math.max(0,Math.round(this.frequency.v)),g=this.pointsType.v;if(v!==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,p=y.shape.paths._length,d=0;d<p;d+=1)x.addShape(this.processPath(u[d],v,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,p,v,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],p=g[1],g=linearOffset(c.points[2],c.points[3],u),v=g[0],m=g[1];var y=lineIntersection(f,h,d,p);y===null&&(y=h);var x=lineIntersection(v,m,d,p);return x===null&&(x=v),new PolynomialBezier(f,y,x,m)}function joinLines(c,u,f,h,d){var p=u.points[3],v=f.points[0];if(h===3||pointEqual(p,v))return p;if(h===2){var m=-u.tangentAngle(1),g=-f.tangentAngle(0)+Math.PI,y=lineIntersection(p,polarOffset(p,m+Math.PI/2,100),v,polarOffset(v,m+Math.PI/2,100)),x=y?pointDistance(y,p):pointDistance(p,v)/2,Pn=polarOffset(p,m,2*x*roundCorner);return c.setXYAt(Pn[0],Pn[1],"o",c.length()-1),Pn=polarOffset(v,g,2*x*roundCorner),c.setTripleAt(v[0],v[1],v[0],v[1],Pn[0],Pn[1],c.length()),v}var b=pointEqual(p,u.points[2])?u.points[0]:u.points[2],_=pointEqual(v,f.points[1])?f.points[3]:f.points[1],J=lineIntersection(b,p,v,_);return J&&pointDistance(J,p)<d?(c.setTripleAt(J[0],J[1],J[0],J[1],J[0],J[1],c.length()),J):p}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,p,v;if(f.length===0)return[offsetSegment(c,u)];if(f.length===1||floatEqual(f[1],1))return p=c.split(f[0]),h=p[0],d=p[1],[offsetSegment(h,u),offsetSegment(d,u)];p=c.split(f[0]),h=p[0];var m=(f[1]-f[0])/(1-f[0]);return p=p[1].split(m),v=p[0],d=p[1],[offsetSegment(h,u),offsetSegment(v,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 p=c.length();c.c||(p-=1);var v,m,g,y=[];for(v=0;v<p;v+=1)g=PolynomialBezier.shapeSegment(c,v),y.push(offsetSegmentSplit(g,u));if(!c.c)for(v=p-1;v>=0;v-=1)g=PolynomialBezier.shapeSegmentInverted(c,v),y.push(offsetSegmentSplit(g,u));y=pruneIntersections(y);var x=null,Pn=null;for(v=0;v<y.length;v+=1){var b=y[v];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,p,v=this.amount.v,m=this.miterLimit.v,g=this.lineJoin;if(v!==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,p=y.shape.paths._length,d=0;d<p;d+=1)x.addShape(this.processPath(u[d],v,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,p,v=0;v<d;v+=1)switch(p=u[v].toLowerCase(),p){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,p=917601,v=917626,m=65039,g=8205,y=127462,x=127487,Pn=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function b(Gn){var Kn=Gn.split(","),Vn,qn=Kn.length,nr=[];for(Vn=0;Vn<qn;Vn+=1)Kn[Vn]!=="sans-serif"&&Kn[Vn]!=="monospace"&&nr.push(Kn[Vn]);return nr.join(",")}function _(Gn,Kn){var Vn=createTag("span");Vn.setAttribute("aria-hidden",!0),Vn.style.fontFamily=Kn;var qn=createTag("span");qn.innerText="giItT1WQy@!-/#",Vn.style.position="absolute",Vn.style.left="-10000px",Vn.style.top="-10000px",Vn.style.fontSize="300px",Vn.style.fontVariant="normal",Vn.style.fontStyle="normal",Vn.style.fontWeight="normal",Vn.style.letterSpacing="0",Vn.appendChild(qn),document.body.appendChild(Vn);var nr=qn.offsetWidth;return qn.style.fontFamily=b(Gn)+", "+Kn,{node:qn,w:nr,parent:Vn}}function J(){var Gn,Kn=this.fonts.length,Vn,qn,nr=Kn;for(Gn=0;Gn<Kn;Gn+=1)this.fonts[Gn].loaded?nr-=1:this.fonts[Gn].fOrigin==="n"||this.fonts[Gn].origin===0?this.fonts[Gn].loaded=!0:(Vn=this.fonts[Gn].monoCase.node,qn=this.fonts[Gn].monoCase.w,Vn.offsetWidth!==qn?(nr-=1,this.fonts[Gn].loaded=!0):(Vn=this.fonts[Gn].sansCase.node,qn=this.fonts[Gn].sansCase.w,Vn.offsetWidth!==qn&&(nr-=1,this.fonts[Gn].loaded=!0)),this.fonts[Gn].loaded&&(this.fonts[Gn].sansCase.parent.parentNode.removeChild(this.fonts[Gn].sansCase.parent),this.fonts[Gn].monoCase.parent.parentNode.removeChild(this.fonts[Gn].monoCase.parent)));nr!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function re(Gn,Kn){var Vn=document.body&&Kn?"svg":"canvas",qn,nr=getFontProperties(Gn);if(Vn==="svg"){var Hn=createNS("text");Hn.style.fontSize="100px",Hn.setAttribute("font-family",Gn.fFamily),Hn.setAttribute("font-style",nr.style),Hn.setAttribute("font-weight",nr.weight),Hn.textContent="1",Gn.fClass?(Hn.style.fontFamily="inherit",Hn.setAttribute("class",Gn.fClass)):Hn.style.fontFamily=Gn.fFamily,Kn.appendChild(Hn),qn=Hn}else{var lr=new OffscreenCanvas(500,500).getContext("2d");lr.font=nr.style+" "+nr.weight+" 100px "+Gn.fFamily,qn=lr}function cr(Qn){return Vn==="svg"?(qn.textContent=Qn,qn.getComputedTextLength()):qn.measureText(Qn).width}return{measureText:cr}}function Rn(Gn,Kn){if(!Gn){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=Gn.list;return}if(!document.body){this.isLoaded=!0,Gn.list.forEach(function(hr){hr.helper=re(hr),hr.cache={}}),this.fonts=Gn.list;return}var Vn=Gn.list,qn,nr=Vn.length,Hn=nr;for(qn=0;qn<nr;qn+=1){var lr=!0,cr,Qn;if(Vn[qn].loaded=!1,Vn[qn].monoCase=_(Vn[qn].fFamily,"monospace"),Vn[qn].sansCase=_(Vn[qn].fFamily,"sans-serif"),!Vn[qn].fPath)Vn[qn].loaded=!0,Hn-=1;else if(Vn[qn].fOrigin==="p"||Vn[qn].origin===3){if(cr=document.querySelectorAll('style[f-forigin="p"][f-family="'+Vn[qn].fFamily+'"], style[f-origin="3"][f-family="'+Vn[qn].fFamily+'"]'),cr.length>0&&(lr=!1),lr){var ar=createTag("style");ar.setAttribute("f-forigin",Vn[qn].fOrigin),ar.setAttribute("f-origin",Vn[qn].origin),ar.setAttribute("f-family",Vn[qn].fFamily),ar.type="text/css",ar.innerText="@font-face {font-family: "+Vn[qn].fFamily+"; font-style: normal; src: url('"+Vn[qn].fPath+"');}",Kn.appendChild(ar)}}else if(Vn[qn].fOrigin==="g"||Vn[qn].origin===1){for(cr=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Qn=0;Qn<cr.length;Qn+=1)cr[Qn].href.indexOf(Vn[qn].fPath)!==-1&&(lr=!1);if(lr){var er=createTag("link");er.setAttribute("f-forigin",Vn[qn].fOrigin),er.setAttribute("f-origin",Vn[qn].origin),er.type="text/css",er.rel="stylesheet",er.href=Vn[qn].fPath,document.body.appendChild(er)}}else if(Vn[qn].fOrigin==="t"||Vn[qn].origin===2){for(cr=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Qn=0;Qn<cr.length;Qn+=1)Vn[qn].fPath===cr[Qn].src&&(lr=!1);if(lr){var ur=createTag("link");ur.setAttribute("f-forigin",Vn[qn].fOrigin),ur.setAttribute("f-origin",Vn[qn].origin),ur.setAttribute("rel","stylesheet"),ur.setAttribute("href",Vn[qn].fPath),Kn.appendChild(ur)}}Vn[qn].helper=re(Vn[qn],Kn),Vn[qn].cache={},this.fonts.push(Vn[qn])}Hn===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Bn(Gn){if(Gn){this.chars||(this.chars=[]);var Kn,Vn=Gn.length,qn,nr=this.chars.length,Hn;for(Kn=0;Kn<Vn;Kn+=1){for(qn=0,Hn=!1;qn<nr;)this.chars[qn].style===Gn[Kn].style&&this.chars[qn].fFamily===Gn[Kn].fFamily&&this.chars[qn].ch===Gn[Kn].ch&&(Hn=!0),qn+=1;Hn||(this.chars.push(Gn[Kn]),nr+=1)}}}function w(Gn,Kn,Vn){for(var qn=0,nr=this.chars.length;qn<nr;){if(this.chars[qn].ch===Gn&&this.chars[qn].style===Kn&&this.chars[qn].fFamily===Vn)return this.chars[qn];qn+=1}return(typeof Gn=="string"&&Gn.charCodeAt(0)!==13||!Gn)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",Gn,Kn,Vn)),u}function vn(Gn,Kn,Vn){var qn=this.getFontByName(Kn),nr=Gn;if(!qn.cache[nr]){var Hn=qn.helper;if(Gn===" "){var lr=Hn.measureText("|"+Gn+"|"),cr=Hn.measureText("||");qn.cache[nr]=(lr-cr)/100}else qn.cache[nr]=Hn.measureText(Gn)/100}return qn.cache[nr]*Vn}function gn(Gn){for(var Kn=0,Vn=this.fonts.length;Kn<Vn;){if(this.fonts[Kn].fName===Gn)return this.fonts[Kn];Kn+=1}return this.fonts[0]}function Fn(Gn){var Kn=0,Vn=Gn.charCodeAt(0);if(Vn>=55296&&Vn<=56319){var qn=Gn.charCodeAt(1);qn>=56320&&qn<=57343&&(Kn=(Vn-55296)*1024+qn-56320+65536)}return Kn}function zn(Gn,Kn){var Vn=Gn.toString(16)+Kn.toString(16);return Pn.indexOf(Vn)!==-1}function Un(Gn){return Gn===g}function Wn(Gn){return Gn===m}function tr(Gn){var Kn=Fn(Gn);return Kn>=y&&Kn<=x}function Yn(Gn){return tr(Gn.substr(0,2))&&tr(Gn.substr(2,2))}function Xn(Gn){return f.indexOf(Gn)!==-1}function Jn(Gn,Kn){var Vn=Fn(Gn.substr(Kn,2));if(Vn!==h)return!1;var qn=0;for(Kn+=2;qn<5;){if(Vn=Fn(Gn.substr(Kn,2)),Vn<p||Vn>v)return!1;qn+=1,Kn+=2}return Fn(Gn.substr(Kn,2))===d}function ir(){this.isLoaded=!0}var sr=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)};sr.isModifier=zn,sr.isZeroWidthJoiner=Un,sr.isFlagEmoji=Yn,sr.isRegionalCode=tr,sr.isCombinedCharacter=Xn,sr.isRegionalFlag=Jn,sr.isVariationSelector=Wn,sr.BLACK_FLAG_CODE_POINT=h;var Zn={addChars:Bn,addFonts:Rn,getCharData:w,getFontByName:gn,measureText:vn,checkLoadedFonts:J,setIsLoaded:ir};return sr.prototype=Zn,sr}();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,p;for(h=0;h<d;h+=1)p=new GroupEffect(f[h],u),this.effectElements.push(p)}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,p=this.data.ef;for(f=0;f<h;f+=1){switch(d=null,p[f].ty){case 0:d=new SliderEffect(p[f],u,this);break;case 1:d=new AngleEffect(p[f],u,this);break;case 2:d=new ColorEffect(p[f],u,this);break;case 3:d=new PointEffect(p[f],u,this);break;case 4:case 7:d=new CheckboxEffect(p[f],u,this);break;case 10:d=new LayerIndexEffect(p[f],u,this);break;case 11:d=new MaskIndexEffect(p[f],u,this);break;case 5:d=new EffectsManager(p[f],u);break;default:d=new NoValueEffect(p[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"),p=u("text"),v=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=v(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=p(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,p=0,v=d.length;p<v;)d[p].ind==u&&(!h[p]||h[p]===!0?(this.buildItem(p),this.addPendingElement(c)):(f.push(h[p]),h[p].setAsParent(),d[p].parent!==void 0?this.buildElementParenting(c,d[p].parent,f):c.setHierarchy(f))),p+=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 p=this.finalTransform.localOpacity;for(u=0;u<f;u+=1)p*=this.localTransforms[u].opacity*.01;this.finalTransform.localOpacity=p}}},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 p,v=f.length,m;for(p=0;p<v;p+=1)m=f[p].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,p=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(p),this.solidPath="";var v,m=this.masksProperties,g=0,y=[],x,Pn,b=createElementID(),_,J,re,Rn,Bn="clipPath",w="clip-path";for(d=0;d<p;d+=1)if((m[d].mode!=="a"&&m[d].mode!=="n"||m[d].inv||m[d].o.k!==100||m[d].o.x)&&(Bn="mask",w="mask"),(m[d].mode==="s"||m[d].mode==="i")&&g===0?(_=createNS("rect"),_.setAttribute("fill","#ffffff"),_.setAttribute("width",this.element.comp.data.w||0),_.setAttribute("height",this.element.comp.data.h||0),y.push(_)):_=null,v=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:v,lastPath:""},h.appendChild(v);else{g+=1,v.setAttribute("fill",m[d].mode==="s"?"#000000":"#ffffff"),v.setAttribute("clip-rule","nonzero");var vn;if(m[d].x.k!==0?(Bn="mask",w="mask",Rn=PropertyFactory.getProp(this.element,m[d].x,0,null,this.element),vn=createElementID(),J=createNS("filter"),J.setAttribute("id",vn),re=createNS("feMorphology"),re.setAttribute("operator","erode"),re.setAttribute("in","SourceGraphic"),re.setAttribute("radius","0"),J.appendChild(re),h.appendChild(J),v.setAttribute("stroke",m[d].mode==="s"?"#000000":"#ffffff")):(re=null,Rn=null),this.storedData[d]={elem:v,x:Rn,expan:re,lastPath:"",lastOperator:"",filterId:vn,lastRadius:0},m[d].mode==="i"){Pn=y.length;var gn=createNS("g");for(x=0;x<Pn;x+=1)gn.appendChild(y[x]);var Fn=createNS("mask");Fn.setAttribute("mask-type","alpha"),Fn.setAttribute("id",b+"_"+g),Fn.appendChild(v),h.appendChild(Fn),gn.setAttribute("mask","url("+getLocationHref()+"#"+b+"_"+g+")"),y.length=0,y.push(gn)}else y.push(v);m[d].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[d]={elem:v,lastPath:"",op:PropertyFactory.getProp(this.element,m[d].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,m[d],3),invRect:_},this.viewData[d].prop.k||this.drawPath(m[d],this.viewData[d].prop.v,this.viewData[d])}for(this.maskElement=createNS(Bn),p=y.length,d=0;d<p;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,p;for(p=u._length,d=1;d<p;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&&p>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 v="";f.elem&&(u.c&&(v=c.inv?this.solidPath+h:h),f.elem.setAttribute("d",v)),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 p=createNS("filter");return p.setAttribute("id",h),d!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}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(),p=filtersFactory.createFilter(d,!0),v=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(p,c.effectsManager.effectElements[u],c,idPrefix+v,f),f=idPrefix+v,registeredEffects$1[g].countsAsEffect&&(v+=1)}m&&this.filters.push(m)}v&&(c.globalData.defs.appendChild(p),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 p=createElementID();if(h.setAttribute("id",p),h.appendChild(d),this.globalData.defs.appendChild(h),this.checkMasks()){var v=createNS("g");v.setAttribute("clip-path","url("+getLocationHref()+"#"+p+")"),v.appendChild(this.layerElement),this.transformedElement=v,u?u.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+p+")")}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,p,v;if(u===1||u===3){var m=createNS("mask");m.setAttribute("id",f),m.setAttribute("mask-type",u===3?"luminance":"alpha"),p=createNS("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),m.appendChild(p),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()),v=createNS("g"),v.appendChild(p),m.appendChild(v),v.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),p=createNS("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),y.appendChild(p),featureSupport.maskType||(g.setAttribute("mask-type","luminance"),d.appendChild(filtersFactory.createAlphaToLuminanceFilter()),v=createNS("g"),y.appendChild(b),v.appendChild(this.layerElement),y.appendChild(v)),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,p=u.length||0,v;for(d=0;d<p;d+=1)v=PropertyFactory.getProp(c,u[d].v,0,0,this),this.k=v.k||this.k,this.dataProps[d]={n:u[d].n,p:v};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=[],p,v,m;for(m=u.g.p*4,v=0;v<m;v+=4)p=createNS("stop"),h.appendChild(p),d.push(p);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,p=createNS("mask"),v=createNS("path");p.appendChild(v);var m=createElementID(),g=createElementID();p.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);v.setAttribute(c.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+m+")"),c.ty==="gs"&&(v.setAttribute("stroke-linecap",lineCapEnum[c.lc||2]),v.setAttribute("stroke-linejoin",lineJoinEnum[c.lj||2]),c.lj===1&&v.setAttribute("stroke-miterlimit",c.ml)),this.of=y,this.ms=p,this.ost=x,this.maskId=g,u.msElem=v}},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 p=u.o,v=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(p[g-1][0],p[g-1][1])+" "+d.applyToPointStringified(v[g][0],v[g][1])+" "+d.applyToPointStringified(m[g][0],m[g][1]);return h&&f&&(y+=" C"+d.applyToPointStringified(p[g-1][0],p[g-1][1])+" "+d.applyToPointStringified(v[0][0],v[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 v;case"tr":return d;case"no":return p;default:return null}}function d(Pn,b,_){(_||b.transform.op._mdf)&&b.transform.container.setAttribute("opacity",b.transform.op.v),(_||b.transform.mProps._mdf)&&b.transform.container.setAttribute("transform",b.transform.mProps.v.to2dCSS())}function p(){}function v(Pn,b,_){var J,re,Rn,Bn,w,vn,gn=b.styles.length,Fn=b.lvl,zn,Un,Wn,tr;for(vn=0;vn<gn;vn+=1){if(Bn=b.sh._mdf||_,b.styles[vn].lvl<Fn){for(Un=u.reset(),Wn=Fn-b.styles[vn].lvl,tr=b.transformers.length-1;!Bn&&Wn>0;)Bn=b.transformers[tr].mProps._mdf||Bn,Wn-=1,tr-=1;if(Bn)for(Wn=Fn-b.styles[vn].lvl,tr=b.transformers.length-1;Wn>0;)Un.multiply(b.transformers[tr].mProps.v),Wn-=1,tr-=1}else Un=c;if(zn=b.sh.paths,re=zn._length,Bn){for(Rn="",J=0;J<re;J+=1)w=zn.shapes[J],w&&w._length&&(Rn+=buildShapeString(w,w._length,w.c,Un));b.caches[vn]=Rn}else Rn=b.caches[vn];b.styles[vn].d+=Pn.hd===!0?"":Rn,b.styles[vn]._mdf=Bn||b.styles[vn]._mdf}}function m(Pn,b,_){var J=b.style;(b.c._mdf||_)&&J.pElem.setAttribute("fill","rgb("+bmFloor(b.c.v[0])+","+bmFloor(b.c.v[1])+","+bmFloor(b.c.v[2])+")"),(b.o._mdf||_)&&J.pElem.setAttribute("fill-opacity",b.o.v)}function g(Pn,b,_){y(Pn,b,_),x(Pn,b,_)}function y(Pn,b,_){var J=b.gf,re=b.g._hasOpacity,Rn=b.s.v,Bn=b.e.v;if(b.o._mdf||_){var w=Pn.ty==="gf"?"fill-opacity":"stroke-opacity";b.style.pElem.setAttribute(w,b.o.v)}if(b.s._mdf||_){var vn=Pn.t===1?"x1":"cx",gn=vn==="x1"?"y1":"cy";J.setAttribute(vn,Rn[0]),J.setAttribute(gn,Rn[1]),re&&!b.g._collapsable&&(b.of.setAttribute(vn,Rn[0]),b.of.setAttribute(gn,Rn[1]))}var Fn,zn,Un,Wn;if(b.g._cmdf||_){Fn=b.cst;var tr=b.g.c;for(Un=Fn.length,zn=0;zn<Un;zn+=1)Wn=Fn[zn],Wn.setAttribute("offset",tr[zn*4]+"%"),Wn.setAttribute("stop-color","rgb("+tr[zn*4+1]+","+tr[zn*4+2]+","+tr[zn*4+3]+")")}if(re&&(b.g._omdf||_)){var Yn=b.g.o;for(b.g._collapsable?Fn=b.cst:Fn=b.ost,Un=Fn.length,zn=0;zn<Un;zn+=1)Wn=Fn[zn],b.g._collapsable||Wn.setAttribute("offset",Yn[zn*2]+"%"),Wn.setAttribute("stop-opacity",Yn[zn*2+1])}if(Pn.t===1)(b.e._mdf||_)&&(J.setAttribute("x2",Bn[0]),J.setAttribute("y2",Bn[1]),re&&!b.g._collapsable&&(b.of.setAttribute("x2",Bn[0]),b.of.setAttribute("y2",Bn[1])));else{var Xn;if((b.s._mdf||b.e._mdf||_)&&(Xn=Math.sqrt(Math.pow(Rn[0]-Bn[0],2)+Math.pow(Rn[1]-Bn[1],2)),J.setAttribute("r",Xn),re&&!b.g._collapsable&&b.of.setAttribute("r",Xn)),b.e._mdf||b.h._mdf||b.a._mdf||_){Xn||(Xn=Math.sqrt(Math.pow(Rn[0]-Bn[0],2)+Math.pow(Rn[1]-Bn[1],2)));var Jn=Math.atan2(Bn[1]-Rn[1],Bn[0]-Rn[0]),ir=b.h.v;ir>=1?ir=.99:ir<=-1&&(ir=-.99);var sr=Xn*ir,Zn=Math.cos(Jn+b.a.v)*sr+Rn[0],Gn=Math.sin(Jn+b.a.v)*sr+Rn[1];J.setAttribute("fx",Zn),J.setAttribute("fy",Gn),re&&!b.g._collapsable&&(b.of.setAttribute("fx",Zn),b.of.setAttribute("fy",Gn))}}}function x(Pn,b,_){var J=b.style,re=b.d;re&&(re._mdf||_)&&re.dashStr&&(J.pElem.setAttribute("stroke-dasharray",re.dashStr),J.pElem.setAttribute("stroke-dashoffset",re.dashoffset[0])),b.c&&(b.c._mdf||_)&&J.pElem.setAttribute("stroke","rgb("+bmFloor(b.c.v[0])+","+bmFloor(b.c.v[1])+","+bmFloor(b.c.v[2])+")"),(b.o._mdf||_)&&J.pElem.setAttribute("stroke-opacity",b.o.v),(b.w._mdf||_)&&(J.pElem.setAttribute("stroke-width",b.w.v),J.msElem&&J.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,p,v=[],m=!1;for(h=0;h<d;h+=1){for(p=this.stylesList[h],m=!1,v.length=0,c=0;c<u;c+=1)f=this.shapes[c],f.styles.indexOf(p)!==-1&&(v.push(f),m=f._isAnimated||m);v.length>1&&m&&this.setShapesAsAnimated(v)}},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 p=c.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;f=new p(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),p=new SVGShapeData(u,f,d);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(c,p),p},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,p,v){var m=[].concat(p),g,y=c.length-1,x,Pn,b=[],_=[],J,re,Rn;for(g=y;g>=0;g-=1){if(Rn=this.searchProcessedElement(c[g]),Rn?u[g]=f[Rn-1]:c[g]._render=v,c[g].ty==="fl"||c[g].ty==="st"||c[g].ty==="gf"||c[g].ty==="gs"||c[g].ty==="no")Rn?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(!Rn)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,v),c[g]._render&&u[g].gr.parentNode!==h&&h.appendChild(u[g].gr)}else c[g].ty==="tr"?(Rn||(u[g]=this.createTransformElement(c[g],h)),J=u[g].transform,m.push(J)):c[g].ty==="sh"||c[g].ty==="rc"||c[g].ty==="el"||c[g].ty==="sr"?(Rn||(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"?(Rn?(re=u[g],re.closed=!1):(re=ShapeModifiers.getModifier(c[g].ty),re.init(this,c[g]),u[g]=re,this.shapeModifiers.push(re)),_.push(re)):c[g].ty==="rp"&&(Rn?(re=u[g],re.closed=!0):(re=ShapeModifiers.getModifier(c[g].ty),u[g]=re,re.init(this,c,g,u),this.shapeModifiers.push(re),v=!1),_.push(re));this.addProcessedElement(c[g],g+1)}for(y=b.length,g=0;g<y;g+=1)b[g].closed=!0;for(y=_.length,g=0;g<y;g+=1)_[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,p){this.o=c,this.sw=u,this.sc=f,this.fc=h,this.m=d,this.p=p,this._mdf={o:!0,sw:!!u,sc:!!f,fc:!!h,m:!0,p:!0}}LetterProps.prototype.update=function(c,u,f,h,d,p){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 v=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,v=!0),this.sw!==u&&(this.sw=u,this._mdf.sw=!0,v=!0),this.sc!==f&&(this.sc=f,this._mdf.sc=!0,v=!0),this.fc!==h&&(this.fc=h,this._mdf.fc=!0,v=!0),this.m!==d&&(this.m=d,this._mdf.m=!0,v=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,v=!0),v};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,p=c||this.data.d.k[this.keysIndex].s;for(h=0;h<d;h+=1)f!==this.keysIndex?p=this.effectsSequence[h](p,p.t):p=this.effectsSequence[h](this.currentData,p.t);u!==p&&this.setCurrentData(p),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,p,v=!1,m=!1,g="";f<h;)v=m,m=!1,d=c.charCodeAt(f),g=c.charAt(f),FontManager.isCombinedCharacter(d)?v=!0:d>=55296&&d<=56319?FontManager.isRegionalFlag(c,f)?g=c.substr(f,14):(p=c.charCodeAt(f+1),p>=56320&&p<=57343&&(FontManager.isModifier(d,p)?(g=c.substr(f,2),v=!0):FontManager.isFlagEmoji(c.substr(f,4))?g=c.substr(f,4):g=c.substr(f,2))):d>56319?(p=c.charCodeAt(f+1),FontManager.isVariationSelector(d)&&(v=!0)):FontManager.isZeroWidthJoiner(d)&&(v=!0,m=!0),v?(u[u.length-1]+=g,v=!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,p,v,m=0,g,y=f.m.g,x=0,Pn=0,b=0,_=[],J=0,re=0,Rn,Bn,w=u.getFontByName(c.f),vn,gn=0,Fn=getFontProperties(w);c.fWeight=Fn.weight,c.fStyle=Fn.style,c.finalSize=c.s,c.finalText=this.buildFinalText(c.t),p=c.finalText.length,c.finalLineHeight=c.lh;var zn=c.tr/1e3*c.finalSize,Un;if(c.sz)for(var Wn=!0,tr=c.sz[0],Yn=c.sz[1],Xn,Jn;Wn;){Jn=this.buildFinalText(c.t),Xn=0,J=0,p=Jn.length,zn=c.tr/1e3*c.finalSize;var ir=-1;for(d=0;d<p;d+=1)Un=Jn[d].charCodeAt(0),v=!1,Jn[d]===" "?ir=d:(Un===13||Un===3)&&(J=0,v=!0,Xn+=c.finalLineHeight||c.finalSize*1.2),u.chars?(vn=u.getCharData(Jn[d],w.fStyle,w.fFamily),gn=v?0:vn.w*c.finalSize/100):gn=u.measureText(Jn[d],c.f,c.finalSize),J+gn>tr&&Jn[d]!==" "?(ir===-1?p+=1:d=ir,Xn+=c.finalLineHeight||c.finalSize*1.2,Jn.splice(d,ir===d?1:0,"\r"),ir=-1,J=0):(J+=gn,J+=zn);Xn+=w.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&Yn<Xn?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Jn,p=c.finalText.length,Wn=!1)}J=-zn,gn=0;var sr=0,Zn;for(d=0;d<p;d+=1)if(v=!1,Zn=c.finalText[d],Un=Zn.charCodeAt(0),Un===13||Un===3?(sr=0,_.push(J),re=J>re?J:re,J=-2*zn,g="",v=!0,b+=1):g=Zn,u.chars?(vn=u.getCharData(Zn,w.fStyle,u.getFontByName(c.f).fFamily),gn=v?0:vn.w*c.finalSize/100):gn=u.measureText(g,c.f,c.finalSize),Zn===" "?sr+=gn+zn:(J+=gn+zn+sr,sr=0),h.push({l:gn,an:gn,add:x,n:v,anIndexes:[],val:g,line:b,animatorJustifyOffset:0}),y==2){if(x+=gn,g===""||g===" "||d===p-1){for((g===""||g===" ")&&(x-=gn);Pn<=d;)h[Pn].an=x,h[Pn].ind=m,h[Pn].extra=gn,Pn+=1;m+=1,x=0}}else if(y==3){if(x+=gn,g===""||d===p-1){for(g===""&&(x-=gn);Pn<=d;)h[Pn].an=x,h[Pn].ind=m,h[Pn].extra=gn,Pn+=1;x=0,m+=1}}else h[m].ind=m,h[m].extra=0,m+=1;if(c.l=h,re=J>re?J:re,_.push(J),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=re,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0}c.lineWidths=_;var Gn=f.a,Kn,Vn;Bn=Gn.length;var qn,nr,Hn=[];for(Rn=0;Rn<Bn;Rn+=1){for(Kn=Gn[Rn],Kn.a.sc&&(c.strokeColorAnim=!0),Kn.a.sw&&(c.strokeWidthAnim=!0),(Kn.a.fc||Kn.a.fh||Kn.a.fs||Kn.a.fb)&&(c.fillColorAnim=!0),nr=0,qn=Kn.s.b,d=0;d<p;d+=1)Vn=h[d],Vn.anIndexes[Rn]=nr,(qn==1&&Vn.val!==""||qn==2&&Vn.val!==""&&Vn.val!==" "||qn==3&&(Vn.n||Vn.val==" "||d==p-1)||qn==4&&(Vn.n||d==p-1))&&(Kn.s.rn===1&&Hn.push(nr),nr+=1);f.a[Rn].s.totalChars=nr;var lr=-1,cr;if(Kn.s.rn===1)for(d=0;d<p;d+=1)Vn=h[d],lr!=Vn.anIndexes[Rn]&&(lr=Vn.anIndexes[Rn],cr=Hn.splice(Math.floor(Math.random()*Hn.length),1)[0]),Vn.anIndexes[Rn]=cr}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(p,v){this._currentTextLength=-1,this.k=!1,this.data=v,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=PropertyFactory.getProp(p,v.s||{k:0},0,0,this),"e"in v?this.e=PropertyFactory.getProp(p,v.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(p,v.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(p,v.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(p,v.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(p,v.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(p,v.a,0,.01,this),this.dynamicProperties.length||this.getValue()}h.prototype={getMult:function(v){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,_=this.finalS,J=this.finalE,re=this.data.sh;if(re===2)J===_?b=v>=J?1:0:b=c(0,u(.5/(J-_)+(v-_)/(J-_),1)),b=Pn(b);else if(re===3)J===_?b=v>=J?0:1:b=1-c(0,u(.5/(J-_)+(v-_)/(J-_),1)),b=Pn(b);else if(re===4)J===_?b=0:(b=c(0,u(.5/(J-_)+(v-_)/(J-_),1)),b<.5?b*=2:b=1-2*(b-.5)),b=Pn(b);else if(re===5){if(J===_)b=0;else{var Rn=J-_;v=u(c(0,v+.5-_),J-_);var Bn=-Rn/2+v,w=Rn/2;b=Math.sqrt(1-Bn*Bn/(w*w))}b=Pn(b)}else re===6?(J===_?b=0:(v=u(c(0,v+.5-_),J-_),b=(1+Math.cos(Math.PI+Math.PI*2*v/(J-_)))/2),b=Pn(b)):(v>=f(_)&&(v-_<0?b=c(0,u(u(J,1)-(_-v),1)):b=c(0,u(J-v,1))),b=Pn(b));if(this.sm.v!==100){var vn=this.sm.v*.01;vn===0&&(vn=1e-8);var gn=.5-vn*.5;b<gn?b=0:(b=(b-gn)/vn,b>1&&(b=1))}return b*this.a.v},getValue:function(v){this.iterateDynamicProperties(),this._mdf=v||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,v&&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(p,v,m){return new h(p,v)}return{getTextSelectorProp:d}}();function TextAnimatorDataProperty(c,u,f){var h={propType:!1},d=PropertyFactory.getProp,p=u.a;this.a={r:p.r?d(c,p.r,0,degToRads,f):h,rx:p.rx?d(c,p.rx,0,degToRads,f):h,ry:p.ry?d(c,p.ry,0,degToRads,f):h,sk:p.sk?d(c,p.sk,0,degToRads,f):h,sa:p.sa?d(c,p.sa,0,degToRads,f):h,s:p.s?d(c,p.s,1,.01,f):h,a:p.a?d(c,p.a,1,0,f):h,o:p.o?d(c,p.o,0,.01,f):h,p:p.p?d(c,p.p,1,0,f):h,sw:p.sw?d(c,p.sw,0,0,f):h,sc:p.sc?d(c,p.sc,1,0,f):h,fc:p.fc?d(c,p.fc,1,0,f):h,fh:p.fh?d(c,p.fh,0,0,f):h,fs:p.fs?d(c,p.fs,0,.01,f):h,fb:p.fb?d(c,p.fb,0,.01,f):h,t:p.t?d(c,p.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,p=this.mHelper,v=this._renderType,m=this.renderedLetters.length,g,y,x,Pn,b=c.l,_,J,re,Rn,Bn,w,vn,gn,Fn,zn,Un,Wn,tr,Yn,Xn;if(this._hasMaskedPath){if(Xn=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Jn=Xn.v;this._pathData.r.v&&(Jn=Jn.reverse()),_={tLength:0,segments:[]},Pn=Jn._length-1;var ir;for(Wn=0,x=0;x<Pn;x+=1)ir=bez.buildBezierData(Jn.v[x],Jn.v[x+1],[Jn.o[x][0]-Jn.v[x][0],Jn.o[x][1]-Jn.v[x][1]],[Jn.i[x+1][0]-Jn.v[x+1][0],Jn.i[x+1][1]-Jn.v[x+1][1]]),_.tLength+=ir.segmentLength,_.segments.push(ir),Wn+=ir.segmentLength;x=Pn,Xn.v.c&&(ir=bez.buildBezierData(Jn.v[x],Jn.v[0],[Jn.o[x][0]-Jn.v[x][0],Jn.o[x][1]-Jn.v[x][1]],[Jn.i[0][0]-Jn.v[0][0],Jn.i[0][1]-Jn.v[0][1]]),_.tLength+=ir.segmentLength,_.segments.push(ir),Wn+=ir.segmentLength),this._pathData.pi=_}if(_=this._pathData.pi,J=this._pathData.f.v,vn=0,w=1,Rn=0,Bn=!0,zn=_.segments,J<0&&Xn.v.c)for(_.tLength<Math.abs(J)&&(J=-Math.abs(J)%_.tLength),vn=zn.length-1,Fn=zn[vn].points,w=Fn.length-1;J<0;)J+=Fn[w].partialLength,w-=1,w<0&&(vn-=1,Fn=zn[vn].points,w=Fn.length-1);Fn=zn[vn].points,gn=Fn[w-1],re=Fn[w],Un=re.partialLength}Pn=b.length,g=0,y=0;var sr=c.finalSize*1.2*.714,Zn=!0,Gn,Kn,Vn,qn,nr;qn=h.length;var Hn,lr=-1,cr,Qn,ar,er=J,ur=vn,hr=w,or=-1,mr,dr,fr,vr,pr,yr,br,Sr,gr="",kr=this.defaultPropsArray,wr;if(c.j===2||c.j===1){var Er=0,Pr=0,_r=c.j===2?-.5:-1,Mr=0,Or=!0;for(x=0;x<Pn;x+=1)if(b[x].n){for(Er&&(Er+=Pr);Mr<x;)b[Mr].animatorJustifyOffset=Er,Mr+=1;Er=0,Or=!0}else{for(Vn=0;Vn<qn;Vn+=1)Gn=h[Vn].a,Gn.t.propType&&(Or&&c.j===2&&(Pr+=Gn.t.v*_r),Kn=h[Vn].s,Hn=Kn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),Hn.length?Er+=Gn.t.v*Hn[0]*_r:Er+=Gn.t.v*Hn*_r);Or=!1}for(Er&&(Er+=Pr);Mr<x;)b[Mr].animatorJustifyOffset=Er,Mr+=1}for(x=0;x<Pn;x+=1){if(p.reset(),mr=1,b[x].n)g=0,y+=c.yOffset,y+=Zn?1:0,J=er,Zn=!1,this._hasMaskedPath&&(vn=ur,w=hr,Fn=zn[vn].points,gn=Fn[w-1],re=Fn[w],Un=re.partialLength,Rn=0),gr="",Sr="",yr="",wr="",kr=this.defaultPropsArray;else{if(this._hasMaskedPath){if(or!==b[x].line){switch(c.j){case 1:J+=Wn-c.lineWidths[b[x].line];break;case 2:J+=(Wn-c.lineWidths[b[x].line])/2;break}or=b[x].line}lr!==b[x].ind&&(b[lr]&&(J+=b[lr].extra),J+=b[x].an/2,lr=b[x].ind),J+=f[0]*b[x].an*.005;var Rr=0;for(Vn=0;Vn<qn;Vn+=1)Gn=h[Vn].a,Gn.p.propType&&(Kn=h[Vn].s,Hn=Kn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),Hn.length?Rr+=Gn.p.v[0]*Hn[0]:Rr+=Gn.p.v[0]*Hn),Gn.a.propType&&(Kn=h[Vn].s,Hn=Kn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),Hn.length?Rr+=Gn.a.v[0]*Hn[0]:Rr+=Gn.a.v[0]*Hn);for(Bn=!0,this._pathData.a.v&&(J=b[0].an*.5+(Wn-this._pathData.f.v-b[0].an*.5-b[b.length-1].an*.5)*lr/(Pn-1),J+=this._pathData.f.v);Bn;)Rn+Un>=J+Rr||!Fn?(tr=(J+Rr-Rn)/re.partialLength,Qn=gn.point[0]+(re.point[0]-gn.point[0])*tr,ar=gn.point[1]+(re.point[1]-gn.point[1])*tr,p.translate(-f[0]*b[x].an*.005,-(f[1]*sr)*.01),Bn=!1):Fn&&(Rn+=re.partialLength,w+=1,w>=Fn.length&&(w=0,vn+=1,zn[vn]?Fn=zn[vn].points:Xn.v.c?(w=0,vn=0,Fn=zn[vn].points):(Rn-=re.partialLength,Fn=null)),Fn&&(gn=re,re=Fn[w],Un=re.partialLength));cr=b[x].an/2-b[x].add,p.translate(-cr,0,0)}else cr=b[x].an/2-b[x].add,p.translate(-cr,0,0),p.translate(-f[0]*b[x].an*.005,-f[1]*sr*.01,0);for(Vn=0;Vn<qn;Vn+=1)Gn=h[Vn].a,Gn.t.propType&&(Kn=h[Vn].s,Hn=Kn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),(g!==0||c.j!==0)&&(this._hasMaskedPath?Hn.length?J+=Gn.t.v*Hn[0]:J+=Gn.t.v*Hn:Hn.length?g+=Gn.t.v*Hn[0]:g+=Gn.t.v*Hn));for(c.strokeWidthAnim&&(fr=c.sw||0),c.strokeColorAnim&&(c.sc?dr=[c.sc[0],c.sc[1],c.sc[2]]:dr=[0,0,0]),c.fillColorAnim&&c.fc&&(vr=[c.fc[0],c.fc[1],c.fc[2]]),Vn=0;Vn<qn;Vn+=1)Gn=h[Vn].a,Gn.a.propType&&(Kn=h[Vn].s,Hn=Kn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),Hn.length?p.translate(-Gn.a.v[0]*Hn[0],-Gn.a.v[1]*Hn[1],Gn.a.v[2]*Hn[2]):p.translate(-Gn.a.v[0]*Hn,-Gn.a.v[1]*Hn,Gn.a.v[2]*Hn));for(Vn=0;Vn<qn;Vn+=1)Gn=h[Vn].a,Gn.s.propType&&(Kn=h[Vn].s,Hn=Kn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),Hn.length?p.scale(1+(Gn.s.v[0]-1)*Hn[0],1+(Gn.s.v[1]-1)*Hn[1],1):p.scale(1+(Gn.s.v[0]-1)*Hn,1+(Gn.s.v[1]-1)*Hn,1));for(Vn=0;Vn<qn;Vn+=1){if(Gn=h[Vn].a,Kn=h[Vn].s,Hn=Kn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),Gn.sk.propType&&(Hn.length?p.skewFromAxis(-Gn.sk.v*Hn[0],Gn.sa.v*Hn[1]):p.skewFromAxis(-Gn.sk.v*Hn,Gn.sa.v*Hn)),Gn.r.propType&&(Hn.length?p.rotateZ(-Gn.r.v*Hn[2]):p.rotateZ(-Gn.r.v*Hn)),Gn.ry.propType&&(Hn.length?p.rotateY(Gn.ry.v*Hn[1]):p.rotateY(Gn.ry.v*Hn)),Gn.rx.propType&&(Hn.length?p.rotateX(Gn.rx.v*Hn[0]):p.rotateX(Gn.rx.v*Hn)),Gn.o.propType&&(Hn.length?mr+=(Gn.o.v*Hn[0]-mr)*Hn[0]:mr+=(Gn.o.v*Hn-mr)*Hn),c.strokeWidthAnim&&Gn.sw.propType&&(Hn.length?fr+=Gn.sw.v*Hn[0]:fr+=Gn.sw.v*Hn),c.strokeColorAnim&&Gn.sc.propType)for(pr=0;pr<3;pr+=1)Hn.length?dr[pr]+=(Gn.sc.v[pr]-dr[pr])*Hn[0]:dr[pr]+=(Gn.sc.v[pr]-dr[pr])*Hn;if(c.fillColorAnim&&c.fc){if(Gn.fc.propType)for(pr=0;pr<3;pr+=1)Hn.length?vr[pr]+=(Gn.fc.v[pr]-vr[pr])*Hn[0]:vr[pr]+=(Gn.fc.v[pr]-vr[pr])*Hn;Gn.fh.propType&&(Hn.length?vr=addHueToRGB(vr,Gn.fh.v*Hn[0]):vr=addHueToRGB(vr,Gn.fh.v*Hn)),Gn.fs.propType&&(Hn.length?vr=addSaturationToRGB(vr,Gn.fs.v*Hn[0]):vr=addSaturationToRGB(vr,Gn.fs.v*Hn)),Gn.fb.propType&&(Hn.length?vr=addBrightnessToRGB(vr,Gn.fb.v*Hn[0]):vr=addBrightnessToRGB(vr,Gn.fb.v*Hn))}}for(Vn=0;Vn<qn;Vn+=1)Gn=h[Vn].a,Gn.p.propType&&(Kn=h[Vn].s,Hn=Kn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),this._hasMaskedPath?Hn.length?p.translate(0,Gn.p.v[1]*Hn[0],-Gn.p.v[2]*Hn[1]):p.translate(0,Gn.p.v[1]*Hn,-Gn.p.v[2]*Hn):Hn.length?p.translate(Gn.p.v[0]*Hn[0],Gn.p.v[1]*Hn[1],-Gn.p.v[2]*Hn[2]):p.translate(Gn.p.v[0]*Hn,Gn.p.v[1]*Hn,-Gn.p.v[2]*Hn));if(c.strokeWidthAnim&&(yr=fr<0?0:fr),c.strokeColorAnim&&(br="rgb("+Math.round(dr[0]*255)+","+Math.round(dr[1]*255)+","+Math.round(dr[2]*255)+")"),c.fillColorAnim&&c.fc&&(Sr="rgb("+Math.round(vr[0]*255)+","+Math.round(vr[1]*255)+","+Math.round(vr[2]*255)+")"),this._hasMaskedPath){if(p.translate(0,-c.ls),p.translate(0,f[1]*sr*.01+y,0),this._pathData.p.v){Yn=(re.point[1]-gn.point[1])/(re.point[0]-gn.point[0]);var Lr=Math.atan(Yn)*180/Math.PI;re.point[0]<gn.point[0]&&(Lr+=180),p.rotate(-Lr*Math.PI/180)}p.translate(Qn,ar,0),J-=f[0]*b[x].an*.005,b[x+1]&&lr!==b[x+1].ind&&(J+=b[x].an/2,J+=c.tr*.001*c.finalSize)}else{switch(p.translate(g,y,0),c.ps&&p.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:p.translate(b[x].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[b[x].line]),0,0);break;case 2:p.translate(b[x].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[b[x].line])/2,0,0);break}p.translate(0,-c.ls),p.translate(cr,0,0),p.translate(f[0]*b[x].an*.005,f[1]*sr*.01,0),g+=b[x].l+c.tr*.001*c.finalSize}v==="html"?gr=p.toCSS():v==="svg"?gr=p.to2dCSS():kr=[p.props[0],p.props[1],p.props[2],p.props[3],p.props[4],p.props[5],p.props[6],p.props[7],p.props[8],p.props[9],p.props[10],p.props[11],p.props[12],p.props[13],p.props[14],p.props[15]],wr=mr}m<=x?(nr=new LetterProps(wr,yr,br,Sr,gr,kr),this.renderedLetters.push(nr),m+=1,this.lettersChangedFlag=!0):(nr=this.renderedLetters[x],this.lettersChangedFlag=nr.update(wr,yr,br,Sr,gr,kr)||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,p="";for(f=0;f<h;f+=1)u[f].ty==="sh"&&(d=u[f].ks.k,p+=buildShapeString(d,d.i.length,!0,c));return p},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,p=f.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",d)}this.layerElement.setAttribute("aria-label",f.t);var v=f.l||[],m=!!this.globalData.fontManager.chars;u=v.length;var g,y=this.mHelper,x="",Pn=this.data.singleShape,b=0,_=0,J=!0,re=f.tr*.001*f.finalSize;if(Pn&&!m&&!f.sz){var Rn=this.textContainer,Bn="start";switch(f.j){case 1:Bn="end";break;case 2:Bn="middle";break;default:Bn="start";break}Rn.setAttribute("text-anchor",Bn),Rn.setAttribute("letter-spacing",re);var w=this.buildTextContents(f.finalText);for(u=w.length,_=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",_),g.style.display="inherit",Rn.appendChild(g),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=g,_+=f.finalLineHeight;this.layerElement.appendChild(Rn)}else{var vn=this.textSpans.length,gn;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=vn>c?this.textSpans[c].span:createNS(m?"g":"text"),vn<=c){if(g.setAttribute("stroke-linecap","butt"),g.setAttribute("stroke-linejoin","round"),g.setAttribute("stroke-miterlimit","4"),this.textSpans[c].span=g,m){var Fn=createNS("g");g.appendChild(Fn),this.textSpans[c].childSpan=Fn}this.textSpans[c].span=g,this.layerElement.appendChild(g)}g.style.display="inherit"}if(y.reset(),Pn&&(v[c].n&&(b=-re,_+=f.yOffset,_+=J?1:0,J=!1),this.applyTextPropertiesToMatrix(f,y,v[c].line,b,_),b+=v[c].l||0,b+=re),m){gn=this.globalData.fontManager.getCharData(f.finalText[c],h.fStyle,this.globalData.fontManager.getFontByName(f.f).fFamily);var zn;if(gn.t===1)zn=new SVGCompElement(gn.data,this.globalData,this);else{var Un=emptyShapeData;gn.data&&gn.data.shapes&&(Un=this.buildShapeData(gn.data,f.finalSize)),zn=new SVGShapeElement(Un,this.globalData,this)}if(this.textSpans[c].glyph){var Wn=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(Wn.layerElement),Wn.destroy()}this.textSpans[c].glyph=zn,zn._debug=!0,zn.prepareFrame(0),zn.renderFrame(),this.textSpans[c].childSpan.appendChild(zn.layerElement),gn.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=v[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,p,v;for(c=0;c<u;c+=1)h[c].n||(d=f[c],p=this.textSpans[c].span,v=this.textSpans[c].glyph,v&&v.renderFrame(),d._mdf.m&&p.setAttribute("transform",d.m),d._mdf.o&&p.setAttribute("opacity",d.o),d._mdf.sw&&p.setAttribute("stroke-width",d.sw),d._mdf.sc&&p.setAttribute("stroke",d.sc),d._mdf.fc&&p.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],p=d.getMatte(this.layers[c].tt);f.setMatte(p)}}}},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],p=d.getMatte(this.layers[u].tt);c.setMatte(p);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 p=createNS("desc"),v=createElementID();p.setAttribute("id",v),p.textContent=u.description,this.svgElement.appendChild(p),f+=" "+v}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 p=this.sequences[d];return p||(p={transforms:[].concat(u),finalTransform:new Matrix,_mdf:!1},this.sequences[d]=p,this.sequenceList.push(p)),p},processSequence:function(u,f){for(var h=0,d=u.transforms.length,p=f;h<d&&!f;){if(u.transforms[h].transform.mProps._mdf){p=!0;break}h+=1}if(p)for(u.finalTransform.reset(),h=d-1;h>=0;h-=1)u.finalTransform.multiply(u.transforms[h].transform.mProps.v);u._mdf=p},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 p(){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 v(){f||(d=p(),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||v(),f.width=g.width,f.height=g.height,h.filter="url(#"+u+")",f}return{load:v,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 p=registeredEffects[d].effect;h=new p(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,p,v;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)),v=this.viewData[f].v,d=c.applyToPointArray(v.v[0][0],v.v[0][1],0),u.moveTo(d[0],d[1]);var m,g=v._length;for(m=1;m<g;m+=1)p=c.applyToTriplePoints(v.o[m-1],v.i[m],v.v[m]),u.bezierCurveTo(p[0],p[1],p[2],p[3],p[4],p[5]);p=c.applyToTriplePoints(v.o[m-1],v.i[0],v.v[0]),u.bezierCurveTo(p[0],p[1],p[2],p[3],p[4],p[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),p=d.getContext("2d");p.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 p,v=f.length,m;for(p=0;p<v;p+=1)f[p].closed||(m={transforms:h.addTransformSequence(f[p].transforms),trNodes:[]},this.styledShapes.push(m),f[p].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 p,v=c.length-1,m,g,y=[],x=[],Pn,b,_,J=[].concat(d);for(p=v;p>=0;p-=1){if(Pn=this.searchProcessedElement(c[p]),Pn?u[p]=f[Pn-1]:c[p]._shouldRender=h,c[p].ty==="fl"||c[p].ty==="st"||c[p].ty==="gf"||c[p].ty==="gs")Pn?u[p].style.closed=!1:u[p]=this.createStyleElement(c[p],J),y.push(u[p].style);else if(c[p].ty==="gr"){if(!Pn)u[p]=this.createGroupElement(c[p]);else for(g=u[p].it.length,m=0;m<g;m+=1)u[p].prevViewData[m]=u[p].it[m];this.searchShapes(c[p].it,u[p].it,u[p].prevViewData,h,J)}else c[p].ty==="tr"?(Pn||(_=this.createTransformElement(c[p]),u[p]=_),J.push(u[p]),this.addTransformToStyleList(u[p])):c[p].ty==="sh"||c[p].ty==="rc"||c[p].ty==="el"||c[p].ty==="sr"?Pn||(u[p]=this.createShapeElement(c[p])):c[p].ty==="tm"||c[p].ty==="rd"||c[p].ty==="pb"||c[p].ty==="zz"||c[p].ty==="op"?(Pn?(b=u[p],b.closed=!1):(b=ShapeModifiers.getModifier(c[p].ty),b.init(this,c[p]),u[p]=b,this.shapeModifiers.push(b)),x.push(b)):c[p].ty==="rp"&&(Pn?(b=u[p],b.closed=!0):(b=ShapeModifiers.getModifier(c[p].ty),u[p]=b,b.init(this,c,p,u),this.shapeModifiers.push(b),h=!1),x.push(b));this.addProcessedElement(c[p],p+1)}for(this.removeTransformFromStyleList(),this.closeStyles(y),v=x.length,p=0;p<v;p+=1)x[p].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,p,v,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(),v=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=v.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=v[f].trNodes,p=m.length,d=0;d<p;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,p=u.length-1,v;for(v=c,d=p;d>=0;d-=1)u[d].ty==="tr"?(v=f[d].transform,this.renderShapeTransform(c,v)):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],v):u[d].ty==="st"?this.renderStroke(u[d],f[d],v):u[d].ty==="gf"||u[d].ty==="gs"?this.renderGradientFill(u[d],f[d],v):u[d].ty==="gr"?this.renderShape(v,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,p,v,m=h._length;f.length=0;var g=c.transforms.finalTransform;for(v=0;v<m;v+=1){var y=h.shapes[v];if(y&&y.v){for(p=y._length,d=1;d<p;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])});p===1&&f.push({t:"m",p:g.applyToPointArray(y.v[0][0],y.v[0][1],0)}),y.c&&p&&(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 p=this.globalData.canvasContext,v=u.s.v,m=u.e.v;if(c.t===1)d=p.createLinearGradient(v[0],v[1],m[0],m[1]);else{var g=Math.sqrt(Math.pow(v[0]-m[0],2)+Math.pow(v[1]-m[1],2)),y=Math.atan2(m[1]-v[1],m[0]-v[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+v[0],_=Math.sin(y+u.a.v)*Pn+v[1];d=p.createRadialGradient(b,_,0,v[0],v[1],g)}var J,re=c.g.p,Rn=u.g.c,Bn=1;for(J=0;J<re;J+=1)u.g._hasOpacity&&u.g._collapsable&&(Bn=u.g.o[J*2+1]),d.addColorStop(Rn[J*4]/100,"rgba("+Rn[J*4+1]+","+Rn[J*4+2]+","+Rn[J*4+3]+","+Bn+")");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,p,v=c.l,m=this.mHelper;this.stroke=f,this.values.fValue=c.finalSize+"px "+this.globalData.fontManager.getFontByName(c.f).fFamily,p=c.finalText.length;var g,y,x,Pn,b,_,J,re,Rn,Bn,w=this.data.singleShape,vn=c.tr*.001*c.finalSize,gn=0,Fn=0,zn=!0,Un=0;for(d=0;d<p;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&&v[d].n&&(gn=-vn,Fn+=c.yOffset,Fn+=zn?1:0,zn=!1),b=y.shapes?y.shapes[0].it:[],J=b.length,m.scale(c.finalSize/100,c.finalSize/100),w&&this.applyTextPropertiesToMatrix(c,m,v[d].line,gn,Fn),Rn=createSizedArray(J-1);var Wn=0;for(_=0;_<J;_+=1)if(b[_].ty==="sh"){for(Pn=b[_].ks.k.i.length,re=b[_].ks.k,Bn=[],x=1;x<Pn;x+=1)x===1&&Bn.push(m.applyToX(re.v[0][0],re.v[0][1],0),m.applyToY(re.v[0][0],re.v[0][1],0)),Bn.push(m.applyToX(re.o[x-1][0],re.o[x-1][1],0),m.applyToY(re.o[x-1][0],re.o[x-1][1],0),m.applyToX(re.i[x][0],re.i[x][1],0),m.applyToY(re.i[x][0],re.i[x][1],0),m.applyToX(re.v[x][0],re.v[x][1],0),m.applyToY(re.v[x][0],re.v[x][1],0));Bn.push(m.applyToX(re.o[x-1][0],re.o[x-1][1],0),m.applyToY(re.o[x-1][0],re.o[x-1][1],0),m.applyToX(re.i[0][0],re.i[0][1],0),m.applyToY(re.i[0][0],re.i[0][1],0),m.applyToX(re.v[0][0],re.v[0][1],0),m.applyToY(re.v[0][0],re.v[0][1],0)),Rn[Wn]=Bn,Wn+=1}w&&(gn+=v[d].l,gn+=vn),this.textSpans[Un]?this.textSpans[Un].elem=Rn:this.textSpans[Un]={elem:Rn},Un+=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,p,v,m=this.textAnimator.renderedLetters,g=this.textProperty.currentData.l;f=g.length;var y,x=null,Pn=null,b=null,_,J,re=this.globalData.renderer;for(u=0;u<f;u+=1)if(!g[u].n){if(y=m[u],y&&(re.save(),re.ctxTransform(y.p),re.ctxOpacity(y.o)),this.fill){for(y&&y.fc?x!==y.fc&&(re.ctxFillStyle(y.fc),x=y.fc):x!==this.values.fill&&(x=this.values.fill,re.ctxFillStyle(this.values.fill)),_=this.textSpans[u].elem,d=_.length,this.globalData.canvasContext.beginPath(),h=0;h<d;h+=1)for(J=_[h],v=J.length,this.globalData.canvasContext.moveTo(J[0],J[1]),p=2;p<v;p+=6)this.globalData.canvasContext.bezierCurveTo(J[p],J[p+1],J[p+2],J[p+3],J[p+4],J[p+5]);this.globalData.canvasContext.closePath(),re.ctxFill()}if(this.stroke){for(y&&y.sw?b!==y.sw&&(b=y.sw,re.ctxLineWidth(y.sw)):b!==this.values.sWidth&&(b=this.values.sWidth,re.ctxLineWidth(this.values.sWidth)),y&&y.sc?Pn!==y.sc&&(Pn=y.sc,re.ctxStrokeStyle(y.sc)):Pn!==this.values.stroke&&(Pn=this.values.stroke,re.ctxStrokeStyle(this.values.stroke)),_=this.textSpans[u].elem,d=_.length,this.globalData.canvasContext.beginPath(),h=0;h<d;h+=1)for(J=_[h],v=J.length,this.globalData.canvasContext.moveTo(J[0],J[1]),p=2;p<v;p+=6)this.globalData.canvasContext.bezierCurveTo(J[p],J[p+1],J[p+2],J[p+3],J[p+4],J[p+5]);this.globalData.canvasContext.closePath(),re.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,p=this.assetData.w/this.assetData.h,v,m,g=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;d>p&&g==="xMidYMid slice"||d<p&&g!=="xMidYMid slice"?(m=h,v=m*p):(v=f,m=v/p),u.drawImage(this.img,(f-v)/2,(h-m)/2,v,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,p;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var v=this.renderConfig.preserveAspectRatio.split(" "),m=v[1]||"meet",g=v[0]||"xMidYMid",y=g.substr(0,4),x=g.substr(4);d=f/h,p=this.transformCanvas.w/this.transformCanvas.h,p>d&&m==="meet"||p<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"&&(p<d&&m==="meet"||p>d&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(h/this.transformCanvas.h))/2*this.renderConfig.dpr:y==="xMax"&&(p<d&&m==="meet"||p>d&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(h/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,x==="YMid"&&(p>d&&m==="meet"||p<d&&m==="slice")?this.transformCanvas.ty=(h-this.transformCanvas.h*(f/this.transformCanvas.w))/2*this.renderConfig.dpr:x==="YMax"&&(p>d&&m==="meet"||p<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 p=this.stack[this.cArrPos+1];this.appliedFillStyle=p.fillStyle,this.appliedStrokeStyle=p.strokeStyle,this.appliedLineWidth=p.lineWidth,this.appliedLineCap=p.lineCap,this.appliedLineJoin=p.lineJoin,this.appliedMiterLimit=p.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,p=f._length,v,m,g,y;if(!(p<=1)){for(d=0;d<p-1;d+=1)v=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(v,m,g,y,u);f.c&&(v=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(v,m,g,y,u))}},HShapeElement.prototype.checkBounds=function(c,u,f,h,d){this.getBoundsOfCurve(c,u,f,h);var p=this.shapeBoundingBox;d.x=bmMin(p.left,d.x),d.xMax=bmMax(p.right,d.xMax),d.y=bmMin(p.top,d.y),d.yMax=bmMax(p.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]]],p,v,m,g,y,x,Pn,b=0;b<2;++b)v=6*c[b]-12*u[b]+6*f[b],p=-3*c[b]+9*u[b]-9*f[b]+3*h[b],m=3*u[b]-3*c[b],v|=0,p|=0,m|=0,p===0&&v===0||(p===0?(g=-m/v,g>0&&g<1&&d[b].push(this.calculateF(g,c,u,f,h,b))):(y=v*v-4*m*p,y>=0&&(x=(-v+bmSqrt(y))/(2*p),x>0&&x<1&&d[b].push(this.calculateF(x,c,u,f,h,b)),Pn=(-v-bmSqrt(y))/(2*p),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,p){return bmPow(1-c,3)*u[p]+3*bmPow(1-c,2)*c*f[p]+3*(1-c)*bmPow(c,2)*h[p]+bmPow(c,3)*d[p]},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,p=c.fStyle;u.fontStyle=p,u.fontWeight=d}var v,m,g=c.l;m=g.length;var y,x,Pn,b=this.mHelper,_,J="",re=0;for(v=0;v<m;v+=1){if(this.globalData.fontManager.chars?(this.textPaths[re]?y=this.textPaths[re]:(y=createNS("path"),y.setAttribute("stroke-linecap",lineCapEnum[1]),y.setAttribute("stroke-linejoin",lineJoinEnum[2]),y.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[re]?(x=this.textSpans[re],Pn=x.children[0]):(x=createTag("div"),x.style.lineHeight=0,Pn=createNS("svg"),Pn.appendChild(y),styleDiv(x)))):this.isMasked?y=this.textPaths[re]?this.textPaths[re]:createNS("text"):this.textSpans[re]?(x=this.textSpans[re],y=this.textPaths[re]):(x=createTag("span"),styleDiv(x),y=createTag("span"),styleDiv(y),x.appendChild(y)),this.globalData.fontManager.chars){var Rn=this.globalData.fontManager.getCharData(c.finalText[v],h.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily),Bn;if(Rn?Bn=Rn.data:Bn=null,b.reset(),Bn&&Bn.shapes&&Bn.shapes.length&&(_=Bn.shapes[0].it,b.scale(c.finalSize/100,c.finalSize/100),J=this.createPathShape(b,_),y.setAttribute("d",J)),this.isMasked)this.innerElem.appendChild(y);else{if(this.innerElem.appendChild(x),Bn&&Bn.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 vn=Pn.style,gn="translate("+(w.x-1)+"px,"+(w.y-1)+"px)";vn.transform=gn,vn.webkitTransform=gn,g[v].yOffset=w.y-1}else Pn.setAttribute("width",1),Pn.setAttribute("height",1);x.appendChild(Pn)}}else if(y.textContent=g[v].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 Fn=y.style,zn="translate3d(0,"+-c.finalSize/1.2+"px,0)";Fn.transform=zn,Fn.webkitTransform=zn}this.isMasked?this.textSpans[re]=y:this.textSpans[re]=x,this.textSpans[re].style.display="block",this.textPaths[re]=y,re+=1}for(;re<this.textSpans.length;)this.textSpans[re].style.display="none",re+=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,p=this.textAnimator.renderedLetters,v=this.textProperty.currentData.l;h=v.length;var m,g,y;for(f=0;f<h;f+=1)v[f].n?d+=1:(g=this.textSpans[f],y=this.textPaths[f],m=p[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,p=c.ks.or.k.length;for(d=0;d<p;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 p=this.pe.v+"px",v="0px 0px 0px",m="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";h.perspective=p,h.webkitPerspective=p,d.transformOrigin=v,d.mozTransformOrigin=v,d.webkitTransformOrigin=v,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 p=Math.sqrt(Math.pow(d[0],2)+Math.pow(d[1],2)+Math.pow(d[2],2)),v=[d[0]/p,d[1]/p,d[2]/p],m=Math.sqrt(v[2]*v[2]+v[0]*v[0]),g=Math.atan2(v[1],m),y=Math.atan2(v[0],-v[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,_;for(u=0;u<f;u+=1)if(Pn=this.comp.threeDElements[u],Pn.type==="3d"){if(x){var J=this.mat.toCSS();_=Pn.container.style,_.transform=J,_.webkitTransform=J}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,p,v,m;d<u;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement&&(v=this.elements[d],m=this.layers[d].ddd?this.getThreeDContainerByPos(d):v.getBaseElement(),p=m||p),d+=1;p?(!h.ddd||!this.supports3d)&&this.layerElement.insertBefore(f,p):(!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 p=createTag("div");if(styleDiv(p),u==="3d"){h=f.style,h.width=this.globalData.compSize.w+"px",h.height=this.globalData.compSize.h+"px";var v="50% 50%";h.webkitTransformOrigin=v,h.mozTransformOrigin=v,h.transformOrigin=v,d=p.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(p);var g={container:p,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,p;d<u;)this.elements[d]&&this.elements[d].getBaseElement&&(p=this.elements[d].getBaseElement()),d+=1;p?this.threeDElements[f].container.insertBefore(c,p):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 p=createNS("defs");d.appendChild(p),this.data=c,this.setupGlobalData(c,d),this.globalData.defs=p,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,p,v,m;h>f?(d=c/this.globalData.compSize.w,p=c/this.globalData.compSize.w,v=0,m=(u-this.globalData.compSize.h*(c/this.globalData.compSize.w))/2):(d=u/this.globalData.compSize.h,p=u/this.globalData.compSize.h,v=(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,"+p+",0,0,0,0,1,0,"+v+","+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,p=52,v="random",m=u.pow(h,d),g=u.pow(2,p),y=g*2,x=h-1,Pn;function b(vn,gn,Fn){var zn=[];gn=gn===!0?{entropy:!0}:gn||{};var Un=Rn(re(gn.entropy?[vn,w(c)]:vn===null?Bn():vn,3),zn),Wn=new _(zn),tr=function(){for(var Xn=Wn.g(d),Jn=m,ir=0;Xn<g;)Xn=(Xn+ir)*h,Jn*=h,ir=Wn.g(1);for(;Xn>=y;)Xn/=2,Jn/=2,ir>>>=1;return(Xn+ir)/Jn};return tr.int32=function(){return Wn.g(4)|0},tr.quick=function(){return Wn.g(4)/4294967296},tr.double=tr,Rn(w(Wn.S),c),(gn.pass||Fn||function(Yn,Xn,Jn,ir){return ir&&(ir.S&&J(ir,Wn),Yn.state=function(){return J(Wn,{})}),Jn?(u[v]=Yn,Xn):Yn})(tr,Un,"global"in gn?gn.global:this==u,gn.state)}u["seed"+v]=b;function _(vn){var gn,Fn=vn.length,zn=this,Un=0,Wn=zn.i=zn.j=0,tr=zn.S=[];for(Fn||(vn=[Fn++]);Un<h;)tr[Un]=Un++;for(Un=0;Un<h;Un++)tr[Un]=tr[Wn=x&Wn+vn[Un%Fn]+(gn=tr[Un])],tr[Wn]=gn;zn.g=function(Yn){for(var Xn,Jn=0,ir=zn.i,sr=zn.j,Zn=zn.S;Yn--;)Xn=Zn[ir=x&ir+1],Jn=Jn*h+Zn[x&(Zn[ir]=Zn[sr=x&sr+Xn])+(Zn[sr]=Xn)];return zn.i=ir,zn.j=sr,Jn}}function J(vn,gn){return gn.i=vn.i,gn.j=vn.j,gn.S=vn.S.slice(),gn}function re(vn,gn){var Fn=[],zn=_typeof$2(vn),Un;if(gn&&zn=="object")for(Un in vn)try{Fn.push(re(vn[Un],gn-1))}catch{}return Fn.length?Fn:zn=="string"?vn:vn+"\0"}function Rn(vn,gn){for(var Fn=vn+"",zn,Un=0;Un<Fn.length;)gn[x&Un]=x&(zn^=gn[x&Un]*19)+Fn.charCodeAt(Un++);return w(gn)}function Bn(){try{var vn=new Uint8Array(h);return(f.crypto||f.msCrypto).getRandomValues(vn),w(vn)}catch{var gn=f.navigator,Fn=gn&&gn.plugins;return[+new Date,f,Fn,f.screen,w(c)]}}function w(vn){return String.fromCharCode.apply(0,vn)}Rn(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,p=c.length,v=u.length,m=[];d<p||d<v;)(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,p=c.length,v=u.length,m=[];d<p||d<v;)(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 p,v;if($bm_isInstanceOfArray(c)&&isNumerable(h,u)){for(v=c.length,d=createTypedArray("float32",v),p=0;p<v;p+=1)d[p]=c[p]*u;return d}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(v=u.length,d=createTypedArray("float32",v),p=0;p<v;p+=1)d[p]=c*u[p];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 p,v;if($bm_isInstanceOfArray(c)&&isNumerable(h,u)){for(v=c.length,d=createTypedArray("float32",v),p=0;p<v;p+=1)d[p]=c[p]/u;return d}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(v=u.length,d=createTypedArray("float32",v),p=0;p<v;p+=1)d[p]=c/u[p];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),p=Math.min(u,f,h),v,m,g=(d+p)/2;if(d===p)v=0,m=0;else{var y=d-p;switch(m=g>.5?y/(2-d-p):y/(d+p),d){case u:v=(f-h)/y+(f<h?6:0);break;case f:v=(h-u)/y+2;break;case h:v=(u-f)/y+4;break}v/=6}return[v,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,p,v;if(f===0)d=h,v=h,p=h;else{var m=h<.5?h*(1+f):h+f-h*f,g=2*h-m;d=hue2rgb(g,m,u+1/3),p=hue2rgb(g,m,u),v=hue2rgb(g,m,u-1/3)}return[d,p,v,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 p=f;f=u,u=p}if(c<=u)return h;if(c>=f)return d;var v=f===u?0:(c-u)/(f-u);if(!h.length)return h+(d-h)*v;var m,g=h.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=h[m]+(d[m]-h[m])*v;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),p=BMMath.random();for(f=0;f<h;f+=1)d[f]=c[f]+p*(u[f]-c[f]);return d}c===void 0&&(c=0);var v=BMMath.random();return c+v*(u-c)}function createPath(c,u,f,h){var d,p=c.length,v=shapePool.newElement();v.setPathData(!!h,p);var m=[0,0],g,y;for(d=0;d<p;d+=1)g=u&&u[d]?u[d]:m,y=f&&f[d]?f[d]:m,v.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 v}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,p=this.pv.length?this.pv.length:1,v=createTypedArray("float32",p);u=5;var m=Math.floor(time*u);for(h=0,d=0;h<m;){for(d=0;d<p;d+=1)v[d]+=-f+f*2*BMMath.random();h+=1}var g=time*u,y=g-Math.floor(g),x=createTypedArray("float32",p);if(p>1){for(d=0;d<p;d+=1)x[d]=this.pv[d]+v[d]+(-f+f*2*BMMath.random())*y;return x}return this.pv+v[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,p){d===void 0?(d=f,p=h):u=(u-f)/(h-f),u>1?u=1:u<0&&(u=0);var v=c(u);if($bm_isInstanceOfArray(d)){var m,g=d.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=(p[m]-d[m])*v+d[m];return y}return(p-d)*v+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 p={};return p.index=h,p.time=d/elem.comp.globalData.frameRate,p}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 p(){h+=1}function v(){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=p,f.renderer.globalData.popExpression=v,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),p,v=h.viewData.length;for(p=0;p<v;p+=1)d[p]=new c(h.viewData[p],h.masksProperties[p]);var m=function(y){for(p=0;p<v;){if(h.masksProperties[p].nm===y)return d[p];p+=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(v,m,g){Object.defineProperty(v,"velocity",{get:function(){return m.getVelocityAtTime(m.comp.currentFrame)}}),v.numKeys=m.keyframes?m.keyframes.length:0,v.key=function(y){if(!v.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},v.valueAtTime=m.getValueAtTime,v.speedAtTime=m.getSpeedAtTime,v.velocityAtTime=m.getVelocityAtTime,v.propertyGroup=m.propertyGroup}function h(v){(!v||!("pv"in v))&&(v=c);var m=1/v.mult,g=v.pv*m,y=new Number(g);return y.value=g,f(y,v,"unidimensional"),function(){return v.k&&v.getValue(),g=v.v*m,y.value!==g&&(y=new Number(g),y.value=g,f(y,v,"unidimensional")),y}}function d(v){(!v||!("pv"in v))&&(v=u);var m=1/v.mult,g=v.data&&v.data.l||v.pv.length,y=createTypedArray("float32",g),x=createTypedArray("float32",g);return y.value=x,f(y,v,"multidimensional"),function(){v.k&&v.getValue();for(var Pn=0;Pn<g;Pn+=1)x[Pn]=v.v[Pn]*m,y[Pn]=x[Pn];return y}}function p(){return c}return function(v){return v?v.propType==="unidimensional"?h(v):d(v):p}}(),TransformExpressionInterface=function(){return function(c){function u(v){switch(v){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,p;return c.p?p=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?p():[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 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.applyToPointArray(x[0],x[1],x[2]||0)}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.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(re){_.mask=new MaskManagerInterface(re,y)}function b(re){_.effect=re}function _(re){switch(re){case"ADBE Root Vectors Group":case"Contents":case 2:return _.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 _.effect;case"ADBE Text Properties":return _.textInterface;default:return null}}_.getMatrix=c,_.invertPoint=v,_.applyPoint=p,_.toWorld=f,_.toWorldVec=u,_.fromWorld=d,_.fromWorldVec=h,_.toComp=f,_.fromComp=m,_.sampleImage=g,_.sourceRectAtTime=y.sourceRectAtTime.bind(y),_._elem=y,x=TransformExpressionInterface(y.finalTransform.mProp);var J=getDescriptor(x,"anchorPoint");return Object.defineProperties(_,{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:J,anchor_point:J,transform:{get:function(){return x}},active:{get:function(){return y.isInRange}}}),_.startTime=y.data.st,_.index=y.data.ind,_.source=y.data.refId,_.height=y.data.ty===0?y.data.h:100,_.width=y.data.ty===0?y.data.w:100,_.inPoint=y.data.ip/y.comp.globalData.frameRate,_.outPoint=y.data.op/y.comp.globalData.frameRate,_._name=y.data.nm,_.registerMaskInterface=Pn,_.registerEffectsInterface=b,_}}(),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,p){if(d.effectsManager){var v=[],m=d.data.ef,g,y=d.effectsManager.effectElements.length;for(g=0;g<y;g+=1)v.push(f(m[g],d.effectsManager.effectElements[g],p,d));var x=d.data.ef||[],Pn=function(_){for(g=0,y=x.length;g<y;){if(_===x[g].nm||_===x[g].mn||_===x[g].ix)return v[g];g+=1}return null};return Object.defineProperty(Pn,"numProperties",{get:function(){return x.length}}),Pn}return null}function f(d,p,v,m){function g(_){for(var J=d.ef,re=0,Rn=J.length;re<Rn;){if(_===J[re].nm||_===J[re].mn||_===J[re].ix)return J[re].ty===5?x[re]:x[re]();re+=1}throw new Error}var y=propertyGroupFactory(g,v),x=[],Pn,b=d.ef.length;for(Pn=0;Pn<b;Pn+=1)d.ef[Pn].ty===5?x.push(f(d.ef[Pn],p.effectElements[Pn],p.effectElements[Pn].propertyGroup,m)):x.push(h(p.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,p,v,m){var g=ExpressionPropertyInterface(d.p);function y(){return p===10?v.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 p(m){return m==="Shape"||m==="shape"||m==="Path"||m==="path"||m==="ADBE Vector Shape"||m===2?p.path:null}var v=propertyGroupFactory(p,h);return d.setGroupProperty(PropertyInterface("Path",v)),Object.defineProperties(p,{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}}),p}}(),ShapeExpressionInterface=function(){function c(J,re,Rn){var Bn=[],w,vn=J?J.length:0;for(w=0;w<vn;w+=1)J[w].ty==="gr"?Bn.push(f(J[w],re[w],Rn)):J[w].ty==="fl"?Bn.push(h(J[w],re[w],Rn)):J[w].ty==="st"?Bn.push(v(J[w],re[w],Rn)):J[w].ty==="tm"?Bn.push(m(J[w],re[w],Rn)):J[w].ty==="tr"||(J[w].ty==="el"?Bn.push(y(J[w],re[w],Rn)):J[w].ty==="sr"?Bn.push(x(J[w],re[w],Rn)):J[w].ty==="sh"?Bn.push(ShapePathInterface(J[w],re[w],Rn)):J[w].ty==="rc"?Bn.push(Pn(J[w],re[w],Rn)):J[w].ty==="rd"?Bn.push(b(J[w],re[w],Rn)):J[w].ty==="rp"?Bn.push(_(J[w],re[w],Rn)):J[w].ty==="gf"?Bn.push(d(J[w],re[w],Rn)):Bn.push(p(J[w],re[w])));return Bn}function u(J,re,Rn){var Bn,w=function(Fn){for(var zn=0,Un=Bn.length;zn<Un;){if(Bn[zn]._name===Fn||Bn[zn].mn===Fn||Bn[zn].propertyIndex===Fn||Bn[zn].ix===Fn||Bn[zn].ind===Fn)return Bn[zn];zn+=1}return typeof Fn=="number"?Bn[Fn-1]:null};w.propertyGroup=propertyGroupFactory(w,Rn),Bn=c(J.it,re.it,w.propertyGroup),w.numProperties=Bn.length;var vn=g(J.it[J.it.length-1],re.it[re.it.length-1],w.propertyGroup);return w.transform=vn,w.propertyIndex=J.cix,w._name=J.nm,w}function f(J,re,Rn){var Bn=function(Fn){switch(Fn){case"ADBE Vectors Group":case"Contents":case 2:return Bn.content;default:return Bn.transform}};Bn.propertyGroup=propertyGroupFactory(Bn,Rn);var w=u(J,re,Bn.propertyGroup),vn=g(J.it[J.it.length-1],re.it[re.it.length-1],Bn.propertyGroup);return Bn.content=w,Bn.transform=vn,Object.defineProperty(Bn,"_name",{get:function(){return J.nm}}),Bn.numProperties=J.np,Bn.propertyIndex=J.ix,Bn.nm=J.nm,Bn.mn=J.mn,Bn}function h(J,re,Rn){function Bn(w){return w==="Color"||w==="color"?Bn.color:w==="Opacity"||w==="opacity"?Bn.opacity:null}return Object.defineProperties(Bn,{color:{get:ExpressionPropertyInterface(re.c)},opacity:{get:ExpressionPropertyInterface(re.o)},_name:{value:J.nm},mn:{value:J.mn}}),re.c.setGroupProperty(PropertyInterface("Color",Rn)),re.o.setGroupProperty(PropertyInterface("Opacity",Rn)),Bn}function d(J,re,Rn){function Bn(w){return w==="Start Point"||w==="start point"?Bn.startPoint:w==="End Point"||w==="end point"?Bn.endPoint:w==="Opacity"||w==="opacity"?Bn.opacity:null}return Object.defineProperties(Bn,{startPoint:{get:ExpressionPropertyInterface(re.s)},endPoint:{get:ExpressionPropertyInterface(re.e)},opacity:{get:ExpressionPropertyInterface(re.o)},type:{get:function(){return"a"}},_name:{value:J.nm},mn:{value:J.mn}}),re.s.setGroupProperty(PropertyInterface("Start Point",Rn)),re.e.setGroupProperty(PropertyInterface("End Point",Rn)),re.o.setGroupProperty(PropertyInterface("Opacity",Rn)),Bn}function p(){function J(){return null}return J}function v(J,re,Rn){var Bn=propertyGroupFactory(Un,Rn),w=propertyGroupFactory(zn,Bn);function vn(Wn){Object.defineProperty(zn,J.d[Wn].nm,{get:ExpressionPropertyInterface(re.d.dataProps[Wn].p)})}var gn,Fn=J.d?J.d.length:0,zn={};for(gn=0;gn<Fn;gn+=1)vn(gn),re.d.dataProps[gn].p.setGroupProperty(w);function Un(Wn){return Wn==="Color"||Wn==="color"?Un.color:Wn==="Opacity"||Wn==="opacity"?Un.opacity:Wn==="Stroke Width"||Wn==="stroke width"?Un.strokeWidth:null}return Object.defineProperties(Un,{color:{get:ExpressionPropertyInterface(re.c)},opacity:{get:ExpressionPropertyInterface(re.o)},strokeWidth:{get:ExpressionPropertyInterface(re.w)},dash:{get:function(){return zn}},_name:{value:J.nm},mn:{value:J.mn}}),re.c.setGroupProperty(PropertyInterface("Color",Bn)),re.o.setGroupProperty(PropertyInterface("Opacity",Bn)),re.w.setGroupProperty(PropertyInterface("Stroke Width",Bn)),Un}function m(J,re,Rn){function Bn(vn){return vn===J.e.ix||vn==="End"||vn==="end"?Bn.end:vn===J.s.ix?Bn.start:vn===J.o.ix?Bn.offset:null}var w=propertyGroupFactory(Bn,Rn);return Bn.propertyIndex=J.ix,re.s.setGroupProperty(PropertyInterface("Start",w)),re.e.setGroupProperty(PropertyInterface("End",w)),re.o.setGroupProperty(PropertyInterface("Offset",w)),Bn.propertyIndex=J.ix,Bn.propertyGroup=Rn,Object.defineProperties(Bn,{start:{get:ExpressionPropertyInterface(re.s)},end:{get:ExpressionPropertyInterface(re.e)},offset:{get:ExpressionPropertyInterface(re.o)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function g(J,re,Rn){function Bn(vn){return J.a.ix===vn||vn==="Anchor Point"?Bn.anchorPoint:J.o.ix===vn||vn==="Opacity"?Bn.opacity:J.p.ix===vn||vn==="Position"?Bn.position:J.r.ix===vn||vn==="Rotation"||vn==="ADBE Vector Rotation"?Bn.rotation:J.s.ix===vn||vn==="Scale"?Bn.scale:J.sk&&J.sk.ix===vn||vn==="Skew"?Bn.skew:J.sa&&J.sa.ix===vn||vn==="Skew Axis"?Bn.skewAxis:null}var w=propertyGroupFactory(Bn,Rn);return re.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",w)),re.transform.mProps.p.setGroupProperty(PropertyInterface("Position",w)),re.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",w)),re.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",w)),re.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",w)),re.transform.mProps.sk&&(re.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",w)),re.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",w))),re.transform.op.setGroupProperty(PropertyInterface("Opacity",w)),Object.defineProperties(Bn,{opacity:{get:ExpressionPropertyInterface(re.transform.mProps.o)},position:{get:ExpressionPropertyInterface(re.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(re.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(re.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(re.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(re.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(re.transform.mProps.sa)},_name:{value:J.nm}}),Bn.ty="tr",Bn.mn=J.mn,Bn.propertyGroup=Rn,Bn}function y(J,re,Rn){function Bn(gn){return J.p.ix===gn?Bn.position:J.s.ix===gn?Bn.size:null}var w=propertyGroupFactory(Bn,Rn);Bn.propertyIndex=J.ix;var vn=re.sh.ty==="tm"?re.sh.prop:re.sh;return vn.s.setGroupProperty(PropertyInterface("Size",w)),vn.p.setGroupProperty(PropertyInterface("Position",w)),Object.defineProperties(Bn,{size:{get:ExpressionPropertyInterface(vn.s)},position:{get:ExpressionPropertyInterface(vn.p)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function x(J,re,Rn){function Bn(gn){return J.p.ix===gn?Bn.position:J.r.ix===gn?Bn.rotation:J.pt.ix===gn?Bn.points:J.or.ix===gn||gn==="ADBE Vector Star Outer Radius"?Bn.outerRadius:J.os.ix===gn?Bn.outerRoundness:J.ir&&(J.ir.ix===gn||gn==="ADBE Vector Star Inner Radius")?Bn.innerRadius:J.is&&J.is.ix===gn?Bn.innerRoundness:null}var w=propertyGroupFactory(Bn,Rn),vn=re.sh.ty==="tm"?re.sh.prop:re.sh;return Bn.propertyIndex=J.ix,vn.or.setGroupProperty(PropertyInterface("Outer Radius",w)),vn.os.setGroupProperty(PropertyInterface("Outer Roundness",w)),vn.pt.setGroupProperty(PropertyInterface("Points",w)),vn.p.setGroupProperty(PropertyInterface("Position",w)),vn.r.setGroupProperty(PropertyInterface("Rotation",w)),J.ir&&(vn.ir.setGroupProperty(PropertyInterface("Inner Radius",w)),vn.is.setGroupProperty(PropertyInterface("Inner Roundness",w))),Object.defineProperties(Bn,{position:{get:ExpressionPropertyInterface(vn.p)},rotation:{get:ExpressionPropertyInterface(vn.r)},points:{get:ExpressionPropertyInterface(vn.pt)},outerRadius:{get:ExpressionPropertyInterface(vn.or)},outerRoundness:{get:ExpressionPropertyInterface(vn.os)},innerRadius:{get:ExpressionPropertyInterface(vn.ir)},innerRoundness:{get:ExpressionPropertyInterface(vn.is)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function Pn(J,re,Rn){function Bn(gn){return J.p.ix===gn?Bn.position:J.r.ix===gn?Bn.roundness:J.s.ix===gn||gn==="Size"||gn==="ADBE Vector Rect Size"?Bn.size:null}var w=propertyGroupFactory(Bn,Rn),vn=re.sh.ty==="tm"?re.sh.prop:re.sh;return Bn.propertyIndex=J.ix,vn.p.setGroupProperty(PropertyInterface("Position",w)),vn.s.setGroupProperty(PropertyInterface("Size",w)),vn.r.setGroupProperty(PropertyInterface("Rotation",w)),Object.defineProperties(Bn,{position:{get:ExpressionPropertyInterface(vn.p)},roundness:{get:ExpressionPropertyInterface(vn.r)},size:{get:ExpressionPropertyInterface(vn.s)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function b(J,re,Rn){function Bn(gn){return J.r.ix===gn||gn==="Round Corners 1"?Bn.radius:null}var w=propertyGroupFactory(Bn,Rn),vn=re;return Bn.propertyIndex=J.ix,vn.rd.setGroupProperty(PropertyInterface("Radius",w)),Object.defineProperties(Bn,{radius:{get:ExpressionPropertyInterface(vn.rd)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function _(J,re,Rn){function Bn(gn){return J.c.ix===gn||gn==="Copies"?Bn.copies:J.o.ix===gn||gn==="Offset"?Bn.offset:null}var w=propertyGroupFactory(Bn,Rn),vn=re;return Bn.propertyIndex=J.ix,vn.c.setGroupProperty(PropertyInterface("Copies",w)),vn.o.setGroupProperty(PropertyInterface("Offset",w)),Object.defineProperties(Bn,{copies:{get:ExpressionPropertyInterface(vn.c)},offset:{get:ExpressionPropertyInterface(vn.o)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}return function(J,re,Rn){var Bn;function w(gn){if(typeof gn=="number")return gn=gn===void 0?1:gn,gn===0?Rn:Bn[gn-1];for(var Fn=0,zn=Bn.length;Fn<zn;){if(Bn[Fn]._name===gn)return Bn[Fn];Fn+=1}return null}function vn(){return Rn}return w.propertyGroup=propertyGroupFactory(w,vn),Bn=c(J,re,w.propertyGroup),w.numProperties=Bn.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="",p=h.getFootageData();function v(){return d="",p=h.getFootageData(),m}function m(g){if(p[g])return d=g,p=p[g],_typeof(p)==="object"?m:p;var y=g.indexOf(d);if(y!==-1){var x=parseInt(g.substr(y+d.length),10);return p=p[x],_typeof(p)==="object"?m:p}return""}return v},u=function(h){function d(p){return p==="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(v,m,g){m.x&&(g.k=!0,g.x=!0,g.initiateExpression=ExpressionManager.initiateExpression,g.effectsSequence.push(g.initiateExpression(v,m,g).bind(g)))}function u(v){return v*=this.elem.globalData.frameRate,v-=this.offsetTime,v!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<v?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(v,this._cachingAtTime),this._cachingAtTime.lastFrame=v),this._cachingAtTime.value}function f(v){var m=-.01,g=this.getValueAtTime(v),y=this.getValueAtTime(v+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(v){if(this.vel!==void 0)return this.vel;var m=-.001,g=this.getValueAtTime(v),y=this.getValueAtTime(v+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 p(v){this.propertyGroup=v}return{searchExpressions:c,getSpeedAtTime:f,getVelocityAtTime:h,getValueAtTime:u,getStaticValueAtTime:d,setGroupProperty:p}}();function addPropertyDecorator(){function c(b,_,J){if(!this.k||!this.keyframes)return this.pv;b=b?b.toLowerCase():"";var re=this.comp.renderedFrame,Rn=this.keyframes,Bn=Rn[Rn.length-1].t;if(re<=Bn)return this.pv;var w,vn;J?(_?w=Math.abs(Bn-this.elem.comp.globalData.frameRate*_):w=Math.max(0,Bn-this.elem.data.ip),vn=Bn-w):((!_||_>Rn.length-1)&&(_=Rn.length-1),vn=Rn[Rn.length-1-_].t,w=Bn-vn);var gn,Fn,zn;if(b==="pingpong"){var Un=Math.floor((re-vn)/w);if(Un%2!==0)return this.getValueAtTime((w-(re-vn)%w+vn)/this.comp.globalData.frameRate,0)}else if(b==="offset"){var Wn=this.getValueAtTime(vn/this.comp.globalData.frameRate,0),tr=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),Yn=this.getValueAtTime(((re-vn)%w+vn)/this.comp.globalData.frameRate,0),Xn=Math.floor((re-vn)/w);if(this.pv.length){for(zn=new Array(Wn.length),Fn=zn.length,gn=0;gn<Fn;gn+=1)zn[gn]=(tr[gn]-Wn[gn])*Xn+Yn[gn];return zn}return(tr-Wn)*Xn+Yn}else if(b==="continue"){var Jn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),ir=this.getValueAtTime((Bn-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(zn=new Array(Jn.length),Fn=zn.length,gn=0;gn<Fn;gn+=1)zn[gn]=Jn[gn]+(Jn[gn]-ir[gn])*((re-Bn)/this.comp.globalData.frameRate)/5e-4;return zn}return Jn+(Jn-ir)*((re-Bn)/.001)}return this.getValueAtTime(((re-vn)%w+vn)/this.comp.globalData.frameRate,0)}function u(b,_,J){if(!this.k)return this.pv;b=b?b.toLowerCase():"";var re=this.comp.renderedFrame,Rn=this.keyframes,Bn=Rn[0].t;if(re>=Bn)return this.pv;var w,vn;J?(_?w=Math.abs(this.elem.comp.globalData.frameRate*_):w=Math.max(0,this.elem.data.op-Bn),vn=Bn+w):((!_||_>Rn.length-1)&&(_=Rn.length-1),vn=Rn[_].t,w=vn-Bn);var gn,Fn,zn;if(b==="pingpong"){var Un=Math.floor((Bn-re)/w);if(Un%2===0)return this.getValueAtTime(((Bn-re)%w+Bn)/this.comp.globalData.frameRate,0)}else if(b==="offset"){var Wn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),tr=this.getValueAtTime(vn/this.comp.globalData.frameRate,0),Yn=this.getValueAtTime((w-(Bn-re)%w+Bn)/this.comp.globalData.frameRate,0),Xn=Math.floor((Bn-re)/w)+1;if(this.pv.length){for(zn=new Array(Wn.length),Fn=zn.length,gn=0;gn<Fn;gn+=1)zn[gn]=Yn[gn]-(tr[gn]-Wn[gn])*Xn;return zn}return Yn-(tr-Wn)*Xn}else if(b==="continue"){var Jn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),ir=this.getValueAtTime((Bn+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(zn=new Array(Jn.length),Fn=zn.length,gn=0;gn<Fn;gn+=1)zn[gn]=Jn[gn]+(Jn[gn]-ir[gn])*(Bn-re)/.001;return zn}return Jn+(Jn-ir)*(Bn-re)/.001}return this.getValueAtTime((w-((Bn-re)%w+Bn))/this.comp.globalData.frameRate,0)}function f(b,_){if(!this.k)return this.pv;if(b=(b||.4)*.5,_=Math.floor(_||5),_<=1)return this.pv;var J=this.comp.renderedFrame/this.comp.globalData.frameRate,re=J-b,Rn=J+b,Bn=_>1?(Rn-re)/(_-1):1,w=0,vn=0,gn;this.pv.length?gn=createTypedArray("float32",this.pv.length):gn=0;for(var Fn;w<_;){if(Fn=this.getValueAtTime(re+w*Bn),this.pv.length)for(vn=0;vn<this.pv.length;vn+=1)gn[vn]+=Fn[vn];else gn+=Fn;w+=1}if(this.pv.length)for(vn=0;vn<this.pv.length;vn+=1)gn[vn]/=_;else gn/=_;return gn}function h(b){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var _=this._transformCachingAtTime.v;if(_.cloneFromProps(this.pre.props),this.appliedTransformations<1){var J=this.a.getValueAtTime(b);_.translate(-J[0]*this.a.mult,-J[1]*this.a.mult,J[2]*this.a.mult)}if(this.appliedTransformations<2){var re=this.s.getValueAtTime(b);_.scale(re[0]*this.s.mult,re[1]*this.s.mult,re[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var Rn=this.sk.getValueAtTime(b),Bn=this.sa.getValueAtTime(b);_.skewFromAxis(-Rn*this.sk.mult,Bn*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var w=this.r.getValueAtTime(b);_.rotate(-w*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var vn=this.rz.getValueAtTime(b),gn=this.ry.getValueAtTime(b),Fn=this.rx.getValueAtTime(b),zn=this.or.getValueAtTime(b);_.rotateZ(-vn*this.rz.mult).rotateY(gn*this.ry.mult).rotateX(Fn*this.rx.mult).rotateZ(-zn[2]*this.or.mult).rotateY(zn[1]*this.or.mult).rotateX(zn[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var Un=this.px.getValueAtTime(b),Wn=this.py.getValueAtTime(b);if(this.data.p.z){var tr=this.pz.getValueAtTime(b);_.translate(Un*this.px.mult,Wn*this.py.mult,-tr*this.pz.mult)}else _.translate(Un*this.px.mult,Wn*this.py.mult,0)}else{var Yn=this.p.getValueAtTime(b);_.translate(Yn[0]*this.p.mult,Yn[1]*this.p.mult,-Yn[2]*this.p.mult)}return _}function d(){return this.v.clone(new Matrix)}var p=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(b,_,J){var re=p(b,_,J);return re.dynamicProperties.length?re.getValueAtTime=h.bind(re):re.getValueAtTime=d.bind(re),re.setGroupProperty=expressionHelpers.setGroupProperty,re};var v=PropertyFactory.getProp;PropertyFactory.getProp=function(b,_,J,re,Rn){var Bn=v(b,_,J,re,Rn);Bn.kf?Bn.getValueAtTime=expressionHelpers.getValueAtTime.bind(Bn):Bn.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(Bn),Bn.setGroupProperty=expressionHelpers.setGroupProperty,Bn.loopOut=c,Bn.loopIn=u,Bn.smooth=f,Bn.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(Bn),Bn.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(Bn),Bn.numKeys=_.a===1?_.k.length:0,Bn.propertyIndex=_.ix;var w=0;return J!==0&&(w=createTypedArray("float32",_.a===1?_.k[0].s.length:_.k.length)),Bn._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:w},expressionHelpers.searchExpressions(b,_,Bn),Bn.k&&Rn.addDynamicProperty(Bn),Bn};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(_,J){this.k&&this.getValue();var re=this.v;J!==void 0&&(re=this.getValueAtTime(J,0));var Rn,Bn=re._length,w=re[_],vn=re.v,gn=createSizedArray(Bn);for(Rn=0;Rn<Bn;Rn+=1)_==="i"||_==="o"?gn[Rn]=[w[Rn][0]-vn[Rn][0],w[Rn][1]-vn[Rn][1]]:gn[Rn]=[w[Rn][0],w[Rn][1]];return gn},points:function(_){return this.vertices("v",_)},inTangents:function(_){return this.vertices("i",_)},outTangents:function(_){return this.vertices("o",_)},isClosed:function(){return this.v.c},pointOnPath:function(_,J){var re=this.v;J!==void 0&&(re=this.getValueAtTime(J,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(re));for(var Rn=this._segmentsLength,Bn=Rn.lengths,w=Rn.totalLength*_,vn=0,gn=Bn.length,Fn=0,zn;vn<gn;){if(Fn+Bn[vn].addedLength>w){var Un=vn,Wn=re.c&&vn===gn-1?0:vn+1,tr=(w-Fn)/Bn[vn].addedLength;zn=bez.getPointInSegment(re.v[Un],re.v[Wn],re.o[Un],re.i[Wn],tr,Bn[vn]);break}else Fn+=Bn[vn].addedLength;vn+=1}return zn||(zn=re.c?[re.v[0][0],re.v[0][1]]:[re.v[re._length-1][0],re.v[re._length-1][1]]),zn},vectorOnPath:function(_,J,re){_==1?_=this.v.c:_==0&&(_=.999);var Rn=this.pointOnPath(_,J),Bn=this.pointOnPath(_+.001,J),w=Bn[0]-Rn[0],vn=Bn[1]-Rn[1],gn=Math.sqrt(Math.pow(w,2)+Math.pow(vn,2));if(gn===0)return[0,0];var Fn=re==="tangent"?[w/gn,vn/gn]:[-vn/gn,w/gn];return Fn},tangentOnPath:function(_,J){return this.vectorOnPath(_,J,"tangent")},normalOnPath:function(_,J){return this.vectorOnPath(_,J,"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,_,J,re,Rn){var Bn=Pn(b,_,J,re,Rn);return Bn.propertyIndex=_.ix,Bn.lock=!1,J===3?expressionHelpers.searchExpressions(b,_.pt,Bn):J===4&&expressionHelpers.searchExpressions(b,_.ks,Bn),Bn.k&&b.addDynamicProperty(Bn),Bn}}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,p;for(p=0;p<f.length;p+=1)d=createNS("feMergeNode"),d.setAttribute("in",f[p]),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 p=createNS("feColorMatrix");p.setAttribute("type","matrix"),p.setAttribute("color-interpolation-filters","linearRGB"),p.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=p,p.setAttribute("result",h+"_tint_1"),c.appendChild(p),p=createNS("feColorMatrix"),p.setAttribute("type","matrix"),p.setAttribute("color-interpolation-filters","sRGB"),p.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),p.setAttribute("result",h+"_tint_2"),c.appendChild(p),this.matrixFilter=p;var v=this.createMergeNode(h,[d,h+"_tint_1",h+"_tint_2"]);c.appendChild(v)}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 p=createNS("mask"),v=createElementID();p.setAttribute("id",v),p.setAttribute("mask-type","alpha"),p.appendChild(f),this.elem.globalData.defs.appendChild(p);var m=createNS("g");for(m.setAttribute("mask","url("+getLocationHref()+"#"+v+")");c[0];)m.appendChild(c[0]);this.elem.layerElement.appendChild(m),this.masker=p,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 p;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var v=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();p="0 0 0 "+g*v+" ";var y=g*(m-v),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)p+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";p+="0 "+g*10+" 0 0"}else p="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;d.setAttribute("stroke-dasharray",p)}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 _=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(_[0]*255)+","+bmFloor(_[1]*255)+","+bmFloor(_[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 p=createNS("feComponentTransfer");p.setAttribute("color-interpolation-filters","sRGB"),p.setAttribute("result",h),this.matrixFilter=p;var v=createNS("feFuncR");v.setAttribute("type","table"),p.appendChild(v),this.feFuncR=v;var m=createNS("feFuncG");m.setAttribute("type","table"),p.appendChild(m),this.feFuncG=m;var g=createNS("feFuncB");g.setAttribute("type","table"),p.appendChild(g),this.feFuncB=g,c.appendChild(p)}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],p=h[1]+" "+f[1]+" "+u[1],v=h[2]+" "+f[2]+" "+u[2];this.feFuncR.setAttribute("tableValues",d),this.feFuncG.setAttribute("tableValues",p),this.feFuncB.setAttribute("tableValues",v)}};function SVGProLevelsFilter(c,u,f,h){this.filterManager=u;var d=this.filterManager.effectElements,p=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",p)),(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",p)),(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",p)),(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",p)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(p.setAttribute("color-interpolation-filters","sRGB"),c.appendChild(p)),(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)&&(p=createNS("feComponentTransfer"),p.setAttribute("color-interpolation-filters","sRGB"),p.setAttribute("result",h),c.appendChild(p),this.feFuncRComposed=this.createFeFunc("feFuncR",p),this.feFuncGComposed=this.createFeFunc("feFuncG",p),this.feFuncBComposed=this.createFeFunc("feFuncB",p))}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 p=0,v=256,m,g=Math.min(c,u),y=Math.max(c,u),x=Array.call(null,{length:v}),Pn,b=0,_=d-h,J=u-c;p<=256;)m=p/256,m<=g?Pn=J<0?d:h:m>=y?Pn=J<0?h:d:Pn=h+_*Math.pow((m-c)/J,1/f),x[b]=Pn,b+=1,p+=256/(v-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 p=u.container.globalData.renderConfig.filterSize,v=u.data.fs||p;c.setAttribute("x",v.x||p.x),c.setAttribute("y",v.y||p.y),c.setAttribute("width",v.width||p.width),c.setAttribute("height",v.height||p.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),p=f*Math.sin(h);this.feOffset.setAttribute("dx",d),this.feOffset.setAttribute("dy",p)}}};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,p=h.length;d<p&&h[d]!==c.layerElement;)d+=1;var v;d<=p-2&&(v=h[d+1]);var m=createNS("use");m.setAttribute("href","#"+u),v?f.insertBefore(m,v):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 p=createNS("symbol");p.setAttribute("id",f),this.replaceInParent(u,f),p.appendChild(u.layerElement),d.appendChild(p);var v=createNS("use");v.setAttribute("href","#"+f),h.appendChild(v),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,p=h==2?0:f;this.feGaussianBlur.setAttribute("stdDeviation",d+" "+p);var v=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",v)}};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,p=u[3].p.v,v=d?p: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(v*.01,p*.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 J={},{actionType:re,linkPage:Rn,href:Bn}=c,{requestParams:w={}}=window.config;return vue.unref(h)!=="design"&&re==="close"&&c.isDrillShow&&!w.drillFlag&&(J.display="none"),(re==="link"&&(Rn||Bn)||!re&&(Rn||Bn)||re==="close")&&(J.cursor="pointer"),{...vue.unref(u),...J}}),{getGlobalModel:p,setGlobalModel:v,getRecordValueByKeyName:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:J=>{},setGlobalModel:(J,re)=>{},getRecordValueByKeyName:J=>{}}),{setTemplateData:g}=vue.inject("templateOperate",{setTemplateData:J=>{}}),x=useEmitEvent(c)("click",()=>{const J=p(c.id);if(v(c.id,{...J,type:c.type,RECORD:c.data||{}}),setTimeout(()=>{v(c.id,{...J,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(),_=()=>{const{directory:J}=c.animationSource;c.isAnimation&&Pn.value&&J&&(b.value=lottie.loadAnimation({name:`${c.keyName}-lotTie`,container:Pn.value,renderer:"svg",loop:!0,autoplay:!0,path:useImagePath(J)+"data.json"}),vue.unref(b).setSpeed(1))};return vue.watch(()=>[c.isAnimation,c.animationSource],([J])=>{J&&vue.nextTick(()=>{_()})},{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,p){var v;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?!((v=c.animationSource)!=null&&v.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:p=>{}}),d=vue.computed(()=>{var v;let p=hn(c.link);if(c.linkType==="erd"&&p!=null){let m=vue.unref(f);m[m.length-1]==="/"?m+="erdReport":m+="/erdReport",p=`${ERD_URL||m}?_t=0&uid=${p}`}if((v=c.transParams)!=null&&v.length){p.includes("?")?p+="&":p+="?";const m=[];for(const g of c.transParams){const y=h(String(g.fieldName));m.push(`${g.keyName}=${y}`)}p+=m.join("&")}return p});return{style:u,myLink:d}}}),Iframe_vue_vue_type_style_index_0_scoped_c0393b8d_lang="",_hoisted_1$2=["src"];function _sfc_render$5(c,u,f,h,d,p){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-c0393b8d"]]),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:"",isTableFill:!1,conditionList:[]},tableComponentProps=transformToComponentProps(tableProps),tableEvents=["click","refreshData","resetRecord","exportTableData"],topArrow="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAYCAYAAADOMhxqAAAAAXNSR0IArs4c6QAAAK1JREFUOE/tktENgjAURe+FBRiBCdCOwAYOoIiTqBs4Agn+OwJuUHECRugC5ZkUUItNXIB+3ndOmt5XInCkLU6AGK7qy3zMeSB6u0HMm8ut5FTX+zfjCaLLFHGvAUlGyMDGiqrqJuktjHADSOrfyg42yifJCaLLBFHfgLIOvQnCB3onmUFoiwqUfRD+hBWz+kDXCOX4Bx7Glufflp478VrJao9ZBLeTpSWAy9cAXto7eMUv8Bo2AAAAAElFTkSuQmCC",downArrow="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAYCAYAAADOMhxqAAAAAXNSR0IArs4c6QAAAMBJREFUOE/tlE0OwVAURs8tcx0RRpWQGLIDXYIViB3YgdpJl2AHXQJzJJ0hBjoy0fbSl5C2ohvQN3rf994Z3F+hdAYX1bx16IjkdUFkDzUA1FkC/rM1BlddkeKVB+mH9kyWhhf1FeZVkAj+vi0LAzg3tZsPApTxD2gX33HDvkSfOoxO6iQWgYKThxTCJMUNuxJmfqFwGRQ32KLYBhKiOGHy/vwFmCVw0ikWQXbXhNmxJ5vKrWGgsy4RWq/hWZdjegLPIXik13+8RAAAAABJRU5ErkJggg==",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,theme:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",height:null,theme:"light"}),p=vue.ref(!1),v=vue.computed(()=>vue.unref(f)!=="design"&&c.isAutoScroll),m=vue.ref({}),g=vue.ref(!1),y=vue.computed(()=>{const xr=lodashEs.cloneDeep(c.columns);return c.isUseSeq&&xr.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&xr.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),xr}),x=vue.ref(),Pn=vue.ref(!1),b=usePickComponentStyle(c),_=vue.ref([]),J=vue.computed(()=>{const{height:xr}=c;return typeof xr=="string"?xr:xr.suffix==="px"?xr.value+"px":xr.suffix==="%"?parseFloat(vue.unref(h))*(xr.value/100)+"px":"0"}),re=vue.computed(()=>c.scrollX),Rn=vue.ref(parseFloat(J.value)),Bn=()=>{let xr=0;switch(c.size){case"small":xr=50;break;case"middle":xr=53;break;default:xr=65;break}return xr},w=vue.ref(0),vn=vue.ref(""),gn=vue.ref(0);vue.watchEffect(()=>{var xr;(xr=_.value)!=null&&xr.length&&J.value&&setTimeout(()=>{let Cr=parseFloat(J.value),Ar=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Ir=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const Fr=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`);let Dr=0;if(Ir&&(Cr-=(Ir==null?void 0:Ir.clientHeight)||0),Fr&&c.isSummaryFixed&&(Dr=(Fr==null?void 0:Fr.clientHeight)||0,Cr-=Dr),c.paginationShow&&!c.isAutoScroll){let Tr=0;Tr=Bn(),Tr&&(Cr-=Tr)}(Ar==null?void 0:Ar.clientHeight)>Cr?Rn.value=Cr:Rn.value=0,vue.nextTick(()=>{if(Dr){const Tr=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`),Br=(Tr==null?void 0:Tr.clientHeight)||0;Dr!==Br&&vue.unref(Rn)&&(Rn.value=Cr+Dr-Br)}c.isAutoScroll&&p.value&&setTimeout(()=>{var $r;const Tr=document.querySelector(`#ecanTable-${c.id} .ant-table-body`);Ar=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Ir=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const Br=Tr||Ar;w.value=(Br==null?void 0:Br.clientHeight)||0,gn.value=(Ir==null?void 0:Ir.clientHeight)||0,m.value={height:((Ar==null?void 0:Ar.clientHeight)||0)+"px"};const Vr=document.querySelector(`#ecanTable-${c.id} .ant-table-body > table`);if(vn.value=($r=document.querySelector(`#ecanTable-${c.id} .ant-table`))==null?void 0:$r.className,Vr){const zr=Vr.cloneNode(!0);Vr.style.visibility="hidden",setTimeout(()=>{Br==null||Br.setAttribute("id","hiddenTableBody")},0);const Nr=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap`);if(Nr!=null&&Nr.length){for(const Zr of Nr)Zr.append(zr.cloneNode(!0));const qr=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap .ant-table-cell`);if(qr!=null&&qr.length)for(const Zr of qr)Fn(Zr);const Yr=document.querySelector(`#ecanTable-${c.id} .vue3-marquee`);Yr&&Yr.addEventListener("scroll",Zr=>{var Xr;document.querySelector(`#ecanTable-${c.id} .ant-table-header`).scrollLeft=((Xr=Zr==null?void 0:Zr.target)==null?void 0:Xr.scrollLeft)||0})}}},0)})},0)});function Fn(xr){xr.addEventListener("click",Cr=>{const Ir=zn(Cr.target).getAttribute("dix");if(Ir){const Fr=document.querySelector(`#ecanTable-${c.id} #hiddenTableBody td[dix="${Ir}"]`);Fr&&Fr.click()}})}function zn(xr){return xr.className.includes("ant-table-cell")?xr:zn(xr.parentElement)}const Un=vue.ref([]),Wn=vue.ref([]),tr=vue.ref([]),Yn=vue.ref([]),Xn=vue.ref(0),Jn=vue.ref(1),ir=vue.ref(c.paginationPageSize||10),sr=vue.reactive([]),Zn=(xr,Cr)=>{let Ar="";return xr.forEach((Ir,Fr)=>{const{value:Dr,rule:Tr}=Ir;Ir.conditions?Ar+=`(${Zn(Ir.conditions,Ir.join)})`:Dr&&Tr&&(Ar+=`value ${Tr} '${Dr}'`),Ar+=`${Fr===xr.length-1?"":Cr?" "+Cr+" ":""}`}),Ar},Gn=(xr=[])=>{var Cr,Ar;if(Array.isArray(xr)&&xr.length>0){let Ir=xr.length;const Fr=c.columnsFixedNum;if(c.dataType==="indicator"&&((Cr=vue.unref(y))!=null&&Cr.length)&&!vue.unref(y).find(Dr=>{var Tr;return(Tr=Dr.children)==null?void 0:Tr.length})){const{graphicConfig:{indicators:Dr=[]}}=c;xr.forEach((Tr,Br)=>{if(vue.unref(y)[Br])for(const zr in vue.unref(y)[Br])["dataIndex","title"].includes(zr)||(Tr[zr]=vue.unref(y)[Br][zr]);const Vr=Dr.find(zr=>zr.label===Tr.title),{showLabel:$r=""}=Vr||{};$r&&(Tr.title=$r)})}for(let Dr=Ir-1;Dr>=0;Dr--)(Ar=xr[Dr])!=null&&Ar.isHidden&&xr.splice(Dr,1);Ir=xr.length;for(let Dr=0;Dr<Ir;Dr++){const Tr=xr[Dr];if(Dr<Fr?Tr.fixed="left":Tr.fixed=!1,c.isSortByFront&&Tr.sorter){const ti=Tr.dataIndex;Tr.sorter=(ii,oi)=>ii[ti]-oi[ti]}const{cellAlign:Br="center",cellColor:Vr,dataIndex:$r,title:zr,tableFilter:Nr,headerCellAlign:qr,headerCellColor:Yr,overflow:Zr,conditions:Xr}=Tr;Nr&&(sr.push($r),Tr.filterOptionsInputValue="",Tr.filterCheckboxGroupValue=[],Tr.customFilterDropdown=!0,Tr.onFilter=(ti,ii)=>ii[$r].toString().toLowerCase().includes(ti.toLowerCase())),Xr&&(Tr.conditionCode=Zn(Xr)),Tr.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:c.headerFontSize,fontWeight:c.headerFontWeight,textAlign:qr||"center",color:Yr||c.headerFontColor,borderBottomColor:c.borderColor,backgroundColor:c.headerBackgroundColor}}),Tr.customCell=(ti,ii,oi)=>({style:{textAlign:Br,color:Kn(oi)?c.linkTextColor:Vr||c.cellFontColor,backgroundColor:c.cellBackgroundColor,borderBottomColor:c.borderColor},class:{highlight:vue.unref(Mr)===ii&&c.clickHighlight,linkText:Kn(oi)},dix:oi.dataIndex+"_"+ii,onClick:br("click",()=>{const Ti=c.id,Ii=Sr(Ti);ti={dataIndex:$r,title:zr,...ti},gr(Ti,{...Ii,type:c.type,RECORD:ti}),Mr.value=ii,setTimeout(()=>{if(!c.linkPage&&!c.href)return;let Pi=!1;(Kn(oi)||c.clickTarget!=="cell")&&(Pi=!0),Pi&&handleJumpLink(c,{pageMode:vue.unref(f),getRecordValueByKeyName:kr})},0)})}),Zr==="ellipsis"?Tr.ellipsis=!0:Tr.ellipsis=!1,Array.isArray(Tr.children)&&Gn(Tr.children)}}};function Kn(xr){let Cr=!1;return c.clickTarget==="cell"&&c.clickTargetColumns.includes(xr.dataIndex)&&(Cr=!0),Cr}const Vn=(xr=[])=>{var Ar;let Cr=lodashEs.cloneDeep(xr);return(Ar=vue.unref(Yn))!=null&&Ar.length&&(Cr=lodashEs.cloneDeep(vue.unref(Yn))),c.isUseSeq&&Cr.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&Cr.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),Gn(Cr),Cr};vue.watch(ir,()=>{Jn.value=1,Lr(!1)}),vue.watch(x,xr=>{Pn.value=!!xr}),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],()=>{Un.value=Vn(lodashEs.cloneDeep(c.columns))},{immediate:!0,deep:!0}),vue.watch(()=>[c.data,c.dataType],([xr,Cr])=>{Cr==="static"&&(Wn.value=xr)},{immediate:!0});const qn=vue.ref({}),nr=xr=>{if(Array.isArray(xr)){const Cr=xr.length,Ar=sr,Ir=Ar.length,Fr={};for(let Tr=0;Tr<Cr;Tr++){const Br=xr[Tr];for(let Vr=0;Vr<Ir;Vr++){const $r=Ar[Vr];if(Fr[$r])Fr[$r].add(Br[$r]);else{const zr=new Set;zr.add(Br[$r]),Fr[$r]=zr}}}const Dr={};for(const Tr in Fr)if(Object.prototype.hasOwnProperty.call(Fr,Tr)){const Br=Fr[Tr],Vr=Array.from(Br);Dr[Tr]=Vr.map($r=>({label:$r,value:$r}))}qn.value=Dr}};vue.watch(()=>[c.isReverse,Un.value,Wn.value],()=>{const xr=vue.unref(Un),Cr=vue.unref(Wn);if(nr(Cr),c.isReverse){const{columns:Ar,dataSource:Ir}=Hn(lodashEs.cloneDeep(xr),lodashEs.cloneDeep(Cr));tr.value=Ar,_.value=Ir.map(Fr=>({key:nanoid(6),...Fr}))}else tr.value=xr,_.value=Cr.map(Ar=>({key:nanoid(6),...Ar}))},{immediate:!0});const Hn=(xr,Cr)=>{const Ar=xr[0],Ir=[{title:Ar.title,dataIndex:"col0",key:"col0",align:"center"}];for(let Dr=0;Dr<Cr.length;Dr++){const Tr=Cr[Dr],Br="col"+(Dr+1);Ir.push({title:Tr[Ar.dataIndex],dataIndex:Br,key:Br,align:"center"})}const Fr=[];for(let Dr=1;Dr<xr.length;Dr++){const Tr=xr[Dr],Br={col0:Tr.title};for(let Vr=0;Vr<Cr.length;Vr++){const $r=Cr[Vr];Br[`col${Vr+1}`]=$r[Tr.dataIndex]}Fr.push(Br)}return{columns:Ir,dataSource:Fr}},lr=vue.ref(""),cr=xr=>{var Ir;const{rows:Cr=[],total:Ar=0}=((Ir=xr==null?void 0:xr.data)==null?void 0:Ir.data)||{};if(Xn.value=Ar,Array.isArray(Cr)&&(Wn.value=Cr),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:Fr=[]}=c,Dr=Fr.find(Tr=>Tr.key==="dataSqlId");if((Dr==null?void 0:Dr.value)==="xt_jxzebg"){const Tr=Cr.filter(Br=>!Br.绩效总额).map(Br=>Br.ORG_NAME);Tr!=null&&Tr.length&&vue.nextTick(()=>{antDesignVue.notification.warning({message:"提示",description:`当前时段${Tr.join("、")}绩效数据为空`,duration:3})})}}p.value=!0},Qn=useRequestData(c),ar=async(xr=!0,Cr={})=>{try{xr&&(g.value=!0),vue.unref(lr)&&(Cr.orderCondition=vue.unref(lr)),c.paginationShow&&(Cr={pageNum:vue.unref(Jn),pageSize:vue.unref(ir)||"10",layer:"1",...Cr});const Ar=await Qn(Cr);cr(Ar)}catch(Ar){console.error(Ar)}finally{g.value=!1}},er=({current:xr},Cr,Ar)=>{if(Jn.value=xr,Ar&&Object.keys(Ar).length>0){const{field:Ir,order:Fr}=Ar,Tr={ascend:"asc",descend:"desc"}[Fr];Ir!=null&&Tr!=null&&Tr?lr.value=Ir+" "+Tr:Tr||(lr.value="")}c.isSortByFront||Lr(!1)},ur=vue.computed(()=>{const xr=c.simple,Cr=[c.paginationPosition],Ar={};return c.isShowTotal&&(Ar.showTotal=Ir=>`共 ${Ir} 条数据`),c.paginationShow&&{simple:xr,position:Cr,total:vue.unref(Xn),current:vue.unref(Jn),pageSize:vue.unref(ir)||"10",showSizeChanger:!1,size:"large",...Ar}}),hr=xr=>+xr==1?"是":+xr==0?"否":xr,or=(xr,Cr)=>{const{format:Ar,retentiondigit:Ir,customFormatter:Fr,defaultVal:Dr}=Cr;let Tr="";if(Ar==null||Ar==="")Tr=xr;else{const Br={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,boolean:hr,decimals:formatDecimals,custom:formatCustom};Br[Ar]||(Tr=""),Ar==="decimals"?Tr=Br[Ar](xr,Ir)||"":Ar==="custom"?Tr=Br[Ar](xr,Fr)||"":Tr=Br[Ar](xr)||""}return Tr||(Tr=Dr),Tr},mr=xr=>xr==="contrast"?"upDown":"",dr=xr=>{const{text:Cr,format:Ar,declineColor:Ir="#39cf93",increaseColor:Fr="#ff512e"}=xr,Dr={fontSize:c.fontSize};if(Qr(xr.dataIndex))return Dr.display="flex",Dr.justifyContent="center",Dr.alignItems="center",Dr;if(Ar==="contrast"){const Tr=parseFloat(Cr+"");return Tr>=0?Dr.color=Fr:Tr<0&&(Dr.color=Ir),Dr}else return{}},fr=vue.computed(()=>{const{fontSize:xr}=c;return{width:xr,height:xr,textIndent:`-${parseFloat(xr)*2}px`,overflow:"hidden"}}),vr=xr=>{const{text:Cr,declineColor:Ar="#39cf93",increaseColor:Ir="#ff512e"}=xr,{fontSize:Fr}=c,Dr=parseFloat(Cr+""),Tr={width:Fr,verticalAlign:"unset"};return Dr>=0?Tr.filter=`drop-shadow(${Ir||"#ff512e"} ${Fr} -1px)`:Dr<0&&(Tr.filter=`drop-shadow(${Ar||"#39cf93"} ${Fr} -1px)`),Tr},pr=xr=>{const Cr=parseFloat(xr+"");if(Cr>=0)return goUp;if(Cr<0)return goDown},yr=(xr,Cr,Ar,Ir)=>{var Br,Vr,$r;const Fr="#39cf93",Dr="#ff512e",Tr=c.conditionList.find(zr=>zr.dataIndex===xr.dataIndex);if((Br=Tr==null?void 0:Tr.conditions)!=null&&Br.length){const{fontSize:zr}=c,Nr={style:{width:zr,verticalAlign:"middle"},src:""};for(const qr of Tr.conditions){const Yr=((Vr=qr==null?void 0:qr.property)==null?void 0:Vr.icon)||"";let Zr=(($r=qr==null?void 0:qr.property)==null?void 0:$r.iconColor)||"";if(Yr){let Xr=!1;if(qr.rule&&qr.value){const ti=`${qr.field} ${qr.rule} '${qr.value}'`;Xr=pn(ti,{...Ar,value:Cr})}else Xr=!0;Xr&&(Yr==="increase"?Nr.src=topArrow:Yr==="decline"&&(Nr.src=downArrow),Zr||(Yr==="increase"?Zr=Dr:Yr==="decline"&&(Zr=Fr)),Nr.style.filter=`drop-shadow(${Zr} ${zr} -1px)`)}}if(Ir===1)return Nr.style;if(Ir===2)return Nr.src}else return""},br=useEmitEvent(c),{getGlobalModel:Sr,setGlobalModel:gr,getRecordValueByKeyName:kr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:xr=>{},setGlobalModel:(xr,Cr)=>{},getRecordValueByKeyName:xr=>{}});gr(c.id,{type:c.type,RECORD:""});const wr=(xr=[],Cr=[])=>{let Ar=xr.map(Ir=>({title:Ir,dataIndex:Ir,key:Ir}));vue.unref(y).find(Ir=>{var Fr;return(Fr=Ir.children)==null?void 0:Fr.length})&&(Ar=lodashEs.cloneDeep(vue.unref(y))),Yn.value=lodashEs.cloneDeep(Ar),Un.value=Vn(Ar),Wn.value=Cr,p.value=!0},Er=xr=>{var Cr,Ar,Ir,Fr;wr((Ar=(Cr=xr==null?void 0:xr.data)==null?void 0:Cr.data)==null?void 0:Ar.columns,(Fr=(Ir=xr==null?void 0:xr.data)==null?void 0:Ir.data)==null?void 0:Fr.rows)},Pr=useIndicatorData(c,Er),_r=async(xr=!0)=>{try{xr&&(g.value=!0);const Cr=vue.unref(lr).split(" "),Ar={};c.isSortByFront||(Ar.sort={order:Cr[1],field:Cr[0]});const Ir=await Pr(Ar);Er(Ir)}catch(Cr){console.error(Cr)}finally{g.value=!1}},Mr=vue.ref(-1),{loadedData:Or}=vue.inject(LOADED_DATA,{loadedData:{}}),Rr=vue.ref(!1);vue.watch(Or,xr=>{if(c.dataType==="indicator"){const Cr=getFixedValueDatas(c.graphicConfig);Cr!=null&&Cr.length&&(!vue.unref(Rr)&&canRequestIndicator(c.graphicConfig,xr)?(Rr.value=!0,Lr()):canRequestIndicator(c.graphicConfig,xr)||(Rr.value=!1))}},{deep:!0});const Lr=(xr=!0)=>{switch(c.dataType){case"request":ar(xr);break;case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(Or))&&_r(xr);break}},jr=()=>{const xr=c.id,Cr=Sr(xr);gr(xr,{...Cr,type:c.type,RECORD:""})},Gr=vue.computed(()=>{const xr=vue.unref(tr);let Cr=0;const{subTotalColumn:Ar,subTotalName:Ir}=c;Ar&&(Cr=xr.findIndex(Vr=>Vr.dataIndex===Ar),Cr<0&&(Cr=0));const Fr=[];let Dr=0;for(let Vr=0;Vr<xr.length;Vr++){const $r=xr[Vr],{isCalcTotal:zr}=$r;Vr===Cr?Fr.push({...$r,total:Ir}):zr?(Fr.push({...$r,index:Vr,total:0}),Dr++):Fr.push({...$r})}if(Dr===0)return[];const Tr=vue.unref(_),Br=Hr(Fr);for(let Vr=0;Vr<Br.length;Vr++){const $r=Br[Vr];let zr=0;const{isCalcTotal:Nr,dataIndex:qr}=$r;if(Nr===!0){for(let Yr=0;Yr<Tr.length;Yr++){const Xr=+Tr[Yr][qr];isNaN(Xr)||(zr=new big_js.Big(zr).add(Xr).toNumber())}$r.total=zr}}return Br});function Hr(xr){var Ar;const Cr=[];for(const Ir of xr)(Ar=Ir.children)!=null&&Ar.length?Cr.push(...Hr(Ir.children)):Cr.push(Ir);return Cr}const{setRequest:Wr}=vue.inject(REQUEST_MODEL,{setRequest:xr=>{}});typeof Wr=="function"&&Wr({id:c.id,requestFn:Lr,sortNum:c.requestSort}),u({refreshData:Lr});const Kr=(xr="",Cr)=>hn(xr,Cr),ei=xr=>{if(xr!=="event")return{self:"_self",blank:"_blank"}[xr]},ni=(xr,Cr="")=>{xr==="event"&&window.parent.postMessage({type:"openPage",url:Cr},"*")},ri=(xr,Cr)=>{xr(Cr.filterCheckboxGroupValue)},mi=(xr,Cr)=>{xr({confirm:!0}),Cr.filterOptionsInputValue="",Cr.filterCheckboxGroupValue=[]},gi=()=>{},li=xr=>{const Cr=xr.dataIndex;if(typeof Cr=="string"){let Ar=vue.unref(qn)[Cr];const Ir=vue.unref(xr.filterOptionsInputValue).trim();return Array.isArray(Ar)?(Ar=Ar.filter(Fr=>typeof Fr.label=="string"?Fr.label.toLowerCase().includes(Ir.toLowerCase()):!0),Ar):[]}return[]},ci=async()=>{var $r,zr;const xr="EXPORT_KEY";antDesignVue.message.loading({key:xr,content:"正在导出...",duration:0});let Cr=[];if(c.dataType==="static")Cr=c.data;else if(c.dataType==="request"){const Nr={layer:"1"};vue.unref(lr)&&(Nr.orderCondition=vue.unref(lr));const qr=await Qn(Nr);Cr=((zr=($r=qr==null?void 0:qr.data)==null?void 0:$r.data)==null?void 0:zr.rows)||{}}const Ar=vue.unref(tr),Ir=[],Fr=[];Ar==null||Ar.forEach(Nr=>{Ir.push(Nr.dataIndex),Fr.push(Nr.title)});const Dr=Cr.map(Nr=>lodashEs.pick(Nr,Ir)),Tr=xlsx.utils.book_new(),Br=xlsx.utils.aoa_to_sheet([Fr]),Vr=xlsx.utils.sheet_add_json(Br,Dr,{skipHeader:!0,origin:"A2"});xlsx.utils.book_append_sheet(Tr,Vr,"sheet"),xlsx.writeFile(Tr,"表格数据.xlsx"),antDesignVue.message.success({key:xr,content:"导出成功"})},ui=(xr,Cr=2)=>{const Ar=+xr*100;return isNaN(Ar)||Ar<=0?0:Ar>=100?100:Ar.toFixed(Cr)};useOnEvent(c,{resetRecord:jr,refreshData:Lr,exportTableData:ci});const yi=(xr,Cr)=>{let Ar=null;return c.stripedShow&&(Ar=Cr%2===1?"table-striped":null),Ar},fi=vue.computed(()=>{var Ar;let xr=0;const{isTableFill:Cr}=c;if(Cr&&J.value){let Ir=0;c.paginationShow&&((Ar=vue.unref(_))!=null&&Ar.length)&&(Ir=Bn()),xr=parseFloat(vue.unref(J))-Ir}return xr?xr+"px":"100%"}),bi=vue.computed(()=>{const xr=vue.unref(d)==="darkBlue";let Cr="";return c.isTableFill&&(Cr=c.cellBackgroundColor,Cr||(si.value==="transparent"?xr?Cr="#071655":Cr="transparent":xr?Cr=si.value:Cr="transparent")),Cr}),xi=vue.computed(()=>{let xr="#071655";return c.headerBackgroundColor&&(xr="transparent"),xr}),si=vue.computed(()=>{let xr="#071655";return(c.cellBackgroundColor||c.stripedShow&&c.stripedColor)&&(xr="transparent"),xr}),hi=vue.computed(()=>parseFloat(c.fontSize)+16),Si=vue.computed(()=>{let xr="";const{paginationColor:Cr,paginationBgColor:Ar,activePaginationColor:Ir,activePaginationBgColor:Fr,hoverBackgroundColor:Dr}=c;return Cr&&(xr+="p-color "),Ar&&(xr+="p-bg-color "),Ir&&(xr+="active-p-color "),Fr&&(xr+="active-p-bg-color "),Dr&&(xr+="hover-bg-color "),xr}),di=(xr,Cr)=>{if(Qr(xr.dataIndex))return!1;const{conditionCode:Ar}=xr;return pn(Ar,{value:Cr})},pi=(xr,Cr,Ar)=>{var Vr,$r;const{overflow:Ir,conditionCode:Fr,attribute:Dr,dataIndex:Tr}=xr,Br={};if(Ir==="ellipsis"&&(Br.overflow="hidden",Br.textOverflow="ellipsis"),Fr&&(Dr!=null&&Dr.color)&&di(xr,Cr)&&(Br.color=Dr.color),Dr!=null&&Dr.icon&&(xr==null?void 0:xr.cellAlign)==="right"&&(Br.display="flex",Br.alignItems="center",Br.justifyContent="flex-end"),Qr(Tr)){const zr=c.conditionList.find(Nr=>Nr.dataIndex===Tr);if((Vr=zr==null?void 0:zr.conditions)!=null&&Vr.length){for(const Nr of zr.conditions)if(($r=Nr==null?void 0:Nr.property)!=null&&$r.color){let qr=!1;if(Nr.rule&&Nr.value){const Yr=`${Nr.field} ${Nr.rule} '${Nr.value}'`;qr=pn(Yr,{...Ar,value:Cr})}else qr=!0;qr&&(Br.color=Nr.property.color)}}else delete Br.color}return Br},Ci=xr=>{const{attribute:Cr}=xr;let Ar="";return Cr!=null&&Cr.icon&&(Ar=useImagePath(Cr.icon)),Ar},vi=xr=>{let Cr={};return(xr==null?void 0:xr.cellAlign)==="right"?Cr={marginRight:"5px"}:Cr={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(c.fontSize)+6+"px",...Cr}},Jr=(xr,Cr)=>xr||xr===0?xr:Cr==null?void 0:Cr.defaultVal;function Qr(xr){var Ar;const Cr=c.conditionList.find(Ir=>Ir.dataIndex===xr);return!!((Ar=Cr==null?void 0:Cr.conditions)!=null&&Ar.length)}return{x:re,y:Rn,style:b,pagination:ur,formatFn:or,contrastClass:mr,tableChange:er,summaryList:Gr,loading:g,onTouchHrefEvent:ni,handleHref:Kr,handleHrefTarget:ei,useRowIndex:Mr,tableColumns:tr,tableDataSource:_,useFilterOptions:li,useSetSelectedKeys:ri,onResetFilter:mi,onSearchFilterOptions:gi,exportTableData:ci,handleProgressText:ui,pageSizeVisible:Pn,pageSize:ir,tableRef:x,rowClassName:yi,tableHeight:fi,tableBgColor:bi,tableHeaderBgColor:xi,tableBodyBgColor:si,getChgStyle:dr,chgBoxStyle:fr,getChgBoxImgStyle:vr,getChgBoxImgSrc:pr,seqIcon1,seqIcon2,seqIcon3,iconSize:hi,containerClass:Si,getCellStyle:pi,isMatchCondition:di,getAttrImgSrc:Ci,getAttrImgStyle:vi,getCellText:Jr,autoScrollHeight:w,autoScrollClass:vn,autoScrollTop:gn,isScroll:v,scrollWrapStyle:m,isLinkStyle:Kn,hasConditionConfig:Qr,formatTextByConditions:(xr,Cr,Ar)=>{var Fr,Dr;const Ir=c.conditionList.find(Tr=>Tr.dataIndex===xr.dataIndex);if((Fr=Ir==null?void 0:Ir.conditions)!=null&&Fr.length){let Tr=Cr;for(const Br of Ir.conditions){const Vr=((Dr=Br==null?void 0:Br.property)==null?void 0:Dr.formatText)||"";if(Vr){let $r=!1;if(Br.rule&&Br.value){const zr=`${Br.field} ${Br.rule} '${Br.value}'`;$r=pn(zr,{...Ar,value:Cr})}else $r=!0;$r&&(Tr=hn(Vr,{textData:{...Ar,value:Cr}}))}}return Tr}else return""},getChgByCondition:yr}}}),__injectCSSVars__=()=>{vue.useCssVars(c=>({f2959870:c.stripedColor,"0d44247f":c.tableHeaderBgColor,"1eec2f4a":c.tableBodyBgColor,"3c6b7ac8":c.paginationBgColor,"846492e6":c.paginationColor,"0a10c53c":c.activePaginationBgColor,"7e55b7a7":c.activePaginationColor,"1c856456":c.hoverBackgroundColor}))},__setup__=__default__.setup;__default__.setup=__setup__?(c,u)=>(__injectCSSVars__(),__setup__(c,u)):__injectCSSVars__;const Table_vue_vue_type_style_index_0_scoped_a83fea44_lang="",Table_vue_vue_type_style_index_1_lang="",_withScopeId=c=>(vue.pushScopeId("data-v-a83fea44"),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=["src"],_hoisted_20=["title"],_hoisted_21=["src"],_hoisted_22=["src"],_hoisted_23={class:"ant-pagination-options-quick-jumper"},_hoisted_24=_withScopeId(()=>vue.createElementVNode("span",null,"条 / 页",-1));function _sfc_render$4(c,u,f,h,d,p){const v=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"),_=vue.resolveComponent("a-table-summary"),J=vue.resolveComponent("a-table"),re=vue.resolveComponent("marquee-scroll"),Rn=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(Rn,{loading:c.loading},{default:vue.withCtx(()=>{var Bn;return[c.isUseExport?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1,[vue.createVNode(v,{class:"export-button",onClick:c.exportTableData},{default:vue.withCtx(()=>[_hoisted_3]),_:1},8,["onClick"])])):vue.createCommentVNode("",!0),vue.createVNode(J,{ref:"tableRef",class:"table",style:vue.normalizeStyle({height:c.tableHeight,backgroundColor:c.tableBgColor}),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 vn;return[(vn=w.record.children)!=null&&vn.length?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4,[w.expanded?(vue.openBlock(),vue.createBlock(m,{key:0,onClick:gn=>w.onExpand(w.record,gn)},null,8,["onClick"])):(vue.openBlock(),vue.createBlock(g,{key:1,onClick:gn=>w.onExpand(w.record,gn)},null,8,["onClick"]))])):(vue.openBlock(),vue.createElementBlock("span",_hoisted_5,[vue.createVNode(m)]))]}),customFilterDropdown:vue.withCtx(({column:w,setSelectedKeys:vn,confirm:gn,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(v,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>gn()},{default:vue.withCtx(()=>[_hoisted_6]),_:2},1032,["onClick"]),vue.createVNode(v,{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:vn,text:gn,record:Fn})=>{var zn,Un,Wn,tr,Yn,Xn;return[w.dataIndex==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vn===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:c.seqIcon1,width:c.iconSize,height:c.iconSize},null,8,_hoisted_8)):vn===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:c.seqIcon2,width:c.iconSize,height:c.iconSize},null,8,_hoisted_9)):vn>=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(vn+1),5)],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_11,vue.toDisplayString(vn+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,(Jn,ir)=>(vue.openBlock(),vue.createElementBlock("div",{class:"action",key:ir},[vue.createElementVNode("a",{href:c.handleHref(Jn.href,Fn),target:c.handleHrefTarget(Jn.target),style:vue.normalizeStyle({color:Jn.color,fontSize:c.fontSize,fontWeight:c.fontWeight}),onClick:sr=>c.onTouchHrefEvent(Jn.target,c.handleHref(Jn.href,Fn))},vue.toDisplayString(Jn.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(gn,w.progressTextDecimalPlaces)}%`})},null,4),vue.createElementVNode("div",{class:"progress-text",style:vue.normalizeStyle({color:+c.handleProgressText(gn)<100?w.progressTextColor||"#333":w.progressFinishedTextColor||"#fff"})},vue.toDisplayString(c.handleProgressText(gn,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,gn,Fn)})},[c.isMatchCondition(w,gn)&&(w==null?void 0:w.cellAlign)==="right"&&((zn=w==null?void 0:w.attribute)!=null&&zn.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),!c.hasConditionConfig(w.dataIndex)&&w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:1,title:((Un=w==null?void 0:w.customFormatter)==null?void 0:Un.split("{value}")[0])||""},vue.toDisplayString(((Wn=w==null?void 0:w.customFormatter)==null?void 0:Wn.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:gn})),title:c.hasConditionConfig(w.dataIndex)?c.formatTextByConditions(w,gn,Fn):w.format!=null?c.formatFn(gn,w):gn},[!c.hasConditionConfig(w.dataIndex)&&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:gn})),src:c.getChgBoxImgSrc(gn)},null,12,_hoisted_18)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(c.hasConditionConfig(w.dataIndex)?c.formatTextByConditions(w,gn,Fn):w.format!=null?c.formatFn(gn,w):c.getCellText(gn,w))+" ",1),c.hasConditionConfig(w.dataIndex)&&c.getChgByCondition(w,gn,Fn,2)?(vue.openBlock(),vue.createElementBlock("div",{key:1,style:vue.normalizeStyle({...c.chgBoxStyle,height:"auto",scale:.6})},[vue.createElementVNode("img",{style:vue.normalizeStyle(c.getChgByCondition(w,gn,Fn,1)),src:c.getChgByCondition(w,gn,Fn,2)},null,12,_hoisted_19)],4)):vue.createCommentVNode("",!0)],14,_hoisted_17),!c.hasConditionConfig(w.dataIndex)&&w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:2,title:((tr=w==null?void 0:w.customFormatter)==null?void 0:tr.split("{value}")[1])||""},vue.toDisplayString(((Yn=w==null?void 0:w.customFormatter)==null?void 0:Yn.split("{value}")[1])||""),9,_hoisted_20)):vue.createCommentVNode("",!0),c.isMatchCondition(w,gn)&&(w==null?void 0:w.cellAlign)!=="right"&&((Xn=w==null?void 0:w.attribute)!=null&&Xn.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:3,style:vue.normalizeStyle(c.getAttrImgStyle(w)),src:c.getAttrImgSrc(w)},null,12,_hoisted_21)):vue.createCommentVNode("",!0)],4))]}),summary:vue.withCtx(()=>[c.summaryList.length>0?(vue.openBlock(),vue.createBlock(_,{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,vn)=>(vue.openBlock(),vue.createBlock(Pn,{key:vn,index:vn,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_22)],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},[(Bn=c.tableDataSource)!=null&&Bn.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_23,[vue.withDirectives(vue.createElementVNode("input",{type:"text","onUpdate:modelValue":u[0]||(u[0]=w=>c.pageSize=w)},null,512),[[vue.vModelText,c.pageSize]]),_hoisted_24])],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(re,{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-a83fea44"]]),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(""),p=usePickComponentStyle(c,["backgroundImage"]),v=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(v),repeat:c.geoBackgroundImageRepeat}:c.geoItemStyleAreaColor),Pn=vue.computed(()=>{const Qn=c.symbolImage;return c.symbolImage?"image://"+useImagePath(Qn):"circle"}),b=Qn=>{let ar=c.tooltipFormatter;const er=ar.match(/\{(.+?)\}/g);if(er==null||er.length===0)return ar;for(let ur=0;ur<er.length;ur++){const hr=er[ur];let or=hr.slice(1,-1).trim();const mr=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,dr=or.match(mr);for(let fr=0;fr<dr.length;fr++){const vr=dr[fr],pr=Qn[vr];pr!=null&&(or=or.replace(vr,pr))}ar=ar.replace(hr,or)}return ar.split(`
179
+ */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 p(Vn){if(Vn===0)return this;var qn=c(Vn),nr=u(Vn);return this._t(qn,-nr,0,0,nr,qn,0,0,0,0,1,0,0,0,0,1)}function v(Vn){if(Vn===0)return this;var qn=c(Vn),nr=u(Vn);return this._t(1,0,0,0,0,qn,-nr,0,0,nr,qn,0,0,0,0,1)}function m(Vn){if(Vn===0)return this;var qn=c(Vn),nr=u(Vn);return this._t(qn,0,nr,0,0,1,0,0,-nr,0,qn,0,0,0,0,1)}function g(Vn){if(Vn===0)return this;var qn=c(Vn),nr=u(Vn);return this._t(qn,-nr,0,0,nr,qn,0,0,0,0,1,0,0,0,0,1)}function y(Vn,qn){return this._t(1,qn,Vn,1,0,0)}function x(Vn,qn){return this.shear(f(Vn),f(qn))}function Pn(Vn,qn){var nr=c(qn),Hn=u(qn);return this._t(nr,Hn,0,0,-Hn,nr,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,f(Vn),1,0,0,0,0,1,0,0,0,0,1)._t(nr,-Hn,0,0,Hn,nr,0,0,0,0,1,0,0,0,0,1)}function b(Vn,qn,nr){return!nr&&nr!==0&&(nr=1),Vn===1&&qn===1&&nr===1?this:this._t(Vn,0,0,0,0,qn,0,0,0,0,nr,0,0,0,0,1)}function _(Vn,qn,nr,Hn,lr,cr,Qn,ar,er,ur,hr,or,mr,dr,fr,vr){return this.props[0]=Vn,this.props[1]=qn,this.props[2]=nr,this.props[3]=Hn,this.props[4]=lr,this.props[5]=cr,this.props[6]=Qn,this.props[7]=ar,this.props[8]=er,this.props[9]=ur,this.props[10]=hr,this.props[11]=or,this.props[12]=mr,this.props[13]=dr,this.props[14]=fr,this.props[15]=vr,this}function J(Vn,qn,nr){return nr=nr||0,Vn!==0||qn!==0||nr!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Vn,qn,nr,1):this}function re(Vn,qn,nr,Hn,lr,cr,Qn,ar,er,ur,hr,or,mr,dr,fr,vr){var pr=this.props;if(Vn===1&&qn===0&&nr===0&&Hn===0&&lr===0&&cr===1&&Qn===0&&ar===0&&er===0&&ur===0&&hr===1&&or===0)return pr[12]=pr[12]*Vn+pr[15]*mr,pr[13]=pr[13]*cr+pr[15]*dr,pr[14]=pr[14]*hr+pr[15]*fr,pr[15]*=vr,this._identityCalculated=!1,this;var yr=pr[0],br=pr[1],Sr=pr[2],gr=pr[3],kr=pr[4],wr=pr[5],Er=pr[6],Tr=pr[7],_r=pr[8],Mr=pr[9],Or=pr[10],Rr=pr[11],Lr=pr[12],jr=pr[13],Gr=pr[14],Hr=pr[15];return pr[0]=yr*Vn+br*lr+Sr*er+gr*mr,pr[1]=yr*qn+br*cr+Sr*ur+gr*dr,pr[2]=yr*nr+br*Qn+Sr*hr+gr*fr,pr[3]=yr*Hn+br*ar+Sr*or+gr*vr,pr[4]=kr*Vn+wr*lr+Er*er+Tr*mr,pr[5]=kr*qn+wr*cr+Er*ur+Tr*dr,pr[6]=kr*nr+wr*Qn+Er*hr+Tr*fr,pr[7]=kr*Hn+wr*ar+Er*or+Tr*vr,pr[8]=_r*Vn+Mr*lr+Or*er+Rr*mr,pr[9]=_r*qn+Mr*cr+Or*ur+Rr*dr,pr[10]=_r*nr+Mr*Qn+Or*hr+Rr*fr,pr[11]=_r*Hn+Mr*ar+Or*or+Rr*vr,pr[12]=Lr*Vn+jr*lr+Gr*er+Hr*mr,pr[13]=Lr*qn+jr*cr+Gr*ur+Hr*dr,pr[14]=Lr*nr+jr*Qn+Gr*hr+Hr*fr,pr[15]=Lr*Hn+jr*ar+Gr*or+Hr*vr,this._identityCalculated=!1,this}function Rn(Vn){var qn=Vn.props;return this.transform(qn[0],qn[1],qn[2],qn[3],qn[4],qn[5],qn[6],qn[7],qn[8],qn[9],qn[10],qn[11],qn[12],qn[13],qn[14],qn[15])}function Bn(){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(Vn){for(var qn=0;qn<16;){if(Vn.props[qn]!==this.props[qn])return!1;qn+=1}return!0}function vn(Vn){var qn;for(qn=0;qn<16;qn+=1)Vn.props[qn]=this.props[qn];return Vn}function gn(Vn){var qn;for(qn=0;qn<16;qn+=1)this.props[qn]=Vn[qn]}function Fn(Vn,qn,nr){return{x:Vn*this.props[0]+qn*this.props[4]+nr*this.props[8]+this.props[12],y:Vn*this.props[1]+qn*this.props[5]+nr*this.props[9]+this.props[13],z:Vn*this.props[2]+qn*this.props[6]+nr*this.props[10]+this.props[14]}}function zn(Vn,qn,nr){return Vn*this.props[0]+qn*this.props[4]+nr*this.props[8]+this.props[12]}function Un(Vn,qn,nr){return Vn*this.props[1]+qn*this.props[5]+nr*this.props[9]+this.props[13]}function Wn(Vn,qn,nr){return Vn*this.props[2]+qn*this.props[6]+nr*this.props[10]+this.props[14]}function tr(){var Vn=this.props[0]*this.props[5]-this.props[1]*this.props[4],qn=this.props[5]/Vn,nr=-this.props[1]/Vn,Hn=-this.props[4]/Vn,lr=this.props[0]/Vn,cr=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/Vn,Qn=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/Vn,ar=new Matrix;return ar.props[0]=qn,ar.props[1]=nr,ar.props[4]=Hn,ar.props[5]=lr,ar.props[12]=cr,ar.props[13]=Qn,ar}function Yn(Vn){var qn=this.getInverseMatrix();return qn.applyToPointArray(Vn[0],Vn[1],Vn[2]||0)}function Xn(Vn){var qn,nr=Vn.length,Hn=[];for(qn=0;qn<nr;qn+=1)Hn[qn]=Yn(Vn[qn]);return Hn}function Jn(Vn,qn,nr){var Hn=createTypedArray("float32",6);if(this.isIdentity())Hn[0]=Vn[0],Hn[1]=Vn[1],Hn[2]=qn[0],Hn[3]=qn[1],Hn[4]=nr[0],Hn[5]=nr[1];else{var lr=this.props[0],cr=this.props[1],Qn=this.props[4],ar=this.props[5],er=this.props[12],ur=this.props[13];Hn[0]=Vn[0]*lr+Vn[1]*Qn+er,Hn[1]=Vn[0]*cr+Vn[1]*ar+ur,Hn[2]=qn[0]*lr+qn[1]*Qn+er,Hn[3]=qn[0]*cr+qn[1]*ar+ur,Hn[4]=nr[0]*lr+nr[1]*Qn+er,Hn[5]=nr[0]*cr+nr[1]*ar+ur}return Hn}function ir(Vn,qn,nr){var Hn;return this.isIdentity()?Hn=[Vn,qn,nr]:Hn=[Vn*this.props[0]+qn*this.props[4]+nr*this.props[8]+this.props[12],Vn*this.props[1]+qn*this.props[5]+nr*this.props[9]+this.props[13],Vn*this.props[2]+qn*this.props[6]+nr*this.props[10]+this.props[14]],Hn}function sr(Vn,qn){if(this.isIdentity())return Vn+","+qn;var nr=this.props;return Math.round((Vn*nr[0]+qn*nr[4]+nr[12])*100)/100+","+Math.round((Vn*nr[1]+qn*nr[5]+nr[13])*100)/100}function Zn(){for(var Vn=0,qn=this.props,nr="matrix3d(",Hn=1e4;Vn<16;)nr+=h(qn[Vn]*Hn)/Hn,nr+=Vn===15?")":",",Vn+=1;return nr}function Gn(Vn){var qn=1e4;return Vn<1e-6&&Vn>0||Vn>-1e-6&&Vn<0?h(Vn*qn)/qn:Vn}function Kn(){var Vn=this.props,qn=Gn(Vn[0]),nr=Gn(Vn[1]),Hn=Gn(Vn[4]),lr=Gn(Vn[5]),cr=Gn(Vn[12]),Qn=Gn(Vn[13]);return"matrix("+qn+","+nr+","+Hn+","+lr+","+cr+","+Qn+")"}return function(){this.reset=d,this.rotate=p,this.rotateX=v,this.rotateY=m,this.rotateZ=g,this.skew=x,this.skewFromAxis=Pn,this.shear=y,this.scale=b,this.setTransform=_,this.translate=J,this.transform=re,this.multiply=Rn,this.applyToPoint=Fn,this.applyToX=zn,this.applyToY=Un,this.applyToZ=Wn,this.applyToPointArray=ir,this.applyToTriplePoints=Jn,this.applyToPointStringified=sr,this.toCSS=Zn,this.to2dCSS=Kn,this.clone=vn,this.cloneFromProps=gn,this.equals=w,this.inversePoints=Xn,this.inversePoint=Yn,this.getInverseMatrix=tr,this._t=this.transform,this.isIdentity=Bn,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,p){u[d]||(u[d]=p)}function h(d,p,v){return new u[d](p,v)}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 p=[];u<=1?p.push({s:c,e:u}):c>=1?p.push({s:c-1,e:u-1}):(p.push({s:c,e:1}),p.push({s:0,e:u-1}));var v=[],m,g=p.length,y;for(m=0;m<g;m+=1)if(y=p[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,v.push([x,Pn])}return v.length||v.push([0,0]),v},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 p,v,m=this.shapes.length,g,y,x,Pn,b,_=0;if(f===u)for(v=0;v<m;v+=1)this.shapes[v].localShapeCollection.releaseShapes(),this.shapes[v].shape._mdf=!0,this.shapes[v].shape.paths=this.shapes[v].localShapeCollection,this._mdf&&(this.shapes[v].pathsData.length=0);else if(f===1&&u===0||f===0&&u===1){if(this._mdf)for(v=0;v<m;v+=1)this.shapes[v].pathsData.length=0,this.shapes[v].shape._mdf=!0}else{var J=[],re,Rn;for(v=0;v<m;v+=1)if(re=this.shapes[v],!re.shape._mdf&&!this._mdf&&!c&&this.m!==2)re.shape.paths=re.localShapeCollection;else{if(p=re.shape.paths,y=p._length,b=0,!re.shape._mdf&&re.pathsData.length)b=re.totalShapeLength;else{for(x=this.releasePathsData(re.pathsData),g=0;g<y;g+=1)Pn=bez.getSegmentsLength(p.shapes[g]),x.push(Pn),b+=Pn.totalLength;re.totalShapeLength=b,re.pathsData=x}_+=b,re.shape._mdf=!0}var Bn=u,w=f,vn=0,gn;for(v=m-1;v>=0;v-=1)if(re=this.shapes[v],re.shape._mdf){for(Rn=re.localShapeCollection,Rn.releaseShapes(),this.m===2&&m>1?(gn=this.calculateShapeEdges(u,f,re.totalShapeLength,vn,_),vn+=re.totalShapeLength):gn=[[Bn,w]],y=gn.length,g=0;g<y;g+=1){Bn=gn[g][0],w=gn[g][1],J.length=0,w<=1?J.push({s:re.totalShapeLength*Bn,e:re.totalShapeLength*w}):Bn>=1?J.push({s:re.totalShapeLength*(Bn-1),e:re.totalShapeLength*(w-1)}):(J.push({s:re.totalShapeLength*Bn,e:re.totalShapeLength}),J.push({s:0,e:re.totalShapeLength*(w-1)}));var Fn=this.addShapes(re,J[0]);if(J[0].s!==J[0].e){if(J.length>1){var zn=re.shape.paths.shapes[re.shape.paths._length-1];if(zn.c){var Un=Fn.pop();this.addPaths(Fn,Rn),Fn=this.addShapes(re,J[1],Un)}else this.addPaths(Fn,Rn),Fn=this.addShapes(re,J[1])}this.addPaths(Fn,Rn)}}re.shape.paths=Rn}}},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,p,v){d.setXYAt(u[0],u[1],"o",p),d.setXYAt(f[0],f[1],"i",p+1),v&&d.setXYAt(c[0],c[1],"v",p),d.setXYAt(h[0],h[1],"v",p+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,p,v=c.shape.paths._length,m,g,y=0,x,Pn,b,_,J=[],re,Rn=!0;for(f?(Pn=f._length,re=f._length):(f=shapePool.newElement(),Pn=0,re=0),J.push(f),p=0;p<v;p+=1){for(b=h[p].lengths,f.c=d[p].c,g=d[p].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[p].v[m-1],d[p].o[m-1],d[p].i[m],d[p].v[m],f,Pn,Rn),Rn=!1):(_=bez.getNewSegment(d[p].v[m-1],d[p].v[m],d[p].o[m-1],d[p].i[m],(u.s-y)/x.addedLength,(u.e-y)/x.addedLength,b[m-1]),this.addSegmentFromArray(_,f,Pn,Rn),Rn=!1,f.c=!1),y+=x.addedLength,Pn+=1;if(d[p].c&&b.length){if(x=b[m-1],y<=u.e){var Bn=b[m-1].addedLength;u.s<=y&&u.e>=y+Bn?(this.addSegment(d[p].v[m-1],d[p].o[m-1],d[p].i[0],d[p].v[0],f,Pn,Rn),Rn=!1):(_=bez.getNewSegment(d[p].v[m-1],d[p].v[0],d[p].o[m-1],d[p].i[0],(u.s-y)/Bn,(u.e-y)/Bn,b[m-1]),this.addSegmentFromArray(_,f,Pn,Rn),Rn=!1,f.c=!1)}else f.c=!1;y+=x.addedLength,Pn+=1}if(f._length&&(f.setXYAt(f.v[re][0],f.v[re][1],"i",re),f.setXYAt(f.v[f._length-1][0],f.v[f._length-1][1],"o",f._length-1)),y>u.e)break;p<v-1&&(f=shapePool.newElement(),Rn=!0,J.push(f),Pn=0)}return J};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,p=0;for(p=0;p<d;p+=1)h[0]+=c.v[p][0],h[1]+=c.v[p][1];h[0]/=d,h[1]/=d;var v=shapePool.newElement();v.c=c.c;var m,g,y,x,Pn,b;for(p=0;p<d;p+=1)m=c.v[p][0]+(h[0]-c.v[p][0])*f,g=c.v[p][1]+(h[1]-c.v[p][1])*f,y=c.o[p][0]+(h[0]-c.o[p][0])*-f,x=c.o[p][1]+(h[1]-c.o[p][1])*-f,Pn=c.i[p][0]+(h[0]-c.i[p][0])*-f,b=c.i[p][1]+(h[1]-c.i[p][1])*-f,v.setTripleAt(m,g,y,x,Pn,b,p);return v},PuckerAndBloatModifier.prototype.processShapes=function(c){var u,f,h=this.shapes.length,d,p,v=this.amount.v;if(v!==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,p=m.shape.paths._length,d=0;d<p;d+=1)g.addShape(this.processPath(u[d],v));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,_=this.py;b._caching.lastFrame+b.offsetTime<=b.keyframes[0].t?(x[0]=b.getValueAtTime((b.keyframes[0].t+.01)/y,0),x[1]=_.getValueAtTime((_.keyframes[0].t+.01)/y,0),Pn[0]=b.getValueAtTime(b.keyframes[0].t/y,0),Pn[1]=_.getValueAtTime(_.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]=_.getValueAtTime(_.keyframes[_.keyframes.length-1].t/y,0),Pn[0]=b.getValueAtTime((b.keyframes[b.keyframes.length-1].t-.01)/y,0),Pn[1]=_.getValueAtTime((_.keyframes[_.keyframes.length-1].t-.01)/y,0)):(x=[b.pv,_.pv],Pn[0]=b.getValueAtTime((b._caching.lastFrame+b.offsetTime-.01)/y,b.offsetTime),Pn[1]=_.getValueAtTime((_._caching.lastFrame+_.offsetTime-.01)/y,_.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 p(g){this._addDynamicProperty(g),this.elem.addDynamicProperty(g),this._isDirty=!0}function v(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)}v.prototype={applyToMatrix:u,getValue:f,precalculateMatrix:h,autoOrient:d},extendPrototype([DynamicPropertyContainer],v),v.prototype.addDynamicProperty=p,v.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function m(g,y,x){return new v(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,p){var v=p?-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]*v*d,h.p.v[1]*v*d,h.p.v[2]),u.translate(-h.a.v[0],-h.a.v[1],h.a.v[2]),u.rotate(-h.r.v*v*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(p?1/m:m,p?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,p,v=!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(),v=!0}p=0;var y;for(h=0;h<=this._groups.length-1;h+=1){if(y=p<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}p+=1}this._currentCopies=m;var b=this.o.v,_=b%1,J=b>0?Math.floor(b):Math.ceil(b),re=this.pMatrix.props,Rn=this.rMatrix.props,Bn=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<J;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;_&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,_,!1),w+=_)}else if(b<0){for(;w>J;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;_&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-_,!0),w-=_)}h=this.data.m===1?0:this._currentCopies-1,d=this.data.m===1?1:-1,p=this._currentCopies;for(var vn,gn;p;){if(u=this.elemsData[h].it,f=u[u.length-1].transform.mProps.v.props,gn=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(Rn[0],Rn[1],Rn[2],Rn[3],Rn[4],Rn[5],Rn[6],Rn[7],Rn[8],Rn[9],Rn[10],Rn[11],Rn[12],Rn[13],Rn[14],Rn[15]),this.matrix.transform(Bn[0],Bn[1],Bn[2],Bn[3],Bn[4],Bn[5],Bn[6],Bn[7],Bn[8],Bn[9],Bn[10],Bn[11],Bn[12],Bn[13],Bn[14],Bn[15]),this.matrix.transform(re[0],re[1],re[2],re[3],re[4],re[5],re[6],re[7],re[8],re[9],re[10],re[11],re[12],re[13],re[14],re[15]),vn=0;vn<gn;vn+=1)f[vn]=this.matrix.props[vn];this.matrix.reset()}else for(this.matrix.reset(),vn=0;vn<gn;vn+=1)f[vn]=this.matrix.props[vn];w+=1,p-=1,h+=d}}else for(p=this._currentCopies,h=0,d=1;p;)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,p-=1,h+=d;return v},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,p,v,m,g,y,x,Pn=0,b,_,J,re,Rn,Bn;for(h=0;h<d;h+=1)p=c.v[h],m=c.o[h],v=c.i[h],p[0]===m[0]&&p[1]===m[1]&&p[0]===v[0]&&p[1]===v[1]?(h===0||h===d-1)&&!c.c?(f.setTripleAt(p[0],p[1],m[0],m[1],v[0],v[1],Pn),Pn+=1):(h===0?g=c.v[d-1]:g=c.v[h-1],y=Math.sqrt(Math.pow(p[0]-g[0],2)+Math.pow(p[1]-g[1],2)),x=y?Math.min(y/2,u)/y:0,Rn=p[0]+(g[0]-p[0])*x,b=Rn,Bn=p[1]-(p[1]-g[1])*x,_=Bn,J=b-(b-p[0])*roundCorner,re=_-(_-p[1])*roundCorner,f.setTripleAt(b,_,J,re,Rn,Bn,Pn),Pn+=1,h===d-1?g=c.v[0]:g=c.v[h+1],y=Math.sqrt(Math.pow(p[0]-g[0],2)+Math.pow(p[1]-g[1],2)),x=y?Math.min(y/2,u)/y:0,J=p[0]+(g[0]-p[0])*x,b=J,re=p[1]+(g[1]-p[1])*x,_=re,Rn=b-(b-p[0])*roundCorner,Bn=_-(_-p[1])*roundCorner,f.setTripleAt(b,_,J,re,Rn,Bn,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,p,v=this.rd.v;if(v!==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,p=m.shape.paths._length,d=0;d<p;d+=1)g.addShape(this.processPath(u[d],v));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 p=Math.sqrt(h)/(2*c);return[d-p,d+p]}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 p=polynomialCoefficients(c[0],u[0],f[0],h[0]),v=polynomialCoefficients(c[1],u[1],f[1],h[1]);this.a=[p[0],v[0]],this.b=[p[1],v[1]],this.c=[p[2],v[2]],this.d=[p[3],v[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),p=lerpPoint(f,h,c),v=lerpPoint(d,p,c);return[new PolynomialBezier(this.points[0],u,d,v,!0),new PolynomialBezier(v,p,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 p=quadRoots(3*c.a[u],2*c.b[u],c.c[u]),v=0;v<p.length;v+=1)if(p[v]>0&&p[v]<1){var m=c.point(p[v])[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,p){if(boxIntersect(c,u)){if(f>=p||c.width<=h&&c.height<=h&&u.width<=h&&u.height<=h){d.push([c.t,u.t]);return}var v=splitData(c),m=splitData(u);intersectsImpl(v[0],m[0],f+1,h,d,p),intersectsImpl(v[0],m[1],f+1,h,d,p),intersectsImpl(v[1],m[0],f+1,h,d,p),intersectsImpl(v[1],m[1],f+1,h,d,p)}}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],p=[u[0],u[1],1],v=[f[0],f[1],1],m=[h[0],h[1],1],g=crossProduct(crossProduct(d,p),crossProduct(v,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,p,v){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)*p,x-Math.sin(m)*p,y+Math.cos(g)*v,x-Math.sin(g)*v,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],p=c.v[h],v=getPerpendicularVector(d,p);return Math.atan2(0,1)-Math.atan2(v[1],v[0])}function zigZagCorner(c,u,f,h,d,p,v){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=p===2?Math.sqrt(Math.pow(g[0]-y[0],2)+Math.pow(g[1]-y[1],2)):0,b=p===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,v,h,b/((d+1)*2),Pn/((d+1)*2))}function zigZagSegment(c,u,f,h,d,p){for(var v=0;v<h;v+=1){var m=(v+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,p,f,g/((h+1)*2),g/((h+1)*2)),p=-p}return p}ZigZagModifier.prototype.processPath=function(c,u,f,h){var d=c._length,p=shapePool.newElement();if(p.c=c.c,c.c||(d-=1),d===0)return p;var v=-1,m=PolynomialBezier.shapeSegment(c,0);zigZagCorner(p,c,0,u,f,h,v);for(var g=0;g<d;g+=1)v=zigZagSegment(p,m,u,f,h,-v),g===d-1&&!c.c?m=null:m=PolynomialBezier.shapeSegment(c,(g+1)%d),zigZagCorner(p,c,g+1,u,f,h,v);return p},ZigZagModifier.prototype.processShapes=function(c){var u,f,h=this.shapes.length,d,p,v=this.amplitude.v,m=Math.max(0,Math.round(this.frequency.v)),g=this.pointsType.v;if(v!==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,p=y.shape.paths._length,d=0;d<p;d+=1)x.addShape(this.processPath(u[d],v,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,p,v,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],p=g[1],g=linearOffset(c.points[2],c.points[3],u),v=g[0],m=g[1];var y=lineIntersection(f,h,d,p);y===null&&(y=h);var x=lineIntersection(v,m,d,p);return x===null&&(x=v),new PolynomialBezier(f,y,x,m)}function joinLines(c,u,f,h,d){var p=u.points[3],v=f.points[0];if(h===3||pointEqual(p,v))return p;if(h===2){var m=-u.tangentAngle(1),g=-f.tangentAngle(0)+Math.PI,y=lineIntersection(p,polarOffset(p,m+Math.PI/2,100),v,polarOffset(v,m+Math.PI/2,100)),x=y?pointDistance(y,p):pointDistance(p,v)/2,Pn=polarOffset(p,m,2*x*roundCorner);return c.setXYAt(Pn[0],Pn[1],"o",c.length()-1),Pn=polarOffset(v,g,2*x*roundCorner),c.setTripleAt(v[0],v[1],v[0],v[1],Pn[0],Pn[1],c.length()),v}var b=pointEqual(p,u.points[2])?u.points[0]:u.points[2],_=pointEqual(v,f.points[1])?f.points[3]:f.points[1],J=lineIntersection(b,p,v,_);return J&&pointDistance(J,p)<d?(c.setTripleAt(J[0],J[1],J[0],J[1],J[0],J[1],c.length()),J):p}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,p,v;if(f.length===0)return[offsetSegment(c,u)];if(f.length===1||floatEqual(f[1],1))return p=c.split(f[0]),h=p[0],d=p[1],[offsetSegment(h,u),offsetSegment(d,u)];p=c.split(f[0]),h=p[0];var m=(f[1]-f[0])/(1-f[0]);return p=p[1].split(m),v=p[0],d=p[1],[offsetSegment(h,u),offsetSegment(v,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 p=c.length();c.c||(p-=1);var v,m,g,y=[];for(v=0;v<p;v+=1)g=PolynomialBezier.shapeSegment(c,v),y.push(offsetSegmentSplit(g,u));if(!c.c)for(v=p-1;v>=0;v-=1)g=PolynomialBezier.shapeSegmentInverted(c,v),y.push(offsetSegmentSplit(g,u));y=pruneIntersections(y);var x=null,Pn=null;for(v=0;v<y.length;v+=1){var b=y[v];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,p,v=this.amount.v,m=this.miterLimit.v,g=this.lineJoin;if(v!==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,p=y.shape.paths._length,d=0;d<p;d+=1)x.addShape(this.processPath(u[d],v,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,p,v=0;v<d;v+=1)switch(p=u[v].toLowerCase(),p){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,p=917601,v=917626,m=65039,g=8205,y=127462,x=127487,Pn=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function b(Gn){var Kn=Gn.split(","),Vn,qn=Kn.length,nr=[];for(Vn=0;Vn<qn;Vn+=1)Kn[Vn]!=="sans-serif"&&Kn[Vn]!=="monospace"&&nr.push(Kn[Vn]);return nr.join(",")}function _(Gn,Kn){var Vn=createTag("span");Vn.setAttribute("aria-hidden",!0),Vn.style.fontFamily=Kn;var qn=createTag("span");qn.innerText="giItT1WQy@!-/#",Vn.style.position="absolute",Vn.style.left="-10000px",Vn.style.top="-10000px",Vn.style.fontSize="300px",Vn.style.fontVariant="normal",Vn.style.fontStyle="normal",Vn.style.fontWeight="normal",Vn.style.letterSpacing="0",Vn.appendChild(qn),document.body.appendChild(Vn);var nr=qn.offsetWidth;return qn.style.fontFamily=b(Gn)+", "+Kn,{node:qn,w:nr,parent:Vn}}function J(){var Gn,Kn=this.fonts.length,Vn,qn,nr=Kn;for(Gn=0;Gn<Kn;Gn+=1)this.fonts[Gn].loaded?nr-=1:this.fonts[Gn].fOrigin==="n"||this.fonts[Gn].origin===0?this.fonts[Gn].loaded=!0:(Vn=this.fonts[Gn].monoCase.node,qn=this.fonts[Gn].monoCase.w,Vn.offsetWidth!==qn?(nr-=1,this.fonts[Gn].loaded=!0):(Vn=this.fonts[Gn].sansCase.node,qn=this.fonts[Gn].sansCase.w,Vn.offsetWidth!==qn&&(nr-=1,this.fonts[Gn].loaded=!0)),this.fonts[Gn].loaded&&(this.fonts[Gn].sansCase.parent.parentNode.removeChild(this.fonts[Gn].sansCase.parent),this.fonts[Gn].monoCase.parent.parentNode.removeChild(this.fonts[Gn].monoCase.parent)));nr!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function re(Gn,Kn){var Vn=document.body&&Kn?"svg":"canvas",qn,nr=getFontProperties(Gn);if(Vn==="svg"){var Hn=createNS("text");Hn.style.fontSize="100px",Hn.setAttribute("font-family",Gn.fFamily),Hn.setAttribute("font-style",nr.style),Hn.setAttribute("font-weight",nr.weight),Hn.textContent="1",Gn.fClass?(Hn.style.fontFamily="inherit",Hn.setAttribute("class",Gn.fClass)):Hn.style.fontFamily=Gn.fFamily,Kn.appendChild(Hn),qn=Hn}else{var lr=new OffscreenCanvas(500,500).getContext("2d");lr.font=nr.style+" "+nr.weight+" 100px "+Gn.fFamily,qn=lr}function cr(Qn){return Vn==="svg"?(qn.textContent=Qn,qn.getComputedTextLength()):qn.measureText(Qn).width}return{measureText:cr}}function Rn(Gn,Kn){if(!Gn){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=Gn.list;return}if(!document.body){this.isLoaded=!0,Gn.list.forEach(function(hr){hr.helper=re(hr),hr.cache={}}),this.fonts=Gn.list;return}var Vn=Gn.list,qn,nr=Vn.length,Hn=nr;for(qn=0;qn<nr;qn+=1){var lr=!0,cr,Qn;if(Vn[qn].loaded=!1,Vn[qn].monoCase=_(Vn[qn].fFamily,"monospace"),Vn[qn].sansCase=_(Vn[qn].fFamily,"sans-serif"),!Vn[qn].fPath)Vn[qn].loaded=!0,Hn-=1;else if(Vn[qn].fOrigin==="p"||Vn[qn].origin===3){if(cr=document.querySelectorAll('style[f-forigin="p"][f-family="'+Vn[qn].fFamily+'"], style[f-origin="3"][f-family="'+Vn[qn].fFamily+'"]'),cr.length>0&&(lr=!1),lr){var ar=createTag("style");ar.setAttribute("f-forigin",Vn[qn].fOrigin),ar.setAttribute("f-origin",Vn[qn].origin),ar.setAttribute("f-family",Vn[qn].fFamily),ar.type="text/css",ar.innerText="@font-face {font-family: "+Vn[qn].fFamily+"; font-style: normal; src: url('"+Vn[qn].fPath+"');}",Kn.appendChild(ar)}}else if(Vn[qn].fOrigin==="g"||Vn[qn].origin===1){for(cr=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Qn=0;Qn<cr.length;Qn+=1)cr[Qn].href.indexOf(Vn[qn].fPath)!==-1&&(lr=!1);if(lr){var er=createTag("link");er.setAttribute("f-forigin",Vn[qn].fOrigin),er.setAttribute("f-origin",Vn[qn].origin),er.type="text/css",er.rel="stylesheet",er.href=Vn[qn].fPath,document.body.appendChild(er)}}else if(Vn[qn].fOrigin==="t"||Vn[qn].origin===2){for(cr=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Qn=0;Qn<cr.length;Qn+=1)Vn[qn].fPath===cr[Qn].src&&(lr=!1);if(lr){var ur=createTag("link");ur.setAttribute("f-forigin",Vn[qn].fOrigin),ur.setAttribute("f-origin",Vn[qn].origin),ur.setAttribute("rel","stylesheet"),ur.setAttribute("href",Vn[qn].fPath),Kn.appendChild(ur)}}Vn[qn].helper=re(Vn[qn],Kn),Vn[qn].cache={},this.fonts.push(Vn[qn])}Hn===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Bn(Gn){if(Gn){this.chars||(this.chars=[]);var Kn,Vn=Gn.length,qn,nr=this.chars.length,Hn;for(Kn=0;Kn<Vn;Kn+=1){for(qn=0,Hn=!1;qn<nr;)this.chars[qn].style===Gn[Kn].style&&this.chars[qn].fFamily===Gn[Kn].fFamily&&this.chars[qn].ch===Gn[Kn].ch&&(Hn=!0),qn+=1;Hn||(this.chars.push(Gn[Kn]),nr+=1)}}}function w(Gn,Kn,Vn){for(var qn=0,nr=this.chars.length;qn<nr;){if(this.chars[qn].ch===Gn&&this.chars[qn].style===Kn&&this.chars[qn].fFamily===Vn)return this.chars[qn];qn+=1}return(typeof Gn=="string"&&Gn.charCodeAt(0)!==13||!Gn)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",Gn,Kn,Vn)),u}function vn(Gn,Kn,Vn){var qn=this.getFontByName(Kn),nr=Gn;if(!qn.cache[nr]){var Hn=qn.helper;if(Gn===" "){var lr=Hn.measureText("|"+Gn+"|"),cr=Hn.measureText("||");qn.cache[nr]=(lr-cr)/100}else qn.cache[nr]=Hn.measureText(Gn)/100}return qn.cache[nr]*Vn}function gn(Gn){for(var Kn=0,Vn=this.fonts.length;Kn<Vn;){if(this.fonts[Kn].fName===Gn)return this.fonts[Kn];Kn+=1}return this.fonts[0]}function Fn(Gn){var Kn=0,Vn=Gn.charCodeAt(0);if(Vn>=55296&&Vn<=56319){var qn=Gn.charCodeAt(1);qn>=56320&&qn<=57343&&(Kn=(Vn-55296)*1024+qn-56320+65536)}return Kn}function zn(Gn,Kn){var Vn=Gn.toString(16)+Kn.toString(16);return Pn.indexOf(Vn)!==-1}function Un(Gn){return Gn===g}function Wn(Gn){return Gn===m}function tr(Gn){var Kn=Fn(Gn);return Kn>=y&&Kn<=x}function Yn(Gn){return tr(Gn.substr(0,2))&&tr(Gn.substr(2,2))}function Xn(Gn){return f.indexOf(Gn)!==-1}function Jn(Gn,Kn){var Vn=Fn(Gn.substr(Kn,2));if(Vn!==h)return!1;var qn=0;for(Kn+=2;qn<5;){if(Vn=Fn(Gn.substr(Kn,2)),Vn<p||Vn>v)return!1;qn+=1,Kn+=2}return Fn(Gn.substr(Kn,2))===d}function ir(){this.isLoaded=!0}var sr=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)};sr.isModifier=zn,sr.isZeroWidthJoiner=Un,sr.isFlagEmoji=Yn,sr.isRegionalCode=tr,sr.isCombinedCharacter=Xn,sr.isRegionalFlag=Jn,sr.isVariationSelector=Wn,sr.BLACK_FLAG_CODE_POINT=h;var Zn={addChars:Bn,addFonts:Rn,getCharData:w,getFontByName:gn,measureText:vn,checkLoadedFonts:J,setIsLoaded:ir};return sr.prototype=Zn,sr}();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,p;for(h=0;h<d;h+=1)p=new GroupEffect(f[h],u),this.effectElements.push(p)}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,p=this.data.ef;for(f=0;f<h;f+=1){switch(d=null,p[f].ty){case 0:d=new SliderEffect(p[f],u,this);break;case 1:d=new AngleEffect(p[f],u,this);break;case 2:d=new ColorEffect(p[f],u,this);break;case 3:d=new PointEffect(p[f],u,this);break;case 4:case 7:d=new CheckboxEffect(p[f],u,this);break;case 10:d=new LayerIndexEffect(p[f],u,this);break;case 11:d=new MaskIndexEffect(p[f],u,this);break;case 5:d=new EffectsManager(p[f],u);break;default:d=new NoValueEffect(p[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"),p=u("text"),v=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=v(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=p(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,p=0,v=d.length;p<v;)d[p].ind==u&&(!h[p]||h[p]===!0?(this.buildItem(p),this.addPendingElement(c)):(f.push(h[p]),h[p].setAsParent(),d[p].parent!==void 0?this.buildElementParenting(c,d[p].parent,f):c.setHierarchy(f))),p+=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 p=this.finalTransform.localOpacity;for(u=0;u<f;u+=1)p*=this.localTransforms[u].opacity*.01;this.finalTransform.localOpacity=p}}},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 p,v=f.length,m;for(p=0;p<v;p+=1)m=f[p].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,p=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(p),this.solidPath="";var v,m=this.masksProperties,g=0,y=[],x,Pn,b=createElementID(),_,J,re,Rn,Bn="clipPath",w="clip-path";for(d=0;d<p;d+=1)if((m[d].mode!=="a"&&m[d].mode!=="n"||m[d].inv||m[d].o.k!==100||m[d].o.x)&&(Bn="mask",w="mask"),(m[d].mode==="s"||m[d].mode==="i")&&g===0?(_=createNS("rect"),_.setAttribute("fill","#ffffff"),_.setAttribute("width",this.element.comp.data.w||0),_.setAttribute("height",this.element.comp.data.h||0),y.push(_)):_=null,v=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:v,lastPath:""},h.appendChild(v);else{g+=1,v.setAttribute("fill",m[d].mode==="s"?"#000000":"#ffffff"),v.setAttribute("clip-rule","nonzero");var vn;if(m[d].x.k!==0?(Bn="mask",w="mask",Rn=PropertyFactory.getProp(this.element,m[d].x,0,null,this.element),vn=createElementID(),J=createNS("filter"),J.setAttribute("id",vn),re=createNS("feMorphology"),re.setAttribute("operator","erode"),re.setAttribute("in","SourceGraphic"),re.setAttribute("radius","0"),J.appendChild(re),h.appendChild(J),v.setAttribute("stroke",m[d].mode==="s"?"#000000":"#ffffff")):(re=null,Rn=null),this.storedData[d]={elem:v,x:Rn,expan:re,lastPath:"",lastOperator:"",filterId:vn,lastRadius:0},m[d].mode==="i"){Pn=y.length;var gn=createNS("g");for(x=0;x<Pn;x+=1)gn.appendChild(y[x]);var Fn=createNS("mask");Fn.setAttribute("mask-type","alpha"),Fn.setAttribute("id",b+"_"+g),Fn.appendChild(v),h.appendChild(Fn),gn.setAttribute("mask","url("+getLocationHref()+"#"+b+"_"+g+")"),y.length=0,y.push(gn)}else y.push(v);m[d].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[d]={elem:v,lastPath:"",op:PropertyFactory.getProp(this.element,m[d].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,m[d],3),invRect:_},this.viewData[d].prop.k||this.drawPath(m[d],this.viewData[d].prop.v,this.viewData[d])}for(this.maskElement=createNS(Bn),p=y.length,d=0;d<p;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,p;for(p=u._length,d=1;d<p;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&&p>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 v="";f.elem&&(u.c&&(v=c.inv?this.solidPath+h:h),f.elem.setAttribute("d",v)),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 p=createNS("filter");return p.setAttribute("id",h),d!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}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(),p=filtersFactory.createFilter(d,!0),v=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(p,c.effectsManager.effectElements[u],c,idPrefix+v,f),f=idPrefix+v,registeredEffects$1[g].countsAsEffect&&(v+=1)}m&&this.filters.push(m)}v&&(c.globalData.defs.appendChild(p),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 p=createElementID();if(h.setAttribute("id",p),h.appendChild(d),this.globalData.defs.appendChild(h),this.checkMasks()){var v=createNS("g");v.setAttribute("clip-path","url("+getLocationHref()+"#"+p+")"),v.appendChild(this.layerElement),this.transformedElement=v,u?u.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+p+")")}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,p,v;if(u===1||u===3){var m=createNS("mask");m.setAttribute("id",f),m.setAttribute("mask-type",u===3?"luminance":"alpha"),p=createNS("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),m.appendChild(p),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()),v=createNS("g"),v.appendChild(p),m.appendChild(v),v.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),p=createNS("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),y.appendChild(p),featureSupport.maskType||(g.setAttribute("mask-type","luminance"),d.appendChild(filtersFactory.createAlphaToLuminanceFilter()),v=createNS("g"),y.appendChild(b),v.appendChild(this.layerElement),y.appendChild(v)),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,p=u.length||0,v;for(d=0;d<p;d+=1)v=PropertyFactory.getProp(c,u[d].v,0,0,this),this.k=v.k||this.k,this.dataProps[d]={n:u[d].n,p:v};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=[],p,v,m;for(m=u.g.p*4,v=0;v<m;v+=4)p=createNS("stop"),h.appendChild(p),d.push(p);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,p=createNS("mask"),v=createNS("path");p.appendChild(v);var m=createElementID(),g=createElementID();p.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);v.setAttribute(c.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+m+")"),c.ty==="gs"&&(v.setAttribute("stroke-linecap",lineCapEnum[c.lc||2]),v.setAttribute("stroke-linejoin",lineJoinEnum[c.lj||2]),c.lj===1&&v.setAttribute("stroke-miterlimit",c.ml)),this.of=y,this.ms=p,this.ost=x,this.maskId=g,u.msElem=v}},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 p=u.o,v=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(p[g-1][0],p[g-1][1])+" "+d.applyToPointStringified(v[g][0],v[g][1])+" "+d.applyToPointStringified(m[g][0],m[g][1]);return h&&f&&(y+=" C"+d.applyToPointStringified(p[g-1][0],p[g-1][1])+" "+d.applyToPointStringified(v[0][0],v[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 v;case"tr":return d;case"no":return p;default:return null}}function d(Pn,b,_){(_||b.transform.op._mdf)&&b.transform.container.setAttribute("opacity",b.transform.op.v),(_||b.transform.mProps._mdf)&&b.transform.container.setAttribute("transform",b.transform.mProps.v.to2dCSS())}function p(){}function v(Pn,b,_){var J,re,Rn,Bn,w,vn,gn=b.styles.length,Fn=b.lvl,zn,Un,Wn,tr;for(vn=0;vn<gn;vn+=1){if(Bn=b.sh._mdf||_,b.styles[vn].lvl<Fn){for(Un=u.reset(),Wn=Fn-b.styles[vn].lvl,tr=b.transformers.length-1;!Bn&&Wn>0;)Bn=b.transformers[tr].mProps._mdf||Bn,Wn-=1,tr-=1;if(Bn)for(Wn=Fn-b.styles[vn].lvl,tr=b.transformers.length-1;Wn>0;)Un.multiply(b.transformers[tr].mProps.v),Wn-=1,tr-=1}else Un=c;if(zn=b.sh.paths,re=zn._length,Bn){for(Rn="",J=0;J<re;J+=1)w=zn.shapes[J],w&&w._length&&(Rn+=buildShapeString(w,w._length,w.c,Un));b.caches[vn]=Rn}else Rn=b.caches[vn];b.styles[vn].d+=Pn.hd===!0?"":Rn,b.styles[vn]._mdf=Bn||b.styles[vn]._mdf}}function m(Pn,b,_){var J=b.style;(b.c._mdf||_)&&J.pElem.setAttribute("fill","rgb("+bmFloor(b.c.v[0])+","+bmFloor(b.c.v[1])+","+bmFloor(b.c.v[2])+")"),(b.o._mdf||_)&&J.pElem.setAttribute("fill-opacity",b.o.v)}function g(Pn,b,_){y(Pn,b,_),x(Pn,b,_)}function y(Pn,b,_){var J=b.gf,re=b.g._hasOpacity,Rn=b.s.v,Bn=b.e.v;if(b.o._mdf||_){var w=Pn.ty==="gf"?"fill-opacity":"stroke-opacity";b.style.pElem.setAttribute(w,b.o.v)}if(b.s._mdf||_){var vn=Pn.t===1?"x1":"cx",gn=vn==="x1"?"y1":"cy";J.setAttribute(vn,Rn[0]),J.setAttribute(gn,Rn[1]),re&&!b.g._collapsable&&(b.of.setAttribute(vn,Rn[0]),b.of.setAttribute(gn,Rn[1]))}var Fn,zn,Un,Wn;if(b.g._cmdf||_){Fn=b.cst;var tr=b.g.c;for(Un=Fn.length,zn=0;zn<Un;zn+=1)Wn=Fn[zn],Wn.setAttribute("offset",tr[zn*4]+"%"),Wn.setAttribute("stop-color","rgb("+tr[zn*4+1]+","+tr[zn*4+2]+","+tr[zn*4+3]+")")}if(re&&(b.g._omdf||_)){var Yn=b.g.o;for(b.g._collapsable?Fn=b.cst:Fn=b.ost,Un=Fn.length,zn=0;zn<Un;zn+=1)Wn=Fn[zn],b.g._collapsable||Wn.setAttribute("offset",Yn[zn*2]+"%"),Wn.setAttribute("stop-opacity",Yn[zn*2+1])}if(Pn.t===1)(b.e._mdf||_)&&(J.setAttribute("x2",Bn[0]),J.setAttribute("y2",Bn[1]),re&&!b.g._collapsable&&(b.of.setAttribute("x2",Bn[0]),b.of.setAttribute("y2",Bn[1])));else{var Xn;if((b.s._mdf||b.e._mdf||_)&&(Xn=Math.sqrt(Math.pow(Rn[0]-Bn[0],2)+Math.pow(Rn[1]-Bn[1],2)),J.setAttribute("r",Xn),re&&!b.g._collapsable&&b.of.setAttribute("r",Xn)),b.e._mdf||b.h._mdf||b.a._mdf||_){Xn||(Xn=Math.sqrt(Math.pow(Rn[0]-Bn[0],2)+Math.pow(Rn[1]-Bn[1],2)));var Jn=Math.atan2(Bn[1]-Rn[1],Bn[0]-Rn[0]),ir=b.h.v;ir>=1?ir=.99:ir<=-1&&(ir=-.99);var sr=Xn*ir,Zn=Math.cos(Jn+b.a.v)*sr+Rn[0],Gn=Math.sin(Jn+b.a.v)*sr+Rn[1];J.setAttribute("fx",Zn),J.setAttribute("fy",Gn),re&&!b.g._collapsable&&(b.of.setAttribute("fx",Zn),b.of.setAttribute("fy",Gn))}}}function x(Pn,b,_){var J=b.style,re=b.d;re&&(re._mdf||_)&&re.dashStr&&(J.pElem.setAttribute("stroke-dasharray",re.dashStr),J.pElem.setAttribute("stroke-dashoffset",re.dashoffset[0])),b.c&&(b.c._mdf||_)&&J.pElem.setAttribute("stroke","rgb("+bmFloor(b.c.v[0])+","+bmFloor(b.c.v[1])+","+bmFloor(b.c.v[2])+")"),(b.o._mdf||_)&&J.pElem.setAttribute("stroke-opacity",b.o.v),(b.w._mdf||_)&&(J.pElem.setAttribute("stroke-width",b.w.v),J.msElem&&J.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,p,v=[],m=!1;for(h=0;h<d;h+=1){for(p=this.stylesList[h],m=!1,v.length=0,c=0;c<u;c+=1)f=this.shapes[c],f.styles.indexOf(p)!==-1&&(v.push(f),m=f._isAnimated||m);v.length>1&&m&&this.setShapesAsAnimated(v)}},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 p=c.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;f=new p(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),p=new SVGShapeData(u,f,d);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(c,p),p},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,p,v){var m=[].concat(p),g,y=c.length-1,x,Pn,b=[],_=[],J,re,Rn;for(g=y;g>=0;g-=1){if(Rn=this.searchProcessedElement(c[g]),Rn?u[g]=f[Rn-1]:c[g]._render=v,c[g].ty==="fl"||c[g].ty==="st"||c[g].ty==="gf"||c[g].ty==="gs"||c[g].ty==="no")Rn?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(!Rn)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,v),c[g]._render&&u[g].gr.parentNode!==h&&h.appendChild(u[g].gr)}else c[g].ty==="tr"?(Rn||(u[g]=this.createTransformElement(c[g],h)),J=u[g].transform,m.push(J)):c[g].ty==="sh"||c[g].ty==="rc"||c[g].ty==="el"||c[g].ty==="sr"?(Rn||(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"?(Rn?(re=u[g],re.closed=!1):(re=ShapeModifiers.getModifier(c[g].ty),re.init(this,c[g]),u[g]=re,this.shapeModifiers.push(re)),_.push(re)):c[g].ty==="rp"&&(Rn?(re=u[g],re.closed=!0):(re=ShapeModifiers.getModifier(c[g].ty),u[g]=re,re.init(this,c,g,u),this.shapeModifiers.push(re),v=!1),_.push(re));this.addProcessedElement(c[g],g+1)}for(y=b.length,g=0;g<y;g+=1)b[g].closed=!0;for(y=_.length,g=0;g<y;g+=1)_[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,p){this.o=c,this.sw=u,this.sc=f,this.fc=h,this.m=d,this.p=p,this._mdf={o:!0,sw:!!u,sc:!!f,fc:!!h,m:!0,p:!0}}LetterProps.prototype.update=function(c,u,f,h,d,p){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 v=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,v=!0),this.sw!==u&&(this.sw=u,this._mdf.sw=!0,v=!0),this.sc!==f&&(this.sc=f,this._mdf.sc=!0,v=!0),this.fc!==h&&(this.fc=h,this._mdf.fc=!0,v=!0),this.m!==d&&(this.m=d,this._mdf.m=!0,v=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,v=!0),v};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,p=c||this.data.d.k[this.keysIndex].s;for(h=0;h<d;h+=1)f!==this.keysIndex?p=this.effectsSequence[h](p,p.t):p=this.effectsSequence[h](this.currentData,p.t);u!==p&&this.setCurrentData(p),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,p,v=!1,m=!1,g="";f<h;)v=m,m=!1,d=c.charCodeAt(f),g=c.charAt(f),FontManager.isCombinedCharacter(d)?v=!0:d>=55296&&d<=56319?FontManager.isRegionalFlag(c,f)?g=c.substr(f,14):(p=c.charCodeAt(f+1),p>=56320&&p<=57343&&(FontManager.isModifier(d,p)?(g=c.substr(f,2),v=!0):FontManager.isFlagEmoji(c.substr(f,4))?g=c.substr(f,4):g=c.substr(f,2))):d>56319?(p=c.charCodeAt(f+1),FontManager.isVariationSelector(d)&&(v=!0)):FontManager.isZeroWidthJoiner(d)&&(v=!0,m=!0),v?(u[u.length-1]+=g,v=!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,p,v,m=0,g,y=f.m.g,x=0,Pn=0,b=0,_=[],J=0,re=0,Rn,Bn,w=u.getFontByName(c.f),vn,gn=0,Fn=getFontProperties(w);c.fWeight=Fn.weight,c.fStyle=Fn.style,c.finalSize=c.s,c.finalText=this.buildFinalText(c.t),p=c.finalText.length,c.finalLineHeight=c.lh;var zn=c.tr/1e3*c.finalSize,Un;if(c.sz)for(var Wn=!0,tr=c.sz[0],Yn=c.sz[1],Xn,Jn;Wn;){Jn=this.buildFinalText(c.t),Xn=0,J=0,p=Jn.length,zn=c.tr/1e3*c.finalSize;var ir=-1;for(d=0;d<p;d+=1)Un=Jn[d].charCodeAt(0),v=!1,Jn[d]===" "?ir=d:(Un===13||Un===3)&&(J=0,v=!0,Xn+=c.finalLineHeight||c.finalSize*1.2),u.chars?(vn=u.getCharData(Jn[d],w.fStyle,w.fFamily),gn=v?0:vn.w*c.finalSize/100):gn=u.measureText(Jn[d],c.f,c.finalSize),J+gn>tr&&Jn[d]!==" "?(ir===-1?p+=1:d=ir,Xn+=c.finalLineHeight||c.finalSize*1.2,Jn.splice(d,ir===d?1:0,"\r"),ir=-1,J=0):(J+=gn,J+=zn);Xn+=w.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&Yn<Xn?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Jn,p=c.finalText.length,Wn=!1)}J=-zn,gn=0;var sr=0,Zn;for(d=0;d<p;d+=1)if(v=!1,Zn=c.finalText[d],Un=Zn.charCodeAt(0),Un===13||Un===3?(sr=0,_.push(J),re=J>re?J:re,J=-2*zn,g="",v=!0,b+=1):g=Zn,u.chars?(vn=u.getCharData(Zn,w.fStyle,u.getFontByName(c.f).fFamily),gn=v?0:vn.w*c.finalSize/100):gn=u.measureText(g,c.f,c.finalSize),Zn===" "?sr+=gn+zn:(J+=gn+zn+sr,sr=0),h.push({l:gn,an:gn,add:x,n:v,anIndexes:[],val:g,line:b,animatorJustifyOffset:0}),y==2){if(x+=gn,g===""||g===" "||d===p-1){for((g===""||g===" ")&&(x-=gn);Pn<=d;)h[Pn].an=x,h[Pn].ind=m,h[Pn].extra=gn,Pn+=1;m+=1,x=0}}else if(y==3){if(x+=gn,g===""||d===p-1){for(g===""&&(x-=gn);Pn<=d;)h[Pn].an=x,h[Pn].ind=m,h[Pn].extra=gn,Pn+=1;x=0,m+=1}}else h[m].ind=m,h[m].extra=0,m+=1;if(c.l=h,re=J>re?J:re,_.push(J),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=re,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0}c.lineWidths=_;var Gn=f.a,Kn,Vn;Bn=Gn.length;var qn,nr,Hn=[];for(Rn=0;Rn<Bn;Rn+=1){for(Kn=Gn[Rn],Kn.a.sc&&(c.strokeColorAnim=!0),Kn.a.sw&&(c.strokeWidthAnim=!0),(Kn.a.fc||Kn.a.fh||Kn.a.fs||Kn.a.fb)&&(c.fillColorAnim=!0),nr=0,qn=Kn.s.b,d=0;d<p;d+=1)Vn=h[d],Vn.anIndexes[Rn]=nr,(qn==1&&Vn.val!==""||qn==2&&Vn.val!==""&&Vn.val!==" "||qn==3&&(Vn.n||Vn.val==" "||d==p-1)||qn==4&&(Vn.n||d==p-1))&&(Kn.s.rn===1&&Hn.push(nr),nr+=1);f.a[Rn].s.totalChars=nr;var lr=-1,cr;if(Kn.s.rn===1)for(d=0;d<p;d+=1)Vn=h[d],lr!=Vn.anIndexes[Rn]&&(lr=Vn.anIndexes[Rn],cr=Hn.splice(Math.floor(Math.random()*Hn.length),1)[0]),Vn.anIndexes[Rn]=cr}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(p,v){this._currentTextLength=-1,this.k=!1,this.data=v,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=PropertyFactory.getProp(p,v.s||{k:0},0,0,this),"e"in v?this.e=PropertyFactory.getProp(p,v.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(p,v.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(p,v.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(p,v.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(p,v.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(p,v.a,0,.01,this),this.dynamicProperties.length||this.getValue()}h.prototype={getMult:function(v){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,_=this.finalS,J=this.finalE,re=this.data.sh;if(re===2)J===_?b=v>=J?1:0:b=c(0,u(.5/(J-_)+(v-_)/(J-_),1)),b=Pn(b);else if(re===3)J===_?b=v>=J?0:1:b=1-c(0,u(.5/(J-_)+(v-_)/(J-_),1)),b=Pn(b);else if(re===4)J===_?b=0:(b=c(0,u(.5/(J-_)+(v-_)/(J-_),1)),b<.5?b*=2:b=1-2*(b-.5)),b=Pn(b);else if(re===5){if(J===_)b=0;else{var Rn=J-_;v=u(c(0,v+.5-_),J-_);var Bn=-Rn/2+v,w=Rn/2;b=Math.sqrt(1-Bn*Bn/(w*w))}b=Pn(b)}else re===6?(J===_?b=0:(v=u(c(0,v+.5-_),J-_),b=(1+Math.cos(Math.PI+Math.PI*2*v/(J-_)))/2),b=Pn(b)):(v>=f(_)&&(v-_<0?b=c(0,u(u(J,1)-(_-v),1)):b=c(0,u(J-v,1))),b=Pn(b));if(this.sm.v!==100){var vn=this.sm.v*.01;vn===0&&(vn=1e-8);var gn=.5-vn*.5;b<gn?b=0:(b=(b-gn)/vn,b>1&&(b=1))}return b*this.a.v},getValue:function(v){this.iterateDynamicProperties(),this._mdf=v||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,v&&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(p,v,m){return new h(p,v)}return{getTextSelectorProp:d}}();function TextAnimatorDataProperty(c,u,f){var h={propType:!1},d=PropertyFactory.getProp,p=u.a;this.a={r:p.r?d(c,p.r,0,degToRads,f):h,rx:p.rx?d(c,p.rx,0,degToRads,f):h,ry:p.ry?d(c,p.ry,0,degToRads,f):h,sk:p.sk?d(c,p.sk,0,degToRads,f):h,sa:p.sa?d(c,p.sa,0,degToRads,f):h,s:p.s?d(c,p.s,1,.01,f):h,a:p.a?d(c,p.a,1,0,f):h,o:p.o?d(c,p.o,0,.01,f):h,p:p.p?d(c,p.p,1,0,f):h,sw:p.sw?d(c,p.sw,0,0,f):h,sc:p.sc?d(c,p.sc,1,0,f):h,fc:p.fc?d(c,p.fc,1,0,f):h,fh:p.fh?d(c,p.fh,0,0,f):h,fs:p.fs?d(c,p.fs,0,.01,f):h,fb:p.fb?d(c,p.fb,0,.01,f):h,t:p.t?d(c,p.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,p=this.mHelper,v=this._renderType,m=this.renderedLetters.length,g,y,x,Pn,b=c.l,_,J,re,Rn,Bn,w,vn,gn,Fn,zn,Un,Wn,tr,Yn,Xn;if(this._hasMaskedPath){if(Xn=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Jn=Xn.v;this._pathData.r.v&&(Jn=Jn.reverse()),_={tLength:0,segments:[]},Pn=Jn._length-1;var ir;for(Wn=0,x=0;x<Pn;x+=1)ir=bez.buildBezierData(Jn.v[x],Jn.v[x+1],[Jn.o[x][0]-Jn.v[x][0],Jn.o[x][1]-Jn.v[x][1]],[Jn.i[x+1][0]-Jn.v[x+1][0],Jn.i[x+1][1]-Jn.v[x+1][1]]),_.tLength+=ir.segmentLength,_.segments.push(ir),Wn+=ir.segmentLength;x=Pn,Xn.v.c&&(ir=bez.buildBezierData(Jn.v[x],Jn.v[0],[Jn.o[x][0]-Jn.v[x][0],Jn.o[x][1]-Jn.v[x][1]],[Jn.i[0][0]-Jn.v[0][0],Jn.i[0][1]-Jn.v[0][1]]),_.tLength+=ir.segmentLength,_.segments.push(ir),Wn+=ir.segmentLength),this._pathData.pi=_}if(_=this._pathData.pi,J=this._pathData.f.v,vn=0,w=1,Rn=0,Bn=!0,zn=_.segments,J<0&&Xn.v.c)for(_.tLength<Math.abs(J)&&(J=-Math.abs(J)%_.tLength),vn=zn.length-1,Fn=zn[vn].points,w=Fn.length-1;J<0;)J+=Fn[w].partialLength,w-=1,w<0&&(vn-=1,Fn=zn[vn].points,w=Fn.length-1);Fn=zn[vn].points,gn=Fn[w-1],re=Fn[w],Un=re.partialLength}Pn=b.length,g=0,y=0;var sr=c.finalSize*1.2*.714,Zn=!0,Gn,Kn,Vn,qn,nr;qn=h.length;var Hn,lr=-1,cr,Qn,ar,er=J,ur=vn,hr=w,or=-1,mr,dr,fr,vr,pr,yr,br,Sr,gr="",kr=this.defaultPropsArray,wr;if(c.j===2||c.j===1){var Er=0,Tr=0,_r=c.j===2?-.5:-1,Mr=0,Or=!0;for(x=0;x<Pn;x+=1)if(b[x].n){for(Er&&(Er+=Tr);Mr<x;)b[Mr].animatorJustifyOffset=Er,Mr+=1;Er=0,Or=!0}else{for(Vn=0;Vn<qn;Vn+=1)Gn=h[Vn].a,Gn.t.propType&&(Or&&c.j===2&&(Tr+=Gn.t.v*_r),Kn=h[Vn].s,Hn=Kn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),Hn.length?Er+=Gn.t.v*Hn[0]*_r:Er+=Gn.t.v*Hn*_r);Or=!1}for(Er&&(Er+=Tr);Mr<x;)b[Mr].animatorJustifyOffset=Er,Mr+=1}for(x=0;x<Pn;x+=1){if(p.reset(),mr=1,b[x].n)g=0,y+=c.yOffset,y+=Zn?1:0,J=er,Zn=!1,this._hasMaskedPath&&(vn=ur,w=hr,Fn=zn[vn].points,gn=Fn[w-1],re=Fn[w],Un=re.partialLength,Rn=0),gr="",Sr="",yr="",wr="",kr=this.defaultPropsArray;else{if(this._hasMaskedPath){if(or!==b[x].line){switch(c.j){case 1:J+=Wn-c.lineWidths[b[x].line];break;case 2:J+=(Wn-c.lineWidths[b[x].line])/2;break}or=b[x].line}lr!==b[x].ind&&(b[lr]&&(J+=b[lr].extra),J+=b[x].an/2,lr=b[x].ind),J+=f[0]*b[x].an*.005;var Rr=0;for(Vn=0;Vn<qn;Vn+=1)Gn=h[Vn].a,Gn.p.propType&&(Kn=h[Vn].s,Hn=Kn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),Hn.length?Rr+=Gn.p.v[0]*Hn[0]:Rr+=Gn.p.v[0]*Hn),Gn.a.propType&&(Kn=h[Vn].s,Hn=Kn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),Hn.length?Rr+=Gn.a.v[0]*Hn[0]:Rr+=Gn.a.v[0]*Hn);for(Bn=!0,this._pathData.a.v&&(J=b[0].an*.5+(Wn-this._pathData.f.v-b[0].an*.5-b[b.length-1].an*.5)*lr/(Pn-1),J+=this._pathData.f.v);Bn;)Rn+Un>=J+Rr||!Fn?(tr=(J+Rr-Rn)/re.partialLength,Qn=gn.point[0]+(re.point[0]-gn.point[0])*tr,ar=gn.point[1]+(re.point[1]-gn.point[1])*tr,p.translate(-f[0]*b[x].an*.005,-(f[1]*sr)*.01),Bn=!1):Fn&&(Rn+=re.partialLength,w+=1,w>=Fn.length&&(w=0,vn+=1,zn[vn]?Fn=zn[vn].points:Xn.v.c?(w=0,vn=0,Fn=zn[vn].points):(Rn-=re.partialLength,Fn=null)),Fn&&(gn=re,re=Fn[w],Un=re.partialLength));cr=b[x].an/2-b[x].add,p.translate(-cr,0,0)}else cr=b[x].an/2-b[x].add,p.translate(-cr,0,0),p.translate(-f[0]*b[x].an*.005,-f[1]*sr*.01,0);for(Vn=0;Vn<qn;Vn+=1)Gn=h[Vn].a,Gn.t.propType&&(Kn=h[Vn].s,Hn=Kn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),(g!==0||c.j!==0)&&(this._hasMaskedPath?Hn.length?J+=Gn.t.v*Hn[0]:J+=Gn.t.v*Hn:Hn.length?g+=Gn.t.v*Hn[0]:g+=Gn.t.v*Hn));for(c.strokeWidthAnim&&(fr=c.sw||0),c.strokeColorAnim&&(c.sc?dr=[c.sc[0],c.sc[1],c.sc[2]]:dr=[0,0,0]),c.fillColorAnim&&c.fc&&(vr=[c.fc[0],c.fc[1],c.fc[2]]),Vn=0;Vn<qn;Vn+=1)Gn=h[Vn].a,Gn.a.propType&&(Kn=h[Vn].s,Hn=Kn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),Hn.length?p.translate(-Gn.a.v[0]*Hn[0],-Gn.a.v[1]*Hn[1],Gn.a.v[2]*Hn[2]):p.translate(-Gn.a.v[0]*Hn,-Gn.a.v[1]*Hn,Gn.a.v[2]*Hn));for(Vn=0;Vn<qn;Vn+=1)Gn=h[Vn].a,Gn.s.propType&&(Kn=h[Vn].s,Hn=Kn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),Hn.length?p.scale(1+(Gn.s.v[0]-1)*Hn[0],1+(Gn.s.v[1]-1)*Hn[1],1):p.scale(1+(Gn.s.v[0]-1)*Hn,1+(Gn.s.v[1]-1)*Hn,1));for(Vn=0;Vn<qn;Vn+=1){if(Gn=h[Vn].a,Kn=h[Vn].s,Hn=Kn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),Gn.sk.propType&&(Hn.length?p.skewFromAxis(-Gn.sk.v*Hn[0],Gn.sa.v*Hn[1]):p.skewFromAxis(-Gn.sk.v*Hn,Gn.sa.v*Hn)),Gn.r.propType&&(Hn.length?p.rotateZ(-Gn.r.v*Hn[2]):p.rotateZ(-Gn.r.v*Hn)),Gn.ry.propType&&(Hn.length?p.rotateY(Gn.ry.v*Hn[1]):p.rotateY(Gn.ry.v*Hn)),Gn.rx.propType&&(Hn.length?p.rotateX(Gn.rx.v*Hn[0]):p.rotateX(Gn.rx.v*Hn)),Gn.o.propType&&(Hn.length?mr+=(Gn.o.v*Hn[0]-mr)*Hn[0]:mr+=(Gn.o.v*Hn-mr)*Hn),c.strokeWidthAnim&&Gn.sw.propType&&(Hn.length?fr+=Gn.sw.v*Hn[0]:fr+=Gn.sw.v*Hn),c.strokeColorAnim&&Gn.sc.propType)for(pr=0;pr<3;pr+=1)Hn.length?dr[pr]+=(Gn.sc.v[pr]-dr[pr])*Hn[0]:dr[pr]+=(Gn.sc.v[pr]-dr[pr])*Hn;if(c.fillColorAnim&&c.fc){if(Gn.fc.propType)for(pr=0;pr<3;pr+=1)Hn.length?vr[pr]+=(Gn.fc.v[pr]-vr[pr])*Hn[0]:vr[pr]+=(Gn.fc.v[pr]-vr[pr])*Hn;Gn.fh.propType&&(Hn.length?vr=addHueToRGB(vr,Gn.fh.v*Hn[0]):vr=addHueToRGB(vr,Gn.fh.v*Hn)),Gn.fs.propType&&(Hn.length?vr=addSaturationToRGB(vr,Gn.fs.v*Hn[0]):vr=addSaturationToRGB(vr,Gn.fs.v*Hn)),Gn.fb.propType&&(Hn.length?vr=addBrightnessToRGB(vr,Gn.fb.v*Hn[0]):vr=addBrightnessToRGB(vr,Gn.fb.v*Hn))}}for(Vn=0;Vn<qn;Vn+=1)Gn=h[Vn].a,Gn.p.propType&&(Kn=h[Vn].s,Hn=Kn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),this._hasMaskedPath?Hn.length?p.translate(0,Gn.p.v[1]*Hn[0],-Gn.p.v[2]*Hn[1]):p.translate(0,Gn.p.v[1]*Hn,-Gn.p.v[2]*Hn):Hn.length?p.translate(Gn.p.v[0]*Hn[0],Gn.p.v[1]*Hn[1],-Gn.p.v[2]*Hn[2]):p.translate(Gn.p.v[0]*Hn,Gn.p.v[1]*Hn,-Gn.p.v[2]*Hn));if(c.strokeWidthAnim&&(yr=fr<0?0:fr),c.strokeColorAnim&&(br="rgb("+Math.round(dr[0]*255)+","+Math.round(dr[1]*255)+","+Math.round(dr[2]*255)+")"),c.fillColorAnim&&c.fc&&(Sr="rgb("+Math.round(vr[0]*255)+","+Math.round(vr[1]*255)+","+Math.round(vr[2]*255)+")"),this._hasMaskedPath){if(p.translate(0,-c.ls),p.translate(0,f[1]*sr*.01+y,0),this._pathData.p.v){Yn=(re.point[1]-gn.point[1])/(re.point[0]-gn.point[0]);var Lr=Math.atan(Yn)*180/Math.PI;re.point[0]<gn.point[0]&&(Lr+=180),p.rotate(-Lr*Math.PI/180)}p.translate(Qn,ar,0),J-=f[0]*b[x].an*.005,b[x+1]&&lr!==b[x+1].ind&&(J+=b[x].an/2,J+=c.tr*.001*c.finalSize)}else{switch(p.translate(g,y,0),c.ps&&p.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:p.translate(b[x].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[b[x].line]),0,0);break;case 2:p.translate(b[x].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[b[x].line])/2,0,0);break}p.translate(0,-c.ls),p.translate(cr,0,0),p.translate(f[0]*b[x].an*.005,f[1]*sr*.01,0),g+=b[x].l+c.tr*.001*c.finalSize}v==="html"?gr=p.toCSS():v==="svg"?gr=p.to2dCSS():kr=[p.props[0],p.props[1],p.props[2],p.props[3],p.props[4],p.props[5],p.props[6],p.props[7],p.props[8],p.props[9],p.props[10],p.props[11],p.props[12],p.props[13],p.props[14],p.props[15]],wr=mr}m<=x?(nr=new LetterProps(wr,yr,br,Sr,gr,kr),this.renderedLetters.push(nr),m+=1,this.lettersChangedFlag=!0):(nr=this.renderedLetters[x],this.lettersChangedFlag=nr.update(wr,yr,br,Sr,gr,kr)||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,p="";for(f=0;f<h;f+=1)u[f].ty==="sh"&&(d=u[f].ks.k,p+=buildShapeString(d,d.i.length,!0,c));return p},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,p=f.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",d)}this.layerElement.setAttribute("aria-label",f.t);var v=f.l||[],m=!!this.globalData.fontManager.chars;u=v.length;var g,y=this.mHelper,x="",Pn=this.data.singleShape,b=0,_=0,J=!0,re=f.tr*.001*f.finalSize;if(Pn&&!m&&!f.sz){var Rn=this.textContainer,Bn="start";switch(f.j){case 1:Bn="end";break;case 2:Bn="middle";break;default:Bn="start";break}Rn.setAttribute("text-anchor",Bn),Rn.setAttribute("letter-spacing",re);var w=this.buildTextContents(f.finalText);for(u=w.length,_=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",_),g.style.display="inherit",Rn.appendChild(g),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=g,_+=f.finalLineHeight;this.layerElement.appendChild(Rn)}else{var vn=this.textSpans.length,gn;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=vn>c?this.textSpans[c].span:createNS(m?"g":"text"),vn<=c){if(g.setAttribute("stroke-linecap","butt"),g.setAttribute("stroke-linejoin","round"),g.setAttribute("stroke-miterlimit","4"),this.textSpans[c].span=g,m){var Fn=createNS("g");g.appendChild(Fn),this.textSpans[c].childSpan=Fn}this.textSpans[c].span=g,this.layerElement.appendChild(g)}g.style.display="inherit"}if(y.reset(),Pn&&(v[c].n&&(b=-re,_+=f.yOffset,_+=J?1:0,J=!1),this.applyTextPropertiesToMatrix(f,y,v[c].line,b,_),b+=v[c].l||0,b+=re),m){gn=this.globalData.fontManager.getCharData(f.finalText[c],h.fStyle,this.globalData.fontManager.getFontByName(f.f).fFamily);var zn;if(gn.t===1)zn=new SVGCompElement(gn.data,this.globalData,this);else{var Un=emptyShapeData;gn.data&&gn.data.shapes&&(Un=this.buildShapeData(gn.data,f.finalSize)),zn=new SVGShapeElement(Un,this.globalData,this)}if(this.textSpans[c].glyph){var Wn=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(Wn.layerElement),Wn.destroy()}this.textSpans[c].glyph=zn,zn._debug=!0,zn.prepareFrame(0),zn.renderFrame(),this.textSpans[c].childSpan.appendChild(zn.layerElement),gn.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=v[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,p,v;for(c=0;c<u;c+=1)h[c].n||(d=f[c],p=this.textSpans[c].span,v=this.textSpans[c].glyph,v&&v.renderFrame(),d._mdf.m&&p.setAttribute("transform",d.m),d._mdf.o&&p.setAttribute("opacity",d.o),d._mdf.sw&&p.setAttribute("stroke-width",d.sw),d._mdf.sc&&p.setAttribute("stroke",d.sc),d._mdf.fc&&p.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],p=d.getMatte(this.layers[c].tt);f.setMatte(p)}}}},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],p=d.getMatte(this.layers[u].tt);c.setMatte(p);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 p=createNS("desc"),v=createElementID();p.setAttribute("id",v),p.textContent=u.description,this.svgElement.appendChild(p),f+=" "+v}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 p=this.sequences[d];return p||(p={transforms:[].concat(u),finalTransform:new Matrix,_mdf:!1},this.sequences[d]=p,this.sequenceList.push(p)),p},processSequence:function(u,f){for(var h=0,d=u.transforms.length,p=f;h<d&&!f;){if(u.transforms[h].transform.mProps._mdf){p=!0;break}h+=1}if(p)for(u.finalTransform.reset(),h=d-1;h>=0;h-=1)u.finalTransform.multiply(u.transforms[h].transform.mProps.v);u._mdf=p},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 p(){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 v(){f||(d=p(),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||v(),f.width=g.width,f.height=g.height,h.filter="url(#"+u+")",f}return{load:v,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 p=registeredEffects[d].effect;h=new p(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,p,v;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)),v=this.viewData[f].v,d=c.applyToPointArray(v.v[0][0],v.v[0][1],0),u.moveTo(d[0],d[1]);var m,g=v._length;for(m=1;m<g;m+=1)p=c.applyToTriplePoints(v.o[m-1],v.i[m],v.v[m]),u.bezierCurveTo(p[0],p[1],p[2],p[3],p[4],p[5]);p=c.applyToTriplePoints(v.o[m-1],v.i[0],v.v[0]),u.bezierCurveTo(p[0],p[1],p[2],p[3],p[4],p[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),p=d.getContext("2d");p.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 p,v=f.length,m;for(p=0;p<v;p+=1)f[p].closed||(m={transforms:h.addTransformSequence(f[p].transforms),trNodes:[]},this.styledShapes.push(m),f[p].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 p,v=c.length-1,m,g,y=[],x=[],Pn,b,_,J=[].concat(d);for(p=v;p>=0;p-=1){if(Pn=this.searchProcessedElement(c[p]),Pn?u[p]=f[Pn-1]:c[p]._shouldRender=h,c[p].ty==="fl"||c[p].ty==="st"||c[p].ty==="gf"||c[p].ty==="gs")Pn?u[p].style.closed=!1:u[p]=this.createStyleElement(c[p],J),y.push(u[p].style);else if(c[p].ty==="gr"){if(!Pn)u[p]=this.createGroupElement(c[p]);else for(g=u[p].it.length,m=0;m<g;m+=1)u[p].prevViewData[m]=u[p].it[m];this.searchShapes(c[p].it,u[p].it,u[p].prevViewData,h,J)}else c[p].ty==="tr"?(Pn||(_=this.createTransformElement(c[p]),u[p]=_),J.push(u[p]),this.addTransformToStyleList(u[p])):c[p].ty==="sh"||c[p].ty==="rc"||c[p].ty==="el"||c[p].ty==="sr"?Pn||(u[p]=this.createShapeElement(c[p])):c[p].ty==="tm"||c[p].ty==="rd"||c[p].ty==="pb"||c[p].ty==="zz"||c[p].ty==="op"?(Pn?(b=u[p],b.closed=!1):(b=ShapeModifiers.getModifier(c[p].ty),b.init(this,c[p]),u[p]=b,this.shapeModifiers.push(b)),x.push(b)):c[p].ty==="rp"&&(Pn?(b=u[p],b.closed=!0):(b=ShapeModifiers.getModifier(c[p].ty),u[p]=b,b.init(this,c,p,u),this.shapeModifiers.push(b),h=!1),x.push(b));this.addProcessedElement(c[p],p+1)}for(this.removeTransformFromStyleList(),this.closeStyles(y),v=x.length,p=0;p<v;p+=1)x[p].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,p,v,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(),v=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=v.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=v[f].trNodes,p=m.length,d=0;d<p;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,p=u.length-1,v;for(v=c,d=p;d>=0;d-=1)u[d].ty==="tr"?(v=f[d].transform,this.renderShapeTransform(c,v)):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],v):u[d].ty==="st"?this.renderStroke(u[d],f[d],v):u[d].ty==="gf"||u[d].ty==="gs"?this.renderGradientFill(u[d],f[d],v):u[d].ty==="gr"?this.renderShape(v,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,p,v,m=h._length;f.length=0;var g=c.transforms.finalTransform;for(v=0;v<m;v+=1){var y=h.shapes[v];if(y&&y.v){for(p=y._length,d=1;d<p;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])});p===1&&f.push({t:"m",p:g.applyToPointArray(y.v[0][0],y.v[0][1],0)}),y.c&&p&&(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 p=this.globalData.canvasContext,v=u.s.v,m=u.e.v;if(c.t===1)d=p.createLinearGradient(v[0],v[1],m[0],m[1]);else{var g=Math.sqrt(Math.pow(v[0]-m[0],2)+Math.pow(v[1]-m[1],2)),y=Math.atan2(m[1]-v[1],m[0]-v[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+v[0],_=Math.sin(y+u.a.v)*Pn+v[1];d=p.createRadialGradient(b,_,0,v[0],v[1],g)}var J,re=c.g.p,Rn=u.g.c,Bn=1;for(J=0;J<re;J+=1)u.g._hasOpacity&&u.g._collapsable&&(Bn=u.g.o[J*2+1]),d.addColorStop(Rn[J*4]/100,"rgba("+Rn[J*4+1]+","+Rn[J*4+2]+","+Rn[J*4+3]+","+Bn+")");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,p,v=c.l,m=this.mHelper;this.stroke=f,this.values.fValue=c.finalSize+"px "+this.globalData.fontManager.getFontByName(c.f).fFamily,p=c.finalText.length;var g,y,x,Pn,b,_,J,re,Rn,Bn,w=this.data.singleShape,vn=c.tr*.001*c.finalSize,gn=0,Fn=0,zn=!0,Un=0;for(d=0;d<p;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&&v[d].n&&(gn=-vn,Fn+=c.yOffset,Fn+=zn?1:0,zn=!1),b=y.shapes?y.shapes[0].it:[],J=b.length,m.scale(c.finalSize/100,c.finalSize/100),w&&this.applyTextPropertiesToMatrix(c,m,v[d].line,gn,Fn),Rn=createSizedArray(J-1);var Wn=0;for(_=0;_<J;_+=1)if(b[_].ty==="sh"){for(Pn=b[_].ks.k.i.length,re=b[_].ks.k,Bn=[],x=1;x<Pn;x+=1)x===1&&Bn.push(m.applyToX(re.v[0][0],re.v[0][1],0),m.applyToY(re.v[0][0],re.v[0][1],0)),Bn.push(m.applyToX(re.o[x-1][0],re.o[x-1][1],0),m.applyToY(re.o[x-1][0],re.o[x-1][1],0),m.applyToX(re.i[x][0],re.i[x][1],0),m.applyToY(re.i[x][0],re.i[x][1],0),m.applyToX(re.v[x][0],re.v[x][1],0),m.applyToY(re.v[x][0],re.v[x][1],0));Bn.push(m.applyToX(re.o[x-1][0],re.o[x-1][1],0),m.applyToY(re.o[x-1][0],re.o[x-1][1],0),m.applyToX(re.i[0][0],re.i[0][1],0),m.applyToY(re.i[0][0],re.i[0][1],0),m.applyToX(re.v[0][0],re.v[0][1],0),m.applyToY(re.v[0][0],re.v[0][1],0)),Rn[Wn]=Bn,Wn+=1}w&&(gn+=v[d].l,gn+=vn),this.textSpans[Un]?this.textSpans[Un].elem=Rn:this.textSpans[Un]={elem:Rn},Un+=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,p,v,m=this.textAnimator.renderedLetters,g=this.textProperty.currentData.l;f=g.length;var y,x=null,Pn=null,b=null,_,J,re=this.globalData.renderer;for(u=0;u<f;u+=1)if(!g[u].n){if(y=m[u],y&&(re.save(),re.ctxTransform(y.p),re.ctxOpacity(y.o)),this.fill){for(y&&y.fc?x!==y.fc&&(re.ctxFillStyle(y.fc),x=y.fc):x!==this.values.fill&&(x=this.values.fill,re.ctxFillStyle(this.values.fill)),_=this.textSpans[u].elem,d=_.length,this.globalData.canvasContext.beginPath(),h=0;h<d;h+=1)for(J=_[h],v=J.length,this.globalData.canvasContext.moveTo(J[0],J[1]),p=2;p<v;p+=6)this.globalData.canvasContext.bezierCurveTo(J[p],J[p+1],J[p+2],J[p+3],J[p+4],J[p+5]);this.globalData.canvasContext.closePath(),re.ctxFill()}if(this.stroke){for(y&&y.sw?b!==y.sw&&(b=y.sw,re.ctxLineWidth(y.sw)):b!==this.values.sWidth&&(b=this.values.sWidth,re.ctxLineWidth(this.values.sWidth)),y&&y.sc?Pn!==y.sc&&(Pn=y.sc,re.ctxStrokeStyle(y.sc)):Pn!==this.values.stroke&&(Pn=this.values.stroke,re.ctxStrokeStyle(this.values.stroke)),_=this.textSpans[u].elem,d=_.length,this.globalData.canvasContext.beginPath(),h=0;h<d;h+=1)for(J=_[h],v=J.length,this.globalData.canvasContext.moveTo(J[0],J[1]),p=2;p<v;p+=6)this.globalData.canvasContext.bezierCurveTo(J[p],J[p+1],J[p+2],J[p+3],J[p+4],J[p+5]);this.globalData.canvasContext.closePath(),re.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,p=this.assetData.w/this.assetData.h,v,m,g=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;d>p&&g==="xMidYMid slice"||d<p&&g!=="xMidYMid slice"?(m=h,v=m*p):(v=f,m=v/p),u.drawImage(this.img,(f-v)/2,(h-m)/2,v,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,p;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var v=this.renderConfig.preserveAspectRatio.split(" "),m=v[1]||"meet",g=v[0]||"xMidYMid",y=g.substr(0,4),x=g.substr(4);d=f/h,p=this.transformCanvas.w/this.transformCanvas.h,p>d&&m==="meet"||p<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"&&(p<d&&m==="meet"||p>d&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(h/this.transformCanvas.h))/2*this.renderConfig.dpr:y==="xMax"&&(p<d&&m==="meet"||p>d&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(h/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,x==="YMid"&&(p>d&&m==="meet"||p<d&&m==="slice")?this.transformCanvas.ty=(h-this.transformCanvas.h*(f/this.transformCanvas.w))/2*this.renderConfig.dpr:x==="YMax"&&(p>d&&m==="meet"||p<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 p=this.stack[this.cArrPos+1];this.appliedFillStyle=p.fillStyle,this.appliedStrokeStyle=p.strokeStyle,this.appliedLineWidth=p.lineWidth,this.appliedLineCap=p.lineCap,this.appliedLineJoin=p.lineJoin,this.appliedMiterLimit=p.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,p=f._length,v,m,g,y;if(!(p<=1)){for(d=0;d<p-1;d+=1)v=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(v,m,g,y,u);f.c&&(v=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(v,m,g,y,u))}},HShapeElement.prototype.checkBounds=function(c,u,f,h,d){this.getBoundsOfCurve(c,u,f,h);var p=this.shapeBoundingBox;d.x=bmMin(p.left,d.x),d.xMax=bmMax(p.right,d.xMax),d.y=bmMin(p.top,d.y),d.yMax=bmMax(p.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]]],p,v,m,g,y,x,Pn,b=0;b<2;++b)v=6*c[b]-12*u[b]+6*f[b],p=-3*c[b]+9*u[b]-9*f[b]+3*h[b],m=3*u[b]-3*c[b],v|=0,p|=0,m|=0,p===0&&v===0||(p===0?(g=-m/v,g>0&&g<1&&d[b].push(this.calculateF(g,c,u,f,h,b))):(y=v*v-4*m*p,y>=0&&(x=(-v+bmSqrt(y))/(2*p),x>0&&x<1&&d[b].push(this.calculateF(x,c,u,f,h,b)),Pn=(-v-bmSqrt(y))/(2*p),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,p){return bmPow(1-c,3)*u[p]+3*bmPow(1-c,2)*c*f[p]+3*(1-c)*bmPow(c,2)*h[p]+bmPow(c,3)*d[p]},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,p=c.fStyle;u.fontStyle=p,u.fontWeight=d}var v,m,g=c.l;m=g.length;var y,x,Pn,b=this.mHelper,_,J="",re=0;for(v=0;v<m;v+=1){if(this.globalData.fontManager.chars?(this.textPaths[re]?y=this.textPaths[re]:(y=createNS("path"),y.setAttribute("stroke-linecap",lineCapEnum[1]),y.setAttribute("stroke-linejoin",lineJoinEnum[2]),y.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[re]?(x=this.textSpans[re],Pn=x.children[0]):(x=createTag("div"),x.style.lineHeight=0,Pn=createNS("svg"),Pn.appendChild(y),styleDiv(x)))):this.isMasked?y=this.textPaths[re]?this.textPaths[re]:createNS("text"):this.textSpans[re]?(x=this.textSpans[re],y=this.textPaths[re]):(x=createTag("span"),styleDiv(x),y=createTag("span"),styleDiv(y),x.appendChild(y)),this.globalData.fontManager.chars){var Rn=this.globalData.fontManager.getCharData(c.finalText[v],h.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily),Bn;if(Rn?Bn=Rn.data:Bn=null,b.reset(),Bn&&Bn.shapes&&Bn.shapes.length&&(_=Bn.shapes[0].it,b.scale(c.finalSize/100,c.finalSize/100),J=this.createPathShape(b,_),y.setAttribute("d",J)),this.isMasked)this.innerElem.appendChild(y);else{if(this.innerElem.appendChild(x),Bn&&Bn.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 vn=Pn.style,gn="translate("+(w.x-1)+"px,"+(w.y-1)+"px)";vn.transform=gn,vn.webkitTransform=gn,g[v].yOffset=w.y-1}else Pn.setAttribute("width",1),Pn.setAttribute("height",1);x.appendChild(Pn)}}else if(y.textContent=g[v].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 Fn=y.style,zn="translate3d(0,"+-c.finalSize/1.2+"px,0)";Fn.transform=zn,Fn.webkitTransform=zn}this.isMasked?this.textSpans[re]=y:this.textSpans[re]=x,this.textSpans[re].style.display="block",this.textPaths[re]=y,re+=1}for(;re<this.textSpans.length;)this.textSpans[re].style.display="none",re+=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,p=this.textAnimator.renderedLetters,v=this.textProperty.currentData.l;h=v.length;var m,g,y;for(f=0;f<h;f+=1)v[f].n?d+=1:(g=this.textSpans[f],y=this.textPaths[f],m=p[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,p=c.ks.or.k.length;for(d=0;d<p;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 p=this.pe.v+"px",v="0px 0px 0px",m="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";h.perspective=p,h.webkitPerspective=p,d.transformOrigin=v,d.mozTransformOrigin=v,d.webkitTransformOrigin=v,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 p=Math.sqrt(Math.pow(d[0],2)+Math.pow(d[1],2)+Math.pow(d[2],2)),v=[d[0]/p,d[1]/p,d[2]/p],m=Math.sqrt(v[2]*v[2]+v[0]*v[0]),g=Math.atan2(v[1],m),y=Math.atan2(v[0],-v[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,_;for(u=0;u<f;u+=1)if(Pn=this.comp.threeDElements[u],Pn.type==="3d"){if(x){var J=this.mat.toCSS();_=Pn.container.style,_.transform=J,_.webkitTransform=J}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,p,v,m;d<u;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement&&(v=this.elements[d],m=this.layers[d].ddd?this.getThreeDContainerByPos(d):v.getBaseElement(),p=m||p),d+=1;p?(!h.ddd||!this.supports3d)&&this.layerElement.insertBefore(f,p):(!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 p=createTag("div");if(styleDiv(p),u==="3d"){h=f.style,h.width=this.globalData.compSize.w+"px",h.height=this.globalData.compSize.h+"px";var v="50% 50%";h.webkitTransformOrigin=v,h.mozTransformOrigin=v,h.transformOrigin=v,d=p.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(p);var g={container:p,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,p;d<u;)this.elements[d]&&this.elements[d].getBaseElement&&(p=this.elements[d].getBaseElement()),d+=1;p?this.threeDElements[f].container.insertBefore(c,p):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 p=createNS("defs");d.appendChild(p),this.data=c,this.setupGlobalData(c,d),this.globalData.defs=p,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,p,v,m;h>f?(d=c/this.globalData.compSize.w,p=c/this.globalData.compSize.w,v=0,m=(u-this.globalData.compSize.h*(c/this.globalData.compSize.w))/2):(d=u/this.globalData.compSize.h,p=u/this.globalData.compSize.h,v=(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,"+p+",0,0,0,0,1,0,"+v+","+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,p=52,v="random",m=u.pow(h,d),g=u.pow(2,p),y=g*2,x=h-1,Pn;function b(vn,gn,Fn){var zn=[];gn=gn===!0?{entropy:!0}:gn||{};var Un=Rn(re(gn.entropy?[vn,w(c)]:vn===null?Bn():vn,3),zn),Wn=new _(zn),tr=function(){for(var Xn=Wn.g(d),Jn=m,ir=0;Xn<g;)Xn=(Xn+ir)*h,Jn*=h,ir=Wn.g(1);for(;Xn>=y;)Xn/=2,Jn/=2,ir>>>=1;return(Xn+ir)/Jn};return tr.int32=function(){return Wn.g(4)|0},tr.quick=function(){return Wn.g(4)/4294967296},tr.double=tr,Rn(w(Wn.S),c),(gn.pass||Fn||function(Yn,Xn,Jn,ir){return ir&&(ir.S&&J(ir,Wn),Yn.state=function(){return J(Wn,{})}),Jn?(u[v]=Yn,Xn):Yn})(tr,Un,"global"in gn?gn.global:this==u,gn.state)}u["seed"+v]=b;function _(vn){var gn,Fn=vn.length,zn=this,Un=0,Wn=zn.i=zn.j=0,tr=zn.S=[];for(Fn||(vn=[Fn++]);Un<h;)tr[Un]=Un++;for(Un=0;Un<h;Un++)tr[Un]=tr[Wn=x&Wn+vn[Un%Fn]+(gn=tr[Un])],tr[Wn]=gn;zn.g=function(Yn){for(var Xn,Jn=0,ir=zn.i,sr=zn.j,Zn=zn.S;Yn--;)Xn=Zn[ir=x&ir+1],Jn=Jn*h+Zn[x&(Zn[ir]=Zn[sr=x&sr+Xn])+(Zn[sr]=Xn)];return zn.i=ir,zn.j=sr,Jn}}function J(vn,gn){return gn.i=vn.i,gn.j=vn.j,gn.S=vn.S.slice(),gn}function re(vn,gn){var Fn=[],zn=_typeof$2(vn),Un;if(gn&&zn=="object")for(Un in vn)try{Fn.push(re(vn[Un],gn-1))}catch{}return Fn.length?Fn:zn=="string"?vn:vn+"\0"}function Rn(vn,gn){for(var Fn=vn+"",zn,Un=0;Un<Fn.length;)gn[x&Un]=x&(zn^=gn[x&Un]*19)+Fn.charCodeAt(Un++);return w(gn)}function Bn(){try{var vn=new Uint8Array(h);return(f.crypto||f.msCrypto).getRandomValues(vn),w(vn)}catch{var gn=f.navigator,Fn=gn&&gn.plugins;return[+new Date,f,Fn,f.screen,w(c)]}}function w(vn){return String.fromCharCode.apply(0,vn)}Rn(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,p=c.length,v=u.length,m=[];d<p||d<v;)(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,p=c.length,v=u.length,m=[];d<p||d<v;)(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 p,v;if($bm_isInstanceOfArray(c)&&isNumerable(h,u)){for(v=c.length,d=createTypedArray("float32",v),p=0;p<v;p+=1)d[p]=c[p]*u;return d}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(v=u.length,d=createTypedArray("float32",v),p=0;p<v;p+=1)d[p]=c*u[p];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 p,v;if($bm_isInstanceOfArray(c)&&isNumerable(h,u)){for(v=c.length,d=createTypedArray("float32",v),p=0;p<v;p+=1)d[p]=c[p]/u;return d}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(v=u.length,d=createTypedArray("float32",v),p=0;p<v;p+=1)d[p]=c/u[p];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),p=Math.min(u,f,h),v,m,g=(d+p)/2;if(d===p)v=0,m=0;else{var y=d-p;switch(m=g>.5?y/(2-d-p):y/(d+p),d){case u:v=(f-h)/y+(f<h?6:0);break;case f:v=(h-u)/y+2;break;case h:v=(u-f)/y+4;break}v/=6}return[v,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,p,v;if(f===0)d=h,v=h,p=h;else{var m=h<.5?h*(1+f):h+f-h*f,g=2*h-m;d=hue2rgb(g,m,u+1/3),p=hue2rgb(g,m,u),v=hue2rgb(g,m,u-1/3)}return[d,p,v,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 p=f;f=u,u=p}if(c<=u)return h;if(c>=f)return d;var v=f===u?0:(c-u)/(f-u);if(!h.length)return h+(d-h)*v;var m,g=h.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=h[m]+(d[m]-h[m])*v;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),p=BMMath.random();for(f=0;f<h;f+=1)d[f]=c[f]+p*(u[f]-c[f]);return d}c===void 0&&(c=0);var v=BMMath.random();return c+v*(u-c)}function createPath(c,u,f,h){var d,p=c.length,v=shapePool.newElement();v.setPathData(!!h,p);var m=[0,0],g,y;for(d=0;d<p;d+=1)g=u&&u[d]?u[d]:m,y=f&&f[d]?f[d]:m,v.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 v}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,p=this.pv.length?this.pv.length:1,v=createTypedArray("float32",p);u=5;var m=Math.floor(time*u);for(h=0,d=0;h<m;){for(d=0;d<p;d+=1)v[d]+=-f+f*2*BMMath.random();h+=1}var g=time*u,y=g-Math.floor(g),x=createTypedArray("float32",p);if(p>1){for(d=0;d<p;d+=1)x[d]=this.pv[d]+v[d]+(-f+f*2*BMMath.random())*y;return x}return this.pv+v[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,p){d===void 0?(d=f,p=h):u=(u-f)/(h-f),u>1?u=1:u<0&&(u=0);var v=c(u);if($bm_isInstanceOfArray(d)){var m,g=d.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=(p[m]-d[m])*v+d[m];return y}return(p-d)*v+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 p={};return p.index=h,p.time=d/elem.comp.globalData.frameRate,p}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 p(){h+=1}function v(){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=p,f.renderer.globalData.popExpression=v,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),p,v=h.viewData.length;for(p=0;p<v;p+=1)d[p]=new c(h.viewData[p],h.masksProperties[p]);var m=function(y){for(p=0;p<v;){if(h.masksProperties[p].nm===y)return d[p];p+=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(v,m,g){Object.defineProperty(v,"velocity",{get:function(){return m.getVelocityAtTime(m.comp.currentFrame)}}),v.numKeys=m.keyframes?m.keyframes.length:0,v.key=function(y){if(!v.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},v.valueAtTime=m.getValueAtTime,v.speedAtTime=m.getSpeedAtTime,v.velocityAtTime=m.getVelocityAtTime,v.propertyGroup=m.propertyGroup}function h(v){(!v||!("pv"in v))&&(v=c);var m=1/v.mult,g=v.pv*m,y=new Number(g);return y.value=g,f(y,v,"unidimensional"),function(){return v.k&&v.getValue(),g=v.v*m,y.value!==g&&(y=new Number(g),y.value=g,f(y,v,"unidimensional")),y}}function d(v){(!v||!("pv"in v))&&(v=u);var m=1/v.mult,g=v.data&&v.data.l||v.pv.length,y=createTypedArray("float32",g),x=createTypedArray("float32",g);return y.value=x,f(y,v,"multidimensional"),function(){v.k&&v.getValue();for(var Pn=0;Pn<g;Pn+=1)x[Pn]=v.v[Pn]*m,y[Pn]=x[Pn];return y}}function p(){return c}return function(v){return v?v.propType==="unidimensional"?h(v):d(v):p}}(),TransformExpressionInterface=function(){return function(c){function u(v){switch(v){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,p;return c.p?p=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?p():[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 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.applyToPointArray(x[0],x[1],x[2]||0)}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.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(re){_.mask=new MaskManagerInterface(re,y)}function b(re){_.effect=re}function _(re){switch(re){case"ADBE Root Vectors Group":case"Contents":case 2:return _.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 _.effect;case"ADBE Text Properties":return _.textInterface;default:return null}}_.getMatrix=c,_.invertPoint=v,_.applyPoint=p,_.toWorld=f,_.toWorldVec=u,_.fromWorld=d,_.fromWorldVec=h,_.toComp=f,_.fromComp=m,_.sampleImage=g,_.sourceRectAtTime=y.sourceRectAtTime.bind(y),_._elem=y,x=TransformExpressionInterface(y.finalTransform.mProp);var J=getDescriptor(x,"anchorPoint");return Object.defineProperties(_,{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:J,anchor_point:J,transform:{get:function(){return x}},active:{get:function(){return y.isInRange}}}),_.startTime=y.data.st,_.index=y.data.ind,_.source=y.data.refId,_.height=y.data.ty===0?y.data.h:100,_.width=y.data.ty===0?y.data.w:100,_.inPoint=y.data.ip/y.comp.globalData.frameRate,_.outPoint=y.data.op/y.comp.globalData.frameRate,_._name=y.data.nm,_.registerMaskInterface=Pn,_.registerEffectsInterface=b,_}}(),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,p){if(d.effectsManager){var v=[],m=d.data.ef,g,y=d.effectsManager.effectElements.length;for(g=0;g<y;g+=1)v.push(f(m[g],d.effectsManager.effectElements[g],p,d));var x=d.data.ef||[],Pn=function(_){for(g=0,y=x.length;g<y;){if(_===x[g].nm||_===x[g].mn||_===x[g].ix)return v[g];g+=1}return null};return Object.defineProperty(Pn,"numProperties",{get:function(){return x.length}}),Pn}return null}function f(d,p,v,m){function g(_){for(var J=d.ef,re=0,Rn=J.length;re<Rn;){if(_===J[re].nm||_===J[re].mn||_===J[re].ix)return J[re].ty===5?x[re]:x[re]();re+=1}throw new Error}var y=propertyGroupFactory(g,v),x=[],Pn,b=d.ef.length;for(Pn=0;Pn<b;Pn+=1)d.ef[Pn].ty===5?x.push(f(d.ef[Pn],p.effectElements[Pn],p.effectElements[Pn].propertyGroup,m)):x.push(h(p.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,p,v,m){var g=ExpressionPropertyInterface(d.p);function y(){return p===10?v.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 p(m){return m==="Shape"||m==="shape"||m==="Path"||m==="path"||m==="ADBE Vector Shape"||m===2?p.path:null}var v=propertyGroupFactory(p,h);return d.setGroupProperty(PropertyInterface("Path",v)),Object.defineProperties(p,{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}}),p}}(),ShapeExpressionInterface=function(){function c(J,re,Rn){var Bn=[],w,vn=J?J.length:0;for(w=0;w<vn;w+=1)J[w].ty==="gr"?Bn.push(f(J[w],re[w],Rn)):J[w].ty==="fl"?Bn.push(h(J[w],re[w],Rn)):J[w].ty==="st"?Bn.push(v(J[w],re[w],Rn)):J[w].ty==="tm"?Bn.push(m(J[w],re[w],Rn)):J[w].ty==="tr"||(J[w].ty==="el"?Bn.push(y(J[w],re[w],Rn)):J[w].ty==="sr"?Bn.push(x(J[w],re[w],Rn)):J[w].ty==="sh"?Bn.push(ShapePathInterface(J[w],re[w],Rn)):J[w].ty==="rc"?Bn.push(Pn(J[w],re[w],Rn)):J[w].ty==="rd"?Bn.push(b(J[w],re[w],Rn)):J[w].ty==="rp"?Bn.push(_(J[w],re[w],Rn)):J[w].ty==="gf"?Bn.push(d(J[w],re[w],Rn)):Bn.push(p(J[w],re[w])));return Bn}function u(J,re,Rn){var Bn,w=function(Fn){for(var zn=0,Un=Bn.length;zn<Un;){if(Bn[zn]._name===Fn||Bn[zn].mn===Fn||Bn[zn].propertyIndex===Fn||Bn[zn].ix===Fn||Bn[zn].ind===Fn)return Bn[zn];zn+=1}return typeof Fn=="number"?Bn[Fn-1]:null};w.propertyGroup=propertyGroupFactory(w,Rn),Bn=c(J.it,re.it,w.propertyGroup),w.numProperties=Bn.length;var vn=g(J.it[J.it.length-1],re.it[re.it.length-1],w.propertyGroup);return w.transform=vn,w.propertyIndex=J.cix,w._name=J.nm,w}function f(J,re,Rn){var Bn=function(Fn){switch(Fn){case"ADBE Vectors Group":case"Contents":case 2:return Bn.content;default:return Bn.transform}};Bn.propertyGroup=propertyGroupFactory(Bn,Rn);var w=u(J,re,Bn.propertyGroup),vn=g(J.it[J.it.length-1],re.it[re.it.length-1],Bn.propertyGroup);return Bn.content=w,Bn.transform=vn,Object.defineProperty(Bn,"_name",{get:function(){return J.nm}}),Bn.numProperties=J.np,Bn.propertyIndex=J.ix,Bn.nm=J.nm,Bn.mn=J.mn,Bn}function h(J,re,Rn){function Bn(w){return w==="Color"||w==="color"?Bn.color:w==="Opacity"||w==="opacity"?Bn.opacity:null}return Object.defineProperties(Bn,{color:{get:ExpressionPropertyInterface(re.c)},opacity:{get:ExpressionPropertyInterface(re.o)},_name:{value:J.nm},mn:{value:J.mn}}),re.c.setGroupProperty(PropertyInterface("Color",Rn)),re.o.setGroupProperty(PropertyInterface("Opacity",Rn)),Bn}function d(J,re,Rn){function Bn(w){return w==="Start Point"||w==="start point"?Bn.startPoint:w==="End Point"||w==="end point"?Bn.endPoint:w==="Opacity"||w==="opacity"?Bn.opacity:null}return Object.defineProperties(Bn,{startPoint:{get:ExpressionPropertyInterface(re.s)},endPoint:{get:ExpressionPropertyInterface(re.e)},opacity:{get:ExpressionPropertyInterface(re.o)},type:{get:function(){return"a"}},_name:{value:J.nm},mn:{value:J.mn}}),re.s.setGroupProperty(PropertyInterface("Start Point",Rn)),re.e.setGroupProperty(PropertyInterface("End Point",Rn)),re.o.setGroupProperty(PropertyInterface("Opacity",Rn)),Bn}function p(){function J(){return null}return J}function v(J,re,Rn){var Bn=propertyGroupFactory(Un,Rn),w=propertyGroupFactory(zn,Bn);function vn(Wn){Object.defineProperty(zn,J.d[Wn].nm,{get:ExpressionPropertyInterface(re.d.dataProps[Wn].p)})}var gn,Fn=J.d?J.d.length:0,zn={};for(gn=0;gn<Fn;gn+=1)vn(gn),re.d.dataProps[gn].p.setGroupProperty(w);function Un(Wn){return Wn==="Color"||Wn==="color"?Un.color:Wn==="Opacity"||Wn==="opacity"?Un.opacity:Wn==="Stroke Width"||Wn==="stroke width"?Un.strokeWidth:null}return Object.defineProperties(Un,{color:{get:ExpressionPropertyInterface(re.c)},opacity:{get:ExpressionPropertyInterface(re.o)},strokeWidth:{get:ExpressionPropertyInterface(re.w)},dash:{get:function(){return zn}},_name:{value:J.nm},mn:{value:J.mn}}),re.c.setGroupProperty(PropertyInterface("Color",Bn)),re.o.setGroupProperty(PropertyInterface("Opacity",Bn)),re.w.setGroupProperty(PropertyInterface("Stroke Width",Bn)),Un}function m(J,re,Rn){function Bn(vn){return vn===J.e.ix||vn==="End"||vn==="end"?Bn.end:vn===J.s.ix?Bn.start:vn===J.o.ix?Bn.offset:null}var w=propertyGroupFactory(Bn,Rn);return Bn.propertyIndex=J.ix,re.s.setGroupProperty(PropertyInterface("Start",w)),re.e.setGroupProperty(PropertyInterface("End",w)),re.o.setGroupProperty(PropertyInterface("Offset",w)),Bn.propertyIndex=J.ix,Bn.propertyGroup=Rn,Object.defineProperties(Bn,{start:{get:ExpressionPropertyInterface(re.s)},end:{get:ExpressionPropertyInterface(re.e)},offset:{get:ExpressionPropertyInterface(re.o)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function g(J,re,Rn){function Bn(vn){return J.a.ix===vn||vn==="Anchor Point"?Bn.anchorPoint:J.o.ix===vn||vn==="Opacity"?Bn.opacity:J.p.ix===vn||vn==="Position"?Bn.position:J.r.ix===vn||vn==="Rotation"||vn==="ADBE Vector Rotation"?Bn.rotation:J.s.ix===vn||vn==="Scale"?Bn.scale:J.sk&&J.sk.ix===vn||vn==="Skew"?Bn.skew:J.sa&&J.sa.ix===vn||vn==="Skew Axis"?Bn.skewAxis:null}var w=propertyGroupFactory(Bn,Rn);return re.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",w)),re.transform.mProps.p.setGroupProperty(PropertyInterface("Position",w)),re.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",w)),re.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",w)),re.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",w)),re.transform.mProps.sk&&(re.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",w)),re.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",w))),re.transform.op.setGroupProperty(PropertyInterface("Opacity",w)),Object.defineProperties(Bn,{opacity:{get:ExpressionPropertyInterface(re.transform.mProps.o)},position:{get:ExpressionPropertyInterface(re.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(re.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(re.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(re.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(re.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(re.transform.mProps.sa)},_name:{value:J.nm}}),Bn.ty="tr",Bn.mn=J.mn,Bn.propertyGroup=Rn,Bn}function y(J,re,Rn){function Bn(gn){return J.p.ix===gn?Bn.position:J.s.ix===gn?Bn.size:null}var w=propertyGroupFactory(Bn,Rn);Bn.propertyIndex=J.ix;var vn=re.sh.ty==="tm"?re.sh.prop:re.sh;return vn.s.setGroupProperty(PropertyInterface("Size",w)),vn.p.setGroupProperty(PropertyInterface("Position",w)),Object.defineProperties(Bn,{size:{get:ExpressionPropertyInterface(vn.s)},position:{get:ExpressionPropertyInterface(vn.p)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function x(J,re,Rn){function Bn(gn){return J.p.ix===gn?Bn.position:J.r.ix===gn?Bn.rotation:J.pt.ix===gn?Bn.points:J.or.ix===gn||gn==="ADBE Vector Star Outer Radius"?Bn.outerRadius:J.os.ix===gn?Bn.outerRoundness:J.ir&&(J.ir.ix===gn||gn==="ADBE Vector Star Inner Radius")?Bn.innerRadius:J.is&&J.is.ix===gn?Bn.innerRoundness:null}var w=propertyGroupFactory(Bn,Rn),vn=re.sh.ty==="tm"?re.sh.prop:re.sh;return Bn.propertyIndex=J.ix,vn.or.setGroupProperty(PropertyInterface("Outer Radius",w)),vn.os.setGroupProperty(PropertyInterface("Outer Roundness",w)),vn.pt.setGroupProperty(PropertyInterface("Points",w)),vn.p.setGroupProperty(PropertyInterface("Position",w)),vn.r.setGroupProperty(PropertyInterface("Rotation",w)),J.ir&&(vn.ir.setGroupProperty(PropertyInterface("Inner Radius",w)),vn.is.setGroupProperty(PropertyInterface("Inner Roundness",w))),Object.defineProperties(Bn,{position:{get:ExpressionPropertyInterface(vn.p)},rotation:{get:ExpressionPropertyInterface(vn.r)},points:{get:ExpressionPropertyInterface(vn.pt)},outerRadius:{get:ExpressionPropertyInterface(vn.or)},outerRoundness:{get:ExpressionPropertyInterface(vn.os)},innerRadius:{get:ExpressionPropertyInterface(vn.ir)},innerRoundness:{get:ExpressionPropertyInterface(vn.is)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function Pn(J,re,Rn){function Bn(gn){return J.p.ix===gn?Bn.position:J.r.ix===gn?Bn.roundness:J.s.ix===gn||gn==="Size"||gn==="ADBE Vector Rect Size"?Bn.size:null}var w=propertyGroupFactory(Bn,Rn),vn=re.sh.ty==="tm"?re.sh.prop:re.sh;return Bn.propertyIndex=J.ix,vn.p.setGroupProperty(PropertyInterface("Position",w)),vn.s.setGroupProperty(PropertyInterface("Size",w)),vn.r.setGroupProperty(PropertyInterface("Rotation",w)),Object.defineProperties(Bn,{position:{get:ExpressionPropertyInterface(vn.p)},roundness:{get:ExpressionPropertyInterface(vn.r)},size:{get:ExpressionPropertyInterface(vn.s)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function b(J,re,Rn){function Bn(gn){return J.r.ix===gn||gn==="Round Corners 1"?Bn.radius:null}var w=propertyGroupFactory(Bn,Rn),vn=re;return Bn.propertyIndex=J.ix,vn.rd.setGroupProperty(PropertyInterface("Radius",w)),Object.defineProperties(Bn,{radius:{get:ExpressionPropertyInterface(vn.rd)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function _(J,re,Rn){function Bn(gn){return J.c.ix===gn||gn==="Copies"?Bn.copies:J.o.ix===gn||gn==="Offset"?Bn.offset:null}var w=propertyGroupFactory(Bn,Rn),vn=re;return Bn.propertyIndex=J.ix,vn.c.setGroupProperty(PropertyInterface("Copies",w)),vn.o.setGroupProperty(PropertyInterface("Offset",w)),Object.defineProperties(Bn,{copies:{get:ExpressionPropertyInterface(vn.c)},offset:{get:ExpressionPropertyInterface(vn.o)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}return function(J,re,Rn){var Bn;function w(gn){if(typeof gn=="number")return gn=gn===void 0?1:gn,gn===0?Rn:Bn[gn-1];for(var Fn=0,zn=Bn.length;Fn<zn;){if(Bn[Fn]._name===gn)return Bn[Fn];Fn+=1}return null}function vn(){return Rn}return w.propertyGroup=propertyGroupFactory(w,vn),Bn=c(J,re,w.propertyGroup),w.numProperties=Bn.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="",p=h.getFootageData();function v(){return d="",p=h.getFootageData(),m}function m(g){if(p[g])return d=g,p=p[g],_typeof(p)==="object"?m:p;var y=g.indexOf(d);if(y!==-1){var x=parseInt(g.substr(y+d.length),10);return p=p[x],_typeof(p)==="object"?m:p}return""}return v},u=function(h){function d(p){return p==="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(v,m,g){m.x&&(g.k=!0,g.x=!0,g.initiateExpression=ExpressionManager.initiateExpression,g.effectsSequence.push(g.initiateExpression(v,m,g).bind(g)))}function u(v){return v*=this.elem.globalData.frameRate,v-=this.offsetTime,v!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<v?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(v,this._cachingAtTime),this._cachingAtTime.lastFrame=v),this._cachingAtTime.value}function f(v){var m=-.01,g=this.getValueAtTime(v),y=this.getValueAtTime(v+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(v){if(this.vel!==void 0)return this.vel;var m=-.001,g=this.getValueAtTime(v),y=this.getValueAtTime(v+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 p(v){this.propertyGroup=v}return{searchExpressions:c,getSpeedAtTime:f,getVelocityAtTime:h,getValueAtTime:u,getStaticValueAtTime:d,setGroupProperty:p}}();function addPropertyDecorator(){function c(b,_,J){if(!this.k||!this.keyframes)return this.pv;b=b?b.toLowerCase():"";var re=this.comp.renderedFrame,Rn=this.keyframes,Bn=Rn[Rn.length-1].t;if(re<=Bn)return this.pv;var w,vn;J?(_?w=Math.abs(Bn-this.elem.comp.globalData.frameRate*_):w=Math.max(0,Bn-this.elem.data.ip),vn=Bn-w):((!_||_>Rn.length-1)&&(_=Rn.length-1),vn=Rn[Rn.length-1-_].t,w=Bn-vn);var gn,Fn,zn;if(b==="pingpong"){var Un=Math.floor((re-vn)/w);if(Un%2!==0)return this.getValueAtTime((w-(re-vn)%w+vn)/this.comp.globalData.frameRate,0)}else if(b==="offset"){var Wn=this.getValueAtTime(vn/this.comp.globalData.frameRate,0),tr=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),Yn=this.getValueAtTime(((re-vn)%w+vn)/this.comp.globalData.frameRate,0),Xn=Math.floor((re-vn)/w);if(this.pv.length){for(zn=new Array(Wn.length),Fn=zn.length,gn=0;gn<Fn;gn+=1)zn[gn]=(tr[gn]-Wn[gn])*Xn+Yn[gn];return zn}return(tr-Wn)*Xn+Yn}else if(b==="continue"){var Jn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),ir=this.getValueAtTime((Bn-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(zn=new Array(Jn.length),Fn=zn.length,gn=0;gn<Fn;gn+=1)zn[gn]=Jn[gn]+(Jn[gn]-ir[gn])*((re-Bn)/this.comp.globalData.frameRate)/5e-4;return zn}return Jn+(Jn-ir)*((re-Bn)/.001)}return this.getValueAtTime(((re-vn)%w+vn)/this.comp.globalData.frameRate,0)}function u(b,_,J){if(!this.k)return this.pv;b=b?b.toLowerCase():"";var re=this.comp.renderedFrame,Rn=this.keyframes,Bn=Rn[0].t;if(re>=Bn)return this.pv;var w,vn;J?(_?w=Math.abs(this.elem.comp.globalData.frameRate*_):w=Math.max(0,this.elem.data.op-Bn),vn=Bn+w):((!_||_>Rn.length-1)&&(_=Rn.length-1),vn=Rn[_].t,w=vn-Bn);var gn,Fn,zn;if(b==="pingpong"){var Un=Math.floor((Bn-re)/w);if(Un%2===0)return this.getValueAtTime(((Bn-re)%w+Bn)/this.comp.globalData.frameRate,0)}else if(b==="offset"){var Wn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),tr=this.getValueAtTime(vn/this.comp.globalData.frameRate,0),Yn=this.getValueAtTime((w-(Bn-re)%w+Bn)/this.comp.globalData.frameRate,0),Xn=Math.floor((Bn-re)/w)+1;if(this.pv.length){for(zn=new Array(Wn.length),Fn=zn.length,gn=0;gn<Fn;gn+=1)zn[gn]=Yn[gn]-(tr[gn]-Wn[gn])*Xn;return zn}return Yn-(tr-Wn)*Xn}else if(b==="continue"){var Jn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),ir=this.getValueAtTime((Bn+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(zn=new Array(Jn.length),Fn=zn.length,gn=0;gn<Fn;gn+=1)zn[gn]=Jn[gn]+(Jn[gn]-ir[gn])*(Bn-re)/.001;return zn}return Jn+(Jn-ir)*(Bn-re)/.001}return this.getValueAtTime((w-((Bn-re)%w+Bn))/this.comp.globalData.frameRate,0)}function f(b,_){if(!this.k)return this.pv;if(b=(b||.4)*.5,_=Math.floor(_||5),_<=1)return this.pv;var J=this.comp.renderedFrame/this.comp.globalData.frameRate,re=J-b,Rn=J+b,Bn=_>1?(Rn-re)/(_-1):1,w=0,vn=0,gn;this.pv.length?gn=createTypedArray("float32",this.pv.length):gn=0;for(var Fn;w<_;){if(Fn=this.getValueAtTime(re+w*Bn),this.pv.length)for(vn=0;vn<this.pv.length;vn+=1)gn[vn]+=Fn[vn];else gn+=Fn;w+=1}if(this.pv.length)for(vn=0;vn<this.pv.length;vn+=1)gn[vn]/=_;else gn/=_;return gn}function h(b){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var _=this._transformCachingAtTime.v;if(_.cloneFromProps(this.pre.props),this.appliedTransformations<1){var J=this.a.getValueAtTime(b);_.translate(-J[0]*this.a.mult,-J[1]*this.a.mult,J[2]*this.a.mult)}if(this.appliedTransformations<2){var re=this.s.getValueAtTime(b);_.scale(re[0]*this.s.mult,re[1]*this.s.mult,re[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var Rn=this.sk.getValueAtTime(b),Bn=this.sa.getValueAtTime(b);_.skewFromAxis(-Rn*this.sk.mult,Bn*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var w=this.r.getValueAtTime(b);_.rotate(-w*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var vn=this.rz.getValueAtTime(b),gn=this.ry.getValueAtTime(b),Fn=this.rx.getValueAtTime(b),zn=this.or.getValueAtTime(b);_.rotateZ(-vn*this.rz.mult).rotateY(gn*this.ry.mult).rotateX(Fn*this.rx.mult).rotateZ(-zn[2]*this.or.mult).rotateY(zn[1]*this.or.mult).rotateX(zn[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var Un=this.px.getValueAtTime(b),Wn=this.py.getValueAtTime(b);if(this.data.p.z){var tr=this.pz.getValueAtTime(b);_.translate(Un*this.px.mult,Wn*this.py.mult,-tr*this.pz.mult)}else _.translate(Un*this.px.mult,Wn*this.py.mult,0)}else{var Yn=this.p.getValueAtTime(b);_.translate(Yn[0]*this.p.mult,Yn[1]*this.p.mult,-Yn[2]*this.p.mult)}return _}function d(){return this.v.clone(new Matrix)}var p=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(b,_,J){var re=p(b,_,J);return re.dynamicProperties.length?re.getValueAtTime=h.bind(re):re.getValueAtTime=d.bind(re),re.setGroupProperty=expressionHelpers.setGroupProperty,re};var v=PropertyFactory.getProp;PropertyFactory.getProp=function(b,_,J,re,Rn){var Bn=v(b,_,J,re,Rn);Bn.kf?Bn.getValueAtTime=expressionHelpers.getValueAtTime.bind(Bn):Bn.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(Bn),Bn.setGroupProperty=expressionHelpers.setGroupProperty,Bn.loopOut=c,Bn.loopIn=u,Bn.smooth=f,Bn.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(Bn),Bn.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(Bn),Bn.numKeys=_.a===1?_.k.length:0,Bn.propertyIndex=_.ix;var w=0;return J!==0&&(w=createTypedArray("float32",_.a===1?_.k[0].s.length:_.k.length)),Bn._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:w},expressionHelpers.searchExpressions(b,_,Bn),Bn.k&&Rn.addDynamicProperty(Bn),Bn};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(_,J){this.k&&this.getValue();var re=this.v;J!==void 0&&(re=this.getValueAtTime(J,0));var Rn,Bn=re._length,w=re[_],vn=re.v,gn=createSizedArray(Bn);for(Rn=0;Rn<Bn;Rn+=1)_==="i"||_==="o"?gn[Rn]=[w[Rn][0]-vn[Rn][0],w[Rn][1]-vn[Rn][1]]:gn[Rn]=[w[Rn][0],w[Rn][1]];return gn},points:function(_){return this.vertices("v",_)},inTangents:function(_){return this.vertices("i",_)},outTangents:function(_){return this.vertices("o",_)},isClosed:function(){return this.v.c},pointOnPath:function(_,J){var re=this.v;J!==void 0&&(re=this.getValueAtTime(J,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(re));for(var Rn=this._segmentsLength,Bn=Rn.lengths,w=Rn.totalLength*_,vn=0,gn=Bn.length,Fn=0,zn;vn<gn;){if(Fn+Bn[vn].addedLength>w){var Un=vn,Wn=re.c&&vn===gn-1?0:vn+1,tr=(w-Fn)/Bn[vn].addedLength;zn=bez.getPointInSegment(re.v[Un],re.v[Wn],re.o[Un],re.i[Wn],tr,Bn[vn]);break}else Fn+=Bn[vn].addedLength;vn+=1}return zn||(zn=re.c?[re.v[0][0],re.v[0][1]]:[re.v[re._length-1][0],re.v[re._length-1][1]]),zn},vectorOnPath:function(_,J,re){_==1?_=this.v.c:_==0&&(_=.999);var Rn=this.pointOnPath(_,J),Bn=this.pointOnPath(_+.001,J),w=Bn[0]-Rn[0],vn=Bn[1]-Rn[1],gn=Math.sqrt(Math.pow(w,2)+Math.pow(vn,2));if(gn===0)return[0,0];var Fn=re==="tangent"?[w/gn,vn/gn]:[-vn/gn,w/gn];return Fn},tangentOnPath:function(_,J){return this.vectorOnPath(_,J,"tangent")},normalOnPath:function(_,J){return this.vectorOnPath(_,J,"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,_,J,re,Rn){var Bn=Pn(b,_,J,re,Rn);return Bn.propertyIndex=_.ix,Bn.lock=!1,J===3?expressionHelpers.searchExpressions(b,_.pt,Bn):J===4&&expressionHelpers.searchExpressions(b,_.ks,Bn),Bn.k&&b.addDynamicProperty(Bn),Bn}}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,p;for(p=0;p<f.length;p+=1)d=createNS("feMergeNode"),d.setAttribute("in",f[p]),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 p=createNS("feColorMatrix");p.setAttribute("type","matrix"),p.setAttribute("color-interpolation-filters","linearRGB"),p.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=p,p.setAttribute("result",h+"_tint_1"),c.appendChild(p),p=createNS("feColorMatrix"),p.setAttribute("type","matrix"),p.setAttribute("color-interpolation-filters","sRGB"),p.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),p.setAttribute("result",h+"_tint_2"),c.appendChild(p),this.matrixFilter=p;var v=this.createMergeNode(h,[d,h+"_tint_1",h+"_tint_2"]);c.appendChild(v)}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 p=createNS("mask"),v=createElementID();p.setAttribute("id",v),p.setAttribute("mask-type","alpha"),p.appendChild(f),this.elem.globalData.defs.appendChild(p);var m=createNS("g");for(m.setAttribute("mask","url("+getLocationHref()+"#"+v+")");c[0];)m.appendChild(c[0]);this.elem.layerElement.appendChild(m),this.masker=p,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 p;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var v=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();p="0 0 0 "+g*v+" ";var y=g*(m-v),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)p+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";p+="0 "+g*10+" 0 0"}else p="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;d.setAttribute("stroke-dasharray",p)}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 _=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(_[0]*255)+","+bmFloor(_[1]*255)+","+bmFloor(_[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 p=createNS("feComponentTransfer");p.setAttribute("color-interpolation-filters","sRGB"),p.setAttribute("result",h),this.matrixFilter=p;var v=createNS("feFuncR");v.setAttribute("type","table"),p.appendChild(v),this.feFuncR=v;var m=createNS("feFuncG");m.setAttribute("type","table"),p.appendChild(m),this.feFuncG=m;var g=createNS("feFuncB");g.setAttribute("type","table"),p.appendChild(g),this.feFuncB=g,c.appendChild(p)}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],p=h[1]+" "+f[1]+" "+u[1],v=h[2]+" "+f[2]+" "+u[2];this.feFuncR.setAttribute("tableValues",d),this.feFuncG.setAttribute("tableValues",p),this.feFuncB.setAttribute("tableValues",v)}};function SVGProLevelsFilter(c,u,f,h){this.filterManager=u;var d=this.filterManager.effectElements,p=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",p)),(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",p)),(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",p)),(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",p)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(p.setAttribute("color-interpolation-filters","sRGB"),c.appendChild(p)),(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)&&(p=createNS("feComponentTransfer"),p.setAttribute("color-interpolation-filters","sRGB"),p.setAttribute("result",h),c.appendChild(p),this.feFuncRComposed=this.createFeFunc("feFuncR",p),this.feFuncGComposed=this.createFeFunc("feFuncG",p),this.feFuncBComposed=this.createFeFunc("feFuncB",p))}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 p=0,v=256,m,g=Math.min(c,u),y=Math.max(c,u),x=Array.call(null,{length:v}),Pn,b=0,_=d-h,J=u-c;p<=256;)m=p/256,m<=g?Pn=J<0?d:h:m>=y?Pn=J<0?h:d:Pn=h+_*Math.pow((m-c)/J,1/f),x[b]=Pn,b+=1,p+=256/(v-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 p=u.container.globalData.renderConfig.filterSize,v=u.data.fs||p;c.setAttribute("x",v.x||p.x),c.setAttribute("y",v.y||p.y),c.setAttribute("width",v.width||p.width),c.setAttribute("height",v.height||p.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),p=f*Math.sin(h);this.feOffset.setAttribute("dx",d),this.feOffset.setAttribute("dy",p)}}};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,p=h.length;d<p&&h[d]!==c.layerElement;)d+=1;var v;d<=p-2&&(v=h[d+1]);var m=createNS("use");m.setAttribute("href","#"+u),v?f.insertBefore(m,v):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 p=createNS("symbol");p.setAttribute("id",f),this.replaceInParent(u,f),p.appendChild(u.layerElement),d.appendChild(p);var v=createNS("use");v.setAttribute("href","#"+f),h.appendChild(v),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,p=h==2?0:f;this.feGaussianBlur.setAttribute("stdDeviation",d+" "+p);var v=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",v)}};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,p=u[3].p.v,v=d?p: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(v*.01,p*.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 J={},{actionType:re,linkPage:Rn,href:Bn}=c,{requestParams:w={}}=window.config;return vue.unref(h)!=="design"&&re==="close"&&c.isDrillShow&&!w.drillFlag&&(J.display="none"),(re==="link"&&(Rn||Bn)||!re&&(Rn||Bn)||re==="close")&&(J.cursor="pointer"),{...vue.unref(u),...J}}),{getGlobalModel:p,setGlobalModel:v,getRecordValueByKeyName:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:J=>{},setGlobalModel:(J,re)=>{},getRecordValueByKeyName:J=>{}}),{setTemplateData:g}=vue.inject("templateOperate",{setTemplateData:J=>{}}),x=useEmitEvent(c)("click",()=>{const J=p(c.id);if(v(c.id,{...J,type:c.type,RECORD:c.data||{}}),setTimeout(()=>{v(c.id,{...J,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(),_=()=>{const{directory:J}=c.animationSource;c.isAnimation&&Pn.value&&J&&(b.value=lottie.loadAnimation({name:`${c.keyName}-lotTie`,container:Pn.value,renderer:"svg",loop:!0,autoplay:!0,path:useImagePath(J)+"data.json"}),vue.unref(b).setSpeed(1))};return vue.watch(()=>[c.isAnimation,c.animationSource],([J])=>{J&&vue.nextTick(()=>{_()})},{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,p){var v;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?!((v=c.animationSource)!=null&&v.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:p=>{}}),d=vue.computed(()=>{var v;let p=hn(c.link);if(c.linkType==="erd"&&p!=null){let m=vue.unref(f);m[m.length-1]==="/"?m+="erdReport":m+="/erdReport",p=`${ERD_URL||m}?_t=0&uid=${p}`}if((v=c.transParams)!=null&&v.length){p.includes("?")?p+="&":p+="?";const m=[];for(const g of c.transParams){const y=h(String(g.fieldName));m.push(`${g.keyName}=${y}`)}p+=m.join("&")}return p});return{style:u,myLink:d}}}),Iframe_vue_vue_type_style_index_0_scoped_c0393b8d_lang="",_hoisted_1$2=["src"];function _sfc_render$5(c,u,f,h,d,p){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-c0393b8d"]]),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:"",isTableFill:!1,conditionList:[]},tableComponentProps=transformToComponentProps(tableProps),tableEvents=["click","refreshData","resetRecord","exportTableData"],topArrow="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAYCAYAAADOMhxqAAAAAXNSR0IArs4c6QAAAK1JREFUOE/tktENgjAURe+FBRiBCdCOwAYOoIiTqBs4Agn+OwJuUHECRugC5ZkUUItNXIB+3ndOmt5XInCkLU6AGK7qy3zMeSB6u0HMm8ut5FTX+zfjCaLLFHGvAUlGyMDGiqrqJuktjHADSOrfyg42yifJCaLLBFHfgLIOvQnCB3onmUFoiwqUfRD+hBWz+kDXCOX4Bx7Glufflp478VrJao9ZBLeTpSWAy9cAXto7eMUv8Bo2AAAAAElFTkSuQmCC",downArrow="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAYCAYAAADOMhxqAAAAAXNSR0IArs4c6QAAAMBJREFUOE/tlE0OwVAURs8tcx0RRpWQGLIDXYIViB3YgdpJl2AHXQJzJJ0hBjoy0fbSl5C2ohvQN3rf994Z3F+hdAYX1bx16IjkdUFkDzUA1FkC/rM1BlddkeKVB+mH9kyWhhf1FeZVkAj+vi0LAzg3tZsPApTxD2gX33HDvkSfOoxO6iQWgYKThxTCJMUNuxJmfqFwGRQ32KLYBhKiOGHy/vwFmCVw0ikWQXbXhNmxJ5vKrWGgsy4RWq/hWZdjegLPIXik13+8RAAAAABJRU5ErkJggg==",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,theme:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",height:null,theme:"light"}),p=vue.ref(!1),v=vue.computed(()=>vue.unref(f)!=="design"&&c.isAutoScroll),m=vue.ref({}),g=vue.ref(!1),y=vue.computed(()=>{const xr=lodashEs.cloneDeep(c.columns);return c.isUseSeq&&xr.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&xr.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),xr}),x=vue.ref(),Pn=vue.ref(!1),b=usePickComponentStyle(c),_=vue.ref([]),J=vue.computed(()=>{const{height:xr}=c;return typeof xr=="string"?xr:xr.suffix==="px"?xr.value+"px":xr.suffix==="%"?parseFloat(vue.unref(h))*(xr.value/100)+"px":"0"}),re=vue.computed(()=>c.scrollX),Rn=vue.ref(parseFloat(J.value)),Bn=()=>{let xr=0;switch(c.size){case"small":xr=50;break;case"middle":xr=53;break;default:xr=65;break}return xr},w=vue.ref(0),vn=vue.ref(""),gn=vue.ref(0);vue.watchEffect(()=>{var xr;(xr=_.value)!=null&&xr.length&&J.value&&setTimeout(()=>{let Cr=parseFloat(J.value),Ar=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Ir=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const Fr=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`);let Dr=0;if(Ir&&(Cr-=(Ir==null?void 0:Ir.clientHeight)||0),Fr&&c.isSummaryFixed&&(Dr=(Fr==null?void 0:Fr.clientHeight)||0,Cr-=Dr),c.paginationShow&&!c.isAutoScroll){let Pr=0;Pr=Bn(),Pr&&(Cr-=Pr)}(Ar==null?void 0:Ar.clientHeight)>Cr?Rn.value=Cr:Rn.value=0,vue.nextTick(()=>{if(Dr){const Pr=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`),Br=(Pr==null?void 0:Pr.clientHeight)||0;Dr!==Br&&vue.unref(Rn)&&(Rn.value=Cr+Dr-Br)}c.isAutoScroll&&p.value&&setTimeout(()=>{var Nr;const Pr=document.querySelector(`#ecanTable-${c.id} .ant-table-body`);Ar=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Ir=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const Br=Pr||Ar;w.value=(Br==null?void 0:Br.clientHeight)||0,gn.value=(Ir==null?void 0:Ir.clientHeight)||0,m.value={height:((Ar==null?void 0:Ar.clientHeight)||0)+"px"};const Vr=document.querySelector(`#ecanTable-${c.id} .ant-table-body > table`);if(vn.value=(Nr=document.querySelector(`#ecanTable-${c.id} .ant-table`))==null?void 0:Nr.className,Vr){const zr=Vr.cloneNode(!0);Vr.style.visibility="hidden",setTimeout(()=>{Br==null||Br.setAttribute("id","hiddenTableBody")},0);const $r=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap`);if($r!=null&&$r.length){for(const Zr of $r)Zr.append(zr.cloneNode(!0));const qr=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap .ant-table-cell`);if(qr!=null&&qr.length)for(const Zr of qr)Fn(Zr);const Yr=document.querySelector(`#ecanTable-${c.id} .vue3-marquee`);Yr&&Yr.addEventListener("scroll",Zr=>{var Xr;document.querySelector(`#ecanTable-${c.id} .ant-table-header`).scrollLeft=((Xr=Zr==null?void 0:Zr.target)==null?void 0:Xr.scrollLeft)||0})}}},0)})},0)});function Fn(xr){xr.addEventListener("click",Cr=>{const Ir=zn(Cr.target).getAttribute("dix");if(Ir){const Fr=document.querySelector(`#ecanTable-${c.id} #hiddenTableBody td[dix="${Ir}"]`);Fr&&Fr.click()}})}function zn(xr){return xr.className.includes("ant-table-cell")?xr:zn(xr.parentElement)}const Un=vue.ref([]),Wn=vue.ref([]),tr=vue.ref([]),Yn=vue.ref([]),Xn=vue.ref(0),Jn=vue.ref(1),ir=vue.ref(c.paginationPageSize||10),sr=vue.reactive([]),Zn=(xr,Cr)=>{let Ar="";return xr.forEach((Ir,Fr)=>{const{value:Dr,rule:Pr}=Ir;Ir.conditions?Ar+=`(${Zn(Ir.conditions,Ir.join)})`:Dr&&Pr&&(Ar+=`value ${Pr} '${Dr}'`),Ar+=`${Fr===xr.length-1?"":Cr?" "+Cr+" ":""}`}),Ar},Gn=(xr=[])=>{var Cr,Ar;if(Array.isArray(xr)&&xr.length>0){let Ir=xr.length;const Fr=c.columnsFixedNum;if(c.dataType==="indicator"&&((Cr=vue.unref(y))!=null&&Cr.length)&&!vue.unref(y).find(Dr=>{var Pr;return(Pr=Dr.children)==null?void 0:Pr.length})){const{graphicConfig:{indicators:Dr=[]}}=c;xr.forEach((Pr,Br)=>{if(vue.unref(y)[Br])for(const zr in vue.unref(y)[Br])["dataIndex","title"].includes(zr)||(Pr[zr]=vue.unref(y)[Br][zr]);const Vr=Dr.find(zr=>zr.label===Pr.title),{showLabel:Nr=""}=Vr||{};Nr&&(Pr.title=Nr)})}for(let Dr=Ir-1;Dr>=0;Dr--)(Ar=xr[Dr])!=null&&Ar.isHidden&&xr.splice(Dr,1);Ir=xr.length;for(let Dr=0;Dr<Ir;Dr++){const Pr=xr[Dr];if(Dr<Fr?Pr.fixed="left":Pr.fixed=!1,c.isSortByFront&&Pr.sorter){const ti=Pr.dataIndex;Pr.sorter=(ii,oi)=>ii[ti]-oi[ti]}const{cellAlign:Br="center",cellColor:Vr,dataIndex:Nr,title:zr,tableFilter:$r,headerCellAlign:qr,headerCellColor:Yr,overflow:Zr,conditions:Xr}=Pr;$r&&(sr.push(Nr),Pr.filterOptionsInputValue="",Pr.filterCheckboxGroupValue=[],Pr.customFilterDropdown=!0,Pr.onFilter=(ti,ii)=>ii[Nr].toString().toLowerCase().includes(ti.toLowerCase())),Xr&&(Pr.conditionCode=Zn(Xr)),Pr.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:c.headerFontSize,fontWeight:c.headerFontWeight,textAlign:qr||"center",color:Yr||c.headerFontColor,borderBottomColor:c.borderColor,backgroundColor:c.headerBackgroundColor}}),Pr.customCell=(ti,ii,oi)=>({style:{textAlign:Br,color:Kn(oi)?c.linkTextColor:Vr||c.cellFontColor,backgroundColor:c.cellBackgroundColor,borderBottomColor:c.borderColor},class:{highlight:vue.unref(Mr)===ii&&c.clickHighlight,linkText:Kn(oi)},dix:oi.dataIndex+"_"+ii,onClick:br("click",()=>{const Ti=c.id,Ii=Sr(Ti);ti={dataIndex:Nr,title:zr,...ti},gr(Ti,{...Ii,type:c.type,RECORD:ti}),Mr.value=ii,setTimeout(()=>{if(!c.linkPage&&!c.href)return;let Pi=!1;(Kn(oi)||c.clickTarget!=="cell")&&(Pi=!0),Pi&&handleJumpLink(c,{pageMode:vue.unref(f),getRecordValueByKeyName:kr})},0)})}),Zr==="ellipsis"?Pr.ellipsis=!0:Pr.ellipsis=!1,Array.isArray(Pr.children)&&Gn(Pr.children)}}};function Kn(xr){let Cr=!1;return c.clickTarget==="cell"&&c.clickTargetColumns.includes(xr.dataIndex)&&(Cr=!0),Cr}const Vn=(xr=[])=>{var Ar;let Cr=lodashEs.cloneDeep(xr);return(Ar=vue.unref(Yn))!=null&&Ar.length&&(Cr=lodashEs.cloneDeep(vue.unref(Yn))),c.isUseSeq&&Cr.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&Cr.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),Gn(Cr),Cr};vue.watch(ir,()=>{Jn.value=1,Lr(!1)}),vue.watch(x,xr=>{Pn.value=!!xr}),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],()=>{Un.value=Vn(lodashEs.cloneDeep(c.columns))},{immediate:!0,deep:!0}),vue.watch(()=>[c.data,c.dataType],([xr,Cr])=>{Cr==="static"&&(Wn.value=xr)},{immediate:!0});const qn=vue.ref({}),nr=xr=>{if(Array.isArray(xr)){const Cr=xr.length,Ar=sr,Ir=Ar.length,Fr={};for(let Pr=0;Pr<Cr;Pr++){const Br=xr[Pr];for(let Vr=0;Vr<Ir;Vr++){const Nr=Ar[Vr];if(Fr[Nr])Fr[Nr].add(Br[Nr]);else{const zr=new Set;zr.add(Br[Nr]),Fr[Nr]=zr}}}const Dr={};for(const Pr in Fr)if(Object.prototype.hasOwnProperty.call(Fr,Pr)){const Br=Fr[Pr],Vr=Array.from(Br);Dr[Pr]=Vr.map(Nr=>({label:Nr,value:Nr}))}qn.value=Dr}};vue.watch(()=>[c.isReverse,Un.value,Wn.value],()=>{const xr=vue.unref(Un),Cr=vue.unref(Wn);if(nr(Cr),c.isReverse){const{columns:Ar,dataSource:Ir}=Hn(lodashEs.cloneDeep(xr),lodashEs.cloneDeep(Cr));tr.value=Ar,_.value=Ir.map(Fr=>({key:nanoid(6),...Fr}))}else tr.value=xr,_.value=Cr.map(Ar=>({key:nanoid(6),...Ar}))},{immediate:!0});const Hn=(xr,Cr)=>{const Ar=xr[0],Ir=[{title:Ar.title,dataIndex:"col0",key:"col0",align:"center"}];for(let Dr=0;Dr<Cr.length;Dr++){const Pr=Cr[Dr],Br="col"+(Dr+1);Ir.push({title:Pr[Ar.dataIndex],dataIndex:Br,key:Br,align:"center"})}const Fr=[];for(let Dr=1;Dr<xr.length;Dr++){const Pr=xr[Dr],Br={col0:Pr.title};for(let Vr=0;Vr<Cr.length;Vr++){const Nr=Cr[Vr];Br[`col${Vr+1}`]=Nr[Pr.dataIndex]}Fr.push(Br)}return{columns:Ir,dataSource:Fr}},lr=vue.ref(""),cr=xr=>{var Ir;const{rows:Cr=[],total:Ar=0}=((Ir=xr==null?void 0:xr.data)==null?void 0:Ir.data)||{};if(Xn.value=Ar,Array.isArray(Cr)&&(Wn.value=Cr),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:Fr=[]}=c,Dr=Fr.find(Pr=>Pr.key==="dataSqlId");if((Dr==null?void 0:Dr.value)==="xt_jxzebg"){const Pr=Cr.filter(Br=>!Br.绩效总额).map(Br=>Br.ORG_NAME);Pr!=null&&Pr.length&&vue.nextTick(()=>{antDesignVue.notification.warning({message:"提示",description:`当前时段${Pr.join("、")}绩效数据为空`,duration:3})})}}p.value=!0},Qn=useRequestData(c),ar=async(xr=!0,Cr={})=>{try{xr&&(g.value=!0),vue.unref(lr)&&(Cr.orderCondition=vue.unref(lr)),c.paginationShow&&(Cr={pageNum:vue.unref(Jn),pageSize:vue.unref(ir)||"10",layer:"1",...Cr});const Ar=await Qn(Cr);cr(Ar)}catch(Ar){console.error(Ar)}finally{g.value=!1}},er=({current:xr},Cr,Ar)=>{if(Jn.value=xr,Ar&&Object.keys(Ar).length>0){const{field:Ir,order:Fr}=Ar,Pr={ascend:"asc",descend:"desc"}[Fr];Ir!=null&&Pr!=null&&Pr?lr.value=Ir+" "+Pr:Pr||(lr.value="")}c.isSortByFront||Lr(!1)},ur=vue.computed(()=>{const xr=c.simple,Cr=[c.paginationPosition],Ar={};return c.isShowTotal&&(Ar.showTotal=Ir=>`共 ${Ir} 条数据`),c.paginationShow&&{simple:xr,position:Cr,total:vue.unref(Xn),current:vue.unref(Jn),pageSize:vue.unref(ir)||"10",showSizeChanger:!1,size:"large",...Ar}}),hr=xr=>+xr==1?"是":+xr==0?"否":xr,or=(xr,Cr)=>{const{format:Ar,retentiondigit:Ir,customFormatter:Fr,defaultVal:Dr}=Cr;let Pr="";if(Ar==null||Ar==="")Pr=xr;else{const Br={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,boolean:hr,decimals:formatDecimals,custom:formatCustom};Br[Ar]||(Pr=""),Ar==="decimals"?Pr=Br[Ar](xr,Ir)||"":Ar==="custom"?Pr=Br[Ar](xr,Fr)||"":Pr=Br[Ar](xr)||""}return Pr||(Pr=Dr),Pr},mr=xr=>xr==="contrast"?"upDown":"",dr=xr=>{const{text:Cr,format:Ar,declineColor:Ir="#39cf93",increaseColor:Fr="#ff512e"}=xr,Dr={fontSize:c.fontSize};if(Qr(xr.dataIndex))return Dr.display="flex",Dr.justifyContent="center",Dr.alignItems="center",Dr;if(Ar==="contrast"){const Pr=parseFloat(Cr+"");return Pr>=0?Dr.color=Fr:Pr<0&&(Dr.color=Ir),Dr}else return{}},fr=vue.computed(()=>{const{fontSize:xr}=c;return{width:xr,height:xr,textIndent:`-${parseFloat(xr)*2}px`,overflow:"hidden"}}),vr=xr=>{const{text:Cr,declineColor:Ar="#39cf93",increaseColor:Ir="#ff512e"}=xr,{fontSize:Fr}=c,Dr=parseFloat(Cr+""),Pr={width:Fr,verticalAlign:"unset"};return Dr>=0?Pr.filter=`drop-shadow(${Ir||"#ff512e"} ${Fr} -1px)`:Dr<0&&(Pr.filter=`drop-shadow(${Ar||"#39cf93"} ${Fr} -1px)`),Pr},pr=xr=>{const Cr=parseFloat(xr+"");if(Cr>=0)return goUp;if(Cr<0)return goDown},yr=(xr,Cr,Ar,Ir)=>{var Br,Vr,Nr;const Fr="#39cf93",Dr="#ff512e",Pr=c.conditionList.find(zr=>zr.dataIndex===xr.dataIndex);if((Br=Pr==null?void 0:Pr.conditions)!=null&&Br.length){const{fontSize:zr}=c,$r={style:{width:zr,verticalAlign:"middle"},src:""};for(const qr of Pr.conditions){const Yr=((Vr=qr==null?void 0:qr.property)==null?void 0:Vr.icon)||"";let Zr=((Nr=qr==null?void 0:qr.property)==null?void 0:Nr.iconColor)||"";if(Yr){let Xr=!1;if(qr.rule&&qr.value){const ti=`${qr.field} ${qr.rule} '${qr.value}'`;Xr=pn(ti,{...Ar,value:Cr})}else Xr=!0;Xr&&(Yr==="increase"?$r.src=topArrow:Yr==="decline"&&($r.src=downArrow),Zr||(Yr==="increase"?Zr=Dr:Yr==="decline"&&(Zr=Fr)),$r.style.filter=`drop-shadow(${Zr} ${zr} -1px)`)}}if(Ir===1)return $r.style;if(Ir===2)return $r.src}else return""},br=useEmitEvent(c),{getGlobalModel:Sr,setGlobalModel:gr,getRecordValueByKeyName:kr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:xr=>{},setGlobalModel:(xr,Cr)=>{},getRecordValueByKeyName:xr=>{}});gr(c.id,{type:c.type,RECORD:""});const wr=(xr=[],Cr=[])=>{let Ar=xr.map(Ir=>({title:Ir,dataIndex:Ir,key:Ir}));vue.unref(y).find(Ir=>{var Fr;return(Fr=Ir.children)==null?void 0:Fr.length})&&(Ar=lodashEs.cloneDeep(vue.unref(y))),Yn.value=lodashEs.cloneDeep(Ar),Un.value=Vn(Ar),Wn.value=Cr,p.value=!0},Er=xr=>{var Cr,Ar,Ir,Fr;wr((Ar=(Cr=xr==null?void 0:xr.data)==null?void 0:Cr.data)==null?void 0:Ar.columns,(Fr=(Ir=xr==null?void 0:xr.data)==null?void 0:Ir.data)==null?void 0:Fr.rows)},Tr=useIndicatorData(c,Er),_r=async(xr=!0)=>{try{xr&&(g.value=!0);const Cr=vue.unref(lr).split(" "),Ar={};c.isSortByFront||(Ar.sort={order:Cr[1],field:Cr[0]});const Ir=await Tr(Ar);Er(Ir)}catch(Cr){console.error(Cr)}finally{g.value=!1}},Mr=vue.ref(-1),{loadedData:Or}=vue.inject(LOADED_DATA,{loadedData:{}}),Rr=vue.ref(!1);vue.watch(Or,xr=>{if(c.dataType==="indicator"){const Cr=getFixedValueDatas(c.graphicConfig);Cr!=null&&Cr.length&&(!vue.unref(Rr)&&canRequestIndicator(c.graphicConfig,xr)?(Rr.value=!0,Lr()):canRequestIndicator(c.graphicConfig,xr)||(Rr.value=!1))}},{deep:!0});const Lr=(xr=!0)=>{switch(c.dataType){case"request":ar(xr);break;case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(Or))&&_r(xr);break}},jr=()=>{const xr=c.id,Cr=Sr(xr);gr(xr,{...Cr,type:c.type,RECORD:""})},Gr=vue.computed(()=>{const xr=vue.unref(tr);let Cr=0;const{subTotalColumn:Ar,subTotalName:Ir}=c;Ar&&(Cr=xr.findIndex(Vr=>Vr.dataIndex===Ar),Cr<0&&(Cr=0));const Fr=[];let Dr=0;for(let Vr=0;Vr<xr.length;Vr++){const Nr=xr[Vr],{isCalcTotal:zr}=Nr;Vr===Cr?Fr.push({...Nr,total:Ir}):zr?(Fr.push({...Nr,index:Vr,total:0}),Dr++):Fr.push({...Nr})}if(Dr===0)return[];const Pr=vue.unref(_),Br=Hr(Fr);for(let Vr=0;Vr<Br.length;Vr++){const Nr=Br[Vr];let zr=0;const{isCalcTotal:$r,dataIndex:qr}=Nr;if($r===!0){for(let Yr=0;Yr<Pr.length;Yr++){const Xr=+Pr[Yr][qr];isNaN(Xr)||(zr=new big_js.Big(zr).add(Xr).toNumber())}Nr.total=zr}}return Br});function Hr(xr){var Ar;const Cr=[];for(const Ir of xr)(Ar=Ir.children)!=null&&Ar.length?Cr.push(...Hr(Ir.children)):Cr.push(Ir);return Cr}const{setRequest:Wr}=vue.inject(REQUEST_MODEL,{setRequest:xr=>{}});typeof Wr=="function"&&Wr({id:c.id,requestFn:Lr,sortNum:c.requestSort}),u({refreshData:Lr});const Kr=(xr="",Cr)=>hn(xr,Cr),ei=xr=>{if(xr!=="event")return{self:"_self",blank:"_blank"}[xr]},ni=(xr,Cr="")=>{xr==="event"&&window.parent.postMessage({type:"openPage",url:Cr},"*")},ri=(xr,Cr)=>{xr(Cr.filterCheckboxGroupValue)},mi=(xr,Cr)=>{xr({confirm:!0}),Cr.filterOptionsInputValue="",Cr.filterCheckboxGroupValue=[]},gi=()=>{},li=xr=>{const Cr=xr.dataIndex;if(typeof Cr=="string"){let Ar=vue.unref(qn)[Cr];const Ir=vue.unref(xr.filterOptionsInputValue).trim();return Array.isArray(Ar)?(Ar=Ar.filter(Fr=>typeof Fr.label=="string"?Fr.label.toLowerCase().includes(Ir.toLowerCase()):!0),Ar):[]}return[]},ci=async()=>{var Nr,zr;const xr="EXPORT_KEY";antDesignVue.message.loading({key:xr,content:"正在导出...",duration:0});let Cr=[];if(c.dataType==="static")Cr=c.data;else if(c.dataType==="request"){const $r={layer:"1"};vue.unref(lr)&&($r.orderCondition=vue.unref(lr));const qr=await Qn($r);Cr=((zr=(Nr=qr==null?void 0:qr.data)==null?void 0:Nr.data)==null?void 0:zr.rows)||{}}const Ar=vue.unref(tr),Ir=[],Fr=[];Ar==null||Ar.forEach($r=>{Ir.push($r.dataIndex),Fr.push($r.title)});const Dr=Cr.map($r=>lodashEs.pick($r,Ir)),Pr=xlsx.utils.book_new(),Br=xlsx.utils.aoa_to_sheet([Fr]),Vr=xlsx.utils.sheet_add_json(Br,Dr,{skipHeader:!0,origin:"A2"});xlsx.utils.book_append_sheet(Pr,Vr,"sheet"),xlsx.writeFile(Pr,"表格数据.xlsx"),antDesignVue.message.success({key:xr,content:"导出成功"})},ui=(xr,Cr=2)=>{const Ar=+xr*100;return isNaN(Ar)||Ar<=0?0:Ar>=100?100:Ar.toFixed(Cr)};useOnEvent(c,{resetRecord:jr,refreshData:Lr,exportTableData:ci});const yi=(xr,Cr)=>{let Ar=null;return c.stripedShow&&(Ar=Cr%2===1?"table-striped":null),Ar},fi=vue.computed(()=>{var Ar;let xr=0;const{isTableFill:Cr}=c;if(Cr&&J.value){let Ir=0;c.paginationShow&&((Ar=vue.unref(_))!=null&&Ar.length)&&(Ir=Bn()),xr=parseFloat(vue.unref(J))-Ir}return xr?xr+"px":"100%"}),bi=vue.computed(()=>{const xr=vue.unref(d)==="darkBlue";let Cr="";return c.isTableFill&&(Cr=c.cellBackgroundColor,Cr||(si.value==="transparent"?xr?Cr="#071655":Cr="transparent":xr?Cr=si.value:Cr="transparent")),Cr}),xi=vue.computed(()=>{let xr="#071655";return c.headerBackgroundColor&&(xr="transparent"),xr}),si=vue.computed(()=>{let xr="#071655";return(c.cellBackgroundColor||c.stripedShow&&c.stripedColor)&&(xr="transparent"),xr}),hi=vue.computed(()=>parseFloat(c.fontSize)+16),Si=vue.computed(()=>{let xr="";const{paginationColor:Cr,paginationBgColor:Ar,activePaginationColor:Ir,activePaginationBgColor:Fr,hoverBackgroundColor:Dr}=c;return Cr&&(xr+="p-color "),Ar&&(xr+="p-bg-color "),Ir&&(xr+="active-p-color "),Fr&&(xr+="active-p-bg-color "),Dr&&(xr+="hover-bg-color "),xr}),di=(xr,Cr)=>{if(Qr(xr.dataIndex))return!1;const{conditionCode:Ar}=xr;return pn(Ar,{value:Cr})},pi=(xr,Cr,Ar)=>{var Vr,Nr;const{overflow:Ir,conditionCode:Fr,attribute:Dr,dataIndex:Pr}=xr,Br={};if(Ir==="ellipsis"&&(Br.overflow="hidden",Br.textOverflow="ellipsis"),Fr&&(Dr!=null&&Dr.color)&&di(xr,Cr)&&(Br.color=Dr.color),Dr!=null&&Dr.icon&&(xr==null?void 0:xr.cellAlign)==="right"&&(Br.display="flex",Br.alignItems="center",Br.justifyContent="flex-end"),Qr(Pr)){const zr=c.conditionList.find($r=>$r.dataIndex===Pr);if((Vr=zr==null?void 0:zr.conditions)!=null&&Vr.length){for(const $r of zr.conditions)if((Nr=$r==null?void 0:$r.property)!=null&&Nr.color){let qr=!1;if($r.rule&&$r.value){const Yr=`${$r.field} ${$r.rule} '${$r.value}'`;qr=pn(Yr,{...Ar,value:Cr})}else qr=!0;qr&&(Br.color=$r.property.color)}}else delete Br.color}return Br},Ci=xr=>{const{attribute:Cr}=xr;let Ar="";return Cr!=null&&Cr.icon&&(Ar=useImagePath(Cr.icon)),Ar},vi=xr=>{let Cr={};return(xr==null?void 0:xr.cellAlign)==="right"?Cr={marginRight:"5px"}:Cr={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(c.fontSize)+6+"px",...Cr}},Jr=(xr,Cr)=>xr||xr===0?xr:Cr==null?void 0:Cr.defaultVal;function Qr(xr){var Ar;const Cr=c.conditionList.find(Ir=>Ir.dataIndex===xr);return!!((Ar=Cr==null?void 0:Cr.conditions)!=null&&Ar.length)}return{x:re,y:Rn,style:b,pagination:ur,formatFn:or,contrastClass:mr,tableChange:er,summaryList:Gr,loading:g,onTouchHrefEvent:ni,handleHref:Kr,handleHrefTarget:ei,useRowIndex:Mr,tableColumns:tr,tableDataSource:_,useFilterOptions:li,useSetSelectedKeys:ri,onResetFilter:mi,onSearchFilterOptions:gi,exportTableData:ci,handleProgressText:ui,pageSizeVisible:Pn,pageSize:ir,tableRef:x,rowClassName:yi,tableHeight:fi,tableBgColor:bi,tableHeaderBgColor:xi,tableBodyBgColor:si,getChgStyle:dr,chgBoxStyle:fr,getChgBoxImgStyle:vr,getChgBoxImgSrc:pr,seqIcon1,seqIcon2,seqIcon3,iconSize:hi,containerClass:Si,getCellStyle:pi,isMatchCondition:di,getAttrImgSrc:Ci,getAttrImgStyle:vi,getCellText:Jr,autoScrollHeight:w,autoScrollClass:vn,autoScrollTop:gn,isScroll:v,scrollWrapStyle:m,isLinkStyle:Kn,hasConditionConfig:Qr,formatTextByConditions:(xr,Cr,Ar)=>{var Fr,Dr;const Ir=c.conditionList.find(Pr=>Pr.dataIndex===xr.dataIndex);if((Fr=Ir==null?void 0:Ir.conditions)!=null&&Fr.length){let Pr=Cr;for(const Br of Ir.conditions){const Vr=((Dr=Br==null?void 0:Br.property)==null?void 0:Dr.formatText)||"";if(Vr){let Nr=!1;if(Br.rule&&Br.value){const zr=`${Br.field} ${Br.rule} '${Br.value}'`;Nr=pn(zr,{...Ar,value:Cr})}else Nr=!0;Nr&&(Pr=hn(Vr,{textData:{...Ar,value:Cr}}))}}return Pr}else return""},getChgByCondition:yr}}}),__injectCSSVars__=()=>{vue.useCssVars(c=>({f2959870:c.stripedColor,"0d44247f":c.tableHeaderBgColor,"1eec2f4a":c.tableBodyBgColor,"3c6b7ac8":c.paginationBgColor,"846492e6":c.paginationColor,"0a10c53c":c.activePaginationBgColor,"7e55b7a7":c.activePaginationColor,"1c856456":c.hoverBackgroundColor}))},__setup__=__default__.setup;__default__.setup=__setup__?(c,u)=>(__injectCSSVars__(),__setup__(c,u)):__injectCSSVars__;const Table_vue_vue_type_style_index_0_scoped_a83fea44_lang="",Table_vue_vue_type_style_index_1_lang="",_withScopeId=c=>(vue.pushScopeId("data-v-a83fea44"),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=["src"],_hoisted_20=["title"],_hoisted_21=["src"],_hoisted_22=["src"],_hoisted_23={class:"ant-pagination-options-quick-jumper"},_hoisted_24=_withScopeId(()=>vue.createElementVNode("span",null,"条 / 页",-1));function _sfc_render$4(c,u,f,h,d,p){const v=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"),_=vue.resolveComponent("a-table-summary"),J=vue.resolveComponent("a-table"),re=vue.resolveComponent("marquee-scroll"),Rn=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(Rn,{loading:c.loading},{default:vue.withCtx(()=>{var Bn;return[c.isUseExport?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1,[vue.createVNode(v,{class:"export-button",onClick:c.exportTableData},{default:vue.withCtx(()=>[_hoisted_3]),_:1},8,["onClick"])])):vue.createCommentVNode("",!0),vue.createVNode(J,{ref:"tableRef",class:"table",style:vue.normalizeStyle({height:c.tableHeight,backgroundColor:c.tableBgColor}),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 vn;return[(vn=w.record.children)!=null&&vn.length?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4,[w.expanded?(vue.openBlock(),vue.createBlock(m,{key:0,onClick:gn=>w.onExpand(w.record,gn)},null,8,["onClick"])):(vue.openBlock(),vue.createBlock(g,{key:1,onClick:gn=>w.onExpand(w.record,gn)},null,8,["onClick"]))])):(vue.openBlock(),vue.createElementBlock("span",_hoisted_5,[vue.createVNode(m)]))]}),customFilterDropdown:vue.withCtx(({column:w,setSelectedKeys:vn,confirm:gn,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(v,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>gn()},{default:vue.withCtx(()=>[_hoisted_6]),_:2},1032,["onClick"]),vue.createVNode(v,{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:vn,text:gn,record:Fn})=>{var zn,Un,Wn,tr,Yn,Xn;return[w.dataIndex==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vn===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:c.seqIcon1,width:c.iconSize,height:c.iconSize},null,8,_hoisted_8)):vn===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:c.seqIcon2,width:c.iconSize,height:c.iconSize},null,8,_hoisted_9)):vn>=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(vn+1),5)],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_11,vue.toDisplayString(vn+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,(Jn,ir)=>(vue.openBlock(),vue.createElementBlock("div",{class:"action",key:ir},[vue.createElementVNode("a",{href:c.handleHref(Jn.href,Fn),target:c.handleHrefTarget(Jn.target),style:vue.normalizeStyle({color:Jn.color,fontSize:c.fontSize,fontWeight:c.fontWeight}),onClick:sr=>c.onTouchHrefEvent(Jn.target,c.handleHref(Jn.href,Fn))},vue.toDisplayString(Jn.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(gn,w.progressTextDecimalPlaces)}%`})},null,4),vue.createElementVNode("div",{class:"progress-text",style:vue.normalizeStyle({color:+c.handleProgressText(gn)<100?w.progressTextColor||"#333":w.progressFinishedTextColor||"#fff"})},vue.toDisplayString(c.handleProgressText(gn,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,gn,Fn)})},[c.isMatchCondition(w,gn)&&(w==null?void 0:w.cellAlign)==="right"&&((zn=w==null?void 0:w.attribute)!=null&&zn.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),!c.hasConditionConfig(w.dataIndex)&&w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:1,title:((Un=w==null?void 0:w.customFormatter)==null?void 0:Un.split("{value}")[0])||""},vue.toDisplayString(((Wn=w==null?void 0:w.customFormatter)==null?void 0:Wn.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:gn})),title:c.hasConditionConfig(w.dataIndex)?c.formatTextByConditions(w,gn,Fn):w.format!=null?c.formatFn(gn,w):gn},[!c.hasConditionConfig(w.dataIndex)&&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:gn})),src:c.getChgBoxImgSrc(gn)},null,12,_hoisted_18)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(c.hasConditionConfig(w.dataIndex)?c.formatTextByConditions(w,gn,Fn):w.format!=null?c.formatFn(gn,w):c.getCellText(gn,w))+" ",1),c.hasConditionConfig(w.dataIndex)&&c.getChgByCondition(w,gn,Fn,2)?(vue.openBlock(),vue.createElementBlock("div",{key:1,style:vue.normalizeStyle({...c.chgBoxStyle,height:"auto",scale:.6})},[vue.createElementVNode("img",{style:vue.normalizeStyle(c.getChgByCondition(w,gn,Fn,1)),src:c.getChgByCondition(w,gn,Fn,2)},null,12,_hoisted_19)],4)):vue.createCommentVNode("",!0)],14,_hoisted_17),!c.hasConditionConfig(w.dataIndex)&&w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:2,title:((tr=w==null?void 0:w.customFormatter)==null?void 0:tr.split("{value}")[1])||""},vue.toDisplayString(((Yn=w==null?void 0:w.customFormatter)==null?void 0:Yn.split("{value}")[1])||""),9,_hoisted_20)):vue.createCommentVNode("",!0),c.isMatchCondition(w,gn)&&(w==null?void 0:w.cellAlign)!=="right"&&((Xn=w==null?void 0:w.attribute)!=null&&Xn.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:3,style:vue.normalizeStyle(c.getAttrImgStyle(w)),src:c.getAttrImgSrc(w)},null,12,_hoisted_21)):vue.createCommentVNode("",!0)],4))]}),summary:vue.withCtx(()=>[c.summaryList.length>0?(vue.openBlock(),vue.createBlock(_,{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,vn)=>(vue.openBlock(),vue.createBlock(Pn,{key:vn,index:vn,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_22)],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},[(Bn=c.tableDataSource)!=null&&Bn.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_23,[vue.withDirectives(vue.createElementVNode("input",{type:"text","onUpdate:modelValue":u[0]||(u[0]=w=>c.pageSize=w)},null,512),[[vue.vModelText,c.pageSize]]),_hoisted_24])],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(re,{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-a83fea44"]]),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(""),p=usePickComponentStyle(c,["backgroundImage"]),v=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(v),repeat:c.geoBackgroundImageRepeat}:c.geoItemStyleAreaColor),Pn=vue.computed(()=>{const Qn=c.symbolImage;return c.symbolImage?"image://"+useImagePath(Qn):"circle"}),b=Qn=>{let ar=c.tooltipFormatter;const er=ar.match(/\{(.+?)\}/g);if(er==null||er.length===0)return ar;for(let ur=0;ur<er.length;ur++){const hr=er[ur];let or=hr.slice(1,-1).trim();const mr=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,dr=or.match(mr);for(let fr=0;fr<dr.length;fr++){const vr=dr[fr],pr=Qn[vr];pr!=null&&(or=or.replace(vr,pr))}ar=ar.replace(hr,or)}return ar.split(`
180
180
  `)},_=vue.ref(!1),J=vue.ref("");let re=new AbortController;const Rn=(Qn,ar)=>{const er=re.signal;_.value=!0,h.value=Qn,u({name:Qn,signal:er}).then(ur=>{var hr,or;if(ur){const mr=((or=(hr=ur==null?void 0:ur.data)==null?void 0:hr.data)==null?void 0:or.rows)||[];let dr="";for(const fr of mr){const vr=b(fr)||[];if(vr!=null&&vr.length)for(const pr of vr)dr+=`<div style="word-break: break-all;white-space: normal;">${pr}</div>`}dr=`<div style="max-width:200px;">${dr}</div>`,d.value=dr,ar(vue.unref(J),dr)}else er.aborted?d.value="Loading":d.value=Qn,ar(vue.unref(J),d.value);_.value=!1})},Bn=vue.ref(),w=vue.computed(()=>c.dataType==="request"?Bn.value:c.data),vn=vue.computed(()=>{const Qn=[],{mapAreaStyleConfig:ar}=c;if(ar!=null&&ar.length)for(const er of ar)Qn.push({...er,key:nanoid(6)});return Qn}),gn=vue.computed(()=>{const Qn=[];for(const ar of vue.unref(vn)){let er="";ar.value1&&(er+=`value ${ar.rule1} ${ar.value1}`),ar.value2&&(er+=`${ar.value1?"&&":""} value ${ar.rule2} ${ar.value2}`),er&&Qn.push({rule:er,color:ar.color,key:ar.key})}return Qn.reverse()}),Fn=vue.computed(()=>{var er;const Qn=[],{areaStyleKeyName:ar}=c;if((er=vue.unref(w))!=null&&er.length)for(const ur of vue.unref(w)){const hr=ur[ar];if(hr||hr===0){const or=vue.unref(gn).find(mr=>pn(mr.rule,{value:hr}));or&&Qn.push({name:ur.name,itemStyle:{areaColor:vue.unref(y).includes(or.key)?c.geoItemStyleAreaColor:or.color}})}}return Qn}),zn=vue.computed(()=>{const Qn=c.geoCenter;let ar;return typeof Qn=="string"&&Qn!==""&&(ar=Qn.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:ar,map:`map-${c.id}`,selectedMode:"single",tooltip:{show:c.tooltipShow,trigger:"item",backgroundColor:c.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:c.tooltipTextStyleColor},formatter:(er,ur,hr)=>{J.value=ur;const{name:or=""}=er,{requestUrl:mr}=c.tooltipRequestData;if(!mr){let dr="",fr=c.tooltipFormatter;fr===""&&(fr="{name}:{value}");const vr=vue.unref(w).find(pr=>pr.name===or);return vr?(dr+=hn(fr,{textData:{name:or,...vr}},{useNewline:!0,useSpace:!0}),dr):or}if(vue.unref(_))vue.unref(h)!==or&&(re.abort(),re=new AbortController);else{if(vue.unref(h)===or)return vue.unref(d);Rn(or,hr)}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:Fn.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}]}}),Un=vue.ref(!1),Wn=async()=>{var er;Un.value=!1;const Qn=c.mapJson,ar=`map-${c.id}`;if(Qn!=null&&Qn.path){const ur=await request(((er=window==null?void 0:window.config)==null?void 0:er.uploadPath)+Qn.path);core$1.registerMap(ar,(ur==null?void 0:ur.data)||{})}else core$1.registerMap(ar,{});Un.value=!0};vue.watch(()=>c.mapJson,()=>{Wn()},{immediate:!0,deep:!0});const tr=async Qn=>{var ur,hr,or,mr;const ar=(hr=(ur=Qn==null?void 0:Qn.data)==null?void 0:ur.data)==null?void 0:hr.rows,er=`map-${c.id}`;if(ar!=null&&ar.path){const dr=await request(ar.path);core$1.registerMap(er,(dr==null?void 0:dr.data)||{})}else if(Array.isArray(ar))if(Bn.value=ar,(or=ar[0])!=null&&or.mapUrl){const dr=await request((mr=ar[0])==null?void 0:mr.mapUrl);core$1.registerMap(er,(dr==null?void 0:dr.data)||{})}else core$1.registerMap(er,{});else core$1.registerMap(er,{});vue.nextTick(()=>{Un.value=!0})},Yn=useRequestData(c),Xn=async()=>{if(c.dataType==="request"){Un.value=!1;try{const Qn=await Yn();tr(Qn)}catch(Qn){console.error(Qn),Un.value=!0}}},Jn=()=>{const Qn=ir(c.id);switch(sr(c.id,{...Qn,RECORD:{}}),c.dataType){case"static":Wn();break;case"request":Xn();break}},{getGlobalModel:ir,setGlobalModel:sr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Qn=>{},setGlobalModel:(Qn,ar)=>{}}),Gn=useEmitEvent(c)("click",()=>{var ar,er;const Qn=ir(c.id);((ar=Qn==null?void 0:Qn.RECORD)==null?void 0:ar.name)===((er=vue.unref(f))==null?void 0:er.name)?sr(c.id,{...Qn,RECORD:{}}):sr(c.id,{...Qn,RECORD:vue.unref(f)})});useOnEvent(c,{refreshData:Jn});const{setRequest:Kn}=vue.inject(REQUEST_MODEL,{setRequest:Qn=>{}});typeof Kn=="function"&&Kn({id:c.id,requestFn:Jn,sortNum:c.requestSort});const Vn=()=>{vue.unref(f)&&Gn()},qn=(Qn={})=>{Qn.componentType==="geo"&&Qn.region?f.value=Qn.region:f.value=null},nr=vue.computed(()=>{const Qn={},{legendTop:ar,legendLeft:er,legendBoxShadow:ur}=c;return ur&&(Qn.boxShadow=ur),ar==="bottom"?Qn.bottom=0:ar==="top"&&(Qn.top=0),er==="left"?Qn.left=0:er==="right"&&(Qn.right=0),Qn}),Hn=vue.computed(()=>{const Qn={};return c.legendOrient==="vertical"&&(Qn.flexDirection="column"),Qn}),lr=vue.computed(()=>{var Qn;if((Qn=vue.unref(vn))!=null&&Qn.length){const ar=[];for(const er of vue.unref(vn)){const{value1:ur,value2:hr,rule1:or,rule2:mr,color:dr}=er;ur&&hr?+ur<+hr?or.includes(">")&&mr.includes("<")&&ar.push({text:`${ur} - ${hr}`,color:dr,key:er.key}):+ur>+hr?or.includes("<")&&mr.includes(">")&&ar.push({text:`${hr} - ${ur}`,color:dr,key:er.key}):+ur==+hr&&ar.push({text:`${ur} - ${hr}`,color:dr,key:er.key}):ur?ar.push({text:`${or} ${ur}`,color:dr,key:er.key}):hr&&ar.push({text:`${mr} ${hr}`,color:dr,key:er.key})}return ar}else return[]});return{option:zn,style:p,isLoadedData:Un,geoBackgroundImageRef:v,myGeoBackgroundImage:m,mapLegendStyle:nr,legendContainerStyle:Hn,mapLegendList:lr,hiddenLegendKey:y,customClick:Vn,onMouseOver:qn,handleToggleVisible:Qn=>{const ar=vue.unref(y).findIndex(er=>er===Qn);ar>=0?y.value.splice(ar,1):y.value.push(Qn)}}}}),Map_vue_vue_type_style_index_0_scoped_99122857_lang="",_hoisted_1=["src"],_hoisted_2=["title","onClick"];function _sfc_render$3(c,u,f,h,d,p){const v=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-map",style:vue.normalizeStyle(c.style)},[c.isLoadedData?(vue.openBlock(),vue.createBlock(v,{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-99122857"]]),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||[]),p=vue.ref(),v=vue.computed({get:()=>{var Zn;const{mode:sr}=c;return(Zn=vue.unref(d))!=null&&Zn.length?p.value:sr==="multiple"||sr==="tags"||sr==="combobox"?[]:""},set:sr=>{p.value=sr}}),{getGlobalModel:m,setGlobalModel:g,getRecordValueByKeyName:y}=vue.inject(GLOBAL_MODEL,{getGlobalModel:sr=>{},setGlobalModel:(sr,Zn)=>{},getRecordValueByKeyName:sr=>{}}),x=c.dataFieldNames;vue.watch(()=>[c.value,c.mode,c.selectFirstOption,c.valueType,d.value],()=>{const{mode:sr,selectFirstOption:Zn,value:Gn}=c,Kn=y(Gn),Vn=x.value;if(sr==="multiple"||sr==="tags"||sr==="combobox"){if(Kn)p.value=Kn.split(",");else if(Zn){const qn=vue.unref(d)[0];p.value=qn?[qn[Vn]]:[]}}else if(Kn)p.value=Kn;else if(Zn){const qn=vue.unref(d)[0];p.value=qn?qn[Vn]:""}},{immediate:!0});const Pn=(sr,Zn)=>{const Gn=x.label,Kn=x.value;let Vn;const qn=Zn[Gn],nr=Zn[Kn];return qn!=null?Vn=qn:nr!=null&&(Vn=nr),(Vn==null?void 0:Vn.toLowerCase().indexOf(sr==null?void 0:sr.toLowerCase()))>=0},b=sr=>{const{label:Zn,value:Gn,options:Kn}=c.dataFieldNames;if(Kn&&Array.isArray(sr))if(sr.some(Vn=>Kn in Vn)){const Vn={},qn=[];sr.forEach(nr=>{Vn[nr[Kn]]||(Vn[nr[Kn]]=[]),Vn[nr[Kn]].push({[Zn]:nr[Zn],[Gn]:nr[Gn]})});for(const nr in Vn)qn.push({[Zn]:nr,[Kn]:Vn[nr]});return qn}else return sr;else if(!Kn)return sr},_=vue.ref(!1),J=sr=>{var Zn,Gn;if(d.value=b(((Gn=(Zn=sr==null?void 0:sr.data)==null?void 0:Zn.data)==null?void 0:Gn.rows)||[]),c.selectFirstOption){let Kn=vue.unref(d)[0];if(x.options){const Vn=Kn[x.options];Vn&&Vn.length&&(Kn=Vn[0])}p.value=Kn[x.value]}},re=useRequestData(c),Rn=async()=>{if(c.dataType==="request"){_.value=!0;try{const sr=await re();J(sr)}catch(sr){console.error(sr)}finally{_.value=!1}}},Bn=vue.computed(()=>{let sr=p.value;if(c.valueType==="label"&&vue.unref(p)&&vue.unref(d)){const Zn=x.label,Gn=x.value;if(c.mode==="multiple")sr=vue.unref(d).filter(Kn=>vue.unref(p).includes(Kn[Gn])).map(Kn=>Kn[Zn]);else{const Kn=vue.unref(d).find(Vn=>vue.unref(p)===Vn[Gn]);Kn&&(sr=Kn[Zn])}}return sr}),w=vue.ref([]),vn=vue.computed(()=>{const sr={};if(c.mode!=="multiple"){const Zn=vue.unref(w).find(Gn=>Gn.value===vue.unref(p));Zn&&(sr.itemCodes=Zn.item_codes)}return sr}),gn=vue.computed(()=>{const{value:sr,label:Zn}=x,Gn=vue.unref(d).find(Kn=>Kn[sr]===vue.unref(v));return Gn?{label:Gn[Zn],value:Gn[sr]}:{}}),{pageId:Fn}=vue.inject("templateOperate",{pageId:""})||{};g(c.id,{type:c.type,value:Bn,...vue.unref(vn),recordData:vue.unref(gn)});const zn=useEmitEvent(c),Un=zn("selectChange",()=>{const sr=c.id,Zn=m(sr);g(sr,{...Zn,...vue.unref(vn),RECORD:Bn,recordData:vue.unref(gn)});const Gn=getNewValueFromUrlParams(Fn,c.keyName,"value");Gn&&(v.value=Gn)}),Wn=zn("refreshData",(sr=[])=>{if(d.value=b(sr),c.selectFirstOption){let Zn=vue.unref(d)[0];if(x.options){const Gn=Zn[x.options];Gn&&Gn.length&&(Zn=Gn[0])}p.value=Zn[x.value]}g(c.id,{type:c.type,value:Bn,...vue.unref(vn),recordData:vue.unref(gn)})}),tr=sr=>{var Vn;const{data:Zn}=(sr==null?void 0:sr.data)||{},Gn=x.label,Kn=x.value;if(Zn){const{rows:qn=[]}=((Vn=sr==null?void 0:sr.data)==null?void 0:Vn.data)||{};w.value=qn;const nr=qn.map(cr=>({[Gn]:cr.label,[Kn]:cr.value})),{id:Hn}=c,lr=m(Hn);g(Hn,{...lr,...vue.unref(vn)}),Wn(nr)}else Wn([])},Yn=useIndicatorData(c,tr),Xn=async()=>{try{_.value=!0;const sr=await Yn();tr(sr)}catch(sr){console.error(sr)}finally{_.value=!1}},Jn=()=>{switch(c.dataType){case"indicator":{Xn();break}case"request":Rn();break}};useOnEvent(c,{selectChange:Un,refreshData:Jn});const{setRequest:ir}=vue.inject(REQUEST_MODEL,{setRequest:({id:sr,sortNum:Zn,requestFn:Gn})=>{}});return typeof ir=="function"&&ir({id:c.id,requestFn:Jn,sortNum:c.requestSort}),u({refreshData:Jn}),{style:f,getPopupContainer:h,myValue:p,selectChange:Un,options:d,filterOption:Pn,loading:_,resultValue:v}}}),DataSelect_vue_vue_type_style_index_0_scoped_622b0b83_lang="",DataSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$2(c,u,f,h,d,p){const v=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(v,{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-622b0b83"]]),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,fullMode:{type:Boolean,default:!1}},setup(c,{emit:u,expose:f}){var vn,gn;const h=(vn=window==null?void 0:window.config)==null?void 0:vn.pageId,d=(gn=window==null?void 0:window.config)==null?void 0:gn.indicatorToken,p=usePickComponentStyle(c),v=vue.ref(),{pageMode:m,theme:g,width:y,height:x}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",theme:"light",width:"",height:""}),{getAllGlobalModel:Pn}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),b=vue.computed(()=>{const{width:Fn,height:zn}=c;let Un=0,Wn=0;return typeof Fn=="string"?Un=parseFloat(Fn):Fn.suffix==="px"?Un=+Fn.value:Fn.suffix==="%"&&(Un=parseFloat(vue.unref(y))*(Fn.value/100)),typeof zn=="string"?Wn=parseFloat(zn):zn.suffix==="px"?Wn=+zn.value:zn.suffix==="%"&&(Wn=parseFloat(vue.unref(x))*(zn.value/100)),{...c,width:Un+"px",height:Wn+"px",pageId:h,indicatorToken:d,context:CONTEXT,globalModel:Pn()}}),_=vue.computed(()=>INDICATOR_URL),J=()=>{switch(c.dataType){case"indicator":vue.unref(v).refreshData();break}},{setRequest:re}=vue.inject(REQUEST_MODEL,{setRequest:({id:Fn,sortNum:zn,requestFn:Un})=>{}});typeof re=="function"&&re({id:c.id,requestFn:J,sortNum:c.requestSort}),f({refreshData:J});const Bn=useEmitEvent(c)("click",()=>{vue.unref(v).click()});return useOnEvent(c,{refreshData:J,click:Bn}),vue.onMounted(()=>{}),{props:c,style:p,pageMode:m,pivotTableRef:v,theme:g,customProps:b,indicatorUrl:_,click:Bn,onTableChange:({type:Fn,data:zn})=>{console.log("data",zn),u("tableChange",{type:Fn,data:zn})}}}}),PivotTableContainer_vue_vue_type_style_index_0_scoped_6ac97f9c_lang="";function _sfc_render$1(c,u,f,h,d,p){const v=vue.resolveComponent("pivot-table");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-pivot-table",style:vue.normalizeStyle(c.style)},[vue.createVNode(v,vue.mergeProps({ref:"pivotTableRef"},c.customProps,{pageMode:c.pageMode,theme:c.theme,fullMode:c.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-6ac97f9c"]]),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(),p=vue.ref(!1),v=usePickComponentStyle(c),m=vue.ref([]),g=vue.ref(),y=vue.computed(()=>p.value?ZOOM_FONT_SIZE:12),x=vue.ref({});let Pn;const b=vue.computed(()=>{const qn=c.xAxisLabelFormatter,nr=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: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 Hn;p.value=!0,(Hn=g.value)==null||Hn.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:Hn=>{var ar;const lr=Hn.length;let cr="",Qn=c.tooltipFormatter;Pn=(ar=Hn[0])==null?void 0:ar.data,Qn===""&&(Qn="{marker} {a} {c}");for(let er=0;er<lr;er++){const{marker:ur,seriesName:hr,name:or,value:mr,data:dr}=Hn[er]||{};if(er===0){let fr=or;typeof or=="string"&&or[0]==="0"&&!isNaN(+or)&&(fr=(+or).toString()),cr+=`${In(qn,fr)}<br/>`}cr+=hn(Qn,{textData:{marker:ur,a:hr,b:mr[0],c:mr[1]||0,...dr==null?void 0:dr.record}},{useNewline:!0,useSpace:!0}),cr+="<br/>"}return cr},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(Hn){return typeof Hn=="string"&&Hn[0]==="0"&&!isNaN(+Hn)&&(Hn=(+Hn).toString()),In(qn,Hn)}},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(Hn){return In(nr,Hn)}},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:(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,formatter:Hn=>getLegendFormat(c.legendFormatter,{name:Hn})},series:vue.unref(m)}}),_=()=>{p.value=!1},{getGlobalModel:J,setGlobalModel:re,getRecordValueByKeyName:Rn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:qn=>{},setGlobalModel:(qn,nr)=>{},getRecordValueByKeyName:qn=>{}}),Bn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),w=(qn,nr,Hn,lr,cr,Qn,ar,er)=>{const ur=(-(cr*er-Qn*ar)/(ar-cr)+(qn*lr-nr*Hn)/(Hn-qn))/((lr-nr)/(Hn-qn)-(er-Qn)/(ar-cr)),hr=(lr-nr)/(Hn-qn)*(-(cr*er-Qn*ar)/(ar-cr)+(qn*lr-nr*Hn)/(Hn-qn))/((lr-nr)/(Hn-qn)-(er-Qn)/(ar-cr))-(qn*lr-nr*Hn)/(Hn-qn);return[ur,hr]},vn=()=>{var Hn;const qn={symbol:"circle",tooltip:{trigger:"item",formatter:lr=>{let cr="",Qn=c.markPointFormatter;Qn===""&&(Qn="{x}, {y}");const{data:{coord:ar=[]}}=lr||{};return cr+=hn(Qn,{textData:{x:ar[0]||0,y:ar[1]||0}},{useNewline:!0,useSpace:!0}),cr+="<br/>",cr}},data:[]},{axisMarkPoint:nr=[]}=c;for(const lr of nr){const{coord:cr=""}=lr,Qn=[];let ar=[];if(cr.includes("getIntersectPoint")){const er=(Hn=cr.match(/getIntersectPoint\((.*?)\)/)[1])==null?void 0:Hn.split(",");if((er==null?void 0:er.length)===8){const ur=[];for(const hr of er){const or=hr.replaceAll(" ","");(or==null?void 0:or.slice(0,1))==="{"&&(or==null?void 0:or.slice(-1))==="}"?ur.push(+Rn(or)||0):ur.push(+or)}ar=w(...ur)}}else ar=cr.split(",");(ar==null?void 0:ar.length)===2&&(Qn[0]=+ar[0],Qn[1]=+ar[1]),Qn!=null&&Qn.length&&qn.data.push({coord:Qn,symbolSize:lr.symbolSize,itemStyle:{color:lr.pointColor||"transparent",borderWidth:lr.borderWidth||"transparent",borderColor:lr.borderColor||"transparent"},label:{formatter:lr.label,position:lr.labelPosition,color:lr.labelColor||"transparent"}})}return qn},gn=qn=>{var ur,hr,or;const nr=lodashEs.cloneDeep(qn),{graphicConfig:Hn,customPoint:lr=""}=c,cr={},Qn={},{formFields:ar={}}=Hn;let er=[];if(lr){er=JSON.parse(lr);for(const mr of er)for(const dr in mr)typeof mr[dr]=="string"&&((ur=mr[dr])==null?void 0:ur.slice(0,1))==="{"&&((hr=mr[dr])==null?void 0:hr.slice(-1))==="}"&&(mr[dr]=Rn(mr[dr])||0)}er!=null&&er.length&&nr.push(...er),c.dataType==="static"?(Qn.name="name",Qn.values=["value","value2"]):(Qn.name=(ar==null?void 0:ar.labelField)||"name",Qn.values=(ar==null?void 0:ar.valueField)||["value","value2"]);for(const mr of nr){const{values:dr,name:fr}=Qn;for(const vr of dr){const pr={value:[mr[fr],mr[vr]],record:mr};mn(cr,vr)?cr[vr].push(pr):cr[vr]=[pr]}}if((or=Object.keys(cr))!=null&&or.length){const mr=[];for(const dr in cr)mr.push({name:dr,data:cr[dr]});return mr}else return[]},Fn=(qn=[])=>{const nr=gn(qn),Hn=[],lr=nr.length;for(let cr=0;cr<lr;cr++){const Qn={},ar={};cr===0&&(ar.markPoint=vn()),c.shadowColor&&(Qn.shadowColor=c.shadowColor,Qn.shadowBlur=c.shadowBlur,Qn.shadowOffsetY=c.shadowOffsetY,Qn.shadowOffsetX=c.shadowOffsetX),Hn.push({type:"line",...ar,...nr[cr],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[cr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[cr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Qn},...vue.unref(Bn)})}m.value=Hn},zn=(qn=[])=>{const nr=gn(qn),Hn=[],lr=nr.length;for(let cr=0;cr<lr;cr++){const Qn={};c.shadowColor&&(Qn.shadowColor=c.shadowColor,Qn.shadowBlur=c.shadowBlur,Qn.shadowOffsetY=c.shadowOffsetY,Qn.shadowOffsetX=c.shadowOffsetX);const ar={};cr===0&&(ar.markPoint=vn()),Hn.push({type:"line",...nr[cr],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[cr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[cr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Qn},...vue.unref(Bn),...ar})}m.value=Hn};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],([qn])=>{(c.dataType==="static"||vue.unref(f)==="design")&&Fn(qn)},{immediate:!0,deep:!0});const Un=vue.ref(!1),Wn=useRequestData(c),tr=async()=>{var qn,nr;if(c.dataType==="request")try{Un.value=!0;const Hn=await Wn();Fn((nr=(qn=Hn==null?void 0:Hn.data)==null?void 0:qn.data)==null?void 0:nr.rows)}catch(Hn){console.error(Hn)}finally{Un.value=!1}},Yn=useEmitEvent(c);re(c.id,{type:c.type,RECORD:""});const Xn=Yn("click",qn=>{const nr=J(c.id);re(c.id,{...nr,type:c.type,RECORD:c.tooltipShow?Pn:qn.data})}),Jn=qn=>{d.value.chart.containPixel("grid",[qn.offsetX,qn.offsetY])&&Xn()};c.tooltipShow?x.value["zr:click"]=Jn:x.value.click=Xn;const ir=qn=>{var Hn;const{rows:nr=[]}=((Hn=qn==null?void 0:qn.data)==null?void 0:Hn.data)??{};zn(nr)},sr=useIndicatorData(c,qn=>{c.isViewRedrawing&&d.value.clear(),ir(qn)}),Zn=async()=>{try{Un.value=!0;const qn=await sr();ir(qn)}catch(qn){console.error(qn)}finally{Un.value=!1}},Gn=()=>{switch(c.dataType){case"indicator":Zn();break;case"request":tr();break}};useOnEvent(c,{refreshData:Gn,resetRecord:()=>{const qn=c.id,nr=J(qn);re(qn,{...nr,RECORD:""})},click:Xn});const{setRequest:Vn}=vue.inject(REQUEST_MODEL,{setRequest:qn=>{}});return typeof Vn=="function"&&Vn({id:c.id,requestFn:Gn,sortNum:c.requestSort}),u({refreshData:Gn}),{option:b,style:v,click:Xn,loading:Un,onClose:_,ecanModal:g,eventObj:x,echartRef:d}}}),ValueLine_vue_vue_type_style_index_0_lang="";function _sfc_render(c,u,f,h,d,p){const v=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(v,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(v,{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 p;h=isObject$1(h)&&(p=h[d])!=null?p:""}),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:p}=u;h(f),vue.onUnmounted(()=>d(f));const v=vue.computed(()=>p.indexOf(f));return{parent:u,index:v}}return{parent:null,index:vue.ref(-1)}}function flattenVNodes(c){const u=[],f=h=>{Array.isArray(h)&&h.forEach(d=>{var p;vue.isVNode(d)&&(u.push(d),(p=d.component)!=null&&p.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((p,v)=>findVNodeIndex(h,p.vnode)-findVNodeIndex(h,v.vnode));const d=f.map(p=>p.proxy);u.sort((p,v)=>{const m=d.indexOf(p),g=d.indexOf(v);return m-g})}function useChildren(c){const u=vue.reactive([]),f=vue.reactive([]),h=vue.getCurrentInstance();return{children:u,linkChildren:p=>{const v=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:v,unlink:m,children:u,internalChildren:f},p))}}}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:p=!1}=f;let v=!1,m;const g=Pn=>{if(v)return;const b=vue.unref(Pn);b&&!m&&(b.addEventListener(c,u,{capture:p,passive:d}),m=!0)},y=Pn=>{if(v)return;const b=vue.unref(Pn);b&&m&&(b.removeEventListener(c,u,p),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),v=!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(),p=get(d,u+f)||get(d,f);return isFunction(p)?p(...h):p}}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 p=c.apply(null,u);isPromise(p)?p.then(v=>{v?f():h&&h()}).catch(d||noop):p?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}`,p=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}),v=()=>{if(f()||c.dot)return vue.createVNode("div",{class:bem$f([c.position,{dot:c.dot,fixed:!!u.default}]),style:p.value},[h()])};return()=>{if(u.default){const{tag:m}=c;return vue.createVNode(m,{class:bem$f("wrapper")},{default:()=>[u.default(),v()]})}return v()}}});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=(p=c.theme)=>{document.documentElement.classList.remove(`van-theme-${p}`)};vue.watch(()=>c.theme,(p,v)=>{v&&d(v),h()},{immediate:!0}),vue.onActivated(h),vue.onDeactivated(d),vue.onBeforeUnmount(d),vue.watch(f,(p,v)=>{c.themeVarsScope==="global"&&syncThemeVarsOnRoot(p,v)}),vue.watch(()=>c.themeVarsScope,(p,v)=>{v==="global"&&syncThemeVarsOnRoot({},f.value),p==="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:p,name:v,size:m,badge:g,color:y}=c,x=isImage(v);return vue.createVNode(Badge,vue.mergeProps({dot:p,tag:d,class:[h.value,x?"":`${h.value}-${v}`],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:v},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 p=c.type==="spinner"?SpinIcon:CircularIcon;return vue.createVNode("span",{class:bem$c("spinner",c.type),style:f.value},[u.icon?u.icon():p])},d=()=>{var p;if(u.default)return vue.createVNode("span",{class:bem$c("text"),style:{fontSize:addUnit(c.textSize),color:(p=c.textColor)!=null?p:c.color}},[u.default()])};return()=>{const{type:p,vertical:v}=c;return vue.createVNode("div",{class:bem$c([p,{vertical:v}]),"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),p=vue.ref(0),v=vue.ref(""),m=vue.ref(!0),g=()=>v.value==="vertical",y=()=>v.value==="horizontal",x=()=>{f.value=0,h.value=0,d.value=0,p.value=0,v.value="",m.value=!0};return{move:_=>{const J=_.touches[0];f.value=(J.clientX<0?0:J.clientX)-c.value,h.value=J.clientY-u.value,d.value=Math.abs(f.value),p.value=Math.abs(h.value);const re=10;(!v.value||d.value<re&&p.value<re)&&(v.value=getDirection(d.value,p.value)),m.value&&(d.value>TAP_OFFSET||p.value>TAP_OFFSET)&&(m.value=!1)},start:_=>{x(),c.value=_.touches[0].clientX,u.value=_.touches[0].clientY},reset:x,startX:c,startY:u,deltaX:f,deltaY:h,offsetX:d,offsetY:p,direction:v,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",p=x=>{f.move(x);const Pn=f.deltaY.value>0?d:h,b=getScrollParent(x.target,c.value),{scrollHeight:_,offsetHeight:J,scrollTop:re}=b;let Rn="11";re===0?Rn=J>=_?"00":"01":re+J>=_&&(Rn="10"),Rn!=="11"&&f.isVertical()&&!(parseInt(Rn,2)&parseInt(Pn,2))&&preventDefault(x,!0)},v=()=>{document.addEventListener("touchstart",f.start),document.addEventListener("touchmove",p,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},m=()=>{totalLockCount&&(document.removeEventListener("touchstart",f.start),document.removeEventListener("touchmove",p),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},g=()=>u()&&v(),y=()=>u()&&m();onMountedOrActivated(g),vue.onDeactivated(y),vue.onBeforeUnmount(y),vue.watch(u,x=>{x?v():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=v=>{c.lockScroll&&preventDefault(v,!0)},p=h(()=>{var v;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]},[(v=u.default)==null?void 0:v.call(u)]),[[vue.vShow,c.show]])});return useEventListener("touchmove",d,{target:f}),()=>{const v=vue.createVNode(vue.Transition,{name:"van-fade",appear:!0},{default:p});return c.teleport?vue.createVNode(vue.Teleport,{to:c.teleport},{default:()=>[v]}):v}}});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,p;const v=vue.ref(),m=vue.ref(),g=useLazyRender(()=>c.show||!c.lazyRender),y=vue.computed(()=>{const zn={zIndex:v.value};if(isDef(c.duration)){const Un=c.position==="center"?"animationDuration":"transitionDuration";zn[Un]=`${c.duration}s`}return zn}),x=()=>{d||(d=!0,v.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=zn=>{u("clickOverlay",zn),c.closeOnClickOverlay&&Pn()},_=()=>{if(c.overlay)return vue.createVNode(Overlay,vue.mergeProps({show:c.show,class:c.overlayClass,zIndex:v.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"]})},J=zn=>{u("clickCloseIcon",zn),Pn()},re=()=>{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:J},null)};let Rn;const Bn=()=>{Rn&&clearTimeout(Rn),Rn=setTimeout(()=>{u("opened")})},w=()=>u("closed"),vn=zn=>u("keydown",zn),gn=g(()=>{var zn;const{round:Un,position:Wn,safeAreaInsetTop:tr,safeAreaInsetBottom:Yn}=c;return vue.withDirectives(vue.createVNode("div",vue.mergeProps({ref:m,style:y.value,role:"dialog",tabindex:0,class:[bem$a({round:Un,[Wn]:Wn}),{"van-safe-area-top":tr,"van-safe-area-bottom":Yn}],onKeydown:vn},f,useScopeId()),[(zn=h.default)==null?void 0:zn.call(h),re()]),[[vue.vShow,c.show]])}),Fn=()=>{const{position:zn,transition:Un,transitionAppear:Wn}=c,tr=zn==="center"?"van-fade":`van-popup-slide-${zn}`;return vue.createVNode(vue.Transition,{name:Un||tr,appear:Wn,onAfterEnter:Bn,onAfterLeave:w},{default:gn})};return vue.watch(()=>c.show,zn=>{zn&&!d&&(x(),f.tabindex===0&&vue.nextTick(()=>{var Un;(Un=m.value)==null||Un.focus()})),!zn&&d&&(d=!1,u("close"))}),useExpose({popupRef:m}),useLockScroll(m,()=>c.show&&c.lockScroll),useEventListener("popstate",()=>{c.closeOnPopstate&&(Pn(),p=!1)}),vue.onMounted(()=>{c.show&&x()}),vue.onActivated(()=>{p&&(u("update:show",!0),p=!1)}),vue.onDeactivated(()=>{c.show&&c.teleport&&(Pn(),p=!0)}),vue.provide(POPUP_TOGGLE_KEY,()=>c.show),()=>c.teleport?vue.createVNode(vue.Teleport,{to:c.teleport},{default:()=>[_(),Fn()]}):vue.createVNode(vue.Fragment,null,[_(),Fn()])}});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(p=>p[f.value]===u),d=findIndexOfEnabledOption(c,h);return c[d]}function formatCascadeColumns(c,u,f){const h=[];let d={[u.children]:c},p=0;for(;d&&d[u.children];){const v=d[u.children],m=f.value[p];if(d=isDef(m)?findOptionByValue(v,m,u):void 0,!d&&v.length){const g=getFirstEnabledOption(v)[u.value];d=findOptionByValue(v,g,u)}p++,h.push(v)}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,p,v,m;const g=vue.ref(),y=vue.ref(),x=vue.ref(0),Pn=vue.ref(0),b=useTouch(),_=()=>c.options.length,J=()=>c.optionHeight*(+c.visibleOptionNum-1)/2,re=Yn=>{let Xn=findIndexOfEnabledOption(c.options,Yn);const Jn=-Xn*c.optionHeight,ir=()=>{Xn>_()-1&&(Xn=findIndexOfEnabledOption(c.options,Yn));const sr=c.options[Xn][c.fields.value];sr!==c.value&&u("change",sr)};h&&Jn!==x.value?m=ir:ir(),x.value=Jn},Rn=()=>c.readonly||!c.options.length,Bn=Yn=>{h||Rn()||(m=null,Pn.value=DEFAULT_DURATION,re(Yn),u("clickOption",c.options[Yn]))},w=Yn=>clamp(Math.round(-Yn/c.optionHeight),0,_()-1),vn=vue.computed(()=>w(x.value)),gn=(Yn,Xn)=>{const Jn=Math.abs(Yn/Xn);Yn=x.value+Jn/.003*(Yn<0?-1:1);const ir=w(Yn);Pn.value=+c.swipeDuration,re(ir)},Fn=()=>{h=!1,Pn.value=0,m&&(m(),m=null)},zn=Yn=>{if(!Rn()){if(b.start(Yn),h){const Xn=getElementTranslateY(y.value);x.value=Math.min(0,Xn-J())}Pn.value=0,d=x.value,p=Date.now(),v=d,m=null}},Un=Yn=>{if(Rn())return;b.move(Yn),b.isVertical()&&(h=!0,preventDefault(Yn,!0));const Xn=clamp(d+b.deltaY.value,-(_()*c.optionHeight),c.optionHeight),Jn=w(Xn);Jn!==vn.value&&u("scrollInto",c.options[Jn]),x.value=Xn;const ir=Date.now();ir-p>MOMENTUM_TIME&&(p=ir,v=Xn)},Wn=()=>{if(Rn())return;const Yn=x.value-v,Xn=Date.now()-p;if(Xn<MOMENTUM_TIME&&Math.abs(Yn)>MOMENTUM_DISTANCE){gn(Yn,Xn);return}const ir=w(x.value);Pn.value=DEFAULT_DURATION,re(ir),setTimeout(()=>{h=!1},0)},tr=()=>{const Yn={height:`${c.optionHeight}px`};return c.options.map((Xn,Jn)=>{const ir=Xn[c.fields.text],{disabled:sr}=Xn,Zn=Xn[c.fields.value],Gn={role:"button",style:Yn,tabindex:sr?-1:0,class:[bem$8("item",{disabled:sr,selected:Zn===c.value}),Xn.className],onClick:()=>Bn(Jn)},Kn={class:"van-ellipsis",[c.allowHtml?"innerHTML":"textContent"]:ir};return vue.createVNode("li",Gn,[f.option?f.option(Xn,Jn):vue.createVNode("div",Kn,null)])})};return useParent(PICKER_KEY),useExpose({stopMomentum:Fn}),vue.watchEffect(()=>{const Yn=h?Math.floor(-x.value/c.optionHeight):c.options.findIndex(ir=>ir[c.fields.value]===c.value),Xn=findIndexOfEnabledOption(c.options,Yn),Jn=-Xn*c.optionHeight;h&&Xn<Yn&&Fn(),x.value=Jn}),useEventListener("touchmove",Un,{target:g}),()=>vue.createVNode("div",{ref:g,class:bem$8(),onTouchstartPassive:zn,onTouchend:Wn,onTouchcancel:Wn},[vue.createVNode("ul",{ref:y,style:{transform:`translate3d(0, ${x.value+J()}px, 0)`,transitionDuration:`${Pn.value}ms`,transitionProperty:Pn.value?"all":"none"},class:bem$8("wrapper"),onTransitionend:Fn},[tr()])])}});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"),p=()=>u("confirm"),v=()=>{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:p},[f.confirm?f.confirm():y])};return()=>vue.createVNode("div",{class:bem$9("toolbar")},[f.toolbar?f.toolbar():[v(),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};/**
181
181
  * @vue/shared v3.5.4
182
182
  * (c) 2018-present Yuxi (Evan) You and Vue contributors