@ecan-bi/datav 1.5.34 → 1.5.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +48 -47
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.5.
|
|
1
|
+
/*! @ecan-bi/datav@1.5.35 */
|
|
2
2
|
(function(ti,mi){typeof exports=="object"&&typeof module<"u"?mi(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("ant-design-vue/es/notification/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],mi):(ti=typeof globalThis<"u"?globalThis:ti||self,mi(ti["@ecan/bi-datav"]={},ti.Vue,ti["echarts/core"],ti.ResizeDetector,ti.AntDesignVue,null,null,ti.LodashEs,ti.Dayjs,ti.Axios,ti.Mitt,ti["echarts/renderers"],ti["echarts/charts"],ti["echarts/components"],null,null,null,null,ti["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,ti.Echarts,null,null,ti.Xlsx,ti.big.js))})(this,function(exports,vue,core$1,resizeDetector,antDesignVue,style$1,style$2,lodashEs,dayjs,axios,mitt,renderers,charts,components$1,style$3,style$4,style$5,style$6,locale,style$7,style$8,style$9,style$a,echarts,style$b,style$c,xlsx,big_js){var ti,mi,Ei,Ai;"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 d=Object.getOwnPropertyDescriptor(c,f);Object.defineProperty(u,f,d.get?d:{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(h){return(...v)=>{if(c.value||u(),!c.value)throw new Error("ECharts is not initialized yet.");return c.value[h].apply(c.value,v)}}function d(){const h=Object.create(null);return METHOD_NAMES.forEach(v=>{h[v]=f(v)}),h}return d()}function useAutoresize(c,u,f){let d=null;vue.watch([f,c,u],([h,v,p],m,g)=>{h&&v&&p&&(d=core$1.throttle(()=>{v.resize()},100),resizeDetector.addListener(h,d)),g(()=>{d&&h&&resizeDetector.removeListener(h,d)})})}const autoresizeProps={autoresize:Boolean},LOADING_OPTIONS_KEY="ecLoadingOptions";function useLoading(c,u,f){const d=vue.inject(LOADING_OPTIONS_KEY,{}),h=vue.computed(()=>({...vue.unref(d),...f==null?void 0:f.value}));vue.watchEffect(()=>{const v=c.value;v&&(u.value?v.showLoading(h.value):v.hideLoading())})}const loadingProps$1={loading:Boolean,loadingOptions:Object},style="",onRE=/^on[^a-z]/,isOn=c=>onRE.test(c);function omitOn(c){const u={};for(const f in c)isOn(f)||(u[f]=c[f]);return u}const TAG_NAME="x-vue-echarts",THEME_KEY="ecTheme",INIT_OPTIONS_KEY="ecInitOptions",UPDATE_OPTIONS_KEY="ecUpdateOptions",Echarts=vue.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...autoresizeProps,...loadingProps$1},inheritAttrs:!1,setup(c,{attrs:u,listeners:f}){const d=vue.shallowRef(),h=vue.shallowRef(),v=vue.shallowRef(),p=vue.inject(THEME_KEY,null),m=vue.inject(INIT_OPTIONS_KEY,null),g=vue.inject(UPDATE_OPTIONS_KEY,null),{autoresize:y,manualUpdate:b,loading:gn,loadingOptions:x}=vue.toRefs(c),re=vue.computed(()=>v.value||c.option||Object.create(null)),w=vue.computed(()=>c.theme||vue.unref(p)||{}),J=vue.computed(()=>c.initOptions||vue.unref(m)||{}),Fn=vue.computed(()=>c.updateOptions||vue.unref(g)||{}),Bn=vue.computed(()=>omitOn(u));function j(Un){if(h.value||!d.value)return;const qn=h.value=core$1.init(d.value,w.value,J.value);c.group&&(qn.group=c.group);let Qn=f;Qn||(Qn={},Object.keys(u).filter(Xn=>Xn.indexOf("on")===0&&Xn.length>2).forEach(Xn=>{const nr=Xn.charAt(2).toLowerCase()+Xn.slice(3);Qn[nr]=u[Xn]})),Object.keys(Qn).forEach(Xn=>{const nr=Qn[Xn];nr&&(Xn.indexOf("zr:")===0?qn.getZr().on(Xn.slice(3).toLowerCase(),nr):qn.on(Xn.toLowerCase(),nr))});function Jn(){if(qn&&!qn.isDisposed())try{qn.resize()}catch(Xn){if(Xn.message==="Cannot read property 'get' of undefined")return;throw Xn}}function Zn(){qn.setOption(Un||re.value,Fn.value)}y.value?vue.nextTick(()=>{Jn(),Zn()}):Zn()}function vn(Un,qn){c.manualUpdate&&(v.value=Un),h.value?h.value.setOption(Un,qn||{}):j(Un)}function Pn(){h.value&&(h.value.dispose(),h.value=void 0)}let Rn=null;vue.watch(b,Un=>{typeof Rn=="function"&&(Rn(),Rn=null),Un||(Rn=vue.watch(()=>c.option,qn=>{qn&&(h.value?h.value.setOption(qn,Fn.value):j())},{deep:!0}))},{immediate:!0}),vue.watch([w,J],()=>{Pn(),j()},{deep:!0}),vue.watchEffect(()=>{c.group&&h.value&&(h.value.group=c.group)});const zn=usePublicAPI(h,j);return useLoading(h,gn,x),useAutoresize(h,y,d),vue.onMounted(()=>{c.option&&j()}),vue.onUnmounted(Pn),{chart:h,root:d,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 d,h,v;if(c=bound01(c,360),u=bound01(u,100),f=bound01(f,100),u===0)h=f,v=f,d=f;else{var p=f<.5?f*(1+u):f+u-f*u,m=2*f-p;d=hue2rgb(m,p,c+1/3),h=hue2rgb(m,p,c),v=hue2rgb(m,p,c-1/3)}return{r:d*255,g:h*255,b:v*255}}function rgbToHsv(c,u,f){c=bound01(c,255),u=bound01(u,255),f=bound01(f,255);var d=Math.max(c,u,f),h=Math.min(c,u,f),v=0,p=d,m=d-h,g=d===0?0:m/d;if(d===h)v=0;else{switch(d){case c:v=(u-f)/m+(u<f?6:0);break;case u:v=(f-c)/m+2;break;case f:v=(c-u)/m+4;break}v/=6}return{h:v,s:g,v:p}}function hsvToRgb(c,u,f){c=bound01(c,360)*6,u=bound01(u,100),f=bound01(f,100);var d=Math.floor(c),h=c-d,v=f*(1-u),p=f*(1-h*u),m=f*(1-(1-h)*u),g=d%6,y=[f,p,v,v,m,f][g],b=[m,f,f,p,v,v][g],gn=[v,v,m,f,f,p][g];return{r:y*255,g:b*255,b:gn*255}}function rgbToHex(c,u,f,d){var h=[pad2(Math.round(c).toString(16)),pad2(Math.round(u).toString(16)),pad2(Math.round(f).toString(16))];return d&&h[0].startsWith(h[0].charAt(1))&&h[1].startsWith(h[1].charAt(1))&&h[2].startsWith(h[2].charAt(1))?h[0].charAt(0)+h[1].charAt(0)+h[2].charAt(0):h.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,d=null,h=null,v=null,p=!1,m=!1;return typeof c=="string"&&(c=stringInputToObject(c)),typeof c=="object"&&(isValidCSSUnit(c.r)&&isValidCSSUnit(c.g)&&isValidCSSUnit(c.b)?(u=rgbToRgb(c.r,c.g,c.b),p=!0,m=String(c.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(c.h)&&isValidCSSUnit(c.s)&&isValidCSSUnit(c.v)?(d=convertToPercentage(c.s),h=convertToPercentage(c.v),u=hsvToRgb(c.h,d,h),p=!0,m="hsv"):isValidCSSUnit(c.h)&&isValidCSSUnit(c.s)&&isValidCSSUnit(c.l)&&(d=convertToPercentage(c.s),v=convertToPercentage(c.l),u=hslToRgb(c.h,d,v),p=!0,m="hsl"),Object.prototype.hasOwnProperty.call(c,"a")&&(f=c.a)),f=boundAlpha(f),{ok:p,format:c.format||m,r:Math.min(255,Math.max(u.r,0)),g:Math.min(255,Math.max(u.g,0)),b:Math.min(255,Math.max(u.b,0)),a:f}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function stringInputToObject(c){if(c=c.trim().toLowerCase(),c.length===0)return!1;var u=!1;if(names[c])c=names[c],u=!0;else if(c==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var f=matchers.rgb.exec(c);return f?{r:f[1],g:f[2],b:f[3]}:(f=matchers.rgba.exec(c),f?{r:f[1],g:f[2],b:f[3],a:f[4]}:(f=matchers.hsl.exec(c),f?{h:f[1],s:f[2],l:f[3]}:(f=matchers.hsla.exec(c),f?{h:f[1],s:f[2],l:f[3],a:f[4]}:(f=matchers.hsv.exec(c),f?{h:f[1],s:f[2],v:f[3]}:(f=matchers.hsva.exec(c),f?{h:f[1],s:f[2],v:f[3],a:f[4]}:(f=matchers.hex8.exec(c),f?{r:parseIntFromHex(f[1]),g:parseIntFromHex(f[2]),b:parseIntFromHex(f[3]),a:convertHexToDecimal(f[4]),format:u?"name":"hex8"}:(f=matchers.hex6.exec(c),f?{r:parseIntFromHex(f[1]),g:parseIntFromHex(f[2]),b:parseIntFromHex(f[3]),format:u?"name":"hex"}:(f=matchers.hex4.exec(c),f?{r:parseIntFromHex(f[1]+f[1]),g:parseIntFromHex(f[2]+f[2]),b:parseIntFromHex(f[3]+f[3]),a:convertHexToDecimal(f[4]+f[4]),format:u?"name":"hex8"}:(f=matchers.hex3.exec(c),f?{r:parseIntFromHex(f[1]+f[1]),g:parseIntFromHex(f[2]+f[2]),b:parseIntFromHex(f[3]+f[3]),format:u?"name":"hex"}:!1)))))))))}function isValidCSSUnit(c){return!!matchers.CSS_UNIT.exec(String(c))}var hueStep=2,saturationStep=.16,saturationStep2=.05,brightnessStep1=.05,brightnessStep2=.15,lightColorCount=5,darkColorCount=4,darkColorMap=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function toHsv(c){var u=c.r,f=c.g,d=c.b,h=rgbToHsv(u,f,d);return{h:h.h*360,s:h.s,v:h.v}}function toHex(c){var u=c.r,f=c.g,d=c.b;return"#".concat(rgbToHex(u,f,d,!1))}function mix(c,u,f){var d=f/100,h={r:(u.r-c.r)*d+c.r,g:(u.g-c.g)*d+c.g,b:(u.b-c.b)*d+c.b};return h}function getHue(c,u,f){var d;return Math.round(c.h)>=60&&Math.round(c.h)<=240?d=f?Math.round(c.h)-hueStep*u:Math.round(c.h)+hueStep*u:d=f?Math.round(c.h)+hueStep*u:Math.round(c.h)-hueStep*u,d<0?d+=360:d>=360&&(d-=360),d}function getSaturation(c,u,f){if(c.h===0&&c.s===0)return c.s;var d;return f?d=c.s-saturationStep*u:u===darkColorCount?d=c.s+saturationStep:d=c.s+saturationStep2*u,d>1&&(d=1),f&&u===lightColorCount&&d>.1&&(d=.1),d<.06&&(d=.06),Number(d.toFixed(2))}function getValue(c,u,f){var d;return f?d=c.v+brightnessStep1*u:d=c.v-brightnessStep2*u,d>1&&(d=1),Number(d.toFixed(2))}function generate$1(c){for(var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=[],d=inputToRGB(c),h=lightColorCount;h>0;h-=1){var v=toHsv(d),p=toHex(inputToRGB({h:getHue(v,h,!0),s:getSaturation(v,h,!0),v:getValue(v,h,!0)}));f.push(p)}f.push(toHex(d));for(var m=1;m<=darkColorCount;m+=1){var g=toHsv(d),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(b){var gn=b.index,x=b.opacity,re=toHex(mix(inputToRGB(u.backgroundColor||"#141414"),inputToRGB(f[gn]),x*100));return re}):f}var presetPrimaryColors={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},presetPalettes={},presetDarkPalettes={};Object.keys(presetPrimaryColors).forEach(function(c){presetPalettes[c]=generate$1(presetPrimaryColors[c]),presetPalettes[c].primary=presetPalettes[c][5],presetDarkPalettes[c]=generate$1(presetPrimaryColors[c],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[c].primary=presetDarkPalettes[c][5]});var containers=[],styleElements=[],usage="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function createStyleElement(){var c=document.createElement("style");return c.setAttribute("type","text/css"),c}function insertCss(c,u){if(u=u||{},c===void 0)throw new Error(usage);var f=u.prepend===!0?"prepend":"append",d=u.container!==void 0?u.container:document.querySelector("head"),h=containers.indexOf(d);h===-1&&(h=containers.push(d)-1,styleElements[h]={});var v;return styleElements[h]!==void 0&&styleElements[h][f]!==void 0?v=styleElements[h][f]:(v=styleElements[h][f]=createStyleElement(),f==="prepend"?d.insertBefore(v,d.childNodes[0]):d.appendChild(v)),c.charCodeAt(0)===65279&&(c=c.substr(1,c.length)),v.styleSheet?v.styleSheet.cssText+=c:v.textContent+=c,v}function _objectSpread$d(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$e(c,h,f[h])})}return c}function _defineProperty$e(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$d({key:u},f,c.attrs),(c.children||[]).map(function(d,h){return generate(d,"".concat(u,"-").concat(c.tag,"-").concat(h))})):vue.h(c.tag,_objectSpread$d({key:u},c.attrs),(c.children||[]).map(function(d,h){return generate(d,"".concat(u,"-").concat(c.tag,"-").concat(h))}))}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$1(c,u){if(c){if(typeof c=="string")return _arrayLikeToArray$1(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$1(c,u)}}function _arrayLikeToArray$1(c,u){(u==null||u>c.length)&&(u=c.length);for(var f=0,d=new Array(u);f<u;f++)d[f]=c[f];return d}function _iterableToArrayLimit(c,u){var f=c==null?null:typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(f!=null){var d=[],h=!0,v=!1,p,m;try{for(f=f.call(c);!(h=(p=f.next()).done)&&(d.push(p.value),!(u&&d.length===u));h=!0);}catch(g){v=!0,m=g}finally{try{!h&&f.return!=null&&f.return()}finally{if(v)throw m}}return d}}function _arrayWithHoles(c){if(Array.isArray(c))return c}function _objectSpread$b(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$c(c,h,f[h])})}return c}function _defineProperty$c(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),d,h;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(c);for(h=0;h<v.length;h++)d=v[h],!(u.indexOf(d)>=0)&&Object.prototype.propertyIsEnumerable.call(c,d)&&(f[d]=c[d])}return f}function _objectWithoutPropertiesLoose(c,u){if(c==null)return{};var f={},d=Object.keys(c),h,v;for(v=0;v<d.length;v++)h=d[v],!(u.indexOf(h)>=0)&&(f[h]=c[h]);return f}setTwoToneColor("#1890ff");var Icon$1=function(u,f){var d,h=_objectSpread$b({},u,f.attrs),v=h.class,p=h.icon,m=h.spin,g=h.rotate,y=h.tabindex,b=h.twoToneColor,gn=h.onClick,x=_objectWithoutProperties(h,_excluded),re=(d={anticon:!0},_defineProperty$c(d,"anticon-".concat(p.name),!!p.name),_defineProperty$c(d,v,v),d),w=m===""||m||p.name==="loading"?"anticon-spin":"",J=y;J===void 0&&gn&&(J=-1,x.tabindex=J);var Fn=g?{msTransform:"rotate(".concat(g,"deg)"),transform:"rotate(".concat(g,"deg)")}:void 0,Bn=normalizeTwoToneColors(b),j=_slicedToArray(Bn,2),vn=j[0],Pn=j[1];return vue.createVNode("span",_objectSpread$b({role:"img","aria-label":p.name},x,{onClick:gn,class:re}),[vue.createVNode(VueIcon,{class:w,icon:p,primaryColor:vn,secondaryColor:Pn,style:Fn},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 BorderOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"border",theme:"outlined"};const BorderOutlinedSvg=BorderOutlined$2;function _objectSpread$a(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$b(c,h,f[h])})}return c}function _defineProperty$b(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var BorderOutlined=function(u,f){var d=_objectSpread$a({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$a({},d,{icon:BorderOutlinedSvg}),null)};BorderOutlined.displayName="BorderOutlined",BorderOutlined.inheritAttrs=!1;const BorderOutlined$1=BorderOutlined;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$9(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$a(c,h,f[h])})}return c}function _defineProperty$a(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 d=_objectSpread$9({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$9({},d,{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$8(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$9(c,h,f[h])})}return c}function _defineProperty$9(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 d=_objectSpread$8({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$8({},d,{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$7(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$8(c,h,f[h])})}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}var CloseOutlined=function(u,f){var d=_objectSpread$7({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$7({},d,{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$6(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$7(c,h,f[h])})}return c}function _defineProperty$7(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 d=_objectSpread$6({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$6({},d,{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$5(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$6(c,h,f[h])})}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}var LoadingOutlined=function(u,f){var d=_objectSpread$5({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$5({},d,{icon:LoadingOutlinedSvg}),null)};LoadingOutlined.displayName="LoadingOutlined",LoadingOutlined.inheritAttrs=!1;const LoadingOutlined$1=LoadingOutlined;var RedoOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"};const RedoOutlinedSvg=RedoOutlined$2;function _objectSpread$4(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$5(c,h,f[h])})}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 RedoOutlined=function(u,f){var d=_objectSpread$4({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$4({},d,{icon:RedoOutlinedSvg}),null)};RedoOutlined.displayName="RedoOutlined",RedoOutlined.inheritAttrs=!1;const RedoOutlined$1=RedoOutlined;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$3(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$4(c,h,f[h])})}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 RightOutlined=function(u,f){var d=_objectSpread$3({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$3({},d,{icon:RightOutlinedSvg}),null)};RightOutlined.displayName="RightOutlined",RightOutlined.inheritAttrs=!1;const RightOutlined$1=RightOutlined;var SwitcherOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 240H144c-17.7 0-32 14.3-32 32v608c0 17.7 14.3 32 32 32h608c17.7 0 32-14.3 32-32V272c0-17.7-14.3-32-32-32zm-40 600H184V312h528v528zm168-728H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h576v576c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM300 550h296v64H300z"}}]},name:"switcher",theme:"outlined"};const SwitcherOutlinedSvg=SwitcherOutlined$2;function _objectSpread$2(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$3(c,h,f[h])})}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 SwitcherOutlined=function(u,f){var d=_objectSpread$2({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$2({},d,{icon:SwitcherOutlinedSvg}),null)};SwitcherOutlined.displayName="SwitcherOutlined",SwitcherOutlined.inheritAttrs=!1;const SwitcherOutlined$1=SwitcherOutlined;var ZoomInOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};const ZoomInOutlinedSvg=ZoomInOutlined$2;function _objectSpread$1(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$2(c,h,f[h])})}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 ZoomInOutlined=function(u,f){var d=_objectSpread$1({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$1({},d,{icon:ZoomInOutlinedSvg}),null)};ZoomInOutlined.displayName="ZoomInOutlined",ZoomInOutlined.inheritAttrs=!1;const ZoomInOutlined$1=ZoomInOutlined;var ZoomOutOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};const ZoomOutOutlinedSvg=ZoomOutOutlined$2;function _objectSpread(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$1(c,h,f[h])})}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 ZoomOutOutlined=function(u,f){var d=_objectSpread({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread({},d,{icon:ZoomOutOutlinedSvg}),null)};ZoomOutOutlined.displayName="ZoomOutOutlined",ZoomOutOutlined.inheritAttrs=!1;const ZoomOutOutlined$1=ZoomOutOutlined,_sfc_main$F=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[d,h]of u)f[d]=h;return f},_hoisted_1$r={class:"spin-wrapper"};function _sfc_render$K(c,u,f,d,h,v){const p=vue.resolveComponent("a-spin");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$r,[c.spinning?(vue.openBlock(),vue.createBlock(p,{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$F,[["render",_sfc_render$K]]),_sfc_main$E=vue.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:antDesignVue.Skeleton}});function _sfc_render$J(c,u,f,d,h,v){const p=vue.resolveComponent("a-skeleton");return vue.openBlock(),vue.createBlock(p,{active:"",loading:c.loading},{default:vue.withCtx(()=>[vue.renderSlot(c.$slots,"default")]),_:3},8,["loading"])}const Skeleton=_export_sfc$1(_sfc_main$E,[["render",_sfc_render$J]]);(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[d,h]of u)f[d]=h;return f};const _sfc_main$D=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),d=vue.ref("100%"),h=vue.ref("100%"),v=vue.ref(0),p=vue.ref(!1),m=vue.ref(!1),g=vue.ref(0),y=vue.ref(0),b=vue.ref(0),gn=vue.ref(0),x=vue.ref(!1),re=vue.ref(!1),w=vue.ref(0),J=vue.ref(null),Fn=vue.ref("200px"),Bn=vue.ref(!1),j=vue.ref(null),vn=vue.ref(null),Pn=async()=>{await Rn(),v.value++},Rn=async()=>{c.vertical&&(p.value=!0),setInterval(()=>{if(d.value="0%",h.value="0%",j.value!==null&&vn.value!==null&&j.value&&vn.value)if(c.vertical&&"clientHeight"in j.value&&"clientHeight"in vn.value){gn.value=j.value.clientHeight,b.value=vn.value.clientHeight;const Hn=Math.ceil(b.value/gn.value);return f.value=isFinite(Hn)?Hn:0,p.value=!1,f.value}else if(!c.vertical&&"clientWidth"in j.value&&"clientWidth"in vn.value){if(y.value=j.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 Hn=Math.ceil(g.value/y.value);return f.value=isFinite(Hn)?Hn:0,f.value}else return d.value="100%",h.value="100%",0;else return d.value="100%",h.value="100%",0},100)};vue.watch(y,async()=>{c.clone&&Pn()}),vue.watch(g,async()=>{(c.clone||c.animateOnOverflowOnly)&&Pn()}),vue.watch(()=>c.pause,(Hn,Kn)=>{Hn!==Kn&&u(Hn?"onResume":"onPause")});const zn=()=>{c.pauseOnHover&&(u("onPause"),x.value=!0)},Un=()=>{c.pauseOnHover&&(u("onResume"),x.value=!1)},qn=()=>{c.pauseOnClick&&(u("onPause"),re.value=!0)},Qn=()=>{c.pauseOnClick&&(u("onResume"),re.value=!1)},Jn=vue.computed(()=>c.pause||c.vertical&&p.value||c.animateOnOverflowOnly&&m.value?"paused":"running"),Zn=vue.computed(()=>c.pauseOnHover&&(x.value||re.value)||!c.pauseOnHover&&Jn.value==="paused"?"paused":"running"),Xn=vue.computed(()=>c.pauseOnHover&&x.value||c.pauseOnClick&&re.value||!c.pauseOnHover&&Jn.value==="paused"?"paused":"running"),nr=vue.computed(()=>{const Hn={"--duration":`${c.duration}s`,"--delay":`${c.delay}s`,"--direction":`${c.direction}`,"--pauseOnHover":`${Zn.value}`,"--pauseOnClick":`${Xn.value}`,"--pauseAnimation":`${Jn.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":`${Fn.value}`,"--min-width":`${d.value}`,"--min-height":`${h.value}`},Kn={"--orientation":"scrollX",orientation:"horizontal"};return c.vertical&&(Kn["--orientation"]="scrollY"),__spreadValues(__spreadValues({},Hn),Kn)}),sr=vue.computed(()=>!!c.gradient),ur=async()=>{c.vertical?(h.value="100%",d.value="auto",c.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(h.value="auto",c.animateOnOverflowOnly?d.value="auto":d.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."),Fn.value=c.gradientWidth):c.gradientLength&&(Fn.value=c.gradientLength)),(c.clone||c.animateOnOverflowOnly)&&(await Rn(),Pn()),Bn.value=!0};return vue.onMounted(async()=>{ur(),J.value=setInterval(()=>{w.value++,c.loop!==0&&w.value===c.loop&&(u("onComplete"),clearInterval(J.value)),u("onLoopComplete")},c.duration*1e3)}),vue.onBeforeUnmount(()=>{clearInterval(J.value)}),{ready:Bn,contentWidth:y,containerWidth:g,contentHeight:gn,containerHeight:b,loopCounter:w,loopInterval:J,mouseOverMarquee:x,mouseDownMarquee:re,minWidth:d,minHeight:h,animateOnOverflowPause:m,marqueeContent:j,marqueeOverlayContainer:vn,componentKey:v,showGradient:sr,cloneAmount:f,ForcesUpdate:Pn,checkForClone:Rn,setupMarquee:ur,getCurrentStyle:nr,hoverStarted:zn,hoverEnded:Un,mouseDown:qn,mouseUp:Qn}}}),_hoisted_1$q={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},_hoisted_2$d={class:"marquee",ref:"marqueeContent"},_hoisted_3$7={key:1,"aria-hidden":!0,class:"marquee"};function _sfc_render$I(c,u,f,d,h,v){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]=(...p)=>c.hoverStarted&&c.hoverStarted(...p)),onMouseleave:u[1]||(u[1]=(...p)=>c.hoverEnded&&c.hoverEnded(...p)),onMousedown:u[2]||(u[2]=(...p)=>c.mouseDown&&c.mouseDown(...p)),onMouseup:u[3]||(u[3]=(...p)=>c.mouseUp&&c.mouseUp(...p))},[vue.createElementVNode("div",_hoisted_1$q,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$d,[vue.renderSlot(c.$slots,"default")],512),!c.animateOnOverflowOnly||c.animateOnOverflowOnly&&!c.animateOnOverflowPause?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$7,[vue.renderSlot(c.$slots,"default")])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.cloneAmount,p=>(vue.openBlock(),vue.createElementBlock("div",{"aria-hidden":!0,class:"marquee cloned",key:p},[vue.renderSlot(c.$slots,"default")]))),128))],38)):vue.createCommentVNode("",!0)}var Vue3Marquee=_export_sfc(_sfc_main$D,[["render",_sfc_render$I]]);const _sfc_main$C=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$H(c,u,f,d,h,v){const p=vue.resolveComponent("Vue3Marquee");return c.isAutoScroll?(vue.openBlock(),vue.createBlock(p,{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$C,[["render",_sfc_render$H]]);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 d of[c,...Object.values(u??{})])f.component(d.name,d)},u)for(const[f,d]of Object.entries(u))c[f]=d;return c},props$1={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,extendData:{},toolboxShow:!1,isShowIndDetail:!1,isShowTrend:!1,indDetailIconColor:"#333",indDetailIconFontSize:"16px"},transformToComponentProps=c=>{const u={};if(typeof c=="object"&&c!=null)for(const f in c){const d=c[f];let h=d==null?void 0:d.constructor;["width","height","requestHeaders"].includes(f)?h=[d==null?void 0:d.constructor,Object]:["left","top"].includes(f)&&(h=[d==null?void 0:d.constructor,Number]),u[f]={type:h,default:d}}return u},pageConfig={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],isCompatible:!0,variableList:[],drillingMode:"pivotTable",pivotTableFontSize:"16px"},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",COMMON_OPERATE="COMMON_OPERATE",All_COMPONENT_RES_DATA="All_COMPONENT_RES_DATA",GLOBAL_VARIABLE="GLOBAL_VARIABLE",ZOOM_FONT_SIZE=18,CONTEXT="ygt",INDICATOR_URL=((ti=window==null?void 0:window.config)==null?void 0:ti.indicatorURL)||"";(mi=window==null?void 0:window.config)!=null&&mi.uploadPath;const BASE_URL=((Ei=window==null?void 0:window.config)==null?void 0:Ei.routerBaseURL)||"./",ERD_URL=((Ai=window==null?void 0:window.config)==null?void 0:Ai.erdURL)||"",MODEL_KEY_LIST=["table","bar","combograph","line","pie","radar","scatter","list","circulate"];function e(c,u){var f={};for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&u.indexOf(d)<0&&(f[d]=c[d]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function"){var h=0;for(d=Object.getOwnPropertySymbols(c);h<d.length;h++)u.indexOf(d[h])<0&&Object.prototype.propertyIsEnumerable.call(c,d[h])&&(f[d[h]]=c[d[h]])}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 _(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,d=f&&f.appContext.config.warnHandler,h=function(){let v=O[O.length-1];if(!v)return[];const p=[];for(;v;){const m=p[0];m&&m.vnode===v?m.recurseCount++:p.push({vnode:v,recurseCount:0});const g=v.component&&v.component.parent;v=g&&g.vnode}return p}();if(d)$(d,f,11,[c+u.join(""),f&&f.proxy,h.map(({vnode:v})=>`at <${oe(f,v.type)}>`).join(`
|
|
59
59
|
`),h]);else{const v=[`[Vue warn]: ${c}`,...u];h.length&&v.push(`
|
|
60
60
|
`,...function(p){const m=[];return p.forEach((g,y)=>{m.push(...y===0?[]:[`
|
|
61
|
-
`],...function({vnode:b,recurseCount:gn}){const x=gn>0?`... (${gn} recursive calls)`:"",re=!!b.component&&b.component.parent==null,w=` at <${oe(b.component,b.type,re)}`,J=">"+x;return b.props?[w,...L(b.props),J]:[w+J]}(g))}),m}(h)),console.warn(...v)}}function L(c){const u=[],f=Object.keys(c);return f.slice(0,3).forEach(d=>{u.push(...T(d,c[d]))}),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,d){let h;try{h=d?c(...d):c()}catch(v){(function(p,m,g,y=!0){const b=m?m.vnode:null;if(m){let gn=m.parent;const x=m.proxy,re=process.env.NODE_ENV!=="production"?N[g]:g;for(;gn;){const J=gn.ec;if(J){for(let Fn=0;Fn<J.length;Fn++)if(J[Fn](p,x,re)===!1)return}gn=gn.parent}const w=m.appContext.config.errorHandler;if(w)return void $(w,null,10,[p,x,re])}(function(gn,x,re,w=!0){if(process.env.NODE_ENV!=="production"){const Fn=N[x];if(re&&(J=re,O.push(J)),C("Unhandled error"+(Fn?` during execution of ${Fn}`:"")),re&&O.pop(),w)throw gn;console.error(gn)}else console.error(gn);var J})(p,g,b,y)})(v,u,f)}return h}let k=!1,D=!1;const M=[];let E=0;const I=[];let V=null,F=0;const z$1=Promise.resolve();function R(c){M.length&&M.includes(c,k&&c.allowRecurse?E+1:E)||(c.id==null?M.push(c):M.splice(function(u){let f=E+1,d=M.length;for(;f<d;){const h=f+d>>>1,v=M[h],p=P(v);p<u||p===u&&v.pre?f=h+1:d=h}return f}(c.id),0,c),U())}function U(){k||D||(D=!0,z$1.then(Y))}const P=c=>c.id==null?1/0:c.id,G=(c,u)=>{const f=P(c)-P(u);if(f===0){if(c.pre&&!u.pre)return-1;if(u.pre&&!c.pre)return 1}return f};function Y(c){D=!1,k=!0,process.env.NODE_ENV!=="production"&&(c=c||new Map),M.sort(G);const u=process.env.NODE_ENV!=="production"?f=>W(c,f):n;try{for(E=0;E<M.length;E++){const f=M[E];if(f&&f.active!==!1){if(process.env.NODE_ENV!=="production"&&u(f))continue;$(f,null,14)}}}finally{E=0,M.length=0,function(f){if(I.length){const d=[...new Set(I)];if(I.length=0,V)return void V.push(...d);for(V=d,process.env.NODE_ENV!=="production"&&(f=f||new Map),V.sort((h,v)=>P(h)-P(v)),F=0;F<V.length;F++)process.env.NODE_ENV!=="production"&&W(f,V[F])||V[F]();V=null,F=0}}(c),k=!1,(M.length||I.length)&&Y(c)}}function W(c,u){if(c.has(u)){const f=c.get(u);if(f>100){const d=u.ownerInstance,h=d&&ne(d.type);return C(`Maximum recursive updates exceeded${h?` in component <${h}>`:""}. 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(d=>{u&&(d.render=u,K(d.type).render=u),d.renderCache=[],d.update()}))}),reload:Q(function(c,u){const f=B.get(c);if(!f)return;u=K(u),q(f.initialDef,u);const d=[...f.instances];for(const v of d){const p=K(v.type);H.has(p)||(p!==f.initialDef&&q(p,u),H.add(p)),v.appContext.propsCache.delete(v.type),v.appContext.emitsCache.delete(v.type),v.appContext.optionsCache.delete(v.type),v.ceReload?(H.add(p),v.ceReload(u.styles),H.delete(p)):v.parent?R(v.parent.update):v.appContext.reload?v.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}h=()=>{for(const v of d)H.delete(K(v.type))},r(h)?I.push(...h):V&&V.includes(h,h.allowRecurse?F+1:F)||I.push(h),U();var h})});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(d){console.error(d),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 d=ne(u);if(!d&&u.__file){const h=u.__file.match(/([^/\\]+)\.\w+$/);h&&(d=h[1])}if(!d&&c&&c.parent){const h=v=>{for(const p in v)if(v[p]===u)return p};d=h(c.components||c.parent.type.components)||h(c.appContext.components)}return d?te(d):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,d="millisecond",h="second",v="minute",p="hour",m="day",g="week",y="month",b="quarter",gn="year",x="date",re="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,J=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Fn={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(Xn){var nr=["th","st","nd","rd"],sr=Xn%100;return"["+Xn+(nr[(sr-20)%10]||nr[sr]||nr[0])+"]"}},Bn=function(Xn,nr,sr){var ur=String(Xn);return!ur||ur.length>=nr?Xn:""+Array(nr+1-ur.length).join(sr)+Xn},j={s:Bn,z:function(Xn){var nr=-Xn.utcOffset(),sr=Math.abs(nr),ur=Math.floor(sr/60),Hn=sr%60;return(nr<=0?"+":"-")+Bn(ur,2,"0")+":"+Bn(Hn,2,"0")},m:function Xn(nr,sr){if(nr.date()<sr.date())return-Xn(sr,nr);var ur=12*(sr.year()-nr.year())+(sr.month()-nr.month()),Hn=nr.clone().add(ur,y),Kn=sr-Hn<0,Vn=nr.clone().add(ur+(Kn?-1:1),y);return+(-(ur+(sr-Hn)/(Kn?Hn-Vn:Vn-Hn))||0)},a:function(Xn){return Xn<0?Math.ceil(Xn)||0:Math.floor(Xn)},p:function(Xn){return{M:y,y:gn,w:g,d:m,D:x,h:p,m:v,s:h,ms:d,Q:b}[Xn]||String(Xn||"").toLowerCase().replace(/s$/,"")},u:function(Xn){return Xn===void 0}},vn="en",Pn={};Pn[vn]=Fn;var Rn="$isDayjsObject",zn=function(Xn){return Xn instanceof Jn||!(!Xn||!Xn[Rn])},Un=function Xn(nr,sr,ur){var Hn;if(!nr)return vn;if(typeof nr=="string"){var Kn=nr.toLowerCase();Pn[Kn]&&(Hn=Kn),sr&&(Pn[Kn]=sr,Hn=Kn);var Vn=nr.split("-");if(!Hn&&Vn.length>1)return Xn(Vn[0])}else{var Gn=nr.name;Pn[Gn]=nr,Hn=Gn}return!ur&&Hn&&(vn=Hn),Hn||!ur&&vn},qn=function(Xn,nr){if(zn(Xn))return Xn.clone();var sr=typeof nr=="object"?nr:{};return sr.date=Xn,sr.args=arguments,new Jn(sr)},Qn=j;Qn.l=Un,Qn.i=zn,Qn.w=function(Xn,nr){return qn(Xn,{locale:nr.$L,utc:nr.$u,x:nr.$x,$offset:nr.$offset})};var Jn=function(){function Xn(sr){this.$L=Un(sr.locale,null,!0),this.parse(sr),this.$x=this.$x||sr.x||{},this[Rn]=!0}var nr=Xn.prototype;return nr.parse=function(sr){this.$d=function(ur){var Hn=ur.date,Kn=ur.utc;if(Hn===null)return new Date(NaN);if(Qn.u(Hn))return new Date;if(Hn instanceof Date)return new Date(Hn);if(typeof Hn=="string"&&!/Z$/i.test(Hn)){var Vn=Hn.match(w);if(Vn){var Gn=Vn[2]-1||0,er=(Vn[7]||"0").substring(0,3);return Kn?new Date(Date.UTC(Vn[1],Gn,Vn[3]||1,Vn[4]||0,Vn[5]||0,Vn[6]||0,er)):new Date(Vn[1],Gn,Vn[3]||1,Vn[4]||0,Vn[5]||0,Vn[6]||0,er)}}return new Date(Hn)}(sr),this.init()},nr.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()},nr.$utils=function(){return Qn},nr.isValid=function(){return this.$d.toString()!==re},nr.isSame=function(sr,ur){var Hn=qn(sr);return this.startOf(ur)<=Hn&&Hn<=this.endOf(ur)},nr.isAfter=function(sr,ur){return qn(sr)<this.startOf(ur)},nr.isBefore=function(sr,ur){return this.endOf(ur)<qn(sr)},nr.$g=function(sr,ur,Hn){return Qn.u(sr)?this[ur]:this.set(Hn,sr)},nr.unix=function(){return Math.floor(this.valueOf()/1e3)},nr.valueOf=function(){return this.$d.getTime()},nr.startOf=function(sr,ur){var Hn=this,Kn=!!Qn.u(ur)||ur,Vn=Qn.p(sr),Gn=function(Yn,ir){var lr=Qn.w(Hn.$u?Date.UTC(Hn.$y,ir,Yn):new Date(Hn.$y,ir,Yn),Hn);return Kn?lr:lr.endOf(m)},er=function(Yn,ir){return Qn.w(Hn.toDate()[Yn].apply(Hn.toDate("s"),(Kn?[0,0,0,0]:[23,59,59,999]).slice(ir)),Hn)},Wn=this.$W,or=this.$M,cr=this.$D,ar="set"+(this.$u?"UTC":"");switch(Vn){case gn:return Kn?Gn(1,0):Gn(31,11);case y:return Kn?Gn(1,or):Gn(0,or+1);case g:var tr=this.$locale().weekStart||0,pr=(Wn<tr?Wn+7:Wn)-tr;return Gn(Kn?cr-pr:cr+(6-pr),or);case m:case x:return er(ar+"Hours",0);case p:return er(ar+"Minutes",1);case v:return er(ar+"Seconds",2);case h:return er(ar+"Milliseconds",3);default:return this.clone()}},nr.endOf=function(sr){return this.startOf(sr,!1)},nr.$set=function(sr,ur){var Hn,Kn=Qn.p(sr),Vn="set"+(this.$u?"UTC":""),Gn=(Hn={},Hn[m]=Vn+"Date",Hn[x]=Vn+"Date",Hn[y]=Vn+"Month",Hn[gn]=Vn+"FullYear",Hn[p]=Vn+"Hours",Hn[v]=Vn+"Minutes",Hn[h]=Vn+"Seconds",Hn[d]=Vn+"Milliseconds",Hn)[Kn],er=Kn===m?this.$D+(ur-this.$W):ur;if(Kn===y||Kn===gn){var Wn=this.clone().set(x,1);Wn.$d[Gn](er),Wn.init(),this.$d=Wn.set(x,Math.min(this.$D,Wn.daysInMonth())).$d}else Gn&&this.$d[Gn](er);return this.init(),this},nr.set=function(sr,ur){return this.clone().$set(sr,ur)},nr.get=function(sr){return this[Qn.p(sr)]()},nr.add=function(sr,ur){var Hn,Kn=this;sr=Number(sr);var Vn=Qn.p(ur),Gn=function(or){var cr=qn(Kn);return Qn.w(cr.date(cr.date()+Math.round(or*sr)),Kn)};if(Vn===y)return this.set(y,this.$M+sr);if(Vn===gn)return this.set(gn,this.$y+sr);if(Vn===m)return Gn(1);if(Vn===g)return Gn(7);var er=(Hn={},Hn[v]=u,Hn[p]=f,Hn[h]=c,Hn)[Vn]||1,Wn=this.$d.getTime()+sr*er;return Qn.w(Wn,this)},nr.subtract=function(sr,ur){return this.add(-1*sr,ur)},nr.format=function(sr){var ur=this,Hn=this.$locale();if(!this.isValid())return Hn.invalidDate||re;var Kn=sr||"YYYY-MM-DDTHH:mm:ssZ",Vn=Qn.z(this),Gn=this.$H,er=this.$m,Wn=this.$M,or=Hn.weekdays,cr=Hn.months,ar=Hn.meridiem,tr=function(ir,lr,vr,dr){return ir&&(ir[lr]||ir(ur,Kn))||vr[lr].slice(0,dr)},pr=function(ir){return Qn.s(Gn%12||12,ir,"0")},Yn=ar||function(ir,lr,vr){var dr=ir<12?"AM":"PM";return vr?dr.toLowerCase():dr};return Kn.replace(J,function(ir,lr){return lr||function(vr){switch(vr){case"YY":return String(ur.$y).slice(-2);case"YYYY":return Qn.s(ur.$y,4,"0");case"M":return Wn+1;case"MM":return Qn.s(Wn+1,2,"0");case"MMM":return tr(Hn.monthsShort,Wn,cr,3);case"MMMM":return tr(cr,Wn);case"D":return ur.$D;case"DD":return Qn.s(ur.$D,2,"0");case"d":return String(ur.$W);case"dd":return tr(Hn.weekdaysMin,ur.$W,or,2);case"ddd":return tr(Hn.weekdaysShort,ur.$W,or,3);case"dddd":return or[ur.$W];case"H":return String(Gn);case"HH":return Qn.s(Gn,2,"0");case"h":return pr(1);case"hh":return pr(2);case"a":return Yn(Gn,er,!0);case"A":return Yn(Gn,er,!1);case"m":return String(er);case"mm":return Qn.s(er,2,"0");case"s":return String(ur.$s);case"ss":return Qn.s(ur.$s,2,"0");case"SSS":return Qn.s(ur.$ms,3,"0");case"Z":return Vn}return null}(ir)||Vn.replace(":","")})},nr.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},nr.diff=function(sr,ur,Hn){var Kn,Vn=this,Gn=Qn.p(ur),er=qn(sr),Wn=(er.utcOffset()-this.utcOffset())*u,or=this-er,cr=function(){return Qn.m(Vn,er)};switch(Gn){case gn:Kn=cr()/12;break;case y:Kn=cr();break;case b:Kn=cr()/3;break;case g:Kn=(or-Wn)/6048e5;break;case m:Kn=(or-Wn)/864e5;break;case p:Kn=or/f;break;case v:Kn=or/u;break;case h:Kn=or/c;break;default:Kn=or}return Hn?Kn:Qn.a(Kn)},nr.daysInMonth=function(){return this.endOf(y).$D},nr.$locale=function(){return Pn[this.$L]},nr.locale=function(sr,ur){if(!sr)return this.$L;var Hn=this.clone(),Kn=Un(sr,ur,!0);return Kn&&(Hn.$L=Kn),Hn},nr.clone=function(){return Qn.w(this.$d,this)},nr.toDate=function(){return new Date(this.valueOf())},nr.toJSON=function(){return this.isValid()?this.toISOString():null},nr.toISOString=function(){return this.$d.toISOString()},nr.toString=function(){return this.$d.toUTCString()},Xn}(),Zn=Jn.prototype;return qn.prototype=Zn,[["$ms",d],["$s",h],["$m",v],["$H",p],["$W",m],["$M",y],["$y",gn],["$D",x]].forEach(function(Xn){Zn[Xn[1]]=function(nr){return this.$g(nr,Xn[0],Xn[1])}}),qn.extend=function(Xn,nr){return Xn.$i||(Xn(nr,Jn,qn),Xn.$i=!0),qn},qn.locale=Un,qn.isDayjs=zn,qn.unix=function(Xn){return qn(1e3*Xn)},qn.en=Pn[vn],qn.Ls=Pn,qn.p={},qn}()),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),d=u[be];try{u[be]=void 0;var h=!0}catch{}var v=me.call(u);return h&&(f?u[be]=d:delete u[be]),v}(c):function(u){return ge.call(u)}(c)}function we(c){return c!=null&&typeof c=="object"}var Se=Array.isArray;function Ae(c){var u=typeof c;return c!=null&&(u=="object"||u=="function")}function _e(c){if(!Ae(c))return!1;var u=xe(c);return u=="[object Function]"||u=="[object GeneratorFunction]"||u=="[object AsyncFunction]"||u=="[object Proxy]"}var je,Oe=fe["__core-js_shared__"],Ce=(je=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+je:"",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,De=$e.toString,Me=ke.hasOwnProperty,Ee=RegExp("^"+De.call(Me).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ie(c){return!(!Ae(c)||(u=c,Ce&&Ce in u))&&(_e(c)?Ee:Ne).test(Te(c));var u}function Ve(c,u){var f=function(d,h){return d==null?void 0:d[h]}(c,u);return Ie(f)?f:void 0}var Fe=Ve(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=Ve(Object,"defineProperty");return c({},"",{}),c}catch{}}(),Pe=/^(?:0|[1-9]\d*)$/;function Ge(c,u){var f=typeof c;return!!(u=u??9007199254740991)&&(f=="number"||f!="symbol"&&Pe.test(c))&&c>-1&&c%1==0&&c<u}function Ye(c,u){return c===u||c!=c&&u!=u}var We=Object.prototype.hasOwnProperty;function He(c,u,f){var d=c[u];We.call(c,u)&&Ye(d,f)&&(f!==void 0||u in c)||function(h,v,p){v=="__proto__"&&Ue?Ue(h,v,{configurable:!0,enumerable:!0,value:p,writable:!0}):h[v]=p}(c,u,f)}function Be(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=9007199254740991}var Ke=Object.prototype;function qe(c){var u=c&&c.constructor;return c===(typeof u=="function"&&u.prototype||Ke)}function Qe(c){return we(c)&&xe(c)=="[object Arguments]"}var Je=Object.prototype,Xe=Je.hasOwnProperty,Ze=Je.propertyIsEnumerable,et=Qe(function(){return arguments}())?Qe:function(c){return we(c)&&Xe.call(c,"callee")&&!Ze.call(c,"callee")},tt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,nt=tt&&typeof module=="object"&&module&&!module.nodeType&&module,ot=nt&&nt.exports===tt?fe.Buffer:void 0,rt=(ot?ot.isBuffer:void 0)||function(){return!1},it={};function at(c){return function(u){return c(u)}}it["[object Float32Array]"]=it["[object Float64Array]"]=it["[object Int8Array]"]=it["[object Int16Array]"]=it["[object Int32Array]"]=it["[object Uint8Array]"]=it["[object Uint8ClampedArray]"]=it["[object Uint16Array]"]=it["[object Uint32Array]"]=!0,it["[object Arguments]"]=it["[object Array]"]=it["[object ArrayBuffer]"]=it["[object Boolean]"]=it["[object DataView]"]=it["[object Date]"]=it["[object Error]"]=it["[object Function]"]=it["[object Map]"]=it["[object Number]"]=it["[object Object]"]=it["[object RegExp]"]=it["[object Set]"]=it["[object String]"]=it["[object WeakMap]"]=!1;var lt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,st=lt&&typeof module=="object"&&module&&!module.nodeType&&module,ct=st&&st.exports===lt&&ue.process,ut=function(){try{var c=st&&st.require&&st.require("util").types;return c||ct&&ct.binding&&ct.binding("util")}catch{}}(),dt=ut&&ut.isTypedArray,ft=dt?at(dt):function(c){return we(c)&&Be(c.length)&&!!it[xe(c)]},pt=Object.prototype.hasOwnProperty;function ht(c,u){var f=Se(c),d=!f&&et(c),h=!f&&!d&&rt(c),v=!f&&!d&&!h&&ft(c),p=f||d||h||v,m=p?function(b,gn){for(var x=-1,re=Array(b);++x<b;)re[x]=gn(x);return re}(c.length,String):[],g=m.length;for(var y in c)!pt.call(c,y)||p&&(y=="length"||h&&(y=="offset"||y=="parent")||v&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||Ge(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)&&!_e(u)?ht(c):function(f){if(!qe(f))return mt(f);var d=[];for(var h in Object(f))bt.call(f,h)&&h!="constructor"&&d.push(h);return d}(c);var u}var vt=Ve(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 d=c[u];this.set(d[0],d[1])}}function At(c,u){for(var f=c.length;f--;)if(Ye(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 _t=Array.prototype.splice;function jt(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var d=c[u];this.set(d[0],d[1])}}jt.prototype.clear=function(){this.__data__=[],this.size=0},jt.prototype.delete=function(c){var u=this.__data__,f=At(u,c);return!(f<0)&&(f==u.length-1?u.pop():_t.call(u,f,1),--this.size,!0)},jt.prototype.get=function(c){var u=this.__data__,f=At(u,c);return f<0?void 0:u[f][1]},jt.prototype.has=function(c){return At(this.__data__,c)>-1},jt.prototype.set=function(c,u){var f=this.__data__,d=At(f,c);return d<0?(++this.size,f.push([c,u])):f[d][1]=u,this};var Ot=Ve(fe,"Map");function Ct(c,u){var f,d,h=c.__data__;return((d=typeof(f=u))=="string"||d=="number"||d=="symbol"||d=="boolean"?f!=="__proto__":f===null)?h[typeof u=="string"?"string":"hash"]:h.map}function Lt(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var d=c[u];this.set(d[0],d[1])}}Lt.prototype.clear=function(){this.size=0,this.__data__={hash:new St,map:new(Ot||jt),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),d=f.size;return f.set(c,u),this.size+=f.size==d?0:1,this};var Tt=yt(Object.getPrototypeOf,Object);function Nt(c){var u=this.__data__=new jt(c);this.size=u.size}Nt.prototype.clear=function(){this.__data__=new jt,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 jt){var d=f.__data__;if(!Ot||d.length<199)return d.push([c,u]),this.size=++f.size,this;f=this.__data__=new Lt(d)}return f.set(c,u),this.size=f.size,this};var $t=Object.prototype.propertyIsEnumerable,kt=Object.getOwnPropertySymbols,Dt=kt?function(c){return c==null?[]:(c=Object(c),function(u,f){for(var d=-1,h=u==null?0:u.length,v=0,p=[];++d<h;){var m=u[d];f(m,d,u)&&(p[v++]=m)}return p}(kt(c),function(u){return $t.call(c,u)}))}:function(){return[]};function Mt(c){return function(u,f,d){var h=f(u);return Se(u)?h:function(v,p){for(var m=-1,g=p.length,y=v.length;++m<g;)v[y+m]=p[m];return v}(h,d(u))}(c,gt,Dt)}var Et=Ve(fe,"DataView"),It=Ve(fe,"Promise"),Vt=Ve(fe,"Set"),Ft="[object Map]",zt="[object Promise]",Rt="[object Set]",Ut="[object WeakMap]",Pt="[object DataView]",Gt=Te(Et),Yt=Te(Ot),Wt=Te(It),Ht=Te(Vt),Bt=Te(Fe),Kt=xe;(Et&&Kt(new Et(new ArrayBuffer(1)))!=Pt||Ot&&Kt(new Ot)!=Ft||It&&Kt(It.resolve())!=zt||Vt&&Kt(new Vt)!=Rt||Fe&&Kt(new Fe)!=Ut)&&(Kt=function(c){var u=xe(c),f=u=="[object Object]"?c.constructor:void 0,d=f?Te(f):"";if(d)switch(d){case Gt:return Pt;case Yt:return Ft;case Wt: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 d,h,v,p,m,g=c.constructor;switch(u){case"[object ArrayBuffer]":return Jt(c);case"[object Boolean]":case"[object Date]":return new g(+c);case"[object DataView]":return m=Jt((p=c).buffer),new p.constructor(m,p.byteOffset,p.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(y){var b=Jt(y.buffer);return new y.constructor(b,y.byteOffset,y.length)}(c);case"[object Map]":case"[object Set]":return new g;case"[object Number]":case"[object String]":return new g(c);case"[object RegExp]":return(v=new(h=c).constructor(h.source,Xt.exec(h))).lastIndex=h.lastIndex,v;case"[object Symbol]":return d=c,en?Object(en.call(d)):{}}}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,d,h,v){var p;if(p!==void 0)return p;if(!Ae(c))return c;var m=Se(c);if(m)p=function(x){var re=x.length,w=new x.constructor(re);return re&&typeof x[0]=="string"&&qt.call(x,"index")&&(w.index=x.index,w.input=x.input),w}(c);else{var g=Kt(c),y=g==sn||g=="[object GeneratorFunction]";if(rt(c))return c.slice();if(g==cn||g==ln||y&&!h)p=y?{}:function(x){return typeof x.constructor!="function"||qe(x)?{}:Re(Tt(x))}(c);else{if(!un[g])return h?c:{};p=tn(c,g)}}v||(v=new Nt);var b=v.get(c);if(b)return b;v.set(c,p),an(c)?c.forEach(function(x){p.add(dn(x,u,f,x,c,v))}):on(c)&&c.forEach(function(x,re){p.set(re,dn(x,u,f,re,c,v))});var gn=m?void 0:Mt(c);return function(x,re){for(var w=-1,J=x==null?0:x.length;++w<J&&re(x[w],w,x)!==!1;);}(gn||c,function(x,re){gn&&(x=c[re=x]),He(p,re,dn(x,u,f,re,c,v))}),p}un[ln]=un["[object Array]"]=un["[object ArrayBuffer]"]=un["[object DataView]"]=un["[object Boolean]"]=un["[object Date]"]=un["[object Float32Array]"]=un["[object Float64Array]"]=un["[object Int8Array]"]=un["[object Int16Array]"]=un["[object Int32Array]"]=un["[object Map]"]=un["[object Number]"]=un[cn]=un["[object RegExp]"]=un["[object Set]"]=un["[object String]"]=un["[object Symbol]"]=un["[object Uint8Array]"]=un["[object Uint8ClampedArray]"]=un["[object Uint16Array]"]=un["[object Uint32Array]"]=!0,un["[object Error]"]=un[sn]=un["[object WeakMap]"]=!1;function fn(c){return dn(c,5)}const pn=(c,u)=>{const f=Object.assign({dayjs:ce},u);let d="";const h=[];for(const m in f)d+=`${m},`,h.push(f[m]);d=d.replace(/,$/,"");const v=`function (${d}){return ${c}}`;let p;try{p=Function(`"use strict";return (${v})`)()(...h)}catch{return c}return p},hn=(c="",{textData:u,codeData:f}={},{useNewline:d=!1,useSpace:h=!1}={})=>{const v=window.config||{},p=Object.assign(Object.assign({},v),u),m=String(c||"").match(/\{(.+?)\}/g);if(m==null||m.length===0)return c;for(let g=0;g<m.length;g++){const y=m[g];let b=y.slice(1,-1).trim();const gn=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,x=b.match(gn);for(let re=0;re<x.length;re++){const w=x[re],J=p[w];J!=null&&typeof J!="function"&&(b=b.replace(w,J))}(/\(.*\)/g.test(b)||/[+/\\*]/g.test(b))&&(b=pn(b,f)),c=c.replace(y,b)}return d&&(c=c==null?void 0:c.replace(/\n|\\n/g,"<br/>")),h&&(c=c==null?void 0:c.replace(/\s{2,}?/g," ")),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 d=0;d<f;d++){const h=u[d];if(typeof h=="string"&&c.toLocaleLowerCase().includes(h.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),_n=(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,c.fieldValue||delete c.fieldValue;else{const{calcWays:f=[],dateCalcTypes:d=[],activeKey:h,componentId:v=""}=c;if(h===5&&(f!=null&&f.length)&&(d!=null&&d.length)&&v){const p=f[0].split("-");(p==null?void 0:p.length)>1&&p[0]==="rangeValue"&&(c.calcWays=((m,g={})=>{const{around:y,unit:b,id:gn}=m;let x="";const{pageMode:re="",componentList:w=[]}=(g==null?void 0:g.graphicConfig)||{};let J=null,Fn=null;if(re==="design"){const Bn=w==null?void 0:w.find(qn=>qn.id===gn);if(!Bn)return[];const{interval:j,intervalUnit:vn,startTime:Pn,endTime:Rn,operate:zn,useCurrentTime:Un}=Bn||{};if(Un&&(J=ce().subtract(j,vn),Fn=ce()),Pn&&(J=ce(Pn)),Rn&&(Fn=ce(Rn)),zn){const{type:qn,value:Qn,mode:Jn}=zn;switch(qn){case"add":J=J&&J.add(Qn,Jn),Fn=Fn&&Fn.add(Qn,Jn);break;case"minus":J=J&&J.subtract(Qn,Jn),Fn=Fn&&Fn.subtract(Qn,Jn)}}}else{const Bn=An(gn)||{};_(Bn.startTime)&&(J=ce(_(Bn.startTime))),_(Bn.endTime)&&(Fn=ce(_(Bn.endTime)))}return J&&Fn&&(x=`${y==="before"?"-":""}${Fn.diff(J,b.toLowerCase())+1}`),x?[x]:[]})({around:p[1],unit:d[0],id:v})),delete c.radioValue}if(mn(c,"dataType")){if(c.fieldType==="DATE"&&(c.label=c.fieldName),c.dataType==="component")if(c.fieldValue==="PARENT"){let p=c.modelKey;p&&c.prop&&(p+=`-${c.prop}`),c.fieldValue="${"+p+"}"}else c.fieldValue="${"+c.fieldValue+"}";delete c.dataType}mn(c,"activeKey")&&delete c.activeKey,mn(c,"radioValue")&&delete c.radioValue,mn(c,"indexCode")&&(c.hrpIndexCode=c.indexCode,delete c.indexCode),mn(c,"indexCodeNum")&&(c.hrpIndexCodeNum=c.indexCodeNum,delete c.indexCodeNum),c.dataType!=="component"&&c.useCurrentTime&&(c.fieldValue=ce().format(c.dateFormat)),mn(c,"modelKey")&&delete c.modelKey,mn(c,"prop")&&delete c.prop,delete c.useCurrentTime}},jn=(c,u)=>{const f=[];return c!=null&&c.length&&fn(c).forEach(d=>{if(d.join&&d.conditions){const h=!d.conditions.some(v=>v.join&&v.conditions);d.conditions.forEach((v,p)=>{_n(v,u);const m={};if(p<d.conditions.length-1&&(m.join=d.join),h)f.push(Object.assign(Object.assign({},m),v));else if(v.join&&v.conditions){const g=u?"sqlConditions":"conditions";f.push(Object.assign({[g]:jn([v],u)},m))}else f.push(Object.assign(Object.assign({},m),v))})}else _n(d,u),f.push(d)}),f},On=(c={},u)=>{if(c!=null&&c.sortCpnts&&u){const Rn=kn(c);Rn&&(u.sort=Rn)}const{label:f,name:d,location:h,show:v,indexCode:p,indexCodeNum:m,calcType:g="COLUMN",builtInFormula:y,builtInValueSource:b,builtInCalcWay:gn,formula:x,conditions:re,aggregate:w,distinct:J,dimByCount:Fn,dataTo:Bn,sort:j}=c;let vn;if(re&&(vn=jn(re)),g==="COMPONENT"){const Rn={};return Nn(Rn,b),{label:f.trim(),columnName:d,show:v,calcType:g,componentAlias:gn,componentValue:Rn.fieldValue||null}}const Pn={label:f.trim(),columnName:d,location:h,show:v,calcType:Bn==="1"?"VIEW":g,hrpIndexCode:p,hrpIndexCodeNum:m,aggregate:w,builtInFormula:y,builtInValueSource:b,formula:x,conditions:vn};if(j&&(Pn.sort={columnName:d,label:Pn.label,order:j,type:"NORMAL"}),y!=="DATE_OFFSET")return d==="the_count"&&(Pn.calcType="AGGREGATE",Pn.distinct=!!J,Pn.typeGuid=Fn),Object.assign(Object.assign({},Pn),{builtInCalcWay:gn});{const Rn=gn.split("-");if((Rn==null?void 0:Rn.length)===3){let zn=Rn[0];return Rn[2]==="before"&&Rn[0]!=="0"&&(zn=`-${Rn[0]}`),Object.assign(Object.assign({},Pn),{calcWays:[zn],dateCalcTypes:[Rn[1]]})}}},Cn=c=>{if(!c)return[];const u=fn((c==null?void 0:c.controlList)||[]).filter(J=>J.conditionKey!=="parentCode"),{classificationList:f=[],rowHeaderList:d=[],dimensionList:h=[],seriesList:v=[],leftAxisList:p=[],rightAxisList:m=[],queryColumnList:g=[],indexLibColumns:y=[],indicators:b=[]}=c;Tn(u);const gn=[...f,...d,...h,...v,...p,...m,...g,...y,...b],x=[];for(const J of gn){const Fn=bn((J==null?void 0:J.conditions)||[]);if(Fn!=null&&Fn.length){const Bn=Fn.filter(j=>(j==null?void 0:j.dataType)==="component").map(j=>{const vn={};return j!=null&&j.dateFormat&&(vn.format=j.dateFormat),j.fieldValue==="PARENT"&&(vn.id="PARENT",vn.keyName=j.modelKey,vn.modelKey=j.modelKey,vn.prop=j.prop),Object.assign({conditionKey:j.fieldName,conditionLabel:j.fieldName,conditionName:j.fieldName,conditionValueType:j.fieldType,id:j.componentId,keyName:j.fieldValue,rule:j.rule,notGlobal:!0,indexCode:j.indexCode,typeGuid:j.typeGuid,indexCodeNum:j.indexCodeNum},vn)});if(Bn!=null&&Bn.length)for(const j of Bn)x.find(vn=>vn.keyName===j.keyName)||x.push(j)}}const re=x.length,w=u;for(let J=0;J<re;J++){const Fn=x[J];if((Fn==null?void 0:Fn.conditionKey)==="parentCode")continue;const{id:Bn,keyName:j,prop:vn,format:Pn,modelKey:Rn,dataType:zn="component",customValue:Un}=Fn,qn=Ln(Fn);Nn(qn,Bn,{prop:vn,dateFormat:Pn,modelKey:Rn,keyName:j}),zn===""&&(qn.fieldValue=Un||""),w.push(qn)}for(let J=w.length-1;J>=0;J--){const Fn=w[J];Fn.globalCondition||bn(w).find(Bn=>Bn.alias===Fn.alias&&Bn.globalCondition)&&w.splice(J,1)}return w};function Ln(c){const{id:u,keyName:f,conditionLabel:d,conditionKey:h,conditionValueType:v,prop:p,rule:m="NONE",notGlobal:g=!1,indexCode:y,typeGuid:b,indexCodeNum:gn,dataType:x="component"}=c;let re=f||u;re&&p&&(re+=`-${p}`);let w=m;return w==="NONE"&&(w=["startTime","endTime"].includes(p)?p==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":f!=null&&f.includes("startTime")?p==="GREATER_EQUAL":f!=null&&f.includes("endTime")?p==="LESS_EQUAL":"EQUAL"),u==="PARENT"&&(re=c.modelKey,re&&p&&(re+=`-${p}`),w=m),{rule:w,label:d,fieldName:h,fieldValue:"",valueType:v,alias:re,globalCondition:!g,indexCode:y,typeGuid:b,indexCodeNum:gn,dataType:x}}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:d,prop:h,modelKey:v,format:p,dataType:m="component",customValue:g}=u,y=Ln(u);Nn(y,f,{prop:h,dateFormat:p,modelKey:v,keyName:d}),m===""&&(y.fieldValue=g||"");for(const b in y)u[b]=y[b];for(const b of Sn)delete u[b]}}function Nn(c,u,f){const{prop:d="",dateFormat:h="",modelKey:v="",keyName:p="",operateValue:m,operateMode:g,operateType:y}=f||{},b=v||p;if(u==="PARENT"&&b&&d){const j=window.config.record;let vn=d,Pn=h;const Rn=d.match(/\{(.+?)\}/g);if(Rn!=null&&Rn.length){const zn=Rn[0].slice(1,-1).trim();vn=d.replace(Rn[0],""),Pn=zn,c.dateFormat=Pn}if(j&&j[b]){const zn=_(j[b][vn]);ce.isDayjs(zn)?c.fieldValue=zn.format(Pn||"YYYY-MM-DD"):c.fieldValue=zn}return}const gn=An(u)||{},{value:x,format:re="YYYY-MM-DD",type:w="",useCurrentTime:J,RECORD:Fn}=gn||{},Bn=h||re;if(yn(w,"date")){let j;if(j=J?x?_(x):ce():_(x),typeof j=="string"&&(j=ce(j)),m&&g&&y)switch(y){case"add":j=j.add(m,g);break;case"minus":j=j.subtract(m,g)}c.fieldValue=j==null?void 0:j.format(Bn),c.dateFormat=Bn}else if(yn(w,"rangepicker")){let j=d;if(!d){const Pn=p&&p.split("-");Pn!=null&&Pn.length&&(j=Pn[Pn.length-1])}if(!j)return;let vn=null;if(_(gn[j])&&(vn=ce(_(gn[j]))),m&&g&&y){if(m==="rangeValue"){if(gn.startTime&&gn.endTime){const Pn=_(gn.endTime).diff(_(gn.startTime),g)+1;switch(y){case"add":vn=vn&&vn.add(Pn,g);break;case"minus":vn=vn&&vn.subtract(Pn,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)),j==="rangeValue"&&gn.startTime&&gn.endTime){const Pn=function(Rn){const zn=Rn.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);Pn&&(c.fieldValue=_(gn.endTime).diff(_(gn.startTime),Pn)+1)}c.dateFormat=Bn}else yn(w,xn)?c.fieldValue=v&&Fn?Fn[v]:!v&&Fn?Fn.value:_(x):yn(w,"select")&&Array.isArray(_(x))?c.fieldValue=_(x).join(","):c.fieldValue=_(x)}const $n=c=>{var u;if(c){const f=Array.isArray(c)?fn(c):[fn(c)];let d="",h=[];const v=[],p=[],m=[];for(const g of f){if(g.defaultCode&&(g.label=g.columnName,delete g.defaultCode),g.type==="CUSTOM"&&(h=g.customOrderColumns),d=g.type,v.push(g.label),(u=g.columnName)===null||u===void 0?void 0:u.includes("_ecanrepeat_")){const y=g.columnName.split("_ecanrepeat_");p.push(y[0])}else p.push(g.columnName);m.push(g.order)}return d!=="CUSTOM"&&(v==null?void 0:v.length)>1&&(d="COMBINATION"),d==="CUSTOM"?{label:v.join(","),columnName:p.join(","),type:d,customOrderColumns:h}:{label:v.join(","),columnName:p.join(","),order:m.join(","),type:d}}return c},kn=c=>{const{sortCpnts:u=[]}=c;let f,d="";for(const h of u){const v=An(h)||{},{type:p,RECORD:m}=v;if(yn(p,"image")&&yn(m==null?void 0:m.value,["asc","desc"])){d=m.value.toUpperCase();break}}return d&&(f={label:c.label,columnName:c.name,order:d,type:"NORMAL"}),f},Dn=(c,u={})=>{var f,d,h,v,p,m,g,y;const{graphicConfig:b,type:gn,globalModel:x,isGroupTable:re=!1}=c;x&&(wn=x);const w=yn(gn,"pivottable");let J,{source:Fn,dataViewId:Bn,plugin:j="1",layer:vn,chartType:Pn,classificationList:Rn=[],rowHeaderList:zn=[],dimensionList:Un=[],seriesList:qn=[],leftAxisList:Qn=[],rightAxisList:Jn=[],queryColumnList:Zn=[],indexLibColumns:Xn=[],indicators:nr=[],controlList:sr=[],formFields:ur={},variableList:Hn=[],variableConditions:Kn=[],dataSourceId:Vn="",idxLibMode:Gn,preview:er=!1,edvDataSetId:Wn,compositeIndicator:or}=b||{},cr=[];if((b==null?void 0:b.pageMode)==="design"?(cr=((f=b.sqlConditions)!==null&&f!==void 0?f:[]).map(br=>{const hr={};if(mn(br,"globalCondition")||br.join||(hr.globalCondition=!0),!br.join){const gr=br.rule||"EQUAL";hr.rule=gr==="NONE"?"EQUAL":gr}return Object.assign(Object.assign({},br),hr)}),Kn!=null&&Kn.length&&(cr=cr.concat(Kn))):(cr=Cn(b),Hn!=null&&Hn.length&&(cr=cr.concat(function(br){const hr=[];if(br!=null&&br.length){for(const gr of br)if(gr.variableName){const Er={variateName:gr.variableName,globalCondition:!1,valueType:gr.variableType,alias:gr.keyName||""};Nn(Er,gr.id,{dateFormat:gr.format,prop:gr.dateTypeValue,keyName:gr.keyName,operateType:gr.operateType,operateMode:gr.operateMode,operateValue:gr.operateValue}),gr.dataType===""&&(Er.fieldValue=gr.variableValue),gr.format&&(Er.dateFormat=gr.format),gr.label&&(Er.label=gr.label),hr.push(Er)}}return hr}(Hn)))),cr==null?void 0:cr.length){const br=cr.filter(gr=>gr.globalCondition),hr=cr.filter(gr=>!gr.globalCondition);(br==null?void 0:br.length)>1&&(cr=[{join:"&&",conditions:br},...hr])}cr!=null&&cr.length&&(cr=jn(cr,"1")),vn==null&&(vn=yn(gn,["table","card"])||yn(gn,["list","circulate"])&&(Rn==null?void 0:Rn.length)>1?"1":yn(gn,["select","checkbox","radio"])?"3":yn(gn,["indexPanel"])?"4":"2"),yn(gn,["indexPanel"])&&(j="3");const ar=[];let tr,pr="";if(Array.isArray(Rn)&&Rn.length>0&&(!["ecanList","ecanCirculate"].includes(gn)||(Rn==null?void 0:Rn.length)===1)){const br=Rn.length;for(let hr=0;hr<br;hr++){const gr=Rn[hr]||{},{label:Er="",name:wr="",show:_r=!1,sort:Rr,customGroup:Mr,conditions:Dr,dateFormat:Br,typeGuid:Vr="",truncations:Gr=[]}=gr;if(_r||br===1){pr=Vr,J={label:Er.trim(),columnName:wr,show:_r,sort:kn(gr)||$n(Rr)||Rr,customGroup:Mr,conditions:jn(Dr),typeGuid:Vr},Br&&(J.dateFormat=Br),wr!=="the_date"||J.dateFormat||(J.dateFormat="YYYY-MM-DD");const Hr={};if(Array.isArray(Gr)&&Gr.length>0){const Ur=Gr.length;for(let Qr=0;Qr<Ur;Qr++){const Zr=Gr[Qr]||{},{rule:ni="",num:Ar=0,name:Ir=""}=Zr;ni&&Ar&&(Hr.num=Ar,Hr.rule=ni,Ir&&(Hr.otherGroupName=Ir))}}if(!((d=Object.keys(Hr))===null||d===void 0)&&d.length&&(J.truncation=Hr),!yn(gn,["scatter","valueline"]))break;ar.push(J)}}}if(Array.isArray(qn)&&qn.length>0){const br=qn.length;for(let hr=0;hr<br;hr++){const gr=qn[hr]||{},{label:Er="",name:wr="",show:_r=!1,sort:Rr,customGroup:Mr,conditions:Dr,typeGuid:Br,dateFormat:Vr=""}=gr;if(_r||br===1){tr={label:Er.trim(),columnName:wr,show:_r,sort:$n(Rr),customGroup:Mr,conditions:jn(Dr),typeGuid:Br},Vr?tr.dateFormat=Vr:wr==="the_date"&&(tr.dateFormat="YYYY-MM-DD");break}}}const Yn=[];Qn==null||Qn.forEach(br=>{br.location="LEFT",Yn.push(On(br,J))}),Jn==null||Jn.forEach(br=>{br.location="RIGHT",Yn.push(On(br,J))});let ir=nr;u!=null&&u.pivotTableCal&&(ir=((h=u.pivotTableCal)===null||h===void 0?void 0:h.indicators)||[]),ir==null||ir.forEach(br=>{br.location="LEFT",Yn.push(On(br,J))});const lr=[];["ecanList","ecanCirculate"].includes(gn)&&(Rn==null?void 0:Rn.length)>1&&(Zn=Rn),u!=null&&u.pivotTableCal&&(Zn=((v=u.pivotTableCal)===null||v===void 0?void 0:v.dimensions)||[]),Zn==null||Zn.forEach(br=>{const{label:hr,name:gr,location:Er,show:wr,indexCode:_r,sort:Rr,typeGuid:Mr,indexCodeNum:Dr,dateFormat:Br,conditions:Vr}=br;let Gr=$n(Rr);if(u.sort){const{field:Ur,order:Qr}=u.sort;let Zr=Yn.find(ni=>ni.label===Ur);Zr||hr!==Ur||(Zr=br),Zr&&(Gr={columnName:Zr.columnName,label:u.sort.field,order:Qr.toUpperCase(),type:"NORMAL"})}const Hr={label:hr,columnName:gr,location:Er,show:wr,sort:Gr,calcType:"COLUMN",hrpIndexCode:_r,hrpIndexCodeNum:Dr,conditions:jn(Vr),typeGuid:Mr};Br&&(Hr.dateFormat=Br),gr!=="the_date"||Hr.dateFormat||(Hr.dateFormat="YYYY-MM-DD"),lr.push(Hr)});const vr=[];["ecanTable"].includes(gn)&&b.isIndexSet&&Xn.forEach(br=>{const hr={label:br.label,calcType:br.calcType,show:br.show};br.formula&&(hr.formula=br.formula),vr.push(hr)});let dr=[],yr=[];if(Array.isArray(zn)&&zn.length>0?yr=zn:Array.isArray(Un)&&Un.length>0&&(yr=Un),yr==null?void 0:yr.length){const br=yr.length;for(let hr=0;hr<br;hr++){const gr=yr[hr]||{},{label:Er="",name:wr="",show:_r=!1,sort:Rr,customGroup:Mr,conditions:Dr,truncations:Br,typeGuid:Vr="",dateFormat:Gr}=gr;let Hr=$n(Rr);if(u.sort){const{field:Zr,order:ni}=u.sort;let Ar=Yn.find(Ir=>Ir.label===Zr);Ar||gr.label!==Zr||(Ar=gr),Ar&&(Hr={columnName:Ar.columnName,label:u.sort.field,order:ni.toUpperCase(),type:"NORMAL"})}const Ur={label:Er.trim(),columnName:wr,show:_r,sort:Hr,customGroup:Mr,conditions:jn(Dr),typeGuid:Vr};Gr&&(Ur.dateFormat=Gr),wr!=="the_date"||Ur.dateFormat||(Ur.dateFormat="YYYY-MM-DD");const Qr={};if(Array.isArray(Br)&&Br.length>0){const Zr=Br.length;for(let ni=0;ni<Zr;ni++){const Ar=Br[ni]||{},{rule:Ir="",num:Or=0,name:Fr=""}=Ar;Ir&&Or&&(Qr.num=Or,Qr.rule=Ir,Fr&&(Qr.otherGroupName=Fr))}}!((p=Object.keys(Qr))===null||p===void 0)&&p.length&&(Ur.truncation=Qr),dr.push(Ur)}}let fr,mr=[];const xr=[];if(u!=null&&u.pivotTableCal){let br=[];const{calc:hr=[],filter:gr=[],truncations:Er=[],sorts:wr=[],aggregateMethod:_r=[],rowDimensionKeys:Rr=[],colDimensionKeys:Mr=[]}=u.pivotTableCal;if(Yn.push(...hr),gr==null?void 0:gr.length){const Dr=function Br(Vr){const Gr=[];for(const Hr of Vr)Hr.conditions?Gr.push(...Br(Hr.conditions)):Hr.conditionKey==="the_date"&&Gr.push(Hr);return Gr}(sr);for(const Br of gr){const{type:Vr}=Br,Gr=e(Br,["type"]);Vr==="indicators"?br=Yn:Vr==="dimension"&&(br=lr);const Hr=br.find(Ur=>Ur.columnName===Br.fieldName&&Ur.label===Br.label);if(Hr){if(Vr==="indicators")Hr.filter={rule:Gr.rule,fieldValue:Gr.fieldValue};else if(Vr==="dimension"){let Ur=!0;Gr.fieldName==="the_date"&&(Dr==null?void 0:Dr.length)===2&&(Ur=!1,xr.push(Gr)),Ur&&(Hr.conditions||(Hr.conditions=[]),Hr.conditions.push(Gr))}}}}if(Er!=null&&Er.length)for(const Dr of Er){const Br=lr.find(Vr=>Vr.label===Dr.key);Br&&(Br.truncation={num:Dr.num,rule:Dr.rule})}if(wr!=null&&wr.length)for(const Dr of wr){const{fieldType:Br,columnData:Vr}=Dr,Gr=e(Dr,["fieldType","columnData"]);Br==="indicators"?(br=Yn,fr=Vr):Br==="dimension"&&(br=lr);const Hr=br.find(Ur=>Ur.label===Gr.label);Hr&&(Hr.sort=Object.assign(Object.assign({},Gr),{columnName:Hr.columnName}))}if(!((m=Object.keys(_r))===null||m===void 0)&&m.length)for(const Dr in _r){const Br=lr.find(Vr=>Vr.label===Dr);Br&&(!((g=_r[Dr])===null||g===void 0)&&g.length)&&(Br.aggregateMethod=_r[Dr])}dr=[],mr=[];for(const Dr of lr)Rr.includes(Dr.columnName)?dr.push(Dr):Mr.includes(Dr.columnName)&&mr.push(Dr)}if(yn(gn,["text","proportion","counter"])?Pn="zb":yn(gn,["valueline"])?Pn="valueline":yn(gn,["indexPanel"])&&(Pn="indexPanel"),re||gn==="card"){if(dr.length===0||Yn.length===0)return;Pn="grouptable"}else if(vn==="1"&&!lr.length&&!vr.length||["2","4"].includes(vn)&&Yn.length===0||!(vn!=="3"||(pr||Fn==="EDV_DATA_SET")&&ur.labelField&&ur.valueField)||vn==="3"&&gn==="ecanDataSelect"&&Yn.length===0)return;let Cr;if(Un!=null&&Un.length&&(vn="1",Pn="grouptable"),!yn(gn,["scatter","valueline"])&&((y=Object.keys(ur))===null||y===void 0?void 0:y.length)){const br=bn(sr).find(gr=>gr.conditionKey==="parentCode"),hr={};if(br){const gr=An(br.id)||{};if(!(gr!=null&&gr.itemCodes))return;hr.parentItemCodes=gr.itemCodes}gn==="ecanDataSelect"&&(hr.indicatorList=Yn.filter(gr=>gr.show)),Fn==="EDV_DATA_SET"&&(hr.edvDataSetId=Wn),J.sort&&(hr.sort=J.sort),Cr=Object.assign({url:"/diagram/formData",source:Fn,dataViewId:Bn,plugin:"4",layer:vn,chartType:"normalSelect",rangeIndexTypeGuid:pr,type:gn==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:ur.labelField,valueField:ur.valueField,sqlConditions:cr,idxLibMode:"WITH_DATE_DIM_TABLE",dataSourceId:Vn,keyName:c.keyName},hr)}else{let br={};br=yn(gn,["scatter","valueline"])?{classifications:ar}:{classification:J},vr!=null&&vr.length&&(br.indexLibColumns=vr,br.isIndexSet=!0),yn(gn,"table")&&b.isIndexSet&&(br.compositeIndicator=or);const hr=cr.map(gr=>{const{fieldValue:Er}=gr,wr={};return Er&&Array.isArray(Er)&&(wr.fieldValue=JSON.stringify(Er)),Object.assign(Object.assign({},gr),wr)});xr!=null&&xr.length&&function gr(Er){for(const wr of Er)if(wr.sqlConditions)gr(wr.sqlConditions);else if(wr.fieldName==="the_date"){const _r=xr.find(Rr=>Rr.prop===wr.prop);_r&&(wr.fieldValue=_r.fieldValue)}}(hr),Cr=Object.assign({url:"/diagram",source:Fn,dataViewId:Bn,plugin:w?"5":j,layer:vn,chartType:w?"pivot-table":Pn,series:tr,indicatorList:Yn,queryColumns:re?[]:lr,pageFlag:!0,edvDataSetId:Wn||"",sqlConditions:hr,idxLibMode:Gn,dataSourceId:Vn,preview:er,rowHeaders:dr,keyName:c.keyName,columnData:fr,columnHeaders:mr},br)}return Cr},Mn=(c=[],u,f=!1)=>{let{name:d="name",types:h=[]}=u||{};d=(d==null?void 0:d.trim())||d;const v=new Set,p=new Map,m=c.length,g=h.length;if(m!==1||f)for(let gn=0;gn<m;gn++){const x=c[gn],re=x[d];v.add(re);for(let w=0;w<g;w++){const J=h[w],{label:Fn,value:Bn}=J,j=Object.assign(Object.assign({},x),{value:x[Bn]});if(p.has(Fn)){const vn=p.get(Fn);vn.push(j),p.set(Fn,vn)}else p.set(Fn,[j])}}else{const gn=[];for(let re=0;re<g;re++){const w=h[re],{label:J,value:Fn}=w,Bn=Object.assign(Object.assign({},c[0]),{value:c[0][Fn]});v.add(J),gn.push(Bn)}const x=c[0][d]||"";p.set(x,gn)}const y=Array.from(v),b=[];for(const[gn,x]of p)b.push({name:gn,data:x});return{dimensions:y,dataset:b}},En=(c,u)=>{let{name:f="name",value:d="value",type:h="type"}=u||{};f=f==null?void 0:f.trim(),d=d==null?void 0:d.trim(),h=h==null?void 0:h.trim();const v=new Map,p=c.length;for(let y=0;y<p;y++){const b=c[y],gn=b[f]||"",x=b[d]||"",re=b[h]||"";if(v.has(re)){const w=v.get(re);w.push(Object.assign({name:gn,value:x},b)),v.set(re,w)}else v.set(re,[Object.assign({name:gn,value:x},b)])}const m=[],g=[];for(const[y,b]of v)if(g.push({name:y,data:b}),b==null?void 0:b.length)if(m.length)for(const gn of b)m.includes(gn.name)||m.push(gn.name);else m.push(...b.map(gn=>gn.name));return{dimensions:m,dataset:g}},In=(c,u)=>{var f;if(c==null)return u;const d=c.match(/\{.*\}/g);if(d==null||d.length===0)return u;const h=d.length;for(let v=0;v<h;v++){const p=d[v];if(p==null||p==="")break;let m=(f=p.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(p,g)}catch{c=c.replace(p,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"}),d=lodashEs.without(styleList,...u);return vue.computed(()=>{var p,m;const h=lodashEs.pick(c,d),v=["width","height","top","left"];for(const g of v)mn(h,g)&&(["width","height"].includes(g)&&((p=c[g])==null?void 0:p.suffix)==="%"&&vue.unref(f)==="design"?h[g]="100%":(m=c[g])!=null&&m.suffix&&(h[g]=(c[g].value||0)+c[g].suffix));return h})},useOnEvent=(c,u)=>{vue.watch(()=>c.id,f=>{const d=vue.inject(EVENT_BUS,{onEvent:(h,v)=>{}});f!=null&&f!==""&&d.onEvent(f,u)},{immediate:!0})},ignoreClickType=["ecanTable"],useEmitEvent=c=>{const u=c.events,f=c.id,d=vue.inject(EVENT_BUS,{emitEvent:(p,m,g)=>{}}),h=vue.inject(COMMON_OPERATE,{operateAction:(p,m)=>{}}),{touchEventId:v}=vue.inject(GLOBAL_CONFIG,{touchEventId:vue.ref("")});return(p,m=()=>{},g)=>function(){m.call(this,...arguments);const{emitEvent:y}=d,{operateAction:b}=h;p==="click"&&!u.find(x=>x.on==="click")&&(!ignoreClickType.includes(c.type)&&c.dataType==="indicator"||c.parentId)&&b("SHOW_INDICATOR_DETAIL_MODAL",{props:c}),u.forEach(gn=>{if(p===gn.on)try{v.value=f,g?y(gn.target,gn.emit,g):y(gn.target,gn.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 d(){return this instanceof d?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(d){var h=Object.getOwnPropertyDescriptor(c,d);Object.defineProperty(f,d,h.get?h:{enumerable:!0,get:function(){return c[d]}})}),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,d){c.exports=d()})(commonjsGlobal,function(){var f=f||function(d,h){var v;if(typeof window<"u"&&window.crypto&&(v=window.crypto),typeof self<"u"&&self.crypto&&(v=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(v=globalThis.crypto),!v&&typeof window<"u"&&window.msCrypto&&(v=window.msCrypto),!v&&typeof commonjsGlobal<"u"&&commonjsGlobal.crypto&&(v=commonjsGlobal.crypto),!v&&typeof commonjsRequire=="function")try{v=require$$0}catch{}var p=function(){if(v){if(typeof v.getRandomValues=="function")try{return v.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof v.randomBytes=="function")try{return v.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},m=Object.create||function(){function j(){}return function(vn){var Pn;return j.prototype=vn,Pn=new j,j.prototype=null,Pn}}(),g={},y=g.lib={},b=y.Base=function(){return{extend:function(j){var vn=m(this);return j&&vn.mixIn(j),(!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 j=this.extend();return j.init.apply(j,arguments),j},init:function(){},mixIn:function(j){for(var vn in j)j.hasOwnProperty(vn)&&(this[vn]=j[vn]);j.hasOwnProperty("toString")&&(this.toString=j.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),gn=y.WordArray=b.extend({init:function(j,vn){j=this.words=j||[],vn!=h?this.sigBytes=vn:this.sigBytes=j.length*4},toString:function(j){return(j||re).stringify(this)},concat:function(j){var vn=this.words,Pn=j.words,Rn=this.sigBytes,zn=j.sigBytes;if(this.clamp(),Rn%4)for(var Un=0;Un<zn;Un++){var qn=Pn[Un>>>2]>>>24-Un%4*8&255;vn[Rn+Un>>>2]|=qn<<24-(Rn+Un)%4*8}else for(var Qn=0;Qn<zn;Qn+=4)vn[Rn+Qn>>>2]=Pn[Qn>>>2];return this.sigBytes+=zn,this},clamp:function(){var j=this.words,vn=this.sigBytes;j[vn>>>2]&=4294967295<<32-vn%4*8,j.length=d.ceil(vn/4)},clone:function(){var j=b.clone.call(this);return j.words=this.words.slice(0),j},random:function(j){for(var vn=[],Pn=0;Pn<j;Pn+=4)vn.push(p());return new gn.init(vn,j)}}),x=g.enc={},re=x.Hex={stringify:function(j){for(var vn=j.words,Pn=j.sigBytes,Rn=[],zn=0;zn<Pn;zn++){var Un=vn[zn>>>2]>>>24-zn%4*8&255;Rn.push((Un>>>4).toString(16)),Rn.push((Un&15).toString(16))}return Rn.join("")},parse:function(j){for(var vn=j.length,Pn=[],Rn=0;Rn<vn;Rn+=2)Pn[Rn>>>3]|=parseInt(j.substr(Rn,2),16)<<24-Rn%8*4;return new gn.init(Pn,vn/2)}},w=x.Latin1={stringify:function(j){for(var vn=j.words,Pn=j.sigBytes,Rn=[],zn=0;zn<Pn;zn++){var Un=vn[zn>>>2]>>>24-zn%4*8&255;Rn.push(String.fromCharCode(Un))}return Rn.join("")},parse:function(j){for(var vn=j.length,Pn=[],Rn=0;Rn<vn;Rn++)Pn[Rn>>>2]|=(j.charCodeAt(Rn)&255)<<24-Rn%4*8;return new gn.init(Pn,vn)}},J=x.Utf8={stringify:function(j){try{return decodeURIComponent(escape(w.stringify(j)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(j){return w.parse(unescape(encodeURIComponent(j)))}},Fn=y.BufferedBlockAlgorithm=b.extend({reset:function(){this._data=new gn.init,this._nDataBytes=0},_append:function(j){typeof j=="string"&&(j=J.parse(j)),this._data.concat(j),this._nDataBytes+=j.sigBytes},_process:function(j){var vn,Pn=this._data,Rn=Pn.words,zn=Pn.sigBytes,Un=this.blockSize,qn=Un*4,Qn=zn/qn;j?Qn=d.ceil(Qn):Qn=d.max((Qn|0)-this._minBufferSize,0);var Jn=Qn*Un,Zn=d.min(Jn*4,zn);if(Jn){for(var Xn=0;Xn<Jn;Xn+=Un)this._doProcessBlock(Rn,Xn);vn=Rn.splice(0,Jn),Pn.sigBytes-=Zn}return new gn.init(vn,Zn)},clone:function(){var j=b.clone.call(this);return j._data=this._data.clone(),j},_minBufferSize:0});y.Hasher=Fn.extend({cfg:b.extend(),init:function(j){this.cfg=this.cfg.extend(j),this.reset()},reset:function(){Fn.reset.call(this),this._doReset()},update:function(j){return this._append(j),this._process(),this},finalize:function(j){j&&this._append(j);var vn=this._doFinalize();return vn},blockSize:16,_createHelper:function(j){return function(vn,Pn){return new j.init(Pn).finalize(vn)}},_createHmacHelper:function(j){return function(vn,Pn){return new Bn.HMAC.init(j,Pn).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,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(d){var h=f,v=h.lib,p=v.Base,m=v.WordArray,g=h.x64={};g.Word=p.extend({init:function(y,b){this.high=y,this.low=b}}),g.WordArray=p.extend({init:function(y,b){y=this.words=y||[],b!=d?this.sigBytes=b:this.sigBytes=y.length*8},toX32:function(){for(var y=this.words,b=y.length,gn=[],x=0;x<b;x++){var re=y[x];gn.push(re.high),gn.push(re.low)}return m.create(gn,this.sigBytes)},clone:function(){for(var y=p.clone.call(this),b=y.words=this.words.slice(0),gn=b.length,x=0;x<gn;x++)b[x]=b[x].clone();return y}})}(),f})}(x64Core)),x64Core.exports}var libTypedarrays={exports:{}},hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){if(typeof ArrayBuffer=="function"){var d=f,h=d.lib,v=h.WordArray,p=v.init,m=v.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,b=[],gn=0;gn<y;gn++)b[gn>>>2]|=g[gn]<<24-gn%4*8;p.call(this,b,y)}else p.apply(this,arguments)};m.prototype=v}}(),f.lib.WordArray})}(libTypedarrays)),libTypedarrays.exports}var encUtf16={exports:{}},hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.WordArray,p=d.enc;p.Utf16=p.Utf16BE={stringify:function(g){for(var y=g.words,b=g.sigBytes,gn=[],x=0;x<b;x+=2){var re=y[x>>>2]>>>16-x%4*8&65535;gn.push(String.fromCharCode(re))}return gn.join("")},parse:function(g){for(var y=g.length,b=[],gn=0;gn<y;gn++)b[gn>>>1]|=g.charCodeAt(gn)<<16-gn%2*16;return v.create(b,y*2)}},p.Utf16LE={stringify:function(g){for(var y=g.words,b=g.sigBytes,gn=[],x=0;x<b;x+=2){var re=m(y[x>>>2]>>>16-x%4*8&65535);gn.push(String.fromCharCode(re))}return gn.join("")},parse:function(g){for(var y=g.length,b=[],gn=0;gn<y;gn++)b[gn>>>1]|=m(g.charCodeAt(gn)<<16-gn%2*16);return v.create(b,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,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.WordArray,p=d.enc;p.Base64={stringify:function(g){var y=g.words,b=g.sigBytes,gn=this._map;g.clamp();for(var x=[],re=0;re<b;re+=3)for(var w=y[re>>>2]>>>24-re%4*8&255,J=y[re+1>>>2]>>>24-(re+1)%4*8&255,Fn=y[re+2>>>2]>>>24-(re+2)%4*8&255,Bn=w<<16|J<<8|Fn,j=0;j<4&&re+j*.75<b;j++)x.push(gn.charAt(Bn>>>6*(3-j)&63));var vn=gn.charAt(64);if(vn)for(;x.length%4;)x.push(vn);return x.join("")},parse:function(g){var y=g.length,b=this._map,gn=this._reverseMap;if(!gn){gn=this._reverseMap=[];for(var x=0;x<b.length;x++)gn[b.charCodeAt(x)]=x}var re=b.charAt(64);if(re){var w=g.indexOf(re);w!==-1&&(y=w)}return m(g,y,gn)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function m(g,y,b){for(var gn=[],x=0,re=0;re<y;re++)if(re%4){var w=b[g.charCodeAt(re-1)]<<re%4*2,J=b[g.charCodeAt(re)]>>>6-re%4*2,Fn=w|J;gn[x>>>2]|=Fn<<24-x%4*8,x++}return v.create(gn,x)}}(),f.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.WordArray,p=d.enc;p.Base64url={stringify:function(g,y=!0){var b=g.words,gn=g.sigBytes,x=y?this._safe_map:this._map;g.clamp();for(var re=[],w=0;w<gn;w+=3)for(var J=b[w>>>2]>>>24-w%4*8&255,Fn=b[w+1>>>2]>>>24-(w+1)%4*8&255,Bn=b[w+2>>>2]>>>24-(w+2)%4*8&255,j=J<<16|Fn<<8|Bn,vn=0;vn<4&&w+vn*.75<gn;vn++)re.push(x.charAt(j>>>6*(3-vn)&63));var Pn=x.charAt(64);if(Pn)for(;re.length%4;)re.push(Pn);return re.join("")},parse:function(g,y=!0){var b=g.length,gn=y?this._safe_map:this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var re=0;re<gn.length;re++)x[gn.charCodeAt(re)]=re}var w=gn.charAt(64);if(w){var J=g.indexOf(w);J!==-1&&(b=J)}return m(g,b,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function m(g,y,b){for(var gn=[],x=0,re=0;re<y;re++)if(re%4){var w=b[g.charCodeAt(re-1)]<<re%4*2,J=b[g.charCodeAt(re)]>>>6-re%4*2,Fn=w|J;gn[x>>>2]|=Fn<<24-x%4*8,x++}return v.create(gn,x)}}(),f.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(d){var h=f,v=h.lib,p=v.WordArray,m=v.Hasher,g=h.algo,y=[];(function(){for(var J=0;J<64;J++)y[J]=d.abs(d.sin(J+1))*4294967296|0})();var b=g.MD5=m.extend({_doReset:function(){this._hash=new p.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(J,Fn){for(var Bn=0;Bn<16;Bn++){var j=Fn+Bn,vn=J[j];J[j]=(vn<<8|vn>>>24)&16711935|(vn<<24|vn>>>8)&4278255360}var Pn=this._hash.words,Rn=J[Fn+0],zn=J[Fn+1],Un=J[Fn+2],qn=J[Fn+3],Qn=J[Fn+4],Jn=J[Fn+5],Zn=J[Fn+6],Xn=J[Fn+7],nr=J[Fn+8],sr=J[Fn+9],ur=J[Fn+10],Hn=J[Fn+11],Kn=J[Fn+12],Vn=J[Fn+13],Gn=J[Fn+14],er=J[Fn+15],Wn=Pn[0],or=Pn[1],cr=Pn[2],ar=Pn[3];Wn=gn(Wn,or,cr,ar,Rn,7,y[0]),ar=gn(ar,Wn,or,cr,zn,12,y[1]),cr=gn(cr,ar,Wn,or,Un,17,y[2]),or=gn(or,cr,ar,Wn,qn,22,y[3]),Wn=gn(Wn,or,cr,ar,Qn,7,y[4]),ar=gn(ar,Wn,or,cr,Jn,12,y[5]),cr=gn(cr,ar,Wn,or,Zn,17,y[6]),or=gn(or,cr,ar,Wn,Xn,22,y[7]),Wn=gn(Wn,or,cr,ar,nr,7,y[8]),ar=gn(ar,Wn,or,cr,sr,12,y[9]),cr=gn(cr,ar,Wn,or,ur,17,y[10]),or=gn(or,cr,ar,Wn,Hn,22,y[11]),Wn=gn(Wn,or,cr,ar,Kn,7,y[12]),ar=gn(ar,Wn,or,cr,Vn,12,y[13]),cr=gn(cr,ar,Wn,or,Gn,17,y[14]),or=gn(or,cr,ar,Wn,er,22,y[15]),Wn=x(Wn,or,cr,ar,zn,5,y[16]),ar=x(ar,Wn,or,cr,Zn,9,y[17]),cr=x(cr,ar,Wn,or,Hn,14,y[18]),or=x(or,cr,ar,Wn,Rn,20,y[19]),Wn=x(Wn,or,cr,ar,Jn,5,y[20]),ar=x(ar,Wn,or,cr,ur,9,y[21]),cr=x(cr,ar,Wn,or,er,14,y[22]),or=x(or,cr,ar,Wn,Qn,20,y[23]),Wn=x(Wn,or,cr,ar,sr,5,y[24]),ar=x(ar,Wn,or,cr,Gn,9,y[25]),cr=x(cr,ar,Wn,or,qn,14,y[26]),or=x(or,cr,ar,Wn,nr,20,y[27]),Wn=x(Wn,or,cr,ar,Vn,5,y[28]),ar=x(ar,Wn,or,cr,Un,9,y[29]),cr=x(cr,ar,Wn,or,Xn,14,y[30]),or=x(or,cr,ar,Wn,Kn,20,y[31]),Wn=re(Wn,or,cr,ar,Jn,4,y[32]),ar=re(ar,Wn,or,cr,nr,11,y[33]),cr=re(cr,ar,Wn,or,Hn,16,y[34]),or=re(or,cr,ar,Wn,Gn,23,y[35]),Wn=re(Wn,or,cr,ar,zn,4,y[36]),ar=re(ar,Wn,or,cr,Qn,11,y[37]),cr=re(cr,ar,Wn,or,Xn,16,y[38]),or=re(or,cr,ar,Wn,ur,23,y[39]),Wn=re(Wn,or,cr,ar,Vn,4,y[40]),ar=re(ar,Wn,or,cr,Rn,11,y[41]),cr=re(cr,ar,Wn,or,qn,16,y[42]),or=re(or,cr,ar,Wn,Zn,23,y[43]),Wn=re(Wn,or,cr,ar,sr,4,y[44]),ar=re(ar,Wn,or,cr,Kn,11,y[45]),cr=re(cr,ar,Wn,or,er,16,y[46]),or=re(or,cr,ar,Wn,Un,23,y[47]),Wn=w(Wn,or,cr,ar,Rn,6,y[48]),ar=w(ar,Wn,or,cr,Xn,10,y[49]),cr=w(cr,ar,Wn,or,Gn,15,y[50]),or=w(or,cr,ar,Wn,Jn,21,y[51]),Wn=w(Wn,or,cr,ar,Kn,6,y[52]),ar=w(ar,Wn,or,cr,qn,10,y[53]),cr=w(cr,ar,Wn,or,ur,15,y[54]),or=w(or,cr,ar,Wn,zn,21,y[55]),Wn=w(Wn,or,cr,ar,nr,6,y[56]),ar=w(ar,Wn,or,cr,er,10,y[57]),cr=w(cr,ar,Wn,or,Zn,15,y[58]),or=w(or,cr,ar,Wn,Vn,21,y[59]),Wn=w(Wn,or,cr,ar,Qn,6,y[60]),ar=w(ar,Wn,or,cr,Hn,10,y[61]),cr=w(cr,ar,Wn,or,Un,15,y[62]),or=w(or,cr,ar,Wn,sr,21,y[63]),Pn[0]=Pn[0]+Wn|0,Pn[1]=Pn[1]+or|0,Pn[2]=Pn[2]+cr|0,Pn[3]=Pn[3]+ar|0},_doFinalize:function(){var J=this._data,Fn=J.words,Bn=this._nDataBytes*8,j=J.sigBytes*8;Fn[j>>>5]|=128<<24-j%32;var vn=d.floor(Bn/4294967296),Pn=Bn;Fn[(j+64>>>9<<4)+15]=(vn<<8|vn>>>24)&16711935|(vn<<24|vn>>>8)&4278255360,Fn[(j+64>>>9<<4)+14]=(Pn<<8|Pn>>>24)&16711935|(Pn<<24|Pn>>>8)&4278255360,J.sigBytes=(Fn.length+1)*4,this._process();for(var Rn=this._hash,zn=Rn.words,Un=0;Un<4;Un++){var qn=zn[Un];zn[Un]=(qn<<8|qn>>>24)&16711935|(qn<<24|qn>>>8)&4278255360}return Rn},clone:function(){var J=m.clone.call(this);return J._hash=this._hash.clone(),J}});function gn(J,Fn,Bn,j,vn,Pn,Rn){var zn=J+(Fn&Bn|~Fn&j)+vn+Rn;return(zn<<Pn|zn>>>32-Pn)+Fn}function x(J,Fn,Bn,j,vn,Pn,Rn){var zn=J+(Fn&j|Bn&~j)+vn+Rn;return(zn<<Pn|zn>>>32-Pn)+Fn}function re(J,Fn,Bn,j,vn,Pn,Rn){var zn=J+(Fn^Bn^j)+vn+Rn;return(zn<<Pn|zn>>>32-Pn)+Fn}function w(J,Fn,Bn,j,vn,Pn,Rn){var zn=J+(Bn^(Fn|~j))+vn+Rn;return(zn<<Pn|zn>>>32-Pn)+Fn}h.MD5=m._createHelper(b),h.HmacMD5=m._createHmacHelper(b)}(Math),f.MD5})}(md5)),md5.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.WordArray,p=h.Hasher,m=d.algo,g=[],y=m.SHA1=p.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(b,gn){for(var x=this._hash.words,re=x[0],w=x[1],J=x[2],Fn=x[3],Bn=x[4],j=0;j<80;j++){if(j<16)g[j]=b[gn+j]|0;else{var vn=g[j-3]^g[j-8]^g[j-14]^g[j-16];g[j]=vn<<1|vn>>>31}var Pn=(re<<5|re>>>27)+Bn+g[j];j<20?Pn+=(w&J|~w&Fn)+1518500249:j<40?Pn+=(w^J^Fn)+1859775393:j<60?Pn+=(w&J|w&Fn|J&Fn)-1894007588:Pn+=(w^J^Fn)-899497514,Bn=Fn,Fn=J,J=w<<30|w>>>2,w=re,re=Pn}x[0]=x[0]+re|0,x[1]=x[1]+w|0,x[2]=x[2]+J|0,x[3]=x[3]+Fn|0,x[4]=x[4]+Bn|0},_doFinalize:function(){var b=this._data,gn=b.words,x=this._nDataBytes*8,re=b.sigBytes*8;return gn[re>>>5]|=128<<24-re%32,gn[(re+64>>>9<<4)+14]=Math.floor(x/4294967296),gn[(re+64>>>9<<4)+15]=x,b.sigBytes=gn.length*4,this._process(),this._hash},clone:function(){var b=p.clone.call(this);return b._hash=this._hash.clone(),b}});d.SHA1=p._createHelper(y),d.HmacSHA1=p._createHmacHelper(y)}(),f.SHA1})}(sha1)),sha1.exports}var sha256={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(d){var h=f,v=h.lib,p=v.WordArray,m=v.Hasher,g=h.algo,y=[],b=[];(function(){function re(Bn){for(var j=d.sqrt(Bn),vn=2;vn<=j;vn++)if(!(Bn%vn))return!1;return!0}function w(Bn){return(Bn-(Bn|0))*4294967296|0}for(var J=2,Fn=0;Fn<64;)re(J)&&(Fn<8&&(y[Fn]=w(d.pow(J,1/2))),b[Fn]=w(d.pow(J,1/3)),Fn++),J++})();var gn=[],x=g.SHA256=m.extend({_doReset:function(){this._hash=new p.init(y.slice(0))},_doProcessBlock:function(re,w){for(var J=this._hash.words,Fn=J[0],Bn=J[1],j=J[2],vn=J[3],Pn=J[4],Rn=J[5],zn=J[6],Un=J[7],qn=0;qn<64;qn++){if(qn<16)gn[qn]=re[w+qn]|0;else{var Qn=gn[qn-15],Jn=(Qn<<25|Qn>>>7)^(Qn<<14|Qn>>>18)^Qn>>>3,Zn=gn[qn-2],Xn=(Zn<<15|Zn>>>17)^(Zn<<13|Zn>>>19)^Zn>>>10;gn[qn]=Jn+gn[qn-7]+Xn+gn[qn-16]}var nr=Pn&Rn^~Pn&zn,sr=Fn&Bn^Fn&j^Bn&j,ur=(Fn<<30|Fn>>>2)^(Fn<<19|Fn>>>13)^(Fn<<10|Fn>>>22),Hn=(Pn<<26|Pn>>>6)^(Pn<<21|Pn>>>11)^(Pn<<7|Pn>>>25),Kn=Un+Hn+nr+b[qn]+gn[qn],Vn=ur+sr;Un=zn,zn=Rn,Rn=Pn,Pn=vn+Kn|0,vn=j,j=Bn,Bn=Fn,Fn=Kn+Vn|0}J[0]=J[0]+Fn|0,J[1]=J[1]+Bn|0,J[2]=J[2]+j|0,J[3]=J[3]+vn|0,J[4]=J[4]+Pn|0,J[5]=J[5]+Rn|0,J[6]=J[6]+zn|0,J[7]=J[7]+Un|0},_doFinalize:function(){var re=this._data,w=re.words,J=this._nDataBytes*8,Fn=re.sigBytes*8;return w[Fn>>>5]|=128<<24-Fn%32,w[(Fn+64>>>9<<4)+14]=d.floor(J/4294967296),w[(Fn+64>>>9<<4)+15]=J,re.sigBytes=w.length*4,this._process(),this._hash},clone:function(){var re=m.clone.call(this);return re._hash=this._hash.clone(),re}});h.SHA256=m._createHelper(x),h.HmacSHA256=m._createHmacHelper(x)}(Math),f.SHA256})}(sha256)),sha256.exports}var sha224={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireSha256())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.WordArray,p=d.algo,m=p.SHA256,g=p.SHA224=m.extend({_doReset:function(){this._hash=new v.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var y=m._doFinalize.call(this);return y.sigBytes-=4,y}});d.SHA224=m._createHelper(g),d.HmacSHA224=m._createHmacHelper(g)}(),f.SHA224})}(sha224)),sha224.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireX64Core())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.Hasher,p=d.x64,m=p.Word,g=p.WordArray,y=d.algo;function b(){return m.create.apply(m,arguments)}var gn=[b(1116352408,3609767458),b(1899447441,602891725),b(3049323471,3964484399),b(3921009573,2173295548),b(961987163,4081628472),b(1508970993,3053834265),b(2453635748,2937671579),b(2870763221,3664609560),b(3624381080,2734883394),b(310598401,1164996542),b(607225278,1323610764),b(1426881987,3590304994),b(1925078388,4068182383),b(2162078206,991336113),b(2614888103,633803317),b(3248222580,3479774868),b(3835390401,2666613458),b(4022224774,944711139),b(264347078,2341262773),b(604807628,2007800933),b(770255983,1495990901),b(1249150122,1856431235),b(1555081692,3175218132),b(1996064986,2198950837),b(2554220882,3999719339),b(2821834349,766784016),b(2952996808,2566594879),b(3210313671,3203337956),b(3336571891,1034457026),b(3584528711,2466948901),b(113926993,3758326383),b(338241895,168717936),b(666307205,1188179964),b(773529912,1546045734),b(1294757372,1522805485),b(1396182291,2643833823),b(1695183700,2343527390),b(1986661051,1014477480),b(2177026350,1206759142),b(2456956037,344077627),b(2730485921,1290863460),b(2820302411,3158454273),b(3259730800,3505952657),b(3345764771,106217008),b(3516065817,3606008344),b(3600352804,1432725776),b(4094571909,1467031594),b(275423344,851169720),b(430227734,3100823752),b(506948616,1363258195),b(659060556,3750685593),b(883997877,3785050280),b(958139571,3318307427),b(1322822218,3812723403),b(1537002063,2003034995),b(1747873779,3602036899),b(1955562222,1575990012),b(2024104815,1125592928),b(2227730452,2716904306),b(2361852424,442776044),b(2428436474,593698344),b(2756734187,3733110249),b(3204031479,2999351573),b(3329325298,3815920427),b(3391569614,3928383900),b(3515267271,566280711),b(3940187606,3454069534),b(4118630271,4000239992),b(116418474,1914138554),b(174292421,2731055270),b(289380356,3203993006),b(460393269,320620315),b(685471733,587496836),b(852142971,1086792851),b(1017036298,365543100),b(1126000580,2618297676),b(1288033470,3409855158),b(1501505948,4234509866),b(1607167915,987167468),b(1816402316,1246189591)],x=[];(function(){for(var w=0;w<80;w++)x[w]=b()})();var re=y.SHA512=v.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(w,J){for(var Fn=this._hash.words,Bn=Fn[0],j=Fn[1],vn=Fn[2],Pn=Fn[3],Rn=Fn[4],zn=Fn[5],Un=Fn[6],qn=Fn[7],Qn=Bn.high,Jn=Bn.low,Zn=j.high,Xn=j.low,nr=vn.high,sr=vn.low,ur=Pn.high,Hn=Pn.low,Kn=Rn.high,Vn=Rn.low,Gn=zn.high,er=zn.low,Wn=Un.high,or=Un.low,cr=qn.high,ar=qn.low,tr=Qn,pr=Jn,Yn=Zn,ir=Xn,lr=nr,vr=sr,dr=ur,yr=Hn,fr=Kn,mr=Vn,xr=Gn,Cr=er,br=Wn,hr=or,gr=cr,Er=ar,wr=0;wr<80;wr++){var _r,Rr,Mr=x[wr];if(wr<16)Rr=Mr.high=w[J+wr*2]|0,_r=Mr.low=w[J+wr*2+1]|0;else{var Dr=x[wr-15],Br=Dr.high,Vr=Dr.low,Gr=(Br>>>1|Vr<<31)^(Br>>>8|Vr<<24)^Br>>>7,Hr=(Vr>>>1|Br<<31)^(Vr>>>8|Br<<24)^(Vr>>>7|Br<<25),Ur=x[wr-2],Qr=Ur.high,Zr=Ur.low,ni=(Qr>>>19|Zr<<13)^(Qr<<3|Zr>>>29)^Qr>>>6,Ar=(Zr>>>19|Qr<<13)^(Zr<<3|Qr>>>29)^(Zr>>>6|Qr<<26),Ir=x[wr-7],Or=Ir.high,Fr=Ir.low,Nr=x[wr-16],zr=Nr.high,Xr=Nr.low;_r=Hr+Fr,Rr=Gr+Or+(_r>>>0<Hr>>>0?1:0),_r=_r+Ar,Rr=Rr+ni+(_r>>>0<Ar>>>0?1:0),_r=_r+Xr,Rr=Rr+zr+(_r>>>0<Xr>>>0?1:0),Mr.high=Rr,Mr.low=_r}var ri=fr&xr^~fr&br,ii=mr&Cr^~mr&hr,ui=tr&Yn^tr&lr^Yn&lr,hi=pr&ir^pr&vr^ir&vr,li=(tr>>>28|pr<<4)^(tr<<30|pr>>>2)^(tr<<25|pr>>>7),vi=(pr>>>28|tr<<4)^(pr<<30|tr>>>2)^(pr<<25|tr>>>7),Si=(fr>>>14|mr<<18)^(fr>>>18|mr<<14)^(fr<<23|mr>>>9),yi=(mr>>>14|fr<<18)^(mr>>>18|fr<<14)^(mr<<23|fr>>>9),bi=gn[wr],Ci=bi.high,xi=bi.low,ai=Er+yi,ci=gr+Si+(ai>>>0<Er>>>0?1:0),ai=ai+ii,ci=ci+ri+(ai>>>0<ii>>>0?1:0),ai=ai+xi,ci=ci+Ci+(ai>>>0<xi>>>0?1:0),ai=ai+_r,ci=ci+Rr+(ai>>>0<_r>>>0?1:0),wi=vi+hi,Sr=li+ui+(wi>>>0<vi>>>0?1:0);gr=br,Er=hr,br=xr,hr=Cr,xr=fr,Cr=mr,mr=yr+ai|0,fr=dr+ci+(mr>>>0<yr>>>0?1:0)|0,dr=lr,yr=vr,lr=Yn,vr=ir,Yn=tr,ir=pr,pr=ai+wi|0,tr=ci+Sr+(pr>>>0<ai>>>0?1:0)|0}Jn=Bn.low=Jn+pr,Bn.high=Qn+tr+(Jn>>>0<pr>>>0?1:0),Xn=j.low=Xn+ir,j.high=Zn+Yn+(Xn>>>0<ir>>>0?1:0),sr=vn.low=sr+vr,vn.high=nr+lr+(sr>>>0<vr>>>0?1:0),Hn=Pn.low=Hn+yr,Pn.high=ur+dr+(Hn>>>0<yr>>>0?1:0),Vn=Rn.low=Vn+mr,Rn.high=Kn+fr+(Vn>>>0<mr>>>0?1:0),er=zn.low=er+Cr,zn.high=Gn+xr+(er>>>0<Cr>>>0?1:0),or=Un.low=or+hr,Un.high=Wn+br+(or>>>0<hr>>>0?1:0),ar=qn.low=ar+Er,qn.high=cr+gr+(ar>>>0<Er>>>0?1:0)},_doFinalize:function(){var w=this._data,J=w.words,Fn=this._nDataBytes*8,Bn=w.sigBytes*8;J[Bn>>>5]|=128<<24-Bn%32,J[(Bn+128>>>10<<5)+30]=Math.floor(Fn/4294967296),J[(Bn+128>>>10<<5)+31]=Fn,w.sigBytes=J.length*4,this._process();var j=this._hash.toX32();return j},clone:function(){var w=v.clone.call(this);return w._hash=this._hash.clone(),w},blockSize:1024/32});d.SHA512=v._createHelper(re),d.HmacSHA512=v._createHmacHelper(re)}(),f.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(f){return function(){var d=f,h=d.x64,v=h.Word,p=h.WordArray,m=d.algo,g=m.SHA512,y=m.SHA384=g.extend({_doReset:function(){this._hash=new p.init([new v.init(3418070365,3238371032),new v.init(1654270250,914150663),new v.init(2438529370,812702999),new v.init(355462360,4144912697),new v.init(1731405415,4290775857),new v.init(2394180231,1750603025),new v.init(3675008525,1694076839),new v.init(1203062813,3204075428)])},_doFinalize:function(){var b=g._doFinalize.call(this);return b.sigBytes-=16,b}});d.SHA384=g._createHelper(y),d.HmacSHA384=g._createHmacHelper(y)}(),f.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireX64Core())})(commonjsGlobal,function(f){return function(d){var h=f,v=h.lib,p=v.WordArray,m=v.Hasher,g=h.x64,y=g.Word,b=h.algo,gn=[],x=[],re=[];(function(){for(var Fn=1,Bn=0,j=0;j<24;j++){gn[Fn+5*Bn]=(j+1)*(j+2)/2%64;var vn=Bn%5,Pn=(2*Fn+3*Bn)%5;Fn=vn,Bn=Pn}for(var Fn=0;Fn<5;Fn++)for(var Bn=0;Bn<5;Bn++)x[Fn+5*Bn]=Bn+(2*Fn+3*Bn)%5*5;for(var Rn=1,zn=0;zn<24;zn++){for(var Un=0,qn=0,Qn=0;Qn<7;Qn++){if(Rn&1){var Jn=(1<<Qn)-1;Jn<32?qn^=1<<Jn:Un^=1<<Jn-32}Rn&128?Rn=Rn<<1^113:Rn<<=1}re[zn]=y.create(Un,qn)}})();var w=[];(function(){for(var Fn=0;Fn<25;Fn++)w[Fn]=y.create()})();var J=b.SHA3=m.extend({cfg:m.cfg.extend({outputLength:512}),_doReset:function(){for(var Fn=this._state=[],Bn=0;Bn<25;Bn++)Fn[Bn]=new y.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(Fn,Bn){for(var j=this._state,vn=this.blockSize/2,Pn=0;Pn<vn;Pn++){var Rn=Fn[Bn+2*Pn],zn=Fn[Bn+2*Pn+1];Rn=(Rn<<8|Rn>>>24)&16711935|(Rn<<24|Rn>>>8)&4278255360,zn=(zn<<8|zn>>>24)&16711935|(zn<<24|zn>>>8)&4278255360;var Un=j[Pn];Un.high^=zn,Un.low^=Rn}for(var qn=0;qn<24;qn++){for(var Qn=0;Qn<5;Qn++){for(var Jn=0,Zn=0,Xn=0;Xn<5;Xn++){var Un=j[Qn+5*Xn];Jn^=Un.high,Zn^=Un.low}var nr=w[Qn];nr.high=Jn,nr.low=Zn}for(var Qn=0;Qn<5;Qn++)for(var sr=w[(Qn+4)%5],ur=w[(Qn+1)%5],Hn=ur.high,Kn=ur.low,Jn=sr.high^(Hn<<1|Kn>>>31),Zn=sr.low^(Kn<<1|Hn>>>31),Xn=0;Xn<5;Xn++){var Un=j[Qn+5*Xn];Un.high^=Jn,Un.low^=Zn}for(var Vn=1;Vn<25;Vn++){var Jn,Zn,Un=j[Vn],Gn=Un.high,er=Un.low,Wn=gn[Vn];Wn<32?(Jn=Gn<<Wn|er>>>32-Wn,Zn=er<<Wn|Gn>>>32-Wn):(Jn=er<<Wn-32|Gn>>>64-Wn,Zn=Gn<<Wn-32|er>>>64-Wn);var or=w[x[Vn]];or.high=Jn,or.low=Zn}var cr=w[0],ar=j[0];cr.high=ar.high,cr.low=ar.low;for(var Qn=0;Qn<5;Qn++)for(var Xn=0;Xn<5;Xn++){var Vn=Qn+5*Xn,Un=j[Vn],tr=w[Vn],pr=w[(Qn+1)%5+5*Xn],Yn=w[(Qn+2)%5+5*Xn];Un.high=tr.high^~pr.high&Yn.high,Un.low=tr.low^~pr.low&Yn.low}var Un=j[0],ir=re[qn];Un.high^=ir.high,Un.low^=ir.low}},_doFinalize:function(){var Fn=this._data,Bn=Fn.words;this._nDataBytes*8;var j=Fn.sigBytes*8,vn=this.blockSize*32;Bn[j>>>5]|=1<<24-j%32,Bn[(d.ceil((j+1)/vn)*vn>>>5)-1]|=128,Fn.sigBytes=Bn.length*4,this._process();for(var Pn=this._state,Rn=this.cfg.outputLength/8,zn=Rn/8,Un=[],qn=0;qn<zn;qn++){var Qn=Pn[qn],Jn=Qn.high,Zn=Qn.low;Jn=(Jn<<8|Jn>>>24)&16711935|(Jn<<24|Jn>>>8)&4278255360,Zn=(Zn<<8|Zn>>>24)&16711935|(Zn<<24|Zn>>>8)&4278255360,Un.push(Zn),Un.push(Jn)}return new p.init(Un,Rn)},clone:function(){for(var Fn=m.clone.call(this),Bn=Fn._state=this._state.slice(0),j=0;j<25;j++)Bn[j]=Bn[j].clone();return Fn}});h.SHA3=m._createHelper(J),h.HmacSHA3=m._createHmacHelper(J)}(Math),f.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){/** @preserve
|
|
61
|
+
`],...function({vnode:b,recurseCount:gn}){const x=gn>0?`... (${gn} recursive calls)`:"",re=!!b.component&&b.component.parent==null,w=` at <${oe(b.component,b.type,re)}`,J=">"+x;return b.props?[w,...L(b.props),J]:[w+J]}(g))}),m}(h)),console.warn(...v)}}function L(c){const u=[],f=Object.keys(c);return f.slice(0,3).forEach(d=>{u.push(...T(d,c[d]))}),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,d){let h;try{h=d?c(...d):c()}catch(v){(function(p,m,g,y=!0){const b=m?m.vnode:null;if(m){let gn=m.parent;const x=m.proxy,re=process.env.NODE_ENV!=="production"?N[g]:g;for(;gn;){const J=gn.ec;if(J){for(let Fn=0;Fn<J.length;Fn++)if(J[Fn](p,x,re)===!1)return}gn=gn.parent}const w=m.appContext.config.errorHandler;if(w)return void $(w,null,10,[p,x,re])}(function(gn,x,re,w=!0){if(process.env.NODE_ENV!=="production"){const Fn=N[x];if(re&&(J=re,O.push(J)),C("Unhandled error"+(Fn?` during execution of ${Fn}`:"")),re&&O.pop(),w)throw gn;console.error(gn)}else console.error(gn);var J})(p,g,b,y)})(v,u,f)}return h}let k=!1,D=!1;const M=[];let E=0;const I=[];let V=null,F=0;const z$1=Promise.resolve();function R(c){M.length&&M.includes(c,k&&c.allowRecurse?E+1:E)||(c.id==null?M.push(c):M.splice(function(u){let f=E+1,d=M.length;for(;f<d;){const h=f+d>>>1,v=M[h],p=P(v);p<u||p===u&&v.pre?f=h+1:d=h}return f}(c.id),0,c),U())}function U(){k||D||(D=!0,z$1.then(Y))}const P=c=>c.id==null?1/0:c.id,G=(c,u)=>{const f=P(c)-P(u);if(f===0){if(c.pre&&!u.pre)return-1;if(u.pre&&!c.pre)return 1}return f};function Y(c){D=!1,k=!0,process.env.NODE_ENV!=="production"&&(c=c||new Map),M.sort(G);const u=process.env.NODE_ENV!=="production"?f=>W(c,f):n;try{for(E=0;E<M.length;E++){const f=M[E];if(f&&f.active!==!1){if(process.env.NODE_ENV!=="production"&&u(f))continue;$(f,null,14)}}}finally{E=0,M.length=0,function(f){if(I.length){const d=[...new Set(I)];if(I.length=0,V)return void V.push(...d);for(V=d,process.env.NODE_ENV!=="production"&&(f=f||new Map),V.sort((h,v)=>P(h)-P(v)),F=0;F<V.length;F++)process.env.NODE_ENV!=="production"&&W(f,V[F])||V[F]();V=null,F=0}}(c),k=!1,(M.length||I.length)&&Y(c)}}function W(c,u){if(c.has(u)){const f=c.get(u);if(f>100){const d=u.ownerInstance,h=d&&ne(d.type);return C(`Maximum recursive updates exceeded${h?` in component <${h}>`:""}. 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(d=>{u&&(d.render=u,K(d.type).render=u),d.renderCache=[],d.update()}))}),reload:Q(function(c,u){const f=B.get(c);if(!f)return;u=K(u),q(f.initialDef,u);const d=[...f.instances];for(const v of d){const p=K(v.type);H.has(p)||(p!==f.initialDef&&q(p,u),H.add(p)),v.appContext.propsCache.delete(v.type),v.appContext.emitsCache.delete(v.type),v.appContext.optionsCache.delete(v.type),v.ceReload?(H.add(p),v.ceReload(u.styles),H.delete(p)):v.parent?R(v.parent.update):v.appContext.reload?v.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}h=()=>{for(const v of d)H.delete(K(v.type))},r(h)?I.push(...h):V&&V.includes(h,h.allowRecurse?F+1:F)||I.push(h),U();var h})});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(d){console.error(d),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 d=ne(u);if(!d&&u.__file){const h=u.__file.match(/([^/\\]+)\.\w+$/);h&&(d=h[1])}if(!d&&c&&c.parent){const h=v=>{for(const p in v)if(v[p]===u)return p};d=h(c.components||c.parent.type.components)||h(c.appContext.components)}return d?te(d):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,d="millisecond",h="second",v="minute",p="hour",m="day",g="week",y="month",b="quarter",gn="year",x="date",re="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,J=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Fn={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(Xn){var nr=["th","st","nd","rd"],sr=Xn%100;return"["+Xn+(nr[(sr-20)%10]||nr[sr]||nr[0])+"]"}},Bn=function(Xn,nr,sr){var ur=String(Xn);return!ur||ur.length>=nr?Xn:""+Array(nr+1-ur.length).join(sr)+Xn},j={s:Bn,z:function(Xn){var nr=-Xn.utcOffset(),sr=Math.abs(nr),ur=Math.floor(sr/60),Hn=sr%60;return(nr<=0?"+":"-")+Bn(ur,2,"0")+":"+Bn(Hn,2,"0")},m:function Xn(nr,sr){if(nr.date()<sr.date())return-Xn(sr,nr);var ur=12*(sr.year()-nr.year())+(sr.month()-nr.month()),Hn=nr.clone().add(ur,y),Kn=sr-Hn<0,Vn=nr.clone().add(ur+(Kn?-1:1),y);return+(-(ur+(sr-Hn)/(Kn?Hn-Vn:Vn-Hn))||0)},a:function(Xn){return Xn<0?Math.ceil(Xn)||0:Math.floor(Xn)},p:function(Xn){return{M:y,y:gn,w:g,d:m,D:x,h:p,m:v,s:h,ms:d,Q:b}[Xn]||String(Xn||"").toLowerCase().replace(/s$/,"")},u:function(Xn){return Xn===void 0}},vn="en",Pn={};Pn[vn]=Fn;var Rn="$isDayjsObject",zn=function(Xn){return Xn instanceof Jn||!(!Xn||!Xn[Rn])},Un=function Xn(nr,sr,ur){var Hn;if(!nr)return vn;if(typeof nr=="string"){var Kn=nr.toLowerCase();Pn[Kn]&&(Hn=Kn),sr&&(Pn[Kn]=sr,Hn=Kn);var Vn=nr.split("-");if(!Hn&&Vn.length>1)return Xn(Vn[0])}else{var Gn=nr.name;Pn[Gn]=nr,Hn=Gn}return!ur&&Hn&&(vn=Hn),Hn||!ur&&vn},qn=function(Xn,nr){if(zn(Xn))return Xn.clone();var sr=typeof nr=="object"?nr:{};return sr.date=Xn,sr.args=arguments,new Jn(sr)},Qn=j;Qn.l=Un,Qn.i=zn,Qn.w=function(Xn,nr){return qn(Xn,{locale:nr.$L,utc:nr.$u,x:nr.$x,$offset:nr.$offset})};var Jn=function(){function Xn(sr){this.$L=Un(sr.locale,null,!0),this.parse(sr),this.$x=this.$x||sr.x||{},this[Rn]=!0}var nr=Xn.prototype;return nr.parse=function(sr){this.$d=function(ur){var Hn=ur.date,Kn=ur.utc;if(Hn===null)return new Date(NaN);if(Qn.u(Hn))return new Date;if(Hn instanceof Date)return new Date(Hn);if(typeof Hn=="string"&&!/Z$/i.test(Hn)){var Vn=Hn.match(w);if(Vn){var Gn=Vn[2]-1||0,er=(Vn[7]||"0").substring(0,3);return Kn?new Date(Date.UTC(Vn[1],Gn,Vn[3]||1,Vn[4]||0,Vn[5]||0,Vn[6]||0,er)):new Date(Vn[1],Gn,Vn[3]||1,Vn[4]||0,Vn[5]||0,Vn[6]||0,er)}}return new Date(Hn)}(sr),this.init()},nr.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()},nr.$utils=function(){return Qn},nr.isValid=function(){return this.$d.toString()!==re},nr.isSame=function(sr,ur){var Hn=qn(sr);return this.startOf(ur)<=Hn&&Hn<=this.endOf(ur)},nr.isAfter=function(sr,ur){return qn(sr)<this.startOf(ur)},nr.isBefore=function(sr,ur){return this.endOf(ur)<qn(sr)},nr.$g=function(sr,ur,Hn){return Qn.u(sr)?this[ur]:this.set(Hn,sr)},nr.unix=function(){return Math.floor(this.valueOf()/1e3)},nr.valueOf=function(){return this.$d.getTime()},nr.startOf=function(sr,ur){var Hn=this,Kn=!!Qn.u(ur)||ur,Vn=Qn.p(sr),Gn=function(Yn,ir){var lr=Qn.w(Hn.$u?Date.UTC(Hn.$y,ir,Yn):new Date(Hn.$y,ir,Yn),Hn);return Kn?lr:lr.endOf(m)},er=function(Yn,ir){return Qn.w(Hn.toDate()[Yn].apply(Hn.toDate("s"),(Kn?[0,0,0,0]:[23,59,59,999]).slice(ir)),Hn)},Wn=this.$W,or=this.$M,cr=this.$D,ar="set"+(this.$u?"UTC":"");switch(Vn){case gn:return Kn?Gn(1,0):Gn(31,11);case y:return Kn?Gn(1,or):Gn(0,or+1);case g:var tr=this.$locale().weekStart||0,pr=(Wn<tr?Wn+7:Wn)-tr;return Gn(Kn?cr-pr:cr+(6-pr),or);case m:case x:return er(ar+"Hours",0);case p:return er(ar+"Minutes",1);case v:return er(ar+"Seconds",2);case h:return er(ar+"Milliseconds",3);default:return this.clone()}},nr.endOf=function(sr){return this.startOf(sr,!1)},nr.$set=function(sr,ur){var Hn,Kn=Qn.p(sr),Vn="set"+(this.$u?"UTC":""),Gn=(Hn={},Hn[m]=Vn+"Date",Hn[x]=Vn+"Date",Hn[y]=Vn+"Month",Hn[gn]=Vn+"FullYear",Hn[p]=Vn+"Hours",Hn[v]=Vn+"Minutes",Hn[h]=Vn+"Seconds",Hn[d]=Vn+"Milliseconds",Hn)[Kn],er=Kn===m?this.$D+(ur-this.$W):ur;if(Kn===y||Kn===gn){var Wn=this.clone().set(x,1);Wn.$d[Gn](er),Wn.init(),this.$d=Wn.set(x,Math.min(this.$D,Wn.daysInMonth())).$d}else Gn&&this.$d[Gn](er);return this.init(),this},nr.set=function(sr,ur){return this.clone().$set(sr,ur)},nr.get=function(sr){return this[Qn.p(sr)]()},nr.add=function(sr,ur){var Hn,Kn=this;sr=Number(sr);var Vn=Qn.p(ur),Gn=function(or){var cr=qn(Kn);return Qn.w(cr.date(cr.date()+Math.round(or*sr)),Kn)};if(Vn===y)return this.set(y,this.$M+sr);if(Vn===gn)return this.set(gn,this.$y+sr);if(Vn===m)return Gn(1);if(Vn===g)return Gn(7);var er=(Hn={},Hn[v]=u,Hn[p]=f,Hn[h]=c,Hn)[Vn]||1,Wn=this.$d.getTime()+sr*er;return Qn.w(Wn,this)},nr.subtract=function(sr,ur){return this.add(-1*sr,ur)},nr.format=function(sr){var ur=this,Hn=this.$locale();if(!this.isValid())return Hn.invalidDate||re;var Kn=sr||"YYYY-MM-DDTHH:mm:ssZ",Vn=Qn.z(this),Gn=this.$H,er=this.$m,Wn=this.$M,or=Hn.weekdays,cr=Hn.months,ar=Hn.meridiem,tr=function(ir,lr,vr,dr){return ir&&(ir[lr]||ir(ur,Kn))||vr[lr].slice(0,dr)},pr=function(ir){return Qn.s(Gn%12||12,ir,"0")},Yn=ar||function(ir,lr,vr){var dr=ir<12?"AM":"PM";return vr?dr.toLowerCase():dr};return Kn.replace(J,function(ir,lr){return lr||function(vr){switch(vr){case"YY":return String(ur.$y).slice(-2);case"YYYY":return Qn.s(ur.$y,4,"0");case"M":return Wn+1;case"MM":return Qn.s(Wn+1,2,"0");case"MMM":return tr(Hn.monthsShort,Wn,cr,3);case"MMMM":return tr(cr,Wn);case"D":return ur.$D;case"DD":return Qn.s(ur.$D,2,"0");case"d":return String(ur.$W);case"dd":return tr(Hn.weekdaysMin,ur.$W,or,2);case"ddd":return tr(Hn.weekdaysShort,ur.$W,or,3);case"dddd":return or[ur.$W];case"H":return String(Gn);case"HH":return Qn.s(Gn,2,"0");case"h":return pr(1);case"hh":return pr(2);case"a":return Yn(Gn,er,!0);case"A":return Yn(Gn,er,!1);case"m":return String(er);case"mm":return Qn.s(er,2,"0");case"s":return String(ur.$s);case"ss":return Qn.s(ur.$s,2,"0");case"SSS":return Qn.s(ur.$ms,3,"0");case"Z":return Vn}return null}(ir)||Vn.replace(":","")})},nr.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},nr.diff=function(sr,ur,Hn){var Kn,Vn=this,Gn=Qn.p(ur),er=qn(sr),Wn=(er.utcOffset()-this.utcOffset())*u,or=this-er,cr=function(){return Qn.m(Vn,er)};switch(Gn){case gn:Kn=cr()/12;break;case y:Kn=cr();break;case b:Kn=cr()/3;break;case g:Kn=(or-Wn)/6048e5;break;case m:Kn=(or-Wn)/864e5;break;case p:Kn=or/f;break;case v:Kn=or/u;break;case h:Kn=or/c;break;default:Kn=or}return Hn?Kn:Qn.a(Kn)},nr.daysInMonth=function(){return this.endOf(y).$D},nr.$locale=function(){return Pn[this.$L]},nr.locale=function(sr,ur){if(!sr)return this.$L;var Hn=this.clone(),Kn=Un(sr,ur,!0);return Kn&&(Hn.$L=Kn),Hn},nr.clone=function(){return Qn.w(this.$d,this)},nr.toDate=function(){return new Date(this.valueOf())},nr.toJSON=function(){return this.isValid()?this.toISOString():null},nr.toISOString=function(){return this.$d.toISOString()},nr.toString=function(){return this.$d.toUTCString()},Xn}(),Zn=Jn.prototype;return qn.prototype=Zn,[["$ms",d],["$s",h],["$m",v],["$H",p],["$W",m],["$M",y],["$y",gn],["$D",x]].forEach(function(Xn){Zn[Xn[1]]=function(nr){return this.$g(nr,Xn[0],Xn[1])}}),qn.extend=function(Xn,nr){return Xn.$i||(Xn(nr,Jn,qn),Xn.$i=!0),qn},qn.locale=Un,qn.isDayjs=zn,qn.unix=function(Xn){return qn(1e3*Xn)},qn.en=Pn[vn],qn.Ls=Pn,qn.p={},qn}()),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),d=u[be];try{u[be]=void 0;var h=!0}catch{}var v=me.call(u);return h&&(f?u[be]=d:delete u[be]),v}(c):function(u){return ge.call(u)}(c)}function we(c){return c!=null&&typeof c=="object"}var Se=Array.isArray;function Ae(c){var u=typeof c;return c!=null&&(u=="object"||u=="function")}function _e(c){if(!Ae(c))return!1;var u=xe(c);return u=="[object Function]"||u=="[object GeneratorFunction]"||u=="[object AsyncFunction]"||u=="[object Proxy]"}var je,Oe=fe["__core-js_shared__"],Ce=(je=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+je:"",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,De=$e.toString,Me=ke.hasOwnProperty,Ee=RegExp("^"+De.call(Me).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ie(c){return!(!Ae(c)||(u=c,Ce&&Ce in u))&&(_e(c)?Ee:Ne).test(Te(c));var u}function Ve(c,u){var f=function(d,h){return d==null?void 0:d[h]}(c,u);return Ie(f)?f:void 0}var Fe=Ve(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=Ve(Object,"defineProperty");return c({},"",{}),c}catch{}}(),Pe=/^(?:0|[1-9]\d*)$/;function Ge(c,u){var f=typeof c;return!!(u=u??9007199254740991)&&(f=="number"||f!="symbol"&&Pe.test(c))&&c>-1&&c%1==0&&c<u}function Ye(c,u){return c===u||c!=c&&u!=u}var We=Object.prototype.hasOwnProperty;function He(c,u,f){var d=c[u];We.call(c,u)&&Ye(d,f)&&(f!==void 0||u in c)||function(h,v,p){v=="__proto__"&&Ue?Ue(h,v,{configurable:!0,enumerable:!0,value:p,writable:!0}):h[v]=p}(c,u,f)}function Be(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=9007199254740991}var Ke=Object.prototype;function qe(c){var u=c&&c.constructor;return c===(typeof u=="function"&&u.prototype||Ke)}function Qe(c){return we(c)&&xe(c)=="[object Arguments]"}var Je=Object.prototype,Xe=Je.hasOwnProperty,Ze=Je.propertyIsEnumerable,et=Qe(function(){return arguments}())?Qe:function(c){return we(c)&&Xe.call(c,"callee")&&!Ze.call(c,"callee")},tt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,nt=tt&&typeof module=="object"&&module&&!module.nodeType&&module,ot=nt&&nt.exports===tt?fe.Buffer:void 0,rt=(ot?ot.isBuffer:void 0)||function(){return!1},it={};function at(c){return function(u){return c(u)}}it["[object Float32Array]"]=it["[object Float64Array]"]=it["[object Int8Array]"]=it["[object Int16Array]"]=it["[object Int32Array]"]=it["[object Uint8Array]"]=it["[object Uint8ClampedArray]"]=it["[object Uint16Array]"]=it["[object Uint32Array]"]=!0,it["[object Arguments]"]=it["[object Array]"]=it["[object ArrayBuffer]"]=it["[object Boolean]"]=it["[object DataView]"]=it["[object Date]"]=it["[object Error]"]=it["[object Function]"]=it["[object Map]"]=it["[object Number]"]=it["[object Object]"]=it["[object RegExp]"]=it["[object Set]"]=it["[object String]"]=it["[object WeakMap]"]=!1;var lt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,st=lt&&typeof module=="object"&&module&&!module.nodeType&&module,ct=st&&st.exports===lt&&ue.process,ut=function(){try{var c=st&&st.require&&st.require("util").types;return c||ct&&ct.binding&&ct.binding("util")}catch{}}(),dt=ut&&ut.isTypedArray,ft=dt?at(dt):function(c){return we(c)&&Be(c.length)&&!!it[xe(c)]},pt=Object.prototype.hasOwnProperty;function ht(c,u){var f=Se(c),d=!f&&et(c),h=!f&&!d&&rt(c),v=!f&&!d&&!h&&ft(c),p=f||d||h||v,m=p?function(b,gn){for(var x=-1,re=Array(b);++x<b;)re[x]=gn(x);return re}(c.length,String):[],g=m.length;for(var y in c)!pt.call(c,y)||p&&(y=="length"||h&&(y=="offset"||y=="parent")||v&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||Ge(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)&&!_e(u)?ht(c):function(f){if(!qe(f))return mt(f);var d=[];for(var h in Object(f))bt.call(f,h)&&h!="constructor"&&d.push(h);return d}(c);var u}var vt=Ve(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 d=c[u];this.set(d[0],d[1])}}function At(c,u){for(var f=c.length;f--;)if(Ye(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 _t=Array.prototype.splice;function jt(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var d=c[u];this.set(d[0],d[1])}}jt.prototype.clear=function(){this.__data__=[],this.size=0},jt.prototype.delete=function(c){var u=this.__data__,f=At(u,c);return!(f<0)&&(f==u.length-1?u.pop():_t.call(u,f,1),--this.size,!0)},jt.prototype.get=function(c){var u=this.__data__,f=At(u,c);return f<0?void 0:u[f][1]},jt.prototype.has=function(c){return At(this.__data__,c)>-1},jt.prototype.set=function(c,u){var f=this.__data__,d=At(f,c);return d<0?(++this.size,f.push([c,u])):f[d][1]=u,this};var Ot=Ve(fe,"Map");function Ct(c,u){var f,d,h=c.__data__;return((d=typeof(f=u))=="string"||d=="number"||d=="symbol"||d=="boolean"?f!=="__proto__":f===null)?h[typeof u=="string"?"string":"hash"]:h.map}function Lt(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var d=c[u];this.set(d[0],d[1])}}Lt.prototype.clear=function(){this.size=0,this.__data__={hash:new St,map:new(Ot||jt),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),d=f.size;return f.set(c,u),this.size+=f.size==d?0:1,this};var Tt=yt(Object.getPrototypeOf,Object);function Nt(c){var u=this.__data__=new jt(c);this.size=u.size}Nt.prototype.clear=function(){this.__data__=new jt,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 jt){var d=f.__data__;if(!Ot||d.length<199)return d.push([c,u]),this.size=++f.size,this;f=this.__data__=new Lt(d)}return f.set(c,u),this.size=f.size,this};var $t=Object.prototype.propertyIsEnumerable,kt=Object.getOwnPropertySymbols,Dt=kt?function(c){return c==null?[]:(c=Object(c),function(u,f){for(var d=-1,h=u==null?0:u.length,v=0,p=[];++d<h;){var m=u[d];f(m,d,u)&&(p[v++]=m)}return p}(kt(c),function(u){return $t.call(c,u)}))}:function(){return[]};function Mt(c){return function(u,f,d){var h=f(u);return Se(u)?h:function(v,p){for(var m=-1,g=p.length,y=v.length;++m<g;)v[y+m]=p[m];return v}(h,d(u))}(c,gt,Dt)}var Et=Ve(fe,"DataView"),It=Ve(fe,"Promise"),Vt=Ve(fe,"Set"),Ft="[object Map]",zt="[object Promise]",Rt="[object Set]",Ut="[object WeakMap]",Pt="[object DataView]",Gt=Te(Et),Yt=Te(Ot),Wt=Te(It),Ht=Te(Vt),Bt=Te(Fe),Kt=xe;(Et&&Kt(new Et(new ArrayBuffer(1)))!=Pt||Ot&&Kt(new Ot)!=Ft||It&&Kt(It.resolve())!=zt||Vt&&Kt(new Vt)!=Rt||Fe&&Kt(new Fe)!=Ut)&&(Kt=function(c){var u=xe(c),f=u=="[object Object]"?c.constructor:void 0,d=f?Te(f):"";if(d)switch(d){case Gt:return Pt;case Yt:return Ft;case Wt: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 d,h,v,p,m,g=c.constructor;switch(u){case"[object ArrayBuffer]":return Jt(c);case"[object Boolean]":case"[object Date]":return new g(+c);case"[object DataView]":return m=Jt((p=c).buffer),new p.constructor(m,p.byteOffset,p.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(y){var b=Jt(y.buffer);return new y.constructor(b,y.byteOffset,y.length)}(c);case"[object Map]":case"[object Set]":return new g;case"[object Number]":case"[object String]":return new g(c);case"[object RegExp]":return(v=new(h=c).constructor(h.source,Xt.exec(h))).lastIndex=h.lastIndex,v;case"[object Symbol]":return d=c,en?Object(en.call(d)):{}}}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,d,h,v){var p;if(p!==void 0)return p;if(!Ae(c))return c;var m=Se(c);if(m)p=function(x){var re=x.length,w=new x.constructor(re);return re&&typeof x[0]=="string"&&qt.call(x,"index")&&(w.index=x.index,w.input=x.input),w}(c);else{var g=Kt(c),y=g==sn||g=="[object GeneratorFunction]";if(rt(c))return c.slice();if(g==cn||g==ln||y&&!h)p=y?{}:function(x){return typeof x.constructor!="function"||qe(x)?{}:Re(Tt(x))}(c);else{if(!un[g])return h?c:{};p=tn(c,g)}}v||(v=new Nt);var b=v.get(c);if(b)return b;v.set(c,p),an(c)?c.forEach(function(x){p.add(dn(x,u,f,x,c,v))}):on(c)&&c.forEach(function(x,re){p.set(re,dn(x,u,f,re,c,v))});var gn=m?void 0:Mt(c);return function(x,re){for(var w=-1,J=x==null?0:x.length;++w<J&&re(x[w],w,x)!==!1;);}(gn||c,function(x,re){gn&&(x=c[re=x]),He(p,re,dn(x,u,f,re,c,v))}),p}un[ln]=un["[object Array]"]=un["[object ArrayBuffer]"]=un["[object DataView]"]=un["[object Boolean]"]=un["[object Date]"]=un["[object Float32Array]"]=un["[object Float64Array]"]=un["[object Int8Array]"]=un["[object Int16Array]"]=un["[object Int32Array]"]=un["[object Map]"]=un["[object Number]"]=un[cn]=un["[object RegExp]"]=un["[object Set]"]=un["[object String]"]=un["[object Symbol]"]=un["[object Uint8Array]"]=un["[object Uint8ClampedArray]"]=un["[object Uint16Array]"]=un["[object Uint32Array]"]=!0,un["[object Error]"]=un[sn]=un["[object WeakMap]"]=!1;function fn(c){return dn(c,5)}const pn=(c,u)=>{const f=Object.assign({dayjs:ce},u);let d="";const h=[];for(const m in f)d+=`${m},`,h.push(f[m]);d=d.replace(/,$/,"");const v=`function (${d}){return ${c}}`;let p;try{p=Function(`"use strict";return (${v})`)()(...h)}catch{return c}return p},hn=(c="",{textData:u,codeData:f}={},{useNewline:d=!1,useSpace:h=!1}={})=>{const v=window.config||{},p=Object.assign(Object.assign({},v),u),m=String(c||"").match(/\{(.+?)\}/g);if(m==null||m.length===0)return c;for(let g=0;g<m.length;g++){const y=m[g];let b=y.slice(1,-1).trim();const gn=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,x=b.match(gn);for(let re=0;re<x.length;re++){const w=x[re],J=p[w];J!=null&&typeof J!="function"&&(b=b.replace(w,J))}(/\(.*\)/g.test(b)||/[+/\\*]/g.test(b))&&(b=pn(b,f)),c=c.replace(y,b)}return d&&(c=c==null?void 0:c.replace(/\n|\\n/g,"<br/>")),h&&(c=c==null?void 0:c.replace(/\s{2,}?/g," ")),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 d=0;d<f;d++){const h=u[d];if(typeof h=="string"&&c.toLocaleLowerCase().includes(h.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),_n=(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,c.fieldValue||delete c.fieldValue;else{const{calcWays:f=[],dateCalcTypes:d=[],activeKey:h,componentId:v=""}=c;if(h===5&&(f!=null&&f.length)&&(d!=null&&d.length)&&v){const p=f[0].split("-");(p==null?void 0:p.length)>1&&p[0]==="rangeValue"&&(c.calcWays=((m,g={})=>{const{around:y,unit:b,id:gn}=m;let x="";const{pageMode:re="",componentList:w=[]}=(g==null?void 0:g.graphicConfig)||{};let J=null,Fn=null;if(re==="design"){const Bn=w==null?void 0:w.find(qn=>qn.id===gn);if(!Bn)return[];const{interval:j,intervalUnit:vn,startTime:Pn,endTime:Rn,operate:zn,useCurrentTime:Un}=Bn||{};if(Un&&(J=ce().subtract(j,vn),Fn=ce()),Pn&&(J=ce(Pn)),Rn&&(Fn=ce(Rn)),zn){const{type:qn,value:Qn,mode:Jn}=zn;switch(qn){case"add":J=J&&J.add(Qn,Jn),Fn=Fn&&Fn.add(Qn,Jn);break;case"minus":J=J&&J.subtract(Qn,Jn),Fn=Fn&&Fn.subtract(Qn,Jn)}}}else{const Bn=An(gn)||{};_(Bn.startTime)&&(J=ce(_(Bn.startTime))),_(Bn.endTime)&&(Fn=ce(_(Bn.endTime)))}return J&&Fn&&(x=`${y==="before"?"-":""}${Fn.diff(J,b.toLowerCase())+1}`),x?[x]:[]})({around:p[1],unit:d[0],id:v})),delete c.radioValue}if(mn(c,"dataType")){if(c.fieldType==="DATE"&&(c.label=c.fieldName),c.dataType==="component")if(c.fieldValue==="PARENT"){let p=c.modelKey;p&&c.prop&&(p+=`-${c.prop}`),c.fieldValue="${"+p+"}"}else c.fieldValue="${"+c.fieldValue+"}";delete c.dataType}mn(c,"activeKey")&&delete c.activeKey,mn(c,"radioValue")&&delete c.radioValue,mn(c,"indexCode")&&(c.hrpIndexCode=c.indexCode,delete c.indexCode),mn(c,"indexCodeNum")&&(c.hrpIndexCodeNum=c.indexCodeNum,delete c.indexCodeNum),c.dataType!=="component"&&c.useCurrentTime&&(c.fieldValue=ce().format(c.dateFormat)),mn(c,"modelKey")&&delete c.modelKey,mn(c,"prop")&&delete c.prop,delete c.useCurrentTime}},jn=(c,u)=>{const f=[];return c!=null&&c.length&&fn(c).forEach(d=>{if(d.join&&d.conditions){const h=!d.conditions.some(v=>v.join&&v.conditions);d.conditions.forEach((v,p)=>{_n(v,u);const m={};if(p<d.conditions.length-1&&(m.join=d.join),h)f.push(Object.assign(Object.assign({},m),v));else if(v.join&&v.conditions){const g=u?"sqlConditions":"conditions";f.push(Object.assign({[g]:jn([v],u)},m))}else f.push(Object.assign(Object.assign({},m),v))})}else _n(d,u),f.push(d)}),f},On=(c={},u)=>{if(c!=null&&c.sortCpnts&&u){const Rn=kn(c);Rn&&(u.sort=Rn)}const{label:f,name:d,location:h,show:v,indexCode:p,indexCodeNum:m,calcType:g="COLUMN",builtInFormula:y,builtInValueSource:b,builtInCalcWay:gn,formula:x,conditions:re,aggregate:w,distinct:J,dimByCount:Fn,dataTo:Bn,sort:j}=c;let vn;if(re&&(vn=jn(re)),g==="COMPONENT"){const Rn={};return Nn(Rn,b),{label:f.trim(),columnName:d,show:v,calcType:g,componentAlias:gn,componentValue:Rn.fieldValue||null}}const Pn={label:f.trim(),columnName:d,location:h,show:v,calcType:Bn==="1"?"VIEW":g,hrpIndexCode:p,hrpIndexCodeNum:m,aggregate:w,builtInFormula:y,builtInValueSource:b,formula:x,conditions:vn};if(j&&(Pn.sort={columnName:d,label:Pn.label,order:j,type:"NORMAL"}),y!=="DATE_OFFSET")return d==="the_count"&&(Pn.calcType="AGGREGATE",Pn.distinct=!!J,Pn.typeGuid=Fn),Object.assign(Object.assign({},Pn),{builtInCalcWay:gn});{const Rn=gn.split("-");if((Rn==null?void 0:Rn.length)===3){let zn=Rn[0];return Rn[2]==="before"&&Rn[0]!=="0"&&(zn=`-${Rn[0]}`),Object.assign(Object.assign({},Pn),{calcWays:[zn],dateCalcTypes:[Rn[1]]})}}},Cn=c=>{if(!c)return[];const u=fn((c==null?void 0:c.controlList)||[]).filter(J=>J.conditionKey!=="parentCode"),{classificationList:f=[],rowHeaderList:d=[],dimensionList:h=[],seriesList:v=[],leftAxisList:p=[],rightAxisList:m=[],queryColumnList:g=[],indexLibColumns:y=[],indicators:b=[]}=c;Tn(u);const gn=[...f,...d,...h,...v,...p,...m,...g,...y,...b],x=[];for(const J of gn){const Fn=bn((J==null?void 0:J.conditions)||[]);if(Fn!=null&&Fn.length){const Bn=Fn.filter(j=>(j==null?void 0:j.dataType)==="component").map(j=>{const vn={};return j!=null&&j.dateFormat&&(vn.format=j.dateFormat),j.fieldValue==="PARENT"&&(vn.id="PARENT",vn.keyName=j.modelKey,vn.modelKey=j.modelKey,vn.prop=j.prop),Object.assign({conditionKey:j.fieldName,conditionLabel:j.fieldName,conditionName:j.fieldName,conditionValueType:j.fieldType,id:j.componentId,keyName:j.fieldValue,rule:j.rule,notGlobal:!0,indexCode:j.indexCode,typeGuid:j.typeGuid,indexCodeNum:j.indexCodeNum},vn)});if(Bn!=null&&Bn.length)for(const j of Bn)x.find(vn=>vn.keyName===j.keyName)||x.push(j)}}const re=x.length,w=u;for(let J=0;J<re;J++){const Fn=x[J];if((Fn==null?void 0:Fn.conditionKey)==="parentCode")continue;const{id:Bn,keyName:j,prop:vn,format:Pn,modelKey:Rn,dataType:zn="component",customValue:Un}=Fn,qn=Ln(Fn);Nn(qn,Bn,{prop:vn,dateFormat:Pn,modelKey:Rn,keyName:j}),zn===""&&(qn.fieldValue=Un||""),w.push(qn)}for(let J=w.length-1;J>=0;J--){const Fn=w[J];Fn.globalCondition||bn(w).find(Bn=>Bn.alias===Fn.alias&&Bn.globalCondition)&&w.splice(J,1)}return w};function Ln(c){const{id:u,keyName:f,conditionLabel:d,conditionKey:h,conditionValueType:v,prop:p,rule:m="NONE",notGlobal:g=!1,indexCode:y,typeGuid:b,indexCodeNum:gn,dataType:x="component"}=c;let re=f||u;re&&p&&(re+=`-${p}`);let w=m;return w==="NONE"&&(w=["startTime","endTime"].includes(p)?p==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":f!=null&&f.includes("startTime")?p==="GREATER_EQUAL":f!=null&&f.includes("endTime")?p==="LESS_EQUAL":"EQUAL"),u==="PARENT"&&(re=c.modelKey,re&&p&&(re+=`-${p}`),w=m),{rule:w,label:d,fieldName:h,fieldValue:"",valueType:v,alias:re,globalCondition:!g,indexCode:y,typeGuid:b,indexCodeNum:gn,dataType:x}}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:d,prop:h,modelKey:v,format:p,dataType:m="component",customValue:g}=u,y=Ln(u);Nn(y,f,{prop:h,dateFormat:p,modelKey:v,keyName:d}),m===""&&(y.fieldValue=g||"");for(const b in y)u[b]=y[b];for(const b of Sn)delete u[b]}}function Nn(c,u,f){const{prop:d="",dateFormat:h="",modelKey:v="",keyName:p="",operateValue:m,operateMode:g,operateType:y}=f||{},b=v||p;if(u==="PARENT"&&b&&d){const j=window.config.record;let vn=d,Pn=h;const Rn=d.match(/\{(.+?)\}/g);if(Rn!=null&&Rn.length){const zn=Rn[0].slice(1,-1).trim();vn=d.replace(Rn[0],""),Pn=zn,c.dateFormat=Pn}if(j&&j[b]){const zn=_(j[b][vn]);ce.isDayjs(zn)?c.fieldValue=zn.format(Pn||"YYYY-MM-DD"):c.fieldValue=zn}return}const gn=An(u)||{},{value:x,format:re="YYYY-MM-DD",type:w="",useCurrentTime:J,RECORD:Fn}=gn||{},Bn=h||re;if(yn(w,"date")){let j;if(j=J?x?_(x):ce():_(x),typeof j=="string"&&(j=ce(j)),m&&g&&y)switch(y){case"add":j=j.add(m,g);break;case"minus":j=j.subtract(m,g)}c.fieldValue=j==null?void 0:j.format(Bn),c.dateFormat=Bn}else if(yn(w,"rangepicker")){let j=d;if(!d){const Pn=p&&p.split("-");Pn!=null&&Pn.length&&(j=Pn[Pn.length-1])}if(!j)return;let vn=null;if(_(gn[j])&&(vn=ce(_(gn[j]))),m&&g&&y){if(m==="rangeValue"){if(gn.startTime&&gn.endTime){const Pn=_(gn.endTime).diff(_(gn.startTime),g)+1;switch(y){case"add":vn=vn&&vn.add(Pn,g);break;case"minus":vn=vn&&vn.subtract(Pn,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)),j==="rangeValue"&&gn.startTime&&gn.endTime){const Pn=function(Rn){const zn=Rn.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);Pn&&(c.fieldValue=_(gn.endTime).diff(_(gn.startTime),Pn)+1)}c.dateFormat=Bn}else yn(w,xn)?c.fieldValue=v&&Fn?Fn[v]:!v&&Fn?Fn.value:_(x):yn(w,"select")&&Array.isArray(_(x))?c.fieldValue=_(x).join(","):c.fieldValue=_(x)}const $n=c=>{var u;if(c){const f=Array.isArray(c)?fn(c):[fn(c)];let d="",h=[];const v=[],p=[],m=[];for(const g of f){if(g.defaultCode&&(g.label=g.columnName,delete g.defaultCode),g.type==="CUSTOM"&&(h=g.customOrderColumns),d=g.type,v.push(g.label),(u=g.columnName)===null||u===void 0?void 0:u.includes("_ecanrepeat_")){const y=g.columnName.split("_ecanrepeat_");p.push(y[0])}else p.push(g.columnName);m.push(g.order)}return d!=="CUSTOM"&&(v==null?void 0:v.length)>1&&(d="COMBINATION"),d==="CUSTOM"?{label:v.join(","),columnName:p.join(","),type:d,customOrderColumns:h}:{label:v.join(","),columnName:p.join(","),order:m.join(","),type:d}}return c},kn=c=>{const{sortCpnts:u=[]}=c;let f,d="";for(const h of u){const v=An(h)||{},{type:p,RECORD:m}=v;if(yn(p,"image")&&yn(m==null?void 0:m.value,["asc","desc"])){d=m.value.toUpperCase();break}}return d&&(f={label:c.label,columnName:c.name,order:d,type:"NORMAL"}),f},Dn=(c,u={})=>{var f,d,h,v,p,m,g,y;const{graphicConfig:b,type:gn,globalModel:x,isGroupTable:re=!1}=c;x&&(wn=x);const w=yn(gn,"pivottable");let J,{source:Fn,dataViewId:Bn,plugin:j="1",layer:vn,chartType:Pn,classificationList:Rn=[],rowHeaderList:zn=[],dimensionList:Un=[],seriesList:qn=[],leftAxisList:Qn=[],rightAxisList:Jn=[],queryColumnList:Zn=[],indexLibColumns:Xn=[],indicators:nr=[],controlList:sr=[],formFields:ur={},variableList:Hn=[],variableConditions:Kn=[],dataSourceId:Vn="",idxLibMode:Gn,preview:er=!1,edvDataSetId:Wn,compositeIndicator:or}=b||{},cr=[];if((b==null?void 0:b.pageMode)==="design"?(cr=((f=b.sqlConditions)!==null&&f!==void 0?f:[]).map(br=>{const hr={};if(mn(br,"globalCondition")||br.join||(hr.globalCondition=!0),!br.join){const gr=br.rule||"EQUAL";hr.rule=gr==="NONE"?"EQUAL":gr}return Object.assign(Object.assign({},br),hr)}),Kn!=null&&Kn.length&&(cr=cr.concat(Kn))):(cr=Cn(b),Hn!=null&&Hn.length&&(cr=cr.concat(function(br){const hr=[];if(br!=null&&br.length){for(const gr of br)if(gr.variableName){const Er={variateName:gr.variableName,globalCondition:!1,valueType:gr.variableType,alias:gr.keyName||""};Nn(Er,gr.id,{dateFormat:gr.format,prop:gr.dateTypeValue,keyName:gr.keyName,operateType:gr.operateType,operateMode:gr.operateMode,operateValue:gr.operateValue}),gr.dataType===""&&(Er.fieldValue=gr.variableValue),gr.format&&(Er.dateFormat=gr.format),gr.label&&(Er.label=gr.label),hr.push(Er)}}return hr}(Hn)))),cr==null?void 0:cr.length){const br=cr.filter(gr=>gr.globalCondition),hr=cr.filter(gr=>!gr.globalCondition);(br==null?void 0:br.length)>1&&(cr=[{join:"&&",conditions:br},...hr])}cr!=null&&cr.length&&(cr=jn(cr,"1")),vn==null&&(vn=yn(gn,["table","card"])||yn(gn,["list","circulate"])&&(Rn==null?void 0:Rn.length)>1?"1":yn(gn,["select","checkbox","radio"])?"3":yn(gn,["indexPanel"])?"4":"2"),yn(gn,["indexPanel"])&&(j="3");const ar=[];let tr,pr="";if(Array.isArray(Rn)&&Rn.length>0&&(!["ecanList","ecanCirculate"].includes(gn)||(Rn==null?void 0:Rn.length)===1)){const br=Rn.length;for(let hr=0;hr<br;hr++){const gr=Rn[hr]||{},{label:Er="",name:wr="",show:_r=!1,sort:Rr,customGroup:Mr,conditions:Dr,dateFormat:Br,typeGuid:Vr="",truncations:Gr=[]}=gr;if(_r||br===1){pr=Vr,J={label:Er.trim(),columnName:wr,show:_r,sort:kn(gr)||$n(Rr)||Rr,customGroup:Mr,conditions:jn(Dr),typeGuid:Vr},Br&&(J.dateFormat=Br),wr!=="the_date"||J.dateFormat||(J.dateFormat="YYYY-MM-DD");const Hr={};if(Array.isArray(Gr)&&Gr.length>0){const Ur=Gr.length;for(let Qr=0;Qr<Ur;Qr++){const Yr=Gr[Qr]||{},{rule:ni="",num:Ar=0,name:Ir=""}=Yr;ni&&Ar&&(Hr.num=Ar,Hr.rule=ni,Ir&&(Hr.otherGroupName=Ir))}}if(!((d=Object.keys(Hr))===null||d===void 0)&&d.length&&(J.truncation=Hr),!yn(gn,["scatter","valueline"]))break;ar.push(J)}}}if(Array.isArray(qn)&&qn.length>0){const br=qn.length;for(let hr=0;hr<br;hr++){const gr=qn[hr]||{},{label:Er="",name:wr="",show:_r=!1,sort:Rr,customGroup:Mr,conditions:Dr,typeGuid:Br,dateFormat:Vr=""}=gr;if(_r||br===1){tr={label:Er.trim(),columnName:wr,show:_r,sort:$n(Rr),customGroup:Mr,conditions:jn(Dr),typeGuid:Br},Vr?tr.dateFormat=Vr:wr==="the_date"&&(tr.dateFormat="YYYY-MM-DD");break}}}const Yn=[];Qn==null||Qn.forEach(br=>{br.location="LEFT",Yn.push(On(br,J))}),Jn==null||Jn.forEach(br=>{br.location="RIGHT",Yn.push(On(br,J))});let ir=nr;u!=null&&u.pivotTableCal&&(ir=((h=u.pivotTableCal)===null||h===void 0?void 0:h.indicators)||[]),ir==null||ir.forEach(br=>{br.location="LEFT",Yn.push(On(br,J))});const lr=[];["ecanList","ecanCirculate"].includes(gn)&&(Rn==null?void 0:Rn.length)>1&&(Zn=Rn),u!=null&&u.pivotTableCal&&(Zn=((v=u.pivotTableCal)===null||v===void 0?void 0:v.dimensions)||[]),Zn==null||Zn.forEach(br=>{const{label:hr,name:gr,location:Er,show:wr,indexCode:_r,sort:Rr,typeGuid:Mr,indexCodeNum:Dr,dateFormat:Br,conditions:Vr}=br;let Gr=$n(Rr);if(u.sort){const{field:Ur,order:Qr}=u.sort;let Yr=Yn.find(ni=>ni.label===Ur);Yr||hr!==Ur||(Yr=br),Yr&&(Gr={columnName:Yr.columnName,label:u.sort.field,order:Qr.toUpperCase(),type:"NORMAL"})}const Hr={label:hr,columnName:gr,location:Er,show:wr,sort:Gr,calcType:"COLUMN",hrpIndexCode:_r,hrpIndexCodeNum:Dr,conditions:jn(Vr),typeGuid:Mr};Br&&(Hr.dateFormat=Br),gr!=="the_date"||Hr.dateFormat||(Hr.dateFormat="YYYY-MM-DD"),lr.push(Hr)});const vr=[];["ecanTable"].includes(gn)&&b.isIndexSet&&Xn.forEach(br=>{const hr={label:br.label,calcType:br.calcType,show:br.show};br.formula&&(hr.formula=br.formula),vr.push(hr)});let dr=[],yr=[];if(Array.isArray(zn)&&zn.length>0?yr=zn:Array.isArray(Un)&&Un.length>0&&(yr=Un),yr==null?void 0:yr.length){const br=yr.length;for(let hr=0;hr<br;hr++){const gr=yr[hr]||{},{label:Er="",name:wr="",show:_r=!1,sort:Rr,customGroup:Mr,conditions:Dr,truncations:Br,typeGuid:Vr="",dateFormat:Gr}=gr;let Hr=$n(Rr);if(u.sort){const{field:Yr,order:ni}=u.sort;let Ar=Yn.find(Ir=>Ir.label===Yr);Ar||gr.label!==Yr||(Ar=gr),Ar&&(Hr={columnName:Ar.columnName,label:u.sort.field,order:ni.toUpperCase(),type:"NORMAL"})}const Ur={label:Er.trim(),columnName:wr,show:_r,sort:Hr,customGroup:Mr,conditions:jn(Dr),typeGuid:Vr};Gr&&(Ur.dateFormat=Gr),wr!=="the_date"||Ur.dateFormat||(Ur.dateFormat="YYYY-MM-DD");const Qr={};if(Array.isArray(Br)&&Br.length>0){const Yr=Br.length;for(let ni=0;ni<Yr;ni++){const Ar=Br[ni]||{},{rule:Ir="",num:Or=0,name:Fr=""}=Ar;Ir&&Or&&(Qr.num=Or,Qr.rule=Ir,Fr&&(Qr.otherGroupName=Fr))}}!((p=Object.keys(Qr))===null||p===void 0)&&p.length&&(Ur.truncation=Qr),dr.push(Ur)}}let fr,mr=[];const xr=[];if(u!=null&&u.pivotTableCal){let br=[];const{calc:hr=[],filter:gr=[],truncations:Er=[],sorts:wr=[],aggregateMethod:_r=[],rowDimensionKeys:Rr=[],colDimensionKeys:Mr=[]}=u.pivotTableCal;if(Yn.push(...hr),gr==null?void 0:gr.length){const Dr=function Br(Vr){const Gr=[];for(const Hr of Vr)Hr.conditions?Gr.push(...Br(Hr.conditions)):Hr.conditionKey==="the_date"&&Gr.push(Hr);return Gr}(sr);for(const Br of gr){const{type:Vr}=Br,Gr=e(Br,["type"]);Vr==="indicators"?br=Yn:Vr==="dimension"&&(br=lr);const Hr=br.find(Ur=>Ur.columnName===Br.fieldName&&Ur.label===Br.label);if(Hr){if(Vr==="indicators")Hr.filter={rule:Gr.rule,fieldValue:Gr.fieldValue};else if(Vr==="dimension"){let Ur=!0;Gr.fieldName==="the_date"&&(Dr==null?void 0:Dr.length)===2&&(Ur=!1,xr.push(Gr)),Ur&&(Hr.conditions||(Hr.conditions=[]),Hr.conditions.push(Gr))}}}}if(Er!=null&&Er.length)for(const Dr of Er){const Br=lr.find(Vr=>Vr.label===Dr.key);Br&&(Br.truncation={num:Dr.num,rule:Dr.rule})}if(wr!=null&&wr.length)for(const Dr of wr){const{fieldType:Br,columnData:Vr}=Dr,Gr=e(Dr,["fieldType","columnData"]);Br==="indicators"?(br=Yn,fr=Vr):Br==="dimension"&&(br=lr);const Hr=br.find(Ur=>Ur.label===Gr.label);Hr&&(Hr.sort=Object.assign(Object.assign({},Gr),{columnName:Hr.columnName}))}if(!((m=Object.keys(_r))===null||m===void 0)&&m.length)for(const Dr in _r){const Br=lr.find(Vr=>Vr.label===Dr);Br&&(!((g=_r[Dr])===null||g===void 0)&&g.length)&&(Br.aggregateMethod=_r[Dr])}dr=[],mr=[];for(const Dr of lr)Rr.includes(Dr.columnName)?dr.push(Dr):Mr.includes(Dr.columnName)&&mr.push(Dr)}if(yn(gn,["text","proportion","counter"])?Pn="zb":yn(gn,["valueline"])?Pn="valueline":yn(gn,["indexPanel"])&&(Pn="indexPanel"),re||gn==="card"){if(dr.length===0||Yn.length===0)return;Pn="grouptable"}else if(vn==="1"&&!lr.length&&!vr.length||["2","4"].includes(vn)&&Yn.length===0||!(vn!=="3"||(pr||Fn==="EDV_DATA_SET")&&ur.labelField&&ur.valueField)||vn==="3"&&gn==="ecanDataSelect"&&Yn.length===0)return;let Cr;if(Un!=null&&Un.length&&(vn="1",Pn="grouptable"),!yn(gn,["scatter","valueline"])&&((y=Object.keys(ur))===null||y===void 0?void 0:y.length)){const br=bn(sr).find(gr=>gr.conditionKey==="parentCode"),hr={};if(br){const gr=An(br.id)||{};if(!(gr!=null&&gr.itemCodes))return;hr.parentItemCodes=gr.itemCodes}gn==="ecanDataSelect"&&(hr.indicatorList=Yn.filter(gr=>gr.show)),Fn==="EDV_DATA_SET"&&(hr.edvDataSetId=Wn),J.sort&&(hr.sort=J.sort),Cr=Object.assign({url:"/diagram/formData",source:Fn,dataViewId:Bn,plugin:"4",layer:vn,chartType:"normalSelect",rangeIndexTypeGuid:pr,type:gn==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:ur.labelField,valueField:ur.valueField,sqlConditions:cr,idxLibMode:"WITH_DATE_DIM_TABLE",dataSourceId:Vn,keyName:c.keyName},hr)}else{let br={};br=yn(gn,["scatter","valueline"])?{classifications:ar}:{classification:J},vr!=null&&vr.length&&(br.indexLibColumns=vr,br.isIndexSet=!0),yn(gn,"table")&&b.isIndexSet&&(br.compositeIndicator=or);const hr=cr.map(gr=>{const{fieldValue:Er}=gr,wr={};return Er&&Array.isArray(Er)&&(wr.fieldValue=JSON.stringify(Er)),Object.assign(Object.assign({},gr),wr)});xr!=null&&xr.length&&function gr(Er){for(const wr of Er)if(wr.sqlConditions)gr(wr.sqlConditions);else if(wr.fieldName==="the_date"){const _r=xr.find(Rr=>Rr.prop===wr.prop);_r&&(wr.fieldValue=_r.fieldValue)}}(hr),Cr=Object.assign({url:"/diagram",source:Fn,dataViewId:Bn,plugin:w?"5":j,layer:vn,chartType:w?"pivot-table":Pn,series:tr,indicatorList:Yn,queryColumns:re?[]:lr,pageFlag:!0,edvDataSetId:Wn||"",sqlConditions:hr,idxLibMode:Gn,dataSourceId:Vn,preview:er,rowHeaders:dr,keyName:c.keyName,columnData:fr,columnHeaders:mr},br)}return Cr},Mn=(c=[],u,f=!1)=>{let{name:d="name",types:h=[]}=u||{};d=(d==null?void 0:d.trim())||d;const v=new Set,p=new Map,m=c.length,g=h.length;if(m!==1||f)for(let gn=0;gn<m;gn++){const x=c[gn],re=x[d];v.add(re);for(let w=0;w<g;w++){const J=h[w],{label:Fn,value:Bn}=J,j=Object.assign(Object.assign({},x),{value:x[Bn]});if(p.has(Fn)){const vn=p.get(Fn);vn.push(j),p.set(Fn,vn)}else p.set(Fn,[j])}}else{const gn=[];for(let re=0;re<g;re++){const w=h[re],{label:J,value:Fn}=w,Bn=Object.assign(Object.assign({},c[0]),{value:c[0][Fn]});v.add(J),gn.push(Bn)}const x=c[0][d]||"";p.set(x,gn)}const y=Array.from(v),b=[];for(const[gn,x]of p)b.push({name:gn,data:x});return{dimensions:y,dataset:b}},En=(c,u)=>{let{name:f="name",value:d="value",type:h="type"}=u||{};f=f==null?void 0:f.trim(),d=d==null?void 0:d.trim(),h=h==null?void 0:h.trim();const v=new Map,p=c.length;for(let y=0;y<p;y++){const b=c[y],gn=b[f]||"",x=b[d]||"",re=b[h]||"";if(v.has(re)){const w=v.get(re);w.push(Object.assign({name:gn,value:x},b)),v.set(re,w)}else v.set(re,[Object.assign({name:gn,value:x},b)])}const m=[],g=[];for(const[y,b]of v)if(g.push({name:y,data:b}),b==null?void 0:b.length)if(m.length)for(const gn of b)m.includes(gn.name)||m.push(gn.name);else m.push(...b.map(gn=>gn.name));return{dimensions:m,dataset:g}},In=(c,u)=>{var f;if(c==null)return u;const d=c.match(/\{.*\}/g);if(d==null||d.length===0)return u;const h=d.length;for(let v=0;v<h;v++){const p=d[v];if(p==null||p==="")break;let m=(f=p.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(p,g)}catch{c=c.replace(p,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"}),d=lodashEs.without(styleList,...u);return vue.computed(()=>{var p,m;const h=lodashEs.pick(c,d),v=["width","height","top","left"];for(const g of v)mn(h,g)&&(["width","height"].includes(g)&&((p=c[g])==null?void 0:p.suffix)==="%"&&vue.unref(f)==="design"?h[g]="100%":(m=c[g])!=null&&m.suffix&&(h[g]=(c[g].value||0)+c[g].suffix));return h})},useOnEvent=(c,u)=>{vue.watch(()=>c.id,f=>{const d=vue.inject(EVENT_BUS,{onEvent:(h,v)=>{}});f!=null&&f!==""&&d.onEvent(f,u)},{immediate:!0})},ignoreClickType=["ecanTable"],useEmitEvent=c=>{const u=c.events,f=c.id,d=vue.inject(EVENT_BUS,{emitEvent:(p,m,g)=>{}}),h=vue.inject(COMMON_OPERATE,{operateAction:(p,m)=>{}}),{touchEventId:v}=vue.inject(GLOBAL_CONFIG,{touchEventId:vue.ref("")});return(p,m=()=>{},g)=>function(){m.call(this,...arguments);const{emitEvent:y}=d,{operateAction:b}=h;p==="click"&&!u.find(x=>x.on==="click")&&(!ignoreClickType.includes(c.type)&&c.dataType==="indicator"||c.parentId)&&b("SHOW_INDICATOR_DETAIL_MODAL",{props:c}),u.forEach(gn=>{if(p===gn.on)try{v.value=f,g?y(gn.target,gn.emit,g):y(gn.target,gn.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 d(){return this instanceof d?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(d){var h=Object.getOwnPropertyDescriptor(c,d);Object.defineProperty(f,d,h.get?h:{enumerable:!0,get:function(){return c[d]}})}),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,d){c.exports=d()})(commonjsGlobal,function(){var f=f||function(d,h){var v;if(typeof window<"u"&&window.crypto&&(v=window.crypto),typeof self<"u"&&self.crypto&&(v=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(v=globalThis.crypto),!v&&typeof window<"u"&&window.msCrypto&&(v=window.msCrypto),!v&&typeof commonjsGlobal<"u"&&commonjsGlobal.crypto&&(v=commonjsGlobal.crypto),!v&&typeof commonjsRequire=="function")try{v=require$$0}catch{}var p=function(){if(v){if(typeof v.getRandomValues=="function")try{return v.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof v.randomBytes=="function")try{return v.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},m=Object.create||function(){function j(){}return function(vn){var Pn;return j.prototype=vn,Pn=new j,j.prototype=null,Pn}}(),g={},y=g.lib={},b=y.Base=function(){return{extend:function(j){var vn=m(this);return j&&vn.mixIn(j),(!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 j=this.extend();return j.init.apply(j,arguments),j},init:function(){},mixIn:function(j){for(var vn in j)j.hasOwnProperty(vn)&&(this[vn]=j[vn]);j.hasOwnProperty("toString")&&(this.toString=j.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),gn=y.WordArray=b.extend({init:function(j,vn){j=this.words=j||[],vn!=h?this.sigBytes=vn:this.sigBytes=j.length*4},toString:function(j){return(j||re).stringify(this)},concat:function(j){var vn=this.words,Pn=j.words,Rn=this.sigBytes,zn=j.sigBytes;if(this.clamp(),Rn%4)for(var Un=0;Un<zn;Un++){var qn=Pn[Un>>>2]>>>24-Un%4*8&255;vn[Rn+Un>>>2]|=qn<<24-(Rn+Un)%4*8}else for(var Qn=0;Qn<zn;Qn+=4)vn[Rn+Qn>>>2]=Pn[Qn>>>2];return this.sigBytes+=zn,this},clamp:function(){var j=this.words,vn=this.sigBytes;j[vn>>>2]&=4294967295<<32-vn%4*8,j.length=d.ceil(vn/4)},clone:function(){var j=b.clone.call(this);return j.words=this.words.slice(0),j},random:function(j){for(var vn=[],Pn=0;Pn<j;Pn+=4)vn.push(p());return new gn.init(vn,j)}}),x=g.enc={},re=x.Hex={stringify:function(j){for(var vn=j.words,Pn=j.sigBytes,Rn=[],zn=0;zn<Pn;zn++){var Un=vn[zn>>>2]>>>24-zn%4*8&255;Rn.push((Un>>>4).toString(16)),Rn.push((Un&15).toString(16))}return Rn.join("")},parse:function(j){for(var vn=j.length,Pn=[],Rn=0;Rn<vn;Rn+=2)Pn[Rn>>>3]|=parseInt(j.substr(Rn,2),16)<<24-Rn%8*4;return new gn.init(Pn,vn/2)}},w=x.Latin1={stringify:function(j){for(var vn=j.words,Pn=j.sigBytes,Rn=[],zn=0;zn<Pn;zn++){var Un=vn[zn>>>2]>>>24-zn%4*8&255;Rn.push(String.fromCharCode(Un))}return Rn.join("")},parse:function(j){for(var vn=j.length,Pn=[],Rn=0;Rn<vn;Rn++)Pn[Rn>>>2]|=(j.charCodeAt(Rn)&255)<<24-Rn%4*8;return new gn.init(Pn,vn)}},J=x.Utf8={stringify:function(j){try{return decodeURIComponent(escape(w.stringify(j)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(j){return w.parse(unescape(encodeURIComponent(j)))}},Fn=y.BufferedBlockAlgorithm=b.extend({reset:function(){this._data=new gn.init,this._nDataBytes=0},_append:function(j){typeof j=="string"&&(j=J.parse(j)),this._data.concat(j),this._nDataBytes+=j.sigBytes},_process:function(j){var vn,Pn=this._data,Rn=Pn.words,zn=Pn.sigBytes,Un=this.blockSize,qn=Un*4,Qn=zn/qn;j?Qn=d.ceil(Qn):Qn=d.max((Qn|0)-this._minBufferSize,0);var Jn=Qn*Un,Zn=d.min(Jn*4,zn);if(Jn){for(var Xn=0;Xn<Jn;Xn+=Un)this._doProcessBlock(Rn,Xn);vn=Rn.splice(0,Jn),Pn.sigBytes-=Zn}return new gn.init(vn,Zn)},clone:function(){var j=b.clone.call(this);return j._data=this._data.clone(),j},_minBufferSize:0});y.Hasher=Fn.extend({cfg:b.extend(),init:function(j){this.cfg=this.cfg.extend(j),this.reset()},reset:function(){Fn.reset.call(this),this._doReset()},update:function(j){return this._append(j),this._process(),this},finalize:function(j){j&&this._append(j);var vn=this._doFinalize();return vn},blockSize:16,_createHelper:function(j){return function(vn,Pn){return new j.init(Pn).finalize(vn)}},_createHmacHelper:function(j){return function(vn,Pn){return new Bn.HMAC.init(j,Pn).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,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(d){var h=f,v=h.lib,p=v.Base,m=v.WordArray,g=h.x64={};g.Word=p.extend({init:function(y,b){this.high=y,this.low=b}}),g.WordArray=p.extend({init:function(y,b){y=this.words=y||[],b!=d?this.sigBytes=b:this.sigBytes=y.length*8},toX32:function(){for(var y=this.words,b=y.length,gn=[],x=0;x<b;x++){var re=y[x];gn.push(re.high),gn.push(re.low)}return m.create(gn,this.sigBytes)},clone:function(){for(var y=p.clone.call(this),b=y.words=this.words.slice(0),gn=b.length,x=0;x<gn;x++)b[x]=b[x].clone();return y}})}(),f})}(x64Core)),x64Core.exports}var libTypedarrays={exports:{}},hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){if(typeof ArrayBuffer=="function"){var d=f,h=d.lib,v=h.WordArray,p=v.init,m=v.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,b=[],gn=0;gn<y;gn++)b[gn>>>2]|=g[gn]<<24-gn%4*8;p.call(this,b,y)}else p.apply(this,arguments)};m.prototype=v}}(),f.lib.WordArray})}(libTypedarrays)),libTypedarrays.exports}var encUtf16={exports:{}},hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.WordArray,p=d.enc;p.Utf16=p.Utf16BE={stringify:function(g){for(var y=g.words,b=g.sigBytes,gn=[],x=0;x<b;x+=2){var re=y[x>>>2]>>>16-x%4*8&65535;gn.push(String.fromCharCode(re))}return gn.join("")},parse:function(g){for(var y=g.length,b=[],gn=0;gn<y;gn++)b[gn>>>1]|=g.charCodeAt(gn)<<16-gn%2*16;return v.create(b,y*2)}},p.Utf16LE={stringify:function(g){for(var y=g.words,b=g.sigBytes,gn=[],x=0;x<b;x+=2){var re=m(y[x>>>2]>>>16-x%4*8&65535);gn.push(String.fromCharCode(re))}return gn.join("")},parse:function(g){for(var y=g.length,b=[],gn=0;gn<y;gn++)b[gn>>>1]|=m(g.charCodeAt(gn)<<16-gn%2*16);return v.create(b,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,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.WordArray,p=d.enc;p.Base64={stringify:function(g){var y=g.words,b=g.sigBytes,gn=this._map;g.clamp();for(var x=[],re=0;re<b;re+=3)for(var w=y[re>>>2]>>>24-re%4*8&255,J=y[re+1>>>2]>>>24-(re+1)%4*8&255,Fn=y[re+2>>>2]>>>24-(re+2)%4*8&255,Bn=w<<16|J<<8|Fn,j=0;j<4&&re+j*.75<b;j++)x.push(gn.charAt(Bn>>>6*(3-j)&63));var vn=gn.charAt(64);if(vn)for(;x.length%4;)x.push(vn);return x.join("")},parse:function(g){var y=g.length,b=this._map,gn=this._reverseMap;if(!gn){gn=this._reverseMap=[];for(var x=0;x<b.length;x++)gn[b.charCodeAt(x)]=x}var re=b.charAt(64);if(re){var w=g.indexOf(re);w!==-1&&(y=w)}return m(g,y,gn)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function m(g,y,b){for(var gn=[],x=0,re=0;re<y;re++)if(re%4){var w=b[g.charCodeAt(re-1)]<<re%4*2,J=b[g.charCodeAt(re)]>>>6-re%4*2,Fn=w|J;gn[x>>>2]|=Fn<<24-x%4*8,x++}return v.create(gn,x)}}(),f.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.WordArray,p=d.enc;p.Base64url={stringify:function(g,y=!0){var b=g.words,gn=g.sigBytes,x=y?this._safe_map:this._map;g.clamp();for(var re=[],w=0;w<gn;w+=3)for(var J=b[w>>>2]>>>24-w%4*8&255,Fn=b[w+1>>>2]>>>24-(w+1)%4*8&255,Bn=b[w+2>>>2]>>>24-(w+2)%4*8&255,j=J<<16|Fn<<8|Bn,vn=0;vn<4&&w+vn*.75<gn;vn++)re.push(x.charAt(j>>>6*(3-vn)&63));var Pn=x.charAt(64);if(Pn)for(;re.length%4;)re.push(Pn);return re.join("")},parse:function(g,y=!0){var b=g.length,gn=y?this._safe_map:this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var re=0;re<gn.length;re++)x[gn.charCodeAt(re)]=re}var w=gn.charAt(64);if(w){var J=g.indexOf(w);J!==-1&&(b=J)}return m(g,b,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function m(g,y,b){for(var gn=[],x=0,re=0;re<y;re++)if(re%4){var w=b[g.charCodeAt(re-1)]<<re%4*2,J=b[g.charCodeAt(re)]>>>6-re%4*2,Fn=w|J;gn[x>>>2]|=Fn<<24-x%4*8,x++}return v.create(gn,x)}}(),f.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(d){var h=f,v=h.lib,p=v.WordArray,m=v.Hasher,g=h.algo,y=[];(function(){for(var J=0;J<64;J++)y[J]=d.abs(d.sin(J+1))*4294967296|0})();var b=g.MD5=m.extend({_doReset:function(){this._hash=new p.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(J,Fn){for(var Bn=0;Bn<16;Bn++){var j=Fn+Bn,vn=J[j];J[j]=(vn<<8|vn>>>24)&16711935|(vn<<24|vn>>>8)&4278255360}var Pn=this._hash.words,Rn=J[Fn+0],zn=J[Fn+1],Un=J[Fn+2],qn=J[Fn+3],Qn=J[Fn+4],Jn=J[Fn+5],Zn=J[Fn+6],Xn=J[Fn+7],nr=J[Fn+8],sr=J[Fn+9],ur=J[Fn+10],Hn=J[Fn+11],Kn=J[Fn+12],Vn=J[Fn+13],Gn=J[Fn+14],er=J[Fn+15],Wn=Pn[0],or=Pn[1],cr=Pn[2],ar=Pn[3];Wn=gn(Wn,or,cr,ar,Rn,7,y[0]),ar=gn(ar,Wn,or,cr,zn,12,y[1]),cr=gn(cr,ar,Wn,or,Un,17,y[2]),or=gn(or,cr,ar,Wn,qn,22,y[3]),Wn=gn(Wn,or,cr,ar,Qn,7,y[4]),ar=gn(ar,Wn,or,cr,Jn,12,y[5]),cr=gn(cr,ar,Wn,or,Zn,17,y[6]),or=gn(or,cr,ar,Wn,Xn,22,y[7]),Wn=gn(Wn,or,cr,ar,nr,7,y[8]),ar=gn(ar,Wn,or,cr,sr,12,y[9]),cr=gn(cr,ar,Wn,or,ur,17,y[10]),or=gn(or,cr,ar,Wn,Hn,22,y[11]),Wn=gn(Wn,or,cr,ar,Kn,7,y[12]),ar=gn(ar,Wn,or,cr,Vn,12,y[13]),cr=gn(cr,ar,Wn,or,Gn,17,y[14]),or=gn(or,cr,ar,Wn,er,22,y[15]),Wn=x(Wn,or,cr,ar,zn,5,y[16]),ar=x(ar,Wn,or,cr,Zn,9,y[17]),cr=x(cr,ar,Wn,or,Hn,14,y[18]),or=x(or,cr,ar,Wn,Rn,20,y[19]),Wn=x(Wn,or,cr,ar,Jn,5,y[20]),ar=x(ar,Wn,or,cr,ur,9,y[21]),cr=x(cr,ar,Wn,or,er,14,y[22]),or=x(or,cr,ar,Wn,Qn,20,y[23]),Wn=x(Wn,or,cr,ar,sr,5,y[24]),ar=x(ar,Wn,or,cr,Gn,9,y[25]),cr=x(cr,ar,Wn,or,qn,14,y[26]),or=x(or,cr,ar,Wn,nr,20,y[27]),Wn=x(Wn,or,cr,ar,Vn,5,y[28]),ar=x(ar,Wn,or,cr,Un,9,y[29]),cr=x(cr,ar,Wn,or,Xn,14,y[30]),or=x(or,cr,ar,Wn,Kn,20,y[31]),Wn=re(Wn,or,cr,ar,Jn,4,y[32]),ar=re(ar,Wn,or,cr,nr,11,y[33]),cr=re(cr,ar,Wn,or,Hn,16,y[34]),or=re(or,cr,ar,Wn,Gn,23,y[35]),Wn=re(Wn,or,cr,ar,zn,4,y[36]),ar=re(ar,Wn,or,cr,Qn,11,y[37]),cr=re(cr,ar,Wn,or,Xn,16,y[38]),or=re(or,cr,ar,Wn,ur,23,y[39]),Wn=re(Wn,or,cr,ar,Vn,4,y[40]),ar=re(ar,Wn,or,cr,Rn,11,y[41]),cr=re(cr,ar,Wn,or,qn,16,y[42]),or=re(or,cr,ar,Wn,Zn,23,y[43]),Wn=re(Wn,or,cr,ar,sr,4,y[44]),ar=re(ar,Wn,or,cr,Kn,11,y[45]),cr=re(cr,ar,Wn,or,er,16,y[46]),or=re(or,cr,ar,Wn,Un,23,y[47]),Wn=w(Wn,or,cr,ar,Rn,6,y[48]),ar=w(ar,Wn,or,cr,Xn,10,y[49]),cr=w(cr,ar,Wn,or,Gn,15,y[50]),or=w(or,cr,ar,Wn,Jn,21,y[51]),Wn=w(Wn,or,cr,ar,Kn,6,y[52]),ar=w(ar,Wn,or,cr,qn,10,y[53]),cr=w(cr,ar,Wn,or,ur,15,y[54]),or=w(or,cr,ar,Wn,zn,21,y[55]),Wn=w(Wn,or,cr,ar,nr,6,y[56]),ar=w(ar,Wn,or,cr,er,10,y[57]),cr=w(cr,ar,Wn,or,Zn,15,y[58]),or=w(or,cr,ar,Wn,Vn,21,y[59]),Wn=w(Wn,or,cr,ar,Qn,6,y[60]),ar=w(ar,Wn,or,cr,Hn,10,y[61]),cr=w(cr,ar,Wn,or,Un,15,y[62]),or=w(or,cr,ar,Wn,sr,21,y[63]),Pn[0]=Pn[0]+Wn|0,Pn[1]=Pn[1]+or|0,Pn[2]=Pn[2]+cr|0,Pn[3]=Pn[3]+ar|0},_doFinalize:function(){var J=this._data,Fn=J.words,Bn=this._nDataBytes*8,j=J.sigBytes*8;Fn[j>>>5]|=128<<24-j%32;var vn=d.floor(Bn/4294967296),Pn=Bn;Fn[(j+64>>>9<<4)+15]=(vn<<8|vn>>>24)&16711935|(vn<<24|vn>>>8)&4278255360,Fn[(j+64>>>9<<4)+14]=(Pn<<8|Pn>>>24)&16711935|(Pn<<24|Pn>>>8)&4278255360,J.sigBytes=(Fn.length+1)*4,this._process();for(var Rn=this._hash,zn=Rn.words,Un=0;Un<4;Un++){var qn=zn[Un];zn[Un]=(qn<<8|qn>>>24)&16711935|(qn<<24|qn>>>8)&4278255360}return Rn},clone:function(){var J=m.clone.call(this);return J._hash=this._hash.clone(),J}});function gn(J,Fn,Bn,j,vn,Pn,Rn){var zn=J+(Fn&Bn|~Fn&j)+vn+Rn;return(zn<<Pn|zn>>>32-Pn)+Fn}function x(J,Fn,Bn,j,vn,Pn,Rn){var zn=J+(Fn&j|Bn&~j)+vn+Rn;return(zn<<Pn|zn>>>32-Pn)+Fn}function re(J,Fn,Bn,j,vn,Pn,Rn){var zn=J+(Fn^Bn^j)+vn+Rn;return(zn<<Pn|zn>>>32-Pn)+Fn}function w(J,Fn,Bn,j,vn,Pn,Rn){var zn=J+(Bn^(Fn|~j))+vn+Rn;return(zn<<Pn|zn>>>32-Pn)+Fn}h.MD5=m._createHelper(b),h.HmacMD5=m._createHmacHelper(b)}(Math),f.MD5})}(md5)),md5.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.WordArray,p=h.Hasher,m=d.algo,g=[],y=m.SHA1=p.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(b,gn){for(var x=this._hash.words,re=x[0],w=x[1],J=x[2],Fn=x[3],Bn=x[4],j=0;j<80;j++){if(j<16)g[j]=b[gn+j]|0;else{var vn=g[j-3]^g[j-8]^g[j-14]^g[j-16];g[j]=vn<<1|vn>>>31}var Pn=(re<<5|re>>>27)+Bn+g[j];j<20?Pn+=(w&J|~w&Fn)+1518500249:j<40?Pn+=(w^J^Fn)+1859775393:j<60?Pn+=(w&J|w&Fn|J&Fn)-1894007588:Pn+=(w^J^Fn)-899497514,Bn=Fn,Fn=J,J=w<<30|w>>>2,w=re,re=Pn}x[0]=x[0]+re|0,x[1]=x[1]+w|0,x[2]=x[2]+J|0,x[3]=x[3]+Fn|0,x[4]=x[4]+Bn|0},_doFinalize:function(){var b=this._data,gn=b.words,x=this._nDataBytes*8,re=b.sigBytes*8;return gn[re>>>5]|=128<<24-re%32,gn[(re+64>>>9<<4)+14]=Math.floor(x/4294967296),gn[(re+64>>>9<<4)+15]=x,b.sigBytes=gn.length*4,this._process(),this._hash},clone:function(){var b=p.clone.call(this);return b._hash=this._hash.clone(),b}});d.SHA1=p._createHelper(y),d.HmacSHA1=p._createHmacHelper(y)}(),f.SHA1})}(sha1)),sha1.exports}var sha256={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(d){var h=f,v=h.lib,p=v.WordArray,m=v.Hasher,g=h.algo,y=[],b=[];(function(){function re(Bn){for(var j=d.sqrt(Bn),vn=2;vn<=j;vn++)if(!(Bn%vn))return!1;return!0}function w(Bn){return(Bn-(Bn|0))*4294967296|0}for(var J=2,Fn=0;Fn<64;)re(J)&&(Fn<8&&(y[Fn]=w(d.pow(J,1/2))),b[Fn]=w(d.pow(J,1/3)),Fn++),J++})();var gn=[],x=g.SHA256=m.extend({_doReset:function(){this._hash=new p.init(y.slice(0))},_doProcessBlock:function(re,w){for(var J=this._hash.words,Fn=J[0],Bn=J[1],j=J[2],vn=J[3],Pn=J[4],Rn=J[5],zn=J[6],Un=J[7],qn=0;qn<64;qn++){if(qn<16)gn[qn]=re[w+qn]|0;else{var Qn=gn[qn-15],Jn=(Qn<<25|Qn>>>7)^(Qn<<14|Qn>>>18)^Qn>>>3,Zn=gn[qn-2],Xn=(Zn<<15|Zn>>>17)^(Zn<<13|Zn>>>19)^Zn>>>10;gn[qn]=Jn+gn[qn-7]+Xn+gn[qn-16]}var nr=Pn&Rn^~Pn&zn,sr=Fn&Bn^Fn&j^Bn&j,ur=(Fn<<30|Fn>>>2)^(Fn<<19|Fn>>>13)^(Fn<<10|Fn>>>22),Hn=(Pn<<26|Pn>>>6)^(Pn<<21|Pn>>>11)^(Pn<<7|Pn>>>25),Kn=Un+Hn+nr+b[qn]+gn[qn],Vn=ur+sr;Un=zn,zn=Rn,Rn=Pn,Pn=vn+Kn|0,vn=j,j=Bn,Bn=Fn,Fn=Kn+Vn|0}J[0]=J[0]+Fn|0,J[1]=J[1]+Bn|0,J[2]=J[2]+j|0,J[3]=J[3]+vn|0,J[4]=J[4]+Pn|0,J[5]=J[5]+Rn|0,J[6]=J[6]+zn|0,J[7]=J[7]+Un|0},_doFinalize:function(){var re=this._data,w=re.words,J=this._nDataBytes*8,Fn=re.sigBytes*8;return w[Fn>>>5]|=128<<24-Fn%32,w[(Fn+64>>>9<<4)+14]=d.floor(J/4294967296),w[(Fn+64>>>9<<4)+15]=J,re.sigBytes=w.length*4,this._process(),this._hash},clone:function(){var re=m.clone.call(this);return re._hash=this._hash.clone(),re}});h.SHA256=m._createHelper(x),h.HmacSHA256=m._createHmacHelper(x)}(Math),f.SHA256})}(sha256)),sha256.exports}var sha224={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireSha256())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.WordArray,p=d.algo,m=p.SHA256,g=p.SHA224=m.extend({_doReset:function(){this._hash=new v.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var y=m._doFinalize.call(this);return y.sigBytes-=4,y}});d.SHA224=m._createHelper(g),d.HmacSHA224=m._createHmacHelper(g)}(),f.SHA224})}(sha224)),sha224.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireX64Core())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,v=h.Hasher,p=d.x64,m=p.Word,g=p.WordArray,y=d.algo;function b(){return m.create.apply(m,arguments)}var gn=[b(1116352408,3609767458),b(1899447441,602891725),b(3049323471,3964484399),b(3921009573,2173295548),b(961987163,4081628472),b(1508970993,3053834265),b(2453635748,2937671579),b(2870763221,3664609560),b(3624381080,2734883394),b(310598401,1164996542),b(607225278,1323610764),b(1426881987,3590304994),b(1925078388,4068182383),b(2162078206,991336113),b(2614888103,633803317),b(3248222580,3479774868),b(3835390401,2666613458),b(4022224774,944711139),b(264347078,2341262773),b(604807628,2007800933),b(770255983,1495990901),b(1249150122,1856431235),b(1555081692,3175218132),b(1996064986,2198950837),b(2554220882,3999719339),b(2821834349,766784016),b(2952996808,2566594879),b(3210313671,3203337956),b(3336571891,1034457026),b(3584528711,2466948901),b(113926993,3758326383),b(338241895,168717936),b(666307205,1188179964),b(773529912,1546045734),b(1294757372,1522805485),b(1396182291,2643833823),b(1695183700,2343527390),b(1986661051,1014477480),b(2177026350,1206759142),b(2456956037,344077627),b(2730485921,1290863460),b(2820302411,3158454273),b(3259730800,3505952657),b(3345764771,106217008),b(3516065817,3606008344),b(3600352804,1432725776),b(4094571909,1467031594),b(275423344,851169720),b(430227734,3100823752),b(506948616,1363258195),b(659060556,3750685593),b(883997877,3785050280),b(958139571,3318307427),b(1322822218,3812723403),b(1537002063,2003034995),b(1747873779,3602036899),b(1955562222,1575990012),b(2024104815,1125592928),b(2227730452,2716904306),b(2361852424,442776044),b(2428436474,593698344),b(2756734187,3733110249),b(3204031479,2999351573),b(3329325298,3815920427),b(3391569614,3928383900),b(3515267271,566280711),b(3940187606,3454069534),b(4118630271,4000239992),b(116418474,1914138554),b(174292421,2731055270),b(289380356,3203993006),b(460393269,320620315),b(685471733,587496836),b(852142971,1086792851),b(1017036298,365543100),b(1126000580,2618297676),b(1288033470,3409855158),b(1501505948,4234509866),b(1607167915,987167468),b(1816402316,1246189591)],x=[];(function(){for(var w=0;w<80;w++)x[w]=b()})();var re=y.SHA512=v.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(w,J){for(var Fn=this._hash.words,Bn=Fn[0],j=Fn[1],vn=Fn[2],Pn=Fn[3],Rn=Fn[4],zn=Fn[5],Un=Fn[6],qn=Fn[7],Qn=Bn.high,Jn=Bn.low,Zn=j.high,Xn=j.low,nr=vn.high,sr=vn.low,ur=Pn.high,Hn=Pn.low,Kn=Rn.high,Vn=Rn.low,Gn=zn.high,er=zn.low,Wn=Un.high,or=Un.low,cr=qn.high,ar=qn.low,tr=Qn,pr=Jn,Yn=Zn,ir=Xn,lr=nr,vr=sr,dr=ur,yr=Hn,fr=Kn,mr=Vn,xr=Gn,Cr=er,br=Wn,hr=or,gr=cr,Er=ar,wr=0;wr<80;wr++){var _r,Rr,Mr=x[wr];if(wr<16)Rr=Mr.high=w[J+wr*2]|0,_r=Mr.low=w[J+wr*2+1]|0;else{var Dr=x[wr-15],Br=Dr.high,Vr=Dr.low,Gr=(Br>>>1|Vr<<31)^(Br>>>8|Vr<<24)^Br>>>7,Hr=(Vr>>>1|Br<<31)^(Vr>>>8|Br<<24)^(Vr>>>7|Br<<25),Ur=x[wr-2],Qr=Ur.high,Yr=Ur.low,ni=(Qr>>>19|Yr<<13)^(Qr<<3|Yr>>>29)^Qr>>>6,Ar=(Yr>>>19|Qr<<13)^(Yr<<3|Qr>>>29)^(Yr>>>6|Qr<<26),Ir=x[wr-7],Or=Ir.high,Fr=Ir.low,Nr=x[wr-16],zr=Nr.high,Xr=Nr.low;_r=Hr+Fr,Rr=Gr+Or+(_r>>>0<Hr>>>0?1:0),_r=_r+Ar,Rr=Rr+ni+(_r>>>0<Ar>>>0?1:0),_r=_r+Xr,Rr=Rr+zr+(_r>>>0<Xr>>>0?1:0),Mr.high=Rr,Mr.low=_r}var ri=fr&xr^~fr&br,ii=mr&Cr^~mr&hr,ui=tr&Yn^tr&lr^Yn&lr,hi=pr&ir^pr&vr^ir&vr,li=(tr>>>28|pr<<4)^(tr<<30|pr>>>2)^(tr<<25|pr>>>7),vi=(pr>>>28|tr<<4)^(pr<<30|tr>>>2)^(pr<<25|tr>>>7),Si=(fr>>>14|mr<<18)^(fr>>>18|mr<<14)^(fr<<23|mr>>>9),yi=(mr>>>14|fr<<18)^(mr>>>18|fr<<14)^(mr<<23|fr>>>9),bi=gn[wr],Ci=bi.high,xi=bi.low,ai=Er+yi,ci=gr+Si+(ai>>>0<Er>>>0?1:0),ai=ai+ii,ci=ci+ri+(ai>>>0<ii>>>0?1:0),ai=ai+xi,ci=ci+Ci+(ai>>>0<xi>>>0?1:0),ai=ai+_r,ci=ci+Rr+(ai>>>0<_r>>>0?1:0),wi=vi+hi,Sr=li+ui+(wi>>>0<vi>>>0?1:0);gr=br,Er=hr,br=xr,hr=Cr,xr=fr,Cr=mr,mr=yr+ai|0,fr=dr+ci+(mr>>>0<yr>>>0?1:0)|0,dr=lr,yr=vr,lr=Yn,vr=ir,Yn=tr,ir=pr,pr=ai+wi|0,tr=ci+Sr+(pr>>>0<ai>>>0?1:0)|0}Jn=Bn.low=Jn+pr,Bn.high=Qn+tr+(Jn>>>0<pr>>>0?1:0),Xn=j.low=Xn+ir,j.high=Zn+Yn+(Xn>>>0<ir>>>0?1:0),sr=vn.low=sr+vr,vn.high=nr+lr+(sr>>>0<vr>>>0?1:0),Hn=Pn.low=Hn+yr,Pn.high=ur+dr+(Hn>>>0<yr>>>0?1:0),Vn=Rn.low=Vn+mr,Rn.high=Kn+fr+(Vn>>>0<mr>>>0?1:0),er=zn.low=er+Cr,zn.high=Gn+xr+(er>>>0<Cr>>>0?1:0),or=Un.low=or+hr,Un.high=Wn+br+(or>>>0<hr>>>0?1:0),ar=qn.low=ar+Er,qn.high=cr+gr+(ar>>>0<Er>>>0?1:0)},_doFinalize:function(){var w=this._data,J=w.words,Fn=this._nDataBytes*8,Bn=w.sigBytes*8;J[Bn>>>5]|=128<<24-Bn%32,J[(Bn+128>>>10<<5)+30]=Math.floor(Fn/4294967296),J[(Bn+128>>>10<<5)+31]=Fn,w.sigBytes=J.length*4,this._process();var j=this._hash.toX32();return j},clone:function(){var w=v.clone.call(this);return w._hash=this._hash.clone(),w},blockSize:1024/32});d.SHA512=v._createHelper(re),d.HmacSHA512=v._createHmacHelper(re)}(),f.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(f){return function(){var d=f,h=d.x64,v=h.Word,p=h.WordArray,m=d.algo,g=m.SHA512,y=m.SHA384=g.extend({_doReset:function(){this._hash=new p.init([new v.init(3418070365,3238371032),new v.init(1654270250,914150663),new v.init(2438529370,812702999),new v.init(355462360,4144912697),new v.init(1731405415,4290775857),new v.init(2394180231,1750603025),new v.init(3675008525,1694076839),new v.init(1203062813,3204075428)])},_doFinalize:function(){var b=g._doFinalize.call(this);return b.sigBytes-=16,b}});d.SHA384=g._createHelper(y),d.HmacSHA384=g._createHmacHelper(y)}(),f.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireX64Core())})(commonjsGlobal,function(f){return function(d){var h=f,v=h.lib,p=v.WordArray,m=v.Hasher,g=h.x64,y=g.Word,b=h.algo,gn=[],x=[],re=[];(function(){for(var Fn=1,Bn=0,j=0;j<24;j++){gn[Fn+5*Bn]=(j+1)*(j+2)/2%64;var vn=Bn%5,Pn=(2*Fn+3*Bn)%5;Fn=vn,Bn=Pn}for(var Fn=0;Fn<5;Fn++)for(var Bn=0;Bn<5;Bn++)x[Fn+5*Bn]=Bn+(2*Fn+3*Bn)%5*5;for(var Rn=1,zn=0;zn<24;zn++){for(var Un=0,qn=0,Qn=0;Qn<7;Qn++){if(Rn&1){var Jn=(1<<Qn)-1;Jn<32?qn^=1<<Jn:Un^=1<<Jn-32}Rn&128?Rn=Rn<<1^113:Rn<<=1}re[zn]=y.create(Un,qn)}})();var w=[];(function(){for(var Fn=0;Fn<25;Fn++)w[Fn]=y.create()})();var J=b.SHA3=m.extend({cfg:m.cfg.extend({outputLength:512}),_doReset:function(){for(var Fn=this._state=[],Bn=0;Bn<25;Bn++)Fn[Bn]=new y.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(Fn,Bn){for(var j=this._state,vn=this.blockSize/2,Pn=0;Pn<vn;Pn++){var Rn=Fn[Bn+2*Pn],zn=Fn[Bn+2*Pn+1];Rn=(Rn<<8|Rn>>>24)&16711935|(Rn<<24|Rn>>>8)&4278255360,zn=(zn<<8|zn>>>24)&16711935|(zn<<24|zn>>>8)&4278255360;var Un=j[Pn];Un.high^=zn,Un.low^=Rn}for(var qn=0;qn<24;qn++){for(var Qn=0;Qn<5;Qn++){for(var Jn=0,Zn=0,Xn=0;Xn<5;Xn++){var Un=j[Qn+5*Xn];Jn^=Un.high,Zn^=Un.low}var nr=w[Qn];nr.high=Jn,nr.low=Zn}for(var Qn=0;Qn<5;Qn++)for(var sr=w[(Qn+4)%5],ur=w[(Qn+1)%5],Hn=ur.high,Kn=ur.low,Jn=sr.high^(Hn<<1|Kn>>>31),Zn=sr.low^(Kn<<1|Hn>>>31),Xn=0;Xn<5;Xn++){var Un=j[Qn+5*Xn];Un.high^=Jn,Un.low^=Zn}for(var Vn=1;Vn<25;Vn++){var Jn,Zn,Un=j[Vn],Gn=Un.high,er=Un.low,Wn=gn[Vn];Wn<32?(Jn=Gn<<Wn|er>>>32-Wn,Zn=er<<Wn|Gn>>>32-Wn):(Jn=er<<Wn-32|Gn>>>64-Wn,Zn=Gn<<Wn-32|er>>>64-Wn);var or=w[x[Vn]];or.high=Jn,or.low=Zn}var cr=w[0],ar=j[0];cr.high=ar.high,cr.low=ar.low;for(var Qn=0;Qn<5;Qn++)for(var Xn=0;Xn<5;Xn++){var Vn=Qn+5*Xn,Un=j[Vn],tr=w[Vn],pr=w[(Qn+1)%5+5*Xn],Yn=w[(Qn+2)%5+5*Xn];Un.high=tr.high^~pr.high&Yn.high,Un.low=tr.low^~pr.low&Yn.low}var Un=j[0],ir=re[qn];Un.high^=ir.high,Un.low^=ir.low}},_doFinalize:function(){var Fn=this._data,Bn=Fn.words;this._nDataBytes*8;var j=Fn.sigBytes*8,vn=this.blockSize*32;Bn[j>>>5]|=1<<24-j%32,Bn[(d.ceil((j+1)/vn)*vn>>>5)-1]|=128,Fn.sigBytes=Bn.length*4,this._process();for(var Pn=this._state,Rn=this.cfg.outputLength/8,zn=Rn/8,Un=[],qn=0;qn<zn;qn++){var Qn=Pn[qn],Jn=Qn.high,Zn=Qn.low;Jn=(Jn<<8|Jn>>>24)&16711935|(Jn<<24|Jn>>>8)&4278255360,Zn=(Zn<<8|Zn>>>24)&16711935|(Zn<<24|Zn>>>8)&4278255360,Un.push(Zn),Un.push(Jn)}return new p.init(Un,Rn)},clone:function(){for(var Fn=m.clone.call(this),Bn=Fn._state=this._state.slice(0),j=0;j<25;j++)Bn[j]=Bn[j].clone();return Fn}});h.SHA3=m._createHelper(J),h.HmacSHA3=m._createHmacHelper(J)}(Math),f.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(c,u){(function(f,d){c.exports=d(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,d){try{return hex2b64(this.getKey().sign(u,f,d))}catch{return!1}},c.prototype.verify=function(u,f,d){try{return this.getKey().verify(u,b64tohex(f),d)}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 d="";switch(typeof c){case"string":d=CryptoJS.enc.Utf8.parse(c);break;case"object":d=CryptoJS.enc.Utf8.parse(JSON.stringify(c));break;default:d=CryptoJS.enc.Utf8.parse(c.toString())}return CryptoJS.AES.encrypt(d,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),d=CryptoJS.AES.decrypt(c,f,{iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding});return CryptoJS.enc.Utf8.stringify(d).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(d=>`^(.*?)${d}(/|$)`);for(const d of f)if(new RegExp(d).test(c))return!0;return!1}function EncryptConfigParam(c){const{paramType:u,data:f,params:d,method:h}=c;u==="form"?["get","delete"].includes(h)?c.params=getEncryptParam(d,"string"):c.data=getEncryptParam(f,"string"):["get","delete"].includes(h)?c.params=getEncryptParam(d,"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 h=rsaEncrypt(aesKey);return{c:aesEncrypt(f,aesKey),p:h}}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,d={};for(const v of u){const p=v[0],m=v[1];m instanceof Blob?f.append(p,m):d[p]=m}const h=getEncryptParam(d,"json");return typeof h=="object"&&(f.append("c",h.c),f.append("p",h.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 d=aesDecrypt(c.data.data.content,aesKey);c.data=JSON.parse(d)}}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,d;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)||((d=c==null?void 0:c.data)==null?void 0:d.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 d=parseFloat(f);return isNaN(d)?c:`${(d*100).toFixed(u)}%`},formatDecimals=(c,u=2)=>{const f=c+"",d=parseFloat(f);return isNaN(d)?c:d.toFixed(u)},formatCustom=(c,u)=>In(u,c),getFixedValueDatas=c=>{const{leftAxisList:u=[],rightAxisList:f=[],queryColumnList:d=[],indicators:h=[]}=c;return[...u,...f,...d,...h].filter(v=>(v==null?void 0:v.calcType)==="COMPONENT").map(v=>({keyName:v.builtInCalcWay,id:v.builtInValueSource}))},canRequestIndicator=(c,u)=>{let f=!0;const d=getFixedValueDatas(c);return d!=null&&d.length&&(f=d.map(h=>u[h.id]).every(h=>h)),f},getLegendFormat=(c,u)=>{var p;const f=c.match(/\{(.+?)\}/g),d=((p=c.split(`
|
|
101
101
|
`))==null?void 0:p.length)-1;let h="";if(d)for(let m=0;m<d;m++)h+=`
|
|
102
|
-
`;let v=c;if(f!=null&&f.length){for(const m of f){const g=hn(m,{textData:u},{useNewline:!1,useSpace:!1});g&&(v=v.replace(m,g))}return`${h}{text|${v}}`}else return c},setDefaultRangeVal=(c,u)=>{const{props:f,componentList:d,getGlobalModel:h}=c,{graphicConfig:v={},startValue:p,endValue:m}=f,g=getdefCompleteData({graphicConfig:v,startValue:p,endValue:m,componentList:d,getGlobalModel:h}),{dimensions:y,dataset:b}=u,{classificationList:gn=[]}=v,re=gn.find(w=>w.show).label||"";for(const w of g)!y.find(J=>+J==+w)&&!isNaN(+w)&&y.push(+w);y.sort((w,J)=>dayjs(w).isBefore(dayjs(J))?-1:1);for(const w of b){const{data:J}=w;if(J!=null&&J.length){const Fn=[];for(const Bn of g)if(!J.find(j=>+j[re]==+Bn)&&!isNaN(+Bn)){const j=lodashEs.cloneDeep(J[0]);for(const vn in j)vn===re?j[vn]=+Bn:j[vn]=0;Fn.push(j)}w.data.push(...Fn),w.data.sort((Bn,j)=>dayjs(Bn[re]).isBefore(dayjs(j[re]))?-1:1)}}};function getdefCompleteData(c){const{startValue:u,endValue:f,componentList:d,graphicConfig:h,getGlobalModel:v}=c,p=getVariableAndField(u),m=getVariableAndField(f),g=[];if(p&&m){const y=d.find(gn=>gn.keyName===p.keyName),b=d.find(gn=>gn.keyName===m.keyName);if(y&&b){const gn=v(y.id),x=v(b.id),{classificationList:re=[]}=h,w=re.find(J=>J.show);if(w){let J="YYYY-MM";switch(w.name){case"the_year":J="YYYY";break;case"the_month":J="MM";break;case"the_day":J="DD";break;case"the_date":J=(w==null?void 0:w.dateFormat)||J;break}const Fn=getFormatStep(J);if(J){const Bn=vue.unref(gn[p.field]),j=vue.unref(x[m.field]);let vn=dayjs(Bn);const Pn=dayjs(j);for(g.push(Pn.format(J));vn.isBefore(Pn);)g.push(vn.format(J)),vn=vn.add(1,Fn)}}}}return g}function getVariableAndField(c){let u=null;if(c){const f=c.match(/\{(.+?)\}/g);if(f!=null&&f.length){let d=f[0].slice(1,-1).trim();const h=d.match(/\[(.+?)\]/g);let v="";h!=null&&h.length&&(d=d.replace(h[0],""),v=h[0].slice(1,-1).trim()),u={keyName:d,field:v}}}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 gn;const{pageMode:f,targetTemplate:d,getRecordValueByKeyName:h,setTemplateData:v}=u,p=c.linkPage||"",m=usePageUrl(f,p),g=c.href;let y=g||m;y=hn(y);const b=c.target;if(b)if(b==="event")window.parent.postMessage({type:"openPage",url:g},"*");else{const x={pageId:p,componentId:d};if((gn=c.transParams)!=null&&gn.length){y.includes("?")?y+="&":y+="?";const re=[];for(const w of c.transParams){const J=h(String(w.fieldName));re.push(`${w.keyName}=${J}`),x[w.keyName]=J}y+=re.join("&")}b==="template"?(Object.prototype.hasOwnProperty.call(window,"oldPageId")||(window.oldPageId=""),window.oldPageId&&(window.controller.abort(),window.controller=new AbortController),window.oldPageId=p,v(x)):(b==="blank"&&(y+=`${y.includes("?")?"&":"?"}drillFlag=1`),window.open(y,"_"+b))}}function getPageUrlParams(c){var f,d;let u={};if(c){const h=(((f=window.config)==null?void 0:f.urlParams)||{})[c]||{};for(const v in h)v.includes("{")||(u[v]=h[v])}else u=((d=window.config)==null?void 0:d.requestParams)||{};return u}function getNewValueFromUrlParams(c,u,f){let d="";const{urlParams:h}=window.config;if(c&&h[c])for(const v in h[c]){const p=h[c][v];if(v===`{${u}[${f}]}`&&p){d=p;break}}return d}function getFormatWh(c,u){return typeof c=="number"?c:typeof c=="string"?parseFloat(c):c.suffix==="px"?+c.value:c.suffix==="%"?parseFloat(u)*(c.value/100):0}const hasChinese=c=>/[\u4e00-\u9fa5]/.test(c),dragModalAction=(c,u)=>{const f=document.querySelector(u);if(!f)return;f.style.cursor="move",f.style.userSelect="none";const d=f.parentElement,h=200,v=d.getBoundingClientRect(),{width:p,left:m,top:g}=v,y=window.innerWidth,b=window.innerHeight,gn=c.clientX,x=c.clientY,re=parseFloat(d.style.left)||0,w=parseFloat(d.style.top)||0,J=-(m+p-h-re),Fn=y-m+re-h,Bn=-(g-w),j=b-g+w-h,vn=Rn=>{Rn.preventDefault();const zn=Rn.clientX-gn,Un=Rn.clientY-x;let qn=re+zn,Qn=w+Un;qn=Math.max(J,Math.min(qn,Fn)),Qn=Math.max(Bn,Math.min(Qn,j)),d.style.left=`${qn}px`,d.style.top=`${Qn}px`},Pn=()=>{f.style.cursor="",f.style.userSelect="",document.removeEventListener("mousemove",vn),document.removeEventListener("mouseup",Pn)};document.addEventListener("mousemove",vn),document.addEventListener("mouseup",Pn)},getPageId=()=>{var u;let c=((u=window==null?void 0:window.config)==null?void 0:u.pageId)||"";if(!c){const{pathname:f}=window==null?void 0:window.location;if(f){const d=f.split("/");d!=null&&d.length&&(c=d[d.length-1])}}return c},useRequestData=(c,u,f=()=>{})=>{var sr;const{requestUrl:d,requestMethod:h,requestHeaders:v,requestParams:p,requestInterval:m,isOpenRequestTimer:g,openCustomRequestData:y,projectRequestUrl:b="",getModel:gn,requestParamsMode:x,customRequestParams:re,dataSetParam:w,requestType:J,dataType:Fn,dataSetchecked:Bn}=c,{pageMode:j}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:vn}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:Pn,touchEventId:Rn}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:zn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ur=>{}})||{},{loadedData:Un}=vue.inject(LOADED_DATA,{loadedData:{}})||{},qn=vue.inject(COMMON_OPERATE,{operateAction:(ur,Hn)=>{}}),Qn=gn||zn;let Jn=hn(d),Zn=vue.unref(Pn)||b||"";(Fn==="request"&&Bn||J===1)&&(Zn="",Jn=((sr=window.config)==null?void 0:sr.dataSetUrl)||"/api/datav/dataset/data2");const Xn=async(ur={})=>{var ar;if(Fn!=="request"&&nr){clearInterval(nr);return}if(!Jn||!h||!v)return;let Hn={};for(const tr of p){const{key:pr,value:Yn}=tr;if((Yn==null?void 0:Yn.id)==="PARENT"&&(Yn!=null&&Yn.prop)){const lr=(((ar=window.config)==null?void 0:ar.record)||{})[Yn.prop];if(lr){const vr=lr[Yn.propKey||"value"];vr&&(["date","range"].some(yr=>yn(lr==null?void 0:lr.type,yr))?Hn[pr]=vue.unref(vr).format(lr.format||"YYYY-MM-DD"):Hn[pr]=vue.unref(vr))}continue}if(typeof Yn=="object"&&Yn!=null&&Yn.id){let ir={};const{id:lr,prop:vr,propKey:dr,operate:yr}=Yn;let fr=!1;try{JSON.parse(lr),fr=!0}catch{fr=!1}if(lr==="THIS"?ir=Qn(vue.unref(Rn))||{}:ir=Qn(lr)||{},(ir==null?void 0:ir.type)==="ecanSelect"&&vue.unref(Un)&&!vue.unref(Un)[lr]&&(ir==null?void 0:ir.dataType)!=="static")return;const mr=vue.unref(ir[vr]);let xr=null;if(["date","range"].some(br=>yn(ir==null?void 0:ir.type,br))){const{value:br,type:hr,mode:gr}=yr||{};if(br&&hr&&gr)switch(hr){case"add":xr=vue.unref(mr).add(br,gr);break;case"minus":xr=vue.unref(mr).subtract(br,gr);break}xr==null&&(xr=vue.unref(mr)),xr=xr&&(xr==null?void 0:xr.format((dr==null?void 0:dr.trim())||ir.format))||""}else if(Object.prototype.toString.call(mr)==="[object Object]")dr?xr=mr[dr]:xr=vr?mr[vr]:mr;else if(yn(ir==null?void 0:ir.type,"select")&&vue.unref(mr)&&vr&&Array.isArray(vue.unref(mr)))xr=vue.unref(mr).map(br=>Object.prototype.hasOwnProperty.call(br,vr)?br[vr]:br);else if(fr){const br=JSON.parse(lr);console.log(br,"urlvalue"),xr=br.value}else xr=mr;Hn[pr]=xr}else typeof Yn=="object"&&!Yn.id&&J===1?(console.log(Yn.propKey,"value.propKey"),Hn[pr]=Yn.propKey):typeof Yn=="string"&&(Hn[pr]=hn(Yn))}if(J===1){console.log(Hn,"_params");const tr=Object.entries(Hn);let pr=w;if(!w.param&&Array.isArray(w)){const Yn={};for(const ir of w)Yn[ir.key]=ir.value;pr=Yn}pr.param=pr.param.map((Yn,ir)=>({...Yn,paramKey:tr[ir][0],defaultValue:tr[ir][1]||""})),Hn=pr}if(x==="2"&&re!=="{}"){const tr=JSON.parse(re);Kn(tr),tr&&(Hn=tr)}function Kn(tr){const pr={...Hn,...getPageUrlParams(vn)};if(Array.isArray(tr))tr.forEach((Yn,ir)=>{if(typeof Yn=="string"){const lr=Yn.match(/\${(.+?)\}/g);if(lr!=null&&lr.length){const vr=lr[0].slice(2,-1);vr&&pr[vr]?tr[ir]=pr[vr]:tr[ir]=""}}else Kn(Yn)});else if(Object.prototype.toString.call(tr)==="[object Object]")for(const Yn in tr)if(typeof tr[Yn]=="string"){const ir=tr[Yn].match(/\${(.+?)\}/g);if(ir!=null&&ir.length){const lr=ir[0].slice(2,-1);lr&&pr[lr]?tr[Yn]=pr[lr]:tr[Yn]=""}}else Kn(tr[Yn])}const Vn=getPageUrlParams(vn);for(const tr in Vn)Vn[tr]&&(Vn[tr]=decodeURIComponent(Vn[tr]));Hn={...Vn,...ur,...Hn};let Gn="";const er=Object.keys(Hn),Wn=er.length-1,or=er.length;er.forEach((tr,pr)=>{let Yn=Hn[tr];Object.prototype.toString.call(Yn)==="[object Object]"&&(Yn=JSON.stringify(Yn)),pr===0?or!==1?Gn+=`?${tr}=${Yn}&`:Gn+=`?${tr}=${Yn}`:pr===Wn?Gn+=`${tr}=${Yn}`:Gn+=`${tr}=${Yn}&`}),Jn.includes("?")&&(Gn=Gn.replace("?","&"));function cr(tr){var pr;if(J===1)return{Authentication:(pr=window==null?void 0:window.config)==null?void 0:pr.indicatorToken};if(typeof tr=="string"){const Yn=JSON.parse(tr),ir=getPageUrlParams(vn);if(Object.prototype.toString.call(Yn)==="[object Object]"){for(const lr in Yn)if(typeof Yn[lr]=="string"){const vr=Yn[lr].match(/\${(.+?)\}/g);if(vr!=null&&vr.length){const dr=vr[0].slice(2,-1);dr&&ir[dr]?Yn[lr]=ir[dr]:Yn[lr]=""}}}return Yn}else return tr}try{const tr=["get","head"].includes(h),pr={};let Yn=tr?Jn+Gn:Jn;Hn.dataSqlId&&!Yn.includes("dataSqlId")&&(Yn+=`${Yn.includes("?")?"&":"?"}dataSqlId=${Hn.dataSqlId}`),Object.prototype.hasOwnProperty.call(Hn,"signal")?pr.signal=Hn.signal:window.controller&&(pr.signal=window.controller.signal);const ir=await request({baseURL:Zn,url:Yn,method:h,headers:v?cr(v):{},data:tr?{}:Hn,...pr});return f(ir),qn.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(ir==null?void 0:ir.data)||{}}),ir}catch(tr){console.error(tr)}},nr=vue.unref(j)!=="design"&&g&&(y||y===void 0)&&setInterval(Xn,m*1e3);return vue.onUnmounted(()=>{clearInterval(nr)}),Xn},useImagePath=(c,u=!1)=>{var d;if(!c)return c;let f="";return c!=null&&c.includes("://")?f=c:f=((d=window==null?void 0:window.config)==null?void 0:d.uploadPath)+c,u&&(f=`url(${f})`),f},usePageUrl=(c,u)=>{const f=`${BASE_URL}/preview?pageId=${u}`,d=`${BASE_URL}/${u}`;return c==="preview"?f:d},useIndicatorData=(c={},u=()=>{})=>{var b;const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:d}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:h}=vue.inject(LOADED_DATA,{setLoadedData:(gn,x)=>{}}),{getAllGlobalModel:v}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),{pageId:p}=vue.inject("templateOperate",{pageId:""})||{},m=vue.inject(COMMON_OPERATE,{operateAction:(gn,x)=>{}});c.dataType==="indicator"&&d();const g=async(gn={})=>{var vn,Pn,Rn,zn,Un;const x=v();h(c.id,!1);const re=Dn({...c,globalModel:x},gn),{url:w,...J}=re||{},{pathname:Fn,search:Bn}=window==null?void 0:window.location;let j=p||((vn=window==null?void 0:window.config)==null?void 0:vn.pageId);if(!j&&Fn){const qn=Fn.split("/");qn!=null&&qn.length&&(j=qn[qn.length-1])}if(w&&J){let qn,Qn;if(c.type==="ecanIndexPanel"&&(qn=c.theFlag),["/diagram/formData","/diagram"].includes(w)){Qn={};const Zn=Bn.slice(1,Bn.length).split("&");for(const Xn of Zn)if(Xn){const nr=Xn.split("=");if(nr[0])if(nr[0]==="userInfo")try{Qn.token=(Rn=(Pn=JSON.parse(decodeURIComponent(nr[1])))==null?void 0:Pn.baseInfo)==null?void 0:Rn.hrpToken}catch(sr){console.log(sr)}else Qn[nr[0]]=nr[1]}}try{const Jn=await request({url:`${INDICATOR_URL}${w}`,method:"post",headers:{Authentication:(zn=window==null?void 0:window.config)==null?void 0:zn.indicatorToken,operateContext:CONTEXT},data:{...J,pageId:j,theFlag:qn,extParam:Qn},signal:((Un=window.controller)==null?void 0:Un.signal)||""});return gn!=null&&gn.isTimer&&u(Jn),m.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(Jn==null?void 0:Jn.data)||{}}),Jn}catch(Jn){console.error(Jn)}}},y=vue.unref(f)!=="design"&&((b=c==null?void 0:c.graphicConfig)==null?void 0:b.pageMode)!=="design"&&c.isOpenRequestTimer&&c.requestInterval&&setInterval(()=>{g({isTimer:!0})},c.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(y)}),g},useHrefParamsToGlobalVariables=()=>{const u=window.location.search.slice(1).split("&"),f=u.length,d={};for(let h=0;h<f;h++){const v=u[h];if(v==null||v==="")continue;const p=v.split("=");if(Array.isArray(p)){const m=p[0];m.includes("{")||(d[m]=p[1])}}window.config.requestParams={...window.config.requestParams,...d},window.config={...window.config,...d}},_sfc_main$B=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"container"},portId:{type:String,default:"norPageConfig"}},setup(c){const{width:u,height:f,isCompatible:d}=vue.inject(GLOBAL_CONFIG,{width:null,height:null,isCompatible:null}),h=vue.inject("setPageHeight",Rn=>{}),v=vue.inject("isMobile",!1),p=vue.computed(()=>{const Rn={};return(!d.value||!v)&&(Rn.width=u.value,Rn.height=f.value),{...Rn,backgroundColor:c.pageId?"transparent":c.backgroundColor,backgroundImage:useImagePath(c.backgroundImage,!0),backgroundSize:c.backgroundSize}}),m=vue.ref(0),g=vue.ref(0),y=vue.ref(0),b=vue.ref(0),gn=vue.ref(!1),x=vue.ref();let re;const w=()=>new Promise(Rn=>{vue.nextTick(()=>{u.value&&f.value?(m.value=parseFloat(u.value),g.value=parseFloat(f.value)):(m.value=x.value.clientWidth,g.value=x.value.clientHeight),(!y.value||!b.value)&&(y.value=window.screen.width,b.value=window.screen.height),Rn()})}),J=()=>{m.value&&g.value?(x.value.style.width=`${m.value}px`,x.value.style.height=`${g.value}px`):(x.value.style.width=`${y.value}px`,x.value.style.height=`${b.value}px`)};vue.watch([u,f],async()=>{c.pageId||(await w(),J(),Bn(),window.addEventListener("resize",j),vn()),gn.value=!0},{immediate:!0});const Fn=vue.ref({});vue.provide("scaleValue",Fn);const Bn=()=>{if(d.value&&v){x.value.style.width="100%",x.value.style.height="auto",h("auto");return}const Rn=document.body.clientWidth,zn=document.body.clientHeight,Un=m.value||y.value,qn=g.value||b.value,Qn=Rn/Un;let Jn=zn/qn;(m.value!==1920||g.value!==1080)&&(Jn=g.value/m.value*Rn/qn),Fn.value={widthScale:Qn,heightScale:Jn},x.value&&(x.value.style.transform=`scale(${Qn}, ${Jn})`),h(Fn.value)},j=lodashEs.debounce(async()=>{await w(),Bn()},100),vn=()=>{const Rn=window.MutationObserver;re=new Rn(j),re.observe(x.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},Pn=()=>{re&&(re.disconnect(),re.takeRecords(),re=null)};return vue.onMounted(()=>{gn.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",j),Pn()}),{style:p,container:x,ready:gn}}}),PageConfig_vue_vue_type_style_index_0_scoped_44a453d9_lang="",_hoisted_1$p=["id"],_hoisted_2$c=["id"];function _sfc_render$G(c,u,f,d,h,v){return vue.openBlock(),vue.createElementBlock("div",{class:"page-config-container",id:c.customId,ref:"container"},[c.ready||c.pageId?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"page-config",id:c.portId,style:vue.normalizeStyle(c.style)},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_2$c)):vue.createCommentVNode("",!0)],8,_hoisted_1$p)}const PageConfig=_export_sfc$1(_sfc_main$B,[["render",_sfc_render$G],["__scopeId","data-v-44a453d9"]]),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:[],isCompatible:!0,variableList:[],drillingMode:"pivotTable",pivotTableFontSize:"16px"},providerConfigComponentProps=transformToComponentProps(providerConfig),_sfc_main$A=vue.defineComponent({name:"IndicatorDetailModal",components:{BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,ZoomInOutlined:ZoomInOutlined$1,ZoomOutOutlined:ZoomOutOutlined$1,RedoOutlined:RedoOutlined$1},props:{theme:{type:String,default:"light"}},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref([]),h=vue.ref(!1),v=vue.ref(),p=vue.ref(!1),m=vue.ref(1),g=vue.inject("isMobile",!1),y=vue.computed(()=>c.theme),b=vue.computed(()=>m.value!==1?{transform:`scale(${m.value})`,transformOrigin:"left top"}:{}),gn=async({data:zn,indicatorUrl:Un,indicatorToken:qn,context:Qn,pageId:Jn})=>{var sr,ur;h.value=!0,f.value=!0;let Zn=[];const{graphicConfig:Xn,theFlag:nr}=vue.unref(zn)||{};if(Xn){const{leftAxisList:Hn=[],rightAxisList:Kn=[],indicators:Vn=[]}=Xn,Gn=Hn.concat(Kn).concat(Vn);Gn!=null&&Gn.length&&(Zn=Gn.map(er=>({calcType:er.calcType||"COLUMN",columnName:er.name,hrpIndexCode:er.indexCode,hrpIndexCodeNum:er.indexCodeNum,label:er.label,show:er.show,formula:er.formula})))}if(Zn!=null&&Zn.length)try{const Hn=await request({url:`${vue.unref(Un)}/diagram/obtainIndicatorInfo`,method:"post",headers:{Authentication:qn,operateContext:Qn},data:{source:"INDICATOR_LIB",pageId:Jn,indicatorList:Zn,theFlag:nr}}),Kn=((sr=Hn==null?void 0:Hn.data)==null?void 0:sr.data)||[];(ur=Kn[0])!=null&&ur.remark?(v.value=Kn[0].remark,d.value=[]):(v.value=null,d.value=Kn)}catch{}finally{h.value=!1}vue.nextTick(()=>{w(!0),J(!0)})},x=()=>document.querySelector("#ProviderConfig > #container")||document.body,re=vue.computed(()=>{let zn="detail-modal";return(p.value||vue.unref(g))&&(zn+=" full",vue.unref(g)&&(zn+=" mobile")),vue.unref(y)==="darkBlue"&&(zn+=" darkBlue"),zn}),w=zn=>{const Un=document.querySelector(".detail-modal .ant-modal-header");Un&&(zn?Un.addEventListener("dblclick",Bn):Un.removeEventListener("dblclick",Bn))},J=zn=>{const Un=document.querySelector(".detail-modal .ant-modal-header");if(Un)if(zn)Un.addEventListener("mousedown",Fn);else{const qn=Un.parentElement;qn&&(qn.style.left="",qn.style.top=""),Un.removeEventListener("mousedown",Fn)}};function Fn(zn){dragModalAction(zn,".detail-modal .ant-modal-header")}const Bn=()=>{p.value=!p.value,vue.nextTick(()=>{p.value?J(!1):J(!0)})},j=()=>{vue.unref(g)||(p.value=!1),w(!1),J(!1)},vn=()=>{m.value+=.5},Pn=()=>{vue.unref(m)>1&&(m.value-=.5)},Rn=()=>{m.value=1};return vue.watch(m,zn=>{localStorage.setItem("indDetailZoom",String(zn))}),vue.watch(f,zn=>{zn?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"}),vue.onMounted(()=>{var Un,qn;const zn=localStorage.getItem("indDetailZoom");if(zn&&(m.value=+zn),vue.unref(g)){const Qn=document.querySelector("#ProviderConfig > #container");p.value=!0,(Un=Qn==null?void 0:Qn.style)==null||Un.setProperty("--window-screen-width",document.body.clientWidth+"px"),(qn=Qn==null?void 0:Qn.style)==null||qn.setProperty("--window-screen-height",document.body.clientHeight+"px")}}),u({showModal:gn}),{visible:f,dataList:d,isLoading:h,hasOwn:mn,remarkData:v,wrapClassName:re,isIndFullScreen:p,infoStyle:b,indDetailZoom:m,isMobile:g,getContainer:x,toggleFullScreen:Bn,onDetailCancel:j,handleZoomIn:vn,handleZoomOut:Pn,handleResetZoom:Rn}}}),IndicatorDetailModal_vue_vue_type_style_index_0_scoped_321c1810_lang="",IndicatorDetailModal_vue_vue_type_style_index_1_lang="",_withScopeId$7=c=>(vue.pushScopeId("data-v-321c1810"),c=c(),vue.popScopeId(),c),_hoisted_1$o=_withScopeId$7(()=>vue.createElementVNode("div",{class:"modal-title"},"指标详情",-1)),_hoisted_2$b={class:"zoom-btn"},_hoisted_3$6={key:0,class:"spin-container"},_hoisted_4$5=["innerHTML"],_hoisted_5$4={class:"index-name"},_hoisted_6$4={key:0,class:"card-row"},_hoisted_7$4=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"计量单位:",-1)),_hoisted_8$4={class:"content"},_hoisted_9$3={key:1,class:"card-row"},_hoisted_10$3=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"指标定义:",-1)),_hoisted_11$3={class:"content"},_hoisted_12$3={key:2,class:"card-row"},_hoisted_13$3=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"计算方法:",-1)),_hoisted_14$3={class:"content"},_hoisted_15$2={key:3,class:"card-row"},_hoisted_16$1=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"指标说明:",-1)),_hoisted_17$1={class:"content"};function _sfc_render$F(c,u,f,d,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("redo-outlined"),g=vue.resolveComponent("zoom-out-outlined"),y=vue.resolveComponent("zoom-in-outlined"),b=vue.resolveComponent("switcher-outlined"),gn=vue.resolveComponent("border-outlined"),x=vue.resolveComponent("a-spin"),re=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(re,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=w=>c.visible=w),width:"55%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:c.isIndFullScreen?"":"70vh",height:c.isIndFullScreen?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":c.wrapClassName,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[_hoisted_1$o]),closeIcon:vue.withCtx(()=>[vue.createVNode(p,{class:vue.normalizeClass(["close-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$b,[c.indDetailZoom>1?(vue.openBlock(),vue.createBlock(m,{key:0,class:"modal-icon",title:"还原",onClick:c.handleResetZoom},null,8,["onClick"])):vue.createCommentVNode("",!0),c.indDetailZoom>1?(vue.openBlock(),vue.createBlock(g,{key:1,class:"modal-icon",title:"缩小内容",onClick:c.handleZoomOut},null,8,["onClick"])):vue.createCommentVNode("",!0),vue.createVNode(y,{class:"modal-icon",title:"放大内容",onClick:vue.withModifiers(c.handleZoomIn,["stop","prevent"])},null,8,["onClick"]),!c.isMobile&&c.isIndFullScreen?(vue.openBlock(),vue.createBlock(b,{key:2,class:vue.normalizeClass(["modal-icon",c.theme]),title:"取消全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"])):c.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(gn,{key:3,class:vue.normalizeClass(["modal-icon",c.theme]),title:"全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"]))]),c.isLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$6,[vue.createVNode(x,{size:"large"})])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"info-container",style:vue.normalizeStyle(c.infoStyle)},[c.remarkData?(vue.openBlock(),vue.createElementBlock("div",{key:0,innerHTML:c.remarkData},null,8,_hoisted_4$5)):c.dataList.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:1},vue.renderList(c.dataList,(w,J)=>(vue.openBlock(),vue.createElementBlock("div",{class:"detail-wrap",key:J},[vue.createElementVNode("div",_hoisted_5$4,vue.toDisplayString(w.indexName||"--"),1),c.hasOwn(w,"theUnit")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$4,[_hoisted_7$4,vue.createElementVNode("div",_hoisted_8$4,vue.toDisplayString(w.theUnit||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(w,"meaning")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$3,[_hoisted_10$3,vue.createElementVNode("div",_hoisted_11$3,vue.toDisplayString(w.meaning||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(w,"theFormula")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12$3,[_hoisted_13$3,vue.createElementVNode("div",_hoisted_14$3,vue.toDisplayString(w.theFormula||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(w,"theExplain")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$2,[_hoisted_16$1,vue.createElementVNode("div",_hoisted_17$1,vue.toDisplayString(w.theExplain||"--"),1)])):vue.createCommentVNode("",!0)]))),128)):vue.createCommentVNode("",!0)],4))]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name","onCancel"])}const IndicatorDetailModal=_export_sfc$1(_sfc_main$A,[["render",_sfc_render$F],["__scopeId","data-v-321c1810"]]),lineProps={...props$1,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",defaultRangeValue:!1,startValue:"",endValue:"",isForbidClick:!1},lineComponentProps=transformToComponentProps(lineProps),lineEvents=["click","refreshData","resetRecord"],useDownloadFile=async c=>{var g;const u=await request.post(c,{},{responseType:"blob"}),{data:f,headers:d}=u,h=d["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),v=new Blob([f]),p=document.createElement("a"),m=window.URL.createObjectURL(v);p.href=m,p.download=decodeURI(h),p.style.display="none",document.body.appendChild(p),p.click(),(g=p.parentNode)==null||g.removeChild(p),window.URL.revokeObjectURL(m)},modalProps={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default",closeBtnColor:"#333",isShowCloseBtn:!0,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)",allComponentList:[],requestList:[],parentIframeId:"",banScale:!1},modalComponentProps=transformToComponentProps(modalProps),modalEvents=["showModal","hideModal"],containerType=["ecanBorder","ecanTabs","ecanCirculate"];function handleScrollCombinations(c){const{containerMap:u={},sourceList:f=[],pageConfig:d={}}=c,h=lodashEs.cloneDeep(c.componentList),v=h.filter(p=>p.type==="ecanTabs"&&p.isAutoScroll);if(v!=null&&v.length)for(const p of v){const m=u[p.id],g=[];if((!mn(p,"componentList")||!(p!=null&&p.componentList))&&(p.componentList=[]),m){let y=0;for(const b in m){const gn=m[b],x=[];if(gn!=null&&gn.length)for(const re of gn){let w=h.find(J=>J.id===re);w||(w=f.find(J=>J.id===re)),w&&(x.push(w),containerType.includes(w.type)&&x.push(...getComponentByContainer(w.id,u,f)))}for(const re of x)mn(re,"scale")?parseFloat(b)>0&&(re.left=parseFloat(re.left)+y+"px"):(re.left=parseFloat(re.sourceLeft||re.left)-parseFloat(p.sourceLeft||p.left)+y+"px",re.top=parseFloat(re.sourceTop||re.top)-parseFloat(p.sourceTop||p.top)+"px"),g.includes(re.id)||g.push(re.id);p.componentList.push(...x),y=getMaxLeftInComponents(x,d)}}for(const y of g){const b=h.findIndex(gn=>gn.id===y);b!==-1&&h.splice(b,1)}}return h}function compatibleMobileList(c){var m,g;const u=document.body.clientWidth,{combinationMap:f={},sourceList:d=[],pageConfig:h={}}=c,v=c.containerMap,p=lodashEs.cloneDeep([...c.componentList,...getTabsSomeComponentList(v,d)]);if(handleContainerMap(v,p),(m=Object.keys(v))!=null&&m.length||(g=Object.keys(f))!=null&&g.length){for(const w in v){const J=p.find(Fn=>Fn.id===w);if(J){if(J!=null&&J.isFlowGrid){J.sourceLeft=J.left,J.sourceTop=J.top;continue}mn(J,"parentId")||(J.parentId="",J.sourceLeft=J.left,J.sourceTop=J.top);for(const Fn in v[w])if(v[w][Fn])for(const Bn of v[w][Fn]){const j=p.find(vn=>vn.id===Bn);if(j&&(j.parentId=w,j.sourceLeft=j.left,j.sourceTop=j.top,j.left=parseFloat(j.left)-parseFloat(J.sourceLeft||J.left)+"px",j.top=parseFloat(j.top)-parseFloat(J.sourceTop||J.top)+"px",j.type==="ecanIndexPanel")){const{componentIds:vn}=j;for(const Pn of vn){const Rn=p.find(zn=>zn.id===Pn);Rn&&(Rn.left=parseFloat(Rn.left)-parseFloat(j.sourceLeft)+"px",Rn.top=parseFloat(Rn.top)-parseFloat(j.sourceTop)+"px")}}}}}const y=Array.from(new Set(p.filter(w=>(!mn(w,"parentId")||w.parentId==="")&&w.combinationId).map(w=>w.combinationId))),b=getCombinationList(y,{...c,componentList:p,pageConfig:h});b!=null&&b.length&&p.unshift(...b);const gn=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap","ecanTable"],x=p.filter(w=>gn.includes(w.type)&&!mn(w,"parentId")),re=[];for(const w of x)if(w){const J=w.id+"_vir";if(re.push({id:J,keyName:w.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:u,height:getFormatWh(w.height,h==null?void 0:h.height),left:w.left,top:w.top,sourceLeft:w.left,sourceTop:w.top}),w.parentId=J,w.sourceLeft=w.left,w.sourceTop=w.top,w.left=10,w.top=0,w.width=u-20+"px",w.type==="ecanTable"){const{columns:Fn=[]}=w;w.scrollX="max-content";for(const Bn of Fn)Bn.width.includes("%")&&(Bn.width=parseFloat(Bn.width)/100*u+"px")}}re!=null&&re.length&&p.unshift(...re);for(const w of p){if(w.parentId===""&&containerType.includes(w.type))w.sourceWidth=getFormatWh(w.width,h==null?void 0:h.width),w.height=(u/(w.sourceWidth/getFormatWh(w.height,h==null?void 0:h.height))).toFixed(2)+"px",w.width="100%",w.position="relative",w.top="auto",w.left="auto";else{const J=p.find(Fn=>Fn.id===w.parentId);if((J==null?void 0:J.parentId)===""){const Fn=J.sourceWidth||getFormatWh(J.width,h==null?void 0:h.width),Bn=u/Fn;w.scale=Bn,w.top=parseFloat(w.top)*Bn-getFormatWh(w.height,h==null?void 0:h.height)*(1-Bn)/2+"px",w.left=parseFloat(w.left)*Bn-getFormatWh(w.width,h==null?void 0:h.width)*(1-Bn)/2+"px"}}w.type==="ecanModal"&&(w.parentId="",w.fullModal=!0)}return sortList(p)}return p}function handleContainerMap(c,u){const f=lodashEs.cloneDeep(c),d=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(d!=null&&d.length)for(const h of d){const v=f[h.id];for(const p in v)for(const m of v[p]){const g=u.find(y=>y.id===m);if(g&&containerType.includes(g.type)){const y=getComponentByContainer(g.id,f,u);for(const b of y)c[h.id][p].push(b.id),containerType.includes(b.type)&&delete c[b.id];delete c[g.id]}}}}function getTabsSomeComponentList(c,u){const f=[],d=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(d!=null&&d.length)for(const h of d){const v=c[h.id];for(const p in v)if(parseFloat(p)>0)for(const m of v[p]){const g=u.find(y=>y.id===m);g&&(f.push(g),containerType.includes(g.type)&&f.push(...getComponentByContainer(g.id,c,u)))}}return f}function getComponentByContainer(c,u,f){const d=[],h=u[c];for(const v in h)for(const p of h[v]){const m=f.find(g=>g.id===p);m&&(d.push(m),containerType.includes(m.type)&&d.push(...getComponentByContainer(m.id,u,f)))}return d}function getCombinationList(c,u,f){const{combinationMap:d={},componentList:h=[],pageConfig:v={}}=u,p=[];for(const m of c){const g=d[m];if(g!=null&&g.length){const y=h.filter(b=>g.includes(b.id));if(y!=null&&y.length){const b=getCombinateRect(y,v);if(b){p.push({...b,id:m,keyName:m,parentId:f||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:b.left,sourceTop:b.top});for(const gn of y)gn&&(gn.parentId=m,gn.sourceLeft=gn.left,gn.sourceTop=gn.top,gn.left=parseFloat(gn.left)-parseFloat(b.left)+"px",gn.top=parseFloat(gn.top)-parseFloat(b.top)+"px")}}}}return p}function sortList(c){const f=c.filter(d=>d.parentId===""||(d==null?void 0:d.isFlowGrid));if(f!=null&&f.length){const d=lodashEs.cloneDeep(f).map(h=>({...h,sourceTop:parseFloat(h.sourceTop),sourceLeft:parseFloat(h.sourceLeft)}));for(let h=0;h<d.length-1;h++)for(let v=0;v<d.length-h-1;v++){let p=!1;if((d[v].sourceTop-d[v+1].sourceTop>40||Math.abs(d[v+1].sourceTop-d[v].sourceTop)<=40&&d[v].sourceLeft>d[v+1].sourceLeft)&&(p=!0),p){const m=d[v];d[v]=d[v+1],d[v+1]=m}}for(const h of d){const v=c.findIndex(p=>p.id===h.id);v!==-1&&c.splice(v,1)}return[...d,...c]}return c}function getCombinateRect(c,u){const f=c.sort((p,m)=>parseFloat(p.top)-parseFloat(m.top))[0],d=c.sort((p,m)=>parseFloat(p.left)-parseFloat(m.left))[0],h=c.map(p=>({...p,computedTop:parseFloat(p.top)+getFormatWh(p.height,u==null?void 0:u.height)})).sort((p,m)=>m.computedTop-p.computedTop)[0],v=c.map(p=>({...p,computedLeft:parseFloat(p.left)+getFormatWh(p.width,u==null?void 0:u.width)})).sort((p,m)=>m.computedLeft-p.computedLeft)[0];return f&&d&&h&&v?{left:d.left,top:f.top,width:v.computedLeft-parseFloat(d.left)+"px",height:h.computedTop-parseFloat(f.top)+"px"}:null}function getMaxLeftInComponents(c,u){const f=c.map(d=>parseFloat(d.left)+getFormatWh(d.width,u==null?void 0:u.width)).sort((d,h)=>h-d)[0];return f||0}function moveToComponentList(c,u,f){const d=c[f],h=[];if(d)for(const v in d){const p=d[v];for(const m of p){const g=u.find(y=>y.id===m);g&&(h.push(g),containerType.includes(g.type)&&h.push(...getComponentByContainer(g.id,c,u)))}}return h}const _sfc_main$z=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(c,{emit:u}){u("ready",c.component.id)}});function _sfc_render$E(c,u,f,d,h,v){return c.component.parentId?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#container_"+c.component.parentId},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.mergeProps({style:{scale:c.component.scale}},c.component),null,16,["style"]))],8,["to"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.normalizeProps(vue.mergeProps({key:1},c.component)),null,16))}const Render=_export_sfc$1(_sfc_main$z,[["render",_sfc_render$E]]),EcanRender=withInstall$1(Render),_sfc_main$y=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(c,{emit:u}){const f=vue.ref([]),d=vue.inject("isMobile",!1),{width:h,height:v}=vue.inject(GLOBAL_CONFIG,{width:null,height:null}),p=vue.computed(()=>c.fullModal),m=vue.inject("getContainerMap",()=>{}),g=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:y,interactiveData:b,setRequestData:gn}=vue.inject(GLOBAL_MODEL,{setRequestData:(Cr,br)=>{},clearInteractiveData:()=>{},interactiveData:null}),x=()=>document.getElementById("ProviderConfig")||document.body,re=vue.computed(()=>{const Cr=c.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[Cr]}}),w=c.fullModal?"1920px":c.width,J=c.fullModal?"1080px":c.height,Fn=c.originalWidth,Bn=c.originalHeight,j=vue.ref("80%"),vn=vue.ref(0),Pn=vue.ref(),Rn=vue.ref(0),zn=vue.ref({}),Un=usePickComponentStyle(c),qn=vue.ref({}),Qn=vue.ref(!1),Jn=vue.ref();let Zn;const Xn=()=>{Pn.value=parseFloat(w)/parseFloat(Fn);const Cr=parseFloat(J)/parseFloat(Bn),br=document.body.offsetWidth,hr=document.body.offsetHeight;if(vn.value=br*vue.unref(Pn),Rn.value=hr*Cr,j.value=`${vue.unref(Pn)*100}%`,zn.value={width:`${vue.unref(vn)}px`,height:`${vue.unref(Rn)}px`,border:`${c.borderWidth} solid ${c.borderColor}`,borderRadius:c.borderRadius+"px",boxShadow:c.boxShadow},qn.value={...vue.unref(Un),backgroundImage:useImagePath(c.backgroundImage,!0)},d)qn.value={...qn.value,width:"100%",height:"100%"};else{const gr={...qn.value,width:w,height:J};c.banScale&&vue.unref(p)?(gr.width="100%",gr.height="100%"):gr.transform=`scale(${vue.unref(vn)/parseFloat(w)},${vue.unref(Rn)/parseFloat(J)})`,qn.value=gr}},nr=lodashEs.debounce(()=>{Xn()},100),sr=()=>{const Cr=window.MutationObserver;Zn=new Cr(nr),Zn.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},ur=()=>{Zn&&(Zn.disconnect(),Zn.takeRecords(),Zn=null)},Hn=vue.ref(!1),{touchRequest:Kn}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),Vn=vue.ref(""),Gn=()=>{var hr;const{title:Cr}=c,br=(hr=vue.unref(b))==null?void 0:hr.RECORD;return br?hn(Cr,{textData:br},{useNewline:!1,useSpace:!1}):Cr},er=useEmitEvent(c),Wn=Cr=>{const{changeIframeStyle:br}=window.parent;br&&typeof br=="function"&&br({iframeId:c.parentIframeId||"",action:Cr})},or=()=>{vue.unref(p)&&Wn("open"),d&&(document.documentElement.style.overflow="hidden"),Vn.value=Gn(),Hn.value=!0},cr=er("hideModal",()=>{vue.unref(p)&&Wn("close"),u("close"),d&&(document.documentElement.style.overflow="hidden auto",f.value=[]),Hn.value=!1}),ar=()=>{cr()},tr=()=>{cr(),y()},{setModalModel:pr,pushUseModalIds:Yn,popUseModalIds:ir}=vue.inject(MODAL_MODEL,{pushUseModalIds:Cr=>{},popUseModalIds:()=>{},setModalModel:(Cr,br)=>{}}),lr=vue.computed(()=>{let Cr=c.componentList;const br=lodashEs.cloneDeep(c.componentList),hr=m(),gr=g(),Er={containerMap:hr,combinationMap:gr};d&&(Cr=compatibleMobileList({...Er,componentList:br,sourceList:c.allComponentList,pageConfig:{width:vue.unref(h),height:vue.unref(v)}})),Cr=handleScrollCombinations({...Er,componentList:Cr,sourceList:c.allComponentList,pageConfig:{width:vue.unref(h),height:vue.unref(v)}});const wr=[];for(const _r of Cr)if(_r.type==="ecanCirculate"){const Rr=moveToComponentList(hr,vue.unref(br),_r.id);_r.componentList=Rr,wr.push(...Rr.map(Mr=>Mr.id))}if(wr!=null&&wr.length)for(const _r of wr){const Rr=Cr.findIndex(Mr=>Mr.id===_r);Rr!==-1&&Cr.splice(Rr,1)}return Cr}),vr=()=>{const Cr=c.id;let br=[];const hr=c.componentList;Array.isArray(hr)&&(br=hr.map(gr=>gr.id),pr(Cr,[...new Set(br)]))},dr=vue.ref(!1),yr={};for(const Cr of c.requestList)yr[Cr.requestName]=useRequestData(Cr);vue.watch(()=>Hn.value,async Cr=>{if(Cr)Qn.value=!1,Yn(c.id),vr(),await vue.nextTick(()=>{Xn(),window.addEventListener("resize",nr),sr(),Qn.value=!0}),Kn();else{if(gn)for(const br in yr)gn(br,{});ir(),window.removeEventListener("resize",nr),ur()}});const fr=vue.computed(()=>vue.unref(Pn)>=1),mr=vue.computed(()=>{let Cr="ecan-modal";return vue.unref(fr)&&(Cr+=" ecan-full-width-modal"),vue.unref(p)&&(Cr+=" ecan-full-modal"),Cr});return useOnEvent(c,{showModal:or,hideModal:cr}),{modalRef:Jn,containStyle:zn,contentStyle:qn,getContainer:x,modalStyle:re,modalWith:j,isFullModal:p,style:Un,visible:Hn,showModal:or,onOk:ar,onCancel:tr,isFullWidth:fr,wrapClassName:mr,ready:Qn,usedComponentList:lr,isMobile:d,readyIds:f,hasOwn:mn,onComponentReady:Cr=>{f.value.push(Cr)},formatTitle:Vn,requestLoaded:dr}}}),Modal_vue_vue_type_style_index_0_scoped_e90afcde_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$D(c,u,f,d,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("render"),g=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(g,{getContainer:c.getContainer,wrapClassName:c.wrapClassName,centered:"",visible:c.visible,footer:null,width:c.isFullModal||c.isFullWidth?"100%":c.modalWith,destroyOnClose:c.destroyOnClose,style:vue.normalizeStyle(c.modalStyle),closable:!1,onOk:c.onOk,onCancel:c.onCancel,ref:"modalRef",id:"container_"+c.id},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"contain",ref:"containRef",style:vue.normalizeStyle(c.containStyle)},[c.ready?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"content",style:vue.normalizeStyle(c.contentStyle)},[vue.createElementVNode("div",{class:"header-bar",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,padding:"20px 30px",height:c.isMobile?"62px":""})},[c.formatTitle?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ant-modal-title",style:vue.normalizeStyle({fontSize:c.titleFontSize,color:c.titleColor})},vue.toDisplayString(c.formatTitle),5)):vue.createCommentVNode("",!0),c.isShowCloseBtn?(vue.openBlock(),vue.createBlock(p,{key:1,class:"close-icon",style:vue.normalizeStyle({color:c.closeBtnColor}),onClick:c.onCancel},null,8,["style","onClick"])):vue.createCommentVNode("",!0)],4),c.usedComponentList.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(c.isMobile?"mobile-wrap":"")},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.usedComponentList,(y,b)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.id+b},[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$y,[["render",_sfc_render$D],["__scopeId","data-v-e90afcde"]]),EcanModal=withInstall$1(Modal);core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent]);const _sfc_main$x=vue.defineComponent({name:"EcanLine",props:{...lineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:d,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.inject("showIndDetail",er=>{}),p=vue.inject("usedComponentList",[]),m=vue.ref(),g=vue.ref(!1),y=usePickComponentStyle(c),b=vue.ref([]),gn=vue.ref([]),x=vue.ref(),re=vue.computed(()=>g.value?ZOOM_FONT_SIZE:12),w=vue.ref({});let J;const Fn=vue.ref([]),Bn=vue.computed(()=>{const er=c.xAxisLabelFormatter,Wn=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,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:g.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var or;g.value=!0,(or=x.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(){v(c)}}}},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:re.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:or=>{var pr;const cr=or.length;let ar="",tr=c.tooltipFormatter;J=(pr=or[0])==null?void 0:pr.data,tr===""&&(tr="{marker} {a} {c}");for(let Yn=0;Yn<cr;Yn++){const{marker:ir,seriesName:lr,name:vr,value:dr,data:yr}=or[Yn]||{};if(Yn===0){let fr=vr;typeof vr=="string"&&vr[0]==="0"&&!isNaN(+vr)&&(fr=(+vr).toString()),ar+=`${In(er,fr)}<br/>`}ar+=hn(tr,{textData:{marker:ir,name:vr,value:dr,a:lr,b:vr,c:dr||0,...yr}},{useNewline:!0,useSpace:!0}),ar+="<br/>"}return ar},position:c.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:c.isBoundaryGap,data:vue.unref(gn).map(or=>{let cr={};return or&&typeof or=="object"?cr={...or}:cr={value:or},cr}),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(or){return typeof or=="string"&&or[0]==="0"&&!isNaN(+or)&&(or=(+or).toString()),In(er,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:"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(or){return In(Wn,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},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(g.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:g.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(Fn).map(or=>({name:or.name,icon:c.legendType})),formatter:or=>getLegendFormat(c.legendFormatter,{name:or})},series:vue.unref(b)}}),j=()=>{g.value=!1},{getGlobalModel:vn,setGlobalModel:Pn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:er=>{},setGlobalModel:(er,Wn)=>{}}),Rn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),zn=(er=[],Wn=!1)=>{var pr;let or;if(c.dataFieldConfigType==="key"){const Yn=Wn?c.keyTypeDataFieldNames:null;or=Mn(er,Yn)}else if(c.dataFieldConfigType==="value"){const Yn=Wn?c.valueTypeDataFieldNames:null;or=En(er,Yn)}gn.value=or.dimensions,Fn.value=or.dataset;const cr=or.dataset,ar=[],tr=cr.length;for(let Yn=0;Yn<tr;Yn++){const ir={};c.shadowColor&&(ir.shadowColor=c.shadowColor,ir.shadowBlur=c.shadowBlur,ir.shadowOffsetY=c.shadowOffsetY,ir.shadowOffsetX=c.shadowOffsetX),ar.push({type:"line",...cr[Yn],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[Yn]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[Yn],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...ir},...vue.unref(Rn)})}b.value=ar,(pr=or.dataset)!=null&&pr.length?f.value=!1:f.value=!0},Un=(er=[],Wn,or=!1)=>{var ir,lr,vr;const ar=Mn(er,or?Wn:null,!0);if(c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(p),getGlobalModel:vn},ar),(ir=ar.dataset)!=null&&ir.length){for(const dr of ar.dataset)if((lr=dr.data)!=null&&lr.length)for(const yr of dr.data)(yr.value===null||yr.value===void 0)&&(yr.value=0)}gn.value=ar.dimensions,Fn.value=ar.dataset;const tr=ar.dataset,pr=[],Yn=tr.length;for(let dr=0;dr<Yn;dr++){const yr={};c.shadowColor&&(yr.shadowColor=c.shadowColor,yr.shadowBlur=c.shadowBlur,yr.shadowOffsetY=c.shadowOffsetY,yr.shadowOffsetX=c.shadowOffsetX),pr.push({type:"line",...tr[dr],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[dr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[dr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...yr},...vue.unref(Rn)})}b.value=pr,(vr=ar.dataset)!=null&&vr.length?f.value=!1: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],([er])=>{(c.dataType==="static"||vue.unref(d)==="design")&&zn(er)},{immediate:!0,deep:!0});const qn=vue.ref(!1),Qn=useRequestData(c),Jn=async()=>{var er,Wn;if(c.dataType==="request")try{qn.value=!0;const or=await Qn();zn((Wn=(er=or==null?void 0:or.data)==null?void 0:er.data)==null?void 0:Wn.rows,!0)}catch(or){console.error(or)}finally{qn.value=!1}},Zn=useEmitEvent(c);Pn(c.id,{type:c.type,RECORD:""});const Xn=Zn("click",er=>{const Wn=vn(c.id);Pn(c.id,{...Wn,type:c.type,RECORD:c.tooltipShow?J:er.data})}),nr=er=>{m.value.chart.containPixel("grid",[er.offsetX,er.offsetY])&&Xn()};c.isForbidClick||(c.tooltipShow?w.value["zr:click"]=nr:w.value.click=Xn);const sr=er=>{var pr;const{columns:Wn=[],rows:or=[]}=((pr=er==null?void 0:er.data)==null?void 0:pr.data)??{};let cr;Wn.length>0&&(cr={name:Wn[0],types:Wn.slice(1).map(Yn=>({label:Yn,value:Yn}))});const{leftAxisList:ar=[]}=c.graphicConfig,tr=ar.filter(Yn=>Yn.show).map(Yn=>Yn.label);for(const Yn of or)if(Yn)for(const ir in Yn)typeof Yn[ir]=="string"&&tr.includes(ir)&&!isNaN(parseFloat(Yn[ir]))&&(Yn[ir]=parseFloat(Yn[ir]));Un(or,cr,!0)},ur=useIndicatorData(c,er=>{c.isViewRedrawing&&m.value.clear(),sr(er)}),Hn=async()=>{try{qn.value=!0;const er=await ur();sr(er)}catch(er){console.error(er)}finally{qn.value=!1}},Kn=async()=>{switch(c.dataType){case"indicator":await Hn();break;case"request":await Jn();break}};useOnEvent(c,{refreshData:Kn,resetRecord:()=>{const er=c.id,Wn=vn(er);Pn(er,{...Wn,RECORD:""})},click:Xn});const{setRequest:Gn}=vue.inject(REQUEST_MODEL,{setRequest:er=>{}});return typeof Gn=="function"&&Gn({id:c.id,requestFn:Kn,sortNum:c.requestSort}),u({refreshData:Kn}),{option:Bn,style:y,click:Xn,loading:qn,onClose:j,ecanModal:x,eventObj:w,echartRef:m,emptyData:f}}}),Line_vue_vue_type_style_index_0_lang="",Line_vue_vue_type_style_index_1_scoped_4caf1012_lang="";function _sfc_render$C(c,u,f,d,h,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[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(p,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(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Line=_export_sfc$1(_sfc_main$x,[["render",_sfc_render$C],["__scopeId","data-v-4caf1012"]]),EcanLine=withInstall$1(Line);let random=c=>crypto.getRandomValues(new Uint8Array(c)),customRandom=(c,u,f)=>{let d=(2<<Math.log(c.length-1)/Math.LN2)-1,h=-~(1.6*d*u/c.length);return(v=u)=>{let p="";for(;;){let m=f(h),g=h;for(;g--;)if(p+=c[m[g]&d]||"",p.length===v)return p}}},customAlphabet=(c,u=21)=>customRandom(c,u,random),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$w=vue.defineComponent({name:"TrendModal",components:{EcanLine},props:{theme:{type:String,default:"light"}},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref(),h=vue.ref(),v=vue.inject("isMobile",!1),p=async({data:y,pageConfig:b,unitText:gn})=>{if(y){const{graphicConfig:x}=y,re=nanoid(6),w={source:"INDICATOR_LIB",dataSourceId:"",idxLibMode:"",classificationList:[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期",name:"the_date",label:"日期",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dateFormat:"YYYY-MM",dataSetParams:{}}],leftAxisList:(x==null?void 0:x.indicators)||[],controlList:(x==null?void 0:x.controlList)||[],variableList:(x==null?void 0:x.variableList)||[],variableConditions:(x==null?void 0:x.variableConditions)||[]};d.value={...lodashEs.cloneDeep(lineProps),id:re,keyName:`折线图_${re}`,position:"relative",top:0,left:0,width:vue.unref(v)?"100%":parseFloat(b.width)*.57+"px",height:vue.unref(v)?"100%":parseFloat(b.height)*.4+"px",dataType:"indicator",tooltipFormatter:"{marker} {a} {c}"+gn,xAxisLabelRotate:45,yAxisLabelFormatter:gn?`{value}${gn}`:"{value}",isForbidClick:!0,graphicConfig:w},f.value=!0,vue.nextTick(()=>{vue.unref(h).refreshData()})}},m=()=>document.querySelector("#ProviderConfig > #container")||document.body,g=vue.computed(()=>{let y="trend-modal";return vue.unref(v)&&(y+=" full"),c.theme==="darkBlue"&&(y+=" darkBlue"),y});return vue.watch(f,y=>{y?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"}),vue.onMounted(()=>{var y,b;if(vue.unref(v)){const gn=document.querySelector("#ProviderConfig > #container");(y=gn==null?void 0:gn.style)==null||y.setProperty("--window-screen-width",document.body.clientWidth+"px"),(b=gn==null?void 0:gn.style)==null||b.setProperty("--window-screen-height",document.body.clientHeight+"px")}}),u({showModal:p}),{visible:f,componentConfig:d,lineRef:h,wrapClassName:g,isMobile:v,getContainer:m}}}),TrendModal_vue_vue_type_style_index_0_scoped_b4c3b51c_lang="",TrendModal_vue_vue_type_style_index_1_lang="",_withScopeId$6=c=>(vue.pushScopeId("data-v-b4c3b51c"),c=c(),vue.popScopeId(),c),_hoisted_1$n=_withScopeId$6(()=>vue.createElementVNode("div",{class:"modal-title"},"趋势图",-1));function _sfc_render$B(c,u,f,d,h,v){const p=vue.resolveComponent("ecan-line"),m=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(m,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=g=>c.visible=g),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:c.isMobile?"":"60vh",height:c.isMobile?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":c.wrapClassName},{title:vue.withCtx(()=>[_hoisted_1$n]),default:vue.withCtx(()=>[c.componentConfig?(vue.openBlock(),vue.createBlock(p,vue.mergeProps({key:0},c.componentConfig,{ref:"lineRef"}),null,16)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name"])}const TrendModal=_export_sfc$1(_sfc_main$w,[["render",_sfc_render$B],["__scopeId","data-v-b4c3b51c"]]),pivotTableProps={...props$1,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"];var zhCn={exports:{}};(function(c,u){(function(f,d){c.exports=d(dayjs)})(commonjsGlobal,function(f){function d(p){return p&&typeof p=="object"&&"default"in p?p:{default:p}}var h=d(f),v={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(p,m){return m==="W"?p+"周":p+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(p,m){var g=100*p+m;return g<600?"凌晨":g<900?"早上":g<1100?"上午":g<1300?"中午":g<1800?"下午":"晚上"}};return h.default.locale(v,null,!0),v})})(zhCn);const LastDetail_vue_vue_type_style_index_0_scoped_fbdfb6a9_lang="",LastDetail_vue_vue_type_style_index_1_lang="";dayjs.locale("zh-cn");const _sfc_main$v=vue.defineComponent({name:"LastDetail",components:{ATable:antDesignVue.Table},props:{theme:{type:String,default:"light"},theDateInfo:{type:Object,default:()=>({})}},setup(c,{emit:u,expose:f}){const d=vue.ref(!1),h=vue.ref(!1),v=vue.ref([]),p=vue.ref([]),m=vue.ref({current:1,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showLessItems:!0,showTotal:J=>`共 ${J} 条数据`}),g=vue.inject("isMobile",!1),y=vue.computed(()=>INDICATOR_URL),b=()=>document.querySelector("#ProviderConfig > #container")||document.body;async function gn(J){var ur,Hn;h.value=!0,d.value=!0;const Fn=((ur=window==null?void 0:window.config)==null?void 0:ur.indicatorToken)||"",{record:Bn,dimOpts:j,column:vn,formatParams:Pn,cpntProps:Rn={}}=J,{indicatorList:zn=[]}=Pn,Un=zn.find(Kn=>Kn.label===vn.dataIndex),qn={};for(const Kn in Bn){const Vn=j.find(Gn=>Gn.name===Kn);Vn&&(qn[Vn.typeGuid]=Bn[Kn])}const{startTime:Qn,endTime:Jn,rangeFormat:Zn}=c.theDateInfo;Qn&&Jn&&(qn.startTime=dayjs(Qn).format(Zn),qn.endTime=dayjs(Jn).format(Zn));const Xn=await request.post(`${vue.unref(y)}/diagram/obtainDataSetData`,{pageId:getPageId(),indexCode:(Un==null?void 0:Un.hrpIndexCode)||"",indexName:Un.label,theFlag:Rn.theFlag,param:qn},{headers:{Authentication:Fn,operateContext:CONTEXT}}),{columns:nr=[],data:sr=[]}=((Hn=Xn==null?void 0:Xn.data)==null?void 0:Hn.data)||{};v.value=nr.filter(Kn=>Kn).map(Kn=>({title:Kn,dataIndex:Kn,width:"120px"})),p.value=sr.map(Kn=>({...Kn,uid:nanoid(6)})),h.value=!1}const x=J=>{vue.unref(m).current=J.current},re=vue.computed(()=>{let J="last-detail-modal";return vue.unref(g)&&(J+=" full"),c.theme==="darkBlue"&&(J+=" darkBlue"),J}),w=vue.computed(()=>vue.unref(g)?{padding:"10px 0"}:{maxHeight:"50vh",overflow:"auto"});return f({showModal:gn}),{visible:d,loading:h,pagination:m,columns:v,dataSource:p,wrapClassName:re,detailBodyStyle:w,isMobile:g,handleTableChange:x,getContainer:b}}}),_hoisted_1$m={key:0,class:"spin-container"};function _sfc_render$A(c,u,f,d,h,v){const p=vue.resolveComponent("a-spin"),m=vue.resolveComponent("a-table"),g=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(g,{wrapClassName:c.wrapClassName,visible:c.visible,"onUpdate:visible":u[0]||(u[0]=y=>c.visible=y),width:"40%",title:"指标明细",destroyOnClose:!0,footer:null,bodyStyle:c.detailBodyStyle,getContainer:c.getContainer},{default:vue.withCtx(()=>[c.loading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$m,[vue.createVNode(p,{size:"large"})])):vue.createCommentVNode("",!0),c.loading?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(m,{key:1,"row-key":y=>y.uid,columns:c.columns,"data-source":c.dataSource,pagination:c.pagination,scroll:{x:"max-content",y:c.isMobile?"70vh":""},onChange:c.handleTableChange},null,8,["row-key","columns","data-source","pagination","scroll","onChange"]))]),_:1},8,["wrapClassName","visible","bodyStyle","getContainer"])}const LastDetail=_export_sfc$1(_sfc_main$v,[["render",_sfc_render$A],["__scopeId","data-v-fbdfb6a9"]]),_sfc_main$u=vue.defineComponent({name:"DrillModal",components:{ATable:antDesignVue.Table,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,LastDetail},props:{theme:{type:String,default:"light"},drillingMode:{type:String,default:"default"},pageMode:{type:String,default:"normal"},scaleValue:{type:Object,default:()=>({})},pivotTableFontSize:{type:Number,default:16},width:{type:String,default:""}},setup(c,{expose:u,emit:f}){const m={IN:"属于",NOT_IN:"不属于",LIKE:"包含",NOT_LIKE:"不包含","LIKE%":"开头是","%LIKE":"结尾是",EQUAL:"等于",LESS:"小于",LESS_EQUAL:"小于等于",GREATER:"大于",GREATER_EQUAL:"大于等于",NOT_EQUAL:"不等于"},g={borderColor:"#666E8D",headerBgColor:"#06347C",headerColor:"#DEE5EF",bodyBgColor:"#112861",bodyColor:"#B2CCE7",indicatorsHeaderBgColor:"#184273",indicatorsHeaderColor:"#FFFFFF",indicatorsBodyBgColor:"#184273",indicatorsBodyColor:"#FFFFFF",aggregateBgColor:"#0F4F9B",aggregateColor:"#FFFCFC",sortNotActiveColor:"#B0B0B0",sortActiveColor:"#00CCFF",dropDownMenuBgColor:"#08154F",dropDownMenuColor:"#B2C3DD",dropDownMenuHightLightColor:"#2E68CF"},y=vue.ref(!1),b=vue.ref(),gn=vue.ref(),x=vue.ref(),re=vue.ref(!1),w=vue.ref({}),J=vue.ref([]),Fn=vue.ref([]),Bn=vue.ref(!1),j=vue.ref({dateFormat:"YYYY-MM-DD"}),vn=vue.reactive({keyName:"",visible:!1,dataSource:[],columns:[],title:"",pagination:{current:1,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showLessItems:!0,showTotal:lr=>`共 ${lr} 条数据`}}),Pn=vue.ref({}),Rn=vue.inject("isMobile",!1),zn=vue.inject("usedComponentList",[]),Un=vue.inject("componentList",[]),{getAllGlobalModel:qn}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),Qn=vue.computed(()=>INDICATOR_URL);vue.watch(()=>vn.visible,lr=>{lr?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"});const Jn=vue.computed(()=>({width:vue.unref(w).width,height:vue.unref(w).height})),Zn=vue.computed(()=>vue.unref(Rn)?{padding:"10px 0"}:{}),Xn=vue.computed(()=>{let lr="ind-detail-modal";return(re.value||vue.unref(Rn))&&(lr+=" full"),c.theme==="darkBlue"&&(lr+=" darkBlue"),lr}),nr=(lr,vr)=>{const{leftAxisList:dr=[],rightAxisList:yr=[],indicators:fr=[],classificationList:mr=[],rowHeaderList:xr=[],dimensionList:Cr=[],seriesList:br=[],queryColumns:hr=[],indexLibColumns:gr=[]}=vr.graphicConfig,wr=dr.concat(yr).concat(fr).concat(mr).concat(xr).concat(Cr).concat(br).concat(hr).concat(gr).filter(Mr=>Mr.conditions),_r=ur(wr,"conditions",!0),Rr=ur(lr.sqlConditions,"sqlConditions",!1);J.value=_r.concat(Rr).filter(Mr=>Mr.label).map(Mr=>{let Dr=Mr.fieldValue;if(Dr){const Br=Dr.split(",");(Br==null?void 0:Br.length)>3&&(Dr=Br.slice(0,3).join(",")+"等")}else Dr='""';return`${Mr.label} ${m[Mr.rule]} ${Dr}`})||[]},sr=()=>document.querySelector("#ProviderConfig > #container")||document.body;function ur(lr,vr,dr){const yr=[];for(const fr of lr)fr[vr]?yr.push(...ur(fr[vr],vr,dr)):fr.filter?yr.push({...fr.filter,label:fr.label}):(!dr||fr.dataType!=="component"&&!(fr.fieldValue.startsWith("${")&&fr.fieldValue.endsWith("}")))&&yr.push(fr);return yr}const Hn=async({cpntProps:lr,pageId:vr,formatParams:dr,classifications:yr,indicatorToken:fr})=>{var mr,xr,Cr;return await request({url:`${vue.unref(Qn)}/diagram/obtainDrillAbleDimensionOptions`,method:"post",headers:{Authentication:fr,operateContext:CONTEXT},data:{source:((mr=lr==null?void 0:lr.graphicConfig)==null?void 0:mr.source)||"INDICATOR_LIB",pageId:vr,indicatorList:(dr==null?void 0:dr.indicatorList)||[],classifications:yr,dataSourceId:((xr=lr==null?void 0:lr.graphicConfig)==null?void 0:xr.dataSourceId)||""},signal:((Cr=window.controller)==null?void 0:Cr.signal)||""})},Kn=lr=>{let vr="",dr="";const{componentConfig:yr}=lr;for(const mr in yr)if(yr[mr].key==="currentValue"){dr=mr;break}const fr=vue.unref(Un).find(mr=>mr.id===dr);return fr!=null&&fr.unitText&&(vr=fr.unitText),vr};function Vn(lr){const vr=[];for(const dr of lr)dr.sqlConditions?vr.push(...Vn(dr.sqlConditions)):dr.fieldName==="the_date"&&vr.push(dr);return vr}const Gn=lr=>{var mr;const{sqlConditions:vr=[],queryColumns:dr=[]}=lr||{},yr=Vn(vr),fr=dr.find(xr=>xr.typeGuid==="the_date");if(fr&&(j.value={dateFormat:fr.dateFormat||"YYYY-MM-DD"}),yr!=null&&yr.length)for(const xr of yr)["startTime","endTime"].includes(xr.prop)&&(vue.unref(j)[xr.prop]=xr.fieldValue||"",(mr=vue.unref(j))!=null&&mr.rangeFormat||(vue.unref(j).rangeFormat=xr.dateFormat||"YYYY-MM-DD"))},er=async lr=>{var Er,wr,_r,Rr,Mr;if(c.drillingMode==="default")return;let vr=lodashEs.cloneDeep(lr).props;if(vr.parentId){const Dr=vue.unref(zn).find(Br=>Br.id===vr.parentId);if((Dr==null?void 0:Dr.dataType)==="indicator")vr=lodashEs.cloneDeep(Dr);else return}vn.keyName=vr==null?void 0:vr.keyName;const dr=((Er=window==null?void 0:window.config)==null?void 0:Er.indicatorToken)||"",yr=getPageId(),fr=(vr==null?void 0:vr.graphicConfig)||{},{leftAxisList:mr=[],rightAxisList:xr=[],indicators:Cr=[]}=fr,br=mr.concat(xr).concat(Cr);if(!(br!=null&&br.length))return;const hr=br.filter(Dr=>Dr.show).map(Dr=>Dr.label);hr!=null&&hr.length&&(vn.title=`下钻:${hr.join("、")}`);const gr=Dn({...vr,globalModel:qn()});if(c.drillingMode==="normalTable"||vue.unref(Rn)){vn.pagination.current=1;let Dr=(gr==null?void 0:gr.classification)||(gr==null?void 0:gr.classifications)||[];Array.isArray(Dr)||(Dr=[Dr]);try{Bn.value=!0,vn.visible=!0;const Br=await Hn({cpntProps:vr,pageId:yr,formatParams:gr,classifications:Dr,indicatorToken:dr}),Vr=((wr=Br==null?void 0:Br.data)==null?void 0:wr.data)||[];let Gr=[],Hr=[];const{usedDimensions:Ur=[],params:Qr={}}=lr;if(Ur!=null&&Ur.length){for(const zr of Vr)if(!Ur.find(Xr=>Xr.label===zr.name)){Hr.push(zr);break}gr.sqlConditions=lodashEs.cloneDeep(Qr.sqlConditions);const{sqlConditions:Fr=[]}=gr,{record:Nr={}}=lr;Ur.forEach((zr,Xr)=>{if(mn(Nr,zr.label)){const ri=Vr.find(ui=>ui.name===zr.label),ii={fieldName:zr.label,fieldValue:Nr[zr.label],globalCondition:!0,hrpIndexCode:null,hrpIndexCodeNum:null,label:zr.label,rule:"EQUAL",typeGuid:zr.typeGuid,valueType:(ri==null?void 0:ri.genericType)||"TEXT"};Xr!==Ur.length-1&&(ii.join="&&"),Xr===0&&(Fr!=null&&Fr.length)&&(Fr[Fr.length-1].join="&&"),Fr.push(ii)}})}else Gr=Dr.map(Fr=>({...Fr,calcType:"COLUMN"})),Hr=Vr.slice(0,2).sort((Fr,Nr)=>Fr.typeGuid-Nr.typeGuid);nr(gr,lodashEs.cloneDeep(lr.props));for(const Fr of Hr)Gr.push({calcType:"COLUMN",columnName:Fr.name,label:Fr.name,show:!0,typeGuid:Fr.typeGuid});gr.queryColumns=Gr,gr.layer="1",gr.plugin="1",delete gr.classification,delete gr.classifications;const{url:Zr,...ni}=gr||{};Gn(gr);const Ar=await request({url:`${vue.unref(Qn)}${Zr}`,method:"post",headers:{Authentication:dr,operateContext:CONTEXT},data:{...ni,pageId:yr}}),{columns:Ir=[],rows:Or=[]}=((_r=Ar==null?void 0:Ar.data)==null?void 0:_r.data)||{};if(yn(vr.type,"indexPanel")){const Fr=fr.indicators.find(zr=>zr.show),Nr=Kn(vr);Nr&&Fr&&(Pn.value={[Fr.label]:Nr})}vn.columns=Ir.filter(Fr=>!!Fr).map(Fr=>{let Nr=Fr;const zr=Vr.find(Xr=>Xr.name===Fr);return zr&&(Nr=zr.title||zr.label),{title:Nr,dataIndex:Fr,width:"120px",customCell:(Xr,ri,ii)=>({[vue.unref(Rn)?"onClick":"onDblclick"]:()=>{Vr.find(hi=>ii.dataIndex===hi.name)?(!(Ur!=null&&Ur.length)||Vr.length-1>Ur.length)&&(y.value=!0,vue.nextTick(()=>{vue.unref(b).showModal({...lr,record:Xr,usedDimensions:[...Ur,...Gr],params:gr})})):vue.unref(gn).showModal({record:Xr,dimOpts:Vr,column:ii,formatParams:gr,cpntProps:vr})}})}}),vn.dataSource=(Array.isArray(Or)?Or:[Or]).map(Fr=>({...Fr,uuid:nanoid(6)})),vn.pagination.total=(Or==null?void 0:Or.length)||0,Bn.value=!1}catch(Br){console.error(Br)}}else if(c.drillingMode==="pivotTable"){const Dr=await Hn({cpntProps:vr,pageId:yr,formatParams:gr,classifications:[],indicatorToken:dr});Fn.value=((Rr=Dr==null?void 0:Dr.data)==null?void 0:Rr.data)||[];const Br=nanoid(6);fr.queryColumnList||(fr.queryColumnList=[]),fr!=null&&fr.classificationList&&(fr.queryColumnList=fr.classificationList,delete fr.classificationList),fr!=null&&fr.seriesList&&(fr.queryColumnList=fr.queryColumnList.concat(fr.seriesList),delete fr.seriesList),fr.indicators=lodashEs.cloneDeep(br||[]),delete fr.leftAxisList,delete fr.rightAxisList;const Vr={};if(yn(vr.type,"indexPanel")){const Hr=fr.indicators.find(Zr=>Zr.show),Ur=vue.unref(Fn).slice(0,2).sort((Zr,ni)=>Zr.typeGuid-ni.typeGuid).map(Zr=>({...Zr,show:!0,edit:!1,dataTo:"0",dataSetParams:{}}));Ur!=null&&Ur.length&&(fr.queryColumnList=Ur);const Qr=Kn(vr);if(Qr&&Hr){const{label:Zr}=Hr;Vr.defaultConfig={indexFormatConfig:{[Zr]:{fieldName:Zr,indicatorKey:Zr,position:"right",unit:Qr}}}}}vr!=null&&vr.theFlag&&(Vr.theFlag=vr.theFlag),(Mr=fr.queryColumnList)!=null&&Mr.length||(fr.queryColumnList=[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期(内置)",name:"the_date",label:"日期(内置)",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dataSetParams:{}}]);const Gr={...lodashEs.cloneDeep(pivotTableProps),id:Br,keyName:`透视表_${Br}`,position:"relative",top:0,left:0,width:parseFloat(c.width)*.57+"px",height:window.screen.height*.6+"px",pageId:yr,indicatorToken:dr,context:CONTEXT,globalModel:qn(),graphicConfig:fr,pageConfig:c,...Vr};c.theme==="darkBlue"&&(Gr.styleConfig=g),w.value=Gr,vn.visible=!0,vue.nextTick(()=>{vue.unref(x).refreshData()})}vue.nextTick(()=>{or(!0),cr(!0)})},Wn=lr=>{vn.pagination.current=lr.current},or=lr=>{const vr=document.querySelector(".ind-detail-modal .ant-modal-header");vr&&(lr?vr.addEventListener("dblclick",tr):vr.removeEventListener("dblclick",tr))},cr=lr=>{const vr=document.querySelector(".ind-detail-modal .ant-modal-header");if(vr)if(lr)vr.addEventListener("mousedown",ar);else{const dr=vr.parentElement;dr&&(dr.style.left="",dr.style.top=""),vr.removeEventListener("mousedown",ar)}};function ar(lr){dragModalAction(lr,".ind-detail-modal .ant-modal-header")}const tr=()=>{re.value=!re.value,vue.nextTick(()=>{re.value?(vue.unref(w).width=parseFloat(c.width)*.97+"px",vue.unref(w).height=window.screen.height*.9+"px",cr(!1)):(vue.unref(w).width=parseFloat(c.width)*.57+"px",vue.unref(w).height=window.screen.height*.6+"px",cr(!0))})},pr=()=>{re.value=!1,or(!1),cr(!1),f("close")},Yn=({type:lr,data:vr})=>{if(lr==="11"&&vr){const{indicatorList:dr=[],queryColumns:yr=[]}=vr,mr=dr.concat(yr).filter(br=>br.conditions||br.filter),xr=ur(mr,"conditions",!0),Cr=ur(vr.sqlConditions,"sqlConditions",!1);J.value=xr.concat(Cr).filter(br=>br.label).map(br=>{const hr=vue.unref(Fn).find(Er=>Er.label===br.label);let gr=br.fieldValue;if(gr&&typeof gr=="string"){const Er=gr.split(",");(Er==null?void 0:Er.length)>3&&(gr=Er.slice(0,3).join(",")+"等")}else gr||(gr='""');return`${(hr==null?void 0:hr.title)||br.label} ${m[br.rule]} ${gr}`})||[]}},ir=()=>{y.value=!1};return u({showModal:er}),{indDetailInfo:vn,pivotTableConfig:w,pivotTableStyle:Jn,detailBodyStyle:Zn,wrapClassName:Xn,isIndFullScreen:re,isMobile:Rn,conditionInfo:J,indicatorUrl:Qn,allDimensions:Fn,detailLoading:Bn,pivotTableRef:x,lastDetailRef:gn,subDrillModalRef:b,theDateInfo:j,isShowSubDrillModal:y,normalTableUnits:Pn,getContainer:sr,toggleFullScreen:tr,onDetailCancel:pr,onPivotTableChange:Yn,handleTableChange:Wn,onCloseModal:ir}}}),DrillModal_vue_vue_type_style_index_0_scoped_221ad28a_lang="",DrillModal_vue_vue_type_style_index_1_lang="",_hoisted_1$l=["title"],_hoisted_2$a={key:0,class:"spin-container"},_hoisted_3$5=["title"],_hoisted_4$4=["title"];function _sfc_render$z(c,u,f,d,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("switcher-outlined"),g=vue.resolveComponent("border-outlined"),y=vue.resolveComponent("a-spin"),b=vue.resolveComponent("a-table"),gn=vue.resolveComponent("pivot-table"),x=vue.resolveComponent("a-modal"),re=vue.resolveComponent("last-detail"),w=vue.resolveComponent("drill-modal",!0);return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(x,{visible:c.indDetailInfo.visible,"onUpdate:visible":u[1]||(u[1]=J=>c.indDetailInfo.visible=J),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,"wrap-class-name":c.wrapClassName,bodyStyle:c.detailBodyStyle,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[vue.createElementVNode("div",{class:"detail-modal-title",title:c.conditionInfo.join("、")},vue.toDisplayString(c.indDetailInfo.title)+" "+vue.toDisplayString(c.conditionInfo.join("、")),9,_hoisted_1$l)]),closeIcon:vue.withCtx(()=>[vue.createVNode(p,{class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[c.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"zoom-btn",onClick:u[0]||(u[0]=(...J)=>c.toggleFullScreen&&c.toggleFullScreen(...J))},[c.isIndFullScreen?(vue.openBlock(),vue.createBlock(m,{key:0,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])):(vue.openBlock(),vue.createBlock(g,{key:1,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"]))])),c.drillingMode==="normalTable"||c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.detailLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$a,[vue.createVNode(y,{size:"large"})])):(vue.openBlock(),vue.createBlock(b,{key:1,scroll:{x:"max-content",y:c.isIndFullScreen?"100vh":"70vh"},"row-key":J=>J.uuid,columns:c.indDetailInfo.columns,"data-source":c.indDetailInfo.dataSource,pagination:c.indDetailInfo.pagination,onChange:c.handleTableChange},{headerCell:vue.withCtx(({title:J})=>[vue.createElementVNode("div",{class:"detail-table-header-cell",title:J},vue.toDisplayString(J),9,_hoisted_3$5)]),bodyCell:vue.withCtx(({text:J,column:Fn})=>[vue.createElementVNode("div",{title:J},vue.toDisplayString(J)+vue.toDisplayString(c.normalTableUnits[Fn.title]),9,_hoisted_4$4)]),_:1},8,["scroll","row-key","columns","data-source","pagination","onChange"]))],64)):c.drillingMode==="pivotTable"?(vue.openBlock(),vue.createElementBlock("div",{key:2,style:vue.normalizeStyle({position:"relative",...c.pivotTableStyle})},[vue.createVNode(gn,vue.mergeProps({ref:"pivotTableRef"},c.pivotTableConfig,{pageMode:c.pageMode,theme:c.theme,fullMode:!1,allowDrill:!0,showFullScreen:!1,indicatorUrl:c.indicatorUrl,relateKeyName:c.indDetailInfo.keyName,allDimensions:c.allDimensions,scaleValue:c.scaleValue,defaultFontSize:c.pivotTableFontSize,isMobile:c.isMobile,enlargeContainer:"#norPageConfig",onTableChange:c.onPivotTableChange}),null,16,["pageMode","theme","indicatorUrl","relateKeyName","allDimensions","scaleValue","defaultFontSize","isMobile","onTableChange"])],4)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","wrap-class-name","bodyStyle","onCancel"]),vue.createVNode(re,{ref:"lastDetailRef",theme:c.theme,theDateInfo:c.theDateInfo},null,8,["theme","theDateInfo"]),c.isShowSubDrillModal?(vue.openBlock(),vue.createBlock(w,{key:0,ref:"subDrillModalRef",width:c.width,theme:c.theme,drillingMode:c.drillingMode,pageMode:c.pageMode,scaleValue:c.scaleValue,pivotTableFontSize:c.pivotTableFontSize,onClose:c.onCloseModal},null,8,["width","theme","drillingMode","pageMode","scaleValue","pivotTableFontSize","onClose"])):vue.createCommentVNode("",!0)],64)}const DrillModal=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$z],["__scopeId","data-v-221ad28a"]]),_sfc_main$t=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,components:{IndicatorDetailModal,TrendModal,DrillModal},props:{...providerConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"ProviderConfig"},fixedHeight:{type:String,default:"0px"}},setup(c,{expose:u,emit:f}){c.pageId||useHrefParamsToGlobalVariables();const d=vue.ref(),h=vue.ref(),v=vue.ref(),p=vue.computed(()=>INDICATOR_URL),m=vue.computed(()=>hn(c.contextRequestUrl)),g=vue.computed(()=>c.pageMode),y=vue.computed(()=>c.theme),b=vue.computed(()=>c.width),gn=vue.computed(()=>c.height),x=vue.computed(()=>c.pageFontFamily),re=vue.computed(()=>c.fixedHeight?parseFloat(c.fixedHeight):0),w=vue.computed(()=>c.isCompatible),J=vue.computed(()=>c.variableList),Fn=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)),Bn=vue.computed(()=>parseFloat(c.pivotTableFontSize)),j=vue.ref(),vn=vue.ref({}),Pn=()=>{j.value.setAttribute("datav-theme",c.theme)},Rn=vue.ref({currentYmd:dayjs().format("YYYY-MM-DD"),currentYear:dayjs().format("YYYY"),currentMonth:dayjs().format("MM"),currentDay:dayjs().format("DD")}),zn=vue.computed(()=>{const Ar={};if(vue.unref(J))for(const Or of vue.unref(J))Ar[Or.label]=Or.value;return{$page:{...vue.unref(Rn),...Ar}}});vue.provide(GLOBAL_VARIABLE,{globalVariable:zn});const Un=vue.inject("usedComponentList",[]),qn=vue.inject("componentList",[]);vue.watch(zn,()=>{f("setGlobalVar",vue.unref(Rn))},{deep:!0,immediate:!0});const Qn=vue.computed(()=>{const Ar=[];for(const Ir of vue.unref(Un))Ir.type==="ecanModal"?Ar.push(...Ir.componentList):Ar.push(Ir);return Ar});vue.watch(()=>c.theme,()=>{Pn()}),vue.onMounted(()=>{Pn()});const Jn=vue.computed(()=>{const Ar=[],Ir=vue.unref(qn).filter(Or=>Or.type==="ecanModal");for(const Or of Ir)Or!=null&&Or.requestList&&Ar.push(...Or.requestList);return[...Ar,...c.requestList]}),Zn=Ar=>Object.prototype.toString.call(Ar)==="[object Object]",Xn=Ar=>{const Ir=Ar.split(".");let Or=vue.unref(zn);for(const Fr of Ir)if(Or&&Zn(Or))Or=Or[Fr];else{Or="";break}return Or},nr=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:m,pageMode:g,theme:y,touchEventId:nr,width:b,height:gn,fontFamily:x,requestList:Jn,isCompatible:w,fixedHeight:re,getGlobalVar:Xn});const sr=vue.ref({height:"100%",overflow:c.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",Ar=>{let Ir=0;Ar==="auto"?(Ir=Ar,vn.value={widthScale:1,heightScale:1}):(Ir=Ar.heightScale,vn.value=Ar),(!w.value||!Fn.value)&&(Ir=parseFloat(gn.value)*Ir+"px"),sr.value.height=Ir}),vue.provide("isMobile",Fn.value),vue.provide("getContainerMap",()=>c.containerMap),vue.provide("getCombinationMap",()=>c.combinationMap),vue.provide("templateOperate",{pageId:c.pageId,templateEmit:f,setTemplateData:Ar=>{var Ir;if(Ar!=null&&Ar.pageId){const{componentId:Or,...Fr}=Ar;(Ir=window.config)!=null&&Ir.urlParams||(window.config.urlParams={}),window.config.urlParams[Ar.pageId]=Fr,f("templateChange",Ar)}}});const ur=vue.ref(),Hn=new Map,Kn=()=>Hn,Vn=Ar=>{let Ir=Hn.get(Ar);if(!Ir){const Or=vue.unref(qn).find(Fr=>Fr.keyName===Ar);Or&&(Ir=Hn.get(Or.id))}return Ir},Gn=(Ar,Ir)=>{var Or;if(ur.value=Ir,Hn.set(Ar,Ir),!c.pageId){const Fr=vue.unref(Un).find(Nr=>Nr.id===Ar);Fr&&((Or=window.config)!=null&&Or.record||(window.config.record={}),window.config.record[Fr.keyName]=Ir)}},er=()=>{ur.value=null},Wn=Ar=>{let Ir=Ar;if(Ir){const Or=Ar.match(/\{(.+?)\}/g);if(Or!=null&&Or.length){let Fr=Or[0].slice(1,-1).trim();const Nr=Fr.match(/\[(.+?)\]/g);let zr="";Nr!=null&&Nr.length&&(Fr=Fr.replace(Nr[0],""),zr=Nr[0].slice(1,-1).trim());const Xr=vue.unref(Qn).find(ri=>ri.keyName===Fr);if(Xr){const ri=Vn(Xr.id),{type:ii,value:ui,RECORD:hi,recordData:li}=ri||{};yn(ii,MODEL_KEY_LIST)?Ir=hi[zr]:yn(ii,"select")?li[zr]?Ir=li[zr]:Ir=vue.unref(ui):yn(ii,["rangePicker","date"])?dayjs.isDayjs(vue.unref(ri[zr]))?Ir=vue.unref(ri[zr]).format(ri.format):Ir=vue.unref(ri[zr]):Ir=ui}else{const ri=window.config.requestParams||{},ii=window.location.search.slice(1).split("&"),ui={};for(const li of ii)if(li!=null&&li.includes("=")){const vi=li.split("=");ui[vi[0]]=vi[1]||""}Ir={...ui,...ri}[Fr]||""}}}return Ir},or=new Map,cr={},ar=async(Ar,Ir)=>{var Xr;const{requestName:Or}=Ar,Fr=await useRequestData({...Ar,projectRequestUrl:vue.unref(m),getModel:Vn})(),Nr=((Xr=Fr==null?void 0:Fr.data)==null?void 0:Xr.data)||{};Ar.requestKeyName&&(Rn.value[Ar.requestKeyName]=Nr);const zr=or.get(Or);if(zr!=null&&zr.length&&(!Ir||cr[Or])){for(const ri of zr)ri(Nr);Ir||or.delete(Or)}},tr=(Ar,Ir)=>{cr[Ar]&&(clearInterval(cr[Ar]),delete cr[Ar],or.delete(Ar));const Or=vue.unref(Qn).filter(Nr=>Nr.dataType==="request"&&!Nr.openCustomRequestData&&Nr.customRequestName===Ar),Fr=or.get(Ar)||[];if((Or==null?void 0:Or.length)>Fr.length&&(Fr.push(Ir),or.set(Ar,Fr),(Or==null?void 0:Or.length)===Fr.length)){const Nr=vue.unref(Jn).find(zr=>zr.requestName===Ar);Nr&&(Nr!=null&&Nr.isOpenRequestTimer&&(Nr!=null&&Nr.requestInterval)?(ar(Nr,!0),cr[Ar]=setInterval(()=>{ar(Nr,!0)},Nr.requestInterval*1e3)):ar(Nr))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:Vn,setGlobalModel:Gn,getAllGlobalModel:Kn,clearInteractiveData:er,getRecordValueByKeyName:Wn,hanldePageRequestData:tr,interactiveData:ur});const pr=vue.ref({}),Yn=(Ar,Ir)=>{pr.value[Ar]=Ir};vue.provide(LOADED_DATA,{loadedData:pr,setLoadedData:Yn});const ir=[],lr=()=>{ir.pop()},vr=Ar=>{ir.push(Ar)},dr=new Map,yr=Ar=>dr.get(Ar),fr=(Ar,Ir)=>{dr.set(Ar,Ir)};vue.provide(MODAL_MODEL,{popUseModalIds:lr,pushUseModalIds:vr,getModalModel:yr,setModalModel:fr});const mr=mitt(),xr=new Set,Cr=(Ar,Ir)=>{xr.add(Ar),mr.on(Ar,Or=>{const{eventName:Fr,params:Nr}=Or;return typeof Ir[Fr]=="function"&&Ir[Fr](Nr)}),vue.onBeforeUnmount(()=>{br(Ar)})},br=Ar=>{xr.delete(Ar),mr.off(Ar)},hr=(Ar,Ir,Or={})=>{if(Ar==="PAGE"){const Fr=ir.length;let Nr=[];if(Fr===0)Nr=[...xr];else{const zr=ir[Fr-1];Nr=[...yr(zr)]}Nr.forEach(zr=>{mr.emit(zr,{eventName:Ir,params:Or})})}else mr.emit(Ar,{eventName:Ir,params:Or})};vue.provide(EVENT_BUS,{onEvent:Cr,offEvent:br,emitEvent:hr});const gr=vue.ref(0),Er=()=>{gr.value=vue.unref(gr)+1};vue.provide(GLOBAL_TOKEN,{requestToken:Er});const wr=new Map,_r=new Map,Rr=({requestFn:Ar=()=>{},sortNum:Ir=0,id:Or=""})=>{if(wr.has(Ir)){const Fr=wr.get(Ir);Fr==null||Fr.push(Ar)}else wr.set(Ir,[Ar]);_r.set(Or,Ar)},Mr=Ar=>new Promise((Ir,Or)=>{const Fr=[];for(const Nr of Ar)Fr.push(new Promise(async zr=>{await Nr(),zr()}));Promise.all(Fr).then(Nr=>{Ir(Nr)}).catch(Nr=>{Or(Nr)})}),Dr=Ar=>new Promise(async(Ir,Or)=>{if(Ar){if(typeof Ar=="string"){const Fr=_r.get(Ar);if(typeof Fr=="function"){const Nr=request.interceptors.response.use(zr=>(Ir(zr),zr),zr=>(Or(zr),Promise.reject(zr)));Fr(),request.interceptors.response.eject(Nr)}}}else{const Fr=Array.from(wr);Fr.sort((zr,Xr)=>Xr[0]-zr[0]);const Nr=Fr.length;try{c.pageMode!=="design"&&vue.unref(gr)>0;for(let zr=0;zr<Nr;zr++){const Xr=Fr[zr][1];await Mr(Xr)}}catch(zr){console.error(zr)}finally{wr.clear(),Ir(null)}}});vue.provide(REQUEST_MODEL,{setRequest:Rr,touchRequest:Dr});const Br=()=>{mr.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:Br});const Vr=Ar=>{mr.on(REFRESH_PAGE,()=>Ar()),vue.onMounted(()=>{mr.off(REFRESH_PAGE)})},Gr=vue.ref({});vue.provide(All_COMPONENT_RES_DATA,{allComponentResData:Gr});const Hr=Ar=>{const{id:Ir,data:Or}=Ar;Or.success&&(Gr.value[Ir]=(Or==null?void 0:Or.data)||{})},Ur=(Ar,Ir)=>{switch(Ar){case"SHOW_INDICATOR_DETAIL_MODAL":vue.unref(d).showModal(Ir);break;case"SAVE_COMPONENT_RES_DATA":Hr(Ir);break}};vue.provide(COMMON_OPERATE,{operateAction:lodashEs.debounce((Ar,Ir)=>{Ur(Ar,Ir)},100)}),vue.watchEffect(()=>{var Ar;if((Ar=vue.unref(Un))!=null&&Ar.length&&vue.unref(g)!=="design"){const{jumpType:Ir,jumpTime:Or,jumpPage:Fr,jumpLink:Nr}=c;if(Or!=null&&Or.value){let zr=0;switch(Or==null?void 0:Or.suffix){case"hours":zr=Or.value*60*60*1e3;break;case"minute":zr=Or.value*60*1e3;break;case"seconds":zr=Or.value*1e3;break}setTimeout(()=>{let Xr="";Ir==="page"&&Fr?Xr=usePageUrl(vue.unref(g),Fr):Ir==="link"&&Nr&&(Xr=Nr),Xr=hn(Xr),window.open(Xr,"_self")},zr)}}});const Qr=Ar=>{var Ir;vue.unref(h).showModal({data:Ar,indicatorUrl:vue.unref(p),indicatorToken:((Ir=window==null?void 0:window.config)==null?void 0:Ir.indicatorToken)||"",context:CONTEXT,pageId:getPageId()})},Zr=Ar=>{vue.unref(v).showModal({data:Ar,pageConfig:c,unitText:ni(Ar)})},ni=Ar=>{let Ir="",Or="";const{componentConfig:Fr}=Ar;for(const zr in Fr)if(Fr[zr].key==="currentValue"){Or=zr;break}const Nr=vue.unref(qn).find(zr=>zr.id===Or);return Nr!=null&&Nr.unitText&&(Ir=Nr.unitText),Ir};return vue.provide("showIndDetail",Qr),vue.onBeforeUnmount(()=>{wr==null||wr.clear(),_r==null||_r.clear()}),u({touchRequest:Dr,getGlobalModel:Vn,onRefreshPage:Vr,emitEvent:hr,getRecordValueByKeyName:Wn,showIndDetail:Qr,showTrend:Zr,props:c,systemVariable:Rn}),{providerConfig:j,configStyle:sr,indicatorUrl:p,theme:y,drillModalRef:d,indDetailModalRef:h,trendModalRef:v,scaleValue:vn,defaultPivotTableFontSize:Bn,isMobile:Fn}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_e9e5325e_lang="",ProviderConfig_vue_vue_type_style_index_1_lang="",_hoisted_1$k=["id"];function _sfc_render$y(c,u,f,d,h,v){const p=vue.resolveComponent("drill-modal"),m=vue.resolveComponent("indicator-detail-modal"),g=vue.resolveComponent("trend-modal");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{class:"provider-config-container",id:c.customId,ref:"providerConfig",style:vue.normalizeStyle({...c.configStyle,fontFamily:c.pageFontFamily})},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_1$k),vue.createVNode(p,{ref:"drillModalRef",width:c.width,theme:c.theme,drillingMode:c.drillingMode,pageMode:c.pageMode,scaleValue:c.scaleValue,pivotTableFontSize:c.defaultPivotTableFontSize},null,8,["width","theme","drillingMode","pageMode","scaleValue","pivotTableFontSize"]),vue.createVNode(m,{ref:"indDetailModalRef",theme:c.theme},null,8,["theme"]),vue.createVNode(g,{ref:"trendModalRef",theme:c.theme},null,8,["theme"])],64)}const ProviderConfig=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$y],["__scopeId","data-v-e9e5325e"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props$1,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,parentId:""},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={"&":"&","<":"<",">":">",'"':""","'":"'"},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:(d,h)=>(h=h.source||h,h=h.replace(caret,"$1"),c=c.replace(d,h),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 d;try{d=decodeURIComponent(unescape$1(f)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(d.indexOf("javascript:")===0||d.indexOf("vbscript:")===0||d.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,d;for(;u<arguments.length;u++){f=arguments[u];for(d in f)Object.prototype.hasOwnProperty.call(f,d)&&(c[d]=f[d])}return c}function splitCells$1(c,u){const f=c.replace(/\|/g,(v,p,m)=>{let g=!1,y=p;for(;--y>=0&&m[y]==="\\";)g=!g;return g?"|":" |"}),d=f.split(/ \|/);let h=0;if(d[0].trim()||d.shift(),d[d.length-1].trim()||d.pop(),d.length>u)d.splice(u);else for(;d.length<u;)d.push("");for(;h<d.length;h++)d[h]=d[h].trim().replace(/\\\|/g,"|");return d}function rtrim$1(c,u,f){const d=c.length;if(d===0)return"";let h=0;for(;h<d;){const v=c.charAt(d-h-1);if(v===u&&!f)h++;else if(v!==u&&f)h++;else break}return c.substr(0,d-h)}function findClosingBracket$1(c,u){if(c.indexOf(u[1])===-1)return-1;const f=c.length;let d=0,h=0;for(;h<f;h++)if(c[h]==="\\")h++;else if(c[h]===u[0])d++;else if(c[h]===u[1]&&(d--,d<0))return h;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,d){const h=u.href,v=u.title?escape$2(u.title):null,p=c[1].replace(/\\([\[\]])/g,"$1");if(c[0].charAt(0)!=="!"){d.state.inLink=!0;const m={type:"link",raw:f,href:h,title:v,text:p,tokens:d.inlineTokens(p,[])};return d.state.inLink=!1,m}else return{type:"image",raw:f,href:h,title:v,text:escape$2(p)}}function indentCodeCompensation(c,u){const f=c.match(/^(\s+)(?:```)/);if(f===null)return u;const d=f[1];return u.split(`
|
|
102
|
+
`;let v=c;if(f!=null&&f.length){for(const m of f){const g=hn(m,{textData:u},{useNewline:!1,useSpace:!1});g&&(v=v.replace(m,g))}return`${h}{text|${v}}`}else return c},setDefaultRangeVal=(c,u)=>{const{props:f,componentList:d,getGlobalModel:h}=c,{graphicConfig:v={},startValue:p,endValue:m}=f,g=getdefCompleteData({graphicConfig:v,startValue:p,endValue:m,componentList:d,getGlobalModel:h}),{dimensions:y,dataset:b}=u,{classificationList:gn=[]}=v,re=gn.find(w=>w.show).label||"";for(const w of g)!y.find(J=>+J==+w)&&!isNaN(+w)&&y.push(+w);y.sort((w,J)=>dayjs(w).isBefore(dayjs(J))?-1:1);for(const w of b){const{data:J}=w;if(J!=null&&J.length){const Fn=[];for(const Bn of g)if(!J.find(j=>+j[re]==+Bn)&&!isNaN(+Bn)){const j=lodashEs.cloneDeep(J[0]);for(const vn in j)vn===re?j[vn]=+Bn:j[vn]=0;Fn.push(j)}w.data.push(...Fn),w.data.sort((Bn,j)=>dayjs(Bn[re]).isBefore(dayjs(j[re]))?-1:1)}}};function getdefCompleteData(c){const{startValue:u,endValue:f,componentList:d,graphicConfig:h,getGlobalModel:v}=c,p=getVariableAndField(u),m=getVariableAndField(f),g=[];if(p&&m){const y=d.find(gn=>gn.keyName===p.keyName),b=d.find(gn=>gn.keyName===m.keyName);if(y&&b){const gn=v(y.id),x=v(b.id),{classificationList:re=[]}=h,w=re.find(J=>J.show);if(w){let J="YYYY-MM";switch(w.name){case"the_year":J="YYYY";break;case"the_month":J="MM";break;case"the_day":J="DD";break;case"the_date":J=(w==null?void 0:w.dateFormat)||J;break}const Fn=getFormatStep(J);if(J){const Bn=vue.unref(gn[p.field]),j=vue.unref(x[m.field]);let vn=dayjs(Bn);const Pn=dayjs(j);for(g.push(Pn.format(J));vn.isBefore(Pn);)g.push(vn.format(J)),vn=vn.add(1,Fn)}}}}return g}function getVariableAndField(c){let u=null;if(c){const f=c.match(/\{(.+?)\}/g);if(f!=null&&f.length){let d=f[0].slice(1,-1).trim();const h=d.match(/\[(.+?)\]/g);let v="";h!=null&&h.length&&(d=d.replace(h[0],""),v=h[0].slice(1,-1).trim()),u={keyName:d,field:v}}}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 gn;const{pageMode:f,targetTemplate:d,getRecordValueByKeyName:h,setTemplateData:v}=u,p=c.linkPage||"",m=usePageUrl(f,p),g=c.href;let y=g||m;y=hn(y);const b=c.target;if(b)if(b==="event")window.parent.postMessage({type:"openPage",url:g},"*");else{const x={pageId:p,componentId:d};if((gn=c.transParams)!=null&&gn.length){y.includes("?")?y+="&":y+="?";const re=[];for(const w of c.transParams){const J=h(String(w.fieldName));re.push(`${w.keyName}=${J}`),x[w.keyName]=J}y+=re.join("&")}b==="template"?(Object.prototype.hasOwnProperty.call(window,"oldPageId")||(window.oldPageId=""),window.oldPageId&&(window.controller.abort(),window.controller=new AbortController),window.oldPageId=p,v(x)):(b==="blank"&&(y+=`${y.includes("?")?"&":"?"}drillFlag=1`),window.open(y,"_"+b))}}function getPageUrlParams(c){var f,d;let u={};if(c){const h=(((f=window.config)==null?void 0:f.urlParams)||{})[c]||{};for(const v in h)v.includes("{")||(u[v]=h[v])}else u=((d=window.config)==null?void 0:d.requestParams)||{};return u}function getNewValueFromUrlParams(c,u,f){let d="";const{urlParams:h}=window.config;if(c&&h[c])for(const v in h[c]){const p=h[c][v];if(v===`{${u}[${f}]}`&&p){d=p;break}}return d}function getFormatWh(c,u){return typeof c=="number"?c:typeof c=="string"?parseFloat(c):c.suffix==="px"?+c.value:c.suffix==="%"?parseFloat(u)*(c.value/100):0}const hasChinese=c=>/[\u4e00-\u9fa5]/.test(c),dragModalAction=(c,u)=>{const f=document.querySelector(u);if(!f)return;f.style.cursor="move",f.style.userSelect="none";const d=f.parentElement,h=200,v=d.getBoundingClientRect(),{width:p,left:m,top:g}=v,y=window.innerWidth,b=window.innerHeight,gn=c.clientX,x=c.clientY,re=parseFloat(d.style.left)||0,w=parseFloat(d.style.top)||0,J=-(m+p-h-re),Fn=y-m+re-h,Bn=-(g-w),j=b-g+w-h,vn=Rn=>{Rn.preventDefault();const zn=Rn.clientX-gn,Un=Rn.clientY-x;let qn=re+zn,Qn=w+Un;qn=Math.max(J,Math.min(qn,Fn)),Qn=Math.max(Bn,Math.min(Qn,j)),d.style.left=`${qn}px`,d.style.top=`${Qn}px`},Pn=()=>{f.style.cursor="",f.style.userSelect="",document.removeEventListener("mousemove",vn),document.removeEventListener("mouseup",Pn)};document.addEventListener("mousemove",vn),document.addEventListener("mouseup",Pn)},getPageId=()=>{var u;let c=((u=window==null?void 0:window.config)==null?void 0:u.pageId)||"";if(!c){const{pathname:f}=window==null?void 0:window.location;if(f){const d=f.split("/");d!=null&&d.length&&(c=d[d.length-1])}}return c},useRequestData=(c,u,f=()=>{})=>{var sr;const{requestUrl:d,requestMethod:h,requestHeaders:v,requestParams:p,requestInterval:m,isOpenRequestTimer:g,openCustomRequestData:y,projectRequestUrl:b="",getModel:gn,requestParamsMode:x,customRequestParams:re,dataSetParam:w,requestType:J,dataType:Fn,dataSetchecked:Bn}=c,{pageMode:j}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:vn}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:Pn,touchEventId:Rn}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:zn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ur=>{}})||{},{loadedData:Un}=vue.inject(LOADED_DATA,{loadedData:{}})||{},qn=vue.inject(COMMON_OPERATE,{operateAction:(ur,Hn)=>{}}),Qn=gn||zn;let Jn=hn(d),Zn=vue.unref(Pn)||b||"";(Fn==="request"&&Bn||J===1)&&(Zn="",Jn=((sr=window.config)==null?void 0:sr.dataSetUrl)||"/api/datav/dataset/data2");const Xn=async(ur={})=>{var ar;if(Fn!=="request"&&nr){clearInterval(nr);return}if(!Jn||!h||!v)return;let Hn={};for(const tr of p){const{key:pr,value:Yn}=tr;if((Yn==null?void 0:Yn.id)==="PARENT"&&(Yn!=null&&Yn.prop)){const lr=(((ar=window.config)==null?void 0:ar.record)||{})[Yn.prop];if(lr){const vr=lr[Yn.propKey||"value"];vr&&(["date","range"].some(yr=>yn(lr==null?void 0:lr.type,yr))?Hn[pr]=vue.unref(vr).format(lr.format||"YYYY-MM-DD"):Hn[pr]=vue.unref(vr))}continue}if(typeof Yn=="object"&&Yn!=null&&Yn.id){let ir={};const{id:lr,prop:vr,propKey:dr,operate:yr}=Yn;let fr=!1;try{JSON.parse(lr),fr=!0}catch{fr=!1}if(lr==="THIS"?ir=Qn(vue.unref(Rn))||{}:ir=Qn(lr)||{},(ir==null?void 0:ir.type)==="ecanSelect"&&vue.unref(Un)&&!vue.unref(Un)[lr]&&(ir==null?void 0:ir.dataType)!=="static")return;const mr=vue.unref(ir[vr]);let xr=null;if(["date","range"].some(br=>yn(ir==null?void 0:ir.type,br))){const{value:br,type:hr,mode:gr}=yr||{};if(br&&hr&&gr)switch(hr){case"add":xr=vue.unref(mr).add(br,gr);break;case"minus":xr=vue.unref(mr).subtract(br,gr);break}xr==null&&(xr=vue.unref(mr)),xr=xr&&(xr==null?void 0:xr.format((dr==null?void 0:dr.trim())||ir.format))||""}else if(Object.prototype.toString.call(mr)==="[object Object]")dr?xr=mr[dr]:xr=vr?mr[vr]:mr;else if(yn(ir==null?void 0:ir.type,"select")&&vue.unref(mr)&&vr&&Array.isArray(vue.unref(mr)))xr=vue.unref(mr).map(br=>Object.prototype.hasOwnProperty.call(br,vr)?br[vr]:br);else if(fr){const br=JSON.parse(lr);console.log(br,"urlvalue"),xr=br.value}else xr=mr;Hn[pr]=xr}else typeof Yn=="object"&&!Yn.id&&J===1?(console.log(Yn.propKey,"value.propKey"),Hn[pr]=Yn.propKey):typeof Yn=="string"&&(Hn[pr]=hn(Yn))}if(J===1){console.log(Hn,"_params");const tr=Object.entries(Hn);let pr=w;if(!w.param&&Array.isArray(w)){const Yn={};for(const ir of w)Yn[ir.key]=ir.value;pr=Yn}pr.param=pr.param.map((Yn,ir)=>({...Yn,paramKey:tr[ir][0],defaultValue:tr[ir][1]||""})),Hn=pr}if(x==="2"&&re!=="{}"){const tr=JSON.parse(re);Kn(tr),tr&&(Hn=tr)}function Kn(tr){const pr={...Hn,...getPageUrlParams(vn)};if(Array.isArray(tr))tr.forEach((Yn,ir)=>{if(typeof Yn=="string"){const lr=Yn.match(/\${(.+?)\}/g);if(lr!=null&&lr.length){const vr=lr[0].slice(2,-1);vr&&pr[vr]?tr[ir]=pr[vr]:tr[ir]=""}}else Kn(Yn)});else if(Object.prototype.toString.call(tr)==="[object Object]")for(const Yn in tr)if(typeof tr[Yn]=="string"){const ir=tr[Yn].match(/\${(.+?)\}/g);if(ir!=null&&ir.length){const lr=ir[0].slice(2,-1);lr&&pr[lr]?tr[Yn]=pr[lr]:tr[Yn]=""}}else Kn(tr[Yn])}const Vn=getPageUrlParams(vn);for(const tr in Vn)Vn[tr]&&(Vn[tr]=decodeURIComponent(Vn[tr]));Hn={...Vn,...ur,...Hn};let Gn="";const er=Object.keys(Hn),Wn=er.length-1,or=er.length;er.forEach((tr,pr)=>{let Yn=Hn[tr];Object.prototype.toString.call(Yn)==="[object Object]"&&(Yn=JSON.stringify(Yn)),pr===0?or!==1?Gn+=`?${tr}=${Yn}&`:Gn+=`?${tr}=${Yn}`:pr===Wn?Gn+=`${tr}=${Yn}`:Gn+=`${tr}=${Yn}&`}),Jn.includes("?")&&(Gn=Gn.replace("?","&"));function cr(tr){var pr;if(J===1)return{Authentication:(pr=window==null?void 0:window.config)==null?void 0:pr.indicatorToken};if(typeof tr=="string"){const Yn=JSON.parse(tr),ir=getPageUrlParams(vn);if(Object.prototype.toString.call(Yn)==="[object Object]"){for(const lr in Yn)if(typeof Yn[lr]=="string"){const vr=Yn[lr].match(/\${(.+?)\}/g);if(vr!=null&&vr.length){const dr=vr[0].slice(2,-1);dr&&ir[dr]?Yn[lr]=ir[dr]:Yn[lr]=""}}}return Yn}else return tr}try{const tr=["get","head"].includes(h),pr={};let Yn=tr?Jn+Gn:Jn;Hn.dataSqlId&&!Yn.includes("dataSqlId")&&(Yn+=`${Yn.includes("?")?"&":"?"}dataSqlId=${Hn.dataSqlId}`),Object.prototype.hasOwnProperty.call(Hn,"signal")?pr.signal=Hn.signal:window.controller&&(pr.signal=window.controller.signal);const ir=await request({baseURL:Zn,url:Yn,method:h,headers:v?cr(v):{},data:tr?{}:Hn,...pr});return f(ir),qn.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(ir==null?void 0:ir.data)||{}}),ir}catch(tr){console.error(tr)}},nr=vue.unref(j)!=="design"&&g&&(y||y===void 0)&&setInterval(Xn,m*1e3);return vue.onUnmounted(()=>{clearInterval(nr)}),Xn},useImagePath=(c,u=!1)=>{var d;if(!c)return c;let f="";return c!=null&&c.includes("://")?f=c:f=((d=window==null?void 0:window.config)==null?void 0:d.uploadPath)+c,u&&(f=`url(${f})`),f},usePageUrl=(c,u)=>{const f=`${BASE_URL}/preview?pageId=${u}`,d=`${BASE_URL}/${u}`;return c==="preview"?f:d},useIndicatorData=(c={},u=()=>{})=>{var b;const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:d}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:h}=vue.inject(LOADED_DATA,{setLoadedData:(gn,x)=>{}}),{getAllGlobalModel:v}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),{pageId:p}=vue.inject("templateOperate",{pageId:""})||{},m=vue.inject(COMMON_OPERATE,{operateAction:(gn,x)=>{}});c.dataType==="indicator"&&d();const g=async(gn={})=>{var vn,Pn,Rn,zn,Un;const x=v();h(c.id,!1);const re=Dn({...c,globalModel:x},gn),{url:w,...J}=re||{},{pathname:Fn,search:Bn}=window==null?void 0:window.location;let j=p||((vn=window==null?void 0:window.config)==null?void 0:vn.pageId);if(!j&&Fn){const qn=Fn.split("/");qn!=null&&qn.length&&(j=qn[qn.length-1])}if(w&&J){let qn,Qn;if(c.type==="ecanIndexPanel"&&(qn=c.theFlag),["/diagram/formData","/diagram"].includes(w)){Qn={};const Zn=Bn.slice(1,Bn.length).split("&");for(const Xn of Zn)if(Xn){const nr=Xn.split("=");if(nr[0])if(nr[0]==="userInfo")try{Qn.token=(Rn=(Pn=JSON.parse(decodeURIComponent(nr[1])))==null?void 0:Pn.baseInfo)==null?void 0:Rn.hrpToken}catch(sr){console.log(sr)}else Qn[nr[0]]=nr[1]}}try{const Jn=await request({url:`${INDICATOR_URL}${w}`,method:"post",headers:{Authentication:(zn=window==null?void 0:window.config)==null?void 0:zn.indicatorToken,operateContext:CONTEXT},data:{...J,pageId:j,theFlag:qn,extParam:Qn},signal:((Un=window.controller)==null?void 0:Un.signal)||""});return gn!=null&&gn.isTimer&&u(Jn),m.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(Jn==null?void 0:Jn.data)||{}}),Jn}catch(Jn){console.error(Jn)}}},y=vue.unref(f)!=="design"&&((b=c==null?void 0:c.graphicConfig)==null?void 0:b.pageMode)!=="design"&&c.isOpenRequestTimer&&c.requestInterval&&setInterval(()=>{g({isTimer:!0})},c.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(y)}),g},useHrefParamsToGlobalVariables=()=>{const u=window.location.search.slice(1).split("&"),f=u.length,d={};for(let h=0;h<f;h++){const v=u[h];if(v==null||v==="")continue;const p=v.split("=");if(Array.isArray(p)){const m=p[0];m.includes("{")||(d[m]=p[1])}}window.config.requestParams={...window.config.requestParams,...d},window.config={...window.config,...d}},_sfc_main$B=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"container"},portId:{type:String,default:"norPageConfig"}},setup(c){const{width:u,height:f,isCompatible:d}=vue.inject(GLOBAL_CONFIG,{width:null,height:null,isCompatible:null}),h=vue.inject("setPageHeight",Rn=>{}),v=vue.inject("isMobile",!1),p=vue.computed(()=>{const Rn={};return(!d.value||!v)&&(Rn.width=u.value,Rn.height=f.value),{...Rn,backgroundColor:c.pageId?"transparent":c.backgroundColor,backgroundImage:useImagePath(c.backgroundImage,!0),backgroundSize:c.backgroundSize}}),m=vue.ref(0),g=vue.ref(0),y=vue.ref(0),b=vue.ref(0),gn=vue.ref(!1),x=vue.ref();let re;const w=()=>new Promise(Rn=>{vue.nextTick(()=>{u.value&&f.value?(m.value=parseFloat(u.value),g.value=parseFloat(f.value)):(m.value=x.value.clientWidth,g.value=x.value.clientHeight),(!y.value||!b.value)&&(y.value=window.screen.width,b.value=window.screen.height),Rn()})}),J=()=>{m.value&&g.value?(x.value.style.width=`${m.value}px`,x.value.style.height=`${g.value}px`):(x.value.style.width=`${y.value}px`,x.value.style.height=`${b.value}px`)};vue.watch([u,f],async()=>{c.pageId||(await w(),J(),Bn(),window.addEventListener("resize",j),vn()),gn.value=!0},{immediate:!0});const Fn=vue.ref({});vue.provide("scaleValue",Fn);const Bn=()=>{if(d.value&&v){x.value.style.width="100%",x.value.style.height="auto",h("auto");return}const Rn=document.body.clientWidth,zn=document.body.clientHeight,Un=m.value||y.value,qn=g.value||b.value,Qn=Rn/Un;let Jn=zn/qn;(m.value!==1920||g.value!==1080)&&(Jn=g.value/m.value*Rn/qn),Fn.value={widthScale:Qn,heightScale:Jn},x.value&&(x.value.style.transform=`scale(${Qn}, ${Jn})`),h(Fn.value)},j=lodashEs.debounce(async()=>{await w(),Bn()},100),vn=()=>{const Rn=window.MutationObserver;re=new Rn(j),re.observe(x.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},Pn=()=>{re&&(re.disconnect(),re.takeRecords(),re=null)};return vue.onMounted(()=>{gn.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",j),Pn()}),{style:p,container:x,ready:gn}}}),PageConfig_vue_vue_type_style_index_0_scoped_44a453d9_lang="",_hoisted_1$p=["id"],_hoisted_2$c=["id"];function _sfc_render$G(c,u,f,d,h,v){return vue.openBlock(),vue.createElementBlock("div",{class:"page-config-container",id:c.customId,ref:"container"},[c.ready||c.pageId?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"page-config",id:c.portId,style:vue.normalizeStyle(c.style)},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_2$c)):vue.createCommentVNode("",!0)],8,_hoisted_1$p)}const PageConfig=_export_sfc$1(_sfc_main$B,[["render",_sfc_render$G],["__scopeId","data-v-44a453d9"]]),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:[],isCompatible:!0,variableList:[],drillingMode:"pivotTable",pivotTableFontSize:"16px"},providerConfigComponentProps=transformToComponentProps(providerConfig),_sfc_main$A=vue.defineComponent({name:"IndicatorDetailModal",components:{BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,ZoomInOutlined:ZoomInOutlined$1,ZoomOutOutlined:ZoomOutOutlined$1,RedoOutlined:RedoOutlined$1},props:{theme:{type:String,default:"light"}},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref([]),h=vue.ref(!1),v=vue.ref(),p=vue.ref(!1),m=vue.ref(1),g=vue.inject("isMobile",!1),y=vue.computed(()=>c.theme),b=vue.computed(()=>m.value!==1?{transform:`scale(${m.value})`,transformOrigin:"left top"}:{}),gn=async({data:zn,indicatorUrl:Un,indicatorToken:qn,context:Qn,pageId:Jn})=>{var sr,ur;h.value=!0,f.value=!0;let Zn=[];const{graphicConfig:Xn,theFlag:nr}=vue.unref(zn)||{};if(Xn){const{leftAxisList:Hn=[],rightAxisList:Kn=[],indicators:Vn=[]}=Xn,Gn=Hn.concat(Kn).concat(Vn);Gn!=null&&Gn.length&&(Zn=Gn.map(er=>({calcType:er.calcType||"COLUMN",columnName:er.name,hrpIndexCode:er.indexCode,hrpIndexCodeNum:er.indexCodeNum,label:er.label,show:er.show,formula:er.formula})))}if(Zn!=null&&Zn.length)try{const Hn=await request({url:`${vue.unref(Un)}/diagram/obtainIndicatorInfo`,method:"post",headers:{Authentication:qn,operateContext:Qn},data:{source:"INDICATOR_LIB",pageId:Jn,indicatorList:Zn,theFlag:nr}}),Kn=((sr=Hn==null?void 0:Hn.data)==null?void 0:sr.data)||[];(ur=Kn[0])!=null&&ur.remark?(v.value=Kn[0].remark,d.value=[]):(v.value=null,d.value=Kn)}catch{}finally{h.value=!1}vue.nextTick(()=>{w(!0),J(!0)})},x=()=>document.querySelector("#ProviderConfig > #container")||document.body,re=vue.computed(()=>{let zn="detail-modal";return(p.value||vue.unref(g))&&(zn+=" full",vue.unref(g)&&(zn+=" mobile")),vue.unref(y)==="darkBlue"&&(zn+=" darkBlue"),zn}),w=zn=>{const Un=document.querySelector(".detail-modal .ant-modal-header");Un&&(zn?Un.addEventListener("dblclick",Bn):Un.removeEventListener("dblclick",Bn))},J=zn=>{const Un=document.querySelector(".detail-modal .ant-modal-header");if(Un)if(zn)Un.addEventListener("mousedown",Fn);else{const qn=Un.parentElement;qn&&(qn.style.left="",qn.style.top=""),Un.removeEventListener("mousedown",Fn)}};function Fn(zn){dragModalAction(zn,".detail-modal .ant-modal-header")}const Bn=()=>{p.value=!p.value,vue.nextTick(()=>{p.value?J(!1):J(!0)})},j=()=>{vue.unref(g)||(p.value=!1),w(!1),J(!1)},vn=()=>{m.value+=.5},Pn=()=>{vue.unref(m)>1&&(m.value-=.5)},Rn=()=>{m.value=1};return vue.watch(m,zn=>{localStorage.setItem("indDetailZoom",String(zn))}),vue.watch(f,zn=>{zn?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"}),vue.onMounted(()=>{var Un,qn;const zn=localStorage.getItem("indDetailZoom");if(zn&&(m.value=+zn),vue.unref(g)){const Qn=document.querySelector("#ProviderConfig > #container");p.value=!0,(Un=Qn==null?void 0:Qn.style)==null||Un.setProperty("--window-screen-width",document.body.clientWidth+"px"),(qn=Qn==null?void 0:Qn.style)==null||qn.setProperty("--window-screen-height",document.body.clientHeight+"px")}}),u({showModal:gn}),{visible:f,dataList:d,isLoading:h,hasOwn:mn,remarkData:v,wrapClassName:re,isIndFullScreen:p,infoStyle:b,indDetailZoom:m,isMobile:g,getContainer:x,toggleFullScreen:Bn,onDetailCancel:j,handleZoomIn:vn,handleZoomOut:Pn,handleResetZoom:Rn}}}),IndicatorDetailModal_vue_vue_type_style_index_0_scoped_321c1810_lang="",IndicatorDetailModal_vue_vue_type_style_index_1_lang="",_withScopeId$7=c=>(vue.pushScopeId("data-v-321c1810"),c=c(),vue.popScopeId(),c),_hoisted_1$o=_withScopeId$7(()=>vue.createElementVNode("div",{class:"modal-title"},"指标详情",-1)),_hoisted_2$b={class:"zoom-btn"},_hoisted_3$6={key:0,class:"spin-container"},_hoisted_4$5=["innerHTML"],_hoisted_5$4={class:"index-name"},_hoisted_6$4={key:0,class:"card-row"},_hoisted_7$4=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"计量单位:",-1)),_hoisted_8$4={class:"content"},_hoisted_9$3={key:1,class:"card-row"},_hoisted_10$3=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"指标定义:",-1)),_hoisted_11$3={class:"content"},_hoisted_12$3={key:2,class:"card-row"},_hoisted_13$3=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"计算方法:",-1)),_hoisted_14$3={class:"content"},_hoisted_15$2={key:3,class:"card-row"},_hoisted_16$1=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"指标说明:",-1)),_hoisted_17$1={class:"content"};function _sfc_render$F(c,u,f,d,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("redo-outlined"),g=vue.resolveComponent("zoom-out-outlined"),y=vue.resolveComponent("zoom-in-outlined"),b=vue.resolveComponent("switcher-outlined"),gn=vue.resolveComponent("border-outlined"),x=vue.resolveComponent("a-spin"),re=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(re,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=w=>c.visible=w),width:"55%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:c.isIndFullScreen?"":"70vh",height:c.isIndFullScreen?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":c.wrapClassName,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[_hoisted_1$o]),closeIcon:vue.withCtx(()=>[vue.createVNode(p,{class:vue.normalizeClass(["close-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$b,[c.indDetailZoom>1?(vue.openBlock(),vue.createBlock(m,{key:0,class:"modal-icon",title:"还原",onClick:c.handleResetZoom},null,8,["onClick"])):vue.createCommentVNode("",!0),c.indDetailZoom>1?(vue.openBlock(),vue.createBlock(g,{key:1,class:"modal-icon",title:"缩小内容",onClick:c.handleZoomOut},null,8,["onClick"])):vue.createCommentVNode("",!0),vue.createVNode(y,{class:"modal-icon",title:"放大内容",onClick:vue.withModifiers(c.handleZoomIn,["stop","prevent"])},null,8,["onClick"]),!c.isMobile&&c.isIndFullScreen?(vue.openBlock(),vue.createBlock(b,{key:2,class:vue.normalizeClass(["modal-icon",c.theme]),title:"取消全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"])):c.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(gn,{key:3,class:vue.normalizeClass(["modal-icon",c.theme]),title:"全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"]))]),c.isLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$6,[vue.createVNode(x,{size:"large"})])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"info-container",style:vue.normalizeStyle(c.infoStyle)},[c.remarkData?(vue.openBlock(),vue.createElementBlock("div",{key:0,innerHTML:c.remarkData},null,8,_hoisted_4$5)):c.dataList.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:1},vue.renderList(c.dataList,(w,J)=>(vue.openBlock(),vue.createElementBlock("div",{class:"detail-wrap",key:J},[vue.createElementVNode("div",_hoisted_5$4,vue.toDisplayString(w.indexName||"--"),1),c.hasOwn(w,"theUnit")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$4,[_hoisted_7$4,vue.createElementVNode("div",_hoisted_8$4,vue.toDisplayString(w.theUnit||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(w,"meaning")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$3,[_hoisted_10$3,vue.createElementVNode("div",_hoisted_11$3,vue.toDisplayString(w.meaning||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(w,"theFormula")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12$3,[_hoisted_13$3,vue.createElementVNode("div",_hoisted_14$3,vue.toDisplayString(w.theFormula||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(w,"theExplain")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$2,[_hoisted_16$1,vue.createElementVNode("div",_hoisted_17$1,vue.toDisplayString(w.theExplain||"--"),1)])):vue.createCommentVNode("",!0)]))),128)):vue.createCommentVNode("",!0)],4))]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name","onCancel"])}const IndicatorDetailModal=_export_sfc$1(_sfc_main$A,[["render",_sfc_render$F],["__scopeId","data-v-321c1810"]]),lineProps={...props$1,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",defaultRangeValue:!1,startValue:"",endValue:"",isForbidClick:!1},lineComponentProps=transformToComponentProps(lineProps),lineEvents=["click","refreshData","resetRecord"],useDownloadFile=async c=>{var g;const u=await request.post(c,{},{responseType:"blob"}),{data:f,headers:d}=u,h=d["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),v=new Blob([f]),p=document.createElement("a"),m=window.URL.createObjectURL(v);p.href=m,p.download=decodeURI(h),p.style.display="none",document.body.appendChild(p),p.click(),(g=p.parentNode)==null||g.removeChild(p),window.URL.revokeObjectURL(m)},modalProps={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default",closeBtnColor:"#333",isShowCloseBtn:!0,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)",allComponentList:[],requestList:[],parentIframeId:"",banScale:!1},modalComponentProps=transformToComponentProps(modalProps),modalEvents=["showModal","hideModal"],containerType=["ecanBorder","ecanTabs","ecanCirculate"];function handleScrollCombinations(c){const{containerMap:u={},sourceList:f=[],pageConfig:d={}}=c,h=lodashEs.cloneDeep(c.componentList),v=h.filter(p=>p.type==="ecanTabs"&&p.isAutoScroll);if(v!=null&&v.length)for(const p of v){const m=u[p.id],g=[];if((!mn(p,"componentList")||!(p!=null&&p.componentList))&&(p.componentList=[]),m){let y=0;for(const b in m){const gn=m[b],x=[];if(gn!=null&&gn.length)for(const re of gn){let w=h.find(J=>J.id===re);w||(w=f.find(J=>J.id===re)),w&&(x.push(w),containerType.includes(w.type)&&x.push(...getComponentByContainer(w.id,u,f)))}for(const re of x)mn(re,"scale")?parseFloat(b)>0&&(re.left=parseFloat(re.left)+y+"px"):(re.left=parseFloat(re.sourceLeft||re.left)-parseFloat(p.sourceLeft||p.left)+y+"px",re.top=parseFloat(re.sourceTop||re.top)-parseFloat(p.sourceTop||p.top)+"px"),g.includes(re.id)||g.push(re.id);p.componentList.push(...x),y=getMaxLeftInComponents(x,d)}}for(const y of g){const b=h.findIndex(gn=>gn.id===y);b!==-1&&h.splice(b,1)}}return h}function compatibleMobileList(c){var m,g;const u=document.body.clientWidth,{combinationMap:f={},sourceList:d=[],pageConfig:h={}}=c,v=c.containerMap,p=lodashEs.cloneDeep([...c.componentList,...getTabsSomeComponentList(v,d)]);if(handleContainerMap(v,p),(m=Object.keys(v))!=null&&m.length||(g=Object.keys(f))!=null&&g.length){for(const w in v){const J=p.find(Fn=>Fn.id===w);if(J){if(J!=null&&J.isFlowGrid){J.sourceLeft=J.left,J.sourceTop=J.top;continue}mn(J,"parentId")||(J.parentId="",J.sourceLeft=J.left,J.sourceTop=J.top);for(const Fn in v[w])if(v[w][Fn])for(const Bn of v[w][Fn]){const j=p.find(vn=>vn.id===Bn);if(j&&(j.parentId=w,j.sourceLeft=j.left,j.sourceTop=j.top,j.left=parseFloat(j.left)-parseFloat(J.sourceLeft||J.left)+"px",j.top=parseFloat(j.top)-parseFloat(J.sourceTop||J.top)+"px",j.type==="ecanIndexPanel")){const{componentIds:vn}=j;for(const Pn of vn){const Rn=p.find(zn=>zn.id===Pn);Rn&&(Rn.left=parseFloat(Rn.left)-parseFloat(j.sourceLeft)+"px",Rn.top=parseFloat(Rn.top)-parseFloat(j.sourceTop)+"px")}}}}}const y=Array.from(new Set(p.filter(w=>(!mn(w,"parentId")||w.parentId==="")&&w.combinationId).map(w=>w.combinationId))),b=getCombinationList(y,{...c,componentList:p,pageConfig:h});b!=null&&b.length&&p.unshift(...b);const gn=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap","ecanTable"],x=p.filter(w=>gn.includes(w.type)&&!mn(w,"parentId")),re=[];for(const w of x)if(w){const J=w.id+"_vir";if(re.push({id:J,keyName:w.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:u,height:getFormatWh(w.height,h==null?void 0:h.height),left:w.left,top:w.top,sourceLeft:w.left,sourceTop:w.top}),w.parentId=J,w.sourceLeft=w.left,w.sourceTop=w.top,w.left=10,w.top=0,w.width=u-20+"px",w.type==="ecanTable"){const{columns:Fn=[]}=w;w.scrollX="max-content";for(const Bn of Fn)Bn.width.includes("%")&&(Bn.width=parseFloat(Bn.width)/100*u+"px")}}re!=null&&re.length&&p.unshift(...re);for(const w of p){if(w.parentId===""&&containerType.includes(w.type))w.sourceWidth=getFormatWh(w.width,h==null?void 0:h.width),w.height=(u/(w.sourceWidth/getFormatWh(w.height,h==null?void 0:h.height))).toFixed(2)+"px",w.width="100%",w.position="relative",w.top="auto",w.left="auto";else{const J=p.find(Fn=>Fn.id===w.parentId);if((J==null?void 0:J.parentId)===""){const Fn=J.sourceWidth||getFormatWh(J.width,h==null?void 0:h.width),Bn=u/Fn;w.scale=Bn,w.top=parseFloat(w.top)*Bn-getFormatWh(w.height,h==null?void 0:h.height)*(1-Bn)/2+"px",w.left=parseFloat(w.left)*Bn-getFormatWh(w.width,h==null?void 0:h.width)*(1-Bn)/2+"px"}}w.type==="ecanModal"&&(w.parentId="",w.fullModal=!0)}return sortList(p)}return p}function handleContainerMap(c,u){const f=lodashEs.cloneDeep(c),d=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(d!=null&&d.length)for(const h of d){const v=f[h.id];for(const p in v)for(const m of v[p]){const g=u.find(y=>y.id===m);if(g&&containerType.includes(g.type)){const y=getComponentByContainer(g.id,f,u);for(const b of y)c[h.id][p].push(b.id),containerType.includes(b.type)&&delete c[b.id];delete c[g.id]}}}}function getTabsSomeComponentList(c,u){const f=[],d=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(d!=null&&d.length)for(const h of d){const v=c[h.id];for(const p in v)if(parseFloat(p)>0)for(const m of v[p]){const g=u.find(y=>y.id===m);g&&(f.push(g),containerType.includes(g.type)&&f.push(...getComponentByContainer(g.id,c,u)))}}return f}function getComponentByContainer(c,u,f){const d=[],h=u[c];for(const v in h)for(const p of h[v]){const m=f.find(g=>g.id===p);m&&(d.push(m),containerType.includes(m.type)&&d.push(...getComponentByContainer(m.id,u,f)))}return d}function getCombinationList(c,u,f){const{combinationMap:d={},componentList:h=[],pageConfig:v={}}=u,p=[];for(const m of c){const g=d[m];if(g!=null&&g.length){const y=h.filter(b=>g.includes(b.id));if(y!=null&&y.length){const b=getCombinateRect(y,v);if(b){p.push({...b,id:m,keyName:m,parentId:f||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:b.left,sourceTop:b.top});for(const gn of y)gn&&(gn.parentId=m,gn.sourceLeft=gn.left,gn.sourceTop=gn.top,gn.left=parseFloat(gn.left)-parseFloat(b.left)+"px",gn.top=parseFloat(gn.top)-parseFloat(b.top)+"px")}}}}return p}function sortList(c){const f=c.filter(d=>d.parentId===""||(d==null?void 0:d.isFlowGrid));if(f!=null&&f.length){const d=lodashEs.cloneDeep(f).map(h=>({...h,sourceTop:parseFloat(h.sourceTop),sourceLeft:parseFloat(h.sourceLeft)}));for(let h=0;h<d.length-1;h++)for(let v=0;v<d.length-h-1;v++){let p=!1;if((d[v].sourceTop-d[v+1].sourceTop>40||Math.abs(d[v+1].sourceTop-d[v].sourceTop)<=40&&d[v].sourceLeft>d[v+1].sourceLeft)&&(p=!0),p){const m=d[v];d[v]=d[v+1],d[v+1]=m}}for(const h of d){const v=c.findIndex(p=>p.id===h.id);v!==-1&&c.splice(v,1)}return[...d,...c]}return c}function getCombinateRect(c,u){const f=c.sort((p,m)=>parseFloat(p.top)-parseFloat(m.top))[0],d=c.sort((p,m)=>parseFloat(p.left)-parseFloat(m.left))[0],h=c.map(p=>({...p,computedTop:parseFloat(p.top)+getFormatWh(p.height,u==null?void 0:u.height)})).sort((p,m)=>m.computedTop-p.computedTop)[0],v=c.map(p=>({...p,computedLeft:parseFloat(p.left)+getFormatWh(p.width,u==null?void 0:u.width)})).sort((p,m)=>m.computedLeft-p.computedLeft)[0];return f&&d&&h&&v?{left:d.left,top:f.top,width:v.computedLeft-parseFloat(d.left)+"px",height:h.computedTop-parseFloat(f.top)+"px"}:null}function getMaxLeftInComponents(c,u){const f=c.map(d=>parseFloat(d.left)+getFormatWh(d.width,u==null?void 0:u.width)).sort((d,h)=>h-d)[0];return f||0}function moveToComponentList(c,u,f){const d=c[f],h=[];if(d)for(const v in d){const p=d[v];for(const m of p){const g=u.find(y=>y.id===m);g&&(h.push(g),containerType.includes(g.type)&&h.push(...getComponentByContainer(g.id,c,u)))}}return h}const _sfc_main$z=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(c,{emit:u}){u("ready",c.component.id)}});function _sfc_render$E(c,u,f,d,h,v){return c.component.parentId?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#container_"+c.component.parentId},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.mergeProps({style:{scale:c.component.scale}},c.component),null,16,["style"]))],8,["to"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.normalizeProps(vue.mergeProps({key:1},c.component)),null,16))}const Render=_export_sfc$1(_sfc_main$z,[["render",_sfc_render$E]]),EcanRender=withInstall$1(Render),_sfc_main$y=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(c,{emit:u}){const f=vue.ref([]),d=vue.inject("isMobile",!1),{width:h,height:v}=vue.inject(GLOBAL_CONFIG,{width:null,height:null}),p=vue.computed(()=>c.fullModal),m=vue.inject("getContainerMap",()=>{}),g=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:y,interactiveData:b,setRequestData:gn}=vue.inject(GLOBAL_MODEL,{setRequestData:(Cr,br)=>{},clearInteractiveData:()=>{},interactiveData:null}),x=()=>document.getElementById("ProviderConfig")||document.body,re=vue.computed(()=>{const Cr=c.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[Cr]}}),w=c.fullModal?"1920px":c.width,J=c.fullModal?"1080px":c.height,Fn=c.originalWidth,Bn=c.originalHeight,j=vue.ref("80%"),vn=vue.ref(0),Pn=vue.ref(),Rn=vue.ref(0),zn=vue.ref({}),Un=usePickComponentStyle(c),qn=vue.ref({}),Qn=vue.ref(!1),Jn=vue.ref();let Zn;const Xn=()=>{Pn.value=parseFloat(w)/parseFloat(Fn);const Cr=parseFloat(J)/parseFloat(Bn),br=document.body.offsetWidth,hr=document.body.offsetHeight;if(vn.value=br*vue.unref(Pn),Rn.value=hr*Cr,j.value=`${vue.unref(Pn)*100}%`,zn.value={width:`${vue.unref(vn)}px`,height:`${vue.unref(Rn)}px`,border:`${c.borderWidth} solid ${c.borderColor}`,borderRadius:c.borderRadius+"px",boxShadow:c.boxShadow},qn.value={...vue.unref(Un),backgroundImage:useImagePath(c.backgroundImage,!0)},d)qn.value={...qn.value,width:"100%",height:"100%"};else{const gr={...qn.value,width:w,height:J};c.banScale&&vue.unref(p)?(gr.width="100%",gr.height="100%"):gr.transform=`scale(${vue.unref(vn)/parseFloat(w)},${vue.unref(Rn)/parseFloat(J)})`,qn.value=gr}},nr=lodashEs.debounce(()=>{Xn()},100),sr=()=>{const Cr=window.MutationObserver;Zn=new Cr(nr),Zn.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},ur=()=>{Zn&&(Zn.disconnect(),Zn.takeRecords(),Zn=null)},Hn=vue.ref(!1),{touchRequest:Kn}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),Vn=vue.ref(""),Gn=()=>{var hr;const{title:Cr}=c,br=(hr=vue.unref(b))==null?void 0:hr.RECORD;return br?hn(Cr,{textData:br},{useNewline:!1,useSpace:!1}):Cr},er=useEmitEvent(c),Wn=Cr=>{const{changeIframeStyle:br}=window.parent;br&&typeof br=="function"&&br({iframeId:c.parentIframeId||"",action:Cr})},or=()=>{vue.unref(p)&&Wn("open"),d&&(document.documentElement.style.overflow="hidden"),Vn.value=Gn(),Hn.value=!0},cr=er("hideModal",()=>{vue.unref(p)&&Wn("close"),u("close"),d&&(document.documentElement.style.overflow="hidden auto",f.value=[]),Hn.value=!1}),ar=()=>{cr()},tr=()=>{cr(),y()},{setModalModel:pr,pushUseModalIds:Yn,popUseModalIds:ir}=vue.inject(MODAL_MODEL,{pushUseModalIds:Cr=>{},popUseModalIds:()=>{},setModalModel:(Cr,br)=>{}}),lr=vue.computed(()=>{let Cr=c.componentList;const br=lodashEs.cloneDeep(c.componentList),hr=m(),gr=g(),Er={containerMap:hr,combinationMap:gr};d&&(Cr=compatibleMobileList({...Er,componentList:br,sourceList:c.allComponentList,pageConfig:{width:vue.unref(h),height:vue.unref(v)}})),Cr=handleScrollCombinations({...Er,componentList:Cr,sourceList:c.allComponentList,pageConfig:{width:vue.unref(h),height:vue.unref(v)}});const wr=[];for(const _r of Cr)if(_r.type==="ecanCirculate"){const Rr=moveToComponentList(hr,vue.unref(br),_r.id);_r.componentList=Rr,wr.push(...Rr.map(Mr=>Mr.id))}if(wr!=null&&wr.length)for(const _r of wr){const Rr=Cr.findIndex(Mr=>Mr.id===_r);Rr!==-1&&Cr.splice(Rr,1)}return Cr}),vr=()=>{const Cr=c.id;let br=[];const hr=c.componentList;Array.isArray(hr)&&(br=hr.map(gr=>gr.id),pr(Cr,[...new Set(br)]))},dr=vue.ref(!1),yr={};for(const Cr of c.requestList)yr[Cr.requestName]=useRequestData(Cr);vue.watch(()=>Hn.value,async Cr=>{if(Cr)Qn.value=!1,Yn(c.id),vr(),await vue.nextTick(()=>{Xn(),window.addEventListener("resize",nr),sr(),Qn.value=!0}),Kn();else{if(gn)for(const br in yr)gn(br,{});ir(),window.removeEventListener("resize",nr),ur()}});const fr=vue.computed(()=>vue.unref(Pn)>=1),mr=vue.computed(()=>{let Cr="ecan-modal";return vue.unref(fr)&&(Cr+=" ecan-full-width-modal"),vue.unref(p)&&(Cr+=" ecan-full-modal"),Cr});return useOnEvent(c,{showModal:or,hideModal:cr}),{modalRef:Jn,containStyle:zn,contentStyle:qn,getContainer:x,modalStyle:re,modalWith:j,isFullModal:p,style:Un,visible:Hn,showModal:or,onOk:ar,onCancel:tr,isFullWidth:fr,wrapClassName:mr,ready:Qn,usedComponentList:lr,isMobile:d,readyIds:f,hasOwn:mn,onComponentReady:Cr=>{f.value.push(Cr)},formatTitle:Vn,requestLoaded:dr}}}),Modal_vue_vue_type_style_index_0_scoped_e90afcde_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$D(c,u,f,d,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("render"),g=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(g,{getContainer:c.getContainer,wrapClassName:c.wrapClassName,centered:"",visible:c.visible,footer:null,width:c.isFullModal||c.isFullWidth?"100%":c.modalWith,destroyOnClose:c.destroyOnClose,style:vue.normalizeStyle(c.modalStyle),closable:!1,onOk:c.onOk,onCancel:c.onCancel,ref:"modalRef",id:"container_"+c.id},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"contain",ref:"containRef",style:vue.normalizeStyle(c.containStyle)},[c.ready?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"content",style:vue.normalizeStyle(c.contentStyle)},[vue.createElementVNode("div",{class:"header-bar",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,padding:"20px 30px",height:c.isMobile?"62px":""})},[c.formatTitle?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ant-modal-title",style:vue.normalizeStyle({fontSize:c.titleFontSize,color:c.titleColor})},vue.toDisplayString(c.formatTitle),5)):vue.createCommentVNode("",!0),c.isShowCloseBtn?(vue.openBlock(),vue.createBlock(p,{key:1,class:"close-icon",style:vue.normalizeStyle({color:c.closeBtnColor}),onClick:c.onCancel},null,8,["style","onClick"])):vue.createCommentVNode("",!0)],4),c.usedComponentList.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(c.isMobile?"mobile-wrap":"")},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.usedComponentList,(y,b)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.id+b},[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$y,[["render",_sfc_render$D],["__scopeId","data-v-e90afcde"]]),EcanModal=withInstall$1(Modal);core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent]);const _sfc_main$x=vue.defineComponent({name:"EcanLine",props:{...lineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:d,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.inject("showIndDetail",er=>{}),p=vue.inject("usedComponentList",[]),m=vue.ref(),g=vue.ref(!1),y=usePickComponentStyle(c),b=vue.ref([]),gn=vue.ref([]),x=vue.ref(),re=vue.computed(()=>g.value?ZOOM_FONT_SIZE:12),w=vue.ref({});let J;const Fn=vue.ref([]),Bn=vue.computed(()=>{const er=c.xAxisLabelFormatter,Wn=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,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:g.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var or;g.value=!0,(or=x.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(){v(c)}}}},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:re.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:or=>{var pr;const cr=or.length;let ar="",tr=c.tooltipFormatter;J=(pr=or[0])==null?void 0:pr.data,tr===""&&(tr="{marker} {a} {c}");for(let Yn=0;Yn<cr;Yn++){const{marker:ir,seriesName:lr,name:vr,value:dr,data:yr}=or[Yn]||{};if(Yn===0){let fr=vr;typeof vr=="string"&&vr[0]==="0"&&!isNaN(+vr)&&(fr=(+vr).toString()),ar+=`${In(er,fr)}<br/>`}ar+=hn(tr,{textData:{marker:ir,name:vr,value:dr,a:lr,b:vr,c:dr||0,...yr}},{useNewline:!0,useSpace:!0}),ar+="<br/>"}return ar},position:c.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:c.isBoundaryGap,data:vue.unref(gn).map(or=>{let cr={};return or&&typeof or=="object"?cr={...or}:cr={value:or},cr}),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(or){return typeof or=="string"&&or[0]==="0"&&!isNaN(+or)&&(or=(+or).toString()),In(er,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:"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(or){return In(Wn,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},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(g.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:g.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(Fn).map(or=>({name:or.name,icon:c.legendType})),formatter:or=>getLegendFormat(c.legendFormatter,{name:or})},series:vue.unref(b)}}),j=()=>{g.value=!1},{getGlobalModel:vn,setGlobalModel:Pn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:er=>{},setGlobalModel:(er,Wn)=>{}}),Rn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),zn=(er=[],Wn=!1)=>{var pr;let or;if(c.dataFieldConfigType==="key"){const Yn=Wn?c.keyTypeDataFieldNames:null;or=Mn(er,Yn)}else if(c.dataFieldConfigType==="value"){const Yn=Wn?c.valueTypeDataFieldNames:null;or=En(er,Yn)}gn.value=or.dimensions,Fn.value=or.dataset;const cr=or.dataset,ar=[],tr=cr.length;for(let Yn=0;Yn<tr;Yn++){const ir={};c.shadowColor&&(ir.shadowColor=c.shadowColor,ir.shadowBlur=c.shadowBlur,ir.shadowOffsetY=c.shadowOffsetY,ir.shadowOffsetX=c.shadowOffsetX),ar.push({type:"line",...cr[Yn],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[Yn]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[Yn],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...ir},...vue.unref(Rn)})}b.value=ar,(pr=or.dataset)!=null&&pr.length?f.value=!1:f.value=!0},Un=(er=[],Wn,or=!1)=>{var ir,lr,vr;const ar=Mn(er,or?Wn:null,!0);if(c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(p),getGlobalModel:vn},ar),(ir=ar.dataset)!=null&&ir.length){for(const dr of ar.dataset)if((lr=dr.data)!=null&&lr.length)for(const yr of dr.data)(yr.value===null||yr.value===void 0)&&(yr.value=0)}gn.value=ar.dimensions,Fn.value=ar.dataset;const tr=ar.dataset,pr=[],Yn=tr.length;for(let dr=0;dr<Yn;dr++){const yr={};c.shadowColor&&(yr.shadowColor=c.shadowColor,yr.shadowBlur=c.shadowBlur,yr.shadowOffsetY=c.shadowOffsetY,yr.shadowOffsetX=c.shadowOffsetX),pr.push({type:"line",...tr[dr],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[dr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[dr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...yr},...vue.unref(Rn)})}b.value=pr,(vr=ar.dataset)!=null&&vr.length?f.value=!1: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],([er])=>{(c.dataType==="static"||vue.unref(d)==="design")&&zn(er)},{immediate:!0,deep:!0});const qn=vue.ref(!1),Qn=useRequestData(c),Jn=async()=>{var er,Wn;if(c.dataType==="request")try{qn.value=!0;const or=await Qn();zn((Wn=(er=or==null?void 0:or.data)==null?void 0:er.data)==null?void 0:Wn.rows,!0)}catch(or){console.error(or)}finally{qn.value=!1}},Zn=useEmitEvent(c);Pn(c.id,{type:c.type,RECORD:""});const Xn=Zn("click",er=>{const Wn=vn(c.id);Pn(c.id,{...Wn,type:c.type,RECORD:c.tooltipShow?J:er.data})}),nr=er=>{m.value.chart.containPixel("grid",[er.offsetX,er.offsetY])&&Xn()};c.isForbidClick||(c.tooltipShow?w.value["zr:click"]=nr:w.value.click=Xn);const sr=er=>{var pr;const{columns:Wn=[],rows:or=[]}=((pr=er==null?void 0:er.data)==null?void 0:pr.data)??{};let cr;Wn.length>0&&(cr={name:Wn[0],types:Wn.slice(1).map(Yn=>({label:Yn,value:Yn}))});const{leftAxisList:ar=[]}=c.graphicConfig,tr=ar.filter(Yn=>Yn.show).map(Yn=>Yn.label);for(const Yn of or)if(Yn)for(const ir in Yn)typeof Yn[ir]=="string"&&tr.includes(ir)&&!isNaN(parseFloat(Yn[ir]))&&(Yn[ir]=parseFloat(Yn[ir]));Un(or,cr,!0)},ur=useIndicatorData(c,er=>{c.isViewRedrawing&&m.value.clear(),sr(er)}),Hn=async()=>{try{qn.value=!0;const er=await ur();sr(er)}catch(er){console.error(er)}finally{qn.value=!1}},Kn=async()=>{switch(c.dataType){case"indicator":await Hn();break;case"request":await Jn();break}};useOnEvent(c,{refreshData:Kn,resetRecord:()=>{const er=c.id,Wn=vn(er);Pn(er,{...Wn,RECORD:""})},click:Xn});const{setRequest:Gn}=vue.inject(REQUEST_MODEL,{setRequest:er=>{}});return typeof Gn=="function"&&Gn({id:c.id,requestFn:Kn,sortNum:c.requestSort}),u({refreshData:Kn}),{option:Bn,style:y,click:Xn,loading:qn,onClose:j,ecanModal:x,eventObj:w,echartRef:m,emptyData:f}}}),Line_vue_vue_type_style_index_0_lang="",Line_vue_vue_type_style_index_1_scoped_4caf1012_lang="";function _sfc_render$C(c,u,f,d,h,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[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(p,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(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Line=_export_sfc$1(_sfc_main$x,[["render",_sfc_render$C],["__scopeId","data-v-4caf1012"]]),EcanLine=withInstall$1(Line);let random=c=>crypto.getRandomValues(new Uint8Array(c)),customRandom=(c,u,f)=>{let d=(2<<Math.log(c.length-1)/Math.LN2)-1,h=-~(1.6*d*u/c.length);return(v=u)=>{let p="";for(;;){let m=f(h),g=h;for(;g--;)if(p+=c[m[g]&d]||"",p.length===v)return p}}},customAlphabet=(c,u=21)=>customRandom(c,u,random),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$w=vue.defineComponent({name:"TrendModal",components:{EcanLine},props:{theme:{type:String,default:"light"}},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref(),h=vue.ref(),v=vue.inject("isMobile",!1),p=async({data:y,pageConfig:b,unitText:gn})=>{if(y){const{graphicConfig:x}=y,re=nanoid(6),w={source:"INDICATOR_LIB",dataSourceId:"",idxLibMode:"",classificationList:[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期",name:"the_date",label:"日期",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dateFormat:"YYYY-MM",dataSetParams:{}}],leftAxisList:(x==null?void 0:x.indicators)||[],controlList:(x==null?void 0:x.controlList)||[],variableList:(x==null?void 0:x.variableList)||[],variableConditions:(x==null?void 0:x.variableConditions)||[]};d.value={...lodashEs.cloneDeep(lineProps),id:re,keyName:`折线图_${re}`,position:"relative",top:0,left:0,width:vue.unref(v)?"100%":parseFloat(b.width)*.57+"px",height:vue.unref(v)?"100%":parseFloat(b.height)*.4+"px",dataType:"indicator",tooltipFormatter:"{marker} {a} {c}"+gn,xAxisLabelRotate:45,yAxisLabelFormatter:gn?`{value}${gn}`:"{value}",isForbidClick:!0,graphicConfig:w},f.value=!0,vue.nextTick(()=>{vue.unref(h).refreshData()})}},m=()=>document.querySelector("#ProviderConfig > #container")||document.body,g=vue.computed(()=>{let y="trend-modal";return vue.unref(v)&&(y+=" full"),c.theme==="darkBlue"&&(y+=" darkBlue"),y});return vue.watch(f,y=>{y?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"}),vue.onMounted(()=>{var y,b;if(vue.unref(v)){const gn=document.querySelector("#ProviderConfig > #container");(y=gn==null?void 0:gn.style)==null||y.setProperty("--window-screen-width",document.body.clientWidth+"px"),(b=gn==null?void 0:gn.style)==null||b.setProperty("--window-screen-height",document.body.clientHeight+"px")}}),u({showModal:p}),{visible:f,componentConfig:d,lineRef:h,wrapClassName:g,isMobile:v,getContainer:m}}}),TrendModal_vue_vue_type_style_index_0_scoped_b4c3b51c_lang="",TrendModal_vue_vue_type_style_index_1_lang="",_withScopeId$6=c=>(vue.pushScopeId("data-v-b4c3b51c"),c=c(),vue.popScopeId(),c),_hoisted_1$n=_withScopeId$6(()=>vue.createElementVNode("div",{class:"modal-title"},"趋势图",-1));function _sfc_render$B(c,u,f,d,h,v){const p=vue.resolveComponent("ecan-line"),m=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(m,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=g=>c.visible=g),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:c.isMobile?"":"60vh",height:c.isMobile?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":c.wrapClassName},{title:vue.withCtx(()=>[_hoisted_1$n]),default:vue.withCtx(()=>[c.componentConfig?(vue.openBlock(),vue.createBlock(p,vue.mergeProps({key:0},c.componentConfig,{ref:"lineRef"}),null,16)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name"])}const TrendModal=_export_sfc$1(_sfc_main$w,[["render",_sfc_render$B],["__scopeId","data-v-b4c3b51c"]]),pivotTableProps={...props$1,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"];var zhCn={exports:{}};(function(c,u){(function(f,d){c.exports=d(dayjs)})(commonjsGlobal,function(f){function d(p){return p&&typeof p=="object"&&"default"in p?p:{default:p}}var h=d(f),v={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(p,m){return m==="W"?p+"周":p+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(p,m){var g=100*p+m;return g<600?"凌晨":g<900?"早上":g<1100?"上午":g<1300?"中午":g<1800?"下午":"晚上"}};return h.default.locale(v,null,!0),v})})(zhCn);const LastDetail_vue_vue_type_style_index_0_scoped_fbdfb6a9_lang="",LastDetail_vue_vue_type_style_index_1_lang="";dayjs.locale("zh-cn");const _sfc_main$v=vue.defineComponent({name:"LastDetail",components:{ATable:antDesignVue.Table},props:{theme:{type:String,default:"light"},theDateInfo:{type:Object,default:()=>({})}},setup(c,{emit:u,expose:f}){const d=vue.ref(!1),h=vue.ref(!1),v=vue.ref([]),p=vue.ref([]),m=vue.ref({current:1,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showLessItems:!0,showTotal:J=>`共 ${J} 条数据`}),g=vue.inject("isMobile",!1),y=vue.computed(()=>INDICATOR_URL),b=()=>document.querySelector("#ProviderConfig > #container")||document.body;async function gn(J){var ur,Hn;h.value=!0,d.value=!0;const Fn=((ur=window==null?void 0:window.config)==null?void 0:ur.indicatorToken)||"",{record:Bn,dimOpts:j,column:vn,formatParams:Pn,cpntProps:Rn={}}=J,{indicatorList:zn=[]}=Pn,Un=zn.find(Kn=>Kn.label===vn.dataIndex),qn={};for(const Kn in Bn){const Vn=j.find(Gn=>Gn.name===Kn);Vn&&(qn[Vn.typeGuid]=Bn[Kn])}const{startTime:Qn,endTime:Jn,rangeFormat:Zn}=c.theDateInfo;Qn&&Jn&&(qn.startTime=dayjs(Qn).format(Zn),qn.endTime=dayjs(Jn).format(Zn));const Xn=await request.post(`${vue.unref(y)}/diagram/obtainDataSetData`,{pageId:getPageId(),indexCode:(Un==null?void 0:Un.hrpIndexCode)||"",indexName:Un.label,theFlag:Rn.theFlag,param:qn},{headers:{Authentication:Fn,operateContext:CONTEXT}}),{columns:nr=[],data:sr=[]}=((Hn=Xn==null?void 0:Xn.data)==null?void 0:Hn.data)||{};v.value=nr.filter(Kn=>Kn).map(Kn=>({title:Kn,dataIndex:Kn,width:"120px"})),p.value=sr.map(Kn=>({...Kn,uid:nanoid(6)})),h.value=!1}const x=J=>{vue.unref(m).current=J.current},re=vue.computed(()=>{let J="last-detail-modal";return vue.unref(g)&&(J+=" full"),c.theme==="darkBlue"&&(J+=" darkBlue"),J}),w=vue.computed(()=>vue.unref(g)?{padding:"10px 0"}:{maxHeight:"50vh",overflow:"auto"});return f({showModal:gn}),{visible:d,loading:h,pagination:m,columns:v,dataSource:p,wrapClassName:re,detailBodyStyle:w,isMobile:g,handleTableChange:x,getContainer:b}}}),_hoisted_1$m={key:0,class:"spin-container"};function _sfc_render$A(c,u,f,d,h,v){const p=vue.resolveComponent("a-spin"),m=vue.resolveComponent("a-table"),g=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(g,{wrapClassName:c.wrapClassName,visible:c.visible,"onUpdate:visible":u[0]||(u[0]=y=>c.visible=y),width:"40%",title:"指标明细",destroyOnClose:!0,footer:null,bodyStyle:c.detailBodyStyle,getContainer:c.getContainer},{default:vue.withCtx(()=>[c.loading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$m,[vue.createVNode(p,{size:"large"})])):vue.createCommentVNode("",!0),c.loading?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(m,{key:1,"row-key":y=>y.uid,columns:c.columns,"data-source":c.dataSource,pagination:c.pagination,scroll:{x:"max-content",y:c.isMobile?"70vh":""},onChange:c.handleTableChange},null,8,["row-key","columns","data-source","pagination","scroll","onChange"]))]),_:1},8,["wrapClassName","visible","bodyStyle","getContainer"])}const LastDetail=_export_sfc$1(_sfc_main$v,[["render",_sfc_render$A],["__scopeId","data-v-fbdfb6a9"]]),_sfc_main$u=vue.defineComponent({name:"DrillModal",components:{ATable:antDesignVue.Table,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,LastDetail},props:{theme:{type:String,default:"light"},drillingMode:{type:String,default:"default"},pageMode:{type:String,default:"normal"},scaleValue:{type:Object,default:()=>({})},pivotTableFontSize:{type:Number,default:16},width:{type:String,default:""}},setup(c,{expose:u,emit:f}){const m={IN:"属于",NOT_IN:"不属于",LIKE:"包含",NOT_LIKE:"不包含","LIKE%":"开头是","%LIKE":"结尾是",EQUAL:"等于",LESS:"小于",LESS_EQUAL:"小于等于",GREATER:"大于",GREATER_EQUAL:"大于等于",NOT_EQUAL:"不等于"},g={borderColor:"#666E8D",headerBgColor:"#06347C",headerColor:"#DEE5EF",bodyBgColor:"#112861",bodyColor:"#B2CCE7",indicatorsHeaderBgColor:"#184273",indicatorsHeaderColor:"#FFFFFF",indicatorsBodyBgColor:"#184273",indicatorsBodyColor:"#FFFFFF",aggregateBgColor:"#0F4F9B",aggregateColor:"#FFFCFC",sortNotActiveColor:"#B0B0B0",sortActiveColor:"#00CCFF",dropDownMenuBgColor:"#08154F",dropDownMenuColor:"#B2C3DD",dropDownMenuHightLightColor:"#2E68CF"},y=vue.ref(!1),b=vue.ref(),gn=vue.ref(),x=vue.ref(),re=vue.ref(!1),w=vue.ref({}),J=vue.ref([]),Fn=vue.ref([]),Bn=vue.ref(!1),j=vue.ref({dateFormat:"YYYY-MM-DD"}),vn=vue.reactive({keyName:"",visible:!1,dataSource:[],columns:[],title:"",pagination:{current:1,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showLessItems:!0,showTotal:lr=>`共 ${lr} 条数据`}}),Pn=vue.ref({}),Rn=vue.inject("isMobile",!1),zn=vue.inject("usedComponentList",[]),Un=vue.inject("componentList",[]),{getAllGlobalModel:qn}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),Qn=vue.computed(()=>INDICATOR_URL);vue.watch(()=>vn.visible,lr=>{lr?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"});const Jn=vue.computed(()=>({width:vue.unref(w).width,height:vue.unref(w).height})),Zn=vue.computed(()=>vue.unref(Rn)?{padding:"10px 0"}:{}),Xn=vue.computed(()=>{let lr="ind-detail-modal";return(re.value||vue.unref(Rn))&&(lr+=" full"),c.theme==="darkBlue"&&(lr+=" darkBlue"),lr}),nr=(lr,vr)=>{const{leftAxisList:dr=[],rightAxisList:yr=[],indicators:fr=[],classificationList:mr=[],rowHeaderList:xr=[],dimensionList:Cr=[],seriesList:br=[],queryColumns:hr=[],indexLibColumns:gr=[]}=vr.graphicConfig,wr=dr.concat(yr).concat(fr).concat(mr).concat(xr).concat(Cr).concat(br).concat(hr).concat(gr).filter(Mr=>Mr.conditions),_r=ur(wr,"conditions",!0),Rr=ur(lr.sqlConditions,"sqlConditions",!1);J.value=_r.concat(Rr).filter(Mr=>Mr.label).map(Mr=>{let Dr=Mr.fieldValue;if(Dr){const Br=Dr.split(",");(Br==null?void 0:Br.length)>3&&(Dr=Br.slice(0,3).join(",")+"等")}else Dr='""';return`${Mr.label} ${m[Mr.rule]} ${Dr}`})||[]},sr=()=>document.querySelector("#ProviderConfig > #container")||document.body;function ur(lr,vr,dr){const yr=[];for(const fr of lr)fr[vr]?yr.push(...ur(fr[vr],vr,dr)):fr.filter?yr.push({...fr.filter,label:fr.label}):(!dr||fr.dataType!=="component"&&!(fr.fieldValue.startsWith("${")&&fr.fieldValue.endsWith("}")))&&yr.push(fr);return yr}const Hn=async({cpntProps:lr,pageId:vr,formatParams:dr,classifications:yr,indicatorToken:fr})=>{var mr,xr,Cr;return await request({url:`${vue.unref(Qn)}/diagram/obtainDrillAbleDimensionOptions`,method:"post",headers:{Authentication:fr,operateContext:CONTEXT},data:{source:((mr=lr==null?void 0:lr.graphicConfig)==null?void 0:mr.source)||"INDICATOR_LIB",pageId:vr,indicatorList:(dr==null?void 0:dr.indicatorList)||[],classifications:yr,dataSourceId:((xr=lr==null?void 0:lr.graphicConfig)==null?void 0:xr.dataSourceId)||""},signal:((Cr=window.controller)==null?void 0:Cr.signal)||""})},Kn=lr=>{let vr="",dr="";const{componentConfig:yr}=lr;for(const mr in yr)if(yr[mr].key==="currentValue"){dr=mr;break}const fr=vue.unref(Un).find(mr=>mr.id===dr);return fr!=null&&fr.unitText&&(vr=fr.unitText),vr};function Vn(lr){const vr=[];for(const dr of lr)dr.sqlConditions?vr.push(...Vn(dr.sqlConditions)):dr.fieldName==="the_date"&&vr.push(dr);return vr}const Gn=lr=>{var mr;const{sqlConditions:vr=[],queryColumns:dr=[]}=lr||{},yr=Vn(vr),fr=dr.find(xr=>xr.typeGuid==="the_date");if(fr&&(j.value={dateFormat:fr.dateFormat||"YYYY-MM-DD"}),yr!=null&&yr.length)for(const xr of yr)["startTime","endTime"].includes(xr.prop)&&(vue.unref(j)[xr.prop]=xr.fieldValue||"",(mr=vue.unref(j))!=null&&mr.rangeFormat||(vue.unref(j).rangeFormat=xr.dateFormat||"YYYY-MM-DD"))},er=async lr=>{var Er,wr,_r,Rr,Mr;if(c.drillingMode==="default")return;let vr=lodashEs.cloneDeep(lr).props;if(vr.parentId){const Dr=vue.unref(zn).find(Br=>Br.id===vr.parentId);if((Dr==null?void 0:Dr.dataType)==="indicator")vr=lodashEs.cloneDeep(Dr);else return}vn.keyName=vr==null?void 0:vr.keyName;const dr=((Er=window==null?void 0:window.config)==null?void 0:Er.indicatorToken)||"",yr=getPageId(),fr=(vr==null?void 0:vr.graphicConfig)||{},{leftAxisList:mr=[],rightAxisList:xr=[],indicators:Cr=[]}=fr,br=mr.concat(xr).concat(Cr);if(!(br!=null&&br.length))return;const hr=br.filter(Dr=>Dr.show).map(Dr=>Dr.label);hr!=null&&hr.length&&(vn.title=`下钻:${hr.join("、")}`);const gr=Dn({...vr,globalModel:qn()});if(c.drillingMode==="normalTable"||vue.unref(Rn)){vn.pagination.current=1;let Dr=(gr==null?void 0:gr.classification)||(gr==null?void 0:gr.classifications)||[];Array.isArray(Dr)||(Dr=[Dr]);try{Bn.value=!0,vn.visible=!0;const Br=await Hn({cpntProps:vr,pageId:yr,formatParams:gr,classifications:Dr,indicatorToken:dr}),Vr=((wr=Br==null?void 0:Br.data)==null?void 0:wr.data)||[];let Gr=[],Hr=[];const{usedDimensions:Ur=[],params:Qr={}}=lr;if(Ur!=null&&Ur.length){for(const zr of Vr)if(!Ur.find(Xr=>Xr.label===zr.name)){Hr.push(zr);break}gr.sqlConditions=lodashEs.cloneDeep(Qr.sqlConditions);const{sqlConditions:Fr=[]}=gr,{record:Nr={}}=lr;Ur.forEach((zr,Xr)=>{if(mn(Nr,zr.label)){const ri=Vr.find(ui=>ui.name===zr.label),ii={fieldName:zr.label,fieldValue:Nr[zr.label],globalCondition:!0,hrpIndexCode:null,hrpIndexCodeNum:null,label:zr.label,rule:"EQUAL",typeGuid:zr.typeGuid,valueType:(ri==null?void 0:ri.genericType)||"TEXT"};Xr!==Ur.length-1&&(ii.join="&&"),Xr===0&&(Fr!=null&&Fr.length)&&(Fr[Fr.length-1].join="&&"),Fr.push(ii)}})}else Gr=Dr.map(Fr=>({...Fr,calcType:"COLUMN"})),Hr=Vr.slice(0,2).sort((Fr,Nr)=>Fr.typeGuid-Nr.typeGuid);nr(gr,lodashEs.cloneDeep(lr.props));for(const Fr of Hr)Gr.push({calcType:"COLUMN",columnName:Fr.name,label:Fr.name,show:!0,typeGuid:Fr.typeGuid});gr.queryColumns=Gr,gr.layer="1",gr.plugin="1",delete gr.classification,delete gr.classifications;const{url:Yr,...ni}=gr||{};Gn(gr);const Ar=await request({url:`${vue.unref(Qn)}${Yr}`,method:"post",headers:{Authentication:dr,operateContext:CONTEXT},data:{...ni,pageId:yr}}),{columns:Ir=[],rows:Or=[]}=((_r=Ar==null?void 0:Ar.data)==null?void 0:_r.data)||{};if(yn(vr.type,"indexPanel")){const Fr=fr.indicators.find(zr=>zr.show),Nr=Kn(vr);Nr&&Fr&&(Pn.value={[Fr.label]:Nr})}vn.columns=Ir.filter(Fr=>!!Fr).map(Fr=>{let Nr=Fr;const zr=Vr.find(Xr=>Xr.name===Fr);return zr&&(Nr=zr.title||zr.label),{title:Nr,dataIndex:Fr,width:"120px",customCell:(Xr,ri,ii)=>({[vue.unref(Rn)?"onClick":"onDblclick"]:()=>{Vr.find(hi=>ii.dataIndex===hi.name)?(!(Ur!=null&&Ur.length)||Vr.length-1>Ur.length)&&(y.value=!0,vue.nextTick(()=>{vue.unref(b).showModal({...lr,record:Xr,usedDimensions:[...Ur,...Gr],params:gr})})):vue.unref(gn).showModal({record:Xr,dimOpts:Vr,column:ii,formatParams:gr,cpntProps:vr})}})}}),vn.dataSource=(Array.isArray(Or)?Or:[Or]).map(Fr=>({...Fr,uuid:nanoid(6)})),vn.pagination.total=(Or==null?void 0:Or.length)||0,Bn.value=!1}catch(Br){console.error(Br)}}else if(c.drillingMode==="pivotTable"){const Dr=await Hn({cpntProps:vr,pageId:yr,formatParams:gr,classifications:[],indicatorToken:dr});Fn.value=((Rr=Dr==null?void 0:Dr.data)==null?void 0:Rr.data)||[];const Br=nanoid(6);fr.queryColumnList||(fr.queryColumnList=[]),fr!=null&&fr.classificationList&&(fr.queryColumnList=fr.classificationList,delete fr.classificationList),fr!=null&&fr.seriesList&&(fr.queryColumnList=fr.queryColumnList.concat(fr.seriesList),delete fr.seriesList),fr.indicators=lodashEs.cloneDeep(br||[]),delete fr.leftAxisList,delete fr.rightAxisList;const Vr={};if(yn(vr.type,"indexPanel")){const Hr=fr.indicators.find(Yr=>Yr.show),Ur=vue.unref(Fn).slice(0,2).sort((Yr,ni)=>Yr.typeGuid-ni.typeGuid).map(Yr=>({...Yr,show:!0,edit:!1,dataTo:"0",width:Yr.name==="the_date"?15:0,dataSetParams:{}}));Ur!=null&&Ur.length&&(fr.queryColumnList=Ur);const Qr=Kn(vr);if(Qr&&Hr){const{label:Yr}=Hr;Vr.defaultConfig={indexFormatConfig:{[Yr]:{fieldName:Yr,indicatorKey:Yr,position:"right",unit:Qr}}}}}vr!=null&&vr.theFlag&&(Vr.theFlag=vr.theFlag),(Mr=fr.queryColumnList)!=null&&Mr.length||(fr.queryColumnList=[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期(内置)",name:"the_date",label:"日期(内置)",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dataSetParams:{}}]);const Gr={...lodashEs.cloneDeep(pivotTableProps),id:Br,keyName:`透视表_${Br}`,position:"relative",top:0,left:0,width:parseFloat(c.width)*.57+"px",height:window.screen.height*.6+"px",pageId:yr,indicatorToken:dr,context:CONTEXT,globalModel:qn(),graphicConfig:fr,pageConfig:c,...Vr};c.theme==="darkBlue"&&(Gr.styleConfig=g),w.value=Gr,vn.visible=!0,vue.nextTick(()=>{vue.unref(x).refreshData()})}vue.nextTick(()=>{or(!0),cr(!0)})},Wn=lr=>{vn.pagination.current=lr.current},or=lr=>{const vr=document.querySelector(".ind-detail-modal .ant-modal-header");vr&&(lr?vr.addEventListener("dblclick",tr):vr.removeEventListener("dblclick",tr))},cr=lr=>{const vr=document.querySelector(".ind-detail-modal .ant-modal-header");if(vr)if(lr)vr.addEventListener("mousedown",ar);else{const dr=vr.parentElement;dr&&(dr.style.left="",dr.style.top=""),vr.removeEventListener("mousedown",ar)}};function ar(lr){dragModalAction(lr,".ind-detail-modal .ant-modal-header")}const tr=()=>{re.value=!re.value,vue.nextTick(()=>{re.value?(vue.unref(w).width=parseFloat(c.width)*.97+"px",vue.unref(w).height=window.screen.height*.9+"px",cr(!1)):(vue.unref(w).width=parseFloat(c.width)*.57+"px",vue.unref(w).height=window.screen.height*.6+"px",cr(!0))})},pr=()=>{re.value=!1,or(!1),cr(!1),f("close")},Yn=({type:lr,data:vr})=>{if(lr==="11"&&vr){const{indicatorList:dr=[],queryColumns:yr=[]}=vr,mr=dr.concat(yr).filter(br=>br.conditions||br.filter),xr=ur(mr,"conditions",!0),Cr=ur(vr.sqlConditions,"sqlConditions",!1);J.value=xr.concat(Cr).filter(br=>br.label).map(br=>{const hr=vue.unref(Fn).find(Er=>Er.label===br.label);let gr=br.fieldValue;if(gr&&typeof gr=="string"){const Er=gr.split(",");(Er==null?void 0:Er.length)>3&&(gr=Er.slice(0,3).join(",")+"等")}else gr||(gr='""');return`${(hr==null?void 0:hr.title)||br.label} ${m[br.rule]} ${gr}`})||[]}},ir=()=>{y.value=!1};return u({showModal:er}),{indDetailInfo:vn,pivotTableConfig:w,pivotTableStyle:Jn,detailBodyStyle:Zn,wrapClassName:Xn,isIndFullScreen:re,isMobile:Rn,conditionInfo:J,indicatorUrl:Qn,allDimensions:Fn,detailLoading:Bn,pivotTableRef:x,lastDetailRef:gn,subDrillModalRef:b,theDateInfo:j,isShowSubDrillModal:y,normalTableUnits:Pn,getContainer:sr,toggleFullScreen:tr,onDetailCancel:pr,onPivotTableChange:Yn,handleTableChange:Wn,onCloseModal:ir}}}),DrillModal_vue_vue_type_style_index_0_scoped_6a62aa56_lang="",DrillModal_vue_vue_type_style_index_1_lang="",_hoisted_1$l=["title"],_hoisted_2$a={key:0,class:"spin-container"},_hoisted_3$5=["title"],_hoisted_4$4=["title"];function _sfc_render$z(c,u,f,d,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("switcher-outlined"),g=vue.resolveComponent("border-outlined"),y=vue.resolveComponent("a-spin"),b=vue.resolveComponent("a-table"),gn=vue.resolveComponent("pivot-table"),x=vue.resolveComponent("a-modal"),re=vue.resolveComponent("last-detail"),w=vue.resolveComponent("drill-modal",!0);return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(x,{visible:c.indDetailInfo.visible,"onUpdate:visible":u[1]||(u[1]=J=>c.indDetailInfo.visible=J),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,"wrap-class-name":c.wrapClassName,bodyStyle:c.detailBodyStyle,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[vue.createElementVNode("div",{class:"detail-modal-title",title:c.conditionInfo.join("、")},vue.toDisplayString(c.indDetailInfo.title)+" "+vue.toDisplayString(c.conditionInfo.join("、")),9,_hoisted_1$l)]),closeIcon:vue.withCtx(()=>[vue.createVNode(p,{class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[c.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"zoom-btn",onClick:u[0]||(u[0]=(...J)=>c.toggleFullScreen&&c.toggleFullScreen(...J))},[c.isIndFullScreen?(vue.openBlock(),vue.createBlock(m,{key:0,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])):(vue.openBlock(),vue.createBlock(g,{key:1,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"]))])),c.drillingMode==="normalTable"||c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.detailLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$a,[vue.createVNode(y,{size:"large"})])):(vue.openBlock(),vue.createBlock(b,{key:1,scroll:{x:"max-content",y:c.isIndFullScreen?"100vh":"70vh"},"row-key":J=>J.uuid,columns:c.indDetailInfo.columns,"data-source":c.indDetailInfo.dataSource,pagination:c.indDetailInfo.pagination,onChange:c.handleTableChange},{headerCell:vue.withCtx(({title:J})=>[vue.createElementVNode("div",{class:"detail-table-header-cell",title:J},vue.toDisplayString(J),9,_hoisted_3$5)]),bodyCell:vue.withCtx(({text:J,column:Fn})=>[vue.createElementVNode("div",{title:J},vue.toDisplayString(J)+vue.toDisplayString(c.normalTableUnits[Fn.title]),9,_hoisted_4$4)]),_:1},8,["scroll","row-key","columns","data-source","pagination","onChange"]))],64)):c.drillingMode==="pivotTable"?(vue.openBlock(),vue.createElementBlock("div",{key:2,style:vue.normalizeStyle({position:"relative",...c.pivotTableStyle})},[vue.createVNode(gn,vue.mergeProps({ref:"pivotTableRef"},c.pivotTableConfig,{pageMode:c.pageMode,theme:c.theme,fullMode:!1,allowDrill:!0,showFullScreen:!1,indicatorUrl:c.indicatorUrl,relateKeyName:c.indDetailInfo.keyName,allDimensions:c.allDimensions,scaleValue:c.scaleValue,defaultFontSize:c.pivotTableFontSize,isMobile:c.isMobile,enlargeContainer:"#norPageConfig",onTableChange:c.onPivotTableChange}),null,16,["pageMode","theme","indicatorUrl","relateKeyName","allDimensions","scaleValue","defaultFontSize","isMobile","onTableChange"])],4)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","wrap-class-name","bodyStyle","onCancel"]),vue.createVNode(re,{ref:"lastDetailRef",theme:c.theme,theDateInfo:c.theDateInfo},null,8,["theme","theDateInfo"]),c.isShowSubDrillModal?(vue.openBlock(),vue.createBlock(w,{key:0,ref:"subDrillModalRef",width:c.width,theme:c.theme,drillingMode:c.drillingMode,pageMode:c.pageMode,scaleValue:c.scaleValue,pivotTableFontSize:c.pivotTableFontSize,onClose:c.onCloseModal},null,8,["width","theme","drillingMode","pageMode","scaleValue","pivotTableFontSize","onClose"])):vue.createCommentVNode("",!0)],64)}const DrillModal=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$z],["__scopeId","data-v-6a62aa56"]]),_sfc_main$t=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,components:{IndicatorDetailModal,TrendModal,DrillModal},props:{...providerConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"ProviderConfig"},fixedHeight:{type:String,default:"0px"}},setup(c,{expose:u,emit:f}){c.pageId||useHrefParamsToGlobalVariables();const d=vue.ref(),h=vue.ref(),v=vue.ref(),p=vue.computed(()=>INDICATOR_URL),m=vue.computed(()=>hn(c.contextRequestUrl)),g=vue.computed(()=>c.pageMode),y=vue.computed(()=>c.theme),b=vue.computed(()=>c.width),gn=vue.computed(()=>c.height),x=vue.computed(()=>c.pageFontFamily),re=vue.computed(()=>c.fixedHeight?parseFloat(c.fixedHeight):0),w=vue.computed(()=>c.isCompatible),J=vue.computed(()=>c.variableList),Fn=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)),Bn=vue.computed(()=>parseFloat(c.pivotTableFontSize)),j=vue.ref(),vn=vue.ref({}),Pn=()=>{j.value.setAttribute("datav-theme",c.theme)},Rn=vue.ref({currentYmd:dayjs().format("YYYY-MM-DD"),currentYear:dayjs().format("YYYY"),currentMonth:dayjs().format("MM"),currentDay:dayjs().format("DD")}),zn=vue.computed(()=>{const Ar={};if(vue.unref(J))for(const Or of vue.unref(J))Ar[Or.label]=Or.value;return{$page:{...vue.unref(Rn),...Ar}}});vue.provide(GLOBAL_VARIABLE,{globalVariable:zn});const Un=vue.inject("usedComponentList",[]),qn=vue.inject("componentList",[]);vue.watch(zn,()=>{f("setGlobalVar",vue.unref(Rn))},{deep:!0,immediate:!0});const Qn=vue.computed(()=>{const Ar=[];for(const Ir of vue.unref(Un))Ir.type==="ecanModal"?Ar.push(...Ir.componentList):Ar.push(Ir);return Ar});vue.watch(()=>c.theme,()=>{Pn()}),vue.onMounted(()=>{Pn()});const Jn=vue.computed(()=>{const Ar=[],Ir=vue.unref(qn).filter(Or=>Or.type==="ecanModal");for(const Or of Ir)Or!=null&&Or.requestList&&Ar.push(...Or.requestList);return[...Ar,...c.requestList]}),Zn=Ar=>Object.prototype.toString.call(Ar)==="[object Object]",Xn=Ar=>{const Ir=Ar.split(".");let Or=vue.unref(zn);for(const Fr of Ir)if(Or&&Zn(Or))Or=Or[Fr];else{Or="";break}return Or},nr=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:m,pageMode:g,theme:y,touchEventId:nr,width:b,height:gn,fontFamily:x,requestList:Jn,isCompatible:w,fixedHeight:re,getGlobalVar:Xn});const sr=vue.ref({height:"100%",overflow:c.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",Ar=>{let Ir=0;Ar==="auto"?(Ir=Ar,vn.value={widthScale:1,heightScale:1}):(Ir=Ar.heightScale,vn.value=Ar),(!w.value||!Fn.value)&&(Ir=parseFloat(gn.value)*Ir+"px"),sr.value.height=Ir}),vue.provide("isMobile",Fn.value),vue.provide("getContainerMap",()=>c.containerMap),vue.provide("getCombinationMap",()=>c.combinationMap),vue.provide("templateOperate",{pageId:c.pageId,templateEmit:f,setTemplateData:Ar=>{var Ir;if(Ar!=null&&Ar.pageId){const{componentId:Or,...Fr}=Ar;(Ir=window.config)!=null&&Ir.urlParams||(window.config.urlParams={}),window.config.urlParams[Ar.pageId]=Fr,f("templateChange",Ar)}}});const ur=vue.ref(),Hn=new Map,Kn=()=>Hn,Vn=Ar=>{let Ir=Hn.get(Ar);if(!Ir){const Or=vue.unref(qn).find(Fr=>Fr.keyName===Ar);Or&&(Ir=Hn.get(Or.id))}return Ir},Gn=(Ar,Ir)=>{var Or;if(ur.value=Ir,Hn.set(Ar,Ir),!c.pageId){const Fr=vue.unref(Un).find(Nr=>Nr.id===Ar);Fr&&((Or=window.config)!=null&&Or.record||(window.config.record={}),window.config.record[Fr.keyName]=Ir)}},er=()=>{ur.value=null},Wn=Ar=>{let Ir=Ar;if(Ir){const Or=Ar.match(/\{(.+?)\}/g);if(Or!=null&&Or.length){let Fr=Or[0].slice(1,-1).trim();const Nr=Fr.match(/\[(.+?)\]/g);let zr="";Nr!=null&&Nr.length&&(Fr=Fr.replace(Nr[0],""),zr=Nr[0].slice(1,-1).trim());const Xr=vue.unref(Qn).find(ri=>ri.keyName===Fr);if(Xr){const ri=Vn(Xr.id),{type:ii,value:ui,RECORD:hi,recordData:li}=ri||{};yn(ii,MODEL_KEY_LIST)?Ir=hi[zr]:yn(ii,"select")?li[zr]?Ir=li[zr]:Ir=vue.unref(ui):yn(ii,["rangePicker","date"])?dayjs.isDayjs(vue.unref(ri[zr]))?Ir=vue.unref(ri[zr]).format(ri.format):Ir=vue.unref(ri[zr]):Ir=ui}else{const ri=window.config.requestParams||{},ii=window.location.search.slice(1).split("&"),ui={};for(const li of ii)if(li!=null&&li.includes("=")){const vi=li.split("=");ui[vi[0]]=vi[1]||""}Ir={...ui,...ri}[Fr]||""}}}return Ir},or=new Map,cr={},ar=async(Ar,Ir)=>{var Xr;const{requestName:Or}=Ar,Fr=await useRequestData({...Ar,projectRequestUrl:vue.unref(m),getModel:Vn})(),Nr=((Xr=Fr==null?void 0:Fr.data)==null?void 0:Xr.data)||{};Ar.requestKeyName&&(Rn.value[Ar.requestKeyName]=Nr);const zr=or.get(Or);if(zr!=null&&zr.length&&(!Ir||cr[Or])){for(const ri of zr)ri(Nr);Ir||or.delete(Or)}},tr=(Ar,Ir)=>{cr[Ar]&&(clearInterval(cr[Ar]),delete cr[Ar],or.delete(Ar));const Or=vue.unref(Qn).filter(Nr=>Nr.dataType==="request"&&!Nr.openCustomRequestData&&Nr.customRequestName===Ar),Fr=or.get(Ar)||[];if((Or==null?void 0:Or.length)>Fr.length&&(Fr.push(Ir),or.set(Ar,Fr),(Or==null?void 0:Or.length)===Fr.length)){const Nr=vue.unref(Jn).find(zr=>zr.requestName===Ar);Nr&&(Nr!=null&&Nr.isOpenRequestTimer&&(Nr!=null&&Nr.requestInterval)?(ar(Nr,!0),cr[Ar]=setInterval(()=>{ar(Nr,!0)},Nr.requestInterval*1e3)):ar(Nr))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:Vn,setGlobalModel:Gn,getAllGlobalModel:Kn,clearInteractiveData:er,getRecordValueByKeyName:Wn,hanldePageRequestData:tr,interactiveData:ur});const pr=vue.ref({}),Yn=(Ar,Ir)=>{pr.value[Ar]=Ir};vue.provide(LOADED_DATA,{loadedData:pr,setLoadedData:Yn});const ir=[],lr=()=>{ir.pop()},vr=Ar=>{ir.push(Ar)},dr=new Map,yr=Ar=>dr.get(Ar),fr=(Ar,Ir)=>{dr.set(Ar,Ir)};vue.provide(MODAL_MODEL,{popUseModalIds:lr,pushUseModalIds:vr,getModalModel:yr,setModalModel:fr});const mr=mitt(),xr=new Set,Cr=(Ar,Ir)=>{xr.add(Ar),mr.on(Ar,Or=>{const{eventName:Fr,params:Nr}=Or;return typeof Ir[Fr]=="function"&&Ir[Fr](Nr)}),vue.onBeforeUnmount(()=>{br(Ar)})},br=Ar=>{xr.delete(Ar),mr.off(Ar)},hr=(Ar,Ir,Or={})=>{if(Ar==="PAGE"){const Fr=ir.length;let Nr=[];if(Fr===0)Nr=[...xr];else{const zr=ir[Fr-1];Nr=[...yr(zr)]}Nr.forEach(zr=>{mr.emit(zr,{eventName:Ir,params:Or})})}else mr.emit(Ar,{eventName:Ir,params:Or})};vue.provide(EVENT_BUS,{onEvent:Cr,offEvent:br,emitEvent:hr});const gr=vue.ref(0),Er=()=>{gr.value=vue.unref(gr)+1};vue.provide(GLOBAL_TOKEN,{requestToken:Er});const wr=new Map,_r=new Map,Rr=({requestFn:Ar=()=>{},sortNum:Ir=0,id:Or=""})=>{if(wr.has(Ir)){const Fr=wr.get(Ir);Fr==null||Fr.push(Ar)}else wr.set(Ir,[Ar]);_r.set(Or,Ar)},Mr=Ar=>new Promise((Ir,Or)=>{const Fr=[];for(const Nr of Ar)Fr.push(new Promise(async zr=>{await Nr(),zr()}));Promise.all(Fr).then(Nr=>{Ir(Nr)}).catch(Nr=>{Or(Nr)})}),Dr=Ar=>new Promise(async(Ir,Or)=>{if(Ar){if(typeof Ar=="string"){const Fr=_r.get(Ar);if(typeof Fr=="function"){const Nr=request.interceptors.response.use(zr=>(Ir(zr),zr),zr=>(Or(zr),Promise.reject(zr)));Fr(),request.interceptors.response.eject(Nr)}}}else{const Fr=Array.from(wr);Fr.sort((zr,Xr)=>Xr[0]-zr[0]);const Nr=Fr.length;try{c.pageMode!=="design"&&vue.unref(gr)>0;for(let zr=0;zr<Nr;zr++){const Xr=Fr[zr][1];await Mr(Xr)}}catch(zr){console.error(zr)}finally{wr.clear(),Ir(null)}}});vue.provide(REQUEST_MODEL,{setRequest:Rr,touchRequest:Dr});const Br=()=>{mr.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:Br});const Vr=Ar=>{mr.on(REFRESH_PAGE,()=>Ar()),vue.onMounted(()=>{mr.off(REFRESH_PAGE)})},Gr=vue.ref({});vue.provide(All_COMPONENT_RES_DATA,{allComponentResData:Gr});const Hr=Ar=>{const{id:Ir,data:Or}=Ar;Or.success&&(Gr.value[Ir]=(Or==null?void 0:Or.data)||{})},Ur=(Ar,Ir)=>{switch(Ar){case"SHOW_INDICATOR_DETAIL_MODAL":vue.unref(d).showModal(Ir);break;case"SAVE_COMPONENT_RES_DATA":Hr(Ir);break}};vue.provide(COMMON_OPERATE,{operateAction:lodashEs.debounce((Ar,Ir)=>{Ur(Ar,Ir)},100)}),vue.watchEffect(()=>{var Ar;if((Ar=vue.unref(Un))!=null&&Ar.length&&vue.unref(g)!=="design"){const{jumpType:Ir,jumpTime:Or,jumpPage:Fr,jumpLink:Nr}=c;if(Or!=null&&Or.value){let zr=0;switch(Or==null?void 0:Or.suffix){case"hours":zr=Or.value*60*60*1e3;break;case"minute":zr=Or.value*60*1e3;break;case"seconds":zr=Or.value*1e3;break}setTimeout(()=>{let Xr="";Ir==="page"&&Fr?Xr=usePageUrl(vue.unref(g),Fr):Ir==="link"&&Nr&&(Xr=Nr),Xr=hn(Xr),window.open(Xr,"_self")},zr)}}});const Qr=Ar=>{var Ir;vue.unref(h).showModal({data:Ar,indicatorUrl:vue.unref(p),indicatorToken:((Ir=window==null?void 0:window.config)==null?void 0:Ir.indicatorToken)||"",context:CONTEXT,pageId:getPageId()})},Yr=Ar=>{vue.unref(v).showModal({data:Ar,pageConfig:c,unitText:ni(Ar)})},ni=Ar=>{let Ir="",Or="";const{componentConfig:Fr}=Ar;for(const zr in Fr)if(Fr[zr].key==="currentValue"){Or=zr;break}const Nr=vue.unref(qn).find(zr=>zr.id===Or);return Nr!=null&&Nr.unitText&&(Ir=Nr.unitText),Ir};return vue.provide("showIndDetail",Qr),vue.onBeforeUnmount(()=>{wr==null||wr.clear(),_r==null||_r.clear()}),u({touchRequest:Dr,getGlobalModel:Vn,onRefreshPage:Vr,emitEvent:hr,getRecordValueByKeyName:Wn,showIndDetail:Qr,showTrend:Yr,props:c,systemVariable:Rn}),{providerConfig:j,configStyle:sr,indicatorUrl:p,theme:y,drillModalRef:d,indDetailModalRef:h,trendModalRef:v,scaleValue:vn,defaultPivotTableFontSize:Bn,isMobile:Fn}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_e9e5325e_lang="",ProviderConfig_vue_vue_type_style_index_1_lang="",_hoisted_1$k=["id"];function _sfc_render$y(c,u,f,d,h,v){const p=vue.resolveComponent("drill-modal"),m=vue.resolveComponent("indicator-detail-modal"),g=vue.resolveComponent("trend-modal");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{class:"provider-config-container",id:c.customId,ref:"providerConfig",style:vue.normalizeStyle({...c.configStyle,fontFamily:c.pageFontFamily})},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_1$k),vue.createVNode(p,{ref:"drillModalRef",width:c.width,theme:c.theme,drillingMode:c.drillingMode,pageMode:c.pageMode,scaleValue:c.scaleValue,pivotTableFontSize:c.defaultPivotTableFontSize},null,8,["width","theme","drillingMode","pageMode","scaleValue","pivotTableFontSize"]),vue.createVNode(m,{ref:"indDetailModalRef",theme:c.theme},null,8,["theme"]),vue.createVNode(g,{ref:"trendModalRef",theme:c.theme},null,8,["theme"])],64)}const ProviderConfig=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$y],["__scopeId","data-v-e9e5325e"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props$1,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,parentId:""},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={"&":"&","<":"<",">":">",'"':""","'":"'"},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:(d,h)=>(h=h.source||h,h=h.replace(caret,"$1"),c=c.replace(d,h),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 d;try{d=decodeURIComponent(unescape$1(f)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(d.indexOf("javascript:")===0||d.indexOf("vbscript:")===0||d.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,d;for(;u<arguments.length;u++){f=arguments[u];for(d in f)Object.prototype.hasOwnProperty.call(f,d)&&(c[d]=f[d])}return c}function splitCells$1(c,u){const f=c.replace(/\|/g,(v,p,m)=>{let g=!1,y=p;for(;--y>=0&&m[y]==="\\";)g=!g;return g?"|":" |"}),d=f.split(/ \|/);let h=0;if(d[0].trim()||d.shift(),d[d.length-1].trim()||d.pop(),d.length>u)d.splice(u);else for(;d.length<u;)d.push("");for(;h<d.length;h++)d[h]=d[h].trim().replace(/\\\|/g,"|");return d}function rtrim$1(c,u,f){const d=c.length;if(d===0)return"";let h=0;for(;h<d;){const v=c.charAt(d-h-1);if(v===u&&!f)h++;else if(v!==u&&f)h++;else break}return c.substr(0,d-h)}function findClosingBracket$1(c,u){if(c.indexOf(u[1])===-1)return-1;const f=c.length;let d=0,h=0;for(;h<f;h++)if(c[h]==="\\")h++;else if(c[h]===u[0])d++;else if(c[h]===u[1]&&(d--,d<0))return h;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,d){const h=u.href,v=u.title?escape$2(u.title):null,p=c[1].replace(/\\([\[\]])/g,"$1");if(c[0].charAt(0)!=="!"){d.state.inLink=!0;const m={type:"link",raw:f,href:h,title:v,text:p,tokens:d.inlineTokens(p,[])};return d.state.inLink=!1,m}else return{type:"image",raw:f,href:h,title:v,text:escape$2(p)}}function indentCodeCompensation(c,u){const f=c.match(/^(\s+)(?:```)/);if(f===null)return u;const d=f[1];return u.split(`
|
|
103
103
|
`).map(h=>{const v=h.match(/^\s+/);if(v===null)return h;const[p]=v;return p.length>=d.length?h.slice(d.length):h}).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 d=f[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:f[0],codeBlockStyle:"indented",text:this.options.pedantic?d:rtrim(d,`
|
|
@@ -177,7 +177,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
177
177
|
By Ken Fyrstenberg
|
|
178
178
|
Contributions by leeoniya.
|
|
179
179
|
License: MIT, header required.
|
|
180
|
-
*/var Matrix=function(){var c=Math.cos,u=Math.sin,f=Math.tan,d=Math.round;function h(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function v(Vn){if(Vn===0)return this;var Gn=c(Vn),er=u(Vn);return this._t(Gn,-er,0,0,er,Gn,0,0,0,0,1,0,0,0,0,1)}function p(Vn){if(Vn===0)return this;var Gn=c(Vn),er=u(Vn);return this._t(1,0,0,0,0,Gn,-er,0,0,er,Gn,0,0,0,0,1)}function m(Vn){if(Vn===0)return this;var Gn=c(Vn),er=u(Vn);return this._t(Gn,0,er,0,0,1,0,0,-er,0,Gn,0,0,0,0,1)}function g(Vn){if(Vn===0)return this;var Gn=c(Vn),er=u(Vn);return this._t(Gn,-er,0,0,er,Gn,0,0,0,0,1,0,0,0,0,1)}function y(Vn,Gn){return this._t(1,Gn,Vn,1,0,0)}function b(Vn,Gn){return this.shear(f(Vn),f(Gn))}function gn(Vn,Gn){var er=c(Gn),Wn=u(Gn);return this._t(er,Wn,0,0,-Wn,er,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(er,-Wn,0,0,Wn,er,0,0,0,0,1,0,0,0,0,1)}function x(Vn,Gn,er){return!er&&er!==0&&(er=1),Vn===1&&Gn===1&&er===1?this:this._t(Vn,0,0,0,0,Gn,0,0,0,0,er,0,0,0,0,1)}function re(Vn,Gn,er,Wn,or,cr,ar,tr,pr,Yn,ir,lr,vr,dr,yr,fr){return this.props[0]=Vn,this.props[1]=Gn,this.props[2]=er,this.props[3]=Wn,this.props[4]=or,this.props[5]=cr,this.props[6]=ar,this.props[7]=tr,this.props[8]=pr,this.props[9]=Yn,this.props[10]=ir,this.props[11]=lr,this.props[12]=vr,this.props[13]=dr,this.props[14]=yr,this.props[15]=fr,this}function w(Vn,Gn,er){return er=er||0,Vn!==0||Gn!==0||er!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Vn,Gn,er,1):this}function J(Vn,Gn,er,Wn,or,cr,ar,tr,pr,Yn,ir,lr,vr,dr,yr,fr){var mr=this.props;if(Vn===1&&Gn===0&&er===0&&Wn===0&&or===0&&cr===1&&ar===0&&tr===0&&pr===0&&Yn===0&&ir===1&&lr===0)return mr[12]=mr[12]*Vn+mr[15]*vr,mr[13]=mr[13]*cr+mr[15]*dr,mr[14]=mr[14]*ir+mr[15]*yr,mr[15]*=fr,this._identityCalculated=!1,this;var xr=mr[0],Cr=mr[1],br=mr[2],hr=mr[3],gr=mr[4],Er=mr[5],wr=mr[6],_r=mr[7],Rr=mr[8],Mr=mr[9],Dr=mr[10],Br=mr[11],Vr=mr[12],Gr=mr[13],Hr=mr[14],Ur=mr[15];return mr[0]=xr*Vn+Cr*or+br*pr+hr*vr,mr[1]=xr*Gn+Cr*cr+br*Yn+hr*dr,mr[2]=xr*er+Cr*ar+br*ir+hr*yr,mr[3]=xr*Wn+Cr*tr+br*lr+hr*fr,mr[4]=gr*Vn+Er*or+wr*pr+_r*vr,mr[5]=gr*Gn+Er*cr+wr*Yn+_r*dr,mr[6]=gr*er+Er*ar+wr*ir+_r*yr,mr[7]=gr*Wn+Er*tr+wr*lr+_r*fr,mr[8]=Rr*Vn+Mr*or+Dr*pr+Br*vr,mr[9]=Rr*Gn+Mr*cr+Dr*Yn+Br*dr,mr[10]=Rr*er+Mr*ar+Dr*ir+Br*yr,mr[11]=Rr*Wn+Mr*tr+Dr*lr+Br*fr,mr[12]=Vr*Vn+Gr*or+Hr*pr+Ur*vr,mr[13]=Vr*Gn+Gr*cr+Hr*Yn+Ur*dr,mr[14]=Vr*er+Gr*ar+Hr*ir+Ur*yr,mr[15]=Vr*Wn+Gr*tr+Hr*lr+Ur*fr,this._identityCalculated=!1,this}function Fn(Vn){var Gn=Vn.props;return this.transform(Gn[0],Gn[1],Gn[2],Gn[3],Gn[4],Gn[5],Gn[6],Gn[7],Gn[8],Gn[9],Gn[10],Gn[11],Gn[12],Gn[13],Gn[14],Gn[15])}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 j(Vn){for(var Gn=0;Gn<16;){if(Vn.props[Gn]!==this.props[Gn])return!1;Gn+=1}return!0}function vn(Vn){var Gn;for(Gn=0;Gn<16;Gn+=1)Vn.props[Gn]=this.props[Gn];return Vn}function Pn(Vn){var Gn;for(Gn=0;Gn<16;Gn+=1)this.props[Gn]=Vn[Gn]}function Rn(Vn,Gn,er){return{x:Vn*this.props[0]+Gn*this.props[4]+er*this.props[8]+this.props[12],y:Vn*this.props[1]+Gn*this.props[5]+er*this.props[9]+this.props[13],z:Vn*this.props[2]+Gn*this.props[6]+er*this.props[10]+this.props[14]}}function zn(Vn,Gn,er){return Vn*this.props[0]+Gn*this.props[4]+er*this.props[8]+this.props[12]}function Un(Vn,Gn,er){return Vn*this.props[1]+Gn*this.props[5]+er*this.props[9]+this.props[13]}function qn(Vn,Gn,er){return Vn*this.props[2]+Gn*this.props[6]+er*this.props[10]+this.props[14]}function Qn(){var Vn=this.props[0]*this.props[5]-this.props[1]*this.props[4],Gn=this.props[5]/Vn,er=-this.props[1]/Vn,Wn=-this.props[4]/Vn,or=this.props[0]/Vn,cr=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/Vn,ar=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/Vn,tr=new Matrix;return tr.props[0]=Gn,tr.props[1]=er,tr.props[4]=Wn,tr.props[5]=or,tr.props[12]=cr,tr.props[13]=ar,tr}function Jn(Vn){var Gn=this.getInverseMatrix();return Gn.applyToPointArray(Vn[0],Vn[1],Vn[2]||0)}function Zn(Vn){var Gn,er=Vn.length,Wn=[];for(Gn=0;Gn<er;Gn+=1)Wn[Gn]=Jn(Vn[Gn]);return Wn}function Xn(Vn,Gn,er){var Wn=createTypedArray("float32",6);if(this.isIdentity())Wn[0]=Vn[0],Wn[1]=Vn[1],Wn[2]=Gn[0],Wn[3]=Gn[1],Wn[4]=er[0],Wn[5]=er[1];else{var or=this.props[0],cr=this.props[1],ar=this.props[4],tr=this.props[5],pr=this.props[12],Yn=this.props[13];Wn[0]=Vn[0]*or+Vn[1]*ar+pr,Wn[1]=Vn[0]*cr+Vn[1]*tr+Yn,Wn[2]=Gn[0]*or+Gn[1]*ar+pr,Wn[3]=Gn[0]*cr+Gn[1]*tr+Yn,Wn[4]=er[0]*or+er[1]*ar+pr,Wn[5]=er[0]*cr+er[1]*tr+Yn}return Wn}function nr(Vn,Gn,er){var Wn;return this.isIdentity()?Wn=[Vn,Gn,er]:Wn=[Vn*this.props[0]+Gn*this.props[4]+er*this.props[8]+this.props[12],Vn*this.props[1]+Gn*this.props[5]+er*this.props[9]+this.props[13],Vn*this.props[2]+Gn*this.props[6]+er*this.props[10]+this.props[14]],Wn}function sr(Vn,Gn){if(this.isIdentity())return Vn+","+Gn;var er=this.props;return Math.round((Vn*er[0]+Gn*er[4]+er[12])*100)/100+","+Math.round((Vn*er[1]+Gn*er[5]+er[13])*100)/100}function ur(){for(var Vn=0,Gn=this.props,er="matrix3d(",Wn=1e4;Vn<16;)er+=d(Gn[Vn]*Wn)/Wn,er+=Vn===15?")":",",Vn+=1;return er}function Hn(Vn){var Gn=1e4;return Vn<1e-6&&Vn>0||Vn>-1e-6&&Vn<0?d(Vn*Gn)/Gn:Vn}function Kn(){var Vn=this.props,Gn=Hn(Vn[0]),er=Hn(Vn[1]),Wn=Hn(Vn[4]),or=Hn(Vn[5]),cr=Hn(Vn[12]),ar=Hn(Vn[13]);return"matrix("+Gn+","+er+","+Wn+","+or+","+cr+","+ar+")"}return function(){this.reset=h,this.rotate=v,this.rotateX=p,this.rotateY=m,this.rotateZ=g,this.skew=b,this.skewFromAxis=gn,this.shear=y,this.scale=x,this.setTransform=re,this.translate=w,this.transform=J,this.multiply=Fn,this.applyToPoint=Rn,this.applyToX=zn,this.applyToY=Un,this.applyToZ=qn,this.applyToPointArray=nr,this.applyToTriplePoints=Xn,this.applyToPointStringified=sr,this.toCSS=ur,this.to2dCSS=Kn,this.clone=vn,this.cloneFromProps=Pn,this.equals=j,this.inversePoints=Zn,this.inversePoint=Jn,this.getInverseMatrix=Qn,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 d=u[f].split("=");if(decodeURIComponent(d[0])==c)return decodeURIComponent(d[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=d;function f(h,v){u[h]||(u[h]=v)}function d(h,v,p){return new u[h](v,p)}return c}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(c){if(!this.closed){c.sh.container.addDynamicProperty(c.sh);var u={shape:c.sh,data:c,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(u),this.addShapeToModifier(u),this._isAnimated&&c.setAsAnimated()}},ShapeModifier.prototype.init=function(c,u){this.shapes=[],this.elem=c,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,u),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(c,u){this.s=PropertyFactory.getProp(c,u.s,0,.01,this),this.e=PropertyFactory.getProp(c,u.e,0,.01,this),this.o=PropertyFactory.getProp(c,u.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=u.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(c){c.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(c,u,f,d,h){var v=[];u<=1?v.push({s:c,e:u}):c>=1?v.push({s:c-1,e:u-1}):(v.push({s:c,e:1}),v.push({s:0,e:u-1}));var p=[],m,g=v.length,y;for(m=0;m<g;m+=1)if(y=v[m],!(y.e*h<d||y.s*h>d+f)){var b,gn;y.s*h<=d?b=0:b=(y.s*h-d)/f,y.e*h>=d+f?gn=1:gn=(y.e*h-d)/f,p.push([b,gn])}return p.length||p.push([0,0]),p},TrimModifier.prototype.releasePathsData=function(c){var u,f=c.length;for(u=0;u<f;u+=1)segmentsLengthPool.release(c[u]);return c.length=0,c},TrimModifier.prototype.processShapes=function(c){var u,f;if(this._mdf||c){var d=this.o.v%360/360;if(d<0&&(d+=1),this.s.v>1?u=1+d:this.s.v<0?u=0+d:u=this.s.v+d,this.e.v>1?f=1+d:this.e.v<0?f=0+d:f=this.e.v+d,u>f){var h=u;u=f,f=h}u=Math.round(u*1e4)*1e-4,f=Math.round(f*1e4)*1e-4,this.sValue=u,this.eValue=f}else u=this.sValue,f=this.eValue;var v,p,m=this.shapes.length,g,y,b,gn,x,re=0;if(f===u)for(p=0;p<m;p+=1)this.shapes[p].localShapeCollection.releaseShapes(),this.shapes[p].shape._mdf=!0,this.shapes[p].shape.paths=this.shapes[p].localShapeCollection,this._mdf&&(this.shapes[p].pathsData.length=0);else if(f===1&&u===0||f===0&&u===1){if(this._mdf)for(p=0;p<m;p+=1)this.shapes[p].pathsData.length=0,this.shapes[p].shape._mdf=!0}else{var w=[],J,Fn;for(p=0;p<m;p+=1)if(J=this.shapes[p],!J.shape._mdf&&!this._mdf&&!c&&this.m!==2)J.shape.paths=J.localShapeCollection;else{if(v=J.shape.paths,y=v._length,x=0,!J.shape._mdf&&J.pathsData.length)x=J.totalShapeLength;else{for(b=this.releasePathsData(J.pathsData),g=0;g<y;g+=1)gn=bez.getSegmentsLength(v.shapes[g]),b.push(gn),x+=gn.totalLength;J.totalShapeLength=x,J.pathsData=b}re+=x,J.shape._mdf=!0}var Bn=u,j=f,vn=0,Pn;for(p=m-1;p>=0;p-=1)if(J=this.shapes[p],J.shape._mdf){for(Fn=J.localShapeCollection,Fn.releaseShapes(),this.m===2&&m>1?(Pn=this.calculateShapeEdges(u,f,J.totalShapeLength,vn,re),vn+=J.totalShapeLength):Pn=[[Bn,j]],y=Pn.length,g=0;g<y;g+=1){Bn=Pn[g][0],j=Pn[g][1],w.length=0,j<=1?w.push({s:J.totalShapeLength*Bn,e:J.totalShapeLength*j}):Bn>=1?w.push({s:J.totalShapeLength*(Bn-1),e:J.totalShapeLength*(j-1)}):(w.push({s:J.totalShapeLength*Bn,e:J.totalShapeLength}),w.push({s:0,e:J.totalShapeLength*(j-1)}));var Rn=this.addShapes(J,w[0]);if(w[0].s!==w[0].e){if(w.length>1){var zn=J.shape.paths.shapes[J.shape.paths._length-1];if(zn.c){var Un=Rn.pop();this.addPaths(Rn,Fn),Rn=this.addShapes(J,w[1],Un)}else this.addPaths(Rn,Fn),Rn=this.addShapes(J,w[1])}this.addPaths(Rn,Fn)}}J.shape.paths=Fn}}},TrimModifier.prototype.addPaths=function(c,u){var f,d=c.length;for(f=0;f<d;f+=1)u.addShape(c[f])},TrimModifier.prototype.addSegment=function(c,u,f,d,h,v,p){h.setXYAt(u[0],u[1],"o",v),h.setXYAt(f[0],f[1],"i",v+1),p&&h.setXYAt(c[0],c[1],"v",v),h.setXYAt(d[0],d[1],"v",v+1)},TrimModifier.prototype.addSegmentFromArray=function(c,u,f,d){u.setXYAt(c[1],c[5],"o",f),u.setXYAt(c[2],c[6],"i",f+1),d&&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 d=c.pathsData,h=c.shape.paths.shapes,v,p=c.shape.paths._length,m,g,y=0,b,gn,x,re,w=[],J,Fn=!0;for(f?(gn=f._length,J=f._length):(f=shapePool.newElement(),gn=0,J=0),w.push(f),v=0;v<p;v+=1){for(x=d[v].lengths,f.c=h[v].c,g=h[v].c?x.length:x.length+1,m=1;m<g;m+=1)if(b=x[m-1],y+b.addedLength<u.s)y+=b.addedLength,f.c=!1;else if(y>u.e){f.c=!1;break}else u.s<=y&&u.e>=y+b.addedLength?(this.addSegment(h[v].v[m-1],h[v].o[m-1],h[v].i[m],h[v].v[m],f,gn,Fn),Fn=!1):(re=bez.getNewSegment(h[v].v[m-1],h[v].v[m],h[v].o[m-1],h[v].i[m],(u.s-y)/b.addedLength,(u.e-y)/b.addedLength,x[m-1]),this.addSegmentFromArray(re,f,gn,Fn),Fn=!1,f.c=!1),y+=b.addedLength,gn+=1;if(h[v].c&&x.length){if(b=x[m-1],y<=u.e){var Bn=x[m-1].addedLength;u.s<=y&&u.e>=y+Bn?(this.addSegment(h[v].v[m-1],h[v].o[m-1],h[v].i[0],h[v].v[0],f,gn,Fn),Fn=!1):(re=bez.getNewSegment(h[v].v[m-1],h[v].v[0],h[v].o[m-1],h[v].i[0],(u.s-y)/Bn,(u.e-y)/Bn,x[m-1]),this.addSegmentFromArray(re,f,gn,Fn),Fn=!1,f.c=!1)}else f.c=!1;y+=b.addedLength,gn+=1}if(f._length&&(f.setXYAt(f.v[J][0],f.v[J][1],"i",J),f.setXYAt(f.v[f._length-1][0],f.v[f._length-1][1],"o",f._length-1)),y>u.e)break;v<p-1&&(f=shapePool.newElement(),Fn=!0,w.push(f),gn=0)}return w};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,d=[0,0],h=c._length,v=0;for(v=0;v<h;v+=1)d[0]+=c.v[v][0],d[1]+=c.v[v][1];d[0]/=h,d[1]/=h;var p=shapePool.newElement();p.c=c.c;var m,g,y,b,gn,x;for(v=0;v<h;v+=1)m=c.v[v][0]+(d[0]-c.v[v][0])*f,g=c.v[v][1]+(d[1]-c.v[v][1])*f,y=c.o[v][0]+(d[0]-c.o[v][0])*-f,b=c.o[v][1]+(d[1]-c.o[v][1])*-f,gn=c.i[v][0]+(d[0]-c.i[v][0])*-f,x=c.i[v][1]+(d[1]-c.i[v][1])*-f,p.setTripleAt(m,g,y,b,gn,x,v);return p},PuckerAndBloatModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,v,p=this.amount.v;if(p!==0){var m,g;for(f=0;f<d;f+=1){if(m=this.shapes[f],g=m.localShapeCollection,!(!m.shape._mdf&&!this._mdf&&!c))for(g.releaseShapes(),m.shape._mdf=!0,u=m.shape.paths.shapes,v=m.shape.paths._length,h=0;h<v;h+=1)g.addShape(this.processPath(u[h],p));m.shape.paths=m.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var c=[0,0];function u(g){var y=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||y,this.a&&g.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&g.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&g.skewFromAxis(-this.sk.v,this.sa.v),this.r?g.rotate(-this.r.v):g.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?g.translate(this.px.v,this.py.v,-this.pz.v):g.translate(this.px.v,this.py.v,0):g.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function f(g){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||g){var y;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var b,gn;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?(b=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/y,0),gn=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?(b=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/y,0),gn=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/y,0)):(b=this.p.pv,gn=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){b=[],gn=[];var x=this.px,re=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(b[0]=x.getValueAtTime((x.keyframes[0].t+.01)/y,0),b[1]=re.getValueAtTime((re.keyframes[0].t+.01)/y,0),gn[0]=x.getValueAtTime(x.keyframes[0].t/y,0),gn[1]=re.getValueAtTime(re.keyframes[0].t/y,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(b[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/y,0),b[1]=re.getValueAtTime(re.keyframes[re.keyframes.length-1].t/y,0),gn[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/y,0),gn[1]=re.getValueAtTime((re.keyframes[re.keyframes.length-1].t-.01)/y,0)):(b=[x.pv,re.pv],gn[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/y,x.offsetTime),gn[1]=re.getValueAtTime((re._caching.lastFrame+re.offsetTime-.01)/y,re.offsetTime))}else gn=c,b=gn;this.v.rotate(-Math.atan2(b[1]-gn[1],b[0]-gn[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 d(){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 h(){}function v(g){this._addDynamicProperty(g),this.elem.addDynamicProperty(g),this._isDirty=!0}function p(g,y,b){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(b||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 gn,x=y.or.k.length;for(gn=0;gn<x;gn+=1)y.or.k[gn].to=null,y.or.k[gn].ti=null}this.or=PropertyFactory.getProp(g,y.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(g,y.r||{k:0},0,degToRads,this);y.sk&&(this.sk=PropertyFactory.getProp(g,y.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(g,y.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(g,y.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(g,y.s||{k:[100,100,100]},1,.01,this),y.o?this.o=PropertyFactory.getProp(g,y.o,0,.01,g):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}p.prototype={applyToMatrix:u,getValue:f,precalculateMatrix:d,autoOrient:h},extendPrototype([DynamicPropertyContainer],p),p.prototype.addDynamicProperty=v,p.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function m(g,y,b){return new p(g,y,b)}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,d,h,v){var p=v?-1:1,m=d.s.v[0]+(1-d.s.v[0])*(1-h),g=d.s.v[1]+(1-d.s.v[1])*(1-h);c.translate(d.p.v[0]*p*h,d.p.v[1]*p*h,d.p.v[2]),u.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),u.rotate(-d.r.v*p*h),u.translate(d.a.v[0],d.a.v[1],d.a.v[2]),f.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),f.scale(v?1/m:m,v?1/g:g),f.translate(d.a.v[0],d.a.v[1],d.a.v[2])},RepeaterModifier.prototype.init=function(c,u,f,d){for(this.elem=c,this.arr=u,this.pos=f,this.elemsData=d,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,d=c.length;for(f=0;f<d;f+=1)c[f]._render=u,c[f].ty==="gr"&&this.changeGroupRender(c[f].it,u)},RepeaterModifier.prototype.processShapes=function(c){var u,f,d,h,v,p=!1;if(this._mdf||c){var m=Math.ceil(this.c.v);if(this._groups.length<m){for(;this._groups.length<m;){var g={it:this.cloneElements(this._elements),ty:"gr"};g.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,g),this._groups.splice(0,0,g),this._currentCopies+=1}this.elem.reloadShapes(),p=!0}v=0;var y;for(d=0;d<=this._groups.length-1;d+=1){if(y=v<m,this._groups[d]._render=y,this.changeGroupRender(this._groups[d].it,y),!y){var b=this.elemsData[d].it,gn=b[b.length-1];gn.transform.op.v!==0?(gn.transform.op._mdf=!0,gn.transform.op.v=0):gn.transform.op._mdf=!1}v+=1}this._currentCopies=m;var x=this.o.v,re=x%1,w=x>0?Math.floor(x):Math.ceil(x),J=this.pMatrix.props,Fn=this.rMatrix.props,Bn=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var j=0;if(x>0){for(;j<w;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),j+=1;re&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,re,!1),j+=re)}else if(x<0){for(;j>w;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),j-=1;re&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-re,!0),j-=re)}d=this.data.m===1?0:this._currentCopies-1,h=this.data.m===1?1:-1,v=this._currentCopies;for(var vn,Pn;v;){if(u=this.elemsData[d].it,f=u[u.length-1].transform.mProps.v.props,Pn=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)*(d/(this._currentCopies-1)),j!==0){for((d!==0&&h===1||d!==this._currentCopies-1&&h===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(Fn[0],Fn[1],Fn[2],Fn[3],Fn[4],Fn[5],Fn[6],Fn[7],Fn[8],Fn[9],Fn[10],Fn[11],Fn[12],Fn[13],Fn[14],Fn[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(J[0],J[1],J[2],J[3],J[4],J[5],J[6],J[7],J[8],J[9],J[10],J[11],J[12],J[13],J[14],J[15]),vn=0;vn<Pn;vn+=1)f[vn]=this.matrix.props[vn];this.matrix.reset()}else for(this.matrix.reset(),vn=0;vn<Pn;vn+=1)f[vn]=this.matrix.props[vn];j+=1,v-=1,d+=h}}else for(v=this._currentCopies,d=0,h=1;v;)u=this.elemsData[d].it,f=u[u.length-1].transform.mProps.v.props,u[u.length-1].transform.mProps._mdf=!1,u[u.length-1].transform.op._mdf=!1,v-=1,d+=h;return p},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(c,u.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(c,u){var f=shapePool.newElement();f.c=c.c;var d,h=c._length,v,p,m,g,y,b,gn=0,x,re,w,J,Fn,Bn;for(d=0;d<h;d+=1)v=c.v[d],m=c.o[d],p=c.i[d],v[0]===m[0]&&v[1]===m[1]&&v[0]===p[0]&&v[1]===p[1]?(d===0||d===h-1)&&!c.c?(f.setTripleAt(v[0],v[1],m[0],m[1],p[0],p[1],gn),gn+=1):(d===0?g=c.v[h-1]:g=c.v[d-1],y=Math.sqrt(Math.pow(v[0]-g[0],2)+Math.pow(v[1]-g[1],2)),b=y?Math.min(y/2,u)/y:0,Fn=v[0]+(g[0]-v[0])*b,x=Fn,Bn=v[1]-(v[1]-g[1])*b,re=Bn,w=x-(x-v[0])*roundCorner,J=re-(re-v[1])*roundCorner,f.setTripleAt(x,re,w,J,Fn,Bn,gn),gn+=1,d===h-1?g=c.v[0]:g=c.v[d+1],y=Math.sqrt(Math.pow(v[0]-g[0],2)+Math.pow(v[1]-g[1],2)),b=y?Math.min(y/2,u)/y:0,w=v[0]+(g[0]-v[0])*b,x=w,J=v[1]+(g[1]-v[1])*b,re=J,Fn=x-(x-v[0])*roundCorner,Bn=re-(re-v[1])*roundCorner,f.setTripleAt(x,re,w,J,Fn,Bn,gn),gn+=1):(f.setTripleAt(c.v[d][0],c.v[d][1],c.o[d][0],c.o[d][1],c.i[d][0],c.i[d][1],gn),gn+=1);return f},RoundCornersModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,v,p=this.rd.v;if(p!==0){var m,g;for(f=0;f<d;f+=1){if(m=this.shapes[f],g=m.localShapeCollection,!(!m.shape._mdf&&!this._mdf&&!c))for(g.releaseShapes(),m.shape._mdf=!0,u=m.shape.paths.shapes,v=m.shape.paths._length,h=0;h<v;h+=1)g.addShape(this.processPath(u[h],p));m.shape.paths=m.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(c,u){return Math.abs(c-u)*1e5<=Math.min(Math.abs(c),Math.abs(u))}function floatZero(c){return Math.abs(c)<=1e-5}function lerp(c,u,f){return c*(1-f)+u*f}function lerpPoint(c,u,f){return[lerp(c[0],u[0],f),lerp(c[1],u[1],f)]}function quadRoots(c,u,f){if(c===0)return[];var d=u*u-4*c*f;if(d<0)return[];var h=-u/(2*c);if(d===0)return[h];var v=Math.sqrt(d)/(2*c);return[h-v,h+v]}function polynomialCoefficients(c,u,f,d){return[-c+3*u-3*f+d,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,d,h){h&&pointEqual(c,u)&&(u=lerpPoint(c,d,1/3)),h&&pointEqual(f,d)&&(f=lerpPoint(c,d,2/3));var v=polynomialCoefficients(c[0],u[0],f[0],d[0]),p=polynomialCoefficients(c[1],u[1],f[1],d[1]);this.a=[v[0],p[0]],this.b=[v[1],p[1]],this.c=[v[2],p[2]],this.d=[v[3],p[3]],this.points=[c,u,f,d]}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 d=Math.sqrt(f);return floatZero(d)?d>0&&d<1?[u]:[]:[u-d,u+d].filter(function(h){return h>0&&h<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),d=lerpPoint(this.points[2],this.points[3],c),h=lerpPoint(u,f,c),v=lerpPoint(f,d,c),p=lerpPoint(h,v,c);return[new PolynomialBezier(this.points[0],u,h,p,!0),new PolynomialBezier(p,v,d,this.points[3],!0)]};function extrema(c,u){var f=c.points[0][u],d=c.points[c.points.length-1][u];if(f>d){var h=d;d=f,f=h}for(var v=quadRoots(3*c.a[u],2*c.b[u],c.c[u]),p=0;p<v.length;p+=1)if(v[p]>0&&v[p]<1){var m=c.point(v[p])[u];m<f?f=m:m>d&&(d=m)}return{min:f,max:d}}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 d=c.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.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,d,h,v){if(boxIntersect(c,u)){if(f>=v||c.width<=d&&c.height<=d&&u.width<=d&&u.height<=d){h.push([c.t,u.t]);return}var p=splitData(c),m=splitData(u);intersectsImpl(p[0],m[0],f+1,d,h,v),intersectsImpl(p[0],m[1],f+1,d,h,v),intersectsImpl(p[1],m[0],f+1,d,h,v),intersectsImpl(p[1],m[1],f+1,d,h,v)}}PolynomialBezier.prototype.intersections=function(c,u,f){u===void 0&&(u=2),f===void 0&&(f=7);var d=[];return intersectsImpl(intersectData(this,0,1),intersectData(c,0,1),0,u,d,f),d},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,d){var h=[c[0],c[1],1],v=[u[0],u[1],1],p=[f[0],f[1],1],m=[d[0],d[1],1],g=crossProduct(crossProduct(h,v),crossProduct(p,m));return floatZero(g[2])?null:[g[0]/g[2],g[1]/g[2]]}function polarOffset(c,u,f){return[c[0]+Math.cos(u)*f,c[1]-Math.sin(u)*f]}function pointDistance(c,u){return Math.hypot(c[0]-u[0],c[1]-u[1])}function pointEqual(c,u){return floatEqual(c[0],u[0])&&floatEqual(c[1],u[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(c,u.s,0,null,this),this.frequency=PropertyFactory.getProp(c,u.r,0,null,this),this.pointsType=PropertyFactory.getProp(c,u.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(c,u,f,d,h,v,p){var m=f-Math.PI/2,g=f+Math.PI/2,y=u[0]+Math.cos(f)*d*h,b=u[1]-Math.sin(f)*d*h;c.setTripleAt(y,b,y+Math.cos(m)*v,b-Math.sin(m)*v,y+Math.cos(g)*p,b-Math.sin(g)*p,c.length())}function getPerpendicularVector(c,u){var f=[u[0]-c[0],u[1]-c[1]],d=-Math.PI*.5,h=[Math.cos(d)*f[0]-Math.sin(d)*f[1],Math.sin(d)*f[0]+Math.cos(d)*f[1]];return h}function getProjectingAngle(c,u){var f=u===0?c.length()-1:u-1,d=(u+1)%c.length(),h=c.v[f],v=c.v[d],p=getPerpendicularVector(h,v);return Math.atan2(0,1)-Math.atan2(p[1],p[0])}function zigZagCorner(c,u,f,d,h,v,p){var m=getProjectingAngle(u,f),g=u.v[f%u._length],y=u.v[f===0?u._length-1:f-1],b=u.v[(f+1)%u._length],gn=v===2?Math.sqrt(Math.pow(g[0]-y[0],2)+Math.pow(g[1]-y[1],2)):0,x=v===2?Math.sqrt(Math.pow(g[0]-b[0],2)+Math.pow(g[1]-b[1],2)):0;setPoint(c,u.v[f%u._length],m,p,d,x/((h+1)*2),gn/((h+1)*2))}function zigZagSegment(c,u,f,d,h,v){for(var p=0;p<d;p+=1){var m=(p+1)/(d+1),g=h===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),b=u.point(m);setPoint(c,b,y,v,f,g/((d+1)*2),g/((d+1)*2)),v=-v}return v}ZigZagModifier.prototype.processPath=function(c,u,f,d){var h=c._length,v=shapePool.newElement();if(v.c=c.c,c.c||(h-=1),h===0)return v;var p=-1,m=PolynomialBezier.shapeSegment(c,0);zigZagCorner(v,c,0,u,f,d,p);for(var g=0;g<h;g+=1)p=zigZagSegment(v,m,u,f,d,-p),g===h-1&&!c.c?m=null:m=PolynomialBezier.shapeSegment(c,(g+1)%h),zigZagCorner(v,c,g+1,u,f,d,p);return v},ZigZagModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,v,p=this.amplitude.v,m=Math.max(0,Math.round(this.frequency.v)),g=this.pointsType.v;if(p!==0){var y,b;for(f=0;f<d;f+=1){if(y=this.shapes[f],b=y.localShapeCollection,!(!y.shape._mdf&&!this._mdf&&!c))for(b.releaseShapes(),y.shape._mdf=!0,u=y.shape.paths.shapes,v=y.shape.paths._length,h=0;h<v;h+=1)b.addShape(this.processPath(u[h],p,m,g));y.shape.paths=y.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(c,u,f){var d=Math.atan2(u[0]-c[0],u[1]-c[1]);return[polarOffset(c,d,f),polarOffset(u,d,f)]}function offsetSegment(c,u){var f,d,h,v,p,m,g;g=linearOffset(c.points[0],c.points[1],u),f=g[0],d=g[1],g=linearOffset(c.points[1],c.points[2],u),h=g[0],v=g[1],g=linearOffset(c.points[2],c.points[3],u),p=g[0],m=g[1];var y=lineIntersection(f,d,h,v);y===null&&(y=d);var b=lineIntersection(p,m,h,v);return b===null&&(b=p),new PolynomialBezier(f,y,b,m)}function joinLines(c,u,f,d,h){var v=u.points[3],p=f.points[0];if(d===3||pointEqual(v,p))return v;if(d===2){var m=-u.tangentAngle(1),g=-f.tangentAngle(0)+Math.PI,y=lineIntersection(v,polarOffset(v,m+Math.PI/2,100),p,polarOffset(p,m+Math.PI/2,100)),b=y?pointDistance(y,v):pointDistance(v,p)/2,gn=polarOffset(v,m,2*b*roundCorner);return c.setXYAt(gn[0],gn[1],"o",c.length()-1),gn=polarOffset(p,g,2*b*roundCorner),c.setTripleAt(p[0],p[1],p[0],p[1],gn[0],gn[1],c.length()),p}var x=pointEqual(v,u.points[2])?u.points[0]:u.points[2],re=pointEqual(p,f.points[1])?f.points[3]:f.points[1],w=lineIntersection(x,v,p,re);return w&&pointDistance(w,v)<h?(c.setTripleAt(w[0],w[1],w[0],w[1],w[0],w[1],c.length()),w):v}function getIntersection(c,u){var f=c.intersections(u);return f.length&&floatEqual(f[0][0],1)&&f.shift(),f.length?f[0]:null}function pruneSegmentIntersection(c,u){var f=c.slice(),d=u.slice(),h=getIntersection(c[c.length-1],u[0]);return h&&(f[c.length-1]=c[c.length-1].split(h[0])[0],d[0]=u[0].split(h[1])[1]),c.length>1&&u.length>1&&(h=getIntersection(c[0],u[u.length-1]),h)?[[c[0].split(h[0])[0]],[u[u.length-1].split(h[1])[1]]]:[f,d]}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(),d,h,v,p;if(f.length===0)return[offsetSegment(c,u)];if(f.length===1||floatEqual(f[1],1))return v=c.split(f[0]),d=v[0],h=v[1],[offsetSegment(d,u),offsetSegment(h,u)];v=c.split(f[0]),d=v[0];var m=(f[1]-f[0])/(1-f[0]);return v=v[1].split(m),p=v[0],h=v[1],[offsetSegment(d,u),offsetSegment(p,u),offsetSegment(h,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,d){var h=shapePool.newElement();h.c=c.c;var v=c.length();c.c||(v-=1);var p,m,g,y=[];for(p=0;p<v;p+=1)g=PolynomialBezier.shapeSegment(c,p),y.push(offsetSegmentSplit(g,u));if(!c.c)for(p=v-1;p>=0;p-=1)g=PolynomialBezier.shapeSegmentInverted(c,p),y.push(offsetSegmentSplit(g,u));y=pruneIntersections(y);var b=null,gn=null;for(p=0;p<y.length;p+=1){var x=y[p];for(gn&&(b=joinLines(h,gn,x[0],f,d)),gn=x[x.length-1],m=0;m<x.length;m+=1)g=x[m],b&&pointEqual(g.points[0],b)?h.setXYAt(g.points[1][0],g.points[1][1],"o",h.length()-1):h.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],h.length()),h.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],h.length()),b=g.points[3]}return y.length&&joinLines(h,gn,y[0][0],f,d),h},OffsetPathModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,v,p=this.amount.v,m=this.miterLimit.v,g=this.lineJoin;if(p!==0){var y,b;for(f=0;f<d;f+=1){if(y=this.shapes[f],b=y.localShapeCollection,!(!y.shape._mdf&&!this._mdf&&!c))for(b.releaseShapes(),y.shape._mdf=!0,u=y.shape.paths.shapes,v=y.shape.paths._length,h=0;h<v;h+=1)b.addShape(this.processPath(u[h],p,g,m));y.shape.paths=y.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(c){for(var u=c.fStyle?c.fStyle.split(" "):[],f="normal",d="normal",h=u.length,v,p=0;p<h;p+=1)switch(v=u[p].toLowerCase(),v){case"italic":d="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:d,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 d=127988,h=917631,v=917601,p=917626,m=65039,g=8205,y=127462,b=127487,gn=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(Hn){var Kn=Hn.split(","),Vn,Gn=Kn.length,er=[];for(Vn=0;Vn<Gn;Vn+=1)Kn[Vn]!=="sans-serif"&&Kn[Vn]!=="monospace"&&er.push(Kn[Vn]);return er.join(",")}function re(Hn,Kn){var Vn=createTag("span");Vn.setAttribute("aria-hidden",!0),Vn.style.fontFamily=Kn;var Gn=createTag("span");Gn.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(Gn),document.body.appendChild(Vn);var er=Gn.offsetWidth;return Gn.style.fontFamily=x(Hn)+", "+Kn,{node:Gn,w:er,parent:Vn}}function w(){var Hn,Kn=this.fonts.length,Vn,Gn,er=Kn;for(Hn=0;Hn<Kn;Hn+=1)this.fonts[Hn].loaded?er-=1:this.fonts[Hn].fOrigin==="n"||this.fonts[Hn].origin===0?this.fonts[Hn].loaded=!0:(Vn=this.fonts[Hn].monoCase.node,Gn=this.fonts[Hn].monoCase.w,Vn.offsetWidth!==Gn?(er-=1,this.fonts[Hn].loaded=!0):(Vn=this.fonts[Hn].sansCase.node,Gn=this.fonts[Hn].sansCase.w,Vn.offsetWidth!==Gn&&(er-=1,this.fonts[Hn].loaded=!0)),this.fonts[Hn].loaded&&(this.fonts[Hn].sansCase.parent.parentNode.removeChild(this.fonts[Hn].sansCase.parent),this.fonts[Hn].monoCase.parent.parentNode.removeChild(this.fonts[Hn].monoCase.parent)));er!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function J(Hn,Kn){var Vn=document.body&&Kn?"svg":"canvas",Gn,er=getFontProperties(Hn);if(Vn==="svg"){var Wn=createNS("text");Wn.style.fontSize="100px",Wn.setAttribute("font-family",Hn.fFamily),Wn.setAttribute("font-style",er.style),Wn.setAttribute("font-weight",er.weight),Wn.textContent="1",Hn.fClass?(Wn.style.fontFamily="inherit",Wn.setAttribute("class",Hn.fClass)):Wn.style.fontFamily=Hn.fFamily,Kn.appendChild(Wn),Gn=Wn}else{var or=new OffscreenCanvas(500,500).getContext("2d");or.font=er.style+" "+er.weight+" 100px "+Hn.fFamily,Gn=or}function cr(ar){return Vn==="svg"?(Gn.textContent=ar,Gn.getComputedTextLength()):Gn.measureText(ar).width}return{measureText:cr}}function Fn(Hn,Kn){if(!Hn){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=Hn.list;return}if(!document.body){this.isLoaded=!0,Hn.list.forEach(function(ir){ir.helper=J(ir),ir.cache={}}),this.fonts=Hn.list;return}var Vn=Hn.list,Gn,er=Vn.length,Wn=er;for(Gn=0;Gn<er;Gn+=1){var or=!0,cr,ar;if(Vn[Gn].loaded=!1,Vn[Gn].monoCase=re(Vn[Gn].fFamily,"monospace"),Vn[Gn].sansCase=re(Vn[Gn].fFamily,"sans-serif"),!Vn[Gn].fPath)Vn[Gn].loaded=!0,Wn-=1;else if(Vn[Gn].fOrigin==="p"||Vn[Gn].origin===3){if(cr=document.querySelectorAll('style[f-forigin="p"][f-family="'+Vn[Gn].fFamily+'"], style[f-origin="3"][f-family="'+Vn[Gn].fFamily+'"]'),cr.length>0&&(or=!1),or){var tr=createTag("style");tr.setAttribute("f-forigin",Vn[Gn].fOrigin),tr.setAttribute("f-origin",Vn[Gn].origin),tr.setAttribute("f-family",Vn[Gn].fFamily),tr.type="text/css",tr.innerText="@font-face {font-family: "+Vn[Gn].fFamily+"; font-style: normal; src: url('"+Vn[Gn].fPath+"');}",Kn.appendChild(tr)}}else if(Vn[Gn].fOrigin==="g"||Vn[Gn].origin===1){for(cr=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),ar=0;ar<cr.length;ar+=1)cr[ar].href.indexOf(Vn[Gn].fPath)!==-1&&(or=!1);if(or){var pr=createTag("link");pr.setAttribute("f-forigin",Vn[Gn].fOrigin),pr.setAttribute("f-origin",Vn[Gn].origin),pr.type="text/css",pr.rel="stylesheet",pr.href=Vn[Gn].fPath,document.body.appendChild(pr)}}else if(Vn[Gn].fOrigin==="t"||Vn[Gn].origin===2){for(cr=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),ar=0;ar<cr.length;ar+=1)Vn[Gn].fPath===cr[ar].src&&(or=!1);if(or){var Yn=createTag("link");Yn.setAttribute("f-forigin",Vn[Gn].fOrigin),Yn.setAttribute("f-origin",Vn[Gn].origin),Yn.setAttribute("rel","stylesheet"),Yn.setAttribute("href",Vn[Gn].fPath),Kn.appendChild(Yn)}}Vn[Gn].helper=J(Vn[Gn],Kn),Vn[Gn].cache={},this.fonts.push(Vn[Gn])}Wn===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Bn(Hn){if(Hn){this.chars||(this.chars=[]);var Kn,Vn=Hn.length,Gn,er=this.chars.length,Wn;for(Kn=0;Kn<Vn;Kn+=1){for(Gn=0,Wn=!1;Gn<er;)this.chars[Gn].style===Hn[Kn].style&&this.chars[Gn].fFamily===Hn[Kn].fFamily&&this.chars[Gn].ch===Hn[Kn].ch&&(Wn=!0),Gn+=1;Wn||(this.chars.push(Hn[Kn]),er+=1)}}}function j(Hn,Kn,Vn){for(var Gn=0,er=this.chars.length;Gn<er;){if(this.chars[Gn].ch===Hn&&this.chars[Gn].style===Kn&&this.chars[Gn].fFamily===Vn)return this.chars[Gn];Gn+=1}return(typeof Hn=="string"&&Hn.charCodeAt(0)!==13||!Hn)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",Hn,Kn,Vn)),u}function vn(Hn,Kn,Vn){var Gn=this.getFontByName(Kn),er=Hn;if(!Gn.cache[er]){var Wn=Gn.helper;if(Hn===" "){var or=Wn.measureText("|"+Hn+"|"),cr=Wn.measureText("||");Gn.cache[er]=(or-cr)/100}else Gn.cache[er]=Wn.measureText(Hn)/100}return Gn.cache[er]*Vn}function Pn(Hn){for(var Kn=0,Vn=this.fonts.length;Kn<Vn;){if(this.fonts[Kn].fName===Hn)return this.fonts[Kn];Kn+=1}return this.fonts[0]}function Rn(Hn){var Kn=0,Vn=Hn.charCodeAt(0);if(Vn>=55296&&Vn<=56319){var Gn=Hn.charCodeAt(1);Gn>=56320&&Gn<=57343&&(Kn=(Vn-55296)*1024+Gn-56320+65536)}return Kn}function zn(Hn,Kn){var Vn=Hn.toString(16)+Kn.toString(16);return gn.indexOf(Vn)!==-1}function Un(Hn){return Hn===g}function qn(Hn){return Hn===m}function Qn(Hn){var Kn=Rn(Hn);return Kn>=y&&Kn<=b}function Jn(Hn){return Qn(Hn.substr(0,2))&&Qn(Hn.substr(2,2))}function Zn(Hn){return f.indexOf(Hn)!==-1}function Xn(Hn,Kn){var Vn=Rn(Hn.substr(Kn,2));if(Vn!==d)return!1;var Gn=0;for(Kn+=2;Gn<5;){if(Vn=Rn(Hn.substr(Kn,2)),Vn<v||Vn>p)return!1;Gn+=1,Kn+=2}return Rn(Hn.substr(Kn,2))===h}function nr(){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=Jn,sr.isRegionalCode=Qn,sr.isCombinedCharacter=Zn,sr.isRegionalFlag=Xn,sr.isVariationSelector=qn,sr.BLACK_FLAG_CODE_POINT=d;var ur={addChars:Bn,addFonts:Fn,getCharData:j,getFontByName:Pn,measureText:vn,checkLoadedFonts:w,setIsLoaded:nr};return sr.prototype=ur,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 d,h=f.length,v;for(d=0;d<h;d+=1)v=new GroupEffect(f[d],u),this.effectElements.push(v)}function GroupEffect(c,u){this.init(c,u)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(c,u){this.data=c,this.effectElements=[],this.initDynamicPropertyContainer(u);var f,d=this.data.ef.length,h,v=this.data.ef;for(f=0;f<d;f+=1){switch(h=null,v[f].ty){case 0:h=new SliderEffect(v[f],u,this);break;case 1:h=new AngleEffect(v[f],u,this);break;case 2:h=new ColorEffect(v[f],u,this);break;case 3:h=new PointEffect(v[f],u,this);break;case 4:case 7:h=new CheckboxEffect(v[f],u,this);break;case 10:h=new LayerIndexEffect(v[f],u,this);break;case 11:h=new MaskIndexEffect(v[f],u,this);break;case 5:h=new EffectsManager(v[f],u);break;default:h=new NoValueEffect(v[f]);break}h&&this.effectElements.push(h)}};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"),d=u("effects"),h=u("shape"),v=u("text"),p=u("comp");this.layerInterface=f(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var m=d.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(m),this.data.ty===0||this.data.xt?this.compInterface=p(this):this.data.ty===4?(this.layerInterface.shapeInterface=h(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=v(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var u=getBlendMode(this.data.bm),f=this.baseElement||this.layerElement;f.style["mix-blend-mode"]=u},initBaseData:function(u,f,d){this.globalData=f,this.comp=d,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 d,h=this.dynamicProperties.length;for(d=0;d<h;d+=1)(f||this._isParent&&this.dynamicProperties[d].propType==="transform")&&(this.dynamicProperties[d].getValue(),this.dynamicProperties[d]._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 d=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(d),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,d;for(this.completeLayers=!0,u=f-1;u>=0;u-=1)this.elements[u]||(d=this.layers[u],d.ip-d.st<=c-this.layers[u].st&&d.op-d.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,d,h=this.layers.length;for(u=0;u<f;u+=1)for(d=0;d<h;){if(this.layers[d].id===c[u].id){this.layers[d]=c[u];break}d+=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 d=this.elements,h=this.layers,v=0,p=h.length;v<p;)h[v].ind==u&&(!d[v]||d[v]===!0?(this.buildItem(v),this.addPendingElement(c)):(f.push(d[v]),d[v].setAsParent(),h[v].parent!==void 0?this.buildElementParenting(c,h[v].parent,f):c.setHierarchy(f))),v+=1},BaseRenderer.prototype.addPendingElement=function(c){this.pendingElements.push(c)},BaseRenderer.prototype.searchExtraCompositions=function(c){var u,f=c.length;for(u=0;u<f;u+=1)if(c[u].xt){var d=this.createComp(c[u]);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}},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 d,h=this.elements.length;for(d=0;d<h;d+=1)if(this.elements[d].data.nm===u){f=this.elements[d];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,d=0,h=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;d<h;){if(this.hierarchy[d].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}d+=1}if(this.finalTransform._matMdf)for(u=this.finalTransform.mProp.v.props,f.cloneFromProps(u),d=0;d<h;d+=1)f.multiply(this.hierarchy[d].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 d=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(d),u=1;u<f;u+=1){var h=this.localTransforms[u].matrix;d.multiply(h)}d.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var v=this.finalTransform.localOpacity;for(u=0;u<f;u+=1)v*=this.localTransforms[u].opacity*.01;this.finalTransform.localOpacity=v}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var u=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(u.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var f=0,d=u.length;for(f=0;f<d;f+=1)this.localTransforms.push(u[f])}}},globalToLocal:function(u){var f=[];f.push(this.finalTransform);for(var d=!0,h=this.comp;d;)h.finalTransform?(h.data.hasMask&&f.splice(0,0,h.finalTransform),h=h.comp):d=!1;var v,p=f.length,m;for(v=0;v<p;v+=1)m=f[v].mat.applyToPointArray(0,0,0),u=[u[0]-m[0],u[1]-m[1],0];return u},mHelper:new Matrix};function MaskElement(c,u,f){this.data=c,this.element=u,this.globalData=f,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var d=this.globalData.defs,h,v=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(v),this.solidPath="";var p,m=this.masksProperties,g=0,y=[],b,gn,x=createElementID(),re,w,J,Fn,Bn="clipPath",j="clip-path";for(h=0;h<v;h+=1)if((m[h].mode!=="a"&&m[h].mode!=="n"||m[h].inv||m[h].o.k!==100||m[h].o.x)&&(Bn="mask",j="mask"),(m[h].mode==="s"||m[h].mode==="i")&&g===0?(re=createNS("rect"),re.setAttribute("fill","#ffffff"),re.setAttribute("width",this.element.comp.data.w||0),re.setAttribute("height",this.element.comp.data.h||0),y.push(re)):re=null,p=createNS("path"),m[h].mode==="n")this.viewData[h]={op:PropertyFactory.getProp(this.element,m[h].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,m[h],3),elem:p,lastPath:""},d.appendChild(p);else{g+=1,p.setAttribute("fill",m[h].mode==="s"?"#000000":"#ffffff"),p.setAttribute("clip-rule","nonzero");var vn;if(m[h].x.k!==0?(Bn="mask",j="mask",Fn=PropertyFactory.getProp(this.element,m[h].x,0,null,this.element),vn=createElementID(),w=createNS("filter"),w.setAttribute("id",vn),J=createNS("feMorphology"),J.setAttribute("operator","erode"),J.setAttribute("in","SourceGraphic"),J.setAttribute("radius","0"),w.appendChild(J),d.appendChild(w),p.setAttribute("stroke",m[h].mode==="s"?"#000000":"#ffffff")):(J=null,Fn=null),this.storedData[h]={elem:p,x:Fn,expan:J,lastPath:"",lastOperator:"",filterId:vn,lastRadius:0},m[h].mode==="i"){gn=y.length;var Pn=createNS("g");for(b=0;b<gn;b+=1)Pn.appendChild(y[b]);var Rn=createNS("mask");Rn.setAttribute("mask-type","alpha"),Rn.setAttribute("id",x+"_"+g),Rn.appendChild(p),d.appendChild(Rn),Pn.setAttribute("mask","url("+getLocationHref()+"#"+x+"_"+g+")"),y.length=0,y.push(Pn)}else y.push(p);m[h].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[h]={elem:p,lastPath:"",op:PropertyFactory.getProp(this.element,m[h].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,m[h],3),invRect:re},this.viewData[h].prop.k||this.drawPath(m[h],this.viewData[h].prop.v,this.viewData[h])}for(this.maskElement=createNS(Bn),v=y.length,h=0;h<v;h+=1)this.maskElement.appendChild(y[h]);g>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(j,"url("+getLocationHref()+"#"+x+")"),d.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,d=this.masksProperties.length;for(f=0;f<d;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 h=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+")")),h.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 d=" M"+u.v[0][0]+","+u.v[0][1],h,v;for(v=u._length,h=1;h<v;h+=1)d+=" C"+u.o[h-1][0]+","+u.o[h-1][1]+" "+u.i[h][0]+","+u.i[h][1]+" "+u.v[h][0]+","+u.v[h][1];if(u.c&&v>1&&(d+=" C"+u.o[h-1][0]+","+u.o[h-1][1]+" "+u.i[0][0]+","+u.i[0][1]+" "+u.v[0][0]+","+u.v[0][1]),f.lastPath!==d){var p="";f.elem&&(u.c&&(p=c.inv?this.solidPath+d:d),f.elem.setAttribute("d",p)),f.lastPath=d}},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(d,h){var v=createNS("filter");return v.setAttribute("id",d),h!==!0&&(v.setAttribute("filterUnits","objectBoundingBox"),v.setAttribute("x","0%"),v.setAttribute("y","0%"),v.setAttribute("width","100%"),v.setAttribute("height","100%")),v}function f(){var d=createNS("feColorMatrix");return d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),d}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",d=c.data.ef?c.data.ef.length:0,h=createElementID(),v=filtersFactory.createFilter(h,!0),p=0;this.filters=[];var m;for(u=0;u<d;u+=1){m=null;var g=c.data.ef[u].ty;if(registeredEffects$1[g]){var y=registeredEffects$1[g].effect;m=new y(v,c.effectsManager.effectElements[u],c,idPrefix+p,f),f=idPrefix+p,registeredEffects$1[g].countsAsEffect&&(p+=1)}m&&this.filters.push(m)}p&&(c.globalData.defs.appendChild(v),c.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+h+")")),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,d=[];for(u=0;u<f;u+=1)this.filters[u].type===c&&d.push(this.filters[u]);return d};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 d=createNS("clipPath"),h=createNS("path");h.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var v=createElementID();if(d.setAttribute("id",v),d.appendChild(h),this.globalData.defs.appendChild(d),this.checkMasks()){var p=createNS("g");p.setAttribute("clip-path","url("+getLocationHref()+"#"+v+")"),p.appendChild(this.layerElement),this.transformedElement=p,u?u.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+v+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(u){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[u]){var f=this.layerId+"_"+u,d,h,v,p;if(u===1||u===3){var m=createNS("mask");m.setAttribute("id",f),m.setAttribute("mask-type",u===3?"luminance":"alpha"),v=createNS("use"),v.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),m.appendChild(v),this.globalData.defs.appendChild(m),!featureSupport.maskType&&u===1&&(m.setAttribute("mask-type","luminance"),d=createElementID(),h=filtersFactory.createFilter(d),this.globalData.defs.appendChild(h),h.appendChild(filtersFactory.createAlphaToLuminanceFilter()),p=createNS("g"),p.appendChild(v),m.appendChild(p),p.setAttribute("filter","url("+getLocationHref()+"#"+d+")"))}else if(u===2){var g=createNS("mask");g.setAttribute("id",f),g.setAttribute("mask-type","alpha");var y=createNS("g");g.appendChild(y),d=createElementID(),h=filtersFactory.createFilter(d);var b=createNS("feComponentTransfer");b.setAttribute("in","SourceGraphic"),h.appendChild(b);var gn=createNS("feFuncA");gn.setAttribute("type","table"),gn.setAttribute("tableValues","1.0 0.0"),b.appendChild(gn),this.globalData.defs.appendChild(h);var x=createNS("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),y.setAttribute("filter","url("+getLocationHref()+"#"+d+")"),y.appendChild(x),v=createNS("use"),v.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),y.appendChild(v),featureSupport.maskType||(g.setAttribute("mask-type","luminance"),h.appendChild(filtersFactory.createAlphaToLuminanceFilter()),p=createNS("g"),y.appendChild(x),p.appendChild(this.layerElement),y.appendChild(p)),this.globalData.defs.appendChild(g)}this.matteMasks[u]=f}return this.matteMasks[u]},setMatte:function(u){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+u+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(u){this.hierarchy=u},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var c={initElement:function(f,d,h){this.initFrame(),this.initBaseData(f,d,h),this.initTransform(f,d,h),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,d=this.shapeModifiers.length;for(f=0;f<d;f+=1)this.shapeModifiers[f].addShape(u)},isShapeInAnimatedModifiers:function(u){for(var f=0,d=this.shapeModifiers.length;f<d;)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 d;for(u=f-1;u>=0&&(d=this.shapeModifiers[u].processShapes(this._isFirstFrame),!d);u-=1);}},searchProcessedElement:function(u){for(var f=this.processedElements,d=0,h=f.length;d<h;){if(f[d].elem===u)return f[d].pos;d+=1}return 0},addProcessedElement:function(u,f){for(var d=this.processedElements,h=d.length;h;)if(h-=1,d[h].elem===u){d[h].pos=f;return}d.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 d=0,h=c.length;d<h;){if(c[d].mProps.dynamicProperties.length){this._isAnimated=!0;break}d+=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,d){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(d);var h,v=u.length||0,p;for(h=0;h<v;h+=1)p=PropertyFactory.getProp(c,u[h].v,0,0,this),this.k=p.k||this.k,this.dataProps[h]={n:u[h].n,p};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(c){if(!(this.elem.globalData.frameId===this.frameId&&!c)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||c,this._mdf)){var u=0,f=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),u=0;u<f;u+=1)this.dataProps[u].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[u].p.v:this.dashArray[u]=this.dataProps[u].p.v:this.dashoffset[0]=this.dataProps[u].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(c,u.o,0,.01,this),this.w=PropertyFactory.getProp(c,u.w,0,null,this),this.d=new DashProperty(c,u.d||{},"svg",this),this.c=PropertyFactory.getProp(c,u.c,1,255,this),this.style=f,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(c,u.o,0,.01,this),this.c=PropertyFactory.getProp(c,u.c,1,255,this),this.style=f}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.style=f}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(c,u,f){this.data=u,this.c=createTypedArray("uint8c",u.p*4);var d=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",d),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=d,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,d=this.o.length/2,h;f<d;){if(h=Math.abs(c[f*4]-c[u*4+f*2]),h>.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,d,h;for(u=0;u<f;u+=1)d=u%4===0?100:255,h=Math.round(this.prop.v[u]*d),this.c[u]!==h&&(this.c[u]=h,this._cmdf=!c);if(this.o.length)for(f=this.prop.v.length,u=this.data.p*4;u<f;u+=1)d=u%2===0?100:1,h=u%2===0?Math.round(this.prop.v[u]*100):this.prop.v[u],this.o[u-this.data.p*4]!==h&&(this.o[u-this.data.p*4]=h,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(),d=createNS(u.t===1?"linearGradient":"radialGradient");d.setAttribute("id",f),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse");var h=[],v,p,m;for(m=u.g.p*4,p=0;p<m;p+=4)v=createNS("stop"),d.appendChild(v),h.push(v);c.setAttribute(u.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+f+")"),this.gf=d,this.cst=h},SVGGradientFillStyleData.prototype.setGradientOpacity=function(c,u){if(this.g._hasOpacity&&!this.g._collapsable){var f,d,h,v=createNS("mask"),p=createNS("path");v.appendChild(p);var m=createElementID(),g=createElementID();v.setAttribute("id",g);var y=createNS(c.t===1?"linearGradient":"radialGradient");y.setAttribute("id",m),y.setAttribute("spreadMethod","pad"),y.setAttribute("gradientUnits","userSpaceOnUse"),h=c.g.k.k[0].s?c.g.k.k[0].s.length:c.g.k.k.length;var b=this.stops;for(d=c.g.p*4;d<h;d+=2)f=createNS("stop"),f.setAttribute("stop-color","rgb(255,255,255)"),y.appendChild(f),b.push(f);p.setAttribute(c.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+m+")"),c.ty==="gs"&&(p.setAttribute("stroke-linecap",lineCapEnum[c.lc||2]),p.setAttribute("stroke-linejoin",lineJoinEnum[c.lj||2]),c.lj===1&&p.setAttribute("stroke-miterlimit",c.ml)),this.of=y,this.ms=v,this.ost=b,this.maskId=g,u.msElem=p}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(c,u.w,0,null,this),this.d=new DashProperty(c,u.d||{},"svg",this),this.initGradientData(c,u,f),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(c,u,f){this.transform={mProps:c,op:u,container:f},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(u,f,d,h){if(f===0)return"";var v=u.o,p=u.i,m=u.v,g,y=" M"+h.applyToPointStringified(m[0][0],m[0][1]);for(g=1;g<f;g+=1)y+=" C"+h.applyToPointStringified(v[g-1][0],v[g-1][1])+" "+h.applyToPointStringified(p[g][0],p[g][1])+" "+h.applyToPointStringified(m[g][0],m[g][1]);return d&&f&&(y+=" C"+h.applyToPointStringified(v[g-1][0],v[g-1][1])+" "+h.applyToPointStringified(p[0][0],p[0][1])+" "+h.applyToPointStringified(m[0][0],m[0][1]),y+="z"),y},SVGElementsRenderer=function(){var c=new Matrix,u=new Matrix,f={createRenderFunction:d};function d(gn){switch(gn.ty){case"fl":return m;case"gf":return y;case"gs":return g;case"st":return b;case"sh":case"el":case"rc":case"sr":return p;case"tr":return h;case"no":return v;default:return null}}function h(gn,x,re){(re||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(re||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function v(){}function p(gn,x,re){var w,J,Fn,Bn,j,vn,Pn=x.styles.length,Rn=x.lvl,zn,Un,qn,Qn;for(vn=0;vn<Pn;vn+=1){if(Bn=x.sh._mdf||re,x.styles[vn].lvl<Rn){for(Un=u.reset(),qn=Rn-x.styles[vn].lvl,Qn=x.transformers.length-1;!Bn&&qn>0;)Bn=x.transformers[Qn].mProps._mdf||Bn,qn-=1,Qn-=1;if(Bn)for(qn=Rn-x.styles[vn].lvl,Qn=x.transformers.length-1;qn>0;)Un.multiply(x.transformers[Qn].mProps.v),qn-=1,Qn-=1}else Un=c;if(zn=x.sh.paths,J=zn._length,Bn){for(Fn="",w=0;w<J;w+=1)j=zn.shapes[w],j&&j._length&&(Fn+=buildShapeString(j,j._length,j.c,Un));x.caches[vn]=Fn}else Fn=x.caches[vn];x.styles[vn].d+=gn.hd===!0?"":Fn,x.styles[vn]._mdf=Bn||x.styles[vn]._mdf}}function m(gn,x,re){var w=x.style;(x.c._mdf||re)&&w.pElem.setAttribute("fill","rgb("+bmFloor(x.c.v[0])+","+bmFloor(x.c.v[1])+","+bmFloor(x.c.v[2])+")"),(x.o._mdf||re)&&w.pElem.setAttribute("fill-opacity",x.o.v)}function g(gn,x,re){y(gn,x,re),b(gn,x,re)}function y(gn,x,re){var w=x.gf,J=x.g._hasOpacity,Fn=x.s.v,Bn=x.e.v;if(x.o._mdf||re){var j=gn.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(j,x.o.v)}if(x.s._mdf||re){var vn=gn.t===1?"x1":"cx",Pn=vn==="x1"?"y1":"cy";w.setAttribute(vn,Fn[0]),w.setAttribute(Pn,Fn[1]),J&&!x.g._collapsable&&(x.of.setAttribute(vn,Fn[0]),x.of.setAttribute(Pn,Fn[1]))}var Rn,zn,Un,qn;if(x.g._cmdf||re){Rn=x.cst;var Qn=x.g.c;for(Un=Rn.length,zn=0;zn<Un;zn+=1)qn=Rn[zn],qn.setAttribute("offset",Qn[zn*4]+"%"),qn.setAttribute("stop-color","rgb("+Qn[zn*4+1]+","+Qn[zn*4+2]+","+Qn[zn*4+3]+")")}if(J&&(x.g._omdf||re)){var Jn=x.g.o;for(x.g._collapsable?Rn=x.cst:Rn=x.ost,Un=Rn.length,zn=0;zn<Un;zn+=1)qn=Rn[zn],x.g._collapsable||qn.setAttribute("offset",Jn[zn*2]+"%"),qn.setAttribute("stop-opacity",Jn[zn*2+1])}if(gn.t===1)(x.e._mdf||re)&&(w.setAttribute("x2",Bn[0]),w.setAttribute("y2",Bn[1]),J&&!x.g._collapsable&&(x.of.setAttribute("x2",Bn[0]),x.of.setAttribute("y2",Bn[1])));else{var Zn;if((x.s._mdf||x.e._mdf||re)&&(Zn=Math.sqrt(Math.pow(Fn[0]-Bn[0],2)+Math.pow(Fn[1]-Bn[1],2)),w.setAttribute("r",Zn),J&&!x.g._collapsable&&x.of.setAttribute("r",Zn)),x.e._mdf||x.h._mdf||x.a._mdf||re){Zn||(Zn=Math.sqrt(Math.pow(Fn[0]-Bn[0],2)+Math.pow(Fn[1]-Bn[1],2)));var Xn=Math.atan2(Bn[1]-Fn[1],Bn[0]-Fn[0]),nr=x.h.v;nr>=1?nr=.99:nr<=-1&&(nr=-.99);var sr=Zn*nr,ur=Math.cos(Xn+x.a.v)*sr+Fn[0],Hn=Math.sin(Xn+x.a.v)*sr+Fn[1];w.setAttribute("fx",ur),w.setAttribute("fy",Hn),J&&!x.g._collapsable&&(x.of.setAttribute("fx",ur),x.of.setAttribute("fy",Hn))}}}function b(gn,x,re){var w=x.style,J=x.d;J&&(J._mdf||re)&&J.dashStr&&(w.pElem.setAttribute("stroke-dasharray",J.dashStr),w.pElem.setAttribute("stroke-dashoffset",J.dashoffset[0])),x.c&&(x.c._mdf||re)&&w.pElem.setAttribute("stroke","rgb("+bmFloor(x.c.v[0])+","+bmFloor(x.c.v[1])+","+bmFloor(x.c.v[2])+")"),(x.o._mdf||re)&&w.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||re)&&(w.pElem.setAttribute("stroke-width",x.w.v),w.msElem&&w.msElem.setAttribute("stroke-width",x.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,d,h=this.stylesList.length,v,p=[],m=!1;for(d=0;d<h;d+=1){for(v=this.stylesList[d],m=!1,p.length=0,c=0;c<u;c+=1)f=this.shapes[c],f.styles.indexOf(v)!==-1&&(p.push(f),m=f._isAnimated||m);p.length>1&&m&&this.setShapesAsAnimated(p)}},SVGShapeElement.prototype.setShapesAsAnimated=function(c){var u,f=c.length;for(u=0;u<f;u+=1)c[u].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(c,u){var f,d=new SVGStyleData(c,u),h=d.pElem;if(c.ty==="st")f=new SVGStrokeStyleData(this,c,d);else if(c.ty==="fl")f=new SVGFillStyleData(this,c,d);else if(c.ty==="gf"||c.ty==="gs"){var v=c.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;f=new v(this,c,d),this.globalData.defs.appendChild(f.gf),f.maskId&&(this.globalData.defs.appendChild(f.ms),this.globalData.defs.appendChild(f.of),h.setAttribute("mask","url("+getLocationHref()+"#"+f.maskId+")"))}else c.ty==="no"&&(f=new SVGNoStyleData(this,c,d));return(c.ty==="st"||c.ty==="gs")&&(h.setAttribute("stroke-linecap",lineCapEnum[c.lc||2]),h.setAttribute("stroke-linejoin",lineJoinEnum[c.lj||2]),h.setAttribute("fill-opacity","0"),c.lj===1&&h.setAttribute("stroke-miterlimit",c.ml)),c.r===2&&h.setAttribute("fill-rule","evenodd"),c.ln&&h.setAttribute("id",c.ln),c.cl&&h.setAttribute("class",c.cl),c.bm&&(h.style["mix-blend-mode"]=getBlendMode(c.bm)),this.stylesList.push(d),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),d=new SVGTransformData(f,f.o,u);return this.addToAnimatedContents(c,d),d},SVGShapeElement.prototype.createShapeElement=function(c,u,f){var d=4;c.ty==="rc"?d=5:c.ty==="el"?d=6:c.ty==="sr"&&(d=7);var h=ShapePropertyFactory.getShapeProp(this,c,d,this),v=new SVGShapeData(u,f,h);return this.shapes.push(v),this.addShapeToModifiers(v),this.addToAnimatedContents(c,v),v},SVGShapeElement.prototype.addToAnimatedContents=function(c,u){for(var f=0,d=this.animatedContents.length;f<d;){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,d=this.stylesList.length;for(f=0;f<d;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,d,h,v,p){var m=[].concat(v),g,y=c.length-1,b,gn,x=[],re=[],w,J,Fn;for(g=y;g>=0;g-=1){if(Fn=this.searchProcessedElement(c[g]),Fn?u[g]=f[Fn-1]:c[g]._render=p,c[g].ty==="fl"||c[g].ty==="st"||c[g].ty==="gf"||c[g].ty==="gs"||c[g].ty==="no")Fn?u[g].style.closed=!1:u[g]=this.createStyleElement(c[g],h),c[g]._render&&u[g].style.pElem.parentNode!==d&&d.appendChild(u[g].style.pElem),x.push(u[g].style);else if(c[g].ty==="gr"){if(!Fn)u[g]=this.createGroupElement(c[g]);else for(gn=u[g].it.length,b=0;b<gn;b+=1)u[g].prevViewData[b]=u[g].it[b];this.searchShapes(c[g].it,u[g].it,u[g].prevViewData,u[g].gr,h+1,m,p),c[g]._render&&u[g].gr.parentNode!==d&&d.appendChild(u[g].gr)}else c[g].ty==="tr"?(Fn||(u[g]=this.createTransformElement(c[g],d)),w=u[g].transform,m.push(w)):c[g].ty==="sh"||c[g].ty==="rc"||c[g].ty==="el"||c[g].ty==="sr"?(Fn||(u[g]=this.createShapeElement(c[g],m,h)),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"?(Fn?(J=u[g],J.closed=!1):(J=ShapeModifiers.getModifier(c[g].ty),J.init(this,c[g]),u[g]=J,this.shapeModifiers.push(J)),re.push(J)):c[g].ty==="rp"&&(Fn?(J=u[g],J.closed=!0):(J=ShapeModifiers.getModifier(c[g].ty),u[g]=J,J.init(this,c,g,u),this.shapeModifiers.push(J),p=!1),re.push(J));this.addProcessedElement(c[g],g+1)}for(y=x.length,g=0;g<y;g+=1)x[g].closed=!0;for(y=re.length,g=0;g<y;g+=1)re[g].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var c,u=this.stylesList.length;for(c=0;c<u;c+=1)this.stylesList[c].reset();for(this.renderShape(),c=0;c<u;c+=1)(this.stylesList[c]._mdf||this._isFirstFrame)&&(this.stylesList[c].msElem&&(this.stylesList[c].msElem.setAttribute("d",this.stylesList[c].d),this.stylesList[c].d="M0 0"+this.stylesList[c].d),this.stylesList[c].pElem.setAttribute("d",this.stylesList[c].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var c,u=this.animatedContents.length,f;for(c=0;c<u;c+=1)f=this.animatedContents[c],(this._isFirstFrame||f.element._isAnimated)&&f.data!==!0&&f.fn(f.data,f.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(c,u,f,d,h,v){this.o=c,this.sw=u,this.sc=f,this.fc=d,this.m=h,this.p=v,this._mdf={o:!0,sw:!!u,sc:!!f,fc:!!d,m:!0,p:!0}}LetterProps.prototype.update=function(c,u,f,d,h,v){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var p=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,p=!0),this.sw!==u&&(this.sw=u,this._mdf.sw=!0,p=!0),this.sc!==f&&(this.sc=f,this._mdf.sc=!0,p=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,p=!0),this.m!==h&&(this.m=h,this._mdf.m=!0,p=!0),v.length&&(this.p[0]!==v[0]||this.p[1]!==v[1]||this.p[4]!==v[4]||this.p[5]!==v[5]||this.p[12]!==v[12]||this.p[13]!==v[13])&&(this.p=v,this._mdf.p=!0,p=!0),p};function TextProperty(c,u){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,u.d&&u.d.sid&&(u.d=c.globalData.slotManager.getProp(u.d)),this.data=u,this.elem=c,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(c,u){for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(c[f]=u[f]);return c},TextProperty.prototype.setCurrentData=function(c){c.__complete||this.completeTextData(c),this.currentData=c,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(c){this.effectsSequence.push(c),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(c){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!c)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var u=this.currentData,f=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var d,h=this.effectsSequence.length,v=c||this.data.d.k[this.keysIndex].s;for(d=0;d<h;d+=1)f!==this.keysIndex?v=this.effectsSequence[d](v,v.t):v=this.effectsSequence[d](this.currentData,v.t);u!==v&&this.setCurrentData(v),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var c=this.data.d.k,u=this.elem.comp.renderedFrame,f=0,d=c.length;f<=d-1&&!(f===d-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,d=c.length,h,v,p=!1,m=!1,g="";f<d;)p=m,m=!1,h=c.charCodeAt(f),g=c.charAt(f),FontManager.isCombinedCharacter(h)?p=!0:h>=55296&&h<=56319?FontManager.isRegionalFlag(c,f)?g=c.substr(f,14):(v=c.charCodeAt(f+1),v>=56320&&v<=57343&&(FontManager.isModifier(h,v)?(g=c.substr(f,2),p=!0):FontManager.isFlagEmoji(c.substr(f,4))?g=c.substr(f,4):g=c.substr(f,2))):h>56319?(v=c.charCodeAt(f+1),FontManager.isVariationSelector(h)&&(p=!0)):FontManager.isZeroWidthJoiner(h)&&(p=!0,m=!0),p?(u[u.length-1]+=g,p=!1):u.push(g),f+=g.length;return u},TextProperty.prototype.completeTextData=function(c){c.__complete=!0;var u=this.elem.globalData.fontManager,f=this.data,d=[],h,v,p,m=0,g,y=f.m.g,b=0,gn=0,x=0,re=[],w=0,J=0,Fn,Bn,j=u.getFontByName(c.f),vn,Pn=0,Rn=getFontProperties(j);c.fWeight=Rn.weight,c.fStyle=Rn.style,c.finalSize=c.s,c.finalText=this.buildFinalText(c.t),v=c.finalText.length,c.finalLineHeight=c.lh;var zn=c.tr/1e3*c.finalSize,Un;if(c.sz)for(var qn=!0,Qn=c.sz[0],Jn=c.sz[1],Zn,Xn;qn;){Xn=this.buildFinalText(c.t),Zn=0,w=0,v=Xn.length,zn=c.tr/1e3*c.finalSize;var nr=-1;for(h=0;h<v;h+=1)Un=Xn[h].charCodeAt(0),p=!1,Xn[h]===" "?nr=h:(Un===13||Un===3)&&(w=0,p=!0,Zn+=c.finalLineHeight||c.finalSize*1.2),u.chars?(vn=u.getCharData(Xn[h],j.fStyle,j.fFamily),Pn=p?0:vn.w*c.finalSize/100):Pn=u.measureText(Xn[h],c.f,c.finalSize),w+Pn>Qn&&Xn[h]!==" "?(nr===-1?v+=1:h=nr,Zn+=c.finalLineHeight||c.finalSize*1.2,Xn.splice(h,nr===h?1:0,"\r"),nr=-1,w=0):(w+=Pn,w+=zn);Zn+=j.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&Jn<Zn?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Xn,v=c.finalText.length,qn=!1)}w=-zn,Pn=0;var sr=0,ur;for(h=0;h<v;h+=1)if(p=!1,ur=c.finalText[h],Un=ur.charCodeAt(0),Un===13||Un===3?(sr=0,re.push(w),J=w>J?w:J,w=-2*zn,g="",p=!0,x+=1):g=ur,u.chars?(vn=u.getCharData(ur,j.fStyle,u.getFontByName(c.f).fFamily),Pn=p?0:vn.w*c.finalSize/100):Pn=u.measureText(g,c.f,c.finalSize),ur===" "?sr+=Pn+zn:(w+=Pn+zn+sr,sr=0),d.push({l:Pn,an:Pn,add:b,n:p,anIndexes:[],val:g,line:x,animatorJustifyOffset:0}),y==2){if(b+=Pn,g===""||g===" "||h===v-1){for((g===""||g===" ")&&(b-=Pn);gn<=h;)d[gn].an=b,d[gn].ind=m,d[gn].extra=Pn,gn+=1;m+=1,b=0}}else if(y==3){if(b+=Pn,g===""||h===v-1){for(g===""&&(b-=Pn);gn<=h;)d[gn].an=b,d[gn].ind=m,d[gn].extra=Pn,gn+=1;b=0,m+=1}}else d[m].ind=m,d[m].extra=0,m+=1;if(c.l=d,J=w>J?w:J,re.push(w),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=J,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0}c.lineWidths=re;var Hn=f.a,Kn,Vn;Bn=Hn.length;var Gn,er,Wn=[];for(Fn=0;Fn<Bn;Fn+=1){for(Kn=Hn[Fn],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),er=0,Gn=Kn.s.b,h=0;h<v;h+=1)Vn=d[h],Vn.anIndexes[Fn]=er,(Gn==1&&Vn.val!==""||Gn==2&&Vn.val!==""&&Vn.val!==" "||Gn==3&&(Vn.n||Vn.val==" "||h==v-1)||Gn==4&&(Vn.n||h==v-1))&&(Kn.s.rn===1&&Wn.push(er),er+=1);f.a[Fn].s.totalChars=er;var or=-1,cr;if(Kn.s.rn===1)for(h=0;h<v;h+=1)Vn=d[h],or!=Vn.anIndexes[Fn]&&(or=Vn.anIndexes[Fn],cr=Wn.splice(Math.floor(Math.random()*Wn.length),1)[0]),Vn.anIndexes[Fn]=cr}c.yOffset=c.finalLineHeight||c.finalSize*1.2,c.ls=c.ls||0,c.ascent=j.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 d(v,p){this._currentTextLength=-1,this.k=!1,this.data=p,this.elem=v,this.comp=v.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(v),this.s=PropertyFactory.getProp(v,p.s||{k:0},0,0,this),"e"in p?this.e=PropertyFactory.getProp(v,p.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(v,p.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(v,p.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(v,p.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(v,p.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(v,p.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(p){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var m=0,g=0,y=1,b=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:b=1+this.xe.v/100;var gn=BezierFactory.getBezierEasing(m,g,y,b).get,x=0,re=this.finalS,w=this.finalE,J=this.data.sh;if(J===2)w===re?x=p>=w?1:0:x=c(0,u(.5/(w-re)+(p-re)/(w-re),1)),x=gn(x);else if(J===3)w===re?x=p>=w?0:1:x=1-c(0,u(.5/(w-re)+(p-re)/(w-re),1)),x=gn(x);else if(J===4)w===re?x=0:(x=c(0,u(.5/(w-re)+(p-re)/(w-re),1)),x<.5?x*=2:x=1-2*(x-.5)),x=gn(x);else if(J===5){if(w===re)x=0;else{var Fn=w-re;p=u(c(0,p+.5-re),w-re);var Bn=-Fn/2+p,j=Fn/2;x=Math.sqrt(1-Bn*Bn/(j*j))}x=gn(x)}else J===6?(w===re?x=0:(p=u(c(0,p+.5-re),w-re),x=(1+Math.cos(Math.PI+Math.PI*2*p/(w-re)))/2),x=gn(x)):(p>=f(re)&&(p-re<0?x=c(0,u(u(w,1)-(re-p),1)):x=c(0,u(w-p,1))),x=gn(x));if(this.sm.v!==100){var vn=this.sm.v*.01;vn===0&&(vn=1e-8);var Pn=.5-vn*.5;x<Pn?x=0:(x=(x-Pn)/vn,x>1&&(x=1))}return x*this.a.v},getValue:function(p){this.iterateDynamicProperties(),this._mdf=p||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,p&&this.data.r===2&&(this.e.v=this._currentTextLength);var m=this.data.r===2?1:100/this.data.totalChars,g=this.o.v/m,y=this.s.v/m+g,b=this.e.v/m+g;if(y>b){var gn=y;y=b,b=gn}this.finalS=y,this.finalE=b}},extendPrototype([DynamicPropertyContainer],d);function h(v,p,m){return new d(v,p)}return{getTextSelectorProp:h}}();function TextAnimatorDataProperty(c,u,f){var d={propType:!1},h=PropertyFactory.getProp,v=u.a;this.a={r:v.r?h(c,v.r,0,degToRads,f):d,rx:v.rx?h(c,v.rx,0,degToRads,f):d,ry:v.ry?h(c,v.ry,0,degToRads,f):d,sk:v.sk?h(c,v.sk,0,degToRads,f):d,sa:v.sa?h(c,v.sa,0,degToRads,f):d,s:v.s?h(c,v.s,1,.01,f):d,a:v.a?h(c,v.a,1,0,f):d,o:v.o?h(c,v.o,0,.01,f):d,p:v.p?h(c,v.p,1,0,f):d,sw:v.sw?h(c,v.sw,0,0,f):d,sc:v.sc?h(c,v.sc,1,0,f):d,fc:v.fc?h(c,v.fc,1,0,f):d,fh:v.fh?h(c,v.fh,0,0,f):d,fs:v.fs?h(c,v.fs,0,.01,f):d,fb:v.fb?h(c,v.fb,0,.01,f):d,t:v.t?h(c,v.t,0,0,f):d},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,d=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:d(this._elem,this._textData.p.a,0,0,this),f:d(this._elem,this._textData.p.f,0,0,this),l:d(this._elem,this._textData.p.l,0,0,this),r:d(this._elem,this._textData.p.r,0,0,this),p:d(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=d(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,d=this._animatorsData,h=this._textData,v=this.mHelper,p=this._renderType,m=this.renderedLetters.length,g,y,b,gn,x=c.l,re,w,J,Fn,Bn,j,vn,Pn,Rn,zn,Un,qn,Qn,Jn,Zn;if(this._hasMaskedPath){if(Zn=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Xn=Zn.v;this._pathData.r.v&&(Xn=Xn.reverse()),re={tLength:0,segments:[]},gn=Xn._length-1;var nr;for(qn=0,b=0;b<gn;b+=1)nr=bez.buildBezierData(Xn.v[b],Xn.v[b+1],[Xn.o[b][0]-Xn.v[b][0],Xn.o[b][1]-Xn.v[b][1]],[Xn.i[b+1][0]-Xn.v[b+1][0],Xn.i[b+1][1]-Xn.v[b+1][1]]),re.tLength+=nr.segmentLength,re.segments.push(nr),qn+=nr.segmentLength;b=gn,Zn.v.c&&(nr=bez.buildBezierData(Xn.v[b],Xn.v[0],[Xn.o[b][0]-Xn.v[b][0],Xn.o[b][1]-Xn.v[b][1]],[Xn.i[0][0]-Xn.v[0][0],Xn.i[0][1]-Xn.v[0][1]]),re.tLength+=nr.segmentLength,re.segments.push(nr),qn+=nr.segmentLength),this._pathData.pi=re}if(re=this._pathData.pi,w=this._pathData.f.v,vn=0,j=1,Fn=0,Bn=!0,zn=re.segments,w<0&&Zn.v.c)for(re.tLength<Math.abs(w)&&(w=-Math.abs(w)%re.tLength),vn=zn.length-1,Rn=zn[vn].points,j=Rn.length-1;w<0;)w+=Rn[j].partialLength,j-=1,j<0&&(vn-=1,Rn=zn[vn].points,j=Rn.length-1);Rn=zn[vn].points,Pn=Rn[j-1],J=Rn[j],Un=J.partialLength}gn=x.length,g=0,y=0;var sr=c.finalSize*1.2*.714,ur=!0,Hn,Kn,Vn,Gn,er;Gn=d.length;var Wn,or=-1,cr,ar,tr,pr=w,Yn=vn,ir=j,lr=-1,vr,dr,yr,fr,mr,xr,Cr,br,hr="",gr=this.defaultPropsArray,Er;if(c.j===2||c.j===1){var wr=0,_r=0,Rr=c.j===2?-.5:-1,Mr=0,Dr=!0;for(b=0;b<gn;b+=1)if(x[b].n){for(wr&&(wr+=_r);Mr<b;)x[Mr].animatorJustifyOffset=wr,Mr+=1;wr=0,Dr=!0}else{for(Vn=0;Vn<Gn;Vn+=1)Hn=d[Vn].a,Hn.t.propType&&(Dr&&c.j===2&&(_r+=Hn.t.v*Rr),Kn=d[Vn].s,Wn=Kn.getMult(x[b].anIndexes[Vn],h.a[Vn].s.totalChars),Wn.length?wr+=Hn.t.v*Wn[0]*Rr:wr+=Hn.t.v*Wn*Rr);Dr=!1}for(wr&&(wr+=_r);Mr<b;)x[Mr].animatorJustifyOffset=wr,Mr+=1}for(b=0;b<gn;b+=1){if(v.reset(),vr=1,x[b].n)g=0,y+=c.yOffset,y+=ur?1:0,w=pr,ur=!1,this._hasMaskedPath&&(vn=Yn,j=ir,Rn=zn[vn].points,Pn=Rn[j-1],J=Rn[j],Un=J.partialLength,Fn=0),hr="",br="",xr="",Er="",gr=this.defaultPropsArray;else{if(this._hasMaskedPath){if(lr!==x[b].line){switch(c.j){case 1:w+=qn-c.lineWidths[x[b].line];break;case 2:w+=(qn-c.lineWidths[x[b].line])/2;break}lr=x[b].line}or!==x[b].ind&&(x[or]&&(w+=x[or].extra),w+=x[b].an/2,or=x[b].ind),w+=f[0]*x[b].an*.005;var Br=0;for(Vn=0;Vn<Gn;Vn+=1)Hn=d[Vn].a,Hn.p.propType&&(Kn=d[Vn].s,Wn=Kn.getMult(x[b].anIndexes[Vn],h.a[Vn].s.totalChars),Wn.length?Br+=Hn.p.v[0]*Wn[0]:Br+=Hn.p.v[0]*Wn),Hn.a.propType&&(Kn=d[Vn].s,Wn=Kn.getMult(x[b].anIndexes[Vn],h.a[Vn].s.totalChars),Wn.length?Br+=Hn.a.v[0]*Wn[0]:Br+=Hn.a.v[0]*Wn);for(Bn=!0,this._pathData.a.v&&(w=x[0].an*.5+(qn-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*or/(gn-1),w+=this._pathData.f.v);Bn;)Fn+Un>=w+Br||!Rn?(Qn=(w+Br-Fn)/J.partialLength,ar=Pn.point[0]+(J.point[0]-Pn.point[0])*Qn,tr=Pn.point[1]+(J.point[1]-Pn.point[1])*Qn,v.translate(-f[0]*x[b].an*.005,-(f[1]*sr)*.01),Bn=!1):Rn&&(Fn+=J.partialLength,j+=1,j>=Rn.length&&(j=0,vn+=1,zn[vn]?Rn=zn[vn].points:Zn.v.c?(j=0,vn=0,Rn=zn[vn].points):(Fn-=J.partialLength,Rn=null)),Rn&&(Pn=J,J=Rn[j],Un=J.partialLength));cr=x[b].an/2-x[b].add,v.translate(-cr,0,0)}else cr=x[b].an/2-x[b].add,v.translate(-cr,0,0),v.translate(-f[0]*x[b].an*.005,-f[1]*sr*.01,0);for(Vn=0;Vn<Gn;Vn+=1)Hn=d[Vn].a,Hn.t.propType&&(Kn=d[Vn].s,Wn=Kn.getMult(x[b].anIndexes[Vn],h.a[Vn].s.totalChars),(g!==0||c.j!==0)&&(this._hasMaskedPath?Wn.length?w+=Hn.t.v*Wn[0]:w+=Hn.t.v*Wn:Wn.length?g+=Hn.t.v*Wn[0]:g+=Hn.t.v*Wn));for(c.strokeWidthAnim&&(yr=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&&(fr=[c.fc[0],c.fc[1],c.fc[2]]),Vn=0;Vn<Gn;Vn+=1)Hn=d[Vn].a,Hn.a.propType&&(Kn=d[Vn].s,Wn=Kn.getMult(x[b].anIndexes[Vn],h.a[Vn].s.totalChars),Wn.length?v.translate(-Hn.a.v[0]*Wn[0],-Hn.a.v[1]*Wn[1],Hn.a.v[2]*Wn[2]):v.translate(-Hn.a.v[0]*Wn,-Hn.a.v[1]*Wn,Hn.a.v[2]*Wn));for(Vn=0;Vn<Gn;Vn+=1)Hn=d[Vn].a,Hn.s.propType&&(Kn=d[Vn].s,Wn=Kn.getMult(x[b].anIndexes[Vn],h.a[Vn].s.totalChars),Wn.length?v.scale(1+(Hn.s.v[0]-1)*Wn[0],1+(Hn.s.v[1]-1)*Wn[1],1):v.scale(1+(Hn.s.v[0]-1)*Wn,1+(Hn.s.v[1]-1)*Wn,1));for(Vn=0;Vn<Gn;Vn+=1){if(Hn=d[Vn].a,Kn=d[Vn].s,Wn=Kn.getMult(x[b].anIndexes[Vn],h.a[Vn].s.totalChars),Hn.sk.propType&&(Wn.length?v.skewFromAxis(-Hn.sk.v*Wn[0],Hn.sa.v*Wn[1]):v.skewFromAxis(-Hn.sk.v*Wn,Hn.sa.v*Wn)),Hn.r.propType&&(Wn.length?v.rotateZ(-Hn.r.v*Wn[2]):v.rotateZ(-Hn.r.v*Wn)),Hn.ry.propType&&(Wn.length?v.rotateY(Hn.ry.v*Wn[1]):v.rotateY(Hn.ry.v*Wn)),Hn.rx.propType&&(Wn.length?v.rotateX(Hn.rx.v*Wn[0]):v.rotateX(Hn.rx.v*Wn)),Hn.o.propType&&(Wn.length?vr+=(Hn.o.v*Wn[0]-vr)*Wn[0]:vr+=(Hn.o.v*Wn-vr)*Wn),c.strokeWidthAnim&&Hn.sw.propType&&(Wn.length?yr+=Hn.sw.v*Wn[0]:yr+=Hn.sw.v*Wn),c.strokeColorAnim&&Hn.sc.propType)for(mr=0;mr<3;mr+=1)Wn.length?dr[mr]+=(Hn.sc.v[mr]-dr[mr])*Wn[0]:dr[mr]+=(Hn.sc.v[mr]-dr[mr])*Wn;if(c.fillColorAnim&&c.fc){if(Hn.fc.propType)for(mr=0;mr<3;mr+=1)Wn.length?fr[mr]+=(Hn.fc.v[mr]-fr[mr])*Wn[0]:fr[mr]+=(Hn.fc.v[mr]-fr[mr])*Wn;Hn.fh.propType&&(Wn.length?fr=addHueToRGB(fr,Hn.fh.v*Wn[0]):fr=addHueToRGB(fr,Hn.fh.v*Wn)),Hn.fs.propType&&(Wn.length?fr=addSaturationToRGB(fr,Hn.fs.v*Wn[0]):fr=addSaturationToRGB(fr,Hn.fs.v*Wn)),Hn.fb.propType&&(Wn.length?fr=addBrightnessToRGB(fr,Hn.fb.v*Wn[0]):fr=addBrightnessToRGB(fr,Hn.fb.v*Wn))}}for(Vn=0;Vn<Gn;Vn+=1)Hn=d[Vn].a,Hn.p.propType&&(Kn=d[Vn].s,Wn=Kn.getMult(x[b].anIndexes[Vn],h.a[Vn].s.totalChars),this._hasMaskedPath?Wn.length?v.translate(0,Hn.p.v[1]*Wn[0],-Hn.p.v[2]*Wn[1]):v.translate(0,Hn.p.v[1]*Wn,-Hn.p.v[2]*Wn):Wn.length?v.translate(Hn.p.v[0]*Wn[0],Hn.p.v[1]*Wn[1],-Hn.p.v[2]*Wn[2]):v.translate(Hn.p.v[0]*Wn,Hn.p.v[1]*Wn,-Hn.p.v[2]*Wn));if(c.strokeWidthAnim&&(xr=yr<0?0:yr),c.strokeColorAnim&&(Cr="rgb("+Math.round(dr[0]*255)+","+Math.round(dr[1]*255)+","+Math.round(dr[2]*255)+")"),c.fillColorAnim&&c.fc&&(br="rgb("+Math.round(fr[0]*255)+","+Math.round(fr[1]*255)+","+Math.round(fr[2]*255)+")"),this._hasMaskedPath){if(v.translate(0,-c.ls),v.translate(0,f[1]*sr*.01+y,0),this._pathData.p.v){Jn=(J.point[1]-Pn.point[1])/(J.point[0]-Pn.point[0]);var Vr=Math.atan(Jn)*180/Math.PI;J.point[0]<Pn.point[0]&&(Vr+=180),v.rotate(-Vr*Math.PI/180)}v.translate(ar,tr,0),w-=f[0]*x[b].an*.005,x[b+1]&&or!==x[b+1].ind&&(w+=x[b].an/2,w+=c.tr*.001*c.finalSize)}else{switch(v.translate(g,y,0),c.ps&&v.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:v.translate(x[b].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[x[b].line]),0,0);break;case 2:v.translate(x[b].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[x[b].line])/2,0,0);break}v.translate(0,-c.ls),v.translate(cr,0,0),v.translate(f[0]*x[b].an*.005,f[1]*sr*.01,0),g+=x[b].l+c.tr*.001*c.finalSize}p==="html"?hr=v.toCSS():p==="svg"?hr=v.to2dCSS():gr=[v.props[0],v.props[1],v.props[2],v.props[3],v.props[4],v.props[5],v.props[6],v.props[7],v.props[8],v.props[9],v.props[10],v.props[11],v.props[12],v.props[13],v.props[14],v.props[15]],Er=vr}m<=b?(er=new LetterProps(Er,xr,Cr,br,hr,gr),this.renderedLetters.push(er),m+=1,this.lettersChangedFlag=!0):(er=this.renderedLetters[b],this.lettersChangedFlag=er.update(Er,xr,Cr,br,hr,gr)||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,d=u.length,h,v="";for(f=0;f<d;f+=1)u[f].ty==="sh"&&(h=u[f].ks.k,v+=buildShapeString(h,h.i.length,!0,c));return v},ITextElement.prototype.updateDocumentData=function(c,u){this.textProperty.updateDocumentData(c,u)},ITextElement.prototype.canResizeFont=function(c){this.textProperty.canResizeFont(c)},ITextElement.prototype.setMinimumFontSize=function(c){this.textProperty.setMinimumFontSize(c)},ITextElement.prototype.applyTextPropertiesToMatrix=function(c,u,f,d,h){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(d,h,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,d=[],h="";u<f;)c[u]===String.fromCharCode(13)||c[u]===String.fromCharCode(3)?(d.push(h),h=""):h+=c[u],u+=1;return d.push(h),d},SVGTextLottieElement.prototype.buildShapeData=function(c,u){if(c.shapes&&c.shapes.length){var f=c.shapes[0];if(f.it){var d=f.it[f.it.length-1];d.s&&(d.s.k[0]=u,d.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 d=this.globalData.fontManager.getFontByName(f.f);if(d.fClass)this.layerElement.setAttribute("class",d.fClass);else{this.layerElement.setAttribute("font-family",d.fFamily);var h=f.fWeight,v=f.fStyle;this.layerElement.setAttribute("font-style",v),this.layerElement.setAttribute("font-weight",h)}this.layerElement.setAttribute("aria-label",f.t);var p=f.l||[],m=!!this.globalData.fontManager.chars;u=p.length;var g,y=this.mHelper,b="",gn=this.data.singleShape,x=0,re=0,w=!0,J=f.tr*.001*f.finalSize;if(gn&&!m&&!f.sz){var Fn=this.textContainer,Bn="start";switch(f.j){case 1:Bn="end";break;case 2:Bn="middle";break;default:Bn="start";break}Fn.setAttribute("text-anchor",Bn),Fn.setAttribute("letter-spacing",J);var j=this.buildTextContents(f.finalText);for(u=j.length,re=f.ps?f.ps[1]+f.ascent:0,c=0;c<u;c+=1)g=this.textSpans[c].span||createNS("tspan"),g.textContent=j[c],g.setAttribute("x",0),g.setAttribute("y",re),g.style.display="inherit",Fn.appendChild(g),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=g,re+=f.finalLineHeight;this.layerElement.appendChild(Fn)}else{var vn=this.textSpans.length,Pn;for(c=0;c<u;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!m||!gn||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 Rn=createNS("g");g.appendChild(Rn),this.textSpans[c].childSpan=Rn}this.textSpans[c].span=g,this.layerElement.appendChild(g)}g.style.display="inherit"}if(y.reset(),gn&&(p[c].n&&(x=-J,re+=f.yOffset,re+=w?1:0,w=!1),this.applyTextPropertiesToMatrix(f,y,p[c].line,x,re),x+=p[c].l||0,x+=J),m){Pn=this.globalData.fontManager.getCharData(f.finalText[c],d.fStyle,this.globalData.fontManager.getFontByName(f.f).fFamily);var zn;if(Pn.t===1)zn=new SVGCompElement(Pn.data,this.globalData,this);else{var Un=emptyShapeData;Pn.data&&Pn.data.shapes&&(Un=this.buildShapeData(Pn.data,f.finalSize)),zn=new SVGShapeElement(Un,this.globalData,this)}if(this.textSpans[c].glyph){var qn=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(qn.layerElement),qn.destroy()}this.textSpans[c].glyph=zn,zn._debug=!0,zn.prepareFrame(0),zn.renderFrame(),this.textSpans[c].childSpan.appendChild(zn.layerElement),Pn.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+f.finalSize/100+","+f.finalSize/100+")")}else gn&&g.setAttribute("transform","translate("+y.props[12]+","+y.props[13]+")"),g.textContent=p[c].val,g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}gn&&g&&g.setAttribute("d",b)}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,d=this.textProperty.currentData.l;u=d.length;var h,v,p;for(c=0;c<u;c+=1)d[c].n||(h=f[c],v=this.textSpans[c].span,p=this.textSpans[c].glyph,p&&p.renderFrame(),h._mdf.m&&v.setAttribute("transform",h.m),h._mdf.o&&v.setAttribute("opacity",h.o),h._mdf.sw&&v.setAttribute("stroke-width",h.sw),h._mdf.sc&&v.setAttribute("stroke",h.sc),h._mdf.fc&&v.setAttribute("fill",h.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"),d=createNS("rect");d.setAttribute("width",c.w),d.setAttribute("height",c.h),d.setAttribute("x",0),d.setAttribute("y",0);var h=createElementID();f.setAttribute("id",h),f.appendChild(d),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+h+")"),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 d="tp"in this.layers[c]?this.findIndexByInd(this.layers[c].tp):c-1;if(d===-1)return;if(!this.elements[d]||this.elements[d]===!0)this.buildItem(d),this.addPendingElement(f);else{var h=u[d],v=h.getMatte(this.layers[c].tt);f.setMatte(v)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();if(c.checkParenting(),c.data.tt)for(var u=0,f=this.elements.length;u<f;){if(this.elements[u]===c){var d="tp"in c.data?this.findIndexByInd(c.data.tp):u-1,h=this.elements[d],v=h.getMatte(this.layers[u].tt);c.setMatte(v);break}u+=1}}},SVGRendererBase.prototype.renderFrame=function(c){if(!(this.renderedFrame===c||this.destroyed)){c===null?c=this.renderedFrame:this.renderedFrame=c,this.globalData.frameNum=c,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=c,this.globalData._mdf=!1;var u,f=this.layers.length;for(this.completeLayers||this.checkLayers(c),u=f-1;u>=0;u-=1)(this.completeLayers||this.elements[u])&&this.elements[u].prepareFrame(c-this.layers[u].st);if(this.globalData._mdf)for(u=0;u<f;u+=1)(this.completeLayers||this.elements[u])&&this.elements[u].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(c,u){var f=c.getBaseElement();if(f){for(var d=0,h;d<u;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement()&&(h=this.elements[d].getBaseElement()),d+=1;h?this.layerElement.insertBefore(f,h):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,d=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),f=d-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 d=createNS("title"),h=createElementID();d.setAttribute("id",h),d.textContent=u.title,this.svgElement.appendChild(d),f+=h}if(u&&u.description){var v=createNS("desc"),p=createElementID();v.setAttribute("id",p),v.textContent=u.description,this.svgElement.appendChild(v),f+=" "+p}f&&this.svgElement.setAttribute("aria-labelledby",f);var m=createNS("defs");this.svgElement.appendChild(m);var g=createNS("g");this.svgElement.appendChild(g),this.layerElement=g,this.renderConfig={preserveAspectRatio:u&&u.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:u&&u.contentVisibility||"visible",progressiveLoad:u&&u.progressiveLoad||!1,hideOnTransparent:!(u&&u.hideOnTransparent===!1),viewBoxOnly:u&&u.viewBoxOnly||!1,viewBoxSize:u&&u.viewBoxSize||!1,className:u&&u.className||"",id:u&&u.id||"",focusable:u&&u.focusable,filterSize:{width:u&&u.filterSize&&u.filterSize.width||"100%",height:u&&u.filterSize&&u.filterSize.height||"100%",x:u&&u.filterSize&&u.filterSize.x||"0%",y:u&&u.filterSize&&u.filterSize.y||"0%"},width:u&&u.width,height:u&&u.height,runExpressions:!u||u.runExpressions===void 0||u.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:m,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(c){return new SVGCompElement(c,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(u){var f,d=u.length,h="_";for(f=0;f<d;f+=1)h+=u[f].transform.key+"_";var v=this.sequences[h];return v||(v={transforms:[].concat(u),finalTransform:new Matrix,_mdf:!1},this.sequences[h]=v,this.sequenceList.push(v)),v},processSequence:function(u,f){for(var d=0,h=u.transforms.length,v=f;d<h&&!f;){if(u.transforms[d].transform.mProps._mdf){v=!0;break}d+=1}if(v)for(u.finalTransform.reset(),d=h-1;d>=0;d-=1)u.finalTransform.multiply(u.transforms[d].transform.mProps.v);u._mdf=v},processSequences:function(u){var f,d=this.sequenceList.length;for(f=0;f<d;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,d=null,h=null;function v(){var g=createNS("svg"),y=createNS("filter"),b=createNS("feColorMatrix");return y.setAttribute("id",u),b.setAttribute("type","matrix"),b.setAttribute("color-interpolation-filters","sRGB"),b.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(b),g.appendChild(y),g.setAttribute("id",u+"_svg"),featureSupport.svgLumaHidden&&(g.style.display="none"),g}function p(){f||(h=v(),document.body.appendChild(h),f=createTag("canvas"),d=f.getContext("2d"),d.filter="url(#"+u+")",d.fillStyle="rgba(0,0,0,0)",d.fillRect(0,0,1,1))}function m(g){return f||p(),f.width=g.width,f.height=g.height,d.filter="url(#"+u+")",f}return{load:p,get:m}};function createCanvas(c,u){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(c,u);var f=createTag("canvas");return f.width=c,f.height=u,f}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(c){var u,f=c.data.ef?c.data.ef.length:0;this.filters=[];var d;for(u=0;u<f;u+=1){d=null;var h=c.data.ef[u].ty;if(registeredEffects[h]){var v=registeredEffects[h].effect;d=new v(c.effectsManager.effectElements[u],c)}d&&this.filters.push(d)}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,d=[];for(u=0;u<f;u+=1)this.filters[u].type===c&&d.push(this.filters[u]);return d};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,d=this.masksProperties.length,h=!1;for(f=0;f<d;f+=1)this.masksProperties[f].mode!=="n"&&(h=!0),this.viewData[f]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[f],3);this.hasMasks=h,h&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var c=this.element.finalTransform.mat,u=this.element.canvasContext,f,d=this.masksProperties.length,h,v,p;for(u.beginPath(),f=0;f<d;f+=1)if(this.masksProperties[f].mode!=="n"){this.masksProperties[f].inv&&(u.moveTo(0,0),u.lineTo(this.element.globalData.compSize.w,0),u.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),u.lineTo(0,this.element.globalData.compSize.h),u.lineTo(0,0)),p=this.viewData[f].v,h=c.applyToPointArray(p.v[0][0],p.v[0][1],0),u.moveTo(h[0],h[1]);var m,g=p._length;for(m=1;m<g;m+=1)v=c.applyToTriplePoints(p.o[m-1],p.i[m],p.v[m]),u.bezierCurveTo(v[0],v[1],v[2],v[3],v[4],v[5]);v=c.applyToTriplePoints(p.o[m-1],p.i[0],p.v[0]),u.bezierCurveTo(v[0],v[1],v[2],v[3],v[4],v[5])}this.element.globalData.renderer.save(!0),u.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var u=this.globalData.canvasContext,f=assetLoader.createCanvas(u.canvas.width,u.canvas.height);this.buffers.push(f);var d=assetLoader.createCanvas(u.canvas.width,u.canvas.height);this.buffers.push(d),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 d=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(d.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var h=assetLoader.getLumaCanvas(this.canvasContext.canvas),v=h.getContext("2d");v.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(h,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,d){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var h=4;u.ty==="rc"?h=5:u.ty==="el"?h=6:u.ty==="sr"&&(h=7),this.sh=ShapePropertyFactory.getShapeProp(c,u,h,c);var v,p=f.length,m;for(v=0;v<p;v+=1)f[v].closed||(m={transforms:d.addTransformSequence(f[v].transforms),trNodes:[]},this.styledShapes.push(m),f[v].elements.push(m))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(c,u,f){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(c,u){var f={data:c,type:c.ty,preTransforms:this.transformsManager.addTransformSequence(u),transforms:[],elements:[],closed:c.hd===!0},d={};if(c.ty==="fl"||c.ty==="st"?(d.c=PropertyFactory.getProp(this,c.c,1,255,this),d.c.k||(f.co="rgb("+bmFloor(d.c.v[0])+","+bmFloor(d.c.v[1])+","+bmFloor(d.c.v[2])+")")):(c.ty==="gf"||c.ty==="gs")&&(d.s=PropertyFactory.getProp(this,c.s,1,null,this),d.e=PropertyFactory.getProp(this,c.e,1,null,this),d.h=PropertyFactory.getProp(this,c.h||{k:0},0,.01,this),d.a=PropertyFactory.getProp(this,c.a||{k:0},0,degToRads,this),d.g=new GradientProperty(this,c.g,this)),d.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),d.w=PropertyFactory.getProp(this,c.w,0,null,this),d.w.k||(f.wi=d.w.v),c.d){var h=new DashProperty(this,c.d,"canvas",this);d.d=h,d.d.k||(f.da=d.d.dashArray,f.do=d.d.dashoffset[0])}}else f.r=c.r===2?"evenodd":"nonzero";return this.stylesList.push(f),d.style=f,d},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,d,h){var v,p=c.length-1,m,g,y=[],b=[],gn,x,re,w=[].concat(h);for(v=p;v>=0;v-=1){if(gn=this.searchProcessedElement(c[v]),gn?u[v]=f[gn-1]:c[v]._shouldRender=d,c[v].ty==="fl"||c[v].ty==="st"||c[v].ty==="gf"||c[v].ty==="gs")gn?u[v].style.closed=!1:u[v]=this.createStyleElement(c[v],w),y.push(u[v].style);else if(c[v].ty==="gr"){if(!gn)u[v]=this.createGroupElement(c[v]);else for(g=u[v].it.length,m=0;m<g;m+=1)u[v].prevViewData[m]=u[v].it[m];this.searchShapes(c[v].it,u[v].it,u[v].prevViewData,d,w)}else c[v].ty==="tr"?(gn||(re=this.createTransformElement(c[v]),u[v]=re),w.push(u[v]),this.addTransformToStyleList(u[v])):c[v].ty==="sh"||c[v].ty==="rc"||c[v].ty==="el"||c[v].ty==="sr"?gn||(u[v]=this.createShapeElement(c[v])):c[v].ty==="tm"||c[v].ty==="rd"||c[v].ty==="pb"||c[v].ty==="zz"||c[v].ty==="op"?(gn?(x=u[v],x.closed=!1):(x=ShapeModifiers.getModifier(c[v].ty),x.init(this,c[v]),u[v]=x,this.shapeModifiers.push(x)),b.push(x)):c[v].ty==="rp"&&(gn?(x=u[v],x.closed=!0):(x=ShapeModifiers.getModifier(c[v].ty),u[v]=x,x.init(this,c,v,u),this.shapeModifiers.push(x),d=!1),b.push(x));this.addProcessedElement(c[v],v+1)}for(this.removeTransformFromStyleList(),this.closeStyles(y),p=b.length,v=0;v<p;v+=1)b[v].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(c,u){(c._opMdf||u.op._mdf||this._isFirstFrame)&&(u.opacity=c.opacity,u.opacity*=u.op.v,u._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var c,u=this.stylesList.length,f,d,h,v,p,m,g=this.globalData.renderer,y=this.globalData.canvasContext,b,gn;for(c=0;c<u;c+=1)if(gn=this.stylesList[c],b=gn.type,!((b==="st"||b==="gs")&&gn.wi===0||!gn.data._shouldRender||gn.coOp===0||this.globalData.currentGlobalAlpha===0)){for(g.save(),p=gn.elements,b==="st"||b==="gs"?(g.ctxStrokeStyle(b==="st"?gn.co:gn.grd),g.ctxLineWidth(gn.wi),g.ctxLineCap(gn.lc),g.ctxLineJoin(gn.lj),g.ctxMiterLimit(gn.ml||0)):g.ctxFillStyle(b==="fl"?gn.co:gn.grd),g.ctxOpacity(gn.coOp),b!=="st"&&b!=="gs"&&y.beginPath(),g.ctxTransform(gn.preTransforms.finalTransform.props),d=p.length,f=0;f<d;f+=1){for((b==="st"||b==="gs")&&(y.beginPath(),gn.da&&(y.setLineDash(gn.da),y.lineDashOffset=gn.do)),m=p[f].trNodes,v=m.length,h=0;h<v;h+=1)m[h].t==="m"?y.moveTo(m[h].p[0],m[h].p[1]):m[h].t==="c"?y.bezierCurveTo(m[h].pts[0],m[h].pts[1],m[h].pts[2],m[h].pts[3],m[h].pts[4],m[h].pts[5]):y.closePath();(b==="st"||b==="gs")&&(g.ctxStroke(),gn.da&&y.setLineDash(this.dashResetter))}b!=="st"&&b!=="gs"&&this.globalData.renderer.ctxFill(gn.r),g.restore()}},CVShapeElement.prototype.renderShape=function(c,u,f,d){var h,v=u.length-1,p;for(p=c,h=v;h>=0;h-=1)u[h].ty==="tr"?(p=f[h].transform,this.renderShapeTransform(c,p)):u[h].ty==="sh"||u[h].ty==="el"||u[h].ty==="rc"||u[h].ty==="sr"?this.renderPath(u[h],f[h]):u[h].ty==="fl"?this.renderFill(u[h],f[h],p):u[h].ty==="st"?this.renderStroke(u[h],f[h],p):u[h].ty==="gf"||u[h].ty==="gs"?this.renderGradientFill(u[h],f[h],p):u[h].ty==="gr"?this.renderShape(p,u[h].it,f[h].it):u[h].ty;d&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(c,u){if(this._isFirstFrame||u._mdf||c.transforms._mdf){var f=c.trNodes,d=u.paths,h,v,p,m=d._length;f.length=0;var g=c.transforms.finalTransform;for(p=0;p<m;p+=1){var y=d.shapes[p];if(y&&y.v){for(v=y._length,h=1;h<v;h+=1)h===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[h-1],y.i[h],y.v[h])});v===1&&f.push({t:"m",p:g.applyToPointArray(y.v[0][0],y.v[0][1],0)}),y.c&&v&&(f.push({t:"c",pts:g.applyToTriplePoints(y.o[h-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,d=u.styledShapes.length;for(f=0;f<d;f+=1)this.renderStyledShape(u.styledShapes[f],u.sh)}},CVShapeElement.prototype.renderFill=function(c,u,f){var d=u.style;(u.c._mdf||this._isFirstFrame)&&(d.co="rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||f._opMdf||this._isFirstFrame)&&(d.coOp=u.o.v*f.opacity)},CVShapeElement.prototype.renderGradientFill=function(c,u,f){var d=u.style,h;if(!d.grd||u.g._mdf||u.s._mdf||u.e._mdf||c.t!==1&&(u.h._mdf||u.a._mdf)){var v=this.globalData.canvasContext,p=u.s.v,m=u.e.v;if(c.t===1)h=v.createLinearGradient(p[0],p[1],m[0],m[1]);else{var g=Math.sqrt(Math.pow(p[0]-m[0],2)+Math.pow(p[1]-m[1],2)),y=Math.atan2(m[1]-p[1],m[0]-p[0]),b=u.h.v;b>=1?b=.99:b<=-1&&(b=-.99);var gn=g*b,x=Math.cos(y+u.a.v)*gn+p[0],re=Math.sin(y+u.a.v)*gn+p[1];h=v.createRadialGradient(x,re,0,p[0],p[1],g)}var w,J=c.g.p,Fn=u.g.c,Bn=1;for(w=0;w<J;w+=1)u.g._hasOpacity&&u.g._collapsable&&(Bn=u.g.o[w*2+1]),h.addColorStop(Fn[w*4]/100,"rgba("+Fn[w*4+1]+","+Fn[w*4+2]+","+Fn[w*4+3]+","+Bn+")");d.grd=h}d.coOp=u.o.v*f.opacity},CVShapeElement.prototype.renderStroke=function(c,u,f){var d=u.style,h=u.d;h&&(h._mdf||this._isFirstFrame)&&(d.da=h.dashArray,d.do=h.dashoffset[0]),(u.c._mdf||this._isFirstFrame)&&(d.co="rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||f._opMdf||this._isFirstFrame)&&(d.coOp=u.o.v*f.opacity),(u.w._mdf||this._isFirstFrame)&&(d.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 d=this.globalData.fontManager.getFontByName(c.f),h,v,p=c.l,m=this.mHelper;this.stroke=f,this.values.fValue=c.finalSize+"px "+this.globalData.fontManager.getFontByName(c.f).fFamily,v=c.finalText.length;var g,y,b,gn,x,re,w,J,Fn,Bn,j=this.data.singleShape,vn=c.tr*.001*c.finalSize,Pn=0,Rn=0,zn=!0,Un=0;for(h=0;h<v;h+=1){g=this.globalData.fontManager.getCharData(c.finalText[h],d.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily),y=g&&g.data||{},m.reset(),j&&p[h].n&&(Pn=-vn,Rn+=c.yOffset,Rn+=zn?1:0,zn=!1),x=y.shapes?y.shapes[0].it:[],w=x.length,m.scale(c.finalSize/100,c.finalSize/100),j&&this.applyTextPropertiesToMatrix(c,m,p[h].line,Pn,Rn),Fn=createSizedArray(w-1);var qn=0;for(re=0;re<w;re+=1)if(x[re].ty==="sh"){for(gn=x[re].ks.k.i.length,J=x[re].ks.k,Bn=[],b=1;b<gn;b+=1)b===1&&Bn.push(m.applyToX(J.v[0][0],J.v[0][1],0),m.applyToY(J.v[0][0],J.v[0][1],0)),Bn.push(m.applyToX(J.o[b-1][0],J.o[b-1][1],0),m.applyToY(J.o[b-1][0],J.o[b-1][1],0),m.applyToX(J.i[b][0],J.i[b][1],0),m.applyToY(J.i[b][0],J.i[b][1],0),m.applyToX(J.v[b][0],J.v[b][1],0),m.applyToY(J.v[b][0],J.v[b][1],0));Bn.push(m.applyToX(J.o[b-1][0],J.o[b-1][1],0),m.applyToY(J.o[b-1][0],J.o[b-1][1],0),m.applyToX(J.i[0][0],J.i[0][1],0),m.applyToY(J.i[0][0],J.i[0][1],0),m.applyToX(J.v[0][0],J.v[0][1],0),m.applyToY(J.v[0][0],J.v[0][1],0)),Fn[qn]=Bn,qn+=1}j&&(Pn+=p[h].l,Pn+=vn),this.textSpans[Un]?this.textSpans[Un].elem=Fn:this.textSpans[Un]={elem:Fn},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,d,h,v,p,m=this.textAnimator.renderedLetters,g=this.textProperty.currentData.l;f=g.length;var y,b=null,gn=null,x=null,re,w,J=this.globalData.renderer;for(u=0;u<f;u+=1)if(!g[u].n){if(y=m[u],y&&(J.save(),J.ctxTransform(y.p),J.ctxOpacity(y.o)),this.fill){for(y&&y.fc?b!==y.fc&&(J.ctxFillStyle(y.fc),b=y.fc):b!==this.values.fill&&(b=this.values.fill,J.ctxFillStyle(this.values.fill)),re=this.textSpans[u].elem,h=re.length,this.globalData.canvasContext.beginPath(),d=0;d<h;d+=1)for(w=re[d],p=w.length,this.globalData.canvasContext.moveTo(w[0],w[1]),v=2;v<p;v+=6)this.globalData.canvasContext.bezierCurveTo(w[v],w[v+1],w[v+2],w[v+3],w[v+4],w[v+5]);this.globalData.canvasContext.closePath(),J.ctxFill()}if(this.stroke){for(y&&y.sw?x!==y.sw&&(x=y.sw,J.ctxLineWidth(y.sw)):x!==this.values.sWidth&&(x=this.values.sWidth,J.ctxLineWidth(this.values.sWidth)),y&&y.sc?gn!==y.sc&&(gn=y.sc,J.ctxStrokeStyle(y.sc)):gn!==this.values.stroke&&(gn=this.values.stroke,J.ctxStrokeStyle(this.values.stroke)),re=this.textSpans[u].elem,h=re.length,this.globalData.canvasContext.beginPath(),d=0;d<h;d+=1)for(w=re[d],p=w.length,this.globalData.canvasContext.moveTo(w[0],w[1]),v=2;v<p;v+=6)this.globalData.canvasContext.bezierCurveTo(w[v],w[v+1],w[v+2],w[v+3],w[v+4],w[v+5]);this.globalData.canvasContext.closePath(),J.ctxStroke()}y&&this.globalData.renderer.restore()}};function CVImageElement(c,u,f){this.assetData=u.getAssetData(c.refId),this.img=u.imageLoader.getAsset(this.assetData),this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var c=createTag("canvas");c.width=this.assetData.w,c.height=this.assetData.h;var u=c.getContext("2d"),f=this.img.width,d=this.img.height,h=f/d,v=this.assetData.w/this.assetData.h,p,m,g=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;h>v&&g==="xMidYMid slice"||h<v&&g!=="xMidYMid slice"?(m=d,p=m*v):(p=f,m=p/v),u.drawImage(this.img,(f-p)/2,(d-m)/2,p,m,0,0,this.assetData.w,this.assetData.h),this.img=c}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(c,u,f){this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(c){return new CVShapeElement(c,this.globalData,this)},CanvasRendererBase.prototype.createText=function(c){return new CVTextElement(c,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(c){return new CVImageElement(c,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(c){return new CVSolidElement(c,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(c){c[0]===1&&c[1]===0&&c[4]===0&&c[5]===1&&c[12]===0&&c[13]===0||this.canvasContext.transform(c[0],c[1],c[4],c[5],c[12],c[13])},CanvasRendererBase.prototype.ctxOpacity=function(c){this.canvasContext.globalAlpha*=c<0?0:c},CanvasRendererBase.prototype.ctxFillStyle=function(c){this.canvasContext.fillStyle=c},CanvasRendererBase.prototype.ctxStrokeStyle=function(c){this.canvasContext.strokeStyle=c},CanvasRendererBase.prototype.ctxLineWidth=function(c){this.canvasContext.lineWidth=c},CanvasRendererBase.prototype.ctxLineCap=function(c){this.canvasContext.lineCap=c},CanvasRendererBase.prototype.ctxLineJoin=function(c){this.canvasContext.lineJoin=c},CanvasRendererBase.prototype.ctxMiterLimit=function(c){this.canvasContext.miterLimit=c},CanvasRendererBase.prototype.ctxFill=function(c){this.canvasContext.fill(c)},CanvasRendererBase.prototype.ctxFillRect=function(c,u,f,d){this.canvasContext.fillRect(c,u,f,d)},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,d;c?(f=c,d=u,this.canvasContext.canvas.width=f,this.canvasContext.canvas.height=d):(this.animationItem.wrapper&&this.animationItem.container?(f=this.animationItem.wrapper.offsetWidth,d=this.animationItem.wrapper.offsetHeight):(f=this.canvasContext.canvas.width,d=this.canvasContext.canvas.height),this.canvasContext.canvas.width=f*this.renderConfig.dpr,this.canvasContext.canvas.height=d*this.renderConfig.dpr);var h,v;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var p=this.renderConfig.preserveAspectRatio.split(" "),m=p[1]||"meet",g=p[0]||"xMidYMid",y=g.substr(0,4),b=g.substr(4);h=f/d,v=this.transformCanvas.w/this.transformCanvas.h,v>h&&m==="meet"||v<h&&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=d/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=d/(this.transformCanvas.h/this.renderConfig.dpr)),y==="xMid"&&(v<h&&m==="meet"||v>h&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(d/this.transformCanvas.h))/2*this.renderConfig.dpr:y==="xMax"&&(v<h&&m==="meet"||v>h&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(d/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,b==="YMid"&&(v>h&&m==="meet"||v<h&&m==="slice")?this.transformCanvas.ty=(d-this.transformCanvas.h*(f/this.transformCanvas.w))/2*this.renderConfig.dpr:b==="YMax"&&(v>h&&m==="meet"||v<h&&m==="slice")?this.transformCanvas.ty=(d-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=d/(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,d=this.layers.length;for(this.completeLayers||this.checkLayers(c),f=d-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=d-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,d,h=this.cTr.props;for(d=0;d<16;d+=1)h[d]=f[d];if(c){this.nativeContext.restore();var v=this.stack[this.cArrPos+1];this.appliedFillStyle=v.fillStyle,this.appliedStrokeStyle=v.strokeStyle,this.appliedLineWidth=v.lineWidth,this.appliedLineCap=v.lineCap,this.appliedLineJoin=v.lineJoin,this.appliedMiterLimit=v.miterLimit}this.nativeContext.setTransform(f[0],f[1],f[4],f[5],f[12],f[13]),(c||u.opacity!==-1&&this.currentOpacity!==u.opacity)&&(this.nativeContext.globalAlpha=u.opacity,this.currentOpacity=u.opacity),this.currentFillStyle=u.fillStyle,this.currentStrokeStyle=u.strokeStyle,this.currentLineWidth=u.lineWidth,this.currentLineCap=u.lineCap,this.currentLineJoin=u.lineJoin,this.currentMiterLimit=u.miterLimit},CVContextData.prototype.save=function(c){c&&this.nativeContext.save();var u=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var f=this.stack[this.cArrPos],d;for(d=0;d<16;d+=1)f.transform[d]=u[d];this.cArrPos+=1;var h=this.stack[this.cArrPos];h.opacity=f.opacity,h.fillStyle=f.fillStyle,h.strokeStyle=f.strokeStyle,h.lineWidth=f.lineWidth,h.lineCap=f.lineCap,h.lineJoin=f.lineJoin,h.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,d){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(c,u,f,d)},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,d=c.length;for(f=0;f<d;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,d=c.transformers,h,v=f._length,p,m,g,y;if(!(v<=1)){for(h=0;h<v-1;h+=1)p=this.getTransformedPoint(d,f.v[h]),m=this.getTransformedPoint(d,f.o[h]),g=this.getTransformedPoint(d,f.i[h+1]),y=this.getTransformedPoint(d,f.v[h+1]),this.checkBounds(p,m,g,y,u);f.c&&(p=this.getTransformedPoint(d,f.v[h]),m=this.getTransformedPoint(d,f.o[h]),g=this.getTransformedPoint(d,f.i[0]),y=this.getTransformedPoint(d,f.v[0]),this.checkBounds(p,m,g,y,u))}},HShapeElement.prototype.checkBounds=function(c,u,f,d,h){this.getBoundsOfCurve(c,u,f,d);var v=this.shapeBoundingBox;h.x=bmMin(v.left,h.x),h.xMax=bmMax(v.right,h.xMax),h.y=bmMin(v.top,h.y),h.yMax=bmMax(v.bottom,h.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,d){for(var h=[[c[0],d[0]],[c[1],d[1]]],v,p,m,g,y,b,gn,x=0;x<2;++x)p=6*c[x]-12*u[x]+6*f[x],v=-3*c[x]+9*u[x]-9*f[x]+3*d[x],m=3*u[x]-3*c[x],p|=0,v|=0,m|=0,v===0&&p===0||(v===0?(g=-m/p,g>0&&g<1&&h[x].push(this.calculateF(g,c,u,f,d,x))):(y=p*p-4*m*v,y>=0&&(b=(-p+bmSqrt(y))/(2*v),b>0&&b<1&&h[x].push(this.calculateF(b,c,u,f,d,x)),gn=(-p-bmSqrt(y))/(2*v),gn>0&&gn<1&&h[x].push(this.calculateF(gn,c,u,f,d,x)))));this.shapeBoundingBox.left=bmMin.apply(null,h[0]),this.shapeBoundingBox.top=bmMin.apply(null,h[1]),this.shapeBoundingBox.right=bmMax.apply(null,h[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,h[1])},HShapeElement.prototype.calculateF=function(c,u,f,d,h,v){return bmPow(1-c,3)*u[v]+3*bmPow(1-c,2)*c*f[v]+3*(1-c)*bmPow(c,2)*d[v]+bmPow(c,3)*h[v]},HShapeElement.prototype.calculateBoundingBox=function(c,u){var f,d=c.length;for(f=0;f<d;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 d=0;d<c.keyframes.length;d+=1){var h=c.keyframes[d].s;h>f&&(f=h)}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 d=this.shapeCont.style,h="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";d.transform=h,d.webkitTransform=h}}};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 d=this.globalData.fontManager.getFontByName(c.f);if(!this.globalData.fontManager.chars)if(u.fontSize=c.finalSize+"px",u.lineHeight=c.finalSize+"px",d.fClass)this.innerElem.className=d.fClass;else{u.fontFamily=d.fFamily;var h=c.fWeight,v=c.fStyle;u.fontStyle=v,u.fontWeight=h}var p,m,g=c.l;m=g.length;var y,b,gn,x=this.mHelper,re,w="",J=0;for(p=0;p<m;p+=1){if(this.globalData.fontManager.chars?(this.textPaths[J]?y=this.textPaths[J]:(y=createNS("path"),y.setAttribute("stroke-linecap",lineCapEnum[1]),y.setAttribute("stroke-linejoin",lineJoinEnum[2]),y.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[J]?(b=this.textSpans[J],gn=b.children[0]):(b=createTag("div"),b.style.lineHeight=0,gn=createNS("svg"),gn.appendChild(y),styleDiv(b)))):this.isMasked?y=this.textPaths[J]?this.textPaths[J]:createNS("text"):this.textSpans[J]?(b=this.textSpans[J],y=this.textPaths[J]):(b=createTag("span"),styleDiv(b),y=createTag("span"),styleDiv(y),b.appendChild(y)),this.globalData.fontManager.chars){var Fn=this.globalData.fontManager.getCharData(c.finalText[p],d.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily),Bn;if(Fn?Bn=Fn.data:Bn=null,x.reset(),Bn&&Bn.shapes&&Bn.shapes.length&&(re=Bn.shapes[0].it,x.scale(c.finalSize/100,c.finalSize/100),w=this.createPathShape(x,re),y.setAttribute("d",w)),this.isMasked)this.innerElem.appendChild(y);else{if(this.innerElem.appendChild(b),Bn&&Bn.shapes){document.body.appendChild(gn);var j=gn.getBBox();gn.setAttribute("width",j.width+2),gn.setAttribute("height",j.height+2),gn.setAttribute("viewBox",j.x-1+" "+(j.y-1)+" "+(j.width+2)+" "+(j.height+2));var vn=gn.style,Pn="translate("+(j.x-1)+"px,"+(j.y-1)+"px)";vn.transform=Pn,vn.webkitTransform=Pn,g[p].yOffset=j.y-1}else gn.setAttribute("width",1),gn.setAttribute("height",1);b.appendChild(gn)}}else if(y.textContent=g[p].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(y);else{this.innerElem.appendChild(b);var Rn=y.style,zn="translate3d(0,"+-c.finalSize/1.2+"px,0)";Rn.transform=zn,Rn.webkitTransform=zn}this.isMasked?this.textSpans[J]=y:this.textSpans[J]=b,this.textSpans[J].style.display="block",this.textPaths[J]=y,J+=1}for(;J<this.textSpans.length;)this.textSpans[J].style.display="none",J+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var c;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),c=this.svgElement.style;var u="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";c.transform=u,c.webkitTransform=u}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var f,d,h=0,v=this.textAnimator.renderedLetters,p=this.textProperty.currentData.l;d=p.length;var m,g,y;for(f=0;f<d;f+=1)p[f].n?h+=1:(g=this.textSpans[f],y=this.textPaths[f],m=v[h],h+=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 b=this.innerElem.getBBox();this.currentBBox.w!==b.width&&(this.currentBBox.w=b.width,this.svgElement.setAttribute("width",b.width)),this.currentBBox.h!==b.height&&(this.currentBBox.h=b.height,this.svgElement.setAttribute("height",b.height));var gn=1;if(this.currentBBox.w!==b.width+gn*2||this.currentBBox.h!==b.height+gn*2||this.currentBBox.x!==b.x-gn||this.currentBBox.y!==b.y-gn){this.currentBBox.w=b.width+gn*2,this.currentBBox.h=b.height+gn*2,this.currentBBox.x=b.x-gn,this.currentBBox.y=b.y-gn,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),c=this.svgElement.style;var x="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";c.transform=x,c.webkitTransform=x}}}};function HCameraElement(c,u,f){this.initFrame(),this.initBaseData(c,u,f),this.initHierarchy();var d=PropertyFactory.getProp;if(this.pe=d(this,c.pe,0,0,this),c.ks.p.s?(this.px=d(this,c.ks.p.x,1,0,this),this.py=d(this,c.ks.p.y,1,0,this),this.pz=d(this,c.ks.p.z,1,0,this)):this.p=d(this,c.ks.p,1,0,this),c.ks.a&&(this.a=d(this,c.ks.a,1,0,this)),c.ks.or.k.length&&c.ks.or.k[0].to){var h,v=c.ks.or.k.length;for(h=0;h<v;h+=1)c.ks.or.k[h].to=null,c.ks.or.k[h].ti=null}this.or=d(this,c.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=d(this,c.ks.rx,0,degToRads,this),this.ry=d(this,c.ks.ry,0,degToRads,this),this.rz=d(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,d,h;for(c=0;c<u;c+=1)if(f=this.comp.threeDElements[c],f.type==="3d"){d=f.perspectiveElem.style,h=f.container.style;var v=this.pe.v+"px",p="0px 0px 0px",m="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";d.perspective=v,d.webkitPerspective=v,h.transformOrigin=p,h.mozTransformOrigin=p,h.webkitTransformOrigin=p,d.transform=m,d.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 d=this.hierarchy[u].finalTransform.mProp;this.mat.translate(-d.p.v[0],-d.p.v[1],d.p.v[2]),this.mat.rotateX(-d.or.v[0]).rotateY(-d.or.v[1]).rotateZ(d.or.v[2]),this.mat.rotateX(-d.rx.v).rotateY(-d.ry.v).rotateZ(d.rz.v),this.mat.scale(1/d.s.v[0],1/d.s.v[1],1/d.s.v[2]),this.mat.translate(d.a.v[0],d.a.v[1],d.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 h;this.p?h=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:h=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var v=Math.sqrt(Math.pow(h[0],2)+Math.pow(h[1],2)+Math.pow(h[2],2)),p=[h[0]/v,h[1]/v,h[2]/v],m=Math.sqrt(p[2]*p[2]+p[0]*p[0]),g=Math.atan2(p[1],m),y=Math.atan2(p[0],-p[2]);this.mat.rotateY(y).rotateX(-g)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var b=!this._prevMat.equals(this.mat);if((b||this.pe._mdf)&&this.comp.threeDElements){f=this.comp.threeDElements.length;var gn,x,re;for(u=0;u<f;u+=1)if(gn=this.comp.threeDElements[u],gn.type==="3d"){if(b){var w=this.mat.toCSS();re=gn.container.style,re.transform=w,re.webkitTransform=w}this.pe._mdf&&(x=gn.perspectiveElem.style,x.perspective=this.pe.v+"px",x.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 d=this.layers[u];if(!d.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(f,u);else{for(var h=0,v,p,m;h<u;)this.elements[h]&&this.elements[h]!==!0&&this.elements[h].getBaseElement&&(p=this.elements[h],m=this.layers[h].ddd?this.getThreeDContainerByPos(h):p.getBaseElement(),v=m||v),h+=1;v?(!d.ddd||!this.supports3d)&&this.layerElement.insertBefore(f,v):(!d.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"),d,h;styleDiv(f);var v=createTag("div");if(styleDiv(v),u==="3d"){d=f.style,d.width=this.globalData.compSize.w+"px",d.height=this.globalData.compSize.h+"px";var p="50% 50%";d.webkitTransformOrigin=p,d.mozTransformOrigin=p,d.transformOrigin=p,h=v.style;var m="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";h.transform=m,h.webkitTransform=m}f.appendChild(v);var g={container:v,perspectiveElem:f,startPos:c,endPos:c,type:u};return this.threeDElements.push(g),g},HybridRendererBase.prototype.build3dContainers=function(){var c,u=this.layers.length,f,d="";for(c=0;c<u;c+=1)this.layers[c].ddd&&this.layers[c].ty!==3?(d!=="3d"&&(d="3d",f=this.createThreeDContainer(c,"3d")),f.endPos=Math.max(f.endPos,c)):(d!=="2d"&&(d="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,d=this.threeDElements.length;f<d;){if(u<=this.threeDElements[f].endPos){for(var h=this.threeDElements[f].startPos,v;h<u;)this.elements[h]&&this.elements[h].getBaseElement&&(v=this.elements[h].getBaseElement()),h+=1;v?this.threeDElements[f].container.insertBefore(c,v):this.threeDElements[f].container.appendChild(c);break}f+=1}},HybridRendererBase.prototype.configAnimation=function(c){var u=createTag("div"),f=this.animationItem.wrapper,d=u.style;d.width=c.w+"px",d.height=c.h+"px",this.resizerElem=u,styleDiv(u),d.transformStyle="flat",d.mozTransformStyle="flat",d.webkitTransformStyle="flat",this.renderConfig.className&&u.setAttribute("class",this.renderConfig.className),f.appendChild(u),d.overflow="hidden";var h=createNS("svg");h.setAttribute("width","1"),h.setAttribute("height","1"),styleDiv(h),this.resizerElem.appendChild(h);var v=createNS("defs");h.appendChild(v),this.data=c,this.setupGlobalData(c,h),this.globalData.defs=v,this.layers=c.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var c,u=this.layers?this.layers.length:0;for(c=0;c<u;c+=1)this.elements[c]&&this.elements[c].destroy&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var c=this.animationItem.wrapper.offsetWidth,u=this.animationItem.wrapper.offsetHeight,f=c/u,d=this.globalData.compSize.w/this.globalData.compSize.h,h,v,p,m;d>f?(h=c/this.globalData.compSize.w,v=c/this.globalData.compSize.w,p=0,m=(u-this.globalData.compSize.h*(c/this.globalData.compSize.w))/2):(h=u/this.globalData.compSize.h,v=u/this.globalData.compSize.h,p=(c-this.globalData.compSize.w*(u/this.globalData.compSize.h))/2,m=0);var g=this.resizerElem.style;g.webkitTransform="matrix3d("+h+",0,0,0,0,"+v+",0,0,0,0,1,0,"+p+","+m+",0,1)",g.transform=g.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var c=this.globalData.compSize.w,u=this.globalData.compSize.h,f,d=this.threeDElements.length;for(f=0;f<d;f+=1){var h=this.threeDElements[f].perspectiveElem.style;h.webkitPerspective=Math.sqrt(Math.pow(c,2)+Math.pow(u,2))+"px",h.perspective=h.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(c){var u,f=c.length,d=createTag("div");for(u=0;u<f;u+=1)if(c[u].xt){var h=this.createComp(c[u],d,this.globalData.comp,null);h.initExpressions(),this.globalData.projectInterface.registerComposition(h)}};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,d;f<u;)this.elements[f]&&this.elements[f].getBaseElement&&(d=this.elements[f].getBaseElement()),f+=1;d?this.layerElement.insertBefore(c,d):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 d=0,h=c.layers.length;d<h;){if(c.layers[d].nm===f||c.layers[d].ind===f)return c.elements[d].layerInterface;d+=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,d=256,h=6,v=52,p="random",m=u.pow(d,h),g=u.pow(2,v),y=g*2,b=d-1,gn;function x(vn,Pn,Rn){var zn=[];Pn=Pn===!0?{entropy:!0}:Pn||{};var Un=Fn(J(Pn.entropy?[vn,j(c)]:vn===null?Bn():vn,3),zn),qn=new re(zn),Qn=function(){for(var Zn=qn.g(h),Xn=m,nr=0;Zn<g;)Zn=(Zn+nr)*d,Xn*=d,nr=qn.g(1);for(;Zn>=y;)Zn/=2,Xn/=2,nr>>>=1;return(Zn+nr)/Xn};return Qn.int32=function(){return qn.g(4)|0},Qn.quick=function(){return qn.g(4)/4294967296},Qn.double=Qn,Fn(j(qn.S),c),(Pn.pass||Rn||function(Jn,Zn,Xn,nr){return nr&&(nr.S&&w(nr,qn),Jn.state=function(){return w(qn,{})}),Xn?(u[p]=Jn,Zn):Jn})(Qn,Un,"global"in Pn?Pn.global:this==u,Pn.state)}u["seed"+p]=x;function re(vn){var Pn,Rn=vn.length,zn=this,Un=0,qn=zn.i=zn.j=0,Qn=zn.S=[];for(Rn||(vn=[Rn++]);Un<d;)Qn[Un]=Un++;for(Un=0;Un<d;Un++)Qn[Un]=Qn[qn=b&qn+vn[Un%Rn]+(Pn=Qn[Un])],Qn[qn]=Pn;zn.g=function(Jn){for(var Zn,Xn=0,nr=zn.i,sr=zn.j,ur=zn.S;Jn--;)Zn=ur[nr=b&nr+1],Xn=Xn*d+ur[b&(ur[nr]=ur[sr=b&sr+Zn])+(ur[sr]=Zn)];return zn.i=nr,zn.j=sr,Xn}}function w(vn,Pn){return Pn.i=vn.i,Pn.j=vn.j,Pn.S=vn.S.slice(),Pn}function J(vn,Pn){var Rn=[],zn=_typeof$2(vn),Un;if(Pn&&zn=="object")for(Un in vn)try{Rn.push(J(vn[Un],Pn-1))}catch{}return Rn.length?Rn:zn=="string"?vn:vn+"\0"}function Fn(vn,Pn){for(var Rn=vn+"",zn,Un=0;Un<Rn.length;)Pn[b&Un]=b&(zn^=Pn[b&Un]*19)+Rn.charCodeAt(Un++);return j(Pn)}function Bn(){try{var vn=new Uint8Array(d);return(f.crypto||f.msCrypto).getRandomValues(vn),j(vn)}catch{var Pn=f.navigator,Rn=Pn&&Pn.plugins;return[+new Date,f,Rn,f.screen,j(c)]}}function j(vn){return String.fromCharCode.apply(0,vn)}Fn(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,d=c.length,h=[];for(f=0;f<d;f+=1)h[f]=-c[f];return h}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),d=_typeof$1(u);if(isNumerable(f,c)&&isNumerable(d,u)||f==="string"||d==="string")return c+u;if($bm_isInstanceOfArray(c)&&isNumerable(d,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 h=0,v=c.length,p=u.length,m=[];h<v||h<p;)(typeof c[h]=="number"||c[h]instanceof Number)&&(typeof u[h]=="number"||u[h]instanceof Number)?m[h]=c[h]+u[h]:m[h]=u[h]===void 0?c[h]:c[h]||u[h],h+=1;return m}return 0}var add=sum;function sub(c,u){var f=_typeof$1(c),d=_typeof$1(u);if(isNumerable(f,c)&&isNumerable(d,u))return f==="string"&&(c=parseInt(c,10)),d==="string"&&(u=parseInt(u,10)),c-u;if($bm_isInstanceOfArray(c)&&isNumerable(d,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 h=0,v=c.length,p=u.length,m=[];h<v||h<p;)(typeof c[h]=="number"||c[h]instanceof Number)&&(typeof u[h]=="number"||u[h]instanceof Number)?m[h]=c[h]-u[h]:m[h]=u[h]===void 0?c[h]:c[h]||u[h],h+=1;return m}return 0}function mul(c,u){var f=_typeof$1(c),d=_typeof$1(u),h;if(isNumerable(f,c)&&isNumerable(d,u))return c*u;var v,p;if($bm_isInstanceOfArray(c)&&isNumerable(d,u)){for(p=c.length,h=createTypedArray("float32",p),v=0;v<p;v+=1)h[v]=c[v]*u;return h}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(p=u.length,h=createTypedArray("float32",p),v=0;v<p;v+=1)h[v]=c*u[v];return h}return 0}function div(c,u){var f=_typeof$1(c),d=_typeof$1(u),h;if(isNumerable(f,c)&&isNumerable(d,u))return c/u;var v,p;if($bm_isInstanceOfArray(c)&&isNumerable(d,u)){for(p=c.length,h=createTypedArray("float32",p),v=0;v<p;v+=1)h[v]=c[v]/u;return h}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(p=u.length,h=createTypedArray("float32",p),v=0;v<p;v+=1)h[v]=c/u[v];return h}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 d=f;f=u,u=d}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,d=Math.min(c.length,u.length),h=0;for(f=0;f<d;f+=1)h+=Math.pow(u[f]-c[f],2);return Math.sqrt(h)}function normalize(c){return div(c,length(c))}function rgbToHsl(c){var u=c[0],f=c[1],d=c[2],h=Math.max(u,f,d),v=Math.min(u,f,d),p,m,g=(h+v)/2;if(h===v)p=0,m=0;else{var y=h-v;switch(m=g>.5?y/(2-h-v):y/(h+v),h){case u:p=(f-d)/y+(f<d?6:0);break;case f:p=(d-u)/y+2;break;case d:p=(u-f)/y+4;break}p/=6}return[p,m,g,c[3]]}function hue2rgb(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}function hslToRgb(c){var u=c[0],f=c[1],d=c[2],h,v,p;if(f===0)h=d,p=d,v=d;else{var m=d<.5?d*(1+f):d+f-d*f,g=2*d-m;h=hue2rgb(g,m,u+1/3),v=hue2rgb(g,m,u),p=hue2rgb(g,m,u-1/3)}return[h,v,p,c[3]]}function linear(c,u,f,d,h){if((d===void 0||h===void 0)&&(d=u,h=f,u=0,f=1),f<u){var v=f;f=u,u=v}if(c<=u)return d;if(c>=f)return h;var p=f===u?0:(c-u)/(f-u);if(!d.length)return d+(h-d)*p;var m,g=d.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=d[m]+(h[m]-d[m])*p;return y}function random(c,u){if(u===void 0&&(c===void 0?(c=0,u=1):(u=c,c=void 0)),u.length){var f,d=u.length;c||(c=createTypedArray("float32",d));var h=createTypedArray("float32",d),v=BMMath.random();for(f=0;f<d;f+=1)h[f]=c[f]+v*(u[f]-c[f]);return h}c===void 0&&(c=0);var p=BMMath.random();return c+p*(u-c)}function createPath(c,u,f,d){var h,v=c.length,p=shapePool.newElement();p.setPathData(!!d,v);var m=[0,0],g,y;for(h=0;h<v;h+=1)g=u&&u[h]?u[h]:m,y=f&&f[h]?f[h]:m,p.setTripleAt(c[h][0],c[h][1],y[0]+c[h][0],y[1]+c[h][1],g[0]+c[h][0],g[1]+c[h][1],h,!0);return p}function initiateExpression(elem,data,property){function noOp(c){return c}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function c(u,f){var d,h,v=this.pv.length?this.pv.length:1,p=createTypedArray("float32",v);u=5;var m=Math.floor(time*u);for(d=0,h=0;d<m;){for(h=0;h<v;h+=1)p[h]+=-f+f*2*BMMath.random();d+=1}var g=time*u,y=g-Math.floor(g),b=createTypedArray("float32",v);if(v>1){for(h=0;h<v;h+=1)b[h]=this.pv[h]+p[h]+(-f+f*2*BMMath.random())*y;return b}return this.pv+p[0]+(-f+f*2*BMMath.random())*y}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(c,u){return loopIn(c,u,!0)}function loopOutDuration(c,u){return loopOut(c,u,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(c,u){var f=[u[0]-c[0],u[1]-c[1],u[2]-c[2]],d=Math.atan2(f[0],Math.sqrt(f[1]*f[1]+f[2]*f[2]))/degToRads,h=-Math.atan2(f[1],f[2])/degToRads;return[h,d,0]}function easeOut(c,u,f,d,h){return applyEase(easeOutBez,c,u,f,d,h)}function easeIn(c,u,f,d,h){return applyEase(easeInBez,c,u,f,d,h)}function ease(c,u,f,d,h){return applyEase(easeInOutBez,c,u,f,d,h)}function applyEase(c,u,f,d,h,v){h===void 0?(h=f,v=d):u=(u-f)/(d-f),u>1?u=1:u<0&&(u=0);var p=c(u);if($bm_isInstanceOfArray(h)){var m,g=h.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=(v[m]-h[m])*p+h[m];return y}return(v-h)*p+h}function nearestKey(c){var u,f=data.k.length,d,h;if(!data.k.length||typeof data.k[0]=="number")d=0,h=0;else if(d=-1,c*=elem.comp.globalData.frameRate,c<data.k[0].t)d=1,h=data.k[0].t;else{for(u=0;u<f-1;u+=1)if(c===data.k[u].t){d=u+1,h=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?(d=u+2,h=data.k[u+1].t):(d=u+1,h=data.k[u].t);break}d===-1&&(d=u+1,h=data.k[u].t)}var v={};return v.index=d,v.time=h/elem.comp.globalData.frameRate,v}function key(c){var u,f,d;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 h=Object.prototype.hasOwnProperty.call(data.k[c],"s")?data.k[c].s:data.k[c-1].e;for(d=h.length,f=0;f<d;f+=1)u[f]=h[f],u.value[f]=h[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 d=0,h=[];function v(){d+=1}function p(){d-=1,d===0&&g()}function m(y){h.indexOf(y)===-1&&h.push(y)}function g(){var y,b=h.length;for(y=0;y<b;y+=1)h[y].release();h.length=0}f.renderer.compInterface=CompExpressionInterface(f.renderer),f.renderer.globalData.projectInterface.registerComposition(f.renderer),f.renderer.globalData.pushExpression=v,f.renderer.globalData.popExpression=p,f.renderer.globalData.registerExpressionProperty=m}return c}(),MaskManagerInterface=function(){function c(f,d){this._mask=f,this._data=d}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(d){var h=createSizedArray(d.viewData.length),v,p=d.viewData.length;for(v=0;v<p;v+=1)h[v]=new c(d.viewData[v],d.masksProperties[v]);var m=function(y){for(v=0;v<p;){if(d.masksProperties[v].nm===y)return h[v];v+=1}return null};return m};return u}(),ExpressionPropertyInterface=function(){var c={pv:0,v:0,mult:1},u={pv:[0,0,0],v:[0,0,0],mult:1};function f(p,m,g){Object.defineProperty(p,"velocity",{get:function(){return m.getVelocityAtTime(m.comp.currentFrame)}}),p.numKeys=m.keyframes?m.keyframes.length:0,p.key=function(y){if(!p.numKeys)return 0;var b="";"s"in m.keyframes[y-1]?b=m.keyframes[y-1].s:"e"in m.keyframes[y-2]?b=m.keyframes[y-2].e:b=m.keyframes[y-2].s;var gn=g==="unidimensional"?new Number(b):Object.assign({},b);return gn.time=m.keyframes[y-1].t/m.elem.comp.globalData.frameRate,gn.value=g==="unidimensional"?b[0]:b,gn},p.valueAtTime=m.getValueAtTime,p.speedAtTime=m.getSpeedAtTime,p.velocityAtTime=m.getVelocityAtTime,p.propertyGroup=m.propertyGroup}function d(p){(!p||!("pv"in p))&&(p=c);var m=1/p.mult,g=p.pv*m,y=new Number(g);return y.value=g,f(y,p,"unidimensional"),function(){return p.k&&p.getValue(),g=p.v*m,y.value!==g&&(y=new Number(g),y.value=g,f(y,p,"unidimensional")),y}}function h(p){(!p||!("pv"in p))&&(p=u);var m=1/p.mult,g=p.data&&p.data.l||p.pv.length,y=createTypedArray("float32",g),b=createTypedArray("float32",g);return y.value=b,f(y,p,"multidimensional"),function(){p.k&&p.getValue();for(var gn=0;gn<g;gn+=1)b[gn]=p.v[gn]*m,y[gn]=b[gn];return y}}function v(){return c}return function(p){return p?p.propType==="unidimensional"?d(p):h(p):v}}(),TransformExpressionInterface=function(){return function(c){function u(p){switch(p){case"scale":case"Scale":case"ADBE Scale":case 6:return u.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return u.rotation;case"ADBE Rotate X":return u.xRotation;case"ADBE Rotate Y":return u.yRotation;case"position":case"Position":case"ADBE Position":case 2:return u.position;case"ADBE Position_0":return u.xPosition;case"ADBE Position_1":return u.yPosition;case"ADBE Position_2":return u.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return u.anchorPoint;case"opacity":case"Opacity":case 11:return u.opacity;default:return null}}Object.defineProperty(u,"rotation",{get:ExpressionPropertyInterface(c.r||c.rz)}),Object.defineProperty(u,"zRotation",{get:ExpressionPropertyInterface(c.rz||c.r)}),Object.defineProperty(u,"xRotation",{get:ExpressionPropertyInterface(c.rx)}),Object.defineProperty(u,"yRotation",{get:ExpressionPropertyInterface(c.ry)}),Object.defineProperty(u,"scale",{get:ExpressionPropertyInterface(c.s)});var f,d,h,v;return c.p?v=ExpressionPropertyInterface(c.p):(f=ExpressionPropertyInterface(c.px),d=ExpressionPropertyInterface(c.py),c.pz&&(h=ExpressionPropertyInterface(c.pz))),Object.defineProperty(u,"position",{get:function(){return c.p?v():[f(),d(),h?h():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 b=new Matrix;if(y!==void 0){var gn=this._elem.finalTransform.mProp.getValueAtTime(y);gn.clone(b)}else{var x=this._elem.finalTransform.mProp;x.applyToMatrix(b)}return b}function u(y,b){var gn=this.getMatrix(b);return gn.props[12]=0,gn.props[13]=0,gn.props[14]=0,this.applyPoint(gn,y)}function f(y,b){var gn=this.getMatrix(b);return this.applyPoint(gn,y)}function d(y,b){var gn=this.getMatrix(b);return gn.props[12]=0,gn.props[13]=0,gn.props[14]=0,this.invertPoint(gn,y)}function h(y,b){var gn=this.getMatrix(b);return this.invertPoint(gn,y)}function v(y,b){if(this._elem.hierarchy&&this._elem.hierarchy.length){var gn,x=this._elem.hierarchy.length;for(gn=0;gn<x;gn+=1)this._elem.hierarchy[gn].finalTransform.mProp.applyToMatrix(y)}return y.applyToPointArray(b[0],b[1],b[2]||0)}function p(y,b){if(this._elem.hierarchy&&this._elem.hierarchy.length){var gn,x=this._elem.hierarchy.length;for(gn=0;gn<x;gn+=1)this._elem.hierarchy[gn].finalTransform.mProp.applyToMatrix(y)}return y.inversePoint(b)}function m(y){var b=new Matrix;if(b.reset(),this._elem.finalTransform.mProp.applyToMatrix(b),this._elem.hierarchy&&this._elem.hierarchy.length){var gn,x=this._elem.hierarchy.length;for(gn=0;gn<x;gn+=1)this._elem.hierarchy[gn].finalTransform.mProp.applyToMatrix(b);return b.inversePoint(y)}return b.inversePoint(y)}function g(){return[1,1,1,1]}return function(y){var b;function gn(J){re.mask=new MaskManagerInterface(J,y)}function x(J){re.effect=J}function re(J){switch(J){case"ADBE Root Vectors Group":case"Contents":case 2:return re.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return b;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return re.effect;case"ADBE Text Properties":return re.textInterface;default:return null}}re.getMatrix=c,re.invertPoint=p,re.applyPoint=v,re.toWorld=f,re.toWorldVec=u,re.fromWorld=h,re.fromWorldVec=d,re.toComp=f,re.fromComp=m,re.sampleImage=g,re.sourceRectAtTime=y.sourceRectAtTime.bind(y),re._elem=y,b=TransformExpressionInterface(y.finalTransform.mProp);var w=getDescriptor(b,"anchorPoint");return Object.defineProperties(re,{hasParent:{get:function(){return y.hierarchy.length}},parent:{get:function(){return y.hierarchy[0].layerInterface}},rotation:getDescriptor(b,"rotation"),scale:getDescriptor(b,"scale"),position:getDescriptor(b,"position"),opacity:getDescriptor(b,"opacity"),anchorPoint:w,anchor_point:w,transform:{get:function(){return b}},active:{get:function(){return y.isInRange}}}),re.startTime=y.data.st,re.index=y.data.ind,re.source=y.data.refId,re.height=y.data.ty===0?y.data.h:100,re.width=y.data.ty===0?y.data.w:100,re.inPoint=y.data.ip/y.comp.globalData.frameRate,re.outPoint=y.data.op/y.comp.globalData.frameRate,re._name=y.data.nm,re.registerMaskInterface=gn,re.registerEffectsInterface=x,re}}(),propertyGroupFactory=function(){return function(c,u){return function(f){return f=f===void 0?1:f,f<=0?c:u(f-1)}}}(),PropertyInterface=function(){return function(c,u){var f={_name:c};function d(h){return h=h===void 0?1:h,h<=0?f:u(h-1)}return d}}(),EffectsExpressionInterface=function(){var c={createEffectsInterface:u};function u(h,v){if(h.effectsManager){var p=[],m=h.data.ef,g,y=h.effectsManager.effectElements.length;for(g=0;g<y;g+=1)p.push(f(m[g],h.effectsManager.effectElements[g],v,h));var b=h.data.ef||[],gn=function(re){for(g=0,y=b.length;g<y;){if(re===b[g].nm||re===b[g].mn||re===b[g].ix)return p[g];g+=1}return null};return Object.defineProperty(gn,"numProperties",{get:function(){return b.length}}),gn}return null}function f(h,v,p,m){function g(re){for(var w=h.ef,J=0,Fn=w.length;J<Fn;){if(re===w[J].nm||re===w[J].mn||re===w[J].ix)return w[J].ty===5?b[J]:b[J]();J+=1}throw new Error}var y=propertyGroupFactory(g,p),b=[],gn,x=h.ef.length;for(gn=0;gn<x;gn+=1)h.ef[gn].ty===5?b.push(f(h.ef[gn],v.effectElements[gn],v.effectElements[gn].propertyGroup,m)):b.push(d(v.effectElements[gn],h.ef[gn].ty,m,y));return h.mn==="ADBE Color Control"&&Object.defineProperty(g,"color",{get:function(){return b[0]()}}),Object.defineProperties(g,{numProperties:{get:function(){return h.np}},_name:{value:h.nm},propertyGroup:{value:y}}),g.enabled=h.en!==0,g.active=g.enabled,g}function d(h,v,p,m){var g=ExpressionPropertyInterface(h.p);function y(){return v===10?p.comp.compInterface(h.p.v):g()}return h.p.setGroupProperty&&h.p.setGroupProperty(PropertyInterface("",m)),y}return c}(),ShapePathInterface=function(){return function(u,f,d){var h=f.sh;function v(m){return m==="Shape"||m==="shape"||m==="Path"||m==="path"||m==="ADBE Vector Shape"||m===2?v.path:null}var p=propertyGroupFactory(v,d);return h.setGroupProperty(PropertyInterface("Path",p)),Object.defineProperties(v,{path:{get:function(){return h.k&&h.getValue(),h}},shape:{get:function(){return h.k&&h.getValue(),h}},_name:{value:u.nm},ix:{value:u.ix},propertyIndex:{value:u.ix},mn:{value:u.mn},propertyGroup:{value:d}}),v}}(),ShapeExpressionInterface=function(){function c(w,J,Fn){var Bn=[],j,vn=w?w.length:0;for(j=0;j<vn;j+=1)w[j].ty==="gr"?Bn.push(f(w[j],J[j],Fn)):w[j].ty==="fl"?Bn.push(d(w[j],J[j],Fn)):w[j].ty==="st"?Bn.push(p(w[j],J[j],Fn)):w[j].ty==="tm"?Bn.push(m(w[j],J[j],Fn)):w[j].ty==="tr"||(w[j].ty==="el"?Bn.push(y(w[j],J[j],Fn)):w[j].ty==="sr"?Bn.push(b(w[j],J[j],Fn)):w[j].ty==="sh"?Bn.push(ShapePathInterface(w[j],J[j],Fn)):w[j].ty==="rc"?Bn.push(gn(w[j],J[j],Fn)):w[j].ty==="rd"?Bn.push(x(w[j],J[j],Fn)):w[j].ty==="rp"?Bn.push(re(w[j],J[j],Fn)):w[j].ty==="gf"?Bn.push(h(w[j],J[j],Fn)):Bn.push(v(w[j],J[j])));return Bn}function u(w,J,Fn){var Bn,j=function(Rn){for(var zn=0,Un=Bn.length;zn<Un;){if(Bn[zn]._name===Rn||Bn[zn].mn===Rn||Bn[zn].propertyIndex===Rn||Bn[zn].ix===Rn||Bn[zn].ind===Rn)return Bn[zn];zn+=1}return typeof Rn=="number"?Bn[Rn-1]:null};j.propertyGroup=propertyGroupFactory(j,Fn),Bn=c(w.it,J.it,j.propertyGroup),j.numProperties=Bn.length;var vn=g(w.it[w.it.length-1],J.it[J.it.length-1],j.propertyGroup);return j.transform=vn,j.propertyIndex=w.cix,j._name=w.nm,j}function f(w,J,Fn){var Bn=function(Rn){switch(Rn){case"ADBE Vectors Group":case"Contents":case 2:return Bn.content;default:return Bn.transform}};Bn.propertyGroup=propertyGroupFactory(Bn,Fn);var j=u(w,J,Bn.propertyGroup),vn=g(w.it[w.it.length-1],J.it[J.it.length-1],Bn.propertyGroup);return Bn.content=j,Bn.transform=vn,Object.defineProperty(Bn,"_name",{get:function(){return w.nm}}),Bn.numProperties=w.np,Bn.propertyIndex=w.ix,Bn.nm=w.nm,Bn.mn=w.mn,Bn}function d(w,J,Fn){function Bn(j){return j==="Color"||j==="color"?Bn.color:j==="Opacity"||j==="opacity"?Bn.opacity:null}return Object.defineProperties(Bn,{color:{get:ExpressionPropertyInterface(J.c)},opacity:{get:ExpressionPropertyInterface(J.o)},_name:{value:w.nm},mn:{value:w.mn}}),J.c.setGroupProperty(PropertyInterface("Color",Fn)),J.o.setGroupProperty(PropertyInterface("Opacity",Fn)),Bn}function h(w,J,Fn){function Bn(j){return j==="Start Point"||j==="start point"?Bn.startPoint:j==="End Point"||j==="end point"?Bn.endPoint:j==="Opacity"||j==="opacity"?Bn.opacity:null}return Object.defineProperties(Bn,{startPoint:{get:ExpressionPropertyInterface(J.s)},endPoint:{get:ExpressionPropertyInterface(J.e)},opacity:{get:ExpressionPropertyInterface(J.o)},type:{get:function(){return"a"}},_name:{value:w.nm},mn:{value:w.mn}}),J.s.setGroupProperty(PropertyInterface("Start Point",Fn)),J.e.setGroupProperty(PropertyInterface("End Point",Fn)),J.o.setGroupProperty(PropertyInterface("Opacity",Fn)),Bn}function v(){function w(){return null}return w}function p(w,J,Fn){var Bn=propertyGroupFactory(Un,Fn),j=propertyGroupFactory(zn,Bn);function vn(qn){Object.defineProperty(zn,w.d[qn].nm,{get:ExpressionPropertyInterface(J.d.dataProps[qn].p)})}var Pn,Rn=w.d?w.d.length:0,zn={};for(Pn=0;Pn<Rn;Pn+=1)vn(Pn),J.d.dataProps[Pn].p.setGroupProperty(j);function Un(qn){return qn==="Color"||qn==="color"?Un.color:qn==="Opacity"||qn==="opacity"?Un.opacity:qn==="Stroke Width"||qn==="stroke width"?Un.strokeWidth:null}return Object.defineProperties(Un,{color:{get:ExpressionPropertyInterface(J.c)},opacity:{get:ExpressionPropertyInterface(J.o)},strokeWidth:{get:ExpressionPropertyInterface(J.w)},dash:{get:function(){return zn}},_name:{value:w.nm},mn:{value:w.mn}}),J.c.setGroupProperty(PropertyInterface("Color",Bn)),J.o.setGroupProperty(PropertyInterface("Opacity",Bn)),J.w.setGroupProperty(PropertyInterface("Stroke Width",Bn)),Un}function m(w,J,Fn){function Bn(vn){return vn===w.e.ix||vn==="End"||vn==="end"?Bn.end:vn===w.s.ix?Bn.start:vn===w.o.ix?Bn.offset:null}var j=propertyGroupFactory(Bn,Fn);return Bn.propertyIndex=w.ix,J.s.setGroupProperty(PropertyInterface("Start",j)),J.e.setGroupProperty(PropertyInterface("End",j)),J.o.setGroupProperty(PropertyInterface("Offset",j)),Bn.propertyIndex=w.ix,Bn.propertyGroup=Fn,Object.defineProperties(Bn,{start:{get:ExpressionPropertyInterface(J.s)},end:{get:ExpressionPropertyInterface(J.e)},offset:{get:ExpressionPropertyInterface(J.o)},_name:{value:w.nm}}),Bn.mn=w.mn,Bn}function g(w,J,Fn){function Bn(vn){return w.a.ix===vn||vn==="Anchor Point"?Bn.anchorPoint:w.o.ix===vn||vn==="Opacity"?Bn.opacity:w.p.ix===vn||vn==="Position"?Bn.position:w.r.ix===vn||vn==="Rotation"||vn==="ADBE Vector Rotation"?Bn.rotation:w.s.ix===vn||vn==="Scale"?Bn.scale:w.sk&&w.sk.ix===vn||vn==="Skew"?Bn.skew:w.sa&&w.sa.ix===vn||vn==="Skew Axis"?Bn.skewAxis:null}var j=propertyGroupFactory(Bn,Fn);return J.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",j)),J.transform.mProps.p.setGroupProperty(PropertyInterface("Position",j)),J.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",j)),J.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",j)),J.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",j)),J.transform.mProps.sk&&(J.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",j)),J.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",j))),J.transform.op.setGroupProperty(PropertyInterface("Opacity",j)),Object.defineProperties(Bn,{opacity:{get:ExpressionPropertyInterface(J.transform.mProps.o)},position:{get:ExpressionPropertyInterface(J.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(J.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(J.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(J.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(J.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(J.transform.mProps.sa)},_name:{value:w.nm}}),Bn.ty="tr",Bn.mn=w.mn,Bn.propertyGroup=Fn,Bn}function y(w,J,Fn){function Bn(Pn){return w.p.ix===Pn?Bn.position:w.s.ix===Pn?Bn.size:null}var j=propertyGroupFactory(Bn,Fn);Bn.propertyIndex=w.ix;var vn=J.sh.ty==="tm"?J.sh.prop:J.sh;return vn.s.setGroupProperty(PropertyInterface("Size",j)),vn.p.setGroupProperty(PropertyInterface("Position",j)),Object.defineProperties(Bn,{size:{get:ExpressionPropertyInterface(vn.s)},position:{get:ExpressionPropertyInterface(vn.p)},_name:{value:w.nm}}),Bn.mn=w.mn,Bn}function b(w,J,Fn){function Bn(Pn){return w.p.ix===Pn?Bn.position:w.r.ix===Pn?Bn.rotation:w.pt.ix===Pn?Bn.points:w.or.ix===Pn||Pn==="ADBE Vector Star Outer Radius"?Bn.outerRadius:w.os.ix===Pn?Bn.outerRoundness:w.ir&&(w.ir.ix===Pn||Pn==="ADBE Vector Star Inner Radius")?Bn.innerRadius:w.is&&w.is.ix===Pn?Bn.innerRoundness:null}var j=propertyGroupFactory(Bn,Fn),vn=J.sh.ty==="tm"?J.sh.prop:J.sh;return Bn.propertyIndex=w.ix,vn.or.setGroupProperty(PropertyInterface("Outer Radius",j)),vn.os.setGroupProperty(PropertyInterface("Outer Roundness",j)),vn.pt.setGroupProperty(PropertyInterface("Points",j)),vn.p.setGroupProperty(PropertyInterface("Position",j)),vn.r.setGroupProperty(PropertyInterface("Rotation",j)),w.ir&&(vn.ir.setGroupProperty(PropertyInterface("Inner Radius",j)),vn.is.setGroupProperty(PropertyInterface("Inner Roundness",j))),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:w.nm}}),Bn.mn=w.mn,Bn}function gn(w,J,Fn){function Bn(Pn){return w.p.ix===Pn?Bn.position:w.r.ix===Pn?Bn.roundness:w.s.ix===Pn||Pn==="Size"||Pn==="ADBE Vector Rect Size"?Bn.size:null}var j=propertyGroupFactory(Bn,Fn),vn=J.sh.ty==="tm"?J.sh.prop:J.sh;return Bn.propertyIndex=w.ix,vn.p.setGroupProperty(PropertyInterface("Position",j)),vn.s.setGroupProperty(PropertyInterface("Size",j)),vn.r.setGroupProperty(PropertyInterface("Rotation",j)),Object.defineProperties(Bn,{position:{get:ExpressionPropertyInterface(vn.p)},roundness:{get:ExpressionPropertyInterface(vn.r)},size:{get:ExpressionPropertyInterface(vn.s)},_name:{value:w.nm}}),Bn.mn=w.mn,Bn}function x(w,J,Fn){function Bn(Pn){return w.r.ix===Pn||Pn==="Round Corners 1"?Bn.radius:null}var j=propertyGroupFactory(Bn,Fn),vn=J;return Bn.propertyIndex=w.ix,vn.rd.setGroupProperty(PropertyInterface("Radius",j)),Object.defineProperties(Bn,{radius:{get:ExpressionPropertyInterface(vn.rd)},_name:{value:w.nm}}),Bn.mn=w.mn,Bn}function re(w,J,Fn){function Bn(Pn){return w.c.ix===Pn||Pn==="Copies"?Bn.copies:w.o.ix===Pn||Pn==="Offset"?Bn.offset:null}var j=propertyGroupFactory(Bn,Fn),vn=J;return Bn.propertyIndex=w.ix,vn.c.setGroupProperty(PropertyInterface("Copies",j)),vn.o.setGroupProperty(PropertyInterface("Offset",j)),Object.defineProperties(Bn,{copies:{get:ExpressionPropertyInterface(vn.c)},offset:{get:ExpressionPropertyInterface(vn.o)},_name:{value:w.nm}}),Bn.mn=w.mn,Bn}return function(w,J,Fn){var Bn;function j(Pn){if(typeof Pn=="number")return Pn=Pn===void 0?1:Pn,Pn===0?Fn:Bn[Pn-1];for(var Rn=0,zn=Bn.length;Rn<zn;){if(Bn[Rn]._name===Pn)return Bn[Rn];Rn+=1}return null}function vn(){return Fn}return j.propertyGroup=propertyGroupFactory(j,vn),Bn=c(w,J,j.propertyGroup),j.numProperties=Bn.length,j._name="Contents",j}}(),TextExpressionInterface=function(){return function(c){var u;function f(d){switch(d){case"ADBE Text Document":return f.sourceText;default:return null}}return Object.defineProperty(f,"sourceText",{get:function(){c.textProperty.getValue();var h=c.textProperty.currentData.t;return(!u||h!==u.value)&&(u=new String(h),u.value=h||new String(h),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(d){var h="",v=d.getFootageData();function p(){return h="",v=d.getFootageData(),m}function m(g){if(v[g])return h=g,v=v[g],_typeof(v)==="object"?m:v;var y=g.indexOf(h);if(y!==-1){var b=parseInt(g.substr(y+h.length),10);return v=v[b],_typeof(v)==="object"?m:v}return""}return p},u=function(d){function h(v){return v==="Outline"?h.outlineInterface():null}return h._name="Outline",h.outlineInterface=c(d),h};return function(f){function d(h){return h==="Data"?d.dataInterface:null}return d._name="Data",d.dataInterface=u(f),d}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(c){return interfaces[c]||null}var expressionHelpers=function(){function c(p,m,g){m.x&&(g.k=!0,g.x=!0,g.initiateExpression=ExpressionManager.initiateExpression,g.effectsSequence.push(g.initiateExpression(p,m,g).bind(g)))}function u(p){return p*=this.elem.globalData.frameRate,p-=this.offsetTime,p!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<p?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(p,this._cachingAtTime),this._cachingAtTime.lastFrame=p),this._cachingAtTime.value}function f(p){var m=-.01,g=this.getValueAtTime(p),y=this.getValueAtTime(p+m),b=0;if(g.length){var gn;for(gn=0;gn<g.length;gn+=1)b+=Math.pow(y[gn]-g[gn],2);b=Math.sqrt(b)*100}else b=0;return b}function d(p){if(this.vel!==void 0)return this.vel;var m=-.001,g=this.getValueAtTime(p),y=this.getValueAtTime(p+m),b;if(g.length){b=createTypedArray("float32",g.length);var gn;for(gn=0;gn<g.length;gn+=1)b[gn]=(y[gn]-g[gn])/m}else b=(y-g)/m;return b}function h(){return this.pv}function v(p){this.propertyGroup=p}return{searchExpressions:c,getSpeedAtTime:f,getVelocityAtTime:d,getValueAtTime:u,getStaticValueAtTime:h,setGroupProperty:v}}();function addPropertyDecorator(){function c(x,re,w){if(!this.k||!this.keyframes)return this.pv;x=x?x.toLowerCase():"";var J=this.comp.renderedFrame,Fn=this.keyframes,Bn=Fn[Fn.length-1].t;if(J<=Bn)return this.pv;var j,vn;w?(re?j=Math.abs(Bn-this.elem.comp.globalData.frameRate*re):j=Math.max(0,Bn-this.elem.data.ip),vn=Bn-j):((!re||re>Fn.length-1)&&(re=Fn.length-1),vn=Fn[Fn.length-1-re].t,j=Bn-vn);var Pn,Rn,zn;if(x==="pingpong"){var Un=Math.floor((J-vn)/j);if(Un%2!==0)return this.getValueAtTime((j-(J-vn)%j+vn)/this.comp.globalData.frameRate,0)}else if(x==="offset"){var qn=this.getValueAtTime(vn/this.comp.globalData.frameRate,0),Qn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),Jn=this.getValueAtTime(((J-vn)%j+vn)/this.comp.globalData.frameRate,0),Zn=Math.floor((J-vn)/j);if(this.pv.length){for(zn=new Array(qn.length),Rn=zn.length,Pn=0;Pn<Rn;Pn+=1)zn[Pn]=(Qn[Pn]-qn[Pn])*Zn+Jn[Pn];return zn}return(Qn-qn)*Zn+Jn}else if(x==="continue"){var Xn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),nr=this.getValueAtTime((Bn-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(zn=new Array(Xn.length),Rn=zn.length,Pn=0;Pn<Rn;Pn+=1)zn[Pn]=Xn[Pn]+(Xn[Pn]-nr[Pn])*((J-Bn)/this.comp.globalData.frameRate)/5e-4;return zn}return Xn+(Xn-nr)*((J-Bn)/.001)}return this.getValueAtTime(((J-vn)%j+vn)/this.comp.globalData.frameRate,0)}function u(x,re,w){if(!this.k)return this.pv;x=x?x.toLowerCase():"";var J=this.comp.renderedFrame,Fn=this.keyframes,Bn=Fn[0].t;if(J>=Bn)return this.pv;var j,vn;w?(re?j=Math.abs(this.elem.comp.globalData.frameRate*re):j=Math.max(0,this.elem.data.op-Bn),vn=Bn+j):((!re||re>Fn.length-1)&&(re=Fn.length-1),vn=Fn[re].t,j=vn-Bn);var Pn,Rn,zn;if(x==="pingpong"){var Un=Math.floor((Bn-J)/j);if(Un%2===0)return this.getValueAtTime(((Bn-J)%j+Bn)/this.comp.globalData.frameRate,0)}else if(x==="offset"){var qn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),Qn=this.getValueAtTime(vn/this.comp.globalData.frameRate,0),Jn=this.getValueAtTime((j-(Bn-J)%j+Bn)/this.comp.globalData.frameRate,0),Zn=Math.floor((Bn-J)/j)+1;if(this.pv.length){for(zn=new Array(qn.length),Rn=zn.length,Pn=0;Pn<Rn;Pn+=1)zn[Pn]=Jn[Pn]-(Qn[Pn]-qn[Pn])*Zn;return zn}return Jn-(Qn-qn)*Zn}else if(x==="continue"){var Xn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),nr=this.getValueAtTime((Bn+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(zn=new Array(Xn.length),Rn=zn.length,Pn=0;Pn<Rn;Pn+=1)zn[Pn]=Xn[Pn]+(Xn[Pn]-nr[Pn])*(Bn-J)/.001;return zn}return Xn+(Xn-nr)*(Bn-J)/.001}return this.getValueAtTime((j-((Bn-J)%j+Bn))/this.comp.globalData.frameRate,0)}function f(x,re){if(!this.k)return this.pv;if(x=(x||.4)*.5,re=Math.floor(re||5),re<=1)return this.pv;var w=this.comp.renderedFrame/this.comp.globalData.frameRate,J=w-x,Fn=w+x,Bn=re>1?(Fn-J)/(re-1):1,j=0,vn=0,Pn;this.pv.length?Pn=createTypedArray("float32",this.pv.length):Pn=0;for(var Rn;j<re;){if(Rn=this.getValueAtTime(J+j*Bn),this.pv.length)for(vn=0;vn<this.pv.length;vn+=1)Pn[vn]+=Rn[vn];else Pn+=Rn;j+=1}if(this.pv.length)for(vn=0;vn<this.pv.length;vn+=1)Pn[vn]/=re;else Pn/=re;return Pn}function d(x){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var re=this._transformCachingAtTime.v;if(re.cloneFromProps(this.pre.props),this.appliedTransformations<1){var w=this.a.getValueAtTime(x);re.translate(-w[0]*this.a.mult,-w[1]*this.a.mult,w[2]*this.a.mult)}if(this.appliedTransformations<2){var J=this.s.getValueAtTime(x);re.scale(J[0]*this.s.mult,J[1]*this.s.mult,J[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var Fn=this.sk.getValueAtTime(x),Bn=this.sa.getValueAtTime(x);re.skewFromAxis(-Fn*this.sk.mult,Bn*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var j=this.r.getValueAtTime(x);re.rotate(-j*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var vn=this.rz.getValueAtTime(x),Pn=this.ry.getValueAtTime(x),Rn=this.rx.getValueAtTime(x),zn=this.or.getValueAtTime(x);re.rotateZ(-vn*this.rz.mult).rotateY(Pn*this.ry.mult).rotateX(Rn*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(x),qn=this.py.getValueAtTime(x);if(this.data.p.z){var Qn=this.pz.getValueAtTime(x);re.translate(Un*this.px.mult,qn*this.py.mult,-Qn*this.pz.mult)}else re.translate(Un*this.px.mult,qn*this.py.mult,0)}else{var Jn=this.p.getValueAtTime(x);re.translate(Jn[0]*this.p.mult,Jn[1]*this.p.mult,-Jn[2]*this.p.mult)}return re}function h(){return this.v.clone(new Matrix)}var v=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(x,re,w){var J=v(x,re,w);return J.dynamicProperties.length?J.getValueAtTime=d.bind(J):J.getValueAtTime=h.bind(J),J.setGroupProperty=expressionHelpers.setGroupProperty,J};var p=PropertyFactory.getProp;PropertyFactory.getProp=function(x,re,w,J,Fn){var Bn=p(x,re,w,J,Fn);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=re.a===1?re.k.length:0,Bn.propertyIndex=re.ix;var j=0;return w!==0&&(j=createTypedArray("float32",re.a===1?re.k[0].s.length:re.k.length)),Bn._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:j},expressionHelpers.searchExpressions(x,re,Bn),Bn.k&&Fn.addDynamicProperty(Bn),Bn};function m(x){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),x*=this.elem.globalData.frameRate,x-=this.offsetTime,x!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<x?this._caching.lastIndex:0,this._cachingAtTime.lastTime=x,this.interpolateShape(x,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var g=ShapePropertyFactory.getConstructorFunction(),y=ShapePropertyFactory.getKeyframedConstructorFunction();function b(){}b.prototype={vertices:function(re,w){this.k&&this.getValue();var J=this.v;w!==void 0&&(J=this.getValueAtTime(w,0));var Fn,Bn=J._length,j=J[re],vn=J.v,Pn=createSizedArray(Bn);for(Fn=0;Fn<Bn;Fn+=1)re==="i"||re==="o"?Pn[Fn]=[j[Fn][0]-vn[Fn][0],j[Fn][1]-vn[Fn][1]]:Pn[Fn]=[j[Fn][0],j[Fn][1]];return Pn},points:function(re){return this.vertices("v",re)},inTangents:function(re){return this.vertices("i",re)},outTangents:function(re){return this.vertices("o",re)},isClosed:function(){return this.v.c},pointOnPath:function(re,w){var J=this.v;w!==void 0&&(J=this.getValueAtTime(w,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(J));for(var Fn=this._segmentsLength,Bn=Fn.lengths,j=Fn.totalLength*re,vn=0,Pn=Bn.length,Rn=0,zn;vn<Pn;){if(Rn+Bn[vn].addedLength>j){var Un=vn,qn=J.c&&vn===Pn-1?0:vn+1,Qn=(j-Rn)/Bn[vn].addedLength;zn=bez.getPointInSegment(J.v[Un],J.v[qn],J.o[Un],J.i[qn],Qn,Bn[vn]);break}else Rn+=Bn[vn].addedLength;vn+=1}return zn||(zn=J.c?[J.v[0][0],J.v[0][1]]:[J.v[J._length-1][0],J.v[J._length-1][1]]),zn},vectorOnPath:function(re,w,J){re==1?re=this.v.c:re==0&&(re=.999);var Fn=this.pointOnPath(re,w),Bn=this.pointOnPath(re+.001,w),j=Bn[0]-Fn[0],vn=Bn[1]-Fn[1],Pn=Math.sqrt(Math.pow(j,2)+Math.pow(vn,2));if(Pn===0)return[0,0];var Rn=J==="tangent"?[j/Pn,vn/Pn]:[-vn/Pn,j/Pn];return Rn},tangentOnPath:function(re,w){return this.vectorOnPath(re,w,"tangent")},normalOnPath:function(re,w){return this.vectorOnPath(re,w,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([b],g),extendPrototype([b],y),y.prototype.getValueAtTime=m,y.prototype.initiateExpression=ExpressionManager.initiateExpression;var gn=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(x,re,w,J,Fn){var Bn=gn(x,re,w,J,Fn);return Bn.propertyIndex=re.ix,Bn.lock=!1,w===3?expressionHelpers.searchExpressions(x,re.pt,Bn):w===4&&expressionHelpers.searchExpressions(x,re.ks,Bn),Bn.k&&x.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 d=this.calculateExpression(f);if(u.t!==d){var h={};return this.copyData(h,u),h.t=d.toString(),h.__complete=!1,h}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 d=createNS("feMerge");d.setAttribute("result",u);var h,v;for(v=0;v<f.length;v+=1)h=createNS("feMergeNode"),h.setAttribute("in",f[v]),d.appendChild(h),d.appendChild(h);return d}};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,d,h){this.filterManager=u;var v=createNS("feColorMatrix");v.setAttribute("type","matrix"),v.setAttribute("color-interpolation-filters","linearRGB"),v.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=v,v.setAttribute("result",d+"_tint_1"),c.appendChild(v),v=createNS("feColorMatrix"),v.setAttribute("type","matrix"),v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),v.setAttribute("result",d+"_tint_2"),c.appendChild(v),this.matrixFilter=v;var p=this.createMergeNode(d,[h,d+"_tint_1",d+"_tint_2"]);c.appendChild(p)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=this.filterManager.effectElements[0].p.v,f=this.filterManager.effectElements[1].p.v,d=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+d+" 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,d){this.filterManager=u;var h=createNS("feColorMatrix");h.setAttribute("type","matrix"),h.setAttribute("color-interpolation-filters","sRGB"),h.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),h.setAttribute("result",d),c.appendChild(h),this.matrixFilter=h}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,d,h;for(this.filterManager.effectElements[1].p.v===1?(h=this.elem.maskManager.masksProperties.length,d=0):(d=this.filterManager.effectElements[0].p.v-1,h=d+1),f=createNS("g"),f.setAttribute("fill","none"),f.setAttribute("stroke-linecap","round"),f.setAttribute("stroke-dashoffset",1),d;d<h;d+=1)u=createNS("path"),f.appendChild(u),this.paths.push({p:u,m:d});if(this.filterManager.effectElements[10].p.v===3){var v=createNS("mask"),p=createElementID();v.setAttribute("id",p),v.setAttribute("mask-type","alpha"),v.appendChild(f),this.elem.globalData.defs.appendChild(v);var m=createNS("g");for(m.setAttribute("mask","url("+getLocationHref()+"#"+p+")");c[0];)m.appendChild(c[0]);this.elem.layerElement.appendChild(m),this.masker=v,f.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(c=this.elem.layerElement.children||this.elem.layerElement.childNodes;c.length;)this.elem.layerElement.removeChild(c[0]);this.elem.layerElement.appendChild(f),this.elem.layerElement.removeAttribute("mask"),f.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=f},SVGStrokeEffect.prototype.renderFrame=function(c){this.initialized||this.initialize();var u,f=this.paths.length,d,h;for(u=0;u<f;u+=1)if(this.paths[u].m!==-1&&(d=this.elem.maskManager.viewData[this.paths[u].m],h=this.paths[u].p,(c||this.filterManager._mdf||d.prop._mdf)&&h.setAttribute("d",d.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||d.prop._mdf)){var v;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var p=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,m=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,g=h.getTotalLength();v="0 0 0 "+g*p+" ";var y=g*(m-p),b=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,gn=Math.floor(y/b),x;for(x=0;x<gn;x+=1)v+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";v+="0 "+g*10+" 0 0"}else v="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;h.setAttribute("stroke-dasharray",v)}if((c||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(c||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(c||this.filterManager.effectElements[3].p._mdf)){var re=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(re[0]*255)+","+bmFloor(re[1]*255)+","+bmFloor(re[2]*255)+")")}};function SVGTritoneFilter(c,u,f,d){this.filterManager=u;var h=createNS("feColorMatrix");h.setAttribute("type","matrix"),h.setAttribute("color-interpolation-filters","linearRGB"),h.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(h);var v=createNS("feComponentTransfer");v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("result",d),this.matrixFilter=v;var p=createNS("feFuncR");p.setAttribute("type","table"),v.appendChild(p),this.feFuncR=p;var m=createNS("feFuncG");m.setAttribute("type","table"),v.appendChild(m),this.feFuncG=m;var g=createNS("feFuncB");g.setAttribute("type","table"),v.appendChild(g),this.feFuncB=g,c.appendChild(v)}SVGTritoneFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=this.filterManager.effectElements[0].p.v,f=this.filterManager.effectElements[1].p.v,d=this.filterManager.effectElements[2].p.v,h=d[0]+" "+f[0]+" "+u[0],v=d[1]+" "+f[1]+" "+u[1],p=d[2]+" "+f[2]+" "+u[2];this.feFuncR.setAttribute("tableValues",h),this.feFuncG.setAttribute("tableValues",v),this.feFuncB.setAttribute("tableValues",p)}};function SVGProLevelsFilter(c,u,f,d){this.filterManager=u;var h=this.filterManager.effectElements,v=createNS("feComponentTransfer");(h[10].p.k||h[10].p.v!==0||h[11].p.k||h[11].p.v!==1||h[12].p.k||h[12].p.v!==1||h[13].p.k||h[13].p.v!==0||h[14].p.k||h[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",v)),(h[17].p.k||h[17].p.v!==0||h[18].p.k||h[18].p.v!==1||h[19].p.k||h[19].p.v!==1||h[20].p.k||h[20].p.v!==0||h[21].p.k||h[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",v)),(h[24].p.k||h[24].p.v!==0||h[25].p.k||h[25].p.v!==1||h[26].p.k||h[26].p.v!==1||h[27].p.k||h[27].p.v!==0||h[28].p.k||h[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",v)),(h[31].p.k||h[31].p.v!==0||h[32].p.k||h[32].p.v!==1||h[33].p.k||h[33].p.v!==1||h[34].p.k||h[34].p.v!==0||h[35].p.k||h[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",v)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(v.setAttribute("color-interpolation-filters","sRGB"),c.appendChild(v)),(h[3].p.k||h[3].p.v!==0||h[4].p.k||h[4].p.v!==1||h[5].p.k||h[5].p.v!==1||h[6].p.k||h[6].p.v!==0||h[7].p.k||h[7].p.v!==1)&&(v=createNS("feComponentTransfer"),v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("result",d),c.appendChild(v),this.feFuncRComposed=this.createFeFunc("feFuncR",v),this.feFuncGComposed=this.createFeFunc("feFuncG",v),this.feFuncBComposed=this.createFeFunc("feFuncB",v))}SVGProLevelsFilter.prototype.createFeFunc=function(c,u){var f=createNS(c);return f.setAttribute("type","table"),u.appendChild(f),f},SVGProLevelsFilter.prototype.getTableValue=function(c,u,f,d,h){for(var v=0,p=256,m,g=Math.min(c,u),y=Math.max(c,u),b=Array.call(null,{length:p}),gn,x=0,re=h-d,w=u-c;v<=256;)m=v/256,m<=g?gn=w<0?h:d:m>=y?gn=w<0?d:h:gn=d+re*Math.pow((m-c)/w,1/f),b[x]=gn,x+=1,v+=256/(p-1);return b.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,d,h){var v=u.container.globalData.renderConfig.filterSize,p=u.data.fs||v;c.setAttribute("x",p.x||v.x),c.setAttribute("y",p.y||v.y),c.setAttribute("width",p.width||v.width),c.setAttribute("height",p.height||v.height),this.filterManager=u;var m=createNS("feGaussianBlur");m.setAttribute("in","SourceAlpha"),m.setAttribute("result",d+"_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",d+"_drop_shadow_1"),g.setAttribute("result",d+"_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",d+"_drop_shadow_3"),this.feFlood=y,c.appendChild(y);var b=createNS("feComposite");b.setAttribute("in",d+"_drop_shadow_3"),b.setAttribute("in2",d+"_drop_shadow_2"),b.setAttribute("operator","in"),b.setAttribute("result",d+"_drop_shadow_4"),c.appendChild(b);var gn=this.createMergeNode(d,[d+"_drop_shadow_4",h]);c.appendChild(gn)}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,d=(this.filterManager.effectElements[2].p.v-90)*degToRads,h=f*Math.cos(d),v=f*Math.sin(d);this.feOffset.setAttribute("dx",h),this.feOffset.setAttribute("dy",v)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(c,u,f){this.initialized=!1,this.filterManager=u,this.filterElem=c,this.elem=f,f.matteElement=createNS("g"),f.matteElement.appendChild(f.layerElement),f.matteElement.appendChild(f.transformedElement),f.baseElement=f.matteElement}SVGMatte3Effect.prototype.findSymbol=function(c){for(var u=0,f=_svgMatteSymbols.length;u<f;){if(_svgMatteSymbols[u]===c)return _svgMatteSymbols[u];u+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(c,u){var f=c.layerElement.parentNode;if(f){for(var d=f.children,h=0,v=d.length;h<v&&d[h]!==c.layerElement;)h+=1;var p;h<=v-2&&(p=d[h+1]);var m=createNS("use");m.setAttribute("href","#"+u),p?f.insertBefore(m,p):f.appendChild(m)}},SVGMatte3Effect.prototype.setElementAsMask=function(c,u){if(!this.findSymbol(u)){var f=createElementID(),d=createNS("mask");d.setAttribute("id",u.layerId),d.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(u);var h=c.globalData.defs;h.appendChild(d);var v=createNS("symbol");v.setAttribute("id",f),this.replaceInParent(u,f),v.appendChild(u.layerElement),h.appendChild(v);var p=createNS("use");p.setAttribute("href","#"+f),d.appendChild(p),u.data.hd=!1,u.show()}c.setMatte(u.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var c=this.filterManager.effectElements[0].p.v,u=this.elem.comp.elements,f=0,d=u.length;f<d;)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,d){c.setAttribute("x","-100%"),c.setAttribute("y","-100%"),c.setAttribute("width","300%"),c.setAttribute("height","300%"),this.filterManager=u;var h=createNS("feGaussianBlur");h.setAttribute("result",d),c.appendChild(h),this.feGaussianBlur=h}SVGGaussianBlurEffect.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=.3,f=this.filterManager.effectElements[0].p.v*u,d=this.filterManager.effectElements[1].p.v,h=d==3?0:f,v=d==2?0:f;this.feGaussianBlur.setAttribute("stdDeviation",h+" "+v);var p=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",p)}};function TransformEffect(){}TransformEffect.prototype.init=function(c){this.effectsManager=c,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(c){if(this._opMdf=!1,this._mdf=!1,c||this.effectsManager._mdf){var u=this.effectsManager.effectElements,f=u[0].p.v,d=u[1].p.v,h=u[2].p.v===1,v=u[3].p.v,p=h?v:u[4].p.v,m=u[5].p.v,g=u[6].p.v,y=u[7].p.v;this.matrix.reset(),this.matrix.translate(-f[0],-f[1],f[2]),this.matrix.scale(p*.01,v*.01,1),this.matrix.rotate(-y*degToRads),this.matrix.skewFromAxis(-m*degToRads,(g+90)*degToRads),this.matrix.translate(d[0],d[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:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),h=vue.computed(()=>{const w={},{actionType:J,linkPage:Fn,href:Bn}=c,{requestParams:j={}}=window.config;return vue.unref(d)!=="design"&&J==="close"&&c.isDrillShow&&!j.drillFlag&&(w.display="none"),(J==="link"&&(Fn||Bn)||!J&&(Fn||Bn)||J==="close")&&(w.cursor="pointer"),{...vue.unref(u),...w}}),{getGlobalModel:v,setGlobalModel:p,getRecordValueByKeyName:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:w=>{},setGlobalModel:(w,J)=>{},getRecordValueByKeyName:w=>{}}),{setTemplateData:g}=vue.inject("templateOperate",{setTemplateData:w=>{}}),b=useEmitEvent(c)("click",()=>{const w=v(c.id);if(p(c.id,{...w,type:c.type,RECORD:c.data||{}}),setTimeout(()=>{p(c.id,{...w,type:c.type,RECORD:{}})},0),[void 0,"link"].includes(c.actionType)){if(!c.linkPage&&!c.href)return;handleJumpLink(c,{pageMode:vue.unref(d),targetTemplate:c.targetTemplate,getRecordValueByKeyName:m,setTemplateData:g})}else c.actionType==="close"&&window.close()}),gn=vue.ref(),x=vue.ref(),re=()=>{const{directory:w}=c.animationSource;c.isAnimation&&gn.value&&w&&(x.value=lottie.loadAnimation({name:`${c.keyName}-lotTie`,container:gn.value,renderer:"svg",loop:!0,autoplay:!0,path:useImagePath(w)+"data.json"}),vue.unref(x).setSpeed(1))};return vue.watch(()=>[c.isAnimation,c.animationSource],([w])=>{w&&vue.nextTick(()=>{re()})},{immediate:!0,deep:!0}),useOnEvent(c,{click:b}),{customStyle:h,myImgUrl:f,animation:gn,pageMode:d,onClick:b}}}),__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$7(c,u,f,d,h,v){var p;return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[c.isAnimation?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.animationSource.directory?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["ecan-image",c.pageMode==="design"?"component":""]),ref:"animation",style:vue.normalizeStyle(c.customStyle),onClick:u[0]||(u[0]=(...m)=>c.onClick&&c.onClick(...m))},null,6)):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.myImgUrl!==""?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:vue.normalizeClass(["ecan-image",c.pageMode==="design"?"component":""]),style:vue.normalizeStyle(c.customStyle),src:c.myImgUrl,onClick:u[1]||(u[1]=(...m)=>c.onClick&&c.onClick(...m))},null,14,_hoisted_1$3)):vue.createCommentVNode("",!0)],64)),(c.isAnimation?!((p=c.animationSource)!=null&&p.directory):!c.myImgUrl)?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["image-placeholder",c.pageMode==="design"?"component":""]),style:vue.normalizeStyle(c.customStyle)}," 请上传图片 ",6)):vue.createCommentVNode("",!0)],64)}const Image$1=_export_sfc$1(__default__$1,[["render",_sfc_render$7],["__scopeId","data-v-8b128e89"]]),EcanImage=withInstall$1(Image$1),iframeProps={...props$1,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web",transParams:[]},iframeComponentProps=transformToComponentProps(iframeProps),_sfc_main$5=vue.defineComponent({name:"EcanIframe",props:{...iframeComponentProps},setup(c){const u=usePickComponentStyle(c),{contextRequestUrl:f}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:""}),{getRecordValueByKeyName:d}=vue.inject(GLOBAL_MODEL,{getRecordValueByKeyName:v=>{}}),h=vue.computed(()=>{var p;let v=hn(c.link);if(c.linkType==="erd"&&v!=null){let m=vue.unref(f);m[m.length-1]==="/"?m+="erdReport":m+="/erdReport",v=`${ERD_URL||m}?_t=0&uid=${v}`}if((p=c.transParams)!=null&&p.length){v.includes("?")?v+="&":v+="?";const m=[];for(const g of c.transParams){const y=d(String(g.fieldName));m.push(`${g.keyName}=${y}`)}v+=m.join("&")}return v});return{style:u,myLink:h}}}),Iframe_vue_vue_type_style_index_0_scoped_c0393b8d_lang="",_hoisted_1$2=["src"];function _sfc_render$6(c,u,f,d,h,v){return c.myLink?(vue.openBlock(),vue.createElementBlock("iframe",{key:0,src:c.myLink,style:vue.normalizeStyle(c.style)},null,12,_hoisted_1$2)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"iframe-placeholder",style:vue.normalizeStyle(c.style)}," 请填写网页链接 ",4))}const Iframe=_export_sfc$1(_sfc_main$5,[["render",_sfc_render$6],["__scopeId","data-v-c0393b8d"]]),EcanIframe=withInstall$1(Iframe),tableProps={...props$1,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:d,theme:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",height:null,theme:"light"}),v=vue.ref(!1),p=vue.computed(()=>vue.unref(f)!=="design"&&c.isAutoScroll),m=vue.ref({}),g=vue.ref(!1),y=vue.computed(()=>{const Sr=lodashEs.cloneDeep(c.columns);return c.isUseSeq&&Sr.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&Sr.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),Sr}),b=vue.ref(),gn=vue.ref(!1),x=usePickComponentStyle(c),re=vue.ref([]),w=vue.computed(()=>{const{height:Sr}=c;return typeof Sr=="string"?Sr:Sr.suffix==="px"?Sr.value+"px":Sr.suffix==="%"?parseFloat(vue.unref(d))*(Sr.value/100)+"px":"0"}),J=vue.computed(()=>c.scrollX),Fn=vue.ref(parseFloat(w.value)),Bn=()=>{let Sr=0;switch(c.size){case"small":Sr=50;break;case"middle":Sr=53;break;default:Sr=65;break}return Sr},j=vue.ref(0),vn=vue.ref(""),Pn=vue.ref(0);vue.watchEffect(()=>{var Sr;(Sr=re.value)!=null&&Sr.length&&w.value&&setTimeout(()=>{let kr=parseFloat(w.value),Tr=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Lr=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const jr=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`);let $r=0;if(Lr&&(kr-=(Lr==null?void 0:Lr.clientHeight)||0),jr&&c.isSummaryFixed&&($r=(jr==null?void 0:jr.clientHeight)||0,kr-=$r),c.paginationShow&&!c.isAutoScroll){let Pr=0;Pr=Bn(),Pr&&(kr-=Pr)}(Tr==null?void 0:Tr.clientHeight)>kr?Fn.value=kr:Fn.value=0,vue.nextTick(()=>{if($r){const Pr=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`),qr=(Pr==null?void 0:Pr.clientHeight)||0;$r!==qr&&vue.unref(Fn)&&(Fn.value=kr+$r-qr)}c.isAutoScroll&&v.value&&setTimeout(()=>{var Kr;const Pr=document.querySelector(`#ecanTable-${c.id} .ant-table-body`);Tr=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Lr=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const qr=Pr||Tr;j.value=(qr==null?void 0:qr.clientHeight)||0,Pn.value=(Lr==null?void 0:Lr.clientHeight)||0,m.value={height:((Tr==null?void 0:Tr.clientHeight)||0)+"px"};const Wr=document.querySelector(`#ecanTable-${c.id} .ant-table-body > table`);if(vn.value=(Kr=document.querySelector(`#ecanTable-${c.id} .ant-table`))==null?void 0:Kr.className,Wr){const Jr=Wr.cloneNode(!0);Wr.style.visibility="hidden",setTimeout(()=>{qr==null||qr.setAttribute("id","hiddenTableBody")},0);const Yr=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap`);if(Yr!=null&&Yr.length){for(const si of Yr)si.append(Jr.cloneNode(!0));const ei=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap .ant-table-cell`);if(ei!=null&&ei.length)for(const si of ei)Rn(si);const oi=document.querySelector(`#ecanTable-${c.id} .vue3-marquee`);oi&&oi.addEventListener("scroll",si=>{var fi;document.querySelector(`#ecanTable-${c.id} .ant-table-header`).scrollLeft=((fi=si==null?void 0:si.target)==null?void 0:fi.scrollLeft)||0})}}},0)})},0)});function Rn(Sr){Sr.addEventListener("click",kr=>{const Lr=zn(kr.target).getAttribute("dix");if(Lr){const jr=document.querySelector(`#ecanTable-${c.id} #hiddenTableBody td[dix="${Lr}"]`);jr&&jr.click()}})}function zn(Sr){return Sr.className.includes("ant-table-cell")?Sr:zn(Sr.parentElement)}const Un=vue.ref([]),qn=vue.ref([]),Qn=vue.ref([]),Jn=vue.ref([]),Zn=vue.ref(0),Xn=vue.ref(1),nr=vue.ref(c.paginationPageSize||10),sr=vue.reactive([]),ur=(Sr,kr)=>{let Tr="";return Sr.forEach((Lr,jr)=>{const{value:$r,rule:Pr}=Lr;Lr.conditions?Tr+=`(${ur(Lr.conditions,Lr.join)})`:$r&&Pr&&(Tr+=`value ${Pr} '${$r}'`),Tr+=`${jr===Sr.length-1?"":kr?" "+kr+" ":""}`}),Tr},Hn=(Sr=[])=>{var kr,Tr;if(Array.isArray(Sr)&&Sr.length>0){let Lr=Sr.length;const jr=c.columnsFixedNum;if(c.dataType==="indicator"&&((kr=vue.unref(y))!=null&&kr.length)&&!vue.unref(y).find($r=>{var Pr;return(Pr=$r.children)==null?void 0:Pr.length})){const{graphicConfig:{indicators:$r=[]}}=c;Sr.forEach((Pr,qr)=>{if(vue.unref(y)[qr])for(const Jr in vue.unref(y)[qr])["dataIndex","title"].includes(Jr)||(Pr[Jr]=vue.unref(y)[qr][Jr]);const Wr=$r.find(Jr=>Jr.label===Pr.title),{showLabel:Kr=""}=Wr||{};Kr&&(Pr.title=Kr)})}for(let $r=Lr-1;$r>=0;$r--)(Tr=Sr[$r])!=null&&Tr.isHidden&&Sr.splice($r,1);Lr=Sr.length;for(let $r=0;$r<Lr;$r++){const Pr=Sr[$r];if($r<jr?Pr.fixed="left":Pr.fixed=!1,c.isSortByFront&&Pr.sorter){const di=Pr.dataIndex;Pr.sorter=(pi,gi)=>pi[di]-gi[di]}const{cellAlign:qr="center",cellColor:Wr,dataIndex:Kr,title:Jr,tableFilter:Yr,headerCellAlign:ei,headerCellColor:oi,overflow:si,conditions:fi}=Pr;Yr&&(sr.push(Kr),Pr.filterOptionsInputValue="",Pr.filterCheckboxGroupValue=[],Pr.customFilterDropdown=!0,Pr.onFilter=(di,pi)=>pi[Kr].toString().toLowerCase().includes(di.toLowerCase())),fi&&(Pr.conditionCode=ur(fi)),Pr.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:c.headerFontSize,fontWeight:c.headerFontWeight,textAlign:ei||"center",color:oi||c.headerFontColor,borderBottomColor:c.borderColor,backgroundColor:c.headerBackgroundColor}}),Pr.customCell=(di,pi,gi)=>({style:{textAlign:qr,color:Kn(gi)?c.linkTextColor:Wr||c.cellFontColor,backgroundColor:c.cellBackgroundColor,borderBottomColor:c.borderColor},class:{highlight:vue.unref(Mr)===pi&&c.clickHighlight,linkText:Kn(gi)},dix:gi.dataIndex+"_"+pi,onClick:Cr("click",()=>{const Ti=c.id,Ii=br(Ti);di={dataIndex:Kr,title:Jr,...di},hr(Ti,{...Ii,type:c.type,RECORD:di}),Mr.value=pi,setTimeout(()=>{if(!c.linkPage&&!c.href)return;let Pi=!1;(Kn(gi)||c.clickTarget!=="cell")&&(Pi=!0),Pi&&handleJumpLink(c,{pageMode:vue.unref(f),getRecordValueByKeyName:gr})},0)})}),si==="ellipsis"?Pr.ellipsis=!0:Pr.ellipsis=!1,Array.isArray(Pr.children)&&Hn(Pr.children)}}};function Kn(Sr){let kr=!1;return c.clickTarget==="cell"&&c.clickTargetColumns.includes(Sr.dataIndex)&&(kr=!0),kr}const Vn=(Sr=[])=>{var Tr;let kr=lodashEs.cloneDeep(Sr);return(Tr=vue.unref(Jn))!=null&&Tr.length&&(kr=lodashEs.cloneDeep(vue.unref(Jn))),c.isUseSeq&&kr.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&kr.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),Hn(kr),kr};vue.watch(nr,()=>{Xn.value=1,Vr(!1)}),vue.watch(b,Sr=>{gn.value=!!Sr}),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],([Sr,kr])=>{kr==="static"&&(qn.value=Sr)},{immediate:!0});const Gn=vue.ref({}),er=Sr=>{if(Array.isArray(Sr)){const kr=Sr.length,Tr=sr,Lr=Tr.length,jr={};for(let Pr=0;Pr<kr;Pr++){const qr=Sr[Pr];for(let Wr=0;Wr<Lr;Wr++){const Kr=Tr[Wr];if(jr[Kr])jr[Kr].add(qr[Kr]);else{const Jr=new Set;Jr.add(qr[Kr]),jr[Kr]=Jr}}}const $r={};for(const Pr in jr)if(Object.prototype.hasOwnProperty.call(jr,Pr)){const qr=jr[Pr],Wr=Array.from(qr);$r[Pr]=Wr.map(Kr=>({label:Kr,value:Kr}))}Gn.value=$r}};vue.watch(()=>[c.isReverse,Un.value,qn.value],()=>{const Sr=vue.unref(Un),kr=vue.unref(qn);if(er(kr),c.isReverse){const{columns:Tr,dataSource:Lr}=Wn(lodashEs.cloneDeep(Sr),lodashEs.cloneDeep(kr));Qn.value=Tr,re.value=Lr.map(jr=>({key:nanoid(6),...jr}))}else Qn.value=Sr,re.value=kr.map(Tr=>({key:nanoid(6),...Tr}))},{immediate:!0});const Wn=(Sr,kr)=>{const Tr=Sr[0],Lr=[{title:Tr.title,dataIndex:"col0",key:"col0",align:"center"}];for(let $r=0;$r<kr.length;$r++){const Pr=kr[$r],qr="col"+($r+1);Lr.push({title:Pr[Tr.dataIndex],dataIndex:qr,key:qr,align:"center"})}const jr=[];for(let $r=1;$r<Sr.length;$r++){const Pr=Sr[$r],qr={col0:Pr.title};for(let Wr=0;Wr<kr.length;Wr++){const Kr=kr[Wr];qr[`col${Wr+1}`]=Kr[Pr.dataIndex]}jr.push(qr)}return{columns:Lr,dataSource:jr}},or=vue.ref(""),cr=Sr=>{var Lr;const{rows:kr=[],total:Tr=0}=((Lr=Sr==null?void 0:Sr.data)==null?void 0:Lr.data)||{};if(Zn.value=Tr,Array.isArray(kr)&&(qn.value=kr),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:jr=[]}=c,$r=jr.find(Pr=>Pr.key==="dataSqlId");if(($r==null?void 0:$r.value)==="xt_jxzebg"){const Pr=kr.filter(qr=>!qr.绩效总额).map(qr=>qr.ORG_NAME);Pr!=null&&Pr.length&&vue.nextTick(()=>{antDesignVue.notification.warning({message:"提示",description:`当前时段${Pr.join("、")}绩效数据为空`,duration:3})})}}v.value=!0},ar=useRequestData(c),tr=async(Sr=!0,kr={})=>{try{Sr&&(g.value=!0),vue.unref(or)&&(kr.orderCondition=vue.unref(or)),c.paginationShow&&(kr={pageNum:vue.unref(Xn),pageSize:vue.unref(nr)||"10",layer:"1",...kr});const Tr=await ar(kr);cr(Tr)}catch(Tr){console.error(Tr)}finally{g.value=!1}},pr=({current:Sr},kr,Tr)=>{if(Xn.value=Sr,Tr&&Object.keys(Tr).length>0){const{field:Lr,order:jr}=Tr,Pr={ascend:"asc",descend:"desc"}[jr];Lr!=null&&Pr!=null&&Pr?or.value=Lr+" "+Pr:Pr||(or.value="")}c.isSortByFront||Vr(!1)},Yn=vue.computed(()=>{const Sr=c.simple,kr=[c.paginationPosition],Tr={};return c.isShowTotal&&(Tr.showTotal=Lr=>`共 ${Lr} 条数据`),c.paginationShow&&{simple:Sr,position:kr,total:vue.unref(Zn),current:vue.unref(Xn),pageSize:vue.unref(nr)||"10",showSizeChanger:!1,size:"large",...Tr}}),ir=Sr=>+Sr==1?"是":+Sr==0?"否":Sr,lr=(Sr,kr)=>{const{format:Tr,retentiondigit:Lr,customFormatter:jr,defaultVal:$r}=kr;let Pr="";if(Tr==null||Tr==="")Pr=Sr;else{const qr={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,boolean:ir,decimals:formatDecimals,custom:formatCustom};qr[Tr]||(Pr=""),Tr==="decimals"?Pr=qr[Tr](Sr,Lr)||"":Tr==="custom"?Pr=qr[Tr](Sr,jr)||"":Pr=qr[Tr](Sr)||""}return Pr||(Pr=$r),Pr},vr=Sr=>Sr==="contrast"?"upDown":"",dr=Sr=>{const{text:kr,format:Tr,declineColor:Lr="#39cf93",increaseColor:jr="#ff512e"}=Sr,$r={fontSize:c.fontSize};if(ci(Sr.dataIndex))return $r.display="flex",$r.justifyContent="center",$r.alignItems="center",$r;if(Tr==="contrast"){const Pr=parseFloat(kr+"");return Pr>=0?$r.color=jr:Pr<0&&($r.color=Lr),$r}else return{}},yr=vue.computed(()=>{const{fontSize:Sr}=c;return{width:Sr,height:Sr,textIndent:`-${parseFloat(Sr)*2}px`,overflow:"hidden"}}),fr=Sr=>{const{text:kr,declineColor:Tr="#39cf93",increaseColor:Lr="#ff512e"}=Sr,{fontSize:jr}=c,$r=parseFloat(kr+""),Pr={width:jr,verticalAlign:"unset"};return $r>=0?Pr.filter=`drop-shadow(${Lr||"#ff512e"} ${jr} -1px)`:$r<0&&(Pr.filter=`drop-shadow(${Tr||"#39cf93"} ${jr} -1px)`),Pr},mr=Sr=>{const kr=parseFloat(Sr+"");if(kr>=0)return goUp;if(kr<0)return goDown},xr=(Sr,kr,Tr,Lr)=>{var qr,Wr,Kr;const jr="#39cf93",$r="#ff512e",Pr=c.conditionList.find(Jr=>Jr.dataIndex===Sr.dataIndex);if((qr=Pr==null?void 0:Pr.conditions)!=null&&qr.length){const{fontSize:Jr}=c,Yr={style:{width:Jr,verticalAlign:"middle"},src:""};for(const ei of Pr.conditions){const oi=((Wr=ei==null?void 0:ei.property)==null?void 0:Wr.icon)||"";let si=((Kr=ei==null?void 0:ei.property)==null?void 0:Kr.iconColor)||"";if(oi){let fi=!1;if(ei.rule&&ei.value){const di=`${ei.field} ${ei.rule} '${ei.value}'`;fi=pn(di,{...Tr,value:kr})}else fi=!0;fi&&(oi==="increase"?Yr.src=topArrow:oi==="decline"&&(Yr.src=downArrow),si||(oi==="increase"?si=$r:oi==="decline"&&(si=jr)),Yr.style.filter=`drop-shadow(${si} ${Jr} -1px)`)}}if(Lr===1)return Yr.style;if(Lr===2)return Yr.src}else return""},Cr=useEmitEvent(c),{getGlobalModel:br,setGlobalModel:hr,getRecordValueByKeyName:gr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Sr=>{},setGlobalModel:(Sr,kr)=>{},getRecordValueByKeyName:Sr=>{}});hr(c.id,{type:c.type,RECORD:""});const Er=(Sr=[],kr=[])=>{let Tr=Sr.map(Lr=>({title:Lr,dataIndex:Lr,key:Lr}));vue.unref(y).find(Lr=>{var jr;return(jr=Lr.children)==null?void 0:jr.length})&&(Tr=lodashEs.cloneDeep(vue.unref(y))),Jn.value=lodashEs.cloneDeep(Tr),Un.value=Vn(Tr),qn.value=kr,v.value=!0},wr=Sr=>{var kr,Tr,Lr,jr;Er((Tr=(kr=Sr==null?void 0:Sr.data)==null?void 0:kr.data)==null?void 0:Tr.columns,(jr=(Lr=Sr==null?void 0:Sr.data)==null?void 0:Lr.data)==null?void 0:jr.rows)},_r=useIndicatorData(c,wr),Rr=async(Sr=!0)=>{try{Sr&&(g.value=!0);const kr=vue.unref(or).split(" "),Tr={};c.isSortByFront||(Tr.sort={order:kr[1],field:kr[0]});const Lr=await _r(Tr);wr(Lr)}catch(kr){console.error(kr)}finally{g.value=!1}},Mr=vue.ref(-1),{loadedData:Dr}=vue.inject(LOADED_DATA,{loadedData:{}}),Br=vue.ref(!1);vue.watch(Dr,Sr=>{if(c.dataType==="indicator"){const kr=getFixedValueDatas(c.graphicConfig);kr!=null&&kr.length&&(!vue.unref(Br)&&canRequestIndicator(c.graphicConfig,Sr)?(Br.value=!0,Vr()):canRequestIndicator(c.graphicConfig,Sr)||(Br.value=!1))}},{deep:!0});const Vr=async(Sr=!0)=>{switch(c.dataType){case"request":await tr(Sr);break;case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(Dr))&&await Rr(Sr);break}},Gr=()=>{const Sr=c.id,kr=br(Sr);hr(Sr,{...kr,type:c.type,RECORD:""})},Hr=vue.computed(()=>{const Sr=vue.unref(Qn);let kr=0;const{subTotalColumn:Tr,subTotalName:Lr}=c;Tr&&(kr=Sr.findIndex(Wr=>Wr.dataIndex===Tr),kr<0&&(kr=0));const jr=[];let $r=0;for(let Wr=0;Wr<Sr.length;Wr++){const Kr=Sr[Wr],{isCalcTotal:Jr}=Kr;Wr===kr?jr.push({...Kr,total:Lr}):Jr?(jr.push({...Kr,index:Wr,total:0}),$r++):jr.push({...Kr})}if($r===0)return[];const Pr=vue.unref(re),qr=Ur(jr);for(let Wr=0;Wr<qr.length;Wr++){const Kr=qr[Wr];let Jr=0;const{isCalcTotal:Yr,dataIndex:ei}=Kr;if(Yr===!0){for(let oi=0;oi<Pr.length;oi++){const fi=+Pr[oi][ei];isNaN(fi)||(Jr=new big_js.Big(Jr).add(fi).toNumber())}Kr.total=Jr}}return qr});function Ur(Sr){var Tr;const kr=[];for(const Lr of Sr)(Tr=Lr.children)!=null&&Tr.length?kr.push(...Ur(Lr.children)):kr.push(Lr);return kr}const{setRequest:Qr}=vue.inject(REQUEST_MODEL,{setRequest:Sr=>{}});typeof Qr=="function"&&Qr({id:c.id,requestFn:Vr,sortNum:c.requestSort}),u({refreshData:Vr});const Zr=(Sr="",kr)=>hn(Sr,kr),ni=Sr=>{if(Sr!=="event")return{self:"_self",blank:"_blank"}[Sr]},Ar=(Sr,kr="")=>{Sr==="event"&&window.parent.postMessage({type:"openPage",url:kr},"*")},Ir=(Sr,kr)=>{Sr(kr.filterCheckboxGroupValue)},Or=(Sr,kr)=>{Sr({confirm:!0}),kr.filterOptionsInputValue="",kr.filterCheckboxGroupValue=[]},Fr=()=>{},Nr=Sr=>{const kr=Sr.dataIndex;if(typeof kr=="string"){let Tr=vue.unref(Gn)[kr];const Lr=vue.unref(Sr.filterOptionsInputValue).trim();return Array.isArray(Tr)?(Tr=Tr.filter(jr=>typeof jr.label=="string"?jr.label.toLowerCase().includes(Lr.toLowerCase()):!0),Tr):[]}return[]},zr=async()=>{var Kr,Jr;const Sr="EXPORT_KEY";antDesignVue.message.loading({key:Sr,content:"正在导出...",duration:0});let kr=[];if(c.dataType==="static")kr=c.data;else if(c.dataType==="request"){const Yr={layer:"1"};vue.unref(or)&&(Yr.orderCondition=vue.unref(or));const ei=await ar(Yr);kr=((Jr=(Kr=ei==null?void 0:ei.data)==null?void 0:Kr.data)==null?void 0:Jr.rows)||{}}const Tr=vue.unref(Qn),Lr=[],jr=[];Tr==null||Tr.forEach(Yr=>{Lr.push(Yr.dataIndex),jr.push(Yr.title)});const $r=kr.map(Yr=>lodashEs.pick(Yr,Lr)),Pr=xlsx.utils.book_new(),qr=xlsx.utils.aoa_to_sheet([jr]),Wr=xlsx.utils.sheet_add_json(qr,$r,{skipHeader:!0,origin:"A2"});xlsx.utils.book_append_sheet(Pr,Wr,"sheet"),xlsx.writeFile(Pr,"表格数据.xlsx"),antDesignVue.message.success({key:Sr,content:"导出成功"})},Xr=(Sr,kr=2)=>{const Tr=+Sr*100;return isNaN(Tr)||Tr<=0?0:Tr>=100?100:Tr.toFixed(kr)};useOnEvent(c,{resetRecord:Gr,refreshData:Vr,exportTableData:zr});const ri=(Sr,kr)=>{let Tr=null;return c.stripedShow&&(Tr=kr%2===1?"table-striped":null),Tr},ii=vue.computed(()=>{var Tr;let Sr=0;const{isTableFill:kr}=c;if(kr&&w.value){let Lr=0;c.paginationShow&&((Tr=vue.unref(re))!=null&&Tr.length)&&(Lr=Bn()),Sr=parseFloat(vue.unref(w))-Lr}return Sr?Sr+"px":"100%"}),ui=vue.computed(()=>{const Sr=vue.unref(h)==="darkBlue";let kr="";return c.isTableFill&&(kr=c.cellBackgroundColor,kr||(li.value==="transparent"?Sr?kr="#071655":kr="transparent":Sr?kr=li.value:kr="transparent")),kr}),hi=vue.computed(()=>{let Sr="#071655";return c.headerBackgroundColor&&(Sr="transparent"),Sr}),li=vue.computed(()=>{let Sr="#071655";return(c.cellBackgroundColor||c.stripedShow&&c.stripedColor)&&(Sr="transparent"),Sr}),vi=vue.computed(()=>parseFloat(c.fontSize)+16),Si=vue.computed(()=>{let Sr="";const{paginationColor:kr,paginationBgColor:Tr,activePaginationColor:Lr,activePaginationBgColor:jr,hoverBackgroundColor:$r}=c;return kr&&(Sr+="p-color "),Tr&&(Sr+="p-bg-color "),Lr&&(Sr+="active-p-color "),jr&&(Sr+="active-p-bg-color "),$r&&(Sr+="hover-bg-color "),Sr}),yi=(Sr,kr)=>{if(ci(Sr.dataIndex))return!1;const{conditionCode:Tr}=Sr;return pn(Tr,{value:kr})},bi=(Sr,kr,Tr)=>{var Wr,Kr;const{overflow:Lr,conditionCode:jr,attribute:$r,dataIndex:Pr}=Sr,qr={};if(Lr==="ellipsis"&&(qr.overflow="hidden",qr.textOverflow="ellipsis"),jr&&($r!=null&&$r.color)&&yi(Sr,kr)&&(qr.color=$r.color),$r!=null&&$r.icon&&(Sr==null?void 0:Sr.cellAlign)==="right"&&(qr.display="flex",qr.alignItems="center",qr.justifyContent="flex-end"),ci(Pr)){const Jr=c.conditionList.find(Yr=>Yr.dataIndex===Pr);if((Wr=Jr==null?void 0:Jr.conditions)!=null&&Wr.length){for(const Yr of Jr.conditions)if((Kr=Yr==null?void 0:Yr.property)!=null&&Kr.color){let ei=!1;if(Yr.rule&&Yr.value){const oi=`${Yr.field} ${Yr.rule} '${Yr.value}'`;ei=pn(oi,{...Tr,value:kr})}else ei=!0;ei&&(qr.color=Yr.property.color)}}else delete qr.color}return qr},Ci=Sr=>{const{attribute:kr}=Sr;let Tr="";return kr!=null&&kr.icon&&(Tr=useImagePath(kr.icon)),Tr},xi=Sr=>{let kr={};return(Sr==null?void 0:Sr.cellAlign)==="right"?kr={marginRight:"5px"}:kr={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(c.fontSize)+6+"px",...kr}},ai=(Sr,kr)=>Sr||Sr===0?Sr:kr==null?void 0:kr.defaultVal;function ci(Sr){var Tr;const kr=c.conditionList.find(Lr=>Lr.dataIndex===Sr);return!!((Tr=kr==null?void 0:kr.conditions)!=null&&Tr.length)}return{x:J,y:Fn,style:x,pagination:Yn,formatFn:lr,contrastClass:vr,tableChange:pr,summaryList:Hr,loading:g,onTouchHrefEvent:Ar,handleHref:Zr,handleHrefTarget:ni,useRowIndex:Mr,tableColumns:Qn,tableDataSource:re,useFilterOptions:Nr,useSetSelectedKeys:Ir,onResetFilter:Or,onSearchFilterOptions:Fr,exportTableData:zr,handleProgressText:Xr,pageSizeVisible:gn,pageSize:nr,tableRef:b,rowClassName:ri,tableHeight:ii,tableBgColor:ui,tableHeaderBgColor:hi,tableBodyBgColor:li,getChgStyle:dr,chgBoxStyle:yr,getChgBoxImgStyle:fr,getChgBoxImgSrc:mr,seqIcon1,seqIcon2,seqIcon3,iconSize:vi,containerClass:Si,getCellStyle:bi,isMatchCondition:yi,getAttrImgSrc:Ci,getAttrImgStyle:xi,getCellText:ai,autoScrollHeight:j,autoScrollClass:vn,autoScrollTop:Pn,isScroll:p,scrollWrapStyle:m,isLinkStyle:Kn,hasConditionConfig:ci,formatTextByConditions:(Sr,kr,Tr)=>{var jr,$r;const Lr=c.conditionList.find(Pr=>Pr.dataIndex===Sr.dataIndex);if((jr=Lr==null?void 0:Lr.conditions)!=null&&jr.length){let Pr=kr;for(const qr of Lr.conditions){const Wr=(($r=qr==null?void 0:qr.property)==null?void 0:$r.formatText)||"";if(Wr){let Kr=!1;if(qr.rule&&qr.value){const Jr=`${qr.field} ${qr.rule} '${qr.value}'`;Kr=pn(Jr,{...Tr,value:kr})}else Kr=!0;Kr&&(Pr=hn(Wr,{textData:{...Tr,value:kr}}))}}return Pr}else return""},getChgByCondition:xr}}}),__injectCSSVars__=()=>{vue.useCssVars(c=>({"6e34feec":c.stripedColor,"5b8457c1":c.tableHeaderBgColor,"02c44b0c":c.tableBodyBgColor,"58d25174":c.paginationBgColor,"30821a8b":c.paginationColor,"0c7f2360":c.activePaginationBgColor,c13ab5b6:c.activePaginationColor,"9e848ed2":c.hoverBackgroundColor}))},__setup__=__default__.setup;__default__.setup=__setup__?(c,u)=>(__injectCSSVars__(),__setup__(c,u)):__injectCSSVars__;const Table_vue_vue_type_style_index_0_scoped_25ce906b_lang="",Table_vue_vue_type_style_index_1_lang="",_withScopeId=c=>(vue.pushScopeId("data-v-25ce906b"),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$5(c,u,f,d,h,v){const p=vue.resolveComponent("a-button"),m=vue.resolveComponent("down-outlined"),g=vue.resolveComponent("right-outlined"),y=vue.resolveComponent("a-input"),b=vue.resolveComponent("a-checkbox-group"),gn=vue.resolveComponent("a-table-summary-cell"),x=vue.resolveComponent("a-table-summary-row"),re=vue.resolveComponent("a-table-summary"),w=vue.resolveComponent("a-table"),J=vue.resolveComponent("marquee-scroll"),Fn=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(Fn,{loading:c.loading},{default:vue.withCtx(()=>{var Bn;return[c.isUseExport?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1,[vue.createVNode(p,{class:"export-button",onClick:c.exportTableData},{default:vue.withCtx(()=>[_hoisted_3]),_:1},8,["onClick"])])):vue.createCommentVNode("",!0),vue.createVNode(w,{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(j=>{var vn;return[(vn=j.record.children)!=null&&vn.length?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4,[j.expanded?(vue.openBlock(),vue.createBlock(m,{key:0,onClick:Pn=>j.onExpand(j.record,Pn)},null,8,["onClick"])):(vue.openBlock(),vue.createBlock(g,{key:1,onClick:Pn=>j.onExpand(j.record,Pn)},null,8,["onClick"]))])):(vue.openBlock(),vue.createElementBlock("span",_hoisted_5,[vue.createVNode(m)]))]}),customFilterDropdown:vue.withCtx(({column:j,setSelectedKeys:vn,confirm:Pn,clearFilters:Rn})=>[vue.createElementVNode("div",{class:"ecan-table-filter",style:vue.normalizeStyle({height:c.filterDropdownHeight})},[vue.createVNode(y,{value:j.filterOptionsInputValue,"onUpdate:value":zn=>j.filterOptionsInputValue=zn,placeholder:"请输入关键字",class:"filter-input",onChange:c.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),vue.createVNode(b,{value:j.filterCheckboxGroupValue,"onUpdate:value":zn=>j.filterCheckboxGroupValue=zn,class:"filter-checkbox",options:c.useFilterOptions(j),onChange:zn=>c.useSetSelectedKeys(vn,j)},null,8,["value","onUpdate:value","options","onChange"]),vue.createElementVNode("div",null,[vue.createVNode(p,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>Pn()},{default:vue.withCtx(()=>[_hoisted_6]),_:2},1032,["onClick"]),vue.createVNode(p,{size:"small",style:{width:"90px"},onClick:vue.withModifiers(zn=>c.onResetFilter(Rn,j),["stop"])},{default:vue.withCtx(()=>[_hoisted_7]),_:2},1032,["onClick"])])],4)]),bodyCell:vue.withCtx(({column:j,index:vn,text:Pn,record:Rn})=>{var zn,Un,qn,Qn,Jn,Zn;return[j.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)):j.dataIndex==="ACTION"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.actionList,(Xn,nr)=>(vue.openBlock(),vue.createElementBlock("div",{class:"action",key:nr},[vue.createElementVNode("a",{href:c.handleHref(Xn.href,Rn),target:c.handleHrefTarget(Xn.target),style:vue.normalizeStyle({color:Xn.color,fontSize:c.fontSize,fontWeight:c.fontWeight}),onClick:sr=>c.onTouchHrefEvent(Xn.target,c.handleHref(Xn.href,Rn))},vue.toDisplayString(Xn.title),13,_hoisted_13)]))),128))])):j.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14,[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({background:j.progressColor||"#1890ff",height:j.progressWidth||"18px",width:`${c.handleProgressText(Pn,j.progressTextDecimalPlaces)}%`})},null,4),vue.createElementVNode("div",{class:"progress-text",style:vue.normalizeStyle({color:+c.handleProgressText(Pn)<100?j.progressTextColor||"#333":j.progressFinishedTextColor||"#fff"})},vue.toDisplayString(c.handleProgressText(Pn,j.progressTextDecimalPlaces))+"% ",5)])):(vue.openBlock(),vue.createElementBlock("div",{key:3,style:vue.normalizeStyle({fontSize:c.fontSize,fontWeight:c.isLinkStyle(j)?"bold":c.fontWeight,...c.getCellStyle(j,Pn,Rn)})},[c.isMatchCondition(j,Pn)&&(j==null?void 0:j.cellAlign)==="right"&&((zn=j==null?void 0:j.attribute)!=null&&zn.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:0,style:vue.normalizeStyle(c.getAttrImgStyle(j)),src:c.getAttrImgSrc(j)},null,12,_hoisted_15)):vue.createCommentVNode("",!0),!c.hasConditionConfig(j.dataIndex)&&j.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:1,title:((Un=j==null?void 0:j.customFormatter)==null?void 0:Un.split("{value}")[0])||""},vue.toDisplayString(((qn=j==null?void 0:j.customFormatter)==null?void 0:qn.split("{value}")[0])||""),9,_hoisted_16)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass([c.contrastClass(j.format)]),style:vue.normalizeStyle(c.getChgStyle({...j,text:Pn})),title:c.hasConditionConfig(j.dataIndex)?c.formatTextByConditions(j,Pn,Rn):j.format!=null?c.formatFn(Pn,j):Pn},[!c.hasConditionConfig(j.dataIndex)&&j.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(c.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(c.getChgBoxImgStyle({...j,text:Pn})),src:c.getChgBoxImgSrc(Pn)},null,12,_hoisted_18)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(c.hasConditionConfig(j.dataIndex)?c.formatTextByConditions(j,Pn,Rn):j.format!=null?c.formatFn(Pn,j):c.getCellText(Pn,j))+" ",1),c.hasConditionConfig(j.dataIndex)&&c.getChgByCondition(j,Pn,Rn,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(j,Pn,Rn,1)),src:c.getChgByCondition(j,Pn,Rn,2)},null,12,_hoisted_19)],4)):vue.createCommentVNode("",!0)],14,_hoisted_17),!c.hasConditionConfig(j.dataIndex)&&j.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:2,title:((Qn=j==null?void 0:j.customFormatter)==null?void 0:Qn.split("{value}")[1])||""},vue.toDisplayString(((Jn=j==null?void 0:j.customFormatter)==null?void 0:Jn.split("{value}")[1])||""),9,_hoisted_20)):vue.createCommentVNode("",!0),c.isMatchCondition(j,Pn)&&(j==null?void 0:j.cellAlign)!=="right"&&((Zn=j==null?void 0:j.attribute)!=null&&Zn.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:3,style:vue.normalizeStyle(c.getAttrImgStyle(j)),src:c.getAttrImgSrc(j)},null,12,_hoisted_21)):vue.createCommentVNode("",!0)],4))]}),summary:vue.withCtx(()=>[c.summaryList.length>0?(vue.openBlock(),vue.createBlock(re,{key:0,fixed:c.isSummaryFixed},{default:vue.withCtx(()=>[vue.createVNode(x,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.summaryList,(j,vn)=>(vue.openBlock(),vue.createBlock(gn,{key:vn,index:vn,style:vue.normalizeStyle({backgroundColor:c.cellBackgroundColor,textAlign:j.cellAlign||"center",color:c.cellFontColor,borderBottomColor:c.borderColor})},{default:vue.withCtx(()=>[vue.createElementVNode("span",{class:vue.normalizeClass([c.contrastClass(j.format)]),style:vue.normalizeStyle({...c.getChgStyle({...j,text:j.total}),fontSize:c.fontSize,fontWeight:c.fontWeight})},[j.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(c.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(c.getChgBoxImgStyle({...j,text:j.total})),src:c.getChgBoxImgSrc(j.total)},null,12,_hoisted_22)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString((j.format!=null||j.format!=="")&&c.formatFn(j.total,j)),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]=j=>c.pageSize=j)},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(J,{visible:c.isScroll,step:c.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(c.scrollWrapStyle)},null,4)]),_:1},8,["visible","step"])],6)):vue.createCommentVNode("",!0)]}),_:1},8,["loading"]),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],14,_hoisted_1$1)}const Table=_export_sfc$1(__default__,[["render",_sfc_render$5],["__scopeId","data-v-25ce906b"]]),EcanTable=withInstall$1(Table),mapProps={...props$1,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$4=vue.defineComponent({name:"EcanMap",components:{Echarts},props:{...mapComponentProps},setup(c){const u=useRequestData({...c.tooltipRequestData,requestHeaders:{}}),f=vue.ref(),d=vue.ref(""),h=vue.ref(""),v=usePickComponentStyle(c,["backgroundImage"]),p=vue.ref(),m=vue.computed(()=>useImagePath(c.geoBackgroundImage)),g=vue.computed(()=>useImagePath(c.backgroundImage)),y=vue.ref([]),b=vue.computed(()=>c.geoBackgroundImage?{image:vue.unref(p),repeat:c.geoBackgroundImageRepeat}:c.geoItemStyleAreaColor),gn=vue.computed(()=>{const ar=c.symbolImage;return c.symbolImage?"image://"+useImagePath(ar):"circle"}),x=ar=>{let tr=c.tooltipFormatter;const pr=tr.match(/\{(.+?)\}/g);if(pr==null||pr.length===0)return tr;for(let Yn=0;Yn<pr.length;Yn++){const ir=pr[Yn];let lr=ir.slice(1,-1).trim();const vr=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,dr=lr.match(vr);for(let yr=0;yr<dr.length;yr++){const fr=dr[yr],mr=ar[fr];mr!=null&&(lr=lr.replace(fr,mr))}tr=tr.replace(ir,lr)}return tr.split(`
|
|
180
|
+
*/var Matrix=function(){var c=Math.cos,u=Math.sin,f=Math.tan,d=Math.round;function h(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function v(Vn){if(Vn===0)return this;var Gn=c(Vn),er=u(Vn);return this._t(Gn,-er,0,0,er,Gn,0,0,0,0,1,0,0,0,0,1)}function p(Vn){if(Vn===0)return this;var Gn=c(Vn),er=u(Vn);return this._t(1,0,0,0,0,Gn,-er,0,0,er,Gn,0,0,0,0,1)}function m(Vn){if(Vn===0)return this;var Gn=c(Vn),er=u(Vn);return this._t(Gn,0,er,0,0,1,0,0,-er,0,Gn,0,0,0,0,1)}function g(Vn){if(Vn===0)return this;var Gn=c(Vn),er=u(Vn);return this._t(Gn,-er,0,0,er,Gn,0,0,0,0,1,0,0,0,0,1)}function y(Vn,Gn){return this._t(1,Gn,Vn,1,0,0)}function b(Vn,Gn){return this.shear(f(Vn),f(Gn))}function gn(Vn,Gn){var er=c(Gn),Wn=u(Gn);return this._t(er,Wn,0,0,-Wn,er,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(er,-Wn,0,0,Wn,er,0,0,0,0,1,0,0,0,0,1)}function x(Vn,Gn,er){return!er&&er!==0&&(er=1),Vn===1&&Gn===1&&er===1?this:this._t(Vn,0,0,0,0,Gn,0,0,0,0,er,0,0,0,0,1)}function re(Vn,Gn,er,Wn,or,cr,ar,tr,pr,Yn,ir,lr,vr,dr,yr,fr){return this.props[0]=Vn,this.props[1]=Gn,this.props[2]=er,this.props[3]=Wn,this.props[4]=or,this.props[5]=cr,this.props[6]=ar,this.props[7]=tr,this.props[8]=pr,this.props[9]=Yn,this.props[10]=ir,this.props[11]=lr,this.props[12]=vr,this.props[13]=dr,this.props[14]=yr,this.props[15]=fr,this}function w(Vn,Gn,er){return er=er||0,Vn!==0||Gn!==0||er!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Vn,Gn,er,1):this}function J(Vn,Gn,er,Wn,or,cr,ar,tr,pr,Yn,ir,lr,vr,dr,yr,fr){var mr=this.props;if(Vn===1&&Gn===0&&er===0&&Wn===0&&or===0&&cr===1&&ar===0&&tr===0&&pr===0&&Yn===0&&ir===1&&lr===0)return mr[12]=mr[12]*Vn+mr[15]*vr,mr[13]=mr[13]*cr+mr[15]*dr,mr[14]=mr[14]*ir+mr[15]*yr,mr[15]*=fr,this._identityCalculated=!1,this;var xr=mr[0],Cr=mr[1],br=mr[2],hr=mr[3],gr=mr[4],Er=mr[5],wr=mr[6],_r=mr[7],Rr=mr[8],Mr=mr[9],Dr=mr[10],Br=mr[11],Vr=mr[12],Gr=mr[13],Hr=mr[14],Ur=mr[15];return mr[0]=xr*Vn+Cr*or+br*pr+hr*vr,mr[1]=xr*Gn+Cr*cr+br*Yn+hr*dr,mr[2]=xr*er+Cr*ar+br*ir+hr*yr,mr[3]=xr*Wn+Cr*tr+br*lr+hr*fr,mr[4]=gr*Vn+Er*or+wr*pr+_r*vr,mr[5]=gr*Gn+Er*cr+wr*Yn+_r*dr,mr[6]=gr*er+Er*ar+wr*ir+_r*yr,mr[7]=gr*Wn+Er*tr+wr*lr+_r*fr,mr[8]=Rr*Vn+Mr*or+Dr*pr+Br*vr,mr[9]=Rr*Gn+Mr*cr+Dr*Yn+Br*dr,mr[10]=Rr*er+Mr*ar+Dr*ir+Br*yr,mr[11]=Rr*Wn+Mr*tr+Dr*lr+Br*fr,mr[12]=Vr*Vn+Gr*or+Hr*pr+Ur*vr,mr[13]=Vr*Gn+Gr*cr+Hr*Yn+Ur*dr,mr[14]=Vr*er+Gr*ar+Hr*ir+Ur*yr,mr[15]=Vr*Wn+Gr*tr+Hr*lr+Ur*fr,this._identityCalculated=!1,this}function Fn(Vn){var Gn=Vn.props;return this.transform(Gn[0],Gn[1],Gn[2],Gn[3],Gn[4],Gn[5],Gn[6],Gn[7],Gn[8],Gn[9],Gn[10],Gn[11],Gn[12],Gn[13],Gn[14],Gn[15])}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 j(Vn){for(var Gn=0;Gn<16;){if(Vn.props[Gn]!==this.props[Gn])return!1;Gn+=1}return!0}function vn(Vn){var Gn;for(Gn=0;Gn<16;Gn+=1)Vn.props[Gn]=this.props[Gn];return Vn}function Pn(Vn){var Gn;for(Gn=0;Gn<16;Gn+=1)this.props[Gn]=Vn[Gn]}function Rn(Vn,Gn,er){return{x:Vn*this.props[0]+Gn*this.props[4]+er*this.props[8]+this.props[12],y:Vn*this.props[1]+Gn*this.props[5]+er*this.props[9]+this.props[13],z:Vn*this.props[2]+Gn*this.props[6]+er*this.props[10]+this.props[14]}}function zn(Vn,Gn,er){return Vn*this.props[0]+Gn*this.props[4]+er*this.props[8]+this.props[12]}function Un(Vn,Gn,er){return Vn*this.props[1]+Gn*this.props[5]+er*this.props[9]+this.props[13]}function qn(Vn,Gn,er){return Vn*this.props[2]+Gn*this.props[6]+er*this.props[10]+this.props[14]}function Qn(){var Vn=this.props[0]*this.props[5]-this.props[1]*this.props[4],Gn=this.props[5]/Vn,er=-this.props[1]/Vn,Wn=-this.props[4]/Vn,or=this.props[0]/Vn,cr=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/Vn,ar=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/Vn,tr=new Matrix;return tr.props[0]=Gn,tr.props[1]=er,tr.props[4]=Wn,tr.props[5]=or,tr.props[12]=cr,tr.props[13]=ar,tr}function Jn(Vn){var Gn=this.getInverseMatrix();return Gn.applyToPointArray(Vn[0],Vn[1],Vn[2]||0)}function Zn(Vn){var Gn,er=Vn.length,Wn=[];for(Gn=0;Gn<er;Gn+=1)Wn[Gn]=Jn(Vn[Gn]);return Wn}function Xn(Vn,Gn,er){var Wn=createTypedArray("float32",6);if(this.isIdentity())Wn[0]=Vn[0],Wn[1]=Vn[1],Wn[2]=Gn[0],Wn[3]=Gn[1],Wn[4]=er[0],Wn[5]=er[1];else{var or=this.props[0],cr=this.props[1],ar=this.props[4],tr=this.props[5],pr=this.props[12],Yn=this.props[13];Wn[0]=Vn[0]*or+Vn[1]*ar+pr,Wn[1]=Vn[0]*cr+Vn[1]*tr+Yn,Wn[2]=Gn[0]*or+Gn[1]*ar+pr,Wn[3]=Gn[0]*cr+Gn[1]*tr+Yn,Wn[4]=er[0]*or+er[1]*ar+pr,Wn[5]=er[0]*cr+er[1]*tr+Yn}return Wn}function nr(Vn,Gn,er){var Wn;return this.isIdentity()?Wn=[Vn,Gn,er]:Wn=[Vn*this.props[0]+Gn*this.props[4]+er*this.props[8]+this.props[12],Vn*this.props[1]+Gn*this.props[5]+er*this.props[9]+this.props[13],Vn*this.props[2]+Gn*this.props[6]+er*this.props[10]+this.props[14]],Wn}function sr(Vn,Gn){if(this.isIdentity())return Vn+","+Gn;var er=this.props;return Math.round((Vn*er[0]+Gn*er[4]+er[12])*100)/100+","+Math.round((Vn*er[1]+Gn*er[5]+er[13])*100)/100}function ur(){for(var Vn=0,Gn=this.props,er="matrix3d(",Wn=1e4;Vn<16;)er+=d(Gn[Vn]*Wn)/Wn,er+=Vn===15?")":",",Vn+=1;return er}function Hn(Vn){var Gn=1e4;return Vn<1e-6&&Vn>0||Vn>-1e-6&&Vn<0?d(Vn*Gn)/Gn:Vn}function Kn(){var Vn=this.props,Gn=Hn(Vn[0]),er=Hn(Vn[1]),Wn=Hn(Vn[4]),or=Hn(Vn[5]),cr=Hn(Vn[12]),ar=Hn(Vn[13]);return"matrix("+Gn+","+er+","+Wn+","+or+","+cr+","+ar+")"}return function(){this.reset=h,this.rotate=v,this.rotateX=p,this.rotateY=m,this.rotateZ=g,this.skew=b,this.skewFromAxis=gn,this.shear=y,this.scale=x,this.setTransform=re,this.translate=w,this.transform=J,this.multiply=Fn,this.applyToPoint=Rn,this.applyToX=zn,this.applyToY=Un,this.applyToZ=qn,this.applyToPointArray=nr,this.applyToTriplePoints=Xn,this.applyToPointStringified=sr,this.toCSS=ur,this.to2dCSS=Kn,this.clone=vn,this.cloneFromProps=Pn,this.equals=j,this.inversePoints=Zn,this.inversePoint=Jn,this.getInverseMatrix=Qn,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 d=u[f].split("=");if(decodeURIComponent(d[0])==c)return decodeURIComponent(d[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=d;function f(h,v){u[h]||(u[h]=v)}function d(h,v,p){return new u[h](v,p)}return c}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(c){if(!this.closed){c.sh.container.addDynamicProperty(c.sh);var u={shape:c.sh,data:c,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(u),this.addShapeToModifier(u),this._isAnimated&&c.setAsAnimated()}},ShapeModifier.prototype.init=function(c,u){this.shapes=[],this.elem=c,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,u),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(c,u){this.s=PropertyFactory.getProp(c,u.s,0,.01,this),this.e=PropertyFactory.getProp(c,u.e,0,.01,this),this.o=PropertyFactory.getProp(c,u.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=u.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(c){c.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(c,u,f,d,h){var v=[];u<=1?v.push({s:c,e:u}):c>=1?v.push({s:c-1,e:u-1}):(v.push({s:c,e:1}),v.push({s:0,e:u-1}));var p=[],m,g=v.length,y;for(m=0;m<g;m+=1)if(y=v[m],!(y.e*h<d||y.s*h>d+f)){var b,gn;y.s*h<=d?b=0:b=(y.s*h-d)/f,y.e*h>=d+f?gn=1:gn=(y.e*h-d)/f,p.push([b,gn])}return p.length||p.push([0,0]),p},TrimModifier.prototype.releasePathsData=function(c){var u,f=c.length;for(u=0;u<f;u+=1)segmentsLengthPool.release(c[u]);return c.length=0,c},TrimModifier.prototype.processShapes=function(c){var u,f;if(this._mdf||c){var d=this.o.v%360/360;if(d<0&&(d+=1),this.s.v>1?u=1+d:this.s.v<0?u=0+d:u=this.s.v+d,this.e.v>1?f=1+d:this.e.v<0?f=0+d:f=this.e.v+d,u>f){var h=u;u=f,f=h}u=Math.round(u*1e4)*1e-4,f=Math.round(f*1e4)*1e-4,this.sValue=u,this.eValue=f}else u=this.sValue,f=this.eValue;var v,p,m=this.shapes.length,g,y,b,gn,x,re=0;if(f===u)for(p=0;p<m;p+=1)this.shapes[p].localShapeCollection.releaseShapes(),this.shapes[p].shape._mdf=!0,this.shapes[p].shape.paths=this.shapes[p].localShapeCollection,this._mdf&&(this.shapes[p].pathsData.length=0);else if(f===1&&u===0||f===0&&u===1){if(this._mdf)for(p=0;p<m;p+=1)this.shapes[p].pathsData.length=0,this.shapes[p].shape._mdf=!0}else{var w=[],J,Fn;for(p=0;p<m;p+=1)if(J=this.shapes[p],!J.shape._mdf&&!this._mdf&&!c&&this.m!==2)J.shape.paths=J.localShapeCollection;else{if(v=J.shape.paths,y=v._length,x=0,!J.shape._mdf&&J.pathsData.length)x=J.totalShapeLength;else{for(b=this.releasePathsData(J.pathsData),g=0;g<y;g+=1)gn=bez.getSegmentsLength(v.shapes[g]),b.push(gn),x+=gn.totalLength;J.totalShapeLength=x,J.pathsData=b}re+=x,J.shape._mdf=!0}var Bn=u,j=f,vn=0,Pn;for(p=m-1;p>=0;p-=1)if(J=this.shapes[p],J.shape._mdf){for(Fn=J.localShapeCollection,Fn.releaseShapes(),this.m===2&&m>1?(Pn=this.calculateShapeEdges(u,f,J.totalShapeLength,vn,re),vn+=J.totalShapeLength):Pn=[[Bn,j]],y=Pn.length,g=0;g<y;g+=1){Bn=Pn[g][0],j=Pn[g][1],w.length=0,j<=1?w.push({s:J.totalShapeLength*Bn,e:J.totalShapeLength*j}):Bn>=1?w.push({s:J.totalShapeLength*(Bn-1),e:J.totalShapeLength*(j-1)}):(w.push({s:J.totalShapeLength*Bn,e:J.totalShapeLength}),w.push({s:0,e:J.totalShapeLength*(j-1)}));var Rn=this.addShapes(J,w[0]);if(w[0].s!==w[0].e){if(w.length>1){var zn=J.shape.paths.shapes[J.shape.paths._length-1];if(zn.c){var Un=Rn.pop();this.addPaths(Rn,Fn),Rn=this.addShapes(J,w[1],Un)}else this.addPaths(Rn,Fn),Rn=this.addShapes(J,w[1])}this.addPaths(Rn,Fn)}}J.shape.paths=Fn}}},TrimModifier.prototype.addPaths=function(c,u){var f,d=c.length;for(f=0;f<d;f+=1)u.addShape(c[f])},TrimModifier.prototype.addSegment=function(c,u,f,d,h,v,p){h.setXYAt(u[0],u[1],"o",v),h.setXYAt(f[0],f[1],"i",v+1),p&&h.setXYAt(c[0],c[1],"v",v),h.setXYAt(d[0],d[1],"v",v+1)},TrimModifier.prototype.addSegmentFromArray=function(c,u,f,d){u.setXYAt(c[1],c[5],"o",f),u.setXYAt(c[2],c[6],"i",f+1),d&&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 d=c.pathsData,h=c.shape.paths.shapes,v,p=c.shape.paths._length,m,g,y=0,b,gn,x,re,w=[],J,Fn=!0;for(f?(gn=f._length,J=f._length):(f=shapePool.newElement(),gn=0,J=0),w.push(f),v=0;v<p;v+=1){for(x=d[v].lengths,f.c=h[v].c,g=h[v].c?x.length:x.length+1,m=1;m<g;m+=1)if(b=x[m-1],y+b.addedLength<u.s)y+=b.addedLength,f.c=!1;else if(y>u.e){f.c=!1;break}else u.s<=y&&u.e>=y+b.addedLength?(this.addSegment(h[v].v[m-1],h[v].o[m-1],h[v].i[m],h[v].v[m],f,gn,Fn),Fn=!1):(re=bez.getNewSegment(h[v].v[m-1],h[v].v[m],h[v].o[m-1],h[v].i[m],(u.s-y)/b.addedLength,(u.e-y)/b.addedLength,x[m-1]),this.addSegmentFromArray(re,f,gn,Fn),Fn=!1,f.c=!1),y+=b.addedLength,gn+=1;if(h[v].c&&x.length){if(b=x[m-1],y<=u.e){var Bn=x[m-1].addedLength;u.s<=y&&u.e>=y+Bn?(this.addSegment(h[v].v[m-1],h[v].o[m-1],h[v].i[0],h[v].v[0],f,gn,Fn),Fn=!1):(re=bez.getNewSegment(h[v].v[m-1],h[v].v[0],h[v].o[m-1],h[v].i[0],(u.s-y)/Bn,(u.e-y)/Bn,x[m-1]),this.addSegmentFromArray(re,f,gn,Fn),Fn=!1,f.c=!1)}else f.c=!1;y+=b.addedLength,gn+=1}if(f._length&&(f.setXYAt(f.v[J][0],f.v[J][1],"i",J),f.setXYAt(f.v[f._length-1][0],f.v[f._length-1][1],"o",f._length-1)),y>u.e)break;v<p-1&&(f=shapePool.newElement(),Fn=!0,w.push(f),gn=0)}return w};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,d=[0,0],h=c._length,v=0;for(v=0;v<h;v+=1)d[0]+=c.v[v][0],d[1]+=c.v[v][1];d[0]/=h,d[1]/=h;var p=shapePool.newElement();p.c=c.c;var m,g,y,b,gn,x;for(v=0;v<h;v+=1)m=c.v[v][0]+(d[0]-c.v[v][0])*f,g=c.v[v][1]+(d[1]-c.v[v][1])*f,y=c.o[v][0]+(d[0]-c.o[v][0])*-f,b=c.o[v][1]+(d[1]-c.o[v][1])*-f,gn=c.i[v][0]+(d[0]-c.i[v][0])*-f,x=c.i[v][1]+(d[1]-c.i[v][1])*-f,p.setTripleAt(m,g,y,b,gn,x,v);return p},PuckerAndBloatModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,v,p=this.amount.v;if(p!==0){var m,g;for(f=0;f<d;f+=1){if(m=this.shapes[f],g=m.localShapeCollection,!(!m.shape._mdf&&!this._mdf&&!c))for(g.releaseShapes(),m.shape._mdf=!0,u=m.shape.paths.shapes,v=m.shape.paths._length,h=0;h<v;h+=1)g.addShape(this.processPath(u[h],p));m.shape.paths=m.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var c=[0,0];function u(g){var y=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||y,this.a&&g.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&g.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&g.skewFromAxis(-this.sk.v,this.sa.v),this.r?g.rotate(-this.r.v):g.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?g.translate(this.px.v,this.py.v,-this.pz.v):g.translate(this.px.v,this.py.v,0):g.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function f(g){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||g){var y;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var b,gn;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?(b=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/y,0),gn=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?(b=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/y,0),gn=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/y,0)):(b=this.p.pv,gn=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){b=[],gn=[];var x=this.px,re=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(b[0]=x.getValueAtTime((x.keyframes[0].t+.01)/y,0),b[1]=re.getValueAtTime((re.keyframes[0].t+.01)/y,0),gn[0]=x.getValueAtTime(x.keyframes[0].t/y,0),gn[1]=re.getValueAtTime(re.keyframes[0].t/y,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(b[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/y,0),b[1]=re.getValueAtTime(re.keyframes[re.keyframes.length-1].t/y,0),gn[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/y,0),gn[1]=re.getValueAtTime((re.keyframes[re.keyframes.length-1].t-.01)/y,0)):(b=[x.pv,re.pv],gn[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/y,x.offsetTime),gn[1]=re.getValueAtTime((re._caching.lastFrame+re.offsetTime-.01)/y,re.offsetTime))}else gn=c,b=gn;this.v.rotate(-Math.atan2(b[1]-gn[1],b[0]-gn[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 d(){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 h(){}function v(g){this._addDynamicProperty(g),this.elem.addDynamicProperty(g),this._isDirty=!0}function p(g,y,b){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(b||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 gn,x=y.or.k.length;for(gn=0;gn<x;gn+=1)y.or.k[gn].to=null,y.or.k[gn].ti=null}this.or=PropertyFactory.getProp(g,y.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(g,y.r||{k:0},0,degToRads,this);y.sk&&(this.sk=PropertyFactory.getProp(g,y.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(g,y.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(g,y.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(g,y.s||{k:[100,100,100]},1,.01,this),y.o?this.o=PropertyFactory.getProp(g,y.o,0,.01,g):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}p.prototype={applyToMatrix:u,getValue:f,precalculateMatrix:d,autoOrient:h},extendPrototype([DynamicPropertyContainer],p),p.prototype.addDynamicProperty=v,p.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function m(g,y,b){return new p(g,y,b)}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,d,h,v){var p=v?-1:1,m=d.s.v[0]+(1-d.s.v[0])*(1-h),g=d.s.v[1]+(1-d.s.v[1])*(1-h);c.translate(d.p.v[0]*p*h,d.p.v[1]*p*h,d.p.v[2]),u.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),u.rotate(-d.r.v*p*h),u.translate(d.a.v[0],d.a.v[1],d.a.v[2]),f.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),f.scale(v?1/m:m,v?1/g:g),f.translate(d.a.v[0],d.a.v[1],d.a.v[2])},RepeaterModifier.prototype.init=function(c,u,f,d){for(this.elem=c,this.arr=u,this.pos=f,this.elemsData=d,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,d=c.length;for(f=0;f<d;f+=1)c[f]._render=u,c[f].ty==="gr"&&this.changeGroupRender(c[f].it,u)},RepeaterModifier.prototype.processShapes=function(c){var u,f,d,h,v,p=!1;if(this._mdf||c){var m=Math.ceil(this.c.v);if(this._groups.length<m){for(;this._groups.length<m;){var g={it:this.cloneElements(this._elements),ty:"gr"};g.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,g),this._groups.splice(0,0,g),this._currentCopies+=1}this.elem.reloadShapes(),p=!0}v=0;var y;for(d=0;d<=this._groups.length-1;d+=1){if(y=v<m,this._groups[d]._render=y,this.changeGroupRender(this._groups[d].it,y),!y){var b=this.elemsData[d].it,gn=b[b.length-1];gn.transform.op.v!==0?(gn.transform.op._mdf=!0,gn.transform.op.v=0):gn.transform.op._mdf=!1}v+=1}this._currentCopies=m;var x=this.o.v,re=x%1,w=x>0?Math.floor(x):Math.ceil(x),J=this.pMatrix.props,Fn=this.rMatrix.props,Bn=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var j=0;if(x>0){for(;j<w;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),j+=1;re&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,re,!1),j+=re)}else if(x<0){for(;j>w;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),j-=1;re&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-re,!0),j-=re)}d=this.data.m===1?0:this._currentCopies-1,h=this.data.m===1?1:-1,v=this._currentCopies;for(var vn,Pn;v;){if(u=this.elemsData[d].it,f=u[u.length-1].transform.mProps.v.props,Pn=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)*(d/(this._currentCopies-1)),j!==0){for((d!==0&&h===1||d!==this._currentCopies-1&&h===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(Fn[0],Fn[1],Fn[2],Fn[3],Fn[4],Fn[5],Fn[6],Fn[7],Fn[8],Fn[9],Fn[10],Fn[11],Fn[12],Fn[13],Fn[14],Fn[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(J[0],J[1],J[2],J[3],J[4],J[5],J[6],J[7],J[8],J[9],J[10],J[11],J[12],J[13],J[14],J[15]),vn=0;vn<Pn;vn+=1)f[vn]=this.matrix.props[vn];this.matrix.reset()}else for(this.matrix.reset(),vn=0;vn<Pn;vn+=1)f[vn]=this.matrix.props[vn];j+=1,v-=1,d+=h}}else for(v=this._currentCopies,d=0,h=1;v;)u=this.elemsData[d].it,f=u[u.length-1].transform.mProps.v.props,u[u.length-1].transform.mProps._mdf=!1,u[u.length-1].transform.op._mdf=!1,v-=1,d+=h;return p},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(c,u.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(c,u){var f=shapePool.newElement();f.c=c.c;var d,h=c._length,v,p,m,g,y,b,gn=0,x,re,w,J,Fn,Bn;for(d=0;d<h;d+=1)v=c.v[d],m=c.o[d],p=c.i[d],v[0]===m[0]&&v[1]===m[1]&&v[0]===p[0]&&v[1]===p[1]?(d===0||d===h-1)&&!c.c?(f.setTripleAt(v[0],v[1],m[0],m[1],p[0],p[1],gn),gn+=1):(d===0?g=c.v[h-1]:g=c.v[d-1],y=Math.sqrt(Math.pow(v[0]-g[0],2)+Math.pow(v[1]-g[1],2)),b=y?Math.min(y/2,u)/y:0,Fn=v[0]+(g[0]-v[0])*b,x=Fn,Bn=v[1]-(v[1]-g[1])*b,re=Bn,w=x-(x-v[0])*roundCorner,J=re-(re-v[1])*roundCorner,f.setTripleAt(x,re,w,J,Fn,Bn,gn),gn+=1,d===h-1?g=c.v[0]:g=c.v[d+1],y=Math.sqrt(Math.pow(v[0]-g[0],2)+Math.pow(v[1]-g[1],2)),b=y?Math.min(y/2,u)/y:0,w=v[0]+(g[0]-v[0])*b,x=w,J=v[1]+(g[1]-v[1])*b,re=J,Fn=x-(x-v[0])*roundCorner,Bn=re-(re-v[1])*roundCorner,f.setTripleAt(x,re,w,J,Fn,Bn,gn),gn+=1):(f.setTripleAt(c.v[d][0],c.v[d][1],c.o[d][0],c.o[d][1],c.i[d][0],c.i[d][1],gn),gn+=1);return f},RoundCornersModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,v,p=this.rd.v;if(p!==0){var m,g;for(f=0;f<d;f+=1){if(m=this.shapes[f],g=m.localShapeCollection,!(!m.shape._mdf&&!this._mdf&&!c))for(g.releaseShapes(),m.shape._mdf=!0,u=m.shape.paths.shapes,v=m.shape.paths._length,h=0;h<v;h+=1)g.addShape(this.processPath(u[h],p));m.shape.paths=m.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(c,u){return Math.abs(c-u)*1e5<=Math.min(Math.abs(c),Math.abs(u))}function floatZero(c){return Math.abs(c)<=1e-5}function lerp(c,u,f){return c*(1-f)+u*f}function lerpPoint(c,u,f){return[lerp(c[0],u[0],f),lerp(c[1],u[1],f)]}function quadRoots(c,u,f){if(c===0)return[];var d=u*u-4*c*f;if(d<0)return[];var h=-u/(2*c);if(d===0)return[h];var v=Math.sqrt(d)/(2*c);return[h-v,h+v]}function polynomialCoefficients(c,u,f,d){return[-c+3*u-3*f+d,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,d,h){h&&pointEqual(c,u)&&(u=lerpPoint(c,d,1/3)),h&&pointEqual(f,d)&&(f=lerpPoint(c,d,2/3));var v=polynomialCoefficients(c[0],u[0],f[0],d[0]),p=polynomialCoefficients(c[1],u[1],f[1],d[1]);this.a=[v[0],p[0]],this.b=[v[1],p[1]],this.c=[v[2],p[2]],this.d=[v[3],p[3]],this.points=[c,u,f,d]}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 d=Math.sqrt(f);return floatZero(d)?d>0&&d<1?[u]:[]:[u-d,u+d].filter(function(h){return h>0&&h<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),d=lerpPoint(this.points[2],this.points[3],c),h=lerpPoint(u,f,c),v=lerpPoint(f,d,c),p=lerpPoint(h,v,c);return[new PolynomialBezier(this.points[0],u,h,p,!0),new PolynomialBezier(p,v,d,this.points[3],!0)]};function extrema(c,u){var f=c.points[0][u],d=c.points[c.points.length-1][u];if(f>d){var h=d;d=f,f=h}for(var v=quadRoots(3*c.a[u],2*c.b[u],c.c[u]),p=0;p<v.length;p+=1)if(v[p]>0&&v[p]<1){var m=c.point(v[p])[u];m<f?f=m:m>d&&(d=m)}return{min:f,max:d}}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 d=c.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.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,d,h,v){if(boxIntersect(c,u)){if(f>=v||c.width<=d&&c.height<=d&&u.width<=d&&u.height<=d){h.push([c.t,u.t]);return}var p=splitData(c),m=splitData(u);intersectsImpl(p[0],m[0],f+1,d,h,v),intersectsImpl(p[0],m[1],f+1,d,h,v),intersectsImpl(p[1],m[0],f+1,d,h,v),intersectsImpl(p[1],m[1],f+1,d,h,v)}}PolynomialBezier.prototype.intersections=function(c,u,f){u===void 0&&(u=2),f===void 0&&(f=7);var d=[];return intersectsImpl(intersectData(this,0,1),intersectData(c,0,1),0,u,d,f),d},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,d){var h=[c[0],c[1],1],v=[u[0],u[1],1],p=[f[0],f[1],1],m=[d[0],d[1],1],g=crossProduct(crossProduct(h,v),crossProduct(p,m));return floatZero(g[2])?null:[g[0]/g[2],g[1]/g[2]]}function polarOffset(c,u,f){return[c[0]+Math.cos(u)*f,c[1]-Math.sin(u)*f]}function pointDistance(c,u){return Math.hypot(c[0]-u[0],c[1]-u[1])}function pointEqual(c,u){return floatEqual(c[0],u[0])&&floatEqual(c[1],u[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(c,u.s,0,null,this),this.frequency=PropertyFactory.getProp(c,u.r,0,null,this),this.pointsType=PropertyFactory.getProp(c,u.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(c,u,f,d,h,v,p){var m=f-Math.PI/2,g=f+Math.PI/2,y=u[0]+Math.cos(f)*d*h,b=u[1]-Math.sin(f)*d*h;c.setTripleAt(y,b,y+Math.cos(m)*v,b-Math.sin(m)*v,y+Math.cos(g)*p,b-Math.sin(g)*p,c.length())}function getPerpendicularVector(c,u){var f=[u[0]-c[0],u[1]-c[1]],d=-Math.PI*.5,h=[Math.cos(d)*f[0]-Math.sin(d)*f[1],Math.sin(d)*f[0]+Math.cos(d)*f[1]];return h}function getProjectingAngle(c,u){var f=u===0?c.length()-1:u-1,d=(u+1)%c.length(),h=c.v[f],v=c.v[d],p=getPerpendicularVector(h,v);return Math.atan2(0,1)-Math.atan2(p[1],p[0])}function zigZagCorner(c,u,f,d,h,v,p){var m=getProjectingAngle(u,f),g=u.v[f%u._length],y=u.v[f===0?u._length-1:f-1],b=u.v[(f+1)%u._length],gn=v===2?Math.sqrt(Math.pow(g[0]-y[0],2)+Math.pow(g[1]-y[1],2)):0,x=v===2?Math.sqrt(Math.pow(g[0]-b[0],2)+Math.pow(g[1]-b[1],2)):0;setPoint(c,u.v[f%u._length],m,p,d,x/((h+1)*2),gn/((h+1)*2))}function zigZagSegment(c,u,f,d,h,v){for(var p=0;p<d;p+=1){var m=(p+1)/(d+1),g=h===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),b=u.point(m);setPoint(c,b,y,v,f,g/((d+1)*2),g/((d+1)*2)),v=-v}return v}ZigZagModifier.prototype.processPath=function(c,u,f,d){var h=c._length,v=shapePool.newElement();if(v.c=c.c,c.c||(h-=1),h===0)return v;var p=-1,m=PolynomialBezier.shapeSegment(c,0);zigZagCorner(v,c,0,u,f,d,p);for(var g=0;g<h;g+=1)p=zigZagSegment(v,m,u,f,d,-p),g===h-1&&!c.c?m=null:m=PolynomialBezier.shapeSegment(c,(g+1)%h),zigZagCorner(v,c,g+1,u,f,d,p);return v},ZigZagModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,v,p=this.amplitude.v,m=Math.max(0,Math.round(this.frequency.v)),g=this.pointsType.v;if(p!==0){var y,b;for(f=0;f<d;f+=1){if(y=this.shapes[f],b=y.localShapeCollection,!(!y.shape._mdf&&!this._mdf&&!c))for(b.releaseShapes(),y.shape._mdf=!0,u=y.shape.paths.shapes,v=y.shape.paths._length,h=0;h<v;h+=1)b.addShape(this.processPath(u[h],p,m,g));y.shape.paths=y.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(c,u,f){var d=Math.atan2(u[0]-c[0],u[1]-c[1]);return[polarOffset(c,d,f),polarOffset(u,d,f)]}function offsetSegment(c,u){var f,d,h,v,p,m,g;g=linearOffset(c.points[0],c.points[1],u),f=g[0],d=g[1],g=linearOffset(c.points[1],c.points[2],u),h=g[0],v=g[1],g=linearOffset(c.points[2],c.points[3],u),p=g[0],m=g[1];var y=lineIntersection(f,d,h,v);y===null&&(y=d);var b=lineIntersection(p,m,h,v);return b===null&&(b=p),new PolynomialBezier(f,y,b,m)}function joinLines(c,u,f,d,h){var v=u.points[3],p=f.points[0];if(d===3||pointEqual(v,p))return v;if(d===2){var m=-u.tangentAngle(1),g=-f.tangentAngle(0)+Math.PI,y=lineIntersection(v,polarOffset(v,m+Math.PI/2,100),p,polarOffset(p,m+Math.PI/2,100)),b=y?pointDistance(y,v):pointDistance(v,p)/2,gn=polarOffset(v,m,2*b*roundCorner);return c.setXYAt(gn[0],gn[1],"o",c.length()-1),gn=polarOffset(p,g,2*b*roundCorner),c.setTripleAt(p[0],p[1],p[0],p[1],gn[0],gn[1],c.length()),p}var x=pointEqual(v,u.points[2])?u.points[0]:u.points[2],re=pointEqual(p,f.points[1])?f.points[3]:f.points[1],w=lineIntersection(x,v,p,re);return w&&pointDistance(w,v)<h?(c.setTripleAt(w[0],w[1],w[0],w[1],w[0],w[1],c.length()),w):v}function getIntersection(c,u){var f=c.intersections(u);return f.length&&floatEqual(f[0][0],1)&&f.shift(),f.length?f[0]:null}function pruneSegmentIntersection(c,u){var f=c.slice(),d=u.slice(),h=getIntersection(c[c.length-1],u[0]);return h&&(f[c.length-1]=c[c.length-1].split(h[0])[0],d[0]=u[0].split(h[1])[1]),c.length>1&&u.length>1&&(h=getIntersection(c[0],u[u.length-1]),h)?[[c[0].split(h[0])[0]],[u[u.length-1].split(h[1])[1]]]:[f,d]}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(),d,h,v,p;if(f.length===0)return[offsetSegment(c,u)];if(f.length===1||floatEqual(f[1],1))return v=c.split(f[0]),d=v[0],h=v[1],[offsetSegment(d,u),offsetSegment(h,u)];v=c.split(f[0]),d=v[0];var m=(f[1]-f[0])/(1-f[0]);return v=v[1].split(m),p=v[0],h=v[1],[offsetSegment(d,u),offsetSegment(p,u),offsetSegment(h,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,d){var h=shapePool.newElement();h.c=c.c;var v=c.length();c.c||(v-=1);var p,m,g,y=[];for(p=0;p<v;p+=1)g=PolynomialBezier.shapeSegment(c,p),y.push(offsetSegmentSplit(g,u));if(!c.c)for(p=v-1;p>=0;p-=1)g=PolynomialBezier.shapeSegmentInverted(c,p),y.push(offsetSegmentSplit(g,u));y=pruneIntersections(y);var b=null,gn=null;for(p=0;p<y.length;p+=1){var x=y[p];for(gn&&(b=joinLines(h,gn,x[0],f,d)),gn=x[x.length-1],m=0;m<x.length;m+=1)g=x[m],b&&pointEqual(g.points[0],b)?h.setXYAt(g.points[1][0],g.points[1][1],"o",h.length()-1):h.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],h.length()),h.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],h.length()),b=g.points[3]}return y.length&&joinLines(h,gn,y[0][0],f,d),h},OffsetPathModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,v,p=this.amount.v,m=this.miterLimit.v,g=this.lineJoin;if(p!==0){var y,b;for(f=0;f<d;f+=1){if(y=this.shapes[f],b=y.localShapeCollection,!(!y.shape._mdf&&!this._mdf&&!c))for(b.releaseShapes(),y.shape._mdf=!0,u=y.shape.paths.shapes,v=y.shape.paths._length,h=0;h<v;h+=1)b.addShape(this.processPath(u[h],p,g,m));y.shape.paths=y.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(c){for(var u=c.fStyle?c.fStyle.split(" "):[],f="normal",d="normal",h=u.length,v,p=0;p<h;p+=1)switch(v=u[p].toLowerCase(),v){case"italic":d="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:d,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 d=127988,h=917631,v=917601,p=917626,m=65039,g=8205,y=127462,b=127487,gn=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(Hn){var Kn=Hn.split(","),Vn,Gn=Kn.length,er=[];for(Vn=0;Vn<Gn;Vn+=1)Kn[Vn]!=="sans-serif"&&Kn[Vn]!=="monospace"&&er.push(Kn[Vn]);return er.join(",")}function re(Hn,Kn){var Vn=createTag("span");Vn.setAttribute("aria-hidden",!0),Vn.style.fontFamily=Kn;var Gn=createTag("span");Gn.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(Gn),document.body.appendChild(Vn);var er=Gn.offsetWidth;return Gn.style.fontFamily=x(Hn)+", "+Kn,{node:Gn,w:er,parent:Vn}}function w(){var Hn,Kn=this.fonts.length,Vn,Gn,er=Kn;for(Hn=0;Hn<Kn;Hn+=1)this.fonts[Hn].loaded?er-=1:this.fonts[Hn].fOrigin==="n"||this.fonts[Hn].origin===0?this.fonts[Hn].loaded=!0:(Vn=this.fonts[Hn].monoCase.node,Gn=this.fonts[Hn].monoCase.w,Vn.offsetWidth!==Gn?(er-=1,this.fonts[Hn].loaded=!0):(Vn=this.fonts[Hn].sansCase.node,Gn=this.fonts[Hn].sansCase.w,Vn.offsetWidth!==Gn&&(er-=1,this.fonts[Hn].loaded=!0)),this.fonts[Hn].loaded&&(this.fonts[Hn].sansCase.parent.parentNode.removeChild(this.fonts[Hn].sansCase.parent),this.fonts[Hn].monoCase.parent.parentNode.removeChild(this.fonts[Hn].monoCase.parent)));er!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function J(Hn,Kn){var Vn=document.body&&Kn?"svg":"canvas",Gn,er=getFontProperties(Hn);if(Vn==="svg"){var Wn=createNS("text");Wn.style.fontSize="100px",Wn.setAttribute("font-family",Hn.fFamily),Wn.setAttribute("font-style",er.style),Wn.setAttribute("font-weight",er.weight),Wn.textContent="1",Hn.fClass?(Wn.style.fontFamily="inherit",Wn.setAttribute("class",Hn.fClass)):Wn.style.fontFamily=Hn.fFamily,Kn.appendChild(Wn),Gn=Wn}else{var or=new OffscreenCanvas(500,500).getContext("2d");or.font=er.style+" "+er.weight+" 100px "+Hn.fFamily,Gn=or}function cr(ar){return Vn==="svg"?(Gn.textContent=ar,Gn.getComputedTextLength()):Gn.measureText(ar).width}return{measureText:cr}}function Fn(Hn,Kn){if(!Hn){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=Hn.list;return}if(!document.body){this.isLoaded=!0,Hn.list.forEach(function(ir){ir.helper=J(ir),ir.cache={}}),this.fonts=Hn.list;return}var Vn=Hn.list,Gn,er=Vn.length,Wn=er;for(Gn=0;Gn<er;Gn+=1){var or=!0,cr,ar;if(Vn[Gn].loaded=!1,Vn[Gn].monoCase=re(Vn[Gn].fFamily,"monospace"),Vn[Gn].sansCase=re(Vn[Gn].fFamily,"sans-serif"),!Vn[Gn].fPath)Vn[Gn].loaded=!0,Wn-=1;else if(Vn[Gn].fOrigin==="p"||Vn[Gn].origin===3){if(cr=document.querySelectorAll('style[f-forigin="p"][f-family="'+Vn[Gn].fFamily+'"], style[f-origin="3"][f-family="'+Vn[Gn].fFamily+'"]'),cr.length>0&&(or=!1),or){var tr=createTag("style");tr.setAttribute("f-forigin",Vn[Gn].fOrigin),tr.setAttribute("f-origin",Vn[Gn].origin),tr.setAttribute("f-family",Vn[Gn].fFamily),tr.type="text/css",tr.innerText="@font-face {font-family: "+Vn[Gn].fFamily+"; font-style: normal; src: url('"+Vn[Gn].fPath+"');}",Kn.appendChild(tr)}}else if(Vn[Gn].fOrigin==="g"||Vn[Gn].origin===1){for(cr=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),ar=0;ar<cr.length;ar+=1)cr[ar].href.indexOf(Vn[Gn].fPath)!==-1&&(or=!1);if(or){var pr=createTag("link");pr.setAttribute("f-forigin",Vn[Gn].fOrigin),pr.setAttribute("f-origin",Vn[Gn].origin),pr.type="text/css",pr.rel="stylesheet",pr.href=Vn[Gn].fPath,document.body.appendChild(pr)}}else if(Vn[Gn].fOrigin==="t"||Vn[Gn].origin===2){for(cr=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),ar=0;ar<cr.length;ar+=1)Vn[Gn].fPath===cr[ar].src&&(or=!1);if(or){var Yn=createTag("link");Yn.setAttribute("f-forigin",Vn[Gn].fOrigin),Yn.setAttribute("f-origin",Vn[Gn].origin),Yn.setAttribute("rel","stylesheet"),Yn.setAttribute("href",Vn[Gn].fPath),Kn.appendChild(Yn)}}Vn[Gn].helper=J(Vn[Gn],Kn),Vn[Gn].cache={},this.fonts.push(Vn[Gn])}Wn===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Bn(Hn){if(Hn){this.chars||(this.chars=[]);var Kn,Vn=Hn.length,Gn,er=this.chars.length,Wn;for(Kn=0;Kn<Vn;Kn+=1){for(Gn=0,Wn=!1;Gn<er;)this.chars[Gn].style===Hn[Kn].style&&this.chars[Gn].fFamily===Hn[Kn].fFamily&&this.chars[Gn].ch===Hn[Kn].ch&&(Wn=!0),Gn+=1;Wn||(this.chars.push(Hn[Kn]),er+=1)}}}function j(Hn,Kn,Vn){for(var Gn=0,er=this.chars.length;Gn<er;){if(this.chars[Gn].ch===Hn&&this.chars[Gn].style===Kn&&this.chars[Gn].fFamily===Vn)return this.chars[Gn];Gn+=1}return(typeof Hn=="string"&&Hn.charCodeAt(0)!==13||!Hn)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",Hn,Kn,Vn)),u}function vn(Hn,Kn,Vn){var Gn=this.getFontByName(Kn),er=Hn;if(!Gn.cache[er]){var Wn=Gn.helper;if(Hn===" "){var or=Wn.measureText("|"+Hn+"|"),cr=Wn.measureText("||");Gn.cache[er]=(or-cr)/100}else Gn.cache[er]=Wn.measureText(Hn)/100}return Gn.cache[er]*Vn}function Pn(Hn){for(var Kn=0,Vn=this.fonts.length;Kn<Vn;){if(this.fonts[Kn].fName===Hn)return this.fonts[Kn];Kn+=1}return this.fonts[0]}function Rn(Hn){var Kn=0,Vn=Hn.charCodeAt(0);if(Vn>=55296&&Vn<=56319){var Gn=Hn.charCodeAt(1);Gn>=56320&&Gn<=57343&&(Kn=(Vn-55296)*1024+Gn-56320+65536)}return Kn}function zn(Hn,Kn){var Vn=Hn.toString(16)+Kn.toString(16);return gn.indexOf(Vn)!==-1}function Un(Hn){return Hn===g}function qn(Hn){return Hn===m}function Qn(Hn){var Kn=Rn(Hn);return Kn>=y&&Kn<=b}function Jn(Hn){return Qn(Hn.substr(0,2))&&Qn(Hn.substr(2,2))}function Zn(Hn){return f.indexOf(Hn)!==-1}function Xn(Hn,Kn){var Vn=Rn(Hn.substr(Kn,2));if(Vn!==d)return!1;var Gn=0;for(Kn+=2;Gn<5;){if(Vn=Rn(Hn.substr(Kn,2)),Vn<v||Vn>p)return!1;Gn+=1,Kn+=2}return Rn(Hn.substr(Kn,2))===h}function nr(){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=Jn,sr.isRegionalCode=Qn,sr.isCombinedCharacter=Zn,sr.isRegionalFlag=Xn,sr.isVariationSelector=qn,sr.BLACK_FLAG_CODE_POINT=d;var ur={addChars:Bn,addFonts:Fn,getCharData:j,getFontByName:Pn,measureText:vn,checkLoadedFonts:w,setIsLoaded:nr};return sr.prototype=ur,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 d,h=f.length,v;for(d=0;d<h;d+=1)v=new GroupEffect(f[d],u),this.effectElements.push(v)}function GroupEffect(c,u){this.init(c,u)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(c,u){this.data=c,this.effectElements=[],this.initDynamicPropertyContainer(u);var f,d=this.data.ef.length,h,v=this.data.ef;for(f=0;f<d;f+=1){switch(h=null,v[f].ty){case 0:h=new SliderEffect(v[f],u,this);break;case 1:h=new AngleEffect(v[f],u,this);break;case 2:h=new ColorEffect(v[f],u,this);break;case 3:h=new PointEffect(v[f],u,this);break;case 4:case 7:h=new CheckboxEffect(v[f],u,this);break;case 10:h=new LayerIndexEffect(v[f],u,this);break;case 11:h=new MaskIndexEffect(v[f],u,this);break;case 5:h=new EffectsManager(v[f],u);break;default:h=new NoValueEffect(v[f]);break}h&&this.effectElements.push(h)}};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"),d=u("effects"),h=u("shape"),v=u("text"),p=u("comp");this.layerInterface=f(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var m=d.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(m),this.data.ty===0||this.data.xt?this.compInterface=p(this):this.data.ty===4?(this.layerInterface.shapeInterface=h(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=v(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var u=getBlendMode(this.data.bm),f=this.baseElement||this.layerElement;f.style["mix-blend-mode"]=u},initBaseData:function(u,f,d){this.globalData=f,this.comp=d,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 d,h=this.dynamicProperties.length;for(d=0;d<h;d+=1)(f||this._isParent&&this.dynamicProperties[d].propType==="transform")&&(this.dynamicProperties[d].getValue(),this.dynamicProperties[d]._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 d=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(d),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,d;for(this.completeLayers=!0,u=f-1;u>=0;u-=1)this.elements[u]||(d=this.layers[u],d.ip-d.st<=c-this.layers[u].st&&d.op-d.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,d,h=this.layers.length;for(u=0;u<f;u+=1)for(d=0;d<h;){if(this.layers[d].id===c[u].id){this.layers[d]=c[u];break}d+=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 d=this.elements,h=this.layers,v=0,p=h.length;v<p;)h[v].ind==u&&(!d[v]||d[v]===!0?(this.buildItem(v),this.addPendingElement(c)):(f.push(d[v]),d[v].setAsParent(),h[v].parent!==void 0?this.buildElementParenting(c,h[v].parent,f):c.setHierarchy(f))),v+=1},BaseRenderer.prototype.addPendingElement=function(c){this.pendingElements.push(c)},BaseRenderer.prototype.searchExtraCompositions=function(c){var u,f=c.length;for(u=0;u<f;u+=1)if(c[u].xt){var d=this.createComp(c[u]);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}},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 d,h=this.elements.length;for(d=0;d<h;d+=1)if(this.elements[d].data.nm===u){f=this.elements[d];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,d=0,h=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;d<h;){if(this.hierarchy[d].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}d+=1}if(this.finalTransform._matMdf)for(u=this.finalTransform.mProp.v.props,f.cloneFromProps(u),d=0;d<h;d+=1)f.multiply(this.hierarchy[d].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 d=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(d),u=1;u<f;u+=1){var h=this.localTransforms[u].matrix;d.multiply(h)}d.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var v=this.finalTransform.localOpacity;for(u=0;u<f;u+=1)v*=this.localTransforms[u].opacity*.01;this.finalTransform.localOpacity=v}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var u=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(u.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var f=0,d=u.length;for(f=0;f<d;f+=1)this.localTransforms.push(u[f])}}},globalToLocal:function(u){var f=[];f.push(this.finalTransform);for(var d=!0,h=this.comp;d;)h.finalTransform?(h.data.hasMask&&f.splice(0,0,h.finalTransform),h=h.comp):d=!1;var v,p=f.length,m;for(v=0;v<p;v+=1)m=f[v].mat.applyToPointArray(0,0,0),u=[u[0]-m[0],u[1]-m[1],0];return u},mHelper:new Matrix};function MaskElement(c,u,f){this.data=c,this.element=u,this.globalData=f,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var d=this.globalData.defs,h,v=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(v),this.solidPath="";var p,m=this.masksProperties,g=0,y=[],b,gn,x=createElementID(),re,w,J,Fn,Bn="clipPath",j="clip-path";for(h=0;h<v;h+=1)if((m[h].mode!=="a"&&m[h].mode!=="n"||m[h].inv||m[h].o.k!==100||m[h].o.x)&&(Bn="mask",j="mask"),(m[h].mode==="s"||m[h].mode==="i")&&g===0?(re=createNS("rect"),re.setAttribute("fill","#ffffff"),re.setAttribute("width",this.element.comp.data.w||0),re.setAttribute("height",this.element.comp.data.h||0),y.push(re)):re=null,p=createNS("path"),m[h].mode==="n")this.viewData[h]={op:PropertyFactory.getProp(this.element,m[h].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,m[h],3),elem:p,lastPath:""},d.appendChild(p);else{g+=1,p.setAttribute("fill",m[h].mode==="s"?"#000000":"#ffffff"),p.setAttribute("clip-rule","nonzero");var vn;if(m[h].x.k!==0?(Bn="mask",j="mask",Fn=PropertyFactory.getProp(this.element,m[h].x,0,null,this.element),vn=createElementID(),w=createNS("filter"),w.setAttribute("id",vn),J=createNS("feMorphology"),J.setAttribute("operator","erode"),J.setAttribute("in","SourceGraphic"),J.setAttribute("radius","0"),w.appendChild(J),d.appendChild(w),p.setAttribute("stroke",m[h].mode==="s"?"#000000":"#ffffff")):(J=null,Fn=null),this.storedData[h]={elem:p,x:Fn,expan:J,lastPath:"",lastOperator:"",filterId:vn,lastRadius:0},m[h].mode==="i"){gn=y.length;var Pn=createNS("g");for(b=0;b<gn;b+=1)Pn.appendChild(y[b]);var Rn=createNS("mask");Rn.setAttribute("mask-type","alpha"),Rn.setAttribute("id",x+"_"+g),Rn.appendChild(p),d.appendChild(Rn),Pn.setAttribute("mask","url("+getLocationHref()+"#"+x+"_"+g+")"),y.length=0,y.push(Pn)}else y.push(p);m[h].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[h]={elem:p,lastPath:"",op:PropertyFactory.getProp(this.element,m[h].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,m[h],3),invRect:re},this.viewData[h].prop.k||this.drawPath(m[h],this.viewData[h].prop.v,this.viewData[h])}for(this.maskElement=createNS(Bn),v=y.length,h=0;h<v;h+=1)this.maskElement.appendChild(y[h]);g>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(j,"url("+getLocationHref()+"#"+x+")"),d.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,d=this.masksProperties.length;for(f=0;f<d;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 h=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+")")),h.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 d=" M"+u.v[0][0]+","+u.v[0][1],h,v;for(v=u._length,h=1;h<v;h+=1)d+=" C"+u.o[h-1][0]+","+u.o[h-1][1]+" "+u.i[h][0]+","+u.i[h][1]+" "+u.v[h][0]+","+u.v[h][1];if(u.c&&v>1&&(d+=" C"+u.o[h-1][0]+","+u.o[h-1][1]+" "+u.i[0][0]+","+u.i[0][1]+" "+u.v[0][0]+","+u.v[0][1]),f.lastPath!==d){var p="";f.elem&&(u.c&&(p=c.inv?this.solidPath+d:d),f.elem.setAttribute("d",p)),f.lastPath=d}},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(d,h){var v=createNS("filter");return v.setAttribute("id",d),h!==!0&&(v.setAttribute("filterUnits","objectBoundingBox"),v.setAttribute("x","0%"),v.setAttribute("y","0%"),v.setAttribute("width","100%"),v.setAttribute("height","100%")),v}function f(){var d=createNS("feColorMatrix");return d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),d}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",d=c.data.ef?c.data.ef.length:0,h=createElementID(),v=filtersFactory.createFilter(h,!0),p=0;this.filters=[];var m;for(u=0;u<d;u+=1){m=null;var g=c.data.ef[u].ty;if(registeredEffects$1[g]){var y=registeredEffects$1[g].effect;m=new y(v,c.effectsManager.effectElements[u],c,idPrefix+p,f),f=idPrefix+p,registeredEffects$1[g].countsAsEffect&&(p+=1)}m&&this.filters.push(m)}p&&(c.globalData.defs.appendChild(v),c.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+h+")")),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,d=[];for(u=0;u<f;u+=1)this.filters[u].type===c&&d.push(this.filters[u]);return d};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 d=createNS("clipPath"),h=createNS("path");h.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var v=createElementID();if(d.setAttribute("id",v),d.appendChild(h),this.globalData.defs.appendChild(d),this.checkMasks()){var p=createNS("g");p.setAttribute("clip-path","url("+getLocationHref()+"#"+v+")"),p.appendChild(this.layerElement),this.transformedElement=p,u?u.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+v+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(u){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[u]){var f=this.layerId+"_"+u,d,h,v,p;if(u===1||u===3){var m=createNS("mask");m.setAttribute("id",f),m.setAttribute("mask-type",u===3?"luminance":"alpha"),v=createNS("use"),v.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),m.appendChild(v),this.globalData.defs.appendChild(m),!featureSupport.maskType&&u===1&&(m.setAttribute("mask-type","luminance"),d=createElementID(),h=filtersFactory.createFilter(d),this.globalData.defs.appendChild(h),h.appendChild(filtersFactory.createAlphaToLuminanceFilter()),p=createNS("g"),p.appendChild(v),m.appendChild(p),p.setAttribute("filter","url("+getLocationHref()+"#"+d+")"))}else if(u===2){var g=createNS("mask");g.setAttribute("id",f),g.setAttribute("mask-type","alpha");var y=createNS("g");g.appendChild(y),d=createElementID(),h=filtersFactory.createFilter(d);var b=createNS("feComponentTransfer");b.setAttribute("in","SourceGraphic"),h.appendChild(b);var gn=createNS("feFuncA");gn.setAttribute("type","table"),gn.setAttribute("tableValues","1.0 0.0"),b.appendChild(gn),this.globalData.defs.appendChild(h);var x=createNS("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),y.setAttribute("filter","url("+getLocationHref()+"#"+d+")"),y.appendChild(x),v=createNS("use"),v.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),y.appendChild(v),featureSupport.maskType||(g.setAttribute("mask-type","luminance"),h.appendChild(filtersFactory.createAlphaToLuminanceFilter()),p=createNS("g"),y.appendChild(x),p.appendChild(this.layerElement),y.appendChild(p)),this.globalData.defs.appendChild(g)}this.matteMasks[u]=f}return this.matteMasks[u]},setMatte:function(u){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+u+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(u){this.hierarchy=u},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var c={initElement:function(f,d,h){this.initFrame(),this.initBaseData(f,d,h),this.initTransform(f,d,h),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,d=this.shapeModifiers.length;for(f=0;f<d;f+=1)this.shapeModifiers[f].addShape(u)},isShapeInAnimatedModifiers:function(u){for(var f=0,d=this.shapeModifiers.length;f<d;)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 d;for(u=f-1;u>=0&&(d=this.shapeModifiers[u].processShapes(this._isFirstFrame),!d);u-=1);}},searchProcessedElement:function(u){for(var f=this.processedElements,d=0,h=f.length;d<h;){if(f[d].elem===u)return f[d].pos;d+=1}return 0},addProcessedElement:function(u,f){for(var d=this.processedElements,h=d.length;h;)if(h-=1,d[h].elem===u){d[h].pos=f;return}d.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 d=0,h=c.length;d<h;){if(c[d].mProps.dynamicProperties.length){this._isAnimated=!0;break}d+=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,d){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(d);var h,v=u.length||0,p;for(h=0;h<v;h+=1)p=PropertyFactory.getProp(c,u[h].v,0,0,this),this.k=p.k||this.k,this.dataProps[h]={n:u[h].n,p};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(c){if(!(this.elem.globalData.frameId===this.frameId&&!c)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||c,this._mdf)){var u=0,f=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),u=0;u<f;u+=1)this.dataProps[u].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[u].p.v:this.dashArray[u]=this.dataProps[u].p.v:this.dashoffset[0]=this.dataProps[u].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(c,u.o,0,.01,this),this.w=PropertyFactory.getProp(c,u.w,0,null,this),this.d=new DashProperty(c,u.d||{},"svg",this),this.c=PropertyFactory.getProp(c,u.c,1,255,this),this.style=f,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(c,u.o,0,.01,this),this.c=PropertyFactory.getProp(c,u.c,1,255,this),this.style=f}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.style=f}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(c,u,f){this.data=u,this.c=createTypedArray("uint8c",u.p*4);var d=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",d),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=d,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,d=this.o.length/2,h;f<d;){if(h=Math.abs(c[f*4]-c[u*4+f*2]),h>.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,d,h;for(u=0;u<f;u+=1)d=u%4===0?100:255,h=Math.round(this.prop.v[u]*d),this.c[u]!==h&&(this.c[u]=h,this._cmdf=!c);if(this.o.length)for(f=this.prop.v.length,u=this.data.p*4;u<f;u+=1)d=u%2===0?100:1,h=u%2===0?Math.round(this.prop.v[u]*100):this.prop.v[u],this.o[u-this.data.p*4]!==h&&(this.o[u-this.data.p*4]=h,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(),d=createNS(u.t===1?"linearGradient":"radialGradient");d.setAttribute("id",f),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse");var h=[],v,p,m;for(m=u.g.p*4,p=0;p<m;p+=4)v=createNS("stop"),d.appendChild(v),h.push(v);c.setAttribute(u.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+f+")"),this.gf=d,this.cst=h},SVGGradientFillStyleData.prototype.setGradientOpacity=function(c,u){if(this.g._hasOpacity&&!this.g._collapsable){var f,d,h,v=createNS("mask"),p=createNS("path");v.appendChild(p);var m=createElementID(),g=createElementID();v.setAttribute("id",g);var y=createNS(c.t===1?"linearGradient":"radialGradient");y.setAttribute("id",m),y.setAttribute("spreadMethod","pad"),y.setAttribute("gradientUnits","userSpaceOnUse"),h=c.g.k.k[0].s?c.g.k.k[0].s.length:c.g.k.k.length;var b=this.stops;for(d=c.g.p*4;d<h;d+=2)f=createNS("stop"),f.setAttribute("stop-color","rgb(255,255,255)"),y.appendChild(f),b.push(f);p.setAttribute(c.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+m+")"),c.ty==="gs"&&(p.setAttribute("stroke-linecap",lineCapEnum[c.lc||2]),p.setAttribute("stroke-linejoin",lineJoinEnum[c.lj||2]),c.lj===1&&p.setAttribute("stroke-miterlimit",c.ml)),this.of=y,this.ms=v,this.ost=b,this.maskId=g,u.msElem=p}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(c,u.w,0,null,this),this.d=new DashProperty(c,u.d||{},"svg",this),this.initGradientData(c,u,f),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(c,u,f){this.transform={mProps:c,op:u,container:f},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(u,f,d,h){if(f===0)return"";var v=u.o,p=u.i,m=u.v,g,y=" M"+h.applyToPointStringified(m[0][0],m[0][1]);for(g=1;g<f;g+=1)y+=" C"+h.applyToPointStringified(v[g-1][0],v[g-1][1])+" "+h.applyToPointStringified(p[g][0],p[g][1])+" "+h.applyToPointStringified(m[g][0],m[g][1]);return d&&f&&(y+=" C"+h.applyToPointStringified(v[g-1][0],v[g-1][1])+" "+h.applyToPointStringified(p[0][0],p[0][1])+" "+h.applyToPointStringified(m[0][0],m[0][1]),y+="z"),y},SVGElementsRenderer=function(){var c=new Matrix,u=new Matrix,f={createRenderFunction:d};function d(gn){switch(gn.ty){case"fl":return m;case"gf":return y;case"gs":return g;case"st":return b;case"sh":case"el":case"rc":case"sr":return p;case"tr":return h;case"no":return v;default:return null}}function h(gn,x,re){(re||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(re||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function v(){}function p(gn,x,re){var w,J,Fn,Bn,j,vn,Pn=x.styles.length,Rn=x.lvl,zn,Un,qn,Qn;for(vn=0;vn<Pn;vn+=1){if(Bn=x.sh._mdf||re,x.styles[vn].lvl<Rn){for(Un=u.reset(),qn=Rn-x.styles[vn].lvl,Qn=x.transformers.length-1;!Bn&&qn>0;)Bn=x.transformers[Qn].mProps._mdf||Bn,qn-=1,Qn-=1;if(Bn)for(qn=Rn-x.styles[vn].lvl,Qn=x.transformers.length-1;qn>0;)Un.multiply(x.transformers[Qn].mProps.v),qn-=1,Qn-=1}else Un=c;if(zn=x.sh.paths,J=zn._length,Bn){for(Fn="",w=0;w<J;w+=1)j=zn.shapes[w],j&&j._length&&(Fn+=buildShapeString(j,j._length,j.c,Un));x.caches[vn]=Fn}else Fn=x.caches[vn];x.styles[vn].d+=gn.hd===!0?"":Fn,x.styles[vn]._mdf=Bn||x.styles[vn]._mdf}}function m(gn,x,re){var w=x.style;(x.c._mdf||re)&&w.pElem.setAttribute("fill","rgb("+bmFloor(x.c.v[0])+","+bmFloor(x.c.v[1])+","+bmFloor(x.c.v[2])+")"),(x.o._mdf||re)&&w.pElem.setAttribute("fill-opacity",x.o.v)}function g(gn,x,re){y(gn,x,re),b(gn,x,re)}function y(gn,x,re){var w=x.gf,J=x.g._hasOpacity,Fn=x.s.v,Bn=x.e.v;if(x.o._mdf||re){var j=gn.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(j,x.o.v)}if(x.s._mdf||re){var vn=gn.t===1?"x1":"cx",Pn=vn==="x1"?"y1":"cy";w.setAttribute(vn,Fn[0]),w.setAttribute(Pn,Fn[1]),J&&!x.g._collapsable&&(x.of.setAttribute(vn,Fn[0]),x.of.setAttribute(Pn,Fn[1]))}var Rn,zn,Un,qn;if(x.g._cmdf||re){Rn=x.cst;var Qn=x.g.c;for(Un=Rn.length,zn=0;zn<Un;zn+=1)qn=Rn[zn],qn.setAttribute("offset",Qn[zn*4]+"%"),qn.setAttribute("stop-color","rgb("+Qn[zn*4+1]+","+Qn[zn*4+2]+","+Qn[zn*4+3]+")")}if(J&&(x.g._omdf||re)){var Jn=x.g.o;for(x.g._collapsable?Rn=x.cst:Rn=x.ost,Un=Rn.length,zn=0;zn<Un;zn+=1)qn=Rn[zn],x.g._collapsable||qn.setAttribute("offset",Jn[zn*2]+"%"),qn.setAttribute("stop-opacity",Jn[zn*2+1])}if(gn.t===1)(x.e._mdf||re)&&(w.setAttribute("x2",Bn[0]),w.setAttribute("y2",Bn[1]),J&&!x.g._collapsable&&(x.of.setAttribute("x2",Bn[0]),x.of.setAttribute("y2",Bn[1])));else{var Zn;if((x.s._mdf||x.e._mdf||re)&&(Zn=Math.sqrt(Math.pow(Fn[0]-Bn[0],2)+Math.pow(Fn[1]-Bn[1],2)),w.setAttribute("r",Zn),J&&!x.g._collapsable&&x.of.setAttribute("r",Zn)),x.e._mdf||x.h._mdf||x.a._mdf||re){Zn||(Zn=Math.sqrt(Math.pow(Fn[0]-Bn[0],2)+Math.pow(Fn[1]-Bn[1],2)));var Xn=Math.atan2(Bn[1]-Fn[1],Bn[0]-Fn[0]),nr=x.h.v;nr>=1?nr=.99:nr<=-1&&(nr=-.99);var sr=Zn*nr,ur=Math.cos(Xn+x.a.v)*sr+Fn[0],Hn=Math.sin(Xn+x.a.v)*sr+Fn[1];w.setAttribute("fx",ur),w.setAttribute("fy",Hn),J&&!x.g._collapsable&&(x.of.setAttribute("fx",ur),x.of.setAttribute("fy",Hn))}}}function b(gn,x,re){var w=x.style,J=x.d;J&&(J._mdf||re)&&J.dashStr&&(w.pElem.setAttribute("stroke-dasharray",J.dashStr),w.pElem.setAttribute("stroke-dashoffset",J.dashoffset[0])),x.c&&(x.c._mdf||re)&&w.pElem.setAttribute("stroke","rgb("+bmFloor(x.c.v[0])+","+bmFloor(x.c.v[1])+","+bmFloor(x.c.v[2])+")"),(x.o._mdf||re)&&w.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||re)&&(w.pElem.setAttribute("stroke-width",x.w.v),w.msElem&&w.msElem.setAttribute("stroke-width",x.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,d,h=this.stylesList.length,v,p=[],m=!1;for(d=0;d<h;d+=1){for(v=this.stylesList[d],m=!1,p.length=0,c=0;c<u;c+=1)f=this.shapes[c],f.styles.indexOf(v)!==-1&&(p.push(f),m=f._isAnimated||m);p.length>1&&m&&this.setShapesAsAnimated(p)}},SVGShapeElement.prototype.setShapesAsAnimated=function(c){var u,f=c.length;for(u=0;u<f;u+=1)c[u].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(c,u){var f,d=new SVGStyleData(c,u),h=d.pElem;if(c.ty==="st")f=new SVGStrokeStyleData(this,c,d);else if(c.ty==="fl")f=new SVGFillStyleData(this,c,d);else if(c.ty==="gf"||c.ty==="gs"){var v=c.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;f=new v(this,c,d),this.globalData.defs.appendChild(f.gf),f.maskId&&(this.globalData.defs.appendChild(f.ms),this.globalData.defs.appendChild(f.of),h.setAttribute("mask","url("+getLocationHref()+"#"+f.maskId+")"))}else c.ty==="no"&&(f=new SVGNoStyleData(this,c,d));return(c.ty==="st"||c.ty==="gs")&&(h.setAttribute("stroke-linecap",lineCapEnum[c.lc||2]),h.setAttribute("stroke-linejoin",lineJoinEnum[c.lj||2]),h.setAttribute("fill-opacity","0"),c.lj===1&&h.setAttribute("stroke-miterlimit",c.ml)),c.r===2&&h.setAttribute("fill-rule","evenodd"),c.ln&&h.setAttribute("id",c.ln),c.cl&&h.setAttribute("class",c.cl),c.bm&&(h.style["mix-blend-mode"]=getBlendMode(c.bm)),this.stylesList.push(d),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),d=new SVGTransformData(f,f.o,u);return this.addToAnimatedContents(c,d),d},SVGShapeElement.prototype.createShapeElement=function(c,u,f){var d=4;c.ty==="rc"?d=5:c.ty==="el"?d=6:c.ty==="sr"&&(d=7);var h=ShapePropertyFactory.getShapeProp(this,c,d,this),v=new SVGShapeData(u,f,h);return this.shapes.push(v),this.addShapeToModifiers(v),this.addToAnimatedContents(c,v),v},SVGShapeElement.prototype.addToAnimatedContents=function(c,u){for(var f=0,d=this.animatedContents.length;f<d;){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,d=this.stylesList.length;for(f=0;f<d;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,d,h,v,p){var m=[].concat(v),g,y=c.length-1,b,gn,x=[],re=[],w,J,Fn;for(g=y;g>=0;g-=1){if(Fn=this.searchProcessedElement(c[g]),Fn?u[g]=f[Fn-1]:c[g]._render=p,c[g].ty==="fl"||c[g].ty==="st"||c[g].ty==="gf"||c[g].ty==="gs"||c[g].ty==="no")Fn?u[g].style.closed=!1:u[g]=this.createStyleElement(c[g],h),c[g]._render&&u[g].style.pElem.parentNode!==d&&d.appendChild(u[g].style.pElem),x.push(u[g].style);else if(c[g].ty==="gr"){if(!Fn)u[g]=this.createGroupElement(c[g]);else for(gn=u[g].it.length,b=0;b<gn;b+=1)u[g].prevViewData[b]=u[g].it[b];this.searchShapes(c[g].it,u[g].it,u[g].prevViewData,u[g].gr,h+1,m,p),c[g]._render&&u[g].gr.parentNode!==d&&d.appendChild(u[g].gr)}else c[g].ty==="tr"?(Fn||(u[g]=this.createTransformElement(c[g],d)),w=u[g].transform,m.push(w)):c[g].ty==="sh"||c[g].ty==="rc"||c[g].ty==="el"||c[g].ty==="sr"?(Fn||(u[g]=this.createShapeElement(c[g],m,h)),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"?(Fn?(J=u[g],J.closed=!1):(J=ShapeModifiers.getModifier(c[g].ty),J.init(this,c[g]),u[g]=J,this.shapeModifiers.push(J)),re.push(J)):c[g].ty==="rp"&&(Fn?(J=u[g],J.closed=!0):(J=ShapeModifiers.getModifier(c[g].ty),u[g]=J,J.init(this,c,g,u),this.shapeModifiers.push(J),p=!1),re.push(J));this.addProcessedElement(c[g],g+1)}for(y=x.length,g=0;g<y;g+=1)x[g].closed=!0;for(y=re.length,g=0;g<y;g+=1)re[g].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var c,u=this.stylesList.length;for(c=0;c<u;c+=1)this.stylesList[c].reset();for(this.renderShape(),c=0;c<u;c+=1)(this.stylesList[c]._mdf||this._isFirstFrame)&&(this.stylesList[c].msElem&&(this.stylesList[c].msElem.setAttribute("d",this.stylesList[c].d),this.stylesList[c].d="M0 0"+this.stylesList[c].d),this.stylesList[c].pElem.setAttribute("d",this.stylesList[c].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var c,u=this.animatedContents.length,f;for(c=0;c<u;c+=1)f=this.animatedContents[c],(this._isFirstFrame||f.element._isAnimated)&&f.data!==!0&&f.fn(f.data,f.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(c,u,f,d,h,v){this.o=c,this.sw=u,this.sc=f,this.fc=d,this.m=h,this.p=v,this._mdf={o:!0,sw:!!u,sc:!!f,fc:!!d,m:!0,p:!0}}LetterProps.prototype.update=function(c,u,f,d,h,v){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var p=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,p=!0),this.sw!==u&&(this.sw=u,this._mdf.sw=!0,p=!0),this.sc!==f&&(this.sc=f,this._mdf.sc=!0,p=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,p=!0),this.m!==h&&(this.m=h,this._mdf.m=!0,p=!0),v.length&&(this.p[0]!==v[0]||this.p[1]!==v[1]||this.p[4]!==v[4]||this.p[5]!==v[5]||this.p[12]!==v[12]||this.p[13]!==v[13])&&(this.p=v,this._mdf.p=!0,p=!0),p};function TextProperty(c,u){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,u.d&&u.d.sid&&(u.d=c.globalData.slotManager.getProp(u.d)),this.data=u,this.elem=c,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(c,u){for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(c[f]=u[f]);return c},TextProperty.prototype.setCurrentData=function(c){c.__complete||this.completeTextData(c),this.currentData=c,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(c){this.effectsSequence.push(c),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(c){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!c)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var u=this.currentData,f=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var d,h=this.effectsSequence.length,v=c||this.data.d.k[this.keysIndex].s;for(d=0;d<h;d+=1)f!==this.keysIndex?v=this.effectsSequence[d](v,v.t):v=this.effectsSequence[d](this.currentData,v.t);u!==v&&this.setCurrentData(v),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var c=this.data.d.k,u=this.elem.comp.renderedFrame,f=0,d=c.length;f<=d-1&&!(f===d-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,d=c.length,h,v,p=!1,m=!1,g="";f<d;)p=m,m=!1,h=c.charCodeAt(f),g=c.charAt(f),FontManager.isCombinedCharacter(h)?p=!0:h>=55296&&h<=56319?FontManager.isRegionalFlag(c,f)?g=c.substr(f,14):(v=c.charCodeAt(f+1),v>=56320&&v<=57343&&(FontManager.isModifier(h,v)?(g=c.substr(f,2),p=!0):FontManager.isFlagEmoji(c.substr(f,4))?g=c.substr(f,4):g=c.substr(f,2))):h>56319?(v=c.charCodeAt(f+1),FontManager.isVariationSelector(h)&&(p=!0)):FontManager.isZeroWidthJoiner(h)&&(p=!0,m=!0),p?(u[u.length-1]+=g,p=!1):u.push(g),f+=g.length;return u},TextProperty.prototype.completeTextData=function(c){c.__complete=!0;var u=this.elem.globalData.fontManager,f=this.data,d=[],h,v,p,m=0,g,y=f.m.g,b=0,gn=0,x=0,re=[],w=0,J=0,Fn,Bn,j=u.getFontByName(c.f),vn,Pn=0,Rn=getFontProperties(j);c.fWeight=Rn.weight,c.fStyle=Rn.style,c.finalSize=c.s,c.finalText=this.buildFinalText(c.t),v=c.finalText.length,c.finalLineHeight=c.lh;var zn=c.tr/1e3*c.finalSize,Un;if(c.sz)for(var qn=!0,Qn=c.sz[0],Jn=c.sz[1],Zn,Xn;qn;){Xn=this.buildFinalText(c.t),Zn=0,w=0,v=Xn.length,zn=c.tr/1e3*c.finalSize;var nr=-1;for(h=0;h<v;h+=1)Un=Xn[h].charCodeAt(0),p=!1,Xn[h]===" "?nr=h:(Un===13||Un===3)&&(w=0,p=!0,Zn+=c.finalLineHeight||c.finalSize*1.2),u.chars?(vn=u.getCharData(Xn[h],j.fStyle,j.fFamily),Pn=p?0:vn.w*c.finalSize/100):Pn=u.measureText(Xn[h],c.f,c.finalSize),w+Pn>Qn&&Xn[h]!==" "?(nr===-1?v+=1:h=nr,Zn+=c.finalLineHeight||c.finalSize*1.2,Xn.splice(h,nr===h?1:0,"\r"),nr=-1,w=0):(w+=Pn,w+=zn);Zn+=j.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&Jn<Zn?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Xn,v=c.finalText.length,qn=!1)}w=-zn,Pn=0;var sr=0,ur;for(h=0;h<v;h+=1)if(p=!1,ur=c.finalText[h],Un=ur.charCodeAt(0),Un===13||Un===3?(sr=0,re.push(w),J=w>J?w:J,w=-2*zn,g="",p=!0,x+=1):g=ur,u.chars?(vn=u.getCharData(ur,j.fStyle,u.getFontByName(c.f).fFamily),Pn=p?0:vn.w*c.finalSize/100):Pn=u.measureText(g,c.f,c.finalSize),ur===" "?sr+=Pn+zn:(w+=Pn+zn+sr,sr=0),d.push({l:Pn,an:Pn,add:b,n:p,anIndexes:[],val:g,line:x,animatorJustifyOffset:0}),y==2){if(b+=Pn,g===""||g===" "||h===v-1){for((g===""||g===" ")&&(b-=Pn);gn<=h;)d[gn].an=b,d[gn].ind=m,d[gn].extra=Pn,gn+=1;m+=1,b=0}}else if(y==3){if(b+=Pn,g===""||h===v-1){for(g===""&&(b-=Pn);gn<=h;)d[gn].an=b,d[gn].ind=m,d[gn].extra=Pn,gn+=1;b=0,m+=1}}else d[m].ind=m,d[m].extra=0,m+=1;if(c.l=d,J=w>J?w:J,re.push(w),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=J,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0}c.lineWidths=re;var Hn=f.a,Kn,Vn;Bn=Hn.length;var Gn,er,Wn=[];for(Fn=0;Fn<Bn;Fn+=1){for(Kn=Hn[Fn],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),er=0,Gn=Kn.s.b,h=0;h<v;h+=1)Vn=d[h],Vn.anIndexes[Fn]=er,(Gn==1&&Vn.val!==""||Gn==2&&Vn.val!==""&&Vn.val!==" "||Gn==3&&(Vn.n||Vn.val==" "||h==v-1)||Gn==4&&(Vn.n||h==v-1))&&(Kn.s.rn===1&&Wn.push(er),er+=1);f.a[Fn].s.totalChars=er;var or=-1,cr;if(Kn.s.rn===1)for(h=0;h<v;h+=1)Vn=d[h],or!=Vn.anIndexes[Fn]&&(or=Vn.anIndexes[Fn],cr=Wn.splice(Math.floor(Math.random()*Wn.length),1)[0]),Vn.anIndexes[Fn]=cr}c.yOffset=c.finalLineHeight||c.finalSize*1.2,c.ls=c.ls||0,c.ascent=j.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 d(v,p){this._currentTextLength=-1,this.k=!1,this.data=p,this.elem=v,this.comp=v.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(v),this.s=PropertyFactory.getProp(v,p.s||{k:0},0,0,this),"e"in p?this.e=PropertyFactory.getProp(v,p.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(v,p.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(v,p.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(v,p.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(v,p.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(v,p.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(p){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var m=0,g=0,y=1,b=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:b=1+this.xe.v/100;var gn=BezierFactory.getBezierEasing(m,g,y,b).get,x=0,re=this.finalS,w=this.finalE,J=this.data.sh;if(J===2)w===re?x=p>=w?1:0:x=c(0,u(.5/(w-re)+(p-re)/(w-re),1)),x=gn(x);else if(J===3)w===re?x=p>=w?0:1:x=1-c(0,u(.5/(w-re)+(p-re)/(w-re),1)),x=gn(x);else if(J===4)w===re?x=0:(x=c(0,u(.5/(w-re)+(p-re)/(w-re),1)),x<.5?x*=2:x=1-2*(x-.5)),x=gn(x);else if(J===5){if(w===re)x=0;else{var Fn=w-re;p=u(c(0,p+.5-re),w-re);var Bn=-Fn/2+p,j=Fn/2;x=Math.sqrt(1-Bn*Bn/(j*j))}x=gn(x)}else J===6?(w===re?x=0:(p=u(c(0,p+.5-re),w-re),x=(1+Math.cos(Math.PI+Math.PI*2*p/(w-re)))/2),x=gn(x)):(p>=f(re)&&(p-re<0?x=c(0,u(u(w,1)-(re-p),1)):x=c(0,u(w-p,1))),x=gn(x));if(this.sm.v!==100){var vn=this.sm.v*.01;vn===0&&(vn=1e-8);var Pn=.5-vn*.5;x<Pn?x=0:(x=(x-Pn)/vn,x>1&&(x=1))}return x*this.a.v},getValue:function(p){this.iterateDynamicProperties(),this._mdf=p||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,p&&this.data.r===2&&(this.e.v=this._currentTextLength);var m=this.data.r===2?1:100/this.data.totalChars,g=this.o.v/m,y=this.s.v/m+g,b=this.e.v/m+g;if(y>b){var gn=y;y=b,b=gn}this.finalS=y,this.finalE=b}},extendPrototype([DynamicPropertyContainer],d);function h(v,p,m){return new d(v,p)}return{getTextSelectorProp:h}}();function TextAnimatorDataProperty(c,u,f){var d={propType:!1},h=PropertyFactory.getProp,v=u.a;this.a={r:v.r?h(c,v.r,0,degToRads,f):d,rx:v.rx?h(c,v.rx,0,degToRads,f):d,ry:v.ry?h(c,v.ry,0,degToRads,f):d,sk:v.sk?h(c,v.sk,0,degToRads,f):d,sa:v.sa?h(c,v.sa,0,degToRads,f):d,s:v.s?h(c,v.s,1,.01,f):d,a:v.a?h(c,v.a,1,0,f):d,o:v.o?h(c,v.o,0,.01,f):d,p:v.p?h(c,v.p,1,0,f):d,sw:v.sw?h(c,v.sw,0,0,f):d,sc:v.sc?h(c,v.sc,1,0,f):d,fc:v.fc?h(c,v.fc,1,0,f):d,fh:v.fh?h(c,v.fh,0,0,f):d,fs:v.fs?h(c,v.fs,0,.01,f):d,fb:v.fb?h(c,v.fb,0,.01,f):d,t:v.t?h(c,v.t,0,0,f):d},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,d=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:d(this._elem,this._textData.p.a,0,0,this),f:d(this._elem,this._textData.p.f,0,0,this),l:d(this._elem,this._textData.p.l,0,0,this),r:d(this._elem,this._textData.p.r,0,0,this),p:d(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=d(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,d=this._animatorsData,h=this._textData,v=this.mHelper,p=this._renderType,m=this.renderedLetters.length,g,y,b,gn,x=c.l,re,w,J,Fn,Bn,j,vn,Pn,Rn,zn,Un,qn,Qn,Jn,Zn;if(this._hasMaskedPath){if(Zn=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Xn=Zn.v;this._pathData.r.v&&(Xn=Xn.reverse()),re={tLength:0,segments:[]},gn=Xn._length-1;var nr;for(qn=0,b=0;b<gn;b+=1)nr=bez.buildBezierData(Xn.v[b],Xn.v[b+1],[Xn.o[b][0]-Xn.v[b][0],Xn.o[b][1]-Xn.v[b][1]],[Xn.i[b+1][0]-Xn.v[b+1][0],Xn.i[b+1][1]-Xn.v[b+1][1]]),re.tLength+=nr.segmentLength,re.segments.push(nr),qn+=nr.segmentLength;b=gn,Zn.v.c&&(nr=bez.buildBezierData(Xn.v[b],Xn.v[0],[Xn.o[b][0]-Xn.v[b][0],Xn.o[b][1]-Xn.v[b][1]],[Xn.i[0][0]-Xn.v[0][0],Xn.i[0][1]-Xn.v[0][1]]),re.tLength+=nr.segmentLength,re.segments.push(nr),qn+=nr.segmentLength),this._pathData.pi=re}if(re=this._pathData.pi,w=this._pathData.f.v,vn=0,j=1,Fn=0,Bn=!0,zn=re.segments,w<0&&Zn.v.c)for(re.tLength<Math.abs(w)&&(w=-Math.abs(w)%re.tLength),vn=zn.length-1,Rn=zn[vn].points,j=Rn.length-1;w<0;)w+=Rn[j].partialLength,j-=1,j<0&&(vn-=1,Rn=zn[vn].points,j=Rn.length-1);Rn=zn[vn].points,Pn=Rn[j-1],J=Rn[j],Un=J.partialLength}gn=x.length,g=0,y=0;var sr=c.finalSize*1.2*.714,ur=!0,Hn,Kn,Vn,Gn,er;Gn=d.length;var Wn,or=-1,cr,ar,tr,pr=w,Yn=vn,ir=j,lr=-1,vr,dr,yr,fr,mr,xr,Cr,br,hr="",gr=this.defaultPropsArray,Er;if(c.j===2||c.j===1){var wr=0,_r=0,Rr=c.j===2?-.5:-1,Mr=0,Dr=!0;for(b=0;b<gn;b+=1)if(x[b].n){for(wr&&(wr+=_r);Mr<b;)x[Mr].animatorJustifyOffset=wr,Mr+=1;wr=0,Dr=!0}else{for(Vn=0;Vn<Gn;Vn+=1)Hn=d[Vn].a,Hn.t.propType&&(Dr&&c.j===2&&(_r+=Hn.t.v*Rr),Kn=d[Vn].s,Wn=Kn.getMult(x[b].anIndexes[Vn],h.a[Vn].s.totalChars),Wn.length?wr+=Hn.t.v*Wn[0]*Rr:wr+=Hn.t.v*Wn*Rr);Dr=!1}for(wr&&(wr+=_r);Mr<b;)x[Mr].animatorJustifyOffset=wr,Mr+=1}for(b=0;b<gn;b+=1){if(v.reset(),vr=1,x[b].n)g=0,y+=c.yOffset,y+=ur?1:0,w=pr,ur=!1,this._hasMaskedPath&&(vn=Yn,j=ir,Rn=zn[vn].points,Pn=Rn[j-1],J=Rn[j],Un=J.partialLength,Fn=0),hr="",br="",xr="",Er="",gr=this.defaultPropsArray;else{if(this._hasMaskedPath){if(lr!==x[b].line){switch(c.j){case 1:w+=qn-c.lineWidths[x[b].line];break;case 2:w+=(qn-c.lineWidths[x[b].line])/2;break}lr=x[b].line}or!==x[b].ind&&(x[or]&&(w+=x[or].extra),w+=x[b].an/2,or=x[b].ind),w+=f[0]*x[b].an*.005;var Br=0;for(Vn=0;Vn<Gn;Vn+=1)Hn=d[Vn].a,Hn.p.propType&&(Kn=d[Vn].s,Wn=Kn.getMult(x[b].anIndexes[Vn],h.a[Vn].s.totalChars),Wn.length?Br+=Hn.p.v[0]*Wn[0]:Br+=Hn.p.v[0]*Wn),Hn.a.propType&&(Kn=d[Vn].s,Wn=Kn.getMult(x[b].anIndexes[Vn],h.a[Vn].s.totalChars),Wn.length?Br+=Hn.a.v[0]*Wn[0]:Br+=Hn.a.v[0]*Wn);for(Bn=!0,this._pathData.a.v&&(w=x[0].an*.5+(qn-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*or/(gn-1),w+=this._pathData.f.v);Bn;)Fn+Un>=w+Br||!Rn?(Qn=(w+Br-Fn)/J.partialLength,ar=Pn.point[0]+(J.point[0]-Pn.point[0])*Qn,tr=Pn.point[1]+(J.point[1]-Pn.point[1])*Qn,v.translate(-f[0]*x[b].an*.005,-(f[1]*sr)*.01),Bn=!1):Rn&&(Fn+=J.partialLength,j+=1,j>=Rn.length&&(j=0,vn+=1,zn[vn]?Rn=zn[vn].points:Zn.v.c?(j=0,vn=0,Rn=zn[vn].points):(Fn-=J.partialLength,Rn=null)),Rn&&(Pn=J,J=Rn[j],Un=J.partialLength));cr=x[b].an/2-x[b].add,v.translate(-cr,0,0)}else cr=x[b].an/2-x[b].add,v.translate(-cr,0,0),v.translate(-f[0]*x[b].an*.005,-f[1]*sr*.01,0);for(Vn=0;Vn<Gn;Vn+=1)Hn=d[Vn].a,Hn.t.propType&&(Kn=d[Vn].s,Wn=Kn.getMult(x[b].anIndexes[Vn],h.a[Vn].s.totalChars),(g!==0||c.j!==0)&&(this._hasMaskedPath?Wn.length?w+=Hn.t.v*Wn[0]:w+=Hn.t.v*Wn:Wn.length?g+=Hn.t.v*Wn[0]:g+=Hn.t.v*Wn));for(c.strokeWidthAnim&&(yr=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&&(fr=[c.fc[0],c.fc[1],c.fc[2]]),Vn=0;Vn<Gn;Vn+=1)Hn=d[Vn].a,Hn.a.propType&&(Kn=d[Vn].s,Wn=Kn.getMult(x[b].anIndexes[Vn],h.a[Vn].s.totalChars),Wn.length?v.translate(-Hn.a.v[0]*Wn[0],-Hn.a.v[1]*Wn[1],Hn.a.v[2]*Wn[2]):v.translate(-Hn.a.v[0]*Wn,-Hn.a.v[1]*Wn,Hn.a.v[2]*Wn));for(Vn=0;Vn<Gn;Vn+=1)Hn=d[Vn].a,Hn.s.propType&&(Kn=d[Vn].s,Wn=Kn.getMult(x[b].anIndexes[Vn],h.a[Vn].s.totalChars),Wn.length?v.scale(1+(Hn.s.v[0]-1)*Wn[0],1+(Hn.s.v[1]-1)*Wn[1],1):v.scale(1+(Hn.s.v[0]-1)*Wn,1+(Hn.s.v[1]-1)*Wn,1));for(Vn=0;Vn<Gn;Vn+=1){if(Hn=d[Vn].a,Kn=d[Vn].s,Wn=Kn.getMult(x[b].anIndexes[Vn],h.a[Vn].s.totalChars),Hn.sk.propType&&(Wn.length?v.skewFromAxis(-Hn.sk.v*Wn[0],Hn.sa.v*Wn[1]):v.skewFromAxis(-Hn.sk.v*Wn,Hn.sa.v*Wn)),Hn.r.propType&&(Wn.length?v.rotateZ(-Hn.r.v*Wn[2]):v.rotateZ(-Hn.r.v*Wn)),Hn.ry.propType&&(Wn.length?v.rotateY(Hn.ry.v*Wn[1]):v.rotateY(Hn.ry.v*Wn)),Hn.rx.propType&&(Wn.length?v.rotateX(Hn.rx.v*Wn[0]):v.rotateX(Hn.rx.v*Wn)),Hn.o.propType&&(Wn.length?vr+=(Hn.o.v*Wn[0]-vr)*Wn[0]:vr+=(Hn.o.v*Wn-vr)*Wn),c.strokeWidthAnim&&Hn.sw.propType&&(Wn.length?yr+=Hn.sw.v*Wn[0]:yr+=Hn.sw.v*Wn),c.strokeColorAnim&&Hn.sc.propType)for(mr=0;mr<3;mr+=1)Wn.length?dr[mr]+=(Hn.sc.v[mr]-dr[mr])*Wn[0]:dr[mr]+=(Hn.sc.v[mr]-dr[mr])*Wn;if(c.fillColorAnim&&c.fc){if(Hn.fc.propType)for(mr=0;mr<3;mr+=1)Wn.length?fr[mr]+=(Hn.fc.v[mr]-fr[mr])*Wn[0]:fr[mr]+=(Hn.fc.v[mr]-fr[mr])*Wn;Hn.fh.propType&&(Wn.length?fr=addHueToRGB(fr,Hn.fh.v*Wn[0]):fr=addHueToRGB(fr,Hn.fh.v*Wn)),Hn.fs.propType&&(Wn.length?fr=addSaturationToRGB(fr,Hn.fs.v*Wn[0]):fr=addSaturationToRGB(fr,Hn.fs.v*Wn)),Hn.fb.propType&&(Wn.length?fr=addBrightnessToRGB(fr,Hn.fb.v*Wn[0]):fr=addBrightnessToRGB(fr,Hn.fb.v*Wn))}}for(Vn=0;Vn<Gn;Vn+=1)Hn=d[Vn].a,Hn.p.propType&&(Kn=d[Vn].s,Wn=Kn.getMult(x[b].anIndexes[Vn],h.a[Vn].s.totalChars),this._hasMaskedPath?Wn.length?v.translate(0,Hn.p.v[1]*Wn[0],-Hn.p.v[2]*Wn[1]):v.translate(0,Hn.p.v[1]*Wn,-Hn.p.v[2]*Wn):Wn.length?v.translate(Hn.p.v[0]*Wn[0],Hn.p.v[1]*Wn[1],-Hn.p.v[2]*Wn[2]):v.translate(Hn.p.v[0]*Wn,Hn.p.v[1]*Wn,-Hn.p.v[2]*Wn));if(c.strokeWidthAnim&&(xr=yr<0?0:yr),c.strokeColorAnim&&(Cr="rgb("+Math.round(dr[0]*255)+","+Math.round(dr[1]*255)+","+Math.round(dr[2]*255)+")"),c.fillColorAnim&&c.fc&&(br="rgb("+Math.round(fr[0]*255)+","+Math.round(fr[1]*255)+","+Math.round(fr[2]*255)+")"),this._hasMaskedPath){if(v.translate(0,-c.ls),v.translate(0,f[1]*sr*.01+y,0),this._pathData.p.v){Jn=(J.point[1]-Pn.point[1])/(J.point[0]-Pn.point[0]);var Vr=Math.atan(Jn)*180/Math.PI;J.point[0]<Pn.point[0]&&(Vr+=180),v.rotate(-Vr*Math.PI/180)}v.translate(ar,tr,0),w-=f[0]*x[b].an*.005,x[b+1]&&or!==x[b+1].ind&&(w+=x[b].an/2,w+=c.tr*.001*c.finalSize)}else{switch(v.translate(g,y,0),c.ps&&v.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:v.translate(x[b].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[x[b].line]),0,0);break;case 2:v.translate(x[b].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[x[b].line])/2,0,0);break}v.translate(0,-c.ls),v.translate(cr,0,0),v.translate(f[0]*x[b].an*.005,f[1]*sr*.01,0),g+=x[b].l+c.tr*.001*c.finalSize}p==="html"?hr=v.toCSS():p==="svg"?hr=v.to2dCSS():gr=[v.props[0],v.props[1],v.props[2],v.props[3],v.props[4],v.props[5],v.props[6],v.props[7],v.props[8],v.props[9],v.props[10],v.props[11],v.props[12],v.props[13],v.props[14],v.props[15]],Er=vr}m<=b?(er=new LetterProps(Er,xr,Cr,br,hr,gr),this.renderedLetters.push(er),m+=1,this.lettersChangedFlag=!0):(er=this.renderedLetters[b],this.lettersChangedFlag=er.update(Er,xr,Cr,br,hr,gr)||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,d=u.length,h,v="";for(f=0;f<d;f+=1)u[f].ty==="sh"&&(h=u[f].ks.k,v+=buildShapeString(h,h.i.length,!0,c));return v},ITextElement.prototype.updateDocumentData=function(c,u){this.textProperty.updateDocumentData(c,u)},ITextElement.prototype.canResizeFont=function(c){this.textProperty.canResizeFont(c)},ITextElement.prototype.setMinimumFontSize=function(c){this.textProperty.setMinimumFontSize(c)},ITextElement.prototype.applyTextPropertiesToMatrix=function(c,u,f,d,h){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(d,h,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,d=[],h="";u<f;)c[u]===String.fromCharCode(13)||c[u]===String.fromCharCode(3)?(d.push(h),h=""):h+=c[u],u+=1;return d.push(h),d},SVGTextLottieElement.prototype.buildShapeData=function(c,u){if(c.shapes&&c.shapes.length){var f=c.shapes[0];if(f.it){var d=f.it[f.it.length-1];d.s&&(d.s.k[0]=u,d.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 d=this.globalData.fontManager.getFontByName(f.f);if(d.fClass)this.layerElement.setAttribute("class",d.fClass);else{this.layerElement.setAttribute("font-family",d.fFamily);var h=f.fWeight,v=f.fStyle;this.layerElement.setAttribute("font-style",v),this.layerElement.setAttribute("font-weight",h)}this.layerElement.setAttribute("aria-label",f.t);var p=f.l||[],m=!!this.globalData.fontManager.chars;u=p.length;var g,y=this.mHelper,b="",gn=this.data.singleShape,x=0,re=0,w=!0,J=f.tr*.001*f.finalSize;if(gn&&!m&&!f.sz){var Fn=this.textContainer,Bn="start";switch(f.j){case 1:Bn="end";break;case 2:Bn="middle";break;default:Bn="start";break}Fn.setAttribute("text-anchor",Bn),Fn.setAttribute("letter-spacing",J);var j=this.buildTextContents(f.finalText);for(u=j.length,re=f.ps?f.ps[1]+f.ascent:0,c=0;c<u;c+=1)g=this.textSpans[c].span||createNS("tspan"),g.textContent=j[c],g.setAttribute("x",0),g.setAttribute("y",re),g.style.display="inherit",Fn.appendChild(g),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=g,re+=f.finalLineHeight;this.layerElement.appendChild(Fn)}else{var vn=this.textSpans.length,Pn;for(c=0;c<u;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!m||!gn||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 Rn=createNS("g");g.appendChild(Rn),this.textSpans[c].childSpan=Rn}this.textSpans[c].span=g,this.layerElement.appendChild(g)}g.style.display="inherit"}if(y.reset(),gn&&(p[c].n&&(x=-J,re+=f.yOffset,re+=w?1:0,w=!1),this.applyTextPropertiesToMatrix(f,y,p[c].line,x,re),x+=p[c].l||0,x+=J),m){Pn=this.globalData.fontManager.getCharData(f.finalText[c],d.fStyle,this.globalData.fontManager.getFontByName(f.f).fFamily);var zn;if(Pn.t===1)zn=new SVGCompElement(Pn.data,this.globalData,this);else{var Un=emptyShapeData;Pn.data&&Pn.data.shapes&&(Un=this.buildShapeData(Pn.data,f.finalSize)),zn=new SVGShapeElement(Un,this.globalData,this)}if(this.textSpans[c].glyph){var qn=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(qn.layerElement),qn.destroy()}this.textSpans[c].glyph=zn,zn._debug=!0,zn.prepareFrame(0),zn.renderFrame(),this.textSpans[c].childSpan.appendChild(zn.layerElement),Pn.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+f.finalSize/100+","+f.finalSize/100+")")}else gn&&g.setAttribute("transform","translate("+y.props[12]+","+y.props[13]+")"),g.textContent=p[c].val,g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}gn&&g&&g.setAttribute("d",b)}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,d=this.textProperty.currentData.l;u=d.length;var h,v,p;for(c=0;c<u;c+=1)d[c].n||(h=f[c],v=this.textSpans[c].span,p=this.textSpans[c].glyph,p&&p.renderFrame(),h._mdf.m&&v.setAttribute("transform",h.m),h._mdf.o&&v.setAttribute("opacity",h.o),h._mdf.sw&&v.setAttribute("stroke-width",h.sw),h._mdf.sc&&v.setAttribute("stroke",h.sc),h._mdf.fc&&v.setAttribute("fill",h.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"),d=createNS("rect");d.setAttribute("width",c.w),d.setAttribute("height",c.h),d.setAttribute("x",0),d.setAttribute("y",0);var h=createElementID();f.setAttribute("id",h),f.appendChild(d),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+h+")"),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 d="tp"in this.layers[c]?this.findIndexByInd(this.layers[c].tp):c-1;if(d===-1)return;if(!this.elements[d]||this.elements[d]===!0)this.buildItem(d),this.addPendingElement(f);else{var h=u[d],v=h.getMatte(this.layers[c].tt);f.setMatte(v)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();if(c.checkParenting(),c.data.tt)for(var u=0,f=this.elements.length;u<f;){if(this.elements[u]===c){var d="tp"in c.data?this.findIndexByInd(c.data.tp):u-1,h=this.elements[d],v=h.getMatte(this.layers[u].tt);c.setMatte(v);break}u+=1}}},SVGRendererBase.prototype.renderFrame=function(c){if(!(this.renderedFrame===c||this.destroyed)){c===null?c=this.renderedFrame:this.renderedFrame=c,this.globalData.frameNum=c,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=c,this.globalData._mdf=!1;var u,f=this.layers.length;for(this.completeLayers||this.checkLayers(c),u=f-1;u>=0;u-=1)(this.completeLayers||this.elements[u])&&this.elements[u].prepareFrame(c-this.layers[u].st);if(this.globalData._mdf)for(u=0;u<f;u+=1)(this.completeLayers||this.elements[u])&&this.elements[u].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(c,u){var f=c.getBaseElement();if(f){for(var d=0,h;d<u;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement()&&(h=this.elements[d].getBaseElement()),d+=1;h?this.layerElement.insertBefore(f,h):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,d=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),f=d-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 d=createNS("title"),h=createElementID();d.setAttribute("id",h),d.textContent=u.title,this.svgElement.appendChild(d),f+=h}if(u&&u.description){var v=createNS("desc"),p=createElementID();v.setAttribute("id",p),v.textContent=u.description,this.svgElement.appendChild(v),f+=" "+p}f&&this.svgElement.setAttribute("aria-labelledby",f);var m=createNS("defs");this.svgElement.appendChild(m);var g=createNS("g");this.svgElement.appendChild(g),this.layerElement=g,this.renderConfig={preserveAspectRatio:u&&u.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:u&&u.contentVisibility||"visible",progressiveLoad:u&&u.progressiveLoad||!1,hideOnTransparent:!(u&&u.hideOnTransparent===!1),viewBoxOnly:u&&u.viewBoxOnly||!1,viewBoxSize:u&&u.viewBoxSize||!1,className:u&&u.className||"",id:u&&u.id||"",focusable:u&&u.focusable,filterSize:{width:u&&u.filterSize&&u.filterSize.width||"100%",height:u&&u.filterSize&&u.filterSize.height||"100%",x:u&&u.filterSize&&u.filterSize.x||"0%",y:u&&u.filterSize&&u.filterSize.y||"0%"},width:u&&u.width,height:u&&u.height,runExpressions:!u||u.runExpressions===void 0||u.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:m,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(c){return new SVGCompElement(c,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(u){var f,d=u.length,h="_";for(f=0;f<d;f+=1)h+=u[f].transform.key+"_";var v=this.sequences[h];return v||(v={transforms:[].concat(u),finalTransform:new Matrix,_mdf:!1},this.sequences[h]=v,this.sequenceList.push(v)),v},processSequence:function(u,f){for(var d=0,h=u.transforms.length,v=f;d<h&&!f;){if(u.transforms[d].transform.mProps._mdf){v=!0;break}d+=1}if(v)for(u.finalTransform.reset(),d=h-1;d>=0;d-=1)u.finalTransform.multiply(u.transforms[d].transform.mProps.v);u._mdf=v},processSequences:function(u){var f,d=this.sequenceList.length;for(f=0;f<d;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,d=null,h=null;function v(){var g=createNS("svg"),y=createNS("filter"),b=createNS("feColorMatrix");return y.setAttribute("id",u),b.setAttribute("type","matrix"),b.setAttribute("color-interpolation-filters","sRGB"),b.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(b),g.appendChild(y),g.setAttribute("id",u+"_svg"),featureSupport.svgLumaHidden&&(g.style.display="none"),g}function p(){f||(h=v(),document.body.appendChild(h),f=createTag("canvas"),d=f.getContext("2d"),d.filter="url(#"+u+")",d.fillStyle="rgba(0,0,0,0)",d.fillRect(0,0,1,1))}function m(g){return f||p(),f.width=g.width,f.height=g.height,d.filter="url(#"+u+")",f}return{load:p,get:m}};function createCanvas(c,u){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(c,u);var f=createTag("canvas");return f.width=c,f.height=u,f}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(c){var u,f=c.data.ef?c.data.ef.length:0;this.filters=[];var d;for(u=0;u<f;u+=1){d=null;var h=c.data.ef[u].ty;if(registeredEffects[h]){var v=registeredEffects[h].effect;d=new v(c.effectsManager.effectElements[u],c)}d&&this.filters.push(d)}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,d=[];for(u=0;u<f;u+=1)this.filters[u].type===c&&d.push(this.filters[u]);return d};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,d=this.masksProperties.length,h=!1;for(f=0;f<d;f+=1)this.masksProperties[f].mode!=="n"&&(h=!0),this.viewData[f]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[f],3);this.hasMasks=h,h&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var c=this.element.finalTransform.mat,u=this.element.canvasContext,f,d=this.masksProperties.length,h,v,p;for(u.beginPath(),f=0;f<d;f+=1)if(this.masksProperties[f].mode!=="n"){this.masksProperties[f].inv&&(u.moveTo(0,0),u.lineTo(this.element.globalData.compSize.w,0),u.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),u.lineTo(0,this.element.globalData.compSize.h),u.lineTo(0,0)),p=this.viewData[f].v,h=c.applyToPointArray(p.v[0][0],p.v[0][1],0),u.moveTo(h[0],h[1]);var m,g=p._length;for(m=1;m<g;m+=1)v=c.applyToTriplePoints(p.o[m-1],p.i[m],p.v[m]),u.bezierCurveTo(v[0],v[1],v[2],v[3],v[4],v[5]);v=c.applyToTriplePoints(p.o[m-1],p.i[0],p.v[0]),u.bezierCurveTo(v[0],v[1],v[2],v[3],v[4],v[5])}this.element.globalData.renderer.save(!0),u.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var u=this.globalData.canvasContext,f=assetLoader.createCanvas(u.canvas.width,u.canvas.height);this.buffers.push(f);var d=assetLoader.createCanvas(u.canvas.width,u.canvas.height);this.buffers.push(d),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 d=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(d.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var h=assetLoader.getLumaCanvas(this.canvasContext.canvas),v=h.getContext("2d");v.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(h,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,d){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var h=4;u.ty==="rc"?h=5:u.ty==="el"?h=6:u.ty==="sr"&&(h=7),this.sh=ShapePropertyFactory.getShapeProp(c,u,h,c);var v,p=f.length,m;for(v=0;v<p;v+=1)f[v].closed||(m={transforms:d.addTransformSequence(f[v].transforms),trNodes:[]},this.styledShapes.push(m),f[v].elements.push(m))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(c,u,f){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(c,u){var f={data:c,type:c.ty,preTransforms:this.transformsManager.addTransformSequence(u),transforms:[],elements:[],closed:c.hd===!0},d={};if(c.ty==="fl"||c.ty==="st"?(d.c=PropertyFactory.getProp(this,c.c,1,255,this),d.c.k||(f.co="rgb("+bmFloor(d.c.v[0])+","+bmFloor(d.c.v[1])+","+bmFloor(d.c.v[2])+")")):(c.ty==="gf"||c.ty==="gs")&&(d.s=PropertyFactory.getProp(this,c.s,1,null,this),d.e=PropertyFactory.getProp(this,c.e,1,null,this),d.h=PropertyFactory.getProp(this,c.h||{k:0},0,.01,this),d.a=PropertyFactory.getProp(this,c.a||{k:0},0,degToRads,this),d.g=new GradientProperty(this,c.g,this)),d.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),d.w=PropertyFactory.getProp(this,c.w,0,null,this),d.w.k||(f.wi=d.w.v),c.d){var h=new DashProperty(this,c.d,"canvas",this);d.d=h,d.d.k||(f.da=d.d.dashArray,f.do=d.d.dashoffset[0])}}else f.r=c.r===2?"evenodd":"nonzero";return this.stylesList.push(f),d.style=f,d},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,d,h){var v,p=c.length-1,m,g,y=[],b=[],gn,x,re,w=[].concat(h);for(v=p;v>=0;v-=1){if(gn=this.searchProcessedElement(c[v]),gn?u[v]=f[gn-1]:c[v]._shouldRender=d,c[v].ty==="fl"||c[v].ty==="st"||c[v].ty==="gf"||c[v].ty==="gs")gn?u[v].style.closed=!1:u[v]=this.createStyleElement(c[v],w),y.push(u[v].style);else if(c[v].ty==="gr"){if(!gn)u[v]=this.createGroupElement(c[v]);else for(g=u[v].it.length,m=0;m<g;m+=1)u[v].prevViewData[m]=u[v].it[m];this.searchShapes(c[v].it,u[v].it,u[v].prevViewData,d,w)}else c[v].ty==="tr"?(gn||(re=this.createTransformElement(c[v]),u[v]=re),w.push(u[v]),this.addTransformToStyleList(u[v])):c[v].ty==="sh"||c[v].ty==="rc"||c[v].ty==="el"||c[v].ty==="sr"?gn||(u[v]=this.createShapeElement(c[v])):c[v].ty==="tm"||c[v].ty==="rd"||c[v].ty==="pb"||c[v].ty==="zz"||c[v].ty==="op"?(gn?(x=u[v],x.closed=!1):(x=ShapeModifiers.getModifier(c[v].ty),x.init(this,c[v]),u[v]=x,this.shapeModifiers.push(x)),b.push(x)):c[v].ty==="rp"&&(gn?(x=u[v],x.closed=!0):(x=ShapeModifiers.getModifier(c[v].ty),u[v]=x,x.init(this,c,v,u),this.shapeModifiers.push(x),d=!1),b.push(x));this.addProcessedElement(c[v],v+1)}for(this.removeTransformFromStyleList(),this.closeStyles(y),p=b.length,v=0;v<p;v+=1)b[v].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(c,u){(c._opMdf||u.op._mdf||this._isFirstFrame)&&(u.opacity=c.opacity,u.opacity*=u.op.v,u._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var c,u=this.stylesList.length,f,d,h,v,p,m,g=this.globalData.renderer,y=this.globalData.canvasContext,b,gn;for(c=0;c<u;c+=1)if(gn=this.stylesList[c],b=gn.type,!((b==="st"||b==="gs")&&gn.wi===0||!gn.data._shouldRender||gn.coOp===0||this.globalData.currentGlobalAlpha===0)){for(g.save(),p=gn.elements,b==="st"||b==="gs"?(g.ctxStrokeStyle(b==="st"?gn.co:gn.grd),g.ctxLineWidth(gn.wi),g.ctxLineCap(gn.lc),g.ctxLineJoin(gn.lj),g.ctxMiterLimit(gn.ml||0)):g.ctxFillStyle(b==="fl"?gn.co:gn.grd),g.ctxOpacity(gn.coOp),b!=="st"&&b!=="gs"&&y.beginPath(),g.ctxTransform(gn.preTransforms.finalTransform.props),d=p.length,f=0;f<d;f+=1){for((b==="st"||b==="gs")&&(y.beginPath(),gn.da&&(y.setLineDash(gn.da),y.lineDashOffset=gn.do)),m=p[f].trNodes,v=m.length,h=0;h<v;h+=1)m[h].t==="m"?y.moveTo(m[h].p[0],m[h].p[1]):m[h].t==="c"?y.bezierCurveTo(m[h].pts[0],m[h].pts[1],m[h].pts[2],m[h].pts[3],m[h].pts[4],m[h].pts[5]):y.closePath();(b==="st"||b==="gs")&&(g.ctxStroke(),gn.da&&y.setLineDash(this.dashResetter))}b!=="st"&&b!=="gs"&&this.globalData.renderer.ctxFill(gn.r),g.restore()}},CVShapeElement.prototype.renderShape=function(c,u,f,d){var h,v=u.length-1,p;for(p=c,h=v;h>=0;h-=1)u[h].ty==="tr"?(p=f[h].transform,this.renderShapeTransform(c,p)):u[h].ty==="sh"||u[h].ty==="el"||u[h].ty==="rc"||u[h].ty==="sr"?this.renderPath(u[h],f[h]):u[h].ty==="fl"?this.renderFill(u[h],f[h],p):u[h].ty==="st"?this.renderStroke(u[h],f[h],p):u[h].ty==="gf"||u[h].ty==="gs"?this.renderGradientFill(u[h],f[h],p):u[h].ty==="gr"?this.renderShape(p,u[h].it,f[h].it):u[h].ty;d&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(c,u){if(this._isFirstFrame||u._mdf||c.transforms._mdf){var f=c.trNodes,d=u.paths,h,v,p,m=d._length;f.length=0;var g=c.transforms.finalTransform;for(p=0;p<m;p+=1){var y=d.shapes[p];if(y&&y.v){for(v=y._length,h=1;h<v;h+=1)h===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[h-1],y.i[h],y.v[h])});v===1&&f.push({t:"m",p:g.applyToPointArray(y.v[0][0],y.v[0][1],0)}),y.c&&v&&(f.push({t:"c",pts:g.applyToTriplePoints(y.o[h-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,d=u.styledShapes.length;for(f=0;f<d;f+=1)this.renderStyledShape(u.styledShapes[f],u.sh)}},CVShapeElement.prototype.renderFill=function(c,u,f){var d=u.style;(u.c._mdf||this._isFirstFrame)&&(d.co="rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||f._opMdf||this._isFirstFrame)&&(d.coOp=u.o.v*f.opacity)},CVShapeElement.prototype.renderGradientFill=function(c,u,f){var d=u.style,h;if(!d.grd||u.g._mdf||u.s._mdf||u.e._mdf||c.t!==1&&(u.h._mdf||u.a._mdf)){var v=this.globalData.canvasContext,p=u.s.v,m=u.e.v;if(c.t===1)h=v.createLinearGradient(p[0],p[1],m[0],m[1]);else{var g=Math.sqrt(Math.pow(p[0]-m[0],2)+Math.pow(p[1]-m[1],2)),y=Math.atan2(m[1]-p[1],m[0]-p[0]),b=u.h.v;b>=1?b=.99:b<=-1&&(b=-.99);var gn=g*b,x=Math.cos(y+u.a.v)*gn+p[0],re=Math.sin(y+u.a.v)*gn+p[1];h=v.createRadialGradient(x,re,0,p[0],p[1],g)}var w,J=c.g.p,Fn=u.g.c,Bn=1;for(w=0;w<J;w+=1)u.g._hasOpacity&&u.g._collapsable&&(Bn=u.g.o[w*2+1]),h.addColorStop(Fn[w*4]/100,"rgba("+Fn[w*4+1]+","+Fn[w*4+2]+","+Fn[w*4+3]+","+Bn+")");d.grd=h}d.coOp=u.o.v*f.opacity},CVShapeElement.prototype.renderStroke=function(c,u,f){var d=u.style,h=u.d;h&&(h._mdf||this._isFirstFrame)&&(d.da=h.dashArray,d.do=h.dashoffset[0]),(u.c._mdf||this._isFirstFrame)&&(d.co="rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||f._opMdf||this._isFirstFrame)&&(d.coOp=u.o.v*f.opacity),(u.w._mdf||this._isFirstFrame)&&(d.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 d=this.globalData.fontManager.getFontByName(c.f),h,v,p=c.l,m=this.mHelper;this.stroke=f,this.values.fValue=c.finalSize+"px "+this.globalData.fontManager.getFontByName(c.f).fFamily,v=c.finalText.length;var g,y,b,gn,x,re,w,J,Fn,Bn,j=this.data.singleShape,vn=c.tr*.001*c.finalSize,Pn=0,Rn=0,zn=!0,Un=0;for(h=0;h<v;h+=1){g=this.globalData.fontManager.getCharData(c.finalText[h],d.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily),y=g&&g.data||{},m.reset(),j&&p[h].n&&(Pn=-vn,Rn+=c.yOffset,Rn+=zn?1:0,zn=!1),x=y.shapes?y.shapes[0].it:[],w=x.length,m.scale(c.finalSize/100,c.finalSize/100),j&&this.applyTextPropertiesToMatrix(c,m,p[h].line,Pn,Rn),Fn=createSizedArray(w-1);var qn=0;for(re=0;re<w;re+=1)if(x[re].ty==="sh"){for(gn=x[re].ks.k.i.length,J=x[re].ks.k,Bn=[],b=1;b<gn;b+=1)b===1&&Bn.push(m.applyToX(J.v[0][0],J.v[0][1],0),m.applyToY(J.v[0][0],J.v[0][1],0)),Bn.push(m.applyToX(J.o[b-1][0],J.o[b-1][1],0),m.applyToY(J.o[b-1][0],J.o[b-1][1],0),m.applyToX(J.i[b][0],J.i[b][1],0),m.applyToY(J.i[b][0],J.i[b][1],0),m.applyToX(J.v[b][0],J.v[b][1],0),m.applyToY(J.v[b][0],J.v[b][1],0));Bn.push(m.applyToX(J.o[b-1][0],J.o[b-1][1],0),m.applyToY(J.o[b-1][0],J.o[b-1][1],0),m.applyToX(J.i[0][0],J.i[0][1],0),m.applyToY(J.i[0][0],J.i[0][1],0),m.applyToX(J.v[0][0],J.v[0][1],0),m.applyToY(J.v[0][0],J.v[0][1],0)),Fn[qn]=Bn,qn+=1}j&&(Pn+=p[h].l,Pn+=vn),this.textSpans[Un]?this.textSpans[Un].elem=Fn:this.textSpans[Un]={elem:Fn},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,d,h,v,p,m=this.textAnimator.renderedLetters,g=this.textProperty.currentData.l;f=g.length;var y,b=null,gn=null,x=null,re,w,J=this.globalData.renderer;for(u=0;u<f;u+=1)if(!g[u].n){if(y=m[u],y&&(J.save(),J.ctxTransform(y.p),J.ctxOpacity(y.o)),this.fill){for(y&&y.fc?b!==y.fc&&(J.ctxFillStyle(y.fc),b=y.fc):b!==this.values.fill&&(b=this.values.fill,J.ctxFillStyle(this.values.fill)),re=this.textSpans[u].elem,h=re.length,this.globalData.canvasContext.beginPath(),d=0;d<h;d+=1)for(w=re[d],p=w.length,this.globalData.canvasContext.moveTo(w[0],w[1]),v=2;v<p;v+=6)this.globalData.canvasContext.bezierCurveTo(w[v],w[v+1],w[v+2],w[v+3],w[v+4],w[v+5]);this.globalData.canvasContext.closePath(),J.ctxFill()}if(this.stroke){for(y&&y.sw?x!==y.sw&&(x=y.sw,J.ctxLineWidth(y.sw)):x!==this.values.sWidth&&(x=this.values.sWidth,J.ctxLineWidth(this.values.sWidth)),y&&y.sc?gn!==y.sc&&(gn=y.sc,J.ctxStrokeStyle(y.sc)):gn!==this.values.stroke&&(gn=this.values.stroke,J.ctxStrokeStyle(this.values.stroke)),re=this.textSpans[u].elem,h=re.length,this.globalData.canvasContext.beginPath(),d=0;d<h;d+=1)for(w=re[d],p=w.length,this.globalData.canvasContext.moveTo(w[0],w[1]),v=2;v<p;v+=6)this.globalData.canvasContext.bezierCurveTo(w[v],w[v+1],w[v+2],w[v+3],w[v+4],w[v+5]);this.globalData.canvasContext.closePath(),J.ctxStroke()}y&&this.globalData.renderer.restore()}};function CVImageElement(c,u,f){this.assetData=u.getAssetData(c.refId),this.img=u.imageLoader.getAsset(this.assetData),this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var c=createTag("canvas");c.width=this.assetData.w,c.height=this.assetData.h;var u=c.getContext("2d"),f=this.img.width,d=this.img.height,h=f/d,v=this.assetData.w/this.assetData.h,p,m,g=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;h>v&&g==="xMidYMid slice"||h<v&&g!=="xMidYMid slice"?(m=d,p=m*v):(p=f,m=p/v),u.drawImage(this.img,(f-p)/2,(d-m)/2,p,m,0,0,this.assetData.w,this.assetData.h),this.img=c}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(c,u,f){this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(c){return new CVShapeElement(c,this.globalData,this)},CanvasRendererBase.prototype.createText=function(c){return new CVTextElement(c,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(c){return new CVImageElement(c,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(c){return new CVSolidElement(c,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(c){c[0]===1&&c[1]===0&&c[4]===0&&c[5]===1&&c[12]===0&&c[13]===0||this.canvasContext.transform(c[0],c[1],c[4],c[5],c[12],c[13])},CanvasRendererBase.prototype.ctxOpacity=function(c){this.canvasContext.globalAlpha*=c<0?0:c},CanvasRendererBase.prototype.ctxFillStyle=function(c){this.canvasContext.fillStyle=c},CanvasRendererBase.prototype.ctxStrokeStyle=function(c){this.canvasContext.strokeStyle=c},CanvasRendererBase.prototype.ctxLineWidth=function(c){this.canvasContext.lineWidth=c},CanvasRendererBase.prototype.ctxLineCap=function(c){this.canvasContext.lineCap=c},CanvasRendererBase.prototype.ctxLineJoin=function(c){this.canvasContext.lineJoin=c},CanvasRendererBase.prototype.ctxMiterLimit=function(c){this.canvasContext.miterLimit=c},CanvasRendererBase.prototype.ctxFill=function(c){this.canvasContext.fill(c)},CanvasRendererBase.prototype.ctxFillRect=function(c,u,f,d){this.canvasContext.fillRect(c,u,f,d)},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,d;c?(f=c,d=u,this.canvasContext.canvas.width=f,this.canvasContext.canvas.height=d):(this.animationItem.wrapper&&this.animationItem.container?(f=this.animationItem.wrapper.offsetWidth,d=this.animationItem.wrapper.offsetHeight):(f=this.canvasContext.canvas.width,d=this.canvasContext.canvas.height),this.canvasContext.canvas.width=f*this.renderConfig.dpr,this.canvasContext.canvas.height=d*this.renderConfig.dpr);var h,v;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var p=this.renderConfig.preserveAspectRatio.split(" "),m=p[1]||"meet",g=p[0]||"xMidYMid",y=g.substr(0,4),b=g.substr(4);h=f/d,v=this.transformCanvas.w/this.transformCanvas.h,v>h&&m==="meet"||v<h&&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=d/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=d/(this.transformCanvas.h/this.renderConfig.dpr)),y==="xMid"&&(v<h&&m==="meet"||v>h&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(d/this.transformCanvas.h))/2*this.renderConfig.dpr:y==="xMax"&&(v<h&&m==="meet"||v>h&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(d/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,b==="YMid"&&(v>h&&m==="meet"||v<h&&m==="slice")?this.transformCanvas.ty=(d-this.transformCanvas.h*(f/this.transformCanvas.w))/2*this.renderConfig.dpr:b==="YMax"&&(v>h&&m==="meet"||v<h&&m==="slice")?this.transformCanvas.ty=(d-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=d/(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,d=this.layers.length;for(this.completeLayers||this.checkLayers(c),f=d-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=d-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,d,h=this.cTr.props;for(d=0;d<16;d+=1)h[d]=f[d];if(c){this.nativeContext.restore();var v=this.stack[this.cArrPos+1];this.appliedFillStyle=v.fillStyle,this.appliedStrokeStyle=v.strokeStyle,this.appliedLineWidth=v.lineWidth,this.appliedLineCap=v.lineCap,this.appliedLineJoin=v.lineJoin,this.appliedMiterLimit=v.miterLimit}this.nativeContext.setTransform(f[0],f[1],f[4],f[5],f[12],f[13]),(c||u.opacity!==-1&&this.currentOpacity!==u.opacity)&&(this.nativeContext.globalAlpha=u.opacity,this.currentOpacity=u.opacity),this.currentFillStyle=u.fillStyle,this.currentStrokeStyle=u.strokeStyle,this.currentLineWidth=u.lineWidth,this.currentLineCap=u.lineCap,this.currentLineJoin=u.lineJoin,this.currentMiterLimit=u.miterLimit},CVContextData.prototype.save=function(c){c&&this.nativeContext.save();var u=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var f=this.stack[this.cArrPos],d;for(d=0;d<16;d+=1)f.transform[d]=u[d];this.cArrPos+=1;var h=this.stack[this.cArrPos];h.opacity=f.opacity,h.fillStyle=f.fillStyle,h.strokeStyle=f.strokeStyle,h.lineWidth=f.lineWidth,h.lineCap=f.lineCap,h.lineJoin=f.lineJoin,h.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,d){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(c,u,f,d)},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,d=c.length;for(f=0;f<d;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,d=c.transformers,h,v=f._length,p,m,g,y;if(!(v<=1)){for(h=0;h<v-1;h+=1)p=this.getTransformedPoint(d,f.v[h]),m=this.getTransformedPoint(d,f.o[h]),g=this.getTransformedPoint(d,f.i[h+1]),y=this.getTransformedPoint(d,f.v[h+1]),this.checkBounds(p,m,g,y,u);f.c&&(p=this.getTransformedPoint(d,f.v[h]),m=this.getTransformedPoint(d,f.o[h]),g=this.getTransformedPoint(d,f.i[0]),y=this.getTransformedPoint(d,f.v[0]),this.checkBounds(p,m,g,y,u))}},HShapeElement.prototype.checkBounds=function(c,u,f,d,h){this.getBoundsOfCurve(c,u,f,d);var v=this.shapeBoundingBox;h.x=bmMin(v.left,h.x),h.xMax=bmMax(v.right,h.xMax),h.y=bmMin(v.top,h.y),h.yMax=bmMax(v.bottom,h.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,d){for(var h=[[c[0],d[0]],[c[1],d[1]]],v,p,m,g,y,b,gn,x=0;x<2;++x)p=6*c[x]-12*u[x]+6*f[x],v=-3*c[x]+9*u[x]-9*f[x]+3*d[x],m=3*u[x]-3*c[x],p|=0,v|=0,m|=0,v===0&&p===0||(v===0?(g=-m/p,g>0&&g<1&&h[x].push(this.calculateF(g,c,u,f,d,x))):(y=p*p-4*m*v,y>=0&&(b=(-p+bmSqrt(y))/(2*v),b>0&&b<1&&h[x].push(this.calculateF(b,c,u,f,d,x)),gn=(-p-bmSqrt(y))/(2*v),gn>0&&gn<1&&h[x].push(this.calculateF(gn,c,u,f,d,x)))));this.shapeBoundingBox.left=bmMin.apply(null,h[0]),this.shapeBoundingBox.top=bmMin.apply(null,h[1]),this.shapeBoundingBox.right=bmMax.apply(null,h[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,h[1])},HShapeElement.prototype.calculateF=function(c,u,f,d,h,v){return bmPow(1-c,3)*u[v]+3*bmPow(1-c,2)*c*f[v]+3*(1-c)*bmPow(c,2)*d[v]+bmPow(c,3)*h[v]},HShapeElement.prototype.calculateBoundingBox=function(c,u){var f,d=c.length;for(f=0;f<d;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 d=0;d<c.keyframes.length;d+=1){var h=c.keyframes[d].s;h>f&&(f=h)}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 d=this.shapeCont.style,h="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";d.transform=h,d.webkitTransform=h}}};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 d=this.globalData.fontManager.getFontByName(c.f);if(!this.globalData.fontManager.chars)if(u.fontSize=c.finalSize+"px",u.lineHeight=c.finalSize+"px",d.fClass)this.innerElem.className=d.fClass;else{u.fontFamily=d.fFamily;var h=c.fWeight,v=c.fStyle;u.fontStyle=v,u.fontWeight=h}var p,m,g=c.l;m=g.length;var y,b,gn,x=this.mHelper,re,w="",J=0;for(p=0;p<m;p+=1){if(this.globalData.fontManager.chars?(this.textPaths[J]?y=this.textPaths[J]:(y=createNS("path"),y.setAttribute("stroke-linecap",lineCapEnum[1]),y.setAttribute("stroke-linejoin",lineJoinEnum[2]),y.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[J]?(b=this.textSpans[J],gn=b.children[0]):(b=createTag("div"),b.style.lineHeight=0,gn=createNS("svg"),gn.appendChild(y),styleDiv(b)))):this.isMasked?y=this.textPaths[J]?this.textPaths[J]:createNS("text"):this.textSpans[J]?(b=this.textSpans[J],y=this.textPaths[J]):(b=createTag("span"),styleDiv(b),y=createTag("span"),styleDiv(y),b.appendChild(y)),this.globalData.fontManager.chars){var Fn=this.globalData.fontManager.getCharData(c.finalText[p],d.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily),Bn;if(Fn?Bn=Fn.data:Bn=null,x.reset(),Bn&&Bn.shapes&&Bn.shapes.length&&(re=Bn.shapes[0].it,x.scale(c.finalSize/100,c.finalSize/100),w=this.createPathShape(x,re),y.setAttribute("d",w)),this.isMasked)this.innerElem.appendChild(y);else{if(this.innerElem.appendChild(b),Bn&&Bn.shapes){document.body.appendChild(gn);var j=gn.getBBox();gn.setAttribute("width",j.width+2),gn.setAttribute("height",j.height+2),gn.setAttribute("viewBox",j.x-1+" "+(j.y-1)+" "+(j.width+2)+" "+(j.height+2));var vn=gn.style,Pn="translate("+(j.x-1)+"px,"+(j.y-1)+"px)";vn.transform=Pn,vn.webkitTransform=Pn,g[p].yOffset=j.y-1}else gn.setAttribute("width",1),gn.setAttribute("height",1);b.appendChild(gn)}}else if(y.textContent=g[p].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(y);else{this.innerElem.appendChild(b);var Rn=y.style,zn="translate3d(0,"+-c.finalSize/1.2+"px,0)";Rn.transform=zn,Rn.webkitTransform=zn}this.isMasked?this.textSpans[J]=y:this.textSpans[J]=b,this.textSpans[J].style.display="block",this.textPaths[J]=y,J+=1}for(;J<this.textSpans.length;)this.textSpans[J].style.display="none",J+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var c;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),c=this.svgElement.style;var u="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";c.transform=u,c.webkitTransform=u}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var f,d,h=0,v=this.textAnimator.renderedLetters,p=this.textProperty.currentData.l;d=p.length;var m,g,y;for(f=0;f<d;f+=1)p[f].n?h+=1:(g=this.textSpans[f],y=this.textPaths[f],m=v[h],h+=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 b=this.innerElem.getBBox();this.currentBBox.w!==b.width&&(this.currentBBox.w=b.width,this.svgElement.setAttribute("width",b.width)),this.currentBBox.h!==b.height&&(this.currentBBox.h=b.height,this.svgElement.setAttribute("height",b.height));var gn=1;if(this.currentBBox.w!==b.width+gn*2||this.currentBBox.h!==b.height+gn*2||this.currentBBox.x!==b.x-gn||this.currentBBox.y!==b.y-gn){this.currentBBox.w=b.width+gn*2,this.currentBBox.h=b.height+gn*2,this.currentBBox.x=b.x-gn,this.currentBBox.y=b.y-gn,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),c=this.svgElement.style;var x="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";c.transform=x,c.webkitTransform=x}}}};function HCameraElement(c,u,f){this.initFrame(),this.initBaseData(c,u,f),this.initHierarchy();var d=PropertyFactory.getProp;if(this.pe=d(this,c.pe,0,0,this),c.ks.p.s?(this.px=d(this,c.ks.p.x,1,0,this),this.py=d(this,c.ks.p.y,1,0,this),this.pz=d(this,c.ks.p.z,1,0,this)):this.p=d(this,c.ks.p,1,0,this),c.ks.a&&(this.a=d(this,c.ks.a,1,0,this)),c.ks.or.k.length&&c.ks.or.k[0].to){var h,v=c.ks.or.k.length;for(h=0;h<v;h+=1)c.ks.or.k[h].to=null,c.ks.or.k[h].ti=null}this.or=d(this,c.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=d(this,c.ks.rx,0,degToRads,this),this.ry=d(this,c.ks.ry,0,degToRads,this),this.rz=d(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,d,h;for(c=0;c<u;c+=1)if(f=this.comp.threeDElements[c],f.type==="3d"){d=f.perspectiveElem.style,h=f.container.style;var v=this.pe.v+"px",p="0px 0px 0px",m="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";d.perspective=v,d.webkitPerspective=v,h.transformOrigin=p,h.mozTransformOrigin=p,h.webkitTransformOrigin=p,d.transform=m,d.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 d=this.hierarchy[u].finalTransform.mProp;this.mat.translate(-d.p.v[0],-d.p.v[1],d.p.v[2]),this.mat.rotateX(-d.or.v[0]).rotateY(-d.or.v[1]).rotateZ(d.or.v[2]),this.mat.rotateX(-d.rx.v).rotateY(-d.ry.v).rotateZ(d.rz.v),this.mat.scale(1/d.s.v[0],1/d.s.v[1],1/d.s.v[2]),this.mat.translate(d.a.v[0],d.a.v[1],d.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 h;this.p?h=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:h=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var v=Math.sqrt(Math.pow(h[0],2)+Math.pow(h[1],2)+Math.pow(h[2],2)),p=[h[0]/v,h[1]/v,h[2]/v],m=Math.sqrt(p[2]*p[2]+p[0]*p[0]),g=Math.atan2(p[1],m),y=Math.atan2(p[0],-p[2]);this.mat.rotateY(y).rotateX(-g)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var b=!this._prevMat.equals(this.mat);if((b||this.pe._mdf)&&this.comp.threeDElements){f=this.comp.threeDElements.length;var gn,x,re;for(u=0;u<f;u+=1)if(gn=this.comp.threeDElements[u],gn.type==="3d"){if(b){var w=this.mat.toCSS();re=gn.container.style,re.transform=w,re.webkitTransform=w}this.pe._mdf&&(x=gn.perspectiveElem.style,x.perspective=this.pe.v+"px",x.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 d=this.layers[u];if(!d.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(f,u);else{for(var h=0,v,p,m;h<u;)this.elements[h]&&this.elements[h]!==!0&&this.elements[h].getBaseElement&&(p=this.elements[h],m=this.layers[h].ddd?this.getThreeDContainerByPos(h):p.getBaseElement(),v=m||v),h+=1;v?(!d.ddd||!this.supports3d)&&this.layerElement.insertBefore(f,v):(!d.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"),d,h;styleDiv(f);var v=createTag("div");if(styleDiv(v),u==="3d"){d=f.style,d.width=this.globalData.compSize.w+"px",d.height=this.globalData.compSize.h+"px";var p="50% 50%";d.webkitTransformOrigin=p,d.mozTransformOrigin=p,d.transformOrigin=p,h=v.style;var m="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";h.transform=m,h.webkitTransform=m}f.appendChild(v);var g={container:v,perspectiveElem:f,startPos:c,endPos:c,type:u};return this.threeDElements.push(g),g},HybridRendererBase.prototype.build3dContainers=function(){var c,u=this.layers.length,f,d="";for(c=0;c<u;c+=1)this.layers[c].ddd&&this.layers[c].ty!==3?(d!=="3d"&&(d="3d",f=this.createThreeDContainer(c,"3d")),f.endPos=Math.max(f.endPos,c)):(d!=="2d"&&(d="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,d=this.threeDElements.length;f<d;){if(u<=this.threeDElements[f].endPos){for(var h=this.threeDElements[f].startPos,v;h<u;)this.elements[h]&&this.elements[h].getBaseElement&&(v=this.elements[h].getBaseElement()),h+=1;v?this.threeDElements[f].container.insertBefore(c,v):this.threeDElements[f].container.appendChild(c);break}f+=1}},HybridRendererBase.prototype.configAnimation=function(c){var u=createTag("div"),f=this.animationItem.wrapper,d=u.style;d.width=c.w+"px",d.height=c.h+"px",this.resizerElem=u,styleDiv(u),d.transformStyle="flat",d.mozTransformStyle="flat",d.webkitTransformStyle="flat",this.renderConfig.className&&u.setAttribute("class",this.renderConfig.className),f.appendChild(u),d.overflow="hidden";var h=createNS("svg");h.setAttribute("width","1"),h.setAttribute("height","1"),styleDiv(h),this.resizerElem.appendChild(h);var v=createNS("defs");h.appendChild(v),this.data=c,this.setupGlobalData(c,h),this.globalData.defs=v,this.layers=c.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var c,u=this.layers?this.layers.length:0;for(c=0;c<u;c+=1)this.elements[c]&&this.elements[c].destroy&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var c=this.animationItem.wrapper.offsetWidth,u=this.animationItem.wrapper.offsetHeight,f=c/u,d=this.globalData.compSize.w/this.globalData.compSize.h,h,v,p,m;d>f?(h=c/this.globalData.compSize.w,v=c/this.globalData.compSize.w,p=0,m=(u-this.globalData.compSize.h*(c/this.globalData.compSize.w))/2):(h=u/this.globalData.compSize.h,v=u/this.globalData.compSize.h,p=(c-this.globalData.compSize.w*(u/this.globalData.compSize.h))/2,m=0);var g=this.resizerElem.style;g.webkitTransform="matrix3d("+h+",0,0,0,0,"+v+",0,0,0,0,1,0,"+p+","+m+",0,1)",g.transform=g.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var c=this.globalData.compSize.w,u=this.globalData.compSize.h,f,d=this.threeDElements.length;for(f=0;f<d;f+=1){var h=this.threeDElements[f].perspectiveElem.style;h.webkitPerspective=Math.sqrt(Math.pow(c,2)+Math.pow(u,2))+"px",h.perspective=h.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(c){var u,f=c.length,d=createTag("div");for(u=0;u<f;u+=1)if(c[u].xt){var h=this.createComp(c[u],d,this.globalData.comp,null);h.initExpressions(),this.globalData.projectInterface.registerComposition(h)}};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,d;f<u;)this.elements[f]&&this.elements[f].getBaseElement&&(d=this.elements[f].getBaseElement()),f+=1;d?this.layerElement.insertBefore(c,d):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 d=0,h=c.layers.length;d<h;){if(c.layers[d].nm===f||c.layers[d].ind===f)return c.elements[d].layerInterface;d+=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,d=256,h=6,v=52,p="random",m=u.pow(d,h),g=u.pow(2,v),y=g*2,b=d-1,gn;function x(vn,Pn,Rn){var zn=[];Pn=Pn===!0?{entropy:!0}:Pn||{};var Un=Fn(J(Pn.entropy?[vn,j(c)]:vn===null?Bn():vn,3),zn),qn=new re(zn),Qn=function(){for(var Zn=qn.g(h),Xn=m,nr=0;Zn<g;)Zn=(Zn+nr)*d,Xn*=d,nr=qn.g(1);for(;Zn>=y;)Zn/=2,Xn/=2,nr>>>=1;return(Zn+nr)/Xn};return Qn.int32=function(){return qn.g(4)|0},Qn.quick=function(){return qn.g(4)/4294967296},Qn.double=Qn,Fn(j(qn.S),c),(Pn.pass||Rn||function(Jn,Zn,Xn,nr){return nr&&(nr.S&&w(nr,qn),Jn.state=function(){return w(qn,{})}),Xn?(u[p]=Jn,Zn):Jn})(Qn,Un,"global"in Pn?Pn.global:this==u,Pn.state)}u["seed"+p]=x;function re(vn){var Pn,Rn=vn.length,zn=this,Un=0,qn=zn.i=zn.j=0,Qn=zn.S=[];for(Rn||(vn=[Rn++]);Un<d;)Qn[Un]=Un++;for(Un=0;Un<d;Un++)Qn[Un]=Qn[qn=b&qn+vn[Un%Rn]+(Pn=Qn[Un])],Qn[qn]=Pn;zn.g=function(Jn){for(var Zn,Xn=0,nr=zn.i,sr=zn.j,ur=zn.S;Jn--;)Zn=ur[nr=b&nr+1],Xn=Xn*d+ur[b&(ur[nr]=ur[sr=b&sr+Zn])+(ur[sr]=Zn)];return zn.i=nr,zn.j=sr,Xn}}function w(vn,Pn){return Pn.i=vn.i,Pn.j=vn.j,Pn.S=vn.S.slice(),Pn}function J(vn,Pn){var Rn=[],zn=_typeof$2(vn),Un;if(Pn&&zn=="object")for(Un in vn)try{Rn.push(J(vn[Un],Pn-1))}catch{}return Rn.length?Rn:zn=="string"?vn:vn+"\0"}function Fn(vn,Pn){for(var Rn=vn+"",zn,Un=0;Un<Rn.length;)Pn[b&Un]=b&(zn^=Pn[b&Un]*19)+Rn.charCodeAt(Un++);return j(Pn)}function Bn(){try{var vn=new Uint8Array(d);return(f.crypto||f.msCrypto).getRandomValues(vn),j(vn)}catch{var Pn=f.navigator,Rn=Pn&&Pn.plugins;return[+new Date,f,Rn,f.screen,j(c)]}}function j(vn){return String.fromCharCode.apply(0,vn)}Fn(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,d=c.length,h=[];for(f=0;f<d;f+=1)h[f]=-c[f];return h}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),d=_typeof$1(u);if(isNumerable(f,c)&&isNumerable(d,u)||f==="string"||d==="string")return c+u;if($bm_isInstanceOfArray(c)&&isNumerable(d,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 h=0,v=c.length,p=u.length,m=[];h<v||h<p;)(typeof c[h]=="number"||c[h]instanceof Number)&&(typeof u[h]=="number"||u[h]instanceof Number)?m[h]=c[h]+u[h]:m[h]=u[h]===void 0?c[h]:c[h]||u[h],h+=1;return m}return 0}var add=sum;function sub(c,u){var f=_typeof$1(c),d=_typeof$1(u);if(isNumerable(f,c)&&isNumerable(d,u))return f==="string"&&(c=parseInt(c,10)),d==="string"&&(u=parseInt(u,10)),c-u;if($bm_isInstanceOfArray(c)&&isNumerable(d,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 h=0,v=c.length,p=u.length,m=[];h<v||h<p;)(typeof c[h]=="number"||c[h]instanceof Number)&&(typeof u[h]=="number"||u[h]instanceof Number)?m[h]=c[h]-u[h]:m[h]=u[h]===void 0?c[h]:c[h]||u[h],h+=1;return m}return 0}function mul(c,u){var f=_typeof$1(c),d=_typeof$1(u),h;if(isNumerable(f,c)&&isNumerable(d,u))return c*u;var v,p;if($bm_isInstanceOfArray(c)&&isNumerable(d,u)){for(p=c.length,h=createTypedArray("float32",p),v=0;v<p;v+=1)h[v]=c[v]*u;return h}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(p=u.length,h=createTypedArray("float32",p),v=0;v<p;v+=1)h[v]=c*u[v];return h}return 0}function div(c,u){var f=_typeof$1(c),d=_typeof$1(u),h;if(isNumerable(f,c)&&isNumerable(d,u))return c/u;var v,p;if($bm_isInstanceOfArray(c)&&isNumerable(d,u)){for(p=c.length,h=createTypedArray("float32",p),v=0;v<p;v+=1)h[v]=c[v]/u;return h}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(p=u.length,h=createTypedArray("float32",p),v=0;v<p;v+=1)h[v]=c/u[v];return h}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 d=f;f=u,u=d}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,d=Math.min(c.length,u.length),h=0;for(f=0;f<d;f+=1)h+=Math.pow(u[f]-c[f],2);return Math.sqrt(h)}function normalize(c){return div(c,length(c))}function rgbToHsl(c){var u=c[0],f=c[1],d=c[2],h=Math.max(u,f,d),v=Math.min(u,f,d),p,m,g=(h+v)/2;if(h===v)p=0,m=0;else{var y=h-v;switch(m=g>.5?y/(2-h-v):y/(h+v),h){case u:p=(f-d)/y+(f<d?6:0);break;case f:p=(d-u)/y+2;break;case d:p=(u-f)/y+4;break}p/=6}return[p,m,g,c[3]]}function hue2rgb(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}function hslToRgb(c){var u=c[0],f=c[1],d=c[2],h,v,p;if(f===0)h=d,p=d,v=d;else{var m=d<.5?d*(1+f):d+f-d*f,g=2*d-m;h=hue2rgb(g,m,u+1/3),v=hue2rgb(g,m,u),p=hue2rgb(g,m,u-1/3)}return[h,v,p,c[3]]}function linear(c,u,f,d,h){if((d===void 0||h===void 0)&&(d=u,h=f,u=0,f=1),f<u){var v=f;f=u,u=v}if(c<=u)return d;if(c>=f)return h;var p=f===u?0:(c-u)/(f-u);if(!d.length)return d+(h-d)*p;var m,g=d.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=d[m]+(h[m]-d[m])*p;return y}function random(c,u){if(u===void 0&&(c===void 0?(c=0,u=1):(u=c,c=void 0)),u.length){var f,d=u.length;c||(c=createTypedArray("float32",d));var h=createTypedArray("float32",d),v=BMMath.random();for(f=0;f<d;f+=1)h[f]=c[f]+v*(u[f]-c[f]);return h}c===void 0&&(c=0);var p=BMMath.random();return c+p*(u-c)}function createPath(c,u,f,d){var h,v=c.length,p=shapePool.newElement();p.setPathData(!!d,v);var m=[0,0],g,y;for(h=0;h<v;h+=1)g=u&&u[h]?u[h]:m,y=f&&f[h]?f[h]:m,p.setTripleAt(c[h][0],c[h][1],y[0]+c[h][0],y[1]+c[h][1],g[0]+c[h][0],g[1]+c[h][1],h,!0);return p}function initiateExpression(elem,data,property){function noOp(c){return c}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function c(u,f){var d,h,v=this.pv.length?this.pv.length:1,p=createTypedArray("float32",v);u=5;var m=Math.floor(time*u);for(d=0,h=0;d<m;){for(h=0;h<v;h+=1)p[h]+=-f+f*2*BMMath.random();d+=1}var g=time*u,y=g-Math.floor(g),b=createTypedArray("float32",v);if(v>1){for(h=0;h<v;h+=1)b[h]=this.pv[h]+p[h]+(-f+f*2*BMMath.random())*y;return b}return this.pv+p[0]+(-f+f*2*BMMath.random())*y}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(c,u){return loopIn(c,u,!0)}function loopOutDuration(c,u){return loopOut(c,u,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(c,u){var f=[u[0]-c[0],u[1]-c[1],u[2]-c[2]],d=Math.atan2(f[0],Math.sqrt(f[1]*f[1]+f[2]*f[2]))/degToRads,h=-Math.atan2(f[1],f[2])/degToRads;return[h,d,0]}function easeOut(c,u,f,d,h){return applyEase(easeOutBez,c,u,f,d,h)}function easeIn(c,u,f,d,h){return applyEase(easeInBez,c,u,f,d,h)}function ease(c,u,f,d,h){return applyEase(easeInOutBez,c,u,f,d,h)}function applyEase(c,u,f,d,h,v){h===void 0?(h=f,v=d):u=(u-f)/(d-f),u>1?u=1:u<0&&(u=0);var p=c(u);if($bm_isInstanceOfArray(h)){var m,g=h.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=(v[m]-h[m])*p+h[m];return y}return(v-h)*p+h}function nearestKey(c){var u,f=data.k.length,d,h;if(!data.k.length||typeof data.k[0]=="number")d=0,h=0;else if(d=-1,c*=elem.comp.globalData.frameRate,c<data.k[0].t)d=1,h=data.k[0].t;else{for(u=0;u<f-1;u+=1)if(c===data.k[u].t){d=u+1,h=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?(d=u+2,h=data.k[u+1].t):(d=u+1,h=data.k[u].t);break}d===-1&&(d=u+1,h=data.k[u].t)}var v={};return v.index=d,v.time=h/elem.comp.globalData.frameRate,v}function key(c){var u,f,d;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 h=Object.prototype.hasOwnProperty.call(data.k[c],"s")?data.k[c].s:data.k[c-1].e;for(d=h.length,f=0;f<d;f+=1)u[f]=h[f],u.value[f]=h[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 d=0,h=[];function v(){d+=1}function p(){d-=1,d===0&&g()}function m(y){h.indexOf(y)===-1&&h.push(y)}function g(){var y,b=h.length;for(y=0;y<b;y+=1)h[y].release();h.length=0}f.renderer.compInterface=CompExpressionInterface(f.renderer),f.renderer.globalData.projectInterface.registerComposition(f.renderer),f.renderer.globalData.pushExpression=v,f.renderer.globalData.popExpression=p,f.renderer.globalData.registerExpressionProperty=m}return c}(),MaskManagerInterface=function(){function c(f,d){this._mask=f,this._data=d}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(d){var h=createSizedArray(d.viewData.length),v,p=d.viewData.length;for(v=0;v<p;v+=1)h[v]=new c(d.viewData[v],d.masksProperties[v]);var m=function(y){for(v=0;v<p;){if(d.masksProperties[v].nm===y)return h[v];v+=1}return null};return m};return u}(),ExpressionPropertyInterface=function(){var c={pv:0,v:0,mult:1},u={pv:[0,0,0],v:[0,0,0],mult:1};function f(p,m,g){Object.defineProperty(p,"velocity",{get:function(){return m.getVelocityAtTime(m.comp.currentFrame)}}),p.numKeys=m.keyframes?m.keyframes.length:0,p.key=function(y){if(!p.numKeys)return 0;var b="";"s"in m.keyframes[y-1]?b=m.keyframes[y-1].s:"e"in m.keyframes[y-2]?b=m.keyframes[y-2].e:b=m.keyframes[y-2].s;var gn=g==="unidimensional"?new Number(b):Object.assign({},b);return gn.time=m.keyframes[y-1].t/m.elem.comp.globalData.frameRate,gn.value=g==="unidimensional"?b[0]:b,gn},p.valueAtTime=m.getValueAtTime,p.speedAtTime=m.getSpeedAtTime,p.velocityAtTime=m.getVelocityAtTime,p.propertyGroup=m.propertyGroup}function d(p){(!p||!("pv"in p))&&(p=c);var m=1/p.mult,g=p.pv*m,y=new Number(g);return y.value=g,f(y,p,"unidimensional"),function(){return p.k&&p.getValue(),g=p.v*m,y.value!==g&&(y=new Number(g),y.value=g,f(y,p,"unidimensional")),y}}function h(p){(!p||!("pv"in p))&&(p=u);var m=1/p.mult,g=p.data&&p.data.l||p.pv.length,y=createTypedArray("float32",g),b=createTypedArray("float32",g);return y.value=b,f(y,p,"multidimensional"),function(){p.k&&p.getValue();for(var gn=0;gn<g;gn+=1)b[gn]=p.v[gn]*m,y[gn]=b[gn];return y}}function v(){return c}return function(p){return p?p.propType==="unidimensional"?d(p):h(p):v}}(),TransformExpressionInterface=function(){return function(c){function u(p){switch(p){case"scale":case"Scale":case"ADBE Scale":case 6:return u.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return u.rotation;case"ADBE Rotate X":return u.xRotation;case"ADBE Rotate Y":return u.yRotation;case"position":case"Position":case"ADBE Position":case 2:return u.position;case"ADBE Position_0":return u.xPosition;case"ADBE Position_1":return u.yPosition;case"ADBE Position_2":return u.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return u.anchorPoint;case"opacity":case"Opacity":case 11:return u.opacity;default:return null}}Object.defineProperty(u,"rotation",{get:ExpressionPropertyInterface(c.r||c.rz)}),Object.defineProperty(u,"zRotation",{get:ExpressionPropertyInterface(c.rz||c.r)}),Object.defineProperty(u,"xRotation",{get:ExpressionPropertyInterface(c.rx)}),Object.defineProperty(u,"yRotation",{get:ExpressionPropertyInterface(c.ry)}),Object.defineProperty(u,"scale",{get:ExpressionPropertyInterface(c.s)});var f,d,h,v;return c.p?v=ExpressionPropertyInterface(c.p):(f=ExpressionPropertyInterface(c.px),d=ExpressionPropertyInterface(c.py),c.pz&&(h=ExpressionPropertyInterface(c.pz))),Object.defineProperty(u,"position",{get:function(){return c.p?v():[f(),d(),h?h():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 b=new Matrix;if(y!==void 0){var gn=this._elem.finalTransform.mProp.getValueAtTime(y);gn.clone(b)}else{var x=this._elem.finalTransform.mProp;x.applyToMatrix(b)}return b}function u(y,b){var gn=this.getMatrix(b);return gn.props[12]=0,gn.props[13]=0,gn.props[14]=0,this.applyPoint(gn,y)}function f(y,b){var gn=this.getMatrix(b);return this.applyPoint(gn,y)}function d(y,b){var gn=this.getMatrix(b);return gn.props[12]=0,gn.props[13]=0,gn.props[14]=0,this.invertPoint(gn,y)}function h(y,b){var gn=this.getMatrix(b);return this.invertPoint(gn,y)}function v(y,b){if(this._elem.hierarchy&&this._elem.hierarchy.length){var gn,x=this._elem.hierarchy.length;for(gn=0;gn<x;gn+=1)this._elem.hierarchy[gn].finalTransform.mProp.applyToMatrix(y)}return y.applyToPointArray(b[0],b[1],b[2]||0)}function p(y,b){if(this._elem.hierarchy&&this._elem.hierarchy.length){var gn,x=this._elem.hierarchy.length;for(gn=0;gn<x;gn+=1)this._elem.hierarchy[gn].finalTransform.mProp.applyToMatrix(y)}return y.inversePoint(b)}function m(y){var b=new Matrix;if(b.reset(),this._elem.finalTransform.mProp.applyToMatrix(b),this._elem.hierarchy&&this._elem.hierarchy.length){var gn,x=this._elem.hierarchy.length;for(gn=0;gn<x;gn+=1)this._elem.hierarchy[gn].finalTransform.mProp.applyToMatrix(b);return b.inversePoint(y)}return b.inversePoint(y)}function g(){return[1,1,1,1]}return function(y){var b;function gn(J){re.mask=new MaskManagerInterface(J,y)}function x(J){re.effect=J}function re(J){switch(J){case"ADBE Root Vectors Group":case"Contents":case 2:return re.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return b;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return re.effect;case"ADBE Text Properties":return re.textInterface;default:return null}}re.getMatrix=c,re.invertPoint=p,re.applyPoint=v,re.toWorld=f,re.toWorldVec=u,re.fromWorld=h,re.fromWorldVec=d,re.toComp=f,re.fromComp=m,re.sampleImage=g,re.sourceRectAtTime=y.sourceRectAtTime.bind(y),re._elem=y,b=TransformExpressionInterface(y.finalTransform.mProp);var w=getDescriptor(b,"anchorPoint");return Object.defineProperties(re,{hasParent:{get:function(){return y.hierarchy.length}},parent:{get:function(){return y.hierarchy[0].layerInterface}},rotation:getDescriptor(b,"rotation"),scale:getDescriptor(b,"scale"),position:getDescriptor(b,"position"),opacity:getDescriptor(b,"opacity"),anchorPoint:w,anchor_point:w,transform:{get:function(){return b}},active:{get:function(){return y.isInRange}}}),re.startTime=y.data.st,re.index=y.data.ind,re.source=y.data.refId,re.height=y.data.ty===0?y.data.h:100,re.width=y.data.ty===0?y.data.w:100,re.inPoint=y.data.ip/y.comp.globalData.frameRate,re.outPoint=y.data.op/y.comp.globalData.frameRate,re._name=y.data.nm,re.registerMaskInterface=gn,re.registerEffectsInterface=x,re}}(),propertyGroupFactory=function(){return function(c,u){return function(f){return f=f===void 0?1:f,f<=0?c:u(f-1)}}}(),PropertyInterface=function(){return function(c,u){var f={_name:c};function d(h){return h=h===void 0?1:h,h<=0?f:u(h-1)}return d}}(),EffectsExpressionInterface=function(){var c={createEffectsInterface:u};function u(h,v){if(h.effectsManager){var p=[],m=h.data.ef,g,y=h.effectsManager.effectElements.length;for(g=0;g<y;g+=1)p.push(f(m[g],h.effectsManager.effectElements[g],v,h));var b=h.data.ef||[],gn=function(re){for(g=0,y=b.length;g<y;){if(re===b[g].nm||re===b[g].mn||re===b[g].ix)return p[g];g+=1}return null};return Object.defineProperty(gn,"numProperties",{get:function(){return b.length}}),gn}return null}function f(h,v,p,m){function g(re){for(var w=h.ef,J=0,Fn=w.length;J<Fn;){if(re===w[J].nm||re===w[J].mn||re===w[J].ix)return w[J].ty===5?b[J]:b[J]();J+=1}throw new Error}var y=propertyGroupFactory(g,p),b=[],gn,x=h.ef.length;for(gn=0;gn<x;gn+=1)h.ef[gn].ty===5?b.push(f(h.ef[gn],v.effectElements[gn],v.effectElements[gn].propertyGroup,m)):b.push(d(v.effectElements[gn],h.ef[gn].ty,m,y));return h.mn==="ADBE Color Control"&&Object.defineProperty(g,"color",{get:function(){return b[0]()}}),Object.defineProperties(g,{numProperties:{get:function(){return h.np}},_name:{value:h.nm},propertyGroup:{value:y}}),g.enabled=h.en!==0,g.active=g.enabled,g}function d(h,v,p,m){var g=ExpressionPropertyInterface(h.p);function y(){return v===10?p.comp.compInterface(h.p.v):g()}return h.p.setGroupProperty&&h.p.setGroupProperty(PropertyInterface("",m)),y}return c}(),ShapePathInterface=function(){return function(u,f,d){var h=f.sh;function v(m){return m==="Shape"||m==="shape"||m==="Path"||m==="path"||m==="ADBE Vector Shape"||m===2?v.path:null}var p=propertyGroupFactory(v,d);return h.setGroupProperty(PropertyInterface("Path",p)),Object.defineProperties(v,{path:{get:function(){return h.k&&h.getValue(),h}},shape:{get:function(){return h.k&&h.getValue(),h}},_name:{value:u.nm},ix:{value:u.ix},propertyIndex:{value:u.ix},mn:{value:u.mn},propertyGroup:{value:d}}),v}}(),ShapeExpressionInterface=function(){function c(w,J,Fn){var Bn=[],j,vn=w?w.length:0;for(j=0;j<vn;j+=1)w[j].ty==="gr"?Bn.push(f(w[j],J[j],Fn)):w[j].ty==="fl"?Bn.push(d(w[j],J[j],Fn)):w[j].ty==="st"?Bn.push(p(w[j],J[j],Fn)):w[j].ty==="tm"?Bn.push(m(w[j],J[j],Fn)):w[j].ty==="tr"||(w[j].ty==="el"?Bn.push(y(w[j],J[j],Fn)):w[j].ty==="sr"?Bn.push(b(w[j],J[j],Fn)):w[j].ty==="sh"?Bn.push(ShapePathInterface(w[j],J[j],Fn)):w[j].ty==="rc"?Bn.push(gn(w[j],J[j],Fn)):w[j].ty==="rd"?Bn.push(x(w[j],J[j],Fn)):w[j].ty==="rp"?Bn.push(re(w[j],J[j],Fn)):w[j].ty==="gf"?Bn.push(h(w[j],J[j],Fn)):Bn.push(v(w[j],J[j])));return Bn}function u(w,J,Fn){var Bn,j=function(Rn){for(var zn=0,Un=Bn.length;zn<Un;){if(Bn[zn]._name===Rn||Bn[zn].mn===Rn||Bn[zn].propertyIndex===Rn||Bn[zn].ix===Rn||Bn[zn].ind===Rn)return Bn[zn];zn+=1}return typeof Rn=="number"?Bn[Rn-1]:null};j.propertyGroup=propertyGroupFactory(j,Fn),Bn=c(w.it,J.it,j.propertyGroup),j.numProperties=Bn.length;var vn=g(w.it[w.it.length-1],J.it[J.it.length-1],j.propertyGroup);return j.transform=vn,j.propertyIndex=w.cix,j._name=w.nm,j}function f(w,J,Fn){var Bn=function(Rn){switch(Rn){case"ADBE Vectors Group":case"Contents":case 2:return Bn.content;default:return Bn.transform}};Bn.propertyGroup=propertyGroupFactory(Bn,Fn);var j=u(w,J,Bn.propertyGroup),vn=g(w.it[w.it.length-1],J.it[J.it.length-1],Bn.propertyGroup);return Bn.content=j,Bn.transform=vn,Object.defineProperty(Bn,"_name",{get:function(){return w.nm}}),Bn.numProperties=w.np,Bn.propertyIndex=w.ix,Bn.nm=w.nm,Bn.mn=w.mn,Bn}function d(w,J,Fn){function Bn(j){return j==="Color"||j==="color"?Bn.color:j==="Opacity"||j==="opacity"?Bn.opacity:null}return Object.defineProperties(Bn,{color:{get:ExpressionPropertyInterface(J.c)},opacity:{get:ExpressionPropertyInterface(J.o)},_name:{value:w.nm},mn:{value:w.mn}}),J.c.setGroupProperty(PropertyInterface("Color",Fn)),J.o.setGroupProperty(PropertyInterface("Opacity",Fn)),Bn}function h(w,J,Fn){function Bn(j){return j==="Start Point"||j==="start point"?Bn.startPoint:j==="End Point"||j==="end point"?Bn.endPoint:j==="Opacity"||j==="opacity"?Bn.opacity:null}return Object.defineProperties(Bn,{startPoint:{get:ExpressionPropertyInterface(J.s)},endPoint:{get:ExpressionPropertyInterface(J.e)},opacity:{get:ExpressionPropertyInterface(J.o)},type:{get:function(){return"a"}},_name:{value:w.nm},mn:{value:w.mn}}),J.s.setGroupProperty(PropertyInterface("Start Point",Fn)),J.e.setGroupProperty(PropertyInterface("End Point",Fn)),J.o.setGroupProperty(PropertyInterface("Opacity",Fn)),Bn}function v(){function w(){return null}return w}function p(w,J,Fn){var Bn=propertyGroupFactory(Un,Fn),j=propertyGroupFactory(zn,Bn);function vn(qn){Object.defineProperty(zn,w.d[qn].nm,{get:ExpressionPropertyInterface(J.d.dataProps[qn].p)})}var Pn,Rn=w.d?w.d.length:0,zn={};for(Pn=0;Pn<Rn;Pn+=1)vn(Pn),J.d.dataProps[Pn].p.setGroupProperty(j);function Un(qn){return qn==="Color"||qn==="color"?Un.color:qn==="Opacity"||qn==="opacity"?Un.opacity:qn==="Stroke Width"||qn==="stroke width"?Un.strokeWidth:null}return Object.defineProperties(Un,{color:{get:ExpressionPropertyInterface(J.c)},opacity:{get:ExpressionPropertyInterface(J.o)},strokeWidth:{get:ExpressionPropertyInterface(J.w)},dash:{get:function(){return zn}},_name:{value:w.nm},mn:{value:w.mn}}),J.c.setGroupProperty(PropertyInterface("Color",Bn)),J.o.setGroupProperty(PropertyInterface("Opacity",Bn)),J.w.setGroupProperty(PropertyInterface("Stroke Width",Bn)),Un}function m(w,J,Fn){function Bn(vn){return vn===w.e.ix||vn==="End"||vn==="end"?Bn.end:vn===w.s.ix?Bn.start:vn===w.o.ix?Bn.offset:null}var j=propertyGroupFactory(Bn,Fn);return Bn.propertyIndex=w.ix,J.s.setGroupProperty(PropertyInterface("Start",j)),J.e.setGroupProperty(PropertyInterface("End",j)),J.o.setGroupProperty(PropertyInterface("Offset",j)),Bn.propertyIndex=w.ix,Bn.propertyGroup=Fn,Object.defineProperties(Bn,{start:{get:ExpressionPropertyInterface(J.s)},end:{get:ExpressionPropertyInterface(J.e)},offset:{get:ExpressionPropertyInterface(J.o)},_name:{value:w.nm}}),Bn.mn=w.mn,Bn}function g(w,J,Fn){function Bn(vn){return w.a.ix===vn||vn==="Anchor Point"?Bn.anchorPoint:w.o.ix===vn||vn==="Opacity"?Bn.opacity:w.p.ix===vn||vn==="Position"?Bn.position:w.r.ix===vn||vn==="Rotation"||vn==="ADBE Vector Rotation"?Bn.rotation:w.s.ix===vn||vn==="Scale"?Bn.scale:w.sk&&w.sk.ix===vn||vn==="Skew"?Bn.skew:w.sa&&w.sa.ix===vn||vn==="Skew Axis"?Bn.skewAxis:null}var j=propertyGroupFactory(Bn,Fn);return J.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",j)),J.transform.mProps.p.setGroupProperty(PropertyInterface("Position",j)),J.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",j)),J.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",j)),J.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",j)),J.transform.mProps.sk&&(J.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",j)),J.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",j))),J.transform.op.setGroupProperty(PropertyInterface("Opacity",j)),Object.defineProperties(Bn,{opacity:{get:ExpressionPropertyInterface(J.transform.mProps.o)},position:{get:ExpressionPropertyInterface(J.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(J.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(J.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(J.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(J.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(J.transform.mProps.sa)},_name:{value:w.nm}}),Bn.ty="tr",Bn.mn=w.mn,Bn.propertyGroup=Fn,Bn}function y(w,J,Fn){function Bn(Pn){return w.p.ix===Pn?Bn.position:w.s.ix===Pn?Bn.size:null}var j=propertyGroupFactory(Bn,Fn);Bn.propertyIndex=w.ix;var vn=J.sh.ty==="tm"?J.sh.prop:J.sh;return vn.s.setGroupProperty(PropertyInterface("Size",j)),vn.p.setGroupProperty(PropertyInterface("Position",j)),Object.defineProperties(Bn,{size:{get:ExpressionPropertyInterface(vn.s)},position:{get:ExpressionPropertyInterface(vn.p)},_name:{value:w.nm}}),Bn.mn=w.mn,Bn}function b(w,J,Fn){function Bn(Pn){return w.p.ix===Pn?Bn.position:w.r.ix===Pn?Bn.rotation:w.pt.ix===Pn?Bn.points:w.or.ix===Pn||Pn==="ADBE Vector Star Outer Radius"?Bn.outerRadius:w.os.ix===Pn?Bn.outerRoundness:w.ir&&(w.ir.ix===Pn||Pn==="ADBE Vector Star Inner Radius")?Bn.innerRadius:w.is&&w.is.ix===Pn?Bn.innerRoundness:null}var j=propertyGroupFactory(Bn,Fn),vn=J.sh.ty==="tm"?J.sh.prop:J.sh;return Bn.propertyIndex=w.ix,vn.or.setGroupProperty(PropertyInterface("Outer Radius",j)),vn.os.setGroupProperty(PropertyInterface("Outer Roundness",j)),vn.pt.setGroupProperty(PropertyInterface("Points",j)),vn.p.setGroupProperty(PropertyInterface("Position",j)),vn.r.setGroupProperty(PropertyInterface("Rotation",j)),w.ir&&(vn.ir.setGroupProperty(PropertyInterface("Inner Radius",j)),vn.is.setGroupProperty(PropertyInterface("Inner Roundness",j))),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:w.nm}}),Bn.mn=w.mn,Bn}function gn(w,J,Fn){function Bn(Pn){return w.p.ix===Pn?Bn.position:w.r.ix===Pn?Bn.roundness:w.s.ix===Pn||Pn==="Size"||Pn==="ADBE Vector Rect Size"?Bn.size:null}var j=propertyGroupFactory(Bn,Fn),vn=J.sh.ty==="tm"?J.sh.prop:J.sh;return Bn.propertyIndex=w.ix,vn.p.setGroupProperty(PropertyInterface("Position",j)),vn.s.setGroupProperty(PropertyInterface("Size",j)),vn.r.setGroupProperty(PropertyInterface("Rotation",j)),Object.defineProperties(Bn,{position:{get:ExpressionPropertyInterface(vn.p)},roundness:{get:ExpressionPropertyInterface(vn.r)},size:{get:ExpressionPropertyInterface(vn.s)},_name:{value:w.nm}}),Bn.mn=w.mn,Bn}function x(w,J,Fn){function Bn(Pn){return w.r.ix===Pn||Pn==="Round Corners 1"?Bn.radius:null}var j=propertyGroupFactory(Bn,Fn),vn=J;return Bn.propertyIndex=w.ix,vn.rd.setGroupProperty(PropertyInterface("Radius",j)),Object.defineProperties(Bn,{radius:{get:ExpressionPropertyInterface(vn.rd)},_name:{value:w.nm}}),Bn.mn=w.mn,Bn}function re(w,J,Fn){function Bn(Pn){return w.c.ix===Pn||Pn==="Copies"?Bn.copies:w.o.ix===Pn||Pn==="Offset"?Bn.offset:null}var j=propertyGroupFactory(Bn,Fn),vn=J;return Bn.propertyIndex=w.ix,vn.c.setGroupProperty(PropertyInterface("Copies",j)),vn.o.setGroupProperty(PropertyInterface("Offset",j)),Object.defineProperties(Bn,{copies:{get:ExpressionPropertyInterface(vn.c)},offset:{get:ExpressionPropertyInterface(vn.o)},_name:{value:w.nm}}),Bn.mn=w.mn,Bn}return function(w,J,Fn){var Bn;function j(Pn){if(typeof Pn=="number")return Pn=Pn===void 0?1:Pn,Pn===0?Fn:Bn[Pn-1];for(var Rn=0,zn=Bn.length;Rn<zn;){if(Bn[Rn]._name===Pn)return Bn[Rn];Rn+=1}return null}function vn(){return Fn}return j.propertyGroup=propertyGroupFactory(j,vn),Bn=c(w,J,j.propertyGroup),j.numProperties=Bn.length,j._name="Contents",j}}(),TextExpressionInterface=function(){return function(c){var u;function f(d){switch(d){case"ADBE Text Document":return f.sourceText;default:return null}}return Object.defineProperty(f,"sourceText",{get:function(){c.textProperty.getValue();var h=c.textProperty.currentData.t;return(!u||h!==u.value)&&(u=new String(h),u.value=h||new String(h),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(d){var h="",v=d.getFootageData();function p(){return h="",v=d.getFootageData(),m}function m(g){if(v[g])return h=g,v=v[g],_typeof(v)==="object"?m:v;var y=g.indexOf(h);if(y!==-1){var b=parseInt(g.substr(y+h.length),10);return v=v[b],_typeof(v)==="object"?m:v}return""}return p},u=function(d){function h(v){return v==="Outline"?h.outlineInterface():null}return h._name="Outline",h.outlineInterface=c(d),h};return function(f){function d(h){return h==="Data"?d.dataInterface:null}return d._name="Data",d.dataInterface=u(f),d}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(c){return interfaces[c]||null}var expressionHelpers=function(){function c(p,m,g){m.x&&(g.k=!0,g.x=!0,g.initiateExpression=ExpressionManager.initiateExpression,g.effectsSequence.push(g.initiateExpression(p,m,g).bind(g)))}function u(p){return p*=this.elem.globalData.frameRate,p-=this.offsetTime,p!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<p?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(p,this._cachingAtTime),this._cachingAtTime.lastFrame=p),this._cachingAtTime.value}function f(p){var m=-.01,g=this.getValueAtTime(p),y=this.getValueAtTime(p+m),b=0;if(g.length){var gn;for(gn=0;gn<g.length;gn+=1)b+=Math.pow(y[gn]-g[gn],2);b=Math.sqrt(b)*100}else b=0;return b}function d(p){if(this.vel!==void 0)return this.vel;var m=-.001,g=this.getValueAtTime(p),y=this.getValueAtTime(p+m),b;if(g.length){b=createTypedArray("float32",g.length);var gn;for(gn=0;gn<g.length;gn+=1)b[gn]=(y[gn]-g[gn])/m}else b=(y-g)/m;return b}function h(){return this.pv}function v(p){this.propertyGroup=p}return{searchExpressions:c,getSpeedAtTime:f,getVelocityAtTime:d,getValueAtTime:u,getStaticValueAtTime:h,setGroupProperty:v}}();function addPropertyDecorator(){function c(x,re,w){if(!this.k||!this.keyframes)return this.pv;x=x?x.toLowerCase():"";var J=this.comp.renderedFrame,Fn=this.keyframes,Bn=Fn[Fn.length-1].t;if(J<=Bn)return this.pv;var j,vn;w?(re?j=Math.abs(Bn-this.elem.comp.globalData.frameRate*re):j=Math.max(0,Bn-this.elem.data.ip),vn=Bn-j):((!re||re>Fn.length-1)&&(re=Fn.length-1),vn=Fn[Fn.length-1-re].t,j=Bn-vn);var Pn,Rn,zn;if(x==="pingpong"){var Un=Math.floor((J-vn)/j);if(Un%2!==0)return this.getValueAtTime((j-(J-vn)%j+vn)/this.comp.globalData.frameRate,0)}else if(x==="offset"){var qn=this.getValueAtTime(vn/this.comp.globalData.frameRate,0),Qn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),Jn=this.getValueAtTime(((J-vn)%j+vn)/this.comp.globalData.frameRate,0),Zn=Math.floor((J-vn)/j);if(this.pv.length){for(zn=new Array(qn.length),Rn=zn.length,Pn=0;Pn<Rn;Pn+=1)zn[Pn]=(Qn[Pn]-qn[Pn])*Zn+Jn[Pn];return zn}return(Qn-qn)*Zn+Jn}else if(x==="continue"){var Xn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),nr=this.getValueAtTime((Bn-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(zn=new Array(Xn.length),Rn=zn.length,Pn=0;Pn<Rn;Pn+=1)zn[Pn]=Xn[Pn]+(Xn[Pn]-nr[Pn])*((J-Bn)/this.comp.globalData.frameRate)/5e-4;return zn}return Xn+(Xn-nr)*((J-Bn)/.001)}return this.getValueAtTime(((J-vn)%j+vn)/this.comp.globalData.frameRate,0)}function u(x,re,w){if(!this.k)return this.pv;x=x?x.toLowerCase():"";var J=this.comp.renderedFrame,Fn=this.keyframes,Bn=Fn[0].t;if(J>=Bn)return this.pv;var j,vn;w?(re?j=Math.abs(this.elem.comp.globalData.frameRate*re):j=Math.max(0,this.elem.data.op-Bn),vn=Bn+j):((!re||re>Fn.length-1)&&(re=Fn.length-1),vn=Fn[re].t,j=vn-Bn);var Pn,Rn,zn;if(x==="pingpong"){var Un=Math.floor((Bn-J)/j);if(Un%2===0)return this.getValueAtTime(((Bn-J)%j+Bn)/this.comp.globalData.frameRate,0)}else if(x==="offset"){var qn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),Qn=this.getValueAtTime(vn/this.comp.globalData.frameRate,0),Jn=this.getValueAtTime((j-(Bn-J)%j+Bn)/this.comp.globalData.frameRate,0),Zn=Math.floor((Bn-J)/j)+1;if(this.pv.length){for(zn=new Array(qn.length),Rn=zn.length,Pn=0;Pn<Rn;Pn+=1)zn[Pn]=Jn[Pn]-(Qn[Pn]-qn[Pn])*Zn;return zn}return Jn-(Qn-qn)*Zn}else if(x==="continue"){var Xn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),nr=this.getValueAtTime((Bn+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(zn=new Array(Xn.length),Rn=zn.length,Pn=0;Pn<Rn;Pn+=1)zn[Pn]=Xn[Pn]+(Xn[Pn]-nr[Pn])*(Bn-J)/.001;return zn}return Xn+(Xn-nr)*(Bn-J)/.001}return this.getValueAtTime((j-((Bn-J)%j+Bn))/this.comp.globalData.frameRate,0)}function f(x,re){if(!this.k)return this.pv;if(x=(x||.4)*.5,re=Math.floor(re||5),re<=1)return this.pv;var w=this.comp.renderedFrame/this.comp.globalData.frameRate,J=w-x,Fn=w+x,Bn=re>1?(Fn-J)/(re-1):1,j=0,vn=0,Pn;this.pv.length?Pn=createTypedArray("float32",this.pv.length):Pn=0;for(var Rn;j<re;){if(Rn=this.getValueAtTime(J+j*Bn),this.pv.length)for(vn=0;vn<this.pv.length;vn+=1)Pn[vn]+=Rn[vn];else Pn+=Rn;j+=1}if(this.pv.length)for(vn=0;vn<this.pv.length;vn+=1)Pn[vn]/=re;else Pn/=re;return Pn}function d(x){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var re=this._transformCachingAtTime.v;if(re.cloneFromProps(this.pre.props),this.appliedTransformations<1){var w=this.a.getValueAtTime(x);re.translate(-w[0]*this.a.mult,-w[1]*this.a.mult,w[2]*this.a.mult)}if(this.appliedTransformations<2){var J=this.s.getValueAtTime(x);re.scale(J[0]*this.s.mult,J[1]*this.s.mult,J[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var Fn=this.sk.getValueAtTime(x),Bn=this.sa.getValueAtTime(x);re.skewFromAxis(-Fn*this.sk.mult,Bn*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var j=this.r.getValueAtTime(x);re.rotate(-j*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var vn=this.rz.getValueAtTime(x),Pn=this.ry.getValueAtTime(x),Rn=this.rx.getValueAtTime(x),zn=this.or.getValueAtTime(x);re.rotateZ(-vn*this.rz.mult).rotateY(Pn*this.ry.mult).rotateX(Rn*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(x),qn=this.py.getValueAtTime(x);if(this.data.p.z){var Qn=this.pz.getValueAtTime(x);re.translate(Un*this.px.mult,qn*this.py.mult,-Qn*this.pz.mult)}else re.translate(Un*this.px.mult,qn*this.py.mult,0)}else{var Jn=this.p.getValueAtTime(x);re.translate(Jn[0]*this.p.mult,Jn[1]*this.p.mult,-Jn[2]*this.p.mult)}return re}function h(){return this.v.clone(new Matrix)}var v=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(x,re,w){var J=v(x,re,w);return J.dynamicProperties.length?J.getValueAtTime=d.bind(J):J.getValueAtTime=h.bind(J),J.setGroupProperty=expressionHelpers.setGroupProperty,J};var p=PropertyFactory.getProp;PropertyFactory.getProp=function(x,re,w,J,Fn){var Bn=p(x,re,w,J,Fn);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=re.a===1?re.k.length:0,Bn.propertyIndex=re.ix;var j=0;return w!==0&&(j=createTypedArray("float32",re.a===1?re.k[0].s.length:re.k.length)),Bn._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:j},expressionHelpers.searchExpressions(x,re,Bn),Bn.k&&Fn.addDynamicProperty(Bn),Bn};function m(x){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),x*=this.elem.globalData.frameRate,x-=this.offsetTime,x!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<x?this._caching.lastIndex:0,this._cachingAtTime.lastTime=x,this.interpolateShape(x,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var g=ShapePropertyFactory.getConstructorFunction(),y=ShapePropertyFactory.getKeyframedConstructorFunction();function b(){}b.prototype={vertices:function(re,w){this.k&&this.getValue();var J=this.v;w!==void 0&&(J=this.getValueAtTime(w,0));var Fn,Bn=J._length,j=J[re],vn=J.v,Pn=createSizedArray(Bn);for(Fn=0;Fn<Bn;Fn+=1)re==="i"||re==="o"?Pn[Fn]=[j[Fn][0]-vn[Fn][0],j[Fn][1]-vn[Fn][1]]:Pn[Fn]=[j[Fn][0],j[Fn][1]];return Pn},points:function(re){return this.vertices("v",re)},inTangents:function(re){return this.vertices("i",re)},outTangents:function(re){return this.vertices("o",re)},isClosed:function(){return this.v.c},pointOnPath:function(re,w){var J=this.v;w!==void 0&&(J=this.getValueAtTime(w,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(J));for(var Fn=this._segmentsLength,Bn=Fn.lengths,j=Fn.totalLength*re,vn=0,Pn=Bn.length,Rn=0,zn;vn<Pn;){if(Rn+Bn[vn].addedLength>j){var Un=vn,qn=J.c&&vn===Pn-1?0:vn+1,Qn=(j-Rn)/Bn[vn].addedLength;zn=bez.getPointInSegment(J.v[Un],J.v[qn],J.o[Un],J.i[qn],Qn,Bn[vn]);break}else Rn+=Bn[vn].addedLength;vn+=1}return zn||(zn=J.c?[J.v[0][0],J.v[0][1]]:[J.v[J._length-1][0],J.v[J._length-1][1]]),zn},vectorOnPath:function(re,w,J){re==1?re=this.v.c:re==0&&(re=.999);var Fn=this.pointOnPath(re,w),Bn=this.pointOnPath(re+.001,w),j=Bn[0]-Fn[0],vn=Bn[1]-Fn[1],Pn=Math.sqrt(Math.pow(j,2)+Math.pow(vn,2));if(Pn===0)return[0,0];var Rn=J==="tangent"?[j/Pn,vn/Pn]:[-vn/Pn,j/Pn];return Rn},tangentOnPath:function(re,w){return this.vectorOnPath(re,w,"tangent")},normalOnPath:function(re,w){return this.vectorOnPath(re,w,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([b],g),extendPrototype([b],y),y.prototype.getValueAtTime=m,y.prototype.initiateExpression=ExpressionManager.initiateExpression;var gn=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(x,re,w,J,Fn){var Bn=gn(x,re,w,J,Fn);return Bn.propertyIndex=re.ix,Bn.lock=!1,w===3?expressionHelpers.searchExpressions(x,re.pt,Bn):w===4&&expressionHelpers.searchExpressions(x,re.ks,Bn),Bn.k&&x.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 d=this.calculateExpression(f);if(u.t!==d){var h={};return this.copyData(h,u),h.t=d.toString(),h.__complete=!1,h}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 d=createNS("feMerge");d.setAttribute("result",u);var h,v;for(v=0;v<f.length;v+=1)h=createNS("feMergeNode"),h.setAttribute("in",f[v]),d.appendChild(h),d.appendChild(h);return d}};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,d,h){this.filterManager=u;var v=createNS("feColorMatrix");v.setAttribute("type","matrix"),v.setAttribute("color-interpolation-filters","linearRGB"),v.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=v,v.setAttribute("result",d+"_tint_1"),c.appendChild(v),v=createNS("feColorMatrix"),v.setAttribute("type","matrix"),v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),v.setAttribute("result",d+"_tint_2"),c.appendChild(v),this.matrixFilter=v;var p=this.createMergeNode(d,[h,d+"_tint_1",d+"_tint_2"]);c.appendChild(p)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=this.filterManager.effectElements[0].p.v,f=this.filterManager.effectElements[1].p.v,d=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+d+" 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,d){this.filterManager=u;var h=createNS("feColorMatrix");h.setAttribute("type","matrix"),h.setAttribute("color-interpolation-filters","sRGB"),h.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),h.setAttribute("result",d),c.appendChild(h),this.matrixFilter=h}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,d,h;for(this.filterManager.effectElements[1].p.v===1?(h=this.elem.maskManager.masksProperties.length,d=0):(d=this.filterManager.effectElements[0].p.v-1,h=d+1),f=createNS("g"),f.setAttribute("fill","none"),f.setAttribute("stroke-linecap","round"),f.setAttribute("stroke-dashoffset",1),d;d<h;d+=1)u=createNS("path"),f.appendChild(u),this.paths.push({p:u,m:d});if(this.filterManager.effectElements[10].p.v===3){var v=createNS("mask"),p=createElementID();v.setAttribute("id",p),v.setAttribute("mask-type","alpha"),v.appendChild(f),this.elem.globalData.defs.appendChild(v);var m=createNS("g");for(m.setAttribute("mask","url("+getLocationHref()+"#"+p+")");c[0];)m.appendChild(c[0]);this.elem.layerElement.appendChild(m),this.masker=v,f.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(c=this.elem.layerElement.children||this.elem.layerElement.childNodes;c.length;)this.elem.layerElement.removeChild(c[0]);this.elem.layerElement.appendChild(f),this.elem.layerElement.removeAttribute("mask"),f.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=f},SVGStrokeEffect.prototype.renderFrame=function(c){this.initialized||this.initialize();var u,f=this.paths.length,d,h;for(u=0;u<f;u+=1)if(this.paths[u].m!==-1&&(d=this.elem.maskManager.viewData[this.paths[u].m],h=this.paths[u].p,(c||this.filterManager._mdf||d.prop._mdf)&&h.setAttribute("d",d.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||d.prop._mdf)){var v;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var p=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,m=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,g=h.getTotalLength();v="0 0 0 "+g*p+" ";var y=g*(m-p),b=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,gn=Math.floor(y/b),x;for(x=0;x<gn;x+=1)v+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";v+="0 "+g*10+" 0 0"}else v="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;h.setAttribute("stroke-dasharray",v)}if((c||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(c||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(c||this.filterManager.effectElements[3].p._mdf)){var re=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(re[0]*255)+","+bmFloor(re[1]*255)+","+bmFloor(re[2]*255)+")")}};function SVGTritoneFilter(c,u,f,d){this.filterManager=u;var h=createNS("feColorMatrix");h.setAttribute("type","matrix"),h.setAttribute("color-interpolation-filters","linearRGB"),h.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(h);var v=createNS("feComponentTransfer");v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("result",d),this.matrixFilter=v;var p=createNS("feFuncR");p.setAttribute("type","table"),v.appendChild(p),this.feFuncR=p;var m=createNS("feFuncG");m.setAttribute("type","table"),v.appendChild(m),this.feFuncG=m;var g=createNS("feFuncB");g.setAttribute("type","table"),v.appendChild(g),this.feFuncB=g,c.appendChild(v)}SVGTritoneFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=this.filterManager.effectElements[0].p.v,f=this.filterManager.effectElements[1].p.v,d=this.filterManager.effectElements[2].p.v,h=d[0]+" "+f[0]+" "+u[0],v=d[1]+" "+f[1]+" "+u[1],p=d[2]+" "+f[2]+" "+u[2];this.feFuncR.setAttribute("tableValues",h),this.feFuncG.setAttribute("tableValues",v),this.feFuncB.setAttribute("tableValues",p)}};function SVGProLevelsFilter(c,u,f,d){this.filterManager=u;var h=this.filterManager.effectElements,v=createNS("feComponentTransfer");(h[10].p.k||h[10].p.v!==0||h[11].p.k||h[11].p.v!==1||h[12].p.k||h[12].p.v!==1||h[13].p.k||h[13].p.v!==0||h[14].p.k||h[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",v)),(h[17].p.k||h[17].p.v!==0||h[18].p.k||h[18].p.v!==1||h[19].p.k||h[19].p.v!==1||h[20].p.k||h[20].p.v!==0||h[21].p.k||h[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",v)),(h[24].p.k||h[24].p.v!==0||h[25].p.k||h[25].p.v!==1||h[26].p.k||h[26].p.v!==1||h[27].p.k||h[27].p.v!==0||h[28].p.k||h[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",v)),(h[31].p.k||h[31].p.v!==0||h[32].p.k||h[32].p.v!==1||h[33].p.k||h[33].p.v!==1||h[34].p.k||h[34].p.v!==0||h[35].p.k||h[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",v)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(v.setAttribute("color-interpolation-filters","sRGB"),c.appendChild(v)),(h[3].p.k||h[3].p.v!==0||h[4].p.k||h[4].p.v!==1||h[5].p.k||h[5].p.v!==1||h[6].p.k||h[6].p.v!==0||h[7].p.k||h[7].p.v!==1)&&(v=createNS("feComponentTransfer"),v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("result",d),c.appendChild(v),this.feFuncRComposed=this.createFeFunc("feFuncR",v),this.feFuncGComposed=this.createFeFunc("feFuncG",v),this.feFuncBComposed=this.createFeFunc("feFuncB",v))}SVGProLevelsFilter.prototype.createFeFunc=function(c,u){var f=createNS(c);return f.setAttribute("type","table"),u.appendChild(f),f},SVGProLevelsFilter.prototype.getTableValue=function(c,u,f,d,h){for(var v=0,p=256,m,g=Math.min(c,u),y=Math.max(c,u),b=Array.call(null,{length:p}),gn,x=0,re=h-d,w=u-c;v<=256;)m=v/256,m<=g?gn=w<0?h:d:m>=y?gn=w<0?d:h:gn=d+re*Math.pow((m-c)/w,1/f),b[x]=gn,x+=1,v+=256/(p-1);return b.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,d,h){var v=u.container.globalData.renderConfig.filterSize,p=u.data.fs||v;c.setAttribute("x",p.x||v.x),c.setAttribute("y",p.y||v.y),c.setAttribute("width",p.width||v.width),c.setAttribute("height",p.height||v.height),this.filterManager=u;var m=createNS("feGaussianBlur");m.setAttribute("in","SourceAlpha"),m.setAttribute("result",d+"_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",d+"_drop_shadow_1"),g.setAttribute("result",d+"_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",d+"_drop_shadow_3"),this.feFlood=y,c.appendChild(y);var b=createNS("feComposite");b.setAttribute("in",d+"_drop_shadow_3"),b.setAttribute("in2",d+"_drop_shadow_2"),b.setAttribute("operator","in"),b.setAttribute("result",d+"_drop_shadow_4"),c.appendChild(b);var gn=this.createMergeNode(d,[d+"_drop_shadow_4",h]);c.appendChild(gn)}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,d=(this.filterManager.effectElements[2].p.v-90)*degToRads,h=f*Math.cos(d),v=f*Math.sin(d);this.feOffset.setAttribute("dx",h),this.feOffset.setAttribute("dy",v)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(c,u,f){this.initialized=!1,this.filterManager=u,this.filterElem=c,this.elem=f,f.matteElement=createNS("g"),f.matteElement.appendChild(f.layerElement),f.matteElement.appendChild(f.transformedElement),f.baseElement=f.matteElement}SVGMatte3Effect.prototype.findSymbol=function(c){for(var u=0,f=_svgMatteSymbols.length;u<f;){if(_svgMatteSymbols[u]===c)return _svgMatteSymbols[u];u+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(c,u){var f=c.layerElement.parentNode;if(f){for(var d=f.children,h=0,v=d.length;h<v&&d[h]!==c.layerElement;)h+=1;var p;h<=v-2&&(p=d[h+1]);var m=createNS("use");m.setAttribute("href","#"+u),p?f.insertBefore(m,p):f.appendChild(m)}},SVGMatte3Effect.prototype.setElementAsMask=function(c,u){if(!this.findSymbol(u)){var f=createElementID(),d=createNS("mask");d.setAttribute("id",u.layerId),d.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(u);var h=c.globalData.defs;h.appendChild(d);var v=createNS("symbol");v.setAttribute("id",f),this.replaceInParent(u,f),v.appendChild(u.layerElement),h.appendChild(v);var p=createNS("use");p.setAttribute("href","#"+f),d.appendChild(p),u.data.hd=!1,u.show()}c.setMatte(u.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var c=this.filterManager.effectElements[0].p.v,u=this.elem.comp.elements,f=0,d=u.length;f<d;)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,d){c.setAttribute("x","-100%"),c.setAttribute("y","-100%"),c.setAttribute("width","300%"),c.setAttribute("height","300%"),this.filterManager=u;var h=createNS("feGaussianBlur");h.setAttribute("result",d),c.appendChild(h),this.feGaussianBlur=h}SVGGaussianBlurEffect.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=.3,f=this.filterManager.effectElements[0].p.v*u,d=this.filterManager.effectElements[1].p.v,h=d==3?0:f,v=d==2?0:f;this.feGaussianBlur.setAttribute("stdDeviation",h+" "+v);var p=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",p)}};function TransformEffect(){}TransformEffect.prototype.init=function(c){this.effectsManager=c,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(c){if(this._opMdf=!1,this._mdf=!1,c||this.effectsManager._mdf){var u=this.effectsManager.effectElements,f=u[0].p.v,d=u[1].p.v,h=u[2].p.v===1,v=u[3].p.v,p=h?v:u[4].p.v,m=u[5].p.v,g=u[6].p.v,y=u[7].p.v;this.matrix.reset(),this.matrix.translate(-f[0],-f[1],f[2]),this.matrix.scale(p*.01,v*.01,1),this.matrix.rotate(-y*degToRads),this.matrix.skewFromAxis(-m*degToRads,(g+90)*degToRads),this.matrix.translate(d[0],d[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:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),h=vue.computed(()=>{const w={},{actionType:J,linkPage:Fn,href:Bn}=c,{requestParams:j={}}=window.config;return vue.unref(d)!=="design"&&J==="close"&&c.isDrillShow&&!j.drillFlag&&(w.display="none"),(J==="link"&&(Fn||Bn)||!J&&(Fn||Bn)||J==="close")&&(w.cursor="pointer"),{...vue.unref(u),...w}}),{getGlobalModel:v,setGlobalModel:p,getRecordValueByKeyName:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:w=>{},setGlobalModel:(w,J)=>{},getRecordValueByKeyName:w=>{}}),{setTemplateData:g}=vue.inject("templateOperate",{setTemplateData:w=>{}}),b=useEmitEvent(c)("click",()=>{const w=v(c.id);if(p(c.id,{...w,type:c.type,RECORD:c.data||{}}),setTimeout(()=>{p(c.id,{...w,type:c.type,RECORD:{}})},0),[void 0,"link"].includes(c.actionType)){if(!c.linkPage&&!c.href)return;handleJumpLink(c,{pageMode:vue.unref(d),targetTemplate:c.targetTemplate,getRecordValueByKeyName:m,setTemplateData:g})}else c.actionType==="close"&&window.close()}),gn=vue.ref(),x=vue.ref(),re=()=>{const{directory:w}=c.animationSource;c.isAnimation&&gn.value&&w&&(x.value=lottie.loadAnimation({name:`${c.keyName}-lotTie`,container:gn.value,renderer:"svg",loop:!0,autoplay:!0,path:useImagePath(w)+"data.json"}),vue.unref(x).setSpeed(1))};return vue.watch(()=>[c.isAnimation,c.animationSource],([w])=>{w&&vue.nextTick(()=>{re()})},{immediate:!0,deep:!0}),useOnEvent(c,{click:b}),{customStyle:h,myImgUrl:f,animation:gn,pageMode:d,onClick:b}}}),__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$7(c,u,f,d,h,v){var p;return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[c.isAnimation?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.animationSource.directory?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["ecan-image",c.pageMode==="design"?"component":""]),ref:"animation",style:vue.normalizeStyle(c.customStyle),onClick:u[0]||(u[0]=(...m)=>c.onClick&&c.onClick(...m))},null,6)):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.myImgUrl!==""?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:vue.normalizeClass(["ecan-image",c.pageMode==="design"?"component":""]),style:vue.normalizeStyle(c.customStyle),src:c.myImgUrl,onClick:u[1]||(u[1]=(...m)=>c.onClick&&c.onClick(...m))},null,14,_hoisted_1$3)):vue.createCommentVNode("",!0)],64)),(c.isAnimation?!((p=c.animationSource)!=null&&p.directory):!c.myImgUrl)?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["image-placeholder",c.pageMode==="design"?"component":""]),style:vue.normalizeStyle(c.customStyle)}," 请上传图片 ",6)):vue.createCommentVNode("",!0)],64)}const Image$1=_export_sfc$1(__default__$1,[["render",_sfc_render$7],["__scopeId","data-v-8b128e89"]]),EcanImage=withInstall$1(Image$1),iframeProps={...props$1,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web",transParams:[]},iframeComponentProps=transformToComponentProps(iframeProps),_sfc_main$5=vue.defineComponent({name:"EcanIframe",props:{...iframeComponentProps},setup(c){const u=usePickComponentStyle(c),{contextRequestUrl:f}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:""}),{getRecordValueByKeyName:d}=vue.inject(GLOBAL_MODEL,{getRecordValueByKeyName:v=>{}}),h=vue.computed(()=>{var p;let v=hn(c.link);if(c.linkType==="erd"&&v!=null){let m=vue.unref(f);m[m.length-1]==="/"?m+="erdReport":m+="/erdReport",v=`${ERD_URL||m}?_t=0&uid=${v}`}if((p=c.transParams)!=null&&p.length){v.includes("?")?v+="&":v+="?";const m=[];for(const g of c.transParams){const y=d(String(g.fieldName));m.push(`${g.keyName}=${y}`)}v+=m.join("&")}return v});return{style:u,myLink:h}}}),Iframe_vue_vue_type_style_index_0_scoped_c0393b8d_lang="",_hoisted_1$2=["src"];function _sfc_render$6(c,u,f,d,h,v){return c.myLink?(vue.openBlock(),vue.createElementBlock("iframe",{key:0,src:c.myLink,style:vue.normalizeStyle(c.style)},null,12,_hoisted_1$2)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"iframe-placeholder",style:vue.normalizeStyle(c.style)}," 请填写网页链接 ",4))}const Iframe=_export_sfc$1(_sfc_main$5,[["render",_sfc_render$6],["__scopeId","data-v-c0393b8d"]]),EcanIframe=withInstall$1(Iframe),tableProps={...props$1,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:d,theme:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",height:null,theme:"light"}),v=vue.ref(!1),p=vue.computed(()=>vue.unref(f)!=="design"&&c.isAutoScroll),m=vue.ref({}),g=vue.ref(!1),y=vue.computed(()=>{const Sr=lodashEs.cloneDeep(c.columns);return c.isUseSeq&&Sr.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&Sr.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),Sr}),b=vue.ref(),gn=vue.ref(!1),x=usePickComponentStyle(c),re=vue.ref([]),w=vue.computed(()=>{const{height:Sr}=c;return typeof Sr=="string"?Sr:Sr.suffix==="px"?Sr.value+"px":Sr.suffix==="%"?parseFloat(vue.unref(d))*(Sr.value/100)+"px":"0"}),J=vue.computed(()=>c.scrollX),Fn=vue.ref(parseFloat(w.value)),Bn=()=>{let Sr=0;switch(c.size){case"small":Sr=50;break;case"middle":Sr=53;break;default:Sr=65;break}return Sr},j=vue.ref(0),vn=vue.ref(""),Pn=vue.ref(0);vue.watchEffect(()=>{var Sr;(Sr=re.value)!=null&&Sr.length&&w.value&&setTimeout(()=>{let kr=parseFloat(w.value),Tr=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Lr=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const jr=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`);let $r=0;if(Lr&&(kr-=(Lr==null?void 0:Lr.clientHeight)||0),jr&&c.isSummaryFixed&&($r=(jr==null?void 0:jr.clientHeight)||0,kr-=$r),c.paginationShow&&!c.isAutoScroll){let Pr=0;Pr=Bn(),Pr&&(kr-=Pr)}(Tr==null?void 0:Tr.clientHeight)>kr?Fn.value=kr:Fn.value=0,vue.nextTick(()=>{if($r){const Pr=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`),qr=(Pr==null?void 0:Pr.clientHeight)||0;$r!==qr&&vue.unref(Fn)&&(Fn.value=kr+$r-qr)}c.isAutoScroll&&v.value&&setTimeout(()=>{var Kr;const Pr=document.querySelector(`#ecanTable-${c.id} .ant-table-body`);Tr=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Lr=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const qr=Pr||Tr;j.value=(qr==null?void 0:qr.clientHeight)||0,Pn.value=(Lr==null?void 0:Lr.clientHeight)||0,m.value={height:((Tr==null?void 0:Tr.clientHeight)||0)+"px"};const Wr=document.querySelector(`#ecanTable-${c.id} .ant-table-body > table`);if(vn.value=(Kr=document.querySelector(`#ecanTable-${c.id} .ant-table`))==null?void 0:Kr.className,Wr){const Jr=Wr.cloneNode(!0);Wr.style.visibility="hidden",setTimeout(()=>{qr==null||qr.setAttribute("id","hiddenTableBody")},0);const Zr=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap`);if(Zr!=null&&Zr.length){for(const si of Zr)si.append(Jr.cloneNode(!0));const ei=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap .ant-table-cell`);if(ei!=null&&ei.length)for(const si of ei)Rn(si);const oi=document.querySelector(`#ecanTable-${c.id} .vue3-marquee`);oi&&oi.addEventListener("scroll",si=>{var fi;document.querySelector(`#ecanTable-${c.id} .ant-table-header`).scrollLeft=((fi=si==null?void 0:si.target)==null?void 0:fi.scrollLeft)||0})}}},0)})},0)});function Rn(Sr){Sr.addEventListener("click",kr=>{const Lr=zn(kr.target).getAttribute("dix");if(Lr){const jr=document.querySelector(`#ecanTable-${c.id} #hiddenTableBody td[dix="${Lr}"]`);jr&&jr.click()}})}function zn(Sr){return Sr.className.includes("ant-table-cell")?Sr:zn(Sr.parentElement)}const Un=vue.ref([]),qn=vue.ref([]),Qn=vue.ref([]),Jn=vue.ref([]),Zn=vue.ref(0),Xn=vue.ref(1),nr=vue.ref(c.paginationPageSize||10),sr=vue.reactive([]),ur=(Sr,kr)=>{let Tr="";return Sr.forEach((Lr,jr)=>{const{value:$r,rule:Pr}=Lr;Lr.conditions?Tr+=`(${ur(Lr.conditions,Lr.join)})`:$r&&Pr&&(Tr+=`value ${Pr} '${$r}'`),Tr+=`${jr===Sr.length-1?"":kr?" "+kr+" ":""}`}),Tr},Hn=(Sr=[])=>{var kr,Tr;if(Array.isArray(Sr)&&Sr.length>0){let Lr=Sr.length;const jr=c.columnsFixedNum;if(c.dataType==="indicator"&&((kr=vue.unref(y))!=null&&kr.length)&&!vue.unref(y).find($r=>{var Pr;return(Pr=$r.children)==null?void 0:Pr.length})){const{graphicConfig:{indicators:$r=[]}}=c;Sr.forEach((Pr,qr)=>{if(vue.unref(y)[qr])for(const Jr in vue.unref(y)[qr])["dataIndex","title"].includes(Jr)||(Pr[Jr]=vue.unref(y)[qr][Jr]);const Wr=$r.find(Jr=>Jr.label===Pr.title),{showLabel:Kr=""}=Wr||{};Kr&&(Pr.title=Kr)})}for(let $r=Lr-1;$r>=0;$r--)(Tr=Sr[$r])!=null&&Tr.isHidden&&Sr.splice($r,1);Lr=Sr.length;for(let $r=0;$r<Lr;$r++){const Pr=Sr[$r];if($r<jr?Pr.fixed="left":Pr.fixed=!1,c.isSortByFront&&Pr.sorter){const di=Pr.dataIndex;Pr.sorter=(pi,gi)=>pi[di]-gi[di]}const{cellAlign:qr="center",cellColor:Wr,dataIndex:Kr,title:Jr,tableFilter:Zr,headerCellAlign:ei,headerCellColor:oi,overflow:si,conditions:fi}=Pr;Zr&&(sr.push(Kr),Pr.filterOptionsInputValue="",Pr.filterCheckboxGroupValue=[],Pr.customFilterDropdown=!0,Pr.onFilter=(di,pi)=>pi[Kr].toString().toLowerCase().includes(di.toLowerCase())),fi&&(Pr.conditionCode=ur(fi)),Pr.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:c.headerFontSize,fontWeight:c.headerFontWeight,textAlign:ei||"center",color:oi||c.headerFontColor,borderBottomColor:c.borderColor,backgroundColor:c.headerBackgroundColor}}),Pr.customCell=(di,pi,gi)=>({style:{textAlign:qr,color:Kn(gi)?c.linkTextColor:Wr||c.cellFontColor,backgroundColor:c.cellBackgroundColor,borderBottomColor:c.borderColor},class:{highlight:vue.unref(Mr)===pi&&c.clickHighlight,linkText:Kn(gi)},dix:gi.dataIndex+"_"+pi,onClick:Cr("click",()=>{const Ti=c.id,Ii=br(Ti);di={dataIndex:Kr,title:Jr,...di},hr(Ti,{...Ii,type:c.type,RECORD:di}),Mr.value=pi,setTimeout(()=>{if(!c.linkPage&&!c.href)return;let Pi=!1;(Kn(gi)||c.clickTarget!=="cell")&&(Pi=!0),Pi&&handleJumpLink(c,{pageMode:vue.unref(f),getRecordValueByKeyName:gr})},0)})}),si==="ellipsis"?Pr.ellipsis=!0:Pr.ellipsis=!1,Array.isArray(Pr.children)&&Hn(Pr.children)}}};function Kn(Sr){let kr=!1;return c.clickTarget==="cell"&&c.clickTargetColumns.includes(Sr.dataIndex)&&(kr=!0),kr}const Vn=(Sr=[])=>{var Tr;let kr=lodashEs.cloneDeep(Sr);return(Tr=vue.unref(Jn))!=null&&Tr.length&&(kr=lodashEs.cloneDeep(vue.unref(Jn))),c.isUseSeq&&kr.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&kr.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),Hn(kr),kr};vue.watch(nr,()=>{Xn.value=1,Vr(!1)}),vue.watch(b,Sr=>{gn.value=!!Sr}),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],([Sr,kr])=>{kr==="static"&&(qn.value=Sr)},{immediate:!0});const Gn=vue.ref({}),er=Sr=>{if(Array.isArray(Sr)){const kr=Sr.length,Tr=sr,Lr=Tr.length,jr={};for(let Pr=0;Pr<kr;Pr++){const qr=Sr[Pr];for(let Wr=0;Wr<Lr;Wr++){const Kr=Tr[Wr];if(jr[Kr])jr[Kr].add(qr[Kr]);else{const Jr=new Set;Jr.add(qr[Kr]),jr[Kr]=Jr}}}const $r={};for(const Pr in jr)if(Object.prototype.hasOwnProperty.call(jr,Pr)){const qr=jr[Pr],Wr=Array.from(qr);$r[Pr]=Wr.map(Kr=>({label:Kr,value:Kr}))}Gn.value=$r}};vue.watch(()=>[c.isReverse,Un.value,qn.value],()=>{const Sr=vue.unref(Un),kr=vue.unref(qn);if(er(kr),c.isReverse){const{columns:Tr,dataSource:Lr}=Wn(lodashEs.cloneDeep(Sr),lodashEs.cloneDeep(kr));Qn.value=Tr,re.value=Lr.map(jr=>({key:nanoid(6),...jr}))}else Qn.value=Sr,re.value=kr.map(Tr=>({key:nanoid(6),...Tr}))},{immediate:!0});const Wn=(Sr,kr)=>{const Tr=Sr[0],Lr=[{title:Tr.title,dataIndex:"col0",key:"col0",align:"center"}];for(let $r=0;$r<kr.length;$r++){const Pr=kr[$r],qr="col"+($r+1);Lr.push({title:Pr[Tr.dataIndex],dataIndex:qr,key:qr,align:"center"})}const jr=[];for(let $r=1;$r<Sr.length;$r++){const Pr=Sr[$r],qr={col0:Pr.title};for(let Wr=0;Wr<kr.length;Wr++){const Kr=kr[Wr];qr[`col${Wr+1}`]=Kr[Pr.dataIndex]}jr.push(qr)}return{columns:Lr,dataSource:jr}},or=vue.ref(""),cr=Sr=>{var Lr;const{rows:kr=[],total:Tr=0}=((Lr=Sr==null?void 0:Sr.data)==null?void 0:Lr.data)||{};if(Zn.value=Tr,Array.isArray(kr)&&(qn.value=kr),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:jr=[]}=c,$r=jr.find(Pr=>Pr.key==="dataSqlId");if(($r==null?void 0:$r.value)==="xt_jxzebg"){const Pr=kr.filter(qr=>!qr.绩效总额).map(qr=>qr.ORG_NAME);Pr!=null&&Pr.length&&vue.nextTick(()=>{antDesignVue.notification.warning({message:"提示",description:`当前时段${Pr.join("、")}绩效数据为空`,duration:3})})}}v.value=!0},ar=useRequestData(c),tr=async(Sr=!0,kr={})=>{try{Sr&&(g.value=!0),vue.unref(or)&&(kr.orderCondition=vue.unref(or)),c.paginationShow&&(kr={pageNum:vue.unref(Xn),pageSize:vue.unref(nr)||"10",layer:"1",...kr});const Tr=await ar(kr);cr(Tr)}catch(Tr){console.error(Tr)}finally{g.value=!1}},pr=({current:Sr},kr,Tr)=>{if(Xn.value=Sr,Tr&&Object.keys(Tr).length>0){const{field:Lr,order:jr}=Tr,Pr={ascend:"asc",descend:"desc"}[jr];Lr!=null&&Pr!=null&&Pr?or.value=Lr+" "+Pr:Pr||(or.value="")}c.isSortByFront||Vr(!1)},Yn=vue.computed(()=>{const Sr=c.simple,kr=[c.paginationPosition],Tr={};return c.isShowTotal&&(Tr.showTotal=Lr=>`共 ${Lr} 条数据`),c.paginationShow&&{simple:Sr,position:kr,total:vue.unref(Zn),current:vue.unref(Xn),pageSize:vue.unref(nr)||"10",showSizeChanger:!1,size:"large",...Tr}}),ir=Sr=>+Sr==1?"是":+Sr==0?"否":Sr,lr=(Sr,kr)=>{const{format:Tr,retentiondigit:Lr,customFormatter:jr,defaultVal:$r}=kr;let Pr="";if(Tr==null||Tr==="")Pr=Sr;else{const qr={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,boolean:ir,decimals:formatDecimals,custom:formatCustom};qr[Tr]||(Pr=""),Tr==="decimals"?Pr=qr[Tr](Sr,Lr)||"":Tr==="custom"?Pr=qr[Tr](Sr,jr)||"":Pr=qr[Tr](Sr)||""}return Pr||(Pr=$r),Pr},vr=Sr=>Sr==="contrast"?"upDown":"",dr=Sr=>{const{text:kr,format:Tr,declineColor:Lr="#39cf93",increaseColor:jr="#ff512e"}=Sr,$r={fontSize:c.fontSize};if(ci(Sr.dataIndex))return $r.display="flex",$r.justifyContent="center",$r.alignItems="center",$r;if(Tr==="contrast"){const Pr=parseFloat(kr+"");return Pr>=0?$r.color=jr:Pr<0&&($r.color=Lr),$r}else return{}},yr=vue.computed(()=>{const{fontSize:Sr}=c;return{width:Sr,height:Sr,textIndent:`-${parseFloat(Sr)*2}px`,overflow:"hidden"}}),fr=Sr=>{const{text:kr,declineColor:Tr="#39cf93",increaseColor:Lr="#ff512e"}=Sr,{fontSize:jr}=c,$r=parseFloat(kr+""),Pr={width:jr,verticalAlign:"unset"};return $r>=0?Pr.filter=`drop-shadow(${Lr||"#ff512e"} ${jr} -1px)`:$r<0&&(Pr.filter=`drop-shadow(${Tr||"#39cf93"} ${jr} -1px)`),Pr},mr=Sr=>{const kr=parseFloat(Sr+"");if(kr>=0)return goUp;if(kr<0)return goDown},xr=(Sr,kr,Tr,Lr)=>{var qr,Wr,Kr;const jr="#39cf93",$r="#ff512e",Pr=c.conditionList.find(Jr=>Jr.dataIndex===Sr.dataIndex);if((qr=Pr==null?void 0:Pr.conditions)!=null&&qr.length){const{fontSize:Jr}=c,Zr={style:{width:Jr,verticalAlign:"middle"},src:""};for(const ei of Pr.conditions){const oi=((Wr=ei==null?void 0:ei.property)==null?void 0:Wr.icon)||"";let si=((Kr=ei==null?void 0:ei.property)==null?void 0:Kr.iconColor)||"";if(oi){let fi=!1;if(ei.rule&&ei.value){const di=`${ei.field} ${ei.rule} '${ei.value}'`;fi=pn(di,{...Tr,value:kr})}else fi=!0;fi&&(oi==="increase"?Zr.src=topArrow:oi==="decline"&&(Zr.src=downArrow),si||(oi==="increase"?si=$r:oi==="decline"&&(si=jr)),Zr.style.filter=`drop-shadow(${si} ${Jr} -1px)`)}}if(Lr===1)return Zr.style;if(Lr===2)return Zr.src}else return""},Cr=useEmitEvent(c),{getGlobalModel:br,setGlobalModel:hr,getRecordValueByKeyName:gr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Sr=>{},setGlobalModel:(Sr,kr)=>{},getRecordValueByKeyName:Sr=>{}});hr(c.id,{type:c.type,RECORD:""});const Er=(Sr=[],kr=[])=>{let Tr=Sr.map(Lr=>({title:Lr,dataIndex:Lr,key:Lr}));vue.unref(y).find(Lr=>{var jr;return(jr=Lr.children)==null?void 0:jr.length})&&(Tr=lodashEs.cloneDeep(vue.unref(y))),Jn.value=lodashEs.cloneDeep(Tr),Un.value=Vn(Tr),qn.value=kr,v.value=!0},wr=Sr=>{var kr,Tr,Lr,jr;Er((Tr=(kr=Sr==null?void 0:Sr.data)==null?void 0:kr.data)==null?void 0:Tr.columns,(jr=(Lr=Sr==null?void 0:Sr.data)==null?void 0:Lr.data)==null?void 0:jr.rows)},_r=useIndicatorData(c,wr),Rr=async(Sr=!0)=>{try{Sr&&(g.value=!0);const kr=vue.unref(or).split(" "),Tr={};c.isSortByFront||(Tr.sort={order:kr[1],field:kr[0]});const Lr=await _r(Tr);wr(Lr)}catch(kr){console.error(kr)}finally{g.value=!1}},Mr=vue.ref(-1),{loadedData:Dr}=vue.inject(LOADED_DATA,{loadedData:{}}),Br=vue.ref(!1);vue.watch(Dr,Sr=>{if(c.dataType==="indicator"){const kr=getFixedValueDatas(c.graphicConfig);kr!=null&&kr.length&&(!vue.unref(Br)&&canRequestIndicator(c.graphicConfig,Sr)?(Br.value=!0,Vr()):canRequestIndicator(c.graphicConfig,Sr)||(Br.value=!1))}},{deep:!0});const Vr=async(Sr=!0)=>{switch(c.dataType){case"request":await tr(Sr);break;case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(Dr))&&await Rr(Sr);break}},Gr=()=>{const Sr=c.id,kr=br(Sr);hr(Sr,{...kr,type:c.type,RECORD:""})},Hr=vue.computed(()=>{const Sr=vue.unref(Qn);let kr=0;const{subTotalColumn:Tr,subTotalName:Lr}=c;Tr&&(kr=Sr.findIndex(Wr=>Wr.dataIndex===Tr),kr<0&&(kr=0));const jr=[];let $r=0;for(let Wr=0;Wr<Sr.length;Wr++){const Kr=Sr[Wr],{isCalcTotal:Jr}=Kr;Wr===kr?jr.push({...Kr,total:Lr}):Jr?(jr.push({...Kr,index:Wr,total:0}),$r++):jr.push({...Kr})}if($r===0)return[];const Pr=vue.unref(re),qr=Ur(jr);for(let Wr=0;Wr<qr.length;Wr++){const Kr=qr[Wr];let Jr=0;const{isCalcTotal:Zr,dataIndex:ei}=Kr;if(Zr===!0){for(let oi=0;oi<Pr.length;oi++){const fi=+Pr[oi][ei];isNaN(fi)||(Jr=new big_js.Big(Jr).add(fi).toNumber())}Kr.total=Jr}}return qr});function Ur(Sr){var Tr;const kr=[];for(const Lr of Sr)(Tr=Lr.children)!=null&&Tr.length?kr.push(...Ur(Lr.children)):kr.push(Lr);return kr}const{setRequest:Qr}=vue.inject(REQUEST_MODEL,{setRequest:Sr=>{}});typeof Qr=="function"&&Qr({id:c.id,requestFn:Vr,sortNum:c.requestSort}),u({refreshData:Vr});const Yr=(Sr="",kr)=>hn(Sr,kr),ni=Sr=>{if(Sr!=="event")return{self:"_self",blank:"_blank"}[Sr]},Ar=(Sr,kr="")=>{Sr==="event"&&window.parent.postMessage({type:"openPage",url:kr},"*")},Ir=(Sr,kr)=>{Sr(kr.filterCheckboxGroupValue)},Or=(Sr,kr)=>{Sr({confirm:!0}),kr.filterOptionsInputValue="",kr.filterCheckboxGroupValue=[]},Fr=()=>{},Nr=Sr=>{const kr=Sr.dataIndex;if(typeof kr=="string"){let Tr=vue.unref(Gn)[kr];const Lr=vue.unref(Sr.filterOptionsInputValue).trim();return Array.isArray(Tr)?(Tr=Tr.filter(jr=>typeof jr.label=="string"?jr.label.toLowerCase().includes(Lr.toLowerCase()):!0),Tr):[]}return[]},zr=async()=>{var Kr,Jr;const Sr="EXPORT_KEY";antDesignVue.message.loading({key:Sr,content:"正在导出...",duration:0});let kr=[];if(c.dataType==="static")kr=c.data;else if(c.dataType==="request"){const Zr={layer:"1"};vue.unref(or)&&(Zr.orderCondition=vue.unref(or));const ei=await ar(Zr);kr=((Jr=(Kr=ei==null?void 0:ei.data)==null?void 0:Kr.data)==null?void 0:Jr.rows)||{}}const Tr=vue.unref(Qn),Lr=[],jr=[];Tr==null||Tr.forEach(Zr=>{Lr.push(Zr.dataIndex),jr.push(Zr.title)});const $r=kr.map(Zr=>lodashEs.pick(Zr,Lr)),Pr=xlsx.utils.book_new(),qr=xlsx.utils.aoa_to_sheet([jr]),Wr=xlsx.utils.sheet_add_json(qr,$r,{skipHeader:!0,origin:"A2"});xlsx.utils.book_append_sheet(Pr,Wr,"sheet"),xlsx.writeFile(Pr,"表格数据.xlsx"),antDesignVue.message.success({key:Sr,content:"导出成功"})},Xr=(Sr,kr=2)=>{const Tr=+Sr*100;return isNaN(Tr)||Tr<=0?0:Tr>=100?100:Tr.toFixed(kr)};useOnEvent(c,{resetRecord:Gr,refreshData:Vr,exportTableData:zr});const ri=(Sr,kr)=>{let Tr=null;return c.stripedShow&&(Tr=kr%2===1?"table-striped":null),Tr},ii=vue.computed(()=>{var Tr;let Sr=0;const{isTableFill:kr}=c;if(kr&&w.value){let Lr=0;c.paginationShow&&((Tr=vue.unref(re))!=null&&Tr.length)&&(Lr=Bn()),Sr=parseFloat(vue.unref(w))-Lr}return Sr?Sr+"px":"100%"}),ui=vue.computed(()=>{const Sr=vue.unref(h)==="darkBlue";let kr="";return c.isTableFill&&(kr=c.cellBackgroundColor,kr||(li.value==="transparent"?Sr?kr="#071655":kr="transparent":Sr?kr=li.value:kr="transparent")),kr}),hi=vue.computed(()=>{let Sr="#071655";return c.headerBackgroundColor&&(Sr="transparent"),Sr}),li=vue.computed(()=>{let Sr="#071655";return(c.cellBackgroundColor||c.stripedShow&&c.stripedColor)&&(Sr="transparent"),Sr}),vi=vue.computed(()=>parseFloat(c.fontSize)+16),Si=vue.computed(()=>{let Sr="";const{paginationColor:kr,paginationBgColor:Tr,activePaginationColor:Lr,activePaginationBgColor:jr,hoverBackgroundColor:$r}=c;return kr&&(Sr+="p-color "),Tr&&(Sr+="p-bg-color "),Lr&&(Sr+="active-p-color "),jr&&(Sr+="active-p-bg-color "),$r&&(Sr+="hover-bg-color "),Sr}),yi=(Sr,kr)=>{if(ci(Sr.dataIndex))return!1;const{conditionCode:Tr}=Sr;return pn(Tr,{value:kr})},bi=(Sr,kr,Tr)=>{var Wr,Kr;const{overflow:Lr,conditionCode:jr,attribute:$r,dataIndex:Pr}=Sr,qr={};if(Lr==="ellipsis"&&(qr.overflow="hidden",qr.textOverflow="ellipsis"),jr&&($r!=null&&$r.color)&&yi(Sr,kr)&&(qr.color=$r.color),$r!=null&&$r.icon&&(Sr==null?void 0:Sr.cellAlign)==="right"&&(qr.display="flex",qr.alignItems="center",qr.justifyContent="flex-end"),ci(Pr)){const Jr=c.conditionList.find(Zr=>Zr.dataIndex===Pr);if((Wr=Jr==null?void 0:Jr.conditions)!=null&&Wr.length){for(const Zr of Jr.conditions)if((Kr=Zr==null?void 0:Zr.property)!=null&&Kr.color){let ei=!1;if(Zr.rule&&Zr.value){const oi=`${Zr.field} ${Zr.rule} '${Zr.value}'`;ei=pn(oi,{...Tr,value:kr})}else ei=!0;ei&&(qr.color=Zr.property.color)}}else delete qr.color}return qr},Ci=Sr=>{const{attribute:kr}=Sr;let Tr="";return kr!=null&&kr.icon&&(Tr=useImagePath(kr.icon)),Tr},xi=Sr=>{let kr={};return(Sr==null?void 0:Sr.cellAlign)==="right"?kr={marginRight:"5px"}:kr={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(c.fontSize)+6+"px",...kr}},ai=(Sr,kr)=>Sr||Sr===0?Sr:kr==null?void 0:kr.defaultVal;function ci(Sr){var Tr;const kr=c.conditionList.find(Lr=>Lr.dataIndex===Sr);return!!((Tr=kr==null?void 0:kr.conditions)!=null&&Tr.length)}return{x:J,y:Fn,style:x,pagination:Yn,formatFn:lr,contrastClass:vr,tableChange:pr,summaryList:Hr,loading:g,onTouchHrefEvent:Ar,handleHref:Yr,handleHrefTarget:ni,useRowIndex:Mr,tableColumns:Qn,tableDataSource:re,useFilterOptions:Nr,useSetSelectedKeys:Ir,onResetFilter:Or,onSearchFilterOptions:Fr,exportTableData:zr,handleProgressText:Xr,pageSizeVisible:gn,pageSize:nr,tableRef:b,rowClassName:ri,tableHeight:ii,tableBgColor:ui,tableHeaderBgColor:hi,tableBodyBgColor:li,getChgStyle:dr,chgBoxStyle:yr,getChgBoxImgStyle:fr,getChgBoxImgSrc:mr,seqIcon1,seqIcon2,seqIcon3,iconSize:vi,containerClass:Si,getCellStyle:bi,isMatchCondition:yi,getAttrImgSrc:Ci,getAttrImgStyle:xi,getCellText:ai,autoScrollHeight:j,autoScrollClass:vn,autoScrollTop:Pn,isScroll:p,scrollWrapStyle:m,isLinkStyle:Kn,hasConditionConfig:ci,formatTextByConditions:(Sr,kr,Tr)=>{var jr,$r;const Lr=c.conditionList.find(Pr=>Pr.dataIndex===Sr.dataIndex);if((jr=Lr==null?void 0:Lr.conditions)!=null&&jr.length){let Pr=kr;for(const qr of Lr.conditions){const Wr=(($r=qr==null?void 0:qr.property)==null?void 0:$r.formatText)||"";if(Wr){let Kr=!1;if(qr.rule&&qr.value){const Jr=`${qr.field} ${qr.rule} '${qr.value}'`;Kr=pn(Jr,{...Tr,value:kr})}else Kr=!0;Kr&&(Pr=hn(Wr,{textData:{...Tr,value:kr}}))}}return Pr}else return""},getChgByCondition:xr}}}),__injectCSSVars__=()=>{vue.useCssVars(c=>({"6e34feec":c.stripedColor,"5b8457c1":c.tableHeaderBgColor,"02c44b0c":c.tableBodyBgColor,"58d25174":c.paginationBgColor,"30821a8b":c.paginationColor,"0c7f2360":c.activePaginationBgColor,c13ab5b6:c.activePaginationColor,"9e848ed2":c.hoverBackgroundColor}))},__setup__=__default__.setup;__default__.setup=__setup__?(c,u)=>(__injectCSSVars__(),__setup__(c,u)):__injectCSSVars__;const Table_vue_vue_type_style_index_0_scoped_25ce906b_lang="",Table_vue_vue_type_style_index_1_lang="",_withScopeId=c=>(vue.pushScopeId("data-v-25ce906b"),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$5(c,u,f,d,h,v){const p=vue.resolveComponent("a-button"),m=vue.resolveComponent("down-outlined"),g=vue.resolveComponent("right-outlined"),y=vue.resolveComponent("a-input"),b=vue.resolveComponent("a-checkbox-group"),gn=vue.resolveComponent("a-table-summary-cell"),x=vue.resolveComponent("a-table-summary-row"),re=vue.resolveComponent("a-table-summary"),w=vue.resolveComponent("a-table"),J=vue.resolveComponent("marquee-scroll"),Fn=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(Fn,{loading:c.loading},{default:vue.withCtx(()=>{var Bn;return[c.isUseExport?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1,[vue.createVNode(p,{class:"export-button",onClick:c.exportTableData},{default:vue.withCtx(()=>[_hoisted_3]),_:1},8,["onClick"])])):vue.createCommentVNode("",!0),vue.createVNode(w,{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(j=>{var vn;return[(vn=j.record.children)!=null&&vn.length?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4,[j.expanded?(vue.openBlock(),vue.createBlock(m,{key:0,onClick:Pn=>j.onExpand(j.record,Pn)},null,8,["onClick"])):(vue.openBlock(),vue.createBlock(g,{key:1,onClick:Pn=>j.onExpand(j.record,Pn)},null,8,["onClick"]))])):(vue.openBlock(),vue.createElementBlock("span",_hoisted_5,[vue.createVNode(m)]))]}),customFilterDropdown:vue.withCtx(({column:j,setSelectedKeys:vn,confirm:Pn,clearFilters:Rn})=>[vue.createElementVNode("div",{class:"ecan-table-filter",style:vue.normalizeStyle({height:c.filterDropdownHeight})},[vue.createVNode(y,{value:j.filterOptionsInputValue,"onUpdate:value":zn=>j.filterOptionsInputValue=zn,placeholder:"请输入关键字",class:"filter-input",onChange:c.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),vue.createVNode(b,{value:j.filterCheckboxGroupValue,"onUpdate:value":zn=>j.filterCheckboxGroupValue=zn,class:"filter-checkbox",options:c.useFilterOptions(j),onChange:zn=>c.useSetSelectedKeys(vn,j)},null,8,["value","onUpdate:value","options","onChange"]),vue.createElementVNode("div",null,[vue.createVNode(p,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>Pn()},{default:vue.withCtx(()=>[_hoisted_6]),_:2},1032,["onClick"]),vue.createVNode(p,{size:"small",style:{width:"90px"},onClick:vue.withModifiers(zn=>c.onResetFilter(Rn,j),["stop"])},{default:vue.withCtx(()=>[_hoisted_7]),_:2},1032,["onClick"])])],4)]),bodyCell:vue.withCtx(({column:j,index:vn,text:Pn,record:Rn})=>{var zn,Un,qn,Qn,Jn,Zn;return[j.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)):j.dataIndex==="ACTION"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.actionList,(Xn,nr)=>(vue.openBlock(),vue.createElementBlock("div",{class:"action",key:nr},[vue.createElementVNode("a",{href:c.handleHref(Xn.href,Rn),target:c.handleHrefTarget(Xn.target),style:vue.normalizeStyle({color:Xn.color,fontSize:c.fontSize,fontWeight:c.fontWeight}),onClick:sr=>c.onTouchHrefEvent(Xn.target,c.handleHref(Xn.href,Rn))},vue.toDisplayString(Xn.title),13,_hoisted_13)]))),128))])):j.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14,[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({background:j.progressColor||"#1890ff",height:j.progressWidth||"18px",width:`${c.handleProgressText(Pn,j.progressTextDecimalPlaces)}%`})},null,4),vue.createElementVNode("div",{class:"progress-text",style:vue.normalizeStyle({color:+c.handleProgressText(Pn)<100?j.progressTextColor||"#333":j.progressFinishedTextColor||"#fff"})},vue.toDisplayString(c.handleProgressText(Pn,j.progressTextDecimalPlaces))+"% ",5)])):(vue.openBlock(),vue.createElementBlock("div",{key:3,style:vue.normalizeStyle({fontSize:c.fontSize,fontWeight:c.isLinkStyle(j)?"bold":c.fontWeight,...c.getCellStyle(j,Pn,Rn)})},[c.isMatchCondition(j,Pn)&&(j==null?void 0:j.cellAlign)==="right"&&((zn=j==null?void 0:j.attribute)!=null&&zn.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:0,style:vue.normalizeStyle(c.getAttrImgStyle(j)),src:c.getAttrImgSrc(j)},null,12,_hoisted_15)):vue.createCommentVNode("",!0),!c.hasConditionConfig(j.dataIndex)&&j.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:1,title:((Un=j==null?void 0:j.customFormatter)==null?void 0:Un.split("{value}")[0])||""},vue.toDisplayString(((qn=j==null?void 0:j.customFormatter)==null?void 0:qn.split("{value}")[0])||""),9,_hoisted_16)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass([c.contrastClass(j.format)]),style:vue.normalizeStyle(c.getChgStyle({...j,text:Pn})),title:c.hasConditionConfig(j.dataIndex)?c.formatTextByConditions(j,Pn,Rn):j.format!=null?c.formatFn(Pn,j):Pn},[!c.hasConditionConfig(j.dataIndex)&&j.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(c.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(c.getChgBoxImgStyle({...j,text:Pn})),src:c.getChgBoxImgSrc(Pn)},null,12,_hoisted_18)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(c.hasConditionConfig(j.dataIndex)?c.formatTextByConditions(j,Pn,Rn):j.format!=null?c.formatFn(Pn,j):c.getCellText(Pn,j))+" ",1),c.hasConditionConfig(j.dataIndex)&&c.getChgByCondition(j,Pn,Rn,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(j,Pn,Rn,1)),src:c.getChgByCondition(j,Pn,Rn,2)},null,12,_hoisted_19)],4)):vue.createCommentVNode("",!0)],14,_hoisted_17),!c.hasConditionConfig(j.dataIndex)&&j.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:2,title:((Qn=j==null?void 0:j.customFormatter)==null?void 0:Qn.split("{value}")[1])||""},vue.toDisplayString(((Jn=j==null?void 0:j.customFormatter)==null?void 0:Jn.split("{value}")[1])||""),9,_hoisted_20)):vue.createCommentVNode("",!0),c.isMatchCondition(j,Pn)&&(j==null?void 0:j.cellAlign)!=="right"&&((Zn=j==null?void 0:j.attribute)!=null&&Zn.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:3,style:vue.normalizeStyle(c.getAttrImgStyle(j)),src:c.getAttrImgSrc(j)},null,12,_hoisted_21)):vue.createCommentVNode("",!0)],4))]}),summary:vue.withCtx(()=>[c.summaryList.length>0?(vue.openBlock(),vue.createBlock(re,{key:0,fixed:c.isSummaryFixed},{default:vue.withCtx(()=>[vue.createVNode(x,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.summaryList,(j,vn)=>(vue.openBlock(),vue.createBlock(gn,{key:vn,index:vn,style:vue.normalizeStyle({backgroundColor:c.cellBackgroundColor,textAlign:j.cellAlign||"center",color:c.cellFontColor,borderBottomColor:c.borderColor})},{default:vue.withCtx(()=>[vue.createElementVNode("span",{class:vue.normalizeClass([c.contrastClass(j.format)]),style:vue.normalizeStyle({...c.getChgStyle({...j,text:j.total}),fontSize:c.fontSize,fontWeight:c.fontWeight})},[j.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(c.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(c.getChgBoxImgStyle({...j,text:j.total})),src:c.getChgBoxImgSrc(j.total)},null,12,_hoisted_22)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString((j.format!=null||j.format!=="")&&c.formatFn(j.total,j)),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]=j=>c.pageSize=j)},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(J,{visible:c.isScroll,step:c.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(c.scrollWrapStyle)},null,4)]),_:1},8,["visible","step"])],6)):vue.createCommentVNode("",!0)]}),_:1},8,["loading"]),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],14,_hoisted_1$1)}const Table=_export_sfc$1(__default__,[["render",_sfc_render$5],["__scopeId","data-v-25ce906b"]]),EcanTable=withInstall$1(Table),mapProps={...props$1,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$4=vue.defineComponent({name:"EcanMap",components:{Echarts},props:{...mapComponentProps},setup(c){const u=useRequestData({...c.tooltipRequestData,requestHeaders:{}}),f=vue.ref(),d=vue.ref(""),h=vue.ref(""),v=usePickComponentStyle(c,["backgroundImage"]),p=vue.ref(),m=vue.computed(()=>useImagePath(c.geoBackgroundImage)),g=vue.computed(()=>useImagePath(c.backgroundImage)),y=vue.ref([]),b=vue.computed(()=>c.geoBackgroundImage?{image:vue.unref(p),repeat:c.geoBackgroundImageRepeat}:c.geoItemStyleAreaColor),gn=vue.computed(()=>{const ar=c.symbolImage;return c.symbolImage?"image://"+useImagePath(ar):"circle"}),x=ar=>{let tr=c.tooltipFormatter;const pr=tr.match(/\{(.+?)\}/g);if(pr==null||pr.length===0)return tr;for(let Yn=0;Yn<pr.length;Yn++){const ir=pr[Yn];let lr=ir.slice(1,-1).trim();const vr=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,dr=lr.match(vr);for(let yr=0;yr<dr.length;yr++){const fr=dr[yr],mr=ar[fr];mr!=null&&(lr=lr.replace(fr,mr))}tr=tr.replace(ir,lr)}return tr.split(`
|
|
181
181
|
`)},re=vue.ref(!1),w=vue.ref("");let J=new AbortController;const Fn=(ar,tr)=>{const pr=J.signal;re.value=!0,d.value=ar,u({name:ar,signal:pr}).then(Yn=>{var ir,lr;if(Yn){const vr=((lr=(ir=Yn==null?void 0:Yn.data)==null?void 0:ir.data)==null?void 0:lr.rows)||[];let dr="";for(const yr of vr){const fr=x(yr)||[];if(fr!=null&&fr.length)for(const mr of fr)dr+=`<div style="word-break: break-all;white-space: normal;">${mr}</div>`}dr=`<div style="max-width:200px;">${dr}</div>`,h.value=dr,tr(vue.unref(w),dr)}else pr.aborted?h.value="Loading":h.value=ar,tr(vue.unref(w),h.value);re.value=!1})},Bn=vue.ref(),j=vue.computed(()=>c.dataType==="request"?Bn.value:c.data),vn=vue.computed(()=>{const ar=[],{mapAreaStyleConfig:tr}=c;if(tr!=null&&tr.length)for(const pr of tr)ar.push({...pr,key:nanoid(6)});return ar}),Pn=vue.computed(()=>{const ar=[];for(const tr of vue.unref(vn)){let pr="";tr.value1&&(pr+=`value ${tr.rule1} ${tr.value1}`),tr.value2&&(pr+=`${tr.value1?"&&":""} value ${tr.rule2} ${tr.value2}`),pr&&ar.push({rule:pr,color:tr.color,key:tr.key})}return ar.reverse()}),Rn=vue.computed(()=>{var pr;const ar=[],{areaStyleKeyName:tr}=c;if((pr=vue.unref(j))!=null&&pr.length)for(const Yn of vue.unref(j)){const ir=Yn[tr];if(ir||ir===0){const lr=vue.unref(Pn).find(vr=>pn(vr.rule,{value:ir}));lr&&ar.push({name:Yn.name,itemStyle:{areaColor:vue.unref(y).includes(lr.key)?c.geoItemStyleAreaColor:lr.color}})}}return ar}),zn=vue.computed(()=>{const ar=c.geoCenter;let tr;return typeof ar=="string"&&ar!==""&&(tr=ar.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:tr,map:`map-${c.id}`,selectedMode:"single",tooltip:{show:c.tooltipShow,trigger:"item",backgroundColor:c.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:c.tooltipTextStyleColor},formatter:(pr,Yn,ir)=>{w.value=Yn;const{name:lr=""}=pr,{requestUrl:vr}=c.tooltipRequestData;if(!vr){let dr="",yr=c.tooltipFormatter;yr===""&&(yr="{name}:{value}");const fr=vue.unref(j).find(mr=>mr.name===lr);return fr?(dr+=hn(yr,{textData:{name:lr,...fr}},{useNewline:!0,useSpace:!0}),dr):lr}if(vue.unref(re))vue.unref(d)!==lr&&(J.abort(),J=new AbortController);else{if(vue.unref(d)===lr)return vue.unref(h);Fn(lr,ir)}return"Loading"}},label:{show:c.geoLabelShow,color:c.geoLabelColor,fontSize:c.geoLabelFontSize},itemStyle:{areaColor:vue.unref(b),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:Rn.value},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:c.itemStyleColor},symbol:vue.unref(gn),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:j.value}]}}),Un=vue.ref(!1),qn=async()=>{var pr;Un.value=!1;const ar=c.mapJson,tr=`map-${c.id}`;if(ar!=null&&ar.path){const Yn=await request(((pr=window==null?void 0:window.config)==null?void 0:pr.uploadPath)+ar.path);core$1.registerMap(tr,(Yn==null?void 0:Yn.data)||{})}else core$1.registerMap(tr,{});Un.value=!0};vue.watch(()=>c.mapJson,()=>{qn()},{immediate:!0,deep:!0});const Qn=async ar=>{var Yn,ir,lr,vr;const tr=(ir=(Yn=ar==null?void 0:ar.data)==null?void 0:Yn.data)==null?void 0:ir.rows,pr=`map-${c.id}`;if(tr!=null&&tr.path){const dr=await request(tr.path);core$1.registerMap(pr,(dr==null?void 0:dr.data)||{})}else if(Array.isArray(tr))if(Bn.value=tr,(lr=tr[0])!=null&&lr.mapUrl){const dr=await request((vr=tr[0])==null?void 0:vr.mapUrl);core$1.registerMap(pr,(dr==null?void 0:dr.data)||{})}else core$1.registerMap(pr,{});else core$1.registerMap(pr,{});vue.nextTick(()=>{Un.value=!0})},Jn=useRequestData(c),Zn=async()=>{if(c.dataType==="request"){Un.value=!1;try{const ar=await Jn();Qn(ar)}catch(ar){console.error(ar),Un.value=!0}}},Xn=async()=>{const ar=nr(c.id);switch(sr(c.id,{...ar,RECORD:{}}),c.dataType){case"static":qn();break;case"request":await Zn();break}},{getGlobalModel:nr,setGlobalModel:sr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ar=>{},setGlobalModel:(ar,tr)=>{}}),Hn=useEmitEvent(c)("click",()=>{var tr,pr;const ar=nr(c.id);((tr=ar==null?void 0:ar.RECORD)==null?void 0:tr.name)===((pr=vue.unref(f))==null?void 0:pr.name)?sr(c.id,{...ar,RECORD:{}}):sr(c.id,{...ar,RECORD:vue.unref(f)})});useOnEvent(c,{refreshData:Xn});const{setRequest:Kn}=vue.inject(REQUEST_MODEL,{setRequest:ar=>{}});typeof Kn=="function"&&Kn({id:c.id,requestFn:Xn,sortNum:c.requestSort});const Vn=()=>{vue.unref(f)&&Hn()},Gn=(ar={})=>{ar.componentType==="geo"&&ar.region?f.value=ar.region:f.value=null},er=vue.computed(()=>{const ar={},{legendTop:tr,legendLeft:pr,legendBoxShadow:Yn}=c;return Yn&&(ar.boxShadow=Yn),tr==="bottom"?ar.bottom=0:tr==="top"&&(ar.top=0),pr==="left"?ar.left=0:pr==="right"&&(ar.right=0),ar}),Wn=vue.computed(()=>{const ar={};return c.legendOrient==="vertical"&&(ar.flexDirection="column"),ar}),or=vue.computed(()=>{var ar;if((ar=vue.unref(vn))!=null&&ar.length){const tr=[];for(const pr of vue.unref(vn)){const{value1:Yn,value2:ir,rule1:lr,rule2:vr,color:dr}=pr;Yn&&ir?+Yn<+ir?lr.includes(">")&&vr.includes("<")&&tr.push({text:`${Yn} - ${ir}`,color:dr,key:pr.key}):+Yn>+ir?lr.includes("<")&&vr.includes(">")&&tr.push({text:`${ir} - ${Yn}`,color:dr,key:pr.key}):+Yn==+ir&&tr.push({text:`${Yn} - ${ir}`,color:dr,key:pr.key}):Yn?tr.push({text:`${lr} ${Yn}`,color:dr,key:pr.key}):ir&&tr.push({text:`${vr} ${ir}`,color:dr,key:pr.key})}return tr}else return[]});return{option:zn,style:v,isLoadedData:Un,geoBackgroundImageRef:p,myGeoBackgroundImage:m,mapLegendStyle:er,legendContainerStyle:Wn,mapLegendList:or,hiddenLegendKey:y,customClick:Vn,onMouseOver:Gn,handleToggleVisible:ar=>{const tr=vue.unref(y).findIndex(pr=>pr===ar);tr>=0?y.value.splice(tr,1):y.value.push(ar)}}}}),Map_vue_vue_type_style_index_0_scoped_795834b9_lang="",_hoisted_1=["src"],_hoisted_2=["title","onClick"];function _sfc_render$4(c,u,f,d,h,v){const p=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-map",style:vue.normalizeStyle(c.style)},[c.isLoadedData?(vue.openBlock(),vue.createBlock(p,{key:0,option:c.option,"update-options":{notMerge:!0},autoresize:"","onZr:click":c.customClick,onMouseover:c.onMouseOver},null,8,["option","onZr:click","onMouseover"])):vue.createCommentVNode("",!0),vue.withDirectives(vue.createElementVNode("img",{ref:"geoBackgroundImageRef",src:c.myGeoBackgroundImage},null,8,_hoisted_1),[[vue.vShow,!1]]),c.legendShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"map-legend",style:vue.normalizeStyle(c.mapLegendStyle)},[vue.createElementVNode("div",{class:"legend-title",style:vue.normalizeStyle({color:c.legendTitleColor,fontSize:c.legendTitleFontSize})},vue.toDisplayString(c.legendTitle),5),vue.createElementVNode("div",{class:"legend-container",style:vue.normalizeStyle(c.legendContainerStyle)},[vue.createElementVNode("div",{style:vue.normalizeStyle({color:c.legendTextStyleColor,marginRight:c.legendOrient==="horizontal"?"5px":"",marginBottom:c.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(c.legendFrontText),5),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.mapLegendList,(m,g)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["legend-item",{hidden:c.hiddenLegendKey.includes(m.key)}]),style:vue.normalizeStyle({marginRight:c.legendOrient==="horizontal"?"10px":"",marginLeft:c.legendOrient==="horizontal"?"10px":"",marginBottom:c.legendOrient==="vertical"?"10px":"",marginTop:c.legendOrient==="vertical"?"10px":""}),key:g,title:c.legendTextShow?"":m.text,onClick:y=>c.handleToggleVisible(m.key)},[vue.createElementVNode("div",{class:"color-block",style:vue.normalizeStyle({backgroundColor:m.color,width:"20px",height:c.mapLegendType==="rect"?"16px":"20px",borderRadius:c.mapLegendType==="circle"?"50%":"4px"})},null,4),c.legendTextShow?(vue.openBlock(),vue.createElementBlock("span",{key:0,class:"legend-item-text",style:vue.normalizeStyle({color:c.legendTextStyleColor,marginLeft:"10px"})},vue.toDisplayString(m.text),5)):vue.createCommentVNode("",!0)],14,_hoisted_2))),128)),vue.createElementVNode("div",{style:vue.normalizeStyle({color:c.legendTextStyleColor,marginLeft:c.legendOrient==="horizontal"?"5px":"",marginTop:c.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(c.legendAfterText),5)],4)],4)):vue.createCommentVNode("",!0)],4)}const Map$1=_export_sfc$1(_sfc_main$4,[["render",_sfc_render$4],["__scopeId","data-v-795834b9"]]),EcanMap=withInstall$1(Map$1),dataSelectProps={...props$1,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$3=vue.defineComponent({name:"EcanDataSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption},props:{...dataSelectComponentProps},setup(c,{expose:u}){const f=usePickComponentStyle(c),d=()=>document.getElementById("ProviderConfig")||document.body,h=vue.ref(c.data||[]),v=vue.ref(),p=vue.computed({get:()=>{var ur;const{mode:sr}=c;return(ur=vue.unref(h))!=null&&ur.length?v.value:sr==="multiple"||sr==="tags"||sr==="combobox"?[]:""},set:sr=>{v.value=sr}}),{getGlobalModel:m,setGlobalModel:g,getRecordValueByKeyName:y}=vue.inject(GLOBAL_MODEL,{getGlobalModel:sr=>{},setGlobalModel:(sr,ur)=>{},getRecordValueByKeyName:sr=>{}}),b=c.dataFieldNames;vue.watch(()=>[c.value,c.mode,c.selectFirstOption,c.valueType,h.value],()=>{const{mode:sr,selectFirstOption:ur,value:Hn}=c,Kn=y(Hn),Vn=b.value;if(sr==="multiple"||sr==="tags"||sr==="combobox"){if(Kn)v.value=Kn.split(",");else if(ur){const Gn=vue.unref(h)[0];v.value=Gn?[Gn[Vn]]:[]}}else if(Kn)v.value=Kn;else if(ur){const Gn=vue.unref(h)[0];v.value=Gn?Gn[Vn]:""}},{immediate:!0});const gn=(sr,ur)=>{const Hn=b.label,Kn=b.value;let Vn;const Gn=ur[Hn],er=ur[Kn];return Gn!=null?Vn=Gn:er!=null&&(Vn=er),(Vn==null?void 0:Vn.toLowerCase().indexOf(sr==null?void 0:sr.toLowerCase()))>=0},x=sr=>{const{label:ur,value:Hn,options:Kn}=c.dataFieldNames;if(Kn&&Array.isArray(sr))if(sr.some(Vn=>Kn in Vn)){const Vn={},Gn=[];sr.forEach(er=>{Vn[er[Kn]]||(Vn[er[Kn]]=[]),Vn[er[Kn]].push({[ur]:er[ur],[Hn]:er[Hn]})});for(const er in Vn)Gn.push({[ur]:er,[Kn]:Vn[er]});return Gn}else return sr;else if(!Kn)return sr},re=vue.ref(!1),w=sr=>{var ur,Hn;if(h.value=x(((Hn=(ur=sr==null?void 0:sr.data)==null?void 0:ur.data)==null?void 0:Hn.rows)||[]),c.selectFirstOption){let Kn=vue.unref(h)[0];if(b.options){const Vn=Kn[b.options];Vn&&Vn.length&&(Kn=Vn[0])}v.value=Kn[b.value]}},J=useRequestData(c),Fn=async()=>{if(c.dataType==="request"){re.value=!0;try{const sr=await J();w(sr)}catch(sr){console.error(sr)}finally{re.value=!1}}},Bn=vue.computed(()=>{let sr=v.value;if(c.valueType==="label"&&vue.unref(v)&&vue.unref(h)){const ur=b.label,Hn=b.value;if(c.mode==="multiple")sr=vue.unref(h).filter(Kn=>vue.unref(v).includes(Kn[Hn])).map(Kn=>Kn[ur]);else{const Kn=vue.unref(h).find(Vn=>vue.unref(v)===Vn[Hn]);Kn&&(sr=Kn[ur])}}return sr}),j=vue.ref([]),vn=vue.computed(()=>{const sr={};if(c.mode!=="multiple"){const ur=vue.unref(j).find(Hn=>Hn.value===vue.unref(v));ur&&(sr.itemCodes=ur.item_codes)}return sr}),Pn=vue.computed(()=>{const{value:sr,label:ur}=b,Hn=vue.unref(h).find(Kn=>Kn[sr]===vue.unref(p));return Hn?{label:Hn[ur],value:Hn[sr]}:{}}),{pageId:Rn}=vue.inject("templateOperate",{pageId:""})||{};g(c.id,{type:c.type,value:Bn,...vue.unref(vn),recordData:vue.unref(Pn)});const zn=useEmitEvent(c),Un=zn("selectChange",()=>{const sr=c.id,ur=m(sr);g(sr,{...ur,...vue.unref(vn),RECORD:Bn,recordData:vue.unref(Pn)});const Hn=getNewValueFromUrlParams(Rn,c.keyName,"value");Hn&&(p.value=Hn)}),qn=zn("refreshData",(sr=[])=>{if(h.value=x(sr),c.selectFirstOption){let ur=vue.unref(h)[0];if(b.options){const Hn=ur[b.options];Hn&&Hn.length&&(ur=Hn[0])}v.value=ur[b.value]}g(c.id,{type:c.type,value:Bn,...vue.unref(vn),recordData:vue.unref(Pn)})}),Qn=sr=>{var Vn;const{data:ur}=(sr==null?void 0:sr.data)||{},Hn=b.label,Kn=b.value;if(ur){const{rows:Gn=[]}=((Vn=sr==null?void 0:sr.data)==null?void 0:Vn.data)||{};j.value=Gn;const er=Gn.map(cr=>({[Hn]:cr.label,[Kn]:cr.value})),{id:Wn}=c,or=m(Wn);g(Wn,{...or,...vue.unref(vn)}),qn(er)}else qn([])},Jn=useIndicatorData(c,Qn),Zn=async()=>{try{re.value=!0;const sr=await Jn();Qn(sr)}catch(sr){console.error(sr)}finally{re.value=!1}},Xn=async()=>{switch(c.dataType){case"indicator":{await Zn();break}case"request":await Fn();break}};useOnEvent(c,{selectChange:Un,refreshData:Xn});const{setRequest:nr}=vue.inject(REQUEST_MODEL,{setRequest:({id:sr,sortNum:ur,requestFn:Hn})=>{}});return typeof nr=="function"&&nr({id:c.id,requestFn:Xn,sortNum:c.requestSort}),u({refreshData:Xn}),{style:f,getPopupContainer:d,myValue:v,selectChange:Un,options:h,filterOption:gn,loading:re,resultValue:p}}}),DataSelect_vue_vue_type_style_index_0_scoped_aa03f318_lang="",DataSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$3(c,u,f,d,h,v){const p=vue.resolveComponent("a-select-option"),m=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-select",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{class:"select",value:c.resultValue,"onUpdate:value":u[0]||(u[0]=g=>c.resultValue=g),placeholder:c.placeholder,showSearch:"",allowClear:c.isAllowClear,mode:c.mode,getPopupContainer:c.getPopupContainer,fieldNames:c.dataFieldNames,maxTagCount:c.maxTagCount,filterOption:c.filterOption,loading:c.loading,autoClearSearchValue:c.autoClearSearchValue,onChange:c.selectChange,style:vue.normalizeStyle({fontSize:c.optionFontSize})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.options,(g,y)=>(vue.openBlock(),vue.createBlock(p,{key:y,value:g.value,label:g.label,style:vue.normalizeStyle({fontSize:c.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"]),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],4)}const DataSelect=_export_sfc$1(_sfc_main$3,[["render",_sfc_render$3],["__scopeId","data-v-aa03f318"]]),EcanDataSelect=withInstall$1(DataSelect),_sfc_main$2=vue.defineComponent({name:"EcanPivotTable",components:{},props:{...pivotTableComponentProps,fullMode:{type:Boolean,default:!1}},setup(c,{emit:u,expose:f}){var Pn,Rn;const d=(Pn=window==null?void 0:window.config)==null?void 0:Pn.pageId,h=(Rn=window==null?void 0:window.config)==null?void 0:Rn.indicatorToken,v=usePickComponentStyle(c),p=vue.ref(),{pageMode:m,theme:g,width:y,height:b}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",theme:"light",width:"",height:""}),gn=vue.inject("scaleValue",{widthScale:"1",heightScale:"1"}),{getAllGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),re=vue.computed(()=>{const{width:zn,height:Un}=c;let qn=0,Qn=0;return typeof zn=="string"?qn=parseFloat(zn):zn.suffix==="px"?qn=+zn.value:zn.suffix==="%"&&(qn=parseFloat(vue.unref(y))*(zn.value/100)),typeof Un=="string"?Qn=parseFloat(Un):Un.suffix==="px"?Qn=+Un.value:Un.suffix==="%"&&(Qn=parseFloat(vue.unref(b))*(Un.value/100)),{...c,width:qn+"px",height:Qn+"px",pageId:d,indicatorToken:h,context:CONTEXT,globalModel:x()}}),w=vue.computed(()=>INDICATOR_URL),J=()=>{switch(c.dataType){case"indicator":vue.unref(p).refreshData();break}},{setRequest:Fn}=vue.inject(REQUEST_MODEL,{setRequest:({id:zn,sortNum:Un,requestFn:qn})=>{}});typeof Fn=="function"&&Fn({id:c.id,requestFn:J,sortNum:c.requestSort}),f({refreshData:J});const j=useEmitEvent(c)("click",()=>{vue.unref(p).click()});return useOnEvent(c,{refreshData:J,click:j}),vue.onMounted(()=>{}),{props:c,style:v,pageMode:m,pivotTableRef:p,theme:g,customProps:re,indicatorUrl:w,scaleValue:gn,click:j,onTableChange:({type:zn,data:Un})=>{u("tableChange",{type:zn,data:Un})}}}}),PivotTableContainer_vue_vue_type_style_index_0_scoped_46e3d7d4_lang="";function _sfc_render$2(c,u,f,d,h,v){const p=vue.resolveComponent("pivot-table");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-pivot-table",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,vue.mergeProps({ref:"pivotTableRef"},c.customProps,{pageMode:c.pageMode,theme:c.theme,fullMode:c.fullMode,indicatorUrl:c.indicatorUrl,scaleValue:c.scaleValue,enlargeContainer:"#norPageConfig",onTableChange:c.onTableChange}),null,16,["pageMode","theme","fullMode","indicatorUrl","scaleValue","onTableChange"])],4)}const PivotTableContainer=_export_sfc$1(_sfc_main$2,[["render",_sfc_render$2],["__scopeId","data-v-46e3d7d4"]]),EcanPivotTable=withInstall$1(PivotTableContainer),valueLineProps={...props$1,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$1=vue.defineComponent({name:"EcanValueLine",props:{...valueLineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const{pageMode:f,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),h=vue.ref(),v=vue.ref(!1),p=usePickComponentStyle(c),m=vue.ref([]),g=vue.ref(),y=vue.computed(()=>v.value?ZOOM_FONT_SIZE:12),b=vue.ref({});let gn;const x=vue.computed(()=>{const Gn=c.xAxisLabelFormatter,er=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 Wn;v.value=!0,(Wn=g.value)==null||Wn.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:Wn=>{var tr;const or=Wn.length;let cr="",ar=c.tooltipFormatter;gn=(tr=Wn[0])==null?void 0:tr.data,ar===""&&(ar="{marker} {a} {c}");for(let pr=0;pr<or;pr++){const{marker:Yn,seriesName:ir,name:lr,value:vr,data:dr}=Wn[pr]||{};if(pr===0){let yr=lr;typeof lr=="string"&&lr[0]==="0"&&!isNaN(+lr)&&(yr=(+lr).toString()),cr+=`${In(Gn,yr)}<br/>`}cr+=hn(ar,{textData:{marker:Yn,a:ir,b:vr[0],c:vr[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(Wn){return typeof Wn=="string"&&Wn[0]==="0"&&!isNaN(+Wn)&&(Wn=(+Wn).toString()),In(Gn,Wn)}},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(Wn){return In(er,Wn)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(v.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:v.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,formatter:Wn=>getLegendFormat(c.legendFormatter,{name:Wn})},series:vue.unref(m)}}),re=()=>{v.value=!1},{getGlobalModel:w,setGlobalModel:J,getRecordValueByKeyName:Fn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Gn=>{},setGlobalModel:(Gn,er)=>{},getRecordValueByKeyName:Gn=>{}}),Bn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),j=(Gn,er,Wn,or,cr,ar,tr,pr)=>{const Yn=(-(cr*pr-ar*tr)/(tr-cr)+(Gn*or-er*Wn)/(Wn-Gn))/((or-er)/(Wn-Gn)-(pr-ar)/(tr-cr)),ir=(or-er)/(Wn-Gn)*(-(cr*pr-ar*tr)/(tr-cr)+(Gn*or-er*Wn)/(Wn-Gn))/((or-er)/(Wn-Gn)-(pr-ar)/(tr-cr))-(Gn*or-er*Wn)/(Wn-Gn);return[Yn,ir]},vn=()=>{var Wn;const Gn={symbol:"circle",tooltip:{trigger:"item",formatter:or=>{let cr="",ar=c.markPointFormatter;ar===""&&(ar="{x}, {y}");const{data:{coord:tr=[]}}=or||{};return cr+=hn(ar,{textData:{x:tr[0]||0,y:tr[1]||0}},{useNewline:!0,useSpace:!0}),cr+="<br/>",cr}},data:[]},{axisMarkPoint:er=[]}=c;for(const or of er){const{coord:cr=""}=or,ar=[];let tr=[];if(cr.includes("getIntersectPoint")){const pr=(Wn=cr.match(/getIntersectPoint\((.*?)\)/)[1])==null?void 0:Wn.split(",");if((pr==null?void 0:pr.length)===8){const Yn=[];for(const ir of pr){const lr=ir.replaceAll(" ","");(lr==null?void 0:lr.slice(0,1))==="{"&&(lr==null?void 0:lr.slice(-1))==="}"?Yn.push(+Fn(lr)||0):Yn.push(+lr)}tr=j(...Yn)}}else tr=cr.split(",");(tr==null?void 0:tr.length)===2&&(ar[0]=+tr[0],ar[1]=+tr[1]),ar!=null&&ar.length&&Gn.data.push({coord:ar,symbolSize:or.symbolSize,itemStyle:{color:or.pointColor||"transparent",borderWidth:or.borderWidth||"transparent",borderColor:or.borderColor||"transparent"},label:{formatter:or.label,position:or.labelPosition,color:or.labelColor||"transparent"}})}return Gn},Pn=Gn=>{var Yn,ir,lr;const er=lodashEs.cloneDeep(Gn),{graphicConfig:Wn,customPoint:or=""}=c,cr={},ar={},{formFields:tr={}}=Wn;let pr=[];if(or){pr=JSON.parse(or);for(const vr of pr)for(const dr in vr)typeof vr[dr]=="string"&&((Yn=vr[dr])==null?void 0:Yn.slice(0,1))==="{"&&((ir=vr[dr])==null?void 0:ir.slice(-1))==="}"&&(vr[dr]=Fn(vr[dr])||0)}pr!=null&&pr.length&&er.push(...pr),c.dataType==="static"?(ar.name="name",ar.values=["value","value2"]):(ar.name=(tr==null?void 0:tr.labelField)||"name",ar.values=(tr==null?void 0:tr.valueField)||["value","value2"]);for(const vr of er){const{values:dr,name:yr}=ar;for(const fr of dr){const mr={value:[vr[yr],vr[fr]],record:vr};mn(cr,fr)?cr[fr].push(mr):cr[fr]=[mr]}}if((lr=Object.keys(cr))!=null&&lr.length){const vr=[];for(const dr in cr)vr.push({name:dr,data:cr[dr]});return vr}else return[]},Rn=(Gn=[])=>{const er=Pn(Gn),Wn=[],or=er.length;for(let cr=0;cr<or;cr++){const ar={},tr={};cr===0&&(tr.markPoint=vn()),c.shadowColor&&(ar.shadowColor=c.shadowColor,ar.shadowBlur=c.shadowBlur,ar.shadowOffsetY=c.shadowOffsetY,ar.shadowOffsetX=c.shadowOffsetX),Wn.push({type:"line",...tr,...er[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,...ar},...vue.unref(Bn)})}m.value=Wn},zn=(Gn=[])=>{const er=Pn(Gn),Wn=[],or=er.length;for(let cr=0;cr<or;cr++){const ar={};c.shadowColor&&(ar.shadowColor=c.shadowColor,ar.shadowBlur=c.shadowBlur,ar.shadowOffsetY=c.shadowOffsetY,ar.shadowOffsetX=c.shadowOffsetX);const tr={};cr===0&&(tr.markPoint=vn()),Wn.push({type:"line",...er[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,...ar},...vue.unref(Bn),...tr})}m.value=Wn};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],([Gn])=>{(c.dataType==="static"||vue.unref(f)==="design")&&Rn(Gn)},{immediate:!0,deep:!0});const Un=vue.ref(!1),qn=useRequestData(c),Qn=async()=>{var Gn,er;if(c.dataType==="request")try{Un.value=!0;const Wn=await qn();Rn((er=(Gn=Wn==null?void 0:Wn.data)==null?void 0:Gn.data)==null?void 0:er.rows)}catch(Wn){console.error(Wn)}finally{Un.value=!1}},Jn=useEmitEvent(c);J(c.id,{type:c.type,RECORD:""});const Zn=Jn("click",Gn=>{const er=w(c.id);J(c.id,{...er,type:c.type,RECORD:c.tooltipShow?gn:Gn.data})}),Xn=Gn=>{h.value.chart.containPixel("grid",[Gn.offsetX,Gn.offsetY])&&Zn()};c.tooltipShow?b.value["zr:click"]=Xn:b.value.click=Zn;const nr=Gn=>{var Wn;const{rows:er=[]}=((Wn=Gn==null?void 0:Gn.data)==null?void 0:Wn.data)??{};zn(er)},sr=useIndicatorData(c,Gn=>{c.isViewRedrawing&&h.value.clear(),nr(Gn)}),ur=async()=>{try{Un.value=!0;const Gn=await sr();nr(Gn)}catch(Gn){console.error(Gn)}finally{Un.value=!1}},Hn=async()=>{switch(c.dataType){case"indicator":await ur();break;case"request":await Qn();break}};useOnEvent(c,{refreshData:Hn,resetRecord:()=>{const Gn=c.id,er=w(Gn);J(Gn,{...er,RECORD:""})},click:Zn});const{setRequest:Vn}=vue.inject(REQUEST_MODEL,{setRequest:Gn=>{}});return typeof Vn=="function"&&Vn({id:c.id,requestFn:Hn,sortNum:c.requestSort}),u({refreshData:Hn}),{option:x,style:p,click:Zn,loading:Un,onClose:re,ecanModal:g,eventObj:b,echartRef:h}}}),ValueLine_vue_vue_type_style_index_0_lang="";function _sfc_render$1(c,u,f,d,h,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-value-line",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,vue.mergeProps({ref:"echartRef",option:c.option,autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.renderSlot(c.$slots,"toolbox")],4)}const ValueLine=_export_sfc$1(_sfc_main$1,[["render",_sfc_render$1]]),EcanValueLine=withInstall$1(ValueLine),indexPanelProps={...props$1,name:"指标面板",keyName:"指标面板",type:"ecanIndexPanel",width:"360px",height:"210px",zIndex:1,borderRadius:"5",componentIds:[],componentConfig:{},data:{},dataType:"indicator",graphicConfig:{},theFlag:""},indexPanelComponentProps=transformToComponentProps(indexPanelProps),indexPanelEvents=["refreshData"],_sfc_main=vue.defineComponent({name:"EcanIndexPanel",components:{Skeleton},props:{...indexPanelComponentProps},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref(),h=usePickComponentStyle(c),{pageMode:v}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),p=vue.inject("triggerRefresh",Fn=>{}),m=vue.inject("usedComponentList",[]),g=vue.computed(()=>{const{borderRadius:Fn}=c,Bn=[],j={};if(Fn){const vn=Fn.split(",");for(const Pn of vn)(+Pn||+Pn==0)&&Bn.push(+Pn+"px")}return Bn!=null&&Bn.length&&(j.borderRadius=Bn.join(" ")),vue.unref(v)==="design"&&(j.border="1px solid #a8a8a8"),vue.unref(d)?j.backgroundColor=vue.unref(d):vue.unref(v)!=="design"&&(j.backgroundColor="#B3AFAF"),j}),y=Fn=>{var j;const{rows:Bn}=((j=Fn==null?void 0:Fn.data)==null?void 0:j.data)||{};if(Bn){const{componentIds:vn,componentConfig:Pn,graphicConfig:Rn}=c,zn=[],Un=Rn==null?void 0:Rn.indicators.find(qn=>qn.show);d.value=Bn.color;for(const qn of vn){const Qn=vue.unref(m).find(sr=>sr.id===qn),Jn=Pn[qn],{text:Zn=""}=Qn||{};let Xn=Bn[Jn.key],nr="";if(Jn.key==="systemSource"){const sr=Xn.split(",");(sr==null?void 0:sr.length)>3&&(Xn=sr.slice(0,3).join(",")+"等",nr=Bn[Jn.key])}else Jn.key==="indexName"&&(Xn=Un.label);zn.push({id:qn,text:Zn.includes("{value}")||Zn.includes("{")||Zn.includes("}")?Zn:"{value}",data:{...Bn,value:Xn},titleContent:nr})}p(zn)}},b=useIndicatorData(c,y),gn=async()=>{try{f.value=!0;const Fn=await b();y(Fn)}catch(Fn){console.error(Fn)}finally{f.value=!1}},x=async()=>{switch(c.dataType){case"indicator":await gn();break}},{setRequest:re}=vue.inject(REQUEST_MODEL,{setRequest:({id:Fn,sortNum:Bn,requestFn:j})=>{}});typeof re=="function"&&re({id:c.id,requestFn:x,sortNum:c.requestSort});const J=useEmitEvent(c)("click");return useOnEvent(c,{refreshData:x}),u({refreshData:x}),{loading:f,style:h,customStyle:g,click:J}}});function _sfc_render(c,u,f,d,h,v){const p=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-index-panel",style:vue.normalizeStyle(c.loading?{}:{...c.style,...c.customStyle}),onClick:u[0]||(u[0]=(...m)=>c.click&&c.click(...m))},[c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{loading:c.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.renderSlot(c.$slots,"children"),vue.renderSlot(c.$slots,"toolbox")],64))],4)}const IndexPanel=_export_sfc$1(_sfc_main,[["render",_sfc_render]]),EcanIndexPanel=withInstall$1(IndexPanel),components=Object.freeze(Object.defineProperty({__proto__:null,EcanBar,EcanBorder,EcanButton,EcanCheckbox,EcanCirculate,EcanComboGraph,EcanCounter,EcanCustomGraph,EcanDataSelect,EcanDatePicker,EcanIframe,EcanImage,EcanIndexPanel,EcanInput,EcanLine,EcanList,EcanMap,EcanModal,EcanNavTab,EcanPageConfig,EcanPie,EcanPivotTable,EcanProportion,EcanProviderConfig,EcanRadar,EcanRadio,EcanRangePicker,EcanRectangle,EcanScatter,EcanScrollText,EcanSelect,EcanTable,EcanTabs,EcanTemplate,EcanText,EcanTimeDisplay,EcanTreeSelect,EcanValueLine,barComponentProps,barEvents,barProps,borderComponentProps,borderEvents,borderProps,buttonComponentProps,buttonEvents,buttonProps,checkboxComponentProps,checkboxEvents,checkboxProps:checkboxProps$1,circulateComponentProps,circulateEvents,circulateProps,comboGraphComponentProps,comboGraphEvents,comboGraphProps,counterComponentProps,counterEvents,counterProps,customGraphComponentProps,customGraphProps,dataSelectComponentProps,dataSelectEvents,dataSelectProps,datePickerComponentProps,datePickerEvents,datePickerProps:datePickerProps$1,iframeComponentProps,iframeProps,imageComponentProps,imageEvents,imageProps,indexPanelComponentProps,indexPanelEvents,indexPanelProps,inputComponentProps,inputEvents,inputProps,lineComponentProps,lineEvents,lineProps,listComponentProps,listEvents,listProps,mapComponentProps,mapEvents,mapProps,modalComponentProps,modalEvents,modalProps,navTabComponentProps,navTabEvents,navTabProps,pageConfig,pageConfigComponentProps,pieComponentProps,pieEvents,pieProps,pivotTableComponentProps,pivotTableEvents,pivotTableProps,proportionComponentProps,proportionEvents,proportionProps,providerConfig,providerConfigComponentProps,radarComponentProps,radarEvents,radarProps,radioComponentProps,radioEvents,radioProps,rangePickerComponentProps,rangePickerEvents,rangePickerProps,rectangleComponentProps,rectangleEvents,rectangleProps,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$1=()=>inBrowser$1?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function get(c,u){const f=u.split(".");let d=c;return f.forEach(h=>{var v;d=isObject$1(d)&&(v=d[h])!=null?v:""}),d}function pick(c,u,f){return u.reduce((d,h)=>((!f||c[h]!==void 0)&&(d[h]=c[h]),d),{})}const isSameValue=(c,u)=>JSON.stringify(c)===JSON.stringify(u),toArray=c=>Array.isArray(c)?c:[c],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,d=u.innerHeight;return makeDOMRect(f,d)}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:d,unlink:h,internalChildren:v}=u;d(f),vue.onUnmounted(()=>h(f));const p=vue.computed(()=>v.indexOf(f));return{parent:u,index:p}}return{parent:null,index:vue.ref(-1)}}function flattenVNodes(c){const u=[],f=d=>{Array.isArray(d)&&d.forEach(h=>{var v;vue.isVNode(h)&&(u.push(h),(v=h.component)!=null&&v.subTree&&(u.push(h.component.subTree),f(h.component.subTree.children)),h.children&&f(h.children))})};return f(c),u}var findVNodeIndex=(c,u)=>{const f=c.indexOf(u);return f===-1?c.findIndex(d=>u.key!==void 0&&u.key!==null&&d.type===u.type&&d.key===u.key):f};function sortChildren(c,u,f){const d=flattenVNodes(c.subTree.children);f.sort((v,p)=>findVNodeIndex(d,v.vnode)-findVNodeIndex(d,p.vnode));const h=f.map(v=>v.proxy);u.sort((v,p)=>{const m=h.indexOf(v),g=h.indexOf(p);return m-g})}function useChildren(c){const u=vue.reactive([]),f=vue.reactive([]),d=vue.getCurrentInstance();return{children:u,linkChildren:v=>{const p=g=>{g.proxy&&(f.push(g),u.push(g.proxy),sortChildren(d,u,f))},m=g=>{const y=f.indexOf(g);u.splice(y,1),f.splice(y,1)};vue.provide(c,Object.assign({link:p,unlink:m,children:u,internalChildren:f},v))}}}function onMountedOrActivated(c){let u;vue.onMounted(()=>{c(),vue.nextTick(()=>{u=!0})}),vue.onActivated(()=>{u&&c()})}function useEventListener(c,u,f={}){if(!inBrowser)return;const{target:d=window,passive:h=!1,capture:v=!1}=f;let p=!1,m;const g=gn=>{if(p)return;const x=vue.unref(gn);x&&!m&&(x.addEventListener(c,u,{capture:v,passive:h}),m=!0)},y=gn=>{if(p)return;const x=vue.unref(gn);x&&m&&(x.removeEventListener(c,u,v),m=!1)};vue.onUnmounted(()=>y(d)),vue.onDeactivated(()=>y(d)),onMountedOrActivated(()=>g(d));let b;return vue.isRef(d)&&(b=vue.watch(d,(gn,x)=>{y(x),g(gn)})),()=>{b==null||b(),y(d),p=!0}}var width,height;function useWindowSize(){if(!width&&(width=vue.ref(0),height=vue.ref(0),inBrowser)){const c=()=>{width.value=window.innerWidth,height.value=window.innerHeight};c(),window.addEventListener("resize",c,{passive:!0}),window.addEventListener("orientationchange",c,{passive:!0})}return{width,height}}var overflowScrollReg=/scroll|auto|overlay/i,defaultRoot=inBrowser?window:void 0;function isElement(c){return c.tagName!=="HTML"&&c.tagName!=="BODY"&&c.nodeType===1}function getScrollParent(c,u=defaultRoot){let f=c;for(;f&&f!==u&&isElement(f);){const{overflowY:d}=window.getComputedStyle(f);if(overflowScrollReg.test(d))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}var CUSTOM_FIELD_INJECTION_KEY=Symbol("van-field");function useCustomFieldValue(c){const u=vue.inject(CUSTOM_FIELD_INJECTION_KEY,null);u&&!u.customValue.value&&(u.customValue.value=c,vue.watch(c,()=>{u.resetValidation(),u.validateWithTrigger("onChange")}))}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}const isIOS=isIOS$1();function resetScroll(){isIOS&&setRootScrollTop(getRootScrollTop())}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),d=f.display==="none",h=u.offsetParent===null&&f.position!=="fixed";return d||h}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);function trimExtraChar(c,u,f){const d=c.indexOf(u);return d===-1?c:u==="-"&&d!==0?c.slice(0,d):c.slice(0,d+1)+c.slice(d).replace(f,"")}function formatNumber(c,u=!0,f=!0){u?c=trimExtraChar(c,".",/\./g):c=c.split(".")[0],f?c=trimExtraChar(c,"-",/-/g):c=c.replace(/-/,"");const d=u?/[^-0-9.]/g:/[^-0-9]/g;return c.replace(d,"")}const{hasOwnProperty}=Object.prototype;function assignKey(c,u,f){const d=u[f];isDef(d)&&(!hasOwnProperty.call(c,f)||!isObject$1(d)?c[f]=d:c[f]=deepAssign(Object(c[f]),d))}function deepAssign(c,u){return Object.keys(u).forEach(f=>{assignKey(c,u,f)}),c}var stdin_default$o={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$o}),Locale={messages(){return messages[lang.value]},use(c,u){lang.value=c,this.add({[c]:u})},add(c={}){deepAssign(messages,c)}};var stdin_default$n=Locale;function createTranslate(c){const u=camelize(c)+".";return(f,...d)=>{const h=stdin_default$n.messages(),v=get(h,u+f)||get(h,f);return isFunction(v)?v(...d):v}}function genBem(c,u){return u?typeof u=="string"?` ${c}--${u}`:Array.isArray(u)?u.reduce((f,d)=>f+genBem(c,d),""):Object.keys(u).reduce((f,d)=>f+(u[d]?genBem(c,d):""),""):""}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",FORM_KEY=Symbol("van-form"),TAP_OFFSET=5;function callInterceptor(c,{args:u=[],done:f,canceled:d,error:h}){if(c){const v=c.apply(null,u);isPromise(v)?v.then(p=>{p?f():d&&d()}).catch(h||noop):v?f():d&&d()}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:d}){c&&d?d[f?"replace":"push"](c):u&&(f?location.replace(u):location.href=u)}function useRoute(){const c=vue.getCurrentInstance().proxy;return()=>route(c)}const[name$n,bem$l]=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$m=vue.defineComponent({name:name$n,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")},d=()=>{const{dot:m,max:g,content:y}=c;if(!m&&f())return u.content?u.content():isDef(g)&&isNumeric(y)&&+y>+g?`${g}+`:y},h=m=>m.startsWith("-")?m.replace("-",""):`-${m}`,v=vue.computed(()=>{const m={background:c.color};if(c.offset){const[g,y]=c.offset,{position:b}=c,[gn,x]=b.split("-");u.default?(typeof y=="number"?m[gn]=addUnit(gn==="top"?y:-y):m[gn]=gn==="top"?addUnit(y):h(y),typeof g=="number"?m[x]=addUnit(x==="left"?g:-g):m[x]=x==="left"?addUnit(g):h(g)):(m.marginTop=addUnit(y),m.marginLeft=addUnit(g))}return m}),p=()=>{if(f()||c.dot)return vue.createVNode("div",{class:bem$l([c.position,{dot:c.dot,fixed:!!u.default}]),style:v.value},[d()])};return()=>{if(u.default){const{tag:m}=c;return vue.createVNode(m,{class:bem$l("wrapper")},{default:()=>[u.default(),p()]})}return p()}}});const Badge=withInstall(stdin_default$m);let globalZIndex=2e3;const useGlobalZIndex=()=>++globalZIndex,setGlobalZIndex=c=>{globalZIndex=c},[name$m,bem$k]=createNamespace("config-provider"),CONFIG_PROVIDER_KEY=Symbol(name$m),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 d=insertDash(kebabCase(f));u[`--van-${d}`]=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$m,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 d=()=>{document.documentElement.classList.add(`van-theme-${c.theme}`)},h=(v=c.theme)=>{document.documentElement.classList.remove(`van-theme-${v}`)};vue.watch(()=>c.theme,(v,p)=>{p&&h(p),d()},{immediate:!0}),vue.onActivated(d),vue.onDeactivated(h),vue.onBeforeUnmount(h),vue.watch(f,(v,p)=>{c.themeVarsScope==="global"&&syncThemeVarsOnRoot(v,p)}),vue.watch(()=>c.themeVarsScope,(v,p)=>{p==="global"&&syncThemeVarsOnRoot({},f.value),v==="global"&&syncThemeVarsOnRoot(f.value,{})}),c.themeVarsScope==="global"&&syncThemeVarsOnRoot(f.value,{})}return vue.provide(CONFIG_PROVIDER_KEY,c),vue.watchEffect(()=>{c.zIndex!==void 0&&setGlobalZIndex(c.zIndex)}),()=>vue.createVNode(c.tag,{class:bem$k(),style:c.themeVarsScope==="local"?f.value:void 0},{default:()=>{var d;return[(d=u.default)==null?void 0:d.call(u)]}})}});const[name$l,bem$j]=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$l=vue.defineComponent({name:name$l,props:iconProps,setup(c,{slots:u}){const f=vue.inject(CONFIG_PROVIDER_KEY,null),d=vue.computed(()=>c.classPrefix||(f==null?void 0:f.iconPrefix)||bem$j());return()=>{const{tag:h,dot:v,name:p,size:m,badge:g,color:y}=c,b=isImage(p);return vue.createVNode(Badge,vue.mergeProps({dot:v,tag:h,class:[d.value,b?"":`${d.value}-${p}`],style:{color:y,fontSize:addUnit(m)},content:g},c.badgeProps),{default:()=>{var gn;return[(gn=u.default)==null?void 0:gn.call(u),b&&vue.createVNode("img",{class:bem$j("image"),src:p},null)]}})}}});const Icon=withInstall(stdin_default$l),[name$k,bem$i]=createNamespace("loading"),SpinIcon=Array(12).fill(null).map((c,u)=>vue.createVNode("i",{class:bem$i("line",String(u+1))},null)),CircularIcon=vue.createVNode("svg",{class:bem$i("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$k=vue.defineComponent({name:name$k,props:loadingProps,setup(c,{slots:u}){const f=vue.computed(()=>extend({color:c.color},getSizeStyle(c.size))),d=()=>{const v=c.type==="spinner"?SpinIcon:CircularIcon;return vue.createVNode("span",{class:bem$i("spinner",c.type),style:f.value},[u.icon?u.icon():v])},h=()=>{var v;if(u.default)return vue.createVNode("span",{class:bem$i("text"),style:{fontSize:addUnit(c.textSize),color:(v=c.textColor)!=null?v:c.color}},[u.default()])};return()=>{const{type:v,vertical:p}=c;return vue.createVNode("div",{class:bem$i([v,{vertical:p}]),"aria-live":"polite","aria-busy":!0},[d(),h()])}}});const Loading=withInstall(stdin_default$k),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),d=vue.ref(0),h=vue.ref(0),v=vue.ref(0),p=vue.ref(""),m=vue.ref(!0),g=()=>p.value==="vertical",y=()=>p.value==="horizontal",b=()=>{f.value=0,d.value=0,h.value=0,v.value=0,p.value="",m.value=!0};return{move:re=>{const w=re.touches[0];f.value=(w.clientX<0?0:w.clientX)-c.value,d.value=w.clientY-u.value,h.value=Math.abs(f.value),v.value=Math.abs(d.value);const J=10;(!p.value||h.value<J&&v.value<J)&&(p.value=getDirection(h.value,v.value)),m.value&&(h.value>TAP_OFFSET||v.value>TAP_OFFSET)&&(m.value=!1)},start:re=>{b(),c.value=re.touches[0].clientX,u.value=re.touches[0].clientY},reset:b,startX:c,startY:u,deltaX:f,deltaY:d,offsetX:h,offsetY:v,direction:p,isVertical:g,isHorizontal:y,isTap:m}}let totalLockCount=0;const BODY_LOCK_CLASS="van-overflow-hidden";function useLockScroll(c,u){const f=useTouch(),d="01",h="10",v=b=>{f.move(b);const gn=f.deltaY.value>0?h:d,x=getScrollParent(b.target,c.value),{scrollHeight:re,offsetHeight:w,scrollTop:J}=x;let Fn="11";J===0?Fn=w>=re?"00":"01":J+w>=re&&(Fn="10"),Fn!=="11"&&f.isVertical()&&!(parseInt(Fn,2)&parseInt(gn,2))&&preventDefault(b,!0)},p=()=>{document.addEventListener("touchstart",f.start),document.addEventListener("touchmove",v,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},m=()=>{totalLockCount&&(document.removeEventListener("touchstart",f.start),document.removeEventListener("touchmove",v),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},g=()=>u()&&p(),y=()=>u()&&m();onMountedOrActivated(g),vue.onDeactivated(y),vue.onBeforeUnmount(y),vue.watch(u,b=>{b?p():m()})}function useLazyRender(c){const u=vue.ref(!1);return vue.watch(c,f=>{f&&(u.value=f)},{immediate:!0}),f=>()=>u.value?f():null}const useScopeId=()=>{var c;const{scopeId:u}=((c=vue.getCurrentInstance())==null?void 0:c.vnode)||{};return u?{[u]:""}:null},[name$j,bem$h]=createNamespace("overlay"),overlayProps={show:Boolean,zIndex:numericProp,duration:numericProp,className:unknownProp,lockScroll:truthProp,lazyRender:truthProp,customStyle:Object,teleport:[String,Object]};var stdin_default$j=vue.defineComponent({name:name$j,props:overlayProps,setup(c,{slots:u}){const f=vue.ref(),d=useLazyRender(()=>c.show||!c.lazyRender),h=p=>{c.lockScroll&&preventDefault(p,!0)},v=d(()=>{var p;const m=extend(getZIndexStyle(c.zIndex),c.customStyle);return isDef(c.duration)&&(m.animationDuration=`${c.duration}s`),vue.withDirectives(vue.createVNode("div",{ref:f,style:m,class:[bem$h(),c.className]},[(p=u.default)==null?void 0:p.call(u)]),[[vue.vShow,c.show]])});return useEventListener("touchmove",h,{target:f}),()=>{const p=vue.createVNode(vue.Transition,{name:"van-fade",appear:!0},{default:v});return c.teleport?vue.createVNode(vue.Teleport,{to:c.teleport},{default:()=>[p]}):p}}});const Overlay=withInstall(stdin_default$j),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$i,bem$g]=createNamespace("popup");var stdin_default$i=vue.defineComponent({name:name$i,inheritAttrs:!1,props:popupProps,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(c,{emit:u,attrs:f,slots:d}){let h,v;const p=vue.ref(),m=vue.ref(),g=useLazyRender(()=>c.show||!c.lazyRender),y=vue.computed(()=>{const zn={zIndex:p.value};if(isDef(c.duration)){const Un=c.position==="center"?"animationDuration":"transitionDuration";zn[Un]=`${c.duration}s`}return zn}),b=()=>{h||(h=!0,p.value=c.zIndex!==void 0?+c.zIndex:useGlobalZIndex(),u("open"))},gn=()=>{h&&callInterceptor(c.beforeClose,{done(){h=!1,u("close"),u("update:show",!1)}})},x=zn=>{u("clickOverlay",zn),c.closeOnClickOverlay&&gn()},re=()=>{if(c.overlay)return vue.createVNode(Overlay,vue.mergeProps({show:c.show,class:c.overlayClass,zIndex:p.value,duration:c.duration,customStyle:c.overlayStyle,role:c.closeOnClickOverlay?"button":void 0,tabindex:c.closeOnClickOverlay?0:void 0},useScopeId(),{onClick:x}),{default:d["overlay-content"]})},w=zn=>{u("clickCloseIcon",zn),gn()},J=()=>{if(c.closeable)return vue.createVNode(Icon,{role:"button",tabindex:0,name:c.closeIcon,class:[bem$g("close-icon",c.closeIconPosition),HAPTICS_FEEDBACK],classPrefix:c.iconPrefix,onClick:w},null)};let Fn;const Bn=()=>{Fn&&clearTimeout(Fn),Fn=setTimeout(()=>{u("opened")})},j=()=>u("closed"),vn=zn=>u("keydown",zn),Pn=g(()=>{var zn;const{round:Un,position:qn,safeAreaInsetTop:Qn,safeAreaInsetBottom:Jn}=c;return vue.withDirectives(vue.createVNode("div",vue.mergeProps({ref:m,style:y.value,role:"dialog",tabindex:0,class:[bem$g({round:Un,[qn]:qn}),{"van-safe-area-top":Qn,"van-safe-area-bottom":Jn}],onKeydown:vn},f,useScopeId()),[(zn=d.default)==null?void 0:zn.call(d),J()]),[[vue.vShow,c.show]])}),Rn=()=>{const{position:zn,transition:Un,transitionAppear:qn}=c,Qn=zn==="center"?"van-fade":`van-popup-slide-${zn}`;return vue.createVNode(vue.Transition,{name:Un||Qn,appear:qn,onAfterEnter:Bn,onAfterLeave:j},{default:Pn})};return vue.watch(()=>c.show,zn=>{zn&&!h&&(b(),f.tabindex===0&&vue.nextTick(()=>{var Un;(Un=m.value)==null||Un.focus()})),!zn&&h&&(h=!1,u("close"))}),useExpose({popupRef:m}),useLockScroll(m,()=>c.show&&c.lockScroll),useEventListener("popstate",()=>{c.closeOnPopstate&&(gn(),v=!1)}),vue.onMounted(()=>{c.show&&b()}),vue.onActivated(()=>{v&&(u("update:show",!0),v=!1)}),vue.onDeactivated(()=>{c.show&&c.teleport&&(gn(),v=!0)}),vue.provide(POPUP_TOGGLE_KEY,()=>c.show),()=>c.teleport?vue.createVNode(vue.Teleport,{to:c.teleport},{default:()=>[re(),Rn()]}):vue.createVNode(vue.Fragment,null,[re(),Rn()])}});const Popup=withInstall(stdin_default$i),[name$h,bem$f,t$1]=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(d=>d[f.value]===u);function findOptionByValue(c,u,f){const d=c.findIndex(v=>v[f.value]===u),h=findIndexOfEnabledOption(c,d);return c[h]}function formatCascadeColumns(c,u,f){const d=[];let h={[u.children]:c},v=0;for(;h&&h[u.children];){const p=h[u.children],m=f.value[v];if(h=isDef(m)?findOptionByValue(p,m,u):void 0,!h&&p.length){const g=getFirstEnabledOption(p)[u.value];h=findOptionByValue(p,g,u)}v++,d.push(p)}return d}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$g,bem$e]=createNamespace("picker-column"),PICKER_KEY=Symbol(name$g);var stdin_default$h=vue.defineComponent({name:name$g,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 d,h,v,p,m;const g=vue.ref(),y=vue.ref(),b=vue.ref(0),gn=vue.ref(0),x=useTouch(),re=()=>c.options.length,w=()=>c.optionHeight*(+c.visibleOptionNum-1)/2,J=Jn=>{let Zn=findIndexOfEnabledOption(c.options,Jn);const Xn=-Zn*c.optionHeight,nr=()=>{Zn>re()-1&&(Zn=findIndexOfEnabledOption(c.options,Jn));const sr=c.options[Zn][c.fields.value];sr!==c.value&&u("change",sr)};d&&Xn!==b.value?m=nr:nr(),b.value=Xn},Fn=()=>c.readonly||!c.options.length,Bn=Jn=>{d||Fn()||(m=null,gn.value=DEFAULT_DURATION,J(Jn),u("clickOption",c.options[Jn]))},j=Jn=>clamp(Math.round(-Jn/c.optionHeight),0,re()-1),vn=vue.computed(()=>j(b.value)),Pn=(Jn,Zn)=>{const Xn=Math.abs(Jn/Zn);Jn=b.value+Xn/.003*(Jn<0?-1:1);const nr=j(Jn);gn.value=+c.swipeDuration,J(nr)},Rn=()=>{d=!1,gn.value=0,m&&(m(),m=null)},zn=Jn=>{if(!Fn()){if(x.start(Jn),d){const Zn=getElementTranslateY(y.value);b.value=Math.min(0,Zn-w())}gn.value=0,h=b.value,v=Date.now(),p=h,m=null}},Un=Jn=>{if(Fn())return;x.move(Jn),x.isVertical()&&(d=!0,preventDefault(Jn,!0));const Zn=clamp(h+x.deltaY.value,-(re()*c.optionHeight),c.optionHeight),Xn=j(Zn);Xn!==vn.value&&u("scrollInto",c.options[Xn]),b.value=Zn;const nr=Date.now();nr-v>MOMENTUM_TIME&&(v=nr,p=Zn)},qn=()=>{if(Fn())return;const Jn=b.value-p,Zn=Date.now()-v;if(Zn<MOMENTUM_TIME&&Math.abs(Jn)>MOMENTUM_DISTANCE){Pn(Jn,Zn);return}const nr=j(b.value);gn.value=DEFAULT_DURATION,J(nr),setTimeout(()=>{d=!1},0)},Qn=()=>{const Jn={height:`${c.optionHeight}px`};return c.options.map((Zn,Xn)=>{const nr=Zn[c.fields.text],{disabled:sr}=Zn,ur=Zn[c.fields.value],Hn={role:"button",style:Jn,tabindex:sr?-1:0,class:[bem$e("item",{disabled:sr,selected:ur===c.value}),Zn.className],onClick:()=>Bn(Xn)},Kn={class:"van-ellipsis",[c.allowHtml?"innerHTML":"textContent"]:nr};return vue.createVNode("li",Hn,[f.option?f.option(Zn,Xn):vue.createVNode("div",Kn,null)])})};return useParent(PICKER_KEY),useExpose({stopMomentum:Rn}),vue.watchEffect(()=>{const Jn=d?Math.floor(-b.value/c.optionHeight):c.options.findIndex(nr=>nr[c.fields.value]===c.value),Zn=findIndexOfEnabledOption(c.options,Jn),Xn=-Zn*c.optionHeight;d&&Zn<Jn&&Rn(),b.value=Xn}),useEventListener("touchmove",Un,{target:g}),()=>vue.createVNode("div",{ref:g,class:bem$e(),onTouchstartPassive:zn,onTouchend:qn,onTouchcancel:qn},[vue.createVNode("ul",{ref:y,style:{transform:`translate3d(0, ${b.value+w()}px, 0)`,transitionDuration:`${gn.value}ms`,transitionProperty:gn.value?"all":"none"},class:bem$e("wrapper"),onTransitionend:Rn},[Qn()])])}});const[name$f]=createNamespace("picker-toolbar"),pickerToolbarProps={title:String,cancelButtonText:String,confirmButtonText:String},pickerToolbarSlots=["cancel","confirm","title","toolbar"],pickerToolbarPropKeys=Object.keys(pickerToolbarProps);var stdin_default$g=vue.defineComponent({name:name$f,props:pickerToolbarProps,emits:["confirm","cancel"],setup(c,{emit:u,slots:f}){const d=()=>{if(f.title)return f.title();if(c.title)return vue.createVNode("div",{class:[bem$f("title"),"van-ellipsis"]},[c.title])},h=()=>u("cancel"),v=()=>u("confirm"),p=()=>{var g;const y=(g=c.cancelButtonText)!=null?g:t$1("cancel");if(!(!f.cancel&&!y))return vue.createVNode("button",{type:"button",class:[bem$f("cancel"),HAPTICS_FEEDBACK],onClick:h},[f.cancel?f.cancel():y])},m=()=>{var g;const y=(g=c.confirmButtonText)!=null?g:t$1("confirm");if(!(!f.confirm&&!y))return vue.createVNode("button",{type:"button",class:[bem$f("confirm"),HAPTICS_FEEDBACK],onClick:v},[f.confirm?f.confirm():y])};return()=>vue.createVNode("div",{class:bem$f("toolbar")},[f.toolbar?f.toolbar():[p(),d(),m()]])}});const useSyncPropRef=(c,u)=>{const f=vue.ref(c());return vue.watch(c,d=>{d!==f.value&&(f.value=d)}),vue.watch(f,d=>{d!==c()&&u(d)}),f};/**
|
|
182
182
|
* @vue/shared v3.5.4
|
|
183
183
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|