@ecan-bi/datav 1.4.47 → 1.4.49
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 +4260 -4243
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +26 -26
- 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,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.4.
|
|
2
|
-
(function(Hr,ai){typeof exports=="object"&&typeof module<"u"?ai(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("ant-design-vue/es/notification/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],ai):(Hr=typeof globalThis<"u"?globalThis:Hr||self,ai(Hr["@ecan/bi-datav"]={},Hr.Vue,Hr["echarts/core"],Hr.ResizeDetector,Hr.AntDesignVue,null,null,Hr.LodashEs,Hr.Dayjs,Hr.Axios,Hr.Mitt,null,null,null,Hr["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,Hr["echarts/renderers"],Hr["echarts/charts"],Hr["echarts/components"],null,Hr.Echarts,null,null,Hr.Xlsx,Hr.big.js))})(this,function(exports,vue,core$1,resizeDetector,antDesignVue,style$1,style$2,lodashEs,dayjs,axios,mitt,style$3,style$4,style$5,locale,style$6,style$7,style$8,style$9,renderers,charts,components$1,style$a,echarts,style$b,style$c,xlsx,big_js){var Hr,ai,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 h=Object.getOwnPropertyDescriptor(c,f);Object.defineProperty(u,f,h.get?h:{enumerable:!0,get:()=>c[f]})}}return u.default=c,Object.freeze(u)}const echarts__namespace=_interopNamespaceDefault(echarts),METHOD_NAMES=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function usePublicAPI(c,u){function f(d){return(...v)=>{if(c.value||u(),!c.value)throw new Error("ECharts is not initialized yet.");return c.value[d].apply(c.value,v)}}function h(){const d=Object.create(null);return METHOD_NAMES.forEach(v=>{d[v]=f(v)}),d}return h()}function useAutoresize(c,u,f){let h=null;vue.watch([f,c,u],([d,v,p],m,g)=>{d&&v&&p&&(h=core$1.throttle(()=>{v.resize()},100),resizeDetector.addListener(d,h)),g(()=>{h&&d&&resizeDetector.removeListener(d,h)})})}const autoresizeProps={autoresize:Boolean},LOADING_OPTIONS_KEY="ecLoadingOptions";function useLoading(c,u,f){const h=vue.inject(LOADING_OPTIONS_KEY,{}),d=vue.computed(()=>({...vue.unref(h),...f==null?void 0:f.value}));vue.watchEffect(()=>{const v=c.value;v&&(u.value?v.showLoading(d.value):v.hideLoading())})}const loadingProps$1={loading:Boolean,loadingOptions:Object},style="",onRE=/^on[^a-z]/,isOn=c=>onRE.test(c);function omitOn(c){const u={};for(const f in c)isOn(f)||(u[f]=c[f]);return u}const TAG_NAME="x-vue-echarts",THEME_KEY="ecTheme",INIT_OPTIONS_KEY="ecInitOptions",UPDATE_OPTIONS_KEY="ecUpdateOptions",Echarts=vue.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...autoresizeProps,...loadingProps$1},inheritAttrs:!1,setup(c,{attrs:u,listeners:f}){const h=vue.shallowRef(),d=vue.shallowRef(),v=vue.shallowRef(),p=vue.inject(THEME_KEY,null),m=vue.inject(INIT_OPTIONS_KEY,null),g=vue.inject(UPDATE_OPTIONS_KEY,null),{autoresize:y,manualUpdate:x,loading:Pn,loadingOptions:b}=vue.toRefs(c),vn=vue.computed(()=>v.value||c.option||Object.create(null)),_=vue.computed(()=>c.theme||vue.unref(p)||{}),re=vue.computed(()=>c.initOptions||vue.unref(m)||{}),Fn=vue.computed(()=>c.updateOptions||vue.unref(g)||{}),Bn=vue.computed(()=>omitOn(u));function w(Wn){if(d.value||!h.value)return;const Un=d.value=core$1.init(h.value,_.value,re.value);c.group&&(Un.group=c.group);let Qn=f;Qn||(Qn={},Object.keys(u).filter(Xn=>Xn.indexOf("on")===0&&Xn.length>2).forEach(Xn=>{const ar=Xn.charAt(2).toLowerCase()+Xn.slice(3);Qn[ar]=u[Xn]})),Object.keys(Qn).forEach(Xn=>{const ar=Qn[Xn];ar&&(Xn.indexOf("zr:")===0?Un.getZr().on(Xn.slice(3).toLowerCase(),ar):Un.on(Xn.toLowerCase(),ar))});function Jn(){if(Un&&!Un.isDisposed())try{Un.resize()}catch(Xn){if(Xn.message==="Cannot read property 'get' of undefined")return;throw Xn}}function tr(){Un.setOption(Wn||vn.value,Fn.value)}y.value?vue.nextTick(()=>{Jn(),tr()}):tr()}function J(Wn,Un){c.manualUpdate&&(v.value=Wn),d.value?d.value.setOption(Wn,Un||{}):w(Wn)}function gn(){d.value&&(d.value.dispose(),d.value=void 0)}let Rn=null;vue.watch(x,Wn=>{typeof Rn=="function"&&(Rn(),Rn=null),Wn||(Rn=vue.watch(()=>c.option,Un=>{Un&&(d.value?d.value.setOption(Un,Fn.value):w())},{deep:!0}))},{immediate:!0}),vue.watch([_,re],()=>{gn(),w()},{deep:!0}),vue.watchEffect(()=>{c.group&&d.value&&(d.value.group=c.group)});const zn=usePublicAPI(d,w);return useLoading(d,Pn,b),useAutoresize(d,y,h),vue.onMounted(()=>{c.option&&w()}),vue.onUnmounted(gn),{chart:d,root:h,setOption:J,nonEventAttrs:Bn,...zn}},render(){const c={...this.nonEventAttrs};return c.ref="root",c.class=c.class?["echarts"].concat(c.class):"echarts",vue.h(TAG_NAME,c)}});function bound01(c,u){isOnePointZero(c)&&(c="100%");var f=isPercentage(c);return c=u===360?c:Math.min(u,Math.max(0,parseFloat(c))),f&&(c=parseInt(String(c*u),10)/100),Math.abs(c-u)<1e-6?1:(u===360?c=(c<0?c%u+u:c%u)/parseFloat(String(u)):c=c%u/parseFloat(String(u)),c)}function isOnePointZero(c){return typeof c=="string"&&c.indexOf(".")!==-1&&parseFloat(c)===1}function isPercentage(c){return typeof c=="string"&&c.indexOf("%")!==-1}function boundAlpha(c){return c=parseFloat(c),(isNaN(c)||c<0||c>1)&&(c=1),c}function convertToPercentage(c){return c<=1?"".concat(Number(c)*100,"%"):c}function pad2(c){return c.length===1?"0"+c:String(c)}function rgbToRgb(c,u,f){return{r:bound01(c,255)*255,g:bound01(u,255)*255,b:bound01(f,255)*255}}function hue2rgb(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*(6*f):f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}function hslToRgb(c,u,f){var h,d,v;if(c=bound01(c,360),u=bound01(u,100),f=bound01(f,100),u===0)d=f,v=f,h=f;else{var p=f<.5?f*(1+u):f+u-f*u,m=2*f-p;h=hue2rgb(m,p,c+1/3),d=hue2rgb(m,p,c),v=hue2rgb(m,p,c-1/3)}return{r:h*255,g:d*255,b:v*255}}function rgbToHsv(c,u,f){c=bound01(c,255),u=bound01(u,255),f=bound01(f,255);var h=Math.max(c,u,f),d=Math.min(c,u,f),v=0,p=h,m=h-d,g=h===0?0:m/h;if(h===d)v=0;else{switch(h){case c:v=(u-f)/m+(u<f?6:0);break;case u:v=(f-c)/m+2;break;case f:v=(c-u)/m+4;break}v/=6}return{h:v,s:g,v:p}}function hsvToRgb(c,u,f){c=bound01(c,360)*6,u=bound01(u,100),f=bound01(f,100);var h=Math.floor(c),d=c-h,v=f*(1-u),p=f*(1-d*u),m=f*(1-(1-d)*u),g=h%6,y=[f,p,v,v,m,f][g],x=[m,f,f,p,v,v][g],Pn=[v,v,m,f,f,p][g];return{r:y*255,g:x*255,b:Pn*255}}function rgbToHex(c,u,f,h){var d=[pad2(Math.round(c).toString(16)),pad2(Math.round(u).toString(16)),pad2(Math.round(f).toString(16))];return h&&d[0].startsWith(d[0].charAt(1))&&d[1].startsWith(d[1].charAt(1))&&d[2].startsWith(d[2].charAt(1))?d[0].charAt(0)+d[1].charAt(0)+d[2].charAt(0):d.join("")}function convertHexToDecimal(c){return parseIntFromHex(c)/255}function parseIntFromHex(c){return parseInt(c,16)}var names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function inputToRGB(c){var u={r:0,g:0,b:0},f=1,h=null,d=null,v=null,p=!1,m=!1;return typeof c=="string"&&(c=stringInputToObject(c)),typeof c=="object"&&(isValidCSSUnit(c.r)&&isValidCSSUnit(c.g)&&isValidCSSUnit(c.b)?(u=rgbToRgb(c.r,c.g,c.b),p=!0,m=String(c.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(c.h)&&isValidCSSUnit(c.s)&&isValidCSSUnit(c.v)?(h=convertToPercentage(c.s),d=convertToPercentage(c.v),u=hsvToRgb(c.h,h,d),p=!0,m="hsv"):isValidCSSUnit(c.h)&&isValidCSSUnit(c.s)&&isValidCSSUnit(c.l)&&(h=convertToPercentage(c.s),v=convertToPercentage(c.l),u=hslToRgb(c.h,h,v),p=!0,m="hsl"),Object.prototype.hasOwnProperty.call(c,"a")&&(f=c.a)),f=boundAlpha(f),{ok:p,format:c.format||m,r:Math.min(255,Math.max(u.r,0)),g:Math.min(255,Math.max(u.g,0)),b:Math.min(255,Math.max(u.b,0)),a:f}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function stringInputToObject(c){if(c=c.trim().toLowerCase(),c.length===0)return!1;var u=!1;if(names[c])c=names[c],u=!0;else if(c==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var f=matchers.rgb.exec(c);return f?{r:f[1],g:f[2],b:f[3]}:(f=matchers.rgba.exec(c),f?{r:f[1],g:f[2],b:f[3],a:f[4]}:(f=matchers.hsl.exec(c),f?{h:f[1],s:f[2],l:f[3]}:(f=matchers.hsla.exec(c),f?{h:f[1],s:f[2],l:f[3],a:f[4]}:(f=matchers.hsv.exec(c),f?{h:f[1],s:f[2],v:f[3]}:(f=matchers.hsva.exec(c),f?{h:f[1],s:f[2],v:f[3],a:f[4]}:(f=matchers.hex8.exec(c),f?{r:parseIntFromHex(f[1]),g:parseIntFromHex(f[2]),b:parseIntFromHex(f[3]),a:convertHexToDecimal(f[4]),format:u?"name":"hex8"}:(f=matchers.hex6.exec(c),f?{r:parseIntFromHex(f[1]),g:parseIntFromHex(f[2]),b:parseIntFromHex(f[3]),format:u?"name":"hex"}:(f=matchers.hex4.exec(c),f?{r:parseIntFromHex(f[1]+f[1]),g:parseIntFromHex(f[2]+f[2]),b:parseIntFromHex(f[3]+f[3]),a:convertHexToDecimal(f[4]+f[4]),format:u?"name":"hex8"}:(f=matchers.hex3.exec(c),f?{r:parseIntFromHex(f[1]+f[1]),g:parseIntFromHex(f[2]+f[2]),b:parseIntFromHex(f[3]+f[3]),format:u?"name":"hex"}:!1)))))))))}function isValidCSSUnit(c){return!!matchers.CSS_UNIT.exec(String(c))}var hueStep=2,saturationStep=.16,saturationStep2=.05,brightnessStep1=.05,brightnessStep2=.15,lightColorCount=5,darkColorCount=4,darkColorMap=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function toHsv(c){var u=c.r,f=c.g,h=c.b,d=rgbToHsv(u,f,h);return{h:d.h*360,s:d.s,v:d.v}}function toHex(c){var u=c.r,f=c.g,h=c.b;return"#".concat(rgbToHex(u,f,h,!1))}function mix(c,u,f){var h=f/100,d={r:(u.r-c.r)*h+c.r,g:(u.g-c.g)*h+c.g,b:(u.b-c.b)*h+c.b};return d}function getHue(c,u,f){var h;return Math.round(c.h)>=60&&Math.round(c.h)<=240?h=f?Math.round(c.h)-hueStep*u:Math.round(c.h)+hueStep*u:h=f?Math.round(c.h)+hueStep*u:Math.round(c.h)-hueStep*u,h<0?h+=360:h>=360&&(h-=360),h}function getSaturation(c,u,f){if(c.h===0&&c.s===0)return c.s;var h;return f?h=c.s-saturationStep*u:u===darkColorCount?h=c.s+saturationStep:h=c.s+saturationStep2*u,h>1&&(h=1),f&&u===lightColorCount&&h>.1&&(h=.1),h<.06&&(h=.06),Number(h.toFixed(2))}function getValue(c,u,f){var h;return f?h=c.v+brightnessStep1*u:h=c.v-brightnessStep2*u,h>1&&(h=1),Number(h.toFixed(2))}function generate$1(c){for(var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=[],h=inputToRGB(c),d=lightColorCount;d>0;d-=1){var v=toHsv(h),p=toHex(inputToRGB({h:getHue(v,d,!0),s:getSaturation(v,d,!0),v:getValue(v,d,!0)}));f.push(p)}f.push(toHex(h));for(var m=1;m<=darkColorCount;m+=1){var g=toHsv(h),y=toHex(inputToRGB({h:getHue(g,m),s:getSaturation(g,m),v:getValue(g,m)}));f.push(y)}return u.theme==="dark"?darkColorMap.map(function(x){var Pn=x.index,b=x.opacity,vn=toHex(mix(inputToRGB(u.backgroundColor||"#141414"),inputToRGB(f[Pn]),b*100));return vn}):f}var presetPrimaryColors={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},presetPalettes={},presetDarkPalettes={};Object.keys(presetPrimaryColors).forEach(function(c){presetPalettes[c]=generate$1(presetPrimaryColors[c]),presetPalettes[c].primary=presetPalettes[c][5],presetDarkPalettes[c]=generate$1(presetPrimaryColors[c],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[c].primary=presetDarkPalettes[c][5]});var containers=[],styleElements=[],usage="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function createStyleElement(){var c=document.createElement("style");return c.setAttribute("type","text/css"),c}function insertCss(c,u){if(u=u||{},c===void 0)throw new Error(usage);var f=u.prepend===!0?"prepend":"append",h=u.container!==void 0?u.container:document.querySelector("head"),d=containers.indexOf(h);d===-1&&(d=containers.push(h)-1,styleElements[d]={});var v;return styleElements[d]!==void 0&&styleElements[d][f]!==void 0?v=styleElements[d][f]:(v=styleElements[d][f]=createStyleElement(),f==="prepend"?h.insertBefore(v,h.childNodes[0]):h.appendChild(v)),c.charCodeAt(0)===65279&&(c=c.substr(1,c.length)),v.styleSheet?v.styleSheet.cssText+=c:v.textContent+=c,v}function _objectSpread$8(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},h=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(f).filter(function(d){return Object.getOwnPropertyDescriptor(f,d).enumerable}))),h.forEach(function(d){_defineProperty$8(c,d,f[d])})}return c}function _defineProperty$8(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}function warn(c,u){process.env.NODE_ENV!=="production"&&!c&&console!==void 0&&console.error("Warning: ".concat(u))}function warning(c,u){warn(c,"[@ant-design/icons-vue] ".concat(u))}function isIconDefinition(c){return typeof c=="object"&&typeof c.name=="string"&&typeof c.theme=="string"&&(typeof c.icon=="object"||typeof c.icon=="function")}function generate(c,u,f){return f?vue.h(c.tag,_objectSpread$8({key:u},f,c.attrs),(c.children||[]).map(function(h,d){return generate(h,"".concat(u,"-").concat(c.tag,"-").concat(d))})):vue.h(c.tag,_objectSpread$8({key:u},c.attrs),(c.children||[]).map(function(h,d){return generate(h,"".concat(u,"-").concat(c.tag,"-").concat(d))}))}function getSecondaryColor(c){return generate$1(c)[0]}function normalizeTwoToneColors(c){return c?Array.isArray(c)?c:[c]:[]}var iconStyles=`
|
|
1
|
+
/*! @ecan-bi/datav@1.4.49 */
|
|
2
|
+
(function(Hr,ai){typeof exports=="object"&&typeof module<"u"?ai(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("ant-design-vue/es/notification/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],ai):(Hr=typeof globalThis<"u"?globalThis:Hr||self,ai(Hr["@ecan/bi-datav"]={},Hr.Vue,Hr["echarts/core"],Hr.ResizeDetector,Hr.AntDesignVue,null,null,Hr.LodashEs,Hr.Dayjs,Hr.Axios,Hr.Mitt,null,null,null,Hr["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,Hr["echarts/renderers"],Hr["echarts/charts"],Hr["echarts/components"],null,Hr.Echarts,null,null,Hr.Xlsx,Hr.big.js))})(this,function(exports,vue,core$1,resizeDetector,antDesignVue,style$1,style$2,lodashEs,dayjs,axios,mitt,style$3,style$4,style$5,locale,style$6,style$7,style$8,style$9,renderers,charts,components$1,style$a,echarts,style$b,style$c,xlsx,big_js){var Hr,ai,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 h=Object.getOwnPropertyDescriptor(c,f);Object.defineProperty(u,f,h.get?h:{enumerable:!0,get:()=>c[f]})}}return u.default=c,Object.freeze(u)}const echarts__namespace=_interopNamespaceDefault(echarts),METHOD_NAMES=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function usePublicAPI(c,u){function f(d){return(...v)=>{if(c.value||u(),!c.value)throw new Error("ECharts is not initialized yet.");return c.value[d].apply(c.value,v)}}function h(){const d=Object.create(null);return METHOD_NAMES.forEach(v=>{d[v]=f(v)}),d}return h()}function useAutoresize(c,u,f){let h=null;vue.watch([f,c,u],([d,v,p],m,g)=>{d&&v&&p&&(h=core$1.throttle(()=>{v.resize()},100),resizeDetector.addListener(d,h)),g(()=>{h&&d&&resizeDetector.removeListener(d,h)})})}const autoresizeProps={autoresize:Boolean},LOADING_OPTIONS_KEY="ecLoadingOptions";function useLoading(c,u,f){const h=vue.inject(LOADING_OPTIONS_KEY,{}),d=vue.computed(()=>({...vue.unref(h),...f==null?void 0:f.value}));vue.watchEffect(()=>{const v=c.value;v&&(u.value?v.showLoading(d.value):v.hideLoading())})}const loadingProps$1={loading:Boolean,loadingOptions:Object},style="",onRE=/^on[^a-z]/,isOn=c=>onRE.test(c);function omitOn(c){const u={};for(const f in c)isOn(f)||(u[f]=c[f]);return u}const TAG_NAME="x-vue-echarts",THEME_KEY="ecTheme",INIT_OPTIONS_KEY="ecInitOptions",UPDATE_OPTIONS_KEY="ecUpdateOptions",Echarts=vue.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...autoresizeProps,...loadingProps$1},inheritAttrs:!1,setup(c,{attrs:u,listeners:f}){const h=vue.shallowRef(),d=vue.shallowRef(),v=vue.shallowRef(),p=vue.inject(THEME_KEY,null),m=vue.inject(INIT_OPTIONS_KEY,null),g=vue.inject(UPDATE_OPTIONS_KEY,null),{autoresize:y,manualUpdate:x,loading:Bn,loadingOptions:b}=vue.toRefs(c),re=vue.computed(()=>v.value||c.option||Object.create(null)),_=vue.computed(()=>c.theme||vue.unref(p)||{}),vn=vue.computed(()=>c.initOptions||vue.unref(m)||{}),Fn=vue.computed(()=>c.updateOptions||vue.unref(g)||{}),Pn=vue.computed(()=>omitOn(u));function w(Wn){if(d.value||!h.value)return;const Un=d.value=core$1.init(h.value,_.value,vn.value);c.group&&(Un.group=c.group);let er=f;er||(er={},Object.keys(u).filter(Qn=>Qn.indexOf("on")===0&&Qn.length>2).forEach(Qn=>{const ir=Qn.charAt(2).toLowerCase()+Qn.slice(3);er[ir]=u[Qn]})),Object.keys(er).forEach(Qn=>{const ir=er[Qn];ir&&(Qn.indexOf("zr:")===0?Un.getZr().on(Qn.slice(3).toLowerCase(),ir):Un.on(Qn.toLowerCase(),ir))});function Jn(){if(Un&&!Un.isDisposed())try{Un.resize()}catch(Qn){if(Qn.message==="Cannot read property 'get' of undefined")return;throw Qn}}function tr(){Un.setOption(Wn||re.value,Fn.value)}y.value?vue.nextTick(()=>{Jn(),tr()}):tr()}function J(Wn,Un){c.manualUpdate&&(v.value=Wn),d.value?d.value.setOption(Wn,Un||{}):w(Wn)}function gn(){d.value&&(d.value.dispose(),d.value=void 0)}let Vn=null;vue.watch(x,Wn=>{typeof Vn=="function"&&(Vn(),Vn=null),Wn||(Vn=vue.watch(()=>c.option,Un=>{Un&&(d.value?d.value.setOption(Un,Fn.value):w())},{deep:!0}))},{immediate:!0}),vue.watch([_,vn],()=>{gn(),w()},{deep:!0}),vue.watchEffect(()=>{c.group&&d.value&&(d.value.group=c.group)});const zn=usePublicAPI(d,w);return useLoading(d,Bn,b),useAutoresize(d,y,h),vue.onMounted(()=>{c.option&&w()}),vue.onUnmounted(gn),{chart:d,root:h,setOption:J,nonEventAttrs:Pn,...zn}},render(){const c={...this.nonEventAttrs};return c.ref="root",c.class=c.class?["echarts"].concat(c.class):"echarts",vue.h(TAG_NAME,c)}});function bound01(c,u){isOnePointZero(c)&&(c="100%");var f=isPercentage(c);return c=u===360?c:Math.min(u,Math.max(0,parseFloat(c))),f&&(c=parseInt(String(c*u),10)/100),Math.abs(c-u)<1e-6?1:(u===360?c=(c<0?c%u+u:c%u)/parseFloat(String(u)):c=c%u/parseFloat(String(u)),c)}function isOnePointZero(c){return typeof c=="string"&&c.indexOf(".")!==-1&&parseFloat(c)===1}function isPercentage(c){return typeof c=="string"&&c.indexOf("%")!==-1}function boundAlpha(c){return c=parseFloat(c),(isNaN(c)||c<0||c>1)&&(c=1),c}function convertToPercentage(c){return c<=1?"".concat(Number(c)*100,"%"):c}function pad2(c){return c.length===1?"0"+c:String(c)}function rgbToRgb(c,u,f){return{r:bound01(c,255)*255,g:bound01(u,255)*255,b:bound01(f,255)*255}}function hue2rgb(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*(6*f):f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}function hslToRgb(c,u,f){var h,d,v;if(c=bound01(c,360),u=bound01(u,100),f=bound01(f,100),u===0)d=f,v=f,h=f;else{var p=f<.5?f*(1+u):f+u-f*u,m=2*f-p;h=hue2rgb(m,p,c+1/3),d=hue2rgb(m,p,c),v=hue2rgb(m,p,c-1/3)}return{r:h*255,g:d*255,b:v*255}}function rgbToHsv(c,u,f){c=bound01(c,255),u=bound01(u,255),f=bound01(f,255);var h=Math.max(c,u,f),d=Math.min(c,u,f),v=0,p=h,m=h-d,g=h===0?0:m/h;if(h===d)v=0;else{switch(h){case c:v=(u-f)/m+(u<f?6:0);break;case u:v=(f-c)/m+2;break;case f:v=(c-u)/m+4;break}v/=6}return{h:v,s:g,v:p}}function hsvToRgb(c,u,f){c=bound01(c,360)*6,u=bound01(u,100),f=bound01(f,100);var h=Math.floor(c),d=c-h,v=f*(1-u),p=f*(1-d*u),m=f*(1-(1-d)*u),g=h%6,y=[f,p,v,v,m,f][g],x=[m,f,f,p,v,v][g],Bn=[v,v,m,f,f,p][g];return{r:y*255,g:x*255,b:Bn*255}}function rgbToHex(c,u,f,h){var d=[pad2(Math.round(c).toString(16)),pad2(Math.round(u).toString(16)),pad2(Math.round(f).toString(16))];return h&&d[0].startsWith(d[0].charAt(1))&&d[1].startsWith(d[1].charAt(1))&&d[2].startsWith(d[2].charAt(1))?d[0].charAt(0)+d[1].charAt(0)+d[2].charAt(0):d.join("")}function convertHexToDecimal(c){return parseIntFromHex(c)/255}function parseIntFromHex(c){return parseInt(c,16)}var names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function inputToRGB(c){var u={r:0,g:0,b:0},f=1,h=null,d=null,v=null,p=!1,m=!1;return typeof c=="string"&&(c=stringInputToObject(c)),typeof c=="object"&&(isValidCSSUnit(c.r)&&isValidCSSUnit(c.g)&&isValidCSSUnit(c.b)?(u=rgbToRgb(c.r,c.g,c.b),p=!0,m=String(c.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(c.h)&&isValidCSSUnit(c.s)&&isValidCSSUnit(c.v)?(h=convertToPercentage(c.s),d=convertToPercentage(c.v),u=hsvToRgb(c.h,h,d),p=!0,m="hsv"):isValidCSSUnit(c.h)&&isValidCSSUnit(c.s)&&isValidCSSUnit(c.l)&&(h=convertToPercentage(c.s),v=convertToPercentage(c.l),u=hslToRgb(c.h,h,v),p=!0,m="hsl"),Object.prototype.hasOwnProperty.call(c,"a")&&(f=c.a)),f=boundAlpha(f),{ok:p,format:c.format||m,r:Math.min(255,Math.max(u.r,0)),g:Math.min(255,Math.max(u.g,0)),b:Math.min(255,Math.max(u.b,0)),a:f}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function stringInputToObject(c){if(c=c.trim().toLowerCase(),c.length===0)return!1;var u=!1;if(names[c])c=names[c],u=!0;else if(c==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var f=matchers.rgb.exec(c);return f?{r:f[1],g:f[2],b:f[3]}:(f=matchers.rgba.exec(c),f?{r:f[1],g:f[2],b:f[3],a:f[4]}:(f=matchers.hsl.exec(c),f?{h:f[1],s:f[2],l:f[3]}:(f=matchers.hsla.exec(c),f?{h:f[1],s:f[2],l:f[3],a:f[4]}:(f=matchers.hsv.exec(c),f?{h:f[1],s:f[2],v:f[3]}:(f=matchers.hsva.exec(c),f?{h:f[1],s:f[2],v:f[3],a:f[4]}:(f=matchers.hex8.exec(c),f?{r:parseIntFromHex(f[1]),g:parseIntFromHex(f[2]),b:parseIntFromHex(f[3]),a:convertHexToDecimal(f[4]),format:u?"name":"hex8"}:(f=matchers.hex6.exec(c),f?{r:parseIntFromHex(f[1]),g:parseIntFromHex(f[2]),b:parseIntFromHex(f[3]),format:u?"name":"hex"}:(f=matchers.hex4.exec(c),f?{r:parseIntFromHex(f[1]+f[1]),g:parseIntFromHex(f[2]+f[2]),b:parseIntFromHex(f[3]+f[3]),a:convertHexToDecimal(f[4]+f[4]),format:u?"name":"hex8"}:(f=matchers.hex3.exec(c),f?{r:parseIntFromHex(f[1]+f[1]),g:parseIntFromHex(f[2]+f[2]),b:parseIntFromHex(f[3]+f[3]),format:u?"name":"hex"}:!1)))))))))}function isValidCSSUnit(c){return!!matchers.CSS_UNIT.exec(String(c))}var hueStep=2,saturationStep=.16,saturationStep2=.05,brightnessStep1=.05,brightnessStep2=.15,lightColorCount=5,darkColorCount=4,darkColorMap=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function toHsv(c){var u=c.r,f=c.g,h=c.b,d=rgbToHsv(u,f,h);return{h:d.h*360,s:d.s,v:d.v}}function toHex(c){var u=c.r,f=c.g,h=c.b;return"#".concat(rgbToHex(u,f,h,!1))}function mix(c,u,f){var h=f/100,d={r:(u.r-c.r)*h+c.r,g:(u.g-c.g)*h+c.g,b:(u.b-c.b)*h+c.b};return d}function getHue(c,u,f){var h;return Math.round(c.h)>=60&&Math.round(c.h)<=240?h=f?Math.round(c.h)-hueStep*u:Math.round(c.h)+hueStep*u:h=f?Math.round(c.h)+hueStep*u:Math.round(c.h)-hueStep*u,h<0?h+=360:h>=360&&(h-=360),h}function getSaturation(c,u,f){if(c.h===0&&c.s===0)return c.s;var h;return f?h=c.s-saturationStep*u:u===darkColorCount?h=c.s+saturationStep:h=c.s+saturationStep2*u,h>1&&(h=1),f&&u===lightColorCount&&h>.1&&(h=.1),h<.06&&(h=.06),Number(h.toFixed(2))}function getValue(c,u,f){var h;return f?h=c.v+brightnessStep1*u:h=c.v-brightnessStep2*u,h>1&&(h=1),Number(h.toFixed(2))}function generate$1(c){for(var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=[],h=inputToRGB(c),d=lightColorCount;d>0;d-=1){var v=toHsv(h),p=toHex(inputToRGB({h:getHue(v,d,!0),s:getSaturation(v,d,!0),v:getValue(v,d,!0)}));f.push(p)}f.push(toHex(h));for(var m=1;m<=darkColorCount;m+=1){var g=toHsv(h),y=toHex(inputToRGB({h:getHue(g,m),s:getSaturation(g,m),v:getValue(g,m)}));f.push(y)}return u.theme==="dark"?darkColorMap.map(function(x){var Bn=x.index,b=x.opacity,re=toHex(mix(inputToRGB(u.backgroundColor||"#141414"),inputToRGB(f[Bn]),b*100));return re}):f}var presetPrimaryColors={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},presetPalettes={},presetDarkPalettes={};Object.keys(presetPrimaryColors).forEach(function(c){presetPalettes[c]=generate$1(presetPrimaryColors[c]),presetPalettes[c].primary=presetPalettes[c][5],presetDarkPalettes[c]=generate$1(presetPrimaryColors[c],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[c].primary=presetDarkPalettes[c][5]});var containers=[],styleElements=[],usage="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function createStyleElement(){var c=document.createElement("style");return c.setAttribute("type","text/css"),c}function insertCss(c,u){if(u=u||{},c===void 0)throw new Error(usage);var f=u.prepend===!0?"prepend":"append",h=u.container!==void 0?u.container:document.querySelector("head"),d=containers.indexOf(h);d===-1&&(d=containers.push(h)-1,styleElements[d]={});var v;return styleElements[d]!==void 0&&styleElements[d][f]!==void 0?v=styleElements[d][f]:(v=styleElements[d][f]=createStyleElement(),f==="prepend"?h.insertBefore(v,h.childNodes[0]):h.appendChild(v)),c.charCodeAt(0)===65279&&(c=c.substr(1,c.length)),v.styleSheet?v.styleSheet.cssText+=c:v.textContent+=c,v}function _objectSpread$8(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},h=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(f).filter(function(d){return Object.getOwnPropertyDescriptor(f,d).enumerable}))),h.forEach(function(d){_defineProperty$8(c,d,f[d])})}return c}function _defineProperty$8(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}function warn(c,u){process.env.NODE_ENV!=="production"&&!c&&console!==void 0&&console.error("Warning: ".concat(u))}function warning(c,u){warn(c,"[@ant-design/icons-vue] ".concat(u))}function isIconDefinition(c){return typeof c=="object"&&typeof c.name=="string"&&typeof c.theme=="string"&&(typeof c.icon=="object"||typeof c.icon=="function")}function generate(c,u,f){return f?vue.h(c.tag,_objectSpread$8({key:u},f,c.attrs),(c.children||[]).map(function(h,d){return generate(h,"".concat(u,"-").concat(c.tag,"-").concat(d))})):vue.h(c.tag,_objectSpread$8({key:u},c.attrs),(c.children||[]).map(function(h,d){return generate(h,"".concat(u,"-").concat(c.tag,"-").concat(d))}))}function getSecondaryColor(c){return generate$1(c)[0]}function normalizeTwoToneColors(c){return c?Array.isArray(c)?c:[c]:[]}var iconStyles=`
|
|
3
3
|
.anticon {
|
|
4
4
|
display: inline-block;
|
|
5
5
|
color: inherit;
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
}
|
|
56
56
|
`,cssInjectedFlag=!1,useInsertStyles=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iconStyles;vue.nextTick(function(){cssInjectedFlag||(typeof window<"u"&&window.document&&window.document.documentElement&&insertCss(u,{prepend:!0}),cssInjectedFlag=!0)})},_excluded$1=["icon","primaryColor","secondaryColor"];function _objectWithoutProperties$1(c,u){if(c==null)return{};var f=_objectWithoutPropertiesLoose$1(c,u),h,d;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(c);for(d=0;d<v.length;d++)h=v[d],!(u.indexOf(h)>=0)&&Object.prototype.propertyIsEnumerable.call(c,h)&&(f[h]=c[h])}return f}function _objectWithoutPropertiesLoose$1(c,u){if(c==null)return{};var f={},h=Object.keys(c),d,v;for(v=0;v<h.length;v++)d=h[v],!(u.indexOf(d)>=0)&&(f[d]=c[d]);return f}function _objectSpread$7(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},h=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(f).filter(function(d){return Object.getOwnPropertyDescriptor(f,d).enumerable}))),h.forEach(function(d){_defineProperty$7(c,d,f[d])})}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 twoToneColorPalette={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors(c){var u=c.primaryColor,f=c.secondaryColor;twoToneColorPalette.primaryColor=u,twoToneColorPalette.secondaryColor=f||getSecondaryColor(u),twoToneColorPalette.calculated=!!f}function getTwoToneColors(){return _objectSpread$7({},twoToneColorPalette)}var IconBase=function(u,f){var h=_objectSpread$7({},u,f.attrs),d=h.icon,v=h.primaryColor,p=h.secondaryColor,m=_objectWithoutProperties$1(h,_excluded$1),g=twoToneColorPalette;if(v&&(g={primaryColor:v,secondaryColor:p||getSecondaryColor(v)}),useInsertStyles(),warning(isIconDefinition(d),"icon should be icon definiton, but got ".concat(d)),!isIconDefinition(d))return null;var y=d;return y&&typeof y.icon=="function"&&(y=_objectSpread$7({},y,{icon:y.icon(g.primaryColor,g.secondaryColor)})),generate(y.icon,"svg-".concat(y.name),_objectSpread$7({},m,{"data-icon":y.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};IconBase.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},IconBase.inheritAttrs=!1,IconBase.displayName="IconBase",IconBase.getTwoToneColors=getTwoToneColors,IconBase.setTwoToneColors=setTwoToneColors;const VueIcon=IconBase;function _slicedToArray$1(c,u){return _arrayWithHoles$1(c)||_iterableToArrayLimit$1(c,u)||_unsupportedIterableToArray$1(c,u)||_nonIterableRest$1()}function _nonIterableRest$1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
57
57
|
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,h=new Array(u);f<u;f++)h[f]=c[f];return h}function _iterableToArrayLimit$1(c,u){var f=c==null?null:typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(f!=null){var h=[],d=!0,v=!1,p,m;try{for(f=f.call(c);!(d=(p=f.next()).done)&&(h.push(p.value),!(u&&h.length===u));d=!0);}catch(g){v=!0,m=g}finally{try{!d&&f.return!=null&&f.return()}finally{if(v)throw m}}return h}}function _arrayWithHoles$1(c){if(Array.isArray(c))return c}function setTwoToneColor(c){var u=normalizeTwoToneColors(c),f=_slicedToArray$1(u,2),h=f[0],d=f[1];return VueIcon.setTwoToneColors({primaryColor:h,secondaryColor:d})}function getTwoToneColor(){var c=VueIcon.getTwoToneColors();return c.calculated?[c.primaryColor,c.secondaryColor]:c.primaryColor}var _excluded=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function _slicedToArray(c,u){return _arrayWithHoles(c)||_iterableToArrayLimit(c,u)||_unsupportedIterableToArray(c,u)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
58
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(c,u){if(c){if(typeof c=="string")return _arrayLikeToArray(c,u);var f=Object.prototype.toString.call(c).slice(8,-1);if(f==="Object"&&c.constructor&&(f=c.constructor.name),f==="Map"||f==="Set")return Array.from(c);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return _arrayLikeToArray(c,u)}}function _arrayLikeToArray(c,u){(u==null||u>c.length)&&(u=c.length);for(var f=0,h=new Array(u);f<u;f++)h[f]=c[f];return h}function _iterableToArrayLimit(c,u){var f=c==null?null:typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(f!=null){var h=[],d=!0,v=!1,p,m;try{for(f=f.call(c);!(d=(p=f.next()).done)&&(h.push(p.value),!(u&&h.length===u));d=!0);}catch(g){v=!0,m=g}finally{try{!d&&f.return!=null&&f.return()}finally{if(v)throw m}}return h}}function _arrayWithHoles(c){if(Array.isArray(c))return c}function _objectSpread$6(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},h=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(f).filter(function(d){return Object.getOwnPropertyDescriptor(f,d).enumerable}))),h.forEach(function(d){_defineProperty$6(c,d,f[d])})}return c}function _defineProperty$6(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}function _objectWithoutProperties(c,u){if(c==null)return{};var f=_objectWithoutPropertiesLoose(c,u),h,d;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(c);for(d=0;d<v.length;d++)h=v[d],!(u.indexOf(h)>=0)&&Object.prototype.propertyIsEnumerable.call(c,h)&&(f[h]=c[h])}return f}function _objectWithoutPropertiesLoose(c,u){if(c==null)return{};var f={},h=Object.keys(c),d,v;for(v=0;v<h.length;v++)d=h[v],!(u.indexOf(d)>=0)&&(f[d]=c[d]);return f}setTwoToneColor("#1890ff");var Icon$1=function(u,f){var h,d=_objectSpread$6({},u,f.attrs),v=d.class,p=d.icon,m=d.spin,g=d.rotate,y=d.tabindex,x=d.twoToneColor,Pn=d.onClick,b=_objectWithoutProperties(d,_excluded),vn=(h={anticon:!0},_defineProperty$6(h,"anticon-".concat(p.name),!!p.name),_defineProperty$6(h,v,v),h),_=m===""||m||p.name==="loading"?"anticon-spin":"",re=y;re===void 0&&Pn&&(re=-1,b.tabindex=re);var Fn=g?{msTransform:"rotate(".concat(g,"deg)"),transform:"rotate(".concat(g,"deg)")}:void 0,Bn=normalizeTwoToneColors(x),w=_slicedToArray(Bn,2),J=w[0],gn=w[1];return vue.createVNode("span",_objectSpread$6({role:"img","aria-label":p.name},b,{onClick:Pn,class:vn}),[vue.createVNode(VueIcon,{class:_,icon:p,primaryColor:J,secondaryColor:gn,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 CalendarOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};const CalendarOutlinedSvg=CalendarOutlined$2;function _objectSpread$5(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},h=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(f).filter(function(d){return Object.getOwnPropertyDescriptor(f,d).enumerable}))),h.forEach(function(d){_defineProperty$5(c,d,f[d])})}return c}function _defineProperty$5(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var CalendarOutlined=function(u,f){var h=_objectSpread$5({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$5({},h,{icon:CalendarOutlinedSvg}),null)};CalendarOutlined.displayName="CalendarOutlined",CalendarOutlined.inheritAttrs=!1;const CalendarOutlined$1=CalendarOutlined;var CloseCircleFilled$2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const CloseCircleFilledSvg=CloseCircleFilled$2;function _objectSpread$4(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},h=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(f).filter(function(d){return Object.getOwnPropertyDescriptor(f,d).enumerable}))),h.forEach(function(d){_defineProperty$4(c,d,f[d])})}return c}function _defineProperty$4(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var CloseCircleFilled=function(u,f){var h=_objectSpread$4({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$4({},h,{icon:CloseCircleFilledSvg}),null)};CloseCircleFilled.displayName="CloseCircleFilled",CloseCircleFilled.inheritAttrs=!1;const CloseCircleFilled$1=CloseCircleFilled;var CloseOutlined$2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const CloseOutlinedSvg=CloseOutlined$2;function _objectSpread$3(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},h=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(f).filter(function(d){return Object.getOwnPropertyDescriptor(f,d).enumerable}))),h.forEach(function(d){_defineProperty$3(c,d,f[d])})}return c}function _defineProperty$3(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var CloseOutlined=function(u,f){var h=_objectSpread$3({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$3({},h,{icon:CloseOutlinedSvg}),null)};CloseOutlined.displayName="CloseOutlined",CloseOutlined.inheritAttrs=!1;const CloseOutlined$1=CloseOutlined;var DownOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const DownOutlinedSvg=DownOutlined$2;function _objectSpread$2(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},h=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(f).filter(function(d){return Object.getOwnPropertyDescriptor(f,d).enumerable}))),h.forEach(function(d){_defineProperty$2(c,d,f[d])})}return c}function _defineProperty$2(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var DownOutlined=function(u,f){var h=_objectSpread$2({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$2({},h,{icon:DownOutlinedSvg}),null)};DownOutlined.displayName="DownOutlined",DownOutlined.inheritAttrs=!1;const DownOutlined$1=DownOutlined;var LoadingOutlined$2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const LoadingOutlinedSvg=LoadingOutlined$2;function _objectSpread$1(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},h=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(f).filter(function(d){return Object.getOwnPropertyDescriptor(f,d).enumerable}))),h.forEach(function(d){_defineProperty$1(c,d,f[d])})}return c}function _defineProperty$1(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var LoadingOutlined=function(u,f){var h=_objectSpread$1({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$1({},h,{icon:LoadingOutlinedSvg}),null)};LoadingOutlined.displayName="LoadingOutlined",LoadingOutlined.inheritAttrs=!1;const LoadingOutlined$1=LoadingOutlined;var RightOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const RightOutlinedSvg=RightOutlined$2;function _objectSpread(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},h=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(f).filter(function(d){return Object.getOwnPropertyDescriptor(f,d).enumerable}))),h.forEach(function(d){_defineProperty(c,d,f[d])})}return c}function _defineProperty(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var RightOutlined=function(u,f){var h=_objectSpread({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread({},h,{icon:RightOutlinedSvg}),null)};RightOutlined.displayName="RightOutlined",RightOutlined.inheritAttrs=!1;const RightOutlined$1=RightOutlined,_sfc_main$y=vue.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:antDesignVue.Spin},setup(){return{indicator:vue.h(LoadingOutlined$1,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Spin_vue_vue_type_style_index_0_lang="",_export_sfc$1=(c,u)=>{const f=c.__vccOpts||c;for(const[h,d]of u)f[h]=d;return f},_hoisted_1$i={class:"spin-wrapper"};function _sfc_render$D(c,u,f,h,d,v){const p=vue.resolveComponent("a-spin");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$i,[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$y,[["render",_sfc_render$D]]),_sfc_main$x=vue.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:antDesignVue.Skeleton}});function _sfc_render$C(c,u,f,h,d,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$x,[["render",_sfc_render$C]]);(function(){try{if(typeof document<"u"){var c=document.createElement("style");c.appendChild(document.createTextNode('.vue3-marquee{display:flex!important;position:relative}.vue3-marquee.horizontal{overflow-x:hidden!important;flex-direction:row!important;width:100%;height:max-content}.vue3-marquee.vertical{overflow-y:hidden!important;flex-direction:column!important;height:100%;width:max-content}.vue3-marquee:hover>.marquee{animation-play-state:var(--pauseOnHover)}.vue3-marquee:active>.marquee{animation-play-state:var(--pauseOnClick)}.vue3-marquee>.marquee{flex:0 0 auto;min-width:var(--min-width);min-height:var(--min-height);z-index:1;animation:var(--orientation) var(--duration) linear var(--delay) var(--loops);animation-play-state:var(--pauseAnimation);animation-direction:var(--direction)}.vue3-marquee.horizontal>.marquee{display:flex;flex-direction:row;align-items:center}.vue3-marquee.vertical>.marquee{display:flex;flex-direction:column;align-items:center}@keyframes scrollX{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes scrollY{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.vue3-marquee>.overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.transparent-overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.overlay:before,.vue3-marquee>.overlay:after{content:"";position:absolute;z-index:2}.vue3-marquee.horizontal>.overlay:before,.vue3-marquee.horizontal>.overlay:after{background:linear-gradient(to right,var(--gradient-color));height:100%;width:var(--gradient-length)}.vue3-marquee.vertical>.overlay:before,.vue3-marquee.vertical>.overlay:after{background:linear-gradient(to bottom,var(--gradient-color));height:var(--gradient-length);width:100%}.vue3-marquee.horizontal>.overlay:after{transform:rotate(180deg)}.vue3-marquee.vertical>.overlay:after{transform:rotate(-180deg)}.vue3-marquee>.overlay:before{left:0;top:0}.vue3-marquee.horizontal>.overlay:after{right:0;top:0}.vue3-marquee.vertical>.overlay:after{left:0;bottom:0}')),document.head.appendChild(c)}}catch(u){console.error("vite-plugin-css-injected-by-js",u)}})();var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(c,u,f)=>u in c?__defProp(c,u,{enumerable:!0,configurable:!0,writable:!0,value:f}):c[u]=f,__spreadValues=(c,u)=>{for(var f in u||(u={}))__hasOwnProp.call(u,f)&&__defNormalProp(c,f,u[f]);if(__getOwnPropSymbols)for(var f of __getOwnPropSymbols(u))__propIsEnum.call(u,f)&&__defNormalProp(c,f,u[f]);return c},_export_sfc=(c,u)=>{const f=c.__vccOpts||c;for(const[h,d]of u)f[h]=d;return f};const _sfc_main$w=vue.defineComponent({props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:Array,default:[255,255,255]},gradientWidth:{type:String},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1},animateOnOverflowOnly:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume","onOverflowDetected","onOverflowCleared"],setup(c,{emit:u}){const f=vue.ref(0),h=vue.ref("100%"),d=vue.ref("100%"),v=vue.ref(0),p=vue.ref(!1),m=vue.ref(!1),g=vue.ref(0),y=vue.ref(0),x=vue.ref(0),Pn=vue.ref(0),b=vue.ref(!1),vn=vue.ref(!1),_=vue.ref(0),re=vue.ref(null),Fn=vue.ref("200px"),Bn=vue.ref(!1),w=vue.ref(null),J=vue.ref(null),gn=async()=>{await Rn(),v.value++},Rn=async()=>{c.vertical&&(p.value=!0),setInterval(()=>{if(h.value="0%",d.value="0%",w.value!==null&&J.value!==null&&w.value&&J.value)if(c.vertical&&"clientHeight"in w.value&&"clientHeight"in J.value){Pn.value=w.value.clientHeight,x.value=J.value.clientHeight;const Hn=Math.ceil(x.value/Pn.value);return f.value=isFinite(Hn)?Hn:0,p.value=!1,f.value}else if(!c.vertical&&"clientWidth"in w.value&&"clientWidth"in J.value){if(y.value=w.value.clientWidth,g.value=J.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 h.value="100%",d.value="100%",0;else return h.value="100%",d.value="100%",0},100)};vue.watch(y,async()=>{c.clone&&gn()}),vue.watch(g,async()=>{(c.clone||c.animateOnOverflowOnly)&&gn()}),vue.watch(()=>c.pause,(Hn,Yn)=>{Hn!==Yn&&u(Hn?"onResume":"onPause")});const zn=()=>{c.pauseOnHover&&(u("onPause"),b.value=!0)},Wn=()=>{c.pauseOnHover&&(u("onResume"),b.value=!1)},Un=()=>{c.pauseOnClick&&(u("onPause"),vn.value=!0)},Qn=()=>{c.pauseOnClick&&(u("onResume"),vn.value=!1)},Jn=vue.computed(()=>c.pause||c.vertical&&p.value||c.animateOnOverflowOnly&&m.value?"paused":"running"),tr=vue.computed(()=>c.pauseOnHover&&(b.value||vn.value)||!c.pauseOnHover&&Jn.value==="paused"?"paused":"running"),Xn=vue.computed(()=>c.pauseOnHover&&b.value||c.pauseOnClick&&vn.value||!c.pauseOnHover&&Jn.value==="paused"?"paused":"running"),ar=vue.computed(()=>{const Hn={"--duration":`${c.duration}s`,"--delay":`${c.delay}s`,"--direction":`${c.direction}`,"--pauseOnHover":`${tr.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":`${h.value}`,"--min-height":`${d.value}`},Yn={"--orientation":"scrollX",orientation:"horizontal"};return c.vertical&&(Yn["--orientation"]="scrollY"),__spreadValues(__spreadValues({},Hn),Yn)}),sr=vue.computed(()=>!!c.gradient),nr=async()=>{c.vertical?(d.value="100%",h.value="auto",c.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(d.value="auto",c.animateOnOverflowOnly?h.value="auto":h.value="100%"),c.gradient&&(c.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),Fn.value=c.gradientWidth):c.gradientLength&&(Fn.value=c.gradientLength)),(c.clone||c.animateOnOverflowOnly)&&(await Rn(),gn()),Bn.value=!0};return vue.onMounted(async()=>{nr(),re.value=setInterval(()=>{_.value++,c.loop!==0&&_.value===c.loop&&(u("onComplete"),clearInterval(re.value)),u("onLoopComplete")},c.duration*1e3)}),vue.onBeforeUnmount(()=>{clearInterval(re.value)}),{ready:Bn,contentWidth:y,containerWidth:g,contentHeight:Pn,containerHeight:x,loopCounter:_,loopInterval:re,mouseOverMarquee:b,mouseDownMarquee:vn,minWidth:h,minHeight:d,animateOnOverflowPause:m,marqueeContent:w,marqueeOverlayContainer:J,componentKey:v,showGradient:sr,cloneAmount:f,ForcesUpdate:gn,checkForClone:Rn,setupMarquee:nr,getCurrentStyle:ar,hoverStarted:zn,hoverEnded:Wn,mouseDown:Un,mouseUp:Qn}}}),_hoisted_1$h={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},_hoisted_2$7={class:"marquee",ref:"marqueeContent"},_hoisted_3$3={key:1,"aria-hidden":!0,class:"marquee"};function _sfc_render$B(c,u,f,h,d,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$h,null,512),c.showGradient?(vue.openBlock(),vue.createElementBlock("div",{key:0,"aria-hidden":!0,class:vue.normalizeClass(["overlay",{vertical:c.vertical,horizontal:!c.vertical}])},null,2)):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_2$7,[vue.renderSlot(c.$slots,"default")],512),!c.animateOnOverflowOnly||c.animateOnOverflowOnly&&!c.animateOnOverflowPause?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$3,[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$w,[["render",_sfc_render$B]]);const _sfc_main$v=vue.defineComponent({name:"SeamScroll",components:{Vue3Marquee},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},vertical:{type:Boolean,default:!0},step:{type:Number,default:1},wrapStyle:{type:Object,default:()=>({})},marqueeStyle:{type:Object,default:()=>({})}},setup(c){return{isAutoScroll:vue.ref(c.visible)}}}),MarqueeScroll_vue_vue_type_style_index_0_lang="";function _sfc_render$A(c,u,f,h,d,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$v,[["render",_sfc_render$A]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const withInstall$1=(c,u)=>{if(c.install=f=>{for(const h of[c,...Object.values(u??{})])f.component(h.name,h)},u)for(const[f,h]of Object.entries(u))c[f]=h;return c},props={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestType:0,requestMethod:"get",dataSetParam:{},requestHeaders:"{}",isOpenRequestTimer:!1,isViewRedrawing:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1,requestParamsMode:"1",customRequestParams:"{}",componentDoc:null},transformToComponentProps=c=>{const u={};if(typeof c=="object"&&c!=null)for(const f in c){const h=c[f];u[f]={type:h==null?void 0:h.constructor,default:h}}return u},pageConfig={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[]},pageConfigComponentProps=transformToComponentProps(pageConfig),EVENT_BUS="EVENT_BUS",GLOBAL_CONFIG="GLOBAL_CONFIG",GLOBAL_MODEL="GLOBAL_MODEL",REQUEST_MODEL="REQUEST_MODEL",GLOBAL_TOKEN="GLOBAL_TOKEN",REFRESH_PAGE="REFRESH_PAGE",MODAL_MODEL="MODAL_MODEL",LOADED_DATA="LOADED_DATA",ZOOM_FONT_SIZE=18,CONTEXT="ygt",INDICATOR_URL=((Hr=window==null?void 0:window.config)==null?void 0:Hr.indicatorURL)||"";(ai=window==null?void 0:window.config)!=null&&ai.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 h in c)Object.prototype.hasOwnProperty.call(c,h)&&u.indexOf(h)<0&&(f[h]=c[h]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function"){var d=0;for(h=Object.getOwnPropertySymbols(c);d<h.length;d++)u.indexOf(h[d])<0&&Object.prototype.propertyIsEnumerable.call(c,h[d])&&(f[h[d]]=c[h[d]])}return f}const n=()=>{},o=Object.assign,r=Array.isArray,i=c=>typeof c=="function",a=c=>typeof c=="symbol";let l;const s=()=>l||(l=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function S(c){const u=c&&c.__v_raw;return u?S(u):c}function A(c){return!(!c||c.__v_isRef!==!0)}function j(c){return A(c)?c.value:c}new Set(Object.getOwnPropertyNames(Symbol).filter(c=>c!=="arguments"&&c!=="caller").map(c=>Symbol[c]).filter(a));const O=[];function C(c,...u){if(process.env.NODE_ENV==="production")return;const f=O.length?O[O.length-1].component:null,h=f&&f.appContext.config.warnHandler,d=function(){let v=O[O.length-1];if(!v)return[];const p=[];for(;v;){const m=p[0];m&&m.vnode===v?m.recurseCount++:p.push({vnode:v,recurseCount:0});const g=v.component&&v.component.parent;v=g&&g.vnode}return p}();if(h)$(h,f,11,[c+u.join(""),f&&f.proxy,d.map(({vnode:v})=>`at <${oe(f,v.type)}>`).join(`
|
|
58
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(c,u){if(c){if(typeof c=="string")return _arrayLikeToArray(c,u);var f=Object.prototype.toString.call(c).slice(8,-1);if(f==="Object"&&c.constructor&&(f=c.constructor.name),f==="Map"||f==="Set")return Array.from(c);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return _arrayLikeToArray(c,u)}}function _arrayLikeToArray(c,u){(u==null||u>c.length)&&(u=c.length);for(var f=0,h=new Array(u);f<u;f++)h[f]=c[f];return h}function _iterableToArrayLimit(c,u){var f=c==null?null:typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(f!=null){var h=[],d=!0,v=!1,p,m;try{for(f=f.call(c);!(d=(p=f.next()).done)&&(h.push(p.value),!(u&&h.length===u));d=!0);}catch(g){v=!0,m=g}finally{try{!d&&f.return!=null&&f.return()}finally{if(v)throw m}}return h}}function _arrayWithHoles(c){if(Array.isArray(c))return c}function _objectSpread$6(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},h=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(f).filter(function(d){return Object.getOwnPropertyDescriptor(f,d).enumerable}))),h.forEach(function(d){_defineProperty$6(c,d,f[d])})}return c}function _defineProperty$6(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}function _objectWithoutProperties(c,u){if(c==null)return{};var f=_objectWithoutPropertiesLoose(c,u),h,d;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(c);for(d=0;d<v.length;d++)h=v[d],!(u.indexOf(h)>=0)&&Object.prototype.propertyIsEnumerable.call(c,h)&&(f[h]=c[h])}return f}function _objectWithoutPropertiesLoose(c,u){if(c==null)return{};var f={},h=Object.keys(c),d,v;for(v=0;v<h.length;v++)d=h[v],!(u.indexOf(d)>=0)&&(f[d]=c[d]);return f}setTwoToneColor("#1890ff");var Icon$1=function(u,f){var h,d=_objectSpread$6({},u,f.attrs),v=d.class,p=d.icon,m=d.spin,g=d.rotate,y=d.tabindex,x=d.twoToneColor,Bn=d.onClick,b=_objectWithoutProperties(d,_excluded),re=(h={anticon:!0},_defineProperty$6(h,"anticon-".concat(p.name),!!p.name),_defineProperty$6(h,v,v),h),_=m===""||m||p.name==="loading"?"anticon-spin":"",vn=y;vn===void 0&&Bn&&(vn=-1,b.tabindex=vn);var Fn=g?{msTransform:"rotate(".concat(g,"deg)"),transform:"rotate(".concat(g,"deg)")}:void 0,Pn=normalizeTwoToneColors(x),w=_slicedToArray(Pn,2),J=w[0],gn=w[1];return vue.createVNode("span",_objectSpread$6({role:"img","aria-label":p.name},b,{onClick:Bn,class:re}),[vue.createVNode(VueIcon,{class:_,icon:p,primaryColor:J,secondaryColor:gn,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 CalendarOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};const CalendarOutlinedSvg=CalendarOutlined$2;function _objectSpread$5(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},h=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(f).filter(function(d){return Object.getOwnPropertyDescriptor(f,d).enumerable}))),h.forEach(function(d){_defineProperty$5(c,d,f[d])})}return c}function _defineProperty$5(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var CalendarOutlined=function(u,f){var h=_objectSpread$5({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$5({},h,{icon:CalendarOutlinedSvg}),null)};CalendarOutlined.displayName="CalendarOutlined",CalendarOutlined.inheritAttrs=!1;const CalendarOutlined$1=CalendarOutlined;var CloseCircleFilled$2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const CloseCircleFilledSvg=CloseCircleFilled$2;function _objectSpread$4(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},h=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(f).filter(function(d){return Object.getOwnPropertyDescriptor(f,d).enumerable}))),h.forEach(function(d){_defineProperty$4(c,d,f[d])})}return c}function _defineProperty$4(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var CloseCircleFilled=function(u,f){var h=_objectSpread$4({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$4({},h,{icon:CloseCircleFilledSvg}),null)};CloseCircleFilled.displayName="CloseCircleFilled",CloseCircleFilled.inheritAttrs=!1;const CloseCircleFilled$1=CloseCircleFilled;var CloseOutlined$2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const CloseOutlinedSvg=CloseOutlined$2;function _objectSpread$3(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},h=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(f).filter(function(d){return Object.getOwnPropertyDescriptor(f,d).enumerable}))),h.forEach(function(d){_defineProperty$3(c,d,f[d])})}return c}function _defineProperty$3(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var CloseOutlined=function(u,f){var h=_objectSpread$3({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$3({},h,{icon:CloseOutlinedSvg}),null)};CloseOutlined.displayName="CloseOutlined",CloseOutlined.inheritAttrs=!1;const CloseOutlined$1=CloseOutlined;var DownOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const DownOutlinedSvg=DownOutlined$2;function _objectSpread$2(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},h=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(f).filter(function(d){return Object.getOwnPropertyDescriptor(f,d).enumerable}))),h.forEach(function(d){_defineProperty$2(c,d,f[d])})}return c}function _defineProperty$2(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var DownOutlined=function(u,f){var h=_objectSpread$2({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$2({},h,{icon:DownOutlinedSvg}),null)};DownOutlined.displayName="DownOutlined",DownOutlined.inheritAttrs=!1;const DownOutlined$1=DownOutlined;var LoadingOutlined$2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const LoadingOutlinedSvg=LoadingOutlined$2;function _objectSpread$1(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},h=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(f).filter(function(d){return Object.getOwnPropertyDescriptor(f,d).enumerable}))),h.forEach(function(d){_defineProperty$1(c,d,f[d])})}return c}function _defineProperty$1(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var LoadingOutlined=function(u,f){var h=_objectSpread$1({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$1({},h,{icon:LoadingOutlinedSvg}),null)};LoadingOutlined.displayName="LoadingOutlined",LoadingOutlined.inheritAttrs=!1;const LoadingOutlined$1=LoadingOutlined;var RightOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const RightOutlinedSvg=RightOutlined$2;function _objectSpread(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},h=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(f).filter(function(d){return Object.getOwnPropertyDescriptor(f,d).enumerable}))),h.forEach(function(d){_defineProperty(c,d,f[d])})}return c}function _defineProperty(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var RightOutlined=function(u,f){var h=_objectSpread({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread({},h,{icon:RightOutlinedSvg}),null)};RightOutlined.displayName="RightOutlined",RightOutlined.inheritAttrs=!1;const RightOutlined$1=RightOutlined,_sfc_main$y=vue.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:antDesignVue.Spin},setup(){return{indicator:vue.h(LoadingOutlined$1,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Spin_vue_vue_type_style_index_0_lang="",_export_sfc$1=(c,u)=>{const f=c.__vccOpts||c;for(const[h,d]of u)f[h]=d;return f},_hoisted_1$i={class:"spin-wrapper"};function _sfc_render$D(c,u,f,h,d,v){const p=vue.resolveComponent("a-spin");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$i,[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$y,[["render",_sfc_render$D]]),_sfc_main$x=vue.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:antDesignVue.Skeleton}});function _sfc_render$C(c,u,f,h,d,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$x,[["render",_sfc_render$C]]);(function(){try{if(typeof document<"u"){var c=document.createElement("style");c.appendChild(document.createTextNode('.vue3-marquee{display:flex!important;position:relative}.vue3-marquee.horizontal{overflow-x:hidden!important;flex-direction:row!important;width:100%;height:max-content}.vue3-marquee.vertical{overflow-y:hidden!important;flex-direction:column!important;height:100%;width:max-content}.vue3-marquee:hover>.marquee{animation-play-state:var(--pauseOnHover)}.vue3-marquee:active>.marquee{animation-play-state:var(--pauseOnClick)}.vue3-marquee>.marquee{flex:0 0 auto;min-width:var(--min-width);min-height:var(--min-height);z-index:1;animation:var(--orientation) var(--duration) linear var(--delay) var(--loops);animation-play-state:var(--pauseAnimation);animation-direction:var(--direction)}.vue3-marquee.horizontal>.marquee{display:flex;flex-direction:row;align-items:center}.vue3-marquee.vertical>.marquee{display:flex;flex-direction:column;align-items:center}@keyframes scrollX{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes scrollY{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.vue3-marquee>.overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.transparent-overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.overlay:before,.vue3-marquee>.overlay:after{content:"";position:absolute;z-index:2}.vue3-marquee.horizontal>.overlay:before,.vue3-marquee.horizontal>.overlay:after{background:linear-gradient(to right,var(--gradient-color));height:100%;width:var(--gradient-length)}.vue3-marquee.vertical>.overlay:before,.vue3-marquee.vertical>.overlay:after{background:linear-gradient(to bottom,var(--gradient-color));height:var(--gradient-length);width:100%}.vue3-marquee.horizontal>.overlay:after{transform:rotate(180deg)}.vue3-marquee.vertical>.overlay:after{transform:rotate(-180deg)}.vue3-marquee>.overlay:before{left:0;top:0}.vue3-marquee.horizontal>.overlay:after{right:0;top:0}.vue3-marquee.vertical>.overlay:after{left:0;bottom:0}')),document.head.appendChild(c)}}catch(u){console.error("vite-plugin-css-injected-by-js",u)}})();var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(c,u,f)=>u in c?__defProp(c,u,{enumerable:!0,configurable:!0,writable:!0,value:f}):c[u]=f,__spreadValues=(c,u)=>{for(var f in u||(u={}))__hasOwnProp.call(u,f)&&__defNormalProp(c,f,u[f]);if(__getOwnPropSymbols)for(var f of __getOwnPropSymbols(u))__propIsEnum.call(u,f)&&__defNormalProp(c,f,u[f]);return c},_export_sfc=(c,u)=>{const f=c.__vccOpts||c;for(const[h,d]of u)f[h]=d;return f};const _sfc_main$w=vue.defineComponent({props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:Array,default:[255,255,255]},gradientWidth:{type:String},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1},animateOnOverflowOnly:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume","onOverflowDetected","onOverflowCleared"],setup(c,{emit:u}){const f=vue.ref(0),h=vue.ref("100%"),d=vue.ref("100%"),v=vue.ref(0),p=vue.ref(!1),m=vue.ref(!1),g=vue.ref(0),y=vue.ref(0),x=vue.ref(0),Bn=vue.ref(0),b=vue.ref(!1),re=vue.ref(!1),_=vue.ref(0),vn=vue.ref(null),Fn=vue.ref("200px"),Pn=vue.ref(!1),w=vue.ref(null),J=vue.ref(null),gn=async()=>{await Vn(),v.value++},Vn=async()=>{c.vertical&&(p.value=!0),setInterval(()=>{if(h.value="0%",d.value="0%",w.value!==null&&J.value!==null&&w.value&&J.value)if(c.vertical&&"clientHeight"in w.value&&"clientHeight"in J.value){Bn.value=w.value.clientHeight,x.value=J.value.clientHeight;const Hn=Math.ceil(x.value/Bn.value);return f.value=isFinite(Hn)?Hn:0,p.value=!1,f.value}else if(!c.vertical&&"clientWidth"in w.value&&"clientWidth"in J.value){if(y.value=w.value.clientWidth,g.value=J.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 h.value="100%",d.value="100%",0;else return h.value="100%",d.value="100%",0},100)};vue.watch(y,async()=>{c.clone&&gn()}),vue.watch(g,async()=>{(c.clone||c.animateOnOverflowOnly)&&gn()}),vue.watch(()=>c.pause,(Hn,Yn)=>{Hn!==Yn&&u(Hn?"onResume":"onPause")});const zn=()=>{c.pauseOnHover&&(u("onPause"),b.value=!0)},Wn=()=>{c.pauseOnHover&&(u("onResume"),b.value=!1)},Un=()=>{c.pauseOnClick&&(u("onPause"),re.value=!0)},er=()=>{c.pauseOnClick&&(u("onResume"),re.value=!1)},Jn=vue.computed(()=>c.pause||c.vertical&&p.value||c.animateOnOverflowOnly&&m.value?"paused":"running"),tr=vue.computed(()=>c.pauseOnHover&&(b.value||re.value)||!c.pauseOnHover&&Jn.value==="paused"?"paused":"running"),Qn=vue.computed(()=>c.pauseOnHover&&b.value||c.pauseOnClick&&re.value||!c.pauseOnHover&&Jn.value==="paused"?"paused":"running"),ir=vue.computed(()=>{const Hn={"--duration":`${c.duration}s`,"--delay":`${c.delay}s`,"--direction":`${c.direction}`,"--pauseOnHover":`${tr.value}`,"--pauseOnClick":`${Qn.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":`${h.value}`,"--min-height":`${d.value}`},Yn={"--orientation":"scrollX",orientation:"horizontal"};return c.vertical&&(Yn["--orientation"]="scrollY"),__spreadValues(__spreadValues({},Hn),Yn)}),cr=vue.computed(()=>!!c.gradient),Xn=async()=>{c.vertical?(d.value="100%",h.value="auto",c.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(d.value="auto",c.animateOnOverflowOnly?h.value="auto":h.value="100%"),c.gradient&&(c.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),Fn.value=c.gradientWidth):c.gradientLength&&(Fn.value=c.gradientLength)),(c.clone||c.animateOnOverflowOnly)&&(await Vn(),gn()),Pn.value=!0};return vue.onMounted(async()=>{Xn(),vn.value=setInterval(()=>{_.value++,c.loop!==0&&_.value===c.loop&&(u("onComplete"),clearInterval(vn.value)),u("onLoopComplete")},c.duration*1e3)}),vue.onBeforeUnmount(()=>{clearInterval(vn.value)}),{ready:Pn,contentWidth:y,containerWidth:g,contentHeight:Bn,containerHeight:x,loopCounter:_,loopInterval:vn,mouseOverMarquee:b,mouseDownMarquee:re,minWidth:h,minHeight:d,animateOnOverflowPause:m,marqueeContent:w,marqueeOverlayContainer:J,componentKey:v,showGradient:cr,cloneAmount:f,ForcesUpdate:gn,checkForClone:Vn,setupMarquee:Xn,getCurrentStyle:ir,hoverStarted:zn,hoverEnded:Wn,mouseDown:Un,mouseUp:er}}}),_hoisted_1$h={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},_hoisted_2$7={class:"marquee",ref:"marqueeContent"},_hoisted_3$3={key:1,"aria-hidden":!0,class:"marquee"};function _sfc_render$B(c,u,f,h,d,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$h,null,512),c.showGradient?(vue.openBlock(),vue.createElementBlock("div",{key:0,"aria-hidden":!0,class:vue.normalizeClass(["overlay",{vertical:c.vertical,horizontal:!c.vertical}])},null,2)):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_2$7,[vue.renderSlot(c.$slots,"default")],512),!c.animateOnOverflowOnly||c.animateOnOverflowOnly&&!c.animateOnOverflowPause?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$3,[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$w,[["render",_sfc_render$B]]);const _sfc_main$v=vue.defineComponent({name:"SeamScroll",components:{Vue3Marquee},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},vertical:{type:Boolean,default:!0},step:{type:Number,default:1},wrapStyle:{type:Object,default:()=>({})},marqueeStyle:{type:Object,default:()=>({})}},setup(c){return{isAutoScroll:vue.ref(c.visible)}}}),MarqueeScroll_vue_vue_type_style_index_0_lang="";function _sfc_render$A(c,u,f,h,d,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$v,[["render",_sfc_render$A]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const withInstall$1=(c,u)=>{if(c.install=f=>{for(const h of[c,...Object.values(u??{})])f.component(h.name,h)},u)for(const[f,h]of Object.entries(u))c[f]=h;return c},props={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestType:0,requestMethod:"get",dataSetParam:{},requestHeaders:"{}",isOpenRequestTimer:!1,isViewRedrawing:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1,requestParamsMode:"1",customRequestParams:"{}",componentDoc:null},transformToComponentProps=c=>{const u={};if(typeof c=="object"&&c!=null)for(const f in c){const h=c[f];u[f]={type:h==null?void 0:h.constructor,default:h}}return u},pageConfig={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[]},pageConfigComponentProps=transformToComponentProps(pageConfig),EVENT_BUS="EVENT_BUS",GLOBAL_CONFIG="GLOBAL_CONFIG",GLOBAL_MODEL="GLOBAL_MODEL",REQUEST_MODEL="REQUEST_MODEL",GLOBAL_TOKEN="GLOBAL_TOKEN",REFRESH_PAGE="REFRESH_PAGE",MODAL_MODEL="MODAL_MODEL",LOADED_DATA="LOADED_DATA",ZOOM_FONT_SIZE=18,CONTEXT="ygt",INDICATOR_URL=((Hr=window==null?void 0:window.config)==null?void 0:Hr.indicatorURL)||"";(ai=window==null?void 0:window.config)!=null&&ai.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 h in c)Object.prototype.hasOwnProperty.call(c,h)&&u.indexOf(h)<0&&(f[h]=c[h]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function"){var d=0;for(h=Object.getOwnPropertySymbols(c);d<h.length;d++)u.indexOf(h[d])<0&&Object.prototype.propertyIsEnumerable.call(c,h[d])&&(f[h[d]]=c[h[d]])}return f}const n=()=>{},o=Object.assign,r=Array.isArray,i=c=>typeof c=="function",a=c=>typeof c=="symbol";let l;const s=()=>l||(l=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function S(c){const u=c&&c.__v_raw;return u?S(u):c}function A(c){return!(!c||c.__v_isRef!==!0)}function j(c){return A(c)?c.value:c}new Set(Object.getOwnPropertyNames(Symbol).filter(c=>c!=="arguments"&&c!=="caller").map(c=>Symbol[c]).filter(a));const O=[];function C(c,...u){if(process.env.NODE_ENV==="production")return;const f=O.length?O[O.length-1].component:null,h=f&&f.appContext.config.warnHandler,d=function(){let v=O[O.length-1];if(!v)return[];const p=[];for(;v;){const m=p[0];m&&m.vnode===v?m.recurseCount++:p.push({vnode:v,recurseCount:0});const g=v.component&&v.component.parent;v=g&&g.vnode}return p}();if(h)$(h,f,11,[c+u.join(""),f&&f.proxy,d.map(({vnode:v})=>`at <${oe(f,v.type)}>`).join(`
|
|
59
59
|
`),d]);else{const v=[`[Vue warn]: ${c}`,...u];d.length&&v.push(`
|
|
60
60
|
`,...function(p){const m=[];return p.forEach((g,y)=>{m.push(...y===0?[]:[`
|
|
61
|
-
`],...function({vnode:x,recurseCount:Pn}){const b=Pn>0?`... (${Pn} recursive calls)`:"",vn=!!x.component&&x.component.parent==null,_=` at <${oe(x.component,x.type,vn)}`,re=">"+b;return x.props?[_,...L(x.props),re]:[_+re]}(g))}),m}(d)),console.warn(...v)}}function L(c){const u=[],f=Object.keys(c);return f.slice(0,3).forEach(h=>{u.push(...T(h,c[h]))}),f.length>3&&u.push(" ..."),u}function T(c,u,f){return typeof u=="string"?(u=JSON.stringify(u),f?u:[`${c}=${u}`]):typeof u=="number"||typeof u=="boolean"||u==null?f?u:[`${c}=${u}`]:A(u)?(u=T(c,S(u.value),!0),f?u:[`${c}=Ref<`,u,">"]):i(u)?[`${c}=fn${u.name?`<${u.name}>`:""}`]:(u=S(u),f?u:[`${c}=`,u])}const N={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function $(c,u,f,h){let d;try{d=h?c(...h):c()}catch(v){(function(p,m,g,y=!0){const x=m?m.vnode:null;if(m){let Pn=m.parent;const b=m.proxy,vn=process.env.NODE_ENV!=="production"?N[g]:g;for(;Pn;){const re=Pn.ec;if(re){for(let Fn=0;Fn<re.length;Fn++)if(re[Fn](p,b,vn)===!1)return}Pn=Pn.parent}const _=m.appContext.config.errorHandler;if(_)return void $(_,null,10,[p,b,vn])}(function(Pn,b,vn,_=!0){if(process.env.NODE_ENV!=="production"){const Fn=N[b];if(vn&&(re=vn,O.push(re)),C("Unhandled error"+(Fn?` during execution of ${Fn}`:"")),vn&&O.pop(),_)throw Pn;console.error(Pn)}else console.error(Pn);var re})(p,g,x,y)})(v,u,f)}return d}let k=!1,M=!1;const D=[];let E=0;const I=[];let F=null,V=0;const z$1=Promise.resolve();function R(c){D.length&&D.includes(c,k&&c.allowRecurse?E+1:E)||(c.id==null?D.push(c):D.splice(function(u){let f=E+1,h=D.length;for(;f<h;){const d=f+h>>>1,v=D[d],p=G(v);p<u||p===u&&v.pre?f=d+1:h=d}return f}(c.id),0,c),U())}function U(){k||M||(M=!0,z$1.then(W))}const G=c=>c.id==null?1/0:c.id,P=(c,u)=>{const f=G(c)-G(u);if(f===0){if(c.pre&&!u.pre)return-1;if(u.pre&&!c.pre)return 1}return f};function W(c){M=!1,k=!0,process.env.NODE_ENV!=="production"&&(c=c||new Map),D.sort(P);const u=process.env.NODE_ENV!=="production"?f=>Y(c,f):n;try{for(E=0;E<D.length;E++){const f=D[E];if(f&&f.active!==!1){if(process.env.NODE_ENV!=="production"&&u(f))continue;$(f,null,14)}}}finally{E=0,D.length=0,function(f){if(I.length){const h=[...new Set(I)];if(I.length=0,F)return void F.push(...h);for(F=h,process.env.NODE_ENV!=="production"&&(f=f||new Map),F.sort((d,v)=>G(d)-G(v)),V=0;V<F.length;V++)process.env.NODE_ENV!=="production"&&Y(f,F[V])||F[V]();F=null,V=0}}(c),k=!1,(D.length||I.length)&&W(c)}}function Y(c,u){if(c.has(u)){const f=c.get(u);if(f>100){const h=u.ownerInstance,d=h&&ne(h.type);return C(`Maximum recursive updates exceeded${d?` in component <${d}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}c.set(u,f+1)}else c.set(u,1)}const H=new Set;process.env.NODE_ENV!=="production"&&(s().__VUE_HMR_RUNTIME__={createRecord:Q(function(c,u){return B.has(c)?!1:(B.set(c,{initialDef:K(u),instances:new Set}),!0)}),rerender:Q(function(c,u){const f=B.get(c);f&&(f.initialDef.render=u,[...f.instances].forEach(h=>{u&&(h.render=u,K(h.type).render=u),h.renderCache=[],h.update()}))}),reload:Q(function(c,u){const f=B.get(c);if(!f)return;u=K(u),q(f.initialDef,u);const h=[...f.instances];for(const v of h){const p=K(v.type);H.has(p)||(p!==f.initialDef&&q(p,u),H.add(p)),v.appContext.propsCache.delete(v.type),v.appContext.emitsCache.delete(v.type),v.appContext.optionsCache.delete(v.type),v.ceReload?(H.add(p),v.ceReload(u.styles),H.delete(p)):v.parent?R(v.parent.update):v.appContext.reload?v.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}d=()=>{for(const v of h)H.delete(K(v.type))},r(d)?I.push(...d):F&&F.includes(d,d.allowRecurse?V+1:V)||I.push(d),U();var d})});const B=new Map;function K(c){return i(u=c)&&"__vccOpts"in u?c.__vccOpts:c;var u}function q(c,u){o(c,u);for(const f in c)f==="__file"||f in u||delete c[f]}function Q(c){return(u,f)=>{try{return c(u,f)}catch(h){console.error(h),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let X;process.env.NODE_ENV;let Z="__VUE_INSTANCE_SETTERS__";(X=s()[Z])||(X=s()[Z]=[]),X.push(c=>c);const ee=/(?:^|[-_])(\w)/g,te=c=>c.replace(ee,u=>u.toUpperCase()).replace(/[-_]/g,"");function ne(c,u=!0){return i(c)?c.displayName||c.name:c.name||u&&c.__name}function oe(c,u,f=!1){let h=ne(u);if(!h&&u.__file){const d=u.__file.match(/([^/\\]+)\.\w+$/);d&&(h=d[1])}if(!h&&c&&c.parent){const d=v=>{for(const p in v)if(v[p]===u)return p};h=d(c.components||c.parent.type.components)||d(c.appContext.components)}return h?te(h):f?"App":"Anonymous"}function ie(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var ae,le={exports:{}};function se(){return ae||(ae=1,le.exports=function(){var c=1e3,u=6e4,f=36e5,h="millisecond",d="second",v="minute",p="hour",m="day",g="week",y="month",x="quarter",Pn="year",b="date",vn="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,re=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,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 ar=["th","st","nd","rd"],sr=Xn%100;return"["+Xn+(ar[(sr-20)%10]||ar[sr]||ar[0])+"]"}},Bn=function(Xn,ar,sr){var nr=String(Xn);return!nr||nr.length>=ar?Xn:""+Array(ar+1-nr.length).join(sr)+Xn},w={s:Bn,z:function(Xn){var ar=-Xn.utcOffset(),sr=Math.abs(ar),nr=Math.floor(sr/60),Hn=sr%60;return(ar<=0?"+":"-")+Bn(nr,2,"0")+":"+Bn(Hn,2,"0")},m:function Xn(ar,sr){if(ar.date()<sr.date())return-Xn(sr,ar);var nr=12*(sr.year()-ar.year())+(sr.month()-ar.month()),Hn=ar.clone().add(nr,y),Yn=sr-Hn<0,Vn=ar.clone().add(nr+(Yn?-1:1),y);return+(-(nr+(sr-Hn)/(Yn?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:Pn,w:g,d:m,D:b,h:p,m:v,s:d,ms:h,Q:x}[Xn]||String(Xn||"").toLowerCase().replace(/s$/,"")},u:function(Xn){return Xn===void 0}},J="en",gn={};gn[J]=Fn;var Rn="$isDayjsObject",zn=function(Xn){return Xn instanceof Jn||!(!Xn||!Xn[Rn])},Wn=function Xn(ar,sr,nr){var Hn;if(!ar)return J;if(typeof ar=="string"){var Yn=ar.toLowerCase();gn[Yn]&&(Hn=Yn),sr&&(gn[Yn]=sr,Hn=Yn);var Vn=ar.split("-");if(!Hn&&Vn.length>1)return Xn(Vn[0])}else{var Gn=ar.name;gn[Gn]=ar,Hn=Gn}return!nr&&Hn&&(J=Hn),Hn||!nr&&J},Un=function(Xn,ar){if(zn(Xn))return Xn.clone();var sr=typeof ar=="object"?ar:{};return sr.date=Xn,sr.args=arguments,new Jn(sr)},Qn=w;Qn.l=Wn,Qn.i=zn,Qn.w=function(Xn,ar){return Un(Xn,{locale:ar.$L,utc:ar.$u,x:ar.$x,$offset:ar.$offset})};var Jn=function(){function Xn(sr){this.$L=Wn(sr.locale,null,!0),this.parse(sr),this.$x=this.$x||sr.x||{},this[Rn]=!0}var ar=Xn.prototype;return ar.parse=function(sr){this.$d=function(nr){var Hn=nr.date,Yn=nr.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(_);if(Vn){var Gn=Vn[2]-1||0,Zn=(Vn[7]||"0").substring(0,3);return Yn?new Date(Date.UTC(Vn[1],Gn,Vn[3]||1,Vn[4]||0,Vn[5]||0,Vn[6]||0,Zn)):new Date(Vn[1],Gn,Vn[3]||1,Vn[4]||0,Vn[5]||0,Vn[6]||0,Zn)}}return new Date(Hn)}(sr),this.init()},ar.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()},ar.$utils=function(){return Qn},ar.isValid=function(){return this.$d.toString()!==vn},ar.isSame=function(sr,nr){var Hn=Un(sr);return this.startOf(nr)<=Hn&&Hn<=this.endOf(nr)},ar.isAfter=function(sr,nr){return Un(sr)<this.startOf(nr)},ar.isBefore=function(sr,nr){return this.endOf(nr)<Un(sr)},ar.$g=function(sr,nr,Hn){return Qn.u(sr)?this[nr]:this.set(Hn,sr)},ar.unix=function(){return Math.floor(this.valueOf()/1e3)},ar.valueOf=function(){return this.$d.getTime()},ar.startOf=function(sr,nr){var Hn=this,Yn=!!Qn.u(nr)||nr,Vn=Qn.p(sr),Gn=function(hr,dr){var lr=Qn.w(Hn.$u?Date.UTC(Hn.$y,dr,hr):new Date(Hn.$y,dr,hr),Hn);return Yn?lr:lr.endOf(m)},Zn=function(hr,dr){return Qn.w(Hn.toDate()[hr].apply(Hn.toDate("s"),(Yn?[0,0,0,0]:[23,59,59,999]).slice(dr)),Hn)},qn=this.$W,er=this.$M,ir=this.$D,Kn="set"+(this.$u?"UTC":"");switch(Vn){case Pn:return Yn?Gn(1,0):Gn(31,11);case y:return Yn?Gn(1,er):Gn(0,er+1);case g:var or=this.$locale().weekStart||0,cr=(qn<or?qn+7:qn)-or;return Gn(Yn?ir-cr:ir+(6-cr),er);case m:case b:return Zn(Kn+"Hours",0);case p:return Zn(Kn+"Minutes",1);case v:return Zn(Kn+"Seconds",2);case d:return Zn(Kn+"Milliseconds",3);default:return this.clone()}},ar.endOf=function(sr){return this.startOf(sr,!1)},ar.$set=function(sr,nr){var Hn,Yn=Qn.p(sr),Vn="set"+(this.$u?"UTC":""),Gn=(Hn={},Hn[m]=Vn+"Date",Hn[b]=Vn+"Date",Hn[y]=Vn+"Month",Hn[Pn]=Vn+"FullYear",Hn[p]=Vn+"Hours",Hn[v]=Vn+"Minutes",Hn[d]=Vn+"Seconds",Hn[h]=Vn+"Milliseconds",Hn)[Yn],Zn=Yn===m?this.$D+(nr-this.$W):nr;if(Yn===y||Yn===Pn){var qn=this.clone().set(b,1);qn.$d[Gn](Zn),qn.init(),this.$d=qn.set(b,Math.min(this.$D,qn.daysInMonth())).$d}else Gn&&this.$d[Gn](Zn);return this.init(),this},ar.set=function(sr,nr){return this.clone().$set(sr,nr)},ar.get=function(sr){return this[Qn.p(sr)]()},ar.add=function(sr,nr){var Hn,Yn=this;sr=Number(sr);var Vn=Qn.p(nr),Gn=function(er){var ir=Un(Yn);return Qn.w(ir.date(ir.date()+Math.round(er*sr)),Yn)};if(Vn===y)return this.set(y,this.$M+sr);if(Vn===Pn)return this.set(Pn,this.$y+sr);if(Vn===m)return Gn(1);if(Vn===g)return Gn(7);var Zn=(Hn={},Hn[v]=u,Hn[p]=f,Hn[d]=c,Hn)[Vn]||1,qn=this.$d.getTime()+sr*Zn;return Qn.w(qn,this)},ar.subtract=function(sr,nr){return this.add(-1*sr,nr)},ar.format=function(sr){var nr=this,Hn=this.$locale();if(!this.isValid())return Hn.invalidDate||vn;var Yn=sr||"YYYY-MM-DDTHH:mm:ssZ",Vn=Qn.z(this),Gn=this.$H,Zn=this.$m,qn=this.$M,er=Hn.weekdays,ir=Hn.months,Kn=Hn.meridiem,or=function(dr,lr,fr,mr){return dr&&(dr[lr]||dr(nr,Yn))||fr[lr].slice(0,mr)},cr=function(dr){return Qn.s(Gn%12||12,dr,"0")},hr=Kn||function(dr,lr,fr){var mr=dr<12?"AM":"PM";return fr?mr.toLowerCase():mr};return Yn.replace(re,function(dr,lr){return lr||function(fr){switch(fr){case"YY":return String(nr.$y).slice(-2);case"YYYY":return Qn.s(nr.$y,4,"0");case"M":return qn+1;case"MM":return Qn.s(qn+1,2,"0");case"MMM":return or(Hn.monthsShort,qn,ir,3);case"MMMM":return or(ir,qn);case"D":return nr.$D;case"DD":return Qn.s(nr.$D,2,"0");case"d":return String(nr.$W);case"dd":return or(Hn.weekdaysMin,nr.$W,er,2);case"ddd":return or(Hn.weekdaysShort,nr.$W,er,3);case"dddd":return er[nr.$W];case"H":return String(Gn);case"HH":return Qn.s(Gn,2,"0");case"h":return cr(1);case"hh":return cr(2);case"a":return hr(Gn,Zn,!0);case"A":return hr(Gn,Zn,!1);case"m":return String(Zn);case"mm":return Qn.s(Zn,2,"0");case"s":return String(nr.$s);case"ss":return Qn.s(nr.$s,2,"0");case"SSS":return Qn.s(nr.$ms,3,"0");case"Z":return Vn}return null}(dr)||Vn.replace(":","")})},ar.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ar.diff=function(sr,nr,Hn){var Yn,Vn=this,Gn=Qn.p(nr),Zn=Un(sr),qn=(Zn.utcOffset()-this.utcOffset())*u,er=this-Zn,ir=function(){return Qn.m(Vn,Zn)};switch(Gn){case Pn:Yn=ir()/12;break;case y:Yn=ir();break;case x:Yn=ir()/3;break;case g:Yn=(er-qn)/6048e5;break;case m:Yn=(er-qn)/864e5;break;case p:Yn=er/f;break;case v:Yn=er/u;break;case d:Yn=er/c;break;default:Yn=er}return Hn?Yn:Qn.a(Yn)},ar.daysInMonth=function(){return this.endOf(y).$D},ar.$locale=function(){return gn[this.$L]},ar.locale=function(sr,nr){if(!sr)return this.$L;var Hn=this.clone(),Yn=Wn(sr,nr,!0);return Yn&&(Hn.$L=Yn),Hn},ar.clone=function(){return Qn.w(this.$d,this)},ar.toDate=function(){return new Date(this.valueOf())},ar.toJSON=function(){return this.isValid()?this.toISOString():null},ar.toISOString=function(){return this.$d.toISOString()},ar.toString=function(){return this.$d.toUTCString()},Xn}(),tr=Jn.prototype;return Un.prototype=tr,[["$ms",h],["$s",d],["$m",v],["$H",p],["$W",m],["$M",y],["$y",Pn],["$D",b]].forEach(function(Xn){tr[Xn[1]]=function(ar){return this.$g(ar,Xn[0],Xn[1])}}),Un.extend=function(Xn,ar){return Xn.$i||(Xn(ar,Jn,Un),Xn.$i=!0),Un},Un.locale=Wn,Un.isDayjs=zn,Un.unix=function(Xn){return Un(1e3*Xn)},Un.en=gn[J],Un.Ls=gn,Un.p={},Un}()),le.exports}var ce=ie(se()),ue=typeof global=="object"&&global&&global.Object===Object&&global,de=typeof self=="object"&&self&&self.Object===Object&&self,fe=ue||de||Function("return this")(),pe=fe.Symbol,he=Object.prototype,ye=he.hasOwnProperty,me=he.toString,be=pe?pe.toStringTag:void 0,ge=Object.prototype.toString,ve=pe?pe.toStringTag:void 0;function xe(c){return c==null?c===void 0?"[object Undefined]":"[object Null]":ve&&ve in Object(c)?function(u){var f=ye.call(u,be),h=u[be];try{u[be]=void 0;var d=!0}catch{}var v=me.call(u);return d&&(f?u[be]=h:delete u[be]),v}(c):function(u){return ge.call(u)}(c)}function we(c){return c!=null&&typeof c=="object"}var Se=Array.isArray;function Ae(c){var u=typeof c;return c!=null&&(u=="object"||u=="function")}function je(c){if(!Ae(c))return!1;var u=xe(c);return u=="[object Function]"||u=="[object GeneratorFunction]"||u=="[object AsyncFunction]"||u=="[object Proxy]"}var _e,Oe=fe["__core-js_shared__"],Ce=(_e=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+_e:"",Le=Function.prototype.toString;function Te(c){if(c!=null){try{return Le.call(c)}catch{}try{return c+""}catch{}}return""}var Ne=/^\[object .+?Constructor\]$/,$e=Function.prototype,ke=Object.prototype,Me=$e.toString,De=ke.hasOwnProperty,Ee=RegExp("^"+Me.call(De).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ie(c){return!(!Ae(c)||(u=c,Ce&&Ce in u))&&(je(c)?Ee:Ne).test(Te(c));var u}function Fe(c,u){var f=function(h,d){return h==null?void 0:h[d]}(c,u);return Ie(f)?f:void 0}var Ve=Fe(fe,"WeakMap"),ze=Object.create,Re=function(){function c(){}return function(u){if(!Ae(u))return{};if(ze)return ze(u);c.prototype=u;var f=new c;return c.prototype=void 0,f}}(),Ue=function(){try{var c=Fe(Object,"defineProperty");return c({},"",{}),c}catch{}}(),Ge=/^(?:0|[1-9]\d*)$/;function Pe(c,u){var f=typeof c;return!!(u=u??9007199254740991)&&(f=="number"||f!="symbol"&&Ge.test(c))&&c>-1&&c%1==0&&c<u}function We(c,u){return c===u||c!=c&&u!=u}var Ye=Object.prototype.hasOwnProperty;function He(c,u,f){var h=c[u];Ye.call(c,u)&&We(h,f)&&(f!==void 0||u in c)||function(d,v,p){v=="__proto__"&&Ue?Ue(d,v,{configurable:!0,enumerable:!0,value:p,writable:!0}):d[v]=p}(c,u,f)}function Be(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=9007199254740991}var Ke=Object.prototype;function qe(c){var u=c&&c.constructor;return c===(typeof u=="function"&&u.prototype||Ke)}function Qe(c){return we(c)&&xe(c)=="[object Arguments]"}var Je=Object.prototype,Xe=Je.hasOwnProperty,Ze=Je.propertyIsEnumerable,et=Qe(function(){return arguments}())?Qe:function(c){return we(c)&&Xe.call(c,"callee")&&!Ze.call(c,"callee")},tt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,nt=tt&&typeof module=="object"&&module&&!module.nodeType&&module,ot=nt&&nt.exports===tt?fe.Buffer:void 0,rt=(ot?ot.isBuffer:void 0)||function(){return!1},it={};function at(c){return function(u){return c(u)}}it["[object Float32Array]"]=it["[object Float64Array]"]=it["[object Int8Array]"]=it["[object Int16Array]"]=it["[object Int32Array]"]=it["[object Uint8Array]"]=it["[object Uint8ClampedArray]"]=it["[object Uint16Array]"]=it["[object Uint32Array]"]=!0,it["[object Arguments]"]=it["[object Array]"]=it["[object ArrayBuffer]"]=it["[object Boolean]"]=it["[object DataView]"]=it["[object Date]"]=it["[object Error]"]=it["[object Function]"]=it["[object Map]"]=it["[object Number]"]=it["[object Object]"]=it["[object RegExp]"]=it["[object Set]"]=it["[object String]"]=it["[object WeakMap]"]=!1;var lt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,st=lt&&typeof module=="object"&&module&&!module.nodeType&&module,ct=st&&st.exports===lt&&ue.process,ut=function(){try{var c=st&&st.require&&st.require("util").types;return c||ct&&ct.binding&&ct.binding("util")}catch{}}(),dt=ut&&ut.isTypedArray,ft=dt?at(dt):function(c){return we(c)&&Be(c.length)&&!!it[xe(c)]},pt=Object.prototype.hasOwnProperty;function ht(c,u){var f=Se(c),h=!f&&et(c),d=!f&&!h&&rt(c),v=!f&&!h&&!d&&ft(c),p=f||h||d||v,m=p?function(x,Pn){for(var b=-1,vn=Array(x);++b<x;)vn[b]=Pn(b);return vn}(c.length,String):[],g=m.length;for(var y in c)!pt.call(c,y)||p&&(y=="length"||d&&(y=="offset"||y=="parent")||v&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||Pe(y,g))||m.push(y);return m}function yt(c,u){return function(f){return c(u(f))}}var mt=yt(Object.keys,Object),bt=Object.prototype.hasOwnProperty;function gt(c){return(u=c)!=null&&Be(u.length)&&!je(u)?ht(c):function(f){if(!qe(f))return mt(f);var h=[];for(var d in Object(f))bt.call(f,d)&&d!="constructor"&&h.push(d);return h}(c);var u}var vt=Fe(Object,"create"),xt=Object.prototype.hasOwnProperty,wt=Object.prototype.hasOwnProperty;function St(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var h=c[u];this.set(h[0],h[1])}}function At(c,u){for(var f=c.length;f--;)if(We(c[f][0],u))return f;return-1}St.prototype.clear=function(){this.__data__=vt?vt(null):{},this.size=0},St.prototype.delete=function(c){var u=this.has(c)&&delete this.__data__[c];return this.size-=u?1:0,u},St.prototype.get=function(c){var u=this.__data__;if(vt){var f=u[c];return f==="__lodash_hash_undefined__"?void 0:f}return xt.call(u,c)?u[c]:void 0},St.prototype.has=function(c){var u=this.__data__;return vt?u[c]!==void 0:wt.call(u,c)},St.prototype.set=function(c,u){var f=this.__data__;return this.size+=this.has(c)?0:1,f[c]=vt&&u===void 0?"__lodash_hash_undefined__":u,this};var jt=Array.prototype.splice;function _t(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var h=c[u];this.set(h[0],h[1])}}_t.prototype.clear=function(){this.__data__=[],this.size=0},_t.prototype.delete=function(c){var u=this.__data__,f=At(u,c);return!(f<0)&&(f==u.length-1?u.pop():jt.call(u,f,1),--this.size,!0)},_t.prototype.get=function(c){var u=this.__data__,f=At(u,c);return f<0?void 0:u[f][1]},_t.prototype.has=function(c){return At(this.__data__,c)>-1},_t.prototype.set=function(c,u){var f=this.__data__,h=At(f,c);return h<0?(++this.size,f.push([c,u])):f[h][1]=u,this};var Ot=Fe(fe,"Map");function Ct(c,u){var f,h,d=c.__data__;return((h=typeof(f=u))=="string"||h=="number"||h=="symbol"||h=="boolean"?f!=="__proto__":f===null)?d[typeof u=="string"?"string":"hash"]:d.map}function Lt(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var h=c[u];this.set(h[0],h[1])}}Lt.prototype.clear=function(){this.size=0,this.__data__={hash:new St,map:new(Ot||_t),string:new St}},Lt.prototype.delete=function(c){var u=Ct(this,c).delete(c);return this.size-=u?1:0,u},Lt.prototype.get=function(c){return Ct(this,c).get(c)},Lt.prototype.has=function(c){return Ct(this,c).has(c)},Lt.prototype.set=function(c,u){var f=Ct(this,c),h=f.size;return f.set(c,u),this.size+=f.size==h?0:1,this};var Tt=yt(Object.getPrototypeOf,Object);function Nt(c){var u=this.__data__=new _t(c);this.size=u.size}Nt.prototype.clear=function(){this.__data__=new _t,this.size=0},Nt.prototype.delete=function(c){var u=this.__data__,f=u.delete(c);return this.size=u.size,f},Nt.prototype.get=function(c){return this.__data__.get(c)},Nt.prototype.has=function(c){return this.__data__.has(c)},Nt.prototype.set=function(c,u){var f=this.__data__;if(f instanceof _t){var h=f.__data__;if(!Ot||h.length<199)return h.push([c,u]),this.size=++f.size,this;f=this.__data__=new Lt(h)}return f.set(c,u),this.size=f.size,this};var $t=Object.prototype.propertyIsEnumerable,kt=Object.getOwnPropertySymbols,Mt=kt?function(c){return c==null?[]:(c=Object(c),function(u,f){for(var h=-1,d=u==null?0:u.length,v=0,p=[];++h<d;){var m=u[h];f(m,h,u)&&(p[v++]=m)}return p}(kt(c),function(u){return $t.call(c,u)}))}:function(){return[]};function Dt(c){return function(u,f,h){var d=f(u);return Se(u)?d:function(v,p){for(var m=-1,g=p.length,y=v.length;++m<g;)v[y+m]=p[m];return v}(d,h(u))}(c,gt,Mt)}var Et=Fe(fe,"DataView"),It=Fe(fe,"Promise"),Ft=Fe(fe,"Set"),Vt="[object Map]",zt="[object Promise]",Rt="[object Set]",Ut="[object WeakMap]",Gt="[object DataView]",Pt=Te(Et),Wt=Te(Ot),Yt=Te(It),Ht=Te(Ft),Bt=Te(Ve),Kt=xe;(Et&&Kt(new Et(new ArrayBuffer(1)))!=Gt||Ot&&Kt(new Ot)!=Vt||It&&Kt(It.resolve())!=zt||Ft&&Kt(new Ft)!=Rt||Ve&&Kt(new Ve)!=Ut)&&(Kt=function(c){var u=xe(c),f=u=="[object Object]"?c.constructor:void 0,h=f?Te(f):"";if(h)switch(h){case Pt:return Gt;case Wt:return Vt;case Yt:return zt;case Ht:return Rt;case Bt:return Ut}return u});var qt=Object.prototype.hasOwnProperty,Qt=fe.Uint8Array;function Jt(c){var u=new c.constructor(c.byteLength);return new Qt(u).set(new Qt(c)),u}var Xt=/\w*$/,Zt=pe?pe.prototype:void 0,en=Zt?Zt.valueOf:void 0;function tn(c,u,f){var h,d,v,p,m,g=c.constructor;switch(u){case"[object ArrayBuffer]":return Jt(c);case"[object Boolean]":case"[object Date]":return new g(+c);case"[object DataView]":return m=Jt((p=c).buffer),new p.constructor(m,p.byteOffset,p.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(y){var x=Jt(y.buffer);return new y.constructor(x,y.byteOffset,y.length)}(c);case"[object Map]":case"[object Set]":return new g;case"[object Number]":case"[object String]":return new g(c);case"[object RegExp]":return(v=new(d=c).constructor(d.source,Xt.exec(d))).lastIndex=d.lastIndex,v;case"[object Symbol]":return h=c,en?Object(en.call(h)):{}}}var nn=ut&&ut.isMap,on=nn?at(nn):function(c){return we(c)&&Kt(c)=="[object Map]"},rn=ut&&ut.isSet,an=rn?at(rn):function(c){return we(c)&&Kt(c)=="[object Set]"},ln="[object Arguments]",sn="[object Function]",cn="[object Object]",un={};function dn(c,u,f,h,d,v){var p;if(p!==void 0)return p;if(!Ae(c))return c;var m=Se(c);if(m)p=function(b){var vn=b.length,_=new b.constructor(vn);return vn&&typeof b[0]=="string"&&qt.call(b,"index")&&(_.index=b.index,_.input=b.input),_}(c);else{var g=Kt(c),y=g==sn||g=="[object GeneratorFunction]";if(rt(c))return c.slice();if(g==cn||g==ln||y&&!d)p=y?{}:function(b){return typeof b.constructor!="function"||qe(b)?{}:Re(Tt(b))}(c);else{if(!un[g])return d?c:{};p=tn(c,g)}}v||(v=new Nt);var x=v.get(c);if(x)return x;v.set(c,p),an(c)?c.forEach(function(b){p.add(dn(b,u,f,b,c,v))}):on(c)&&c.forEach(function(b,vn){p.set(vn,dn(b,u,f,vn,c,v))});var Pn=m?void 0:Dt(c);return function(b,vn){for(var _=-1,re=b==null?0:b.length;++_<re&&vn(b[_],_,b)!==!1;);}(Pn||c,function(b,vn){Pn&&(b=c[vn=b]),He(p,vn,dn(b,u,f,vn,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 h="";const d=[];for(const m in f)h+=`${m},`,d.push(f[m]);h=h.replace(/,$/,"");const v=`function (${h}){return ${c}}`;let p;try{p=Function(`"use strict";return (${v})`)()(...d)}catch{return c}return p},hn=(c="",{textData:u,codeData:f}={},{useNewline:h=!1,useSpace:d=!1}={})=>{const v=window.config||{},p=Object.assign(Object.assign({},v),u),m=(c||"").match(/\{(.+?)\}/g);if(m==null||m.length===0)return c;for(let g=0;g<m.length;g++){const y=m[g];let x=y.slice(1,-1).trim();const Pn=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,b=x.match(Pn);for(let vn=0;vn<b.length;vn++){const _=b[vn],re=p[_];re!=null&&typeof re!="function"&&(x=x.replace(_,re))}(/\(.*\)/g.test(x)||/[+/\\*]/g.test(x))&&(x=pn(x,f)),c=c.replace(y,x)}return h&&(c=c==null?void 0:c.replace(/\n|\\n/g,"<br/>")),d&&(c=c==null?void 0:c.replace(/\s{2,}?/g," ")),c=c.replace(/Qfw\((.*?)\)/,(g,y)=>u!=null&&u.Qfw?u==null?void 0:u.Qfw(y):y)},yn=(c,u)=>{if(typeof c=="string"&&typeof u=="string")return c.toLocaleLowerCase().includes(u.toLocaleLowerCase());if(typeof c=="string"&&Array.isArray(u)){const f=u.length;for(let h=0;h<f;h++){const d=u[h];if(typeof d=="string"&&c.toLocaleLowerCase().includes(d.toLocaleLowerCase()))return!0}}return!1},mn=(c,u)=>Object.prototype.hasOwnProperty.call(c,u),bn=c=>{const u=[];for(const f of c)f.conditions?u.push(...bn(f.conditions)):(f==null?void 0:f.dataType)==="component"&&u.push(f);return u},xn=["table","bar","combograph","line","pie","radar","scatter","list","circulate"];let wn=new Map;const Sn=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"],An=c=>wn.get(c),jn=(c,u)=>{if(u)mn(c,"indexCode")&&(c.hrpIndexCode=c.indexCode,delete c.indexCode),mn(c,"indexCodeNum")&&(c.hrpIndexCodeNum=c.indexCodeNum,delete c.indexCodeNum),mn(c,"dataType")&&delete c.dataType;else{const{calcWays:f=[],dateCalcTypes:h=[],activeKey:d,componentId:v=""}=c;if(d===5&&(f!=null&&f.length)&&(h!=null&&h.length)&&v){const p=f[0].split("-");(p==null?void 0:p.length)>1&&p[0]==="rangeValue"&&(c.calcWays=((m,g={})=>{const{around:y,unit:x,id:Pn}=m;let b="";const{pageMode:vn="",componentList:_=[]}=(g==null?void 0:g.graphicConfig)||{};let re=null,Fn=null;if(vn==="design"){const Bn=_==null?void 0:_.find(Un=>Un.id===Pn);if(!Bn)return[];const{interval:w,intervalUnit:J,startTime:gn,endTime:Rn,operate:zn,useCurrentTime:Wn}=Bn||{};if(Wn&&(re=ce().subtract(w,J),Fn=ce()),gn&&(re=ce(gn)),Rn&&(Fn=ce(Rn)),zn){const{type:Un,value:Qn,mode:Jn}=zn;switch(Un){case"add":re=re&&re.add(Qn,Jn),Fn=Fn&&Fn.add(Qn,Jn);break;case"minus":re=re&&re.subtract(Qn,Jn),Fn=Fn&&Fn.subtract(Qn,Jn)}}}else{const Bn=An(Pn)||{};j(Bn.startTime)&&(re=ce(j(Bn.startTime))),j(Bn.endTime)&&(Fn=ce(j(Bn.endTime)))}return re&&Fn&&(b=`${y==="before"?"-":""}${Fn.diff(re,x.toLowerCase())+1}`),b?[b]:[]})({around:p[1],unit:h[0],id:v})),delete c.radioValue}if(mn(c,"dataType")){if(c.fieldType==="DATE"&&(c.label=c.fieldName),c.dataType==="component")if(c.fieldValue==="PARENT"){let p=c.modelKey;p&&c.prop&&(p+=`-${c.prop}`),c.fieldValue="${"+p+"}"}else c.fieldValue="${"+c.fieldValue+"}";delete c.dataType}mn(c,"activeKey")&&delete c.activeKey,mn(c,"radioValue")&&delete c.radioValue,mn(c,"indexCode")&&(c.hrpIndexCode=c.indexCode,delete c.indexCode),mn(c,"indexCodeNum")&&(c.hrpIndexCodeNum=c.indexCodeNum,delete c.indexCodeNum),c.dataType!=="component"&&c.useCurrentTime&&(c.fieldValue=ce().format(c.dateFormat)),mn(c,"modelKey")&&delete c.modelKey,mn(c,"prop")&&delete c.prop,delete c.useCurrentTime}},_n=(c,u)=>{const f=[];return c!=null&&c.length&&fn(c).forEach(h=>{if(h.join&&h.conditions){const d=!h.conditions.some(v=>v.join&&v.conditions);h.conditions.forEach((v,p)=>{jn(v,u);const m={};if(p<h.conditions.length-1&&(m.join=h.join),d)f.push(Object.assign(Object.assign({},m),v));else if(v.join&&v.conditions){const g=u?"sqlConditions":"conditions";f.push(Object.assign({[g]:_n([v],u)},m))}else f.push(Object.assign(Object.assign({},m),v))})}else jn(h,u),f.push(h)}),f},On=(c={},u)=>{if(c!=null&&c.sortCpnts&&u){const gn=kn(c);gn&&(u.sort=gn)}const{label:f,name:h,location:d,show:v,indexCode:p,indexCodeNum:m,calcType:g="COLUMN",builtInFormula:y,builtInValueSource:x,builtInCalcWay:Pn,formula:b,conditions:vn,aggregate:_,distinct:re,dimByCount:Fn,dataTo:Bn}=c;let w;if(vn&&(w=_n(vn)),g==="COMPONENT"){const gn={};return Nn(gn,x),{label:f.trim(),columnName:h,show:v,calcType:g,componentAlias:Pn,componentValue:gn.fieldValue||null}}const J={label:f.trim(),columnName:h,location:d,show:v,calcType:Bn==="1"?"VIEW":g,hrpIndexCode:p,hrpIndexCodeNum:m,aggregate:_,builtInFormula:y,builtInValueSource:x,formula:b,conditions:w};if(y!=="DATE_OFFSET")return h==="the_count"&&(J.calcType="AGGREGATE",J.distinct=!!re,J.typeGuid=Fn),Object.assign(Object.assign({},J),{builtInCalcWay:Pn});{const gn=Pn.split("-");if((gn==null?void 0:gn.length)===3){let Rn=gn[0];return gn[2]==="before"&&gn[0]!=="0"&&(Rn=`-${gn[0]}`),Object.assign(Object.assign({},J),{calcWays:[Rn],dateCalcTypes:[gn[1]]})}}},Cn=c=>{if(!c)return[];const u=fn((c==null?void 0:c.controlList)||[]).filter(_=>_.conditionKey!=="parentCode"),{classificationList:f=[],rowHeaderList:h=[],dimensionList:d=[],seriesList:v=[],leftAxisList:p=[],rightAxisList:m=[],queryColumnList:g=[],indicators:y=[]}=c;Tn(u);const x=[...f,...h,...d,...v,...p,...m,...g,...y],Pn=[];for(const _ of x){const re=bn((_==null?void 0:_.conditions)||[]);if(re!=null&&re.length){const Fn=re.filter(Bn=>(Bn==null?void 0:Bn.dataType)==="component").map(Bn=>{const w={};return Bn!=null&&Bn.dateFormat&&(w.format=Bn.dateFormat),Bn.fieldValue==="PARENT"&&(w.id="PARENT",w.keyName=Bn.modelKey,w.modelKey=Bn.modelKey,w.prop=Bn.prop),Object.assign({conditionKey:Bn.fieldName,conditionLabel:Bn.fieldName,conditionName:Bn.fieldName,conditionValueType:Bn.fieldType,id:Bn.componentId,keyName:Bn.fieldValue,rule:Bn.rule,notGlobal:!0,indexCode:Bn.indexCode,typeGuid:Bn.typeGuid,indexCodeNum:Bn.indexCodeNum},w)});if(Fn!=null&&Fn.length)for(const Bn of Fn)Pn.find(w=>w.keyName===Bn.keyName)||Pn.push(Bn)}}const b=Pn.length,vn=u;for(let _=0;_<b;_++){const re=Pn[_];if((re==null?void 0:re.conditionKey)==="parentCode")continue;const{id:Fn,keyName:Bn,prop:w,format:J,modelKey:gn,dataType:Rn="component",customValue:zn}=re,Wn=Ln(re);Nn(Wn,Fn,{prop:w,dateFormat:J,modelKey:gn,keyName:Bn}),Rn===""&&(Wn.fieldValue=zn||""),vn.push(Wn)}for(let _=vn.length-1;_>=0;_--){const re=vn[_];re.globalCondition||bn(vn).find(Fn=>Fn.alias===re.alias&&Fn.globalCondition)&&vn.splice(_,1)}return vn};function Ln(c){const{id:u,keyName:f,conditionLabel:h,conditionKey:d,conditionValueType:v,prop:p,rule:m="NONE",notGlobal:g=!1,indexCode:y,typeGuid:x,indexCodeNum:Pn,dataType:b="component"}=c;let vn=f||u;vn&&p&&(vn+=`-${p}`);let _=m;return _==="NONE"&&(_=["startTime","endTime"].includes(p)?p==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":f!=null&&f.includes("startTime")?p==="GREATER_EQUAL":f!=null&&f.includes("endTime")?p==="LESS_EQUAL":"EQUAL"),u==="PARENT"&&(vn=c.modelKey,vn&&p&&(vn+=`-${p}`),_=m),{rule:_,label:h,fieldName:d,fieldValue:"",valueType:v,alias:vn,globalCondition:!g,indexCode:y,typeGuid:x,indexCodeNum:Pn,dataType:b}}function Tn(c){if(c!=null&&c.length)for(const u of c)if(u!=null&&u.conditions)Tn(u.conditions);else{const{id:f,keyName:h,prop:d,modelKey:v,format:p,dataType:m="component",customValue:g}=u,y=Ln(u);Nn(y,f,{prop:d,dateFormat:p,modelKey:v,keyName:h}),m===""&&(y.fieldValue=g||"");for(const x in y)u[x]=y[x];for(const x of Sn)delete u[x]}}function Nn(c,u,f){const{prop:h="",dateFormat:d="",modelKey:v="",keyName:p="",operateValue:m,operateMode:g,operateType:y}=f||{},x=v||p;if(u==="PARENT"&&x&&h){const w=window.config.record;let J=h,gn=d;const Rn=h.match(/\{(.+?)\}/g);if(Rn!=null&&Rn.length){const zn=Rn[0].slice(1,-1).trim();J=h.replace(Rn[0],""),gn=zn,c.dateFormat=gn}if(w&&w[x]){const zn=j(w[x][J]);ce.isDayjs(zn)?c.fieldValue=zn.format(gn||"YYYY-MM-DD"):c.fieldValue=zn}return}const Pn=An(u)||{},{value:b,format:vn="YYYY-MM-DD",type:_="",useCurrentTime:re,RECORD:Fn}=Pn||{},Bn=d||vn;if(yn(Pn.type,"date")){let w;if(w=re?b?j(b):ce():j(b),m&&g&&y)switch(y){case"add":w=w.add(m,g);break;case"minus":w=w.subtract(m,g)}c.fieldValue=w==null?void 0:w.format(Bn),c.dateFormat=Bn}else if(_==="ecanRangePicker"){let w=h;if(!h){const gn=p&&p.split("-");gn!=null&&gn.length&&(w=gn[gn.length-1])}if(!w)return;let J=null;if(j(Pn[w])&&(J=ce(j(Pn[w]))),m&&g&&y){if(m==="rangeValue"){if(Pn.startTime&&Pn.endTime){const gn=j(Pn.endTime).diff(j(Pn.startTime),g)+1;switch(y){case"add":J=J&&J.add(gn,g);break;case"minus":J=J&&J.subtract(gn,g)}}}else if(!isNaN(+m))switch(y){case"add":J=J&&J.add(m,g);break;case"minus":J=J&&J.subtract(m,g)}}if(J&&(c.fieldValue=J==null?void 0:J.format(Bn)),w==="rangeValue"&&Pn.startTime&&Pn.endTime){const gn=function(Rn){const zn=Rn.split("-");let Wn="";if(zn!=null&&zn.length)switch(zn[zn.length-1]){case"YYYY":Wn="year";break;case"MM":Wn="month";break;case"DD":Wn="day"}return Wn}(Bn);gn&&(c.fieldValue=j(Pn.endTime).diff(j(Pn.startTime),gn)+1)}c.dateFormat=Bn}else yn(_,xn)?c.fieldValue=v&&Fn?Fn[v]:!v&&Fn?Fn.value:j(b):c.fieldValue=j(b)}const $n=c=>{var u;if(c){const f=Array.isArray(c)?fn(c):[fn(c)];let h="",d=[];const v=[],p=[],m=[];for(const g of f){if(g.defaultCode&&(g.label=g.columnName,delete g.defaultCode),g.type==="CUSTOM"&&(d=g.customOrderColumns),h=g.type,v.push(g.label),(u=g.columnName)===null||u===void 0?void 0:u.includes("_ecanrepeat_")){const y=g.columnName.split("_ecanrepeat_");p.push(y[0])}else p.push(g.columnName);m.push(g.order)}return h!=="CUSTOM"&&(v==null?void 0:v.length)>1&&(h="COMBINATION"),h==="CUSTOM"?{label:v.join(","),columnName:p.join(","),type:h,customOrderColumns:d}:{label:v.join(","),columnName:p.join(","),order:m.join(","),type:h}}return c},kn=c=>{const{sortCpnts:u=[]}=c;let f,h="";for(const d of u){const v=An(d)||{},{type:p,RECORD:m}=v;if(yn(p,"image")&&yn(m==null?void 0:m.value,["asc","desc"])){h=m.value.toUpperCase();break}}return h&&(f={label:c.label,columnName:c.name,order:h,type:"NORMAL"}),f},Mn=(c,u={})=>{var f,h,d,v,p,m,g,y,x,Pn;const{graphicConfig:b,type:vn,globalModel:_,isGroupTable:re=!1}=c;_&&(wn=_);const Fn=yn(vn,"pivottable");let Bn,{source:w,dataViewId:J,plugin:gn="1",layer:Rn,chartType:zn,classificationList:Wn=[],rowHeaderList:Un=[],dimensionList:Qn=[],seriesList:Jn=[],leftAxisList:tr=[],rightAxisList:Xn=[],queryColumnList:ar=[],indicators:sr=[],controlList:nr=[],formFields:Hn={},variableList:Yn=[],variableConditions:Vn=[],dataSourceId:Gn="",idxLibMode:Zn,preview:qn=!1,edvDataSetId:er}=b||{},ir=[];if((b==null?void 0:b.pageMode)==="design"?(ir=((f=b.sqlConditions)!==null&&f!==void 0?f:[]).map(vr=>{const yr={};if(mn(vr,"globalCondition")||vr.join||(yr.globalCondition=!0),!vr.join){const xr=vr.rule||"EQUAL";yr.rule=xr==="NONE"?"EQUAL":xr}return Object.assign(Object.assign({},vr),yr)}),Vn!=null&&Vn.length&&(ir=ir.concat(Vn))):(ir=Cn(b),Yn!=null&&Yn.length&&(ir=ir.concat(function(vr){const yr=[];if(vr!=null&&vr.length){for(const xr of vr)if(xr.variableName){const Cr={variateName:xr.variableName,globalCondition:!1,valueType:xr.variableType,alias:xr.keyName||""};Nn(Cr,xr.id,{dateFormat:xr.format,prop:xr.dateTypeValue,keyName:xr.keyName,operateType:xr.operateType,operateMode:xr.operateMode,operateValue:xr.operateValue}),xr.dataType===""&&(Cr.fieldValue=xr.variableValue),xr.format&&(Cr.dateFormat=xr.format),xr.label&&(Cr.label=xr.label),yr.push(Cr)}}return yr}(Yn)))),ir==null?void 0:ir.length){const vr=ir.filter(xr=>xr.globalCondition),yr=ir.filter(xr=>!xr.globalCondition);(vr==null?void 0:vr.length)>1&&(ir=[{join:"&&",conditions:vr},...yr])}ir!=null&&ir.length&&(ir=_n(ir,"1")),Rn==null&&(Rn=yn(vn,["table","card"])||yn(vn,["list","circulate"])&&(Wn==null?void 0:Wn.length)>1?"1":yn(vn,["select","checkbox","radio"])?"3":"2");const Kn=[];let or,cr="";if(Array.isArray(Wn)&&Wn.length>0&&(!["ecanList","ecanCirculate"].includes(vn)||(Wn==null?void 0:Wn.length)===1)){const vr=Wn.length;for(let yr=0;yr<vr;yr++){const xr=Wn[yr]||{},{label:Cr="",name:Er="",show:_r=!1,sort:kr,customGroup:Br,conditions:Ir,dateFormat:Fr,typeGuid:Nr="",truncations:Rr=[]}=xr;if(_r||vr===1){cr=Nr,Bn={label:Cr.trim(),columnName:Er,show:_r,sort:kn(xr)||$n(kr)||kr,customGroup:Br,conditions:_n(Ir),typeGuid:Nr},Fr&&(Bn.dateFormat=Fr),Er!=="the_date"||Bn.dateFormat||(Bn.dateFormat="YYYY-MM");const Or={};if(Array.isArray(Rr)&&Rr.length>0){const jr=Rr.length;for(let Ur=0;Ur<jr;Ur++){const Gr=Rr[Ur]||{},{rule:Wr="",num:Kr=0,name:ei=""}=Gr;Wr&&Kr&&(Or.num=Kr,Or.rule=Wr,ei&&(Or.otherGroupName=ei))}}if(!((h=Object.keys(Or))===null||h===void 0)&&h.length&&(Bn.truncation=Or),!yn(vn,["scatter","valueline"]))break;Kn.push(Bn)}}}if(Array.isArray(Jn)&&Jn.length>0){const vr=Jn.length;for(let yr=0;yr<vr;yr++){const xr=Jn[yr]||{},{label:Cr="",name:Er="",show:_r=!1,sort:kr,customGroup:Br,conditions:Ir,typeGuid:Fr}=xr;if(_r||vr===1){or={label:Cr.trim(),columnName:Er,show:_r,sort:$n(kr),customGroup:Br,conditions:_n(Ir),typeGuid:Fr};break}}}const hr=[];tr==null||tr.forEach(vr=>{vr.location="LEFT",hr.push(On(vr,Bn))}),Xn==null||Xn.forEach(vr=>{vr.location="RIGHT",hr.push(On(vr,Bn))});let dr=sr;!((v=(d=u==null?void 0:u.pivotTableCal)===null||d===void 0?void 0:d.indicators)===null||v===void 0)&&v.length&&(dr=u.pivotTableCal.indicators),dr==null||dr.forEach(vr=>{vr.location="LEFT",hr.push(On(vr,Bn))});const lr=[];["ecanList","ecanCirculate"].includes(vn)&&(Wn==null?void 0:Wn.length)>1&&(ar=Wn),!((m=(p=u==null?void 0:u.pivotTableCal)===null||p===void 0?void 0:p.dimensions)===null||m===void 0)&&m.length&&(ar=u.pivotTableCal.dimensions),ar==null||ar.forEach(vr=>{const{label:yr,name:xr,location:Cr,show:Er,indexCode:_r,sort:kr,typeGuid:Br,indexCodeNum:Ir,dateFormat:Fr,conditions:Nr}=vr;let Rr=$n(kr);if(u.sort){const{field:jr,order:Ur}=u.sort;let Gr=hr.find(Wr=>Wr.label===jr);Gr||yr!==jr||(Gr=vr),Gr&&(Rr={columnName:Gr.columnName,label:u.sort.field,order:Ur.toUpperCase(),type:"NORMAL"})}const Or={label:yr,columnName:xr,location:Cr,show:Er,sort:Rr,calcType:"COLUMN",hrpIndexCode:_r,hrpIndexCodeNum:Ir,conditions:_n(Nr),typeGuid:Br};Fr&&(Or.dateFormat=Fr),xr!=="the_date"||Or.dateFormat||(Or.dateFormat="YYYY-MM"),lr.push(Or)});let fr=[],mr=[];if(Array.isArray(Un)&&Un.length>0?mr=Un:Array.isArray(Qn)&&Qn.length>0&&(mr=Qn),mr==null?void 0:mr.length){const vr=mr.length;for(let yr=0;yr<vr;yr++){const xr=mr[yr]||{},{label:Cr="",name:Er="",show:_r=!1,sort:kr,customGroup:Br,conditions:Ir,truncations:Fr,typeGuid:Nr="",dateFormat:Rr}=xr;let Or=$n(kr);if(u.sort){const{field:Gr,order:Wr}=u.sort;let Kr=hr.find(ei=>ei.label===Gr);Kr||xr.label!==Gr||(Kr=xr),Kr&&(Or={columnName:Kr.columnName,label:u.sort.field,order:Wr.toUpperCase(),type:"NORMAL"})}const jr={label:Cr.trim(),columnName:Er,show:_r,sort:Or,customGroup:Br,conditions:_n(Ir),typeGuid:Nr};Rr&&(jr.dateFormat=Rr),Er!=="the_date"||jr.dateFormat||(jr.dateFormat="YYYY-MM");const Ur={};if(Array.isArray(Fr)&&Fr.length>0){const Gr=Fr.length;for(let Wr=0;Wr<Gr;Wr++){const Kr=Fr[Wr]||{},{rule:ei="",num:ni=0,name:ri=""}=Kr;ei&&ni&&(Ur.num=ni,Ur.rule=ei,ri&&(Ur.otherGroupName=ri))}}!((g=Object.keys(Ur))===null||g===void 0)&&g.length&&(jr.truncation=Ur),fr.push(jr)}}let pr,gr,ur=[];if(u!=null&&u.pivotTableCal){let vr=[];const{calc:yr=[],filter:xr=[],truncations:Cr=[],sorts:Er=[],aggregateMethod:_r=[],rowDimensionKeys:kr=[],colDimensionKeys:Br=[]}=u.pivotTableCal;if(hr.push(...yr),xr==null?void 0:xr.length)for(const Ir of xr){const{type:Fr}=Ir,Nr=e(Ir,["type"]);Fr==="indicators"?vr=hr:Fr==="dimension"&&(vr=lr);const Rr=vr.find(Or=>Or.columnName===Ir.fieldName);Rr&&(Rr.conditions||(Rr.conditions=[]),Rr.conditions.push(Nr))}if(Cr!=null&&Cr.length)for(const Ir of Cr){const Fr=lr.find(Nr=>Nr.columnName===Ir.key);Fr&&(Fr.truncation={num:Ir.num,rule:Ir.rule})}if(Er!=null&&Er.length)for(const Ir of Er){const{fieldType:Fr,columnData:Nr}=Ir,Rr=e(Ir,["fieldType","columnData"]);Fr==="indicators"?(vr=hr,pr=Nr):Fr==="dimension"&&(vr=lr);const Or=vr.find(jr=>jr.label===Rr.label);Or&&(Or.sort=Object.assign(Object.assign({},Rr),{columnName:Or.columnName}))}if(!((y=Object.keys(_r))===null||y===void 0)&&y.length)for(const Ir in _r){const Fr=lr.find(Nr=>Nr.label===Ir);Fr&&(!((x=_r[Ir])===null||x===void 0)&&x.length)&&(Fr.aggregateMethod=_r[Ir])}fr=[],ur=[];for(const Ir of lr)kr.includes(Ir.columnName)?fr.push(Ir):Br.includes(Ir.columnName)&&ur.push(Ir)}if(yn(vn,["text","proportion","counter"])?zn="zb":yn(vn,["valueline"])&&(zn="valueline"),re||vn==="card"){if(fr.length===0||hr.length===0)return;zn="grouptable"}else if(Rn==="1"&&lr.length===0||Rn==="2"&&hr.length===0||!(Rn!=="3"||(cr||w==="EDV_DATA_SET")&&Hn.labelField&&Hn.valueField)||Rn==="3"&&vn==="ecanDataSelect"&&hr.length===0)return;if(Qn!=null&&Qn.length&&(Rn="1",zn="grouptable"),!yn(vn,["scatter","valueline"])&&((Pn=Object.keys(Hn))===null||Pn===void 0?void 0:Pn.length)){const vr=bn(nr).find(xr=>xr.conditionKey==="parentCode"),yr={};if(vr){const xr=An(vr.id)||{};if(!(xr!=null&&xr.itemCodes))return;yr.parentItemCodes=xr.itemCodes}vn==="ecanDataSelect"&&(yr.indicatorList=hr.filter(xr=>xr.show)),w==="EDV_DATA_SET"&&(yr.edvDataSetId=er),gr=Object.assign({url:"/diagram/formData",source:w,dataViewId:J,plugin:"4",layer:Rn,chartType:"normalSelect",rangeIndexTypeGuid:cr,type:vn==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:Hn.labelField,valueField:Hn.valueField,sqlConditions:ir,idxLibMode:"WITH_DATE_DIM_TABLE",dataSourceId:Gn,keyName:c.keyName},yr)}else{let vr={};vr=yn(vn,["scatter","valueline"])?{classifications:Kn}:{classification:Bn},gr=Object.assign({url:"/diagram",source:w,dataViewId:J,plugin:Fn?"5":gn,layer:Rn,chartType:Fn?"pivot-table":zn,series:or,indicatorList:hr,queryColumns:re?[]:lr,pageFlag:!0,edvDataSetId:er||"",sqlConditions:ir.map(yr=>{const{fieldValue:xr}=yr,Cr={};return xr&&Array.isArray(xr)&&(Cr.fieldValue=JSON.stringify(xr)),Object.assign(Object.assign({},yr),Cr)}),idxLibMode:Zn,dataSourceId:Gn,preview:qn,rowHeaders:fr,keyName:c.keyName,columnData:pr,columnHeaders:ur},vr)}return gr},Dn=(c=[],u,f=!1)=>{let{name:h="name",types:d=[]}=u||{};h=(h==null?void 0:h.trim())||h;const v=new Set,p=new Map,m=c.length,g=d.length;if(m!==1||f)for(let Pn=0;Pn<m;Pn++){const b=c[Pn],vn=b[h];v.add(vn);for(let _=0;_<g;_++){const re=d[_],{label:Fn,value:Bn}=re,w=Object.assign(Object.assign({},b),{value:b[Bn]});if(p.has(Fn)){const J=p.get(Fn);J.push(w),p.set(Fn,J)}else p.set(Fn,[w])}}else{const Pn=[];for(let vn=0;vn<g;vn++){const _=d[vn],{label:re,value:Fn}=_,Bn=Object.assign(Object.assign({},c[0]),{value:c[0][Fn]});v.add(re),Pn.push(Bn)}const b=c[0][h]||"";p.set(b,Pn)}const y=Array.from(v),x=[];for(const[Pn,b]of p)x.push({name:Pn,data:b});return{dimensions:y,dataset:x}},En=(c,u)=>{let{name:f="name",value:h="value",type:d="type"}=u||{};f=f==null?void 0:f.trim(),h=h==null?void 0:h.trim(),d=d==null?void 0:d.trim();const v=new Map,p=c.length;for(let y=0;y<p;y++){const x=c[y],Pn=x[f]||"",b=x[h]||"",vn=x[d]||"";if(v.has(vn)){const _=v.get(vn);_.push(Object.assign({name:Pn,value:b},x)),v.set(vn,_)}else v.set(vn,[Object.assign({name:Pn,value:b},x)])}const m=[],g=[];for(const[y,x]of v)if(g.push({name:y,data:x}),x==null?void 0:x.length)if(m.length)for(const Pn of x)m.includes(Pn.name)||m.push(Pn.name);else m.push(...x.map(Pn=>Pn.name));return{dimensions:m,dataset:g}},In=(c,u)=>{var f;if(c==null)return u;const h=c.match(/\{.*\}/g);if(h==null||h.length===0)return u;const d=h.length;for(let v=0;v<d;v++){const p=h[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"}),h=lodashEs.without(styleList,...u);return vue.computed(()=>{var p,m;const d=lodashEs.pick(c,h),v=["width","height","top","left"];for(const g of v)mn(d,g)&&(["width","height"].includes(g)&&((p=c[g])==null?void 0:p.suffix)==="%"&&vue.unref(f)==="design"?d[g]="100%":(m=c[g])!=null&&m.suffix&&(d[g]=(c[g].value||0)+c[g].suffix));return d})},useOnEvent=(c,u)=>{vue.watch(()=>c.id,f=>{const h=vue.inject(EVENT_BUS,{onEvent:(d,v)=>{}});f!=null&&f!==""&&h.onEvent(f,u)},{immediate:!0})},useEmitEvent=c=>{const u=c.events,f=c.id,h=vue.inject(EVENT_BUS,{emitEvent:(v,p,m)=>{}}),{touchEventId:d}=vue.inject(GLOBAL_CONFIG,{touchEventId:vue.ref("")});return(v,p=()=>{},m)=>function(){p.call(this,...arguments);const{emitEvent:g}=h;u.forEach(y=>{if(v===y.on)try{d.value=f,m?g(y.target,y.emit,m):g(y.target,y.emit)}catch(x){console.error(x)}})}};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}function getAugmentedNamespace(c){if(c.__esModule)return c;var u=c.default;if(typeof u=="function"){var f=function h(){return this instanceof h?Reflect.construct(u,arguments,this.constructor):u.apply(this,arguments)};f.prototype=u.prototype}else f={};return Object.defineProperty(f,"__esModule",{value:!0}),Object.keys(c).forEach(function(h){var d=Object.getOwnPropertyDescriptor(c,h);Object.defineProperty(f,h,d.get?d:{enumerable:!0,get:function(){return c[h]}})}),f}var cryptoJs={exports:{}};function commonjsRequire(c){throw new Error('Could not dynamically require "'+c+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(c,u){(function(f,h){c.exports=h()})(commonjsGlobal,function(){var f=f||function(h,d){var 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 w(){}return function(J){var gn;return w.prototype=J,gn=new w,w.prototype=null,gn}}(),g={},y=g.lib={},x=y.Base=function(){return{extend:function(w){var J=m(this);return w&&J.mixIn(w),(!J.hasOwnProperty("init")||this.init===J.init)&&(J.init=function(){J.$super.init.apply(this,arguments)}),J.init.prototype=J,J.$super=this,J},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var J in w)w.hasOwnProperty(J)&&(this[J]=w[J]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),Pn=y.WordArray=x.extend({init:function(w,J){w=this.words=w||[],J!=d?this.sigBytes=J:this.sigBytes=w.length*4},toString:function(w){return(w||vn).stringify(this)},concat:function(w){var J=this.words,gn=w.words,Rn=this.sigBytes,zn=w.sigBytes;if(this.clamp(),Rn%4)for(var Wn=0;Wn<zn;Wn++){var Un=gn[Wn>>>2]>>>24-Wn%4*8&255;J[Rn+Wn>>>2]|=Un<<24-(Rn+Wn)%4*8}else for(var Qn=0;Qn<zn;Qn+=4)J[Rn+Qn>>>2]=gn[Qn>>>2];return this.sigBytes+=zn,this},clamp:function(){var w=this.words,J=this.sigBytes;w[J>>>2]&=4294967295<<32-J%4*8,w.length=h.ceil(J/4)},clone:function(){var w=x.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var J=[],gn=0;gn<w;gn+=4)J.push(p());return new Pn.init(J,w)}}),b=g.enc={},vn=b.Hex={stringify:function(w){for(var J=w.words,gn=w.sigBytes,Rn=[],zn=0;zn<gn;zn++){var Wn=J[zn>>>2]>>>24-zn%4*8&255;Rn.push((Wn>>>4).toString(16)),Rn.push((Wn&15).toString(16))}return Rn.join("")},parse:function(w){for(var J=w.length,gn=[],Rn=0;Rn<J;Rn+=2)gn[Rn>>>3]|=parseInt(w.substr(Rn,2),16)<<24-Rn%8*4;return new Pn.init(gn,J/2)}},_=b.Latin1={stringify:function(w){for(var J=w.words,gn=w.sigBytes,Rn=[],zn=0;zn<gn;zn++){var Wn=J[zn>>>2]>>>24-zn%4*8&255;Rn.push(String.fromCharCode(Wn))}return Rn.join("")},parse:function(w){for(var J=w.length,gn=[],Rn=0;Rn<J;Rn++)gn[Rn>>>2]|=(w.charCodeAt(Rn)&255)<<24-Rn%4*8;return new Pn.init(gn,J)}},re=b.Utf8={stringify:function(w){try{return decodeURIComponent(escape(_.stringify(w)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(w){return _.parse(unescape(encodeURIComponent(w)))}},Fn=y.BufferedBlockAlgorithm=x.extend({reset:function(){this._data=new Pn.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=re.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var J,gn=this._data,Rn=gn.words,zn=gn.sigBytes,Wn=this.blockSize,Un=Wn*4,Qn=zn/Un;w?Qn=h.ceil(Qn):Qn=h.max((Qn|0)-this._minBufferSize,0);var Jn=Qn*Wn,tr=h.min(Jn*4,zn);if(Jn){for(var Xn=0;Xn<Jn;Xn+=Wn)this._doProcessBlock(Rn,Xn);J=Rn.splice(0,Jn),gn.sigBytes-=tr}return new Pn.init(J,tr)},clone:function(){var w=x.clone.call(this);return w._data=this._data.clone(),w},_minBufferSize:0});y.Hasher=Fn.extend({cfg:x.extend(),init:function(w){this.cfg=this.cfg.extend(w),this.reset()},reset:function(){Fn.reset.call(this),this._doReset()},update:function(w){return this._append(w),this._process(),this},finalize:function(w){w&&this._append(w);var J=this._doFinalize();return J},blockSize:16,_createHelper:function(w){return function(J,gn){return new w.init(gn).finalize(J)}},_createHmacHelper:function(w){return function(J,gn){return new Bn.HMAC.init(w,gn).finalize(J)}}});var Bn=g.algo={};return g}(Math);return f})}(core)),core.exports}var x64Core={exports:{}},hasRequiredX64Core;function requireX64Core(){return hasRequiredX64Core||(hasRequiredX64Core=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(h){var d=f,v=d.lib,p=v.Base,m=v.WordArray,g=d.x64={};g.Word=p.extend({init:function(y,x){this.high=y,this.low=x}}),g.WordArray=p.extend({init:function(y,x){y=this.words=y||[],x!=h?this.sigBytes=x:this.sigBytes=y.length*8},toX32:function(){for(var y=this.words,x=y.length,Pn=[],b=0;b<x;b++){var vn=y[b];Pn.push(vn.high),Pn.push(vn.low)}return m.create(Pn,this.sigBytes)},clone:function(){for(var y=p.clone.call(this),x=y.words=this.words.slice(0),Pn=x.length,b=0;b<Pn;b++)x[b]=x[b].clone();return y}})}(),f})}(x64Core)),x64Core.exports}var libTypedarrays={exports:{}},hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(){if(typeof ArrayBuffer=="function"){var h=f,d=h.lib,v=d.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,x=[],Pn=0;Pn<y;Pn++)x[Pn>>>2]|=g[Pn]<<24-Pn%4*8;p.call(this,x,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,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.WordArray,p=h.enc;p.Utf16=p.Utf16BE={stringify:function(g){for(var y=g.words,x=g.sigBytes,Pn=[],b=0;b<x;b+=2){var vn=y[b>>>2]>>>16-b%4*8&65535;Pn.push(String.fromCharCode(vn))}return Pn.join("")},parse:function(g){for(var y=g.length,x=[],Pn=0;Pn<y;Pn++)x[Pn>>>1]|=g.charCodeAt(Pn)<<16-Pn%2*16;return v.create(x,y*2)}},p.Utf16LE={stringify:function(g){for(var y=g.words,x=g.sigBytes,Pn=[],b=0;b<x;b+=2){var vn=m(y[b>>>2]>>>16-b%4*8&65535);Pn.push(String.fromCharCode(vn))}return Pn.join("")},parse:function(g){for(var y=g.length,x=[],Pn=0;Pn<y;Pn++)x[Pn>>>1]|=m(g.charCodeAt(Pn)<<16-Pn%2*16);return v.create(x,y*2)}};function m(g){return g<<8&4278255360|g>>>8&16711935}}(),f.enc.Utf16})}(encUtf16)),encUtf16.exports}var encBase64={exports:{}},hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.WordArray,p=h.enc;p.Base64={stringify:function(g){var y=g.words,x=g.sigBytes,Pn=this._map;g.clamp();for(var b=[],vn=0;vn<x;vn+=3)for(var _=y[vn>>>2]>>>24-vn%4*8&255,re=y[vn+1>>>2]>>>24-(vn+1)%4*8&255,Fn=y[vn+2>>>2]>>>24-(vn+2)%4*8&255,Bn=_<<16|re<<8|Fn,w=0;w<4&&vn+w*.75<x;w++)b.push(Pn.charAt(Bn>>>6*(3-w)&63));var J=Pn.charAt(64);if(J)for(;b.length%4;)b.push(J);return b.join("")},parse:function(g){var y=g.length,x=this._map,Pn=this._reverseMap;if(!Pn){Pn=this._reverseMap=[];for(var b=0;b<x.length;b++)Pn[x.charCodeAt(b)]=b}var vn=x.charAt(64);if(vn){var _=g.indexOf(vn);_!==-1&&(y=_)}return m(g,y,Pn)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function m(g,y,x){for(var Pn=[],b=0,vn=0;vn<y;vn++)if(vn%4){var _=x[g.charCodeAt(vn-1)]<<vn%4*2,re=x[g.charCodeAt(vn)]>>>6-vn%4*2,Fn=_|re;Pn[b>>>2]|=Fn<<24-b%4*8,b++}return v.create(Pn,b)}}(),f.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.WordArray,p=h.enc;p.Base64url={stringify:function(g,y=!0){var x=g.words,Pn=g.sigBytes,b=y?this._safe_map:this._map;g.clamp();for(var vn=[],_=0;_<Pn;_+=3)for(var re=x[_>>>2]>>>24-_%4*8&255,Fn=x[_+1>>>2]>>>24-(_+1)%4*8&255,Bn=x[_+2>>>2]>>>24-(_+2)%4*8&255,w=re<<16|Fn<<8|Bn,J=0;J<4&&_+J*.75<Pn;J++)vn.push(b.charAt(w>>>6*(3-J)&63));var gn=b.charAt(64);if(gn)for(;vn.length%4;)vn.push(gn);return vn.join("")},parse:function(g,y=!0){var x=g.length,Pn=y?this._safe_map:this._map,b=this._reverseMap;if(!b){b=this._reverseMap=[];for(var vn=0;vn<Pn.length;vn++)b[Pn.charCodeAt(vn)]=vn}var _=Pn.charAt(64);if(_){var re=g.indexOf(_);re!==-1&&(x=re)}return m(g,x,b)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function m(g,y,x){for(var Pn=[],b=0,vn=0;vn<y;vn++)if(vn%4){var _=x[g.charCodeAt(vn-1)]<<vn%4*2,re=x[g.charCodeAt(vn)]>>>6-vn%4*2,Fn=_|re;Pn[b>>>2]|=Fn<<24-b%4*8,b++}return v.create(Pn,b)}}(),f.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(h){var d=f,v=d.lib,p=v.WordArray,m=v.Hasher,g=d.algo,y=[];(function(){for(var re=0;re<64;re++)y[re]=h.abs(h.sin(re+1))*4294967296|0})();var x=g.MD5=m.extend({_doReset:function(){this._hash=new p.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(re,Fn){for(var Bn=0;Bn<16;Bn++){var w=Fn+Bn,J=re[w];re[w]=(J<<8|J>>>24)&16711935|(J<<24|J>>>8)&4278255360}var gn=this._hash.words,Rn=re[Fn+0],zn=re[Fn+1],Wn=re[Fn+2],Un=re[Fn+3],Qn=re[Fn+4],Jn=re[Fn+5],tr=re[Fn+6],Xn=re[Fn+7],ar=re[Fn+8],sr=re[Fn+9],nr=re[Fn+10],Hn=re[Fn+11],Yn=re[Fn+12],Vn=re[Fn+13],Gn=re[Fn+14],Zn=re[Fn+15],qn=gn[0],er=gn[1],ir=gn[2],Kn=gn[3];qn=Pn(qn,er,ir,Kn,Rn,7,y[0]),Kn=Pn(Kn,qn,er,ir,zn,12,y[1]),ir=Pn(ir,Kn,qn,er,Wn,17,y[2]),er=Pn(er,ir,Kn,qn,Un,22,y[3]),qn=Pn(qn,er,ir,Kn,Qn,7,y[4]),Kn=Pn(Kn,qn,er,ir,Jn,12,y[5]),ir=Pn(ir,Kn,qn,er,tr,17,y[6]),er=Pn(er,ir,Kn,qn,Xn,22,y[7]),qn=Pn(qn,er,ir,Kn,ar,7,y[8]),Kn=Pn(Kn,qn,er,ir,sr,12,y[9]),ir=Pn(ir,Kn,qn,er,nr,17,y[10]),er=Pn(er,ir,Kn,qn,Hn,22,y[11]),qn=Pn(qn,er,ir,Kn,Yn,7,y[12]),Kn=Pn(Kn,qn,er,ir,Vn,12,y[13]),ir=Pn(ir,Kn,qn,er,Gn,17,y[14]),er=Pn(er,ir,Kn,qn,Zn,22,y[15]),qn=b(qn,er,ir,Kn,zn,5,y[16]),Kn=b(Kn,qn,er,ir,tr,9,y[17]),ir=b(ir,Kn,qn,er,Hn,14,y[18]),er=b(er,ir,Kn,qn,Rn,20,y[19]),qn=b(qn,er,ir,Kn,Jn,5,y[20]),Kn=b(Kn,qn,er,ir,nr,9,y[21]),ir=b(ir,Kn,qn,er,Zn,14,y[22]),er=b(er,ir,Kn,qn,Qn,20,y[23]),qn=b(qn,er,ir,Kn,sr,5,y[24]),Kn=b(Kn,qn,er,ir,Gn,9,y[25]),ir=b(ir,Kn,qn,er,Un,14,y[26]),er=b(er,ir,Kn,qn,ar,20,y[27]),qn=b(qn,er,ir,Kn,Vn,5,y[28]),Kn=b(Kn,qn,er,ir,Wn,9,y[29]),ir=b(ir,Kn,qn,er,Xn,14,y[30]),er=b(er,ir,Kn,qn,Yn,20,y[31]),qn=vn(qn,er,ir,Kn,Jn,4,y[32]),Kn=vn(Kn,qn,er,ir,ar,11,y[33]),ir=vn(ir,Kn,qn,er,Hn,16,y[34]),er=vn(er,ir,Kn,qn,Gn,23,y[35]),qn=vn(qn,er,ir,Kn,zn,4,y[36]),Kn=vn(Kn,qn,er,ir,Qn,11,y[37]),ir=vn(ir,Kn,qn,er,Xn,16,y[38]),er=vn(er,ir,Kn,qn,nr,23,y[39]),qn=vn(qn,er,ir,Kn,Vn,4,y[40]),Kn=vn(Kn,qn,er,ir,Rn,11,y[41]),ir=vn(ir,Kn,qn,er,Un,16,y[42]),er=vn(er,ir,Kn,qn,tr,23,y[43]),qn=vn(qn,er,ir,Kn,sr,4,y[44]),Kn=vn(Kn,qn,er,ir,Yn,11,y[45]),ir=vn(ir,Kn,qn,er,Zn,16,y[46]),er=vn(er,ir,Kn,qn,Wn,23,y[47]),qn=_(qn,er,ir,Kn,Rn,6,y[48]),Kn=_(Kn,qn,er,ir,Xn,10,y[49]),ir=_(ir,Kn,qn,er,Gn,15,y[50]),er=_(er,ir,Kn,qn,Jn,21,y[51]),qn=_(qn,er,ir,Kn,Yn,6,y[52]),Kn=_(Kn,qn,er,ir,Un,10,y[53]),ir=_(ir,Kn,qn,er,nr,15,y[54]),er=_(er,ir,Kn,qn,zn,21,y[55]),qn=_(qn,er,ir,Kn,ar,6,y[56]),Kn=_(Kn,qn,er,ir,Zn,10,y[57]),ir=_(ir,Kn,qn,er,tr,15,y[58]),er=_(er,ir,Kn,qn,Vn,21,y[59]),qn=_(qn,er,ir,Kn,Qn,6,y[60]),Kn=_(Kn,qn,er,ir,Hn,10,y[61]),ir=_(ir,Kn,qn,er,Wn,15,y[62]),er=_(er,ir,Kn,qn,sr,21,y[63]),gn[0]=gn[0]+qn|0,gn[1]=gn[1]+er|0,gn[2]=gn[2]+ir|0,gn[3]=gn[3]+Kn|0},_doFinalize:function(){var re=this._data,Fn=re.words,Bn=this._nDataBytes*8,w=re.sigBytes*8;Fn[w>>>5]|=128<<24-w%32;var J=h.floor(Bn/4294967296),gn=Bn;Fn[(w+64>>>9<<4)+15]=(J<<8|J>>>24)&16711935|(J<<24|J>>>8)&4278255360,Fn[(w+64>>>9<<4)+14]=(gn<<8|gn>>>24)&16711935|(gn<<24|gn>>>8)&4278255360,re.sigBytes=(Fn.length+1)*4,this._process();for(var Rn=this._hash,zn=Rn.words,Wn=0;Wn<4;Wn++){var Un=zn[Wn];zn[Wn]=(Un<<8|Un>>>24)&16711935|(Un<<24|Un>>>8)&4278255360}return Rn},clone:function(){var re=m.clone.call(this);return re._hash=this._hash.clone(),re}});function Pn(re,Fn,Bn,w,J,gn,Rn){var zn=re+(Fn&Bn|~Fn&w)+J+Rn;return(zn<<gn|zn>>>32-gn)+Fn}function b(re,Fn,Bn,w,J,gn,Rn){var zn=re+(Fn&w|Bn&~w)+J+Rn;return(zn<<gn|zn>>>32-gn)+Fn}function vn(re,Fn,Bn,w,J,gn,Rn){var zn=re+(Fn^Bn^w)+J+Rn;return(zn<<gn|zn>>>32-gn)+Fn}function _(re,Fn,Bn,w,J,gn,Rn){var zn=re+(Bn^(Fn|~w))+J+Rn;return(zn<<gn|zn>>>32-gn)+Fn}d.MD5=m._createHelper(x),d.HmacMD5=m._createHmacHelper(x)}(Math),f.MD5})}(md5)),md5.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.WordArray,p=d.Hasher,m=h.algo,g=[],y=m.SHA1=p.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(x,Pn){for(var b=this._hash.words,vn=b[0],_=b[1],re=b[2],Fn=b[3],Bn=b[4],w=0;w<80;w++){if(w<16)g[w]=x[Pn+w]|0;else{var J=g[w-3]^g[w-8]^g[w-14]^g[w-16];g[w]=J<<1|J>>>31}var gn=(vn<<5|vn>>>27)+Bn+g[w];w<20?gn+=(_&re|~_&Fn)+1518500249:w<40?gn+=(_^re^Fn)+1859775393:w<60?gn+=(_&re|_&Fn|re&Fn)-1894007588:gn+=(_^re^Fn)-899497514,Bn=Fn,Fn=re,re=_<<30|_>>>2,_=vn,vn=gn}b[0]=b[0]+vn|0,b[1]=b[1]+_|0,b[2]=b[2]+re|0,b[3]=b[3]+Fn|0,b[4]=b[4]+Bn|0},_doFinalize:function(){var x=this._data,Pn=x.words,b=this._nDataBytes*8,vn=x.sigBytes*8;return Pn[vn>>>5]|=128<<24-vn%32,Pn[(vn+64>>>9<<4)+14]=Math.floor(b/4294967296),Pn[(vn+64>>>9<<4)+15]=b,x.sigBytes=Pn.length*4,this._process(),this._hash},clone:function(){var x=p.clone.call(this);return x._hash=this._hash.clone(),x}});h.SHA1=p._createHelper(y),h.HmacSHA1=p._createHmacHelper(y)}(),f.SHA1})}(sha1)),sha1.exports}var sha256={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(h){var d=f,v=d.lib,p=v.WordArray,m=v.Hasher,g=d.algo,y=[],x=[];(function(){function vn(Bn){for(var w=h.sqrt(Bn),J=2;J<=w;J++)if(!(Bn%J))return!1;return!0}function _(Bn){return(Bn-(Bn|0))*4294967296|0}for(var re=2,Fn=0;Fn<64;)vn(re)&&(Fn<8&&(y[Fn]=_(h.pow(re,1/2))),x[Fn]=_(h.pow(re,1/3)),Fn++),re++})();var Pn=[],b=g.SHA256=m.extend({_doReset:function(){this._hash=new p.init(y.slice(0))},_doProcessBlock:function(vn,_){for(var re=this._hash.words,Fn=re[0],Bn=re[1],w=re[2],J=re[3],gn=re[4],Rn=re[5],zn=re[6],Wn=re[7],Un=0;Un<64;Un++){if(Un<16)Pn[Un]=vn[_+Un]|0;else{var Qn=Pn[Un-15],Jn=(Qn<<25|Qn>>>7)^(Qn<<14|Qn>>>18)^Qn>>>3,tr=Pn[Un-2],Xn=(tr<<15|tr>>>17)^(tr<<13|tr>>>19)^tr>>>10;Pn[Un]=Jn+Pn[Un-7]+Xn+Pn[Un-16]}var ar=gn&Rn^~gn&zn,sr=Fn&Bn^Fn&w^Bn&w,nr=(Fn<<30|Fn>>>2)^(Fn<<19|Fn>>>13)^(Fn<<10|Fn>>>22),Hn=(gn<<26|gn>>>6)^(gn<<21|gn>>>11)^(gn<<7|gn>>>25),Yn=Wn+Hn+ar+x[Un]+Pn[Un],Vn=nr+sr;Wn=zn,zn=Rn,Rn=gn,gn=J+Yn|0,J=w,w=Bn,Bn=Fn,Fn=Yn+Vn|0}re[0]=re[0]+Fn|0,re[1]=re[1]+Bn|0,re[2]=re[2]+w|0,re[3]=re[3]+J|0,re[4]=re[4]+gn|0,re[5]=re[5]+Rn|0,re[6]=re[6]+zn|0,re[7]=re[7]+Wn|0},_doFinalize:function(){var vn=this._data,_=vn.words,re=this._nDataBytes*8,Fn=vn.sigBytes*8;return _[Fn>>>5]|=128<<24-Fn%32,_[(Fn+64>>>9<<4)+14]=h.floor(re/4294967296),_[(Fn+64>>>9<<4)+15]=re,vn.sigBytes=_.length*4,this._process(),this._hash},clone:function(){var vn=m.clone.call(this);return vn._hash=this._hash.clone(),vn}});d.SHA256=m._createHelper(b),d.HmacSHA256=m._createHmacHelper(b)}(Math),f.SHA256})}(sha256)),sha256.exports}var sha224={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireSha256())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.WordArray,p=h.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}});h.SHA224=m._createHelper(g),h.HmacSHA224=m._createHmacHelper(g)}(),f.SHA224})}(sha224)),sha224.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireX64Core())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.Hasher,p=h.x64,m=p.Word,g=p.WordArray,y=h.algo;function x(){return m.create.apply(m,arguments)}var Pn=[x(1116352408,3609767458),x(1899447441,602891725),x(3049323471,3964484399),x(3921009573,2173295548),x(961987163,4081628472),x(1508970993,3053834265),x(2453635748,2937671579),x(2870763221,3664609560),x(3624381080,2734883394),x(310598401,1164996542),x(607225278,1323610764),x(1426881987,3590304994),x(1925078388,4068182383),x(2162078206,991336113),x(2614888103,633803317),x(3248222580,3479774868),x(3835390401,2666613458),x(4022224774,944711139),x(264347078,2341262773),x(604807628,2007800933),x(770255983,1495990901),x(1249150122,1856431235),x(1555081692,3175218132),x(1996064986,2198950837),x(2554220882,3999719339),x(2821834349,766784016),x(2952996808,2566594879),x(3210313671,3203337956),x(3336571891,1034457026),x(3584528711,2466948901),x(113926993,3758326383),x(338241895,168717936),x(666307205,1188179964),x(773529912,1546045734),x(1294757372,1522805485),x(1396182291,2643833823),x(1695183700,2343527390),x(1986661051,1014477480),x(2177026350,1206759142),x(2456956037,344077627),x(2730485921,1290863460),x(2820302411,3158454273),x(3259730800,3505952657),x(3345764771,106217008),x(3516065817,3606008344),x(3600352804,1432725776),x(4094571909,1467031594),x(275423344,851169720),x(430227734,3100823752),x(506948616,1363258195),x(659060556,3750685593),x(883997877,3785050280),x(958139571,3318307427),x(1322822218,3812723403),x(1537002063,2003034995),x(1747873779,3602036899),x(1955562222,1575990012),x(2024104815,1125592928),x(2227730452,2716904306),x(2361852424,442776044),x(2428436474,593698344),x(2756734187,3733110249),x(3204031479,2999351573),x(3329325298,3815920427),x(3391569614,3928383900),x(3515267271,566280711),x(3940187606,3454069534),x(4118630271,4000239992),x(116418474,1914138554),x(174292421,2731055270),x(289380356,3203993006),x(460393269,320620315),x(685471733,587496836),x(852142971,1086792851),x(1017036298,365543100),x(1126000580,2618297676),x(1288033470,3409855158),x(1501505948,4234509866),x(1607167915,987167468),x(1816402316,1246189591)],b=[];(function(){for(var _=0;_<80;_++)b[_]=x()})();var vn=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(_,re){for(var Fn=this._hash.words,Bn=Fn[0],w=Fn[1],J=Fn[2],gn=Fn[3],Rn=Fn[4],zn=Fn[5],Wn=Fn[6],Un=Fn[7],Qn=Bn.high,Jn=Bn.low,tr=w.high,Xn=w.low,ar=J.high,sr=J.low,nr=gn.high,Hn=gn.low,Yn=Rn.high,Vn=Rn.low,Gn=zn.high,Zn=zn.low,qn=Wn.high,er=Wn.low,ir=Un.high,Kn=Un.low,or=Qn,cr=Jn,hr=tr,dr=Xn,lr=ar,fr=sr,mr=nr,pr=Hn,gr=Yn,ur=Vn,vr=Gn,yr=Zn,xr=qn,Cr=er,Er=ir,_r=Kn,kr=0;kr<80;kr++){var Br,Ir,Fr=b[kr];if(kr<16)Ir=Fr.high=_[re+kr*2]|0,Br=Fr.low=_[re+kr*2+1]|0;else{var Nr=b[kr-15],Rr=Nr.high,Or=Nr.low,jr=(Rr>>>1|Or<<31)^(Rr>>>8|Or<<24)^Rr>>>7,Ur=(Or>>>1|Rr<<31)^(Or>>>8|Rr<<24)^(Or>>>7|Rr<<25),Gr=b[kr-2],Wr=Gr.high,Kr=Gr.low,ei=(Wr>>>19|Kr<<13)^(Wr<<3|Kr>>>29)^Wr>>>6,ni=(Kr>>>19|Wr<<13)^(Kr<<3|Wr>>>29)^(Kr>>>6|Wr<<26),ri=b[kr-7],mi=ri.high,gi=ri.low,li=b[kr-16],ci=li.high,ui=li.low;Br=Ur+gi,Ir=jr+mi+(Br>>>0<Ur>>>0?1:0),Br=Br+ni,Ir=Ir+ei+(Br>>>0<ni>>>0?1:0),Br=Br+ui,Ir=Ir+ci+(Br>>>0<ui>>>0?1:0),Fr.high=Ir,Fr.low=Br}var yi=gr&vr^~gr&xr,fi=ur&yr^~ur&Cr,bi=or&hr^or&lr^hr&lr,xi=cr&dr^cr&fr^dr&fr,si=(or>>>28|cr<<4)^(or<<30|cr>>>2)^(or<<25|cr>>>7),hi=(cr>>>28|or<<4)^(cr<<30|or>>>2)^(cr<<25|or>>>7),Si=(gr>>>14|ur<<18)^(gr>>>18|ur<<14)^(gr<<23|ur>>>9),di=(ur>>>14|gr<<18)^(ur>>>18|gr<<14)^(ur<<23|gr>>>9),vi=Pn[kr],Ci=vi.high,pi=vi.low,Jr=_r+di,Xr=Er+Si+(Jr>>>0<_r>>>0?1:0),Jr=Jr+fi,Xr=Xr+yi+(Jr>>>0<fi>>>0?1:0),Jr=Jr+pi,Xr=Xr+Ci+(Jr>>>0<pi>>>0?1:0),Jr=Jr+Br,Xr=Xr+Ir+(Jr>>>0<Br>>>0?1:0),wi=hi+xi,br=si+bi+(wi>>>0<hi>>>0?1:0);Er=xr,_r=Cr,xr=vr,Cr=yr,vr=gr,yr=ur,ur=pr+Jr|0,gr=mr+Xr+(ur>>>0<pr>>>0?1:0)|0,mr=lr,pr=fr,lr=hr,fr=dr,hr=or,dr=cr,cr=Jr+wi|0,or=Xr+br+(cr>>>0<Jr>>>0?1:0)|0}Jn=Bn.low=Jn+cr,Bn.high=Qn+or+(Jn>>>0<cr>>>0?1:0),Xn=w.low=Xn+dr,w.high=tr+hr+(Xn>>>0<dr>>>0?1:0),sr=J.low=sr+fr,J.high=ar+lr+(sr>>>0<fr>>>0?1:0),Hn=gn.low=Hn+pr,gn.high=nr+mr+(Hn>>>0<pr>>>0?1:0),Vn=Rn.low=Vn+ur,Rn.high=Yn+gr+(Vn>>>0<ur>>>0?1:0),Zn=zn.low=Zn+yr,zn.high=Gn+vr+(Zn>>>0<yr>>>0?1:0),er=Wn.low=er+Cr,Wn.high=qn+xr+(er>>>0<Cr>>>0?1:0),Kn=Un.low=Kn+_r,Un.high=ir+Er+(Kn>>>0<_r>>>0?1:0)},_doFinalize:function(){var _=this._data,re=_.words,Fn=this._nDataBytes*8,Bn=_.sigBytes*8;re[Bn>>>5]|=128<<24-Bn%32,re[(Bn+128>>>10<<5)+30]=Math.floor(Fn/4294967296),re[(Bn+128>>>10<<5)+31]=Fn,_.sigBytes=re.length*4,this._process();var w=this._hash.toX32();return w},clone:function(){var _=v.clone.call(this);return _._hash=this._hash.clone(),_},blockSize:1024/32});h.SHA512=v._createHelper(vn),h.HmacSHA512=v._createHmacHelper(vn)}(),f.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(f){return function(){var h=f,d=h.x64,v=d.Word,p=d.WordArray,m=h.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 x=g._doFinalize.call(this);return x.sigBytes-=16,x}});h.SHA384=g._createHelper(y),h.HmacSHA384=g._createHmacHelper(y)}(),f.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireX64Core())})(commonjsGlobal,function(f){return function(h){var d=f,v=d.lib,p=v.WordArray,m=v.Hasher,g=d.x64,y=g.Word,x=d.algo,Pn=[],b=[],vn=[];(function(){for(var Fn=1,Bn=0,w=0;w<24;w++){Pn[Fn+5*Bn]=(w+1)*(w+2)/2%64;var J=Bn%5,gn=(2*Fn+3*Bn)%5;Fn=J,Bn=gn}for(var Fn=0;Fn<5;Fn++)for(var Bn=0;Bn<5;Bn++)b[Fn+5*Bn]=Bn+(2*Fn+3*Bn)%5*5;for(var Rn=1,zn=0;zn<24;zn++){for(var Wn=0,Un=0,Qn=0;Qn<7;Qn++){if(Rn&1){var Jn=(1<<Qn)-1;Jn<32?Un^=1<<Jn:Wn^=1<<Jn-32}Rn&128?Rn=Rn<<1^113:Rn<<=1}vn[zn]=y.create(Wn,Un)}})();var _=[];(function(){for(var Fn=0;Fn<25;Fn++)_[Fn]=y.create()})();var re=x.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 w=this._state,J=this.blockSize/2,gn=0;gn<J;gn++){var Rn=Fn[Bn+2*gn],zn=Fn[Bn+2*gn+1];Rn=(Rn<<8|Rn>>>24)&16711935|(Rn<<24|Rn>>>8)&4278255360,zn=(zn<<8|zn>>>24)&16711935|(zn<<24|zn>>>8)&4278255360;var Wn=w[gn];Wn.high^=zn,Wn.low^=Rn}for(var Un=0;Un<24;Un++){for(var Qn=0;Qn<5;Qn++){for(var Jn=0,tr=0,Xn=0;Xn<5;Xn++){var Wn=w[Qn+5*Xn];Jn^=Wn.high,tr^=Wn.low}var ar=_[Qn];ar.high=Jn,ar.low=tr}for(var Qn=0;Qn<5;Qn++)for(var sr=_[(Qn+4)%5],nr=_[(Qn+1)%5],Hn=nr.high,Yn=nr.low,Jn=sr.high^(Hn<<1|Yn>>>31),tr=sr.low^(Yn<<1|Hn>>>31),Xn=0;Xn<5;Xn++){var Wn=w[Qn+5*Xn];Wn.high^=Jn,Wn.low^=tr}for(var Vn=1;Vn<25;Vn++){var Jn,tr,Wn=w[Vn],Gn=Wn.high,Zn=Wn.low,qn=Pn[Vn];qn<32?(Jn=Gn<<qn|Zn>>>32-qn,tr=Zn<<qn|Gn>>>32-qn):(Jn=Zn<<qn-32|Gn>>>64-qn,tr=Gn<<qn-32|Zn>>>64-qn);var er=_[b[Vn]];er.high=Jn,er.low=tr}var ir=_[0],Kn=w[0];ir.high=Kn.high,ir.low=Kn.low;for(var Qn=0;Qn<5;Qn++)for(var Xn=0;Xn<5;Xn++){var Vn=Qn+5*Xn,Wn=w[Vn],or=_[Vn],cr=_[(Qn+1)%5+5*Xn],hr=_[(Qn+2)%5+5*Xn];Wn.high=or.high^~cr.high&hr.high,Wn.low=or.low^~cr.low&hr.low}var Wn=w[0],dr=vn[Un];Wn.high^=dr.high,Wn.low^=dr.low}},_doFinalize:function(){var Fn=this._data,Bn=Fn.words;this._nDataBytes*8;var w=Fn.sigBytes*8,J=this.blockSize*32;Bn[w>>>5]|=1<<24-w%32,Bn[(h.ceil((w+1)/J)*J>>>5)-1]|=128,Fn.sigBytes=Bn.length*4,this._process();for(var gn=this._state,Rn=this.cfg.outputLength/8,zn=Rn/8,Wn=[],Un=0;Un<zn;Un++){var Qn=gn[Un],Jn=Qn.high,tr=Qn.low;Jn=(Jn<<8|Jn>>>24)&16711935|(Jn<<24|Jn>>>8)&4278255360,tr=(tr<<8|tr>>>24)&16711935|(tr<<24|tr>>>8)&4278255360,Wn.push(tr),Wn.push(Jn)}return new p.init(Wn,Rn)},clone:function(){for(var Fn=m.clone.call(this),Bn=Fn._state=this._state.slice(0),w=0;w<25;w++)Bn[w]=Bn[w].clone();return Fn}});d.SHA3=m._createHelper(re),d.HmacSHA3=m._createHmacHelper(re)}(Math),f.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){/** @preserve
|
|
61
|
+
`],...function({vnode:x,recurseCount:Bn}){const b=Bn>0?`... (${Bn} recursive calls)`:"",re=!!x.component&&x.component.parent==null,_=` at <${oe(x.component,x.type,re)}`,vn=">"+b;return x.props?[_,...L(x.props),vn]:[_+vn]}(g))}),m}(d)),console.warn(...v)}}function L(c){const u=[],f=Object.keys(c);return f.slice(0,3).forEach(h=>{u.push(...T(h,c[h]))}),f.length>3&&u.push(" ..."),u}function T(c,u,f){return typeof u=="string"?(u=JSON.stringify(u),f?u:[`${c}=${u}`]):typeof u=="number"||typeof u=="boolean"||u==null?f?u:[`${c}=${u}`]:A(u)?(u=T(c,S(u.value),!0),f?u:[`${c}=Ref<`,u,">"]):i(u)?[`${c}=fn${u.name?`<${u.name}>`:""}`]:(u=S(u),f?u:[`${c}=`,u])}const N={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function $(c,u,f,h){let d;try{d=h?c(...h):c()}catch(v){(function(p,m,g,y=!0){const x=m?m.vnode:null;if(m){let Bn=m.parent;const b=m.proxy,re=process.env.NODE_ENV!=="production"?N[g]:g;for(;Bn;){const vn=Bn.ec;if(vn){for(let Fn=0;Fn<vn.length;Fn++)if(vn[Fn](p,b,re)===!1)return}Bn=Bn.parent}const _=m.appContext.config.errorHandler;if(_)return void $(_,null,10,[p,b,re])}(function(Bn,b,re,_=!0){if(process.env.NODE_ENV!=="production"){const Fn=N[b];if(re&&(vn=re,O.push(vn)),C("Unhandled error"+(Fn?` during execution of ${Fn}`:"")),re&&O.pop(),_)throw Bn;console.error(Bn)}else console.error(Bn);var vn})(p,g,x,y)})(v,u,f)}return d}let k=!1,M=!1;const D=[];let E=0;const I=[];let F=null,V=0;const z$1=Promise.resolve();function R(c){D.length&&D.includes(c,k&&c.allowRecurse?E+1:E)||(c.id==null?D.push(c):D.splice(function(u){let f=E+1,h=D.length;for(;f<h;){const d=f+h>>>1,v=D[d],p=G(v);p<u||p===u&&v.pre?f=d+1:h=d}return f}(c.id),0,c),U())}function U(){k||M||(M=!0,z$1.then(W))}const G=c=>c.id==null?1/0:c.id,P=(c,u)=>{const f=G(c)-G(u);if(f===0){if(c.pre&&!u.pre)return-1;if(u.pre&&!c.pre)return 1}return f};function W(c){M=!1,k=!0,process.env.NODE_ENV!=="production"&&(c=c||new Map),D.sort(P);const u=process.env.NODE_ENV!=="production"?f=>Y(c,f):n;try{for(E=0;E<D.length;E++){const f=D[E];if(f&&f.active!==!1){if(process.env.NODE_ENV!=="production"&&u(f))continue;$(f,null,14)}}}finally{E=0,D.length=0,function(f){if(I.length){const h=[...new Set(I)];if(I.length=0,F)return void F.push(...h);for(F=h,process.env.NODE_ENV!=="production"&&(f=f||new Map),F.sort((d,v)=>G(d)-G(v)),V=0;V<F.length;V++)process.env.NODE_ENV!=="production"&&Y(f,F[V])||F[V]();F=null,V=0}}(c),k=!1,(D.length||I.length)&&W(c)}}function Y(c,u){if(c.has(u)){const f=c.get(u);if(f>100){const h=u.ownerInstance,d=h&&ne(h.type);return C(`Maximum recursive updates exceeded${d?` in component <${d}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}c.set(u,f+1)}else c.set(u,1)}const H=new Set;process.env.NODE_ENV!=="production"&&(s().__VUE_HMR_RUNTIME__={createRecord:Q(function(c,u){return B.has(c)?!1:(B.set(c,{initialDef:K(u),instances:new Set}),!0)}),rerender:Q(function(c,u){const f=B.get(c);f&&(f.initialDef.render=u,[...f.instances].forEach(h=>{u&&(h.render=u,K(h.type).render=u),h.renderCache=[],h.update()}))}),reload:Q(function(c,u){const f=B.get(c);if(!f)return;u=K(u),q(f.initialDef,u);const h=[...f.instances];for(const v of h){const p=K(v.type);H.has(p)||(p!==f.initialDef&&q(p,u),H.add(p)),v.appContext.propsCache.delete(v.type),v.appContext.emitsCache.delete(v.type),v.appContext.optionsCache.delete(v.type),v.ceReload?(H.add(p),v.ceReload(u.styles),H.delete(p)):v.parent?R(v.parent.update):v.appContext.reload?v.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}d=()=>{for(const v of h)H.delete(K(v.type))},r(d)?I.push(...d):F&&F.includes(d,d.allowRecurse?V+1:V)||I.push(d),U();var d})});const B=new Map;function K(c){return i(u=c)&&"__vccOpts"in u?c.__vccOpts:c;var u}function q(c,u){o(c,u);for(const f in c)f==="__file"||f in u||delete c[f]}function Q(c){return(u,f)=>{try{return c(u,f)}catch(h){console.error(h),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let X;process.env.NODE_ENV;let Z="__VUE_INSTANCE_SETTERS__";(X=s()[Z])||(X=s()[Z]=[]),X.push(c=>c);const ee=/(?:^|[-_])(\w)/g,te=c=>c.replace(ee,u=>u.toUpperCase()).replace(/[-_]/g,"");function ne(c,u=!0){return i(c)?c.displayName||c.name:c.name||u&&c.__name}function oe(c,u,f=!1){let h=ne(u);if(!h&&u.__file){const d=u.__file.match(/([^/\\]+)\.\w+$/);d&&(h=d[1])}if(!h&&c&&c.parent){const d=v=>{for(const p in v)if(v[p]===u)return p};h=d(c.components||c.parent.type.components)||d(c.appContext.components)}return h?te(h):f?"App":"Anonymous"}function ie(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var ae,le={exports:{}};function se(){return ae||(ae=1,le.exports=function(){var c=1e3,u=6e4,f=36e5,h="millisecond",d="second",v="minute",p="hour",m="day",g="week",y="month",x="quarter",Bn="year",b="date",re="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,vn=/\[([^\]]+)]|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(Qn){var ir=["th","st","nd","rd"],cr=Qn%100;return"["+Qn+(ir[(cr-20)%10]||ir[cr]||ir[0])+"]"}},Pn=function(Qn,ir,cr){var Xn=String(Qn);return!Xn||Xn.length>=ir?Qn:""+Array(ir+1-Xn.length).join(cr)+Qn},w={s:Pn,z:function(Qn){var ir=-Qn.utcOffset(),cr=Math.abs(ir),Xn=Math.floor(cr/60),Hn=cr%60;return(ir<=0?"+":"-")+Pn(Xn,2,"0")+":"+Pn(Hn,2,"0")},m:function Qn(ir,cr){if(ir.date()<cr.date())return-Qn(cr,ir);var Xn=12*(cr.year()-ir.year())+(cr.month()-ir.month()),Hn=ir.clone().add(Xn,y),Yn=cr-Hn<0,Rn=ir.clone().add(Xn+(Yn?-1:1),y);return+(-(Xn+(cr-Hn)/(Yn?Hn-Rn:Rn-Hn))||0)},a:function(Qn){return Qn<0?Math.ceil(Qn)||0:Math.floor(Qn)},p:function(Qn){return{M:y,y:Bn,w:g,d:m,D:b,h:p,m:v,s:d,ms:h,Q:x}[Qn]||String(Qn||"").toLowerCase().replace(/s$/,"")},u:function(Qn){return Qn===void 0}},J="en",gn={};gn[J]=Fn;var Vn="$isDayjsObject",zn=function(Qn){return Qn instanceof Jn||!(!Qn||!Qn[Vn])},Wn=function Qn(ir,cr,Xn){var Hn;if(!ir)return J;if(typeof ir=="string"){var Yn=ir.toLowerCase();gn[Yn]&&(Hn=Yn),cr&&(gn[Yn]=cr,Hn=Yn);var Rn=ir.split("-");if(!Hn&&Rn.length>1)return Qn(Rn[0])}else{var Gn=ir.name;gn[Gn]=ir,Hn=Gn}return!Xn&&Hn&&(J=Hn),Hn||!Xn&&J},Un=function(Qn,ir){if(zn(Qn))return Qn.clone();var cr=typeof ir=="object"?ir:{};return cr.date=Qn,cr.args=arguments,new Jn(cr)},er=w;er.l=Wn,er.i=zn,er.w=function(Qn,ir){return Un(Qn,{locale:ir.$L,utc:ir.$u,x:ir.$x,$offset:ir.$offset})};var Jn=function(){function Qn(cr){this.$L=Wn(cr.locale,null,!0),this.parse(cr),this.$x=this.$x||cr.x||{},this[Vn]=!0}var ir=Qn.prototype;return ir.parse=function(cr){this.$d=function(Xn){var Hn=Xn.date,Yn=Xn.utc;if(Hn===null)return new Date(NaN);if(er.u(Hn))return new Date;if(Hn instanceof Date)return new Date(Hn);if(typeof Hn=="string"&&!/Z$/i.test(Hn)){var Rn=Hn.match(_);if(Rn){var Gn=Rn[2]-1||0,Zn=(Rn[7]||"0").substring(0,3);return Yn?new Date(Date.UTC(Rn[1],Gn,Rn[3]||1,Rn[4]||0,Rn[5]||0,Rn[6]||0,Zn)):new Date(Rn[1],Gn,Rn[3]||1,Rn[4]||0,Rn[5]||0,Rn[6]||0,Zn)}}return new Date(Hn)}(cr),this.init()},ir.init=function(){var cr=this.$d;this.$y=cr.getFullYear(),this.$M=cr.getMonth(),this.$D=cr.getDate(),this.$W=cr.getDay(),this.$H=cr.getHours(),this.$m=cr.getMinutes(),this.$s=cr.getSeconds(),this.$ms=cr.getMilliseconds()},ir.$utils=function(){return er},ir.isValid=function(){return this.$d.toString()!==re},ir.isSame=function(cr,Xn){var Hn=Un(cr);return this.startOf(Xn)<=Hn&&Hn<=this.endOf(Xn)},ir.isAfter=function(cr,Xn){return Un(cr)<this.startOf(Xn)},ir.isBefore=function(cr,Xn){return this.endOf(Xn)<Un(cr)},ir.$g=function(cr,Xn,Hn){return er.u(cr)?this[Xn]:this.set(Hn,cr)},ir.unix=function(){return Math.floor(this.valueOf()/1e3)},ir.valueOf=function(){return this.$d.getTime()},ir.startOf=function(cr,Xn){var Hn=this,Yn=!!er.u(Xn)||Xn,Rn=er.p(cr),Gn=function(ur,dr){var sr=er.w(Hn.$u?Date.UTC(Hn.$y,dr,ur):new Date(Hn.$y,dr,ur),Hn);return Yn?sr:sr.endOf(m)},Zn=function(ur,dr){return er.w(Hn.toDate()[ur].apply(Hn.toDate("s"),(Yn?[0,0,0,0]:[23,59,59,999]).slice(dr)),Hn)},qn=this.$W,nr=this.$M,or=this.$D,Kn="set"+(this.$u?"UTC":"");switch(Rn){case Bn:return Yn?Gn(1,0):Gn(31,11);case y:return Yn?Gn(1,nr):Gn(0,nr+1);case g:var ar=this.$locale().weekStart||0,lr=(qn<ar?qn+7:qn)-ar;return Gn(Yn?or-lr:or+(6-lr),nr);case m:case b:return Zn(Kn+"Hours",0);case p:return Zn(Kn+"Minutes",1);case v:return Zn(Kn+"Seconds",2);case d:return Zn(Kn+"Milliseconds",3);default:return this.clone()}},ir.endOf=function(cr){return this.startOf(cr,!1)},ir.$set=function(cr,Xn){var Hn,Yn=er.p(cr),Rn="set"+(this.$u?"UTC":""),Gn=(Hn={},Hn[m]=Rn+"Date",Hn[b]=Rn+"Date",Hn[y]=Rn+"Month",Hn[Bn]=Rn+"FullYear",Hn[p]=Rn+"Hours",Hn[v]=Rn+"Minutes",Hn[d]=Rn+"Seconds",Hn[h]=Rn+"Milliseconds",Hn)[Yn],Zn=Yn===m?this.$D+(Xn-this.$W):Xn;if(Yn===y||Yn===Bn){var qn=this.clone().set(b,1);qn.$d[Gn](Zn),qn.init(),this.$d=qn.set(b,Math.min(this.$D,qn.daysInMonth())).$d}else Gn&&this.$d[Gn](Zn);return this.init(),this},ir.set=function(cr,Xn){return this.clone().$set(cr,Xn)},ir.get=function(cr){return this[er.p(cr)]()},ir.add=function(cr,Xn){var Hn,Yn=this;cr=Number(cr);var Rn=er.p(Xn),Gn=function(nr){var or=Un(Yn);return er.w(or.date(or.date()+Math.round(nr*cr)),Yn)};if(Rn===y)return this.set(y,this.$M+cr);if(Rn===Bn)return this.set(Bn,this.$y+cr);if(Rn===m)return Gn(1);if(Rn===g)return Gn(7);var Zn=(Hn={},Hn[v]=u,Hn[p]=f,Hn[d]=c,Hn)[Rn]||1,qn=this.$d.getTime()+cr*Zn;return er.w(qn,this)},ir.subtract=function(cr,Xn){return this.add(-1*cr,Xn)},ir.format=function(cr){var Xn=this,Hn=this.$locale();if(!this.isValid())return Hn.invalidDate||re;var Yn=cr||"YYYY-MM-DDTHH:mm:ssZ",Rn=er.z(this),Gn=this.$H,Zn=this.$m,qn=this.$M,nr=Hn.weekdays,or=Hn.months,Kn=Hn.meridiem,ar=function(dr,sr,fr,pr){return dr&&(dr[sr]||dr(Xn,Yn))||fr[sr].slice(0,pr)},lr=function(dr){return er.s(Gn%12||12,dr,"0")},ur=Kn||function(dr,sr,fr){var pr=dr<12?"AM":"PM";return fr?pr.toLowerCase():pr};return Yn.replace(vn,function(dr,sr){return sr||function(fr){switch(fr){case"YY":return String(Xn.$y).slice(-2);case"YYYY":return er.s(Xn.$y,4,"0");case"M":return qn+1;case"MM":return er.s(qn+1,2,"0");case"MMM":return ar(Hn.monthsShort,qn,or,3);case"MMMM":return ar(or,qn);case"D":return Xn.$D;case"DD":return er.s(Xn.$D,2,"0");case"d":return String(Xn.$W);case"dd":return ar(Hn.weekdaysMin,Xn.$W,nr,2);case"ddd":return ar(Hn.weekdaysShort,Xn.$W,nr,3);case"dddd":return nr[Xn.$W];case"H":return String(Gn);case"HH":return er.s(Gn,2,"0");case"h":return lr(1);case"hh":return lr(2);case"a":return ur(Gn,Zn,!0);case"A":return ur(Gn,Zn,!1);case"m":return String(Zn);case"mm":return er.s(Zn,2,"0");case"s":return String(Xn.$s);case"ss":return er.s(Xn.$s,2,"0");case"SSS":return er.s(Xn.$ms,3,"0");case"Z":return Rn}return null}(dr)||Rn.replace(":","")})},ir.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ir.diff=function(cr,Xn,Hn){var Yn,Rn=this,Gn=er.p(Xn),Zn=Un(cr),qn=(Zn.utcOffset()-this.utcOffset())*u,nr=this-Zn,or=function(){return er.m(Rn,Zn)};switch(Gn){case Bn:Yn=or()/12;break;case y:Yn=or();break;case x:Yn=or()/3;break;case g:Yn=(nr-qn)/6048e5;break;case m:Yn=(nr-qn)/864e5;break;case p:Yn=nr/f;break;case v:Yn=nr/u;break;case d:Yn=nr/c;break;default:Yn=nr}return Hn?Yn:er.a(Yn)},ir.daysInMonth=function(){return this.endOf(y).$D},ir.$locale=function(){return gn[this.$L]},ir.locale=function(cr,Xn){if(!cr)return this.$L;var Hn=this.clone(),Yn=Wn(cr,Xn,!0);return Yn&&(Hn.$L=Yn),Hn},ir.clone=function(){return er.w(this.$d,this)},ir.toDate=function(){return new Date(this.valueOf())},ir.toJSON=function(){return this.isValid()?this.toISOString():null},ir.toISOString=function(){return this.$d.toISOString()},ir.toString=function(){return this.$d.toUTCString()},Qn}(),tr=Jn.prototype;return Un.prototype=tr,[["$ms",h],["$s",d],["$m",v],["$H",p],["$W",m],["$M",y],["$y",Bn],["$D",b]].forEach(function(Qn){tr[Qn[1]]=function(ir){return this.$g(ir,Qn[0],Qn[1])}}),Un.extend=function(Qn,ir){return Qn.$i||(Qn(ir,Jn,Un),Qn.$i=!0),Un},Un.locale=Wn,Un.isDayjs=zn,Un.unix=function(Qn){return Un(1e3*Qn)},Un.en=gn[J],Un.Ls=gn,Un.p={},Un}()),le.exports}var ce=ie(se()),ue=typeof global=="object"&&global&&global.Object===Object&&global,de=typeof self=="object"&&self&&self.Object===Object&&self,fe=ue||de||Function("return this")(),pe=fe.Symbol,he=Object.prototype,ye=he.hasOwnProperty,me=he.toString,be=pe?pe.toStringTag:void 0,ge=Object.prototype.toString,ve=pe?pe.toStringTag:void 0;function xe(c){return c==null?c===void 0?"[object Undefined]":"[object Null]":ve&&ve in Object(c)?function(u){var f=ye.call(u,be),h=u[be];try{u[be]=void 0;var d=!0}catch{}var v=me.call(u);return d&&(f?u[be]=h:delete u[be]),v}(c):function(u){return ge.call(u)}(c)}function we(c){return c!=null&&typeof c=="object"}var Se=Array.isArray;function Ae(c){var u=typeof c;return c!=null&&(u=="object"||u=="function")}function je(c){if(!Ae(c))return!1;var u=xe(c);return u=="[object Function]"||u=="[object GeneratorFunction]"||u=="[object AsyncFunction]"||u=="[object Proxy]"}var _e,Oe=fe["__core-js_shared__"],Ce=(_e=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+_e:"",Le=Function.prototype.toString;function Te(c){if(c!=null){try{return Le.call(c)}catch{}try{return c+""}catch{}}return""}var Ne=/^\[object .+?Constructor\]$/,$e=Function.prototype,ke=Object.prototype,Me=$e.toString,De=ke.hasOwnProperty,Ee=RegExp("^"+Me.call(De).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ie(c){return!(!Ae(c)||(u=c,Ce&&Ce in u))&&(je(c)?Ee:Ne).test(Te(c));var u}function Fe(c,u){var f=function(h,d){return h==null?void 0:h[d]}(c,u);return Ie(f)?f:void 0}var Ve=Fe(fe,"WeakMap"),ze=Object.create,Re=function(){function c(){}return function(u){if(!Ae(u))return{};if(ze)return ze(u);c.prototype=u;var f=new c;return c.prototype=void 0,f}}(),Ue=function(){try{var c=Fe(Object,"defineProperty");return c({},"",{}),c}catch{}}(),Ge=/^(?:0|[1-9]\d*)$/;function Pe(c,u){var f=typeof c;return!!(u=u??9007199254740991)&&(f=="number"||f!="symbol"&&Ge.test(c))&&c>-1&&c%1==0&&c<u}function We(c,u){return c===u||c!=c&&u!=u}var Ye=Object.prototype.hasOwnProperty;function He(c,u,f){var h=c[u];Ye.call(c,u)&&We(h,f)&&(f!==void 0||u in c)||function(d,v,p){v=="__proto__"&&Ue?Ue(d,v,{configurable:!0,enumerable:!0,value:p,writable:!0}):d[v]=p}(c,u,f)}function Be(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=9007199254740991}var Ke=Object.prototype;function qe(c){var u=c&&c.constructor;return c===(typeof u=="function"&&u.prototype||Ke)}function Qe(c){return we(c)&&xe(c)=="[object Arguments]"}var Je=Object.prototype,Xe=Je.hasOwnProperty,Ze=Je.propertyIsEnumerable,et=Qe(function(){return arguments}())?Qe:function(c){return we(c)&&Xe.call(c,"callee")&&!Ze.call(c,"callee")},tt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,nt=tt&&typeof module=="object"&&module&&!module.nodeType&&module,ot=nt&&nt.exports===tt?fe.Buffer:void 0,rt=(ot?ot.isBuffer:void 0)||function(){return!1},it={};function at(c){return function(u){return c(u)}}it["[object Float32Array]"]=it["[object Float64Array]"]=it["[object Int8Array]"]=it["[object Int16Array]"]=it["[object Int32Array]"]=it["[object Uint8Array]"]=it["[object Uint8ClampedArray]"]=it["[object Uint16Array]"]=it["[object Uint32Array]"]=!0,it["[object Arguments]"]=it["[object Array]"]=it["[object ArrayBuffer]"]=it["[object Boolean]"]=it["[object DataView]"]=it["[object Date]"]=it["[object Error]"]=it["[object Function]"]=it["[object Map]"]=it["[object Number]"]=it["[object Object]"]=it["[object RegExp]"]=it["[object Set]"]=it["[object String]"]=it["[object WeakMap]"]=!1;var lt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,st=lt&&typeof module=="object"&&module&&!module.nodeType&&module,ct=st&&st.exports===lt&&ue.process,ut=function(){try{var c=st&&st.require&&st.require("util").types;return c||ct&&ct.binding&&ct.binding("util")}catch{}}(),dt=ut&&ut.isTypedArray,ft=dt?at(dt):function(c){return we(c)&&Be(c.length)&&!!it[xe(c)]},pt=Object.prototype.hasOwnProperty;function ht(c,u){var f=Se(c),h=!f&&et(c),d=!f&&!h&&rt(c),v=!f&&!h&&!d&&ft(c),p=f||h||d||v,m=p?function(x,Bn){for(var b=-1,re=Array(x);++b<x;)re[b]=Bn(b);return re}(c.length,String):[],g=m.length;for(var y in c)!pt.call(c,y)||p&&(y=="length"||d&&(y=="offset"||y=="parent")||v&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||Pe(y,g))||m.push(y);return m}function yt(c,u){return function(f){return c(u(f))}}var mt=yt(Object.keys,Object),bt=Object.prototype.hasOwnProperty;function gt(c){return(u=c)!=null&&Be(u.length)&&!je(u)?ht(c):function(f){if(!qe(f))return mt(f);var h=[];for(var d in Object(f))bt.call(f,d)&&d!="constructor"&&h.push(d);return h}(c);var u}var vt=Fe(Object,"create"),xt=Object.prototype.hasOwnProperty,wt=Object.prototype.hasOwnProperty;function St(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var h=c[u];this.set(h[0],h[1])}}function At(c,u){for(var f=c.length;f--;)if(We(c[f][0],u))return f;return-1}St.prototype.clear=function(){this.__data__=vt?vt(null):{},this.size=0},St.prototype.delete=function(c){var u=this.has(c)&&delete this.__data__[c];return this.size-=u?1:0,u},St.prototype.get=function(c){var u=this.__data__;if(vt){var f=u[c];return f==="__lodash_hash_undefined__"?void 0:f}return xt.call(u,c)?u[c]:void 0},St.prototype.has=function(c){var u=this.__data__;return vt?u[c]!==void 0:wt.call(u,c)},St.prototype.set=function(c,u){var f=this.__data__;return this.size+=this.has(c)?0:1,f[c]=vt&&u===void 0?"__lodash_hash_undefined__":u,this};var jt=Array.prototype.splice;function _t(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var h=c[u];this.set(h[0],h[1])}}_t.prototype.clear=function(){this.__data__=[],this.size=0},_t.prototype.delete=function(c){var u=this.__data__,f=At(u,c);return!(f<0)&&(f==u.length-1?u.pop():jt.call(u,f,1),--this.size,!0)},_t.prototype.get=function(c){var u=this.__data__,f=At(u,c);return f<0?void 0:u[f][1]},_t.prototype.has=function(c){return At(this.__data__,c)>-1},_t.prototype.set=function(c,u){var f=this.__data__,h=At(f,c);return h<0?(++this.size,f.push([c,u])):f[h][1]=u,this};var Ot=Fe(fe,"Map");function Ct(c,u){var f,h,d=c.__data__;return((h=typeof(f=u))=="string"||h=="number"||h=="symbol"||h=="boolean"?f!=="__proto__":f===null)?d[typeof u=="string"?"string":"hash"]:d.map}function Lt(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var h=c[u];this.set(h[0],h[1])}}Lt.prototype.clear=function(){this.size=0,this.__data__={hash:new St,map:new(Ot||_t),string:new St}},Lt.prototype.delete=function(c){var u=Ct(this,c).delete(c);return this.size-=u?1:0,u},Lt.prototype.get=function(c){return Ct(this,c).get(c)},Lt.prototype.has=function(c){return Ct(this,c).has(c)},Lt.prototype.set=function(c,u){var f=Ct(this,c),h=f.size;return f.set(c,u),this.size+=f.size==h?0:1,this};var Tt=yt(Object.getPrototypeOf,Object);function Nt(c){var u=this.__data__=new _t(c);this.size=u.size}Nt.prototype.clear=function(){this.__data__=new _t,this.size=0},Nt.prototype.delete=function(c){var u=this.__data__,f=u.delete(c);return this.size=u.size,f},Nt.prototype.get=function(c){return this.__data__.get(c)},Nt.prototype.has=function(c){return this.__data__.has(c)},Nt.prototype.set=function(c,u){var f=this.__data__;if(f instanceof _t){var h=f.__data__;if(!Ot||h.length<199)return h.push([c,u]),this.size=++f.size,this;f=this.__data__=new Lt(h)}return f.set(c,u),this.size=f.size,this};var $t=Object.prototype.propertyIsEnumerable,kt=Object.getOwnPropertySymbols,Mt=kt?function(c){return c==null?[]:(c=Object(c),function(u,f){for(var h=-1,d=u==null?0:u.length,v=0,p=[];++h<d;){var m=u[h];f(m,h,u)&&(p[v++]=m)}return p}(kt(c),function(u){return $t.call(c,u)}))}:function(){return[]};function Dt(c){return function(u,f,h){var d=f(u);return Se(u)?d:function(v,p){for(var m=-1,g=p.length,y=v.length;++m<g;)v[y+m]=p[m];return v}(d,h(u))}(c,gt,Mt)}var Et=Fe(fe,"DataView"),It=Fe(fe,"Promise"),Ft=Fe(fe,"Set"),Vt="[object Map]",zt="[object Promise]",Rt="[object Set]",Ut="[object WeakMap]",Gt="[object DataView]",Pt=Te(Et),Wt=Te(Ot),Yt=Te(It),Ht=Te(Ft),Bt=Te(Ve),Kt=xe;(Et&&Kt(new Et(new ArrayBuffer(1)))!=Gt||Ot&&Kt(new Ot)!=Vt||It&&Kt(It.resolve())!=zt||Ft&&Kt(new Ft)!=Rt||Ve&&Kt(new Ve)!=Ut)&&(Kt=function(c){var u=xe(c),f=u=="[object Object]"?c.constructor:void 0,h=f?Te(f):"";if(h)switch(h){case Pt:return Gt;case Wt:return Vt;case Yt:return zt;case Ht:return Rt;case Bt:return Ut}return u});var qt=Object.prototype.hasOwnProperty,Qt=fe.Uint8Array;function Jt(c){var u=new c.constructor(c.byteLength);return new Qt(u).set(new Qt(c)),u}var Xt=/\w*$/,Zt=pe?pe.prototype:void 0,en=Zt?Zt.valueOf:void 0;function tn(c,u,f){var h,d,v,p,m,g=c.constructor;switch(u){case"[object ArrayBuffer]":return Jt(c);case"[object Boolean]":case"[object Date]":return new g(+c);case"[object DataView]":return m=Jt((p=c).buffer),new p.constructor(m,p.byteOffset,p.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(y){var x=Jt(y.buffer);return new y.constructor(x,y.byteOffset,y.length)}(c);case"[object Map]":case"[object Set]":return new g;case"[object Number]":case"[object String]":return new g(c);case"[object RegExp]":return(v=new(d=c).constructor(d.source,Xt.exec(d))).lastIndex=d.lastIndex,v;case"[object Symbol]":return h=c,en?Object(en.call(h)):{}}}var nn=ut&&ut.isMap,on=nn?at(nn):function(c){return we(c)&&Kt(c)=="[object Map]"},rn=ut&&ut.isSet,an=rn?at(rn):function(c){return we(c)&&Kt(c)=="[object Set]"},ln="[object Arguments]",sn="[object Function]",cn="[object Object]",un={};function dn(c,u,f,h,d,v){var p;if(p!==void 0)return p;if(!Ae(c))return c;var m=Se(c);if(m)p=function(b){var re=b.length,_=new b.constructor(re);return re&&typeof b[0]=="string"&&qt.call(b,"index")&&(_.index=b.index,_.input=b.input),_}(c);else{var g=Kt(c),y=g==sn||g=="[object GeneratorFunction]";if(rt(c))return c.slice();if(g==cn||g==ln||y&&!d)p=y?{}:function(b){return typeof b.constructor!="function"||qe(b)?{}:Re(Tt(b))}(c);else{if(!un[g])return d?c:{};p=tn(c,g)}}v||(v=new Nt);var x=v.get(c);if(x)return x;v.set(c,p),an(c)?c.forEach(function(b){p.add(dn(b,u,f,b,c,v))}):on(c)&&c.forEach(function(b,re){p.set(re,dn(b,u,f,re,c,v))});var Bn=m?void 0:Dt(c);return function(b,re){for(var _=-1,vn=b==null?0:b.length;++_<vn&&re(b[_],_,b)!==!1;);}(Bn||c,function(b,re){Bn&&(b=c[re=b]),He(p,re,dn(b,u,f,re,c,v))}),p}un[ln]=un["[object Array]"]=un["[object ArrayBuffer]"]=un["[object DataView]"]=un["[object Boolean]"]=un["[object Date]"]=un["[object Float32Array]"]=un["[object Float64Array]"]=un["[object Int8Array]"]=un["[object Int16Array]"]=un["[object Int32Array]"]=un["[object Map]"]=un["[object Number]"]=un[cn]=un["[object RegExp]"]=un["[object Set]"]=un["[object String]"]=un["[object Symbol]"]=un["[object Uint8Array]"]=un["[object Uint8ClampedArray]"]=un["[object Uint16Array]"]=un["[object Uint32Array]"]=!0,un["[object Error]"]=un[sn]=un["[object WeakMap]"]=!1;function fn(c){return dn(c,5)}const pn=(c,u)=>{const f=Object.assign({dayjs:ce},u);let h="";const d=[];for(const m in f)h+=`${m},`,d.push(f[m]);h=h.replace(/,$/,"");const v=`function (${h}){return ${c}}`;let p;try{p=Function(`"use strict";return (${v})`)()(...d)}catch{return c}return p},hn=(c="",{textData:u,codeData:f}={},{useNewline:h=!1,useSpace:d=!1}={})=>{const v=window.config||{},p=Object.assign(Object.assign({},v),u),m=(c||"").match(/\{(.+?)\}/g);if(m==null||m.length===0)return c;for(let g=0;g<m.length;g++){const y=m[g];let x=y.slice(1,-1).trim();const Bn=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,b=x.match(Bn);for(let re=0;re<b.length;re++){const _=b[re],vn=p[_];vn!=null&&typeof vn!="function"&&(x=x.replace(_,vn))}(/\(.*\)/g.test(x)||/[+/\\*]/g.test(x))&&(x=pn(x,f)),c=c.replace(y,x)}return h&&(c=c==null?void 0:c.replace(/\n|\\n/g,"<br/>")),d&&(c=c==null?void 0:c.replace(/\s{2,}?/g," ")),c=c.replace(/Qfw\((.*?)\)/,(g,y)=>u!=null&&u.Qfw?u==null?void 0:u.Qfw(y):y)},yn=(c,u)=>{if(typeof c=="string"&&typeof u=="string")return c.toLocaleLowerCase().includes(u.toLocaleLowerCase());if(typeof c=="string"&&Array.isArray(u)){const f=u.length;for(let h=0;h<f;h++){const d=u[h];if(typeof d=="string"&&c.toLocaleLowerCase().includes(d.toLocaleLowerCase()))return!0}}return!1},mn=(c,u)=>Object.prototype.hasOwnProperty.call(c,u),bn=c=>{const u=[];for(const f of c)f.conditions?u.push(...bn(f.conditions)):(f==null?void 0:f.dataType)==="component"&&u.push(f);return u},xn=["table","bar","combograph","line","pie","radar","scatter","list","circulate"];let wn=new Map;const Sn=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"],An=c=>wn.get(c),jn=(c,u)=>{if(u)mn(c,"indexCode")&&(c.hrpIndexCode=c.indexCode,delete c.indexCode),mn(c,"indexCodeNum")&&(c.hrpIndexCodeNum=c.indexCodeNum,delete c.indexCodeNum),mn(c,"dataType")&&delete c.dataType;else{const{calcWays:f=[],dateCalcTypes:h=[],activeKey:d,componentId:v=""}=c;if(d===5&&(f!=null&&f.length)&&(h!=null&&h.length)&&v){const p=f[0].split("-");(p==null?void 0:p.length)>1&&p[0]==="rangeValue"&&(c.calcWays=((m,g={})=>{const{around:y,unit:x,id:Bn}=m;let b="";const{pageMode:re="",componentList:_=[]}=(g==null?void 0:g.graphicConfig)||{};let vn=null,Fn=null;if(re==="design"){const Pn=_==null?void 0:_.find(Un=>Un.id===Bn);if(!Pn)return[];const{interval:w,intervalUnit:J,startTime:gn,endTime:Vn,operate:zn,useCurrentTime:Wn}=Pn||{};if(Wn&&(vn=ce().subtract(w,J),Fn=ce()),gn&&(vn=ce(gn)),Vn&&(Fn=ce(Vn)),zn){const{type:Un,value:er,mode:Jn}=zn;switch(Un){case"add":vn=vn&&vn.add(er,Jn),Fn=Fn&&Fn.add(er,Jn);break;case"minus":vn=vn&&vn.subtract(er,Jn),Fn=Fn&&Fn.subtract(er,Jn)}}}else{const Pn=An(Bn)||{};j(Pn.startTime)&&(vn=ce(j(Pn.startTime))),j(Pn.endTime)&&(Fn=ce(j(Pn.endTime)))}return vn&&Fn&&(b=`${y==="before"?"-":""}${Fn.diff(vn,x.toLowerCase())+1}`),b?[b]:[]})({around:p[1],unit:h[0],id:v})),delete c.radioValue}if(mn(c,"dataType")){if(c.fieldType==="DATE"&&(c.label=c.fieldName),c.dataType==="component")if(c.fieldValue==="PARENT"){let p=c.modelKey;p&&c.prop&&(p+=`-${c.prop}`),c.fieldValue="${"+p+"}"}else c.fieldValue="${"+c.fieldValue+"}";delete c.dataType}mn(c,"activeKey")&&delete c.activeKey,mn(c,"radioValue")&&delete c.radioValue,mn(c,"indexCode")&&(c.hrpIndexCode=c.indexCode,delete c.indexCode),mn(c,"indexCodeNum")&&(c.hrpIndexCodeNum=c.indexCodeNum,delete c.indexCodeNum),c.dataType!=="component"&&c.useCurrentTime&&(c.fieldValue=ce().format(c.dateFormat)),mn(c,"modelKey")&&delete c.modelKey,mn(c,"prop")&&delete c.prop,delete c.useCurrentTime}},_n=(c,u)=>{const f=[];return c!=null&&c.length&&fn(c).forEach(h=>{if(h.join&&h.conditions){const d=!h.conditions.some(v=>v.join&&v.conditions);h.conditions.forEach((v,p)=>{jn(v,u);const m={};if(p<h.conditions.length-1&&(m.join=h.join),d)f.push(Object.assign(Object.assign({},m),v));else if(v.join&&v.conditions){const g=u?"sqlConditions":"conditions";f.push(Object.assign({[g]:_n([v],u)},m))}else f.push(Object.assign(Object.assign({},m),v))})}else jn(h,u),f.push(h)}),f},On=(c={},u)=>{if(c!=null&&c.sortCpnts&&u){const gn=kn(c);gn&&(u.sort=gn)}const{label:f,name:h,location:d,show:v,indexCode:p,indexCodeNum:m,calcType:g="COLUMN",builtInFormula:y,builtInValueSource:x,builtInCalcWay:Bn,formula:b,conditions:re,aggregate:_,distinct:vn,dimByCount:Fn,dataTo:Pn}=c;let w;if(re&&(w=_n(re)),g==="COMPONENT"){const gn={};return Nn(gn,x),{label:f.trim(),columnName:h,show:v,calcType:g,componentAlias:Bn,componentValue:gn.fieldValue||null}}const J={label:f.trim(),columnName:h,location:d,show:v,calcType:Pn==="1"?"VIEW":g,hrpIndexCode:p,hrpIndexCodeNum:m,aggregate:_,builtInFormula:y,builtInValueSource:x,formula:b,conditions:w};if(y!=="DATE_OFFSET")return h==="the_count"&&(J.calcType="AGGREGATE",J.distinct=!!vn,J.typeGuid=Fn),Object.assign(Object.assign({},J),{builtInCalcWay:Bn});{const gn=Bn.split("-");if((gn==null?void 0:gn.length)===3){let Vn=gn[0];return gn[2]==="before"&&gn[0]!=="0"&&(Vn=`-${gn[0]}`),Object.assign(Object.assign({},J),{calcWays:[Vn],dateCalcTypes:[gn[1]]})}}},Cn=c=>{if(!c)return[];const u=fn((c==null?void 0:c.controlList)||[]).filter(_=>_.conditionKey!=="parentCode"),{classificationList:f=[],rowHeaderList:h=[],dimensionList:d=[],seriesList:v=[],leftAxisList:p=[],rightAxisList:m=[],queryColumnList:g=[],indicators:y=[]}=c;Tn(u);const x=[...f,...h,...d,...v,...p,...m,...g,...y],Bn=[];for(const _ of x){const vn=bn((_==null?void 0:_.conditions)||[]);if(vn!=null&&vn.length){const Fn=vn.filter(Pn=>(Pn==null?void 0:Pn.dataType)==="component").map(Pn=>{const w={};return Pn!=null&&Pn.dateFormat&&(w.format=Pn.dateFormat),Pn.fieldValue==="PARENT"&&(w.id="PARENT",w.keyName=Pn.modelKey,w.modelKey=Pn.modelKey,w.prop=Pn.prop),Object.assign({conditionKey:Pn.fieldName,conditionLabel:Pn.fieldName,conditionName:Pn.fieldName,conditionValueType:Pn.fieldType,id:Pn.componentId,keyName:Pn.fieldValue,rule:Pn.rule,notGlobal:!0,indexCode:Pn.indexCode,typeGuid:Pn.typeGuid,indexCodeNum:Pn.indexCodeNum},w)});if(Fn!=null&&Fn.length)for(const Pn of Fn)Bn.find(w=>w.keyName===Pn.keyName)||Bn.push(Pn)}}const b=Bn.length,re=u;for(let _=0;_<b;_++){const vn=Bn[_];if((vn==null?void 0:vn.conditionKey)==="parentCode")continue;const{id:Fn,keyName:Pn,prop:w,format:J,modelKey:gn,dataType:Vn="component",customValue:zn}=vn,Wn=Ln(vn);Nn(Wn,Fn,{prop:w,dateFormat:J,modelKey:gn,keyName:Pn}),Vn===""&&(Wn.fieldValue=zn||""),re.push(Wn)}for(let _=re.length-1;_>=0;_--){const vn=re[_];vn.globalCondition||bn(re).find(Fn=>Fn.alias===vn.alias&&Fn.globalCondition)&&re.splice(_,1)}return re};function Ln(c){const{id:u,keyName:f,conditionLabel:h,conditionKey:d,conditionValueType:v,prop:p,rule:m="NONE",notGlobal:g=!1,indexCode:y,typeGuid:x,indexCodeNum:Bn,dataType:b="component"}=c;let re=f||u;re&&p&&(re+=`-${p}`);let _=m;return _==="NONE"&&(_=["startTime","endTime"].includes(p)?p==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":f!=null&&f.includes("startTime")?p==="GREATER_EQUAL":f!=null&&f.includes("endTime")?p==="LESS_EQUAL":"EQUAL"),u==="PARENT"&&(re=c.modelKey,re&&p&&(re+=`-${p}`),_=m),{rule:_,label:h,fieldName:d,fieldValue:"",valueType:v,alias:re,globalCondition:!g,indexCode:y,typeGuid:x,indexCodeNum:Bn,dataType:b}}function Tn(c){if(c!=null&&c.length)for(const u of c)if(u!=null&&u.conditions)Tn(u.conditions);else{const{id:f,keyName:h,prop:d,modelKey:v,format:p,dataType:m="component",customValue:g}=u,y=Ln(u);Nn(y,f,{prop:d,dateFormat:p,modelKey:v,keyName:h}),m===""&&(y.fieldValue=g||"");for(const x in y)u[x]=y[x];for(const x of Sn)delete u[x]}}function Nn(c,u,f){const{prop:h="",dateFormat:d="",modelKey:v="",keyName:p="",operateValue:m,operateMode:g,operateType:y}=f||{},x=v||p;if(u==="PARENT"&&x&&h){const w=window.config.record;let J=h,gn=d;const Vn=h.match(/\{(.+?)\}/g);if(Vn!=null&&Vn.length){const zn=Vn[0].slice(1,-1).trim();J=h.replace(Vn[0],""),gn=zn,c.dateFormat=gn}if(w&&w[x]){const zn=j(w[x][J]);ce.isDayjs(zn)?c.fieldValue=zn.format(gn||"YYYY-MM-DD"):c.fieldValue=zn}return}const Bn=An(u)||{},{value:b,format:re="YYYY-MM-DD",type:_="",useCurrentTime:vn,RECORD:Fn}=Bn||{},Pn=d||re;if(yn(Bn.type,"date")){let w;if(w=vn?b?j(b):ce():j(b),m&&g&&y)switch(y){case"add":w=w.add(m,g);break;case"minus":w=w.subtract(m,g)}c.fieldValue=w==null?void 0:w.format(Pn),c.dateFormat=Pn}else if(_==="ecanRangePicker"){let w=h;if(!h){const gn=p&&p.split("-");gn!=null&&gn.length&&(w=gn[gn.length-1])}if(!w)return;let J=null;if(j(Bn[w])&&(J=ce(j(Bn[w]))),m&&g&&y){if(m==="rangeValue"){if(Bn.startTime&&Bn.endTime){const gn=j(Bn.endTime).diff(j(Bn.startTime),g)+1;switch(y){case"add":J=J&&J.add(gn,g);break;case"minus":J=J&&J.subtract(gn,g)}}}else if(!isNaN(+m))switch(y){case"add":J=J&&J.add(m,g);break;case"minus":J=J&&J.subtract(m,g)}}if(J&&(c.fieldValue=J==null?void 0:J.format(Pn)),w==="rangeValue"&&Bn.startTime&&Bn.endTime){const gn=function(Vn){const zn=Vn.split("-");let Wn="";if(zn!=null&&zn.length)switch(zn[zn.length-1]){case"YYYY":Wn="year";break;case"MM":Wn="month";break;case"DD":Wn="day"}return Wn}(Pn);gn&&(c.fieldValue=j(Bn.endTime).diff(j(Bn.startTime),gn)+1)}c.dateFormat=Pn}else yn(_,xn)?c.fieldValue=v&&Fn?Fn[v]:!v&&Fn?Fn.value:j(b):c.fieldValue=j(b)}const $n=c=>{var u;if(c){const f=Array.isArray(c)?fn(c):[fn(c)];let h="",d=[];const v=[],p=[],m=[];for(const g of f){if(g.defaultCode&&(g.label=g.columnName,delete g.defaultCode),g.type==="CUSTOM"&&(d=g.customOrderColumns),h=g.type,v.push(g.label),(u=g.columnName)===null||u===void 0?void 0:u.includes("_ecanrepeat_")){const y=g.columnName.split("_ecanrepeat_");p.push(y[0])}else p.push(g.columnName);m.push(g.order)}return h!=="CUSTOM"&&(v==null?void 0:v.length)>1&&(h="COMBINATION"),h==="CUSTOM"?{label:v.join(","),columnName:p.join(","),type:h,customOrderColumns:d}:{label:v.join(","),columnName:p.join(","),order:m.join(","),type:h}}return c},kn=c=>{const{sortCpnts:u=[]}=c;let f,h="";for(const d of u){const v=An(d)||{},{type:p,RECORD:m}=v;if(yn(p,"image")&&yn(m==null?void 0:m.value,["asc","desc"])){h=m.value.toUpperCase();break}}return h&&(f={label:c.label,columnName:c.name,order:h,type:"NORMAL"}),f},Mn=(c,u={})=>{var f,h,d,v,p,m,g,y,x,Bn;const{graphicConfig:b,type:re,globalModel:_,isGroupTable:vn=!1}=c;_&&(wn=_);const Fn=yn(re,"pivottable");let Pn,{source:w,dataViewId:J,plugin:gn="1",layer:Vn,chartType:zn,classificationList:Wn=[],rowHeaderList:Un=[],dimensionList:er=[],seriesList:Jn=[],leftAxisList:tr=[],rightAxisList:Qn=[],queryColumnList:ir=[],indicators:cr=[],controlList:Xn=[],formFields:Hn={},variableList:Yn=[],variableConditions:Rn=[],dataSourceId:Gn="",idxLibMode:Zn,preview:qn=!1,edvDataSetId:nr}=b||{},or=[];if((b==null?void 0:b.pageMode)==="design"?(or=((f=b.sqlConditions)!==null&&f!==void 0?f:[]).map(vr=>{const yr={};if(mn(vr,"globalCondition")||vr.join||(yr.globalCondition=!0),!vr.join){const xr=vr.rule||"EQUAL";yr.rule=xr==="NONE"?"EQUAL":xr}return Object.assign(Object.assign({},vr),yr)}),Rn!=null&&Rn.length&&(or=or.concat(Rn))):(or=Cn(b),Yn!=null&&Yn.length&&(or=or.concat(function(vr){const yr=[];if(vr!=null&&vr.length){for(const xr of vr)if(xr.variableName){const Cr={variateName:xr.variableName,globalCondition:!1,valueType:xr.variableType,alias:xr.keyName||""};Nn(Cr,xr.id,{dateFormat:xr.format,prop:xr.dateTypeValue,keyName:xr.keyName,operateType:xr.operateType,operateMode:xr.operateMode,operateValue:xr.operateValue}),xr.dataType===""&&(Cr.fieldValue=xr.variableValue),xr.format&&(Cr.dateFormat=xr.format),xr.label&&(Cr.label=xr.label),yr.push(Cr)}}return yr}(Yn)))),or==null?void 0:or.length){const vr=or.filter(xr=>xr.globalCondition),yr=or.filter(xr=>!xr.globalCondition);(vr==null?void 0:vr.length)>1&&(or=[{join:"&&",conditions:vr},...yr])}or!=null&&or.length&&(or=_n(or,"1")),Vn==null&&(Vn=yn(re,["table","card"])||yn(re,["list","circulate"])&&(Wn==null?void 0:Wn.length)>1?"1":yn(re,["select","checkbox","radio"])?"3":"2");const Kn=[];let ar,lr="";if(Array.isArray(Wn)&&Wn.length>0&&(!["ecanList","ecanCirculate"].includes(re)||(Wn==null?void 0:Wn.length)===1)){const vr=Wn.length;for(let yr=0;yr<vr;yr++){const xr=Wn[yr]||{},{label:Cr="",name:Er="",show:_r=!1,sort:kr,customGroup:Br,conditions:Ir,dateFormat:Fr,typeGuid:Nr="",truncations:Rr=[]}=xr;if(_r||vr===1){lr=Nr,Pn={label:Cr.trim(),columnName:Er,show:_r,sort:kn(xr)||$n(kr)||kr,customGroup:Br,conditions:_n(Ir),typeGuid:Nr},Fr&&(Pn.dateFormat=Fr),Er!=="the_date"||Pn.dateFormat||(Pn.dateFormat="YYYY-MM");const Or={};if(Array.isArray(Rr)&&Rr.length>0){const jr=Rr.length;for(let Ur=0;Ur<jr;Ur++){const Gr=Rr[Ur]||{},{rule:Wr="",num:Kr=0,name:ei=""}=Gr;Wr&&Kr&&(Or.num=Kr,Or.rule=Wr,ei&&(Or.otherGroupName=ei))}}if(!((h=Object.keys(Or))===null||h===void 0)&&h.length&&(Pn.truncation=Or),!yn(re,["scatter","valueline"]))break;Kn.push(Pn)}}}if(Array.isArray(Jn)&&Jn.length>0){const vr=Jn.length;for(let yr=0;yr<vr;yr++){const xr=Jn[yr]||{},{label:Cr="",name:Er="",show:_r=!1,sort:kr,customGroup:Br,conditions:Ir,typeGuid:Fr}=xr;if(_r||vr===1){ar={label:Cr.trim(),columnName:Er,show:_r,sort:$n(kr),customGroup:Br,conditions:_n(Ir),typeGuid:Fr};break}}}const ur=[];tr==null||tr.forEach(vr=>{vr.location="LEFT",ur.push(On(vr,Pn))}),Qn==null||Qn.forEach(vr=>{vr.location="RIGHT",ur.push(On(vr,Pn))});let dr=cr;!((v=(d=u==null?void 0:u.pivotTableCal)===null||d===void 0?void 0:d.indicators)===null||v===void 0)&&v.length&&(dr=u.pivotTableCal.indicators),dr==null||dr.forEach(vr=>{vr.location="LEFT",ur.push(On(vr,Pn))});const sr=[];["ecanList","ecanCirculate"].includes(re)&&(Wn==null?void 0:Wn.length)>1&&(ir=Wn),!((m=(p=u==null?void 0:u.pivotTableCal)===null||p===void 0?void 0:p.dimensions)===null||m===void 0)&&m.length&&(ir=u.pivotTableCal.dimensions),ir==null||ir.forEach(vr=>{const{label:yr,name:xr,location:Cr,show:Er,indexCode:_r,sort:kr,typeGuid:Br,indexCodeNum:Ir,dateFormat:Fr,conditions:Nr}=vr;let Rr=$n(kr);if(u.sort){const{field:jr,order:Ur}=u.sort;let Gr=ur.find(Wr=>Wr.label===jr);Gr||yr!==jr||(Gr=vr),Gr&&(Rr={columnName:Gr.columnName,label:u.sort.field,order:Ur.toUpperCase(),type:"NORMAL"})}const Or={label:yr,columnName:xr,location:Cr,show:Er,sort:Rr,calcType:"COLUMN",hrpIndexCode:_r,hrpIndexCodeNum:Ir,conditions:_n(Nr),typeGuid:Br};Fr&&(Or.dateFormat=Fr),xr!=="the_date"||Or.dateFormat||(Or.dateFormat="YYYY-MM"),sr.push(Or)});let fr=[],pr=[];if(Array.isArray(Un)&&Un.length>0?pr=Un:Array.isArray(er)&&er.length>0&&(pr=er),pr==null?void 0:pr.length){const vr=pr.length;for(let yr=0;yr<vr;yr++){const xr=pr[yr]||{},{label:Cr="",name:Er="",show:_r=!1,sort:kr,customGroup:Br,conditions:Ir,truncations:Fr,typeGuid:Nr="",dateFormat:Rr}=xr;let Or=$n(kr);if(u.sort){const{field:Gr,order:Wr}=u.sort;let Kr=ur.find(ei=>ei.label===Gr);Kr||xr.label!==Gr||(Kr=xr),Kr&&(Or={columnName:Kr.columnName,label:u.sort.field,order:Wr.toUpperCase(),type:"NORMAL"})}const jr={label:Cr.trim(),columnName:Er,show:_r,sort:Or,customGroup:Br,conditions:_n(Ir),typeGuid:Nr};Rr&&(jr.dateFormat=Rr),Er!=="the_date"||jr.dateFormat||(jr.dateFormat="YYYY-MM");const Ur={};if(Array.isArray(Fr)&&Fr.length>0){const Gr=Fr.length;for(let Wr=0;Wr<Gr;Wr++){const Kr=Fr[Wr]||{},{rule:ei="",num:ni=0,name:ri=""}=Kr;ei&&ni&&(Ur.num=ni,Ur.rule=ei,ri&&(Ur.otherGroupName=ri))}}!((g=Object.keys(Ur))===null||g===void 0)&&g.length&&(jr.truncation=Ur),fr.push(jr)}}let mr,gr,hr=[];if(u!=null&&u.pivotTableCal){let vr=[];const{calc:yr=[],filter:xr=[],truncations:Cr=[],sorts:Er=[],aggregateMethod:_r=[],rowDimensionKeys:kr=[],colDimensionKeys:Br=[]}=u.pivotTableCal;if(ur.push(...yr),xr==null?void 0:xr.length)for(const Ir of xr){const{type:Fr}=Ir,Nr=e(Ir,["type"]);Fr==="indicators"?vr=ur:Fr==="dimension"&&(vr=sr);const Rr=vr.find(Or=>Or.columnName===Ir.fieldName);Rr&&(Rr.conditions||(Rr.conditions=[]),Rr.conditions.push(Nr))}if(Cr!=null&&Cr.length)for(const Ir of Cr){const Fr=sr.find(Nr=>Nr.columnName===Ir.key);Fr&&(Fr.truncation={num:Ir.num,rule:Ir.rule})}if(Er!=null&&Er.length)for(const Ir of Er){const{fieldType:Fr,columnData:Nr}=Ir,Rr=e(Ir,["fieldType","columnData"]);Fr==="indicators"?(vr=ur,mr=Nr):Fr==="dimension"&&(vr=sr);const Or=vr.find(jr=>jr.label===Rr.label);Or&&(Or.sort=Object.assign(Object.assign({},Rr),{columnName:Or.columnName}))}if(!((y=Object.keys(_r))===null||y===void 0)&&y.length)for(const Ir in _r){const Fr=sr.find(Nr=>Nr.label===Ir);Fr&&(!((x=_r[Ir])===null||x===void 0)&&x.length)&&(Fr.aggregateMethod=_r[Ir])}fr=[],hr=[];for(const Ir of sr)kr.includes(Ir.columnName)?fr.push(Ir):Br.includes(Ir.columnName)&&hr.push(Ir)}if(yn(re,["text","proportion","counter"])?zn="zb":yn(re,["valueline"])&&(zn="valueline"),vn||re==="card"){if(fr.length===0||ur.length===0)return;zn="grouptable"}else if(Vn==="1"&&sr.length===0||Vn==="2"&&ur.length===0||!(Vn!=="3"||(lr||w==="EDV_DATA_SET")&&Hn.labelField&&Hn.valueField)||Vn==="3"&&re==="ecanDataSelect"&&ur.length===0)return;if(er!=null&&er.length&&(Vn="1",zn="grouptable"),!yn(re,["scatter","valueline"])&&((Bn=Object.keys(Hn))===null||Bn===void 0?void 0:Bn.length)){const vr=bn(Xn).find(xr=>xr.conditionKey==="parentCode"),yr={};if(vr){const xr=An(vr.id)||{};if(!(xr!=null&&xr.itemCodes))return;yr.parentItemCodes=xr.itemCodes}re==="ecanDataSelect"&&(yr.indicatorList=ur.filter(xr=>xr.show)),w==="EDV_DATA_SET"&&(yr.edvDataSetId=nr),gr=Object.assign({url:"/diagram/formData",source:w,dataViewId:J,plugin:"4",layer:Vn,chartType:"normalSelect",rangeIndexTypeGuid:lr,type:re==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:Hn.labelField,valueField:Hn.valueField,sqlConditions:or,idxLibMode:"WITH_DATE_DIM_TABLE",dataSourceId:Gn,keyName:c.keyName},yr)}else{let vr={};vr=yn(re,["scatter","valueline"])?{classifications:Kn}:{classification:Pn},gr=Object.assign({url:"/diagram",source:w,dataViewId:J,plugin:Fn?"5":gn,layer:Vn,chartType:Fn?"pivot-table":zn,series:ar,indicatorList:ur,queryColumns:vn?[]:sr,pageFlag:!0,edvDataSetId:nr||"",sqlConditions:or.map(yr=>{const{fieldValue:xr}=yr,Cr={};return xr&&Array.isArray(xr)&&(Cr.fieldValue=JSON.stringify(xr)),Object.assign(Object.assign({},yr),Cr)}),idxLibMode:Zn,dataSourceId:Gn,preview:qn,rowHeaders:fr,keyName:c.keyName,columnData:mr,columnHeaders:hr},vr)}return gr},Dn=(c=[],u,f=!1)=>{let{name:h="name",types:d=[]}=u||{};h=(h==null?void 0:h.trim())||h;const v=new Set,p=new Map,m=c.length,g=d.length;if(m!==1||f)for(let Bn=0;Bn<m;Bn++){const b=c[Bn],re=b[h];v.add(re);for(let _=0;_<g;_++){const vn=d[_],{label:Fn,value:Pn}=vn,w=Object.assign(Object.assign({},b),{value:b[Pn]});if(p.has(Fn)){const J=p.get(Fn);J.push(w),p.set(Fn,J)}else p.set(Fn,[w])}}else{const Bn=[];for(let re=0;re<g;re++){const _=d[re],{label:vn,value:Fn}=_,Pn=Object.assign(Object.assign({},c[0]),{value:c[0][Fn]});v.add(vn),Bn.push(Pn)}const b=c[0][h]||"";p.set(b,Bn)}const y=Array.from(v),x=[];for(const[Bn,b]of p)x.push({name:Bn,data:b});return{dimensions:y,dataset:x}},En=(c,u)=>{let{name:f="name",value:h="value",type:d="type"}=u||{};f=f==null?void 0:f.trim(),h=h==null?void 0:h.trim(),d=d==null?void 0:d.trim();const v=new Map,p=c.length;for(let y=0;y<p;y++){const x=c[y],Bn=x[f]||"",b=x[h]||"",re=x[d]||"";if(v.has(re)){const _=v.get(re);_.push(Object.assign({name:Bn,value:b},x)),v.set(re,_)}else v.set(re,[Object.assign({name:Bn,value:b},x)])}const m=[],g=[];for(const[y,x]of v)if(g.push({name:y,data:x}),x==null?void 0:x.length)if(m.length)for(const Bn of x)m.includes(Bn.name)||m.push(Bn.name);else m.push(...x.map(Bn=>Bn.name));return{dimensions:m,dataset:g}},In=(c,u)=>{var f;if(c==null)return u;const h=c.match(/\{.*\}/g);if(h==null||h.length===0)return u;const d=h.length;for(let v=0;v<d;v++){const p=h[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"}),h=lodashEs.without(styleList,...u);return vue.computed(()=>{var p,m;const d=lodashEs.pick(c,h),v=["width","height","top","left"];for(const g of v)mn(d,g)&&(["width","height"].includes(g)&&((p=c[g])==null?void 0:p.suffix)==="%"&&vue.unref(f)==="design"?d[g]="100%":(m=c[g])!=null&&m.suffix&&(d[g]=(c[g].value||0)+c[g].suffix));return d})},useOnEvent=(c,u)=>{vue.watch(()=>c.id,f=>{const h=vue.inject(EVENT_BUS,{onEvent:(d,v)=>{}});f!=null&&f!==""&&h.onEvent(f,u)},{immediate:!0})},useEmitEvent=c=>{const u=c.events,f=c.id,h=vue.inject(EVENT_BUS,{emitEvent:(v,p,m)=>{}}),{touchEventId:d}=vue.inject(GLOBAL_CONFIG,{touchEventId:vue.ref("")});return(v,p=()=>{},m)=>function(){p.call(this,...arguments);const{emitEvent:g}=h;u.forEach(y=>{if(v===y.on)try{d.value=f,m?g(y.target,y.emit,m):g(y.target,y.emit)}catch(x){console.error(x)}})}};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}function getAugmentedNamespace(c){if(c.__esModule)return c;var u=c.default;if(typeof u=="function"){var f=function h(){return this instanceof h?Reflect.construct(u,arguments,this.constructor):u.apply(this,arguments)};f.prototype=u.prototype}else f={};return Object.defineProperty(f,"__esModule",{value:!0}),Object.keys(c).forEach(function(h){var d=Object.getOwnPropertyDescriptor(c,h);Object.defineProperty(f,h,d.get?d:{enumerable:!0,get:function(){return c[h]}})}),f}var cryptoJs={exports:{}};function commonjsRequire(c){throw new Error('Could not dynamically require "'+c+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(c,u){(function(f,h){c.exports=h()})(commonjsGlobal,function(){var f=f||function(h,d){var 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 w(){}return function(J){var gn;return w.prototype=J,gn=new w,w.prototype=null,gn}}(),g={},y=g.lib={},x=y.Base=function(){return{extend:function(w){var J=m(this);return w&&J.mixIn(w),(!J.hasOwnProperty("init")||this.init===J.init)&&(J.init=function(){J.$super.init.apply(this,arguments)}),J.init.prototype=J,J.$super=this,J},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var J in w)w.hasOwnProperty(J)&&(this[J]=w[J]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),Bn=y.WordArray=x.extend({init:function(w,J){w=this.words=w||[],J!=d?this.sigBytes=J:this.sigBytes=w.length*4},toString:function(w){return(w||re).stringify(this)},concat:function(w){var J=this.words,gn=w.words,Vn=this.sigBytes,zn=w.sigBytes;if(this.clamp(),Vn%4)for(var Wn=0;Wn<zn;Wn++){var Un=gn[Wn>>>2]>>>24-Wn%4*8&255;J[Vn+Wn>>>2]|=Un<<24-(Vn+Wn)%4*8}else for(var er=0;er<zn;er+=4)J[Vn+er>>>2]=gn[er>>>2];return this.sigBytes+=zn,this},clamp:function(){var w=this.words,J=this.sigBytes;w[J>>>2]&=4294967295<<32-J%4*8,w.length=h.ceil(J/4)},clone:function(){var w=x.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var J=[],gn=0;gn<w;gn+=4)J.push(p());return new Bn.init(J,w)}}),b=g.enc={},re=b.Hex={stringify:function(w){for(var J=w.words,gn=w.sigBytes,Vn=[],zn=0;zn<gn;zn++){var Wn=J[zn>>>2]>>>24-zn%4*8&255;Vn.push((Wn>>>4).toString(16)),Vn.push((Wn&15).toString(16))}return Vn.join("")},parse:function(w){for(var J=w.length,gn=[],Vn=0;Vn<J;Vn+=2)gn[Vn>>>3]|=parseInt(w.substr(Vn,2),16)<<24-Vn%8*4;return new Bn.init(gn,J/2)}},_=b.Latin1={stringify:function(w){for(var J=w.words,gn=w.sigBytes,Vn=[],zn=0;zn<gn;zn++){var Wn=J[zn>>>2]>>>24-zn%4*8&255;Vn.push(String.fromCharCode(Wn))}return Vn.join("")},parse:function(w){for(var J=w.length,gn=[],Vn=0;Vn<J;Vn++)gn[Vn>>>2]|=(w.charCodeAt(Vn)&255)<<24-Vn%4*8;return new Bn.init(gn,J)}},vn=b.Utf8={stringify:function(w){try{return decodeURIComponent(escape(_.stringify(w)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(w){return _.parse(unescape(encodeURIComponent(w)))}},Fn=y.BufferedBlockAlgorithm=x.extend({reset:function(){this._data=new Bn.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=vn.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var J,gn=this._data,Vn=gn.words,zn=gn.sigBytes,Wn=this.blockSize,Un=Wn*4,er=zn/Un;w?er=h.ceil(er):er=h.max((er|0)-this._minBufferSize,0);var Jn=er*Wn,tr=h.min(Jn*4,zn);if(Jn){for(var Qn=0;Qn<Jn;Qn+=Wn)this._doProcessBlock(Vn,Qn);J=Vn.splice(0,Jn),gn.sigBytes-=tr}return new Bn.init(J,tr)},clone:function(){var w=x.clone.call(this);return w._data=this._data.clone(),w},_minBufferSize:0});y.Hasher=Fn.extend({cfg:x.extend(),init:function(w){this.cfg=this.cfg.extend(w),this.reset()},reset:function(){Fn.reset.call(this),this._doReset()},update:function(w){return this._append(w),this._process(),this},finalize:function(w){w&&this._append(w);var J=this._doFinalize();return J},blockSize:16,_createHelper:function(w){return function(J,gn){return new w.init(gn).finalize(J)}},_createHmacHelper:function(w){return function(J,gn){return new Pn.HMAC.init(w,gn).finalize(J)}}});var Pn=g.algo={};return g}(Math);return f})}(core)),core.exports}var x64Core={exports:{}},hasRequiredX64Core;function requireX64Core(){return hasRequiredX64Core||(hasRequiredX64Core=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(h){var d=f,v=d.lib,p=v.Base,m=v.WordArray,g=d.x64={};g.Word=p.extend({init:function(y,x){this.high=y,this.low=x}}),g.WordArray=p.extend({init:function(y,x){y=this.words=y||[],x!=h?this.sigBytes=x:this.sigBytes=y.length*8},toX32:function(){for(var y=this.words,x=y.length,Bn=[],b=0;b<x;b++){var re=y[b];Bn.push(re.high),Bn.push(re.low)}return m.create(Bn,this.sigBytes)},clone:function(){for(var y=p.clone.call(this),x=y.words=this.words.slice(0),Bn=x.length,b=0;b<Bn;b++)x[b]=x[b].clone();return y}})}(),f})}(x64Core)),x64Core.exports}var libTypedarrays={exports:{}},hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(){if(typeof ArrayBuffer=="function"){var h=f,d=h.lib,v=d.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,x=[],Bn=0;Bn<y;Bn++)x[Bn>>>2]|=g[Bn]<<24-Bn%4*8;p.call(this,x,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,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.WordArray,p=h.enc;p.Utf16=p.Utf16BE={stringify:function(g){for(var y=g.words,x=g.sigBytes,Bn=[],b=0;b<x;b+=2){var re=y[b>>>2]>>>16-b%4*8&65535;Bn.push(String.fromCharCode(re))}return Bn.join("")},parse:function(g){for(var y=g.length,x=[],Bn=0;Bn<y;Bn++)x[Bn>>>1]|=g.charCodeAt(Bn)<<16-Bn%2*16;return v.create(x,y*2)}},p.Utf16LE={stringify:function(g){for(var y=g.words,x=g.sigBytes,Bn=[],b=0;b<x;b+=2){var re=m(y[b>>>2]>>>16-b%4*8&65535);Bn.push(String.fromCharCode(re))}return Bn.join("")},parse:function(g){for(var y=g.length,x=[],Bn=0;Bn<y;Bn++)x[Bn>>>1]|=m(g.charCodeAt(Bn)<<16-Bn%2*16);return v.create(x,y*2)}};function m(g){return g<<8&4278255360|g>>>8&16711935}}(),f.enc.Utf16})}(encUtf16)),encUtf16.exports}var encBase64={exports:{}},hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.WordArray,p=h.enc;p.Base64={stringify:function(g){var y=g.words,x=g.sigBytes,Bn=this._map;g.clamp();for(var b=[],re=0;re<x;re+=3)for(var _=y[re>>>2]>>>24-re%4*8&255,vn=y[re+1>>>2]>>>24-(re+1)%4*8&255,Fn=y[re+2>>>2]>>>24-(re+2)%4*8&255,Pn=_<<16|vn<<8|Fn,w=0;w<4&&re+w*.75<x;w++)b.push(Bn.charAt(Pn>>>6*(3-w)&63));var J=Bn.charAt(64);if(J)for(;b.length%4;)b.push(J);return b.join("")},parse:function(g){var y=g.length,x=this._map,Bn=this._reverseMap;if(!Bn){Bn=this._reverseMap=[];for(var b=0;b<x.length;b++)Bn[x.charCodeAt(b)]=b}var re=x.charAt(64);if(re){var _=g.indexOf(re);_!==-1&&(y=_)}return m(g,y,Bn)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function m(g,y,x){for(var Bn=[],b=0,re=0;re<y;re++)if(re%4){var _=x[g.charCodeAt(re-1)]<<re%4*2,vn=x[g.charCodeAt(re)]>>>6-re%4*2,Fn=_|vn;Bn[b>>>2]|=Fn<<24-b%4*8,b++}return v.create(Bn,b)}}(),f.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.WordArray,p=h.enc;p.Base64url={stringify:function(g,y=!0){var x=g.words,Bn=g.sigBytes,b=y?this._safe_map:this._map;g.clamp();for(var re=[],_=0;_<Bn;_+=3)for(var vn=x[_>>>2]>>>24-_%4*8&255,Fn=x[_+1>>>2]>>>24-(_+1)%4*8&255,Pn=x[_+2>>>2]>>>24-(_+2)%4*8&255,w=vn<<16|Fn<<8|Pn,J=0;J<4&&_+J*.75<Bn;J++)re.push(b.charAt(w>>>6*(3-J)&63));var gn=b.charAt(64);if(gn)for(;re.length%4;)re.push(gn);return re.join("")},parse:function(g,y=!0){var x=g.length,Bn=y?this._safe_map:this._map,b=this._reverseMap;if(!b){b=this._reverseMap=[];for(var re=0;re<Bn.length;re++)b[Bn.charCodeAt(re)]=re}var _=Bn.charAt(64);if(_){var vn=g.indexOf(_);vn!==-1&&(x=vn)}return m(g,x,b)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function m(g,y,x){for(var Bn=[],b=0,re=0;re<y;re++)if(re%4){var _=x[g.charCodeAt(re-1)]<<re%4*2,vn=x[g.charCodeAt(re)]>>>6-re%4*2,Fn=_|vn;Bn[b>>>2]|=Fn<<24-b%4*8,b++}return v.create(Bn,b)}}(),f.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(h){var d=f,v=d.lib,p=v.WordArray,m=v.Hasher,g=d.algo,y=[];(function(){for(var vn=0;vn<64;vn++)y[vn]=h.abs(h.sin(vn+1))*4294967296|0})();var x=g.MD5=m.extend({_doReset:function(){this._hash=new p.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(vn,Fn){for(var Pn=0;Pn<16;Pn++){var w=Fn+Pn,J=vn[w];vn[w]=(J<<8|J>>>24)&16711935|(J<<24|J>>>8)&4278255360}var gn=this._hash.words,Vn=vn[Fn+0],zn=vn[Fn+1],Wn=vn[Fn+2],Un=vn[Fn+3],er=vn[Fn+4],Jn=vn[Fn+5],tr=vn[Fn+6],Qn=vn[Fn+7],ir=vn[Fn+8],cr=vn[Fn+9],Xn=vn[Fn+10],Hn=vn[Fn+11],Yn=vn[Fn+12],Rn=vn[Fn+13],Gn=vn[Fn+14],Zn=vn[Fn+15],qn=gn[0],nr=gn[1],or=gn[2],Kn=gn[3];qn=Bn(qn,nr,or,Kn,Vn,7,y[0]),Kn=Bn(Kn,qn,nr,or,zn,12,y[1]),or=Bn(or,Kn,qn,nr,Wn,17,y[2]),nr=Bn(nr,or,Kn,qn,Un,22,y[3]),qn=Bn(qn,nr,or,Kn,er,7,y[4]),Kn=Bn(Kn,qn,nr,or,Jn,12,y[5]),or=Bn(or,Kn,qn,nr,tr,17,y[6]),nr=Bn(nr,or,Kn,qn,Qn,22,y[7]),qn=Bn(qn,nr,or,Kn,ir,7,y[8]),Kn=Bn(Kn,qn,nr,or,cr,12,y[9]),or=Bn(or,Kn,qn,nr,Xn,17,y[10]),nr=Bn(nr,or,Kn,qn,Hn,22,y[11]),qn=Bn(qn,nr,or,Kn,Yn,7,y[12]),Kn=Bn(Kn,qn,nr,or,Rn,12,y[13]),or=Bn(or,Kn,qn,nr,Gn,17,y[14]),nr=Bn(nr,or,Kn,qn,Zn,22,y[15]),qn=b(qn,nr,or,Kn,zn,5,y[16]),Kn=b(Kn,qn,nr,or,tr,9,y[17]),or=b(or,Kn,qn,nr,Hn,14,y[18]),nr=b(nr,or,Kn,qn,Vn,20,y[19]),qn=b(qn,nr,or,Kn,Jn,5,y[20]),Kn=b(Kn,qn,nr,or,Xn,9,y[21]),or=b(or,Kn,qn,nr,Zn,14,y[22]),nr=b(nr,or,Kn,qn,er,20,y[23]),qn=b(qn,nr,or,Kn,cr,5,y[24]),Kn=b(Kn,qn,nr,or,Gn,9,y[25]),or=b(or,Kn,qn,nr,Un,14,y[26]),nr=b(nr,or,Kn,qn,ir,20,y[27]),qn=b(qn,nr,or,Kn,Rn,5,y[28]),Kn=b(Kn,qn,nr,or,Wn,9,y[29]),or=b(or,Kn,qn,nr,Qn,14,y[30]),nr=b(nr,or,Kn,qn,Yn,20,y[31]),qn=re(qn,nr,or,Kn,Jn,4,y[32]),Kn=re(Kn,qn,nr,or,ir,11,y[33]),or=re(or,Kn,qn,nr,Hn,16,y[34]),nr=re(nr,or,Kn,qn,Gn,23,y[35]),qn=re(qn,nr,or,Kn,zn,4,y[36]),Kn=re(Kn,qn,nr,or,er,11,y[37]),or=re(or,Kn,qn,nr,Qn,16,y[38]),nr=re(nr,or,Kn,qn,Xn,23,y[39]),qn=re(qn,nr,or,Kn,Rn,4,y[40]),Kn=re(Kn,qn,nr,or,Vn,11,y[41]),or=re(or,Kn,qn,nr,Un,16,y[42]),nr=re(nr,or,Kn,qn,tr,23,y[43]),qn=re(qn,nr,or,Kn,cr,4,y[44]),Kn=re(Kn,qn,nr,or,Yn,11,y[45]),or=re(or,Kn,qn,nr,Zn,16,y[46]),nr=re(nr,or,Kn,qn,Wn,23,y[47]),qn=_(qn,nr,or,Kn,Vn,6,y[48]),Kn=_(Kn,qn,nr,or,Qn,10,y[49]),or=_(or,Kn,qn,nr,Gn,15,y[50]),nr=_(nr,or,Kn,qn,Jn,21,y[51]),qn=_(qn,nr,or,Kn,Yn,6,y[52]),Kn=_(Kn,qn,nr,or,Un,10,y[53]),or=_(or,Kn,qn,nr,Xn,15,y[54]),nr=_(nr,or,Kn,qn,zn,21,y[55]),qn=_(qn,nr,or,Kn,ir,6,y[56]),Kn=_(Kn,qn,nr,or,Zn,10,y[57]),or=_(or,Kn,qn,nr,tr,15,y[58]),nr=_(nr,or,Kn,qn,Rn,21,y[59]),qn=_(qn,nr,or,Kn,er,6,y[60]),Kn=_(Kn,qn,nr,or,Hn,10,y[61]),or=_(or,Kn,qn,nr,Wn,15,y[62]),nr=_(nr,or,Kn,qn,cr,21,y[63]),gn[0]=gn[0]+qn|0,gn[1]=gn[1]+nr|0,gn[2]=gn[2]+or|0,gn[3]=gn[3]+Kn|0},_doFinalize:function(){var vn=this._data,Fn=vn.words,Pn=this._nDataBytes*8,w=vn.sigBytes*8;Fn[w>>>5]|=128<<24-w%32;var J=h.floor(Pn/4294967296),gn=Pn;Fn[(w+64>>>9<<4)+15]=(J<<8|J>>>24)&16711935|(J<<24|J>>>8)&4278255360,Fn[(w+64>>>9<<4)+14]=(gn<<8|gn>>>24)&16711935|(gn<<24|gn>>>8)&4278255360,vn.sigBytes=(Fn.length+1)*4,this._process();for(var Vn=this._hash,zn=Vn.words,Wn=0;Wn<4;Wn++){var Un=zn[Wn];zn[Wn]=(Un<<8|Un>>>24)&16711935|(Un<<24|Un>>>8)&4278255360}return Vn},clone:function(){var vn=m.clone.call(this);return vn._hash=this._hash.clone(),vn}});function Bn(vn,Fn,Pn,w,J,gn,Vn){var zn=vn+(Fn&Pn|~Fn&w)+J+Vn;return(zn<<gn|zn>>>32-gn)+Fn}function b(vn,Fn,Pn,w,J,gn,Vn){var zn=vn+(Fn&w|Pn&~w)+J+Vn;return(zn<<gn|zn>>>32-gn)+Fn}function re(vn,Fn,Pn,w,J,gn,Vn){var zn=vn+(Fn^Pn^w)+J+Vn;return(zn<<gn|zn>>>32-gn)+Fn}function _(vn,Fn,Pn,w,J,gn,Vn){var zn=vn+(Pn^(Fn|~w))+J+Vn;return(zn<<gn|zn>>>32-gn)+Fn}d.MD5=m._createHelper(x),d.HmacMD5=m._createHmacHelper(x)}(Math),f.MD5})}(md5)),md5.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.WordArray,p=d.Hasher,m=h.algo,g=[],y=m.SHA1=p.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(x,Bn){for(var b=this._hash.words,re=b[0],_=b[1],vn=b[2],Fn=b[3],Pn=b[4],w=0;w<80;w++){if(w<16)g[w]=x[Bn+w]|0;else{var J=g[w-3]^g[w-8]^g[w-14]^g[w-16];g[w]=J<<1|J>>>31}var gn=(re<<5|re>>>27)+Pn+g[w];w<20?gn+=(_&vn|~_&Fn)+1518500249:w<40?gn+=(_^vn^Fn)+1859775393:w<60?gn+=(_&vn|_&Fn|vn&Fn)-1894007588:gn+=(_^vn^Fn)-899497514,Pn=Fn,Fn=vn,vn=_<<30|_>>>2,_=re,re=gn}b[0]=b[0]+re|0,b[1]=b[1]+_|0,b[2]=b[2]+vn|0,b[3]=b[3]+Fn|0,b[4]=b[4]+Pn|0},_doFinalize:function(){var x=this._data,Bn=x.words,b=this._nDataBytes*8,re=x.sigBytes*8;return Bn[re>>>5]|=128<<24-re%32,Bn[(re+64>>>9<<4)+14]=Math.floor(b/4294967296),Bn[(re+64>>>9<<4)+15]=b,x.sigBytes=Bn.length*4,this._process(),this._hash},clone:function(){var x=p.clone.call(this);return x._hash=this._hash.clone(),x}});h.SHA1=p._createHelper(y),h.HmacSHA1=p._createHmacHelper(y)}(),f.SHA1})}(sha1)),sha1.exports}var sha256={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){return function(h){var d=f,v=d.lib,p=v.WordArray,m=v.Hasher,g=d.algo,y=[],x=[];(function(){function re(Pn){for(var w=h.sqrt(Pn),J=2;J<=w;J++)if(!(Pn%J))return!1;return!0}function _(Pn){return(Pn-(Pn|0))*4294967296|0}for(var vn=2,Fn=0;Fn<64;)re(vn)&&(Fn<8&&(y[Fn]=_(h.pow(vn,1/2))),x[Fn]=_(h.pow(vn,1/3)),Fn++),vn++})();var Bn=[],b=g.SHA256=m.extend({_doReset:function(){this._hash=new p.init(y.slice(0))},_doProcessBlock:function(re,_){for(var vn=this._hash.words,Fn=vn[0],Pn=vn[1],w=vn[2],J=vn[3],gn=vn[4],Vn=vn[5],zn=vn[6],Wn=vn[7],Un=0;Un<64;Un++){if(Un<16)Bn[Un]=re[_+Un]|0;else{var er=Bn[Un-15],Jn=(er<<25|er>>>7)^(er<<14|er>>>18)^er>>>3,tr=Bn[Un-2],Qn=(tr<<15|tr>>>17)^(tr<<13|tr>>>19)^tr>>>10;Bn[Un]=Jn+Bn[Un-7]+Qn+Bn[Un-16]}var ir=gn&Vn^~gn&zn,cr=Fn&Pn^Fn&w^Pn&w,Xn=(Fn<<30|Fn>>>2)^(Fn<<19|Fn>>>13)^(Fn<<10|Fn>>>22),Hn=(gn<<26|gn>>>6)^(gn<<21|gn>>>11)^(gn<<7|gn>>>25),Yn=Wn+Hn+ir+x[Un]+Bn[Un],Rn=Xn+cr;Wn=zn,zn=Vn,Vn=gn,gn=J+Yn|0,J=w,w=Pn,Pn=Fn,Fn=Yn+Rn|0}vn[0]=vn[0]+Fn|0,vn[1]=vn[1]+Pn|0,vn[2]=vn[2]+w|0,vn[3]=vn[3]+J|0,vn[4]=vn[4]+gn|0,vn[5]=vn[5]+Vn|0,vn[6]=vn[6]+zn|0,vn[7]=vn[7]+Wn|0},_doFinalize:function(){var re=this._data,_=re.words,vn=this._nDataBytes*8,Fn=re.sigBytes*8;return _[Fn>>>5]|=128<<24-Fn%32,_[(Fn+64>>>9<<4)+14]=h.floor(vn/4294967296),_[(Fn+64>>>9<<4)+15]=vn,re.sigBytes=_.length*4,this._process(),this._hash},clone:function(){var re=m.clone.call(this);return re._hash=this._hash.clone(),re}});d.SHA256=m._createHelper(b),d.HmacSHA256=m._createHmacHelper(b)}(Math),f.SHA256})}(sha256)),sha256.exports}var sha224={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireSha256())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.WordArray,p=h.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}});h.SHA224=m._createHelper(g),h.HmacSHA224=m._createHmacHelper(g)}(),f.SHA224})}(sha224)),sha224.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireX64Core())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.Hasher,p=h.x64,m=p.Word,g=p.WordArray,y=h.algo;function x(){return m.create.apply(m,arguments)}var Bn=[x(1116352408,3609767458),x(1899447441,602891725),x(3049323471,3964484399),x(3921009573,2173295548),x(961987163,4081628472),x(1508970993,3053834265),x(2453635748,2937671579),x(2870763221,3664609560),x(3624381080,2734883394),x(310598401,1164996542),x(607225278,1323610764),x(1426881987,3590304994),x(1925078388,4068182383),x(2162078206,991336113),x(2614888103,633803317),x(3248222580,3479774868),x(3835390401,2666613458),x(4022224774,944711139),x(264347078,2341262773),x(604807628,2007800933),x(770255983,1495990901),x(1249150122,1856431235),x(1555081692,3175218132),x(1996064986,2198950837),x(2554220882,3999719339),x(2821834349,766784016),x(2952996808,2566594879),x(3210313671,3203337956),x(3336571891,1034457026),x(3584528711,2466948901),x(113926993,3758326383),x(338241895,168717936),x(666307205,1188179964),x(773529912,1546045734),x(1294757372,1522805485),x(1396182291,2643833823),x(1695183700,2343527390),x(1986661051,1014477480),x(2177026350,1206759142),x(2456956037,344077627),x(2730485921,1290863460),x(2820302411,3158454273),x(3259730800,3505952657),x(3345764771,106217008),x(3516065817,3606008344),x(3600352804,1432725776),x(4094571909,1467031594),x(275423344,851169720),x(430227734,3100823752),x(506948616,1363258195),x(659060556,3750685593),x(883997877,3785050280),x(958139571,3318307427),x(1322822218,3812723403),x(1537002063,2003034995),x(1747873779,3602036899),x(1955562222,1575990012),x(2024104815,1125592928),x(2227730452,2716904306),x(2361852424,442776044),x(2428436474,593698344),x(2756734187,3733110249),x(3204031479,2999351573),x(3329325298,3815920427),x(3391569614,3928383900),x(3515267271,566280711),x(3940187606,3454069534),x(4118630271,4000239992),x(116418474,1914138554),x(174292421,2731055270),x(289380356,3203993006),x(460393269,320620315),x(685471733,587496836),x(852142971,1086792851),x(1017036298,365543100),x(1126000580,2618297676),x(1288033470,3409855158),x(1501505948,4234509866),x(1607167915,987167468),x(1816402316,1246189591)],b=[];(function(){for(var _=0;_<80;_++)b[_]=x()})();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(_,vn){for(var Fn=this._hash.words,Pn=Fn[0],w=Fn[1],J=Fn[2],gn=Fn[3],Vn=Fn[4],zn=Fn[5],Wn=Fn[6],Un=Fn[7],er=Pn.high,Jn=Pn.low,tr=w.high,Qn=w.low,ir=J.high,cr=J.low,Xn=gn.high,Hn=gn.low,Yn=Vn.high,Rn=Vn.low,Gn=zn.high,Zn=zn.low,qn=Wn.high,nr=Wn.low,or=Un.high,Kn=Un.low,ar=er,lr=Jn,ur=tr,dr=Qn,sr=ir,fr=cr,pr=Xn,mr=Hn,gr=Yn,hr=Rn,vr=Gn,yr=Zn,xr=qn,Cr=nr,Er=or,_r=Kn,kr=0;kr<80;kr++){var Br,Ir,Fr=b[kr];if(kr<16)Ir=Fr.high=_[vn+kr*2]|0,Br=Fr.low=_[vn+kr*2+1]|0;else{var Nr=b[kr-15],Rr=Nr.high,Or=Nr.low,jr=(Rr>>>1|Or<<31)^(Rr>>>8|Or<<24)^Rr>>>7,Ur=(Or>>>1|Rr<<31)^(Or>>>8|Rr<<24)^(Or>>>7|Rr<<25),Gr=b[kr-2],Wr=Gr.high,Kr=Gr.low,ei=(Wr>>>19|Kr<<13)^(Wr<<3|Kr>>>29)^Wr>>>6,ni=(Kr>>>19|Wr<<13)^(Kr<<3|Wr>>>29)^(Kr>>>6|Wr<<26),ri=b[kr-7],mi=ri.high,gi=ri.low,li=b[kr-16],ci=li.high,ui=li.low;Br=Ur+gi,Ir=jr+mi+(Br>>>0<Ur>>>0?1:0),Br=Br+ni,Ir=Ir+ei+(Br>>>0<ni>>>0?1:0),Br=Br+ui,Ir=Ir+ci+(Br>>>0<ui>>>0?1:0),Fr.high=Ir,Fr.low=Br}var yi=gr&vr^~gr&xr,fi=hr&yr^~hr&Cr,bi=ar&ur^ar&sr^ur&sr,xi=lr&dr^lr&fr^dr&fr,si=(ar>>>28|lr<<4)^(ar<<30|lr>>>2)^(ar<<25|lr>>>7),hi=(lr>>>28|ar<<4)^(lr<<30|ar>>>2)^(lr<<25|ar>>>7),Si=(gr>>>14|hr<<18)^(gr>>>18|hr<<14)^(gr<<23|hr>>>9),di=(hr>>>14|gr<<18)^(hr>>>18|gr<<14)^(hr<<23|gr>>>9),vi=Bn[kr],Ci=vi.high,pi=vi.low,Jr=_r+di,Xr=Er+Si+(Jr>>>0<_r>>>0?1:0),Jr=Jr+fi,Xr=Xr+yi+(Jr>>>0<fi>>>0?1:0),Jr=Jr+pi,Xr=Xr+Ci+(Jr>>>0<pi>>>0?1:0),Jr=Jr+Br,Xr=Xr+Ir+(Jr>>>0<Br>>>0?1:0),wi=hi+xi,br=si+bi+(wi>>>0<hi>>>0?1:0);Er=xr,_r=Cr,xr=vr,Cr=yr,vr=gr,yr=hr,hr=mr+Jr|0,gr=pr+Xr+(hr>>>0<mr>>>0?1:0)|0,pr=sr,mr=fr,sr=ur,fr=dr,ur=ar,dr=lr,lr=Jr+wi|0,ar=Xr+br+(lr>>>0<Jr>>>0?1:0)|0}Jn=Pn.low=Jn+lr,Pn.high=er+ar+(Jn>>>0<lr>>>0?1:0),Qn=w.low=Qn+dr,w.high=tr+ur+(Qn>>>0<dr>>>0?1:0),cr=J.low=cr+fr,J.high=ir+sr+(cr>>>0<fr>>>0?1:0),Hn=gn.low=Hn+mr,gn.high=Xn+pr+(Hn>>>0<mr>>>0?1:0),Rn=Vn.low=Rn+hr,Vn.high=Yn+gr+(Rn>>>0<hr>>>0?1:0),Zn=zn.low=Zn+yr,zn.high=Gn+vr+(Zn>>>0<yr>>>0?1:0),nr=Wn.low=nr+Cr,Wn.high=qn+xr+(nr>>>0<Cr>>>0?1:0),Kn=Un.low=Kn+_r,Un.high=or+Er+(Kn>>>0<_r>>>0?1:0)},_doFinalize:function(){var _=this._data,vn=_.words,Fn=this._nDataBytes*8,Pn=_.sigBytes*8;vn[Pn>>>5]|=128<<24-Pn%32,vn[(Pn+128>>>10<<5)+30]=Math.floor(Fn/4294967296),vn[(Pn+128>>>10<<5)+31]=Fn,_.sigBytes=vn.length*4,this._process();var w=this._hash.toX32();return w},clone:function(){var _=v.clone.call(this);return _._hash=this._hash.clone(),_},blockSize:1024/32});h.SHA512=v._createHelper(re),h.HmacSHA512=v._createHmacHelper(re)}(),f.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(f){return function(){var h=f,d=h.x64,v=d.Word,p=d.WordArray,m=h.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 x=g._doFinalize.call(this);return x.sigBytes-=16,x}});h.SHA384=g._createHelper(y),h.HmacSHA384=g._createHmacHelper(y)}(),f.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireX64Core())})(commonjsGlobal,function(f){return function(h){var d=f,v=d.lib,p=v.WordArray,m=v.Hasher,g=d.x64,y=g.Word,x=d.algo,Bn=[],b=[],re=[];(function(){for(var Fn=1,Pn=0,w=0;w<24;w++){Bn[Fn+5*Pn]=(w+1)*(w+2)/2%64;var J=Pn%5,gn=(2*Fn+3*Pn)%5;Fn=J,Pn=gn}for(var Fn=0;Fn<5;Fn++)for(var Pn=0;Pn<5;Pn++)b[Fn+5*Pn]=Pn+(2*Fn+3*Pn)%5*5;for(var Vn=1,zn=0;zn<24;zn++){for(var Wn=0,Un=0,er=0;er<7;er++){if(Vn&1){var Jn=(1<<er)-1;Jn<32?Un^=1<<Jn:Wn^=1<<Jn-32}Vn&128?Vn=Vn<<1^113:Vn<<=1}re[zn]=y.create(Wn,Un)}})();var _=[];(function(){for(var Fn=0;Fn<25;Fn++)_[Fn]=y.create()})();var vn=x.SHA3=m.extend({cfg:m.cfg.extend({outputLength:512}),_doReset:function(){for(var Fn=this._state=[],Pn=0;Pn<25;Pn++)Fn[Pn]=new y.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(Fn,Pn){for(var w=this._state,J=this.blockSize/2,gn=0;gn<J;gn++){var Vn=Fn[Pn+2*gn],zn=Fn[Pn+2*gn+1];Vn=(Vn<<8|Vn>>>24)&16711935|(Vn<<24|Vn>>>8)&4278255360,zn=(zn<<8|zn>>>24)&16711935|(zn<<24|zn>>>8)&4278255360;var Wn=w[gn];Wn.high^=zn,Wn.low^=Vn}for(var Un=0;Un<24;Un++){for(var er=0;er<5;er++){for(var Jn=0,tr=0,Qn=0;Qn<5;Qn++){var Wn=w[er+5*Qn];Jn^=Wn.high,tr^=Wn.low}var ir=_[er];ir.high=Jn,ir.low=tr}for(var er=0;er<5;er++)for(var cr=_[(er+4)%5],Xn=_[(er+1)%5],Hn=Xn.high,Yn=Xn.low,Jn=cr.high^(Hn<<1|Yn>>>31),tr=cr.low^(Yn<<1|Hn>>>31),Qn=0;Qn<5;Qn++){var Wn=w[er+5*Qn];Wn.high^=Jn,Wn.low^=tr}for(var Rn=1;Rn<25;Rn++){var Jn,tr,Wn=w[Rn],Gn=Wn.high,Zn=Wn.low,qn=Bn[Rn];qn<32?(Jn=Gn<<qn|Zn>>>32-qn,tr=Zn<<qn|Gn>>>32-qn):(Jn=Zn<<qn-32|Gn>>>64-qn,tr=Gn<<qn-32|Zn>>>64-qn);var nr=_[b[Rn]];nr.high=Jn,nr.low=tr}var or=_[0],Kn=w[0];or.high=Kn.high,or.low=Kn.low;for(var er=0;er<5;er++)for(var Qn=0;Qn<5;Qn++){var Rn=er+5*Qn,Wn=w[Rn],ar=_[Rn],lr=_[(er+1)%5+5*Qn],ur=_[(er+2)%5+5*Qn];Wn.high=ar.high^~lr.high&ur.high,Wn.low=ar.low^~lr.low&ur.low}var Wn=w[0],dr=re[Un];Wn.high^=dr.high,Wn.low^=dr.low}},_doFinalize:function(){var Fn=this._data,Pn=Fn.words;this._nDataBytes*8;var w=Fn.sigBytes*8,J=this.blockSize*32;Pn[w>>>5]|=1<<24-w%32,Pn[(h.ceil((w+1)/J)*J>>>5)-1]|=128,Fn.sigBytes=Pn.length*4,this._process();for(var gn=this._state,Vn=this.cfg.outputLength/8,zn=Vn/8,Wn=[],Un=0;Un<zn;Un++){var er=gn[Un],Jn=er.high,tr=er.low;Jn=(Jn<<8|Jn>>>24)&16711935|(Jn<<24|Jn>>>8)&4278255360,tr=(tr<<8|tr>>>24)&16711935|(tr<<24|tr>>>8)&4278255360,Wn.push(tr),Wn.push(Jn)}return new p.init(Wn,Vn)},clone:function(){for(var Fn=m.clone.call(this),Pn=Fn._state=this._state.slice(0),w=0;w<25;w++)Pn[w]=Pn[w].clone();return Fn}});d.SHA3=m._createHelper(vn),d.HmacSHA3=m._createHmacHelper(vn)}(Math),f.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){/** @preserve
|
|
62
62
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
63
63
|
|
|
64
64
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
@@ -67,18 +67,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
67
67
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
68
68
|
|
|
69
69
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
70
|
-
*/return function(h){var d=f,v=d.lib,p=v.WordArray,m=v.Hasher,g=d.algo,y=p.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),x=p.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),Pn=p.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),b=p.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),vn=p.create([0,1518500249,1859775393,2400959708,2840853838]),_=p.create([1352829926,1548603684,1836072691,2053994217,0]),re=g.RIPEMD160=m.extend({_doReset:function(){this._hash=p.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(zn,Wn){for(var Un=0;Un<16;Un++){var Qn=Wn+Un,Jn=zn[Qn];zn[Qn]=(Jn<<8|Jn>>>24)&16711935|(Jn<<24|Jn>>>8)&4278255360}var tr=this._hash.words,Xn=vn.words,ar=_.words,sr=y.words,nr=x.words,Hn=Pn.words,Yn=b.words,Vn,Gn,Zn,qn,er,ir,Kn,or,cr,hr;ir=Vn=tr[0],Kn=Gn=tr[1],or=Zn=tr[2],cr=qn=tr[3],hr=er=tr[4];for(var dr,Un=0;Un<80;Un+=1)dr=Vn+zn[Wn+sr[Un]]|0,Un<16?dr+=Fn(Gn,Zn,qn)+Xn[0]:Un<32?dr+=Bn(Gn,Zn,qn)+Xn[1]:Un<48?dr+=w(Gn,Zn,qn)+Xn[2]:Un<64?dr+=J(Gn,Zn,qn)+Xn[3]:dr+=gn(Gn,Zn,qn)+Xn[4],dr=dr|0,dr=Rn(dr,Hn[Un]),dr=dr+er|0,Vn=er,er=qn,qn=Rn(Zn,10),Zn=Gn,Gn=dr,dr=ir+zn[Wn+nr[Un]]|0,Un<16?dr+=gn(Kn,or,cr)+ar[0]:Un<32?dr+=J(Kn,or,cr)+ar[1]:Un<48?dr+=w(Kn,or,cr)+ar[2]:Un<64?dr+=Bn(Kn,or,cr)+ar[3]:dr+=Fn(Kn,or,cr)+ar[4],dr=dr|0,dr=Rn(dr,Yn[Un]),dr=dr+hr|0,ir=hr,hr=cr,cr=Rn(or,10),or=Kn,Kn=dr;dr=tr[1]+Zn+cr|0,tr[1]=tr[2]+qn+hr|0,tr[2]=tr[3]+er+ir|0,tr[3]=tr[4]+Vn+Kn|0,tr[4]=tr[0]+Gn+or|0,tr[0]=dr},_doFinalize:function(){var zn=this._data,Wn=zn.words,Un=this._nDataBytes*8,Qn=zn.sigBytes*8;Wn[Qn>>>5]|=128<<24-Qn%32,Wn[(Qn+64>>>9<<4)+14]=(Un<<8|Un>>>24)&16711935|(Un<<24|Un>>>8)&4278255360,zn.sigBytes=(Wn.length+1)*4,this._process();for(var Jn=this._hash,tr=Jn.words,Xn=0;Xn<5;Xn++){var ar=tr[Xn];tr[Xn]=(ar<<8|ar>>>24)&16711935|(ar<<24|ar>>>8)&4278255360}return Jn},clone:function(){var zn=m.clone.call(this);return zn._hash=this._hash.clone(),zn}});function Fn(zn,Wn,Un){return zn^Wn^Un}function Bn(zn,Wn,Un){return zn&Wn|~zn&Un}function w(zn,Wn,Un){return(zn|~Wn)^Un}function J(zn,Wn,Un){return zn&Un|Wn&~Un}function gn(zn,Wn,Un){return zn^(Wn|~Un)}function Rn(zn,Wn){return zn<<Wn|zn>>>32-Wn}d.RIPEMD160=m._createHelper(re),d.HmacRIPEMD160=m._createHmacHelper(re)}(),f.RIPEMD160})}(ripemd160)),ripemd160.exports}var hmac={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){(function(){var h=f,d=h.lib,v=d.Base,p=h.enc,m=p.Utf8,g=h.algo;g.HMAC=v.extend({init:function(y,x){y=this._hasher=new y.init,typeof x=="string"&&(x=m.parse(x));var Pn=y.blockSize,b=Pn*4;x.sigBytes>b&&(x=y.finalize(x)),x.clamp();for(var vn=this._oKey=x.clone(),_=this._iKey=x.clone(),re=vn.words,Fn=_.words,Bn=0;Bn<Pn;Bn++)re[Bn]^=1549556828,Fn[Bn]^=909522486;vn.sigBytes=_.sigBytes=b,this.reset()},reset:function(){var y=this._hasher;y.reset(),y.update(this._iKey)},update:function(y){return this._hasher.update(y),this},finalize:function(y){var x=this._hasher,Pn=x.finalize(y);x.reset();var b=x.finalize(this._oKey.clone().concat(Pn));return b}})})()})}(hmac)),hmac.exports}var pbkdf2={exports:{}},hasRequiredPbkdf2;function requirePbkdf2(){return hasRequiredPbkdf2||(hasRequiredPbkdf2=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireSha1(),requireHmac())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.Base,p=d.WordArray,m=h.algo,g=m.SHA1,y=m.HMAC,x=m.PBKDF2=v.extend({cfg:v.extend({keySize:128/32,hasher:g,iterations:1}),init:function(Pn){this.cfg=this.cfg.extend(Pn)},compute:function(Pn,b){for(var vn=this.cfg,_=y.create(vn.hasher,Pn),re=p.create(),Fn=p.create([1]),Bn=re.words,w=Fn.words,J=vn.keySize,gn=vn.iterations;Bn.length<J;){var Rn=_.update(b).finalize(Fn);_.reset();for(var zn=Rn.words,Wn=zn.length,Un=Rn,Qn=1;Qn<gn;Qn++){Un=_.finalize(Un),_.reset();for(var Jn=Un.words,tr=0;tr<Wn;tr++)zn[tr]^=Jn[tr]}re.concat(Rn),w[0]++}return re.sigBytes=J*4,re}});h.PBKDF2=function(Pn,b,vn){return x.create(vn).compute(Pn,b)}}(),f.PBKDF2})}(pbkdf2)),pbkdf2.exports}var evpkdf={exports:{}},hasRequiredEvpkdf;function requireEvpkdf(){return hasRequiredEvpkdf||(hasRequiredEvpkdf=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireSha1(),requireHmac())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.Base,p=d.WordArray,m=h.algo,g=m.MD5,y=m.EvpKDF=v.extend({cfg:v.extend({keySize:128/32,hasher:g,iterations:1}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,Pn){for(var b,vn=this.cfg,_=vn.hasher.create(),re=p.create(),Fn=re.words,Bn=vn.keySize,w=vn.iterations;Fn.length<Bn;){b&&_.update(b),b=_.update(x).finalize(Pn),_.reset();for(var J=1;J<w;J++)b=_.finalize(b),_.reset();re.concat(b)}return re.sigBytes=Bn*4,re}});h.EvpKDF=function(x,Pn,b){return y.create(b).compute(x,Pn)}}(),f.EvpKDF})}(evpkdf)),evpkdf.exports}var cipherCore={exports:{}},hasRequiredCipherCore;function requireCipherCore(){return hasRequiredCipherCore||(hasRequiredCipherCore=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireEvpkdf())})(commonjsGlobal,function(f){f.lib.Cipher||function(h){var d=f,v=d.lib,p=v.Base,m=v.WordArray,g=v.BufferedBlockAlgorithm,y=d.enc;y.Utf8;var x=y.Base64,Pn=d.algo,b=Pn.EvpKDF,vn=v.Cipher=g.extend({cfg:p.extend(),createEncryptor:function(Jn,tr){return this.create(this._ENC_XFORM_MODE,Jn,tr)},createDecryptor:function(Jn,tr){return this.create(this._DEC_XFORM_MODE,Jn,tr)},init:function(Jn,tr,Xn){this.cfg=this.cfg.extend(Xn),this._xformMode=Jn,this._key=tr,this.reset()},reset:function(){g.reset.call(this),this._doReset()},process:function(Jn){return this._append(Jn),this._process()},finalize:function(Jn){Jn&&this._append(Jn);var tr=this._doFinalize();return tr},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function Jn(tr){return typeof tr=="string"?Qn:zn}return function(tr){return{encrypt:function(Xn,ar,sr){return Jn(ar).encrypt(tr,Xn,ar,sr)},decrypt:function(Xn,ar,sr){return Jn(ar).decrypt(tr,Xn,ar,sr)}}}}()});v.StreamCipher=vn.extend({_doFinalize:function(){var Jn=this._process(!0);return Jn},blockSize:1});var _=d.mode={},re=v.BlockCipherMode=p.extend({createEncryptor:function(Jn,tr){return this.Encryptor.create(Jn,tr)},createDecryptor:function(Jn,tr){return this.Decryptor.create(Jn,tr)},init:function(Jn,tr){this._cipher=Jn,this._iv=tr}}),Fn=_.CBC=function(){var Jn=re.extend();Jn.Encryptor=Jn.extend({processBlock:function(Xn,ar){var sr=this._cipher,nr=sr.blockSize;tr.call(this,Xn,ar,nr),sr.encryptBlock(Xn,ar),this._prevBlock=Xn.slice(ar,ar+nr)}}),Jn.Decryptor=Jn.extend({processBlock:function(Xn,ar){var sr=this._cipher,nr=sr.blockSize,Hn=Xn.slice(ar,ar+nr);sr.decryptBlock(Xn,ar),tr.call(this,Xn,ar,nr),this._prevBlock=Hn}});function tr(Xn,ar,sr){var nr,Hn=this._iv;Hn?(nr=Hn,this._iv=h):nr=this._prevBlock;for(var Yn=0;Yn<sr;Yn++)Xn[ar+Yn]^=nr[Yn]}return Jn}(),Bn=d.pad={},w=Bn.Pkcs7={pad:function(Jn,tr){for(var Xn=tr*4,ar=Xn-Jn.sigBytes%Xn,sr=ar<<24|ar<<16|ar<<8|ar,nr=[],Hn=0;Hn<ar;Hn+=4)nr.push(sr);var Yn=m.create(nr,ar);Jn.concat(Yn)},unpad:function(Jn){var tr=Jn.words[Jn.sigBytes-1>>>2]&255;Jn.sigBytes-=tr}};v.BlockCipher=vn.extend({cfg:vn.cfg.extend({mode:Fn,padding:w}),reset:function(){var Jn;vn.reset.call(this);var tr=this.cfg,Xn=tr.iv,ar=tr.mode;this._xformMode==this._ENC_XFORM_MODE?Jn=ar.createEncryptor:(Jn=ar.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==Jn?this._mode.init(this,Xn&&Xn.words):(this._mode=Jn.call(ar,this,Xn&&Xn.words),this._mode.__creator=Jn)},_doProcessBlock:function(Jn,tr){this._mode.processBlock(Jn,tr)},_doFinalize:function(){var Jn,tr=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(tr.pad(this._data,this.blockSize),Jn=this._process(!0)):(Jn=this._process(!0),tr.unpad(Jn)),Jn},blockSize:128/32});var J=v.CipherParams=p.extend({init:function(Jn){this.mixIn(Jn)},toString:function(Jn){return(Jn||this.formatter).stringify(this)}}),gn=d.format={},Rn=gn.OpenSSL={stringify:function(Jn){var tr,Xn=Jn.ciphertext,ar=Jn.salt;return ar?tr=m.create([1398893684,1701076831]).concat(ar).concat(Xn):tr=Xn,tr.toString(x)},parse:function(Jn){var tr,Xn=x.parse(Jn),ar=Xn.words;return ar[0]==1398893684&&ar[1]==1701076831&&(tr=m.create(ar.slice(2,4)),ar.splice(0,4),Xn.sigBytes-=16),J.create({ciphertext:Xn,salt:tr})}},zn=v.SerializableCipher=p.extend({cfg:p.extend({format:Rn}),encrypt:function(Jn,tr,Xn,ar){ar=this.cfg.extend(ar);var sr=Jn.createEncryptor(Xn,ar),nr=sr.finalize(tr),Hn=sr.cfg;return J.create({ciphertext:nr,key:Xn,iv:Hn.iv,algorithm:Jn,mode:Hn.mode,padding:Hn.padding,blockSize:Jn.blockSize,formatter:ar.format})},decrypt:function(Jn,tr,Xn,ar){ar=this.cfg.extend(ar),tr=this._parse(tr,ar.format);var sr=Jn.createDecryptor(Xn,ar).finalize(tr.ciphertext);return sr},_parse:function(Jn,tr){return typeof Jn=="string"?tr.parse(Jn,this):Jn}}),Wn=d.kdf={},Un=Wn.OpenSSL={execute:function(Jn,tr,Xn,ar){ar||(ar=m.random(64/8));var sr=b.create({keySize:tr+Xn}).compute(Jn,ar),nr=m.create(sr.words.slice(tr),Xn*4);return sr.sigBytes=tr*4,J.create({key:sr,iv:nr,salt:ar})}},Qn=v.PasswordBasedCipher=zn.extend({cfg:zn.cfg.extend({kdf:Un}),encrypt:function(Jn,tr,Xn,ar){ar=this.cfg.extend(ar);var sr=ar.kdf.execute(Xn,Jn.keySize,Jn.ivSize);ar.iv=sr.iv;var nr=zn.encrypt.call(this,Jn,tr,sr.key,ar);return nr.mixIn(sr),nr},decrypt:function(Jn,tr,Xn,ar){ar=this.cfg.extend(ar),tr=this._parse(tr,ar.format);var sr=ar.kdf.execute(Xn,Jn.keySize,Jn.ivSize,tr.salt);ar.iv=sr.iv;var nr=zn.decrypt.call(this,Jn,tr,sr.key,ar);return nr}})}()})}(cipherCore)),cipherCore.exports}var modeCfb={exports:{}},hasRequiredModeCfb;function requireModeCfb(){return hasRequiredModeCfb||(hasRequiredModeCfb=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireCipherCore())})(commonjsGlobal,function(f){return f.mode.CFB=function(){var h=f.lib.BlockCipherMode.extend();h.Encryptor=h.extend({processBlock:function(v,p){var m=this._cipher,g=m.blockSize;d.call(this,v,p,g,m),this._prevBlock=v.slice(p,p+g)}}),h.Decryptor=h.extend({processBlock:function(v,p){var m=this._cipher,g=m.blockSize,y=v.slice(p,p+g);d.call(this,v,p,g,m),this._prevBlock=y}});function d(v,p,m,g){var y,x=this._iv;x?(y=x.slice(0),this._iv=void 0):y=this._prevBlock,g.encryptBlock(y,0);for(var Pn=0;Pn<m;Pn++)v[p+Pn]^=y[Pn]}return h}(),f.mode.CFB})}(modeCfb)),modeCfb.exports}var modeCtr={exports:{}},hasRequiredModeCtr;function requireModeCtr(){return hasRequiredModeCtr||(hasRequiredModeCtr=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireCipherCore())})(commonjsGlobal,function(f){return f.mode.CTR=function(){var h=f.lib.BlockCipherMode.extend(),d=h.Encryptor=h.extend({processBlock:function(v,p){var m=this._cipher,g=m.blockSize,y=this._iv,x=this._counter;y&&(x=this._counter=y.slice(0),this._iv=void 0);var Pn=x.slice(0);m.encryptBlock(Pn,0),x[g-1]=x[g-1]+1|0;for(var b=0;b<g;b++)v[p+b]^=Pn[b]}});return h.Decryptor=d,h}(),f.mode.CTR})}(modeCtr)),modeCtr.exports}var modeCtrGladman={exports:{}},hasRequiredModeCtrGladman;function requireModeCtrGladman(){return hasRequiredModeCtrGladman||(hasRequiredModeCtrGladman=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireCipherCore())})(commonjsGlobal,function(f){/** @preserve
|
|
70
|
+
*/return function(h){var d=f,v=d.lib,p=v.WordArray,m=v.Hasher,g=d.algo,y=p.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),x=p.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),Bn=p.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),b=p.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),re=p.create([0,1518500249,1859775393,2400959708,2840853838]),_=p.create([1352829926,1548603684,1836072691,2053994217,0]),vn=g.RIPEMD160=m.extend({_doReset:function(){this._hash=p.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(zn,Wn){for(var Un=0;Un<16;Un++){var er=Wn+Un,Jn=zn[er];zn[er]=(Jn<<8|Jn>>>24)&16711935|(Jn<<24|Jn>>>8)&4278255360}var tr=this._hash.words,Qn=re.words,ir=_.words,cr=y.words,Xn=x.words,Hn=Bn.words,Yn=b.words,Rn,Gn,Zn,qn,nr,or,Kn,ar,lr,ur;or=Rn=tr[0],Kn=Gn=tr[1],ar=Zn=tr[2],lr=qn=tr[3],ur=nr=tr[4];for(var dr,Un=0;Un<80;Un+=1)dr=Rn+zn[Wn+cr[Un]]|0,Un<16?dr+=Fn(Gn,Zn,qn)+Qn[0]:Un<32?dr+=Pn(Gn,Zn,qn)+Qn[1]:Un<48?dr+=w(Gn,Zn,qn)+Qn[2]:Un<64?dr+=J(Gn,Zn,qn)+Qn[3]:dr+=gn(Gn,Zn,qn)+Qn[4],dr=dr|0,dr=Vn(dr,Hn[Un]),dr=dr+nr|0,Rn=nr,nr=qn,qn=Vn(Zn,10),Zn=Gn,Gn=dr,dr=or+zn[Wn+Xn[Un]]|0,Un<16?dr+=gn(Kn,ar,lr)+ir[0]:Un<32?dr+=J(Kn,ar,lr)+ir[1]:Un<48?dr+=w(Kn,ar,lr)+ir[2]:Un<64?dr+=Pn(Kn,ar,lr)+ir[3]:dr+=Fn(Kn,ar,lr)+ir[4],dr=dr|0,dr=Vn(dr,Yn[Un]),dr=dr+ur|0,or=ur,ur=lr,lr=Vn(ar,10),ar=Kn,Kn=dr;dr=tr[1]+Zn+lr|0,tr[1]=tr[2]+qn+ur|0,tr[2]=tr[3]+nr+or|0,tr[3]=tr[4]+Rn+Kn|0,tr[4]=tr[0]+Gn+ar|0,tr[0]=dr},_doFinalize:function(){var zn=this._data,Wn=zn.words,Un=this._nDataBytes*8,er=zn.sigBytes*8;Wn[er>>>5]|=128<<24-er%32,Wn[(er+64>>>9<<4)+14]=(Un<<8|Un>>>24)&16711935|(Un<<24|Un>>>8)&4278255360,zn.sigBytes=(Wn.length+1)*4,this._process();for(var Jn=this._hash,tr=Jn.words,Qn=0;Qn<5;Qn++){var ir=tr[Qn];tr[Qn]=(ir<<8|ir>>>24)&16711935|(ir<<24|ir>>>8)&4278255360}return Jn},clone:function(){var zn=m.clone.call(this);return zn._hash=this._hash.clone(),zn}});function Fn(zn,Wn,Un){return zn^Wn^Un}function Pn(zn,Wn,Un){return zn&Wn|~zn&Un}function w(zn,Wn,Un){return(zn|~Wn)^Un}function J(zn,Wn,Un){return zn&Un|Wn&~Un}function gn(zn,Wn,Un){return zn^(Wn|~Un)}function Vn(zn,Wn){return zn<<Wn|zn>>>32-Wn}d.RIPEMD160=m._createHelper(vn),d.HmacRIPEMD160=m._createHmacHelper(vn)}(),f.RIPEMD160})}(ripemd160)),ripemd160.exports}var hmac={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(c,u){(function(f,h){c.exports=h(requireCore())})(commonjsGlobal,function(f){(function(){var h=f,d=h.lib,v=d.Base,p=h.enc,m=p.Utf8,g=h.algo;g.HMAC=v.extend({init:function(y,x){y=this._hasher=new y.init,typeof x=="string"&&(x=m.parse(x));var Bn=y.blockSize,b=Bn*4;x.sigBytes>b&&(x=y.finalize(x)),x.clamp();for(var re=this._oKey=x.clone(),_=this._iKey=x.clone(),vn=re.words,Fn=_.words,Pn=0;Pn<Bn;Pn++)vn[Pn]^=1549556828,Fn[Pn]^=909522486;re.sigBytes=_.sigBytes=b,this.reset()},reset:function(){var y=this._hasher;y.reset(),y.update(this._iKey)},update:function(y){return this._hasher.update(y),this},finalize:function(y){var x=this._hasher,Bn=x.finalize(y);x.reset();var b=x.finalize(this._oKey.clone().concat(Bn));return b}})})()})}(hmac)),hmac.exports}var pbkdf2={exports:{}},hasRequiredPbkdf2;function requirePbkdf2(){return hasRequiredPbkdf2||(hasRequiredPbkdf2=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireSha1(),requireHmac())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.Base,p=d.WordArray,m=h.algo,g=m.SHA1,y=m.HMAC,x=m.PBKDF2=v.extend({cfg:v.extend({keySize:128/32,hasher:g,iterations:1}),init:function(Bn){this.cfg=this.cfg.extend(Bn)},compute:function(Bn,b){for(var re=this.cfg,_=y.create(re.hasher,Bn),vn=p.create(),Fn=p.create([1]),Pn=vn.words,w=Fn.words,J=re.keySize,gn=re.iterations;Pn.length<J;){var Vn=_.update(b).finalize(Fn);_.reset();for(var zn=Vn.words,Wn=zn.length,Un=Vn,er=1;er<gn;er++){Un=_.finalize(Un),_.reset();for(var Jn=Un.words,tr=0;tr<Wn;tr++)zn[tr]^=Jn[tr]}vn.concat(Vn),w[0]++}return vn.sigBytes=J*4,vn}});h.PBKDF2=function(Bn,b,re){return x.create(re).compute(Bn,b)}}(),f.PBKDF2})}(pbkdf2)),pbkdf2.exports}var evpkdf={exports:{}},hasRequiredEvpkdf;function requireEvpkdf(){return hasRequiredEvpkdf||(hasRequiredEvpkdf=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireSha1(),requireHmac())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.Base,p=d.WordArray,m=h.algo,g=m.MD5,y=m.EvpKDF=v.extend({cfg:v.extend({keySize:128/32,hasher:g,iterations:1}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,Bn){for(var b,re=this.cfg,_=re.hasher.create(),vn=p.create(),Fn=vn.words,Pn=re.keySize,w=re.iterations;Fn.length<Pn;){b&&_.update(b),b=_.update(x).finalize(Bn),_.reset();for(var J=1;J<w;J++)b=_.finalize(b),_.reset();vn.concat(b)}return vn.sigBytes=Pn*4,vn}});h.EvpKDF=function(x,Bn,b){return y.create(b).compute(x,Bn)}}(),f.EvpKDF})}(evpkdf)),evpkdf.exports}var cipherCore={exports:{}},hasRequiredCipherCore;function requireCipherCore(){return hasRequiredCipherCore||(hasRequiredCipherCore=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireEvpkdf())})(commonjsGlobal,function(f){f.lib.Cipher||function(h){var d=f,v=d.lib,p=v.Base,m=v.WordArray,g=v.BufferedBlockAlgorithm,y=d.enc;y.Utf8;var x=y.Base64,Bn=d.algo,b=Bn.EvpKDF,re=v.Cipher=g.extend({cfg:p.extend(),createEncryptor:function(Jn,tr){return this.create(this._ENC_XFORM_MODE,Jn,tr)},createDecryptor:function(Jn,tr){return this.create(this._DEC_XFORM_MODE,Jn,tr)},init:function(Jn,tr,Qn){this.cfg=this.cfg.extend(Qn),this._xformMode=Jn,this._key=tr,this.reset()},reset:function(){g.reset.call(this),this._doReset()},process:function(Jn){return this._append(Jn),this._process()},finalize:function(Jn){Jn&&this._append(Jn);var tr=this._doFinalize();return tr},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function Jn(tr){return typeof tr=="string"?er:zn}return function(tr){return{encrypt:function(Qn,ir,cr){return Jn(ir).encrypt(tr,Qn,ir,cr)},decrypt:function(Qn,ir,cr){return Jn(ir).decrypt(tr,Qn,ir,cr)}}}}()});v.StreamCipher=re.extend({_doFinalize:function(){var Jn=this._process(!0);return Jn},blockSize:1});var _=d.mode={},vn=v.BlockCipherMode=p.extend({createEncryptor:function(Jn,tr){return this.Encryptor.create(Jn,tr)},createDecryptor:function(Jn,tr){return this.Decryptor.create(Jn,tr)},init:function(Jn,tr){this._cipher=Jn,this._iv=tr}}),Fn=_.CBC=function(){var Jn=vn.extend();Jn.Encryptor=Jn.extend({processBlock:function(Qn,ir){var cr=this._cipher,Xn=cr.blockSize;tr.call(this,Qn,ir,Xn),cr.encryptBlock(Qn,ir),this._prevBlock=Qn.slice(ir,ir+Xn)}}),Jn.Decryptor=Jn.extend({processBlock:function(Qn,ir){var cr=this._cipher,Xn=cr.blockSize,Hn=Qn.slice(ir,ir+Xn);cr.decryptBlock(Qn,ir),tr.call(this,Qn,ir,Xn),this._prevBlock=Hn}});function tr(Qn,ir,cr){var Xn,Hn=this._iv;Hn?(Xn=Hn,this._iv=h):Xn=this._prevBlock;for(var Yn=0;Yn<cr;Yn++)Qn[ir+Yn]^=Xn[Yn]}return Jn}(),Pn=d.pad={},w=Pn.Pkcs7={pad:function(Jn,tr){for(var Qn=tr*4,ir=Qn-Jn.sigBytes%Qn,cr=ir<<24|ir<<16|ir<<8|ir,Xn=[],Hn=0;Hn<ir;Hn+=4)Xn.push(cr);var Yn=m.create(Xn,ir);Jn.concat(Yn)},unpad:function(Jn){var tr=Jn.words[Jn.sigBytes-1>>>2]&255;Jn.sigBytes-=tr}};v.BlockCipher=re.extend({cfg:re.cfg.extend({mode:Fn,padding:w}),reset:function(){var Jn;re.reset.call(this);var tr=this.cfg,Qn=tr.iv,ir=tr.mode;this._xformMode==this._ENC_XFORM_MODE?Jn=ir.createEncryptor:(Jn=ir.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==Jn?this._mode.init(this,Qn&&Qn.words):(this._mode=Jn.call(ir,this,Qn&&Qn.words),this._mode.__creator=Jn)},_doProcessBlock:function(Jn,tr){this._mode.processBlock(Jn,tr)},_doFinalize:function(){var Jn,tr=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(tr.pad(this._data,this.blockSize),Jn=this._process(!0)):(Jn=this._process(!0),tr.unpad(Jn)),Jn},blockSize:128/32});var J=v.CipherParams=p.extend({init:function(Jn){this.mixIn(Jn)},toString:function(Jn){return(Jn||this.formatter).stringify(this)}}),gn=d.format={},Vn=gn.OpenSSL={stringify:function(Jn){var tr,Qn=Jn.ciphertext,ir=Jn.salt;return ir?tr=m.create([1398893684,1701076831]).concat(ir).concat(Qn):tr=Qn,tr.toString(x)},parse:function(Jn){var tr,Qn=x.parse(Jn),ir=Qn.words;return ir[0]==1398893684&&ir[1]==1701076831&&(tr=m.create(ir.slice(2,4)),ir.splice(0,4),Qn.sigBytes-=16),J.create({ciphertext:Qn,salt:tr})}},zn=v.SerializableCipher=p.extend({cfg:p.extend({format:Vn}),encrypt:function(Jn,tr,Qn,ir){ir=this.cfg.extend(ir);var cr=Jn.createEncryptor(Qn,ir),Xn=cr.finalize(tr),Hn=cr.cfg;return J.create({ciphertext:Xn,key:Qn,iv:Hn.iv,algorithm:Jn,mode:Hn.mode,padding:Hn.padding,blockSize:Jn.blockSize,formatter:ir.format})},decrypt:function(Jn,tr,Qn,ir){ir=this.cfg.extend(ir),tr=this._parse(tr,ir.format);var cr=Jn.createDecryptor(Qn,ir).finalize(tr.ciphertext);return cr},_parse:function(Jn,tr){return typeof Jn=="string"?tr.parse(Jn,this):Jn}}),Wn=d.kdf={},Un=Wn.OpenSSL={execute:function(Jn,tr,Qn,ir){ir||(ir=m.random(64/8));var cr=b.create({keySize:tr+Qn}).compute(Jn,ir),Xn=m.create(cr.words.slice(tr),Qn*4);return cr.sigBytes=tr*4,J.create({key:cr,iv:Xn,salt:ir})}},er=v.PasswordBasedCipher=zn.extend({cfg:zn.cfg.extend({kdf:Un}),encrypt:function(Jn,tr,Qn,ir){ir=this.cfg.extend(ir);var cr=ir.kdf.execute(Qn,Jn.keySize,Jn.ivSize);ir.iv=cr.iv;var Xn=zn.encrypt.call(this,Jn,tr,cr.key,ir);return Xn.mixIn(cr),Xn},decrypt:function(Jn,tr,Qn,ir){ir=this.cfg.extend(ir),tr=this._parse(tr,ir.format);var cr=ir.kdf.execute(Qn,Jn.keySize,Jn.ivSize,tr.salt);ir.iv=cr.iv;var Xn=zn.decrypt.call(this,Jn,tr,cr.key,ir);return Xn}})}()})}(cipherCore)),cipherCore.exports}var modeCfb={exports:{}},hasRequiredModeCfb;function requireModeCfb(){return hasRequiredModeCfb||(hasRequiredModeCfb=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireCipherCore())})(commonjsGlobal,function(f){return f.mode.CFB=function(){var h=f.lib.BlockCipherMode.extend();h.Encryptor=h.extend({processBlock:function(v,p){var m=this._cipher,g=m.blockSize;d.call(this,v,p,g,m),this._prevBlock=v.slice(p,p+g)}}),h.Decryptor=h.extend({processBlock:function(v,p){var m=this._cipher,g=m.blockSize,y=v.slice(p,p+g);d.call(this,v,p,g,m),this._prevBlock=y}});function d(v,p,m,g){var y,x=this._iv;x?(y=x.slice(0),this._iv=void 0):y=this._prevBlock,g.encryptBlock(y,0);for(var Bn=0;Bn<m;Bn++)v[p+Bn]^=y[Bn]}return h}(),f.mode.CFB})}(modeCfb)),modeCfb.exports}var modeCtr={exports:{}},hasRequiredModeCtr;function requireModeCtr(){return hasRequiredModeCtr||(hasRequiredModeCtr=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireCipherCore())})(commonjsGlobal,function(f){return f.mode.CTR=function(){var h=f.lib.BlockCipherMode.extend(),d=h.Encryptor=h.extend({processBlock:function(v,p){var m=this._cipher,g=m.blockSize,y=this._iv,x=this._counter;y&&(x=this._counter=y.slice(0),this._iv=void 0);var Bn=x.slice(0);m.encryptBlock(Bn,0),x[g-1]=x[g-1]+1|0;for(var b=0;b<g;b++)v[p+b]^=Bn[b]}});return h.Decryptor=d,h}(),f.mode.CTR})}(modeCtr)),modeCtr.exports}var modeCtrGladman={exports:{}},hasRequiredModeCtrGladman;function requireModeCtrGladman(){return hasRequiredModeCtrGladman||(hasRequiredModeCtrGladman=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireCipherCore())})(commonjsGlobal,function(f){/** @preserve
|
|
71
71
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
72
72
|
* derived from CryptoJS.mode.CTR
|
|
73
73
|
* Jan Hruby jhruby.web@gmail.com
|
|
74
|
-
*/return f.mode.CTRGladman=function(){var h=f.lib.BlockCipherMode.extend();function d(m){if((m>>24&255)===255){var g=m>>16&255,y=m>>8&255,x=m&255;g===255?(g=0,y===255?(y=0,x===255?x=0:++x):++y):++g,m=0,m+=g<<16,m+=y<<8,m+=x}else m+=1<<24;return m}function v(m){return(m[0]=d(m[0]))===0&&(m[1]=d(m[1])),m}var p=h.Encryptor=h.extend({processBlock:function(m,g){var y=this._cipher,x=y.blockSize,Pn=this._iv,b=this._counter;Pn&&(b=this._counter=Pn.slice(0),this._iv=void 0),v(b);var vn=b.slice(0);y.encryptBlock(vn,0);for(var _=0;_<x;_++)m[g+_]^=vn[_]}});return h.Decryptor=p,h}(),f.mode.CTRGladman})}(modeCtrGladman)),modeCtrGladman.exports}var modeOfb={exports:{}},hasRequiredModeOfb;function requireModeOfb(){return hasRequiredModeOfb||(hasRequiredModeOfb=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireCipherCore())})(commonjsGlobal,function(f){return f.mode.OFB=function(){var h=f.lib.BlockCipherMode.extend(),d=h.Encryptor=h.extend({processBlock:function(v,p){var m=this._cipher,g=m.blockSize,y=this._iv,x=this._keystream;y&&(x=this._keystream=y.slice(0),this._iv=void 0),m.encryptBlock(x,0);for(var Pn=0;Pn<g;Pn++)v[p+Pn]^=x[Pn]}});return h.Decryptor=d,h}(),f.mode.OFB})}(modeOfb)),modeOfb.exports}var modeEcb={exports:{}},hasRequiredModeEcb;function requireModeEcb(){return hasRequiredModeEcb||(hasRequiredModeEcb=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireCipherCore())})(commonjsGlobal,function(f){return f.mode.ECB=function(){var h=f.lib.BlockCipherMode.extend();return h.Encryptor=h.extend({processBlock:function(d,v){this._cipher.encryptBlock(d,v)}}),h.Decryptor=h.extend({processBlock:function(d,v){this._cipher.decryptBlock(d,v)}}),h}(),f.mode.ECB})}(modeEcb)),modeEcb.exports}var padAnsix923={exports:{}},hasRequiredPadAnsix923;function requirePadAnsix923(){return hasRequiredPadAnsix923||(hasRequiredPadAnsix923=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireCipherCore())})(commonjsGlobal,function(f){return f.pad.AnsiX923={pad:function(h,d){var v=h.sigBytes,p=d*4,m=p-v%p,g=v+m-1;h.clamp(),h.words[g>>>2]|=m<<24-g%4*8,h.sigBytes+=m},unpad:function(h){var d=h.words[h.sigBytes-1>>>2]&255;h.sigBytes-=d}},f.pad.Ansix923})}(padAnsix923)),padAnsix923.exports}var padIso10126={exports:{}},hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireCipherCore())})(commonjsGlobal,function(f){return f.pad.Iso10126={pad:function(h,d){var v=d*4,p=v-h.sigBytes%v;h.concat(f.lib.WordArray.random(p-1)).concat(f.lib.WordArray.create([p<<24],1))},unpad:function(h){var d=h.words[h.sigBytes-1>>>2]&255;h.sigBytes-=d}},f.pad.Iso10126})}(padIso10126)),padIso10126.exports}var padIso97971={exports:{}},hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireCipherCore())})(commonjsGlobal,function(f){return f.pad.Iso97971={pad:function(h,d){h.concat(f.lib.WordArray.create([2147483648],1)),f.pad.ZeroPadding.pad(h,d)},unpad:function(h){f.pad.ZeroPadding.unpad(h),h.sigBytes--}},f.pad.Iso97971})}(padIso97971)),padIso97971.exports}var padZeropadding={exports:{}},hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireCipherCore())})(commonjsGlobal,function(f){return f.pad.ZeroPadding={pad:function(h,d){var v=d*4;h.clamp(),h.sigBytes+=v-(h.sigBytes%v||v)},unpad:function(h){for(var d=h.words,v=h.sigBytes-1,v=h.sigBytes-1;v>=0;v--)if(d[v>>>2]>>>24-v%4*8&255){h.sigBytes=v+1;break}}},f.pad.ZeroPadding})}(padZeropadding)),padZeropadding.exports}var padNopadding={exports:{}},hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireCipherCore())})(commonjsGlobal,function(f){return f.pad.NoPadding={pad:function(){},unpad:function(){}},f.pad.NoPadding})}(padNopadding)),padNopadding.exports}var formatHex={exports:{}},hasRequiredFormatHex;function requireFormatHex(){return hasRequiredFormatHex||(hasRequiredFormatHex=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireCipherCore())})(commonjsGlobal,function(f){return function(h){var d=f,v=d.lib,p=v.CipherParams,m=d.enc,g=m.Hex,y=d.format;y.Hex={stringify:function(x){return x.ciphertext.toString(g)},parse:function(x){var Pn=g.parse(x);return p.create({ciphertext:Pn})}}}(),f.format.Hex})}(formatHex)),formatHex.exports}var aes={exports:{}},hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.BlockCipher,p=h.algo,m=[],g=[],y=[],x=[],Pn=[],b=[],vn=[],_=[],re=[],Fn=[];(function(){for(var J=[],gn=0;gn<256;gn++)gn<128?J[gn]=gn<<1:J[gn]=gn<<1^283;for(var Rn=0,zn=0,gn=0;gn<256;gn++){var Wn=zn^zn<<1^zn<<2^zn<<3^zn<<4;Wn=Wn>>>8^Wn&255^99,m[Rn]=Wn,g[Wn]=Rn;var Un=J[Rn],Qn=J[Un],Jn=J[Qn],tr=J[Wn]*257^Wn*16843008;y[Rn]=tr<<24|tr>>>8,x[Rn]=tr<<16|tr>>>16,Pn[Rn]=tr<<8|tr>>>24,b[Rn]=tr;var tr=Jn*16843009^Qn*65537^Un*257^Rn*16843008;vn[Wn]=tr<<24|tr>>>8,_[Wn]=tr<<16|tr>>>16,re[Wn]=tr<<8|tr>>>24,Fn[Wn]=tr,Rn?(Rn=Un^J[J[J[Jn^Un]]],zn^=J[J[zn]]):Rn=zn=1}})();var Bn=[0,1,2,4,8,16,32,64,128,27,54],w=p.AES=v.extend({_doReset:function(){var J;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var gn=this._keyPriorReset=this._key,Rn=gn.words,zn=gn.sigBytes/4,Wn=this._nRounds=zn+6,Un=(Wn+1)*4,Qn=this._keySchedule=[],Jn=0;Jn<Un;Jn++)Jn<zn?Qn[Jn]=Rn[Jn]:(J=Qn[Jn-1],Jn%zn?zn>6&&Jn%zn==4&&(J=m[J>>>24]<<24|m[J>>>16&255]<<16|m[J>>>8&255]<<8|m[J&255]):(J=J<<8|J>>>24,J=m[J>>>24]<<24|m[J>>>16&255]<<16|m[J>>>8&255]<<8|m[J&255],J^=Bn[Jn/zn|0]<<24),Qn[Jn]=Qn[Jn-zn]^J);for(var tr=this._invKeySchedule=[],Xn=0;Xn<Un;Xn++){var Jn=Un-Xn;if(Xn%4)var J=Qn[Jn];else var J=Qn[Jn-4];Xn<4||Jn<=4?tr[Xn]=J:tr[Xn]=vn[m[J>>>24]]^_[m[J>>>16&255]]^re[m[J>>>8&255]]^Fn[m[J&255]]}}},encryptBlock:function(J,gn){this._doCryptBlock(J,gn,this._keySchedule,y,x,Pn,b,m)},decryptBlock:function(J,gn){var Rn=J[gn+1];J[gn+1]=J[gn+3],J[gn+3]=Rn,this._doCryptBlock(J,gn,this._invKeySchedule,vn,_,re,Fn,g);var Rn=J[gn+1];J[gn+1]=J[gn+3],J[gn+3]=Rn},_doCryptBlock:function(J,gn,Rn,zn,Wn,Un,Qn,Jn){for(var tr=this._nRounds,Xn=J[gn]^Rn[0],ar=J[gn+1]^Rn[1],sr=J[gn+2]^Rn[2],nr=J[gn+3]^Rn[3],Hn=4,Yn=1;Yn<tr;Yn++){var Vn=zn[Xn>>>24]^Wn[ar>>>16&255]^Un[sr>>>8&255]^Qn[nr&255]^Rn[Hn++],Gn=zn[ar>>>24]^Wn[sr>>>16&255]^Un[nr>>>8&255]^Qn[Xn&255]^Rn[Hn++],Zn=zn[sr>>>24]^Wn[nr>>>16&255]^Un[Xn>>>8&255]^Qn[ar&255]^Rn[Hn++],qn=zn[nr>>>24]^Wn[Xn>>>16&255]^Un[ar>>>8&255]^Qn[sr&255]^Rn[Hn++];Xn=Vn,ar=Gn,sr=Zn,nr=qn}var Vn=(Jn[Xn>>>24]<<24|Jn[ar>>>16&255]<<16|Jn[sr>>>8&255]<<8|Jn[nr&255])^Rn[Hn++],Gn=(Jn[ar>>>24]<<24|Jn[sr>>>16&255]<<16|Jn[nr>>>8&255]<<8|Jn[Xn&255])^Rn[Hn++],Zn=(Jn[sr>>>24]<<24|Jn[nr>>>16&255]<<16|Jn[Xn>>>8&255]<<8|Jn[ar&255])^Rn[Hn++],qn=(Jn[nr>>>24]<<24|Jn[Xn>>>16&255]<<16|Jn[ar>>>8&255]<<8|Jn[sr&255])^Rn[Hn++];J[gn]=Vn,J[gn+1]=Gn,J[gn+2]=Zn,J[gn+3]=qn},keySize:256/32});h.AES=v._createHelper(w)}(),f.AES})}(aes)),aes.exports}var tripledes={exports:{}},hasRequiredTripledes;function requireTripledes(){return hasRequiredTripledes||(hasRequiredTripledes=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.WordArray,p=d.BlockCipher,m=h.algo,g=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],y=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],x=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],Pn=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],b=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],vn=m.DES=p.extend({_doReset:function(){for(var Bn=this._key,w=Bn.words,J=[],gn=0;gn<56;gn++){var Rn=g[gn]-1;J[gn]=w[Rn>>>5]>>>31-Rn%32&1}for(var zn=this._subKeys=[],Wn=0;Wn<16;Wn++){for(var Un=zn[Wn]=[],Qn=x[Wn],gn=0;gn<24;gn++)Un[gn/6|0]|=J[(y[gn]-1+Qn)%28]<<31-gn%6,Un[4+(gn/6|0)]|=J[28+(y[gn+24]-1+Qn)%28]<<31-gn%6;Un[0]=Un[0]<<1|Un[0]>>>31;for(var gn=1;gn<7;gn++)Un[gn]=Un[gn]>>>(gn-1)*4+3;Un[7]=Un[7]<<5|Un[7]>>>27}for(var Jn=this._invSubKeys=[],gn=0;gn<16;gn++)Jn[gn]=zn[15-gn]},encryptBlock:function(Bn,w){this._doCryptBlock(Bn,w,this._subKeys)},decryptBlock:function(Bn,w){this._doCryptBlock(Bn,w,this._invSubKeys)},_doCryptBlock:function(Bn,w,J){this._lBlock=Bn[w],this._rBlock=Bn[w+1],_.call(this,4,252645135),_.call(this,16,65535),re.call(this,2,858993459),re.call(this,8,16711935),_.call(this,1,1431655765);for(var gn=0;gn<16;gn++){for(var Rn=J[gn],zn=this._lBlock,Wn=this._rBlock,Un=0,Qn=0;Qn<8;Qn++)Un|=Pn[Qn][((Wn^Rn[Qn])&b[Qn])>>>0];this._lBlock=Wn,this._rBlock=zn^Un}var Jn=this._lBlock;this._lBlock=this._rBlock,this._rBlock=Jn,_.call(this,1,1431655765),re.call(this,8,16711935),re.call(this,2,858993459),_.call(this,16,65535),_.call(this,4,252645135),Bn[w]=this._lBlock,Bn[w+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function _(Bn,w){var J=(this._lBlock>>>Bn^this._rBlock)&w;this._rBlock^=J,this._lBlock^=J<<Bn}function re(Bn,w){var J=(this._rBlock>>>Bn^this._lBlock)&w;this._lBlock^=J,this._rBlock^=J<<Bn}h.DES=p._createHelper(vn);var Fn=m.TripleDES=p.extend({_doReset:function(){var Bn=this._key,w=Bn.words;if(w.length!==2&&w.length!==4&&w.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var J=w.slice(0,2),gn=w.length<4?w.slice(0,2):w.slice(2,4),Rn=w.length<6?w.slice(0,2):w.slice(4,6);this._des1=vn.createEncryptor(v.create(J)),this._des2=vn.createEncryptor(v.create(gn)),this._des3=vn.createEncryptor(v.create(Rn))},encryptBlock:function(Bn,w){this._des1.encryptBlock(Bn,w),this._des2.decryptBlock(Bn,w),this._des3.encryptBlock(Bn,w)},decryptBlock:function(Bn,w){this._des3.decryptBlock(Bn,w),this._des2.encryptBlock(Bn,w),this._des1.decryptBlock(Bn,w)},keySize:192/32,ivSize:64/32,blockSize:64/32});h.TripleDES=p._createHelper(Fn)}(),f.TripleDES})}(tripledes)),tripledes.exports}var rc4={exports:{}},hasRequiredRc4;function requireRc4(){return hasRequiredRc4||(hasRequiredRc4=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.StreamCipher,p=h.algo,m=p.RC4=v.extend({_doReset:function(){for(var x=this._key,Pn=x.words,b=x.sigBytes,vn=this._S=[],_=0;_<256;_++)vn[_]=_;for(var _=0,re=0;_<256;_++){var Fn=_%b,Bn=Pn[Fn>>>2]>>>24-Fn%4*8&255;re=(re+vn[_]+Bn)%256;var w=vn[_];vn[_]=vn[re],vn[re]=w}this._i=this._j=0},_doProcessBlock:function(x,Pn){x[Pn]^=g.call(this)},keySize:256/32,ivSize:0});function g(){for(var x=this._S,Pn=this._i,b=this._j,vn=0,_=0;_<4;_++){Pn=(Pn+1)%256,b=(b+x[Pn])%256;var re=x[Pn];x[Pn]=x[b],x[b]=re,vn|=x[(x[Pn]+x[b])%256]<<24-_*8}return this._i=Pn,this._j=b,vn}h.RC4=v._createHelper(m);var y=p.RC4Drop=m.extend({cfg:m.cfg.extend({drop:192}),_doReset:function(){m._doReset.call(this);for(var x=this.cfg.drop;x>0;x--)g.call(this)}});h.RC4Drop=v._createHelper(y)}(),f.RC4})}(rc4)),rc4.exports}var rabbit={exports:{}},hasRequiredRabbit;function requireRabbit(){return hasRequiredRabbit||(hasRequiredRabbit=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.StreamCipher,p=h.algo,m=[],g=[],y=[],x=p.Rabbit=v.extend({_doReset:function(){for(var b=this._key.words,vn=this.cfg.iv,_=0;_<4;_++)b[_]=(b[_]<<8|b[_]>>>24)&16711935|(b[_]<<24|b[_]>>>8)&4278255360;var re=this._X=[b[0],b[3]<<16|b[2]>>>16,b[1],b[0]<<16|b[3]>>>16,b[2],b[1]<<16|b[0]>>>16,b[3],b[2]<<16|b[1]>>>16],Fn=this._C=[b[2]<<16|b[2]>>>16,b[0]&4294901760|b[1]&65535,b[3]<<16|b[3]>>>16,b[1]&4294901760|b[2]&65535,b[0]<<16|b[0]>>>16,b[2]&4294901760|b[3]&65535,b[1]<<16|b[1]>>>16,b[3]&4294901760|b[0]&65535];this._b=0;for(var _=0;_<4;_++)Pn.call(this);for(var _=0;_<8;_++)Fn[_]^=re[_+4&7];if(vn){var Bn=vn.words,w=Bn[0],J=Bn[1],gn=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,Rn=(J<<8|J>>>24)&16711935|(J<<24|J>>>8)&4278255360,zn=gn>>>16|Rn&4294901760,Wn=Rn<<16|gn&65535;Fn[0]^=gn,Fn[1]^=zn,Fn[2]^=Rn,Fn[3]^=Wn,Fn[4]^=gn,Fn[5]^=zn,Fn[6]^=Rn,Fn[7]^=Wn;for(var _=0;_<4;_++)Pn.call(this)}},_doProcessBlock:function(b,vn){var _=this._X;Pn.call(this),m[0]=_[0]^_[5]>>>16^_[3]<<16,m[1]=_[2]^_[7]>>>16^_[5]<<16,m[2]=_[4]^_[1]>>>16^_[7]<<16,m[3]=_[6]^_[3]>>>16^_[1]<<16;for(var re=0;re<4;re++)m[re]=(m[re]<<8|m[re]>>>24)&16711935|(m[re]<<24|m[re]>>>8)&4278255360,b[vn+re]^=m[re]},blockSize:128/32,ivSize:64/32});function Pn(){for(var b=this._X,vn=this._C,_=0;_<8;_++)g[_]=vn[_];vn[0]=vn[0]+1295307597+this._b|0,vn[1]=vn[1]+3545052371+(vn[0]>>>0<g[0]>>>0?1:0)|0,vn[2]=vn[2]+886263092+(vn[1]>>>0<g[1]>>>0?1:0)|0,vn[3]=vn[3]+1295307597+(vn[2]>>>0<g[2]>>>0?1:0)|0,vn[4]=vn[4]+3545052371+(vn[3]>>>0<g[3]>>>0?1:0)|0,vn[5]=vn[5]+886263092+(vn[4]>>>0<g[4]>>>0?1:0)|0,vn[6]=vn[6]+1295307597+(vn[5]>>>0<g[5]>>>0?1:0)|0,vn[7]=vn[7]+3545052371+(vn[6]>>>0<g[6]>>>0?1:0)|0,this._b=vn[7]>>>0<g[7]>>>0?1:0;for(var _=0;_<8;_++){var re=b[_]+vn[_],Fn=re&65535,Bn=re>>>16,w=((Fn*Fn>>>17)+Fn*Bn>>>15)+Bn*Bn,J=((re&4294901760)*re|0)+((re&65535)*re|0);y[_]=w^J}b[0]=y[0]+(y[7]<<16|y[7]>>>16)+(y[6]<<16|y[6]>>>16)|0,b[1]=y[1]+(y[0]<<8|y[0]>>>24)+y[7]|0,b[2]=y[2]+(y[1]<<16|y[1]>>>16)+(y[0]<<16|y[0]>>>16)|0,b[3]=y[3]+(y[2]<<8|y[2]>>>24)+y[1]|0,b[4]=y[4]+(y[3]<<16|y[3]>>>16)+(y[2]<<16|y[2]>>>16)|0,b[5]=y[5]+(y[4]<<8|y[4]>>>24)+y[3]|0,b[6]=y[6]+(y[5]<<16|y[5]>>>16)+(y[4]<<16|y[4]>>>16)|0,b[7]=y[7]+(y[6]<<8|y[6]>>>24)+y[5]|0}h.Rabbit=v._createHelper(x)}(),f.Rabbit})}(rabbit)),rabbit.exports}var rabbitLegacy={exports:{}},hasRequiredRabbitLegacy;function requireRabbitLegacy(){return hasRequiredRabbitLegacy||(hasRequiredRabbitLegacy=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.StreamCipher,p=h.algo,m=[],g=[],y=[],x=p.RabbitLegacy=v.extend({_doReset:function(){var b=this._key.words,vn=this.cfg.iv,_=this._X=[b[0],b[3]<<16|b[2]>>>16,b[1],b[0]<<16|b[3]>>>16,b[2],b[1]<<16|b[0]>>>16,b[3],b[2]<<16|b[1]>>>16],re=this._C=[b[2]<<16|b[2]>>>16,b[0]&4294901760|b[1]&65535,b[3]<<16|b[3]>>>16,b[1]&4294901760|b[2]&65535,b[0]<<16|b[0]>>>16,b[2]&4294901760|b[3]&65535,b[1]<<16|b[1]>>>16,b[3]&4294901760|b[0]&65535];this._b=0;for(var Fn=0;Fn<4;Fn++)Pn.call(this);for(var Fn=0;Fn<8;Fn++)re[Fn]^=_[Fn+4&7];if(vn){var Bn=vn.words,w=Bn[0],J=Bn[1],gn=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,Rn=(J<<8|J>>>24)&16711935|(J<<24|J>>>8)&4278255360,zn=gn>>>16|Rn&4294901760,Wn=Rn<<16|gn&65535;re[0]^=gn,re[1]^=zn,re[2]^=Rn,re[3]^=Wn,re[4]^=gn,re[5]^=zn,re[6]^=Rn,re[7]^=Wn;for(var Fn=0;Fn<4;Fn++)Pn.call(this)}},_doProcessBlock:function(b,vn){var _=this._X;Pn.call(this),m[0]=_[0]^_[5]>>>16^_[3]<<16,m[1]=_[2]^_[7]>>>16^_[5]<<16,m[2]=_[4]^_[1]>>>16^_[7]<<16,m[3]=_[6]^_[3]>>>16^_[1]<<16;for(var re=0;re<4;re++)m[re]=(m[re]<<8|m[re]>>>24)&16711935|(m[re]<<24|m[re]>>>8)&4278255360,b[vn+re]^=m[re]},blockSize:128/32,ivSize:64/32});function Pn(){for(var b=this._X,vn=this._C,_=0;_<8;_++)g[_]=vn[_];vn[0]=vn[0]+1295307597+this._b|0,vn[1]=vn[1]+3545052371+(vn[0]>>>0<g[0]>>>0?1:0)|0,vn[2]=vn[2]+886263092+(vn[1]>>>0<g[1]>>>0?1:0)|0,vn[3]=vn[3]+1295307597+(vn[2]>>>0<g[2]>>>0?1:0)|0,vn[4]=vn[4]+3545052371+(vn[3]>>>0<g[3]>>>0?1:0)|0,vn[5]=vn[5]+886263092+(vn[4]>>>0<g[4]>>>0?1:0)|0,vn[6]=vn[6]+1295307597+(vn[5]>>>0<g[5]>>>0?1:0)|0,vn[7]=vn[7]+3545052371+(vn[6]>>>0<g[6]>>>0?1:0)|0,this._b=vn[7]>>>0<g[7]>>>0?1:0;for(var _=0;_<8;_++){var re=b[_]+vn[_],Fn=re&65535,Bn=re>>>16,w=((Fn*Fn>>>17)+Fn*Bn>>>15)+Bn*Bn,J=((re&4294901760)*re|0)+((re&65535)*re|0);y[_]=w^J}b[0]=y[0]+(y[7]<<16|y[7]>>>16)+(y[6]<<16|y[6]>>>16)|0,b[1]=y[1]+(y[0]<<8|y[0]>>>24)+y[7]|0,b[2]=y[2]+(y[1]<<16|y[1]>>>16)+(y[0]<<16|y[0]>>>16)|0,b[3]=y[3]+(y[2]<<8|y[2]>>>24)+y[1]|0,b[4]=y[4]+(y[3]<<16|y[3]>>>16)+(y[2]<<16|y[2]>>>16)|0,b[5]=y[5]+(y[4]<<8|y[4]>>>24)+y[3]|0,b[6]=y[6]+(y[5]<<16|y[5]>>>16)+(y[4]<<16|y[4]>>>16)|0,b[7]=y[7]+(y[6]<<8|y[6]>>>24)+y[5]|0}h.RabbitLegacy=v._createHelper(x)}(),f.RabbitLegacy})}(rabbitLegacy)),rabbitLegacy.exports}(function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireX64Core(),requireLibTypedarrays(),requireEncUtf16(),requireEncBase64(),requireEncBase64url(),requireMd5(),requireSha1(),requireSha256(),requireSha224(),requireSha512(),requireSha384(),requireSha3(),requireRipemd160(),requireHmac(),requirePbkdf2(),requireEvpkdf(),requireCipherCore(),requireModeCfb(),requireModeCtr(),requireModeCtrGladman(),requireModeOfb(),requireModeEcb(),requirePadAnsix923(),requirePadIso10126(),requirePadIso97971(),requirePadZeropadding(),requirePadNopadding(),requireFormatHex(),requireAes(),requireTripledes(),requireRc4(),requireRabbit(),requireRabbitLegacy())})(commonjsGlobal,function(f){return f})})(cryptoJs);var cryptoJsExports=cryptoJs.exports;const CryptoJS=getDefaultExportFromCjs(cryptoJsExports);var BI_RM="0123456789abcdefghijklmnopqrstuvwxyz";function int2char(c){return BI_RM.charAt(c)}function op_and(c,u){return c&u}function op_or(c,u){return c|u}function op_xor(c,u){return c^u}function op_andnot(c,u){return c&~u}function lbit(c){if(c==0)return-1;var u=0;return c&65535||(c>>=16,u+=16),c&255||(c>>=8,u+=8),c&15||(c>>=4,u+=4),c&3||(c>>=2,u+=2),c&1||++u,u}function cbit(c){for(var u=0;c!=0;)c&=c-1,++u;return u}var b64map="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64pad="=";function hex2b64(c){var u,f,h="";for(u=0;u+3<=c.length;u+=3)f=parseInt(c.substring(u,u+3),16),h+=b64map.charAt(f>>6)+b64map.charAt(f&63);for(u+1==c.length?(f=parseInt(c.substring(u,u+1),16),h+=b64map.charAt(f<<2)):u+2==c.length&&(f=parseInt(c.substring(u,u+2),16),h+=b64map.charAt(f>>2)+b64map.charAt((f&3)<<4));(h.length&3)>0;)h+=b64pad;return h}function b64tohex(c){var u="",f,h=0,d=0;for(f=0;f<c.length&&c.charAt(f)!=b64pad;++f){var v=b64map.indexOf(c.charAt(f));v<0||(h==0?(u+=int2char(v>>2),d=v&3,h=1):h==1?(u+=int2char(d<<2|v>>4),d=v&15,h=2):h==2?(u+=int2char(d),u+=int2char(v>>2),d=v&3,h=3):(u+=int2char(d<<2|v>>4),u+=int2char(v&15),h=0))}return h==1&&(u+=int2char(d<<2)),u}var decoder$1,Hex={decode:function(c){var u;if(decoder$1===void 0){var f="0123456789ABCDEF",h=` \f
|
|
74
|
+
*/return f.mode.CTRGladman=function(){var h=f.lib.BlockCipherMode.extend();function d(m){if((m>>24&255)===255){var g=m>>16&255,y=m>>8&255,x=m&255;g===255?(g=0,y===255?(y=0,x===255?x=0:++x):++y):++g,m=0,m+=g<<16,m+=y<<8,m+=x}else m+=1<<24;return m}function v(m){return(m[0]=d(m[0]))===0&&(m[1]=d(m[1])),m}var p=h.Encryptor=h.extend({processBlock:function(m,g){var y=this._cipher,x=y.blockSize,Bn=this._iv,b=this._counter;Bn&&(b=this._counter=Bn.slice(0),this._iv=void 0),v(b);var re=b.slice(0);y.encryptBlock(re,0);for(var _=0;_<x;_++)m[g+_]^=re[_]}});return h.Decryptor=p,h}(),f.mode.CTRGladman})}(modeCtrGladman)),modeCtrGladman.exports}var modeOfb={exports:{}},hasRequiredModeOfb;function requireModeOfb(){return hasRequiredModeOfb||(hasRequiredModeOfb=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireCipherCore())})(commonjsGlobal,function(f){return f.mode.OFB=function(){var h=f.lib.BlockCipherMode.extend(),d=h.Encryptor=h.extend({processBlock:function(v,p){var m=this._cipher,g=m.blockSize,y=this._iv,x=this._keystream;y&&(x=this._keystream=y.slice(0),this._iv=void 0),m.encryptBlock(x,0);for(var Bn=0;Bn<g;Bn++)v[p+Bn]^=x[Bn]}});return h.Decryptor=d,h}(),f.mode.OFB})}(modeOfb)),modeOfb.exports}var modeEcb={exports:{}},hasRequiredModeEcb;function requireModeEcb(){return hasRequiredModeEcb||(hasRequiredModeEcb=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireCipherCore())})(commonjsGlobal,function(f){return f.mode.ECB=function(){var h=f.lib.BlockCipherMode.extend();return h.Encryptor=h.extend({processBlock:function(d,v){this._cipher.encryptBlock(d,v)}}),h.Decryptor=h.extend({processBlock:function(d,v){this._cipher.decryptBlock(d,v)}}),h}(),f.mode.ECB})}(modeEcb)),modeEcb.exports}var padAnsix923={exports:{}},hasRequiredPadAnsix923;function requirePadAnsix923(){return hasRequiredPadAnsix923||(hasRequiredPadAnsix923=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireCipherCore())})(commonjsGlobal,function(f){return f.pad.AnsiX923={pad:function(h,d){var v=h.sigBytes,p=d*4,m=p-v%p,g=v+m-1;h.clamp(),h.words[g>>>2]|=m<<24-g%4*8,h.sigBytes+=m},unpad:function(h){var d=h.words[h.sigBytes-1>>>2]&255;h.sigBytes-=d}},f.pad.Ansix923})}(padAnsix923)),padAnsix923.exports}var padIso10126={exports:{}},hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireCipherCore())})(commonjsGlobal,function(f){return f.pad.Iso10126={pad:function(h,d){var v=d*4,p=v-h.sigBytes%v;h.concat(f.lib.WordArray.random(p-1)).concat(f.lib.WordArray.create([p<<24],1))},unpad:function(h){var d=h.words[h.sigBytes-1>>>2]&255;h.sigBytes-=d}},f.pad.Iso10126})}(padIso10126)),padIso10126.exports}var padIso97971={exports:{}},hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireCipherCore())})(commonjsGlobal,function(f){return f.pad.Iso97971={pad:function(h,d){h.concat(f.lib.WordArray.create([2147483648],1)),f.pad.ZeroPadding.pad(h,d)},unpad:function(h){f.pad.ZeroPadding.unpad(h),h.sigBytes--}},f.pad.Iso97971})}(padIso97971)),padIso97971.exports}var padZeropadding={exports:{}},hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireCipherCore())})(commonjsGlobal,function(f){return f.pad.ZeroPadding={pad:function(h,d){var v=d*4;h.clamp(),h.sigBytes+=v-(h.sigBytes%v||v)},unpad:function(h){for(var d=h.words,v=h.sigBytes-1,v=h.sigBytes-1;v>=0;v--)if(d[v>>>2]>>>24-v%4*8&255){h.sigBytes=v+1;break}}},f.pad.ZeroPadding})}(padZeropadding)),padZeropadding.exports}var padNopadding={exports:{}},hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireCipherCore())})(commonjsGlobal,function(f){return f.pad.NoPadding={pad:function(){},unpad:function(){}},f.pad.NoPadding})}(padNopadding)),padNopadding.exports}var formatHex={exports:{}},hasRequiredFormatHex;function requireFormatHex(){return hasRequiredFormatHex||(hasRequiredFormatHex=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireCipherCore())})(commonjsGlobal,function(f){return function(h){var d=f,v=d.lib,p=v.CipherParams,m=d.enc,g=m.Hex,y=d.format;y.Hex={stringify:function(x){return x.ciphertext.toString(g)},parse:function(x){var Bn=g.parse(x);return p.create({ciphertext:Bn})}}}(),f.format.Hex})}(formatHex)),formatHex.exports}var aes={exports:{}},hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.BlockCipher,p=h.algo,m=[],g=[],y=[],x=[],Bn=[],b=[],re=[],_=[],vn=[],Fn=[];(function(){for(var J=[],gn=0;gn<256;gn++)gn<128?J[gn]=gn<<1:J[gn]=gn<<1^283;for(var Vn=0,zn=0,gn=0;gn<256;gn++){var Wn=zn^zn<<1^zn<<2^zn<<3^zn<<4;Wn=Wn>>>8^Wn&255^99,m[Vn]=Wn,g[Wn]=Vn;var Un=J[Vn],er=J[Un],Jn=J[er],tr=J[Wn]*257^Wn*16843008;y[Vn]=tr<<24|tr>>>8,x[Vn]=tr<<16|tr>>>16,Bn[Vn]=tr<<8|tr>>>24,b[Vn]=tr;var tr=Jn*16843009^er*65537^Un*257^Vn*16843008;re[Wn]=tr<<24|tr>>>8,_[Wn]=tr<<16|tr>>>16,vn[Wn]=tr<<8|tr>>>24,Fn[Wn]=tr,Vn?(Vn=Un^J[J[J[Jn^Un]]],zn^=J[J[zn]]):Vn=zn=1}})();var Pn=[0,1,2,4,8,16,32,64,128,27,54],w=p.AES=v.extend({_doReset:function(){var J;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var gn=this._keyPriorReset=this._key,Vn=gn.words,zn=gn.sigBytes/4,Wn=this._nRounds=zn+6,Un=(Wn+1)*4,er=this._keySchedule=[],Jn=0;Jn<Un;Jn++)Jn<zn?er[Jn]=Vn[Jn]:(J=er[Jn-1],Jn%zn?zn>6&&Jn%zn==4&&(J=m[J>>>24]<<24|m[J>>>16&255]<<16|m[J>>>8&255]<<8|m[J&255]):(J=J<<8|J>>>24,J=m[J>>>24]<<24|m[J>>>16&255]<<16|m[J>>>8&255]<<8|m[J&255],J^=Pn[Jn/zn|0]<<24),er[Jn]=er[Jn-zn]^J);for(var tr=this._invKeySchedule=[],Qn=0;Qn<Un;Qn++){var Jn=Un-Qn;if(Qn%4)var J=er[Jn];else var J=er[Jn-4];Qn<4||Jn<=4?tr[Qn]=J:tr[Qn]=re[m[J>>>24]]^_[m[J>>>16&255]]^vn[m[J>>>8&255]]^Fn[m[J&255]]}}},encryptBlock:function(J,gn){this._doCryptBlock(J,gn,this._keySchedule,y,x,Bn,b,m)},decryptBlock:function(J,gn){var Vn=J[gn+1];J[gn+1]=J[gn+3],J[gn+3]=Vn,this._doCryptBlock(J,gn,this._invKeySchedule,re,_,vn,Fn,g);var Vn=J[gn+1];J[gn+1]=J[gn+3],J[gn+3]=Vn},_doCryptBlock:function(J,gn,Vn,zn,Wn,Un,er,Jn){for(var tr=this._nRounds,Qn=J[gn]^Vn[0],ir=J[gn+1]^Vn[1],cr=J[gn+2]^Vn[2],Xn=J[gn+3]^Vn[3],Hn=4,Yn=1;Yn<tr;Yn++){var Rn=zn[Qn>>>24]^Wn[ir>>>16&255]^Un[cr>>>8&255]^er[Xn&255]^Vn[Hn++],Gn=zn[ir>>>24]^Wn[cr>>>16&255]^Un[Xn>>>8&255]^er[Qn&255]^Vn[Hn++],Zn=zn[cr>>>24]^Wn[Xn>>>16&255]^Un[Qn>>>8&255]^er[ir&255]^Vn[Hn++],qn=zn[Xn>>>24]^Wn[Qn>>>16&255]^Un[ir>>>8&255]^er[cr&255]^Vn[Hn++];Qn=Rn,ir=Gn,cr=Zn,Xn=qn}var Rn=(Jn[Qn>>>24]<<24|Jn[ir>>>16&255]<<16|Jn[cr>>>8&255]<<8|Jn[Xn&255])^Vn[Hn++],Gn=(Jn[ir>>>24]<<24|Jn[cr>>>16&255]<<16|Jn[Xn>>>8&255]<<8|Jn[Qn&255])^Vn[Hn++],Zn=(Jn[cr>>>24]<<24|Jn[Xn>>>16&255]<<16|Jn[Qn>>>8&255]<<8|Jn[ir&255])^Vn[Hn++],qn=(Jn[Xn>>>24]<<24|Jn[Qn>>>16&255]<<16|Jn[ir>>>8&255]<<8|Jn[cr&255])^Vn[Hn++];J[gn]=Rn,J[gn+1]=Gn,J[gn+2]=Zn,J[gn+3]=qn},keySize:256/32});h.AES=v._createHelper(w)}(),f.AES})}(aes)),aes.exports}var tripledes={exports:{}},hasRequiredTripledes;function requireTripledes(){return hasRequiredTripledes||(hasRequiredTripledes=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.WordArray,p=d.BlockCipher,m=h.algo,g=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],y=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],x=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],Bn=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],b=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],re=m.DES=p.extend({_doReset:function(){for(var Pn=this._key,w=Pn.words,J=[],gn=0;gn<56;gn++){var Vn=g[gn]-1;J[gn]=w[Vn>>>5]>>>31-Vn%32&1}for(var zn=this._subKeys=[],Wn=0;Wn<16;Wn++){for(var Un=zn[Wn]=[],er=x[Wn],gn=0;gn<24;gn++)Un[gn/6|0]|=J[(y[gn]-1+er)%28]<<31-gn%6,Un[4+(gn/6|0)]|=J[28+(y[gn+24]-1+er)%28]<<31-gn%6;Un[0]=Un[0]<<1|Un[0]>>>31;for(var gn=1;gn<7;gn++)Un[gn]=Un[gn]>>>(gn-1)*4+3;Un[7]=Un[7]<<5|Un[7]>>>27}for(var Jn=this._invSubKeys=[],gn=0;gn<16;gn++)Jn[gn]=zn[15-gn]},encryptBlock:function(Pn,w){this._doCryptBlock(Pn,w,this._subKeys)},decryptBlock:function(Pn,w){this._doCryptBlock(Pn,w,this._invSubKeys)},_doCryptBlock:function(Pn,w,J){this._lBlock=Pn[w],this._rBlock=Pn[w+1],_.call(this,4,252645135),_.call(this,16,65535),vn.call(this,2,858993459),vn.call(this,8,16711935),_.call(this,1,1431655765);for(var gn=0;gn<16;gn++){for(var Vn=J[gn],zn=this._lBlock,Wn=this._rBlock,Un=0,er=0;er<8;er++)Un|=Bn[er][((Wn^Vn[er])&b[er])>>>0];this._lBlock=Wn,this._rBlock=zn^Un}var Jn=this._lBlock;this._lBlock=this._rBlock,this._rBlock=Jn,_.call(this,1,1431655765),vn.call(this,8,16711935),vn.call(this,2,858993459),_.call(this,16,65535),_.call(this,4,252645135),Pn[w]=this._lBlock,Pn[w+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function _(Pn,w){var J=(this._lBlock>>>Pn^this._rBlock)&w;this._rBlock^=J,this._lBlock^=J<<Pn}function vn(Pn,w){var J=(this._rBlock>>>Pn^this._lBlock)&w;this._lBlock^=J,this._rBlock^=J<<Pn}h.DES=p._createHelper(re);var Fn=m.TripleDES=p.extend({_doReset:function(){var Pn=this._key,w=Pn.words;if(w.length!==2&&w.length!==4&&w.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var J=w.slice(0,2),gn=w.length<4?w.slice(0,2):w.slice(2,4),Vn=w.length<6?w.slice(0,2):w.slice(4,6);this._des1=re.createEncryptor(v.create(J)),this._des2=re.createEncryptor(v.create(gn)),this._des3=re.createEncryptor(v.create(Vn))},encryptBlock:function(Pn,w){this._des1.encryptBlock(Pn,w),this._des2.decryptBlock(Pn,w),this._des3.encryptBlock(Pn,w)},decryptBlock:function(Pn,w){this._des3.decryptBlock(Pn,w),this._des2.encryptBlock(Pn,w),this._des1.decryptBlock(Pn,w)},keySize:192/32,ivSize:64/32,blockSize:64/32});h.TripleDES=p._createHelper(Fn)}(),f.TripleDES})}(tripledes)),tripledes.exports}var rc4={exports:{}},hasRequiredRc4;function requireRc4(){return hasRequiredRc4||(hasRequiredRc4=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.StreamCipher,p=h.algo,m=p.RC4=v.extend({_doReset:function(){for(var x=this._key,Bn=x.words,b=x.sigBytes,re=this._S=[],_=0;_<256;_++)re[_]=_;for(var _=0,vn=0;_<256;_++){var Fn=_%b,Pn=Bn[Fn>>>2]>>>24-Fn%4*8&255;vn=(vn+re[_]+Pn)%256;var w=re[_];re[_]=re[vn],re[vn]=w}this._i=this._j=0},_doProcessBlock:function(x,Bn){x[Bn]^=g.call(this)},keySize:256/32,ivSize:0});function g(){for(var x=this._S,Bn=this._i,b=this._j,re=0,_=0;_<4;_++){Bn=(Bn+1)%256,b=(b+x[Bn])%256;var vn=x[Bn];x[Bn]=x[b],x[b]=vn,re|=x[(x[Bn]+x[b])%256]<<24-_*8}return this._i=Bn,this._j=b,re}h.RC4=v._createHelper(m);var y=p.RC4Drop=m.extend({cfg:m.cfg.extend({drop:192}),_doReset:function(){m._doReset.call(this);for(var x=this.cfg.drop;x>0;x--)g.call(this)}});h.RC4Drop=v._createHelper(y)}(),f.RC4})}(rc4)),rc4.exports}var rabbit={exports:{}},hasRequiredRabbit;function requireRabbit(){return hasRequiredRabbit||(hasRequiredRabbit=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.StreamCipher,p=h.algo,m=[],g=[],y=[],x=p.Rabbit=v.extend({_doReset:function(){for(var b=this._key.words,re=this.cfg.iv,_=0;_<4;_++)b[_]=(b[_]<<8|b[_]>>>24)&16711935|(b[_]<<24|b[_]>>>8)&4278255360;var vn=this._X=[b[0],b[3]<<16|b[2]>>>16,b[1],b[0]<<16|b[3]>>>16,b[2],b[1]<<16|b[0]>>>16,b[3],b[2]<<16|b[1]>>>16],Fn=this._C=[b[2]<<16|b[2]>>>16,b[0]&4294901760|b[1]&65535,b[3]<<16|b[3]>>>16,b[1]&4294901760|b[2]&65535,b[0]<<16|b[0]>>>16,b[2]&4294901760|b[3]&65535,b[1]<<16|b[1]>>>16,b[3]&4294901760|b[0]&65535];this._b=0;for(var _=0;_<4;_++)Bn.call(this);for(var _=0;_<8;_++)Fn[_]^=vn[_+4&7];if(re){var Pn=re.words,w=Pn[0],J=Pn[1],gn=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,Vn=(J<<8|J>>>24)&16711935|(J<<24|J>>>8)&4278255360,zn=gn>>>16|Vn&4294901760,Wn=Vn<<16|gn&65535;Fn[0]^=gn,Fn[1]^=zn,Fn[2]^=Vn,Fn[3]^=Wn,Fn[4]^=gn,Fn[5]^=zn,Fn[6]^=Vn,Fn[7]^=Wn;for(var _=0;_<4;_++)Bn.call(this)}},_doProcessBlock:function(b,re){var _=this._X;Bn.call(this),m[0]=_[0]^_[5]>>>16^_[3]<<16,m[1]=_[2]^_[7]>>>16^_[5]<<16,m[2]=_[4]^_[1]>>>16^_[7]<<16,m[3]=_[6]^_[3]>>>16^_[1]<<16;for(var vn=0;vn<4;vn++)m[vn]=(m[vn]<<8|m[vn]>>>24)&16711935|(m[vn]<<24|m[vn]>>>8)&4278255360,b[re+vn]^=m[vn]},blockSize:128/32,ivSize:64/32});function Bn(){for(var b=this._X,re=this._C,_=0;_<8;_++)g[_]=re[_];re[0]=re[0]+1295307597+this._b|0,re[1]=re[1]+3545052371+(re[0]>>>0<g[0]>>>0?1:0)|0,re[2]=re[2]+886263092+(re[1]>>>0<g[1]>>>0?1:0)|0,re[3]=re[3]+1295307597+(re[2]>>>0<g[2]>>>0?1:0)|0,re[4]=re[4]+3545052371+(re[3]>>>0<g[3]>>>0?1:0)|0,re[5]=re[5]+886263092+(re[4]>>>0<g[4]>>>0?1:0)|0,re[6]=re[6]+1295307597+(re[5]>>>0<g[5]>>>0?1:0)|0,re[7]=re[7]+3545052371+(re[6]>>>0<g[6]>>>0?1:0)|0,this._b=re[7]>>>0<g[7]>>>0?1:0;for(var _=0;_<8;_++){var vn=b[_]+re[_],Fn=vn&65535,Pn=vn>>>16,w=((Fn*Fn>>>17)+Fn*Pn>>>15)+Pn*Pn,J=((vn&4294901760)*vn|0)+((vn&65535)*vn|0);y[_]=w^J}b[0]=y[0]+(y[7]<<16|y[7]>>>16)+(y[6]<<16|y[6]>>>16)|0,b[1]=y[1]+(y[0]<<8|y[0]>>>24)+y[7]|0,b[2]=y[2]+(y[1]<<16|y[1]>>>16)+(y[0]<<16|y[0]>>>16)|0,b[3]=y[3]+(y[2]<<8|y[2]>>>24)+y[1]|0,b[4]=y[4]+(y[3]<<16|y[3]>>>16)+(y[2]<<16|y[2]>>>16)|0,b[5]=y[5]+(y[4]<<8|y[4]>>>24)+y[3]|0,b[6]=y[6]+(y[5]<<16|y[5]>>>16)+(y[4]<<16|y[4]>>>16)|0,b[7]=y[7]+(y[6]<<8|y[6]>>>24)+y[5]|0}h.Rabbit=v._createHelper(x)}(),f.Rabbit})}(rabbit)),rabbit.exports}var rabbitLegacy={exports:{}},hasRequiredRabbitLegacy;function requireRabbitLegacy(){return hasRequiredRabbitLegacy||(hasRequiredRabbitLegacy=1,function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(f){return function(){var h=f,d=h.lib,v=d.StreamCipher,p=h.algo,m=[],g=[],y=[],x=p.RabbitLegacy=v.extend({_doReset:function(){var b=this._key.words,re=this.cfg.iv,_=this._X=[b[0],b[3]<<16|b[2]>>>16,b[1],b[0]<<16|b[3]>>>16,b[2],b[1]<<16|b[0]>>>16,b[3],b[2]<<16|b[1]>>>16],vn=this._C=[b[2]<<16|b[2]>>>16,b[0]&4294901760|b[1]&65535,b[3]<<16|b[3]>>>16,b[1]&4294901760|b[2]&65535,b[0]<<16|b[0]>>>16,b[2]&4294901760|b[3]&65535,b[1]<<16|b[1]>>>16,b[3]&4294901760|b[0]&65535];this._b=0;for(var Fn=0;Fn<4;Fn++)Bn.call(this);for(var Fn=0;Fn<8;Fn++)vn[Fn]^=_[Fn+4&7];if(re){var Pn=re.words,w=Pn[0],J=Pn[1],gn=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,Vn=(J<<8|J>>>24)&16711935|(J<<24|J>>>8)&4278255360,zn=gn>>>16|Vn&4294901760,Wn=Vn<<16|gn&65535;vn[0]^=gn,vn[1]^=zn,vn[2]^=Vn,vn[3]^=Wn,vn[4]^=gn,vn[5]^=zn,vn[6]^=Vn,vn[7]^=Wn;for(var Fn=0;Fn<4;Fn++)Bn.call(this)}},_doProcessBlock:function(b,re){var _=this._X;Bn.call(this),m[0]=_[0]^_[5]>>>16^_[3]<<16,m[1]=_[2]^_[7]>>>16^_[5]<<16,m[2]=_[4]^_[1]>>>16^_[7]<<16,m[3]=_[6]^_[3]>>>16^_[1]<<16;for(var vn=0;vn<4;vn++)m[vn]=(m[vn]<<8|m[vn]>>>24)&16711935|(m[vn]<<24|m[vn]>>>8)&4278255360,b[re+vn]^=m[vn]},blockSize:128/32,ivSize:64/32});function Bn(){for(var b=this._X,re=this._C,_=0;_<8;_++)g[_]=re[_];re[0]=re[0]+1295307597+this._b|0,re[1]=re[1]+3545052371+(re[0]>>>0<g[0]>>>0?1:0)|0,re[2]=re[2]+886263092+(re[1]>>>0<g[1]>>>0?1:0)|0,re[3]=re[3]+1295307597+(re[2]>>>0<g[2]>>>0?1:0)|0,re[4]=re[4]+3545052371+(re[3]>>>0<g[3]>>>0?1:0)|0,re[5]=re[5]+886263092+(re[4]>>>0<g[4]>>>0?1:0)|0,re[6]=re[6]+1295307597+(re[5]>>>0<g[5]>>>0?1:0)|0,re[7]=re[7]+3545052371+(re[6]>>>0<g[6]>>>0?1:0)|0,this._b=re[7]>>>0<g[7]>>>0?1:0;for(var _=0;_<8;_++){var vn=b[_]+re[_],Fn=vn&65535,Pn=vn>>>16,w=((Fn*Fn>>>17)+Fn*Pn>>>15)+Pn*Pn,J=((vn&4294901760)*vn|0)+((vn&65535)*vn|0);y[_]=w^J}b[0]=y[0]+(y[7]<<16|y[7]>>>16)+(y[6]<<16|y[6]>>>16)|0,b[1]=y[1]+(y[0]<<8|y[0]>>>24)+y[7]|0,b[2]=y[2]+(y[1]<<16|y[1]>>>16)+(y[0]<<16|y[0]>>>16)|0,b[3]=y[3]+(y[2]<<8|y[2]>>>24)+y[1]|0,b[4]=y[4]+(y[3]<<16|y[3]>>>16)+(y[2]<<16|y[2]>>>16)|0,b[5]=y[5]+(y[4]<<8|y[4]>>>24)+y[3]|0,b[6]=y[6]+(y[5]<<16|y[5]>>>16)+(y[4]<<16|y[4]>>>16)|0,b[7]=y[7]+(y[6]<<8|y[6]>>>24)+y[5]|0}h.RabbitLegacy=v._createHelper(x)}(),f.RabbitLegacy})}(rabbitLegacy)),rabbitLegacy.exports}(function(c,u){(function(f,h,d){c.exports=h(requireCore(),requireX64Core(),requireLibTypedarrays(),requireEncUtf16(),requireEncBase64(),requireEncBase64url(),requireMd5(),requireSha1(),requireSha256(),requireSha224(),requireSha512(),requireSha384(),requireSha3(),requireRipemd160(),requireHmac(),requirePbkdf2(),requireEvpkdf(),requireCipherCore(),requireModeCfb(),requireModeCtr(),requireModeCtrGladman(),requireModeOfb(),requireModeEcb(),requirePadAnsix923(),requirePadIso10126(),requirePadIso97971(),requirePadZeropadding(),requirePadNopadding(),requireFormatHex(),requireAes(),requireTripledes(),requireRc4(),requireRabbit(),requireRabbitLegacy())})(commonjsGlobal,function(f){return f})})(cryptoJs);var cryptoJsExports=cryptoJs.exports;const CryptoJS=getDefaultExportFromCjs(cryptoJsExports);var BI_RM="0123456789abcdefghijklmnopqrstuvwxyz";function int2char(c){return BI_RM.charAt(c)}function op_and(c,u){return c&u}function op_or(c,u){return c|u}function op_xor(c,u){return c^u}function op_andnot(c,u){return c&~u}function lbit(c){if(c==0)return-1;var u=0;return c&65535||(c>>=16,u+=16),c&255||(c>>=8,u+=8),c&15||(c>>=4,u+=4),c&3||(c>>=2,u+=2),c&1||++u,u}function cbit(c){for(var u=0;c!=0;)c&=c-1,++u;return u}var b64map="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64pad="=";function hex2b64(c){var u,f,h="";for(u=0;u+3<=c.length;u+=3)f=parseInt(c.substring(u,u+3),16),h+=b64map.charAt(f>>6)+b64map.charAt(f&63);for(u+1==c.length?(f=parseInt(c.substring(u,u+1),16),h+=b64map.charAt(f<<2)):u+2==c.length&&(f=parseInt(c.substring(u,u+2),16),h+=b64map.charAt(f>>2)+b64map.charAt((f&3)<<4));(h.length&3)>0;)h+=b64pad;return h}function b64tohex(c){var u="",f,h=0,d=0;for(f=0;f<c.length&&c.charAt(f)!=b64pad;++f){var v=b64map.indexOf(c.charAt(f));v<0||(h==0?(u+=int2char(v>>2),d=v&3,h=1):h==1?(u+=int2char(d<<2|v>>4),d=v&15,h=2):h==2?(u+=int2char(d),u+=int2char(v>>2),d=v&3,h=3):(u+=int2char(d<<2|v>>4),u+=int2char(v&15),h=0))}return h==1&&(u+=int2char(d<<2)),u}var decoder$1,Hex={decode:function(c){var u;if(decoder$1===void 0){var f="0123456789ABCDEF",h=` \f
|
|
75
75
|
\r \u2028\u2029`;for(decoder$1={},u=0;u<16;++u)decoder$1[f.charAt(u)]=u;for(f=f.toLowerCase(),u=10;u<16;++u)decoder$1[f.charAt(u)]=u;for(u=0;u<h.length;++u)decoder$1[h.charAt(u)]=-1}var d=[],v=0,p=0;for(u=0;u<c.length;++u){var m=c.charAt(u);if(m=="=")break;if(m=decoder$1[m],m!=-1){if(m===void 0)throw new Error("Illegal character at offset "+u);v|=m,++p>=2?(d[d.length]=v,v=0,p=0):v<<=4}}if(p)throw new Error("Hex encoding incomplete: 4 bits missing");return d}},decoder,Base64={decode:function(c){var u;if(decoder===void 0){var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=`= \f
|
|
76
76
|
\r \u2028\u2029`;for(decoder=Object.create(null),u=0;u<64;++u)decoder[f.charAt(u)]=u;for(decoder["-"]=62,decoder._=63,u=0;u<h.length;++u)decoder[h.charAt(u)]=-1}var d=[],v=0,p=0;for(u=0;u<c.length;++u){var m=c.charAt(u);if(m=="=")break;if(m=decoder[m],m!=-1){if(m===void 0)throw new Error("Illegal character at offset "+u);v|=m,++p>=4?(d[d.length]=v>>16,d[d.length]=v>>8&255,d[d.length]=v&255,v=0,p=0):v<<=6}}switch(p){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:d[d.length]=v>>10;break;case 3:d[d.length]=v>>16,d[d.length]=v>>8&255;break}return d},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(c){var u=Base64.re.exec(c);if(u)if(u[1])c=u[1];else if(u[2])c=u[2];else throw new Error("RegExp out of sync");return Base64.decode(c)}},max=1e13,Int10=function(){function c(u){this.buf=[+u||0]}return c.prototype.mulAdd=function(u,f){var h=this.buf,d=h.length,v,p;for(v=0;v<d;++v)p=h[v]*u+f,p<max?f=0:(f=0|p/max,p-=f*max),h[v]=p;f>0&&(h[v]=f)},c.prototype.sub=function(u){var f=this.buf,h=f.length,d,v;for(d=0;d<h;++d)v=f[d]-u,v<0?(v+=max,u=1):u=0,f[d]=v;for(;f[f.length-1]===0;)f.pop()},c.prototype.toString=function(u){if((u||10)!=10)throw new Error("only base 10 is supported");for(var f=this.buf,h=f[f.length-1].toString(),d=f.length-2;d>=0;--d)h+=(max+f[d]).toString().substring(1);return h},c.prototype.valueOf=function(){for(var u=this.buf,f=0,h=u.length-1;h>=0;--h)f=f*max+u[h];return f},c.prototype.simplify=function(){var u=this.buf;return u.length==1?u[0]:this},c}(),ellipsis="…",reTimeS=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,reTimeL=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function stringCut(c,u){return c.length>u&&(c=c.substring(0,u)+ellipsis),c}var Stream=function(){function c(u,f){this.hexDigits="0123456789ABCDEF",u instanceof c?(this.enc=u.enc,this.pos=u.pos):(this.enc=u,this.pos=f)}return c.prototype.get=function(u){if(u===void 0&&(u=this.pos++),u>=this.enc.length)throw new Error("Requesting byte offset ".concat(u," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(u):this.enc[u]},c.prototype.hexByte=function(u){return this.hexDigits.charAt(u>>4&15)+this.hexDigits.charAt(u&15)},c.prototype.hexDump=function(u,f,h){for(var d="",v=u;v<f;++v)if(d+=this.hexByte(this.get(v)),h!==!0)switch(v&15){case 7:d+=" ";break;case 15:d+=`
|
|
77
77
|
`;break;default:d+=" "}return d},c.prototype.isASCII=function(u,f){for(var h=u;h<f;++h){var d=this.get(h);if(d<32||d>176)return!1}return!0},c.prototype.parseStringISO=function(u,f){for(var h="",d=u;d<f;++d)h+=String.fromCharCode(this.get(d));return h},c.prototype.parseStringUTF=function(u,f){for(var h="",d=u;d<f;){var v=this.get(d++);v<128?h+=String.fromCharCode(v):v>191&&v<224?h+=String.fromCharCode((v&31)<<6|this.get(d++)&63):h+=String.fromCharCode((v&15)<<12|(this.get(d++)&63)<<6|this.get(d++)&63)}return h},c.prototype.parseStringBMP=function(u,f){for(var h="",d,v,p=u;p<f;)d=this.get(p++),v=this.get(p++),h+=String.fromCharCode(d<<8|v);return h},c.prototype.parseTime=function(u,f,h){var d=this.parseStringISO(u,f),v=(h?reTimeS:reTimeL).exec(d);return v?(h&&(v[1]=+v[1],v[1]+=+v[1]<70?2e3:1900),d=v[1]+"-"+v[2]+"-"+v[3]+" "+v[4],v[5]&&(d+=":"+v[5],v[6]&&(d+=":"+v[6],v[7]&&(d+="."+v[7]))),v[8]&&(d+=" UTC",v[8]!="Z"&&(d+=v[8],v[9]&&(d+=":"+v[9]))),d):"Unrecognized time: "+d},c.prototype.parseInteger=function(u,f){for(var h=this.get(u),d=h>127,v=d?255:0,p,m="";h==v&&++u<f;)h=this.get(u);if(p=f-u,p===0)return d?-1:0;if(p>4){for(m=h,p<<=3;!((+m^v)&128);)m=+m<<1,--p;m="("+p+` bit)
|
|
78
78
|
`}d&&(h=h-256);for(var g=new Int10(h),y=u+1;y<f;++y)g.mulAdd(256,this.get(y));return m+g.toString()},c.prototype.parseBitString=function(u,f,h){for(var d=this.get(u),v=(f-u-1<<3)-d,p="("+v+` bit)
|
|
79
|
-
`,m="",g=u+1;g<f;++g){for(var y=this.get(g),x=g==f-1?d:0,
|
|
79
|
+
`,m="",g=u+1;g<f;++g){for(var y=this.get(g),x=g==f-1?d:0,Bn=7;Bn>=x;--Bn)m+=y>>Bn&1?"1":"0";if(m.length>h)return p+stringCut(m,h)}return p+m},c.prototype.parseOctetString=function(u,f,h){if(this.isASCII(u,f))return stringCut(this.parseStringISO(u,f),h);var d=f-u,v="("+d+` byte)
|
|
80
80
|
`;h/=2,d>h&&(f=u+h);for(var p=u;p<f;++p)v+=this.hexByte(this.get(p));return d>h&&(v+=ellipsis),v},c.prototype.parseOID=function(u,f,h){for(var d="",v=new Int10,p=0,m=u;m<f;++m){var g=this.get(m);if(v.mulAdd(128,g&127),p+=7,!(g&128)){if(d==="")if(v=v.simplify(),v instanceof Int10)v.sub(80),d="2."+v.toString();else{var y=v<80?v<40?0:1:2;d=y+"."+(v-y*40)}else d+="."+v.toString();if(d.length>h)return stringCut(d,h);v=new Int10,p=0}}return p>0&&(d+=".incomplete"),d},c}(),ASN1=function(){function c(u,f,h,d,v){if(!(d instanceof ASN1Tag))throw new Error("Invalid tag value.");this.stream=u,this.header=f,this.length=h,this.tag=d,this.sub=v}return c.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},c.prototype.content=function(u){if(this.tag===void 0)return null;u===void 0&&(u=1/0);var f=this.posContent(),h=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(f,f+h,u);switch(this.tag.tagNumber){case 1:return this.stream.get(f)===0?"false":"true";case 2:return this.stream.parseInteger(f,f+h);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(f,f+h,u);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(f,f+h,u);case 6:return this.stream.parseOID(f,f+h,u);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return stringCut(this.stream.parseStringUTF(f,f+h),u);case 18:case 19:case 20:case 21:case 22:case 26:return stringCut(this.stream.parseStringISO(f,f+h),u);case 30:return stringCut(this.stream.parseStringBMP(f,f+h),u);case 23:case 24:return this.stream.parseTime(f,f+h,this.tag.tagNumber==23)}return null},c.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},c.prototype.toPrettyString=function(u){u===void 0&&(u="");var f=u+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(f+="+"),f+=this.length,this.tag.tagConstructed?f+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(f+=" (encapsulates)"),f+=`
|
|
81
|
-
`,this.sub!==null){u+=" ";for(var h=0,d=this.sub.length;h<d;++h)f+=this.sub[h].toPrettyString(u)}return f},c.prototype.posStart=function(){return this.stream.pos},c.prototype.posContent=function(){return this.stream.pos+this.header},c.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},c.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},c.decodeLength=function(u){var f=u.get(),h=f&127;if(h==f)return h;if(h>6)throw new Error("Length over 48 bits not supported at position "+(u.pos-1));if(h===0)return null;f=0;for(var d=0;d<h;++d)f=f*256+u.get();return f},c.prototype.getHexStringValue=function(){var u=this.toHexString(),f=this.header*2,h=this.length*2;return u.substr(f,h)},c.decode=function(u){var f;u instanceof Stream?f=u:f=new Stream(u,0);var h=new Stream(f),d=new ASN1Tag(f),v=c.decodeLength(f),p=f.pos,m=p-h.pos,g=null,y=function(){var Pn=[];if(v!==null){for(var b=p+v;f.pos<b;)Pn[Pn.length]=c.decode(f);if(f.pos!=b)throw new Error("Content size is not correct for container starting at offset "+p)}else try{for(;;){var vn=c.decode(f);if(vn.tag.isEOC())break;Pn[Pn.length]=vn}v=p-f.pos}catch(_){throw new Error("Exception while decoding undefined length content: "+_)}return Pn};if(d.tagConstructed)g=y();else if(d.isUniversal()&&(d.tagNumber==3||d.tagNumber==4))try{if(d.tagNumber==3&&f.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");g=y();for(var x=0;x<g.length;++x)if(g[x].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{g=null}if(g===null){if(v===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+p);f.pos=p+Math.abs(v)}return new c(h,m,v,d,g)},c}(),ASN1Tag=function(){function c(u){var f=u.get();if(this.tagClass=f>>6,this.tagConstructed=(f&32)!==0,this.tagNumber=f&31,this.tagNumber==31){var h=new Int10;do f=u.get(),h.mulAdd(128,f&127);while(f&128);this.tagNumber=h.simplify()}}return c.prototype.isUniversal=function(){return this.tagClass===0},c.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},c}(),dbits,canary=0xdeadbeefcafe,j_lm=(canary&16777215)==15715070,lowprimes=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],lplim=(1<<26)/lowprimes[lowprimes.length-1],BigInteger=function(){function c(u,f,h){u!=null&&(typeof u=="number"?this.fromNumber(u,f,h):f==null&&typeof u!="string"?this.fromString(u,256):this.fromString(u,f))}return c.prototype.toString=function(u){if(this.s<0)return"-"+this.negate().toString(u);var f;if(u==16)f=4;else if(u==8)f=3;else if(u==2)f=1;else if(u==32)f=5;else if(u==4)f=2;else return this.toRadix(u);var h=(1<<f)-1,d,v=!1,p="",m=this.t,g=this.DB-m*this.DB%f;if(m-- >0)for(g<this.DB&&(d=this[m]>>g)>0&&(v=!0,p=int2char(d));m>=0;)g<f?(d=(this[m]&(1<<g)-1)<<f-g,d|=this[--m]>>(g+=this.DB-f)):(d=this[m]>>(g-=f)&h,g<=0&&(g+=this.DB,--m)),d>0&&(v=!0),v&&(p+=int2char(d));return v?p:"0"},c.prototype.negate=function(){var u=nbi();return c.ZERO.subTo(this,u),u},c.prototype.abs=function(){return this.s<0?this.negate():this},c.prototype.compareTo=function(u){var f=this.s-u.s;if(f!=0)return f;var h=this.t;if(f=h-u.t,f!=0)return this.s<0?-f:f;for(;--h>=0;)if((f=this[h]-u[h])!=0)return f;return 0},c.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+nbits(this[this.t-1]^this.s&this.DM)},c.prototype.mod=function(u){var f=nbi();return this.abs().divRemTo(u,null,f),this.s<0&&f.compareTo(c.ZERO)>0&&u.subTo(f,f),f},c.prototype.modPowInt=function(u,f){var h;return u<256||f.isEven()?h=new Classic(f):h=new Montgomery(f),this.exp(u,h)},c.prototype.clone=function(){var u=nbi();return this.copyTo(u),u},c.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},c.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},c.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},c.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},c.prototype.toByteArray=function(){var u=this.t,f=[];f[0]=this.s;var h=this.DB-u*this.DB%8,d,v=0;if(u-- >0)for(h<this.DB&&(d=this[u]>>h)!=(this.s&this.DM)>>h&&(f[v++]=d|this.s<<this.DB-h);u>=0;)h<8?(d=(this[u]&(1<<h)-1)<<8-h,d|=this[--u]>>(h+=this.DB-8)):(d=this[u]>>(h-=8)&255,h<=0&&(h+=this.DB,--u)),d&128&&(d|=-256),v==0&&(this.s&128)!=(d&128)&&++v,(v>0||d!=this.s)&&(f[v++]=d);return f},c.prototype.equals=function(u){return this.compareTo(u)==0},c.prototype.min=function(u){return this.compareTo(u)<0?this:u},c.prototype.max=function(u){return this.compareTo(u)>0?this:u},c.prototype.and=function(u){var f=nbi();return this.bitwiseTo(u,op_and,f),f},c.prototype.or=function(u){var f=nbi();return this.bitwiseTo(u,op_or,f),f},c.prototype.xor=function(u){var f=nbi();return this.bitwiseTo(u,op_xor,f),f},c.prototype.andNot=function(u){var f=nbi();return this.bitwiseTo(u,op_andnot,f),f},c.prototype.not=function(){for(var u=nbi(),f=0;f<this.t;++f)u[f]=this.DM&~this[f];return u.t=this.t,u.s=~this.s,u},c.prototype.shiftLeft=function(u){var f=nbi();return u<0?this.rShiftTo(-u,f):this.lShiftTo(u,f),f},c.prototype.shiftRight=function(u){var f=nbi();return u<0?this.lShiftTo(-u,f):this.rShiftTo(u,f),f},c.prototype.getLowestSetBit=function(){for(var u=0;u<this.t;++u)if(this[u]!=0)return u*this.DB+lbit(this[u]);return this.s<0?this.t*this.DB:-1},c.prototype.bitCount=function(){for(var u=0,f=this.s&this.DM,h=0;h<this.t;++h)u+=cbit(this[h]^f);return u},c.prototype.testBit=function(u){var f=Math.floor(u/this.DB);return f>=this.t?this.s!=0:(this[f]&1<<u%this.DB)!=0},c.prototype.setBit=function(u){return this.changeBit(u,op_or)},c.prototype.clearBit=function(u){return this.changeBit(u,op_andnot)},c.prototype.flipBit=function(u){return this.changeBit(u,op_xor)},c.prototype.add=function(u){var f=nbi();return this.addTo(u,f),f},c.prototype.subtract=function(u){var f=nbi();return this.subTo(u,f),f},c.prototype.multiply=function(u){var f=nbi();return this.multiplyTo(u,f),f},c.prototype.divide=function(u){var f=nbi();return this.divRemTo(u,f,null),f},c.prototype.remainder=function(u){var f=nbi();return this.divRemTo(u,null,f),f},c.prototype.divideAndRemainder=function(u){var f=nbi(),h=nbi();return this.divRemTo(u,f,h),[f,h]},c.prototype.modPow=function(u,f){var h=u.bitLength(),d,v=nbv(1),p;if(h<=0)return v;h<18?d=1:h<48?d=3:h<144?d=4:h<768?d=5:d=6,h<8?p=new Classic(f):f.isEven()?p=new Barrett(f):p=new Montgomery(f);var m=[],g=3,y=d-1,x=(1<<d)-1;if(m[1]=p.convert(this),d>1){var Pn=nbi();for(p.sqrTo(m[1],Pn);g<=x;)m[g]=nbi(),p.mulTo(Pn,m[g-2],m[g]),g+=2}var b=u.t-1,vn,_=!0,re=nbi(),Fn;for(h=nbits(u[b])-1;b>=0;){for(h>=y?vn=u[b]>>h-y&x:(vn=(u[b]&(1<<h+1)-1)<<y-h,b>0&&(vn|=u[b-1]>>this.DB+h-y)),g=d;!(vn&1);)vn>>=1,--g;if((h-=g)<0&&(h+=this.DB,--b),_)m[vn].copyTo(v),_=!1;else{for(;g>1;)p.sqrTo(v,re),p.sqrTo(re,v),g-=2;g>0?p.sqrTo(v,re):(Fn=v,v=re,re=Fn),p.mulTo(re,m[vn],v)}for(;b>=0&&!(u[b]&1<<h);)p.sqrTo(v,re),Fn=v,v=re,re=Fn,--h<0&&(h=this.DB-1,--b)}return p.revert(v)},c.prototype.modInverse=function(u){var f=u.isEven();if(this.isEven()&&f||u.signum()==0)return c.ZERO;for(var h=u.clone(),d=this.clone(),v=nbv(1),p=nbv(0),m=nbv(0),g=nbv(1);h.signum()!=0;){for(;h.isEven();)h.rShiftTo(1,h),f?((!v.isEven()||!p.isEven())&&(v.addTo(this,v),p.subTo(u,p)),v.rShiftTo(1,v)):p.isEven()||p.subTo(u,p),p.rShiftTo(1,p);for(;d.isEven();)d.rShiftTo(1,d),f?((!m.isEven()||!g.isEven())&&(m.addTo(this,m),g.subTo(u,g)),m.rShiftTo(1,m)):g.isEven()||g.subTo(u,g),g.rShiftTo(1,g);h.compareTo(d)>=0?(h.subTo(d,h),f&&v.subTo(m,v),p.subTo(g,p)):(d.subTo(h,d),f&&m.subTo(v,m),g.subTo(p,g))}if(d.compareTo(c.ONE)!=0)return c.ZERO;if(g.compareTo(u)>=0)return g.subtract(u);if(g.signum()<0)g.addTo(u,g);else return g;return g.signum()<0?g.add(u):g},c.prototype.pow=function(u){return this.exp(u,new NullExp)},c.prototype.gcd=function(u){var f=this.s<0?this.negate():this.clone(),h=u.s<0?u.negate():u.clone();if(f.compareTo(h)<0){var d=f;f=h,h=d}var v=f.getLowestSetBit(),p=h.getLowestSetBit();if(p<0)return f;for(v<p&&(p=v),p>0&&(f.rShiftTo(p,f),h.rShiftTo(p,h));f.signum()>0;)(v=f.getLowestSetBit())>0&&f.rShiftTo(v,f),(v=h.getLowestSetBit())>0&&h.rShiftTo(v,h),f.compareTo(h)>=0?(f.subTo(h,f),f.rShiftTo(1,f)):(h.subTo(f,h),h.rShiftTo(1,h));return p>0&&h.lShiftTo(p,h),h},c.prototype.isProbablePrime=function(u){var f,h=this.abs();if(h.t==1&&h[0]<=lowprimes[lowprimes.length-1]){for(f=0;f<lowprimes.length;++f)if(h[0]==lowprimes[f])return!0;return!1}if(h.isEven())return!1;for(f=1;f<lowprimes.length;){for(var d=lowprimes[f],v=f+1;v<lowprimes.length&&d<lplim;)d*=lowprimes[v++];for(d=h.modInt(d);f<v;)if(d%lowprimes[f++]==0)return!1}return h.millerRabin(u)},c.prototype.copyTo=function(u){for(var f=this.t-1;f>=0;--f)u[f]=this[f];u.t=this.t,u.s=this.s},c.prototype.fromInt=function(u){this.t=1,this.s=u<0?-1:0,u>0?this[0]=u:u<-1?this[0]=u+this.DV:this.t=0},c.prototype.fromString=function(u,f){var h;if(f==16)h=4;else if(f==8)h=3;else if(f==256)h=8;else if(f==2)h=1;else if(f==32)h=5;else if(f==4)h=2;else{this.fromRadix(u,f);return}this.t=0,this.s=0;for(var d=u.length,v=!1,p=0;--d>=0;){var m=h==8?+u[d]&255:intAt(u,d);if(m<0){u.charAt(d)=="-"&&(v=!0);continue}v=!1,p==0?this[this.t++]=m:p+h>this.DB?(this[this.t-1]|=(m&(1<<this.DB-p)-1)<<p,this[this.t++]=m>>this.DB-p):this[this.t-1]|=m<<p,p+=h,p>=this.DB&&(p-=this.DB)}h==8&&+u[0]&128&&(this.s=-1,p>0&&(this[this.t-1]|=(1<<this.DB-p)-1<<p)),this.clamp(),v&&c.ZERO.subTo(this,this)},c.prototype.clamp=function(){for(var u=this.s&this.DM;this.t>0&&this[this.t-1]==u;)--this.t},c.prototype.dlShiftTo=function(u,f){var h;for(h=this.t-1;h>=0;--h)f[h+u]=this[h];for(h=u-1;h>=0;--h)f[h]=0;f.t=this.t+u,f.s=this.s},c.prototype.drShiftTo=function(u,f){for(var h=u;h<this.t;++h)f[h-u]=this[h];f.t=Math.max(this.t-u,0),f.s=this.s},c.prototype.lShiftTo=function(u,f){for(var h=u%this.DB,d=this.DB-h,v=(1<<d)-1,p=Math.floor(u/this.DB),m=this.s<<h&this.DM,g=this.t-1;g>=0;--g)f[g+p+1]=this[g]>>d|m,m=(this[g]&v)<<h;for(var g=p-1;g>=0;--g)f[g]=0;f[p]=m,f.t=this.t+p+1,f.s=this.s,f.clamp()},c.prototype.rShiftTo=function(u,f){f.s=this.s;var h=Math.floor(u/this.DB);if(h>=this.t){f.t=0;return}var d=u%this.DB,v=this.DB-d,p=(1<<d)-1;f[0]=this[h]>>d;for(var m=h+1;m<this.t;++m)f[m-h-1]|=(this[m]&p)<<v,f[m-h]=this[m]>>d;d>0&&(f[this.t-h-1]|=(this.s&p)<<v),f.t=this.t-h,f.clamp()},c.prototype.subTo=function(u,f){for(var h=0,d=0,v=Math.min(u.t,this.t);h<v;)d+=this[h]-u[h],f[h++]=d&this.DM,d>>=this.DB;if(u.t<this.t){for(d-=u.s;h<this.t;)d+=this[h],f[h++]=d&this.DM,d>>=this.DB;d+=this.s}else{for(d+=this.s;h<u.t;)d-=u[h],f[h++]=d&this.DM,d>>=this.DB;d-=u.s}f.s=d<0?-1:0,d<-1?f[h++]=this.DV+d:d>0&&(f[h++]=d),f.t=h,f.clamp()},c.prototype.multiplyTo=function(u,f){var h=this.abs(),d=u.abs(),v=h.t;for(f.t=v+d.t;--v>=0;)f[v]=0;for(v=0;v<d.t;++v)f[v+h.t]=h.am(0,d[v],f,v,0,h.t);f.s=0,f.clamp(),this.s!=u.s&&c.ZERO.subTo(f,f)},c.prototype.squareTo=function(u){for(var f=this.abs(),h=u.t=2*f.t;--h>=0;)u[h]=0;for(h=0;h<f.t-1;++h){var d=f.am(h,f[h],u,2*h,0,1);(u[h+f.t]+=f.am(h+1,2*f[h],u,2*h+1,d,f.t-h-1))>=f.DV&&(u[h+f.t]-=f.DV,u[h+f.t+1]=1)}u.t>0&&(u[u.t-1]+=f.am(h,f[h],u,2*h,0,1)),u.s=0,u.clamp()},c.prototype.divRemTo=function(u,f,h){var d=u.abs();if(!(d.t<=0)){var v=this.abs();if(v.t<d.t){f!=null&&f.fromInt(0),h!=null&&this.copyTo(h);return}h==null&&(h=nbi());var p=nbi(),m=this.s,g=u.s,y=this.DB-nbits(d[d.t-1]);y>0?(d.lShiftTo(y,p),v.lShiftTo(y,h)):(d.copyTo(p),v.copyTo(h));var x=p.t,Pn=p[x-1];if(Pn!=0){var b=Pn*(1<<this.F1)+(x>1?p[x-2]>>this.F2:0),vn=this.FV/b,_=(1<<this.F1)/b,re=1<<this.F2,Fn=h.t,Bn=Fn-x,w=f??nbi();for(p.dlShiftTo(Bn,w),h.compareTo(w)>=0&&(h[h.t++]=1,h.subTo(w,h)),c.ONE.dlShiftTo(x,w),w.subTo(p,p);p.t<x;)p[p.t++]=0;for(;--Bn>=0;){var J=h[--Fn]==Pn?this.DM:Math.floor(h[Fn]*vn+(h[Fn-1]+re)*_);if((h[Fn]+=p.am(0,J,h,Bn,0,x))<J)for(p.dlShiftTo(Bn,w),h.subTo(w,h);h[Fn]<--J;)h.subTo(w,h)}f!=null&&(h.drShiftTo(x,f),m!=g&&c.ZERO.subTo(f,f)),h.t=x,h.clamp(),y>0&&h.rShiftTo(y,h),m<0&&c.ZERO.subTo(h,h)}}},c.prototype.invDigit=function(){if(this.t<1)return 0;var u=this[0];if(!(u&1))return 0;var f=u&3;return f=f*(2-(u&15)*f)&15,f=f*(2-(u&255)*f)&255,f=f*(2-((u&65535)*f&65535))&65535,f=f*(2-u*f%this.DV)%this.DV,f>0?this.DV-f:-f},c.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},c.prototype.exp=function(u,f){if(u>4294967295||u<1)return c.ONE;var h=nbi(),d=nbi(),v=f.convert(this),p=nbits(u)-1;for(v.copyTo(h);--p>=0;)if(f.sqrTo(h,d),(u&1<<p)>0)f.mulTo(d,v,h);else{var m=h;h=d,d=m}return f.revert(h)},c.prototype.chunkSize=function(u){return Math.floor(Math.LN2*this.DB/Math.log(u))},c.prototype.toRadix=function(u){if(u==null&&(u=10),this.signum()==0||u<2||u>36)return"0";var f=this.chunkSize(u),h=Math.pow(u,f),d=nbv(h),v=nbi(),p=nbi(),m="";for(this.divRemTo(d,v,p);v.signum()>0;)m=(h+p.intValue()).toString(u).substr(1)+m,v.divRemTo(d,v,p);return p.intValue().toString(u)+m},c.prototype.fromRadix=function(u,f){this.fromInt(0),f==null&&(f=10);for(var h=this.chunkSize(f),d=Math.pow(f,h),v=!1,p=0,m=0,g=0;g<u.length;++g){var y=intAt(u,g);if(y<0){u.charAt(g)=="-"&&this.signum()==0&&(v=!0);continue}m=f*m+y,++p>=h&&(this.dMultiply(d),this.dAddOffset(m,0),p=0,m=0)}p>0&&(this.dMultiply(Math.pow(f,p)),this.dAddOffset(m,0)),v&&c.ZERO.subTo(this,this)},c.prototype.fromNumber=function(u,f,h){if(typeof f=="number")if(u<2)this.fromInt(1);else for(this.fromNumber(u,h),this.testBit(u-1)||this.bitwiseTo(c.ONE.shiftLeft(u-1),op_or,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(f);)this.dAddOffset(2,0),this.bitLength()>u&&this.subTo(c.ONE.shiftLeft(u-1),this);else{var d=[],v=u&7;d.length=(u>>3)+1,f.nextBytes(d),v>0?d[0]&=(1<<v)-1:d[0]=0,this.fromString(d,256)}},c.prototype.bitwiseTo=function(u,f,h){var d,v,p=Math.min(u.t,this.t);for(d=0;d<p;++d)h[d]=f(this[d],u[d]);if(u.t<this.t){for(v=u.s&this.DM,d=p;d<this.t;++d)h[d]=f(this[d],v);h.t=this.t}else{for(v=this.s&this.DM,d=p;d<u.t;++d)h[d]=f(v,u[d]);h.t=u.t}h.s=f(this.s,u.s),h.clamp()},c.prototype.changeBit=function(u,f){var h=c.ONE.shiftLeft(u);return this.bitwiseTo(h,f,h),h},c.prototype.addTo=function(u,f){for(var h=0,d=0,v=Math.min(u.t,this.t);h<v;)d+=this[h]+u[h],f[h++]=d&this.DM,d>>=this.DB;if(u.t<this.t){for(d+=u.s;h<this.t;)d+=this[h],f[h++]=d&this.DM,d>>=this.DB;d+=this.s}else{for(d+=this.s;h<u.t;)d+=u[h],f[h++]=d&this.DM,d>>=this.DB;d+=u.s}f.s=d<0?-1:0,d>0?f[h++]=d:d<-1&&(f[h++]=this.DV+d),f.t=h,f.clamp()},c.prototype.dMultiply=function(u){this[this.t]=this.am(0,u-1,this,0,0,this.t),++this.t,this.clamp()},c.prototype.dAddOffset=function(u,f){if(u!=0){for(;this.t<=f;)this[this.t++]=0;for(this[f]+=u;this[f]>=this.DV;)this[f]-=this.DV,++f>=this.t&&(this[this.t++]=0),++this[f]}},c.prototype.multiplyLowerTo=function(u,f,h){var d=Math.min(this.t+u.t,f);for(h.s=0,h.t=d;d>0;)h[--d]=0;for(var v=h.t-this.t;d<v;++d)h[d+this.t]=this.am(0,u[d],h,d,0,this.t);for(var v=Math.min(u.t,f);d<v;++d)this.am(0,u[d],h,d,0,f-d);h.clamp()},c.prototype.multiplyUpperTo=function(u,f,h){--f;var d=h.t=this.t+u.t-f;for(h.s=0;--d>=0;)h[d]=0;for(d=Math.max(f-this.t,0);d<u.t;++d)h[this.t+d-f]=this.am(f-d,u[d],h,0,0,this.t+d-f);h.clamp(),h.drShiftTo(1,h)},c.prototype.modInt=function(u){if(u<=0)return 0;var f=this.DV%u,h=this.s<0?u-1:0;if(this.t>0)if(f==0)h=this[0]%u;else for(var d=this.t-1;d>=0;--d)h=(f*h+this[d])%u;return h},c.prototype.millerRabin=function(u){var f=this.subtract(c.ONE),h=f.getLowestSetBit();if(h<=0)return!1;var d=f.shiftRight(h);u=u+1>>1,u>lowprimes.length&&(u=lowprimes.length);for(var v=nbi(),p=0;p<u;++p){v.fromInt(lowprimes[Math.floor(Math.random()*lowprimes.length)]);var m=v.modPow(d,this);if(m.compareTo(c.ONE)!=0&&m.compareTo(f)!=0){for(var g=1;g++<h&&m.compareTo(f)!=0;)if(m=m.modPowInt(2,this),m.compareTo(c.ONE)==0)return!1;if(m.compareTo(f)!=0)return!1}}return!0},c.prototype.square=function(){var u=nbi();return this.squareTo(u),u},c.prototype.gcda=function(u,f){var h=this.s<0?this.negate():this.clone(),d=u.s<0?u.negate():u.clone();if(h.compareTo(d)<0){var v=h;h=d,d=v}var p=h.getLowestSetBit(),m=d.getLowestSetBit();if(m<0){f(h);return}p<m&&(m=p),m>0&&(h.rShiftTo(m,h),d.rShiftTo(m,d));var g=function(){(p=h.getLowestSetBit())>0&&h.rShiftTo(p,h),(p=d.getLowestSetBit())>0&&d.rShiftTo(p,d),h.compareTo(d)>=0?(h.subTo(d,h),h.rShiftTo(1,h)):(d.subTo(h,d),d.rShiftTo(1,d)),h.signum()>0?setTimeout(g,0):(m>0&&d.lShiftTo(m,d),setTimeout(function(){f(d)},0))};setTimeout(g,10)},c.prototype.fromNumberAsync=function(u,f,h,d){if(typeof f=="number")if(u<2)this.fromInt(1);else{this.fromNumber(u,h),this.testBit(u-1)||this.bitwiseTo(c.ONE.shiftLeft(u-1),op_or,this),this.isEven()&&this.dAddOffset(1,0);var v=this,p=function(){v.dAddOffset(2,0),v.bitLength()>u&&v.subTo(c.ONE.shiftLeft(u-1),v),v.isProbablePrime(f)?setTimeout(function(){d()},0):setTimeout(p,0)};setTimeout(p,0)}else{var m=[],g=u&7;m.length=(u>>3)+1,f.nextBytes(m),g>0?m[0]&=(1<<g)-1:m[0]=0,this.fromString(m,256)}},c}(),NullExp=function(){function c(){}return c.prototype.convert=function(u){return u},c.prototype.revert=function(u){return u},c.prototype.mulTo=function(u,f,h){u.multiplyTo(f,h)},c.prototype.sqrTo=function(u,f){u.squareTo(f)},c}(),Classic=function(){function c(u){this.m=u}return c.prototype.convert=function(u){return u.s<0||u.compareTo(this.m)>=0?u.mod(this.m):u},c.prototype.revert=function(u){return u},c.prototype.reduce=function(u){u.divRemTo(this.m,null,u)},c.prototype.mulTo=function(u,f,h){u.multiplyTo(f,h),this.reduce(h)},c.prototype.sqrTo=function(u,f){u.squareTo(f),this.reduce(f)},c}(),Montgomery=function(){function c(u){this.m=u,this.mp=u.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<u.DB-15)-1,this.mt2=2*u.t}return c.prototype.convert=function(u){var f=nbi();return u.abs().dlShiftTo(this.m.t,f),f.divRemTo(this.m,null,f),u.s<0&&f.compareTo(BigInteger.ZERO)>0&&this.m.subTo(f,f),f},c.prototype.revert=function(u){var f=nbi();return u.copyTo(f),this.reduce(f),f},c.prototype.reduce=function(u){for(;u.t<=this.mt2;)u[u.t++]=0;for(var f=0;f<this.m.t;++f){var h=u[f]&32767,d=h*this.mpl+((h*this.mph+(u[f]>>15)*this.mpl&this.um)<<15)&u.DM;for(h=f+this.m.t,u[h]+=this.m.am(0,d,u,f,0,this.m.t);u[h]>=u.DV;)u[h]-=u.DV,u[++h]++}u.clamp(),u.drShiftTo(this.m.t,u),u.compareTo(this.m)>=0&&u.subTo(this.m,u)},c.prototype.mulTo=function(u,f,h){u.multiplyTo(f,h),this.reduce(h)},c.prototype.sqrTo=function(u,f){u.squareTo(f),this.reduce(f)},c}(),Barrett=function(){function c(u){this.m=u,this.r2=nbi(),this.q3=nbi(),BigInteger.ONE.dlShiftTo(2*u.t,this.r2),this.mu=this.r2.divide(u)}return c.prototype.convert=function(u){if(u.s<0||u.t>2*this.m.t)return u.mod(this.m);if(u.compareTo(this.m)<0)return u;var f=nbi();return u.copyTo(f),this.reduce(f),f},c.prototype.revert=function(u){return u},c.prototype.reduce=function(u){for(u.drShiftTo(this.m.t-1,this.r2),u.t>this.m.t+1&&(u.t=this.m.t+1,u.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);u.compareTo(this.r2)<0;)u.dAddOffset(1,this.m.t+1);for(u.subTo(this.r2,u);u.compareTo(this.m)>=0;)u.subTo(this.m,u)},c.prototype.mulTo=function(u,f,h){u.multiplyTo(f,h),this.reduce(h)},c.prototype.sqrTo=function(u,f){u.squareTo(f),this.reduce(f)},c}();function nbi(){return new BigInteger(null)}function parseBigInt(c,u){return new BigInteger(c,u)}var inBrowser$2=typeof navigator<"u";inBrowser$2&&j_lm&&navigator.appName=="Microsoft Internet Explorer"?(BigInteger.prototype.am=function(u,f,h,d,v,p){for(var m=f&32767,g=f>>15;--p>=0;){var y=this[u]&32767,x=this[u++]>>15,Pn=g*y+x*m;y=m*y+((Pn&32767)<<15)+h[d]+(v&1073741823),v=(y>>>30)+(Pn>>>15)+g*x+(v>>>30),h[d++]=y&1073741823}return v},dbits=30):inBrowser$2&&j_lm&&navigator.appName!="Netscape"?(BigInteger.prototype.am=function(u,f,h,d,v,p){for(;--p>=0;){var m=f*this[u++]+h[d]+v;v=Math.floor(m/67108864),h[d++]=m&67108863}return v},dbits=26):(BigInteger.prototype.am=function(u,f,h,d,v,p){for(var m=f&16383,g=f>>14;--p>=0;){var y=this[u]&16383,x=this[u++]>>14,Pn=g*y+x*m;y=m*y+((Pn&16383)<<14)+h[d]+v,v=(y>>28)+(Pn>>14)+g*x,h[d++]=y&268435455}return v},dbits=28),BigInteger.prototype.DB=dbits,BigInteger.prototype.DM=(1<<dbits)-1,BigInteger.prototype.DV=1<<dbits;var BI_FP=52;BigInteger.prototype.FV=Math.pow(2,BI_FP),BigInteger.prototype.F1=BI_FP-dbits,BigInteger.prototype.F2=2*dbits-BI_FP;var BI_RC=[],rr,vv;for(rr="0".charCodeAt(0),vv=0;vv<=9;++vv)BI_RC[rr++]=vv;for(rr="a".charCodeAt(0),vv=10;vv<36;++vv)BI_RC[rr++]=vv;for(rr="A".charCodeAt(0),vv=10;vv<36;++vv)BI_RC[rr++]=vv;function intAt(c,u){var f=BI_RC[c.charCodeAt(u)];return f??-1}function nbv(c){var u=nbi();return u.fromInt(c),u}function nbits(c){var u=1,f;return(f=c>>>16)!=0&&(c=f,u+=16),(f=c>>8)!=0&&(c=f,u+=8),(f=c>>4)!=0&&(c=f,u+=4),(f=c>>2)!=0&&(c=f,u+=2),(f=c>>1)!=0&&(c=f,u+=1),u}BigInteger.ZERO=nbv(0),BigInteger.ONE=nbv(1);var Arcfour=function(){function c(){this.i=0,this.j=0,this.S=[]}return c.prototype.init=function(u){var f,h,d;for(f=0;f<256;++f)this.S[f]=f;for(h=0,f=0;f<256;++f)h=h+this.S[f]+u[f%u.length]&255,d=this.S[f],this.S[f]=this.S[h],this.S[h]=d;this.i=0,this.j=0},c.prototype.next=function(){var u;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,u=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=u,this.S[u+this.S[this.i]&255]},c}();function prng_newstate(){return new Arcfour}var rng_psize=256,rng_state,rng_pool=null,rng_pptr;if(rng_pool==null){rng_pool=[],rng_pptr=0;var t$1=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var z=new Uint32Array(256);for(window.crypto.getRandomValues(z),t$1=0;t$1<z.length;++t$1)rng_pool[rng_pptr++]=z[t$1]&255}var count=0,onMouseMoveListener_1=function(c){if(count=count||0,count>=256||rng_pptr>=rng_psize){window.removeEventListener?window.removeEventListener("mousemove",onMouseMoveListener_1,!1):window.detachEvent&&window.detachEvent("onmousemove",onMouseMoveListener_1);return}try{var u=c.x+c.y;rng_pool[rng_pptr++]=u&255,count+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",onMouseMoveListener_1,!1):window.attachEvent&&window.attachEvent("onmousemove",onMouseMoveListener_1))}function rng_get_byte(){if(rng_state==null){for(rng_state=prng_newstate();rng_pptr<rng_psize;){var c=Math.floor(65536*Math.random());rng_pool[rng_pptr++]=c&255}for(rng_state.init(rng_pool),rng_pptr=0;rng_pptr<rng_pool.length;++rng_pptr)rng_pool[rng_pptr]=0;rng_pptr=0}return rng_state.next()}var SecureRandom=function(){function c(){}return c.prototype.nextBytes=function(u){for(var f=0;f<u.length;++f)u[f]=rng_get_byte()},c}();function pkcs1pad1(c,u){if(u<c.length+22)return console.error("Message too long for RSA"),null;for(var f=u-c.length-6,h="",d=0;d<f;d+=2)h+="ff";var v="0001"+h+"00"+c;return parseBigInt(v,16)}function pkcs1pad2(c,u){if(u<c.length+11)return console.error("Message too long for RSA"),null;for(var f=[],h=c.length-1;h>=0&&u>0;){var d=c.charCodeAt(h--);d<128?f[--u]=d:d>127&&d<2048?(f[--u]=d&63|128,f[--u]=d>>6|192):(f[--u]=d&63|128,f[--u]=d>>6&63|128,f[--u]=d>>12|224)}f[--u]=0;for(var v=new SecureRandom,p=[];u>2;){for(p[0]=0;p[0]==0;)v.nextBytes(p);f[--u]=p[0]}return f[--u]=2,f[--u]=0,new BigInteger(f)}var RSAKey=function(){function c(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return c.prototype.doPublic=function(u){return u.modPowInt(this.e,this.n)},c.prototype.doPrivate=function(u){if(this.p==null||this.q==null)return u.modPow(this.d,this.n);for(var f=u.mod(this.p).modPow(this.dmp1,this.p),h=u.mod(this.q).modPow(this.dmq1,this.q);f.compareTo(h)<0;)f=f.add(this.p);return f.subtract(h).multiply(this.coeff).mod(this.p).multiply(this.q).add(h)},c.prototype.setPublic=function(u,f){u!=null&&f!=null&&u.length>0&&f.length>0?(this.n=parseBigInt(u,16),this.e=parseInt(f,16)):console.error("Invalid RSA public key")},c.prototype.encrypt=function(u){var f=this.n.bitLength()+7>>3,h=pkcs1pad2(u,f);if(h==null)return null;var d=this.doPublic(h);if(d==null)return null;for(var v=d.toString(16),p=v.length,m=0;m<f*2-p;m++)v="0"+v;return v},c.prototype.setPrivate=function(u,f,h){u!=null&&f!=null&&u.length>0&&f.length>0?(this.n=parseBigInt(u,16),this.e=parseInt(f,16),this.d=parseBigInt(h,16)):console.error("Invalid RSA private key")},c.prototype.setPrivateEx=function(u,f,h,d,v,p,m,g){u!=null&&f!=null&&u.length>0&&f.length>0?(this.n=parseBigInt(u,16),this.e=parseInt(f,16),this.d=parseBigInt(h,16),this.p=parseBigInt(d,16),this.q=parseBigInt(v,16),this.dmp1=parseBigInt(p,16),this.dmq1=parseBigInt(m,16),this.coeff=parseBigInt(g,16)):console.error("Invalid RSA private key")},c.prototype.generate=function(u,f){var h=new SecureRandom,d=u>>1;this.e=parseInt(f,16);for(var v=new BigInteger(f,16);;){for(;this.p=new BigInteger(u-d,1,h),!(this.p.subtract(BigInteger.ONE).gcd(v).compareTo(BigInteger.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new BigInteger(d,1,h),!(this.q.subtract(BigInteger.ONE).gcd(v).compareTo(BigInteger.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var p=this.p;this.p=this.q,this.q=p}var m=this.p.subtract(BigInteger.ONE),g=this.q.subtract(BigInteger.ONE),y=m.multiply(g);if(y.gcd(v).compareTo(BigInteger.ONE)==0){this.n=this.p.multiply(this.q),this.d=v.modInverse(y),this.dmp1=this.d.mod(m),this.dmq1=this.d.mod(g),this.coeff=this.q.modInverse(this.p);break}}},c.prototype.decrypt=function(u){var f=parseBigInt(u,16),h=this.doPrivate(f);return h==null?null:pkcs1unpad2(h,this.n.bitLength()+7>>3)},c.prototype.generateAsync=function(u,f,h){var d=new SecureRandom,v=u>>1;this.e=parseInt(f,16);var p=new BigInteger(f,16),m=this,g=function(){var y=function(){if(m.p.compareTo(m.q)<=0){var b=m.p;m.p=m.q,m.q=b}var vn=m.p.subtract(BigInteger.ONE),_=m.q.subtract(BigInteger.ONE),re=vn.multiply(_);re.gcd(p).compareTo(BigInteger.ONE)==0?(m.n=m.p.multiply(m.q),m.d=p.modInverse(re),m.dmp1=m.d.mod(vn),m.dmq1=m.d.mod(_),m.coeff=m.q.modInverse(m.p),setTimeout(function(){h()},0)):setTimeout(g,0)},x=function(){m.q=nbi(),m.q.fromNumberAsync(v,1,d,function(){m.q.subtract(BigInteger.ONE).gcda(p,function(b){b.compareTo(BigInteger.ONE)==0&&m.q.isProbablePrime(10)?setTimeout(y,0):setTimeout(x,0)})})},Pn=function(){m.p=nbi(),m.p.fromNumberAsync(u-v,1,d,function(){m.p.subtract(BigInteger.ONE).gcda(p,function(b){b.compareTo(BigInteger.ONE)==0&&m.p.isProbablePrime(10)?setTimeout(x,0):setTimeout(Pn,0)})})};setTimeout(Pn,0)};setTimeout(g,0)},c.prototype.sign=function(u,f,h){var d=getDigestHeader(h),v=d+f(u).toString(),p=pkcs1pad1(v,this.n.bitLength()/4);if(p==null)return null;var m=this.doPrivate(p);if(m==null)return null;var g=m.toString(16);return g.length&1?"0"+g:g},c.prototype.verify=function(u,f,h){var d=parseBigInt(f,16),v=this.doPublic(d);if(v==null)return null;var p=v.toString(16).replace(/^1f+00/,""),m=removeDigestHeader(p);return m==h(u).toString()},c}();function pkcs1unpad2(c,u){for(var f=c.toByteArray(),h=0;h<f.length&&f[h]==0;)++h;if(f.length-h!=u-1||f[h]!=2)return null;for(++h;f[h]!=0;)if(++h>=f.length)return null;for(var d="";++h<f.length;){var v=f[h]&255;v<128?d+=String.fromCharCode(v):v>191&&v<224?(d+=String.fromCharCode((v&31)<<6|f[h+1]&63),++h):(d+=String.fromCharCode((v&15)<<12|(f[h+1]&63)<<6|f[h+2]&63),h+=2)}return d}var DIGEST_HEADERS={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function getDigestHeader(c){return DIGEST_HEADERS[c]||""}function removeDigestHeader(c){for(var u in DIGEST_HEADERS)if(DIGEST_HEADERS.hasOwnProperty(u)){var f=DIGEST_HEADERS[u],h=f.length;if(c.substr(0,h)==f)return c.substr(h)}return c}/*!
|
|
81
|
+
`,this.sub!==null){u+=" ";for(var h=0,d=this.sub.length;h<d;++h)f+=this.sub[h].toPrettyString(u)}return f},c.prototype.posStart=function(){return this.stream.pos},c.prototype.posContent=function(){return this.stream.pos+this.header},c.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},c.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},c.decodeLength=function(u){var f=u.get(),h=f&127;if(h==f)return h;if(h>6)throw new Error("Length over 48 bits not supported at position "+(u.pos-1));if(h===0)return null;f=0;for(var d=0;d<h;++d)f=f*256+u.get();return f},c.prototype.getHexStringValue=function(){var u=this.toHexString(),f=this.header*2,h=this.length*2;return u.substr(f,h)},c.decode=function(u){var f;u instanceof Stream?f=u:f=new Stream(u,0);var h=new Stream(f),d=new ASN1Tag(f),v=c.decodeLength(f),p=f.pos,m=p-h.pos,g=null,y=function(){var Bn=[];if(v!==null){for(var b=p+v;f.pos<b;)Bn[Bn.length]=c.decode(f);if(f.pos!=b)throw new Error("Content size is not correct for container starting at offset "+p)}else try{for(;;){var re=c.decode(f);if(re.tag.isEOC())break;Bn[Bn.length]=re}v=p-f.pos}catch(_){throw new Error("Exception while decoding undefined length content: "+_)}return Bn};if(d.tagConstructed)g=y();else if(d.isUniversal()&&(d.tagNumber==3||d.tagNumber==4))try{if(d.tagNumber==3&&f.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");g=y();for(var x=0;x<g.length;++x)if(g[x].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{g=null}if(g===null){if(v===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+p);f.pos=p+Math.abs(v)}return new c(h,m,v,d,g)},c}(),ASN1Tag=function(){function c(u){var f=u.get();if(this.tagClass=f>>6,this.tagConstructed=(f&32)!==0,this.tagNumber=f&31,this.tagNumber==31){var h=new Int10;do f=u.get(),h.mulAdd(128,f&127);while(f&128);this.tagNumber=h.simplify()}}return c.prototype.isUniversal=function(){return this.tagClass===0},c.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},c}(),dbits,canary=0xdeadbeefcafe,j_lm=(canary&16777215)==15715070,lowprimes=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],lplim=(1<<26)/lowprimes[lowprimes.length-1],BigInteger=function(){function c(u,f,h){u!=null&&(typeof u=="number"?this.fromNumber(u,f,h):f==null&&typeof u!="string"?this.fromString(u,256):this.fromString(u,f))}return c.prototype.toString=function(u){if(this.s<0)return"-"+this.negate().toString(u);var f;if(u==16)f=4;else if(u==8)f=3;else if(u==2)f=1;else if(u==32)f=5;else if(u==4)f=2;else return this.toRadix(u);var h=(1<<f)-1,d,v=!1,p="",m=this.t,g=this.DB-m*this.DB%f;if(m-- >0)for(g<this.DB&&(d=this[m]>>g)>0&&(v=!0,p=int2char(d));m>=0;)g<f?(d=(this[m]&(1<<g)-1)<<f-g,d|=this[--m]>>(g+=this.DB-f)):(d=this[m]>>(g-=f)&h,g<=0&&(g+=this.DB,--m)),d>0&&(v=!0),v&&(p+=int2char(d));return v?p:"0"},c.prototype.negate=function(){var u=nbi();return c.ZERO.subTo(this,u),u},c.prototype.abs=function(){return this.s<0?this.negate():this},c.prototype.compareTo=function(u){var f=this.s-u.s;if(f!=0)return f;var h=this.t;if(f=h-u.t,f!=0)return this.s<0?-f:f;for(;--h>=0;)if((f=this[h]-u[h])!=0)return f;return 0},c.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+nbits(this[this.t-1]^this.s&this.DM)},c.prototype.mod=function(u){var f=nbi();return this.abs().divRemTo(u,null,f),this.s<0&&f.compareTo(c.ZERO)>0&&u.subTo(f,f),f},c.prototype.modPowInt=function(u,f){var h;return u<256||f.isEven()?h=new Classic(f):h=new Montgomery(f),this.exp(u,h)},c.prototype.clone=function(){var u=nbi();return this.copyTo(u),u},c.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},c.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},c.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},c.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},c.prototype.toByteArray=function(){var u=this.t,f=[];f[0]=this.s;var h=this.DB-u*this.DB%8,d,v=0;if(u-- >0)for(h<this.DB&&(d=this[u]>>h)!=(this.s&this.DM)>>h&&(f[v++]=d|this.s<<this.DB-h);u>=0;)h<8?(d=(this[u]&(1<<h)-1)<<8-h,d|=this[--u]>>(h+=this.DB-8)):(d=this[u]>>(h-=8)&255,h<=0&&(h+=this.DB,--u)),d&128&&(d|=-256),v==0&&(this.s&128)!=(d&128)&&++v,(v>0||d!=this.s)&&(f[v++]=d);return f},c.prototype.equals=function(u){return this.compareTo(u)==0},c.prototype.min=function(u){return this.compareTo(u)<0?this:u},c.prototype.max=function(u){return this.compareTo(u)>0?this:u},c.prototype.and=function(u){var f=nbi();return this.bitwiseTo(u,op_and,f),f},c.prototype.or=function(u){var f=nbi();return this.bitwiseTo(u,op_or,f),f},c.prototype.xor=function(u){var f=nbi();return this.bitwiseTo(u,op_xor,f),f},c.prototype.andNot=function(u){var f=nbi();return this.bitwiseTo(u,op_andnot,f),f},c.prototype.not=function(){for(var u=nbi(),f=0;f<this.t;++f)u[f]=this.DM&~this[f];return u.t=this.t,u.s=~this.s,u},c.prototype.shiftLeft=function(u){var f=nbi();return u<0?this.rShiftTo(-u,f):this.lShiftTo(u,f),f},c.prototype.shiftRight=function(u){var f=nbi();return u<0?this.lShiftTo(-u,f):this.rShiftTo(u,f),f},c.prototype.getLowestSetBit=function(){for(var u=0;u<this.t;++u)if(this[u]!=0)return u*this.DB+lbit(this[u]);return this.s<0?this.t*this.DB:-1},c.prototype.bitCount=function(){for(var u=0,f=this.s&this.DM,h=0;h<this.t;++h)u+=cbit(this[h]^f);return u},c.prototype.testBit=function(u){var f=Math.floor(u/this.DB);return f>=this.t?this.s!=0:(this[f]&1<<u%this.DB)!=0},c.prototype.setBit=function(u){return this.changeBit(u,op_or)},c.prototype.clearBit=function(u){return this.changeBit(u,op_andnot)},c.prototype.flipBit=function(u){return this.changeBit(u,op_xor)},c.prototype.add=function(u){var f=nbi();return this.addTo(u,f),f},c.prototype.subtract=function(u){var f=nbi();return this.subTo(u,f),f},c.prototype.multiply=function(u){var f=nbi();return this.multiplyTo(u,f),f},c.prototype.divide=function(u){var f=nbi();return this.divRemTo(u,f,null),f},c.prototype.remainder=function(u){var f=nbi();return this.divRemTo(u,null,f),f},c.prototype.divideAndRemainder=function(u){var f=nbi(),h=nbi();return this.divRemTo(u,f,h),[f,h]},c.prototype.modPow=function(u,f){var h=u.bitLength(),d,v=nbv(1),p;if(h<=0)return v;h<18?d=1:h<48?d=3:h<144?d=4:h<768?d=5:d=6,h<8?p=new Classic(f):f.isEven()?p=new Barrett(f):p=new Montgomery(f);var m=[],g=3,y=d-1,x=(1<<d)-1;if(m[1]=p.convert(this),d>1){var Bn=nbi();for(p.sqrTo(m[1],Bn);g<=x;)m[g]=nbi(),p.mulTo(Bn,m[g-2],m[g]),g+=2}var b=u.t-1,re,_=!0,vn=nbi(),Fn;for(h=nbits(u[b])-1;b>=0;){for(h>=y?re=u[b]>>h-y&x:(re=(u[b]&(1<<h+1)-1)<<y-h,b>0&&(re|=u[b-1]>>this.DB+h-y)),g=d;!(re&1);)re>>=1,--g;if((h-=g)<0&&(h+=this.DB,--b),_)m[re].copyTo(v),_=!1;else{for(;g>1;)p.sqrTo(v,vn),p.sqrTo(vn,v),g-=2;g>0?p.sqrTo(v,vn):(Fn=v,v=vn,vn=Fn),p.mulTo(vn,m[re],v)}for(;b>=0&&!(u[b]&1<<h);)p.sqrTo(v,vn),Fn=v,v=vn,vn=Fn,--h<0&&(h=this.DB-1,--b)}return p.revert(v)},c.prototype.modInverse=function(u){var f=u.isEven();if(this.isEven()&&f||u.signum()==0)return c.ZERO;for(var h=u.clone(),d=this.clone(),v=nbv(1),p=nbv(0),m=nbv(0),g=nbv(1);h.signum()!=0;){for(;h.isEven();)h.rShiftTo(1,h),f?((!v.isEven()||!p.isEven())&&(v.addTo(this,v),p.subTo(u,p)),v.rShiftTo(1,v)):p.isEven()||p.subTo(u,p),p.rShiftTo(1,p);for(;d.isEven();)d.rShiftTo(1,d),f?((!m.isEven()||!g.isEven())&&(m.addTo(this,m),g.subTo(u,g)),m.rShiftTo(1,m)):g.isEven()||g.subTo(u,g),g.rShiftTo(1,g);h.compareTo(d)>=0?(h.subTo(d,h),f&&v.subTo(m,v),p.subTo(g,p)):(d.subTo(h,d),f&&m.subTo(v,m),g.subTo(p,g))}if(d.compareTo(c.ONE)!=0)return c.ZERO;if(g.compareTo(u)>=0)return g.subtract(u);if(g.signum()<0)g.addTo(u,g);else return g;return g.signum()<0?g.add(u):g},c.prototype.pow=function(u){return this.exp(u,new NullExp)},c.prototype.gcd=function(u){var f=this.s<0?this.negate():this.clone(),h=u.s<0?u.negate():u.clone();if(f.compareTo(h)<0){var d=f;f=h,h=d}var v=f.getLowestSetBit(),p=h.getLowestSetBit();if(p<0)return f;for(v<p&&(p=v),p>0&&(f.rShiftTo(p,f),h.rShiftTo(p,h));f.signum()>0;)(v=f.getLowestSetBit())>0&&f.rShiftTo(v,f),(v=h.getLowestSetBit())>0&&h.rShiftTo(v,h),f.compareTo(h)>=0?(f.subTo(h,f),f.rShiftTo(1,f)):(h.subTo(f,h),h.rShiftTo(1,h));return p>0&&h.lShiftTo(p,h),h},c.prototype.isProbablePrime=function(u){var f,h=this.abs();if(h.t==1&&h[0]<=lowprimes[lowprimes.length-1]){for(f=0;f<lowprimes.length;++f)if(h[0]==lowprimes[f])return!0;return!1}if(h.isEven())return!1;for(f=1;f<lowprimes.length;){for(var d=lowprimes[f],v=f+1;v<lowprimes.length&&d<lplim;)d*=lowprimes[v++];for(d=h.modInt(d);f<v;)if(d%lowprimes[f++]==0)return!1}return h.millerRabin(u)},c.prototype.copyTo=function(u){for(var f=this.t-1;f>=0;--f)u[f]=this[f];u.t=this.t,u.s=this.s},c.prototype.fromInt=function(u){this.t=1,this.s=u<0?-1:0,u>0?this[0]=u:u<-1?this[0]=u+this.DV:this.t=0},c.prototype.fromString=function(u,f){var h;if(f==16)h=4;else if(f==8)h=3;else if(f==256)h=8;else if(f==2)h=1;else if(f==32)h=5;else if(f==4)h=2;else{this.fromRadix(u,f);return}this.t=0,this.s=0;for(var d=u.length,v=!1,p=0;--d>=0;){var m=h==8?+u[d]&255:intAt(u,d);if(m<0){u.charAt(d)=="-"&&(v=!0);continue}v=!1,p==0?this[this.t++]=m:p+h>this.DB?(this[this.t-1]|=(m&(1<<this.DB-p)-1)<<p,this[this.t++]=m>>this.DB-p):this[this.t-1]|=m<<p,p+=h,p>=this.DB&&(p-=this.DB)}h==8&&+u[0]&128&&(this.s=-1,p>0&&(this[this.t-1]|=(1<<this.DB-p)-1<<p)),this.clamp(),v&&c.ZERO.subTo(this,this)},c.prototype.clamp=function(){for(var u=this.s&this.DM;this.t>0&&this[this.t-1]==u;)--this.t},c.prototype.dlShiftTo=function(u,f){var h;for(h=this.t-1;h>=0;--h)f[h+u]=this[h];for(h=u-1;h>=0;--h)f[h]=0;f.t=this.t+u,f.s=this.s},c.prototype.drShiftTo=function(u,f){for(var h=u;h<this.t;++h)f[h-u]=this[h];f.t=Math.max(this.t-u,0),f.s=this.s},c.prototype.lShiftTo=function(u,f){for(var h=u%this.DB,d=this.DB-h,v=(1<<d)-1,p=Math.floor(u/this.DB),m=this.s<<h&this.DM,g=this.t-1;g>=0;--g)f[g+p+1]=this[g]>>d|m,m=(this[g]&v)<<h;for(var g=p-1;g>=0;--g)f[g]=0;f[p]=m,f.t=this.t+p+1,f.s=this.s,f.clamp()},c.prototype.rShiftTo=function(u,f){f.s=this.s;var h=Math.floor(u/this.DB);if(h>=this.t){f.t=0;return}var d=u%this.DB,v=this.DB-d,p=(1<<d)-1;f[0]=this[h]>>d;for(var m=h+1;m<this.t;++m)f[m-h-1]|=(this[m]&p)<<v,f[m-h]=this[m]>>d;d>0&&(f[this.t-h-1]|=(this.s&p)<<v),f.t=this.t-h,f.clamp()},c.prototype.subTo=function(u,f){for(var h=0,d=0,v=Math.min(u.t,this.t);h<v;)d+=this[h]-u[h],f[h++]=d&this.DM,d>>=this.DB;if(u.t<this.t){for(d-=u.s;h<this.t;)d+=this[h],f[h++]=d&this.DM,d>>=this.DB;d+=this.s}else{for(d+=this.s;h<u.t;)d-=u[h],f[h++]=d&this.DM,d>>=this.DB;d-=u.s}f.s=d<0?-1:0,d<-1?f[h++]=this.DV+d:d>0&&(f[h++]=d),f.t=h,f.clamp()},c.prototype.multiplyTo=function(u,f){var h=this.abs(),d=u.abs(),v=h.t;for(f.t=v+d.t;--v>=0;)f[v]=0;for(v=0;v<d.t;++v)f[v+h.t]=h.am(0,d[v],f,v,0,h.t);f.s=0,f.clamp(),this.s!=u.s&&c.ZERO.subTo(f,f)},c.prototype.squareTo=function(u){for(var f=this.abs(),h=u.t=2*f.t;--h>=0;)u[h]=0;for(h=0;h<f.t-1;++h){var d=f.am(h,f[h],u,2*h,0,1);(u[h+f.t]+=f.am(h+1,2*f[h],u,2*h+1,d,f.t-h-1))>=f.DV&&(u[h+f.t]-=f.DV,u[h+f.t+1]=1)}u.t>0&&(u[u.t-1]+=f.am(h,f[h],u,2*h,0,1)),u.s=0,u.clamp()},c.prototype.divRemTo=function(u,f,h){var d=u.abs();if(!(d.t<=0)){var v=this.abs();if(v.t<d.t){f!=null&&f.fromInt(0),h!=null&&this.copyTo(h);return}h==null&&(h=nbi());var p=nbi(),m=this.s,g=u.s,y=this.DB-nbits(d[d.t-1]);y>0?(d.lShiftTo(y,p),v.lShiftTo(y,h)):(d.copyTo(p),v.copyTo(h));var x=p.t,Bn=p[x-1];if(Bn!=0){var b=Bn*(1<<this.F1)+(x>1?p[x-2]>>this.F2:0),re=this.FV/b,_=(1<<this.F1)/b,vn=1<<this.F2,Fn=h.t,Pn=Fn-x,w=f??nbi();for(p.dlShiftTo(Pn,w),h.compareTo(w)>=0&&(h[h.t++]=1,h.subTo(w,h)),c.ONE.dlShiftTo(x,w),w.subTo(p,p);p.t<x;)p[p.t++]=0;for(;--Pn>=0;){var J=h[--Fn]==Bn?this.DM:Math.floor(h[Fn]*re+(h[Fn-1]+vn)*_);if((h[Fn]+=p.am(0,J,h,Pn,0,x))<J)for(p.dlShiftTo(Pn,w),h.subTo(w,h);h[Fn]<--J;)h.subTo(w,h)}f!=null&&(h.drShiftTo(x,f),m!=g&&c.ZERO.subTo(f,f)),h.t=x,h.clamp(),y>0&&h.rShiftTo(y,h),m<0&&c.ZERO.subTo(h,h)}}},c.prototype.invDigit=function(){if(this.t<1)return 0;var u=this[0];if(!(u&1))return 0;var f=u&3;return f=f*(2-(u&15)*f)&15,f=f*(2-(u&255)*f)&255,f=f*(2-((u&65535)*f&65535))&65535,f=f*(2-u*f%this.DV)%this.DV,f>0?this.DV-f:-f},c.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},c.prototype.exp=function(u,f){if(u>4294967295||u<1)return c.ONE;var h=nbi(),d=nbi(),v=f.convert(this),p=nbits(u)-1;for(v.copyTo(h);--p>=0;)if(f.sqrTo(h,d),(u&1<<p)>0)f.mulTo(d,v,h);else{var m=h;h=d,d=m}return f.revert(h)},c.prototype.chunkSize=function(u){return Math.floor(Math.LN2*this.DB/Math.log(u))},c.prototype.toRadix=function(u){if(u==null&&(u=10),this.signum()==0||u<2||u>36)return"0";var f=this.chunkSize(u),h=Math.pow(u,f),d=nbv(h),v=nbi(),p=nbi(),m="";for(this.divRemTo(d,v,p);v.signum()>0;)m=(h+p.intValue()).toString(u).substr(1)+m,v.divRemTo(d,v,p);return p.intValue().toString(u)+m},c.prototype.fromRadix=function(u,f){this.fromInt(0),f==null&&(f=10);for(var h=this.chunkSize(f),d=Math.pow(f,h),v=!1,p=0,m=0,g=0;g<u.length;++g){var y=intAt(u,g);if(y<0){u.charAt(g)=="-"&&this.signum()==0&&(v=!0);continue}m=f*m+y,++p>=h&&(this.dMultiply(d),this.dAddOffset(m,0),p=0,m=0)}p>0&&(this.dMultiply(Math.pow(f,p)),this.dAddOffset(m,0)),v&&c.ZERO.subTo(this,this)},c.prototype.fromNumber=function(u,f,h){if(typeof f=="number")if(u<2)this.fromInt(1);else for(this.fromNumber(u,h),this.testBit(u-1)||this.bitwiseTo(c.ONE.shiftLeft(u-1),op_or,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(f);)this.dAddOffset(2,0),this.bitLength()>u&&this.subTo(c.ONE.shiftLeft(u-1),this);else{var d=[],v=u&7;d.length=(u>>3)+1,f.nextBytes(d),v>0?d[0]&=(1<<v)-1:d[0]=0,this.fromString(d,256)}},c.prototype.bitwiseTo=function(u,f,h){var d,v,p=Math.min(u.t,this.t);for(d=0;d<p;++d)h[d]=f(this[d],u[d]);if(u.t<this.t){for(v=u.s&this.DM,d=p;d<this.t;++d)h[d]=f(this[d],v);h.t=this.t}else{for(v=this.s&this.DM,d=p;d<u.t;++d)h[d]=f(v,u[d]);h.t=u.t}h.s=f(this.s,u.s),h.clamp()},c.prototype.changeBit=function(u,f){var h=c.ONE.shiftLeft(u);return this.bitwiseTo(h,f,h),h},c.prototype.addTo=function(u,f){for(var h=0,d=0,v=Math.min(u.t,this.t);h<v;)d+=this[h]+u[h],f[h++]=d&this.DM,d>>=this.DB;if(u.t<this.t){for(d+=u.s;h<this.t;)d+=this[h],f[h++]=d&this.DM,d>>=this.DB;d+=this.s}else{for(d+=this.s;h<u.t;)d+=u[h],f[h++]=d&this.DM,d>>=this.DB;d+=u.s}f.s=d<0?-1:0,d>0?f[h++]=d:d<-1&&(f[h++]=this.DV+d),f.t=h,f.clamp()},c.prototype.dMultiply=function(u){this[this.t]=this.am(0,u-1,this,0,0,this.t),++this.t,this.clamp()},c.prototype.dAddOffset=function(u,f){if(u!=0){for(;this.t<=f;)this[this.t++]=0;for(this[f]+=u;this[f]>=this.DV;)this[f]-=this.DV,++f>=this.t&&(this[this.t++]=0),++this[f]}},c.prototype.multiplyLowerTo=function(u,f,h){var d=Math.min(this.t+u.t,f);for(h.s=0,h.t=d;d>0;)h[--d]=0;for(var v=h.t-this.t;d<v;++d)h[d+this.t]=this.am(0,u[d],h,d,0,this.t);for(var v=Math.min(u.t,f);d<v;++d)this.am(0,u[d],h,d,0,f-d);h.clamp()},c.prototype.multiplyUpperTo=function(u,f,h){--f;var d=h.t=this.t+u.t-f;for(h.s=0;--d>=0;)h[d]=0;for(d=Math.max(f-this.t,0);d<u.t;++d)h[this.t+d-f]=this.am(f-d,u[d],h,0,0,this.t+d-f);h.clamp(),h.drShiftTo(1,h)},c.prototype.modInt=function(u){if(u<=0)return 0;var f=this.DV%u,h=this.s<0?u-1:0;if(this.t>0)if(f==0)h=this[0]%u;else for(var d=this.t-1;d>=0;--d)h=(f*h+this[d])%u;return h},c.prototype.millerRabin=function(u){var f=this.subtract(c.ONE),h=f.getLowestSetBit();if(h<=0)return!1;var d=f.shiftRight(h);u=u+1>>1,u>lowprimes.length&&(u=lowprimes.length);for(var v=nbi(),p=0;p<u;++p){v.fromInt(lowprimes[Math.floor(Math.random()*lowprimes.length)]);var m=v.modPow(d,this);if(m.compareTo(c.ONE)!=0&&m.compareTo(f)!=0){for(var g=1;g++<h&&m.compareTo(f)!=0;)if(m=m.modPowInt(2,this),m.compareTo(c.ONE)==0)return!1;if(m.compareTo(f)!=0)return!1}}return!0},c.prototype.square=function(){var u=nbi();return this.squareTo(u),u},c.prototype.gcda=function(u,f){var h=this.s<0?this.negate():this.clone(),d=u.s<0?u.negate():u.clone();if(h.compareTo(d)<0){var v=h;h=d,d=v}var p=h.getLowestSetBit(),m=d.getLowestSetBit();if(m<0){f(h);return}p<m&&(m=p),m>0&&(h.rShiftTo(m,h),d.rShiftTo(m,d));var g=function(){(p=h.getLowestSetBit())>0&&h.rShiftTo(p,h),(p=d.getLowestSetBit())>0&&d.rShiftTo(p,d),h.compareTo(d)>=0?(h.subTo(d,h),h.rShiftTo(1,h)):(d.subTo(h,d),d.rShiftTo(1,d)),h.signum()>0?setTimeout(g,0):(m>0&&d.lShiftTo(m,d),setTimeout(function(){f(d)},0))};setTimeout(g,10)},c.prototype.fromNumberAsync=function(u,f,h,d){if(typeof f=="number")if(u<2)this.fromInt(1);else{this.fromNumber(u,h),this.testBit(u-1)||this.bitwiseTo(c.ONE.shiftLeft(u-1),op_or,this),this.isEven()&&this.dAddOffset(1,0);var v=this,p=function(){v.dAddOffset(2,0),v.bitLength()>u&&v.subTo(c.ONE.shiftLeft(u-1),v),v.isProbablePrime(f)?setTimeout(function(){d()},0):setTimeout(p,0)};setTimeout(p,0)}else{var m=[],g=u&7;m.length=(u>>3)+1,f.nextBytes(m),g>0?m[0]&=(1<<g)-1:m[0]=0,this.fromString(m,256)}},c}(),NullExp=function(){function c(){}return c.prototype.convert=function(u){return u},c.prototype.revert=function(u){return u},c.prototype.mulTo=function(u,f,h){u.multiplyTo(f,h)},c.prototype.sqrTo=function(u,f){u.squareTo(f)},c}(),Classic=function(){function c(u){this.m=u}return c.prototype.convert=function(u){return u.s<0||u.compareTo(this.m)>=0?u.mod(this.m):u},c.prototype.revert=function(u){return u},c.prototype.reduce=function(u){u.divRemTo(this.m,null,u)},c.prototype.mulTo=function(u,f,h){u.multiplyTo(f,h),this.reduce(h)},c.prototype.sqrTo=function(u,f){u.squareTo(f),this.reduce(f)},c}(),Montgomery=function(){function c(u){this.m=u,this.mp=u.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<u.DB-15)-1,this.mt2=2*u.t}return c.prototype.convert=function(u){var f=nbi();return u.abs().dlShiftTo(this.m.t,f),f.divRemTo(this.m,null,f),u.s<0&&f.compareTo(BigInteger.ZERO)>0&&this.m.subTo(f,f),f},c.prototype.revert=function(u){var f=nbi();return u.copyTo(f),this.reduce(f),f},c.prototype.reduce=function(u){for(;u.t<=this.mt2;)u[u.t++]=0;for(var f=0;f<this.m.t;++f){var h=u[f]&32767,d=h*this.mpl+((h*this.mph+(u[f]>>15)*this.mpl&this.um)<<15)&u.DM;for(h=f+this.m.t,u[h]+=this.m.am(0,d,u,f,0,this.m.t);u[h]>=u.DV;)u[h]-=u.DV,u[++h]++}u.clamp(),u.drShiftTo(this.m.t,u),u.compareTo(this.m)>=0&&u.subTo(this.m,u)},c.prototype.mulTo=function(u,f,h){u.multiplyTo(f,h),this.reduce(h)},c.prototype.sqrTo=function(u,f){u.squareTo(f),this.reduce(f)},c}(),Barrett=function(){function c(u){this.m=u,this.r2=nbi(),this.q3=nbi(),BigInteger.ONE.dlShiftTo(2*u.t,this.r2),this.mu=this.r2.divide(u)}return c.prototype.convert=function(u){if(u.s<0||u.t>2*this.m.t)return u.mod(this.m);if(u.compareTo(this.m)<0)return u;var f=nbi();return u.copyTo(f),this.reduce(f),f},c.prototype.revert=function(u){return u},c.prototype.reduce=function(u){for(u.drShiftTo(this.m.t-1,this.r2),u.t>this.m.t+1&&(u.t=this.m.t+1,u.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);u.compareTo(this.r2)<0;)u.dAddOffset(1,this.m.t+1);for(u.subTo(this.r2,u);u.compareTo(this.m)>=0;)u.subTo(this.m,u)},c.prototype.mulTo=function(u,f,h){u.multiplyTo(f,h),this.reduce(h)},c.prototype.sqrTo=function(u,f){u.squareTo(f),this.reduce(f)},c}();function nbi(){return new BigInteger(null)}function parseBigInt(c,u){return new BigInteger(c,u)}var inBrowser$2=typeof navigator<"u";inBrowser$2&&j_lm&&navigator.appName=="Microsoft Internet Explorer"?(BigInteger.prototype.am=function(u,f,h,d,v,p){for(var m=f&32767,g=f>>15;--p>=0;){var y=this[u]&32767,x=this[u++]>>15,Bn=g*y+x*m;y=m*y+((Bn&32767)<<15)+h[d]+(v&1073741823),v=(y>>>30)+(Bn>>>15)+g*x+(v>>>30),h[d++]=y&1073741823}return v},dbits=30):inBrowser$2&&j_lm&&navigator.appName!="Netscape"?(BigInteger.prototype.am=function(u,f,h,d,v,p){for(;--p>=0;){var m=f*this[u++]+h[d]+v;v=Math.floor(m/67108864),h[d++]=m&67108863}return v},dbits=26):(BigInteger.prototype.am=function(u,f,h,d,v,p){for(var m=f&16383,g=f>>14;--p>=0;){var y=this[u]&16383,x=this[u++]>>14,Bn=g*y+x*m;y=m*y+((Bn&16383)<<14)+h[d]+v,v=(y>>28)+(Bn>>14)+g*x,h[d++]=y&268435455}return v},dbits=28),BigInteger.prototype.DB=dbits,BigInteger.prototype.DM=(1<<dbits)-1,BigInteger.prototype.DV=1<<dbits;var BI_FP=52;BigInteger.prototype.FV=Math.pow(2,BI_FP),BigInteger.prototype.F1=BI_FP-dbits,BigInteger.prototype.F2=2*dbits-BI_FP;var BI_RC=[],rr,vv;for(rr="0".charCodeAt(0),vv=0;vv<=9;++vv)BI_RC[rr++]=vv;for(rr="a".charCodeAt(0),vv=10;vv<36;++vv)BI_RC[rr++]=vv;for(rr="A".charCodeAt(0),vv=10;vv<36;++vv)BI_RC[rr++]=vv;function intAt(c,u){var f=BI_RC[c.charCodeAt(u)];return f??-1}function nbv(c){var u=nbi();return u.fromInt(c),u}function nbits(c){var u=1,f;return(f=c>>>16)!=0&&(c=f,u+=16),(f=c>>8)!=0&&(c=f,u+=8),(f=c>>4)!=0&&(c=f,u+=4),(f=c>>2)!=0&&(c=f,u+=2),(f=c>>1)!=0&&(c=f,u+=1),u}BigInteger.ZERO=nbv(0),BigInteger.ONE=nbv(1);var Arcfour=function(){function c(){this.i=0,this.j=0,this.S=[]}return c.prototype.init=function(u){var f,h,d;for(f=0;f<256;++f)this.S[f]=f;for(h=0,f=0;f<256;++f)h=h+this.S[f]+u[f%u.length]&255,d=this.S[f],this.S[f]=this.S[h],this.S[h]=d;this.i=0,this.j=0},c.prototype.next=function(){var u;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,u=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=u,this.S[u+this.S[this.i]&255]},c}();function prng_newstate(){return new Arcfour}var rng_psize=256,rng_state,rng_pool=null,rng_pptr;if(rng_pool==null){rng_pool=[],rng_pptr=0;var t$1=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var z=new Uint32Array(256);for(window.crypto.getRandomValues(z),t$1=0;t$1<z.length;++t$1)rng_pool[rng_pptr++]=z[t$1]&255}var count=0,onMouseMoveListener_1=function(c){if(count=count||0,count>=256||rng_pptr>=rng_psize){window.removeEventListener?window.removeEventListener("mousemove",onMouseMoveListener_1,!1):window.detachEvent&&window.detachEvent("onmousemove",onMouseMoveListener_1);return}try{var u=c.x+c.y;rng_pool[rng_pptr++]=u&255,count+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",onMouseMoveListener_1,!1):window.attachEvent&&window.attachEvent("onmousemove",onMouseMoveListener_1))}function rng_get_byte(){if(rng_state==null){for(rng_state=prng_newstate();rng_pptr<rng_psize;){var c=Math.floor(65536*Math.random());rng_pool[rng_pptr++]=c&255}for(rng_state.init(rng_pool),rng_pptr=0;rng_pptr<rng_pool.length;++rng_pptr)rng_pool[rng_pptr]=0;rng_pptr=0}return rng_state.next()}var SecureRandom=function(){function c(){}return c.prototype.nextBytes=function(u){for(var f=0;f<u.length;++f)u[f]=rng_get_byte()},c}();function pkcs1pad1(c,u){if(u<c.length+22)return console.error("Message too long for RSA"),null;for(var f=u-c.length-6,h="",d=0;d<f;d+=2)h+="ff";var v="0001"+h+"00"+c;return parseBigInt(v,16)}function pkcs1pad2(c,u){if(u<c.length+11)return console.error("Message too long for RSA"),null;for(var f=[],h=c.length-1;h>=0&&u>0;){var d=c.charCodeAt(h--);d<128?f[--u]=d:d>127&&d<2048?(f[--u]=d&63|128,f[--u]=d>>6|192):(f[--u]=d&63|128,f[--u]=d>>6&63|128,f[--u]=d>>12|224)}f[--u]=0;for(var v=new SecureRandom,p=[];u>2;){for(p[0]=0;p[0]==0;)v.nextBytes(p);f[--u]=p[0]}return f[--u]=2,f[--u]=0,new BigInteger(f)}var RSAKey=function(){function c(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return c.prototype.doPublic=function(u){return u.modPowInt(this.e,this.n)},c.prototype.doPrivate=function(u){if(this.p==null||this.q==null)return u.modPow(this.d,this.n);for(var f=u.mod(this.p).modPow(this.dmp1,this.p),h=u.mod(this.q).modPow(this.dmq1,this.q);f.compareTo(h)<0;)f=f.add(this.p);return f.subtract(h).multiply(this.coeff).mod(this.p).multiply(this.q).add(h)},c.prototype.setPublic=function(u,f){u!=null&&f!=null&&u.length>0&&f.length>0?(this.n=parseBigInt(u,16),this.e=parseInt(f,16)):console.error("Invalid RSA public key")},c.prototype.encrypt=function(u){var f=this.n.bitLength()+7>>3,h=pkcs1pad2(u,f);if(h==null)return null;var d=this.doPublic(h);if(d==null)return null;for(var v=d.toString(16),p=v.length,m=0;m<f*2-p;m++)v="0"+v;return v},c.prototype.setPrivate=function(u,f,h){u!=null&&f!=null&&u.length>0&&f.length>0?(this.n=parseBigInt(u,16),this.e=parseInt(f,16),this.d=parseBigInt(h,16)):console.error("Invalid RSA private key")},c.prototype.setPrivateEx=function(u,f,h,d,v,p,m,g){u!=null&&f!=null&&u.length>0&&f.length>0?(this.n=parseBigInt(u,16),this.e=parseInt(f,16),this.d=parseBigInt(h,16),this.p=parseBigInt(d,16),this.q=parseBigInt(v,16),this.dmp1=parseBigInt(p,16),this.dmq1=parseBigInt(m,16),this.coeff=parseBigInt(g,16)):console.error("Invalid RSA private key")},c.prototype.generate=function(u,f){var h=new SecureRandom,d=u>>1;this.e=parseInt(f,16);for(var v=new BigInteger(f,16);;){for(;this.p=new BigInteger(u-d,1,h),!(this.p.subtract(BigInteger.ONE).gcd(v).compareTo(BigInteger.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new BigInteger(d,1,h),!(this.q.subtract(BigInteger.ONE).gcd(v).compareTo(BigInteger.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var p=this.p;this.p=this.q,this.q=p}var m=this.p.subtract(BigInteger.ONE),g=this.q.subtract(BigInteger.ONE),y=m.multiply(g);if(y.gcd(v).compareTo(BigInteger.ONE)==0){this.n=this.p.multiply(this.q),this.d=v.modInverse(y),this.dmp1=this.d.mod(m),this.dmq1=this.d.mod(g),this.coeff=this.q.modInverse(this.p);break}}},c.prototype.decrypt=function(u){var f=parseBigInt(u,16),h=this.doPrivate(f);return h==null?null:pkcs1unpad2(h,this.n.bitLength()+7>>3)},c.prototype.generateAsync=function(u,f,h){var d=new SecureRandom,v=u>>1;this.e=parseInt(f,16);var p=new BigInteger(f,16),m=this,g=function(){var y=function(){if(m.p.compareTo(m.q)<=0){var b=m.p;m.p=m.q,m.q=b}var re=m.p.subtract(BigInteger.ONE),_=m.q.subtract(BigInteger.ONE),vn=re.multiply(_);vn.gcd(p).compareTo(BigInteger.ONE)==0?(m.n=m.p.multiply(m.q),m.d=p.modInverse(vn),m.dmp1=m.d.mod(re),m.dmq1=m.d.mod(_),m.coeff=m.q.modInverse(m.p),setTimeout(function(){h()},0)):setTimeout(g,0)},x=function(){m.q=nbi(),m.q.fromNumberAsync(v,1,d,function(){m.q.subtract(BigInteger.ONE).gcda(p,function(b){b.compareTo(BigInteger.ONE)==0&&m.q.isProbablePrime(10)?setTimeout(y,0):setTimeout(x,0)})})},Bn=function(){m.p=nbi(),m.p.fromNumberAsync(u-v,1,d,function(){m.p.subtract(BigInteger.ONE).gcda(p,function(b){b.compareTo(BigInteger.ONE)==0&&m.p.isProbablePrime(10)?setTimeout(x,0):setTimeout(Bn,0)})})};setTimeout(Bn,0)};setTimeout(g,0)},c.prototype.sign=function(u,f,h){var d=getDigestHeader(h),v=d+f(u).toString(),p=pkcs1pad1(v,this.n.bitLength()/4);if(p==null)return null;var m=this.doPrivate(p);if(m==null)return null;var g=m.toString(16);return g.length&1?"0"+g:g},c.prototype.verify=function(u,f,h){var d=parseBigInt(f,16),v=this.doPublic(d);if(v==null)return null;var p=v.toString(16).replace(/^1f+00/,""),m=removeDigestHeader(p);return m==h(u).toString()},c}();function pkcs1unpad2(c,u){for(var f=c.toByteArray(),h=0;h<f.length&&f[h]==0;)++h;if(f.length-h!=u-1||f[h]!=2)return null;for(++h;f[h]!=0;)if(++h>=f.length)return null;for(var d="";++h<f.length;){var v=f[h]&255;v<128?d+=String.fromCharCode(v):v>191&&v<224?(d+=String.fromCharCode((v&31)<<6|f[h+1]&63),++h):(d+=String.fromCharCode((v&15)<<12|(f[h+1]&63)<<6|f[h+2]&63),h+=2)}return d}var DIGEST_HEADERS={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function getDigestHeader(c){return DIGEST_HEADERS[c]||""}function removeDigestHeader(c){for(var u in DIGEST_HEADERS)if(DIGEST_HEADERS.hasOwnProperty(u)){var f=DIGEST_HEADERS[u],h=f.length;if(c.substr(0,h)==f)return c.substr(h)}return c}/*!
|
|
82
82
|
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
|
83
83
|
Code licensed under the BSD License:
|
|
84
84
|
http://developer.yahoo.com/yui/license.html
|
|
@@ -90,7 +90,7 @@ version: 2.9.0
|
|
|
90
90
|
* @version asn1 1.0.13 (2017-Jun-02)
|
|
91
91
|
* @since jsrsasign 2.1
|
|
92
92
|
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
93
|
-
*/var KJUR={};(typeof KJUR.asn1>"u"||!KJUR.asn1)&&(KJUR.asn1={}),KJUR.asn1.ASN1Util=new function(){this.integerToByteHex=function(c){var u=c.toString(16);return u.length%2==1&&(u="0"+u),u},this.bigIntToMinTwosComplementsHex=function(c){var u=c.toString(16);if(u.substr(0,1)!="-")u.length%2==1?u="0"+u:u.match(/^[0-7]/)||(u="00"+u);else{var f=u.substr(1),h=f.length;h%2==1?h+=1:u.match(/^[0-7]/)||(h+=2);for(var d="",v=0;v<h;v++)d+="f";var p=new BigInteger(d,16),m=p.xor(c).add(BigInteger.ONE);u=m.toString(16).replace(/^-/,"")}return u},this.getPEMStringFromHex=function(c,u){return hextopem(c,u)},this.newObject=function(c){var u=KJUR,f=u.asn1,h=f.DERBoolean,d=f.DERInteger,v=f.DERBitString,p=f.DEROctetString,m=f.DERNull,g=f.DERObjectIdentifier,y=f.DEREnumerated,x=f.DERUTF8String,Pn=f.DERNumericString,b=f.DERPrintableString,vn=f.DERTeletexString,_=f.DERIA5String,re=f.DERUTCTime,Fn=f.DERGeneralizedTime,Bn=f.DERSequence,w=f.DERSet,J=f.DERTaggedObject,gn=f.ASN1Util.newObject,Rn=Object.keys(c);if(Rn.length!=1)throw"key of param shall be only one.";var zn=Rn[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+zn+":")==-1)throw"undefined key: "+zn;if(zn=="bool")return new h(c[zn]);if(zn=="int")return new d(c[zn]);if(zn=="bitstr")return new v(c[zn]);if(zn=="octstr")return new p(c[zn]);if(zn=="null")return new m(c[zn]);if(zn=="oid")return new g(c[zn]);if(zn=="enum")return new y(c[zn]);if(zn=="utf8str")return new x(c[zn]);if(zn=="numstr")return new Pn(c[zn]);if(zn=="prnstr")return new b(c[zn]);if(zn=="telstr")return new vn(c[zn]);if(zn=="ia5str")return new _(c[zn]);if(zn=="utctime")return new re(c[zn]);if(zn=="gentime")return new Fn(c[zn]);if(zn=="seq"){for(var Wn=c[zn],Un=[],Qn=0;Qn<Wn.length;Qn++){var Jn=gn(Wn[Qn]);Un.push(Jn)}return new Bn({array:Un})}if(zn=="set"){for(var Wn=c[zn],Un=[],Qn=0;Qn<Wn.length;Qn++){var Jn=gn(Wn[Qn]);Un.push(Jn)}return new w({array:Un})}if(zn=="tag"){var tr=c[zn];if(Object.prototype.toString.call(tr)==="[object Array]"&&tr.length==3){var Xn=gn(tr[2]);return new J({tag:tr[0],explicit:tr[1],obj:Xn})}else{var ar={};if(tr.explicit!==void 0&&(ar.explicit=tr.explicit),tr.tag!==void 0&&(ar.tag=tr.tag),tr.obj===void 0)throw"obj shall be specified for 'tag'.";return ar.obj=gn(tr.obj),new J(ar)}}},this.jsonToASN1HEX=function(c){var u=this.newObject(c);return u.getEncodedHex()}},KJUR.asn1.ASN1Util.oidHexToInt=function(c){for(var d="",u=parseInt(c.substr(0,2),16),f=Math.floor(u/40),h=u%40,d=f+"."+h,v="",p=2;p<c.length;p+=2){var m=parseInt(c.substr(p,2),16),g=("00000000"+m.toString(2)).slice(-8);if(v=v+g.substr(1,7),g.substr(0,1)=="0"){var y=new BigInteger(v,2);d=d+"."+y.toString(10),v=""}}return d},KJUR.asn1.ASN1Util.oidIntToHex=function(c){var u=function(m){var g=m.toString(16);return g.length==1&&(g="0"+g),g},f=function(m){var g="",y=new BigInteger(m,10),x=y.toString(2),Pn=7-x.length%7;Pn==7&&(Pn=0);for(var b="",vn=0;vn<Pn;vn++)b+="0";x=b+x;for(var vn=0;vn<x.length-1;vn+=7){var _=x.substr(vn,7);vn!=x.length-7&&(_="1"+_),g+=u(parseInt(_,2))}return g};if(!c.match(/^[0-9.]+$/))throw"malformed oid string: "+c;var h="",d=c.split("."),v=parseInt(d[0])*40+parseInt(d[1]);h+=u(v),d.splice(0,2);for(var p=0;p<d.length;p++)h+=f(d[p]);return h},KJUR.asn1.ASN1Object=function(){var c="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+c.length+",v="+this.hV;var u=this.hV.length/2,f=u.toString(16);if(f.length%2==1&&(f="0"+f),u<128)return f;var h=f.length/2;if(h>15)throw"ASN.1 length too long to represent by 8x: n = "+u.toString(16);var d=128+h;return d.toString(16)+f},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},KJUR.asn1.DERAbstractString=function(c){KJUR.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(u){this.hTLV=null,this.isModified=!0,this.s=u,this.hV=stohex(this.s)},this.setStringHex=function(u){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=u},this.getFreshValueHex=function(){return this.hV},typeof c<"u"&&(typeof c=="string"?this.setString(c):typeof c.str<"u"?this.setString(c.str):typeof c.hex<"u"&&this.setStringHex(c.hex))},YAHOO.lang.extend(KJUR.asn1.DERAbstractString,KJUR.asn1.ASN1Object),KJUR.asn1.DERAbstractTime=function(c){KJUR.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(u){utc=u.getTime()+u.getTimezoneOffset()*6e4;var f=new Date(utc);return f},this.formatDate=function(u,f,h){var d=this.zeroPadding,v=this.localDateToUTC(u),p=String(v.getFullYear());f=="utc"&&(p=p.substr(2,2));var m=d(String(v.getMonth()+1),2),g=d(String(v.getDate()),2),y=d(String(v.getHours()),2),x=d(String(v.getMinutes()),2),Pn=d(String(v.getSeconds()),2),b=p+m+g+y+x+Pn;if(h===!0){var vn=v.getMilliseconds();if(vn!=0){var _=d(String(vn),3);_=_.replace(/[0]+$/,""),b=b+"."+_}}return b+"Z"},this.zeroPadding=function(u,f){return u.length>=f?u:new Array(f-u.length+1).join("0")+u},this.getString=function(){return this.s},this.setString=function(u){this.hTLV=null,this.isModified=!0,this.s=u,this.hV=stohex(u)},this.setByDateValue=function(u,f,h,d,v,p){var m=new Date(Date.UTC(u,f-1,h,d,v,p,0));this.setByDate(m)},this.getFreshValueHex=function(){return this.hV}},YAHOO.lang.extend(KJUR.asn1.DERAbstractTime,KJUR.asn1.ASN1Object),KJUR.asn1.DERAbstractStructured=function(c){KJUR.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(u){this.hTLV=null,this.isModified=!0,this.asn1Array=u},this.appendASN1Object=function(u){this.hTLV=null,this.isModified=!0,this.asn1Array.push(u)},this.asn1Array=new Array,typeof c<"u"&&typeof c.array<"u"&&(this.asn1Array=c.array)},YAHOO.lang.extend(KJUR.asn1.DERAbstractStructured,KJUR.asn1.ASN1Object),KJUR.asn1.DERBoolean=function(){KJUR.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},YAHOO.lang.extend(KJUR.asn1.DERBoolean,KJUR.asn1.ASN1Object),KJUR.asn1.DERInteger=function(c){KJUR.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(u){this.hTLV=null,this.isModified=!0,this.hV=KJUR.asn1.ASN1Util.bigIntToMinTwosComplementsHex(u)},this.setByInteger=function(u){var f=new BigInteger(String(u),10);this.setByBigInteger(f)},this.setValueHex=function(u){this.hV=u},this.getFreshValueHex=function(){return this.hV},typeof c<"u"&&(typeof c.bigint<"u"?this.setByBigInteger(c.bigint):typeof c.int<"u"?this.setByInteger(c.int):typeof c=="number"?this.setByInteger(c):typeof c.hex<"u"&&this.setValueHex(c.hex))},YAHOO.lang.extend(KJUR.asn1.DERInteger,KJUR.asn1.ASN1Object),KJUR.asn1.DERBitString=function(c){if(c!==void 0&&typeof c.obj<"u"){var u=KJUR.asn1.ASN1Util.newObject(c.obj);c.hex="00"+u.getEncodedHex()}KJUR.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(f){this.hTLV=null,this.isModified=!0,this.hV=f},this.setUnusedBitsAndHexValue=function(f,h){if(f<0||7<f)throw"unused bits shall be from 0 to 7: u = "+f;var d="0"+f;this.hTLV=null,this.isModified=!0,this.hV=d+h},this.setByBinaryString=function(f){f=f.replace(/0+$/,"");var h=8-f.length%8;h==8&&(h=0);for(var d=0;d<=h;d++)f+="0";for(var v="",d=0;d<f.length-1;d+=8){var p=f.substr(d,8),m=parseInt(p,2).toString(16);m.length==1&&(m="0"+m),v+=m}this.hTLV=null,this.isModified=!0,this.hV="0"+h+v},this.setByBooleanArray=function(f){for(var h="",d=0;d<f.length;d++)f[d]==!0?h+="1":h+="0";this.setByBinaryString(h)},this.newFalseArray=function(f){for(var h=new Array(f),d=0;d<f;d++)h[d]=!1;return h},this.getFreshValueHex=function(){return this.hV},typeof c<"u"&&(typeof c=="string"&&c.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(c):typeof c.hex<"u"?this.setHexValueIncludingUnusedBits(c.hex):typeof c.bin<"u"?this.setByBinaryString(c.bin):typeof c.array<"u"&&this.setByBooleanArray(c.array))},YAHOO.lang.extend(KJUR.asn1.DERBitString,KJUR.asn1.ASN1Object),KJUR.asn1.DEROctetString=function(c){if(c!==void 0&&typeof c.obj<"u"){var u=KJUR.asn1.ASN1Util.newObject(c.obj);c.hex=u.getEncodedHex()}KJUR.asn1.DEROctetString.superclass.constructor.call(this,c),this.hT="04"},YAHOO.lang.extend(KJUR.asn1.DEROctetString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERNull=function(){KJUR.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},YAHOO.lang.extend(KJUR.asn1.DERNull,KJUR.asn1.ASN1Object),KJUR.asn1.DERObjectIdentifier=function(c){var u=function(h){var d=h.toString(16);return d.length==1&&(d="0"+d),d},f=function(h){var d="",v=new BigInteger(h,10),p=v.toString(2),m=7-p.length%7;m==7&&(m=0);for(var g="",y=0;y<m;y++)g+="0";p=g+p;for(var y=0;y<p.length-1;y+=7){var x=p.substr(y,7);y!=p.length-7&&(x="1"+x),d+=u(parseInt(x,2))}return d};KJUR.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(h){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=h},this.setValueOidString=function(h){if(!h.match(/^[0-9.]+$/))throw"malformed oid string: "+h;var d="",v=h.split("."),p=parseInt(v[0])*40+parseInt(v[1]);d+=u(p),v.splice(0,2);for(var m=0;m<v.length;m++)d+=f(v[m]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=d},this.setValueName=function(h){var d=KJUR.asn1.x509.OID.name2oid(h);if(d!=="")this.setValueOidString(d);else throw"DERObjectIdentifier oidName undefined: "+h},this.getFreshValueHex=function(){return this.hV},c!==void 0&&(typeof c=="string"?c.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(c):this.setValueName(c):c.oid!==void 0?this.setValueOidString(c.oid):c.hex!==void 0?this.setValueHex(c.hex):c.name!==void 0&&this.setValueName(c.name))},YAHOO.lang.extend(KJUR.asn1.DERObjectIdentifier,KJUR.asn1.ASN1Object),KJUR.asn1.DEREnumerated=function(c){KJUR.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(u){this.hTLV=null,this.isModified=!0,this.hV=KJUR.asn1.ASN1Util.bigIntToMinTwosComplementsHex(u)},this.setByInteger=function(u){var f=new BigInteger(String(u),10);this.setByBigInteger(f)},this.setValueHex=function(u){this.hV=u},this.getFreshValueHex=function(){return this.hV},typeof c<"u"&&(typeof c.int<"u"?this.setByInteger(c.int):typeof c=="number"?this.setByInteger(c):typeof c.hex<"u"&&this.setValueHex(c.hex))},YAHOO.lang.extend(KJUR.asn1.DEREnumerated,KJUR.asn1.ASN1Object),KJUR.asn1.DERUTF8String=function(c){KJUR.asn1.DERUTF8String.superclass.constructor.call(this,c),this.hT="0c"},YAHOO.lang.extend(KJUR.asn1.DERUTF8String,KJUR.asn1.DERAbstractString),KJUR.asn1.DERNumericString=function(c){KJUR.asn1.DERNumericString.superclass.constructor.call(this,c),this.hT="12"},YAHOO.lang.extend(KJUR.asn1.DERNumericString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERPrintableString=function(c){KJUR.asn1.DERPrintableString.superclass.constructor.call(this,c),this.hT="13"},YAHOO.lang.extend(KJUR.asn1.DERPrintableString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERTeletexString=function(c){KJUR.asn1.DERTeletexString.superclass.constructor.call(this,c),this.hT="14"},YAHOO.lang.extend(KJUR.asn1.DERTeletexString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERIA5String=function(c){KJUR.asn1.DERIA5String.superclass.constructor.call(this,c),this.hT="16"},YAHOO.lang.extend(KJUR.asn1.DERIA5String,KJUR.asn1.DERAbstractString),KJUR.asn1.DERUTCTime=function(c){KJUR.asn1.DERUTCTime.superclass.constructor.call(this,c),this.hT="17",this.setByDate=function(u){this.hTLV=null,this.isModified=!0,this.date=u,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},c!==void 0&&(c.str!==void 0?this.setString(c.str):typeof c=="string"&&c.match(/^[0-9]{12}Z$/)?this.setString(c):c.hex!==void 0?this.setStringHex(c.hex):c.date!==void 0&&this.setByDate(c.date))},YAHOO.lang.extend(KJUR.asn1.DERUTCTime,KJUR.asn1.DERAbstractTime),KJUR.asn1.DERGeneralizedTime=function(c){KJUR.asn1.DERGeneralizedTime.superclass.constructor.call(this,c),this.hT="18",this.withMillis=!1,this.setByDate=function(u){this.hTLV=null,this.isModified=!0,this.date=u,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},c!==void 0&&(c.str!==void 0?this.setString(c.str):typeof c=="string"&&c.match(/^[0-9]{14}Z$/)?this.setString(c):c.hex!==void 0?this.setStringHex(c.hex):c.date!==void 0&&this.setByDate(c.date),c.millis===!0&&(this.withMillis=!0))},YAHOO.lang.extend(KJUR.asn1.DERGeneralizedTime,KJUR.asn1.DERAbstractTime),KJUR.asn1.DERSequence=function(c){KJUR.asn1.DERSequence.superclass.constructor.call(this,c),this.hT="30",this.getFreshValueHex=function(){for(var u="",f=0;f<this.asn1Array.length;f++){var h=this.asn1Array[f];u+=h.getEncodedHex()}return this.hV=u,this.hV}},YAHOO.lang.extend(KJUR.asn1.DERSequence,KJUR.asn1.DERAbstractStructured),KJUR.asn1.DERSet=function(c){KJUR.asn1.DERSet.superclass.constructor.call(this,c),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var u=new Array,f=0;f<this.asn1Array.length;f++){var h=this.asn1Array[f];u.push(h.getEncodedHex())}return this.sortFlag==!0&&u.sort(),this.hV=u.join(""),this.hV},typeof c<"u"&&typeof c.sortflag<"u"&&c.sortflag==!1&&(this.sortFlag=!1)},YAHOO.lang.extend(KJUR.asn1.DERSet,KJUR.asn1.DERAbstractStructured),KJUR.asn1.DERTaggedObject=function(c){KJUR.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(u,f,h){this.hT=f,this.isExplicit=u,this.asn1Object=h,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=h.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,f),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof c<"u"&&(typeof c.tag<"u"&&(this.hT=c.tag),typeof c.explicit<"u"&&(this.isExplicit=c.explicit),typeof c.obj<"u"&&(this.asn1Object=c.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},YAHOO.lang.extend(KJUR.asn1.DERTaggedObject,KJUR.asn1.ASN1Object);var __extends=globalThis&&globalThis.__extends||function(){var c=function(u,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var v in d)Object.prototype.hasOwnProperty.call(d,v)&&(h[v]=d[v])},c(u,f)};return function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");c(u,f);function h(){this.constructor=u}u.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)}}(),JSEncryptRSAKey=function(c){__extends(u,c);function u(f){var h=c.call(this)||this;return f&&(typeof f=="string"?h.parseKey(f):(u.hasPrivateKeyProperty(f)||u.hasPublicKeyProperty(f))&&h.parsePropertiesFrom(f)),h}return u.prototype.parseKey=function(f){try{var h=0,d=0,v=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,p=v.test(f)?Hex.decode(f):Base64.unarmor(f),m=ASN1.decode(p);if(m.sub.length===3&&(m=m.sub[2].sub[0]),m.sub.length===9){h=m.sub[1].getHexStringValue(),this.n=parseBigInt(h,16),d=m.sub[2].getHexStringValue(),this.e=parseInt(d,16);var g=m.sub[3].getHexStringValue();this.d=parseBigInt(g,16);var y=m.sub[4].getHexStringValue();this.p=parseBigInt(y,16);var x=m.sub[5].getHexStringValue();this.q=parseBigInt(x,16);var Pn=m.sub[6].getHexStringValue();this.dmp1=parseBigInt(Pn,16);var b=m.sub[7].getHexStringValue();this.dmq1=parseBigInt(b,16);var vn=m.sub[8].getHexStringValue();this.coeff=parseBigInt(vn,16)}else if(m.sub.length===2)if(m.sub[0].sub){var _=m.sub[1],re=_.sub[0];h=re.sub[0].getHexStringValue(),this.n=parseBigInt(h,16),d=re.sub[1].getHexStringValue(),this.e=parseInt(d,16)}else h=m.sub[0].getHexStringValue(),this.n=parseBigInt(h,16),d=m.sub[1].getHexStringValue(),this.e=parseInt(d,16);else return!1;return!0}catch{return!1}},u.prototype.getPrivateBaseKey=function(){var f={array:[new KJUR.asn1.DERInteger({int:0}),new KJUR.asn1.DERInteger({bigint:this.n}),new KJUR.asn1.DERInteger({int:this.e}),new KJUR.asn1.DERInteger({bigint:this.d}),new KJUR.asn1.DERInteger({bigint:this.p}),new KJUR.asn1.DERInteger({bigint:this.q}),new KJUR.asn1.DERInteger({bigint:this.dmp1}),new KJUR.asn1.DERInteger({bigint:this.dmq1}),new KJUR.asn1.DERInteger({bigint:this.coeff})]},h=new KJUR.asn1.DERSequence(f);return h.getEncodedHex()},u.prototype.getPrivateBaseKeyB64=function(){return hex2b64(this.getPrivateBaseKey())},u.prototype.getPublicBaseKey=function(){var f=new KJUR.asn1.DERSequence({array:[new KJUR.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new KJUR.asn1.DERNull]}),h=new KJUR.asn1.DERSequence({array:[new KJUR.asn1.DERInteger({bigint:this.n}),new KJUR.asn1.DERInteger({int:this.e})]}),d=new KJUR.asn1.DERBitString({hex:"00"+h.getEncodedHex()}),v=new KJUR.asn1.DERSequence({array:[f,d]});return v.getEncodedHex()},u.prototype.getPublicBaseKeyB64=function(){return hex2b64(this.getPublicBaseKey())},u.wordwrap=function(f,h){if(h=h||64,!f)return f;var d="(.{1,"+h+`})( +|$
|
|
93
|
+
*/var KJUR={};(typeof KJUR.asn1>"u"||!KJUR.asn1)&&(KJUR.asn1={}),KJUR.asn1.ASN1Util=new function(){this.integerToByteHex=function(c){var u=c.toString(16);return u.length%2==1&&(u="0"+u),u},this.bigIntToMinTwosComplementsHex=function(c){var u=c.toString(16);if(u.substr(0,1)!="-")u.length%2==1?u="0"+u:u.match(/^[0-7]/)||(u="00"+u);else{var f=u.substr(1),h=f.length;h%2==1?h+=1:u.match(/^[0-7]/)||(h+=2);for(var d="",v=0;v<h;v++)d+="f";var p=new BigInteger(d,16),m=p.xor(c).add(BigInteger.ONE);u=m.toString(16).replace(/^-/,"")}return u},this.getPEMStringFromHex=function(c,u){return hextopem(c,u)},this.newObject=function(c){var u=KJUR,f=u.asn1,h=f.DERBoolean,d=f.DERInteger,v=f.DERBitString,p=f.DEROctetString,m=f.DERNull,g=f.DERObjectIdentifier,y=f.DEREnumerated,x=f.DERUTF8String,Bn=f.DERNumericString,b=f.DERPrintableString,re=f.DERTeletexString,_=f.DERIA5String,vn=f.DERUTCTime,Fn=f.DERGeneralizedTime,Pn=f.DERSequence,w=f.DERSet,J=f.DERTaggedObject,gn=f.ASN1Util.newObject,Vn=Object.keys(c);if(Vn.length!=1)throw"key of param shall be only one.";var zn=Vn[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+zn+":")==-1)throw"undefined key: "+zn;if(zn=="bool")return new h(c[zn]);if(zn=="int")return new d(c[zn]);if(zn=="bitstr")return new v(c[zn]);if(zn=="octstr")return new p(c[zn]);if(zn=="null")return new m(c[zn]);if(zn=="oid")return new g(c[zn]);if(zn=="enum")return new y(c[zn]);if(zn=="utf8str")return new x(c[zn]);if(zn=="numstr")return new Bn(c[zn]);if(zn=="prnstr")return new b(c[zn]);if(zn=="telstr")return new re(c[zn]);if(zn=="ia5str")return new _(c[zn]);if(zn=="utctime")return new vn(c[zn]);if(zn=="gentime")return new Fn(c[zn]);if(zn=="seq"){for(var Wn=c[zn],Un=[],er=0;er<Wn.length;er++){var Jn=gn(Wn[er]);Un.push(Jn)}return new Pn({array:Un})}if(zn=="set"){for(var Wn=c[zn],Un=[],er=0;er<Wn.length;er++){var Jn=gn(Wn[er]);Un.push(Jn)}return new w({array:Un})}if(zn=="tag"){var tr=c[zn];if(Object.prototype.toString.call(tr)==="[object Array]"&&tr.length==3){var Qn=gn(tr[2]);return new J({tag:tr[0],explicit:tr[1],obj:Qn})}else{var ir={};if(tr.explicit!==void 0&&(ir.explicit=tr.explicit),tr.tag!==void 0&&(ir.tag=tr.tag),tr.obj===void 0)throw"obj shall be specified for 'tag'.";return ir.obj=gn(tr.obj),new J(ir)}}},this.jsonToASN1HEX=function(c){var u=this.newObject(c);return u.getEncodedHex()}},KJUR.asn1.ASN1Util.oidHexToInt=function(c){for(var d="",u=parseInt(c.substr(0,2),16),f=Math.floor(u/40),h=u%40,d=f+"."+h,v="",p=2;p<c.length;p+=2){var m=parseInt(c.substr(p,2),16),g=("00000000"+m.toString(2)).slice(-8);if(v=v+g.substr(1,7),g.substr(0,1)=="0"){var y=new BigInteger(v,2);d=d+"."+y.toString(10),v=""}}return d},KJUR.asn1.ASN1Util.oidIntToHex=function(c){var u=function(m){var g=m.toString(16);return g.length==1&&(g="0"+g),g},f=function(m){var g="",y=new BigInteger(m,10),x=y.toString(2),Bn=7-x.length%7;Bn==7&&(Bn=0);for(var b="",re=0;re<Bn;re++)b+="0";x=b+x;for(var re=0;re<x.length-1;re+=7){var _=x.substr(re,7);re!=x.length-7&&(_="1"+_),g+=u(parseInt(_,2))}return g};if(!c.match(/^[0-9.]+$/))throw"malformed oid string: "+c;var h="",d=c.split("."),v=parseInt(d[0])*40+parseInt(d[1]);h+=u(v),d.splice(0,2);for(var p=0;p<d.length;p++)h+=f(d[p]);return h},KJUR.asn1.ASN1Object=function(){var c="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+c.length+",v="+this.hV;var u=this.hV.length/2,f=u.toString(16);if(f.length%2==1&&(f="0"+f),u<128)return f;var h=f.length/2;if(h>15)throw"ASN.1 length too long to represent by 8x: n = "+u.toString(16);var d=128+h;return d.toString(16)+f},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},KJUR.asn1.DERAbstractString=function(c){KJUR.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(u){this.hTLV=null,this.isModified=!0,this.s=u,this.hV=stohex(this.s)},this.setStringHex=function(u){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=u},this.getFreshValueHex=function(){return this.hV},typeof c<"u"&&(typeof c=="string"?this.setString(c):typeof c.str<"u"?this.setString(c.str):typeof c.hex<"u"&&this.setStringHex(c.hex))},YAHOO.lang.extend(KJUR.asn1.DERAbstractString,KJUR.asn1.ASN1Object),KJUR.asn1.DERAbstractTime=function(c){KJUR.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(u){utc=u.getTime()+u.getTimezoneOffset()*6e4;var f=new Date(utc);return f},this.formatDate=function(u,f,h){var d=this.zeroPadding,v=this.localDateToUTC(u),p=String(v.getFullYear());f=="utc"&&(p=p.substr(2,2));var m=d(String(v.getMonth()+1),2),g=d(String(v.getDate()),2),y=d(String(v.getHours()),2),x=d(String(v.getMinutes()),2),Bn=d(String(v.getSeconds()),2),b=p+m+g+y+x+Bn;if(h===!0){var re=v.getMilliseconds();if(re!=0){var _=d(String(re),3);_=_.replace(/[0]+$/,""),b=b+"."+_}}return b+"Z"},this.zeroPadding=function(u,f){return u.length>=f?u:new Array(f-u.length+1).join("0")+u},this.getString=function(){return this.s},this.setString=function(u){this.hTLV=null,this.isModified=!0,this.s=u,this.hV=stohex(u)},this.setByDateValue=function(u,f,h,d,v,p){var m=new Date(Date.UTC(u,f-1,h,d,v,p,0));this.setByDate(m)},this.getFreshValueHex=function(){return this.hV}},YAHOO.lang.extend(KJUR.asn1.DERAbstractTime,KJUR.asn1.ASN1Object),KJUR.asn1.DERAbstractStructured=function(c){KJUR.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(u){this.hTLV=null,this.isModified=!0,this.asn1Array=u},this.appendASN1Object=function(u){this.hTLV=null,this.isModified=!0,this.asn1Array.push(u)},this.asn1Array=new Array,typeof c<"u"&&typeof c.array<"u"&&(this.asn1Array=c.array)},YAHOO.lang.extend(KJUR.asn1.DERAbstractStructured,KJUR.asn1.ASN1Object),KJUR.asn1.DERBoolean=function(){KJUR.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},YAHOO.lang.extend(KJUR.asn1.DERBoolean,KJUR.asn1.ASN1Object),KJUR.asn1.DERInteger=function(c){KJUR.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(u){this.hTLV=null,this.isModified=!0,this.hV=KJUR.asn1.ASN1Util.bigIntToMinTwosComplementsHex(u)},this.setByInteger=function(u){var f=new BigInteger(String(u),10);this.setByBigInteger(f)},this.setValueHex=function(u){this.hV=u},this.getFreshValueHex=function(){return this.hV},typeof c<"u"&&(typeof c.bigint<"u"?this.setByBigInteger(c.bigint):typeof c.int<"u"?this.setByInteger(c.int):typeof c=="number"?this.setByInteger(c):typeof c.hex<"u"&&this.setValueHex(c.hex))},YAHOO.lang.extend(KJUR.asn1.DERInteger,KJUR.asn1.ASN1Object),KJUR.asn1.DERBitString=function(c){if(c!==void 0&&typeof c.obj<"u"){var u=KJUR.asn1.ASN1Util.newObject(c.obj);c.hex="00"+u.getEncodedHex()}KJUR.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(f){this.hTLV=null,this.isModified=!0,this.hV=f},this.setUnusedBitsAndHexValue=function(f,h){if(f<0||7<f)throw"unused bits shall be from 0 to 7: u = "+f;var d="0"+f;this.hTLV=null,this.isModified=!0,this.hV=d+h},this.setByBinaryString=function(f){f=f.replace(/0+$/,"");var h=8-f.length%8;h==8&&(h=0);for(var d=0;d<=h;d++)f+="0";for(var v="",d=0;d<f.length-1;d+=8){var p=f.substr(d,8),m=parseInt(p,2).toString(16);m.length==1&&(m="0"+m),v+=m}this.hTLV=null,this.isModified=!0,this.hV="0"+h+v},this.setByBooleanArray=function(f){for(var h="",d=0;d<f.length;d++)f[d]==!0?h+="1":h+="0";this.setByBinaryString(h)},this.newFalseArray=function(f){for(var h=new Array(f),d=0;d<f;d++)h[d]=!1;return h},this.getFreshValueHex=function(){return this.hV},typeof c<"u"&&(typeof c=="string"&&c.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(c):typeof c.hex<"u"?this.setHexValueIncludingUnusedBits(c.hex):typeof c.bin<"u"?this.setByBinaryString(c.bin):typeof c.array<"u"&&this.setByBooleanArray(c.array))},YAHOO.lang.extend(KJUR.asn1.DERBitString,KJUR.asn1.ASN1Object),KJUR.asn1.DEROctetString=function(c){if(c!==void 0&&typeof c.obj<"u"){var u=KJUR.asn1.ASN1Util.newObject(c.obj);c.hex=u.getEncodedHex()}KJUR.asn1.DEROctetString.superclass.constructor.call(this,c),this.hT="04"},YAHOO.lang.extend(KJUR.asn1.DEROctetString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERNull=function(){KJUR.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},YAHOO.lang.extend(KJUR.asn1.DERNull,KJUR.asn1.ASN1Object),KJUR.asn1.DERObjectIdentifier=function(c){var u=function(h){var d=h.toString(16);return d.length==1&&(d="0"+d),d},f=function(h){var d="",v=new BigInteger(h,10),p=v.toString(2),m=7-p.length%7;m==7&&(m=0);for(var g="",y=0;y<m;y++)g+="0";p=g+p;for(var y=0;y<p.length-1;y+=7){var x=p.substr(y,7);y!=p.length-7&&(x="1"+x),d+=u(parseInt(x,2))}return d};KJUR.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(h){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=h},this.setValueOidString=function(h){if(!h.match(/^[0-9.]+$/))throw"malformed oid string: "+h;var d="",v=h.split("."),p=parseInt(v[0])*40+parseInt(v[1]);d+=u(p),v.splice(0,2);for(var m=0;m<v.length;m++)d+=f(v[m]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=d},this.setValueName=function(h){var d=KJUR.asn1.x509.OID.name2oid(h);if(d!=="")this.setValueOidString(d);else throw"DERObjectIdentifier oidName undefined: "+h},this.getFreshValueHex=function(){return this.hV},c!==void 0&&(typeof c=="string"?c.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(c):this.setValueName(c):c.oid!==void 0?this.setValueOidString(c.oid):c.hex!==void 0?this.setValueHex(c.hex):c.name!==void 0&&this.setValueName(c.name))},YAHOO.lang.extend(KJUR.asn1.DERObjectIdentifier,KJUR.asn1.ASN1Object),KJUR.asn1.DEREnumerated=function(c){KJUR.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(u){this.hTLV=null,this.isModified=!0,this.hV=KJUR.asn1.ASN1Util.bigIntToMinTwosComplementsHex(u)},this.setByInteger=function(u){var f=new BigInteger(String(u),10);this.setByBigInteger(f)},this.setValueHex=function(u){this.hV=u},this.getFreshValueHex=function(){return this.hV},typeof c<"u"&&(typeof c.int<"u"?this.setByInteger(c.int):typeof c=="number"?this.setByInteger(c):typeof c.hex<"u"&&this.setValueHex(c.hex))},YAHOO.lang.extend(KJUR.asn1.DEREnumerated,KJUR.asn1.ASN1Object),KJUR.asn1.DERUTF8String=function(c){KJUR.asn1.DERUTF8String.superclass.constructor.call(this,c),this.hT="0c"},YAHOO.lang.extend(KJUR.asn1.DERUTF8String,KJUR.asn1.DERAbstractString),KJUR.asn1.DERNumericString=function(c){KJUR.asn1.DERNumericString.superclass.constructor.call(this,c),this.hT="12"},YAHOO.lang.extend(KJUR.asn1.DERNumericString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERPrintableString=function(c){KJUR.asn1.DERPrintableString.superclass.constructor.call(this,c),this.hT="13"},YAHOO.lang.extend(KJUR.asn1.DERPrintableString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERTeletexString=function(c){KJUR.asn1.DERTeletexString.superclass.constructor.call(this,c),this.hT="14"},YAHOO.lang.extend(KJUR.asn1.DERTeletexString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERIA5String=function(c){KJUR.asn1.DERIA5String.superclass.constructor.call(this,c),this.hT="16"},YAHOO.lang.extend(KJUR.asn1.DERIA5String,KJUR.asn1.DERAbstractString),KJUR.asn1.DERUTCTime=function(c){KJUR.asn1.DERUTCTime.superclass.constructor.call(this,c),this.hT="17",this.setByDate=function(u){this.hTLV=null,this.isModified=!0,this.date=u,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},c!==void 0&&(c.str!==void 0?this.setString(c.str):typeof c=="string"&&c.match(/^[0-9]{12}Z$/)?this.setString(c):c.hex!==void 0?this.setStringHex(c.hex):c.date!==void 0&&this.setByDate(c.date))},YAHOO.lang.extend(KJUR.asn1.DERUTCTime,KJUR.asn1.DERAbstractTime),KJUR.asn1.DERGeneralizedTime=function(c){KJUR.asn1.DERGeneralizedTime.superclass.constructor.call(this,c),this.hT="18",this.withMillis=!1,this.setByDate=function(u){this.hTLV=null,this.isModified=!0,this.date=u,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},c!==void 0&&(c.str!==void 0?this.setString(c.str):typeof c=="string"&&c.match(/^[0-9]{14}Z$/)?this.setString(c):c.hex!==void 0?this.setStringHex(c.hex):c.date!==void 0&&this.setByDate(c.date),c.millis===!0&&(this.withMillis=!0))},YAHOO.lang.extend(KJUR.asn1.DERGeneralizedTime,KJUR.asn1.DERAbstractTime),KJUR.asn1.DERSequence=function(c){KJUR.asn1.DERSequence.superclass.constructor.call(this,c),this.hT="30",this.getFreshValueHex=function(){for(var u="",f=0;f<this.asn1Array.length;f++){var h=this.asn1Array[f];u+=h.getEncodedHex()}return this.hV=u,this.hV}},YAHOO.lang.extend(KJUR.asn1.DERSequence,KJUR.asn1.DERAbstractStructured),KJUR.asn1.DERSet=function(c){KJUR.asn1.DERSet.superclass.constructor.call(this,c),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var u=new Array,f=0;f<this.asn1Array.length;f++){var h=this.asn1Array[f];u.push(h.getEncodedHex())}return this.sortFlag==!0&&u.sort(),this.hV=u.join(""),this.hV},typeof c<"u"&&typeof c.sortflag<"u"&&c.sortflag==!1&&(this.sortFlag=!1)},YAHOO.lang.extend(KJUR.asn1.DERSet,KJUR.asn1.DERAbstractStructured),KJUR.asn1.DERTaggedObject=function(c){KJUR.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(u,f,h){this.hT=f,this.isExplicit=u,this.asn1Object=h,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=h.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,f),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof c<"u"&&(typeof c.tag<"u"&&(this.hT=c.tag),typeof c.explicit<"u"&&(this.isExplicit=c.explicit),typeof c.obj<"u"&&(this.asn1Object=c.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},YAHOO.lang.extend(KJUR.asn1.DERTaggedObject,KJUR.asn1.ASN1Object);var __extends=globalThis&&globalThis.__extends||function(){var c=function(u,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var v in d)Object.prototype.hasOwnProperty.call(d,v)&&(h[v]=d[v])},c(u,f)};return function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");c(u,f);function h(){this.constructor=u}u.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)}}(),JSEncryptRSAKey=function(c){__extends(u,c);function u(f){var h=c.call(this)||this;return f&&(typeof f=="string"?h.parseKey(f):(u.hasPrivateKeyProperty(f)||u.hasPublicKeyProperty(f))&&h.parsePropertiesFrom(f)),h}return u.prototype.parseKey=function(f){try{var h=0,d=0,v=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,p=v.test(f)?Hex.decode(f):Base64.unarmor(f),m=ASN1.decode(p);if(m.sub.length===3&&(m=m.sub[2].sub[0]),m.sub.length===9){h=m.sub[1].getHexStringValue(),this.n=parseBigInt(h,16),d=m.sub[2].getHexStringValue(),this.e=parseInt(d,16);var g=m.sub[3].getHexStringValue();this.d=parseBigInt(g,16);var y=m.sub[4].getHexStringValue();this.p=parseBigInt(y,16);var x=m.sub[5].getHexStringValue();this.q=parseBigInt(x,16);var Bn=m.sub[6].getHexStringValue();this.dmp1=parseBigInt(Bn,16);var b=m.sub[7].getHexStringValue();this.dmq1=parseBigInt(b,16);var re=m.sub[8].getHexStringValue();this.coeff=parseBigInt(re,16)}else if(m.sub.length===2)if(m.sub[0].sub){var _=m.sub[1],vn=_.sub[0];h=vn.sub[0].getHexStringValue(),this.n=parseBigInt(h,16),d=vn.sub[1].getHexStringValue(),this.e=parseInt(d,16)}else h=m.sub[0].getHexStringValue(),this.n=parseBigInt(h,16),d=m.sub[1].getHexStringValue(),this.e=parseInt(d,16);else return!1;return!0}catch{return!1}},u.prototype.getPrivateBaseKey=function(){var f={array:[new KJUR.asn1.DERInteger({int:0}),new KJUR.asn1.DERInteger({bigint:this.n}),new KJUR.asn1.DERInteger({int:this.e}),new KJUR.asn1.DERInteger({bigint:this.d}),new KJUR.asn1.DERInteger({bigint:this.p}),new KJUR.asn1.DERInteger({bigint:this.q}),new KJUR.asn1.DERInteger({bigint:this.dmp1}),new KJUR.asn1.DERInteger({bigint:this.dmq1}),new KJUR.asn1.DERInteger({bigint:this.coeff})]},h=new KJUR.asn1.DERSequence(f);return h.getEncodedHex()},u.prototype.getPrivateBaseKeyB64=function(){return hex2b64(this.getPrivateBaseKey())},u.prototype.getPublicBaseKey=function(){var f=new KJUR.asn1.DERSequence({array:[new KJUR.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new KJUR.asn1.DERNull]}),h=new KJUR.asn1.DERSequence({array:[new KJUR.asn1.DERInteger({bigint:this.n}),new KJUR.asn1.DERInteger({int:this.e})]}),d=new KJUR.asn1.DERBitString({hex:"00"+h.getEncodedHex()}),v=new KJUR.asn1.DERSequence({array:[f,d]});return v.getEncodedHex()},u.prototype.getPublicBaseKeyB64=function(){return hex2b64(this.getPublicBaseKey())},u.wordwrap=function(f,h){if(h=h||64,!f)return f;var d="(.{1,"+h+`})( +|$
|
|
94
94
|
?)|(.{1,`+h+"})";return f.match(RegExp(d,"g")).join(`
|
|
95
95
|
`)},u.prototype.getPrivateKey=function(){var f=`-----BEGIN RSA PRIVATE KEY-----
|
|
96
96
|
`;return f+=u.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
@@ -99,38 +99,38 @@ version: 2.9.0
|
|
|
99
99
|
`,f+="-----END PUBLIC KEY-----",f},u.hasPublicKeyProperty=function(f){return f=f||{},f.hasOwnProperty("n")&&f.hasOwnProperty("e")},u.hasPrivateKeyProperty=function(f){return f=f||{},f.hasOwnProperty("n")&&f.hasOwnProperty("e")&&f.hasOwnProperty("d")&&f.hasOwnProperty("p")&&f.hasOwnProperty("q")&&f.hasOwnProperty("dmp1")&&f.hasOwnProperty("dmq1")&&f.hasOwnProperty("coeff")},u.prototype.parsePropertiesFrom=function(f){this.n=f.n,this.e=f.e,f.hasOwnProperty("d")&&(this.d=f.d,this.p=f.p,this.q=f.q,this.dmp1=f.dmp1,this.dmq1=f.dmq1,this.coeff=f.coeff)},u}(RSAKey),_a,version=typeof process<"u"?(_a=process.env)===null||_a===void 0?void 0:_a.npm_package_version:void 0,JSEncrypt=function(){function c(u){u===void 0&&(u={}),u=u||{},this.default_key_size=u.default_key_size?parseInt(u.default_key_size,10):1024,this.default_public_exponent=u.default_public_exponent||"010001",this.log=u.log||!1,this.key=null}return c.prototype.setKey=function(u){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new JSEncryptRSAKey(u)},c.prototype.setPrivateKey=function(u){this.setKey(u)},c.prototype.setPublicKey=function(u){this.setKey(u)},c.prototype.decrypt=function(u){try{return this.getKey().decrypt(b64tohex(u))}catch{return!1}},c.prototype.encrypt=function(u){try{return hex2b64(this.getKey().encrypt(u))}catch{return!1}},c.prototype.sign=function(u,f,h){try{return hex2b64(this.getKey().sign(u,f,h))}catch{return!1}},c.prototype.verify=function(u,f,h){try{return this.getKey().verify(u,b64tohex(f),h)}catch{return!1}},c.prototype.getKey=function(u){if(!this.key){if(this.key=new JSEncryptRSAKey,u&&{}.toString.call(u)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,u);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},c.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},c.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},c.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},c.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},c.version=version,c}();const encryptor=new JSEncrypt,aesKey=createAesKey();function createAesKey(){let u=Math.random().toString(36).substr(2);for(;u.length<16;)u+=Math.random().toString(36).substr(2);return u=u.substr(0,16),u}const iv=CryptoJS.enc.Utf8.parse("ABCDEF1234123412");function aesEncrypt(c,u){u=u||aesKey;const f=CryptoJS.enc.Utf8.parse(u);let h="";switch(typeof c){case"string":h=CryptoJS.enc.Utf8.parse(c);break;case"object":h=CryptoJS.enc.Utf8.parse(JSON.stringify(c));break;default:h=CryptoJS.enc.Utf8.parse(c.toString())}return CryptoJS.AES.encrypt(h,f,{iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding}).toString()}function aesDecrypt(c,u){u=u||aesKey;const f=CryptoJS.enc.Utf8.parse(u),h=CryptoJS.AES.decrypt(c,f,{iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding});return CryptoJS.enc.Utf8.stringify(h).toString()}function setPublicKey(c){encryptor.setPublicKey(c)}function rsaEncrypt(c){return encryptor.encrypt(c)}function hasEncryptUrl(c=""){c.startsWith("/")||(c="/"+c),c=c.split("?")[0];const f=["/diagram","/dataview"].map(h=>`^(.*?)${h}(/|$)`);for(const h of f)if(new RegExp(h).test(c))return!0;return!1}function EncryptConfigParam(c){const{paramType:u,data:f,params:h,method:d}=c;u==="form"?["get","delete"].includes(d)?c.params=getEncryptParam(h,"string"):c.data=getEncryptParam(f,"string"):["get","delete"].includes(d)?c.params=getEncryptParam(h,"string"):c.data=getEncryptParam(f)}function getEncryptParam(c,u){let f=c||{};if(u==="string"){f="";for(const m in c)if(Object.hasOwnProperty.call(c,m)){const g=c[m];f+=`${m}=${encodeURIComponent(g)}&`}}setPublicKey("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const d=rsaEncrypt(aesKey);return{c:aesEncrypt(f,aesKey),p:d}}window.getEncryptParam=getEncryptParam;function encryptData(c,u){var f;(f=window==null?void 0:window.config)!=null&&f.encryptFlag&&hasEncryptUrl(c.url)&&(c.data instanceof FormData?c.data=getEncryptFileParam(c.data):EncryptConfigParam(c))}function getEncryptFileParam(c){const u=c.entries(),f=new FormData,h={};for(const v of u){const p=v[0],m=v[1];m instanceof Blob?f.append(p,m):h[p]=m}const d=getEncryptParam(h,"json");return typeof d=="object"&&(f.append("c",d.c),f.append("p",d.p)),f}window.xhaesKey=aesKey,window.xhaesDecrypt=aesDecrypt;function decryptData(c,u){var f;if((f=window==null?void 0:window.config)!=null&&f.encryptFlag&&hasEncryptUrl(c.config.url)&&!(c.data instanceof Blob)&&c.data.data!==void 0){const h=aesDecrypt(c.data.data.content,aesKey);c.data=JSON.parse(h)}}const requestErrorTip=window.config.requestErrorTip,request=axios.create({timeout:1e3*180});request.interceptors.request.use(c=>{const{requestParams:u={}}=window.config;return u!=null&&u.pltToken&&(c.headers["Plt-Token"]=u.pltToken),encryptData(c),c},c=>Promise.reject(c)),request.interceptors.response.use(c=>{var u,f,h;return requestErrorTip&&+((u=c==null?void 0:c.data)==null?void 0:u.code)==500&&antDesignVue.message.error({content:((f=c==null?void 0:c.data)==null?void 0:f.msg)||((h=c==null?void 0:c.data)==null?void 0:h.message)||"服务器异常",key:"SERVER_ERROR",duration:2}),decryptData(c),c},c=>{if(decryptData(c==null?void 0:c.response),requestErrorTip)if(c.message.includes("timeout"))antDesignVue.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:u}=(c==null?void 0:c.response)||{};u>=400&&u<500&&antDesignVue.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),u>=500&&antDesignVue.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(c)});const handleFormatter=c=>c.replace(/\\n/g,`
|
|
100
100
|
`),formatMoney=(c,u=2)=>{const f=parseFloat(c+"");return isNaN(f)?c:f.toFixed(u).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},formatThousands=c=>{const u=parseFloat(c+"");return isNaN(u)?c:(u+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},formatPercentage=(c,u=2)=>{const f=c+"";if(f.includes("%"))return c;const h=parseFloat(f);return isNaN(h)?c:`${(h*100).toFixed(u)}%`},formatDecimals=(c,u=2)=>{const f=c+"",h=parseFloat(f);return isNaN(h)?c:h.toFixed(u)},formatCustom=(c,u)=>In(u,c),getFixedValueDatas=c=>{const{leftAxisList:u=[],rightAxisList:f=[],queryColumnList:h=[],indicators:d=[]}=c;return[...u,...f,...h,...d].filter(v=>(v==null?void 0:v.calcType)==="COMPONENT").map(v=>({keyName:v.builtInCalcWay,id:v.builtInValueSource}))},canRequestIndicator=(c,u)=>{let f=!0;const h=getFixedValueDatas(c);return h!=null&&h.length&&(f=h.map(d=>u[d.id]).every(d=>d)),f},getLegendFormat=(c,u)=>{var p;const f=c.match(/\{(.+?)\}/g),h=((p=c.split(`
|
|
101
101
|
`))==null?void 0:p.length)-1;let d="";if(h)for(let m=0;m<h;m++)d+=`
|
|
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`${d}{text|${v}}`}else return c},setDefaultRangeVal=(c,u)=>{const{props:f,componentList:h,getGlobalModel:d}=c,{graphicConfig:v={},startValue:p,endValue:m}=f,g=getdefCompleteData({graphicConfig:v,startValue:p,endValue:m,componentList:h,getGlobalModel:d}),{dimensions:y,dataset:x}=u,{classificationList:Pn=[]}=v,vn=Pn.find(_=>_.show).label||"";for(const _ of g)y.includes(_)||y.push(_);y.sort((_,re)=>dayjs(_).isBefore(dayjs(re))?-1:1);for(const _ of x){const{data:re}=_;if(re!=null&&re.length){const Fn=[];for(const Bn of g)if(re.find(w=>w[vn]!==Bn)){const w=lodashEs.cloneDeep(re[0]);for(const J in w)J===vn?w[J]=Bn:w[J]=0;Fn.push(w)}_.data.push(...Fn),_.data.sort((Bn,w)=>dayjs(Bn[vn]).isBefore(dayjs(w[vn]))?-1:1)}}},getConditions=c=>{const u=[];for(const f of c)f.conditions?u.push(...getConditions(f.conditions)):(f==null?void 0:f.dataType)==="component"&&u.push(f);return u};function getdefCompleteData(c){const{startValue:u,endValue:f,componentList:h,graphicConfig:d,getGlobalModel:v}=c,p=getVariableAndField(u),m=getVariableAndField(f),g=[];if(p&&m){const y=h.find(Pn=>Pn.keyName===p.keyName),x=h.find(Pn=>Pn.keyName===m.keyName);if(y&&x){const Pn=v(y.id),b=v(x.id),{classificationList:vn=[]}=d,_=vn.find(re=>re.show);if(_){let re="YYYY-MM";switch(_.name){case"the_year":re="YYYY";break;case"the_month":re="MM";break;case"the_day":re="DD";break;case"the_date":re=(_==null?void 0:_.dateFormat)||re;break}const Fn=getFormatStep(re);if(re){const Bn=vue.unref(Pn[p.field]),w=vue.unref(b[m.field]);let J=dayjs(Bn);const gn=dayjs(w);for(g.push(gn.format(re));J.isBefore(gn);)g.push(J.format(re)),J=J.add(1,Fn)}}}}return g}function getVariableAndField(c){let u=null;if(c){const f=c.match(/\{(.+?)\}/g);if(f!=null&&f.length){let h=f[0].slice(1,-1).trim();const d=h.match(/\[(.+?)\]/g);let v="";d!=null&&d.length&&(h=h.replace(d[0],""),v=d[0].slice(1,-1).trim()),u={keyName:h,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 Pn;const{pageMode:f,targetTemplate:h,getRecordValueByKeyName:d,setTemplateData:v}=u,p=c.linkPage||"",m=usePageUrl(f,p),g=c.href;let y=g||m;y=hn(y);const x=c.target;if(x)if(x==="event")window.parent.postMessage({type:"openPage",url:g},"*");else{const b={pageId:p,componentId:h};if((Pn=c.transParams)!=null&&Pn.length){y.includes("?")?y+="&":y+="?";const vn=[];for(const _ of c.transParams){const re=d(String(_.fieldName));vn.push(`${_.keyName}=${re}`),b[_.keyName]=re}y+=vn.join("&")}x==="template"?(Object.prototype.hasOwnProperty.call(window,"oldPageId")||(window.oldPageId=""),window.oldPageId&&(window.controller.abort(),window.controller=new AbortController),window.oldPageId=p,v(b)):(x==="blank"&&(y+=`${y.includes("?")?"&":"?"}drillFlag=1`),window.open(y,"_"+x))}}function getPageUrlParams(c){var f,h;let u={};if(c){const d=(((f=window.config)==null?void 0:f.urlParams)||{})[c]||{};for(const v in d)v.includes("{")||(u[v]=d[v])}else u=((h=window.config)==null?void 0:h.requestParams)||{};return u}function getNewValueFromUrlParams(c,u,f){let h="";const{urlParams:d}=window.config;if(c&&d[c])for(const v in d[c]){const p=d[c][v];if(v===`{${u}[${f}]}`&&p){h=p;break}}return h}const useRequestData=(c,u,f=()=>{})=>{var Xn;const{requestUrl:h,requestMethod:d,requestHeaders:v,requestParams:p,requestInterval:m,isOpenRequestTimer:g,openCustomRequestData:y,projectRequestUrl:x="",getModel:Pn,requestParamsMode:b,customRequestParams:vn,dataSetParam:_,requestType:re,dataType:Fn,dataSetchecked:Bn}=c,{pageMode:w}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:J}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:gn,touchEventId:Rn}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:zn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ar=>{}})||{},Wn=Pn||zn;let Un=hn(h),Qn=vue.unref(gn)||x||"";(Fn==="request"&&Bn||re===1)&&(Qn="",Un=((Xn=window.config)==null?void 0:Xn.dataSetUrl)||"/api/datav/dataset/data2");const Jn=async(ar={})=>{var qn;if(Fn!=="request"&&tr){clearInterval(tr);return}if(!Un||!d||!v)return;let sr={};for(const er of p){const{key:ir,value:Kn}=er;if((Kn==null?void 0:Kn.id)==="PARENT"&&(Kn!=null&&Kn.prop)){const cr=(((qn=window.config)==null?void 0:qn.record)||{})[Kn.prop];if(cr){const hr=cr[Kn.propKey||"value"];hr&&(["date","range"].some(lr=>yn(cr==null?void 0:cr.type,lr))?sr[ir]=vue.unref(hr).format(cr.format||"YYYY-MM-DD"):sr[ir]=vue.unref(hr))}continue}if(typeof Kn=="object"&&Kn!=null&&Kn.id){let or={};const{id:cr,prop:hr,propKey:dr,operate:lr}=Kn;let fr=!1;try{JSON.parse(cr),fr=!0}catch{fr=!1}cr==="THIS"?or=Wn(vue.unref(Rn))||{}:or=Wn(cr)||{};const mr=vue.unref(or[hr]);let pr=null;if(["date","range"].some(ur=>yn(or==null?void 0:or.type,ur))){const{value:ur,type:vr,mode:yr}=lr||{};if(ur&&vr&&yr)switch(vr){case"add":pr=vue.unref(mr).add(ur,yr);break;case"minus":pr=vue.unref(mr).subtract(ur,yr);break}pr==null&&(pr=vue.unref(mr)),pr=pr&&(pr==null?void 0:pr.format((dr==null?void 0:dr.trim())||or.format))||""}else if(Object.prototype.toString.call(mr)==="[object Object]")dr?pr=mr[dr]:pr=hr?mr[hr]:mr;else if(yn(or==null?void 0:or.type,"select")&&vue.unref(mr)&&hr&&Array.isArray(vue.unref(mr)))pr=vue.unref(mr).map(ur=>Object.prototype.hasOwnProperty.call(ur,hr)?ur[hr]:ur);else if(fr){const ur=JSON.parse(cr);console.log(ur,"urlvalue"),pr=ur.value}else pr=mr;sr[ir]=pr}else typeof Kn=="object"&&!Kn.id&&re===1?(console.log(Kn.propKey,"value.propKey"),sr[ir]=Kn.propKey):typeof Kn=="string"&&(sr[ir]=hn(Kn))}if(re===1){console.log(sr,"_params");const er=Object.entries(sr);let ir=_;if(!_.param&&Array.isArray(_)){const Kn={};for(const or of _)Kn[or.key]=or.value;ir=Kn}ir.param=ir.param.map((Kn,or)=>({...Kn,paramKey:er[or][0],defaultValue:er[or][1]||""})),sr=ir}if(b==="2"&&vn!=="{}"){const er=JSON.parse(vn);nr(er),er&&(sr=er)}function nr(er){const ir={...sr,...getPageUrlParams(J)};if(Array.isArray(er))er.forEach((Kn,or)=>{if(typeof Kn=="string"){const cr=Kn.match(/\${(.+?)\}/g);if(cr!=null&&cr.length){const hr=cr[0].slice(2,-1);hr&&ir[hr]?er[or]=ir[hr]:er[or]=""}}else nr(Kn)});else if(Object.prototype.toString.call(er)==="[object Object]")for(const Kn in er)if(typeof er[Kn]=="string"){const or=er[Kn].match(/\${(.+?)\}/g);if(or!=null&&or.length){const cr=or[0].slice(2,-1);cr&&ir[cr]?er[Kn]=ir[cr]:er[Kn]=""}}else nr(er[Kn])}sr={...getPageUrlParams(J),...ar,...sr};let Hn="";const Yn=Object.keys(sr),Vn=Yn.length-1,Gn=Yn.length;Yn.forEach((er,ir)=>{let Kn=sr[er];Kn&&(sr[er]=decodeURIComponent(Kn)),Object.prototype.toString.call(Kn)==="[object Object]"&&(Kn=JSON.stringify(Kn)),ir===0?Gn!==1?Hn+=`?${er}=${Kn}&`:Hn+=`?${er}=${Kn}`:ir===Vn?Hn+=`${er}=${Kn}`:Hn+=`${er}=${Kn}&`}),Un.includes("?")&&(Hn=Hn.replace("?","&"));function Zn(er){var ir;if(re===1)return{Authentication:(ir=window==null?void 0:window.config)==null?void 0:ir.indicatorToken};if(typeof er=="string"){const Kn=JSON.parse(er),or=getPageUrlParams(J);if(Object.prototype.toString.call(Kn)==="[object Object]"){for(const cr in Kn)if(typeof Kn[cr]=="string"){const hr=Kn[cr].match(/\${(.+?)\}/g);if(hr!=null&&hr.length){const dr=hr[0].slice(2,-1);dr&&or[dr]?Kn[cr]=or[dr]:Kn[cr]=""}}}return Kn}else return er}try{const er=["get","head"].includes(d),ir={};let Kn=er?Un+Hn:Un;sr.dataSqlId&&!Kn.includes("dataSqlId")&&(Kn+=`${Kn.includes("?")?"&":"?"}dataSqlId=${sr.dataSqlId}`),Object.prototype.hasOwnProperty.call(sr,"signal")?ir.signal=sr.signal:window.controller&&(ir.signal=window.controller.signal);const or=await request({baseURL:Qn,url:Kn,method:d,headers:v?Zn(v):{},data:er?{}:sr,...ir});return f(or),or}catch(er){console.error(er)}},tr=vue.unref(w)!=="design"&&g&&(y||y===void 0)&&setInterval(Jn,m*1e3);return vue.onUnmounted(()=>{clearInterval(tr)}),Jn},useImagePath=(c,u=!1)=>{var h;if(!c)return c;let f="";return c!=null&&c.includes("://")?f=c:f=((h=window==null?void 0:window.config)==null?void 0:h.uploadPath)+c,u&&(f=`url(${f})`),f},usePageUrl=(c,u)=>{const f=`${BASE_URL}/preview?pageId=${u}`,h=`${BASE_URL}/${u}`;return c==="preview"?f:h},useIndicatorData=(c={},u=()=>{})=>{var y;const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:h}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:d}=vue.inject(LOADED_DATA,{setLoadedData:(x,Pn)=>{}}),{getAllGlobalModel:v}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),{pageId:p}=vue.inject("templateOperate",{pageId:""})||{};c.dataType==="indicator"&&h();const m=async(x={})=>{var Fn,Bn,w;const Pn=v();d(c.id,!1);const b=Mn({...c,globalModel:Pn},x),{url:vn,..._}=b||{};let re=p||((Fn=window==null?void 0:window.config)==null?void 0:Fn.pageId);if(!re){const{pathname:J}=window==null?void 0:window.location;if(J){const gn=J.split("/");gn!=null&&gn.length&&(re=gn[gn.length-1])}}if(vn&&_)try{const J=await request({url:`${INDICATOR_URL}${vn}`,method:"post",headers:{Authentication:(Bn=window==null?void 0:window.config)==null?void 0:Bn.indicatorToken,operateContext:CONTEXT},data:{..._,pageId:re},signal:((w=window.controller)==null?void 0:w.signal)||""});return x!=null&&x.isTimer&&u(J),J}catch(J){console.error(J)}},g=vue.unref(f)!=="design"&&((y=c==null?void 0:c.graphicConfig)==null?void 0:y.pageMode)!=="design"&&c.isOpenRequestTimer&&c.requestInterval&&setInterval(()=>{m({isTimer:!0})},c.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(g)}),m},useHrefParamsToGlobalVariables=()=>{const u=window.location.search.slice(1).split("&"),f=u.length,h={};for(let d=0;d<f;d++){const v=u[d];if(v==null||v==="")continue;const p=v.split("=");if(Array.isArray(p)){const m=p[0];m.includes("{")||(h[m]=p[1])}}window.config.requestParams={...window.config.requestParams,...h},window.config={...window.config,...h}},_sfc_main$u=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""}},setup(c){const{width:u,height:f}=vue.inject(GLOBAL_CONFIG,{width:null,height:null}),h=vue.inject("setPageHeight",gn=>{}),d=vue.inject("isMobile",!1),v=vue.computed(()=>{const gn={};return d||(gn.width=u.value,gn.height=f.value),{...gn,backgroundColor:c.pageId?"transparent":c.backgroundColor,backgroundImage:useImagePath(c.backgroundImage,!0),backgroundSize:c.backgroundSize}}),p=vue.ref(0),m=vue.ref(0),g=vue.ref(0),y=vue.ref(0),x=vue.ref(!1),Pn=vue.ref();let b;const vn=()=>new Promise(gn=>{vue.nextTick(()=>{u.value&&f.value?(p.value=parseFloat(u.value),m.value=parseFloat(f.value)):(p.value=Pn.value.clientWidth,m.value=Pn.value.clientHeight),(!g.value||!y.value)&&(g.value=window.screen.width,y.value=window.screen.height),gn()})}),_=()=>{p.value&&m.value?(Pn.value.style.width=`${p.value}px`,Pn.value.style.height=`${m.value}px`):(Pn.value.style.width=`${g.value}px`,Pn.value.style.height=`${y.value}px`)};vue.watch([u,f],async()=>{c.pageId||(await vn(),_(),Fn(),window.addEventListener("resize",Bn),w()),x.value=!0},{immediate:!0});const re=vue.ref({});vue.provide("scaleValue",re);const Fn=()=>{if(d){Pn.value.style.width="100%",Pn.value.style.height="auto",h("auto");return}const gn=document.body.clientWidth,Rn=document.body.clientHeight,zn=p.value||g.value,Wn=m.value||y.value,Un=gn/zn;let Qn=Rn/Wn;(p.value!==1920||m.value!==1080)&&(Qn=m.value/p.value*gn/Wn),re.value={widthScale:Un,heightScale:Qn},Pn.value&&(Pn.value.style.transform=`scale(${Un}, ${Qn})`),h(Qn)},Bn=lodashEs.debounce(async()=>{await vn(),Fn()},100),w=()=>{const gn=window.MutationObserver;b=new gn(Bn),b.observe(Pn.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},J=()=>{b&&(b.disconnect(),b.takeRecords(),b=null)};return vue.onMounted(()=>{x.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",Bn),J()}),{style:v,container:Pn,ready:x}}}),PageConfig_vue_vue_type_style_index_0_scoped_e1e149bf_lang="",_hoisted_1$g={id:"container",ref:"container"};function _sfc_render$z(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$g,[c.ready||c.pageId?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"page-config",style:vue.normalizeStyle(c.style)},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],4)):vue.createCommentVNode("",!0)],512)}const PageConfig=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$z],["__scopeId","data-v-e1e149bf"]]),EcanPageConfig=withInstall$1(PageConfig),providerConfig={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],events:[]},providerConfigComponentProps=transformToComponentProps(providerConfig),_sfc_main$t=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...providerConfigComponentProps,pageId:{type:String,default:""}},setup(c,{expose:u,emit:f}){c.pageId||useHrefParamsToGlobalVariables();const h=vue.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),d=vue.ref(),v=()=>{d.value.setAttribute("datav-theme",c.theme)},p=vue.inject("usedComponentList",[]),m=vue.inject("componentList",[]),g=vue.computed(()=>{const vr=[];for(const yr of vue.unref(p))yr.type==="ecanModal"?vr.push(...yr.componentList):vr.push(yr);return vr});vue.watch(()=>c.theme,()=>{v()}),vue.onMounted(()=>{v()});const y=vue.computed(()=>hn(c.contextRequestUrl)),x=vue.computed(()=>c.pageMode),Pn=vue.computed(()=>c.theme),b=vue.computed(()=>c.width),vn=vue.computed(()=>c.height),_=vue.computed(()=>c.pageFontFamily),re=vue.computed(()=>{const vr=[],yr=vue.unref(m).filter(xr=>xr.type==="ecanModal");for(const xr of yr)xr!=null&&xr.requestList&&vr.push(...xr.requestList);return[...vr,...c.requestList]}),Fn=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:y,pageMode:x,theme:Pn,touchEventId:Fn,width:b,height:vn,fontFamily:_,requestList:re});const Bn=vue.ref({height:"100%",overflow:c.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",vr=>{let yr=vr;h.value||(yr=parseFloat(vn.value)*vr+"px"),Bn.value.height=yr}),vue.provide("isMobile",h.value),vue.provide("getContainerMap",()=>c.containerMap),vue.provide("getCombinationMap",()=>c.combinationMap),vue.provide("templateOperate",{pageId:c.pageId,templateEmit:f,setTemplateData:vr=>{var yr;if(vr!=null&&vr.pageId){const{componentId:xr,...Cr}=vr;(yr=window.config)!=null&&yr.urlParams||(window.config.urlParams={}),window.config.urlParams[vr.pageId]=Cr,f("templateChange",vr)}}});const w=vue.ref(),J=new Map,gn=()=>J,Rn=vr=>J.get(vr),zn=(vr,yr)=>{var xr;if(w.value=yr,J.set(vr,yr),!c.pageId){const Cr=vue.unref(p).find(Er=>Er.id===vr);Cr&&((xr=window.config)!=null&&xr.record||(window.config.record={}),window.config.record[Cr.keyName]=yr)}},Wn=()=>{w.value=null},Un=vr=>{let yr=vr;if(yr){const xr=vr.match(/\{(.+?)\}/g);if(xr!=null&&xr.length){let Cr=xr[0].slice(1,-1).trim();const Er=Cr.match(/\[(.+?)\]/g);let _r="";Er!=null&&Er.length&&(Cr=Cr.replace(Er[0],""),_r=Er[0].slice(1,-1).trim());const kr=vue.unref(g).find(Br=>Br.keyName===Cr);if(kr){const Br=Rn(kr.id),{type:Ir,value:Fr,RECORD:Nr,recordData:Rr}=Br||{};yn(Ir,MODEL_KEY_LIST)?yr=Nr[_r]:yn(Ir,"select")?Rr[_r]?yr=Rr[_r]:yr=vue.unref(Fr):yn(Ir,["rangePicker","date"])?dayjs.isDayjs(vue.unref(Br[_r]))?yr=vue.unref(Br[_r]).format(Br.format):yr=vue.unref(Br[_r]):yr=Fr}else yr=(window.config.requestParams||{})[Cr]||""}}return yr},Qn=new Map,Jn={},tr=async(vr,yr)=>{var kr;const{requestName:xr}=vr,Cr=await useRequestData({...vr,projectRequestUrl:vue.unref(y),getModel:Rn})(),Er=((kr=Cr==null?void 0:Cr.data)==null?void 0:kr.data)||{},_r=Qn.get(xr);if(_r!=null&&_r.length&&(!yr||Jn[xr])){for(const Br of _r)Br(Er);yr||Qn.delete(xr)}},Xn=(vr,yr)=>{Jn[vr]&&(clearInterval(Jn[vr]),delete Jn[vr],Qn.delete(vr));const xr=vue.unref(g).filter(Er=>!Er.openCustomRequestData&&Er.customRequestName===vr),Cr=Qn.get(vr)||[];if((xr==null?void 0:xr.length)>Cr.length&&(Cr.push(yr),Qn.set(vr,Cr),(xr==null?void 0:xr.length)===Cr.length)){const Er=vue.unref(re).find(_r=>_r.requestName===vr);Er&&(Er!=null&&Er.isOpenRequestTimer&&(Er!=null&&Er.requestInterval)?(tr(Er,!0),Jn[vr]=setInterval(()=>{tr(Er,!0)},Er.requestInterval*1e3)):tr(Er))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:Rn,setGlobalModel:zn,getAllGlobalModel:gn,clearInteractiveData:Wn,getRecordValueByKeyName:Un,hanldePageRequestData:Xn,interactiveData:w});const ar=vue.ref({}),sr=(vr,yr)=>{ar.value[vr]=yr};vue.provide(LOADED_DATA,{loadedData:ar,setLoadedData:sr});const nr=[],Hn=()=>{nr.pop()},Yn=vr=>{nr.push(vr)},Vn=new Map,Gn=vr=>Vn.get(vr),Zn=(vr,yr)=>{Vn.set(vr,yr)};vue.provide(MODAL_MODEL,{popUseModalIds:Hn,pushUseModalIds:Yn,getModalModel:Gn,setModalModel:Zn});const qn=mitt(),er=new Set,ir=(vr,yr)=>{er.add(vr),qn.on(vr,xr=>{const{eventName:Cr,params:Er}=xr;return typeof yr[Cr]=="function"&&yr[Cr](Er)}),vue.onBeforeUnmount(()=>{Kn(vr)})},Kn=vr=>{er.delete(vr),qn.off(vr)},or=(vr,yr,xr={})=>{if(vr==="PAGE"){const Cr=nr.length;let Er=[];if(Cr===0)Er=[...er];else{const _r=nr[Cr-1];Er=[...Gn(_r)]}Er.forEach(_r=>{qn.emit(_r,{eventName:yr,params:xr})})}else qn.emit(vr,{eventName:yr,params:xr})};vue.provide(EVENT_BUS,{onEvent:ir,offEvent:Kn,emitEvent:or});const cr=vue.ref(0),hr=()=>{cr.value=vue.unref(cr)+1};vue.provide(GLOBAL_TOKEN,{requestToken:hr});const dr=new Map,lr=new Map,fr=({requestFn:vr=()=>{},sortNum:yr=0,id:xr=""})=>{if(dr.has(yr)){const Cr=dr.get(yr);Cr==null||Cr.push(vr)}else dr.set(yr,[vr]);lr.set(xr,vr)},mr=vr=>new Promise((yr,xr)=>{const Cr=vr.map(Er=>Er());Promise.all(Cr).then(Er=>{yr(Er)}).catch(Er=>{xr(Er)})}),pr=vr=>new Promise(async(yr,xr)=>{if(vr){if(typeof vr=="string"){const Cr=lr.get(vr);if(typeof Cr=="function"){const Er=request.interceptors.response.use(_r=>(yr(_r),_r),_r=>(xr(_r),Promise.reject(_r)));Cr(),request.interceptors.response.eject(Er)}}}else{const Cr=Array.from(dr);Cr.sort((_r,kr)=>kr[0]-_r[0]);const Er=Cr.length;try{c.pageMode!=="design"&&vue.unref(cr)>0;for(let _r=0;_r<Er;_r++){const kr=Cr[_r][1];await mr(kr)}}catch(_r){console.error(_r)}finally{dr.clear(),yr(null)}}});vue.provide(REQUEST_MODEL,{setRequest:fr,touchRequest:pr});const gr=()=>{qn.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:gr});const ur=vr=>{qn.on(REFRESH_PAGE,()=>vr()),vue.onMounted(()=>{qn.off(REFRESH_PAGE)})};return vue.watchEffect(()=>{var vr;if((vr=vue.unref(p))!=null&&vr.length&&vue.unref(x)!=="design"){const{jumpType:yr,jumpTime:xr,jumpPage:Cr,jumpLink:Er}=c;if(xr!=null&&xr.value){let _r=0;switch(xr==null?void 0:xr.suffix){case"hours":_r=xr.value*60*60*1e3;break;case"minute":_r=xr.value*60*1e3;break;case"seconds":_r=xr.value*1e3;break}setTimeout(()=>{let kr="";yr==="page"&&Cr?kr=usePageUrl(vue.unref(x),Cr):yr==="link"&&Er&&(kr=Er),kr=hn(kr),window.open(kr,"_self")},_r)}}}),vue.onBeforeUnmount(()=>{dr==null||dr.clear(),lr==null||lr.clear()}),u({touchRequest:pr,getGlobalModel:Rn,onRefreshPage:ur,emitEvent:or,getRecordValueByKeyName:Un,props:c}),{providerConfig:d,configStyle:Bn}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_5bad2804_lang="";function _sfc_render$y(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:vue.normalizeStyle({...c.configStyle,fontFamily:c.pageFontFamily})},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],4)}const ProviderConfig=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$y],["__scopeId","data-v-5bad2804"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1,showAnimation:!1,transParams:[],exceedConfig:"",targetTemplate:"",dataSetchecked:!1},textComponentProps=transformToComponentProps(textProps),textEvents=["refreshData","click","valueChange"],goUp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",goDown="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",__default__$4=vue.defineComponent({name:"EcanText",components:{Skeleton},props:{...textComponentProps},setup(c,{expose:u}){const f=vue.ref(!1),h=usePickComponentStyle(c),d=vue.ref({}),v=vue.computed(()=>c.variableFontSize||"14px"),p=vue.computed(()=>"-"+vue.unref(v)),{getGlobalModel:m,setGlobalModel:g,getRecordValueByKeyName:y,hanldePageRequestData:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:qn=>{},setGlobalModel:(qn,er)=>{},getRecordValueByKeyName:qn=>{},hanldePageRequestData:(qn,er)=>{}}),{setLoadedData:Pn,loadedData:b}=vue.inject(LOADED_DATA,{setLoadedData:(qn,er)=>{},loadedData:{}}),{setTemplateData:vn}=vue.inject("templateOperate",{setTemplateData:qn=>{}}),_=qn=>{const er=c.id,ir=m(er);g(er,{...ir,value:qn||"",RECORD:qn||""})},re=qn=>{var er,ir;if(mn(qn,"value")&&_(qn.value),c.showAnimation){const Kn=c.text.match(/\{(.+?)\}/g)||[];if(Kn!=null&&Kn.length){const or=(er=Kn[0].slice(1,-1))==null?void 0:er.trim();if(vue.unref(d)[or]===qn){d.value=qn;return}const cr=+qn[or];let hr=0;if(isNaN(cr))d.value=qn;else{String(cr).includes(".")&&(hr=((ir=String(cr).split(".")[1])==null?void 0:ir.length)||0);const dr=Math.abs(cr)*Math.pow(10,hr),lr=String(dr).length;let fr=[];for(let pr=0;pr<5;pr++){const gr=Math.ceil(Math.random()*(dr+1)-1);fr.includes(gr)||fr.push(gr)}fr.sort((pr,gr)=>pr-gr),fr=fr.map(pr=>{const gr=String(pr).split("").reverse(),ur=[];for(let vr=0;vr<lr;vr++)gr&&gr[vr]?ur.push(gr[vr]):ur.push("0");return hr&&ur.splice(hr,0,"."),(cr<0?"-":"")+ur.reverse().join("")}),fr.push(cr);let mr=0;for(const pr of fr)setTimeout(()=>{d.value={...vue.unref(d),[or]:pr}},mr*1e3),mr+=.1}}else d.value=qn}else d.value=qn};vue.watch(()=>[c.data,c.dataType],([qn,er])=>{er==="static"&&re(qn)},{immediate:!0});const Fn=vue.computed(()=>{let qn="";if(c.gradientShow){const{gradientColor:er,gradientOffset:ir,gradientAngle:Kn,color:or}=c;qn+=`background: linear-gradient(${Kn}, ${or}, ${er||"transparent"} ${ir*100}%);-webkit-background-clip: text;color: transparent;`}return qn}),Bn=vue.computed(()=>{const qn={};if(c.gradientShow){const{gradientColor:er,gradientOffset:ir,gradientAngle:Kn,color:or}=c,cr=er||"transparent";qn.background=`linear-gradient(${Kn}, ${or}, ${cr} ${ir*100}%)`,qn["-webkit-background-clip"]="text",qn.color="transparent"}return qn}),w=vue.computed(()=>{const qn={};return c.linkPage&&(qn.cursor="pointer",qn.userSelect="none"),qn}),J=vue.ref(1),gn=vue.computed(()=>{var dr;if(vue.unref(f))return`<span style="color:${c.variableColor};font-size:${vue.unref(v)};${vue.unref(Fn)}">${c.variableDefaultValue}</span>`;if(!J.value)return;const qn=vue.unref(d),er=c.increaseColor||c.color,ir=c.declineColor||c.color;let Kn=c.text;Kn=Kn==null?void 0:Kn.replace(/\n|\\n/g,"<br/>"),Kn=Kn==null?void 0:Kn.replace(/\s(?!\{) | (?!\})\s/g," ");const or=Kn.match(/\{(.+?)\}/g)||[];let cr="",hr="";if(c.exceedConfig==="wrap"?hr="show-wrap":c.exceedConfig==="ellipsis"&&(hr="show-ellipsis"),or==null||or.length===0){if(Kn&&c.format==="percentage"&&!isNaN(+Kn)){const lr=parseFloat(Kn),fr=lr*100,mr=Rn(fr.toFixed(2));lr>=0?Kn=`<span class="${hr}" style="color: ${mr||er||"#ED6643"};font-size:${vue.unref(v)};display: inline-block;${vue.unref(Fn)}">
|
|
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`${d}{text|${v}}`}else return c},setDefaultRangeVal=(c,u)=>{const{props:f,componentList:h,getGlobalModel:d}=c,{graphicConfig:v={},startValue:p,endValue:m}=f,g=getdefCompleteData({graphicConfig:v,startValue:p,endValue:m,componentList:h,getGlobalModel:d}),{dimensions:y,dataset:x}=u,{classificationList:Bn=[]}=v,re=Bn.find(_=>_.show).label||"";for(const _ of g)y.includes(_)||y.push(_);y.sort((_,vn)=>dayjs(_).isBefore(dayjs(vn))?-1:1);for(const _ of x){const{data:vn}=_;if(vn!=null&&vn.length){const Fn=[];for(const Pn of g)if(vn.find(w=>w[re]!==Pn)){const w=lodashEs.cloneDeep(vn[0]);for(const J in w)J===re?w[J]=Pn:w[J]=0;Fn.push(w)}_.data.push(...Fn),_.data.sort((Pn,w)=>dayjs(Pn[re]).isBefore(dayjs(w[re]))?-1:1)}}},getConditions=c=>{const u=[];for(const f of c)f.conditions?u.push(...getConditions(f.conditions)):(f==null?void 0:f.dataType)==="component"&&u.push(f);return u};function getdefCompleteData(c){const{startValue:u,endValue:f,componentList:h,graphicConfig:d,getGlobalModel:v}=c,p=getVariableAndField(u),m=getVariableAndField(f),g=[];if(p&&m){const y=h.find(Bn=>Bn.keyName===p.keyName),x=h.find(Bn=>Bn.keyName===m.keyName);if(y&&x){const Bn=v(y.id),b=v(x.id),{classificationList:re=[]}=d,_=re.find(vn=>vn.show);if(_){let vn="YYYY-MM";switch(_.name){case"the_year":vn="YYYY";break;case"the_month":vn="MM";break;case"the_day":vn="DD";break;case"the_date":vn=(_==null?void 0:_.dateFormat)||vn;break}const Fn=getFormatStep(vn);if(vn){const Pn=vue.unref(Bn[p.field]),w=vue.unref(b[m.field]);let J=dayjs(Pn);const gn=dayjs(w);for(g.push(gn.format(vn));J.isBefore(gn);)g.push(J.format(vn)),J=J.add(1,Fn)}}}}return g}function getVariableAndField(c){let u=null;if(c){const f=c.match(/\{(.+?)\}/g);if(f!=null&&f.length){let h=f[0].slice(1,-1).trim();const d=h.match(/\[(.+?)\]/g);let v="";d!=null&&d.length&&(h=h.replace(d[0],""),v=d[0].slice(1,-1).trim()),u={keyName:h,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 Bn;const{pageMode:f,targetTemplate:h,getRecordValueByKeyName:d,setTemplateData:v}=u,p=c.linkPage||"",m=usePageUrl(f,p),g=c.href;let y=g||m;y=hn(y);const x=c.target;if(x)if(x==="event")window.parent.postMessage({type:"openPage",url:g},"*");else{const b={pageId:p,componentId:h};if((Bn=c.transParams)!=null&&Bn.length){y.includes("?")?y+="&":y+="?";const re=[];for(const _ of c.transParams){const vn=d(String(_.fieldName));re.push(`${_.keyName}=${vn}`),b[_.keyName]=vn}y+=re.join("&")}x==="template"?(Object.prototype.hasOwnProperty.call(window,"oldPageId")||(window.oldPageId=""),window.oldPageId&&(window.controller.abort(),window.controller=new AbortController),window.oldPageId=p,v(b)):(x==="blank"&&(y+=`${y.includes("?")?"&":"?"}drillFlag=1`),window.open(y,"_"+x))}}function getPageUrlParams(c){var f,h;let u={};if(c){const d=(((f=window.config)==null?void 0:f.urlParams)||{})[c]||{};for(const v in d)v.includes("{")||(u[v]=d[v])}else u=((h=window.config)==null?void 0:h.requestParams)||{};return u}function getNewValueFromUrlParams(c,u,f){let h="";const{urlParams:d}=window.config;if(c&&d[c])for(const v in d[c]){const p=d[c][v];if(v===`{${u}[${f}]}`&&p){h=p;break}}return h}const useRequestData=(c,u,f=()=>{})=>{var ir;const{requestUrl:h,requestMethod:d,requestHeaders:v,requestParams:p,requestInterval:m,isOpenRequestTimer:g,openCustomRequestData:y,projectRequestUrl:x="",getModel:Bn,requestParamsMode:b,customRequestParams:re,dataSetParam:_,requestType:vn,dataType:Fn,dataSetchecked:Pn}=c,{pageMode:w}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:J}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:gn,touchEventId:Vn}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:zn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:cr=>{}})||{},{loadedData:Wn}=vue.inject(LOADED_DATA,{loadedData:{}}),Un=Bn||zn;let er=hn(h),Jn=vue.unref(gn)||x||"";(Fn==="request"&&Pn||vn===1)&&(Jn="",er=((ir=window.config)==null?void 0:ir.dataSetUrl)||"/api/datav/dataset/data2");const tr=async(cr={})=>{var or;if(Fn!=="request"&&Qn){clearInterval(Qn);return}if(!er||!d||!v)return;let Xn={};for(const Kn of p){const{key:ar,value:lr}=Kn;if((lr==null?void 0:lr.id)==="PARENT"&&(lr!=null&&lr.prop)){const dr=(((or=window.config)==null?void 0:or.record)||{})[lr.prop];if(dr){const sr=dr[lr.propKey||"value"];sr&&(["date","range"].some(pr=>yn(dr==null?void 0:dr.type,pr))?Xn[ar]=vue.unref(sr).format(dr.format||"YYYY-MM-DD"):Xn[ar]=vue.unref(sr))}continue}if(typeof lr=="object"&&lr!=null&&lr.id){let ur={};const{id:dr,prop:sr,propKey:fr,operate:pr}=lr;let mr=!1;try{JSON.parse(dr),mr=!0}catch{mr=!1}if(dr==="THIS"?ur=Un(vue.unref(Vn))||{}:ur=Un(dr)||{},(ur==null?void 0:ur.type)==="ecanSelect"&&!vue.unref(Wn)[dr]&&(ur==null?void 0:ur.dataType)!=="static")return;const gr=vue.unref(ur[sr]);let hr=null;if(["date","range"].some(yr=>yn(ur==null?void 0:ur.type,yr))){const{value:yr,type:xr,mode:Cr}=pr||{};if(yr&&xr&&Cr)switch(xr){case"add":hr=vue.unref(gr).add(yr,Cr);break;case"minus":hr=vue.unref(gr).subtract(yr,Cr);break}hr==null&&(hr=vue.unref(gr)),hr=hr&&(hr==null?void 0:hr.format((fr==null?void 0:fr.trim())||ur.format))||""}else if(Object.prototype.toString.call(gr)==="[object Object]")fr?hr=gr[fr]:hr=sr?gr[sr]:gr;else if(yn(ur==null?void 0:ur.type,"select")&&vue.unref(gr)&&sr&&Array.isArray(vue.unref(gr)))hr=vue.unref(gr).map(yr=>Object.prototype.hasOwnProperty.call(yr,sr)?yr[sr]:yr);else if(mr){const yr=JSON.parse(dr);console.log(yr,"urlvalue"),hr=yr.value}else hr=gr;Xn[ar]=hr}else typeof lr=="object"&&!lr.id&&vn===1?(console.log(lr.propKey,"value.propKey"),Xn[ar]=lr.propKey):typeof lr=="string"&&(Xn[ar]=hn(lr))}if(vn===1){console.log(Xn,"_params");const Kn=Object.entries(Xn);let ar=_;if(!_.param&&Array.isArray(_)){const lr={};for(const ur of _)lr[ur.key]=ur.value;ar=lr}ar.param=ar.param.map((lr,ur)=>({...lr,paramKey:Kn[ur][0],defaultValue:Kn[ur][1]||""})),Xn=ar}if(b==="2"&&re!=="{}"){const Kn=JSON.parse(re);Hn(Kn),Kn&&(Xn=Kn)}function Hn(Kn){const ar={...Xn,...getPageUrlParams(J)};if(Array.isArray(Kn))Kn.forEach((lr,ur)=>{if(typeof lr=="string"){const dr=lr.match(/\${(.+?)\}/g);if(dr!=null&&dr.length){const sr=dr[0].slice(2,-1);sr&&ar[sr]?Kn[ur]=ar[sr]:Kn[ur]=""}}else Hn(lr)});else if(Object.prototype.toString.call(Kn)==="[object Object]")for(const lr in Kn)if(typeof Kn[lr]=="string"){const ur=Kn[lr].match(/\${(.+?)\}/g);if(ur!=null&&ur.length){const dr=ur[0].slice(2,-1);dr&&ar[dr]?Kn[lr]=ar[dr]:Kn[lr]=""}}else Hn(Kn[lr])}const Yn=getPageUrlParams(J);for(const Kn in Yn)Yn[Kn]&&(Yn[Kn]=decodeURIComponent(Yn[Kn]));Xn={...Yn,...cr,...Xn};let Rn="";const Gn=Object.keys(Xn),Zn=Gn.length-1,qn=Gn.length;Gn.forEach((Kn,ar)=>{let lr=Xn[Kn];Object.prototype.toString.call(lr)==="[object Object]"&&(lr=JSON.stringify(lr)),ar===0?qn!==1?Rn+=`?${Kn}=${lr}&`:Rn+=`?${Kn}=${lr}`:ar===Zn?Rn+=`${Kn}=${lr}`:Rn+=`${Kn}=${lr}&`}),er.includes("?")&&(Rn=Rn.replace("?","&"));function nr(Kn){var ar;if(vn===1)return{Authentication:(ar=window==null?void 0:window.config)==null?void 0:ar.indicatorToken};if(typeof Kn=="string"){const lr=JSON.parse(Kn),ur=getPageUrlParams(J);if(Object.prototype.toString.call(lr)==="[object Object]"){for(const dr in lr)if(typeof lr[dr]=="string"){const sr=lr[dr].match(/\${(.+?)\}/g);if(sr!=null&&sr.length){const fr=sr[0].slice(2,-1);fr&&ur[fr]?lr[dr]=ur[fr]:lr[dr]=""}}}return lr}else return Kn}try{const Kn=["get","head"].includes(d),ar={};let lr=Kn?er+Rn:er;Xn.dataSqlId&&!lr.includes("dataSqlId")&&(lr+=`${lr.includes("?")?"&":"?"}dataSqlId=${Xn.dataSqlId}`),Object.prototype.hasOwnProperty.call(Xn,"signal")?ar.signal=Xn.signal:window.controller&&(ar.signal=window.controller.signal);const ur=await request({baseURL:Jn,url:lr,method:d,headers:v?nr(v):{},data:Kn?{}:Xn,...ar});return f(ur),ur}catch(Kn){console.error(Kn)}},Qn=vue.unref(w)!=="design"&&g&&(y||y===void 0)&&setInterval(tr,m*1e3);return vue.onUnmounted(()=>{clearInterval(Qn)}),tr},useImagePath=(c,u=!1)=>{var h;if(!c)return c;let f="";return c!=null&&c.includes("://")?f=c:f=((h=window==null?void 0:window.config)==null?void 0:h.uploadPath)+c,u&&(f=`url(${f})`),f},usePageUrl=(c,u)=>{const f=`${BASE_URL}/preview?pageId=${u}`,h=`${BASE_URL}/${u}`;return c==="preview"?f:h},useIndicatorData=(c={},u=()=>{})=>{var y;const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:h}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:d}=vue.inject(LOADED_DATA,{setLoadedData:(x,Bn)=>{}}),{getAllGlobalModel:v}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),{pageId:p}=vue.inject("templateOperate",{pageId:""})||{};c.dataType==="indicator"&&h();const m=async(x={})=>{var Fn,Pn,w;const Bn=v();d(c.id,!1);const b=Mn({...c,globalModel:Bn},x),{url:re,..._}=b||{};let vn=p||((Fn=window==null?void 0:window.config)==null?void 0:Fn.pageId);if(!vn){const{pathname:J}=window==null?void 0:window.location;if(J){const gn=J.split("/");gn!=null&&gn.length&&(vn=gn[gn.length-1])}}if(re&&_)try{const J=await request({url:`${INDICATOR_URL}${re}`,method:"post",headers:{Authentication:(Pn=window==null?void 0:window.config)==null?void 0:Pn.indicatorToken,operateContext:CONTEXT},data:{..._,pageId:vn},signal:((w=window.controller)==null?void 0:w.signal)||""});return x!=null&&x.isTimer&&u(J),J}catch(J){console.error(J)}},g=vue.unref(f)!=="design"&&((y=c==null?void 0:c.graphicConfig)==null?void 0:y.pageMode)!=="design"&&c.isOpenRequestTimer&&c.requestInterval&&setInterval(()=>{m({isTimer:!0})},c.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(g)}),m},useHrefParamsToGlobalVariables=()=>{const u=window.location.search.slice(1).split("&"),f=u.length,h={};for(let d=0;d<f;d++){const v=u[d];if(v==null||v==="")continue;const p=v.split("=");if(Array.isArray(p)){const m=p[0];m.includes("{")||(h[m]=p[1])}}window.config.requestParams={...window.config.requestParams,...h},window.config={...window.config,...h}},_sfc_main$u=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""}},setup(c){const{width:u,height:f}=vue.inject(GLOBAL_CONFIG,{width:null,height:null}),h=vue.inject("setPageHeight",gn=>{}),d=vue.inject("isMobile",!1),v=vue.computed(()=>{const gn={};return d||(gn.width=u.value,gn.height=f.value),{...gn,backgroundColor:c.pageId?"transparent":c.backgroundColor,backgroundImage:useImagePath(c.backgroundImage,!0),backgroundSize:c.backgroundSize}}),p=vue.ref(0),m=vue.ref(0),g=vue.ref(0),y=vue.ref(0),x=vue.ref(!1),Bn=vue.ref();let b;const re=()=>new Promise(gn=>{vue.nextTick(()=>{u.value&&f.value?(p.value=parseFloat(u.value),m.value=parseFloat(f.value)):(p.value=Bn.value.clientWidth,m.value=Bn.value.clientHeight),(!g.value||!y.value)&&(g.value=window.screen.width,y.value=window.screen.height),gn()})}),_=()=>{p.value&&m.value?(Bn.value.style.width=`${p.value}px`,Bn.value.style.height=`${m.value}px`):(Bn.value.style.width=`${g.value}px`,Bn.value.style.height=`${y.value}px`)};vue.watch([u,f],async()=>{c.pageId||(await re(),_(),Fn(),window.addEventListener("resize",Pn),w()),x.value=!0},{immediate:!0});const vn=vue.ref({});vue.provide("scaleValue",vn);const Fn=()=>{if(d){Bn.value.style.width="100%",Bn.value.style.height="auto",h("auto");return}const gn=document.body.clientWidth,Vn=document.body.clientHeight,zn=p.value||g.value,Wn=m.value||y.value,Un=gn/zn;let er=Vn/Wn;(p.value!==1920||m.value!==1080)&&(er=m.value/p.value*gn/Wn),vn.value={widthScale:Un,heightScale:er},Bn.value&&(Bn.value.style.transform=`scale(${Un}, ${er})`),h(er)},Pn=lodashEs.debounce(async()=>{await re(),Fn()},100),w=()=>{const gn=window.MutationObserver;b=new gn(Pn),b.observe(Bn.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},J=()=>{b&&(b.disconnect(),b.takeRecords(),b=null)};return vue.onMounted(()=>{x.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",Pn),J()}),{style:v,container:Bn,ready:x}}}),PageConfig_vue_vue_type_style_index_0_scoped_e1e149bf_lang="",_hoisted_1$g={id:"container",ref:"container"};function _sfc_render$z(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$g,[c.ready||c.pageId?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"page-config",style:vue.normalizeStyle(c.style)},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],4)):vue.createCommentVNode("",!0)],512)}const PageConfig=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$z],["__scopeId","data-v-e1e149bf"]]),EcanPageConfig=withInstall$1(PageConfig),providerConfig={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],events:[]},providerConfigComponentProps=transformToComponentProps(providerConfig),_sfc_main$t=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...providerConfigComponentProps,pageId:{type:String,default:""}},setup(c,{expose:u,emit:f}){c.pageId||useHrefParamsToGlobalVariables();const h=vue.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),d=vue.ref(),v=()=>{d.value.setAttribute("datav-theme",c.theme)},p=vue.inject("usedComponentList",[]),m=vue.inject("componentList",[]),g=vue.computed(()=>{const vr=[];for(const yr of vue.unref(p))yr.type==="ecanModal"?vr.push(...yr.componentList):vr.push(yr);return vr});vue.watch(()=>c.theme,()=>{v()}),vue.onMounted(()=>{v()});const y=vue.computed(()=>hn(c.contextRequestUrl)),x=vue.computed(()=>c.pageMode),Bn=vue.computed(()=>c.theme),b=vue.computed(()=>c.width),re=vue.computed(()=>c.height),_=vue.computed(()=>c.pageFontFamily),vn=vue.computed(()=>{const vr=[],yr=vue.unref(m).filter(xr=>xr.type==="ecanModal");for(const xr of yr)xr!=null&&xr.requestList&&vr.push(...xr.requestList);return[...vr,...c.requestList]}),Fn=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:y,pageMode:x,theme:Bn,touchEventId:Fn,width:b,height:re,fontFamily:_,requestList:vn});const Pn=vue.ref({height:"100%",overflow:c.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",vr=>{let yr=vr;h.value||(yr=parseFloat(re.value)*vr+"px"),Pn.value.height=yr}),vue.provide("isMobile",h.value),vue.provide("getContainerMap",()=>c.containerMap),vue.provide("getCombinationMap",()=>c.combinationMap),vue.provide("templateOperate",{pageId:c.pageId,templateEmit:f,setTemplateData:vr=>{var yr;if(vr!=null&&vr.pageId){const{componentId:xr,...Cr}=vr;(yr=window.config)!=null&&yr.urlParams||(window.config.urlParams={}),window.config.urlParams[vr.pageId]=Cr,f("templateChange",vr)}}});const w=vue.ref(),J=new Map,gn=()=>J,Vn=vr=>J.get(vr),zn=(vr,yr)=>{var xr;if(w.value=yr,J.set(vr,yr),!c.pageId){const Cr=vue.unref(p).find(Er=>Er.id===vr);Cr&&((xr=window.config)!=null&&xr.record||(window.config.record={}),window.config.record[Cr.keyName]=yr)}},Wn=()=>{w.value=null},Un=vr=>{let yr=vr;if(yr){const xr=vr.match(/\{(.+?)\}/g);if(xr!=null&&xr.length){let Cr=xr[0].slice(1,-1).trim();const Er=Cr.match(/\[(.+?)\]/g);let _r="";Er!=null&&Er.length&&(Cr=Cr.replace(Er[0],""),_r=Er[0].slice(1,-1).trim());const kr=vue.unref(g).find(Br=>Br.keyName===Cr);if(kr){const Br=Vn(kr.id),{type:Ir,value:Fr,RECORD:Nr,recordData:Rr}=Br||{};yn(Ir,MODEL_KEY_LIST)?yr=Nr[_r]:yn(Ir,"select")?Rr[_r]?yr=Rr[_r]:yr=vue.unref(Fr):yn(Ir,["rangePicker","date"])?dayjs.isDayjs(vue.unref(Br[_r]))?yr=vue.unref(Br[_r]).format(Br.format):yr=vue.unref(Br[_r]):yr=Fr}else yr=(window.config.requestParams||{})[Cr]||""}}return yr},er=new Map,Jn={},tr=async(vr,yr)=>{var kr;const{requestName:xr}=vr,Cr=await useRequestData({...vr,projectRequestUrl:vue.unref(y),getModel:Vn})(),Er=((kr=Cr==null?void 0:Cr.data)==null?void 0:kr.data)||{},_r=er.get(xr);if(_r!=null&&_r.length&&(!yr||Jn[xr])){for(const Br of _r)Br(Er);yr||er.delete(xr)}},Qn=(vr,yr)=>{Jn[vr]&&(clearInterval(Jn[vr]),delete Jn[vr],er.delete(vr));const xr=vue.unref(g).filter(Er=>!Er.openCustomRequestData&&Er.customRequestName===vr),Cr=er.get(vr)||[];if((xr==null?void 0:xr.length)>Cr.length&&(Cr.push(yr),er.set(vr,Cr),(xr==null?void 0:xr.length)===Cr.length)){const Er=vue.unref(vn).find(_r=>_r.requestName===vr);Er&&(Er!=null&&Er.isOpenRequestTimer&&(Er!=null&&Er.requestInterval)?(tr(Er,!0),Jn[vr]=setInterval(()=>{tr(Er,!0)},Er.requestInterval*1e3)):tr(Er))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:Vn,setGlobalModel:zn,getAllGlobalModel:gn,clearInteractiveData:Wn,getRecordValueByKeyName:Un,hanldePageRequestData:Qn,interactiveData:w});const ir=vue.ref({}),cr=(vr,yr)=>{ir.value[vr]=yr};vue.provide(LOADED_DATA,{loadedData:ir,setLoadedData:cr});const Xn=[],Hn=()=>{Xn.pop()},Yn=vr=>{Xn.push(vr)},Rn=new Map,Gn=vr=>Rn.get(vr),Zn=(vr,yr)=>{Rn.set(vr,yr)};vue.provide(MODAL_MODEL,{popUseModalIds:Hn,pushUseModalIds:Yn,getModalModel:Gn,setModalModel:Zn});const qn=mitt(),nr=new Set,or=(vr,yr)=>{nr.add(vr),qn.on(vr,xr=>{const{eventName:Cr,params:Er}=xr;return typeof yr[Cr]=="function"&&yr[Cr](Er)}),vue.onBeforeUnmount(()=>{Kn(vr)})},Kn=vr=>{nr.delete(vr),qn.off(vr)},ar=(vr,yr,xr={})=>{if(vr==="PAGE"){const Cr=Xn.length;let Er=[];if(Cr===0)Er=[...nr];else{const _r=Xn[Cr-1];Er=[...Gn(_r)]}Er.forEach(_r=>{qn.emit(_r,{eventName:yr,params:xr})})}else qn.emit(vr,{eventName:yr,params:xr})};vue.provide(EVENT_BUS,{onEvent:or,offEvent:Kn,emitEvent:ar});const lr=vue.ref(0),ur=()=>{lr.value=vue.unref(lr)+1};vue.provide(GLOBAL_TOKEN,{requestToken:ur});const dr=new Map,sr=new Map,fr=({requestFn:vr=()=>{},sortNum:yr=0,id:xr=""})=>{if(dr.has(yr)){const Cr=dr.get(yr);Cr==null||Cr.push(vr)}else dr.set(yr,[vr]);sr.set(xr,vr)},pr=vr=>new Promise((yr,xr)=>{const Cr=vr.map(Er=>Er());Promise.all(Cr).then(Er=>{yr(Er)}).catch(Er=>{xr(Er)})}),mr=vr=>new Promise(async(yr,xr)=>{if(vr){if(typeof vr=="string"){const Cr=sr.get(vr);if(typeof Cr=="function"){const Er=request.interceptors.response.use(_r=>(yr(_r),_r),_r=>(xr(_r),Promise.reject(_r)));Cr(),request.interceptors.response.eject(Er)}}}else{const Cr=Array.from(dr);Cr.sort((_r,kr)=>kr[0]-_r[0]);const Er=Cr.length;try{c.pageMode!=="design"&&vue.unref(lr)>0;for(let _r=0;_r<Er;_r++){const kr=Cr[_r][1];await pr(kr)}}catch(_r){console.error(_r)}finally{dr.clear(),yr(null)}}});vue.provide(REQUEST_MODEL,{setRequest:fr,touchRequest:mr});const gr=()=>{qn.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:gr});const hr=vr=>{qn.on(REFRESH_PAGE,()=>vr()),vue.onMounted(()=>{qn.off(REFRESH_PAGE)})};return vue.watchEffect(()=>{var vr;if((vr=vue.unref(p))!=null&&vr.length&&vue.unref(x)!=="design"){const{jumpType:yr,jumpTime:xr,jumpPage:Cr,jumpLink:Er}=c;if(xr!=null&&xr.value){let _r=0;switch(xr==null?void 0:xr.suffix){case"hours":_r=xr.value*60*60*1e3;break;case"minute":_r=xr.value*60*1e3;break;case"seconds":_r=xr.value*1e3;break}setTimeout(()=>{let kr="";yr==="page"&&Cr?kr=usePageUrl(vue.unref(x),Cr):yr==="link"&&Er&&(kr=Er),kr=hn(kr),window.open(kr,"_self")},_r)}}}),vue.onBeforeUnmount(()=>{dr==null||dr.clear(),sr==null||sr.clear()}),u({touchRequest:mr,getGlobalModel:Vn,onRefreshPage:hr,emitEvent:ar,getRecordValueByKeyName:Un,props:c}),{providerConfig:d,configStyle:Pn}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_3f7afe2a_lang="";function _sfc_render$y(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:vue.normalizeStyle({...c.configStyle,fontFamily:c.pageFontFamily})},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],4)}const ProviderConfig=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$y],["__scopeId","data-v-3f7afe2a"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1,showAnimation:!1,transParams:[],exceedConfig:"",targetTemplate:"",dataSetchecked:!1},textComponentProps=transformToComponentProps(textProps),textEvents=["refreshData","click","valueChange"],goUp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",goDown="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",__default__$4=vue.defineComponent({name:"EcanText",components:{Skeleton},props:{...textComponentProps},setup(c,{expose:u}){const f=vue.ref(!1),h=usePickComponentStyle(c),d=vue.ref({}),v=vue.computed(()=>c.variableFontSize||"14px"),p=vue.computed(()=>"-"+vue.unref(v)),{getGlobalModel:m,setGlobalModel:g,getRecordValueByKeyName:y,hanldePageRequestData:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:qn=>{},setGlobalModel:(qn,nr)=>{},getRecordValueByKeyName:qn=>{},hanldePageRequestData:(qn,nr)=>{}}),{setLoadedData:Bn,loadedData:b}=vue.inject(LOADED_DATA,{setLoadedData:(qn,nr)=>{},loadedData:{}}),{setTemplateData:re}=vue.inject("templateOperate",{setTemplateData:qn=>{}}),_=qn=>{const nr=c.id,or=m(nr);g(nr,{...or,value:qn||"",RECORD:qn||""})},vn=qn=>{var nr,or;if(mn(qn,"value")&&_(qn.value),c.showAnimation){const Kn=c.text.match(/\{(.+?)\}/g)||[];if(Kn!=null&&Kn.length){const ar=(nr=Kn[0].slice(1,-1))==null?void 0:nr.trim();if(vue.unref(d)[ar]===qn){d.value=qn;return}const lr=+qn[ar];let ur=0;if(isNaN(lr))d.value=qn;else{String(lr).includes(".")&&(ur=((or=String(lr).split(".")[1])==null?void 0:or.length)||0);const dr=Math.abs(lr)*Math.pow(10,ur),sr=String(dr).length;let fr=[];for(let mr=0;mr<5;mr++){const gr=Math.ceil(Math.random()*(dr+1)-1);fr.includes(gr)||fr.push(gr)}fr.sort((mr,gr)=>mr-gr),fr=fr.map(mr=>{const gr=String(mr).split("").reverse(),hr=[];for(let vr=0;vr<sr;vr++)gr&&gr[vr]?hr.push(gr[vr]):hr.push("0");return ur&&hr.splice(ur,0,"."),(lr<0?"-":"")+hr.reverse().join("")}),fr.push(lr);let pr=0;for(const mr of fr)setTimeout(()=>{d.value={...vue.unref(d),[ar]:mr}},pr*1e3),pr+=.1}}else d.value=qn}else d.value=qn};vue.watch(()=>[c.data,c.dataType],([qn,nr])=>{nr==="static"&&vn(qn)},{immediate:!0});const Fn=vue.computed(()=>{let qn="";if(c.gradientShow){const{gradientColor:nr,gradientOffset:or,gradientAngle:Kn,color:ar}=c;qn+=`background: linear-gradient(${Kn}, ${ar}, ${nr||"transparent"} ${or*100}%);-webkit-background-clip: text;color: transparent;`}return qn}),Pn=vue.computed(()=>{const qn={};if(c.gradientShow){const{gradientColor:nr,gradientOffset:or,gradientAngle:Kn,color:ar}=c,lr=nr||"transparent";qn.background=`linear-gradient(${Kn}, ${ar}, ${lr} ${or*100}%)`,qn["-webkit-background-clip"]="text",qn.color="transparent"}return qn}),w=vue.computed(()=>{const qn={};return c.linkPage&&(qn.cursor="pointer",qn.userSelect="none"),qn}),J=vue.ref(1),gn=vue.computed(()=>{var dr;if(vue.unref(f))return`<span style="color:${c.variableColor};font-size:${vue.unref(v)};${vue.unref(Fn)}">${c.variableDefaultValue}</span>`;if(!J.value)return;const qn=vue.unref(d),nr=c.increaseColor||c.color,or=c.declineColor||c.color;let Kn=c.text;Kn=Kn==null?void 0:Kn.replace(/\n|\\n/g,"<br/>"),Kn=Kn==null?void 0:Kn.replace(/\s(?!\{) | (?!\})\s/g," ");const ar=Kn.match(/\{(.+?)\}/g)||[];let lr="",ur="";if(c.exceedConfig==="wrap"?ur="show-wrap":c.exceedConfig==="ellipsis"&&(ur="show-ellipsis"),ar==null||ar.length===0){if(Kn&&c.format==="percentage"&&!isNaN(+Kn)){const sr=parseFloat(Kn),fr=sr*100,pr=Vn(fr.toFixed(2));sr>=0?Kn=`<span class="${ur}" style="color: ${pr||nr||"#ED6643"};font-size:${vue.unref(v)};display: inline-block;${vue.unref(Fn)}">
|
|
103
103
|
<div class="percentage-img-box">
|
|
104
|
-
<img style="width: ${vue.unref(v)};filter: ${`drop-shadow(${
|
|
104
|
+
<img style="width: ${vue.unref(v)};filter: ${`drop-shadow(${pr||nr||"#ED6643"} ${vue.unref(v)} 0px)`};" src="${goUp}"/>
|
|
105
105
|
</div>
|
|
106
|
-
<span style="color: ${
|
|
107
|
-
</span>`:Kn=`<span class="${
|
|
106
|
+
<span style="color: ${pr||c.color};${vue.unref(Fn)}">${Math.abs(+fr).toFixed(2)}%</span>
|
|
107
|
+
</span>`:Kn=`<span class="${ur}" style="color: ${pr||or||"#6ACB97"};font-size:${vue.unref(v)};display: inline-block;${vue.unref(Fn)}">
|
|
108
108
|
<div class="percentage-img-box">
|
|
109
|
-
<img style="width: ${vue.unref(v)};filter: ${`drop-shadow(${
|
|
109
|
+
<img style="width: ${vue.unref(v)};filter: ${`drop-shadow(${pr||or||"#6ACB97"} ${vue.unref(v)} 0px)`};" src="${goDown}"/>
|
|
110
110
|
</div>
|
|
111
|
-
<span style="color: ${
|
|
112
|
-
</span>`}
|
|
111
|
+
<span style="color: ${pr||c.color};${vue.unref(Fn)}">${c.minusSignShow?"-":""}${Math.abs(+fr).toFixed(2)}%</span>
|
|
112
|
+
</span>`}lr=Kn}for(let sr=0;sr<ar.length;sr++){const fr=ar[sr],pr=(dr=fr==null?void 0:fr.slice(1,fr.length-1))==null?void 0:dr.trim();let mr=pr;const gr=pr.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let vr=0;vr<gr.length;vr++){const yr=gr[vr],xr=qn[yr];if(xr)mr=pr.replace(yr,y(String(xr))||xr);else{const Cr=getPageUrlParams(Wn);Cr[yr]&&(mr=decodeURIComponent(Cr[yr]))}}if(/\(.*\)/g.test(mr)){const vr=pn(mr);vr!=null&&(mr=vr)}let hr=mr;if(hr===pr&&(hr=c.variableDefaultValue),hr!=null){const vr=c.format;if(vr==="percentage")if(hr=+hr,isNaN(hr))c.variableDefaultValue?Kn=Kn.replace(fr,`<span class="${ur}" style="color:${Vn("0.00")||c.variableColor};font-size:${vue.unref(v)};${vue.unref(Fn)}">${c.variableDefaultValue}</span>`):Kn=Kn.replace(fr,`<span class="${ur}" style="color:${Vn("0.00")||c.variableColor};font-size:${vue.unref(v)};${vue.unref(Fn)}">0%</span>`);else if(hr>=0){hr=hr*100;const yr=Vn(hr.toFixed(2));Kn=Kn.replace(fr,`<span class="${ur}" style="color: ${yr||nr||"#ED6643"};font-size:${vue.unref(v)};display: inline-block;${vue.unref(Fn)}">
|
|
113
113
|
<div class="percentage-img-box">
|
|
114
|
-
<img style="width: ${vue.unref(v)};filter: ${`drop-shadow(${yr||
|
|
114
|
+
<img style="width: ${vue.unref(v)};filter: ${`drop-shadow(${yr||nr||"#ED6643"} ${vue.unref(v)} 0px)`};" src="${goUp}"/>
|
|
115
115
|
</div>
|
|
116
|
-
<span style="color: ${yr||c.color};${vue.unref(Fn)}">${Math.abs(+
|
|
117
|
-
</span>`)}else{
|
|
116
|
+
<span style="color: ${yr||c.color};${vue.unref(Fn)}">${Math.abs(+hr).toFixed(2)}%</span>
|
|
117
|
+
</span>`)}else{hr=hr*100;const yr=Vn(hr.toFixed(2));Kn=Kn.replace(fr,`<span class="${ur}" style="color: ${yr||or||"#6ACB97"};font-size:${vue.unref(v)};display: inline-block;${vue.unref(Fn)}">
|
|
118
118
|
<div class="percentage-img-box">
|
|
119
|
-
<img style="width: ${vue.unref(v)};filter: ${`drop-shadow(${yr||
|
|
119
|
+
<img style="width: ${vue.unref(v)};filter: ${`drop-shadow(${yr||or||"#6ACB97"} ${vue.unref(v)} 0px)`};" src="${goDown}"/>
|
|
120
120
|
</div>
|
|
121
|
-
<span style="color: ${yr||c.color};${vue.unref(Fn)}">${c.minusSignShow?"-":""}${Math.abs(+
|
|
122
|
-
</span>`)}else c.format==="percent"?(ur=+ur,isNaN(ur)||(ur=(ur*100).toFixed(2),Kn=Kn.replace(fr,`<span class="${hr}" style="color:${Rn(ur)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(Fn)}">${ur}%</span>`))):c.format==="money"?(ur=+ur,isNaN(ur)||(ur=formatMoney(ur),Kn=Kn.replace(fr,`<span class="${hr}" style="color:${Rn(ur)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(Fn)}">${ur}</span>`))):vr==="thousands"?(ur=+ur,isNaN(ur)||(ur=formatThousands(ur),Kn=Kn.replace(fr,`<span class="${hr}" style="color:${Rn(ur)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(Fn)}">${ur}</span>`))):Kn=Kn.replace(fr,`<span class="${hr}" style="color:${Rn(ur)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(Fn)}">${ur}</span>`)}}if(cr||(cr=`<span class="${hr}" style="color: ${Rn(Kn)};${vue.unref(Fn)}">${Kn}</span>`),c.unitShow&&c.unitText){const{unitTop:lr,unitLeft:fr}=c;let mr="position:relative;";lr&&(mr+=`top:${lr};`),fr&&(mr+=`margin-left:${fr};`),cr+=`<span style='color:${c.unitColor};font-size:${c.unitFontSize};font-weight:${c.unitFontWeight};${mr};${vue.unref(Fn)}'>${c.unitText}</span>`}return c.exceedConfig&&(cr=`<span class="${hr}" style="display: inline-block;color: ${Rn(cr)};">${cr}</span>`),cr.includes("span")||(cr=`<span class="${hr}" style="color: ${Rn(cr)};">${cr}</span>`),cr});function Rn(qn){let er="",ir=!1;const{targetValue:Kn,targetShow:or,notExpectColor:cr}=c;if(or){switch(c.targetRule){case"equal":qn!==Kn&&(ir=!0);break;case"greater":qn<=Kn&&(ir=!0);break;case"greater_equal":qn<Kn&&(ir=!0);break;case"less":qn>=Kn&&(ir=!0);break;case"less_equal":qn>Kn&&(ir=!0);break}ir&&(er=cr)}return er}const{pageMode:zn}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",requestList:[]}),{pageId:Wn}=vue.inject("templateOperate",{pageId:""})||{},Un=useRequestData(c),Qn=vue.ref(!1),Jn=async()=>{var qn,er,ir;try{Qn.value=!0;const Kn=await Un();(qn=Kn==null?void 0:Kn.data)!=null&&qn.data.rowsToData?re(((er=Kn==null?void 0:Kn.data)==null?void 0:er.data.rowsToData)||{}):re(((ir=Kn==null?void 0:Kn.data)==null?void 0:ir.data)||{})}catch(Kn){console.error(Kn)}finally{Qn.value=!1}},tr=()=>{_("")},Xn=qn=>{var ir,Kn;const{data:er}=(qn==null?void 0:qn.data)||{};if(er){f.value=!1;const{columns:or=[],rows:cr=[]}=((ir=qn==null?void 0:qn.data)==null?void 0:ir.data)??{},{graphicConfig:hr}=c;let dr={};if(or.length>0)if((Kn=hr==null?void 0:hr.dimensionList)!=null&&Kn.length){const lr=or[0];lr&&(cr!=null&&cr.length)&&(dr={value:cr[0][lr]})}else{const lr=or.find(fr=>!!fr);lr&&(dr={value:isNaN(cr[lr])?0:cr[lr]||0})}_(dr==null?void 0:dr.value),re(dr)}else f.value=!0,_(c.variableDefaultValue),re({value:c.variableDefaultValue})},ar=useIndicatorData(c,Xn),sr=async()=>{try{Qn.value=!0;const qn=await ar();Xn(qn)}catch(qn){console.error(qn)}finally{Qn.value=!1,Pn(c.id,!0)}},nr=vue.ref(!1);vue.watch(b,qn=>{if(c.dataType==="indicator"){const er=getFixedValueDatas(c.graphicConfig);er!=null&&er.length&&(!vue.unref(nr)&&canRequestIndicator(c.graphicConfig,qn)?(nr.value=!0,Hn()):canRequestIndicator(c.graphicConfig,qn)||(nr.value=!1))}},{deep:!0});const Hn=()=>{switch(c.dataType){case"indicator":sr();break;case"request":{const{openCustomRequestData:qn,customRequestName:er}=c;qn||qn===void 0?Jn():x(er,ir=>{ir&&(ir.rowsToData?re(ir.rowsToData):re(ir))});break}}},{setRequest:Yn}=vue.inject(REQUEST_MODEL,{setRequest:({id:qn,sortNum:er,requestFn:ir})=>{}});typeof Yn=="function"&&Yn({id:c.id,requestFn:Hn,sortNum:c.requestSort}),u({refreshData:Hn});const Vn=useEmitEvent(c),Gn=Vn("click",()=>{const qn=document.getElementsByClassName(`ecan-text_${c.id}`);qn!=null&&qn.length&&_(qn[0].innerText),setTimeout(()=>{_("")},0),!(!c.linkPage&&!c.href)&&handleJumpLink(c,{pageMode:vue.unref(zn),targetTemplate:c.targetTemplate,getRecordValueByKeyName:y,setTemplateData:vn})}),Zn=Vn("valueChange",()=>{J.value++});return useOnEvent(c,{refreshData:Hn,resetRecord:tr,click:Gn,valueChange:Zn}),vue.watch(()=>gn.value,(qn,er)=>{qn!==er&&Zn()}),{style:h,myText:gn,loading:Qn,click:Gn,textIndent:p,vFontSize:v,gradientStyle:Bn,cursorStyle:w}}}),__injectCSSVars__$4=()=>{vue.useCssVars(c=>({"07da2c0b":c.vFontSize,c8e93f58:c.textIndent,"2ee314a8":c.percentageSide}))},__setup__$4=__default__$4.setup;__default__$4.setup=__setup__$4?(c,u)=>(__injectCSSVars__$4(),__setup__$4(c,u)):__injectCSSVars__$4;const Text_vue_vue_type_style_index_0_scoped_fa95d640_lang="",Text_vue_vue_type_style_index_1_lang="",_hoisted_1$f=["innerHTML"];function _sfc_render$x(c,u,f,h,d,v){const p=vue.resolveComponent("skeleton");return c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{loading:c.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["ecan-text","ecan-text_"+c.id]),style:vue.normalizeStyle({...c.style,...c.gradientStyle,...c.cursorStyle}),innerHTML:c.myText,onClick:u[0]||(u[0]=(...m)=>c.click&&c.click(...m))},null,14,_hoisted_1$f))}const Text=_export_sfc$1(__default__$4,[["render",_sfc_render$x],["__scopeId","data-v-fa95d640"]]),EcanText=withInstall$1(Text),_sfc_main$s=vue.defineComponent({name:"EcanScrollText",setup(){return{text:vue.ref("基础文本")}}}),ScrollText_vue_vue_type_style_index_0_scoped_4dd9c03e_lang="",_hoisted_1$e={class:"red"};function _sfc_render$w(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$e,vue.toDisplayString(c.text),1)}const ScrollText=_export_sfc$1(_sfc_main$s,[["render",_sfc_render$w],["__scopeId","data-v-4dd9c03e"]]),EcanScrollText=withInstall$1(ScrollText),timeDisplayProps={...props,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},timeDisplayComponentProps=transformToComponentProps(timeDisplayProps),timeDisplayEvents=["timeChange"],_sfc_main$r=vue.defineComponent({name:"EcanTimeDisplay",props:{...timeDisplayComponentProps},setup(c){const{pageMode:u}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),f=usePickComponentStyle(c),h=()=>{const{format:x,operate:Pn}=c;let b=dayjs();if(Pn){const{type:vn,value:_,mode:re}=Pn;switch(vn){case"add":b=b.add(_,re);break;case"minus":b=b.subtract(_,re)}}return b.format(x)},d=vue.ref();vue.watch(()=>[c.operate,c.format],()=>{d.value=h()},{immediate:!0,deep:!0}),vue.watch(()=>c.updateInterval,()=>{y()},{deep:!0});let v=null;const p=()=>{clearInterval(v),v=null},g=useEmitEvent(c)("timeChange",()=>{}),y=()=>{v&&p();let x=1e3;const{value:Pn,mode:b}=c.updateInterval||{};Pn&&(x=x*Pn);const vn={second:1,minute:60,hour:60*60,day:24*60*60};b&&(x=x*vn[b]),v=setInterval(()=>{d.value=h(),vue.unref(u)!=="design"&&g()},x)};return useOnEvent(c,{timeChange:g}),vue.onMounted(()=>{y()}),vue.onUnmounted(()=>{p()}),{style:f,time:d}}}),TimeDisplay_vue_vue_type_style_index_0_scoped_b9216314_lang="";function _sfc_render$v(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",{class:"time-display",style:vue.normalizeStyle(c.style)},vue.toDisplayString(c.time),5)}const TimeDisplay=_export_sfc$1(_sfc_main$r,[["render",_sfc_render$v],["__scopeId","data-v-b9216314"]]),EcanTimeDisplay=withInstall$1(TimeDisplay),listProps={...props,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"0px",itemRowSpan:"10px",itemPadding:"20px",useRanking:!1,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}],seqIcon:!1,isUseSeq:!1,seqWidth:"10%",seqName:"序号",seqFontSize:"14px",isAutoScroll:!1,scrollSpeed:10,graphicConfig:{},seqIconWidth:"",seqIconHeight:"",seqIconConfig:[],seqIconOffsetX:0,seqIconOffsetY:0,seqIndexFormatter:"{index}",itemWidth:"100%"},listComponentProps=transformToComponentProps(listProps),listEvents=["refreshData","click","resetRecord"],seqIcon4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",seqIcon5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",seqIcon6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",seqIcon7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",_sfc_main$q=vue.defineComponent({name:"EcanList",components:{Skeleton,ATooltip:antDesignVue.Tooltip,MarqueeScroll},props:{...listComponentProps},setup(c,{expose:u}){const f=vue.ref(),h=usePickComponentStyle(c,["backgroundColor"]),d=(Yn,Vn)=>{const{format:Gn,customFormatter:Zn}=Vn;if(Gn==null||Gn==="")return Yn;const qn={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,custom:formatCustom};return qn[Gn]?Gn==="custom"?qn[Gn](Yn,Zn)||"":qn[Gn](Yn)||"":""},v=(Yn,Vn)=>{const Gn=parseFloat(Yn+"");if(Vn!=="contrast")return"";switch(!0){case Gn>=0:return"goUp";case Gn<0:return"goDown"}},p=useRequestData(c),m=vue.ref(!1),g=async()=>{var Yn;if(c.dataType==="request")try{m.value=!0;const Vn=await p();f.value=((Yn=Vn==null?void 0:Vn.data)==null?void 0:Yn.data.rows)||[]}catch(Vn){console.error(Vn)}finally{m.value=!1}};vue.watch(()=>c.data,()=>{(c.dataType==="static"||!vue.unref(f))&&(f.value=c.data)},{immediate:!0,deep:!0});const y=vue.computed(()=>({key:"SEQ",width:c.seqWidth,title:c.seqName,align:"center",fontSize:c.seqFontSize})),x=vue.computed(()=>{const{columns:Yn,isUseSeq:Vn}=c;return Vn?[vue.unref(y),...Yn]:Yn}),Pn=Yn=>{var Zn;const{columns:Vn=[],rows:Gn=[]}=((Zn=Yn==null?void 0:Yn.data)==null?void 0:Zn.data)??{};c.isUseSeq&&Vn.unshift(c.seqName),x.value.forEach((qn,er)=>{(!c.isUseSeq||er!==0)&&(qn.title=Vn[er],qn.key=Vn[er])}),f.value=Gn},b=useIndicatorData(c,Pn),vn=async()=>{try{m.value=!0;const Yn=await b();Pn(Yn)}catch(Yn){console.error(Yn)}finally{m.value=!1}},_=()=>{switch(c.dataType){case"indicator":vn();break;case"request":g();break}},re=useEmitEvent(c),{getGlobalModel:Fn,setGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Yn=>{},setGlobalModel:(Yn,Vn)=>{}}),w=Yn=>{re("click",()=>{const Vn=Fn(c.id);Bn(c.id,{...Vn,type:c.type,RECORD:Yn})})()};useOnEvent(c,{refreshData:_,resetRecord:()=>{const Yn=c.id,Vn=Fn(Yn);Bn(Yn,{...Vn,type:c.type,RECORD:""})}});const{setRequest:gn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Yn,sortNum:Vn,requestFn:Gn})=>{}});typeof gn=="function"&&gn({id:c.id,requestFn:_,sortNum:c.requestSort}),u({refreshData:_});const Rn=(Yn,Vn)=>({flex:Yn.width?"none":"1",width:Yn.width,height:c.itemHeight,lineHeight:c.itemHeight,textAlign:(Vn?Yn.cellAlign:Yn.align)||"left",backgroundColor:Yn.cellColor}),zn=(Yn,Vn)=>{let Gn=0;const Zn=vue.unref(f).map(er=>er[Vn]),qn=Math.max(...Zn);return qn&&(Gn=Yn[Vn]/qn*100),Gn},Wn=Yn=>{const{progressColor:Vn="#1890ff",progressGradientColor:Gn=""}=Yn;return Gn?{background:`linear-gradient(to right, ${Vn} 0%, ${Gn} 100%)`}:{backgroundColor:Vn||"#1890ff"}},Un=vue.computed(()=>{const Yn=parseFloat(c.seqFontSize)+5;return{width:Yn+10,height:Yn}}),{pageMode:Qn}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),Jn=vue.computed(()=>vue.unref(Qn)!=="design"&&c.isAutoScroll),tr=Yn=>{const{seqIconConfig:Vn}=c;let Gn=Vn.find(Zn=>Zn.key===Yn+1);return Gn||(Gn=Vn.find(Zn=>Zn.key==="other")),!!(Gn!=null&&Gn.icon)},Xn=(Yn,Vn)=>{const{seqIconConfig:Gn}=c;let Zn=Gn.find(qn=>qn.key===Yn+1);return Zn||(Zn=Gn.find(qn=>qn.key==="other")),Vn===1?Zn!=null&&Zn.icon?useImagePath(Zn.icon):"":Vn===2?(Zn==null?void 0:Zn.color)||"#fff":""},ar=Yn=>{const{seqIndexFormatter:Vn}=c,Gn=Yn+1;return Vn?hn(Vn,{textData:{index:Gn}},{useNewline:!1,useSpace:!0}):Gn},sr=vue.computed(()=>parseFloat(c.itemWidth)!==100?{height:"100%"}:{}),nr=vue.computed(()=>!c.itemWidth||c.itemWidth==="100%"?"0":c.itemColSpan);return{style:h,formatFn:d,contrastClass:v,dataSource:f,loading:m,myColumns:x,click:w,getColumnStyle:Rn,getPercentage:zn,getBackgroundColor:Wn,isShowSeqIcon:tr,getSeqIconData:Xn,seqIcon4,seqIcon5,seqIcon6,seqIcon7,iconSize:Un,isScroll:Jn,formatSeq:ar,wrapStyle:sr,colSpan:nr,getText:(Yn,Vn)=>(Yn.format!=null||Yn.format!=="")&&d(Vn[Yn.key],Yn)}}}),List_vue_vue_type_style_index_0_scoped_0f13dff6_lang="",List_vue_vue_type_style_index_1_lang="",_withScopeId$4=c=>(vue.pushScopeId("data-v-0f13dff6"),c=c(),vue.popScopeId(),c),_hoisted_1$d={key:0,class:"title"},_hoisted_2$6={key:0,class:"ranking"},_hoisted_3$2=["onClick"],_hoisted_4$2={key:0,class:"ranking"},_hoisted_5$2=_withScopeId$4(()=>vue.createElementVNode("div",{class:"icon"},null,-1)),_hoisted_6$2={class:"sort"},_hoisted_7$2=["src"],_hoisted_8$2={key:1},_hoisted_9$2=["src","width","height"],_hoisted_10$2=["src","width","height"],_hoisted_11$2=["src","width","height"],_hoisted_12$2=["src","width","height"],_hoisted_13$2={key:1},_hoisted_14$2=["title"],_hoisted_15$2={key:2,class:"empty"};function _sfc_render$u(c,u,f,h,d,v){const p=vue.resolveComponent("a-tooltip"),m=vue.resolveComponent("marquee-scroll"),g=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-list",style:vue.normalizeStyle(c.style)},[vue.createVNode(g,{loading:c.loading},{default:vue.withCtx(()=>[c.useTitle?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$d,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.columnCount,y=>(vue.openBlock(),vue.createElementBlock("div",{class:"title-inner",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,height:c.itemHeight,width:`calc(100% / ${c.columnCount} - ${c.itemColSpan} * ${c.columnCount-1}/ ${c.columnCount})`,marginRight:y%c.columnCount!==0?c.itemColSpan:"",padding:`0 ${c.itemPadding}`}),key:y},[c.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$6)):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myColumns,(x,Pn)=>(vue.openBlock(),vue.createElementBlock("div",{class:"column",key:x.key||Pn,style:vue.normalizeStyle({color:x.titleColor,fontSize:x.fontSize,...c.getColumnStyle(x)})},vue.toDisplayString(x.title),5))),128))],4))),128))])):vue.createCommentVNode("",!0),c.dataSource.length>0?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-list-content",style:vue.normalizeStyle({paddingTop:c.useTitle?c.itemRowSpan:0,height:c.useTitle?"calc(100% - 40px)":"100%"})},[vue.createVNode(m,{visible:c.isScroll,step:c.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap",...c.wrapStyle}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.dataSource.slice(0,c.sliceCount),(y,x)=>(vue.openBlock(),vue.createElementBlock("div",{class:"item",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,height:c.itemHeight,width:`calc(${c.itemWidth} - ${c.colSpan})`,marginRight:c.colSpan,marginBottom:c.itemRowSpan,padding:`0 ${c.itemPadding}`}),key:y.id||x,onClick:Pn=>c.click(y)},[c.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$2,[_hoisted_5$2,vue.createElementVNode("div",_hoisted_6$2," Top "+vue.toDisplayString(x+1),1)])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myColumns,Pn=>{var b;return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["column",c.contrastClass(y[Pn.key],Pn.format),Pn.key==="SEQ"?"seq-column":""]),key:Pn.key,style:vue.normalizeStyle({fontSize:Pn.fontSize,color:c.contrastClass(y[Pn.key],Pn.format)===""?Pn.color:"",fontWeight:Pn.fontWeight,...c.getColumnStyle(Pn,"cell")})},[Pn.key==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[(b=c.seqIconConfig)!=null&&b.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"icon-box",style:vue.normalizeStyle({width:c.seqIconWidth||"",height:c.seqIconHeight||""})},[c.seqIconWidth&&c.seqIconHeight&&c.isShowSeqIcon(x)?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"custom-seq-icon",src:c.getSeqIconData(x,1),style:vue.normalizeStyle({width:c.seqIconWidth,height:c.seqIconHeight})},null,12,_hoisted_7$2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"custom-seq-text",style:vue.normalizeStyle({fontSize:c.seqFontSize,color:c.getSeqIconData(x,2),lineHeight:c.seqIconHeight||"",left:c.seqIconOffsetX,top:c.seqIconOffsetY})},vue.toDisplayString(c.formatSeq(x)),5)],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$2,[x===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:c.seqIcon4,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_9$2)):x===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:c.seqIcon5,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_10$2)):x===2?(vue.openBlock(),vue.createElementBlock("img",{key:2,class:"seq-icon",src:c.seqIcon6,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_11$2)):x>=3?(vue.openBlock(),vue.createElementBlock("img",{key:3,class:"seq-icon",src:c.seqIcon7,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_12$2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"seq-icon seq-text",style:vue.normalizeStyle({fontSize:c.seqFontSize})},vue.toDisplayString(c.formatSeq(x)),5)]))],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_13$2,vue.toDisplayString(c.formatSeq(x)),1))],64)):Pn.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"progress-cell",style:vue.normalizeStyle({height:c.itemHeight})},[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({height:Pn.progressWidth||"14px",backgroundColor:Pn.progressBaseColor})},[vue.createVNode(p,{title:y[Pn.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({borderRadius:"10px",height:Pn.progressWidth||"14px",width:`${c.getPercentage(y,Pn.key)}%`,...c.getBackgroundColor(Pn)})},null,4)]),_:2},1032,["title"])],4)],4)):(vue.openBlock(),vue.createElementBlock("span",{key:2,title:c.getText(Pn,y)},vue.toDisplayString(c.getText(Pn,y)),9,_hoisted_14$2))],6)}),128))],12,_hoisted_3$2))),128))]),_:1},8,["visible","step","wrapStyle"])],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$2," 暂无数据 "))]),_:1},8,["loading"])],4)}const List=_export_sfc$1(_sfc_main$q,[["render",_sfc_render$u],["__scopeId","data-v-0f13dff6"]]),EcanList=withInstall$1(List),proportionProps={...props,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}{%}",fontSize:"26px",color:"#4091f7",variableColor:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},proportionComponentProps=transformToComponentProps(proportionProps),proportionEvents=["refreshData","click"],_sfc_main$p=vue.defineComponent({name:"EcanProportion",components:{AProgress:antDesignVue.Progress,Skeleton},props:{...proportionComponentProps},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),d=usePickComponentStyle(c),v=vue.computed(()=>{const Rn=c.width;return parseFloat(Rn)}),p=vue.ref({});vue.watch(()=>c.data,()=>{(c.dataType==="static"||vue.unref(h)==="design")&&(p.value=c.data)},{immediate:!0,deep:!0});const m=vue.computed(()=>{const Rn=vue.unref(p),zn=+c.variableDefaultValue;if(Rn==null)return isNaN(zn)?0:zn;const Wn=c.text.match(/\{(.+?)\}/g)||[];let Un;const Qn=new Set(Object.keys(Rn));for(let Jn=0;Jn<Wn.length;Jn++){const tr=Wn[Jn],Xn=tr.slice(1,tr.length-1);if(Qn.has(Xn)){Un=Rn[Xn];break}}return typeof Un=="number"?Un=Un*100:typeof Un=="string"&&!isNaN(+Un)?Un=+Un*100:isNaN(zn)?Un=0:Un=zn*100,c.decimalFormat&&(Un=+Un.toFixed(2)),Un}),g=vue.computed(()=>{var Qn;let Rn=c.text;if(Rn==="")return vue.unref(m);const zn=c.variableDefaultValue,Wn=vue.unref(p),Un=Rn.match(/\{(.+?)\}/g)||[];for(let Jn=0;Jn<Un.length;Jn++){const tr=Un[Jn];let Xn=tr.slice(1,tr.length-1);const ar=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,sr=tr.match(ar);for(let Hn=0;Hn<(sr==null?void 0:sr.length);Hn++){const Yn=(Qn=sr[Hn])==null?void 0:Qn.trim();Wn[Yn]!=null&&(Xn=Xn.replace(Yn,Wn[Yn]))}let nr=Xn;try{(/\(.*\)/g.test(Xn)||/[+/\\*]/g.test(Xn))&&(nr=pn(Xn))}catch(Hn){console.error(Hn)}typeof+nr=="number"&&!isNaN(+nr)?(nr=+nr*100,c.decimalFormat&&(nr=nr.toFixed(2))):typeof nr!="string"&&(nr=zn),Rn=Rn.replace(tr,`<span style="color: ${c.variableColor};">${nr+""}</span>`)}return Rn=Rn==null?void 0:Rn.replace(/\n|\\n/g,"<br/>"),vue.unref(f)?"NaN":Rn}),y=useRequestData(c),x=vue.ref(!1),Pn=async()=>{var Rn,zn,Wn,Un,Qn;if(c.dataType==="request")try{x.value=!0;const Jn=await y();p.value=((Rn=Jn==null?void 0:Jn.data)==null?void 0:Rn.data)||{},(Wn=(zn=Jn==null?void 0:Jn.data)==null?void 0:zn.data)!=null&&Wn.rowsToData&&(p.value=((Qn=(Un=Jn==null?void 0:Jn.data)==null?void 0:Un.data)==null?void 0:Qn.rowsToData)||{})}catch(Jn){console.error(Jn)}finally{x.value=!1}},b=(Rn={})=>{p.value=Rn},vn=Rn=>{var Wn;const{data:zn}=(Rn==null?void 0:Rn.data)||{};if(zn){f.value=!1;const{columns:Un=[],rows:Qn=[]}=((Wn=Rn==null?void 0:Rn.data)==null?void 0:Wn.data)??{};let Jn={};if(Un.length>0){const tr=Un.find(Xn=>!!Xn);tr&&(Jn={percent:Qn[tr]})}b(Jn)}else f.value=!0,b({percent:"NaN"})},_=useIndicatorData(c,vn),re=async()=>{try{x.value=!0;const Rn=await _();vn(Rn)}catch(Rn){console.error(Rn)}finally{x.value=!1}},Fn=()=>{switch(c.dataType){case"indicator":re();break;case"request":Pn();break}};useOnEvent(c,{refreshData:Fn}),u({refreshData:Fn});const w=useEmitEvent(c)("click",()=>{}),{setRequest:J}=vue.inject(REQUEST_MODEL,{setRequest:({id:Rn,sortNum:zn,requestFn:Wn})=>{}});typeof J=="function"&&J({id:c.id,requestFn:Fn,sortNum:c.requestSort});const gn=vue.computed(()=>{const{gradientShow:Rn,gradientColor:zn,gradientOffset:Wn,strokeColor:Un}=c;let Qn=Un;return Rn&&(Qn={"0%":Un||"transparent",[`${Wn*100}%`]:zn||"transparent"}),Qn});return{style:d,myWidth:v,text:g,myValue:m,loading:x,click:w,customStrokeColor:gn}}}),Proportion_vue_vue_type_style_index_0_scoped_ca061c1e_lang="",_hoisted_1$c=["innerHTML"];function _sfc_render$t(c,u,f,h,d,v){const p=vue.resolveComponent("skeleton"),m=vue.resolveComponent("a-progress");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-proportion",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{class:vue.normalizeClass(["progress",c.gradientShow?"gradient":""]),percent:c.myValue,width:c.myWidth,type:c.strokeType,strokeColor:c.customStrokeColor,strokeLinecap:c.strokeLinecap,trailColor:c.trailColor||"transparent",strokeWidth:c.strokeWidth,showInfo:c.strokeTextShow,gapDegree:c.strokeType==="dashboard"?75:0,onClick:c.click},{format:vue.withCtx(()=>[c.loading?(vue.openBlock(),vue.createBlock(p,{key:0,loading:c.loading},null,8,["loading"])):c.strokeTextShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"format",style:vue.normalizeStyle({width:c.strokeTextWidth,fontSize:c.fontSize,color:c.color,fontWeight:c.fontWeight,lineHeight:c.lineHeight})},[vue.createElementVNode("span",{style:{"white-space":"nowrap"},innerHTML:c.text},null,8,_hoisted_1$c)],4)):vue.createCommentVNode("",!0)]),_:1},8,["class","percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Proportion=_export_sfc$1(_sfc_main$p,[["render",_sfc_render$t],["__scopeId","data-v-ca061c1e"]]),EcanProportion=withInstall$1(Proportion),counterProps={...props,name:"计数器",type:"ecanCounter",keyName:"计数器",width:"400px",height:"80px",zIndex:0,digits:5,counterBackgroundImage:"",color:"#333",unitInterval:15,fontSize:"20px",fontWeight:700,fontStyle:"normal",unitWidth:"65px",unitHeight:"72px",data:"",graphicConfig:{}},counterComponentProps=transformToComponentProps(counterProps),counterEvents=["refreshData","click","resetRecord"],_sfc_main$o=vue.defineComponent({name:"EcanCounter",components:{Skeleton},props:{...counterComponentProps},setup(c,{expose:u}){const f=vue.ref(),h=usePickComponentStyle(c),d=vue.computed(()=>({width:c.unitWidth,height:c.unitHeight,marginRight:c.unitInterval+"px"})),v=vue.computed(()=>({color:c.color,fontSize:c.fontSize,fontWeight:c.fontWeight,fontStyle:c.fontStyle}));vue.watch(()=>[c.data,c.dataType],([gn,Rn])=>{Rn==="static"&&(f.value=gn)},{immediate:!0});const{getGlobalModel:p,setGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:gn=>{},setGlobalModel:(gn,Rn)=>{}}),y=useEmitEvent(c)("click",()=>{const gn=p(c.id);m(c.id,{...gn,type:c.type,value:vue.unref(f)})}),x=()=>{const gn=c.id,Rn=p(gn);m(gn,{...Rn,type:c.type,value:""})},Pn=useRequestData(c),b=vue.ref(!1),vn=async()=>{var gn,Rn;try{b.value=!0;const zn=await Pn();f.value=((Rn=(gn=zn==null?void 0:zn.data)==null?void 0:gn.data)==null?void 0:Rn.value)||""}catch(zn){console.error(zn)}finally{b.value=!1}},_=gn=>{var Wn;const{data:Rn}=(gn==null?void 0:gn.data)||{};let zn="";if(Rn){const{columns:Un=[],rows:Qn=[]}=((Wn=gn==null?void 0:gn.data)==null?void 0:Wn.data)??{};if(Un.length>0){const Jn=Un.find(tr=>!!tr);Jn&&(zn=Qn[Jn]||"")}}f.value=String(zn)},re=useIndicatorData(c,_),Fn=async()=>{try{b.value=!0;const gn=await re();_(gn)}catch(gn){console.error(gn)}finally{b.value=!1}},Bn=()=>{switch(c.dataType){case"indicator":Fn();break;case"request":vn();break}},w=vue.computed(()=>{const gn=[],{digits:Rn}=c,zn=vue.unref(f)?vue.unref(f).split("").reverse().join(""):"";for(let Wn=0;Wn<Rn;Wn++)zn&&zn[Wn]?gn.push(zn[Wn]):gn.push("0");return gn.reverse()});useOnEvent(c,{refreshData:Bn,resetRecord:x});const{setRequest:J}=vue.inject(REQUEST_MODEL,{setRequest:({id:gn,sortNum:Rn,requestFn:zn})=>{}});return typeof J=="function"&&J({id:c.id,requestFn:Bn,sortNum:c.requestSort}),u({refreshData:Bn}),{style:h,valueList:w,digitsStyle:d,fontStyle:v,loading:b,useImagePath,click:y}}}),Counter_vue_vue_type_style_index_0_scoped_82bd9070_lang="",_hoisted_1$b=["src"];function _sfc_render$s(c,u,f,h,d,v){var m;const p=vue.resolveComponent("skeleton");return c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{loading:c.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-counter",style:vue.normalizeStyle(c.style),onClick:u[0]||(u[0]=(...g)=>c.click&&c.click(...g))},[(m=c.valueList)!=null&&m.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(c.valueList,(g,y)=>(vue.openBlock(),vue.createElementBlock("div",{class:"digits-item",style:vue.normalizeStyle(c.digitsStyle),key:y},[c.counterBackgroundImage?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"item-image",src:c.useImagePath(c.counterBackgroundImage)},null,8,_hoisted_1$b)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:"item-text",style:vue.normalizeStyle(c.fontStyle)},vue.toDisplayString(g),5)],4))),128)):vue.createCommentVNode("",!0)],4))}const Counter=_export_sfc$1(_sfc_main$o,[["render",_sfc_render$s],["__scopeId","data-v-82bd9070"]]),EcanCounter=withInstall$1(Counter),inputProps={...props,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},inputComponentProps=transformToComponentProps(inputProps),inputEvents=["inputChange","inputBlur"],_sfc_main$n=vue.defineComponent({name:"EcanInput",components:{AInput:antDesignVue.Input},props:{...inputComponentProps},setup(c){const u=usePickComponentStyle(c),f=vue.ref(""),{getGlobalModel:h,setGlobalModel:d,getRecordValueByKeyName:v}=vue.inject(GLOBAL_MODEL,{getGlobalModel:x=>{},setGlobalModel:(x,Pn)=>{},getRecordValueByKeyName:x=>{}});vue.watch(()=>c.value,x=>{f.value=v(x)},{immediate:!0}),d(c.id,{type:c.type,value:f});const p=()=>{const x=h(c.id);d(c.id,{...x,RECORD:f})},m=useEmitEvent(c),g=lodashEs.debounce(m("inputChange",()=>{p()}),300),y=m("inputBlur",()=>{});return{style:u,myValue:f,inputBlur:y,inputChange:g}}}),Input_vue_vue_type_style_index_0_lang="";function _sfc_render$r(c,u,f,h,d,v){const p=vue.resolveComponent("a-input");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-input",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{class:"input",value:c.myValue,"onUpdate:value":u[0]||(u[0]=m=>c.myValue=m),placeholder:c.placeholder,onChange:c.inputChange,onBlur:c.inputBlur,style:vue.normalizeStyle({fontSize:c.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const Input=_export_sfc$1(_sfc_main$n,[["render",_sfc_render$r]]),EcanInput=withInstall$1(Input),datePickerProps$1={...props,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null,optionFontSize:"14px",limitStartTime:"",limitEndTime:"",data:""},datePickerComponentProps=transformToComponentProps(datePickerProps$1),datePickerEvents=["dateChange","refreshData"],__default__$3=vue.defineComponent({name:"EcanDatePicker",props:{...datePickerComponentProps},components:{ADatePicker:antDesignVue.DatePicker,AInput:antDesignVue.Input,CalendarOutlined:CalendarOutlined$1,CloseCircleFilled:CloseCircleFilled$1},setup(c){const u=vue.inject("isMobile",!1),f=vue.inject("scaleValue",{widthScale:"1",heightScale:"1"}),h=usePickComponentStyle(c),d=()=>document.getElementById("ProviderConfig")||document.body,v=vue.ref(null),p=vue.ref(null),m=vue.ref(""),g=vue.ref(!1),y=vue.ref([]),x=vue.ref(""),Pn=vue.computed(()=>{let Zn=["year","month","day"];switch(c.picker){case"year":Zn=["year"];break;case"month":Zn=["year","month"];break}return Zn}),{setGlobalModel:b,getGlobalModel:vn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Zn=>{},setGlobalModel:(Zn,qn)=>{}}),{pageId:_}=vue.inject("templateOperate",{pageId:""})||{};b(c.id,{type:c.type,format:c.format,useCurrentTime:c.useCurrentTime,value:v,RECORD:v});const re=useEmitEvent(c),Fn=Zn=>{const qn=c.id,er=vn(qn);b(qn,{...er,value:Zn||"",RECORD:Zn||""})},Bn=re("refreshData",Zn=>{Fn(Zn)});vue.watch(()=>[c.value,c.useCurrentTime,c.operate,x.value],([Zn,qn,er,ir])=>{let Kn=null,or=Zn;if(c.dataType==="request"&&(or=ir),or?Kn=dayjs(hn(or)):qn&&(Kn=dayjs()),er&&Kn){const{type:cr,value:hr,mode:dr}=er;switch(cr){case"add":Kn=Kn.add(hr,dr);break;case"minus":Kn=Kn.subtract(hr,dr)}}v.value=Kn,p.value=Kn,vue.unref(u)&&tr(Kn),Bn(Kn)},{deep:!0,immediate:!0});const w=re("dateChange",()=>{const Zn=getNewValueFromUrlParams(_,c.keyName,"value");Zn&&(v.value=dayjs(Zn)),Fn(vue.unref(v))}),J=()=>{vue.unref(v)&&w()};useOnEvent(c,{dateChange:w});const gn=vue.ref({}),Rn=vue.ref({}),zn=Zn=>{Zn?setTimeout(()=>{Rn.value=vue.unref(gn)},300):Rn.value={}};vue.onMounted(()=>{setTimeout(()=>{const Zn=document.querySelector(`#ecan-date-picker-${c.id}`);if(Zn){const qn=Zn.getBoundingClientRect(),er=parseFloat(vue.unref(f).widthScale)*280;document.body.clientWidth-qn.left<er&&(gn.value.marginLeft=-1*(er-qn.width)+"px")}},0)});const Wn=()=>{tr(vue.unref(v)),g.value=!0},Un=()=>{tr(),v.value=null},Qn=()=>{const Zn=dayjs(vue.unref(y).join("-"));v.value=Zn,tr(Zn),g.value=!1,J()},Jn=()=>{v.value=dayjs(),tr(),m.value=dayjs().format(c.format),g.value=!1};function tr(Zn){y.value=Xn(Zn||dayjs()),m.value=(Zn==null?void 0:Zn.format(c.format))||""}function Xn(Zn){const qn=[];for(const er of vue.unref(Pn))er==="day"?qn.push(Zn.date()):qn.push(Zn[er]()+(er==="month"?1:0));return qn}const ar=Zn=>{let qn=!1,{limitStartTime:er,limitEndTime:ir}=c,Kn=c.picker;const or={current:vue.unref(p)};return c.picker==="date"&&(Kn="day"),er=hn(er,{textData:or}),ir=hn(ir,{textData:or}),er&&ir?qn=!(dayjs(er).isBefore(Zn,Kn)&&Zn.isBefore(dayjs(ir),Kn)):er?qn=Zn.isBefore(dayjs(er),Kn):ir&&(qn=dayjs(ir).isBefore(Zn,Kn)),qn},sr=(Zn={})=>{var qn;if((qn=Object.keys(Zn))!=null&&qn.length)for(const er in Zn)x.value=Zn[er]},nr=useRequestData(c),Hn=vue.ref(!1),Yn=async()=>{var Zn,qn,er;try{Hn.value=!0;const ir=await nr();(Zn=ir==null?void 0:ir.data)!=null&&Zn.data.rowsToData?sr(((qn=ir==null?void 0:ir.data)==null?void 0:qn.data.rowsToData)||{}):sr(((er=ir==null?void 0:ir.data)==null?void 0:er.data)||{})}catch(ir){console.error(ir)}finally{Hn.value=!1}},Vn=()=>{switch(c.dataType){case"request":{Yn();break}}},{setRequest:Gn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Zn,sortNum:qn,requestFn:er})=>{}});return typeof Gn=="function"&&Gn({id:c.id,requestFn:Vn,sortNum:c.requestSort}),{style:h,getPopupContainer:d,myValue:v,locale,change:J,scaleValue:f,popupStyle:gn,customStyle:Rn,openChange:zn,isMobile:u,mobileDateStr:m,handleClearDate:Un,openDatePick:Wn,datePickVisible:g,columnsType:Pn,mobileDate:y,onConfirmDate:Qn,onCancelDate:Jn,disabledDate:ar}}}),__injectCSSVars__$3=()=>{vue.useCssVars(c=>({"0bb92cd3":c.optionFontSize}))},__setup__$3=__default__$3.setup;__default__$3.setup=__setup__$3?(c,u)=>(__injectCSSVars__$3(),__setup__$3(c,u)):__injectCSSVars__$3;const DatePicker_vue_vue_type_style_index_0_scoped_82d2ad4a_lang="",DatePicker_vue_vue_type_style_index_1_lang="",_hoisted_1$a=["id"];function _sfc_render$q(c,u,f,h,d,v){const p=vue.resolveComponent("calendar-outlined"),m=vue.resolveComponent("close-circle-filled"),g=vue.resolveComponent("a-input"),y=vue.resolveComponent("van-date-picker"),x=vue.resolveComponent("van-popup"),Pn=vue.resolveComponent("a-date-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-date-picker",style:vue.normalizeStyle(c.style),id:"ecan-date-picker-"+c.id},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(g,{value:c.mobileDateStr,placeholder:"请选择日期",readonly:"",onClick:c.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(p,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[c.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(m,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(c.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(x,{show:c.datePickVisible,"onUpdate:show":u[1]||(u[1]=b=>c.datePickVisible=b),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[c.datePickVisible?(vue.openBlock(),vue.createBlock(y,{key:0,modelValue:c.mobileDate,"onUpdate:modelValue":u[0]||(u[0]=b=>c.mobileDate=b),"columns-type":c.columnsType,"cancel-button-text":"此刻",onConfirm:c.onConfirmDate,onCancel:c.onCancelDate},null,8,["modelValue","columns-type","onConfirm","onCancel"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(Pn,{key:1,class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:c.myValue,"onUpdate:value":u[2]||(u[2]=b=>c.myValue=b),format:c.format,picker:c.picker,showTime:c.showTime,locale:c.locale,onChange:c.change,onOpenChange:c.openChange,"disabled-date":c.disabledDate,getPopupContainer:c.getPopupContainer,popupStyle:{fontSize:c.optionFontSize,transform:`scale(${c.scaleValue.widthScale}, ${c.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","disabled-date","getPopupContainer","popupStyle"]))],12,_hoisted_1$a)}const DatePicker$1=_export_sfc$1(__default__$3,[["render",_sfc_render$q],["__scopeId","data-v-82d2ad4a"]]),EcanDatePicker=withInstall$1(DatePicker$1),rangePickerProps={...props,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:"",associated:"",optionFontSize:"14px",isAllowSpanYear:!0,limitInterval:null},rangePickerComponentProps=transformToComponentProps(rangePickerProps),rangePickerEvents=["dateChange"];var quarterOfYear$1={exports:{}};(function(c,u){(function(f,h){c.exports=h()})(commonjsGlobal,function(){var f="month",h="quarter";return function(d,v){var p=v.prototype;p.quarter=function(y){return this.$utils().u(y)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(y-1))};var m=p.add;p.add=function(y,x){return y=Number(y),this.$utils().p(x)===h?this.add(3*y,f):m.bind(this)(y,x)};var g=p.startOf;p.startOf=function(y,x){var Pn=this.$utils(),b=!!Pn.u(x)||x;if(Pn.p(y)===h){var vn=this.quarter()-1;return b?this.month(3*vn).startOf(f).startOf("day"):this.month(3*vn+2).endOf(f).endOf("day")}return g.bind(this)(y,x)}}})})(quarterOfYear$1);var quarterOfYearExports=quarterOfYear$1.exports;const quarterOfYear=getDefaultExportFromCjs(quarterOfYearExports);dayjs.extend(quarterOfYear);const __default__$2=vue.defineComponent({name:"EcanRangePicker",components:{ARangePicker:antDesignVue.RangePicker,AInput:antDesignVue.Input,CalendarOutlined:CalendarOutlined$1,CloseCircleFilled:CloseCircleFilled$1},props:{...rangePickerComponentProps},setup(c){const u=vue.inject("isMobile",!1),{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),h=usePickComponentStyle(c),d=()=>document.getElementById("ProviderConfig")||document.body,v=vue.ref([null,null]),p=vue.ref(!1),m=vue.ref([]),g=vue.ref([]),y=vue.ref(),x=vue.ref(),Pn=vue.ref(),b=vue.ref(),vn=vue.ref(0),_=vue.ref({}),re=vue.ref(""),Fn=vue.computed(()=>{let lr=["year","month","day"];switch(c.picker){case"year":lr=["year"];break;case"month":lr=["year","month"];break}return lr});vue.watch(()=>[c.startTime,c.endTime,c.useCurrentTime,c.interval,c.intervalUnit,c.operate],([lr,fr,mr,pr,gr,ur])=>{if(vue.unref(v).every(vr=>!vr)||vue.unref(f)==="design"){let vr=null,yr=null;if(mr&&(vr=dayjs().subtract(pr,gr),yr=dayjs()),lr&&(vr=dayjs(hn(lr))),fr&&(yr=dayjs(hn(fr))),ur){const{type:xr,value:Cr,mode:Er}=ur;switch(xr){case"add":vr=vr&&vr.add(Cr,Er),yr=yr&&yr.add(Cr,Er);break;case"minus":vr=vr&&vr.subtract(Cr,Er),yr=yr&&yr.subtract(Cr,Er)}}v.value=[vr,yr],vue.unref(u)&&hr()}},{immediate:!0});let Bn=vue.unref(v)[0],w=vue.unref(v)[1],J="";const gn=(lr,fr,mr)=>{Array.isArray(lr)?(Bn=lr[0],w=lr[1],J=mr.range):(Bn=null,w=null)},Rn=lr=>{let fr=!1,{limitStartTime:mr,limitEndTime:pr}=c;const gr={startTime:`${Bn||""}`,endTime:`${w||""}`};if(mr=hn(mr,{codeData:gr}),pr=hn(pr,{codeData:gr}),mr&&pr?fr=!(dayjs(mr)<lr&&lr<dayjs(pr)):mr?fr=dayjs(mr)>lr:pr&&(fr=dayjs(pr)<lr),!c.isAllowSpanYear&&J){let ur=null;if(J==="start"?ur=Bn:J==="end"&&(ur=w),ur){const vr=ur.startOf("year"),yr=ur.endOf("year");fr=!(vr<=lr&&lr<yr)}}if(!fr){const{value:ur=0,mode:vr="year"}=c.limitInterval||{};ur&&(J==="start"?fr=Bn.add(ur,vr)<lr:J==="end"&&(fr=w.subtract(ur,vr)>lr))}return fr},{getGlobalModel:zn,setGlobalModel:Wn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:lr=>{},setGlobalModel:(lr,fr)=>{}}),Un=vue.computed(()=>Array.isArray(vue.unref(v))?vue.unref(v)[0]:null),Qn=vue.computed(()=>Array.isArray(vue.unref(v))?vue.unref(v)[1]:null),{pageId:Jn}=vue.inject("templateOperate",{pageId:""})||{};Wn(c.id,{type:c.type,format:c.format,startTime:Un,endTime:Qn,interval:c.interval,intervalUnit:c.intervalUnit,useCurrentTime:c.useCurrentTime,operate:c.operate});const tr=useEmitEvent(c);let Xn=!1;const ar=tr("dateChange",()=>{var mr;const lr=getNewValueFromUrlParams(Jn,c.keyName,"startTime"),fr=getNewValueFromUrlParams(Jn,c.keyName,"endTime");(mr=v.value)!=null&&mr.length||(v.value=[null,null]),lr&&(v.value[0]=dayjs(lr)),fr&&(v.value[1]=dayjs(fr))}),sr=lr=>{const fr=vue.unref(v),mr=fr&&fr[0]&&fr[1];lr===!1&&Xn===!0&&mr&&(ar(),Xn=!1),lr||(J="")},nr=()=>{Xn=!0},Hn=()=>{const{associated:lr}=c;if(lr){const fr=zn(lr)||{};if(fr){const{value:mr}=fr;if(mr)switch(vue.unref(mr)){case"month":v.value=[dayjs().startOf("month"),dayjs().endOf("month")];break;case"quarter":v.value=[dayjs().startOf("quarter"),dayjs().endOf("quarter")];break;case"year":v.value=[dayjs().startOf("year"),dayjs().endOf("year")];break}}}ar()},Yn=()=>{or(vue.unref(v)),p.value=!0},Vn=()=>{or(),re.value="",v.value=[null,null]},Gn=()=>{v.value=[dayjs(vue.unref(m).join("-")),dayjs(vue.unref(g).join("-"))],or(vue.unref(v)),cr(),ir(),p.value=!1,ar()},Zn=()=>{Kn(),p.value=!1},qn=()=>{var lr,fr;(lr=vue.unref(m))!=null&&lr.length&&c.format&&(Pn.value=new Date(vue.unref(m).join("-")),(fr=vue.unref(g))!=null&&fr.length&&dayjs(vue.unref(g).join("-")).isBefore(dayjs(vue.unref(m).join("-")))&&(g.value=lodashEs.cloneDeep(vue.unref(m))))},er=()=>{var lr,fr;(lr=vue.unref(g))!=null&&lr.length&&c.format&&(x.value=new Date(vue.unref(g).join("-")),(fr=vue.unref(m))!=null&&fr.length&&dayjs(vue.unref(m).join("-")).isAfter(dayjs(vue.unref(g).join("-")))&&(m.value=lodashEs.cloneDeep(vue.unref(g))))};function ir(){_.value={startMinDate:lodashEs.cloneDeep(vue.unref(y)),startMaxDate:lodashEs.cloneDeep(vue.unref(x)),endMinDate:lodashEs.cloneDeep(vue.unref(Pn)),endMaxDate:lodashEs.cloneDeep(vue.unref(b))}}function Kn(){y.value=vue.unref(_).startMinDate,x.value=vue.unref(_).startMaxDate,Pn.value=vue.unref(_).endMinDate,b.value=vue.unref(_).endMaxDate}function or(lr=[]){m.value=dr(lr[0]||dayjs()),g.value=dr(lr[1]||dayjs())}function cr(){var mr,pr;const lr=(mr=vue.unref(m))!=null&&mr.length?dayjs(vue.unref(m).join("-")):"",fr=(pr=vue.unref(g))!=null&&pr.length?dayjs(vue.unref(g).join("-")):"";re.value=lr&&fr&&`${lr.format(c.format)} 至 ${fr.format(c.format)}`}function hr(){const{limitStartTime:lr,limitEndTime:fr,limitInterval:mr,isAllowSpanYear:pr}=c;or(vue.unref(v)),lr&&(y.value=new Date(lr),Pn.value=new Date(lr),vue.unref(v)[0].isBefore(dayjs(lr))&&(vue.unref(v)[0]=dayjs(lr),m.value=dr(vue.unref(v)[0]))),fr&&(x.value=new Date(fr),b.value=new Date(fr),vue.unref(v)[1].isAfter(dayjs(fr))&&(vue.unref(v)[1]=dayjs(fr),g.value=dr(vue.unref(v)[1]))),vue.unref(v).every(gr=>gr)&&(mr!=null&&mr.value)&&vue.unref(v)[1].diff(vue.unref(v)[0],mr.mode)>mr.value&&(vue.unref(v)[0]=vue.unref(v)[1].subtract(mr.value,mr.mode),m.value=dr(vue.unref(v)[0])),vue.unref(v).every(gr=>gr)&&!pr&&vue.unref(v)[0].year()!==vue.unref(v)[1].year()&&(vue.unref(v)[0]=dayjs(`${vue.unref(v)[1].year()}-01-01`),m.value=dr(vue.unref(v)[0])),ir(),cr()}function dr(lr){const fr=[];for(const mr of vue.unref(Fn))mr==="day"?fr.push(lr.date()):fr.push(lr[mr]()+(mr==="month"?1:0));return fr}return useOnEvent(c,{dateChange:Hn}),{style:h,getPopupContainer:d,locale,dateChange:ar,myValue:v,disabledDate:Rn,calendarChange:gn,openChange:sr,change:nr,isMobile:u,mobileDateStr:re,datePickVisible:p,columnsType:Fn,openDatePick:Yn,handleClearDate:Vn,onConfirmDate:Gn,onCancelDate:Zn,mobileStartDate:m,mobileEndDate:g,startMinDate:y,startMaxDate:x,endMinDate:Pn,endMaxDate:b,pickerTabKey:vn,onStartDateChange:qn,onEndDateChange:er}}}),__injectCSSVars__$2=()=>{vue.useCssVars(c=>({"2a62a250":c.optionFontSize}))},__setup__$2=__default__$2.setup;__default__$2.setup=__setup__$2?(c,u)=>(__injectCSSVars__$2(),__setup__$2(c,u)):__injectCSSVars__$2;const RangePicker_vue_vue_type_style_index_0_scoped_251fac14_lang="",RangePicker_vue_vue_type_style_index_1_lang="";function _sfc_render$p(c,u,f,h,d,v){const p=vue.resolveComponent("calendar-outlined"),m=vue.resolveComponent("close-circle-filled"),g=vue.resolveComponent("a-input"),y=vue.resolveComponent("van-date-picker"),x=vue.resolveComponent("van-picker-group"),Pn=vue.resolveComponent("van-popup"),b=vue.resolveComponent("a-range-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-range-picker",style:vue.normalizeStyle(c.style)},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(g,{value:c.mobileDateStr,placeholder:"请选择日期范围",readonly:"",onClick:c.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(p,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[c.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(m,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(c.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(Pn,{show:c.datePickVisible,"onUpdate:show":u[3]||(u[3]=vn=>c.datePickVisible=vn),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[c.datePickVisible?(vue.openBlock(),vue.createBlock(x,{key:0,"active-tab":c.pickerTabKey,"onUpdate:active-tab":u[2]||(u[2]=vn=>c.pickerTabKey=vn),tabs:["开始日期","结束日期"],onConfirm:c.onConfirmDate,onCancel:c.onCancelDate},{default:vue.withCtx(()=>[vue.createVNode(y,{modelValue:c.mobileStartDate,"onUpdate:modelValue":u[0]||(u[0]=vn=>c.mobileStartDate=vn),"min-date":c.startMinDate,"max-date":c.startMaxDate,"columns-type":c.columnsType,onChange:c.onStartDateChange},null,8,["modelValue","min-date","max-date","columns-type","onChange"]),vue.createVNode(y,{modelValue:c.mobileEndDate,"onUpdate:modelValue":u[1]||(u[1]=vn=>c.mobileEndDate=vn),"min-date":c.endMinDate,"max-date":c.endMaxDate,"columns-type":c.columnsType,onChange:c.onEndDateChange},null,8,["modelValue","min-date","max-date","columns-type","onChange"])]),_:1},8,["active-tab","onConfirm","onCancel"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(b,{key:1,class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:c.myValue,"onUpdate:value":u[4]||(u[4]=vn=>c.myValue=vn),format:c.format,picker:c.picker,locale:c.locale,getPopupContainer:c.getPopupContainer,"disabled-date":c.disabledDate,onChange:c.change,onCalendarChange:c.calendarChange,onOpenChange:c.openChange,popupStyle:{fontSize:c.optionFontSize}},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"]))],4)}const RangePicker=_export_sfc$1(__default__$2,[["render",_sfc_render$p],["__scopeId","data-v-251fac14"]]),EcanRangePicker=withInstall$1(RangePicker),buttonProps={...props,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400,tooltipTextStyleColor:"",buttonBackgroundColor:"#FFFFFF",borderColor:"#d9d9d9"},buttonComponentProps=transformToComponentProps(buttonProps),buttonEvents=["click"],_sfc_main$m=vue.defineComponent({name:"EcanButton",components:{AButton:antDesignVue.Button},props:{...buttonComponentProps},setup(c){const u=usePickComponentStyle(c),h=useEmitEvent(c)("click",()=>{const g=vue.unref(p);g&&c.target==="event"&&window.parent.postMessage({type:"openPage",url:g},"*")}),d=vue.computed(()=>{const g={};return c.mode!=="primary"&&(g.backgroundColor=c.buttonBackgroundColor||"transparent",g.color=c.tooltipTextStyleColor,g.borderColor=c.borderColor||"transparent"),{height:c.height,...g}}),v=vue.computed(()=>hn(c.text)),p=vue.computed(()=>hn(c.href)||null),m=vue.computed(()=>{const g=c.target;if(!(g==="event"||vue.unref(p)==null))return{self:"_self",blank:"_blank"}[g]});return{style:u,click:h,myText:v,myHref:p,myTarget:m,buttonStyle:d}}}),Button_vue_vue_type_style_index_0_lang="";function _sfc_render$o(c,u,f,h,d,v){const p=vue.resolveComponent("a-button");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-button",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{block:"",onClick:c.click,type:c.mode,danger:c.danger,shape:c.shape,href:c.myHref,target:c.myTarget,style:vue.normalizeStyle(c.buttonStyle),class:vue.normalizeClass(c.tooltipTextStyleColor?"custom-color":"")},{default:vue.withCtx(()=>[vue.createElementVNode("span",{style:vue.normalizeStyle({fontSize:c.fontSize,fontWeight:c.fontWeight})},vue.toDisplayString(c.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Button=_export_sfc$1(_sfc_main$m,[["render",_sfc_render$o]]),EcanButton=withInstall$1(Button),checkboxProps={...props,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}],graphicConfig:{}},checkboxComponentProps=transformToComponentProps(checkboxProps),checkboxEvents=["checkboxChange"],_sfc_main$l=vue.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:antDesignVue.CheckboxGroup},props:{...checkboxComponentProps},setup(c,{expose:u}){const f=usePickComponentStyle(c),h=vue.ref([]),d=vue.ref([]),v=Bn=>{const w=c.value;let J=[];Bn.forEach(gn=>{gn.checked&&J.push(gn.value)}),typeof w=="string"&&w!==""?J=J.concat(w.split(",")):Array.isArray(w)&&(J=J.concat(w)),h.value=Bn,d.value=J};vue.watch(()=>[c.data,c.value],([Bn])=>{v(Bn)},{immediate:!0,deep:!0});const p=useRequestData(c),m=async()=>{var J,gn;if(c.dataType!=="request")return;const Bn=await p(),w=((gn=(J=Bn==null?void 0:Bn.data)==null?void 0:J.data)==null?void 0:gn.rows)||[];v(w)},{getGlobalModel:g,setGlobalModel:y}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Bn=>{},setGlobalModel:(Bn,w)=>{}});y(c.id,{type:c.type,value:d});const Pn=useEmitEvent(c)("checkboxChange",()=>{const Bn=g(c.id);y(c.id,{...Bn,RECORD:d})}),b=Bn=>{var J;const{data:w}=(Bn==null?void 0:Bn.data)||{};if(w){const Rn=(((J=Bn==null?void 0:Bn.data)==null?void 0:J.data)??[]).map(zn=>({label:zn.label,value:zn.value}));v(Rn)}else v([])},vn=useIndicatorData(c,b),_=async()=>{try{const Bn=await vn();b(Bn)}catch(Bn){console.error(Bn)}},re=()=>{switch(c.dataType){case"indicator":_();break;case"request":m();break}},{setRequest:Fn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Bn,sortNum:w,requestFn:J})=>{}});return typeof Fn=="function"&&Fn({id:c.id,requestFn:re,sortNum:c.requestSort}),u({refreshData:re}),{myOption:h,style:f,myValue:d,checkboxChange:Pn}}}),Checkbox_vue_vue_type_style_index_0_lang="";function _sfc_render$n(c,u,f,h,d,v){const p=vue.resolveComponent("a-checkbox-group");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-checkbox",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{options:c.myOption,value:c.myValue,"onUpdate:value":u[0]||(u[0]=m=>c.myValue=m),onChange:c.checkboxChange},null,8,["options","value","onChange"])],4)}const Checkbox=_export_sfc$1(_sfc_main$l,[["render",_sfc_render$n]]),EcanCheckbox=withInstall$1(Checkbox),selectProps={...props,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},selectComponentProps=transformToComponentProps(selectProps),selectEvents=["selectChange","refreshData","clearValue"],_sfc_main$k=vue.defineComponent({name:"EcanSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,AInput:antDesignVue.Input,DownOutlined:DownOutlined$1},props:{...selectComponentProps},setup(c,{expose:u}){var cr,hr,dr;const f=vue.inject("isMobile",!1),h=vue.ref(!1),d={text:((cr=c.dataFieldNames)==null?void 0:cr.label)||"label",value:((hr=c.dataFieldNames)==null?void 0:hr.value)||"value"},v=vue.ref([]),p=usePickComponentStyle(c),m=()=>document.getElementById("ProviderConfig")||document.body,g=vue.ref(c.data||[]),y=vue.ref(),x=vue.computed({get:()=>{var fr;const{mode:lr}=c;return(fr=vue.unref(g))!=null&&fr.length?y.value:lr==="multiple"||lr==="tags"||lr==="combobox"?[]:""},set:lr=>{y.value=lr}}),Pn=vue.computed(()=>{const{value:lr,label:fr}=c.dataFieldNames,mr=[];if(Array.isArray(vue.unref(x)))for(const pr of vue.unref(x)){const gr=vue.unref(g).find(ur=>ur[lr]===pr);gr&&mr.push(gr[fr])}else{const pr=vue.unref(g).find(gr=>gr[lr]===vue.unref(x));pr&&mr.push(pr[fr])}return mr.join(",")}),{getGlobalModel:b,setGlobalModel:vn,getRecordValueByKeyName:_}=vue.inject(GLOBAL_MODEL,{getGlobalModel:lr=>{},setGlobalModel:(lr,fr)=>{},getRecordValueByKeyName:lr=>{}}),re=c.dataFieldNames;vue.watch(()=>[c.value,c.mode,c.selectFirstOption,c.valueType,g.value],()=>{const{mode:lr,selectFirstOption:fr,value:mr}=c,pr=_(mr),gr=re.value;if(lr==="multiple"||lr==="tags"||lr==="combobox"){if(pr)y.value=pr.split(",");else if(fr){const ur=vue.unref(g)[0];y.value=ur?[ur[gr]]:[]}}else if(pr)y.value=pr;else if(fr){const ur=vue.unref(g)[0];y.value=ur?ur[gr]:""}},{immediate:!0});const Fn=(lr,fr)=>{const mr=re.label,pr=re.value;let gr;const ur=fr[mr],vr=fr[pr];return ur!=null?gr=ur:vr!=null&&(gr=vr),(gr==null?void 0:gr.toLowerCase().indexOf(lr==null?void 0:lr.toLowerCase()))>=0},Bn=lr=>{const{label:fr,value:mr,options:pr}=c.dataFieldNames;if(pr&&Array.isArray(lr))if(lr.some(gr=>pr in gr)){const gr={},ur=[];lr.forEach(vr=>{gr[vr[pr]]||(gr[vr[pr]]=[]),gr[vr[pr]].push({[fr]:vr[fr],[mr]:vr[mr]})});for(const vr in gr)ur.push({[fr]:vr,[pr]:gr[vr]});return ur}else return lr;else{if(!pr&&Array.isArray(lr))return lr=lr.map(gr=>({label:gr[fr],value:gr[mr]})),lr;if(!pr&&!Array.isArray(lr))return lr}},w=vue.ref(!1),J=lr=>{var fr,mr;if(g.value=Bn(((mr=(fr=lr==null?void 0:lr.data)==null?void 0:fr.data)==null?void 0:mr.rows)||[]),c.selectFirstOption){let pr=vue.unref(g)[0];if(re.options){const gr=pr[re.options];gr&&gr.length&&(pr=gr[0])}y.value=pr[re.value]}},gn=useRequestData(c),Rn=async()=>{if(c.dataType==="request"){w.value=!0;try{const lr=await gn();J(lr)}catch(lr){console.error(lr)}finally{w.value=!1}}},{setLoadedData:zn,loadedData:Wn}=vue.inject(LOADED_DATA,{setLoadedData:(lr,fr)=>{},loadedData:{}}),Un=vue.computed(()=>{let lr=y.value;if(c.valueType==="label"&&vue.unref(y)&&vue.unref(g)){const fr=re.label,mr=re.value;if(c.mode==="multiple")lr=vue.unref(g).filter(pr=>vue.unref(y).includes(pr[mr])).map(pr=>pr[fr]);else{const pr=vue.unref(g).find(gr=>vue.unref(y)===gr[mr]);pr&&(lr=pr[fr])}}return lr}),Qn=vue.ref([]),Jn=vue.computed(()=>{const lr={};if(c.mode!=="multiple"){const fr=vue.unref(Qn).find(mr=>mr.value===vue.unref(y));fr&&(lr.itemCodes=fr.item_codes)}return lr}),tr=vue.computed(()=>{const{value:lr,label:fr}=re,mr=vue.unref(g).find(pr=>pr[lr]===vue.unref(x));return mr?{label:mr[fr],value:mr[lr]}:{}}),{pageId:Xn}=vue.inject("templateOperate",{pageId:""})||{};vn(c.id,{type:c.type,value:Un,label:(dr=vue.unref(tr))==null?void 0:dr.label,...vue.unref(Jn),recordData:vue.unref(tr)});const ar=useEmitEvent(c),sr=ar("selectChange",()=>{const lr=c.id,fr=b(lr);vn(lr,{...fr,...vue.unref(Jn),RECORD:Un,recordData:vue.unref(tr)});const mr=getNewValueFromUrlParams(Xn,c.keyName,"value");mr&&(x.value=mr)}),nr=ar("clearValue",()=>{["multiple","tags","combobox"].includes(c.mode)?y.value=[]:y.value=null;const lr=c.id;vn(lr,{RECORD:"",recordData:vue.unref(tr)})}),Hn=ar("refreshData",(lr=[])=>{var mr,pr;const fr=Bn(lr);if((pr=(mr=c==null?void 0:c.graphicConfig)==null?void 0:mr.formFields)!=null&&pr.hasAllOption){const gr=re.label,ur=re.value;fr.unshift({[gr]:"全部",[ur]:""})}if(g.value=fr,c.selectFirstOption){let gr=vue.unref(g)[0];if(re.options){const ur=gr[re.options];ur&&ur.length&&(gr=ur[0])}y.value=gr[re.value]}vn(c.id,{type:c.type,value:Un,...vue.unref(Jn),recordData:vue.unref(tr)})}),Yn=lr=>{var gr;const{data:fr}=(lr==null?void 0:lr.data)||{},mr=re.label,pr=re.value;if(fr){const{rows:ur=[]}=((gr=lr==null?void 0:lr.data)==null?void 0:gr.data)||{};Qn.value=ur;const vr=ur.map(Cr=>({[mr]:Cr.label,[pr]:Cr.value})),{id:yr}=c,xr=b(yr);vn(yr,{...xr,...vue.unref(Jn)}),zn(yr,!0),Hn(vr)}else Hn([])},Vn=useIndicatorData(c,Yn),Gn=async()=>{try{w.value=!0;const lr=await Vn();Yn(lr)}catch(lr){console.error(lr)}finally{w.value=!1}},Zn=vue.computed(()=>{var lr,fr;return(fr=getConditions(((lr=c==null?void 0:c.graphicConfig)==null?void 0:lr.controlList)||[]))==null?void 0:fr.find(mr=>mr.conditionKey==="parentCode")}),qn=vue.ref(!1);vue.watch(Wn,lr=>{!vue.unref(qn)&&vue.unref(Zn)&&lr[vue.unref(Zn).id]&&(qn.value=!0,er())},{deep:!0});const er=()=>{switch(c.dataType){case"indicator":{if(vue.unref(Zn)){if(vue.unref(Wn)[vue.unref(Zn).id]){const{mode:lr}=c;lr==="multiple"||lr==="tags"||lr==="combobox"?x.value=[]:x.value="",Gn()}}else Gn();break}case"request":Rn();break}};useOnEvent(c,{selectChange:sr,refreshData:er,clearValue:nr});const{setRequest:ir}=vue.inject(REQUEST_MODEL,{setRequest:({id:lr,sortNum:fr,requestFn:mr})=>{}});return typeof ir=="function"&&ir({id:c.id,requestFn:er,sortNum:c.requestSort}),u({refreshData:er}),{style:p,getPopupContainer:m,myValue:y,selectChange:sr,options:g,filterOption:Fn,loading:w,resultValue:x,isMobile:f,customFieldName:d,pickVisible:h,onConfirmPicker:()=>{x.value=vue.unref(v)[0],sr(),h.value=!1},mobileValue:Pn,openPicker:()=>{var lr;!Array.isArray(vue.unref(x))&&((lr=vue.unref(g))!=null&&lr.length)&&c.dataFieldNames.value&&(v.value=vue.unref(x)?[vue.unref(x)]:[vue.unref(g)[0][c.dataFieldNames.value]]),h.value=!0},mobileSelectValue:v}}}),Select_vue_vue_type_style_index_0_scoped_b602eb73_lang="",Select_vue_vue_type_style_index_1_lang="";function _sfc_render$m(c,u,f,h,d,v){const p=vue.resolveComponent("down-outlined"),m=vue.resolveComponent("a-input"),g=vue.resolveComponent("van-picker"),y=vue.resolveComponent("van-popup"),x=vue.resolveComponent("a-select-option"),Pn=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-select",style:vue.normalizeStyle(c.style)},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(m,{value:c.mobileValue,placeholder:"请选择日期",readonly:"",onClick:c.openPicker},{suffix:vue.withCtx(()=>[vue.createVNode(p)]),_:1},8,["value","onClick"]),vue.createVNode(y,{show:c.pickVisible,"onUpdate:show":u[1]||(u[1]=b=>c.pickVisible=b),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[c.pickVisible?(vue.openBlock(),vue.createBlock(g,{key:0,modelValue:c.mobileSelectValue,"onUpdate:modelValue":u[0]||(u[0]=b=>c.mobileSelectValue=b),"columns-field-names":c.customFieldName,columns:c.options,"cancel-button-text":" ",onConfirm:c.onConfirmPicker},null,8,["modelValue","columns-field-names","columns","onConfirm"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(Pn,{key:1,class:"select",value:c.resultValue,"onUpdate:value":u[2]||(u[2]=b=>c.resultValue=b),placeholder:c.placeholder,showSearch:"",allowClear:c.isAllowClear,mode:c.mode,getPopupContainer:c.getPopupContainer,maxTagCount:c.maxTagCount,filterOption:c.filterOption,loading:c.loading,autoClearSearchValue:c.autoClearSearchValue,onChange:c.selectChange,style:vue.normalizeStyle({fontSize:c.optionFontSize})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.options,(b,vn)=>(vue.openBlock(),vue.createBlock(x,{key:vn,value:b.value,style:vue.normalizeStyle({fontSize:c.optionFontSize})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(b.label),1)]),_:2},1032,["value","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"]))],4)}const Select=_export_sfc$1(_sfc_main$k,[["render",_sfc_render$m],["__scopeId","data-v-b602eb73"]]),EcanSelect=withInstall$1(Select),treeSelectProps={...props,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},treeSelectComponentProps=transformToComponentProps(treeSelectProps),treeSelectEvents=["selectChange","refreshData"],_sfc_main$j={name:"EcanTreeSelect",components:{ATreeSelect:antDesignVue.TreeSelect},props:{...treeSelectComponentProps},setup(c){const u=usePickComponentStyle(c),f=vue.ref(c.data),h=(_,re)=>{const Fn=c.dataFieldNames,Bn=Fn.label,w=Fn.value;let J;const gn=re[Bn],Rn=re[w];return gn!=null?J=gn:Rn!=null&&(J=Rn),(J==null?void 0:J.toLowerCase().indexOf(_==null?void 0:_.toLowerCase()))>=0},d=vue.ref();vue.watch(()=>[c.multiple,c.value,c.treeCheckable,c.selectFirstOption],()=>{const{multiple:_,value:re,selectFirstOption:Fn}=c;_?re?d.value=re.split(","):Fn&&(d.value=[vue.unref(f)[0]]):re?d.value=re:Fn&&(d.value=vue.unref(f)[0])},{immediate:!0});const v=vue.ref(!1),p=_=>{var Fn,Bn;f.value=((Bn=(Fn=_==null?void 0:_.data)==null?void 0:Fn.data)==null?void 0:Bn.rows)||[];const re=vue.unref(f)[0];c.value===""&&re!=null&&(d.value=re[c.dataFieldNames.value])},m=useRequestData(c),g=async()=>{if(c.dataType==="request"){v.value=!0;try{const _=await m();p(_)}catch(_){console.error(_)}finally{v.value=!1}}},{getGlobalModel:y,setGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:_=>{},setGlobalModel:(_,re)=>{}});x(c.id,{type:c.type,value:d});const b=useEmitEvent(c)("selectChange",()=>{const _=c.id,re=y(_);x(_,{...re,RECORD:d})});useOnEvent(c,{selectChange:b,refreshData:g});const{setRequest:vn}=vue.inject(REQUEST_MODEL,{setRequest:({id:_,sortNum:re,requestFn:Fn})=>{}});return vn({id:c.id,requestFn:g,sortNum:c.requestSort}),{style:u,treeData:f,filterTreeNode:h,myValue:d,loading:v,selectChange:b}}},TreeSelect_vue_vue_type_style_index_0_scoped_09e7f364_lang="",TreeSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$l(c,u,f,h,d,v){const p=vue.resolveComponent("a-tree-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tree-select",style:vue.normalizeStyle(h.style)},[vue.createVNode(p,{class:"tree-select",value:h.myValue,"onUpdate:value":u[0]||(u[0]=m=>h.myValue=m),allowClear:"",showSearch:"",loading:h.loading,fieldNames:c.dataFieldNames,treeData:h.treeData,maxTagCount:c.maxTagCount,multiple:c.multiple,treeCheckable:c.treeCheckable,filterTreeNode:h.filterTreeNode,placeholder:c.placeholder,onChange:h.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const TreeSelect=_export_sfc$1(_sfc_main$j,[["render",_sfc_render$l],["__scopeId","data-v-09e7f364"]]),EcanTreeSelect=withInstall$1(TreeSelect),radioProps={...props,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:"",data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",tabBackgroundImage:"",activeTabBackgroundImage:"",activeTabColor:"#1890ff",tabColor:"#333",tabFontSize:"14px",tabHorizontalPadding:"0px",tabVerticalPadding:"5px",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:"",selectFirstOption:!1,radioMode:"native"},radioComponentProps=transformToComponentProps(radioProps),radioEvents=["checkboxChange","click"],_sfc_main$i=vue.defineComponent({name:"EcanRadio",components:{ARadioGroup:antDesignVue.RadioGroup,ARadioButton:antDesignVue.RadioButton,ARadio:antDesignVue.Radio},props:{...radioComponentProps},setup(c,{expose:u}){const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),h=usePickComponentStyle(c),d=vue.ref([]),v=vue.ref(""),p=(Rn=[])=>{var Un;const zn=c.value;let Wn=[];typeof zn=="string"&&zn!==""?Wn=Wn.concat(zn.split(",")):Array.isArray(zn)&&(Wn=Wn.concat(zn)),d.value=Rn,c.selectFirstOption?v.value=((Un=Rn[0])==null?void 0:Un.value)||"":v.value=Wn[0]||""};vue.watch(()=>[c.data,c.value,c.selectFirstOption],([Rn])=>{vue.unref(f)==="design"&&p(Rn)},{immediate:!0,deep:!0});const m=useRequestData(c),g=async()=>{var Wn,Un;if(c.dataType!=="request")return;const Rn=await m(),zn=((Un=(Wn=Rn==null?void 0:Rn.data)==null?void 0:Wn.data)==null?void 0:Un.rows)||[];p(zn)},{getGlobalModel:y,setGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Rn=>{},setGlobalModel:(Rn,zn)=>{}});x(c.id,{type:c.type,value:v});const Pn=useEmitEvent(c),b=()=>{const Rn=vue.unref(d).find(zn=>zn.value===vue.unref(v))||{};Pn("checkboxChange",()=>{const zn=y(c.id);x(c.id,{...zn,RECORD:v})},Rn)()},vn=Rn=>{v.value=Rn,Pn("click",()=>{const zn=y(c.id);x(c.id,{...zn,RECORD:v})})()};vue.watch(v,()=>{b()});const _=Rn=>{var Wn;const{data:zn}=(Rn==null?void 0:Rn.data)||{};if(zn){const Qn=(((Wn=Rn==null?void 0:Rn.data)==null?void 0:Wn.data)??[]).map(Jn=>({label:Jn.label,value:Jn.value}));p(Qn)}else p([])},re=useIndicatorData(c,_),Fn=async()=>{try{const Rn=await re();_(Rn)}catch(Rn){console.error(Rn)}},Bn=()=>{switch(c.dataType){case"indicator":Fn();break;case"request":g();break}},{setRequest:w}=vue.inject(REQUEST_MODEL,{setRequest:({id:Rn,sortNum:zn,requestFn:Wn})=>{}});typeof w=="function"&&w({id:c.id,requestFn:Bn,sortNum:c.requestSort});const J=Rn=>{v.value=Rn.value},gn=vue.computed(()=>c.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px",fontSize:c.tabFontSize}:{fontSize:c.tabFontSize});return vue.onMounted(()=>{p(c.data)}),u({refreshData:Bn}),{myOption:d,style:h,myValue:v,radioStyle:gn,onClickButton:vn,useImagePath,tabChange:J}}}),Radio_vue_vue_type_style_index_0_lang="",Radio_vue_vue_type_style_index_1_scoped_a19c4d3e_lang="",_hoisted_1$9=["onClick"];function _sfc_render$k(c,u,f,h,d,v){const p=vue.resolveComponent("a-radio"),m=vue.resolveComponent("a-radio-button"),g=vue.resolveComponent("a-radio-group");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-radio",c.optionType]),style:vue.normalizeStyle(c.style)},[c.radioMode==="custom"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"tabs-header",style:vue.normalizeStyle({fontSize:c.tabFontSize,flexDirection:c.tabFlexDirection,alignItems:c.tabTextAlign})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myOption,(y,x)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`${c.tabVerticalPadding} ${c.tabHorizontalPadding}`,color:c.myValue===y.value?c.activeTabColor:c.tabColor,backgroundImage:c.myValue===y.value?c.useImagePath(c.activeTabBackgroundImage,!0):c.useImagePath(c.tabBackgroundImage,!0),marginRight:c.tabFlexDirection==="row"?c.tabBarGutter:"0",marginBottom:c.tabFlexDirection==="column"?c.tabBarGutter:"0"}),key:x,onClick:vue.withModifiers(Pn=>c.tabChange(y),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!c.activeTabBackgroundImage&&!c.tabBackgroundImage?`1px solid ${c.myValue===y.value?c.activeTabColor:"transparent"}`:""})},vue.toDisplayString(y.label),5)],12,_hoisted_1$9))),128))],4)):c.radioMode==="native"?(vue.openBlock(),vue.createBlock(g,{key:1,value:c.myValue,"onUpdate:value":u[0]||(u[0]=y=>c.myValue=y)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myOption,y=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.value},[c.optionType==="default"?(vue.openBlock(),vue.createBlock(p,{key:0,value:y.value,style:vue.normalizeStyle(c.radioStyle)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(y.label),1)]),_:2},1032,["value","style"])):c.optionType==="button"?(vue.openBlock(),vue.createBlock(m,{key:1,value:y.value,style:vue.normalizeStyle({fontSize:c.tabFontSize}),onClick:x=>c.onClickButton(y.value)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(y.label),1)]),_:2},1032,["value","style","onClick"])):vue.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"])):vue.createCommentVNode("",!0)],6)}const Radio=_export_sfc$1(_sfc_main$i,[["render",_sfc_render$k],["__scopeId","data-v-a19c4d3e"]]),EcanRadio=withInstall$1(Radio),pieProps={...props,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",labelWidth:100,labelOverflow:"none",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",tooltipPosition:"",graphicType:"ecanPie",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,legendType:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},pieComponentProps=transformToComponentProps(pieProps),pieEvents=["click","refreshData","resetRecord"],useDownloadFile=async c=>{var g;const u=await request.post(c,{},{responseType:"blob"}),{data:f,headers:h}=u,d=h["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),v=new Blob([f]),p=document.createElement("a"),m=window.URL.createObjectURL(v);p.href=m,p.download=decodeURI(d),p.style.display="none",document.body.appendChild(p),p.click(),(g=p.parentNode)==null||g.removeChild(p),window.URL.revokeObjectURL(m)},modalProps={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default",closeBtnColor:"#333",isShowCloseBtn:!0,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)",allComponentList:[],requestList:[],parentIframeId:"",banScale:!1},modalComponentProps=transformToComponentProps(modalProps),modalEvents=["showModal","hideModal"],containerType=["ecanBorder","ecanTabs","ecanCirculate"];function handleScrollCombinations(c){const{containerMap:u={},sourceList:f=[]}=c,h=lodashEs.cloneDeep(c.componentList),d=h.filter(v=>v.type==="ecanTabs"&&v.isAutoScroll);if(d!=null&&d.length)for(const v of d){const p=u[v.id],m=[];if((!mn(v,"componentList")||!(v!=null&&v.componentList))&&(v.componentList=[]),p){let g=0;for(const y in p){const x=p[y],Pn=[];if(x!=null&&x.length)for(const b of x){let vn=h.find(_=>_.id===b);vn||(vn=f.find(_=>_.id===b)),vn&&(Pn.push(vn),containerType.includes(vn.type)&&Pn.push(...getComponentByContainer(vn.id,u,f)))}for(const b of Pn)mn(b,"scale")?parseFloat(y)>0&&(b.left=parseFloat(b.left)+g+"px"):(b.left=parseFloat(b.sourceLeft||b.left)-parseFloat(v.sourceLeft||v.left)+g+"px",b.top=parseFloat(b.sourceTop||b.top)-parseFloat(v.sourceTop||v.top)+"px"),m.includes(b.id)||m.push(b.id);v.componentList.push(...Pn),g=getMaxLeftInComponents(Pn)}}for(const g of m){const y=h.findIndex(x=>x.id===g);y!==-1&&h.splice(y,1)}}return h}function compatibleMobileList(c){var v,p;const{combinationMap:u={},sourceList:f=[]}=c,h=c.containerMap,d=lodashEs.cloneDeep([...c.componentList,...getTabsSomeComponentList(h,f)]);if(handleContainerMap(h,d),(v=Object.keys(h))!=null&&v.length||(p=Object.keys(u))!=null&&p.length){for(const b in h){const vn=d.find(_=>_.id===b);if(vn){mn(vn,"parentId")||(vn.parentId="",vn.sourceLeft=vn.left,vn.sourceTop=vn.top);for(const _ in h[b])if(h[b][_])for(const re of h[b][_]){const Fn=d.find(Bn=>Bn.id===re);Fn&&(Fn.parentId=b,Fn.sourceLeft=Fn.left,Fn.sourceTop=Fn.top,Fn.left=parseFloat(Fn.left)-parseFloat(vn.sourceLeft||vn.left)+"px",Fn.top=parseFloat(Fn.top)-parseFloat(vn.sourceTop||vn.top)+"px")}}}const m=Array.from(new Set(d.filter(b=>(!mn(b,"parentId")||b.parentId==="")&&b.combinationId).map(b=>b.combinationId))),g=getCombinationList(m,{...c,componentList:d});g!=null&&g.length&&d.unshift(...g);const y=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],x=d.filter(b=>y.includes(b.type)&&!mn(b,"parentId")),Pn=[];for(const b of x)if(b){const vn=b.id+"_vir";Pn.push({id:vn,keyName:b.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:b.width,height:b.height,left:b.left,top:b.top,sourceLeft:b.left,sourceTop:b.top}),b.parentId=vn,b.sourceLeft=b.left,b.sourceTop=b.top,b.left=0,b.top=0}Pn!=null&&Pn.length&&d.unshift(...Pn);for(const b of d){const vn=document.body.clientWidth;if(b.parentId===""&&containerType.includes(b.type))b.sourceWidth=parseFloat(b.width),b.height=(vn/(b.sourceWidth/parseFloat(b.height))).toFixed(2)+"px",b.width="100%",b.position="relative",b.top="auto",b.left="auto";else{const _=d.find(re=>re.id===b.parentId);if((_==null?void 0:_.parentId)===""){const re=_.sourceWidth||parseFloat(_.width),Fn=vn/re;b.scale=Fn,b.top=parseFloat(b.top)*Fn-parseFloat(b.height)*(1-Fn)/2+"px",b.left=parseFloat(b.left)*Fn-parseFloat(b.width)*(1-Fn)/2+"px"}}b.type==="ecanModal"&&(b.parentId="",b.fullModal=!0)}return sortList(d)}return d}function handleContainerMap(c,u){const f=lodashEs.cloneDeep(c),h=u.filter(d=>d.type==="ecanTabs"&&d.isAutoScroll);if(h!=null&&h.length)for(const d of h){const v=f[d.id];for(const p in v)for(const m of v[p]){const g=u.find(y=>y.id===m);if(g&&containerType.includes(g.type)){const y=getComponentByContainer(g.id,f,u);for(const x of y)c[d.id][p].push(x.id),containerType.includes(x.type)&&delete c[x.id];delete c[g.id]}}}}function getTabsSomeComponentList(c,u){const f=[],h=u.filter(d=>d.type==="ecanTabs"&&d.isAutoScroll);if(h!=null&&h.length)for(const d of h){const v=c[d.id];for(const p in v)if(parseFloat(p)>0)for(const m of v[p]){const g=u.find(y=>y.id===m);g&&(f.push(g),containerType.includes(g.type)&&f.push(...getComponentByContainer(g.id,c,u)))}}return f}function getComponentByContainer(c,u,f){const h=[],d=u[c];for(const v in d)for(const p of d[v]){const m=f.find(g=>g.id===p);m&&(h.push(m),containerType.includes(m.type)&&h.push(...getComponentByContainer(m.id,u,f)))}return h}function getCombinationList(c,u,f){const{combinationMap:h={},componentList:d=[]}=u,v=[];for(const p of c){const m=h[p];if(m!=null&&m.length){const g=d.filter(y=>m.includes(y.id));if(g!=null&&g.length){const y=getCombinateRect(g);if(y){v.push({...y,id:p,keyName:p,parentId:f||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:y.left,sourceTop:y.top});for(const x of g)x&&(x.parentId=p,x.sourceLeft=x.left,x.sourceTop=x.top,x.left=parseFloat(x.left)-parseFloat(y.left)+"px",x.top=parseFloat(x.top)-parseFloat(y.top)+"px")}}}}return v}function sortList(c){const f=c.filter(h=>h.parentId==="");if(f!=null&&f.length){const h=lodashEs.cloneDeep(f).map(d=>({...d,sourceTop:parseFloat(d.sourceTop),sourceLeft:parseFloat(d.sourceLeft)}));for(let d=0;d<h.length-1;d++)for(let v=0;v<h.length-d-1;v++){let p=!1;if((h[v].sourceTop-h[v+1].sourceTop>50||Math.abs(h[v+1].sourceTop-h[v].sourceTop)<=50&&h[v].sourceLeft>h[v+1].sourceLeft)&&(p=!0),p){const m=h[v];h[v]=h[v+1],h[v+1]=m}}for(const d of h){const v=c.findIndex(p=>p.id===d.id);v!==-1&&c.splice(v,1)}return[...h,...c]}return c}function getCombinateRect(c){const u=c.sort((v,p)=>parseFloat(v.top)-parseFloat(p.top))[0],f=c.sort((v,p)=>parseFloat(v.left)-parseFloat(p.left))[0],h=c.map(v=>({...v,computedTop:parseFloat(v.top)+parseFloat(v.height)})).sort((v,p)=>p.computedTop-v.computedTop)[0],d=c.map(v=>({...v,computedLeft:parseFloat(v.left)+parseFloat(v.width)})).sort((v,p)=>p.computedLeft-v.computedLeft)[0];return u&&f&&h&&d?{left:f.left,top:u.top,width:d.computedLeft-parseFloat(f.left)+"px",height:h.computedTop-parseFloat(u.top)+"px"}:null}function getMaxLeftInComponents(c){const u=c.map(f=>parseFloat(f.left)+parseFloat(f.width)).sort((f,h)=>h-f)[0];return u||0}function moveToComponentList(c,u,f){const h=c[f],d=[];if(h)for(const v in h){const p=h[v];for(const m of p){const g=u.find(y=>y.id===m);g&&(d.push(g),containerType.includes(g.type)&&d.push(...getComponentByContainer(g.id,c,u)))}}return d}const _sfc_main$h=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(c,{emit:u}){u("ready",c.component.id)}});function _sfc_render$j(c,u,f,h,d,v){return c.component.parentId?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#container_"+c.component.parentId},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.mergeProps({style:{scale:c.component.scale}},c.component),null,16,["style"]))],8,["to"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.normalizeProps(vue.mergeProps({key:1},c.component)),null,16))}const Render=_export_sfc$1(_sfc_main$h,[["render",_sfc_render$j]]),EcanRender=withInstall$1(Render),_sfc_main$g=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(c,{emit:u}){const f=vue.ref([]),h=vue.inject("isMobile",!1),d=vue.computed(()=>c.fullModal),v=vue.inject("getContainerMap",()=>{}),p=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:m,interactiveData:g,setRequestData:y}=vue.inject(GLOBAL_MODEL,{setRequestData:(ur,vr)=>{},clearInteractiveData:()=>{},interactiveData:null}),x=()=>document.getElementById("ProviderConfig")||document.body,Pn=vue.computed(()=>{const ur=c.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[ur]}}),b=c.fullModal?"1920px":c.width,vn=c.fullModal?"1080px":c.height,_=c.originalWidth,re=c.originalHeight,Fn=vue.ref("80%"),Bn=vue.ref(0),w=vue.ref(),J=vue.ref(0),gn=vue.ref({}),Rn=usePickComponentStyle(c),zn=vue.ref({}),Wn=vue.ref(!1),Un=vue.ref();let Qn;const Jn=()=>{w.value=parseFloat(b)/parseFloat(_);const ur=parseFloat(vn)/parseFloat(re),vr=document.body.offsetWidth,yr=document.body.offsetHeight;if(Bn.value=vr*vue.unref(w),J.value=yr*ur,Fn.value=`${vue.unref(w)*100}%`,gn.value={width:`${vue.unref(Bn)}px`,height:`${vue.unref(J)}px`,border:`${c.borderWidth} solid ${c.borderColor}`,borderRadius:c.borderRadius+"px",boxShadow:c.boxShadow},zn.value={...vue.unref(Rn),backgroundImage:useImagePath(c.backgroundImage,!0)},h)zn.value={...zn.value,width:"100%",height:"100%"};else{const xr={...zn.value,width:b,height:vn};c.banScale&&vue.unref(d)?(xr.width="100%",xr.height="100%"):xr.transform=`scale(${vue.unref(Bn)/parseFloat(b)},${vue.unref(J)/parseFloat(vn)})`,zn.value=xr}},tr=lodashEs.debounce(()=>{Jn()},100),Xn=()=>{const ur=window.MutationObserver;Qn=new ur(tr),Qn.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},ar=()=>{Qn&&(Qn.disconnect(),Qn.takeRecords(),Qn=null)},sr=vue.ref(!1),{touchRequest:nr}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),Hn=vue.ref(""),Yn=()=>{var yr;const{title:ur}=c,vr=(yr=vue.unref(g))==null?void 0:yr.RECORD;return vr?hn(ur,{textData:vr},{useNewline:!1,useSpace:!1}):ur},Vn=useEmitEvent(c),Gn=ur=>{const{changeIframeStyle:vr}=window.parent;vr&&typeof vr=="function"&&vr({iframeId:c.parentIframeId||"",action:ur})},Zn=()=>{vue.unref(d)&&Gn("open"),h&&(document.documentElement.style.overflow="hidden"),Hn.value=Yn(),sr.value=!0},qn=Vn("hideModal",()=>{vue.unref(d)&&Gn("close"),u("close"),h&&(document.documentElement.style.overflow="hidden auto",f.value=[]),sr.value=!1}),er=()=>{qn()},ir=()=>{qn(),m()},{setModalModel:Kn,pushUseModalIds:or,popUseModalIds:cr}=vue.inject(MODAL_MODEL,{pushUseModalIds:ur=>{},popUseModalIds:()=>{},setModalModel:(ur,vr)=>{}}),hr=vue.computed(()=>{let ur=c.componentList;const vr=lodashEs.cloneDeep(c.componentList),yr=v(),xr=p(),Cr={containerMap:yr,combinationMap:xr};h&&(ur=compatibleMobileList({...Cr,componentList:vr,sourceList:c.allComponentList})),ur=handleScrollCombinations({...Cr,componentList:ur,sourceList:c.allComponentList});const Er=[];for(const _r of ur)if(_r.type==="ecanCirculate"){const kr=moveToComponentList(yr,vue.unref(vr),_r.id);_r.componentList=kr,Er.push(...kr.map(Br=>Br.id))}if(Er!=null&&Er.length)for(const _r of Er){const kr=ur.findIndex(Br=>Br.id===_r);kr!==-1&&ur.splice(kr,1)}return ur}),dr=()=>{const ur=c.id;let vr=[];const yr=c.componentList;Array.isArray(yr)&&(vr=yr.map(xr=>xr.id),Kn(ur,[...new Set(vr)]))},lr=vue.ref(!1),fr={};for(const ur of c.requestList)fr[ur.requestName]=useRequestData(ur);vue.watch(()=>sr.value,async ur=>{if(ur)Wn.value=!1,or(c.id),dr(),await vue.nextTick(()=>{Jn(),window.addEventListener("resize",tr),Xn(),Wn.value=!0}),nr();else{if(y)for(const vr in fr)y(vr,{});cr(),window.removeEventListener("resize",tr),ar()}});const mr=vue.computed(()=>vue.unref(w)>=1),pr=vue.computed(()=>{let ur="ecan-modal";return vue.unref(mr)&&(ur+=" ecan-full-width-modal"),vue.unref(d)&&(ur+=" ecan-full-modal"),ur});return useOnEvent(c,{showModal:Zn,hideModal:qn}),{modalRef:Un,containStyle:gn,contentStyle:zn,getContainer:x,modalStyle:Pn,modalWith:Fn,isFullModal:d,style:Rn,visible:sr,showModal:Zn,onOk:er,onCancel:ir,isFullWidth:mr,wrapClassName:pr,ready:Wn,usedComponentList:hr,isMobile:h,readyIds:f,hasOwn:mn,onComponentReady:ur=>{f.value.push(ur)},formatTitle:Hn,requestLoaded:lr}}}),Modal_vue_vue_type_style_index_0_scoped_d34efac2_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$i(c,u,f,h,d,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("render"),g=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(g,{getContainer:c.getContainer,wrapClassName:c.wrapClassName,centered:"",visible:c.visible,footer:null,width:c.isFullModal||c.isFullWidth?"100%":c.modalWith,destroyOnClose:c.destroyOnClose,style:vue.normalizeStyle(c.modalStyle),closable:!1,onOk:c.onOk,onCancel:c.onCancel,ref:"modalRef",id:"container_"+c.id},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"contain",ref:"containRef",style:vue.normalizeStyle(c.containStyle)},[c.ready?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"content",style:vue.normalizeStyle(c.contentStyle)},[vue.createElementVNode("div",{class:"header-bar",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,padding:"20px 30px",height:c.isMobile?"62px":""})},[c.formatTitle?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ant-modal-title",style:vue.normalizeStyle({fontSize:c.titleFontSize,color:c.titleColor})},vue.toDisplayString(c.formatTitle),5)):vue.createCommentVNode("",!0),c.isShowCloseBtn?(vue.openBlock(),vue.createBlock(p,{key:1,class:"close-icon",style:vue.normalizeStyle({color:c.closeBtnColor}),onClick:c.onCancel},null,8,["style","onClick"])):vue.createCommentVNode("",!0)],4),c.usedComponentList.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(c.isMobile?"mobile-wrap":"")},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.usedComponentList,(y,x)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.id+x},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.hasOwn(y,"parentId")&&(c.readyIds.includes(y.parentId)||y.parentId==="")?(vue.openBlock(),vue.createBlock(m,{key:0,component:y,onReady:c.onComponentReady},null,8,["component","onReady"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:1},y)),null,16))],64))),128))],2)):vue.renderSlot(c.$slots,"default",{key:1},void 0,!0)],4)):vue.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const Modal=_export_sfc$1(_sfc_main$g,[["render",_sfc_render$i],["__scopeId","data-v-d34efac2"]]),EcanModal=withInstall$1(Modal);core$1.use([renderers.CanvasRenderer,charts.PieChart,components$1.TitleComponent,components$1.ToolboxComponent,components$1.TooltipComponent,components$1.LegendComponent]);const _sfc_main$f=vue.defineComponent({name:"EcanPie",props:{...pieComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:h,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.ref(),p=vue.ref(!1),m=usePickComponentStyle(c),g=vue.ref([]),y=vue.ref(),x=vue.ref({}),Pn=vue.computed(()=>{let{data:nr=[]}=vue.unref(g)[0]||{};if(Array.isArray(c.colors)){const Hn=c.isUseLabelColors,Yn=c.colors;nr=nr.map((Vn,Gn)=>({label:Hn?{color:Yn[Gn]}:{},...Vn}))}return{textStyle:{fontFamily:vue.unref(d)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,orient:c.toolboxOrient,feature:{myDownload:{show:c.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:p.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var Hn;p.value=!0,(Hn=y.value)==null||Hn.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},tooltip:{show:c.tooltipShow,trigger:c.tooltipTrigger,formatter:Hn=>{const{marker:Yn,seriesName:Vn,name:Gn,value:Zn,percent:qn,data:er}=Hn||{};return hn(c.tooltipFormatter,{textData:{marker:Yn,name:Gn,value:Zn,percent:qn,a:Vn,b:Gn,c:Zn,d:qn,...er}},{useNewline:!0,useSpace:!0})},textStyle:{color:c.tooltipTextStyleColor},position:c.tooltipPosition||void 0},legend:vue.unref(x),color:c.colors,series:[{data:nr,type:"pie",radius:[c.innerRadius,c.outerRadius],center:[c.centerLeft,c.centerTop],roseType:c.roseType,avoidLabelOverlap:!0,minAngle:c.minAngle,label:{show:c.labelPosition!=="center"&&c.labelShow,color:c.labelColor,fontSize:p.value?ZOOM_FONT_SIZE:c.labelFontSize,position:c.labelPosition,formatter:handleFormatter(c.labelFormatter),width:c.labelWidth,overflow:c.labelOverflow},labelLine:{show:c.labelLineShow,length:c.labelLineLength,length2:c.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),b=()=>{var Hn,Yn;const nr=p.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize);x.value={type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,align:"left",textStyle:{lineHeight:nr+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:nr}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:(Yn=(Hn=vue.unref(g)[0])==null?void 0:Hn.data)==null?void 0:Yn.map(Vn=>({name:Vn.name,icon:c.legendType})),formatter:Vn=>{const{data:Gn}=g.value[0]||{};let Zn=0,qn,er="0%";if(Gn)for(const ir of Gn)ir.name===Vn&&(qn=+ir.value),Zn+=+ir.value;return Zn&&(er=`${(qn/Zn*100).toFixed(2)}%`),getLegendFormat(c.legendFormatter,{name:Vn,value:qn,percent:er})}}},vn=()=>{p.value=!1},{getGlobalModel:_,setGlobalModel:re}=vue.inject(GLOBAL_MODEL,{getGlobalModel:nr=>{},setGlobalModel:(nr,Hn)=>{}}),Fn=(nr=[],Hn)=>{const{dataset:Yn}=En(nr,Hn);g.value=Yn,Yn!=null&&Yn.length||(f.value=!0)},Bn=(nr=[],Hn)=>{var Vn;const Yn=En(nr,Hn);g.value=Yn.dataset,(Vn=Yn.dataset)!=null&&Vn.length||(f.value=!0)};vue.watch(()=>c.data,nr=>{(c.dataType==="static"||vue.unref(h)==="design")&&Fn(nr)},{immediate:!0,deep:!0}),vue.watch(()=>[c.legendShow,c.legendOrient,c.legendTop,c.legendLeft,c.legendTextStyleColor,c.labelFontSize,c.legendItemHeight,c.legendItemWidth,c.legendItemGap,c.legendFormatter,c.legendFontSize,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll,c.legendType],()=>{b()},{immediate:!0});const w=vue.ref(!1),J=useRequestData(c),gn=async()=>{var nr,Hn;if(c.dataType==="request")try{w.value=!0;const Yn=await J();Fn((Hn=(nr=Yn==null?void 0:Yn.data)==null?void 0:nr.data)==null?void 0:Hn.rows,c.valueTypeDataFieldNames)}catch(Yn){console.error(Yn)}finally{w.value=!1}},Rn=useEmitEvent(c);re(c.id,{type:c.type,RECORD:""});const zn=Rn("click",nr=>{const Hn=_(c.id);re(c.id,{...Hn,type:c.type,RECORD:nr==null?void 0:nr.data})}),Wn=nr=>{var Yn;const{data:Hn}=(nr==null?void 0:nr.data)||{};if(Hn){const{columns:Vn=[],rows:Gn=[]}=((Yn=nr==null?void 0:nr.data)==null?void 0:Yn.data)??{};let Zn=[];if(Vn.length>0){const qn=Vn[0],er=Vn[1];Zn=Gn.filter(ir=>!!ir).map(ir=>({name:ir[qn],value:isNaN(ir[er])?0:ir[er]||0}))}Bn(Zn)}},Un=useIndicatorData(c,nr=>{c.isViewRedrawing&&v.value.clear(),Wn(nr)}),Qn=async()=>{try{w.value=!0;const nr=await Un();Wn(nr)}catch(nr){console.error(nr)}finally{w.value=!1}},{loadedData:Jn}=vue.inject(LOADED_DATA,{loadedData:{}}),tr=vue.ref(!1);vue.watch(Jn,nr=>{if(c.dataType==="indicator"){const Hn=getFixedValueDatas(c.graphicConfig);Hn!=null&&Hn.length&&(!vue.unref(tr)&&canRequestIndicator(c.graphicConfig,nr)?(tr.value=!0,Xn()):canRequestIndicator(c.graphicConfig,nr)||(tr.value=!1))}},{deep:!0});const Xn=()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(Jn))&&Qn();break;case"request":gn();break}};useOnEvent(c,{resetRecord:()=>{const nr=c.id,Hn=_(nr);re(nr,{...Hn,RECORD:""})},refreshData:Xn,click:zn}),u({refreshData:Xn});const{setRequest:sr}=vue.inject(REQUEST_MODEL,{setRequest:nr=>{}});return typeof sr=="function"&&sr({id:c.id,requestFn:Xn,sortNum:c.requestSort}),{option:Pn,style:m,click:zn,onClose:vn,loading:w,ecanModal:y,echartRef:v,emptyData:f}}}),Pie_vue_vue_type_style_index_0_lang="",Pie_vue_vue_type_style_index_1_scoped_387baab7_lang="";function _sfc_render$h(c,u,f,h,d,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,{key:1,option:c.option,ref:"echartRef",autoresize:"",onClick:c.click},null,8,["option","onClick"]))]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Pie=_export_sfc$1(_sfc_main$f,[["render",_sfc_render$h],["__scopeId","data-v-387baab7"]]),EcanPie=withInstall$1(Pie),lineProps={...props,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},lineComponentProps=transformToComponentProps(lineProps),lineEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent]);const _sfc_main$e=vue.defineComponent({name:"EcanLine",props:{...lineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:h,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.ref(),p=vue.ref(!1),m=usePickComponentStyle(c),g=vue.ref([]),y=vue.ref([]),x=vue.ref(),Pn=vue.computed(()=>p.value?ZOOM_FONT_SIZE:12),b=vue.ref({});let vn;const _=vue.ref([]),re=vue.computed(()=>{const Vn=c.xAxisLabelFormatter,Gn=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:p.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var Zn;p.value=!0,(Zn=x.value)==null||Zn.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:Pn.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:Zn=>{var Kn;const qn=Zn.length;let er="",ir=c.tooltipFormatter;vn=(Kn=Zn[0])==null?void 0:Kn.data,ir===""&&(ir="{marker} {a} {c}");for(let or=0;or<qn;or++){const{marker:cr,seriesName:hr,name:dr,value:lr,data:fr}=Zn[or]||{};if(or===0){let mr=dr;typeof dr=="string"&&dr[0]==="0"&&!isNaN(+dr)&&(mr=(+dr).toString()),er+=`${In(Vn,mr)}<br/>`}er+=hn(ir,{textData:{marker:cr,name:dr,value:lr,a:hr,b:dr,c:lr||0,...fr}},{useNewline:!0,useSpace:!0}),er+="<br/>"}return er},position:c.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:c.isBoundaryGap,data:vue.unref(y).map(Zn=>{let qn={};return Zn&&typeof Zn=="object"?qn={...Zn}:qn={value:Zn},qn}),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(Zn){return typeof Zn=="string"&&Zn[0]==="0"&&!isNaN(+Zn)&&(Zn=(+Zn).toString()),In(Vn,Zn)}},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(Zn){return In(Gn,Zn)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(p.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:p.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(_).map(Zn=>({name:Zn.name,icon:c.legendType})),formatter:Zn=>getLegendFormat(c.legendFormatter,{name:Zn})},series:vue.unref(g)}}),Fn=()=>{p.value=!1},{getGlobalModel:Bn,setGlobalModel:w}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Vn=>{},setGlobalModel:(Vn,Gn)=>{}}),J=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),gn=(Vn=[],Gn=!1)=>{var Kn;let Zn;if(c.dataFieldConfigType==="key"){const or=Gn?c.keyTypeDataFieldNames:null;Zn=Dn(Vn,or)}else if(c.dataFieldConfigType==="value"){const or=Gn?c.valueTypeDataFieldNames:null;Zn=En(Vn,or)}y.value=Zn.dimensions,_.value=Zn.dataset;const qn=Zn.dataset,er=[],ir=qn.length;for(let or=0;or<ir;or++){const cr={};c.shadowColor&&(cr.shadowColor=c.shadowColor,cr.shadowBlur=c.shadowBlur,cr.shadowOffsetY=c.shadowOffsetY,cr.shadowOffsetX=c.shadowOffsetX),er.push({type:"line",...qn[or],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[or]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[or],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...cr},...vue.unref(J)})}g.value=er,(Kn=Zn.dataset)!=null&&Kn.length||(f.value=!0)},Rn=(Vn=[],Gn,Zn=!1)=>{var cr;const er=Dn(Vn,Zn?Gn:null,!0);y.value=er.dimensions,_.value=er.dataset;const ir=er.dataset,Kn=[],or=ir.length;for(let hr=0;hr<or;hr++){const dr={};c.shadowColor&&(dr.shadowColor=c.shadowColor,dr.shadowBlur=c.shadowBlur,dr.shadowOffsetY=c.shadowOffsetY,dr.shadowOffsetX=c.shadowOffsetX),Kn.push({type:"line",...ir[hr],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[hr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[hr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...dr},...vue.unref(J)})}g.value=Kn,(cr=er.dataset)!=null&&cr.length||(f.value=!0)};vue.watch(()=>[c.data,c.symbolSize,c.smooth,c.lineStyleWidth,c.areaStyleOpacity,c.areaGradientShow,c.areaGradientColor,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([Vn])=>{(c.dataType==="static"||vue.unref(h)==="design")&&gn(Vn)},{immediate:!0,deep:!0});const zn=vue.ref(!1),Wn=useRequestData(c),Un=async()=>{var Vn,Gn;if(c.dataType==="request")try{zn.value=!0;const Zn=await Wn();gn((Gn=(Vn=Zn==null?void 0:Zn.data)==null?void 0:Vn.data)==null?void 0:Gn.rows,!0)}catch(Zn){console.error(Zn)}finally{zn.value=!1}},Qn=useEmitEvent(c);w(c.id,{type:c.type,RECORD:""});const Jn=Qn("click",Vn=>{const Gn=Bn(c.id);w(c.id,{...Gn,type:c.type,RECORD:c.tooltipShow?vn:Vn.data})}),tr=Vn=>{v.value.chart.containPixel("grid",[Vn.offsetX,Vn.offsetY])&&Jn()};c.tooltipShow?b.value["zr:click"]=tr:b.value.click=Jn;const Xn=Vn=>{var er;const{columns:Gn=[],rows:Zn=[]}=((er=Vn==null?void 0:Vn.data)==null?void 0:er.data)??{};let qn;Gn.length>0&&(qn={name:Gn[0],types:Gn.slice(1).map(ir=>({label:ir,value:ir}))}),Rn(Zn,qn,!0)},ar=useIndicatorData(c,Vn=>{c.isViewRedrawing&&v.value.clear(),Xn(Vn)}),sr=async()=>{try{zn.value=!0;const Vn=await ar();Xn(Vn)}catch(Vn){console.error(Vn)}finally{zn.value=!1}},nr=()=>{switch(c.dataType){case"indicator":sr();break;case"request":Un();break}};useOnEvent(c,{refreshData:nr,resetRecord:()=>{const Vn=c.id,Gn=Bn(Vn);w(Vn,{...Gn,RECORD:""})},click:Jn});const{setRequest:Yn}=vue.inject(REQUEST_MODEL,{setRequest:Vn=>{}});return typeof Yn=="function"&&Yn({id:c.id,requestFn:nr,sortNum:c.requestSort}),u({refreshData:nr}),{option:re,style:m,click:Jn,loading:zn,onClose:Fn,ecanModal:x,eventObj:b,echartRef:v,emptyData:f}}}),Line_vue_vue_type_style_index_0_lang="",Line_vue_vue_type_style_index_1_scoped_7ff666b7_lang="";function _sfc_render$g(c,u,f,h,d,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$e,[["render",_sfc_render$g],["__scopeId","data-v-7ff666b7"]]),EcanLine=withInstall$1(Line),barProps={...props,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},barComponentProps=transformToComponentProps(barProps),barEvents=["refreshData","click","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.BarChart,components$1.TitleComponent,components$1.LegendComponent,components$1.DatasetComponent,components$1.ToolboxComponent,components$1.MarkLineComponent]);const _sfc_main$d=vue.defineComponent({name:"EcanBar",props:{...barComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:h,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.inject("usedComponentList",[]),p=vue.ref(),m=vue.ref(!1),g=vue.ref(!1),y=vue.ref(null),x=vue.ref([]),Pn=usePickComponentStyle(c),b=vue.ref([]),vn=vue.ref(),_=vue.ref({});let re;const Fn=vue.computed(()=>m.value?ZOOM_FONT_SIZE:12),Bn=vue.computed(()=>{const{gradientShow:hr,gradientColors:dr,gradientOffset:lr,barBorderRadius:fr}=c,mr=vue.unref(b),pr=mr.length,gr=[];for(let ur=0;ur<pr;ur++){const vr={...mr[ur],type:"bar",barWidth:c.barWidth.value+c.barWidth.suffix,showBackground:c.showBarBackground};if(c.isStack&&(vr.stack="stack"),vr.label={show:c.labelShow,fontSize:c.labelFontSize,position:c.labelPosition,color:c.labelColor,width:c.labelWidth,overflow:c.labelOverflow,formatter:yr=>{let xr="",Cr=c.labelFormatter;Cr===""&&(Cr="{c}");const{seriesName:Er,name:_r,value:kr,data:Br}=yr||{};return xr+=hn(Cr,{textData:{name:_r,value:kr,a:Er,b:_r,c:kr||0,...Br}},{useNewline:!0,useSpace:!0}),xr}},vr.itemStyle={},hr&&(vr.itemStyle={color:{x:c.isUseHorizontalAxis?1:0,y:0,x2:0,y2:c.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:c.colors[ur]},{offset:lr,color:dr[ur]},{offset:1,color:dr[ur]}]}}),fr){const yr=fr.split(",");if(yr!=null&&yr.length){const xr=[];for(const Cr of yr){const Er=parseFloat(Cr);isNaN(Er)||xr.push(Er)}vr.itemStyle.borderRadius=xr}}c.isShowMarkLine&&(vr.markLine={data:[{type:c.markLineType}]}),gr.push(vr)}return gr}),w=vue.ref([]),J=vue.ref(!1),gn=vue.computed(()=>{const hr=c.yAxisLabelFormatter,dr=c.xAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(d)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,feature:{myLocation:{show:m.value?!1:c.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){g.value=!0;const lr=p.value.chart.getOption(),{xAxis:fr}=lr||{};fr&&fr.length&&(x.value=fr[0].data)}},myDownload:{show:c.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:m.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var lr;m.value=!0,(lr=vn.value)==null||lr.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",show:c.tooltipShow,formatter:lr=>{var gr;const fr=lr.length;let mr="",pr=c.tooltipFormatter;re=(gr=lr[0])==null?void 0:gr.data,pr===""&&(pr="{marker} {a} {c}");for(let ur=0;ur<fr;ur++){const{marker:vr,seriesName:yr,name:xr,value:Cr,data:Er}=lr[ur]||{};if(ur===0){let _r=xr;typeof xr=="string"&&xr[0]==="0"&&!isNaN(+xr)&&(_r=(+xr).toString()),mr+=`${In(dr,_r)}<br/>`}mr+=hn(pr,{textData:{marker:vr,name:xr,value:Cr,a:yr,b:xr,c:Er.sourceValue||Cr||0,...Er}},{useNewline:!0,useSpace:!0}),mr+="<br/>"}return mr},textStyle:{color:c.tooltipTextStyleColor,fontSize:Fn.value},position:c.tooltipPosition||void 0},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(m.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:m.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(b).map((lr,fr)=>({name:lr.name,itemStyle:{color:c.colors[fr]},icon:c.legendType})),formatter:lr=>getLegendFormat(c.legendFormatter,{name:lr})},xAxis:{type:c.isUseHorizontalAxis?"value":"category",data:c.isUseHorizontalAxis?null:vue.unref(Un),inverse:c.isUseHorizontalAxis?c.xAxisInverse:c.axisInverse,minInterval:c.xAxisMinInterval,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor,type:c.xAxisSplitLineType},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,fontSize:c.xAxisLabelFontSize,formatter(lr){return typeof lr=="string"&&lr[0]==="0"&&!isNaN(+lr)&&(lr=(+lr).toString()),In(dr,lr)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:{type:c.isUseHorizontalAxis?"category":"value",data:c.isUseHorizontalAxis?vue.unref(w):null,inverse:c.isUseHorizontalAxis?c.axisInverse:c.yAxisInverse,minInterval:c.yAxisMinInterval,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,rotate:c.yAxisLabelRotate,width:c.yAxisLabelWidth,overflow:c.yAxisLabelOverflow,formatter(lr){return In(hr,lr)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},series:vue.unref(Bn)}}),Rn=()=>{m.value=!1},zn=(hr=[],dr=!1)=>{var fr,mr,pr;let lr={};if(c.dataFieldConfigType==="key"){const gr=dr?c.keyTypeDataFieldNames:null;lr=Dn(hr,gr)}else if(c.dataFieldConfigType==="value"){const gr=dr?c.valueTypeDataFieldNames:null;lr=En(hr,gr)}if(b.value=lr.dataset,(fr=vue.unref(b))!=null&&fr.length){for(const gr of vue.unref(b))if((mr=gr==null?void 0:gr.data)!=null&&mr.length)for(const ur of gr.data)ur.sourceValue=ur.value,ur.value=parseFloat(ur.value)}w.value=lr.dimensions,(pr=lr.dataset)!=null&&pr.length||(f.value=!0)},Wn=(hr=[],dr,lr=!1)=>{var pr;const mr=Dn(hr,lr?dr:null,!0);c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(v),getGlobalModel:qn},mr),b.value=mr.dataset,w.value=mr.dimensions,(pr=mr.dataset)!=null&&pr.length||(f.value=!0)},Un=vue.computed(()=>vue.unref(w).map(hr=>{let dr={};return hr&&typeof hr=="object"?dr={...hr}:dr={value:hr},dr}));vue.watch(()=>[c.data,c.labelFormatter,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([hr])=>{(c.dataType==="static"||vue.unref(h)==="design")&&zn(hr)},{immediate:!0,deep:!0});const Qn=useRequestData(c),Jn=async()=>{var hr,dr;try{J.value=!0;const lr=await Qn();zn((dr=(hr=lr==null?void 0:lr.data)==null?void 0:hr.data)==null?void 0:dr.rows,!0)}catch(lr){console.error(lr)}finally{J.value=!1}},tr=hr=>{var mr;const{columns:dr=[],rows:lr=[]}=((mr=hr==null?void 0:hr.data)==null?void 0:mr.data)??{};let fr;dr.length>0&&(fr={name:dr[0],types:dr.slice(1).map(pr=>({label:pr,value:pr}))}),Wn(lr,fr,!0)},Xn=useIndicatorData(c,hr=>{c.isViewRedrawing&&p.value.clear(),tr(hr)}),ar=async()=>{try{J.value=!0;const hr=await Xn();tr(hr)}catch(hr){console.error(hr)}finally{J.value=!1}},{loadedData:sr}=vue.inject(LOADED_DATA,{loadedData:{}}),nr=vue.ref(!1);vue.watch(sr,hr=>{if(c.dataType==="indicator"){const dr=getFixedValueDatas(c.graphicConfig);dr!=null&&dr.length&&(!vue.unref(nr)&&canRequestIndicator(c.graphicConfig,hr)?(nr.value=!0,Hn()):canRequestIndicator(c.graphicConfig,hr)||(nr.value=!1))}},{deep:!0});const Hn=()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(sr))&&ar();break;case"request":Jn();break}},Yn=(hr,dr)=>!!vue.unref(x)[dr.value].value.includes(hr),Vn=async()=>{g.value=!1;const hr=p.value.chart.getOption();for(let dr=0;dr<7;dr++)await Gn(hr,dr)},Gn=(hr,dr)=>new Promise(lr=>{setTimeout(()=>{const{series:fr,color:mr,xAxis:pr}=hr,gr=p.value.chart,{splitArea:ur={}}=pr[0]||{};fr.forEach((vr,yr)=>{const xr=vr.data;let Cr="";dr%2?Cr=mr[yr]+"a8":Cr=mr[yr],xr[y.value].itemStyle={color:Cr}}),dr%2?(ur.show=!0,ur.areaStyle.color=vue.unref(x).map((vr,yr)=>yr===y.value?"#ff003b26":"")):ur.show=!1,gr.setOption({series:fr,xAxis:pr}),lr()},200)});u({refreshData:Hn});const Zn=useEmitEvent(c),{getGlobalModel:qn,setGlobalModel:er}=vue.inject(GLOBAL_MODEL,{getGlobalModel:hr=>{},setGlobalModel:(hr,dr)=>{}});er(c.id,{type:c.type,RECORD:""});const ir=Zn("click",hr=>{const dr=qn(c.id);er(c.id,{...dr,type:c.type,RECORD:c.tooltipShow?re:hr.data})}),{setRequest:Kn}=vue.inject(REQUEST_MODEL,{setRequest:hr=>{}});typeof Kn=="function"&&Kn({id:c.id,requestFn:Hn,sortNum:c.requestSort});const or=()=>{const hr=c.id,dr=qn(hr);er(hr,{...dr,RECORD:""})},cr=hr=>{p.value.chart.containPixel("grid",[hr.offsetX,hr.offsetY])&&ir()};return c.tooltipShow?_.value["zr:click"]=cr:_.value.click=ir,useOnEvent(c,{refreshData:Hn,click:ir,resetRecord:or}),{option:gn,style:Pn,refreshData:Hn,click:ir,loading:J,onClose:Rn,ecanModal:vn,echartRef:p,handleLocationOk:Vn,onFilterOption:Yn,locationVisible:g,locationValue:y,locationNames:x,eventObj:_,emptyData:f}}}),Bar_vue_vue_type_style_index_0_lang="",Bar_vue_vue_type_style_index_1_scoped_41271cbc_lang="",_withScopeId$3=c=>(vue.pushScopeId("data-v-41271cbc"),c=c(),vue.popScopeId(),c),_hoisted_1$8={class:"location-wrap"},_hoisted_2$5=_withScopeId$3(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$f(c,u,f,h,d,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal"),y=vue.resolveComponent("a-select-option"),x=vue.resolveComponent("a-select"),Pn=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-bar",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[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,"update-options":{notMerge:!0},autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"]))]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(Pn,{visible:c.locationVisible,"onUpdate:visible":u[1]||(u[1]=b=>c.locationVisible=b),title:"快速定位",onOk:c.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$8,[_hoisted_2$5,vue.createVNode(x,{value:c.locationValue,"onUpdate:value":u[0]||(u[0]=b=>c.locationValue=b),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":c.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.locationNames,(b,vn)=>(vue.openBlock(),vue.createBlock(y,{key:vn,value:vn},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(b.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Bar=_export_sfc$1(_sfc_main$d,[["render",_sfc_render$f],["__scopeId","data-v-41271cbc"]]),EcanBar=withInstall$1(Bar),scatterProps={...props,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,symbolColor:"",xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanScatter",tooltipPosition:"",yAxisName:"",xAxisName:"",showXAxisLineArrow:!1,showYAxisLineArrow:!1,xAxisLineInverse:!1,yAxisLineInverse:!1,yAxisTickShow:!0,xAxisMarkLineValue:[],yAxisMarkLineValue:[],axisMarkArea:[],xAxisMax:null,xAxisMin:null,yAxisMax:null,yAxisMin:null,xAxisLabelShow:!0,crossShow:!0,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},scatterComponentProps=transformToComponentProps(scatterProps),scatterEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.ScatterChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.TooltipComponent,components$1.LegendComponent,components$1.MarkLineComponent,components$1.MarkAreaComponent]);const _sfc_main$c=vue.defineComponent({name:"EcanScatter",props:{...scatterComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:h,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.ref(),p=vue.ref(!1),m=usePickComponentStyle(c),g=vue.ref([]),y=vue.ref(),x=vue.computed(()=>p.value?ZOOM_FONT_SIZE:12),Pn=vue.ref(),b=vue.ref(),vn=vue.ref(),_=vue.ref(),re=vue.inject("componentList",[]),{loadedData:Fn}=vue.inject(LOADED_DATA,{loadedData:{}}),Bn=vue.ref({}),w=vue.computed(()=>{const{xAxisMarkLineValue:Kn=[],yAxisMarkLineValue:or=[]}=c,cr=Kn.concat(or),hr=[];for(const dr of cr){let lr=dr.value;const fr=lr.match(/\{(.+?)\}/g);if(fr!=null&&fr.length){for(const pr of fr)lr=lr.replace(pr,pr.slice(1,-1));const mr=vue.unref(re).find(pr=>pr.keyName===lr);mr!=null&&mr.id&&!hr.find(pr=>pr.keyName===lr)&&hr.push({componentId:mr.id,keyName:mr.keyName})}}return hr});vue.watch(Fn,Kn=>{var or;if((or=vue.unref(w))!=null&&or.length)for(const cr of vue.unref(w)){const{componentId:hr,keyName:dr}=cr;if(Kn[hr]){const lr=Wn(hr);Bn.value[dr]=lr.value}else delete Bn.value[dr]}},{deep:!0});const J=vue.computed(()=>{const{xAxisMarkLineValue:Kn=[],yAxisMarkLineValue:or=[]}=c,cr=Kn.map(lr=>({...lr,x:!0})),hr=or.map(lr=>({...lr,y:!0})),dr=cr.concat(hr);if(dr!=null&&dr.length){const lr=[];for(const fr of dr){const mr={label:{show:!0,formatter:"",rich:{ft:{}}}},pr={};let gr=fr.value;const ur=gr.match(/\{(.+?)\}/g);let vr="";if(mr.label.formatter=fr.label?`{ft|${fr.label}}`:"",(fr.offsetHorizontal||fr.offsetVertical)&&(fr.x?mr.label.rich.ft.padding=[0,fr.offsetHorizontal||0,fr.offsetVertical||0,0]:fr.y&&(mr.label.rich.ft.padding=[fr.offsetVertical||0,0,0,fr.offsetHorizontal||0])),fr.labelColor&&(mr.label.rich.ft.color=fr.labelColor),fr.lineColor&&(pr.color=fr.lineColor),fr.x?vr="xAxis":fr.y&&(vr="yAxis"),ur!=null&&ur.length){for(const yr of ur)gr=gr.replace(yr,yr.slice(1,-1));if(gr){let yr;Bn.value[gr]?yr=vue.unref(Bn)[gr]:yr=pn(gr,{max:fr.x?vue.unref(Pn):fr.y?vue.unref(vn):0,min:fr.x?vue.unref(b):fr.y?vue.unref(_):0}),isNaN(+yr)||lr.push({[vr]:+yr,lineStyle:pr,...mr})}}else isNaN(+fr.value)||lr.push({[vr]:fr.value,lineStyle:pr,...mr})}return{symbol:["none","none"],data:lr}}else return{data:[]}});function gn(Kn,or,cr){switch(or){case"startX":Kn[0].coord[0]=+cr;break;case"startY":Kn[0].coord[1]=+cr;break;case"endX":Kn[1].coord[0]=+cr;break;case"endY":Kn[1].coord[1]=+cr;break}}const Rn=vue.computed(()=>{const{axisMarkArea:Kn=[]}=c;if(Kn!=null&&Kn.length){const or=[];for(const cr of Kn){const hr=[{name:"",coord:[],itemStyle:{color:cr.color}},{coord:[]}];for(const dr in cr)if(dr!=="color"){let lr=cr[dr];const fr=lr.match(/\{(.+?)\}/g);if(fr!=null&&fr.length){for(const mr of fr)lr=lr.replace(mr,mr.slice(1,-1));if(lr){const mr=pn(lr,{xMax:vue.unref(Pn),xMin:vue.unref(b),yMax:vue.unref(vn),yMin:vue.unref(_)});isNaN(+mr)||gn(hr,dr,mr)}}else isNaN(+cr[dr])||gn(hr,dr,cr[dr])}hr.every(dr=>{var lr;return(lr=dr.coord)==null?void 0:lr.length})&&or.push(hr)}return{data:or}}else return{data:[]}}),zn=vue.computed(()=>{const Kn=c.xAxisLabelFormatter,or=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(d)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,feature:{myDownload:{show:c.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:p.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var cr;p.value=!0,(cr=y.value)==null||cr.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,xAxis:{z:5,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,formatter(cr){return typeof cr=="string"&&cr[0]==="0"&&!isNaN(+cr)&&(cr=(+cr).toString()),In(Kn,cr)}},axisLine:{lineStyle:{color:c.xAxisLineStyleColor},symbol:["none",c.showXAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameLocation:c.xAxisLineInverse?"start":"end",nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},inverse:c.xAxisLineInverse,max:c.xAxisMax,min:c.xAxisMin},yAxis:{z:5,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},axisTick:{show:c.yAxisTickShow},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(cr){return In(or,cr)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor},symbol:["none",c.showYAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},name:c.yAxisName,nameLocation:c.yAxisLineInverse?"start":"end",nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},inverse:c.yAxisLineInverse,max:c.yAxisMax,min:c.yAxisMin},tooltip:{show:c.tooltipShow,trigger:c.tooltipTrigger,formatter(cr){var gr;const{marker:hr,seriesName:dr,componentType:lr}=cr,fr=((gr=cr==null?void 0:cr.data)==null?void 0:gr.record)??{},mr=fr[vue.unref(Jn).name],pr=fr[vue.unref(Jn).value];return["markLine","markArea"].includes(lr)?"":hn(c.tooltipFormatter,{textData:{marker:hr,seriesName:dr,a:dr,b:mr,c:pr,...fr}},{useNewline:!0,useSpace:!0})},axisPointer:{type:c.crossShow||c.crossShow===void 0?"cross":""},textStyle:{fontSize:x.value},position:c.tooltipPosition||void 0},legend:{show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{color:c.legendTextStyleColor,fontSize:x.value}},series:[{data:vue.unref(g),type:"scatter",symbolSize:c.symbolSize,itemStyle:{color:c.symbolColor},markLine:J.value,markArea:Rn.value}]}}),{getGlobalModel:Wn,setGlobalModel:Un}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Kn=>{},setGlobalModel:(Kn,or)=>{}}),Qn=()=>{var cr,hr;const Kn=(cr=vue.unref(v))==null?void 0:cr.chart.getModel().getComponent("yAxis").axis.scale._extent,or=(hr=vue.unref(v))==null?void 0:hr.chart.getModel().getComponent("xAxis").axis.scale._extent;or&&Kn&&(b.value=or[0],Pn.value=or[1],_.value=Kn[0],vn.value=Kn[1])},Jn=vue.computed(()=>{let Kn=c.dataFieldNames;if(c.dataType==="indicator"){const{formFields:or={}}=c.graphicConfig;or!=null&&or.labelField&&(or!=null&&or.valueField)&&(Kn={name:or.labelField,value:or.valueField})}return Kn}),tr=(Kn=[])=>{var hr;const{name:or="name",value:cr="value"}=vue.unref(Jn)||{};g.value=Kn.map(dr=>({value:[dr[or],dr[cr]],record:dr})),setTimeout(()=>{Qn()},0),(hr=g.value)!=null&&hr.length||(f.value=!0)};vue.watch(()=>c.data,Kn=>{(c.dataType==="static"||vue.unref(h)==="design")&&tr(Kn)},{immediate:!0,deep:!0});const Xn=vue.ref(!1),ar=useRequestData(c),sr=async()=>{var Kn,or;if(c.dataType==="request"){Xn.value=!0;try{const cr=await ar();tr((or=(Kn=cr==null?void 0:cr.data)==null?void 0:Kn.data)==null?void 0:or.rows)}catch(cr){console.error(cr)}finally{Xn.value=!1}}},nr=()=>{p.value=!1},Hn=useEmitEvent(c);Un(c.id,{type:c.type,RECORD:""});const Yn=Hn("click",Kn=>{const or=c.id,cr=Wn(or);Un(or,{...cr,type:c.type,RECORD:Kn==null?void 0:Kn.data})}),Vn=Kn=>{var or,cr;tr((cr=(or=Kn==null?void 0:Kn.data)==null?void 0:or.data)==null?void 0:cr.rows)},Gn=useIndicatorData(c,Kn=>{c.isViewRedrawing&&v.value.clear(),Vn(Kn)}),Zn=async()=>{try{Xn.value=!0;const Kn=await Gn();Vn(Kn)}catch(Kn){console.error(Kn)}finally{Xn.value=!1}},qn=()=>{switch(c.dataType){case"indicator":Zn();break;case"request":sr();break}};useOnEvent(c,{refreshData:qn,click:Yn,resetRecord:()=>{const Kn=c.id,or=Wn(Kn);Un(Kn,{...or,RECORD:""})}});const{setRequest:ir}=vue.inject(REQUEST_MODEL,{setRequest:Kn=>{}});return typeof ir=="function"&&ir({id:c.id,requestFn:qn,sortNum:c.requestSort}),u({refreshData:qn}),{option:zn,style:m,click:Yn,loading:Xn,onClose:nr,ecanModal:y,echartRef:v,emptyData:f}}}),Scatter_vue_vue_type_style_index_0_lang="",Scatter_vue_vue_type_style_index_1_scoped_f8d34c14_lang="";function _sfc_render$e(c,u,f,h,d,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,{key:1,ref:"echartRef",option:c.option,autoresize:"",onClick:c.click},null,8,["option","onClick"]))]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Scatter=_export_sfc$1(_sfc_main$c,[["render",_sfc_render$e],["__scopeId","data-v-f8d34c14"]]),EcanScatter=withInstall$1(Scatter),customGraphProps={...props,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},customGraphComponentProps=transformToComponentProps(customGraphProps),_sfc_main$b=vue.defineComponent({name:"EcanCustomGraph",props:{...customGraphComponentProps},components:{Echarts},setup(c){const u=usePickComponentStyle(c),f=vue.ref();return vue.watch(()=>c.optionCode,h=>{try{const d=eval;f.value=d(h)}catch(d){console.error(d)}},{immediate:!0}),{style:u,myOption:f,echarts:echarts__namespace}}});function _sfc_render$d(c,u,f,h,d,v){const p=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{option:c.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const CustomGraph=_export_sfc$1(_sfc_main$b,[["render",_sfc_render$d]]),EcanCustomGraph=withInstall$1(CustomGraph),comboGraphProps={...props,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisLeftSplitLineShow:!0,yAxisRightSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisLeftSplitLineType:"solid",yAxisRightSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisLeftName:"",yAxisRightName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,yAxisLeftUnitAdapt:!1,yAxisRightUnitAdapt:!1,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},comboGraphComponentProps=transformToComponentProps(comboGraphProps),comboGraphEvents=["refreshData","click","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.BarChart,charts.LineChart,components$1.TitleComponent,components$1.LegendComponent,components$1.DatasetComponent,components$1.ToolboxComponent,components$1.MarkLineComponent]);const _sfc_main$a=vue.defineComponent({name:"EcanComboGraph",props:{...comboGraphComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:h,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.inject("usedComponentList",[]),{getGlobalModel:p,setGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:pr=>{},setGlobalModel:(pr,gr)=>{}}),g=vue.ref(),y=vue.ref(!1),x=vue.ref(!1),Pn=vue.ref(null),b=vue.ref([]),vn=vue.ref({});let _;const re=usePickComponentStyle(c),Fn=vue.ref([]),Bn=vue.ref([]),w=vue.ref(),J=vue.ref([]),gn=vue.ref([0,0]),Rn=vue.computed(()=>y.value?ZOOM_FONT_SIZE:12),zn=vue.computed(()=>({textStyle:{fontFamily:vue.unref(d)},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,feature:{myLocation:{show:y.value?!1:c.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){x.value=!0;const pr=g.value.chart.getOption(),{xAxis:gr}=pr||{};gr&&gr.length&&(b.value=gr[0].data)}},myDownload:{show:c.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:y.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var pr;y.value=!0,(pr=w.value)==null||pr.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(y.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:y.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(J).map((pr,gr)=>({name:pr.name,itemStyle:{color:c.colors[gr]},icon:c.legendType})),formatter:pr=>getLegendFormat(c.legendFormatter,{name:pr})},tooltip:{trigger:"axis",show:c.tooltipShow,formatter:pr=>{var xr;const gr=pr.length;let ur="",vr=c.tooltipFormatter;_=(xr=pr[0])==null?void 0:xr.data,vr===""&&(vr="{marker} {a} {c}");const yr=c.seriesTypes;for(let Cr=0;Cr<gr;Cr++){const Er=yr[Cr],{tooltipFormatter:_r}=Er||{},{marker:kr,seriesName:Br,name:Ir,value:Fr,data:Nr}=pr[Cr]||{};if(Cr===0){let Rr=Ir;typeof Ir=="string"&&Ir[0]==="0"&&!isNaN(+Ir)&&(Rr=(+Ir).toString()),ur+=`${In(c.xAxisLabelFormatter,Rr)}<br/>`}ur+=hn(_r||vr,{textData:{marker:kr,name:Ir,value:Fr,seriesName:Br,a:Br,b:Ir,c:Fr||0,...Nr}},{useNewline:!0,useSpace:!0}),ur+="<br/>"}return ur},textStyle:{color:c.tooltipTextStyleColor,fontSize:Rn.value},position:c.tooltipPosition||void 0},xAxis:{minInterval:c.xAxisMinInterval,type:"category",data:vue.unref(Bn).map(pr=>{let gr={};return pr&&typeof pr=="object"?gr={...pr}:gr={value:pr},gr}),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(pr){return typeof pr=="string"&&pr[0]==="0"&&!isNaN(+pr)&&(pr=(+pr).toString()),In(c.xAxisLabelFormatter,pr)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:vue.unref(ar),series:vue.unref(Fn)})),Wn=()=>{y.value=!1},Un=pr=>{const gr=[];let ur=0;return c.seriesTypes.forEach((vr,yr)=>{var xr,Cr;vr.axisIndex===pr&&((Cr=(xr=vue.unref(J)[yr])==null?void 0:xr.data)!=null&&Cr.length)&&gr.push(...vue.unref(J)[yr].data.map(Er=>+Er.value))}),gr.some(vr=>vr>=1e7)?ur=4:gr.some(vr=>vr>=1e6)?ur=3:gr.some(vr=>vr>=1e4)&&(ur=1),ur},Qn=()=>{gn.value[0]=c.yAxisLeftUnitAdapt?Un(0):0,gn.value[1]=c.yAxisRightUnitAdapt?Un(1):0},Jn=(pr=[],gr=!1)=>{var yr;let ur;if(c.dataFieldConfigType==="key"){const xr=gr?c.keyTypeDataFieldNames:null;ur=Dn(pr,xr,!0)}else if(c.dataFieldConfigType==="value"){const xr=gr?c.valueTypeDataFieldNames:null;ur=En(pr,xr)}Bn.value=ur.dimensions;const vr=ur.dataset;J.value=ur.dataset,Fn.value=Xn(vr),Qn(),(yr=ur.dataset)!=null&&yr.length||(f.value=!0)},tr=(pr=[],gr,ur=!1)=>{var Cr;const yr=Dn(pr,ur?gr:null,!0);c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(v),getGlobalModel:p},yr),Bn.value=yr.dimensions;const xr=yr.dataset;J.value=yr.dataset,Fn.value=Xn(xr),Qn(),(Cr=yr.dataset)!=null&&Cr.length||(f.value=!0)};function Xn(pr){const gr=[],ur=pr.length,vr=c.seriesTypes;for(let yr=0;yr<ur;yr++){const xr=vr[yr],{type:Cr,axisIndex:Er}=xr||{};let _r={type:Cr,yAxisIndex:Er,...pr[yr]};if(Cr==="line"){const kr={};c.shadowColor&&(kr.shadowColor=c.shadowColor,kr.shadowBlur=c.shadowBlur,kr.shadowOffsetY=c.shadowOffsetY,kr.shadowOffsetX=c.shadowOffsetX),_r={..._r,symbolSize:c.symbolSize,smooth:c.smooth,itemStyle:{color:c.colors[yr]},areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[yr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[yr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...kr}}}if(Cr==="bar"){const{gradientShow:kr,gradientColors:Br,gradientOffset:Ir}=c,Fr={color:c.colors[yr]};if(c.barBorderRadius){const Nr=c.barBorderRadius.split(",");if(Nr!=null&&Nr.length){const Rr=[];for(const Or of Nr){const jr=parseFloat(Or);isNaN(jr)||Rr.push(jr)}Fr.borderRadius=Rr}}kr&&(Fr.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[yr]},{offset:Ir,color:Br[yr]},{offset:1,color:Br[yr]}]}),_r={..._r,barWidth:c.barWidth.value+c.barWidth.suffix,itemStyle:Fr}}c.isShowMarkLine&&(_r.markLine={data:[{type:c.markLineType}]}),gr.push(_r)}return gr}vue.watch(()=>[c.data,c.seriesTypes,c.symbolSize,c.smooth,c.areaStyleOpacity,c.lineStyleWidth,c.barWidth,c.barBorderRadius,c.areaGradientShow,c.areaGradientColor,c.gradientShow,c.gradientColors,c.gradientOffset,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.xAxisLabelFormatter,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll,c.yAxisLeftUnitAdapt,c.yAxisRightUnitAdapt],([pr])=>{(c.dataType==="static"||vue.unref(h)==="design")&&Jn(pr)},{immediate:!0,deep:!0});const ar=vue.computed(()=>{const pr=c.yAxis;return pr==null?void 0:pr.map((gr,ur)=>{const vr=gn.value[ur];let yr;return vr&&(yr=1e4*Math.pow(10,vr-1)),{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:ur===0?c.yAxisLeftSplitLineShow:c.yAxisRightSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:ur===0?c.yAxisLeftSplitLineType:c.yAxisRightSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(xr){let Cr=xr;return yr&&(Cr=(+xr/yr).toString()),In(gr.axisLabelFormatter,Cr)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:sr(vr)+(ur===0?c.yAxisLeftName:c.yAxisRightName),nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:ur===0?"right":"left"},max:c.yAxisMaxValue||null}})});function sr(pr){let gr="";switch(pr){case 1:gr="万";break;case 3:gr="百万";break;case 4:gr="千万";break}return gr}const nr=vue.ref(!1),Hn=useRequestData(c),Yn=async()=>{var pr,gr;if(c.dataType==="request")try{nr.value=!0;const ur=await Hn();Jn((gr=(pr=ur==null?void 0:ur.data)==null?void 0:pr.data)==null?void 0:gr.rows,!0)}catch(ur){console.error(ur)}finally{nr.value=!1}},Vn=pr=>{var yr;const{columns:gr=[],rows:ur=[]}=((yr=pr==null?void 0:pr.data)==null?void 0:yr.data)??{};let vr;gr.length>0&&(vr={name:gr[0],types:gr.slice(1).map(xr=>({label:xr,value:xr}))}),tr(ur,vr,!0)},Gn=useIndicatorData(c,pr=>{c.isViewRedrawing&&g.value.clear(),Vn(pr)}),Zn=async()=>{try{nr.value=!0;const pr=await Gn();Vn(pr)}catch(pr){console.error(pr)}finally{nr.value=!1}},{loadedData:qn}=vue.inject(LOADED_DATA,{loadedData:{}}),er=vue.ref(!1);vue.watch(qn,pr=>{if(c.dataType==="indicator"){const gr=getFixedValueDatas(c.graphicConfig);gr!=null&&gr.length&&(!vue.unref(er)&&canRequestIndicator(c.graphicConfig,pr)?(er.value=!0,ir()):canRequestIndicator(c.graphicConfig,pr)||(er.value=!1))}},{deep:!0});const ir=()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(qn))&&Zn();break;case"request":Yn();break}},Kn=(pr,gr)=>!!vue.unref(b)[gr.value].value.includes(pr),or=async()=>{x.value=!1;const pr=g.value.chart.getOption();for(let gr=0;gr<7;gr++)await cr(pr,gr)},cr=(pr,gr)=>new Promise(ur=>{setTimeout(()=>{const{series:vr,color:yr,xAxis:xr}=pr,Cr=g.value.chart,{splitArea:Er={}}=xr[0]||{};vr.forEach((_r,kr)=>{const Br=_r.data;let Ir="";gr%2?Ir=yr[kr]+"a8":Ir=yr[kr],Br[Pn.value].itemStyle={color:Ir}}),gr%2?(Er.show=!0,Er.areaStyle.color=vue.unref(b).map((_r,kr)=>kr===Pn.value?"#ff003b26":"")):Er.show=!1,Cr.setOption({series:vr,xAxis:xr}),ur()},200)});u({refreshData:ir});const hr=useEmitEvent(c);m(c.id,{type:c.type,RECORD:""});const dr=hr("click",pr=>{const gr=p(c.id);m(c.id,{...gr,type:c.type,RECORD:c.tooltipShow?_:pr==null?void 0:pr.data})}),lr=pr=>{g.value.chart.containPixel("grid",[pr.offsetX,pr.offsetY])&&dr()};c.tooltipShow?vn.value["zr:click"]=lr:vn.value.click=dr;const{setRequest:fr}=vue.inject(REQUEST_MODEL,{setRequest:pr=>{}});return typeof fr=="function"&&fr({id:c.id,requestFn:ir,sortNum:c.requestSort}),useOnEvent(c,{resetRecord:()=>{const pr=c.id,gr=p(pr);m(pr,{...gr,RECORD:""})},refreshData:ir,click:dr}),{style:re,option:zn,click:dr,loading:nr,onClose:Wn,ecanModal:w,echartRef:g,handleLocationOk:or,onFilterOption:Kn,locationVisible:x,locationValue:Pn,locationNames:b,eventObj:vn,emptyData:f}}}),ComboGraph_vue_vue_type_style_index_0_lang="",ComboGraph_vue_vue_type_style_index_1_scoped_833c976a_lang="",_withScopeId$2=c=>(vue.pushScopeId("data-v-833c976a"),c=c(),vue.popScopeId(),c),_hoisted_1$7={class:"location-wrap"},_hoisted_2$4=_withScopeId$2(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$c(c,u,f,h,d,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal"),y=vue.resolveComponent("a-select-option"),x=vue.resolveComponent("a-select"),Pn=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[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,"update-options":{notMerge:!0},autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"]))]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:"",onClick:c.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(Pn,{visible:c.locationVisible,"onUpdate:visible":u[1]||(u[1]=b=>c.locationVisible=b),title:"快速定位",onOk:c.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$7,[_hoisted_2$4,vue.createVNode(x,{value:c.locationValue,"onUpdate:value":u[0]||(u[0]=b=>c.locationValue=b),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":c.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.locationNames,(b,vn)=>(vue.openBlock(),vue.createBlock(y,{key:vn,value:vn},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(b.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const ComboGraph=_export_sfc$1(_sfc_main$a,[["render",_sfc_render$c],["__scopeId","data-v-833c976a"]]),EcanComboGraph=withInstall$1(ComboGraph),radarProps={...props,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{value}",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:"",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1},radarComponentProps=transformToComponentProps(radarProps),radarEvents=["refreshData","click","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.RadarChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent]);const _sfc_main$9=vue.defineComponent({name:"EcanRadar",props:{...radarComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const{pageMode:f,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),d=vue.ref(),v=vue.ref(!1),p=usePickComponentStyle(c),m=vue.ref([]),g=vue.ref(),y=vue.computed(()=>v.value?ZOOM_FONT_SIZE:12),x=vue.ref([]),Pn=vue.ref(c.valueTypeDataFieldNames.name),b=vue.computed(()=>{const nr=vue.unref(x),Hn=nr.length,Yn=[];for(let Vn=0;Vn<Hn;Vn++){const{name:Gn,data:Zn=[]}=nr[Vn],qn=[{name:Gn,value:Zn.map(Kn=>Kn.value)}];let er=c.colors[Vn];if(c.gradientShow){const{gradientOffset:Kn,gradientColors:or}=c;er={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:c.colors[Vn]},{offset:Kn,color:or[Vn]},{offset:1,color:or[Vn]}]}}const ir={type:"radar",name:Gn,data:qn,areaStyle:{color:er,opacity:c.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:c.symbolSize,lineStyle:{width:c.lineStyleWidth},label:{show:c.labelShow,fontSize:c.labelFontSize,position:c.labelPosition,color:c.labelColor,width:c.labelWidth,overflow:c.labelOverflow,formatter:Kn=>{const{data:or,value:cr}=Kn;let hr=0,dr="0%";if(or)for(const lr of or.value)hr+=+lr;return hr&&(dr=`${(cr/hr*100).toFixed(2)}%`),hn(c.labelFormatter,{textData:{value:cr,percent:dr}},{useNewline:!1,useSpace:!1})}}};Yn.push(ir)}return Yn}),vn=vue.computed(()=>{var Gn;const nr=[],Hn=[],Yn=vue.unref(x),Vn=Yn.length;for(let Zn=0;Zn<Vn;Zn++){const{data:qn=[]}=Yn[Zn];for(let er=0;er<qn.length;er++)Hn.push(qn[er].value)}if((Gn=m.value)!=null&&Gn.length){const Zn=Hn!=null&&Hn.length?Math.max(...Hn)*1.2:0;for(const qn of m.value)nr.push({name:qn,max:Zn})}return nr}),_=vue.computed(()=>({textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,feature:{myDownload:{show:c.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:v.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var nr;v.value=!0,(nr=g.value)==null||nr.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:y.value},show:c.tooltipShow,formatter:nr=>{let Hn="",Yn=c.tooltipFormatter;Yn===""&&(Yn="{marker} {a} {c}");for(let Vn=0;Vn<vue.unref(vn).length;Vn++){const Gn=vue.unref(vn)[Vn],{marker:Zn,seriesName:qn,value:er}=nr||{};Vn===0&&qn&&(Hn+=`${qn}<br/>`),Hn+=hn(Yn,{textData:{marker:Zn,name:Gn.name,value:er[Vn],a:Gn.name,b:Gn.name,c:er[Vn]||0,type:qn}},{useNewline:!0,useSpace:!0}),Hn+="<br/>"}return Hn},position:c.tooltipPosition||void 0},radar:{indicator:vue.unref(vn),axisName:{color:c.axisNameColor}},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(v.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:v.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(x).map(nr=>({name:nr.name,icon:c.legendType})),formatter:nr=>getLegendFormat(c.legendFormatter,{name:nr})},series:vue.unref(b)})),re=()=>{v.value=!1},{getGlobalModel:Fn,setGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:nr=>{},setGlobalModel:(nr,Hn)=>{}}),w=(nr=[],Hn=!1)=>{let Yn;if(c.dataFieldConfigType==="key"){const Vn=Hn?c.keyTypeDataFieldNames:null;Yn=Dn(nr,Vn)}else if(c.dataFieldConfigType==="value"){const Vn=Hn?c.valueTypeDataFieldNames:null;Yn=En(nr,Vn)}m.value=Yn.dimensions,x.value=Yn.dataset},J=(nr=[],Hn,Yn=!1)=>{const Gn=Dn(nr,Yn?Hn:null,!0);m.value=Gn.dimensions,x.value=Gn.dataset};vue.watch(()=>[c.data,c.areaStyleOpacity,c.legendFontSize,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll,c.labelFormatter],([nr])=>{(c.dataType==="static"||vue.unref(f)==="design")&&w(nr)},{immediate:!0,deep:!0});const gn=vue.ref(!1),Rn=useRequestData(c),zn=async()=>{var nr,Hn;if(c.dataType==="request")try{gn.value=!0;const Yn=await Rn();w((Hn=(nr=Yn==null?void 0:Yn.data)==null?void 0:nr.data)==null?void 0:Hn.rows,!0)}catch(Yn){console.error(Yn)}finally{gn.value=!1}},Wn=useEmitEvent(c);Bn(c.id,{type:c.type,RECORD:""});const Un=nr=>{const Hn=nr.event.topTarget.__dimIdx;Hn!==void 0&&Wn("click",()=>{var Zn;const{value:Yn,name:Vn}=nr.data||{},Gn=Fn(c.id);Bn(c.id,{...Gn,type:c.type,RECORD:{[vue.unref(Pn)]:((Zn=vue.unref(vn)[Hn])==null?void 0:Zn.name)||"",[Vn]:Yn[Hn],seriesName:Vn}})})()},Qn=nr=>{var Gn;const{columns:Hn=[],rows:Yn=[]}=((Gn=nr==null?void 0:nr.data)==null?void 0:Gn.data)??{};let Vn;Hn.length>0&&(Pn.value=Hn[0],Vn={name:Hn[0],types:Hn.slice(1).map(Zn=>({label:Zn,value:Zn}))}),J(Yn,Vn,!0)},Jn=useIndicatorData(c,nr=>{c.isViewRedrawing&&d.value.clear(),Qn(nr)}),tr=async()=>{try{gn.value=!0;const nr=await Jn();Qn(nr)}catch(nr){console.error(nr)}finally{gn.value=!1}},Xn=()=>{switch(c.dataType){case"indicator":tr();break;case"request":zn();break}};useOnEvent(c,{refreshData:Xn,resetRecord:()=>{const nr=c.id,Hn=Fn(nr);Bn(nr,{...Hn,RECORD:""})},click:Un});const{setRequest:sr}=vue.inject(REQUEST_MODEL,{setRequest:nr=>{}});return typeof sr=="function"&&sr({id:c.id,requestFn:Xn,sortNum:c.requestSort}),u({refreshData:Xn}),{option:_,style:p,click:Un,loading:gn,onClose:re,ecanModal:g,echartRef:d}}}),Radar_vue_vue_type_style_index_0_lang="";function _sfc_render$b(c,u,f,h,d,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{ref:"echartRef",option:c.option,autoresize:"",onClick:c.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Radar=_export_sfc$1(_sfc_main$9,[["render",_sfc_render$b]]),EcanRadar=withInstall$1(Radar),__vite_glob_0_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",__vite_glob_0_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEnVJREFUeF7tXU2MHNdxrqrumd0luRJNi4jIXUeEbcBAfIiM+KLk4BUs2GEOkexA+ZHE5c4yjmAISeSDASc5ZAMESAQkiJPAECKJnP2R8sfAjqEgTgIbpi5RDgogIxAQAbFAWbsrShQoUvxZ7kz3q6jqve7p7pnZmdkf8MBqQezt9+rVq/peT3V1T381CLYZAoaAIWAI3FIEjj52+lNIdKbdTr787t995Z2qMXhLrbPJDQFDwBC4zRGYmj19HyJ9jxnuBIb/SSC6752V2etFWCxQ3+YniblvCBgCtw6BqRPNhwHhH4sWsONfWH9+/j8tUN+6dbGZDQFDwBBQBKZOnvkaMP05AGcJ8yVi98W3Vk69Yo8+7CQxBAwBQ+CWIsA4Ndv8FgB+NTODmd+MiD7/1tLcj3uZZo8+bumC2eSGgCFwOyHwyd/+q7EbVyb/AQEeLPj9ahrxFy405y/2w8IC9e10lpivhoAhcMsQmD713CFu078A4H0dI/j7PN5+cP2Zx29sZZgF6lu2bDaxIWAI3C4IHHnkuXsojn4AAJ/IfUY4u3Zj/2/A2V9NB+FggXoQQtZvCBgChsAOEJiaa97LDv4DAQ7nz6QBnlpfbnxjWLUWqIdFyuQMAUPAEBgRgenZpeMM7p8AYF8YyoD8xNrS/NOjqLJAPQpaJmsIGAKGwJAIfGy2OZ8CP4uAJEMQYdMx/9r68vx3B6k4cqL5JDO8euH5xjkdO2iA9RsChoAhYAiMhsDUyTN/DIx/kI9CuAJMx9eWT748SNPR2TOLCHgSAC6nBJ+5sNg4b4F6EGrWbwgYAobAkAj83G/9Te2dzXqTGR7tDMFVdukD68+fen0rNQfnmgf3p/AdQJjJ5Bjg1fXlxmcsUA+5ACZmCBgChsBWCNw1f3pyLKEXAeBzBbnXawQz5xcbF7Yae/dc8xg5+A4C3FuSY2isrTQWLVDbuWcIGAKGwA4RODbXvDtx8H0G+HQhk355bHzz+BvPPH5lK/VTjzTvhRh+CAAHcznmK5DizNrfNl6VtlED9YfyCwjwGsLMRYSrV/34jY8jtK4hJBsIySaCayEcOQrQ3kRIWghpGyG9A8G18SMA8L5L8M7J/XjFJTiZJgguRYBJYJcgcIo8kSK4MWSWdgBwDpnHvNy4b2NXR2AX/q8h1J1v17Yayhjtr8faXmfGTXZY59i3x5m8HDMCR7rnmm+HTE71xchBXuWEm69jHMaxHIt8GB/JeP+3byevN5Jj/7e2R/7vCBgTJoylPfbyrDJBNhLh8LfqyXRIB2NEjCmT6vHjIgDKxostYiehNKsdmS4i7YuAQMflY8ry8hWI76/KZ3aIPAb9Xkb+069OmJEye0RGbCHZBz/lGEO79xmIsnNSv3/p3qjaPqxcpirIF3ZO5u2aqSzX6a5I5ocD7KrIyaGTlc3N6uNH9SPa5X9vv/rZK57qvF3T9fCrt2DR6qIDfZYrzFf1t4q4Tt8Lg2HxDtNXHMv97Zq/gv8O+xngN6V8RwGEb68tN36l90ncaZ060ZwDhGZJjvlHkOJcFqSlb5RAjQsLC7iwcI7gZw6TBObpwwdo9Y3X6fBHD+HF1gYdPHCELl96Dyf3jdHVpEUH9k3gtQ9atG+sRjc4xYl6TBvXExofq0vwpno9ps0Nh1CLiF1C9XoNWzdTqsVELWaUfbvlsBZF1OaUJCi2naNahMRtxniMKGk7iqMIE04pojolSRvjqEaJcxRFhGnSpqgWEySAFCGl7CgiQtkTxeTSFAmRUiCMyPeTBKXEEcVIzrH2O2aRxzT17ZBKYNU9AWlgJq8nk1f96NKERLMEKcz1ROj1ITofZQkcqn1yrO0SUUU+6BP9iIQsUdfrQUIS++RYgqDYrfZKP8t40iDr+0v6SKIziQYAR/KtNEtk1XGZPu0kVrtJ/c/mAf8tdkVergBYsA/EXGK1TwO47EU/onx6FCZAtZ/IzxP0SowHb5BcRPzeTwictefHvl+3ME73IO16EaqMD+2V/ny+6rgB82X2+Ol3YG8+T7C3OC+I/2V/ivN52HqMy+2hML6DX3l8Ae8unAO+fgF0XTy+O/S3Or4nzh27O/OKAZm/g9a37O+goLl7/fj02vLJJwBQjO27HZ1tStb7h9UgfT3CmcuLjcvF9pECtWbTM+cI3n2XoHUPws3LBIcmSbLmQ60JupRskGbK7Zt0IKmTZsdjLbqe1mhCMuK0RVxPCNgHanYxaSbsEmIXkWbCtZTAEdViyRAloDhsu4jiKCXNVJ3TDzlHEhzlb/k/wihCSrgYtDUYSbbnZaIINcFT+XJQTpk1qPs+DVYIFHtZjT+OJKqlxBhJv3wyQnBU/ZKNSrtEImCU2E6oZxOC7NkHcwmCKp8FXwlseb98qkQvk4+BPpj5jFjaO/rED4maEvykXWJfZx6vR8f7rNbbGvRJqutQgFU/ZP1lDjEXdW6G4Jt++v38/goh/gV5vYj4oJzJe/06D3vQvH2qozC/SPg2xUdk9ZYh86cTBcJ5WggKIbPIgnYxaIRIXUg9iqe2tybrzMfnnwRBJTsoz5e3ZheDTDA/Lo/Lzdfg2jE4v5j0G1/Rn1+cNAT7oJj7mLtS9tFHT/9P8EKPdXwpJ+v2N7N7aH+r9gZ/81je5Wcl1HT5q5caHTXM+pTtLY8r+VtZ190Lxj01yW3h760uN57aah750nBfCn+BCHNFOQZeWl+eL7VVzq6hzEf4MKOGhfDY49y7BJ+8Rx93TB85jHlmnbbxUHoH5kH7/QQnDySoGTZP4DWX4v6JMbyetn3wdtcQxuvI1xMCybT1cUUN+UZCsgfewDrX/GOLWkSt8PhCM+5IMm+HNYixzZuaect4lscW4BAiImgz+iDtMI4kA2d9XJGwwygiStsse0wgwVgywOJjB/KBMuIINVPWjNvLp4k8dtCUzT+OSPS23strxq6RWzPs/Fj6JRMPjxE05dOoSpJZhsxe9hE6SJFAH8tkFwUdx5LxM6KTSKeZt2by/rGCf0whGbzvR5FzYrbq95m1XDS8vMpJphweb2h4L86n8pIOix61Lx+vOKE+BtL5y/rloqefupBJS1CXWEMILvgjuAW79c5ArjY+GnWiiJqpI8MJ6h8YEBE4J7fvCM5fWfztPIp6vUqExwrhtrnz6S8Eu46gXl7B+WtZr0yxEIS8QHY7HhTnE4ZMPpeX08P5zD4EyzwxDRmkNyg8CJHbdu9IFq58r/qlt0TBr8xfCP52Hi+EAT31qN1d9vTK4EOw7GOPvwZ31sXjFvws3QlkeuRjXYAte8TRtb7e7846Vh6byHrrumfrm91Jeb+61qXnnZk/MfM7reyOK7/z2kE/0bOrS3MvDAzSDn5Y/dLQMXzt7ZXGN/uNHSWjHiqam5AhYAgYAoZANwLypSHH+mbHsbxXvjQEfFLe7NgKMwvUdkYZAoaAIbDHCBx9rPkQkn5p2PfNDgvUe7wIpt4QMAQMgX4I9HuzI43wIWEdDoOcZdTDoGQyhoAhYAhsA4ECHbwzmvml6xE+VH2zwzLqbQBsQwwBQ8AQ2AkCSmSJ+Bwg3lnUkzq4Pyu2NKx+y6iHRcrkDAFDwBAYEQFfv0OD9c+WhgZq+LDqLFAPi5TJGQKGgCGwDQRCsP5nQCzWAJFXNhfWlxt/NIzKUQN15Q37BVA6+cMAcPZip+ZTkVqeWSEUc9mEZq77TQSYBoBVgJ+6C+FtALhL2sIm1HP5QYR0He+Cj8J7AHAobeMlAPiIa+P78vXpHQdQ6DvyNerltK33F0pDDxun+/zfoY33JwhXAWDyAIBQ11U+0NSLcjzux40XdAklHSZASDy5jWEsy/vfGwAw5vvGAeAmOxyHcbjpUhwDgE3plv6bwmev+bnlnfFsU/1joLR5GaD2eLninH5MXQxH2SlVPnfY0+Vr7LAl09Rr0HIORcy/b64O+/Gy5TT6QIPP+4NcrVa2UenzmQ4ZX1N9wnxv5/rlfW5pERZ+sM0V9Mv77RD0ejHPt/GAlM/HOAZIEgDZFzY5SmT6rn3c1e79LAj2bijp7z4I83fpqUoOFAi4Z/aU/epnRAwRJJCC3xfcKcCTtXcmGOBSEQfFOSjuOWxv/OqxMN6qHn558/qsb5fNwd6iX1X/9uD4Zt3993tnTkmE6bn1el7NDIvrK43GoNUaJVCL7IfMxJmezERoTRBUmInXOMX9YzGxsBAlAKVxH2aip5ALM7FeS6klzERmbMWyF+ZiRJwzE4WdkHaYiUJqCQxEIYPkdHInr8UHEkqVmShMicBSFL62MhO1BoYTMggpB4Q8S1FZFZ5k4skrQrNWZqISTISMkrMHlWyipJEykzBjGCpzkZGc/KOswyozUcggWqxAGCI5SzEwJgJtG8gzH3szE4WH7mnggRHo2RRKIVeGYSChBCalrGmBPVhgGnr2QGAV+vYiM9GzDYvyHQZimZkY1iFjRm7FTMzJNh2acrnKQcYwlNM6IztUTuE+DMKcQlLtz/VkH5WyXj+uF2Muk+s9LrOvP1Ov4IP+mfnh935cZd4CfTv/YI/MaKx+5Pv4W2U0DmBiensCH7XIhCyN68GIrOCfMyh7MjEr616ksw/N4BwUErffzwCv1Qke2KpS3tRsU0gtv1uaheHc9Qi+tNWXiyMF6v61Pj6FF1s/2btaH+MRtVt7WesjohRgQK0PqUhBw9f60JogUutDmIE+mCNG5DglomqtD6Ha8fZrfURKWRPz+tT60AJKhdoh26/1obTxHdX6kKImQtULtT58DZP+tT5CuNqTWh85g7BY6yIw7rpqbZRrW2TRdEe1PooXm61qfRRrdgQGXSeay8Dt1b4o1SbpqrUR/A01RDK6/o78LdUKqdRiGbbWhxowqLZJd22Y7YffEUcyr0ZEv/iTpbnX+o3s9bqe1J2+QXB/v2A9UqD2aczDCHARs8JMecW8UPMjq5R3MNmgyy7BOyb34wdpgnntD3lcoDVAaj7LdmP+uK61NTyF3IVjrYAnNHKHLI8LNOv21ewk4wbJsjmSmhO++p3UAYk1o/QV7FxKEPs+X1WPwjFjrFXqfA0Qf8vts2jNpkWftMv4UAlPaeZS0IkZfQGnrDZIqEiXHWfV6rL6H6EqXZTPF6rThYzU1+MQ9rKnf0eAnn5epJmrfXKWEzJKpp/1B0q31NgItHAteZT5g5q2k5NbANVfpJD76nbZHYGnbxcp5DktXYOoz+CLFPLQH+bL9Wc1SXzdD1/vQ+s6FefzfRJzCpl5qKRXoJCXMs3stK9WtfOnsG8tZmyVqmv9MsJKVbs8P+6bQXZmy7LIggGdTD9XlFtW7uvS39uv7szZt+RFBvNPcNFfLUQYtuodR7VCXSeDL9+9jGZPRr/vJMiVecPTrcz6fn517pTK6537mzcP51dxPbeqkJTdcfULroP6izWoGeADYv7l1ZX5l/rpUwIM8mLxjRAGOI8JfKlYNa/PKo549TBxQ8AQMAQMAZg+ceZzTPgiMEx6OLgNjI+urTTO9oOnz+t7lyGB+6vBepSM2pbDEDAEDAFDoA8CP31y8dOOWX484G4fq7VS2u+vrjT+dECwlsx6y9f3LFDbaWcIGAKGwC4hMPXos9MYxf9W/KUXBDiz+vE3vwILC1IbsWvr9661A3jy7eXGX8oAC9S7tECmxhAwBAwBQUB+O3E8oRe59NuJ+L0a8ZfPLzbkBd2ewXqf42+GXx/P+7PX9yxQ27llCBgChsAuIyC/Rn5hs/4CsLJMdEPAV5LI/dKF5vzFvo9Cqq/vMb+0tjI/Y4F6lxfI1BkChoAhkCFwdLb5JwjwjQIibxLi599amvtx32Cd/Y4i84+yn+WyQG3nlCFgCBgCe4jA0dnmPAI/m/8EDcIl59wX31459Uq/ae9+rDkDMZzPyqBaoN7DBTLVhoAhYAgIAtOzS8cZ3LdDhQlpusnAv76+PP/dYRCyQD0MSiZjCBgChsAOEfjYidOfTZH+1Rcx0qfWDOieWFuaf3qQagvUgxCyfkPAEDAEdgmBI488dw/F0Q8A4BOZSgT8s9Xlua9vNYUF6l1aAFNjCBgChsAwCEyfeu6Qa9O/I+Bnc3mGsxMHr574v7/+HSm02bVZoB4GWZMxBAwBQ2AXETg21xxPHPw9AzzYUcsvj423j7/xzONXqlNZoN5F8E2VIWAIGALDI8A4Ndv8FgB+tZNZ8+vg6g+svfDYalGPBerhUTVJQ8AQMAR2HYGjs82vf/irJE+F8o/vM/HPry82/tcC9a5DbQoNAUPAENg+AlMnmg8DwWlA+MLaYuO/7NHH9rG0kYaAIWAI7BkCx+aaB88vNuTXBbu2/wfAQwC29PHqBQAAAABJRU5ErkJggg==",__vite_glob_1_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",__vite_glob_1_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEthJREFUeF7tXV2IXdd1Xmufc+/8SKpkIyXWzDQ2Soqhfaghfgl9qENMgkPBdqgI2JE0M6ltQv8cSil9CJ2WpA+BkqQlBNvx/Ehxiq0SbFJqEhzivCQQHHAfGggkRsIaRYlkRX/zd+85a9Vr7b3PPefM/ZNGGYnMOi/nnr3XXnvt75yz9rr77m9dhNoxdfilMR5feQWJv3DmxOwP6vV2bQgYAoaAIbC9CGClu7k5N/nW3d8GgI8jQJsZHl8+MXNye02y3gwBQ8AQMATKCFQc9cSRpfcB5D9GxPcWQsifW16a/bzBZggYAoaAIXBrEKhG1AAw+fhzU5CkrwHAvdEkBJg/c+j0EzA3R7fGTOvVEDAEDIGdi8AmRy1QHHrymb3r643XEPD+DjT8asPhJ04tzqzvXLhs5IaAIWAIbD8CXR21mHHP9MJom/hbAPhQNIsB36CEPn5uYfb89ptqPRoChoAhsDMR6OmoFY65OTfx1t3PIcBs4ayZTyfOfeTtpelf7EzIbNSGgCFgCGwvAv0ddbBl8ujC5wDgX0qmXXRMH3v7xKff2F5zrTdDwBAwBHYeAkM5aoFl6lOLj7ODJQBOAkzrCO4TZ44fe3XnwWYjNgQMAUNg+xAY2lGLSRNH5x9EQNlnPRpMJED+q+Wl2a9tn8nWkyFgCBgCOwsBddR3TS/ck+Twt8snZj47aPgHjzx/v3PuO8BwZ5RFxC+eWZr+h0Ftrd4QMAQMAUPg+hHAfdML+8YJvo8A9wHD6ysJPHppceZSP1W/f2zx/cT8PQC4u5BDOHnXSOvxnzz7VPv6zbAWhoAhYAgYAr0QwIkj8y8j4sNRgAHeJAePnlucOdUPtrtm5g8khN8FhvuKyBrgB83R1sNvPfvUZYPcEDAEDAFD4OYggJOPLdwHCb8OiHtLKi9BBh9e/ubMm/26mXjymXFcH3kFgB8syf0M8uzB5ReeOHNzTDQthoAhYAjsbAR0jTo460VA/OMKHAwzyydmFvtCdPilZHJ85T+B4XARWSOcywAfPLc0/X87G14bvSFgCBgCW0eg2PUha9W7co2sK86aAebOHp/550FdTR1d+CID/H1HDq8Bw5cROY9lkijElRTdrGuCWgoSveyWlqRUVqnuIbup2BdEu4kAnAMg+dD1COXD9NXV5Kpe7U/7H3ZsPezqau+7d7p+BLlivEV9t3F1G8CQcoWZtfGG56UYbw+5jlkFQLWRXN/zEYbNgMwAyMDMKGfBHYGBQrnUIzLlOchZZJFDHeQAhB0dUk+kIFPUS8QY2qlulSfVqf12kZc6b0vUr3YxoPNn/+yr3hyQEyTORa9/clU35qEP7ScHyKVfr0ftERsygAyRU2kv/Um5tJMjyhbtMtD+vT7GPH6WcuQMHEOed8YlysWOTOQyb7va31I92A7tMbYR8YxB5R23MOMRdLwBACOI3GoFHS7q2QAUfS25bpf0rwOKzHrC4BJG3GCQax2SlG0wuoRhNWF0KQNcBZG7mqS816V8+eoK7wOAS1LnGgzJFYakwZA2PS4X3mFwTYZ0hCEdY2ju9uVjbzHs2cPw+gEG+CNxqfFl6/LSdfckm7bnTRydX0TAY2VxZlg8e2JmZpCznjy2+Bkm/ioiXNe2v0F6+9XLe4EI8i6BdMtMgCjnUK7PZKgP5apP36fYrlovxjOIPl8ej+Laf5DbW+0vyFf6k7feF2h/vl3sP7RXPeVxxP59fWgYmnm54fsv9StmFHhEszrjrOLYsScYPHi8AY84XjFTfFphr+BPtfuj962Mfxhv/f7o/Qg41e5P3e4yzh1cw3g3PQ+d/qIebw6L0yL2BrO4TUAmJvDlQCQOk4jIyzE7B1IvClmQBvF4rM7Pn9UDSr1IA7lQLnJh/mfpr5u87x+JmNipXiZ0pf6JGR2SGOSknJkcIOf+mqRB6E/tlvaqjyiUcygntUvkQfTl0l4fG19OeSEv/WQ5h/5ycpgSUcYJOmmv/YsC6UcfhETaMyUyuRGTEzlSR6rYyuQk7aR9nhMnKRJlOblEHhumRMajdjuSSQNTpLzNlKTIec6UOkdZ3uI0bVJOLUqxwVneDvI5Y8NRO2dq+EmHsJlQO8u44eRM1Gwit9eImqMJtVptHnEptdpthrGUsJWROO31VkZju1KC9RZj0qDVjTbt2p3wynqL9qT76eq1c7xv/whdurZG+5P38oVLpwgO3Uvwy/P8h+MH6Kc/PU9w+ADDyZPhORnO+3V1qBNHF+befaf/qeKsAd5cdfDhQTtCJo7OP4wALwLgyHAmbFVK3omow38ov5z+nYm+rjaR1dpFJ+qdtIROUXf/dn6S6NigPiZMAuVJwdtZmkSD0+5MCp36OFn0atNxnqXJpjChbm901lWcNo23mJQ221j0Vx+DoFSoL01CJTzq+G+6Pz3truEV7keBV7/xem9dmhQ7k+Sm+1PIxf6YQVwzinvRmZLRO1j9LE4WfZ2MXEJhdTIM4uyA/CwvLl0+azjecY7BUYvT1mlTHzJxwl5WZube8kGfxN7q02L/3vlrrK9OUSNR1Sd2qh1+jtZ2Yfb0fYoWZD85+Fk1yHtb5FrKHcrMJG31W4LKez0lfdqPTiWUJDqHeSesGOo3E5KpOif2TlimNf2mEZyvfsOQz0He16sedd7yjSA6ahkqoZeVSL/hSCSln4yYUpGXiDxPCDBMtrmcQ5+YEOp1xu0soeYIUTtDBkcE7YRgVCJ7mWTaDO2U0KUErs3gMsJWSoAJY5IRJm1aWUt4d9Kka2mLfi9J+crKBt2ZjtFFibhHdhFcvEoaZY//muA97yEfWb/kMRny6Bn5Th5ZmAbgL5d/ZGSAU5jBowN/ZDy2+CdI9IVOZBsjRu/8isioiHy3Vt+JoMovp+Dgwrvl3x5dNiiWK8J1/HrNBE7eMgkk/FtTiXyLSDgsfGigpepDRFjMBTESlffAhXekE0F39ITZQ2Is1SPy5Tkl6onxdIw85dl1IdKOjkUND+siXm8x3mJccdkkjFsDJvU24VGp2qNAhYWW+uRX/cYRJ6Vof7i/NXs6TtPfF33fKpFxLcJX3yWhXFzOKGbbrvdFAlm9vwJDcR/jfRcvI99y/TKVk9A3Lv90vHYJBx9Ru+ANw2pF+OrunZn3p15OnbV/sP1yhX+cY2QrhosPF+fml028Xq33ztHXx2UWdfohYvZ2yGMW6oN8R79G2OqEfT8aWTNIJOsjVA6PKekZmSUylf6L/mLE7GeOUJ8H+wVR72T1rF8KNJL3zlPOib9Wp6zLNWHZJnXiDHW8GiE3QqQcrtNU2ucdeWmvc03KWU7sna30I+1zTjGhDHNOxRnnOSOKEw7LI5mcE9IlEmxyO8t9pAwZN9GxRM5Nl5Asm8i1RsxjKbV0eUSWSdqM4ynJWa83Wowhcga3m9dwg8ed49X1jHbvSfja6hrvkWWR1RHae4dfFrnDpfybxhodSBp8/p0mT0yN8Nl3xEmPMfz8NMMHxxh+cohg7t3ljzld/ti6o5antteOkJzg0XPfmHl9yMnAxAwBQ8AQMAS2gMDAtWTPWuSXb2hHyBYMs6aGgCFgCBgCHoGBjlqEwo4QcdZ/WgZu2B8ZDWxDwBAwBAyBG0dgKEcd1XfbETIs7fzGTbSWhoAhYAjsbASuy1HrmnUK35cgu4CN+TLk+MCgHxh3Nsw2ekPAEDAEbhyBoR21OekbB9laGgKGgCGwFQSGctS6VQ9hodIR8//mCT4yKHnTVoyztoaAIWAIGAJD/Jh48MjC0w7hS3UnvZLgA/3IL1OfWngA0lKrDOC3ch31ZsWHrve1XCtmZZCpOeXmaQogamK5V9Rf76bONivo8ZwN0LupWgqGOXzDYnwyntq4/PhySCHR81DHbTIufz8235aB9zc8fpthLQFUBkLp0KEj2VerrGehG0sWX0871sPJPmAApUMX8sgi1UDHxV0TCrUKBjnZ/xsO1dtud+pKchjlCv2eZi36dT+wnAGgJfuIlQod9WclG2WfcOxbPpTlEi8nZA45NgKdWj4EenVFPshtrAt9O1Ea96gw9mC9av9GwjAGgButkh2hL6Frw5qnc8djXSjb0vc6A+wCgBUApXGL2tAuketr3v4VXxdlAK4Aar3IpyzpO/clDZZ8zUr7vnKN7wCA37gGSyL9iwCwP2nwBWmQjDDAeSio4FJ2YYThIAD86gIDTAHAGVDSihyyLzoeZZq4lAlVXA7ZvKwMRLlQ2nhsUSYuFGoGfegbUXelkwMvnT0+O91Lsc+o1/iv8r+XDzJia/U9mImV3eR1hqH02L+dchCK21HDtl7elWEY+tBTj3tTK+/N8AvtC85HVV9kRnaqu9lb3lvvP5fbdcOjBEAHrxINvsqo7Dbe7jjHff5Djddb6h+RglbuU24MPd76/SmRk4Lijv5Y4G+/MunkSakzEwPzMDATA2OxGzPRUwaFeO5p5YGBqNQXz0uSYQQKeWD6KaPRMx19nZAHPYXdk2HC5xoz0TMmI8NQ+hRmYmQGCrcm0NbVpGCLWCB2KD3e08w9eabDTBR6j8gUtPAezETVr6QaTWei5JWuzEQh3QiPMLIElYHoWY9lZmLu6eYdhmMk1SgOwkxU1pkwDxlyR7kjUjIMCXNSyj0JRujiIceJMApDOREqazHjtkuomRG1EbnpiFrCTMS25PsoMRM9hRxcoJMXzMQGwdoGY42ZCOkYaS6QnszEm0Ah1z8TyGEBER4pO1Ee4KQ1R3WO3wX5E4JtOq4/10ePXBIl2nc910ekk2/O9dElR0g5Z0fIbVHkvpC3PeSa8E6nT64P1dMj10fB6BuQayRQ5Arm5s3K9RHcZCdHRzXXSpHbpORci/H+1nJ9xFQq1Zwq/vnolfulbHclt0mPXB/Kj1ZatjIHUdyRDqiU6yMw+LYj14f073OReLtirg8/i6hzCrk/Krk+CqZhj1wfkX5+y3N96KQxINdHyB0yMNcHCpOxk+sjy4kaW8j1sbbe4vEhc31MHbqXztzsXB+Vf3ypeum+KU+nphf+gAnESd9TavZD8N8Vy5kXurrwEvn7OupLkWYl8ood1rPHeXmlE5dp4iX6cSXCipaUEjP5onJWuFJkF20ogtda/5v0BMFaVrgyzT7aU8FHA63qzSmbVWWmSkqGChm803BIe4oGXSJTP+QO/b2CX2FmOZqXYK02/VdSsdRkS3BvYtz2uC8+DUA5f2J3nCvjKgBWWaViS3gXc2iIrw/JXzz9W5ygjzp9VO2/gknjQD+XhEMaIUfauOTZkJhXadxKjmfJhBd0SO6Mjj7NoaFxdL0+ZNjTHB7hs4TOwJ5+rZFjzNkR2opizdWh0TNX62NWv0jfZsm65xNSebq7fvX0OUAC/V0TImmWPdb8G6h2+OuCQh5yeMicVmQDDDR0oYVL5CsRc8y4p0tCIVeHxvRKV/f1nj6OnMVoWOniEn2H6FhydIT+1a5QL3k7JAGVLAtpwqUQQcdsfT6XR8iw5xxrDg9Z2gnZ/DQRU8yqp2fHuJ7Rikt4t0TUbo2xMUJXJKueS1mz6jXGfSQtGfUkm15zj6eQyxKJZNETCjmc1OfkhinksrODU1jQv+XqOKnLAPh0v7zUk0eXPgScv9rJCyLfOfjJs8dn5rt6XSs0BAwBQ8AQGBqBYo36Rrff+Wx5+KKkhg29rjLww2ePz742tBUmaAgYAoaAIdATAXXUYfud7OwoiCzMfBpzfKQfkWXy2OJnmfjfivzTCOcB4aPLi/3/wsvuhyFgCBgChsDwCGCvPdL9t98xTh5d+ioAf6bU1c8oyz/2y2/+xenhuzdJQ8AQMAQMgUEIYH0LnuzsWHX4dK890h/4638fWb+850UGKP65HAB/NDK68ZD9+/gguK3eEDAEDIHrR0CXPiaOzL+MiOJ4v7J8fObpXmqmPv31O7md/jcAfyjKIMAro3uvfvLn//E3svfdDkPAEDAEDIGbjIA6at2Sl8EDZ78x83Iv/Qcf+/rdSSP9HjO/v5BB/NLy0rG/u56/lLnJ9ps6Q8AQMAR+5xEYKtfHwSPP3+/Q/Q8AHFBEZEepw79cXpr+2u88QjZAQ8AQMARuMQIDHfXU0ecfAnDfYoBRbytvMMAnzx6ffeUW227dGwKGgCGwIxAYkOtjYRYBngv/ciqAXARwf7Z8/NiPdgQ6NkhDwBAwBG4DBPr8C/n8vwLiP0YbZV914txH3l6a/sVtYLeZYAgYAobAjkFgk6P+4JPPNM5tNF8AhsMlFN7ME/7ouYXZ8zsGGRuoIWAIGAK3CQIVR71/9vk9Ixl+G6D8J7b8Ko+2//zss0+t3iY2mxmGgCFgCOwoBCqO+n2PvXBHnrZ/DMAfEBQQYP7ModNPwNxcPV3bjgLJBmsIGAKGwK1EYNPSh+yXdmn6BiB9ZXlp9vO30jjr2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",borderProps={...props,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:400,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{},gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1,titleMode:"type-1"},borderComponentProps=transformToComponentProps(borderProps),borderEvents=["click"],_sfc_main$8=vue.defineComponent({name:"EcanBorder",props:{...borderComponentProps},setup(c){const u=usePickComponentStyle(c,["background"]),f=vue.computed(()=>{const{isTransparent:_,gradientShow:re,gradientColor:Fn,gradientOffset:Bn,gradientAngle:w,backgroundColor:J}=c;if(re){let gn=Fn;return _&&(gn="transparent"),gn?{background:`linear-gradient(${w}, ${J}, ${gn} ${Bn*100}%)`}:{}}else return{}}),h=vue.computed(()=>{const{events:_}=c;let re={};return _!=null&&_.length&&_.find(Bn=>Bn.emit==="showModal")&&(re={cursor:"pointer"}),re}),{theme:d}=vue.inject(GLOBAL_CONFIG,{theme:"light"}),v=vue.computed(()=>{let _="";switch(c.titleMode){case"type-2":_="2";break}return _}),p=vue.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":__vite_glob_0_0,"../../assets/border-title-decoration-left2.png":__vite_glob_0_1})[`../../assets/border-title-decoration-left${v.value}.png`],self.location).href),m=vue.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":__vite_glob_1_0,"../../assets/border-title-decoration-right2.png":__vite_glob_1_1})[`../../assets/border-title-decoration-right${v.value}.png`],self.location).href),g=vue.computed(()=>({width:"100%",height:"100%"})),y=vue.computed(()=>{const{borderRadius:_}=c,re=[],Fn={};if(_){const Bn=_.split(",");for(const w of Bn)(+w||+w==0)&&re.push(+w+"px")}return re!=null&&re.length&&(Fn.borderRadius=re.join(" ")),Fn}),Pn=useEmitEvent(c)("click",()=>{}),b=vue.ref([]);vue.watch(()=>c.data,_=>{b.value=_},{immediate:!0,deep:!0}),useOnEvent(c,{click:Pn});const{setGlobalModel:vn}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(_,re)=>{}});return vn(c.id,{type:c.type,value:b}),{style:u,gradientStyle:f,click:Pn,borderStyle:g,theme:d,borderRadiusStyle:y,titleLeftIcon:p,titleRightIcon:m,cursorStyle:h}}}),Border_vue_vue_type_style_index_0_scoped_8dd53b8f_lang="",_withScopeId$1=c=>(vue.pushScopeId("data-v-8dd53b8f"),c=c(),vue.popScopeId(),c),_hoisted_1$6=["id"],_hoisted_2$3=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-left border-item"},null,-1)),_hoisted_3$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-right border-item"},null,-1)),_hoisted_4$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),_hoisted_5$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),_hoisted_6$1={class:"title-item"},_hoisted_7$1=["src"],_hoisted_8$1={class:"title"},_hoisted_9$1=["src"],_hoisted_10$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-left border-item"},null,-1)),_hoisted_11$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-right border-item"},null,-1)),_hoisted_12$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),_hoisted_13$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),_hoisted_14$1={key:2,class:"left-title"},_hoisted_15$1={class:"title"};function _sfc_render$a(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-border",style:vue.normalizeStyle({...c.style,...c.gradientStyle,...c.borderRadiusStyle,...c.cursorStyle}),onClick:u[0]||(u[0]=(...p)=>c.click&&c.click(...p)),id:"container_"+c.id},[c.mode==="no-title"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"no-title",style:vue.normalizeStyle(c.borderStyle)},[c.useBorderModify?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[_hoisted_2$3,_hoisted_3$1,_hoisted_4$1,_hoisted_5$1],64)):vue.createCommentVNode("",!0)],4)):vue.createCommentVNode("",!0),c.mode==="top-title"?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"top-title",style:vue.normalizeStyle(c.borderStyle)},[vue.createElementVNode("div",{class:vue.normalizeClass(["title-item-wrapper",c.titleMode])},[vue.createElementVNode("div",_hoisted_6$1,[vue.createElementVNode("img",{class:vue.normalizeClass(["title-decoration",c.titleMode]),src:c.titleLeftIcon},null,10,_hoisted_7$1),vue.createElementVNode("div",_hoisted_8$1,vue.toDisplayString(c.title),1),vue.createElementVNode("img",{class:vue.normalizeClass(["title-decoration",c.titleMode]),src:c.titleRightIcon},null,10,_hoisted_9$1)])],2),_hoisted_10$1,_hoisted_11$1,_hoisted_12$1,_hoisted_13$1],4)):vue.createCommentVNode("",!0),c.mode==="left-title"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14$1,[vue.createElementVNode("div",_hoisted_15$1,[vue.createElementVNode("span",null,vue.toDisplayString(c.title),1)])])):vue.createCommentVNode("",!0)],12,_hoisted_1$6)}const Border=_export_sfc$1(_sfc_main$8,[["render",_sfc_render$a],["__scopeId","data-v-8dd53b8f"]]),EcanBorder=withInstall$1(Border),tabsProps$1={...props,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,containIds:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px",isAutoScroll:!1,scrollSpeed:10,componentList:[],hideTabs:!1,gridTopPx:"0",gridBottomPx:"0",gridLeftPx:"0",gridRightPx:"0"},tabsComponentProps=transformToComponentProps(tabsProps$1),tabsEvents=["tabChange"],_sfc_main$7=vue.defineComponent({name:"EcanTabs",props:{...tabsComponentProps},components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,MarqueeScroll},setup(c){const u=usePickComponentStyle(c),f=vue.ref(0);vue.watch(()=>c.activeKey,Un=>{f.value=Un},{immediate:!0});const{pageMode:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),d=vue.inject("getContainerMap",()=>{}),v=vue.inject("componentList",[]),p=["ecanBorder","ecanTabs","ecanCirculate"],m=vue.computed(()=>d()||{}),g=Un=>{const Qn=vue.unref(m)[Un],Jn=[];if(Qn)for(const tr in Qn)for(const Xn of Qn[tr]){const ar=vue.unref(v).find(sr=>sr.id===Xn);Jn.push(Xn),p.includes(ar==null?void 0:ar.type)&&Jn.push(...g(Xn))}return Jn},y=vue.computed(()=>g(c.id));let x=null;const Pn=()=>{const Un=Array.isArray(vue.unref(vn))?vue.unref(vn).length-1:0;vue.unref(h)!=="design"&&!c.isAutoScroll&&c.autoSwitch&&Un>0&&(x=setInterval(()=>{const Qn=vue.unref(f)+1;Qn<=Un?f.value=Qn:f.value=0,_.value=vue.unref(vn)[vue.unref(f)],w()},c.autoSwitchInterval*1e3))},b=()=>{clearInterval(x)};vue.onMounted(()=>{vue.unref(h)!=="design"&&Pn()}),vue.onBeforeUnmount(()=>{b()});const vn=vue.ref([]),_=vue.ref({});vue.watch(()=>c.data,Un=>{vn.value=Un,_.value=Array.isArray(Un)&&Un.length>0?Un[0]:{}},{immediate:!0,deep:!0});const re=Un=>f.value===Un,Fn=useEmitEvent(c),{setGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(Un,Qn)=>{}});Bn(c.id,{RECORD:vue.unref(_),value:vue.unref(_),activeKey:f});const{emitRefreshPage:w}=vue.inject(REFRESH_PAGE,{emitRefreshPage:()=>{}}),J=Un=>{let{tab:Qn,index:Jn}=Un||{};if(Un.label){const tr=vue.unref(vn).findIndex(Xn=>Xn.title===Un.label);tr!==-1&&(Jn=tr,Qn=vue.unref(vn)[tr])}Fn("tabChange",()=>{!isNaN(+Jn)&&Jn!==vue.unref(f)&&(_.value=Qn,f.value=Jn,Bn(c.id,{RECORD:Qn,value:Qn,activeKey:Jn}),w())})()},gn=vue.computed(()=>{const Un=c.componentList.map(Qn=>parseFloat(Qn.left)+parseFloat(Qn.width)).sort((Qn,Jn)=>Jn-Qn)[0];return{width:Un?Un+"px":"100%"}}),Rn=()=>{vue.unref(h)!=="design"&&b()},zn=Un=>{var Qn,Jn;return Un?(Jn=(Qn=Un==null?void 0:Un.parentNode)==null?void 0:Qn.className)!=null&&Jn.includes("ecan-")?Un.parentNode.getAttribute("cpntid"):zn(Un.parentNode):""},Wn=Un=>{var Qn;if(vue.unref(h)!=="design"){const Jn=(Un==null?void 0:Un.toElement)||{};if((Qn=Jn==null?void 0:Jn.className)!=null&&Qn.includes("ecan-"))vue.unref(y).includes(Jn.getAttribute("cpntid"))||Pn();else if((Jn==null?void 0:Jn.className)==="page-config")Pn();else{const tr=zn(Jn);vue.unref(y).includes(tr)||Pn()}}};return useOnEvent(c,{tabChange:J}),{style:u,activeKey:f,isActive:re,tabChange:J,myData:vn,useImagePath,pageMode:h,scrollWrapStyle:gn,onMouseEnter:Rn,onMouseLeave:Wn}}}),Tabs_vue_vue_type_style_index_0_scoped_c936183e_lang="",_hoisted_1$5=["id"],_hoisted_2$2=["onClick"];function _sfc_render$9(c,u,f,h,d,v){const p=vue.resolveComponent("a-select-option"),m=vue.resolveComponent("a-select"),g=vue.resolveComponent("marquee-scroll");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tabs",style:vue.normalizeStyle(c.style),id:"container_"+c.id,onMouseenter:u[0]||(u[0]=(...y)=>c.onMouseEnter&&c.onMouseEnter(...y)),onMouseleave:u[1]||(u[1]=(...y)=>c.onMouseLeave&&c.onMouseLeave(...y))},[c.pageMode==="design"||!c.isAutoScroll?vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{key:0,class:"tabs-header",style:vue.normalizeStyle({fontSize:c.tabFontSize,alignItems:c.tabAlignItems,justifyContent:c.tabJustifyContent,flexDirection:c.tabFlexDirection,margin:`${c.gridTopPx||0} ${c.gridRightPx||0} ${c.gridBottomPx||0} ${c.gridLeftPx||0}`})},[c.tabType==="tabs"?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(c.myData,(y,x)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`5px ${c.tabHorizontalPadding}`,color:c.isActive(x)?c.activeTabColor:c.tabColor,backgroundImage:c.isActive(x)?c.useImagePath(c.activeTabBackgroundImage,!0):c.useImagePath(c.tabBackgroundImage,!0),marginRight:c.tabFlexDirection==="row"?c.tabBarGutter:null,marginBottom:c.tabFlexDirection==="column"?c.tabBarGutter:null,fontWeight:c.tabFontWeight}),key:x,onClick:vue.withModifiers(Pn=>c.tabChange({tab:y,index:x}),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!c.activeTabBackgroundImage&&!c.tabBackgroundImage?`1px solid ${c.isActive(x)?c.activeTabColor:"transparent"}`:""})},vue.toDisplayString(y.title),5)],12,_hoisted_2$2))),128)):c.tabType==="select"?(vue.openBlock(),vue.createBlock(m,{key:1,value:c.activeKey,style:vue.normalizeStyle({width:c.tabWidth})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myData,(y,x)=>(vue.openBlock(),vue.createBlock(p,{key:x,value:x,onClick:Pn=>c.tabChange({tab:y,index:x})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(y.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):vue.createCommentVNode("",!0)],4)),[[vue.vShow,c.pageMode==="design"||!c.hideTabs]]):vue.createCommentVNode("",!0),c.pageMode!=="design"&&c.isAutoScroll?(vue.openBlock(),vue.createBlock(g,{key:1,visible:c.isAutoScroll,step:c.scrollSpeed,vertical:!1,style:vue.normalizeStyle({height:c.height})},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(c.scrollWrapStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.componentList,y=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:y.id},y)),null,16))),128))],4)]),_:1},8,["visible","step","style"])):vue.createCommentVNode("",!0)],44,_hoisted_1$5)}const Tabs$1=_export_sfc$1(_sfc_main$7,[["render",_sfc_render$9],["__scopeId","data-v-c936183e"]]),EcanTabs=withInstall$1(Tabs$1),circulateProps={...props,name:"循环列表",type:"ecanCirculate",keyName:"循环列表",width:"300px",height:"300px",zIndex:0,borderColor:"#eee",borderStyle:"solid",borderWidth:"2px",graphicConfig:{},isAutoScroll:!1,scrollSpeed:10,componentList:[],data:[],dataType:"indicator",keyFieldMap:[],unitInterval:15,backgroundColor:"#ffffff",colNum:null,scrollDirection:"horizontal"},circulateComponentProps=transformToComponentProps(circulateProps),circulateEvents=["click","refreshData","resetRecord"];let nanoid=(c=21)=>crypto.getRandomValues(new Uint8Array(c)).reduce((u,f)=>(f&=63,f<36?u+=f.toString(36):f<62?u+=(f-26).toString(36).toUpperCase():f>62?u+="-":u+="_",u),"");const _sfc_main$6=vue.defineComponent({name:"EcanCirculate",props:{...circulateComponentProps,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll,Skeleton},setup(c,{expose:u}){const f=vue.ref(!1),h=usePickComponentStyle(c,["background"]),d=vue.inject("usedComponentList",[]),v=vue.inject("isMobile",!1),{getGlobalModel:p,setGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Un=>{},setGlobalModel:(Un,Qn)=>{}}),g=vue.ref([]),y=vue.ref({}),{pageMode:x}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),Pn=vue.computed(()=>{if(vue.unref(v)){const Un=document.body.clientWidth,Qn=c.sourceWidth||parseFloat(c.width);return Un/Qn||1}else return 1});function b(Un,Qn){const Jn=Qn.find(tr=>tr.id===c.id);if(Jn)for(const tr of Un)tr.left=parseFloat(tr.left)-parseFloat(Jn.sourceLeft||Jn.left)+"px",tr.top=parseFloat(tr.top)-parseFloat(Jn.sourceTop||Jn.top)+"px"}const vn=Un=>{const Qn=Un.sort((ar,sr)=>parseFloat(ar.top)-parseFloat(sr.top))[0],Jn=Un.sort((ar,sr)=>parseFloat(ar.left)-parseFloat(sr.left))[0],tr=Un.map(ar=>parseFloat(ar.left)+parseFloat(ar.width)).sort((ar,sr)=>sr-ar)[0],Xn=Un.map(ar=>parseFloat(ar.top)+parseFloat(ar.height)).sort((ar,sr)=>sr-ar)[0];if(Jn&&tr&&Qn&&Xn){const ar=parseFloat(Jn.left),sr=parseFloat(Qn.top);return{width:tr-ar,height:Xn-sr,left:ar}}else return{width:0,height:0,left:0}},_=vue.ref({}),re=Un=>{var Gn,Zn;const Qn=[],{graphicConfig:Jn,id:tr,componentList:Xn,keyFieldMap:ar,unitInterval:sr,colNum:nr}=c;let Hn=lodashEs.cloneDeep(Xn),Yn=[];if((Gn=vue.unref(d))!=null&&Gn.length)for(const qn of vue.unref(d))Yn.push(qn),(Zn=qn==null?void 0:qn.componentList)!=null&&Zn.length&&Yn.push(...qn.componentList);if(Jn.pageMode==="design"&&Jn.preview){const{containerMap:qn}=Jn.pageConfig||{};Yn=Jn.componentList||[],Yn.push(c),Hn=moveToComponentList(qn,lodashEs.cloneDeep(Yn),tr)}b(Hn,Yn);const Vn=vn(Hn);if(Un!=null&&Un.length){const{width:qn,left:er,height:ir}=Vn;let Kn=0,or=0;Un.forEach((cr,hr)=>{cr.index=hr+1;const dr=nanoid(),lr=lodashEs.cloneDeep(Hn);for(const fr of lr){const mr=ar.find(gr=>gr.keyName===fr.keyName),pr=nanoid();if(fr.left=(parseFloat(fr.left)+Kn)*vue.unref(Pn)+"px",fr.top=(parseFloat(fr.top)+or)*vue.unref(Pn)+"px",fr.scale=vue.unref(Pn),fr.id=pr,fr.keyName=fr.name+"_"+pr,fr.unitId=dr,mr!=null&&mr.fieldName){const gr=fr.text.match(/\{(.+?)\}/g);switch(fr.type){case"ecanText":{fr.data={value:String(cr[mr.fieldName])},gr!=null&&gr.length||(fr.text="{value}");break}case"ecanProportion":{fr.data={percent:String(cr[mr.fieldName])},gr!=null&&gr.length||(fr.text="{percent}");break}}}}nr&&cr.index%nr===0?(Kn=0,or+=sr+ir):Kn+=sr+qn,Qn.push(...lr),_.value[dr]=cr}),y.value={width:((nr||Un.length)*(qn+sr)+er)*vue.unref(Pn)+"px",height:(nr?Math.ceil(Un.length/nr)*(sr+ir):sr+ir)*vue.unref(Pn)+"px"}}g.value=Qn},Fn=Un=>{var Jn;const{rows:Qn=[]}=((Jn=Un==null?void 0:Un.data)==null?void 0:Jn.data)??{};re(Qn)},Bn=useIndicatorData(c,Fn),w=async()=>{try{f.value=!0;const Un=await Bn();Fn(Un)}catch(Un){console.error(Un)}finally{f.value=!1}},J=()=>{switch(c.dataType){case"indicator":w();break}};useOnEvent(c,{refreshData:J,resetRecord:()=>{const Un=c.id,Qn=p(Un);m(Un,{...Qn,RECORD:""})}}),u({refreshData:J}),m(c.id,{type:c.type,RECORD:""});const{setRequest:Rn}=vue.inject(REQUEST_MODEL,{setRequest:Un=>{}});typeof Rn=="function"&&Rn({id:c.id,requestFn:J,sortNum:c.requestSort});const zn=useEmitEvent(c);return{loading:f,style:h,myComponentList:g,scrollWrapStyle:y,pageMode:x,click:Un=>{let Qn=Un.target;if(Qn){let Jn=Qn.getAttribute("unitId");for(;!Jn&&!Qn.className.includes("ecan-");)Qn=Qn.parentElement,Jn=Qn.getAttribute("unitId");Jn&&zn("click",()=>{const tr=p(c.id);m(c.id,{...tr,type:c.type,RECORD:vue.unref(_)[Jn]})})()}}}}}),Circulate_vue_vue_type_style_index_0_scoped_85608bec_lang="",_hoisted_1$4=["id"];function _sfc_render$8(c,u,f,h,d,v){const p=vue.resolveComponent("marquee-scroll"),m=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-circulate",style:vue.normalizeStyle(c.style),id:"container_"+c.id,onClick:u[0]||(u[0]=(...g)=>c.click&&c.click(...g))},[vue.createVNode(m,{loading:c.loading},{default:vue.withCtx(()=>{var g;return[(g=c.myComponentList)!=null&&g.length?(vue.openBlock(),vue.createBlock(p,{key:0,visible:c.pageMode!=="design"&&c.isAutoScroll,step:c.scrollSpeed,vertical:c.scrollDirection==="vertical",marqueeStyle:{height:"100%"},wrapStyle:{height:"100%",overflow:"auto"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(c.scrollWrapStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myComponentList,y=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:y.id},y)),null,16))),128))],4)]),_:1},8,["visible","step","vertical"])):vue.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,_hoisted_1$4)}const Circulate=_export_sfc$1(_sfc_main$6,[["render",_sfc_render$8],["__scopeId","data-v-85608bec"]]),EcanCirculate=withInstall$1(Circulate),templateProps={...props,name:"模板",type:"ecanTemplate",keyName:"模板",width:"300px",height:"300px",borderColor:"#eee",borderRadius:"5",borderWidth:"2px",borderStyle:"solid",pageId:""},templateComponentProps=transformToComponentProps(templateProps),templateEvents=["refreshData"],_sfc_main$5=vue.defineComponent({name:"EcanTemplate",props:{...templateComponentProps},components:{},setup(c){const u=usePickComponentStyle(c,["background"]),{templateEmit:f}=vue.inject("templateOperate",{templateEmit:(d,v)=>{}})||{};return useOnEvent(c,{refreshData:()=>{f("refreshTemplate",c.pageId)}}),{style:u}}});function _sfc_render$7(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-template",style:vue.normalizeStyle(c.style)},[vue.renderSlot(c.$slots,"default")],4)}const Template=_export_sfc$1(_sfc_main$5,[["render",_sfc_render$7]]),EcanTemplate=withInstall$1(Template),imageProps={...props,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1,borderRadius:"",isAnimation:!1,animationSource:{name:"",directory:""},actionType:"link",isDrillShow:!1,targetTemplate:"",transParams:[]},imageComponentProps=transformToComponentProps(imageProps),imageEvents=["click"];var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(c,u){module.exports=u()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(u){_useWebWorker=!!u},getWebWorker=function(){return _useWebWorker},setLocationHref=function(u){locationHref=u},getLocationHref=function(){return locationHref};function createTag(c){return document.createElement(c)}function extendPrototype(c,u){var f,h=c.length,d;for(f=0;f<h;f+=1){d=c[f].prototype;for(var v in d)Object.prototype.hasOwnProperty.call(d,v)&&(u.prototype[v]=d[v])}}function getDescriptor(c,u){return Object.getOwnPropertyDescriptor(c,u)}function createProxyFunction(c){function u(){}return u.prototype=c,u}var audioControllerFactory=function(){function c(u){this.audios=[],this.audioFactory=u,this._volume=1,this._isMuted=!1}return c.prototype={addAudio:function(f){this.audios.push(f)},pause:function(){var f,h=this.audios.length;for(f=0;f<h;f+=1)this.audios[f].pause()},resume:function(){var f,h=this.audios.length;for(f=0;f<h;f+=1)this.audios[f].resume()},setRate:function(f){var h,d=this.audios.length;for(h=0;h<d;h+=1)this.audios[h].setRate(f)},createAudio:function(f){return this.audioFactory?this.audioFactory(f):window.Howl?new window.Howl({src:[f]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(f){this.audioFactory=f},setVolume:function(f){this._volume=f,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var f,h=this.audios.length;for(f=0;f<h;f+=1)this.audios[f].volume(this._volume*(this._isMuted?0:1))}},function(){return new c}}(),createTypedArray=function(){function c(f,h){var d=0,v=[],p;switch(f){case"int16":case"uint8c":p=1;break;default:p=1.1;break}for(d=0;d<h;d+=1)v.push(p);return v}function u(f,h){return f==="float32"?new Float32Array(h):f==="int16"?new Int16Array(h):f==="uint8c"?new Uint8ClampedArray(h):c(f,h)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?u:c}();function createSizedArray(c){return Array.apply(null,{length:c})}function _typeof$6(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(f){return typeof f}:_typeof$6=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$6(c)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var c=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],u,f=c.length;for(u=0;u<f;u+=1)BMMath[c[u]]=Math[c[u]]})(),BMMath.random=Math.random,BMMath.abs=function(c){var u=_typeof$6(c);if(u==="object"&&c.length){var f=createSizedArray(c.length),h,d=c.length;for(h=0;h<d;h+=1)f[h]=Math.abs(c[h]);return f}return Math.abs(c)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(c){c.style.position="absolute",c.style.top=0,c.style.left=0,c.style.display="block",c.style.transformOrigin="0 0",c.style.webkitTransformOrigin="0 0",c.style.backfaceVisibility="visible",c.style.webkitBackfaceVisibility="visible",c.style.transformStyle="preserve-3d",c.style.webkitTransformStyle="preserve-3d",c.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(c,u,f,h){this.type=c,this.currentTime=u,this.totalTime=f,this.direction=h<0?-1:1}function BMCompleteEvent(c,u){this.type=c,this.direction=u<0?-1:1}function BMCompleteLoopEvent(c,u,f,h){this.type=c,this.currentLoop=f,this.totalLoops=u,this.direction=h<0?-1:1}function BMSegmentStartEvent(c,u,f){this.type=c,this.firstFrame=u,this.totalFrames=f}function BMDestroyEvent(c,u){this.type=c,this.target=u}function BMRenderFrameErrorEvent(c,u){this.type="renderFrameError",this.nativeError=c,this.currentTime=u}function BMConfigErrorEvent(c){this.type="configError",this.nativeError=c}var createElementID=function(){var c=0;return function(){return c+=1,idPrefix$1+"__lottie_element_"+c}}();function HSVtoRGB(c,u,f){var h,d,v,p,m,g,y,x;switch(p=Math.floor(c*6),m=c*6-p,g=f*(1-u),y=f*(1-m*u),x=f*(1-(1-m)*u),p%6){case 0:h=f,d=x,v=g;break;case 1:h=y,d=f,v=g;break;case 2:h=g,d=f,v=x;break;case 3:h=g,d=y,v=f;break;case 4:h=x,d=g,v=f;break;case 5:h=f,d=g,v=y;break}return[h,d,v]}function RGBtoHSV(c,u,f){var h=Math.max(c,u,f),d=Math.min(c,u,f),v=h-d,p,m=h===0?0:v/h,g=h/255;switch(h){case d:p=0;break;case c:p=u-f+v*(u<f?6:0),p/=6*v;break;case u:p=f-c+v*2,p/=6*v;break;case f:p=c-u+v*4,p/=6*v;break}return[p,m,g]}function addSaturationToRGB(c,u){var f=RGBtoHSV(c[0]*255,c[1]*255,c[2]*255);return f[1]+=u,f[1]>1?f[1]=1:f[1]<=0&&(f[1]=0),HSVtoRGB(f[0],f[1],f[2])}function addBrightnessToRGB(c,u){var f=RGBtoHSV(c[0]*255,c[1]*255,c[2]*255);return f[2]+=u,f[2]>1?f[2]=1:f[2]<0&&(f[2]=0),HSVtoRGB(f[0],f[1],f[2])}function addHueToRGB(c,u){var f=RGBtoHSV(c[0]*255,c[1]*255,c[2]*255);return f[0]+=u/360,f[0]>1?f[0]-=1:f[0]<0&&(f[0]+=1),HSVtoRGB(f[0],f[1],f[2])}var rgbToHex=function(){var c=[],u,f;for(u=0;u<256;u+=1)f=u.toString(16),c[u]=f.length===1?"0"+f:f;return function(h,d,v){return h<0&&(h=0),d<0&&(d=0),v<0&&(v=0),"#"+c[h]+c[d]+c[v]}}(),setSubframeEnabled=function(u){subframeEnabled=!!u},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(u){expressionsPlugin=u},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(u){expressionsInterfaces=u},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(u){defaultCurveSegments=u},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(u){idPrefix$1=u};function createNS(c){return document.createElementNS(svgNS,c)}function _typeof$5(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(f){return typeof f}:_typeof$5=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$5(c)}var dataManager=function(){var c=1,u=[],f,h,d={onmessage:function(){},postMessage:function(vn){f({data:vn})}},v={postMessage:function(vn){d.onmessage({data:vn})}};function p(b){if(window.Worker&&window.Blob&&getWebWorker()){var vn=new Blob(["var _workerSelf = self; self.onmessage = ",b.toString()],{type:"text/javascript"}),_=URL.createObjectURL(vn);return new Worker(_)}return f=b,d}function m(){h||(h=p(function(vn){function _(){function Fn(nr,Hn){var Yn,Vn,Gn=nr.length,Zn,qn,er,ir;for(Vn=0;Vn<Gn;Vn+=1)if(Yn=nr[Vn],"ks"in Yn&&!Yn.completed){if(Yn.completed=!0,Yn.hasMask){var Kn=Yn.masksProperties;for(qn=Kn.length,Zn=0;Zn<qn;Zn+=1)if(Kn[Zn].pt.k.i)Rn(Kn[Zn].pt.k);else for(ir=Kn[Zn].pt.k.length,er=0;er<ir;er+=1)Kn[Zn].pt.k[er].s&&Rn(Kn[Zn].pt.k[er].s[0]),Kn[Zn].pt.k[er].e&&Rn(Kn[Zn].pt.k[er].e[0])}Yn.ty===0?(Yn.layers=J(Yn.refId,Hn),Fn(Yn.layers,Hn)):Yn.ty===4?gn(Yn.shapes):Yn.ty===5&&ar(Yn)}}function Bn(nr,Hn){if(nr){var Yn=0,Vn=nr.length;for(Yn=0;Yn<Vn;Yn+=1)nr[Yn].t===1&&(nr[Yn].data.layers=J(nr[Yn].data.refId,Hn),Fn(nr[Yn].data.layers,Hn))}}function w(nr,Hn){for(var Yn=0,Vn=Hn.length;Yn<Vn;){if(Hn[Yn].id===nr)return Hn[Yn];Yn+=1}return null}function J(nr,Hn){var Yn=w(nr,Hn);return Yn?Yn.layers.__used?JSON.parse(JSON.stringify(Yn.layers)):(Yn.layers.__used=!0,Yn.layers):null}function gn(nr){var Hn,Yn=nr.length,Vn,Gn;for(Hn=Yn-1;Hn>=0;Hn-=1)if(nr[Hn].ty==="sh")if(nr[Hn].ks.k.i)Rn(nr[Hn].ks.k);else for(Gn=nr[Hn].ks.k.length,Vn=0;Vn<Gn;Vn+=1)nr[Hn].ks.k[Vn].s&&Rn(nr[Hn].ks.k[Vn].s[0]),nr[Hn].ks.k[Vn].e&&Rn(nr[Hn].ks.k[Vn].e[0]);else nr[Hn].ty==="gr"&&gn(nr[Hn].it)}function Rn(nr){var Hn,Yn=nr.i.length;for(Hn=0;Hn<Yn;Hn+=1)nr.i[Hn][0]+=nr.v[Hn][0],nr.i[Hn][1]+=nr.v[Hn][1],nr.o[Hn][0]+=nr.v[Hn][0],nr.o[Hn][1]+=nr.v[Hn][1]}function zn(nr,Hn){var Yn=Hn?Hn.split("."):[100,100,100];return nr[0]>Yn[0]?!0:Yn[0]>nr[0]?!1:nr[1]>Yn[1]?!0:Yn[1]>nr[1]?!1:nr[2]>Yn[2]?!0:Yn[2]>nr[2]?!1:null}var Wn=function(){var nr=[4,4,14];function Hn(Vn){var Gn=Vn.t.d;Vn.t.d={k:[{s:Gn,t:0}]}}function Yn(Vn){var Gn,Zn=Vn.length;for(Gn=0;Gn<Zn;Gn+=1)Vn[Gn].ty===5&&Hn(Vn[Gn])}return function(Vn){if(zn(nr,Vn.v)&&(Yn(Vn.layers),Vn.assets)){var Gn,Zn=Vn.assets.length;for(Gn=0;Gn<Zn;Gn+=1)Vn.assets[Gn].layers&&Yn(Vn.assets[Gn].layers)}}}(),Un=function(){var nr=[4,7,99];return function(Hn){if(Hn.chars&&!zn(nr,Hn.v)){var Yn,Vn=Hn.chars.length;for(Yn=0;Yn<Vn;Yn+=1){var Gn=Hn.chars[Yn];Gn.data&&Gn.data.shapes&&(gn(Gn.data.shapes),Gn.data.ip=0,Gn.data.op=99999,Gn.data.st=0,Gn.data.sr=1,Gn.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},Hn.chars[Yn].t||(Gn.data.shapes.push({ty:"no"}),Gn.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),Qn=function(){var nr=[5,7,15];function Hn(Vn){var Gn=Vn.t.p;typeof Gn.a=="number"&&(Gn.a={a:0,k:Gn.a}),typeof Gn.p=="number"&&(Gn.p={a:0,k:Gn.p}),typeof Gn.r=="number"&&(Gn.r={a:0,k:Gn.r})}function Yn(Vn){var Gn,Zn=Vn.length;for(Gn=0;Gn<Zn;Gn+=1)Vn[Gn].ty===5&&Hn(Vn[Gn])}return function(Vn){if(zn(nr,Vn.v)&&(Yn(Vn.layers),Vn.assets)){var Gn,Zn=Vn.assets.length;for(Gn=0;Gn<Zn;Gn+=1)Vn.assets[Gn].layers&&Yn(Vn.assets[Gn].layers)}}}(),Jn=function(){var nr=[4,1,9];function Hn(Vn){var Gn,Zn=Vn.length,qn,er;for(Gn=0;Gn<Zn;Gn+=1)if(Vn[Gn].ty==="gr")Hn(Vn[Gn].it);else if(Vn[Gn].ty==="fl"||Vn[Gn].ty==="st")if(Vn[Gn].c.k&&Vn[Gn].c.k[0].i)for(er=Vn[Gn].c.k.length,qn=0;qn<er;qn+=1)Vn[Gn].c.k[qn].s&&(Vn[Gn].c.k[qn].s[0]/=255,Vn[Gn].c.k[qn].s[1]/=255,Vn[Gn].c.k[qn].s[2]/=255,Vn[Gn].c.k[qn].s[3]/=255),Vn[Gn].c.k[qn].e&&(Vn[Gn].c.k[qn].e[0]/=255,Vn[Gn].c.k[qn].e[1]/=255,Vn[Gn].c.k[qn].e[2]/=255,Vn[Gn].c.k[qn].e[3]/=255);else Vn[Gn].c.k[0]/=255,Vn[Gn].c.k[1]/=255,Vn[Gn].c.k[2]/=255,Vn[Gn].c.k[3]/=255}function Yn(Vn){var Gn,Zn=Vn.length;for(Gn=0;Gn<Zn;Gn+=1)Vn[Gn].ty===4&&Hn(Vn[Gn].shapes)}return function(Vn){if(zn(nr,Vn.v)&&(Yn(Vn.layers),Vn.assets)){var Gn,Zn=Vn.assets.length;for(Gn=0;Gn<Zn;Gn+=1)Vn.assets[Gn].layers&&Yn(Vn.assets[Gn].layers)}}}(),tr=function(){var nr=[4,4,18];function Hn(Vn){var Gn,Zn=Vn.length,qn,er;for(Gn=Zn-1;Gn>=0;Gn-=1)if(Vn[Gn].ty==="sh")if(Vn[Gn].ks.k.i)Vn[Gn].ks.k.c=Vn[Gn].closed;else for(er=Vn[Gn].ks.k.length,qn=0;qn<er;qn+=1)Vn[Gn].ks.k[qn].s&&(Vn[Gn].ks.k[qn].s[0].c=Vn[Gn].closed),Vn[Gn].ks.k[qn].e&&(Vn[Gn].ks.k[qn].e[0].c=Vn[Gn].closed);else Vn[Gn].ty==="gr"&&Hn(Vn[Gn].it)}function Yn(Vn){var Gn,Zn,qn=Vn.length,er,ir,Kn,or;for(Zn=0;Zn<qn;Zn+=1){if(Gn=Vn[Zn],Gn.hasMask){var cr=Gn.masksProperties;for(ir=cr.length,er=0;er<ir;er+=1)if(cr[er].pt.k.i)cr[er].pt.k.c=cr[er].cl;else for(or=cr[er].pt.k.length,Kn=0;Kn<or;Kn+=1)cr[er].pt.k[Kn].s&&(cr[er].pt.k[Kn].s[0].c=cr[er].cl),cr[er].pt.k[Kn].e&&(cr[er].pt.k[Kn].e[0].c=cr[er].cl)}Gn.ty===4&&Hn(Gn.shapes)}}return function(Vn){if(zn(nr,Vn.v)&&(Yn(Vn.layers),Vn.assets)){var Gn,Zn=Vn.assets.length;for(Gn=0;Gn<Zn;Gn+=1)Vn.assets[Gn].layers&&Yn(Vn.assets[Gn].layers)}}}();function Xn(nr){nr.__complete||(Jn(nr),Wn(nr),Un(nr),Qn(nr),tr(nr),Fn(nr.layers,nr.assets),Bn(nr.chars,nr.assets),nr.__complete=!0)}function ar(nr){nr.t.a.length===0&&"m"in nr.t.p}var sr={};return sr.completeData=Xn,sr.checkColors=Jn,sr.checkChars=Un,sr.checkPathProperties=Qn,sr.checkShapes=tr,sr.completeLayers=Fn,sr}if(v.dataManager||(v.dataManager=_()),v.assetLoader||(v.assetLoader=function(){function Fn(w){var J=w.getResponseHeader("content-type");return J&&w.responseType==="json"&&J.indexOf("json")!==-1||w.response&&_typeof$5(w.response)==="object"?w.response:w.response&&typeof w.response=="string"?JSON.parse(w.response):w.responseText?JSON.parse(w.responseText):null}function Bn(w,J,gn,Rn){var zn,Wn=new XMLHttpRequest;try{Wn.responseType="json"}catch{}Wn.onreadystatechange=function(){if(Wn.readyState===4)if(Wn.status===200)zn=Fn(Wn),gn(zn);else try{zn=Fn(Wn),gn(zn)}catch(Un){Rn&&Rn(Un)}};try{Wn.open(["G","E","T"].join(""),w,!0)}catch{Wn.open(["G","E","T"].join(""),J+"/"+w,!0)}Wn.send()}return{load:Bn}}()),vn.data.type==="loadAnimation")v.assetLoader.load(vn.data.path,vn.data.fullPath,function(Fn){v.dataManager.completeData(Fn),v.postMessage({id:vn.data.id,payload:Fn,status:"success"})},function(){v.postMessage({id:vn.data.id,status:"error"})});else if(vn.data.type==="complete"){var re=vn.data.animation;v.dataManager.completeData(re),v.postMessage({id:vn.data.id,payload:re,status:"success"})}else vn.data.type==="loadData"&&v.assetLoader.load(vn.data.path,vn.data.fullPath,function(Fn){v.postMessage({id:vn.data.id,payload:Fn,status:"success"})},function(){v.postMessage({id:vn.data.id,status:"error"})})}),h.onmessage=function(b){var vn=b.data,_=vn.id,re=u[_];u[_]=null,vn.status==="success"?re.onComplete(vn.payload):re.onError&&re.onError()})}function g(b,vn){c+=1;var _="processId_"+c;return u[_]={onComplete:b,onError:vn},_}function y(b,vn,_){m();var re=g(vn,_);h.postMessage({type:"loadAnimation",path:b,fullPath:window.location.origin+window.location.pathname,id:re})}function x(b,vn,_){m();var re=g(vn,_);h.postMessage({type:"loadData",path:b,fullPath:window.location.origin+window.location.pathname,id:re})}function Pn(b,vn,_){m();var re=g(vn,_);h.postMessage({type:"complete",animation:b,id:re})}return{loadAnimation:y,loadData:x,completeAnimation:Pn}}(),ImagePreloader=function(){var c=function(){var Bn=createTag("canvas");Bn.width=1,Bn.height=1;var w=Bn.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),Bn}();function u(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function f(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function h(Bn,w,J){var gn="";if(Bn.e)gn=Bn.p;else if(w){var Rn=Bn.p;Rn.indexOf("images/")!==-1&&(Rn=Rn.split("/")[1]),gn=w+Rn}else gn=J,gn+=Bn.u?Bn.u:"",gn+=Bn.p;return gn}function d(Bn){var w=0,J=setInterval((function(){var gn=Bn.getBBox();(gn.width||w>500)&&(this._imageLoaded(),clearInterval(J)),w+=1}).bind(this),50)}function v(Bn){var w=h(Bn,this.assetsPath,this.path),J=createNS("image");isSafari?this.testImageLoaded(J):J.addEventListener("load",this._imageLoaded,!1),J.addEventListener("error",(function(){gn.img=c,this._imageLoaded()}).bind(this),!1),J.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(J):this._elementHelper.appendChild(J);var gn={img:J,assetData:Bn};return gn}function p(Bn){var w=h(Bn,this.assetsPath,this.path),J=createTag("img");J.crossOrigin="anonymous",J.addEventListener("load",this._imageLoaded,!1),J.addEventListener("error",(function(){gn.img=c,this._imageLoaded()}).bind(this),!1),J.src=w;var gn={img:J,assetData:Bn};return gn}function m(Bn){var w={assetData:Bn},J=h(Bn,this.assetsPath,this.path);return dataManager.loadData(J,(function(gn){w.img=gn,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function g(Bn,w){this.imagesLoadedCb=w;var J,gn=Bn.length;for(J=0;J<gn;J+=1)Bn[J].layers||(!Bn[J].t||Bn[J].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(Bn[J]))):Bn[J].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Bn[J]))))}function y(Bn){this.path=Bn||""}function x(Bn){this.assetsPath=Bn||""}function Pn(Bn){for(var w=0,J=this.images.length;w<J;){if(this.images[w].assetData===Bn)return this.images[w].img;w+=1}return null}function b(){this.imagesLoadedCb=null,this.images.length=0}function vn(){return this.totalImages===this.loadedAssets}function _(){return this.totalFootages===this.loadedFootagesCount}function re(Bn,w){Bn==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function Fn(){this._imageLoaded=u.bind(this),this._footageLoaded=f.bind(this),this.testImageLoaded=d.bind(this),this.createFootageData=m.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return Fn.prototype={loadAssets:g,setAssetsPath:x,setPath:y,loadedImages:vn,loadedFootages:_,destroy:b,getAsset:Pn,createImgData:p,createImageData:v,imageLoaded:u,footageLoaded:f,setCacheType:re},Fn}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(u,f){if(this._cbs[u])for(var h=this._cbs[u],d=0;d<h.length;d+=1)h[d](f)},addEventListener:function(u,f){return this._cbs[u]||(this._cbs[u]=[]),this._cbs[u].push(f),(function(){this.removeEventListener(u,f)}).bind(this)},removeEventListener:function(u,f){if(!f)this._cbs[u]=null;else if(this._cbs[u]){for(var h=0,d=this._cbs[u].length;h<d;)this._cbs[u][h]===f&&(this._cbs[u].splice(h,1),h-=1,d-=1),h+=1;this._cbs[u].length||(this._cbs[u]=null)}}};var markerParser=function(){function c(u){for(var f=u.split(`\r
|
|
123
|
-
`),h={},d,v=0,p=0;p<f.length;p+=1)d=f[p].split(":"),d.length===2&&(h[d[0]]=d[1].trim(),v+=1);if(v===0)throw new Error;return h}return function(u){for(var f=[],h=0;h<u.length;h+=1){var d=u[h],v={time:d.tm,duration:d.dr};try{v.payload=JSON.parse(u[h].cm)}catch{try{v.payload=c(u[h].cm)}catch{v.payload={name:u[h].cm}}}f.push(v)}return f}}(),ProjectInterface=function(){function c(u){this.compositions.push(u)}return function(){function u(f){for(var h=0,d=this.compositions.length;h<d;){if(this.compositions[h].data&&this.compositions[h].data.nm===f)return this.compositions[h].prepareFrame&&this.compositions[h].data.xt&&this.compositions[h].prepareFrame(this.currentFrame),this.compositions[h].compInterface;h+=1}return null}return u.compositions=[],u.currentFrame=0,u.registerComposition=c,u}}(),renderers={},registerRenderer=function(u,f){renderers[u]=f};function getRenderer(c){return renderers[c]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var c in renderers)if(renderers[c])return c;return""}function _typeof$4(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(f){return typeof f}:_typeof$4=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$4(c)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(c){(c.wrapper||c.container)&&(this.wrapper=c.wrapper||c.container);var u="svg";c.animType?u=c.animType:c.renderer&&(u=c.renderer);var f=getRenderer(u);this.renderer=new f(this,c.rendererSettings),this.imagePreloader.setCacheType(u,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=u,c.loop===""||c.loop===null||c.loop===void 0||c.loop===!0?this.loop=!0:c.loop===!1?this.loop=!1:this.loop=parseInt(c.loop,10),this.autoplay="autoplay"in c?c.autoplay:!0,this.name=c.name?c.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(c,"autoloadSegments")?c.autoloadSegments:!0,this.assetsPath=c.assetsPath,this.initialSegment=c.initialSegment,c.audioFactory&&this.audioController.setAudioFactory(c.audioFactory),c.animationData?this.setupAnimation(c.animationData):c.path&&(c.path.lastIndexOf("\\")!==-1?this.path=c.path.substr(0,c.path.lastIndexOf("\\")+1):this.path=c.path.substr(0,c.path.lastIndexOf("/")+1),this.fileName=c.path.substr(c.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(c.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(c){dataManager.completeAnimation(c,this.configAnimation)},AnimationItem.prototype.setData=function(c,u){u&&_typeof$4(u)!=="object"&&(u=JSON.parse(u));var f={wrapper:c,animationData:u},h=c.attributes;f.path=h.getNamedItem("data-animation-path")?h.getNamedItem("data-animation-path").value:h.getNamedItem("data-bm-path")?h.getNamedItem("data-bm-path").value:h.getNamedItem("bm-path")?h.getNamedItem("bm-path").value:"",f.animType=h.getNamedItem("data-anim-type")?h.getNamedItem("data-anim-type").value:h.getNamedItem("data-bm-type")?h.getNamedItem("data-bm-type").value:h.getNamedItem("bm-type")?h.getNamedItem("bm-type").value:h.getNamedItem("data-bm-renderer")?h.getNamedItem("data-bm-renderer").value:h.getNamedItem("bm-renderer")?h.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var d=h.getNamedItem("data-anim-loop")?h.getNamedItem("data-anim-loop").value:h.getNamedItem("data-bm-loop")?h.getNamedItem("data-bm-loop").value:h.getNamedItem("bm-loop")?h.getNamedItem("bm-loop").value:"";d==="false"?f.loop=!1:d==="true"?f.loop=!0:d!==""&&(f.loop=parseInt(d,10));var v=h.getNamedItem("data-anim-autoplay")?h.getNamedItem("data-anim-autoplay").value:h.getNamedItem("data-bm-autoplay")?h.getNamedItem("data-bm-autoplay").value:h.getNamedItem("bm-autoplay")?h.getNamedItem("bm-autoplay").value:!0;f.autoplay=v!=="false",f.name=h.getNamedItem("data-name")?h.getNamedItem("data-name").value:h.getNamedItem("data-bm-name")?h.getNamedItem("data-bm-name").value:h.getNamedItem("bm-name")?h.getNamedItem("bm-name").value:"";var p=h.getNamedItem("data-anim-prerender")?h.getNamedItem("data-anim-prerender").value:h.getNamedItem("data-bm-prerender")?h.getNamedItem("data-bm-prerender").value:h.getNamedItem("bm-prerender")?h.getNamedItem("bm-prerender").value:"";p==="false"&&(f.prerender=!1),f.path?this.setParams(f):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(c){c.op>this.animationData.op&&(this.animationData.op=c.op,this.totalFrames=Math.floor(c.op-this.animationData.ip));var u=this.animationData.layers,f,h=u.length,d=c.layers,v,p=d.length;for(v=0;v<p;v+=1)for(f=0;f<h;){if(u[f].id===d[v].id){u[f]=d[v];break}f+=1}if((c.chars||c.fonts)&&(this.renderer.globalData.fontManager.addChars(c.chars),this.renderer.globalData.fontManager.addFonts(c.fonts,this.renderer.globalData.defs)),c.assets)for(h=c.assets.length,f=0;f<h;f+=1)this.animationData.assets.push(c.assets[f]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(c){this.animationData=c;var u=getExpressionsPlugin();u&&u.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var c=this.animationData.segments;if(!c||c.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var u=c.shift();this.timeCompleted=u.time*this.frameRate;var f=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(f,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var c=this.animationData.segments;c||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(c){if(this.renderer)try{this.animationData=c,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(c),c.assets||(c.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(c.assets),this.markers=markerParser(c.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(u){this.triggerConfigError(u)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var c=getExpressionsPlugin();c&&c.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(c,u){var f=typeof c=="number"?c:void 0,h=typeof u=="number"?u:void 0;this.renderer.updateContainerSize(f,h)},AnimationItem.prototype.setSubframe=function(c){this.isSubframeEnabled=!!c},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(c){this.triggerRenderFrameError(c)}},AnimationItem.prototype.play=function(c){c&&this.name!==c||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(c){c&&this.name!==c||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(c){c&&this.name!==c||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(c){c&&this.name!==c||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(c){for(var u,f=0;f<this.markers.length;f+=1)if(u=this.markers[f],u.payload&&u.payload.name===c)return u;return null},AnimationItem.prototype.goToAndStop=function(c,u,f){if(!(f&&this.name!==f)){var h=Number(c);if(isNaN(h)){var d=this.getMarkerData(c);d&&this.goToAndStop(d.time,!0)}else u?this.setCurrentRawFrameValue(c):this.setCurrentRawFrameValue(c*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(c,u,f){if(!(f&&this.name!==f)){var h=Number(c);if(isNaN(h)){var d=this.getMarkerData(c);d&&(d.duration?this.playSegments([d.time,d.time+d.duration],!0):this.goToAndStop(d.time,!0))}else this.goToAndStop(h,u,f);this.play()}},AnimationItem.prototype.advanceTime=function(c){if(!(this.isPaused===!0||this.isLoaded===!1)){var u=this.currentRawFrame+c*this.frameModifier,f=!1;u>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(u>this.totalFrames?u%this.totalFrames:0)||(f=!0,u=this.totalFrames-1):u>=this.totalFrames?(this.playCount+=1,this.checkSegments(u%this.totalFrames)||(this.setCurrentRawFrameValue(u%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(u):u<0?this.checkSegments(u%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+u%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(f=!0,u=0)):this.setCurrentRawFrameValue(u),f&&(this.setCurrentRawFrameValue(u),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(c,u){this.playCount=0,c[1]<c[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=c[0]-c[1],this.timeCompleted=this.totalFrames,this.firstFrame=c[1],this.setCurrentRawFrameValue(this.totalFrames-.001-u)):c[1]>c[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=c[1]-c[0],this.timeCompleted=this.totalFrames,this.firstFrame=c[0],this.setCurrentRawFrameValue(.001+u)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(c,u){var f=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<c?f=c:this.currentRawFrame+this.firstFrame>u&&(f=u-c)),this.firstFrame=c,this.totalFrames=u-c,this.timeCompleted=this.totalFrames,f!==-1&&this.goToAndStop(f,!0)},AnimationItem.prototype.playSegments=function(c,u){if(u&&(this.segments.length=0),_typeof$4(c[0])==="object"){var f,h=c.length;for(f=0;f<h;f+=1)this.segments.push(c[f])}else this.segments.push(c);this.segments.length&&u&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(c){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),c&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(c){return this.segments.length?(this.adjustSegment(this.segments.shift(),c),!0):!1},AnimationItem.prototype.destroy=function(c){c&&this.name!==c||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(c){this.currentRawFrame=c,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(c){this.playSpeed=c,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(c){this.playDirection=c<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(c){this.loop=c},AnimationItem.prototype.setVolume=function(c,u){u&&this.name!==u||this.audioController.setVolume(c)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(c){c&&this.name!==c||this.audioController.mute()},AnimationItem.prototype.unmute=function(c){c&&this.name!==c||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(c){var u="";if(c.e)u=c.p;else if(this.assetsPath){var f=c.p;f.indexOf("images/")!==-1&&(f=f.split("/")[1]),u=this.assetsPath+f}else u=this.path,u+=c.u?c.u:"",u+=c.p;return u},AnimationItem.prototype.getAssetData=function(c){for(var u=0,f=this.assets.length;u<f;){if(c===this.assets[u].id)return this.assets[u];u+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(c){return c?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(c,u,f){try{var h=this.renderer.getElementByPath(c);h.updateDocumentData(u,f)}catch{}},AnimationItem.prototype.trigger=function(c){if(this._cbs&&this._cbs[c])switch(c){case"enterFrame":this.triggerEvent(c,new BMEnterFrameEvent(c,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(c,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(c,new BMCompleteLoopEvent(c,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(c,new BMCompleteEvent(c,this.frameMult));break;case"segmentStart":this.triggerEvent(c,new BMSegmentStartEvent(c,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(c,new BMDestroyEvent(c,this));break;default:this.triggerEvent(c)}c==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(c,this.currentFrame,this.totalFrames,this.frameMult)),c==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(c,this.loop,this.playCount,this.frameMult)),c==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(c,this.frameMult)),c==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(c,this.firstFrame,this.totalFrames)),c==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(c,this))},AnimationItem.prototype.triggerRenderFrameError=function(c){var u=new BMRenderFrameErrorEvent(c,this.currentFrame);this.triggerEvent("error",u),this.onError&&this.onError.call(this,u)},AnimationItem.prototype.triggerConfigError=function(c){var u=new BMConfigErrorEvent(c,this.currentFrame);this.triggerEvent("error",u),this.onError&&this.onError.call(this,u)};var animationManager=function(){var c={},u=[],f=0,h=0,d=0,v=!0,p=!1;function m(Hn){for(var Yn=0,Vn=Hn.target;Yn<h;)u[Yn].animation===Vn&&(u.splice(Yn,1),Yn-=1,h-=1,Vn.isPaused||Pn()),Yn+=1}function g(Hn,Yn){if(!Hn)return null;for(var Vn=0;Vn<h;){if(u[Vn].elem===Hn&&u[Vn].elem!==null)return u[Vn].animation;Vn+=1}var Gn=new AnimationItem;return b(Gn,Hn),Gn.setData(Hn,Yn),Gn}function y(){var Hn,Yn=u.length,Vn=[];for(Hn=0;Hn<Yn;Hn+=1)Vn.push(u[Hn].animation);return Vn}function x(){d+=1,Jn()}function Pn(){d-=1}function b(Hn,Yn){Hn.addEventListener("destroy",m),Hn.addEventListener("_active",x),Hn.addEventListener("_idle",Pn),u.push({elem:Yn,animation:Hn}),h+=1}function vn(Hn){var Yn=new AnimationItem;return b(Yn,null),Yn.setParams(Hn),Yn}function _(Hn,Yn){var Vn;for(Vn=0;Vn<h;Vn+=1)u[Vn].animation.setSpeed(Hn,Yn)}function re(Hn,Yn){var Vn;for(Vn=0;Vn<h;Vn+=1)u[Vn].animation.setDirection(Hn,Yn)}function Fn(Hn){var Yn;for(Yn=0;Yn<h;Yn+=1)u[Yn].animation.play(Hn)}function Bn(Hn){var Yn=Hn-f,Vn;for(Vn=0;Vn<h;Vn+=1)u[Vn].animation.advanceTime(Yn);f=Hn,d&&!p?window.requestAnimationFrame(Bn):v=!0}function w(Hn){f=Hn,window.requestAnimationFrame(Bn)}function J(Hn){var Yn;for(Yn=0;Yn<h;Yn+=1)u[Yn].animation.pause(Hn)}function gn(Hn,Yn,Vn){var Gn;for(Gn=0;Gn<h;Gn+=1)u[Gn].animation.goToAndStop(Hn,Yn,Vn)}function Rn(Hn){var Yn;for(Yn=0;Yn<h;Yn+=1)u[Yn].animation.stop(Hn)}function zn(Hn){var Yn;for(Yn=0;Yn<h;Yn+=1)u[Yn].animation.togglePause(Hn)}function Wn(Hn){var Yn;for(Yn=h-1;Yn>=0;Yn-=1)u[Yn].animation.destroy(Hn)}function Un(Hn,Yn,Vn){var Gn=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Zn,qn=Gn.length;for(Zn=0;Zn<qn;Zn+=1)Vn&&Gn[Zn].setAttribute("data-bm-type",Vn),g(Gn[Zn],Hn);if(Yn&&qn===0){Vn||(Vn="svg");var er=document.getElementsByTagName("body")[0];er.innerText="";var ir=createTag("div");ir.style.width="100%",ir.style.height="100%",ir.setAttribute("data-bm-type",Vn),er.appendChild(ir),g(ir,Hn)}}function Qn(){var Hn;for(Hn=0;Hn<h;Hn+=1)u[Hn].animation.resize()}function Jn(){!p&&d&&v&&(window.requestAnimationFrame(w),v=!1)}function tr(){p=!0}function Xn(){p=!1,Jn()}function ar(Hn,Yn){var Vn;for(Vn=0;Vn<h;Vn+=1)u[Vn].animation.setVolume(Hn,Yn)}function sr(Hn){var Yn;for(Yn=0;Yn<h;Yn+=1)u[Yn].animation.mute(Hn)}function nr(Hn){var Yn;for(Yn=0;Yn<h;Yn+=1)u[Yn].animation.unmute(Hn)}return c.registerAnimation=g,c.loadAnimation=vn,c.setSpeed=_,c.setDirection=re,c.play=Fn,c.pause=J,c.stop=Rn,c.togglePause=zn,c.searchAnimations=Un,c.resize=Qn,c.goToAndStop=gn,c.destroy=Wn,c.freeze=tr,c.unfreeze=Xn,c.setVolume=ar,c.mute=sr,c.unmute=nr,c.getRegisteredAnimations=y,c}(),BezierFactory=function(){var c={};c.getBezierEasing=f;var u={};function f(w,J,gn,Rn,zn){var Wn=zn||("bez_"+w+"_"+J+"_"+gn+"_"+Rn).replace(/\./g,"p");if(u[Wn])return u[Wn];var Un=new Bn([w,J,gn,Rn]);return u[Wn]=Un,Un}var h=4,d=.001,v=1e-7,p=10,m=11,g=1/(m-1),y=typeof Float32Array=="function";function x(w,J){return 1-3*J+3*w}function Pn(w,J){return 3*J-6*w}function b(w){return 3*w}function vn(w,J,gn){return((x(J,gn)*w+Pn(J,gn))*w+b(J))*w}function _(w,J,gn){return 3*x(J,gn)*w*w+2*Pn(J,gn)*w+b(J)}function re(w,J,gn,Rn,zn){var Wn,Un,Qn=0;do Un=J+(gn-J)/2,Wn=vn(Un,Rn,zn)-w,Wn>0?gn=Un:J=Un;while(Math.abs(Wn)>v&&++Qn<p);return Un}function Fn(w,J,gn,Rn){for(var zn=0;zn<h;++zn){var Wn=_(J,gn,Rn);if(Wn===0)return J;var Un=vn(J,gn,Rn)-w;J-=Un/Wn}return J}function Bn(w){this._p=w,this._mSampleValues=y?new Float32Array(m):new Array(m),this._precomputed=!1,this.get=this.get.bind(this)}return Bn.prototype={get:function(J){var gn=this._p[0],Rn=this._p[1],zn=this._p[2],Wn=this._p[3];return this._precomputed||this._precompute(),gn===Rn&&zn===Wn?J:J===0?0:J===1?1:vn(this._getTForX(J),Rn,Wn)},_precompute:function(){var J=this._p[0],gn=this._p[1],Rn=this._p[2],zn=this._p[3];this._precomputed=!0,(J!==gn||Rn!==zn)&&this._calcSampleValues()},_calcSampleValues:function(){for(var J=this._p[0],gn=this._p[2],Rn=0;Rn<m;++Rn)this._mSampleValues[Rn]=vn(Rn*g,J,gn)},_getTForX:function(J){for(var gn=this._p[0],Rn=this._p[2],zn=this._mSampleValues,Wn=0,Un=1,Qn=m-1;Un!==Qn&&zn[Un]<=J;++Un)Wn+=g;--Un;var Jn=(J-zn[Un])/(zn[Un+1]-zn[Un]),tr=Wn+Jn*g,Xn=_(tr,gn,Rn);return Xn>=d?Fn(J,tr,gn,Rn):Xn===0?tr:re(J,Wn,Wn+g,gn,Rn)}},c}(),pooling=function(){function c(u){return u.concat(createSizedArray(u.length))}return{double:c}}(),poolFactory=function(){return function(c,u,f){var h=0,d=c,v=createSizedArray(d),p={newElement:m,release:g};function m(){var y;return h?(h-=1,y=v[h]):y=u(),y}function g(y){h===d&&(v=pooling.double(v),d*=2),f&&f(y),v[h]=y,h+=1}return p}}(),bezierLengthPool=function(){function c(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,c)}(),segmentsLengthPool=function(){function c(){return{lengths:[],totalLength:0}}function u(f){var h,d=f.lengths.length;for(h=0;h<d;h+=1)bezierLengthPool.release(f.lengths[h]);f.lengths.length=0}return poolFactory(8,c,u)}();function bezFunction(){var c=Math;function u(b,vn,_,re,Fn,Bn){var w=b*re+vn*Fn+_*Bn-Fn*re-Bn*b-_*vn;return w>-.001&&w<.001}function f(b,vn,_,re,Fn,Bn,w,J,gn){if(_===0&&Bn===0&&gn===0)return u(b,vn,re,Fn,w,J);var Rn=c.sqrt(c.pow(re-b,2)+c.pow(Fn-vn,2)+c.pow(Bn-_,2)),zn=c.sqrt(c.pow(w-b,2)+c.pow(J-vn,2)+c.pow(gn-_,2)),Wn=c.sqrt(c.pow(w-re,2)+c.pow(J-Fn,2)+c.pow(gn-Bn,2)),Un;return Rn>zn?Rn>Wn?Un=Rn-zn-Wn:Un=Wn-zn-Rn:Wn>zn?Un=Wn-zn-Rn:Un=zn-Rn-Wn,Un>-1e-4&&Un<1e-4}var h=function(){return function(b,vn,_,re){var Fn=getDefaultCurveSegments(),Bn,w,J,gn,Rn,zn=0,Wn,Un=[],Qn=[],Jn=bezierLengthPool.newElement();for(J=_.length,Bn=0;Bn<Fn;Bn+=1){for(Rn=Bn/(Fn-1),Wn=0,w=0;w<J;w+=1)gn=bmPow(1-Rn,3)*b[w]+3*bmPow(1-Rn,2)*Rn*_[w]+3*(1-Rn)*bmPow(Rn,2)*re[w]+bmPow(Rn,3)*vn[w],Un[w]=gn,Qn[w]!==null&&(Wn+=bmPow(Un[w]-Qn[w],2)),Qn[w]=Un[w];Wn&&(Wn=bmSqrt(Wn),zn+=Wn),Jn.percents[Bn]=Rn,Jn.lengths[Bn]=zn}return Jn.addedLength=zn,Jn}}();function d(b){var vn=segmentsLengthPool.newElement(),_=b.c,re=b.v,Fn=b.o,Bn=b.i,w,J=b._length,gn=vn.lengths,Rn=0;for(w=0;w<J-1;w+=1)gn[w]=h(re[w],re[w+1],Fn[w],Bn[w+1]),Rn+=gn[w].addedLength;return _&&J&&(gn[w]=h(re[w],re[0],Fn[w],Bn[0]),Rn+=gn[w].addedLength),vn.totalLength=Rn,vn}function v(b){this.segmentLength=0,this.points=new Array(b)}function p(b,vn){this.partialLength=b,this.point=vn}var m=function(){var b={};return function(vn,_,re,Fn){var Bn=(vn[0]+"_"+vn[1]+"_"+_[0]+"_"+_[1]+"_"+re[0]+"_"+re[1]+"_"+Fn[0]+"_"+Fn[1]).replace(/\./g,"p");if(!b[Bn]){var w=getDefaultCurveSegments(),J,gn,Rn,zn,Wn,Un=0,Qn,Jn,tr=null;vn.length===2&&(vn[0]!==_[0]||vn[1]!==_[1])&&u(vn[0],vn[1],_[0],_[1],vn[0]+re[0],vn[1]+re[1])&&u(vn[0],vn[1],_[0],_[1],_[0]+Fn[0],_[1]+Fn[1])&&(w=2);var Xn=new v(w);for(Rn=re.length,J=0;J<w;J+=1){for(Jn=createSizedArray(Rn),Wn=J/(w-1),Qn=0,gn=0;gn<Rn;gn+=1)zn=bmPow(1-Wn,3)*vn[gn]+3*bmPow(1-Wn,2)*Wn*(vn[gn]+re[gn])+3*(1-Wn)*bmPow(Wn,2)*(_[gn]+Fn[gn])+bmPow(Wn,3)*_[gn],Jn[gn]=zn,tr!==null&&(Qn+=bmPow(Jn[gn]-tr[gn],2));Qn=bmSqrt(Qn),Un+=Qn,Xn.points[J]=new p(Qn,Jn),tr=Jn}Xn.segmentLength=Un,b[Bn]=Xn}return b[Bn]}}();function g(b,vn){var _=vn.percents,re=vn.lengths,Fn=_.length,Bn=bmFloor((Fn-1)*b),w=b*vn.addedLength,J=0;if(Bn===Fn-1||Bn===0||w===re[Bn])return _[Bn];for(var gn=re[Bn]>w?-1:1,Rn=!0;Rn;)if(re[Bn]<=w&&re[Bn+1]>w?(J=(w-re[Bn])/(re[Bn+1]-re[Bn]),Rn=!1):Bn+=gn,Bn<0||Bn>=Fn-1){if(Bn===Fn-1)return _[Bn];Rn=!1}return _[Bn]+(_[Bn+1]-_[Bn])*J}function y(b,vn,_,re,Fn,Bn){var w=g(Fn,Bn),J=1-w,gn=c.round((J*J*J*b[0]+(w*J*J+J*w*J+J*J*w)*_[0]+(w*w*J+J*w*w+w*J*w)*re[0]+w*w*w*vn[0])*1e3)/1e3,Rn=c.round((J*J*J*b[1]+(w*J*J+J*w*J+J*J*w)*_[1]+(w*w*J+J*w*w+w*J*w)*re[1]+w*w*w*vn[1])*1e3)/1e3;return[gn,Rn]}var x=createTypedArray("float32",8);function Pn(b,vn,_,re,Fn,Bn,w){Fn<0?Fn=0:Fn>1&&(Fn=1);var J=g(Fn,w);Bn=Bn>1?1:Bn;var gn=g(Bn,w),Rn,zn=b.length,Wn=1-J,Un=1-gn,Qn=Wn*Wn*Wn,Jn=J*Wn*Wn*3,tr=J*J*Wn*3,Xn=J*J*J,ar=Wn*Wn*Un,sr=J*Wn*Un+Wn*J*Un+Wn*Wn*gn,nr=J*J*Un+Wn*J*gn+J*Wn*gn,Hn=J*J*gn,Yn=Wn*Un*Un,Vn=J*Un*Un+Wn*gn*Un+Wn*Un*gn,Gn=J*gn*Un+Wn*gn*gn+J*Un*gn,Zn=J*gn*gn,qn=Un*Un*Un,er=gn*Un*Un+Un*gn*Un+Un*Un*gn,ir=gn*gn*Un+Un*gn*gn+gn*Un*gn,Kn=gn*gn*gn;for(Rn=0;Rn<zn;Rn+=1)x[Rn*4]=c.round((Qn*b[Rn]+Jn*_[Rn]+tr*re[Rn]+Xn*vn[Rn])*1e3)/1e3,x[Rn*4+1]=c.round((ar*b[Rn]+sr*_[Rn]+nr*re[Rn]+Hn*vn[Rn])*1e3)/1e3,x[Rn*4+2]=c.round((Yn*b[Rn]+Vn*_[Rn]+Gn*re[Rn]+Zn*vn[Rn])*1e3)/1e3,x[Rn*4+3]=c.round((qn*b[Rn]+er*_[Rn]+ir*re[Rn]+Kn*vn[Rn])*1e3)/1e3;return x}return{getSegmentsLength:d,getNewSegment:Pn,getPointInSegment:y,buildBezierData:m,pointOnLine2D:u,pointOnLine3D:f}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(c,u){var f=this.offsetTime,h;this.propType==="multidimensional"&&(h=createTypedArray("float32",this.pv.length));for(var d=u.lastIndex,v=d,p=this.keyframes.length-1,m=!0,g,y,x;m;){if(g=this.keyframes[v],y=this.keyframes[v+1],v===p-1&&c>=y.t-f){g.h&&(g=y),d=0;break}if(y.t-f>c){d=v;break}v<p-1?v+=1:(d=0,m=!1)}x=this.keyframesMetadata[v]||{};var Pn,b,vn,_,re,Fn,Bn=y.t-f,w=g.t-f,J;if(g.to){x.bezierData||(x.bezierData=bez.buildBezierData(g.s,y.s||g.e,g.to,g.ti));var gn=x.bezierData;if(c>=Bn||c<w){var Rn=c>=Bn?gn.points.length-1:0;for(b=gn.points[Rn].point.length,Pn=0;Pn<b;Pn+=1)h[Pn]=gn.points[Rn].point[Pn]}else{x.__fnct?Fn=x.__fnct:(Fn=BezierFactory.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y,g.n).get,x.__fnct=Fn),vn=Fn((c-w)/(Bn-w));var zn=gn.segmentLength*vn,Wn,Un=u.lastFrame<c&&u._lastKeyframeIndex===v?u._lastAddedLength:0;for(re=u.lastFrame<c&&u._lastKeyframeIndex===v?u._lastPoint:0,m=!0,_=gn.points.length;m;){if(Un+=gn.points[re].partialLength,zn===0||vn===0||re===gn.points.length-1){for(b=gn.points[re].point.length,Pn=0;Pn<b;Pn+=1)h[Pn]=gn.points[re].point[Pn];break}else if(zn>=Un&&zn<Un+gn.points[re+1].partialLength){for(Wn=(zn-Un)/gn.points[re+1].partialLength,b=gn.points[re].point.length,Pn=0;Pn<b;Pn+=1)h[Pn]=gn.points[re].point[Pn]+(gn.points[re+1].point[Pn]-gn.points[re].point[Pn])*Wn;break}re<_-1?re+=1:m=!1}u._lastPoint=re,u._lastAddedLength=Un-gn.points[re].partialLength,u._lastKeyframeIndex=v}}else{var Qn,Jn,tr,Xn,ar;if(p=g.s.length,J=y.s||g.e,this.sh&&g.h!==1)if(c>=Bn)h[0]=J[0],h[1]=J[1],h[2]=J[2];else if(c<=w)h[0]=g.s[0],h[1]=g.s[1],h[2]=g.s[2];else{var sr=createQuaternion(g.s),nr=createQuaternion(J),Hn=(c-w)/(Bn-w);quaternionToEuler(h,slerp(sr,nr,Hn))}else for(v=0;v<p;v+=1)g.h!==1&&(c>=Bn?vn=1:c<w?vn=0:(g.o.x.constructor===Array?(x.__fnct||(x.__fnct=[]),x.__fnct[v]?Fn=x.__fnct[v]:(Qn=g.o.x[v]===void 0?g.o.x[0]:g.o.x[v],Jn=g.o.y[v]===void 0?g.o.y[0]:g.o.y[v],tr=g.i.x[v]===void 0?g.i.x[0]:g.i.x[v],Xn=g.i.y[v]===void 0?g.i.y[0]:g.i.y[v],Fn=BezierFactory.getBezierEasing(Qn,Jn,tr,Xn).get,x.__fnct[v]=Fn)):x.__fnct?Fn=x.__fnct:(Qn=g.o.x,Jn=g.o.y,tr=g.i.x,Xn=g.i.y,Fn=BezierFactory.getBezierEasing(Qn,Jn,tr,Xn).get,g.keyframeMetadata=Fn),vn=Fn((c-w)/(Bn-w)))),J=y.s||g.e,ar=g.h===1?g.s[v]:g.s[v]+(J[v]-g.s[v])*vn,this.propType==="multidimensional"?h[v]=ar:h=ar}return u.lastIndex=d,h}function slerp(c,u,f){var h=[],d=c[0],v=c[1],p=c[2],m=c[3],g=u[0],y=u[1],x=u[2],Pn=u[3],b,vn,_,re,Fn;return vn=d*g+v*y+p*x+m*Pn,vn<0&&(vn=-vn,g=-g,y=-y,x=-x,Pn=-Pn),1-vn>1e-6?(b=Math.acos(vn),_=Math.sin(b),re=Math.sin((1-f)*b)/_,Fn=Math.sin(f*b)/_):(re=1-f,Fn=f),h[0]=re*d+Fn*g,h[1]=re*v+Fn*y,h[2]=re*p+Fn*x,h[3]=re*m+Fn*Pn,h}function quaternionToEuler(c,u){var f=u[0],h=u[1],d=u[2],v=u[3],p=Math.atan2(2*h*v-2*f*d,1-2*h*h-2*d*d),m=Math.asin(2*f*h+2*d*v),g=Math.atan2(2*f*v-2*h*d,1-2*f*f-2*d*d);c[0]=p/degToRads,c[1]=m/degToRads,c[2]=g/degToRads}function createQuaternion(c){var u=c[0]*degToRads,f=c[1]*degToRads,h=c[2]*degToRads,d=Math.cos(u/2),v=Math.cos(f/2),p=Math.cos(h/2),m=Math.sin(u/2),g=Math.sin(f/2),y=Math.sin(h/2),x=d*v*p-m*g*y,Pn=m*g*p+d*v*y,b=m*v*p+d*g*y,vn=d*g*p-m*v*y;return[Pn,b,vn,x]}function getValueAtCurrentTime(){var c=this.comp.renderedFrame-this.offsetTime,u=this.keyframes[0].t-this.offsetTime,f=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(c===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=f&&c>=f||this._caching.lastFrame<u&&c<u))){this._caching.lastFrame>=c&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var h=this.interpolateValue(c,this._caching);this.pv=h}return this._caching.lastFrame=c,this.pv}function setVValue(c){var u;if(this.propType==="unidimensional")u=c*this.mult,mathAbs(this.v-u)>1e-5&&(this.v=u,this._mdf=!0);else for(var f=0,h=this.v.length;f<h;)u=c[f]*this.mult,mathAbs(this.v[f]-u)>1e-5&&(this.v[f]=u,this._mdf=!0),f+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var c,u=this.effectsSequence.length,f=this.kf?this.pv:this.data.k;for(c=0;c<u;c+=1)f=this.effectsSequence[c](f);this.setVValue(f),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(c){this.effectsSequence.push(c),this.container.addDynamicProperty(this)}function ValueProperty(c,u,f,h){this.propType="unidimensional",this.mult=f||1,this.data=u,this.v=f?u.k*f:u.k,this.pv=u.k,this._mdf=!1,this.elem=c,this.container=h,this.comp=c.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(c,u,f,h){this.propType="multidimensional",this.mult=f||1,this.data=u,this._mdf=!1,this.elem=c,this.container=h,this.comp=c.comp,this.k=!1,this.kf=!1,this.frameId=-1;var d,v=u.k.length;for(this.v=createTypedArray("float32",v),this.pv=createTypedArray("float32",v),this.vel=createTypedArray("float32",v),d=0;d<v;d+=1)this.v[d]=u.k[d]*this.mult,this.pv[d]=u.k[d];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(c,u,f,h){this.propType="unidimensional",this.keyframes=u.k,this.keyframesMetadata=[],this.offsetTime=c.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=u,this.mult=f||1,this.elem=c,this.container=h,this.comp=c.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(c,u,f,h){this.propType="multidimensional";var d,v=u.k.length,p,m,g,y;for(d=0;d<v-1;d+=1)u.k[d].to&&u.k[d].s&&u.k[d+1]&&u.k[d+1].s&&(p=u.k[d].s,m=u.k[d+1].s,g=u.k[d].to,y=u.k[d].ti,(p.length===2&&!(p[0]===m[0]&&p[1]===m[1])&&bez.pointOnLine2D(p[0],p[1],m[0],m[1],p[0]+g[0],p[1]+g[1])&&bez.pointOnLine2D(p[0],p[1],m[0],m[1],m[0]+y[0],m[1]+y[1])||p.length===3&&!(p[0]===m[0]&&p[1]===m[1]&&p[2]===m[2])&&bez.pointOnLine3D(p[0],p[1],p[2],m[0],m[1],m[2],p[0]+g[0],p[1]+g[1],p[2]+g[2])&&bez.pointOnLine3D(p[0],p[1],p[2],m[0],m[1],m[2],m[0]+y[0],m[1]+y[1],m[2]+y[2]))&&(u.k[d].to=null,u.k[d].ti=null),p[0]===m[0]&&p[1]===m[1]&&g[0]===0&&g[1]===0&&y[0]===0&&y[1]===0&&(p.length===2||p[2]===m[2]&&g[2]===0&&y[2]===0)&&(u.k[d].to=null,u.k[d].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=u,this.keyframes=u.k,this.keyframesMetadata=[],this.offsetTime=c.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=f||1,this.elem=c,this.container=h,this.comp=c.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var x=u.k[0].s.length;for(this.v=createTypedArray("float32",x),this.pv=createTypedArray("float32",x),d=0;d<x;d+=1)this.v[d]=initFrame,this.pv[d]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",x)},this.addEffect=addEffect}var PropertyFactory=function(){function c(f,h,d,v,p){h.sid&&(h=f.globalData.slotManager.getProp(h));var m;if(!h.k.length)m=new ValueProperty(f,h,v,p);else if(typeof h.k[0]=="number")m=new MultiDimensionalProperty(f,h,v,p);else switch(d){case 0:m=new KeyframedValueProperty(f,h,v,p);break;case 1:m=new KeyframedMultidimensionalProperty(f,h,v,p);break}return m.effectsSequence.length&&p.addDynamicProperty(m),m}var u={getProp:c};return u}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(u){this.dynamicProperties.indexOf(u)===-1&&(this.dynamicProperties.push(u),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var u,f=this.dynamicProperties.length;for(u=0;u<f;u+=1)this.dynamicProperties[u].getValue(),this.dynamicProperties[u]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(u){this.container=u,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function c(){return createTypedArray("float32",2)}return poolFactory(8,c)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(c,u){this.c=c,this.setLength(u);for(var f=0;f<u;)this.v[f]=pointPool.newElement(),this.o[f]=pointPool.newElement(),this.i[f]=pointPool.newElement(),f+=1},ShapePath.prototype.setLength=function(c){for(;this._maxLength<c;)this.doubleArrayLength();this._length=c},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(c,u,f,h,d){var v;switch(this._length=Math.max(this._length,h+1),this._length>=this._maxLength&&this.doubleArrayLength(),f){case"v":v=this.v;break;case"i":v=this.i;break;case"o":v=this.o;break;default:v=[];break}(!v[h]||v[h]&&!d)&&(v[h]=pointPool.newElement()),v[h][0]=c,v[h][1]=u},ShapePath.prototype.setTripleAt=function(c,u,f,h,d,v,p,m){this.setXYAt(c,u,"v",p,m),this.setXYAt(f,h,"o",p,m),this.setXYAt(d,v,"i",p,m)},ShapePath.prototype.reverse=function(){var c=new ShapePath;c.setPathData(this.c,this._length);var u=this.v,f=this.o,h=this.i,d=0;this.c&&(c.setTripleAt(u[0][0],u[0][1],h[0][0],h[0][1],f[0][0],f[0][1],0,!1),d=1);var v=this._length-1,p=this._length,m;for(m=d;m<p;m+=1)c.setTripleAt(u[v][0],u[v][1],h[v][0],h[v][1],f[v][0],f[v][1],m,!1),v-=1;return c},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function c(){return new ShapePath}function u(d){var v=d._length,p;for(p=0;p<v;p+=1)pointPool.release(d.v[p]),pointPool.release(d.i[p]),pointPool.release(d.o[p]),d.v[p]=null,d.i[p]=null,d.o[p]=null;d._length=0,d.c=!1}function f(d){var v=h.newElement(),p,m=d._length===void 0?d.v.length:d._length;for(v.setLength(m),v.c=d.c,p=0;p<m;p+=1)v.setTripleAt(d.v[p][0],d.v[p][1],d.o[p][0],d.o[p][1],d.i[p][0],d.i[p][1],p);return v}var h=poolFactory(4,c,u);return h.clone=f,h}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(c){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=c,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var c;for(c=0;c<this._length;c+=1)shapePool.release(this.shapes[c]);this._length=0};var shapeCollectionPool=function(){var c={newShapeCollection:d,release:v},u=0,f=4,h=createSizedArray(f);function d(){var p;return u?(u-=1,p=h[u]):p=new ShapeCollection,p}function v(p){var m,g=p._length;for(m=0;m<g;m+=1)shapePool.release(p.shapes[m]);p._length=0,u===f&&(h=pooling.double(h),f*=2),h[u]=p,u+=1}return c}(),ShapePropertyFactory=function(){var c=-999999;function u(Bn,w,J){var gn=J.lastIndex,Rn,zn,Wn,Un,Qn,Jn,tr,Xn,ar,sr=this.keyframes;if(Bn<sr[0].t-this.offsetTime)Rn=sr[0].s[0],Wn=!0,gn=0;else if(Bn>=sr[sr.length-1].t-this.offsetTime)Rn=sr[sr.length-1].s?sr[sr.length-1].s[0]:sr[sr.length-2].e[0],Wn=!0;else{for(var nr=gn,Hn=sr.length-1,Yn=!0,Vn,Gn,Zn;Yn&&(Vn=sr[nr],Gn=sr[nr+1],!(Gn.t-this.offsetTime>Bn));)nr<Hn-1?nr+=1:Yn=!1;if(Zn=this.keyframesMetadata[nr]||{},Wn=Vn.h===1,gn=nr,!Wn){if(Bn>=Gn.t-this.offsetTime)Xn=1;else if(Bn<Vn.t-this.offsetTime)Xn=0;else{var qn;Zn.__fnct?qn=Zn.__fnct:(qn=BezierFactory.getBezierEasing(Vn.o.x,Vn.o.y,Vn.i.x,Vn.i.y).get,Zn.__fnct=qn),Xn=qn((Bn-(Vn.t-this.offsetTime))/(Gn.t-this.offsetTime-(Vn.t-this.offsetTime)))}zn=Gn.s?Gn.s[0]:Vn.e[0]}Rn=Vn.s[0]}for(Jn=w._length,tr=Rn.i[0].length,J.lastIndex=gn,Un=0;Un<Jn;Un+=1)for(Qn=0;Qn<tr;Qn+=1)ar=Wn?Rn.i[Un][Qn]:Rn.i[Un][Qn]+(zn.i[Un][Qn]-Rn.i[Un][Qn])*Xn,w.i[Un][Qn]=ar,ar=Wn?Rn.o[Un][Qn]:Rn.o[Un][Qn]+(zn.o[Un][Qn]-Rn.o[Un][Qn])*Xn,w.o[Un][Qn]=ar,ar=Wn?Rn.v[Un][Qn]:Rn.v[Un][Qn]+(zn.v[Un][Qn]-Rn.v[Un][Qn])*Xn,w.v[Un][Qn]=ar}function f(){var Bn=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,J=this.keyframes[this.keyframes.length-1].t-this.offsetTime,gn=this._caching.lastFrame;return gn!==c&&(gn<w&&Bn<w||gn>J&&Bn>J)||(this._caching.lastIndex=gn<Bn?this._caching.lastIndex:0,this.interpolateShape(Bn,this.pv,this._caching)),this._caching.lastFrame=Bn,this.pv}function h(){this.paths=this.localShapeCollection}function d(Bn,w){if(Bn._length!==w._length||Bn.c!==w.c)return!1;var J,gn=Bn._length;for(J=0;J<gn;J+=1)if(Bn.v[J][0]!==w.v[J][0]||Bn.v[J][1]!==w.v[J][1]||Bn.o[J][0]!==w.o[J][0]||Bn.o[J][1]!==w.o[J][1]||Bn.i[J][0]!==w.i[J][0]||Bn.i[J][1]!==w.i[J][1])return!1;return!0}function v(Bn){d(this.v,Bn)||(this.v=shapePool.clone(Bn),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function p(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var Bn;this.kf?Bn=this.pv:this.data.ks?Bn=this.data.ks.k:Bn=this.data.pt.k;var w,J=this.effectsSequence.length;for(w=0;w<J;w+=1)Bn=this.effectsSequence[w](Bn);this.setVValue(Bn),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function m(Bn,w,J){this.propType="shape",this.comp=Bn.comp,this.container=Bn,this.elem=Bn,this.data=w,this.k=!1,this.kf=!1,this._mdf=!1;var gn=J===3?w.pt.k:w.ks.k;this.v=shapePool.clone(gn),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=h,this.effectsSequence=[]}function g(Bn){this.effectsSequence.push(Bn),this.container.addDynamicProperty(this)}m.prototype.interpolateShape=u,m.prototype.getValue=p,m.prototype.setVValue=v,m.prototype.addEffect=g;function y(Bn,w,J){this.propType="shape",this.comp=Bn.comp,this.elem=Bn,this.container=Bn,this.offsetTime=Bn.data.st,this.keyframes=J===3?w.pt.k:w.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var gn=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,gn),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=c,this.reset=h,this._caching={lastFrame:c,lastIndex:0},this.effectsSequence=[f.bind(this)]}y.prototype.getValue=p,y.prototype.interpolateShape=u,y.prototype.setVValue=v,y.prototype.addEffect=g;var x=function(){var Bn=roundCorner;function w(J,gn){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=gn.d,this.elem=J,this.comp=J.comp,this.frameId=-1,this.initDynamicPropertyContainer(J),this.p=PropertyFactory.getProp(J,gn.p,1,0,this),this.s=PropertyFactory.getProp(J,gn.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return w.prototype={reset:h,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var gn=this.p.v[0],Rn=this.p.v[1],zn=this.s.v[0]/2,Wn=this.s.v[1]/2,Un=this.d!==3,Qn=this.v;Qn.v[0][0]=gn,Qn.v[0][1]=Rn-Wn,Qn.v[1][0]=Un?gn+zn:gn-zn,Qn.v[1][1]=Rn,Qn.v[2][0]=gn,Qn.v[2][1]=Rn+Wn,Qn.v[3][0]=Un?gn-zn:gn+zn,Qn.v[3][1]=Rn,Qn.i[0][0]=Un?gn-zn*Bn:gn+zn*Bn,Qn.i[0][1]=Rn-Wn,Qn.i[1][0]=Un?gn+zn:gn-zn,Qn.i[1][1]=Rn-Wn*Bn,Qn.i[2][0]=Un?gn+zn*Bn:gn-zn*Bn,Qn.i[2][1]=Rn+Wn,Qn.i[3][0]=Un?gn-zn:gn+zn,Qn.i[3][1]=Rn+Wn*Bn,Qn.o[0][0]=Un?gn+zn*Bn:gn-zn*Bn,Qn.o[0][1]=Rn-Wn,Qn.o[1][0]=Un?gn+zn:gn-zn,Qn.o[1][1]=Rn+Wn*Bn,Qn.o[2][0]=Un?gn-zn*Bn:gn+zn*Bn,Qn.o[2][1]=Rn+Wn,Qn.o[3][0]=Un?gn-zn:gn+zn,Qn.o[3][1]=Rn-Wn*Bn}},extendPrototype([DynamicPropertyContainer],w),w}(),Pn=function(){function Bn(w,J){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=w,this.comp=w.comp,this.data=J,this.frameId=-1,this.d=J.d,this.initDynamicPropertyContainer(w),J.sy===1?(this.ir=PropertyFactory.getProp(w,J.ir,0,0,this),this.is=PropertyFactory.getProp(w,J.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(w,J.pt,0,0,this),this.p=PropertyFactory.getProp(w,J.p,1,0,this),this.r=PropertyFactory.getProp(w,J.r,0,degToRads,this),this.or=PropertyFactory.getProp(w,J.or,0,0,this),this.os=PropertyFactory.getProp(w,J.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return Bn.prototype={reset:h,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var J=Math.floor(this.pt.v)*2,gn=Math.PI*2/J,Rn=!0,zn=this.or.v,Wn=this.ir.v,Un=this.os.v,Qn=this.is.v,Jn=2*Math.PI*zn/(J*2),tr=2*Math.PI*Wn/(J*2),Xn,ar,sr,nr,Hn=-Math.PI/2;Hn+=this.r.v;var Yn=this.data.d===3?-1:1;for(this.v._length=0,Xn=0;Xn<J;Xn+=1){ar=Rn?zn:Wn,sr=Rn?Un:Qn,nr=Rn?Jn:tr;var Vn=ar*Math.cos(Hn),Gn=ar*Math.sin(Hn),Zn=Vn===0&&Gn===0?0:Gn/Math.sqrt(Vn*Vn+Gn*Gn),qn=Vn===0&&Gn===0?0:-Vn/Math.sqrt(Vn*Vn+Gn*Gn);Vn+=+this.p.v[0],Gn+=+this.p.v[1],this.v.setTripleAt(Vn,Gn,Vn-Zn*nr*sr*Yn,Gn-qn*nr*sr*Yn,Vn+Zn*nr*sr*Yn,Gn+qn*nr*sr*Yn,Xn,!0),Rn=!Rn,Hn+=gn*Yn}},convertPolygonToPath:function(){var J=Math.floor(this.pt.v),gn=Math.PI*2/J,Rn=this.or.v,zn=this.os.v,Wn=2*Math.PI*Rn/(J*4),Un,Qn=-Math.PI*.5,Jn=this.data.d===3?-1:1;for(Qn+=this.r.v,this.v._length=0,Un=0;Un<J;Un+=1){var tr=Rn*Math.cos(Qn),Xn=Rn*Math.sin(Qn),ar=tr===0&&Xn===0?0:Xn/Math.sqrt(tr*tr+Xn*Xn),sr=tr===0&&Xn===0?0:-tr/Math.sqrt(tr*tr+Xn*Xn);tr+=+this.p.v[0],Xn+=+this.p.v[1],this.v.setTripleAt(tr,Xn,tr-ar*Wn*zn*Jn,Xn-sr*Wn*zn*Jn,tr+ar*Wn*zn*Jn,Xn+sr*Wn*zn*Jn,Un,!0),Qn+=gn*Jn}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],Bn),Bn}(),b=function(){function Bn(w,J){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=w,this.comp=w.comp,this.frameId=-1,this.d=J.d,this.initDynamicPropertyContainer(w),this.p=PropertyFactory.getProp(w,J.p,1,0,this),this.s=PropertyFactory.getProp(w,J.s,1,0,this),this.r=PropertyFactory.getProp(w,J.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return Bn.prototype={convertRectToPath:function(){var J=this.p.v[0],gn=this.p.v[1],Rn=this.s.v[0]/2,zn=this.s.v[1]/2,Wn=bmMin(Rn,zn,this.r.v),Un=Wn*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(J+Rn,gn-zn+Wn,J+Rn,gn-zn+Wn,J+Rn,gn-zn+Un,0,!0),this.v.setTripleAt(J+Rn,gn+zn-Wn,J+Rn,gn+zn-Un,J+Rn,gn+zn-Wn,1,!0),Wn!==0?(this.v.setTripleAt(J+Rn-Wn,gn+zn,J+Rn-Wn,gn+zn,J+Rn-Un,gn+zn,2,!0),this.v.setTripleAt(J-Rn+Wn,gn+zn,J-Rn+Un,gn+zn,J-Rn+Wn,gn+zn,3,!0),this.v.setTripleAt(J-Rn,gn+zn-Wn,J-Rn,gn+zn-Wn,J-Rn,gn+zn-Un,4,!0),this.v.setTripleAt(J-Rn,gn-zn+Wn,J-Rn,gn-zn+Un,J-Rn,gn-zn+Wn,5,!0),this.v.setTripleAt(J-Rn+Wn,gn-zn,J-Rn+Wn,gn-zn,J-Rn+Un,gn-zn,6,!0),this.v.setTripleAt(J+Rn-Wn,gn-zn,J+Rn-Un,gn-zn,J+Rn-Wn,gn-zn,7,!0)):(this.v.setTripleAt(J-Rn,gn+zn,J-Rn+Un,gn+zn,J-Rn,gn+zn,2),this.v.setTripleAt(J-Rn,gn-zn,J-Rn,gn-zn+Un,J-Rn,gn-zn,3))):(this.v.setTripleAt(J+Rn,gn-zn+Wn,J+Rn,gn-zn+Un,J+Rn,gn-zn+Wn,0,!0),Wn!==0?(this.v.setTripleAt(J+Rn-Wn,gn-zn,J+Rn-Wn,gn-zn,J+Rn-Un,gn-zn,1,!0),this.v.setTripleAt(J-Rn+Wn,gn-zn,J-Rn+Un,gn-zn,J-Rn+Wn,gn-zn,2,!0),this.v.setTripleAt(J-Rn,gn-zn+Wn,J-Rn,gn-zn+Wn,J-Rn,gn-zn+Un,3,!0),this.v.setTripleAt(J-Rn,gn+zn-Wn,J-Rn,gn+zn-Un,J-Rn,gn+zn-Wn,4,!0),this.v.setTripleAt(J-Rn+Wn,gn+zn,J-Rn+Wn,gn+zn,J-Rn+Un,gn+zn,5,!0),this.v.setTripleAt(J+Rn-Wn,gn+zn,J+Rn-Un,gn+zn,J+Rn-Wn,gn+zn,6,!0),this.v.setTripleAt(J+Rn,gn+zn-Wn,J+Rn,gn+zn-Wn,J+Rn,gn+zn-Un,7,!0)):(this.v.setTripleAt(J-Rn,gn-zn,J-Rn+Un,gn-zn,J-Rn,gn-zn,1,!0),this.v.setTripleAt(J-Rn,gn+zn,J-Rn,gn+zn-Un,J-Rn,gn+zn,2,!0),this.v.setTripleAt(J+Rn,gn+zn,J+Rn-Un,gn+zn,J+Rn,gn+zn,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:h},extendPrototype([DynamicPropertyContainer],Bn),Bn}();function vn(Bn,w,J){var gn;if(J===3||J===4){var Rn=J===3?w.pt:w.ks,zn=Rn.k;zn.length?gn=new y(Bn,w,J):gn=new m(Bn,w,J)}else J===5?gn=new b(Bn,w):J===6?gn=new x(Bn,w):J===7&&(gn=new Pn(Bn,w));return gn.k&&Bn.addDynamicProperty(gn),gn}function _(){return m}function re(){return y}var Fn={};return Fn.getShapeProp=vn,Fn.getConstructorFunction=_,Fn.getKeyframedConstructorFunction=re,Fn}();/*!
|
|
121
|
+
<span style="color: ${yr||c.color};${vue.unref(Fn)}">${c.minusSignShow?"-":""}${Math.abs(+hr).toFixed(2)}%</span>
|
|
122
|
+
</span>`)}else c.format==="percent"?(hr=+hr,isNaN(hr)||(hr=(hr*100).toFixed(2),Kn=Kn.replace(fr,`<span class="${ur}" style="color:${Vn(hr)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(Fn)}">${hr}%</span>`))):c.format==="money"?(hr=+hr,isNaN(hr)||(hr=formatMoney(hr),Kn=Kn.replace(fr,`<span class="${ur}" style="color:${Vn(hr)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(Fn)}">${hr}</span>`))):vr==="thousands"?(hr=+hr,isNaN(hr)||(hr=formatThousands(hr),Kn=Kn.replace(fr,`<span class="${ur}" style="color:${Vn(hr)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(Fn)}">${hr}</span>`))):Kn=Kn.replace(fr,`<span class="${ur}" style="color:${Vn(hr)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(Fn)}">${hr}</span>`)}}if(lr||(lr=`<span class="${ur}" style="color: ${Vn(Kn)};${vue.unref(Fn)}">${Kn}</span>`),c.unitShow&&c.unitText){const{unitTop:sr,unitLeft:fr}=c;let pr="position:relative;";sr&&(pr+=`top:${sr};`),fr&&(pr+=`margin-left:${fr};`),lr+=`<span style='color:${c.unitColor};font-size:${c.unitFontSize};font-weight:${c.unitFontWeight};${pr};${vue.unref(Fn)}'>${c.unitText}</span>`}return c.exceedConfig&&(lr=`<span class="${ur}" style="display: inline-block;color: ${Vn(lr)};">${lr}</span>`),lr.includes("span")||(lr=`<span class="${ur}" style="color: ${Vn(lr)};">${lr}</span>`),lr});function Vn(qn){let nr="",or=!1;const{targetValue:Kn,targetShow:ar,notExpectColor:lr}=c;if(ar){switch(c.targetRule){case"equal":qn!==Kn&&(or=!0);break;case"greater":qn<=Kn&&(or=!0);break;case"greater_equal":qn<Kn&&(or=!0);break;case"less":qn>=Kn&&(or=!0);break;case"less_equal":qn>Kn&&(or=!0);break}or&&(nr=lr)}return nr}const{pageMode:zn}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",requestList:[]}),{pageId:Wn}=vue.inject("templateOperate",{pageId:""})||{},Un=useRequestData(c),er=vue.ref(!1),Jn=async()=>{var qn,nr,or;try{er.value=!0;const Kn=await Un();(qn=Kn==null?void 0:Kn.data)!=null&&qn.data.rowsToData?vn(((nr=Kn==null?void 0:Kn.data)==null?void 0:nr.data.rowsToData)||{}):vn(((or=Kn==null?void 0:Kn.data)==null?void 0:or.data)||{})}catch(Kn){console.error(Kn)}finally{er.value=!1}},tr=()=>{_("")},Qn=qn=>{var or,Kn;const{data:nr}=(qn==null?void 0:qn.data)||{};if(nr){f.value=!1;const{columns:ar=[],rows:lr=[]}=((or=qn==null?void 0:qn.data)==null?void 0:or.data)??{},{graphicConfig:ur}=c;let dr={};if(ar.length>0)if((Kn=ur==null?void 0:ur.dimensionList)!=null&&Kn.length){const sr=ar[0];sr&&(lr!=null&&lr.length)&&(dr={value:lr[0][sr]})}else{const sr=ar.find(fr=>!!fr);sr&&(dr={value:isNaN(lr[sr])?0:lr[sr]||0})}_(dr==null?void 0:dr.value),vn(dr)}else f.value=!0,_(c.variableDefaultValue),vn({value:c.variableDefaultValue})},ir=useIndicatorData(c,Qn),cr=async()=>{try{er.value=!0;const qn=await ir();Qn(qn)}catch(qn){console.error(qn)}finally{er.value=!1,Bn(c.id,!0)}},Xn=vue.ref(!1);vue.watch(b,qn=>{if(c.dataType==="indicator"){const nr=getFixedValueDatas(c.graphicConfig);nr!=null&&nr.length&&(!vue.unref(Xn)&&canRequestIndicator(c.graphicConfig,qn)?(Xn.value=!0,Hn()):canRequestIndicator(c.graphicConfig,qn)||(Xn.value=!1))}},{deep:!0});const Hn=()=>{switch(c.dataType){case"indicator":cr();break;case"request":{const{openCustomRequestData:qn,customRequestName:nr}=c;qn||qn===void 0?Jn():x(nr,or=>{or&&(or.rowsToData?vn(or.rowsToData):vn(or))});break}}},{setRequest:Yn}=vue.inject(REQUEST_MODEL,{setRequest:({id:qn,sortNum:nr,requestFn:or})=>{}});typeof Yn=="function"&&Yn({id:c.id,requestFn:Hn,sortNum:c.requestSort}),u({refreshData:Hn});const Rn=useEmitEvent(c),Gn=Rn("click",()=>{const qn=document.getElementsByClassName(`ecan-text_${c.id}`);qn!=null&&qn.length&&_(qn[0].innerText),setTimeout(()=>{_("")},0),!(!c.linkPage&&!c.href)&&handleJumpLink(c,{pageMode:vue.unref(zn),targetTemplate:c.targetTemplate,getRecordValueByKeyName:y,setTemplateData:re})}),Zn=Rn("valueChange",()=>{J.value++});return useOnEvent(c,{refreshData:Hn,resetRecord:tr,click:Gn,valueChange:Zn}),vue.watch(()=>gn.value,(qn,nr)=>{qn!==nr&&Zn()}),{style:h,myText:gn,loading:er,click:Gn,textIndent:p,vFontSize:v,gradientStyle:Pn,cursorStyle:w}}}),__injectCSSVars__$4=()=>{vue.useCssVars(c=>({"07da2c0b":c.vFontSize,c8e93f58:c.textIndent,"2ee314a8":c.percentageSide}))},__setup__$4=__default__$4.setup;__default__$4.setup=__setup__$4?(c,u)=>(__injectCSSVars__$4(),__setup__$4(c,u)):__injectCSSVars__$4;const Text_vue_vue_type_style_index_0_scoped_fa95d640_lang="",Text_vue_vue_type_style_index_1_lang="",_hoisted_1$f=["innerHTML"];function _sfc_render$x(c,u,f,h,d,v){const p=vue.resolveComponent("skeleton");return c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{loading:c.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["ecan-text","ecan-text_"+c.id]),style:vue.normalizeStyle({...c.style,...c.gradientStyle,...c.cursorStyle}),innerHTML:c.myText,onClick:u[0]||(u[0]=(...m)=>c.click&&c.click(...m))},null,14,_hoisted_1$f))}const Text=_export_sfc$1(__default__$4,[["render",_sfc_render$x],["__scopeId","data-v-fa95d640"]]),EcanText=withInstall$1(Text),_sfc_main$s=vue.defineComponent({name:"EcanScrollText",setup(){return{text:vue.ref("基础文本")}}}),ScrollText_vue_vue_type_style_index_0_scoped_4dd9c03e_lang="",_hoisted_1$e={class:"red"};function _sfc_render$w(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$e,vue.toDisplayString(c.text),1)}const ScrollText=_export_sfc$1(_sfc_main$s,[["render",_sfc_render$w],["__scopeId","data-v-4dd9c03e"]]),EcanScrollText=withInstall$1(ScrollText),timeDisplayProps={...props,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},timeDisplayComponentProps=transformToComponentProps(timeDisplayProps),timeDisplayEvents=["timeChange"],_sfc_main$r=vue.defineComponent({name:"EcanTimeDisplay",props:{...timeDisplayComponentProps},setup(c){const{pageMode:u}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),f=usePickComponentStyle(c),h=()=>{const{format:x,operate:Bn}=c;let b=dayjs();if(Bn){const{type:re,value:_,mode:vn}=Bn;switch(re){case"add":b=b.add(_,vn);break;case"minus":b=b.subtract(_,vn)}}return b.format(x)},d=vue.ref();vue.watch(()=>[c.operate,c.format],()=>{d.value=h()},{immediate:!0,deep:!0}),vue.watch(()=>c.updateInterval,()=>{y()},{deep:!0});let v=null;const p=()=>{clearInterval(v),v=null},g=useEmitEvent(c)("timeChange",()=>{}),y=()=>{v&&p();let x=1e3;const{value:Bn,mode:b}=c.updateInterval||{};Bn&&(x=x*Bn);const re={second:1,minute:60,hour:60*60,day:24*60*60};b&&(x=x*re[b]),v=setInterval(()=>{d.value=h(),vue.unref(u)!=="design"&&g()},x)};return useOnEvent(c,{timeChange:g}),vue.onMounted(()=>{y()}),vue.onUnmounted(()=>{p()}),{style:f,time:d}}}),TimeDisplay_vue_vue_type_style_index_0_scoped_b9216314_lang="";function _sfc_render$v(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",{class:"time-display",style:vue.normalizeStyle(c.style)},vue.toDisplayString(c.time),5)}const TimeDisplay=_export_sfc$1(_sfc_main$r,[["render",_sfc_render$v],["__scopeId","data-v-b9216314"]]),EcanTimeDisplay=withInstall$1(TimeDisplay),listProps={...props,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"0px",itemRowSpan:"10px",itemPadding:"20px",useRanking:!1,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}],seqIcon:!1,isUseSeq:!1,seqWidth:"10%",seqName:"序号",seqFontSize:"14px",isAutoScroll:!1,scrollSpeed:10,graphicConfig:{},seqIconWidth:"",seqIconHeight:"",seqIconConfig:[],seqIconOffsetX:0,seqIconOffsetY:0,seqIndexFormatter:"{index}",itemWidth:"100%"},listComponentProps=transformToComponentProps(listProps),listEvents=["refreshData","click","resetRecord"],seqIcon4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",seqIcon5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",seqIcon6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",seqIcon7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",_sfc_main$q=vue.defineComponent({name:"EcanList",components:{Skeleton,ATooltip:antDesignVue.Tooltip,MarqueeScroll},props:{...listComponentProps},setup(c,{expose:u}){const f=vue.ref(),h=usePickComponentStyle(c,["backgroundColor"]),d=(Yn,Rn)=>{const{format:Gn,customFormatter:Zn}=Rn;if(Gn==null||Gn==="")return Yn;const qn={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,custom:formatCustom};return qn[Gn]?Gn==="custom"?qn[Gn](Yn,Zn)||"":qn[Gn](Yn)||"":""},v=(Yn,Rn)=>{const Gn=parseFloat(Yn+"");if(Rn!=="contrast")return"";switch(!0){case Gn>=0:return"goUp";case Gn<0:return"goDown"}},p=useRequestData(c),m=vue.ref(!1),g=async()=>{var Yn;if(c.dataType==="request")try{m.value=!0;const Rn=await p();f.value=((Yn=Rn==null?void 0:Rn.data)==null?void 0:Yn.data.rows)||[]}catch(Rn){console.error(Rn)}finally{m.value=!1}};vue.watch(()=>c.data,()=>{(c.dataType==="static"||!vue.unref(f))&&(f.value=c.data)},{immediate:!0,deep:!0});const y=vue.computed(()=>({key:"SEQ",width:c.seqWidth,title:c.seqName,align:"center",fontSize:c.seqFontSize})),x=vue.computed(()=>{const{columns:Yn,isUseSeq:Rn}=c;return Rn?[vue.unref(y),...Yn]:Yn}),Bn=Yn=>{var Zn;const{columns:Rn=[],rows:Gn=[]}=((Zn=Yn==null?void 0:Yn.data)==null?void 0:Zn.data)??{};c.isUseSeq&&Rn.unshift(c.seqName),x.value.forEach((qn,nr)=>{(!c.isUseSeq||nr!==0)&&(qn.title=Rn[nr],qn.key=Rn[nr])}),f.value=Gn},b=useIndicatorData(c,Bn),re=async()=>{try{m.value=!0;const Yn=await b();Bn(Yn)}catch(Yn){console.error(Yn)}finally{m.value=!1}},_=()=>{switch(c.dataType){case"indicator":re();break;case"request":g();break}},vn=useEmitEvent(c),{getGlobalModel:Fn,setGlobalModel:Pn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Yn=>{},setGlobalModel:(Yn,Rn)=>{}}),w=Yn=>{vn("click",()=>{const Rn=Fn(c.id);Pn(c.id,{...Rn,type:c.type,RECORD:Yn})})()};useOnEvent(c,{refreshData:_,resetRecord:()=>{const Yn=c.id,Rn=Fn(Yn);Pn(Yn,{...Rn,type:c.type,RECORD:""})}});const{setRequest:gn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Yn,sortNum:Rn,requestFn:Gn})=>{}});typeof gn=="function"&&gn({id:c.id,requestFn:_,sortNum:c.requestSort}),u({refreshData:_});const Vn=(Yn,Rn)=>({flex:Yn.width?"none":"1",width:Yn.width,height:c.itemHeight,lineHeight:c.itemHeight,textAlign:(Rn?Yn.cellAlign:Yn.align)||"left",backgroundColor:Yn.cellColor}),zn=(Yn,Rn)=>{let Gn=0;const Zn=vue.unref(f).map(nr=>nr[Rn]),qn=Math.max(...Zn);return qn&&(Gn=Yn[Rn]/qn*100),Gn},Wn=Yn=>{const{progressColor:Rn="#1890ff",progressGradientColor:Gn=""}=Yn;return Gn?{background:`linear-gradient(to right, ${Rn} 0%, ${Gn} 100%)`}:{backgroundColor:Rn||"#1890ff"}},Un=vue.computed(()=>{const Yn=parseFloat(c.seqFontSize)+5;return{width:Yn+10,height:Yn}}),{pageMode:er}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),Jn=vue.computed(()=>vue.unref(er)!=="design"&&c.isAutoScroll),tr=Yn=>{const{seqIconConfig:Rn}=c;let Gn=Rn.find(Zn=>Zn.key===Yn+1);return Gn||(Gn=Rn.find(Zn=>Zn.key==="other")),!!(Gn!=null&&Gn.icon)},Qn=(Yn,Rn)=>{const{seqIconConfig:Gn}=c;let Zn=Gn.find(qn=>qn.key===Yn+1);return Zn||(Zn=Gn.find(qn=>qn.key==="other")),Rn===1?Zn!=null&&Zn.icon?useImagePath(Zn.icon):"":Rn===2?(Zn==null?void 0:Zn.color)||"#fff":""},ir=Yn=>{const{seqIndexFormatter:Rn}=c,Gn=Yn+1;return Rn?hn(Rn,{textData:{index:Gn}},{useNewline:!1,useSpace:!0}):Gn},cr=vue.computed(()=>parseFloat(c.itemWidth)!==100?{height:"100%"}:{}),Xn=vue.computed(()=>!c.itemWidth||c.itemWidth==="100%"?"0":c.itemColSpan);return{style:h,formatFn:d,contrastClass:v,dataSource:f,loading:m,myColumns:x,click:w,getColumnStyle:Vn,getPercentage:zn,getBackgroundColor:Wn,isShowSeqIcon:tr,getSeqIconData:Qn,seqIcon4,seqIcon5,seqIcon6,seqIcon7,iconSize:Un,isScroll:Jn,formatSeq:ir,wrapStyle:cr,colSpan:Xn,getText:(Yn,Rn)=>(Yn.format!=null||Yn.format!=="")&&d(Rn[Yn.key],Yn)}}}),List_vue_vue_type_style_index_0_scoped_0f13dff6_lang="",List_vue_vue_type_style_index_1_lang="",_withScopeId$4=c=>(vue.pushScopeId("data-v-0f13dff6"),c=c(),vue.popScopeId(),c),_hoisted_1$d={key:0,class:"title"},_hoisted_2$6={key:0,class:"ranking"},_hoisted_3$2=["onClick"],_hoisted_4$2={key:0,class:"ranking"},_hoisted_5$2=_withScopeId$4(()=>vue.createElementVNode("div",{class:"icon"},null,-1)),_hoisted_6$2={class:"sort"},_hoisted_7$2=["src"],_hoisted_8$2={key:1},_hoisted_9$2=["src","width","height"],_hoisted_10$2=["src","width","height"],_hoisted_11$2=["src","width","height"],_hoisted_12$2=["src","width","height"],_hoisted_13$2={key:1},_hoisted_14$2=["title"],_hoisted_15$2={key:2,class:"empty"};function _sfc_render$u(c,u,f,h,d,v){const p=vue.resolveComponent("a-tooltip"),m=vue.resolveComponent("marquee-scroll"),g=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-list",style:vue.normalizeStyle(c.style)},[vue.createVNode(g,{loading:c.loading},{default:vue.withCtx(()=>[c.useTitle?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$d,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.columnCount,y=>(vue.openBlock(),vue.createElementBlock("div",{class:"title-inner",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,height:c.itemHeight,width:`calc(100% / ${c.columnCount} - ${c.itemColSpan} * ${c.columnCount-1}/ ${c.columnCount})`,marginRight:y%c.columnCount!==0?c.itemColSpan:"",padding:`0 ${c.itemPadding}`}),key:y},[c.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$6)):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myColumns,(x,Bn)=>(vue.openBlock(),vue.createElementBlock("div",{class:"column",key:x.key||Bn,style:vue.normalizeStyle({color:x.titleColor,fontSize:x.fontSize,...c.getColumnStyle(x)})},vue.toDisplayString(x.title),5))),128))],4))),128))])):vue.createCommentVNode("",!0),c.dataSource.length>0?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-list-content",style:vue.normalizeStyle({paddingTop:c.useTitle?c.itemRowSpan:0,height:c.useTitle?"calc(100% - 40px)":"100%"})},[vue.createVNode(m,{visible:c.isScroll,step:c.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap",...c.wrapStyle}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.dataSource.slice(0,c.sliceCount),(y,x)=>(vue.openBlock(),vue.createElementBlock("div",{class:"item",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,height:c.itemHeight,width:`calc(${c.itemWidth} - ${c.colSpan})`,marginRight:c.colSpan,marginBottom:c.itemRowSpan,padding:`0 ${c.itemPadding}`}),key:y.id||x,onClick:Bn=>c.click(y)},[c.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$2,[_hoisted_5$2,vue.createElementVNode("div",_hoisted_6$2," Top "+vue.toDisplayString(x+1),1)])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myColumns,Bn=>{var b;return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["column",c.contrastClass(y[Bn.key],Bn.format),Bn.key==="SEQ"?"seq-column":""]),key:Bn.key,style:vue.normalizeStyle({fontSize:Bn.fontSize,color:c.contrastClass(y[Bn.key],Bn.format)===""?Bn.color:"",fontWeight:Bn.fontWeight,...c.getColumnStyle(Bn,"cell")})},[Bn.key==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[(b=c.seqIconConfig)!=null&&b.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"icon-box",style:vue.normalizeStyle({width:c.seqIconWidth||"",height:c.seqIconHeight||""})},[c.seqIconWidth&&c.seqIconHeight&&c.isShowSeqIcon(x)?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"custom-seq-icon",src:c.getSeqIconData(x,1),style:vue.normalizeStyle({width:c.seqIconWidth,height:c.seqIconHeight})},null,12,_hoisted_7$2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"custom-seq-text",style:vue.normalizeStyle({fontSize:c.seqFontSize,color:c.getSeqIconData(x,2),lineHeight:c.seqIconHeight||"",left:c.seqIconOffsetX,top:c.seqIconOffsetY})},vue.toDisplayString(c.formatSeq(x)),5)],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$2,[x===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:c.seqIcon4,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_9$2)):x===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:c.seqIcon5,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_10$2)):x===2?(vue.openBlock(),vue.createElementBlock("img",{key:2,class:"seq-icon",src:c.seqIcon6,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_11$2)):x>=3?(vue.openBlock(),vue.createElementBlock("img",{key:3,class:"seq-icon",src:c.seqIcon7,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_12$2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"seq-icon seq-text",style:vue.normalizeStyle({fontSize:c.seqFontSize})},vue.toDisplayString(c.formatSeq(x)),5)]))],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_13$2,vue.toDisplayString(c.formatSeq(x)),1))],64)):Bn.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"progress-cell",style:vue.normalizeStyle({height:c.itemHeight})},[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({height:Bn.progressWidth||"14px",backgroundColor:Bn.progressBaseColor})},[vue.createVNode(p,{title:y[Bn.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({borderRadius:"10px",height:Bn.progressWidth||"14px",width:`${c.getPercentage(y,Bn.key)}%`,...c.getBackgroundColor(Bn)})},null,4)]),_:2},1032,["title"])],4)],4)):(vue.openBlock(),vue.createElementBlock("span",{key:2,title:c.getText(Bn,y)},vue.toDisplayString(c.getText(Bn,y)),9,_hoisted_14$2))],6)}),128))],12,_hoisted_3$2))),128))]),_:1},8,["visible","step","wrapStyle"])],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$2," 暂无数据 "))]),_:1},8,["loading"])],4)}const List=_export_sfc$1(_sfc_main$q,[["render",_sfc_render$u],["__scopeId","data-v-0f13dff6"]]),EcanList=withInstall$1(List),proportionProps={...props,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}{%}",fontSize:"26px",color:"#4091f7",variableColor:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},proportionComponentProps=transformToComponentProps(proportionProps),proportionEvents=["refreshData","click"],_sfc_main$p=vue.defineComponent({name:"EcanProportion",components:{AProgress:antDesignVue.Progress,Skeleton},props:{...proportionComponentProps},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),d=usePickComponentStyle(c),v=vue.computed(()=>{const Vn=c.width;return parseFloat(Vn)}),p=vue.ref({});vue.watch(()=>c.data,()=>{(c.dataType==="static"||vue.unref(h)==="design")&&(p.value=c.data)},{immediate:!0,deep:!0});const m=vue.computed(()=>{const Vn=vue.unref(p),zn=+c.variableDefaultValue;if(Vn==null)return isNaN(zn)?0:zn;const Wn=c.text.match(/\{(.+?)\}/g)||[];let Un;const er=new Set(Object.keys(Vn));for(let Jn=0;Jn<Wn.length;Jn++){const tr=Wn[Jn],Qn=tr.slice(1,tr.length-1);if(er.has(Qn)){Un=Vn[Qn];break}}return typeof Un=="number"?Un=Un*100:typeof Un=="string"&&!isNaN(+Un)?Un=+Un*100:isNaN(zn)?Un=0:Un=zn*100,c.decimalFormat&&(Un=+Un.toFixed(2)),Un}),g=vue.computed(()=>{var er;let Vn=c.text;if(Vn==="")return vue.unref(m);const zn=c.variableDefaultValue,Wn=vue.unref(p),Un=Vn.match(/\{(.+?)\}/g)||[];for(let Jn=0;Jn<Un.length;Jn++){const tr=Un[Jn];let Qn=tr.slice(1,tr.length-1);const ir=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,cr=tr.match(ir);for(let Hn=0;Hn<(cr==null?void 0:cr.length);Hn++){const Yn=(er=cr[Hn])==null?void 0:er.trim();Wn[Yn]!=null&&(Qn=Qn.replace(Yn,Wn[Yn]))}let Xn=Qn;try{(/\(.*\)/g.test(Qn)||/[+/\\*]/g.test(Qn))&&(Xn=pn(Qn))}catch(Hn){console.error(Hn)}typeof+Xn=="number"&&!isNaN(+Xn)?(Xn=+Xn*100,c.decimalFormat&&(Xn=Xn.toFixed(2))):typeof Xn!="string"&&(Xn=zn),Vn=Vn.replace(tr,`<span style="color: ${c.variableColor};">${Xn+""}</span>`)}return Vn=Vn==null?void 0:Vn.replace(/\n|\\n/g,"<br/>"),vue.unref(f)?"NaN":Vn}),y=useRequestData(c),x=vue.ref(!1),Bn=async()=>{var Vn,zn,Wn,Un,er;if(c.dataType==="request")try{x.value=!0;const Jn=await y();p.value=((Vn=Jn==null?void 0:Jn.data)==null?void 0:Vn.data)||{},(Wn=(zn=Jn==null?void 0:Jn.data)==null?void 0:zn.data)!=null&&Wn.rowsToData&&(p.value=((er=(Un=Jn==null?void 0:Jn.data)==null?void 0:Un.data)==null?void 0:er.rowsToData)||{})}catch(Jn){console.error(Jn)}finally{x.value=!1}},b=(Vn={})=>{p.value=Vn},re=Vn=>{var Wn;const{data:zn}=(Vn==null?void 0:Vn.data)||{};if(zn){f.value=!1;const{columns:Un=[],rows:er=[]}=((Wn=Vn==null?void 0:Vn.data)==null?void 0:Wn.data)??{};let Jn={};if(Un.length>0){const tr=Un.find(Qn=>!!Qn);tr&&(Jn={percent:er[tr]})}b(Jn)}else f.value=!0,b({percent:"NaN"})},_=useIndicatorData(c,re),vn=async()=>{try{x.value=!0;const Vn=await _();re(Vn)}catch(Vn){console.error(Vn)}finally{x.value=!1}},Fn=()=>{switch(c.dataType){case"indicator":vn();break;case"request":Bn();break}};useOnEvent(c,{refreshData:Fn}),u({refreshData:Fn});const w=useEmitEvent(c)("click",()=>{}),{setRequest:J}=vue.inject(REQUEST_MODEL,{setRequest:({id:Vn,sortNum:zn,requestFn:Wn})=>{}});typeof J=="function"&&J({id:c.id,requestFn:Fn,sortNum:c.requestSort});const gn=vue.computed(()=>{const{gradientShow:Vn,gradientColor:zn,gradientOffset:Wn,strokeColor:Un}=c;let er=Un;return Vn&&(er={"0%":Un||"transparent",[`${Wn*100}%`]:zn||"transparent"}),er});return{style:d,myWidth:v,text:g,myValue:m,loading:x,click:w,customStrokeColor:gn}}}),Proportion_vue_vue_type_style_index_0_scoped_ca061c1e_lang="",_hoisted_1$c=["innerHTML"];function _sfc_render$t(c,u,f,h,d,v){const p=vue.resolveComponent("skeleton"),m=vue.resolveComponent("a-progress");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-proportion",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{class:vue.normalizeClass(["progress",c.gradientShow?"gradient":""]),percent:c.myValue,width:c.myWidth,type:c.strokeType,strokeColor:c.customStrokeColor,strokeLinecap:c.strokeLinecap,trailColor:c.trailColor||"transparent",strokeWidth:c.strokeWidth,showInfo:c.strokeTextShow,gapDegree:c.strokeType==="dashboard"?75:0,onClick:c.click},{format:vue.withCtx(()=>[c.loading?(vue.openBlock(),vue.createBlock(p,{key:0,loading:c.loading},null,8,["loading"])):c.strokeTextShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"format",style:vue.normalizeStyle({width:c.strokeTextWidth,fontSize:c.fontSize,color:c.color,fontWeight:c.fontWeight,lineHeight:c.lineHeight})},[vue.createElementVNode("span",{style:{"white-space":"nowrap"},innerHTML:c.text},null,8,_hoisted_1$c)],4)):vue.createCommentVNode("",!0)]),_:1},8,["class","percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Proportion=_export_sfc$1(_sfc_main$p,[["render",_sfc_render$t],["__scopeId","data-v-ca061c1e"]]),EcanProportion=withInstall$1(Proportion),counterProps={...props,name:"计数器",type:"ecanCounter",keyName:"计数器",width:"400px",height:"80px",zIndex:0,digits:5,counterBackgroundImage:"",color:"#333",unitInterval:15,fontSize:"20px",fontWeight:700,fontStyle:"normal",unitWidth:"65px",unitHeight:"72px",data:"",graphicConfig:{}},counterComponentProps=transformToComponentProps(counterProps),counterEvents=["refreshData","click","resetRecord"],_sfc_main$o=vue.defineComponent({name:"EcanCounter",components:{Skeleton},props:{...counterComponentProps},setup(c,{expose:u}){const f=vue.ref(),h=usePickComponentStyle(c),d=vue.computed(()=>({width:c.unitWidth,height:c.unitHeight,marginRight:c.unitInterval+"px"})),v=vue.computed(()=>({color:c.color,fontSize:c.fontSize,fontWeight:c.fontWeight,fontStyle:c.fontStyle}));vue.watch(()=>[c.data,c.dataType],([gn,Vn])=>{Vn==="static"&&(f.value=gn)},{immediate:!0});const{getGlobalModel:p,setGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:gn=>{},setGlobalModel:(gn,Vn)=>{}}),y=useEmitEvent(c)("click",()=>{const gn=p(c.id);m(c.id,{...gn,type:c.type,value:vue.unref(f)})}),x=()=>{const gn=c.id,Vn=p(gn);m(gn,{...Vn,type:c.type,value:""})},Bn=useRequestData(c),b=vue.ref(!1),re=async()=>{var gn,Vn;try{b.value=!0;const zn=await Bn();f.value=((Vn=(gn=zn==null?void 0:zn.data)==null?void 0:gn.data)==null?void 0:Vn.value)||""}catch(zn){console.error(zn)}finally{b.value=!1}},_=gn=>{var Wn;const{data:Vn}=(gn==null?void 0:gn.data)||{};let zn="";if(Vn){const{columns:Un=[],rows:er=[]}=((Wn=gn==null?void 0:gn.data)==null?void 0:Wn.data)??{};if(Un.length>0){const Jn=Un.find(tr=>!!tr);Jn&&(zn=er[Jn]||"")}}f.value=String(zn)},vn=useIndicatorData(c,_),Fn=async()=>{try{b.value=!0;const gn=await vn();_(gn)}catch(gn){console.error(gn)}finally{b.value=!1}},Pn=()=>{switch(c.dataType){case"indicator":Fn();break;case"request":re();break}},w=vue.computed(()=>{const gn=[],{digits:Vn}=c,zn=vue.unref(f)?vue.unref(f).split("").reverse().join(""):"";for(let Wn=0;Wn<Vn;Wn++)zn&&zn[Wn]?gn.push(zn[Wn]):gn.push("0");return gn.reverse()});useOnEvent(c,{refreshData:Pn,resetRecord:x});const{setRequest:J}=vue.inject(REQUEST_MODEL,{setRequest:({id:gn,sortNum:Vn,requestFn:zn})=>{}});return typeof J=="function"&&J({id:c.id,requestFn:Pn,sortNum:c.requestSort}),u({refreshData:Pn}),{style:h,valueList:w,digitsStyle:d,fontStyle:v,loading:b,useImagePath,click:y}}}),Counter_vue_vue_type_style_index_0_scoped_82bd9070_lang="",_hoisted_1$b=["src"];function _sfc_render$s(c,u,f,h,d,v){var m;const p=vue.resolveComponent("skeleton");return c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{loading:c.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-counter",style:vue.normalizeStyle(c.style),onClick:u[0]||(u[0]=(...g)=>c.click&&c.click(...g))},[(m=c.valueList)!=null&&m.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(c.valueList,(g,y)=>(vue.openBlock(),vue.createElementBlock("div",{class:"digits-item",style:vue.normalizeStyle(c.digitsStyle),key:y},[c.counterBackgroundImage?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"item-image",src:c.useImagePath(c.counterBackgroundImage)},null,8,_hoisted_1$b)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:"item-text",style:vue.normalizeStyle(c.fontStyle)},vue.toDisplayString(g),5)],4))),128)):vue.createCommentVNode("",!0)],4))}const Counter=_export_sfc$1(_sfc_main$o,[["render",_sfc_render$s],["__scopeId","data-v-82bd9070"]]),EcanCounter=withInstall$1(Counter),inputProps={...props,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},inputComponentProps=transformToComponentProps(inputProps),inputEvents=["inputChange","inputBlur"],_sfc_main$n=vue.defineComponent({name:"EcanInput",components:{AInput:antDesignVue.Input},props:{...inputComponentProps},setup(c){const u=usePickComponentStyle(c),f=vue.ref(""),{getGlobalModel:h,setGlobalModel:d,getRecordValueByKeyName:v}=vue.inject(GLOBAL_MODEL,{getGlobalModel:x=>{},setGlobalModel:(x,Bn)=>{},getRecordValueByKeyName:x=>{}});vue.watch(()=>c.value,x=>{f.value=v(x)},{immediate:!0}),d(c.id,{type:c.type,value:f});const p=()=>{const x=h(c.id);d(c.id,{...x,RECORD:f})},m=useEmitEvent(c),g=lodashEs.debounce(m("inputChange",()=>{p()}),300),y=m("inputBlur",()=>{});return{style:u,myValue:f,inputBlur:y,inputChange:g}}}),Input_vue_vue_type_style_index_0_lang="";function _sfc_render$r(c,u,f,h,d,v){const p=vue.resolveComponent("a-input");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-input",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{class:"input",value:c.myValue,"onUpdate:value":u[0]||(u[0]=m=>c.myValue=m),placeholder:c.placeholder,onChange:c.inputChange,onBlur:c.inputBlur,style:vue.normalizeStyle({fontSize:c.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const Input=_export_sfc$1(_sfc_main$n,[["render",_sfc_render$r]]),EcanInput=withInstall$1(Input),datePickerProps$1={...props,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null,optionFontSize:"14px",limitStartTime:"",limitEndTime:"",data:""},datePickerComponentProps=transformToComponentProps(datePickerProps$1),datePickerEvents=["dateChange","refreshData"],__default__$3=vue.defineComponent({name:"EcanDatePicker",props:{...datePickerComponentProps},components:{ADatePicker:antDesignVue.DatePicker,AInput:antDesignVue.Input,CalendarOutlined:CalendarOutlined$1,CloseCircleFilled:CloseCircleFilled$1},setup(c){const u=vue.inject("isMobile",!1),f=vue.inject("scaleValue",{widthScale:"1",heightScale:"1"}),h=usePickComponentStyle(c),d=()=>document.getElementById("ProviderConfig")||document.body,v=vue.ref(null),p=vue.ref(null),m=vue.ref(""),g=vue.ref(!1),y=vue.ref([]),x=vue.ref(""),Bn=vue.computed(()=>{let Zn=["year","month","day"];switch(c.picker){case"year":Zn=["year"];break;case"month":Zn=["year","month"];break}return Zn}),{setGlobalModel:b,getGlobalModel:re}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Zn=>{},setGlobalModel:(Zn,qn)=>{}}),{pageId:_}=vue.inject("templateOperate",{pageId:""})||{};b(c.id,{type:c.type,format:c.format,useCurrentTime:c.useCurrentTime,value:v,RECORD:v});const vn=useEmitEvent(c),Fn=Zn=>{const qn=c.id,nr=re(qn);b(qn,{...nr,value:Zn||"",RECORD:Zn||""})},Pn=vn("refreshData",Zn=>{Fn(Zn)});vue.watch(()=>[c.value,c.useCurrentTime,c.operate,x.value],([Zn,qn,nr,or])=>{let Kn=null,ar=Zn;if(c.dataType==="request"&&(ar=or),ar?Kn=dayjs(hn(ar)):qn&&(Kn=dayjs()),nr&&Kn){const{type:lr,value:ur,mode:dr}=nr;switch(lr){case"add":Kn=Kn.add(ur,dr);break;case"minus":Kn=Kn.subtract(ur,dr)}}v.value=Kn,p.value=Kn,vue.unref(u)&&tr(Kn),Pn(Kn)},{deep:!0,immediate:!0});const w=vn("dateChange",()=>{const Zn=getNewValueFromUrlParams(_,c.keyName,"value");Zn&&(v.value=dayjs(Zn)),Fn(vue.unref(v))}),J=()=>{vue.unref(v)&&w()};useOnEvent(c,{dateChange:w});const gn=vue.ref({}),Vn=vue.ref({}),zn=Zn=>{Zn?setTimeout(()=>{Vn.value=vue.unref(gn)},300):Vn.value={}};vue.onMounted(()=>{setTimeout(()=>{const Zn=document.querySelector(`#ecan-date-picker-${c.id}`);if(Zn){const qn=Zn.getBoundingClientRect(),nr=parseFloat(vue.unref(f).widthScale)*280;document.body.clientWidth-qn.left<nr&&(gn.value.marginLeft=-1*(nr-qn.width)+"px")}},0)});const Wn=()=>{tr(vue.unref(v)),g.value=!0},Un=()=>{tr(),v.value=null},er=()=>{const Zn=dayjs(vue.unref(y).join("-"));v.value=Zn,tr(Zn),g.value=!1,J()},Jn=()=>{v.value=dayjs(),tr(),m.value=dayjs().format(c.format),g.value=!1};function tr(Zn){y.value=Qn(Zn||dayjs()),m.value=(Zn==null?void 0:Zn.format(c.format))||""}function Qn(Zn){const qn=[];for(const nr of vue.unref(Bn))nr==="day"?qn.push(Zn.date()):qn.push(Zn[nr]()+(nr==="month"?1:0));return qn}const ir=Zn=>{let qn=!1,{limitStartTime:nr,limitEndTime:or}=c,Kn=c.picker;const ar={current:vue.unref(p)};return c.picker==="date"&&(Kn="day"),nr=hn(nr,{textData:ar}),or=hn(or,{textData:ar}),nr&&or?qn=!(dayjs(nr).isBefore(Zn,Kn)&&Zn.isBefore(dayjs(or),Kn)):nr?qn=Zn.isBefore(dayjs(nr),Kn):or&&(qn=dayjs(or).isBefore(Zn,Kn)),qn},cr=(Zn={})=>{var qn;if((qn=Object.keys(Zn))!=null&&qn.length)for(const nr in Zn)x.value=Zn[nr]},Xn=useRequestData(c),Hn=vue.ref(!1),Yn=async()=>{var Zn,qn,nr;try{Hn.value=!0;const or=await Xn();(Zn=or==null?void 0:or.data)!=null&&Zn.data.rowsToData?cr(((qn=or==null?void 0:or.data)==null?void 0:qn.data.rowsToData)||{}):cr(((nr=or==null?void 0:or.data)==null?void 0:nr.data)||{})}catch(or){console.error(or)}finally{Hn.value=!1}},Rn=()=>{switch(c.dataType){case"request":{Yn();break}}},{setRequest:Gn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Zn,sortNum:qn,requestFn:nr})=>{}});return typeof Gn=="function"&&Gn({id:c.id,requestFn:Rn,sortNum:c.requestSort}),{style:h,getPopupContainer:d,myValue:v,locale,change:J,scaleValue:f,popupStyle:gn,customStyle:Vn,openChange:zn,isMobile:u,mobileDateStr:m,handleClearDate:Un,openDatePick:Wn,datePickVisible:g,columnsType:Bn,mobileDate:y,onConfirmDate:er,onCancelDate:Jn,disabledDate:ir}}}),__injectCSSVars__$3=()=>{vue.useCssVars(c=>({"0bb92cd3":c.optionFontSize}))},__setup__$3=__default__$3.setup;__default__$3.setup=__setup__$3?(c,u)=>(__injectCSSVars__$3(),__setup__$3(c,u)):__injectCSSVars__$3;const DatePicker_vue_vue_type_style_index_0_scoped_82d2ad4a_lang="",DatePicker_vue_vue_type_style_index_1_lang="",_hoisted_1$a=["id"];function _sfc_render$q(c,u,f,h,d,v){const p=vue.resolveComponent("calendar-outlined"),m=vue.resolveComponent("close-circle-filled"),g=vue.resolveComponent("a-input"),y=vue.resolveComponent("van-date-picker"),x=vue.resolveComponent("van-popup"),Bn=vue.resolveComponent("a-date-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-date-picker",style:vue.normalizeStyle(c.style),id:"ecan-date-picker-"+c.id},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(g,{value:c.mobileDateStr,placeholder:"请选择日期",readonly:"",onClick:c.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(p,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[c.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(m,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(c.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(x,{show:c.datePickVisible,"onUpdate:show":u[1]||(u[1]=b=>c.datePickVisible=b),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[c.datePickVisible?(vue.openBlock(),vue.createBlock(y,{key:0,modelValue:c.mobileDate,"onUpdate:modelValue":u[0]||(u[0]=b=>c.mobileDate=b),"columns-type":c.columnsType,"cancel-button-text":"此刻",onConfirm:c.onConfirmDate,onCancel:c.onCancelDate},null,8,["modelValue","columns-type","onConfirm","onCancel"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(Bn,{key:1,class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:c.myValue,"onUpdate:value":u[2]||(u[2]=b=>c.myValue=b),format:c.format,picker:c.picker,showTime:c.showTime,locale:c.locale,onChange:c.change,onOpenChange:c.openChange,"disabled-date":c.disabledDate,getPopupContainer:c.getPopupContainer,popupStyle:{fontSize:c.optionFontSize,transform:`scale(${c.scaleValue.widthScale}, ${c.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","disabled-date","getPopupContainer","popupStyle"]))],12,_hoisted_1$a)}const DatePicker$1=_export_sfc$1(__default__$3,[["render",_sfc_render$q],["__scopeId","data-v-82d2ad4a"]]),EcanDatePicker=withInstall$1(DatePicker$1),rangePickerProps={...props,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:"",associated:"",optionFontSize:"14px",isAllowSpanYear:!0,limitInterval:null},rangePickerComponentProps=transformToComponentProps(rangePickerProps),rangePickerEvents=["dateChange"];var quarterOfYear$1={exports:{}};(function(c,u){(function(f,h){c.exports=h()})(commonjsGlobal,function(){var f="month",h="quarter";return function(d,v){var p=v.prototype;p.quarter=function(y){return this.$utils().u(y)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(y-1))};var m=p.add;p.add=function(y,x){return y=Number(y),this.$utils().p(x)===h?this.add(3*y,f):m.bind(this)(y,x)};var g=p.startOf;p.startOf=function(y,x){var Bn=this.$utils(),b=!!Bn.u(x)||x;if(Bn.p(y)===h){var re=this.quarter()-1;return b?this.month(3*re).startOf(f).startOf("day"):this.month(3*re+2).endOf(f).endOf("day")}return g.bind(this)(y,x)}}})})(quarterOfYear$1);var quarterOfYearExports=quarterOfYear$1.exports;const quarterOfYear=getDefaultExportFromCjs(quarterOfYearExports);dayjs.extend(quarterOfYear);const __default__$2=vue.defineComponent({name:"EcanRangePicker",components:{ARangePicker:antDesignVue.RangePicker,AInput:antDesignVue.Input,CalendarOutlined:CalendarOutlined$1,CloseCircleFilled:CloseCircleFilled$1},props:{...rangePickerComponentProps},setup(c){const u=vue.inject("isMobile",!1),{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),h=usePickComponentStyle(c),d=()=>document.getElementById("ProviderConfig")||document.body,v=vue.ref([null,null]),p=vue.ref(!1),m=vue.ref([]),g=vue.ref([]),y=vue.ref(),x=vue.ref(),Bn=vue.ref(),b=vue.ref(),re=vue.ref(0),_=vue.ref({}),vn=vue.ref(""),Fn=vue.computed(()=>{let sr=["year","month","day"];switch(c.picker){case"year":sr=["year"];break;case"month":sr=["year","month"];break}return sr});vue.watch(()=>[c.startTime,c.endTime,c.useCurrentTime,c.interval,c.intervalUnit,c.operate],([sr,fr,pr,mr,gr,hr])=>{if(vue.unref(v).every(vr=>!vr)||vue.unref(f)==="design"){let vr=null,yr=null;if(pr&&(vr=dayjs().subtract(mr,gr),yr=dayjs()),sr&&(vr=dayjs(hn(sr))),fr&&(yr=dayjs(hn(fr))),hr){const{type:xr,value:Cr,mode:Er}=hr;switch(xr){case"add":vr=vr&&vr.add(Cr,Er),yr=yr&&yr.add(Cr,Er);break;case"minus":vr=vr&&vr.subtract(Cr,Er),yr=yr&&yr.subtract(Cr,Er)}}v.value=[vr,yr],vue.unref(u)&&ur()}},{immediate:!0});let Pn=vue.unref(v)[0],w=vue.unref(v)[1],J="";const gn=(sr,fr,pr)=>{Array.isArray(sr)?(Pn=sr[0],w=sr[1],J=pr.range):(Pn=null,w=null)},Vn=sr=>{let fr=!1,{limitStartTime:pr,limitEndTime:mr}=c;const gr={startTime:`${Pn||""}`,endTime:`${w||""}`};if(pr=hn(pr,{codeData:gr}),mr=hn(mr,{codeData:gr}),pr&&mr?fr=!(dayjs(pr)<sr&&sr<dayjs(mr)):pr?fr=dayjs(pr)>sr:mr&&(fr=dayjs(mr)<sr),!c.isAllowSpanYear&&J){let hr=null;if(J==="start"?hr=Pn:J==="end"&&(hr=w),hr){const vr=hr.startOf("year"),yr=hr.endOf("year");fr=!(vr<=sr&&sr<yr)}}if(!fr){const{value:hr=0,mode:vr="year"}=c.limitInterval||{};hr&&(J==="start"?fr=Pn.add(hr,vr)<sr:J==="end"&&(fr=w.subtract(hr,vr)>sr))}return fr},{getGlobalModel:zn,setGlobalModel:Wn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:sr=>{},setGlobalModel:(sr,fr)=>{}}),Un=vue.computed(()=>Array.isArray(vue.unref(v))?vue.unref(v)[0]:null),er=vue.computed(()=>Array.isArray(vue.unref(v))?vue.unref(v)[1]:null),{pageId:Jn}=vue.inject("templateOperate",{pageId:""})||{};Wn(c.id,{type:c.type,format:c.format,startTime:Un,endTime:er,interval:c.interval,intervalUnit:c.intervalUnit,useCurrentTime:c.useCurrentTime,operate:c.operate});const tr=useEmitEvent(c);let Qn=!1;const ir=tr("dateChange",()=>{var pr;const sr=getNewValueFromUrlParams(Jn,c.keyName,"startTime"),fr=getNewValueFromUrlParams(Jn,c.keyName,"endTime");(pr=v.value)!=null&&pr.length||(v.value=[null,null]),sr&&(v.value[0]=dayjs(sr)),fr&&(v.value[1]=dayjs(fr))}),cr=sr=>{const fr=vue.unref(v),pr=fr&&fr[0]&&fr[1];sr===!1&&Qn===!0&&pr&&(ir(),Qn=!1),sr||(J="")},Xn=()=>{Qn=!0},Hn=()=>{const{associated:sr}=c;if(sr){const fr=zn(sr)||{};if(fr){const{value:pr}=fr;if(pr)switch(vue.unref(pr)){case"month":v.value=[dayjs().startOf("month"),dayjs().endOf("month")];break;case"quarter":v.value=[dayjs().startOf("quarter"),dayjs().endOf("quarter")];break;case"year":v.value=[dayjs().startOf("year"),dayjs().endOf("year")];break}}}ir()},Yn=()=>{ar(vue.unref(v)),p.value=!0},Rn=()=>{ar(),vn.value="",v.value=[null,null]},Gn=()=>{v.value=[dayjs(vue.unref(m).join("-")),dayjs(vue.unref(g).join("-"))],ar(vue.unref(v)),lr(),or(),p.value=!1,ir()},Zn=()=>{Kn(),p.value=!1},qn=()=>{var sr,fr;(sr=vue.unref(m))!=null&&sr.length&&c.format&&(Bn.value=new Date(vue.unref(m).join("-")),(fr=vue.unref(g))!=null&&fr.length&&dayjs(vue.unref(g).join("-")).isBefore(dayjs(vue.unref(m).join("-")))&&(g.value=lodashEs.cloneDeep(vue.unref(m))))},nr=()=>{var sr,fr;(sr=vue.unref(g))!=null&&sr.length&&c.format&&(x.value=new Date(vue.unref(g).join("-")),(fr=vue.unref(m))!=null&&fr.length&&dayjs(vue.unref(m).join("-")).isAfter(dayjs(vue.unref(g).join("-")))&&(m.value=lodashEs.cloneDeep(vue.unref(g))))};function or(){_.value={startMinDate:lodashEs.cloneDeep(vue.unref(y)),startMaxDate:lodashEs.cloneDeep(vue.unref(x)),endMinDate:lodashEs.cloneDeep(vue.unref(Bn)),endMaxDate:lodashEs.cloneDeep(vue.unref(b))}}function Kn(){y.value=vue.unref(_).startMinDate,x.value=vue.unref(_).startMaxDate,Bn.value=vue.unref(_).endMinDate,b.value=vue.unref(_).endMaxDate}function ar(sr=[]){m.value=dr(sr[0]||dayjs()),g.value=dr(sr[1]||dayjs())}function lr(){var pr,mr;const sr=(pr=vue.unref(m))!=null&&pr.length?dayjs(vue.unref(m).join("-")):"",fr=(mr=vue.unref(g))!=null&&mr.length?dayjs(vue.unref(g).join("-")):"";vn.value=sr&&fr&&`${sr.format(c.format)} 至 ${fr.format(c.format)}`}function ur(){const{limitStartTime:sr,limitEndTime:fr,limitInterval:pr,isAllowSpanYear:mr}=c;ar(vue.unref(v)),sr&&(y.value=new Date(sr),Bn.value=new Date(sr),vue.unref(v)[0].isBefore(dayjs(sr))&&(vue.unref(v)[0]=dayjs(sr),m.value=dr(vue.unref(v)[0]))),fr&&(x.value=new Date(fr),b.value=new Date(fr),vue.unref(v)[1].isAfter(dayjs(fr))&&(vue.unref(v)[1]=dayjs(fr),g.value=dr(vue.unref(v)[1]))),vue.unref(v).every(gr=>gr)&&(pr!=null&&pr.value)&&vue.unref(v)[1].diff(vue.unref(v)[0],pr.mode)>pr.value&&(vue.unref(v)[0]=vue.unref(v)[1].subtract(pr.value,pr.mode),m.value=dr(vue.unref(v)[0])),vue.unref(v).every(gr=>gr)&&!mr&&vue.unref(v)[0].year()!==vue.unref(v)[1].year()&&(vue.unref(v)[0]=dayjs(`${vue.unref(v)[1].year()}-01-01`),m.value=dr(vue.unref(v)[0])),or(),lr()}function dr(sr){const fr=[];for(const pr of vue.unref(Fn))pr==="day"?fr.push(sr.date()):fr.push(sr[pr]()+(pr==="month"?1:0));return fr}return useOnEvent(c,{dateChange:Hn}),{style:h,getPopupContainer:d,locale,dateChange:ir,myValue:v,disabledDate:Vn,calendarChange:gn,openChange:cr,change:Xn,isMobile:u,mobileDateStr:vn,datePickVisible:p,columnsType:Fn,openDatePick:Yn,handleClearDate:Rn,onConfirmDate:Gn,onCancelDate:Zn,mobileStartDate:m,mobileEndDate:g,startMinDate:y,startMaxDate:x,endMinDate:Bn,endMaxDate:b,pickerTabKey:re,onStartDateChange:qn,onEndDateChange:nr}}}),__injectCSSVars__$2=()=>{vue.useCssVars(c=>({"2a62a250":c.optionFontSize}))},__setup__$2=__default__$2.setup;__default__$2.setup=__setup__$2?(c,u)=>(__injectCSSVars__$2(),__setup__$2(c,u)):__injectCSSVars__$2;const RangePicker_vue_vue_type_style_index_0_scoped_251fac14_lang="",RangePicker_vue_vue_type_style_index_1_lang="";function _sfc_render$p(c,u,f,h,d,v){const p=vue.resolveComponent("calendar-outlined"),m=vue.resolveComponent("close-circle-filled"),g=vue.resolveComponent("a-input"),y=vue.resolveComponent("van-date-picker"),x=vue.resolveComponent("van-picker-group"),Bn=vue.resolveComponent("van-popup"),b=vue.resolveComponent("a-range-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-range-picker",style:vue.normalizeStyle(c.style)},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(g,{value:c.mobileDateStr,placeholder:"请选择日期范围",readonly:"",onClick:c.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(p,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[c.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(m,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(c.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(Bn,{show:c.datePickVisible,"onUpdate:show":u[3]||(u[3]=re=>c.datePickVisible=re),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[c.datePickVisible?(vue.openBlock(),vue.createBlock(x,{key:0,"active-tab":c.pickerTabKey,"onUpdate:active-tab":u[2]||(u[2]=re=>c.pickerTabKey=re),tabs:["开始日期","结束日期"],onConfirm:c.onConfirmDate,onCancel:c.onCancelDate},{default:vue.withCtx(()=>[vue.createVNode(y,{modelValue:c.mobileStartDate,"onUpdate:modelValue":u[0]||(u[0]=re=>c.mobileStartDate=re),"min-date":c.startMinDate,"max-date":c.startMaxDate,"columns-type":c.columnsType,onChange:c.onStartDateChange},null,8,["modelValue","min-date","max-date","columns-type","onChange"]),vue.createVNode(y,{modelValue:c.mobileEndDate,"onUpdate:modelValue":u[1]||(u[1]=re=>c.mobileEndDate=re),"min-date":c.endMinDate,"max-date":c.endMaxDate,"columns-type":c.columnsType,onChange:c.onEndDateChange},null,8,["modelValue","min-date","max-date","columns-type","onChange"])]),_:1},8,["active-tab","onConfirm","onCancel"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(b,{key:1,class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:c.myValue,"onUpdate:value":u[4]||(u[4]=re=>c.myValue=re),format:c.format,picker:c.picker,locale:c.locale,getPopupContainer:c.getPopupContainer,"disabled-date":c.disabledDate,onChange:c.change,onCalendarChange:c.calendarChange,onOpenChange:c.openChange,popupStyle:{fontSize:c.optionFontSize}},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"]))],4)}const RangePicker=_export_sfc$1(__default__$2,[["render",_sfc_render$p],["__scopeId","data-v-251fac14"]]),EcanRangePicker=withInstall$1(RangePicker),buttonProps={...props,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400,tooltipTextStyleColor:"",buttonBackgroundColor:"#FFFFFF",borderColor:"#d9d9d9"},buttonComponentProps=transformToComponentProps(buttonProps),buttonEvents=["click"],_sfc_main$m=vue.defineComponent({name:"EcanButton",components:{AButton:antDesignVue.Button},props:{...buttonComponentProps},setup(c){const u=usePickComponentStyle(c),h=useEmitEvent(c)("click",()=>{const g=vue.unref(p);g&&c.target==="event"&&window.parent.postMessage({type:"openPage",url:g},"*")}),d=vue.computed(()=>{const g={};return c.mode!=="primary"&&(g.backgroundColor=c.buttonBackgroundColor||"transparent",g.color=c.tooltipTextStyleColor,g.borderColor=c.borderColor||"transparent"),{height:c.height,...g}}),v=vue.computed(()=>hn(c.text)),p=vue.computed(()=>hn(c.href)||null),m=vue.computed(()=>{const g=c.target;if(!(g==="event"||vue.unref(p)==null))return{self:"_self",blank:"_blank"}[g]});return{style:u,click:h,myText:v,myHref:p,myTarget:m,buttonStyle:d}}}),Button_vue_vue_type_style_index_0_lang="";function _sfc_render$o(c,u,f,h,d,v){const p=vue.resolveComponent("a-button");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-button",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{block:"",onClick:c.click,type:c.mode,danger:c.danger,shape:c.shape,href:c.myHref,target:c.myTarget,style:vue.normalizeStyle(c.buttonStyle),class:vue.normalizeClass(c.tooltipTextStyleColor?"custom-color":"")},{default:vue.withCtx(()=>[vue.createElementVNode("span",{style:vue.normalizeStyle({fontSize:c.fontSize,fontWeight:c.fontWeight})},vue.toDisplayString(c.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Button=_export_sfc$1(_sfc_main$m,[["render",_sfc_render$o]]),EcanButton=withInstall$1(Button),checkboxProps={...props,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}],graphicConfig:{}},checkboxComponentProps=transformToComponentProps(checkboxProps),checkboxEvents=["checkboxChange"],_sfc_main$l=vue.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:antDesignVue.CheckboxGroup},props:{...checkboxComponentProps},setup(c,{expose:u}){const f=usePickComponentStyle(c),h=vue.ref([]),d=vue.ref([]),v=Pn=>{const w=c.value;let J=[];Pn.forEach(gn=>{gn.checked&&J.push(gn.value)}),typeof w=="string"&&w!==""?J=J.concat(w.split(",")):Array.isArray(w)&&(J=J.concat(w)),h.value=Pn,d.value=J};vue.watch(()=>[c.data,c.value],([Pn])=>{v(Pn)},{immediate:!0,deep:!0});const p=useRequestData(c),m=async()=>{var J,gn;if(c.dataType!=="request")return;const Pn=await p(),w=((gn=(J=Pn==null?void 0:Pn.data)==null?void 0:J.data)==null?void 0:gn.rows)||[];v(w)},{getGlobalModel:g,setGlobalModel:y}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Pn=>{},setGlobalModel:(Pn,w)=>{}});y(c.id,{type:c.type,value:d});const Bn=useEmitEvent(c)("checkboxChange",()=>{const Pn=g(c.id);y(c.id,{...Pn,RECORD:d})}),b=Pn=>{var J;const{data:w}=(Pn==null?void 0:Pn.data)||{};if(w){const Vn=(((J=Pn==null?void 0:Pn.data)==null?void 0:J.data)??[]).map(zn=>({label:zn.label,value:zn.value}));v(Vn)}else v([])},re=useIndicatorData(c,b),_=async()=>{try{const Pn=await re();b(Pn)}catch(Pn){console.error(Pn)}},vn=()=>{switch(c.dataType){case"indicator":_();break;case"request":m();break}},{setRequest:Fn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Pn,sortNum:w,requestFn:J})=>{}});return typeof Fn=="function"&&Fn({id:c.id,requestFn:vn,sortNum:c.requestSort}),u({refreshData:vn}),{myOption:h,style:f,myValue:d,checkboxChange:Bn}}}),Checkbox_vue_vue_type_style_index_0_lang="";function _sfc_render$n(c,u,f,h,d,v){const p=vue.resolveComponent("a-checkbox-group");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-checkbox",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{options:c.myOption,value:c.myValue,"onUpdate:value":u[0]||(u[0]=m=>c.myValue=m),onChange:c.checkboxChange},null,8,["options","value","onChange"])],4)}const Checkbox=_export_sfc$1(_sfc_main$l,[["render",_sfc_render$n]]),EcanCheckbox=withInstall$1(Checkbox),selectProps={...props,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},selectComponentProps=transformToComponentProps(selectProps),selectEvents=["selectChange","refreshData","clearValue"],_sfc_main$k=vue.defineComponent({name:"EcanSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,AInput:antDesignVue.Input,DownOutlined:DownOutlined$1},props:{...selectComponentProps},setup(c,{expose:u}){var lr,ur,dr;const f=vue.inject("isMobile",!1),h=vue.ref(!1),d={text:((lr=c.dataFieldNames)==null?void 0:lr.label)||"label",value:((ur=c.dataFieldNames)==null?void 0:ur.value)||"value"},v=vue.ref([]),p=usePickComponentStyle(c),m=()=>document.getElementById("ProviderConfig")||document.body,g=vue.ref(c.data||[]),y=vue.ref(),x=vue.computed({get:()=>{var fr;const{mode:sr}=c;return(fr=vue.unref(g))!=null&&fr.length?y.value:sr==="multiple"||sr==="tags"||sr==="combobox"?[]:""},set:sr=>{y.value=sr}}),Bn=vue.computed(()=>{const{value:sr,label:fr}=c.dataFieldNames,pr=[];if(Array.isArray(vue.unref(x)))for(const mr of vue.unref(x)){const gr=vue.unref(g).find(hr=>hr[sr]===mr);gr&&pr.push(gr[fr])}else{const mr=vue.unref(g).find(gr=>gr[sr]===vue.unref(x));mr&&pr.push(mr[fr])}return pr.join(",")}),{setLoadedData:b,loadedData:re}=vue.inject(LOADED_DATA,{setLoadedData:(sr,fr)=>{},loadedData:{}}),{getGlobalModel:_,setGlobalModel:vn,getRecordValueByKeyName:Fn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:sr=>{},setGlobalModel:(sr,fr)=>{},getRecordValueByKeyName:sr=>{}}),Pn=c.dataFieldNames;vue.watch(()=>[c.value,c.mode,c.selectFirstOption,c.valueType,g.value],()=>{const{mode:sr,selectFirstOption:fr,value:pr}=c,mr=Fn(pr),gr=Pn.value;if(sr==="multiple"||sr==="tags"||sr==="combobox"){if(mr)y.value=mr.split(",");else if(fr){const hr=vue.unref(g)[0];y.value=hr?[hr[gr]]:[]}}else if(mr)y.value=mr;else if(fr){const hr=vue.unref(g)[0];y.value=hr?hr[gr]:""}},{immediate:!0});const w=(sr,fr)=>{const pr=Pn.label,mr=Pn.value;let gr;const hr=fr[pr],vr=fr[mr];return hr!=null?gr=hr:vr!=null&&(gr=vr),(gr==null?void 0:gr.toLowerCase().indexOf(sr==null?void 0:sr.toLowerCase()))>=0},J=sr=>{const{label:fr,value:pr,options:mr}=c.dataFieldNames;if(mr&&Array.isArray(sr))if(sr.some(gr=>mr in gr)){const gr={},hr=[];sr.forEach(vr=>{gr[vr[mr]]||(gr[vr[mr]]=[]),gr[vr[mr]].push({[fr]:vr[fr],[pr]:vr[pr]})});for(const vr in gr)hr.push({[fr]:vr,[mr]:gr[vr]});return hr}else return sr;else{if(!mr&&Array.isArray(sr))return sr=sr.map(gr=>({label:gr[fr],value:gr[pr]})),sr;if(!mr&&!Array.isArray(sr))return sr}},gn=vue.ref(!1),Vn=sr=>{var fr,pr;if(g.value=J(((pr=(fr=sr==null?void 0:sr.data)==null?void 0:fr.data)==null?void 0:pr.rows)||[]),c.selectFirstOption){let mr=vue.unref(g)[0];if(Pn.options){const gr=mr[Pn.options];gr&&gr.length&&(mr=gr[0])}y.value=mr[Pn.value]}b(c.id,!0),vue.nextTick(()=>{c.dataType!=="static"&&cr()})},zn=useRequestData(c),Wn=async()=>{if(c.dataType==="request"){gn.value=!0;try{const sr=await zn();Vn(sr)}catch(sr){console.error(sr)}finally{gn.value=!1}}},Un=vue.computed(()=>{let sr=y.value;if(c.valueType==="label"&&vue.unref(y)&&vue.unref(g)){const fr=Pn.label,pr=Pn.value;if(c.mode==="multiple")sr=vue.unref(g).filter(mr=>vue.unref(y).includes(mr[pr])).map(mr=>mr[fr]);else{const mr=vue.unref(g).find(gr=>vue.unref(y)===gr[pr]);mr&&(sr=mr[fr])}}return sr}),er=vue.ref([]),Jn=vue.computed(()=>{const sr={};if(c.mode!=="multiple"){const fr=vue.unref(er).find(pr=>pr.value===vue.unref(y));fr&&(sr.itemCodes=fr.item_codes)}return sr}),tr=vue.computed(()=>{const{value:sr,label:fr}=Pn,pr=vue.unref(g).find(mr=>mr[sr]===vue.unref(x));return pr?{label:pr[fr],value:pr[sr]}:{}}),{pageId:Qn}=vue.inject("templateOperate",{pageId:""})||{};vn(c.id,{type:c.type,dataType:c.dataType,value:Un,label:(dr=vue.unref(tr))==null?void 0:dr.label,...vue.unref(Jn),recordData:vue.unref(tr)});const ir=useEmitEvent(c),cr=ir("selectChange",()=>{const sr=c.id,fr=_(sr);vn(sr,{...fr,...vue.unref(Jn),RECORD:Un,recordData:vue.unref(tr),dataType:c.dataType});const pr=getNewValueFromUrlParams(Qn,c.keyName,"value");pr&&(x.value=pr)}),Xn=ir("clearValue",()=>{["multiple","tags","combobox"].includes(c.mode)?y.value=[]:y.value=null;const sr=c.id;vn(sr,{RECORD:"",recordData:vue.unref(tr),dataType:c.dataType})}),Hn=ir("refreshData",(sr=[])=>{var pr,mr;const fr=J(sr);if((mr=(pr=c==null?void 0:c.graphicConfig)==null?void 0:pr.formFields)!=null&&mr.hasAllOption){const gr=Pn.label,hr=Pn.value;fr.unshift({[gr]:"全部",[hr]:""})}if(g.value=fr,c.selectFirstOption){let gr=vue.unref(g)[0];if(Pn.options){const hr=gr[Pn.options];hr&&hr.length&&(gr=hr[0])}y.value=gr[Pn.value]}vn(c.id,{type:c.type,value:Un,...vue.unref(Jn),recordData:vue.unref(tr),dataType:c.dataType})}),Yn=sr=>{var gr;const{data:fr}=(sr==null?void 0:sr.data)||{},pr=Pn.label,mr=Pn.value;if(fr){const{rows:hr=[]}=((gr=sr==null?void 0:sr.data)==null?void 0:gr.data)||{};er.value=hr;const vr=hr.map(Cr=>({[pr]:Cr.label,[mr]:Cr.value})),{id:yr}=c,xr=_(yr);vn(yr,{...xr,...vue.unref(Jn),dataType:c.dataType}),b(yr,!0),Hn(vr)}else Hn([])},Rn=useIndicatorData(c,Yn),Gn=async()=>{try{gn.value=!0;const sr=await Rn();Yn(sr)}catch(sr){console.error(sr)}finally{gn.value=!1}},Zn=vue.computed(()=>{var sr,fr;return(fr=getConditions(((sr=c==null?void 0:c.graphicConfig)==null?void 0:sr.controlList)||[]))==null?void 0:fr.find(pr=>pr.conditionKey==="parentCode")}),qn=vue.ref(!1);vue.watch(re,sr=>{!vue.unref(qn)&&vue.unref(Zn)&&sr[vue.unref(Zn).id]&&(qn.value=!0,nr())},{deep:!0});const nr=()=>{switch(c.dataType){case"indicator":{if(vue.unref(Zn)){if(vue.unref(re)[vue.unref(Zn).id]){const{mode:sr}=c;sr==="multiple"||sr==="tags"||sr==="combobox"?x.value=[]:x.value="",Gn()}}else Gn();break}case"request":Wn();break}};useOnEvent(c,{selectChange:cr,refreshData:nr,clearValue:Xn});const{setRequest:or}=vue.inject(REQUEST_MODEL,{setRequest:({id:sr,sortNum:fr,requestFn:pr})=>{}});return typeof or=="function"&&or({id:c.id,requestFn:nr,sortNum:c.requestSort}),u({refreshData:nr}),{style:p,getPopupContainer:m,myValue:y,selectChange:cr,options:g,filterOption:w,loading:gn,resultValue:x,isMobile:f,customFieldName:d,pickVisible:h,onConfirmPicker:()=>{x.value=vue.unref(v)[0],cr(),h.value=!1},mobileValue:Bn,openPicker:()=>{var sr;!Array.isArray(vue.unref(x))&&((sr=vue.unref(g))!=null&&sr.length)&&c.dataFieldNames.value&&(v.value=vue.unref(x)?[vue.unref(x)]:[vue.unref(g)[0][c.dataFieldNames.value]]),h.value=!0},mobileSelectValue:v}}}),Select_vue_vue_type_style_index_0_scoped_1b6377da_lang="",Select_vue_vue_type_style_index_1_lang="";function _sfc_render$m(c,u,f,h,d,v){const p=vue.resolveComponent("down-outlined"),m=vue.resolveComponent("a-input"),g=vue.resolveComponent("van-picker"),y=vue.resolveComponent("van-popup"),x=vue.resolveComponent("a-select-option"),Bn=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-select",style:vue.normalizeStyle(c.style)},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(m,{value:c.mobileValue,placeholder:"请选择日期",readonly:"",onClick:c.openPicker},{suffix:vue.withCtx(()=>[vue.createVNode(p)]),_:1},8,["value","onClick"]),vue.createVNode(y,{show:c.pickVisible,"onUpdate:show":u[1]||(u[1]=b=>c.pickVisible=b),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[c.pickVisible?(vue.openBlock(),vue.createBlock(g,{key:0,modelValue:c.mobileSelectValue,"onUpdate:modelValue":u[0]||(u[0]=b=>c.mobileSelectValue=b),"columns-field-names":c.customFieldName,columns:c.options,"cancel-button-text":" ",onConfirm:c.onConfirmPicker},null,8,["modelValue","columns-field-names","columns","onConfirm"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(Bn,{key:1,class:"select",value:c.resultValue,"onUpdate:value":u[2]||(u[2]=b=>c.resultValue=b),placeholder:c.placeholder,showSearch:"",allowClear:c.isAllowClear,mode:c.mode,getPopupContainer:c.getPopupContainer,maxTagCount:c.maxTagCount,filterOption:c.filterOption,loading:c.loading,autoClearSearchValue:c.autoClearSearchValue,onChange:c.selectChange,style:vue.normalizeStyle({fontSize:c.optionFontSize})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.options,(b,re)=>(vue.openBlock(),vue.createBlock(x,{key:re,value:b.value,style:vue.normalizeStyle({fontSize:c.optionFontSize})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(b.label),1)]),_:2},1032,["value","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"]))],4)}const Select=_export_sfc$1(_sfc_main$k,[["render",_sfc_render$m],["__scopeId","data-v-1b6377da"]]),EcanSelect=withInstall$1(Select),treeSelectProps={...props,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},treeSelectComponentProps=transformToComponentProps(treeSelectProps),treeSelectEvents=["selectChange","refreshData"],_sfc_main$j={name:"EcanTreeSelect",components:{ATreeSelect:antDesignVue.TreeSelect},props:{...treeSelectComponentProps},setup(c){const u=usePickComponentStyle(c),f=vue.ref(c.data),h=(_,vn)=>{const Fn=c.dataFieldNames,Pn=Fn.label,w=Fn.value;let J;const gn=vn[Pn],Vn=vn[w];return gn!=null?J=gn:Vn!=null&&(J=Vn),(J==null?void 0:J.toLowerCase().indexOf(_==null?void 0:_.toLowerCase()))>=0},d=vue.ref();vue.watch(()=>[c.multiple,c.value,c.treeCheckable,c.selectFirstOption],()=>{const{multiple:_,value:vn,selectFirstOption:Fn}=c;_?vn?d.value=vn.split(","):Fn&&(d.value=[vue.unref(f)[0]]):vn?d.value=vn:Fn&&(d.value=vue.unref(f)[0])},{immediate:!0});const v=vue.ref(!1),p=_=>{var Fn,Pn;f.value=((Pn=(Fn=_==null?void 0:_.data)==null?void 0:Fn.data)==null?void 0:Pn.rows)||[];const vn=vue.unref(f)[0];c.value===""&&vn!=null&&(d.value=vn[c.dataFieldNames.value])},m=useRequestData(c),g=async()=>{if(c.dataType==="request"){v.value=!0;try{const _=await m();p(_)}catch(_){console.error(_)}finally{v.value=!1}}},{getGlobalModel:y,setGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:_=>{},setGlobalModel:(_,vn)=>{}});x(c.id,{type:c.type,value:d});const b=useEmitEvent(c)("selectChange",()=>{const _=c.id,vn=y(_);x(_,{...vn,RECORD:d})});useOnEvent(c,{selectChange:b,refreshData:g});const{setRequest:re}=vue.inject(REQUEST_MODEL,{setRequest:({id:_,sortNum:vn,requestFn:Fn})=>{}});return re({id:c.id,requestFn:g,sortNum:c.requestSort}),{style:u,treeData:f,filterTreeNode:h,myValue:d,loading:v,selectChange:b}}},TreeSelect_vue_vue_type_style_index_0_scoped_09e7f364_lang="",TreeSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$l(c,u,f,h,d,v){const p=vue.resolveComponent("a-tree-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tree-select",style:vue.normalizeStyle(h.style)},[vue.createVNode(p,{class:"tree-select",value:h.myValue,"onUpdate:value":u[0]||(u[0]=m=>h.myValue=m),allowClear:"",showSearch:"",loading:h.loading,fieldNames:c.dataFieldNames,treeData:h.treeData,maxTagCount:c.maxTagCount,multiple:c.multiple,treeCheckable:c.treeCheckable,filterTreeNode:h.filterTreeNode,placeholder:c.placeholder,onChange:h.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const TreeSelect=_export_sfc$1(_sfc_main$j,[["render",_sfc_render$l],["__scopeId","data-v-09e7f364"]]),EcanTreeSelect=withInstall$1(TreeSelect),radioProps={...props,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:"",data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",tabBackgroundImage:"",activeTabBackgroundImage:"",activeTabColor:"#1890ff",tabColor:"#333",tabFontSize:"14px",tabHorizontalPadding:"0px",tabVerticalPadding:"5px",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:"",selectFirstOption:!1,radioMode:"native"},radioComponentProps=transformToComponentProps(radioProps),radioEvents=["checkboxChange","click"],_sfc_main$i=vue.defineComponent({name:"EcanRadio",components:{ARadioGroup:antDesignVue.RadioGroup,ARadioButton:antDesignVue.RadioButton,ARadio:antDesignVue.Radio},props:{...radioComponentProps},setup(c,{expose:u}){const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),h=usePickComponentStyle(c),d=vue.ref([]),v=vue.ref(""),p=(Vn=[])=>{var Un;const zn=c.value;let Wn=[];typeof zn=="string"&&zn!==""?Wn=Wn.concat(zn.split(",")):Array.isArray(zn)&&(Wn=Wn.concat(zn)),d.value=Vn,c.selectFirstOption?v.value=((Un=Vn[0])==null?void 0:Un.value)||"":v.value=Wn[0]||""};vue.watch(()=>[c.data,c.value,c.selectFirstOption],([Vn])=>{vue.unref(f)==="design"&&p(Vn)},{immediate:!0,deep:!0});const m=useRequestData(c),g=async()=>{var Wn,Un;if(c.dataType!=="request")return;const Vn=await m(),zn=((Un=(Wn=Vn==null?void 0:Vn.data)==null?void 0:Wn.data)==null?void 0:Un.rows)||[];p(zn)},{getGlobalModel:y,setGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Vn=>{},setGlobalModel:(Vn,zn)=>{}});x(c.id,{type:c.type,value:v});const Bn=useEmitEvent(c),b=()=>{const Vn=vue.unref(d).find(zn=>zn.value===vue.unref(v))||{};Bn("checkboxChange",()=>{const zn=y(c.id);x(c.id,{...zn,RECORD:v})},Vn)()},re=Vn=>{v.value=Vn,Bn("click",()=>{const zn=y(c.id);x(c.id,{...zn,RECORD:v})})()};vue.watch(v,()=>{b()});const _=Vn=>{var Wn;const{data:zn}=(Vn==null?void 0:Vn.data)||{};if(zn){const er=(((Wn=Vn==null?void 0:Vn.data)==null?void 0:Wn.data)??[]).map(Jn=>({label:Jn.label,value:Jn.value}));p(er)}else p([])},vn=useIndicatorData(c,_),Fn=async()=>{try{const Vn=await vn();_(Vn)}catch(Vn){console.error(Vn)}},Pn=()=>{switch(c.dataType){case"indicator":Fn();break;case"request":g();break}},{setRequest:w}=vue.inject(REQUEST_MODEL,{setRequest:({id:Vn,sortNum:zn,requestFn:Wn})=>{}});typeof w=="function"&&w({id:c.id,requestFn:Pn,sortNum:c.requestSort});const J=Vn=>{v.value=Vn.value},gn=vue.computed(()=>c.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px",fontSize:c.tabFontSize}:{fontSize:c.tabFontSize});return vue.onMounted(()=>{p(c.data)}),u({refreshData:Pn}),{myOption:d,style:h,myValue:v,radioStyle:gn,onClickButton:re,useImagePath,tabChange:J}}}),Radio_vue_vue_type_style_index_0_lang="",Radio_vue_vue_type_style_index_1_scoped_a19c4d3e_lang="",_hoisted_1$9=["onClick"];function _sfc_render$k(c,u,f,h,d,v){const p=vue.resolveComponent("a-radio"),m=vue.resolveComponent("a-radio-button"),g=vue.resolveComponent("a-radio-group");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-radio",c.optionType]),style:vue.normalizeStyle(c.style)},[c.radioMode==="custom"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"tabs-header",style:vue.normalizeStyle({fontSize:c.tabFontSize,flexDirection:c.tabFlexDirection,alignItems:c.tabTextAlign})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myOption,(y,x)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`${c.tabVerticalPadding} ${c.tabHorizontalPadding}`,color:c.myValue===y.value?c.activeTabColor:c.tabColor,backgroundImage:c.myValue===y.value?c.useImagePath(c.activeTabBackgroundImage,!0):c.useImagePath(c.tabBackgroundImage,!0),marginRight:c.tabFlexDirection==="row"?c.tabBarGutter:"0",marginBottom:c.tabFlexDirection==="column"?c.tabBarGutter:"0"}),key:x,onClick:vue.withModifiers(Bn=>c.tabChange(y),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!c.activeTabBackgroundImage&&!c.tabBackgroundImage?`1px solid ${c.myValue===y.value?c.activeTabColor:"transparent"}`:""})},vue.toDisplayString(y.label),5)],12,_hoisted_1$9))),128))],4)):c.radioMode==="native"?(vue.openBlock(),vue.createBlock(g,{key:1,value:c.myValue,"onUpdate:value":u[0]||(u[0]=y=>c.myValue=y)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myOption,y=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.value},[c.optionType==="default"?(vue.openBlock(),vue.createBlock(p,{key:0,value:y.value,style:vue.normalizeStyle(c.radioStyle)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(y.label),1)]),_:2},1032,["value","style"])):c.optionType==="button"?(vue.openBlock(),vue.createBlock(m,{key:1,value:y.value,style:vue.normalizeStyle({fontSize:c.tabFontSize}),onClick:x=>c.onClickButton(y.value)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(y.label),1)]),_:2},1032,["value","style","onClick"])):vue.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"])):vue.createCommentVNode("",!0)],6)}const Radio=_export_sfc$1(_sfc_main$i,[["render",_sfc_render$k],["__scopeId","data-v-a19c4d3e"]]),EcanRadio=withInstall$1(Radio),pieProps={...props,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",labelWidth:100,labelOverflow:"none",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",tooltipPosition:"",graphicType:"ecanPie",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,legendType:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},pieComponentProps=transformToComponentProps(pieProps),pieEvents=["click","refreshData","resetRecord"],useDownloadFile=async c=>{var g;const u=await request.post(c,{},{responseType:"blob"}),{data:f,headers:h}=u,d=h["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),v=new Blob([f]),p=document.createElement("a"),m=window.URL.createObjectURL(v);p.href=m,p.download=decodeURI(d),p.style.display="none",document.body.appendChild(p),p.click(),(g=p.parentNode)==null||g.removeChild(p),window.URL.revokeObjectURL(m)},modalProps={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default",closeBtnColor:"#333",isShowCloseBtn:!0,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)",allComponentList:[],requestList:[],parentIframeId:"",banScale:!1},modalComponentProps=transformToComponentProps(modalProps),modalEvents=["showModal","hideModal"],containerType=["ecanBorder","ecanTabs","ecanCirculate"];function handleScrollCombinations(c){const{containerMap:u={},sourceList:f=[]}=c,h=lodashEs.cloneDeep(c.componentList),d=h.filter(v=>v.type==="ecanTabs"&&v.isAutoScroll);if(d!=null&&d.length)for(const v of d){const p=u[v.id],m=[];if((!mn(v,"componentList")||!(v!=null&&v.componentList))&&(v.componentList=[]),p){let g=0;for(const y in p){const x=p[y],Bn=[];if(x!=null&&x.length)for(const b of x){let re=h.find(_=>_.id===b);re||(re=f.find(_=>_.id===b)),re&&(Bn.push(re),containerType.includes(re.type)&&Bn.push(...getComponentByContainer(re.id,u,f)))}for(const b of Bn)mn(b,"scale")?parseFloat(y)>0&&(b.left=parseFloat(b.left)+g+"px"):(b.left=parseFloat(b.sourceLeft||b.left)-parseFloat(v.sourceLeft||v.left)+g+"px",b.top=parseFloat(b.sourceTop||b.top)-parseFloat(v.sourceTop||v.top)+"px"),m.includes(b.id)||m.push(b.id);v.componentList.push(...Bn),g=getMaxLeftInComponents(Bn)}}for(const g of m){const y=h.findIndex(x=>x.id===g);y!==-1&&h.splice(y,1)}}return h}function compatibleMobileList(c){var v,p;const{combinationMap:u={},sourceList:f=[]}=c,h=c.containerMap,d=lodashEs.cloneDeep([...c.componentList,...getTabsSomeComponentList(h,f)]);if(handleContainerMap(h,d),(v=Object.keys(h))!=null&&v.length||(p=Object.keys(u))!=null&&p.length){for(const b in h){const re=d.find(_=>_.id===b);if(re){mn(re,"parentId")||(re.parentId="",re.sourceLeft=re.left,re.sourceTop=re.top);for(const _ in h[b])if(h[b][_])for(const vn of h[b][_]){const Fn=d.find(Pn=>Pn.id===vn);Fn&&(Fn.parentId=b,Fn.sourceLeft=Fn.left,Fn.sourceTop=Fn.top,Fn.left=parseFloat(Fn.left)-parseFloat(re.sourceLeft||re.left)+"px",Fn.top=parseFloat(Fn.top)-parseFloat(re.sourceTop||re.top)+"px")}}}const m=Array.from(new Set(d.filter(b=>(!mn(b,"parentId")||b.parentId==="")&&b.combinationId).map(b=>b.combinationId))),g=getCombinationList(m,{...c,componentList:d});g!=null&&g.length&&d.unshift(...g);const y=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],x=d.filter(b=>y.includes(b.type)&&!mn(b,"parentId")),Bn=[];for(const b of x)if(b){const re=b.id+"_vir";Bn.push({id:re,keyName:b.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:b.width,height:b.height,left:b.left,top:b.top,sourceLeft:b.left,sourceTop:b.top}),b.parentId=re,b.sourceLeft=b.left,b.sourceTop=b.top,b.left=0,b.top=0}Bn!=null&&Bn.length&&d.unshift(...Bn);for(const b of d){const re=document.body.clientWidth;if(b.parentId===""&&containerType.includes(b.type))b.sourceWidth=parseFloat(b.width),b.height=(re/(b.sourceWidth/parseFloat(b.height))).toFixed(2)+"px",b.width="100%",b.position="relative",b.top="auto",b.left="auto";else{const _=d.find(vn=>vn.id===b.parentId);if((_==null?void 0:_.parentId)===""){const vn=_.sourceWidth||parseFloat(_.width),Fn=re/vn;b.scale=Fn,b.top=parseFloat(b.top)*Fn-parseFloat(b.height)*(1-Fn)/2+"px",b.left=parseFloat(b.left)*Fn-parseFloat(b.width)*(1-Fn)/2+"px"}}b.type==="ecanModal"&&(b.parentId="",b.fullModal=!0)}return sortList(d)}return d}function handleContainerMap(c,u){const f=lodashEs.cloneDeep(c),h=u.filter(d=>d.type==="ecanTabs"&&d.isAutoScroll);if(h!=null&&h.length)for(const d of h){const v=f[d.id];for(const p in v)for(const m of v[p]){const g=u.find(y=>y.id===m);if(g&&containerType.includes(g.type)){const y=getComponentByContainer(g.id,f,u);for(const x of y)c[d.id][p].push(x.id),containerType.includes(x.type)&&delete c[x.id];delete c[g.id]}}}}function getTabsSomeComponentList(c,u){const f=[],h=u.filter(d=>d.type==="ecanTabs"&&d.isAutoScroll);if(h!=null&&h.length)for(const d of h){const v=c[d.id];for(const p in v)if(parseFloat(p)>0)for(const m of v[p]){const g=u.find(y=>y.id===m);g&&(f.push(g),containerType.includes(g.type)&&f.push(...getComponentByContainer(g.id,c,u)))}}return f}function getComponentByContainer(c,u,f){const h=[],d=u[c];for(const v in d)for(const p of d[v]){const m=f.find(g=>g.id===p);m&&(h.push(m),containerType.includes(m.type)&&h.push(...getComponentByContainer(m.id,u,f)))}return h}function getCombinationList(c,u,f){const{combinationMap:h={},componentList:d=[]}=u,v=[];for(const p of c){const m=h[p];if(m!=null&&m.length){const g=d.filter(y=>m.includes(y.id));if(g!=null&&g.length){const y=getCombinateRect(g);if(y){v.push({...y,id:p,keyName:p,parentId:f||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:y.left,sourceTop:y.top});for(const x of g)x&&(x.parentId=p,x.sourceLeft=x.left,x.sourceTop=x.top,x.left=parseFloat(x.left)-parseFloat(y.left)+"px",x.top=parseFloat(x.top)-parseFloat(y.top)+"px")}}}}return v}function sortList(c){const f=c.filter(h=>h.parentId==="");if(f!=null&&f.length){const h=lodashEs.cloneDeep(f).map(d=>({...d,sourceTop:parseFloat(d.sourceTop),sourceLeft:parseFloat(d.sourceLeft)}));for(let d=0;d<h.length-1;d++)for(let v=0;v<h.length-d-1;v++){let p=!1;if((h[v].sourceTop-h[v+1].sourceTop>50||Math.abs(h[v+1].sourceTop-h[v].sourceTop)<=50&&h[v].sourceLeft>h[v+1].sourceLeft)&&(p=!0),p){const m=h[v];h[v]=h[v+1],h[v+1]=m}}for(const d of h){const v=c.findIndex(p=>p.id===d.id);v!==-1&&c.splice(v,1)}return[...h,...c]}return c}function getCombinateRect(c){const u=c.sort((v,p)=>parseFloat(v.top)-parseFloat(p.top))[0],f=c.sort((v,p)=>parseFloat(v.left)-parseFloat(p.left))[0],h=c.map(v=>({...v,computedTop:parseFloat(v.top)+parseFloat(v.height)})).sort((v,p)=>p.computedTop-v.computedTop)[0],d=c.map(v=>({...v,computedLeft:parseFloat(v.left)+parseFloat(v.width)})).sort((v,p)=>p.computedLeft-v.computedLeft)[0];return u&&f&&h&&d?{left:f.left,top:u.top,width:d.computedLeft-parseFloat(f.left)+"px",height:h.computedTop-parseFloat(u.top)+"px"}:null}function getMaxLeftInComponents(c){const u=c.map(f=>parseFloat(f.left)+parseFloat(f.width)).sort((f,h)=>h-f)[0];return u||0}function moveToComponentList(c,u,f){const h=c[f],d=[];if(h)for(const v in h){const p=h[v];for(const m of p){const g=u.find(y=>y.id===m);g&&(d.push(g),containerType.includes(g.type)&&d.push(...getComponentByContainer(g.id,c,u)))}}return d}const _sfc_main$h=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(c,{emit:u}){u("ready",c.component.id)}});function _sfc_render$j(c,u,f,h,d,v){return c.component.parentId?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#container_"+c.component.parentId},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.mergeProps({style:{scale:c.component.scale}},c.component),null,16,["style"]))],8,["to"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.normalizeProps(vue.mergeProps({key:1},c.component)),null,16))}const Render=_export_sfc$1(_sfc_main$h,[["render",_sfc_render$j]]),EcanRender=withInstall$1(Render),_sfc_main$g=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(c,{emit:u}){const f=vue.ref([]),h=vue.inject("isMobile",!1),d=vue.computed(()=>c.fullModal),v=vue.inject("getContainerMap",()=>{}),p=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:m,interactiveData:g,setRequestData:y}=vue.inject(GLOBAL_MODEL,{setRequestData:(hr,vr)=>{},clearInteractiveData:()=>{},interactiveData:null}),x=()=>document.getElementById("ProviderConfig")||document.body,Bn=vue.computed(()=>{const hr=c.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[hr]}}),b=c.fullModal?"1920px":c.width,re=c.fullModal?"1080px":c.height,_=c.originalWidth,vn=c.originalHeight,Fn=vue.ref("80%"),Pn=vue.ref(0),w=vue.ref(),J=vue.ref(0),gn=vue.ref({}),Vn=usePickComponentStyle(c),zn=vue.ref({}),Wn=vue.ref(!1),Un=vue.ref();let er;const Jn=()=>{w.value=parseFloat(b)/parseFloat(_);const hr=parseFloat(re)/parseFloat(vn),vr=document.body.offsetWidth,yr=document.body.offsetHeight;if(Pn.value=vr*vue.unref(w),J.value=yr*hr,Fn.value=`${vue.unref(w)*100}%`,gn.value={width:`${vue.unref(Pn)}px`,height:`${vue.unref(J)}px`,border:`${c.borderWidth} solid ${c.borderColor}`,borderRadius:c.borderRadius+"px",boxShadow:c.boxShadow},zn.value={...vue.unref(Vn),backgroundImage:useImagePath(c.backgroundImage,!0)},h)zn.value={...zn.value,width:"100%",height:"100%"};else{const xr={...zn.value,width:b,height:re};c.banScale&&vue.unref(d)?(xr.width="100%",xr.height="100%"):xr.transform=`scale(${vue.unref(Pn)/parseFloat(b)},${vue.unref(J)/parseFloat(re)})`,zn.value=xr}},tr=lodashEs.debounce(()=>{Jn()},100),Qn=()=>{const hr=window.MutationObserver;er=new hr(tr),er.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},ir=()=>{er&&(er.disconnect(),er.takeRecords(),er=null)},cr=vue.ref(!1),{touchRequest:Xn}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),Hn=vue.ref(""),Yn=()=>{var yr;const{title:hr}=c,vr=(yr=vue.unref(g))==null?void 0:yr.RECORD;return vr?hn(hr,{textData:vr},{useNewline:!1,useSpace:!1}):hr},Rn=useEmitEvent(c),Gn=hr=>{const{changeIframeStyle:vr}=window.parent;vr&&typeof vr=="function"&&vr({iframeId:c.parentIframeId||"",action:hr})},Zn=()=>{vue.unref(d)&&Gn("open"),h&&(document.documentElement.style.overflow="hidden"),Hn.value=Yn(),cr.value=!0},qn=Rn("hideModal",()=>{vue.unref(d)&&Gn("close"),u("close"),h&&(document.documentElement.style.overflow="hidden auto",f.value=[]),cr.value=!1}),nr=()=>{qn()},or=()=>{qn(),m()},{setModalModel:Kn,pushUseModalIds:ar,popUseModalIds:lr}=vue.inject(MODAL_MODEL,{pushUseModalIds:hr=>{},popUseModalIds:()=>{},setModalModel:(hr,vr)=>{}}),ur=vue.computed(()=>{let hr=c.componentList;const vr=lodashEs.cloneDeep(c.componentList),yr=v(),xr=p(),Cr={containerMap:yr,combinationMap:xr};h&&(hr=compatibleMobileList({...Cr,componentList:vr,sourceList:c.allComponentList})),hr=handleScrollCombinations({...Cr,componentList:hr,sourceList:c.allComponentList});const Er=[];for(const _r of hr)if(_r.type==="ecanCirculate"){const kr=moveToComponentList(yr,vue.unref(vr),_r.id);_r.componentList=kr,Er.push(...kr.map(Br=>Br.id))}if(Er!=null&&Er.length)for(const _r of Er){const kr=hr.findIndex(Br=>Br.id===_r);kr!==-1&&hr.splice(kr,1)}return hr}),dr=()=>{const hr=c.id;let vr=[];const yr=c.componentList;Array.isArray(yr)&&(vr=yr.map(xr=>xr.id),Kn(hr,[...new Set(vr)]))},sr=vue.ref(!1),fr={};for(const hr of c.requestList)fr[hr.requestName]=useRequestData(hr);vue.watch(()=>cr.value,async hr=>{if(hr)Wn.value=!1,ar(c.id),dr(),await vue.nextTick(()=>{Jn(),window.addEventListener("resize",tr),Qn(),Wn.value=!0}),Xn();else{if(y)for(const vr in fr)y(vr,{});lr(),window.removeEventListener("resize",tr),ir()}});const pr=vue.computed(()=>vue.unref(w)>=1),mr=vue.computed(()=>{let hr="ecan-modal";return vue.unref(pr)&&(hr+=" ecan-full-width-modal"),vue.unref(d)&&(hr+=" ecan-full-modal"),hr});return useOnEvent(c,{showModal:Zn,hideModal:qn}),{modalRef:Un,containStyle:gn,contentStyle:zn,getContainer:x,modalStyle:Bn,modalWith:Fn,isFullModal:d,style:Vn,visible:cr,showModal:Zn,onOk:nr,onCancel:or,isFullWidth:pr,wrapClassName:mr,ready:Wn,usedComponentList:ur,isMobile:h,readyIds:f,hasOwn:mn,onComponentReady:hr=>{f.value.push(hr)},formatTitle:Hn,requestLoaded:sr}}}),Modal_vue_vue_type_style_index_0_scoped_d34efac2_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$i(c,u,f,h,d,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("render"),g=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(g,{getContainer:c.getContainer,wrapClassName:c.wrapClassName,centered:"",visible:c.visible,footer:null,width:c.isFullModal||c.isFullWidth?"100%":c.modalWith,destroyOnClose:c.destroyOnClose,style:vue.normalizeStyle(c.modalStyle),closable:!1,onOk:c.onOk,onCancel:c.onCancel,ref:"modalRef",id:"container_"+c.id},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"contain",ref:"containRef",style:vue.normalizeStyle(c.containStyle)},[c.ready?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"content",style:vue.normalizeStyle(c.contentStyle)},[vue.createElementVNode("div",{class:"header-bar",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,padding:"20px 30px",height:c.isMobile?"62px":""})},[c.formatTitle?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ant-modal-title",style:vue.normalizeStyle({fontSize:c.titleFontSize,color:c.titleColor})},vue.toDisplayString(c.formatTitle),5)):vue.createCommentVNode("",!0),c.isShowCloseBtn?(vue.openBlock(),vue.createBlock(p,{key:1,class:"close-icon",style:vue.normalizeStyle({color:c.closeBtnColor}),onClick:c.onCancel},null,8,["style","onClick"])):vue.createCommentVNode("",!0)],4),c.usedComponentList.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(c.isMobile?"mobile-wrap":"")},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.usedComponentList,(y,x)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.id+x},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.hasOwn(y,"parentId")&&(c.readyIds.includes(y.parentId)||y.parentId==="")?(vue.openBlock(),vue.createBlock(m,{key:0,component:y,onReady:c.onComponentReady},null,8,["component","onReady"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:1},y)),null,16))],64))),128))],2)):vue.renderSlot(c.$slots,"default",{key:1},void 0,!0)],4)):vue.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const Modal=_export_sfc$1(_sfc_main$g,[["render",_sfc_render$i],["__scopeId","data-v-d34efac2"]]),EcanModal=withInstall$1(Modal);core$1.use([renderers.CanvasRenderer,charts.PieChart,components$1.TitleComponent,components$1.ToolboxComponent,components$1.TooltipComponent,components$1.LegendComponent]);const _sfc_main$f=vue.defineComponent({name:"EcanPie",props:{...pieComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:h,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.ref(),p=vue.ref(!1),m=usePickComponentStyle(c),g=vue.ref([]),y=vue.ref(),x=vue.ref({}),Bn=vue.computed(()=>{let{data:Xn=[]}=vue.unref(g)[0]||{};if(Array.isArray(c.colors)){const Hn=c.isUseLabelColors,Yn=c.colors;Xn=Xn.map((Rn,Gn)=>({label:Hn?{color:Yn[Gn]}:{},...Rn}))}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:p.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var Hn;p.value=!0,(Hn=y.value)==null||Hn.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},tooltip:{show:c.tooltipShow,trigger:c.tooltipTrigger,formatter:Hn=>{const{marker:Yn,seriesName:Rn,name:Gn,value:Zn,percent:qn,data:nr}=Hn||{};return hn(c.tooltipFormatter,{textData:{marker:Yn,name:Gn,value:Zn,percent:qn,a:Rn,b:Gn,c:Zn,d:qn,...nr}},{useNewline:!0,useSpace:!0})},textStyle:{color:c.tooltipTextStyleColor},position:c.tooltipPosition||void 0},legend:vue.unref(x),color:c.colors,series:[{data:Xn,type:"pie",radius:[c.innerRadius,c.outerRadius],center:[c.centerLeft,c.centerTop],roseType:c.roseType,avoidLabelOverlap:!0,minAngle:c.minAngle,label:{show:c.labelPosition!=="center"&&c.labelShow,color:c.labelColor,fontSize:p.value?ZOOM_FONT_SIZE:c.labelFontSize,position:c.labelPosition,formatter:handleFormatter(c.labelFormatter),width:c.labelWidth,overflow:c.labelOverflow},labelLine:{show:c.labelLineShow,length:c.labelLineLength,length2:c.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),b=()=>{var Hn,Yn;const Xn=p.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize);x.value={type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,align:"left",textStyle:{lineHeight:Xn+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:Xn}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:(Yn=(Hn=vue.unref(g)[0])==null?void 0:Hn.data)==null?void 0:Yn.map(Rn=>({name:Rn.name,icon:c.legendType})),formatter:Rn=>{const{data:Gn}=g.value[0]||{};let Zn=0,qn,nr="0%";if(Gn)for(const or of Gn)or.name===Rn&&(qn=+or.value),Zn+=+or.value;return Zn&&(nr=`${(qn/Zn*100).toFixed(2)}%`),getLegendFormat(c.legendFormatter,{name:Rn,value:qn,percent:nr})}}},re=()=>{p.value=!1},{getGlobalModel:_,setGlobalModel:vn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Xn=>{},setGlobalModel:(Xn,Hn)=>{}}),Fn=(Xn=[],Hn)=>{const{dataset:Yn}=En(Xn,Hn);g.value=Yn,Yn!=null&&Yn.length||(f.value=!0)},Pn=(Xn=[],Hn)=>{var Rn;const Yn=En(Xn,Hn);g.value=Yn.dataset,(Rn=Yn.dataset)!=null&&Rn.length||(f.value=!0)};vue.watch(()=>c.data,Xn=>{(c.dataType==="static"||vue.unref(h)==="design")&&Fn(Xn)},{immediate:!0,deep:!0}),vue.watch(()=>[c.legendShow,c.legendOrient,c.legendTop,c.legendLeft,c.legendTextStyleColor,c.labelFontSize,c.legendItemHeight,c.legendItemWidth,c.legendItemGap,c.legendFormatter,c.legendFontSize,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll,c.legendType],()=>{b()},{immediate:!0});const w=vue.ref(!1),J=useRequestData(c),gn=async()=>{var Xn,Hn;if(c.dataType==="request")try{w.value=!0;const Yn=await J();Fn((Hn=(Xn=Yn==null?void 0:Yn.data)==null?void 0:Xn.data)==null?void 0:Hn.rows,c.valueTypeDataFieldNames)}catch(Yn){console.error(Yn)}finally{w.value=!1}},Vn=useEmitEvent(c);vn(c.id,{type:c.type,RECORD:""});const zn=Vn("click",Xn=>{const Hn=_(c.id);vn(c.id,{...Hn,type:c.type,RECORD:Xn==null?void 0:Xn.data})}),Wn=Xn=>{var Yn;const{data:Hn}=(Xn==null?void 0:Xn.data)||{};if(Hn){const{columns:Rn=[],rows:Gn=[]}=((Yn=Xn==null?void 0:Xn.data)==null?void 0:Yn.data)??{};let Zn=[];if(Rn.length>0){const qn=Rn[0],nr=Rn[1];Zn=Gn.filter(or=>!!or).map(or=>({name:or[qn],value:isNaN(or[nr])?0:or[nr]||0}))}Pn(Zn)}},Un=useIndicatorData(c,Xn=>{c.isViewRedrawing&&v.value.clear(),Wn(Xn)}),er=async()=>{try{w.value=!0;const Xn=await Un();Wn(Xn)}catch(Xn){console.error(Xn)}finally{w.value=!1}},{loadedData:Jn}=vue.inject(LOADED_DATA,{loadedData:{}}),tr=vue.ref(!1);vue.watch(Jn,Xn=>{if(c.dataType==="indicator"){const Hn=getFixedValueDatas(c.graphicConfig);Hn!=null&&Hn.length&&(!vue.unref(tr)&&canRequestIndicator(c.graphicConfig,Xn)?(tr.value=!0,Qn()):canRequestIndicator(c.graphicConfig,Xn)||(tr.value=!1))}},{deep:!0});const Qn=()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(Jn))&&er();break;case"request":gn();break}};useOnEvent(c,{resetRecord:()=>{const Xn=c.id,Hn=_(Xn);vn(Xn,{...Hn,RECORD:""})},refreshData:Qn,click:zn}),u({refreshData:Qn});const{setRequest:cr}=vue.inject(REQUEST_MODEL,{setRequest:Xn=>{}});return typeof cr=="function"&&cr({id:c.id,requestFn:Qn,sortNum:c.requestSort}),{option:Bn,style:m,click:zn,onClose:re,loading:w,ecanModal:y,echartRef:v,emptyData:f}}}),Pie_vue_vue_type_style_index_0_lang="",Pie_vue_vue_type_style_index_1_scoped_387baab7_lang="";function _sfc_render$h(c,u,f,h,d,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,{key:1,option:c.option,ref:"echartRef",autoresize:"",onClick:c.click},null,8,["option","onClick"]))]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Pie=_export_sfc$1(_sfc_main$f,[["render",_sfc_render$h],["__scopeId","data-v-387baab7"]]),EcanPie=withInstall$1(Pie),lineProps={...props,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},lineComponentProps=transformToComponentProps(lineProps),lineEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent]);const _sfc_main$e=vue.defineComponent({name:"EcanLine",props:{...lineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:h,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.ref(),p=vue.ref(!1),m=usePickComponentStyle(c),g=vue.ref([]),y=vue.ref([]),x=vue.ref(),Bn=vue.computed(()=>p.value?ZOOM_FONT_SIZE:12),b=vue.ref({});let re;const _=vue.ref([]),vn=vue.computed(()=>{const Rn=c.xAxisLabelFormatter,Gn=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:p.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var Zn;p.value=!0,(Zn=x.value)==null||Zn.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:Bn.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:Zn=>{var Kn;const qn=Zn.length;let nr="",or=c.tooltipFormatter;re=(Kn=Zn[0])==null?void 0:Kn.data,or===""&&(or="{marker} {a} {c}");for(let ar=0;ar<qn;ar++){const{marker:lr,seriesName:ur,name:dr,value:sr,data:fr}=Zn[ar]||{};if(ar===0){let pr=dr;typeof dr=="string"&&dr[0]==="0"&&!isNaN(+dr)&&(pr=(+dr).toString()),nr+=`${In(Rn,pr)}<br/>`}nr+=hn(or,{textData:{marker:lr,name:dr,value:sr,a:ur,b:dr,c:sr||0,...fr}},{useNewline:!0,useSpace:!0}),nr+="<br/>"}return nr},position:c.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:c.isBoundaryGap,data:vue.unref(y).map(Zn=>{let qn={};return Zn&&typeof Zn=="object"?qn={...Zn}:qn={value:Zn},qn}),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(Zn){return typeof Zn=="string"&&Zn[0]==="0"&&!isNaN(+Zn)&&(Zn=(+Zn).toString()),In(Rn,Zn)}},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(Zn){return In(Gn,Zn)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(p.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:p.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(_).map(Zn=>({name:Zn.name,icon:c.legendType})),formatter:Zn=>getLegendFormat(c.legendFormatter,{name:Zn})},series:vue.unref(g)}}),Fn=()=>{p.value=!1},{getGlobalModel:Pn,setGlobalModel:w}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Rn=>{},setGlobalModel:(Rn,Gn)=>{}}),J=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),gn=(Rn=[],Gn=!1)=>{var Kn;let Zn;if(c.dataFieldConfigType==="key"){const ar=Gn?c.keyTypeDataFieldNames:null;Zn=Dn(Rn,ar)}else if(c.dataFieldConfigType==="value"){const ar=Gn?c.valueTypeDataFieldNames:null;Zn=En(Rn,ar)}y.value=Zn.dimensions,_.value=Zn.dataset;const qn=Zn.dataset,nr=[],or=qn.length;for(let ar=0;ar<or;ar++){const lr={};c.shadowColor&&(lr.shadowColor=c.shadowColor,lr.shadowBlur=c.shadowBlur,lr.shadowOffsetY=c.shadowOffsetY,lr.shadowOffsetX=c.shadowOffsetX),nr.push({type:"line",...qn[ar],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[ar]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[ar],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...lr},...vue.unref(J)})}g.value=nr,(Kn=Zn.dataset)!=null&&Kn.length||(f.value=!0)},Vn=(Rn=[],Gn,Zn=!1)=>{var lr;const nr=Dn(Rn,Zn?Gn:null,!0);y.value=nr.dimensions,_.value=nr.dataset;const or=nr.dataset,Kn=[],ar=or.length;for(let ur=0;ur<ar;ur++){const dr={};c.shadowColor&&(dr.shadowColor=c.shadowColor,dr.shadowBlur=c.shadowBlur,dr.shadowOffsetY=c.shadowOffsetY,dr.shadowOffsetX=c.shadowOffsetX),Kn.push({type:"line",...or[ur],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[ur]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[ur],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...dr},...vue.unref(J)})}g.value=Kn,(lr=nr.dataset)!=null&&lr.length||(f.value=!0)};vue.watch(()=>[c.data,c.symbolSize,c.smooth,c.lineStyleWidth,c.areaStyleOpacity,c.areaGradientShow,c.areaGradientColor,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([Rn])=>{(c.dataType==="static"||vue.unref(h)==="design")&&gn(Rn)},{immediate:!0,deep:!0});const zn=vue.ref(!1),Wn=useRequestData(c),Un=async()=>{var Rn,Gn;if(c.dataType==="request")try{zn.value=!0;const Zn=await Wn();gn((Gn=(Rn=Zn==null?void 0:Zn.data)==null?void 0:Rn.data)==null?void 0:Gn.rows,!0)}catch(Zn){console.error(Zn)}finally{zn.value=!1}},er=useEmitEvent(c);w(c.id,{type:c.type,RECORD:""});const Jn=er("click",Rn=>{const Gn=Pn(c.id);w(c.id,{...Gn,type:c.type,RECORD:c.tooltipShow?re:Rn.data})}),tr=Rn=>{v.value.chart.containPixel("grid",[Rn.offsetX,Rn.offsetY])&&Jn()};c.tooltipShow?b.value["zr:click"]=tr:b.value.click=Jn;const Qn=Rn=>{var nr;const{columns:Gn=[],rows:Zn=[]}=((nr=Rn==null?void 0:Rn.data)==null?void 0:nr.data)??{};let qn;Gn.length>0&&(qn={name:Gn[0],types:Gn.slice(1).map(or=>({label:or,value:or}))}),Vn(Zn,qn,!0)},ir=useIndicatorData(c,Rn=>{c.isViewRedrawing&&v.value.clear(),Qn(Rn)}),cr=async()=>{try{zn.value=!0;const Rn=await ir();Qn(Rn)}catch(Rn){console.error(Rn)}finally{zn.value=!1}},Xn=()=>{switch(c.dataType){case"indicator":cr();break;case"request":Un();break}};useOnEvent(c,{refreshData:Xn,resetRecord:()=>{const Rn=c.id,Gn=Pn(Rn);w(Rn,{...Gn,RECORD:""})},click:Jn});const{setRequest:Yn}=vue.inject(REQUEST_MODEL,{setRequest:Rn=>{}});return typeof Yn=="function"&&Yn({id:c.id,requestFn:Xn,sortNum:c.requestSort}),u({refreshData:Xn}),{option:vn,style:m,click:Jn,loading:zn,onClose:Fn,ecanModal:x,eventObj:b,echartRef:v,emptyData:f}}}),Line_vue_vue_type_style_index_0_lang="",Line_vue_vue_type_style_index_1_scoped_7ff666b7_lang="";function _sfc_render$g(c,u,f,h,d,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$e,[["render",_sfc_render$g],["__scopeId","data-v-7ff666b7"]]),EcanLine=withInstall$1(Line),barProps={...props,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},barComponentProps=transformToComponentProps(barProps),barEvents=["refreshData","click","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.BarChart,components$1.TitleComponent,components$1.LegendComponent,components$1.DatasetComponent,components$1.ToolboxComponent,components$1.MarkLineComponent]);const _sfc_main$d=vue.defineComponent({name:"EcanBar",props:{...barComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:h,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.inject("usedComponentList",[]),p=vue.ref(),m=vue.ref(!1),g=vue.ref(!1),y=vue.ref(null),x=vue.ref([]),Bn=usePickComponentStyle(c),b=vue.ref([]),re=vue.ref(),_=vue.ref({});let vn;const Fn=vue.computed(()=>m.value?ZOOM_FONT_SIZE:12),Pn=vue.computed(()=>{const{gradientShow:ur,gradientColors:dr,gradientOffset:sr,barBorderRadius:fr}=c,pr=vue.unref(b),mr=pr.length,gr=[];for(let hr=0;hr<mr;hr++){const vr={...pr[hr],type:"bar",barWidth:c.barWidth.value+c.barWidth.suffix,showBackground:c.showBarBackground};if(c.isStack&&(vr.stack="stack"),vr.label={show:c.labelShow,fontSize:c.labelFontSize,position:c.labelPosition,color:c.labelColor,width:c.labelWidth,overflow:c.labelOverflow,formatter:yr=>{let xr="",Cr=c.labelFormatter;Cr===""&&(Cr="{c}");const{seriesName:Er,name:_r,value:kr,data:Br}=yr||{};return xr+=hn(Cr,{textData:{name:_r,value:kr,a:Er,b:_r,c:kr||0,...Br}},{useNewline:!0,useSpace:!0}),xr}},vr.itemStyle={},ur&&(vr.itemStyle={color:{x:c.isUseHorizontalAxis?1:0,y:0,x2:0,y2:c.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:c.colors[hr]},{offset:sr,color:dr[hr]},{offset:1,color:dr[hr]}]}}),fr){const yr=fr.split(",");if(yr!=null&&yr.length){const xr=[];for(const Cr of yr){const Er=parseFloat(Cr);isNaN(Er)||xr.push(Er)}vr.itemStyle.borderRadius=xr}}c.isShowMarkLine&&(vr.markLine={data:[{type:c.markLineType}]}),gr.push(vr)}return gr}),w=vue.ref([]),J=vue.ref(!1),gn=vue.computed(()=>{const ur=c.yAxisLabelFormatter,dr=c.xAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(d)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,feature:{myLocation:{show:m.value?!1:c.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){g.value=!0;const sr=p.value.chart.getOption(),{xAxis:fr}=sr||{};fr&&fr.length&&(x.value=fr[0].data)}},myDownload:{show:c.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:m.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var sr;m.value=!0,(sr=re.value)==null||sr.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",show:c.tooltipShow,formatter:sr=>{var gr;const fr=sr.length;let pr="",mr=c.tooltipFormatter;vn=(gr=sr[0])==null?void 0:gr.data,mr===""&&(mr="{marker} {a} {c}");for(let hr=0;hr<fr;hr++){const{marker:vr,seriesName:yr,name:xr,value:Cr,data:Er}=sr[hr]||{};if(hr===0){let _r=xr;typeof xr=="string"&&xr[0]==="0"&&!isNaN(+xr)&&(_r=(+xr).toString()),pr+=`${In(dr,_r)}<br/>`}pr+=hn(mr,{textData:{marker:vr,name:xr,value:Cr,a:yr,b:xr,c:Er.sourceValue||Cr||0,...Er}},{useNewline:!0,useSpace:!0}),pr+="<br/>"}return pr},textStyle:{color:c.tooltipTextStyleColor,fontSize:Fn.value},position:c.tooltipPosition||void 0},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(m.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:m.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(b).map((sr,fr)=>({name:sr.name,itemStyle:{color:c.colors[fr]},icon:c.legendType})),formatter:sr=>getLegendFormat(c.legendFormatter,{name:sr})},xAxis:{type:c.isUseHorizontalAxis?"value":"category",data:c.isUseHorizontalAxis?null:vue.unref(Un),inverse:c.isUseHorizontalAxis?c.xAxisInverse:c.axisInverse,minInterval:c.xAxisMinInterval,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor,type:c.xAxisSplitLineType},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,fontSize:c.xAxisLabelFontSize,formatter(sr){return typeof sr=="string"&&sr[0]==="0"&&!isNaN(+sr)&&(sr=(+sr).toString()),In(dr,sr)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:{type:c.isUseHorizontalAxis?"category":"value",data:c.isUseHorizontalAxis?vue.unref(w):null,inverse:c.isUseHorizontalAxis?c.axisInverse:c.yAxisInverse,minInterval:c.yAxisMinInterval,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,rotate:c.yAxisLabelRotate,width:c.yAxisLabelWidth,overflow:c.yAxisLabelOverflow,formatter(sr){return In(ur,sr)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},series:vue.unref(Pn)}}),Vn=()=>{m.value=!1},zn=(ur=[],dr=!1)=>{var fr,pr,mr;let sr={};if(c.dataFieldConfigType==="key"){const gr=dr?c.keyTypeDataFieldNames:null;sr=Dn(ur,gr)}else if(c.dataFieldConfigType==="value"){const gr=dr?c.valueTypeDataFieldNames:null;sr=En(ur,gr)}if(b.value=sr.dataset,(fr=vue.unref(b))!=null&&fr.length){for(const gr of vue.unref(b))if((pr=gr==null?void 0:gr.data)!=null&&pr.length)for(const hr of gr.data)hr.sourceValue=hr.value,hr.value=parseFloat(hr.value)}w.value=sr.dimensions,(mr=sr.dataset)!=null&&mr.length||(f.value=!0)},Wn=(ur=[],dr,sr=!1)=>{var mr;const pr=Dn(ur,sr?dr:null,!0);c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(v),getGlobalModel:qn},pr),b.value=pr.dataset,w.value=pr.dimensions,(mr=pr.dataset)!=null&&mr.length||(f.value=!0)},Un=vue.computed(()=>vue.unref(w).map(ur=>{let dr={};return ur&&typeof ur=="object"?dr={...ur}:dr={value:ur},dr}));vue.watch(()=>[c.data,c.labelFormatter,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([ur])=>{(c.dataType==="static"||vue.unref(h)==="design")&&zn(ur)},{immediate:!0,deep:!0});const er=useRequestData(c),Jn=async()=>{var ur,dr;try{J.value=!0;const sr=await er();zn((dr=(ur=sr==null?void 0:sr.data)==null?void 0:ur.data)==null?void 0:dr.rows,!0)}catch(sr){console.error(sr)}finally{J.value=!1}},tr=ur=>{var pr;const{columns:dr=[],rows:sr=[]}=((pr=ur==null?void 0:ur.data)==null?void 0:pr.data)??{};let fr;dr.length>0&&(fr={name:dr[0],types:dr.slice(1).map(mr=>({label:mr,value:mr}))}),Wn(sr,fr,!0)},Qn=useIndicatorData(c,ur=>{c.isViewRedrawing&&p.value.clear(),tr(ur)}),ir=async()=>{try{J.value=!0;const ur=await Qn();tr(ur)}catch(ur){console.error(ur)}finally{J.value=!1}},{loadedData:cr}=vue.inject(LOADED_DATA,{loadedData:{}}),Xn=vue.ref(!1);vue.watch(cr,ur=>{if(c.dataType==="indicator"){const dr=getFixedValueDatas(c.graphicConfig);dr!=null&&dr.length&&(!vue.unref(Xn)&&canRequestIndicator(c.graphicConfig,ur)?(Xn.value=!0,Hn()):canRequestIndicator(c.graphicConfig,ur)||(Xn.value=!1))}},{deep:!0});const Hn=()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(cr))&&ir();break;case"request":Jn();break}},Yn=(ur,dr)=>!!vue.unref(x)[dr.value].value.includes(ur),Rn=async()=>{g.value=!1;const ur=p.value.chart.getOption();for(let dr=0;dr<7;dr++)await Gn(ur,dr)},Gn=(ur,dr)=>new Promise(sr=>{setTimeout(()=>{const{series:fr,color:pr,xAxis:mr}=ur,gr=p.value.chart,{splitArea:hr={}}=mr[0]||{};fr.forEach((vr,yr)=>{const xr=vr.data;let Cr="";dr%2?Cr=pr[yr]+"a8":Cr=pr[yr],xr[y.value].itemStyle={color:Cr}}),dr%2?(hr.show=!0,hr.areaStyle.color=vue.unref(x).map((vr,yr)=>yr===y.value?"#ff003b26":"")):hr.show=!1,gr.setOption({series:fr,xAxis:mr}),sr()},200)});u({refreshData:Hn});const Zn=useEmitEvent(c),{getGlobalModel:qn,setGlobalModel:nr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ur=>{},setGlobalModel:(ur,dr)=>{}});nr(c.id,{type:c.type,RECORD:""});const or=Zn("click",ur=>{const dr=qn(c.id);nr(c.id,{...dr,type:c.type,RECORD:c.tooltipShow?vn:ur.data})}),{setRequest:Kn}=vue.inject(REQUEST_MODEL,{setRequest:ur=>{}});typeof Kn=="function"&&Kn({id:c.id,requestFn:Hn,sortNum:c.requestSort});const ar=()=>{const ur=c.id,dr=qn(ur);nr(ur,{...dr,RECORD:""})},lr=ur=>{p.value.chart.containPixel("grid",[ur.offsetX,ur.offsetY])&&or()};return c.tooltipShow?_.value["zr:click"]=lr:_.value.click=or,useOnEvent(c,{refreshData:Hn,click:or,resetRecord:ar}),{option:gn,style:Bn,refreshData:Hn,click:or,loading:J,onClose:Vn,ecanModal:re,echartRef:p,handleLocationOk:Rn,onFilterOption:Yn,locationVisible:g,locationValue:y,locationNames:x,eventObj:_,emptyData:f}}}),Bar_vue_vue_type_style_index_0_lang="",Bar_vue_vue_type_style_index_1_scoped_41271cbc_lang="",_withScopeId$3=c=>(vue.pushScopeId("data-v-41271cbc"),c=c(),vue.popScopeId(),c),_hoisted_1$8={class:"location-wrap"},_hoisted_2$5=_withScopeId$3(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$f(c,u,f,h,d,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal"),y=vue.resolveComponent("a-select-option"),x=vue.resolveComponent("a-select"),Bn=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-bar",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(p,vue.mergeProps({key:1,ref:"echartRef",option:c.option,"update-options":{notMerge:!0},autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"]))]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(Bn,{visible:c.locationVisible,"onUpdate:visible":u[1]||(u[1]=b=>c.locationVisible=b),title:"快速定位",onOk:c.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$8,[_hoisted_2$5,vue.createVNode(x,{value:c.locationValue,"onUpdate:value":u[0]||(u[0]=b=>c.locationValue=b),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":c.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.locationNames,(b,re)=>(vue.openBlock(),vue.createBlock(y,{key:re,value:re},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(b.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Bar=_export_sfc$1(_sfc_main$d,[["render",_sfc_render$f],["__scopeId","data-v-41271cbc"]]),EcanBar=withInstall$1(Bar),scatterProps={...props,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,symbolColor:"",xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanScatter",tooltipPosition:"",yAxisName:"",xAxisName:"",showXAxisLineArrow:!1,showYAxisLineArrow:!1,xAxisLineInverse:!1,yAxisLineInverse:!1,yAxisTickShow:!0,xAxisMarkLineValue:[],yAxisMarkLineValue:[],axisMarkArea:[],xAxisMax:null,xAxisMin:null,yAxisMax:null,yAxisMin:null,xAxisLabelShow:!0,crossShow:!0,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},scatterComponentProps=transformToComponentProps(scatterProps),scatterEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.ScatterChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.TooltipComponent,components$1.LegendComponent,components$1.MarkLineComponent,components$1.MarkAreaComponent]);const _sfc_main$c=vue.defineComponent({name:"EcanScatter",props:{...scatterComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:h,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.ref(),p=vue.ref(!1),m=usePickComponentStyle(c),g=vue.ref([]),y=vue.ref(),x=vue.computed(()=>p.value?ZOOM_FONT_SIZE:12),Bn=vue.ref(),b=vue.ref(),re=vue.ref(),_=vue.ref(),vn=vue.inject("componentList",[]),{loadedData:Fn}=vue.inject(LOADED_DATA,{loadedData:{}}),Pn=vue.ref({}),w=vue.computed(()=>{const{xAxisMarkLineValue:Kn=[],yAxisMarkLineValue:ar=[]}=c,lr=Kn.concat(ar),ur=[];for(const dr of lr){let sr=dr.value;const fr=sr.match(/\{(.+?)\}/g);if(fr!=null&&fr.length){for(const mr of fr)sr=sr.replace(mr,mr.slice(1,-1));const pr=vue.unref(vn).find(mr=>mr.keyName===sr);pr!=null&&pr.id&&!ur.find(mr=>mr.keyName===sr)&&ur.push({componentId:pr.id,keyName:pr.keyName})}}return ur});vue.watch(Fn,Kn=>{var ar;if((ar=vue.unref(w))!=null&&ar.length)for(const lr of vue.unref(w)){const{componentId:ur,keyName:dr}=lr;if(Kn[ur]){const sr=Wn(ur);Pn.value[dr]=sr.value}else delete Pn.value[dr]}},{deep:!0});const J=vue.computed(()=>{const{xAxisMarkLineValue:Kn=[],yAxisMarkLineValue:ar=[]}=c,lr=Kn.map(sr=>({...sr,x:!0})),ur=ar.map(sr=>({...sr,y:!0})),dr=lr.concat(ur);if(dr!=null&&dr.length){const sr=[];for(const fr of dr){const pr={label:{show:!0,formatter:"",rich:{ft:{}}}},mr={};let gr=fr.value;const hr=gr.match(/\{(.+?)\}/g);let vr="";if(pr.label.formatter=fr.label?`{ft|${fr.label}}`:"",(fr.offsetHorizontal||fr.offsetVertical)&&(fr.x?pr.label.rich.ft.padding=[0,fr.offsetHorizontal||0,fr.offsetVertical||0,0]:fr.y&&(pr.label.rich.ft.padding=[fr.offsetVertical||0,0,0,fr.offsetHorizontal||0])),fr.labelColor&&(pr.label.rich.ft.color=fr.labelColor),fr.lineColor&&(mr.color=fr.lineColor),fr.x?vr="xAxis":fr.y&&(vr="yAxis"),hr!=null&&hr.length){for(const yr of hr)gr=gr.replace(yr,yr.slice(1,-1));if(gr){let yr;Pn.value[gr]?yr=vue.unref(Pn)[gr]:yr=pn(gr,{max:fr.x?vue.unref(Bn):fr.y?vue.unref(re):0,min:fr.x?vue.unref(b):fr.y?vue.unref(_):0}),isNaN(+yr)||sr.push({[vr]:+yr,lineStyle:mr,...pr})}}else isNaN(+fr.value)||sr.push({[vr]:fr.value,lineStyle:mr,...pr})}return{symbol:["none","none"],data:sr}}else return{data:[]}});function gn(Kn,ar,lr){switch(ar){case"startX":Kn[0].coord[0]=+lr;break;case"startY":Kn[0].coord[1]=+lr;break;case"endX":Kn[1].coord[0]=+lr;break;case"endY":Kn[1].coord[1]=+lr;break}}const Vn=vue.computed(()=>{const{axisMarkArea:Kn=[]}=c;if(Kn!=null&&Kn.length){const ar=[];for(const lr of Kn){const ur=[{name:"",coord:[],itemStyle:{color:lr.color}},{coord:[]}];for(const dr in lr)if(dr!=="color"){let sr=lr[dr];const fr=sr.match(/\{(.+?)\}/g);if(fr!=null&&fr.length){for(const pr of fr)sr=sr.replace(pr,pr.slice(1,-1));if(sr){const pr=pn(sr,{xMax:vue.unref(Bn),xMin:vue.unref(b),yMax:vue.unref(re),yMin:vue.unref(_)});isNaN(+pr)||gn(ur,dr,pr)}}else isNaN(+lr[dr])||gn(ur,dr,lr[dr])}ur.every(dr=>{var sr;return(sr=dr.coord)==null?void 0:sr.length})&&ar.push(ur)}return{data:ar}}else return{data:[]}}),zn=vue.computed(()=>{const Kn=c.xAxisLabelFormatter,ar=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(d)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,feature:{myDownload:{show:c.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:p.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var lr;p.value=!0,(lr=y.value)==null||lr.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,xAxis:{z:5,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,formatter(lr){return typeof lr=="string"&&lr[0]==="0"&&!isNaN(+lr)&&(lr=(+lr).toString()),In(Kn,lr)}},axisLine:{lineStyle:{color:c.xAxisLineStyleColor},symbol:["none",c.showXAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameLocation:c.xAxisLineInverse?"start":"end",nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},inverse:c.xAxisLineInverse,max:c.xAxisMax,min:c.xAxisMin},yAxis:{z:5,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},axisTick:{show:c.yAxisTickShow},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(lr){return In(ar,lr)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor},symbol:["none",c.showYAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},name:c.yAxisName,nameLocation:c.yAxisLineInverse?"start":"end",nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},inverse:c.yAxisLineInverse,max:c.yAxisMax,min:c.yAxisMin},tooltip:{show:c.tooltipShow,trigger:c.tooltipTrigger,formatter(lr){var gr;const{marker:ur,seriesName:dr,componentType:sr}=lr,fr=((gr=lr==null?void 0:lr.data)==null?void 0:gr.record)??{},pr=fr[vue.unref(Jn).name],mr=fr[vue.unref(Jn).value];return["markLine","markArea"].includes(sr)?"":hn(c.tooltipFormatter,{textData:{marker:ur,seriesName:dr,a:dr,b:pr,c:mr,...fr}},{useNewline:!0,useSpace:!0})},axisPointer:{type:c.crossShow||c.crossShow===void 0?"cross":""},textStyle:{fontSize:x.value},position:c.tooltipPosition||void 0},legend:{show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{color:c.legendTextStyleColor,fontSize:x.value}},series:[{data:vue.unref(g),type:"scatter",symbolSize:c.symbolSize,itemStyle:{color:c.symbolColor},markLine:J.value,markArea:Vn.value}]}}),{getGlobalModel:Wn,setGlobalModel:Un}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Kn=>{},setGlobalModel:(Kn,ar)=>{}}),er=()=>{var lr,ur;const Kn=(lr=vue.unref(v))==null?void 0:lr.chart.getModel().getComponent("yAxis").axis.scale._extent,ar=(ur=vue.unref(v))==null?void 0:ur.chart.getModel().getComponent("xAxis").axis.scale._extent;ar&&Kn&&(b.value=ar[0],Bn.value=ar[1],_.value=Kn[0],re.value=Kn[1])},Jn=vue.computed(()=>{let Kn=c.dataFieldNames;if(c.dataType==="indicator"){const{formFields:ar={}}=c.graphicConfig;ar!=null&&ar.labelField&&(ar!=null&&ar.valueField)&&(Kn={name:ar.labelField,value:ar.valueField})}return Kn}),tr=(Kn=[])=>{var ur;const{name:ar="name",value:lr="value"}=vue.unref(Jn)||{};g.value=Kn.map(dr=>({value:[dr[ar],dr[lr]],record:dr})),setTimeout(()=>{er()},0),(ur=g.value)!=null&&ur.length||(f.value=!0)};vue.watch(()=>c.data,Kn=>{(c.dataType==="static"||vue.unref(h)==="design")&&tr(Kn)},{immediate:!0,deep:!0});const Qn=vue.ref(!1),ir=useRequestData(c),cr=async()=>{var Kn,ar;if(c.dataType==="request"){Qn.value=!0;try{const lr=await ir();tr((ar=(Kn=lr==null?void 0:lr.data)==null?void 0:Kn.data)==null?void 0:ar.rows)}catch(lr){console.error(lr)}finally{Qn.value=!1}}},Xn=()=>{p.value=!1},Hn=useEmitEvent(c);Un(c.id,{type:c.type,RECORD:""});const Yn=Hn("click",Kn=>{const ar=c.id,lr=Wn(ar);Un(ar,{...lr,type:c.type,RECORD:Kn==null?void 0:Kn.data})}),Rn=Kn=>{var ar,lr;tr((lr=(ar=Kn==null?void 0:Kn.data)==null?void 0:ar.data)==null?void 0:lr.rows)},Gn=useIndicatorData(c,Kn=>{c.isViewRedrawing&&v.value.clear(),Rn(Kn)}),Zn=async()=>{try{Qn.value=!0;const Kn=await Gn();Rn(Kn)}catch(Kn){console.error(Kn)}finally{Qn.value=!1}},qn=()=>{switch(c.dataType){case"indicator":Zn();break;case"request":cr();break}};useOnEvent(c,{refreshData:qn,click:Yn,resetRecord:()=>{const Kn=c.id,ar=Wn(Kn);Un(Kn,{...ar,RECORD:""})}});const{setRequest:or}=vue.inject(REQUEST_MODEL,{setRequest:Kn=>{}});return typeof or=="function"&&or({id:c.id,requestFn:qn,sortNum:c.requestSort}),u({refreshData:qn}),{option:zn,style:m,click:Yn,loading:Qn,onClose:Xn,ecanModal:y,echartRef:v,emptyData:f}}}),Scatter_vue_vue_type_style_index_0_lang="",Scatter_vue_vue_type_style_index_1_scoped_f8d34c14_lang="";function _sfc_render$e(c,u,f,h,d,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,{key:1,ref:"echartRef",option:c.option,autoresize:"",onClick:c.click},null,8,["option","onClick"]))]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Scatter=_export_sfc$1(_sfc_main$c,[["render",_sfc_render$e],["__scopeId","data-v-f8d34c14"]]),EcanScatter=withInstall$1(Scatter),customGraphProps={...props,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},customGraphComponentProps=transformToComponentProps(customGraphProps),_sfc_main$b=vue.defineComponent({name:"EcanCustomGraph",props:{...customGraphComponentProps},components:{Echarts},setup(c){const u=usePickComponentStyle(c),f=vue.ref();return vue.watch(()=>c.optionCode,h=>{try{const d=eval;f.value=d(h)}catch(d){console.error(d)}},{immediate:!0}),{style:u,myOption:f,echarts:echarts__namespace}}});function _sfc_render$d(c,u,f,h,d,v){const p=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{option:c.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const CustomGraph=_export_sfc$1(_sfc_main$b,[["render",_sfc_render$d]]),EcanCustomGraph=withInstall$1(CustomGraph),comboGraphProps={...props,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisLeftSplitLineShow:!0,yAxisRightSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisLeftSplitLineType:"solid",yAxisRightSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisLeftName:"",yAxisRightName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,yAxisLeftUnitAdapt:!1,yAxisRightUnitAdapt:!1,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},comboGraphComponentProps=transformToComponentProps(comboGraphProps),comboGraphEvents=["refreshData","click","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.BarChart,charts.LineChart,components$1.TitleComponent,components$1.LegendComponent,components$1.DatasetComponent,components$1.ToolboxComponent,components$1.MarkLineComponent]);const _sfc_main$a=vue.defineComponent({name:"EcanComboGraph",props:{...comboGraphComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:h,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.inject("usedComponentList",[]),{getGlobalModel:p,setGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:mr=>{},setGlobalModel:(mr,gr)=>{}}),g=vue.ref(),y=vue.ref(!1),x=vue.ref(!1),Bn=vue.ref(null),b=vue.ref([]),re=vue.ref({});let _;const vn=usePickComponentStyle(c),Fn=vue.ref([]),Pn=vue.ref([]),w=vue.ref(),J=vue.ref([]),gn=vue.ref([0,0]),Vn=vue.computed(()=>y.value?ZOOM_FONT_SIZE:12),zn=vue.computed(()=>({textStyle:{fontFamily:vue.unref(d)},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,feature:{myLocation:{show:y.value?!1:c.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){x.value=!0;const mr=g.value.chart.getOption(),{xAxis:gr}=mr||{};gr&&gr.length&&(b.value=gr[0].data)}},myDownload:{show:c.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:y.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var mr;y.value=!0,(mr=w.value)==null||mr.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(y.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:y.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(J).map((mr,gr)=>({name:mr.name,itemStyle:{color:c.colors[gr]},icon:c.legendType})),formatter:mr=>getLegendFormat(c.legendFormatter,{name:mr})},tooltip:{trigger:"axis",show:c.tooltipShow,formatter:mr=>{var xr;const gr=mr.length;let hr="",vr=c.tooltipFormatter;_=(xr=mr[0])==null?void 0:xr.data,vr===""&&(vr="{marker} {a} {c}");const yr=c.seriesTypes;for(let Cr=0;Cr<gr;Cr++){const Er=yr[Cr],{tooltipFormatter:_r}=Er||{},{marker:kr,seriesName:Br,name:Ir,value:Fr,data:Nr}=mr[Cr]||{};if(Cr===0){let Rr=Ir;typeof Ir=="string"&&Ir[0]==="0"&&!isNaN(+Ir)&&(Rr=(+Ir).toString()),hr+=`${In(c.xAxisLabelFormatter,Rr)}<br/>`}hr+=hn(_r||vr,{textData:{marker:kr,name:Ir,value:Fr,seriesName:Br,a:Br,b:Ir,c:Fr||0,...Nr}},{useNewline:!0,useSpace:!0}),hr+="<br/>"}return hr},textStyle:{color:c.tooltipTextStyleColor,fontSize:Vn.value},position:c.tooltipPosition||void 0},xAxis:{minInterval:c.xAxisMinInterval,type:"category",data:vue.unref(Pn).map(mr=>{let gr={};return mr&&typeof mr=="object"?gr={...mr}:gr={value:mr},gr}),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(mr){return typeof mr=="string"&&mr[0]==="0"&&!isNaN(+mr)&&(mr=(+mr).toString()),In(c.xAxisLabelFormatter,mr)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:vue.unref(ir),series:vue.unref(Fn)})),Wn=()=>{y.value=!1},Un=mr=>{const gr=[];let hr=0;return c.seriesTypes.forEach((vr,yr)=>{var xr,Cr;vr.axisIndex===mr&&((Cr=(xr=vue.unref(J)[yr])==null?void 0:xr.data)!=null&&Cr.length)&&gr.push(...vue.unref(J)[yr].data.map(Er=>+Er.value))}),gr.some(vr=>vr>=1e7)?hr=4:gr.some(vr=>vr>=1e6)?hr=3:gr.some(vr=>vr>=1e4)&&(hr=1),hr},er=()=>{gn.value[0]=c.yAxisLeftUnitAdapt?Un(0):0,gn.value[1]=c.yAxisRightUnitAdapt?Un(1):0},Jn=(mr=[],gr=!1)=>{var yr;let hr;if(c.dataFieldConfigType==="key"){const xr=gr?c.keyTypeDataFieldNames:null;hr=Dn(mr,xr,!0)}else if(c.dataFieldConfigType==="value"){const xr=gr?c.valueTypeDataFieldNames:null;hr=En(mr,xr)}Pn.value=hr.dimensions;const vr=hr.dataset;J.value=hr.dataset,Fn.value=Qn(vr),er(),(yr=hr.dataset)!=null&&yr.length||(f.value=!0)},tr=(mr=[],gr,hr=!1)=>{var Cr;const yr=Dn(mr,hr?gr:null,!0);c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(v),getGlobalModel:p},yr),Pn.value=yr.dimensions;const xr=yr.dataset;J.value=yr.dataset,Fn.value=Qn(xr),er(),(Cr=yr.dataset)!=null&&Cr.length||(f.value=!0)};function Qn(mr){const gr=[],hr=mr.length,vr=c.seriesTypes;for(let yr=0;yr<hr;yr++){const xr=vr[yr],{type:Cr,axisIndex:Er}=xr||{};let _r={type:Cr,yAxisIndex:Er,...mr[yr]};if(Cr==="line"){const kr={};c.shadowColor&&(kr.shadowColor=c.shadowColor,kr.shadowBlur=c.shadowBlur,kr.shadowOffsetY=c.shadowOffsetY,kr.shadowOffsetX=c.shadowOffsetX),_r={..._r,symbolSize:c.symbolSize,smooth:c.smooth,itemStyle:{color:c.colors[yr]},areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[yr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[yr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...kr}}}if(Cr==="bar"){const{gradientShow:kr,gradientColors:Br,gradientOffset:Ir}=c,Fr={color:c.colors[yr]};if(c.barBorderRadius){const Nr=c.barBorderRadius.split(",");if(Nr!=null&&Nr.length){const Rr=[];for(const Or of Nr){const jr=parseFloat(Or);isNaN(jr)||Rr.push(jr)}Fr.borderRadius=Rr}}kr&&(Fr.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[yr]},{offset:Ir,color:Br[yr]},{offset:1,color:Br[yr]}]}),_r={..._r,barWidth:c.barWidth.value+c.barWidth.suffix,itemStyle:Fr}}c.isShowMarkLine&&(_r.markLine={data:[{type:c.markLineType}]}),gr.push(_r)}return gr}vue.watch(()=>[c.data,c.seriesTypes,c.symbolSize,c.smooth,c.areaStyleOpacity,c.lineStyleWidth,c.barWidth,c.barBorderRadius,c.areaGradientShow,c.areaGradientColor,c.gradientShow,c.gradientColors,c.gradientOffset,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.xAxisLabelFormatter,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll,c.yAxisLeftUnitAdapt,c.yAxisRightUnitAdapt],([mr])=>{(c.dataType==="static"||vue.unref(h)==="design")&&Jn(mr)},{immediate:!0,deep:!0});const ir=vue.computed(()=>{const mr=c.yAxis;return mr==null?void 0:mr.map((gr,hr)=>{const vr=gn.value[hr];let yr;return vr&&(yr=1e4*Math.pow(10,vr-1)),{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:hr===0?c.yAxisLeftSplitLineShow:c.yAxisRightSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:hr===0?c.yAxisLeftSplitLineType:c.yAxisRightSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(xr){let Cr=xr;return yr&&(Cr=(+xr/yr).toString()),In(gr.axisLabelFormatter,Cr)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:cr(vr)+(hr===0?c.yAxisLeftName:c.yAxisRightName),nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:hr===0?"right":"left"},max:c.yAxisMaxValue||null}})});function cr(mr){let gr="";switch(mr){case 1:gr="万";break;case 3:gr="百万";break;case 4:gr="千万";break}return gr}const Xn=vue.ref(!1),Hn=useRequestData(c),Yn=async()=>{var mr,gr;if(c.dataType==="request")try{Xn.value=!0;const hr=await Hn();Jn((gr=(mr=hr==null?void 0:hr.data)==null?void 0:mr.data)==null?void 0:gr.rows,!0)}catch(hr){console.error(hr)}finally{Xn.value=!1}},Rn=mr=>{var yr;const{columns:gr=[],rows:hr=[]}=((yr=mr==null?void 0:mr.data)==null?void 0:yr.data)??{};let vr;gr.length>0&&(vr={name:gr[0],types:gr.slice(1).map(xr=>({label:xr,value:xr}))}),tr(hr,vr,!0)},Gn=useIndicatorData(c,mr=>{c.isViewRedrawing&&g.value.clear(),Rn(mr)}),Zn=async()=>{try{Xn.value=!0;const mr=await Gn();Rn(mr)}catch(mr){console.error(mr)}finally{Xn.value=!1}},{loadedData:qn}=vue.inject(LOADED_DATA,{loadedData:{}}),nr=vue.ref(!1);vue.watch(qn,mr=>{if(c.dataType==="indicator"){const gr=getFixedValueDatas(c.graphicConfig);gr!=null&&gr.length&&(!vue.unref(nr)&&canRequestIndicator(c.graphicConfig,mr)?(nr.value=!0,or()):canRequestIndicator(c.graphicConfig,mr)||(nr.value=!1))}},{deep:!0});const or=()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(qn))&&Zn();break;case"request":Yn();break}},Kn=(mr,gr)=>!!vue.unref(b)[gr.value].value.includes(mr),ar=async()=>{x.value=!1;const mr=g.value.chart.getOption();for(let gr=0;gr<7;gr++)await lr(mr,gr)},lr=(mr,gr)=>new Promise(hr=>{setTimeout(()=>{const{series:vr,color:yr,xAxis:xr}=mr,Cr=g.value.chart,{splitArea:Er={}}=xr[0]||{};vr.forEach((_r,kr)=>{const Br=_r.data;let Ir="";gr%2?Ir=yr[kr]+"a8":Ir=yr[kr],Br[Bn.value].itemStyle={color:Ir}}),gr%2?(Er.show=!0,Er.areaStyle.color=vue.unref(b).map((_r,kr)=>kr===Bn.value?"#ff003b26":"")):Er.show=!1,Cr.setOption({series:vr,xAxis:xr}),hr()},200)});u({refreshData:or});const ur=useEmitEvent(c);m(c.id,{type:c.type,RECORD:""});const dr=ur("click",mr=>{const gr=p(c.id);m(c.id,{...gr,type:c.type,RECORD:c.tooltipShow?_:mr==null?void 0:mr.data})}),sr=mr=>{g.value.chart.containPixel("grid",[mr.offsetX,mr.offsetY])&&dr()};c.tooltipShow?re.value["zr:click"]=sr:re.value.click=dr;const{setRequest:fr}=vue.inject(REQUEST_MODEL,{setRequest:mr=>{}});return typeof fr=="function"&&fr({id:c.id,requestFn:or,sortNum:c.requestSort}),useOnEvent(c,{resetRecord:()=>{const mr=c.id,gr=p(mr);m(mr,{...gr,RECORD:""})},refreshData:or,click:dr}),{style:vn,option:zn,click:dr,loading:Xn,onClose:Wn,ecanModal:w,echartRef:g,handleLocationOk:ar,onFilterOption:Kn,locationVisible:x,locationValue:Bn,locationNames:b,eventObj:re,emptyData:f}}}),ComboGraph_vue_vue_type_style_index_0_lang="",ComboGraph_vue_vue_type_style_index_1_scoped_833c976a_lang="",_withScopeId$2=c=>(vue.pushScopeId("data-v-833c976a"),c=c(),vue.popScopeId(),c),_hoisted_1$7={class:"location-wrap"},_hoisted_2$4=_withScopeId$2(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$c(c,u,f,h,d,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal"),y=vue.resolveComponent("a-select-option"),x=vue.resolveComponent("a-select"),Bn=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(p,vue.mergeProps({key:1,ref:"echartRef",option:c.option,"update-options":{notMerge:!0},autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"]))]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:"",onClick:c.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(Bn,{visible:c.locationVisible,"onUpdate:visible":u[1]||(u[1]=b=>c.locationVisible=b),title:"快速定位",onOk:c.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$7,[_hoisted_2$4,vue.createVNode(x,{value:c.locationValue,"onUpdate:value":u[0]||(u[0]=b=>c.locationValue=b),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":c.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.locationNames,(b,re)=>(vue.openBlock(),vue.createBlock(y,{key:re,value:re},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(b.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const ComboGraph=_export_sfc$1(_sfc_main$a,[["render",_sfc_render$c],["__scopeId","data-v-833c976a"]]),EcanComboGraph=withInstall$1(ComboGraph),radarProps={...props,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{value}",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:"",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1},radarComponentProps=transformToComponentProps(radarProps),radarEvents=["refreshData","click","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.RadarChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent]);const _sfc_main$9=vue.defineComponent({name:"EcanRadar",props:{...radarComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const{pageMode:f,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),d=vue.ref(),v=vue.ref(!1),p=usePickComponentStyle(c),m=vue.ref([]),g=vue.ref(),y=vue.computed(()=>v.value?ZOOM_FONT_SIZE:12),x=vue.ref([]),Bn=vue.ref(c.valueTypeDataFieldNames.name),b=vue.computed(()=>{const Xn=vue.unref(x),Hn=Xn.length,Yn=[];for(let Rn=0;Rn<Hn;Rn++){const{name:Gn,data:Zn=[]}=Xn[Rn],qn=[{name:Gn,value:Zn.map(Kn=>Kn.value)}];let nr=c.colors[Rn];if(c.gradientShow){const{gradientOffset:Kn,gradientColors:ar}=c;nr={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:c.colors[Rn]},{offset:Kn,color:ar[Rn]},{offset:1,color:ar[Rn]}]}}const or={type:"radar",name:Gn,data:qn,areaStyle:{color:nr,opacity:c.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:c.symbolSize,lineStyle:{width:c.lineStyleWidth},label:{show:c.labelShow,fontSize:c.labelFontSize,position:c.labelPosition,color:c.labelColor,width:c.labelWidth,overflow:c.labelOverflow,formatter:Kn=>{const{data:ar,value:lr}=Kn;let ur=0,dr="0%";if(ar)for(const sr of ar.value)ur+=+sr;return ur&&(dr=`${(lr/ur*100).toFixed(2)}%`),hn(c.labelFormatter,{textData:{value:lr,percent:dr}},{useNewline:!1,useSpace:!1})}}};Yn.push(or)}return Yn}),re=vue.computed(()=>{var Gn;const Xn=[],Hn=[],Yn=vue.unref(x),Rn=Yn.length;for(let Zn=0;Zn<Rn;Zn++){const{data:qn=[]}=Yn[Zn];for(let nr=0;nr<qn.length;nr++)Hn.push(qn[nr].value)}if((Gn=m.value)!=null&&Gn.length){const Zn=Hn!=null&&Hn.length?Math.max(...Hn)*1.2:0;for(const qn of m.value)Xn.push({name:qn,max:Zn})}return Xn}),_=vue.computed(()=>({textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,feature:{myDownload:{show:c.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:v.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var Xn;v.value=!0,(Xn=g.value)==null||Xn.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:y.value},show:c.tooltipShow,formatter:Xn=>{let Hn="",Yn=c.tooltipFormatter;Yn===""&&(Yn="{marker} {a} {c}");for(let Rn=0;Rn<vue.unref(re).length;Rn++){const Gn=vue.unref(re)[Rn],{marker:Zn,seriesName:qn,value:nr}=Xn||{};Rn===0&&qn&&(Hn+=`${qn}<br/>`),Hn+=hn(Yn,{textData:{marker:Zn,name:Gn.name,value:nr[Rn],a:Gn.name,b:Gn.name,c:nr[Rn]||0,type:qn}},{useNewline:!0,useSpace:!0}),Hn+="<br/>"}return Hn},position:c.tooltipPosition||void 0},radar:{indicator:vue.unref(re),axisName:{color:c.axisNameColor}},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(v.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:v.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(x).map(Xn=>({name:Xn.name,icon:c.legendType})),formatter:Xn=>getLegendFormat(c.legendFormatter,{name:Xn})},series:vue.unref(b)})),vn=()=>{v.value=!1},{getGlobalModel:Fn,setGlobalModel:Pn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Xn=>{},setGlobalModel:(Xn,Hn)=>{}}),w=(Xn=[],Hn=!1)=>{let Yn;if(c.dataFieldConfigType==="key"){const Rn=Hn?c.keyTypeDataFieldNames:null;Yn=Dn(Xn,Rn)}else if(c.dataFieldConfigType==="value"){const Rn=Hn?c.valueTypeDataFieldNames:null;Yn=En(Xn,Rn)}m.value=Yn.dimensions,x.value=Yn.dataset},J=(Xn=[],Hn,Yn=!1)=>{const Gn=Dn(Xn,Yn?Hn:null,!0);m.value=Gn.dimensions,x.value=Gn.dataset};vue.watch(()=>[c.data,c.areaStyleOpacity,c.legendFontSize,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll,c.labelFormatter],([Xn])=>{(c.dataType==="static"||vue.unref(f)==="design")&&w(Xn)},{immediate:!0,deep:!0});const gn=vue.ref(!1),Vn=useRequestData(c),zn=async()=>{var Xn,Hn;if(c.dataType==="request")try{gn.value=!0;const Yn=await Vn();w((Hn=(Xn=Yn==null?void 0:Yn.data)==null?void 0:Xn.data)==null?void 0:Hn.rows,!0)}catch(Yn){console.error(Yn)}finally{gn.value=!1}},Wn=useEmitEvent(c);Pn(c.id,{type:c.type,RECORD:""});const Un=Xn=>{const Hn=Xn.event.topTarget.__dimIdx;Hn!==void 0&&Wn("click",()=>{var Zn;const{value:Yn,name:Rn}=Xn.data||{},Gn=Fn(c.id);Pn(c.id,{...Gn,type:c.type,RECORD:{[vue.unref(Bn)]:((Zn=vue.unref(re)[Hn])==null?void 0:Zn.name)||"",[Rn]:Yn[Hn],seriesName:Rn}})})()},er=Xn=>{var Gn;const{columns:Hn=[],rows:Yn=[]}=((Gn=Xn==null?void 0:Xn.data)==null?void 0:Gn.data)??{};let Rn;Hn.length>0&&(Bn.value=Hn[0],Rn={name:Hn[0],types:Hn.slice(1).map(Zn=>({label:Zn,value:Zn}))}),J(Yn,Rn,!0)},Jn=useIndicatorData(c,Xn=>{c.isViewRedrawing&&d.value.clear(),er(Xn)}),tr=async()=>{try{gn.value=!0;const Xn=await Jn();er(Xn)}catch(Xn){console.error(Xn)}finally{gn.value=!1}},Qn=()=>{switch(c.dataType){case"indicator":tr();break;case"request":zn();break}};useOnEvent(c,{refreshData:Qn,resetRecord:()=>{const Xn=c.id,Hn=Fn(Xn);Pn(Xn,{...Hn,RECORD:""})},click:Un});const{setRequest:cr}=vue.inject(REQUEST_MODEL,{setRequest:Xn=>{}});return typeof cr=="function"&&cr({id:c.id,requestFn:Qn,sortNum:c.requestSort}),u({refreshData:Qn}),{option:_,style:p,click:Un,loading:gn,onClose:vn,ecanModal:g,echartRef:d}}}),Radar_vue_vue_type_style_index_0_lang="";function _sfc_render$b(c,u,f,h,d,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{ref:"echartRef",option:c.option,autoresize:"",onClick:c.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Radar=_export_sfc$1(_sfc_main$9,[["render",_sfc_render$b]]),EcanRadar=withInstall$1(Radar),__vite_glob_0_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",__vite_glob_0_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEnVJREFUeF7tXU2MHNdxrqrumd0luRJNi4jIXUeEbcBAfIiM+KLk4BUs2GEOkexA+ZHE5c4yjmAISeSDASc5ZAMESAQkiJPAECKJnP2R8sfAjqEgTgIbpi5RDgogIxAQAbFAWbsrShQoUvxZ7kz3q6jqve7p7pnZmdkf8MBqQezt9+rVq/peT3V1T381CLYZAoaAIWAI3FIEjj52+lNIdKbdTr787t995Z2qMXhLrbPJDQFDwBC4zRGYmj19HyJ9jxnuBIb/SSC6752V2etFWCxQ3+YniblvCBgCtw6BqRPNhwHhH4sWsONfWH9+/j8tUN+6dbGZDQFDwBBQBKZOnvkaMP05AGcJ8yVi98W3Vk69Yo8+7CQxBAwBQ+CWIsA4Ndv8FgB+NTODmd+MiD7/1tLcj3uZZo8+bumC2eSGgCFwOyHwyd/+q7EbVyb/AQEeLPj9ahrxFy405y/2w8IC9e10lpivhoAhcMsQmD713CFu078A4H0dI/j7PN5+cP2Zx29sZZgF6lu2bDaxIWAI3C4IHHnkuXsojn4AAJ/IfUY4u3Zj/2/A2V9NB+FggXoQQtZvCBgChsAOEJiaa97LDv4DAQ7nz6QBnlpfbnxjWLUWqIdFyuQMAUPAEBgRgenZpeMM7p8AYF8YyoD8xNrS/NOjqLJAPQpaJmsIGAKGwJAIfGy2OZ8CP4uAJEMQYdMx/9r68vx3B6k4cqL5JDO8euH5xjkdO2iA9RsChoAhYAiMhsDUyTN/DIx/kI9CuAJMx9eWT748SNPR2TOLCHgSAC6nBJ+5sNg4b4F6EGrWbwgYAobAkAj83G/9Te2dzXqTGR7tDMFVdukD68+fen0rNQfnmgf3p/AdQJjJ5Bjg1fXlxmcsUA+5ACZmCBgChsBWCNw1f3pyLKEXAeBzBbnXawQz5xcbF7Yae/dc8xg5+A4C3FuSY2isrTQWLVDbuWcIGAKGwA4RODbXvDtx8H0G+HQhk355bHzz+BvPPH5lK/VTjzTvhRh+CAAHcznmK5DizNrfNl6VtlED9YfyCwjwGsLMRYSrV/34jY8jtK4hJBsIySaCayEcOQrQ3kRIWghpGyG9A8G18SMA8L5L8M7J/XjFJTiZJgguRYBJYJcgcIo8kSK4MWSWdgBwDpnHvNy4b2NXR2AX/q8h1J1v17Yayhjtr8faXmfGTXZY59i3x5m8HDMCR7rnmm+HTE71xchBXuWEm69jHMaxHIt8GB/JeP+3byevN5Jj/7e2R/7vCBgTJoylPfbyrDJBNhLh8LfqyXRIB2NEjCmT6vHjIgDKxostYiehNKsdmS4i7YuAQMflY8ry8hWI76/KZ3aIPAb9Xkb+069OmJEye0RGbCHZBz/lGEO79xmIsnNSv3/p3qjaPqxcpirIF3ZO5u2aqSzX6a5I5ocD7KrIyaGTlc3N6uNH9SPa5X9vv/rZK57qvF3T9fCrt2DR6qIDfZYrzFf1t4q4Tt8Lg2HxDtNXHMv97Zq/gv8O+xngN6V8RwGEb68tN36l90ncaZ060ZwDhGZJjvlHkOJcFqSlb5RAjQsLC7iwcI7gZw6TBObpwwdo9Y3X6fBHD+HF1gYdPHCELl96Dyf3jdHVpEUH9k3gtQ9atG+sRjc4xYl6TBvXExofq0vwpno9ps0Nh1CLiF1C9XoNWzdTqsVELWaUfbvlsBZF1OaUJCi2naNahMRtxniMKGk7iqMIE04pojolSRvjqEaJcxRFhGnSpqgWEySAFCGl7CgiQtkTxeTSFAmRUiCMyPeTBKXEEcVIzrH2O2aRxzT17ZBKYNU9AWlgJq8nk1f96NKERLMEKcz1ROj1ITofZQkcqn1yrO0SUUU+6BP9iIQsUdfrQUIS++RYgqDYrfZKP8t40iDr+0v6SKIziQYAR/KtNEtk1XGZPu0kVrtJ/c/mAf8tdkVergBYsA/EXGK1TwO47EU/onx6FCZAtZ/IzxP0SowHb5BcRPzeTwictefHvl+3ME73IO16EaqMD+2V/ny+6rgB82X2+Ol3YG8+T7C3OC+I/2V/ivN52HqMy+2hML6DX3l8Ae8unAO+fgF0XTy+O/S3Or4nzh27O/OKAZm/g9a37O+goLl7/fj02vLJJwBQjO27HZ1tStb7h9UgfT3CmcuLjcvF9pECtWbTM+cI3n2XoHUPws3LBIcmSbLmQ60JupRskGbK7Zt0IKmTZsdjLbqe1mhCMuK0RVxPCNgHanYxaSbsEmIXkWbCtZTAEdViyRAloDhsu4jiKCXNVJ3TDzlHEhzlb/k/wihCSrgYtDUYSbbnZaIINcFT+XJQTpk1qPs+DVYIFHtZjT+OJKqlxBhJv3wyQnBU/ZKNSrtEImCU2E6oZxOC7NkHcwmCKp8FXwlseb98qkQvk4+BPpj5jFjaO/rED4maEvykXWJfZx6vR8f7rNbbGvRJqutQgFU/ZP1lDjEXdW6G4Jt++v38/goh/gV5vYj4oJzJe/06D3vQvH2qozC/SPg2xUdk9ZYh86cTBcJ5WggKIbPIgnYxaIRIXUg9iqe2tybrzMfnnwRBJTsoz5e3ZheDTDA/Lo/Lzdfg2jE4v5j0G1/Rn1+cNAT7oJj7mLtS9tFHT/9P8EKPdXwpJ+v2N7N7aH+r9gZ/81je5Wcl1HT5q5caHTXM+pTtLY8r+VtZ190Lxj01yW3h760uN57aah750nBfCn+BCHNFOQZeWl+eL7VVzq6hzEf4MKOGhfDY49y7BJ+8Rx93TB85jHlmnbbxUHoH5kH7/QQnDySoGTZP4DWX4v6JMbyetn3wdtcQxuvI1xMCybT1cUUN+UZCsgfewDrX/GOLWkSt8PhCM+5IMm+HNYixzZuaect4lscW4BAiImgz+iDtMI4kA2d9XJGwwygiStsse0wgwVgywOJjB/KBMuIINVPWjNvLp4k8dtCUzT+OSPS23strxq6RWzPs/Fj6JRMPjxE05dOoSpJZhsxe9hE6SJFAH8tkFwUdx5LxM6KTSKeZt2by/rGCf0whGbzvR5FzYrbq95m1XDS8vMpJphweb2h4L86n8pIOix61Lx+vOKE+BtL5y/rloqefupBJS1CXWEMILvgjuAW79c5ArjY+GnWiiJqpI8MJ6h8YEBE4J7fvCM5fWfztPIp6vUqExwrhtrnz6S8Eu46gXl7B+WtZr0yxEIS8QHY7HhTnE4ZMPpeX08P5zD4EyzwxDRmkNyg8CJHbdu9IFq58r/qlt0TBr8xfCP52Hi+EAT31qN1d9vTK4EOw7GOPvwZ31sXjFvws3QlkeuRjXYAte8TRtb7e7846Vh6byHrrumfrm91Jeb+61qXnnZk/MfM7reyOK7/z2kE/0bOrS3MvDAzSDn5Y/dLQMXzt7ZXGN/uNHSWjHiqam5AhYAgYAoZANwLypSHH+mbHsbxXvjQEfFLe7NgKMwvUdkYZAoaAIbDHCBx9rPkQkn5p2PfNDgvUe7wIpt4QMAQMgX4I9HuzI43wIWEdDoOcZdTDoGQyhoAhYAhsA4ECHbwzmvml6xE+VH2zwzLqbQBsQwwBQ8AQ2AkCSmSJ+Bwg3lnUkzq4Pyu2NKx+y6iHRcrkDAFDwBAYEQFfv0OD9c+WhgZq+LDqLFAPi5TJGQKGgCGwDQRCsP5nQCzWAJFXNhfWlxt/NIzKUQN15Q37BVA6+cMAcPZip+ZTkVqeWSEUc9mEZq77TQSYBoBVgJ+6C+FtALhL2sIm1HP5QYR0He+Cj8J7AHAobeMlAPiIa+P78vXpHQdQ6DvyNerltK33F0pDDxun+/zfoY33JwhXAWDyAIBQ11U+0NSLcjzux40XdAklHSZASDy5jWEsy/vfGwAw5vvGAeAmOxyHcbjpUhwDgE3plv6bwmev+bnlnfFsU/1joLR5GaD2eLninH5MXQxH2SlVPnfY0+Vr7LAl09Rr0HIORcy/b64O+/Gy5TT6QIPP+4NcrVa2UenzmQ4ZX1N9wnxv5/rlfW5pERZ+sM0V9Mv77RD0ejHPt/GAlM/HOAZIEgDZFzY5SmT6rn3c1e79LAj2bijp7z4I83fpqUoOFAi4Z/aU/epnRAwRJJCC3xfcKcCTtXcmGOBSEQfFOSjuOWxv/OqxMN6qHn558/qsb5fNwd6iX1X/9uD4Zt3993tnTkmE6bn1el7NDIvrK43GoNUaJVCL7IfMxJmezERoTRBUmInXOMX9YzGxsBAlAKVxH2aip5ALM7FeS6klzERmbMWyF+ZiRJwzE4WdkHaYiUJqCQxEIYPkdHInr8UHEkqVmShMicBSFL62MhO1BoYTMggpB4Q8S1FZFZ5k4skrQrNWZqISTISMkrMHlWyipJEykzBjGCpzkZGc/KOswyozUcggWqxAGCI5SzEwJgJtG8gzH3szE4WH7mnggRHo2RRKIVeGYSChBCalrGmBPVhgGnr2QGAV+vYiM9GzDYvyHQZimZkY1iFjRm7FTMzJNh2acrnKQcYwlNM6IztUTuE+DMKcQlLtz/VkH5WyXj+uF2Muk+s9LrOvP1Ov4IP+mfnh935cZd4CfTv/YI/MaKx+5Pv4W2U0DmBiensCH7XIhCyN68GIrOCfMyh7MjEr616ksw/N4BwUErffzwCv1Qke2KpS3tRsU0gtv1uaheHc9Qi+tNWXiyMF6v61Pj6FF1s/2btaH+MRtVt7WesjohRgQK0PqUhBw9f60JogUutDmIE+mCNG5DglomqtD6Ha8fZrfURKWRPz+tT60AJKhdoh26/1obTxHdX6kKImQtULtT58DZP+tT5CuNqTWh85g7BY6yIw7rpqbZRrW2TRdEe1PooXm61qfRRrdgQGXSeay8Dt1b4o1SbpqrUR/A01RDK6/o78LdUKqdRiGbbWhxowqLZJd22Y7YffEUcyr0ZEv/iTpbnX+o3s9bqe1J2+QXB/v2A9UqD2aczDCHARs8JMecW8UPMjq5R3MNmgyy7BOyb34wdpgnntD3lcoDVAaj7LdmP+uK61NTyF3IVjrYAnNHKHLI8LNOv21ewk4wbJsjmSmhO++p3UAYk1o/QV7FxKEPs+X1WPwjFjrFXqfA0Qf8vts2jNpkWftMv4UAlPaeZS0IkZfQGnrDZIqEiXHWfV6rL6H6EqXZTPF6rThYzU1+MQ9rKnf0eAnn5epJmrfXKWEzJKpp/1B0q31NgItHAteZT5g5q2k5NbANVfpJD76nbZHYGnbxcp5DktXYOoz+CLFPLQH+bL9Wc1SXzdD1/vQ+s6FefzfRJzCpl5qKRXoJCXMs3stK9WtfOnsG8tZmyVqmv9MsJKVbs8P+6bQXZmy7LIggGdTD9XlFtW7uvS39uv7szZt+RFBvNPcNFfLUQYtuodR7VCXSeDL9+9jGZPRr/vJMiVecPTrcz6fn517pTK6537mzcP51dxPbeqkJTdcfULroP6izWoGeADYv7l1ZX5l/rpUwIM8mLxjRAGOI8JfKlYNa/PKo549TBxQ8AQMAQMAZg+ceZzTPgiMEx6OLgNjI+urTTO9oOnz+t7lyGB+6vBepSM2pbDEDAEDAFDoA8CP31y8dOOWX484G4fq7VS2u+vrjT+dECwlsx6y9f3LFDbaWcIGAKGwC4hMPXos9MYxf9W/KUXBDiz+vE3vwILC1IbsWvr9661A3jy7eXGX8oAC9S7tECmxhAwBAwBQUB+O3E8oRe59NuJ+L0a8ZfPLzbkBd2ewXqf42+GXx/P+7PX9yxQ27llCBgChsAuIyC/Rn5hs/4CsLJMdEPAV5LI/dKF5vzFvo9Cqq/vMb+0tjI/Y4F6lxfI1BkChoAhkCFwdLb5JwjwjQIibxLi599amvtx32Cd/Y4i84+yn+WyQG3nlCFgCBgCe4jA0dnmPAI/m/8EDcIl59wX31459Uq/ae9+rDkDMZzPyqBaoN7DBTLVhoAhYAgIAtOzS8cZ3LdDhQlpusnAv76+PP/dYRCyQD0MSiZjCBgChsAOEfjYidOfTZH+1Rcx0qfWDOieWFuaf3qQagvUgxCyfkPAEDAEdgmBI488dw/F0Q8A4BOZSgT8s9Xlua9vNYUF6l1aAFNjCBgChsAwCEyfeu6Qa9O/I+Bnc3mGsxMHr574v7/+HSm02bVZoB4GWZMxBAwBQ2AXETg21xxPHPw9AzzYUcsvj423j7/xzONXqlNZoN5F8E2VIWAIGALDI8A4Ndv8FgB+tZNZ8+vg6g+svfDYalGPBerhUTVJQ8AQMAR2HYGjs82vf/irJE+F8o/vM/HPry82/tcC9a5DbQoNAUPAENg+AlMnmg8DwWlA+MLaYuO/7NHH9rG0kYaAIWAI7BkCx+aaB88vNuTXBbu2/wfAQwC29PHqBQAAAABJRU5ErkJggg==",__vite_glob_1_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",__vite_glob_1_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEthJREFUeF7tXV2IXdd1Xmufc+/8SKpkIyXWzDQ2Soqhfaghfgl9qENMgkPBdqgI2JE0M6ltQv8cSil9CJ2WpA+BkqQlBNvx/Ehxiq0SbFJqEhzivCQQHHAfGggkRsIaRYlkRX/zd+85a9Vr7b3PPefM/ZNGGYnMOi/nnr3XXnvt75yz9rr77m9dhNoxdfilMR5feQWJv3DmxOwP6vV2bQgYAoaAIbC9CGClu7k5N/nW3d8GgI8jQJsZHl8+MXNye02y3gwBQ8AQMATKCFQc9cSRpfcB5D9GxPcWQsifW16a/bzBZggYAoaAIXBrEKhG1AAw+fhzU5CkrwHAvdEkBJg/c+j0EzA3R7fGTOvVEDAEDIGdi8AmRy1QHHrymb3r643XEPD+DjT8asPhJ04tzqzvXLhs5IaAIWAIbD8CXR21mHHP9MJom/hbAPhQNIsB36CEPn5uYfb89ptqPRoChoAhsDMR6OmoFY65OTfx1t3PIcBs4ayZTyfOfeTtpelf7EzIbNSGgCFgCGwvAv0ddbBl8ujC5wDgX0qmXXRMH3v7xKff2F5zrTdDwBAwBHYeAkM5aoFl6lOLj7ODJQBOAkzrCO4TZ44fe3XnwWYjNgQMAUNg+xAY2lGLSRNH5x9EQNlnPRpMJED+q+Wl2a9tn8nWkyFgCBgCOwsBddR3TS/ck+Twt8snZj47aPgHjzx/v3PuO8BwZ5RFxC+eWZr+h0Ftrd4QMAQMAUPg+hHAfdML+8YJvo8A9wHD6ysJPHppceZSP1W/f2zx/cT8PQC4u5BDOHnXSOvxnzz7VPv6zbAWhoAhYAgYAr0QwIkj8y8j4sNRgAHeJAePnlucOdUPtrtm5g8khN8FhvuKyBrgB83R1sNvPfvUZYPcEDAEDAFD4OYggJOPLdwHCb8OiHtLKi9BBh9e/ubMm/26mXjymXFcH3kFgB8syf0M8uzB5ReeOHNzTDQthoAhYAjsbAR0jTo460VA/OMKHAwzyydmFvtCdPilZHJ85T+B4XARWSOcywAfPLc0/X87G14bvSFgCBgCW0eg2PUha9W7co2sK86aAebOHp/550FdTR1d+CID/H1HDq8Bw5cROY9lkijElRTdrGuCWgoSveyWlqRUVqnuIbup2BdEu4kAnAMg+dD1COXD9NXV5Kpe7U/7H3ZsPezqau+7d7p+BLlivEV9t3F1G8CQcoWZtfGG56UYbw+5jlkFQLWRXN/zEYbNgMwAyMDMKGfBHYGBQrnUIzLlOchZZJFDHeQAhB0dUk+kIFPUS8QY2qlulSfVqf12kZc6b0vUr3YxoPNn/+yr3hyQEyTORa9/clU35qEP7ScHyKVfr0ftERsygAyRU2kv/Um5tJMjyhbtMtD+vT7GPH6WcuQMHEOed8YlysWOTOQyb7va31I92A7tMbYR8YxB5R23MOMRdLwBACOI3GoFHS7q2QAUfS25bpf0rwOKzHrC4BJG3GCQax2SlG0wuoRhNWF0KQNcBZG7mqS816V8+eoK7wOAS1LnGgzJFYakwZA2PS4X3mFwTYZ0hCEdY2ju9uVjbzHs2cPw+gEG+CNxqfFl6/LSdfckm7bnTRydX0TAY2VxZlg8e2JmZpCznjy2+Bkm/ioiXNe2v0F6+9XLe4EI8i6BdMtMgCjnUK7PZKgP5apP36fYrlovxjOIPl8ej+Laf5DbW+0vyFf6k7feF2h/vl3sP7RXPeVxxP59fWgYmnm54fsv9StmFHhEszrjrOLYsScYPHi8AY84XjFTfFphr+BPtfuj962Mfxhv/f7o/Qg41e5P3e4yzh1cw3g3PQ+d/qIebw6L0yL2BrO4TUAmJvDlQCQOk4jIyzE7B1IvClmQBvF4rM7Pn9UDSr1IA7lQLnJh/mfpr5u87x+JmNipXiZ0pf6JGR2SGOSknJkcIOf+mqRB6E/tlvaqjyiUcygntUvkQfTl0l4fG19OeSEv/WQ5h/5ycpgSUcYJOmmv/YsC6UcfhETaMyUyuRGTEzlSR6rYyuQk7aR9nhMnKRJlOblEHhumRMajdjuSSQNTpLzNlKTIec6UOkdZ3uI0bVJOLUqxwVneDvI5Y8NRO2dq+EmHsJlQO8u44eRM1Gwit9eImqMJtVptHnEptdpthrGUsJWROO31VkZju1KC9RZj0qDVjTbt2p3wynqL9qT76eq1c7xv/whdurZG+5P38oVLpwgO3Uvwy/P8h+MH6Kc/PU9w+ADDyZPhORnO+3V1qBNHF+befaf/qeKsAd5cdfDhQTtCJo7OP4wALwLgyHAmbFVK3omow38ov5z+nYm+rjaR1dpFJ+qdtIROUXf/dn6S6NigPiZMAuVJwdtZmkSD0+5MCp36OFn0atNxnqXJpjChbm901lWcNo23mJQ221j0Vx+DoFSoL01CJTzq+G+6Pz3truEV7keBV7/xem9dmhQ7k+Sm+1PIxf6YQVwzinvRmZLRO1j9LE4WfZ2MXEJhdTIM4uyA/CwvLl0+azjecY7BUYvT1mlTHzJxwl5WZube8kGfxN7q02L/3vlrrK9OUSNR1Sd2qh1+jtZ2Yfb0fYoWZD85+Fk1yHtb5FrKHcrMJG31W4LKez0lfdqPTiWUJDqHeSesGOo3E5KpOif2TlimNf2mEZyvfsOQz0He16sedd7yjSA6ahkqoZeVSL/hSCSln4yYUpGXiDxPCDBMtrmcQ5+YEOp1xu0soeYIUTtDBkcE7YRgVCJ7mWTaDO2U0KUErs3gMsJWSoAJY5IRJm1aWUt4d9Kka2mLfi9J+crKBt2ZjtFFibhHdhFcvEoaZY//muA97yEfWb/kMRny6Bn5Th5ZmAbgL5d/ZGSAU5jBowN/ZDy2+CdI9IVOZBsjRu/8isioiHy3Vt+JoMovp+Dgwrvl3x5dNiiWK8J1/HrNBE7eMgkk/FtTiXyLSDgsfGigpepDRFjMBTESlffAhXekE0F39ITZQ2Is1SPy5Tkl6onxdIw85dl1IdKOjkUND+siXm8x3mJccdkkjFsDJvU24VGp2qNAhYWW+uRX/cYRJ6Vof7i/NXs6TtPfF33fKpFxLcJX3yWhXFzOKGbbrvdFAlm9vwJDcR/jfRcvI99y/TKVk9A3Lv90vHYJBx9Ru+ANw2pF+OrunZn3p15OnbV/sP1yhX+cY2QrhosPF+fml028Xq33ztHXx2UWdfohYvZ2yGMW6oN8R79G2OqEfT8aWTNIJOsjVA6PKekZmSUylf6L/mLE7GeOUJ8H+wVR72T1rF8KNJL3zlPOib9Wp6zLNWHZJnXiDHW8GiE3QqQcrtNU2ucdeWmvc03KWU7sna30I+1zTjGhDHNOxRnnOSOKEw7LI5mcE9IlEmxyO8t9pAwZN9GxRM5Nl5Asm8i1RsxjKbV0eUSWSdqM4ynJWa83Wowhcga3m9dwg8ed49X1jHbvSfja6hrvkWWR1RHae4dfFrnDpfybxhodSBp8/p0mT0yN8Nl3xEmPMfz8NMMHxxh+cohg7t3ljzld/ti6o5antteOkJzg0XPfmHl9yMnAxAwBQ8AQMAS2gMDAtWTPWuSXb2hHyBYMs6aGgCFgCBgCHoGBjlqEwo4QcdZ/WgZu2B8ZDWxDwBAwBAyBG0dgKEcd1XfbETIs7fzGTbSWhoAhYAjsbASuy1HrmnUK35cgu4CN+TLk+MCgHxh3Nsw2ekPAEDAEbhyBoR21OekbB9laGgKGgCGwFQSGctS6VQ9hodIR8//mCT4yKHnTVoyztoaAIWAIGAJD/Jh48MjC0w7hS3UnvZLgA/3IL1OfWngA0lKrDOC3ch31ZsWHrve1XCtmZZCpOeXmaQogamK5V9Rf76bONivo8ZwN0LupWgqGOXzDYnwyntq4/PhySCHR81DHbTIufz8235aB9zc8fpthLQFUBkLp0KEj2VerrGehG0sWX0871sPJPmAApUMX8sgi1UDHxV0TCrUKBjnZ/xsO1dtud+pKchjlCv2eZi36dT+wnAGgJfuIlQod9WclG2WfcOxbPpTlEi8nZA45NgKdWj4EenVFPshtrAt9O1Ea96gw9mC9av9GwjAGgButkh2hL6Frw5qnc8djXSjb0vc6A+wCgBUApXGL2tAuketr3v4VXxdlAK4Aar3IpyzpO/clDZZ8zUr7vnKN7wCA37gGSyL9iwCwP2nwBWmQjDDAeSio4FJ2YYThIAD86gIDTAHAGVDSihyyLzoeZZq4lAlVXA7ZvKwMRLlQ2nhsUSYuFGoGfegbUXelkwMvnT0+O91Lsc+o1/iv8r+XDzJia/U9mImV3eR1hqH02L+dchCK21HDtl7elWEY+tBTj3tTK+/N8AvtC85HVV9kRnaqu9lb3lvvP5fbdcOjBEAHrxINvsqo7Dbe7jjHff5Djddb6h+RglbuU24MPd76/SmRk4Lijv5Y4G+/MunkSakzEwPzMDATA2OxGzPRUwaFeO5p5YGBqNQXz0uSYQQKeWD6KaPRMx19nZAHPYXdk2HC5xoz0TMmI8NQ+hRmYmQGCrcm0NbVpGCLWCB2KD3e08w9eabDTBR6j8gUtPAezETVr6QaTWei5JWuzEQh3QiPMLIElYHoWY9lZmLu6eYdhmMk1SgOwkxU1pkwDxlyR7kjUjIMCXNSyj0JRujiIceJMApDOREqazHjtkuomRG1EbnpiFrCTMS25PsoMRM9hRxcoJMXzMQGwdoGY42ZCOkYaS6QnszEm0Ah1z8TyGEBER4pO1Ee4KQ1R3WO3wX5E4JtOq4/10ePXBIl2nc910ekk2/O9dElR0g5Z0fIbVHkvpC3PeSa8E6nT64P1dMj10fB6BuQayRQ5Arm5s3K9RHcZCdHRzXXSpHbpORci/H+1nJ9xFQq1Zwq/vnolfulbHclt0mPXB/Kj1ZatjIHUdyRDqiU6yMw+LYj14f073OReLtirg8/i6hzCrk/Krk+CqZhj1wfkX5+y3N96KQxINdHyB0yMNcHCpOxk+sjy4kaW8j1sbbe4vEhc31MHbqXztzsXB+Vf3ypeum+KU+nphf+gAnESd9TavZD8N8Vy5kXurrwEvn7OupLkWYl8ood1rPHeXmlE5dp4iX6cSXCipaUEjP5onJWuFJkF20ogtda/5v0BMFaVrgyzT7aU8FHA63qzSmbVWWmSkqGChm803BIe4oGXSJTP+QO/b2CX2FmOZqXYK02/VdSsdRkS3BvYtz2uC8+DUA5f2J3nCvjKgBWWaViS3gXc2iIrw/JXzz9W5ygjzp9VO2/gknjQD+XhEMaIUfauOTZkJhXadxKjmfJhBd0SO6Mjj7NoaFxdL0+ZNjTHB7hs4TOwJ5+rZFjzNkR2opizdWh0TNX62NWv0jfZsm65xNSebq7fvX0OUAC/V0TImmWPdb8G6h2+OuCQh5yeMicVmQDDDR0oYVL5CsRc8y4p0tCIVeHxvRKV/f1nj6OnMVoWOniEn2H6FhydIT+1a5QL3k7JAGVLAtpwqUQQcdsfT6XR8iw5xxrDg9Z2gnZ/DQRU8yqp2fHuJ7Rikt4t0TUbo2xMUJXJKueS1mz6jXGfSQtGfUkm15zj6eQyxKJZNETCjmc1OfkhinksrODU1jQv+XqOKnLAPh0v7zUk0eXPgScv9rJCyLfOfjJs8dn5rt6XSs0BAwBQ8AQGBqBYo36Rrff+Wx5+KKkhg29rjLww2ePz742tBUmaAgYAoaAIdATAXXUYfud7OwoiCzMfBpzfKQfkWXy2OJnmfjfivzTCOcB4aPLi/3/wsvuhyFgCBgChsDwCGCvPdL9t98xTh5d+ioAf6bU1c8oyz/2y2/+xenhuzdJQ8AQMAQMgUEIYH0LnuzsWHX4dK890h/4638fWb+850UGKP65HAB/NDK68ZD9+/gguK3eEDAEDIHrR0CXPiaOzL+MiOJ4v7J8fObpXmqmPv31O7md/jcAfyjKIMAro3uvfvLn//E3svfdDkPAEDAEDIGbjIA6at2Sl8EDZ78x83Iv/Qcf+/rdSSP9HjO/v5BB/NLy0rG/u56/lLnJ9ps6Q8AQMAR+5xEYKtfHwSPP3+/Q/Q8AHFBEZEepw79cXpr+2u88QjZAQ8AQMARuMQIDHfXU0ecfAnDfYoBRbytvMMAnzx6ffeUW227dGwKGgCGwIxAYkOtjYRYBngv/ciqAXARwf7Z8/NiPdgQ6NkhDwBAwBG4DBPr8C/n8vwLiP0YbZV914txH3l6a/sVtYLeZYAgYAobAjkFgk6P+4JPPNM5tNF8AhsMlFN7ME/7ouYXZ8zsGGRuoIWAIGAK3CQIVR71/9vk9Ixl+G6D8J7b8Ko+2//zss0+t3iY2mxmGgCFgCOwoBCqO+n2PvXBHnrZ/DMAfEBQQYP7ModNPwNxcPV3bjgLJBmsIGAKGwK1EYNPSh+yXdmn6BiB9ZXlp9vO30jjr2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",borderProps={...props,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:400,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{},gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1,titleMode:"type-1"},borderComponentProps=transformToComponentProps(borderProps),borderEvents=["click"],_sfc_main$8=vue.defineComponent({name:"EcanBorder",props:{...borderComponentProps},setup(c){const u=usePickComponentStyle(c,["background"]),f=vue.computed(()=>{const{isTransparent:_,gradientShow:vn,gradientColor:Fn,gradientOffset:Pn,gradientAngle:w,backgroundColor:J}=c;if(vn){let gn=Fn;return _&&(gn="transparent"),gn?{background:`linear-gradient(${w}, ${J}, ${gn} ${Pn*100}%)`}:{}}else return{}}),h=vue.computed(()=>{const{events:_}=c;let vn={};return _!=null&&_.length&&_.find(Pn=>Pn.emit==="showModal")&&(vn={cursor:"pointer"}),vn}),{theme:d}=vue.inject(GLOBAL_CONFIG,{theme:"light"}),v=vue.computed(()=>{let _="";switch(c.titleMode){case"type-2":_="2";break}return _}),p=vue.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":__vite_glob_0_0,"../../assets/border-title-decoration-left2.png":__vite_glob_0_1})[`../../assets/border-title-decoration-left${v.value}.png`],self.location).href),m=vue.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":__vite_glob_1_0,"../../assets/border-title-decoration-right2.png":__vite_glob_1_1})[`../../assets/border-title-decoration-right${v.value}.png`],self.location).href),g=vue.computed(()=>({width:"100%",height:"100%"})),y=vue.computed(()=>{const{borderRadius:_}=c,vn=[],Fn={};if(_){const Pn=_.split(",");for(const w of Pn)(+w||+w==0)&&vn.push(+w+"px")}return vn!=null&&vn.length&&(Fn.borderRadius=vn.join(" ")),Fn}),Bn=useEmitEvent(c)("click",()=>{}),b=vue.ref([]);vue.watch(()=>c.data,_=>{b.value=_},{immediate:!0,deep:!0}),useOnEvent(c,{click:Bn});const{setGlobalModel:re}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(_,vn)=>{}});return re(c.id,{type:c.type,value:b}),{style:u,gradientStyle:f,click:Bn,borderStyle:g,theme:d,borderRadiusStyle:y,titleLeftIcon:p,titleRightIcon:m,cursorStyle:h}}}),Border_vue_vue_type_style_index_0_scoped_8dd53b8f_lang="",_withScopeId$1=c=>(vue.pushScopeId("data-v-8dd53b8f"),c=c(),vue.popScopeId(),c),_hoisted_1$6=["id"],_hoisted_2$3=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-left border-item"},null,-1)),_hoisted_3$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-right border-item"},null,-1)),_hoisted_4$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),_hoisted_5$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),_hoisted_6$1={class:"title-item"},_hoisted_7$1=["src"],_hoisted_8$1={class:"title"},_hoisted_9$1=["src"],_hoisted_10$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-left border-item"},null,-1)),_hoisted_11$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-right border-item"},null,-1)),_hoisted_12$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),_hoisted_13$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),_hoisted_14$1={key:2,class:"left-title"},_hoisted_15$1={class:"title"};function _sfc_render$a(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-border",style:vue.normalizeStyle({...c.style,...c.gradientStyle,...c.borderRadiusStyle,...c.cursorStyle}),onClick:u[0]||(u[0]=(...p)=>c.click&&c.click(...p)),id:"container_"+c.id},[c.mode==="no-title"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"no-title",style:vue.normalizeStyle(c.borderStyle)},[c.useBorderModify?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[_hoisted_2$3,_hoisted_3$1,_hoisted_4$1,_hoisted_5$1],64)):vue.createCommentVNode("",!0)],4)):vue.createCommentVNode("",!0),c.mode==="top-title"?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"top-title",style:vue.normalizeStyle(c.borderStyle)},[vue.createElementVNode("div",{class:vue.normalizeClass(["title-item-wrapper",c.titleMode])},[vue.createElementVNode("div",_hoisted_6$1,[vue.createElementVNode("img",{class:vue.normalizeClass(["title-decoration",c.titleMode]),src:c.titleLeftIcon},null,10,_hoisted_7$1),vue.createElementVNode("div",_hoisted_8$1,vue.toDisplayString(c.title),1),vue.createElementVNode("img",{class:vue.normalizeClass(["title-decoration",c.titleMode]),src:c.titleRightIcon},null,10,_hoisted_9$1)])],2),_hoisted_10$1,_hoisted_11$1,_hoisted_12$1,_hoisted_13$1],4)):vue.createCommentVNode("",!0),c.mode==="left-title"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14$1,[vue.createElementVNode("div",_hoisted_15$1,[vue.createElementVNode("span",null,vue.toDisplayString(c.title),1)])])):vue.createCommentVNode("",!0)],12,_hoisted_1$6)}const Border=_export_sfc$1(_sfc_main$8,[["render",_sfc_render$a],["__scopeId","data-v-8dd53b8f"]]),EcanBorder=withInstall$1(Border),tabsProps$1={...props,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,containIds:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px",isAutoScroll:!1,scrollSpeed:10,componentList:[],hideTabs:!1,gridTopPx:"0",gridBottomPx:"0",gridLeftPx:"0",gridRightPx:"0"},tabsComponentProps=transformToComponentProps(tabsProps$1),tabsEvents=["tabChange"],_sfc_main$7=vue.defineComponent({name:"EcanTabs",props:{...tabsComponentProps},components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,MarqueeScroll},setup(c){const u=usePickComponentStyle(c),f=vue.ref(0);vue.watch(()=>c.activeKey,Un=>{f.value=Un},{immediate:!0});const{pageMode:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),d=vue.inject("getContainerMap",()=>{}),v=vue.inject("componentList",[]),p=["ecanBorder","ecanTabs","ecanCirculate"],m=vue.computed(()=>d()||{}),g=Un=>{const er=vue.unref(m)[Un],Jn=[];if(er)for(const tr in er)for(const Qn of er[tr]){const ir=vue.unref(v).find(cr=>cr.id===Qn);Jn.push(Qn),p.includes(ir==null?void 0:ir.type)&&Jn.push(...g(Qn))}return Jn},y=vue.computed(()=>g(c.id));let x=null;const Bn=()=>{const Un=Array.isArray(vue.unref(re))?vue.unref(re).length-1:0;vue.unref(h)!=="design"&&!c.isAutoScroll&&c.autoSwitch&&Un>0&&(x=setInterval(()=>{const er=vue.unref(f)+1;er<=Un?f.value=er:f.value=0,_.value=vue.unref(re)[vue.unref(f)],w()},c.autoSwitchInterval*1e3))},b=()=>{clearInterval(x)};vue.onMounted(()=>{vue.unref(h)!=="design"&&Bn()}),vue.onBeforeUnmount(()=>{b()});const re=vue.ref([]),_=vue.ref({});vue.watch(()=>c.data,Un=>{re.value=Un,_.value=Array.isArray(Un)&&Un.length>0?Un[0]:{}},{immediate:!0,deep:!0});const vn=Un=>f.value===Un,Fn=useEmitEvent(c),{setGlobalModel:Pn}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(Un,er)=>{}});Pn(c.id,{RECORD:vue.unref(_),value:vue.unref(_),activeKey:f});const{emitRefreshPage:w}=vue.inject(REFRESH_PAGE,{emitRefreshPage:()=>{}}),J=Un=>{let{tab:er,index:Jn}=Un||{};if(Un.label){const tr=vue.unref(re).findIndex(Qn=>Qn.title===Un.label);tr!==-1&&(Jn=tr,er=vue.unref(re)[tr])}Fn("tabChange",()=>{!isNaN(+Jn)&&Jn!==vue.unref(f)&&(_.value=er,f.value=Jn,Pn(c.id,{RECORD:er,value:er,activeKey:Jn}),w())})()},gn=vue.computed(()=>{const Un=c.componentList.map(er=>parseFloat(er.left)+parseFloat(er.width)).sort((er,Jn)=>Jn-er)[0];return{width:Un?Un+"px":"100%"}}),Vn=()=>{vue.unref(h)!=="design"&&b()},zn=Un=>{var er,Jn;return Un?(Jn=(er=Un==null?void 0:Un.parentNode)==null?void 0:er.className)!=null&&Jn.includes("ecan-")?Un.parentNode.getAttribute("cpntid"):zn(Un.parentNode):""},Wn=Un=>{var er;if(vue.unref(h)!=="design"){const Jn=(Un==null?void 0:Un.toElement)||{};if((er=Jn==null?void 0:Jn.className)!=null&&er.includes("ecan-"))vue.unref(y).includes(Jn.getAttribute("cpntid"))||Bn();else if((Jn==null?void 0:Jn.className)==="page-config")Bn();else{const tr=zn(Jn);vue.unref(y).includes(tr)||Bn()}}};return useOnEvent(c,{tabChange:J}),{style:u,activeKey:f,isActive:vn,tabChange:J,myData:re,useImagePath,pageMode:h,scrollWrapStyle:gn,onMouseEnter:Vn,onMouseLeave:Wn}}}),Tabs_vue_vue_type_style_index_0_scoped_c936183e_lang="",_hoisted_1$5=["id"],_hoisted_2$2=["onClick"];function _sfc_render$9(c,u,f,h,d,v){const p=vue.resolveComponent("a-select-option"),m=vue.resolveComponent("a-select"),g=vue.resolveComponent("marquee-scroll");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tabs",style:vue.normalizeStyle(c.style),id:"container_"+c.id,onMouseenter:u[0]||(u[0]=(...y)=>c.onMouseEnter&&c.onMouseEnter(...y)),onMouseleave:u[1]||(u[1]=(...y)=>c.onMouseLeave&&c.onMouseLeave(...y))},[c.pageMode==="design"||!c.isAutoScroll?vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{key:0,class:"tabs-header",style:vue.normalizeStyle({fontSize:c.tabFontSize,alignItems:c.tabAlignItems,justifyContent:c.tabJustifyContent,flexDirection:c.tabFlexDirection,margin:`${c.gridTopPx||0} ${c.gridRightPx||0} ${c.gridBottomPx||0} ${c.gridLeftPx||0}`})},[c.tabType==="tabs"?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(c.myData,(y,x)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`5px ${c.tabHorizontalPadding}`,color:c.isActive(x)?c.activeTabColor:c.tabColor,backgroundImage:c.isActive(x)?c.useImagePath(c.activeTabBackgroundImage,!0):c.useImagePath(c.tabBackgroundImage,!0),marginRight:c.tabFlexDirection==="row"?c.tabBarGutter:null,marginBottom:c.tabFlexDirection==="column"?c.tabBarGutter:null,fontWeight:c.tabFontWeight}),key:x,onClick:vue.withModifiers(Bn=>c.tabChange({tab:y,index:x}),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!c.activeTabBackgroundImage&&!c.tabBackgroundImage?`1px solid ${c.isActive(x)?c.activeTabColor:"transparent"}`:""})},vue.toDisplayString(y.title),5)],12,_hoisted_2$2))),128)):c.tabType==="select"?(vue.openBlock(),vue.createBlock(m,{key:1,value:c.activeKey,style:vue.normalizeStyle({width:c.tabWidth})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myData,(y,x)=>(vue.openBlock(),vue.createBlock(p,{key:x,value:x,onClick:Bn=>c.tabChange({tab:y,index:x})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(y.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):vue.createCommentVNode("",!0)],4)),[[vue.vShow,c.pageMode==="design"||!c.hideTabs]]):vue.createCommentVNode("",!0),c.pageMode!=="design"&&c.isAutoScroll?(vue.openBlock(),vue.createBlock(g,{key:1,visible:c.isAutoScroll,step:c.scrollSpeed,vertical:!1,style:vue.normalizeStyle({height:c.height})},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(c.scrollWrapStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.componentList,y=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:y.id},y)),null,16))),128))],4)]),_:1},8,["visible","step","style"])):vue.createCommentVNode("",!0)],44,_hoisted_1$5)}const Tabs$1=_export_sfc$1(_sfc_main$7,[["render",_sfc_render$9],["__scopeId","data-v-c936183e"]]),EcanTabs=withInstall$1(Tabs$1),circulateProps={...props,name:"循环列表",type:"ecanCirculate",keyName:"循环列表",width:"300px",height:"300px",zIndex:0,borderColor:"#eee",borderStyle:"solid",borderWidth:"2px",graphicConfig:{},isAutoScroll:!1,scrollSpeed:10,componentList:[],data:[],dataType:"indicator",keyFieldMap:[],unitInterval:15,backgroundColor:"#ffffff",colNum:null,scrollDirection:"horizontal"},circulateComponentProps=transformToComponentProps(circulateProps),circulateEvents=["click","refreshData","resetRecord"];let nanoid=(c=21)=>crypto.getRandomValues(new Uint8Array(c)).reduce((u,f)=>(f&=63,f<36?u+=f.toString(36):f<62?u+=(f-26).toString(36).toUpperCase():f>62?u+="-":u+="_",u),"");const _sfc_main$6=vue.defineComponent({name:"EcanCirculate",props:{...circulateComponentProps,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll,Skeleton},setup(c,{expose:u}){const f=vue.ref(!1),h=usePickComponentStyle(c,["background"]),d=vue.inject("usedComponentList",[]),v=vue.inject("isMobile",!1),{getGlobalModel:p,setGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Un=>{},setGlobalModel:(Un,er)=>{}}),g=vue.ref([]),y=vue.ref({}),{pageMode:x}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),Bn=vue.computed(()=>{if(vue.unref(v)){const Un=document.body.clientWidth,er=c.sourceWidth||parseFloat(c.width);return Un/er||1}else return 1});function b(Un,er){const Jn=er.find(tr=>tr.id===c.id);if(Jn)for(const tr of Un)tr.left=parseFloat(tr.left)-parseFloat(Jn.sourceLeft||Jn.left)+"px",tr.top=parseFloat(tr.top)-parseFloat(Jn.sourceTop||Jn.top)+"px"}const re=Un=>{const er=Un.sort((ir,cr)=>parseFloat(ir.top)-parseFloat(cr.top))[0],Jn=Un.sort((ir,cr)=>parseFloat(ir.left)-parseFloat(cr.left))[0],tr=Un.map(ir=>parseFloat(ir.left)+parseFloat(ir.width)).sort((ir,cr)=>cr-ir)[0],Qn=Un.map(ir=>parseFloat(ir.top)+parseFloat(ir.height)).sort((ir,cr)=>cr-ir)[0];if(Jn&&tr&&er&&Qn){const ir=parseFloat(Jn.left),cr=parseFloat(er.top);return{width:tr-ir,height:Qn-cr,left:ir}}else return{width:0,height:0,left:0}},_=vue.ref({}),vn=Un=>{var Gn,Zn;const er=[],{graphicConfig:Jn,id:tr,componentList:Qn,keyFieldMap:ir,unitInterval:cr,colNum:Xn}=c;let Hn=lodashEs.cloneDeep(Qn),Yn=[];if((Gn=vue.unref(d))!=null&&Gn.length)for(const qn of vue.unref(d))Yn.push(qn),(Zn=qn==null?void 0:qn.componentList)!=null&&Zn.length&&Yn.push(...qn.componentList);if(Jn.pageMode==="design"&&Jn.preview){const{containerMap:qn}=Jn.pageConfig||{};Yn=Jn.componentList||[],Yn.push(c),Hn=moveToComponentList(qn,lodashEs.cloneDeep(Yn),tr)}b(Hn,Yn);const Rn=re(Hn);if(Un!=null&&Un.length){const{width:qn,left:nr,height:or}=Rn;let Kn=0,ar=0;Un.forEach((lr,ur)=>{lr.index=ur+1;const dr=nanoid(),sr=lodashEs.cloneDeep(Hn);for(const fr of sr){const pr=ir.find(gr=>gr.keyName===fr.keyName),mr=nanoid();if(fr.left=(parseFloat(fr.left)+Kn)*vue.unref(Bn)+"px",fr.top=(parseFloat(fr.top)+ar)*vue.unref(Bn)+"px",fr.scale=vue.unref(Bn),fr.id=mr,fr.keyName=fr.name+"_"+mr,fr.unitId=dr,pr!=null&&pr.fieldName){const gr=fr.text.match(/\{(.+?)\}/g);switch(fr.type){case"ecanText":{fr.data={value:String(lr[pr.fieldName])},gr!=null&&gr.length||(fr.text="{value}");break}case"ecanProportion":{fr.data={percent:String(lr[pr.fieldName])},gr!=null&&gr.length||(fr.text="{percent}");break}}}}Xn&&lr.index%Xn===0?(Kn=0,ar+=cr+or):Kn+=cr+qn,er.push(...sr),_.value[dr]=lr}),y.value={width:((Xn||Un.length)*(qn+cr)+nr)*vue.unref(Bn)+"px",height:(Xn?Math.ceil(Un.length/Xn)*(cr+or):cr+or)*vue.unref(Bn)+"px"}}g.value=er},Fn=Un=>{var Jn;const{rows:er=[]}=((Jn=Un==null?void 0:Un.data)==null?void 0:Jn.data)??{};vn(er)},Pn=useIndicatorData(c,Fn),w=async()=>{try{f.value=!0;const Un=await Pn();Fn(Un)}catch(Un){console.error(Un)}finally{f.value=!1}},J=()=>{switch(c.dataType){case"indicator":w();break}};useOnEvent(c,{refreshData:J,resetRecord:()=>{const Un=c.id,er=p(Un);m(Un,{...er,RECORD:""})}}),u({refreshData:J}),m(c.id,{type:c.type,RECORD:""});const{setRequest:Vn}=vue.inject(REQUEST_MODEL,{setRequest:Un=>{}});typeof Vn=="function"&&Vn({id:c.id,requestFn:J,sortNum:c.requestSort});const zn=useEmitEvent(c);return{loading:f,style:h,myComponentList:g,scrollWrapStyle:y,pageMode:x,click:Un=>{let er=Un.target;if(er){let Jn=er.getAttribute("unitId");for(;!Jn&&!er.className.includes("ecan-");)er=er.parentElement,Jn=er.getAttribute("unitId");Jn&&zn("click",()=>{const tr=p(c.id);m(c.id,{...tr,type:c.type,RECORD:vue.unref(_)[Jn]})})()}}}}}),Circulate_vue_vue_type_style_index_0_scoped_85608bec_lang="",_hoisted_1$4=["id"];function _sfc_render$8(c,u,f,h,d,v){const p=vue.resolveComponent("marquee-scroll"),m=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-circulate",style:vue.normalizeStyle(c.style),id:"container_"+c.id,onClick:u[0]||(u[0]=(...g)=>c.click&&c.click(...g))},[vue.createVNode(m,{loading:c.loading},{default:vue.withCtx(()=>{var g;return[(g=c.myComponentList)!=null&&g.length?(vue.openBlock(),vue.createBlock(p,{key:0,visible:c.pageMode!=="design"&&c.isAutoScroll,step:c.scrollSpeed,vertical:c.scrollDirection==="vertical",marqueeStyle:{height:"100%"},wrapStyle:{height:"100%",overflow:"auto"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(c.scrollWrapStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myComponentList,y=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:y.id},y)),null,16))),128))],4)]),_:1},8,["visible","step","vertical"])):vue.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,_hoisted_1$4)}const Circulate=_export_sfc$1(_sfc_main$6,[["render",_sfc_render$8],["__scopeId","data-v-85608bec"]]),EcanCirculate=withInstall$1(Circulate),templateProps={...props,name:"模板",type:"ecanTemplate",keyName:"模板",width:"300px",height:"300px",borderColor:"#eee",borderRadius:"5",borderWidth:"2px",borderStyle:"solid",pageId:""},templateComponentProps=transformToComponentProps(templateProps),templateEvents=["refreshData"],_sfc_main$5=vue.defineComponent({name:"EcanTemplate",props:{...templateComponentProps},components:{},setup(c){const u=usePickComponentStyle(c,["background"]),{templateEmit:f}=vue.inject("templateOperate",{templateEmit:(d,v)=>{}})||{};return useOnEvent(c,{refreshData:()=>{f("refreshTemplate",c.pageId)}}),{style:u}}});function _sfc_render$7(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-template",style:vue.normalizeStyle(c.style)},[vue.renderSlot(c.$slots,"default")],4)}const Template=_export_sfc$1(_sfc_main$5,[["render",_sfc_render$7]]),EcanTemplate=withInstall$1(Template),imageProps={...props,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1,borderRadius:"",isAnimation:!1,animationSource:{name:"",directory:""},actionType:"link",isDrillShow:!1,targetTemplate:"",transParams:[]},imageComponentProps=transformToComponentProps(imageProps),imageEvents=["click"];var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(c,u){module.exports=u()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(u){_useWebWorker=!!u},getWebWorker=function(){return _useWebWorker},setLocationHref=function(u){locationHref=u},getLocationHref=function(){return locationHref};function createTag(c){return document.createElement(c)}function extendPrototype(c,u){var f,h=c.length,d;for(f=0;f<h;f+=1){d=c[f].prototype;for(var v in d)Object.prototype.hasOwnProperty.call(d,v)&&(u.prototype[v]=d[v])}}function getDescriptor(c,u){return Object.getOwnPropertyDescriptor(c,u)}function createProxyFunction(c){function u(){}return u.prototype=c,u}var audioControllerFactory=function(){function c(u){this.audios=[],this.audioFactory=u,this._volume=1,this._isMuted=!1}return c.prototype={addAudio:function(f){this.audios.push(f)},pause:function(){var f,h=this.audios.length;for(f=0;f<h;f+=1)this.audios[f].pause()},resume:function(){var f,h=this.audios.length;for(f=0;f<h;f+=1)this.audios[f].resume()},setRate:function(f){var h,d=this.audios.length;for(h=0;h<d;h+=1)this.audios[h].setRate(f)},createAudio:function(f){return this.audioFactory?this.audioFactory(f):window.Howl?new window.Howl({src:[f]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(f){this.audioFactory=f},setVolume:function(f){this._volume=f,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var f,h=this.audios.length;for(f=0;f<h;f+=1)this.audios[f].volume(this._volume*(this._isMuted?0:1))}},function(){return new c}}(),createTypedArray=function(){function c(f,h){var d=0,v=[],p;switch(f){case"int16":case"uint8c":p=1;break;default:p=1.1;break}for(d=0;d<h;d+=1)v.push(p);return v}function u(f,h){return f==="float32"?new Float32Array(h):f==="int16"?new Int16Array(h):f==="uint8c"?new Uint8ClampedArray(h):c(f,h)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?u:c}();function createSizedArray(c){return Array.apply(null,{length:c})}function _typeof$6(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(f){return typeof f}:_typeof$6=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$6(c)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var c=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],u,f=c.length;for(u=0;u<f;u+=1)BMMath[c[u]]=Math[c[u]]})(),BMMath.random=Math.random,BMMath.abs=function(c){var u=_typeof$6(c);if(u==="object"&&c.length){var f=createSizedArray(c.length),h,d=c.length;for(h=0;h<d;h+=1)f[h]=Math.abs(c[h]);return f}return Math.abs(c)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(c){c.style.position="absolute",c.style.top=0,c.style.left=0,c.style.display="block",c.style.transformOrigin="0 0",c.style.webkitTransformOrigin="0 0",c.style.backfaceVisibility="visible",c.style.webkitBackfaceVisibility="visible",c.style.transformStyle="preserve-3d",c.style.webkitTransformStyle="preserve-3d",c.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(c,u,f,h){this.type=c,this.currentTime=u,this.totalTime=f,this.direction=h<0?-1:1}function BMCompleteEvent(c,u){this.type=c,this.direction=u<0?-1:1}function BMCompleteLoopEvent(c,u,f,h){this.type=c,this.currentLoop=f,this.totalLoops=u,this.direction=h<0?-1:1}function BMSegmentStartEvent(c,u,f){this.type=c,this.firstFrame=u,this.totalFrames=f}function BMDestroyEvent(c,u){this.type=c,this.target=u}function BMRenderFrameErrorEvent(c,u){this.type="renderFrameError",this.nativeError=c,this.currentTime=u}function BMConfigErrorEvent(c){this.type="configError",this.nativeError=c}var createElementID=function(){var c=0;return function(){return c+=1,idPrefix$1+"__lottie_element_"+c}}();function HSVtoRGB(c,u,f){var h,d,v,p,m,g,y,x;switch(p=Math.floor(c*6),m=c*6-p,g=f*(1-u),y=f*(1-m*u),x=f*(1-(1-m)*u),p%6){case 0:h=f,d=x,v=g;break;case 1:h=y,d=f,v=g;break;case 2:h=g,d=f,v=x;break;case 3:h=g,d=y,v=f;break;case 4:h=x,d=g,v=f;break;case 5:h=f,d=g,v=y;break}return[h,d,v]}function RGBtoHSV(c,u,f){var h=Math.max(c,u,f),d=Math.min(c,u,f),v=h-d,p,m=h===0?0:v/h,g=h/255;switch(h){case d:p=0;break;case c:p=u-f+v*(u<f?6:0),p/=6*v;break;case u:p=f-c+v*2,p/=6*v;break;case f:p=c-u+v*4,p/=6*v;break}return[p,m,g]}function addSaturationToRGB(c,u){var f=RGBtoHSV(c[0]*255,c[1]*255,c[2]*255);return f[1]+=u,f[1]>1?f[1]=1:f[1]<=0&&(f[1]=0),HSVtoRGB(f[0],f[1],f[2])}function addBrightnessToRGB(c,u){var f=RGBtoHSV(c[0]*255,c[1]*255,c[2]*255);return f[2]+=u,f[2]>1?f[2]=1:f[2]<0&&(f[2]=0),HSVtoRGB(f[0],f[1],f[2])}function addHueToRGB(c,u){var f=RGBtoHSV(c[0]*255,c[1]*255,c[2]*255);return f[0]+=u/360,f[0]>1?f[0]-=1:f[0]<0&&(f[0]+=1),HSVtoRGB(f[0],f[1],f[2])}var rgbToHex=function(){var c=[],u,f;for(u=0;u<256;u+=1)f=u.toString(16),c[u]=f.length===1?"0"+f:f;return function(h,d,v){return h<0&&(h=0),d<0&&(d=0),v<0&&(v=0),"#"+c[h]+c[d]+c[v]}}(),setSubframeEnabled=function(u){subframeEnabled=!!u},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(u){expressionsPlugin=u},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(u){expressionsInterfaces=u},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(u){defaultCurveSegments=u},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(u){idPrefix$1=u};function createNS(c){return document.createElementNS(svgNS,c)}function _typeof$5(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(f){return typeof f}:_typeof$5=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$5(c)}var dataManager=function(){var c=1,u=[],f,h,d={onmessage:function(){},postMessage:function(re){f({data:re})}},v={postMessage:function(re){d.onmessage({data:re})}};function p(b){if(window.Worker&&window.Blob&&getWebWorker()){var re=new Blob(["var _workerSelf = self; self.onmessage = ",b.toString()],{type:"text/javascript"}),_=URL.createObjectURL(re);return new Worker(_)}return f=b,d}function m(){h||(h=p(function(re){function _(){function Fn(Xn,Hn){var Yn,Rn,Gn=Xn.length,Zn,qn,nr,or;for(Rn=0;Rn<Gn;Rn+=1)if(Yn=Xn[Rn],"ks"in Yn&&!Yn.completed){if(Yn.completed=!0,Yn.hasMask){var Kn=Yn.masksProperties;for(qn=Kn.length,Zn=0;Zn<qn;Zn+=1)if(Kn[Zn].pt.k.i)Vn(Kn[Zn].pt.k);else for(or=Kn[Zn].pt.k.length,nr=0;nr<or;nr+=1)Kn[Zn].pt.k[nr].s&&Vn(Kn[Zn].pt.k[nr].s[0]),Kn[Zn].pt.k[nr].e&&Vn(Kn[Zn].pt.k[nr].e[0])}Yn.ty===0?(Yn.layers=J(Yn.refId,Hn),Fn(Yn.layers,Hn)):Yn.ty===4?gn(Yn.shapes):Yn.ty===5&&ir(Yn)}}function Pn(Xn,Hn){if(Xn){var Yn=0,Rn=Xn.length;for(Yn=0;Yn<Rn;Yn+=1)Xn[Yn].t===1&&(Xn[Yn].data.layers=J(Xn[Yn].data.refId,Hn),Fn(Xn[Yn].data.layers,Hn))}}function w(Xn,Hn){for(var Yn=0,Rn=Hn.length;Yn<Rn;){if(Hn[Yn].id===Xn)return Hn[Yn];Yn+=1}return null}function J(Xn,Hn){var Yn=w(Xn,Hn);return Yn?Yn.layers.__used?JSON.parse(JSON.stringify(Yn.layers)):(Yn.layers.__used=!0,Yn.layers):null}function gn(Xn){var Hn,Yn=Xn.length,Rn,Gn;for(Hn=Yn-1;Hn>=0;Hn-=1)if(Xn[Hn].ty==="sh")if(Xn[Hn].ks.k.i)Vn(Xn[Hn].ks.k);else for(Gn=Xn[Hn].ks.k.length,Rn=0;Rn<Gn;Rn+=1)Xn[Hn].ks.k[Rn].s&&Vn(Xn[Hn].ks.k[Rn].s[0]),Xn[Hn].ks.k[Rn].e&&Vn(Xn[Hn].ks.k[Rn].e[0]);else Xn[Hn].ty==="gr"&&gn(Xn[Hn].it)}function Vn(Xn){var Hn,Yn=Xn.i.length;for(Hn=0;Hn<Yn;Hn+=1)Xn.i[Hn][0]+=Xn.v[Hn][0],Xn.i[Hn][1]+=Xn.v[Hn][1],Xn.o[Hn][0]+=Xn.v[Hn][0],Xn.o[Hn][1]+=Xn.v[Hn][1]}function zn(Xn,Hn){var Yn=Hn?Hn.split("."):[100,100,100];return Xn[0]>Yn[0]?!0:Yn[0]>Xn[0]?!1:Xn[1]>Yn[1]?!0:Yn[1]>Xn[1]?!1:Xn[2]>Yn[2]?!0:Yn[2]>Xn[2]?!1:null}var Wn=function(){var Xn=[4,4,14];function Hn(Rn){var Gn=Rn.t.d;Rn.t.d={k:[{s:Gn,t:0}]}}function Yn(Rn){var Gn,Zn=Rn.length;for(Gn=0;Gn<Zn;Gn+=1)Rn[Gn].ty===5&&Hn(Rn[Gn])}return function(Rn){if(zn(Xn,Rn.v)&&(Yn(Rn.layers),Rn.assets)){var Gn,Zn=Rn.assets.length;for(Gn=0;Gn<Zn;Gn+=1)Rn.assets[Gn].layers&&Yn(Rn.assets[Gn].layers)}}}(),Un=function(){var Xn=[4,7,99];return function(Hn){if(Hn.chars&&!zn(Xn,Hn.v)){var Yn,Rn=Hn.chars.length;for(Yn=0;Yn<Rn;Yn+=1){var Gn=Hn.chars[Yn];Gn.data&&Gn.data.shapes&&(gn(Gn.data.shapes),Gn.data.ip=0,Gn.data.op=99999,Gn.data.st=0,Gn.data.sr=1,Gn.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},Hn.chars[Yn].t||(Gn.data.shapes.push({ty:"no"}),Gn.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),er=function(){var Xn=[5,7,15];function Hn(Rn){var Gn=Rn.t.p;typeof Gn.a=="number"&&(Gn.a={a:0,k:Gn.a}),typeof Gn.p=="number"&&(Gn.p={a:0,k:Gn.p}),typeof Gn.r=="number"&&(Gn.r={a:0,k:Gn.r})}function Yn(Rn){var Gn,Zn=Rn.length;for(Gn=0;Gn<Zn;Gn+=1)Rn[Gn].ty===5&&Hn(Rn[Gn])}return function(Rn){if(zn(Xn,Rn.v)&&(Yn(Rn.layers),Rn.assets)){var Gn,Zn=Rn.assets.length;for(Gn=0;Gn<Zn;Gn+=1)Rn.assets[Gn].layers&&Yn(Rn.assets[Gn].layers)}}}(),Jn=function(){var Xn=[4,1,9];function Hn(Rn){var Gn,Zn=Rn.length,qn,nr;for(Gn=0;Gn<Zn;Gn+=1)if(Rn[Gn].ty==="gr")Hn(Rn[Gn].it);else if(Rn[Gn].ty==="fl"||Rn[Gn].ty==="st")if(Rn[Gn].c.k&&Rn[Gn].c.k[0].i)for(nr=Rn[Gn].c.k.length,qn=0;qn<nr;qn+=1)Rn[Gn].c.k[qn].s&&(Rn[Gn].c.k[qn].s[0]/=255,Rn[Gn].c.k[qn].s[1]/=255,Rn[Gn].c.k[qn].s[2]/=255,Rn[Gn].c.k[qn].s[3]/=255),Rn[Gn].c.k[qn].e&&(Rn[Gn].c.k[qn].e[0]/=255,Rn[Gn].c.k[qn].e[1]/=255,Rn[Gn].c.k[qn].e[2]/=255,Rn[Gn].c.k[qn].e[3]/=255);else Rn[Gn].c.k[0]/=255,Rn[Gn].c.k[1]/=255,Rn[Gn].c.k[2]/=255,Rn[Gn].c.k[3]/=255}function Yn(Rn){var Gn,Zn=Rn.length;for(Gn=0;Gn<Zn;Gn+=1)Rn[Gn].ty===4&&Hn(Rn[Gn].shapes)}return function(Rn){if(zn(Xn,Rn.v)&&(Yn(Rn.layers),Rn.assets)){var Gn,Zn=Rn.assets.length;for(Gn=0;Gn<Zn;Gn+=1)Rn.assets[Gn].layers&&Yn(Rn.assets[Gn].layers)}}}(),tr=function(){var Xn=[4,4,18];function Hn(Rn){var Gn,Zn=Rn.length,qn,nr;for(Gn=Zn-1;Gn>=0;Gn-=1)if(Rn[Gn].ty==="sh")if(Rn[Gn].ks.k.i)Rn[Gn].ks.k.c=Rn[Gn].closed;else for(nr=Rn[Gn].ks.k.length,qn=0;qn<nr;qn+=1)Rn[Gn].ks.k[qn].s&&(Rn[Gn].ks.k[qn].s[0].c=Rn[Gn].closed),Rn[Gn].ks.k[qn].e&&(Rn[Gn].ks.k[qn].e[0].c=Rn[Gn].closed);else Rn[Gn].ty==="gr"&&Hn(Rn[Gn].it)}function Yn(Rn){var Gn,Zn,qn=Rn.length,nr,or,Kn,ar;for(Zn=0;Zn<qn;Zn+=1){if(Gn=Rn[Zn],Gn.hasMask){var lr=Gn.masksProperties;for(or=lr.length,nr=0;nr<or;nr+=1)if(lr[nr].pt.k.i)lr[nr].pt.k.c=lr[nr].cl;else for(ar=lr[nr].pt.k.length,Kn=0;Kn<ar;Kn+=1)lr[nr].pt.k[Kn].s&&(lr[nr].pt.k[Kn].s[0].c=lr[nr].cl),lr[nr].pt.k[Kn].e&&(lr[nr].pt.k[Kn].e[0].c=lr[nr].cl)}Gn.ty===4&&Hn(Gn.shapes)}}return function(Rn){if(zn(Xn,Rn.v)&&(Yn(Rn.layers),Rn.assets)){var Gn,Zn=Rn.assets.length;for(Gn=0;Gn<Zn;Gn+=1)Rn.assets[Gn].layers&&Yn(Rn.assets[Gn].layers)}}}();function Qn(Xn){Xn.__complete||(Jn(Xn),Wn(Xn),Un(Xn),er(Xn),tr(Xn),Fn(Xn.layers,Xn.assets),Pn(Xn.chars,Xn.assets),Xn.__complete=!0)}function ir(Xn){Xn.t.a.length===0&&"m"in Xn.t.p}var cr={};return cr.completeData=Qn,cr.checkColors=Jn,cr.checkChars=Un,cr.checkPathProperties=er,cr.checkShapes=tr,cr.completeLayers=Fn,cr}if(v.dataManager||(v.dataManager=_()),v.assetLoader||(v.assetLoader=function(){function Fn(w){var J=w.getResponseHeader("content-type");return J&&w.responseType==="json"&&J.indexOf("json")!==-1||w.response&&_typeof$5(w.response)==="object"?w.response:w.response&&typeof w.response=="string"?JSON.parse(w.response):w.responseText?JSON.parse(w.responseText):null}function Pn(w,J,gn,Vn){var zn,Wn=new XMLHttpRequest;try{Wn.responseType="json"}catch{}Wn.onreadystatechange=function(){if(Wn.readyState===4)if(Wn.status===200)zn=Fn(Wn),gn(zn);else try{zn=Fn(Wn),gn(zn)}catch(Un){Vn&&Vn(Un)}};try{Wn.open(["G","E","T"].join(""),w,!0)}catch{Wn.open(["G","E","T"].join(""),J+"/"+w,!0)}Wn.send()}return{load:Pn}}()),re.data.type==="loadAnimation")v.assetLoader.load(re.data.path,re.data.fullPath,function(Fn){v.dataManager.completeData(Fn),v.postMessage({id:re.data.id,payload:Fn,status:"success"})},function(){v.postMessage({id:re.data.id,status:"error"})});else if(re.data.type==="complete"){var vn=re.data.animation;v.dataManager.completeData(vn),v.postMessage({id:re.data.id,payload:vn,status:"success"})}else re.data.type==="loadData"&&v.assetLoader.load(re.data.path,re.data.fullPath,function(Fn){v.postMessage({id:re.data.id,payload:Fn,status:"success"})},function(){v.postMessage({id:re.data.id,status:"error"})})}),h.onmessage=function(b){var re=b.data,_=re.id,vn=u[_];u[_]=null,re.status==="success"?vn.onComplete(re.payload):vn.onError&&vn.onError()})}function g(b,re){c+=1;var _="processId_"+c;return u[_]={onComplete:b,onError:re},_}function y(b,re,_){m();var vn=g(re,_);h.postMessage({type:"loadAnimation",path:b,fullPath:window.location.origin+window.location.pathname,id:vn})}function x(b,re,_){m();var vn=g(re,_);h.postMessage({type:"loadData",path:b,fullPath:window.location.origin+window.location.pathname,id:vn})}function Bn(b,re,_){m();var vn=g(re,_);h.postMessage({type:"complete",animation:b,id:vn})}return{loadAnimation:y,loadData:x,completeAnimation:Bn}}(),ImagePreloader=function(){var c=function(){var Pn=createTag("canvas");Pn.width=1,Pn.height=1;var w=Pn.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),Pn}();function u(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function f(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function h(Pn,w,J){var gn="";if(Pn.e)gn=Pn.p;else if(w){var Vn=Pn.p;Vn.indexOf("images/")!==-1&&(Vn=Vn.split("/")[1]),gn=w+Vn}else gn=J,gn+=Pn.u?Pn.u:"",gn+=Pn.p;return gn}function d(Pn){var w=0,J=setInterval((function(){var gn=Pn.getBBox();(gn.width||w>500)&&(this._imageLoaded(),clearInterval(J)),w+=1}).bind(this),50)}function v(Pn){var w=h(Pn,this.assetsPath,this.path),J=createNS("image");isSafari?this.testImageLoaded(J):J.addEventListener("load",this._imageLoaded,!1),J.addEventListener("error",(function(){gn.img=c,this._imageLoaded()}).bind(this),!1),J.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(J):this._elementHelper.appendChild(J);var gn={img:J,assetData:Pn};return gn}function p(Pn){var w=h(Pn,this.assetsPath,this.path),J=createTag("img");J.crossOrigin="anonymous",J.addEventListener("load",this._imageLoaded,!1),J.addEventListener("error",(function(){gn.img=c,this._imageLoaded()}).bind(this),!1),J.src=w;var gn={img:J,assetData:Pn};return gn}function m(Pn){var w={assetData:Pn},J=h(Pn,this.assetsPath,this.path);return dataManager.loadData(J,(function(gn){w.img=gn,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function g(Pn,w){this.imagesLoadedCb=w;var J,gn=Pn.length;for(J=0;J<gn;J+=1)Pn[J].layers||(!Pn[J].t||Pn[J].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(Pn[J]))):Pn[J].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Pn[J]))))}function y(Pn){this.path=Pn||""}function x(Pn){this.assetsPath=Pn||""}function Bn(Pn){for(var w=0,J=this.images.length;w<J;){if(this.images[w].assetData===Pn)return this.images[w].img;w+=1}return null}function b(){this.imagesLoadedCb=null,this.images.length=0}function re(){return this.totalImages===this.loadedAssets}function _(){return this.totalFootages===this.loadedFootagesCount}function vn(Pn,w){Pn==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function Fn(){this._imageLoaded=u.bind(this),this._footageLoaded=f.bind(this),this.testImageLoaded=d.bind(this),this.createFootageData=m.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return Fn.prototype={loadAssets:g,setAssetsPath:x,setPath:y,loadedImages:re,loadedFootages:_,destroy:b,getAsset:Bn,createImgData:p,createImageData:v,imageLoaded:u,footageLoaded:f,setCacheType:vn},Fn}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(u,f){if(this._cbs[u])for(var h=this._cbs[u],d=0;d<h.length;d+=1)h[d](f)},addEventListener:function(u,f){return this._cbs[u]||(this._cbs[u]=[]),this._cbs[u].push(f),(function(){this.removeEventListener(u,f)}).bind(this)},removeEventListener:function(u,f){if(!f)this._cbs[u]=null;else if(this._cbs[u]){for(var h=0,d=this._cbs[u].length;h<d;)this._cbs[u][h]===f&&(this._cbs[u].splice(h,1),h-=1,d-=1),h+=1;this._cbs[u].length||(this._cbs[u]=null)}}};var markerParser=function(){function c(u){for(var f=u.split(`\r
|
|
123
|
+
`),h={},d,v=0,p=0;p<f.length;p+=1)d=f[p].split(":"),d.length===2&&(h[d[0]]=d[1].trim(),v+=1);if(v===0)throw new Error;return h}return function(u){for(var f=[],h=0;h<u.length;h+=1){var d=u[h],v={time:d.tm,duration:d.dr};try{v.payload=JSON.parse(u[h].cm)}catch{try{v.payload=c(u[h].cm)}catch{v.payload={name:u[h].cm}}}f.push(v)}return f}}(),ProjectInterface=function(){function c(u){this.compositions.push(u)}return function(){function u(f){for(var h=0,d=this.compositions.length;h<d;){if(this.compositions[h].data&&this.compositions[h].data.nm===f)return this.compositions[h].prepareFrame&&this.compositions[h].data.xt&&this.compositions[h].prepareFrame(this.currentFrame),this.compositions[h].compInterface;h+=1}return null}return u.compositions=[],u.currentFrame=0,u.registerComposition=c,u}}(),renderers={},registerRenderer=function(u,f){renderers[u]=f};function getRenderer(c){return renderers[c]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var c in renderers)if(renderers[c])return c;return""}function _typeof$4(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(f){return typeof f}:_typeof$4=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$4(c)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(c){(c.wrapper||c.container)&&(this.wrapper=c.wrapper||c.container);var u="svg";c.animType?u=c.animType:c.renderer&&(u=c.renderer);var f=getRenderer(u);this.renderer=new f(this,c.rendererSettings),this.imagePreloader.setCacheType(u,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=u,c.loop===""||c.loop===null||c.loop===void 0||c.loop===!0?this.loop=!0:c.loop===!1?this.loop=!1:this.loop=parseInt(c.loop,10),this.autoplay="autoplay"in c?c.autoplay:!0,this.name=c.name?c.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(c,"autoloadSegments")?c.autoloadSegments:!0,this.assetsPath=c.assetsPath,this.initialSegment=c.initialSegment,c.audioFactory&&this.audioController.setAudioFactory(c.audioFactory),c.animationData?this.setupAnimation(c.animationData):c.path&&(c.path.lastIndexOf("\\")!==-1?this.path=c.path.substr(0,c.path.lastIndexOf("\\")+1):this.path=c.path.substr(0,c.path.lastIndexOf("/")+1),this.fileName=c.path.substr(c.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(c.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(c){dataManager.completeAnimation(c,this.configAnimation)},AnimationItem.prototype.setData=function(c,u){u&&_typeof$4(u)!=="object"&&(u=JSON.parse(u));var f={wrapper:c,animationData:u},h=c.attributes;f.path=h.getNamedItem("data-animation-path")?h.getNamedItem("data-animation-path").value:h.getNamedItem("data-bm-path")?h.getNamedItem("data-bm-path").value:h.getNamedItem("bm-path")?h.getNamedItem("bm-path").value:"",f.animType=h.getNamedItem("data-anim-type")?h.getNamedItem("data-anim-type").value:h.getNamedItem("data-bm-type")?h.getNamedItem("data-bm-type").value:h.getNamedItem("bm-type")?h.getNamedItem("bm-type").value:h.getNamedItem("data-bm-renderer")?h.getNamedItem("data-bm-renderer").value:h.getNamedItem("bm-renderer")?h.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var d=h.getNamedItem("data-anim-loop")?h.getNamedItem("data-anim-loop").value:h.getNamedItem("data-bm-loop")?h.getNamedItem("data-bm-loop").value:h.getNamedItem("bm-loop")?h.getNamedItem("bm-loop").value:"";d==="false"?f.loop=!1:d==="true"?f.loop=!0:d!==""&&(f.loop=parseInt(d,10));var v=h.getNamedItem("data-anim-autoplay")?h.getNamedItem("data-anim-autoplay").value:h.getNamedItem("data-bm-autoplay")?h.getNamedItem("data-bm-autoplay").value:h.getNamedItem("bm-autoplay")?h.getNamedItem("bm-autoplay").value:!0;f.autoplay=v!=="false",f.name=h.getNamedItem("data-name")?h.getNamedItem("data-name").value:h.getNamedItem("data-bm-name")?h.getNamedItem("data-bm-name").value:h.getNamedItem("bm-name")?h.getNamedItem("bm-name").value:"";var p=h.getNamedItem("data-anim-prerender")?h.getNamedItem("data-anim-prerender").value:h.getNamedItem("data-bm-prerender")?h.getNamedItem("data-bm-prerender").value:h.getNamedItem("bm-prerender")?h.getNamedItem("bm-prerender").value:"";p==="false"&&(f.prerender=!1),f.path?this.setParams(f):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(c){c.op>this.animationData.op&&(this.animationData.op=c.op,this.totalFrames=Math.floor(c.op-this.animationData.ip));var u=this.animationData.layers,f,h=u.length,d=c.layers,v,p=d.length;for(v=0;v<p;v+=1)for(f=0;f<h;){if(u[f].id===d[v].id){u[f]=d[v];break}f+=1}if((c.chars||c.fonts)&&(this.renderer.globalData.fontManager.addChars(c.chars),this.renderer.globalData.fontManager.addFonts(c.fonts,this.renderer.globalData.defs)),c.assets)for(h=c.assets.length,f=0;f<h;f+=1)this.animationData.assets.push(c.assets[f]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(c){this.animationData=c;var u=getExpressionsPlugin();u&&u.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var c=this.animationData.segments;if(!c||c.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var u=c.shift();this.timeCompleted=u.time*this.frameRate;var f=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(f,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var c=this.animationData.segments;c||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(c){if(this.renderer)try{this.animationData=c,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(c),c.assets||(c.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(c.assets),this.markers=markerParser(c.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(u){this.triggerConfigError(u)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var c=getExpressionsPlugin();c&&c.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(c,u){var f=typeof c=="number"?c:void 0,h=typeof u=="number"?u:void 0;this.renderer.updateContainerSize(f,h)},AnimationItem.prototype.setSubframe=function(c){this.isSubframeEnabled=!!c},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(c){this.triggerRenderFrameError(c)}},AnimationItem.prototype.play=function(c){c&&this.name!==c||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(c){c&&this.name!==c||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(c){c&&this.name!==c||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(c){c&&this.name!==c||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(c){for(var u,f=0;f<this.markers.length;f+=1)if(u=this.markers[f],u.payload&&u.payload.name===c)return u;return null},AnimationItem.prototype.goToAndStop=function(c,u,f){if(!(f&&this.name!==f)){var h=Number(c);if(isNaN(h)){var d=this.getMarkerData(c);d&&this.goToAndStop(d.time,!0)}else u?this.setCurrentRawFrameValue(c):this.setCurrentRawFrameValue(c*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(c,u,f){if(!(f&&this.name!==f)){var h=Number(c);if(isNaN(h)){var d=this.getMarkerData(c);d&&(d.duration?this.playSegments([d.time,d.time+d.duration],!0):this.goToAndStop(d.time,!0))}else this.goToAndStop(h,u,f);this.play()}},AnimationItem.prototype.advanceTime=function(c){if(!(this.isPaused===!0||this.isLoaded===!1)){var u=this.currentRawFrame+c*this.frameModifier,f=!1;u>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(u>this.totalFrames?u%this.totalFrames:0)||(f=!0,u=this.totalFrames-1):u>=this.totalFrames?(this.playCount+=1,this.checkSegments(u%this.totalFrames)||(this.setCurrentRawFrameValue(u%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(u):u<0?this.checkSegments(u%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+u%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(f=!0,u=0)):this.setCurrentRawFrameValue(u),f&&(this.setCurrentRawFrameValue(u),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(c,u){this.playCount=0,c[1]<c[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=c[0]-c[1],this.timeCompleted=this.totalFrames,this.firstFrame=c[1],this.setCurrentRawFrameValue(this.totalFrames-.001-u)):c[1]>c[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=c[1]-c[0],this.timeCompleted=this.totalFrames,this.firstFrame=c[0],this.setCurrentRawFrameValue(.001+u)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(c,u){var f=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<c?f=c:this.currentRawFrame+this.firstFrame>u&&(f=u-c)),this.firstFrame=c,this.totalFrames=u-c,this.timeCompleted=this.totalFrames,f!==-1&&this.goToAndStop(f,!0)},AnimationItem.prototype.playSegments=function(c,u){if(u&&(this.segments.length=0),_typeof$4(c[0])==="object"){var f,h=c.length;for(f=0;f<h;f+=1)this.segments.push(c[f])}else this.segments.push(c);this.segments.length&&u&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(c){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),c&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(c){return this.segments.length?(this.adjustSegment(this.segments.shift(),c),!0):!1},AnimationItem.prototype.destroy=function(c){c&&this.name!==c||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(c){this.currentRawFrame=c,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(c){this.playSpeed=c,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(c){this.playDirection=c<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(c){this.loop=c},AnimationItem.prototype.setVolume=function(c,u){u&&this.name!==u||this.audioController.setVolume(c)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(c){c&&this.name!==c||this.audioController.mute()},AnimationItem.prototype.unmute=function(c){c&&this.name!==c||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(c){var u="";if(c.e)u=c.p;else if(this.assetsPath){var f=c.p;f.indexOf("images/")!==-1&&(f=f.split("/")[1]),u=this.assetsPath+f}else u=this.path,u+=c.u?c.u:"",u+=c.p;return u},AnimationItem.prototype.getAssetData=function(c){for(var u=0,f=this.assets.length;u<f;){if(c===this.assets[u].id)return this.assets[u];u+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(c){return c?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(c,u,f){try{var h=this.renderer.getElementByPath(c);h.updateDocumentData(u,f)}catch{}},AnimationItem.prototype.trigger=function(c){if(this._cbs&&this._cbs[c])switch(c){case"enterFrame":this.triggerEvent(c,new BMEnterFrameEvent(c,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(c,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(c,new BMCompleteLoopEvent(c,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(c,new BMCompleteEvent(c,this.frameMult));break;case"segmentStart":this.triggerEvent(c,new BMSegmentStartEvent(c,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(c,new BMDestroyEvent(c,this));break;default:this.triggerEvent(c)}c==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(c,this.currentFrame,this.totalFrames,this.frameMult)),c==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(c,this.loop,this.playCount,this.frameMult)),c==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(c,this.frameMult)),c==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(c,this.firstFrame,this.totalFrames)),c==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(c,this))},AnimationItem.prototype.triggerRenderFrameError=function(c){var u=new BMRenderFrameErrorEvent(c,this.currentFrame);this.triggerEvent("error",u),this.onError&&this.onError.call(this,u)},AnimationItem.prototype.triggerConfigError=function(c){var u=new BMConfigErrorEvent(c,this.currentFrame);this.triggerEvent("error",u),this.onError&&this.onError.call(this,u)};var animationManager=function(){var c={},u=[],f=0,h=0,d=0,v=!0,p=!1;function m(Hn){for(var Yn=0,Rn=Hn.target;Yn<h;)u[Yn].animation===Rn&&(u.splice(Yn,1),Yn-=1,h-=1,Rn.isPaused||Bn()),Yn+=1}function g(Hn,Yn){if(!Hn)return null;for(var Rn=0;Rn<h;){if(u[Rn].elem===Hn&&u[Rn].elem!==null)return u[Rn].animation;Rn+=1}var Gn=new AnimationItem;return b(Gn,Hn),Gn.setData(Hn,Yn),Gn}function y(){var Hn,Yn=u.length,Rn=[];for(Hn=0;Hn<Yn;Hn+=1)Rn.push(u[Hn].animation);return Rn}function x(){d+=1,Jn()}function Bn(){d-=1}function b(Hn,Yn){Hn.addEventListener("destroy",m),Hn.addEventListener("_active",x),Hn.addEventListener("_idle",Bn),u.push({elem:Yn,animation:Hn}),h+=1}function re(Hn){var Yn=new AnimationItem;return b(Yn,null),Yn.setParams(Hn),Yn}function _(Hn,Yn){var Rn;for(Rn=0;Rn<h;Rn+=1)u[Rn].animation.setSpeed(Hn,Yn)}function vn(Hn,Yn){var Rn;for(Rn=0;Rn<h;Rn+=1)u[Rn].animation.setDirection(Hn,Yn)}function Fn(Hn){var Yn;for(Yn=0;Yn<h;Yn+=1)u[Yn].animation.play(Hn)}function Pn(Hn){var Yn=Hn-f,Rn;for(Rn=0;Rn<h;Rn+=1)u[Rn].animation.advanceTime(Yn);f=Hn,d&&!p?window.requestAnimationFrame(Pn):v=!0}function w(Hn){f=Hn,window.requestAnimationFrame(Pn)}function J(Hn){var Yn;for(Yn=0;Yn<h;Yn+=1)u[Yn].animation.pause(Hn)}function gn(Hn,Yn,Rn){var Gn;for(Gn=0;Gn<h;Gn+=1)u[Gn].animation.goToAndStop(Hn,Yn,Rn)}function Vn(Hn){var Yn;for(Yn=0;Yn<h;Yn+=1)u[Yn].animation.stop(Hn)}function zn(Hn){var Yn;for(Yn=0;Yn<h;Yn+=1)u[Yn].animation.togglePause(Hn)}function Wn(Hn){var Yn;for(Yn=h-1;Yn>=0;Yn-=1)u[Yn].animation.destroy(Hn)}function Un(Hn,Yn,Rn){var Gn=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Zn,qn=Gn.length;for(Zn=0;Zn<qn;Zn+=1)Rn&&Gn[Zn].setAttribute("data-bm-type",Rn),g(Gn[Zn],Hn);if(Yn&&qn===0){Rn||(Rn="svg");var nr=document.getElementsByTagName("body")[0];nr.innerText="";var or=createTag("div");or.style.width="100%",or.style.height="100%",or.setAttribute("data-bm-type",Rn),nr.appendChild(or),g(or,Hn)}}function er(){var Hn;for(Hn=0;Hn<h;Hn+=1)u[Hn].animation.resize()}function Jn(){!p&&d&&v&&(window.requestAnimationFrame(w),v=!1)}function tr(){p=!0}function Qn(){p=!1,Jn()}function ir(Hn,Yn){var Rn;for(Rn=0;Rn<h;Rn+=1)u[Rn].animation.setVolume(Hn,Yn)}function cr(Hn){var Yn;for(Yn=0;Yn<h;Yn+=1)u[Yn].animation.mute(Hn)}function Xn(Hn){var Yn;for(Yn=0;Yn<h;Yn+=1)u[Yn].animation.unmute(Hn)}return c.registerAnimation=g,c.loadAnimation=re,c.setSpeed=_,c.setDirection=vn,c.play=Fn,c.pause=J,c.stop=Vn,c.togglePause=zn,c.searchAnimations=Un,c.resize=er,c.goToAndStop=gn,c.destroy=Wn,c.freeze=tr,c.unfreeze=Qn,c.setVolume=ir,c.mute=cr,c.unmute=Xn,c.getRegisteredAnimations=y,c}(),BezierFactory=function(){var c={};c.getBezierEasing=f;var u={};function f(w,J,gn,Vn,zn){var Wn=zn||("bez_"+w+"_"+J+"_"+gn+"_"+Vn).replace(/\./g,"p");if(u[Wn])return u[Wn];var Un=new Pn([w,J,gn,Vn]);return u[Wn]=Un,Un}var h=4,d=.001,v=1e-7,p=10,m=11,g=1/(m-1),y=typeof Float32Array=="function";function x(w,J){return 1-3*J+3*w}function Bn(w,J){return 3*J-6*w}function b(w){return 3*w}function re(w,J,gn){return((x(J,gn)*w+Bn(J,gn))*w+b(J))*w}function _(w,J,gn){return 3*x(J,gn)*w*w+2*Bn(J,gn)*w+b(J)}function vn(w,J,gn,Vn,zn){var Wn,Un,er=0;do Un=J+(gn-J)/2,Wn=re(Un,Vn,zn)-w,Wn>0?gn=Un:J=Un;while(Math.abs(Wn)>v&&++er<p);return Un}function Fn(w,J,gn,Vn){for(var zn=0;zn<h;++zn){var Wn=_(J,gn,Vn);if(Wn===0)return J;var Un=re(J,gn,Vn)-w;J-=Un/Wn}return J}function Pn(w){this._p=w,this._mSampleValues=y?new Float32Array(m):new Array(m),this._precomputed=!1,this.get=this.get.bind(this)}return Pn.prototype={get:function(J){var gn=this._p[0],Vn=this._p[1],zn=this._p[2],Wn=this._p[3];return this._precomputed||this._precompute(),gn===Vn&&zn===Wn?J:J===0?0:J===1?1:re(this._getTForX(J),Vn,Wn)},_precompute:function(){var J=this._p[0],gn=this._p[1],Vn=this._p[2],zn=this._p[3];this._precomputed=!0,(J!==gn||Vn!==zn)&&this._calcSampleValues()},_calcSampleValues:function(){for(var J=this._p[0],gn=this._p[2],Vn=0;Vn<m;++Vn)this._mSampleValues[Vn]=re(Vn*g,J,gn)},_getTForX:function(J){for(var gn=this._p[0],Vn=this._p[2],zn=this._mSampleValues,Wn=0,Un=1,er=m-1;Un!==er&&zn[Un]<=J;++Un)Wn+=g;--Un;var Jn=(J-zn[Un])/(zn[Un+1]-zn[Un]),tr=Wn+Jn*g,Qn=_(tr,gn,Vn);return Qn>=d?Fn(J,tr,gn,Vn):Qn===0?tr:vn(J,Wn,Wn+g,gn,Vn)}},c}(),pooling=function(){function c(u){return u.concat(createSizedArray(u.length))}return{double:c}}(),poolFactory=function(){return function(c,u,f){var h=0,d=c,v=createSizedArray(d),p={newElement:m,release:g};function m(){var y;return h?(h-=1,y=v[h]):y=u(),y}function g(y){h===d&&(v=pooling.double(v),d*=2),f&&f(y),v[h]=y,h+=1}return p}}(),bezierLengthPool=function(){function c(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,c)}(),segmentsLengthPool=function(){function c(){return{lengths:[],totalLength:0}}function u(f){var h,d=f.lengths.length;for(h=0;h<d;h+=1)bezierLengthPool.release(f.lengths[h]);f.lengths.length=0}return poolFactory(8,c,u)}();function bezFunction(){var c=Math;function u(b,re,_,vn,Fn,Pn){var w=b*vn+re*Fn+_*Pn-Fn*vn-Pn*b-_*re;return w>-.001&&w<.001}function f(b,re,_,vn,Fn,Pn,w,J,gn){if(_===0&&Pn===0&&gn===0)return u(b,re,vn,Fn,w,J);var Vn=c.sqrt(c.pow(vn-b,2)+c.pow(Fn-re,2)+c.pow(Pn-_,2)),zn=c.sqrt(c.pow(w-b,2)+c.pow(J-re,2)+c.pow(gn-_,2)),Wn=c.sqrt(c.pow(w-vn,2)+c.pow(J-Fn,2)+c.pow(gn-Pn,2)),Un;return Vn>zn?Vn>Wn?Un=Vn-zn-Wn:Un=Wn-zn-Vn:Wn>zn?Un=Wn-zn-Vn:Un=zn-Vn-Wn,Un>-1e-4&&Un<1e-4}var h=function(){return function(b,re,_,vn){var Fn=getDefaultCurveSegments(),Pn,w,J,gn,Vn,zn=0,Wn,Un=[],er=[],Jn=bezierLengthPool.newElement();for(J=_.length,Pn=0;Pn<Fn;Pn+=1){for(Vn=Pn/(Fn-1),Wn=0,w=0;w<J;w+=1)gn=bmPow(1-Vn,3)*b[w]+3*bmPow(1-Vn,2)*Vn*_[w]+3*(1-Vn)*bmPow(Vn,2)*vn[w]+bmPow(Vn,3)*re[w],Un[w]=gn,er[w]!==null&&(Wn+=bmPow(Un[w]-er[w],2)),er[w]=Un[w];Wn&&(Wn=bmSqrt(Wn),zn+=Wn),Jn.percents[Pn]=Vn,Jn.lengths[Pn]=zn}return Jn.addedLength=zn,Jn}}();function d(b){var re=segmentsLengthPool.newElement(),_=b.c,vn=b.v,Fn=b.o,Pn=b.i,w,J=b._length,gn=re.lengths,Vn=0;for(w=0;w<J-1;w+=1)gn[w]=h(vn[w],vn[w+1],Fn[w],Pn[w+1]),Vn+=gn[w].addedLength;return _&&J&&(gn[w]=h(vn[w],vn[0],Fn[w],Pn[0]),Vn+=gn[w].addedLength),re.totalLength=Vn,re}function v(b){this.segmentLength=0,this.points=new Array(b)}function p(b,re){this.partialLength=b,this.point=re}var m=function(){var b={};return function(re,_,vn,Fn){var Pn=(re[0]+"_"+re[1]+"_"+_[0]+"_"+_[1]+"_"+vn[0]+"_"+vn[1]+"_"+Fn[0]+"_"+Fn[1]).replace(/\./g,"p");if(!b[Pn]){var w=getDefaultCurveSegments(),J,gn,Vn,zn,Wn,Un=0,er,Jn,tr=null;re.length===2&&(re[0]!==_[0]||re[1]!==_[1])&&u(re[0],re[1],_[0],_[1],re[0]+vn[0],re[1]+vn[1])&&u(re[0],re[1],_[0],_[1],_[0]+Fn[0],_[1]+Fn[1])&&(w=2);var Qn=new v(w);for(Vn=vn.length,J=0;J<w;J+=1){for(Jn=createSizedArray(Vn),Wn=J/(w-1),er=0,gn=0;gn<Vn;gn+=1)zn=bmPow(1-Wn,3)*re[gn]+3*bmPow(1-Wn,2)*Wn*(re[gn]+vn[gn])+3*(1-Wn)*bmPow(Wn,2)*(_[gn]+Fn[gn])+bmPow(Wn,3)*_[gn],Jn[gn]=zn,tr!==null&&(er+=bmPow(Jn[gn]-tr[gn],2));er=bmSqrt(er),Un+=er,Qn.points[J]=new p(er,Jn),tr=Jn}Qn.segmentLength=Un,b[Pn]=Qn}return b[Pn]}}();function g(b,re){var _=re.percents,vn=re.lengths,Fn=_.length,Pn=bmFloor((Fn-1)*b),w=b*re.addedLength,J=0;if(Pn===Fn-1||Pn===0||w===vn[Pn])return _[Pn];for(var gn=vn[Pn]>w?-1:1,Vn=!0;Vn;)if(vn[Pn]<=w&&vn[Pn+1]>w?(J=(w-vn[Pn])/(vn[Pn+1]-vn[Pn]),Vn=!1):Pn+=gn,Pn<0||Pn>=Fn-1){if(Pn===Fn-1)return _[Pn];Vn=!1}return _[Pn]+(_[Pn+1]-_[Pn])*J}function y(b,re,_,vn,Fn,Pn){var w=g(Fn,Pn),J=1-w,gn=c.round((J*J*J*b[0]+(w*J*J+J*w*J+J*J*w)*_[0]+(w*w*J+J*w*w+w*J*w)*vn[0]+w*w*w*re[0])*1e3)/1e3,Vn=c.round((J*J*J*b[1]+(w*J*J+J*w*J+J*J*w)*_[1]+(w*w*J+J*w*w+w*J*w)*vn[1]+w*w*w*re[1])*1e3)/1e3;return[gn,Vn]}var x=createTypedArray("float32",8);function Bn(b,re,_,vn,Fn,Pn,w){Fn<0?Fn=0:Fn>1&&(Fn=1);var J=g(Fn,w);Pn=Pn>1?1:Pn;var gn=g(Pn,w),Vn,zn=b.length,Wn=1-J,Un=1-gn,er=Wn*Wn*Wn,Jn=J*Wn*Wn*3,tr=J*J*Wn*3,Qn=J*J*J,ir=Wn*Wn*Un,cr=J*Wn*Un+Wn*J*Un+Wn*Wn*gn,Xn=J*J*Un+Wn*J*gn+J*Wn*gn,Hn=J*J*gn,Yn=Wn*Un*Un,Rn=J*Un*Un+Wn*gn*Un+Wn*Un*gn,Gn=J*gn*Un+Wn*gn*gn+J*Un*gn,Zn=J*gn*gn,qn=Un*Un*Un,nr=gn*Un*Un+Un*gn*Un+Un*Un*gn,or=gn*gn*Un+Un*gn*gn+gn*Un*gn,Kn=gn*gn*gn;for(Vn=0;Vn<zn;Vn+=1)x[Vn*4]=c.round((er*b[Vn]+Jn*_[Vn]+tr*vn[Vn]+Qn*re[Vn])*1e3)/1e3,x[Vn*4+1]=c.round((ir*b[Vn]+cr*_[Vn]+Xn*vn[Vn]+Hn*re[Vn])*1e3)/1e3,x[Vn*4+2]=c.round((Yn*b[Vn]+Rn*_[Vn]+Gn*vn[Vn]+Zn*re[Vn])*1e3)/1e3,x[Vn*4+3]=c.round((qn*b[Vn]+nr*_[Vn]+or*vn[Vn]+Kn*re[Vn])*1e3)/1e3;return x}return{getSegmentsLength:d,getNewSegment:Bn,getPointInSegment:y,buildBezierData:m,pointOnLine2D:u,pointOnLine3D:f}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(c,u){var f=this.offsetTime,h;this.propType==="multidimensional"&&(h=createTypedArray("float32",this.pv.length));for(var d=u.lastIndex,v=d,p=this.keyframes.length-1,m=!0,g,y,x;m;){if(g=this.keyframes[v],y=this.keyframes[v+1],v===p-1&&c>=y.t-f){g.h&&(g=y),d=0;break}if(y.t-f>c){d=v;break}v<p-1?v+=1:(d=0,m=!1)}x=this.keyframesMetadata[v]||{};var Bn,b,re,_,vn,Fn,Pn=y.t-f,w=g.t-f,J;if(g.to){x.bezierData||(x.bezierData=bez.buildBezierData(g.s,y.s||g.e,g.to,g.ti));var gn=x.bezierData;if(c>=Pn||c<w){var Vn=c>=Pn?gn.points.length-1:0;for(b=gn.points[Vn].point.length,Bn=0;Bn<b;Bn+=1)h[Bn]=gn.points[Vn].point[Bn]}else{x.__fnct?Fn=x.__fnct:(Fn=BezierFactory.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y,g.n).get,x.__fnct=Fn),re=Fn((c-w)/(Pn-w));var zn=gn.segmentLength*re,Wn,Un=u.lastFrame<c&&u._lastKeyframeIndex===v?u._lastAddedLength:0;for(vn=u.lastFrame<c&&u._lastKeyframeIndex===v?u._lastPoint:0,m=!0,_=gn.points.length;m;){if(Un+=gn.points[vn].partialLength,zn===0||re===0||vn===gn.points.length-1){for(b=gn.points[vn].point.length,Bn=0;Bn<b;Bn+=1)h[Bn]=gn.points[vn].point[Bn];break}else if(zn>=Un&&zn<Un+gn.points[vn+1].partialLength){for(Wn=(zn-Un)/gn.points[vn+1].partialLength,b=gn.points[vn].point.length,Bn=0;Bn<b;Bn+=1)h[Bn]=gn.points[vn].point[Bn]+(gn.points[vn+1].point[Bn]-gn.points[vn].point[Bn])*Wn;break}vn<_-1?vn+=1:m=!1}u._lastPoint=vn,u._lastAddedLength=Un-gn.points[vn].partialLength,u._lastKeyframeIndex=v}}else{var er,Jn,tr,Qn,ir;if(p=g.s.length,J=y.s||g.e,this.sh&&g.h!==1)if(c>=Pn)h[0]=J[0],h[1]=J[1],h[2]=J[2];else if(c<=w)h[0]=g.s[0],h[1]=g.s[1],h[2]=g.s[2];else{var cr=createQuaternion(g.s),Xn=createQuaternion(J),Hn=(c-w)/(Pn-w);quaternionToEuler(h,slerp(cr,Xn,Hn))}else for(v=0;v<p;v+=1)g.h!==1&&(c>=Pn?re=1:c<w?re=0:(g.o.x.constructor===Array?(x.__fnct||(x.__fnct=[]),x.__fnct[v]?Fn=x.__fnct[v]:(er=g.o.x[v]===void 0?g.o.x[0]:g.o.x[v],Jn=g.o.y[v]===void 0?g.o.y[0]:g.o.y[v],tr=g.i.x[v]===void 0?g.i.x[0]:g.i.x[v],Qn=g.i.y[v]===void 0?g.i.y[0]:g.i.y[v],Fn=BezierFactory.getBezierEasing(er,Jn,tr,Qn).get,x.__fnct[v]=Fn)):x.__fnct?Fn=x.__fnct:(er=g.o.x,Jn=g.o.y,tr=g.i.x,Qn=g.i.y,Fn=BezierFactory.getBezierEasing(er,Jn,tr,Qn).get,g.keyframeMetadata=Fn),re=Fn((c-w)/(Pn-w)))),J=y.s||g.e,ir=g.h===1?g.s[v]:g.s[v]+(J[v]-g.s[v])*re,this.propType==="multidimensional"?h[v]=ir:h=ir}return u.lastIndex=d,h}function slerp(c,u,f){var h=[],d=c[0],v=c[1],p=c[2],m=c[3],g=u[0],y=u[1],x=u[2],Bn=u[3],b,re,_,vn,Fn;return re=d*g+v*y+p*x+m*Bn,re<0&&(re=-re,g=-g,y=-y,x=-x,Bn=-Bn),1-re>1e-6?(b=Math.acos(re),_=Math.sin(b),vn=Math.sin((1-f)*b)/_,Fn=Math.sin(f*b)/_):(vn=1-f,Fn=f),h[0]=vn*d+Fn*g,h[1]=vn*v+Fn*y,h[2]=vn*p+Fn*x,h[3]=vn*m+Fn*Bn,h}function quaternionToEuler(c,u){var f=u[0],h=u[1],d=u[2],v=u[3],p=Math.atan2(2*h*v-2*f*d,1-2*h*h-2*d*d),m=Math.asin(2*f*h+2*d*v),g=Math.atan2(2*f*v-2*h*d,1-2*f*f-2*d*d);c[0]=p/degToRads,c[1]=m/degToRads,c[2]=g/degToRads}function createQuaternion(c){var u=c[0]*degToRads,f=c[1]*degToRads,h=c[2]*degToRads,d=Math.cos(u/2),v=Math.cos(f/2),p=Math.cos(h/2),m=Math.sin(u/2),g=Math.sin(f/2),y=Math.sin(h/2),x=d*v*p-m*g*y,Bn=m*g*p+d*v*y,b=m*v*p+d*g*y,re=d*g*p-m*v*y;return[Bn,b,re,x]}function getValueAtCurrentTime(){var c=this.comp.renderedFrame-this.offsetTime,u=this.keyframes[0].t-this.offsetTime,f=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(c===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=f&&c>=f||this._caching.lastFrame<u&&c<u))){this._caching.lastFrame>=c&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var h=this.interpolateValue(c,this._caching);this.pv=h}return this._caching.lastFrame=c,this.pv}function setVValue(c){var u;if(this.propType==="unidimensional")u=c*this.mult,mathAbs(this.v-u)>1e-5&&(this.v=u,this._mdf=!0);else for(var f=0,h=this.v.length;f<h;)u=c[f]*this.mult,mathAbs(this.v[f]-u)>1e-5&&(this.v[f]=u,this._mdf=!0),f+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var c,u=this.effectsSequence.length,f=this.kf?this.pv:this.data.k;for(c=0;c<u;c+=1)f=this.effectsSequence[c](f);this.setVValue(f),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(c){this.effectsSequence.push(c),this.container.addDynamicProperty(this)}function ValueProperty(c,u,f,h){this.propType="unidimensional",this.mult=f||1,this.data=u,this.v=f?u.k*f:u.k,this.pv=u.k,this._mdf=!1,this.elem=c,this.container=h,this.comp=c.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(c,u,f,h){this.propType="multidimensional",this.mult=f||1,this.data=u,this._mdf=!1,this.elem=c,this.container=h,this.comp=c.comp,this.k=!1,this.kf=!1,this.frameId=-1;var d,v=u.k.length;for(this.v=createTypedArray("float32",v),this.pv=createTypedArray("float32",v),this.vel=createTypedArray("float32",v),d=0;d<v;d+=1)this.v[d]=u.k[d]*this.mult,this.pv[d]=u.k[d];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(c,u,f,h){this.propType="unidimensional",this.keyframes=u.k,this.keyframesMetadata=[],this.offsetTime=c.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=u,this.mult=f||1,this.elem=c,this.container=h,this.comp=c.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(c,u,f,h){this.propType="multidimensional";var d,v=u.k.length,p,m,g,y;for(d=0;d<v-1;d+=1)u.k[d].to&&u.k[d].s&&u.k[d+1]&&u.k[d+1].s&&(p=u.k[d].s,m=u.k[d+1].s,g=u.k[d].to,y=u.k[d].ti,(p.length===2&&!(p[0]===m[0]&&p[1]===m[1])&&bez.pointOnLine2D(p[0],p[1],m[0],m[1],p[0]+g[0],p[1]+g[1])&&bez.pointOnLine2D(p[0],p[1],m[0],m[1],m[0]+y[0],m[1]+y[1])||p.length===3&&!(p[0]===m[0]&&p[1]===m[1]&&p[2]===m[2])&&bez.pointOnLine3D(p[0],p[1],p[2],m[0],m[1],m[2],p[0]+g[0],p[1]+g[1],p[2]+g[2])&&bez.pointOnLine3D(p[0],p[1],p[2],m[0],m[1],m[2],m[0]+y[0],m[1]+y[1],m[2]+y[2]))&&(u.k[d].to=null,u.k[d].ti=null),p[0]===m[0]&&p[1]===m[1]&&g[0]===0&&g[1]===0&&y[0]===0&&y[1]===0&&(p.length===2||p[2]===m[2]&&g[2]===0&&y[2]===0)&&(u.k[d].to=null,u.k[d].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=u,this.keyframes=u.k,this.keyframesMetadata=[],this.offsetTime=c.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=f||1,this.elem=c,this.container=h,this.comp=c.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var x=u.k[0].s.length;for(this.v=createTypedArray("float32",x),this.pv=createTypedArray("float32",x),d=0;d<x;d+=1)this.v[d]=initFrame,this.pv[d]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",x)},this.addEffect=addEffect}var PropertyFactory=function(){function c(f,h,d,v,p){h.sid&&(h=f.globalData.slotManager.getProp(h));var m;if(!h.k.length)m=new ValueProperty(f,h,v,p);else if(typeof h.k[0]=="number")m=new MultiDimensionalProperty(f,h,v,p);else switch(d){case 0:m=new KeyframedValueProperty(f,h,v,p);break;case 1:m=new KeyframedMultidimensionalProperty(f,h,v,p);break}return m.effectsSequence.length&&p.addDynamicProperty(m),m}var u={getProp:c};return u}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(u){this.dynamicProperties.indexOf(u)===-1&&(this.dynamicProperties.push(u),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var u,f=this.dynamicProperties.length;for(u=0;u<f;u+=1)this.dynamicProperties[u].getValue(),this.dynamicProperties[u]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(u){this.container=u,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function c(){return createTypedArray("float32",2)}return poolFactory(8,c)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(c,u){this.c=c,this.setLength(u);for(var f=0;f<u;)this.v[f]=pointPool.newElement(),this.o[f]=pointPool.newElement(),this.i[f]=pointPool.newElement(),f+=1},ShapePath.prototype.setLength=function(c){for(;this._maxLength<c;)this.doubleArrayLength();this._length=c},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(c,u,f,h,d){var v;switch(this._length=Math.max(this._length,h+1),this._length>=this._maxLength&&this.doubleArrayLength(),f){case"v":v=this.v;break;case"i":v=this.i;break;case"o":v=this.o;break;default:v=[];break}(!v[h]||v[h]&&!d)&&(v[h]=pointPool.newElement()),v[h][0]=c,v[h][1]=u},ShapePath.prototype.setTripleAt=function(c,u,f,h,d,v,p,m){this.setXYAt(c,u,"v",p,m),this.setXYAt(f,h,"o",p,m),this.setXYAt(d,v,"i",p,m)},ShapePath.prototype.reverse=function(){var c=new ShapePath;c.setPathData(this.c,this._length);var u=this.v,f=this.o,h=this.i,d=0;this.c&&(c.setTripleAt(u[0][0],u[0][1],h[0][0],h[0][1],f[0][0],f[0][1],0,!1),d=1);var v=this._length-1,p=this._length,m;for(m=d;m<p;m+=1)c.setTripleAt(u[v][0],u[v][1],h[v][0],h[v][1],f[v][0],f[v][1],m,!1),v-=1;return c},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function c(){return new ShapePath}function u(d){var v=d._length,p;for(p=0;p<v;p+=1)pointPool.release(d.v[p]),pointPool.release(d.i[p]),pointPool.release(d.o[p]),d.v[p]=null,d.i[p]=null,d.o[p]=null;d._length=0,d.c=!1}function f(d){var v=h.newElement(),p,m=d._length===void 0?d.v.length:d._length;for(v.setLength(m),v.c=d.c,p=0;p<m;p+=1)v.setTripleAt(d.v[p][0],d.v[p][1],d.o[p][0],d.o[p][1],d.i[p][0],d.i[p][1],p);return v}var h=poolFactory(4,c,u);return h.clone=f,h}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(c){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=c,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var c;for(c=0;c<this._length;c+=1)shapePool.release(this.shapes[c]);this._length=0};var shapeCollectionPool=function(){var c={newShapeCollection:d,release:v},u=0,f=4,h=createSizedArray(f);function d(){var p;return u?(u-=1,p=h[u]):p=new ShapeCollection,p}function v(p){var m,g=p._length;for(m=0;m<g;m+=1)shapePool.release(p.shapes[m]);p._length=0,u===f&&(h=pooling.double(h),f*=2),h[u]=p,u+=1}return c}(),ShapePropertyFactory=function(){var c=-999999;function u(Pn,w,J){var gn=J.lastIndex,Vn,zn,Wn,Un,er,Jn,tr,Qn,ir,cr=this.keyframes;if(Pn<cr[0].t-this.offsetTime)Vn=cr[0].s[0],Wn=!0,gn=0;else if(Pn>=cr[cr.length-1].t-this.offsetTime)Vn=cr[cr.length-1].s?cr[cr.length-1].s[0]:cr[cr.length-2].e[0],Wn=!0;else{for(var Xn=gn,Hn=cr.length-1,Yn=!0,Rn,Gn,Zn;Yn&&(Rn=cr[Xn],Gn=cr[Xn+1],!(Gn.t-this.offsetTime>Pn));)Xn<Hn-1?Xn+=1:Yn=!1;if(Zn=this.keyframesMetadata[Xn]||{},Wn=Rn.h===1,gn=Xn,!Wn){if(Pn>=Gn.t-this.offsetTime)Qn=1;else if(Pn<Rn.t-this.offsetTime)Qn=0;else{var qn;Zn.__fnct?qn=Zn.__fnct:(qn=BezierFactory.getBezierEasing(Rn.o.x,Rn.o.y,Rn.i.x,Rn.i.y).get,Zn.__fnct=qn),Qn=qn((Pn-(Rn.t-this.offsetTime))/(Gn.t-this.offsetTime-(Rn.t-this.offsetTime)))}zn=Gn.s?Gn.s[0]:Rn.e[0]}Vn=Rn.s[0]}for(Jn=w._length,tr=Vn.i[0].length,J.lastIndex=gn,Un=0;Un<Jn;Un+=1)for(er=0;er<tr;er+=1)ir=Wn?Vn.i[Un][er]:Vn.i[Un][er]+(zn.i[Un][er]-Vn.i[Un][er])*Qn,w.i[Un][er]=ir,ir=Wn?Vn.o[Un][er]:Vn.o[Un][er]+(zn.o[Un][er]-Vn.o[Un][er])*Qn,w.o[Un][er]=ir,ir=Wn?Vn.v[Un][er]:Vn.v[Un][er]+(zn.v[Un][er]-Vn.v[Un][er])*Qn,w.v[Un][er]=ir}function f(){var Pn=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,J=this.keyframes[this.keyframes.length-1].t-this.offsetTime,gn=this._caching.lastFrame;return gn!==c&&(gn<w&&Pn<w||gn>J&&Pn>J)||(this._caching.lastIndex=gn<Pn?this._caching.lastIndex:0,this.interpolateShape(Pn,this.pv,this._caching)),this._caching.lastFrame=Pn,this.pv}function h(){this.paths=this.localShapeCollection}function d(Pn,w){if(Pn._length!==w._length||Pn.c!==w.c)return!1;var J,gn=Pn._length;for(J=0;J<gn;J+=1)if(Pn.v[J][0]!==w.v[J][0]||Pn.v[J][1]!==w.v[J][1]||Pn.o[J][0]!==w.o[J][0]||Pn.o[J][1]!==w.o[J][1]||Pn.i[J][0]!==w.i[J][0]||Pn.i[J][1]!==w.i[J][1])return!1;return!0}function v(Pn){d(this.v,Pn)||(this.v=shapePool.clone(Pn),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function p(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var Pn;this.kf?Pn=this.pv:this.data.ks?Pn=this.data.ks.k:Pn=this.data.pt.k;var w,J=this.effectsSequence.length;for(w=0;w<J;w+=1)Pn=this.effectsSequence[w](Pn);this.setVValue(Pn),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function m(Pn,w,J){this.propType="shape",this.comp=Pn.comp,this.container=Pn,this.elem=Pn,this.data=w,this.k=!1,this.kf=!1,this._mdf=!1;var gn=J===3?w.pt.k:w.ks.k;this.v=shapePool.clone(gn),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=h,this.effectsSequence=[]}function g(Pn){this.effectsSequence.push(Pn),this.container.addDynamicProperty(this)}m.prototype.interpolateShape=u,m.prototype.getValue=p,m.prototype.setVValue=v,m.prototype.addEffect=g;function y(Pn,w,J){this.propType="shape",this.comp=Pn.comp,this.elem=Pn,this.container=Pn,this.offsetTime=Pn.data.st,this.keyframes=J===3?w.pt.k:w.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var gn=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,gn),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=c,this.reset=h,this._caching={lastFrame:c,lastIndex:0},this.effectsSequence=[f.bind(this)]}y.prototype.getValue=p,y.prototype.interpolateShape=u,y.prototype.setVValue=v,y.prototype.addEffect=g;var x=function(){var Pn=roundCorner;function w(J,gn){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=gn.d,this.elem=J,this.comp=J.comp,this.frameId=-1,this.initDynamicPropertyContainer(J),this.p=PropertyFactory.getProp(J,gn.p,1,0,this),this.s=PropertyFactory.getProp(J,gn.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return w.prototype={reset:h,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var gn=this.p.v[0],Vn=this.p.v[1],zn=this.s.v[0]/2,Wn=this.s.v[1]/2,Un=this.d!==3,er=this.v;er.v[0][0]=gn,er.v[0][1]=Vn-Wn,er.v[1][0]=Un?gn+zn:gn-zn,er.v[1][1]=Vn,er.v[2][0]=gn,er.v[2][1]=Vn+Wn,er.v[3][0]=Un?gn-zn:gn+zn,er.v[3][1]=Vn,er.i[0][0]=Un?gn-zn*Pn:gn+zn*Pn,er.i[0][1]=Vn-Wn,er.i[1][0]=Un?gn+zn:gn-zn,er.i[1][1]=Vn-Wn*Pn,er.i[2][0]=Un?gn+zn*Pn:gn-zn*Pn,er.i[2][1]=Vn+Wn,er.i[3][0]=Un?gn-zn:gn+zn,er.i[3][1]=Vn+Wn*Pn,er.o[0][0]=Un?gn+zn*Pn:gn-zn*Pn,er.o[0][1]=Vn-Wn,er.o[1][0]=Un?gn+zn:gn-zn,er.o[1][1]=Vn+Wn*Pn,er.o[2][0]=Un?gn-zn*Pn:gn+zn*Pn,er.o[2][1]=Vn+Wn,er.o[3][0]=Un?gn-zn:gn+zn,er.o[3][1]=Vn-Wn*Pn}},extendPrototype([DynamicPropertyContainer],w),w}(),Bn=function(){function Pn(w,J){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=w,this.comp=w.comp,this.data=J,this.frameId=-1,this.d=J.d,this.initDynamicPropertyContainer(w),J.sy===1?(this.ir=PropertyFactory.getProp(w,J.ir,0,0,this),this.is=PropertyFactory.getProp(w,J.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(w,J.pt,0,0,this),this.p=PropertyFactory.getProp(w,J.p,1,0,this),this.r=PropertyFactory.getProp(w,J.r,0,degToRads,this),this.or=PropertyFactory.getProp(w,J.or,0,0,this),this.os=PropertyFactory.getProp(w,J.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return Pn.prototype={reset:h,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var J=Math.floor(this.pt.v)*2,gn=Math.PI*2/J,Vn=!0,zn=this.or.v,Wn=this.ir.v,Un=this.os.v,er=this.is.v,Jn=2*Math.PI*zn/(J*2),tr=2*Math.PI*Wn/(J*2),Qn,ir,cr,Xn,Hn=-Math.PI/2;Hn+=this.r.v;var Yn=this.data.d===3?-1:1;for(this.v._length=0,Qn=0;Qn<J;Qn+=1){ir=Vn?zn:Wn,cr=Vn?Un:er,Xn=Vn?Jn:tr;var Rn=ir*Math.cos(Hn),Gn=ir*Math.sin(Hn),Zn=Rn===0&&Gn===0?0:Gn/Math.sqrt(Rn*Rn+Gn*Gn),qn=Rn===0&&Gn===0?0:-Rn/Math.sqrt(Rn*Rn+Gn*Gn);Rn+=+this.p.v[0],Gn+=+this.p.v[1],this.v.setTripleAt(Rn,Gn,Rn-Zn*Xn*cr*Yn,Gn-qn*Xn*cr*Yn,Rn+Zn*Xn*cr*Yn,Gn+qn*Xn*cr*Yn,Qn,!0),Vn=!Vn,Hn+=gn*Yn}},convertPolygonToPath:function(){var J=Math.floor(this.pt.v),gn=Math.PI*2/J,Vn=this.or.v,zn=this.os.v,Wn=2*Math.PI*Vn/(J*4),Un,er=-Math.PI*.5,Jn=this.data.d===3?-1:1;for(er+=this.r.v,this.v._length=0,Un=0;Un<J;Un+=1){var tr=Vn*Math.cos(er),Qn=Vn*Math.sin(er),ir=tr===0&&Qn===0?0:Qn/Math.sqrt(tr*tr+Qn*Qn),cr=tr===0&&Qn===0?0:-tr/Math.sqrt(tr*tr+Qn*Qn);tr+=+this.p.v[0],Qn+=+this.p.v[1],this.v.setTripleAt(tr,Qn,tr-ir*Wn*zn*Jn,Qn-cr*Wn*zn*Jn,tr+ir*Wn*zn*Jn,Qn+cr*Wn*zn*Jn,Un,!0),er+=gn*Jn}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],Pn),Pn}(),b=function(){function Pn(w,J){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=w,this.comp=w.comp,this.frameId=-1,this.d=J.d,this.initDynamicPropertyContainer(w),this.p=PropertyFactory.getProp(w,J.p,1,0,this),this.s=PropertyFactory.getProp(w,J.s,1,0,this),this.r=PropertyFactory.getProp(w,J.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return Pn.prototype={convertRectToPath:function(){var J=this.p.v[0],gn=this.p.v[1],Vn=this.s.v[0]/2,zn=this.s.v[1]/2,Wn=bmMin(Vn,zn,this.r.v),Un=Wn*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(J+Vn,gn-zn+Wn,J+Vn,gn-zn+Wn,J+Vn,gn-zn+Un,0,!0),this.v.setTripleAt(J+Vn,gn+zn-Wn,J+Vn,gn+zn-Un,J+Vn,gn+zn-Wn,1,!0),Wn!==0?(this.v.setTripleAt(J+Vn-Wn,gn+zn,J+Vn-Wn,gn+zn,J+Vn-Un,gn+zn,2,!0),this.v.setTripleAt(J-Vn+Wn,gn+zn,J-Vn+Un,gn+zn,J-Vn+Wn,gn+zn,3,!0),this.v.setTripleAt(J-Vn,gn+zn-Wn,J-Vn,gn+zn-Wn,J-Vn,gn+zn-Un,4,!0),this.v.setTripleAt(J-Vn,gn-zn+Wn,J-Vn,gn-zn+Un,J-Vn,gn-zn+Wn,5,!0),this.v.setTripleAt(J-Vn+Wn,gn-zn,J-Vn+Wn,gn-zn,J-Vn+Un,gn-zn,6,!0),this.v.setTripleAt(J+Vn-Wn,gn-zn,J+Vn-Un,gn-zn,J+Vn-Wn,gn-zn,7,!0)):(this.v.setTripleAt(J-Vn,gn+zn,J-Vn+Un,gn+zn,J-Vn,gn+zn,2),this.v.setTripleAt(J-Vn,gn-zn,J-Vn,gn-zn+Un,J-Vn,gn-zn,3))):(this.v.setTripleAt(J+Vn,gn-zn+Wn,J+Vn,gn-zn+Un,J+Vn,gn-zn+Wn,0,!0),Wn!==0?(this.v.setTripleAt(J+Vn-Wn,gn-zn,J+Vn-Wn,gn-zn,J+Vn-Un,gn-zn,1,!0),this.v.setTripleAt(J-Vn+Wn,gn-zn,J-Vn+Un,gn-zn,J-Vn+Wn,gn-zn,2,!0),this.v.setTripleAt(J-Vn,gn-zn+Wn,J-Vn,gn-zn+Wn,J-Vn,gn-zn+Un,3,!0),this.v.setTripleAt(J-Vn,gn+zn-Wn,J-Vn,gn+zn-Un,J-Vn,gn+zn-Wn,4,!0),this.v.setTripleAt(J-Vn+Wn,gn+zn,J-Vn+Wn,gn+zn,J-Vn+Un,gn+zn,5,!0),this.v.setTripleAt(J+Vn-Wn,gn+zn,J+Vn-Un,gn+zn,J+Vn-Wn,gn+zn,6,!0),this.v.setTripleAt(J+Vn,gn+zn-Wn,J+Vn,gn+zn-Wn,J+Vn,gn+zn-Un,7,!0)):(this.v.setTripleAt(J-Vn,gn-zn,J-Vn+Un,gn-zn,J-Vn,gn-zn,1,!0),this.v.setTripleAt(J-Vn,gn+zn,J-Vn,gn+zn-Un,J-Vn,gn+zn,2,!0),this.v.setTripleAt(J+Vn,gn+zn,J+Vn-Un,gn+zn,J+Vn,gn+zn,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:h},extendPrototype([DynamicPropertyContainer],Pn),Pn}();function re(Pn,w,J){var gn;if(J===3||J===4){var Vn=J===3?w.pt:w.ks,zn=Vn.k;zn.length?gn=new y(Pn,w,J):gn=new m(Pn,w,J)}else J===5?gn=new b(Pn,w):J===6?gn=new x(Pn,w):J===7&&(gn=new Bn(Pn,w));return gn.k&&Pn.addDynamicProperty(gn),gn}function _(){return m}function vn(){return y}var Fn={};return Fn.getShapeProp=re,Fn.getConstructorFunction=_,Fn.getKeyframedConstructorFunction=vn,Fn}();/*!
|
|
124
124
|
Transformation Matrix v2.0
|
|
125
125
|
(c) Epistemex 2014-2015
|
|
126
126
|
www.epistemex.com
|
|
127
127
|
By Ken Fyrstenberg
|
|
128
128
|
Contributions by leeoniya.
|
|
129
129
|
License: MIT, header required.
|
|
130
|
-
*/var Matrix=function(){var c=Math.cos,u=Math.sin,f=Math.tan,h=Math.round;function d(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function v(Vn){if(Vn===0)return this;var Gn=c(Vn),Zn=u(Vn);return this._t(Gn,-Zn,0,0,Zn,Gn,0,0,0,0,1,0,0,0,0,1)}function p(Vn){if(Vn===0)return this;var Gn=c(Vn),Zn=u(Vn);return this._t(1,0,0,0,0,Gn,-Zn,0,0,Zn,Gn,0,0,0,0,1)}function m(Vn){if(Vn===0)return this;var Gn=c(Vn),Zn=u(Vn);return this._t(Gn,0,Zn,0,0,1,0,0,-Zn,0,Gn,0,0,0,0,1)}function g(Vn){if(Vn===0)return this;var Gn=c(Vn),Zn=u(Vn);return this._t(Gn,-Zn,0,0,Zn,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 x(Vn,Gn){return this.shear(f(Vn),f(Gn))}function Pn(Vn,Gn){var Zn=c(Gn),qn=u(Gn);return this._t(Zn,qn,0,0,-qn,Zn,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(Zn,-qn,0,0,qn,Zn,0,0,0,0,1,0,0,0,0,1)}function b(Vn,Gn,Zn){return!Zn&&Zn!==0&&(Zn=1),Vn===1&&Gn===1&&Zn===1?this:this._t(Vn,0,0,0,0,Gn,0,0,0,0,Zn,0,0,0,0,1)}function vn(Vn,Gn,Zn,qn,er,ir,Kn,or,cr,hr,dr,lr,fr,mr,pr,gr){return this.props[0]=Vn,this.props[1]=Gn,this.props[2]=Zn,this.props[3]=qn,this.props[4]=er,this.props[5]=ir,this.props[6]=Kn,this.props[7]=or,this.props[8]=cr,this.props[9]=hr,this.props[10]=dr,this.props[11]=lr,this.props[12]=fr,this.props[13]=mr,this.props[14]=pr,this.props[15]=gr,this}function _(Vn,Gn,Zn){return Zn=Zn||0,Vn!==0||Gn!==0||Zn!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Vn,Gn,Zn,1):this}function re(Vn,Gn,Zn,qn,er,ir,Kn,or,cr,hr,dr,lr,fr,mr,pr,gr){var ur=this.props;if(Vn===1&&Gn===0&&Zn===0&&qn===0&&er===0&&ir===1&&Kn===0&&or===0&&cr===0&&hr===0&&dr===1&&lr===0)return ur[12]=ur[12]*Vn+ur[15]*fr,ur[13]=ur[13]*ir+ur[15]*mr,ur[14]=ur[14]*dr+ur[15]*pr,ur[15]*=gr,this._identityCalculated=!1,this;var vr=ur[0],yr=ur[1],xr=ur[2],Cr=ur[3],Er=ur[4],_r=ur[5],kr=ur[6],Br=ur[7],Ir=ur[8],Fr=ur[9],Nr=ur[10],Rr=ur[11],Or=ur[12],jr=ur[13],Ur=ur[14],Gr=ur[15];return ur[0]=vr*Vn+yr*er+xr*cr+Cr*fr,ur[1]=vr*Gn+yr*ir+xr*hr+Cr*mr,ur[2]=vr*Zn+yr*Kn+xr*dr+Cr*pr,ur[3]=vr*qn+yr*or+xr*lr+Cr*gr,ur[4]=Er*Vn+_r*er+kr*cr+Br*fr,ur[5]=Er*Gn+_r*ir+kr*hr+Br*mr,ur[6]=Er*Zn+_r*Kn+kr*dr+Br*pr,ur[7]=Er*qn+_r*or+kr*lr+Br*gr,ur[8]=Ir*Vn+Fr*er+Nr*cr+Rr*fr,ur[9]=Ir*Gn+Fr*ir+Nr*hr+Rr*mr,ur[10]=Ir*Zn+Fr*Kn+Nr*dr+Rr*pr,ur[11]=Ir*qn+Fr*or+Nr*lr+Rr*gr,ur[12]=Or*Vn+jr*er+Ur*cr+Gr*fr,ur[13]=Or*Gn+jr*ir+Ur*hr+Gr*mr,ur[14]=Or*Zn+jr*Kn+Ur*dr+Gr*pr,ur[15]=Or*qn+jr*or+Ur*lr+Gr*gr,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 w(Vn){for(var Gn=0;Gn<16;){if(Vn.props[Gn]!==this.props[Gn])return!1;Gn+=1}return!0}function J(Vn){var Gn;for(Gn=0;Gn<16;Gn+=1)Vn.props[Gn]=this.props[Gn];return Vn}function gn(Vn){var Gn;for(Gn=0;Gn<16;Gn+=1)this.props[Gn]=Vn[Gn]}function Rn(Vn,Gn,Zn){return{x:Vn*this.props[0]+Gn*this.props[4]+Zn*this.props[8]+this.props[12],y:Vn*this.props[1]+Gn*this.props[5]+Zn*this.props[9]+this.props[13],z:Vn*this.props[2]+Gn*this.props[6]+Zn*this.props[10]+this.props[14]}}function zn(Vn,Gn,Zn){return Vn*this.props[0]+Gn*this.props[4]+Zn*this.props[8]+this.props[12]}function Wn(Vn,Gn,Zn){return Vn*this.props[1]+Gn*this.props[5]+Zn*this.props[9]+this.props[13]}function Un(Vn,Gn,Zn){return Vn*this.props[2]+Gn*this.props[6]+Zn*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,Zn=-this.props[1]/Vn,qn=-this.props[4]/Vn,er=this.props[0]/Vn,ir=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/Vn,Kn=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/Vn,or=new Matrix;return or.props[0]=Gn,or.props[1]=Zn,or.props[4]=qn,or.props[5]=er,or.props[12]=ir,or.props[13]=Kn,or}function Jn(Vn){var Gn=this.getInverseMatrix();return Gn.applyToPointArray(Vn[0],Vn[1],Vn[2]||0)}function tr(Vn){var Gn,Zn=Vn.length,qn=[];for(Gn=0;Gn<Zn;Gn+=1)qn[Gn]=Jn(Vn[Gn]);return qn}function Xn(Vn,Gn,Zn){var qn=createTypedArray("float32",6);if(this.isIdentity())qn[0]=Vn[0],qn[1]=Vn[1],qn[2]=Gn[0],qn[3]=Gn[1],qn[4]=Zn[0],qn[5]=Zn[1];else{var er=this.props[0],ir=this.props[1],Kn=this.props[4],or=this.props[5],cr=this.props[12],hr=this.props[13];qn[0]=Vn[0]*er+Vn[1]*Kn+cr,qn[1]=Vn[0]*ir+Vn[1]*or+hr,qn[2]=Gn[0]*er+Gn[1]*Kn+cr,qn[3]=Gn[0]*ir+Gn[1]*or+hr,qn[4]=Zn[0]*er+Zn[1]*Kn+cr,qn[5]=Zn[0]*ir+Zn[1]*or+hr}return qn}function ar(Vn,Gn,Zn){var qn;return this.isIdentity()?qn=[Vn,Gn,Zn]:qn=[Vn*this.props[0]+Gn*this.props[4]+Zn*this.props[8]+this.props[12],Vn*this.props[1]+Gn*this.props[5]+Zn*this.props[9]+this.props[13],Vn*this.props[2]+Gn*this.props[6]+Zn*this.props[10]+this.props[14]],qn}function sr(Vn,Gn){if(this.isIdentity())return Vn+","+Gn;var Zn=this.props;return Math.round((Vn*Zn[0]+Gn*Zn[4]+Zn[12])*100)/100+","+Math.round((Vn*Zn[1]+Gn*Zn[5]+Zn[13])*100)/100}function nr(){for(var Vn=0,Gn=this.props,Zn="matrix3d(",qn=1e4;Vn<16;)Zn+=h(Gn[Vn]*qn)/qn,Zn+=Vn===15?")":",",Vn+=1;return Zn}function Hn(Vn){var Gn=1e4;return Vn<1e-6&&Vn>0||Vn>-1e-6&&Vn<0?h(Vn*Gn)/Gn:Vn}function Yn(){var Vn=this.props,Gn=Hn(Vn[0]),Zn=Hn(Vn[1]),qn=Hn(Vn[4]),er=Hn(Vn[5]),ir=Hn(Vn[12]),Kn=Hn(Vn[13]);return"matrix("+Gn+","+Zn+","+qn+","+er+","+ir+","+Kn+")"}return function(){this.reset=d,this.rotate=v,this.rotateX=p,this.rotateY=m,this.rotateZ=g,this.skew=x,this.skewFromAxis=Pn,this.shear=y,this.scale=b,this.setTransform=vn,this.translate=_,this.transform=re,this.multiply=Fn,this.applyToPoint=Rn,this.applyToX=zn,this.applyToY=Wn,this.applyToZ=Un,this.applyToPointArray=ar,this.applyToTriplePoints=Xn,this.applyToPointStringified=sr,this.toCSS=nr,this.to2dCSS=Yn,this.clone=J,this.cloneFromProps=gn,this.equals=w,this.inversePoints=tr,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 h=u[f].split("=");if(decodeURIComponent(h[0])==c)return decodeURIComponent(h[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(c){}var ShapeModifiers=function(){var c={},u={};c.registerModifier=f,c.getModifier=h;function f(d,v){u[d]||(u[d]=v)}function h(d,v,p){return new u[d](v,p)}return c}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(c){if(!this.closed){c.sh.container.addDynamicProperty(c.sh);var u={shape:c.sh,data:c,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(u),this.addShapeToModifier(u),this._isAnimated&&c.setAsAnimated()}},ShapeModifier.prototype.init=function(c,u){this.shapes=[],this.elem=c,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,u),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(c,u){this.s=PropertyFactory.getProp(c,u.s,0,.01,this),this.e=PropertyFactory.getProp(c,u.e,0,.01,this),this.o=PropertyFactory.getProp(c,u.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=u.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(c){c.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(c,u,f,h,d){var v=[];u<=1?v.push({s:c,e:u}):c>=1?v.push({s:c-1,e:u-1}):(v.push({s:c,e:1}),v.push({s:0,e:u-1}));var p=[],m,g=v.length,y;for(m=0;m<g;m+=1)if(y=v[m],!(y.e*d<h||y.s*d>h+f)){var x,Pn;y.s*d<=h?x=0:x=(y.s*d-h)/f,y.e*d>=h+f?Pn=1:Pn=(y.e*d-h)/f,p.push([x,Pn])}return p.length||p.push([0,0]),p},TrimModifier.prototype.releasePathsData=function(c){var u,f=c.length;for(u=0;u<f;u+=1)segmentsLengthPool.release(c[u]);return c.length=0,c},TrimModifier.prototype.processShapes=function(c){var u,f;if(this._mdf||c){var h=this.o.v%360/360;if(h<0&&(h+=1),this.s.v>1?u=1+h:this.s.v<0?u=0+h:u=this.s.v+h,this.e.v>1?f=1+h:this.e.v<0?f=0+h:f=this.e.v+h,u>f){var d=u;u=f,f=d}u=Math.round(u*1e4)*1e-4,f=Math.round(f*1e4)*1e-4,this.sValue=u,this.eValue=f}else u=this.sValue,f=this.eValue;var v,p,m=this.shapes.length,g,y,x,Pn,b,vn=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 _=[],re,Fn;for(p=0;p<m;p+=1)if(re=this.shapes[p],!re.shape._mdf&&!this._mdf&&!c&&this.m!==2)re.shape.paths=re.localShapeCollection;else{if(v=re.shape.paths,y=v._length,b=0,!re.shape._mdf&&re.pathsData.length)b=re.totalShapeLength;else{for(x=this.releasePathsData(re.pathsData),g=0;g<y;g+=1)Pn=bez.getSegmentsLength(v.shapes[g]),x.push(Pn),b+=Pn.totalLength;re.totalShapeLength=b,re.pathsData=x}vn+=b,re.shape._mdf=!0}var Bn=u,w=f,J=0,gn;for(p=m-1;p>=0;p-=1)if(re=this.shapes[p],re.shape._mdf){for(Fn=re.localShapeCollection,Fn.releaseShapes(),this.m===2&&m>1?(gn=this.calculateShapeEdges(u,f,re.totalShapeLength,J,vn),J+=re.totalShapeLength):gn=[[Bn,w]],y=gn.length,g=0;g<y;g+=1){Bn=gn[g][0],w=gn[g][1],_.length=0,w<=1?_.push({s:re.totalShapeLength*Bn,e:re.totalShapeLength*w}):Bn>=1?_.push({s:re.totalShapeLength*(Bn-1),e:re.totalShapeLength*(w-1)}):(_.push({s:re.totalShapeLength*Bn,e:re.totalShapeLength}),_.push({s:0,e:re.totalShapeLength*(w-1)}));var Rn=this.addShapes(re,_[0]);if(_[0].s!==_[0].e){if(_.length>1){var zn=re.shape.paths.shapes[re.shape.paths._length-1];if(zn.c){var Wn=Rn.pop();this.addPaths(Rn,Fn),Rn=this.addShapes(re,_[1],Wn)}else this.addPaths(Rn,Fn),Rn=this.addShapes(re,_[1])}this.addPaths(Rn,Fn)}}re.shape.paths=Fn}}},TrimModifier.prototype.addPaths=function(c,u){var f,h=c.length;for(f=0;f<h;f+=1)u.addShape(c[f])},TrimModifier.prototype.addSegment=function(c,u,f,h,d,v,p){d.setXYAt(u[0],u[1],"o",v),d.setXYAt(f[0],f[1],"i",v+1),p&&d.setXYAt(c[0],c[1],"v",v),d.setXYAt(h[0],h[1],"v",v+1)},TrimModifier.prototype.addSegmentFromArray=function(c,u,f,h){u.setXYAt(c[1],c[5],"o",f),u.setXYAt(c[2],c[6],"i",f+1),h&&u.setXYAt(c[0],c[4],"v",f),u.setXYAt(c[3],c[7],"v",f+1)},TrimModifier.prototype.addShapes=function(c,u,f){var h=c.pathsData,d=c.shape.paths.shapes,v,p=c.shape.paths._length,m,g,y=0,x,Pn,b,vn,_=[],re,Fn=!0;for(f?(Pn=f._length,re=f._length):(f=shapePool.newElement(),Pn=0,re=0),_.push(f),v=0;v<p;v+=1){for(b=h[v].lengths,f.c=d[v].c,g=d[v].c?b.length:b.length+1,m=1;m<g;m+=1)if(x=b[m-1],y+x.addedLength<u.s)y+=x.addedLength,f.c=!1;else if(y>u.e){f.c=!1;break}else u.s<=y&&u.e>=y+x.addedLength?(this.addSegment(d[v].v[m-1],d[v].o[m-1],d[v].i[m],d[v].v[m],f,Pn,Fn),Fn=!1):(vn=bez.getNewSegment(d[v].v[m-1],d[v].v[m],d[v].o[m-1],d[v].i[m],(u.s-y)/x.addedLength,(u.e-y)/x.addedLength,b[m-1]),this.addSegmentFromArray(vn,f,Pn,Fn),Fn=!1,f.c=!1),y+=x.addedLength,Pn+=1;if(d[v].c&&b.length){if(x=b[m-1],y<=u.e){var Bn=b[m-1].addedLength;u.s<=y&&u.e>=y+Bn?(this.addSegment(d[v].v[m-1],d[v].o[m-1],d[v].i[0],d[v].v[0],f,Pn,Fn),Fn=!1):(vn=bez.getNewSegment(d[v].v[m-1],d[v].v[0],d[v].o[m-1],d[v].i[0],(u.s-y)/Bn,(u.e-y)/Bn,b[m-1]),this.addSegmentFromArray(vn,f,Pn,Fn),Fn=!1,f.c=!1)}else f.c=!1;y+=x.addedLength,Pn+=1}if(f._length&&(f.setXYAt(f.v[re][0],f.v[re][1],"i",re),f.setXYAt(f.v[f._length-1][0],f.v[f._length-1][1],"o",f._length-1)),y>u.e)break;v<p-1&&(f=shapePool.newElement(),Fn=!0,_.push(f),Pn=0)}return _};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(c,u.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(c,u){var f=u/100,h=[0,0],d=c._length,v=0;for(v=0;v<d;v+=1)h[0]+=c.v[v][0],h[1]+=c.v[v][1];h[0]/=d,h[1]/=d;var p=shapePool.newElement();p.c=c.c;var m,g,y,x,Pn,b;for(v=0;v<d;v+=1)m=c.v[v][0]+(h[0]-c.v[v][0])*f,g=c.v[v][1]+(h[1]-c.v[v][1])*f,y=c.o[v][0]+(h[0]-c.o[v][0])*-f,x=c.o[v][1]+(h[1]-c.o[v][1])*-f,Pn=c.i[v][0]+(h[0]-c.i[v][0])*-f,b=c.i[v][1]+(h[1]-c.i[v][1])*-f,p.setTripleAt(m,g,y,x,Pn,b,v);return p},PuckerAndBloatModifier.prototype.processShapes=function(c){var u,f,h=this.shapes.length,d,v,p=this.amount.v;if(p!==0){var m,g;for(f=0;f<h;f+=1){if(m=this.shapes[f],g=m.localShapeCollection,!(!m.shape._mdf&&!this._mdf&&!c))for(g.releaseShapes(),m.shape._mdf=!0,u=m.shape.paths.shapes,v=m.shape.paths._length,d=0;d<v;d+=1)g.addShape(this.processPath(u[d],p));m.shape.paths=m.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var c=[0,0];function u(g){var y=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||y,this.a&&g.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&g.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&g.skewFromAxis(-this.sk.v,this.sa.v),this.r?g.rotate(-this.r.v):g.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?g.translate(this.px.v,this.py.v,-this.pz.v):g.translate(this.px.v,this.py.v,0):g.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function f(g){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||g){var y;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var x,Pn;if(y=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(x=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/y,0),Pn=this.p.getValueAtTime(this.p.keyframes[0].t/y,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(x=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/y,0),Pn=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/y,0)):(x=this.p.pv,Pn=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/y,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){x=[],Pn=[];var b=this.px,vn=this.py;b._caching.lastFrame+b.offsetTime<=b.keyframes[0].t?(x[0]=b.getValueAtTime((b.keyframes[0].t+.01)/y,0),x[1]=vn.getValueAtTime((vn.keyframes[0].t+.01)/y,0),Pn[0]=b.getValueAtTime(b.keyframes[0].t/y,0),Pn[1]=vn.getValueAtTime(vn.keyframes[0].t/y,0)):b._caching.lastFrame+b.offsetTime>=b.keyframes[b.keyframes.length-1].t?(x[0]=b.getValueAtTime(b.keyframes[b.keyframes.length-1].t/y,0),x[1]=vn.getValueAtTime(vn.keyframes[vn.keyframes.length-1].t/y,0),Pn[0]=b.getValueAtTime((b.keyframes[b.keyframes.length-1].t-.01)/y,0),Pn[1]=vn.getValueAtTime((vn.keyframes[vn.keyframes.length-1].t-.01)/y,0)):(x=[b.pv,vn.pv],Pn[0]=b.getValueAtTime((b._caching.lastFrame+b.offsetTime-.01)/y,b.offsetTime),Pn[1]=vn.getValueAtTime((vn._caching.lastFrame+vn.offsetTime-.01)/y,vn.offsetTime))}else Pn=c,x=Pn;this.v.rotate(-Math.atan2(x[1]-Pn[1],x[0]-Pn[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function h(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function d(){}function v(g){this._addDynamicProperty(g),this.elem.addDynamicProperty(g),this._isDirty=!0}function p(g,y,x){if(this.elem=g,this.frameId=-1,this.propType="transform",this.data=y,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(x||g),y.p&&y.p.s?(this.px=PropertyFactory.getProp(g,y.p.x,0,0,this),this.py=PropertyFactory.getProp(g,y.p.y,0,0,this),y.p.z&&(this.pz=PropertyFactory.getProp(g,y.p.z,0,0,this))):this.p=PropertyFactory.getProp(g,y.p||{k:[0,0,0]},1,0,this),y.rx){if(this.rx=PropertyFactory.getProp(g,y.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(g,y.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(g,y.rz,0,degToRads,this),y.or.k[0].ti){var Pn,b=y.or.k.length;for(Pn=0;Pn<b;Pn+=1)y.or.k[Pn].to=null,y.or.k[Pn].ti=null}this.or=PropertyFactory.getProp(g,y.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(g,y.r||{k:0},0,degToRads,this);y.sk&&(this.sk=PropertyFactory.getProp(g,y.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(g,y.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(g,y.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(g,y.s||{k:[100,100,100]},1,.01,this),y.o?this.o=PropertyFactory.getProp(g,y.o,0,.01,g):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}p.prototype={applyToMatrix:u,getValue:f,precalculateMatrix:h,autoOrient:d},extendPrototype([DynamicPropertyContainer],p),p.prototype.addDynamicProperty=v,p.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function m(g,y,x){return new p(g,y,x)}return{getTransformProperty:m}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(c,u.c,0,null,this),this.o=PropertyFactory.getProp(c,u.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(c,u.tr,this),this.so=PropertyFactory.getProp(c,u.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(c,u.tr.eo,0,.01,this),this.data=u,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(c,u,f,h,d,v){var p=v?-1:1,m=h.s.v[0]+(1-h.s.v[0])*(1-d),g=h.s.v[1]+(1-h.s.v[1])*(1-d);c.translate(h.p.v[0]*p*d,h.p.v[1]*p*d,h.p.v[2]),u.translate(-h.a.v[0],-h.a.v[1],h.a.v[2]),u.rotate(-h.r.v*p*d),u.translate(h.a.v[0],h.a.v[1],h.a.v[2]),f.translate(-h.a.v[0],-h.a.v[1],h.a.v[2]),f.scale(v?1/m:m,v?1/g:g),f.translate(h.a.v[0],h.a.v[1],h.a.v[2])},RepeaterModifier.prototype.init=function(c,u,f,h){for(this.elem=c,this.arr=u,this.pos=f,this.elemsData=h,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,u[f]);f>0;)f-=1,this._elements.unshift(u[f]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(c){var u,f=c.length;for(u=0;u<f;u+=1)c[u]._processed=!1,c[u].ty==="gr"&&this.resetElements(c[u].it)},RepeaterModifier.prototype.cloneElements=function(c){var u=JSON.parse(JSON.stringify(c));return this.resetElements(u),u},RepeaterModifier.prototype.changeGroupRender=function(c,u){var f,h=c.length;for(f=0;f<h;f+=1)c[f]._render=u,c[f].ty==="gr"&&this.changeGroupRender(c[f].it,u)},RepeaterModifier.prototype.processShapes=function(c){var u,f,h,d,v,p=!1;if(this._mdf||c){var m=Math.ceil(this.c.v);if(this._groups.length<m){for(;this._groups.length<m;){var g={it:this.cloneElements(this._elements),ty:"gr"};g.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,g),this._groups.splice(0,0,g),this._currentCopies+=1}this.elem.reloadShapes(),p=!0}v=0;var y;for(h=0;h<=this._groups.length-1;h+=1){if(y=v<m,this._groups[h]._render=y,this.changeGroupRender(this._groups[h].it,y),!y){var x=this.elemsData[h].it,Pn=x[x.length-1];Pn.transform.op.v!==0?(Pn.transform.op._mdf=!0,Pn.transform.op.v=0):Pn.transform.op._mdf=!1}v+=1}this._currentCopies=m;var b=this.o.v,vn=b%1,_=b>0?Math.floor(b):Math.ceil(b),re=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 w=0;if(b>0){for(;w<_;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;vn&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,vn,!1),w+=vn)}else if(b<0){for(;w>_;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;vn&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-vn,!0),w-=vn)}h=this.data.m===1?0:this._currentCopies-1,d=this.data.m===1?1:-1,v=this._currentCopies;for(var J,gn;v;){if(u=this.elemsData[h].it,f=u[u.length-1].transform.mProps.v.props,gn=f.length,u[u.length-1].transform.mProps._mdf=!0,u[u.length-1].transform.op._mdf=!0,u[u.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(h/(this._currentCopies-1)),w!==0){for((h!==0&&d===1||h!==this._currentCopies-1&&d===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(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(re[0],re[1],re[2],re[3],re[4],re[5],re[6],re[7],re[8],re[9],re[10],re[11],re[12],re[13],re[14],re[15]),J=0;J<gn;J+=1)f[J]=this.matrix.props[J];this.matrix.reset()}else for(this.matrix.reset(),J=0;J<gn;J+=1)f[J]=this.matrix.props[J];w+=1,v-=1,h+=d}}else for(v=this._currentCopies,h=0,d=1;v;)u=this.elemsData[h].it,f=u[u.length-1].transform.mProps.v.props,u[u.length-1].transform.mProps._mdf=!1,u[u.length-1].transform.op._mdf=!1,v-=1,h+=d;return p},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(c,u.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(c,u){var f=shapePool.newElement();f.c=c.c;var h,d=c._length,v,p,m,g,y,x,Pn=0,b,vn,_,re,Fn,Bn;for(h=0;h<d;h+=1)v=c.v[h],m=c.o[h],p=c.i[h],v[0]===m[0]&&v[1]===m[1]&&v[0]===p[0]&&v[1]===p[1]?(h===0||h===d-1)&&!c.c?(f.setTripleAt(v[0],v[1],m[0],m[1],p[0],p[1],Pn),Pn+=1):(h===0?g=c.v[d-1]:g=c.v[h-1],y=Math.sqrt(Math.pow(v[0]-g[0],2)+Math.pow(v[1]-g[1],2)),x=y?Math.min(y/2,u)/y:0,Fn=v[0]+(g[0]-v[0])*x,b=Fn,Bn=v[1]-(v[1]-g[1])*x,vn=Bn,_=b-(b-v[0])*roundCorner,re=vn-(vn-v[1])*roundCorner,f.setTripleAt(b,vn,_,re,Fn,Bn,Pn),Pn+=1,h===d-1?g=c.v[0]:g=c.v[h+1],y=Math.sqrt(Math.pow(v[0]-g[0],2)+Math.pow(v[1]-g[1],2)),x=y?Math.min(y/2,u)/y:0,_=v[0]+(g[0]-v[0])*x,b=_,re=v[1]+(g[1]-v[1])*x,vn=re,Fn=b-(b-v[0])*roundCorner,Bn=vn-(vn-v[1])*roundCorner,f.setTripleAt(b,vn,_,re,Fn,Bn,Pn),Pn+=1):(f.setTripleAt(c.v[h][0],c.v[h][1],c.o[h][0],c.o[h][1],c.i[h][0],c.i[h][1],Pn),Pn+=1);return f},RoundCornersModifier.prototype.processShapes=function(c){var u,f,h=this.shapes.length,d,v,p=this.rd.v;if(p!==0){var m,g;for(f=0;f<h;f+=1){if(m=this.shapes[f],g=m.localShapeCollection,!(!m.shape._mdf&&!this._mdf&&!c))for(g.releaseShapes(),m.shape._mdf=!0,u=m.shape.paths.shapes,v=m.shape.paths._length,d=0;d<v;d+=1)g.addShape(this.processPath(u[d],p));m.shape.paths=m.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(c,u){return Math.abs(c-u)*1e5<=Math.min(Math.abs(c),Math.abs(u))}function floatZero(c){return Math.abs(c)<=1e-5}function lerp(c,u,f){return c*(1-f)+u*f}function lerpPoint(c,u,f){return[lerp(c[0],u[0],f),lerp(c[1],u[1],f)]}function quadRoots(c,u,f){if(c===0)return[];var h=u*u-4*c*f;if(h<0)return[];var d=-u/(2*c);if(h===0)return[d];var v=Math.sqrt(h)/(2*c);return[d-v,d+v]}function polynomialCoefficients(c,u,f,h){return[-c+3*u-3*f+h,3*c-6*u+3*f,-3*c+3*u,c]}function singlePoint(c){return new PolynomialBezier(c,c,c,c,!1)}function PolynomialBezier(c,u,f,h,d){d&&pointEqual(c,u)&&(u=lerpPoint(c,h,1/3)),d&&pointEqual(f,h)&&(f=lerpPoint(c,h,2/3));var v=polynomialCoefficients(c[0],u[0],f[0],h[0]),p=polynomialCoefficients(c[1],u[1],f[1],h[1]);this.a=[v[0],p[0]],this.b=[v[1],p[1]],this.c=[v[2],p[2]],this.d=[v[3],p[3]],this.points=[c,u,f,h]}PolynomialBezier.prototype.point=function(c){return[((this.a[0]*c+this.b[0])*c+this.c[0])*c+this.d[0],((this.a[1]*c+this.b[1])*c+this.c[1])*c+this.d[1]]},PolynomialBezier.prototype.derivative=function(c){return[(3*c*this.a[0]+2*this.b[0])*c+this.c[0],(3*c*this.a[1]+2*this.b[1])*c+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(c){var u=this.derivative(c);return Math.atan2(u[1],u[0])},PolynomialBezier.prototype.normalAngle=function(c){var u=this.derivative(c);return Math.atan2(u[0],u[1])},PolynomialBezier.prototype.inflectionPoints=function(){var c=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(c))return[];var u=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/c,f=u*u-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/c;if(f<0)return[];var h=Math.sqrt(f);return floatZero(h)?h>0&&h<1?[u]:[]:[u-h,u+h].filter(function(d){return d>0&&d<1})},PolynomialBezier.prototype.split=function(c){if(c<=0)return[singlePoint(this.points[0]),this];if(c>=1)return[this,singlePoint(this.points[this.points.length-1])];var u=lerpPoint(this.points[0],this.points[1],c),f=lerpPoint(this.points[1],this.points[2],c),h=lerpPoint(this.points[2],this.points[3],c),d=lerpPoint(u,f,c),v=lerpPoint(f,h,c),p=lerpPoint(d,v,c);return[new PolynomialBezier(this.points[0],u,d,p,!0),new PolynomialBezier(p,v,h,this.points[3],!0)]};function extrema(c,u){var f=c.points[0][u],h=c.points[c.points.length-1][u];if(f>h){var d=h;h=f,f=d}for(var v=quadRoots(3*c.a[u],2*c.b[u],c.c[u]),p=0;p<v.length;p+=1)if(v[p]>0&&v[p]<1){var m=c.point(v[p])[u];m<f?f=m:m>h&&(h=m)}return{min:f,max:h}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var c=this.bounds();return{left:c.x.min,right:c.x.max,top:c.y.min,bottom:c.y.max,width:c.x.max-c.x.min,height:c.y.max-c.y.min,cx:(c.x.max+c.x.min)/2,cy:(c.y.max+c.y.min)/2}};function intersectData(c,u,f){var h=c.boundingBox();return{cx:h.cx,cy:h.cy,width:h.width,height:h.height,bez:c,t:(u+f)/2,t1:u,t2:f}}function splitData(c){var u=c.bez.split(.5);return[intersectData(u[0],c.t1,c.t),intersectData(u[1],c.t,c.t2)]}function boxIntersect(c,u){return Math.abs(c.cx-u.cx)*2<c.width+u.width&&Math.abs(c.cy-u.cy)*2<c.height+u.height}function intersectsImpl(c,u,f,h,d,v){if(boxIntersect(c,u)){if(f>=v||c.width<=h&&c.height<=h&&u.width<=h&&u.height<=h){d.push([c.t,u.t]);return}var p=splitData(c),m=splitData(u);intersectsImpl(p[0],m[0],f+1,h,d,v),intersectsImpl(p[0],m[1],f+1,h,d,v),intersectsImpl(p[1],m[0],f+1,h,d,v),intersectsImpl(p[1],m[1],f+1,h,d,v)}}PolynomialBezier.prototype.intersections=function(c,u,f){u===void 0&&(u=2),f===void 0&&(f=7);var h=[];return intersectsImpl(intersectData(this,0,1),intersectData(c,0,1),0,u,h,f),h},PolynomialBezier.shapeSegment=function(c,u){var f=(u+1)%c.length();return new PolynomialBezier(c.v[u],c.o[u],c.i[f],c.v[f],!0)},PolynomialBezier.shapeSegmentInverted=function(c,u){var f=(u+1)%c.length();return new PolynomialBezier(c.v[f],c.i[f],c.o[u],c.v[u],!0)};function crossProduct(c,u){return[c[1]*u[2]-c[2]*u[1],c[2]*u[0]-c[0]*u[2],c[0]*u[1]-c[1]*u[0]]}function lineIntersection(c,u,f,h){var d=[c[0],c[1],1],v=[u[0],u[1],1],p=[f[0],f[1],1],m=[h[0],h[1],1],g=crossProduct(crossProduct(d,v),crossProduct(p,m));return floatZero(g[2])?null:[g[0]/g[2],g[1]/g[2]]}function polarOffset(c,u,f){return[c[0]+Math.cos(u)*f,c[1]-Math.sin(u)*f]}function pointDistance(c,u){return Math.hypot(c[0]-u[0],c[1]-u[1])}function pointEqual(c,u){return floatEqual(c[0],u[0])&&floatEqual(c[1],u[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(c,u.s,0,null,this),this.frequency=PropertyFactory.getProp(c,u.r,0,null,this),this.pointsType=PropertyFactory.getProp(c,u.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(c,u,f,h,d,v,p){var m=f-Math.PI/2,g=f+Math.PI/2,y=u[0]+Math.cos(f)*h*d,x=u[1]-Math.sin(f)*h*d;c.setTripleAt(y,x,y+Math.cos(m)*v,x-Math.sin(m)*v,y+Math.cos(g)*p,x-Math.sin(g)*p,c.length())}function getPerpendicularVector(c,u){var f=[u[0]-c[0],u[1]-c[1]],h=-Math.PI*.5,d=[Math.cos(h)*f[0]-Math.sin(h)*f[1],Math.sin(h)*f[0]+Math.cos(h)*f[1]];return d}function getProjectingAngle(c,u){var f=u===0?c.length()-1:u-1,h=(u+1)%c.length(),d=c.v[f],v=c.v[h],p=getPerpendicularVector(d,v);return Math.atan2(0,1)-Math.atan2(p[1],p[0])}function zigZagCorner(c,u,f,h,d,v,p){var m=getProjectingAngle(u,f),g=u.v[f%u._length],y=u.v[f===0?u._length-1:f-1],x=u.v[(f+1)%u._length],Pn=v===2?Math.sqrt(Math.pow(g[0]-y[0],2)+Math.pow(g[1]-y[1],2)):0,b=v===2?Math.sqrt(Math.pow(g[0]-x[0],2)+Math.pow(g[1]-x[1],2)):0;setPoint(c,u.v[f%u._length],m,p,h,b/((d+1)*2),Pn/((d+1)*2))}function zigZagSegment(c,u,f,h,d,v){for(var p=0;p<h;p+=1){var m=(p+1)/(h+1),g=d===2?Math.sqrt(Math.pow(u.points[3][0]-u.points[0][0],2)+Math.pow(u.points[3][1]-u.points[0][1],2)):0,y=u.normalAngle(m),x=u.point(m);setPoint(c,x,y,v,f,g/((h+1)*2),g/((h+1)*2)),v=-v}return v}ZigZagModifier.prototype.processPath=function(c,u,f,h){var d=c._length,v=shapePool.newElement();if(v.c=c.c,c.c||(d-=1),d===0)return v;var p=-1,m=PolynomialBezier.shapeSegment(c,0);zigZagCorner(v,c,0,u,f,h,p);for(var g=0;g<d;g+=1)p=zigZagSegment(v,m,u,f,h,-p),g===d-1&&!c.c?m=null:m=PolynomialBezier.shapeSegment(c,(g+1)%d),zigZagCorner(v,c,g+1,u,f,h,p);return v},ZigZagModifier.prototype.processShapes=function(c){var u,f,h=this.shapes.length,d,v,p=this.amplitude.v,m=Math.max(0,Math.round(this.frequency.v)),g=this.pointsType.v;if(p!==0){var y,x;for(f=0;f<h;f+=1){if(y=this.shapes[f],x=y.localShapeCollection,!(!y.shape._mdf&&!this._mdf&&!c))for(x.releaseShapes(),y.shape._mdf=!0,u=y.shape.paths.shapes,v=y.shape.paths._length,d=0;d<v;d+=1)x.addShape(this.processPath(u[d],p,m,g));y.shape.paths=y.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(c,u,f){var h=Math.atan2(u[0]-c[0],u[1]-c[1]);return[polarOffset(c,h,f),polarOffset(u,h,f)]}function offsetSegment(c,u){var f,h,d,v,p,m,g;g=linearOffset(c.points[0],c.points[1],u),f=g[0],h=g[1],g=linearOffset(c.points[1],c.points[2],u),d=g[0],v=g[1],g=linearOffset(c.points[2],c.points[3],u),p=g[0],m=g[1];var y=lineIntersection(f,h,d,v);y===null&&(y=h);var x=lineIntersection(p,m,d,v);return x===null&&(x=p),new PolynomialBezier(f,y,x,m)}function joinLines(c,u,f,h,d){var v=u.points[3],p=f.points[0];if(h===3||pointEqual(v,p))return v;if(h===2){var m=-u.tangentAngle(1),g=-f.tangentAngle(0)+Math.PI,y=lineIntersection(v,polarOffset(v,m+Math.PI/2,100),p,polarOffset(p,m+Math.PI/2,100)),x=y?pointDistance(y,v):pointDistance(v,p)/2,Pn=polarOffset(v,m,2*x*roundCorner);return c.setXYAt(Pn[0],Pn[1],"o",c.length()-1),Pn=polarOffset(p,g,2*x*roundCorner),c.setTripleAt(p[0],p[1],p[0],p[1],Pn[0],Pn[1],c.length()),p}var b=pointEqual(v,u.points[2])?u.points[0]:u.points[2],vn=pointEqual(p,f.points[1])?f.points[3]:f.points[1],_=lineIntersection(b,v,p,vn);return _&&pointDistance(_,v)<d?(c.setTripleAt(_[0],_[1],_[0],_[1],_[0],_[1],c.length()),_):v}function getIntersection(c,u){var f=c.intersections(u);return f.length&&floatEqual(f[0][0],1)&&f.shift(),f.length?f[0]:null}function pruneSegmentIntersection(c,u){var f=c.slice(),h=u.slice(),d=getIntersection(c[c.length-1],u[0]);return d&&(f[c.length-1]=c[c.length-1].split(d[0])[0],h[0]=u[0].split(d[1])[1]),c.length>1&&u.length>1&&(d=getIntersection(c[0],u[u.length-1]),d)?[[c[0].split(d[0])[0]],[u[u.length-1].split(d[1])[1]]]:[f,h]}function pruneIntersections(c){for(var u,f=1;f<c.length;f+=1)u=pruneSegmentIntersection(c[f-1],c[f]),c[f-1]=u[0],c[f]=u[1];return c.length>1&&(u=pruneSegmentIntersection(c[c.length-1],c[0]),c[c.length-1]=u[0],c[0]=u[1]),c}function offsetSegmentSplit(c,u){var f=c.inflectionPoints(),h,d,v,p;if(f.length===0)return[offsetSegment(c,u)];if(f.length===1||floatEqual(f[1],1))return v=c.split(f[0]),h=v[0],d=v[1],[offsetSegment(h,u),offsetSegment(d,u)];v=c.split(f[0]),h=v[0];var m=(f[1]-f[0])/(1-f[0]);return v=v[1].split(m),p=v[0],d=v[1],[offsetSegment(h,u),offsetSegment(p,u),offsetSegment(d,u)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(c,u.a,0,null,this),this.miterLimit=PropertyFactory.getProp(c,u.ml,0,null,this),this.lineJoin=u.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(c,u,f,h){var d=shapePool.newElement();d.c=c.c;var v=c.length();c.c||(v-=1);var p,m,g,y=[];for(p=0;p<v;p+=1)g=PolynomialBezier.shapeSegment(c,p),y.push(offsetSegmentSplit(g,u));if(!c.c)for(p=v-1;p>=0;p-=1)g=PolynomialBezier.shapeSegmentInverted(c,p),y.push(offsetSegmentSplit(g,u));y=pruneIntersections(y);var x=null,Pn=null;for(p=0;p<y.length;p+=1){var b=y[p];for(Pn&&(x=joinLines(d,Pn,b[0],f,h)),Pn=b[b.length-1],m=0;m<b.length;m+=1)g=b[m],x&&pointEqual(g.points[0],x)?d.setXYAt(g.points[1][0],g.points[1][1],"o",d.length()-1):d.setTripleAt(g.points[0][0],g.points[0][1],g.points[1][0],g.points[1][1],g.points[0][0],g.points[0][1],d.length()),d.setTripleAt(g.points[3][0],g.points[3][1],g.points[3][0],g.points[3][1],g.points[2][0],g.points[2][1],d.length()),x=g.points[3]}return y.length&&joinLines(d,Pn,y[0][0],f,h),d},OffsetPathModifier.prototype.processShapes=function(c){var u,f,h=this.shapes.length,d,v,p=this.amount.v,m=this.miterLimit.v,g=this.lineJoin;if(p!==0){var y,x;for(f=0;f<h;f+=1){if(y=this.shapes[f],x=y.localShapeCollection,!(!y.shape._mdf&&!this._mdf&&!c))for(x.releaseShapes(),y.shape._mdf=!0,u=y.shape.paths.shapes,v=y.shape.paths._length,d=0;d<v;d+=1)x.addShape(this.processPath(u[d],p,g,m));y.shape.paths=y.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(c){for(var u=c.fStyle?c.fStyle.split(" "):[],f="normal",h="normal",d=u.length,v,p=0;p<d;p+=1)switch(v=u[p].toLowerCase(),v){case"italic":h="italic";break;case"bold":f="700";break;case"black":f="900";break;case"medium":f="500";break;case"regular":case"normal":f="400";break;case"light":case"thin":f="200";break}return{style:h,weight:c.fWeight||f}}var FontManager=function(){var c=5e3,u={w:0,size:0,shapes:[],data:{shapes:[]}},f=[];f=f.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var h=127988,d=917631,v=917601,p=917626,m=65039,g=8205,y=127462,x=127487,Pn=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function b(Hn){var Yn=Hn.split(","),Vn,Gn=Yn.length,Zn=[];for(Vn=0;Vn<Gn;Vn+=1)Yn[Vn]!=="sans-serif"&&Yn[Vn]!=="monospace"&&Zn.push(Yn[Vn]);return Zn.join(",")}function vn(Hn,Yn){var Vn=createTag("span");Vn.setAttribute("aria-hidden",!0),Vn.style.fontFamily=Yn;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 Zn=Gn.offsetWidth;return Gn.style.fontFamily=b(Hn)+", "+Yn,{node:Gn,w:Zn,parent:Vn}}function _(){var Hn,Yn=this.fonts.length,Vn,Gn,Zn=Yn;for(Hn=0;Hn<Yn;Hn+=1)this.fonts[Hn].loaded?Zn-=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?(Zn-=1,this.fonts[Hn].loaded=!0):(Vn=this.fonts[Hn].sansCase.node,Gn=this.fonts[Hn].sansCase.w,Vn.offsetWidth!==Gn&&(Zn-=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)));Zn!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function re(Hn,Yn){var Vn=document.body&&Yn?"svg":"canvas",Gn,Zn=getFontProperties(Hn);if(Vn==="svg"){var qn=createNS("text");qn.style.fontSize="100px",qn.setAttribute("font-family",Hn.fFamily),qn.setAttribute("font-style",Zn.style),qn.setAttribute("font-weight",Zn.weight),qn.textContent="1",Hn.fClass?(qn.style.fontFamily="inherit",qn.setAttribute("class",Hn.fClass)):qn.style.fontFamily=Hn.fFamily,Yn.appendChild(qn),Gn=qn}else{var er=new OffscreenCanvas(500,500).getContext("2d");er.font=Zn.style+" "+Zn.weight+" 100px "+Hn.fFamily,Gn=er}function ir(Kn){return Vn==="svg"?(Gn.textContent=Kn,Gn.getComputedTextLength()):Gn.measureText(Kn).width}return{measureText:ir}}function Fn(Hn,Yn){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(dr){dr.helper=re(dr),dr.cache={}}),this.fonts=Hn.list;return}var Vn=Hn.list,Gn,Zn=Vn.length,qn=Zn;for(Gn=0;Gn<Zn;Gn+=1){var er=!0,ir,Kn;if(Vn[Gn].loaded=!1,Vn[Gn].monoCase=vn(Vn[Gn].fFamily,"monospace"),Vn[Gn].sansCase=vn(Vn[Gn].fFamily,"sans-serif"),!Vn[Gn].fPath)Vn[Gn].loaded=!0,qn-=1;else if(Vn[Gn].fOrigin==="p"||Vn[Gn].origin===3){if(ir=document.querySelectorAll('style[f-forigin="p"][f-family="'+Vn[Gn].fFamily+'"], style[f-origin="3"][f-family="'+Vn[Gn].fFamily+'"]'),ir.length>0&&(er=!1),er){var or=createTag("style");or.setAttribute("f-forigin",Vn[Gn].fOrigin),or.setAttribute("f-origin",Vn[Gn].origin),or.setAttribute("f-family",Vn[Gn].fFamily),or.type="text/css",or.innerText="@font-face {font-family: "+Vn[Gn].fFamily+"; font-style: normal; src: url('"+Vn[Gn].fPath+"');}",Yn.appendChild(or)}}else if(Vn[Gn].fOrigin==="g"||Vn[Gn].origin===1){for(ir=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Kn=0;Kn<ir.length;Kn+=1)ir[Kn].href.indexOf(Vn[Gn].fPath)!==-1&&(er=!1);if(er){var cr=createTag("link");cr.setAttribute("f-forigin",Vn[Gn].fOrigin),cr.setAttribute("f-origin",Vn[Gn].origin),cr.type="text/css",cr.rel="stylesheet",cr.href=Vn[Gn].fPath,document.body.appendChild(cr)}}else if(Vn[Gn].fOrigin==="t"||Vn[Gn].origin===2){for(ir=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Kn=0;Kn<ir.length;Kn+=1)Vn[Gn].fPath===ir[Kn].src&&(er=!1);if(er){var hr=createTag("link");hr.setAttribute("f-forigin",Vn[Gn].fOrigin),hr.setAttribute("f-origin",Vn[Gn].origin),hr.setAttribute("rel","stylesheet"),hr.setAttribute("href",Vn[Gn].fPath),Yn.appendChild(hr)}}Vn[Gn].helper=re(Vn[Gn],Yn),Vn[Gn].cache={},this.fonts.push(Vn[Gn])}qn===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Bn(Hn){if(Hn){this.chars||(this.chars=[]);var Yn,Vn=Hn.length,Gn,Zn=this.chars.length,qn;for(Yn=0;Yn<Vn;Yn+=1){for(Gn=0,qn=!1;Gn<Zn;)this.chars[Gn].style===Hn[Yn].style&&this.chars[Gn].fFamily===Hn[Yn].fFamily&&this.chars[Gn].ch===Hn[Yn].ch&&(qn=!0),Gn+=1;qn||(this.chars.push(Hn[Yn]),Zn+=1)}}}function w(Hn,Yn,Vn){for(var Gn=0,Zn=this.chars.length;Gn<Zn;){if(this.chars[Gn].ch===Hn&&this.chars[Gn].style===Yn&&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,Yn,Vn)),u}function J(Hn,Yn,Vn){var Gn=this.getFontByName(Yn),Zn=Hn;if(!Gn.cache[Zn]){var qn=Gn.helper;if(Hn===" "){var er=qn.measureText("|"+Hn+"|"),ir=qn.measureText("||");Gn.cache[Zn]=(er-ir)/100}else Gn.cache[Zn]=qn.measureText(Hn)/100}return Gn.cache[Zn]*Vn}function gn(Hn){for(var Yn=0,Vn=this.fonts.length;Yn<Vn;){if(this.fonts[Yn].fName===Hn)return this.fonts[Yn];Yn+=1}return this.fonts[0]}function Rn(Hn){var Yn=0,Vn=Hn.charCodeAt(0);if(Vn>=55296&&Vn<=56319){var Gn=Hn.charCodeAt(1);Gn>=56320&&Gn<=57343&&(Yn=(Vn-55296)*1024+Gn-56320+65536)}return Yn}function zn(Hn,Yn){var Vn=Hn.toString(16)+Yn.toString(16);return Pn.indexOf(Vn)!==-1}function Wn(Hn){return Hn===g}function Un(Hn){return Hn===m}function Qn(Hn){var Yn=Rn(Hn);return Yn>=y&&Yn<=x}function Jn(Hn){return Qn(Hn.substr(0,2))&&Qn(Hn.substr(2,2))}function tr(Hn){return f.indexOf(Hn)!==-1}function Xn(Hn,Yn){var Vn=Rn(Hn.substr(Yn,2));if(Vn!==h)return!1;var Gn=0;for(Yn+=2;Gn<5;){if(Vn=Rn(Hn.substr(Yn,2)),Vn<v||Vn>p)return!1;Gn+=1,Yn+=2}return Rn(Hn.substr(Yn,2))===d}function ar(){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=Wn,sr.isFlagEmoji=Jn,sr.isRegionalCode=Qn,sr.isCombinedCharacter=tr,sr.isRegionalFlag=Xn,sr.isVariationSelector=Un,sr.BLACK_FLAG_CODE_POINT=h;var nr={addChars:Bn,addFonts:Fn,getCharData:w,getFontByName:gn,measureText:J,checkLoadedFonts:_,setIsLoaded:ar};return sr.prototype=nr,sr}();function SlotManager(c){this.animationData=c}SlotManager.prototype.getProp=function(c){return this.animationData.slots&&this.animationData.slots[c.sid]?Object.assign(c,this.animationData.slots[c.sid].p):c};function slotFactory(c){return new SlotManager(c)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(u){this.renderableComponents.indexOf(u)===-1&&this.renderableComponents.push(u)},removeRenderableComponent:function(u){this.renderableComponents.indexOf(u)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(u),1)},prepareRenderableFrame:function(u){this.checkLayerLimits(u)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(u){this.data.ip-this.data.st<=u&&this.data.op-this.data.st>u?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var u,f=this.renderableComponents.length;for(u=0;u<f;u+=1)this.renderableComponents[u].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var c={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(u){return c[u]||""}}();function SliderEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function AngleEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function ColorEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,1,0,f)}function PointEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,1,0,f)}function LayerIndexEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function MaskIndexEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function CheckboxEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function NoValueEffect(){this.p={}}function EffectsManager(c,u){var f=c.ef||[];this.effectElements=[];var h,d=f.length,v;for(h=0;h<d;h+=1)v=new GroupEffect(f[h],u),this.effectElements.push(v)}function GroupEffect(c,u){this.init(c,u)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(c,u){this.data=c,this.effectElements=[],this.initDynamicPropertyContainer(u);var f,h=this.data.ef.length,d,v=this.data.ef;for(f=0;f<h;f+=1){switch(d=null,v[f].ty){case 0:d=new SliderEffect(v[f],u,this);break;case 1:d=new AngleEffect(v[f],u,this);break;case 2:d=new ColorEffect(v[f],u,this);break;case 3:d=new PointEffect(v[f],u,this);break;case 4:case 7:d=new CheckboxEffect(v[f],u,this);break;case 10:d=new LayerIndexEffect(v[f],u,this);break;case 11:d=new MaskIndexEffect(v[f],u,this);break;case 5:d=new EffectsManager(v[f],u);break;default:d=new NoValueEffect(v[f]);break}d&&this.effectElements.push(d)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var u=0,f=this.data.masksProperties.length;u<f;){if(this.data.masksProperties[u].mode!=="n"&&this.data.masksProperties[u].cl!==!1)return!0;u+=1}return!1},initExpressions:function(){var u=getExpressionInterfaces();if(u){var f=u("layer"),h=u("effects"),d=u("shape"),v=u("text"),p=u("comp");this.layerInterface=f(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var m=h.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(m),this.data.ty===0||this.data.xt?this.compInterface=p(this):this.data.ty===4?(this.layerInterface.shapeInterface=d(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=v(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var u=getBlendMode(this.data.bm),f=this.baseElement||this.layerElement;f.style["mix-blend-mode"]=u},initBaseData:function(u,f,h){this.globalData=f,this.comp=h,this.data=u,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(u,f){var h,d=this.dynamicProperties.length;for(h=0;h<d;h+=1)(f||this._isParent&&this.dynamicProperties[h].propType==="transform")&&(this.dynamicProperties[h].getValue(),this.dynamicProperties[h]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(u){this.dynamicProperties.indexOf(u)===-1&&this.dynamicProperties.push(u)}};function FootageElement(c,u,f){this.initFrame(),this.initRenderable(),this.assetData=u.getAssetData(c.refId),this.footageData=u.imageLoader.getAsset(this.assetData),this.initBaseData(c,u,f)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var c=getExpressionInterfaces();if(c){var u=c("footage");this.layerInterface=u(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(c,u,f){this.initFrame(),this.initRenderable(),this.assetData=u.getAssetData(c.refId),this.initBaseData(c,u,f),this._isPlaying=!1,this._canPlay=!1;var h=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(h),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,c.au&&c.au.lv?c.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(c){if(this.prepareRenderableFrame(c,!0),this.prepareProperties(c,!0),this.tm._placeholder)this._currentTime=c/this.data.sr;else{var u=this.tm.v;this._currentTime=u}this._volume=this.lv.v[0];var f=this._volume*this._volumeMultiplier;this._previousVolume!==f&&(this._previousVolume=f,this.audio.volume(f))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(c){this.audio.rate(c)},AudioElement.prototype.volume=function(c){this._volumeMultiplier=c,this._previousVolume=c*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(c){var u,f=this.layers.length,h;for(this.completeLayers=!0,u=f-1;u>=0;u-=1)this.elements[u]||(h=this.layers[u],h.ip-h.st<=c-this.layers[u].st&&h.op-h.st>c-this.layers[u].st&&this.buildItem(u)),this.completeLayers=this.elements[u]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(c){switch(c.ty){case 2:return this.createImage(c);case 0:return this.createComp(c);case 1:return this.createSolid(c);case 3:return this.createNull(c);case 4:return this.createShape(c);case 5:return this.createText(c);case 6:return this.createAudio(c);case 13:return this.createCamera(c);case 15:return this.createFootage(c);default:return this.createNull(c)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(c){return new AudioElement(c,this.globalData,this)},BaseRenderer.prototype.createFootage=function(c){return new FootageElement(c,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var c,u=this.layers.length;for(c=0;c<u;c+=1)this.buildItem(c);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(c){this.completeLayers=!1;var u,f=c.length,h,d=this.layers.length;for(u=0;u<f;u+=1)for(h=0;h<d;){if(this.layers[h].id===c[u].id){this.layers[h]=c[u];break}h+=1}},BaseRenderer.prototype.setProjectInterface=function(c){this.globalData.projectInterface=c},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(c,u,f){for(var h=this.elements,d=this.layers,v=0,p=d.length;v<p;)d[v].ind==u&&(!h[v]||h[v]===!0?(this.buildItem(v),this.addPendingElement(c)):(f.push(h[v]),h[v].setAsParent(),d[v].parent!==void 0?this.buildElementParenting(c,d[v].parent,f):c.setHierarchy(f))),v+=1},BaseRenderer.prototype.addPendingElement=function(c){this.pendingElements.push(c)},BaseRenderer.prototype.searchExtraCompositions=function(c){var u,f=c.length;for(u=0;u<f;u+=1)if(c[u].xt){var h=this.createComp(c[u]);h.initExpressions(),this.globalData.projectInterface.registerComposition(h)}},BaseRenderer.prototype.getElementById=function(c){var u,f=this.elements.length;for(u=0;u<f;u+=1)if(this.elements[u].data.ind===c)return this.elements[u];return null},BaseRenderer.prototype.getElementByPath=function(c){var u=c.shift(),f;if(typeof u=="number")f=this.elements[u];else{var h,d=this.elements.length;for(h=0;h<d;h+=1)if(this.elements[h].data.nm===u){f=this.elements[h];break}}return c.length===0?f:f.getElementByPath(c)},BaseRenderer.prototype.setupGlobalData=function(c,u){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(c),this.globalData.fontManager.addChars(c.chars),this.globalData.fontManager.addFonts(c.fonts,u),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=c.fr,this.globalData.nm=c.nm,this.globalData.compSize={w:c.w,h:c.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var u=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:u,localMat:u,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var u,f=this.finalTransform.mat,h=0,d=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;h<d;){if(this.hierarchy[h].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}h+=1}if(this.finalTransform._matMdf)for(u=this.finalTransform.mProp.v.props,f.cloneFromProps(u),h=0;h<d;h+=1)f.multiply(this.hierarchy[h].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var u=0,f=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;u<f;)this.localTransforms[u]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[u]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),u+=1;if(this.finalTransform._localMatMdf){var h=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(h),u=1;u<f;u+=1){var d=this.localTransforms[u].matrix;h.multiply(d)}h.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var v=this.finalTransform.localOpacity;for(u=0;u<f;u+=1)v*=this.localTransforms[u].opacity*.01;this.finalTransform.localOpacity=v}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var u=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(u.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var f=0,h=u.length;for(f=0;f<h;f+=1)this.localTransforms.push(u[f])}}},globalToLocal:function(u){var f=[];f.push(this.finalTransform);for(var h=!0,d=this.comp;h;)d.finalTransform?(d.data.hasMask&&f.splice(0,0,d.finalTransform),d=d.comp):h=!1;var v,p=f.length,m;for(v=0;v<p;v+=1)m=f[v].mat.applyToPointArray(0,0,0),u=[u[0]-m[0],u[1]-m[1],0];return u},mHelper:new Matrix};function MaskElement(c,u,f){this.data=c,this.element=u,this.globalData=f,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var h=this.globalData.defs,d,v=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(v),this.solidPath="";var p,m=this.masksProperties,g=0,y=[],x,Pn,b=createElementID(),vn,_,re,Fn,Bn="clipPath",w="clip-path";for(d=0;d<v;d+=1)if((m[d].mode!=="a"&&m[d].mode!=="n"||m[d].inv||m[d].o.k!==100||m[d].o.x)&&(Bn="mask",w="mask"),(m[d].mode==="s"||m[d].mode==="i")&&g===0?(vn=createNS("rect"),vn.setAttribute("fill","#ffffff"),vn.setAttribute("width",this.element.comp.data.w||0),vn.setAttribute("height",this.element.comp.data.h||0),y.push(vn)):vn=null,p=createNS("path"),m[d].mode==="n")this.viewData[d]={op:PropertyFactory.getProp(this.element,m[d].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,m[d],3),elem:p,lastPath:""},h.appendChild(p);else{g+=1,p.setAttribute("fill",m[d].mode==="s"?"#000000":"#ffffff"),p.setAttribute("clip-rule","nonzero");var J;if(m[d].x.k!==0?(Bn="mask",w="mask",Fn=PropertyFactory.getProp(this.element,m[d].x,0,null,this.element),J=createElementID(),_=createNS("filter"),_.setAttribute("id",J),re=createNS("feMorphology"),re.setAttribute("operator","erode"),re.setAttribute("in","SourceGraphic"),re.setAttribute("radius","0"),_.appendChild(re),h.appendChild(_),p.setAttribute("stroke",m[d].mode==="s"?"#000000":"#ffffff")):(re=null,Fn=null),this.storedData[d]={elem:p,x:Fn,expan:re,lastPath:"",lastOperator:"",filterId:J,lastRadius:0},m[d].mode==="i"){Pn=y.length;var gn=createNS("g");for(x=0;x<Pn;x+=1)gn.appendChild(y[x]);var Rn=createNS("mask");Rn.setAttribute("mask-type","alpha"),Rn.setAttribute("id",b+"_"+g),Rn.appendChild(p),h.appendChild(Rn),gn.setAttribute("mask","url("+getLocationHref()+"#"+b+"_"+g+")"),y.length=0,y.push(gn)}else y.push(p);m[d].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[d]={elem:p,lastPath:"",op:PropertyFactory.getProp(this.element,m[d].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,m[d],3),invRect:vn},this.viewData[d].prop.k||this.drawPath(m[d],this.viewData[d].prop.v,this.viewData[d])}for(this.maskElement=createNS(Bn),v=y.length,d=0;d<v;d+=1)this.maskElement.appendChild(y[d]);g>0&&(this.maskElement.setAttribute("id",b),this.element.maskedElement.setAttribute(w,"url("+getLocationHref()+"#"+b+")"),h.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(c){return this.viewData[c].prop},MaskElement.prototype.renderFrame=function(c){var u=this.element.finalTransform.mat,f,h=this.masksProperties.length;for(f=0;f<h;f+=1)if((this.viewData[f].prop._mdf||c)&&this.drawPath(this.masksProperties[f],this.viewData[f].prop.v,this.viewData[f]),(this.viewData[f].op._mdf||c)&&this.viewData[f].elem.setAttribute("fill-opacity",this.viewData[f].op.v),this.masksProperties[f].mode!=="n"&&(this.viewData[f].invRect&&(this.element.finalTransform.mProp._mdf||c)&&this.viewData[f].invRect.setAttribute("transform",u.getInverseMatrix().to2dCSS()),this.storedData[f].x&&(this.storedData[f].x._mdf||c))){var d=this.storedData[f].expan;this.storedData[f].x.v<0?(this.storedData[f].lastOperator!=="erode"&&(this.storedData[f].lastOperator="erode",this.storedData[f].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[f].filterId+")")),d.setAttribute("radius",-this.storedData[f].x.v)):(this.storedData[f].lastOperator!=="dilate"&&(this.storedData[f].lastOperator="dilate",this.storedData[f].elem.setAttribute("filter",null)),this.storedData[f].elem.setAttribute("stroke-width",this.storedData[f].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var c="M0,0 ";return c+=" h"+this.globalData.compSize.w,c+=" v"+this.globalData.compSize.h,c+=" h-"+this.globalData.compSize.w,c+=" v-"+this.globalData.compSize.h+" ",c},MaskElement.prototype.drawPath=function(c,u,f){var h=" M"+u.v[0][0]+","+u.v[0][1],d,v;for(v=u._length,d=1;d<v;d+=1)h+=" C"+u.o[d-1][0]+","+u.o[d-1][1]+" "+u.i[d][0]+","+u.i[d][1]+" "+u.v[d][0]+","+u.v[d][1];if(u.c&&v>1&&(h+=" C"+u.o[d-1][0]+","+u.o[d-1][1]+" "+u.i[0][0]+","+u.i[0][1]+" "+u.v[0][0]+","+u.v[0][1]),f.lastPath!==h){var p="";f.elem&&(u.c&&(p=c.inv?this.solidPath+h:h),f.elem.setAttribute("d",p)),f.lastPath=h}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var c={};c.createFilter=u,c.createAlphaToLuminanceFilter=f;function u(h,d){var v=createNS("filter");return v.setAttribute("id",h),d!==!0&&(v.setAttribute("filterUnits","objectBoundingBox"),v.setAttribute("x","0%"),v.setAttribute("y","0%"),v.setAttribute("width","100%"),v.setAttribute("height","100%")),v}function f(){var h=createNS("feColorMatrix");return h.setAttribute("type","matrix"),h.setAttribute("color-interpolation-filters","sRGB"),h.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),h}return c}(),featureSupport=function(){var c={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(c.maskType=!1),/firefox/i.test(navigator.userAgent)&&(c.svgLumaHidden=!1),c}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(c){var u,f="SourceGraphic",h=c.data.ef?c.data.ef.length:0,d=createElementID(),v=filtersFactory.createFilter(d,!0),p=0;this.filters=[];var m;for(u=0;u<h;u+=1){m=null;var g=c.data.ef[u].ty;if(registeredEffects$1[g]){var y=registeredEffects$1[g].effect;m=new y(v,c.effectsManager.effectElements[u],c,idPrefix+p,f),f=idPrefix+p,registeredEffects$1[g].countsAsEffect&&(p+=1)}m&&this.filters.push(m)}p&&(c.globalData.defs.appendChild(v),c.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+d+")")),this.filters.length&&c.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(c){var u,f=this.filters.length;for(u=0;u<f;u+=1)this.filters[u].renderFrame(c)},SVGEffects.prototype.getEffects=function(c){var u,f=this.filters.length,h=[];for(u=0;u<f;u+=1)this.filters[u].type===c&&h.push(this.filters[u]);return h};function registerEffect$1(c,u,f){registeredEffects$1[c]={effect:u,countsAsEffect:f}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var u=null;if(this.data.td){this.matteMasks={};var f=createNS("g");f.setAttribute("id",this.layerId),f.appendChild(this.layerElement),u=f,this.globalData.defs.appendChild(f)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),u=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var h=createNS("clipPath"),d=createNS("path");d.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var v=createElementID();if(h.setAttribute("id",v),h.appendChild(d),this.globalData.defs.appendChild(h),this.checkMasks()){var p=createNS("g");p.setAttribute("clip-path","url("+getLocationHref()+"#"+v+")"),p.appendChild(this.layerElement),this.transformedElement=p,u?u.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+v+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(u){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[u]){var f=this.layerId+"_"+u,h,d,v,p;if(u===1||u===3){var m=createNS("mask");m.setAttribute("id",f),m.setAttribute("mask-type",u===3?"luminance":"alpha"),v=createNS("use"),v.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),m.appendChild(v),this.globalData.defs.appendChild(m),!featureSupport.maskType&&u===1&&(m.setAttribute("mask-type","luminance"),h=createElementID(),d=filtersFactory.createFilter(h),this.globalData.defs.appendChild(d),d.appendChild(filtersFactory.createAlphaToLuminanceFilter()),p=createNS("g"),p.appendChild(v),m.appendChild(p),p.setAttribute("filter","url("+getLocationHref()+"#"+h+")"))}else if(u===2){var g=createNS("mask");g.setAttribute("id",f),g.setAttribute("mask-type","alpha");var y=createNS("g");g.appendChild(y),h=createElementID(),d=filtersFactory.createFilter(h);var x=createNS("feComponentTransfer");x.setAttribute("in","SourceGraphic"),d.appendChild(x);var Pn=createNS("feFuncA");Pn.setAttribute("type","table"),Pn.setAttribute("tableValues","1.0 0.0"),x.appendChild(Pn),this.globalData.defs.appendChild(d);var b=createNS("rect");b.setAttribute("width",this.comp.data.w),b.setAttribute("height",this.comp.data.h),b.setAttribute("x","0"),b.setAttribute("y","0"),b.setAttribute("fill","#ffffff"),b.setAttribute("opacity","0"),y.setAttribute("filter","url("+getLocationHref()+"#"+h+")"),y.appendChild(b),v=createNS("use"),v.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),y.appendChild(v),featureSupport.maskType||(g.setAttribute("mask-type","luminance"),d.appendChild(filtersFactory.createAlphaToLuminanceFilter()),p=createNS("g"),y.appendChild(b),p.appendChild(this.layerElement),y.appendChild(p)),this.globalData.defs.appendChild(g)}this.matteMasks[u]=f}return this.matteMasks[u]},setMatte:function(u){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+u+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(u){this.hierarchy=u},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var c={initElement:function(f,h,d){this.initFrame(),this.initBaseData(f,h,d),this.initTransform(f,h,d),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var f=this.baseElement||this.layerElement;f.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var f=this.baseElement||this.layerElement;f.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(f){this._mdf=!1,this.prepareRenderableFrame(f),this.prepareProperties(f,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(c)],RenderableDOMElement)})();function IImageElement(c,u,f){this.assetData=u.getAssetData(c.refId),this.assetData&&this.assetData.sid&&(this.assetData=u.slotManager.getProp(this.assetData)),this.initElement(c,u,f),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",c),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(c,u){this.elem=c,this.pos=u}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(u){var f,h=this.shapeModifiers.length;for(f=0;f<h;f+=1)this.shapeModifiers[f].addShape(u)},isShapeInAnimatedModifiers:function(u){for(var f=0,h=this.shapeModifiers.length;f<h;)if(this.shapeModifiers[f].isAnimatedWithShape(u))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var u,f=this.shapes.length;for(u=0;u<f;u+=1)this.shapes[u].sh.reset();f=this.shapeModifiers.length;var h;for(u=f-1;u>=0&&(h=this.shapeModifiers[u].processShapes(this._isFirstFrame),!h);u-=1);}},searchProcessedElement:function(u){for(var f=this.processedElements,h=0,d=f.length;h<d;){if(f[h].elem===u)return f[h].pos;h+=1}return 0},addProcessedElement:function(u,f){for(var h=this.processedElements,d=h.length;d;)if(d-=1,h[d].elem===u){h[d].pos=f;return}h.push(new ProcessedElement(u,f))},prepareFrame:function(u){this.prepareRenderableFrame(u),this.prepareProperties(u,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(c,u,f){this.caches=[],this.styles=[],this.transformers=c,this.lStr="",this.sh=f,this.lvl=u,this._isAnimated=!!f.k;for(var h=0,d=c.length;h<d;){if(c[h].mProps.dynamicProperties.length){this._isAnimated=!0;break}h+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(c,u){this.data=c,this.type=c.ty,this.d="",this.lvl=u,this._mdf=!1,this.closed=c.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(c,u,f,h){this.elem=c,this.frameId=-1,this.dataProps=createSizedArray(u.length),this.renderer=f,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",u.length?u.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(h);var d,v=u.length||0,p;for(d=0;d<v;d+=1)p=PropertyFactory.getProp(c,u[d].v,0,0,this),this.k=p.k||this.k,this.dataProps[d]={n:u[d].n,p};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(c){if(!(this.elem.globalData.frameId===this.frameId&&!c)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||c,this._mdf)){var u=0,f=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),u=0;u<f;u+=1)this.dataProps[u].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[u].p.v:this.dashArray[u]=this.dataProps[u].p.v:this.dashoffset[0]=this.dataProps[u].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(c,u.o,0,.01,this),this.w=PropertyFactory.getProp(c,u.w,0,null,this),this.d=new DashProperty(c,u.d||{},"svg",this),this.c=PropertyFactory.getProp(c,u.c,1,255,this),this.style=f,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(c,u.o,0,.01,this),this.c=PropertyFactory.getProp(c,u.c,1,255,this),this.style=f}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.style=f}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(c,u,f){this.data=u,this.c=createTypedArray("uint8c",u.p*4);var h=u.k.k[0].s?u.k.k[0].s.length-u.p*4:u.k.k.length-u.p*4;this.o=createTypedArray("float32",h),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=h,this.initDynamicPropertyContainer(f),this.prop=PropertyFactory.getProp(c,u.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(c,u){for(var f=0,h=this.o.length/2,d;f<h;){if(d=Math.abs(c[f*4]-c[u*4+f*2]),d>.01)return!1;f+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var c=0,u=this.data.k.k.length;c<u;){if(!this.comparePoints(this.data.k.k[c].s,this.data.p))return!1;c+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(c){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||c){var u,f=this.data.p*4,h,d;for(u=0;u<f;u+=1)h=u%4===0?100:255,d=Math.round(this.prop.v[u]*h),this.c[u]!==d&&(this.c[u]=d,this._cmdf=!c);if(this.o.length)for(f=this.prop.v.length,u=this.data.p*4;u<f;u+=1)h=u%2===0?100:1,d=u%2===0?Math.round(this.prop.v[u]*100):this.prop.v[u],this.o[u-this.data.p*4]!==d&&(this.o[u-this.data.p*4]=d,this._omdf=!c);this._mdf=!c}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.initGradientData(c,u,f)}SVGGradientFillStyleData.prototype.initGradientData=function(c,u,f){this.o=PropertyFactory.getProp(c,u.o,0,.01,this),this.s=PropertyFactory.getProp(c,u.s,1,null,this),this.e=PropertyFactory.getProp(c,u.e,1,null,this),this.h=PropertyFactory.getProp(c,u.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(c,u.a||{k:0},0,degToRads,this),this.g=new GradientProperty(c,u.g,this),this.style=f,this.stops=[],this.setGradientData(f.pElem,u),this.setGradientOpacity(u,f),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(c,u){var f=createElementID(),h=createNS(u.t===1?"linearGradient":"radialGradient");h.setAttribute("id",f),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse");var d=[],v,p,m;for(m=u.g.p*4,p=0;p<m;p+=4)v=createNS("stop"),h.appendChild(v),d.push(v);c.setAttribute(u.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+f+")"),this.gf=h,this.cst=d},SVGGradientFillStyleData.prototype.setGradientOpacity=function(c,u){if(this.g._hasOpacity&&!this.g._collapsable){var f,h,d,v=createNS("mask"),p=createNS("path");v.appendChild(p);var m=createElementID(),g=createElementID();v.setAttribute("id",g);var y=createNS(c.t===1?"linearGradient":"radialGradient");y.setAttribute("id",m),y.setAttribute("spreadMethod","pad"),y.setAttribute("gradientUnits","userSpaceOnUse"),d=c.g.k.k[0].s?c.g.k.k[0].s.length:c.g.k.k.length;var x=this.stops;for(h=c.g.p*4;h<d;h+=2)f=createNS("stop"),f.setAttribute("stop-color","rgb(255,255,255)"),y.appendChild(f),x.push(f);p.setAttribute(c.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+m+")"),c.ty==="gs"&&(p.setAttribute("stroke-linecap",lineCapEnum[c.lc||2]),p.setAttribute("stroke-linejoin",lineJoinEnum[c.lj||2]),c.lj===1&&p.setAttribute("stroke-miterlimit",c.ml)),this.of=y,this.ms=v,this.ost=x,this.maskId=g,u.msElem=p}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(c,u.w,0,null,this),this.d=new DashProperty(c,u.d||{},"svg",this),this.initGradientData(c,u,f),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(c,u,f){this.transform={mProps:c,op:u,container:f},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(u,f,h,d){if(f===0)return"";var v=u.o,p=u.i,m=u.v,g,y=" M"+d.applyToPointStringified(m[0][0],m[0][1]);for(g=1;g<f;g+=1)y+=" C"+d.applyToPointStringified(v[g-1][0],v[g-1][1])+" "+d.applyToPointStringified(p[g][0],p[g][1])+" "+d.applyToPointStringified(m[g][0],m[g][1]);return h&&f&&(y+=" C"+d.applyToPointStringified(v[g-1][0],v[g-1][1])+" "+d.applyToPointStringified(p[0][0],p[0][1])+" "+d.applyToPointStringified(m[0][0],m[0][1]),y+="z"),y},SVGElementsRenderer=function(){var c=new Matrix,u=new Matrix,f={createRenderFunction:h};function h(Pn){switch(Pn.ty){case"fl":return m;case"gf":return y;case"gs":return g;case"st":return x;case"sh":case"el":case"rc":case"sr":return p;case"tr":return d;case"no":return v;default:return null}}function d(Pn,b,vn){(vn||b.transform.op._mdf)&&b.transform.container.setAttribute("opacity",b.transform.op.v),(vn||b.transform.mProps._mdf)&&b.transform.container.setAttribute("transform",b.transform.mProps.v.to2dCSS())}function v(){}function p(Pn,b,vn){var _,re,Fn,Bn,w,J,gn=b.styles.length,Rn=b.lvl,zn,Wn,Un,Qn;for(J=0;J<gn;J+=1){if(Bn=b.sh._mdf||vn,b.styles[J].lvl<Rn){for(Wn=u.reset(),Un=Rn-b.styles[J].lvl,Qn=b.transformers.length-1;!Bn&&Un>0;)Bn=b.transformers[Qn].mProps._mdf||Bn,Un-=1,Qn-=1;if(Bn)for(Un=Rn-b.styles[J].lvl,Qn=b.transformers.length-1;Un>0;)Wn.multiply(b.transformers[Qn].mProps.v),Un-=1,Qn-=1}else Wn=c;if(zn=b.sh.paths,re=zn._length,Bn){for(Fn="",_=0;_<re;_+=1)w=zn.shapes[_],w&&w._length&&(Fn+=buildShapeString(w,w._length,w.c,Wn));b.caches[J]=Fn}else Fn=b.caches[J];b.styles[J].d+=Pn.hd===!0?"":Fn,b.styles[J]._mdf=Bn||b.styles[J]._mdf}}function m(Pn,b,vn){var _=b.style;(b.c._mdf||vn)&&_.pElem.setAttribute("fill","rgb("+bmFloor(b.c.v[0])+","+bmFloor(b.c.v[1])+","+bmFloor(b.c.v[2])+")"),(b.o._mdf||vn)&&_.pElem.setAttribute("fill-opacity",b.o.v)}function g(Pn,b,vn){y(Pn,b,vn),x(Pn,b,vn)}function y(Pn,b,vn){var _=b.gf,re=b.g._hasOpacity,Fn=b.s.v,Bn=b.e.v;if(b.o._mdf||vn){var w=Pn.ty==="gf"?"fill-opacity":"stroke-opacity";b.style.pElem.setAttribute(w,b.o.v)}if(b.s._mdf||vn){var J=Pn.t===1?"x1":"cx",gn=J==="x1"?"y1":"cy";_.setAttribute(J,Fn[0]),_.setAttribute(gn,Fn[1]),re&&!b.g._collapsable&&(b.of.setAttribute(J,Fn[0]),b.of.setAttribute(gn,Fn[1]))}var Rn,zn,Wn,Un;if(b.g._cmdf||vn){Rn=b.cst;var Qn=b.g.c;for(Wn=Rn.length,zn=0;zn<Wn;zn+=1)Un=Rn[zn],Un.setAttribute("offset",Qn[zn*4]+"%"),Un.setAttribute("stop-color","rgb("+Qn[zn*4+1]+","+Qn[zn*4+2]+","+Qn[zn*4+3]+")")}if(re&&(b.g._omdf||vn)){var Jn=b.g.o;for(b.g._collapsable?Rn=b.cst:Rn=b.ost,Wn=Rn.length,zn=0;zn<Wn;zn+=1)Un=Rn[zn],b.g._collapsable||Un.setAttribute("offset",Jn[zn*2]+"%"),Un.setAttribute("stop-opacity",Jn[zn*2+1])}if(Pn.t===1)(b.e._mdf||vn)&&(_.setAttribute("x2",Bn[0]),_.setAttribute("y2",Bn[1]),re&&!b.g._collapsable&&(b.of.setAttribute("x2",Bn[0]),b.of.setAttribute("y2",Bn[1])));else{var tr;if((b.s._mdf||b.e._mdf||vn)&&(tr=Math.sqrt(Math.pow(Fn[0]-Bn[0],2)+Math.pow(Fn[1]-Bn[1],2)),_.setAttribute("r",tr),re&&!b.g._collapsable&&b.of.setAttribute("r",tr)),b.e._mdf||b.h._mdf||b.a._mdf||vn){tr||(tr=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]),ar=b.h.v;ar>=1?ar=.99:ar<=-1&&(ar=-.99);var sr=tr*ar,nr=Math.cos(Xn+b.a.v)*sr+Fn[0],Hn=Math.sin(Xn+b.a.v)*sr+Fn[1];_.setAttribute("fx",nr),_.setAttribute("fy",Hn),re&&!b.g._collapsable&&(b.of.setAttribute("fx",nr),b.of.setAttribute("fy",Hn))}}}function x(Pn,b,vn){var _=b.style,re=b.d;re&&(re._mdf||vn)&&re.dashStr&&(_.pElem.setAttribute("stroke-dasharray",re.dashStr),_.pElem.setAttribute("stroke-dashoffset",re.dashoffset[0])),b.c&&(b.c._mdf||vn)&&_.pElem.setAttribute("stroke","rgb("+bmFloor(b.c.v[0])+","+bmFloor(b.c.v[1])+","+bmFloor(b.c.v[2])+")"),(b.o._mdf||vn)&&_.pElem.setAttribute("stroke-opacity",b.o.v),(b.w._mdf||vn)&&(_.pElem.setAttribute("stroke-width",b.w.v),_.msElem&&_.msElem.setAttribute("stroke-width",b.w.v))}return f}();function SVGShapeElement(c,u,f){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(c,u,f),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var c,u=this.shapes.length,f,h,d=this.stylesList.length,v,p=[],m=!1;for(h=0;h<d;h+=1){for(v=this.stylesList[h],m=!1,p.length=0,c=0;c<u;c+=1)f=this.shapes[c],f.styles.indexOf(v)!==-1&&(p.push(f),m=f._isAnimated||m);p.length>1&&m&&this.setShapesAsAnimated(p)}},SVGShapeElement.prototype.setShapesAsAnimated=function(c){var u,f=c.length;for(u=0;u<f;u+=1)c[u].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(c,u){var f,h=new SVGStyleData(c,u),d=h.pElem;if(c.ty==="st")f=new SVGStrokeStyleData(this,c,h);else if(c.ty==="fl")f=new SVGFillStyleData(this,c,h);else if(c.ty==="gf"||c.ty==="gs"){var v=c.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;f=new v(this,c,h),this.globalData.defs.appendChild(f.gf),f.maskId&&(this.globalData.defs.appendChild(f.ms),this.globalData.defs.appendChild(f.of),d.setAttribute("mask","url("+getLocationHref()+"#"+f.maskId+")"))}else c.ty==="no"&&(f=new SVGNoStyleData(this,c,h));return(c.ty==="st"||c.ty==="gs")&&(d.setAttribute("stroke-linecap",lineCapEnum[c.lc||2]),d.setAttribute("stroke-linejoin",lineJoinEnum[c.lj||2]),d.setAttribute("fill-opacity","0"),c.lj===1&&d.setAttribute("stroke-miterlimit",c.ml)),c.r===2&&d.setAttribute("fill-rule","evenodd"),c.ln&&d.setAttribute("id",c.ln),c.cl&&d.setAttribute("class",c.cl),c.bm&&(d.style["mix-blend-mode"]=getBlendMode(c.bm)),this.stylesList.push(h),this.addToAnimatedContents(c,f),f},SVGShapeElement.prototype.createGroupElement=function(c){var u=new ShapeGroupData;return c.ln&&u.gr.setAttribute("id",c.ln),c.cl&&u.gr.setAttribute("class",c.cl),c.bm&&(u.gr.style["mix-blend-mode"]=getBlendMode(c.bm)),u},SVGShapeElement.prototype.createTransformElement=function(c,u){var f=TransformPropertyFactory.getTransformProperty(this,c,this),h=new SVGTransformData(f,f.o,u);return this.addToAnimatedContents(c,h),h},SVGShapeElement.prototype.createShapeElement=function(c,u,f){var h=4;c.ty==="rc"?h=5:c.ty==="el"?h=6:c.ty==="sr"&&(h=7);var d=ShapePropertyFactory.getShapeProp(this,c,h,this),v=new SVGShapeData(u,f,d);return this.shapes.push(v),this.addShapeToModifiers(v),this.addToAnimatedContents(c,v),v},SVGShapeElement.prototype.addToAnimatedContents=function(c,u){for(var f=0,h=this.animatedContents.length;f<h;){if(this.animatedContents[f].element===u)return;f+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(c),element:u,data:c})},SVGShapeElement.prototype.setElementStyles=function(c){var u=c.styles,f,h=this.stylesList.length;for(f=0;f<h;f+=1)this.stylesList[f].closed||u.push(this.stylesList[f])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var c,u=this.itemsData.length;for(c=0;c<u;c+=1)this.prevViewData[c]=this.itemsData[c];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),u=this.dynamicProperties.length,c=0;c<u;c+=1)this.dynamicProperties[c].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(c,u,f,h,d,v,p){var m=[].concat(v),g,y=c.length-1,x,Pn,b=[],vn=[],_,re,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],d),c[g]._render&&u[g].style.pElem.parentNode!==h&&h.appendChild(u[g].style.pElem),b.push(u[g].style);else if(c[g].ty==="gr"){if(!Fn)u[g]=this.createGroupElement(c[g]);else for(Pn=u[g].it.length,x=0;x<Pn;x+=1)u[g].prevViewData[x]=u[g].it[x];this.searchShapes(c[g].it,u[g].it,u[g].prevViewData,u[g].gr,d+1,m,p),c[g]._render&&u[g].gr.parentNode!==h&&h.appendChild(u[g].gr)}else c[g].ty==="tr"?(Fn||(u[g]=this.createTransformElement(c[g],h)),_=u[g].transform,m.push(_)):c[g].ty==="sh"||c[g].ty==="rc"||c[g].ty==="el"||c[g].ty==="sr"?(Fn||(u[g]=this.createShapeElement(c[g],m,d)),this.setElementStyles(u[g])):c[g].ty==="tm"||c[g].ty==="rd"||c[g].ty==="ms"||c[g].ty==="pb"||c[g].ty==="zz"||c[g].ty==="op"?(Fn?(re=u[g],re.closed=!1):(re=ShapeModifiers.getModifier(c[g].ty),re.init(this,c[g]),u[g]=re,this.shapeModifiers.push(re)),vn.push(re)):c[g].ty==="rp"&&(Fn?(re=u[g],re.closed=!0):(re=ShapeModifiers.getModifier(c[g].ty),u[g]=re,re.init(this,c,g,u),this.shapeModifiers.push(re),p=!1),vn.push(re));this.addProcessedElement(c[g],g+1)}for(y=b.length,g=0;g<y;g+=1)b[g].closed=!0;for(y=vn.length,g=0;g<y;g+=1)vn[g].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var c,u=this.stylesList.length;for(c=0;c<u;c+=1)this.stylesList[c].reset();for(this.renderShape(),c=0;c<u;c+=1)(this.stylesList[c]._mdf||this._isFirstFrame)&&(this.stylesList[c].msElem&&(this.stylesList[c].msElem.setAttribute("d",this.stylesList[c].d),this.stylesList[c].d="M0 0"+this.stylesList[c].d),this.stylesList[c].pElem.setAttribute("d",this.stylesList[c].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var c,u=this.animatedContents.length,f;for(c=0;c<u;c+=1)f=this.animatedContents[c],(this._isFirstFrame||f.element._isAnimated)&&f.data!==!0&&f.fn(f.data,f.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(c,u,f,h,d,v){this.o=c,this.sw=u,this.sc=f,this.fc=h,this.m=d,this.p=v,this._mdf={o:!0,sw:!!u,sc:!!f,fc:!!h,m:!0,p:!0}}LetterProps.prototype.update=function(c,u,f,h,d,v){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var p=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,p=!0),this.sw!==u&&(this.sw=u,this._mdf.sw=!0,p=!0),this.sc!==f&&(this.sc=f,this._mdf.sc=!0,p=!0),this.fc!==h&&(this.fc=h,this._mdf.fc=!0,p=!0),this.m!==d&&(this.m=d,this._mdf.m=!0,p=!0),v.length&&(this.p[0]!==v[0]||this.p[1]!==v[1]||this.p[4]!==v[4]||this.p[5]!==v[5]||this.p[12]!==v[12]||this.p[13]!==v[13])&&(this.p=v,this._mdf.p=!0,p=!0),p};function TextProperty(c,u){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,u.d&&u.d.sid&&(u.d=c.globalData.slotManager.getProp(u.d)),this.data=u,this.elem=c,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(c,u){for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(c[f]=u[f]);return c},TextProperty.prototype.setCurrentData=function(c){c.__complete||this.completeTextData(c),this.currentData=c,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(c){this.effectsSequence.push(c),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(c){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!c)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var u=this.currentData,f=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var h,d=this.effectsSequence.length,v=c||this.data.d.k[this.keysIndex].s;for(h=0;h<d;h+=1)f!==this.keysIndex?v=this.effectsSequence[h](v,v.t):v=this.effectsSequence[h](this.currentData,v.t);u!==v&&this.setCurrentData(v),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var c=this.data.d.k,u=this.elem.comp.renderedFrame,f=0,h=c.length;f<=h-1&&!(f===h-1||c[f+1].t>u);)f+=1;return this.keysIndex!==f&&(this.keysIndex=f),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(c){for(var u=[],f=0,h=c.length,d,v,p=!1,m=!1,g="";f<h;)p=m,m=!1,d=c.charCodeAt(f),g=c.charAt(f),FontManager.isCombinedCharacter(d)?p=!0:d>=55296&&d<=56319?FontManager.isRegionalFlag(c,f)?g=c.substr(f,14):(v=c.charCodeAt(f+1),v>=56320&&v<=57343&&(FontManager.isModifier(d,v)?(g=c.substr(f,2),p=!0):FontManager.isFlagEmoji(c.substr(f,4))?g=c.substr(f,4):g=c.substr(f,2))):d>56319?(v=c.charCodeAt(f+1),FontManager.isVariationSelector(d)&&(p=!0)):FontManager.isZeroWidthJoiner(d)&&(p=!0,m=!0),p?(u[u.length-1]+=g,p=!1):u.push(g),f+=g.length;return u},TextProperty.prototype.completeTextData=function(c){c.__complete=!0;var u=this.elem.globalData.fontManager,f=this.data,h=[],d,v,p,m=0,g,y=f.m.g,x=0,Pn=0,b=0,vn=[],_=0,re=0,Fn,Bn,w=u.getFontByName(c.f),J,gn=0,Rn=getFontProperties(w);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,Wn;if(c.sz)for(var Un=!0,Qn=c.sz[0],Jn=c.sz[1],tr,Xn;Un;){Xn=this.buildFinalText(c.t),tr=0,_=0,v=Xn.length,zn=c.tr/1e3*c.finalSize;var ar=-1;for(d=0;d<v;d+=1)Wn=Xn[d].charCodeAt(0),p=!1,Xn[d]===" "?ar=d:(Wn===13||Wn===3)&&(_=0,p=!0,tr+=c.finalLineHeight||c.finalSize*1.2),u.chars?(J=u.getCharData(Xn[d],w.fStyle,w.fFamily),gn=p?0:J.w*c.finalSize/100):gn=u.measureText(Xn[d],c.f,c.finalSize),_+gn>Qn&&Xn[d]!==" "?(ar===-1?v+=1:d=ar,tr+=c.finalLineHeight||c.finalSize*1.2,Xn.splice(d,ar===d?1:0,"\r"),ar=-1,_=0):(_+=gn,_+=zn);tr+=w.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&Jn<tr?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Xn,v=c.finalText.length,Un=!1)}_=-zn,gn=0;var sr=0,nr;for(d=0;d<v;d+=1)if(p=!1,nr=c.finalText[d],Wn=nr.charCodeAt(0),Wn===13||Wn===3?(sr=0,vn.push(_),re=_>re?_:re,_=-2*zn,g="",p=!0,b+=1):g=nr,u.chars?(J=u.getCharData(nr,w.fStyle,u.getFontByName(c.f).fFamily),gn=p?0:J.w*c.finalSize/100):gn=u.measureText(g,c.f,c.finalSize),nr===" "?sr+=gn+zn:(_+=gn+zn+sr,sr=0),h.push({l:gn,an:gn,add:x,n:p,anIndexes:[],val:g,line:b,animatorJustifyOffset:0}),y==2){if(x+=gn,g===""||g===" "||d===v-1){for((g===""||g===" ")&&(x-=gn);Pn<=d;)h[Pn].an=x,h[Pn].ind=m,h[Pn].extra=gn,Pn+=1;m+=1,x=0}}else if(y==3){if(x+=gn,g===""||d===v-1){for(g===""&&(x-=gn);Pn<=d;)h[Pn].an=x,h[Pn].ind=m,h[Pn].extra=gn,Pn+=1;x=0,m+=1}}else h[m].ind=m,h[m].extra=0,m+=1;if(c.l=h,re=_>re?_:re,vn.push(_),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=re,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0}c.lineWidths=vn;var Hn=f.a,Yn,Vn;Bn=Hn.length;var Gn,Zn,qn=[];for(Fn=0;Fn<Bn;Fn+=1){for(Yn=Hn[Fn],Yn.a.sc&&(c.strokeColorAnim=!0),Yn.a.sw&&(c.strokeWidthAnim=!0),(Yn.a.fc||Yn.a.fh||Yn.a.fs||Yn.a.fb)&&(c.fillColorAnim=!0),Zn=0,Gn=Yn.s.b,d=0;d<v;d+=1)Vn=h[d],Vn.anIndexes[Fn]=Zn,(Gn==1&&Vn.val!==""||Gn==2&&Vn.val!==""&&Vn.val!==" "||Gn==3&&(Vn.n||Vn.val==" "||d==v-1)||Gn==4&&(Vn.n||d==v-1))&&(Yn.s.rn===1&&qn.push(Zn),Zn+=1);f.a[Fn].s.totalChars=Zn;var er=-1,ir;if(Yn.s.rn===1)for(d=0;d<v;d+=1)Vn=h[d],er!=Vn.anIndexes[Fn]&&(er=Vn.anIndexes[Fn],ir=qn.splice(Math.floor(Math.random()*qn.length),1)[0]),Vn.anIndexes[Fn]=ir}c.yOffset=c.finalLineHeight||c.finalSize*1.2,c.ls=c.ls||0,c.ascent=w.ascent*c.finalSize/100},TextProperty.prototype.updateDocumentData=function(c,u){u=u===void 0?this.keysIndex:u;var f=this.copyData({},this.data.d.k[u].s);f=this.copyData(f,c),this.data.d.k[u].s=f,this.recalculate(u),this.setCurrentData(f),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(c){var u=this.data.d.k[c].s;u.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(u)},TextProperty.prototype.canResizeFont=function(c){this.canResize=c,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(c){this.minimumFontSize=Math.floor(c)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var c=Math.max,u=Math.min,f=Math.floor;function h(v,p){this._currentTextLength=-1,this.k=!1,this.data=p,this.elem=v,this.comp=v.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(v),this.s=PropertyFactory.getProp(v,p.s||{k:0},0,0,this),"e"in p?this.e=PropertyFactory.getProp(v,p.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(v,p.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(v,p.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(v,p.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(v,p.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(v,p.a,0,.01,this),this.dynamicProperties.length||this.getValue()}h.prototype={getMult:function(p){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var m=0,g=0,y=1,x=1;this.ne.v>0?m=this.ne.v/100:g=-this.ne.v/100,this.xe.v>0?y=1-this.xe.v/100:x=1+this.xe.v/100;var Pn=BezierFactory.getBezierEasing(m,g,y,x).get,b=0,vn=this.finalS,_=this.finalE,re=this.data.sh;if(re===2)_===vn?b=p>=_?1:0:b=c(0,u(.5/(_-vn)+(p-vn)/(_-vn),1)),b=Pn(b);else if(re===3)_===vn?b=p>=_?0:1:b=1-c(0,u(.5/(_-vn)+(p-vn)/(_-vn),1)),b=Pn(b);else if(re===4)_===vn?b=0:(b=c(0,u(.5/(_-vn)+(p-vn)/(_-vn),1)),b<.5?b*=2:b=1-2*(b-.5)),b=Pn(b);else if(re===5){if(_===vn)b=0;else{var Fn=_-vn;p=u(c(0,p+.5-vn),_-vn);var Bn=-Fn/2+p,w=Fn/2;b=Math.sqrt(1-Bn*Bn/(w*w))}b=Pn(b)}else re===6?(_===vn?b=0:(p=u(c(0,p+.5-vn),_-vn),b=(1+Math.cos(Math.PI+Math.PI*2*p/(_-vn)))/2),b=Pn(b)):(p>=f(vn)&&(p-vn<0?b=c(0,u(u(_,1)-(vn-p),1)):b=c(0,u(_-p,1))),b=Pn(b));if(this.sm.v!==100){var J=this.sm.v*.01;J===0&&(J=1e-8);var gn=.5-J*.5;b<gn?b=0:(b=(b-gn)/J,b>1&&(b=1))}return b*this.a.v},getValue:function(p){this.iterateDynamicProperties(),this._mdf=p||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,p&&this.data.r===2&&(this.e.v=this._currentTextLength);var m=this.data.r===2?1:100/this.data.totalChars,g=this.o.v/m,y=this.s.v/m+g,x=this.e.v/m+g;if(y>x){var Pn=y;y=x,x=Pn}this.finalS=y,this.finalE=x}},extendPrototype([DynamicPropertyContainer],h);function d(v,p,m){return new h(v,p)}return{getTextSelectorProp:d}}();function TextAnimatorDataProperty(c,u,f){var h={propType:!1},d=PropertyFactory.getProp,v=u.a;this.a={r:v.r?d(c,v.r,0,degToRads,f):h,rx:v.rx?d(c,v.rx,0,degToRads,f):h,ry:v.ry?d(c,v.ry,0,degToRads,f):h,sk:v.sk?d(c,v.sk,0,degToRads,f):h,sa:v.sa?d(c,v.sa,0,degToRads,f):h,s:v.s?d(c,v.s,1,.01,f):h,a:v.a?d(c,v.a,1,0,f):h,o:v.o?d(c,v.o,0,.01,f):h,p:v.p?d(c,v.p,1,0,f):h,sw:v.sw?d(c,v.sw,0,0,f):h,sc:v.sc?d(c,v.sc,1,0,f):h,fc:v.fc?d(c,v.fc,1,0,f):h,fh:v.fh?d(c,v.fh,0,0,f):h,fs:v.fs?d(c,v.fs,0,.01,f):h,fb:v.fb?d(c,v.fb,0,.01,f):h,t:v.t?d(c,v.t,0,0,f):h},this.s=TextSelectorProp.getTextSelectorProp(c,u.s,f),this.s.t=u.s.t}function TextAnimatorProperty(c,u,f){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=c,this._renderType=u,this._elem=f,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(f)}TextAnimatorProperty.prototype.searchProperties=function(){var c,u=this._textData.a.length,f,h=PropertyFactory.getProp;for(c=0;c<u;c+=1)f=this._textData.a[c],this._animatorsData[c]=new TextAnimatorDataProperty(this._elem,f,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:h(this._elem,this._textData.p.a,0,0,this),f:h(this._elem,this._textData.p.f,0,0,this),l:h(this._elem,this._textData.p.l,0,0,this),r:h(this._elem,this._textData.p.r,0,0,this),p:h(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=h(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(c,u){if(this.lettersChangedFlag=u,!(!this._mdf&&!this._isFirstFrame&&!u&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var f=this._moreOptions.alignment.v,h=this._animatorsData,d=this._textData,v=this.mHelper,p=this._renderType,m=this.renderedLetters.length,g,y,x,Pn,b=c.l,vn,_,re,Fn,Bn,w,J,gn,Rn,zn,Wn,Un,Qn,Jn,tr;if(this._hasMaskedPath){if(tr=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Xn=tr.v;this._pathData.r.v&&(Xn=Xn.reverse()),vn={tLength:0,segments:[]},Pn=Xn._length-1;var ar;for(Un=0,x=0;x<Pn;x+=1)ar=bez.buildBezierData(Xn.v[x],Xn.v[x+1],[Xn.o[x][0]-Xn.v[x][0],Xn.o[x][1]-Xn.v[x][1]],[Xn.i[x+1][0]-Xn.v[x+1][0],Xn.i[x+1][1]-Xn.v[x+1][1]]),vn.tLength+=ar.segmentLength,vn.segments.push(ar),Un+=ar.segmentLength;x=Pn,tr.v.c&&(ar=bez.buildBezierData(Xn.v[x],Xn.v[0],[Xn.o[x][0]-Xn.v[x][0],Xn.o[x][1]-Xn.v[x][1]],[Xn.i[0][0]-Xn.v[0][0],Xn.i[0][1]-Xn.v[0][1]]),vn.tLength+=ar.segmentLength,vn.segments.push(ar),Un+=ar.segmentLength),this._pathData.pi=vn}if(vn=this._pathData.pi,_=this._pathData.f.v,J=0,w=1,Fn=0,Bn=!0,zn=vn.segments,_<0&&tr.v.c)for(vn.tLength<Math.abs(_)&&(_=-Math.abs(_)%vn.tLength),J=zn.length-1,Rn=zn[J].points,w=Rn.length-1;_<0;)_+=Rn[w].partialLength,w-=1,w<0&&(J-=1,Rn=zn[J].points,w=Rn.length-1);Rn=zn[J].points,gn=Rn[w-1],re=Rn[w],Wn=re.partialLength}Pn=b.length,g=0,y=0;var sr=c.finalSize*1.2*.714,nr=!0,Hn,Yn,Vn,Gn,Zn;Gn=h.length;var qn,er=-1,ir,Kn,or,cr=_,hr=J,dr=w,lr=-1,fr,mr,pr,gr,ur,vr,yr,xr,Cr="",Er=this.defaultPropsArray,_r;if(c.j===2||c.j===1){var kr=0,Br=0,Ir=c.j===2?-.5:-1,Fr=0,Nr=!0;for(x=0;x<Pn;x+=1)if(b[x].n){for(kr&&(kr+=Br);Fr<x;)b[Fr].animatorJustifyOffset=kr,Fr+=1;kr=0,Nr=!0}else{for(Vn=0;Vn<Gn;Vn+=1)Hn=h[Vn].a,Hn.t.propType&&(Nr&&c.j===2&&(Br+=Hn.t.v*Ir),Yn=h[Vn].s,qn=Yn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),qn.length?kr+=Hn.t.v*qn[0]*Ir:kr+=Hn.t.v*qn*Ir);Nr=!1}for(kr&&(kr+=Br);Fr<x;)b[Fr].animatorJustifyOffset=kr,Fr+=1}for(x=0;x<Pn;x+=1){if(v.reset(),fr=1,b[x].n)g=0,y+=c.yOffset,y+=nr?1:0,_=cr,nr=!1,this._hasMaskedPath&&(J=hr,w=dr,Rn=zn[J].points,gn=Rn[w-1],re=Rn[w],Wn=re.partialLength,Fn=0),Cr="",xr="",vr="",_r="",Er=this.defaultPropsArray;else{if(this._hasMaskedPath){if(lr!==b[x].line){switch(c.j){case 1:_+=Un-c.lineWidths[b[x].line];break;case 2:_+=(Un-c.lineWidths[b[x].line])/2;break}lr=b[x].line}er!==b[x].ind&&(b[er]&&(_+=b[er].extra),_+=b[x].an/2,er=b[x].ind),_+=f[0]*b[x].an*.005;var Rr=0;for(Vn=0;Vn<Gn;Vn+=1)Hn=h[Vn].a,Hn.p.propType&&(Yn=h[Vn].s,qn=Yn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),qn.length?Rr+=Hn.p.v[0]*qn[0]:Rr+=Hn.p.v[0]*qn),Hn.a.propType&&(Yn=h[Vn].s,qn=Yn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),qn.length?Rr+=Hn.a.v[0]*qn[0]:Rr+=Hn.a.v[0]*qn);for(Bn=!0,this._pathData.a.v&&(_=b[0].an*.5+(Un-this._pathData.f.v-b[0].an*.5-b[b.length-1].an*.5)*er/(Pn-1),_+=this._pathData.f.v);Bn;)Fn+Wn>=_+Rr||!Rn?(Qn=(_+Rr-Fn)/re.partialLength,Kn=gn.point[0]+(re.point[0]-gn.point[0])*Qn,or=gn.point[1]+(re.point[1]-gn.point[1])*Qn,v.translate(-f[0]*b[x].an*.005,-(f[1]*sr)*.01),Bn=!1):Rn&&(Fn+=re.partialLength,w+=1,w>=Rn.length&&(w=0,J+=1,zn[J]?Rn=zn[J].points:tr.v.c?(w=0,J=0,Rn=zn[J].points):(Fn-=re.partialLength,Rn=null)),Rn&&(gn=re,re=Rn[w],Wn=re.partialLength));ir=b[x].an/2-b[x].add,v.translate(-ir,0,0)}else ir=b[x].an/2-b[x].add,v.translate(-ir,0,0),v.translate(-f[0]*b[x].an*.005,-f[1]*sr*.01,0);for(Vn=0;Vn<Gn;Vn+=1)Hn=h[Vn].a,Hn.t.propType&&(Yn=h[Vn].s,qn=Yn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),(g!==0||c.j!==0)&&(this._hasMaskedPath?qn.length?_+=Hn.t.v*qn[0]:_+=Hn.t.v*qn:qn.length?g+=Hn.t.v*qn[0]:g+=Hn.t.v*qn));for(c.strokeWidthAnim&&(pr=c.sw||0),c.strokeColorAnim&&(c.sc?mr=[c.sc[0],c.sc[1],c.sc[2]]:mr=[0,0,0]),c.fillColorAnim&&c.fc&&(gr=[c.fc[0],c.fc[1],c.fc[2]]),Vn=0;Vn<Gn;Vn+=1)Hn=h[Vn].a,Hn.a.propType&&(Yn=h[Vn].s,qn=Yn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),qn.length?v.translate(-Hn.a.v[0]*qn[0],-Hn.a.v[1]*qn[1],Hn.a.v[2]*qn[2]):v.translate(-Hn.a.v[0]*qn,-Hn.a.v[1]*qn,Hn.a.v[2]*qn));for(Vn=0;Vn<Gn;Vn+=1)Hn=h[Vn].a,Hn.s.propType&&(Yn=h[Vn].s,qn=Yn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),qn.length?v.scale(1+(Hn.s.v[0]-1)*qn[0],1+(Hn.s.v[1]-1)*qn[1],1):v.scale(1+(Hn.s.v[0]-1)*qn,1+(Hn.s.v[1]-1)*qn,1));for(Vn=0;Vn<Gn;Vn+=1){if(Hn=h[Vn].a,Yn=h[Vn].s,qn=Yn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),Hn.sk.propType&&(qn.length?v.skewFromAxis(-Hn.sk.v*qn[0],Hn.sa.v*qn[1]):v.skewFromAxis(-Hn.sk.v*qn,Hn.sa.v*qn)),Hn.r.propType&&(qn.length?v.rotateZ(-Hn.r.v*qn[2]):v.rotateZ(-Hn.r.v*qn)),Hn.ry.propType&&(qn.length?v.rotateY(Hn.ry.v*qn[1]):v.rotateY(Hn.ry.v*qn)),Hn.rx.propType&&(qn.length?v.rotateX(Hn.rx.v*qn[0]):v.rotateX(Hn.rx.v*qn)),Hn.o.propType&&(qn.length?fr+=(Hn.o.v*qn[0]-fr)*qn[0]:fr+=(Hn.o.v*qn-fr)*qn),c.strokeWidthAnim&&Hn.sw.propType&&(qn.length?pr+=Hn.sw.v*qn[0]:pr+=Hn.sw.v*qn),c.strokeColorAnim&&Hn.sc.propType)for(ur=0;ur<3;ur+=1)qn.length?mr[ur]+=(Hn.sc.v[ur]-mr[ur])*qn[0]:mr[ur]+=(Hn.sc.v[ur]-mr[ur])*qn;if(c.fillColorAnim&&c.fc){if(Hn.fc.propType)for(ur=0;ur<3;ur+=1)qn.length?gr[ur]+=(Hn.fc.v[ur]-gr[ur])*qn[0]:gr[ur]+=(Hn.fc.v[ur]-gr[ur])*qn;Hn.fh.propType&&(qn.length?gr=addHueToRGB(gr,Hn.fh.v*qn[0]):gr=addHueToRGB(gr,Hn.fh.v*qn)),Hn.fs.propType&&(qn.length?gr=addSaturationToRGB(gr,Hn.fs.v*qn[0]):gr=addSaturationToRGB(gr,Hn.fs.v*qn)),Hn.fb.propType&&(qn.length?gr=addBrightnessToRGB(gr,Hn.fb.v*qn[0]):gr=addBrightnessToRGB(gr,Hn.fb.v*qn))}}for(Vn=0;Vn<Gn;Vn+=1)Hn=h[Vn].a,Hn.p.propType&&(Yn=h[Vn].s,qn=Yn.getMult(b[x].anIndexes[Vn],d.a[Vn].s.totalChars),this._hasMaskedPath?qn.length?v.translate(0,Hn.p.v[1]*qn[0],-Hn.p.v[2]*qn[1]):v.translate(0,Hn.p.v[1]*qn,-Hn.p.v[2]*qn):qn.length?v.translate(Hn.p.v[0]*qn[0],Hn.p.v[1]*qn[1],-Hn.p.v[2]*qn[2]):v.translate(Hn.p.v[0]*qn,Hn.p.v[1]*qn,-Hn.p.v[2]*qn));if(c.strokeWidthAnim&&(vr=pr<0?0:pr),c.strokeColorAnim&&(yr="rgb("+Math.round(mr[0]*255)+","+Math.round(mr[1]*255)+","+Math.round(mr[2]*255)+")"),c.fillColorAnim&&c.fc&&(xr="rgb("+Math.round(gr[0]*255)+","+Math.round(gr[1]*255)+","+Math.round(gr[2]*255)+")"),this._hasMaskedPath){if(v.translate(0,-c.ls),v.translate(0,f[1]*sr*.01+y,0),this._pathData.p.v){Jn=(re.point[1]-gn.point[1])/(re.point[0]-gn.point[0]);var Or=Math.atan(Jn)*180/Math.PI;re.point[0]<gn.point[0]&&(Or+=180),v.rotate(-Or*Math.PI/180)}v.translate(Kn,or,0),_-=f[0]*b[x].an*.005,b[x+1]&&er!==b[x+1].ind&&(_+=b[x].an/2,_+=c.tr*.001*c.finalSize)}else{switch(v.translate(g,y,0),c.ps&&v.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:v.translate(b[x].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[b[x].line]),0,0);break;case 2:v.translate(b[x].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[b[x].line])/2,0,0);break}v.translate(0,-c.ls),v.translate(ir,0,0),v.translate(f[0]*b[x].an*.005,f[1]*sr*.01,0),g+=b[x].l+c.tr*.001*c.finalSize}p==="html"?Cr=v.toCSS():p==="svg"?Cr=v.to2dCSS():Er=[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]],_r=fr}m<=x?(Zn=new LetterProps(_r,vr,yr,xr,Cr,Er),this.renderedLetters.push(Zn),m+=1,this.lettersChangedFlag=!0):(Zn=this.renderedLetters[x],this.lettersChangedFlag=Zn.update(_r,vr,yr,xr,Cr,Er)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(c,u,f){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(c,u,f),this.textProperty=new TextProperty(this,c.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(c.t,this.renderType,this),this.initTransform(c,u,f),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(c){this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange)},ITextElement.prototype.createPathShape=function(c,u){var f,h=u.length,d,v="";for(f=0;f<h;f+=1)u[f].ty==="sh"&&(d=u[f].ks.k,v+=buildShapeString(d,d.i.length,!0,c));return v},ITextElement.prototype.updateDocumentData=function(c,u){this.textProperty.updateDocumentData(c,u)},ITextElement.prototype.canResizeFont=function(c){this.textProperty.canResizeFont(c)},ITextElement.prototype.setMinimumFontSize=function(c){this.textProperty.setMinimumFontSize(c)},ITextElement.prototype.applyTextPropertiesToMatrix=function(c,u,f,h,d){switch(c.ps&&u.translate(c.ps[0],c.ps[1]+c.ascent,0),u.translate(0,-c.ls,0),c.j){case 1:u.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[f]),0,0);break;case 2:u.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[f])/2,0,0);break}u.translate(h,d,0)},ITextElement.prototype.buildColor=function(c){return"rgb("+Math.round(c[0]*255)+","+Math.round(c[1]*255)+","+Math.round(c[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(c,u,f){this.textSpans=[],this.renderType="svg",this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(c){for(var u=0,f=c.length,h=[],d="";u<f;)c[u]===String.fromCharCode(13)||c[u]===String.fromCharCode(3)?(h.push(d),d=""):d+=c[u],u+=1;return h.push(d),h},SVGTextLottieElement.prototype.buildShapeData=function(c,u){if(c.shapes&&c.shapes.length){var f=c.shapes[0];if(f.it){var h=f.it[f.it.length-1];h.s&&(h.s.k[0]=u,h.s.k[1]=u)}}return c},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var c,u,f=this.textProperty.currentData;this.renderedLetters=createSizedArray(f?f.l.length:0),f.fc?this.layerElement.setAttribute("fill",this.buildColor(f.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),f.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(f.sc)),this.layerElement.setAttribute("stroke-width",f.sw)),this.layerElement.setAttribute("font-size",f.finalSize);var h=this.globalData.fontManager.getFontByName(f.f);if(h.fClass)this.layerElement.setAttribute("class",h.fClass);else{this.layerElement.setAttribute("font-family",h.fFamily);var d=f.fWeight,v=f.fStyle;this.layerElement.setAttribute("font-style",v),this.layerElement.setAttribute("font-weight",d)}this.layerElement.setAttribute("aria-label",f.t);var p=f.l||[],m=!!this.globalData.fontManager.chars;u=p.length;var g,y=this.mHelper,x="",Pn=this.data.singleShape,b=0,vn=0,_=!0,re=f.tr*.001*f.finalSize;if(Pn&&!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",re);var w=this.buildTextContents(f.finalText);for(u=w.length,vn=f.ps?f.ps[1]+f.ascent:0,c=0;c<u;c+=1)g=this.textSpans[c].span||createNS("tspan"),g.textContent=w[c],g.setAttribute("x",0),g.setAttribute("y",vn),g.style.display="inherit",Fn.appendChild(g),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=g,vn+=f.finalLineHeight;this.layerElement.appendChild(Fn)}else{var J=this.textSpans.length,gn;for(c=0;c<u;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!m||!Pn||c===0){if(g=J>c?this.textSpans[c].span:createNS(m?"g":"text"),J<=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(),Pn&&(p[c].n&&(b=-re,vn+=f.yOffset,vn+=_?1:0,_=!1),this.applyTextPropertiesToMatrix(f,y,p[c].line,b,vn),b+=p[c].l||0,b+=re),m){gn=this.globalData.fontManager.getCharData(f.finalText[c],h.fStyle,this.globalData.fontManager.getFontByName(f.f).fFamily);var zn;if(gn.t===1)zn=new SVGCompElement(gn.data,this.globalData,this);else{var Wn=emptyShapeData;gn.data&&gn.data.shapes&&(Wn=this.buildShapeData(gn.data,f.finalSize)),zn=new SVGShapeElement(Wn,this.globalData,this)}if(this.textSpans[c].glyph){var Un=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(Un.layerElement),Un.destroy()}this.textSpans[c].glyph=zn,zn._debug=!0,zn.prepareFrame(0),zn.renderFrame(),this.textSpans[c].childSpan.appendChild(zn.layerElement),gn.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+f.finalSize/100+","+f.finalSize/100+")")}else Pn&&g.setAttribute("transform","translate("+y.props[12]+","+y.props[13]+")"),g.textContent=p[c].val,g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Pn&&g&&g.setAttribute("d",x)}for(;c<this.textSpans.length;)this.textSpans[c].span.style.display="none",c+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var c=this.layerElement.getBBox();this.bbox={top:c.y,left:c.x,width:c.width,height:c.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var c,u=this.textSpans.length,f;for(this.renderedFrame=this.comp.renderedFrame,c=0;c<u;c+=1)f=this.textSpans[c].glyph,f&&(f.prepareFrame(this.comp.renderedFrame-this.data.st),f._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var c,u,f=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;u=h.length;var d,v,p;for(c=0;c<u;c+=1)h[c].n||(d=f[c],v=this.textSpans[c].span,p=this.textSpans[c].glyph,p&&p.renderFrame(),d._mdf.m&&v.setAttribute("transform",d.m),d._mdf.o&&v.setAttribute("opacity",d.o),d._mdf.sw&&v.setAttribute("stroke-width",d.sw),d._mdf.sc&&v.setAttribute("stroke",d.sc),d._mdf.fc&&v.setAttribute("fill",d.fc))}};function ISolidElement(c,u,f){this.initElement(c,u,f)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var c=createNS("rect");c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.layerElement.appendChild(c)};function NullElement(c,u,f){this.initFrame(),this.initBaseData(c,u,f),this.initFrame(),this.initTransform(c,u,f),this.initHierarchy()}NullElement.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(c){return new NullElement(c,this.globalData,this)},SVGRendererBase.prototype.createShape=function(c){return new SVGShapeElement(c,this.globalData,this)},SVGRendererBase.prototype.createText=function(c){return new SVGTextLottieElement(c,this.globalData,this)},SVGRendererBase.prototype.createImage=function(c){return new IImageElement(c,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(c){return new ISolidElement(c,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(c){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+c.w+" "+c.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",c.w),this.svgElement.setAttribute("height",c.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var u=this.globalData.defs;this.setupGlobalData(c,u),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=c;var f=createNS("clipPath"),h=createNS("rect");h.setAttribute("width",c.w),h.setAttribute("height",c.h),h.setAttribute("x",0),h.setAttribute("y",0);var d=createElementID();f.setAttribute("id",d),f.appendChild(h),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+d+")"),u.appendChild(f),this.layers=c.layers,this.elements=createSizedArray(c.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var c,u=this.layers?this.layers.length:0;for(c=0;c<u;c+=1)this.elements[c]&&this.elements[c].destroy&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(c){var u=0,f=this.layers.length;for(u=0;u<f;u+=1)if(this.layers[u].ind===c)return u;return-1},SVGRendererBase.prototype.buildItem=function(c){var u=this.elements;if(!(u[c]||this.layers[c].ty===99)){u[c]=!0;var f=this.createItem(this.layers[c]);if(u[c]=f,getExpressionsPlugin()&&(this.layers[c].ty===0&&this.globalData.projectInterface.registerComposition(f),f.initExpressions()),this.appendElementInPos(f,c),this.layers[c].tt){var h="tp"in this.layers[c]?this.findIndexByInd(this.layers[c].tp):c-1;if(h===-1)return;if(!this.elements[h]||this.elements[h]===!0)this.buildItem(h),this.addPendingElement(f);else{var d=u[h],v=d.getMatte(this.layers[c].tt);f.setMatte(v)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();if(c.checkParenting(),c.data.tt)for(var u=0,f=this.elements.length;u<f;){if(this.elements[u]===c){var h="tp"in c.data?this.findIndexByInd(c.data.tp):u-1,d=this.elements[h],v=d.getMatte(this.layers[u].tt);c.setMatte(v);break}u+=1}}},SVGRendererBase.prototype.renderFrame=function(c){if(!(this.renderedFrame===c||this.destroyed)){c===null?c=this.renderedFrame:this.renderedFrame=c,this.globalData.frameNum=c,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=c,this.globalData._mdf=!1;var u,f=this.layers.length;for(this.completeLayers||this.checkLayers(c),u=f-1;u>=0;u-=1)(this.completeLayers||this.elements[u])&&this.elements[u].prepareFrame(c-this.layers[u].st);if(this.globalData._mdf)for(u=0;u<f;u+=1)(this.completeLayers||this.elements[u])&&this.elements[u].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(c,u){var f=c.getBaseElement();if(f){for(var h=0,d;h<u;)this.elements[h]&&this.elements[h]!==!0&&this.elements[h].getBaseElement()&&(d=this.elements[h].getBaseElement()),h+=1;d?this.layerElement.insertBefore(f,d):this.layerElement.appendChild(f)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(c,u,f){this.initFrame(),this.initBaseData(c,u,f),this.initTransform(c,u,f),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!u.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(c){if(this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=c/this.data.sr;else{var u=this.tm.v;u===this.data.op&&(u=this.data.op-1),this.renderedFrame=u}var f,h=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),f=h-1;f>=0;f-=1)(this.completeLayers||this.elements[f])&&(this.elements[f].prepareFrame(this.renderedFrame-this.layers[f].st),this.elements[f]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var c,u=this.layers.length;for(c=0;c<u;c+=1)(this.completeLayers||this.elements[c])&&this.elements[c].renderFrame()},ICompElement.prototype.setElements=function(c){this.elements=c},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var c,u=this.layers.length;for(c=0;c<u;c+=1)this.elements[c]&&this.elements[c].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(c,u,f){this.layers=c.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(c,u,f),this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(c){return new SVGCompElement(c,this.globalData,this)};function SVGRenderer(c,u){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var f="";if(u&&u.title){var h=createNS("title"),d=createElementID();h.setAttribute("id",d),h.textContent=u.title,this.svgElement.appendChild(h),f+=d}if(u&&u.description){var v=createNS("desc"),p=createElementID();v.setAttribute("id",p),v.textContent=u.description,this.svgElement.appendChild(v),f+=" "+p}f&&this.svgElement.setAttribute("aria-labelledby",f);var m=createNS("defs");this.svgElement.appendChild(m);var g=createNS("g");this.svgElement.appendChild(g),this.layerElement=g,this.renderConfig={preserveAspectRatio:u&&u.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:u&&u.contentVisibility||"visible",progressiveLoad:u&&u.progressiveLoad||!1,hideOnTransparent:!(u&&u.hideOnTransparent===!1),viewBoxOnly:u&&u.viewBoxOnly||!1,viewBoxSize:u&&u.viewBoxSize||!1,className:u&&u.className||"",id:u&&u.id||"",focusable:u&&u.focusable,filterSize:{width:u&&u.filterSize&&u.filterSize.width||"100%",height:u&&u.filterSize&&u.filterSize.height||"100%",x:u&&u.filterSize&&u.filterSize.x||"0%",y:u&&u.filterSize&&u.filterSize.y||"0%"},width:u&&u.width,height:u&&u.height,runExpressions:!u||u.runExpressions===void 0||u.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:m,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(c){return new SVGCompElement(c,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(u){var f,h=u.length,d="_";for(f=0;f<h;f+=1)d+=u[f].transform.key+"_";var v=this.sequences[d];return v||(v={transforms:[].concat(u),finalTransform:new Matrix,_mdf:!1},this.sequences[d]=v,this.sequenceList.push(v)),v},processSequence:function(u,f){for(var h=0,d=u.transforms.length,v=f;h<d&&!f;){if(u.transforms[h].transform.mProps._mdf){v=!0;break}h+=1}if(v)for(u.finalTransform.reset(),h=d-1;h>=0;h-=1)u.finalTransform.multiply(u.transforms[h].transform.mProps.v);u._mdf=v},processSequences:function(u){var f,h=this.sequenceList.length;for(f=0;f<h;f+=1)this.processSequence(this.sequenceList[f],u)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var u="__lottie_element_luma_buffer",f=null,h=null,d=null;function v(){var g=createNS("svg"),y=createNS("filter"),x=createNS("feColorMatrix");return y.setAttribute("id",u),x.setAttribute("type","matrix"),x.setAttribute("color-interpolation-filters","sRGB"),x.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),y.appendChild(x),g.appendChild(y),g.setAttribute("id",u+"_svg"),featureSupport.svgLumaHidden&&(g.style.display="none"),g}function p(){f||(d=v(),document.body.appendChild(d),f=createTag("canvas"),h=f.getContext("2d"),h.filter="url(#"+u+")",h.fillStyle="rgba(0,0,0,0)",h.fillRect(0,0,1,1))}function m(g){return f||p(),f.width=g.width,f.height=g.height,h.filter="url(#"+u+")",f}return{load:p,get:m}};function createCanvas(c,u){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(c,u);var f=createTag("canvas");return f.width=c,f.height=u,f}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(c){var u,f=c.data.ef?c.data.ef.length:0;this.filters=[];var h;for(u=0;u<f;u+=1){h=null;var d=c.data.ef[u].ty;if(registeredEffects[d]){var v=registeredEffects[d].effect;h=new v(c.effectsManager.effectElements[u],c)}h&&this.filters.push(h)}this.filters.length&&c.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(c){var u,f=this.filters.length;for(u=0;u<f;u+=1)this.filters[u].renderFrame(c)},CVEffects.prototype.getEffects=function(c){var u,f=this.filters.length,h=[];for(u=0;u<f;u+=1)this.filters[u].type===c&&h.push(this.filters[u]);return h};function registerEffect(c,u){registeredEffects[c]={effect:u}}function CVMaskElement(c,u){this.data=c,this.element=u,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var f,h=this.masksProperties.length,d=!1;for(f=0;f<h;f+=1)this.masksProperties[f].mode!=="n"&&(d=!0),this.viewData[f]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[f],3);this.hasMasks=d,d&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var c=this.element.finalTransform.mat,u=this.element.canvasContext,f,h=this.masksProperties.length,d,v,p;for(u.beginPath(),f=0;f<h;f+=1)if(this.masksProperties[f].mode!=="n"){this.masksProperties[f].inv&&(u.moveTo(0,0),u.lineTo(this.element.globalData.compSize.w,0),u.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),u.lineTo(0,this.element.globalData.compSize.h),u.lineTo(0,0)),p=this.viewData[f].v,d=c.applyToPointArray(p.v[0][0],p.v[0][1],0),u.moveTo(d[0],d[1]);var m,g=p._length;for(m=1;m<g;m+=1)v=c.applyToTriplePoints(p.o[m-1],p.i[m],p.v[m]),u.bezierCurveTo(v[0],v[1],v[2],v[3],v[4],v[5]);v=c.applyToTriplePoints(p.o[m-1],p.i[0],p.v[0]),u.bezierCurveTo(v[0],v[1],v[2],v[3],v[4],v[5])}this.element.globalData.renderer.save(!0),u.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var u=this.globalData.canvasContext,f=assetLoader.createCanvas(u.canvas.width,u.canvas.height);this.buffers.push(f);var h=assetLoader.createCanvas(u.canvas.width,u.canvas.height);this.buffers.push(h),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var u=this.globalData;if(u.blendMode!==this.data.bm){u.blendMode=this.data.bm;var f=getBlendMode(this.data.bm);u.canvasContext.globalCompositeOperation=f}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(u){u.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var u=this.buffers[0],f=u.getContext("2d");this.clearCanvas(f),f.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var u=this.buffers[1],f=u.getContext("2d");this.clearCanvas(f),f.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var h=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(h.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var d=assetLoader.getLumaCanvas(this.canvasContext.canvas),v=d.getContext("2d");v.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(d,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(u,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(u){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!u)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var f=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(f),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(f),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(c,u,f,h){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var d=4;u.ty==="rc"?d=5:u.ty==="el"?d=6:u.ty==="sr"&&(d=7),this.sh=ShapePropertyFactory.getShapeProp(c,u,d,c);var v,p=f.length,m;for(v=0;v<p;v+=1)f[v].closed||(m={transforms:h.addTransformSequence(f[v].transforms),trNodes:[]},this.styledShapes.push(m),f[v].elements.push(m))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(c,u,f){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(c,u){var f={data:c,type:c.ty,preTransforms:this.transformsManager.addTransformSequence(u),transforms:[],elements:[],closed:c.hd===!0},h={};if(c.ty==="fl"||c.ty==="st"?(h.c=PropertyFactory.getProp(this,c.c,1,255,this),h.c.k||(f.co="rgb("+bmFloor(h.c.v[0])+","+bmFloor(h.c.v[1])+","+bmFloor(h.c.v[2])+")")):(c.ty==="gf"||c.ty==="gs")&&(h.s=PropertyFactory.getProp(this,c.s,1,null,this),h.e=PropertyFactory.getProp(this,c.e,1,null,this),h.h=PropertyFactory.getProp(this,c.h||{k:0},0,.01,this),h.a=PropertyFactory.getProp(this,c.a||{k:0},0,degToRads,this),h.g=new GradientProperty(this,c.g,this)),h.o=PropertyFactory.getProp(this,c.o,0,.01,this),c.ty==="st"||c.ty==="gs"){if(f.lc=lineCapEnum[c.lc||2],f.lj=lineJoinEnum[c.lj||2],c.lj==1&&(f.ml=c.ml),h.w=PropertyFactory.getProp(this,c.w,0,null,this),h.w.k||(f.wi=h.w.v),c.d){var d=new DashProperty(this,c.d,"canvas",this);h.d=d,h.d.k||(f.da=h.d.dashArray,f.do=h.d.dashoffset[0])}}else f.r=c.r===2?"evenodd":"nonzero";return this.stylesList.push(f),h.style=f,h},CVShapeElement.prototype.createGroupElement=function(){var c={it:[],prevViewData:[]};return c},CVShapeElement.prototype.createTransformElement=function(c){var u={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,c.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,c,this)}};return u},CVShapeElement.prototype.createShapeElement=function(c){var u=new CVShapeData(this,c,this.stylesList,this.transformsManager);return this.shapes.push(u),this.addShapeToModifiers(u),u},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var c,u=this.itemsData.length;for(c=0;c<u;c+=1)this.prevViewData[c]=this.itemsData[c];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),u=this.dynamicProperties.length,c=0;c<u;c+=1)this.dynamicProperties[c].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(c){var u,f=this.stylesList.length;for(u=0;u<f;u+=1)this.stylesList[u].closed||this.stylesList[u].transforms.push(c)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var c,u=this.stylesList.length;for(c=0;c<u;c+=1)this.stylesList[c].closed||this.stylesList[c].transforms.pop()},CVShapeElement.prototype.closeStyles=function(c){var u,f=c.length;for(u=0;u<f;u+=1)c[u].closed=!0},CVShapeElement.prototype.searchShapes=function(c,u,f,h,d){var v,p=c.length-1,m,g,y=[],x=[],Pn,b,vn,_=[].concat(d);for(v=p;v>=0;v-=1){if(Pn=this.searchProcessedElement(c[v]),Pn?u[v]=f[Pn-1]:c[v]._shouldRender=h,c[v].ty==="fl"||c[v].ty==="st"||c[v].ty==="gf"||c[v].ty==="gs")Pn?u[v].style.closed=!1:u[v]=this.createStyleElement(c[v],_),y.push(u[v].style);else if(c[v].ty==="gr"){if(!Pn)u[v]=this.createGroupElement(c[v]);else for(g=u[v].it.length,m=0;m<g;m+=1)u[v].prevViewData[m]=u[v].it[m];this.searchShapes(c[v].it,u[v].it,u[v].prevViewData,h,_)}else c[v].ty==="tr"?(Pn||(vn=this.createTransformElement(c[v]),u[v]=vn),_.push(u[v]),this.addTransformToStyleList(u[v])):c[v].ty==="sh"||c[v].ty==="rc"||c[v].ty==="el"||c[v].ty==="sr"?Pn||(u[v]=this.createShapeElement(c[v])):c[v].ty==="tm"||c[v].ty==="rd"||c[v].ty==="pb"||c[v].ty==="zz"||c[v].ty==="op"?(Pn?(b=u[v],b.closed=!1):(b=ShapeModifiers.getModifier(c[v].ty),b.init(this,c[v]),u[v]=b,this.shapeModifiers.push(b)),x.push(b)):c[v].ty==="rp"&&(Pn?(b=u[v],b.closed=!0):(b=ShapeModifiers.getModifier(c[v].ty),u[v]=b,b.init(this,c,v,u),this.shapeModifiers.push(b),h=!1),x.push(b));this.addProcessedElement(c[v],v+1)}for(this.removeTransformFromStyleList(),this.closeStyles(y),p=x.length,v=0;v<p;v+=1)x[v].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(c,u){(c._opMdf||u.op._mdf||this._isFirstFrame)&&(u.opacity=c.opacity,u.opacity*=u.op.v,u._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var c,u=this.stylesList.length,f,h,d,v,p,m,g=this.globalData.renderer,y=this.globalData.canvasContext,x,Pn;for(c=0;c<u;c+=1)if(Pn=this.stylesList[c],x=Pn.type,!((x==="st"||x==="gs")&&Pn.wi===0||!Pn.data._shouldRender||Pn.coOp===0||this.globalData.currentGlobalAlpha===0)){for(g.save(),p=Pn.elements,x==="st"||x==="gs"?(g.ctxStrokeStyle(x==="st"?Pn.co:Pn.grd),g.ctxLineWidth(Pn.wi),g.ctxLineCap(Pn.lc),g.ctxLineJoin(Pn.lj),g.ctxMiterLimit(Pn.ml||0)):g.ctxFillStyle(x==="fl"?Pn.co:Pn.grd),g.ctxOpacity(Pn.coOp),x!=="st"&&x!=="gs"&&y.beginPath(),g.ctxTransform(Pn.preTransforms.finalTransform.props),h=p.length,f=0;f<h;f+=1){for((x==="st"||x==="gs")&&(y.beginPath(),Pn.da&&(y.setLineDash(Pn.da),y.lineDashOffset=Pn.do)),m=p[f].trNodes,v=m.length,d=0;d<v;d+=1)m[d].t==="m"?y.moveTo(m[d].p[0],m[d].p[1]):m[d].t==="c"?y.bezierCurveTo(m[d].pts[0],m[d].pts[1],m[d].pts[2],m[d].pts[3],m[d].pts[4],m[d].pts[5]):y.closePath();(x==="st"||x==="gs")&&(g.ctxStroke(),Pn.da&&y.setLineDash(this.dashResetter))}x!=="st"&&x!=="gs"&&this.globalData.renderer.ctxFill(Pn.r),g.restore()}},CVShapeElement.prototype.renderShape=function(c,u,f,h){var d,v=u.length-1,p;for(p=c,d=v;d>=0;d-=1)u[d].ty==="tr"?(p=f[d].transform,this.renderShapeTransform(c,p)):u[d].ty==="sh"||u[d].ty==="el"||u[d].ty==="rc"||u[d].ty==="sr"?this.renderPath(u[d],f[d]):u[d].ty==="fl"?this.renderFill(u[d],f[d],p):u[d].ty==="st"?this.renderStroke(u[d],f[d],p):u[d].ty==="gf"||u[d].ty==="gs"?this.renderGradientFill(u[d],f[d],p):u[d].ty==="gr"?this.renderShape(p,u[d].it,f[d].it):u[d].ty;h&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(c,u){if(this._isFirstFrame||u._mdf||c.transforms._mdf){var f=c.trNodes,h=u.paths,d,v,p,m=h._length;f.length=0;var g=c.transforms.finalTransform;for(p=0;p<m;p+=1){var y=h.shapes[p];if(y&&y.v){for(v=y._length,d=1;d<v;d+=1)d===1&&f.push({t:"m",p:g.applyToPointArray(y.v[0][0],y.v[0][1],0)}),f.push({t:"c",pts:g.applyToTriplePoints(y.o[d-1],y.i[d],y.v[d])});v===1&&f.push({t:"m",p:g.applyToPointArray(y.v[0][0],y.v[0][1],0)}),y.c&&v&&(f.push({t:"c",pts:g.applyToTriplePoints(y.o[d-1],y.i[0],y.v[0])}),f.push({t:"z"}))}}c.trNodes=f}},CVShapeElement.prototype.renderPath=function(c,u){if(c.hd!==!0&&c._shouldRender){var f,h=u.styledShapes.length;for(f=0;f<h;f+=1)this.renderStyledShape(u.styledShapes[f],u.sh)}},CVShapeElement.prototype.renderFill=function(c,u,f){var h=u.style;(u.c._mdf||this._isFirstFrame)&&(h.co="rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||f._opMdf||this._isFirstFrame)&&(h.coOp=u.o.v*f.opacity)},CVShapeElement.prototype.renderGradientFill=function(c,u,f){var h=u.style,d;if(!h.grd||u.g._mdf||u.s._mdf||u.e._mdf||c.t!==1&&(u.h._mdf||u.a._mdf)){var v=this.globalData.canvasContext,p=u.s.v,m=u.e.v;if(c.t===1)d=v.createLinearGradient(p[0],p[1],m[0],m[1]);else{var g=Math.sqrt(Math.pow(p[0]-m[0],2)+Math.pow(p[1]-m[1],2)),y=Math.atan2(m[1]-p[1],m[0]-p[0]),x=u.h.v;x>=1?x=.99:x<=-1&&(x=-.99);var Pn=g*x,b=Math.cos(y+u.a.v)*Pn+p[0],vn=Math.sin(y+u.a.v)*Pn+p[1];d=v.createRadialGradient(b,vn,0,p[0],p[1],g)}var _,re=c.g.p,Fn=u.g.c,Bn=1;for(_=0;_<re;_+=1)u.g._hasOpacity&&u.g._collapsable&&(Bn=u.g.o[_*2+1]),d.addColorStop(Fn[_*4]/100,"rgba("+Fn[_*4+1]+","+Fn[_*4+2]+","+Fn[_*4+3]+","+Bn+")");h.grd=d}h.coOp=u.o.v*f.opacity},CVShapeElement.prototype.renderStroke=function(c,u,f){var h=u.style,d=u.d;d&&(d._mdf||this._isFirstFrame)&&(h.da=d.dashArray,h.do=d.dashoffset[0]),(u.c._mdf||this._isFirstFrame)&&(h.co="rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||f._opMdf||this._isFirstFrame)&&(h.coOp=u.o.v*f.opacity),(u.w._mdf||this._isFirstFrame)&&(h.wi=u.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(c,u,f){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var c=this.textProperty.currentData;this.renderedLetters=createSizedArray(c.l?c.l.length:0);var u=!1;c.fc?(u=!0,this.values.fill=this.buildColor(c.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=u;var f=!1;c.sc&&(f=!0,this.values.stroke=this.buildColor(c.sc),this.values.sWidth=c.sw);var h=this.globalData.fontManager.getFontByName(c.f),d,v,p=c.l,m=this.mHelper;this.stroke=f,this.values.fValue=c.finalSize+"px "+this.globalData.fontManager.getFontByName(c.f).fFamily,v=c.finalText.length;var g,y,x,Pn,b,vn,_,re,Fn,Bn,w=this.data.singleShape,J=c.tr*.001*c.finalSize,gn=0,Rn=0,zn=!0,Wn=0;for(d=0;d<v;d+=1){g=this.globalData.fontManager.getCharData(c.finalText[d],h.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily),y=g&&g.data||{},m.reset(),w&&p[d].n&&(gn=-J,Rn+=c.yOffset,Rn+=zn?1:0,zn=!1),b=y.shapes?y.shapes[0].it:[],_=b.length,m.scale(c.finalSize/100,c.finalSize/100),w&&this.applyTextPropertiesToMatrix(c,m,p[d].line,gn,Rn),Fn=createSizedArray(_-1);var Un=0;for(vn=0;vn<_;vn+=1)if(b[vn].ty==="sh"){for(Pn=b[vn].ks.k.i.length,re=b[vn].ks.k,Bn=[],x=1;x<Pn;x+=1)x===1&&Bn.push(m.applyToX(re.v[0][0],re.v[0][1],0),m.applyToY(re.v[0][0],re.v[0][1],0)),Bn.push(m.applyToX(re.o[x-1][0],re.o[x-1][1],0),m.applyToY(re.o[x-1][0],re.o[x-1][1],0),m.applyToX(re.i[x][0],re.i[x][1],0),m.applyToY(re.i[x][0],re.i[x][1],0),m.applyToX(re.v[x][0],re.v[x][1],0),m.applyToY(re.v[x][0],re.v[x][1],0));Bn.push(m.applyToX(re.o[x-1][0],re.o[x-1][1],0),m.applyToY(re.o[x-1][0],re.o[x-1][1],0),m.applyToX(re.i[0][0],re.i[0][1],0),m.applyToY(re.i[0][0],re.i[0][1],0),m.applyToX(re.v[0][0],re.v[0][1],0),m.applyToY(re.v[0][0],re.v[0][1],0)),Fn[Un]=Bn,Un+=1}w&&(gn+=p[d].l,gn+=J),this.textSpans[Wn]?this.textSpans[Wn].elem=Fn:this.textSpans[Wn]={elem:Fn},Wn+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var c=this.canvasContext;c.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var u,f,h,d,v,p,m=this.textAnimator.renderedLetters,g=this.textProperty.currentData.l;f=g.length;var y,x=null,Pn=null,b=null,vn,_,re=this.globalData.renderer;for(u=0;u<f;u+=1)if(!g[u].n){if(y=m[u],y&&(re.save(),re.ctxTransform(y.p),re.ctxOpacity(y.o)),this.fill){for(y&&y.fc?x!==y.fc&&(re.ctxFillStyle(y.fc),x=y.fc):x!==this.values.fill&&(x=this.values.fill,re.ctxFillStyle(this.values.fill)),vn=this.textSpans[u].elem,d=vn.length,this.globalData.canvasContext.beginPath(),h=0;h<d;h+=1)for(_=vn[h],p=_.length,this.globalData.canvasContext.moveTo(_[0],_[1]),v=2;v<p;v+=6)this.globalData.canvasContext.bezierCurveTo(_[v],_[v+1],_[v+2],_[v+3],_[v+4],_[v+5]);this.globalData.canvasContext.closePath(),re.ctxFill()}if(this.stroke){for(y&&y.sw?b!==y.sw&&(b=y.sw,re.ctxLineWidth(y.sw)):b!==this.values.sWidth&&(b=this.values.sWidth,re.ctxLineWidth(this.values.sWidth)),y&&y.sc?Pn!==y.sc&&(Pn=y.sc,re.ctxStrokeStyle(y.sc)):Pn!==this.values.stroke&&(Pn=this.values.stroke,re.ctxStrokeStyle(this.values.stroke)),vn=this.textSpans[u].elem,d=vn.length,this.globalData.canvasContext.beginPath(),h=0;h<d;h+=1)for(_=vn[h],p=_.length,this.globalData.canvasContext.moveTo(_[0],_[1]),v=2;v<p;v+=6)this.globalData.canvasContext.bezierCurveTo(_[v],_[v+1],_[v+2],_[v+3],_[v+4],_[v+5]);this.globalData.canvasContext.closePath(),re.ctxStroke()}y&&this.globalData.renderer.restore()}};function CVImageElement(c,u,f){this.assetData=u.getAssetData(c.refId),this.img=u.imageLoader.getAsset(this.assetData),this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var c=createTag("canvas");c.width=this.assetData.w,c.height=this.assetData.h;var u=c.getContext("2d"),f=this.img.width,h=this.img.height,d=f/h,v=this.assetData.w/this.assetData.h,p,m,g=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;d>v&&g==="xMidYMid slice"||d<v&&g!=="xMidYMid slice"?(m=h,p=m*v):(p=f,m=p/v),u.drawImage(this.img,(f-p)/2,(h-m)/2,p,m,0,0,this.assetData.w,this.assetData.h),this.img=c}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(c,u,f){this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(c){return new CVShapeElement(c,this.globalData,this)},CanvasRendererBase.prototype.createText=function(c){return new CVTextElement(c,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(c){return new CVImageElement(c,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(c){return new CVSolidElement(c,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(c){c[0]===1&&c[1]===0&&c[4]===0&&c[5]===1&&c[12]===0&&c[13]===0||this.canvasContext.transform(c[0],c[1],c[4],c[5],c[12],c[13])},CanvasRendererBase.prototype.ctxOpacity=function(c){this.canvasContext.globalAlpha*=c<0?0:c},CanvasRendererBase.prototype.ctxFillStyle=function(c){this.canvasContext.fillStyle=c},CanvasRendererBase.prototype.ctxStrokeStyle=function(c){this.canvasContext.strokeStyle=c},CanvasRendererBase.prototype.ctxLineWidth=function(c){this.canvasContext.lineWidth=c},CanvasRendererBase.prototype.ctxLineCap=function(c){this.canvasContext.lineCap=c},CanvasRendererBase.prototype.ctxLineJoin=function(c){this.canvasContext.lineJoin=c},CanvasRendererBase.prototype.ctxMiterLimit=function(c){this.canvasContext.miterLimit=c},CanvasRendererBase.prototype.ctxFill=function(c){this.canvasContext.fill(c)},CanvasRendererBase.prototype.ctxFillRect=function(c,u,f,h){this.canvasContext.fillRect(c,u,f,h)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(c){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}c&&(this.globalData.blendMode="source-over"),this.contextData.restore(c)},CanvasRendererBase.prototype.configAnimation=function(c){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var u=this.animationItem.container.style;u.width="100%",u.height="100%";var f="0px 0px 0px";u.transformOrigin=f,u.mozTransformOrigin=f,u.webkitTransformOrigin=f,u["-webkit-transform"]=f,u.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=c,this.layers=c.layers,this.transformCanvas={w:c.w,h:c.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(c,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(c.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(c,u){this.reset();var f,h;c?(f=c,h=u,this.canvasContext.canvas.width=f,this.canvasContext.canvas.height=h):(this.animationItem.wrapper&&this.animationItem.container?(f=this.animationItem.wrapper.offsetWidth,h=this.animationItem.wrapper.offsetHeight):(f=this.canvasContext.canvas.width,h=this.canvasContext.canvas.height),this.canvasContext.canvas.width=f*this.renderConfig.dpr,this.canvasContext.canvas.height=h*this.renderConfig.dpr);var d,v;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var p=this.renderConfig.preserveAspectRatio.split(" "),m=p[1]||"meet",g=p[0]||"xMidYMid",y=g.substr(0,4),x=g.substr(4);d=f/h,v=this.transformCanvas.w/this.transformCanvas.h,v>d&&m==="meet"||v<d&&m==="slice"?(this.transformCanvas.sx=f/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=f/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=h/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=h/(this.transformCanvas.h/this.renderConfig.dpr)),y==="xMid"&&(v<d&&m==="meet"||v>d&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(h/this.transformCanvas.h))/2*this.renderConfig.dpr:y==="xMax"&&(v<d&&m==="meet"||v>d&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(h/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,x==="YMid"&&(v>d&&m==="meet"||v<d&&m==="slice")?this.transformCanvas.ty=(h-this.transformCanvas.h*(f/this.transformCanvas.w))/2*this.renderConfig.dpr:x==="YMax"&&(v>d&&m==="meet"||v<d&&m==="slice")?this.transformCanvas.ty=(h-this.transformCanvas.h*(f/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=f/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=h/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var c,u=this.layers?this.layers.length:0;for(c=u-1;c>=0;c-=1)this.elements[c]&&this.elements[c].destroy&&this.elements[c].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(c,u){if(!(this.renderedFrame===c&&this.renderConfig.clearCanvas===!0&&!u||this.destroyed||c===-1)){this.renderedFrame=c,this.globalData.frameNum=c-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||u,this.globalData.projectInterface.currentFrame=c;var f,h=this.layers.length;for(this.completeLayers||this.checkLayers(c),f=h-1;f>=0;f-=1)(this.completeLayers||this.elements[f])&&this.elements[f].prepareFrame(c-this.layers[f].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),f=h-1;f>=0;f-=1)(this.completeLayers||this.elements[f])&&this.elements[f].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(c){var u=this.elements;if(!(u[c]||this.layers[c].ty===99)){var f=this.createItem(this.layers[c],this,this.globalData);u[c]=f,f.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();c.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var c,u=15;for(c=0;c<u;c+=1){var f=new CanvasContext;this.stack[c]=f}this._length=u,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var c=this._length*2,u=0;for(u=this._length;u<c;u+=1)this.stack[u]=new CanvasContext;this._length=c},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(c){this.cArrPos-=1;var u=this.stack[this.cArrPos],f=u.transform,h,d=this.cTr.props;for(h=0;h<16;h+=1)d[h]=f[h];if(c){this.nativeContext.restore();var v=this.stack[this.cArrPos+1];this.appliedFillStyle=v.fillStyle,this.appliedStrokeStyle=v.strokeStyle,this.appliedLineWidth=v.lineWidth,this.appliedLineCap=v.lineCap,this.appliedLineJoin=v.lineJoin,this.appliedMiterLimit=v.miterLimit}this.nativeContext.setTransform(f[0],f[1],f[4],f[5],f[12],f[13]),(c||u.opacity!==-1&&this.currentOpacity!==u.opacity)&&(this.nativeContext.globalAlpha=u.opacity,this.currentOpacity=u.opacity),this.currentFillStyle=u.fillStyle,this.currentStrokeStyle=u.strokeStyle,this.currentLineWidth=u.lineWidth,this.currentLineCap=u.lineCap,this.currentLineJoin=u.lineJoin,this.currentMiterLimit=u.miterLimit},CVContextData.prototype.save=function(c){c&&this.nativeContext.save();var u=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var f=this.stack[this.cArrPos],h;for(h=0;h<16;h+=1)f.transform[h]=u[h];this.cArrPos+=1;var d=this.stack[this.cArrPos];d.opacity=f.opacity,d.fillStyle=f.fillStyle,d.strokeStyle=f.strokeStyle,d.lineWidth=f.lineWidth,d.lineCap=f.lineCap,d.lineJoin=f.lineJoin,d.miterLimit=f.miterLimit},CVContextData.prototype.setOpacity=function(c){this.stack[this.cArrPos].opacity=c},CVContextData.prototype.setContext=function(c){this.nativeContext=c},CVContextData.prototype.fillStyle=function(c){this.stack[this.cArrPos].fillStyle!==c&&(this.currentFillStyle=c,this.stack[this.cArrPos].fillStyle=c)},CVContextData.prototype.strokeStyle=function(c){this.stack[this.cArrPos].strokeStyle!==c&&(this.currentStrokeStyle=c,this.stack[this.cArrPos].strokeStyle=c)},CVContextData.prototype.lineWidth=function(c){this.stack[this.cArrPos].lineWidth!==c&&(this.currentLineWidth=c,this.stack[this.cArrPos].lineWidth=c)},CVContextData.prototype.lineCap=function(c){this.stack[this.cArrPos].lineCap!==c&&(this.currentLineCap=c,this.stack[this.cArrPos].lineCap=c)},CVContextData.prototype.lineJoin=function(c){this.stack[this.cArrPos].lineJoin!==c&&(this.currentLineJoin=c,this.stack[this.cArrPos].lineJoin=c)},CVContextData.prototype.miterLimit=function(c){this.stack[this.cArrPos].miterLimit!==c&&(this.currentMiterLimit=c,this.stack[this.cArrPos].miterLimit=c)},CVContextData.prototype.transform=function(c){this.transformMat.cloneFromProps(c);var u=this.cTr;this.transformMat.multiply(u),u.cloneFromProps(this.transformMat.props);var f=u.props;this.nativeContext.setTransform(f[0],f[1],f[4],f[5],f[12],f[13])},CVContextData.prototype.opacity=function(c){var u=this.stack[this.cArrPos].opacity;u*=c<0?0:c,this.stack[this.cArrPos].opacity!==u&&(this.currentOpacity!==c&&(this.nativeContext.globalAlpha=c,this.currentOpacity=c),this.stack[this.cArrPos].opacity=u)},CVContextData.prototype.fill=function(c){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(c)},CVContextData.prototype.fillRect=function(c,u,f,h){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(c,u,f,h)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(c,u,f){this.completeLayers=!1,this.layers=c.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(c,u,f),this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var c=this.canvasContext;c.beginPath(),c.moveTo(0,0),c.lineTo(this.data.w,0),c.lineTo(this.data.w,this.data.h),c.lineTo(0,this.data.h),c.lineTo(0,0),c.clip();var u,f=this.layers.length;for(u=f-1;u>=0;u-=1)(this.completeLayers||this.elements[u])&&this.elements[u].renderFrame()},CVCompElement.prototype.destroy=function(){var c,u=this.layers.length;for(c=u-1;c>=0;c-=1)this.elements[c]&&this.elements[c].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(c){return new CVCompElement(c,this.globalData,this)};function CanvasRenderer(c,u){this.animationItem=c,this.renderConfig={clearCanvas:u&&u.clearCanvas!==void 0?u.clearCanvas:!0,context:u&&u.context||null,progressiveLoad:u&&u.progressiveLoad||!1,preserveAspectRatio:u&&u.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:u&&u.contentVisibility||"visible",className:u&&u.className||"",id:u&&u.id||"",runExpressions:!u||u.runExpressions===void 0||u.runExpressions},this.renderConfig.dpr=u&&u.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=u&&u.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(c){return new CVCompElement(c,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var u=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var f=this.finalTransform.mat.toCSS();u.transform=f,u.webkitTransform=f}this.finalTransform._opMdf&&(u.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(c,u,f){this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var c;this.data.hasMask?(c=createNS("rect"),c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(c=createTag("div"),c.style.width=this.data.sw+"px",c.style.height=this.data.sh+"px",c.style.backgroundColor=this.data.sc),this.layerElement.appendChild(c)};function HShapeElement(c,u,f){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(c,u,f),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var c;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),c=this.svgElement;else{c=createNS("svg");var u=this.comp.data?this.comp.data:this.globalData.compSize;c.setAttribute("width",u.w),c.setAttribute("height",u.h),c.appendChild(this.shapesContainer),this.layerElement.appendChild(c)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=c},HShapeElement.prototype.getTransformedPoint=function(c,u){var f,h=c.length;for(f=0;f<h;f+=1)u=c[f].mProps.v.applyToPointArray(u[0],u[1],0);return u},HShapeElement.prototype.calculateShapeBoundingBox=function(c,u){var f=c.sh.v,h=c.transformers,d,v=f._length,p,m,g,y;if(!(v<=1)){for(d=0;d<v-1;d+=1)p=this.getTransformedPoint(h,f.v[d]),m=this.getTransformedPoint(h,f.o[d]),g=this.getTransformedPoint(h,f.i[d+1]),y=this.getTransformedPoint(h,f.v[d+1]),this.checkBounds(p,m,g,y,u);f.c&&(p=this.getTransformedPoint(h,f.v[d]),m=this.getTransformedPoint(h,f.o[d]),g=this.getTransformedPoint(h,f.i[0]),y=this.getTransformedPoint(h,f.v[0]),this.checkBounds(p,m,g,y,u))}},HShapeElement.prototype.checkBounds=function(c,u,f,h,d){this.getBoundsOfCurve(c,u,f,h);var v=this.shapeBoundingBox;d.x=bmMin(v.left,d.x),d.xMax=bmMax(v.right,d.xMax),d.y=bmMin(v.top,d.y),d.yMax=bmMax(v.bottom,d.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(c,u,f,h){for(var d=[[c[0],h[0]],[c[1],h[1]]],v,p,m,g,y,x,Pn,b=0;b<2;++b)p=6*c[b]-12*u[b]+6*f[b],v=-3*c[b]+9*u[b]-9*f[b]+3*h[b],m=3*u[b]-3*c[b],p|=0,v|=0,m|=0,v===0&&p===0||(v===0?(g=-m/p,g>0&&g<1&&d[b].push(this.calculateF(g,c,u,f,h,b))):(y=p*p-4*m*v,y>=0&&(x=(-p+bmSqrt(y))/(2*v),x>0&&x<1&&d[b].push(this.calculateF(x,c,u,f,h,b)),Pn=(-p-bmSqrt(y))/(2*v),Pn>0&&Pn<1&&d[b].push(this.calculateF(Pn,c,u,f,h,b)))));this.shapeBoundingBox.left=bmMin.apply(null,d[0]),this.shapeBoundingBox.top=bmMin.apply(null,d[1]),this.shapeBoundingBox.right=bmMax.apply(null,d[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,d[1])},HShapeElement.prototype.calculateF=function(c,u,f,h,d,v){return bmPow(1-c,3)*u[v]+3*bmPow(1-c,2)*c*f[v]+3*(1-c)*bmPow(c,2)*h[v]+bmPow(c,3)*d[v]},HShapeElement.prototype.calculateBoundingBox=function(c,u){var f,h=c.length;for(f=0;f<h;f+=1)c[f]&&c[f].sh?this.calculateShapeBoundingBox(c[f],u):c[f]&&c[f].it?this.calculateBoundingBox(c[f].it,u):c[f]&&c[f].style&&c[f].w&&this.expandStrokeBoundingBox(c[f].w,u)},HShapeElement.prototype.expandStrokeBoundingBox=function(c,u){var f=0;if(c.keyframes){for(var h=0;h<c.keyframes.length;h+=1){var d=c.keyframes[h].s;d>f&&(f=d)}f*=c.mult}else f=c.v*c.mult;u.x-=f,u.xMax+=f,u.y-=f,u.yMax+=f},HShapeElement.prototype.currentBoxContains=function(c){return this.currentBBox.x<=c.x&&this.currentBBox.y<=c.y&&this.currentBBox.width+this.currentBBox.x>=c.x+c.width&&this.currentBBox.height+this.currentBBox.y>=c.y+c.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.tempBoundingBox,u=999999;if(c.x=u,c.xMax=-u,c.y=u,c.yMax=-u,this.calculateBoundingBox(this.itemsData,c),c.width=c.xMax<c.x?0:c.xMax-c.x,c.height=c.yMax<c.y?0:c.yMax-c.y,this.currentBoxContains(c))return;var f=!1;if(this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.shapeCont.setAttribute("width",c.width),f=!0),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.shapeCont.setAttribute("height",c.height),f=!0),f||this.currentBBox.x!==c.x||this.currentBBox.y!==c.y){this.currentBBox.w=c.width,this.currentBBox.h=c.height,this.currentBBox.x=c.x,this.currentBBox.y=c.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var h=this.shapeCont.style,d="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";h.transform=d,h.webkitTransform=d}}};function HTextElement(c,u,f){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var c=createNS("g");this.maskedElement.appendChild(c),this.innerElem=c}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var c=this.textProperty.currentData;this.renderedLetters=createSizedArray(c.l?c.l.length:0);var u=this.innerElem.style,f=c.fc?this.buildColor(c.fc):"rgba(0,0,0,0)";u.fill=f,u.color=f,c.sc&&(u.stroke=this.buildColor(c.sc),u.strokeWidth=c.sw+"px");var h=this.globalData.fontManager.getFontByName(c.f);if(!this.globalData.fontManager.chars)if(u.fontSize=c.finalSize+"px",u.lineHeight=c.finalSize+"px",h.fClass)this.innerElem.className=h.fClass;else{u.fontFamily=h.fFamily;var d=c.fWeight,v=c.fStyle;u.fontStyle=v,u.fontWeight=d}var p,m,g=c.l;m=g.length;var y,x,Pn,b=this.mHelper,vn,_="",re=0;for(p=0;p<m;p+=1){if(this.globalData.fontManager.chars?(this.textPaths[re]?y=this.textPaths[re]:(y=createNS("path"),y.setAttribute("stroke-linecap",lineCapEnum[1]),y.setAttribute("stroke-linejoin",lineJoinEnum[2]),y.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[re]?(x=this.textSpans[re],Pn=x.children[0]):(x=createTag("div"),x.style.lineHeight=0,Pn=createNS("svg"),Pn.appendChild(y),styleDiv(x)))):this.isMasked?y=this.textPaths[re]?this.textPaths[re]:createNS("text"):this.textSpans[re]?(x=this.textSpans[re],y=this.textPaths[re]):(x=createTag("span"),styleDiv(x),y=createTag("span"),styleDiv(y),x.appendChild(y)),this.globalData.fontManager.chars){var Fn=this.globalData.fontManager.getCharData(c.finalText[p],h.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily),Bn;if(Fn?Bn=Fn.data:Bn=null,b.reset(),Bn&&Bn.shapes&&Bn.shapes.length&&(vn=Bn.shapes[0].it,b.scale(c.finalSize/100,c.finalSize/100),_=this.createPathShape(b,vn),y.setAttribute("d",_)),this.isMasked)this.innerElem.appendChild(y);else{if(this.innerElem.appendChild(x),Bn&&Bn.shapes){document.body.appendChild(Pn);var w=Pn.getBBox();Pn.setAttribute("width",w.width+2),Pn.setAttribute("height",w.height+2),Pn.setAttribute("viewBox",w.x-1+" "+(w.y-1)+" "+(w.width+2)+" "+(w.height+2));var J=Pn.style,gn="translate("+(w.x-1)+"px,"+(w.y-1)+"px)";J.transform=gn,J.webkitTransform=gn,g[p].yOffset=w.y-1}else Pn.setAttribute("width",1),Pn.setAttribute("height",1);x.appendChild(Pn)}}else if(y.textContent=g[p].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(y);else{this.innerElem.appendChild(x);var Rn=y.style,zn="translate3d(0,"+-c.finalSize/1.2+"px,0)";Rn.transform=zn,Rn.webkitTransform=zn}this.isMasked?this.textSpans[re]=y:this.textSpans[re]=x,this.textSpans[re].style.display="block",this.textPaths[re]=y,re+=1}for(;re<this.textSpans.length;)this.textSpans[re].style.display="none",re+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var c;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),c=this.svgElement.style;var u="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";c.transform=u,c.webkitTransform=u}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var f,h,d=0,v=this.textAnimator.renderedLetters,p=this.textProperty.currentData.l;h=p.length;var m,g,y;for(f=0;f<h;f+=1)p[f].n?d+=1:(g=this.textSpans[f],y=this.textPaths[f],m=v[d],d+=1,m._mdf.m&&(this.isMasked?g.setAttribute("transform",m.m):(g.style.webkitTransform=m.m,g.style.transform=m.m)),g.style.opacity=m.o,m.sw&&m._mdf.sw&&y.setAttribute("stroke-width",m.sw),m.sc&&m._mdf.sc&&y.setAttribute("stroke",m.sc),m.fc&&m._mdf.fc&&(y.setAttribute("fill",m.fc),y.style.color=m.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var x=this.innerElem.getBBox();this.currentBBox.w!==x.width&&(this.currentBBox.w=x.width,this.svgElement.setAttribute("width",x.width)),this.currentBBox.h!==x.height&&(this.currentBBox.h=x.height,this.svgElement.setAttribute("height",x.height));var Pn=1;if(this.currentBBox.w!==x.width+Pn*2||this.currentBBox.h!==x.height+Pn*2||this.currentBBox.x!==x.x-Pn||this.currentBBox.y!==x.y-Pn){this.currentBBox.w=x.width+Pn*2,this.currentBBox.h=x.height+Pn*2,this.currentBBox.x=x.x-Pn,this.currentBBox.y=x.y-Pn,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),c=this.svgElement.style;var b="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";c.transform=b,c.webkitTransform=b}}}};function HCameraElement(c,u,f){this.initFrame(),this.initBaseData(c,u,f),this.initHierarchy();var h=PropertyFactory.getProp;if(this.pe=h(this,c.pe,0,0,this),c.ks.p.s?(this.px=h(this,c.ks.p.x,1,0,this),this.py=h(this,c.ks.p.y,1,0,this),this.pz=h(this,c.ks.p.z,1,0,this)):this.p=h(this,c.ks.p,1,0,this),c.ks.a&&(this.a=h(this,c.ks.a,1,0,this)),c.ks.or.k.length&&c.ks.or.k[0].to){var d,v=c.ks.or.k.length;for(d=0;d<v;d+=1)c.ks.or.k[d].to=null,c.ks.or.k[d].ti=null}this.or=h(this,c.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=h(this,c.ks.rx,0,degToRads,this),this.ry=h(this,c.ks.ry,0,degToRads,this),this.rz=h(this,c.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var c,u=this.comp.threeDElements.length,f,h,d;for(c=0;c<u;c+=1)if(f=this.comp.threeDElements[c],f.type==="3d"){h=f.perspectiveElem.style,d=f.container.style;var v=this.pe.v+"px",p="0px 0px 0px",m="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";h.perspective=v,h.webkitPerspective=v,d.transformOrigin=p,d.mozTransformOrigin=p,d.webkitTransformOrigin=p,h.transform=m,h.webkitTransform=m}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var c=this._isFirstFrame,u,f;if(this.hierarchy)for(f=this.hierarchy.length,u=0;u<f;u+=1)c=this.hierarchy[u].finalTransform.mProp._mdf||c;if(c||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(f=this.hierarchy.length-1,u=f;u>=0;u-=1){var h=this.hierarchy[u].finalTransform.mProp;this.mat.translate(-h.p.v[0],-h.p.v[1],h.p.v[2]),this.mat.rotateX(-h.or.v[0]).rotateY(-h.or.v[1]).rotateZ(h.or.v[2]),this.mat.rotateX(-h.rx.v).rotateY(-h.ry.v).rotateZ(h.rz.v),this.mat.scale(1/h.s.v[0],1/h.s.v[1],1/h.s.v[2]),this.mat.translate(h.a.v[0],h.a.v[1],h.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var d;this.p?d=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:d=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var v=Math.sqrt(Math.pow(d[0],2)+Math.pow(d[1],2)+Math.pow(d[2],2)),p=[d[0]/v,d[1]/v,d[2]/v],m=Math.sqrt(p[2]*p[2]+p[0]*p[0]),g=Math.atan2(p[1],m),y=Math.atan2(p[0],-p[2]);this.mat.rotateY(y).rotateX(-g)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var x=!this._prevMat.equals(this.mat);if((x||this.pe._mdf)&&this.comp.threeDElements){f=this.comp.threeDElements.length;var Pn,b,vn;for(u=0;u<f;u+=1)if(Pn=this.comp.threeDElements[u],Pn.type==="3d"){if(x){var _=this.mat.toCSS();vn=Pn.container.style,vn.transform=_,vn.webkitTransform=_}this.pe._mdf&&(b=Pn.perspectiveElem.style,b.perspective=this.pe.v+"px",b.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(c,u,f){this.assetData=u.getAssetData(c.refId),this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData),u=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",c),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(u),u.crossOrigin="anonymous",u.src=c,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(c,u){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:u&&u.className||"",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(u&&u.hideOnTransparent===!1),filterSize:{width:u&&u.filterSize&&u.filterSize.width||"400%",height:u&&u.filterSize&&u.filterSize.height||"400%",x:u&&u.filterSize&&u.filterSize.x||"-100%",y:u&&u.filterSize&&u.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();c.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(c,u){var f=c.getBaseElement();if(f){var h=this.layers[u];if(!h.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(f,u);else{for(var d=0,v,p,m;d<u;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement&&(p=this.elements[d],m=this.layers[d].ddd?this.getThreeDContainerByPos(d):p.getBaseElement(),v=m||v),d+=1;v?(!h.ddd||!this.supports3d)&&this.layerElement.insertBefore(f,v):(!h.ddd||!this.supports3d)&&this.layerElement.appendChild(f)}else this.addTo3dContainer(f,u)}},HybridRendererBase.prototype.createShape=function(c){return this.supports3d?new HShapeElement(c,this.globalData,this):new SVGShapeElement(c,this.globalData,this)},HybridRendererBase.prototype.createText=function(c){return this.supports3d?new HTextElement(c,this.globalData,this):new SVGTextLottieElement(c,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(c){return this.camera=new HCameraElement(c,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(c){return this.supports3d?new HImageElement(c,this.globalData,this):new IImageElement(c,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(c){return this.supports3d?new HSolidElement(c,this.globalData,this):new ISolidElement(c,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(c){for(var u=0,f=this.threeDElements.length;u<f;){if(this.threeDElements[u].startPos<=c&&this.threeDElements[u].endPos>=c)return this.threeDElements[u].perspectiveElem;u+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(c,u){var f=createTag("div"),h,d;styleDiv(f);var v=createTag("div");if(styleDiv(v),u==="3d"){h=f.style,h.width=this.globalData.compSize.w+"px",h.height=this.globalData.compSize.h+"px";var p="50% 50%";h.webkitTransformOrigin=p,h.mozTransformOrigin=p,h.transformOrigin=p,d=v.style;var m="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";d.transform=m,d.webkitTransform=m}f.appendChild(v);var g={container:v,perspectiveElem:f,startPos:c,endPos:c,type:u};return this.threeDElements.push(g),g},HybridRendererBase.prototype.build3dContainers=function(){var c,u=this.layers.length,f,h="";for(c=0;c<u;c+=1)this.layers[c].ddd&&this.layers[c].ty!==3?(h!=="3d"&&(h="3d",f=this.createThreeDContainer(c,"3d")),f.endPos=Math.max(f.endPos,c)):(h!=="2d"&&(h="2d",f=this.createThreeDContainer(c,"2d")),f.endPos=Math.max(f.endPos,c));for(u=this.threeDElements.length,c=u-1;c>=0;c-=1)this.resizerElem.appendChild(this.threeDElements[c].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(c,u){for(var f=0,h=this.threeDElements.length;f<h;){if(u<=this.threeDElements[f].endPos){for(var d=this.threeDElements[f].startPos,v;d<u;)this.elements[d]&&this.elements[d].getBaseElement&&(v=this.elements[d].getBaseElement()),d+=1;v?this.threeDElements[f].container.insertBefore(c,v):this.threeDElements[f].container.appendChild(c);break}f+=1}},HybridRendererBase.prototype.configAnimation=function(c){var u=createTag("div"),f=this.animationItem.wrapper,h=u.style;h.width=c.w+"px",h.height=c.h+"px",this.resizerElem=u,styleDiv(u),h.transformStyle="flat",h.mozTransformStyle="flat",h.webkitTransformStyle="flat",this.renderConfig.className&&u.setAttribute("class",this.renderConfig.className),f.appendChild(u),h.overflow="hidden";var d=createNS("svg");d.setAttribute("width","1"),d.setAttribute("height","1"),styleDiv(d),this.resizerElem.appendChild(d);var v=createNS("defs");d.appendChild(v),this.data=c,this.setupGlobalData(c,d),this.globalData.defs=v,this.layers=c.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var c,u=this.layers?this.layers.length:0;for(c=0;c<u;c+=1)this.elements[c]&&this.elements[c].destroy&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var c=this.animationItem.wrapper.offsetWidth,u=this.animationItem.wrapper.offsetHeight,f=c/u,h=this.globalData.compSize.w/this.globalData.compSize.h,d,v,p,m;h>f?(d=c/this.globalData.compSize.w,v=c/this.globalData.compSize.w,p=0,m=(u-this.globalData.compSize.h*(c/this.globalData.compSize.w))/2):(d=u/this.globalData.compSize.h,v=u/this.globalData.compSize.h,p=(c-this.globalData.compSize.w*(u/this.globalData.compSize.h))/2,m=0);var g=this.resizerElem.style;g.webkitTransform="matrix3d("+d+",0,0,0,0,"+v+",0,0,0,0,1,0,"+p+","+m+",0,1)",g.transform=g.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var c=this.globalData.compSize.w,u=this.globalData.compSize.h,f,h=this.threeDElements.length;for(f=0;f<h;f+=1){var d=this.threeDElements[f].perspectiveElem.style;d.webkitPerspective=Math.sqrt(Math.pow(c,2)+Math.pow(u,2))+"px",d.perspective=d.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(c){var u,f=c.length,h=createTag("div");for(u=0;u<f;u+=1)if(c[u].xt){var d=this.createComp(c[u],h,this.globalData.comp,null);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}};function HCompElement(c,u,f){this.layers=c.layers,this.supports3d=!c.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(c,u,f),this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(c,u){for(var f=0,h;f<u;)this.elements[f]&&this.elements[f].getBaseElement&&(h=this.elements[f].getBaseElement()),f+=1;h?this.layerElement.insertBefore(c,h):this.layerElement.appendChild(c)},HCompElement.prototype.createComp=function(c){return this.supports3d?new HCompElement(c,this.globalData,this):new SVGCompElement(c,this.globalData,this)};function HybridRenderer(c,u){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:u&&u.className||"",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(u&&u.hideOnTransparent===!1),filterSize:{width:u&&u.filterSize&&u.filterSize.width||"400%",height:u&&u.filterSize&&u.filterSize.height||"400%",x:u&&u.filterSize&&u.filterSize.x||"-100%",y:u&&u.filterSize&&u.filterSize.y||"-100%"},runExpressions:!u||u.runExpressions===void 0||u.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(c){return this.supports3d?new HCompElement(c,this.globalData,this):new SVGCompElement(c,this.globalData,this)};var CompExpressionInterface=function(){return function(c){function u(f){for(var h=0,d=c.layers.length;h<d;){if(c.layers[h].nm===f||c.layers[h].ind===f)return c.elements[h].layerInterface;h+=1}return null}return Object.defineProperty(u,"_name",{value:c.data.nm}),u.layer=u,u.pixelAspect=1,u.height=c.data.h||c.globalData.compSize.h,u.width=c.data.w||c.globalData.compSize.w,u.pixelAspect=1,u.frameDuration=1/c.globalData.frameRate,u.displayStartTime=0,u.numLayers=c.layers.length,u}}();function _typeof$2(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(f){return typeof f}:_typeof$2=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$2(c)}function seedRandom(c,u){var f=this,h=256,d=6,v=52,p="random",m=u.pow(h,d),g=u.pow(2,v),y=g*2,x=h-1,Pn;function b(J,gn,Rn){var zn=[];gn=gn===!0?{entropy:!0}:gn||{};var Wn=Fn(re(gn.entropy?[J,w(c)]:J===null?Bn():J,3),zn),Un=new vn(zn),Qn=function(){for(var tr=Un.g(d),Xn=m,ar=0;tr<g;)tr=(tr+ar)*h,Xn*=h,ar=Un.g(1);for(;tr>=y;)tr/=2,Xn/=2,ar>>>=1;return(tr+ar)/Xn};return Qn.int32=function(){return Un.g(4)|0},Qn.quick=function(){return Un.g(4)/4294967296},Qn.double=Qn,Fn(w(Un.S),c),(gn.pass||Rn||function(Jn,tr,Xn,ar){return ar&&(ar.S&&_(ar,Un),Jn.state=function(){return _(Un,{})}),Xn?(u[p]=Jn,tr):Jn})(Qn,Wn,"global"in gn?gn.global:this==u,gn.state)}u["seed"+p]=b;function vn(J){var gn,Rn=J.length,zn=this,Wn=0,Un=zn.i=zn.j=0,Qn=zn.S=[];for(Rn||(J=[Rn++]);Wn<h;)Qn[Wn]=Wn++;for(Wn=0;Wn<h;Wn++)Qn[Wn]=Qn[Un=x&Un+J[Wn%Rn]+(gn=Qn[Wn])],Qn[Un]=gn;zn.g=function(Jn){for(var tr,Xn=0,ar=zn.i,sr=zn.j,nr=zn.S;Jn--;)tr=nr[ar=x&ar+1],Xn=Xn*h+nr[x&(nr[ar]=nr[sr=x&sr+tr])+(nr[sr]=tr)];return zn.i=ar,zn.j=sr,Xn}}function _(J,gn){return gn.i=J.i,gn.j=J.j,gn.S=J.S.slice(),gn}function re(J,gn){var Rn=[],zn=_typeof$2(J),Wn;if(gn&&zn=="object")for(Wn in J)try{Rn.push(re(J[Wn],gn-1))}catch{}return Rn.length?Rn:zn=="string"?J:J+"\0"}function Fn(J,gn){for(var Rn=J+"",zn,Wn=0;Wn<Rn.length;)gn[x&Wn]=x&(zn^=gn[x&Wn]*19)+Rn.charCodeAt(Wn++);return w(gn)}function Bn(){try{var J=new Uint8Array(h);return(f.crypto||f.msCrypto).getRandomValues(J),w(J)}catch{var gn=f.navigator,Rn=gn&&gn.plugins;return[+new Date,f,Rn,f.screen,w(c)]}}function w(J){return String.fromCharCode.apply(0,J)}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,h=c.length,d=[];for(f=0;f<h;f+=1)d[f]=-c[f];return d}return c.propType?c.v:-c}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(c,u){var f=_typeof$1(c),h=_typeof$1(u);if(isNumerable(f,c)&&isNumerable(h,u)||f==="string"||h==="string")return c+u;if($bm_isInstanceOfArray(c)&&isNumerable(h,u))return c=c.slice(0),c[0]+=u,c;if(isNumerable(f,c)&&$bm_isInstanceOfArray(u))return u=u.slice(0),u[0]=c+u[0],u;if($bm_isInstanceOfArray(c)&&$bm_isInstanceOfArray(u)){for(var d=0,v=c.length,p=u.length,m=[];d<v||d<p;)(typeof c[d]=="number"||c[d]instanceof Number)&&(typeof u[d]=="number"||u[d]instanceof Number)?m[d]=c[d]+u[d]:m[d]=u[d]===void 0?c[d]:c[d]||u[d],d+=1;return m}return 0}var add=sum;function sub(c,u){var f=_typeof$1(c),h=_typeof$1(u);if(isNumerable(f,c)&&isNumerable(h,u))return f==="string"&&(c=parseInt(c,10)),h==="string"&&(u=parseInt(u,10)),c-u;if($bm_isInstanceOfArray(c)&&isNumerable(h,u))return c=c.slice(0),c[0]-=u,c;if(isNumerable(f,c)&&$bm_isInstanceOfArray(u))return u=u.slice(0),u[0]=c-u[0],u;if($bm_isInstanceOfArray(c)&&$bm_isInstanceOfArray(u)){for(var d=0,v=c.length,p=u.length,m=[];d<v||d<p;)(typeof c[d]=="number"||c[d]instanceof Number)&&(typeof u[d]=="number"||u[d]instanceof Number)?m[d]=c[d]-u[d]:m[d]=u[d]===void 0?c[d]:c[d]||u[d],d+=1;return m}return 0}function mul(c,u){var f=_typeof$1(c),h=_typeof$1(u),d;if(isNumerable(f,c)&&isNumerable(h,u))return c*u;var v,p;if($bm_isInstanceOfArray(c)&&isNumerable(h,u)){for(p=c.length,d=createTypedArray("float32",p),v=0;v<p;v+=1)d[v]=c[v]*u;return d}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(p=u.length,d=createTypedArray("float32",p),v=0;v<p;v+=1)d[v]=c*u[v];return d}return 0}function div(c,u){var f=_typeof$1(c),h=_typeof$1(u),d;if(isNumerable(f,c)&&isNumerable(h,u))return c/u;var v,p;if($bm_isInstanceOfArray(c)&&isNumerable(h,u)){for(p=c.length,d=createTypedArray("float32",p),v=0;v<p;v+=1)d[v]=c[v]/u;return d}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(p=u.length,d=createTypedArray("float32",p),v=0;v<p;v+=1)d[v]=c/u[v];return d}return 0}function mod(c,u){return typeof c=="string"&&(c=parseInt(c,10)),typeof u=="string"&&(u=parseInt(u,10)),c%u}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(c,u,f){if(u>f){var h=f;f=u,u=h}return Math.min(Math.max(c,u),f)}function radiansToDegrees(c){return c/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(c){return c*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(c,u){if(typeof c=="number"||c instanceof Number)return u=u||0,Math.abs(c-u);u||(u=helperLengthArray);var f,h=Math.min(c.length,u.length),d=0;for(f=0;f<h;f+=1)d+=Math.pow(u[f]-c[f],2);return Math.sqrt(d)}function normalize(c){return div(c,length(c))}function rgbToHsl(c){var u=c[0],f=c[1],h=c[2],d=Math.max(u,f,h),v=Math.min(u,f,h),p,m,g=(d+v)/2;if(d===v)p=0,m=0;else{var y=d-v;switch(m=g>.5?y/(2-d-v):y/(d+v),d){case u:p=(f-h)/y+(f<h?6:0);break;case f:p=(h-u)/y+2;break;case h:p=(u-f)/y+4;break}p/=6}return[p,m,g,c[3]]}function hue2rgb(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}function hslToRgb(c){var u=c[0],f=c[1],h=c[2],d,v,p;if(f===0)d=h,p=h,v=h;else{var m=h<.5?h*(1+f):h+f-h*f,g=2*h-m;d=hue2rgb(g,m,u+1/3),v=hue2rgb(g,m,u),p=hue2rgb(g,m,u-1/3)}return[d,v,p,c[3]]}function linear(c,u,f,h,d){if((h===void 0||d===void 0)&&(h=u,d=f,u=0,f=1),f<u){var v=f;f=u,u=v}if(c<=u)return h;if(c>=f)return d;var p=f===u?0:(c-u)/(f-u);if(!h.length)return h+(d-h)*p;var m,g=h.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=h[m]+(d[m]-h[m])*p;return y}function random(c,u){if(u===void 0&&(c===void 0?(c=0,u=1):(u=c,c=void 0)),u.length){var f,h=u.length;c||(c=createTypedArray("float32",h));var d=createTypedArray("float32",h),v=BMMath.random();for(f=0;f<h;f+=1)d[f]=c[f]+v*(u[f]-c[f]);return d}c===void 0&&(c=0);var p=BMMath.random();return c+p*(u-c)}function createPath(c,u,f,h){var d,v=c.length,p=shapePool.newElement();p.setPathData(!!h,v);var m=[0,0],g,y;for(d=0;d<v;d+=1)g=u&&u[d]?u[d]:m,y=f&&f[d]?f[d]:m,p.setTripleAt(c[d][0],c[d][1],y[0]+c[d][0],y[1]+c[d][1],g[0]+c[d][0],g[1]+c[d][1],d,!0);return p}function initiateExpression(elem,data,property){function noOp(c){return c}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function c(u,f){var h,d,v=this.pv.length?this.pv.length:1,p=createTypedArray("float32",v);u=5;var m=Math.floor(time*u);for(h=0,d=0;h<m;){for(d=0;d<v;d+=1)p[d]+=-f+f*2*BMMath.random();h+=1}var g=time*u,y=g-Math.floor(g),x=createTypedArray("float32",v);if(v>1){for(d=0;d<v;d+=1)x[d]=this.pv[d]+p[d]+(-f+f*2*BMMath.random())*y;return x}return this.pv+p[0]+(-f+f*2*BMMath.random())*y}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(c,u){return loopIn(c,u,!0)}function loopOutDuration(c,u){return loopOut(c,u,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(c,u){var f=[u[0]-c[0],u[1]-c[1],u[2]-c[2]],h=Math.atan2(f[0],Math.sqrt(f[1]*f[1]+f[2]*f[2]))/degToRads,d=-Math.atan2(f[1],f[2])/degToRads;return[d,h,0]}function easeOut(c,u,f,h,d){return applyEase(easeOutBez,c,u,f,h,d)}function easeIn(c,u,f,h,d){return applyEase(easeInBez,c,u,f,h,d)}function ease(c,u,f,h,d){return applyEase(easeInOutBez,c,u,f,h,d)}function applyEase(c,u,f,h,d,v){d===void 0?(d=f,v=h):u=(u-f)/(h-f),u>1?u=1:u<0&&(u=0);var p=c(u);if($bm_isInstanceOfArray(d)){var m,g=d.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=(v[m]-d[m])*p+d[m];return y}return(v-d)*p+d}function nearestKey(c){var u,f=data.k.length,h,d;if(!data.k.length||typeof data.k[0]=="number")h=0,d=0;else if(h=-1,c*=elem.comp.globalData.frameRate,c<data.k[0].t)h=1,d=data.k[0].t;else{for(u=0;u<f-1;u+=1)if(c===data.k[u].t){h=u+1,d=data.k[u].t;break}else if(c>data.k[u].t&&c<data.k[u+1].t){c-data.k[u].t>data.k[u+1].t-c?(h=u+2,d=data.k[u+1].t):(h=u+1,d=data.k[u].t);break}h===-1&&(h=u+1,d=data.k[u].t)}var v={};return v.index=h,v.time=d/elem.comp.globalData.frameRate,v}function key(c){var u,f,h;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+c);c-=1,u={time:data.k[c].t/elem.comp.globalData.frameRate,value:[]};var d=Object.prototype.hasOwnProperty.call(data.k[c],"s")?data.k[c].s:data.k[c-1].e;for(h=d.length,f=0;f<h;f+=1)u[f]=d[f],u.value[f]=d[f];return u}function framesToTime(c,u){return u||(u=elem.comp.globalData.frameRate),c/u}function timeToFrames(c,u){return!c&&c!==0&&(c=time),u||(u=elem.comp.globalData.frameRate),c*u}function seedRandom(c){BMMath.seedrandom(randSeed+c)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(c,u){return typeof value=="string"?u===void 0?value.substring(c):value.substring(c,u):""}function substr(c,u){return typeof value=="string"?u===void 0?value.substr(c):value.substr(c,u):""}function posterizeTime(c){time=c===0?0:Math.floor(time*c)/c,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(c){return value=c,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var c={};c.initExpressions=u,c.resetFrame=ExpressionManager.resetFrame;function u(f){var h=0,d=[];function v(){h+=1}function p(){h-=1,h===0&&g()}function m(y){d.indexOf(y)===-1&&d.push(y)}function g(){var y,x=d.length;for(y=0;y<x;y+=1)d[y].release();d.length=0}f.renderer.compInterface=CompExpressionInterface(f.renderer),f.renderer.globalData.projectInterface.registerComposition(f.renderer),f.renderer.globalData.pushExpression=v,f.renderer.globalData.popExpression=p,f.renderer.globalData.registerExpressionProperty=m}return c}(),MaskManagerInterface=function(){function c(f,h){this._mask=f,this._data=h}Object.defineProperty(c.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(c.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var u=function(h){var d=createSizedArray(h.viewData.length),v,p=h.viewData.length;for(v=0;v<p;v+=1)d[v]=new c(h.viewData[v],h.masksProperties[v]);var m=function(y){for(v=0;v<p;){if(h.masksProperties[v].nm===y)return d[v];v+=1}return null};return m};return u}(),ExpressionPropertyInterface=function(){var c={pv:0,v:0,mult:1},u={pv:[0,0,0],v:[0,0,0],mult:1};function f(p,m,g){Object.defineProperty(p,"velocity",{get:function(){return m.getVelocityAtTime(m.comp.currentFrame)}}),p.numKeys=m.keyframes?m.keyframes.length:0,p.key=function(y){if(!p.numKeys)return 0;var x="";"s"in m.keyframes[y-1]?x=m.keyframes[y-1].s:"e"in m.keyframes[y-2]?x=m.keyframes[y-2].e:x=m.keyframes[y-2].s;var Pn=g==="unidimensional"?new Number(x):Object.assign({},x);return Pn.time=m.keyframes[y-1].t/m.elem.comp.globalData.frameRate,Pn.value=g==="unidimensional"?x[0]:x,Pn},p.valueAtTime=m.getValueAtTime,p.speedAtTime=m.getSpeedAtTime,p.velocityAtTime=m.getVelocityAtTime,p.propertyGroup=m.propertyGroup}function h(p){(!p||!("pv"in p))&&(p=c);var m=1/p.mult,g=p.pv*m,y=new Number(g);return y.value=g,f(y,p,"unidimensional"),function(){return p.k&&p.getValue(),g=p.v*m,y.value!==g&&(y=new Number(g),y.value=g,f(y,p,"unidimensional")),y}}function d(p){(!p||!("pv"in p))&&(p=u);var m=1/p.mult,g=p.data&&p.data.l||p.pv.length,y=createTypedArray("float32",g),x=createTypedArray("float32",g);return y.value=x,f(y,p,"multidimensional"),function(){p.k&&p.getValue();for(var Pn=0;Pn<g;Pn+=1)x[Pn]=p.v[Pn]*m,y[Pn]=x[Pn];return y}}function v(){return c}return function(p){return p?p.propType==="unidimensional"?h(p):d(p):v}}(),TransformExpressionInterface=function(){return function(c){function u(p){switch(p){case"scale":case"Scale":case"ADBE Scale":case 6:return u.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return u.rotation;case"ADBE Rotate X":return u.xRotation;case"ADBE Rotate Y":return u.yRotation;case"position":case"Position":case"ADBE Position":case 2:return u.position;case"ADBE Position_0":return u.xPosition;case"ADBE Position_1":return u.yPosition;case"ADBE Position_2":return u.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return u.anchorPoint;case"opacity":case"Opacity":case 11:return u.opacity;default:return null}}Object.defineProperty(u,"rotation",{get:ExpressionPropertyInterface(c.r||c.rz)}),Object.defineProperty(u,"zRotation",{get:ExpressionPropertyInterface(c.rz||c.r)}),Object.defineProperty(u,"xRotation",{get:ExpressionPropertyInterface(c.rx)}),Object.defineProperty(u,"yRotation",{get:ExpressionPropertyInterface(c.ry)}),Object.defineProperty(u,"scale",{get:ExpressionPropertyInterface(c.s)});var f,h,d,v;return c.p?v=ExpressionPropertyInterface(c.p):(f=ExpressionPropertyInterface(c.px),h=ExpressionPropertyInterface(c.py),c.pz&&(d=ExpressionPropertyInterface(c.pz))),Object.defineProperty(u,"position",{get:function(){return c.p?v():[f(),h(),d?d():0]}}),Object.defineProperty(u,"xPosition",{get:ExpressionPropertyInterface(c.px)}),Object.defineProperty(u,"yPosition",{get:ExpressionPropertyInterface(c.py)}),Object.defineProperty(u,"zPosition",{get:ExpressionPropertyInterface(c.pz)}),Object.defineProperty(u,"anchorPoint",{get:ExpressionPropertyInterface(c.a)}),Object.defineProperty(u,"opacity",{get:ExpressionPropertyInterface(c.o)}),Object.defineProperty(u,"skew",{get:ExpressionPropertyInterface(c.sk)}),Object.defineProperty(u,"skewAxis",{get:ExpressionPropertyInterface(c.sa)}),Object.defineProperty(u,"orientation",{get:ExpressionPropertyInterface(c.or)}),u}}(),LayerExpressionInterface=function(){function c(y){var x=new Matrix;if(y!==void 0){var Pn=this._elem.finalTransform.mProp.getValueAtTime(y);Pn.clone(x)}else{var b=this._elem.finalTransform.mProp;b.applyToMatrix(x)}return x}function u(y,x){var Pn=this.getMatrix(x);return Pn.props[12]=0,Pn.props[13]=0,Pn.props[14]=0,this.applyPoint(Pn,y)}function f(y,x){var Pn=this.getMatrix(x);return this.applyPoint(Pn,y)}function h(y,x){var Pn=this.getMatrix(x);return Pn.props[12]=0,Pn.props[13]=0,Pn.props[14]=0,this.invertPoint(Pn,y)}function d(y,x){var Pn=this.getMatrix(x);return this.invertPoint(Pn,y)}function v(y,x){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Pn,b=this._elem.hierarchy.length;for(Pn=0;Pn<b;Pn+=1)this._elem.hierarchy[Pn].finalTransform.mProp.applyToMatrix(y)}return y.applyToPointArray(x[0],x[1],x[2]||0)}function p(y,x){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Pn,b=this._elem.hierarchy.length;for(Pn=0;Pn<b;Pn+=1)this._elem.hierarchy[Pn].finalTransform.mProp.applyToMatrix(y)}return y.inversePoint(x)}function m(y){var x=new Matrix;if(x.reset(),this._elem.finalTransform.mProp.applyToMatrix(x),this._elem.hierarchy&&this._elem.hierarchy.length){var Pn,b=this._elem.hierarchy.length;for(Pn=0;Pn<b;Pn+=1)this._elem.hierarchy[Pn].finalTransform.mProp.applyToMatrix(x);return x.inversePoint(y)}return x.inversePoint(y)}function g(){return[1,1,1,1]}return function(y){var x;function Pn(re){vn.mask=new MaskManagerInterface(re,y)}function b(re){vn.effect=re}function vn(re){switch(re){case"ADBE Root Vectors Group":case"Contents":case 2:return vn.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return x;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return vn.effect;case"ADBE Text Properties":return vn.textInterface;default:return null}}vn.getMatrix=c,vn.invertPoint=p,vn.applyPoint=v,vn.toWorld=f,vn.toWorldVec=u,vn.fromWorld=d,vn.fromWorldVec=h,vn.toComp=f,vn.fromComp=m,vn.sampleImage=g,vn.sourceRectAtTime=y.sourceRectAtTime.bind(y),vn._elem=y,x=TransformExpressionInterface(y.finalTransform.mProp);var _=getDescriptor(x,"anchorPoint");return Object.defineProperties(vn,{hasParent:{get:function(){return y.hierarchy.length}},parent:{get:function(){return y.hierarchy[0].layerInterface}},rotation:getDescriptor(x,"rotation"),scale:getDescriptor(x,"scale"),position:getDescriptor(x,"position"),opacity:getDescriptor(x,"opacity"),anchorPoint:_,anchor_point:_,transform:{get:function(){return x}},active:{get:function(){return y.isInRange}}}),vn.startTime=y.data.st,vn.index=y.data.ind,vn.source=y.data.refId,vn.height=y.data.ty===0?y.data.h:100,vn.width=y.data.ty===0?y.data.w:100,vn.inPoint=y.data.ip/y.comp.globalData.frameRate,vn.outPoint=y.data.op/y.comp.globalData.frameRate,vn._name=y.data.nm,vn.registerMaskInterface=Pn,vn.registerEffectsInterface=b,vn}}(),propertyGroupFactory=function(){return function(c,u){return function(f){return f=f===void 0?1:f,f<=0?c:u(f-1)}}}(),PropertyInterface=function(){return function(c,u){var f={_name:c};function h(d){return d=d===void 0?1:d,d<=0?f:u(d-1)}return h}}(),EffectsExpressionInterface=function(){var c={createEffectsInterface:u};function u(d,v){if(d.effectsManager){var p=[],m=d.data.ef,g,y=d.effectsManager.effectElements.length;for(g=0;g<y;g+=1)p.push(f(m[g],d.effectsManager.effectElements[g],v,d));var x=d.data.ef||[],Pn=function(vn){for(g=0,y=x.length;g<y;){if(vn===x[g].nm||vn===x[g].mn||vn===x[g].ix)return p[g];g+=1}return null};return Object.defineProperty(Pn,"numProperties",{get:function(){return x.length}}),Pn}return null}function f(d,v,p,m){function g(vn){for(var _=d.ef,re=0,Fn=_.length;re<Fn;){if(vn===_[re].nm||vn===_[re].mn||vn===_[re].ix)return _[re].ty===5?x[re]:x[re]();re+=1}throw new Error}var y=propertyGroupFactory(g,p),x=[],Pn,b=d.ef.length;for(Pn=0;Pn<b;Pn+=1)d.ef[Pn].ty===5?x.push(f(d.ef[Pn],v.effectElements[Pn],v.effectElements[Pn].propertyGroup,m)):x.push(h(v.effectElements[Pn],d.ef[Pn].ty,m,y));return d.mn==="ADBE Color Control"&&Object.defineProperty(g,"color",{get:function(){return x[0]()}}),Object.defineProperties(g,{numProperties:{get:function(){return d.np}},_name:{value:d.nm},propertyGroup:{value:y}}),g.enabled=d.en!==0,g.active=g.enabled,g}function h(d,v,p,m){var g=ExpressionPropertyInterface(d.p);function y(){return v===10?p.comp.compInterface(d.p.v):g()}return d.p.setGroupProperty&&d.p.setGroupProperty(PropertyInterface("",m)),y}return c}(),ShapePathInterface=function(){return function(u,f,h){var d=f.sh;function v(m){return m==="Shape"||m==="shape"||m==="Path"||m==="path"||m==="ADBE Vector Shape"||m===2?v.path:null}var p=propertyGroupFactory(v,h);return d.setGroupProperty(PropertyInterface("Path",p)),Object.defineProperties(v,{path:{get:function(){return d.k&&d.getValue(),d}},shape:{get:function(){return d.k&&d.getValue(),d}},_name:{value:u.nm},ix:{value:u.ix},propertyIndex:{value:u.ix},mn:{value:u.mn},propertyGroup:{value:h}}),v}}(),ShapeExpressionInterface=function(){function c(_,re,Fn){var Bn=[],w,J=_?_.length:0;for(w=0;w<J;w+=1)_[w].ty==="gr"?Bn.push(f(_[w],re[w],Fn)):_[w].ty==="fl"?Bn.push(h(_[w],re[w],Fn)):_[w].ty==="st"?Bn.push(p(_[w],re[w],Fn)):_[w].ty==="tm"?Bn.push(m(_[w],re[w],Fn)):_[w].ty==="tr"||(_[w].ty==="el"?Bn.push(y(_[w],re[w],Fn)):_[w].ty==="sr"?Bn.push(x(_[w],re[w],Fn)):_[w].ty==="sh"?Bn.push(ShapePathInterface(_[w],re[w],Fn)):_[w].ty==="rc"?Bn.push(Pn(_[w],re[w],Fn)):_[w].ty==="rd"?Bn.push(b(_[w],re[w],Fn)):_[w].ty==="rp"?Bn.push(vn(_[w],re[w],Fn)):_[w].ty==="gf"?Bn.push(d(_[w],re[w],Fn)):Bn.push(v(_[w],re[w])));return Bn}function u(_,re,Fn){var Bn,w=function(Rn){for(var zn=0,Wn=Bn.length;zn<Wn;){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};w.propertyGroup=propertyGroupFactory(w,Fn),Bn=c(_.it,re.it,w.propertyGroup),w.numProperties=Bn.length;var J=g(_.it[_.it.length-1],re.it[re.it.length-1],w.propertyGroup);return w.transform=J,w.propertyIndex=_.cix,w._name=_.nm,w}function f(_,re,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 w=u(_,re,Bn.propertyGroup),J=g(_.it[_.it.length-1],re.it[re.it.length-1],Bn.propertyGroup);return Bn.content=w,Bn.transform=J,Object.defineProperty(Bn,"_name",{get:function(){return _.nm}}),Bn.numProperties=_.np,Bn.propertyIndex=_.ix,Bn.nm=_.nm,Bn.mn=_.mn,Bn}function h(_,re,Fn){function Bn(w){return w==="Color"||w==="color"?Bn.color:w==="Opacity"||w==="opacity"?Bn.opacity:null}return Object.defineProperties(Bn,{color:{get:ExpressionPropertyInterface(re.c)},opacity:{get:ExpressionPropertyInterface(re.o)},_name:{value:_.nm},mn:{value:_.mn}}),re.c.setGroupProperty(PropertyInterface("Color",Fn)),re.o.setGroupProperty(PropertyInterface("Opacity",Fn)),Bn}function d(_,re,Fn){function Bn(w){return w==="Start Point"||w==="start point"?Bn.startPoint:w==="End Point"||w==="end point"?Bn.endPoint:w==="Opacity"||w==="opacity"?Bn.opacity:null}return Object.defineProperties(Bn,{startPoint:{get:ExpressionPropertyInterface(re.s)},endPoint:{get:ExpressionPropertyInterface(re.e)},opacity:{get:ExpressionPropertyInterface(re.o)},type:{get:function(){return"a"}},_name:{value:_.nm},mn:{value:_.mn}}),re.s.setGroupProperty(PropertyInterface("Start Point",Fn)),re.e.setGroupProperty(PropertyInterface("End Point",Fn)),re.o.setGroupProperty(PropertyInterface("Opacity",Fn)),Bn}function v(){function _(){return null}return _}function p(_,re,Fn){var Bn=propertyGroupFactory(Wn,Fn),w=propertyGroupFactory(zn,Bn);function J(Un){Object.defineProperty(zn,_.d[Un].nm,{get:ExpressionPropertyInterface(re.d.dataProps[Un].p)})}var gn,Rn=_.d?_.d.length:0,zn={};for(gn=0;gn<Rn;gn+=1)J(gn),re.d.dataProps[gn].p.setGroupProperty(w);function Wn(Un){return Un==="Color"||Un==="color"?Wn.color:Un==="Opacity"||Un==="opacity"?Wn.opacity:Un==="Stroke Width"||Un==="stroke width"?Wn.strokeWidth:null}return Object.defineProperties(Wn,{color:{get:ExpressionPropertyInterface(re.c)},opacity:{get:ExpressionPropertyInterface(re.o)},strokeWidth:{get:ExpressionPropertyInterface(re.w)},dash:{get:function(){return zn}},_name:{value:_.nm},mn:{value:_.mn}}),re.c.setGroupProperty(PropertyInterface("Color",Bn)),re.o.setGroupProperty(PropertyInterface("Opacity",Bn)),re.w.setGroupProperty(PropertyInterface("Stroke Width",Bn)),Wn}function m(_,re,Fn){function Bn(J){return J===_.e.ix||J==="End"||J==="end"?Bn.end:J===_.s.ix?Bn.start:J===_.o.ix?Bn.offset:null}var w=propertyGroupFactory(Bn,Fn);return Bn.propertyIndex=_.ix,re.s.setGroupProperty(PropertyInterface("Start",w)),re.e.setGroupProperty(PropertyInterface("End",w)),re.o.setGroupProperty(PropertyInterface("Offset",w)),Bn.propertyIndex=_.ix,Bn.propertyGroup=Fn,Object.defineProperties(Bn,{start:{get:ExpressionPropertyInterface(re.s)},end:{get:ExpressionPropertyInterface(re.e)},offset:{get:ExpressionPropertyInterface(re.o)},_name:{value:_.nm}}),Bn.mn=_.mn,Bn}function g(_,re,Fn){function Bn(J){return _.a.ix===J||J==="Anchor Point"?Bn.anchorPoint:_.o.ix===J||J==="Opacity"?Bn.opacity:_.p.ix===J||J==="Position"?Bn.position:_.r.ix===J||J==="Rotation"||J==="ADBE Vector Rotation"?Bn.rotation:_.s.ix===J||J==="Scale"?Bn.scale:_.sk&&_.sk.ix===J||J==="Skew"?Bn.skew:_.sa&&_.sa.ix===J||J==="Skew Axis"?Bn.skewAxis:null}var w=propertyGroupFactory(Bn,Fn);return re.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",w)),re.transform.mProps.p.setGroupProperty(PropertyInterface("Position",w)),re.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",w)),re.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",w)),re.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",w)),re.transform.mProps.sk&&(re.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",w)),re.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",w))),re.transform.op.setGroupProperty(PropertyInterface("Opacity",w)),Object.defineProperties(Bn,{opacity:{get:ExpressionPropertyInterface(re.transform.mProps.o)},position:{get:ExpressionPropertyInterface(re.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(re.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(re.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(re.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(re.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(re.transform.mProps.sa)},_name:{value:_.nm}}),Bn.ty="tr",Bn.mn=_.mn,Bn.propertyGroup=Fn,Bn}function y(_,re,Fn){function Bn(gn){return _.p.ix===gn?Bn.position:_.s.ix===gn?Bn.size:null}var w=propertyGroupFactory(Bn,Fn);Bn.propertyIndex=_.ix;var J=re.sh.ty==="tm"?re.sh.prop:re.sh;return J.s.setGroupProperty(PropertyInterface("Size",w)),J.p.setGroupProperty(PropertyInterface("Position",w)),Object.defineProperties(Bn,{size:{get:ExpressionPropertyInterface(J.s)},position:{get:ExpressionPropertyInterface(J.p)},_name:{value:_.nm}}),Bn.mn=_.mn,Bn}function x(_,re,Fn){function Bn(gn){return _.p.ix===gn?Bn.position:_.r.ix===gn?Bn.rotation:_.pt.ix===gn?Bn.points:_.or.ix===gn||gn==="ADBE Vector Star Outer Radius"?Bn.outerRadius:_.os.ix===gn?Bn.outerRoundness:_.ir&&(_.ir.ix===gn||gn==="ADBE Vector Star Inner Radius")?Bn.innerRadius:_.is&&_.is.ix===gn?Bn.innerRoundness:null}var w=propertyGroupFactory(Bn,Fn),J=re.sh.ty==="tm"?re.sh.prop:re.sh;return Bn.propertyIndex=_.ix,J.or.setGroupProperty(PropertyInterface("Outer Radius",w)),J.os.setGroupProperty(PropertyInterface("Outer Roundness",w)),J.pt.setGroupProperty(PropertyInterface("Points",w)),J.p.setGroupProperty(PropertyInterface("Position",w)),J.r.setGroupProperty(PropertyInterface("Rotation",w)),_.ir&&(J.ir.setGroupProperty(PropertyInterface("Inner Radius",w)),J.is.setGroupProperty(PropertyInterface("Inner Roundness",w))),Object.defineProperties(Bn,{position:{get:ExpressionPropertyInterface(J.p)},rotation:{get:ExpressionPropertyInterface(J.r)},points:{get:ExpressionPropertyInterface(J.pt)},outerRadius:{get:ExpressionPropertyInterface(J.or)},outerRoundness:{get:ExpressionPropertyInterface(J.os)},innerRadius:{get:ExpressionPropertyInterface(J.ir)},innerRoundness:{get:ExpressionPropertyInterface(J.is)},_name:{value:_.nm}}),Bn.mn=_.mn,Bn}function Pn(_,re,Fn){function Bn(gn){return _.p.ix===gn?Bn.position:_.r.ix===gn?Bn.roundness:_.s.ix===gn||gn==="Size"||gn==="ADBE Vector Rect Size"?Bn.size:null}var w=propertyGroupFactory(Bn,Fn),J=re.sh.ty==="tm"?re.sh.prop:re.sh;return Bn.propertyIndex=_.ix,J.p.setGroupProperty(PropertyInterface("Position",w)),J.s.setGroupProperty(PropertyInterface("Size",w)),J.r.setGroupProperty(PropertyInterface("Rotation",w)),Object.defineProperties(Bn,{position:{get:ExpressionPropertyInterface(J.p)},roundness:{get:ExpressionPropertyInterface(J.r)},size:{get:ExpressionPropertyInterface(J.s)},_name:{value:_.nm}}),Bn.mn=_.mn,Bn}function b(_,re,Fn){function Bn(gn){return _.r.ix===gn||gn==="Round Corners 1"?Bn.radius:null}var w=propertyGroupFactory(Bn,Fn),J=re;return Bn.propertyIndex=_.ix,J.rd.setGroupProperty(PropertyInterface("Radius",w)),Object.defineProperties(Bn,{radius:{get:ExpressionPropertyInterface(J.rd)},_name:{value:_.nm}}),Bn.mn=_.mn,Bn}function vn(_,re,Fn){function Bn(gn){return _.c.ix===gn||gn==="Copies"?Bn.copies:_.o.ix===gn||gn==="Offset"?Bn.offset:null}var w=propertyGroupFactory(Bn,Fn),J=re;return Bn.propertyIndex=_.ix,J.c.setGroupProperty(PropertyInterface("Copies",w)),J.o.setGroupProperty(PropertyInterface("Offset",w)),Object.defineProperties(Bn,{copies:{get:ExpressionPropertyInterface(J.c)},offset:{get:ExpressionPropertyInterface(J.o)},_name:{value:_.nm}}),Bn.mn=_.mn,Bn}return function(_,re,Fn){var Bn;function w(gn){if(typeof gn=="number")return gn=gn===void 0?1:gn,gn===0?Fn:Bn[gn-1];for(var Rn=0,zn=Bn.length;Rn<zn;){if(Bn[Rn]._name===gn)return Bn[Rn];Rn+=1}return null}function J(){return Fn}return w.propertyGroup=propertyGroupFactory(w,J),Bn=c(_,re,w.propertyGroup),w.numProperties=Bn.length,w._name="Contents",w}}(),TextExpressionInterface=function(){return function(c){var u;function f(h){switch(h){case"ADBE Text Document":return f.sourceText;default:return null}}return Object.defineProperty(f,"sourceText",{get:function(){c.textProperty.getValue();var d=c.textProperty.currentData.t;return(!u||d!==u.value)&&(u=new String(d),u.value=d||new String(d),Object.defineProperty(u,"style",{get:function(){return{fillColor:c.textProperty.currentData.fc}}})),u}}),f}}();function _typeof(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(f){return typeof f}:_typeof=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof(c)}var FootageInterface=function(){var c=function(h){var d="",v=h.getFootageData();function p(){return d="",v=h.getFootageData(),m}function m(g){if(v[g])return d=g,v=v[g],_typeof(v)==="object"?m:v;var y=g.indexOf(d);if(y!==-1){var x=parseInt(g.substr(y+d.length),10);return v=v[x],_typeof(v)==="object"?m:v}return""}return p},u=function(h){function d(v){return v==="Outline"?d.outlineInterface():null}return d._name="Outline",d.outlineInterface=c(h),d};return function(f){function h(d){return d==="Data"?h.dataInterface:null}return h._name="Data",h.dataInterface=u(f),h}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(c){return interfaces[c]||null}var expressionHelpers=function(){function c(p,m,g){m.x&&(g.k=!0,g.x=!0,g.initiateExpression=ExpressionManager.initiateExpression,g.effectsSequence.push(g.initiateExpression(p,m,g).bind(g)))}function u(p){return p*=this.elem.globalData.frameRate,p-=this.offsetTime,p!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<p?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(p,this._cachingAtTime),this._cachingAtTime.lastFrame=p),this._cachingAtTime.value}function f(p){var m=-.01,g=this.getValueAtTime(p),y=this.getValueAtTime(p+m),x=0;if(g.length){var Pn;for(Pn=0;Pn<g.length;Pn+=1)x+=Math.pow(y[Pn]-g[Pn],2);x=Math.sqrt(x)*100}else x=0;return x}function h(p){if(this.vel!==void 0)return this.vel;var m=-.001,g=this.getValueAtTime(p),y=this.getValueAtTime(p+m),x;if(g.length){x=createTypedArray("float32",g.length);var Pn;for(Pn=0;Pn<g.length;Pn+=1)x[Pn]=(y[Pn]-g[Pn])/m}else x=(y-g)/m;return x}function d(){return this.pv}function v(p){this.propertyGroup=p}return{searchExpressions:c,getSpeedAtTime:f,getVelocityAtTime:h,getValueAtTime:u,getStaticValueAtTime:d,setGroupProperty:v}}();function addPropertyDecorator(){function c(b,vn,_){if(!this.k||!this.keyframes)return this.pv;b=b?b.toLowerCase():"";var re=this.comp.renderedFrame,Fn=this.keyframes,Bn=Fn[Fn.length-1].t;if(re<=Bn)return this.pv;var w,J;_?(vn?w=Math.abs(Bn-this.elem.comp.globalData.frameRate*vn):w=Math.max(0,Bn-this.elem.data.ip),J=Bn-w):((!vn||vn>Fn.length-1)&&(vn=Fn.length-1),J=Fn[Fn.length-1-vn].t,w=Bn-J);var gn,Rn,zn;if(b==="pingpong"){var Wn=Math.floor((re-J)/w);if(Wn%2!==0)return this.getValueAtTime((w-(re-J)%w+J)/this.comp.globalData.frameRate,0)}else if(b==="offset"){var Un=this.getValueAtTime(J/this.comp.globalData.frameRate,0),Qn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),Jn=this.getValueAtTime(((re-J)%w+J)/this.comp.globalData.frameRate,0),tr=Math.floor((re-J)/w);if(this.pv.length){for(zn=new Array(Un.length),Rn=zn.length,gn=0;gn<Rn;gn+=1)zn[gn]=(Qn[gn]-Un[gn])*tr+Jn[gn];return zn}return(Qn-Un)*tr+Jn}else if(b==="continue"){var Xn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),ar=this.getValueAtTime((Bn-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(zn=new Array(Xn.length),Rn=zn.length,gn=0;gn<Rn;gn+=1)zn[gn]=Xn[gn]+(Xn[gn]-ar[gn])*((re-Bn)/this.comp.globalData.frameRate)/5e-4;return zn}return Xn+(Xn-ar)*((re-Bn)/.001)}return this.getValueAtTime(((re-J)%w+J)/this.comp.globalData.frameRate,0)}function u(b,vn,_){if(!this.k)return this.pv;b=b?b.toLowerCase():"";var re=this.comp.renderedFrame,Fn=this.keyframes,Bn=Fn[0].t;if(re>=Bn)return this.pv;var w,J;_?(vn?w=Math.abs(this.elem.comp.globalData.frameRate*vn):w=Math.max(0,this.elem.data.op-Bn),J=Bn+w):((!vn||vn>Fn.length-1)&&(vn=Fn.length-1),J=Fn[vn].t,w=J-Bn);var gn,Rn,zn;if(b==="pingpong"){var Wn=Math.floor((Bn-re)/w);if(Wn%2===0)return this.getValueAtTime(((Bn-re)%w+Bn)/this.comp.globalData.frameRate,0)}else if(b==="offset"){var Un=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),Qn=this.getValueAtTime(J/this.comp.globalData.frameRate,0),Jn=this.getValueAtTime((w-(Bn-re)%w+Bn)/this.comp.globalData.frameRate,0),tr=Math.floor((Bn-re)/w)+1;if(this.pv.length){for(zn=new Array(Un.length),Rn=zn.length,gn=0;gn<Rn;gn+=1)zn[gn]=Jn[gn]-(Qn[gn]-Un[gn])*tr;return zn}return Jn-(Qn-Un)*tr}else if(b==="continue"){var Xn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),ar=this.getValueAtTime((Bn+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(zn=new Array(Xn.length),Rn=zn.length,gn=0;gn<Rn;gn+=1)zn[gn]=Xn[gn]+(Xn[gn]-ar[gn])*(Bn-re)/.001;return zn}return Xn+(Xn-ar)*(Bn-re)/.001}return this.getValueAtTime((w-((Bn-re)%w+Bn))/this.comp.globalData.frameRate,0)}function f(b,vn){if(!this.k)return this.pv;if(b=(b||.4)*.5,vn=Math.floor(vn||5),vn<=1)return this.pv;var _=this.comp.renderedFrame/this.comp.globalData.frameRate,re=_-b,Fn=_+b,Bn=vn>1?(Fn-re)/(vn-1):1,w=0,J=0,gn;this.pv.length?gn=createTypedArray("float32",this.pv.length):gn=0;for(var Rn;w<vn;){if(Rn=this.getValueAtTime(re+w*Bn),this.pv.length)for(J=0;J<this.pv.length;J+=1)gn[J]+=Rn[J];else gn+=Rn;w+=1}if(this.pv.length)for(J=0;J<this.pv.length;J+=1)gn[J]/=vn;else gn/=vn;return gn}function h(b){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var vn=this._transformCachingAtTime.v;if(vn.cloneFromProps(this.pre.props),this.appliedTransformations<1){var _=this.a.getValueAtTime(b);vn.translate(-_[0]*this.a.mult,-_[1]*this.a.mult,_[2]*this.a.mult)}if(this.appliedTransformations<2){var re=this.s.getValueAtTime(b);vn.scale(re[0]*this.s.mult,re[1]*this.s.mult,re[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var Fn=this.sk.getValueAtTime(b),Bn=this.sa.getValueAtTime(b);vn.skewFromAxis(-Fn*this.sk.mult,Bn*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var w=this.r.getValueAtTime(b);vn.rotate(-w*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var J=this.rz.getValueAtTime(b),gn=this.ry.getValueAtTime(b),Rn=this.rx.getValueAtTime(b),zn=this.or.getValueAtTime(b);vn.rotateZ(-J*this.rz.mult).rotateY(gn*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 Wn=this.px.getValueAtTime(b),Un=this.py.getValueAtTime(b);if(this.data.p.z){var Qn=this.pz.getValueAtTime(b);vn.translate(Wn*this.px.mult,Un*this.py.mult,-Qn*this.pz.mult)}else vn.translate(Wn*this.px.mult,Un*this.py.mult,0)}else{var Jn=this.p.getValueAtTime(b);vn.translate(Jn[0]*this.p.mult,Jn[1]*this.p.mult,-Jn[2]*this.p.mult)}return vn}function d(){return this.v.clone(new Matrix)}var v=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(b,vn,_){var re=v(b,vn,_);return re.dynamicProperties.length?re.getValueAtTime=h.bind(re):re.getValueAtTime=d.bind(re),re.setGroupProperty=expressionHelpers.setGroupProperty,re};var p=PropertyFactory.getProp;PropertyFactory.getProp=function(b,vn,_,re,Fn){var Bn=p(b,vn,_,re,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=vn.a===1?vn.k.length:0,Bn.propertyIndex=vn.ix;var w=0;return _!==0&&(w=createTypedArray("float32",vn.a===1?vn.k[0].s.length:vn.k.length)),Bn._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:w},expressionHelpers.searchExpressions(b,vn,Bn),Bn.k&&Fn.addDynamicProperty(Bn),Bn};function m(b){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),b*=this.elem.globalData.frameRate,b-=this.offsetTime,b!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<b?this._caching.lastIndex:0,this._cachingAtTime.lastTime=b,this.interpolateShape(b,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var g=ShapePropertyFactory.getConstructorFunction(),y=ShapePropertyFactory.getKeyframedConstructorFunction();function x(){}x.prototype={vertices:function(vn,_){this.k&&this.getValue();var re=this.v;_!==void 0&&(re=this.getValueAtTime(_,0));var Fn,Bn=re._length,w=re[vn],J=re.v,gn=createSizedArray(Bn);for(Fn=0;Fn<Bn;Fn+=1)vn==="i"||vn==="o"?gn[Fn]=[w[Fn][0]-J[Fn][0],w[Fn][1]-J[Fn][1]]:gn[Fn]=[w[Fn][0],w[Fn][1]];return gn},points:function(vn){return this.vertices("v",vn)},inTangents:function(vn){return this.vertices("i",vn)},outTangents:function(vn){return this.vertices("o",vn)},isClosed:function(){return this.v.c},pointOnPath:function(vn,_){var re=this.v;_!==void 0&&(re=this.getValueAtTime(_,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(re));for(var Fn=this._segmentsLength,Bn=Fn.lengths,w=Fn.totalLength*vn,J=0,gn=Bn.length,Rn=0,zn;J<gn;){if(Rn+Bn[J].addedLength>w){var Wn=J,Un=re.c&&J===gn-1?0:J+1,Qn=(w-Rn)/Bn[J].addedLength;zn=bez.getPointInSegment(re.v[Wn],re.v[Un],re.o[Wn],re.i[Un],Qn,Bn[J]);break}else Rn+=Bn[J].addedLength;J+=1}return zn||(zn=re.c?[re.v[0][0],re.v[0][1]]:[re.v[re._length-1][0],re.v[re._length-1][1]]),zn},vectorOnPath:function(vn,_,re){vn==1?vn=this.v.c:vn==0&&(vn=.999);var Fn=this.pointOnPath(vn,_),Bn=this.pointOnPath(vn+.001,_),w=Bn[0]-Fn[0],J=Bn[1]-Fn[1],gn=Math.sqrt(Math.pow(w,2)+Math.pow(J,2));if(gn===0)return[0,0];var Rn=re==="tangent"?[w/gn,J/gn]:[-J/gn,w/gn];return Rn},tangentOnPath:function(vn,_){return this.vectorOnPath(vn,_,"tangent")},normalOnPath:function(vn,_){return this.vectorOnPath(vn,_,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([x],g),extendPrototype([x],y),y.prototype.getValueAtTime=m,y.prototype.initiateExpression=ExpressionManager.initiateExpression;var Pn=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(b,vn,_,re,Fn){var Bn=Pn(b,vn,_,re,Fn);return Bn.propertyIndex=vn.ix,Bn.lock=!1,_===3?expressionHelpers.searchExpressions(b,vn.pt,Bn):_===4&&expressionHelpers.searchExpressions(b,vn.ks,Bn),Bn.k&&b.addDynamicProperty(Bn),Bn}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function c(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(u,f){var h=this.calculateExpression(f);if(u.t!==h){var d={};return this.copyData(d,u),d.t=h.toString(),d.__complete=!1,d}return u},TextProperty.prototype.searchProperty=function(){var u=this.searchKeyframes(),f=this.searchExpressions();return this.kf=u||f,this.kf},TextProperty.prototype.searchExpressions=c}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function c(u,f){var h=createNS("feMerge");h.setAttribute("result",u);var d,v;for(v=0;v<f.length;v+=1)d=createNS("feMergeNode"),d.setAttribute("in",f[v]),h.appendChild(d),h.appendChild(d);return h}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(c,u,f,h,d){this.filterManager=u;var v=createNS("feColorMatrix");v.setAttribute("type","matrix"),v.setAttribute("color-interpolation-filters","linearRGB"),v.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=v,v.setAttribute("result",h+"_tint_1"),c.appendChild(v),v=createNS("feColorMatrix"),v.setAttribute("type","matrix"),v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),v.setAttribute("result",h+"_tint_2"),c.appendChild(v),this.matrixFilter=v;var p=this.createMergeNode(h,[d,h+"_tint_1",h+"_tint_2"]);c.appendChild(p)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=this.filterManager.effectElements[0].p.v,f=this.filterManager.effectElements[1].p.v,h=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+h+" 0"),this.matrixFilter.setAttribute("values",f[0]-u[0]+" 0 0 0 "+u[0]+" "+(f[1]-u[1])+" 0 0 0 "+u[1]+" "+(f[2]-u[2])+" 0 0 0 "+u[2]+" 0 0 0 1 0")}};function SVGFillFilter(c,u,f,h){this.filterManager=u;var d=createNS("feColorMatrix");d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),d.setAttribute("result",h),c.appendChild(d),this.matrixFilter=d}SVGFillFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=this.filterManager.effectElements[2].p.v,f=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+u[0]+" 0 0 0 0 "+u[1]+" 0 0 0 0 "+u[2]+" 0 0 0 "+f+" 0")}};function SVGStrokeEffect(c,u,f){this.initialized=!1,this.filterManager=u,this.elem=f,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var c=this.elem.layerElement.children||this.elem.layerElement.childNodes,u,f,h,d;for(this.filterManager.effectElements[1].p.v===1?(d=this.elem.maskManager.masksProperties.length,h=0):(h=this.filterManager.effectElements[0].p.v-1,d=h+1),f=createNS("g"),f.setAttribute("fill","none"),f.setAttribute("stroke-linecap","round"),f.setAttribute("stroke-dashoffset",1),h;h<d;h+=1)u=createNS("path"),f.appendChild(u),this.paths.push({p:u,m:h});if(this.filterManager.effectElements[10].p.v===3){var v=createNS("mask"),p=createElementID();v.setAttribute("id",p),v.setAttribute("mask-type","alpha"),v.appendChild(f),this.elem.globalData.defs.appendChild(v);var m=createNS("g");for(m.setAttribute("mask","url("+getLocationHref()+"#"+p+")");c[0];)m.appendChild(c[0]);this.elem.layerElement.appendChild(m),this.masker=v,f.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(c=this.elem.layerElement.children||this.elem.layerElement.childNodes;c.length;)this.elem.layerElement.removeChild(c[0]);this.elem.layerElement.appendChild(f),this.elem.layerElement.removeAttribute("mask"),f.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=f},SVGStrokeEffect.prototype.renderFrame=function(c){this.initialized||this.initialize();var u,f=this.paths.length,h,d;for(u=0;u<f;u+=1)if(this.paths[u].m!==-1&&(h=this.elem.maskManager.viewData[this.paths[u].m],d=this.paths[u].p,(c||this.filterManager._mdf||h.prop._mdf)&&d.setAttribute("d",h.lastPath),c||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||h.prop._mdf)){var v;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var p=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,m=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,g=d.getTotalLength();v="0 0 0 "+g*p+" ";var y=g*(m-p),x=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,Pn=Math.floor(y/x),b;for(b=0;b<Pn;b+=1)v+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";v+="0 "+g*10+" 0 0"}else v="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;d.setAttribute("stroke-dasharray",v)}if((c||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(c||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(c||this.filterManager.effectElements[3].p._mdf)){var vn=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(vn[0]*255)+","+bmFloor(vn[1]*255)+","+bmFloor(vn[2]*255)+")")}};function SVGTritoneFilter(c,u,f,h){this.filterManager=u;var d=createNS("feColorMatrix");d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","linearRGB"),d.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),c.appendChild(d);var v=createNS("feComponentTransfer");v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("result",h),this.matrixFilter=v;var p=createNS("feFuncR");p.setAttribute("type","table"),v.appendChild(p),this.feFuncR=p;var m=createNS("feFuncG");m.setAttribute("type","table"),v.appendChild(m),this.feFuncG=m;var g=createNS("feFuncB");g.setAttribute("type","table"),v.appendChild(g),this.feFuncB=g,c.appendChild(v)}SVGTritoneFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=this.filterManager.effectElements[0].p.v,f=this.filterManager.effectElements[1].p.v,h=this.filterManager.effectElements[2].p.v,d=h[0]+" "+f[0]+" "+u[0],v=h[1]+" "+f[1]+" "+u[1],p=h[2]+" "+f[2]+" "+u[2];this.feFuncR.setAttribute("tableValues",d),this.feFuncG.setAttribute("tableValues",v),this.feFuncB.setAttribute("tableValues",p)}};function SVGProLevelsFilter(c,u,f,h){this.filterManager=u;var d=this.filterManager.effectElements,v=createNS("feComponentTransfer");(d[10].p.k||d[10].p.v!==0||d[11].p.k||d[11].p.v!==1||d[12].p.k||d[12].p.v!==1||d[13].p.k||d[13].p.v!==0||d[14].p.k||d[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",v)),(d[17].p.k||d[17].p.v!==0||d[18].p.k||d[18].p.v!==1||d[19].p.k||d[19].p.v!==1||d[20].p.k||d[20].p.v!==0||d[21].p.k||d[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",v)),(d[24].p.k||d[24].p.v!==0||d[25].p.k||d[25].p.v!==1||d[26].p.k||d[26].p.v!==1||d[27].p.k||d[27].p.v!==0||d[28].p.k||d[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",v)),(d[31].p.k||d[31].p.v!==0||d[32].p.k||d[32].p.v!==1||d[33].p.k||d[33].p.v!==1||d[34].p.k||d[34].p.v!==0||d[35].p.k||d[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",v)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(v.setAttribute("color-interpolation-filters","sRGB"),c.appendChild(v)),(d[3].p.k||d[3].p.v!==0||d[4].p.k||d[4].p.v!==1||d[5].p.k||d[5].p.v!==1||d[6].p.k||d[6].p.v!==0||d[7].p.k||d[7].p.v!==1)&&(v=createNS("feComponentTransfer"),v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("result",h),c.appendChild(v),this.feFuncRComposed=this.createFeFunc("feFuncR",v),this.feFuncGComposed=this.createFeFunc("feFuncG",v),this.feFuncBComposed=this.createFeFunc("feFuncB",v))}SVGProLevelsFilter.prototype.createFeFunc=function(c,u){var f=createNS(c);return f.setAttribute("type","table"),u.appendChild(f),f},SVGProLevelsFilter.prototype.getTableValue=function(c,u,f,h,d){for(var v=0,p=256,m,g=Math.min(c,u),y=Math.max(c,u),x=Array.call(null,{length:p}),Pn,b=0,vn=d-h,_=u-c;v<=256;)m=v/256,m<=g?Pn=_<0?d:h:m>=y?Pn=_<0?h:d:Pn=h+vn*Math.pow((m-c)/_,1/f),x[b]=Pn,b+=1,v+=256/(p-1);return x.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u,f=this.filterManager.effectElements;this.feFuncRComposed&&(c||f[3].p._mdf||f[4].p._mdf||f[5].p._mdf||f[6].p._mdf||f[7].p._mdf)&&(u=this.getTableValue(f[3].p.v,f[4].p.v,f[5].p.v,f[6].p.v,f[7].p.v),this.feFuncRComposed.setAttribute("tableValues",u),this.feFuncGComposed.setAttribute("tableValues",u),this.feFuncBComposed.setAttribute("tableValues",u)),this.feFuncR&&(c||f[10].p._mdf||f[11].p._mdf||f[12].p._mdf||f[13].p._mdf||f[14].p._mdf)&&(u=this.getTableValue(f[10].p.v,f[11].p.v,f[12].p.v,f[13].p.v,f[14].p.v),this.feFuncR.setAttribute("tableValues",u)),this.feFuncG&&(c||f[17].p._mdf||f[18].p._mdf||f[19].p._mdf||f[20].p._mdf||f[21].p._mdf)&&(u=this.getTableValue(f[17].p.v,f[18].p.v,f[19].p.v,f[20].p.v,f[21].p.v),this.feFuncG.setAttribute("tableValues",u)),this.feFuncB&&(c||f[24].p._mdf||f[25].p._mdf||f[26].p._mdf||f[27].p._mdf||f[28].p._mdf)&&(u=this.getTableValue(f[24].p.v,f[25].p.v,f[26].p.v,f[27].p.v,f[28].p.v),this.feFuncB.setAttribute("tableValues",u)),this.feFuncA&&(c||f[31].p._mdf||f[32].p._mdf||f[33].p._mdf||f[34].p._mdf||f[35].p._mdf)&&(u=this.getTableValue(f[31].p.v,f[32].p.v,f[33].p.v,f[34].p.v,f[35].p.v),this.feFuncA.setAttribute("tableValues",u))}};function SVGDropShadowEffect(c,u,f,h,d){var v=u.container.globalData.renderConfig.filterSize,p=u.data.fs||v;c.setAttribute("x",p.x||v.x),c.setAttribute("y",p.y||v.y),c.setAttribute("width",p.width||v.width),c.setAttribute("height",p.height||v.height),this.filterManager=u;var m=createNS("feGaussianBlur");m.setAttribute("in","SourceAlpha"),m.setAttribute("result",h+"_drop_shadow_1"),m.setAttribute("stdDeviation","0"),this.feGaussianBlur=m,c.appendChild(m);var g=createNS("feOffset");g.setAttribute("dx","25"),g.setAttribute("dy","0"),g.setAttribute("in",h+"_drop_shadow_1"),g.setAttribute("result",h+"_drop_shadow_2"),this.feOffset=g,c.appendChild(g);var y=createNS("feFlood");y.setAttribute("flood-color","#00ff00"),y.setAttribute("flood-opacity","1"),y.setAttribute("result",h+"_drop_shadow_3"),this.feFlood=y,c.appendChild(y);var x=createNS("feComposite");x.setAttribute("in",h+"_drop_shadow_3"),x.setAttribute("in2",h+"_drop_shadow_2"),x.setAttribute("operator","in"),x.setAttribute("result",h+"_drop_shadow_4"),c.appendChild(x);var Pn=this.createMergeNode(h,[h+"_drop_shadow_4",d]);c.appendChild(Pn)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){if((c||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),c||this.filterManager.effectElements[0].p._mdf){var u=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(u[0]*255),Math.round(u[1]*255),Math.round(u[2]*255)))}if((c||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),c||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var f=this.filterManager.effectElements[3].p.v,h=(this.filterManager.effectElements[2].p.v-90)*degToRads,d=f*Math.cos(h),v=f*Math.sin(h);this.feOffset.setAttribute("dx",d),this.feOffset.setAttribute("dy",v)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(c,u,f){this.initialized=!1,this.filterManager=u,this.filterElem=c,this.elem=f,f.matteElement=createNS("g"),f.matteElement.appendChild(f.layerElement),f.matteElement.appendChild(f.transformedElement),f.baseElement=f.matteElement}SVGMatte3Effect.prototype.findSymbol=function(c){for(var u=0,f=_svgMatteSymbols.length;u<f;){if(_svgMatteSymbols[u]===c)return _svgMatteSymbols[u];u+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(c,u){var f=c.layerElement.parentNode;if(f){for(var h=f.children,d=0,v=h.length;d<v&&h[d]!==c.layerElement;)d+=1;var p;d<=v-2&&(p=h[d+1]);var m=createNS("use");m.setAttribute("href","#"+u),p?f.insertBefore(m,p):f.appendChild(m)}},SVGMatte3Effect.prototype.setElementAsMask=function(c,u){if(!this.findSymbol(u)){var f=createElementID(),h=createNS("mask");h.setAttribute("id",u.layerId),h.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(u);var d=c.globalData.defs;d.appendChild(h);var v=createNS("symbol");v.setAttribute("id",f),this.replaceInParent(u,f),v.appendChild(u.layerElement),d.appendChild(v);var p=createNS("use");p.setAttribute("href","#"+f),h.appendChild(p),u.data.hd=!1,u.show()}c.setMatte(u.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var c=this.filterManager.effectElements[0].p.v,u=this.elem.comp.elements,f=0,h=u.length;f<h;)u[f]&&u[f].data.ind===c&&this.setElementAsMask(this.elem,u[f]),f+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(c,u,f,h){c.setAttribute("x","-100%"),c.setAttribute("y","-100%"),c.setAttribute("width","300%"),c.setAttribute("height","300%"),this.filterManager=u;var d=createNS("feGaussianBlur");d.setAttribute("result",h),c.appendChild(d),this.feGaussianBlur=d}SVGGaussianBlurEffect.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=.3,f=this.filterManager.effectElements[0].p.v*u,h=this.filterManager.effectElements[1].p.v,d=h==3?0:f,v=h==2?0:f;this.feGaussianBlur.setAttribute("stdDeviation",d+" "+v);var p=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",p)}};function TransformEffect(){}TransformEffect.prototype.init=function(c){this.effectsManager=c,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(c){if(this._opMdf=!1,this._mdf=!1,c||this.effectsManager._mdf){var u=this.effectsManager.effectElements,f=u[0].p.v,h=u[1].p.v,d=u[2].p.v===1,v=u[3].p.v,p=d?v:u[4].p.v,m=u[5].p.v,g=u[6].p.v,y=u[7].p.v;this.matrix.reset(),this.matrix.translate(-f[0],-f[1],f[2]),this.matrix.scale(p*.01,v*.01,1),this.matrix.rotate(-y*degToRads),this.matrix.skewFromAxis(-m*degToRads,(g+90)*degToRads),this.matrix.translate(h[0],h[1],0),this._mdf=!0,this.opacity!==u[8].p.v&&(this.opacity=u[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(c,u){this.init(u)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(c){this.init(c)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})})(lottie$1,lottie$1.exports);var lottieExports=lottie$1.exports;const lottie=getDefaultExportFromCjs(lottieExports),__default__$1=vue.defineComponent({name:"EcanImage",props:{...imageComponentProps},setup(c){const u=usePickComponentStyle(c),f=vue.computed(()=>useImagePath(c.imgUrl)),{pageMode:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),d=vue.computed(()=>{const _={},{actionType:re,linkPage:Fn,href:Bn}=c,{requestParams:w={}}=window.config;return vue.unref(h)!=="design"&&re==="close"&&c.isDrillShow&&!w.drillFlag&&(_.display="none"),(re==="link"&&(Fn||Bn)||!re&&(Fn||Bn)||re==="close")&&(_.cursor="pointer"),{...vue.unref(u),..._}}),{getGlobalModel:v,setGlobalModel:p,getRecordValueByKeyName:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:_=>{},setGlobalModel:(_,re)=>{},getRecordValueByKeyName:_=>{}}),{setTemplateData:g}=vue.inject("templateOperate",{setTemplateData:_=>{}}),x=useEmitEvent(c)("click",()=>{const _=v(c.id);if(p(c.id,{..._,type:c.type,RECORD:c.data||{}}),setTimeout(()=>{p(c.id,{..._,type:c.type,RECORD:{}})},0),[void 0,"link"].includes(c.actionType)){if(!c.linkPage&&!c.href)return;handleJumpLink(c,{pageMode:vue.unref(h),targetTemplate:c.targetTemplate,getRecordValueByKeyName:m,setTemplateData:g})}else c.actionType==="close"&&window.close()}),Pn=vue.ref(),b=vue.ref(),vn=()=>{const{directory:_}=c.animationSource;c.isAnimation&&Pn.value&&_&&(b.value=lottie.loadAnimation({name:`${c.keyName}-lotTie`,container:Pn.value,renderer:"svg",loop:!0,autoplay:!0,path:useImagePath(_)+"data.json"}),vue.unref(b).setSpeed(1))};return vue.watch(()=>[c.isAnimation,c.animationSource],([_])=>{_&&vue.nextTick(()=>{vn()})},{immediate:!0,deep:!0}),useOnEvent(c,{click:x}),{customStyle:d,myImgUrl:f,animation:Pn,pageMode:h,onClick:x}}}),__injectCSSVars__$1=()=>{vue.useCssVars(c=>({"8d74eefa":c.isHoverStyle?"pointer":"auto","7ff7bf46":c.isHoverStyle?"0.6":"1"}))},__setup__$1=__default__$1.setup;__default__$1.setup=__setup__$1?(c,u)=>(__injectCSSVars__$1(),__setup__$1(c,u)):__injectCSSVars__$1;const Image_vue_vue_type_style_index_0_scoped_8b128e89_lang="",_hoisted_1$3=["src"];function _sfc_render$6(c,u,f,h,d,v){var p;return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[c.isAnimation?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.animationSource.directory?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["ecan-image",c.pageMode==="design"?"component":""]),ref:"animation",style:vue.normalizeStyle(c.customStyle),onClick:u[0]||(u[0]=(...m)=>c.onClick&&c.onClick(...m))},null,6)):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.myImgUrl!==""?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:vue.normalizeClass(["ecan-image",c.pageMode==="design"?"component":""]),style:vue.normalizeStyle(c.customStyle),src:c.myImgUrl,onClick:u[1]||(u[1]=(...m)=>c.onClick&&c.onClick(...m))},null,14,_hoisted_1$3)):vue.createCommentVNode("",!0)],64)),(c.isAnimation?!((p=c.animationSource)!=null&&p.directory):!c.myImgUrl)?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["image-placeholder",c.pageMode==="design"?"component":""]),style:vue.normalizeStyle(c.customStyle)}," 请上传图片 ",6)):vue.createCommentVNode("",!0)],64)}const Image$1=_export_sfc$1(__default__$1,[["render",_sfc_render$6],["__scopeId","data-v-8b128e89"]]),EcanImage=withInstall$1(Image$1),iframeProps={...props,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web",transParams:[]},iframeComponentProps=transformToComponentProps(iframeProps),_sfc_main$4=vue.defineComponent({name:"EcanIframe",props:{...iframeComponentProps},setup(c){const u=usePickComponentStyle(c),{contextRequestUrl:f}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:""}),{getRecordValueByKeyName:h}=vue.inject(GLOBAL_MODEL,{getRecordValueByKeyName:v=>{}}),d=vue.computed(()=>{var p;let v=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=h(String(g.fieldName));m.push(`${g.keyName}=${y}`)}v+=m.join("&")}return v});return{style:u,myLink:d}}}),Iframe_vue_vue_type_style_index_0_scoped_c0393b8d_lang="",_hoisted_1$2=["src"];function _sfc_render$5(c,u,f,h,d,v){return c.myLink?(vue.openBlock(),vue.createElementBlock("iframe",{key:0,src:c.myLink,style:vue.normalizeStyle(c.style)},null,12,_hoisted_1$2)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"iframe-placeholder",style:vue.normalizeStyle(c.style)}," 请填写网页链接 ",4))}const Iframe=_export_sfc$1(_sfc_main$4,[["render",_sfc_render$5],["__scopeId","data-v-c0393b8d"]]),EcanIframe=withInstall$1(Iframe),tableProps={...props,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!1,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1,transParams:[],linkPage:"",target:"self",href:"",isAutoScroll:!1,scrollSpeed:10,clickTarget:"row",clickTargetColumns:[],linkTextColor:"",isTableFill:!1,conditionList:[]},tableComponentProps=transformToComponentProps(tableProps),tableEvents=["click","refreshData","resetRecord","exportTableData"],topArrow="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAYCAYAAADOMhxqAAAAAXNSR0IArs4c6QAAAK1JREFUOE/tktENgjAURe+FBRiBCdCOwAYOoIiTqBs4Agn+OwJuUHECRugC5ZkUUItNXIB+3ndOmt5XInCkLU6AGK7qy3zMeSB6u0HMm8ut5FTX+zfjCaLLFHGvAUlGyMDGiqrqJuktjHADSOrfyg42yifJCaLLBFHfgLIOvQnCB3onmUFoiwqUfRD+hBWz+kDXCOX4Bx7Glufflp478VrJao9ZBLeTpSWAy9cAXto7eMUv8Bo2AAAAAElFTkSuQmCC",downArrow="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAYCAYAAADOMhxqAAAAAXNSR0IArs4c6QAAAMBJREFUOE/tlE0OwVAURs8tcx0RRpWQGLIDXYIViB3YgdpJl2AHXQJzJJ0hBjoy0fbSl5C2ohvQN3rf994Z3F+hdAYX1bx16IjkdUFkDzUA1FkC/rM1BlddkeKVB+mH9kyWhhf1FeZVkAj+vi0LAzg3tZsPApTxD2gX33HDvkSfOoxO6iQWgYKThxTCJMUNuxJmfqFwGRQ32KLYBhKiOGHy/vwFmCVw0ikWQXbXhNmxJ5vKrWGgsy4RWq/hWZdjegLPIXik13+8RAAAAABJRU5ErkJggg==",seqIcon1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8oFilY+dZfEL3FnudOXKtVt3LqxyoQtlI1WUCFhYpSCIhKoAgTwhJMFkZm73bavP7dO3h9yQpJJNJtObnJx7u+ee+333O6cfDJahSQCHhhk91p1Ttj8xs4F8zOEe2dx3C2hH0efkkwCvKluCPEc+l7mfKHvD+X7jW8qjsqV0th60Hqh6GSsSUQlgWNDX0RGoQNauCdcbmvruU8oWnB9NqAtvGRtgPzJXJuMMh86U8jX7USPd57H4OmPwjWEOZ5/hfRdvDi6WiYumbj1Q/YrZSkf0l2OAytlRLj5BtAm4uwvV0pG9hl4S3lW2C3DEopdP9mDolpV9vew+JN80hxll+0xy8nU1iHXKLmYi83sM4D+tzl/SfWVXfqXstt8GcIy52oKpW5OBUl7sO7TeiEPBadoZi0y0l96aYOwdbb9MPgcgr+wxzgw6l0uBeduTggl13WEgkz4yipEC04dJicg3WeK3Jx9ibl7nSczVcZO3tPEpeQoXbn+rbIZDxi0V0XqgKxlRky56Wg0dxoNgB5LCi3OiaqGM9sVMYSfJ54JsVvbDKKajapdm/JL6e5e7IfkMH2N6Ip2YxSVXM8y3fI6MhYnJhM4gWUX5tngc87dqXTmBJWXOkUbwqJT0hP+Boe6qCXT0aNtmjFp4Bw0Cgncqe1I68TUAGJduu/q70+UkQNBX9lAwLpV8IzaoKooB1FENbYkCQW9UwhINqoZUV1+jHFii5UoZC5k1PBOAKHfnwjX0k9syEaYmAPamQbQeaK0hOniw+CxSzXGPE8y3OMMP/HKYyIPvRhuV73gQmvvOTQdYqdwJZwtPaNGV6Kzu5dpv1MuiuJnrxZUVtgyTRqIy5AOZ5OBI4mfT4kWm+4FGvmkWdVdNoKO9xRdjsXGMyJwJfUw1F0J6r0qEJCL6cbZsED2rER20EK1oxGwxIhRV/zQxInjs6oVsszQBAFmNbt5OTRrRVi8y3gP5cDai9UBrDdGR3rYXFKVGJDtBunCqnEHqXhYJdXe5Yk7qDljUJRGyqyGisxqTaGrnVkuPjOnqOtymc06vOuRZkoV9Td2N81F3FQaaiNFP5QCnWv+kIPpRihilIWqjaKNLqSay0k8aoo5G1E45WQ1vo5VyHoeoZPC8qYwSROuB4kuhb7SmED2lqXvFou5eVxRVwB9my68THSiPLoa6SxGjZaduTQY6eLB4TCF0D5JaNy3QZzy+Vd33XkPltUcRtWvdtPSSVvfa07THVUa2GFF6yVWnl2n1PK12rasroyoxqgcKAPY3uuIRHevd+pKCfkiCmY1TZbTQQO2inop5u5BPo649dZsjj6L7kTyKmdTOo56QSN1mf3ZRX0XdVRPo8OF2XHwe5fyNR2vd+RD9S68VXddrR6o/IWVXQ3ZdS9cXWutWIaqrpayTSJmjEd0WCLMyuDvHceGgCtF6oAsQo5WF6KEdryB1hTAVT9o0rQ2iteq+k/myEa0si/dARrhjFhT+LMUL2A+EY5aF7PUhKuYXkUdnrRkVrJy5KwiRss1+1GCJ2n1lM+Ekm9HD9UCrJ94rH9Herai645Dk0bMVP6t8f1iLYxN6NTELyR7HiVwF92P2e+Jpoo0D8YZxfyVexVft75KHdFZtRsb120Kpm7Pmnt0NHOm5LeC08qnybLxHA/Jr+o1MJvxC2U1nhkbJx4ZXS6Bjh4uHVNQVyUweHeYebrhe4zE6ql3VZ6LuyGQdqaSTYosrzYbx+w0lXBBvd2UH9Q01ijiORveGhTihm4wM0JmJUevKhEZkaG8mArhmkJISt/mb803fkQ+gBRnETp9ONpbrgdYaoncPbMZyyfWzXQS9iMI9yp4WzNBvSLpNyvevSLZwr2qxGkk4A2UtWvt83kLutxvC58guMIn+KWvz+FbFw62/dktkso7E6k8ADCXDS6QnA/4j+cq+d0nZbb/eth8DU3fVGYZVE6jZ8T4C5qOfyHXi3kV5soybv6pJgG71d1yy7eQb4I5eFk12SK6JuJC5n2xuVU21TjSEyJzDfmjOJgUMsMKKACas30PU/Cj6nnxhkEERahUFOokCcP48Hq+z0bMIZkyV1OInqwdaI4imwZwc4OgxJ1Xu5SfbkMJSPEl9eMR2K3tYsC3kuyEczH83w4TO9tx0uxf/1+kntdEmJ54wBAx+oHFEwK4ou5QT/eQr/jzwQNN0vgWKWWHNdaAq9vfUeKBpKJNvtKuAaQbR3dCIx+aYlChUqk1ziWJzP3LwDBLeZ73/gifuKZ/PWB9dZ8xBkcnxivE1XbwbT7WSRYvHPda81xZ86LEeaK0imsaRqZ5WUwXNZHJ4hhecyFRVjFmpVMKNmM7sKo3V/Hs/VjXLRdO0Z1w0dVd1oHbwUp/UnoLNmDJUmxnjZgbWUhhBMWKnrcOM80rJ0m9YFkRXQqD/A/mshzl9oUoNAAAAAElFTkSuQmCC",seqIcon2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABQFJREFUaEPtWt1v21QUv9eJ80FbWmV0adel7ZqyLenSgVYJaQghHhBIICEhoWkvSGgCiQ+JdWMCISEVxAPSoEWT+AN4QTzxzl/Ah8SAQtJ23dKvreuydl3TrIsd23e6xz63LovqeE2BePaLT06ur33O7+dzj8+5lPyHh5I7f4TfPpT6IIuPQSll9XwkWs/J3M7lGQOV7JdpYTxjX206gr4IMiM/CwQDdBhQTZ8VOreOs4//VxD0DWwkBO/kxjqRIkFDHwWZktdQZ2h6AOXlpUUQY3s7BKuCsoxB5ltUalLgYy43pYevu6Vr3SnqKQNZ9ptm9KjK7n5iye/bAkqYyzeuLQjV3OVJIavlMshyKCR03f2HQe5I9AgdpbRkBiP6BSpD6xTYQY+fubsdqjtC0DeQscZBkLERCamgZFveNmMH+9xGjzYu3165KVSzUzmQS8U1t7GBNLU8Kq7pS0HCQ1pjj9nmofPmD/aRoO3A2e/huWzZUM0U9ayB5exoP3iFGT/a3NfH5Y3SulDNTJrp5OpywTVatV6wJy5WIHLgkJkcRR5p2rzcWk8NSTuBSkcEfQMtVzUEgowxQFTLnj+OEBtEeteST6Lu2swVEGcvmUEEXnVW168cR9ZSyYx5vQdTYmxXbxKf5eWqFPWkgSw7GkNrVWa8A2gQkkCdrigQm4Ph8Kuom7j4K4grhSVHT+/2gFh7XNwifeyp+xH0vIEYJU3TjXP8VFiYLaJbSsViK5eTA4Nvoi732y8g3rp5Y7cBcpzfEUHfQC8iOD3+u0goJUlq5zzpP3L0Lc9Q1PMGTv55USSUciCwt9EQlCh5Riz01YKMb+D/fJlwhWA4JHdxuPtSmTcaJcj4BtrfwWg00m1m7enXPYmgb6Bjtri7A6rlolveQeWvMfHFyKh+mj+OpyjqfQPHRzNIIiYZ79WCYH7ib7hkcS6/u/yrYfZ9PVDggwPrp1sp6ht4/zLhKQRZRYUO0qEnhk4hFQLBYAuX7UVeLBvai8E1MMzVEHuRFwu/9mIwLzLAhAZ5WiTbigNFPWng/KWJVfTAfP4y1GfC4bBo4iUHBp/lulh7XHiKt/m4bmlhTqAyb/UCK6rqCik+2N4zTCQPwvWdiV4xD5WkCv9BGbmASlkLQDOIPjl8e1sEPWXglpYz02ELB2MEKmn8KK2uQBv2ymTW5DchZH1tDbzX0toGLTN+9KcyL/Bzc1ubWHYqqgqVckTynwhjNRyr1Pz/fd0HYD5EjctBGcjB+3VTeD9JZ/B1Iw+e+wl11c7UN7DREbTDyqYvQMtZVRVzBxK8xPR5fjYYC6Ju+fpV2BQwO5UTrduyoupcF+/aL8r+3Y8ffonrIpGo0NmXkYK1OaHToiUfG45GLTYSUVVmViAJKaWvxXMNjWxsR00x7qEysJpHsHdRYYZovhiMDfGxuq6JntnV/DSE5sWZvLnlA9ZbA87JVOYY6uL7e4ER/JAkam5DoUQwgRH2HVdphvwpjmvOnH7gHoFjh9c30HJzwyJYjbbl8TH4RqGSJvagMUJBp2zcgTWSH4VFMxh1JHogd+VHKBQxowhMQCGoMV37DFWRox+Kta7avd3qHCn6UBqIRmPLG4KC1dc3qPTK5v9mRkQJEa0ASukP+L+cPvOHCWR9tzHbQXkgBH0DLQ9gTtuwCFZ7PzEb4v9Vyhok3vJyEagIdHxuRHMbKHYyfkcUbQQD7wHq9EAq9LeVYwAAAABJRU5ErkJggg==",seqIcon3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABMJJREFUaEPtWl1sFFUUPndmlm1LdW1XoGxly7qFYqmIBkxEJDTRRI3RxNhgpDzpkwixJCaEJx588MHQCPrgGwT8SSD4Zkx84DfGEEjU2KpAS6ktZVsKpF0K3Z+55p4798ysGdju0A3Mdu5De/bcn7nnfN/ce+ecy+ABli1fHGsTjz+4fWMPTYMxPptTYrM5WKljBQaW6jGX9mVF8N19p2PimYxBnXq2ZpqfK5kDvCpl/qvSMdC7hPzN9vWkux87AwNn6r3O7pOLRVtT5+/bfVinJS9TOjNvakoeG0mhGF20gLoYIUMtMgcI9TzsEvKhrg0jM52PzYhSe9ylfWCg5RhfINjx9c8RMd/QnapN9v7FP7Dk1aTjPCTk1LDNrIHzfVSduTONcmgeNsPStCyJ/xvijfbQjKXFD87ZZ0qZy+t7hHx4x7rb9yKhp0Wmogx8be+PYeGhCNS+TC89AC7lAPCCw3s1Qr557TqpLv19AeX0xOS9nOxaN/+RWtInW1tQjkRptxE/BxFVYDtVw++2rf8eZcdpqCiCgYG2/32AIOeI6OYvT62jeXO2RVKBv+PgUlTIU+lbpOr/6zzKN8bGS6bjTDtEGxZS08SKZpSra9CvVpEnIt3UaPErpGglGtix55d6ZX/IyH4oX1JYonSZ25kGIc+rCr+pdEP9l1Ec+Oei7Ts+q185RUFlmjwQJVokkqI0JuL43wR4Q+lYYKDfEez86hhhbJraJwLaoT7cYrCkJyaRoitWtxFFe8/9jnXjqbGiVCp3g/qFj9MjVq6Rh6gCis5JA3vP/kFe0TQmEXx2FSHYc/Y3rL8+eq3cABUd3xOCgYF+R7DnjE1R3ahAigYGPuQU5SZ7iU4ybtuE3xEMDHQiGAqHnhBwL1/V+rqC/WHfB0tCMDCw6FmjvA3cTjIFCG7qPvGUmoJuwMdCdlI0XF2FH1nNbS1WHgHAVxSteAM37zvxtEKQA3xUcQgGBvr9HfSCYH+vDBEOD9hf/uVdK+8+emwpxcdARcALVtE5aeClP+1w4GR64jHhv9bnnqFQnBEyMNrqDPKqwK8zGDzbqDqDvCrw6wwGiyCDeCZn+RfpsO2GYGCgnxBUqWeEVpdpMc44JjiRhqMyHfbvxT7KUjbE4xifWxBbRHsoABhCd3VwmJh5+YJMdmYz2ZLZ6kyKLmlOYP9YHM/9WJim4aAc2F6lC+dznwp5f1f7TWpX8QY6XatygXW8ls6dwNgroo3JTUIwNXgFu42OjFCWcuny5PNCF6mvo0CyQk4h+X+EuZXPUHkGUd/YJJd9hZqQHTcvjqj5anpe3rzY2m6viC48KcguBQZaHvItgm4rgco+GXrubaIHY2uEnMlMEwMGrAUlP52jLGVTSxITqdXza0jn3CdTQ5LqMYuWQg5XV6nHnKOFAjT8CPByvatojr7iDXRD9b3uU0+iXocOqmcm6qYmpkiVuiIRakom5DUJANAMY61jTJV/lhlVLHyH+Pvttg0/2GN7v0NaFMHAQHpRKghBm03yVoYodDODw1tENnUi4too+YHxn6jelHcBsjeiR5Xu8O6VGTfWeNV5oujcMdDFreqwIKoi7FE8q14dz8qMKQAc392e84qGl373h2Bg4INH8D9A563p5gHY1gAAAABJRU5ErkJggg==",__default__=vue.defineComponent({name:"EcanTable",components:{Skeleton,AButton:antDesignVue.Button,AInput:antDesignVue.Input,ACheckboxGroup:antDesignVue.CheckboxGroup,ATable:antDesignVue.Table,ATableSummary:antDesignVue.TableSummary,ATableSummaryRow:antDesignVue.TableSummaryRow,ATableSummaryCell:antDesignVue.TableSummaryCell,DownOutlined:DownOutlined$1,RightOutlined:RightOutlined$1,MarqueeScroll},props:{...tableComponentProps},setup(c,{expose:u}){const{pageMode:f,height:h,theme:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",height:null,theme:"light"}),v=vue.ref(!1),p=vue.computed(()=>vue.unref(f)!=="design"&&c.isAutoScroll),m=vue.ref({}),g=vue.ref(!1),y=vue.computed(()=>{const br=lodashEs.cloneDeep(c.columns);return c.isUseSeq&&br.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&br.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),br}),x=vue.ref(),Pn=vue.ref(!1),b=usePickComponentStyle(c),vn=vue.ref([]),_=vue.computed(()=>{const{height:br}=c;return typeof br=="string"?br:br.suffix==="px"?br.value+"px":br.suffix==="%"?parseFloat(vue.unref(h))*(br.value/100)+"px":"0"}),re=vue.computed(()=>c.scrollX),Fn=vue.ref(parseFloat(_.value)),Bn=()=>{let br=0;switch(c.size){case"small":br=50;break;case"middle":br=53;break;default:br=65;break}return br},w=vue.ref(0),J=vue.ref(""),gn=vue.ref(0);vue.watchEffect(()=>{var br;(br=vn.value)!=null&&br.length&&_.value&&setTimeout(()=>{let Sr=parseFloat(_.value),wr=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Tr=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const Dr=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`);let Pr=0;if(Tr&&(Sr-=(Tr==null?void 0:Tr.clientHeight)||0),Dr&&c.isSummaryFixed&&(Pr=(Dr==null?void 0:Dr.clientHeight)||0,Sr-=Pr),c.paginationShow&&!c.isAutoScroll){let Ar=0;Ar=Bn(),Ar&&(Sr-=Ar)}(wr==null?void 0:wr.clientHeight)>Sr?Fn.value=Sr:Fn.value=0,vue.nextTick(()=>{if(Pr){const Ar=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`),Mr=(Ar==null?void 0:Ar.clientHeight)||0;Pr!==Mr&&vue.unref(Fn)&&(Fn.value=Sr+Pr-Mr)}c.isAutoScroll&&v.value&&setTimeout(()=>{var Vr;const Ar=document.querySelector(`#ecanTable-${c.id} .ant-table-body`);wr=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Tr=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const Mr=Ar||wr;w.value=(Mr==null?void 0:Mr.clientHeight)||0,gn.value=(Tr==null?void 0:Tr.clientHeight)||0,m.value={height:((wr==null?void 0:wr.clientHeight)||0)+"px"};const Lr=document.querySelector(`#ecanTable-${c.id} .ant-table-body > table`);if(J.value=(Vr=document.querySelector(`#ecanTable-${c.id} .ant-table`))==null?void 0:Vr.className,Lr){const $r=Lr.cloneNode(!0);Lr.style.visibility="hidden",setTimeout(()=>{Mr==null||Mr.setAttribute("id","hiddenTableBody")},0);const zr=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap`);if(zr!=null&&zr.length){for(const Zr of zr)Zr.append($r.cloneNode(!0));const qr=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap .ant-table-cell`);if(qr!=null&&qr.length)for(const Zr of qr)Rn(Zr);const Yr=document.querySelector(`#ecanTable-${c.id} .vue3-marquee`);Yr&&Yr.addEventListener("scroll",Zr=>{var Qr;document.querySelector(`#ecanTable-${c.id} .ant-table-header`).scrollLeft=((Qr=Zr==null?void 0:Zr.target)==null?void 0:Qr.scrollLeft)||0})}}},0)})},0)});function Rn(br){br.addEventListener("click",Sr=>{const Tr=zn(Sr.target).getAttribute("dix");if(Tr){const Dr=document.querySelector(`#ecanTable-${c.id} #hiddenTableBody td[dix="${Tr}"]`);Dr&&Dr.click()}})}function zn(br){return br.className.includes("ant-table-cell")?br:zn(br.parentElement)}const Wn=vue.ref([]),Un=vue.ref([]),Qn=vue.ref([]),Jn=vue.ref([]),tr=vue.ref(0),Xn=vue.ref(1),ar=vue.ref(c.paginationPageSize||10),sr=vue.reactive([]),nr=(br,Sr)=>{let wr="";return br.forEach((Tr,Dr)=>{const{value:Pr,rule:Ar}=Tr;Tr.conditions?wr+=`(${nr(Tr.conditions,Tr.join)})`:Pr&&Ar&&(wr+=`value ${Ar} '${Pr}'`),wr+=`${Dr===br.length-1?"":Sr?" "+Sr+" ":""}`}),wr},Hn=(br=[])=>{var Sr,wr;if(Array.isArray(br)&&br.length>0){let Tr=br.length;const Dr=c.columnsFixedNum;if(c.dataType==="indicator"&&((Sr=vue.unref(y))!=null&&Sr.length)&&!vue.unref(y).find(Pr=>{var Ar;return(Ar=Pr.children)==null?void 0:Ar.length})){const{graphicConfig:{indicators:Pr=[]}}=c;br.forEach((Ar,Mr)=>{if(vue.unref(y)[Mr])for(const $r in vue.unref(y)[Mr])["dataIndex","title"].includes($r)||(Ar[$r]=vue.unref(y)[Mr][$r]);const Lr=Pr.find($r=>$r.label===Ar.title),{showLabel:Vr=""}=Lr||{};Vr&&(Ar.title=Vr)})}for(let Pr=Tr-1;Pr>=0;Pr--)(wr=br[Pr])!=null&&wr.isHidden&&br.splice(Pr,1);Tr=br.length;for(let Pr=0;Pr<Tr;Pr++){const Ar=br[Pr];if(Pr<Dr?Ar.fixed="left":Ar.fixed=!1,c.isSortByFront&&Ar.sorter){const ti=Ar.dataIndex;Ar.sorter=(ii,oi)=>ii[ti]-oi[ti]}const{cellAlign:Mr="center",cellColor:Lr,dataIndex:Vr,title:$r,tableFilter:zr,headerCellAlign:qr,headerCellColor:Yr,overflow:Zr,conditions:Qr}=Ar;zr&&(sr.push(Vr),Ar.filterOptionsInputValue="",Ar.filterCheckboxGroupValue=[],Ar.customFilterDropdown=!0,Ar.onFilter=(ti,ii)=>ii[Vr].toString().toLowerCase().includes(ti.toLowerCase())),Qr&&(Ar.conditionCode=nr(Qr)),Ar.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:c.headerFontSize,fontWeight:c.headerFontWeight,textAlign:qr||"center",color:Yr||c.headerFontColor,borderBottomColor:c.borderColor,backgroundColor:c.headerBackgroundColor}}),Ar.customCell=(ti,ii,oi)=>({style:{textAlign:Mr,color:Yn(oi)?c.linkTextColor:Lr||c.cellFontColor,backgroundColor:c.cellBackgroundColor,borderBottomColor:c.borderColor},class:{highlight:vue.unref(Fr)===ii&&c.clickHighlight,linkText:Yn(oi)},dix:oi.dataIndex+"_"+ii,onClick:yr("click",()=>{const _i=c.id,Ti=xr(_i);ti={dataIndex:Vr,title:$r,...ti},Cr(_i,{...Ti,type:c.type,RECORD:ti}),Fr.value=ii,setTimeout(()=>{if(!c.linkPage&&!c.href)return;let ki=!1;(Yn(oi)||c.clickTarget!=="cell")&&(ki=!0),ki&&handleJumpLink(c,{pageMode:vue.unref(f),getRecordValueByKeyName:Er})},0)})}),Zr==="ellipsis"?Ar.ellipsis=!0:Ar.ellipsis=!1,Array.isArray(Ar.children)&&Hn(Ar.children)}}};function Yn(br){let Sr=!1;return c.clickTarget==="cell"&&c.clickTargetColumns.includes(br.dataIndex)&&(Sr=!0),Sr}const Vn=(br=[])=>{var wr;let Sr=lodashEs.cloneDeep(br);return(wr=vue.unref(Jn))!=null&&wr.length&&(Sr=lodashEs.cloneDeep(vue.unref(Jn))),c.isUseSeq&&Sr.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&Sr.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),Hn(Sr),Sr};vue.watch(ar,()=>{Xn.value=1,Or(!1)}),vue.watch(x,br=>{Pn.value=!!br}),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],()=>{Wn.value=Vn(lodashEs.cloneDeep(c.columns))},{immediate:!0,deep:!0}),vue.watch(()=>[c.data,c.dataType],([br,Sr])=>{Sr==="static"&&(Un.value=br)},{immediate:!0});const Gn=vue.ref({}),Zn=br=>{if(Array.isArray(br)){const Sr=br.length,wr=sr,Tr=wr.length,Dr={};for(let Ar=0;Ar<Sr;Ar++){const Mr=br[Ar];for(let Lr=0;Lr<Tr;Lr++){const Vr=wr[Lr];if(Dr[Vr])Dr[Vr].add(Mr[Vr]);else{const $r=new Set;$r.add(Mr[Vr]),Dr[Vr]=$r}}}const Pr={};for(const Ar in Dr)if(Object.prototype.hasOwnProperty.call(Dr,Ar)){const Mr=Dr[Ar],Lr=Array.from(Mr);Pr[Ar]=Lr.map(Vr=>({label:Vr,value:Vr}))}Gn.value=Pr}};vue.watch(()=>[c.isReverse,Wn.value,Un.value],()=>{const br=vue.unref(Wn),Sr=vue.unref(Un);if(Zn(Sr),c.isReverse){const{columns:wr,dataSource:Tr}=qn(lodashEs.cloneDeep(br),lodashEs.cloneDeep(Sr));Qn.value=wr,vn.value=Tr.map(Dr=>({key:nanoid(6),...Dr}))}else Qn.value=br,vn.value=Sr.map(wr=>({key:nanoid(6),...wr}))},{immediate:!0});const qn=(br,Sr)=>{const wr=br[0],Tr=[{title:wr.title,dataIndex:"col0",key:"col0",align:"center"}];for(let Pr=0;Pr<Sr.length;Pr++){const Ar=Sr[Pr],Mr="col"+(Pr+1);Tr.push({title:Ar[wr.dataIndex],dataIndex:Mr,key:Mr,align:"center"})}const Dr=[];for(let Pr=1;Pr<br.length;Pr++){const Ar=br[Pr],Mr={col0:Ar.title};for(let Lr=0;Lr<Sr.length;Lr++){const Vr=Sr[Lr];Mr[`col${Lr+1}`]=Vr[Ar.dataIndex]}Dr.push(Mr)}return{columns:Tr,dataSource:Dr}},er=vue.ref(""),ir=br=>{var Tr;const{rows:Sr=[],total:wr=0}=((Tr=br==null?void 0:br.data)==null?void 0:Tr.data)||{};if(tr.value=wr,Array.isArray(Sr)&&(Un.value=Sr),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:Dr=[]}=c,Pr=Dr.find(Ar=>Ar.key==="dataSqlId");if((Pr==null?void 0:Pr.value)==="xt_jxzebg"){const Ar=Sr.filter(Mr=>!Mr.绩效总额).map(Mr=>Mr.ORG_NAME);Ar!=null&&Ar.length&&vue.nextTick(()=>{antDesignVue.notification.warning({message:"提示",description:`当前时段${Ar.join("、")}绩效数据为空`,duration:3})})}}v.value=!0},Kn=useRequestData(c),or=async(br=!0,Sr={})=>{try{br&&(g.value=!0),vue.unref(er)&&(Sr.orderCondition=vue.unref(er)),c.paginationShow&&(Sr={pageNum:vue.unref(Xn),pageSize:vue.unref(ar)||"10",layer:"1",...Sr});const wr=await Kn(Sr);ir(wr)}catch(wr){console.error(wr)}finally{g.value=!1}},cr=({current:br},Sr,wr)=>{if(Xn.value=br,wr&&Object.keys(wr).length>0){const{field:Tr,order:Dr}=wr,Ar={ascend:"asc",descend:"desc"}[Dr];Tr!=null&&Ar!=null&&Ar?er.value=Tr+" "+Ar:Ar||(er.value="")}c.isSortByFront||Or(!1)},hr=vue.computed(()=>{const br=c.simple,Sr=[c.paginationPosition],wr={};return c.isShowTotal&&(wr.showTotal=Tr=>`共 ${Tr} 条数据`),c.paginationShow&&{simple:br,position:Sr,total:vue.unref(tr),current:vue.unref(Xn),pageSize:vue.unref(ar)||"10",showSizeChanger:!1,size:"large",...wr}}),dr=br=>+br==1?"是":+br==0?"否":br,lr=(br,Sr)=>{const{format:wr,retentiondigit:Tr,customFormatter:Dr,defaultVal:Pr}=Sr;let Ar="";if(wr==null||wr==="")Ar=br;else{const Mr={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,boolean:dr,decimals:formatDecimals,custom:formatCustom};Mr[wr]||(Ar=""),wr==="decimals"?Ar=Mr[wr](br,Tr)||"":wr==="custom"?Ar=Mr[wr](br,Dr)||"":Ar=Mr[wr](br)||""}return Ar||(Ar=Pr),Ar},fr=br=>br==="contrast"?"upDown":"",mr=br=>{const{text:Sr,format:wr,declineColor:Tr="#39cf93",increaseColor:Dr="#ff512e"}=br,Pr={fontSize:c.fontSize};if(Xr(br.dataIndex))return Pr.display="flex",Pr.justifyContent="center",Pr.alignItems="center",Pr;if(wr==="contrast"){const Ar=parseFloat(Sr+"");return Ar>=0?Pr.color=Dr:Ar<0&&(Pr.color=Tr),Pr}else return{}},pr=vue.computed(()=>{const{fontSize:br}=c;return{width:br,height:br,textIndent:`-${parseFloat(br)*2}px`,overflow:"hidden"}}),gr=br=>{const{text:Sr,declineColor:wr="#39cf93",increaseColor:Tr="#ff512e"}=br,{fontSize:Dr}=c,Pr=parseFloat(Sr+""),Ar={width:Dr,verticalAlign:"unset"};return Pr>=0?Ar.filter=`drop-shadow(${Tr||"#ff512e"} ${Dr} -1px)`:Pr<0&&(Ar.filter=`drop-shadow(${wr||"#39cf93"} ${Dr} -1px)`),Ar},ur=br=>{const Sr=parseFloat(br+"");if(Sr>=0)return goUp;if(Sr<0)return goDown},vr=(br,Sr,wr,Tr)=>{var Mr,Lr,Vr;const Dr="#39cf93",Pr="#ff512e",Ar=c.conditionList.find($r=>$r.dataIndex===br.dataIndex);if((Mr=Ar==null?void 0:Ar.conditions)!=null&&Mr.length){const{fontSize:$r}=c,zr={style:{width:$r,verticalAlign:"middle"},src:""};for(const qr of Ar.conditions){const Yr=((Lr=qr==null?void 0:qr.property)==null?void 0:Lr.icon)||"";let Zr=((Vr=qr==null?void 0:qr.property)==null?void 0:Vr.iconColor)||"";if(Yr){let Qr=!1;if(qr.rule&&qr.value){const ti=`${qr.field} ${qr.rule} '${qr.value}'`;Qr=pn(ti,{...wr,value:Sr})}else Qr=!0;Qr&&(Yr==="increase"?zr.src=topArrow:Yr==="decline"&&(zr.src=downArrow),Zr||(Yr==="increase"?Zr=Pr:Yr==="decline"&&(Zr=Dr)),zr.style.filter=`drop-shadow(${Zr} ${$r} -1px)`)}}if(Tr===1)return zr.style;if(Tr===2)return zr.src}else return""},yr=useEmitEvent(c),{getGlobalModel:xr,setGlobalModel:Cr,getRecordValueByKeyName:Er}=vue.inject(GLOBAL_MODEL,{getGlobalModel:br=>{},setGlobalModel:(br,Sr)=>{},getRecordValueByKeyName:br=>{}});Cr(c.id,{type:c.type,RECORD:""});const _r=(br=[],Sr=[])=>{let wr=br.map(Tr=>({title:Tr,dataIndex:Tr,key:Tr}));vue.unref(y).find(Tr=>{var Dr;return(Dr=Tr.children)==null?void 0:Dr.length})&&(wr=lodashEs.cloneDeep(vue.unref(y))),Jn.value=lodashEs.cloneDeep(wr),Wn.value=Vn(wr),Un.value=Sr,v.value=!0},kr=br=>{var Sr,wr,Tr,Dr;_r((wr=(Sr=br==null?void 0:br.data)==null?void 0:Sr.data)==null?void 0:wr.columns,(Dr=(Tr=br==null?void 0:br.data)==null?void 0:Tr.data)==null?void 0:Dr.rows)},Br=useIndicatorData(c,kr),Ir=async(br=!0)=>{try{br&&(g.value=!0);const Sr=vue.unref(er).split(" "),wr={};c.isSortByFront||(wr.sort={order:Sr[1],field:Sr[0]});const Tr=await Br(wr);kr(Tr)}catch(Sr){console.error(Sr)}finally{g.value=!1}},Fr=vue.ref(-1),{loadedData:Nr}=vue.inject(LOADED_DATA,{loadedData:{}}),Rr=vue.ref(!1);vue.watch(Nr,br=>{if(c.dataType==="indicator"){const Sr=getFixedValueDatas(c.graphicConfig);Sr!=null&&Sr.length&&(!vue.unref(Rr)&&canRequestIndicator(c.graphicConfig,br)?(Rr.value=!0,Or()):canRequestIndicator(c.graphicConfig,br)||(Rr.value=!1))}},{deep:!0});const Or=(br=!0)=>{switch(c.dataType){case"request":or(br);break;case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(Nr))&&Ir(br);break}},jr=()=>{const br=c.id,Sr=xr(br);Cr(br,{...Sr,type:c.type,RECORD:""})},Ur=vue.computed(()=>{const br=vue.unref(Qn);let Sr=0;const{subTotalColumn:wr,subTotalName:Tr}=c;wr&&(Sr=br.findIndex(Lr=>Lr.dataIndex===wr),Sr<0&&(Sr=0));const Dr=[];let Pr=0;for(let Lr=0;Lr<br.length;Lr++){const Vr=br[Lr],{isCalcTotal:$r}=Vr;Lr===Sr?Dr.push({...Vr,total:Tr}):$r?(Dr.push({...Vr,index:Lr,total:0}),Pr++):Dr.push({...Vr})}if(Pr===0)return[];const Ar=vue.unref(vn),Mr=Gr(Dr);for(let Lr=0;Lr<Mr.length;Lr++){const Vr=Mr[Lr];let $r=0;const{isCalcTotal:zr,dataIndex:qr}=Vr;if(zr===!0){for(let Yr=0;Yr<Ar.length;Yr++){const Qr=+Ar[Yr][qr];isNaN(Qr)||($r=new big_js.Big($r).add(Qr).toNumber())}Vr.total=$r}}return Mr});function Gr(br){var wr;const Sr=[];for(const Tr of br)(wr=Tr.children)!=null&&wr.length?Sr.push(...Gr(Tr.children)):Sr.push(Tr);return Sr}const{setRequest:Wr}=vue.inject(REQUEST_MODEL,{setRequest:br=>{}});typeof Wr=="function"&&Wr({id:c.id,requestFn:Or,sortNum:c.requestSort}),u({refreshData:Or});const Kr=(br="",Sr)=>hn(br,Sr),ei=br=>{if(br!=="event")return{self:"_self",blank:"_blank"}[br]},ni=(br,Sr="")=>{br==="event"&&window.parent.postMessage({type:"openPage",url:Sr},"*")},ri=(br,Sr)=>{br(Sr.filterCheckboxGroupValue)},mi=(br,Sr)=>{br({confirm:!0}),Sr.filterOptionsInputValue="",Sr.filterCheckboxGroupValue=[]},gi=()=>{},li=br=>{const Sr=br.dataIndex;if(typeof Sr=="string"){let wr=vue.unref(Gn)[Sr];const Tr=vue.unref(br.filterOptionsInputValue).trim();return Array.isArray(wr)?(wr=wr.filter(Dr=>typeof Dr.label=="string"?Dr.label.toLowerCase().includes(Tr.toLowerCase()):!0),wr):[]}return[]},ci=async()=>{var Vr,$r;const br="EXPORT_KEY";antDesignVue.message.loading({key:br,content:"正在导出...",duration:0});let Sr=[];if(c.dataType==="static")Sr=c.data;else if(c.dataType==="request"){const zr={layer:"1"};vue.unref(er)&&(zr.orderCondition=vue.unref(er));const qr=await Kn(zr);Sr=(($r=(Vr=qr==null?void 0:qr.data)==null?void 0:Vr.data)==null?void 0:$r.rows)||{}}const wr=vue.unref(Qn),Tr=[],Dr=[];wr==null||wr.forEach(zr=>{Tr.push(zr.dataIndex),Dr.push(zr.title)});const Pr=Sr.map(zr=>lodashEs.pick(zr,Tr)),Ar=xlsx.utils.book_new(),Mr=xlsx.utils.aoa_to_sheet([Dr]),Lr=xlsx.utils.sheet_add_json(Mr,Pr,{skipHeader:!0,origin:"A2"});xlsx.utils.book_append_sheet(Ar,Lr,"sheet"),xlsx.writeFile(Ar,"表格数据.xlsx"),antDesignVue.message.success({key:br,content:"导出成功"})},ui=(br,Sr=2)=>{const wr=+br*100;return isNaN(wr)||wr<=0?0:wr>=100?100:wr.toFixed(Sr)};useOnEvent(c,{resetRecord:jr,refreshData:Or,exportTableData:ci});const yi=(br,Sr)=>{let wr=null;return c.stripedShow&&(wr=Sr%2===1?"table-striped":null),wr},fi=vue.computed(()=>{var wr;let br=0;const{isTableFill:Sr}=c;if(Sr&&_.value){let Tr=0;c.paginationShow&&((wr=vue.unref(vn))!=null&&wr.length)&&(Tr=Bn()),br=parseFloat(vue.unref(_))-Tr}return br?br+"px":"100%"}),bi=vue.computed(()=>{const br=vue.unref(d)==="darkBlue";let Sr="";return c.isTableFill&&(Sr=c.cellBackgroundColor,Sr||(si.value==="transparent"?br?Sr="#071655":Sr="transparent":br?Sr=si.value:Sr="transparent")),Sr}),xi=vue.computed(()=>{let br="#071655";return c.headerBackgroundColor&&(br="transparent"),br}),si=vue.computed(()=>{let br="#071655";return(c.cellBackgroundColor||c.stripedShow&&c.stripedColor)&&(br="transparent"),br}),hi=vue.computed(()=>parseFloat(c.fontSize)+16),Si=vue.computed(()=>{let br="";const{paginationColor:Sr,paginationBgColor:wr,activePaginationColor:Tr,activePaginationBgColor:Dr,hoverBackgroundColor:Pr}=c;return Sr&&(br+="p-color "),wr&&(br+="p-bg-color "),Tr&&(br+="active-p-color "),Dr&&(br+="active-p-bg-color "),Pr&&(br+="hover-bg-color "),br}),di=(br,Sr)=>{if(Xr(br.dataIndex))return!1;const{conditionCode:wr}=br;return pn(wr,{value:Sr})},vi=(br,Sr,wr)=>{var Lr,Vr;const{overflow:Tr,conditionCode:Dr,attribute:Pr,dataIndex:Ar}=br,Mr={};if(Tr==="ellipsis"&&(Mr.overflow="hidden",Mr.textOverflow="ellipsis"),Dr&&(Pr!=null&&Pr.color)&&di(br,Sr)&&(Mr.color=Pr.color),Pr!=null&&Pr.icon&&(br==null?void 0:br.cellAlign)==="right"&&(Mr.display="flex",Mr.alignItems="center",Mr.justifyContent="flex-end"),Xr(Ar)){const $r=c.conditionList.find(zr=>zr.dataIndex===Ar);if((Lr=$r==null?void 0:$r.conditions)!=null&&Lr.length){for(const zr of $r.conditions)if((Vr=zr==null?void 0:zr.property)!=null&&Vr.color){let qr=!1;if(zr.rule&&zr.value){const Yr=`${zr.field} ${zr.rule} '${zr.value}'`;qr=pn(Yr,{...wr,value:Sr})}else qr=!0;qr&&(Mr.color=zr.property.color)}}else delete Mr.color}return Mr},Ci=br=>{const{attribute:Sr}=br;let wr="";return Sr!=null&&Sr.icon&&(wr=useImagePath(Sr.icon)),wr},pi=br=>{let Sr={};return(br==null?void 0:br.cellAlign)==="right"?Sr={marginRight:"5px"}:Sr={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(c.fontSize)+6+"px",...Sr}},Jr=(br,Sr)=>br||br===0?br:Sr==null?void 0:Sr.defaultVal;function Xr(br){var wr;const Sr=c.conditionList.find(Tr=>Tr.dataIndex===br);return!!((wr=Sr==null?void 0:Sr.conditions)!=null&&wr.length)}return{x:re,y:Fn,style:b,pagination:hr,formatFn:lr,contrastClass:fr,tableChange:cr,summaryList:Ur,loading:g,onTouchHrefEvent:ni,handleHref:Kr,handleHrefTarget:ei,useRowIndex:Fr,tableColumns:Qn,tableDataSource:vn,useFilterOptions:li,useSetSelectedKeys:ri,onResetFilter:mi,onSearchFilterOptions:gi,exportTableData:ci,handleProgressText:ui,pageSizeVisible:Pn,pageSize:ar,tableRef:x,rowClassName:yi,tableHeight:fi,tableBgColor:bi,tableHeaderBgColor:xi,tableBodyBgColor:si,getChgStyle:mr,chgBoxStyle:pr,getChgBoxImgStyle:gr,getChgBoxImgSrc:ur,seqIcon1,seqIcon2,seqIcon3,iconSize:hi,containerClass:Si,getCellStyle:vi,isMatchCondition:di,getAttrImgSrc:Ci,getAttrImgStyle:pi,getCellText:Jr,autoScrollHeight:w,autoScrollClass:J,autoScrollTop:gn,isScroll:p,scrollWrapStyle:m,isLinkStyle:Yn,hasConditionConfig:Xr,formatTextByConditions:(br,Sr,wr)=>{var Dr,Pr;const Tr=c.conditionList.find(Ar=>Ar.dataIndex===br.dataIndex);if((Dr=Tr==null?void 0:Tr.conditions)!=null&&Dr.length){let Ar=Sr;for(const Mr of Tr.conditions){const Lr=((Pr=Mr==null?void 0:Mr.property)==null?void 0:Pr.formatText)||"";if(Lr){let Vr=!1;if(Mr.rule&&Mr.value){const $r=`${Mr.field} ${Mr.rule} '${Mr.value}'`;Vr=pn($r,{...wr,value:Sr})}else Vr=!0;Vr&&(Ar=hn(Lr,{textData:{...wr,value:Sr}}))}}return Ar}else return""},getChgByCondition:vr}}}),__injectCSSVars__=()=>{vue.useCssVars(c=>({f2959870:c.stripedColor,"0d44247f":c.tableHeaderBgColor,"1eec2f4a":c.tableBodyBgColor,"3c6b7ac8":c.paginationBgColor,"846492e6":c.paginationColor,"0a10c53c":c.activePaginationBgColor,"7e55b7a7":c.activePaginationColor,"1c856456":c.hoverBackgroundColor}))},__setup__=__default__.setup;__default__.setup=__setup__?(c,u)=>(__injectCSSVars__(),__setup__(c,u)):__injectCSSVars__;const Table_vue_vue_type_style_index_0_scoped_a83fea44_lang="",Table_vue_vue_type_style_index_1_lang="",_withScopeId=c=>(vue.pushScopeId("data-v-a83fea44"),c=c(),vue.popScopeId(),c),_hoisted_1$1=["id"],_hoisted_2$1={key:0,class:"table-tool"},_hoisted_3=vue.createTextVNode("导出数据"),_hoisted_4={key:0,style:{float:"left","margin-right":"5px"}},_hoisted_5={key:1,style:{float:"left","margin-right":"5px",visibility:"hidden"}},_hoisted_6=vue.createTextVNode(" 搜索 "),_hoisted_7=vue.createTextVNode(" 重置 "),_hoisted_8=["src","width","height"],_hoisted_9=["src","width","height"],_hoisted_10=["src","width","height"],_hoisted_11={key:1},_hoisted_12={key:1,class:"action-list"},_hoisted_13=["href","target","onClick"],_hoisted_14={key:2,class:"progress-cell"},_hoisted_15=["src"],_hoisted_16=["title"],_hoisted_17=["title"],_hoisted_18=["src"],_hoisted_19=["src"],_hoisted_20=["title"],_hoisted_21=["src"],_hoisted_22=["src"],_hoisted_23={class:"ant-pagination-options-quick-jumper"},_hoisted_24=_withScopeId(()=>vue.createElementVNode("span",null,"条 / 页",-1));function _sfc_render$4(c,u,f,h,d,v){const p=vue.resolveComponent("a-button"),m=vue.resolveComponent("down-outlined"),g=vue.resolveComponent("right-outlined"),y=vue.resolveComponent("a-input"),x=vue.resolveComponent("a-checkbox-group"),Pn=vue.resolveComponent("a-table-summary-cell"),b=vue.resolveComponent("a-table-summary-row"),vn=vue.resolveComponent("a-table-summary"),_=vue.resolveComponent("a-table"),re=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(_,{ref:"tableRef",class:"table",style:vue.normalizeStyle({height:c.tableHeight,backgroundColor:c.tableBgColor}),columns:c.tableColumns,"data-source":c.tableDataSource,bordered:c.bordered,size:c.size,scroll:c.y?{x:c.x,y:c.y}:{x:c.x},pagination:c.isAutoScroll?!1:c.pagination,"row-class-name":c.rowClassName,"show-header":!c.hideTableHeader,indentSize:30,onChange:c.tableChange},{expandIcon:vue.withCtx(w=>{var J;return[(J=w.record.children)!=null&&J.length?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4,[w.expanded?(vue.openBlock(),vue.createBlock(m,{key:0,onClick:gn=>w.onExpand(w.record,gn)},null,8,["onClick"])):(vue.openBlock(),vue.createBlock(g,{key:1,onClick:gn=>w.onExpand(w.record,gn)},null,8,["onClick"]))])):(vue.openBlock(),vue.createElementBlock("span",_hoisted_5,[vue.createVNode(m)]))]}),customFilterDropdown:vue.withCtx(({column:w,setSelectedKeys:J,confirm:gn,clearFilters:Rn})=>[vue.createElementVNode("div",{class:"ecan-table-filter",style:vue.normalizeStyle({height:c.filterDropdownHeight})},[vue.createVNode(y,{value:w.filterOptionsInputValue,"onUpdate:value":zn=>w.filterOptionsInputValue=zn,placeholder:"请输入关键字",class:"filter-input",onChange:c.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),vue.createVNode(x,{value:w.filterCheckboxGroupValue,"onUpdate:value":zn=>w.filterCheckboxGroupValue=zn,class:"filter-checkbox",options:c.useFilterOptions(w),onChange:zn=>c.useSetSelectedKeys(J,w)},null,8,["value","onUpdate:value","options","onChange"]),vue.createElementVNode("div",null,[vue.createVNode(p,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>gn()},{default:vue.withCtx(()=>[_hoisted_6]),_:2},1032,["onClick"]),vue.createVNode(p,{size:"small",style:{width:"90px"},onClick:vue.withModifiers(zn=>c.onResetFilter(Rn,w),["stop"])},{default:vue.withCtx(()=>[_hoisted_7]),_:2},1032,["onClick"])])],4)]),bodyCell:vue.withCtx(({column:w,index:J,text:gn,record:Rn})=>{var zn,Wn,Un,Qn,Jn,tr;return[w.dataIndex==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[J===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:c.seqIcon1,width:c.iconSize,height:c.iconSize},null,8,_hoisted_8)):J===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:c.seqIcon2,width:c.iconSize,height:c.iconSize},null,8,_hoisted_9)):J>=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(J+1),5)],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_11,vue.toDisplayString(J+1),1))],64)):w.dataIndex==="ACTION"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.actionList,(Xn,ar)=>(vue.openBlock(),vue.createElementBlock("div",{class:"action",key:ar},[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))])):w.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14,[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({background:w.progressColor||"#1890ff",height:w.progressWidth||"18px",width:`${c.handleProgressText(gn,w.progressTextDecimalPlaces)}%`})},null,4),vue.createElementVNode("div",{class:"progress-text",style:vue.normalizeStyle({color:+c.handleProgressText(gn)<100?w.progressTextColor||"#333":w.progressFinishedTextColor||"#fff"})},vue.toDisplayString(c.handleProgressText(gn,w.progressTextDecimalPlaces))+"% ",5)])):(vue.openBlock(),vue.createElementBlock("div",{key:3,style:vue.normalizeStyle({fontSize:c.fontSize,fontWeight:c.isLinkStyle(w)?"bold":c.fontWeight,...c.getCellStyle(w,gn,Rn)})},[c.isMatchCondition(w,gn)&&(w==null?void 0:w.cellAlign)==="right"&&((zn=w==null?void 0:w.attribute)!=null&&zn.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:0,style:vue.normalizeStyle(c.getAttrImgStyle(w)),src:c.getAttrImgSrc(w)},null,12,_hoisted_15)):vue.createCommentVNode("",!0),!c.hasConditionConfig(w.dataIndex)&&w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:1,title:((Wn=w==null?void 0:w.customFormatter)==null?void 0:Wn.split("{value}")[0])||""},vue.toDisplayString(((Un=w==null?void 0:w.customFormatter)==null?void 0:Un.split("{value}")[0])||""),9,_hoisted_16)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass([c.contrastClass(w.format)]),style:vue.normalizeStyle(c.getChgStyle({...w,text:gn})),title:c.hasConditionConfig(w.dataIndex)?c.formatTextByConditions(w,gn,Rn):w.format!=null?c.formatFn(gn,w):gn},[!c.hasConditionConfig(w.dataIndex)&&w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(c.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(c.getChgBoxImgStyle({...w,text:gn})),src:c.getChgBoxImgSrc(gn)},null,12,_hoisted_18)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(c.hasConditionConfig(w.dataIndex)?c.formatTextByConditions(w,gn,Rn):w.format!=null?c.formatFn(gn,w):c.getCellText(gn,w))+" ",1),c.hasConditionConfig(w.dataIndex)&&c.getChgByCondition(w,gn,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(w,gn,Rn,1)),src:c.getChgByCondition(w,gn,Rn,2)},null,12,_hoisted_19)],4)):vue.createCommentVNode("",!0)],14,_hoisted_17),!c.hasConditionConfig(w.dataIndex)&&w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:2,title:((Qn=w==null?void 0:w.customFormatter)==null?void 0:Qn.split("{value}")[1])||""},vue.toDisplayString(((Jn=w==null?void 0:w.customFormatter)==null?void 0:Jn.split("{value}")[1])||""),9,_hoisted_20)):vue.createCommentVNode("",!0),c.isMatchCondition(w,gn)&&(w==null?void 0:w.cellAlign)!=="right"&&((tr=w==null?void 0:w.attribute)!=null&&tr.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:3,style:vue.normalizeStyle(c.getAttrImgStyle(w)),src:c.getAttrImgSrc(w)},null,12,_hoisted_21)):vue.createCommentVNode("",!0)],4))]}),summary:vue.withCtx(()=>[c.summaryList.length>0?(vue.openBlock(),vue.createBlock(vn,{key:0,fixed:c.isSummaryFixed},{default:vue.withCtx(()=>[vue.createVNode(b,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.summaryList,(w,J)=>(vue.openBlock(),vue.createBlock(Pn,{key:J,index:J,style:vue.normalizeStyle({backgroundColor:c.cellBackgroundColor,textAlign:w.cellAlign||"center",color:c.cellFontColor,borderBottomColor:c.borderColor})},{default:vue.withCtx(()=>[vue.createElementVNode("span",{class:vue.normalizeClass([c.contrastClass(w.format)]),style:vue.normalizeStyle({...c.getChgStyle({...w,text:w.total}),fontSize:c.fontSize,fontWeight:c.fontWeight})},[w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(c.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(c.getChgBoxImgStyle({...w,text:w.total})),src:c.getChgBoxImgSrc(w.total)},null,12,_hoisted_22)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString((w.format!=null||w.format!=="")&&c.formatFn(w.total,w)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):vue.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","scroll","pagination","row-class-name","show-header","onChange"]),c.paginationShow?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[(Bn=c.tableDataSource)!=null&&Bn.length&&!c.simple&&c.pageSizeShow&&c.pageSizeVisible?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#ecanTable-"+c.id+" .ant-pagination"},[vue.createElementVNode("div",_hoisted_23,[vue.withDirectives(vue.createElementVNode("input",{type:"text","onUpdate:modelValue":u[0]||(u[0]=w=>c.pageSize=w)},null,512),[[vue.vModelText,c.pageSize]]),_hoisted_24])],8,["to"])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),c.isAutoScroll?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["auto-scroll-content ant-table-wrapper table",c.autoScrollClass]),style:vue.normalizeStyle({width:"100%",position:"absolute",left:"0",height:c.autoScrollHeight+"px",top:c.autoScrollTop+"px",overflow:"auto"})},[vue.createVNode(re,{visible:c.isScroll,step:c.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(c.scrollWrapStyle)},null,4)]),_:1},8,["visible","step"])],6)):vue.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,_hoisted_1$1)}const Table=_export_sfc$1(__default__,[["render",_sfc_render$4],["__scopeId","data-v-a83fea44"]]),EcanTable=withInstall$1(Table),mapProps={...props,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{name}:{value}",tooltipRequestData:{requestUrl:"",requestMethod:"get",requestParams:[]},tooltipBackgroundColor:"#fff",areaStyleKeyName:"",mapAreaStyleConfig:[],legendShow:!1,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"bottom",legendLeft:"right",mapLegendType:"circle",legendTextShow:!0,legendTitle:"",legendTitleColor:"#333",legendTitleFontSize:"16px",legendFrontText:"",legendAfterText:"",legendBoxShadow:""},mapComponentProps=transformToComponentProps(mapProps),mapEvents=["refreshData","click"];core$1.use([renderers.CanvasRenderer,charts.MapChart,charts.ScatterChart,components$1.VisualMapComponent,components$1.TooltipComponent,components$1.GraphicComponent]);const _sfc_main$3=vue.defineComponent({name:"EcanMap",components:{Echarts},props:{...mapComponentProps},setup(c){const u=useRequestData({...c.tooltipRequestData,requestHeaders:{}}),f=vue.ref(),h=vue.ref(""),d=vue.ref(""),v=usePickComponentStyle(c,["backgroundImage"]),p=vue.ref(),m=vue.computed(()=>useImagePath(c.geoBackgroundImage)),g=vue.computed(()=>useImagePath(c.backgroundImage)),y=vue.ref([]),x=vue.computed(()=>c.geoBackgroundImage?{image:vue.unref(p),repeat:c.geoBackgroundImageRepeat}:c.geoItemStyleAreaColor),Pn=vue.computed(()=>{const Kn=c.symbolImage;return c.symbolImage?"image://"+useImagePath(Kn):"circle"}),b=Kn=>{let or=c.tooltipFormatter;const cr=or.match(/\{(.+?)\}/g);if(cr==null||cr.length===0)return or;for(let hr=0;hr<cr.length;hr++){const dr=cr[hr];let lr=dr.slice(1,-1).trim();const fr=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,mr=lr.match(fr);for(let pr=0;pr<mr.length;pr++){const gr=mr[pr],ur=Kn[gr];ur!=null&&(lr=lr.replace(gr,ur))}or=or.replace(dr,lr)}return or.split(`
|
|
131
|
-
`)},vn=vue.ref(!1),_=vue.ref("");let re=new AbortController;const Fn=(Kn,or)=>{const cr=re.signal;vn.value=!0,h.value=Kn,u({name:Kn,signal:cr}).then(hr=>{var dr,lr;if(hr){const fr=((lr=(dr=hr==null?void 0:hr.data)==null?void 0:dr.data)==null?void 0:lr.rows)||[];let mr="";for(const pr of fr){const gr=b(pr)||[];if(gr!=null&&gr.length)for(const ur of gr)mr+=`<div style="word-break: break-all;white-space: normal;">${ur}</div>`}mr=`<div style="max-width:200px;">${mr}</div>`,d.value=mr,or(vue.unref(_),mr)}else cr.aborted?d.value="Loading":d.value=Kn,or(vue.unref(_),d.value);vn.value=!1})},Bn=vue.ref(),w=vue.computed(()=>c.dataType==="request"?Bn.value:c.data),J=vue.computed(()=>{const Kn=[],{mapAreaStyleConfig:or}=c;if(or!=null&&or.length)for(const cr of or)Kn.push({...cr,key:nanoid(6)});return Kn}),gn=vue.computed(()=>{const Kn=[];for(const or of vue.unref(J)){let cr="";or.value1&&(cr+=`value ${or.rule1} ${or.value1}`),or.value2&&(cr+=`${or.value1?"&&":""} value ${or.rule2} ${or.value2}`),cr&&Kn.push({rule:cr,color:or.color,key:or.key})}return Kn.reverse()}),Rn=vue.computed(()=>{var cr;const Kn=[],{areaStyleKeyName:or}=c;if((cr=vue.unref(w))!=null&&cr.length)for(const hr of vue.unref(w)){const dr=hr[or];if(dr||dr===0){const lr=vue.unref(gn).find(fr=>pn(fr.rule,{value:dr}));lr&&Kn.push({name:hr.name,itemStyle:{areaColor:vue.unref(y).includes(lr.key)?c.geoItemStyleAreaColor:lr.color}})}}return Kn}),zn=vue.computed(()=>{const Kn=c.geoCenter;let or;return typeof Kn=="string"&&Kn!==""&&(or=Kn.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:or,map:`map-${c.id}`,selectedMode:"single",tooltip:{show:c.tooltipShow,trigger:"item",backgroundColor:c.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:c.tooltipTextStyleColor},formatter:(cr,hr,dr)=>{_.value=hr;const{name:lr=""}=cr,{requestUrl:fr}=c.tooltipRequestData;if(!fr){let mr="",pr=c.tooltipFormatter;pr===""&&(pr="{name}:{value}");const gr=vue.unref(w).find(ur=>ur.name===lr);return gr?(mr+=hn(pr,{textData:{name:lr,...gr}},{useNewline:!0,useSpace:!0}),mr):lr}if(vue.unref(vn))vue.unref(h)!==lr&&(re.abort(),re=new AbortController);else{if(vue.unref(h)===lr)return vue.unref(d);Fn(lr,dr)}return"Loading"}},label:{show:c.geoLabelShow,color:c.geoLabelColor,fontSize:c.geoLabelFontSize},itemStyle:{areaColor:vue.unref(x),borderColor:c.geoItemStyleBorderColor,borderWidth:c.geoItemStyleBorderWidth,shadowColor:c.geoItemStyleShadowColor,shadowBlur:c.geoItemStyleShadowBlur,shadowOffsetX:c.geoItemStyleShadowOffsetX,shadowOffsetY:c.geoItemStyleShadowOffsetY},emphasis:{disabled:c.geoEmphasisDisabled,label:{color:c.geoEmphasisLabelColor},itemStyle:{areaColor:c.geoEmphasisItemStyleAreaColor,borderColor:c.geoEmphasisItemStyleBorderColor}},regions:Rn.value},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:c.itemStyleColor},symbol:vue.unref(Pn),symbolSize:[c.symbolWidth,c.symbolHeight],label:{show:c.labelShow,fontSize:c.labelFontSize,formatter:c.labelFormatter,color:c.labelColor},tooltip:{show:c.tooltipShow,textStyle:{color:c.tooltipTextStyleColor}},data:w.value}]}}),Wn=vue.ref(!1),Un=async()=>{var cr;Wn.value=!1;const Kn=c.mapJson,or=`map-${c.id}`;if(Kn!=null&&Kn.path){const hr=await request(((cr=window==null?void 0:window.config)==null?void 0:cr.uploadPath)+Kn.path);core$1.registerMap(or,(hr==null?void 0:hr.data)||{})}else core$1.registerMap(or,{});Wn.value=!0};vue.watch(()=>c.mapJson,()=>{Un()},{immediate:!0,deep:!0});const Qn=async Kn=>{var hr,dr,lr,fr;const or=(dr=(hr=Kn==null?void 0:Kn.data)==null?void 0:hr.data)==null?void 0:dr.rows,cr=`map-${c.id}`;if(or!=null&&or.path){const mr=await request(or.path);core$1.registerMap(cr,(mr==null?void 0:mr.data)||{})}else if(Array.isArray(or))if(Bn.value=or,(lr=or[0])!=null&&lr.mapUrl){const mr=await request((fr=or[0])==null?void 0:fr.mapUrl);core$1.registerMap(cr,(mr==null?void 0:mr.data)||{})}else core$1.registerMap(cr,{});else core$1.registerMap(cr,{});vue.nextTick(()=>{Wn.value=!0})},Jn=useRequestData(c),tr=async()=>{if(c.dataType==="request"){Wn.value=!1;try{const Kn=await Jn();Qn(Kn)}catch(Kn){console.error(Kn),Wn.value=!0}}},Xn=()=>{const Kn=ar(c.id);switch(sr(c.id,{...Kn,RECORD:{}}),c.dataType){case"static":Un();break;case"request":tr();break}},{getGlobalModel:ar,setGlobalModel:sr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Kn=>{},setGlobalModel:(Kn,or)=>{}}),Hn=useEmitEvent(c)("click",()=>{var or,cr;const Kn=ar(c.id);((or=Kn==null?void 0:Kn.RECORD)==null?void 0:or.name)===((cr=vue.unref(f))==null?void 0:cr.name)?sr(c.id,{...Kn,RECORD:{}}):sr(c.id,{...Kn,RECORD:vue.unref(f)})});useOnEvent(c,{refreshData:Xn});const{setRequest:Yn}=vue.inject(REQUEST_MODEL,{setRequest:Kn=>{}});typeof Yn=="function"&&Yn({id:c.id,requestFn:Xn,sortNum:c.requestSort});const Vn=()=>{vue.unref(f)&&Hn()},Gn=(Kn={})=>{Kn.componentType==="geo"&&Kn.region?f.value=Kn.region:f.value=null},Zn=vue.computed(()=>{const Kn={},{legendTop:or,legendLeft:cr,legendBoxShadow:hr}=c;return hr&&(Kn.boxShadow=hr),or==="bottom"?Kn.bottom=0:or==="top"&&(Kn.top=0),cr==="left"?Kn.left=0:cr==="right"&&(Kn.right=0),Kn}),qn=vue.computed(()=>{const Kn={};return c.legendOrient==="vertical"&&(Kn.flexDirection="column"),Kn}),er=vue.computed(()=>{var Kn;if((Kn=vue.unref(J))!=null&&Kn.length){const or=[];for(const cr of vue.unref(J)){const{value1:hr,value2:dr,rule1:lr,rule2:fr,color:mr}=cr;hr&&dr?+hr<+dr?lr.includes(">")&&fr.includes("<")&&or.push({text:`${hr} - ${dr}`,color:mr,key:cr.key}):+hr>+dr?lr.includes("<")&&fr.includes(">")&&or.push({text:`${dr} - ${hr}`,color:mr,key:cr.key}):+hr==+dr&&or.push({text:`${hr} - ${dr}`,color:mr,key:cr.key}):hr?or.push({text:`${lr} ${hr}`,color:mr,key:cr.key}):dr&&or.push({text:`${fr} ${dr}`,color:mr,key:cr.key})}return or}else return[]});return{option:zn,style:v,isLoadedData:Wn,geoBackgroundImageRef:p,myGeoBackgroundImage:m,mapLegendStyle:Zn,legendContainerStyle:qn,mapLegendList:er,hiddenLegendKey:y,customClick:Vn,onMouseOver:Gn,handleToggleVisible:Kn=>{const or=vue.unref(y).findIndex(cr=>cr===Kn);or>=0?y.value.splice(or,1):y.value.push(Kn)}}}}),Map_vue_vue_type_style_index_0_scoped_99122857_lang="",_hoisted_1=["src"],_hoisted_2=["title","onClick"];function _sfc_render$3(c,u,f,h,d,v){const p=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-map",style:vue.normalizeStyle(c.style)},[c.isLoadedData?(vue.openBlock(),vue.createBlock(p,{key:0,option:c.option,"update-options":{notMerge:!0},autoresize:"","onZr:click":c.customClick,onMouseover:c.onMouseOver},null,8,["option","onZr:click","onMouseover"])):vue.createCommentVNode("",!0),vue.withDirectives(vue.createElementVNode("img",{ref:"geoBackgroundImageRef",src:c.myGeoBackgroundImage},null,8,_hoisted_1),[[vue.vShow,!1]]),c.legendShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"map-legend",style:vue.normalizeStyle(c.mapLegendStyle)},[vue.createElementVNode("div",{class:"legend-title",style:vue.normalizeStyle({color:c.legendTitleColor,fontSize:c.legendTitleFontSize})},vue.toDisplayString(c.legendTitle),5),vue.createElementVNode("div",{class:"legend-container",style:vue.normalizeStyle(c.legendContainerStyle)},[vue.createElementVNode("div",{style:vue.normalizeStyle({color:c.legendTextStyleColor,marginRight:c.legendOrient==="horizontal"?"5px":"",marginBottom:c.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(c.legendFrontText),5),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.mapLegendList,(m,g)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["legend-item",{hidden:c.hiddenLegendKey.includes(m.key)}]),style:vue.normalizeStyle({marginRight:c.legendOrient==="horizontal"?"10px":"",marginLeft:c.legendOrient==="horizontal"?"10px":"",marginBottom:c.legendOrient==="vertical"?"10px":"",marginTop:c.legendOrient==="vertical"?"10px":""}),key:g,title:c.legendTextShow?"":m.text,onClick:y=>c.handleToggleVisible(m.key)},[vue.createElementVNode("div",{class:"color-block",style:vue.normalizeStyle({backgroundColor:m.color,width:"20px",height:c.mapLegendType==="rect"?"16px":"20px",borderRadius:c.mapLegendType==="circle"?"50%":"4px"})},null,4),c.legendTextShow?(vue.openBlock(),vue.createElementBlock("span",{key:0,class:"legend-item-text",style:vue.normalizeStyle({color:c.legendTextStyleColor,marginLeft:"10px"})},vue.toDisplayString(m.text),5)):vue.createCommentVNode("",!0)],14,_hoisted_2))),128)),vue.createElementVNode("div",{style:vue.normalizeStyle({color:c.legendTextStyleColor,marginLeft:c.legendOrient==="horizontal"?"5px":"",marginTop:c.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(c.legendAfterText),5)],4)],4)):vue.createCommentVNode("",!0)],4)}const Map$1=_export_sfc$1(_sfc_main$3,[["render",_sfc_render$3],["__scopeId","data-v-99122857"]]),EcanMap=withInstall$1(Map$1),dataSelectProps={...props,name:"下拉框选择器-数据",keyName:"下拉框选择器-数据",width:"120px",height:"33px",type:"ecanDataSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},dataSelectComponentProps=transformToComponentProps(dataSelectProps),dataSelectEvents=["selectChange","refreshData"],_sfc_main$2=vue.defineComponent({name:"EcanDataSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption},props:{...dataSelectComponentProps},setup(c,{expose:u}){const f=usePickComponentStyle(c),h=()=>document.getElementById("ProviderConfig")||document.body,d=vue.ref(c.data||[]),v=vue.ref(),p=vue.computed({get:()=>{var nr;const{mode:sr}=c;return(nr=vue.unref(d))!=null&&nr.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,nr)=>{},getRecordValueByKeyName:sr=>{}}),x=c.dataFieldNames;vue.watch(()=>[c.value,c.mode,c.selectFirstOption,c.valueType,d.value],()=>{const{mode:sr,selectFirstOption:nr,value:Hn}=c,Yn=y(Hn),Vn=x.value;if(sr==="multiple"||sr==="tags"||sr==="combobox"){if(Yn)v.value=Yn.split(",");else if(nr){const Gn=vue.unref(d)[0];v.value=Gn?[Gn[Vn]]:[]}}else if(Yn)v.value=Yn;else if(nr){const Gn=vue.unref(d)[0];v.value=Gn?Gn[Vn]:""}},{immediate:!0});const Pn=(sr,nr)=>{const Hn=x.label,Yn=x.value;let Vn;const Gn=nr[Hn],Zn=nr[Yn];return Gn!=null?Vn=Gn:Zn!=null&&(Vn=Zn),(Vn==null?void 0:Vn.toLowerCase().indexOf(sr==null?void 0:sr.toLowerCase()))>=0},b=sr=>{const{label:nr,value:Hn,options:Yn}=c.dataFieldNames;if(Yn&&Array.isArray(sr))if(sr.some(Vn=>Yn in Vn)){const Vn={},Gn=[];sr.forEach(Zn=>{Vn[Zn[Yn]]||(Vn[Zn[Yn]]=[]),Vn[Zn[Yn]].push({[nr]:Zn[nr],[Hn]:Zn[Hn]})});for(const Zn in Vn)Gn.push({[nr]:Zn,[Yn]:Vn[Zn]});return Gn}else return sr;else if(!Yn)return sr},vn=vue.ref(!1),_=sr=>{var nr,Hn;if(d.value=b(((Hn=(nr=sr==null?void 0:sr.data)==null?void 0:nr.data)==null?void 0:Hn.rows)||[]),c.selectFirstOption){let Yn=vue.unref(d)[0];if(x.options){const Vn=Yn[x.options];Vn&&Vn.length&&(Yn=Vn[0])}v.value=Yn[x.value]}},re=useRequestData(c),Fn=async()=>{if(c.dataType==="request"){vn.value=!0;try{const sr=await re();_(sr)}catch(sr){console.error(sr)}finally{vn.value=!1}}},Bn=vue.computed(()=>{let sr=v.value;if(c.valueType==="label"&&vue.unref(v)&&vue.unref(d)){const nr=x.label,Hn=x.value;if(c.mode==="multiple")sr=vue.unref(d).filter(Yn=>vue.unref(v).includes(Yn[Hn])).map(Yn=>Yn[nr]);else{const Yn=vue.unref(d).find(Vn=>vue.unref(v)===Vn[Hn]);Yn&&(sr=Yn[nr])}}return sr}),w=vue.ref([]),J=vue.computed(()=>{const sr={};if(c.mode!=="multiple"){const nr=vue.unref(w).find(Hn=>Hn.value===vue.unref(v));nr&&(sr.itemCodes=nr.item_codes)}return sr}),gn=vue.computed(()=>{const{value:sr,label:nr}=x,Hn=vue.unref(d).find(Yn=>Yn[sr]===vue.unref(p));return Hn?{label:Hn[nr],value:Hn[sr]}:{}}),{pageId:Rn}=vue.inject("templateOperate",{pageId:""})||{};g(c.id,{type:c.type,value:Bn,...vue.unref(J),recordData:vue.unref(gn)});const zn=useEmitEvent(c),Wn=zn("selectChange",()=>{const sr=c.id,nr=m(sr);g(sr,{...nr,...vue.unref(J),RECORD:Bn,recordData:vue.unref(gn)});const Hn=getNewValueFromUrlParams(Rn,c.keyName,"value");Hn&&(p.value=Hn)}),Un=zn("refreshData",(sr=[])=>{if(d.value=b(sr),c.selectFirstOption){let nr=vue.unref(d)[0];if(x.options){const Hn=nr[x.options];Hn&&Hn.length&&(nr=Hn[0])}v.value=nr[x.value]}g(c.id,{type:c.type,value:Bn,...vue.unref(J),recordData:vue.unref(gn)})}),Qn=sr=>{var Vn;const{data:nr}=(sr==null?void 0:sr.data)||{},Hn=x.label,Yn=x.value;if(nr){const{rows:Gn=[]}=((Vn=sr==null?void 0:sr.data)==null?void 0:Vn.data)||{};w.value=Gn;const Zn=Gn.map(ir=>({[Hn]:ir.label,[Yn]:ir.value})),{id:qn}=c,er=m(qn);g(qn,{...er,...vue.unref(J)}),Un(Zn)}else Un([])},Jn=useIndicatorData(c,Qn),tr=async()=>{try{vn.value=!0;const sr=await Jn();Qn(sr)}catch(sr){console.error(sr)}finally{vn.value=!1}},Xn=()=>{switch(c.dataType){case"indicator":{tr();break}case"request":Fn();break}};useOnEvent(c,{selectChange:Wn,refreshData:Xn});const{setRequest:ar}=vue.inject(REQUEST_MODEL,{setRequest:({id:sr,sortNum:nr,requestFn:Hn})=>{}});return typeof ar=="function"&&ar({id:c.id,requestFn:Xn,sortNum:c.requestSort}),u({refreshData:Xn}),{style:f,getPopupContainer:h,myValue:v,selectChange:Wn,options:d,filterOption:Pn,loading:vn,resultValue:p}}}),DataSelect_vue_vue_type_style_index_0_scoped_622b0b83_lang="",DataSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$2(c,u,f,h,d,v){const p=vue.resolveComponent("a-select-option"),m=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-select",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{class:"select",value:c.resultValue,"onUpdate:value":u[0]||(u[0]=g=>c.resultValue=g),placeholder:c.placeholder,showSearch:"",allowClear:c.isAllowClear,mode:c.mode,getPopupContainer:c.getPopupContainer,fieldNames:c.dataFieldNames,maxTagCount:c.maxTagCount,filterOption:c.filterOption,loading:c.loading,autoClearSearchValue:c.autoClearSearchValue,onChange:c.selectChange,style:vue.normalizeStyle({fontSize:c.optionFontSize})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.options,(g,y)=>(vue.openBlock(),vue.createBlock(p,{key:y,value:g.value,label:g.label,style:vue.normalizeStyle({fontSize:c.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const DataSelect=_export_sfc$1(_sfc_main$2,[["render",_sfc_render$2],["__scopeId","data-v-622b0b83"]]),EcanDataSelect=withInstall$1(DataSelect),pivotTableProps={...props,name:"透视表",keyName:"透视表",width:"800px",height:"400px",type:"ecanPivotTable",graphicConfig:{},dataType:"indicator",data:[],dimensionList:[],indicatorList:[],styleConfig:{borderColor:"#E3E3E3",headerBgColor:"#ECF1F5",headerColor:"#000000",bodyBgColor:"#FFFFFF",bodyColor:"#000000",indicatorsHeaderBgColor:"#ECF1F5",indicatorsHeaderColor:"#000000",indicatorsBodyBgColor:"#FFFFFF",indicatorsBodyColor:"#000000",aggregateBgColor:"#ECF1F5",aggregateColor:"#000000",sortNotActiveColor:"#CCCCCC",sortActiveColor:"#416EFF",dropDownMenuBgColor:"#FFFFFF",dropDownMenuColor:"#141414",dropDownMenuHightLightColor:"#2E68CF"},configMode:"halfMode"},pivotTableComponentProps=transformToComponentProps(pivotTableProps),pivotTableEvents=["refreshData"],_sfc_main$1=vue.defineComponent({name:"EcanPivotTable",components:{},props:{...pivotTableComponentProps,fullMode:{type:Boolean,default:!1}},setup(c,{emit:u,expose:f}){var J,gn;const h=(J=window==null?void 0:window.config)==null?void 0:J.pageId,d=(gn=window==null?void 0:window.config)==null?void 0:gn.indicatorToken,v=usePickComponentStyle(c),p=vue.ref(),{pageMode:m,theme:g,width:y,height:x}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",theme:"light",width:"",height:""}),{getAllGlobalModel:Pn}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),b=vue.computed(()=>{const{width:Rn,height:zn}=c;let Wn=0,Un=0;return typeof Rn=="string"?Wn=parseFloat(Rn):Rn.suffix==="px"?Wn=+Rn.value:Rn.suffix==="%"&&(Wn=parseFloat(vue.unref(y))*(Rn.value/100)),typeof zn=="string"?Un=parseFloat(zn):zn.suffix==="px"?Un=+zn.value:zn.suffix==="%"&&(Un=parseFloat(vue.unref(x))*(zn.value/100)),{...c,width:Wn+"px",height:Un+"px",pageId:h,indicatorToken:d,context:CONTEXT,globalModel:Pn()}}),vn=vue.computed(()=>INDICATOR_URL),_=()=>{switch(c.dataType){case"indicator":vue.unref(p).refreshData();break}},{setRequest:re}=vue.inject(REQUEST_MODEL,{setRequest:({id:Rn,sortNum:zn,requestFn:Wn})=>{}});typeof re=="function"&&re({id:c.id,requestFn:_,sortNum:c.requestSort}),f({refreshData:_});const Bn=useEmitEvent(c)("click",()=>{vue.unref(p).click()});return useOnEvent(c,{refreshData:_,click:Bn}),vue.onMounted(()=>{}),{props:c,style:v,pageMode:m,pivotTableRef:p,theme:g,customProps:b,indicatorUrl:vn,click:Bn,onTableChange:({type:Rn,data:zn})=>{console.log("data",zn),u("tableChange",{type:Rn,data:zn})}}}}),PivotTableContainer_vue_vue_type_style_index_0_scoped_6ac97f9c_lang="";function _sfc_render$1(c,u,f,h,d,v){const p=vue.resolveComponent("pivot-table");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-pivot-table",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,vue.mergeProps({ref:"pivotTableRef"},c.customProps,{pageMode:c.pageMode,theme:c.theme,fullMode:c.fullMode,indicatorUrl:c.indicatorUrl,enlargeContainer:".page-config",onTableChange:c.onTableChange}),null,16,["pageMode","theme","fullMode","indicatorUrl","onTableChange"])],4)}const PivotTableContainer=_export_sfc$1(_sfc_main$1,[["render",_sfc_render$1],["__scopeId","data-v-6ac97f9c"]]),EcanPivotTable=withInstall$1(PivotTableContainer),valueLineProps={...props,id:"",name:"双值轴折线图",keyName:"双值轴折线图",type:"ecanValueLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:0,value:0,value2:10},{name:10,value:20,value2:35},{name:20,value:30,value2:25},{name:30,value:40,value2:55}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a}:{c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",customPoint:"",axisMarkPoint:[],markPointFormatter:"{x}, {y}"},valueLineComponentProps=transformToComponentProps(valueLineProps),valueLineEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent,components$1.MarkPointComponent]);const _sfc_main=vue.defineComponent({name:"EcanValueLine",props:{...valueLineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const{pageMode:f,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),d=vue.ref(),v=vue.ref(!1),p=usePickComponentStyle(c),m=vue.ref([]),g=vue.ref(),y=vue.computed(()=>v.value?ZOOM_FONT_SIZE:12),x=vue.ref({});let Pn;const b=vue.computed(()=>{const Gn=c.xAxisLabelFormatter,Zn=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,orient:c.toolboxOrient,feature:{myDownload:{show:c.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:v.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var qn;v.value=!0,(qn=g.value)==null||qn.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:qn=>{var or;const er=qn.length;let ir="",Kn=c.tooltipFormatter;Pn=(or=qn[0])==null?void 0:or.data,Kn===""&&(Kn="{marker} {a} {c}");for(let cr=0;cr<er;cr++){const{marker:hr,seriesName:dr,name:lr,value:fr,data:mr}=qn[cr]||{};if(cr===0){let pr=lr;typeof lr=="string"&&lr[0]==="0"&&!isNaN(+lr)&&(pr=(+lr).toString()),ir+=`${In(Gn,pr)}<br/>`}ir+=hn(Kn,{textData:{marker:hr,a:dr,b:fr[0],c:fr[1]||0,...mr==null?void 0:mr.record}},{useNewline:!0,useSpace:!0}),ir+="<br/>"}return ir},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(qn){return typeof qn=="string"&&qn[0]==="0"&&!isNaN(+qn)&&(qn=(+qn).toString()),In(Gn,qn)}},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(qn){return In(Zn,qn)}},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:qn=>getLegendFormat(c.legendFormatter,{name:qn})},series:vue.unref(m)}}),vn=()=>{v.value=!1},{getGlobalModel:_,setGlobalModel:re,getRecordValueByKeyName:Fn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Gn=>{},setGlobalModel:(Gn,Zn)=>{},getRecordValueByKeyName:Gn=>{}}),Bn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),w=(Gn,Zn,qn,er,ir,Kn,or,cr)=>{const hr=(-(ir*cr-Kn*or)/(or-ir)+(Gn*er-Zn*qn)/(qn-Gn))/((er-Zn)/(qn-Gn)-(cr-Kn)/(or-ir)),dr=(er-Zn)/(qn-Gn)*(-(ir*cr-Kn*or)/(or-ir)+(Gn*er-Zn*qn)/(qn-Gn))/((er-Zn)/(qn-Gn)-(cr-Kn)/(or-ir))-(Gn*er-Zn*qn)/(qn-Gn);return[hr,dr]},J=()=>{var qn;const Gn={symbol:"circle",tooltip:{trigger:"item",formatter:er=>{let ir="",Kn=c.markPointFormatter;Kn===""&&(Kn="{x}, {y}");const{data:{coord:or=[]}}=er||{};return ir+=hn(Kn,{textData:{x:or[0]||0,y:or[1]||0}},{useNewline:!0,useSpace:!0}),ir+="<br/>",ir}},data:[]},{axisMarkPoint:Zn=[]}=c;for(const er of Zn){const{coord:ir=""}=er,Kn=[];let or=[];if(ir.includes("getIntersectPoint")){const cr=(qn=ir.match(/getIntersectPoint\((.*?)\)/)[1])==null?void 0:qn.split(",");if((cr==null?void 0:cr.length)===8){const hr=[];for(const dr of cr){const lr=dr.replaceAll(" ","");(lr==null?void 0:lr.slice(0,1))==="{"&&(lr==null?void 0:lr.slice(-1))==="}"?hr.push(+Fn(lr)||0):hr.push(+lr)}or=w(...hr)}}else or=ir.split(",");(or==null?void 0:or.length)===2&&(Kn[0]=+or[0],Kn[1]=+or[1]),Kn!=null&&Kn.length&&Gn.data.push({coord:Kn,symbolSize:er.symbolSize,itemStyle:{color:er.pointColor||"transparent",borderWidth:er.borderWidth||"transparent",borderColor:er.borderColor||"transparent"},label:{formatter:er.label,position:er.labelPosition,color:er.labelColor||"transparent"}})}return Gn},gn=Gn=>{var hr,dr,lr;const Zn=lodashEs.cloneDeep(Gn),{graphicConfig:qn,customPoint:er=""}=c,ir={},Kn={},{formFields:or={}}=qn;let cr=[];if(er){cr=JSON.parse(er);for(const fr of cr)for(const mr in fr)typeof fr[mr]=="string"&&((hr=fr[mr])==null?void 0:hr.slice(0,1))==="{"&&((dr=fr[mr])==null?void 0:dr.slice(-1))==="}"&&(fr[mr]=Fn(fr[mr])||0)}cr!=null&&cr.length&&Zn.push(...cr),c.dataType==="static"?(Kn.name="name",Kn.values=["value","value2"]):(Kn.name=(or==null?void 0:or.labelField)||"name",Kn.values=(or==null?void 0:or.valueField)||["value","value2"]);for(const fr of Zn){const{values:mr,name:pr}=Kn;for(const gr of mr){const ur={value:[fr[pr],fr[gr]],record:fr};mn(ir,gr)?ir[gr].push(ur):ir[gr]=[ur]}}if((lr=Object.keys(ir))!=null&&lr.length){const fr=[];for(const mr in ir)fr.push({name:mr,data:ir[mr]});return fr}else return[]},Rn=(Gn=[])=>{const Zn=gn(Gn),qn=[],er=Zn.length;for(let ir=0;ir<er;ir++){const Kn={},or={};ir===0&&(or.markPoint=J()),c.shadowColor&&(Kn.shadowColor=c.shadowColor,Kn.shadowBlur=c.shadowBlur,Kn.shadowOffsetY=c.shadowOffsetY,Kn.shadowOffsetX=c.shadowOffsetX),qn.push({type:"line",...or,...Zn[ir],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[ir]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[ir],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Kn},...vue.unref(Bn)})}m.value=qn},zn=(Gn=[])=>{const Zn=gn(Gn),qn=[],er=Zn.length;for(let ir=0;ir<er;ir++){const Kn={};c.shadowColor&&(Kn.shadowColor=c.shadowColor,Kn.shadowBlur=c.shadowBlur,Kn.shadowOffsetY=c.shadowOffsetY,Kn.shadowOffsetX=c.shadowOffsetX);const or={};ir===0&&(or.markPoint=J()),qn.push({type:"line",...Zn[ir],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[ir]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[ir],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Kn},...vue.unref(Bn),...or})}m.value=qn};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 Wn=vue.ref(!1),Un=useRequestData(c),Qn=async()=>{var Gn,Zn;if(c.dataType==="request")try{Wn.value=!0;const qn=await Un();Rn((Zn=(Gn=qn==null?void 0:qn.data)==null?void 0:Gn.data)==null?void 0:Zn.rows)}catch(qn){console.error(qn)}finally{Wn.value=!1}},Jn=useEmitEvent(c);re(c.id,{type:c.type,RECORD:""});const tr=Jn("click",Gn=>{const Zn=_(c.id);re(c.id,{...Zn,type:c.type,RECORD:c.tooltipShow?Pn:Gn.data})}),Xn=Gn=>{d.value.chart.containPixel("grid",[Gn.offsetX,Gn.offsetY])&&tr()};c.tooltipShow?x.value["zr:click"]=Xn:x.value.click=tr;const ar=Gn=>{var qn;const{rows:Zn=[]}=((qn=Gn==null?void 0:Gn.data)==null?void 0:qn.data)??{};zn(Zn)},sr=useIndicatorData(c,Gn=>{c.isViewRedrawing&&d.value.clear(),ar(Gn)}),nr=async()=>{try{Wn.value=!0;const Gn=await sr();ar(Gn)}catch(Gn){console.error(Gn)}finally{Wn.value=!1}},Hn=()=>{switch(c.dataType){case"indicator":nr();break;case"request":Qn();break}};useOnEvent(c,{refreshData:Hn,resetRecord:()=>{const Gn=c.id,Zn=_(Gn);re(Gn,{...Zn,RECORD:""})},click:tr});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:b,style:p,click:tr,loading:Wn,onClose:vn,ecanModal:g,eventObj:x,echartRef:d}}}),ValueLine_vue_vue_type_style_index_0_lang="";function _sfc_render(c,u,f,h,d,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-value-line",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,vue.mergeProps({ref:"echartRef",option:c.option,autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const ValueLine=_export_sfc$1(_sfc_main,[["render",_sfc_render]]),EcanValueLine=withInstall$1(ValueLine),components=Object.freeze(Object.defineProperty({__proto__:null,EcanBar,EcanBorder,EcanButton,EcanCheckbox,EcanCirculate,EcanComboGraph,EcanCounter,EcanCustomGraph,EcanDataSelect,EcanDatePicker,EcanIframe,EcanImage,EcanInput,EcanLine,EcanList,EcanMap,EcanModal,EcanPageConfig,EcanPie,EcanPivotTable,EcanProportion,EcanProviderConfig,EcanRadar,EcanRadio,EcanRangePicker,EcanScatter,EcanScrollText,EcanSelect,EcanTable,EcanTabs,EcanTemplate,EcanText,EcanTimeDisplay,EcanTreeSelect,EcanValueLine,barComponentProps,barEvents,barProps,borderComponentProps,borderEvents,borderProps,buttonComponentProps,buttonEvents,buttonProps,checkboxComponentProps,checkboxEvents,checkboxProps,circulateComponentProps,circulateEvents,circulateProps,comboGraphComponentProps,comboGraphEvents,comboGraphProps,counterComponentProps,counterEvents,counterProps,customGraphComponentProps,customGraphProps,dataSelectComponentProps,dataSelectEvents,dataSelectProps,datePickerComponentProps,datePickerEvents,datePickerProps:datePickerProps$1,iframeComponentProps,iframeProps,imageComponentProps,imageEvents,imageProps,inputComponentProps,inputEvents,inputProps,lineComponentProps,lineEvents,lineProps,listComponentProps,listEvents,listProps,mapComponentProps,mapEvents,mapProps,modalComponentProps,modalEvents,modalProps,pageConfig,pageConfigComponentProps,pieComponentProps,pieEvents,pieProps,pivotTableComponentProps,pivotTableEvents,pivotTableProps,proportionComponentProps,proportionEvents,proportionProps,providerConfig,providerConfigComponentProps,radarComponentProps,radarEvents,radarProps,radioComponentProps,radioEvents,radioProps,rangePickerComponentProps,rangePickerEvents,rangePickerProps,scatterComponentProps,scatterEvents,scatterProps,selectComponentProps,selectEvents,selectProps,tableComponentProps,tableEvents,tableProps,tabsComponentProps,tabsEvents,tabsProps:tabsProps$1,templateComponentProps,templateEvents,templateProps,textComponentProps,textEvents,textProps,timeDisplayComponentProps,timeDisplayEvents,timeDisplayProps,treeSelectComponentProps,treeSelectEvents,treeSelectProps,valueLineComponentProps,valueLineEvents,valueLineProps},Symbol.toStringTag,{value:"Module"}));function noop(){}const extend=Object.assign,inBrowser$1=typeof window<"u",isObject$1=c=>c!==null&&typeof c=="object",isDef=c=>c!=null,isFunction=c=>typeof c=="function",isPromise=c=>isObject$1(c)&&isFunction(c.then)&&isFunction(c.catch),isDate=c=>Object.prototype.toString.call(c)==="[object Date]"&&!Number.isNaN(c.getTime()),isNumeric=c=>typeof c=="number"||/^\d+(\.\d+)?$/.test(c),isIOS=()=>inBrowser$1?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function get(c,u){const f=u.split(".");let h=c;return f.forEach(d=>{var v;h=isObject$1(h)&&(v=h[d])!=null?v:""}),h}function pick(c,u,f){return u.reduce((h,d)=>((!f||c[d]!==void 0)&&(h[d]=c[d]),h),{})}const isSameValue=(c,u)=>JSON.stringify(c)===JSON.stringify(u),flat=c=>c.reduce((u,f)=>u.concat(f),[]),unknownProp=null,numericProp=[Number,String],truthProp={type:Boolean,default:!0},makeRequiredProp=c=>({type:c,required:!0}),makeArrayProp=()=>({type:Array,default:()=>[]}),makeNumericProp=c=>({type:numericProp,default:c}),makeStringProp=c=>({type:String,default:c});var inBrowser=typeof window<"u";function raf(c){return inBrowser?requestAnimationFrame(c):-1}function cancelRaf(c){inBrowser&&cancelAnimationFrame(c)}function doubleRaf(c){raf(()=>raf(c))}var isWindow=c=>c===window,makeDOMRect=(c,u)=>({top:0,left:0,right:c,bottom:u,width:c,height:u}),useRect=c=>{const u=vue.unref(c);if(isWindow(u)){const f=u.innerWidth,h=u.innerHeight;return makeDOMRect(f,h)}return u!=null&&u.getBoundingClientRect?u.getBoundingClientRect():makeDOMRect(0,0)};function useParent(c){const u=vue.inject(c,null);if(u){const f=vue.getCurrentInstance(),{link:h,unlink:d,internalChildren:v}=u;h(f),vue.onUnmounted(()=>d(f));const p=vue.computed(()=>v.indexOf(f));return{parent:u,index:p}}return{parent:null,index:vue.ref(-1)}}function flattenVNodes(c){const u=[],f=h=>{Array.isArray(h)&&h.forEach(d=>{var v;vue.isVNode(d)&&(u.push(d),(v=d.component)!=null&&v.subTree&&(u.push(d.component.subTree),f(d.component.subTree.children)),d.children&&f(d.children))})};return f(c),u}var findVNodeIndex=(c,u)=>{const f=c.indexOf(u);return f===-1?c.findIndex(h=>u.key!==void 0&&u.key!==null&&h.type===u.type&&h.key===u.key):f};function sortChildren(c,u,f){const h=flattenVNodes(c.subTree.children);f.sort((v,p)=>findVNodeIndex(h,v.vnode)-findVNodeIndex(h,p.vnode));const d=f.map(v=>v.proxy);u.sort((v,p)=>{const m=d.indexOf(v),g=d.indexOf(p);return m-g})}function useChildren(c){const u=vue.reactive([]),f=vue.reactive([]),h=vue.getCurrentInstance();return{children:u,linkChildren:v=>{const p=g=>{g.proxy&&(f.push(g),u.push(g.proxy),sortChildren(h,u,f))},m=g=>{const y=f.indexOf(g);u.splice(y,1),f.splice(y,1)};vue.provide(c,Object.assign({link:p,unlink:m,children:u,internalChildren:f},v))}}}function onMountedOrActivated(c){let u;vue.onMounted(()=>{c(),vue.nextTick(()=>{u=!0})}),vue.onActivated(()=>{u&&c()})}function useEventListener(c,u,f={}){if(!inBrowser)return;const{target:h=window,passive:d=!1,capture:v=!1}=f;let p=!1,m;const g=Pn=>{if(p)return;const b=vue.unref(Pn);b&&!m&&(b.addEventListener(c,u,{capture:v,passive:d}),m=!0)},y=Pn=>{if(p)return;const b=vue.unref(Pn);b&&m&&(b.removeEventListener(c,u,v),m=!1)};vue.onUnmounted(()=>y(h)),vue.onDeactivated(()=>y(h)),onMountedOrActivated(()=>g(h));let x;return vue.isRef(h)&&(x=vue.watch(h,(Pn,b)=>{y(b),g(Pn)})),()=>{x==null||x(),y(h),p=!0}}var width,height;function useWindowSize(){if(!width&&(width=vue.ref(0),height=vue.ref(0),inBrowser)){const c=()=>{width.value=window.innerWidth,height.value=window.innerHeight};c(),window.addEventListener("resize",c,{passive:!0}),window.addEventListener("orientationchange",c,{passive:!0})}return{width,height}}var overflowScrollReg=/scroll|auto|overlay/i,defaultRoot=inBrowser?window:void 0;function isElement(c){return c.tagName!=="HTML"&&c.tagName!=="BODY"&&c.nodeType===1}function getScrollParent(c,u=defaultRoot){let f=c;for(;f&&f!==u&&isElement(f);){const{overflowY:h}=window.getComputedStyle(f);if(overflowScrollReg.test(h))return f;f=f.parentNode}return u}function useScrollParent(c,u=defaultRoot){const f=vue.ref();return vue.onMounted(()=>{c.value&&(f.value=getScrollParent(c.value,u))}),f}var visibility;function usePageVisibility(){if(!visibility&&(visibility=vue.ref("visible"),inBrowser)){const c=()=>{visibility.value=document.hidden?"hidden":"visible"};c(),window.addEventListener("visibilitychange",c)}return visibility}function getScrollTop(c){const u="scrollTop"in c?c.scrollTop:c.pageYOffset;return Math.max(u,0)}function setScrollTop(c,u){"scrollTop"in c?c.scrollTop=u:c.scrollTo(c.scrollX,u)}function getRootScrollTop(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function setRootScrollTop(c){setScrollTop(window,c),setScrollTop(document.body,c)}function getElementTop(c,u){if(c===window)return 0;const f=u?getScrollTop(u):getRootScrollTop();return useRect(c).top+f}isIOS();const stopPropagation=c=>c.stopPropagation();function preventDefault(c,u){(typeof c.cancelable!="boolean"||c.cancelable)&&c.preventDefault(),u&&stopPropagation(c)}function isHidden(c){const u=vue.unref(c);if(!u)return!1;const f=window.getComputedStyle(u),h=f.display==="none",d=u.offsetParent===null&&f.position!=="fixed";return h||d}const{width:windowWidth,height:windowHeight}=useWindowSize();function addUnit(c){if(isDef(c))return isNumeric(c)?`${c}px`:String(c)}function getSizeStyle(c){if(isDef(c)){if(Array.isArray(c))return{width:addUnit(c[0]),height:addUnit(c[1])};const u=addUnit(c);return{width:u,height:u}}}function getZIndexStyle(c){const u={};return c!==void 0&&(u.zIndex=+c),u}let rootFontSize;function getRootFontSize(){if(!rootFontSize){const c=document.documentElement,u=c.style.fontSize||window.getComputedStyle(c).fontSize;rootFontSize=parseFloat(u)}return rootFontSize}function convertRem(c){return c=c.replace(/rem/g,""),+c*getRootFontSize()}function convertVw(c){return c=c.replace(/vw/g,""),+c*windowWidth.value/100}function convertVh(c){return c=c.replace(/vh/g,""),+c*windowHeight.value/100}function unitToPx(c){if(typeof c=="number")return c;if(inBrowser$1){if(c.includes("rem"))return convertRem(c);if(c.includes("vw"))return convertVw(c);if(c.includes("vh"))return convertVh(c)}return parseFloat(c)}const camelizeRE=/-(\w)/g,camelize=c=>c.replace(camelizeRE,(u,f)=>f.toUpperCase()),kebabCase=c=>c.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");function padZero(c,u=2){let f=c+"";for(;f.length<u;)f="0"+f;return f}const clamp=(c,u,f)=>Math.min(Math.max(c,u),f),{hasOwnProperty}=Object.prototype;function assignKey(c,u,f){const h=u[f];isDef(h)&&(!hasOwnProperty.call(c,f)||!isObject$1(h)?c[f]=h:c[f]=deepAssign(Object(c[f]),h))}function deepAssign(c,u){return Object.keys(u).forEach(f=>{assignKey(c,u,f)}),c}var stdin_default$h={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(c,u)=>`${c}年${u}月`,rangePrompt:c=>`最多选择 ${c} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:c=>`${c}折`,condition:c=>`满${c}元可用`},vanCouponCell:{title:"优惠券",count:c=>`${c}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const lang=vue.ref("zh-CN"),messages=vue.reactive({"zh-CN":stdin_default$h}),Locale={messages(){return messages[lang.value]},use(c,u){lang.value=c,this.add({[c]:u})},add(c={}){deepAssign(messages,c)}};var stdin_default$g=Locale;function createTranslate(c){const u=camelize(c)+".";return(f,...h)=>{const d=stdin_default$g.messages(),v=get(d,u+f)||get(d,f);return isFunction(v)?v(...h):v}}function genBem(c,u){return u?typeof u=="string"?` ${c}--${u}`:Array.isArray(u)?u.reduce((f,h)=>f+genBem(c,h),""):Object.keys(u).reduce((f,h)=>f+(u[h]?genBem(c,h):""),""):""}function createBEM(c){return(u,f)=>(u&&typeof u!="string"&&(f=u,u=""),u=u?`${c}__${u}`:c,`${u}${genBem(u,f)}`)}function createNamespace(c){const u=`van-${c}`;return[u,createBEM(u),createTranslate(u)]}const BORDER="van-hairline",BORDER_TOP_BOTTOM=`${BORDER}--top-bottom`,BORDER_UNSET_TOP_BOTTOM=`${BORDER}-unset--top-bottom`,HAPTICS_FEEDBACK="van-haptics-feedback",TAP_OFFSET=5;function callInterceptor(c,{args:u=[],done:f,canceled:h,error:d}){if(c){const v=c.apply(null,u);isPromise(v)?v.then(p=>{p?f():h&&h()}).catch(d||noop):v?f():h&&h()}else f()}function withInstall(c){return c.install=u=>{const{name:f}=c;f&&(u.component(f,c),u.component(camelize(`-${f}`),c))},c}const POPUP_TOGGLE_KEY=Symbol();function onPopupReopen(c){const u=vue.inject(POPUP_TOGGLE_KEY,null);u&&vue.watch(u,f=>{f&&c()})}function useExpose(c){const u=vue.getCurrentInstance();u&&extend(u.proxy,c)}const routeProps={to:[String,Object],url:String,replace:Boolean};function route({to:c,url:u,replace:f,$router:h}){c&&h?h[f?"replace":"push"](c):u&&(f?location.replace(u):location.href=u)}const[name$h,bem$f]=createNamespace("badge"),badgeProps={dot:Boolean,max:numericProp,tag:makeStringProp("div"),color:String,offset:Array,content:numericProp,showZero:truthProp,position:makeStringProp("top-right")};var stdin_default$f=vue.defineComponent({name:name$h,props:badgeProps,setup(c,{slots:u}){const f=()=>{if(u.content)return!0;const{content:m,showZero:g}=c;return isDef(m)&&m!==""&&(g||m!==0&&m!=="0")},h=()=>{const{dot:m,max:g,content:y}=c;if(!m&&f())return u.content?u.content():isDef(g)&&isNumeric(y)&&+y>+g?`${g}+`:y},d=m=>m.startsWith("-")?m.replace("-",""):`-${m}`,v=vue.computed(()=>{const m={background:c.color};if(c.offset){const[g,y]=c.offset,{position:x}=c,[Pn,b]=x.split("-");u.default?(typeof y=="number"?m[Pn]=addUnit(Pn==="top"?y:-y):m[Pn]=Pn==="top"?addUnit(y):d(y),typeof g=="number"?m[b]=addUnit(b==="left"?g:-g):m[b]=b==="left"?addUnit(g):d(g)):(m.marginTop=addUnit(y),m.marginLeft=addUnit(g))}return m}),p=()=>{if(f()||c.dot)return vue.createVNode("div",{class:bem$f([c.position,{dot:c.dot,fixed:!!u.default}]),style:v.value},[h()])};return()=>{if(u.default){const{tag:m}=c;return vue.createVNode(m,{class:bem$f("wrapper")},{default:()=>[u.default(),p()]})}return p()}}});const Badge=withInstall(stdin_default$f);let globalZIndex=2e3;const useGlobalZIndex=()=>++globalZIndex,setGlobalZIndex=c=>{globalZIndex=c},[name$g,bem$e]=createNamespace("config-provider"),CONFIG_PROVIDER_KEY=Symbol(name$g),configProviderProps={tag:makeStringProp("div"),theme:makeStringProp("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:makeStringProp("local"),iconPrefix:String};function insertDash(c){return c.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function mapThemeVarsToCSSVars(c){const u={};return Object.keys(c).forEach(f=>{const h=insertDash(kebabCase(f));u[`--van-${h}`]=c[f]}),u}function syncThemeVarsOnRoot(c={},u={}){Object.keys(c).forEach(f=>{c[f]!==u[f]&&document.documentElement.style.setProperty(f,c[f])}),Object.keys(u).forEach(f=>{c[f]||document.documentElement.style.removeProperty(f)})}vue.defineComponent({name:name$g,props:configProviderProps,setup(c,{slots:u}){const f=vue.computed(()=>mapThemeVarsToCSSVars(extend({},c.themeVars,c.theme==="dark"?c.themeVarsDark:c.themeVarsLight)));if(inBrowser$1){const h=()=>{document.documentElement.classList.add(`van-theme-${c.theme}`)},d=(v=c.theme)=>{document.documentElement.classList.remove(`van-theme-${v}`)};vue.watch(()=>c.theme,(v,p)=>{p&&d(p),h()},{immediate:!0}),vue.onActivated(h),vue.onDeactivated(d),vue.onBeforeUnmount(d),vue.watch(f,(v,p)=>{c.themeVarsScope==="global"&&syncThemeVarsOnRoot(v,p)}),vue.watch(()=>c.themeVarsScope,(v,p)=>{p==="global"&&syncThemeVarsOnRoot({},f.value),v==="global"&&syncThemeVarsOnRoot(f.value,{})}),c.themeVarsScope==="global"&&syncThemeVarsOnRoot(f.value,{})}return vue.provide(CONFIG_PROVIDER_KEY,c),vue.watchEffect(()=>{c.zIndex!==void 0&&setGlobalZIndex(c.zIndex)}),()=>vue.createVNode(c.tag,{class:bem$e(),style:c.themeVarsScope==="local"?f.value:void 0},{default:()=>{var h;return[(h=u.default)==null?void 0:h.call(u)]}})}});const[name$f,bem$d]=createNamespace("icon"),isImage=c=>c==null?void 0:c.includes("/"),iconProps={dot:Boolean,tag:makeStringProp("i"),name:String,size:numericProp,badge:numericProp,color:String,badgeProps:Object,classPrefix:String};var stdin_default$e=vue.defineComponent({name:name$f,props:iconProps,setup(c,{slots:u}){const f=vue.inject(CONFIG_PROVIDER_KEY,null),h=vue.computed(()=>c.classPrefix||(f==null?void 0:f.iconPrefix)||bem$d());return()=>{const{tag:d,dot:v,name:p,size:m,badge:g,color:y}=c,x=isImage(p);return vue.createVNode(Badge,vue.mergeProps({dot:v,tag:d,class:[h.value,x?"":`${h.value}-${p}`],style:{color:y,fontSize:addUnit(m)},content:g},c.badgeProps),{default:()=>{var Pn;return[(Pn=u.default)==null?void 0:Pn.call(u),x&&vue.createVNode("img",{class:bem$d("image"),src:p},null)]}})}}});const Icon=withInstall(stdin_default$e),[name$e,bem$c]=createNamespace("loading"),SpinIcon=Array(12).fill(null).map((c,u)=>vue.createVNode("i",{class:bem$c("line",String(u+1))},null)),CircularIcon=vue.createVNode("svg",{class:bem$c("circular"),viewBox:"25 25 50 50"},[vue.createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),loadingProps={size:numericProp,type:makeStringProp("circular"),color:String,vertical:Boolean,textSize:numericProp,textColor:String};var stdin_default$d=vue.defineComponent({name:name$e,props:loadingProps,setup(c,{slots:u}){const f=vue.computed(()=>extend({color:c.color},getSizeStyle(c.size))),h=()=>{const v=c.type==="spinner"?SpinIcon:CircularIcon;return vue.createVNode("span",{class:bem$c("spinner",c.type),style:f.value},[u.icon?u.icon():v])},d=()=>{var v;if(u.default)return vue.createVNode("span",{class:bem$c("text"),style:{fontSize:addUnit(c.textSize),color:(v=c.textColor)!=null?v:c.color}},[u.default()])};return()=>{const{type:v,vertical:p}=c;return vue.createVNode("div",{class:bem$c([v,{vertical:p}]),"aria-live":"polite","aria-busy":!0},[h(),d()])}}});const Loading=withInstall(stdin_default$d),popupSharedProps={show:Boolean,zIndex:numericProp,overlay:truthProp,duration:numericProp,teleport:[String,Object],lockScroll:truthProp,lazyRender:truthProp,beforeClose:Function,overlayStyle:Object,overlayClass:unknownProp,transitionAppear:Boolean,closeOnClickOverlay:truthProp};function getDirection(c,u){return c>u?"horizontal":u>c?"vertical":""}function useTouch(){const c=vue.ref(0),u=vue.ref(0),f=vue.ref(0),h=vue.ref(0),d=vue.ref(0),v=vue.ref(0),p=vue.ref(""),m=vue.ref(!0),g=()=>p.value==="vertical",y=()=>p.value==="horizontal",x=()=>{f.value=0,h.value=0,d.value=0,v.value=0,p.value="",m.value=!0};return{move:vn=>{const _=vn.touches[0];f.value=(_.clientX<0?0:_.clientX)-c.value,h.value=_.clientY-u.value,d.value=Math.abs(f.value),v.value=Math.abs(h.value);const re=10;(!p.value||d.value<re&&v.value<re)&&(p.value=getDirection(d.value,v.value)),m.value&&(d.value>TAP_OFFSET||v.value>TAP_OFFSET)&&(m.value=!1)},start:vn=>{x(),c.value=vn.touches[0].clientX,u.value=vn.touches[0].clientY},reset:x,startX:c,startY:u,deltaX:f,deltaY:h,offsetX:d,offsetY:v,direction:p,isVertical:g,isHorizontal:y,isTap:m}}let totalLockCount=0;const BODY_LOCK_CLASS="van-overflow-hidden";function useLockScroll(c,u){const f=useTouch(),h="01",d="10",v=x=>{f.move(x);const Pn=f.deltaY.value>0?d:h,b=getScrollParent(x.target,c.value),{scrollHeight:vn,offsetHeight:_,scrollTop:re}=b;let Fn="11";re===0?Fn=_>=vn?"00":"01":re+_>=vn&&(Fn="10"),Fn!=="11"&&f.isVertical()&&!(parseInt(Fn,2)&parseInt(Pn,2))&&preventDefault(x,!0)},p=()=>{document.addEventListener("touchstart",f.start),document.addEventListener("touchmove",v,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},m=()=>{totalLockCount&&(document.removeEventListener("touchstart",f.start),document.removeEventListener("touchmove",v),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},g=()=>u()&&p(),y=()=>u()&&m();onMountedOrActivated(g),vue.onDeactivated(y),vue.onBeforeUnmount(y),vue.watch(u,x=>{x?p():m()})}function useLazyRender(c){const u=vue.ref(!1);return vue.watch(c,f=>{f&&(u.value=f)},{immediate:!0}),f=>()=>u.value?f():null}const useScopeId=()=>{var c;const{scopeId:u}=((c=vue.getCurrentInstance())==null?void 0:c.vnode)||{};return u?{[u]:""}:null},[name$d,bem$b]=createNamespace("overlay"),overlayProps={show:Boolean,zIndex:numericProp,duration:numericProp,className:unknownProp,lockScroll:truthProp,lazyRender:truthProp,customStyle:Object,teleport:[String,Object]};var stdin_default$c=vue.defineComponent({name:name$d,props:overlayProps,setup(c,{slots:u}){const f=vue.ref(),h=useLazyRender(()=>c.show||!c.lazyRender),d=p=>{c.lockScroll&&preventDefault(p,!0)},v=h(()=>{var p;const m=extend(getZIndexStyle(c.zIndex),c.customStyle);return isDef(c.duration)&&(m.animationDuration=`${c.duration}s`),vue.withDirectives(vue.createVNode("div",{ref:f,style:m,class:[bem$b(),c.className]},[(p=u.default)==null?void 0:p.call(u)]),[[vue.vShow,c.show]])});return useEventListener("touchmove",d,{target:f}),()=>{const p=vue.createVNode(vue.Transition,{name:"van-fade",appear:!0},{default:v});return c.teleport?vue.createVNode(vue.Teleport,{to:c.teleport},{default:()=>[p]}):p}}});const Overlay=withInstall(stdin_default$c),popupProps=extend({},popupSharedProps,{round:Boolean,position:makeStringProp("center"),closeIcon:makeStringProp("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:makeStringProp("top-right"),safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[name$c,bem$a]=createNamespace("popup");var stdin_default$b=vue.defineComponent({name:name$c,inheritAttrs:!1,props:popupProps,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(c,{emit:u,attrs:f,slots:h}){let d,v;const p=vue.ref(),m=vue.ref(),g=useLazyRender(()=>c.show||!c.lazyRender),y=vue.computed(()=>{const zn={zIndex:p.value};if(isDef(c.duration)){const Wn=c.position==="center"?"animationDuration":"transitionDuration";zn[Wn]=`${c.duration}s`}return zn}),x=()=>{d||(d=!0,p.value=c.zIndex!==void 0?+c.zIndex:useGlobalZIndex(),u("open"))},Pn=()=>{d&&callInterceptor(c.beforeClose,{done(){d=!1,u("close"),u("update:show",!1)}})},b=zn=>{u("clickOverlay",zn),c.closeOnClickOverlay&&Pn()},vn=()=>{if(c.overlay)return vue.createVNode(Overlay,vue.mergeProps({show:c.show,class:c.overlayClass,zIndex:p.value,duration:c.duration,customStyle:c.overlayStyle,role:c.closeOnClickOverlay?"button":void 0,tabindex:c.closeOnClickOverlay?0:void 0},useScopeId(),{onClick:b}),{default:h["overlay-content"]})},_=zn=>{u("clickCloseIcon",zn),Pn()},re=()=>{if(c.closeable)return vue.createVNode(Icon,{role:"button",tabindex:0,name:c.closeIcon,class:[bem$a("close-icon",c.closeIconPosition),HAPTICS_FEEDBACK],classPrefix:c.iconPrefix,onClick:_},null)};let Fn;const Bn=()=>{Fn&&clearTimeout(Fn),Fn=setTimeout(()=>{u("opened")})},w=()=>u("closed"),J=zn=>u("keydown",zn),gn=g(()=>{var zn;const{round:Wn,position:Un,safeAreaInsetTop:Qn,safeAreaInsetBottom:Jn}=c;return vue.withDirectives(vue.createVNode("div",vue.mergeProps({ref:m,style:y.value,role:"dialog",tabindex:0,class:[bem$a({round:Wn,[Un]:Un}),{"van-safe-area-top":Qn,"van-safe-area-bottom":Jn}],onKeydown:J},f,useScopeId()),[(zn=h.default)==null?void 0:zn.call(h),re()]),[[vue.vShow,c.show]])}),Rn=()=>{const{position:zn,transition:Wn,transitionAppear:Un}=c,Qn=zn==="center"?"van-fade":`van-popup-slide-${zn}`;return vue.createVNode(vue.Transition,{name:Wn||Qn,appear:Un,onAfterEnter:Bn,onAfterLeave:w},{default:gn})};return vue.watch(()=>c.show,zn=>{zn&&!d&&(x(),f.tabindex===0&&vue.nextTick(()=>{var Wn;(Wn=m.value)==null||Wn.focus()})),!zn&&d&&(d=!1,u("close"))}),useExpose({popupRef:m}),useLockScroll(m,()=>c.show&&c.lockScroll),useEventListener("popstate",()=>{c.closeOnPopstate&&(Pn(),v=!1)}),vue.onMounted(()=>{c.show&&x()}),vue.onActivated(()=>{v&&(u("update:show",!0),v=!1)}),vue.onDeactivated(()=>{c.show&&c.teleport&&(Pn(),v=!0)}),vue.provide(POPUP_TOGGLE_KEY,()=>c.show),()=>c.teleport?vue.createVNode(vue.Teleport,{to:c.teleport},{default:()=>[vn(),Rn()]}):vue.createVNode(vue.Fragment,null,[vn(),Rn()])}});const Popup=withInstall(stdin_default$b),[name$b,bem$9,t]=createNamespace("picker"),getFirstEnabledOption=c=>c.find(u=>!u.disabled)||c[0];function getColumnsType(c,u){const f=c[0];if(f){if(Array.isArray(f))return"multiple";if(u.children in f)return"cascade"}return"default"}function findIndexOfEnabledOption(c,u){u=clamp(u,0,c.length);for(let f=u;f<c.length;f++)if(!c[f].disabled)return f;for(let f=u-1;f>=0;f--)if(!c[f].disabled)return f;return 0}const isOptionExist=(c,u,f)=>u!==void 0&&!!c.find(h=>h[f.value]===u);function findOptionByValue(c,u,f){const h=c.findIndex(v=>v[f.value]===u),d=findIndexOfEnabledOption(c,h);return c[d]}function formatCascadeColumns(c,u,f){const h=[];let d={[u.children]:c},v=0;for(;d&&d[u.children];){const p=d[u.children],m=f.value[v];if(d=isDef(m)?findOptionByValue(p,m,u):void 0,!d&&p.length){const g=getFirstEnabledOption(p)[u.value];d=findOptionByValue(p,g,u)}v++,h.push(p)}return h}function getElementTranslateY(c){const{transform:u}=window.getComputedStyle(c),f=u.slice(7,u.length-1).split(", ")[5];return Number(f)}function assignDefaultFields(c){return extend({text:"text",value:"value",children:"children"},c)}const DEFAULT_DURATION=200,MOMENTUM_TIME=300,MOMENTUM_DISTANCE=15,[name$a,bem$8]=createNamespace("picker-column"),PICKER_KEY=Symbol(name$a);var stdin_default$a=vue.defineComponent({name:name$a,props:{value:numericProp,fields:makeRequiredProp(Object),options:makeArrayProp(),readonly:Boolean,allowHtml:Boolean,optionHeight:makeRequiredProp(Number),swipeDuration:makeRequiredProp(numericProp),visibleOptionNum:makeRequiredProp(numericProp)},emits:["change","clickOption","scrollInto"],setup(c,{emit:u,slots:f}){let h,d,v,p,m;const g=vue.ref(),y=vue.ref(),x=vue.ref(0),Pn=vue.ref(0),b=useTouch(),vn=()=>c.options.length,_=()=>c.optionHeight*(+c.visibleOptionNum-1)/2,re=Jn=>{let tr=findIndexOfEnabledOption(c.options,Jn);const Xn=-tr*c.optionHeight,ar=()=>{tr>vn()-1&&(tr=findIndexOfEnabledOption(c.options,Jn));const sr=c.options[tr][c.fields.value];sr!==c.value&&u("change",sr)};h&&Xn!==x.value?m=ar:ar(),x.value=Xn},Fn=()=>c.readonly||!c.options.length,Bn=Jn=>{h||Fn()||(m=null,Pn.value=DEFAULT_DURATION,re(Jn),u("clickOption",c.options[Jn]))},w=Jn=>clamp(Math.round(-Jn/c.optionHeight),0,vn()-1),J=vue.computed(()=>w(x.value)),gn=(Jn,tr)=>{const Xn=Math.abs(Jn/tr);Jn=x.value+Xn/.003*(Jn<0?-1:1);const ar=w(Jn);Pn.value=+c.swipeDuration,re(ar)},Rn=()=>{h=!1,Pn.value=0,m&&(m(),m=null)},zn=Jn=>{if(!Fn()){if(b.start(Jn),h){const tr=getElementTranslateY(y.value);x.value=Math.min(0,tr-_())}Pn.value=0,d=x.value,v=Date.now(),p=d,m=null}},Wn=Jn=>{if(Fn())return;b.move(Jn),b.isVertical()&&(h=!0,preventDefault(Jn,!0));const tr=clamp(d+b.deltaY.value,-(vn()*c.optionHeight),c.optionHeight),Xn=w(tr);Xn!==J.value&&u("scrollInto",c.options[Xn]),x.value=tr;const ar=Date.now();ar-v>MOMENTUM_TIME&&(v=ar,p=tr)},Un=()=>{if(Fn())return;const Jn=x.value-p,tr=Date.now()-v;if(tr<MOMENTUM_TIME&&Math.abs(Jn)>MOMENTUM_DISTANCE){gn(Jn,tr);return}const ar=w(x.value);Pn.value=DEFAULT_DURATION,re(ar),setTimeout(()=>{h=!1},0)},Qn=()=>{const Jn={height:`${c.optionHeight}px`};return c.options.map((tr,Xn)=>{const ar=tr[c.fields.text],{disabled:sr}=tr,nr=tr[c.fields.value],Hn={role:"button",style:Jn,tabindex:sr?-1:0,class:[bem$8("item",{disabled:sr,selected:nr===c.value}),tr.className],onClick:()=>Bn(Xn)},Yn={class:"van-ellipsis",[c.allowHtml?"innerHTML":"textContent"]:ar};return vue.createVNode("li",Hn,[f.option?f.option(tr,Xn):vue.createVNode("div",Yn,null)])})};return useParent(PICKER_KEY),useExpose({stopMomentum:Rn}),vue.watchEffect(()=>{const Jn=h?Math.floor(-x.value/c.optionHeight):c.options.findIndex(ar=>ar[c.fields.value]===c.value),tr=findIndexOfEnabledOption(c.options,Jn),Xn=-tr*c.optionHeight;h&&tr<Jn&&Rn(),x.value=Xn}),useEventListener("touchmove",Wn,{target:g}),()=>vue.createVNode("div",{ref:g,class:bem$8(),onTouchstartPassive:zn,onTouchend:Un,onTouchcancel:Un},[vue.createVNode("ul",{ref:y,style:{transform:`translate3d(0, ${x.value+_()}px, 0)`,transitionDuration:`${Pn.value}ms`,transitionProperty:Pn.value?"all":"none"},class:bem$8("wrapper"),onTransitionend:Rn},[Qn()])])}});const[name$9]=createNamespace("picker-toolbar"),pickerToolbarProps={title:String,cancelButtonText:String,confirmButtonText:String},pickerToolbarSlots=["cancel","confirm","title","toolbar"],pickerToolbarPropKeys=Object.keys(pickerToolbarProps);var stdin_default$9=vue.defineComponent({name:name$9,props:pickerToolbarProps,emits:["confirm","cancel"],setup(c,{emit:u,slots:f}){const h=()=>{if(f.title)return f.title();if(c.title)return vue.createVNode("div",{class:[bem$9("title"),"van-ellipsis"]},[c.title])},d=()=>u("cancel"),v=()=>u("confirm"),p=()=>{var g;const y=(g=c.cancelButtonText)!=null?g:t("cancel");if(!(!f.cancel&&!y))return vue.createVNode("button",{type:"button",class:[bem$9("cancel"),HAPTICS_FEEDBACK],onClick:d},[f.cancel?f.cancel():y])},m=()=>{var g;const y=(g=c.confirmButtonText)!=null?g:t("confirm");if(!(!f.confirm&&!y))return vue.createVNode("button",{type:"button",class:[bem$9("confirm"),HAPTICS_FEEDBACK],onClick:v},[f.confirm?f.confirm():y])};return()=>vue.createVNode("div",{class:bem$9("toolbar")},[f.toolbar?f.toolbar():[p(),h(),m()]])}});const useSyncPropRef=(c,u)=>{const f=vue.ref(c());return vue.watch(c,h=>{h!==f.value&&(f.value=h)}),vue.watch(f,h=>{h!==c()&&u(h)}),f};/**
|
|
130
|
+
*/var Matrix=function(){var c=Math.cos,u=Math.sin,f=Math.tan,h=Math.round;function d(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function v(Rn){if(Rn===0)return this;var Gn=c(Rn),Zn=u(Rn);return this._t(Gn,-Zn,0,0,Zn,Gn,0,0,0,0,1,0,0,0,0,1)}function p(Rn){if(Rn===0)return this;var Gn=c(Rn),Zn=u(Rn);return this._t(1,0,0,0,0,Gn,-Zn,0,0,Zn,Gn,0,0,0,0,1)}function m(Rn){if(Rn===0)return this;var Gn=c(Rn),Zn=u(Rn);return this._t(Gn,0,Zn,0,0,1,0,0,-Zn,0,Gn,0,0,0,0,1)}function g(Rn){if(Rn===0)return this;var Gn=c(Rn),Zn=u(Rn);return this._t(Gn,-Zn,0,0,Zn,Gn,0,0,0,0,1,0,0,0,0,1)}function y(Rn,Gn){return this._t(1,Gn,Rn,1,0,0)}function x(Rn,Gn){return this.shear(f(Rn),f(Gn))}function Bn(Rn,Gn){var Zn=c(Gn),qn=u(Gn);return this._t(Zn,qn,0,0,-qn,Zn,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,f(Rn),1,0,0,0,0,1,0,0,0,0,1)._t(Zn,-qn,0,0,qn,Zn,0,0,0,0,1,0,0,0,0,1)}function b(Rn,Gn,Zn){return!Zn&&Zn!==0&&(Zn=1),Rn===1&&Gn===1&&Zn===1?this:this._t(Rn,0,0,0,0,Gn,0,0,0,0,Zn,0,0,0,0,1)}function re(Rn,Gn,Zn,qn,nr,or,Kn,ar,lr,ur,dr,sr,fr,pr,mr,gr){return this.props[0]=Rn,this.props[1]=Gn,this.props[2]=Zn,this.props[3]=qn,this.props[4]=nr,this.props[5]=or,this.props[6]=Kn,this.props[7]=ar,this.props[8]=lr,this.props[9]=ur,this.props[10]=dr,this.props[11]=sr,this.props[12]=fr,this.props[13]=pr,this.props[14]=mr,this.props[15]=gr,this}function _(Rn,Gn,Zn){return Zn=Zn||0,Rn!==0||Gn!==0||Zn!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Rn,Gn,Zn,1):this}function vn(Rn,Gn,Zn,qn,nr,or,Kn,ar,lr,ur,dr,sr,fr,pr,mr,gr){var hr=this.props;if(Rn===1&&Gn===0&&Zn===0&&qn===0&&nr===0&&or===1&&Kn===0&&ar===0&&lr===0&&ur===0&&dr===1&&sr===0)return hr[12]=hr[12]*Rn+hr[15]*fr,hr[13]=hr[13]*or+hr[15]*pr,hr[14]=hr[14]*dr+hr[15]*mr,hr[15]*=gr,this._identityCalculated=!1,this;var vr=hr[0],yr=hr[1],xr=hr[2],Cr=hr[3],Er=hr[4],_r=hr[5],kr=hr[6],Br=hr[7],Ir=hr[8],Fr=hr[9],Nr=hr[10],Rr=hr[11],Or=hr[12],jr=hr[13],Ur=hr[14],Gr=hr[15];return hr[0]=vr*Rn+yr*nr+xr*lr+Cr*fr,hr[1]=vr*Gn+yr*or+xr*ur+Cr*pr,hr[2]=vr*Zn+yr*Kn+xr*dr+Cr*mr,hr[3]=vr*qn+yr*ar+xr*sr+Cr*gr,hr[4]=Er*Rn+_r*nr+kr*lr+Br*fr,hr[5]=Er*Gn+_r*or+kr*ur+Br*pr,hr[6]=Er*Zn+_r*Kn+kr*dr+Br*mr,hr[7]=Er*qn+_r*ar+kr*sr+Br*gr,hr[8]=Ir*Rn+Fr*nr+Nr*lr+Rr*fr,hr[9]=Ir*Gn+Fr*or+Nr*ur+Rr*pr,hr[10]=Ir*Zn+Fr*Kn+Nr*dr+Rr*mr,hr[11]=Ir*qn+Fr*ar+Nr*sr+Rr*gr,hr[12]=Or*Rn+jr*nr+Ur*lr+Gr*fr,hr[13]=Or*Gn+jr*or+Ur*ur+Gr*pr,hr[14]=Or*Zn+jr*Kn+Ur*dr+Gr*mr,hr[15]=Or*qn+jr*ar+Ur*sr+Gr*gr,this._identityCalculated=!1,this}function Fn(Rn){var Gn=Rn.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 Pn(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function w(Rn){for(var Gn=0;Gn<16;){if(Rn.props[Gn]!==this.props[Gn])return!1;Gn+=1}return!0}function J(Rn){var Gn;for(Gn=0;Gn<16;Gn+=1)Rn.props[Gn]=this.props[Gn];return Rn}function gn(Rn){var Gn;for(Gn=0;Gn<16;Gn+=1)this.props[Gn]=Rn[Gn]}function Vn(Rn,Gn,Zn){return{x:Rn*this.props[0]+Gn*this.props[4]+Zn*this.props[8]+this.props[12],y:Rn*this.props[1]+Gn*this.props[5]+Zn*this.props[9]+this.props[13],z:Rn*this.props[2]+Gn*this.props[6]+Zn*this.props[10]+this.props[14]}}function zn(Rn,Gn,Zn){return Rn*this.props[0]+Gn*this.props[4]+Zn*this.props[8]+this.props[12]}function Wn(Rn,Gn,Zn){return Rn*this.props[1]+Gn*this.props[5]+Zn*this.props[9]+this.props[13]}function Un(Rn,Gn,Zn){return Rn*this.props[2]+Gn*this.props[6]+Zn*this.props[10]+this.props[14]}function er(){var Rn=this.props[0]*this.props[5]-this.props[1]*this.props[4],Gn=this.props[5]/Rn,Zn=-this.props[1]/Rn,qn=-this.props[4]/Rn,nr=this.props[0]/Rn,or=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/Rn,Kn=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/Rn,ar=new Matrix;return ar.props[0]=Gn,ar.props[1]=Zn,ar.props[4]=qn,ar.props[5]=nr,ar.props[12]=or,ar.props[13]=Kn,ar}function Jn(Rn){var Gn=this.getInverseMatrix();return Gn.applyToPointArray(Rn[0],Rn[1],Rn[2]||0)}function tr(Rn){var Gn,Zn=Rn.length,qn=[];for(Gn=0;Gn<Zn;Gn+=1)qn[Gn]=Jn(Rn[Gn]);return qn}function Qn(Rn,Gn,Zn){var qn=createTypedArray("float32",6);if(this.isIdentity())qn[0]=Rn[0],qn[1]=Rn[1],qn[2]=Gn[0],qn[3]=Gn[1],qn[4]=Zn[0],qn[5]=Zn[1];else{var nr=this.props[0],or=this.props[1],Kn=this.props[4],ar=this.props[5],lr=this.props[12],ur=this.props[13];qn[0]=Rn[0]*nr+Rn[1]*Kn+lr,qn[1]=Rn[0]*or+Rn[1]*ar+ur,qn[2]=Gn[0]*nr+Gn[1]*Kn+lr,qn[3]=Gn[0]*or+Gn[1]*ar+ur,qn[4]=Zn[0]*nr+Zn[1]*Kn+lr,qn[5]=Zn[0]*or+Zn[1]*ar+ur}return qn}function ir(Rn,Gn,Zn){var qn;return this.isIdentity()?qn=[Rn,Gn,Zn]:qn=[Rn*this.props[0]+Gn*this.props[4]+Zn*this.props[8]+this.props[12],Rn*this.props[1]+Gn*this.props[5]+Zn*this.props[9]+this.props[13],Rn*this.props[2]+Gn*this.props[6]+Zn*this.props[10]+this.props[14]],qn}function cr(Rn,Gn){if(this.isIdentity())return Rn+","+Gn;var Zn=this.props;return Math.round((Rn*Zn[0]+Gn*Zn[4]+Zn[12])*100)/100+","+Math.round((Rn*Zn[1]+Gn*Zn[5]+Zn[13])*100)/100}function Xn(){for(var Rn=0,Gn=this.props,Zn="matrix3d(",qn=1e4;Rn<16;)Zn+=h(Gn[Rn]*qn)/qn,Zn+=Rn===15?")":",",Rn+=1;return Zn}function Hn(Rn){var Gn=1e4;return Rn<1e-6&&Rn>0||Rn>-1e-6&&Rn<0?h(Rn*Gn)/Gn:Rn}function Yn(){var Rn=this.props,Gn=Hn(Rn[0]),Zn=Hn(Rn[1]),qn=Hn(Rn[4]),nr=Hn(Rn[5]),or=Hn(Rn[12]),Kn=Hn(Rn[13]);return"matrix("+Gn+","+Zn+","+qn+","+nr+","+or+","+Kn+")"}return function(){this.reset=d,this.rotate=v,this.rotateX=p,this.rotateY=m,this.rotateZ=g,this.skew=x,this.skewFromAxis=Bn,this.shear=y,this.scale=b,this.setTransform=re,this.translate=_,this.transform=vn,this.multiply=Fn,this.applyToPoint=Vn,this.applyToX=zn,this.applyToY=Wn,this.applyToZ=Un,this.applyToPointArray=ir,this.applyToTriplePoints=Qn,this.applyToPointStringified=cr,this.toCSS=Xn,this.to2dCSS=Yn,this.clone=J,this.cloneFromProps=gn,this.equals=w,this.inversePoints=tr,this.inversePoint=Jn,this.getInverseMatrix=er,this._t=this.transform,this.isIdentity=Pn,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(f){return typeof f}:_typeof$3=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$3(c)}var lottie={};function setLocation(c){setLocationHref(c)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(c){setSubframeEnabled(c)}function setPrefix(c){setIdPrefix(c)}function loadAnimation(c){return animationManager.loadAnimation(c)}function setQuality(c){if(typeof c=="string")switch(c){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(c)&&c>1&&setDefaultCurveSegments(c)}function inBrowser(){return typeof navigator<"u"}function installPlugin(c,u){c==="expressions"&&setExpressionsPlugin(u)}function getFactory(c){switch(c){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(c){for(var u=queryString.split("&"),f=0;f<u.length;f+=1){var h=u[f].split("=");if(decodeURIComponent(h[0])==c)return decodeURIComponent(h[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(c){}var ShapeModifiers=function(){var c={},u={};c.registerModifier=f,c.getModifier=h;function f(d,v){u[d]||(u[d]=v)}function h(d,v,p){return new u[d](v,p)}return c}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(c){if(!this.closed){c.sh.container.addDynamicProperty(c.sh);var u={shape:c.sh,data:c,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(u),this.addShapeToModifier(u),this._isAnimated&&c.setAsAnimated()}},ShapeModifier.prototype.init=function(c,u){this.shapes=[],this.elem=c,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,u),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(c,u){this.s=PropertyFactory.getProp(c,u.s,0,.01,this),this.e=PropertyFactory.getProp(c,u.e,0,.01,this),this.o=PropertyFactory.getProp(c,u.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=u.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(c){c.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(c,u,f,h,d){var v=[];u<=1?v.push({s:c,e:u}):c>=1?v.push({s:c-1,e:u-1}):(v.push({s:c,e:1}),v.push({s:0,e:u-1}));var p=[],m,g=v.length,y;for(m=0;m<g;m+=1)if(y=v[m],!(y.e*d<h||y.s*d>h+f)){var x,Bn;y.s*d<=h?x=0:x=(y.s*d-h)/f,y.e*d>=h+f?Bn=1:Bn=(y.e*d-h)/f,p.push([x,Bn])}return p.length||p.push([0,0]),p},TrimModifier.prototype.releasePathsData=function(c){var u,f=c.length;for(u=0;u<f;u+=1)segmentsLengthPool.release(c[u]);return c.length=0,c},TrimModifier.prototype.processShapes=function(c){var u,f;if(this._mdf||c){var h=this.o.v%360/360;if(h<0&&(h+=1),this.s.v>1?u=1+h:this.s.v<0?u=0+h:u=this.s.v+h,this.e.v>1?f=1+h:this.e.v<0?f=0+h:f=this.e.v+h,u>f){var d=u;u=f,f=d}u=Math.round(u*1e4)*1e-4,f=Math.round(f*1e4)*1e-4,this.sValue=u,this.eValue=f}else u=this.sValue,f=this.eValue;var v,p,m=this.shapes.length,g,y,x,Bn,b,re=0;if(f===u)for(p=0;p<m;p+=1)this.shapes[p].localShapeCollection.releaseShapes(),this.shapes[p].shape._mdf=!0,this.shapes[p].shape.paths=this.shapes[p].localShapeCollection,this._mdf&&(this.shapes[p].pathsData.length=0);else if(f===1&&u===0||f===0&&u===1){if(this._mdf)for(p=0;p<m;p+=1)this.shapes[p].pathsData.length=0,this.shapes[p].shape._mdf=!0}else{var _=[],vn,Fn;for(p=0;p<m;p+=1)if(vn=this.shapes[p],!vn.shape._mdf&&!this._mdf&&!c&&this.m!==2)vn.shape.paths=vn.localShapeCollection;else{if(v=vn.shape.paths,y=v._length,b=0,!vn.shape._mdf&&vn.pathsData.length)b=vn.totalShapeLength;else{for(x=this.releasePathsData(vn.pathsData),g=0;g<y;g+=1)Bn=bez.getSegmentsLength(v.shapes[g]),x.push(Bn),b+=Bn.totalLength;vn.totalShapeLength=b,vn.pathsData=x}re+=b,vn.shape._mdf=!0}var Pn=u,w=f,J=0,gn;for(p=m-1;p>=0;p-=1)if(vn=this.shapes[p],vn.shape._mdf){for(Fn=vn.localShapeCollection,Fn.releaseShapes(),this.m===2&&m>1?(gn=this.calculateShapeEdges(u,f,vn.totalShapeLength,J,re),J+=vn.totalShapeLength):gn=[[Pn,w]],y=gn.length,g=0;g<y;g+=1){Pn=gn[g][0],w=gn[g][1],_.length=0,w<=1?_.push({s:vn.totalShapeLength*Pn,e:vn.totalShapeLength*w}):Pn>=1?_.push({s:vn.totalShapeLength*(Pn-1),e:vn.totalShapeLength*(w-1)}):(_.push({s:vn.totalShapeLength*Pn,e:vn.totalShapeLength}),_.push({s:0,e:vn.totalShapeLength*(w-1)}));var Vn=this.addShapes(vn,_[0]);if(_[0].s!==_[0].e){if(_.length>1){var zn=vn.shape.paths.shapes[vn.shape.paths._length-1];if(zn.c){var Wn=Vn.pop();this.addPaths(Vn,Fn),Vn=this.addShapes(vn,_[1],Wn)}else this.addPaths(Vn,Fn),Vn=this.addShapes(vn,_[1])}this.addPaths(Vn,Fn)}}vn.shape.paths=Fn}}},TrimModifier.prototype.addPaths=function(c,u){var f,h=c.length;for(f=0;f<h;f+=1)u.addShape(c[f])},TrimModifier.prototype.addSegment=function(c,u,f,h,d,v,p){d.setXYAt(u[0],u[1],"o",v),d.setXYAt(f[0],f[1],"i",v+1),p&&d.setXYAt(c[0],c[1],"v",v),d.setXYAt(h[0],h[1],"v",v+1)},TrimModifier.prototype.addSegmentFromArray=function(c,u,f,h){u.setXYAt(c[1],c[5],"o",f),u.setXYAt(c[2],c[6],"i",f+1),h&&u.setXYAt(c[0],c[4],"v",f),u.setXYAt(c[3],c[7],"v",f+1)},TrimModifier.prototype.addShapes=function(c,u,f){var h=c.pathsData,d=c.shape.paths.shapes,v,p=c.shape.paths._length,m,g,y=0,x,Bn,b,re,_=[],vn,Fn=!0;for(f?(Bn=f._length,vn=f._length):(f=shapePool.newElement(),Bn=0,vn=0),_.push(f),v=0;v<p;v+=1){for(b=h[v].lengths,f.c=d[v].c,g=d[v].c?b.length:b.length+1,m=1;m<g;m+=1)if(x=b[m-1],y+x.addedLength<u.s)y+=x.addedLength,f.c=!1;else if(y>u.e){f.c=!1;break}else u.s<=y&&u.e>=y+x.addedLength?(this.addSegment(d[v].v[m-1],d[v].o[m-1],d[v].i[m],d[v].v[m],f,Bn,Fn),Fn=!1):(re=bez.getNewSegment(d[v].v[m-1],d[v].v[m],d[v].o[m-1],d[v].i[m],(u.s-y)/x.addedLength,(u.e-y)/x.addedLength,b[m-1]),this.addSegmentFromArray(re,f,Bn,Fn),Fn=!1,f.c=!1),y+=x.addedLength,Bn+=1;if(d[v].c&&b.length){if(x=b[m-1],y<=u.e){var Pn=b[m-1].addedLength;u.s<=y&&u.e>=y+Pn?(this.addSegment(d[v].v[m-1],d[v].o[m-1],d[v].i[0],d[v].v[0],f,Bn,Fn),Fn=!1):(re=bez.getNewSegment(d[v].v[m-1],d[v].v[0],d[v].o[m-1],d[v].i[0],(u.s-y)/Pn,(u.e-y)/Pn,b[m-1]),this.addSegmentFromArray(re,f,Bn,Fn),Fn=!1,f.c=!1)}else f.c=!1;y+=x.addedLength,Bn+=1}if(f._length&&(f.setXYAt(f.v[vn][0],f.v[vn][1],"i",vn),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,_.push(f),Bn=0)}return _};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(c,u.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(c,u){var f=u/100,h=[0,0],d=c._length,v=0;for(v=0;v<d;v+=1)h[0]+=c.v[v][0],h[1]+=c.v[v][1];h[0]/=d,h[1]/=d;var p=shapePool.newElement();p.c=c.c;var m,g,y,x,Bn,b;for(v=0;v<d;v+=1)m=c.v[v][0]+(h[0]-c.v[v][0])*f,g=c.v[v][1]+(h[1]-c.v[v][1])*f,y=c.o[v][0]+(h[0]-c.o[v][0])*-f,x=c.o[v][1]+(h[1]-c.o[v][1])*-f,Bn=c.i[v][0]+(h[0]-c.i[v][0])*-f,b=c.i[v][1]+(h[1]-c.i[v][1])*-f,p.setTripleAt(m,g,y,x,Bn,b,v);return p},PuckerAndBloatModifier.prototype.processShapes=function(c){var u,f,h=this.shapes.length,d,v,p=this.amount.v;if(p!==0){var m,g;for(f=0;f<h;f+=1){if(m=this.shapes[f],g=m.localShapeCollection,!(!m.shape._mdf&&!this._mdf&&!c))for(g.releaseShapes(),m.shape._mdf=!0,u=m.shape.paths.shapes,v=m.shape.paths._length,d=0;d<v;d+=1)g.addShape(this.processPath(u[d],p));m.shape.paths=m.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var c=[0,0];function u(g){var y=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||y,this.a&&g.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&g.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&g.skewFromAxis(-this.sk.v,this.sa.v),this.r?g.rotate(-this.r.v):g.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?g.translate(this.px.v,this.py.v,-this.pz.v):g.translate(this.px.v,this.py.v,0):g.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function f(g){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||g){var y;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var x,Bn;if(y=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(x=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/y,0),Bn=this.p.getValueAtTime(this.p.keyframes[0].t/y,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(x=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/y,0),Bn=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/y,0)):(x=this.p.pv,Bn=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/y,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){x=[],Bn=[];var b=this.px,re=this.py;b._caching.lastFrame+b.offsetTime<=b.keyframes[0].t?(x[0]=b.getValueAtTime((b.keyframes[0].t+.01)/y,0),x[1]=re.getValueAtTime((re.keyframes[0].t+.01)/y,0),Bn[0]=b.getValueAtTime(b.keyframes[0].t/y,0),Bn[1]=re.getValueAtTime(re.keyframes[0].t/y,0)):b._caching.lastFrame+b.offsetTime>=b.keyframes[b.keyframes.length-1].t?(x[0]=b.getValueAtTime(b.keyframes[b.keyframes.length-1].t/y,0),x[1]=re.getValueAtTime(re.keyframes[re.keyframes.length-1].t/y,0),Bn[0]=b.getValueAtTime((b.keyframes[b.keyframes.length-1].t-.01)/y,0),Bn[1]=re.getValueAtTime((re.keyframes[re.keyframes.length-1].t-.01)/y,0)):(x=[b.pv,re.pv],Bn[0]=b.getValueAtTime((b._caching.lastFrame+b.offsetTime-.01)/y,b.offsetTime),Bn[1]=re.getValueAtTime((re._caching.lastFrame+re.offsetTime-.01)/y,re.offsetTime))}else Bn=c,x=Bn;this.v.rotate(-Math.atan2(x[1]-Bn[1],x[0]-Bn[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function h(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function d(){}function v(g){this._addDynamicProperty(g),this.elem.addDynamicProperty(g),this._isDirty=!0}function p(g,y,x){if(this.elem=g,this.frameId=-1,this.propType="transform",this.data=y,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(x||g),y.p&&y.p.s?(this.px=PropertyFactory.getProp(g,y.p.x,0,0,this),this.py=PropertyFactory.getProp(g,y.p.y,0,0,this),y.p.z&&(this.pz=PropertyFactory.getProp(g,y.p.z,0,0,this))):this.p=PropertyFactory.getProp(g,y.p||{k:[0,0,0]},1,0,this),y.rx){if(this.rx=PropertyFactory.getProp(g,y.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(g,y.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(g,y.rz,0,degToRads,this),y.or.k[0].ti){var Bn,b=y.or.k.length;for(Bn=0;Bn<b;Bn+=1)y.or.k[Bn].to=null,y.or.k[Bn].ti=null}this.or=PropertyFactory.getProp(g,y.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(g,y.r||{k:0},0,degToRads,this);y.sk&&(this.sk=PropertyFactory.getProp(g,y.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(g,y.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(g,y.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(g,y.s||{k:[100,100,100]},1,.01,this),y.o?this.o=PropertyFactory.getProp(g,y.o,0,.01,g):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}p.prototype={applyToMatrix:u,getValue:f,precalculateMatrix:h,autoOrient:d},extendPrototype([DynamicPropertyContainer],p),p.prototype.addDynamicProperty=v,p.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function m(g,y,x){return new p(g,y,x)}return{getTransformProperty:m}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(c,u.c,0,null,this),this.o=PropertyFactory.getProp(c,u.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(c,u.tr,this),this.so=PropertyFactory.getProp(c,u.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(c,u.tr.eo,0,.01,this),this.data=u,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(c,u,f,h,d,v){var p=v?-1:1,m=h.s.v[0]+(1-h.s.v[0])*(1-d),g=h.s.v[1]+(1-h.s.v[1])*(1-d);c.translate(h.p.v[0]*p*d,h.p.v[1]*p*d,h.p.v[2]),u.translate(-h.a.v[0],-h.a.v[1],h.a.v[2]),u.rotate(-h.r.v*p*d),u.translate(h.a.v[0],h.a.v[1],h.a.v[2]),f.translate(-h.a.v[0],-h.a.v[1],h.a.v[2]),f.scale(v?1/m:m,v?1/g:g),f.translate(h.a.v[0],h.a.v[1],h.a.v[2])},RepeaterModifier.prototype.init=function(c,u,f,h){for(this.elem=c,this.arr=u,this.pos=f,this.elemsData=h,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,u[f]);f>0;)f-=1,this._elements.unshift(u[f]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(c){var u,f=c.length;for(u=0;u<f;u+=1)c[u]._processed=!1,c[u].ty==="gr"&&this.resetElements(c[u].it)},RepeaterModifier.prototype.cloneElements=function(c){var u=JSON.parse(JSON.stringify(c));return this.resetElements(u),u},RepeaterModifier.prototype.changeGroupRender=function(c,u){var f,h=c.length;for(f=0;f<h;f+=1)c[f]._render=u,c[f].ty==="gr"&&this.changeGroupRender(c[f].it,u)},RepeaterModifier.prototype.processShapes=function(c){var u,f,h,d,v,p=!1;if(this._mdf||c){var m=Math.ceil(this.c.v);if(this._groups.length<m){for(;this._groups.length<m;){var g={it:this.cloneElements(this._elements),ty:"gr"};g.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,g),this._groups.splice(0,0,g),this._currentCopies+=1}this.elem.reloadShapes(),p=!0}v=0;var y;for(h=0;h<=this._groups.length-1;h+=1){if(y=v<m,this._groups[h]._render=y,this.changeGroupRender(this._groups[h].it,y),!y){var x=this.elemsData[h].it,Bn=x[x.length-1];Bn.transform.op.v!==0?(Bn.transform.op._mdf=!0,Bn.transform.op.v=0):Bn.transform.op._mdf=!1}v+=1}this._currentCopies=m;var b=this.o.v,re=b%1,_=b>0?Math.floor(b):Math.ceil(b),vn=this.pMatrix.props,Fn=this.rMatrix.props,Pn=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var w=0;if(b>0){for(;w<_;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;re&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,re,!1),w+=re)}else if(b<0){for(;w>_;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;re&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-re,!0),w-=re)}h=this.data.m===1?0:this._currentCopies-1,d=this.data.m===1?1:-1,v=this._currentCopies;for(var J,gn;v;){if(u=this.elemsData[h].it,f=u[u.length-1].transform.mProps.v.props,gn=f.length,u[u.length-1].transform.mProps._mdf=!0,u[u.length-1].transform.op._mdf=!0,u[u.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(h/(this._currentCopies-1)),w!==0){for((h!==0&&d===1||h!==this._currentCopies-1&&d===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(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(Pn[0],Pn[1],Pn[2],Pn[3],Pn[4],Pn[5],Pn[6],Pn[7],Pn[8],Pn[9],Pn[10],Pn[11],Pn[12],Pn[13],Pn[14],Pn[15]),this.matrix.transform(vn[0],vn[1],vn[2],vn[3],vn[4],vn[5],vn[6],vn[7],vn[8],vn[9],vn[10],vn[11],vn[12],vn[13],vn[14],vn[15]),J=0;J<gn;J+=1)f[J]=this.matrix.props[J];this.matrix.reset()}else for(this.matrix.reset(),J=0;J<gn;J+=1)f[J]=this.matrix.props[J];w+=1,v-=1,h+=d}}else for(v=this._currentCopies,h=0,d=1;v;)u=this.elemsData[h].it,f=u[u.length-1].transform.mProps.v.props,u[u.length-1].transform.mProps._mdf=!1,u[u.length-1].transform.op._mdf=!1,v-=1,h+=d;return p},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(c,u.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(c,u){var f=shapePool.newElement();f.c=c.c;var h,d=c._length,v,p,m,g,y,x,Bn=0,b,re,_,vn,Fn,Pn;for(h=0;h<d;h+=1)v=c.v[h],m=c.o[h],p=c.i[h],v[0]===m[0]&&v[1]===m[1]&&v[0]===p[0]&&v[1]===p[1]?(h===0||h===d-1)&&!c.c?(f.setTripleAt(v[0],v[1],m[0],m[1],p[0],p[1],Bn),Bn+=1):(h===0?g=c.v[d-1]:g=c.v[h-1],y=Math.sqrt(Math.pow(v[0]-g[0],2)+Math.pow(v[1]-g[1],2)),x=y?Math.min(y/2,u)/y:0,Fn=v[0]+(g[0]-v[0])*x,b=Fn,Pn=v[1]-(v[1]-g[1])*x,re=Pn,_=b-(b-v[0])*roundCorner,vn=re-(re-v[1])*roundCorner,f.setTripleAt(b,re,_,vn,Fn,Pn,Bn),Bn+=1,h===d-1?g=c.v[0]:g=c.v[h+1],y=Math.sqrt(Math.pow(v[0]-g[0],2)+Math.pow(v[1]-g[1],2)),x=y?Math.min(y/2,u)/y:0,_=v[0]+(g[0]-v[0])*x,b=_,vn=v[1]+(g[1]-v[1])*x,re=vn,Fn=b-(b-v[0])*roundCorner,Pn=re-(re-v[1])*roundCorner,f.setTripleAt(b,re,_,vn,Fn,Pn,Bn),Bn+=1):(f.setTripleAt(c.v[h][0],c.v[h][1],c.o[h][0],c.o[h][1],c.i[h][0],c.i[h][1],Bn),Bn+=1);return f},RoundCornersModifier.prototype.processShapes=function(c){var u,f,h=this.shapes.length,d,v,p=this.rd.v;if(p!==0){var m,g;for(f=0;f<h;f+=1){if(m=this.shapes[f],g=m.localShapeCollection,!(!m.shape._mdf&&!this._mdf&&!c))for(g.releaseShapes(),m.shape._mdf=!0,u=m.shape.paths.shapes,v=m.shape.paths._length,d=0;d<v;d+=1)g.addShape(this.processPath(u[d],p));m.shape.paths=m.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(c,u){return Math.abs(c-u)*1e5<=Math.min(Math.abs(c),Math.abs(u))}function floatZero(c){return Math.abs(c)<=1e-5}function lerp(c,u,f){return c*(1-f)+u*f}function lerpPoint(c,u,f){return[lerp(c[0],u[0],f),lerp(c[1],u[1],f)]}function quadRoots(c,u,f){if(c===0)return[];var h=u*u-4*c*f;if(h<0)return[];var d=-u/(2*c);if(h===0)return[d];var v=Math.sqrt(h)/(2*c);return[d-v,d+v]}function polynomialCoefficients(c,u,f,h){return[-c+3*u-3*f+h,3*c-6*u+3*f,-3*c+3*u,c]}function singlePoint(c){return new PolynomialBezier(c,c,c,c,!1)}function PolynomialBezier(c,u,f,h,d){d&&pointEqual(c,u)&&(u=lerpPoint(c,h,1/3)),d&&pointEqual(f,h)&&(f=lerpPoint(c,h,2/3));var v=polynomialCoefficients(c[0],u[0],f[0],h[0]),p=polynomialCoefficients(c[1],u[1],f[1],h[1]);this.a=[v[0],p[0]],this.b=[v[1],p[1]],this.c=[v[2],p[2]],this.d=[v[3],p[3]],this.points=[c,u,f,h]}PolynomialBezier.prototype.point=function(c){return[((this.a[0]*c+this.b[0])*c+this.c[0])*c+this.d[0],((this.a[1]*c+this.b[1])*c+this.c[1])*c+this.d[1]]},PolynomialBezier.prototype.derivative=function(c){return[(3*c*this.a[0]+2*this.b[0])*c+this.c[0],(3*c*this.a[1]+2*this.b[1])*c+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(c){var u=this.derivative(c);return Math.atan2(u[1],u[0])},PolynomialBezier.prototype.normalAngle=function(c){var u=this.derivative(c);return Math.atan2(u[0],u[1])},PolynomialBezier.prototype.inflectionPoints=function(){var c=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(c))return[];var u=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/c,f=u*u-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/c;if(f<0)return[];var h=Math.sqrt(f);return floatZero(h)?h>0&&h<1?[u]:[]:[u-h,u+h].filter(function(d){return d>0&&d<1})},PolynomialBezier.prototype.split=function(c){if(c<=0)return[singlePoint(this.points[0]),this];if(c>=1)return[this,singlePoint(this.points[this.points.length-1])];var u=lerpPoint(this.points[0],this.points[1],c),f=lerpPoint(this.points[1],this.points[2],c),h=lerpPoint(this.points[2],this.points[3],c),d=lerpPoint(u,f,c),v=lerpPoint(f,h,c),p=lerpPoint(d,v,c);return[new PolynomialBezier(this.points[0],u,d,p,!0),new PolynomialBezier(p,v,h,this.points[3],!0)]};function extrema(c,u){var f=c.points[0][u],h=c.points[c.points.length-1][u];if(f>h){var d=h;h=f,f=d}for(var v=quadRoots(3*c.a[u],2*c.b[u],c.c[u]),p=0;p<v.length;p+=1)if(v[p]>0&&v[p]<1){var m=c.point(v[p])[u];m<f?f=m:m>h&&(h=m)}return{min:f,max:h}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var c=this.bounds();return{left:c.x.min,right:c.x.max,top:c.y.min,bottom:c.y.max,width:c.x.max-c.x.min,height:c.y.max-c.y.min,cx:(c.x.max+c.x.min)/2,cy:(c.y.max+c.y.min)/2}};function intersectData(c,u,f){var h=c.boundingBox();return{cx:h.cx,cy:h.cy,width:h.width,height:h.height,bez:c,t:(u+f)/2,t1:u,t2:f}}function splitData(c){var u=c.bez.split(.5);return[intersectData(u[0],c.t1,c.t),intersectData(u[1],c.t,c.t2)]}function boxIntersect(c,u){return Math.abs(c.cx-u.cx)*2<c.width+u.width&&Math.abs(c.cy-u.cy)*2<c.height+u.height}function intersectsImpl(c,u,f,h,d,v){if(boxIntersect(c,u)){if(f>=v||c.width<=h&&c.height<=h&&u.width<=h&&u.height<=h){d.push([c.t,u.t]);return}var p=splitData(c),m=splitData(u);intersectsImpl(p[0],m[0],f+1,h,d,v),intersectsImpl(p[0],m[1],f+1,h,d,v),intersectsImpl(p[1],m[0],f+1,h,d,v),intersectsImpl(p[1],m[1],f+1,h,d,v)}}PolynomialBezier.prototype.intersections=function(c,u,f){u===void 0&&(u=2),f===void 0&&(f=7);var h=[];return intersectsImpl(intersectData(this,0,1),intersectData(c,0,1),0,u,h,f),h},PolynomialBezier.shapeSegment=function(c,u){var f=(u+1)%c.length();return new PolynomialBezier(c.v[u],c.o[u],c.i[f],c.v[f],!0)},PolynomialBezier.shapeSegmentInverted=function(c,u){var f=(u+1)%c.length();return new PolynomialBezier(c.v[f],c.i[f],c.o[u],c.v[u],!0)};function crossProduct(c,u){return[c[1]*u[2]-c[2]*u[1],c[2]*u[0]-c[0]*u[2],c[0]*u[1]-c[1]*u[0]]}function lineIntersection(c,u,f,h){var d=[c[0],c[1],1],v=[u[0],u[1],1],p=[f[0],f[1],1],m=[h[0],h[1],1],g=crossProduct(crossProduct(d,v),crossProduct(p,m));return floatZero(g[2])?null:[g[0]/g[2],g[1]/g[2]]}function polarOffset(c,u,f){return[c[0]+Math.cos(u)*f,c[1]-Math.sin(u)*f]}function pointDistance(c,u){return Math.hypot(c[0]-u[0],c[1]-u[1])}function pointEqual(c,u){return floatEqual(c[0],u[0])&&floatEqual(c[1],u[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(c,u.s,0,null,this),this.frequency=PropertyFactory.getProp(c,u.r,0,null,this),this.pointsType=PropertyFactory.getProp(c,u.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(c,u,f,h,d,v,p){var m=f-Math.PI/2,g=f+Math.PI/2,y=u[0]+Math.cos(f)*h*d,x=u[1]-Math.sin(f)*h*d;c.setTripleAt(y,x,y+Math.cos(m)*v,x-Math.sin(m)*v,y+Math.cos(g)*p,x-Math.sin(g)*p,c.length())}function getPerpendicularVector(c,u){var f=[u[0]-c[0],u[1]-c[1]],h=-Math.PI*.5,d=[Math.cos(h)*f[0]-Math.sin(h)*f[1],Math.sin(h)*f[0]+Math.cos(h)*f[1]];return d}function getProjectingAngle(c,u){var f=u===0?c.length()-1:u-1,h=(u+1)%c.length(),d=c.v[f],v=c.v[h],p=getPerpendicularVector(d,v);return Math.atan2(0,1)-Math.atan2(p[1],p[0])}function zigZagCorner(c,u,f,h,d,v,p){var m=getProjectingAngle(u,f),g=u.v[f%u._length],y=u.v[f===0?u._length-1:f-1],x=u.v[(f+1)%u._length],Bn=v===2?Math.sqrt(Math.pow(g[0]-y[0],2)+Math.pow(g[1]-y[1],2)):0,b=v===2?Math.sqrt(Math.pow(g[0]-x[0],2)+Math.pow(g[1]-x[1],2)):0;setPoint(c,u.v[f%u._length],m,p,h,b/((d+1)*2),Bn/((d+1)*2))}function zigZagSegment(c,u,f,h,d,v){for(var p=0;p<h;p+=1){var m=(p+1)/(h+1),g=d===2?Math.sqrt(Math.pow(u.points[3][0]-u.points[0][0],2)+Math.pow(u.points[3][1]-u.points[0][1],2)):0,y=u.normalAngle(m),x=u.point(m);setPoint(c,x,y,v,f,g/((h+1)*2),g/((h+1)*2)),v=-v}return v}ZigZagModifier.prototype.processPath=function(c,u,f,h){var d=c._length,v=shapePool.newElement();if(v.c=c.c,c.c||(d-=1),d===0)return v;var p=-1,m=PolynomialBezier.shapeSegment(c,0);zigZagCorner(v,c,0,u,f,h,p);for(var g=0;g<d;g+=1)p=zigZagSegment(v,m,u,f,h,-p),g===d-1&&!c.c?m=null:m=PolynomialBezier.shapeSegment(c,(g+1)%d),zigZagCorner(v,c,g+1,u,f,h,p);return v},ZigZagModifier.prototype.processShapes=function(c){var u,f,h=this.shapes.length,d,v,p=this.amplitude.v,m=Math.max(0,Math.round(this.frequency.v)),g=this.pointsType.v;if(p!==0){var y,x;for(f=0;f<h;f+=1){if(y=this.shapes[f],x=y.localShapeCollection,!(!y.shape._mdf&&!this._mdf&&!c))for(x.releaseShapes(),y.shape._mdf=!0,u=y.shape.paths.shapes,v=y.shape.paths._length,d=0;d<v;d+=1)x.addShape(this.processPath(u[d],p,m,g));y.shape.paths=y.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(c,u,f){var h=Math.atan2(u[0]-c[0],u[1]-c[1]);return[polarOffset(c,h,f),polarOffset(u,h,f)]}function offsetSegment(c,u){var f,h,d,v,p,m,g;g=linearOffset(c.points[0],c.points[1],u),f=g[0],h=g[1],g=linearOffset(c.points[1],c.points[2],u),d=g[0],v=g[1],g=linearOffset(c.points[2],c.points[3],u),p=g[0],m=g[1];var y=lineIntersection(f,h,d,v);y===null&&(y=h);var x=lineIntersection(p,m,d,v);return x===null&&(x=p),new PolynomialBezier(f,y,x,m)}function joinLines(c,u,f,h,d){var v=u.points[3],p=f.points[0];if(h===3||pointEqual(v,p))return v;if(h===2){var m=-u.tangentAngle(1),g=-f.tangentAngle(0)+Math.PI,y=lineIntersection(v,polarOffset(v,m+Math.PI/2,100),p,polarOffset(p,m+Math.PI/2,100)),x=y?pointDistance(y,v):pointDistance(v,p)/2,Bn=polarOffset(v,m,2*x*roundCorner);return c.setXYAt(Bn[0],Bn[1],"o",c.length()-1),Bn=polarOffset(p,g,2*x*roundCorner),c.setTripleAt(p[0],p[1],p[0],p[1],Bn[0],Bn[1],c.length()),p}var b=pointEqual(v,u.points[2])?u.points[0]:u.points[2],re=pointEqual(p,f.points[1])?f.points[3]:f.points[1],_=lineIntersection(b,v,p,re);return _&&pointDistance(_,v)<d?(c.setTripleAt(_[0],_[1],_[0],_[1],_[0],_[1],c.length()),_):v}function getIntersection(c,u){var f=c.intersections(u);return f.length&&floatEqual(f[0][0],1)&&f.shift(),f.length?f[0]:null}function pruneSegmentIntersection(c,u){var f=c.slice(),h=u.slice(),d=getIntersection(c[c.length-1],u[0]);return d&&(f[c.length-1]=c[c.length-1].split(d[0])[0],h[0]=u[0].split(d[1])[1]),c.length>1&&u.length>1&&(d=getIntersection(c[0],u[u.length-1]),d)?[[c[0].split(d[0])[0]],[u[u.length-1].split(d[1])[1]]]:[f,h]}function pruneIntersections(c){for(var u,f=1;f<c.length;f+=1)u=pruneSegmentIntersection(c[f-1],c[f]),c[f-1]=u[0],c[f]=u[1];return c.length>1&&(u=pruneSegmentIntersection(c[c.length-1],c[0]),c[c.length-1]=u[0],c[0]=u[1]),c}function offsetSegmentSplit(c,u){var f=c.inflectionPoints(),h,d,v,p;if(f.length===0)return[offsetSegment(c,u)];if(f.length===1||floatEqual(f[1],1))return v=c.split(f[0]),h=v[0],d=v[1],[offsetSegment(h,u),offsetSegment(d,u)];v=c.split(f[0]),h=v[0];var m=(f[1]-f[0])/(1-f[0]);return v=v[1].split(m),p=v[0],d=v[1],[offsetSegment(h,u),offsetSegment(p,u),offsetSegment(d,u)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(c,u.a,0,null,this),this.miterLimit=PropertyFactory.getProp(c,u.ml,0,null,this),this.lineJoin=u.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(c,u,f,h){var d=shapePool.newElement();d.c=c.c;var v=c.length();c.c||(v-=1);var p,m,g,y=[];for(p=0;p<v;p+=1)g=PolynomialBezier.shapeSegment(c,p),y.push(offsetSegmentSplit(g,u));if(!c.c)for(p=v-1;p>=0;p-=1)g=PolynomialBezier.shapeSegmentInverted(c,p),y.push(offsetSegmentSplit(g,u));y=pruneIntersections(y);var x=null,Bn=null;for(p=0;p<y.length;p+=1){var b=y[p];for(Bn&&(x=joinLines(d,Bn,b[0],f,h)),Bn=b[b.length-1],m=0;m<b.length;m+=1)g=b[m],x&&pointEqual(g.points[0],x)?d.setXYAt(g.points[1][0],g.points[1][1],"o",d.length()-1):d.setTripleAt(g.points[0][0],g.points[0][1],g.points[1][0],g.points[1][1],g.points[0][0],g.points[0][1],d.length()),d.setTripleAt(g.points[3][0],g.points[3][1],g.points[3][0],g.points[3][1],g.points[2][0],g.points[2][1],d.length()),x=g.points[3]}return y.length&&joinLines(d,Bn,y[0][0],f,h),d},OffsetPathModifier.prototype.processShapes=function(c){var u,f,h=this.shapes.length,d,v,p=this.amount.v,m=this.miterLimit.v,g=this.lineJoin;if(p!==0){var y,x;for(f=0;f<h;f+=1){if(y=this.shapes[f],x=y.localShapeCollection,!(!y.shape._mdf&&!this._mdf&&!c))for(x.releaseShapes(),y.shape._mdf=!0,u=y.shape.paths.shapes,v=y.shape.paths._length,d=0;d<v;d+=1)x.addShape(this.processPath(u[d],p,g,m));y.shape.paths=y.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(c){for(var u=c.fStyle?c.fStyle.split(" "):[],f="normal",h="normal",d=u.length,v,p=0;p<d;p+=1)switch(v=u[p].toLowerCase(),v){case"italic":h="italic";break;case"bold":f="700";break;case"black":f="900";break;case"medium":f="500";break;case"regular":case"normal":f="400";break;case"light":case"thin":f="200";break}return{style:h,weight:c.fWeight||f}}var FontManager=function(){var c=5e3,u={w:0,size:0,shapes:[],data:{shapes:[]}},f=[];f=f.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var h=127988,d=917631,v=917601,p=917626,m=65039,g=8205,y=127462,x=127487,Bn=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function b(Hn){var Yn=Hn.split(","),Rn,Gn=Yn.length,Zn=[];for(Rn=0;Rn<Gn;Rn+=1)Yn[Rn]!=="sans-serif"&&Yn[Rn]!=="monospace"&&Zn.push(Yn[Rn]);return Zn.join(",")}function re(Hn,Yn){var Rn=createTag("span");Rn.setAttribute("aria-hidden",!0),Rn.style.fontFamily=Yn;var Gn=createTag("span");Gn.innerText="giItT1WQy@!-/#",Rn.style.position="absolute",Rn.style.left="-10000px",Rn.style.top="-10000px",Rn.style.fontSize="300px",Rn.style.fontVariant="normal",Rn.style.fontStyle="normal",Rn.style.fontWeight="normal",Rn.style.letterSpacing="0",Rn.appendChild(Gn),document.body.appendChild(Rn);var Zn=Gn.offsetWidth;return Gn.style.fontFamily=b(Hn)+", "+Yn,{node:Gn,w:Zn,parent:Rn}}function _(){var Hn,Yn=this.fonts.length,Rn,Gn,Zn=Yn;for(Hn=0;Hn<Yn;Hn+=1)this.fonts[Hn].loaded?Zn-=1:this.fonts[Hn].fOrigin==="n"||this.fonts[Hn].origin===0?this.fonts[Hn].loaded=!0:(Rn=this.fonts[Hn].monoCase.node,Gn=this.fonts[Hn].monoCase.w,Rn.offsetWidth!==Gn?(Zn-=1,this.fonts[Hn].loaded=!0):(Rn=this.fonts[Hn].sansCase.node,Gn=this.fonts[Hn].sansCase.w,Rn.offsetWidth!==Gn&&(Zn-=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)));Zn!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function vn(Hn,Yn){var Rn=document.body&&Yn?"svg":"canvas",Gn,Zn=getFontProperties(Hn);if(Rn==="svg"){var qn=createNS("text");qn.style.fontSize="100px",qn.setAttribute("font-family",Hn.fFamily),qn.setAttribute("font-style",Zn.style),qn.setAttribute("font-weight",Zn.weight),qn.textContent="1",Hn.fClass?(qn.style.fontFamily="inherit",qn.setAttribute("class",Hn.fClass)):qn.style.fontFamily=Hn.fFamily,Yn.appendChild(qn),Gn=qn}else{var nr=new OffscreenCanvas(500,500).getContext("2d");nr.font=Zn.style+" "+Zn.weight+" 100px "+Hn.fFamily,Gn=nr}function or(Kn){return Rn==="svg"?(Gn.textContent=Kn,Gn.getComputedTextLength()):Gn.measureText(Kn).width}return{measureText:or}}function Fn(Hn,Yn){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(dr){dr.helper=vn(dr),dr.cache={}}),this.fonts=Hn.list;return}var Rn=Hn.list,Gn,Zn=Rn.length,qn=Zn;for(Gn=0;Gn<Zn;Gn+=1){var nr=!0,or,Kn;if(Rn[Gn].loaded=!1,Rn[Gn].monoCase=re(Rn[Gn].fFamily,"monospace"),Rn[Gn].sansCase=re(Rn[Gn].fFamily,"sans-serif"),!Rn[Gn].fPath)Rn[Gn].loaded=!0,qn-=1;else if(Rn[Gn].fOrigin==="p"||Rn[Gn].origin===3){if(or=document.querySelectorAll('style[f-forigin="p"][f-family="'+Rn[Gn].fFamily+'"], style[f-origin="3"][f-family="'+Rn[Gn].fFamily+'"]'),or.length>0&&(nr=!1),nr){var ar=createTag("style");ar.setAttribute("f-forigin",Rn[Gn].fOrigin),ar.setAttribute("f-origin",Rn[Gn].origin),ar.setAttribute("f-family",Rn[Gn].fFamily),ar.type="text/css",ar.innerText="@font-face {font-family: "+Rn[Gn].fFamily+"; font-style: normal; src: url('"+Rn[Gn].fPath+"');}",Yn.appendChild(ar)}}else if(Rn[Gn].fOrigin==="g"||Rn[Gn].origin===1){for(or=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Kn=0;Kn<or.length;Kn+=1)or[Kn].href.indexOf(Rn[Gn].fPath)!==-1&&(nr=!1);if(nr){var lr=createTag("link");lr.setAttribute("f-forigin",Rn[Gn].fOrigin),lr.setAttribute("f-origin",Rn[Gn].origin),lr.type="text/css",lr.rel="stylesheet",lr.href=Rn[Gn].fPath,document.body.appendChild(lr)}}else if(Rn[Gn].fOrigin==="t"||Rn[Gn].origin===2){for(or=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Kn=0;Kn<or.length;Kn+=1)Rn[Gn].fPath===or[Kn].src&&(nr=!1);if(nr){var ur=createTag("link");ur.setAttribute("f-forigin",Rn[Gn].fOrigin),ur.setAttribute("f-origin",Rn[Gn].origin),ur.setAttribute("rel","stylesheet"),ur.setAttribute("href",Rn[Gn].fPath),Yn.appendChild(ur)}}Rn[Gn].helper=vn(Rn[Gn],Yn),Rn[Gn].cache={},this.fonts.push(Rn[Gn])}qn===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Pn(Hn){if(Hn){this.chars||(this.chars=[]);var Yn,Rn=Hn.length,Gn,Zn=this.chars.length,qn;for(Yn=0;Yn<Rn;Yn+=1){for(Gn=0,qn=!1;Gn<Zn;)this.chars[Gn].style===Hn[Yn].style&&this.chars[Gn].fFamily===Hn[Yn].fFamily&&this.chars[Gn].ch===Hn[Yn].ch&&(qn=!0),Gn+=1;qn||(this.chars.push(Hn[Yn]),Zn+=1)}}}function w(Hn,Yn,Rn){for(var Gn=0,Zn=this.chars.length;Gn<Zn;){if(this.chars[Gn].ch===Hn&&this.chars[Gn].style===Yn&&this.chars[Gn].fFamily===Rn)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,Yn,Rn)),u}function J(Hn,Yn,Rn){var Gn=this.getFontByName(Yn),Zn=Hn;if(!Gn.cache[Zn]){var qn=Gn.helper;if(Hn===" "){var nr=qn.measureText("|"+Hn+"|"),or=qn.measureText("||");Gn.cache[Zn]=(nr-or)/100}else Gn.cache[Zn]=qn.measureText(Hn)/100}return Gn.cache[Zn]*Rn}function gn(Hn){for(var Yn=0,Rn=this.fonts.length;Yn<Rn;){if(this.fonts[Yn].fName===Hn)return this.fonts[Yn];Yn+=1}return this.fonts[0]}function Vn(Hn){var Yn=0,Rn=Hn.charCodeAt(0);if(Rn>=55296&&Rn<=56319){var Gn=Hn.charCodeAt(1);Gn>=56320&&Gn<=57343&&(Yn=(Rn-55296)*1024+Gn-56320+65536)}return Yn}function zn(Hn,Yn){var Rn=Hn.toString(16)+Yn.toString(16);return Bn.indexOf(Rn)!==-1}function Wn(Hn){return Hn===g}function Un(Hn){return Hn===m}function er(Hn){var Yn=Vn(Hn);return Yn>=y&&Yn<=x}function Jn(Hn){return er(Hn.substr(0,2))&&er(Hn.substr(2,2))}function tr(Hn){return f.indexOf(Hn)!==-1}function Qn(Hn,Yn){var Rn=Vn(Hn.substr(Yn,2));if(Rn!==h)return!1;var Gn=0;for(Yn+=2;Gn<5;){if(Rn=Vn(Hn.substr(Yn,2)),Rn<v||Rn>p)return!1;Gn+=1,Yn+=2}return Vn(Hn.substr(Yn,2))===d}function ir(){this.isLoaded=!0}var cr=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)};cr.isModifier=zn,cr.isZeroWidthJoiner=Wn,cr.isFlagEmoji=Jn,cr.isRegionalCode=er,cr.isCombinedCharacter=tr,cr.isRegionalFlag=Qn,cr.isVariationSelector=Un,cr.BLACK_FLAG_CODE_POINT=h;var Xn={addChars:Pn,addFonts:Fn,getCharData:w,getFontByName:gn,measureText:J,checkLoadedFonts:_,setIsLoaded:ir};return cr.prototype=Xn,cr}();function SlotManager(c){this.animationData=c}SlotManager.prototype.getProp=function(c){return this.animationData.slots&&this.animationData.slots[c.sid]?Object.assign(c,this.animationData.slots[c.sid].p):c};function slotFactory(c){return new SlotManager(c)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(u){this.renderableComponents.indexOf(u)===-1&&this.renderableComponents.push(u)},removeRenderableComponent:function(u){this.renderableComponents.indexOf(u)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(u),1)},prepareRenderableFrame:function(u){this.checkLayerLimits(u)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(u){this.data.ip-this.data.st<=u&&this.data.op-this.data.st>u?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var u,f=this.renderableComponents.length;for(u=0;u<f;u+=1)this.renderableComponents[u].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var c={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(u){return c[u]||""}}();function SliderEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function AngleEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function ColorEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,1,0,f)}function PointEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,1,0,f)}function LayerIndexEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function MaskIndexEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function CheckboxEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function NoValueEffect(){this.p={}}function EffectsManager(c,u){var f=c.ef||[];this.effectElements=[];var h,d=f.length,v;for(h=0;h<d;h+=1)v=new GroupEffect(f[h],u),this.effectElements.push(v)}function GroupEffect(c,u){this.init(c,u)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(c,u){this.data=c,this.effectElements=[],this.initDynamicPropertyContainer(u);var f,h=this.data.ef.length,d,v=this.data.ef;for(f=0;f<h;f+=1){switch(d=null,v[f].ty){case 0:d=new SliderEffect(v[f],u,this);break;case 1:d=new AngleEffect(v[f],u,this);break;case 2:d=new ColorEffect(v[f],u,this);break;case 3:d=new PointEffect(v[f],u,this);break;case 4:case 7:d=new CheckboxEffect(v[f],u,this);break;case 10:d=new LayerIndexEffect(v[f],u,this);break;case 11:d=new MaskIndexEffect(v[f],u,this);break;case 5:d=new EffectsManager(v[f],u);break;default:d=new NoValueEffect(v[f]);break}d&&this.effectElements.push(d)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var u=0,f=this.data.masksProperties.length;u<f;){if(this.data.masksProperties[u].mode!=="n"&&this.data.masksProperties[u].cl!==!1)return!0;u+=1}return!1},initExpressions:function(){var u=getExpressionInterfaces();if(u){var f=u("layer"),h=u("effects"),d=u("shape"),v=u("text"),p=u("comp");this.layerInterface=f(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var m=h.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(m),this.data.ty===0||this.data.xt?this.compInterface=p(this):this.data.ty===4?(this.layerInterface.shapeInterface=d(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=v(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var u=getBlendMode(this.data.bm),f=this.baseElement||this.layerElement;f.style["mix-blend-mode"]=u},initBaseData:function(u,f,h){this.globalData=f,this.comp=h,this.data=u,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(u,f){var h,d=this.dynamicProperties.length;for(h=0;h<d;h+=1)(f||this._isParent&&this.dynamicProperties[h].propType==="transform")&&(this.dynamicProperties[h].getValue(),this.dynamicProperties[h]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(u){this.dynamicProperties.indexOf(u)===-1&&this.dynamicProperties.push(u)}};function FootageElement(c,u,f){this.initFrame(),this.initRenderable(),this.assetData=u.getAssetData(c.refId),this.footageData=u.imageLoader.getAsset(this.assetData),this.initBaseData(c,u,f)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var c=getExpressionInterfaces();if(c){var u=c("footage");this.layerInterface=u(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(c,u,f){this.initFrame(),this.initRenderable(),this.assetData=u.getAssetData(c.refId),this.initBaseData(c,u,f),this._isPlaying=!1,this._canPlay=!1;var h=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(h),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,c.au&&c.au.lv?c.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(c){if(this.prepareRenderableFrame(c,!0),this.prepareProperties(c,!0),this.tm._placeholder)this._currentTime=c/this.data.sr;else{var u=this.tm.v;this._currentTime=u}this._volume=this.lv.v[0];var f=this._volume*this._volumeMultiplier;this._previousVolume!==f&&(this._previousVolume=f,this.audio.volume(f))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(c){this.audio.rate(c)},AudioElement.prototype.volume=function(c){this._volumeMultiplier=c,this._previousVolume=c*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(c){var u,f=this.layers.length,h;for(this.completeLayers=!0,u=f-1;u>=0;u-=1)this.elements[u]||(h=this.layers[u],h.ip-h.st<=c-this.layers[u].st&&h.op-h.st>c-this.layers[u].st&&this.buildItem(u)),this.completeLayers=this.elements[u]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(c){switch(c.ty){case 2:return this.createImage(c);case 0:return this.createComp(c);case 1:return this.createSolid(c);case 3:return this.createNull(c);case 4:return this.createShape(c);case 5:return this.createText(c);case 6:return this.createAudio(c);case 13:return this.createCamera(c);case 15:return this.createFootage(c);default:return this.createNull(c)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(c){return new AudioElement(c,this.globalData,this)},BaseRenderer.prototype.createFootage=function(c){return new FootageElement(c,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var c,u=this.layers.length;for(c=0;c<u;c+=1)this.buildItem(c);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(c){this.completeLayers=!1;var u,f=c.length,h,d=this.layers.length;for(u=0;u<f;u+=1)for(h=0;h<d;){if(this.layers[h].id===c[u].id){this.layers[h]=c[u];break}h+=1}},BaseRenderer.prototype.setProjectInterface=function(c){this.globalData.projectInterface=c},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(c,u,f){for(var h=this.elements,d=this.layers,v=0,p=d.length;v<p;)d[v].ind==u&&(!h[v]||h[v]===!0?(this.buildItem(v),this.addPendingElement(c)):(f.push(h[v]),h[v].setAsParent(),d[v].parent!==void 0?this.buildElementParenting(c,d[v].parent,f):c.setHierarchy(f))),v+=1},BaseRenderer.prototype.addPendingElement=function(c){this.pendingElements.push(c)},BaseRenderer.prototype.searchExtraCompositions=function(c){var u,f=c.length;for(u=0;u<f;u+=1)if(c[u].xt){var h=this.createComp(c[u]);h.initExpressions(),this.globalData.projectInterface.registerComposition(h)}},BaseRenderer.prototype.getElementById=function(c){var u,f=this.elements.length;for(u=0;u<f;u+=1)if(this.elements[u].data.ind===c)return this.elements[u];return null},BaseRenderer.prototype.getElementByPath=function(c){var u=c.shift(),f;if(typeof u=="number")f=this.elements[u];else{var h,d=this.elements.length;for(h=0;h<d;h+=1)if(this.elements[h].data.nm===u){f=this.elements[h];break}}return c.length===0?f:f.getElementByPath(c)},BaseRenderer.prototype.setupGlobalData=function(c,u){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(c),this.globalData.fontManager.addChars(c.chars),this.globalData.fontManager.addFonts(c.fonts,u),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=c.fr,this.globalData.nm=c.nm,this.globalData.compSize={w:c.w,h:c.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var u=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:u,localMat:u,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var u,f=this.finalTransform.mat,h=0,d=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;h<d;){if(this.hierarchy[h].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}h+=1}if(this.finalTransform._matMdf)for(u=this.finalTransform.mProp.v.props,f.cloneFromProps(u),h=0;h<d;h+=1)f.multiply(this.hierarchy[h].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var u=0,f=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;u<f;)this.localTransforms[u]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[u]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),u+=1;if(this.finalTransform._localMatMdf){var h=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(h),u=1;u<f;u+=1){var d=this.localTransforms[u].matrix;h.multiply(d)}h.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var v=this.finalTransform.localOpacity;for(u=0;u<f;u+=1)v*=this.localTransforms[u].opacity*.01;this.finalTransform.localOpacity=v}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var u=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(u.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var f=0,h=u.length;for(f=0;f<h;f+=1)this.localTransforms.push(u[f])}}},globalToLocal:function(u){var f=[];f.push(this.finalTransform);for(var h=!0,d=this.comp;h;)d.finalTransform?(d.data.hasMask&&f.splice(0,0,d.finalTransform),d=d.comp):h=!1;var v,p=f.length,m;for(v=0;v<p;v+=1)m=f[v].mat.applyToPointArray(0,0,0),u=[u[0]-m[0],u[1]-m[1],0];return u},mHelper:new Matrix};function MaskElement(c,u,f){this.data=c,this.element=u,this.globalData=f,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var h=this.globalData.defs,d,v=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(v),this.solidPath="";var p,m=this.masksProperties,g=0,y=[],x,Bn,b=createElementID(),re,_,vn,Fn,Pn="clipPath",w="clip-path";for(d=0;d<v;d+=1)if((m[d].mode!=="a"&&m[d].mode!=="n"||m[d].inv||m[d].o.k!==100||m[d].o.x)&&(Pn="mask",w="mask"),(m[d].mode==="s"||m[d].mode==="i")&&g===0?(re=createNS("rect"),re.setAttribute("fill","#ffffff"),re.setAttribute("width",this.element.comp.data.w||0),re.setAttribute("height",this.element.comp.data.h||0),y.push(re)):re=null,p=createNS("path"),m[d].mode==="n")this.viewData[d]={op:PropertyFactory.getProp(this.element,m[d].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,m[d],3),elem:p,lastPath:""},h.appendChild(p);else{g+=1,p.setAttribute("fill",m[d].mode==="s"?"#000000":"#ffffff"),p.setAttribute("clip-rule","nonzero");var J;if(m[d].x.k!==0?(Pn="mask",w="mask",Fn=PropertyFactory.getProp(this.element,m[d].x,0,null,this.element),J=createElementID(),_=createNS("filter"),_.setAttribute("id",J),vn=createNS("feMorphology"),vn.setAttribute("operator","erode"),vn.setAttribute("in","SourceGraphic"),vn.setAttribute("radius","0"),_.appendChild(vn),h.appendChild(_),p.setAttribute("stroke",m[d].mode==="s"?"#000000":"#ffffff")):(vn=null,Fn=null),this.storedData[d]={elem:p,x:Fn,expan:vn,lastPath:"",lastOperator:"",filterId:J,lastRadius:0},m[d].mode==="i"){Bn=y.length;var gn=createNS("g");for(x=0;x<Bn;x+=1)gn.appendChild(y[x]);var Vn=createNS("mask");Vn.setAttribute("mask-type","alpha"),Vn.setAttribute("id",b+"_"+g),Vn.appendChild(p),h.appendChild(Vn),gn.setAttribute("mask","url("+getLocationHref()+"#"+b+"_"+g+")"),y.length=0,y.push(gn)}else y.push(p);m[d].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[d]={elem:p,lastPath:"",op:PropertyFactory.getProp(this.element,m[d].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,m[d],3),invRect:re},this.viewData[d].prop.k||this.drawPath(m[d],this.viewData[d].prop.v,this.viewData[d])}for(this.maskElement=createNS(Pn),v=y.length,d=0;d<v;d+=1)this.maskElement.appendChild(y[d]);g>0&&(this.maskElement.setAttribute("id",b),this.element.maskedElement.setAttribute(w,"url("+getLocationHref()+"#"+b+")"),h.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(c){return this.viewData[c].prop},MaskElement.prototype.renderFrame=function(c){var u=this.element.finalTransform.mat,f,h=this.masksProperties.length;for(f=0;f<h;f+=1)if((this.viewData[f].prop._mdf||c)&&this.drawPath(this.masksProperties[f],this.viewData[f].prop.v,this.viewData[f]),(this.viewData[f].op._mdf||c)&&this.viewData[f].elem.setAttribute("fill-opacity",this.viewData[f].op.v),this.masksProperties[f].mode!=="n"&&(this.viewData[f].invRect&&(this.element.finalTransform.mProp._mdf||c)&&this.viewData[f].invRect.setAttribute("transform",u.getInverseMatrix().to2dCSS()),this.storedData[f].x&&(this.storedData[f].x._mdf||c))){var d=this.storedData[f].expan;this.storedData[f].x.v<0?(this.storedData[f].lastOperator!=="erode"&&(this.storedData[f].lastOperator="erode",this.storedData[f].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[f].filterId+")")),d.setAttribute("radius",-this.storedData[f].x.v)):(this.storedData[f].lastOperator!=="dilate"&&(this.storedData[f].lastOperator="dilate",this.storedData[f].elem.setAttribute("filter",null)),this.storedData[f].elem.setAttribute("stroke-width",this.storedData[f].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var c="M0,0 ";return c+=" h"+this.globalData.compSize.w,c+=" v"+this.globalData.compSize.h,c+=" h-"+this.globalData.compSize.w,c+=" v-"+this.globalData.compSize.h+" ",c},MaskElement.prototype.drawPath=function(c,u,f){var h=" M"+u.v[0][0]+","+u.v[0][1],d,v;for(v=u._length,d=1;d<v;d+=1)h+=" C"+u.o[d-1][0]+","+u.o[d-1][1]+" "+u.i[d][0]+","+u.i[d][1]+" "+u.v[d][0]+","+u.v[d][1];if(u.c&&v>1&&(h+=" C"+u.o[d-1][0]+","+u.o[d-1][1]+" "+u.i[0][0]+","+u.i[0][1]+" "+u.v[0][0]+","+u.v[0][1]),f.lastPath!==h){var p="";f.elem&&(u.c&&(p=c.inv?this.solidPath+h:h),f.elem.setAttribute("d",p)),f.lastPath=h}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var c={};c.createFilter=u,c.createAlphaToLuminanceFilter=f;function u(h,d){var v=createNS("filter");return v.setAttribute("id",h),d!==!0&&(v.setAttribute("filterUnits","objectBoundingBox"),v.setAttribute("x","0%"),v.setAttribute("y","0%"),v.setAttribute("width","100%"),v.setAttribute("height","100%")),v}function f(){var h=createNS("feColorMatrix");return h.setAttribute("type","matrix"),h.setAttribute("color-interpolation-filters","sRGB"),h.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),h}return c}(),featureSupport=function(){var c={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(c.maskType=!1),/firefox/i.test(navigator.userAgent)&&(c.svgLumaHidden=!1),c}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(c){var u,f="SourceGraphic",h=c.data.ef?c.data.ef.length:0,d=createElementID(),v=filtersFactory.createFilter(d,!0),p=0;this.filters=[];var m;for(u=0;u<h;u+=1){m=null;var g=c.data.ef[u].ty;if(registeredEffects$1[g]){var y=registeredEffects$1[g].effect;m=new y(v,c.effectsManager.effectElements[u],c,idPrefix+p,f),f=idPrefix+p,registeredEffects$1[g].countsAsEffect&&(p+=1)}m&&this.filters.push(m)}p&&(c.globalData.defs.appendChild(v),c.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+d+")")),this.filters.length&&c.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(c){var u,f=this.filters.length;for(u=0;u<f;u+=1)this.filters[u].renderFrame(c)},SVGEffects.prototype.getEffects=function(c){var u,f=this.filters.length,h=[];for(u=0;u<f;u+=1)this.filters[u].type===c&&h.push(this.filters[u]);return h};function registerEffect$1(c,u,f){registeredEffects$1[c]={effect:u,countsAsEffect:f}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var u=null;if(this.data.td){this.matteMasks={};var f=createNS("g");f.setAttribute("id",this.layerId),f.appendChild(this.layerElement),u=f,this.globalData.defs.appendChild(f)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),u=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var h=createNS("clipPath"),d=createNS("path");d.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var v=createElementID();if(h.setAttribute("id",v),h.appendChild(d),this.globalData.defs.appendChild(h),this.checkMasks()){var p=createNS("g");p.setAttribute("clip-path","url("+getLocationHref()+"#"+v+")"),p.appendChild(this.layerElement),this.transformedElement=p,u?u.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+v+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(u){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[u]){var f=this.layerId+"_"+u,h,d,v,p;if(u===1||u===3){var m=createNS("mask");m.setAttribute("id",f),m.setAttribute("mask-type",u===3?"luminance":"alpha"),v=createNS("use"),v.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),m.appendChild(v),this.globalData.defs.appendChild(m),!featureSupport.maskType&&u===1&&(m.setAttribute("mask-type","luminance"),h=createElementID(),d=filtersFactory.createFilter(h),this.globalData.defs.appendChild(d),d.appendChild(filtersFactory.createAlphaToLuminanceFilter()),p=createNS("g"),p.appendChild(v),m.appendChild(p),p.setAttribute("filter","url("+getLocationHref()+"#"+h+")"))}else if(u===2){var g=createNS("mask");g.setAttribute("id",f),g.setAttribute("mask-type","alpha");var y=createNS("g");g.appendChild(y),h=createElementID(),d=filtersFactory.createFilter(h);var x=createNS("feComponentTransfer");x.setAttribute("in","SourceGraphic"),d.appendChild(x);var Bn=createNS("feFuncA");Bn.setAttribute("type","table"),Bn.setAttribute("tableValues","1.0 0.0"),x.appendChild(Bn),this.globalData.defs.appendChild(d);var b=createNS("rect");b.setAttribute("width",this.comp.data.w),b.setAttribute("height",this.comp.data.h),b.setAttribute("x","0"),b.setAttribute("y","0"),b.setAttribute("fill","#ffffff"),b.setAttribute("opacity","0"),y.setAttribute("filter","url("+getLocationHref()+"#"+h+")"),y.appendChild(b),v=createNS("use"),v.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),y.appendChild(v),featureSupport.maskType||(g.setAttribute("mask-type","luminance"),d.appendChild(filtersFactory.createAlphaToLuminanceFilter()),p=createNS("g"),y.appendChild(b),p.appendChild(this.layerElement),y.appendChild(p)),this.globalData.defs.appendChild(g)}this.matteMasks[u]=f}return this.matteMasks[u]},setMatte:function(u){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+u+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(u){this.hierarchy=u},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var c={initElement:function(f,h,d){this.initFrame(),this.initBaseData(f,h,d),this.initTransform(f,h,d),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var f=this.baseElement||this.layerElement;f.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var f=this.baseElement||this.layerElement;f.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(f){this._mdf=!1,this.prepareRenderableFrame(f),this.prepareProperties(f,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(c)],RenderableDOMElement)})();function IImageElement(c,u,f){this.assetData=u.getAssetData(c.refId),this.assetData&&this.assetData.sid&&(this.assetData=u.slotManager.getProp(this.assetData)),this.initElement(c,u,f),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",c),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(c,u){this.elem=c,this.pos=u}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(u){var f,h=this.shapeModifiers.length;for(f=0;f<h;f+=1)this.shapeModifiers[f].addShape(u)},isShapeInAnimatedModifiers:function(u){for(var f=0,h=this.shapeModifiers.length;f<h;)if(this.shapeModifiers[f].isAnimatedWithShape(u))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var u,f=this.shapes.length;for(u=0;u<f;u+=1)this.shapes[u].sh.reset();f=this.shapeModifiers.length;var h;for(u=f-1;u>=0&&(h=this.shapeModifiers[u].processShapes(this._isFirstFrame),!h);u-=1);}},searchProcessedElement:function(u){for(var f=this.processedElements,h=0,d=f.length;h<d;){if(f[h].elem===u)return f[h].pos;h+=1}return 0},addProcessedElement:function(u,f){for(var h=this.processedElements,d=h.length;d;)if(d-=1,h[d].elem===u){h[d].pos=f;return}h.push(new ProcessedElement(u,f))},prepareFrame:function(u){this.prepareRenderableFrame(u),this.prepareProperties(u,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(c,u,f){this.caches=[],this.styles=[],this.transformers=c,this.lStr="",this.sh=f,this.lvl=u,this._isAnimated=!!f.k;for(var h=0,d=c.length;h<d;){if(c[h].mProps.dynamicProperties.length){this._isAnimated=!0;break}h+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(c,u){this.data=c,this.type=c.ty,this.d="",this.lvl=u,this._mdf=!1,this.closed=c.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(c,u,f,h){this.elem=c,this.frameId=-1,this.dataProps=createSizedArray(u.length),this.renderer=f,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",u.length?u.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(h);var d,v=u.length||0,p;for(d=0;d<v;d+=1)p=PropertyFactory.getProp(c,u[d].v,0,0,this),this.k=p.k||this.k,this.dataProps[d]={n:u[d].n,p};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(c){if(!(this.elem.globalData.frameId===this.frameId&&!c)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||c,this._mdf)){var u=0,f=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),u=0;u<f;u+=1)this.dataProps[u].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[u].p.v:this.dashArray[u]=this.dataProps[u].p.v:this.dashoffset[0]=this.dataProps[u].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(c,u.o,0,.01,this),this.w=PropertyFactory.getProp(c,u.w,0,null,this),this.d=new DashProperty(c,u.d||{},"svg",this),this.c=PropertyFactory.getProp(c,u.c,1,255,this),this.style=f,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(c,u.o,0,.01,this),this.c=PropertyFactory.getProp(c,u.c,1,255,this),this.style=f}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.style=f}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(c,u,f){this.data=u,this.c=createTypedArray("uint8c",u.p*4);var h=u.k.k[0].s?u.k.k[0].s.length-u.p*4:u.k.k.length-u.p*4;this.o=createTypedArray("float32",h),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=h,this.initDynamicPropertyContainer(f),this.prop=PropertyFactory.getProp(c,u.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(c,u){for(var f=0,h=this.o.length/2,d;f<h;){if(d=Math.abs(c[f*4]-c[u*4+f*2]),d>.01)return!1;f+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var c=0,u=this.data.k.k.length;c<u;){if(!this.comparePoints(this.data.k.k[c].s,this.data.p))return!1;c+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(c){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||c){var u,f=this.data.p*4,h,d;for(u=0;u<f;u+=1)h=u%4===0?100:255,d=Math.round(this.prop.v[u]*h),this.c[u]!==d&&(this.c[u]=d,this._cmdf=!c);if(this.o.length)for(f=this.prop.v.length,u=this.data.p*4;u<f;u+=1)h=u%2===0?100:1,d=u%2===0?Math.round(this.prop.v[u]*100):this.prop.v[u],this.o[u-this.data.p*4]!==d&&(this.o[u-this.data.p*4]=d,this._omdf=!c);this._mdf=!c}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.initGradientData(c,u,f)}SVGGradientFillStyleData.prototype.initGradientData=function(c,u,f){this.o=PropertyFactory.getProp(c,u.o,0,.01,this),this.s=PropertyFactory.getProp(c,u.s,1,null,this),this.e=PropertyFactory.getProp(c,u.e,1,null,this),this.h=PropertyFactory.getProp(c,u.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(c,u.a||{k:0},0,degToRads,this),this.g=new GradientProperty(c,u.g,this),this.style=f,this.stops=[],this.setGradientData(f.pElem,u),this.setGradientOpacity(u,f),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(c,u){var f=createElementID(),h=createNS(u.t===1?"linearGradient":"radialGradient");h.setAttribute("id",f),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse");var d=[],v,p,m;for(m=u.g.p*4,p=0;p<m;p+=4)v=createNS("stop"),h.appendChild(v),d.push(v);c.setAttribute(u.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+f+")"),this.gf=h,this.cst=d},SVGGradientFillStyleData.prototype.setGradientOpacity=function(c,u){if(this.g._hasOpacity&&!this.g._collapsable){var f,h,d,v=createNS("mask"),p=createNS("path");v.appendChild(p);var m=createElementID(),g=createElementID();v.setAttribute("id",g);var y=createNS(c.t===1?"linearGradient":"radialGradient");y.setAttribute("id",m),y.setAttribute("spreadMethod","pad"),y.setAttribute("gradientUnits","userSpaceOnUse"),d=c.g.k.k[0].s?c.g.k.k[0].s.length:c.g.k.k.length;var x=this.stops;for(h=c.g.p*4;h<d;h+=2)f=createNS("stop"),f.setAttribute("stop-color","rgb(255,255,255)"),y.appendChild(f),x.push(f);p.setAttribute(c.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+m+")"),c.ty==="gs"&&(p.setAttribute("stroke-linecap",lineCapEnum[c.lc||2]),p.setAttribute("stroke-linejoin",lineJoinEnum[c.lj||2]),c.lj===1&&p.setAttribute("stroke-miterlimit",c.ml)),this.of=y,this.ms=v,this.ost=x,this.maskId=g,u.msElem=p}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(c,u.w,0,null,this),this.d=new DashProperty(c,u.d||{},"svg",this),this.initGradientData(c,u,f),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(c,u,f){this.transform={mProps:c,op:u,container:f},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(u,f,h,d){if(f===0)return"";var v=u.o,p=u.i,m=u.v,g,y=" M"+d.applyToPointStringified(m[0][0],m[0][1]);for(g=1;g<f;g+=1)y+=" C"+d.applyToPointStringified(v[g-1][0],v[g-1][1])+" "+d.applyToPointStringified(p[g][0],p[g][1])+" "+d.applyToPointStringified(m[g][0],m[g][1]);return h&&f&&(y+=" C"+d.applyToPointStringified(v[g-1][0],v[g-1][1])+" "+d.applyToPointStringified(p[0][0],p[0][1])+" "+d.applyToPointStringified(m[0][0],m[0][1]),y+="z"),y},SVGElementsRenderer=function(){var c=new Matrix,u=new Matrix,f={createRenderFunction:h};function h(Bn){switch(Bn.ty){case"fl":return m;case"gf":return y;case"gs":return g;case"st":return x;case"sh":case"el":case"rc":case"sr":return p;case"tr":return d;case"no":return v;default:return null}}function d(Bn,b,re){(re||b.transform.op._mdf)&&b.transform.container.setAttribute("opacity",b.transform.op.v),(re||b.transform.mProps._mdf)&&b.transform.container.setAttribute("transform",b.transform.mProps.v.to2dCSS())}function v(){}function p(Bn,b,re){var _,vn,Fn,Pn,w,J,gn=b.styles.length,Vn=b.lvl,zn,Wn,Un,er;for(J=0;J<gn;J+=1){if(Pn=b.sh._mdf||re,b.styles[J].lvl<Vn){for(Wn=u.reset(),Un=Vn-b.styles[J].lvl,er=b.transformers.length-1;!Pn&&Un>0;)Pn=b.transformers[er].mProps._mdf||Pn,Un-=1,er-=1;if(Pn)for(Un=Vn-b.styles[J].lvl,er=b.transformers.length-1;Un>0;)Wn.multiply(b.transformers[er].mProps.v),Un-=1,er-=1}else Wn=c;if(zn=b.sh.paths,vn=zn._length,Pn){for(Fn="",_=0;_<vn;_+=1)w=zn.shapes[_],w&&w._length&&(Fn+=buildShapeString(w,w._length,w.c,Wn));b.caches[J]=Fn}else Fn=b.caches[J];b.styles[J].d+=Bn.hd===!0?"":Fn,b.styles[J]._mdf=Pn||b.styles[J]._mdf}}function m(Bn,b,re){var _=b.style;(b.c._mdf||re)&&_.pElem.setAttribute("fill","rgb("+bmFloor(b.c.v[0])+","+bmFloor(b.c.v[1])+","+bmFloor(b.c.v[2])+")"),(b.o._mdf||re)&&_.pElem.setAttribute("fill-opacity",b.o.v)}function g(Bn,b,re){y(Bn,b,re),x(Bn,b,re)}function y(Bn,b,re){var _=b.gf,vn=b.g._hasOpacity,Fn=b.s.v,Pn=b.e.v;if(b.o._mdf||re){var w=Bn.ty==="gf"?"fill-opacity":"stroke-opacity";b.style.pElem.setAttribute(w,b.o.v)}if(b.s._mdf||re){var J=Bn.t===1?"x1":"cx",gn=J==="x1"?"y1":"cy";_.setAttribute(J,Fn[0]),_.setAttribute(gn,Fn[1]),vn&&!b.g._collapsable&&(b.of.setAttribute(J,Fn[0]),b.of.setAttribute(gn,Fn[1]))}var Vn,zn,Wn,Un;if(b.g._cmdf||re){Vn=b.cst;var er=b.g.c;for(Wn=Vn.length,zn=0;zn<Wn;zn+=1)Un=Vn[zn],Un.setAttribute("offset",er[zn*4]+"%"),Un.setAttribute("stop-color","rgb("+er[zn*4+1]+","+er[zn*4+2]+","+er[zn*4+3]+")")}if(vn&&(b.g._omdf||re)){var Jn=b.g.o;for(b.g._collapsable?Vn=b.cst:Vn=b.ost,Wn=Vn.length,zn=0;zn<Wn;zn+=1)Un=Vn[zn],b.g._collapsable||Un.setAttribute("offset",Jn[zn*2]+"%"),Un.setAttribute("stop-opacity",Jn[zn*2+1])}if(Bn.t===1)(b.e._mdf||re)&&(_.setAttribute("x2",Pn[0]),_.setAttribute("y2",Pn[1]),vn&&!b.g._collapsable&&(b.of.setAttribute("x2",Pn[0]),b.of.setAttribute("y2",Pn[1])));else{var tr;if((b.s._mdf||b.e._mdf||re)&&(tr=Math.sqrt(Math.pow(Fn[0]-Pn[0],2)+Math.pow(Fn[1]-Pn[1],2)),_.setAttribute("r",tr),vn&&!b.g._collapsable&&b.of.setAttribute("r",tr)),b.e._mdf||b.h._mdf||b.a._mdf||re){tr||(tr=Math.sqrt(Math.pow(Fn[0]-Pn[0],2)+Math.pow(Fn[1]-Pn[1],2)));var Qn=Math.atan2(Pn[1]-Fn[1],Pn[0]-Fn[0]),ir=b.h.v;ir>=1?ir=.99:ir<=-1&&(ir=-.99);var cr=tr*ir,Xn=Math.cos(Qn+b.a.v)*cr+Fn[0],Hn=Math.sin(Qn+b.a.v)*cr+Fn[1];_.setAttribute("fx",Xn),_.setAttribute("fy",Hn),vn&&!b.g._collapsable&&(b.of.setAttribute("fx",Xn),b.of.setAttribute("fy",Hn))}}}function x(Bn,b,re){var _=b.style,vn=b.d;vn&&(vn._mdf||re)&&vn.dashStr&&(_.pElem.setAttribute("stroke-dasharray",vn.dashStr),_.pElem.setAttribute("stroke-dashoffset",vn.dashoffset[0])),b.c&&(b.c._mdf||re)&&_.pElem.setAttribute("stroke","rgb("+bmFloor(b.c.v[0])+","+bmFloor(b.c.v[1])+","+bmFloor(b.c.v[2])+")"),(b.o._mdf||re)&&_.pElem.setAttribute("stroke-opacity",b.o.v),(b.w._mdf||re)&&(_.pElem.setAttribute("stroke-width",b.w.v),_.msElem&&_.msElem.setAttribute("stroke-width",b.w.v))}return f}();function SVGShapeElement(c,u,f){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(c,u,f),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var c,u=this.shapes.length,f,h,d=this.stylesList.length,v,p=[],m=!1;for(h=0;h<d;h+=1){for(v=this.stylesList[h],m=!1,p.length=0,c=0;c<u;c+=1)f=this.shapes[c],f.styles.indexOf(v)!==-1&&(p.push(f),m=f._isAnimated||m);p.length>1&&m&&this.setShapesAsAnimated(p)}},SVGShapeElement.prototype.setShapesAsAnimated=function(c){var u,f=c.length;for(u=0;u<f;u+=1)c[u].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(c,u){var f,h=new SVGStyleData(c,u),d=h.pElem;if(c.ty==="st")f=new SVGStrokeStyleData(this,c,h);else if(c.ty==="fl")f=new SVGFillStyleData(this,c,h);else if(c.ty==="gf"||c.ty==="gs"){var v=c.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;f=new v(this,c,h),this.globalData.defs.appendChild(f.gf),f.maskId&&(this.globalData.defs.appendChild(f.ms),this.globalData.defs.appendChild(f.of),d.setAttribute("mask","url("+getLocationHref()+"#"+f.maskId+")"))}else c.ty==="no"&&(f=new SVGNoStyleData(this,c,h));return(c.ty==="st"||c.ty==="gs")&&(d.setAttribute("stroke-linecap",lineCapEnum[c.lc||2]),d.setAttribute("stroke-linejoin",lineJoinEnum[c.lj||2]),d.setAttribute("fill-opacity","0"),c.lj===1&&d.setAttribute("stroke-miterlimit",c.ml)),c.r===2&&d.setAttribute("fill-rule","evenodd"),c.ln&&d.setAttribute("id",c.ln),c.cl&&d.setAttribute("class",c.cl),c.bm&&(d.style["mix-blend-mode"]=getBlendMode(c.bm)),this.stylesList.push(h),this.addToAnimatedContents(c,f),f},SVGShapeElement.prototype.createGroupElement=function(c){var u=new ShapeGroupData;return c.ln&&u.gr.setAttribute("id",c.ln),c.cl&&u.gr.setAttribute("class",c.cl),c.bm&&(u.gr.style["mix-blend-mode"]=getBlendMode(c.bm)),u},SVGShapeElement.prototype.createTransformElement=function(c,u){var f=TransformPropertyFactory.getTransformProperty(this,c,this),h=new SVGTransformData(f,f.o,u);return this.addToAnimatedContents(c,h),h},SVGShapeElement.prototype.createShapeElement=function(c,u,f){var h=4;c.ty==="rc"?h=5:c.ty==="el"?h=6:c.ty==="sr"&&(h=7);var d=ShapePropertyFactory.getShapeProp(this,c,h,this),v=new SVGShapeData(u,f,d);return this.shapes.push(v),this.addShapeToModifiers(v),this.addToAnimatedContents(c,v),v},SVGShapeElement.prototype.addToAnimatedContents=function(c,u){for(var f=0,h=this.animatedContents.length;f<h;){if(this.animatedContents[f].element===u)return;f+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(c),element:u,data:c})},SVGShapeElement.prototype.setElementStyles=function(c){var u=c.styles,f,h=this.stylesList.length;for(f=0;f<h;f+=1)this.stylesList[f].closed||u.push(this.stylesList[f])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var c,u=this.itemsData.length;for(c=0;c<u;c+=1)this.prevViewData[c]=this.itemsData[c];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),u=this.dynamicProperties.length,c=0;c<u;c+=1)this.dynamicProperties[c].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(c,u,f,h,d,v,p){var m=[].concat(v),g,y=c.length-1,x,Bn,b=[],re=[],_,vn,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],d),c[g]._render&&u[g].style.pElem.parentNode!==h&&h.appendChild(u[g].style.pElem),b.push(u[g].style);else if(c[g].ty==="gr"){if(!Fn)u[g]=this.createGroupElement(c[g]);else for(Bn=u[g].it.length,x=0;x<Bn;x+=1)u[g].prevViewData[x]=u[g].it[x];this.searchShapes(c[g].it,u[g].it,u[g].prevViewData,u[g].gr,d+1,m,p),c[g]._render&&u[g].gr.parentNode!==h&&h.appendChild(u[g].gr)}else c[g].ty==="tr"?(Fn||(u[g]=this.createTransformElement(c[g],h)),_=u[g].transform,m.push(_)):c[g].ty==="sh"||c[g].ty==="rc"||c[g].ty==="el"||c[g].ty==="sr"?(Fn||(u[g]=this.createShapeElement(c[g],m,d)),this.setElementStyles(u[g])):c[g].ty==="tm"||c[g].ty==="rd"||c[g].ty==="ms"||c[g].ty==="pb"||c[g].ty==="zz"||c[g].ty==="op"?(Fn?(vn=u[g],vn.closed=!1):(vn=ShapeModifiers.getModifier(c[g].ty),vn.init(this,c[g]),u[g]=vn,this.shapeModifiers.push(vn)),re.push(vn)):c[g].ty==="rp"&&(Fn?(vn=u[g],vn.closed=!0):(vn=ShapeModifiers.getModifier(c[g].ty),u[g]=vn,vn.init(this,c,g,u),this.shapeModifiers.push(vn),p=!1),re.push(vn));this.addProcessedElement(c[g],g+1)}for(y=b.length,g=0;g<y;g+=1)b[g].closed=!0;for(y=re.length,g=0;g<y;g+=1)re[g].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var c,u=this.stylesList.length;for(c=0;c<u;c+=1)this.stylesList[c].reset();for(this.renderShape(),c=0;c<u;c+=1)(this.stylesList[c]._mdf||this._isFirstFrame)&&(this.stylesList[c].msElem&&(this.stylesList[c].msElem.setAttribute("d",this.stylesList[c].d),this.stylesList[c].d="M0 0"+this.stylesList[c].d),this.stylesList[c].pElem.setAttribute("d",this.stylesList[c].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var c,u=this.animatedContents.length,f;for(c=0;c<u;c+=1)f=this.animatedContents[c],(this._isFirstFrame||f.element._isAnimated)&&f.data!==!0&&f.fn(f.data,f.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(c,u,f,h,d,v){this.o=c,this.sw=u,this.sc=f,this.fc=h,this.m=d,this.p=v,this._mdf={o:!0,sw:!!u,sc:!!f,fc:!!h,m:!0,p:!0}}LetterProps.prototype.update=function(c,u,f,h,d,v){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var p=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,p=!0),this.sw!==u&&(this.sw=u,this._mdf.sw=!0,p=!0),this.sc!==f&&(this.sc=f,this._mdf.sc=!0,p=!0),this.fc!==h&&(this.fc=h,this._mdf.fc=!0,p=!0),this.m!==d&&(this.m=d,this._mdf.m=!0,p=!0),v.length&&(this.p[0]!==v[0]||this.p[1]!==v[1]||this.p[4]!==v[4]||this.p[5]!==v[5]||this.p[12]!==v[12]||this.p[13]!==v[13])&&(this.p=v,this._mdf.p=!0,p=!0),p};function TextProperty(c,u){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,u.d&&u.d.sid&&(u.d=c.globalData.slotManager.getProp(u.d)),this.data=u,this.elem=c,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(c,u){for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(c[f]=u[f]);return c},TextProperty.prototype.setCurrentData=function(c){c.__complete||this.completeTextData(c),this.currentData=c,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(c){this.effectsSequence.push(c),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(c){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!c)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var u=this.currentData,f=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var h,d=this.effectsSequence.length,v=c||this.data.d.k[this.keysIndex].s;for(h=0;h<d;h+=1)f!==this.keysIndex?v=this.effectsSequence[h](v,v.t):v=this.effectsSequence[h](this.currentData,v.t);u!==v&&this.setCurrentData(v),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var c=this.data.d.k,u=this.elem.comp.renderedFrame,f=0,h=c.length;f<=h-1&&!(f===h-1||c[f+1].t>u);)f+=1;return this.keysIndex!==f&&(this.keysIndex=f),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(c){for(var u=[],f=0,h=c.length,d,v,p=!1,m=!1,g="";f<h;)p=m,m=!1,d=c.charCodeAt(f),g=c.charAt(f),FontManager.isCombinedCharacter(d)?p=!0:d>=55296&&d<=56319?FontManager.isRegionalFlag(c,f)?g=c.substr(f,14):(v=c.charCodeAt(f+1),v>=56320&&v<=57343&&(FontManager.isModifier(d,v)?(g=c.substr(f,2),p=!0):FontManager.isFlagEmoji(c.substr(f,4))?g=c.substr(f,4):g=c.substr(f,2))):d>56319?(v=c.charCodeAt(f+1),FontManager.isVariationSelector(d)&&(p=!0)):FontManager.isZeroWidthJoiner(d)&&(p=!0,m=!0),p?(u[u.length-1]+=g,p=!1):u.push(g),f+=g.length;return u},TextProperty.prototype.completeTextData=function(c){c.__complete=!0;var u=this.elem.globalData.fontManager,f=this.data,h=[],d,v,p,m=0,g,y=f.m.g,x=0,Bn=0,b=0,re=[],_=0,vn=0,Fn,Pn,w=u.getFontByName(c.f),J,gn=0,Vn=getFontProperties(w);c.fWeight=Vn.weight,c.fStyle=Vn.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,Wn;if(c.sz)for(var Un=!0,er=c.sz[0],Jn=c.sz[1],tr,Qn;Un;){Qn=this.buildFinalText(c.t),tr=0,_=0,v=Qn.length,zn=c.tr/1e3*c.finalSize;var ir=-1;for(d=0;d<v;d+=1)Wn=Qn[d].charCodeAt(0),p=!1,Qn[d]===" "?ir=d:(Wn===13||Wn===3)&&(_=0,p=!0,tr+=c.finalLineHeight||c.finalSize*1.2),u.chars?(J=u.getCharData(Qn[d],w.fStyle,w.fFamily),gn=p?0:J.w*c.finalSize/100):gn=u.measureText(Qn[d],c.f,c.finalSize),_+gn>er&&Qn[d]!==" "?(ir===-1?v+=1:d=ir,tr+=c.finalLineHeight||c.finalSize*1.2,Qn.splice(d,ir===d?1:0,"\r"),ir=-1,_=0):(_+=gn,_+=zn);tr+=w.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&Jn<tr?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Qn,v=c.finalText.length,Un=!1)}_=-zn,gn=0;var cr=0,Xn;for(d=0;d<v;d+=1)if(p=!1,Xn=c.finalText[d],Wn=Xn.charCodeAt(0),Wn===13||Wn===3?(cr=0,re.push(_),vn=_>vn?_:vn,_=-2*zn,g="",p=!0,b+=1):g=Xn,u.chars?(J=u.getCharData(Xn,w.fStyle,u.getFontByName(c.f).fFamily),gn=p?0:J.w*c.finalSize/100):gn=u.measureText(g,c.f,c.finalSize),Xn===" "?cr+=gn+zn:(_+=gn+zn+cr,cr=0),h.push({l:gn,an:gn,add:x,n:p,anIndexes:[],val:g,line:b,animatorJustifyOffset:0}),y==2){if(x+=gn,g===""||g===" "||d===v-1){for((g===""||g===" ")&&(x-=gn);Bn<=d;)h[Bn].an=x,h[Bn].ind=m,h[Bn].extra=gn,Bn+=1;m+=1,x=0}}else if(y==3){if(x+=gn,g===""||d===v-1){for(g===""&&(x-=gn);Bn<=d;)h[Bn].an=x,h[Bn].ind=m,h[Bn].extra=gn,Bn+=1;x=0,m+=1}}else h[m].ind=m,h[m].extra=0,m+=1;if(c.l=h,vn=_>vn?_:vn,re.push(_),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=vn,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,Yn,Rn;Pn=Hn.length;var Gn,Zn,qn=[];for(Fn=0;Fn<Pn;Fn+=1){for(Yn=Hn[Fn],Yn.a.sc&&(c.strokeColorAnim=!0),Yn.a.sw&&(c.strokeWidthAnim=!0),(Yn.a.fc||Yn.a.fh||Yn.a.fs||Yn.a.fb)&&(c.fillColorAnim=!0),Zn=0,Gn=Yn.s.b,d=0;d<v;d+=1)Rn=h[d],Rn.anIndexes[Fn]=Zn,(Gn==1&&Rn.val!==""||Gn==2&&Rn.val!==""&&Rn.val!==" "||Gn==3&&(Rn.n||Rn.val==" "||d==v-1)||Gn==4&&(Rn.n||d==v-1))&&(Yn.s.rn===1&&qn.push(Zn),Zn+=1);f.a[Fn].s.totalChars=Zn;var nr=-1,or;if(Yn.s.rn===1)for(d=0;d<v;d+=1)Rn=h[d],nr!=Rn.anIndexes[Fn]&&(nr=Rn.anIndexes[Fn],or=qn.splice(Math.floor(Math.random()*qn.length),1)[0]),Rn.anIndexes[Fn]=or}c.yOffset=c.finalLineHeight||c.finalSize*1.2,c.ls=c.ls||0,c.ascent=w.ascent*c.finalSize/100},TextProperty.prototype.updateDocumentData=function(c,u){u=u===void 0?this.keysIndex:u;var f=this.copyData({},this.data.d.k[u].s);f=this.copyData(f,c),this.data.d.k[u].s=f,this.recalculate(u),this.setCurrentData(f),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(c){var u=this.data.d.k[c].s;u.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(u)},TextProperty.prototype.canResizeFont=function(c){this.canResize=c,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(c){this.minimumFontSize=Math.floor(c)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var c=Math.max,u=Math.min,f=Math.floor;function h(v,p){this._currentTextLength=-1,this.k=!1,this.data=p,this.elem=v,this.comp=v.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(v),this.s=PropertyFactory.getProp(v,p.s||{k:0},0,0,this),"e"in p?this.e=PropertyFactory.getProp(v,p.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(v,p.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(v,p.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(v,p.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(v,p.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(v,p.a,0,.01,this),this.dynamicProperties.length||this.getValue()}h.prototype={getMult:function(p){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var m=0,g=0,y=1,x=1;this.ne.v>0?m=this.ne.v/100:g=-this.ne.v/100,this.xe.v>0?y=1-this.xe.v/100:x=1+this.xe.v/100;var Bn=BezierFactory.getBezierEasing(m,g,y,x).get,b=0,re=this.finalS,_=this.finalE,vn=this.data.sh;if(vn===2)_===re?b=p>=_?1:0:b=c(0,u(.5/(_-re)+(p-re)/(_-re),1)),b=Bn(b);else if(vn===3)_===re?b=p>=_?0:1:b=1-c(0,u(.5/(_-re)+(p-re)/(_-re),1)),b=Bn(b);else if(vn===4)_===re?b=0:(b=c(0,u(.5/(_-re)+(p-re)/(_-re),1)),b<.5?b*=2:b=1-2*(b-.5)),b=Bn(b);else if(vn===5){if(_===re)b=0;else{var Fn=_-re;p=u(c(0,p+.5-re),_-re);var Pn=-Fn/2+p,w=Fn/2;b=Math.sqrt(1-Pn*Pn/(w*w))}b=Bn(b)}else vn===6?(_===re?b=0:(p=u(c(0,p+.5-re),_-re),b=(1+Math.cos(Math.PI+Math.PI*2*p/(_-re)))/2),b=Bn(b)):(p>=f(re)&&(p-re<0?b=c(0,u(u(_,1)-(re-p),1)):b=c(0,u(_-p,1))),b=Bn(b));if(this.sm.v!==100){var J=this.sm.v*.01;J===0&&(J=1e-8);var gn=.5-J*.5;b<gn?b=0:(b=(b-gn)/J,b>1&&(b=1))}return b*this.a.v},getValue:function(p){this.iterateDynamicProperties(),this._mdf=p||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,p&&this.data.r===2&&(this.e.v=this._currentTextLength);var m=this.data.r===2?1:100/this.data.totalChars,g=this.o.v/m,y=this.s.v/m+g,x=this.e.v/m+g;if(y>x){var Bn=y;y=x,x=Bn}this.finalS=y,this.finalE=x}},extendPrototype([DynamicPropertyContainer],h);function d(v,p,m){return new h(v,p)}return{getTextSelectorProp:d}}();function TextAnimatorDataProperty(c,u,f){var h={propType:!1},d=PropertyFactory.getProp,v=u.a;this.a={r:v.r?d(c,v.r,0,degToRads,f):h,rx:v.rx?d(c,v.rx,0,degToRads,f):h,ry:v.ry?d(c,v.ry,0,degToRads,f):h,sk:v.sk?d(c,v.sk,0,degToRads,f):h,sa:v.sa?d(c,v.sa,0,degToRads,f):h,s:v.s?d(c,v.s,1,.01,f):h,a:v.a?d(c,v.a,1,0,f):h,o:v.o?d(c,v.o,0,.01,f):h,p:v.p?d(c,v.p,1,0,f):h,sw:v.sw?d(c,v.sw,0,0,f):h,sc:v.sc?d(c,v.sc,1,0,f):h,fc:v.fc?d(c,v.fc,1,0,f):h,fh:v.fh?d(c,v.fh,0,0,f):h,fs:v.fs?d(c,v.fs,0,.01,f):h,fb:v.fb?d(c,v.fb,0,.01,f):h,t:v.t?d(c,v.t,0,0,f):h},this.s=TextSelectorProp.getTextSelectorProp(c,u.s,f),this.s.t=u.s.t}function TextAnimatorProperty(c,u,f){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=c,this._renderType=u,this._elem=f,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(f)}TextAnimatorProperty.prototype.searchProperties=function(){var c,u=this._textData.a.length,f,h=PropertyFactory.getProp;for(c=0;c<u;c+=1)f=this._textData.a[c],this._animatorsData[c]=new TextAnimatorDataProperty(this._elem,f,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:h(this._elem,this._textData.p.a,0,0,this),f:h(this._elem,this._textData.p.f,0,0,this),l:h(this._elem,this._textData.p.l,0,0,this),r:h(this._elem,this._textData.p.r,0,0,this),p:h(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=h(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(c,u){if(this.lettersChangedFlag=u,!(!this._mdf&&!this._isFirstFrame&&!u&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var f=this._moreOptions.alignment.v,h=this._animatorsData,d=this._textData,v=this.mHelper,p=this._renderType,m=this.renderedLetters.length,g,y,x,Bn,b=c.l,re,_,vn,Fn,Pn,w,J,gn,Vn,zn,Wn,Un,er,Jn,tr;if(this._hasMaskedPath){if(tr=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Qn=tr.v;this._pathData.r.v&&(Qn=Qn.reverse()),re={tLength:0,segments:[]},Bn=Qn._length-1;var ir;for(Un=0,x=0;x<Bn;x+=1)ir=bez.buildBezierData(Qn.v[x],Qn.v[x+1],[Qn.o[x][0]-Qn.v[x][0],Qn.o[x][1]-Qn.v[x][1]],[Qn.i[x+1][0]-Qn.v[x+1][0],Qn.i[x+1][1]-Qn.v[x+1][1]]),re.tLength+=ir.segmentLength,re.segments.push(ir),Un+=ir.segmentLength;x=Bn,tr.v.c&&(ir=bez.buildBezierData(Qn.v[x],Qn.v[0],[Qn.o[x][0]-Qn.v[x][0],Qn.o[x][1]-Qn.v[x][1]],[Qn.i[0][0]-Qn.v[0][0],Qn.i[0][1]-Qn.v[0][1]]),re.tLength+=ir.segmentLength,re.segments.push(ir),Un+=ir.segmentLength),this._pathData.pi=re}if(re=this._pathData.pi,_=this._pathData.f.v,J=0,w=1,Fn=0,Pn=!0,zn=re.segments,_<0&&tr.v.c)for(re.tLength<Math.abs(_)&&(_=-Math.abs(_)%re.tLength),J=zn.length-1,Vn=zn[J].points,w=Vn.length-1;_<0;)_+=Vn[w].partialLength,w-=1,w<0&&(J-=1,Vn=zn[J].points,w=Vn.length-1);Vn=zn[J].points,gn=Vn[w-1],vn=Vn[w],Wn=vn.partialLength}Bn=b.length,g=0,y=0;var cr=c.finalSize*1.2*.714,Xn=!0,Hn,Yn,Rn,Gn,Zn;Gn=h.length;var qn,nr=-1,or,Kn,ar,lr=_,ur=J,dr=w,sr=-1,fr,pr,mr,gr,hr,vr,yr,xr,Cr="",Er=this.defaultPropsArray,_r;if(c.j===2||c.j===1){var kr=0,Br=0,Ir=c.j===2?-.5:-1,Fr=0,Nr=!0;for(x=0;x<Bn;x+=1)if(b[x].n){for(kr&&(kr+=Br);Fr<x;)b[Fr].animatorJustifyOffset=kr,Fr+=1;kr=0,Nr=!0}else{for(Rn=0;Rn<Gn;Rn+=1)Hn=h[Rn].a,Hn.t.propType&&(Nr&&c.j===2&&(Br+=Hn.t.v*Ir),Yn=h[Rn].s,qn=Yn.getMult(b[x].anIndexes[Rn],d.a[Rn].s.totalChars),qn.length?kr+=Hn.t.v*qn[0]*Ir:kr+=Hn.t.v*qn*Ir);Nr=!1}for(kr&&(kr+=Br);Fr<x;)b[Fr].animatorJustifyOffset=kr,Fr+=1}for(x=0;x<Bn;x+=1){if(v.reset(),fr=1,b[x].n)g=0,y+=c.yOffset,y+=Xn?1:0,_=lr,Xn=!1,this._hasMaskedPath&&(J=ur,w=dr,Vn=zn[J].points,gn=Vn[w-1],vn=Vn[w],Wn=vn.partialLength,Fn=0),Cr="",xr="",vr="",_r="",Er=this.defaultPropsArray;else{if(this._hasMaskedPath){if(sr!==b[x].line){switch(c.j){case 1:_+=Un-c.lineWidths[b[x].line];break;case 2:_+=(Un-c.lineWidths[b[x].line])/2;break}sr=b[x].line}nr!==b[x].ind&&(b[nr]&&(_+=b[nr].extra),_+=b[x].an/2,nr=b[x].ind),_+=f[0]*b[x].an*.005;var Rr=0;for(Rn=0;Rn<Gn;Rn+=1)Hn=h[Rn].a,Hn.p.propType&&(Yn=h[Rn].s,qn=Yn.getMult(b[x].anIndexes[Rn],d.a[Rn].s.totalChars),qn.length?Rr+=Hn.p.v[0]*qn[0]:Rr+=Hn.p.v[0]*qn),Hn.a.propType&&(Yn=h[Rn].s,qn=Yn.getMult(b[x].anIndexes[Rn],d.a[Rn].s.totalChars),qn.length?Rr+=Hn.a.v[0]*qn[0]:Rr+=Hn.a.v[0]*qn);for(Pn=!0,this._pathData.a.v&&(_=b[0].an*.5+(Un-this._pathData.f.v-b[0].an*.5-b[b.length-1].an*.5)*nr/(Bn-1),_+=this._pathData.f.v);Pn;)Fn+Wn>=_+Rr||!Vn?(er=(_+Rr-Fn)/vn.partialLength,Kn=gn.point[0]+(vn.point[0]-gn.point[0])*er,ar=gn.point[1]+(vn.point[1]-gn.point[1])*er,v.translate(-f[0]*b[x].an*.005,-(f[1]*cr)*.01),Pn=!1):Vn&&(Fn+=vn.partialLength,w+=1,w>=Vn.length&&(w=0,J+=1,zn[J]?Vn=zn[J].points:tr.v.c?(w=0,J=0,Vn=zn[J].points):(Fn-=vn.partialLength,Vn=null)),Vn&&(gn=vn,vn=Vn[w],Wn=vn.partialLength));or=b[x].an/2-b[x].add,v.translate(-or,0,0)}else or=b[x].an/2-b[x].add,v.translate(-or,0,0),v.translate(-f[0]*b[x].an*.005,-f[1]*cr*.01,0);for(Rn=0;Rn<Gn;Rn+=1)Hn=h[Rn].a,Hn.t.propType&&(Yn=h[Rn].s,qn=Yn.getMult(b[x].anIndexes[Rn],d.a[Rn].s.totalChars),(g!==0||c.j!==0)&&(this._hasMaskedPath?qn.length?_+=Hn.t.v*qn[0]:_+=Hn.t.v*qn:qn.length?g+=Hn.t.v*qn[0]:g+=Hn.t.v*qn));for(c.strokeWidthAnim&&(mr=c.sw||0),c.strokeColorAnim&&(c.sc?pr=[c.sc[0],c.sc[1],c.sc[2]]:pr=[0,0,0]),c.fillColorAnim&&c.fc&&(gr=[c.fc[0],c.fc[1],c.fc[2]]),Rn=0;Rn<Gn;Rn+=1)Hn=h[Rn].a,Hn.a.propType&&(Yn=h[Rn].s,qn=Yn.getMult(b[x].anIndexes[Rn],d.a[Rn].s.totalChars),qn.length?v.translate(-Hn.a.v[0]*qn[0],-Hn.a.v[1]*qn[1],Hn.a.v[2]*qn[2]):v.translate(-Hn.a.v[0]*qn,-Hn.a.v[1]*qn,Hn.a.v[2]*qn));for(Rn=0;Rn<Gn;Rn+=1)Hn=h[Rn].a,Hn.s.propType&&(Yn=h[Rn].s,qn=Yn.getMult(b[x].anIndexes[Rn],d.a[Rn].s.totalChars),qn.length?v.scale(1+(Hn.s.v[0]-1)*qn[0],1+(Hn.s.v[1]-1)*qn[1],1):v.scale(1+(Hn.s.v[0]-1)*qn,1+(Hn.s.v[1]-1)*qn,1));for(Rn=0;Rn<Gn;Rn+=1){if(Hn=h[Rn].a,Yn=h[Rn].s,qn=Yn.getMult(b[x].anIndexes[Rn],d.a[Rn].s.totalChars),Hn.sk.propType&&(qn.length?v.skewFromAxis(-Hn.sk.v*qn[0],Hn.sa.v*qn[1]):v.skewFromAxis(-Hn.sk.v*qn,Hn.sa.v*qn)),Hn.r.propType&&(qn.length?v.rotateZ(-Hn.r.v*qn[2]):v.rotateZ(-Hn.r.v*qn)),Hn.ry.propType&&(qn.length?v.rotateY(Hn.ry.v*qn[1]):v.rotateY(Hn.ry.v*qn)),Hn.rx.propType&&(qn.length?v.rotateX(Hn.rx.v*qn[0]):v.rotateX(Hn.rx.v*qn)),Hn.o.propType&&(qn.length?fr+=(Hn.o.v*qn[0]-fr)*qn[0]:fr+=(Hn.o.v*qn-fr)*qn),c.strokeWidthAnim&&Hn.sw.propType&&(qn.length?mr+=Hn.sw.v*qn[0]:mr+=Hn.sw.v*qn),c.strokeColorAnim&&Hn.sc.propType)for(hr=0;hr<3;hr+=1)qn.length?pr[hr]+=(Hn.sc.v[hr]-pr[hr])*qn[0]:pr[hr]+=(Hn.sc.v[hr]-pr[hr])*qn;if(c.fillColorAnim&&c.fc){if(Hn.fc.propType)for(hr=0;hr<3;hr+=1)qn.length?gr[hr]+=(Hn.fc.v[hr]-gr[hr])*qn[0]:gr[hr]+=(Hn.fc.v[hr]-gr[hr])*qn;Hn.fh.propType&&(qn.length?gr=addHueToRGB(gr,Hn.fh.v*qn[0]):gr=addHueToRGB(gr,Hn.fh.v*qn)),Hn.fs.propType&&(qn.length?gr=addSaturationToRGB(gr,Hn.fs.v*qn[0]):gr=addSaturationToRGB(gr,Hn.fs.v*qn)),Hn.fb.propType&&(qn.length?gr=addBrightnessToRGB(gr,Hn.fb.v*qn[0]):gr=addBrightnessToRGB(gr,Hn.fb.v*qn))}}for(Rn=0;Rn<Gn;Rn+=1)Hn=h[Rn].a,Hn.p.propType&&(Yn=h[Rn].s,qn=Yn.getMult(b[x].anIndexes[Rn],d.a[Rn].s.totalChars),this._hasMaskedPath?qn.length?v.translate(0,Hn.p.v[1]*qn[0],-Hn.p.v[2]*qn[1]):v.translate(0,Hn.p.v[1]*qn,-Hn.p.v[2]*qn):qn.length?v.translate(Hn.p.v[0]*qn[0],Hn.p.v[1]*qn[1],-Hn.p.v[2]*qn[2]):v.translate(Hn.p.v[0]*qn,Hn.p.v[1]*qn,-Hn.p.v[2]*qn));if(c.strokeWidthAnim&&(vr=mr<0?0:mr),c.strokeColorAnim&&(yr="rgb("+Math.round(pr[0]*255)+","+Math.round(pr[1]*255)+","+Math.round(pr[2]*255)+")"),c.fillColorAnim&&c.fc&&(xr="rgb("+Math.round(gr[0]*255)+","+Math.round(gr[1]*255)+","+Math.round(gr[2]*255)+")"),this._hasMaskedPath){if(v.translate(0,-c.ls),v.translate(0,f[1]*cr*.01+y,0),this._pathData.p.v){Jn=(vn.point[1]-gn.point[1])/(vn.point[0]-gn.point[0]);var Or=Math.atan(Jn)*180/Math.PI;vn.point[0]<gn.point[0]&&(Or+=180),v.rotate(-Or*Math.PI/180)}v.translate(Kn,ar,0),_-=f[0]*b[x].an*.005,b[x+1]&&nr!==b[x+1].ind&&(_+=b[x].an/2,_+=c.tr*.001*c.finalSize)}else{switch(v.translate(g,y,0),c.ps&&v.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:v.translate(b[x].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[b[x].line]),0,0);break;case 2:v.translate(b[x].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[b[x].line])/2,0,0);break}v.translate(0,-c.ls),v.translate(or,0,0),v.translate(f[0]*b[x].an*.005,f[1]*cr*.01,0),g+=b[x].l+c.tr*.001*c.finalSize}p==="html"?Cr=v.toCSS():p==="svg"?Cr=v.to2dCSS():Er=[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]],_r=fr}m<=x?(Zn=new LetterProps(_r,vr,yr,xr,Cr,Er),this.renderedLetters.push(Zn),m+=1,this.lettersChangedFlag=!0):(Zn=this.renderedLetters[x],this.lettersChangedFlag=Zn.update(_r,vr,yr,xr,Cr,Er)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(c,u,f){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(c,u,f),this.textProperty=new TextProperty(this,c.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(c.t,this.renderType,this),this.initTransform(c,u,f),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(c){this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange)},ITextElement.prototype.createPathShape=function(c,u){var f,h=u.length,d,v="";for(f=0;f<h;f+=1)u[f].ty==="sh"&&(d=u[f].ks.k,v+=buildShapeString(d,d.i.length,!0,c));return v},ITextElement.prototype.updateDocumentData=function(c,u){this.textProperty.updateDocumentData(c,u)},ITextElement.prototype.canResizeFont=function(c){this.textProperty.canResizeFont(c)},ITextElement.prototype.setMinimumFontSize=function(c){this.textProperty.setMinimumFontSize(c)},ITextElement.prototype.applyTextPropertiesToMatrix=function(c,u,f,h,d){switch(c.ps&&u.translate(c.ps[0],c.ps[1]+c.ascent,0),u.translate(0,-c.ls,0),c.j){case 1:u.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[f]),0,0);break;case 2:u.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[f])/2,0,0);break}u.translate(h,d,0)},ITextElement.prototype.buildColor=function(c){return"rgb("+Math.round(c[0]*255)+","+Math.round(c[1]*255)+","+Math.round(c[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(c,u,f){this.textSpans=[],this.renderType="svg",this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(c){for(var u=0,f=c.length,h=[],d="";u<f;)c[u]===String.fromCharCode(13)||c[u]===String.fromCharCode(3)?(h.push(d),d=""):d+=c[u],u+=1;return h.push(d),h},SVGTextLottieElement.prototype.buildShapeData=function(c,u){if(c.shapes&&c.shapes.length){var f=c.shapes[0];if(f.it){var h=f.it[f.it.length-1];h.s&&(h.s.k[0]=u,h.s.k[1]=u)}}return c},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var c,u,f=this.textProperty.currentData;this.renderedLetters=createSizedArray(f?f.l.length:0),f.fc?this.layerElement.setAttribute("fill",this.buildColor(f.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),f.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(f.sc)),this.layerElement.setAttribute("stroke-width",f.sw)),this.layerElement.setAttribute("font-size",f.finalSize);var h=this.globalData.fontManager.getFontByName(f.f);if(h.fClass)this.layerElement.setAttribute("class",h.fClass);else{this.layerElement.setAttribute("font-family",h.fFamily);var d=f.fWeight,v=f.fStyle;this.layerElement.setAttribute("font-style",v),this.layerElement.setAttribute("font-weight",d)}this.layerElement.setAttribute("aria-label",f.t);var p=f.l||[],m=!!this.globalData.fontManager.chars;u=p.length;var g,y=this.mHelper,x="",Bn=this.data.singleShape,b=0,re=0,_=!0,vn=f.tr*.001*f.finalSize;if(Bn&&!m&&!f.sz){var Fn=this.textContainer,Pn="start";switch(f.j){case 1:Pn="end";break;case 2:Pn="middle";break;default:Pn="start";break}Fn.setAttribute("text-anchor",Pn),Fn.setAttribute("letter-spacing",vn);var w=this.buildTextContents(f.finalText);for(u=w.length,re=f.ps?f.ps[1]+f.ascent:0,c=0;c<u;c+=1)g=this.textSpans[c].span||createNS("tspan"),g.textContent=w[c],g.setAttribute("x",0),g.setAttribute("y",re),g.style.display="inherit",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 J=this.textSpans.length,gn;for(c=0;c<u;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!m||!Bn||c===0){if(g=J>c?this.textSpans[c].span:createNS(m?"g":"text"),J<=c){if(g.setAttribute("stroke-linecap","butt"),g.setAttribute("stroke-linejoin","round"),g.setAttribute("stroke-miterlimit","4"),this.textSpans[c].span=g,m){var Vn=createNS("g");g.appendChild(Vn),this.textSpans[c].childSpan=Vn}this.textSpans[c].span=g,this.layerElement.appendChild(g)}g.style.display="inherit"}if(y.reset(),Bn&&(p[c].n&&(b=-vn,re+=f.yOffset,re+=_?1:0,_=!1),this.applyTextPropertiesToMatrix(f,y,p[c].line,b,re),b+=p[c].l||0,b+=vn),m){gn=this.globalData.fontManager.getCharData(f.finalText[c],h.fStyle,this.globalData.fontManager.getFontByName(f.f).fFamily);var zn;if(gn.t===1)zn=new SVGCompElement(gn.data,this.globalData,this);else{var Wn=emptyShapeData;gn.data&&gn.data.shapes&&(Wn=this.buildShapeData(gn.data,f.finalSize)),zn=new SVGShapeElement(Wn,this.globalData,this)}if(this.textSpans[c].glyph){var Un=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(Un.layerElement),Un.destroy()}this.textSpans[c].glyph=zn,zn._debug=!0,zn.prepareFrame(0),zn.renderFrame(),this.textSpans[c].childSpan.appendChild(zn.layerElement),gn.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+f.finalSize/100+","+f.finalSize/100+")")}else Bn&&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")}Bn&&g&&g.setAttribute("d",x)}for(;c<this.textSpans.length;)this.textSpans[c].span.style.display="none",c+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var c=this.layerElement.getBBox();this.bbox={top:c.y,left:c.x,width:c.width,height:c.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var c,u=this.textSpans.length,f;for(this.renderedFrame=this.comp.renderedFrame,c=0;c<u;c+=1)f=this.textSpans[c].glyph,f&&(f.prepareFrame(this.comp.renderedFrame-this.data.st),f._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var c,u,f=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;u=h.length;var d,v,p;for(c=0;c<u;c+=1)h[c].n||(d=f[c],v=this.textSpans[c].span,p=this.textSpans[c].glyph,p&&p.renderFrame(),d._mdf.m&&v.setAttribute("transform",d.m),d._mdf.o&&v.setAttribute("opacity",d.o),d._mdf.sw&&v.setAttribute("stroke-width",d.sw),d._mdf.sc&&v.setAttribute("stroke",d.sc),d._mdf.fc&&v.setAttribute("fill",d.fc))}};function ISolidElement(c,u,f){this.initElement(c,u,f)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var c=createNS("rect");c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.layerElement.appendChild(c)};function NullElement(c,u,f){this.initFrame(),this.initBaseData(c,u,f),this.initFrame(),this.initTransform(c,u,f),this.initHierarchy()}NullElement.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(c){return new NullElement(c,this.globalData,this)},SVGRendererBase.prototype.createShape=function(c){return new SVGShapeElement(c,this.globalData,this)},SVGRendererBase.prototype.createText=function(c){return new SVGTextLottieElement(c,this.globalData,this)},SVGRendererBase.prototype.createImage=function(c){return new IImageElement(c,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(c){return new ISolidElement(c,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(c){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+c.w+" "+c.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",c.w),this.svgElement.setAttribute("height",c.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var u=this.globalData.defs;this.setupGlobalData(c,u),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=c;var f=createNS("clipPath"),h=createNS("rect");h.setAttribute("width",c.w),h.setAttribute("height",c.h),h.setAttribute("x",0),h.setAttribute("y",0);var d=createElementID();f.setAttribute("id",d),f.appendChild(h),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+d+")"),u.appendChild(f),this.layers=c.layers,this.elements=createSizedArray(c.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var c,u=this.layers?this.layers.length:0;for(c=0;c<u;c+=1)this.elements[c]&&this.elements[c].destroy&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(c){var u=0,f=this.layers.length;for(u=0;u<f;u+=1)if(this.layers[u].ind===c)return u;return-1},SVGRendererBase.prototype.buildItem=function(c){var u=this.elements;if(!(u[c]||this.layers[c].ty===99)){u[c]=!0;var f=this.createItem(this.layers[c]);if(u[c]=f,getExpressionsPlugin()&&(this.layers[c].ty===0&&this.globalData.projectInterface.registerComposition(f),f.initExpressions()),this.appendElementInPos(f,c),this.layers[c].tt){var h="tp"in this.layers[c]?this.findIndexByInd(this.layers[c].tp):c-1;if(h===-1)return;if(!this.elements[h]||this.elements[h]===!0)this.buildItem(h),this.addPendingElement(f);else{var d=u[h],v=d.getMatte(this.layers[c].tt);f.setMatte(v)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();if(c.checkParenting(),c.data.tt)for(var u=0,f=this.elements.length;u<f;){if(this.elements[u]===c){var h="tp"in c.data?this.findIndexByInd(c.data.tp):u-1,d=this.elements[h],v=d.getMatte(this.layers[u].tt);c.setMatte(v);break}u+=1}}},SVGRendererBase.prototype.renderFrame=function(c){if(!(this.renderedFrame===c||this.destroyed)){c===null?c=this.renderedFrame:this.renderedFrame=c,this.globalData.frameNum=c,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=c,this.globalData._mdf=!1;var u,f=this.layers.length;for(this.completeLayers||this.checkLayers(c),u=f-1;u>=0;u-=1)(this.completeLayers||this.elements[u])&&this.elements[u].prepareFrame(c-this.layers[u].st);if(this.globalData._mdf)for(u=0;u<f;u+=1)(this.completeLayers||this.elements[u])&&this.elements[u].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(c,u){var f=c.getBaseElement();if(f){for(var h=0,d;h<u;)this.elements[h]&&this.elements[h]!==!0&&this.elements[h].getBaseElement()&&(d=this.elements[h].getBaseElement()),h+=1;d?this.layerElement.insertBefore(f,d):this.layerElement.appendChild(f)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(c,u,f){this.initFrame(),this.initBaseData(c,u,f),this.initTransform(c,u,f),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!u.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(c){if(this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=c/this.data.sr;else{var u=this.tm.v;u===this.data.op&&(u=this.data.op-1),this.renderedFrame=u}var f,h=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),f=h-1;f>=0;f-=1)(this.completeLayers||this.elements[f])&&(this.elements[f].prepareFrame(this.renderedFrame-this.layers[f].st),this.elements[f]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var c,u=this.layers.length;for(c=0;c<u;c+=1)(this.completeLayers||this.elements[c])&&this.elements[c].renderFrame()},ICompElement.prototype.setElements=function(c){this.elements=c},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var c,u=this.layers.length;for(c=0;c<u;c+=1)this.elements[c]&&this.elements[c].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(c,u,f){this.layers=c.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(c,u,f),this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(c){return new SVGCompElement(c,this.globalData,this)};function SVGRenderer(c,u){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var f="";if(u&&u.title){var h=createNS("title"),d=createElementID();h.setAttribute("id",d),h.textContent=u.title,this.svgElement.appendChild(h),f+=d}if(u&&u.description){var v=createNS("desc"),p=createElementID();v.setAttribute("id",p),v.textContent=u.description,this.svgElement.appendChild(v),f+=" "+p}f&&this.svgElement.setAttribute("aria-labelledby",f);var m=createNS("defs");this.svgElement.appendChild(m);var g=createNS("g");this.svgElement.appendChild(g),this.layerElement=g,this.renderConfig={preserveAspectRatio:u&&u.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:u&&u.contentVisibility||"visible",progressiveLoad:u&&u.progressiveLoad||!1,hideOnTransparent:!(u&&u.hideOnTransparent===!1),viewBoxOnly:u&&u.viewBoxOnly||!1,viewBoxSize:u&&u.viewBoxSize||!1,className:u&&u.className||"",id:u&&u.id||"",focusable:u&&u.focusable,filterSize:{width:u&&u.filterSize&&u.filterSize.width||"100%",height:u&&u.filterSize&&u.filterSize.height||"100%",x:u&&u.filterSize&&u.filterSize.x||"0%",y:u&&u.filterSize&&u.filterSize.y||"0%"},width:u&&u.width,height:u&&u.height,runExpressions:!u||u.runExpressions===void 0||u.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:m,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(c){return new SVGCompElement(c,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(u){var f,h=u.length,d="_";for(f=0;f<h;f+=1)d+=u[f].transform.key+"_";var v=this.sequences[d];return v||(v={transforms:[].concat(u),finalTransform:new Matrix,_mdf:!1},this.sequences[d]=v,this.sequenceList.push(v)),v},processSequence:function(u,f){for(var h=0,d=u.transforms.length,v=f;h<d&&!f;){if(u.transforms[h].transform.mProps._mdf){v=!0;break}h+=1}if(v)for(u.finalTransform.reset(),h=d-1;h>=0;h-=1)u.finalTransform.multiply(u.transforms[h].transform.mProps.v);u._mdf=v},processSequences:function(u){var f,h=this.sequenceList.length;for(f=0;f<h;f+=1)this.processSequence(this.sequenceList[f],u)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var u="__lottie_element_luma_buffer",f=null,h=null,d=null;function v(){var g=createNS("svg"),y=createNS("filter"),x=createNS("feColorMatrix");return y.setAttribute("id",u),x.setAttribute("type","matrix"),x.setAttribute("color-interpolation-filters","sRGB"),x.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),y.appendChild(x),g.appendChild(y),g.setAttribute("id",u+"_svg"),featureSupport.svgLumaHidden&&(g.style.display="none"),g}function p(){f||(d=v(),document.body.appendChild(d),f=createTag("canvas"),h=f.getContext("2d"),h.filter="url(#"+u+")",h.fillStyle="rgba(0,0,0,0)",h.fillRect(0,0,1,1))}function m(g){return f||p(),f.width=g.width,f.height=g.height,h.filter="url(#"+u+")",f}return{load:p,get:m}};function createCanvas(c,u){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(c,u);var f=createTag("canvas");return f.width=c,f.height=u,f}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(c){var u,f=c.data.ef?c.data.ef.length:0;this.filters=[];var h;for(u=0;u<f;u+=1){h=null;var d=c.data.ef[u].ty;if(registeredEffects[d]){var v=registeredEffects[d].effect;h=new v(c.effectsManager.effectElements[u],c)}h&&this.filters.push(h)}this.filters.length&&c.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(c){var u,f=this.filters.length;for(u=0;u<f;u+=1)this.filters[u].renderFrame(c)},CVEffects.prototype.getEffects=function(c){var u,f=this.filters.length,h=[];for(u=0;u<f;u+=1)this.filters[u].type===c&&h.push(this.filters[u]);return h};function registerEffect(c,u){registeredEffects[c]={effect:u}}function CVMaskElement(c,u){this.data=c,this.element=u,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var f,h=this.masksProperties.length,d=!1;for(f=0;f<h;f+=1)this.masksProperties[f].mode!=="n"&&(d=!0),this.viewData[f]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[f],3);this.hasMasks=d,d&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var c=this.element.finalTransform.mat,u=this.element.canvasContext,f,h=this.masksProperties.length,d,v,p;for(u.beginPath(),f=0;f<h;f+=1)if(this.masksProperties[f].mode!=="n"){this.masksProperties[f].inv&&(u.moveTo(0,0),u.lineTo(this.element.globalData.compSize.w,0),u.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),u.lineTo(0,this.element.globalData.compSize.h),u.lineTo(0,0)),p=this.viewData[f].v,d=c.applyToPointArray(p.v[0][0],p.v[0][1],0),u.moveTo(d[0],d[1]);var m,g=p._length;for(m=1;m<g;m+=1)v=c.applyToTriplePoints(p.o[m-1],p.i[m],p.v[m]),u.bezierCurveTo(v[0],v[1],v[2],v[3],v[4],v[5]);v=c.applyToTriplePoints(p.o[m-1],p.i[0],p.v[0]),u.bezierCurveTo(v[0],v[1],v[2],v[3],v[4],v[5])}this.element.globalData.renderer.save(!0),u.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var u=this.globalData.canvasContext,f=assetLoader.createCanvas(u.canvas.width,u.canvas.height);this.buffers.push(f);var h=assetLoader.createCanvas(u.canvas.width,u.canvas.height);this.buffers.push(h),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var u=this.globalData;if(u.blendMode!==this.data.bm){u.blendMode=this.data.bm;var f=getBlendMode(this.data.bm);u.canvasContext.globalCompositeOperation=f}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(u){u.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var u=this.buffers[0],f=u.getContext("2d");this.clearCanvas(f),f.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var u=this.buffers[1],f=u.getContext("2d");this.clearCanvas(f),f.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var h=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(h.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var d=assetLoader.getLumaCanvas(this.canvasContext.canvas),v=d.getContext("2d");v.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(d,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(u,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(u){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!u)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var f=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(f),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(f),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(c,u,f,h){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var d=4;u.ty==="rc"?d=5:u.ty==="el"?d=6:u.ty==="sr"&&(d=7),this.sh=ShapePropertyFactory.getShapeProp(c,u,d,c);var v,p=f.length,m;for(v=0;v<p;v+=1)f[v].closed||(m={transforms:h.addTransformSequence(f[v].transforms),trNodes:[]},this.styledShapes.push(m),f[v].elements.push(m))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(c,u,f){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(c,u){var f={data:c,type:c.ty,preTransforms:this.transformsManager.addTransformSequence(u),transforms:[],elements:[],closed:c.hd===!0},h={};if(c.ty==="fl"||c.ty==="st"?(h.c=PropertyFactory.getProp(this,c.c,1,255,this),h.c.k||(f.co="rgb("+bmFloor(h.c.v[0])+","+bmFloor(h.c.v[1])+","+bmFloor(h.c.v[2])+")")):(c.ty==="gf"||c.ty==="gs")&&(h.s=PropertyFactory.getProp(this,c.s,1,null,this),h.e=PropertyFactory.getProp(this,c.e,1,null,this),h.h=PropertyFactory.getProp(this,c.h||{k:0},0,.01,this),h.a=PropertyFactory.getProp(this,c.a||{k:0},0,degToRads,this),h.g=new GradientProperty(this,c.g,this)),h.o=PropertyFactory.getProp(this,c.o,0,.01,this),c.ty==="st"||c.ty==="gs"){if(f.lc=lineCapEnum[c.lc||2],f.lj=lineJoinEnum[c.lj||2],c.lj==1&&(f.ml=c.ml),h.w=PropertyFactory.getProp(this,c.w,0,null,this),h.w.k||(f.wi=h.w.v),c.d){var d=new DashProperty(this,c.d,"canvas",this);h.d=d,h.d.k||(f.da=h.d.dashArray,f.do=h.d.dashoffset[0])}}else f.r=c.r===2?"evenodd":"nonzero";return this.stylesList.push(f),h.style=f,h},CVShapeElement.prototype.createGroupElement=function(){var c={it:[],prevViewData:[]};return c},CVShapeElement.prototype.createTransformElement=function(c){var u={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,c.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,c,this)}};return u},CVShapeElement.prototype.createShapeElement=function(c){var u=new CVShapeData(this,c,this.stylesList,this.transformsManager);return this.shapes.push(u),this.addShapeToModifiers(u),u},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var c,u=this.itemsData.length;for(c=0;c<u;c+=1)this.prevViewData[c]=this.itemsData[c];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),u=this.dynamicProperties.length,c=0;c<u;c+=1)this.dynamicProperties[c].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(c){var u,f=this.stylesList.length;for(u=0;u<f;u+=1)this.stylesList[u].closed||this.stylesList[u].transforms.push(c)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var c,u=this.stylesList.length;for(c=0;c<u;c+=1)this.stylesList[c].closed||this.stylesList[c].transforms.pop()},CVShapeElement.prototype.closeStyles=function(c){var u,f=c.length;for(u=0;u<f;u+=1)c[u].closed=!0},CVShapeElement.prototype.searchShapes=function(c,u,f,h,d){var v,p=c.length-1,m,g,y=[],x=[],Bn,b,re,_=[].concat(d);for(v=p;v>=0;v-=1){if(Bn=this.searchProcessedElement(c[v]),Bn?u[v]=f[Bn-1]:c[v]._shouldRender=h,c[v].ty==="fl"||c[v].ty==="st"||c[v].ty==="gf"||c[v].ty==="gs")Bn?u[v].style.closed=!1:u[v]=this.createStyleElement(c[v],_),y.push(u[v].style);else if(c[v].ty==="gr"){if(!Bn)u[v]=this.createGroupElement(c[v]);else for(g=u[v].it.length,m=0;m<g;m+=1)u[v].prevViewData[m]=u[v].it[m];this.searchShapes(c[v].it,u[v].it,u[v].prevViewData,h,_)}else c[v].ty==="tr"?(Bn||(re=this.createTransformElement(c[v]),u[v]=re),_.push(u[v]),this.addTransformToStyleList(u[v])):c[v].ty==="sh"||c[v].ty==="rc"||c[v].ty==="el"||c[v].ty==="sr"?Bn||(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"?(Bn?(b=u[v],b.closed=!1):(b=ShapeModifiers.getModifier(c[v].ty),b.init(this,c[v]),u[v]=b,this.shapeModifiers.push(b)),x.push(b)):c[v].ty==="rp"&&(Bn?(b=u[v],b.closed=!0):(b=ShapeModifiers.getModifier(c[v].ty),u[v]=b,b.init(this,c,v,u),this.shapeModifiers.push(b),h=!1),x.push(b));this.addProcessedElement(c[v],v+1)}for(this.removeTransformFromStyleList(),this.closeStyles(y),p=x.length,v=0;v<p;v+=1)x[v].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(c,u){(c._opMdf||u.op._mdf||this._isFirstFrame)&&(u.opacity=c.opacity,u.opacity*=u.op.v,u._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var c,u=this.stylesList.length,f,h,d,v,p,m,g=this.globalData.renderer,y=this.globalData.canvasContext,x,Bn;for(c=0;c<u;c+=1)if(Bn=this.stylesList[c],x=Bn.type,!((x==="st"||x==="gs")&&Bn.wi===0||!Bn.data._shouldRender||Bn.coOp===0||this.globalData.currentGlobalAlpha===0)){for(g.save(),p=Bn.elements,x==="st"||x==="gs"?(g.ctxStrokeStyle(x==="st"?Bn.co:Bn.grd),g.ctxLineWidth(Bn.wi),g.ctxLineCap(Bn.lc),g.ctxLineJoin(Bn.lj),g.ctxMiterLimit(Bn.ml||0)):g.ctxFillStyle(x==="fl"?Bn.co:Bn.grd),g.ctxOpacity(Bn.coOp),x!=="st"&&x!=="gs"&&y.beginPath(),g.ctxTransform(Bn.preTransforms.finalTransform.props),h=p.length,f=0;f<h;f+=1){for((x==="st"||x==="gs")&&(y.beginPath(),Bn.da&&(y.setLineDash(Bn.da),y.lineDashOffset=Bn.do)),m=p[f].trNodes,v=m.length,d=0;d<v;d+=1)m[d].t==="m"?y.moveTo(m[d].p[0],m[d].p[1]):m[d].t==="c"?y.bezierCurveTo(m[d].pts[0],m[d].pts[1],m[d].pts[2],m[d].pts[3],m[d].pts[4],m[d].pts[5]):y.closePath();(x==="st"||x==="gs")&&(g.ctxStroke(),Bn.da&&y.setLineDash(this.dashResetter))}x!=="st"&&x!=="gs"&&this.globalData.renderer.ctxFill(Bn.r),g.restore()}},CVShapeElement.prototype.renderShape=function(c,u,f,h){var d,v=u.length-1,p;for(p=c,d=v;d>=0;d-=1)u[d].ty==="tr"?(p=f[d].transform,this.renderShapeTransform(c,p)):u[d].ty==="sh"||u[d].ty==="el"||u[d].ty==="rc"||u[d].ty==="sr"?this.renderPath(u[d],f[d]):u[d].ty==="fl"?this.renderFill(u[d],f[d],p):u[d].ty==="st"?this.renderStroke(u[d],f[d],p):u[d].ty==="gf"||u[d].ty==="gs"?this.renderGradientFill(u[d],f[d],p):u[d].ty==="gr"?this.renderShape(p,u[d].it,f[d].it):u[d].ty;h&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(c,u){if(this._isFirstFrame||u._mdf||c.transforms._mdf){var f=c.trNodes,h=u.paths,d,v,p,m=h._length;f.length=0;var g=c.transforms.finalTransform;for(p=0;p<m;p+=1){var y=h.shapes[p];if(y&&y.v){for(v=y._length,d=1;d<v;d+=1)d===1&&f.push({t:"m",p:g.applyToPointArray(y.v[0][0],y.v[0][1],0)}),f.push({t:"c",pts:g.applyToTriplePoints(y.o[d-1],y.i[d],y.v[d])});v===1&&f.push({t:"m",p:g.applyToPointArray(y.v[0][0],y.v[0][1],0)}),y.c&&v&&(f.push({t:"c",pts:g.applyToTriplePoints(y.o[d-1],y.i[0],y.v[0])}),f.push({t:"z"}))}}c.trNodes=f}},CVShapeElement.prototype.renderPath=function(c,u){if(c.hd!==!0&&c._shouldRender){var f,h=u.styledShapes.length;for(f=0;f<h;f+=1)this.renderStyledShape(u.styledShapes[f],u.sh)}},CVShapeElement.prototype.renderFill=function(c,u,f){var h=u.style;(u.c._mdf||this._isFirstFrame)&&(h.co="rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||f._opMdf||this._isFirstFrame)&&(h.coOp=u.o.v*f.opacity)},CVShapeElement.prototype.renderGradientFill=function(c,u,f){var h=u.style,d;if(!h.grd||u.g._mdf||u.s._mdf||u.e._mdf||c.t!==1&&(u.h._mdf||u.a._mdf)){var v=this.globalData.canvasContext,p=u.s.v,m=u.e.v;if(c.t===1)d=v.createLinearGradient(p[0],p[1],m[0],m[1]);else{var g=Math.sqrt(Math.pow(p[0]-m[0],2)+Math.pow(p[1]-m[1],2)),y=Math.atan2(m[1]-p[1],m[0]-p[0]),x=u.h.v;x>=1?x=.99:x<=-1&&(x=-.99);var Bn=g*x,b=Math.cos(y+u.a.v)*Bn+p[0],re=Math.sin(y+u.a.v)*Bn+p[1];d=v.createRadialGradient(b,re,0,p[0],p[1],g)}var _,vn=c.g.p,Fn=u.g.c,Pn=1;for(_=0;_<vn;_+=1)u.g._hasOpacity&&u.g._collapsable&&(Pn=u.g.o[_*2+1]),d.addColorStop(Fn[_*4]/100,"rgba("+Fn[_*4+1]+","+Fn[_*4+2]+","+Fn[_*4+3]+","+Pn+")");h.grd=d}h.coOp=u.o.v*f.opacity},CVShapeElement.prototype.renderStroke=function(c,u,f){var h=u.style,d=u.d;d&&(d._mdf||this._isFirstFrame)&&(h.da=d.dashArray,h.do=d.dashoffset[0]),(u.c._mdf||this._isFirstFrame)&&(h.co="rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||f._opMdf||this._isFirstFrame)&&(h.coOp=u.o.v*f.opacity),(u.w._mdf||this._isFirstFrame)&&(h.wi=u.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(c,u,f){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var c=this.textProperty.currentData;this.renderedLetters=createSizedArray(c.l?c.l.length:0);var u=!1;c.fc?(u=!0,this.values.fill=this.buildColor(c.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=u;var f=!1;c.sc&&(f=!0,this.values.stroke=this.buildColor(c.sc),this.values.sWidth=c.sw);var h=this.globalData.fontManager.getFontByName(c.f),d,v,p=c.l,m=this.mHelper;this.stroke=f,this.values.fValue=c.finalSize+"px "+this.globalData.fontManager.getFontByName(c.f).fFamily,v=c.finalText.length;var g,y,x,Bn,b,re,_,vn,Fn,Pn,w=this.data.singleShape,J=c.tr*.001*c.finalSize,gn=0,Vn=0,zn=!0,Wn=0;for(d=0;d<v;d+=1){g=this.globalData.fontManager.getCharData(c.finalText[d],h.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily),y=g&&g.data||{},m.reset(),w&&p[d].n&&(gn=-J,Vn+=c.yOffset,Vn+=zn?1:0,zn=!1),b=y.shapes?y.shapes[0].it:[],_=b.length,m.scale(c.finalSize/100,c.finalSize/100),w&&this.applyTextPropertiesToMatrix(c,m,p[d].line,gn,Vn),Fn=createSizedArray(_-1);var Un=0;for(re=0;re<_;re+=1)if(b[re].ty==="sh"){for(Bn=b[re].ks.k.i.length,vn=b[re].ks.k,Pn=[],x=1;x<Bn;x+=1)x===1&&Pn.push(m.applyToX(vn.v[0][0],vn.v[0][1],0),m.applyToY(vn.v[0][0],vn.v[0][1],0)),Pn.push(m.applyToX(vn.o[x-1][0],vn.o[x-1][1],0),m.applyToY(vn.o[x-1][0],vn.o[x-1][1],0),m.applyToX(vn.i[x][0],vn.i[x][1],0),m.applyToY(vn.i[x][0],vn.i[x][1],0),m.applyToX(vn.v[x][0],vn.v[x][1],0),m.applyToY(vn.v[x][0],vn.v[x][1],0));Pn.push(m.applyToX(vn.o[x-1][0],vn.o[x-1][1],0),m.applyToY(vn.o[x-1][0],vn.o[x-1][1],0),m.applyToX(vn.i[0][0],vn.i[0][1],0),m.applyToY(vn.i[0][0],vn.i[0][1],0),m.applyToX(vn.v[0][0],vn.v[0][1],0),m.applyToY(vn.v[0][0],vn.v[0][1],0)),Fn[Un]=Pn,Un+=1}w&&(gn+=p[d].l,gn+=J),this.textSpans[Wn]?this.textSpans[Wn].elem=Fn:this.textSpans[Wn]={elem:Fn},Wn+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var c=this.canvasContext;c.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var u,f,h,d,v,p,m=this.textAnimator.renderedLetters,g=this.textProperty.currentData.l;f=g.length;var y,x=null,Bn=null,b=null,re,_,vn=this.globalData.renderer;for(u=0;u<f;u+=1)if(!g[u].n){if(y=m[u],y&&(vn.save(),vn.ctxTransform(y.p),vn.ctxOpacity(y.o)),this.fill){for(y&&y.fc?x!==y.fc&&(vn.ctxFillStyle(y.fc),x=y.fc):x!==this.values.fill&&(x=this.values.fill,vn.ctxFillStyle(this.values.fill)),re=this.textSpans[u].elem,d=re.length,this.globalData.canvasContext.beginPath(),h=0;h<d;h+=1)for(_=re[h],p=_.length,this.globalData.canvasContext.moveTo(_[0],_[1]),v=2;v<p;v+=6)this.globalData.canvasContext.bezierCurveTo(_[v],_[v+1],_[v+2],_[v+3],_[v+4],_[v+5]);this.globalData.canvasContext.closePath(),vn.ctxFill()}if(this.stroke){for(y&&y.sw?b!==y.sw&&(b=y.sw,vn.ctxLineWidth(y.sw)):b!==this.values.sWidth&&(b=this.values.sWidth,vn.ctxLineWidth(this.values.sWidth)),y&&y.sc?Bn!==y.sc&&(Bn=y.sc,vn.ctxStrokeStyle(y.sc)):Bn!==this.values.stroke&&(Bn=this.values.stroke,vn.ctxStrokeStyle(this.values.stroke)),re=this.textSpans[u].elem,d=re.length,this.globalData.canvasContext.beginPath(),h=0;h<d;h+=1)for(_=re[h],p=_.length,this.globalData.canvasContext.moveTo(_[0],_[1]),v=2;v<p;v+=6)this.globalData.canvasContext.bezierCurveTo(_[v],_[v+1],_[v+2],_[v+3],_[v+4],_[v+5]);this.globalData.canvasContext.closePath(),vn.ctxStroke()}y&&this.globalData.renderer.restore()}};function CVImageElement(c,u,f){this.assetData=u.getAssetData(c.refId),this.img=u.imageLoader.getAsset(this.assetData),this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var c=createTag("canvas");c.width=this.assetData.w,c.height=this.assetData.h;var u=c.getContext("2d"),f=this.img.width,h=this.img.height,d=f/h,v=this.assetData.w/this.assetData.h,p,m,g=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;d>v&&g==="xMidYMid slice"||d<v&&g!=="xMidYMid slice"?(m=h,p=m*v):(p=f,m=p/v),u.drawImage(this.img,(f-p)/2,(h-m)/2,p,m,0,0,this.assetData.w,this.assetData.h),this.img=c}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(c,u,f){this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(c){return new CVShapeElement(c,this.globalData,this)},CanvasRendererBase.prototype.createText=function(c){return new CVTextElement(c,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(c){return new CVImageElement(c,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(c){return new CVSolidElement(c,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(c){c[0]===1&&c[1]===0&&c[4]===0&&c[5]===1&&c[12]===0&&c[13]===0||this.canvasContext.transform(c[0],c[1],c[4],c[5],c[12],c[13])},CanvasRendererBase.prototype.ctxOpacity=function(c){this.canvasContext.globalAlpha*=c<0?0:c},CanvasRendererBase.prototype.ctxFillStyle=function(c){this.canvasContext.fillStyle=c},CanvasRendererBase.prototype.ctxStrokeStyle=function(c){this.canvasContext.strokeStyle=c},CanvasRendererBase.prototype.ctxLineWidth=function(c){this.canvasContext.lineWidth=c},CanvasRendererBase.prototype.ctxLineCap=function(c){this.canvasContext.lineCap=c},CanvasRendererBase.prototype.ctxLineJoin=function(c){this.canvasContext.lineJoin=c},CanvasRendererBase.prototype.ctxMiterLimit=function(c){this.canvasContext.miterLimit=c},CanvasRendererBase.prototype.ctxFill=function(c){this.canvasContext.fill(c)},CanvasRendererBase.prototype.ctxFillRect=function(c,u,f,h){this.canvasContext.fillRect(c,u,f,h)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(c){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}c&&(this.globalData.blendMode="source-over"),this.contextData.restore(c)},CanvasRendererBase.prototype.configAnimation=function(c){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var u=this.animationItem.container.style;u.width="100%",u.height="100%";var f="0px 0px 0px";u.transformOrigin=f,u.mozTransformOrigin=f,u.webkitTransformOrigin=f,u["-webkit-transform"]=f,u.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=c,this.layers=c.layers,this.transformCanvas={w:c.w,h:c.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(c,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(c.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(c,u){this.reset();var f,h;c?(f=c,h=u,this.canvasContext.canvas.width=f,this.canvasContext.canvas.height=h):(this.animationItem.wrapper&&this.animationItem.container?(f=this.animationItem.wrapper.offsetWidth,h=this.animationItem.wrapper.offsetHeight):(f=this.canvasContext.canvas.width,h=this.canvasContext.canvas.height),this.canvasContext.canvas.width=f*this.renderConfig.dpr,this.canvasContext.canvas.height=h*this.renderConfig.dpr);var d,v;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var p=this.renderConfig.preserveAspectRatio.split(" "),m=p[1]||"meet",g=p[0]||"xMidYMid",y=g.substr(0,4),x=g.substr(4);d=f/h,v=this.transformCanvas.w/this.transformCanvas.h,v>d&&m==="meet"||v<d&&m==="slice"?(this.transformCanvas.sx=f/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=f/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=h/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=h/(this.transformCanvas.h/this.renderConfig.dpr)),y==="xMid"&&(v<d&&m==="meet"||v>d&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(h/this.transformCanvas.h))/2*this.renderConfig.dpr:y==="xMax"&&(v<d&&m==="meet"||v>d&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(h/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,x==="YMid"&&(v>d&&m==="meet"||v<d&&m==="slice")?this.transformCanvas.ty=(h-this.transformCanvas.h*(f/this.transformCanvas.w))/2*this.renderConfig.dpr:x==="YMax"&&(v>d&&m==="meet"||v<d&&m==="slice")?this.transformCanvas.ty=(h-this.transformCanvas.h*(f/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=f/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=h/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var c,u=this.layers?this.layers.length:0;for(c=u-1;c>=0;c-=1)this.elements[c]&&this.elements[c].destroy&&this.elements[c].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(c,u){if(!(this.renderedFrame===c&&this.renderConfig.clearCanvas===!0&&!u||this.destroyed||c===-1)){this.renderedFrame=c,this.globalData.frameNum=c-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||u,this.globalData.projectInterface.currentFrame=c;var f,h=this.layers.length;for(this.completeLayers||this.checkLayers(c),f=h-1;f>=0;f-=1)(this.completeLayers||this.elements[f])&&this.elements[f].prepareFrame(c-this.layers[f].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),f=h-1;f>=0;f-=1)(this.completeLayers||this.elements[f])&&this.elements[f].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(c){var u=this.elements;if(!(u[c]||this.layers[c].ty===99)){var f=this.createItem(this.layers[c],this,this.globalData);u[c]=f,f.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();c.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var c,u=15;for(c=0;c<u;c+=1){var f=new CanvasContext;this.stack[c]=f}this._length=u,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var c=this._length*2,u=0;for(u=this._length;u<c;u+=1)this.stack[u]=new CanvasContext;this._length=c},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(c){this.cArrPos-=1;var u=this.stack[this.cArrPos],f=u.transform,h,d=this.cTr.props;for(h=0;h<16;h+=1)d[h]=f[h];if(c){this.nativeContext.restore();var v=this.stack[this.cArrPos+1];this.appliedFillStyle=v.fillStyle,this.appliedStrokeStyle=v.strokeStyle,this.appliedLineWidth=v.lineWidth,this.appliedLineCap=v.lineCap,this.appliedLineJoin=v.lineJoin,this.appliedMiterLimit=v.miterLimit}this.nativeContext.setTransform(f[0],f[1],f[4],f[5],f[12],f[13]),(c||u.opacity!==-1&&this.currentOpacity!==u.opacity)&&(this.nativeContext.globalAlpha=u.opacity,this.currentOpacity=u.opacity),this.currentFillStyle=u.fillStyle,this.currentStrokeStyle=u.strokeStyle,this.currentLineWidth=u.lineWidth,this.currentLineCap=u.lineCap,this.currentLineJoin=u.lineJoin,this.currentMiterLimit=u.miterLimit},CVContextData.prototype.save=function(c){c&&this.nativeContext.save();var u=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var f=this.stack[this.cArrPos],h;for(h=0;h<16;h+=1)f.transform[h]=u[h];this.cArrPos+=1;var d=this.stack[this.cArrPos];d.opacity=f.opacity,d.fillStyle=f.fillStyle,d.strokeStyle=f.strokeStyle,d.lineWidth=f.lineWidth,d.lineCap=f.lineCap,d.lineJoin=f.lineJoin,d.miterLimit=f.miterLimit},CVContextData.prototype.setOpacity=function(c){this.stack[this.cArrPos].opacity=c},CVContextData.prototype.setContext=function(c){this.nativeContext=c},CVContextData.prototype.fillStyle=function(c){this.stack[this.cArrPos].fillStyle!==c&&(this.currentFillStyle=c,this.stack[this.cArrPos].fillStyle=c)},CVContextData.prototype.strokeStyle=function(c){this.stack[this.cArrPos].strokeStyle!==c&&(this.currentStrokeStyle=c,this.stack[this.cArrPos].strokeStyle=c)},CVContextData.prototype.lineWidth=function(c){this.stack[this.cArrPos].lineWidth!==c&&(this.currentLineWidth=c,this.stack[this.cArrPos].lineWidth=c)},CVContextData.prototype.lineCap=function(c){this.stack[this.cArrPos].lineCap!==c&&(this.currentLineCap=c,this.stack[this.cArrPos].lineCap=c)},CVContextData.prototype.lineJoin=function(c){this.stack[this.cArrPos].lineJoin!==c&&(this.currentLineJoin=c,this.stack[this.cArrPos].lineJoin=c)},CVContextData.prototype.miterLimit=function(c){this.stack[this.cArrPos].miterLimit!==c&&(this.currentMiterLimit=c,this.stack[this.cArrPos].miterLimit=c)},CVContextData.prototype.transform=function(c){this.transformMat.cloneFromProps(c);var u=this.cTr;this.transformMat.multiply(u),u.cloneFromProps(this.transformMat.props);var f=u.props;this.nativeContext.setTransform(f[0],f[1],f[4],f[5],f[12],f[13])},CVContextData.prototype.opacity=function(c){var u=this.stack[this.cArrPos].opacity;u*=c<0?0:c,this.stack[this.cArrPos].opacity!==u&&(this.currentOpacity!==c&&(this.nativeContext.globalAlpha=c,this.currentOpacity=c),this.stack[this.cArrPos].opacity=u)},CVContextData.prototype.fill=function(c){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(c)},CVContextData.prototype.fillRect=function(c,u,f,h){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(c,u,f,h)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(c,u,f){this.completeLayers=!1,this.layers=c.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(c,u,f),this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var c=this.canvasContext;c.beginPath(),c.moveTo(0,0),c.lineTo(this.data.w,0),c.lineTo(this.data.w,this.data.h),c.lineTo(0,this.data.h),c.lineTo(0,0),c.clip();var u,f=this.layers.length;for(u=f-1;u>=0;u-=1)(this.completeLayers||this.elements[u])&&this.elements[u].renderFrame()},CVCompElement.prototype.destroy=function(){var c,u=this.layers.length;for(c=u-1;c>=0;c-=1)this.elements[c]&&this.elements[c].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(c){return new CVCompElement(c,this.globalData,this)};function CanvasRenderer(c,u){this.animationItem=c,this.renderConfig={clearCanvas:u&&u.clearCanvas!==void 0?u.clearCanvas:!0,context:u&&u.context||null,progressiveLoad:u&&u.progressiveLoad||!1,preserveAspectRatio:u&&u.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:u&&u.contentVisibility||"visible",className:u&&u.className||"",id:u&&u.id||"",runExpressions:!u||u.runExpressions===void 0||u.runExpressions},this.renderConfig.dpr=u&&u.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=u&&u.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(c){return new CVCompElement(c,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var u=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var f=this.finalTransform.mat.toCSS();u.transform=f,u.webkitTransform=f}this.finalTransform._opMdf&&(u.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(c,u,f){this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var c;this.data.hasMask?(c=createNS("rect"),c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(c=createTag("div"),c.style.width=this.data.sw+"px",c.style.height=this.data.sh+"px",c.style.backgroundColor=this.data.sc),this.layerElement.appendChild(c)};function HShapeElement(c,u,f){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(c,u,f),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var c;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),c=this.svgElement;else{c=createNS("svg");var u=this.comp.data?this.comp.data:this.globalData.compSize;c.setAttribute("width",u.w),c.setAttribute("height",u.h),c.appendChild(this.shapesContainer),this.layerElement.appendChild(c)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=c},HShapeElement.prototype.getTransformedPoint=function(c,u){var f,h=c.length;for(f=0;f<h;f+=1)u=c[f].mProps.v.applyToPointArray(u[0],u[1],0);return u},HShapeElement.prototype.calculateShapeBoundingBox=function(c,u){var f=c.sh.v,h=c.transformers,d,v=f._length,p,m,g,y;if(!(v<=1)){for(d=0;d<v-1;d+=1)p=this.getTransformedPoint(h,f.v[d]),m=this.getTransformedPoint(h,f.o[d]),g=this.getTransformedPoint(h,f.i[d+1]),y=this.getTransformedPoint(h,f.v[d+1]),this.checkBounds(p,m,g,y,u);f.c&&(p=this.getTransformedPoint(h,f.v[d]),m=this.getTransformedPoint(h,f.o[d]),g=this.getTransformedPoint(h,f.i[0]),y=this.getTransformedPoint(h,f.v[0]),this.checkBounds(p,m,g,y,u))}},HShapeElement.prototype.checkBounds=function(c,u,f,h,d){this.getBoundsOfCurve(c,u,f,h);var v=this.shapeBoundingBox;d.x=bmMin(v.left,d.x),d.xMax=bmMax(v.right,d.xMax),d.y=bmMin(v.top,d.y),d.yMax=bmMax(v.bottom,d.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(c,u,f,h){for(var d=[[c[0],h[0]],[c[1],h[1]]],v,p,m,g,y,x,Bn,b=0;b<2;++b)p=6*c[b]-12*u[b]+6*f[b],v=-3*c[b]+9*u[b]-9*f[b]+3*h[b],m=3*u[b]-3*c[b],p|=0,v|=0,m|=0,v===0&&p===0||(v===0?(g=-m/p,g>0&&g<1&&d[b].push(this.calculateF(g,c,u,f,h,b))):(y=p*p-4*m*v,y>=0&&(x=(-p+bmSqrt(y))/(2*v),x>0&&x<1&&d[b].push(this.calculateF(x,c,u,f,h,b)),Bn=(-p-bmSqrt(y))/(2*v),Bn>0&&Bn<1&&d[b].push(this.calculateF(Bn,c,u,f,h,b)))));this.shapeBoundingBox.left=bmMin.apply(null,d[0]),this.shapeBoundingBox.top=bmMin.apply(null,d[1]),this.shapeBoundingBox.right=bmMax.apply(null,d[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,d[1])},HShapeElement.prototype.calculateF=function(c,u,f,h,d,v){return bmPow(1-c,3)*u[v]+3*bmPow(1-c,2)*c*f[v]+3*(1-c)*bmPow(c,2)*h[v]+bmPow(c,3)*d[v]},HShapeElement.prototype.calculateBoundingBox=function(c,u){var f,h=c.length;for(f=0;f<h;f+=1)c[f]&&c[f].sh?this.calculateShapeBoundingBox(c[f],u):c[f]&&c[f].it?this.calculateBoundingBox(c[f].it,u):c[f]&&c[f].style&&c[f].w&&this.expandStrokeBoundingBox(c[f].w,u)},HShapeElement.prototype.expandStrokeBoundingBox=function(c,u){var f=0;if(c.keyframes){for(var h=0;h<c.keyframes.length;h+=1){var d=c.keyframes[h].s;d>f&&(f=d)}f*=c.mult}else f=c.v*c.mult;u.x-=f,u.xMax+=f,u.y-=f,u.yMax+=f},HShapeElement.prototype.currentBoxContains=function(c){return this.currentBBox.x<=c.x&&this.currentBBox.y<=c.y&&this.currentBBox.width+this.currentBBox.x>=c.x+c.width&&this.currentBBox.height+this.currentBBox.y>=c.y+c.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.tempBoundingBox,u=999999;if(c.x=u,c.xMax=-u,c.y=u,c.yMax=-u,this.calculateBoundingBox(this.itemsData,c),c.width=c.xMax<c.x?0:c.xMax-c.x,c.height=c.yMax<c.y?0:c.yMax-c.y,this.currentBoxContains(c))return;var f=!1;if(this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.shapeCont.setAttribute("width",c.width),f=!0),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.shapeCont.setAttribute("height",c.height),f=!0),f||this.currentBBox.x!==c.x||this.currentBBox.y!==c.y){this.currentBBox.w=c.width,this.currentBBox.h=c.height,this.currentBBox.x=c.x,this.currentBBox.y=c.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var h=this.shapeCont.style,d="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";h.transform=d,h.webkitTransform=d}}};function HTextElement(c,u,f){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var c=createNS("g");this.maskedElement.appendChild(c),this.innerElem=c}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var c=this.textProperty.currentData;this.renderedLetters=createSizedArray(c.l?c.l.length:0);var u=this.innerElem.style,f=c.fc?this.buildColor(c.fc):"rgba(0,0,0,0)";u.fill=f,u.color=f,c.sc&&(u.stroke=this.buildColor(c.sc),u.strokeWidth=c.sw+"px");var h=this.globalData.fontManager.getFontByName(c.f);if(!this.globalData.fontManager.chars)if(u.fontSize=c.finalSize+"px",u.lineHeight=c.finalSize+"px",h.fClass)this.innerElem.className=h.fClass;else{u.fontFamily=h.fFamily;var d=c.fWeight,v=c.fStyle;u.fontStyle=v,u.fontWeight=d}var p,m,g=c.l;m=g.length;var y,x,Bn,b=this.mHelper,re,_="",vn=0;for(p=0;p<m;p+=1){if(this.globalData.fontManager.chars?(this.textPaths[vn]?y=this.textPaths[vn]:(y=createNS("path"),y.setAttribute("stroke-linecap",lineCapEnum[1]),y.setAttribute("stroke-linejoin",lineJoinEnum[2]),y.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[vn]?(x=this.textSpans[vn],Bn=x.children[0]):(x=createTag("div"),x.style.lineHeight=0,Bn=createNS("svg"),Bn.appendChild(y),styleDiv(x)))):this.isMasked?y=this.textPaths[vn]?this.textPaths[vn]:createNS("text"):this.textSpans[vn]?(x=this.textSpans[vn],y=this.textPaths[vn]):(x=createTag("span"),styleDiv(x),y=createTag("span"),styleDiv(y),x.appendChild(y)),this.globalData.fontManager.chars){var Fn=this.globalData.fontManager.getCharData(c.finalText[p],h.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily),Pn;if(Fn?Pn=Fn.data:Pn=null,b.reset(),Pn&&Pn.shapes&&Pn.shapes.length&&(re=Pn.shapes[0].it,b.scale(c.finalSize/100,c.finalSize/100),_=this.createPathShape(b,re),y.setAttribute("d",_)),this.isMasked)this.innerElem.appendChild(y);else{if(this.innerElem.appendChild(x),Pn&&Pn.shapes){document.body.appendChild(Bn);var w=Bn.getBBox();Bn.setAttribute("width",w.width+2),Bn.setAttribute("height",w.height+2),Bn.setAttribute("viewBox",w.x-1+" "+(w.y-1)+" "+(w.width+2)+" "+(w.height+2));var J=Bn.style,gn="translate("+(w.x-1)+"px,"+(w.y-1)+"px)";J.transform=gn,J.webkitTransform=gn,g[p].yOffset=w.y-1}else Bn.setAttribute("width",1),Bn.setAttribute("height",1);x.appendChild(Bn)}}else if(y.textContent=g[p].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(y);else{this.innerElem.appendChild(x);var Vn=y.style,zn="translate3d(0,"+-c.finalSize/1.2+"px,0)";Vn.transform=zn,Vn.webkitTransform=zn}this.isMasked?this.textSpans[vn]=y:this.textSpans[vn]=x,this.textSpans[vn].style.display="block",this.textPaths[vn]=y,vn+=1}for(;vn<this.textSpans.length;)this.textSpans[vn].style.display="none",vn+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var c;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),c=this.svgElement.style;var u="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";c.transform=u,c.webkitTransform=u}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var f,h,d=0,v=this.textAnimator.renderedLetters,p=this.textProperty.currentData.l;h=p.length;var m,g,y;for(f=0;f<h;f+=1)p[f].n?d+=1:(g=this.textSpans[f],y=this.textPaths[f],m=v[d],d+=1,m._mdf.m&&(this.isMasked?g.setAttribute("transform",m.m):(g.style.webkitTransform=m.m,g.style.transform=m.m)),g.style.opacity=m.o,m.sw&&m._mdf.sw&&y.setAttribute("stroke-width",m.sw),m.sc&&m._mdf.sc&&y.setAttribute("stroke",m.sc),m.fc&&m._mdf.fc&&(y.setAttribute("fill",m.fc),y.style.color=m.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var x=this.innerElem.getBBox();this.currentBBox.w!==x.width&&(this.currentBBox.w=x.width,this.svgElement.setAttribute("width",x.width)),this.currentBBox.h!==x.height&&(this.currentBBox.h=x.height,this.svgElement.setAttribute("height",x.height));var Bn=1;if(this.currentBBox.w!==x.width+Bn*2||this.currentBBox.h!==x.height+Bn*2||this.currentBBox.x!==x.x-Bn||this.currentBBox.y!==x.y-Bn){this.currentBBox.w=x.width+Bn*2,this.currentBBox.h=x.height+Bn*2,this.currentBBox.x=x.x-Bn,this.currentBBox.y=x.y-Bn,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),c=this.svgElement.style;var b="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";c.transform=b,c.webkitTransform=b}}}};function HCameraElement(c,u,f){this.initFrame(),this.initBaseData(c,u,f),this.initHierarchy();var h=PropertyFactory.getProp;if(this.pe=h(this,c.pe,0,0,this),c.ks.p.s?(this.px=h(this,c.ks.p.x,1,0,this),this.py=h(this,c.ks.p.y,1,0,this),this.pz=h(this,c.ks.p.z,1,0,this)):this.p=h(this,c.ks.p,1,0,this),c.ks.a&&(this.a=h(this,c.ks.a,1,0,this)),c.ks.or.k.length&&c.ks.or.k[0].to){var d,v=c.ks.or.k.length;for(d=0;d<v;d+=1)c.ks.or.k[d].to=null,c.ks.or.k[d].ti=null}this.or=h(this,c.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=h(this,c.ks.rx,0,degToRads,this),this.ry=h(this,c.ks.ry,0,degToRads,this),this.rz=h(this,c.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var c,u=this.comp.threeDElements.length,f,h,d;for(c=0;c<u;c+=1)if(f=this.comp.threeDElements[c],f.type==="3d"){h=f.perspectiveElem.style,d=f.container.style;var v=this.pe.v+"px",p="0px 0px 0px",m="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";h.perspective=v,h.webkitPerspective=v,d.transformOrigin=p,d.mozTransformOrigin=p,d.webkitTransformOrigin=p,h.transform=m,h.webkitTransform=m}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var c=this._isFirstFrame,u,f;if(this.hierarchy)for(f=this.hierarchy.length,u=0;u<f;u+=1)c=this.hierarchy[u].finalTransform.mProp._mdf||c;if(c||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(f=this.hierarchy.length-1,u=f;u>=0;u-=1){var h=this.hierarchy[u].finalTransform.mProp;this.mat.translate(-h.p.v[0],-h.p.v[1],h.p.v[2]),this.mat.rotateX(-h.or.v[0]).rotateY(-h.or.v[1]).rotateZ(h.or.v[2]),this.mat.rotateX(-h.rx.v).rotateY(-h.ry.v).rotateZ(h.rz.v),this.mat.scale(1/h.s.v[0],1/h.s.v[1],1/h.s.v[2]),this.mat.translate(h.a.v[0],h.a.v[1],h.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var d;this.p?d=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:d=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var v=Math.sqrt(Math.pow(d[0],2)+Math.pow(d[1],2)+Math.pow(d[2],2)),p=[d[0]/v,d[1]/v,d[2]/v],m=Math.sqrt(p[2]*p[2]+p[0]*p[0]),g=Math.atan2(p[1],m),y=Math.atan2(p[0],-p[2]);this.mat.rotateY(y).rotateX(-g)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var x=!this._prevMat.equals(this.mat);if((x||this.pe._mdf)&&this.comp.threeDElements){f=this.comp.threeDElements.length;var Bn,b,re;for(u=0;u<f;u+=1)if(Bn=this.comp.threeDElements[u],Bn.type==="3d"){if(x){var _=this.mat.toCSS();re=Bn.container.style,re.transform=_,re.webkitTransform=_}this.pe._mdf&&(b=Bn.perspectiveElem.style,b.perspective=this.pe.v+"px",b.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(c,u,f){this.assetData=u.getAssetData(c.refId),this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData),u=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",c),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(u),u.crossOrigin="anonymous",u.src=c,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(c,u){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:u&&u.className||"",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(u&&u.hideOnTransparent===!1),filterSize:{width:u&&u.filterSize&&u.filterSize.width||"400%",height:u&&u.filterSize&&u.filterSize.height||"400%",x:u&&u.filterSize&&u.filterSize.x||"-100%",y:u&&u.filterSize&&u.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();c.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(c,u){var f=c.getBaseElement();if(f){var h=this.layers[u];if(!h.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(f,u);else{for(var d=0,v,p,m;d<u;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement&&(p=this.elements[d],m=this.layers[d].ddd?this.getThreeDContainerByPos(d):p.getBaseElement(),v=m||v),d+=1;v?(!h.ddd||!this.supports3d)&&this.layerElement.insertBefore(f,v):(!h.ddd||!this.supports3d)&&this.layerElement.appendChild(f)}else this.addTo3dContainer(f,u)}},HybridRendererBase.prototype.createShape=function(c){return this.supports3d?new HShapeElement(c,this.globalData,this):new SVGShapeElement(c,this.globalData,this)},HybridRendererBase.prototype.createText=function(c){return this.supports3d?new HTextElement(c,this.globalData,this):new SVGTextLottieElement(c,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(c){return this.camera=new HCameraElement(c,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(c){return this.supports3d?new HImageElement(c,this.globalData,this):new IImageElement(c,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(c){return this.supports3d?new HSolidElement(c,this.globalData,this):new ISolidElement(c,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(c){for(var u=0,f=this.threeDElements.length;u<f;){if(this.threeDElements[u].startPos<=c&&this.threeDElements[u].endPos>=c)return this.threeDElements[u].perspectiveElem;u+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(c,u){var f=createTag("div"),h,d;styleDiv(f);var v=createTag("div");if(styleDiv(v),u==="3d"){h=f.style,h.width=this.globalData.compSize.w+"px",h.height=this.globalData.compSize.h+"px";var p="50% 50%";h.webkitTransformOrigin=p,h.mozTransformOrigin=p,h.transformOrigin=p,d=v.style;var m="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";d.transform=m,d.webkitTransform=m}f.appendChild(v);var g={container:v,perspectiveElem:f,startPos:c,endPos:c,type:u};return this.threeDElements.push(g),g},HybridRendererBase.prototype.build3dContainers=function(){var c,u=this.layers.length,f,h="";for(c=0;c<u;c+=1)this.layers[c].ddd&&this.layers[c].ty!==3?(h!=="3d"&&(h="3d",f=this.createThreeDContainer(c,"3d")),f.endPos=Math.max(f.endPos,c)):(h!=="2d"&&(h="2d",f=this.createThreeDContainer(c,"2d")),f.endPos=Math.max(f.endPos,c));for(u=this.threeDElements.length,c=u-1;c>=0;c-=1)this.resizerElem.appendChild(this.threeDElements[c].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(c,u){for(var f=0,h=this.threeDElements.length;f<h;){if(u<=this.threeDElements[f].endPos){for(var d=this.threeDElements[f].startPos,v;d<u;)this.elements[d]&&this.elements[d].getBaseElement&&(v=this.elements[d].getBaseElement()),d+=1;v?this.threeDElements[f].container.insertBefore(c,v):this.threeDElements[f].container.appendChild(c);break}f+=1}},HybridRendererBase.prototype.configAnimation=function(c){var u=createTag("div"),f=this.animationItem.wrapper,h=u.style;h.width=c.w+"px",h.height=c.h+"px",this.resizerElem=u,styleDiv(u),h.transformStyle="flat",h.mozTransformStyle="flat",h.webkitTransformStyle="flat",this.renderConfig.className&&u.setAttribute("class",this.renderConfig.className),f.appendChild(u),h.overflow="hidden";var d=createNS("svg");d.setAttribute("width","1"),d.setAttribute("height","1"),styleDiv(d),this.resizerElem.appendChild(d);var v=createNS("defs");d.appendChild(v),this.data=c,this.setupGlobalData(c,d),this.globalData.defs=v,this.layers=c.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var c,u=this.layers?this.layers.length:0;for(c=0;c<u;c+=1)this.elements[c]&&this.elements[c].destroy&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var c=this.animationItem.wrapper.offsetWidth,u=this.animationItem.wrapper.offsetHeight,f=c/u,h=this.globalData.compSize.w/this.globalData.compSize.h,d,v,p,m;h>f?(d=c/this.globalData.compSize.w,v=c/this.globalData.compSize.w,p=0,m=(u-this.globalData.compSize.h*(c/this.globalData.compSize.w))/2):(d=u/this.globalData.compSize.h,v=u/this.globalData.compSize.h,p=(c-this.globalData.compSize.w*(u/this.globalData.compSize.h))/2,m=0);var g=this.resizerElem.style;g.webkitTransform="matrix3d("+d+",0,0,0,0,"+v+",0,0,0,0,1,0,"+p+","+m+",0,1)",g.transform=g.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var c=this.globalData.compSize.w,u=this.globalData.compSize.h,f,h=this.threeDElements.length;for(f=0;f<h;f+=1){var d=this.threeDElements[f].perspectiveElem.style;d.webkitPerspective=Math.sqrt(Math.pow(c,2)+Math.pow(u,2))+"px",d.perspective=d.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(c){var u,f=c.length,h=createTag("div");for(u=0;u<f;u+=1)if(c[u].xt){var d=this.createComp(c[u],h,this.globalData.comp,null);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}};function HCompElement(c,u,f){this.layers=c.layers,this.supports3d=!c.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(c,u,f),this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(c,u){for(var f=0,h;f<u;)this.elements[f]&&this.elements[f].getBaseElement&&(h=this.elements[f].getBaseElement()),f+=1;h?this.layerElement.insertBefore(c,h):this.layerElement.appendChild(c)},HCompElement.prototype.createComp=function(c){return this.supports3d?new HCompElement(c,this.globalData,this):new SVGCompElement(c,this.globalData,this)};function HybridRenderer(c,u){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:u&&u.className||"",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(u&&u.hideOnTransparent===!1),filterSize:{width:u&&u.filterSize&&u.filterSize.width||"400%",height:u&&u.filterSize&&u.filterSize.height||"400%",x:u&&u.filterSize&&u.filterSize.x||"-100%",y:u&&u.filterSize&&u.filterSize.y||"-100%"},runExpressions:!u||u.runExpressions===void 0||u.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(c){return this.supports3d?new HCompElement(c,this.globalData,this):new SVGCompElement(c,this.globalData,this)};var CompExpressionInterface=function(){return function(c){function u(f){for(var h=0,d=c.layers.length;h<d;){if(c.layers[h].nm===f||c.layers[h].ind===f)return c.elements[h].layerInterface;h+=1}return null}return Object.defineProperty(u,"_name",{value:c.data.nm}),u.layer=u,u.pixelAspect=1,u.height=c.data.h||c.globalData.compSize.h,u.width=c.data.w||c.globalData.compSize.w,u.pixelAspect=1,u.frameDuration=1/c.globalData.frameRate,u.displayStartTime=0,u.numLayers=c.layers.length,u}}();function _typeof$2(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(f){return typeof f}:_typeof$2=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$2(c)}function seedRandom(c,u){var f=this,h=256,d=6,v=52,p="random",m=u.pow(h,d),g=u.pow(2,v),y=g*2,x=h-1,Bn;function b(J,gn,Vn){var zn=[];gn=gn===!0?{entropy:!0}:gn||{};var Wn=Fn(vn(gn.entropy?[J,w(c)]:J===null?Pn():J,3),zn),Un=new re(zn),er=function(){for(var tr=Un.g(d),Qn=m,ir=0;tr<g;)tr=(tr+ir)*h,Qn*=h,ir=Un.g(1);for(;tr>=y;)tr/=2,Qn/=2,ir>>>=1;return(tr+ir)/Qn};return er.int32=function(){return Un.g(4)|0},er.quick=function(){return Un.g(4)/4294967296},er.double=er,Fn(w(Un.S),c),(gn.pass||Vn||function(Jn,tr,Qn,ir){return ir&&(ir.S&&_(ir,Un),Jn.state=function(){return _(Un,{})}),Qn?(u[p]=Jn,tr):Jn})(er,Wn,"global"in gn?gn.global:this==u,gn.state)}u["seed"+p]=b;function re(J){var gn,Vn=J.length,zn=this,Wn=0,Un=zn.i=zn.j=0,er=zn.S=[];for(Vn||(J=[Vn++]);Wn<h;)er[Wn]=Wn++;for(Wn=0;Wn<h;Wn++)er[Wn]=er[Un=x&Un+J[Wn%Vn]+(gn=er[Wn])],er[Un]=gn;zn.g=function(Jn){for(var tr,Qn=0,ir=zn.i,cr=zn.j,Xn=zn.S;Jn--;)tr=Xn[ir=x&ir+1],Qn=Qn*h+Xn[x&(Xn[ir]=Xn[cr=x&cr+tr])+(Xn[cr]=tr)];return zn.i=ir,zn.j=cr,Qn}}function _(J,gn){return gn.i=J.i,gn.j=J.j,gn.S=J.S.slice(),gn}function vn(J,gn){var Vn=[],zn=_typeof$2(J),Wn;if(gn&&zn=="object")for(Wn in J)try{Vn.push(vn(J[Wn],gn-1))}catch{}return Vn.length?Vn:zn=="string"?J:J+"\0"}function Fn(J,gn){for(var Vn=J+"",zn,Wn=0;Wn<Vn.length;)gn[x&Wn]=x&(zn^=gn[x&Wn]*19)+Vn.charCodeAt(Wn++);return w(gn)}function Pn(){try{var J=new Uint8Array(h);return(f.crypto||f.msCrypto).getRandomValues(J),w(J)}catch{var gn=f.navigator,Vn=gn&&gn.plugins;return[+new Date,f,Vn,f.screen,w(c)]}}function w(J){return String.fromCharCode.apply(0,J)}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,h=c.length,d=[];for(f=0;f<h;f+=1)d[f]=-c[f];return d}return c.propType?c.v:-c}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(c,u){var f=_typeof$1(c),h=_typeof$1(u);if(isNumerable(f,c)&&isNumerable(h,u)||f==="string"||h==="string")return c+u;if($bm_isInstanceOfArray(c)&&isNumerable(h,u))return c=c.slice(0),c[0]+=u,c;if(isNumerable(f,c)&&$bm_isInstanceOfArray(u))return u=u.slice(0),u[0]=c+u[0],u;if($bm_isInstanceOfArray(c)&&$bm_isInstanceOfArray(u)){for(var d=0,v=c.length,p=u.length,m=[];d<v||d<p;)(typeof c[d]=="number"||c[d]instanceof Number)&&(typeof u[d]=="number"||u[d]instanceof Number)?m[d]=c[d]+u[d]:m[d]=u[d]===void 0?c[d]:c[d]||u[d],d+=1;return m}return 0}var add=sum;function sub(c,u){var f=_typeof$1(c),h=_typeof$1(u);if(isNumerable(f,c)&&isNumerable(h,u))return f==="string"&&(c=parseInt(c,10)),h==="string"&&(u=parseInt(u,10)),c-u;if($bm_isInstanceOfArray(c)&&isNumerable(h,u))return c=c.slice(0),c[0]-=u,c;if(isNumerable(f,c)&&$bm_isInstanceOfArray(u))return u=u.slice(0),u[0]=c-u[0],u;if($bm_isInstanceOfArray(c)&&$bm_isInstanceOfArray(u)){for(var d=0,v=c.length,p=u.length,m=[];d<v||d<p;)(typeof c[d]=="number"||c[d]instanceof Number)&&(typeof u[d]=="number"||u[d]instanceof Number)?m[d]=c[d]-u[d]:m[d]=u[d]===void 0?c[d]:c[d]||u[d],d+=1;return m}return 0}function mul(c,u){var f=_typeof$1(c),h=_typeof$1(u),d;if(isNumerable(f,c)&&isNumerable(h,u))return c*u;var v,p;if($bm_isInstanceOfArray(c)&&isNumerable(h,u)){for(p=c.length,d=createTypedArray("float32",p),v=0;v<p;v+=1)d[v]=c[v]*u;return d}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(p=u.length,d=createTypedArray("float32",p),v=0;v<p;v+=1)d[v]=c*u[v];return d}return 0}function div(c,u){var f=_typeof$1(c),h=_typeof$1(u),d;if(isNumerable(f,c)&&isNumerable(h,u))return c/u;var v,p;if($bm_isInstanceOfArray(c)&&isNumerable(h,u)){for(p=c.length,d=createTypedArray("float32",p),v=0;v<p;v+=1)d[v]=c[v]/u;return d}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(p=u.length,d=createTypedArray("float32",p),v=0;v<p;v+=1)d[v]=c/u[v];return d}return 0}function mod(c,u){return typeof c=="string"&&(c=parseInt(c,10)),typeof u=="string"&&(u=parseInt(u,10)),c%u}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(c,u,f){if(u>f){var h=f;f=u,u=h}return Math.min(Math.max(c,u),f)}function radiansToDegrees(c){return c/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(c){return c*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(c,u){if(typeof c=="number"||c instanceof Number)return u=u||0,Math.abs(c-u);u||(u=helperLengthArray);var f,h=Math.min(c.length,u.length),d=0;for(f=0;f<h;f+=1)d+=Math.pow(u[f]-c[f],2);return Math.sqrt(d)}function normalize(c){return div(c,length(c))}function rgbToHsl(c){var u=c[0],f=c[1],h=c[2],d=Math.max(u,f,h),v=Math.min(u,f,h),p,m,g=(d+v)/2;if(d===v)p=0,m=0;else{var y=d-v;switch(m=g>.5?y/(2-d-v):y/(d+v),d){case u:p=(f-h)/y+(f<h?6:0);break;case f:p=(h-u)/y+2;break;case h:p=(u-f)/y+4;break}p/=6}return[p,m,g,c[3]]}function hue2rgb(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}function hslToRgb(c){var u=c[0],f=c[1],h=c[2],d,v,p;if(f===0)d=h,p=h,v=h;else{var m=h<.5?h*(1+f):h+f-h*f,g=2*h-m;d=hue2rgb(g,m,u+1/3),v=hue2rgb(g,m,u),p=hue2rgb(g,m,u-1/3)}return[d,v,p,c[3]]}function linear(c,u,f,h,d){if((h===void 0||d===void 0)&&(h=u,d=f,u=0,f=1),f<u){var v=f;f=u,u=v}if(c<=u)return h;if(c>=f)return d;var p=f===u?0:(c-u)/(f-u);if(!h.length)return h+(d-h)*p;var m,g=h.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=h[m]+(d[m]-h[m])*p;return y}function random(c,u){if(u===void 0&&(c===void 0?(c=0,u=1):(u=c,c=void 0)),u.length){var f,h=u.length;c||(c=createTypedArray("float32",h));var d=createTypedArray("float32",h),v=BMMath.random();for(f=0;f<h;f+=1)d[f]=c[f]+v*(u[f]-c[f]);return d}c===void 0&&(c=0);var p=BMMath.random();return c+p*(u-c)}function createPath(c,u,f,h){var d,v=c.length,p=shapePool.newElement();p.setPathData(!!h,v);var m=[0,0],g,y;for(d=0;d<v;d+=1)g=u&&u[d]?u[d]:m,y=f&&f[d]?f[d]:m,p.setTripleAt(c[d][0],c[d][1],y[0]+c[d][0],y[1]+c[d][1],g[0]+c[d][0],g[1]+c[d][1],d,!0);return p}function initiateExpression(elem,data,property){function noOp(c){return c}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function c(u,f){var h,d,v=this.pv.length?this.pv.length:1,p=createTypedArray("float32",v);u=5;var m=Math.floor(time*u);for(h=0,d=0;h<m;){for(d=0;d<v;d+=1)p[d]+=-f+f*2*BMMath.random();h+=1}var g=time*u,y=g-Math.floor(g),x=createTypedArray("float32",v);if(v>1){for(d=0;d<v;d+=1)x[d]=this.pv[d]+p[d]+(-f+f*2*BMMath.random())*y;return x}return this.pv+p[0]+(-f+f*2*BMMath.random())*y}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(c,u){return loopIn(c,u,!0)}function loopOutDuration(c,u){return loopOut(c,u,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(c,u){var f=[u[0]-c[0],u[1]-c[1],u[2]-c[2]],h=Math.atan2(f[0],Math.sqrt(f[1]*f[1]+f[2]*f[2]))/degToRads,d=-Math.atan2(f[1],f[2])/degToRads;return[d,h,0]}function easeOut(c,u,f,h,d){return applyEase(easeOutBez,c,u,f,h,d)}function easeIn(c,u,f,h,d){return applyEase(easeInBez,c,u,f,h,d)}function ease(c,u,f,h,d){return applyEase(easeInOutBez,c,u,f,h,d)}function applyEase(c,u,f,h,d,v){d===void 0?(d=f,v=h):u=(u-f)/(h-f),u>1?u=1:u<0&&(u=0);var p=c(u);if($bm_isInstanceOfArray(d)){var m,g=d.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=(v[m]-d[m])*p+d[m];return y}return(v-d)*p+d}function nearestKey(c){var u,f=data.k.length,h,d;if(!data.k.length||typeof data.k[0]=="number")h=0,d=0;else if(h=-1,c*=elem.comp.globalData.frameRate,c<data.k[0].t)h=1,d=data.k[0].t;else{for(u=0;u<f-1;u+=1)if(c===data.k[u].t){h=u+1,d=data.k[u].t;break}else if(c>data.k[u].t&&c<data.k[u+1].t){c-data.k[u].t>data.k[u+1].t-c?(h=u+2,d=data.k[u+1].t):(h=u+1,d=data.k[u].t);break}h===-1&&(h=u+1,d=data.k[u].t)}var v={};return v.index=h,v.time=d/elem.comp.globalData.frameRate,v}function key(c){var u,f,h;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+c);c-=1,u={time:data.k[c].t/elem.comp.globalData.frameRate,value:[]};var d=Object.prototype.hasOwnProperty.call(data.k[c],"s")?data.k[c].s:data.k[c-1].e;for(h=d.length,f=0;f<h;f+=1)u[f]=d[f],u.value[f]=d[f];return u}function framesToTime(c,u){return u||(u=elem.comp.globalData.frameRate),c/u}function timeToFrames(c,u){return!c&&c!==0&&(c=time),u||(u=elem.comp.globalData.frameRate),c*u}function seedRandom(c){BMMath.seedrandom(randSeed+c)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(c,u){return typeof value=="string"?u===void 0?value.substring(c):value.substring(c,u):""}function substr(c,u){return typeof value=="string"?u===void 0?value.substr(c):value.substr(c,u):""}function posterizeTime(c){time=c===0?0:Math.floor(time*c)/c,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(c){return value=c,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var c={};c.initExpressions=u,c.resetFrame=ExpressionManager.resetFrame;function u(f){var h=0,d=[];function v(){h+=1}function p(){h-=1,h===0&&g()}function m(y){d.indexOf(y)===-1&&d.push(y)}function g(){var y,x=d.length;for(y=0;y<x;y+=1)d[y].release();d.length=0}f.renderer.compInterface=CompExpressionInterface(f.renderer),f.renderer.globalData.projectInterface.registerComposition(f.renderer),f.renderer.globalData.pushExpression=v,f.renderer.globalData.popExpression=p,f.renderer.globalData.registerExpressionProperty=m}return c}(),MaskManagerInterface=function(){function c(f,h){this._mask=f,this._data=h}Object.defineProperty(c.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(c.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var u=function(h){var d=createSizedArray(h.viewData.length),v,p=h.viewData.length;for(v=0;v<p;v+=1)d[v]=new c(h.viewData[v],h.masksProperties[v]);var m=function(y){for(v=0;v<p;){if(h.masksProperties[v].nm===y)return d[v];v+=1}return null};return m};return u}(),ExpressionPropertyInterface=function(){var c={pv:0,v:0,mult:1},u={pv:[0,0,0],v:[0,0,0],mult:1};function f(p,m,g){Object.defineProperty(p,"velocity",{get:function(){return m.getVelocityAtTime(m.comp.currentFrame)}}),p.numKeys=m.keyframes?m.keyframes.length:0,p.key=function(y){if(!p.numKeys)return 0;var x="";"s"in m.keyframes[y-1]?x=m.keyframes[y-1].s:"e"in m.keyframes[y-2]?x=m.keyframes[y-2].e:x=m.keyframes[y-2].s;var Bn=g==="unidimensional"?new Number(x):Object.assign({},x);return Bn.time=m.keyframes[y-1].t/m.elem.comp.globalData.frameRate,Bn.value=g==="unidimensional"?x[0]:x,Bn},p.valueAtTime=m.getValueAtTime,p.speedAtTime=m.getSpeedAtTime,p.velocityAtTime=m.getVelocityAtTime,p.propertyGroup=m.propertyGroup}function h(p){(!p||!("pv"in p))&&(p=c);var m=1/p.mult,g=p.pv*m,y=new Number(g);return y.value=g,f(y,p,"unidimensional"),function(){return p.k&&p.getValue(),g=p.v*m,y.value!==g&&(y=new Number(g),y.value=g,f(y,p,"unidimensional")),y}}function d(p){(!p||!("pv"in p))&&(p=u);var m=1/p.mult,g=p.data&&p.data.l||p.pv.length,y=createTypedArray("float32",g),x=createTypedArray("float32",g);return y.value=x,f(y,p,"multidimensional"),function(){p.k&&p.getValue();for(var Bn=0;Bn<g;Bn+=1)x[Bn]=p.v[Bn]*m,y[Bn]=x[Bn];return y}}function v(){return c}return function(p){return p?p.propType==="unidimensional"?h(p):d(p):v}}(),TransformExpressionInterface=function(){return function(c){function u(p){switch(p){case"scale":case"Scale":case"ADBE Scale":case 6:return u.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return u.rotation;case"ADBE Rotate X":return u.xRotation;case"ADBE Rotate Y":return u.yRotation;case"position":case"Position":case"ADBE Position":case 2:return u.position;case"ADBE Position_0":return u.xPosition;case"ADBE Position_1":return u.yPosition;case"ADBE Position_2":return u.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return u.anchorPoint;case"opacity":case"Opacity":case 11:return u.opacity;default:return null}}Object.defineProperty(u,"rotation",{get:ExpressionPropertyInterface(c.r||c.rz)}),Object.defineProperty(u,"zRotation",{get:ExpressionPropertyInterface(c.rz||c.r)}),Object.defineProperty(u,"xRotation",{get:ExpressionPropertyInterface(c.rx)}),Object.defineProperty(u,"yRotation",{get:ExpressionPropertyInterface(c.ry)}),Object.defineProperty(u,"scale",{get:ExpressionPropertyInterface(c.s)});var f,h,d,v;return c.p?v=ExpressionPropertyInterface(c.p):(f=ExpressionPropertyInterface(c.px),h=ExpressionPropertyInterface(c.py),c.pz&&(d=ExpressionPropertyInterface(c.pz))),Object.defineProperty(u,"position",{get:function(){return c.p?v():[f(),h(),d?d():0]}}),Object.defineProperty(u,"xPosition",{get:ExpressionPropertyInterface(c.px)}),Object.defineProperty(u,"yPosition",{get:ExpressionPropertyInterface(c.py)}),Object.defineProperty(u,"zPosition",{get:ExpressionPropertyInterface(c.pz)}),Object.defineProperty(u,"anchorPoint",{get:ExpressionPropertyInterface(c.a)}),Object.defineProperty(u,"opacity",{get:ExpressionPropertyInterface(c.o)}),Object.defineProperty(u,"skew",{get:ExpressionPropertyInterface(c.sk)}),Object.defineProperty(u,"skewAxis",{get:ExpressionPropertyInterface(c.sa)}),Object.defineProperty(u,"orientation",{get:ExpressionPropertyInterface(c.or)}),u}}(),LayerExpressionInterface=function(){function c(y){var x=new Matrix;if(y!==void 0){var Bn=this._elem.finalTransform.mProp.getValueAtTime(y);Bn.clone(x)}else{var b=this._elem.finalTransform.mProp;b.applyToMatrix(x)}return x}function u(y,x){var Bn=this.getMatrix(x);return Bn.props[12]=0,Bn.props[13]=0,Bn.props[14]=0,this.applyPoint(Bn,y)}function f(y,x){var Bn=this.getMatrix(x);return this.applyPoint(Bn,y)}function h(y,x){var Bn=this.getMatrix(x);return Bn.props[12]=0,Bn.props[13]=0,Bn.props[14]=0,this.invertPoint(Bn,y)}function d(y,x){var Bn=this.getMatrix(x);return this.invertPoint(Bn,y)}function v(y,x){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Bn,b=this._elem.hierarchy.length;for(Bn=0;Bn<b;Bn+=1)this._elem.hierarchy[Bn].finalTransform.mProp.applyToMatrix(y)}return y.applyToPointArray(x[0],x[1],x[2]||0)}function p(y,x){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Bn,b=this._elem.hierarchy.length;for(Bn=0;Bn<b;Bn+=1)this._elem.hierarchy[Bn].finalTransform.mProp.applyToMatrix(y)}return y.inversePoint(x)}function m(y){var x=new Matrix;if(x.reset(),this._elem.finalTransform.mProp.applyToMatrix(x),this._elem.hierarchy&&this._elem.hierarchy.length){var Bn,b=this._elem.hierarchy.length;for(Bn=0;Bn<b;Bn+=1)this._elem.hierarchy[Bn].finalTransform.mProp.applyToMatrix(x);return x.inversePoint(y)}return x.inversePoint(y)}function g(){return[1,1,1,1]}return function(y){var x;function Bn(vn){re.mask=new MaskManagerInterface(vn,y)}function b(vn){re.effect=vn}function re(vn){switch(vn){case"ADBE Root Vectors Group":case"Contents":case 2:return re.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return x;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return re.effect;case"ADBE Text Properties":return re.textInterface;default:return null}}re.getMatrix=c,re.invertPoint=p,re.applyPoint=v,re.toWorld=f,re.toWorldVec=u,re.fromWorld=d,re.fromWorldVec=h,re.toComp=f,re.fromComp=m,re.sampleImage=g,re.sourceRectAtTime=y.sourceRectAtTime.bind(y),re._elem=y,x=TransformExpressionInterface(y.finalTransform.mProp);var _=getDescriptor(x,"anchorPoint");return Object.defineProperties(re,{hasParent:{get:function(){return y.hierarchy.length}},parent:{get:function(){return y.hierarchy[0].layerInterface}},rotation:getDescriptor(x,"rotation"),scale:getDescriptor(x,"scale"),position:getDescriptor(x,"position"),opacity:getDescriptor(x,"opacity"),anchorPoint:_,anchor_point:_,transform:{get:function(){return x}},active:{get:function(){return y.isInRange}}}),re.startTime=y.data.st,re.index=y.data.ind,re.source=y.data.refId,re.height=y.data.ty===0?y.data.h:100,re.width=y.data.ty===0?y.data.w:100,re.inPoint=y.data.ip/y.comp.globalData.frameRate,re.outPoint=y.data.op/y.comp.globalData.frameRate,re._name=y.data.nm,re.registerMaskInterface=Bn,re.registerEffectsInterface=b,re}}(),propertyGroupFactory=function(){return function(c,u){return function(f){return f=f===void 0?1:f,f<=0?c:u(f-1)}}}(),PropertyInterface=function(){return function(c,u){var f={_name:c};function h(d){return d=d===void 0?1:d,d<=0?f:u(d-1)}return h}}(),EffectsExpressionInterface=function(){var c={createEffectsInterface:u};function u(d,v){if(d.effectsManager){var p=[],m=d.data.ef,g,y=d.effectsManager.effectElements.length;for(g=0;g<y;g+=1)p.push(f(m[g],d.effectsManager.effectElements[g],v,d));var x=d.data.ef||[],Bn=function(re){for(g=0,y=x.length;g<y;){if(re===x[g].nm||re===x[g].mn||re===x[g].ix)return p[g];g+=1}return null};return Object.defineProperty(Bn,"numProperties",{get:function(){return x.length}}),Bn}return null}function f(d,v,p,m){function g(re){for(var _=d.ef,vn=0,Fn=_.length;vn<Fn;){if(re===_[vn].nm||re===_[vn].mn||re===_[vn].ix)return _[vn].ty===5?x[vn]:x[vn]();vn+=1}throw new Error}var y=propertyGroupFactory(g,p),x=[],Bn,b=d.ef.length;for(Bn=0;Bn<b;Bn+=1)d.ef[Bn].ty===5?x.push(f(d.ef[Bn],v.effectElements[Bn],v.effectElements[Bn].propertyGroup,m)):x.push(h(v.effectElements[Bn],d.ef[Bn].ty,m,y));return d.mn==="ADBE Color Control"&&Object.defineProperty(g,"color",{get:function(){return x[0]()}}),Object.defineProperties(g,{numProperties:{get:function(){return d.np}},_name:{value:d.nm},propertyGroup:{value:y}}),g.enabled=d.en!==0,g.active=g.enabled,g}function h(d,v,p,m){var g=ExpressionPropertyInterface(d.p);function y(){return v===10?p.comp.compInterface(d.p.v):g()}return d.p.setGroupProperty&&d.p.setGroupProperty(PropertyInterface("",m)),y}return c}(),ShapePathInterface=function(){return function(u,f,h){var d=f.sh;function v(m){return m==="Shape"||m==="shape"||m==="Path"||m==="path"||m==="ADBE Vector Shape"||m===2?v.path:null}var p=propertyGroupFactory(v,h);return d.setGroupProperty(PropertyInterface("Path",p)),Object.defineProperties(v,{path:{get:function(){return d.k&&d.getValue(),d}},shape:{get:function(){return d.k&&d.getValue(),d}},_name:{value:u.nm},ix:{value:u.ix},propertyIndex:{value:u.ix},mn:{value:u.mn},propertyGroup:{value:h}}),v}}(),ShapeExpressionInterface=function(){function c(_,vn,Fn){var Pn=[],w,J=_?_.length:0;for(w=0;w<J;w+=1)_[w].ty==="gr"?Pn.push(f(_[w],vn[w],Fn)):_[w].ty==="fl"?Pn.push(h(_[w],vn[w],Fn)):_[w].ty==="st"?Pn.push(p(_[w],vn[w],Fn)):_[w].ty==="tm"?Pn.push(m(_[w],vn[w],Fn)):_[w].ty==="tr"||(_[w].ty==="el"?Pn.push(y(_[w],vn[w],Fn)):_[w].ty==="sr"?Pn.push(x(_[w],vn[w],Fn)):_[w].ty==="sh"?Pn.push(ShapePathInterface(_[w],vn[w],Fn)):_[w].ty==="rc"?Pn.push(Bn(_[w],vn[w],Fn)):_[w].ty==="rd"?Pn.push(b(_[w],vn[w],Fn)):_[w].ty==="rp"?Pn.push(re(_[w],vn[w],Fn)):_[w].ty==="gf"?Pn.push(d(_[w],vn[w],Fn)):Pn.push(v(_[w],vn[w])));return Pn}function u(_,vn,Fn){var Pn,w=function(Vn){for(var zn=0,Wn=Pn.length;zn<Wn;){if(Pn[zn]._name===Vn||Pn[zn].mn===Vn||Pn[zn].propertyIndex===Vn||Pn[zn].ix===Vn||Pn[zn].ind===Vn)return Pn[zn];zn+=1}return typeof Vn=="number"?Pn[Vn-1]:null};w.propertyGroup=propertyGroupFactory(w,Fn),Pn=c(_.it,vn.it,w.propertyGroup),w.numProperties=Pn.length;var J=g(_.it[_.it.length-1],vn.it[vn.it.length-1],w.propertyGroup);return w.transform=J,w.propertyIndex=_.cix,w._name=_.nm,w}function f(_,vn,Fn){var Pn=function(Vn){switch(Vn){case"ADBE Vectors Group":case"Contents":case 2:return Pn.content;default:return Pn.transform}};Pn.propertyGroup=propertyGroupFactory(Pn,Fn);var w=u(_,vn,Pn.propertyGroup),J=g(_.it[_.it.length-1],vn.it[vn.it.length-1],Pn.propertyGroup);return Pn.content=w,Pn.transform=J,Object.defineProperty(Pn,"_name",{get:function(){return _.nm}}),Pn.numProperties=_.np,Pn.propertyIndex=_.ix,Pn.nm=_.nm,Pn.mn=_.mn,Pn}function h(_,vn,Fn){function Pn(w){return w==="Color"||w==="color"?Pn.color:w==="Opacity"||w==="opacity"?Pn.opacity:null}return Object.defineProperties(Pn,{color:{get:ExpressionPropertyInterface(vn.c)},opacity:{get:ExpressionPropertyInterface(vn.o)},_name:{value:_.nm},mn:{value:_.mn}}),vn.c.setGroupProperty(PropertyInterface("Color",Fn)),vn.o.setGroupProperty(PropertyInterface("Opacity",Fn)),Pn}function d(_,vn,Fn){function Pn(w){return w==="Start Point"||w==="start point"?Pn.startPoint:w==="End Point"||w==="end point"?Pn.endPoint:w==="Opacity"||w==="opacity"?Pn.opacity:null}return Object.defineProperties(Pn,{startPoint:{get:ExpressionPropertyInterface(vn.s)},endPoint:{get:ExpressionPropertyInterface(vn.e)},opacity:{get:ExpressionPropertyInterface(vn.o)},type:{get:function(){return"a"}},_name:{value:_.nm},mn:{value:_.mn}}),vn.s.setGroupProperty(PropertyInterface("Start Point",Fn)),vn.e.setGroupProperty(PropertyInterface("End Point",Fn)),vn.o.setGroupProperty(PropertyInterface("Opacity",Fn)),Pn}function v(){function _(){return null}return _}function p(_,vn,Fn){var Pn=propertyGroupFactory(Wn,Fn),w=propertyGroupFactory(zn,Pn);function J(Un){Object.defineProperty(zn,_.d[Un].nm,{get:ExpressionPropertyInterface(vn.d.dataProps[Un].p)})}var gn,Vn=_.d?_.d.length:0,zn={};for(gn=0;gn<Vn;gn+=1)J(gn),vn.d.dataProps[gn].p.setGroupProperty(w);function Wn(Un){return Un==="Color"||Un==="color"?Wn.color:Un==="Opacity"||Un==="opacity"?Wn.opacity:Un==="Stroke Width"||Un==="stroke width"?Wn.strokeWidth:null}return Object.defineProperties(Wn,{color:{get:ExpressionPropertyInterface(vn.c)},opacity:{get:ExpressionPropertyInterface(vn.o)},strokeWidth:{get:ExpressionPropertyInterface(vn.w)},dash:{get:function(){return zn}},_name:{value:_.nm},mn:{value:_.mn}}),vn.c.setGroupProperty(PropertyInterface("Color",Pn)),vn.o.setGroupProperty(PropertyInterface("Opacity",Pn)),vn.w.setGroupProperty(PropertyInterface("Stroke Width",Pn)),Wn}function m(_,vn,Fn){function Pn(J){return J===_.e.ix||J==="End"||J==="end"?Pn.end:J===_.s.ix?Pn.start:J===_.o.ix?Pn.offset:null}var w=propertyGroupFactory(Pn,Fn);return Pn.propertyIndex=_.ix,vn.s.setGroupProperty(PropertyInterface("Start",w)),vn.e.setGroupProperty(PropertyInterface("End",w)),vn.o.setGroupProperty(PropertyInterface("Offset",w)),Pn.propertyIndex=_.ix,Pn.propertyGroup=Fn,Object.defineProperties(Pn,{start:{get:ExpressionPropertyInterface(vn.s)},end:{get:ExpressionPropertyInterface(vn.e)},offset:{get:ExpressionPropertyInterface(vn.o)},_name:{value:_.nm}}),Pn.mn=_.mn,Pn}function g(_,vn,Fn){function Pn(J){return _.a.ix===J||J==="Anchor Point"?Pn.anchorPoint:_.o.ix===J||J==="Opacity"?Pn.opacity:_.p.ix===J||J==="Position"?Pn.position:_.r.ix===J||J==="Rotation"||J==="ADBE Vector Rotation"?Pn.rotation:_.s.ix===J||J==="Scale"?Pn.scale:_.sk&&_.sk.ix===J||J==="Skew"?Pn.skew:_.sa&&_.sa.ix===J||J==="Skew Axis"?Pn.skewAxis:null}var w=propertyGroupFactory(Pn,Fn);return vn.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",w)),vn.transform.mProps.p.setGroupProperty(PropertyInterface("Position",w)),vn.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",w)),vn.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",w)),vn.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",w)),vn.transform.mProps.sk&&(vn.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",w)),vn.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",w))),vn.transform.op.setGroupProperty(PropertyInterface("Opacity",w)),Object.defineProperties(Pn,{opacity:{get:ExpressionPropertyInterface(vn.transform.mProps.o)},position:{get:ExpressionPropertyInterface(vn.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(vn.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(vn.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(vn.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(vn.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(vn.transform.mProps.sa)},_name:{value:_.nm}}),Pn.ty="tr",Pn.mn=_.mn,Pn.propertyGroup=Fn,Pn}function y(_,vn,Fn){function Pn(gn){return _.p.ix===gn?Pn.position:_.s.ix===gn?Pn.size:null}var w=propertyGroupFactory(Pn,Fn);Pn.propertyIndex=_.ix;var J=vn.sh.ty==="tm"?vn.sh.prop:vn.sh;return J.s.setGroupProperty(PropertyInterface("Size",w)),J.p.setGroupProperty(PropertyInterface("Position",w)),Object.defineProperties(Pn,{size:{get:ExpressionPropertyInterface(J.s)},position:{get:ExpressionPropertyInterface(J.p)},_name:{value:_.nm}}),Pn.mn=_.mn,Pn}function x(_,vn,Fn){function Pn(gn){return _.p.ix===gn?Pn.position:_.r.ix===gn?Pn.rotation:_.pt.ix===gn?Pn.points:_.or.ix===gn||gn==="ADBE Vector Star Outer Radius"?Pn.outerRadius:_.os.ix===gn?Pn.outerRoundness:_.ir&&(_.ir.ix===gn||gn==="ADBE Vector Star Inner Radius")?Pn.innerRadius:_.is&&_.is.ix===gn?Pn.innerRoundness:null}var w=propertyGroupFactory(Pn,Fn),J=vn.sh.ty==="tm"?vn.sh.prop:vn.sh;return Pn.propertyIndex=_.ix,J.or.setGroupProperty(PropertyInterface("Outer Radius",w)),J.os.setGroupProperty(PropertyInterface("Outer Roundness",w)),J.pt.setGroupProperty(PropertyInterface("Points",w)),J.p.setGroupProperty(PropertyInterface("Position",w)),J.r.setGroupProperty(PropertyInterface("Rotation",w)),_.ir&&(J.ir.setGroupProperty(PropertyInterface("Inner Radius",w)),J.is.setGroupProperty(PropertyInterface("Inner Roundness",w))),Object.defineProperties(Pn,{position:{get:ExpressionPropertyInterface(J.p)},rotation:{get:ExpressionPropertyInterface(J.r)},points:{get:ExpressionPropertyInterface(J.pt)},outerRadius:{get:ExpressionPropertyInterface(J.or)},outerRoundness:{get:ExpressionPropertyInterface(J.os)},innerRadius:{get:ExpressionPropertyInterface(J.ir)},innerRoundness:{get:ExpressionPropertyInterface(J.is)},_name:{value:_.nm}}),Pn.mn=_.mn,Pn}function Bn(_,vn,Fn){function Pn(gn){return _.p.ix===gn?Pn.position:_.r.ix===gn?Pn.roundness:_.s.ix===gn||gn==="Size"||gn==="ADBE Vector Rect Size"?Pn.size:null}var w=propertyGroupFactory(Pn,Fn),J=vn.sh.ty==="tm"?vn.sh.prop:vn.sh;return Pn.propertyIndex=_.ix,J.p.setGroupProperty(PropertyInterface("Position",w)),J.s.setGroupProperty(PropertyInterface("Size",w)),J.r.setGroupProperty(PropertyInterface("Rotation",w)),Object.defineProperties(Pn,{position:{get:ExpressionPropertyInterface(J.p)},roundness:{get:ExpressionPropertyInterface(J.r)},size:{get:ExpressionPropertyInterface(J.s)},_name:{value:_.nm}}),Pn.mn=_.mn,Pn}function b(_,vn,Fn){function Pn(gn){return _.r.ix===gn||gn==="Round Corners 1"?Pn.radius:null}var w=propertyGroupFactory(Pn,Fn),J=vn;return Pn.propertyIndex=_.ix,J.rd.setGroupProperty(PropertyInterface("Radius",w)),Object.defineProperties(Pn,{radius:{get:ExpressionPropertyInterface(J.rd)},_name:{value:_.nm}}),Pn.mn=_.mn,Pn}function re(_,vn,Fn){function Pn(gn){return _.c.ix===gn||gn==="Copies"?Pn.copies:_.o.ix===gn||gn==="Offset"?Pn.offset:null}var w=propertyGroupFactory(Pn,Fn),J=vn;return Pn.propertyIndex=_.ix,J.c.setGroupProperty(PropertyInterface("Copies",w)),J.o.setGroupProperty(PropertyInterface("Offset",w)),Object.defineProperties(Pn,{copies:{get:ExpressionPropertyInterface(J.c)},offset:{get:ExpressionPropertyInterface(J.o)},_name:{value:_.nm}}),Pn.mn=_.mn,Pn}return function(_,vn,Fn){var Pn;function w(gn){if(typeof gn=="number")return gn=gn===void 0?1:gn,gn===0?Fn:Pn[gn-1];for(var Vn=0,zn=Pn.length;Vn<zn;){if(Pn[Vn]._name===gn)return Pn[Vn];Vn+=1}return null}function J(){return Fn}return w.propertyGroup=propertyGroupFactory(w,J),Pn=c(_,vn,w.propertyGroup),w.numProperties=Pn.length,w._name="Contents",w}}(),TextExpressionInterface=function(){return function(c){var u;function f(h){switch(h){case"ADBE Text Document":return f.sourceText;default:return null}}return Object.defineProperty(f,"sourceText",{get:function(){c.textProperty.getValue();var d=c.textProperty.currentData.t;return(!u||d!==u.value)&&(u=new String(d),u.value=d||new String(d),Object.defineProperty(u,"style",{get:function(){return{fillColor:c.textProperty.currentData.fc}}})),u}}),f}}();function _typeof(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(f){return typeof f}:_typeof=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof(c)}var FootageInterface=function(){var c=function(h){var d="",v=h.getFootageData();function p(){return d="",v=h.getFootageData(),m}function m(g){if(v[g])return d=g,v=v[g],_typeof(v)==="object"?m:v;var y=g.indexOf(d);if(y!==-1){var x=parseInt(g.substr(y+d.length),10);return v=v[x],_typeof(v)==="object"?m:v}return""}return p},u=function(h){function d(v){return v==="Outline"?d.outlineInterface():null}return d._name="Outline",d.outlineInterface=c(h),d};return function(f){function h(d){return d==="Data"?h.dataInterface:null}return h._name="Data",h.dataInterface=u(f),h}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(c){return interfaces[c]||null}var expressionHelpers=function(){function c(p,m,g){m.x&&(g.k=!0,g.x=!0,g.initiateExpression=ExpressionManager.initiateExpression,g.effectsSequence.push(g.initiateExpression(p,m,g).bind(g)))}function u(p){return p*=this.elem.globalData.frameRate,p-=this.offsetTime,p!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<p?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(p,this._cachingAtTime),this._cachingAtTime.lastFrame=p),this._cachingAtTime.value}function f(p){var m=-.01,g=this.getValueAtTime(p),y=this.getValueAtTime(p+m),x=0;if(g.length){var Bn;for(Bn=0;Bn<g.length;Bn+=1)x+=Math.pow(y[Bn]-g[Bn],2);x=Math.sqrt(x)*100}else x=0;return x}function h(p){if(this.vel!==void 0)return this.vel;var m=-.001,g=this.getValueAtTime(p),y=this.getValueAtTime(p+m),x;if(g.length){x=createTypedArray("float32",g.length);var Bn;for(Bn=0;Bn<g.length;Bn+=1)x[Bn]=(y[Bn]-g[Bn])/m}else x=(y-g)/m;return x}function d(){return this.pv}function v(p){this.propertyGroup=p}return{searchExpressions:c,getSpeedAtTime:f,getVelocityAtTime:h,getValueAtTime:u,getStaticValueAtTime:d,setGroupProperty:v}}();function addPropertyDecorator(){function c(b,re,_){if(!this.k||!this.keyframes)return this.pv;b=b?b.toLowerCase():"";var vn=this.comp.renderedFrame,Fn=this.keyframes,Pn=Fn[Fn.length-1].t;if(vn<=Pn)return this.pv;var w,J;_?(re?w=Math.abs(Pn-this.elem.comp.globalData.frameRate*re):w=Math.max(0,Pn-this.elem.data.ip),J=Pn-w):((!re||re>Fn.length-1)&&(re=Fn.length-1),J=Fn[Fn.length-1-re].t,w=Pn-J);var gn,Vn,zn;if(b==="pingpong"){var Wn=Math.floor((vn-J)/w);if(Wn%2!==0)return this.getValueAtTime((w-(vn-J)%w+J)/this.comp.globalData.frameRate,0)}else if(b==="offset"){var Un=this.getValueAtTime(J/this.comp.globalData.frameRate,0),er=this.getValueAtTime(Pn/this.comp.globalData.frameRate,0),Jn=this.getValueAtTime(((vn-J)%w+J)/this.comp.globalData.frameRate,0),tr=Math.floor((vn-J)/w);if(this.pv.length){for(zn=new Array(Un.length),Vn=zn.length,gn=0;gn<Vn;gn+=1)zn[gn]=(er[gn]-Un[gn])*tr+Jn[gn];return zn}return(er-Un)*tr+Jn}else if(b==="continue"){var Qn=this.getValueAtTime(Pn/this.comp.globalData.frameRate,0),ir=this.getValueAtTime((Pn-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(zn=new Array(Qn.length),Vn=zn.length,gn=0;gn<Vn;gn+=1)zn[gn]=Qn[gn]+(Qn[gn]-ir[gn])*((vn-Pn)/this.comp.globalData.frameRate)/5e-4;return zn}return Qn+(Qn-ir)*((vn-Pn)/.001)}return this.getValueAtTime(((vn-J)%w+J)/this.comp.globalData.frameRate,0)}function u(b,re,_){if(!this.k)return this.pv;b=b?b.toLowerCase():"";var vn=this.comp.renderedFrame,Fn=this.keyframes,Pn=Fn[0].t;if(vn>=Pn)return this.pv;var w,J;_?(re?w=Math.abs(this.elem.comp.globalData.frameRate*re):w=Math.max(0,this.elem.data.op-Pn),J=Pn+w):((!re||re>Fn.length-1)&&(re=Fn.length-1),J=Fn[re].t,w=J-Pn);var gn,Vn,zn;if(b==="pingpong"){var Wn=Math.floor((Pn-vn)/w);if(Wn%2===0)return this.getValueAtTime(((Pn-vn)%w+Pn)/this.comp.globalData.frameRate,0)}else if(b==="offset"){var Un=this.getValueAtTime(Pn/this.comp.globalData.frameRate,0),er=this.getValueAtTime(J/this.comp.globalData.frameRate,0),Jn=this.getValueAtTime((w-(Pn-vn)%w+Pn)/this.comp.globalData.frameRate,0),tr=Math.floor((Pn-vn)/w)+1;if(this.pv.length){for(zn=new Array(Un.length),Vn=zn.length,gn=0;gn<Vn;gn+=1)zn[gn]=Jn[gn]-(er[gn]-Un[gn])*tr;return zn}return Jn-(er-Un)*tr}else if(b==="continue"){var Qn=this.getValueAtTime(Pn/this.comp.globalData.frameRate,0),ir=this.getValueAtTime((Pn+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(zn=new Array(Qn.length),Vn=zn.length,gn=0;gn<Vn;gn+=1)zn[gn]=Qn[gn]+(Qn[gn]-ir[gn])*(Pn-vn)/.001;return zn}return Qn+(Qn-ir)*(Pn-vn)/.001}return this.getValueAtTime((w-((Pn-vn)%w+Pn))/this.comp.globalData.frameRate,0)}function f(b,re){if(!this.k)return this.pv;if(b=(b||.4)*.5,re=Math.floor(re||5),re<=1)return this.pv;var _=this.comp.renderedFrame/this.comp.globalData.frameRate,vn=_-b,Fn=_+b,Pn=re>1?(Fn-vn)/(re-1):1,w=0,J=0,gn;this.pv.length?gn=createTypedArray("float32",this.pv.length):gn=0;for(var Vn;w<re;){if(Vn=this.getValueAtTime(vn+w*Pn),this.pv.length)for(J=0;J<this.pv.length;J+=1)gn[J]+=Vn[J];else gn+=Vn;w+=1}if(this.pv.length)for(J=0;J<this.pv.length;J+=1)gn[J]/=re;else gn/=re;return gn}function h(b){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var re=this._transformCachingAtTime.v;if(re.cloneFromProps(this.pre.props),this.appliedTransformations<1){var _=this.a.getValueAtTime(b);re.translate(-_[0]*this.a.mult,-_[1]*this.a.mult,_[2]*this.a.mult)}if(this.appliedTransformations<2){var vn=this.s.getValueAtTime(b);re.scale(vn[0]*this.s.mult,vn[1]*this.s.mult,vn[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var Fn=this.sk.getValueAtTime(b),Pn=this.sa.getValueAtTime(b);re.skewFromAxis(-Fn*this.sk.mult,Pn*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var w=this.r.getValueAtTime(b);re.rotate(-w*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var J=this.rz.getValueAtTime(b),gn=this.ry.getValueAtTime(b),Vn=this.rx.getValueAtTime(b),zn=this.or.getValueAtTime(b);re.rotateZ(-J*this.rz.mult).rotateY(gn*this.ry.mult).rotateX(Vn*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 Wn=this.px.getValueAtTime(b),Un=this.py.getValueAtTime(b);if(this.data.p.z){var er=this.pz.getValueAtTime(b);re.translate(Wn*this.px.mult,Un*this.py.mult,-er*this.pz.mult)}else re.translate(Wn*this.px.mult,Un*this.py.mult,0)}else{var Jn=this.p.getValueAtTime(b);re.translate(Jn[0]*this.p.mult,Jn[1]*this.p.mult,-Jn[2]*this.p.mult)}return re}function d(){return this.v.clone(new Matrix)}var v=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(b,re,_){var vn=v(b,re,_);return vn.dynamicProperties.length?vn.getValueAtTime=h.bind(vn):vn.getValueAtTime=d.bind(vn),vn.setGroupProperty=expressionHelpers.setGroupProperty,vn};var p=PropertyFactory.getProp;PropertyFactory.getProp=function(b,re,_,vn,Fn){var Pn=p(b,re,_,vn,Fn);Pn.kf?Pn.getValueAtTime=expressionHelpers.getValueAtTime.bind(Pn):Pn.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(Pn),Pn.setGroupProperty=expressionHelpers.setGroupProperty,Pn.loopOut=c,Pn.loopIn=u,Pn.smooth=f,Pn.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(Pn),Pn.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(Pn),Pn.numKeys=re.a===1?re.k.length:0,Pn.propertyIndex=re.ix;var w=0;return _!==0&&(w=createTypedArray("float32",re.a===1?re.k[0].s.length:re.k.length)),Pn._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:w},expressionHelpers.searchExpressions(b,re,Pn),Pn.k&&Fn.addDynamicProperty(Pn),Pn};function m(b){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),b*=this.elem.globalData.frameRate,b-=this.offsetTime,b!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<b?this._caching.lastIndex:0,this._cachingAtTime.lastTime=b,this.interpolateShape(b,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var g=ShapePropertyFactory.getConstructorFunction(),y=ShapePropertyFactory.getKeyframedConstructorFunction();function x(){}x.prototype={vertices:function(re,_){this.k&&this.getValue();var vn=this.v;_!==void 0&&(vn=this.getValueAtTime(_,0));var Fn,Pn=vn._length,w=vn[re],J=vn.v,gn=createSizedArray(Pn);for(Fn=0;Fn<Pn;Fn+=1)re==="i"||re==="o"?gn[Fn]=[w[Fn][0]-J[Fn][0],w[Fn][1]-J[Fn][1]]:gn[Fn]=[w[Fn][0],w[Fn][1]];return gn},points:function(re){return this.vertices("v",re)},inTangents:function(re){return this.vertices("i",re)},outTangents:function(re){return this.vertices("o",re)},isClosed:function(){return this.v.c},pointOnPath:function(re,_){var vn=this.v;_!==void 0&&(vn=this.getValueAtTime(_,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(vn));for(var Fn=this._segmentsLength,Pn=Fn.lengths,w=Fn.totalLength*re,J=0,gn=Pn.length,Vn=0,zn;J<gn;){if(Vn+Pn[J].addedLength>w){var Wn=J,Un=vn.c&&J===gn-1?0:J+1,er=(w-Vn)/Pn[J].addedLength;zn=bez.getPointInSegment(vn.v[Wn],vn.v[Un],vn.o[Wn],vn.i[Un],er,Pn[J]);break}else Vn+=Pn[J].addedLength;J+=1}return zn||(zn=vn.c?[vn.v[0][0],vn.v[0][1]]:[vn.v[vn._length-1][0],vn.v[vn._length-1][1]]),zn},vectorOnPath:function(re,_,vn){re==1?re=this.v.c:re==0&&(re=.999);var Fn=this.pointOnPath(re,_),Pn=this.pointOnPath(re+.001,_),w=Pn[0]-Fn[0],J=Pn[1]-Fn[1],gn=Math.sqrt(Math.pow(w,2)+Math.pow(J,2));if(gn===0)return[0,0];var Vn=vn==="tangent"?[w/gn,J/gn]:[-J/gn,w/gn];return Vn},tangentOnPath:function(re,_){return this.vectorOnPath(re,_,"tangent")},normalOnPath:function(re,_){return this.vectorOnPath(re,_,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([x],g),extendPrototype([x],y),y.prototype.getValueAtTime=m,y.prototype.initiateExpression=ExpressionManager.initiateExpression;var Bn=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(b,re,_,vn,Fn){var Pn=Bn(b,re,_,vn,Fn);return Pn.propertyIndex=re.ix,Pn.lock=!1,_===3?expressionHelpers.searchExpressions(b,re.pt,Pn):_===4&&expressionHelpers.searchExpressions(b,re.ks,Pn),Pn.k&&b.addDynamicProperty(Pn),Pn}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function c(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(u,f){var h=this.calculateExpression(f);if(u.t!==h){var d={};return this.copyData(d,u),d.t=h.toString(),d.__complete=!1,d}return u},TextProperty.prototype.searchProperty=function(){var u=this.searchKeyframes(),f=this.searchExpressions();return this.kf=u||f,this.kf},TextProperty.prototype.searchExpressions=c}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function c(u,f){var h=createNS("feMerge");h.setAttribute("result",u);var d,v;for(v=0;v<f.length;v+=1)d=createNS("feMergeNode"),d.setAttribute("in",f[v]),h.appendChild(d),h.appendChild(d);return h}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(c,u,f,h,d){this.filterManager=u;var v=createNS("feColorMatrix");v.setAttribute("type","matrix"),v.setAttribute("color-interpolation-filters","linearRGB"),v.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=v,v.setAttribute("result",h+"_tint_1"),c.appendChild(v),v=createNS("feColorMatrix"),v.setAttribute("type","matrix"),v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),v.setAttribute("result",h+"_tint_2"),c.appendChild(v),this.matrixFilter=v;var p=this.createMergeNode(h,[d,h+"_tint_1",h+"_tint_2"]);c.appendChild(p)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=this.filterManager.effectElements[0].p.v,f=this.filterManager.effectElements[1].p.v,h=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+h+" 0"),this.matrixFilter.setAttribute("values",f[0]-u[0]+" 0 0 0 "+u[0]+" "+(f[1]-u[1])+" 0 0 0 "+u[1]+" "+(f[2]-u[2])+" 0 0 0 "+u[2]+" 0 0 0 1 0")}};function SVGFillFilter(c,u,f,h){this.filterManager=u;var d=createNS("feColorMatrix");d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),d.setAttribute("result",h),c.appendChild(d),this.matrixFilter=d}SVGFillFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=this.filterManager.effectElements[2].p.v,f=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+u[0]+" 0 0 0 0 "+u[1]+" 0 0 0 0 "+u[2]+" 0 0 0 "+f+" 0")}};function SVGStrokeEffect(c,u,f){this.initialized=!1,this.filterManager=u,this.elem=f,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var c=this.elem.layerElement.children||this.elem.layerElement.childNodes,u,f,h,d;for(this.filterManager.effectElements[1].p.v===1?(d=this.elem.maskManager.masksProperties.length,h=0):(h=this.filterManager.effectElements[0].p.v-1,d=h+1),f=createNS("g"),f.setAttribute("fill","none"),f.setAttribute("stroke-linecap","round"),f.setAttribute("stroke-dashoffset",1),h;h<d;h+=1)u=createNS("path"),f.appendChild(u),this.paths.push({p:u,m:h});if(this.filterManager.effectElements[10].p.v===3){var v=createNS("mask"),p=createElementID();v.setAttribute("id",p),v.setAttribute("mask-type","alpha"),v.appendChild(f),this.elem.globalData.defs.appendChild(v);var m=createNS("g");for(m.setAttribute("mask","url("+getLocationHref()+"#"+p+")");c[0];)m.appendChild(c[0]);this.elem.layerElement.appendChild(m),this.masker=v,f.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(c=this.elem.layerElement.children||this.elem.layerElement.childNodes;c.length;)this.elem.layerElement.removeChild(c[0]);this.elem.layerElement.appendChild(f),this.elem.layerElement.removeAttribute("mask"),f.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=f},SVGStrokeEffect.prototype.renderFrame=function(c){this.initialized||this.initialize();var u,f=this.paths.length,h,d;for(u=0;u<f;u+=1)if(this.paths[u].m!==-1&&(h=this.elem.maskManager.viewData[this.paths[u].m],d=this.paths[u].p,(c||this.filterManager._mdf||h.prop._mdf)&&d.setAttribute("d",h.lastPath),c||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||h.prop._mdf)){var v;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var p=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,m=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,g=d.getTotalLength();v="0 0 0 "+g*p+" ";var y=g*(m-p),x=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,Bn=Math.floor(y/x),b;for(b=0;b<Bn;b+=1)v+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";v+="0 "+g*10+" 0 0"}else v="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;d.setAttribute("stroke-dasharray",v)}if((c||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(c||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(c||this.filterManager.effectElements[3].p._mdf)){var re=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(re[0]*255)+","+bmFloor(re[1]*255)+","+bmFloor(re[2]*255)+")")}};function SVGTritoneFilter(c,u,f,h){this.filterManager=u;var d=createNS("feColorMatrix");d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","linearRGB"),d.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),c.appendChild(d);var v=createNS("feComponentTransfer");v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("result",h),this.matrixFilter=v;var p=createNS("feFuncR");p.setAttribute("type","table"),v.appendChild(p),this.feFuncR=p;var m=createNS("feFuncG");m.setAttribute("type","table"),v.appendChild(m),this.feFuncG=m;var g=createNS("feFuncB");g.setAttribute("type","table"),v.appendChild(g),this.feFuncB=g,c.appendChild(v)}SVGTritoneFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=this.filterManager.effectElements[0].p.v,f=this.filterManager.effectElements[1].p.v,h=this.filterManager.effectElements[2].p.v,d=h[0]+" "+f[0]+" "+u[0],v=h[1]+" "+f[1]+" "+u[1],p=h[2]+" "+f[2]+" "+u[2];this.feFuncR.setAttribute("tableValues",d),this.feFuncG.setAttribute("tableValues",v),this.feFuncB.setAttribute("tableValues",p)}};function SVGProLevelsFilter(c,u,f,h){this.filterManager=u;var d=this.filterManager.effectElements,v=createNS("feComponentTransfer");(d[10].p.k||d[10].p.v!==0||d[11].p.k||d[11].p.v!==1||d[12].p.k||d[12].p.v!==1||d[13].p.k||d[13].p.v!==0||d[14].p.k||d[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",v)),(d[17].p.k||d[17].p.v!==0||d[18].p.k||d[18].p.v!==1||d[19].p.k||d[19].p.v!==1||d[20].p.k||d[20].p.v!==0||d[21].p.k||d[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",v)),(d[24].p.k||d[24].p.v!==0||d[25].p.k||d[25].p.v!==1||d[26].p.k||d[26].p.v!==1||d[27].p.k||d[27].p.v!==0||d[28].p.k||d[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",v)),(d[31].p.k||d[31].p.v!==0||d[32].p.k||d[32].p.v!==1||d[33].p.k||d[33].p.v!==1||d[34].p.k||d[34].p.v!==0||d[35].p.k||d[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",v)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(v.setAttribute("color-interpolation-filters","sRGB"),c.appendChild(v)),(d[3].p.k||d[3].p.v!==0||d[4].p.k||d[4].p.v!==1||d[5].p.k||d[5].p.v!==1||d[6].p.k||d[6].p.v!==0||d[7].p.k||d[7].p.v!==1)&&(v=createNS("feComponentTransfer"),v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("result",h),c.appendChild(v),this.feFuncRComposed=this.createFeFunc("feFuncR",v),this.feFuncGComposed=this.createFeFunc("feFuncG",v),this.feFuncBComposed=this.createFeFunc("feFuncB",v))}SVGProLevelsFilter.prototype.createFeFunc=function(c,u){var f=createNS(c);return f.setAttribute("type","table"),u.appendChild(f),f},SVGProLevelsFilter.prototype.getTableValue=function(c,u,f,h,d){for(var v=0,p=256,m,g=Math.min(c,u),y=Math.max(c,u),x=Array.call(null,{length:p}),Bn,b=0,re=d-h,_=u-c;v<=256;)m=v/256,m<=g?Bn=_<0?d:h:m>=y?Bn=_<0?h:d:Bn=h+re*Math.pow((m-c)/_,1/f),x[b]=Bn,b+=1,v+=256/(p-1);return x.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u,f=this.filterManager.effectElements;this.feFuncRComposed&&(c||f[3].p._mdf||f[4].p._mdf||f[5].p._mdf||f[6].p._mdf||f[7].p._mdf)&&(u=this.getTableValue(f[3].p.v,f[4].p.v,f[5].p.v,f[6].p.v,f[7].p.v),this.feFuncRComposed.setAttribute("tableValues",u),this.feFuncGComposed.setAttribute("tableValues",u),this.feFuncBComposed.setAttribute("tableValues",u)),this.feFuncR&&(c||f[10].p._mdf||f[11].p._mdf||f[12].p._mdf||f[13].p._mdf||f[14].p._mdf)&&(u=this.getTableValue(f[10].p.v,f[11].p.v,f[12].p.v,f[13].p.v,f[14].p.v),this.feFuncR.setAttribute("tableValues",u)),this.feFuncG&&(c||f[17].p._mdf||f[18].p._mdf||f[19].p._mdf||f[20].p._mdf||f[21].p._mdf)&&(u=this.getTableValue(f[17].p.v,f[18].p.v,f[19].p.v,f[20].p.v,f[21].p.v),this.feFuncG.setAttribute("tableValues",u)),this.feFuncB&&(c||f[24].p._mdf||f[25].p._mdf||f[26].p._mdf||f[27].p._mdf||f[28].p._mdf)&&(u=this.getTableValue(f[24].p.v,f[25].p.v,f[26].p.v,f[27].p.v,f[28].p.v),this.feFuncB.setAttribute("tableValues",u)),this.feFuncA&&(c||f[31].p._mdf||f[32].p._mdf||f[33].p._mdf||f[34].p._mdf||f[35].p._mdf)&&(u=this.getTableValue(f[31].p.v,f[32].p.v,f[33].p.v,f[34].p.v,f[35].p.v),this.feFuncA.setAttribute("tableValues",u))}};function SVGDropShadowEffect(c,u,f,h,d){var v=u.container.globalData.renderConfig.filterSize,p=u.data.fs||v;c.setAttribute("x",p.x||v.x),c.setAttribute("y",p.y||v.y),c.setAttribute("width",p.width||v.width),c.setAttribute("height",p.height||v.height),this.filterManager=u;var m=createNS("feGaussianBlur");m.setAttribute("in","SourceAlpha"),m.setAttribute("result",h+"_drop_shadow_1"),m.setAttribute("stdDeviation","0"),this.feGaussianBlur=m,c.appendChild(m);var g=createNS("feOffset");g.setAttribute("dx","25"),g.setAttribute("dy","0"),g.setAttribute("in",h+"_drop_shadow_1"),g.setAttribute("result",h+"_drop_shadow_2"),this.feOffset=g,c.appendChild(g);var y=createNS("feFlood");y.setAttribute("flood-color","#00ff00"),y.setAttribute("flood-opacity","1"),y.setAttribute("result",h+"_drop_shadow_3"),this.feFlood=y,c.appendChild(y);var x=createNS("feComposite");x.setAttribute("in",h+"_drop_shadow_3"),x.setAttribute("in2",h+"_drop_shadow_2"),x.setAttribute("operator","in"),x.setAttribute("result",h+"_drop_shadow_4"),c.appendChild(x);var Bn=this.createMergeNode(h,[h+"_drop_shadow_4",d]);c.appendChild(Bn)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){if((c||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),c||this.filterManager.effectElements[0].p._mdf){var u=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(u[0]*255),Math.round(u[1]*255),Math.round(u[2]*255)))}if((c||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),c||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var f=this.filterManager.effectElements[3].p.v,h=(this.filterManager.effectElements[2].p.v-90)*degToRads,d=f*Math.cos(h),v=f*Math.sin(h);this.feOffset.setAttribute("dx",d),this.feOffset.setAttribute("dy",v)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(c,u,f){this.initialized=!1,this.filterManager=u,this.filterElem=c,this.elem=f,f.matteElement=createNS("g"),f.matteElement.appendChild(f.layerElement),f.matteElement.appendChild(f.transformedElement),f.baseElement=f.matteElement}SVGMatte3Effect.prototype.findSymbol=function(c){for(var u=0,f=_svgMatteSymbols.length;u<f;){if(_svgMatteSymbols[u]===c)return _svgMatteSymbols[u];u+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(c,u){var f=c.layerElement.parentNode;if(f){for(var h=f.children,d=0,v=h.length;d<v&&h[d]!==c.layerElement;)d+=1;var p;d<=v-2&&(p=h[d+1]);var m=createNS("use");m.setAttribute("href","#"+u),p?f.insertBefore(m,p):f.appendChild(m)}},SVGMatte3Effect.prototype.setElementAsMask=function(c,u){if(!this.findSymbol(u)){var f=createElementID(),h=createNS("mask");h.setAttribute("id",u.layerId),h.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(u);var d=c.globalData.defs;d.appendChild(h);var v=createNS("symbol");v.setAttribute("id",f),this.replaceInParent(u,f),v.appendChild(u.layerElement),d.appendChild(v);var p=createNS("use");p.setAttribute("href","#"+f),h.appendChild(p),u.data.hd=!1,u.show()}c.setMatte(u.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var c=this.filterManager.effectElements[0].p.v,u=this.elem.comp.elements,f=0,h=u.length;f<h;)u[f]&&u[f].data.ind===c&&this.setElementAsMask(this.elem,u[f]),f+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(c,u,f,h){c.setAttribute("x","-100%"),c.setAttribute("y","-100%"),c.setAttribute("width","300%"),c.setAttribute("height","300%"),this.filterManager=u;var d=createNS("feGaussianBlur");d.setAttribute("result",h),c.appendChild(d),this.feGaussianBlur=d}SVGGaussianBlurEffect.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=.3,f=this.filterManager.effectElements[0].p.v*u,h=this.filterManager.effectElements[1].p.v,d=h==3?0:f,v=h==2?0:f;this.feGaussianBlur.setAttribute("stdDeviation",d+" "+v);var p=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",p)}};function TransformEffect(){}TransformEffect.prototype.init=function(c){this.effectsManager=c,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(c){if(this._opMdf=!1,this._mdf=!1,c||this.effectsManager._mdf){var u=this.effectsManager.effectElements,f=u[0].p.v,h=u[1].p.v,d=u[2].p.v===1,v=u[3].p.v,p=d?v:u[4].p.v,m=u[5].p.v,g=u[6].p.v,y=u[7].p.v;this.matrix.reset(),this.matrix.translate(-f[0],-f[1],f[2]),this.matrix.scale(p*.01,v*.01,1),this.matrix.rotate(-y*degToRads),this.matrix.skewFromAxis(-m*degToRads,(g+90)*degToRads),this.matrix.translate(h[0],h[1],0),this._mdf=!0,this.opacity!==u[8].p.v&&(this.opacity=u[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(c,u){this.init(u)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(c){this.init(c)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})})(lottie$1,lottie$1.exports);var lottieExports=lottie$1.exports;const lottie=getDefaultExportFromCjs(lottieExports),__default__$1=vue.defineComponent({name:"EcanImage",props:{...imageComponentProps},setup(c){const u=usePickComponentStyle(c),f=vue.computed(()=>useImagePath(c.imgUrl)),{pageMode:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),d=vue.computed(()=>{const _={},{actionType:vn,linkPage:Fn,href:Pn}=c,{requestParams:w={}}=window.config;return vue.unref(h)!=="design"&&vn==="close"&&c.isDrillShow&&!w.drillFlag&&(_.display="none"),(vn==="link"&&(Fn||Pn)||!vn&&(Fn||Pn)||vn==="close")&&(_.cursor="pointer"),{...vue.unref(u),..._}}),{getGlobalModel:v,setGlobalModel:p,getRecordValueByKeyName:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:_=>{},setGlobalModel:(_,vn)=>{},getRecordValueByKeyName:_=>{}}),{setTemplateData:g}=vue.inject("templateOperate",{setTemplateData:_=>{}}),x=useEmitEvent(c)("click",()=>{const _=v(c.id);if(p(c.id,{..._,type:c.type,RECORD:c.data||{}}),setTimeout(()=>{p(c.id,{..._,type:c.type,RECORD:{}})},0),[void 0,"link"].includes(c.actionType)){if(!c.linkPage&&!c.href)return;handleJumpLink(c,{pageMode:vue.unref(h),targetTemplate:c.targetTemplate,getRecordValueByKeyName:m,setTemplateData:g})}else c.actionType==="close"&&window.close()}),Bn=vue.ref(),b=vue.ref(),re=()=>{const{directory:_}=c.animationSource;c.isAnimation&&Bn.value&&_&&(b.value=lottie.loadAnimation({name:`${c.keyName}-lotTie`,container:Bn.value,renderer:"svg",loop:!0,autoplay:!0,path:useImagePath(_)+"data.json"}),vue.unref(b).setSpeed(1))};return vue.watch(()=>[c.isAnimation,c.animationSource],([_])=>{_&&vue.nextTick(()=>{re()})},{immediate:!0,deep:!0}),useOnEvent(c,{click:x}),{customStyle:d,myImgUrl:f,animation:Bn,pageMode:h,onClick:x}}}),__injectCSSVars__$1=()=>{vue.useCssVars(c=>({"8d74eefa":c.isHoverStyle?"pointer":"auto","7ff7bf46":c.isHoverStyle?"0.6":"1"}))},__setup__$1=__default__$1.setup;__default__$1.setup=__setup__$1?(c,u)=>(__injectCSSVars__$1(),__setup__$1(c,u)):__injectCSSVars__$1;const Image_vue_vue_type_style_index_0_scoped_8b128e89_lang="",_hoisted_1$3=["src"];function _sfc_render$6(c,u,f,h,d,v){var p;return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[c.isAnimation?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.animationSource.directory?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["ecan-image",c.pageMode==="design"?"component":""]),ref:"animation",style:vue.normalizeStyle(c.customStyle),onClick:u[0]||(u[0]=(...m)=>c.onClick&&c.onClick(...m))},null,6)):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.myImgUrl!==""?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:vue.normalizeClass(["ecan-image",c.pageMode==="design"?"component":""]),style:vue.normalizeStyle(c.customStyle),src:c.myImgUrl,onClick:u[1]||(u[1]=(...m)=>c.onClick&&c.onClick(...m))},null,14,_hoisted_1$3)):vue.createCommentVNode("",!0)],64)),(c.isAnimation?!((p=c.animationSource)!=null&&p.directory):!c.myImgUrl)?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["image-placeholder",c.pageMode==="design"?"component":""]),style:vue.normalizeStyle(c.customStyle)}," 请上传图片 ",6)):vue.createCommentVNode("",!0)],64)}const Image$1=_export_sfc$1(__default__$1,[["render",_sfc_render$6],["__scopeId","data-v-8b128e89"]]),EcanImage=withInstall$1(Image$1),iframeProps={...props,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web",transParams:[]},iframeComponentProps=transformToComponentProps(iframeProps),_sfc_main$4=vue.defineComponent({name:"EcanIframe",props:{...iframeComponentProps},setup(c){const u=usePickComponentStyle(c),{contextRequestUrl:f}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:""}),{getRecordValueByKeyName:h}=vue.inject(GLOBAL_MODEL,{getRecordValueByKeyName:v=>{}}),d=vue.computed(()=>{var p;let v=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=h(String(g.fieldName));m.push(`${g.keyName}=${y}`)}v+=m.join("&")}return v});return{style:u,myLink:d}}}),Iframe_vue_vue_type_style_index_0_scoped_c0393b8d_lang="",_hoisted_1$2=["src"];function _sfc_render$5(c,u,f,h,d,v){return c.myLink?(vue.openBlock(),vue.createElementBlock("iframe",{key:0,src:c.myLink,style:vue.normalizeStyle(c.style)},null,12,_hoisted_1$2)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"iframe-placeholder",style:vue.normalizeStyle(c.style)}," 请填写网页链接 ",4))}const Iframe=_export_sfc$1(_sfc_main$4,[["render",_sfc_render$5],["__scopeId","data-v-c0393b8d"]]),EcanIframe=withInstall$1(Iframe),tableProps={...props,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!1,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1,transParams:[],linkPage:"",target:"self",href:"",isAutoScroll:!1,scrollSpeed:10,clickTarget:"row",clickTargetColumns:[],linkTextColor:"",isTableFill:!1,conditionList:[]},tableComponentProps=transformToComponentProps(tableProps),tableEvents=["click","refreshData","resetRecord","exportTableData"],topArrow="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAYCAYAAADOMhxqAAAAAXNSR0IArs4c6QAAAK1JREFUOE/tktENgjAURe+FBRiBCdCOwAYOoIiTqBs4Agn+OwJuUHECRugC5ZkUUItNXIB+3ndOmt5XInCkLU6AGK7qy3zMeSB6u0HMm8ut5FTX+zfjCaLLFHGvAUlGyMDGiqrqJuktjHADSOrfyg42yifJCaLLBFHfgLIOvQnCB3onmUFoiwqUfRD+hBWz+kDXCOX4Bx7Glufflp478VrJao9ZBLeTpSWAy9cAXto7eMUv8Bo2AAAAAElFTkSuQmCC",downArrow="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAYCAYAAADOMhxqAAAAAXNSR0IArs4c6QAAAMBJREFUOE/tlE0OwVAURs8tcx0RRpWQGLIDXYIViB3YgdpJl2AHXQJzJJ0hBjoy0fbSl5C2ohvQN3rf994Z3F+hdAYX1bx16IjkdUFkDzUA1FkC/rM1BlddkeKVB+mH9kyWhhf1FeZVkAj+vi0LAzg3tZsPApTxD2gX33HDvkSfOoxO6iQWgYKThxTCJMUNuxJmfqFwGRQ32KLYBhKiOGHy/vwFmCVw0ikWQXbXhNmxJ5vKrWGgsy4RWq/hWZdjegLPIXik13+8RAAAAABJRU5ErkJggg==",seqIcon1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8oFilY+dZfEL3FnudOXKtVt3LqxyoQtlI1WUCFhYpSCIhKoAgTwhJMFkZm73bavP7dO3h9yQpJJNJtObnJx7u+ee+333O6cfDJahSQCHhhk91p1Ttj8xs4F8zOEe2dx3C2hH0efkkwCvKluCPEc+l7mfKHvD+X7jW8qjsqV0th60Hqh6GSsSUQlgWNDX0RGoQNauCdcbmvruU8oWnB9NqAtvGRtgPzJXJuMMh86U8jX7USPd57H4OmPwjWEOZ5/hfRdvDi6WiYumbj1Q/YrZSkf0l2OAytlRLj5BtAm4uwvV0pG9hl4S3lW2C3DEopdP9mDolpV9vew+JN80hxll+0xy8nU1iHXKLmYi83sM4D+tzl/SfWVXfqXstt8GcIy52oKpW5OBUl7sO7TeiEPBadoZi0y0l96aYOwdbb9MPgcgr+wxzgw6l0uBeduTggl13WEgkz4yipEC04dJicg3WeK3Jx9ibl7nSczVcZO3tPEpeQoXbn+rbIZDxi0V0XqgKxlRky56Wg0dxoNgB5LCi3OiaqGM9sVMYSfJ54JsVvbDKKajapdm/JL6e5e7IfkMH2N6Ip2YxSVXM8y3fI6MhYnJhM4gWUX5tngc87dqXTmBJWXOkUbwqJT0hP+Boe6qCXT0aNtmjFp4Bw0Cgncqe1I68TUAGJduu/q70+UkQNBX9lAwLpV8IzaoKooB1FENbYkCQW9UwhINqoZUV1+jHFii5UoZC5k1PBOAKHfnwjX0k9syEaYmAPamQbQeaK0hOniw+CxSzXGPE8y3OMMP/HKYyIPvRhuV73gQmvvOTQdYqdwJZwtPaNGV6Kzu5dpv1MuiuJnrxZUVtgyTRqIy5AOZ5OBI4mfT4kWm+4FGvmkWdVdNoKO9xRdjsXGMyJwJfUw1F0J6r0qEJCL6cbZsED2rER20EK1oxGwxIhRV/zQxInjs6oVsszQBAFmNbt5OTRrRVi8y3gP5cDai9UBrDdGR3rYXFKVGJDtBunCqnEHqXhYJdXe5Yk7qDljUJRGyqyGisxqTaGrnVkuPjOnqOtymc06vOuRZkoV9Td2N81F3FQaaiNFP5QCnWv+kIPpRihilIWqjaKNLqSay0k8aoo5G1E45WQ1vo5VyHoeoZPC8qYwSROuB4kuhb7SmED2lqXvFou5eVxRVwB9my68THSiPLoa6SxGjZaduTQY6eLB4TCF0D5JaNy3QZzy+Vd33XkPltUcRtWvdtPSSVvfa07THVUa2GFF6yVWnl2n1PK12rasroyoxqgcKAPY3uuIRHevd+pKCfkiCmY1TZbTQQO2inop5u5BPo649dZsjj6L7kTyKmdTOo56QSN1mf3ZRX0XdVRPo8OF2XHwe5fyNR2vd+RD9S68VXddrR6o/IWVXQ3ZdS9cXWutWIaqrpayTSJmjEd0WCLMyuDvHceGgCtF6oAsQo5WF6KEdryB1hTAVT9o0rQ2iteq+k/myEa0si/dARrhjFhT+LMUL2A+EY5aF7PUhKuYXkUdnrRkVrJy5KwiRss1+1GCJ2n1lM+Ekm9HD9UCrJ94rH9Herai645Dk0bMVP6t8f1iLYxN6NTELyR7HiVwF92P2e+Jpoo0D8YZxfyVexVft75KHdFZtRsb120Kpm7Pmnt0NHOm5LeC08qnybLxHA/Jr+o1MJvxC2U1nhkbJx4ZXS6Bjh4uHVNQVyUweHeYebrhe4zE6ql3VZ6LuyGQdqaSTYosrzYbx+w0lXBBvd2UH9Q01ijiORveGhTihm4wM0JmJUevKhEZkaG8mArhmkJISt/mb803fkQ+gBRnETp9ONpbrgdYaoncPbMZyyfWzXQS9iMI9yp4WzNBvSLpNyvevSLZwr2qxGkk4A2UtWvt83kLutxvC58guMIn+KWvz+FbFw62/dktkso7E6k8ADCXDS6QnA/4j+cq+d0nZbb/eth8DU3fVGYZVE6jZ8T4C5qOfyHXi3kV5soybv6pJgG71d1yy7eQb4I5eFk12SK6JuJC5n2xuVU21TjSEyJzDfmjOJgUMsMKKACas30PU/Cj6nnxhkEERahUFOokCcP48Hq+z0bMIZkyV1OInqwdaI4imwZwc4OgxJ1Xu5SfbkMJSPEl9eMR2K3tYsC3kuyEczH83w4TO9tx0uxf/1+kntdEmJ54wBAx+oHFEwK4ou5QT/eQr/jzwQNN0vgWKWWHNdaAq9vfUeKBpKJNvtKuAaQbR3dCIx+aYlChUqk1ziWJzP3LwDBLeZ73/gifuKZ/PWB9dZ8xBkcnxivE1XbwbT7WSRYvHPda81xZ86LEeaK0imsaRqZ5WUwXNZHJ4hhecyFRVjFmpVMKNmM7sKo3V/Hs/VjXLRdO0Z1w0dVd1oHbwUp/UnoLNmDJUmxnjZgbWUhhBMWKnrcOM80rJ0m9YFkRXQqD/A/mshzl9oUoNAAAAAElFTkSuQmCC",seqIcon2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABQFJREFUaEPtWt1v21QUv9eJ80FbWmV0adel7ZqyLenSgVYJaQghHhBIICEhoWkvSGgCiQ+JdWMCISEVxAPSoEWT+AN4QTzxzl/Ah8SAQtJ23dKvreuydl3TrIsd23e6xz63LovqeE2BePaLT06ur33O7+dzj8+5lPyHh5I7f4TfPpT6IIuPQSll9XwkWs/J3M7lGQOV7JdpYTxjX206gr4IMiM/CwQDdBhQTZ8VOreOs4//VxD0DWwkBO/kxjqRIkFDHwWZktdQZ2h6AOXlpUUQY3s7BKuCsoxB5ltUalLgYy43pYevu6Vr3SnqKQNZ9ptm9KjK7n5iye/bAkqYyzeuLQjV3OVJIavlMshyKCR03f2HQe5I9AgdpbRkBiP6BSpD6xTYQY+fubsdqjtC0DeQscZBkLERCamgZFveNmMH+9xGjzYu3165KVSzUzmQS8U1t7GBNLU8Kq7pS0HCQ1pjj9nmofPmD/aRoO3A2e/huWzZUM0U9ayB5exoP3iFGT/a3NfH5Y3SulDNTJrp5OpywTVatV6wJy5WIHLgkJkcRR5p2rzcWk8NSTuBSkcEfQMtVzUEgowxQFTLnj+OEBtEeteST6Lu2swVEGcvmUEEXnVW168cR9ZSyYx5vQdTYmxXbxKf5eWqFPWkgSw7GkNrVWa8A2gQkkCdrigQm4Ph8Kuom7j4K4grhSVHT+/2gFh7XNwifeyp+xH0vIEYJU3TjXP8VFiYLaJbSsViK5eTA4Nvoi732y8g3rp5Y7cBcpzfEUHfQC8iOD3+u0goJUlq5zzpP3L0Lc9Q1PMGTv55USSUciCwt9EQlCh5Riz01YKMb+D/fJlwhWA4JHdxuPtSmTcaJcj4BtrfwWg00m1m7enXPYmgb6Bjtri7A6rlolveQeWvMfHFyKh+mj+OpyjqfQPHRzNIIiYZ79WCYH7ib7hkcS6/u/yrYfZ9PVDggwPrp1sp6ht4/zLhKQRZRYUO0qEnhk4hFQLBYAuX7UVeLBvai8E1MMzVEHuRFwu/9mIwLzLAhAZ5WiTbigNFPWng/KWJVfTAfP4y1GfC4bBo4iUHBp/lulh7XHiKt/m4bmlhTqAyb/UCK6rqCik+2N4zTCQPwvWdiV4xD5WkCv9BGbmASlkLQDOIPjl8e1sEPWXglpYz02ELB2MEKmn8KK2uQBv2ymTW5DchZH1tDbzX0toGLTN+9KcyL/Bzc1ubWHYqqgqVckTynwhjNRyr1Pz/fd0HYD5EjctBGcjB+3VTeD9JZ/B1Iw+e+wl11c7UN7DREbTDyqYvQMtZVRVzBxK8xPR5fjYYC6Ju+fpV2BQwO5UTrduyoupcF+/aL8r+3Y8ffonrIpGo0NmXkYK1OaHToiUfG45GLTYSUVVmViAJKaWvxXMNjWxsR00x7qEysJpHsHdRYYZovhiMDfGxuq6JntnV/DSE5sWZvLnlA9ZbA87JVOYY6uL7e4ER/JAkam5DoUQwgRH2HVdphvwpjmvOnH7gHoFjh9c30HJzwyJYjbbl8TH4RqGSJvagMUJBp2zcgTWSH4VFMxh1JHogd+VHKBQxowhMQCGoMV37DFWRox+Kta7avd3qHCn6UBqIRmPLG4KC1dc3qPTK5v9mRkQJEa0ASukP+L+cPvOHCWR9tzHbQXkgBH0DLQ9gTtuwCFZ7PzEb4v9Vyhok3vJyEagIdHxuRHMbKHYyfkcUbQQD7wHq9EAq9LeVYwAAAABJRU5ErkJggg==",seqIcon3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABMJJREFUaEPtWl1sFFUUPndmlm1LdW1XoGxly7qFYqmIBkxEJDTRRI3RxNhgpDzpkwixJCaEJx588MHQCPrgGwT8SSD4Zkx84DfGEEjU2KpAS6ktZVsKpF0K3Z+55p4798ysGdju0A3Mdu5De/bcn7nnfN/ce+ecy+ABli1fHGsTjz+4fWMPTYMxPptTYrM5WKljBQaW6jGX9mVF8N19p2PimYxBnXq2ZpqfK5kDvCpl/qvSMdC7hPzN9vWkux87AwNn6r3O7pOLRVtT5+/bfVinJS9TOjNvakoeG0mhGF20gLoYIUMtMgcI9TzsEvKhrg0jM52PzYhSe9ylfWCg5RhfINjx9c8RMd/QnapN9v7FP7Dk1aTjPCTk1LDNrIHzfVSduTONcmgeNsPStCyJ/xvijfbQjKXFD87ZZ0qZy+t7hHx4x7rb9yKhp0Wmogx8be+PYeGhCNS+TC89AC7lAPCCw3s1Qr557TqpLv19AeX0xOS9nOxaN/+RWtInW1tQjkRptxE/BxFVYDtVw++2rf8eZcdpqCiCgYG2/32AIOeI6OYvT62jeXO2RVKBv+PgUlTIU+lbpOr/6zzKN8bGS6bjTDtEGxZS08SKZpSra9CvVpEnIt3UaPErpGglGtix55d6ZX/IyH4oX1JYonSZ25kGIc+rCr+pdEP9l1Ec+Oei7Ts+q185RUFlmjwQJVokkqI0JuL43wR4Q+lYYKDfEez86hhhbJraJwLaoT7cYrCkJyaRoitWtxFFe8/9jnXjqbGiVCp3g/qFj9MjVq6Rh6gCis5JA3vP/kFe0TQmEXx2FSHYc/Y3rL8+eq3cABUd3xOCgYF+R7DnjE1R3ahAigYGPuQU5SZ7iU4ybtuE3xEMDHQiGAqHnhBwL1/V+rqC/WHfB0tCMDCw6FmjvA3cTjIFCG7qPvGUmoJuwMdCdlI0XF2FH1nNbS1WHgHAVxSteAM37zvxtEKQA3xUcQgGBvr9HfSCYH+vDBEOD9hf/uVdK+8+emwpxcdARcALVtE5aeClP+1w4GR64jHhv9bnnqFQnBEyMNrqDPKqwK8zGDzbqDqDvCrw6wwGiyCDeCZn+RfpsO2GYGCgnxBUqWeEVpdpMc44JjiRhqMyHfbvxT7KUjbE4xifWxBbRHsoABhCd3VwmJh5+YJMdmYz2ZLZ6kyKLmlOYP9YHM/9WJim4aAc2F6lC+dznwp5f1f7TWpX8QY6XatygXW8ls6dwNgroo3JTUIwNXgFu42OjFCWcuny5PNCF6mvo0CyQk4h+X+EuZXPUHkGUd/YJJd9hZqQHTcvjqj5anpe3rzY2m6viC48KcguBQZaHvItgm4rgco+GXrubaIHY2uEnMlMEwMGrAUlP52jLGVTSxITqdXza0jn3CdTQ5LqMYuWQg5XV6nHnKOFAjT8CPByvatojr7iDXRD9b3uU0+iXocOqmcm6qYmpkiVuiIRakom5DUJANAMY61jTJV/lhlVLHyH+Pvttg0/2GN7v0NaFMHAQHpRKghBm03yVoYodDODw1tENnUi4too+YHxn6jelHcBsjeiR5Xu8O6VGTfWeNV5oujcMdDFreqwIKoi7FE8q14dz8qMKQAc392e84qGl373h2Bg4INH8D9A563p5gHY1gAAAABJRU5ErkJggg==",__default__=vue.defineComponent({name:"EcanTable",components:{Skeleton,AButton:antDesignVue.Button,AInput:antDesignVue.Input,ACheckboxGroup:antDesignVue.CheckboxGroup,ATable:antDesignVue.Table,ATableSummary:antDesignVue.TableSummary,ATableSummaryRow:antDesignVue.TableSummaryRow,ATableSummaryCell:antDesignVue.TableSummaryCell,DownOutlined:DownOutlined$1,RightOutlined:RightOutlined$1,MarqueeScroll},props:{...tableComponentProps},setup(c,{expose:u}){const{pageMode:f,height:h,theme:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",height:null,theme:"light"}),v=vue.ref(!1),p=vue.computed(()=>vue.unref(f)!=="design"&&c.isAutoScroll),m=vue.ref({}),g=vue.ref(!1),y=vue.computed(()=>{const br=lodashEs.cloneDeep(c.columns);return c.isUseSeq&&br.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&br.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),br}),x=vue.ref(),Bn=vue.ref(!1),b=usePickComponentStyle(c),re=vue.ref([]),_=vue.computed(()=>{const{height:br}=c;return typeof br=="string"?br:br.suffix==="px"?br.value+"px":br.suffix==="%"?parseFloat(vue.unref(h))*(br.value/100)+"px":"0"}),vn=vue.computed(()=>c.scrollX),Fn=vue.ref(parseFloat(_.value)),Pn=()=>{let br=0;switch(c.size){case"small":br=50;break;case"middle":br=53;break;default:br=65;break}return br},w=vue.ref(0),J=vue.ref(""),gn=vue.ref(0);vue.watchEffect(()=>{var br;(br=re.value)!=null&&br.length&&_.value&&setTimeout(()=>{let Sr=parseFloat(_.value),wr=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Tr=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const Dr=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`);let Pr=0;if(Tr&&(Sr-=(Tr==null?void 0:Tr.clientHeight)||0),Dr&&c.isSummaryFixed&&(Pr=(Dr==null?void 0:Dr.clientHeight)||0,Sr-=Pr),c.paginationShow&&!c.isAutoScroll){let Ar=0;Ar=Pn(),Ar&&(Sr-=Ar)}(wr==null?void 0:wr.clientHeight)>Sr?Fn.value=Sr:Fn.value=0,vue.nextTick(()=>{if(Pr){const Ar=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`),Mr=(Ar==null?void 0:Ar.clientHeight)||0;Pr!==Mr&&vue.unref(Fn)&&(Fn.value=Sr+Pr-Mr)}c.isAutoScroll&&v.value&&setTimeout(()=>{var Vr;const Ar=document.querySelector(`#ecanTable-${c.id} .ant-table-body`);wr=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Tr=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const Mr=Ar||wr;w.value=(Mr==null?void 0:Mr.clientHeight)||0,gn.value=(Tr==null?void 0:Tr.clientHeight)||0,m.value={height:((wr==null?void 0:wr.clientHeight)||0)+"px"};const Lr=document.querySelector(`#ecanTable-${c.id} .ant-table-body > table`);if(J.value=(Vr=document.querySelector(`#ecanTable-${c.id} .ant-table`))==null?void 0:Vr.className,Lr){const $r=Lr.cloneNode(!0);Lr.style.visibility="hidden",setTimeout(()=>{Mr==null||Mr.setAttribute("id","hiddenTableBody")},0);const zr=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap`);if(zr!=null&&zr.length){for(const Zr of zr)Zr.append($r.cloneNode(!0));const qr=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap .ant-table-cell`);if(qr!=null&&qr.length)for(const Zr of qr)Vn(Zr);const Yr=document.querySelector(`#ecanTable-${c.id} .vue3-marquee`);Yr&&Yr.addEventListener("scroll",Zr=>{var Qr;document.querySelector(`#ecanTable-${c.id} .ant-table-header`).scrollLeft=((Qr=Zr==null?void 0:Zr.target)==null?void 0:Qr.scrollLeft)||0})}}},0)})},0)});function Vn(br){br.addEventListener("click",Sr=>{const Tr=zn(Sr.target).getAttribute("dix");if(Tr){const Dr=document.querySelector(`#ecanTable-${c.id} #hiddenTableBody td[dix="${Tr}"]`);Dr&&Dr.click()}})}function zn(br){return br.className.includes("ant-table-cell")?br:zn(br.parentElement)}const Wn=vue.ref([]),Un=vue.ref([]),er=vue.ref([]),Jn=vue.ref([]),tr=vue.ref(0),Qn=vue.ref(1),ir=vue.ref(c.paginationPageSize||10),cr=vue.reactive([]),Xn=(br,Sr)=>{let wr="";return br.forEach((Tr,Dr)=>{const{value:Pr,rule:Ar}=Tr;Tr.conditions?wr+=`(${Xn(Tr.conditions,Tr.join)})`:Pr&&Ar&&(wr+=`value ${Ar} '${Pr}'`),wr+=`${Dr===br.length-1?"":Sr?" "+Sr+" ":""}`}),wr},Hn=(br=[])=>{var Sr,wr;if(Array.isArray(br)&&br.length>0){let Tr=br.length;const Dr=c.columnsFixedNum;if(c.dataType==="indicator"&&((Sr=vue.unref(y))!=null&&Sr.length)&&!vue.unref(y).find(Pr=>{var Ar;return(Ar=Pr.children)==null?void 0:Ar.length})){const{graphicConfig:{indicators:Pr=[]}}=c;br.forEach((Ar,Mr)=>{if(vue.unref(y)[Mr])for(const $r in vue.unref(y)[Mr])["dataIndex","title"].includes($r)||(Ar[$r]=vue.unref(y)[Mr][$r]);const Lr=Pr.find($r=>$r.label===Ar.title),{showLabel:Vr=""}=Lr||{};Vr&&(Ar.title=Vr)})}for(let Pr=Tr-1;Pr>=0;Pr--)(wr=br[Pr])!=null&&wr.isHidden&&br.splice(Pr,1);Tr=br.length;for(let Pr=0;Pr<Tr;Pr++){const Ar=br[Pr];if(Pr<Dr?Ar.fixed="left":Ar.fixed=!1,c.isSortByFront&&Ar.sorter){const ti=Ar.dataIndex;Ar.sorter=(ii,oi)=>ii[ti]-oi[ti]}const{cellAlign:Mr="center",cellColor:Lr,dataIndex:Vr,title:$r,tableFilter:zr,headerCellAlign:qr,headerCellColor:Yr,overflow:Zr,conditions:Qr}=Ar;zr&&(cr.push(Vr),Ar.filterOptionsInputValue="",Ar.filterCheckboxGroupValue=[],Ar.customFilterDropdown=!0,Ar.onFilter=(ti,ii)=>ii[Vr].toString().toLowerCase().includes(ti.toLowerCase())),Qr&&(Ar.conditionCode=Xn(Qr)),Ar.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:c.headerFontSize,fontWeight:c.headerFontWeight,textAlign:qr||"center",color:Yr||c.headerFontColor,borderBottomColor:c.borderColor,backgroundColor:c.headerBackgroundColor}}),Ar.customCell=(ti,ii,oi)=>({style:{textAlign:Mr,color:Yn(oi)?c.linkTextColor:Lr||c.cellFontColor,backgroundColor:c.cellBackgroundColor,borderBottomColor:c.borderColor},class:{highlight:vue.unref(Fr)===ii&&c.clickHighlight,linkText:Yn(oi)},dix:oi.dataIndex+"_"+ii,onClick:yr("click",()=>{const _i=c.id,Ti=xr(_i);ti={dataIndex:Vr,title:$r,...ti},Cr(_i,{...Ti,type:c.type,RECORD:ti}),Fr.value=ii,setTimeout(()=>{if(!c.linkPage&&!c.href)return;let ki=!1;(Yn(oi)||c.clickTarget!=="cell")&&(ki=!0),ki&&handleJumpLink(c,{pageMode:vue.unref(f),getRecordValueByKeyName:Er})},0)})}),Zr==="ellipsis"?Ar.ellipsis=!0:Ar.ellipsis=!1,Array.isArray(Ar.children)&&Hn(Ar.children)}}};function Yn(br){let Sr=!1;return c.clickTarget==="cell"&&c.clickTargetColumns.includes(br.dataIndex)&&(Sr=!0),Sr}const Rn=(br=[])=>{var wr;let Sr=lodashEs.cloneDeep(br);return(wr=vue.unref(Jn))!=null&&wr.length&&(Sr=lodashEs.cloneDeep(vue.unref(Jn))),c.isUseSeq&&Sr.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&Sr.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),Hn(Sr),Sr};vue.watch(ir,()=>{Qn.value=1,Or(!1)}),vue.watch(x,br=>{Bn.value=!!br}),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],()=>{Wn.value=Rn(lodashEs.cloneDeep(c.columns))},{immediate:!0,deep:!0}),vue.watch(()=>[c.data,c.dataType],([br,Sr])=>{Sr==="static"&&(Un.value=br)},{immediate:!0});const Gn=vue.ref({}),Zn=br=>{if(Array.isArray(br)){const Sr=br.length,wr=cr,Tr=wr.length,Dr={};for(let Ar=0;Ar<Sr;Ar++){const Mr=br[Ar];for(let Lr=0;Lr<Tr;Lr++){const Vr=wr[Lr];if(Dr[Vr])Dr[Vr].add(Mr[Vr]);else{const $r=new Set;$r.add(Mr[Vr]),Dr[Vr]=$r}}}const Pr={};for(const Ar in Dr)if(Object.prototype.hasOwnProperty.call(Dr,Ar)){const Mr=Dr[Ar],Lr=Array.from(Mr);Pr[Ar]=Lr.map(Vr=>({label:Vr,value:Vr}))}Gn.value=Pr}};vue.watch(()=>[c.isReverse,Wn.value,Un.value],()=>{const br=vue.unref(Wn),Sr=vue.unref(Un);if(Zn(Sr),c.isReverse){const{columns:wr,dataSource:Tr}=qn(lodashEs.cloneDeep(br),lodashEs.cloneDeep(Sr));er.value=wr,re.value=Tr.map(Dr=>({key:nanoid(6),...Dr}))}else er.value=br,re.value=Sr.map(wr=>({key:nanoid(6),...wr}))},{immediate:!0});const qn=(br,Sr)=>{const wr=br[0],Tr=[{title:wr.title,dataIndex:"col0",key:"col0",align:"center"}];for(let Pr=0;Pr<Sr.length;Pr++){const Ar=Sr[Pr],Mr="col"+(Pr+1);Tr.push({title:Ar[wr.dataIndex],dataIndex:Mr,key:Mr,align:"center"})}const Dr=[];for(let Pr=1;Pr<br.length;Pr++){const Ar=br[Pr],Mr={col0:Ar.title};for(let Lr=0;Lr<Sr.length;Lr++){const Vr=Sr[Lr];Mr[`col${Lr+1}`]=Vr[Ar.dataIndex]}Dr.push(Mr)}return{columns:Tr,dataSource:Dr}},nr=vue.ref(""),or=br=>{var Tr;const{rows:Sr=[],total:wr=0}=((Tr=br==null?void 0:br.data)==null?void 0:Tr.data)||{};if(tr.value=wr,Array.isArray(Sr)&&(Un.value=Sr),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:Dr=[]}=c,Pr=Dr.find(Ar=>Ar.key==="dataSqlId");if((Pr==null?void 0:Pr.value)==="xt_jxzebg"){const Ar=Sr.filter(Mr=>!Mr.绩效总额).map(Mr=>Mr.ORG_NAME);Ar!=null&&Ar.length&&vue.nextTick(()=>{antDesignVue.notification.warning({message:"提示",description:`当前时段${Ar.join("、")}绩效数据为空`,duration:3})})}}v.value=!0},Kn=useRequestData(c),ar=async(br=!0,Sr={})=>{try{br&&(g.value=!0),vue.unref(nr)&&(Sr.orderCondition=vue.unref(nr)),c.paginationShow&&(Sr={pageNum:vue.unref(Qn),pageSize:vue.unref(ir)||"10",layer:"1",...Sr});const wr=await Kn(Sr);or(wr)}catch(wr){console.error(wr)}finally{g.value=!1}},lr=({current:br},Sr,wr)=>{if(Qn.value=br,wr&&Object.keys(wr).length>0){const{field:Tr,order:Dr}=wr,Ar={ascend:"asc",descend:"desc"}[Dr];Tr!=null&&Ar!=null&&Ar?nr.value=Tr+" "+Ar:Ar||(nr.value="")}c.isSortByFront||Or(!1)},ur=vue.computed(()=>{const br=c.simple,Sr=[c.paginationPosition],wr={};return c.isShowTotal&&(wr.showTotal=Tr=>`共 ${Tr} 条数据`),c.paginationShow&&{simple:br,position:Sr,total:vue.unref(tr),current:vue.unref(Qn),pageSize:vue.unref(ir)||"10",showSizeChanger:!1,size:"large",...wr}}),dr=br=>+br==1?"是":+br==0?"否":br,sr=(br,Sr)=>{const{format:wr,retentiondigit:Tr,customFormatter:Dr,defaultVal:Pr}=Sr;let Ar="";if(wr==null||wr==="")Ar=br;else{const Mr={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,boolean:dr,decimals:formatDecimals,custom:formatCustom};Mr[wr]||(Ar=""),wr==="decimals"?Ar=Mr[wr](br,Tr)||"":wr==="custom"?Ar=Mr[wr](br,Dr)||"":Ar=Mr[wr](br)||""}return Ar||(Ar=Pr),Ar},fr=br=>br==="contrast"?"upDown":"",pr=br=>{const{text:Sr,format:wr,declineColor:Tr="#39cf93",increaseColor:Dr="#ff512e"}=br,Pr={fontSize:c.fontSize};if(Xr(br.dataIndex))return Pr.display="flex",Pr.justifyContent="center",Pr.alignItems="center",Pr;if(wr==="contrast"){const Ar=parseFloat(Sr+"");return Ar>=0?Pr.color=Dr:Ar<0&&(Pr.color=Tr),Pr}else return{}},mr=vue.computed(()=>{const{fontSize:br}=c;return{width:br,height:br,textIndent:`-${parseFloat(br)*2}px`,overflow:"hidden"}}),gr=br=>{const{text:Sr,declineColor:wr="#39cf93",increaseColor:Tr="#ff512e"}=br,{fontSize:Dr}=c,Pr=parseFloat(Sr+""),Ar={width:Dr,verticalAlign:"unset"};return Pr>=0?Ar.filter=`drop-shadow(${Tr||"#ff512e"} ${Dr} -1px)`:Pr<0&&(Ar.filter=`drop-shadow(${wr||"#39cf93"} ${Dr} -1px)`),Ar},hr=br=>{const Sr=parseFloat(br+"");if(Sr>=0)return goUp;if(Sr<0)return goDown},vr=(br,Sr,wr,Tr)=>{var Mr,Lr,Vr;const Dr="#39cf93",Pr="#ff512e",Ar=c.conditionList.find($r=>$r.dataIndex===br.dataIndex);if((Mr=Ar==null?void 0:Ar.conditions)!=null&&Mr.length){const{fontSize:$r}=c,zr={style:{width:$r,verticalAlign:"middle"},src:""};for(const qr of Ar.conditions){const Yr=((Lr=qr==null?void 0:qr.property)==null?void 0:Lr.icon)||"";let Zr=((Vr=qr==null?void 0:qr.property)==null?void 0:Vr.iconColor)||"";if(Yr){let Qr=!1;if(qr.rule&&qr.value){const ti=`${qr.field} ${qr.rule} '${qr.value}'`;Qr=pn(ti,{...wr,value:Sr})}else Qr=!0;Qr&&(Yr==="increase"?zr.src=topArrow:Yr==="decline"&&(zr.src=downArrow),Zr||(Yr==="increase"?Zr=Pr:Yr==="decline"&&(Zr=Dr)),zr.style.filter=`drop-shadow(${Zr} ${$r} -1px)`)}}if(Tr===1)return zr.style;if(Tr===2)return zr.src}else return""},yr=useEmitEvent(c),{getGlobalModel:xr,setGlobalModel:Cr,getRecordValueByKeyName:Er}=vue.inject(GLOBAL_MODEL,{getGlobalModel:br=>{},setGlobalModel:(br,Sr)=>{},getRecordValueByKeyName:br=>{}});Cr(c.id,{type:c.type,RECORD:""});const _r=(br=[],Sr=[])=>{let wr=br.map(Tr=>({title:Tr,dataIndex:Tr,key:Tr}));vue.unref(y).find(Tr=>{var Dr;return(Dr=Tr.children)==null?void 0:Dr.length})&&(wr=lodashEs.cloneDeep(vue.unref(y))),Jn.value=lodashEs.cloneDeep(wr),Wn.value=Rn(wr),Un.value=Sr,v.value=!0},kr=br=>{var Sr,wr,Tr,Dr;_r((wr=(Sr=br==null?void 0:br.data)==null?void 0:Sr.data)==null?void 0:wr.columns,(Dr=(Tr=br==null?void 0:br.data)==null?void 0:Tr.data)==null?void 0:Dr.rows)},Br=useIndicatorData(c,kr),Ir=async(br=!0)=>{try{br&&(g.value=!0);const Sr=vue.unref(nr).split(" "),wr={};c.isSortByFront||(wr.sort={order:Sr[1],field:Sr[0]});const Tr=await Br(wr);kr(Tr)}catch(Sr){console.error(Sr)}finally{g.value=!1}},Fr=vue.ref(-1),{loadedData:Nr}=vue.inject(LOADED_DATA,{loadedData:{}}),Rr=vue.ref(!1);vue.watch(Nr,br=>{if(c.dataType==="indicator"){const Sr=getFixedValueDatas(c.graphicConfig);Sr!=null&&Sr.length&&(!vue.unref(Rr)&&canRequestIndicator(c.graphicConfig,br)?(Rr.value=!0,Or()):canRequestIndicator(c.graphicConfig,br)||(Rr.value=!1))}},{deep:!0});const Or=(br=!0)=>{switch(c.dataType){case"request":ar(br);break;case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(Nr))&&Ir(br);break}},jr=()=>{const br=c.id,Sr=xr(br);Cr(br,{...Sr,type:c.type,RECORD:""})},Ur=vue.computed(()=>{const br=vue.unref(er);let Sr=0;const{subTotalColumn:wr,subTotalName:Tr}=c;wr&&(Sr=br.findIndex(Lr=>Lr.dataIndex===wr),Sr<0&&(Sr=0));const Dr=[];let Pr=0;for(let Lr=0;Lr<br.length;Lr++){const Vr=br[Lr],{isCalcTotal:$r}=Vr;Lr===Sr?Dr.push({...Vr,total:Tr}):$r?(Dr.push({...Vr,index:Lr,total:0}),Pr++):Dr.push({...Vr})}if(Pr===0)return[];const Ar=vue.unref(re),Mr=Gr(Dr);for(let Lr=0;Lr<Mr.length;Lr++){const Vr=Mr[Lr];let $r=0;const{isCalcTotal:zr,dataIndex:qr}=Vr;if(zr===!0){for(let Yr=0;Yr<Ar.length;Yr++){const Qr=+Ar[Yr][qr];isNaN(Qr)||($r=new big_js.Big($r).add(Qr).toNumber())}Vr.total=$r}}return Mr});function Gr(br){var wr;const Sr=[];for(const Tr of br)(wr=Tr.children)!=null&&wr.length?Sr.push(...Gr(Tr.children)):Sr.push(Tr);return Sr}const{setRequest:Wr}=vue.inject(REQUEST_MODEL,{setRequest:br=>{}});typeof Wr=="function"&&Wr({id:c.id,requestFn:Or,sortNum:c.requestSort}),u({refreshData:Or});const Kr=(br="",Sr)=>hn(br,Sr),ei=br=>{if(br!=="event")return{self:"_self",blank:"_blank"}[br]},ni=(br,Sr="")=>{br==="event"&&window.parent.postMessage({type:"openPage",url:Sr},"*")},ri=(br,Sr)=>{br(Sr.filterCheckboxGroupValue)},mi=(br,Sr)=>{br({confirm:!0}),Sr.filterOptionsInputValue="",Sr.filterCheckboxGroupValue=[]},gi=()=>{},li=br=>{const Sr=br.dataIndex;if(typeof Sr=="string"){let wr=vue.unref(Gn)[Sr];const Tr=vue.unref(br.filterOptionsInputValue).trim();return Array.isArray(wr)?(wr=wr.filter(Dr=>typeof Dr.label=="string"?Dr.label.toLowerCase().includes(Tr.toLowerCase()):!0),wr):[]}return[]},ci=async()=>{var Vr,$r;const br="EXPORT_KEY";antDesignVue.message.loading({key:br,content:"正在导出...",duration:0});let Sr=[];if(c.dataType==="static")Sr=c.data;else if(c.dataType==="request"){const zr={layer:"1"};vue.unref(nr)&&(zr.orderCondition=vue.unref(nr));const qr=await Kn(zr);Sr=(($r=(Vr=qr==null?void 0:qr.data)==null?void 0:Vr.data)==null?void 0:$r.rows)||{}}const wr=vue.unref(er),Tr=[],Dr=[];wr==null||wr.forEach(zr=>{Tr.push(zr.dataIndex),Dr.push(zr.title)});const Pr=Sr.map(zr=>lodashEs.pick(zr,Tr)),Ar=xlsx.utils.book_new(),Mr=xlsx.utils.aoa_to_sheet([Dr]),Lr=xlsx.utils.sheet_add_json(Mr,Pr,{skipHeader:!0,origin:"A2"});xlsx.utils.book_append_sheet(Ar,Lr,"sheet"),xlsx.writeFile(Ar,"表格数据.xlsx"),antDesignVue.message.success({key:br,content:"导出成功"})},ui=(br,Sr=2)=>{const wr=+br*100;return isNaN(wr)||wr<=0?0:wr>=100?100:wr.toFixed(Sr)};useOnEvent(c,{resetRecord:jr,refreshData:Or,exportTableData:ci});const yi=(br,Sr)=>{let wr=null;return c.stripedShow&&(wr=Sr%2===1?"table-striped":null),wr},fi=vue.computed(()=>{var wr;let br=0;const{isTableFill:Sr}=c;if(Sr&&_.value){let Tr=0;c.paginationShow&&((wr=vue.unref(re))!=null&&wr.length)&&(Tr=Pn()),br=parseFloat(vue.unref(_))-Tr}return br?br+"px":"100%"}),bi=vue.computed(()=>{const br=vue.unref(d)==="darkBlue";let Sr="";return c.isTableFill&&(Sr=c.cellBackgroundColor,Sr||(si.value==="transparent"?br?Sr="#071655":Sr="transparent":br?Sr=si.value:Sr="transparent")),Sr}),xi=vue.computed(()=>{let br="#071655";return c.headerBackgroundColor&&(br="transparent"),br}),si=vue.computed(()=>{let br="#071655";return(c.cellBackgroundColor||c.stripedShow&&c.stripedColor)&&(br="transparent"),br}),hi=vue.computed(()=>parseFloat(c.fontSize)+16),Si=vue.computed(()=>{let br="";const{paginationColor:Sr,paginationBgColor:wr,activePaginationColor:Tr,activePaginationBgColor:Dr,hoverBackgroundColor:Pr}=c;return Sr&&(br+="p-color "),wr&&(br+="p-bg-color "),Tr&&(br+="active-p-color "),Dr&&(br+="active-p-bg-color "),Pr&&(br+="hover-bg-color "),br}),di=(br,Sr)=>{if(Xr(br.dataIndex))return!1;const{conditionCode:wr}=br;return pn(wr,{value:Sr})},vi=(br,Sr,wr)=>{var Lr,Vr;const{overflow:Tr,conditionCode:Dr,attribute:Pr,dataIndex:Ar}=br,Mr={};if(Tr==="ellipsis"&&(Mr.overflow="hidden",Mr.textOverflow="ellipsis"),Dr&&(Pr!=null&&Pr.color)&&di(br,Sr)&&(Mr.color=Pr.color),Pr!=null&&Pr.icon&&(br==null?void 0:br.cellAlign)==="right"&&(Mr.display="flex",Mr.alignItems="center",Mr.justifyContent="flex-end"),Xr(Ar)){const $r=c.conditionList.find(zr=>zr.dataIndex===Ar);if((Lr=$r==null?void 0:$r.conditions)!=null&&Lr.length){for(const zr of $r.conditions)if((Vr=zr==null?void 0:zr.property)!=null&&Vr.color){let qr=!1;if(zr.rule&&zr.value){const Yr=`${zr.field} ${zr.rule} '${zr.value}'`;qr=pn(Yr,{...wr,value:Sr})}else qr=!0;qr&&(Mr.color=zr.property.color)}}else delete Mr.color}return Mr},Ci=br=>{const{attribute:Sr}=br;let wr="";return Sr!=null&&Sr.icon&&(wr=useImagePath(Sr.icon)),wr},pi=br=>{let Sr={};return(br==null?void 0:br.cellAlign)==="right"?Sr={marginRight:"5px"}:Sr={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(c.fontSize)+6+"px",...Sr}},Jr=(br,Sr)=>br||br===0?br:Sr==null?void 0:Sr.defaultVal;function Xr(br){var wr;const Sr=c.conditionList.find(Tr=>Tr.dataIndex===br);return!!((wr=Sr==null?void 0:Sr.conditions)!=null&&wr.length)}return{x:vn,y:Fn,style:b,pagination:ur,formatFn:sr,contrastClass:fr,tableChange:lr,summaryList:Ur,loading:g,onTouchHrefEvent:ni,handleHref:Kr,handleHrefTarget:ei,useRowIndex:Fr,tableColumns:er,tableDataSource:re,useFilterOptions:li,useSetSelectedKeys:ri,onResetFilter:mi,onSearchFilterOptions:gi,exportTableData:ci,handleProgressText:ui,pageSizeVisible:Bn,pageSize:ir,tableRef:x,rowClassName:yi,tableHeight:fi,tableBgColor:bi,tableHeaderBgColor:xi,tableBodyBgColor:si,getChgStyle:pr,chgBoxStyle:mr,getChgBoxImgStyle:gr,getChgBoxImgSrc:hr,seqIcon1,seqIcon2,seqIcon3,iconSize:hi,containerClass:Si,getCellStyle:vi,isMatchCondition:di,getAttrImgSrc:Ci,getAttrImgStyle:pi,getCellText:Jr,autoScrollHeight:w,autoScrollClass:J,autoScrollTop:gn,isScroll:p,scrollWrapStyle:m,isLinkStyle:Yn,hasConditionConfig:Xr,formatTextByConditions:(br,Sr,wr)=>{var Dr,Pr;const Tr=c.conditionList.find(Ar=>Ar.dataIndex===br.dataIndex);if((Dr=Tr==null?void 0:Tr.conditions)!=null&&Dr.length){let Ar=Sr;for(const Mr of Tr.conditions){const Lr=((Pr=Mr==null?void 0:Mr.property)==null?void 0:Pr.formatText)||"";if(Lr){let Vr=!1;if(Mr.rule&&Mr.value){const $r=`${Mr.field} ${Mr.rule} '${Mr.value}'`;Vr=pn($r,{...wr,value:Sr})}else Vr=!0;Vr&&(Ar=hn(Lr,{textData:{...wr,value:Sr}}))}}return Ar}else return""},getChgByCondition:vr}}}),__injectCSSVars__=()=>{vue.useCssVars(c=>({f2959870:c.stripedColor,"0d44247f":c.tableHeaderBgColor,"1eec2f4a":c.tableBodyBgColor,"3c6b7ac8":c.paginationBgColor,"846492e6":c.paginationColor,"0a10c53c":c.activePaginationBgColor,"7e55b7a7":c.activePaginationColor,"1c856456":c.hoverBackgroundColor}))},__setup__=__default__.setup;__default__.setup=__setup__?(c,u)=>(__injectCSSVars__(),__setup__(c,u)):__injectCSSVars__;const Table_vue_vue_type_style_index_0_scoped_a83fea44_lang="",Table_vue_vue_type_style_index_1_lang="",_withScopeId=c=>(vue.pushScopeId("data-v-a83fea44"),c=c(),vue.popScopeId(),c),_hoisted_1$1=["id"],_hoisted_2$1={key:0,class:"table-tool"},_hoisted_3=vue.createTextVNode("导出数据"),_hoisted_4={key:0,style:{float:"left","margin-right":"5px"}},_hoisted_5={key:1,style:{float:"left","margin-right":"5px",visibility:"hidden"}},_hoisted_6=vue.createTextVNode(" 搜索 "),_hoisted_7=vue.createTextVNode(" 重置 "),_hoisted_8=["src","width","height"],_hoisted_9=["src","width","height"],_hoisted_10=["src","width","height"],_hoisted_11={key:1},_hoisted_12={key:1,class:"action-list"},_hoisted_13=["href","target","onClick"],_hoisted_14={key:2,class:"progress-cell"},_hoisted_15=["src"],_hoisted_16=["title"],_hoisted_17=["title"],_hoisted_18=["src"],_hoisted_19=["src"],_hoisted_20=["title"],_hoisted_21=["src"],_hoisted_22=["src"],_hoisted_23={class:"ant-pagination-options-quick-jumper"},_hoisted_24=_withScopeId(()=>vue.createElementVNode("span",null,"条 / 页",-1));function _sfc_render$4(c,u,f,h,d,v){const p=vue.resolveComponent("a-button"),m=vue.resolveComponent("down-outlined"),g=vue.resolveComponent("right-outlined"),y=vue.resolveComponent("a-input"),x=vue.resolveComponent("a-checkbox-group"),Bn=vue.resolveComponent("a-table-summary-cell"),b=vue.resolveComponent("a-table-summary-row"),re=vue.resolveComponent("a-table-summary"),_=vue.resolveComponent("a-table"),vn=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 Pn;return[c.isUseExport?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1,[vue.createVNode(p,{class:"export-button",onClick:c.exportTableData},{default:vue.withCtx(()=>[_hoisted_3]),_:1},8,["onClick"])])):vue.createCommentVNode("",!0),vue.createVNode(_,{ref:"tableRef",class:"table",style:vue.normalizeStyle({height:c.tableHeight,backgroundColor:c.tableBgColor}),columns:c.tableColumns,"data-source":c.tableDataSource,bordered:c.bordered,size:c.size,scroll:c.y?{x:c.x,y:c.y}:{x:c.x},pagination:c.isAutoScroll?!1:c.pagination,"row-class-name":c.rowClassName,"show-header":!c.hideTableHeader,indentSize:30,onChange:c.tableChange},{expandIcon:vue.withCtx(w=>{var J;return[(J=w.record.children)!=null&&J.length?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4,[w.expanded?(vue.openBlock(),vue.createBlock(m,{key:0,onClick:gn=>w.onExpand(w.record,gn)},null,8,["onClick"])):(vue.openBlock(),vue.createBlock(g,{key:1,onClick:gn=>w.onExpand(w.record,gn)},null,8,["onClick"]))])):(vue.openBlock(),vue.createElementBlock("span",_hoisted_5,[vue.createVNode(m)]))]}),customFilterDropdown:vue.withCtx(({column:w,setSelectedKeys:J,confirm:gn,clearFilters:Vn})=>[vue.createElementVNode("div",{class:"ecan-table-filter",style:vue.normalizeStyle({height:c.filterDropdownHeight})},[vue.createVNode(y,{value:w.filterOptionsInputValue,"onUpdate:value":zn=>w.filterOptionsInputValue=zn,placeholder:"请输入关键字",class:"filter-input",onChange:c.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),vue.createVNode(x,{value:w.filterCheckboxGroupValue,"onUpdate:value":zn=>w.filterCheckboxGroupValue=zn,class:"filter-checkbox",options:c.useFilterOptions(w),onChange:zn=>c.useSetSelectedKeys(J,w)},null,8,["value","onUpdate:value","options","onChange"]),vue.createElementVNode("div",null,[vue.createVNode(p,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>gn()},{default:vue.withCtx(()=>[_hoisted_6]),_:2},1032,["onClick"]),vue.createVNode(p,{size:"small",style:{width:"90px"},onClick:vue.withModifiers(zn=>c.onResetFilter(Vn,w),["stop"])},{default:vue.withCtx(()=>[_hoisted_7]),_:2},1032,["onClick"])])],4)]),bodyCell:vue.withCtx(({column:w,index:J,text:gn,record:Vn})=>{var zn,Wn,Un,er,Jn,tr;return[w.dataIndex==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[J===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:c.seqIcon1,width:c.iconSize,height:c.iconSize},null,8,_hoisted_8)):J===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:c.seqIcon2,width:c.iconSize,height:c.iconSize},null,8,_hoisted_9)):J>=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(J+1),5)],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_11,vue.toDisplayString(J+1),1))],64)):w.dataIndex==="ACTION"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.actionList,(Qn,ir)=>(vue.openBlock(),vue.createElementBlock("div",{class:"action",key:ir},[vue.createElementVNode("a",{href:c.handleHref(Qn.href,Vn),target:c.handleHrefTarget(Qn.target),style:vue.normalizeStyle({color:Qn.color,fontSize:c.fontSize,fontWeight:c.fontWeight}),onClick:cr=>c.onTouchHrefEvent(Qn.target,c.handleHref(Qn.href,Vn))},vue.toDisplayString(Qn.title),13,_hoisted_13)]))),128))])):w.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14,[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({background:w.progressColor||"#1890ff",height:w.progressWidth||"18px",width:`${c.handleProgressText(gn,w.progressTextDecimalPlaces)}%`})},null,4),vue.createElementVNode("div",{class:"progress-text",style:vue.normalizeStyle({color:+c.handleProgressText(gn)<100?w.progressTextColor||"#333":w.progressFinishedTextColor||"#fff"})},vue.toDisplayString(c.handleProgressText(gn,w.progressTextDecimalPlaces))+"% ",5)])):(vue.openBlock(),vue.createElementBlock("div",{key:3,style:vue.normalizeStyle({fontSize:c.fontSize,fontWeight:c.isLinkStyle(w)?"bold":c.fontWeight,...c.getCellStyle(w,gn,Vn)})},[c.isMatchCondition(w,gn)&&(w==null?void 0:w.cellAlign)==="right"&&((zn=w==null?void 0:w.attribute)!=null&&zn.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:0,style:vue.normalizeStyle(c.getAttrImgStyle(w)),src:c.getAttrImgSrc(w)},null,12,_hoisted_15)):vue.createCommentVNode("",!0),!c.hasConditionConfig(w.dataIndex)&&w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:1,title:((Wn=w==null?void 0:w.customFormatter)==null?void 0:Wn.split("{value}")[0])||""},vue.toDisplayString(((Un=w==null?void 0:w.customFormatter)==null?void 0:Un.split("{value}")[0])||""),9,_hoisted_16)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass([c.contrastClass(w.format)]),style:vue.normalizeStyle(c.getChgStyle({...w,text:gn})),title:c.hasConditionConfig(w.dataIndex)?c.formatTextByConditions(w,gn,Vn):w.format!=null?c.formatFn(gn,w):gn},[!c.hasConditionConfig(w.dataIndex)&&w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(c.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(c.getChgBoxImgStyle({...w,text:gn})),src:c.getChgBoxImgSrc(gn)},null,12,_hoisted_18)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(c.hasConditionConfig(w.dataIndex)?c.formatTextByConditions(w,gn,Vn):w.format!=null?c.formatFn(gn,w):c.getCellText(gn,w))+" ",1),c.hasConditionConfig(w.dataIndex)&&c.getChgByCondition(w,gn,Vn,2)?(vue.openBlock(),vue.createElementBlock("div",{key:1,style:vue.normalizeStyle({...c.chgBoxStyle,height:"auto",scale:.6})},[vue.createElementVNode("img",{style:vue.normalizeStyle(c.getChgByCondition(w,gn,Vn,1)),src:c.getChgByCondition(w,gn,Vn,2)},null,12,_hoisted_19)],4)):vue.createCommentVNode("",!0)],14,_hoisted_17),!c.hasConditionConfig(w.dataIndex)&&w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:2,title:((er=w==null?void 0:w.customFormatter)==null?void 0:er.split("{value}")[1])||""},vue.toDisplayString(((Jn=w==null?void 0:w.customFormatter)==null?void 0:Jn.split("{value}")[1])||""),9,_hoisted_20)):vue.createCommentVNode("",!0),c.isMatchCondition(w,gn)&&(w==null?void 0:w.cellAlign)!=="right"&&((tr=w==null?void 0:w.attribute)!=null&&tr.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:3,style:vue.normalizeStyle(c.getAttrImgStyle(w)),src:c.getAttrImgSrc(w)},null,12,_hoisted_21)):vue.createCommentVNode("",!0)],4))]}),summary:vue.withCtx(()=>[c.summaryList.length>0?(vue.openBlock(),vue.createBlock(re,{key:0,fixed:c.isSummaryFixed},{default:vue.withCtx(()=>[vue.createVNode(b,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.summaryList,(w,J)=>(vue.openBlock(),vue.createBlock(Bn,{key:J,index:J,style:vue.normalizeStyle({backgroundColor:c.cellBackgroundColor,textAlign:w.cellAlign||"center",color:c.cellFontColor,borderBottomColor:c.borderColor})},{default:vue.withCtx(()=>[vue.createElementVNode("span",{class:vue.normalizeClass([c.contrastClass(w.format)]),style:vue.normalizeStyle({...c.getChgStyle({...w,text:w.total}),fontSize:c.fontSize,fontWeight:c.fontWeight})},[w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(c.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(c.getChgBoxImgStyle({...w,text:w.total})),src:c.getChgBoxImgSrc(w.total)},null,12,_hoisted_22)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString((w.format!=null||w.format!=="")&&c.formatFn(w.total,w)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):vue.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","scroll","pagination","row-class-name","show-header","onChange"]),c.paginationShow?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[(Pn=c.tableDataSource)!=null&&Pn.length&&!c.simple&&c.pageSizeShow&&c.pageSizeVisible?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#ecanTable-"+c.id+" .ant-pagination"},[vue.createElementVNode("div",_hoisted_23,[vue.withDirectives(vue.createElementVNode("input",{type:"text","onUpdate:modelValue":u[0]||(u[0]=w=>c.pageSize=w)},null,512),[[vue.vModelText,c.pageSize]]),_hoisted_24])],8,["to"])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),c.isAutoScroll?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["auto-scroll-content ant-table-wrapper table",c.autoScrollClass]),style:vue.normalizeStyle({width:"100%",position:"absolute",left:"0",height:c.autoScrollHeight+"px",top:c.autoScrollTop+"px",overflow:"auto"})},[vue.createVNode(vn,{visible:c.isScroll,step:c.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(c.scrollWrapStyle)},null,4)]),_:1},8,["visible","step"])],6)):vue.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,_hoisted_1$1)}const Table=_export_sfc$1(__default__,[["render",_sfc_render$4],["__scopeId","data-v-a83fea44"]]),EcanTable=withInstall$1(Table),mapProps={...props,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{name}:{value}",tooltipRequestData:{requestUrl:"",requestMethod:"get",requestParams:[]},tooltipBackgroundColor:"#fff",areaStyleKeyName:"",mapAreaStyleConfig:[],legendShow:!1,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"bottom",legendLeft:"right",mapLegendType:"circle",legendTextShow:!0,legendTitle:"",legendTitleColor:"#333",legendTitleFontSize:"16px",legendFrontText:"",legendAfterText:"",legendBoxShadow:""},mapComponentProps=transformToComponentProps(mapProps),mapEvents=["refreshData","click"];core$1.use([renderers.CanvasRenderer,charts.MapChart,charts.ScatterChart,components$1.VisualMapComponent,components$1.TooltipComponent,components$1.GraphicComponent]);const _sfc_main$3=vue.defineComponent({name:"EcanMap",components:{Echarts},props:{...mapComponentProps},setup(c){const u=useRequestData({...c.tooltipRequestData,requestHeaders:{}}),f=vue.ref(),h=vue.ref(""),d=vue.ref(""),v=usePickComponentStyle(c,["backgroundImage"]),p=vue.ref(),m=vue.computed(()=>useImagePath(c.geoBackgroundImage)),g=vue.computed(()=>useImagePath(c.backgroundImage)),y=vue.ref([]),x=vue.computed(()=>c.geoBackgroundImage?{image:vue.unref(p),repeat:c.geoBackgroundImageRepeat}:c.geoItemStyleAreaColor),Bn=vue.computed(()=>{const Kn=c.symbolImage;return c.symbolImage?"image://"+useImagePath(Kn):"circle"}),b=Kn=>{let ar=c.tooltipFormatter;const lr=ar.match(/\{(.+?)\}/g);if(lr==null||lr.length===0)return ar;for(let ur=0;ur<lr.length;ur++){const dr=lr[ur];let sr=dr.slice(1,-1).trim();const fr=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,pr=sr.match(fr);for(let mr=0;mr<pr.length;mr++){const gr=pr[mr],hr=Kn[gr];hr!=null&&(sr=sr.replace(gr,hr))}ar=ar.replace(dr,sr)}return ar.split(`
|
|
131
|
+
`)},re=vue.ref(!1),_=vue.ref("");let vn=new AbortController;const Fn=(Kn,ar)=>{const lr=vn.signal;re.value=!0,h.value=Kn,u({name:Kn,signal:lr}).then(ur=>{var dr,sr;if(ur){const fr=((sr=(dr=ur==null?void 0:ur.data)==null?void 0:dr.data)==null?void 0:sr.rows)||[];let pr="";for(const mr of fr){const gr=b(mr)||[];if(gr!=null&&gr.length)for(const hr of gr)pr+=`<div style="word-break: break-all;white-space: normal;">${hr}</div>`}pr=`<div style="max-width:200px;">${pr}</div>`,d.value=pr,ar(vue.unref(_),pr)}else lr.aborted?d.value="Loading":d.value=Kn,ar(vue.unref(_),d.value);re.value=!1})},Pn=vue.ref(),w=vue.computed(()=>c.dataType==="request"?Pn.value:c.data),J=vue.computed(()=>{const Kn=[],{mapAreaStyleConfig:ar}=c;if(ar!=null&&ar.length)for(const lr of ar)Kn.push({...lr,key:nanoid(6)});return Kn}),gn=vue.computed(()=>{const Kn=[];for(const ar of vue.unref(J)){let lr="";ar.value1&&(lr+=`value ${ar.rule1} ${ar.value1}`),ar.value2&&(lr+=`${ar.value1?"&&":""} value ${ar.rule2} ${ar.value2}`),lr&&Kn.push({rule:lr,color:ar.color,key:ar.key})}return Kn.reverse()}),Vn=vue.computed(()=>{var lr;const Kn=[],{areaStyleKeyName:ar}=c;if((lr=vue.unref(w))!=null&&lr.length)for(const ur of vue.unref(w)){const dr=ur[ar];if(dr||dr===0){const sr=vue.unref(gn).find(fr=>pn(fr.rule,{value:dr}));sr&&Kn.push({name:ur.name,itemStyle:{areaColor:vue.unref(y).includes(sr.key)?c.geoItemStyleAreaColor:sr.color}})}}return Kn}),zn=vue.computed(()=>{const Kn=c.geoCenter;let ar;return typeof Kn=="string"&&Kn!==""&&(ar=Kn.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(c.width),height:parseFloat(c.height),image:vue.unref(g)},top:"center"}],geo:{zoom:c.geoZoom,roam:c.geoRoam,center:ar,map:`map-${c.id}`,selectedMode:"single",tooltip:{show:c.tooltipShow,trigger:"item",backgroundColor:c.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:c.tooltipTextStyleColor},formatter:(lr,ur,dr)=>{_.value=ur;const{name:sr=""}=lr,{requestUrl:fr}=c.tooltipRequestData;if(!fr){let pr="",mr=c.tooltipFormatter;mr===""&&(mr="{name}:{value}");const gr=vue.unref(w).find(hr=>hr.name===sr);return gr?(pr+=hn(mr,{textData:{name:sr,...gr}},{useNewline:!0,useSpace:!0}),pr):sr}if(vue.unref(re))vue.unref(h)!==sr&&(vn.abort(),vn=new AbortController);else{if(vue.unref(h)===sr)return vue.unref(d);Fn(sr,dr)}return"Loading"}},label:{show:c.geoLabelShow,color:c.geoLabelColor,fontSize:c.geoLabelFontSize},itemStyle:{areaColor:vue.unref(x),borderColor:c.geoItemStyleBorderColor,borderWidth:c.geoItemStyleBorderWidth,shadowColor:c.geoItemStyleShadowColor,shadowBlur:c.geoItemStyleShadowBlur,shadowOffsetX:c.geoItemStyleShadowOffsetX,shadowOffsetY:c.geoItemStyleShadowOffsetY},emphasis:{disabled:c.geoEmphasisDisabled,label:{color:c.geoEmphasisLabelColor},itemStyle:{areaColor:c.geoEmphasisItemStyleAreaColor,borderColor:c.geoEmphasisItemStyleBorderColor}},regions:Vn.value},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:c.itemStyleColor},symbol:vue.unref(Bn),symbolSize:[c.symbolWidth,c.symbolHeight],label:{show:c.labelShow,fontSize:c.labelFontSize,formatter:c.labelFormatter,color:c.labelColor},tooltip:{show:c.tooltipShow,textStyle:{color:c.tooltipTextStyleColor}},data:w.value}]}}),Wn=vue.ref(!1),Un=async()=>{var lr;Wn.value=!1;const Kn=c.mapJson,ar=`map-${c.id}`;if(Kn!=null&&Kn.path){const ur=await request(((lr=window==null?void 0:window.config)==null?void 0:lr.uploadPath)+Kn.path);core$1.registerMap(ar,(ur==null?void 0:ur.data)||{})}else core$1.registerMap(ar,{});Wn.value=!0};vue.watch(()=>c.mapJson,()=>{Un()},{immediate:!0,deep:!0});const er=async Kn=>{var ur,dr,sr,fr;const ar=(dr=(ur=Kn==null?void 0:Kn.data)==null?void 0:ur.data)==null?void 0:dr.rows,lr=`map-${c.id}`;if(ar!=null&&ar.path){const pr=await request(ar.path);core$1.registerMap(lr,(pr==null?void 0:pr.data)||{})}else if(Array.isArray(ar))if(Pn.value=ar,(sr=ar[0])!=null&&sr.mapUrl){const pr=await request((fr=ar[0])==null?void 0:fr.mapUrl);core$1.registerMap(lr,(pr==null?void 0:pr.data)||{})}else core$1.registerMap(lr,{});else core$1.registerMap(lr,{});vue.nextTick(()=>{Wn.value=!0})},Jn=useRequestData(c),tr=async()=>{if(c.dataType==="request"){Wn.value=!1;try{const Kn=await Jn();er(Kn)}catch(Kn){console.error(Kn),Wn.value=!0}}},Qn=()=>{const Kn=ir(c.id);switch(cr(c.id,{...Kn,RECORD:{}}),c.dataType){case"static":Un();break;case"request":tr();break}},{getGlobalModel:ir,setGlobalModel:cr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Kn=>{},setGlobalModel:(Kn,ar)=>{}}),Hn=useEmitEvent(c)("click",()=>{var ar,lr;const Kn=ir(c.id);((ar=Kn==null?void 0:Kn.RECORD)==null?void 0:ar.name)===((lr=vue.unref(f))==null?void 0:lr.name)?cr(c.id,{...Kn,RECORD:{}}):cr(c.id,{...Kn,RECORD:vue.unref(f)})});useOnEvent(c,{refreshData:Qn});const{setRequest:Yn}=vue.inject(REQUEST_MODEL,{setRequest:Kn=>{}});typeof Yn=="function"&&Yn({id:c.id,requestFn:Qn,sortNum:c.requestSort});const Rn=()=>{vue.unref(f)&&Hn()},Gn=(Kn={})=>{Kn.componentType==="geo"&&Kn.region?f.value=Kn.region:f.value=null},Zn=vue.computed(()=>{const Kn={},{legendTop:ar,legendLeft:lr,legendBoxShadow:ur}=c;return ur&&(Kn.boxShadow=ur),ar==="bottom"?Kn.bottom=0:ar==="top"&&(Kn.top=0),lr==="left"?Kn.left=0:lr==="right"&&(Kn.right=0),Kn}),qn=vue.computed(()=>{const Kn={};return c.legendOrient==="vertical"&&(Kn.flexDirection="column"),Kn}),nr=vue.computed(()=>{var Kn;if((Kn=vue.unref(J))!=null&&Kn.length){const ar=[];for(const lr of vue.unref(J)){const{value1:ur,value2:dr,rule1:sr,rule2:fr,color:pr}=lr;ur&&dr?+ur<+dr?sr.includes(">")&&fr.includes("<")&&ar.push({text:`${ur} - ${dr}`,color:pr,key:lr.key}):+ur>+dr?sr.includes("<")&&fr.includes(">")&&ar.push({text:`${dr} - ${ur}`,color:pr,key:lr.key}):+ur==+dr&&ar.push({text:`${ur} - ${dr}`,color:pr,key:lr.key}):ur?ar.push({text:`${sr} ${ur}`,color:pr,key:lr.key}):dr&&ar.push({text:`${fr} ${dr}`,color:pr,key:lr.key})}return ar}else return[]});return{option:zn,style:v,isLoadedData:Wn,geoBackgroundImageRef:p,myGeoBackgroundImage:m,mapLegendStyle:Zn,legendContainerStyle:qn,mapLegendList:nr,hiddenLegendKey:y,customClick:Rn,onMouseOver:Gn,handleToggleVisible:Kn=>{const ar=vue.unref(y).findIndex(lr=>lr===Kn);ar>=0?y.value.splice(ar,1):y.value.push(Kn)}}}}),Map_vue_vue_type_style_index_0_scoped_99122857_lang="",_hoisted_1=["src"],_hoisted_2=["title","onClick"];function _sfc_render$3(c,u,f,h,d,v){const p=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-map",style:vue.normalizeStyle(c.style)},[c.isLoadedData?(vue.openBlock(),vue.createBlock(p,{key:0,option:c.option,"update-options":{notMerge:!0},autoresize:"","onZr:click":c.customClick,onMouseover:c.onMouseOver},null,8,["option","onZr:click","onMouseover"])):vue.createCommentVNode("",!0),vue.withDirectives(vue.createElementVNode("img",{ref:"geoBackgroundImageRef",src:c.myGeoBackgroundImage},null,8,_hoisted_1),[[vue.vShow,!1]]),c.legendShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"map-legend",style:vue.normalizeStyle(c.mapLegendStyle)},[vue.createElementVNode("div",{class:"legend-title",style:vue.normalizeStyle({color:c.legendTitleColor,fontSize:c.legendTitleFontSize})},vue.toDisplayString(c.legendTitle),5),vue.createElementVNode("div",{class:"legend-container",style:vue.normalizeStyle(c.legendContainerStyle)},[vue.createElementVNode("div",{style:vue.normalizeStyle({color:c.legendTextStyleColor,marginRight:c.legendOrient==="horizontal"?"5px":"",marginBottom:c.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(c.legendFrontText),5),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.mapLegendList,(m,g)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["legend-item",{hidden:c.hiddenLegendKey.includes(m.key)}]),style:vue.normalizeStyle({marginRight:c.legendOrient==="horizontal"?"10px":"",marginLeft:c.legendOrient==="horizontal"?"10px":"",marginBottom:c.legendOrient==="vertical"?"10px":"",marginTop:c.legendOrient==="vertical"?"10px":""}),key:g,title:c.legendTextShow?"":m.text,onClick:y=>c.handleToggleVisible(m.key)},[vue.createElementVNode("div",{class:"color-block",style:vue.normalizeStyle({backgroundColor:m.color,width:"20px",height:c.mapLegendType==="rect"?"16px":"20px",borderRadius:c.mapLegendType==="circle"?"50%":"4px"})},null,4),c.legendTextShow?(vue.openBlock(),vue.createElementBlock("span",{key:0,class:"legend-item-text",style:vue.normalizeStyle({color:c.legendTextStyleColor,marginLeft:"10px"})},vue.toDisplayString(m.text),5)):vue.createCommentVNode("",!0)],14,_hoisted_2))),128)),vue.createElementVNode("div",{style:vue.normalizeStyle({color:c.legendTextStyleColor,marginLeft:c.legendOrient==="horizontal"?"5px":"",marginTop:c.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(c.legendAfterText),5)],4)],4)):vue.createCommentVNode("",!0)],4)}const Map$1=_export_sfc$1(_sfc_main$3,[["render",_sfc_render$3],["__scopeId","data-v-99122857"]]),EcanMap=withInstall$1(Map$1),dataSelectProps={...props,name:"下拉框选择器-数据",keyName:"下拉框选择器-数据",width:"120px",height:"33px",type:"ecanDataSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},dataSelectComponentProps=transformToComponentProps(dataSelectProps),dataSelectEvents=["selectChange","refreshData"],_sfc_main$2=vue.defineComponent({name:"EcanDataSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption},props:{...dataSelectComponentProps},setup(c,{expose:u}){const f=usePickComponentStyle(c),h=()=>document.getElementById("ProviderConfig")||document.body,d=vue.ref(c.data||[]),v=vue.ref(),p=vue.computed({get:()=>{var Xn;const{mode:cr}=c;return(Xn=vue.unref(d))!=null&&Xn.length?v.value:cr==="multiple"||cr==="tags"||cr==="combobox"?[]:""},set:cr=>{v.value=cr}}),{getGlobalModel:m,setGlobalModel:g,getRecordValueByKeyName:y}=vue.inject(GLOBAL_MODEL,{getGlobalModel:cr=>{},setGlobalModel:(cr,Xn)=>{},getRecordValueByKeyName:cr=>{}}),x=c.dataFieldNames;vue.watch(()=>[c.value,c.mode,c.selectFirstOption,c.valueType,d.value],()=>{const{mode:cr,selectFirstOption:Xn,value:Hn}=c,Yn=y(Hn),Rn=x.value;if(cr==="multiple"||cr==="tags"||cr==="combobox"){if(Yn)v.value=Yn.split(",");else if(Xn){const Gn=vue.unref(d)[0];v.value=Gn?[Gn[Rn]]:[]}}else if(Yn)v.value=Yn;else if(Xn){const Gn=vue.unref(d)[0];v.value=Gn?Gn[Rn]:""}},{immediate:!0});const Bn=(cr,Xn)=>{const Hn=x.label,Yn=x.value;let Rn;const Gn=Xn[Hn],Zn=Xn[Yn];return Gn!=null?Rn=Gn:Zn!=null&&(Rn=Zn),(Rn==null?void 0:Rn.toLowerCase().indexOf(cr==null?void 0:cr.toLowerCase()))>=0},b=cr=>{const{label:Xn,value:Hn,options:Yn}=c.dataFieldNames;if(Yn&&Array.isArray(cr))if(cr.some(Rn=>Yn in Rn)){const Rn={},Gn=[];cr.forEach(Zn=>{Rn[Zn[Yn]]||(Rn[Zn[Yn]]=[]),Rn[Zn[Yn]].push({[Xn]:Zn[Xn],[Hn]:Zn[Hn]})});for(const Zn in Rn)Gn.push({[Xn]:Zn,[Yn]:Rn[Zn]});return Gn}else return cr;else if(!Yn)return cr},re=vue.ref(!1),_=cr=>{var Xn,Hn;if(d.value=b(((Hn=(Xn=cr==null?void 0:cr.data)==null?void 0:Xn.data)==null?void 0:Hn.rows)||[]),c.selectFirstOption){let Yn=vue.unref(d)[0];if(x.options){const Rn=Yn[x.options];Rn&&Rn.length&&(Yn=Rn[0])}v.value=Yn[x.value]}},vn=useRequestData(c),Fn=async()=>{if(c.dataType==="request"){re.value=!0;try{const cr=await vn();_(cr)}catch(cr){console.error(cr)}finally{re.value=!1}}},Pn=vue.computed(()=>{let cr=v.value;if(c.valueType==="label"&&vue.unref(v)&&vue.unref(d)){const Xn=x.label,Hn=x.value;if(c.mode==="multiple")cr=vue.unref(d).filter(Yn=>vue.unref(v).includes(Yn[Hn])).map(Yn=>Yn[Xn]);else{const Yn=vue.unref(d).find(Rn=>vue.unref(v)===Rn[Hn]);Yn&&(cr=Yn[Xn])}}return cr}),w=vue.ref([]),J=vue.computed(()=>{const cr={};if(c.mode!=="multiple"){const Xn=vue.unref(w).find(Hn=>Hn.value===vue.unref(v));Xn&&(cr.itemCodes=Xn.item_codes)}return cr}),gn=vue.computed(()=>{const{value:cr,label:Xn}=x,Hn=vue.unref(d).find(Yn=>Yn[cr]===vue.unref(p));return Hn?{label:Hn[Xn],value:Hn[cr]}:{}}),{pageId:Vn}=vue.inject("templateOperate",{pageId:""})||{};g(c.id,{type:c.type,value:Pn,...vue.unref(J),recordData:vue.unref(gn)});const zn=useEmitEvent(c),Wn=zn("selectChange",()=>{const cr=c.id,Xn=m(cr);g(cr,{...Xn,...vue.unref(J),RECORD:Pn,recordData:vue.unref(gn)});const Hn=getNewValueFromUrlParams(Vn,c.keyName,"value");Hn&&(p.value=Hn)}),Un=zn("refreshData",(cr=[])=>{if(d.value=b(cr),c.selectFirstOption){let Xn=vue.unref(d)[0];if(x.options){const Hn=Xn[x.options];Hn&&Hn.length&&(Xn=Hn[0])}v.value=Xn[x.value]}g(c.id,{type:c.type,value:Pn,...vue.unref(J),recordData:vue.unref(gn)})}),er=cr=>{var Rn;const{data:Xn}=(cr==null?void 0:cr.data)||{},Hn=x.label,Yn=x.value;if(Xn){const{rows:Gn=[]}=((Rn=cr==null?void 0:cr.data)==null?void 0:Rn.data)||{};w.value=Gn;const Zn=Gn.map(or=>({[Hn]:or.label,[Yn]:or.value})),{id:qn}=c,nr=m(qn);g(qn,{...nr,...vue.unref(J)}),Un(Zn)}else Un([])},Jn=useIndicatorData(c,er),tr=async()=>{try{re.value=!0;const cr=await Jn();er(cr)}catch(cr){console.error(cr)}finally{re.value=!1}},Qn=()=>{switch(c.dataType){case"indicator":{tr();break}case"request":Fn();break}};useOnEvent(c,{selectChange:Wn,refreshData:Qn});const{setRequest:ir}=vue.inject(REQUEST_MODEL,{setRequest:({id:cr,sortNum:Xn,requestFn:Hn})=>{}});return typeof ir=="function"&&ir({id:c.id,requestFn:Qn,sortNum:c.requestSort}),u({refreshData:Qn}),{style:f,getPopupContainer:h,myValue:v,selectChange:Wn,options:d,filterOption:Bn,loading:re,resultValue:p}}}),DataSelect_vue_vue_type_style_index_0_scoped_622b0b83_lang="",DataSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$2(c,u,f,h,d,v){const p=vue.resolveComponent("a-select-option"),m=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-select",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{class:"select",value:c.resultValue,"onUpdate:value":u[0]||(u[0]=g=>c.resultValue=g),placeholder:c.placeholder,showSearch:"",allowClear:c.isAllowClear,mode:c.mode,getPopupContainer:c.getPopupContainer,fieldNames:c.dataFieldNames,maxTagCount:c.maxTagCount,filterOption:c.filterOption,loading:c.loading,autoClearSearchValue:c.autoClearSearchValue,onChange:c.selectChange,style:vue.normalizeStyle({fontSize:c.optionFontSize})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.options,(g,y)=>(vue.openBlock(),vue.createBlock(p,{key:y,value:g.value,label:g.label,style:vue.normalizeStyle({fontSize:c.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const DataSelect=_export_sfc$1(_sfc_main$2,[["render",_sfc_render$2],["__scopeId","data-v-622b0b83"]]),EcanDataSelect=withInstall$1(DataSelect),pivotTableProps={...props,name:"透视表",keyName:"透视表",width:"800px",height:"400px",type:"ecanPivotTable",graphicConfig:{},dataType:"indicator",data:[],dimensionList:[],indicatorList:[],styleConfig:{borderColor:"#E3E3E3",headerBgColor:"#ECF1F5",headerColor:"#000000",bodyBgColor:"#FFFFFF",bodyColor:"#000000",indicatorsHeaderBgColor:"#ECF1F5",indicatorsHeaderColor:"#000000",indicatorsBodyBgColor:"#FFFFFF",indicatorsBodyColor:"#000000",aggregateBgColor:"#ECF1F5",aggregateColor:"#000000",sortNotActiveColor:"#CCCCCC",sortActiveColor:"#416EFF",dropDownMenuBgColor:"#FFFFFF",dropDownMenuColor:"#141414",dropDownMenuHightLightColor:"#2E68CF"},configMode:"halfMode"},pivotTableComponentProps=transformToComponentProps(pivotTableProps),pivotTableEvents=["refreshData"],_sfc_main$1=vue.defineComponent({name:"EcanPivotTable",components:{},props:{...pivotTableComponentProps,fullMode:{type:Boolean,default:!1}},setup(c,{emit:u,expose:f}){var J,gn;const h=(J=window==null?void 0:window.config)==null?void 0:J.pageId,d=(gn=window==null?void 0:window.config)==null?void 0:gn.indicatorToken,v=usePickComponentStyle(c),p=vue.ref(),{pageMode:m,theme:g,width:y,height:x}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",theme:"light",width:"",height:""}),{getAllGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),b=vue.computed(()=>{const{width:Vn,height:zn}=c;let Wn=0,Un=0;return typeof Vn=="string"?Wn=parseFloat(Vn):Vn.suffix==="px"?Wn=+Vn.value:Vn.suffix==="%"&&(Wn=parseFloat(vue.unref(y))*(Vn.value/100)),typeof zn=="string"?Un=parseFloat(zn):zn.suffix==="px"?Un=+zn.value:zn.suffix==="%"&&(Un=parseFloat(vue.unref(x))*(zn.value/100)),{...c,width:Wn+"px",height:Un+"px",pageId:h,indicatorToken:d,context:CONTEXT,globalModel:Bn()}}),re=vue.computed(()=>INDICATOR_URL),_=()=>{switch(c.dataType){case"indicator":vue.unref(p).refreshData();break}},{setRequest:vn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Vn,sortNum:zn,requestFn:Wn})=>{}});typeof vn=="function"&&vn({id:c.id,requestFn:_,sortNum:c.requestSort}),f({refreshData:_});const Pn=useEmitEvent(c)("click",()=>{vue.unref(p).click()});return useOnEvent(c,{refreshData:_,click:Pn}),vue.onMounted(()=>{}),{props:c,style:v,pageMode:m,pivotTableRef:p,theme:g,customProps:b,indicatorUrl:re,click:Pn,onTableChange:({type:Vn,data:zn})=>{console.log("data",zn),u("tableChange",{type:Vn,data:zn})}}}}),PivotTableContainer_vue_vue_type_style_index_0_scoped_6ac97f9c_lang="";function _sfc_render$1(c,u,f,h,d,v){const p=vue.resolveComponent("pivot-table");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-pivot-table",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,vue.mergeProps({ref:"pivotTableRef"},c.customProps,{pageMode:c.pageMode,theme:c.theme,fullMode:c.fullMode,indicatorUrl:c.indicatorUrl,enlargeContainer:".page-config",onTableChange:c.onTableChange}),null,16,["pageMode","theme","fullMode","indicatorUrl","onTableChange"])],4)}const PivotTableContainer=_export_sfc$1(_sfc_main$1,[["render",_sfc_render$1],["__scopeId","data-v-6ac97f9c"]]),EcanPivotTable=withInstall$1(PivotTableContainer),valueLineProps={...props,id:"",name:"双值轴折线图",keyName:"双值轴折线图",type:"ecanValueLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:0,value:0,value2:10},{name:10,value:20,value2:35},{name:20,value:30,value2:25},{name:30,value:40,value2:55}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a}:{c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",customPoint:"",axisMarkPoint:[],markPointFormatter:"{x}, {y}"},valueLineComponentProps=transformToComponentProps(valueLineProps),valueLineEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent,components$1.MarkPointComponent]);const _sfc_main=vue.defineComponent({name:"EcanValueLine",props:{...valueLineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const{pageMode:f,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),d=vue.ref(),v=vue.ref(!1),p=usePickComponentStyle(c),m=vue.ref([]),g=vue.ref(),y=vue.computed(()=>v.value?ZOOM_FONT_SIZE:12),x=vue.ref({});let Bn;const b=vue.computed(()=>{const Gn=c.xAxisLabelFormatter,Zn=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,orient:c.toolboxOrient,feature:{myDownload:{show:c.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:v.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var qn;v.value=!0,(qn=g.value)==null||qn.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:qn=>{var ar;const nr=qn.length;let or="",Kn=c.tooltipFormatter;Bn=(ar=qn[0])==null?void 0:ar.data,Kn===""&&(Kn="{marker} {a} {c}");for(let lr=0;lr<nr;lr++){const{marker:ur,seriesName:dr,name:sr,value:fr,data:pr}=qn[lr]||{};if(lr===0){let mr=sr;typeof sr=="string"&&sr[0]==="0"&&!isNaN(+sr)&&(mr=(+sr).toString()),or+=`${In(Gn,mr)}<br/>`}or+=hn(Kn,{textData:{marker:ur,a:dr,b:fr[0],c:fr[1]||0,...pr==null?void 0:pr.record}},{useNewline:!0,useSpace:!0}),or+="<br/>"}return or},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(qn){return typeof qn=="string"&&qn[0]==="0"&&!isNaN(+qn)&&(qn=(+qn).toString()),In(Gn,qn)}},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(qn){return In(Zn,qn)}},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:qn=>getLegendFormat(c.legendFormatter,{name:qn})},series:vue.unref(m)}}),re=()=>{v.value=!1},{getGlobalModel:_,setGlobalModel:vn,getRecordValueByKeyName:Fn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Gn=>{},setGlobalModel:(Gn,Zn)=>{},getRecordValueByKeyName:Gn=>{}}),Pn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),w=(Gn,Zn,qn,nr,or,Kn,ar,lr)=>{const ur=(-(or*lr-Kn*ar)/(ar-or)+(Gn*nr-Zn*qn)/(qn-Gn))/((nr-Zn)/(qn-Gn)-(lr-Kn)/(ar-or)),dr=(nr-Zn)/(qn-Gn)*(-(or*lr-Kn*ar)/(ar-or)+(Gn*nr-Zn*qn)/(qn-Gn))/((nr-Zn)/(qn-Gn)-(lr-Kn)/(ar-or))-(Gn*nr-Zn*qn)/(qn-Gn);return[ur,dr]},J=()=>{var qn;const Gn={symbol:"circle",tooltip:{trigger:"item",formatter:nr=>{let or="",Kn=c.markPointFormatter;Kn===""&&(Kn="{x}, {y}");const{data:{coord:ar=[]}}=nr||{};return or+=hn(Kn,{textData:{x:ar[0]||0,y:ar[1]||0}},{useNewline:!0,useSpace:!0}),or+="<br/>",or}},data:[]},{axisMarkPoint:Zn=[]}=c;for(const nr of Zn){const{coord:or=""}=nr,Kn=[];let ar=[];if(or.includes("getIntersectPoint")){const lr=(qn=or.match(/getIntersectPoint\((.*?)\)/)[1])==null?void 0:qn.split(",");if((lr==null?void 0:lr.length)===8){const ur=[];for(const dr of lr){const sr=dr.replaceAll(" ","");(sr==null?void 0:sr.slice(0,1))==="{"&&(sr==null?void 0:sr.slice(-1))==="}"?ur.push(+Fn(sr)||0):ur.push(+sr)}ar=w(...ur)}}else ar=or.split(",");(ar==null?void 0:ar.length)===2&&(Kn[0]=+ar[0],Kn[1]=+ar[1]),Kn!=null&&Kn.length&&Gn.data.push({coord:Kn,symbolSize:nr.symbolSize,itemStyle:{color:nr.pointColor||"transparent",borderWidth:nr.borderWidth||"transparent",borderColor:nr.borderColor||"transparent"},label:{formatter:nr.label,position:nr.labelPosition,color:nr.labelColor||"transparent"}})}return Gn},gn=Gn=>{var ur,dr,sr;const Zn=lodashEs.cloneDeep(Gn),{graphicConfig:qn,customPoint:nr=""}=c,or={},Kn={},{formFields:ar={}}=qn;let lr=[];if(nr){lr=JSON.parse(nr);for(const fr of lr)for(const pr in fr)typeof fr[pr]=="string"&&((ur=fr[pr])==null?void 0:ur.slice(0,1))==="{"&&((dr=fr[pr])==null?void 0:dr.slice(-1))==="}"&&(fr[pr]=Fn(fr[pr])||0)}lr!=null&&lr.length&&Zn.push(...lr),c.dataType==="static"?(Kn.name="name",Kn.values=["value","value2"]):(Kn.name=(ar==null?void 0:ar.labelField)||"name",Kn.values=(ar==null?void 0:ar.valueField)||["value","value2"]);for(const fr of Zn){const{values:pr,name:mr}=Kn;for(const gr of pr){const hr={value:[fr[mr],fr[gr]],record:fr};mn(or,gr)?or[gr].push(hr):or[gr]=[hr]}}if((sr=Object.keys(or))!=null&&sr.length){const fr=[];for(const pr in or)fr.push({name:pr,data:or[pr]});return fr}else return[]},Vn=(Gn=[])=>{const Zn=gn(Gn),qn=[],nr=Zn.length;for(let or=0;or<nr;or++){const Kn={},ar={};or===0&&(ar.markPoint=J()),c.shadowColor&&(Kn.shadowColor=c.shadowColor,Kn.shadowBlur=c.shadowBlur,Kn.shadowOffsetY=c.shadowOffsetY,Kn.shadowOffsetX=c.shadowOffsetX),qn.push({type:"line",...ar,...Zn[or],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[or]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[or],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Kn},...vue.unref(Pn)})}m.value=qn},zn=(Gn=[])=>{const Zn=gn(Gn),qn=[],nr=Zn.length;for(let or=0;or<nr;or++){const Kn={};c.shadowColor&&(Kn.shadowColor=c.shadowColor,Kn.shadowBlur=c.shadowBlur,Kn.shadowOffsetY=c.shadowOffsetY,Kn.shadowOffsetX=c.shadowOffsetX);const ar={};or===0&&(ar.markPoint=J()),qn.push({type:"line",...Zn[or],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[or]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[or],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Kn},...vue.unref(Pn),...ar})}m.value=qn};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")&&Vn(Gn)},{immediate:!0,deep:!0});const Wn=vue.ref(!1),Un=useRequestData(c),er=async()=>{var Gn,Zn;if(c.dataType==="request")try{Wn.value=!0;const qn=await Un();Vn((Zn=(Gn=qn==null?void 0:qn.data)==null?void 0:Gn.data)==null?void 0:Zn.rows)}catch(qn){console.error(qn)}finally{Wn.value=!1}},Jn=useEmitEvent(c);vn(c.id,{type:c.type,RECORD:""});const tr=Jn("click",Gn=>{const Zn=_(c.id);vn(c.id,{...Zn,type:c.type,RECORD:c.tooltipShow?Bn:Gn.data})}),Qn=Gn=>{d.value.chart.containPixel("grid",[Gn.offsetX,Gn.offsetY])&&tr()};c.tooltipShow?x.value["zr:click"]=Qn:x.value.click=tr;const ir=Gn=>{var qn;const{rows:Zn=[]}=((qn=Gn==null?void 0:Gn.data)==null?void 0:qn.data)??{};zn(Zn)},cr=useIndicatorData(c,Gn=>{c.isViewRedrawing&&d.value.clear(),ir(Gn)}),Xn=async()=>{try{Wn.value=!0;const Gn=await cr();ir(Gn)}catch(Gn){console.error(Gn)}finally{Wn.value=!1}},Hn=()=>{switch(c.dataType){case"indicator":Xn();break;case"request":er();break}};useOnEvent(c,{refreshData:Hn,resetRecord:()=>{const Gn=c.id,Zn=_(Gn);vn(Gn,{...Zn,RECORD:""})},click:tr});const{setRequest:Rn}=vue.inject(REQUEST_MODEL,{setRequest:Gn=>{}});return typeof Rn=="function"&&Rn({id:c.id,requestFn:Hn,sortNum:c.requestSort}),u({refreshData:Hn}),{option:b,style:p,click:tr,loading:Wn,onClose:re,ecanModal:g,eventObj:x,echartRef:d}}}),ValueLine_vue_vue_type_style_index_0_lang="";function _sfc_render(c,u,f,h,d,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-value-line",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,vue.mergeProps({ref:"echartRef",option:c.option,autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const ValueLine=_export_sfc$1(_sfc_main,[["render",_sfc_render]]),EcanValueLine=withInstall$1(ValueLine),components=Object.freeze(Object.defineProperty({__proto__:null,EcanBar,EcanBorder,EcanButton,EcanCheckbox,EcanCirculate,EcanComboGraph,EcanCounter,EcanCustomGraph,EcanDataSelect,EcanDatePicker,EcanIframe,EcanImage,EcanInput,EcanLine,EcanList,EcanMap,EcanModal,EcanPageConfig,EcanPie,EcanPivotTable,EcanProportion,EcanProviderConfig,EcanRadar,EcanRadio,EcanRangePicker,EcanScatter,EcanScrollText,EcanSelect,EcanTable,EcanTabs,EcanTemplate,EcanText,EcanTimeDisplay,EcanTreeSelect,EcanValueLine,barComponentProps,barEvents,barProps,borderComponentProps,borderEvents,borderProps,buttonComponentProps,buttonEvents,buttonProps,checkboxComponentProps,checkboxEvents,checkboxProps,circulateComponentProps,circulateEvents,circulateProps,comboGraphComponentProps,comboGraphEvents,comboGraphProps,counterComponentProps,counterEvents,counterProps,customGraphComponentProps,customGraphProps,dataSelectComponentProps,dataSelectEvents,dataSelectProps,datePickerComponentProps,datePickerEvents,datePickerProps:datePickerProps$1,iframeComponentProps,iframeProps,imageComponentProps,imageEvents,imageProps,inputComponentProps,inputEvents,inputProps,lineComponentProps,lineEvents,lineProps,listComponentProps,listEvents,listProps,mapComponentProps,mapEvents,mapProps,modalComponentProps,modalEvents,modalProps,pageConfig,pageConfigComponentProps,pieComponentProps,pieEvents,pieProps,pivotTableComponentProps,pivotTableEvents,pivotTableProps,proportionComponentProps,proportionEvents,proportionProps,providerConfig,providerConfigComponentProps,radarComponentProps,radarEvents,radarProps,radioComponentProps,radioEvents,radioProps,rangePickerComponentProps,rangePickerEvents,rangePickerProps,scatterComponentProps,scatterEvents,scatterProps,selectComponentProps,selectEvents,selectProps,tableComponentProps,tableEvents,tableProps,tabsComponentProps,tabsEvents,tabsProps:tabsProps$1,templateComponentProps,templateEvents,templateProps,textComponentProps,textEvents,textProps,timeDisplayComponentProps,timeDisplayEvents,timeDisplayProps,treeSelectComponentProps,treeSelectEvents,treeSelectProps,valueLineComponentProps,valueLineEvents,valueLineProps},Symbol.toStringTag,{value:"Module"}));function noop(){}const extend=Object.assign,inBrowser$1=typeof window<"u",isObject$1=c=>c!==null&&typeof c=="object",isDef=c=>c!=null,isFunction=c=>typeof c=="function",isPromise=c=>isObject$1(c)&&isFunction(c.then)&&isFunction(c.catch),isDate=c=>Object.prototype.toString.call(c)==="[object Date]"&&!Number.isNaN(c.getTime()),isNumeric=c=>typeof c=="number"||/^\d+(\.\d+)?$/.test(c),isIOS=()=>inBrowser$1?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function get(c,u){const f=u.split(".");let h=c;return f.forEach(d=>{var v;h=isObject$1(h)&&(v=h[d])!=null?v:""}),h}function pick(c,u,f){return u.reduce((h,d)=>((!f||c[d]!==void 0)&&(h[d]=c[d]),h),{})}const isSameValue=(c,u)=>JSON.stringify(c)===JSON.stringify(u),flat=c=>c.reduce((u,f)=>u.concat(f),[]),unknownProp=null,numericProp=[Number,String],truthProp={type:Boolean,default:!0},makeRequiredProp=c=>({type:c,required:!0}),makeArrayProp=()=>({type:Array,default:()=>[]}),makeNumericProp=c=>({type:numericProp,default:c}),makeStringProp=c=>({type:String,default:c});var inBrowser=typeof window<"u";function raf(c){return inBrowser?requestAnimationFrame(c):-1}function cancelRaf(c){inBrowser&&cancelAnimationFrame(c)}function doubleRaf(c){raf(()=>raf(c))}var isWindow=c=>c===window,makeDOMRect=(c,u)=>({top:0,left:0,right:c,bottom:u,width:c,height:u}),useRect=c=>{const u=vue.unref(c);if(isWindow(u)){const f=u.innerWidth,h=u.innerHeight;return makeDOMRect(f,h)}return u!=null&&u.getBoundingClientRect?u.getBoundingClientRect():makeDOMRect(0,0)};function useParent(c){const u=vue.inject(c,null);if(u){const f=vue.getCurrentInstance(),{link:h,unlink:d,internalChildren:v}=u;h(f),vue.onUnmounted(()=>d(f));const p=vue.computed(()=>v.indexOf(f));return{parent:u,index:p}}return{parent:null,index:vue.ref(-1)}}function flattenVNodes(c){const u=[],f=h=>{Array.isArray(h)&&h.forEach(d=>{var v;vue.isVNode(d)&&(u.push(d),(v=d.component)!=null&&v.subTree&&(u.push(d.component.subTree),f(d.component.subTree.children)),d.children&&f(d.children))})};return f(c),u}var findVNodeIndex=(c,u)=>{const f=c.indexOf(u);return f===-1?c.findIndex(h=>u.key!==void 0&&u.key!==null&&h.type===u.type&&h.key===u.key):f};function sortChildren(c,u,f){const h=flattenVNodes(c.subTree.children);f.sort((v,p)=>findVNodeIndex(h,v.vnode)-findVNodeIndex(h,p.vnode));const d=f.map(v=>v.proxy);u.sort((v,p)=>{const m=d.indexOf(v),g=d.indexOf(p);return m-g})}function useChildren(c){const u=vue.reactive([]),f=vue.reactive([]),h=vue.getCurrentInstance();return{children:u,linkChildren:v=>{const p=g=>{g.proxy&&(f.push(g),u.push(g.proxy),sortChildren(h,u,f))},m=g=>{const y=f.indexOf(g);u.splice(y,1),f.splice(y,1)};vue.provide(c,Object.assign({link:p,unlink:m,children:u,internalChildren:f},v))}}}function onMountedOrActivated(c){let u;vue.onMounted(()=>{c(),vue.nextTick(()=>{u=!0})}),vue.onActivated(()=>{u&&c()})}function useEventListener(c,u,f={}){if(!inBrowser)return;const{target:h=window,passive:d=!1,capture:v=!1}=f;let p=!1,m;const g=Bn=>{if(p)return;const b=vue.unref(Bn);b&&!m&&(b.addEventListener(c,u,{capture:v,passive:d}),m=!0)},y=Bn=>{if(p)return;const b=vue.unref(Bn);b&&m&&(b.removeEventListener(c,u,v),m=!1)};vue.onUnmounted(()=>y(h)),vue.onDeactivated(()=>y(h)),onMountedOrActivated(()=>g(h));let x;return vue.isRef(h)&&(x=vue.watch(h,(Bn,b)=>{y(b),g(Bn)})),()=>{x==null||x(),y(h),p=!0}}var width,height;function useWindowSize(){if(!width&&(width=vue.ref(0),height=vue.ref(0),inBrowser)){const c=()=>{width.value=window.innerWidth,height.value=window.innerHeight};c(),window.addEventListener("resize",c,{passive:!0}),window.addEventListener("orientationchange",c,{passive:!0})}return{width,height}}var overflowScrollReg=/scroll|auto|overlay/i,defaultRoot=inBrowser?window:void 0;function isElement(c){return c.tagName!=="HTML"&&c.tagName!=="BODY"&&c.nodeType===1}function getScrollParent(c,u=defaultRoot){let f=c;for(;f&&f!==u&&isElement(f);){const{overflowY:h}=window.getComputedStyle(f);if(overflowScrollReg.test(h))return f;f=f.parentNode}return u}function useScrollParent(c,u=defaultRoot){const f=vue.ref();return vue.onMounted(()=>{c.value&&(f.value=getScrollParent(c.value,u))}),f}var visibility;function usePageVisibility(){if(!visibility&&(visibility=vue.ref("visible"),inBrowser)){const c=()=>{visibility.value=document.hidden?"hidden":"visible"};c(),window.addEventListener("visibilitychange",c)}return visibility}function getScrollTop(c){const u="scrollTop"in c?c.scrollTop:c.pageYOffset;return Math.max(u,0)}function setScrollTop(c,u){"scrollTop"in c?c.scrollTop=u:c.scrollTo(c.scrollX,u)}function getRootScrollTop(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function setRootScrollTop(c){setScrollTop(window,c),setScrollTop(document.body,c)}function getElementTop(c,u){if(c===window)return 0;const f=u?getScrollTop(u):getRootScrollTop();return useRect(c).top+f}isIOS();const stopPropagation=c=>c.stopPropagation();function preventDefault(c,u){(typeof c.cancelable!="boolean"||c.cancelable)&&c.preventDefault(),u&&stopPropagation(c)}function isHidden(c){const u=vue.unref(c);if(!u)return!1;const f=window.getComputedStyle(u),h=f.display==="none",d=u.offsetParent===null&&f.position!=="fixed";return h||d}const{width:windowWidth,height:windowHeight}=useWindowSize();function addUnit(c){if(isDef(c))return isNumeric(c)?`${c}px`:String(c)}function getSizeStyle(c){if(isDef(c)){if(Array.isArray(c))return{width:addUnit(c[0]),height:addUnit(c[1])};const u=addUnit(c);return{width:u,height:u}}}function getZIndexStyle(c){const u={};return c!==void 0&&(u.zIndex=+c),u}let rootFontSize;function getRootFontSize(){if(!rootFontSize){const c=document.documentElement,u=c.style.fontSize||window.getComputedStyle(c).fontSize;rootFontSize=parseFloat(u)}return rootFontSize}function convertRem(c){return c=c.replace(/rem/g,""),+c*getRootFontSize()}function convertVw(c){return c=c.replace(/vw/g,""),+c*windowWidth.value/100}function convertVh(c){return c=c.replace(/vh/g,""),+c*windowHeight.value/100}function unitToPx(c){if(typeof c=="number")return c;if(inBrowser$1){if(c.includes("rem"))return convertRem(c);if(c.includes("vw"))return convertVw(c);if(c.includes("vh"))return convertVh(c)}return parseFloat(c)}const camelizeRE=/-(\w)/g,camelize=c=>c.replace(camelizeRE,(u,f)=>f.toUpperCase()),kebabCase=c=>c.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");function padZero(c,u=2){let f=c+"";for(;f.length<u;)f="0"+f;return f}const clamp=(c,u,f)=>Math.min(Math.max(c,u),f),{hasOwnProperty}=Object.prototype;function assignKey(c,u,f){const h=u[f];isDef(h)&&(!hasOwnProperty.call(c,f)||!isObject$1(h)?c[f]=h:c[f]=deepAssign(Object(c[f]),h))}function deepAssign(c,u){return Object.keys(u).forEach(f=>{assignKey(c,u,f)}),c}var stdin_default$h={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(c,u)=>`${c}年${u}月`,rangePrompt:c=>`最多选择 ${c} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:c=>`${c}折`,condition:c=>`满${c}元可用`},vanCouponCell:{title:"优惠券",count:c=>`${c}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const lang=vue.ref("zh-CN"),messages=vue.reactive({"zh-CN":stdin_default$h}),Locale={messages(){return messages[lang.value]},use(c,u){lang.value=c,this.add({[c]:u})},add(c={}){deepAssign(messages,c)}};var stdin_default$g=Locale;function createTranslate(c){const u=camelize(c)+".";return(f,...h)=>{const d=stdin_default$g.messages(),v=get(d,u+f)||get(d,f);return isFunction(v)?v(...h):v}}function genBem(c,u){return u?typeof u=="string"?` ${c}--${u}`:Array.isArray(u)?u.reduce((f,h)=>f+genBem(c,h),""):Object.keys(u).reduce((f,h)=>f+(u[h]?genBem(c,h):""),""):""}function createBEM(c){return(u,f)=>(u&&typeof u!="string"&&(f=u,u=""),u=u?`${c}__${u}`:c,`${u}${genBem(u,f)}`)}function createNamespace(c){const u=`van-${c}`;return[u,createBEM(u),createTranslate(u)]}const BORDER="van-hairline",BORDER_TOP_BOTTOM=`${BORDER}--top-bottom`,BORDER_UNSET_TOP_BOTTOM=`${BORDER}-unset--top-bottom`,HAPTICS_FEEDBACK="van-haptics-feedback",TAP_OFFSET=5;function callInterceptor(c,{args:u=[],done:f,canceled:h,error:d}){if(c){const v=c.apply(null,u);isPromise(v)?v.then(p=>{p?f():h&&h()}).catch(d||noop):v?f():h&&h()}else f()}function withInstall(c){return c.install=u=>{const{name:f}=c;f&&(u.component(f,c),u.component(camelize(`-${f}`),c))},c}const POPUP_TOGGLE_KEY=Symbol();function onPopupReopen(c){const u=vue.inject(POPUP_TOGGLE_KEY,null);u&&vue.watch(u,f=>{f&&c()})}function useExpose(c){const u=vue.getCurrentInstance();u&&extend(u.proxy,c)}const routeProps={to:[String,Object],url:String,replace:Boolean};function route({to:c,url:u,replace:f,$router:h}){c&&h?h[f?"replace":"push"](c):u&&(f?location.replace(u):location.href=u)}const[name$h,bem$f]=createNamespace("badge"),badgeProps={dot:Boolean,max:numericProp,tag:makeStringProp("div"),color:String,offset:Array,content:numericProp,showZero:truthProp,position:makeStringProp("top-right")};var stdin_default$f=vue.defineComponent({name:name$h,props:badgeProps,setup(c,{slots:u}){const f=()=>{if(u.content)return!0;const{content:m,showZero:g}=c;return isDef(m)&&m!==""&&(g||m!==0&&m!=="0")},h=()=>{const{dot:m,max:g,content:y}=c;if(!m&&f())return u.content?u.content():isDef(g)&&isNumeric(y)&&+y>+g?`${g}+`:y},d=m=>m.startsWith("-")?m.replace("-",""):`-${m}`,v=vue.computed(()=>{const m={background:c.color};if(c.offset){const[g,y]=c.offset,{position:x}=c,[Bn,b]=x.split("-");u.default?(typeof y=="number"?m[Bn]=addUnit(Bn==="top"?y:-y):m[Bn]=Bn==="top"?addUnit(y):d(y),typeof g=="number"?m[b]=addUnit(b==="left"?g:-g):m[b]=b==="left"?addUnit(g):d(g)):(m.marginTop=addUnit(y),m.marginLeft=addUnit(g))}return m}),p=()=>{if(f()||c.dot)return vue.createVNode("div",{class:bem$f([c.position,{dot:c.dot,fixed:!!u.default}]),style:v.value},[h()])};return()=>{if(u.default){const{tag:m}=c;return vue.createVNode(m,{class:bem$f("wrapper")},{default:()=>[u.default(),p()]})}return p()}}});const Badge=withInstall(stdin_default$f);let globalZIndex=2e3;const useGlobalZIndex=()=>++globalZIndex,setGlobalZIndex=c=>{globalZIndex=c},[name$g,bem$e]=createNamespace("config-provider"),CONFIG_PROVIDER_KEY=Symbol(name$g),configProviderProps={tag:makeStringProp("div"),theme:makeStringProp("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:makeStringProp("local"),iconPrefix:String};function insertDash(c){return c.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function mapThemeVarsToCSSVars(c){const u={};return Object.keys(c).forEach(f=>{const h=insertDash(kebabCase(f));u[`--van-${h}`]=c[f]}),u}function syncThemeVarsOnRoot(c={},u={}){Object.keys(c).forEach(f=>{c[f]!==u[f]&&document.documentElement.style.setProperty(f,c[f])}),Object.keys(u).forEach(f=>{c[f]||document.documentElement.style.removeProperty(f)})}vue.defineComponent({name:name$g,props:configProviderProps,setup(c,{slots:u}){const f=vue.computed(()=>mapThemeVarsToCSSVars(extend({},c.themeVars,c.theme==="dark"?c.themeVarsDark:c.themeVarsLight)));if(inBrowser$1){const h=()=>{document.documentElement.classList.add(`van-theme-${c.theme}`)},d=(v=c.theme)=>{document.documentElement.classList.remove(`van-theme-${v}`)};vue.watch(()=>c.theme,(v,p)=>{p&&d(p),h()},{immediate:!0}),vue.onActivated(h),vue.onDeactivated(d),vue.onBeforeUnmount(d),vue.watch(f,(v,p)=>{c.themeVarsScope==="global"&&syncThemeVarsOnRoot(v,p)}),vue.watch(()=>c.themeVarsScope,(v,p)=>{p==="global"&&syncThemeVarsOnRoot({},f.value),v==="global"&&syncThemeVarsOnRoot(f.value,{})}),c.themeVarsScope==="global"&&syncThemeVarsOnRoot(f.value,{})}return vue.provide(CONFIG_PROVIDER_KEY,c),vue.watchEffect(()=>{c.zIndex!==void 0&&setGlobalZIndex(c.zIndex)}),()=>vue.createVNode(c.tag,{class:bem$e(),style:c.themeVarsScope==="local"?f.value:void 0},{default:()=>{var h;return[(h=u.default)==null?void 0:h.call(u)]}})}});const[name$f,bem$d]=createNamespace("icon"),isImage=c=>c==null?void 0:c.includes("/"),iconProps={dot:Boolean,tag:makeStringProp("i"),name:String,size:numericProp,badge:numericProp,color:String,badgeProps:Object,classPrefix:String};var stdin_default$e=vue.defineComponent({name:name$f,props:iconProps,setup(c,{slots:u}){const f=vue.inject(CONFIG_PROVIDER_KEY,null),h=vue.computed(()=>c.classPrefix||(f==null?void 0:f.iconPrefix)||bem$d());return()=>{const{tag:d,dot:v,name:p,size:m,badge:g,color:y}=c,x=isImage(p);return vue.createVNode(Badge,vue.mergeProps({dot:v,tag:d,class:[h.value,x?"":`${h.value}-${p}`],style:{color:y,fontSize:addUnit(m)},content:g},c.badgeProps),{default:()=>{var Bn;return[(Bn=u.default)==null?void 0:Bn.call(u),x&&vue.createVNode("img",{class:bem$d("image"),src:p},null)]}})}}});const Icon=withInstall(stdin_default$e),[name$e,bem$c]=createNamespace("loading"),SpinIcon=Array(12).fill(null).map((c,u)=>vue.createVNode("i",{class:bem$c("line",String(u+1))},null)),CircularIcon=vue.createVNode("svg",{class:bem$c("circular"),viewBox:"25 25 50 50"},[vue.createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),loadingProps={size:numericProp,type:makeStringProp("circular"),color:String,vertical:Boolean,textSize:numericProp,textColor:String};var stdin_default$d=vue.defineComponent({name:name$e,props:loadingProps,setup(c,{slots:u}){const f=vue.computed(()=>extend({color:c.color},getSizeStyle(c.size))),h=()=>{const v=c.type==="spinner"?SpinIcon:CircularIcon;return vue.createVNode("span",{class:bem$c("spinner",c.type),style:f.value},[u.icon?u.icon():v])},d=()=>{var v;if(u.default)return vue.createVNode("span",{class:bem$c("text"),style:{fontSize:addUnit(c.textSize),color:(v=c.textColor)!=null?v:c.color}},[u.default()])};return()=>{const{type:v,vertical:p}=c;return vue.createVNode("div",{class:bem$c([v,{vertical:p}]),"aria-live":"polite","aria-busy":!0},[h(),d()])}}});const Loading=withInstall(stdin_default$d),popupSharedProps={show:Boolean,zIndex:numericProp,overlay:truthProp,duration:numericProp,teleport:[String,Object],lockScroll:truthProp,lazyRender:truthProp,beforeClose:Function,overlayStyle:Object,overlayClass:unknownProp,transitionAppear:Boolean,closeOnClickOverlay:truthProp};function getDirection(c,u){return c>u?"horizontal":u>c?"vertical":""}function useTouch(){const c=vue.ref(0),u=vue.ref(0),f=vue.ref(0),h=vue.ref(0),d=vue.ref(0),v=vue.ref(0),p=vue.ref(""),m=vue.ref(!0),g=()=>p.value==="vertical",y=()=>p.value==="horizontal",x=()=>{f.value=0,h.value=0,d.value=0,v.value=0,p.value="",m.value=!0};return{move:re=>{const _=re.touches[0];f.value=(_.clientX<0?0:_.clientX)-c.value,h.value=_.clientY-u.value,d.value=Math.abs(f.value),v.value=Math.abs(h.value);const vn=10;(!p.value||d.value<vn&&v.value<vn)&&(p.value=getDirection(d.value,v.value)),m.value&&(d.value>TAP_OFFSET||v.value>TAP_OFFSET)&&(m.value=!1)},start:re=>{x(),c.value=re.touches[0].clientX,u.value=re.touches[0].clientY},reset:x,startX:c,startY:u,deltaX:f,deltaY:h,offsetX:d,offsetY:v,direction:p,isVertical:g,isHorizontal:y,isTap:m}}let totalLockCount=0;const BODY_LOCK_CLASS="van-overflow-hidden";function useLockScroll(c,u){const f=useTouch(),h="01",d="10",v=x=>{f.move(x);const Bn=f.deltaY.value>0?d:h,b=getScrollParent(x.target,c.value),{scrollHeight:re,offsetHeight:_,scrollTop:vn}=b;let Fn="11";vn===0?Fn=_>=re?"00":"01":vn+_>=re&&(Fn="10"),Fn!=="11"&&f.isVertical()&&!(parseInt(Fn,2)&parseInt(Bn,2))&&preventDefault(x,!0)},p=()=>{document.addEventListener("touchstart",f.start),document.addEventListener("touchmove",v,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},m=()=>{totalLockCount&&(document.removeEventListener("touchstart",f.start),document.removeEventListener("touchmove",v),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},g=()=>u()&&p(),y=()=>u()&&m();onMountedOrActivated(g),vue.onDeactivated(y),vue.onBeforeUnmount(y),vue.watch(u,x=>{x?p():m()})}function useLazyRender(c){const u=vue.ref(!1);return vue.watch(c,f=>{f&&(u.value=f)},{immediate:!0}),f=>()=>u.value?f():null}const useScopeId=()=>{var c;const{scopeId:u}=((c=vue.getCurrentInstance())==null?void 0:c.vnode)||{};return u?{[u]:""}:null},[name$d,bem$b]=createNamespace("overlay"),overlayProps={show:Boolean,zIndex:numericProp,duration:numericProp,className:unknownProp,lockScroll:truthProp,lazyRender:truthProp,customStyle:Object,teleport:[String,Object]};var stdin_default$c=vue.defineComponent({name:name$d,props:overlayProps,setup(c,{slots:u}){const f=vue.ref(),h=useLazyRender(()=>c.show||!c.lazyRender),d=p=>{c.lockScroll&&preventDefault(p,!0)},v=h(()=>{var p;const m=extend(getZIndexStyle(c.zIndex),c.customStyle);return isDef(c.duration)&&(m.animationDuration=`${c.duration}s`),vue.withDirectives(vue.createVNode("div",{ref:f,style:m,class:[bem$b(),c.className]},[(p=u.default)==null?void 0:p.call(u)]),[[vue.vShow,c.show]])});return useEventListener("touchmove",d,{target:f}),()=>{const p=vue.createVNode(vue.Transition,{name:"van-fade",appear:!0},{default:v});return c.teleport?vue.createVNode(vue.Teleport,{to:c.teleport},{default:()=>[p]}):p}}});const Overlay=withInstall(stdin_default$c),popupProps=extend({},popupSharedProps,{round:Boolean,position:makeStringProp("center"),closeIcon:makeStringProp("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:makeStringProp("top-right"),safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[name$c,bem$a]=createNamespace("popup");var stdin_default$b=vue.defineComponent({name:name$c,inheritAttrs:!1,props:popupProps,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(c,{emit:u,attrs:f,slots:h}){let d,v;const p=vue.ref(),m=vue.ref(),g=useLazyRender(()=>c.show||!c.lazyRender),y=vue.computed(()=>{const zn={zIndex:p.value};if(isDef(c.duration)){const Wn=c.position==="center"?"animationDuration":"transitionDuration";zn[Wn]=`${c.duration}s`}return zn}),x=()=>{d||(d=!0,p.value=c.zIndex!==void 0?+c.zIndex:useGlobalZIndex(),u("open"))},Bn=()=>{d&&callInterceptor(c.beforeClose,{done(){d=!1,u("close"),u("update:show",!1)}})},b=zn=>{u("clickOverlay",zn),c.closeOnClickOverlay&&Bn()},re=()=>{if(c.overlay)return vue.createVNode(Overlay,vue.mergeProps({show:c.show,class:c.overlayClass,zIndex:p.value,duration:c.duration,customStyle:c.overlayStyle,role:c.closeOnClickOverlay?"button":void 0,tabindex:c.closeOnClickOverlay?0:void 0},useScopeId(),{onClick:b}),{default:h["overlay-content"]})},_=zn=>{u("clickCloseIcon",zn),Bn()},vn=()=>{if(c.closeable)return vue.createVNode(Icon,{role:"button",tabindex:0,name:c.closeIcon,class:[bem$a("close-icon",c.closeIconPosition),HAPTICS_FEEDBACK],classPrefix:c.iconPrefix,onClick:_},null)};let Fn;const Pn=()=>{Fn&&clearTimeout(Fn),Fn=setTimeout(()=>{u("opened")})},w=()=>u("closed"),J=zn=>u("keydown",zn),gn=g(()=>{var zn;const{round:Wn,position:Un,safeAreaInsetTop:er,safeAreaInsetBottom:Jn}=c;return vue.withDirectives(vue.createVNode("div",vue.mergeProps({ref:m,style:y.value,role:"dialog",tabindex:0,class:[bem$a({round:Wn,[Un]:Un}),{"van-safe-area-top":er,"van-safe-area-bottom":Jn}],onKeydown:J},f,useScopeId()),[(zn=h.default)==null?void 0:zn.call(h),vn()]),[[vue.vShow,c.show]])}),Vn=()=>{const{position:zn,transition:Wn,transitionAppear:Un}=c,er=zn==="center"?"van-fade":`van-popup-slide-${zn}`;return vue.createVNode(vue.Transition,{name:Wn||er,appear:Un,onAfterEnter:Pn,onAfterLeave:w},{default:gn})};return vue.watch(()=>c.show,zn=>{zn&&!d&&(x(),f.tabindex===0&&vue.nextTick(()=>{var Wn;(Wn=m.value)==null||Wn.focus()})),!zn&&d&&(d=!1,u("close"))}),useExpose({popupRef:m}),useLockScroll(m,()=>c.show&&c.lockScroll),useEventListener("popstate",()=>{c.closeOnPopstate&&(Bn(),v=!1)}),vue.onMounted(()=>{c.show&&x()}),vue.onActivated(()=>{v&&(u("update:show",!0),v=!1)}),vue.onDeactivated(()=>{c.show&&c.teleport&&(Bn(),v=!0)}),vue.provide(POPUP_TOGGLE_KEY,()=>c.show),()=>c.teleport?vue.createVNode(vue.Teleport,{to:c.teleport},{default:()=>[re(),Vn()]}):vue.createVNode(vue.Fragment,null,[re(),Vn()])}});const Popup=withInstall(stdin_default$b),[name$b,bem$9,t]=createNamespace("picker"),getFirstEnabledOption=c=>c.find(u=>!u.disabled)||c[0];function getColumnsType(c,u){const f=c[0];if(f){if(Array.isArray(f))return"multiple";if(u.children in f)return"cascade"}return"default"}function findIndexOfEnabledOption(c,u){u=clamp(u,0,c.length);for(let f=u;f<c.length;f++)if(!c[f].disabled)return f;for(let f=u-1;f>=0;f--)if(!c[f].disabled)return f;return 0}const isOptionExist=(c,u,f)=>u!==void 0&&!!c.find(h=>h[f.value]===u);function findOptionByValue(c,u,f){const h=c.findIndex(v=>v[f.value]===u),d=findIndexOfEnabledOption(c,h);return c[d]}function formatCascadeColumns(c,u,f){const h=[];let d={[u.children]:c},v=0;for(;d&&d[u.children];){const p=d[u.children],m=f.value[v];if(d=isDef(m)?findOptionByValue(p,m,u):void 0,!d&&p.length){const g=getFirstEnabledOption(p)[u.value];d=findOptionByValue(p,g,u)}v++,h.push(p)}return h}function getElementTranslateY(c){const{transform:u}=window.getComputedStyle(c),f=u.slice(7,u.length-1).split(", ")[5];return Number(f)}function assignDefaultFields(c){return extend({text:"text",value:"value",children:"children"},c)}const DEFAULT_DURATION=200,MOMENTUM_TIME=300,MOMENTUM_DISTANCE=15,[name$a,bem$8]=createNamespace("picker-column"),PICKER_KEY=Symbol(name$a);var stdin_default$a=vue.defineComponent({name:name$a,props:{value:numericProp,fields:makeRequiredProp(Object),options:makeArrayProp(),readonly:Boolean,allowHtml:Boolean,optionHeight:makeRequiredProp(Number),swipeDuration:makeRequiredProp(numericProp),visibleOptionNum:makeRequiredProp(numericProp)},emits:["change","clickOption","scrollInto"],setup(c,{emit:u,slots:f}){let h,d,v,p,m;const g=vue.ref(),y=vue.ref(),x=vue.ref(0),Bn=vue.ref(0),b=useTouch(),re=()=>c.options.length,_=()=>c.optionHeight*(+c.visibleOptionNum-1)/2,vn=Jn=>{let tr=findIndexOfEnabledOption(c.options,Jn);const Qn=-tr*c.optionHeight,ir=()=>{tr>re()-1&&(tr=findIndexOfEnabledOption(c.options,Jn));const cr=c.options[tr][c.fields.value];cr!==c.value&&u("change",cr)};h&&Qn!==x.value?m=ir:ir(),x.value=Qn},Fn=()=>c.readonly||!c.options.length,Pn=Jn=>{h||Fn()||(m=null,Bn.value=DEFAULT_DURATION,vn(Jn),u("clickOption",c.options[Jn]))},w=Jn=>clamp(Math.round(-Jn/c.optionHeight),0,re()-1),J=vue.computed(()=>w(x.value)),gn=(Jn,tr)=>{const Qn=Math.abs(Jn/tr);Jn=x.value+Qn/.003*(Jn<0?-1:1);const ir=w(Jn);Bn.value=+c.swipeDuration,vn(ir)},Vn=()=>{h=!1,Bn.value=0,m&&(m(),m=null)},zn=Jn=>{if(!Fn()){if(b.start(Jn),h){const tr=getElementTranslateY(y.value);x.value=Math.min(0,tr-_())}Bn.value=0,d=x.value,v=Date.now(),p=d,m=null}},Wn=Jn=>{if(Fn())return;b.move(Jn),b.isVertical()&&(h=!0,preventDefault(Jn,!0));const tr=clamp(d+b.deltaY.value,-(re()*c.optionHeight),c.optionHeight),Qn=w(tr);Qn!==J.value&&u("scrollInto",c.options[Qn]),x.value=tr;const ir=Date.now();ir-v>MOMENTUM_TIME&&(v=ir,p=tr)},Un=()=>{if(Fn())return;const Jn=x.value-p,tr=Date.now()-v;if(tr<MOMENTUM_TIME&&Math.abs(Jn)>MOMENTUM_DISTANCE){gn(Jn,tr);return}const ir=w(x.value);Bn.value=DEFAULT_DURATION,vn(ir),setTimeout(()=>{h=!1},0)},er=()=>{const Jn={height:`${c.optionHeight}px`};return c.options.map((tr,Qn)=>{const ir=tr[c.fields.text],{disabled:cr}=tr,Xn=tr[c.fields.value],Hn={role:"button",style:Jn,tabindex:cr?-1:0,class:[bem$8("item",{disabled:cr,selected:Xn===c.value}),tr.className],onClick:()=>Pn(Qn)},Yn={class:"van-ellipsis",[c.allowHtml?"innerHTML":"textContent"]:ir};return vue.createVNode("li",Hn,[f.option?f.option(tr,Qn):vue.createVNode("div",Yn,null)])})};return useParent(PICKER_KEY),useExpose({stopMomentum:Vn}),vue.watchEffect(()=>{const Jn=h?Math.floor(-x.value/c.optionHeight):c.options.findIndex(ir=>ir[c.fields.value]===c.value),tr=findIndexOfEnabledOption(c.options,Jn),Qn=-tr*c.optionHeight;h&&tr<Jn&&Vn(),x.value=Qn}),useEventListener("touchmove",Wn,{target:g}),()=>vue.createVNode("div",{ref:g,class:bem$8(),onTouchstartPassive:zn,onTouchend:Un,onTouchcancel:Un},[vue.createVNode("ul",{ref:y,style:{transform:`translate3d(0, ${x.value+_()}px, 0)`,transitionDuration:`${Bn.value}ms`,transitionProperty:Bn.value?"all":"none"},class:bem$8("wrapper"),onTransitionend:Vn},[er()])])}});const[name$9]=createNamespace("picker-toolbar"),pickerToolbarProps={title:String,cancelButtonText:String,confirmButtonText:String},pickerToolbarSlots=["cancel","confirm","title","toolbar"],pickerToolbarPropKeys=Object.keys(pickerToolbarProps);var stdin_default$9=vue.defineComponent({name:name$9,props:pickerToolbarProps,emits:["confirm","cancel"],setup(c,{emit:u,slots:f}){const h=()=>{if(f.title)return f.title();if(c.title)return vue.createVNode("div",{class:[bem$9("title"),"van-ellipsis"]},[c.title])},d=()=>u("cancel"),v=()=>u("confirm"),p=()=>{var g;const y=(g=c.cancelButtonText)!=null?g:t("cancel");if(!(!f.cancel&&!y))return vue.createVNode("button",{type:"button",class:[bem$9("cancel"),HAPTICS_FEEDBACK],onClick:d},[f.cancel?f.cancel():y])},m=()=>{var g;const y=(g=c.confirmButtonText)!=null?g:t("confirm");if(!(!f.confirm&&!y))return vue.createVNode("button",{type:"button",class:[bem$9("confirm"),HAPTICS_FEEDBACK],onClick:v},[f.confirm?f.confirm():y])};return()=>vue.createVNode("div",{class:bem$9("toolbar")},[f.toolbar?f.toolbar():[p(),h(),m()]])}});const useSyncPropRef=(c,u)=>{const f=vue.ref(c());return vue.watch(c,h=>{h!==f.value&&(f.value=h)}),vue.watch(f,h=>{h!==c()&&u(h)}),f};/**
|
|
132
132
|
* @vue/shared v3.5.4
|
|
133
133
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
134
134
|
* @license MIT
|
|
135
|
-
**/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const isArray=Array.isArray,isString=c=>typeof c=="string",isObject=c=>c!==null&&typeof c=="object",cacheStringFunction=c=>{const u=Object.create(null);return f=>u[f]||(u[f]=c(f))},hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(c=>c.replace(hyphenateRE,"-$1").toLowerCase());function normalizeStyle(c){if(isArray(c)){const u={};for(let f=0;f<c.length;f++){const h=c[f],d=isString(h)?parseStringStyle(h):normalizeStyle(h);if(d)for(const v in d)u[v]=d[v]}return u}else if(isString(c)||isObject(c))return c}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(c){const u={};return c.replace(styleCommentRE,"").split(listDelimiterRE).forEach(f=>{if(f){const h=f.split(propertyDelimiterRE);h.length>1&&(u[h[0].trim()]=h[1].trim())}}),u}function stringifyStyle(c){let u="";if(!c||isString(c))return u;for(const f in c){const h=c[f];if(isString(h)||typeof h=="number"){const d=f.startsWith("--")?f:hyphenate(f);u+=`${d}:${h};`}}return u}function normalizeClass(c){let u="";if(isString(c))u=c;else if(isArray(c))for(let f=0;f<c.length;f++){const h=normalizeClass(c[f]);h&&(u+=h+" ")}else if(isObject(c))for(const f in c)c[f]&&(u+=f+" ");return u.trim()}function scrollLeftTo(c,u,f){let h,d=0;const v=c.scrollLeft,p=f===0?1:Math.round(f*1e3/16);let m=v;function g(){cancelRaf(h)}function y(){m+=(u-v)/p,c.scrollLeft=m,++d<p&&(h=raf(y))}return y(),g}function scrollTopTo(c,u,f,h){let d,v=getScrollTop(c);const p=v<u,m=f===0?1:Math.round(f*1e3/16),g=(u-v)/m;function y(){cancelRaf(d)}function x(){v+=g,(p&&v>u||!p&&v<u)&&(v=u),setScrollTop(c,v),p&&v<u||!p&&v>u?d=raf(x):h&&(d=raf(h))}return x(),y}let current=0;function useId(){const c=vue.getCurrentInstance(),{name:u="unknown"}=(c==null?void 0:c.type)||{};return process.env.NODE_ENV==="test"?u:`${u}-${++current}`}function useRefs(){const c=vue.ref([]),u=[];return vue.onBeforeUpdate(()=>{c.value=[]}),[c,h=>(u[h]||(u[h]=d=>{c.value[h]=d}),u[h])]}function useVisibilityChange(c,u){if(!inBrowser$1||!window.IntersectionObserver)return;const f=new IntersectionObserver(v=>{u(v[0].intersectionRatio>0)},{root:document.body}),h=()=>{c.value&&f.observe(c.value)},d=()=>{c.value&&f.unobserve(c.value)};vue.onDeactivated(d),vue.onBeforeUnmount(d),onMountedOrActivated(h)}const[name$8,bem$7]=createNamespace("sticky"),stickyProps={zIndex:numericProp,position:makeStringProp("top"),container:Object,offsetTop:makeNumericProp(0),offsetBottom:makeNumericProp(0)};var stdin_default$8=vue.defineComponent({name:name$8,props:stickyProps,emits:["scroll","change"],setup(c,{emit:u,slots:f}){const h=vue.ref(),d=useScrollParent(h),v=vue.reactive({fixed:!1,width:0,height:0,transform:0}),p=vue.ref(!1),m=vue.computed(()=>unitToPx(c.position==="top"?c.offsetTop:c.offsetBottom)),g=vue.computed(()=>{if(p.value)return;const{fixed:b,height:vn,width:_}=v;if(b)return{width:`${_}px`,height:`${vn}px`}}),y=vue.computed(()=>{if(!v.fixed||p.value)return;const b=extend(getZIndexStyle(c.zIndex),{width:`${v.width}px`,height:`${v.height}px`,[c.position]:`${m.value}px`});return v.transform&&(b.transform=`translate3d(0, ${v.transform}px, 0)`),b}),x=b=>u("scroll",{scrollTop:b,isFixed:v.fixed}),Pn=()=>{if(!h.value||isHidden(h))return;const{container:b,position:vn}=c,_=useRect(h),re=getScrollTop(window);if(v.width=_.width,v.height=_.height,vn==="top")if(b){const Fn=useRect(b),Bn=Fn.bottom-m.value-v.height;v.fixed=m.value>_.top&&Fn.bottom>0,v.transform=Bn<0?Bn:0}else v.fixed=m.value>_.top;else{const{clientHeight:Fn}=document.documentElement;if(b){const Bn=useRect(b),w=Fn-Bn.top-m.value-v.height;v.fixed=Fn-m.value<_.bottom&&Fn>Bn.top,v.transform=w<0?-w:0}else v.fixed=Fn-m.value<_.bottom}x(re)};return vue.watch(()=>v.fixed,b=>u("change",b)),useEventListener("scroll",Pn,{target:d,passive:!0}),useVisibilityChange(h,Pn),vue.watch([windowWidth,windowHeight],()=>{!h.value||isHidden(h)||!v.fixed||(p.value=!0,vue.nextTick(()=>{const b=useRect(h);v.width=b.width,v.height=b.height,p.value=!1}))}),()=>{var b;return vue.createVNode("div",{ref:h,style:g.value},[vue.createVNode("div",{class:bem$7({fixed:v.fixed&&!p.value}),style:y.value},[(b=f.default)==null?void 0:b.call(f)])])}}});const Sticky=withInstall(stdin_default$8),[name$7,bem$6]=createNamespace("swipe"),swipeProps={loop:truthProp,width:numericProp,height:numericProp,vertical:Boolean,autoplay:makeNumericProp(0),duration:makeNumericProp(500),touchable:truthProp,lazyRender:Boolean,initialSwipe:makeNumericProp(0),indicatorColor:String,showIndicators:truthProp,stopPropagation:truthProp},SWIPE_KEY=Symbol(name$7);var stdin_default$7=vue.defineComponent({name:name$7,props:swipeProps,emits:["change","dragStart","dragEnd"],setup(c,{emit:u,slots:f}){const h=vue.ref(),d=vue.ref(),v=vue.reactive({rect:null,width:0,height:0,offset:0,active:0,swiping:!1});let p=!1;const m=useTouch(),{children:g,linkChildren:y}=useChildren(SWIPE_KEY),x=vue.computed(()=>g.length),Pn=vue.computed(()=>v[c.vertical?"height":"width"]),b=vue.computed(()=>c.vertical?m.deltaY.value:m.deltaX.value),vn=vue.computed(()=>v.rect?(c.vertical?v.rect.height:v.rect.width)-Pn.value*x.value:0),_=vue.computed(()=>Pn.value?Math.ceil(Math.abs(vn.value)/Pn.value):x.value),re=vue.computed(()=>x.value*Pn.value),Fn=vue.computed(()=>(v.active+x.value)%x.value),Bn=vue.computed(()=>{const qn=c.vertical?"vertical":"horizontal";return m.direction.value===qn}),w=vue.computed(()=>{const qn={transitionDuration:`${v.swiping?0:c.duration}ms`,transform:`translate${c.vertical?"Y":"X"}(${+v.offset.toFixed(2)}px)`};if(Pn.value){const er=c.vertical?"height":"width",ir=c.vertical?"width":"height";qn[er]=`${re.value}px`,qn[ir]=c[ir]?`${c[ir]}px`:""}return qn}),J=qn=>{const{active:er}=v;return qn?c.loop?clamp(er+qn,-1,x.value):clamp(er+qn,0,_.value):er},gn=(qn,er=0)=>{let ir=qn*Pn.value;c.loop||(ir=Math.min(ir,-vn.value));let Kn=er-ir;return c.loop||(Kn=clamp(Kn,vn.value,0)),Kn},Rn=({pace:qn=0,offset:er=0,emitChange:ir})=>{if(x.value<=1)return;const{active:Kn}=v,or=J(qn),cr=gn(or,er);if(c.loop){if(g[0]&&cr!==vn.value){const hr=cr<vn.value;g[0].setOffset(hr?re.value:0)}if(g[x.value-1]&&cr!==0){const hr=cr>0;g[x.value-1].setOffset(hr?-re.value:0)}}v.active=or,v.offset=cr,ir&&or!==Kn&&u("change",Fn.value)},zn=()=>{v.swiping=!0,v.active<=-1?Rn({pace:x.value}):v.active>=x.value&&Rn({pace:-x.value})},Wn=()=>{zn(),m.reset(),doubleRaf(()=>{v.swiping=!1,Rn({pace:-1,emitChange:!0})})},Un=()=>{zn(),m.reset(),doubleRaf(()=>{v.swiping=!1,Rn({pace:1,emitChange:!0})})};let Qn;const Jn=()=>clearTimeout(Qn),tr=()=>{Jn(),+c.autoplay>0&&x.value>1&&(Qn=setTimeout(()=>{Un(),tr()},+c.autoplay))},Xn=(qn=+c.initialSwipe)=>{if(!h.value)return;const er=()=>{var ir,Kn;if(!isHidden(h)){const or={width:h.value.offsetWidth,height:h.value.offsetHeight};v.rect=or,v.width=+((ir=c.width)!=null?ir:or.width),v.height=+((Kn=c.height)!=null?Kn:or.height)}x.value&&(qn=Math.min(x.value-1,qn),qn===-1&&(qn=x.value-1)),v.active=qn,v.swiping=!0,v.offset=gn(qn),g.forEach(or=>{or.setOffset(0)}),tr()};isHidden(h)?vue.nextTick().then(er):er()},ar=()=>Xn(v.active);let sr;const nr=qn=>{!c.touchable||qn.touches.length>1||(m.start(qn),p=!1,sr=Date.now(),Jn(),zn())},Hn=qn=>{c.touchable&&v.swiping&&(m.move(qn),Bn.value&&(!c.loop&&(v.active===0&&b.value>0||v.active===x.value-1&&b.value<0)||(preventDefault(qn,c.stopPropagation),Rn({offset:b.value}),p||(u("dragStart",{index:Fn.value}),p=!0))))},Yn=()=>{if(!c.touchable||!v.swiping)return;const qn=Date.now()-sr,er=b.value/qn;if((Math.abs(er)>.25||Math.abs(b.value)>Pn.value/2)&&Bn.value){const Kn=c.vertical?m.offsetY.value:m.offsetX.value;let or=0;c.loop?or=Kn>0?b.value>0?-1:1:0:or=-Math[b.value>0?"ceil":"floor"](b.value/Pn.value),Rn({pace:or,emitChange:!0})}else b.value&&Rn({pace:0});p=!1,v.swiping=!1,u("dragEnd",{index:Fn.value}),tr()},Vn=(qn,er={})=>{zn(),m.reset(),doubleRaf(()=>{let ir;c.loop&&qn===x.value?ir=v.active===0?0:qn:ir=qn%x.value,er.immediate?doubleRaf(()=>{v.swiping=!1}):v.swiping=!1,Rn({pace:ir-v.active,emitChange:!0})})},Gn=(qn,er)=>{const ir=er===Fn.value,Kn=ir?{backgroundColor:c.indicatorColor}:void 0;return vue.createVNode("i",{style:Kn,class:bem$6("indicator",{active:ir})},null)},Zn=()=>{if(f.indicator)return f.indicator({active:Fn.value,total:x.value});if(c.showIndicators&&x.value>1)return vue.createVNode("div",{class:bem$6("indicators",{vertical:c.vertical})},[Array(x.value).fill("").map(Gn)])};return useExpose({prev:Wn,next:Un,state:v,resize:ar,swipeTo:Vn}),y({size:Pn,props:c,count:x,activeIndicator:Fn}),vue.watch(()=>c.initialSwipe,qn=>Xn(+qn)),vue.watch(x,()=>Xn(v.active)),vue.watch(()=>c.autoplay,tr),vue.watch([windowWidth,windowHeight,()=>c.width,()=>c.height],ar),vue.watch(usePageVisibility(),qn=>{qn==="visible"?tr():Jn()}),vue.onMounted(Xn),vue.onActivated(()=>Xn(v.active)),onPopupReopen(()=>Xn(v.active)),vue.onDeactivated(Jn),vue.onBeforeUnmount(Jn),useEventListener("touchmove",Hn,{target:d}),()=>{var qn;return vue.createVNode("div",{ref:h,class:bem$6()},[vue.createVNode("div",{ref:d,style:w.value,class:bem$6("track",{vertical:c.vertical}),onTouchstartPassive:nr,onTouchend:Yn,onTouchcancel:Yn},[(qn=f.default)==null?void 0:qn.call(f)]),Zn()])}}});const Swipe=withInstall(stdin_default$7),[name$6,bem$5]=createNamespace("tabs");var stdin_default$6=vue.defineComponent({name:name$6,props:{count:makeRequiredProp(Number),inited:Boolean,animated:Boolean,duration:makeRequiredProp(numericProp),swipeable:Boolean,lazyRender:Boolean,currentIndex:makeRequiredProp(Number)},emits:["change"],setup(c,{emit:u,slots:f}){const h=vue.ref(),d=m=>u("change",m),v=()=>{var m;const g=(m=f.default)==null?void 0:m.call(f);return c.animated||c.swipeable?vue.createVNode(Swipe,{ref:h,loop:!1,class:bem$5("track"),duration:+c.duration*1e3,touchable:c.swipeable,lazyRender:c.lazyRender,showIndicators:!1,onChange:d},{default:()=>[g]}):g},p=m=>{const g=h.value;g&&g.state.active!==m&&g.swipeTo(m,{immediate:!c.inited})};return vue.watch(()=>c.currentIndex,p),vue.onMounted(()=>{p(c.currentIndex)}),useExpose({swipeRef:h}),()=>vue.createVNode("div",{class:bem$5("content",{animated:c.animated||c.swipeable})},[v()])}});const[name$5,bem$4]=createNamespace("tabs"),tabsProps={type:makeStringProp("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:makeNumericProp(0),duration:makeNumericProp(.3),animated:Boolean,ellipsis:truthProp,swipeable:Boolean,scrollspy:Boolean,offsetTop:makeNumericProp(0),background:String,lazyRender:truthProp,showHeader:truthProp,lineWidth:numericProp,lineHeight:numericProp,beforeChange:Function,swipeThreshold:makeNumericProp(5),titleActiveColor:String,titleInactiveColor:String},TABS_KEY=Symbol(name$5);var stdin_default$5=vue.defineComponent({name:name$5,props:tabsProps,emits:["change","scroll","rendered","clickTab","update:active"],setup(c,{emit:u,slots:f}){let h,d,v,p,m;const g=vue.ref(),y=vue.ref(),x=vue.ref(),Pn=vue.ref(),b=useId(),vn=useScrollParent(g),[_,re]=useRefs(),{children:Fn,linkChildren:Bn}=useChildren(TABS_KEY),w=vue.reactive({inited:!1,position:"",lineStyle:{},currentIndex:-1}),J=vue.computed(()=>Fn.length>+c.swipeThreshold||!c.ellipsis||c.shrink),gn=vue.computed(()=>({borderColor:c.color,background:c.background})),Rn=(or,cr)=>{var hr;return(hr=or.name)!=null?hr:cr},zn=vue.computed(()=>{const or=Fn[w.currentIndex];if(or)return Rn(or,w.currentIndex)}),Wn=vue.computed(()=>unitToPx(c.offsetTop)),Un=vue.computed(()=>c.sticky?Wn.value+h:0),Qn=or=>{const cr=y.value,hr=_.value;if(!J.value||!cr||!hr||!hr[w.currentIndex])return;const dr=hr[w.currentIndex].$el,lr=dr.offsetLeft-(cr.offsetWidth-dr.offsetWidth)/2;p&&p(),p=scrollLeftTo(cr,lr,or?0:+c.duration)},Jn=()=>{const or=w.inited;vue.nextTick(()=>{const cr=_.value;if(!cr||!cr[w.currentIndex]||c.type!=="line"||isHidden(g.value))return;const hr=cr[w.currentIndex].$el,{lineWidth:dr,lineHeight:lr}=c,fr=hr.offsetLeft+hr.offsetWidth/2,mr={width:addUnit(dr),backgroundColor:c.color,transform:`translateX(${fr}px) translateX(-50%)`};if(or&&(mr.transitionDuration=`${c.duration}s`),isDef(lr)){const pr=addUnit(lr);mr.height=pr,mr.borderRadius=pr}w.lineStyle=mr})},tr=or=>{const cr=or<w.currentIndex?-1:1;for(;or>=0&&or<Fn.length;){if(!Fn[or].disabled)return or;or+=cr}},Xn=(or,cr)=>{const hr=tr(or);if(!isDef(hr))return;const dr=Fn[hr],lr=Rn(dr,hr),fr=w.currentIndex!==null;w.currentIndex!==hr&&(w.currentIndex=hr,cr||Qn(),Jn()),lr!==c.active&&(u("update:active",lr),fr&&u("change",lr,dr.title)),v&&!c.scrollspy&&setRootScrollTop(Math.ceil(getElementTop(g.value)-Wn.value))},ar=(or,cr)=>{const hr=Fn.find((lr,fr)=>Rn(lr,fr)===or),dr=hr?Fn.indexOf(hr):0;Xn(dr,cr)},sr=(or=!1)=>{if(c.scrollspy){const cr=Fn[w.currentIndex].$el;if(cr&&vn.value){const hr=getElementTop(cr,vn.value)-Un.value;d=!0,m&&m(),m=scrollTopTo(vn.value,hr,or?0:+c.duration,()=>{d=!1})}}},nr=(or,cr,hr)=>{const{title:dr,disabled:lr}=Fn[cr],fr=Rn(Fn[cr],cr);lr||(callInterceptor(c.beforeChange,{args:[fr],done:()=>{Xn(cr),sr()}}),route(or)),u("clickTab",{name:fr,title:dr,event:hr,disabled:lr})},Hn=or=>{v=or.isFixed,u("scroll",or)},Yn=or=>{vue.nextTick(()=>{ar(or),sr(!0)})},Vn=()=>{for(let or=0;or<Fn.length;or++){const{top:cr}=useRect(Fn[or].$el);if(cr>Un.value)return or===0?0:or-1}return Fn.length-1},Gn=()=>{if(c.scrollspy&&!d){const or=Vn();Xn(or)}},Zn=()=>{if(c.type==="line"&&Fn.length)return vue.createVNode("div",{class:bem$4("line"),style:w.lineStyle},null)},qn=()=>{var or,cr,hr;const{type:dr,border:lr,sticky:fr}=c,mr=[vue.createVNode("div",{ref:fr?void 0:x,class:[bem$4("wrap"),{[BORDER_TOP_BOTTOM]:dr==="line"&&lr}]},[vue.createVNode("div",{ref:y,role:"tablist",class:bem$4("nav",[dr,{shrink:c.shrink,complete:J.value}]),style:gn.value,"aria-orientation":"horizontal"},[(or=f["nav-left"])==null?void 0:or.call(f),Fn.map(pr=>pr.renderTitle(nr)),Zn(),(cr=f["nav-right"])==null?void 0:cr.call(f)])]),(hr=f["nav-bottom"])==null?void 0:hr.call(f)];return fr?vue.createVNode("div",{ref:x},[mr]):mr},er=()=>{Jn(),vue.nextTick(()=>{var or,cr;Qn(!0),(cr=(or=Pn.value)==null?void 0:or.swipeRef.value)==null||cr.resize()})};vue.watch(()=>[c.color,c.duration,c.lineWidth,c.lineHeight],Jn),vue.watch(windowWidth,er),vue.watch(()=>c.active,or=>{or!==zn.value&&ar(or)}),vue.watch(()=>Fn.length,()=>{w.inited&&(ar(c.active),Jn(),vue.nextTick(()=>{Qn(!0)}))});const ir=()=>{ar(c.active,!0),vue.nextTick(()=>{w.inited=!0,x.value&&(h=useRect(x.value).height),Qn(!0)})},Kn=(or,cr)=>u("rendered",or,cr);return useExpose({resize:er,scrollTo:Yn}),vue.onActivated(Jn),onPopupReopen(Jn),onMountedOrActivated(ir),useVisibilityChange(g,Jn),useEventListener("scroll",Gn,{target:vn,passive:!0}),Bn({id:b,props:c,setLine:Jn,scrollable:J,onRendered:Kn,currentName:zn,setTitleRefs:re,scrollIntoView:Qn}),()=>vue.createVNode("div",{ref:g,class:bem$4([c.type])},[c.showHeader?c.sticky?vue.createVNode(Sticky,{container:g.value,offsetTop:Wn.value,onScroll:Hn},{default:()=>[qn()]}):qn():null,vue.createVNode(stdin_default$6,{ref:Pn,count:Fn.length,inited:w.inited,animated:c.animated,duration:c.duration,swipeable:c.swipeable,lazyRender:c.lazyRender,currentIndex:w.currentIndex,onChange:Xn},{default:()=>{var or;return[(or=f.default)==null?void 0:or.call(f)]}})])}});const TAB_STATUS_KEY=Symbol(),[name$4,bem$3]=createNamespace("tab"),TabTitle=vue.defineComponent({name:name$4,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:numericProp,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:truthProp},setup(c,{slots:u}){const f=vue.computed(()=>{const d={},{type:v,color:p,disabled:m,isActive:g,activeColor:y,inactiveColor:x}=c;p&&v==="card"&&(d.borderColor=p,m||(g?d.backgroundColor=p:d.color=p));const b=g?y:x;return b&&(d.color=b),d}),h=()=>{const d=vue.createVNode("span",{class:bem$3("text",{ellipsis:!c.scrollable})},[u.title?u.title():c.title]);return c.dot||isDef(c.badge)&&c.badge!==""?vue.createVNode(Badge,{dot:c.dot,content:c.badge,showZero:c.showZeroBadge},{default:()=>[d]}):d};return()=>vue.createVNode("div",{id:c.id,role:"tab",class:[bem$3([c.type,{grow:c.scrollable&&!c.shrink,shrink:c.shrink,active:c.isActive,disabled:c.disabled}])],style:f.value,tabindex:c.disabled?void 0:c.isActive?0:-1,"aria-selected":c.isActive,"aria-disabled":c.disabled||void 0,"aria-controls":c.controls},[h()])}}),[name$3,bem$2]=createNamespace("swipe-item");var stdin_default$4=vue.defineComponent({name:name$3,setup(c,{slots:u}){let f;const h=vue.reactive({offset:0,inited:!1,mounted:!1}),{parent:d,index:v}=useParent(SWIPE_KEY);if(!d){process.env.NODE_ENV!=="production"&&console.error("[Vant] <SwipeItem> must be a child component of <Swipe>.");return}const p=vue.computed(()=>{const y={},{vertical:x}=d.props;return d.size.value&&(y[x?"height":"width"]=`${d.size.value}px`),h.offset&&(y.transform=`translate${x?"Y":"X"}(${h.offset}px)`),y}),m=vue.computed(()=>{const{loop:y,lazyRender:x}=d.props;if(!x||f)return!0;if(!h.mounted)return!1;const Pn=d.activeIndicator.value,b=d.count.value-1,vn=Pn===0&&y?b:Pn-1,_=Pn===b&&y?0:Pn+1;return f=v.value===Pn||v.value===vn||v.value===_,f}),g=y=>{h.offset=y};return vue.onMounted(()=>{vue.nextTick(()=>{h.mounted=!0})}),useExpose({setOffset:g}),()=>{var y;return vue.createVNode("div",{class:bem$2(),style:p.value},[m.value?(y=u.default)==null?void 0:y.call(u):null])}}});const SwipeItem=withInstall(stdin_default$4),[name$2,bem$1]=createNamespace("tab"),tabProps=extend({},routeProps,{dot:Boolean,name:numericProp,badge:numericProp,title:String,disabled:Boolean,titleClass:unknownProp,titleStyle:[String,Object],showZeroBadge:truthProp});var stdin_default$3=vue.defineComponent({name:name$2,props:tabProps,setup(c,{slots:u}){const f=useId(),h=vue.ref(!1),d=vue.getCurrentInstance(),{parent:v,index:p}=useParent(TABS_KEY);if(!v){process.env.NODE_ENV!=="production"&&console.error("[Vant] <Tab> must be a child component of <Tabs>.");return}const m=()=>{var _;return(_=c.name)!=null?_:p.value},g=()=>{h.value=!0,v.props.lazyRender&&vue.nextTick(()=>{v.onRendered(m(),c.title)})},y=vue.computed(()=>{const _=m()===v.currentName.value;return _&&!h.value&&g(),_}),x=vue.ref(""),Pn=vue.ref("");vue.watchEffect(()=>{const{titleClass:_,titleStyle:re}=c;x.value=_?normalizeClass(_):"",Pn.value=re&&typeof re!="string"?stringifyStyle(normalizeStyle(re)):re});const b=_=>vue.createVNode(TabTitle,vue.mergeProps({key:f,id:`${v.id}-${p.value}`,ref:v.setTitleRefs(p.value),style:Pn.value,class:x.value,isActive:y.value,controls:f,scrollable:v.scrollable.value,activeColor:v.props.titleActiveColor,inactiveColor:v.props.titleInactiveColor,onClick:re=>_(d.proxy,p.value,re)},pick(v.props,["type","color","shrink"]),pick(c,["dot","badge","title","disabled","showZeroBadge"])),{title:u.title}),vn=vue.ref(!y.value);return vue.watch(y,_=>{_?vn.value=!1:doubleRaf(()=>{vn.value=!0})}),vue.watch(()=>c.title,()=>{v.setLine(),v.scrollIntoView()}),vue.provide(TAB_STATUS_KEY,y),useExpose({id:f,renderTitle:b}),()=>{var _;const re=`${v.id}-${p.value}`,{animated:Fn,swipeable:Bn,scrollspy:w,lazyRender:J}=v.props;if(!u.default&&!Fn)return;const gn=w||y.value;if(Fn||Bn)return vue.createVNode(SwipeItem,{id:f,role:"tabpanel",class:bem$1("panel-wrapper",{inactive:vn.value}),tabindex:y.value?0:-1,"aria-hidden":!y.value,"aria-labelledby":re},{default:()=>{var Wn;return[vue.createVNode("div",{class:bem$1("panel")},[(Wn=u.default)==null?void 0:Wn.call(u)])]}});const zn=h.value||w||!J?(_=u.default)==null?void 0:_.call(u):null;return vue.withDirectives(vue.createVNode("div",{id:f,role:"tabpanel",class:bem$1("panel"),tabindex:gn?0:-1,"aria-labelledby":re},[zn]),[[vue.vShow,gn]])}}});const Tab=withInstall(stdin_default$3),Tabs=withInstall(stdin_default$5),[name$1,bem]=createNamespace("picker-group"),PICKER_GROUP_KEY=Symbol(name$1),pickerGroupProps=extend({tabs:makeArrayProp(),activeTab:makeNumericProp(0),nextStepText:String,showToolbar:truthProp},pickerToolbarProps);var stdin_default$2=vue.defineComponent({name:name$1,props:pickerGroupProps,emits:["confirm","cancel","update:activeTab"],setup(c,{emit:u,slots:f}){const h=useSyncPropRef(()=>c.activeTab,y=>u("update:activeTab",y)),{children:d,linkChildren:v}=useChildren(PICKER_GROUP_KEY);v();const p=()=>+h.value<c.tabs.length-1&&c.nextStepText,m=()=>{p()?h.value=+h.value+1:u("confirm",d.map(y=>y.confirm()))},g=()=>u("cancel");return()=>{var y,x;let Pn=(x=(y=f.default)==null?void 0:y.call(f))==null?void 0:x.filter(vn=>vn.type!==vue.Comment).map(vn=>vn.type===vue.Fragment?vn.children:vn);Pn&&(Pn=flat(Pn));const b=p()?c.nextStepText:c.confirmButtonText;return vue.createVNode("div",{class:bem()},[c.showToolbar?vue.createVNode(stdin_default$9,{title:c.title,cancelButtonText:c.cancelButtonText,confirmButtonText:b,onConfirm:m,onCancel:g},pick(f,pickerToolbarSlots)):null,vue.createVNode(Tabs,{active:h.value,"onUpdate:active":vn=>h.value=vn,class:bem("tabs"),shrink:!0,animated:!0,lazyRender:!1},{default:()=>[c.tabs.map((vn,_)=>vue.createVNode(Tab,{title:vn,titleClass:bem("tab-title")},{default:()=>[Pn==null?void 0:Pn[_]]}))]})])}}});const pickerSharedProps=extend({loading:Boolean,readonly:Boolean,allowHtml:Boolean,optionHeight:makeNumericProp(44),showToolbar:truthProp,swipeDuration:makeNumericProp(1e3),visibleOptionNum:makeNumericProp(6)},pickerToolbarProps),pickerProps=extend({},pickerSharedProps,{columns:makeArrayProp(),modelValue:makeArrayProp(),toolbarPosition:makeStringProp("top"),columnsFieldNames:Object});var stdin_default$1=vue.defineComponent({name:name$b,props:pickerProps,emits:["confirm","cancel","change","scrollInto","clickOption","update:modelValue"],setup(c,{emit:u,slots:f}){const h=vue.ref(),d=vue.ref(c.modelValue.slice(0)),{parent:v}=useParent(PICKER_GROUP_KEY),{children:p,linkChildren:m}=useChildren(PICKER_KEY);m();const g=vue.computed(()=>assignDefaultFields(c.columnsFieldNames)),y=vue.computed(()=>unitToPx(c.optionHeight)),x=vue.computed(()=>getColumnsType(c.columns,g.value)),Pn=vue.computed(()=>{const{columns:tr}=c;switch(x.value){case"multiple":return tr;case"cascade":return formatCascadeColumns(tr,g.value,d);default:return[tr]}}),b=vue.computed(()=>Pn.value.some(tr=>tr.length)),vn=vue.computed(()=>Pn.value.map((tr,Xn)=>findOptionByValue(tr,d.value[Xn],g.value))),_=vue.computed(()=>Pn.value.map((tr,Xn)=>tr.findIndex(ar=>ar[g.value.value]===d.value[Xn]))),re=(tr,Xn)=>{if(d.value[tr]!==Xn){const ar=d.value.slice(0);ar[tr]=Xn,d.value=ar}},Fn=()=>({selectedValues:d.value.slice(0),selectedOptions:vn.value,selectedIndexes:_.value}),Bn=(tr,Xn)=>{re(Xn,tr),x.value==="cascade"&&d.value.forEach((ar,sr)=>{const nr=Pn.value[sr];isOptionExist(nr,ar,g.value)||re(sr,nr.length?nr[0][g.value.value]:void 0)}),vue.nextTick(()=>{u("change",extend({columnIndex:Xn},Fn()))})},w=(tr,Xn)=>{const ar={columnIndex:Xn,currentOption:tr};u("clickOption",extend(Fn(),ar)),u("scrollInto",ar)},J=()=>{p.forEach(Xn=>Xn.stopMomentum());const tr=Fn();return vue.nextTick(()=>{u("confirm",tr)}),tr},gn=()=>u("cancel",Fn()),Rn=()=>Pn.value.map((tr,Xn)=>vue.createVNode(stdin_default$a,{value:d.value[Xn],fields:g.value,options:tr,readonly:c.readonly,allowHtml:c.allowHtml,optionHeight:y.value,swipeDuration:c.swipeDuration,visibleOptionNum:c.visibleOptionNum,onChange:ar=>Bn(ar,Xn),onClickOption:ar=>w(ar,Xn),onScrollInto:ar=>{u("scrollInto",{currentOption:ar,columnIndex:Xn})}},{option:f.option})),zn=tr=>{if(b.value){const Xn={height:`${y.value}px`},ar={backgroundSize:`100% ${(tr-y.value)/2}px`};return[vue.createVNode("div",{class:bem$9("mask"),style:ar},null),vue.createVNode("div",{class:[BORDER_UNSET_TOP_BOTTOM,bem$9("frame")],style:Xn},null)]}},Wn=()=>{const tr=y.value*+c.visibleOptionNum,Xn={height:`${tr}px`};return vue.createVNode("div",{ref:h,class:bem$9("columns"),style:Xn},[Rn(),zn(tr)])},Un=()=>{if(c.showToolbar&&!v)return vue.createVNode(stdin_default$9,vue.mergeProps(pick(c,pickerToolbarPropKeys),{onConfirm:J,onCancel:gn}),pick(f,pickerToolbarSlots))};vue.watch(Pn,tr=>{tr.forEach((Xn,ar)=>{Xn.length&&!isOptionExist(Xn,d.value[ar],g.value)&&re(ar,getFirstEnabledOption(Xn)[g.value.value])})},{immediate:!0});let Qn;return vue.watch(()=>c.modelValue,tr=>{!isSameValue(tr,d.value)&&!isSameValue(tr,Qn)&&(d.value=tr.slice(0),Qn=tr.slice(0))},{deep:!0}),vue.watch(d,tr=>{isSameValue(tr,c.modelValue)||(Qn=tr.slice(0),u("update:modelValue",Qn))},{immediate:!0}),useEventListener("touchmove",preventDefault,{target:h}),useExpose({confirm:J,getSelectedOptions:()=>vn.value}),()=>{var tr,Xn;return vue.createVNode("div",{class:bem$9()},[c.toolbarPosition==="top"?Un():null,c.loading?vue.createVNode(Loading,{class:bem$9("loading")},null):null,(tr=f["columns-top"])==null?void 0:tr.call(f),Wn(),(Xn=f["columns-bottom"])==null?void 0:Xn.call(f),c.toolbarPosition==="bottom"?Un():null])}}});const Picker=withInstall(stdin_default$1),sharedProps=extend({},pickerSharedProps,{modelValue:makeArrayProp(),filter:Function,formatter:{type:Function,default:(c,u)=>u}}),pickerInheritKeys=Object.keys(pickerSharedProps);function times(c,u){if(c<0)return[];const f=Array(c);let h=-1;for(;++h<c;)f[h]=u(h);return f}const getMonthEndDay=(c,u)=>32-new Date(c,u-1,32).getDate(),genOptions=(c,u,f,h,d,v)=>{const p=times(u-c+1,m=>{const g=padZero(c+m);return h(f,{text:g,value:g})});return d?d(f,p,v):p},formatValueRange=(c,u)=>c.map((f,h)=>{const d=u[h];if(d.length){const v=+d[0].value,p=+d[d.length-1].value;return padZero(clamp(+f,v,p))}return f}),currentYear=new Date().getFullYear(),[name]=createNamespace("date-picker"),datePickerProps=extend({},sharedProps,{columnsType:{type:Array,default:()=>["year","month","day"]},minDate:{type:Date,default:()=>new Date(currentYear-10,0,1),validator:isDate},maxDate:{type:Date,default:()=>new Date(currentYear+10,11,31),validator:isDate}});var stdin_default=vue.defineComponent({name,props:datePickerProps,emits:["confirm","cancel","change","update:modelValue"],setup(c,{emit:u,slots:f}){const h=vue.ref(c.modelValue),d=vue.ref(!1),v=vue.ref(),p=()=>{const gn=c.minDate.getFullYear(),Rn=c.maxDate.getFullYear();return genOptions(gn,Rn,"year",c.formatter,c.filter)},m=gn=>gn===c.minDate.getFullYear(),g=gn=>gn===c.maxDate.getFullYear(),y=gn=>gn===c.minDate.getMonth()+1,x=gn=>gn===c.maxDate.getMonth()+1,Pn=gn=>{const{minDate:Rn,columnsType:zn}=c,Wn=zn.indexOf(gn),Un=d.value?c.modelValue[Wn]:h.value[Wn];if(Un)return+Un;switch(gn){case"year":return Rn.getFullYear();case"month":return Rn.getMonth()+1;case"day":return Rn.getDate()}},b=()=>{const gn=Pn("year"),Rn=m(gn)?c.minDate.getMonth()+1:1,zn=g(gn)?c.maxDate.getMonth()+1:12;return genOptions(Rn,zn,"month",c.formatter,c.filter)},vn=()=>{const gn=Pn("year"),Rn=Pn("month"),zn=m(gn)&&y(Rn)?c.minDate.getDate():1,Wn=g(gn)&&x(Rn)?c.maxDate.getDate():getMonthEndDay(gn,Rn);return genOptions(zn,Wn,"day",c.formatter,c.filter)},_=()=>{var gn;return(gn=v.value)==null?void 0:gn.confirm()},re=()=>h.value,Fn=vue.computed(()=>c.columnsType.map(gn=>{switch(gn){case"year":return p();case"month":return b();case"day":return vn();default:if(process.env.NODE_ENV!=="production")throw new Error(`[Vant] DatePicker: unsupported columns type: ${gn}`);return[]}}));vue.watch(h,gn=>{isSameValue(gn,c.modelValue)||u("update:modelValue",gn)}),vue.watch(()=>c.modelValue,(gn,Rn)=>{d.value=isSameValue(Rn,h.value),gn=formatValueRange(gn,Fn.value),isSameValue(gn,h.value)||(h.value=gn),d.value=!1},{immediate:!0});const Bn=(...gn)=>u("change",...gn),w=(...gn)=>u("cancel",...gn),J=(...gn)=>u("confirm",...gn);return useExpose({confirm:_,getSelectedDate:re}),()=>vue.createVNode(Picker,vue.mergeProps({ref:v,modelValue:h.value,"onUpdate:modelValue":gn=>h.value=gn,columns:Fn.value,onChange:Bn,onCancel:w,onConfirm:J},pick(c,pickerInheritKeys)),f)}});const DatePicker=withInstall(stdin_default),PickerGroup=withInstall(stdin_default$2),index$1="",install=c=>{c.use(DatePicker),c.use(Popup),c.use(PickerGroup),c.use(Picker),Object.keys(components).forEach(u=>{const f=components[u];f.install&&c.use(f)})},index={install};exports.EcanBar=EcanBar,exports.EcanBorder=EcanBorder,exports.EcanButton=EcanButton,exports.EcanCheckbox=EcanCheckbox,exports.EcanCirculate=EcanCirculate,exports.EcanComboGraph=EcanComboGraph,exports.EcanCounter=EcanCounter,exports.EcanCustomGraph=EcanCustomGraph,exports.EcanDataSelect=EcanDataSelect,exports.EcanDatePicker=EcanDatePicker,exports.EcanIframe=EcanIframe,exports.EcanImage=EcanImage,exports.EcanInput=EcanInput,exports.EcanLine=EcanLine,exports.EcanList=EcanList,exports.EcanMap=EcanMap,exports.EcanModal=EcanModal,exports.EcanPageConfig=EcanPageConfig,exports.EcanPie=EcanPie,exports.EcanPivotTable=EcanPivotTable,exports.EcanProportion=EcanProportion,exports.EcanProviderConfig=EcanProviderConfig,exports.EcanRadar=EcanRadar,exports.EcanRadio=EcanRadio,exports.EcanRangePicker=EcanRangePicker,exports.EcanScatter=EcanScatter,exports.EcanScrollText=EcanScrollText,exports.EcanSelect=EcanSelect,exports.EcanTable=EcanTable,exports.EcanTabs=EcanTabs,exports.EcanTemplate=EcanTemplate,exports.EcanText=EcanText,exports.EcanTimeDisplay=EcanTimeDisplay,exports.EcanTreeSelect=EcanTreeSelect,exports.EcanValueLine=EcanValueLine,exports.barComponentProps=barComponentProps,exports.barEvents=barEvents,exports.barProps=barProps,exports.borderComponentProps=borderComponentProps,exports.borderEvents=borderEvents,exports.borderProps=borderProps,exports.buttonComponentProps=buttonComponentProps,exports.buttonEvents=buttonEvents,exports.buttonProps=buttonProps,exports.checkboxComponentProps=checkboxComponentProps,exports.checkboxEvents=checkboxEvents,exports.checkboxProps=checkboxProps,exports.circulateComponentProps=circulateComponentProps,exports.circulateEvents=circulateEvents,exports.circulateProps=circulateProps,exports.comboGraphComponentProps=comboGraphComponentProps,exports.comboGraphEvents=comboGraphEvents,exports.comboGraphProps=comboGraphProps,exports.compatibleMobileList=compatibleMobileList,exports.counterComponentProps=counterComponentProps,exports.counterEvents=counterEvents,exports.counterProps=counterProps,exports.customGraphComponentProps=customGraphComponentProps,exports.customGraphProps=customGraphProps,exports.dataSelectComponentProps=dataSelectComponentProps,exports.dataSelectEvents=dataSelectEvents,exports.dataSelectProps=dataSelectProps,exports.datePickerComponentProps=datePickerComponentProps,exports.datePickerEvents=datePickerEvents,exports.datePickerProps=datePickerProps$1,exports.default=index,exports.handleScrollCombinations=handleScrollCombinations,exports.iframeComponentProps=iframeComponentProps,exports.iframeProps=iframeProps,exports.imageComponentProps=imageComponentProps,exports.imageEvents=imageEvents,exports.imageProps=imageProps,exports.inputComponentProps=inputComponentProps,exports.inputEvents=inputEvents,exports.inputProps=inputProps,exports.lineComponentProps=lineComponentProps,exports.lineEvents=lineEvents,exports.lineProps=lineProps,exports.listComponentProps=listComponentProps,exports.listEvents=listEvents,exports.listProps=listProps,exports.mapComponentProps=mapComponentProps,exports.mapEvents=mapEvents,exports.mapProps=mapProps,exports.modalComponentProps=modalComponentProps,exports.modalEvents=modalEvents,exports.modalProps=modalProps,exports.moveToComponentList=moveToComponentList,exports.pageConfig=pageConfig,exports.pageConfigComponentProps=pageConfigComponentProps,exports.pieComponentProps=pieComponentProps,exports.pieEvents=pieEvents,exports.pieProps=pieProps,exports.pivotTableComponentProps=pivotTableComponentProps,exports.pivotTableEvents=pivotTableEvents,exports.pivotTableProps=pivotTableProps,exports.proportionComponentProps=proportionComponentProps,exports.proportionEvents=proportionEvents,exports.proportionProps=proportionProps,exports.providerConfig=providerConfig,exports.providerConfigComponentProps=providerConfigComponentProps,exports.radarComponentProps=radarComponentProps,exports.radarEvents=radarEvents,exports.radarProps=radarProps,exports.radioComponentProps=radioComponentProps,exports.radioEvents=radioEvents,exports.radioProps=radioProps,exports.rangePickerComponentProps=rangePickerComponentProps,exports.rangePickerEvents=rangePickerEvents,exports.rangePickerProps=rangePickerProps,exports.scatterComponentProps=scatterComponentProps,exports.scatterEvents=scatterEvents,exports.scatterProps=scatterProps,exports.selectComponentProps=selectComponentProps,exports.selectEvents=selectEvents,exports.selectProps=selectProps,exports.tableComponentProps=tableComponentProps,exports.tableEvents=tableEvents,exports.tableProps=tableProps,exports.tabsComponentProps=tabsComponentProps,exports.tabsEvents=tabsEvents,exports.tabsProps=tabsProps$1,exports.templateComponentProps=templateComponentProps,exports.templateEvents=templateEvents,exports.templateProps=templateProps,exports.textComponentProps=textComponentProps,exports.textEvents=textEvents,exports.textProps=textProps,exports.timeDisplayComponentProps=timeDisplayComponentProps,exports.timeDisplayEvents=timeDisplayEvents,exports.timeDisplayProps=timeDisplayProps,exports.treeSelectComponentProps=treeSelectComponentProps,exports.treeSelectEvents=treeSelectEvents,exports.treeSelectProps=treeSelectProps,exports.valueLineComponentProps=valueLineComponentProps,exports.valueLineEvents=valueLineEvents,exports.valueLineProps=valueLineProps,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
135
|
+
**/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const isArray=Array.isArray,isString=c=>typeof c=="string",isObject=c=>c!==null&&typeof c=="object",cacheStringFunction=c=>{const u=Object.create(null);return f=>u[f]||(u[f]=c(f))},hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(c=>c.replace(hyphenateRE,"-$1").toLowerCase());function normalizeStyle(c){if(isArray(c)){const u={};for(let f=0;f<c.length;f++){const h=c[f],d=isString(h)?parseStringStyle(h):normalizeStyle(h);if(d)for(const v in d)u[v]=d[v]}return u}else if(isString(c)||isObject(c))return c}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(c){const u={};return c.replace(styleCommentRE,"").split(listDelimiterRE).forEach(f=>{if(f){const h=f.split(propertyDelimiterRE);h.length>1&&(u[h[0].trim()]=h[1].trim())}}),u}function stringifyStyle(c){let u="";if(!c||isString(c))return u;for(const f in c){const h=c[f];if(isString(h)||typeof h=="number"){const d=f.startsWith("--")?f:hyphenate(f);u+=`${d}:${h};`}}return u}function normalizeClass(c){let u="";if(isString(c))u=c;else if(isArray(c))for(let f=0;f<c.length;f++){const h=normalizeClass(c[f]);h&&(u+=h+" ")}else if(isObject(c))for(const f in c)c[f]&&(u+=f+" ");return u.trim()}function scrollLeftTo(c,u,f){let h,d=0;const v=c.scrollLeft,p=f===0?1:Math.round(f*1e3/16);let m=v;function g(){cancelRaf(h)}function y(){m+=(u-v)/p,c.scrollLeft=m,++d<p&&(h=raf(y))}return y(),g}function scrollTopTo(c,u,f,h){let d,v=getScrollTop(c);const p=v<u,m=f===0?1:Math.round(f*1e3/16),g=(u-v)/m;function y(){cancelRaf(d)}function x(){v+=g,(p&&v>u||!p&&v<u)&&(v=u),setScrollTop(c,v),p&&v<u||!p&&v>u?d=raf(x):h&&(d=raf(h))}return x(),y}let current=0;function useId(){const c=vue.getCurrentInstance(),{name:u="unknown"}=(c==null?void 0:c.type)||{};return process.env.NODE_ENV==="test"?u:`${u}-${++current}`}function useRefs(){const c=vue.ref([]),u=[];return vue.onBeforeUpdate(()=>{c.value=[]}),[c,h=>(u[h]||(u[h]=d=>{c.value[h]=d}),u[h])]}function useVisibilityChange(c,u){if(!inBrowser$1||!window.IntersectionObserver)return;const f=new IntersectionObserver(v=>{u(v[0].intersectionRatio>0)},{root:document.body}),h=()=>{c.value&&f.observe(c.value)},d=()=>{c.value&&f.unobserve(c.value)};vue.onDeactivated(d),vue.onBeforeUnmount(d),onMountedOrActivated(h)}const[name$8,bem$7]=createNamespace("sticky"),stickyProps={zIndex:numericProp,position:makeStringProp("top"),container:Object,offsetTop:makeNumericProp(0),offsetBottom:makeNumericProp(0)};var stdin_default$8=vue.defineComponent({name:name$8,props:stickyProps,emits:["scroll","change"],setup(c,{emit:u,slots:f}){const h=vue.ref(),d=useScrollParent(h),v=vue.reactive({fixed:!1,width:0,height:0,transform:0}),p=vue.ref(!1),m=vue.computed(()=>unitToPx(c.position==="top"?c.offsetTop:c.offsetBottom)),g=vue.computed(()=>{if(p.value)return;const{fixed:b,height:re,width:_}=v;if(b)return{width:`${_}px`,height:`${re}px`}}),y=vue.computed(()=>{if(!v.fixed||p.value)return;const b=extend(getZIndexStyle(c.zIndex),{width:`${v.width}px`,height:`${v.height}px`,[c.position]:`${m.value}px`});return v.transform&&(b.transform=`translate3d(0, ${v.transform}px, 0)`),b}),x=b=>u("scroll",{scrollTop:b,isFixed:v.fixed}),Bn=()=>{if(!h.value||isHidden(h))return;const{container:b,position:re}=c,_=useRect(h),vn=getScrollTop(window);if(v.width=_.width,v.height=_.height,re==="top")if(b){const Fn=useRect(b),Pn=Fn.bottom-m.value-v.height;v.fixed=m.value>_.top&&Fn.bottom>0,v.transform=Pn<0?Pn:0}else v.fixed=m.value>_.top;else{const{clientHeight:Fn}=document.documentElement;if(b){const Pn=useRect(b),w=Fn-Pn.top-m.value-v.height;v.fixed=Fn-m.value<_.bottom&&Fn>Pn.top,v.transform=w<0?-w:0}else v.fixed=Fn-m.value<_.bottom}x(vn)};return vue.watch(()=>v.fixed,b=>u("change",b)),useEventListener("scroll",Bn,{target:d,passive:!0}),useVisibilityChange(h,Bn),vue.watch([windowWidth,windowHeight],()=>{!h.value||isHidden(h)||!v.fixed||(p.value=!0,vue.nextTick(()=>{const b=useRect(h);v.width=b.width,v.height=b.height,p.value=!1}))}),()=>{var b;return vue.createVNode("div",{ref:h,style:g.value},[vue.createVNode("div",{class:bem$7({fixed:v.fixed&&!p.value}),style:y.value},[(b=f.default)==null?void 0:b.call(f)])])}}});const Sticky=withInstall(stdin_default$8),[name$7,bem$6]=createNamespace("swipe"),swipeProps={loop:truthProp,width:numericProp,height:numericProp,vertical:Boolean,autoplay:makeNumericProp(0),duration:makeNumericProp(500),touchable:truthProp,lazyRender:Boolean,initialSwipe:makeNumericProp(0),indicatorColor:String,showIndicators:truthProp,stopPropagation:truthProp},SWIPE_KEY=Symbol(name$7);var stdin_default$7=vue.defineComponent({name:name$7,props:swipeProps,emits:["change","dragStart","dragEnd"],setup(c,{emit:u,slots:f}){const h=vue.ref(),d=vue.ref(),v=vue.reactive({rect:null,width:0,height:0,offset:0,active:0,swiping:!1});let p=!1;const m=useTouch(),{children:g,linkChildren:y}=useChildren(SWIPE_KEY),x=vue.computed(()=>g.length),Bn=vue.computed(()=>v[c.vertical?"height":"width"]),b=vue.computed(()=>c.vertical?m.deltaY.value:m.deltaX.value),re=vue.computed(()=>v.rect?(c.vertical?v.rect.height:v.rect.width)-Bn.value*x.value:0),_=vue.computed(()=>Bn.value?Math.ceil(Math.abs(re.value)/Bn.value):x.value),vn=vue.computed(()=>x.value*Bn.value),Fn=vue.computed(()=>(v.active+x.value)%x.value),Pn=vue.computed(()=>{const qn=c.vertical?"vertical":"horizontal";return m.direction.value===qn}),w=vue.computed(()=>{const qn={transitionDuration:`${v.swiping?0:c.duration}ms`,transform:`translate${c.vertical?"Y":"X"}(${+v.offset.toFixed(2)}px)`};if(Bn.value){const nr=c.vertical?"height":"width",or=c.vertical?"width":"height";qn[nr]=`${vn.value}px`,qn[or]=c[or]?`${c[or]}px`:""}return qn}),J=qn=>{const{active:nr}=v;return qn?c.loop?clamp(nr+qn,-1,x.value):clamp(nr+qn,0,_.value):nr},gn=(qn,nr=0)=>{let or=qn*Bn.value;c.loop||(or=Math.min(or,-re.value));let Kn=nr-or;return c.loop||(Kn=clamp(Kn,re.value,0)),Kn},Vn=({pace:qn=0,offset:nr=0,emitChange:or})=>{if(x.value<=1)return;const{active:Kn}=v,ar=J(qn),lr=gn(ar,nr);if(c.loop){if(g[0]&&lr!==re.value){const ur=lr<re.value;g[0].setOffset(ur?vn.value:0)}if(g[x.value-1]&&lr!==0){const ur=lr>0;g[x.value-1].setOffset(ur?-vn.value:0)}}v.active=ar,v.offset=lr,or&&ar!==Kn&&u("change",Fn.value)},zn=()=>{v.swiping=!0,v.active<=-1?Vn({pace:x.value}):v.active>=x.value&&Vn({pace:-x.value})},Wn=()=>{zn(),m.reset(),doubleRaf(()=>{v.swiping=!1,Vn({pace:-1,emitChange:!0})})},Un=()=>{zn(),m.reset(),doubleRaf(()=>{v.swiping=!1,Vn({pace:1,emitChange:!0})})};let er;const Jn=()=>clearTimeout(er),tr=()=>{Jn(),+c.autoplay>0&&x.value>1&&(er=setTimeout(()=>{Un(),tr()},+c.autoplay))},Qn=(qn=+c.initialSwipe)=>{if(!h.value)return;const nr=()=>{var or,Kn;if(!isHidden(h)){const ar={width:h.value.offsetWidth,height:h.value.offsetHeight};v.rect=ar,v.width=+((or=c.width)!=null?or:ar.width),v.height=+((Kn=c.height)!=null?Kn:ar.height)}x.value&&(qn=Math.min(x.value-1,qn),qn===-1&&(qn=x.value-1)),v.active=qn,v.swiping=!0,v.offset=gn(qn),g.forEach(ar=>{ar.setOffset(0)}),tr()};isHidden(h)?vue.nextTick().then(nr):nr()},ir=()=>Qn(v.active);let cr;const Xn=qn=>{!c.touchable||qn.touches.length>1||(m.start(qn),p=!1,cr=Date.now(),Jn(),zn())},Hn=qn=>{c.touchable&&v.swiping&&(m.move(qn),Pn.value&&(!c.loop&&(v.active===0&&b.value>0||v.active===x.value-1&&b.value<0)||(preventDefault(qn,c.stopPropagation),Vn({offset:b.value}),p||(u("dragStart",{index:Fn.value}),p=!0))))},Yn=()=>{if(!c.touchable||!v.swiping)return;const qn=Date.now()-cr,nr=b.value/qn;if((Math.abs(nr)>.25||Math.abs(b.value)>Bn.value/2)&&Pn.value){const Kn=c.vertical?m.offsetY.value:m.offsetX.value;let ar=0;c.loop?ar=Kn>0?b.value>0?-1:1:0:ar=-Math[b.value>0?"ceil":"floor"](b.value/Bn.value),Vn({pace:ar,emitChange:!0})}else b.value&&Vn({pace:0});p=!1,v.swiping=!1,u("dragEnd",{index:Fn.value}),tr()},Rn=(qn,nr={})=>{zn(),m.reset(),doubleRaf(()=>{let or;c.loop&&qn===x.value?or=v.active===0?0:qn:or=qn%x.value,nr.immediate?doubleRaf(()=>{v.swiping=!1}):v.swiping=!1,Vn({pace:or-v.active,emitChange:!0})})},Gn=(qn,nr)=>{const or=nr===Fn.value,Kn=or?{backgroundColor:c.indicatorColor}:void 0;return vue.createVNode("i",{style:Kn,class:bem$6("indicator",{active:or})},null)},Zn=()=>{if(f.indicator)return f.indicator({active:Fn.value,total:x.value});if(c.showIndicators&&x.value>1)return vue.createVNode("div",{class:bem$6("indicators",{vertical:c.vertical})},[Array(x.value).fill("").map(Gn)])};return useExpose({prev:Wn,next:Un,state:v,resize:ir,swipeTo:Rn}),y({size:Bn,props:c,count:x,activeIndicator:Fn}),vue.watch(()=>c.initialSwipe,qn=>Qn(+qn)),vue.watch(x,()=>Qn(v.active)),vue.watch(()=>c.autoplay,tr),vue.watch([windowWidth,windowHeight,()=>c.width,()=>c.height],ir),vue.watch(usePageVisibility(),qn=>{qn==="visible"?tr():Jn()}),vue.onMounted(Qn),vue.onActivated(()=>Qn(v.active)),onPopupReopen(()=>Qn(v.active)),vue.onDeactivated(Jn),vue.onBeforeUnmount(Jn),useEventListener("touchmove",Hn,{target:d}),()=>{var qn;return vue.createVNode("div",{ref:h,class:bem$6()},[vue.createVNode("div",{ref:d,style:w.value,class:bem$6("track",{vertical:c.vertical}),onTouchstartPassive:Xn,onTouchend:Yn,onTouchcancel:Yn},[(qn=f.default)==null?void 0:qn.call(f)]),Zn()])}}});const Swipe=withInstall(stdin_default$7),[name$6,bem$5]=createNamespace("tabs");var stdin_default$6=vue.defineComponent({name:name$6,props:{count:makeRequiredProp(Number),inited:Boolean,animated:Boolean,duration:makeRequiredProp(numericProp),swipeable:Boolean,lazyRender:Boolean,currentIndex:makeRequiredProp(Number)},emits:["change"],setup(c,{emit:u,slots:f}){const h=vue.ref(),d=m=>u("change",m),v=()=>{var m;const g=(m=f.default)==null?void 0:m.call(f);return c.animated||c.swipeable?vue.createVNode(Swipe,{ref:h,loop:!1,class:bem$5("track"),duration:+c.duration*1e3,touchable:c.swipeable,lazyRender:c.lazyRender,showIndicators:!1,onChange:d},{default:()=>[g]}):g},p=m=>{const g=h.value;g&&g.state.active!==m&&g.swipeTo(m,{immediate:!c.inited})};return vue.watch(()=>c.currentIndex,p),vue.onMounted(()=>{p(c.currentIndex)}),useExpose({swipeRef:h}),()=>vue.createVNode("div",{class:bem$5("content",{animated:c.animated||c.swipeable})},[v()])}});const[name$5,bem$4]=createNamespace("tabs"),tabsProps={type:makeStringProp("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:makeNumericProp(0),duration:makeNumericProp(.3),animated:Boolean,ellipsis:truthProp,swipeable:Boolean,scrollspy:Boolean,offsetTop:makeNumericProp(0),background:String,lazyRender:truthProp,showHeader:truthProp,lineWidth:numericProp,lineHeight:numericProp,beforeChange:Function,swipeThreshold:makeNumericProp(5),titleActiveColor:String,titleInactiveColor:String},TABS_KEY=Symbol(name$5);var stdin_default$5=vue.defineComponent({name:name$5,props:tabsProps,emits:["change","scroll","rendered","clickTab","update:active"],setup(c,{emit:u,slots:f}){let h,d,v,p,m;const g=vue.ref(),y=vue.ref(),x=vue.ref(),Bn=vue.ref(),b=useId(),re=useScrollParent(g),[_,vn]=useRefs(),{children:Fn,linkChildren:Pn}=useChildren(TABS_KEY),w=vue.reactive({inited:!1,position:"",lineStyle:{},currentIndex:-1}),J=vue.computed(()=>Fn.length>+c.swipeThreshold||!c.ellipsis||c.shrink),gn=vue.computed(()=>({borderColor:c.color,background:c.background})),Vn=(ar,lr)=>{var ur;return(ur=ar.name)!=null?ur:lr},zn=vue.computed(()=>{const ar=Fn[w.currentIndex];if(ar)return Vn(ar,w.currentIndex)}),Wn=vue.computed(()=>unitToPx(c.offsetTop)),Un=vue.computed(()=>c.sticky?Wn.value+h:0),er=ar=>{const lr=y.value,ur=_.value;if(!J.value||!lr||!ur||!ur[w.currentIndex])return;const dr=ur[w.currentIndex].$el,sr=dr.offsetLeft-(lr.offsetWidth-dr.offsetWidth)/2;p&&p(),p=scrollLeftTo(lr,sr,ar?0:+c.duration)},Jn=()=>{const ar=w.inited;vue.nextTick(()=>{const lr=_.value;if(!lr||!lr[w.currentIndex]||c.type!=="line"||isHidden(g.value))return;const ur=lr[w.currentIndex].$el,{lineWidth:dr,lineHeight:sr}=c,fr=ur.offsetLeft+ur.offsetWidth/2,pr={width:addUnit(dr),backgroundColor:c.color,transform:`translateX(${fr}px) translateX(-50%)`};if(ar&&(pr.transitionDuration=`${c.duration}s`),isDef(sr)){const mr=addUnit(sr);pr.height=mr,pr.borderRadius=mr}w.lineStyle=pr})},tr=ar=>{const lr=ar<w.currentIndex?-1:1;for(;ar>=0&&ar<Fn.length;){if(!Fn[ar].disabled)return ar;ar+=lr}},Qn=(ar,lr)=>{const ur=tr(ar);if(!isDef(ur))return;const dr=Fn[ur],sr=Vn(dr,ur),fr=w.currentIndex!==null;w.currentIndex!==ur&&(w.currentIndex=ur,lr||er(),Jn()),sr!==c.active&&(u("update:active",sr),fr&&u("change",sr,dr.title)),v&&!c.scrollspy&&setRootScrollTop(Math.ceil(getElementTop(g.value)-Wn.value))},ir=(ar,lr)=>{const ur=Fn.find((sr,fr)=>Vn(sr,fr)===ar),dr=ur?Fn.indexOf(ur):0;Qn(dr,lr)},cr=(ar=!1)=>{if(c.scrollspy){const lr=Fn[w.currentIndex].$el;if(lr&&re.value){const ur=getElementTop(lr,re.value)-Un.value;d=!0,m&&m(),m=scrollTopTo(re.value,ur,ar?0:+c.duration,()=>{d=!1})}}},Xn=(ar,lr,ur)=>{const{title:dr,disabled:sr}=Fn[lr],fr=Vn(Fn[lr],lr);sr||(callInterceptor(c.beforeChange,{args:[fr],done:()=>{Qn(lr),cr()}}),route(ar)),u("clickTab",{name:fr,title:dr,event:ur,disabled:sr})},Hn=ar=>{v=ar.isFixed,u("scroll",ar)},Yn=ar=>{vue.nextTick(()=>{ir(ar),cr(!0)})},Rn=()=>{for(let ar=0;ar<Fn.length;ar++){const{top:lr}=useRect(Fn[ar].$el);if(lr>Un.value)return ar===0?0:ar-1}return Fn.length-1},Gn=()=>{if(c.scrollspy&&!d){const ar=Rn();Qn(ar)}},Zn=()=>{if(c.type==="line"&&Fn.length)return vue.createVNode("div",{class:bem$4("line"),style:w.lineStyle},null)},qn=()=>{var ar,lr,ur;const{type:dr,border:sr,sticky:fr}=c,pr=[vue.createVNode("div",{ref:fr?void 0:x,class:[bem$4("wrap"),{[BORDER_TOP_BOTTOM]:dr==="line"&&sr}]},[vue.createVNode("div",{ref:y,role:"tablist",class:bem$4("nav",[dr,{shrink:c.shrink,complete:J.value}]),style:gn.value,"aria-orientation":"horizontal"},[(ar=f["nav-left"])==null?void 0:ar.call(f),Fn.map(mr=>mr.renderTitle(Xn)),Zn(),(lr=f["nav-right"])==null?void 0:lr.call(f)])]),(ur=f["nav-bottom"])==null?void 0:ur.call(f)];return fr?vue.createVNode("div",{ref:x},[pr]):pr},nr=()=>{Jn(),vue.nextTick(()=>{var ar,lr;er(!0),(lr=(ar=Bn.value)==null?void 0:ar.swipeRef.value)==null||lr.resize()})};vue.watch(()=>[c.color,c.duration,c.lineWidth,c.lineHeight],Jn),vue.watch(windowWidth,nr),vue.watch(()=>c.active,ar=>{ar!==zn.value&&ir(ar)}),vue.watch(()=>Fn.length,()=>{w.inited&&(ir(c.active),Jn(),vue.nextTick(()=>{er(!0)}))});const or=()=>{ir(c.active,!0),vue.nextTick(()=>{w.inited=!0,x.value&&(h=useRect(x.value).height),er(!0)})},Kn=(ar,lr)=>u("rendered",ar,lr);return useExpose({resize:nr,scrollTo:Yn}),vue.onActivated(Jn),onPopupReopen(Jn),onMountedOrActivated(or),useVisibilityChange(g,Jn),useEventListener("scroll",Gn,{target:re,passive:!0}),Pn({id:b,props:c,setLine:Jn,scrollable:J,onRendered:Kn,currentName:zn,setTitleRefs:vn,scrollIntoView:er}),()=>vue.createVNode("div",{ref:g,class:bem$4([c.type])},[c.showHeader?c.sticky?vue.createVNode(Sticky,{container:g.value,offsetTop:Wn.value,onScroll:Hn},{default:()=>[qn()]}):qn():null,vue.createVNode(stdin_default$6,{ref:Bn,count:Fn.length,inited:w.inited,animated:c.animated,duration:c.duration,swipeable:c.swipeable,lazyRender:c.lazyRender,currentIndex:w.currentIndex,onChange:Qn},{default:()=>{var ar;return[(ar=f.default)==null?void 0:ar.call(f)]}})])}});const TAB_STATUS_KEY=Symbol(),[name$4,bem$3]=createNamespace("tab"),TabTitle=vue.defineComponent({name:name$4,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:numericProp,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:truthProp},setup(c,{slots:u}){const f=vue.computed(()=>{const d={},{type:v,color:p,disabled:m,isActive:g,activeColor:y,inactiveColor:x}=c;p&&v==="card"&&(d.borderColor=p,m||(g?d.backgroundColor=p:d.color=p));const b=g?y:x;return b&&(d.color=b),d}),h=()=>{const d=vue.createVNode("span",{class:bem$3("text",{ellipsis:!c.scrollable})},[u.title?u.title():c.title]);return c.dot||isDef(c.badge)&&c.badge!==""?vue.createVNode(Badge,{dot:c.dot,content:c.badge,showZero:c.showZeroBadge},{default:()=>[d]}):d};return()=>vue.createVNode("div",{id:c.id,role:"tab",class:[bem$3([c.type,{grow:c.scrollable&&!c.shrink,shrink:c.shrink,active:c.isActive,disabled:c.disabled}])],style:f.value,tabindex:c.disabled?void 0:c.isActive?0:-1,"aria-selected":c.isActive,"aria-disabled":c.disabled||void 0,"aria-controls":c.controls},[h()])}}),[name$3,bem$2]=createNamespace("swipe-item");var stdin_default$4=vue.defineComponent({name:name$3,setup(c,{slots:u}){let f;const h=vue.reactive({offset:0,inited:!1,mounted:!1}),{parent:d,index:v}=useParent(SWIPE_KEY);if(!d){process.env.NODE_ENV!=="production"&&console.error("[Vant] <SwipeItem> must be a child component of <Swipe>.");return}const p=vue.computed(()=>{const y={},{vertical:x}=d.props;return d.size.value&&(y[x?"height":"width"]=`${d.size.value}px`),h.offset&&(y.transform=`translate${x?"Y":"X"}(${h.offset}px)`),y}),m=vue.computed(()=>{const{loop:y,lazyRender:x}=d.props;if(!x||f)return!0;if(!h.mounted)return!1;const Bn=d.activeIndicator.value,b=d.count.value-1,re=Bn===0&&y?b:Bn-1,_=Bn===b&&y?0:Bn+1;return f=v.value===Bn||v.value===re||v.value===_,f}),g=y=>{h.offset=y};return vue.onMounted(()=>{vue.nextTick(()=>{h.mounted=!0})}),useExpose({setOffset:g}),()=>{var y;return vue.createVNode("div",{class:bem$2(),style:p.value},[m.value?(y=u.default)==null?void 0:y.call(u):null])}}});const SwipeItem=withInstall(stdin_default$4),[name$2,bem$1]=createNamespace("tab"),tabProps=extend({},routeProps,{dot:Boolean,name:numericProp,badge:numericProp,title:String,disabled:Boolean,titleClass:unknownProp,titleStyle:[String,Object],showZeroBadge:truthProp});var stdin_default$3=vue.defineComponent({name:name$2,props:tabProps,setup(c,{slots:u}){const f=useId(),h=vue.ref(!1),d=vue.getCurrentInstance(),{parent:v,index:p}=useParent(TABS_KEY);if(!v){process.env.NODE_ENV!=="production"&&console.error("[Vant] <Tab> must be a child component of <Tabs>.");return}const m=()=>{var _;return(_=c.name)!=null?_:p.value},g=()=>{h.value=!0,v.props.lazyRender&&vue.nextTick(()=>{v.onRendered(m(),c.title)})},y=vue.computed(()=>{const _=m()===v.currentName.value;return _&&!h.value&&g(),_}),x=vue.ref(""),Bn=vue.ref("");vue.watchEffect(()=>{const{titleClass:_,titleStyle:vn}=c;x.value=_?normalizeClass(_):"",Bn.value=vn&&typeof vn!="string"?stringifyStyle(normalizeStyle(vn)):vn});const b=_=>vue.createVNode(TabTitle,vue.mergeProps({key:f,id:`${v.id}-${p.value}`,ref:v.setTitleRefs(p.value),style:Bn.value,class:x.value,isActive:y.value,controls:f,scrollable:v.scrollable.value,activeColor:v.props.titleActiveColor,inactiveColor:v.props.titleInactiveColor,onClick:vn=>_(d.proxy,p.value,vn)},pick(v.props,["type","color","shrink"]),pick(c,["dot","badge","title","disabled","showZeroBadge"])),{title:u.title}),re=vue.ref(!y.value);return vue.watch(y,_=>{_?re.value=!1:doubleRaf(()=>{re.value=!0})}),vue.watch(()=>c.title,()=>{v.setLine(),v.scrollIntoView()}),vue.provide(TAB_STATUS_KEY,y),useExpose({id:f,renderTitle:b}),()=>{var _;const vn=`${v.id}-${p.value}`,{animated:Fn,swipeable:Pn,scrollspy:w,lazyRender:J}=v.props;if(!u.default&&!Fn)return;const gn=w||y.value;if(Fn||Pn)return vue.createVNode(SwipeItem,{id:f,role:"tabpanel",class:bem$1("panel-wrapper",{inactive:re.value}),tabindex:y.value?0:-1,"aria-hidden":!y.value,"aria-labelledby":vn},{default:()=>{var Wn;return[vue.createVNode("div",{class:bem$1("panel")},[(Wn=u.default)==null?void 0:Wn.call(u)])]}});const zn=h.value||w||!J?(_=u.default)==null?void 0:_.call(u):null;return vue.withDirectives(vue.createVNode("div",{id:f,role:"tabpanel",class:bem$1("panel"),tabindex:gn?0:-1,"aria-labelledby":vn},[zn]),[[vue.vShow,gn]])}}});const Tab=withInstall(stdin_default$3),Tabs=withInstall(stdin_default$5),[name$1,bem]=createNamespace("picker-group"),PICKER_GROUP_KEY=Symbol(name$1),pickerGroupProps=extend({tabs:makeArrayProp(),activeTab:makeNumericProp(0),nextStepText:String,showToolbar:truthProp},pickerToolbarProps);var stdin_default$2=vue.defineComponent({name:name$1,props:pickerGroupProps,emits:["confirm","cancel","update:activeTab"],setup(c,{emit:u,slots:f}){const h=useSyncPropRef(()=>c.activeTab,y=>u("update:activeTab",y)),{children:d,linkChildren:v}=useChildren(PICKER_GROUP_KEY);v();const p=()=>+h.value<c.tabs.length-1&&c.nextStepText,m=()=>{p()?h.value=+h.value+1:u("confirm",d.map(y=>y.confirm()))},g=()=>u("cancel");return()=>{var y,x;let Bn=(x=(y=f.default)==null?void 0:y.call(f))==null?void 0:x.filter(re=>re.type!==vue.Comment).map(re=>re.type===vue.Fragment?re.children:re);Bn&&(Bn=flat(Bn));const b=p()?c.nextStepText:c.confirmButtonText;return vue.createVNode("div",{class:bem()},[c.showToolbar?vue.createVNode(stdin_default$9,{title:c.title,cancelButtonText:c.cancelButtonText,confirmButtonText:b,onConfirm:m,onCancel:g},pick(f,pickerToolbarSlots)):null,vue.createVNode(Tabs,{active:h.value,"onUpdate:active":re=>h.value=re,class:bem("tabs"),shrink:!0,animated:!0,lazyRender:!1},{default:()=>[c.tabs.map((re,_)=>vue.createVNode(Tab,{title:re,titleClass:bem("tab-title")},{default:()=>[Bn==null?void 0:Bn[_]]}))]})])}}});const pickerSharedProps=extend({loading:Boolean,readonly:Boolean,allowHtml:Boolean,optionHeight:makeNumericProp(44),showToolbar:truthProp,swipeDuration:makeNumericProp(1e3),visibleOptionNum:makeNumericProp(6)},pickerToolbarProps),pickerProps=extend({},pickerSharedProps,{columns:makeArrayProp(),modelValue:makeArrayProp(),toolbarPosition:makeStringProp("top"),columnsFieldNames:Object});var stdin_default$1=vue.defineComponent({name:name$b,props:pickerProps,emits:["confirm","cancel","change","scrollInto","clickOption","update:modelValue"],setup(c,{emit:u,slots:f}){const h=vue.ref(),d=vue.ref(c.modelValue.slice(0)),{parent:v}=useParent(PICKER_GROUP_KEY),{children:p,linkChildren:m}=useChildren(PICKER_KEY);m();const g=vue.computed(()=>assignDefaultFields(c.columnsFieldNames)),y=vue.computed(()=>unitToPx(c.optionHeight)),x=vue.computed(()=>getColumnsType(c.columns,g.value)),Bn=vue.computed(()=>{const{columns:tr}=c;switch(x.value){case"multiple":return tr;case"cascade":return formatCascadeColumns(tr,g.value,d);default:return[tr]}}),b=vue.computed(()=>Bn.value.some(tr=>tr.length)),re=vue.computed(()=>Bn.value.map((tr,Qn)=>findOptionByValue(tr,d.value[Qn],g.value))),_=vue.computed(()=>Bn.value.map((tr,Qn)=>tr.findIndex(ir=>ir[g.value.value]===d.value[Qn]))),vn=(tr,Qn)=>{if(d.value[tr]!==Qn){const ir=d.value.slice(0);ir[tr]=Qn,d.value=ir}},Fn=()=>({selectedValues:d.value.slice(0),selectedOptions:re.value,selectedIndexes:_.value}),Pn=(tr,Qn)=>{vn(Qn,tr),x.value==="cascade"&&d.value.forEach((ir,cr)=>{const Xn=Bn.value[cr];isOptionExist(Xn,ir,g.value)||vn(cr,Xn.length?Xn[0][g.value.value]:void 0)}),vue.nextTick(()=>{u("change",extend({columnIndex:Qn},Fn()))})},w=(tr,Qn)=>{const ir={columnIndex:Qn,currentOption:tr};u("clickOption",extend(Fn(),ir)),u("scrollInto",ir)},J=()=>{p.forEach(Qn=>Qn.stopMomentum());const tr=Fn();return vue.nextTick(()=>{u("confirm",tr)}),tr},gn=()=>u("cancel",Fn()),Vn=()=>Bn.value.map((tr,Qn)=>vue.createVNode(stdin_default$a,{value:d.value[Qn],fields:g.value,options:tr,readonly:c.readonly,allowHtml:c.allowHtml,optionHeight:y.value,swipeDuration:c.swipeDuration,visibleOptionNum:c.visibleOptionNum,onChange:ir=>Pn(ir,Qn),onClickOption:ir=>w(ir,Qn),onScrollInto:ir=>{u("scrollInto",{currentOption:ir,columnIndex:Qn})}},{option:f.option})),zn=tr=>{if(b.value){const Qn={height:`${y.value}px`},ir={backgroundSize:`100% ${(tr-y.value)/2}px`};return[vue.createVNode("div",{class:bem$9("mask"),style:ir},null),vue.createVNode("div",{class:[BORDER_UNSET_TOP_BOTTOM,bem$9("frame")],style:Qn},null)]}},Wn=()=>{const tr=y.value*+c.visibleOptionNum,Qn={height:`${tr}px`};return vue.createVNode("div",{ref:h,class:bem$9("columns"),style:Qn},[Vn(),zn(tr)])},Un=()=>{if(c.showToolbar&&!v)return vue.createVNode(stdin_default$9,vue.mergeProps(pick(c,pickerToolbarPropKeys),{onConfirm:J,onCancel:gn}),pick(f,pickerToolbarSlots))};vue.watch(Bn,tr=>{tr.forEach((Qn,ir)=>{Qn.length&&!isOptionExist(Qn,d.value[ir],g.value)&&vn(ir,getFirstEnabledOption(Qn)[g.value.value])})},{immediate:!0});let er;return vue.watch(()=>c.modelValue,tr=>{!isSameValue(tr,d.value)&&!isSameValue(tr,er)&&(d.value=tr.slice(0),er=tr.slice(0))},{deep:!0}),vue.watch(d,tr=>{isSameValue(tr,c.modelValue)||(er=tr.slice(0),u("update:modelValue",er))},{immediate:!0}),useEventListener("touchmove",preventDefault,{target:h}),useExpose({confirm:J,getSelectedOptions:()=>re.value}),()=>{var tr,Qn;return vue.createVNode("div",{class:bem$9()},[c.toolbarPosition==="top"?Un():null,c.loading?vue.createVNode(Loading,{class:bem$9("loading")},null):null,(tr=f["columns-top"])==null?void 0:tr.call(f),Wn(),(Qn=f["columns-bottom"])==null?void 0:Qn.call(f),c.toolbarPosition==="bottom"?Un():null])}}});const Picker=withInstall(stdin_default$1),sharedProps=extend({},pickerSharedProps,{modelValue:makeArrayProp(),filter:Function,formatter:{type:Function,default:(c,u)=>u}}),pickerInheritKeys=Object.keys(pickerSharedProps);function times(c,u){if(c<0)return[];const f=Array(c);let h=-1;for(;++h<c;)f[h]=u(h);return f}const getMonthEndDay=(c,u)=>32-new Date(c,u-1,32).getDate(),genOptions=(c,u,f,h,d,v)=>{const p=times(u-c+1,m=>{const g=padZero(c+m);return h(f,{text:g,value:g})});return d?d(f,p,v):p},formatValueRange=(c,u)=>c.map((f,h)=>{const d=u[h];if(d.length){const v=+d[0].value,p=+d[d.length-1].value;return padZero(clamp(+f,v,p))}return f}),currentYear=new Date().getFullYear(),[name]=createNamespace("date-picker"),datePickerProps=extend({},sharedProps,{columnsType:{type:Array,default:()=>["year","month","day"]},minDate:{type:Date,default:()=>new Date(currentYear-10,0,1),validator:isDate},maxDate:{type:Date,default:()=>new Date(currentYear+10,11,31),validator:isDate}});var stdin_default=vue.defineComponent({name,props:datePickerProps,emits:["confirm","cancel","change","update:modelValue"],setup(c,{emit:u,slots:f}){const h=vue.ref(c.modelValue),d=vue.ref(!1),v=vue.ref(),p=()=>{const gn=c.minDate.getFullYear(),Vn=c.maxDate.getFullYear();return genOptions(gn,Vn,"year",c.formatter,c.filter)},m=gn=>gn===c.minDate.getFullYear(),g=gn=>gn===c.maxDate.getFullYear(),y=gn=>gn===c.minDate.getMonth()+1,x=gn=>gn===c.maxDate.getMonth()+1,Bn=gn=>{const{minDate:Vn,columnsType:zn}=c,Wn=zn.indexOf(gn),Un=d.value?c.modelValue[Wn]:h.value[Wn];if(Un)return+Un;switch(gn){case"year":return Vn.getFullYear();case"month":return Vn.getMonth()+1;case"day":return Vn.getDate()}},b=()=>{const gn=Bn("year"),Vn=m(gn)?c.minDate.getMonth()+1:1,zn=g(gn)?c.maxDate.getMonth()+1:12;return genOptions(Vn,zn,"month",c.formatter,c.filter)},re=()=>{const gn=Bn("year"),Vn=Bn("month"),zn=m(gn)&&y(Vn)?c.minDate.getDate():1,Wn=g(gn)&&x(Vn)?c.maxDate.getDate():getMonthEndDay(gn,Vn);return genOptions(zn,Wn,"day",c.formatter,c.filter)},_=()=>{var gn;return(gn=v.value)==null?void 0:gn.confirm()},vn=()=>h.value,Fn=vue.computed(()=>c.columnsType.map(gn=>{switch(gn){case"year":return p();case"month":return b();case"day":return re();default:if(process.env.NODE_ENV!=="production")throw new Error(`[Vant] DatePicker: unsupported columns type: ${gn}`);return[]}}));vue.watch(h,gn=>{isSameValue(gn,c.modelValue)||u("update:modelValue",gn)}),vue.watch(()=>c.modelValue,(gn,Vn)=>{d.value=isSameValue(Vn,h.value),gn=formatValueRange(gn,Fn.value),isSameValue(gn,h.value)||(h.value=gn),d.value=!1},{immediate:!0});const Pn=(...gn)=>u("change",...gn),w=(...gn)=>u("cancel",...gn),J=(...gn)=>u("confirm",...gn);return useExpose({confirm:_,getSelectedDate:vn}),()=>vue.createVNode(Picker,vue.mergeProps({ref:v,modelValue:h.value,"onUpdate:modelValue":gn=>h.value=gn,columns:Fn.value,onChange:Pn,onCancel:w,onConfirm:J},pick(c,pickerInheritKeys)),f)}});const DatePicker=withInstall(stdin_default),PickerGroup=withInstall(stdin_default$2),index$1="",install=c=>{c.use(DatePicker),c.use(Popup),c.use(PickerGroup),c.use(Picker),Object.keys(components).forEach(u=>{const f=components[u];f.install&&c.use(f)})},index={install};exports.EcanBar=EcanBar,exports.EcanBorder=EcanBorder,exports.EcanButton=EcanButton,exports.EcanCheckbox=EcanCheckbox,exports.EcanCirculate=EcanCirculate,exports.EcanComboGraph=EcanComboGraph,exports.EcanCounter=EcanCounter,exports.EcanCustomGraph=EcanCustomGraph,exports.EcanDataSelect=EcanDataSelect,exports.EcanDatePicker=EcanDatePicker,exports.EcanIframe=EcanIframe,exports.EcanImage=EcanImage,exports.EcanInput=EcanInput,exports.EcanLine=EcanLine,exports.EcanList=EcanList,exports.EcanMap=EcanMap,exports.EcanModal=EcanModal,exports.EcanPageConfig=EcanPageConfig,exports.EcanPie=EcanPie,exports.EcanPivotTable=EcanPivotTable,exports.EcanProportion=EcanProportion,exports.EcanProviderConfig=EcanProviderConfig,exports.EcanRadar=EcanRadar,exports.EcanRadio=EcanRadio,exports.EcanRangePicker=EcanRangePicker,exports.EcanScatter=EcanScatter,exports.EcanScrollText=EcanScrollText,exports.EcanSelect=EcanSelect,exports.EcanTable=EcanTable,exports.EcanTabs=EcanTabs,exports.EcanTemplate=EcanTemplate,exports.EcanText=EcanText,exports.EcanTimeDisplay=EcanTimeDisplay,exports.EcanTreeSelect=EcanTreeSelect,exports.EcanValueLine=EcanValueLine,exports.barComponentProps=barComponentProps,exports.barEvents=barEvents,exports.barProps=barProps,exports.borderComponentProps=borderComponentProps,exports.borderEvents=borderEvents,exports.borderProps=borderProps,exports.buttonComponentProps=buttonComponentProps,exports.buttonEvents=buttonEvents,exports.buttonProps=buttonProps,exports.checkboxComponentProps=checkboxComponentProps,exports.checkboxEvents=checkboxEvents,exports.checkboxProps=checkboxProps,exports.circulateComponentProps=circulateComponentProps,exports.circulateEvents=circulateEvents,exports.circulateProps=circulateProps,exports.comboGraphComponentProps=comboGraphComponentProps,exports.comboGraphEvents=comboGraphEvents,exports.comboGraphProps=comboGraphProps,exports.compatibleMobileList=compatibleMobileList,exports.counterComponentProps=counterComponentProps,exports.counterEvents=counterEvents,exports.counterProps=counterProps,exports.customGraphComponentProps=customGraphComponentProps,exports.customGraphProps=customGraphProps,exports.dataSelectComponentProps=dataSelectComponentProps,exports.dataSelectEvents=dataSelectEvents,exports.dataSelectProps=dataSelectProps,exports.datePickerComponentProps=datePickerComponentProps,exports.datePickerEvents=datePickerEvents,exports.datePickerProps=datePickerProps$1,exports.default=index,exports.handleScrollCombinations=handleScrollCombinations,exports.iframeComponentProps=iframeComponentProps,exports.iframeProps=iframeProps,exports.imageComponentProps=imageComponentProps,exports.imageEvents=imageEvents,exports.imageProps=imageProps,exports.inputComponentProps=inputComponentProps,exports.inputEvents=inputEvents,exports.inputProps=inputProps,exports.lineComponentProps=lineComponentProps,exports.lineEvents=lineEvents,exports.lineProps=lineProps,exports.listComponentProps=listComponentProps,exports.listEvents=listEvents,exports.listProps=listProps,exports.mapComponentProps=mapComponentProps,exports.mapEvents=mapEvents,exports.mapProps=mapProps,exports.modalComponentProps=modalComponentProps,exports.modalEvents=modalEvents,exports.modalProps=modalProps,exports.moveToComponentList=moveToComponentList,exports.pageConfig=pageConfig,exports.pageConfigComponentProps=pageConfigComponentProps,exports.pieComponentProps=pieComponentProps,exports.pieEvents=pieEvents,exports.pieProps=pieProps,exports.pivotTableComponentProps=pivotTableComponentProps,exports.pivotTableEvents=pivotTableEvents,exports.pivotTableProps=pivotTableProps,exports.proportionComponentProps=proportionComponentProps,exports.proportionEvents=proportionEvents,exports.proportionProps=proportionProps,exports.providerConfig=providerConfig,exports.providerConfigComponentProps=providerConfigComponentProps,exports.radarComponentProps=radarComponentProps,exports.radarEvents=radarEvents,exports.radarProps=radarProps,exports.radioComponentProps=radioComponentProps,exports.radioEvents=radioEvents,exports.radioProps=radioProps,exports.rangePickerComponentProps=rangePickerComponentProps,exports.rangePickerEvents=rangePickerEvents,exports.rangePickerProps=rangePickerProps,exports.scatterComponentProps=scatterComponentProps,exports.scatterEvents=scatterEvents,exports.scatterProps=scatterProps,exports.selectComponentProps=selectComponentProps,exports.selectEvents=selectEvents,exports.selectProps=selectProps,exports.tableComponentProps=tableComponentProps,exports.tableEvents=tableEvents,exports.tableProps=tableProps,exports.tabsComponentProps=tabsComponentProps,exports.tabsEvents=tabsEvents,exports.tabsProps=tabsProps$1,exports.templateComponentProps=templateComponentProps,exports.templateEvents=templateEvents,exports.templateProps=templateProps,exports.textComponentProps=textComponentProps,exports.textEvents=textEvents,exports.textProps=textProps,exports.timeDisplayComponentProps=timeDisplayComponentProps,exports.timeDisplayEvents=timeDisplayEvents,exports.timeDisplayProps=timeDisplayProps,exports.treeSelectComponentProps=treeSelectComponentProps,exports.treeSelectEvents=treeSelectEvents,exports.treeSelectProps=treeSelectProps,exports.valueLineComponentProps=valueLineComponentProps,exports.valueLineEvents=valueLineEvents,exports.valueLineProps=valueLineProps,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
136
136
|
//# sourceMappingURL=index.umd.js.map
|