@ecan-bi/datav 1.3.78 → 1.3.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @ecan-bi/datav@1.3.78 */
1
+ /*! @ecan-bi/datav@1.3.79 */
2
2
  (function(Ee,qe){typeof exports=="object"&&typeof module<"u"?qe(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"],qe):(Ee=typeof globalThis<"u"?globalThis:Ee||self,qe(Ee["@ecan/bi-datav"]={},Ee.Vue,Ee["echarts/core"],Ee.ResizeDetector,Ee.AntDesignVue,null,null,Ee.LodashEs,Ee.Dayjs,Ee.Axios,Ee.Mitt,null,null,null,Ee["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,Ee["echarts/renderers"],Ee["echarts/charts"],Ee["echarts/components"],null,Ee.Echarts,null,null,Ee.Xlsx,Ee.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 Ee,qe,je,Ue;"use strict";function _interopNamespaceDefault(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const echarts__namespace=_interopNamespaceDefault(echarts),METHOD_NAMES=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function usePublicAPI(e,r){function n(a){return(...o)=>{if(e.value||r(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[a].apply(e.value,o)}}function i(){const a=Object.create(null);return METHOD_NAMES.forEach(o=>{a[o]=n(o)}),a}return i()}function useAutoresize(e,r,n){let i=null;vue.watch([n,e,r],([a,o,s],l,c)=>{a&&o&&s&&(i=core$1.throttle(()=>{o.resize()},100),resizeDetector.addListener(a,i)),c(()=>{i&&a&&resizeDetector.removeListener(a,i)})})}const autoresizeProps={autoresize:Boolean},LOADING_OPTIONS_KEY="ecLoadingOptions";function useLoading(e,r,n){const i=vue.inject(LOADING_OPTIONS_KEY,{}),a=vue.computed(()=>({...vue.unref(i),...n==null?void 0:n.value}));vue.watchEffect(()=>{const o=e.value;o&&(r.value?o.showLoading(a.value):o.hideLoading())})}const loadingProps$1={loading:Boolean,loadingOptions:Object},style="",onRE=/^on[^a-z]/,isOn=e=>onRE.test(e);function omitOn(e){const r={};for(const n in e)isOn(n)||(r[n]=e[n]);return r}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(e,{attrs:r,listeners:n}){const i=vue.shallowRef(),a=vue.shallowRef(),o=vue.shallowRef(),s=vue.inject(THEME_KEY,null),l=vue.inject(INIT_OPTIONS_KEY,null),c=vue.inject(UPDATE_OPTIONS_KEY,null),{autoresize:u,manualUpdate:h,loading:b,loadingOptions:f}=vue.toRefs(e),y=vue.computed(()=>o.value||e.option||Object.create(null)),d=vue.computed(()=>e.theme||vue.unref(s)||{}),g=vue.computed(()=>e.initOptions||vue.unref(l)||{}),w=vue.computed(()=>e.updateOptions||vue.unref(c)||{}),p=vue.computed(()=>omitOn(r));function v(_){if(a.value||!i.value)return;const T=a.value=core$1.init(i.value,d.value,g.value);e.group&&(T.group=e.group);let B=n;B||(B={},Object.keys(r).filter(O=>O.indexOf("on")===0&&O.length>2).forEach(O=>{const D=O.charAt(2).toLowerCase()+O.slice(3);B[D]=r[O]})),Object.keys(B).forEach(O=>{const D=B[O];D&&(O.indexOf("zr:")===0?T.getZr().on(O.slice(3).toLowerCase(),D):T.on(O.toLowerCase(),D))});function M(){if(T&&!T.isDisposed())try{T.resize()}catch(O){if(O.message==="Cannot read property 'get' of undefined")return;throw O}}function F(){T.setOption(_||y.value,w.value)}u.value?vue.nextTick(()=>{M(),F()}):F()}function m(_,T){e.manualUpdate&&(o.value=_),a.value?a.value.setOption(_,T||{}):v(_)}function x(){a.value&&(a.value.dispose(),a.value=void 0)}let E=null;vue.watch(h,_=>{typeof E=="function"&&(E(),E=null),_||(E=vue.watch(()=>e.option,T=>{T&&(a.value?a.value.setOption(T,w.value):v())},{deep:!0}))},{immediate:!0}),vue.watch([d,g],()=>{x(),v()},{deep:!0}),vue.watchEffect(()=>{e.group&&a.value&&(a.value.group=e.group)});const k=usePublicAPI(a,v);return useLoading(a,b,f),useAutoresize(a,u,i),vue.onMounted(()=>{e.option&&v()}),vue.onUnmounted(x),{chart:a,root:i,setOption:m,nonEventAttrs:p,...k}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",vue.h(TAG_NAME,e)}});function bound01(e,r){isOnePointZero(e)&&(e="100%");var n=isPercentage(e);return e=r===360?e:Math.min(r,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*r),10)/100),Math.abs(e-r)<1e-6?1:(r===360?e=(e<0?e%r+r:e%r)/parseFloat(String(r)):e=e%r/parseFloat(String(r)),e)}function isOnePointZero(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function isPercentage(e){return typeof e=="string"&&e.indexOf("%")!==-1}function boundAlpha(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function convertToPercentage(e){return e<=1?"".concat(Number(e)*100,"%"):e}function pad2(e){return e.length===1?"0"+e:String(e)}function rgbToRgb(e,r,n){return{r:bound01(e,255)*255,g:bound01(r,255)*255,b:bound01(n,255)*255}}function hue2rgb(e,r,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(r-e)*(6*n):n<1/2?r:n<2/3?e+(r-e)*(2/3-n)*6:e}function hslToRgb(e,r,n){var i,a,o;if(e=bound01(e,360),r=bound01(r,100),n=bound01(n,100),r===0)a=n,o=n,i=n;else{var s=n<.5?n*(1+r):n+r-n*r,l=2*n-s;i=hue2rgb(l,s,e+1/3),a=hue2rgb(l,s,e),o=hue2rgb(l,s,e-1/3)}return{r:i*255,g:a*255,b:o*255}}function rgbToHsv(e,r,n){e=bound01(e,255),r=bound01(r,255),n=bound01(n,255);var i=Math.max(e,r,n),a=Math.min(e,r,n),o=0,s=i,l=i-a,c=i===0?0:l/i;if(i===a)o=0;else{switch(i){case e:o=(r-n)/l+(r<n?6:0);break;case r:o=(n-e)/l+2;break;case n:o=(e-r)/l+4;break}o/=6}return{h:o,s:c,v:s}}function hsvToRgb(e,r,n){e=bound01(e,360)*6,r=bound01(r,100),n=bound01(n,100);var i=Math.floor(e),a=e-i,o=n*(1-r),s=n*(1-a*r),l=n*(1-(1-a)*r),c=i%6,u=[n,s,o,o,l,n][c],h=[l,n,n,s,o,o][c],b=[o,o,l,n,n,s][c];return{r:u*255,g:h*255,b:b*255}}function rgbToHex(e,r,n,i){var a=[pad2(Math.round(e).toString(16)),pad2(Math.round(r).toString(16)),pad2(Math.round(n).toString(16))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function convertHexToDecimal(e){return parseIntFromHex(e)/255}function parseIntFromHex(e){return parseInt(e,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(e){var r={r:0,g:0,b:0},n=1,i=null,a=null,o=null,s=!1,l=!1;return typeof e=="string"&&(e=stringInputToObject(e)),typeof e=="object"&&(isValidCSSUnit(e.r)&&isValidCSSUnit(e.g)&&isValidCSSUnit(e.b)?(r=rgbToRgb(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(e.h)&&isValidCSSUnit(e.s)&&isValidCSSUnit(e.v)?(i=convertToPercentage(e.s),a=convertToPercentage(e.v),r=hsvToRgb(e.h,i,a),s=!0,l="hsv"):isValidCSSUnit(e.h)&&isValidCSSUnit(e.s)&&isValidCSSUnit(e.l)&&(i=convertToPercentage(e.s),o=convertToPercentage(e.l),r=hslToRgb(e.h,i,o),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=boundAlpha(n),{ok:s,format:e.format||l,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:n}}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(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var r=!1;if(names[e])e=names[e],r=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=matchers.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=matchers.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=matchers.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=matchers.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=matchers.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=matchers.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=matchers.hex8.exec(e),n?{r:parseIntFromHex(n[1]),g:parseIntFromHex(n[2]),b:parseIntFromHex(n[3]),a:convertHexToDecimal(n[4]),format:r?"name":"hex8"}:(n=matchers.hex6.exec(e),n?{r:parseIntFromHex(n[1]),g:parseIntFromHex(n[2]),b:parseIntFromHex(n[3]),format:r?"name":"hex"}:(n=matchers.hex4.exec(e),n?{r:parseIntFromHex(n[1]+n[1]),g:parseIntFromHex(n[2]+n[2]),b:parseIntFromHex(n[3]+n[3]),a:convertHexToDecimal(n[4]+n[4]),format:r?"name":"hex8"}:(n=matchers.hex3.exec(e),n?{r:parseIntFromHex(n[1]+n[1]),g:parseIntFromHex(n[2]+n[2]),b:parseIntFromHex(n[3]+n[3]),format:r?"name":"hex"}:!1)))))))))}function isValidCSSUnit(e){return!!matchers.CSS_UNIT.exec(String(e))}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(e){var r=e.r,n=e.g,i=e.b,a=rgbToHsv(r,n,i);return{h:a.h*360,s:a.s,v:a.v}}function toHex(e){var r=e.r,n=e.g,i=e.b;return"#".concat(rgbToHex(r,n,i,!1))}function mix(e,r,n){var i=n/100,a={r:(r.r-e.r)*i+e.r,g:(r.g-e.g)*i+e.g,b:(r.b-e.b)*i+e.b};return a}function getHue(e,r,n){var i;return Math.round(e.h)>=60&&Math.round(e.h)<=240?i=n?Math.round(e.h)-hueStep*r:Math.round(e.h)+hueStep*r:i=n?Math.round(e.h)+hueStep*r:Math.round(e.h)-hueStep*r,i<0?i+=360:i>=360&&(i-=360),i}function getSaturation(e,r,n){if(e.h===0&&e.s===0)return e.s;var i;return n?i=e.s-saturationStep*r:r===darkColorCount?i=e.s+saturationStep:i=e.s+saturationStep2*r,i>1&&(i=1),n&&r===lightColorCount&&i>.1&&(i=.1),i<.06&&(i=.06),Number(i.toFixed(2))}function getValue(e,r,n){var i;return n?i=e.v+brightnessStep1*r:i=e.v-brightnessStep2*r,i>1&&(i=1),Number(i.toFixed(2))}function generate$1(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],i=inputToRGB(e),a=lightColorCount;a>0;a-=1){var o=toHsv(i),s=toHex(inputToRGB({h:getHue(o,a,!0),s:getSaturation(o,a,!0),v:getValue(o,a,!0)}));n.push(s)}n.push(toHex(i));for(var l=1;l<=darkColorCount;l+=1){var c=toHsv(i),u=toHex(inputToRGB({h:getHue(c,l),s:getSaturation(c,l),v:getValue(c,l)}));n.push(u)}return r.theme==="dark"?darkColorMap.map(function(h){var b=h.index,f=h.opacity,y=toHex(mix(inputToRGB(r.backgroundColor||"#141414"),inputToRGB(n[b]),f*100));return y}):n}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(e){presetPalettes[e]=generate$1(presetPrimaryColors[e]),presetPalettes[e].primary=presetPalettes[e][5],presetDarkPalettes[e]=generate$1(presetPrimaryColors[e],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[e].primary=presetDarkPalettes[e][5]});var containers=[],styleElements=[],usage="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function createStyleElement(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function insertCss(e,r){if(r=r||{},e===void 0)throw new Error(usage);var n=r.prepend===!0?"prepend":"append",i=r.container!==void 0?r.container:document.querySelector("head"),a=containers.indexOf(i);a===-1&&(a=containers.push(i)-1,styleElements[a]={});var o;return styleElements[a]!==void 0&&styleElements[a][n]!==void 0?o=styleElements[a][n]:(o=styleElements[a][n]=createStyleElement(),n==="prepend"?i.insertBefore(o,i.childNodes[0]):i.appendChild(o)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),o.styleSheet?o.styleSheet.cssText+=e:o.textContent+=e,o}function _objectSpread$8(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?Object(arguments[r]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),i.forEach(function(a){_defineProperty$8(e,a,n[a])})}return e}function _defineProperty$8(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function warn(e,r){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(r))}function warning(e,r){warn(e,"[@ant-design/icons-vue] ".concat(r))}function isIconDefinition(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function generate(e,r,n){return n?vue.h(e.tag,_objectSpread$8({key:r},n,e.attrs),(e.children||[]).map(function(i,a){return generate(i,"".concat(r,"-").concat(e.tag,"-").concat(a))})):vue.h(e.tag,_objectSpread$8({key:r},e.attrs),(e.children||[]).map(function(i,a){return generate(i,"".concat(r,"-").concat(e.tag,"-").concat(a))}))}function getSecondaryColor(e){return generate$1(e)[0]}function normalizeTwoToneColors(e){return e?Array.isArray(e)?e:[e]:[]}var iconStyles=`
3
3
  .anticon {
4
4
  display: inline-block;
@@ -96,7 +96,7 @@ version: 2.9.0
96
96
  `,n+="-----END PUBLIC KEY-----",n},r.hasPublicKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")},r.hasPrivateKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")&&n.hasOwnProperty("d")&&n.hasOwnProperty("p")&&n.hasOwnProperty("q")&&n.hasOwnProperty("dmp1")&&n.hasOwnProperty("dmq1")&&n.hasOwnProperty("coeff")},r.prototype.parsePropertiesFrom=function(n){this.n=n.n,this.e=n.e,n.hasOwnProperty("d")&&(this.d=n.d,this.p=n.p,this.q=n.q,this.dmp1=n.dmp1,this.dmq1=n.dmq1,this.coeff=n.coeff)},r}(RSAKey),_a,version=typeof process<"u"?(_a=process.env)===null||_a===void 0?void 0:_a.npm_package_version:void 0,JSEncrypt=function(){function e(r){r===void 0&&(r={}),r=r||{},this.default_key_size=r.default_key_size?parseInt(r.default_key_size,10):1024,this.default_public_exponent=r.default_public_exponent||"010001",this.log=r.log||!1,this.key=null}return e.prototype.setKey=function(r){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new JSEncryptRSAKey(r)},e.prototype.setPrivateKey=function(r){this.setKey(r)},e.prototype.setPublicKey=function(r){this.setKey(r)},e.prototype.decrypt=function(r){try{return this.getKey().decrypt(b64tohex(r))}catch{return!1}},e.prototype.encrypt=function(r){try{return hex2b64(this.getKey().encrypt(r))}catch{return!1}},e.prototype.sign=function(r,n,i){try{return hex2b64(this.getKey().sign(r,n,i))}catch{return!1}},e.prototype.verify=function(r,n,i){try{return this.getKey().verify(r,b64tohex(n),i)}catch{return!1}},e.prototype.getKey=function(r){if(!this.key){if(this.key=new JSEncryptRSAKey,r&&{}.toString.call(r)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,r);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=version,e}();const encryptor=new JSEncrypt,aesKey=createAesKey();function createAesKey(){let r=Math.random().toString(36).substr(2);for(;r.length<16;)r+=Math.random().toString(36).substr(2);return r=r.substr(0,16),r}const iv=CryptoJS.enc.Utf8.parse("ABCDEF1234123412");function aesEncrypt(e,r){r=r||aesKey;const n=CryptoJS.enc.Utf8.parse(r);let i="";switch(typeof e){case"string":i=CryptoJS.enc.Utf8.parse(e);break;case"object":i=CryptoJS.enc.Utf8.parse(JSON.stringify(e));break;default:i=CryptoJS.enc.Utf8.parse(e.toString())}return CryptoJS.AES.encrypt(i,n,{iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding}).toString()}function aesDecrypt(e,r){r=r||aesKey;const n=CryptoJS.enc.Utf8.parse(r),i=CryptoJS.AES.decrypt(e,n,{iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding});return CryptoJS.enc.Utf8.stringify(i).toString()}function setPublicKey(e){encryptor.setPublicKey(e)}function rsaEncrypt(e){return encryptor.encrypt(e)}function hasEncryptUrl(e=""){e.startsWith("/")||(e="/"+e),e=e.split("?")[0];const n=["/diagram","/dataview"].map(i=>`^(.*?)${i}(/|$)`);for(const i of n)if(new RegExp(i).test(e))return!0;return!1}function EncryptConfigParam(e){const{paramType:r,data:n,params:i,method:a}=e;r==="form"?["get","delete"].includes(a)?e.params=getEncryptParam(i,"string"):e.data=getEncryptParam(n,"string"):["get","delete"].includes(a)?e.params=getEncryptParam(i,"string"):e.data=getEncryptParam(n)}function getEncryptParam(e,r){let n=e||{};if(r==="string"){n="";for(const l in e)if(Object.hasOwnProperty.call(e,l)){const c=e[l];n+=`${l}=${encodeURIComponent(c)}&`}}setPublicKey("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const a=rsaEncrypt(aesKey);return{c:aesEncrypt(n,aesKey),p:a}}window.getEncryptParam=getEncryptParam;function encryptData(e,r){var n;(n=window==null?void 0:window.config)!=null&&n.encryptFlag&&hasEncryptUrl(e.url)&&(e.data instanceof FormData?e.data=getEncryptFileParam(e.data):EncryptConfigParam(e))}function getEncryptFileParam(e){const r=e.entries(),n=new FormData,i={};for(const o of r){const s=o[0],l=o[1];l instanceof Blob?n.append(s,l):i[s]=l}const a=getEncryptParam(i,"json");return typeof a=="object"&&(n.append("c",a.c),n.append("p",a.p)),n}window.xhaesKey=aesKey,window.xhaesDecrypt=aesDecrypt;function decryptData(e,r){var n;if((n=window==null?void 0:window.config)!=null&&n.encryptFlag&&hasEncryptUrl(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const i=aesDecrypt(e.data.data.content,aesKey);e.data=JSON.parse(i)}}const requestErrorTip=window.config.requestErrorTip,request=axios.create({timeout:1e3*180});request.interceptors.request.use(e=>{const{requestParams:r={}}=window.config;return r!=null&&r.pltToken&&(e.headers["Plt-Token"]=r.pltToken),encryptData(e),e},e=>Promise.reject(e)),request.interceptors.response.use(e=>{var r,n,i;return requestErrorTip&&+((r=e==null?void 0:e.data)==null?void 0:r.code)==500&&antDesignVue.message.error({content:((n=e==null?void 0:e.data)==null?void 0:n.msg)||((i=e==null?void 0:e.data)==null?void 0:i.message)||"服务器异常",key:"SERVER_ERROR",duration:2}),decryptData(e),e},e=>{if(decryptData(e==null?void 0:e.response),requestErrorTip)if(e.message.includes("timeout"))antDesignVue.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:r}=(e==null?void 0:e.response)||{};r>=400&&r<500&&antDesignVue.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),r>=500&&antDesignVue.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(e)});const handleFormatter=e=>e.replace(/\\n/g,`
97
97
  `),formatMoney=(e,r=2)=>{const n=parseFloat(e+"");return isNaN(n)?e:n.toFixed(r).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},formatThousands=e=>{const r=parseFloat(e+"");return isNaN(r)?e:(r+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},formatPercentage=(e,r=2)=>{const n=e+"";if(n.includes("%"))return e;const i=parseFloat(n);return isNaN(i)?e:`${(i*100).toFixed(r)}%`},formatDecimals=(e,r=2)=>{const n=e+"",i=parseFloat(n);return isNaN(i)?e:i.toFixed(r)},formatCustom=(e,r)=>useValueFormatter(r,e),lowerCaseIncludes=(e,r)=>{if(typeof e=="string"&&typeof r=="string")return e.toLocaleLowerCase().includes(r.toLocaleLowerCase());if(typeof e=="string"&&Array.isArray(r)){const n=r.length;for(let i=0;i<n;i++){const a=r[i];if(typeof a=="string"&&e.toLocaleLowerCase().includes(a.toLocaleLowerCase()))return!0}}return!1},hasOwn=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),getFixedValueDatas=e=>{const{leftAxisList:r=[],rightAxisList:n=[],queryColumnList:i=[],indicators:a=[]}=e;return[...r,...n,...i,...a].filter(o=>(o==null?void 0:o.calcType)==="COMPONENT").map(o=>({keyName:o.builtInCalcWay,id:o.builtInValueSource}))},canRequestIndicator=(e,r)=>{let n=!0;const i=getFixedValueDatas(e);return i!=null&&i.length&&(n=i.map(a=>r[a.id]).every(a=>a)),n},getLegendFormat=(e,r)=>{var s;const n=e.match(/\{(.+?)\}/g),i=((s=e.split(`
98
98
  `))==null?void 0:s.length)-1;let a="";if(i)for(let l=0;l<i;l++)a+=`
99
- `;let o=e;if(n!=null&&n.length){for(const l of n){const c=useVariablesInText(l,{textData:r},{useNewline:!1,useSpace:!1});c&&(o=o.replace(l,c))}return`${a}{text|${o}}`}else return e},setDefaultRangeVal=(e,r)=>{const{props:n,componentList:i,getGlobalModel:a}=e,{graphicConfig:o={},startValue:s,endValue:l}=n,c=getdefCompleteData({graphicConfig:o,startValue:s,endValue:l,componentList:i,getGlobalModel:a}),{dimensions:u,dataset:h}=r,{classificationList:b=[]}=o,y=b.find(d=>d.show).label||"";for(const d of c)u.includes(d)||u.push(d);u.sort((d,g)=>dayjs(d).isBefore(dayjs(g))?-1:1);for(const d of h){const{data:g}=d;if(g!=null&&g.length){const w=[];for(const p of c)if(g.find(v=>v[y]!==p)){const v=lodashEs.cloneDeep(g[0]);for(const m in v)m===y?v[m]=p:v[m]=0;w.push(v)}d.data.push(...w),d.data.sort((p,v)=>dayjs(p[y]).isBefore(dayjs(v[y]))?-1:1)}}},getConditions=e=>{const r=[];for(const n of e)n.conditions?r.push(...getConditions(n.conditions)):(n==null?void 0:n.dataType)==="component"&&r.push(n);return r};function getdefCompleteData(e){const{startValue:r,endValue:n,componentList:i,graphicConfig:a,getGlobalModel:o}=e,s=getVariableAndField(r),l=getVariableAndField(n),c=[];if(s&&l){const u=i.find(b=>b.keyName===s.keyName),h=i.find(b=>b.keyName===l.keyName);if(u&&h){const b=o(u.id),f=o(h.id),{classificationList:y=[]}=a,d=y.find(g=>g.show);if(d){let g="YYYY-MM";switch(d.name){case"the_year":g="YYYY";break;case"the_month":g="MM";break;case"the_day":g="DD";break;case"the_date":g=(d==null?void 0:d.dateFormat)||g;break}const w=getFormatStep(g);if(g){const p=vue.unref(b[s.field]),v=vue.unref(f[l.field]);let m=dayjs(p);const x=dayjs(v);for(c.push(x.format(g));m.isBefore(x);)c.push(m.format(g)),m=m.add(1,w)}}}}return c}function getVariableAndField(e){let r=null;if(e){const n=e.match(/\{(.+?)\}/g);if(n!=null&&n.length){let i=n[0].slice(1,-1).trim();const a=i.match(/\[(.+?)\]/g);let o="";a!=null&&a.length&&(i=i.replace(a[0],""),o=a[0].slice(1,-1).trim()),r={keyName:i,field:o}}}return r}function getFormatStep(e){const r=e.split("-");let n="";if(r!=null&&r.length)switch(r[r.length-1]){case"YYYY":n="year";break;case"MM":n="month";break;case"DD":n="day";break}return n}function handleJumpLink(e,r){var b;const{pageMode:n,targetTemplate:i,getRecordValueByKeyName:a,setTemplateData:o}=r,s=e.linkPage||"",l=usePageUrl(n,s),c=e.href;let u=c||l;u=useVariablesInText(u);const h=e.target;if(h)if(h==="event")window.parent.postMessage({type:"openPage",url:c},"*");else{const f={pageId:s,componentId:i};if((b=e.transParams)!=null&&b.length){u.includes("?")?u+="&":u+="?";const y=[];for(const d of e.transParams){const g=a(String(d.fieldName));y.push(`${d.keyName}=${g}`),f[d.keyName]=g}u+=y.join("&")}h==="template"?o(f):window.open(u,"_"+h)}}function getPageUrlParams(e){var n,i;let r={};if(e){const a=(((n=window.config)==null?void 0:n.urlParams)||{})[e]||{};for(const o in a)o.includes("{")||(r[o]=a[o])}else r=((i=window.config)==null?void 0:i.requestParams)||{};return r}const runCode=(e,r)=>{const n={dayjs,...r};let i="";const a=[];for(const l in n)i+=`${l},`,a.push(n[l]);i=i.replace(/,$/,"");const o=`function (${i}){return ${e}}`;let s;try{s=Function(`"use strict";return (${o})`)()(...a)}catch{return e}return s},useVariablesInText=(e="",{textData:r,codeData:n}={},{useNewline:i=!1,useSpace:a=!1}={})=>{const s={...window.config||{},...r},l=e.match(/\{(.+?)\}/g);if(l==null||l.length===0)return e;for(let c=0;c<l.length;c++){const u=l[c];let h=u.slice(1,-1).trim();const b=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,f=h.match(b);for(let y=0;y<f.length;y++){const d=f[y],g=s[d];g!=null&&typeof g!="function"&&(h=h.replace(d,g))}(/\(.*\)/g.test(h)||/[+/\\*]/g.test(h))&&(h=runCode(h,n)),e=e.replace(u,h)}return i&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),a&&(e=e==null?void 0:e.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),e},useRequestData=(e,r=()=>{})=>{const{requestUrl:n,requestMethod:i,requestHeaders:a,requestParams:o,requestInterval:s,isOpenRequestTimer:l,openCustomRequestData:c,projectRequestUrl:u="",getModel:h,requestParamsMode:b,customRequestParams:f,dataSetParam:y,requestType:d}=e,{pageMode:g}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:w}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:p,touchEventId:v}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:T=>{}})||{},x=h||m,E=useVariablesInText(n),k=async(T={})=>{var P;if(!E||!i||!a)return;let B={};for(const I of o){const{key:C,value:S}=I;if((S==null?void 0:S.id)==="PARENT"&&(S!=null&&S.prop)){const A=(((P=window.config)==null?void 0:P.record)||{})[S.prop];if(A){const q=A[S.propKey||"value"];q&&(["date","range"].some(G=>lowerCaseIncludes(A==null?void 0:A.type,G))?B[C]=vue.unref(q).format(A.format||"YYYY-MM-DD"):B[C]=vue.unref(q))}continue}if(typeof S=="object"&&S!=null&&S.id){let R={};const{id:A,prop:q,propKey:H,operate:G}=S;A==="THIS"?R=x(vue.unref(v))||{}:R=x(A)||{};const U=vue.unref(R[q]);let j=null;if(["date","range"].some($=>lowerCaseIncludes(R==null?void 0:R.type,$))){const{value:$,type:Y,mode:J}=G||{};if($&&Y&&J)switch(Y){case"add":j=vue.unref(U).add($,J);break;case"minus":j=vue.unref(U).subtract($,J);break}j==null&&(j=vue.unref(U)),j=(j==null?void 0:j.format((H==null?void 0:H.trim())||R.format))||""}else Object.prototype.toString.call(U)==="[object Object]"?H?j=U[H]:j=q?U[q]:U:lowerCaseIncludes(R==null?void 0:R.type,"select")&&vue.unref(U)&&q&&Array.isArray(vue.unref(U))?j=vue.unref(U).map($=>Object.prototype.hasOwnProperty.call($,q)?$[q]:$):j=U;B[C]=j}else typeof S=="object"&&S.id===null&&d===1?B[C]=S.propKey:typeof S=="string"&&(B[C]=useVariablesInText(S))}if(d===1){if(y.length<1)return;const I=Object.entries(B);y[1].value=y[1].value.map((C,S)=>({...C,paramKey:I[S][0],defaultValue:I[S][1]||"控件参数还未获取"})),B={id:y[0].value,param:y[1].value,dataType:y[2].value}}if(b==="2"&&f!=="{}"){const I=JSON.parse(f);M(I),I&&(B=I)}function M(I){const C={...B,...getPageUrlParams(w)};if(Array.isArray(I))I.forEach((S,R)=>{if(typeof S=="string"){const A=S.match(/\${(.+?)\}/g);if(A!=null&&A.length){const q=A[0].slice(2,-1);q&&C[q]?I[R]=C[q]:I[R]=""}}else M(S)});else if(Object.prototype.toString.call(I)==="[object Object]")for(const S in I)if(typeof I[S]=="string"){const R=I[S].match(/\${(.+?)\}/g);if(R!=null&&R.length){const A=R[0].slice(2,-1);A&&C[A]?I[S]=C[A]:I[S]=""}}else M(I[S])}B={...getPageUrlParams(w),...T,...B};let F="";const O=Object.keys(B),D=O.length-1,N=O.length;O.forEach((I,C)=>{let S=B[I];Object.prototype.toString.call(S)==="[object Object]"&&(S=JSON.stringify(S)),C===0?N!==1?F+=`?${I}=${S}&`:F+=`?${I}=${S}`:C===D?F+=`${I}=${S}`:F+=`${I}=${S}&`});function L(I){var C;if(d===1)return{Authentication:(C=window==null?void 0:window.config)==null?void 0:C.indicatorToken};if(typeof I=="string"){const S=JSON.parse(I),R=getPageUrlParams(w);if(Object.prototype.toString.call(S)==="[object Object]"){for(const A in S)if(typeof S[A]=="string"){const q=S[A].match(/\${(.+?)\}/g);if(q!=null&&q.length){const H=q[0].slice(2,-1);H&&R[H]?S[A]=R[H]:S[A]=""}}}return S}else return I}try{const I=["get","head"].includes(i),C={};let S=I?E+F:E;B.dataSqlId&&!S.includes("dataSqlId")&&(S+=`${S.includes("?")?"&":"?"}dataSqlId=${B.dataSqlId}`),Object.prototype.hasOwnProperty.call(B,"signal")&&(C.signal=B.signal);const R=await request({baseURL:vue.unref(p)||u||"",url:S,method:i,headers:a?L(a):{},data:I?{}:B,...C});return r(R),R}catch(I){console.error(I)}},_=vue.unref(g)!=="design"&&l&&(c||c===void 0)&&setInterval(k,s*1e3);return vue.onUnmounted(()=>{clearInterval(_)}),k},useTransformChartDataByAttrKey=(e=[],r,n=!1)=>{let{name:i="name",types:a=[]}=r||{};i=(i==null?void 0:i.trim())||i;const o=new Set,s=new Map,l=e.length,c=a.length;if(l===1&&!n){const b=[];for(let y=0;y<c;y++){const d=a[y],{label:g,value:w}=d,p={...e[0],value:e[0][w]};o.add(g),b.push(p)}const f=e[0][i]||"";s.set(f,b)}else for(let b=0;b<l;b++){const f=e[b],y=f[i];o.add(y);for(let d=0;d<c;d++){const g=a[d],{label:w,value:p}=g,v={...f,value:f[p]||0};if(s.has(w)){const m=s.get(w);m.push(v),s.set(w,m)}else s.set(w,[v])}}const u=Array.from(o),h=[];for(const[b,f]of s)h.push({name:b,data:f});return{dimensions:u,dataset:h}},useImagePath=(e,r=!1)=>{var i;if(!e)return e;let n="";return e!=null&&e.includes("://")?n=e:n=((i=window==null?void 0:window.config)==null?void 0:i.uploadPath)+e,r&&(n=`url(${n})`),n},usePageUrl=(e,r)=>{const n=`${BASE_URL}/preview?pageId=${r}`,i=`${BASE_URL}/${r}`;return e==="preview"?n:i},useValueFormatter=(e,r)=>{var a;if(e==null)return r;const n=e.match(/\{.*\}/g);if(n==null||n.length===0)return r;const i=n.length;for(let o=0;o<i;o++){const s=n[o];if(s==null||s==="")break;let l=(a=s.slice(1,-1))==null?void 0:a.trim();l=l==null?void 0:l.replace(/value/g,r);try{let c=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(c=runCode(l)),e=e.replace(s,c)}catch{e=e.replace(s,l)}}return e},useIndicatorData=(e={},r=()=>{})=>{var k;const{pageMode:n}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:i}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:a}=vue.inject(LOADED_DATA,{setLoadedData:(_,T)=>{}}),{getGlobalModel:o}=vue.inject(GLOBAL_MODEL,{getGlobalModel:_=>{}}),{pageId:s}=vue.inject("templateOperate",{pageId:""})||{};e.dataType==="indicator"&&i();const l=_=>{const{around:T,unit:B,id:M}=_;let F="";const{pageMode:O="",componentList:D=[]}=(e==null?void 0:e.graphicConfig)||{};let N=null,L=null;if(O==="design"){const P=D==null?void 0:D.find(H=>H.id===M);if(!P)return[];const{interval:I,intervalUnit:C,startTime:S,endTime:R,operate:A,useCurrentTime:q}=P||{};if(q&&(N=dayjs().subtract(I,C),L=dayjs()),S&&(N=dayjs(S)),R&&(L=dayjs(R)),A){const{type:H,value:G,mode:U}=A;switch(H){case"add":N=N&&N.add(G,U),L=L&&L.add(G,U);break;case"minus":N=N&&N.subtract(G,U),L=L&&L.subtract(G,U)}}}else{const P=o(M)||{};vue.unref(P.startTime)&&(N=dayjs(vue.unref(P.startTime))),vue.unref(P.endTime)&&(L=dayjs(vue.unref(P.endTime)))}if(N&&L){const P=L.diff(N,B.toLowerCase());F=`${T==="before"?"-":""}${P+1}`}return F?[F]:[]},c=(_,T)=>Object.prototype.hasOwnProperty.call(_,T),u=(_,T)=>{if(T)c(_,"indexCode")&&(_.hrpIndexCode=_.indexCode,delete _.indexCode),c(_,"indexCodeNum")&&(_.hrpIndexCodeNum=_.indexCodeNum,delete _.indexCodeNum),c(_,"dataType")&&delete _.dataType;else{const{calcWays:B=[],dateCalcTypes:M=[],activeKey:F,componentId:O=""}=_;if(F===5&&(B!=null&&B.length)&&(M!=null&&M.length)&&O){const D=B[0].split("-");(D==null?void 0:D.length)>1&&D[0]==="rangeValue"&&(_.calcWays=l({around:D[1],unit:M[0],id:O})),delete _.radioValue}if(c(_,"dataType")){if(_.fieldType==="DATE"&&(_.label=_.fieldName),_.dataType==="component")if(_.fieldValue==="PARENT"){let D=_.modelKey;D&&_.prop&&(D+=`-${_.prop}`),_.fieldValue="${"+D+"}"}else _.fieldValue="${"+_.fieldValue+"}";delete _.dataType}c(_,"activeKey")&&delete _.activeKey,c(_,"radioValue")&&delete _.radioValue,c(_,"indexCode")&&(_.hrpIndexCode=_.indexCode,delete _.indexCode),c(_,"indexCodeNum")&&(_.hrpIndexCodeNum=_.indexCodeNum,delete _.indexCodeNum),_.dataType!=="component"&&_.useCurrentTime&&(_.fieldValue=dayjs().format(_.dateFormat)),c(_,"modelKey")&&delete _.modelKey,c(_,"prop")&&delete _.prop,delete _.useCurrentTime}},h=(_,T)=>{const B=[];return _!=null&&_.length&&lodashEs.cloneDeep(_).forEach(M=>{if(M.join&&M.conditions){const F=!M.conditions.some(O=>O.join&&O.conditions);M.conditions.forEach((O,D)=>{u(O,T);const N={};if(D<M.conditions.length-1&&(N.join=M.join),F)B.push({...N,...O});else if(O.join&&O.conditions){const L=T?"sqlConditions":"conditions";B.push({[L]:h([O],T),...N})}else B.push({...N,...O})})}else u(M,T),B.push(M)}),B},b=(_={},T)=>{if(_!=null&&_.sortCpnts&&T){const V=m(_);V&&(T.sort=V)}const{label:B,name:M,location:F,show:O,indexCode:D,indexCodeNum:N,calcType:L="COLUMN",builtInFormula:P,builtInValueSource:I,builtInCalcWay:C,formula:S,conditions:R,aggregate:A,distinct:q,dimByCount:H,dataTo:G}=_;let U;if(R&&(U=h(R)),L==="COMPONENT"){const V={};return p(V,I),{label:B.trim(),columnName:M,show:O,calcType:L,componentAlias:C,componentValue:V.fieldValue||null}}const j={label:B.trim(),columnName:M,location:F,show:O,calcType:G==="1"?"VIEW":L,hrpIndexCode:D,hrpIndexCodeNum:N,aggregate:A,builtInFormula:P,builtInValueSource:I,formula:S,conditions:U};if(P==="DATE_OFFSET"){const V=C.split("-");if((V==null?void 0:V.length)===3){let $=V[0];return V[2]==="before"&&V[0]!=="0"&&($=`-${V[0]}`),{...j,calcWays:[$],dateCalcTypes:[V[1]]}}}else return M==="the_count"&&(j.calcType="AGGREGATE",j.distinct=!!q,j.typeGuid=H),{...j,builtInCalcWay:C}},f=_=>{if(!_)return[];const T=lodashEs.cloneDeep((_==null?void 0:_.controlList)||[]).filter(A=>A.conditionKey!=="parentCode"),{classificationList:B=[],rowHeaderList:M=[],dimensionList:F=[],seriesList:O=[],leftAxisList:D=[],rightAxisList:N=[],queryColumnList:L=[],indicators:P=[]}=_;g(T);const I=[...B,...M,...F,...O,...D,...N,...L,...P],C=[];for(const A of I){const q=getConditions((A==null?void 0:A.conditions)||[]);if(q!=null&&q.length){const H=q.filter(G=>(G==null?void 0:G.dataType)==="component").map(G=>{const U={};return G!=null&&G.dateFormat&&(U.format=G.dateFormat),G.fieldValue==="PARENT"&&(U.id="PARENT",U.keyName=G.modelKey,U.modelKey=G.modelKey,U.prop=G.prop),{conditionKey:G.fieldName,conditionLabel:G.fieldName,conditionName:G.fieldName,conditionValueType:G.fieldType,id:G.componentId,keyName:G.fieldValue,rule:G.rule,notGlobal:!0,indexCode:G.indexCode,typeGuid:G.typeGuid,indexCodeNum:G.indexCodeNum,...U}});if(H!=null&&H.length)for(const G of H)C.find(U=>U.keyName===G.keyName)||C.push(G)}}const S=C.length,R=T;for(let A=0;A<S;A++){const q=C[A];if((q==null?void 0:q.conditionKey)==="parentCode")continue;const{id:H,keyName:G,prop:U,format:j,modelKey:V,dataType:$="component",customValue:Y}=q,J=y(q);p(J,H,{prop:U,dateFormat:j,modelKey:V,keyName:G}),$===""&&(J.fieldValue=Y||""),R.push(J)}for(let A=R.length-1;A>=0;A--){const q=R[A];q.globalCondition||getConditions(R).find(G=>G.alias===q.alias&&G.globalCondition)&&R.splice(A,1)}return R};function y(_){const{id:T,keyName:B,conditionLabel:M,conditionKey:F,conditionValueType:O,prop:D,rule:N="NONE",notGlobal:L=!1,indexCode:P,typeGuid:I,indexCodeNum:C,dataType:S="component"}=_;let R=B||T;R&&D&&(R+=`-${D}`);let A=N;return A==="NONE"&&(["startTime","endTime"].includes(D)?A=D==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":B!=null&&B.includes("startTime")?A=D==="GREATER_EQUAL":B!=null&&B.includes("endTime")?A=D==="LESS_EQUAL":A="EQUAL"),T==="PARENT"&&(R=_.modelKey,R&&D&&(R+=`-${D}`),A=N),{rule:A,label:M,fieldName:F,fieldValue:"",valueType:O,alias:R,globalCondition:!L,indexCode:P,typeGuid:I,indexCodeNum:C,dataType:S}}const d=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"];function g(_){if(_!=null&&_.length)for(const T of _)if(T!=null&&T.conditions)g(T.conditions);else{const{id:B,keyName:M,prop:F,modelKey:O,format:D,dataType:N="component",customValue:L}=T,P=y(T);p(P,B,{prop:F,dateFormat:D,modelKey:O,keyName:M}),N===""&&(P.fieldValue=L||"");for(const I in P)T[I]=P[I];for(const I of d)delete T[I]}}function w(_){const T=[];if(_!=null&&_.length){for(const B of _)if(B.variableName){const M={variateName:B.variableName,globalCondition:!1,valueType:B.variableType,alias:B.keyName||""};p(M,B.id,{dateFormat:B.format,prop:B.dateTypeValue,keyName:B.keyName,operateType:B.operateType,operateMode:B.operateMode,operateValue:B.operateValue}),B.dataType===""&&(M.fieldValue=B.variableValue),B.format&&(M.dateFormat=B.format),B.label&&(M.label=B.label),T.push(M)}}return T}function p(_,T,B){const{prop:M="",dateFormat:F="",modelKey:O="",keyName:D="",operateValue:N,operateMode:L,operateType:P}=B||{},I=O||D;if(T==="PARENT"&&I&&M){const U=window.config.record;if(U&&U[I]){const j=vue.unref(U[I][M]);dayjs.isDayjs(j)?_.fieldValue=j.format(F||"YYYY-MM-DD"):_.fieldValue=j}return}const C=o(T)||{},{value:S,format:R="YYYY-MM-DD",type:A="",useCurrentTime:q,RECORD:H}=C||{},G=F||R;if(lowerCaseIncludes(C.type,"date")){let U;if(q?S?U=vue.unref(S):U=dayjs():U=vue.unref(S),N&&L&&P)switch(P){case"add":U=U.add(N,L);break;case"minus":U=U.subtract(N,L);break}_.fieldValue=U==null?void 0:U.format(G),_.dateFormat=G}else if(A==="ecanRangePicker"){let U=M;if(!M){const V=D&&D.split("-");V!=null&&V.length&&(U=V[V.length-1])}if(!U)return;let j=null;if(vue.unref(C[U])&&(j=dayjs(vue.unref(C[U]))),N&&L&&P){if(N==="rangeValue"){if(C.startTime&&C.endTime){const V=vue.unref(C.endTime).diff(vue.unref(C.startTime),L)+1;switch(P){case"add":j=j&&j.add(V,L);break;case"minus":j=j&&j.subtract(V,L)}}}else if(!isNaN(+N))switch(P){case"add":j=j&&j.add(N,L);break;case"minus":j=j&&j.subtract(N,L)}}if(j&&(_.fieldValue=j==null?void 0:j.format(G)),U==="rangeValue"&&C.startTime&&C.endTime){const V=getFormatStep(G);V&&(_.fieldValue=vue.unref(C.endTime).diff(vue.unref(C.startTime),V)+1)}_.dateFormat=G}else lowerCaseIncludes(A,MODEL_KEY_LIST)?O&&H?_.fieldValue=H[O]:!O&&H?_.fieldValue=H.value:_.fieldValue=vue.unref(S):_.fieldValue=vue.unref(S)}const v=_=>{var T;if(_){const B=Array.isArray(_)?lodashEs.cloneDeep(_):[lodashEs.cloneDeep(_)];let M="",F=[];const O=[],D=[],N=[];for(const L of B){if(L.defaultCode&&(L.label=L.columnName,delete L.defaultCode),L.type==="CUSTOM"&&(F=L.customOrderColumns),M=L.type,O.push(L.label),(T=L.columnName)!=null&&T.includes("_ecanrepeat_")){const P=L.columnName.split("_ecanrepeat_");D.push(P[0])}else D.push(L.columnName);N.push(L.order)}return M!=="CUSTOM"&&(O==null?void 0:O.length)>1&&(M="COMBINATION"),M==="CUSTOM"?{label:O.join(","),columnName:D.join(","),type:M,customOrderColumns:F}:{label:O.join(","),columnName:D.join(","),order:N.join(","),type:M}}else return _},m=_=>{const{sortCpnts:T=[]}=_;let B,M="";for(const F of T){const O=o(F)||{},{type:D,RECORD:N}=O;if(lowerCaseIncludes(D,"image")&&lowerCaseIncludes(N==null?void 0:N.value,["asc","desc"])){M=N.value.toUpperCase();break}}return M&&(B={label:_.label,columnName:_.name,order:M,type:"NORMAL"}),B},x=async(_={})=>{var de,ge,be,Ce,Te,Se;a(e.id,!1);const{graphicConfig:T,type:B,isGroupTable:M=!1}=e;let{source:F,dataViewId:O,plugin:D="1",layer:N,chartType:L,classificationList:P=[],rowHeaderList:I=[],dimensionList:C=[],seriesList:S=[],leftAxisList:R=[],rightAxisList:A=[],queryColumnList:q=[],indicators:H=[],controlList:G=[],formFields:U={},variableList:j=[],variableConditions:V=[],idxLibMode:$,preview:Y=!1,edvDataSetId:J}=T||{},K=[];if((T==null?void 0:T.pageMode)==="design"?(K=(T.sqlConditions??[]).map(fe=>{const pe={};if(!c(fe,"globalCondition")&&!fe.join&&(pe.globalCondition=!0),!fe.join){const ve=fe.rule||"EQUAL";pe.rule=ve==="NONE"?"EQUAL":ve}return{...fe,...pe}}),V!=null&&V.length&&(K=K.concat(V))):(K=f(T),j!=null&&j.length&&(K=K.concat(w(j)))),K!=null&&K.length){const fe=K.filter(ve=>ve.globalCondition),pe=K.filter(ve=>!ve.globalCondition);(fe==null?void 0:fe.length)>1&&(K=[{join:"&&",conditions:fe},...pe])}K!=null&&K.length&&(K=h(K,"1")),N==null&&(lowerCaseIncludes(B,["table"])||lowerCaseIncludes(B,["list","circulate"])&&(P==null?void 0:P.length)>1?N="1":lowerCaseIncludes(B,["select","checkbox","radio"])?N="3":N="2");let ne;const X=[];let W="";if(Array.isArray(P)&&P.length>0&&(!["ecanList","ecanCirculate"].includes(B)||(P==null?void 0:P.length)===1)){const fe=P.length;for(let pe=0;pe<fe;pe++){const ve=P[pe]||{},{label:we="",name:Ae="",show:Pe=!1,sort:Oe,customGroup:Le,conditions:Re,dateFormat:Me,typeGuid:Ve="",truncations:Be=[]}=ve;if(Pe||fe===1){W=Ve,ne={label:we.trim(),columnName:Ae,show:Pe,sort:m(ve)||v(Oe)||Oe,customGroup:Le,conditions:h(Re),typeGuid:Ve},Me&&(ne.dateFormat=Me),Ae==="the_date"&&!ne.dateFormat&&(ne.dateFormat="YYYY-MM");const Ie={};if(Array.isArray(Be)&&Be.length>0){const Z=Be.length;for(let Q=0;Q<Z;Q++){const re=Be[Q]||{},{rule:le="",num:ue=0,name:ce=""}=re;le&&ue&&(Ie.num=ue,Ie.rule=le,ce&&(Ie.otherGroupName=ce))}}if((de=Object.keys(Ie))!=null&&de.length&&(ne.truncation=Ie),lowerCaseIncludes(B,"scatter"))X.push(ne);else break}}}let ee;if(Array.isArray(S)&&S.length>0){const fe=S.length;for(let pe=0;pe<fe;pe++){const ve=S[pe]||{},{label:we="",name:Ae="",show:Pe=!1,sort:Oe,customGroup:Le,conditions:Re,typeGuid:Me}=ve;if(Pe||fe===1){ee={label:we.trim(),columnName:Ae,show:Pe,sort:v(Oe),customGroup:Le,conditions:h(Re),typeGuid:Me};break}}}const te=[];R==null||R.forEach(fe=>{fe.location="LEFT",te.push(b(fe,ne))}),A==null||A.forEach(fe=>{fe.location="RIGHT",te.push(b(fe,ne))}),H==null||H.forEach(fe=>{fe.location="LEFT",te.push(b(fe,ne))});const ae=[];["ecanList","ecanCirculate"].includes(B)&&(P==null?void 0:P.length)>1&&(q=P),q==null||q.forEach(fe=>{const{label:pe,name:ve,location:we,show:Ae,indexCode:Pe,sort:Oe,typeGuid:Le,indexCodeNum:Re,dateFormat:Me,conditions:Ve}=fe;let Be=v(Oe);if(_.sort){const{field:Z,order:Q}=_.sort;let re=te.find(le=>le.label===Z);!re&&pe===Z&&(re=fe),re&&(Be={columnName:re.columnName,label:_.sort.field,order:Q.toUpperCase(),type:"NORMAL"})}const Ie={label:pe,columnName:ve,location:we,show:Ae,sort:Be,calcType:"COLUMN",hrpIndexCode:Pe,hrpIndexCodeNum:Re,conditions:h(Ve),typeGuid:Le};Me&&(Ie.dateFormat=Me),ve==="the_date"&&!Ie.dateFormat&&(Ie.dateFormat="YYYY-MM"),ae.push(Ie)});const ie=[];let se=[];if(Array.isArray(I)&&I.length>0?se=I:Array.isArray(C)&&C.length>0&&(se=C),se!=null&&se.length){const fe=se.length;for(let pe=0;pe<fe;pe++){const ve=se[pe]||{},{label:we="",name:Ae="",show:Pe=!1,sort:Oe,customGroup:Le,conditions:Re,truncations:Me,typeGuid:Ve="",dateFormat:Be}=ve;let Ie=v(Oe);if(_.sort){const{field:re,order:le}=_.sort;let ue=te.find(ce=>ce.label===re);!ue&&ve.label===re&&(ue=ve),ue&&(Ie={columnName:ue.columnName,label:_.sort.field,order:le.toUpperCase(),type:"NORMAL"})}const Z={label:we.trim(),columnName:Ae,show:Pe,sort:Ie,customGroup:Le,conditions:h(Re),typeGuid:Ve};Be&&(Z.dateFormat=Be),Ae==="the_date"&&!Z.dateFormat&&(Z.dateFormat="YYYY-MM");const Q={};if(Array.isArray(Me)&&Me.length>0){const re=Me.length;for(let le=0;le<re;le++){const ue=Me[le]||{},{rule:ce="",num:oe=0,name:me=""}=ue;ce&&oe&&(Q.num=oe,Q.rule=ce,me&&(Q.otherGroupName=me))}}(ge=Object.keys(Q))!=null&&ge.length&&(Z.truncation=Q),ie.push(Z)}}if(lowerCaseIncludes(B,["text","proportion","counter"])&&(L="zb"),M){if(ie.length===0||te.length===0)return;L="grouptable"}else{if(N==="1"&&ae.length===0)return;if(N==="2"&&te.length===0)return;if(N==="3"&&(!W||!U.labelField||!U.valueField))return;if(N==="3"&&B==="ecanDataSelect"&&te.length===0)return}C!=null&&C.length&&(N="1",L="grouptable");let he=s||((be=window==null?void 0:window.config)==null?void 0:be.pageId);if(!he){const{pathname:fe}=window==null?void 0:window.location;if(fe){const pe=fe.split("/");pe!=null&&pe.length&&(he=pe[pe.length-1])}}if(B!=="ecanScatter"&&((Ce=Object.keys(U))!=null&&Ce.length)){const fe=getConditions(G).find(ve=>ve.conditionKey==="parentCode"),pe={};if(fe){const ve=o(fe.id)||{};if(ve!=null&&ve.itemCodes)pe.parentItemCodes=ve.itemCodes;else return}B==="ecanDataSelect"&&(pe.indicatorList=te.filter(ve=>ve.show));try{const ve=await request.post(`${INDICATOR_URL}/diagram/formData`,{source:F,dataViewId:O,plugin:"4",layer:N,chartType:"normalSelect",rangeIndexTypeGuid:W,type:B==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:U.labelField,valueField:U.valueField,pageId:he,sqlConditions:K,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...pe},{headers:{Authentication:(Te=window==null?void 0:window.config)==null?void 0:Te.indicatorToken,operateContext:CONTEXT}});return _!=null&&_.isTimer&&r(ve),ve}catch(ve){console.error(ve)}finally{}}else try{let fe={};lowerCaseIncludes(B,"scatter")?fe={classifications:X}:fe={classification:ne};const pe=await request.post(`${INDICATOR_URL}/diagram`,{source:F,dataViewId:O,plugin:D,layer:N,chartType:L,...fe,series:ee,indicatorList:te,queryColumns:M?[]:ae,pageFlag:!0,pageId:he,edvDataSetId:J||"",sqlConditions:K.map(ve=>{const{fieldValue:we}=ve,Ae={};return we&&Array.isArray(we)&&(Ae.fieldValue=JSON.stringify(we)),{...ve,...Ae}}),idxLibMode:$,preview:Y,rowHeaders:ie,keyName:e.keyName},{headers:{Authentication:(Se=window==null?void 0:window.config)==null?void 0:Se.indicatorToken,operateContext:CONTEXT}});return _!=null&&_.isTimer&&r(pe),pe}catch(fe){console.error(fe)}finally{}},E=vue.unref(n)!=="design"&&((k=e==null?void 0:e.graphicConfig)==null?void 0:k.pageMode)!=="design"&&e.isOpenRequestTimer&&e.requestInterval&&setInterval(()=>{x({isTimer:!0})},e.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(E)}),x},useHrefParamsToGlobalVariables=()=>{const r=window.location.search.slice(1).split("&"),n=r.length,i={};for(let a=0;a<n;a++){const o=r[a];if(o==null||o==="")continue;const s=o.split("=");if(Array.isArray(s)){const l=s[0];l.includes("{")||(i[l]=s[1])}}window.config.requestParams={...window.config.requestParams,...i},window.config={...window.config,...i}},_sfc_main$s=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""}},setup(e){const{width:r,height:n}=vue.inject(GLOBAL_CONFIG,{width:null,height:null}),i=vue.inject("setPageHeight",x=>{}),a=vue.inject("isMobile",!1),o=vue.computed(()=>{const x={};return a||(x.width=r.value,x.height=n.value),{...x,backgroundColor:e.backgroundColor,backgroundImage:useImagePath(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=vue.ref(0),l=vue.ref(0),c=vue.ref(0),u=vue.ref(0),h=vue.ref(!1),b=vue.ref();let f;const y=()=>new Promise(x=>{vue.nextTick(()=>{r.value&&n.value?(s.value=parseFloat(r.value),l.value=parseFloat(n.value)):(s.value=b.value.clientWidth,l.value=b.value.clientHeight),(!c.value||!u.value)&&(c.value=window.screen.width,u.value=window.screen.height),x()})}),d=()=>{s.value&&l.value?(b.value.style.width=`${s.value}px`,b.value.style.height=`${l.value}px`):(b.value.style.width=`${c.value}px`,b.value.style.height=`${u.value}px`)};vue.watch([r,n],async()=>{e.pageId||(await y(),d(),w(),window.addEventListener("resize",p),v()),h.value=!0},{immediate:!0});const g=vue.ref({});vue.provide("scaleValue",g);const w=()=>{if(a){b.value.style.width="100%",b.value.style.height="auto",i("auto");return}const x=document.body.clientWidth,E=document.body.clientHeight,k=s.value||c.value,_=l.value||u.value,T=x/k;let B=E/_;(s.value!==1920||l.value!==1080)&&(B=l.value/s.value*x/_),g.value={widthScale:T,heightScale:B},b.value&&(b.value.style.transform=`scale(${T}, ${B})`),i(B)},p=lodashEs.debounce(async()=>{await y(),w()},100),v=()=>{const x=window.MutationObserver;f=new x(p),f.observe(b.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},m=()=>{f&&(f.disconnect(),f.takeRecords(),f=null)};return vue.onMounted(()=>{h.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",p),m()}),{style:o,container:b,ready:h}}}),PageConfig_vue_vue_type_style_index_0_scoped_3fe72c34_lang="",_hoisted_1$g={id:"container",ref:"container"};function _sfc_render$x(e,r,n,i,a,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$g,[e.ready||e.pageId?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"page-config",style:vue.normalizeStyle(e.style)},[vue.renderSlot(e.$slots,"default",{},void 0,!0)],4)):vue.createCommentVNode("",!0)],512)}const PageConfig=_export_sfc$1(_sfc_main$s,[["render",_sfc_render$x],["__scopeId","data-v-3fe72c34"]]),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$r=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...providerConfigComponentProps,pageId:{type:String,default:""}},setup(e,{expose:r,emit:n}){e.pageId||useHrefParamsToGlobalVariables();const i=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)),a=vue.ref(),o=()=>{a.value.setAttribute("datav-theme",e.theme)},s=vue.inject("usedComponentList",[]),l=vue.inject("componentList",[]),c=vue.computed(()=>{const W=[];for(const ee of vue.unref(s))ee.type==="ecanModal"?W.push(...ee.componentList):W.push(ee);return W});vue.watch(()=>e.theme,()=>{o()}),vue.onMounted(()=>{o()});const u=vue.computed(()=>useVariablesInText(e.contextRequestUrl)),h=vue.computed(()=>e.pageMode),b=vue.computed(()=>e.theme),f=vue.computed(()=>e.width),y=vue.computed(()=>e.height),d=vue.computed(()=>e.pageFontFamily),g=vue.computed(()=>{const W=[],ee=vue.unref(l).filter(te=>te.type==="ecanModal");for(const te of ee)te!=null&&te.requestList&&W.push(...te.requestList);return[...W,...e.requestList]}),w=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:u,pageMode:h,theme:b,touchEventId:w,width:f,height:y,fontFamily:d,requestList:g});const p=vue.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",W=>{let ee=W;i.value||(ee=parseFloat(y.value)*W+"px"),p.value.height=ee}),vue.provide("isMobile",i.value),vue.provide("getContainerMap",()=>e.containerMap),vue.provide("getCombinationMap",()=>e.combinationMap),vue.provide("templateOperate",{pageId:e.pageId,templateEmit:n,setTemplateData:W=>{var ee;if(W!=null&&W.pageId){const{componentId:te,...ae}=W;(ee=window.config)!=null&&ee.urlParams||(window.config.urlParams={}),window.config.urlParams[W.pageId]=ae,n("templateChange",W)}}});const v=vue.ref(),m=new Map;console.log("globalModel",m);const x=W=>m.get(W),E=(W,ee)=>{var te;if(v.value=ee,m.set(W,ee),!e.pageId){const ae=vue.unref(s).find(ie=>ie.id===W);ae&&((te=window.config)!=null&&te.record||(window.config.record={}),window.config.record[ae.keyName]=ee)}},k=()=>{v.value=null},_=W=>{let ee=W;if(ee){const te=W.match(/\{(.+?)\}/g);if(te!=null&&te.length){let ae=te[0].slice(1,-1).trim();const ie=ae.match(/\[(.+?)\]/g);let se="";ie!=null&&ie.length&&(ae=ae.replace(ie[0],""),se=ie[0].slice(1,-1).trim());const he=vue.unref(s).find(de=>de.keyName===ae);if(he){const de=x(he.id),{type:ge,value:be,RECORD:Ce,recordData:Te}=de||{};lowerCaseIncludes(ge,MODEL_KEY_LIST)?ee=Ce[se]:lowerCaseIncludes(ge,"select")?ee=Te[se]:lowerCaseIncludes(ge,["rangePicker","date"])?dayjs.isDayjs(vue.unref(de[se]))?ee=vue.unref(de[se]).format(de.format):ee=vue.unref(de[se]):ee=be}else ee=""}}return ee},T=new Map,B={},M=async(W,ee)=>{var he;const{requestName:te}=W,ae=await useRequestData({...W,projectRequestUrl:vue.unref(u),getModel:x})(),ie=((he=ae==null?void 0:ae.data)==null?void 0:he.data)||{},se=T.get(te);if(se!=null&&se.length&&(!ee||B[te])){for(const de of se)de(ie);ee||T.delete(te)}},F=(W,ee)=>{B[W]&&(clearInterval(B[W]),delete B[W],T.delete(W));const te=vue.unref(c).filter(ie=>!ie.openCustomRequestData&&ie.customRequestName===W),ae=T.get(W)||[];if((te==null?void 0:te.length)>ae.length&&(ae.push(ee),T.set(W,ae),(te==null?void 0:te.length)===ae.length)){const ie=vue.unref(g).find(se=>se.requestName===W);ie&&(ie!=null&&ie.isOpenRequestTimer&&(ie!=null&&ie.requestInterval)?(M(ie,!0),B[W]=setInterval(()=>{M(ie,!0)},ie.requestInterval*1e3)):M(ie))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:x,setGlobalModel:E,clearInteractiveData:k,getRecordValueByKeyName:_,hanldePageRequestData:F,interactiveData:v});const O=vue.ref({}),D=(W,ee)=>{O.value[W]=ee};vue.provide(LOADED_DATA,{loadedData:O,setLoadedData:D});const N=[],L=()=>{N.pop()},P=W=>{N.push(W)},I=new Map,C=W=>I.get(W),S=(W,ee)=>{I.set(W,ee)};vue.provide(MODAL_MODEL,{popUseModalIds:L,pushUseModalIds:P,getModalModel:C,setModalModel:S});const R=mitt(),A=new Set,q=(W,ee)=>{A.add(W),R.on(W,te=>{const{eventName:ae,params:ie}=te;return typeof ee[ae]=="function"&&ee[ae](ie)}),vue.onBeforeUnmount(()=>{H(W)})},H=W=>{A.delete(W),R.off(W)},G=(W,ee,te={})=>{if(W==="PAGE"){const ae=N.length;let ie=[];if(ae===0)ie=[...A];else{const se=N[ae-1];ie=[...C(se)]}ie.forEach(se=>{R.emit(se,{eventName:ee,params:te})})}else R.emit(W,{eventName:ee,params:te})};vue.provide(EVENT_BUS,{onEvent:q,offEvent:H,emitEvent:G});const U=vue.ref(0),j=()=>{U.value=vue.unref(U)+1};vue.provide(GLOBAL_TOKEN,{requestToken:j});const V=new Map,$=new Map,Y=({requestFn:W=()=>{},sortNum:ee=0,id:te=""})=>{if(V.has(ee)){const ae=V.get(ee);ae==null||ae.push(W)}else V.set(ee,[W]);$.set(te,W)},J=W=>new Promise((ee,te)=>{const ae=W.map(ie=>ie());Promise.all(ae).then(ie=>{ee(ie)}).catch(ie=>{te(ie)})}),K=W=>new Promise(async(ee,te)=>{if(W){if(typeof W=="string"){const ae=$.get(W);if(typeof ae=="function"){const ie=request.interceptors.response.use(se=>(ee(se),se),se=>(te(se),Promise.reject(se)));ae(),request.interceptors.response.eject(ie)}}}else{const ae=Array.from(V);ae.sort((se,he)=>he[0]-se[0]);const ie=ae.length;try{e.pageMode!=="design"&&vue.unref(U)>0;for(let se=0;se<ie;se++){const he=ae[se][1];await J(he)}}catch(se){console.error(se)}finally{V.clear(),ee(null)}}});vue.provide(REQUEST_MODEL,{setRequest:Y,touchRequest:K});const ne=()=>{R.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:ne});const X=W=>{R.on(REFRESH_PAGE,()=>W()),vue.onMounted(()=>{R.off(REFRESH_PAGE)})};return vue.watchEffect(()=>{var W;if((W=vue.unref(s))!=null&&W.length&&vue.unref(h)!=="design"){const{jumpType:ee,jumpTime:te,jumpPage:ae,jumpLink:ie}=e;if(te!=null&&te.value){let se=0;switch(te==null?void 0:te.suffix){case"hours":se=te.value*60*60*1e3;break;case"minute":se=te.value*60*1e3;break;case"seconds":se=te.value*1e3;break}setTimeout(()=>{let he="";ee==="page"&&ae?he=usePageUrl(vue.unref(h),ae):ee==="link"&&ie&&(he=ie),he=useVariablesInText(he),window.open(he,"_self")},se)}}}),vue.onBeforeUnmount(()=>{V==null||V.clear(),$==null||$.clear()}),r({touchRequest:K,getGlobalModel:x,onRefreshPage:X,emitEvent:G,props:e}),{providerConfig:a,configStyle:p}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_54f5b9b9_lang="";function _sfc_render$w(e,r,n,i,a,o){return vue.openBlock(),vue.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:vue.normalizeStyle({...e.configStyle,fontFamily:e.pageFontFamily})},[vue.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const ProviderConfig=_export_sfc$1(_sfc_main$r,[["render",_sfc_render$w],["__scopeId","data-v-54f5b9b9"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1,showAnimation:!1,transParams:[],exceedConfig:"",targetTemplate:""},textComponentProps=transformToComponentProps(textProps),textEvents=["refreshData","click","valueChange"],goUp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",goDown="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",__default__$4=vue.defineComponent({name:"EcanText",components:{Skeleton},props:{...textComponentProps},setup(e,{expose:r}){const n=vue.ref(!1),i=usePickComponentStyle(e),a=vue.ref({}),o=vue.computed(()=>e.variableFontSize||"14px"),s=vue.computed(()=>"-"+vue.unref(o)),l=C=>{var S,R;if(e.showAnimation){const A=e.text.match(/\{(.+?)\}/g)||[];if(A!=null&&A.length){const q=(S=A[0].slice(1,-1))==null?void 0:S.trim();if(vue.unref(a)[q]===C){a.value=C;return}const H=+C[q];let G=0;if(isNaN(H))a.value=C;else{String(H).includes(".")&&(G=((R=String(H).split(".")[1])==null?void 0:R.length)||0);const U=Math.abs(H)*Math.pow(10,G),j=String(U).length;let V=[];for(let Y=0;Y<5;Y++){const J=Math.ceil(Math.random()*(U+1)-1);V.includes(J)||V.push(J)}V.sort((Y,J)=>Y-J),V=V.map(Y=>{const J=String(Y).split("").reverse(),K=[];for(let ne=0;ne<j;ne++)J&&J[ne]?K.push(J[ne]):K.push("0");return G&&K.splice(G,0,"."),(H<0?"-":"")+K.reverse().join("")}),V.push(H);let $=0;for(const Y of V)setTimeout(()=>{a.value={...vue.unref(a),[q]:Y}},$*1e3),$+=.1}}else a.value=C}else a.value=C};vue.watch(()=>[e.data,e.dataType],([C,S])=>{S==="static"&&l(C)},{immediate:!0});const{getGlobalModel:c,setGlobalModel:u,getRecordValueByKeyName:h,hanldePageRequestData:b}=vue.inject(GLOBAL_MODEL,{getGlobalModel:C=>{},setGlobalModel:(C,S)=>{},getRecordValueByKeyName:C=>{},hanldePageRequestData:(C,S)=>{}}),{setLoadedData:f}=vue.inject(LOADED_DATA,{setLoadedData:(C,S)=>{}}),{setTemplateData:y}=vue.inject("templateOperate",{setTemplateData:C=>{}}),d=vue.computed(()=>{let C="";if(e.gradientShow){const{gradientColor:S,gradientOffset:R,gradientAngle:A,color:q}=e;C+=`background: linear-gradient(${A}, ${q}, ${S||"transparent"} ${R*100}%);-webkit-background-clip: text;color: transparent;`}return C}),g=vue.computed(()=>{const C={};if(e.gradientShow){const{gradientColor:S,gradientOffset:R,gradientAngle:A,color:q}=e,H=S||"transparent";C.background=`linear-gradient(${A}, ${q}, ${H} ${R*100}%)`,C["-webkit-background-clip"]="text",C.color="transparent"}return C}),w=vue.computed(()=>{const C={};return e.linkPage&&(C.cursor="pointer",C.userSelect="none"),C}),p=vue.computed(()=>{var U;if(vue.unref(n))return"NaN";const C=vue.unref(a),S=e.increaseColor||e.color,R=e.declineColor||e.color;let A=e.text;A=A==null?void 0:A.replace(/\n|\\n/g,"<br/>"),A=A==null?void 0:A.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const q=A.match(/\{(.+?)\}/g)||[];let H="",G="";if(e.exceedConfig==="wrap"?G="show-wrap":e.exceedConfig==="ellipsis"&&(G="show-ellipsis"),q==null||q.length===0){if(A&&e.format==="percentage"&&!isNaN(+A)){const j=parseFloat(A),V=j*100,$=v(V.toFixed(2));j>=0?A=`<span class="${G}" style="color: ${$||S||"#ED6643"};font-size:${vue.unref(o)};display: inline-block;${vue.unref(d)}">
99
+ `;let o=e;if(n!=null&&n.length){for(const l of n){const c=useVariablesInText(l,{textData:r},{useNewline:!1,useSpace:!1});c&&(o=o.replace(l,c))}return`${a}{text|${o}}`}else return e},setDefaultRangeVal=(e,r)=>{const{props:n,componentList:i,getGlobalModel:a}=e,{graphicConfig:o={},startValue:s,endValue:l}=n,c=getdefCompleteData({graphicConfig:o,startValue:s,endValue:l,componentList:i,getGlobalModel:a}),{dimensions:u,dataset:h}=r,{classificationList:b=[]}=o,y=b.find(d=>d.show).label||"";for(const d of c)u.includes(d)||u.push(d);u.sort((d,g)=>dayjs(d).isBefore(dayjs(g))?-1:1);for(const d of h){const{data:g}=d;if(g!=null&&g.length){const w=[];for(const p of c)if(g.find(v=>v[y]!==p)){const v=lodashEs.cloneDeep(g[0]);for(const m in v)m===y?v[m]=p:v[m]=0;w.push(v)}d.data.push(...w),d.data.sort((p,v)=>dayjs(p[y]).isBefore(dayjs(v[y]))?-1:1)}}},getConditions=e=>{const r=[];for(const n of e)n.conditions?r.push(...getConditions(n.conditions)):(n==null?void 0:n.dataType)==="component"&&r.push(n);return r};function getdefCompleteData(e){const{startValue:r,endValue:n,componentList:i,graphicConfig:a,getGlobalModel:o}=e,s=getVariableAndField(r),l=getVariableAndField(n),c=[];if(s&&l){const u=i.find(b=>b.keyName===s.keyName),h=i.find(b=>b.keyName===l.keyName);if(u&&h){const b=o(u.id),f=o(h.id),{classificationList:y=[]}=a,d=y.find(g=>g.show);if(d){let g="YYYY-MM";switch(d.name){case"the_year":g="YYYY";break;case"the_month":g="MM";break;case"the_day":g="DD";break;case"the_date":g=(d==null?void 0:d.dateFormat)||g;break}const w=getFormatStep(g);if(g){const p=vue.unref(b[s.field]),v=vue.unref(f[l.field]);let m=dayjs(p);const x=dayjs(v);for(c.push(x.format(g));m.isBefore(x);)c.push(m.format(g)),m=m.add(1,w)}}}}return c}function getVariableAndField(e){let r=null;if(e){const n=e.match(/\{(.+?)\}/g);if(n!=null&&n.length){let i=n[0].slice(1,-1).trim();const a=i.match(/\[(.+?)\]/g);let o="";a!=null&&a.length&&(i=i.replace(a[0],""),o=a[0].slice(1,-1).trim()),r={keyName:i,field:o}}}return r}function getFormatStep(e){const r=e.split("-");let n="";if(r!=null&&r.length)switch(r[r.length-1]){case"YYYY":n="year";break;case"MM":n="month";break;case"DD":n="day";break}return n}function handleJumpLink(e,r){var b;const{pageMode:n,targetTemplate:i,getRecordValueByKeyName:a,setTemplateData:o}=r,s=e.linkPage||"",l=usePageUrl(n,s),c=e.href;let u=c||l;u=useVariablesInText(u);const h=e.target;if(h)if(h==="event")window.parent.postMessage({type:"openPage",url:c},"*");else{const f={pageId:s,componentId:i};if((b=e.transParams)!=null&&b.length){u.includes("?")?u+="&":u+="?";const y=[];for(const d of e.transParams){const g=a(String(d.fieldName));y.push(`${d.keyName}=${g}`),f[d.keyName]=g}u+=y.join("&")}h==="template"?o(f):window.open(u,"_"+h)}}function getPageUrlParams(e){var n,i;let r={};if(e){const a=(((n=window.config)==null?void 0:n.urlParams)||{})[e]||{};for(const o in a)o.includes("{")||(r[o]=a[o])}else r=((i=window.config)==null?void 0:i.requestParams)||{};return r}const runCode=(e,r)=>{const n={dayjs,...r};let i="";const a=[];for(const l in n)i+=`${l},`,a.push(n[l]);i=i.replace(/,$/,"");const o=`function (${i}){return ${e}}`;let s;try{s=Function(`"use strict";return (${o})`)()(...a)}catch{return e}return s},useVariablesInText=(e="",{textData:r,codeData:n}={},{useNewline:i=!1,useSpace:a=!1}={})=>{const s={...window.config||{},...r},l=e.match(/\{(.+?)\}/g);if(l==null||l.length===0)return e;for(let c=0;c<l.length;c++){const u=l[c];let h=u.slice(1,-1).trim();const b=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,f=h.match(b);for(let y=0;y<f.length;y++){const d=f[y],g=s[d];g!=null&&typeof g!="function"&&(h=h.replace(d,g))}(/\(.*\)/g.test(h)||/[+/\\*]/g.test(h))&&(h=runCode(h,n)),e=e.replace(u,h)}return i&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),a&&(e=e==null?void 0:e.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),e},useRequestData=(e,r=()=>{})=>{const{requestUrl:n,requestMethod:i,requestHeaders:a,requestParams:o,requestInterval:s,isOpenRequestTimer:l,openCustomRequestData:c,projectRequestUrl:u="",getModel:h,requestParamsMode:b,customRequestParams:f,dataSetParam:y,requestType:d}=e,{pageMode:g}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:w}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:p,touchEventId:v}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:T=>{}})||{},x=h||m,E=useVariablesInText(n),k=async(T={})=>{var P;if(!E||!i||!a)return;let B={};for(const I of o){const{key:C,value:S}=I;if((S==null?void 0:S.id)==="PARENT"&&(S!=null&&S.prop)){const A=(((P=window.config)==null?void 0:P.record)||{})[S.prop];if(A){const q=A[S.propKey||"value"];q&&(["date","range"].some(G=>lowerCaseIncludes(A==null?void 0:A.type,G))?B[C]=vue.unref(q).format(A.format||"YYYY-MM-DD"):B[C]=vue.unref(q))}continue}if(typeof S=="object"&&S!=null&&S.id){let R={};const{id:A,prop:q,propKey:H,operate:G}=S;A==="THIS"?R=x(vue.unref(v))||{}:R=x(A)||{};const U=vue.unref(R[q]);let j=null;if(["date","range"].some($=>lowerCaseIncludes(R==null?void 0:R.type,$))){const{value:$,type:Y,mode:J}=G||{};if($&&Y&&J)switch(Y){case"add":j=vue.unref(U).add($,J);break;case"minus":j=vue.unref(U).subtract($,J);break}j==null&&(j=vue.unref(U)),j=(j==null?void 0:j.format((H==null?void 0:H.trim())||R.format))||""}else Object.prototype.toString.call(U)==="[object Object]"?H?j=U[H]:j=q?U[q]:U:lowerCaseIncludes(R==null?void 0:R.type,"select")&&vue.unref(U)&&q&&Array.isArray(vue.unref(U))?j=vue.unref(U).map($=>Object.prototype.hasOwnProperty.call($,q)?$[q]:$):j=U;B[C]=j}else typeof S=="object"&&S.id===null&&d===1?B[C]=S.propKey:typeof S=="string"&&(B[C]=useVariablesInText(S))}if(d===1){if(y.length<1)return;const I=Object.entries(B);y[1].value=y[1].value.map((C,S)=>({...C,paramKey:I[S][0],defaultValue:I[S][1]||"控件参数还未获取"})),B={id:y[0].value,param:y[1].value,dataType:y[2].value}}if(b==="2"&&f!=="{}"){const I=JSON.parse(f);M(I),I&&(B=I)}function M(I){const C={...B,...getPageUrlParams(w)};if(Array.isArray(I))I.forEach((S,R)=>{if(typeof S=="string"){const A=S.match(/\${(.+?)\}/g);if(A!=null&&A.length){const q=A[0].slice(2,-1);q&&C[q]?I[R]=C[q]:I[R]=""}}else M(S)});else if(Object.prototype.toString.call(I)==="[object Object]")for(const S in I)if(typeof I[S]=="string"){const R=I[S].match(/\${(.+?)\}/g);if(R!=null&&R.length){const A=R[0].slice(2,-1);A&&C[A]?I[S]=C[A]:I[S]=""}}else M(I[S])}B={...getPageUrlParams(w),...T,...B};let F="";const O=Object.keys(B),D=O.length-1,N=O.length;O.forEach((I,C)=>{let S=B[I];Object.prototype.toString.call(S)==="[object Object]"&&(S=JSON.stringify(S)),C===0?N!==1?F+=`?${I}=${S}&`:F+=`?${I}=${S}`:C===D?F+=`${I}=${S}`:F+=`${I}=${S}&`});function L(I){var C;if(d===1)return{Authentication:(C=window==null?void 0:window.config)==null?void 0:C.indicatorToken};if(typeof I=="string"){const S=JSON.parse(I),R=getPageUrlParams(w);if(Object.prototype.toString.call(S)==="[object Object]"){for(const A in S)if(typeof S[A]=="string"){const q=S[A].match(/\${(.+?)\}/g);if(q!=null&&q.length){const H=q[0].slice(2,-1);H&&R[H]?S[A]=R[H]:S[A]=""}}}return S}else return I}try{const I=["get","head"].includes(i),C={};let S=I?E+F:E;B.dataSqlId&&!S.includes("dataSqlId")&&(S+=`${S.includes("?")?"&":"?"}dataSqlId=${B.dataSqlId}`),Object.prototype.hasOwnProperty.call(B,"signal")&&(C.signal=B.signal);const R=await request({baseURL:vue.unref(p)||u||"",url:S,method:i,headers:a?L(a):{},data:I?{}:B,...C});return r(R),R}catch(I){console.error(I)}},_=vue.unref(g)!=="design"&&l&&(c||c===void 0)&&setInterval(k,s*1e3);return vue.onUnmounted(()=>{clearInterval(_)}),k},useTransformChartDataByAttrKey=(e=[],r,n=!1)=>{let{name:i="name",types:a=[]}=r||{};i=(i==null?void 0:i.trim())||i;const o=new Set,s=new Map,l=e.length,c=a.length;if(l===1&&!n){const b=[];for(let y=0;y<c;y++){const d=a[y],{label:g,value:w}=d,p={...e[0],value:e[0][w]};o.add(g),b.push(p)}const f=e[0][i]||"";s.set(f,b)}else for(let b=0;b<l;b++){const f=e[b],y=f[i];o.add(y);for(let d=0;d<c;d++){const g=a[d],{label:w,value:p}=g,v={...f,value:f[p]||0};if(s.has(w)){const m=s.get(w);m.push(v),s.set(w,m)}else s.set(w,[v])}}const u=Array.from(o),h=[];for(const[b,f]of s)h.push({name:b,data:f});return{dimensions:u,dataset:h}},useImagePath=(e,r=!1)=>{var i;if(!e)return e;let n="";return e!=null&&e.includes("://")?n=e:n=((i=window==null?void 0:window.config)==null?void 0:i.uploadPath)+e,r&&(n=`url(${n})`),n},usePageUrl=(e,r)=>{const n=`${BASE_URL}/preview?pageId=${r}`,i=`${BASE_URL}/${r}`;return e==="preview"?n:i},useValueFormatter=(e,r)=>{var a;if(e==null)return r;const n=e.match(/\{.*\}/g);if(n==null||n.length===0)return r;const i=n.length;for(let o=0;o<i;o++){const s=n[o];if(s==null||s==="")break;let l=(a=s.slice(1,-1))==null?void 0:a.trim();l=l==null?void 0:l.replace(/value/g,r);try{let c=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(c=runCode(l)),e=e.replace(s,c)}catch{e=e.replace(s,l)}}return e},useIndicatorData=(e={},r=()=>{})=>{var k;const{pageMode:n}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:i}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:a}=vue.inject(LOADED_DATA,{setLoadedData:(_,T)=>{}}),{getGlobalModel:o}=vue.inject(GLOBAL_MODEL,{getGlobalModel:_=>{}}),{pageId:s}=vue.inject("templateOperate",{pageId:""})||{};e.dataType==="indicator"&&i();const l=_=>{const{around:T,unit:B,id:M}=_;let F="";const{pageMode:O="",componentList:D=[]}=(e==null?void 0:e.graphicConfig)||{};let N=null,L=null;if(O==="design"){const P=D==null?void 0:D.find(H=>H.id===M);if(!P)return[];const{interval:I,intervalUnit:C,startTime:S,endTime:R,operate:A,useCurrentTime:q}=P||{};if(q&&(N=dayjs().subtract(I,C),L=dayjs()),S&&(N=dayjs(S)),R&&(L=dayjs(R)),A){const{type:H,value:G,mode:U}=A;switch(H){case"add":N=N&&N.add(G,U),L=L&&L.add(G,U);break;case"minus":N=N&&N.subtract(G,U),L=L&&L.subtract(G,U)}}}else{const P=o(M)||{};vue.unref(P.startTime)&&(N=dayjs(vue.unref(P.startTime))),vue.unref(P.endTime)&&(L=dayjs(vue.unref(P.endTime)))}if(N&&L){const P=L.diff(N,B.toLowerCase());F=`${T==="before"?"-":""}${P+1}`}return F?[F]:[]},c=(_,T)=>Object.prototype.hasOwnProperty.call(_,T),u=(_,T)=>{if(T)c(_,"indexCode")&&(_.hrpIndexCode=_.indexCode,delete _.indexCode),c(_,"indexCodeNum")&&(_.hrpIndexCodeNum=_.indexCodeNum,delete _.indexCodeNum),c(_,"dataType")&&delete _.dataType;else{const{calcWays:B=[],dateCalcTypes:M=[],activeKey:F,componentId:O=""}=_;if(F===5&&(B!=null&&B.length)&&(M!=null&&M.length)&&O){const D=B[0].split("-");(D==null?void 0:D.length)>1&&D[0]==="rangeValue"&&(_.calcWays=l({around:D[1],unit:M[0],id:O})),delete _.radioValue}if(c(_,"dataType")){if(_.fieldType==="DATE"&&(_.label=_.fieldName),_.dataType==="component")if(_.fieldValue==="PARENT"){let D=_.modelKey;D&&_.prop&&(D+=`-${_.prop}`),_.fieldValue="${"+D+"}"}else _.fieldValue="${"+_.fieldValue+"}";delete _.dataType}c(_,"activeKey")&&delete _.activeKey,c(_,"radioValue")&&delete _.radioValue,c(_,"indexCode")&&(_.hrpIndexCode=_.indexCode,delete _.indexCode),c(_,"indexCodeNum")&&(_.hrpIndexCodeNum=_.indexCodeNum,delete _.indexCodeNum),_.dataType!=="component"&&_.useCurrentTime&&(_.fieldValue=dayjs().format(_.dateFormat)),c(_,"modelKey")&&delete _.modelKey,c(_,"prop")&&delete _.prop,delete _.useCurrentTime}},h=(_,T)=>{const B=[];return _!=null&&_.length&&lodashEs.cloneDeep(_).forEach(M=>{if(M.join&&M.conditions){const F=!M.conditions.some(O=>O.join&&O.conditions);M.conditions.forEach((O,D)=>{u(O,T);const N={};if(D<M.conditions.length-1&&(N.join=M.join),F)B.push({...N,...O});else if(O.join&&O.conditions){const L=T?"sqlConditions":"conditions";B.push({[L]:h([O],T),...N})}else B.push({...N,...O})})}else u(M,T),B.push(M)}),B},b=(_={},T)=>{if(_!=null&&_.sortCpnts&&T){const V=m(_);V&&(T.sort=V)}const{label:B,name:M,location:F,show:O,indexCode:D,indexCodeNum:N,calcType:L="COLUMN",builtInFormula:P,builtInValueSource:I,builtInCalcWay:C,formula:S,conditions:R,aggregate:A,distinct:q,dimByCount:H,dataTo:G}=_;let U;if(R&&(U=h(R)),L==="COMPONENT"){const V={};return p(V,I),{label:B.trim(),columnName:M,show:O,calcType:L,componentAlias:C,componentValue:V.fieldValue||null}}const j={label:B.trim(),columnName:M,location:F,show:O,calcType:G==="1"?"VIEW":L,hrpIndexCode:D,hrpIndexCodeNum:N,aggregate:A,builtInFormula:P,builtInValueSource:I,formula:S,conditions:U};if(P==="DATE_OFFSET"){const V=C.split("-");if((V==null?void 0:V.length)===3){let $=V[0];return V[2]==="before"&&V[0]!=="0"&&($=`-${V[0]}`),{...j,calcWays:[$],dateCalcTypes:[V[1]]}}}else return M==="the_count"&&(j.calcType="AGGREGATE",j.distinct=!!q,j.typeGuid=H),{...j,builtInCalcWay:C}},f=_=>{if(!_)return[];const T=lodashEs.cloneDeep((_==null?void 0:_.controlList)||[]).filter(A=>A.conditionKey!=="parentCode"),{classificationList:B=[],rowHeaderList:M=[],dimensionList:F=[],seriesList:O=[],leftAxisList:D=[],rightAxisList:N=[],queryColumnList:L=[],indicators:P=[]}=_;g(T);const I=[...B,...M,...F,...O,...D,...N,...L,...P],C=[];for(const A of I){const q=getConditions((A==null?void 0:A.conditions)||[]);if(q!=null&&q.length){const H=q.filter(G=>(G==null?void 0:G.dataType)==="component").map(G=>{const U={};return G!=null&&G.dateFormat&&(U.format=G.dateFormat),G.fieldValue==="PARENT"&&(U.id="PARENT",U.keyName=G.modelKey,U.modelKey=G.modelKey,U.prop=G.prop),{conditionKey:G.fieldName,conditionLabel:G.fieldName,conditionName:G.fieldName,conditionValueType:G.fieldType,id:G.componentId,keyName:G.fieldValue,rule:G.rule,notGlobal:!0,indexCode:G.indexCode,typeGuid:G.typeGuid,indexCodeNum:G.indexCodeNum,...U}});if(H!=null&&H.length)for(const G of H)C.find(U=>U.keyName===G.keyName)||C.push(G)}}const S=C.length,R=T;for(let A=0;A<S;A++){const q=C[A];if((q==null?void 0:q.conditionKey)==="parentCode")continue;const{id:H,keyName:G,prop:U,format:j,modelKey:V,dataType:$="component",customValue:Y}=q,J=y(q);p(J,H,{prop:U,dateFormat:j,modelKey:V,keyName:G}),$===""&&(J.fieldValue=Y||""),R.push(J)}for(let A=R.length-1;A>=0;A--){const q=R[A];q.globalCondition||getConditions(R).find(G=>G.alias===q.alias&&G.globalCondition)&&R.splice(A,1)}return R};function y(_){const{id:T,keyName:B,conditionLabel:M,conditionKey:F,conditionValueType:O,prop:D,rule:N="NONE",notGlobal:L=!1,indexCode:P,typeGuid:I,indexCodeNum:C,dataType:S="component"}=_;let R=B||T;R&&D&&(R+=`-${D}`);let A=N;return A==="NONE"&&(["startTime","endTime"].includes(D)?A=D==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":B!=null&&B.includes("startTime")?A=D==="GREATER_EQUAL":B!=null&&B.includes("endTime")?A=D==="LESS_EQUAL":A="EQUAL"),T==="PARENT"&&(R=_.modelKey,R&&D&&(R+=`-${D}`),A=N),{rule:A,label:M,fieldName:F,fieldValue:"",valueType:O,alias:R,globalCondition:!L,indexCode:P,typeGuid:I,indexCodeNum:C,dataType:S}}const d=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"];function g(_){if(_!=null&&_.length)for(const T of _)if(T!=null&&T.conditions)g(T.conditions);else{const{id:B,keyName:M,prop:F,modelKey:O,format:D,dataType:N="component",customValue:L}=T,P=y(T);p(P,B,{prop:F,dateFormat:D,modelKey:O,keyName:M}),N===""&&(P.fieldValue=L||"");for(const I in P)T[I]=P[I];for(const I of d)delete T[I]}}function w(_){const T=[];if(_!=null&&_.length){for(const B of _)if(B.variableName){const M={variateName:B.variableName,globalCondition:!1,valueType:B.variableType,alias:B.keyName||""};p(M,B.id,{dateFormat:B.format,prop:B.dateTypeValue,keyName:B.keyName,operateType:B.operateType,operateMode:B.operateMode,operateValue:B.operateValue}),B.dataType===""&&(M.fieldValue=B.variableValue),B.format&&(M.dateFormat=B.format),B.label&&(M.label=B.label),T.push(M)}}return T}function p(_,T,B){const{prop:M="",dateFormat:F="",modelKey:O="",keyName:D="",operateValue:N,operateMode:L,operateType:P}=B||{},I=O||D;if(T==="PARENT"&&I&&M){const U=window.config.record;if(U&&U[I]){const j=vue.unref(U[I][M]);dayjs.isDayjs(j)?_.fieldValue=j.format(F||"YYYY-MM-DD"):_.fieldValue=j}return}const C=o(T)||{},{value:S,format:R="YYYY-MM-DD",type:A="",useCurrentTime:q,RECORD:H}=C||{},G=F||R;if(lowerCaseIncludes(C.type,"date")){let U;if(q?S?U=vue.unref(S):U=dayjs():U=vue.unref(S),N&&L&&P)switch(P){case"add":U=U.add(N,L);break;case"minus":U=U.subtract(N,L);break}_.fieldValue=U==null?void 0:U.format(G),_.dateFormat=G}else if(A==="ecanRangePicker"){let U=M;if(!M){const V=D&&D.split("-");V!=null&&V.length&&(U=V[V.length-1])}if(!U)return;let j=null;if(vue.unref(C[U])&&(j=dayjs(vue.unref(C[U]))),N&&L&&P){if(N==="rangeValue"){if(C.startTime&&C.endTime){const V=vue.unref(C.endTime).diff(vue.unref(C.startTime),L)+1;switch(P){case"add":j=j&&j.add(V,L);break;case"minus":j=j&&j.subtract(V,L)}}}else if(!isNaN(+N))switch(P){case"add":j=j&&j.add(N,L);break;case"minus":j=j&&j.subtract(N,L)}}if(j&&(_.fieldValue=j==null?void 0:j.format(G)),U==="rangeValue"&&C.startTime&&C.endTime){const V=getFormatStep(G);V&&(_.fieldValue=vue.unref(C.endTime).diff(vue.unref(C.startTime),V)+1)}_.dateFormat=G}else lowerCaseIncludes(A,MODEL_KEY_LIST)?O&&H?_.fieldValue=H[O]:!O&&H?_.fieldValue=H.value:_.fieldValue=vue.unref(S):_.fieldValue=vue.unref(S)}const v=_=>{var T;if(_){const B=Array.isArray(_)?lodashEs.cloneDeep(_):[lodashEs.cloneDeep(_)];let M="",F=[];const O=[],D=[],N=[];for(const L of B){if(L.defaultCode&&(L.label=L.columnName,delete L.defaultCode),L.type==="CUSTOM"&&(F=L.customOrderColumns),M=L.type,O.push(L.label),(T=L.columnName)!=null&&T.includes("_ecanrepeat_")){const P=L.columnName.split("_ecanrepeat_");D.push(P[0])}else D.push(L.columnName);N.push(L.order)}return M!=="CUSTOM"&&(O==null?void 0:O.length)>1&&(M="COMBINATION"),M==="CUSTOM"?{label:O.join(","),columnName:D.join(","),type:M,customOrderColumns:F}:{label:O.join(","),columnName:D.join(","),order:N.join(","),type:M}}else return _},m=_=>{const{sortCpnts:T=[]}=_;let B,M="";for(const F of T){const O=o(F)||{},{type:D,RECORD:N}=O;if(lowerCaseIncludes(D,"image")&&lowerCaseIncludes(N==null?void 0:N.value,["asc","desc"])){M=N.value.toUpperCase();break}}return M&&(B={label:_.label,columnName:_.name,order:M,type:"NORMAL"}),B},x=async(_={})=>{var de,ge,be,Ce,Te,Se;a(e.id,!1);const{graphicConfig:T,type:B,isGroupTable:M=!1}=e;let{source:F,dataViewId:O,plugin:D="1",layer:N,chartType:L,classificationList:P=[],rowHeaderList:I=[],dimensionList:C=[],seriesList:S=[],leftAxisList:R=[],rightAxisList:A=[],queryColumnList:q=[],indicators:H=[],controlList:G=[],formFields:U={},variableList:j=[],variableConditions:V=[],idxLibMode:$,preview:Y=!1,edvDataSetId:J}=T||{},K=[];if((T==null?void 0:T.pageMode)==="design"?(K=(T.sqlConditions??[]).map(fe=>{const pe={};if(!c(fe,"globalCondition")&&!fe.join&&(pe.globalCondition=!0),!fe.join){const ve=fe.rule||"EQUAL";pe.rule=ve==="NONE"?"EQUAL":ve}return{...fe,...pe}}),V!=null&&V.length&&(K=K.concat(V))):(K=f(T),j!=null&&j.length&&(K=K.concat(w(j)))),K!=null&&K.length){const fe=K.filter(ve=>ve.globalCondition),pe=K.filter(ve=>!ve.globalCondition);(fe==null?void 0:fe.length)>1&&(K=[{join:"&&",conditions:fe},...pe])}K!=null&&K.length&&(K=h(K,"1")),N==null&&(lowerCaseIncludes(B,["table"])||lowerCaseIncludes(B,["list","circulate"])&&(P==null?void 0:P.length)>1?N="1":lowerCaseIncludes(B,["select","checkbox","radio"])?N="3":N="2");let ne;const X=[];let W="";if(Array.isArray(P)&&P.length>0&&(!["ecanList","ecanCirculate"].includes(B)||(P==null?void 0:P.length)===1)){const fe=P.length;for(let pe=0;pe<fe;pe++){const ve=P[pe]||{},{label:we="",name:Ae="",show:Pe=!1,sort:Oe,customGroup:Le,conditions:Re,dateFormat:Me,typeGuid:Ve="",truncations:Be=[]}=ve;if(Pe||fe===1){W=Ve,ne={label:we.trim(),columnName:Ae,show:Pe,sort:m(ve)||v(Oe)||Oe,customGroup:Le,conditions:h(Re),typeGuid:Ve},Me&&(ne.dateFormat=Me),Ae==="the_date"&&!ne.dateFormat&&(ne.dateFormat="YYYY-MM");const Ie={};if(Array.isArray(Be)&&Be.length>0){const Z=Be.length;for(let Q=0;Q<Z;Q++){const re=Be[Q]||{},{rule:le="",num:ue=0,name:ce=""}=re;le&&ue&&(Ie.num=ue,Ie.rule=le,ce&&(Ie.otherGroupName=ce))}}if((de=Object.keys(Ie))!=null&&de.length&&(ne.truncation=Ie),lowerCaseIncludes(B,"scatter"))X.push(ne);else break}}}let ee;if(Array.isArray(S)&&S.length>0){const fe=S.length;for(let pe=0;pe<fe;pe++){const ve=S[pe]||{},{label:we="",name:Ae="",show:Pe=!1,sort:Oe,customGroup:Le,conditions:Re,typeGuid:Me}=ve;if(Pe||fe===1){ee={label:we.trim(),columnName:Ae,show:Pe,sort:v(Oe),customGroup:Le,conditions:h(Re),typeGuid:Me};break}}}const te=[];R==null||R.forEach(fe=>{fe.location="LEFT",te.push(b(fe,ne))}),A==null||A.forEach(fe=>{fe.location="RIGHT",te.push(b(fe,ne))}),H==null||H.forEach(fe=>{fe.location="LEFT",te.push(b(fe,ne))});const ae=[];["ecanList","ecanCirculate"].includes(B)&&(P==null?void 0:P.length)>1&&(q=P),q==null||q.forEach(fe=>{const{label:pe,name:ve,location:we,show:Ae,indexCode:Pe,sort:Oe,typeGuid:Le,indexCodeNum:Re,dateFormat:Me,conditions:Ve}=fe;let Be=v(Oe);if(_.sort){const{field:Z,order:Q}=_.sort;let re=te.find(le=>le.label===Z);!re&&pe===Z&&(re=fe),re&&(Be={columnName:re.columnName,label:_.sort.field,order:Q.toUpperCase(),type:"NORMAL"})}const Ie={label:pe,columnName:ve,location:we,show:Ae,sort:Be,calcType:"COLUMN",hrpIndexCode:Pe,hrpIndexCodeNum:Re,conditions:h(Ve),typeGuid:Le};Me&&(Ie.dateFormat=Me),ve==="the_date"&&!Ie.dateFormat&&(Ie.dateFormat="YYYY-MM"),ae.push(Ie)});const ie=[];let se=[];if(Array.isArray(I)&&I.length>0?se=I:Array.isArray(C)&&C.length>0&&(se=C),se!=null&&se.length){const fe=se.length;for(let pe=0;pe<fe;pe++){const ve=se[pe]||{},{label:we="",name:Ae="",show:Pe=!1,sort:Oe,customGroup:Le,conditions:Re,truncations:Me,typeGuid:Ve="",dateFormat:Be}=ve;let Ie=v(Oe);if(_.sort){const{field:re,order:le}=_.sort;let ue=te.find(ce=>ce.label===re);!ue&&ve.label===re&&(ue=ve),ue&&(Ie={columnName:ue.columnName,label:_.sort.field,order:le.toUpperCase(),type:"NORMAL"})}const Z={label:we.trim(),columnName:Ae,show:Pe,sort:Ie,customGroup:Le,conditions:h(Re),typeGuid:Ve};Be&&(Z.dateFormat=Be),Ae==="the_date"&&!Z.dateFormat&&(Z.dateFormat="YYYY-MM");const Q={};if(Array.isArray(Me)&&Me.length>0){const re=Me.length;for(let le=0;le<re;le++){const ue=Me[le]||{},{rule:ce="",num:oe=0,name:me=""}=ue;ce&&oe&&(Q.num=oe,Q.rule=ce,me&&(Q.otherGroupName=me))}}(ge=Object.keys(Q))!=null&&ge.length&&(Z.truncation=Q),ie.push(Z)}}if(lowerCaseIncludes(B,["text","proportion","counter"])&&(L="zb"),M){if(ie.length===0||te.length===0)return;L="grouptable"}else{if(N==="1"&&ae.length===0)return;if(N==="2"&&te.length===0)return;if(N==="3"&&(!W||!U.labelField||!U.valueField))return;if(N==="3"&&B==="ecanDataSelect"&&te.length===0)return}C!=null&&C.length&&(N="1",L="grouptable");let he=s||((be=window==null?void 0:window.config)==null?void 0:be.pageId);if(!he){const{pathname:fe}=window==null?void 0:window.location;if(fe){const pe=fe.split("/");pe!=null&&pe.length&&(he=pe[pe.length-1])}}if(B!=="ecanScatter"&&((Ce=Object.keys(U))!=null&&Ce.length)){const fe=getConditions(G).find(ve=>ve.conditionKey==="parentCode"),pe={};if(fe){const ve=o(fe.id)||{};if(ve!=null&&ve.itemCodes)pe.parentItemCodes=ve.itemCodes;else return}B==="ecanDataSelect"&&(pe.indicatorList=te.filter(ve=>ve.show));try{const ve=await request.post(`${INDICATOR_URL}/diagram/formData`,{source:F,dataViewId:O,plugin:"4",layer:N,chartType:"normalSelect",rangeIndexTypeGuid:W,type:B==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:U.labelField,valueField:U.valueField,pageId:he,sqlConditions:K,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...pe},{headers:{Authentication:(Te=window==null?void 0:window.config)==null?void 0:Te.indicatorToken,operateContext:CONTEXT}});return _!=null&&_.isTimer&&r(ve),ve}catch(ve){console.error(ve)}finally{}}else try{let fe={};lowerCaseIncludes(B,"scatter")?fe={classifications:X}:fe={classification:ne};const pe=await request.post(`${INDICATOR_URL}/diagram`,{source:F,dataViewId:O,plugin:D,layer:N,chartType:L,...fe,series:ee,indicatorList:te,queryColumns:M?[]:ae,pageFlag:!0,pageId:he,edvDataSetId:J||"",sqlConditions:K.map(ve=>{const{fieldValue:we}=ve,Ae={};return we&&Array.isArray(we)&&(Ae.fieldValue=JSON.stringify(we)),{...ve,...Ae}}),idxLibMode:$,preview:Y,rowHeaders:ie,keyName:e.keyName},{headers:{Authentication:(Se=window==null?void 0:window.config)==null?void 0:Se.indicatorToken,operateContext:CONTEXT}});return _!=null&&_.isTimer&&r(pe),pe}catch(fe){console.error(fe)}finally{}},E=vue.unref(n)!=="design"&&((k=e==null?void 0:e.graphicConfig)==null?void 0:k.pageMode)!=="design"&&e.isOpenRequestTimer&&e.requestInterval&&setInterval(()=>{x({isTimer:!0})},e.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(E)}),x},useHrefParamsToGlobalVariables=()=>{const r=window.location.search.slice(1).split("&"),n=r.length,i={};for(let a=0;a<n;a++){const o=r[a];if(o==null||o==="")continue;const s=o.split("=");if(Array.isArray(s)){const l=s[0];l.includes("{")||(i[l]=s[1])}}window.config.requestParams={...window.config.requestParams,...i},window.config={...window.config,...i}},_sfc_main$s=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""}},setup(e){const{width:r,height:n}=vue.inject(GLOBAL_CONFIG,{width:null,height:null}),i=vue.inject("setPageHeight",x=>{}),a=vue.inject("isMobile",!1),o=vue.computed(()=>{const x={};return a||(x.width=r.value,x.height=n.value),{...x,backgroundColor:e.backgroundColor,backgroundImage:useImagePath(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=vue.ref(0),l=vue.ref(0),c=vue.ref(0),u=vue.ref(0),h=vue.ref(!1),b=vue.ref();let f;const y=()=>new Promise(x=>{vue.nextTick(()=>{r.value&&n.value?(s.value=parseFloat(r.value),l.value=parseFloat(n.value)):(s.value=b.value.clientWidth,l.value=b.value.clientHeight),(!c.value||!u.value)&&(c.value=window.screen.width,u.value=window.screen.height),x()})}),d=()=>{s.value&&l.value?(b.value.style.width=`${s.value}px`,b.value.style.height=`${l.value}px`):(b.value.style.width=`${c.value}px`,b.value.style.height=`${u.value}px`)};vue.watch([r,n],async()=>{e.pageId||(await y(),d(),w(),window.addEventListener("resize",p),v()),h.value=!0},{immediate:!0});const g=vue.ref({});vue.provide("scaleValue",g);const w=()=>{if(a){b.value.style.width="100%",b.value.style.height="auto",i("auto");return}const x=document.body.clientWidth,E=document.body.clientHeight,k=s.value||c.value,_=l.value||u.value,T=x/k;let B=E/_;(s.value!==1920||l.value!==1080)&&(B=l.value/s.value*x/_),g.value={widthScale:T,heightScale:B},b.value&&(b.value.style.transform=`scale(${T}, ${B})`),i(B)},p=lodashEs.debounce(async()=>{await y(),w()},100),v=()=>{const x=window.MutationObserver;f=new x(p),f.observe(b.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},m=()=>{f&&(f.disconnect(),f.takeRecords(),f=null)};return vue.onMounted(()=>{h.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",p),m()}),{style:o,container:b,ready:h}}}),PageConfig_vue_vue_type_style_index_0_scoped_3fe72c34_lang="",_hoisted_1$g={id:"container",ref:"container"};function _sfc_render$x(e,r,n,i,a,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$g,[e.ready||e.pageId?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"page-config",style:vue.normalizeStyle(e.style)},[vue.renderSlot(e.$slots,"default",{},void 0,!0)],4)):vue.createCommentVNode("",!0)],512)}const PageConfig=_export_sfc$1(_sfc_main$s,[["render",_sfc_render$x],["__scopeId","data-v-3fe72c34"]]),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$r=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...providerConfigComponentProps,pageId:{type:String,default:""}},setup(e,{expose:r,emit:n}){e.pageId||useHrefParamsToGlobalVariables();const i=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)),a=vue.ref(),o=()=>{a.value.setAttribute("datav-theme",e.theme)},s=vue.inject("usedComponentList",[]),l=vue.inject("componentList",[]),c=vue.computed(()=>{const W=[];for(const ee of vue.unref(s))ee.type==="ecanModal"?W.push(...ee.componentList):W.push(ee);return W});vue.watch(()=>e.theme,()=>{o()}),vue.onMounted(()=>{o()});const u=vue.computed(()=>useVariablesInText(e.contextRequestUrl)),h=vue.computed(()=>e.pageMode),b=vue.computed(()=>e.theme),f=vue.computed(()=>e.width),y=vue.computed(()=>e.height),d=vue.computed(()=>e.pageFontFamily),g=vue.computed(()=>{const W=[],ee=vue.unref(l).filter(te=>te.type==="ecanModal");for(const te of ee)te!=null&&te.requestList&&W.push(...te.requestList);return[...W,...e.requestList]}),w=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:u,pageMode:h,theme:b,touchEventId:w,width:f,height:y,fontFamily:d,requestList:g});const p=vue.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",W=>{let ee=W;i.value||(ee=parseFloat(y.value)*W+"px"),p.value.height=ee}),vue.provide("isMobile",i.value),vue.provide("getContainerMap",()=>e.containerMap),vue.provide("getCombinationMap",()=>e.combinationMap),vue.provide("templateOperate",{pageId:e.pageId,templateEmit:n,setTemplateData:W=>{var ee;if(W!=null&&W.pageId){const{componentId:te,...ae}=W;(ee=window.config)!=null&&ee.urlParams||(window.config.urlParams={}),window.config.urlParams[W.pageId]=ae,n("templateChange",W)}}});const v=vue.ref(),m=new Map;console.log("globalModel",m);const x=W=>m.get(W),E=(W,ee)=>{var te;if(v.value=ee,m.set(W,ee),!e.pageId){const ae=vue.unref(s).find(ie=>ie.id===W);ae&&((te=window.config)!=null&&te.record||(window.config.record={}),window.config.record[ae.keyName]=ee)}},k=()=>{v.value=null},_=W=>{let ee=W;if(ee){const te=W.match(/\{(.+?)\}/g);if(te!=null&&te.length){let ae=te[0].slice(1,-1).trim();const ie=ae.match(/\[(.+?)\]/g);let se="";ie!=null&&ie.length&&(ae=ae.replace(ie[0],""),se=ie[0].slice(1,-1).trim());const he=vue.unref(c).find(de=>de.keyName===ae);if(he){const de=x(he.id),{type:ge,value:be,RECORD:Ce,recordData:Te}=de||{};lowerCaseIncludes(ge,MODEL_KEY_LIST)?ee=Ce[se]:lowerCaseIncludes(ge,"select")?ee=Te[se]:lowerCaseIncludes(ge,["rangePicker","date"])?dayjs.isDayjs(vue.unref(de[se]))?ee=vue.unref(de[se]).format(de.format):ee=vue.unref(de[se]):ee=be}else ee=""}}return ee},T=new Map,B={},M=async(W,ee)=>{var he;const{requestName:te}=W,ae=await useRequestData({...W,projectRequestUrl:vue.unref(u),getModel:x})(),ie=((he=ae==null?void 0:ae.data)==null?void 0:he.data)||{},se=T.get(te);if(se!=null&&se.length&&(!ee||B[te])){for(const de of se)de(ie);ee||T.delete(te)}},F=(W,ee)=>{B[W]&&(clearInterval(B[W]),delete B[W],T.delete(W));const te=vue.unref(c).filter(ie=>!ie.openCustomRequestData&&ie.customRequestName===W),ae=T.get(W)||[];if((te==null?void 0:te.length)>ae.length&&(ae.push(ee),T.set(W,ae),(te==null?void 0:te.length)===ae.length)){const ie=vue.unref(g).find(se=>se.requestName===W);ie&&(ie!=null&&ie.isOpenRequestTimer&&(ie!=null&&ie.requestInterval)?(M(ie,!0),B[W]=setInterval(()=>{M(ie,!0)},ie.requestInterval*1e3)):M(ie))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:x,setGlobalModel:E,clearInteractiveData:k,getRecordValueByKeyName:_,hanldePageRequestData:F,interactiveData:v});const O=vue.ref({}),D=(W,ee)=>{O.value[W]=ee};vue.provide(LOADED_DATA,{loadedData:O,setLoadedData:D});const N=[],L=()=>{N.pop()},P=W=>{N.push(W)},I=new Map,C=W=>I.get(W),S=(W,ee)=>{I.set(W,ee)};vue.provide(MODAL_MODEL,{popUseModalIds:L,pushUseModalIds:P,getModalModel:C,setModalModel:S});const R=mitt(),A=new Set,q=(W,ee)=>{A.add(W),R.on(W,te=>{const{eventName:ae,params:ie}=te;return typeof ee[ae]=="function"&&ee[ae](ie)}),vue.onBeforeUnmount(()=>{H(W)})},H=W=>{A.delete(W),R.off(W)},G=(W,ee,te={})=>{if(W==="PAGE"){const ae=N.length;let ie=[];if(ae===0)ie=[...A];else{const se=N[ae-1];ie=[...C(se)]}ie.forEach(se=>{R.emit(se,{eventName:ee,params:te})})}else R.emit(W,{eventName:ee,params:te})};vue.provide(EVENT_BUS,{onEvent:q,offEvent:H,emitEvent:G});const U=vue.ref(0),j=()=>{U.value=vue.unref(U)+1};vue.provide(GLOBAL_TOKEN,{requestToken:j});const V=new Map,$=new Map,Y=({requestFn:W=()=>{},sortNum:ee=0,id:te=""})=>{if(V.has(ee)){const ae=V.get(ee);ae==null||ae.push(W)}else V.set(ee,[W]);$.set(te,W)},J=W=>new Promise((ee,te)=>{const ae=W.map(ie=>ie());Promise.all(ae).then(ie=>{ee(ie)}).catch(ie=>{te(ie)})}),K=W=>new Promise(async(ee,te)=>{if(W){if(typeof W=="string"){const ae=$.get(W);if(typeof ae=="function"){const ie=request.interceptors.response.use(se=>(ee(se),se),se=>(te(se),Promise.reject(se)));ae(),request.interceptors.response.eject(ie)}}}else{const ae=Array.from(V);ae.sort((se,he)=>he[0]-se[0]);const ie=ae.length;try{e.pageMode!=="design"&&vue.unref(U)>0;for(let se=0;se<ie;se++){const he=ae[se][1];await J(he)}}catch(se){console.error(se)}finally{V.clear(),ee(null)}}});vue.provide(REQUEST_MODEL,{setRequest:Y,touchRequest:K});const ne=()=>{R.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:ne});const X=W=>{R.on(REFRESH_PAGE,()=>W()),vue.onMounted(()=>{R.off(REFRESH_PAGE)})};return vue.watchEffect(()=>{var W;if((W=vue.unref(s))!=null&&W.length&&vue.unref(h)!=="design"){const{jumpType:ee,jumpTime:te,jumpPage:ae,jumpLink:ie}=e;if(te!=null&&te.value){let se=0;switch(te==null?void 0:te.suffix){case"hours":se=te.value*60*60*1e3;break;case"minute":se=te.value*60*1e3;break;case"seconds":se=te.value*1e3;break}setTimeout(()=>{let he="";ee==="page"&&ae?he=usePageUrl(vue.unref(h),ae):ee==="link"&&ie&&(he=ie),he=useVariablesInText(he),window.open(he,"_self")},se)}}}),vue.onBeforeUnmount(()=>{V==null||V.clear(),$==null||$.clear()}),r({touchRequest:K,getGlobalModel:x,onRefreshPage:X,emitEvent:G,props:e}),{providerConfig:a,configStyle:p}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_5e577e78_lang="";function _sfc_render$w(e,r,n,i,a,o){return vue.openBlock(),vue.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:vue.normalizeStyle({...e.configStyle,fontFamily:e.pageFontFamily})},[vue.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const ProviderConfig=_export_sfc$1(_sfc_main$r,[["render",_sfc_render$w],["__scopeId","data-v-5e577e78"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1,showAnimation:!1,transParams:[],exceedConfig:"",targetTemplate:""},textComponentProps=transformToComponentProps(textProps),textEvents=["refreshData","click","valueChange"],goUp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",goDown="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",__default__$4=vue.defineComponent({name:"EcanText",components:{Skeleton},props:{...textComponentProps},setup(e,{expose:r}){const n=vue.ref(!1),i=usePickComponentStyle(e),a=vue.ref({}),o=vue.computed(()=>e.variableFontSize||"14px"),s=vue.computed(()=>"-"+vue.unref(o)),l=C=>{var S,R;if(e.showAnimation){const A=e.text.match(/\{(.+?)\}/g)||[];if(A!=null&&A.length){const q=(S=A[0].slice(1,-1))==null?void 0:S.trim();if(vue.unref(a)[q]===C){a.value=C;return}const H=+C[q];let G=0;if(isNaN(H))a.value=C;else{String(H).includes(".")&&(G=((R=String(H).split(".")[1])==null?void 0:R.length)||0);const U=Math.abs(H)*Math.pow(10,G),j=String(U).length;let V=[];for(let Y=0;Y<5;Y++){const J=Math.ceil(Math.random()*(U+1)-1);V.includes(J)||V.push(J)}V.sort((Y,J)=>Y-J),V=V.map(Y=>{const J=String(Y).split("").reverse(),K=[];for(let ne=0;ne<j;ne++)J&&J[ne]?K.push(J[ne]):K.push("0");return G&&K.splice(G,0,"."),(H<0?"-":"")+K.reverse().join("")}),V.push(H);let $=0;for(const Y of V)setTimeout(()=>{a.value={...vue.unref(a),[q]:Y}},$*1e3),$+=.1}}else a.value=C}else a.value=C};vue.watch(()=>[e.data,e.dataType],([C,S])=>{S==="static"&&l(C)},{immediate:!0});const{getGlobalModel:c,setGlobalModel:u,getRecordValueByKeyName:h,hanldePageRequestData:b}=vue.inject(GLOBAL_MODEL,{getGlobalModel:C=>{},setGlobalModel:(C,S)=>{},getRecordValueByKeyName:C=>{},hanldePageRequestData:(C,S)=>{}}),{setLoadedData:f}=vue.inject(LOADED_DATA,{setLoadedData:(C,S)=>{}}),{setTemplateData:y}=vue.inject("templateOperate",{setTemplateData:C=>{}}),d=vue.computed(()=>{let C="";if(e.gradientShow){const{gradientColor:S,gradientOffset:R,gradientAngle:A,color:q}=e;C+=`background: linear-gradient(${A}, ${q}, ${S||"transparent"} ${R*100}%);-webkit-background-clip: text;color: transparent;`}return C}),g=vue.computed(()=>{const C={};if(e.gradientShow){const{gradientColor:S,gradientOffset:R,gradientAngle:A,color:q}=e,H=S||"transparent";C.background=`linear-gradient(${A}, ${q}, ${H} ${R*100}%)`,C["-webkit-background-clip"]="text",C.color="transparent"}return C}),w=vue.computed(()=>{const C={};return e.linkPage&&(C.cursor="pointer",C.userSelect="none"),C}),p=vue.computed(()=>{var U;if(vue.unref(n))return"NaN";const C=vue.unref(a),S=e.increaseColor||e.color,R=e.declineColor||e.color;let A=e.text;A=A==null?void 0:A.replace(/\n|\\n/g,"<br/>"),A=A==null?void 0:A.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const q=A.match(/\{(.+?)\}/g)||[];let H="",G="";if(e.exceedConfig==="wrap"?G="show-wrap":e.exceedConfig==="ellipsis"&&(G="show-ellipsis"),q==null||q.length===0){if(A&&e.format==="percentage"&&!isNaN(+A)){const j=parseFloat(A),V=j*100,$=v(V.toFixed(2));j>=0?A=`<span class="${G}" style="color: ${$||S||"#ED6643"};font-size:${vue.unref(o)};display: inline-block;${vue.unref(d)}">
100
100
  <div class="percentage-img-box">
101
101
  <img style="width: ${vue.unref(o)};filter: ${`drop-shadow(${$||S||"#ED6643"} ${vue.unref(o)} 0px)`};" src="${goUp}"/>
102
102
  </div>
@@ -116,7 +116,7 @@ version: 2.9.0
116
116
  <img style="width: ${vue.unref(o)};filter: ${`drop-shadow(${X||R||"#6ACB97"} ${vue.unref(o)} 0px)`};" src="${goDown}"/>
117
117
  </div>
118
118
  <span style="color: ${X||e.color};${vue.unref(d)}">${e.minusSignShow?"-":""}${Math.abs(+K).toFixed(2)}%</span>
119
- </span>`)}else e.format==="percent"?(K=+K,isNaN(K)||(K=(K*100).toFixed(2),A=A.replace(V,`<span class="${G}" style="color:${v(K)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(d)}">${K}%</span>`))):e.format==="money"?(K=+K,isNaN(K)||(K=formatMoney(K),A=A.replace(V,`<span class="${G}" style="color:${v(K)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(d)}">${K}</span>`))):ne==="thousands"?(K=+K,isNaN(K)||(K=formatThousands(K),A=A.replace(V,`<span class="${G}" style="color:${v(K)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(d)}">${K}</span>`))):A=A.replace(V,`<span class="${G}" style="color:${v(K)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(d)}">${K}</span>`)}}if(H||(H=`<span class="${G}" style="color: ${v(A)};${vue.unref(d)}">${A}</span>`),e.unitShow&&e.unitText){const{unitTop:j,unitLeft:V}=e;let $="position:relative;";j&&($+=`top:${j};`),V&&($+=`margin-left:${V};`),H+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${$};${vue.unref(d)}'>${e.unitText}</span>`}return e.exceedConfig&&(H=`<span class="${G}" style="display: inline-block;color: ${v(H)};">${H}</span>`),H.includes("span")||(H=`<span class="${G}" style="color: ${v(H)};">${H}</span>`),H});function v(C){let S="",R=!1;const{targetValue:A,targetShow:q,notExpectColor:H}=e;if(q){switch(e.targetRule){case"equal":C!==A&&(R=!0);break;case"greater":C<=A&&(R=!0);break;case"greater_equal":C<A&&(R=!0);break;case"less":C>=A&&(R=!0);break;case"less_equal":C>A&&(R=!0);break}R&&(S=H)}return S}const{pageMode:m}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",requestList:[]}),{pageId:x}=vue.inject("templateOperate",{pageId:""})||{},E=useRequestData(e,C=>{var S;l(((S=C==null?void 0:C.data)==null?void 0:S.data)||{})}),k=vue.ref(!1),_=async()=>{var C,S,R;try{k.value=!0;const A=await E();(C=A==null?void 0:A.data)!=null&&C.data.rowsToData?l(((S=A==null?void 0:A.data)==null?void 0:S.data.rowsToData)||{}):l(((R=A==null?void 0:A.data)==null?void 0:R.data)||{})}catch(A){console.error(A)}finally{k.value=!1}},T=C=>{const S=e.id,R=c(S);u(S,{...R,value:C||"",RECORD:C||""})},B=()=>{T("")},M=C=>{var R,A;const{data:S}=(C==null?void 0:C.data)||{};if(S){n.value=!1;const{columns:q=[],rows:H=[]}=((R=C==null?void 0:C.data)==null?void 0:R.data)??{},{graphicConfig:G}=e;let U={};if(q.length>0)if((A=G==null?void 0:G.dimensionList)!=null&&A.length){const j=q[0];j&&(H!=null&&H.length)&&(U={value:H[0][j]})}else{const j=q.find(V=>!!V);j&&(U={value:isNaN(H[j])?0:H[j]||0})}T(U==null?void 0:U.value),l(U)}else n.value=!0,T("NaN"),l({value:"NaN"})},F=useIndicatorData(e,M),O=async()=>{try{k.value=!0;const C=await F();M(C)}catch(C){console.error(C)}finally{k.value=!1,f(e.id,!0)}},D=()=>{switch(e.dataType){case"indicator":O();break;case"request":{const{openCustomRequestData:C,customRequestName:S,customRequestField:R}=e;C||C===void 0?_():b(S,A=>{A&&(A.rowsToData?l({[R]:A.rowsToData[R]}):l({[R]:A[R]}))});break}}},{setRequest:N}=vue.inject(REQUEST_MODEL,{setRequest:({id:C,sortNum:S,requestFn:R})=>{}});typeof N=="function"&&N({id:e.id,requestFn:D,sortNum:e.requestSort}),useOnEvent(e,{refreshData:D,resetRecord:B}),r({refreshData:D});const L=useEmitEvent(e),P=L("click",()=>{const C=document.getElementsByClassName(`ecan-text_${e.id}`);C!=null&&C.length&&T(C[0].innerText),setTimeout(()=>{T("")},0),!(!e.linkPage&&!e.href)&&handleJumpLink(e,{pageMode:vue.unref(m),targetTemplate:e.targetTemplate,getRecordValueByKeyName:h,setTemplateData:y})}),I=L("valueChange",()=>{});return vue.watch(()=>p.value,(C,S)=>{C!==S&&I()}),{style:i,myText:p,loading:k,click:P,textIndent:s,vFontSize:o,gradientStyle:g,cursorStyle:w}}}),__injectCSSVars__$4=()=>{vue.useCssVars(e=>({fb303808:e.vFontSize,"72b4a683":e.textIndent,"3f89e74a":e.percentageSide}))},__setup__$4=__default__$4.setup;__default__$4.setup=__setup__$4?(e,r)=>(__injectCSSVars__$4(),__setup__$4(e,r)):__injectCSSVars__$4;const Text_vue_vue_type_style_index_0_scoped_537c9b56_lang="",Text_vue_vue_type_style_index_1_lang="",_hoisted_1$f=["innerHTML"];function _sfc_render$v(e,r,n,i,a,o){const s=vue.resolveComponent("skeleton");return e.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["ecan-text","ecan-text_"+e.id]),style:vue.normalizeStyle({...e.style,...e.gradientStyle,...e.cursorStyle}),innerHTML:e.myText,onClick:r[0]||(r[0]=(...l)=>e.click&&e.click(...l))},null,14,_hoisted_1$f))}const Text=_export_sfc$1(__default__$4,[["render",_sfc_render$v],["__scopeId","data-v-537c9b56"]]),EcanText=withInstall$1(Text),_sfc_main$q=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$u(e,r,n,i,a,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$e,vue.toDisplayString(e.text),1)}const ScrollText=_export_sfc$1(_sfc_main$q,[["render",_sfc_render$u],["__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$p=vue.defineComponent({name:"EcanTimeDisplay",props:{...timeDisplayComponentProps},setup(e){const{pageMode:r}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),n=usePickComponentStyle(e),i=()=>{const{format:h,operate:b}=e;let f=dayjs();if(b){const{type:y,value:d,mode:g}=b;switch(y){case"add":f=f.add(d,g);break;case"minus":f=f.subtract(d,g)}}return f.format(h)},a=vue.ref();vue.watch(()=>[e.operate,e.format],()=>{a.value=i()},{immediate:!0,deep:!0}),vue.watch(()=>e.updateInterval,()=>{u()},{deep:!0});let o=null;const s=()=>{clearInterval(o),o=null},c=useEmitEvent(e)("timeChange",()=>{}),u=()=>{o&&s();let h=1e3;const{value:b,mode:f}=e.updateInterval||{};b&&(h=h*b);const y={second:1,minute:60,hour:60*60,day:24*60*60};f&&(h=h*y[f]),o=setInterval(()=>{a.value=i(),vue.unref(r)!=="design"&&c()},h)};return useOnEvent(e,{timeChange:c}),vue.onMounted(()=>{u()}),vue.onUnmounted(()=>{s()}),{style:n,time:a}}}),TimeDisplay_vue_vue_type_style_index_0_scoped_b9216314_lang="";function _sfc_render$t(e,r,n,i,a,o){return vue.openBlock(),vue.createElementBlock("div",{class:"time-display",style:vue.normalizeStyle(e.style)},vue.toDisplayString(e.time),5)}const TimeDisplay=_export_sfc$1(_sfc_main$p,[["render",_sfc_render$t],["__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$o=vue.defineComponent({name:"EcanList",components:{Skeleton,ATooltip:antDesignVue.Tooltip,MarqueeScroll},props:{...listComponentProps},setup(e,{expose:r}){const n=vue.ref(),i=usePickComponentStyle(e,["backgroundColor"]),a=(I,C)=>{const{format:S,customFormatter:R}=C;if(S==null||S==="")return I;const A={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,custom:formatCustom};return A[S]?S==="custom"?A[S](I,R)||"":A[S](I)||"":""},o=(I,C)=>{const S=parseFloat(I+"");if(C!=="contrast")return"";switch(!0){case S>=0:return"goUp";case S<0:return"goDown"}},s=useRequestData(e,I=>{var C;n.value=((C=I==null?void 0:I.data)==null?void 0:C.data.rows)||[]}),l=vue.ref(!1),c=async()=>{var I;if(e.dataType==="request")try{l.value=!0;const C=await s();n.value=((I=C==null?void 0:C.data)==null?void 0:I.data.rows)||[]}catch(C){console.error(C)}finally{l.value=!1}};vue.watch(()=>e.data,()=>{(e.dataType==="static"||!vue.unref(n))&&(n.value=e.data)},{immediate:!0,deep:!0});const u=vue.computed(()=>({key:"SEQ",width:e.seqWidth,title:e.seqName,align:"center",fontSize:e.seqFontSize})),h=vue.computed(()=>{const{columns:I,isUseSeq:C}=e;return C?[vue.unref(u),...I]:I}),b=I=>{var R;const{columns:C=[],rows:S=[]}=((R=I==null?void 0:I.data)==null?void 0:R.data)??{};e.isUseSeq&&C.unshift(e.seqName),h.value.forEach((A,q)=>{(!e.isUseSeq||q!==0)&&(A.title=C[q],A.key=C[q])}),n.value=S},f=useIndicatorData(e,b),y=async()=>{try{l.value=!0;const I=await f();b(I)}catch(I){console.error(I)}finally{l.value=!1}},d=()=>{switch(e.dataType){case"indicator":y();break;case"request":c();break}},g=useEmitEvent(e),{getGlobalModel:w,setGlobalModel:p}=vue.inject(GLOBAL_MODEL,{getGlobalModel:I=>{},setGlobalModel:(I,C)=>{}}),v=I=>{g("click",()=>{const C=w(e.id);p(e.id,{...C,type:e.type,RECORD:I})})()};useOnEvent(e,{refreshData:d,resetRecord:()=>{const I=e.id,C=w(I);p(I,{...C,type:e.type,RECORD:""})}});const{setRequest:x}=vue.inject(REQUEST_MODEL,{setRequest:({id:I,sortNum:C,requestFn:S})=>{}});typeof x=="function"&&x({id:e.id,requestFn:d,sortNum:e.requestSort}),r({refreshData:d});const E=(I,C)=>({flex:I.width?"none":"1",width:I.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:(C?I.cellAlign:I.align)||"left",backgroundColor:I.cellColor}),k=(I,C)=>{let S=0;const R=vue.unref(n).map(q=>q[C]),A=Math.max(...R);return A&&(S=I[C]/A*100),S},_=I=>{const{progressColor:C="#1890ff",progressGradientColor:S=""}=I;return S?{background:`linear-gradient(to right, ${C} 0%, ${S} 100%)`}:{backgroundColor:C||"#1890ff"}},T=vue.computed(()=>{const I=parseFloat(e.seqFontSize)+5;return{width:I+10,height:I}}),{pageMode:B}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),M=vue.computed(()=>vue.unref(B)!=="design"&&e.isAutoScroll),F=I=>{const{seqIconConfig:C}=e;let S=C.find(R=>R.key===I+1);return S||(S=C.find(R=>R.key==="other")),!!(S!=null&&S.icon)},O=(I,C)=>{const{seqIconConfig:S}=e;let R=S.find(A=>A.key===I+1);return R||(R=S.find(A=>A.key==="other")),C===1?R!=null&&R.icon?useImagePath(R.icon):"":C===2?(R==null?void 0:R.color)||"#fff":""},D=I=>{const{seqIndexFormatter:C}=e,S=I+1;return C?useVariablesInText(C,{textData:{index:S}},{useNewline:!1,useSpace:!0}):S},N=vue.computed(()=>parseFloat(e.itemWidth)!==100?{height:"100%"}:{}),L=vue.computed(()=>!e.itemWidth||e.itemWidth==="100%"?"0":e.itemColSpan);return{style:i,formatFn:a,contrastClass:o,dataSource:n,loading:l,myColumns:h,click:v,getColumnStyle:E,getPercentage:k,getBackgroundColor:_,isShowSeqIcon:F,getSeqIconData:O,seqIcon4,seqIcon5,seqIcon6,seqIcon7,iconSize:T,isScroll:M,formatSeq:D,wrapStyle:N,colSpan:L,getText:(I,C)=>(I.format!=null||I.format!=="")&&a(C[I.key],I)}}}),List_vue_vue_type_style_index_0_scoped_d6191ac4_lang="",List_vue_vue_type_style_index_1_lang="",_withScopeId$4=e=>(vue.pushScopeId("data-v-d6191ac4"),e=e(),vue.popScopeId(),e),_hoisted_1$d={key:0,class:"title"},_hoisted_2$5={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$s(e,r,n,i,a,o){const s=vue.resolveComponent("a-tooltip"),l=vue.resolveComponent("marquee-scroll"),c=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-list",style:vue.normalizeStyle(e.style)},[vue.createVNode(c,{loading:e.loading},{default:vue.withCtx(()=>[e.useTitle?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$d,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.columnCount,u=>(vue.openBlock(),vue.createElementBlock("div",{class:"title-inner",style:vue.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:u%e.columnCount!==0?e.itemColSpan:"",padding:`0 ${e.itemPadding}`}),key:u},[e.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$5)):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myColumns,(h,b)=>(vue.openBlock(),vue.createElementBlock("div",{class:"column",key:h.key||b,style:vue.normalizeStyle({color:h.titleColor,...e.getColumnStyle(h)})},vue.toDisplayString(h.title),5))),128))],4))),128))])):vue.createCommentVNode("",!0),e.dataSource.length>0?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-list-content",style:vue.normalizeStyle({paddingTop:e.useTitle?e.itemRowSpan:0,height:e.useTitle?"calc(100% - 40px)":"100%"})},[vue.createVNode(l,{visible:e.isScroll,step:e.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap",...e.wrapStyle}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.dataSource.slice(0,e.sliceCount),(u,h)=>(vue.openBlock(),vue.createElementBlock("div",{class:"item",style:vue.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(${e.itemWidth} - ${e.colSpan})`,marginRight:e.colSpan,marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:u.id||h,onClick:b=>e.click(u)},[e.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$2,[_hoisted_5$2,vue.createElementVNode("div",_hoisted_6$2," Top "+vue.toDisplayString(h+1),1)])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myColumns,b=>{var f;return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["column",e.contrastClass(u[b.key],b.format),b.key==="SEQ"?"seq-column":""]),key:b.key,style:vue.normalizeStyle({fontSize:b.fontSize,color:e.contrastClass(u[b.key],b.format)===""?b.color:"",fontWeight:b.fontWeight,...e.getColumnStyle(b,"cell")})},[b.key==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[e.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[(f=e.seqIconConfig)!=null&&f.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"icon-box",style:vue.normalizeStyle({width:e.seqIconWidth||"",height:e.seqIconHeight||""})},[e.seqIconWidth&&e.seqIconHeight&&e.isShowSeqIcon(h)?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"custom-seq-icon",src:e.getSeqIconData(h,1),style:vue.normalizeStyle({width:e.seqIconWidth,height:e.seqIconHeight})},null,12,_hoisted_7$2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"custom-seq-text",style:vue.normalizeStyle({fontSize:e.seqFontSize,color:e.getSeqIconData(h,2),lineHeight:e.seqIconHeight||"",left:e.seqIconOffsetX,top:e.seqIconOffsetY})},vue.toDisplayString(e.formatSeq(h)),5)],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$2,[h===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,_hoisted_9$2)):h===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,_hoisted_10$2)):h===2?(vue.openBlock(),vue.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,_hoisted_11$2)):h>=3?(vue.openBlock(),vue.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,_hoisted_12$2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"seq-icon seq-text",style:vue.normalizeStyle({fontSize:e.seqFontSize})},vue.toDisplayString(e.formatSeq(h)),5)]))],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_13$2,vue.toDisplayString(e.formatSeq(h)),1))],64)):b.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"progress-cell",style:vue.normalizeStyle({height:e.itemHeight})},[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({height:b.progressWidth||"14px",backgroundColor:b.progressBaseColor})},[vue.createVNode(s,{title:u[b.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({borderRadius:"10px",height:b.progressWidth||"14px",width:`${e.getPercentage(u,b.key)}%`,...e.getBackgroundColor(b)})},null,4)]),_:2},1032,["title"])],4)],4)):(vue.openBlock(),vue.createElementBlock("span",{key:2,title:e.getText(b,u)},vue.toDisplayString(e.getText(b,u)),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$o,[["render",_sfc_render$s],["__scopeId","data-v-d6191ac4"]]),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$n=vue.defineComponent({name:"EcanProportion",components:{AProgress:antDesignVue.Progress,Skeleton},props:{...proportionComponentProps},setup(e,{expose:r}){const n=vue.ref(!1),{pageMode:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),a=usePickComponentStyle(e),o=vue.computed(()=>{const E=e.width;return parseFloat(E)}),s=vue.ref({});vue.watch(()=>e.data,()=>{(e.dataType==="static"||vue.unref(i)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=vue.computed(()=>{const E=vue.unref(s),k=+e.variableDefaultValue;if(E==null)return isNaN(k)?0:k;const _=e.text.match(/\{(.+?)\}/g)||[];let T;const B=new Set(Object.keys(E));for(let M=0;M<_.length;M++){const F=_[M],O=F.slice(1,F.length-1);if(B.has(O)){T=E[O];break}}return typeof T=="number"?T=T*100:typeof T=="string"&&!isNaN(+T)?T=+T*100:isNaN(k)?T=0:T=k*100,e.decimalFormat&&(T=+T.toFixed(2)),T}),c=vue.computed(()=>{var B;let E=e.text;if(E==="")return vue.unref(l);const k=e.variableDefaultValue,_=vue.unref(s),T=E.match(/\{(.+?)\}/g)||[];for(let M=0;M<T.length;M++){const F=T[M];let O=F.slice(1,F.length-1);const D=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,N=F.match(D);for(let P=0;P<(N==null?void 0:N.length);P++){const I=(B=N[P])==null?void 0:B.trim();_[I]!=null&&(O=O.replace(I,_[I]))}let L=O;try{(/\(.*\)/g.test(O)||/[+/\\*]/g.test(O))&&(L=runCode(O))}catch(P){console.error(P)}typeof+L=="number"&&!isNaN(+L)?(L=+L*100,e.decimalFormat&&(L=L.toFixed(2))):typeof L!="string"&&(L=k),E=E.replace(F,`<span style="color: ${e.variableColor};">${L+""}</span>`)}return E=E==null?void 0:E.replace(/\n|\\n/g,"<br/>"),vue.unref(n)?"NaN":E}),u=useRequestData(e,E=>{var k;s.value=((k=E==null?void 0:E.data)==null?void 0:k.data)||{}}),h=vue.ref(!1),b=async()=>{var E,k,_,T,B;if(e.dataType==="request")try{h.value=!0;const M=await u();s.value=((E=M==null?void 0:M.data)==null?void 0:E.data)||{},(_=(k=M==null?void 0:M.data)==null?void 0:k.data)!=null&&_.rowsToData&&(s.value=((B=(T=M==null?void 0:M.data)==null?void 0:T.data)==null?void 0:B.rowsToData)||{})}catch(M){console.error(M)}finally{h.value=!1}},f=(E={})=>{s.value=E},y=E=>{var _;const{data:k}=(E==null?void 0:E.data)||{};if(k){n.value=!1;const{columns:T=[],rows:B=[]}=((_=E==null?void 0:E.data)==null?void 0:_.data)??{};let M={};if(T.length>0){const F=T.find(O=>!!O);F&&(M={percent:B[F]})}f(M)}else n.value=!0,f({percent:"NaN"})},d=useIndicatorData(e,y),g=async()=>{try{h.value=!0;const E=await d();y(E)}catch(E){console.error(E)}finally{h.value=!1}},w=()=>{switch(e.dataType){case"indicator":g();break;case"request":b();break}};useOnEvent(e,{refreshData:w}),r({refreshData:w});const v=useEmitEvent(e)("click",()=>{}),{setRequest:m}=vue.inject(REQUEST_MODEL,{setRequest:({id:E,sortNum:k,requestFn:_})=>{}});typeof m=="function"&&m({id:e.id,requestFn:w,sortNum:e.requestSort});const x=vue.computed(()=>{const{gradientShow:E,gradientColor:k,gradientOffset:_,strokeColor:T}=e;let B=T;return E&&k&&(B={"0%":T,[`${_*100}%`]:k}),B});return{style:a,myWidth:o,text:c,myValue:l,loading:h,click:v,customStrokeColor:x}}}),Proportion_vue_vue_type_style_index_0_scoped_a33d058a_lang="",_hoisted_1$c=["innerHTML"];function _sfc_render$r(e,r,n,i,a,o){const s=vue.resolveComponent("skeleton"),l=vue.resolveComponent("a-progress");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-proportion",style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.customStrokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,showInfo:e.strokeTextShow,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:vue.withCtx(()=>[e.loading?(vue.openBlock(),vue.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"format",style:vue.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},[vue.createElementVNode("span",{style:{"white-space":"nowrap"},innerHTML:e.text},null,8,_hoisted_1$c)],4)):vue.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Proportion=_export_sfc$1(_sfc_main$n,[["render",_sfc_render$r],["__scopeId","data-v-a33d058a"]]),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$m=vue.defineComponent({name:"EcanCounter",components:{Skeleton},props:{...counterComponentProps},setup(e,{expose:r}){const n=vue.ref(),i=usePickComponentStyle(e),a=vue.computed(()=>({width:e.unitWidth,height:e.unitHeight,marginRight:e.unitInterval+"px"})),o=vue.computed(()=>({color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle}));vue.watch(()=>[e.data,e.dataType],([x,E])=>{E==="static"&&(n.value=x)},{immediate:!0});const{getGlobalModel:s,setGlobalModel:l}=vue.inject(GLOBAL_MODEL,{getGlobalModel:x=>{},setGlobalModel:(x,E)=>{}}),u=useEmitEvent(e)("click",()=>{const x=s(e.id);l(e.id,{...x,type:e.type,value:vue.unref(n)})}),h=()=>{const x=e.id,E=s(x);l(x,{...E,type:e.type,value:""})},b=useRequestData(e,x=>{var E,k;n.value=((k=(E=x==null?void 0:x.data)==null?void 0:E.data)==null?void 0:k.value)||""}),f=vue.ref(!1),y=async()=>{var x,E;try{f.value=!0;const k=await b();n.value=((E=(x=k==null?void 0:k.data)==null?void 0:x.data)==null?void 0:E.value)||""}catch(k){console.error(k)}finally{f.value=!1}},d=x=>{var _;const{data:E}=(x==null?void 0:x.data)||{};let k="";if(E){const{columns:T=[],rows:B=[]}=((_=x==null?void 0:x.data)==null?void 0:_.data)??{};if(T.length>0){const M=T.find(F=>!!F);M&&(k=B[M]||"")}}n.value=String(k)},g=useIndicatorData(e,d),w=async()=>{try{f.value=!0;const x=await g();d(x)}catch(x){console.error(x)}finally{f.value=!1}},p=()=>{switch(e.dataType){case"indicator":w();break;case"request":y();break}},v=vue.computed(()=>{const x=[],{digits:E}=e,k=vue.unref(n)?vue.unref(n).split("").reverse().join(""):"";for(let _=0;_<E;_++)k&&k[_]?x.push(k[_]):x.push("0");return x.reverse()});useOnEvent(e,{refreshData:p,resetRecord:h});const{setRequest:m}=vue.inject(REQUEST_MODEL,{setRequest:({id:x,sortNum:E,requestFn:k})=>{}});return typeof m=="function"&&m({id:e.id,requestFn:p,sortNum:e.requestSort}),r({refreshData:p}),{style:i,valueList:v,digitsStyle:a,fontStyle:o,loading:f,useImagePath,click:u}}}),Counter_vue_vue_type_style_index_0_scoped_82bd9070_lang="",_hoisted_1$b=["src"];function _sfc_render$q(e,r,n,i,a,o){var l;const s=vue.resolveComponent("skeleton");return e.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-counter",style:vue.normalizeStyle(e.style),onClick:r[0]||(r[0]=(...c)=>e.click&&e.click(...c))},[(l=e.valueList)!=null&&l.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(e.valueList,(c,u)=>(vue.openBlock(),vue.createElementBlock("div",{class:"digits-item",style:vue.normalizeStyle(e.digitsStyle),key:u},[e.counterBackgroundImage?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"item-image",src:e.useImagePath(e.counterBackgroundImage)},null,8,_hoisted_1$b)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:"item-text",style:vue.normalizeStyle(e.fontStyle)},vue.toDisplayString(c),5)],4))),128)):vue.createCommentVNode("",!0)],4))}const Counter=_export_sfc$1(_sfc_main$m,[["render",_sfc_render$q],["__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$l=vue.defineComponent({name:"EcanInput",components:{AInput:antDesignVue.Input},props:{...inputComponentProps},setup(e){const r=usePickComponentStyle(e),n=vue.ref(""),{getGlobalModel:i,setGlobalModel:a,getRecordValueByKeyName:o}=vue.inject(GLOBAL_MODEL,{getGlobalModel:h=>{},setGlobalModel:(h,b)=>{},getRecordValueByKeyName:h=>{}});vue.watch(()=>e.value,h=>{n.value=o(h)},{immediate:!0}),a(e.id,{type:e.type,value:n});const s=()=>{const h=i(e.id);a(e.id,{...h,RECORD:n})},l=useEmitEvent(e),c=lodashEs.debounce(l("inputChange",()=>{s()}),300),u=l("inputBlur",()=>{});return{style:r,myValue:n,inputBlur:u,inputChange:c}}}),Input_vue_vue_type_style_index_0_lang="";function _sfc_render$p(e,r,n,i,a,o){const s=vue.resolveComponent("a-input");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-input",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":r[0]||(r[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:vue.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const Input=_export_sfc$1(_sfc_main$l,[["render",_sfc_render$p]]),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"},datePickerComponentProps=transformToComponentProps(datePickerProps$1),datePickerEvents=["dateChange"],__default__$3=vue.defineComponent({name:"EcanDatePicker",props:{...datePickerComponentProps},components:{ADatePicker:antDesignVue.DatePicker,AInput:antDesignVue.Input,CalendarOutlined:CalendarOutlined$1,CloseCircleFilled:CloseCircleFilled$1},setup(e){const r=vue.inject("isMobile",!1),n=vue.inject("scaleValue",{widthScale:"1",heightScale:"1"}),i=usePickComponentStyle(e),a=()=>document.getElementById("ProviderConfig")||document.body,o=vue.ref(null),s=vue.ref(""),l=vue.ref(!1),c=vue.ref([]),u=vue.computed(()=>{let _=["year","month","day"];switch(e.picker){case"year":_=["year"];break;case"month":_=["year","month"];break}return _});vue.watch(()=>[e.value,e.useCurrentTime,e.operate],([_,T,B])=>{let M=null;if(_?M=dayjs(useVariablesInText(_)):T&&(M=dayjs()),B&&M){const{type:F,value:O,mode:D}=B;switch(F){case"add":M=M.add(O,D);break;case"minus":M=M.subtract(O,D)}}o.value=M,vue.unref(r)&&E(M)},{deep:!0,immediate:!0});const{setGlobalModel:h}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(_,T)=>{}});h(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:o});const f=useEmitEvent(e)("dateChange",()=>{}),y=()=>{vue.unref(o)&&f()};useOnEvent(e,{dateChange:f});const d=vue.ref({}),g=vue.ref({}),w=_=>{_?setTimeout(()=>{g.value=vue.unref(d)},300):g.value={}};vue.onMounted(()=>{setTimeout(()=>{const _=document.querySelector(`#ecan-date-picker-${e.id}`);if(_){const T=_.getBoundingClientRect(),B=parseFloat(vue.unref(n).widthScale)*280;document.body.clientWidth-T.left<B&&(d.value.marginLeft=-1*(B-T.width)+"px")}},0)});const p=()=>{E(vue.unref(o)),l.value=!0},v=()=>{E(),o.value=null},m=()=>{const _=dayjs(vue.unref(c).join("-"));o.value=_,E(_),l.value=!1,y()},x=()=>{o.value=dayjs(),E(),s.value=dayjs().format(e.format),l.value=!1};function E(_){c.value=k(_||dayjs()),s.value=(_==null?void 0:_.format(e.format))||""}function k(_){const T=[];for(const B of vue.unref(u))B==="day"?T.push(_.date()):T.push(_[B]()+(B==="month"?1:0));return T}return{style:i,getPopupContainer:a,myValue:o,locale,change:y,scaleValue:n,popupStyle:d,customStyle:g,openChange:w,isMobile:r,mobileDateStr:s,handleClearDate:v,openDatePick:p,datePickVisible:l,columnsType:u,mobileDate:c,onConfirmDate:m,onCancelDate:x}}}),__injectCSSVars__$3=()=>{vue.useCssVars(e=>({"43c34aaa":e.optionFontSize}))},__setup__$3=__default__$3.setup;__default__$3.setup=__setup__$3?(e,r)=>(__injectCSSVars__$3(),__setup__$3(e,r)):__injectCSSVars__$3;const DatePicker_vue_vue_type_style_index_0_scoped_a500e23b_lang="",DatePicker_vue_vue_type_style_index_1_lang="",_hoisted_1$a=["id"];function _sfc_render$o(e,r,n,i,a,o){const s=vue.resolveComponent("calendar-outlined"),l=vue.resolveComponent("close-circle-filled"),c=vue.resolveComponent("a-input"),u=vue.resolveComponent("van-date-picker"),h=vue.resolveComponent("van-popup"),b=vue.resolveComponent("a-date-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-date-picker",style:vue.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[e.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(c,{value:e.mobileDateStr,placeholder:"请选择日期",readonly:"",onClick:e.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(s,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[e.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(l,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(e.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(h,{show:e.datePickVisible,"onUpdate:show":r[1]||(r[1]=f=>e.datePickVisible=f),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[e.datePickVisible?(vue.openBlock(),vue.createBlock(u,{key:0,modelValue:e.mobileDate,"onUpdate:modelValue":r[0]||(r[0]=f=>e.mobileDate=f),"columns-type":e.columnsType,"cancel-button-text":"此刻",onConfirm:e.onConfirmDate,onCancel:e.onCancelDate},null,8,["modelValue","columns-type","onConfirm","onCancel"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(b,{key:1,class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":r[2]||(r[2]=f=>e.myValue=f),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,onOpenChange:e.openChange,getPopupContainer:e.getPopupContainer,popupStyle:{fontSize:e.optionFontSize,transform:`scale(${e.scaleValue.widthScale}, ${e.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","getPopupContainer","popupStyle"]))],12,_hoisted_1$a)}const DatePicker$1=_export_sfc$1(__default__$3,[["render",_sfc_render$o],["__scopeId","data-v-a500e23b"]]),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(e,r){(function(n,i){e.exports=i()})(commonjsGlobal,function(){var n="month",i="quarter";return function(a,o){var s=o.prototype;s.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var l=s.add;s.add=function(u,h){return u=Number(u),this.$utils().p(h)===i?this.add(3*u,n):l.bind(this)(u,h)};var c=s.startOf;s.startOf=function(u,h){var b=this.$utils(),f=!!b.u(h)||h;if(b.p(u)===i){var y=this.quarter()-1;return f?this.month(3*y).startOf(n).startOf("day"):this.month(3*y+2).endOf(n).endOf("day")}return c.bind(this)(u,h)}}})})(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(e){const r=vue.inject("isMobile",!1),{pageMode:n}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),i=usePickComponentStyle(e),a=()=>document.getElementById("ProviderConfig")||document.body,o=vue.ref([null,null]),s=vue.ref(!1),l=vue.ref([]),c=vue.ref([]),u=vue.ref(),h=vue.ref(),b=vue.ref(),f=vue.ref(),y=vue.ref(0),d=vue.ref({}),g=vue.ref(""),w=vue.computed(()=>{let $=["year","month","day"];switch(e.picker){case"year":$=["year"];break;case"month":$=["year","month"];break}return $});vue.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([$,Y,J,K,ne,X])=>{if(vue.unref(o).every(W=>!W)||vue.unref(n)==="design"){let W=null,ee=null;if(J&&(W=dayjs().subtract(K,ne),ee=dayjs()),$&&(W=dayjs(useVariablesInText($))),Y&&(ee=dayjs(useVariablesInText(Y))),X){const{type:te,value:ae,mode:ie}=X;switch(te){case"add":W=W&&W.add(ae,ie),ee=ee&&ee.add(ae,ie);break;case"minus":W=W&&W.subtract(ae,ie),ee=ee&&ee.subtract(ae,ie)}}o.value=[W,ee],vue.unref(r)&&j()}},{immediate:!0});let p=vue.unref(o)[0],v=vue.unref(o)[1],m="";const x=($,Y,J)=>{Array.isArray($)?(p=$[0],v=$[1],m=J.range):(p=null,v=null)},E=$=>{let Y=!1,{limitStartTime:J,limitEndTime:K}=e;const ne={startTime:`${p||""}`,endTime:`${v||""}`};if(J=useVariablesInText(J,{codeData:ne}),K=useVariablesInText(K,{codeData:ne}),J&&K?Y=!(dayjs(J)<$&&$<dayjs(K)):J?Y=dayjs(J)>$:K&&(Y=dayjs(K)<$),!e.isAllowSpanYear&&m){let X=null;if(m==="start"?X=p:m==="end"&&(X=v),X){const W=X.startOf("year"),ee=X.endOf("year");Y=!(W<=$&&$<ee)}}if(!Y){const{value:X=0,mode:W="year"}=e.limitInterval||{};X&&(m==="start"?Y=p.add(X,W)<$:m==="end"&&(Y=v.subtract(X,W)>$))}return Y},{getGlobalModel:k,setGlobalModel:_}=vue.inject(GLOBAL_MODEL,{getGlobalModel:$=>{},setGlobalModel:($,Y)=>{}}),T=vue.computed(()=>Array.isArray(vue.unref(o))?vue.unref(o)[0]:null),B=vue.computed(()=>Array.isArray(vue.unref(o))?vue.unref(o)[1]:null);_(e.id,{type:e.type,format:e.format,startTime:T,endTime:B,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const M=useEmitEvent(e);let F=!1;const O=M("dateChange",()=>{}),D=$=>{const Y=vue.unref(o),J=Y&&Y[0]&&Y[1];$===!1&&F===!0&&J&&(O(),F=!1),$||(m="")},N=()=>{F=!0},L=()=>{const{associated:$}=e;if($){const Y=k($)||{};if(Y){const{value:J}=Y;if(J)switch(vue.unref(J)){case"month":o.value=[dayjs().startOf("month"),dayjs().endOf("month")];break;case"quarter":o.value=[dayjs().startOf("quarter"),dayjs().endOf("quarter")];break;case"year":o.value=[dayjs().startOf("year"),dayjs().endOf("year")];break}}}O()},P=()=>{G(vue.unref(o)),s.value=!0},I=()=>{G(),g.value="",o.value=[null,null]},C=()=>{o.value=[dayjs(vue.unref(l).join("-")),dayjs(vue.unref(c).join("-"))],G(vue.unref(o)),U(),q(),s.value=!1,O()},S=()=>{H(),s.value=!1},R=()=>{var $,Y;($=vue.unref(l))!=null&&$.length&&e.format&&(b.value=new Date(vue.unref(l).join("-")),(Y=vue.unref(c))!=null&&Y.length&&dayjs(vue.unref(c).join("-")).isBefore(dayjs(vue.unref(l).join("-")))&&(c.value=lodashEs.cloneDeep(vue.unref(l))))},A=()=>{var $,Y;($=vue.unref(c))!=null&&$.length&&e.format&&(h.value=new Date(vue.unref(c).join("-")),(Y=vue.unref(l))!=null&&Y.length&&dayjs(vue.unref(l).join("-")).isAfter(dayjs(vue.unref(c).join("-")))&&(l.value=lodashEs.cloneDeep(vue.unref(c))))};function q(){d.value={startMinDate:lodashEs.cloneDeep(vue.unref(u)),startMaxDate:lodashEs.cloneDeep(vue.unref(h)),endMinDate:lodashEs.cloneDeep(vue.unref(b)),endMaxDate:lodashEs.cloneDeep(vue.unref(f))}}function H(){u.value=vue.unref(d).startMinDate,h.value=vue.unref(d).startMaxDate,b.value=vue.unref(d).endMinDate,f.value=vue.unref(d).endMaxDate}function G($=[]){l.value=V($[0]||dayjs()),c.value=V($[1]||dayjs())}function U(){var J,K;const $=(J=vue.unref(l))!=null&&J.length?dayjs(vue.unref(l).join("-")):"",Y=(K=vue.unref(c))!=null&&K.length?dayjs(vue.unref(c).join("-")):"";g.value=$&&Y&&`${$.format(e.format)} 至 ${Y.format(e.format)}`}function j(){const{limitStartTime:$,limitEndTime:Y,limitInterval:J,isAllowSpanYear:K}=e;G(vue.unref(o)),$&&(u.value=new Date($),b.value=new Date($),vue.unref(o)[0].isBefore(dayjs($))&&(vue.unref(o)[0]=dayjs($),l.value=V(vue.unref(o)[0]))),Y&&(h.value=new Date(Y),f.value=new Date(Y),vue.unref(o)[1].isAfter(dayjs(Y))&&(vue.unref(o)[1]=dayjs(Y),c.value=V(vue.unref(o)[1]))),vue.unref(o).every(ne=>ne)&&(J!=null&&J.value)&&vue.unref(o)[1].diff(vue.unref(o)[0],J.mode)>J.value&&(vue.unref(o)[0]=vue.unref(o)[1].subtract(J.value,J.mode),l.value=V(vue.unref(o)[0])),vue.unref(o).every(ne=>ne)&&!K&&vue.unref(o)[0].year()!==vue.unref(o)[1].year()&&(vue.unref(o)[0]=dayjs(`${vue.unref(o)[1].year()}-01-01`),l.value=V(vue.unref(o)[0])),q(),U()}function V($){const Y=[];for(const J of vue.unref(w))J==="day"?Y.push($.date()):Y.push($[J]()+(J==="month"?1:0));return Y}return useOnEvent(e,{dateChange:L}),{style:i,getPopupContainer:a,locale,dateChange:O,myValue:o,disabledDate:E,calendarChange:x,openChange:D,change:N,isMobile:r,mobileDateStr:g,datePickVisible:s,columnsType:w,openDatePick:P,handleClearDate:I,onConfirmDate:C,onCancelDate:S,mobileStartDate:l,mobileEndDate:c,startMinDate:u,startMaxDate:h,endMinDate:b,endMaxDate:f,pickerTabKey:y,onStartDateChange:R,onEndDateChange:A}}}),__injectCSSVars__$2=()=>{vue.useCssVars(e=>({a708a7a6:e.optionFontSize}))},__setup__$2=__default__$2.setup;__default__$2.setup=__setup__$2?(e,r)=>(__injectCSSVars__$2(),__setup__$2(e,r)):__injectCSSVars__$2;const RangePicker_vue_vue_type_style_index_0_scoped_c1fd3779_lang="",RangePicker_vue_vue_type_style_index_1_lang="";function _sfc_render$n(e,r,n,i,a,o){const s=vue.resolveComponent("calendar-outlined"),l=vue.resolveComponent("close-circle-filled"),c=vue.resolveComponent("a-input"),u=vue.resolveComponent("van-date-picker"),h=vue.resolveComponent("van-picker-group"),b=vue.resolveComponent("van-popup"),f=vue.resolveComponent("a-range-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-range-picker",style:vue.normalizeStyle(e.style)},[e.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(c,{value:e.mobileDateStr,placeholder:"请选择日期范围",readonly:"",onClick:e.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(s,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[e.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(l,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(e.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(b,{show:e.datePickVisible,"onUpdate:show":r[3]||(r[3]=y=>e.datePickVisible=y),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[e.datePickVisible?(vue.openBlock(),vue.createBlock(h,{key:0,"active-tab":e.pickerTabKey,"onUpdate:active-tab":r[2]||(r[2]=y=>e.pickerTabKey=y),tabs:["开始日期","结束日期"],onConfirm:e.onConfirmDate,onCancel:e.onCancelDate},{default:vue.withCtx(()=>[vue.createVNode(u,{modelValue:e.mobileStartDate,"onUpdate:modelValue":r[0]||(r[0]=y=>e.mobileStartDate=y),"min-date":e.startMinDate,"max-date":e.startMaxDate,"columns-type":e.columnsType,onChange:e.onStartDateChange},null,8,["modelValue","min-date","max-date","columns-type","onChange"]),vue.createVNode(u,{modelValue:e.mobileEndDate,"onUpdate:modelValue":r[1]||(r[1]=y=>e.mobileEndDate=y),"min-date":e.endMinDate,"max-date":e.endMaxDate,"columns-type":e.columnsType,onChange:e.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(f,{key:1,class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":r[4]||(r[4]=y=>e.myValue=y),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,"disabled-date":e.disabledDate,onChange:e.change,onCalendarChange:e.calendarChange,onOpenChange:e.openChange,popupStyle:{fontSize:e.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$n],["__scopeId","data-v-c1fd3779"]]),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$k=vue.defineComponent({name:"EcanButton",components:{AButton:antDesignVue.Button},props:{...buttonComponentProps},setup(e){const r=usePickComponentStyle(e),i=useEmitEvent(e)("click",()=>{const c=vue.unref(s);c&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:c},"*")}),a=vue.computed(()=>{const c={};return e.mode!=="primary"&&(c.backgroundColor=e.buttonBackgroundColor||"transparent",c.color=e.tooltipTextStyleColor,c.borderColor=e.borderColor||"transparent"),{height:e.height,...c}}),o=vue.computed(()=>useVariablesInText(e.text)),s=vue.computed(()=>useVariablesInText(e.href)||null),l=vue.computed(()=>{const c=e.target;if(!(c==="event"||vue.unref(s)==null))return{self:"_self",blank:"_blank"}[c]});return{style:r,click:i,myText:o,myHref:s,myTarget:l,buttonStyle:a}}}),Button_vue_vue_type_style_index_0_lang="";function _sfc_render$m(e,r,n,i,a,o){const s=vue.resolveComponent("a-button");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-button",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:vue.normalizeStyle(e.buttonStyle),class:vue.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:vue.withCtx(()=>[vue.createElementVNode("span",{style:vue.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},vue.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Button=_export_sfc$1(_sfc_main$k,[["render",_sfc_render$m]]),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$j=vue.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:antDesignVue.CheckboxGroup},props:{...checkboxComponentProps},setup(e,{expose:r}){const n=usePickComponentStyle(e),i=vue.ref([]),a=vue.ref([]),o=p=>{const v=e.value;let m=[];p.forEach(x=>{x.checked&&m.push(x.value)}),typeof v=="string"&&v!==""?m=m.concat(v.split(",")):Array.isArray(v)&&(m=m.concat(v)),i.value=p,a.value=m};vue.watch(()=>[e.data,e.value],([p])=>{o(p)},{immediate:!0,deep:!0});const s=useRequestData(e,p=>{var v,m;o(((m=(v=p==null?void 0:p.data)==null?void 0:v.data)==null?void 0:m.rows)||[])}),l=async()=>{var m,x;if(e.dataType!=="request")return;const p=await s(),v=((x=(m=p==null?void 0:p.data)==null?void 0:m.data)==null?void 0:x.rows)||[];o(v)},{getGlobalModel:c,setGlobalModel:u}=vue.inject(GLOBAL_MODEL,{getGlobalModel:p=>{},setGlobalModel:(p,v)=>{}});u(e.id,{type:e.type,value:a});const b=useEmitEvent(e)("checkboxChange",()=>{const p=c(e.id);u(e.id,{...p,RECORD:a})}),f=p=>{var m;const{data:v}=(p==null?void 0:p.data)||{};if(v){const E=(((m=p==null?void 0:p.data)==null?void 0:m.data)??[]).map(k=>({label:k.label,value:k.value}));o(E)}else o([])},y=useIndicatorData(e,f),d=async()=>{try{const p=await y();f(p)}catch(p){console.error(p)}},g=()=>{switch(e.dataType){case"indicator":d();break;case"request":l();break}},{setRequest:w}=vue.inject(REQUEST_MODEL,{setRequest:({id:p,sortNum:v,requestFn:m})=>{}});return typeof w=="function"&&w({id:e.id,requestFn:g,sortNum:e.requestSort}),r({refreshData:g}),{myOption:i,style:n,myValue:a,checkboxChange:b}}}),Checkbox_vue_vue_type_style_index_0_lang="";function _sfc_render$l(e,r,n,i,a,o){const s=vue.resolveComponent("a-checkbox-group");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-checkbox",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":r[0]||(r[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const Checkbox=_export_sfc$1(_sfc_main$j,[["render",_sfc_render$l]]),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$i=vue.defineComponent({name:"EcanSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,AInput:antDesignVue.Input,DownOutlined:DownOutlined$1},props:{...selectComponentProps},setup(e,{expose:r}){var U,j;const n=vue.inject("isMobile",!1),i=vue.ref(!1),a={text:((U=e.dataFieldNames)==null?void 0:U.label)||"label",value:((j=e.dataFieldNames)==null?void 0:j.value)||"value"},o=vue.ref([]),s=usePickComponentStyle(e),l=()=>document.getElementById("ProviderConfig")||document.body,c=vue.ref(e.data||[]),u=vue.ref(),h=vue.computed({get:()=>{var $;const{mode:V}=e;return($=vue.unref(c))!=null&&$.length?u.value:V==="multiple"||V==="tags"||V==="combobox"?[]:""},set:V=>{u.value=V}}),b=vue.computed(()=>{const{value:V,label:$}=e.dataFieldNames,Y=[];if(Array.isArray(vue.unref(h)))for(const J of vue.unref(h)){const K=vue.unref(c).find(ne=>ne[V]===J);K&&Y.push(K[$])}else{const J=vue.unref(c).find(K=>K[V]===vue.unref(h));J&&Y.push(J[$])}return Y.join(",")}),{getGlobalModel:f,setGlobalModel:y,getRecordValueByKeyName:d}=vue.inject(GLOBAL_MODEL,{getGlobalModel:V=>{},setGlobalModel:(V,$)=>{},getRecordValueByKeyName:V=>{}}),g=e.dataFieldNames;vue.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,c.value],()=>{const{mode:V,selectFirstOption:$,value:Y}=e,J=d(Y),K=g.value;if(V==="multiple"||V==="tags"||V==="combobox"){if(J)u.value=J.split(",");else if($){const ne=vue.unref(c)[0];u.value=ne?[ne[K]]:[]}}else if(J)u.value=J;else if($){const ne=vue.unref(c)[0];u.value=ne?ne[K]:""}},{immediate:!0});const w=(V,$)=>{const Y=g.label,J=g.value;let K;const ne=$[Y],X=$[J];return ne!=null?K=ne:X!=null&&(K=X),(K==null?void 0:K.toLowerCase().indexOf(V==null?void 0:V.toLowerCase()))>=0},p=V=>{const{label:$,value:Y,options:J}=e.dataFieldNames;if(J&&Array.isArray(V))if(V.some(K=>J in K)){const K={},ne=[];V.forEach(X=>{K[X[J]]||(K[X[J]]=[]),K[X[J]].push({[$]:X[$],[Y]:X[Y]})});for(const X in K)ne.push({[$]:X,[J]:K[X]});return ne}else return V;else{if(!J&&Array.isArray(V))return V=V.map(K=>({label:K[$],value:K[Y]})),V;if(!J&&!Array.isArray(V))return V}},v=vue.ref(!1),m=V=>{var $,Y;if(c.value=p(((Y=($=V==null?void 0:V.data)==null?void 0:$.data)==null?void 0:Y.rows)||[]),e.selectFirstOption){let J=vue.unref(c)[0];if(g.options){const K=J[g.options];K&&K.length&&(J=K[0])}u.value=J[g.value]}},x=useRequestData(e,m),E=async()=>{if(e.dataType==="request"){v.value=!0;try{const V=await x();m(V)}catch(V){console.error(V)}finally{v.value=!1}}},{setLoadedData:k,loadedData:_}=vue.inject(LOADED_DATA,{setLoadedData:(V,$)=>{},loadedData:{}}),T=vue.computed(()=>{let V=u.value;if(e.valueType==="label"&&vue.unref(u)&&vue.unref(c)){const $=g.label,Y=g.value;if(e.mode==="multiple")V=vue.unref(c).filter(J=>vue.unref(u).includes(J[Y])).map(J=>J[$]);else{const J=vue.unref(c).find(K=>vue.unref(u)===K[Y]);J&&(V=J[$])}}return V}),B=vue.ref([]),M=vue.computed(()=>{const V={};if(e.mode!=="multiple"){const $=vue.unref(B).find(Y=>Y.value===vue.unref(u));$&&(V.itemCodes=$.item_codes)}return V}),F=vue.computed(()=>{const{value:V,label:$}=g,Y=vue.unref(c).find(J=>J[V]===vue.unref(h));return Y?{label:Y[$],value:Y[V]}:{}});y(e.id,{type:e.type,value:T,...vue.unref(M),recordData:vue.unref(F)});const O=useEmitEvent(e),D=O("selectChange",()=>{const V=e.id,$=f(V);y(V,{...$,...vue.unref(M),RECORD:T,recordData:vue.unref(F)})}),N=O("clearValue",()=>{["multiple","tags","combobox"].includes(e.mode)?u.value=[]:u.value=null;const V=e.id;y(V,{RECORD:"",recordData:vue.unref(F)})}),L=(V=[])=>{var Y,J;const $=p(V);if((J=(Y=e==null?void 0:e.graphicConfig)==null?void 0:Y.formFields)!=null&&J.hasAllOption){const K=g.label,ne=g.value;$.unshift({[K]:"全部",[ne]:""})}if(c.value=$,e.selectFirstOption){let K=vue.unref(c)[0];if(g.options){const ne=K[g.options];ne&&ne.length&&(K=ne[0])}u.value=K[g.value]}y(e.id,{type:e.type,value:T,...vue.unref(M),recordData:vue.unref(F)})},P=V=>{var K;const{data:$}=(V==null?void 0:V.data)||{},Y=g.label,J=g.value;if($){const{rows:ne=[]}=((K=V==null?void 0:V.data)==null?void 0:K.data)||{};B.value=ne;const X=ne.map(te=>({[Y]:te.label,[J]:te.value})),{id:W}=e,ee=f(W);y(W,{...ee,...vue.unref(M)}),k(W,!0),L(X)}else L([])},I=useIndicatorData(e,P),C=async()=>{try{v.value=!0;const V=await I();P(V)}catch(V){console.error(V)}finally{v.value=!1}},S=vue.computed(()=>{var V,$;return($=getConditions(((V=e==null?void 0:e.graphicConfig)==null?void 0:V.controlList)||[]))==null?void 0:$.find(Y=>Y.conditionKey==="parentCode")}),R=vue.ref(!1);vue.watch(_,V=>{!vue.unref(R)&&vue.unref(S)&&V[vue.unref(S).id]&&(R.value=!0,A())},{deep:!0});const A=()=>{switch(e.dataType){case"indicator":{if(vue.unref(S)){if(vue.unref(_)[vue.unref(S).id]){const{mode:V}=e;V==="multiple"||V==="tags"||V==="combobox"?h.value=[]:h.value="",C()}}else C();break}case"request":E();break}};useOnEvent(e,{selectChange:D,refreshData:A,clearValue:N});const{setRequest:q}=vue.inject(REQUEST_MODEL,{setRequest:({id:V,sortNum:$,requestFn:Y})=>{}});return typeof q=="function"&&q({id:e.id,requestFn:A,sortNum:e.requestSort}),r({refreshData:A}),{style:s,getPopupContainer:l,myValue:u,selectChange:D,options:c,filterOption:w,loading:v,resultValue:h,isMobile:n,customFieldName:a,pickVisible:i,onConfirmPicker:()=>{h.value=vue.unref(o)[0],D(),i.value=!1},mobileValue:b,openPicker:()=>{var V;!Array.isArray(vue.unref(h))&&((V=vue.unref(c))!=null&&V.length)&&e.dataFieldNames.value&&(o.value=vue.unref(h)?[vue.unref(h)]:[vue.unref(c)[0][e.dataFieldNames.value]]),i.value=!0},mobileSelectValue:o}}}),Select_vue_vue_type_style_index_0_scoped_3779be3f_lang="",Select_vue_vue_type_style_index_1_lang="";function _sfc_render$k(e,r,n,i,a,o){const s=vue.resolveComponent("down-outlined"),l=vue.resolveComponent("a-input"),c=vue.resolveComponent("van-picker"),u=vue.resolveComponent("van-popup"),h=vue.resolveComponent("a-select-option"),b=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-select",style:vue.normalizeStyle(e.style)},[e.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(l,{value:e.mobileValue,placeholder:"请选择日期",readonly:"",onClick:e.openPicker},{suffix:vue.withCtx(()=>[vue.createVNode(s)]),_:1},8,["value","onClick"]),vue.createVNode(u,{show:e.pickVisible,"onUpdate:show":r[1]||(r[1]=f=>e.pickVisible=f),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[e.pickVisible?(vue.openBlock(),vue.createBlock(c,{key:0,modelValue:e.mobileSelectValue,"onUpdate:modelValue":r[0]||(r[0]=f=>e.mobileSelectValue=f),"columns-field-names":e.customFieldName,columns:e.options,"cancel-button-text":" ",onConfirm:e.onConfirmPicker},null,8,["modelValue","columns-field-names","columns","onConfirm"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(b,{key:1,class:"select",value:e.resultValue,"onUpdate:value":r[2]||(r[2]=f=>e.resultValue=f),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:vue.normalizeStyle({fontSize:e.optionFontSize})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.options,(f,y)=>(vue.openBlock(),vue.createBlock(h,{key:y,value:f.value,style:vue.normalizeStyle({fontSize:e.optionFontSize})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(f.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$i,[["render",_sfc_render$k],["__scopeId","data-v-3779be3f"]]),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$h={name:"EcanTreeSelect",components:{ATreeSelect:antDesignVue.TreeSelect},props:{...treeSelectComponentProps},setup(e){const r=usePickComponentStyle(e),n=vue.ref(e.data),i=(d,g)=>{const w=e.dataFieldNames,p=w.label,v=w.value;let m;const x=g[p],E=g[v];return x!=null?m=x:E!=null&&(m=E),(m==null?void 0:m.toLowerCase().indexOf(d==null?void 0:d.toLowerCase()))>=0},a=vue.ref();vue.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:d,value:g,selectFirstOption:w}=e;d?g?a.value=g.split(","):w&&(a.value=[vue.unref(n)[0]]):g?a.value=g:w&&(a.value=vue.unref(n)[0])},{immediate:!0});const o=vue.ref(!1),s=d=>{var w,p;n.value=((p=(w=d==null?void 0:d.data)==null?void 0:w.data)==null?void 0:p.rows)||[];const g=vue.unref(n)[0];e.value===""&&g!=null&&(a.value=g[e.dataFieldNames.value])},l=useRequestData(e,s),c=async()=>{if(e.dataType==="request"){o.value=!0;try{const d=await l();s(d)}catch(d){console.error(d)}finally{o.value=!1}}},{getGlobalModel:u,setGlobalModel:h}=vue.inject(GLOBAL_MODEL,{getGlobalModel:d=>{},setGlobalModel:(d,g)=>{}});h(e.id,{type:e.type,value:a});const f=useEmitEvent(e)("selectChange",()=>{const d=e.id,g=u(d);h(d,{...g,RECORD:a})});useOnEvent(e,{selectChange:f,refreshData:c});const{setRequest:y}=vue.inject(REQUEST_MODEL,{setRequest:({id:d,sortNum:g,requestFn:w})=>{}});return y({id:e.id,requestFn:c,sortNum:e.requestSort}),{style:r,treeData:n,filterTreeNode:i,myValue:a,loading:o,selectChange:f}}},TreeSelect_vue_vue_type_style_index_0_scoped_09e7f364_lang="",TreeSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$j(e,r,n,i,a,o){const s=vue.resolveComponent("a-tree-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tree-select",style:vue.normalizeStyle(i.style)},[vue.createVNode(s,{class:"tree-select",value:i.myValue,"onUpdate:value":r[0]||(r[0]=l=>i.myValue=l),allowClear:"",showSearch:"",loading:i.loading,fieldNames:e.dataFieldNames,treeData:i.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:i.filterTreeNode,placeholder:e.placeholder,onChange:i.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const TreeSelect=_export_sfc$1(_sfc_main$h,[["render",_sfc_render$j],["__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",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:""},radioComponentProps=transformToComponentProps(radioProps),radioEvents=["checkboxChange","click"],_sfc_main$g=vue.defineComponent({name:"EcanRadio",components:{ARadioGroup:antDesignVue.RadioGroup,ARadioButton:antDesignVue.RadioButton,ARadio:antDesignVue.Radio},props:{...radioComponentProps},setup(e,{expose:r}){const{pageMode:n}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),i=usePickComponentStyle(e),a=vue.ref([]),o=vue.ref(""),s=E=>{const k=e.value;let _=[];typeof k=="string"&&k!==""?_=_.concat(k.split(",")):Array.isArray(k)&&(_=_.concat(k)),a.value=E,o.value=_[0]||"",console.log(a.value,o.value," myValue.value")};vue.watch(()=>[e.data,e.value],([E])=>{vue.unref(n)==="design"&&s(E)},{immediate:!0,deep:!0});const l=useRequestData(e,E=>{var k,_;s(((_=(k=E==null?void 0:E.data)==null?void 0:k.data)==null?void 0:_.rows)||[])}),c=async()=>{var _,T;if(e.dataType!=="request")return;const E=await l(),k=((T=(_=E==null?void 0:E.data)==null?void 0:_.data)==null?void 0:T.rows)||[];s(k)},{getGlobalModel:u,setGlobalModel:h}=vue.inject(GLOBAL_MODEL,{getGlobalModel:E=>{},setGlobalModel:(E,k)=>{}});h(e.id,{type:e.type,value:o});const b=useEmitEvent(e),f=()=>{const E=vue.unref(a).find(k=>k.value===vue.unref(o))||{};b("checkboxChange",()=>{const k=u(e.id);h(e.id,{...k,RECORD:o})},E)()},y=E=>{o.value=E,b("click",()=>{const k=u(e.id);h(e.id,{...k,RECORD:o})})()};vue.watch(o,()=>{f()});const d=E=>{var _;const{data:k}=(E==null?void 0:E.data)||{};if(k){const B=(((_=E==null?void 0:E.data)==null?void 0:_.data)??[]).map(M=>({label:M.label,value:M.value}));s(B)}else s([])},g=useIndicatorData(e,d),w=async()=>{try{const E=await g();d(E)}catch(E){console.error(E)}},p=()=>{switch(e.dataType){case"indicator":w();break;case"request":c();break}},{setRequest:v}=vue.inject(REQUEST_MODEL,{setRequest:({id:E,sortNum:k,requestFn:_})=>{}});typeof v=="function"&&v({id:e.id,requestFn:p,sortNum:e.requestSort});const m=E=>{o.value=E.value},x=vue.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return vue.onMounted(()=>{s(e.data)}),r({refreshData:p}),{myOption:a,style:i,myValue:o,radioStyle:x,onClickButton:y,useImagePath,tabChange:m}}}),Radio_vue_vue_type_style_index_0_lang="",Radio_vue_vue_type_style_index_1_scoped_5507200e_lang="",_hoisted_1$9=["onClick"];function _sfc_render$i(e,r,n,i,a,o){const s=vue.resolveComponent("a-radio"),l=vue.resolveComponent("a-radio-button"),c=vue.resolveComponent("a-radio-group");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-radio",e.optionType]),style:vue.normalizeStyle(e.style)},[e.tabBackgroundImage&&e.activeTabBackgroundImage?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"tabs-header",style:vue.normalizeStyle({fontSize:e.tabFontSize,flexDirection:e.tabFlexDirection,alignItems:e.tabTextAlign})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myOption,(u,h)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.myValue===u.value?e.activeTabColor:e.tabColor,backgroundImage:e.myValue===u.value?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:"0",marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:"0"}),key:h,onClick:vue.withModifiers(b=>e.tabChange(u),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===u.value?e.activeTabColor:"transparent"}`:""})},vue.toDisplayString(u.label),5)],12,_hoisted_1$9))),128))],4)):(vue.openBlock(),vue.createBlock(c,{key:1,value:e.myValue,"onUpdate:value":r[0]||(r[0]=u=>e.myValue=u)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myOption,u=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:u.value},[e.optionType==="default"?(vue.openBlock(),vue.createBlock(s,{key:0,value:u.value,style:vue.normalizeStyle(e.radioStyle)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(u.label),1)]),_:2},1032,["value","style"])):e.optionType==="button"?(vue.openBlock(),vue.createBlock(l,{key:1,value:u.value,onClick:h=>e.onClickButton(u.value)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(u.label),1)]),_:2},1032,["value","onClick"])):vue.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"]))],6)}const Radio=_export_sfc$1(_sfc_main$g,[["render",_sfc_render$i],["__scopeId","data-v-5507200e"]]),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},pieComponentProps=transformToComponentProps(pieProps),pieEvents=["click","refreshData","resetRecord"],useDownloadFile=async e=>{var c;const r=await request.post(e,{},{responseType:"blob"}),{data:n,headers:i}=r,a=i["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),o=new Blob([n]),s=document.createElement("a"),l=window.URL.createObjectURL(o);s.href=l,s.download=decodeURI(a),s.style.display="none",document.body.appendChild(s),s.click(),(c=s.parentNode)==null||c.removeChild(s),window.URL.revokeObjectURL(l)},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:[]},modalComponentProps=transformToComponentProps(modalProps),modalEvents=["showModal","hideModal"],containerType=["ecanBorder","ecanTabs","ecanCirculate"];function handleScrollCombinations(e){const{containerMap:r={},sourceList:n=[]}=e,i=lodashEs.cloneDeep(e.componentList),a=i.filter(o=>o.type==="ecanTabs"&&o.isAutoScroll);if(a!=null&&a.length)for(const o of a){const s=r[o.id],l=[];if((!hasOwn(o,"componentList")||!(o!=null&&o.componentList))&&(o.componentList=[]),s){let c=0;for(const u in s){const h=s[u],b=[];if(h!=null&&h.length)for(const f of h){let y=i.find(d=>d.id===f);y||(y=n.find(d=>d.id===f)),y&&(b.push(y),containerType.includes(y.type)&&b.push(...getComponentByContainer(y.id,r,n)))}for(const f of b)hasOwn(f,"scale")?parseFloat(u)>0&&(f.left=parseFloat(f.left)+c+"px"):(f.left=parseFloat(f.sourceLeft||f.left)-parseFloat(o.sourceLeft||o.left)+c+"px",f.top=parseFloat(f.sourceTop||f.top)-parseFloat(o.sourceTop||o.top)+"px"),l.includes(f.id)||l.push(f.id);o.componentList.push(...b),c=getMaxLeftInComponents(b)}}for(const c of l){const u=i.findIndex(h=>h.id===c);u!==-1&&i.splice(u,1)}}return i}function compatibleMobileList(e){var o,s;const{combinationMap:r={},sourceList:n=[]}=e,i=e.containerMap,a=lodashEs.cloneDeep([...e.componentList,...getTabsSomeComponentList(i,n)]);if(handleContainerMap(i,a),(o=Object.keys(i))!=null&&o.length||(s=Object.keys(r))!=null&&s.length){for(const f in i){const y=a.find(d=>d.id===f);if(y){hasOwn(y,"parentId")||(y.parentId="",y.sourceLeft=y.left,y.sourceTop=y.top);for(const d in i[f])if(i[f][d])for(const g of i[f][d]){const w=a.find(p=>p.id===g);w&&(w.parentId=f,w.sourceLeft=w.left,w.sourceTop=w.top,w.left=parseFloat(w.left)-parseFloat(y.sourceLeft||y.left)+"px",w.top=parseFloat(w.top)-parseFloat(y.sourceTop||y.top)+"px")}}}const l=Array.from(new Set(a.filter(f=>(!hasOwn(f,"parentId")||f.parentId==="")&&f.combinationId).map(f=>f.combinationId))),c=getCombinationList(l,{...e,componentList:a});c!=null&&c.length&&a.unshift(...c);const u=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],h=a.filter(f=>u.includes(f.type)&&!hasOwn(f,"parentId")),b=[];for(const f of h)if(f){const y=f.id+"_vir";b.push({id:y,keyName:f.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:f.width,height:f.height,left:f.left,top:f.top,sourceLeft:f.left,sourceTop:f.top}),f.parentId=y,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=0,f.top=0}b!=null&&b.length&&a.unshift(...b);for(const f of a){const y=document.body.clientWidth;if(f.parentId===""&&containerType.includes(f.type))f.sourceWidth=parseFloat(f.width),f.height=(y/(f.sourceWidth/parseFloat(f.height))).toFixed(2)+"px",f.width="100%",f.position="relative",f.top="auto",f.left="auto";else{const d=a.find(g=>g.id===f.parentId);if((d==null?void 0:d.parentId)===""){const g=d.sourceWidth||parseFloat(d.width),w=y/g;f.scale=w,f.top=parseFloat(f.top)*w-parseFloat(f.height)*(1-w)/2+"px",f.left=parseFloat(f.left)*w-parseFloat(f.width)*(1-w)/2+"px"}}f.type==="ecanModal"&&(f.parentId="",f.fullModal=!0)}return sortList(a)}return a}function handleContainerMap(e,r){const n=lodashEs.cloneDeep(e),i=r.filter(a=>a.type==="ecanTabs"&&a.isAutoScroll);if(i!=null&&i.length)for(const a of i){const o=n[a.id];for(const s in o)for(const l of o[s]){const c=r.find(u=>u.id===l);if(c&&containerType.includes(c.type)){const u=getComponentByContainer(c.id,n,r);for(const h of u)e[a.id][s].push(h.id),containerType.includes(h.type)&&delete e[h.id];delete e[c.id]}}}}function getTabsSomeComponentList(e,r){const n=[],i=r.filter(a=>a.type==="ecanTabs"&&a.isAutoScroll);if(i!=null&&i.length)for(const a of i){const o=e[a.id];for(const s in o)if(parseFloat(s)>0)for(const l of o[s]){const c=r.find(u=>u.id===l);c&&(n.push(c),containerType.includes(c.type)&&n.push(...getComponentByContainer(c.id,e,r)))}}return n}function getComponentByContainer(e,r,n){const i=[],a=r[e];for(const o in a)for(const s of a[o]){const l=n.find(c=>c.id===s);l&&(i.push(l),containerType.includes(l.type)&&i.push(...getComponentByContainer(l.id,r,n)))}return i}function getCombinationList(e,r,n){const{combinationMap:i={},componentList:a=[]}=r,o=[];for(const s of e){const l=i[s];if(l!=null&&l.length){const c=a.filter(u=>l.includes(u.id));if(c!=null&&c.length){const u=getCombinateRect(c);if(u){o.push({...u,id:s,keyName:s,parentId:n||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:u.left,sourceTop:u.top});for(const h of c)h&&(h.parentId=s,h.sourceLeft=h.left,h.sourceTop=h.top,h.left=parseFloat(h.left)-parseFloat(u.left)+"px",h.top=parseFloat(h.top)-parseFloat(u.top)+"px")}}}}return o}function sortList(e){const n=e.filter(i=>i.parentId==="");if(n!=null&&n.length){const i=lodashEs.cloneDeep(n).map(a=>({...a,sourceTop:parseFloat(a.sourceTop),sourceLeft:parseFloat(a.sourceLeft)}));for(let a=0;a<i.length-1;a++)for(let o=0;o<i.length-a-1;o++){let s=!1;if((i[o].sourceTop-i[o+1].sourceTop>50||Math.abs(i[o+1].sourceTop-i[o].sourceTop)<=50&&i[o].sourceLeft>i[o+1].sourceLeft)&&(s=!0),s){const l=i[o];i[o]=i[o+1],i[o+1]=l}}for(const a of i){const o=e.findIndex(s=>s.id===a.id);o!==-1&&e.splice(o,1)}return[...i,...e]}return e}function getCombinateRect(e){const r=e.sort((o,s)=>parseFloat(o.top)-parseFloat(s.top))[0],n=e.sort((o,s)=>parseFloat(o.left)-parseFloat(s.left))[0],i=e.map(o=>({...o,computedTop:parseFloat(o.top)+parseFloat(o.height)})).sort((o,s)=>s.computedTop-o.computedTop)[0],a=e.map(o=>({...o,computedLeft:parseFloat(o.left)+parseFloat(o.width)})).sort((o,s)=>s.computedLeft-o.computedLeft)[0];return r&&n&&i&&a?{left:n.left,top:r.top,width:a.computedLeft-parseFloat(n.left)+"px",height:i.computedTop-parseFloat(r.top)+"px"}:null}function getMaxLeftInComponents(e){const r=e.map(n=>parseFloat(n.left)+parseFloat(n.width)).sort((n,i)=>i-n)[0];return r||0}function moveToComponentList(e,r,n){const i=e[n],a=[];if(i)for(const o in i){const s=i[o];for(const l of s){const c=r.find(u=>u.id===l);c&&(a.push(c),containerType.includes(c.type)&&a.push(...getComponentByContainer(c.id,e,r)))}}return a}const _sfc_main$f=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:r}){r("ready",e.component.id)}});function _sfc_render$h(e,r,n,i,a,o){return e.component.parentId?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#container_"+e.component.parentId},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(e.component.type),vue.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(e.component.type),vue.normalizeProps(vue.mergeProps({key:1},e.component)),null,16))}const Render=_export_sfc$1(_sfc_main$f,[["render",_sfc_render$h]]),EcanRender=withInstall$1(Render),_sfc_main$e=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(e,{emit:r}){const n=vue.ref([]),i=vue.inject("isMobile",!1),a=vue.inject("getContainerMap",()=>{}),o=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l,setRequestData:c}=vue.inject(GLOBAL_MODEL,{setRequestData:(X,W)=>{},clearInteractiveData:()=>{},interactiveData:null}),u=()=>document.getElementById("ProviderConfig")||document.body,h=vue.computed(()=>{const X=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[X]}}),b=e.fullModal?"1920px":e.width,f=e.fullModal?"1080px":e.height,y=e.originalWidth,d=e.originalHeight,g=vue.ref("80%"),w=vue.ref(0),p=vue.ref(),v=vue.ref(0),m=vue.ref({}),x=usePickComponentStyle(e),E=vue.ref({}),k=vue.ref(!1),_=vue.ref();let T;const B=()=>{p.value=parseFloat(b)/parseFloat(y);const X=parseFloat(f)/parseFloat(d),W=document.body.offsetWidth,ee=document.body.offsetHeight;w.value=W*vue.unref(p),v.value=ee*X,g.value=`${vue.unref(p)*100}%`,m.value={width:`${vue.unref(w)}px`,height:`${vue.unref(v)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},E.value={...vue.unref(x),backgroundImage:useImagePath(e.backgroundImage,!0)},i?E.value={...E.value,width:"100%",height:"100%"}:E.value={...E.value,transform:`scale(${vue.unref(w)/parseFloat(b)},${vue.unref(v)/parseFloat(f)})`,width:b,height:f}},M=lodashEs.debounce(()=>{B()},100),F=()=>{const X=window.MutationObserver;T=new X(M),T.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},O=()=>{T&&(T.disconnect(),T.takeRecords(),T=null)},D=vue.ref(!1),{touchRequest:N}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),L=vue.ref(""),P=()=>{var ee;const{title:X}=e,W=(ee=vue.unref(l))==null?void 0:ee.RECORD;return W?useVariablesInText(X,{textData:W},{useNewline:!1,useSpace:!1}):X},I=useEmitEvent(e),C=()=>{i&&(document.documentElement.style.overflow="hidden"),L.value=P(),D.value=!0},S=I("hideModal",()=>{r("close"),i&&(document.documentElement.style.overflow="hidden auto",n.value=[]),D.value=!1}),R=()=>{S()},A=()=>{S(),s()},{setModalModel:q,pushUseModalIds:H,popUseModalIds:G}=vue.inject(MODAL_MODEL,{pushUseModalIds:X=>{},popUseModalIds:()=>{},setModalModel:(X,W)=>{}}),U=vue.computed(()=>{let X=e.componentList;const W=lodashEs.cloneDeep(e.componentList),ee=a(),te=o(),ae={containerMap:ee,combinationMap:te};i&&(X=compatibleMobileList({...ae,componentList:W,sourceList:e.allComponentList})),X=handleScrollCombinations({...ae,componentList:X,sourceList:e.allComponentList});const ie=[];for(const se of X)if(se.type==="ecanCirculate"){const he=moveToComponentList(ee,vue.unref(W),se.id);se.componentList=he,ie.push(...he.map(de=>de.id))}if(ie!=null&&ie.length)for(const se of ie){const he=X.findIndex(de=>de.id===se);he!==-1&&X.splice(he,1)}return X}),j=()=>{const X=e.id;let W=[];const ee=e.componentList;Array.isArray(ee)&&(W=ee.map(te=>te.id),q(X,[...new Set(W)]))},V=vue.ref(!1),$={};for(const X of e.requestList)$[X.requestName]=useRequestData(X);vue.watch(()=>D.value,async X=>{if(X)k.value=!1,H(e.id),j(),await vue.nextTick(()=>{B(),window.addEventListener("resize",M),F(),k.value=!0}),N();else{for(const W in $)c(W,{});G(),window.removeEventListener("resize",M),O()}});const Y=vue.computed(()=>vue.unref(p)>=1),J=vue.computed(()=>e.fullModal),K=vue.computed(()=>{let X="ecan-modal";return vue.unref(Y)&&(X+=" ecan-full-width-modal"),vue.unref(J)&&(X+=" ecan-full-modal"),X});return useOnEvent(e,{showModal:C,hideModal:S}),{modalRef:_,containStyle:m,contentStyle:E,getContainer:u,modalStyle:h,modalWith:g,isFullModal:J,style:x,visible:D,showModal:C,onOk:R,onCancel:A,isFullWidth:Y,wrapClassName:K,ready:k,usedComponentList:U,isMobile:i,readyIds:n,hasOwn,onComponentReady:X=>{n.value.push(X)},formatTitle:L,requestLoaded:V}}}),Modal_vue_vue_type_style_index_0_scoped_000999c2_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$g(e,r,n,i,a,o){const s=vue.resolveComponent("close-outlined"),l=vue.resolveComponent("render"),c=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(c,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:vue.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"contain",ref:"containRef",style:vue.normalizeStyle(e.containStyle)},[e.ready?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"content",style:vue.normalizeStyle(e.contentStyle)},[vue.createElementVNode("div",{class:"header-bar",style:vue.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ant-modal-title",style:vue.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},vue.toDisplayString(e.formatTitle),5)):vue.createCommentVNode("",!0),e.isShowCloseBtn?(vue.openBlock(),vue.createBlock(s,{key:1,class:"close-icon",style:vue.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])):vue.createCommentVNode("",!0)],4),e.usedComponentList.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(e.isMobile?"mobile-wrap":"")},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.usedComponentList,(u,h)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:u.id+h},[e.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[e.hasOwn(u,"parentId")&&(e.readyIds.includes(u.parentId)||u.parentId==="")?(vue.openBlock(),vue.createBlock(l,{key:0,component:u,onReady:e.onComponentReady},null,8,["component","onReady"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(u.type),vue.normalizeProps(vue.mergeProps({key:1},u)),null,16))],64))),128))],2)):vue.renderSlot(e.$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$e,[["render",_sfc_render$g],["__scopeId","data-v-000999c2"]]),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$d=vue.defineComponent({name:"EcanPie",props:{...pieComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:r}){const{pageMode:n,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.ref(!1),o=usePickComponentStyle(e),s=vue.ref([]),l=vue.ref(),c=vue.ref({}),u=vue.computed(()=>{let{data:D=[]}=vue.unref(s)[0]||{};if(Array.isArray(e.colors)){const N=e.isUseLabelColors,L=e.colors;D=D.map((P,I)=>({label:N?{color:L[I]}:{},...P}))}return{textStyle:{fontFamily:vue.unref(i)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.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 N;a.value=!0,(N=l.value)==null||N.showModal()}},myInfo:{show:e.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:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:N=>{const{marker:L,seriesName:P,name:I,value:C,percent:S,data:R}=N||{};return useVariablesInText(e.tooltipFormatter,{textData:{marker:L,name:I,value:C,percent:S,a:P,b:I,c:C,d:S,...R}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:vue.unref(c),color:e.colors,series:[{data:D,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!0,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:a.value?ZOOM_FONT_SIZE:e.labelFontSize,position:e.labelPosition,formatter:handleFormatter(e.labelFormatter),width:e.labelWidth,overflow:e.labelOverflow},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),h=()=>{const D=a.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize);c.value={type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{lineHeight:D+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:D}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:N=>{const{data:L}=s.value[0]||{};let P=0,I,C="0%";if(L)for(const S of L)S.name===N&&(I=+S.value),P+=+S.value;return P&&(C=`${(I/P*100).toFixed(2)}%`),getLegendFormat(e.legendFormatter,{name:N,value:I,percent:C})}}},b=()=>{a.value=!1},{getGlobalModel:f,setGlobalModel:y}=vue.inject(GLOBAL_MODEL,{getGlobalModel:D=>{},setGlobalModel:(D,N)=>{}}),d=(D=[],N)=>{const{dataset:L}=useTransformChartDataByAttrValue(D,N);s.value=L},g=(D=[],N)=>{const L=useTransformChartDataByAttrValue(D,N);s.value=L.dataset};vue.watch(()=>e.data,D=>{(e.dataType==="static"||vue.unref(n)==="design")&&d(D)},{immediate:!0,deep:!0}),vue.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter,e.legendFontSize,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],()=>{h()},{immediate:!0});const w=vue.ref(!1),p=useRequestData(e,D=>{var N,L;d((L=(N=D==null?void 0:D.data)==null?void 0:N.data)==null?void 0:L.rows,e.valueTypeDataFieldNames)}),v=async()=>{var D,N;if(e.dataType==="request")try{w.value=!0;const L=await p();d((N=(D=L==null?void 0:L.data)==null?void 0:D.data)==null?void 0:N.rows,e.valueTypeDataFieldNames)}catch(L){console.error(L)}finally{w.value=!1}},m=useEmitEvent(e);y(e.id,{type:e.type,RECORD:""});const x=m("click",D=>{const N=f(e.id);y(e.id,{...N,type:e.type,RECORD:D==null?void 0:D.data})}),E=D=>{var L;const{data:N}=(D==null?void 0:D.data)||{};if(N){const{columns:P=[],rows:I=[]}=((L=D==null?void 0:D.data)==null?void 0:L.data)??{};let C=[];if(P.length>0){const S=P[0],R=P[1];C=I.filter(A=>!!A).map(A=>({name:A[S],value:isNaN(A[R])?0:A[R]||0}))}g(C)}},k=useIndicatorData(e,E),_=async()=>{try{w.value=!0;const D=await k();E(D)}catch(D){console.error(D)}finally{w.value=!1}},{loadedData:T}=vue.inject(LOADED_DATA,{loadedData:{}}),B=vue.ref(!1);vue.watch(T,D=>{if(e.dataType==="indicator"){const N=getFixedValueDatas(e.graphicConfig);N!=null&&N.length&&(!vue.unref(B)&&canRequestIndicator(e.graphicConfig,D)?(B.value=!0,M()):canRequestIndicator(e.graphicConfig,D)||(B.value=!1))}},{deep:!0});const M=()=>{switch(e.dataType){case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(T))&&_();break;case"request":v();break}};useOnEvent(e,{resetRecord:()=>{const D=e.id,N=f(D);y(D,{...N,RECORD:""})},refreshData:M,click:x}),r({refreshData:M});const{setRequest:O}=vue.inject(REQUEST_MODEL,{setRequest:D=>{}});return typeof O=="function"&&O({id:e.id,requestFn:M,sortNum:e.requestSort}),{option:u,style:o,click:x,onClose:b,loading:w,ecanModal:l}}}),Pie_vue_vue_type_style_index_0_lang="";function _sfc_render$f(e,r,n,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Pie=_export_sfc$1(_sfc_main$d,[["render",_sfc_render$f]]),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},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$c=vue.defineComponent({name:"EcanLine",props:{...lineComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:r}){const{pageMode:n,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.ref(),o=vue.ref(!1),s=usePickComponentStyle(e),l=vue.ref([]),c=vue.ref([]),u=vue.ref(),h=vue.computed(()=>o.value?ZOOM_FONT_SIZE:12),b=vue.ref({});let f;const y=vue.ref([]),d=vue.computed(()=>{const I=e.xAxisLabelFormatter,C=e.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(i)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.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 S;o.value=!0,(S=u.value)==null||S.showModal()}},myInfo:{show:e.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:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:h.value},show:e.tooltipShow,formatter:S=>{var H;const R=S.length;let A="",q=e.tooltipFormatter;f=(H=S[0])==null?void 0:H.data,q===""&&(q="{marker} {a} {c}");for(let G=0;G<R;G++){const{marker:U,seriesName:j,name:V,value:$,data:Y}=S[G]||{};if(G===0){let J=V;typeof V=="string"&&V[0]==="0"&&!isNaN(+V)&&(J=(+V).toString()),A+=`${useValueFormatter(I,J)}<br/>`}A+=useVariablesInText(q,{textData:{marker:U,name:V,value:$,a:j,b:V,c:$||0,...Y}},{useNewline:!0,useSpace:!0}),A+="<br/>"}return A},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:vue.unref(c).map(S=>{let R={};return S&&typeof S=="object"?R={...S}:R={value:S},R}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(S){return typeof S=="string"&&S[0]==="0"&&!isNaN(+S)&&(S=(+S).toString()),useValueFormatter(I,S)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(S){return useValueFormatter(C,S)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},max:e.yAxisMaxValue||null},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(o.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:o.value?ZOOM_FONT_SIZE:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:vue.unref(y).map(S=>({name:S.name,icon:e.legendType})),formatter:S=>getLegendFormat(e.legendFormatter,{name:S})},series:vue.unref(l)}}),g=()=>{o.value=!1},{getGlobalModel:w,setGlobalModel:p}=vue.inject(GLOBAL_MODEL,{getGlobalModel:I=>{},setGlobalModel:(I,C)=>{}}),v=vue.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),m=(I=[],C=!1)=>{let S;if(e.dataFieldConfigType==="key"){const H=C?e.keyTypeDataFieldNames:null;S=useTransformChartDataByAttrKey(I,H)}else if(e.dataFieldConfigType==="value"){const H=C?e.valueTypeDataFieldNames:null;S=useTransformChartDataByAttrValue(I,H)}c.value=S.dimensions,y.value=S.dataset;const R=S.dataset,A=[],q=R.length;for(let H=0;H<q;H++){const G={};e.shadowColor&&(G.shadowColor=e.shadowColor,G.shadowBlur=e.shadowBlur,G.shadowOffsetY=e.shadowOffsetY,G.shadowOffsetX=e.shadowOffsetX),A.push({type:"line",...R[H],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[H]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[H],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...G},...vue.unref(v)})}l.value=A},x=(I=[],C,S=!1)=>{const A=useTransformChartDataByAttrKey(I,S?C:null,!0);c.value=A.dimensions,y.value=A.dataset;const q=A.dataset,H=[],G=q.length;for(let U=0;U<G;U++){const j={};e.shadowColor&&(j.shadowColor=e.shadowColor,j.shadowBlur=e.shadowBlur,j.shadowOffsetY=e.shadowOffsetY,j.shadowOffsetX=e.shadowOffsetX),H.push({type:"line",...q[U],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[U]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[U],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...j},...vue.unref(v)})}l.value=H};vue.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([I])=>{(e.dataType==="static"||vue.unref(n)==="design")&&m(I)},{immediate:!0,deep:!0});const E=vue.ref(!1),k=useRequestData(e,I=>{var C,S;m((S=(C=I==null?void 0:I.data)==null?void 0:C.data)==null?void 0:S.rows,!0)}),_=async()=>{var I,C;if(e.dataType==="request")try{E.value=!0;const S=await k();m((C=(I=S==null?void 0:S.data)==null?void 0:I.data)==null?void 0:C.rows,!0)}catch(S){console.error(S)}finally{E.value=!1}},T=useEmitEvent(e);p(e.id,{type:e.type,RECORD:""});const B=T("click",I=>{const C=w(e.id);p(e.id,{...C,type:e.type,RECORD:e.tooltipShow?f:I.data})}),M=I=>{a.value.chart.containPixel("grid",[I.offsetX,I.offsetY])&&B()};e.tooltipShow?b.value["zr:click"]=M:b.value.click=B;const F=I=>{var A;const{columns:C=[],rows:S=[]}=((A=I==null?void 0:I.data)==null?void 0:A.data)??{};let R;C.length>0&&(R={name:C[0],types:C.slice(1).map(q=>({label:q,value:q}))}),x(S,R,!0)},O=useIndicatorData(e,F),D=async()=>{try{E.value=!0;const I=await O();F(I)}catch(I){console.error(I)}finally{E.value=!1}},N=()=>{switch(e.dataType){case"indicator":D();break;case"request":_();break}};useOnEvent(e,{refreshData:N,resetRecord:()=>{const I=e.id,C=w(I);p(I,{...C,RECORD:""})},click:B});const{setRequest:P}=vue.inject(REQUEST_MODEL,{setRequest:I=>{}});return typeof P=="function"&&P({id:e.id,requestFn:N,sortNum:e.requestSort}),r({refreshData:N}),{option:d,style:s,click:B,loading:E,onClose:g,ecanModal:u,eventObj:b,echartRef:a}}}),Line_vue_vue_type_style_index_0_lang="";function _sfc_render$e(e,r,n,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,vue.mergeProps({ref:"echartRef",option:e.option,autoresize:""},vue.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Line=_export_sfc$1(_sfc_main$c,[["render",_sfc_render$e]]),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},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$b=vue.defineComponent({name:"EcanBar",props:{...barComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(e,{expose:r}){const{pageMode:n,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.inject("usedComponentList",[]),o=vue.ref(),s=vue.ref(!1),l=vue.ref(!1),c=vue.ref(null),u=vue.ref([]),h=usePickComponentStyle(e),b=vue.ref([]),f=vue.ref(),y=vue.ref({});let d;const g=vue.computed(()=>s.value?ZOOM_FONT_SIZE:12),w=vue.computed(()=>{const{gradientShow:j,gradientColors:V,gradientOffset:$,barBorderRadius:Y}=e,J=vue.unref(b),K=J.length,ne=[];for(let X=0;X<K;X++){const W={...J[X],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(W.stack="stack"),W.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:ee=>{let te="",ae=e.labelFormatter;ae===""&&(ae="{c}");const{seriesName:ie,name:se,value:he,data:de}=ee||{};return te+=useVariablesInText(ae,{textData:{name:se,value:he,a:ie,b:se,c:he||0,...de}},{useNewline:!0,useSpace:!0}),te}},W.itemStyle={},j&&(W.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[X]},{offset:$,color:V[X]},{offset:1,color:V[X]}]}}),Y){const ee=Y.split(",");if(ee!=null&&ee.length){const te=[];for(const ae of ee){const ie=parseFloat(ae);isNaN(ie)||te.push(ie)}W.itemStyle.borderRadius=te}}e.isShowMarkLine&&(W.markLine={data:[{type:e.markLineType}]}),ne.push(W)}return ne}),p=vue.ref([]),v=vue.ref(!1),m=vue.computed(()=>{const j=e.yAxisLabelFormatter,V=e.xAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(i)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:s.value?!1:e.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(){l.value=!0;const $=o.value.chart.getOption(),{xAxis:Y}=$||{};Y&&Y.length&&(u.value=Y[0].data)}},myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:s.value?!1:e.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 $;s.value=!0,($=f.value)==null||$.showModal()}},myInfo:{show:e.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:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:$=>{var ne;const Y=$.length;let J="",K=e.tooltipFormatter;d=(ne=$[0])==null?void 0:ne.data,K===""&&(K="{marker} {a} {c}");for(let X=0;X<Y;X++){const{marker:W,seriesName:ee,name:te,value:ae,data:ie}=$[X]||{};if(X===0){let se=te;typeof te=="string"&&te[0]==="0"&&!isNaN(+te)&&(se=(+te).toString()),J+=`${useValueFormatter(V,se)}<br/>`}J+=useVariablesInText(K,{textData:{marker:W,name:te,value:ae,a:ee,b:te,c:ae||0,...ie}},{useNewline:!0,useSpace:!0}),J+="<br/>"}return J},textStyle:{color:e.tooltipTextStyleColor,fontSize:g.value},position:e.tooltipPosition||void 0},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(s.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:s.value?ZOOM_FONT_SIZE:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:vue.unref(b).map(($,Y)=>({name:$.name,itemStyle:{color:e.colors[Y]},icon:e.legendType})),formatter:$=>getLegendFormat(e.legendFormatter,{name:$})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:vue.unref(_),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor,type:e.xAxisSplitLineType},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter($){return typeof $=="string"&&$[0]==="0"&&!isNaN(+$)&&($=(+$).toString()),useValueFormatter(V,$)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?vue.unref(p):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter($){return useValueFormatter(j,$)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},max:e.yAxisMaxValue||null},series:vue.unref(w)}}),x=()=>{s.value=!1},E=(j=[],V=!1)=>{let $={};if(e.dataFieldConfigType==="key"){const Y=V?e.keyTypeDataFieldNames:null;$=useTransformChartDataByAttrKey(j,Y)}else if(e.dataFieldConfigType==="value"){const Y=V?e.valueTypeDataFieldNames:null;$=useTransformChartDataByAttrValue(j,Y)}b.value=$.dataset,p.value=$.dimensions},k=(j=[],V,$=!1)=>{const J=useTransformChartDataByAttrKey(j,$?V:null,!0);e.defaultRangeValue&&setDefaultRangeVal({props:e,componentList:vue.unref(a),getGlobalModel:R},J),b.value=J.dataset,p.value=J.dimensions},_=vue.computed(()=>vue.unref(p).map(j=>{let V={};return j&&typeof j=="object"?V={...j}:V={value:j},V}));vue.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([j])=>{(e.dataType==="static"||vue.unref(n)==="design")&&E(j)},{immediate:!0,deep:!0});const T=useRequestData(e,j=>{var V,$;E(($=(V=j==null?void 0:j.data)==null?void 0:V.data)==null?void 0:$.rows,!0)}),B=async()=>{var j,V;try{v.value=!0;const $=await T();E((V=(j=$==null?void 0:$.data)==null?void 0:j.data)==null?void 0:V.rows,!0)}catch($){console.error($)}finally{v.value=!1}},M=j=>{var J;const{columns:V=[],rows:$=[]}=((J=j==null?void 0:j.data)==null?void 0:J.data)??{};let Y;V.length>0&&(Y={name:V[0],types:V.slice(1).map(K=>({label:K,value:K}))}),k($,Y,!0)},F=useIndicatorData(e,M),O=async()=>{try{v.value=!0;const j=await F();M(j)}catch(j){console.error(j)}finally{v.value=!1}},{loadedData:D}=vue.inject(LOADED_DATA,{loadedData:{}}),N=vue.ref(!1);vue.watch(D,j=>{if(e.dataType==="indicator"){const V=getFixedValueDatas(e.graphicConfig);V!=null&&V.length&&(!vue.unref(N)&&canRequestIndicator(e.graphicConfig,j)?(N.value=!0,L()):canRequestIndicator(e.graphicConfig,j)||(N.value=!1))}},{deep:!0});const L=()=>{switch(e.dataType){case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(D))&&O();break;case"request":B();break}},P=(j,V)=>!!vue.unref(u)[V.value].value.includes(j),I=async()=>{l.value=!1;const j=o.value.chart.getOption();for(let V=0;V<7;V++)await C(j,V)},C=(j,V)=>new Promise($=>{setTimeout(()=>{const{series:Y,color:J,xAxis:K}=j,ne=o.value.chart,{splitArea:X={}}=K[0]||{};Y.forEach((W,ee)=>{const te=W.data;let ae="";V%2?ae=J[ee]+"a8":ae=J[ee],te[c.value].itemStyle={color:ae}}),V%2?(X.show=!0,X.areaStyle.color=vue.unref(u).map((W,ee)=>ee===c.value?"#ff003b26":"")):X.show=!1,ne.setOption({series:Y,xAxis:K}),$()},200)});r({refreshData:L});const S=useEmitEvent(e),{getGlobalModel:R,setGlobalModel:A}=vue.inject(GLOBAL_MODEL,{getGlobalModel:j=>{},setGlobalModel:(j,V)=>{}});A(e.id,{type:e.type,RECORD:""});const q=S("click",j=>{const V=R(e.id);A(e.id,{...V,type:e.type,RECORD:e.tooltipShow?d:j.data})}),{setRequest:H}=vue.inject(REQUEST_MODEL,{setRequest:j=>{}});typeof H=="function"&&H({id:e.id,requestFn:L,sortNum:e.requestSort});const G=()=>{const j=e.id,V=R(j);A(j,{...V,RECORD:""})},U=j=>{o.value.chart.containPixel("grid",[j.offsetX,j.offsetY])&&q()};return e.tooltipShow?y.value["zr:click"]=U:y.value.click=q,useOnEvent(e,{refreshData:L,click:q,resetRecord:G}),{option:m,style:h,refreshData:L,click:q,loading:v,onClose:x,ecanModal:f,echartRef:o,handleLocationOk:I,onFilterOption:P,locationVisible:l,locationValue:c,locationNames:u,eventObj:y}}}),Bar_vue_vue_type_style_index_0_lang="",Bar_vue_vue_type_style_index_1_scoped_36e67f03_lang="",_withScopeId$3=e=>(vue.pushScopeId("data-v-36e67f03"),e=e(),vue.popScopeId(),e),_hoisted_1$8={class:"location-wrap"},_hoisted_2$4=_withScopeId$3(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$d(e,r,n,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal"),u=vue.resolveComponent("a-select-option"),h=vue.resolveComponent("a-select"),b=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-bar",style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,vue.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},vue.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(b,{visible:e.locationVisible,"onUpdate:visible":r[1]||(r[1]=f=>e.locationVisible=f),title:"快速定位",onOk:e.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$8,[_hoisted_2$4,vue.createVNode(h,{value:e.locationValue,"onUpdate:value":r[0]||(r[0]=f=>e.locationValue=f),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.locationNames,(f,y)=>(vue.openBlock(),vue.createBlock(u,{key:y,value:y},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(f.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Bar=_export_sfc$1(_sfc_main$b,[["render",_sfc_render$d],["__scopeId","data-v-36e67f03"]]),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},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$a=vue.defineComponent({name:"EcanScatter",props:{...scatterComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:r}){const{pageMode:n,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.ref(),o=vue.ref(!1),s=usePickComponentStyle(e),l=vue.ref([]),c=vue.ref(),u=vue.computed(()=>o.value?ZOOM_FONT_SIZE:12),h=vue.ref(),b=vue.ref(),f=vue.ref(),y=vue.ref(),d=vue.computed(()=>{const{xAxisMarkLineValue:S=[],yAxisMarkLineValue:R=[]}=e,A=S.map(G=>({...G,x:!0})),q=R.map(G=>({...G,y:!0})),H=A.concat(q);if(H!=null&&H.length){const G=[],U={label:{show:!1}};for(const j of H){let V=j.value;const $=V.match(/\{(.+?)\}/g);let Y="";if(j.x?Y="xAxis":j.y&&(Y="yAxis"),$!=null&&$.length){for(const J of $)V=V.replace(J,J.slice(1,-1));if(V){const J=runCode(V,{max:j.x?vue.unref(h):j.y?vue.unref(f):0,min:j.x?vue.unref(b):j.y?vue.unref(y):0});isNaN(+J)||G.push({[Y]:+J,...U})}}else isNaN(+j.value)||G.push({[Y]:j.value,...U})}return{symbol:["none","none"],data:G}}else return{data:[]}});function g(S,R,A){switch(R){case"startX":S[0].coord[0]=+A;break;case"startY":S[0].coord[1]=+A;break;case"endX":S[1].coord[0]=+A;break;case"endY":S[1].coord[1]=+A;break}}const w=vue.computed(()=>{const{axisMarkArea:S=[]}=e;if(S!=null&&S.length){const R=[];for(const A of S){const q=[{name:"",coord:[],itemStyle:{color:A.color}},{coord:[]}];for(const H in A)if(H!=="color"){let G=A[H];const U=G.match(/\{(.+?)\}/g);if(U!=null&&U.length){for(const j of U)G=G.replace(j,j.slice(1,-1));if(G){const j=runCode(G,{xMax:vue.unref(h),xMin:vue.unref(b),yMax:vue.unref(f),yMin:vue.unref(y)});isNaN(+j)||g(q,H,j)}}else isNaN(+A[H])||g(q,H,A[H])}q.every(H=>{var G;return(G=H.coord)==null?void 0:G.length})&&R.push(q)}return{data:R}}else return{data:[]}}),p=vue.computed(()=>{const S=e.xAxisLabelFormatter,R=e.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(i)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.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 A;o.value=!0,(A=c.value)==null||A.showModal()}},myInfo:{show:e.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:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,xAxis:{z:10,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(A){return typeof A=="string"&&A[0]==="0"&&!isNaN(+A)&&(A=(+A).toString()),useValueFormatter(S,A)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor},symbol:["none",e.showXAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameLocation:e.xAxisLineInverse?"start":"end",nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},inverse:e.xAxisLineInverse,max:e.xAxisMax,min:e.xAxisMin},yAxis:{z:10,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},axisTick:{show:e.yAxisTickShow},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(A){return useValueFormatter(R,A)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor},symbol:["none",e.showYAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},name:e.yAxisName,nameLocation:e.yAxisLineInverse?"start":"end",nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},inverse:e.yAxisLineInverse,max:e.yAxisMax,min:e.yAxisMin},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(A){var $;const{marker:q,seriesName:H,componentType:G}=A,U=(($=A==null?void 0:A.data)==null?void 0:$.record)??{},j=U[vue.unref(E).name],V=U[vue.unref(E).value];return["markLine","markArea"].includes(G)?"":useVariablesInText(e.tooltipFormatter,{textData:{marker:q,seriesName:H,a:H,b:j,c:V,...U}},{useNewline:!0,useSpace:!0})},axisPointer:{type:"cross"},textStyle:{fontSize:u.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:u.value}},series:[{data:vue.unref(l),type:"scatter",symbolSize:e.symbolSize,itemStyle:{color:e.symbolColor},markLine:d.value,markArea:w.value}]}}),{getGlobalModel:v,setGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:S=>{},setGlobalModel:(S,R)=>{}}),x=()=>{const S=vue.unref(a).chart.getModel().getComponent("yAxis").axis.scale._extent,R=vue.unref(a).chart.getModel().getComponent("xAxis").axis.scale._extent;R&&S&&(b.value=R[0],h.value=R[1],y.value=S[0],f.value=S[1])},E=vue.computed(()=>{let S=e.dataFieldNames;if(e.dataType==="indicator"){const{formFields:R={}}=e.graphicConfig;R!=null&&R.labelField&&(R!=null&&R.valueField)&&(S={name:R.labelField,value:R.valueField})}return S}),k=(S=[])=>{const{name:R="name",value:A="value"}=vue.unref(E)||{};l.value=S.map(q=>({value:[q[R],q[A]],record:q})),setTimeout(()=>{x()},0)};vue.watch(()=>e.data,S=>{(e.dataType==="static"||vue.unref(n)==="design")&&k(S)},{immediate:!0,deep:!0});const _=vue.ref(!1),T=useRequestData(e,S=>{var R,A;k((A=(R=S==null?void 0:S.data)==null?void 0:R.data)==null?void 0:A.rows)}),B=async()=>{var S,R;if(e.dataType==="request"){_.value=!0;try{const A=await T();k((R=(S=A==null?void 0:A.data)==null?void 0:S.data)==null?void 0:R.rows)}catch(A){console.error(A)}finally{_.value=!1}}},M=()=>{o.value=!1},F=useEmitEvent(e);m(e.id,{type:e.type,RECORD:""});const O=F("click",S=>{const R=e.id,A=v(R);m(R,{...A,type:e.type,RECORD:S==null?void 0:S.data})}),D=S=>{var R,A;k((A=(R=S==null?void 0:S.data)==null?void 0:R.data)==null?void 0:A.rows)},N=useIndicatorData(e,D),L=async()=>{try{_.value=!0;const S=await N();D(S)}catch(S){console.error(S)}finally{_.value=!1}},P=()=>{switch(e.dataType){case"indicator":L();break;case"request":B();break}};useOnEvent(e,{refreshData:P,click:O,resetRecord:()=>{const S=e.id,R=v(S);m(S,{...R,RECORD:""})}});const{setRequest:C}=vue.inject(REQUEST_MODEL,{setRequest:S=>{}});return typeof C=="function"&&C({id:e.id,requestFn:P,sortNum:e.requestSort}),r({refreshData:P}),{option:p,style:s,click:O,loading:_,onClose:M,ecanModal:c,echartRef:a}}}),Scatter_vue_vue_type_style_index_0_lang="";function _sfc_render$c(e,r,n,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{ref:"echartRef",option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Scatter=_export_sfc$1(_sfc_main$a,[["render",_sfc_render$c]]),EcanScatter=withInstall$1(Scatter),customGraphProps={...props,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},customGraphComponentProps=transformToComponentProps(customGraphProps),_sfc_main$9=vue.defineComponent({name:"EcanCustomGraph",props:{...customGraphComponentProps},components:{Echarts},setup(e){const r=usePickComponentStyle(e),n=vue.ref();return vue.watch(()=>e.optionCode,i=>{try{const a=eval;n.value=a(i)}catch(a){console.error(a)}},{immediate:!0}),{style:r,myOption:n,echarts:echarts__namespace}}});function _sfc_render$b(e,r,n,i,a,o){const s=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const CustomGraph=_export_sfc$1(_sfc_main$9,[["render",_sfc_render$b]]),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},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$8=vue.defineComponent({name:"EcanComboGraph",props:{...comboGraphComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(e,{expose:r}){const{pageMode:n,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.inject("usedComponentList",[]),{getGlobalModel:o,setGlobalModel:s}=vue.inject(GLOBAL_MODEL,{getGlobalModel:V=>{},setGlobalModel:(V,$)=>{}}),l=vue.ref(),c=vue.ref(!1),u=vue.ref(!1),h=vue.ref(null),b=vue.ref([]),f=vue.ref({});let y;const d=usePickComponentStyle(e),g=vue.ref([]),w=vue.ref([]),p=vue.ref(),v=vue.ref([]),m=vue.computed(()=>c.value?ZOOM_FONT_SIZE:12),x=vue.computed(()=>({textStyle:{fontFamily:vue.unref(i)},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:c.value?!1:e.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(){u.value=!0;const V=l.value.chart.getOption(),{xAxis:$}=V||{};$&&$.length&&(b.value=$[0].data)}},myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:c.value?!1:e.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 V;c.value=!0,(V=p.value)==null||V.showModal()}},myInfo:{show:e.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:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(c.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:c.value?ZOOM_FONT_SIZE:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:vue.unref(v).map((V,$)=>({name:V.name,itemStyle:{color:e.colors[$]},icon:e.legendType})),formatter:V=>getLegendFormat(e.legendFormatter,{name:V})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:V=>{var ne;const $=V.length;let Y="",J=e.tooltipFormatter;y=(ne=V[0])==null?void 0:ne.data,J===""&&(J="{marker} {a} {c}");const K=e.seriesTypes;for(let X=0;X<$;X++){const W=K[X],{tooltipFormatter:ee}=W||{},{marker:te,seriesName:ae,name:ie,value:se,data:he}=V[X]||{};if(X===0){let de=ie;typeof ie=="string"&&ie[0]==="0"&&!isNaN(+ie)&&(de=(+ie).toString()),Y+=`${useValueFormatter(e.xAxisLabelFormatter,de)}<br/>`}Y+=useVariablesInText(ee||J,{textData:{marker:te,name:ie,value:se,seriesName:ae,a:ae,b:ie,c:se||0,...he}},{useNewline:!0,useSpace:!0}),Y+="<br/>"}return Y},textStyle:{color:e.tooltipTextStyleColor,fontSize:m.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:vue.unref(w).map(V=>{let $={};return V&&typeof V=="object"?$={...V}:$={value:V},$}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(V){return typeof V=="string"&&V[0]==="0"&&!isNaN(+V)&&(V=(+V).toString()),useValueFormatter(e.xAxisLabelFormatter,V)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:vue.unref(B),series:vue.unref(g)})),E=()=>{c.value=!1},k=(V=[],$=!1)=>{let Y;if(e.dataFieldConfigType==="key"){const K=$?e.keyTypeDataFieldNames:null;Y=useTransformChartDataByAttrKey(V,K)}else if(e.dataFieldConfigType==="value"){const K=$?e.valueTypeDataFieldNames:null;Y=useTransformChartDataByAttrValue(V,K)}w.value=Y.dimensions;const J=Y.dataset;v.value=Y.dataset,g.value=T(J)},_=(V=[],$,Y=!1)=>{const K=useTransformChartDataByAttrKey(V,Y?$:null,!0);e.defaultRangeValue&&setDefaultRangeVal({props:e,componentList:vue.unref(a),getGlobalModel:o},K),w.value=K.dimensions;const ne=K.dataset;v.value=K.dataset,g.value=T(ne)};function T(V){const $=[],Y=V.length,J=e.seriesTypes;for(let K=0;K<Y;K++){const ne=J[K],{type:X,axisIndex:W}=ne||{};let ee={type:X,yAxisIndex:W,...V[K]};if(X==="line"){const te={};e.shadowColor&&(te.shadowColor=e.shadowColor,te.shadowBlur=e.shadowBlur,te.shadowOffsetY=e.shadowOffsetY,te.shadowOffsetX=e.shadowOffsetX),ee={...ee,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[K]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[K]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[K],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...te}}}if(X==="bar"){const{gradientShow:te,gradientColors:ae,gradientOffset:ie}=e,se={};if(e.barBorderRadius){const he=e.barBorderRadius.split(",");if(he!=null&&he.length){const de=[];for(const ge of he){const be=parseFloat(ge);isNaN(be)||de.push(be)}se.borderRadius=de}}te&&(se.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[K]},{offset:ie,color:ae[K]},{offset:1,color:ae[K]}]}),ee={...ee,barWidth:e.barWidth,itemStyle:se}}e.isShowMarkLine&&(ee.markLine={data:[{type:e.markLineType}]}),$.push(ee)}return $}vue.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor,e.gradientShow,e.gradientColors,e.gradientOffset,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.xAxisLabelFormatter,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([V])=>{(e.dataType==="static"||vue.unref(n)==="design")&&k(V)},{immediate:!0,deep:!0});const B=vue.computed(()=>{const V=e.yAxis;return V==null?void 0:V.map(($,Y)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:Y===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:Y===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(J){return useValueFormatter($.axisLabelFormatter,J)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:Y===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:Y===0?"right":"left"},max:e.yAxisMaxValue||null}))}),M=vue.ref(!1),F=useRequestData(e,V=>{var $,Y;k((Y=($=V==null?void 0:V.data)==null?void 0:$.data)==null?void 0:Y.rows,!0)}),O=async()=>{var V,$;if(e.dataType==="request")try{M.value=!0;const Y=await F();k(($=(V=Y==null?void 0:Y.data)==null?void 0:V.data)==null?void 0:$.rows,!0)}catch(Y){console.error(Y)}finally{M.value=!1}},D=V=>{var K;const{columns:$=[],rows:Y=[]}=((K=V==null?void 0:V.data)==null?void 0:K.data)??{};let J;$.length>0&&(J={name:$[0],types:$.slice(1).map(ne=>({label:ne,value:ne}))}),_(Y,J,!0)},N=useIndicatorData(e,D),L=async()=>{try{M.value=!0;const V=await N();D(V)}catch(V){console.error(V)}finally{M.value=!1}},{loadedData:P}=vue.inject(LOADED_DATA,{loadedData:{}}),I=vue.ref(!1);vue.watch(P,V=>{if(e.dataType==="indicator"){const $=getFixedValueDatas(e.graphicConfig);$!=null&&$.length&&(!vue.unref(I)&&canRequestIndicator(e.graphicConfig,V)?(I.value=!0,C()):canRequestIndicator(e.graphicConfig,V)||(I.value=!1))}},{deep:!0});const C=()=>{switch(e.dataType){case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(P))&&L();break;case"request":O();break}},S=(V,$)=>!!vue.unref(b)[$.value].value.includes(V),R=async()=>{u.value=!1;const V=l.value.chart.getOption();for(let $=0;$<7;$++)await A(V,$)},A=(V,$)=>new Promise(Y=>{setTimeout(()=>{const{series:J,color:K,xAxis:ne}=V,X=l.value.chart,{splitArea:W={}}=ne[0]||{};J.forEach((ee,te)=>{const ae=ee.data;let ie="";$%2?ie=K[te]+"a8":ie=K[te],ae[h.value].itemStyle={color:ie}}),$%2?(W.show=!0,W.areaStyle.color=vue.unref(b).map((ee,te)=>te===h.value?"#ff003b26":"")):W.show=!1,X.setOption({series:J,xAxis:ne}),Y()},200)});r({refreshData:C});const q=useEmitEvent(e);s(e.id,{type:e.type,RECORD:""});const H=q("click",V=>{const $=o(e.id);s(e.id,{...$,type:e.type,RECORD:e.tooltipShow?y:V==null?void 0:V.data})}),G=V=>{l.value.chart.containPixel("grid",[V.offsetX,V.offsetY])&&H()};e.tooltipShow?f.value["zr:click"]=G:f.value.click=H;const{setRequest:U}=vue.inject(REQUEST_MODEL,{setRequest:V=>{}});return typeof U=="function"&&U({id:e.id,requestFn:C,sortNum:e.requestSort}),useOnEvent(e,{resetRecord:()=>{const V=e.id,$=o(V);s(V,{...$,RECORD:""})},refreshData:C,click:H}),{style:d,option:x,click:H,loading:M,onClose:E,ecanModal:p,echartRef:l,handleLocationOk:R,onFilterOption:S,locationVisible:u,locationValue:h,locationNames:b,eventObj:f}}}),ComboGraph_vue_vue_type_style_index_0_lang="",ComboGraph_vue_vue_type_style_index_1_scoped_db85dc30_lang="",_withScopeId$2=e=>(vue.pushScopeId("data-v-db85dc30"),e=e(),vue.popScopeId(),e),_hoisted_1$7={class:"location-wrap"},_hoisted_2$3=_withScopeId$2(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$a(e,r,n,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal"),u=vue.resolveComponent("a-select-option"),h=vue.resolveComponent("a-select"),b=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,vue.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},vue.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(b,{visible:e.locationVisible,"onUpdate:visible":r[1]||(r[1]=f=>e.locationVisible=f),title:"快速定位",onOk:e.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$7,[_hoisted_2$3,vue.createVNode(h,{value:e.locationValue,"onUpdate:value":r[0]||(r[0]=f=>e.locationValue=f),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.locationNames,(f,y)=>(vue.openBlock(),vue.createBlock(u,{key:y,value:y},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(f.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const ComboGraph=_export_sfc$1(_sfc_main$8,[["render",_sfc_render$a],["__scopeId","data-v-db85dc30"]]),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$7=vue.defineComponent({name:"EcanRadar",props:{...radarComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:r}){const{pageMode:n,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.ref(),o=vue.ref(!1),s=usePickComponentStyle(e),l=vue.ref([]),c=vue.ref(),u=vue.computed(()=>o.value?ZOOM_FONT_SIZE:12),h=vue.ref([]),b=vue.ref(e.valueTypeDataFieldNames.name),f=vue.computed(()=>{const L=vue.unref(h),P=L.length,I=[];for(let C=0;C<P;C++){const{name:S,data:R=[]}=L[C],A=[{name:S,value:R.map(G=>G.value)}];let q=e.colors[C];if(e.gradientShow){const{gradientOffset:G,gradientColors:U}=e;q={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[C]},{offset:G,color:U[C]},{offset:1,color:U[C]}]}}const H={type:"radar",name:S,data:A,areaStyle:{color:q,opacity:e.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:e.symbolSize,lineStyle:{width:e.lineStyleWidth},label:{show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:G=>{const{data:U,value:j}=G;let V=0,$="0%";if(U)for(const Y of U.value)V+=+Y;return V&&($=`${(j/V*100).toFixed(2)}%`),useVariablesInText(e.labelFormatter,{textData:{value:j,percent:$}},{useNewline:!1,useSpace:!1})}}};I.push(H)}return I}),y=vue.computed(()=>{var S;const L=[],P=[],I=vue.unref(h),C=I.length;for(let R=0;R<C;R++){const{data:A=[]}=I[R];for(let q=0;q<A.length;q++)P.push(A[q].value)}if((S=l.value)!=null&&S.length){const R=P!=null&&P.length?Math.max(...P)*1.2:0;for(const A of l.value)L.push({name:A,max:R})}return L}),d=vue.computed(()=>({textStyle:{fontFamily:vue.unref(i)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.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 L;o.value=!0,(L=c.value)==null||L.showModal()}},myInfo:{show:e.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:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:u.value},show:e.tooltipShow,formatter:L=>{let P="",I=e.tooltipFormatter;I===""&&(I="{marker} {a} {c}");for(let C=0;C<vue.unref(y).length;C++){const S=vue.unref(y)[C],{marker:R,seriesName:A,value:q}=L||{};C===0&&A&&(P+=`${A}<br/>`),P+=useVariablesInText(I,{textData:{marker:R,name:S.name,value:q[C],a:S.name,b:S.name,c:q[C]||0,type:A}},{useNewline:!0,useSpace:!0}),P+="<br/>"}return P},position:e.tooltipPosition||void 0},radar:{indicator:vue.unref(y),axisName:{color:e.axisNameColor}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(o.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:o.value?ZOOM_FONT_SIZE:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:vue.unref(h).map(L=>({name:L.name,icon:e.legendType})),formatter:L=>getLegendFormat(e.legendFormatter,{name:L})},series:vue.unref(f)})),g=()=>{o.value=!1},{getGlobalModel:w,setGlobalModel:p}=vue.inject(GLOBAL_MODEL,{getGlobalModel:L=>{},setGlobalModel:(L,P)=>{}}),v=(L=[],P=!1)=>{let I;if(e.dataFieldConfigType==="key"){const C=P?e.keyTypeDataFieldNames:null;I=useTransformChartDataByAttrKey(L,C)}else if(e.dataFieldConfigType==="value"){const C=P?e.valueTypeDataFieldNames:null;I=useTransformChartDataByAttrValue(L,C)}l.value=I.dimensions,h.value=I.dataset},m=(L=[],P,I=!1)=>{const S=useTransformChartDataByAttrKey(L,I?P:null,!0);l.value=S.dimensions,h.value=S.dataset};vue.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([L])=>{(e.dataType==="static"||vue.unref(n)==="design")&&v(L)},{immediate:!0,deep:!0});const x=vue.ref(!1),E=useRequestData(e,L=>{var P,I;v((I=(P=L==null?void 0:L.data)==null?void 0:P.data)==null?void 0:I.rows,!0)}),k=async()=>{var L,P;if(e.dataType==="request")try{x.value=!0;const I=await E();v((P=(L=I==null?void 0:I.data)==null?void 0:L.data)==null?void 0:P.rows,!0)}catch(I){console.error(I)}finally{x.value=!1}},_=useEmitEvent(e);p(e.id,{type:e.type,RECORD:""});const T=L=>{const P=L.event.topTarget.__dimIdx;P!==void 0&&_("click",()=>{var R;const{value:I,name:C}=L.data||{},S=w(e.id);p(e.id,{...S,type:e.type,RECORD:{[vue.unref(b)]:((R=vue.unref(y)[P])==null?void 0:R.name)||"",[C]:I[P],seriesName:C}})})()},B=L=>{var S;const{columns:P=[],rows:I=[]}=((S=L==null?void 0:L.data)==null?void 0:S.data)??{};let C;P.length>0&&(b.value=P[0],C={name:P[0],types:P.slice(1).map(R=>({label:R,value:R}))}),m(I,C,!0)},M=useIndicatorData(e,B),F=async()=>{try{x.value=!0;const L=await M();B(L)}catch(L){console.error(L)}finally{x.value=!1}},O=()=>{switch(e.dataType){case"indicator":F();break;case"request":k();break}};useOnEvent(e,{refreshData:O,resetRecord:()=>{const L=e.id,P=w(L);p(L,{...P,RECORD:""})},click:T});const{setRequest:N}=vue.inject(REQUEST_MODEL,{setRequest:L=>{}});return typeof N=="function"&&N({id:e.id,requestFn:O,sortNum:e.requestSort}),r({refreshData:O}),{option:d,style:s,click:T,loading:x,onClose:g,ecanModal:c,echartRef:a}}}),Radar_vue_vue_type_style_index_0_lang="";function _sfc_render$9(e,r,n,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{ref:"echartRef",option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Radar=_export_sfc$1(_sfc_main$7,[["render",_sfc_render$9]]),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$6=vue.defineComponent({name:"EcanBorder",props:{...borderComponentProps},setup(e){const r=usePickComponentStyle(e,["background"]),n=vue.computed(()=>{const{isTransparent:d,gradientShow:g,gradientColor:w,gradientOffset:p,gradientAngle:v,backgroundColor:m}=e;if(g){let x=w;return d&&(x="transparent"),x?{background:`linear-gradient(${v}, ${m}, ${x} ${p*100}%)`}:{}}else return{}}),i=vue.computed(()=>{const{events:d}=e;let g={};return d!=null&&d.length&&d.find(p=>p.emit==="showModal")&&(g={cursor:"pointer"}),g}),{theme:a}=vue.inject(GLOBAL_CONFIG,{theme:"light"}),o=vue.computed(()=>{let d="";switch(e.titleMode){case"type-2":d="2";break}return d}),s=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${o.value}.png`],self.location).href),l=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${o.value}.png`],self.location).href),c=vue.computed(()=>({width:"100%",height:"100%"})),u=vue.computed(()=>{const{borderRadius:d}=e,g=[],w={};if(d){const p=d.split(",");for(const v of p)(+v||+v==0)&&g.push(+v+"px")}return g!=null&&g.length&&(w.borderRadius=g.join(" ")),w}),b=useEmitEvent(e)("click",()=>{}),f=vue.ref([]);vue.watch(()=>e.data,d=>{f.value=d},{immediate:!0,deep:!0}),useOnEvent(e,{click:b});const{setGlobalModel:y}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(d,g)=>{}});return y(e.id,{type:e.type,value:f}),{style:r,gradientStyle:n,click:b,borderStyle:c,theme:a,borderRadiusStyle:u,titleLeftIcon:s,titleRightIcon:l,cursorStyle:i}}}),Border_vue_vue_type_style_index_0_scoped_8dd53b8f_lang="",_withScopeId$1=e=>(vue.pushScopeId("data-v-8dd53b8f"),e=e(),vue.popScopeId(),e),_hoisted_1$6=["id"],_hoisted_2$2=_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$8(e,r,n,i,a,o){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-border",style:vue.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:r[0]||(r[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"no-title",style:vue.normalizeStyle(e.borderStyle)},[e.useBorderModify?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[_hoisted_2$2,_hoisted_3$1,_hoisted_4$1,_hoisted_5$1],64)):vue.createCommentVNode("",!0)],4)):vue.createCommentVNode("",!0),e.mode==="top-title"?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"top-title",style:vue.normalizeStyle(e.borderStyle)},[vue.createElementVNode("div",{class:vue.normalizeClass(["title-item-wrapper",e.titleMode])},[vue.createElementVNode("div",_hoisted_6$1,[vue.createElementVNode("img",{class:vue.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,_hoisted_7$1),vue.createElementVNode("div",_hoisted_8$1,vue.toDisplayString(e.title),1),vue.createElementVNode("img",{class:vue.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,_hoisted_9$1)])],2),_hoisted_10$1,_hoisted_11$1,_hoisted_12$1,_hoisted_13$1],4)):vue.createCommentVNode("",!0),e.mode==="left-title"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14$1,[vue.createElementVNode("div",_hoisted_15$1,[vue.createElementVNode("span",null,vue.toDisplayString(e.title),1)])])):vue.createCommentVNode("",!0)],12,_hoisted_1$6)}const Border=_export_sfc$1(_sfc_main$6,[["render",_sfc_render$8],["__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$5=vue.defineComponent({name:"EcanTabs",props:{...tabsComponentProps},components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,MarqueeScroll},setup(e){const r=usePickComponentStyle(e),n=vue.ref(0);vue.watch(()=>e.activeKey,T=>{n.value=T},{immediate:!0});const{pageMode:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),a=vue.inject("getContainerMap",()=>{}),o=vue.inject("componentList",[]),s=["ecanBorder","ecanTabs","ecanCirculate"],l=vue.computed(()=>a()||{}),c=T=>{const B=vue.unref(l)[T],M=[];if(B)for(const F in B)for(const O of B[F]){const D=vue.unref(o).find(N=>N.id===O);M.push(O),s.includes(D==null?void 0:D.type)&&M.push(...c(O))}return M},u=vue.computed(()=>c(e.id));let h=null;const b=()=>{const T=Array.isArray(vue.unref(y))?vue.unref(y).length-1:0;vue.unref(i)!=="design"&&!e.isAutoScroll&&e.autoSwitch&&T>0&&(h=setInterval(()=>{const B=vue.unref(n)+1;B<=T?n.value=B:n.value=0,d.value=vue.unref(y)[vue.unref(n)],v()},e.autoSwitchInterval*1e3))},f=()=>{clearInterval(h)};vue.onMounted(()=>{vue.unref(i)!=="design"&&b()}),vue.onBeforeUnmount(()=>{f()});const y=vue.ref([]),d=vue.ref({});vue.watch(()=>e.data,T=>{y.value=T,d.value=Array.isArray(T)&&T.length>0?T[0]:{}},{immediate:!0,deep:!0});const g=T=>n.value===T,w=useEmitEvent(e),{setGlobalModel:p}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(T,B)=>{}});p(e.id,{RECORD:vue.unref(d),value:vue.unref(d),activeKey:n});const{emitRefreshPage:v}=vue.inject(REFRESH_PAGE,{emitRefreshPage:()=>{}}),m=T=>{let{tab:B,index:M}=T||{};if(T.label){const F=vue.unref(y).findIndex(O=>O.title===T.label);F!==-1&&(M=F,B=vue.unref(y)[F])}w("tabChange",()=>{!isNaN(+M)&&M!==vue.unref(n)&&(d.value=B,n.value=M,p(e.id,{RECORD:B,value:B,activeKey:M}),v())})()},x=vue.computed(()=>{const T=e.componentList.map(B=>parseFloat(B.left)+parseFloat(B.width)).sort((B,M)=>M-B)[0];return{width:T?T+"px":"100%"}}),E=()=>{vue.unref(i)!=="design"&&f()},k=T=>{var B,M;return T?(M=(B=T==null?void 0:T.parentNode)==null?void 0:B.className)!=null&&M.includes("ecan-")?T.parentNode.getAttribute("cpntid"):k(T.parentNode):""},_=T=>{var B;if(vue.unref(i)!=="design"){const M=(T==null?void 0:T.toElement)||{};if((B=M==null?void 0:M.className)!=null&&B.includes("ecan-"))vue.unref(u).includes(M.getAttribute("cpntid"))||b();else if((M==null?void 0:M.className)==="page-config")b();else{const F=k(M);vue.unref(u).includes(F)||b()}}};return useOnEvent(e,{tabChange:m}),{style:r,activeKey:n,isActive:g,tabChange:m,myData:y,useImagePath,pageMode:i,scrollWrapStyle:x,onMouseEnter:E,onMouseLeave:_}}}),Tabs_vue_vue_type_style_index_0_scoped_c936183e_lang="",_hoisted_1$5=["id"],_hoisted_2$1=["onClick"];function _sfc_render$7(e,r,n,i,a,o){const s=vue.resolveComponent("a-select-option"),l=vue.resolveComponent("a-select"),c=vue.resolveComponent("marquee-scroll");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tabs",style:vue.normalizeStyle(e.style),id:"container_"+e.id,onMouseenter:r[0]||(r[0]=(...u)=>e.onMouseEnter&&e.onMouseEnter(...u)),onMouseleave:r[1]||(r[1]=(...u)=>e.onMouseLeave&&e.onMouseLeave(...u))},[e.pageMode==="design"||!e.isAutoScroll?vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{key:0,class:"tabs-header",style:vue.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection,margin:`${e.gridTopPx||0} ${e.gridRightPx||0} ${e.gridBottomPx||0} ${e.gridLeftPx||0}`})},[e.tabType==="tabs"?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(e.myData,(u,h)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(h)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(h)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:null,marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:null,fontWeight:e.tabFontWeight}),key:h,onClick:vue.withModifiers(b=>e.tabChange({tab:u,index:h}),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(h)?e.activeTabColor:"transparent"}`:""})},vue.toDisplayString(u.title),5)],12,_hoisted_2$1))),128)):e.tabType==="select"?(vue.openBlock(),vue.createBlock(l,{key:1,value:e.activeKey,style:vue.normalizeStyle({width:e.tabWidth})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myData,(u,h)=>(vue.openBlock(),vue.createBlock(s,{key:h,value:h,onClick:b=>e.tabChange({tab:u,index:h})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(u.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):vue.createCommentVNode("",!0)],4)),[[vue.vShow,e.pageMode==="design"||!e.hideTabs]]):vue.createCommentVNode("",!0),e.pageMode!=="design"&&e.isAutoScroll?(vue.openBlock(),vue.createBlock(c,{key:1,visible:e.isAutoScroll,step:e.scrollSpeed,vertical:!1,style:vue.normalizeStyle({height:e.height})},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(e.scrollWrapStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.componentList,u=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(u.type),vue.normalizeProps(vue.mergeProps({key:u.id},u)),null,16))),128))],4)]),_:1},8,["visible","step","style"])):vue.createCommentVNode("",!0)],44,_hoisted_1$5)}const Tabs$1=_export_sfc$1(_sfc_main$5,[["render",_sfc_render$7],["__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=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((r,n)=>(n&=63,n<36?r+=n.toString(36):n<62?r+=(n-26).toString(36).toUpperCase():n>62?r+="-":r+="_",r),"");const _sfc_main$4=vue.defineComponent({name:"EcanCirculate",props:{...circulateComponentProps,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll,Skeleton},setup(e,{expose:r}){const n=vue.ref(!1),i=usePickComponentStyle(e,["background"]),a=vue.inject("usedComponentList",[]),o=vue.inject("isMobile",!1),{getGlobalModel:s,setGlobalModel:l}=vue.inject(GLOBAL_MODEL,{getGlobalModel:T=>{},setGlobalModel:(T,B)=>{}}),c=vue.ref([]),u=vue.ref({}),{pageMode:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),b=vue.computed(()=>{if(vue.unref(o)){const T=document.body.clientWidth,B=e.sourceWidth||parseFloat(e.width);return T/B||1}else return 1});function f(T,B){const M=B.find(F=>F.id===e.id);if(M)for(const F of T)F.left=parseFloat(F.left)-parseFloat(M.sourceLeft||M.left)+"px",F.top=parseFloat(F.top)-parseFloat(M.sourceTop||M.top)+"px"}const y=T=>{const B=T.sort((D,N)=>parseFloat(D.top)-parseFloat(N.top))[0],M=T.sort((D,N)=>parseFloat(D.left)-parseFloat(N.left))[0],F=T.map(D=>parseFloat(D.left)+parseFloat(D.width)).sort((D,N)=>N-D)[0],O=T.map(D=>parseFloat(D.top)+parseFloat(D.height)).sort((D,N)=>N-D)[0];if(M&&F&&B&&O){const D=parseFloat(M.left),N=parseFloat(B.top);return{width:F-D,height:O-N,left:D}}else return{width:0,height:0,left:0}},d=vue.ref({}),g=T=>{var S,R;const B=[],{graphicConfig:M,id:F,componentList:O,keyFieldMap:D,unitInterval:N,colNum:L}=e;let P=lodashEs.cloneDeep(O),I=[];if((S=vue.unref(a))!=null&&S.length)for(const A of vue.unref(a))I.push(A),(R=A==null?void 0:A.componentList)!=null&&R.length&&I.push(...A.componentList);if(M.pageMode==="design"&&M.preview){const{containerMap:A}=M.pageConfig||{};I=M.componentList||[],I.push(e),P=moveToComponentList(A,lodashEs.cloneDeep(I),F)}f(P,I);const C=y(P);if(T!=null&&T.length){const{width:A,left:q,height:H}=C;let G=0,U=0;T.forEach((j,V)=>{j.index=V+1;const $=nanoid(),Y=lodashEs.cloneDeep(P);for(const J of Y){const K=D.find(X=>X.keyName===J.keyName),ne=nanoid();if(J.left=(parseFloat(J.left)+G)*vue.unref(b)+"px",J.top=(parseFloat(J.top)+U)*vue.unref(b)+"px",J.scale=vue.unref(b),J.id=ne,J.keyName=J.name+"_"+ne,J.unitId=$,K!=null&&K.fieldName){const X=J.text.match(/\{(.+?)\}/g);switch(J.type){case"ecanText":{J.data={value:String(j[K.fieldName])},X!=null&&X.length||(J.text="{value}");break}case"ecanProportion":{J.data={percent:String(j[K.fieldName])},X!=null&&X.length||(J.text="{percent}");break}}}}L&&j.index%L===0?(G=0,U+=N+H):G+=N+A,B.push(...Y),d.value[$]=j}),u.value={width:((L||T.length)*(A+N)+q)*vue.unref(b)+"px",height:(L?Math.ceil(T.length/L)*(N+H):N+H)*vue.unref(b)+"px"}}c.value=B},w=T=>{var M;const{rows:B=[]}=((M=T==null?void 0:T.data)==null?void 0:M.data)??{};g(B)},p=useIndicatorData(e,w),v=async()=>{try{n.value=!0;const T=await p();w(T)}catch(T){console.error(T)}finally{n.value=!1}},m=()=>{switch(e.dataType){case"indicator":v();break}};useOnEvent(e,{refreshData:m,resetRecord:()=>{const T=e.id,B=s(T);l(T,{...B,RECORD:""})}}),r({refreshData:m}),l(e.id,{type:e.type,RECORD:""});const{setRequest:E}=vue.inject(REQUEST_MODEL,{setRequest:T=>{}});typeof E=="function"&&E({id:e.id,requestFn:m,sortNum:e.requestSort});const k=useEmitEvent(e);return{loading:n,style:i,myComponentList:c,scrollWrapStyle:u,pageMode:h,click:T=>{let B=T.target;if(B){let M=B.getAttribute("unitId");for(;!M&&!B.className.includes("ecan-");)B=B.parentElement,M=B.getAttribute("unitId");M&&k("click",()=>{const F=s(e.id);l(e.id,{...F,type:e.type,RECORD:vue.unref(d)[M]})})()}}}}}),Circulate_vue_vue_type_style_index_0_scoped_85608bec_lang="",_hoisted_1$4=["id"];function _sfc_render$6(e,r,n,i,a,o){const s=vue.resolveComponent("marquee-scroll"),l=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-circulate",style:vue.normalizeStyle(e.style),id:"container_"+e.id,onClick:r[0]||(r[0]=(...c)=>e.click&&e.click(...c))},[vue.createVNode(l,{loading:e.loading},{default:vue.withCtx(()=>{var c;return[(c=e.myComponentList)!=null&&c.length?(vue.openBlock(),vue.createBlock(s,{key:0,visible:e.pageMode!=="design"&&e.isAutoScroll,step:e.scrollSpeed,vertical:e.scrollDirection==="vertical",marqueeStyle:{height:"100%"},wrapStyle:{height:"100%",overflow:"auto"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(e.scrollWrapStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myComponentList,u=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(u.type),vue.normalizeProps(vue.mergeProps({key:u.id},u)),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$4,[["render",_sfc_render$6],["__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$3=vue.defineComponent({name:"EcanTemplate",props:{...templateComponentProps},components:{},setup(e){const r=usePickComponentStyle(e,["background"]),{templateEmit:n}=vue.inject("templateOperate",{templateEmit:(a,o)=>{}})||{};return useOnEvent(e,{refreshData:()=>{n("refreshTemplate",e.pageId)}}),{style:r}}});function _sfc_render$5(e,r,n,i,a,o){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-template",style:vue.normalizeStyle(e.style)},[vue.renderSlot(e.$slots,"default")],4)}const Template=_export_sfc$1(_sfc_main$3,[["render",_sfc_render$5]]),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:""}},imageComponentProps=transformToComponentProps(imageProps),imageEvents=["click"];var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(e,r){module.exports=r()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(r){_useWebWorker=!!r},getWebWorker=function(){return _useWebWorker},setLocationHref=function(r){locationHref=r},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,r){var n,i=e.length,a;for(n=0;n<i;n+=1){a=e[n].prototype;for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r.prototype[o]=a[o])}}function getDescriptor(e,r){return Object.getOwnPropertyDescriptor(e,r)}function createProxyFunction(e){function r(){}return r.prototype=e,r}var audioControllerFactory=function(){function e(r){this.audios=[],this.audioFactory=r,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].pause()},resume:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].resume()},setRate:function(n){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].setRate(n)},createAudio:function(n){return this.audioFactory?this.audioFactory(n):window.Howl?new window.Howl({src:[n]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(n){this.audioFactory=n},setVolume:function(n){this._volume=n,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(n,i){var a=0,o=[],s;switch(n){case"int16":case"uint8c":s=1;break;default:s=1.1;break}for(a=0;a<i;a+=1)o.push(s);return o}function r(n,i){return n==="float32"?new Float32Array(i):n==="int16"?new Int16Array(i):n==="uint8c"?new Uint8ClampedArray(i):e(n,i)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?r:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(n){return typeof n}:_typeof$6=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$6(e)}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 e=["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"],r,n=e.length;for(r=0;r<n;r+=1)BMMath[e[r]]=Math[e[r]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var r=_typeof$6(e);if(r==="object"&&e.length){var n=createSizedArray(e.length),i,a=e.length;for(i=0;i<a;i+=1)n[i]=Math.abs(e[i]);return n}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,r,n,i){this.type=e,this.currentTime=r,this.totalTime=n,this.direction=i<0?-1:1}function BMCompleteEvent(e,r){this.type=e,this.direction=r<0?-1:1}function BMCompleteLoopEvent(e,r,n,i){this.type=e,this.currentLoop=n,this.totalLoops=r,this.direction=i<0?-1:1}function BMSegmentStartEvent(e,r,n){this.type=e,this.firstFrame=r,this.totalFrames=n}function BMDestroyEvent(e,r){this.type=e,this.target=r}function BMRenderFrameErrorEvent(e,r){this.type="renderFrameError",this.nativeError=e,this.currentTime=r}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}}();function HSVtoRGB(e,r,n){var i,a,o,s,l,c,u,h;switch(s=Math.floor(e*6),l=e*6-s,c=n*(1-r),u=n*(1-l*r),h=n*(1-(1-l)*r),s%6){case 0:i=n,a=h,o=c;break;case 1:i=u,a=n,o=c;break;case 2:i=c,a=n,o=h;break;case 3:i=c,a=u,o=n;break;case 4:i=h,a=c,o=n;break;case 5:i=n,a=c,o=u;break}return[i,a,o]}function RGBtoHSV(e,r,n){var i=Math.max(e,r,n),a=Math.min(e,r,n),o=i-a,s,l=i===0?0:o/i,c=i/255;switch(i){case a:s=0;break;case e:s=r-n+o*(r<n?6:0),s/=6*o;break;case r:s=n-e+o*2,s/=6*o;break;case n:s=e-r+o*4,s/=6*o;break}return[s,l,c]}function addSaturationToRGB(e,r){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[1]+=r,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,r){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[2]+=r,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,r){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[0]+=r/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var e=[],r,n;for(r=0;r<256;r+=1)n=r.toString(16),e[r]=n.length===1?"0"+n:n;return function(i,a,o){return i<0&&(i=0),a<0&&(a=0),o<0&&(o=0),"#"+e[i]+e[a]+e[o]}}(),setSubframeEnabled=function(r){subframeEnabled=!!r},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(r){expressionsPlugin=r},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(r){expressionsInterfaces=r},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(r){defaultCurveSegments=r},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(r){idPrefix$1=r};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(n){return typeof n}:_typeof$5=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$5(e)}var dataManager=function(){var e=1,r=[],n,i,a={onmessage:function(){},postMessage:function(y){n({data:y})}},o={postMessage:function(y){a.onmessage({data:y})}};function s(f){if(window.Worker&&window.Blob&&getWebWorker()){var y=new Blob(["var _workerSelf = self; self.onmessage = ",f.toString()],{type:"text/javascript"}),d=URL.createObjectURL(y);return new Worker(d)}return n=f,a}function l(){i||(i=s(function(y){function d(){function w(L,P){var I,C,S=L.length,R,A,q,H;for(C=0;C<S;C+=1)if(I=L[C],"ks"in I&&!I.completed){if(I.completed=!0,I.hasMask){var G=I.masksProperties;for(A=G.length,R=0;R<A;R+=1)if(G[R].pt.k.i)E(G[R].pt.k);else for(H=G[R].pt.k.length,q=0;q<H;q+=1)G[R].pt.k[q].s&&E(G[R].pt.k[q].s[0]),G[R].pt.k[q].e&&E(G[R].pt.k[q].e[0])}I.ty===0?(I.layers=m(I.refId,P),w(I.layers,P)):I.ty===4?x(I.shapes):I.ty===5&&D(I)}}function p(L,P){if(L){var I=0,C=L.length;for(I=0;I<C;I+=1)L[I].t===1&&(L[I].data.layers=m(L[I].data.refId,P),w(L[I].data.layers,P))}}function v(L,P){for(var I=0,C=P.length;I<C;){if(P[I].id===L)return P[I];I+=1}return null}function m(L,P){var I=v(L,P);return I?I.layers.__used?JSON.parse(JSON.stringify(I.layers)):(I.layers.__used=!0,I.layers):null}function x(L){var P,I=L.length,C,S;for(P=I-1;P>=0;P-=1)if(L[P].ty==="sh")if(L[P].ks.k.i)E(L[P].ks.k);else for(S=L[P].ks.k.length,C=0;C<S;C+=1)L[P].ks.k[C].s&&E(L[P].ks.k[C].s[0]),L[P].ks.k[C].e&&E(L[P].ks.k[C].e[0]);else L[P].ty==="gr"&&x(L[P].it)}function E(L){var P,I=L.i.length;for(P=0;P<I;P+=1)L.i[P][0]+=L.v[P][0],L.i[P][1]+=L.v[P][1],L.o[P][0]+=L.v[P][0],L.o[P][1]+=L.v[P][1]}function k(L,P){var I=P?P.split("."):[100,100,100];return L[0]>I[0]?!0:I[0]>L[0]?!1:L[1]>I[1]?!0:I[1]>L[1]?!1:L[2]>I[2]?!0:I[2]>L[2]?!1:null}var _=function(){var L=[4,4,14];function P(C){var S=C.t.d;C.t.d={k:[{s:S,t:0}]}}function I(C){var S,R=C.length;for(S=0;S<R;S+=1)C[S].ty===5&&P(C[S])}return function(C){if(k(L,C.v)&&(I(C.layers),C.assets)){var S,R=C.assets.length;for(S=0;S<R;S+=1)C.assets[S].layers&&I(C.assets[S].layers)}}}(),T=function(){var L=[4,7,99];return function(P){if(P.chars&&!k(L,P.v)){var I,C=P.chars.length;for(I=0;I<C;I+=1){var S=P.chars[I];S.data&&S.data.shapes&&(x(S.data.shapes),S.data.ip=0,S.data.op=99999,S.data.st=0,S.data.sr=1,S.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}},P.chars[I].t||(S.data.shapes.push({ty:"no"}),S.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"})))}}}}(),B=function(){var L=[5,7,15];function P(C){var S=C.t.p;typeof S.a=="number"&&(S.a={a:0,k:S.a}),typeof S.p=="number"&&(S.p={a:0,k:S.p}),typeof S.r=="number"&&(S.r={a:0,k:S.r})}function I(C){var S,R=C.length;for(S=0;S<R;S+=1)C[S].ty===5&&P(C[S])}return function(C){if(k(L,C.v)&&(I(C.layers),C.assets)){var S,R=C.assets.length;for(S=0;S<R;S+=1)C.assets[S].layers&&I(C.assets[S].layers)}}}(),M=function(){var L=[4,1,9];function P(C){var S,R=C.length,A,q;for(S=0;S<R;S+=1)if(C[S].ty==="gr")P(C[S].it);else if(C[S].ty==="fl"||C[S].ty==="st")if(C[S].c.k&&C[S].c.k[0].i)for(q=C[S].c.k.length,A=0;A<q;A+=1)C[S].c.k[A].s&&(C[S].c.k[A].s[0]/=255,C[S].c.k[A].s[1]/=255,C[S].c.k[A].s[2]/=255,C[S].c.k[A].s[3]/=255),C[S].c.k[A].e&&(C[S].c.k[A].e[0]/=255,C[S].c.k[A].e[1]/=255,C[S].c.k[A].e[2]/=255,C[S].c.k[A].e[3]/=255);else C[S].c.k[0]/=255,C[S].c.k[1]/=255,C[S].c.k[2]/=255,C[S].c.k[3]/=255}function I(C){var S,R=C.length;for(S=0;S<R;S+=1)C[S].ty===4&&P(C[S].shapes)}return function(C){if(k(L,C.v)&&(I(C.layers),C.assets)){var S,R=C.assets.length;for(S=0;S<R;S+=1)C.assets[S].layers&&I(C.assets[S].layers)}}}(),F=function(){var L=[4,4,18];function P(C){var S,R=C.length,A,q;for(S=R-1;S>=0;S-=1)if(C[S].ty==="sh")if(C[S].ks.k.i)C[S].ks.k.c=C[S].closed;else for(q=C[S].ks.k.length,A=0;A<q;A+=1)C[S].ks.k[A].s&&(C[S].ks.k[A].s[0].c=C[S].closed),C[S].ks.k[A].e&&(C[S].ks.k[A].e[0].c=C[S].closed);else C[S].ty==="gr"&&P(C[S].it)}function I(C){var S,R,A=C.length,q,H,G,U;for(R=0;R<A;R+=1){if(S=C[R],S.hasMask){var j=S.masksProperties;for(H=j.length,q=0;q<H;q+=1)if(j[q].pt.k.i)j[q].pt.k.c=j[q].cl;else for(U=j[q].pt.k.length,G=0;G<U;G+=1)j[q].pt.k[G].s&&(j[q].pt.k[G].s[0].c=j[q].cl),j[q].pt.k[G].e&&(j[q].pt.k[G].e[0].c=j[q].cl)}S.ty===4&&P(S.shapes)}}return function(C){if(k(L,C.v)&&(I(C.layers),C.assets)){var S,R=C.assets.length;for(S=0;S<R;S+=1)C.assets[S].layers&&I(C.assets[S].layers)}}}();function O(L){L.__complete||(M(L),_(L),T(L),B(L),F(L),w(L.layers,L.assets),p(L.chars,L.assets),L.__complete=!0)}function D(L){L.t.a.length===0&&"m"in L.t.p}var N={};return N.completeData=O,N.checkColors=M,N.checkChars=T,N.checkPathProperties=B,N.checkShapes=F,N.completeLayers=w,N}if(o.dataManager||(o.dataManager=d()),o.assetLoader||(o.assetLoader=function(){function w(v){var m=v.getResponseHeader("content-type");return m&&v.responseType==="json"&&m.indexOf("json")!==-1||v.response&&_typeof$5(v.response)==="object"?v.response:v.response&&typeof v.response=="string"?JSON.parse(v.response):v.responseText?JSON.parse(v.responseText):null}function p(v,m,x,E){var k,_=new XMLHttpRequest;try{_.responseType="json"}catch{}_.onreadystatechange=function(){if(_.readyState===4)if(_.status===200)k=w(_),x(k);else try{k=w(_),x(k)}catch(T){E&&E(T)}};try{_.open(["G","E","T"].join(""),v,!0)}catch{_.open(["G","E","T"].join(""),m+"/"+v,!0)}_.send()}return{load:p}}()),y.data.type==="loadAnimation")o.assetLoader.load(y.data.path,y.data.fullPath,function(w){o.dataManager.completeData(w),o.postMessage({id:y.data.id,payload:w,status:"success"})},function(){o.postMessage({id:y.data.id,status:"error"})});else if(y.data.type==="complete"){var g=y.data.animation;o.dataManager.completeData(g),o.postMessage({id:y.data.id,payload:g,status:"success"})}else y.data.type==="loadData"&&o.assetLoader.load(y.data.path,y.data.fullPath,function(w){o.postMessage({id:y.data.id,payload:w,status:"success"})},function(){o.postMessage({id:y.data.id,status:"error"})})}),i.onmessage=function(f){var y=f.data,d=y.id,g=r[d];r[d]=null,y.status==="success"?g.onComplete(y.payload):g.onError&&g.onError()})}function c(f,y){e+=1;var d="processId_"+e;return r[d]={onComplete:f,onError:y},d}function u(f,y,d){l();var g=c(y,d);i.postMessage({type:"loadAnimation",path:f,fullPath:window.location.origin+window.location.pathname,id:g})}function h(f,y,d){l();var g=c(y,d);i.postMessage({type:"loadData",path:f,fullPath:window.location.origin+window.location.pathname,id:g})}function b(f,y,d){l();var g=c(y,d);i.postMessage({type:"complete",animation:f,id:g})}return{loadAnimation:u,loadData:h,completeAnimation:b}}(),ImagePreloader=function(){var e=function(){var p=createTag("canvas");p.width=1,p.height=1;var v=p.getContext("2d");return v.fillStyle="rgba(0,0,0,0)",v.fillRect(0,0,1,1),p}();function r(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(p,v,m){var x="";if(p.e)x=p.p;else if(v){var E=p.p;E.indexOf("images/")!==-1&&(E=E.split("/")[1]),x=v+E}else x=m,x+=p.u?p.u:"",x+=p.p;return x}function a(p){var v=0,m=setInterval((function(){var x=p.getBBox();(x.width||v>500)&&(this._imageLoaded(),clearInterval(m)),v+=1}).bind(this),50)}function o(p){var v=i(p,this.assetsPath,this.path),m=createNS("image");isSafari?this.testImageLoaded(m):m.addEventListener("load",this._imageLoaded,!1),m.addEventListener("error",(function(){x.img=e,this._imageLoaded()}).bind(this),!1),m.setAttributeNS("http://www.w3.org/1999/xlink","href",v),this._elementHelper.append?this._elementHelper.append(m):this._elementHelper.appendChild(m);var x={img:m,assetData:p};return x}function s(p){var v=i(p,this.assetsPath,this.path),m=createTag("img");m.crossOrigin="anonymous",m.addEventListener("load",this._imageLoaded,!1),m.addEventListener("error",(function(){x.img=e,this._imageLoaded()}).bind(this),!1),m.src=v;var x={img:m,assetData:p};return x}function l(p){var v={assetData:p},m=i(p,this.assetsPath,this.path);return dataManager.loadData(m,(function(x){v.img=x,this._footageLoaded()}).bind(this),(function(){v.img={},this._footageLoaded()}).bind(this)),v}function c(p,v){this.imagesLoadedCb=v;var m,x=p.length;for(m=0;m<x;m+=1)p[m].layers||(!p[m].t||p[m].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(p[m]))):p[m].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(p[m]))))}function u(p){this.path=p||""}function h(p){this.assetsPath=p||""}function b(p){for(var v=0,m=this.images.length;v<m;){if(this.images[v].assetData===p)return this.images[v].img;v+=1}return null}function f(){this.imagesLoadedCb=null,this.images.length=0}function y(){return this.totalImages===this.loadedAssets}function d(){return this.totalFootages===this.loadedFootagesCount}function g(p,v){p==="svg"?(this._elementHelper=v,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function w(){this._imageLoaded=r.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=a.bind(this),this.createFootageData=l.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return w.prototype={loadAssets:c,setAssetsPath:h,setPath:u,loadedImages:y,loadedFootages:d,destroy:f,getAsset:b,createImgData:s,createImageData:o,imageLoaded:r,footageLoaded:n,setCacheType:g},w}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(r,n){if(this._cbs[r])for(var i=this._cbs[r],a=0;a<i.length;a+=1)i[a](n)},addEventListener:function(r,n){return this._cbs[r]||(this._cbs[r]=[]),this._cbs[r].push(n),(function(){this.removeEventListener(r,n)}).bind(this)},removeEventListener:function(r,n){if(!n)this._cbs[r]=null;else if(this._cbs[r]){for(var i=0,a=this._cbs[r].length;i<a;)this._cbs[r][i]===n&&(this._cbs[r].splice(i,1),i-=1,a-=1),i+=1;this._cbs[r].length||(this._cbs[r]=null)}}};var markerParser=function(){function e(r){for(var n=r.split(`\r
119
+ </span>`)}else e.format==="percent"?(K=+K,isNaN(K)||(K=(K*100).toFixed(2),A=A.replace(V,`<span class="${G}" style="color:${v(K)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(d)}">${K}%</span>`))):e.format==="money"?(K=+K,isNaN(K)||(K=formatMoney(K),A=A.replace(V,`<span class="${G}" style="color:${v(K)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(d)}">${K}</span>`))):ne==="thousands"?(K=+K,isNaN(K)||(K=formatThousands(K),A=A.replace(V,`<span class="${G}" style="color:${v(K)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(d)}">${K}</span>`))):A=A.replace(V,`<span class="${G}" style="color:${v(K)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(d)}">${K}</span>`)}}if(H||(H=`<span class="${G}" style="color: ${v(A)};${vue.unref(d)}">${A}</span>`),e.unitShow&&e.unitText){const{unitTop:j,unitLeft:V}=e;let $="position:relative;";j&&($+=`top:${j};`),V&&($+=`margin-left:${V};`),H+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${$};${vue.unref(d)}'>${e.unitText}</span>`}return e.exceedConfig&&(H=`<span class="${G}" style="display: inline-block;color: ${v(H)};">${H}</span>`),H.includes("span")||(H=`<span class="${G}" style="color: ${v(H)};">${H}</span>`),H});function v(C){let S="",R=!1;const{targetValue:A,targetShow:q,notExpectColor:H}=e;if(q){switch(e.targetRule){case"equal":C!==A&&(R=!0);break;case"greater":C<=A&&(R=!0);break;case"greater_equal":C<A&&(R=!0);break;case"less":C>=A&&(R=!0);break;case"less_equal":C>A&&(R=!0);break}R&&(S=H)}return S}const{pageMode:m}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",requestList:[]}),{pageId:x}=vue.inject("templateOperate",{pageId:""})||{},E=useRequestData(e,C=>{var S;l(((S=C==null?void 0:C.data)==null?void 0:S.data)||{})}),k=vue.ref(!1),_=async()=>{var C,S,R;try{k.value=!0;const A=await E();(C=A==null?void 0:A.data)!=null&&C.data.rowsToData?l(((S=A==null?void 0:A.data)==null?void 0:S.data.rowsToData)||{}):l(((R=A==null?void 0:A.data)==null?void 0:R.data)||{})}catch(A){console.error(A)}finally{k.value=!1}},T=C=>{const S=e.id,R=c(S);u(S,{...R,value:C||"",RECORD:C||""})},B=()=>{T("")},M=C=>{var R,A;const{data:S}=(C==null?void 0:C.data)||{};if(S){n.value=!1;const{columns:q=[],rows:H=[]}=((R=C==null?void 0:C.data)==null?void 0:R.data)??{},{graphicConfig:G}=e;let U={};if(q.length>0)if((A=G==null?void 0:G.dimensionList)!=null&&A.length){const j=q[0];j&&(H!=null&&H.length)&&(U={value:H[0][j]})}else{const j=q.find(V=>!!V);j&&(U={value:isNaN(H[j])?0:H[j]||0})}T(U==null?void 0:U.value),l(U)}else n.value=!0,T("NaN"),l({value:"NaN"})},F=useIndicatorData(e,M),O=async()=>{try{k.value=!0;const C=await F();M(C)}catch(C){console.error(C)}finally{k.value=!1,f(e.id,!0)}},D=()=>{switch(e.dataType){case"indicator":O();break;case"request":{const{openCustomRequestData:C,customRequestName:S,customRequestField:R}=e;C||C===void 0?_():b(S,A=>{A&&(A.rowsToData?l({[R]:A.rowsToData[R]}):l({[R]:A[R]}))});break}}},{setRequest:N}=vue.inject(REQUEST_MODEL,{setRequest:({id:C,sortNum:S,requestFn:R})=>{}});typeof N=="function"&&N({id:e.id,requestFn:D,sortNum:e.requestSort}),r({refreshData:D});const L=useEmitEvent(e),P=L("click",()=>{const C=document.getElementsByClassName(`ecan-text_${e.id}`);C!=null&&C.length&&T(C[0].innerText),setTimeout(()=>{T("")},0),!(!e.linkPage&&!e.href)&&handleJumpLink(e,{pageMode:vue.unref(m),targetTemplate:e.targetTemplate,getRecordValueByKeyName:h,setTemplateData:y})});useOnEvent(e,{refreshData:D,resetRecord:B,click:P});const I=L("valueChange",()=>{});return vue.watch(()=>p.value,(C,S)=>{C!==S&&I()}),{style:i,myText:p,loading:k,click:P,textIndent:s,vFontSize:o,gradientStyle:g,cursorStyle:w}}}),__injectCSSVars__$4=()=>{vue.useCssVars(e=>({"732b96b7":e.vFontSize,cb3169b0:e.textIndent,"21de5300":e.percentageSide}))},__setup__$4=__default__$4.setup;__default__$4.setup=__setup__$4?(e,r)=>(__injectCSSVars__$4(),__setup__$4(e,r)):__injectCSSVars__$4;const Text_vue_vue_type_style_index_0_scoped_43215f8b_lang="",Text_vue_vue_type_style_index_1_lang="",_hoisted_1$f=["innerHTML"];function _sfc_render$v(e,r,n,i,a,o){const s=vue.resolveComponent("skeleton");return e.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["ecan-text","ecan-text_"+e.id]),style:vue.normalizeStyle({...e.style,...e.gradientStyle,...e.cursorStyle}),innerHTML:e.myText,onClick:r[0]||(r[0]=(...l)=>e.click&&e.click(...l))},null,14,_hoisted_1$f))}const Text=_export_sfc$1(__default__$4,[["render",_sfc_render$v],["__scopeId","data-v-43215f8b"]]),EcanText=withInstall$1(Text),_sfc_main$q=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$u(e,r,n,i,a,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$e,vue.toDisplayString(e.text),1)}const ScrollText=_export_sfc$1(_sfc_main$q,[["render",_sfc_render$u],["__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$p=vue.defineComponent({name:"EcanTimeDisplay",props:{...timeDisplayComponentProps},setup(e){const{pageMode:r}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),n=usePickComponentStyle(e),i=()=>{const{format:h,operate:b}=e;let f=dayjs();if(b){const{type:y,value:d,mode:g}=b;switch(y){case"add":f=f.add(d,g);break;case"minus":f=f.subtract(d,g)}}return f.format(h)},a=vue.ref();vue.watch(()=>[e.operate,e.format],()=>{a.value=i()},{immediate:!0,deep:!0}),vue.watch(()=>e.updateInterval,()=>{u()},{deep:!0});let o=null;const s=()=>{clearInterval(o),o=null},c=useEmitEvent(e)("timeChange",()=>{}),u=()=>{o&&s();let h=1e3;const{value:b,mode:f}=e.updateInterval||{};b&&(h=h*b);const y={second:1,minute:60,hour:60*60,day:24*60*60};f&&(h=h*y[f]),o=setInterval(()=>{a.value=i(),vue.unref(r)!=="design"&&c()},h)};return useOnEvent(e,{timeChange:c}),vue.onMounted(()=>{u()}),vue.onUnmounted(()=>{s()}),{style:n,time:a}}}),TimeDisplay_vue_vue_type_style_index_0_scoped_b9216314_lang="";function _sfc_render$t(e,r,n,i,a,o){return vue.openBlock(),vue.createElementBlock("div",{class:"time-display",style:vue.normalizeStyle(e.style)},vue.toDisplayString(e.time),5)}const TimeDisplay=_export_sfc$1(_sfc_main$p,[["render",_sfc_render$t],["__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$o=vue.defineComponent({name:"EcanList",components:{Skeleton,ATooltip:antDesignVue.Tooltip,MarqueeScroll},props:{...listComponentProps},setup(e,{expose:r}){const n=vue.ref(),i=usePickComponentStyle(e,["backgroundColor"]),a=(I,C)=>{const{format:S,customFormatter:R}=C;if(S==null||S==="")return I;const A={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,custom:formatCustom};return A[S]?S==="custom"?A[S](I,R)||"":A[S](I)||"":""},o=(I,C)=>{const S=parseFloat(I+"");if(C!=="contrast")return"";switch(!0){case S>=0:return"goUp";case S<0:return"goDown"}},s=useRequestData(e,I=>{var C;n.value=((C=I==null?void 0:I.data)==null?void 0:C.data.rows)||[]}),l=vue.ref(!1),c=async()=>{var I;if(e.dataType==="request")try{l.value=!0;const C=await s();n.value=((I=C==null?void 0:C.data)==null?void 0:I.data.rows)||[]}catch(C){console.error(C)}finally{l.value=!1}};vue.watch(()=>e.data,()=>{(e.dataType==="static"||!vue.unref(n))&&(n.value=e.data)},{immediate:!0,deep:!0});const u=vue.computed(()=>({key:"SEQ",width:e.seqWidth,title:e.seqName,align:"center",fontSize:e.seqFontSize})),h=vue.computed(()=>{const{columns:I,isUseSeq:C}=e;return C?[vue.unref(u),...I]:I}),b=I=>{var R;const{columns:C=[],rows:S=[]}=((R=I==null?void 0:I.data)==null?void 0:R.data)??{};e.isUseSeq&&C.unshift(e.seqName),h.value.forEach((A,q)=>{(!e.isUseSeq||q!==0)&&(A.title=C[q],A.key=C[q])}),n.value=S},f=useIndicatorData(e,b),y=async()=>{try{l.value=!0;const I=await f();b(I)}catch(I){console.error(I)}finally{l.value=!1}},d=()=>{switch(e.dataType){case"indicator":y();break;case"request":c();break}},g=useEmitEvent(e),{getGlobalModel:w,setGlobalModel:p}=vue.inject(GLOBAL_MODEL,{getGlobalModel:I=>{},setGlobalModel:(I,C)=>{}}),v=I=>{g("click",()=>{const C=w(e.id);p(e.id,{...C,type:e.type,RECORD:I})})()};useOnEvent(e,{refreshData:d,resetRecord:()=>{const I=e.id,C=w(I);p(I,{...C,type:e.type,RECORD:""})}});const{setRequest:x}=vue.inject(REQUEST_MODEL,{setRequest:({id:I,sortNum:C,requestFn:S})=>{}});typeof x=="function"&&x({id:e.id,requestFn:d,sortNum:e.requestSort}),r({refreshData:d});const E=(I,C)=>({flex:I.width?"none":"1",width:I.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:(C?I.cellAlign:I.align)||"left",backgroundColor:I.cellColor}),k=(I,C)=>{let S=0;const R=vue.unref(n).map(q=>q[C]),A=Math.max(...R);return A&&(S=I[C]/A*100),S},_=I=>{const{progressColor:C="#1890ff",progressGradientColor:S=""}=I;return S?{background:`linear-gradient(to right, ${C} 0%, ${S} 100%)`}:{backgroundColor:C||"#1890ff"}},T=vue.computed(()=>{const I=parseFloat(e.seqFontSize)+5;return{width:I+10,height:I}}),{pageMode:B}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),M=vue.computed(()=>vue.unref(B)!=="design"&&e.isAutoScroll),F=I=>{const{seqIconConfig:C}=e;let S=C.find(R=>R.key===I+1);return S||(S=C.find(R=>R.key==="other")),!!(S!=null&&S.icon)},O=(I,C)=>{const{seqIconConfig:S}=e;let R=S.find(A=>A.key===I+1);return R||(R=S.find(A=>A.key==="other")),C===1?R!=null&&R.icon?useImagePath(R.icon):"":C===2?(R==null?void 0:R.color)||"#fff":""},D=I=>{const{seqIndexFormatter:C}=e,S=I+1;return C?useVariablesInText(C,{textData:{index:S}},{useNewline:!1,useSpace:!0}):S},N=vue.computed(()=>parseFloat(e.itemWidth)!==100?{height:"100%"}:{}),L=vue.computed(()=>!e.itemWidth||e.itemWidth==="100%"?"0":e.itemColSpan);return{style:i,formatFn:a,contrastClass:o,dataSource:n,loading:l,myColumns:h,click:v,getColumnStyle:E,getPercentage:k,getBackgroundColor:_,isShowSeqIcon:F,getSeqIconData:O,seqIcon4,seqIcon5,seqIcon6,seqIcon7,iconSize:T,isScroll:M,formatSeq:D,wrapStyle:N,colSpan:L,getText:(I,C)=>(I.format!=null||I.format!=="")&&a(C[I.key],I)}}}),List_vue_vue_type_style_index_0_scoped_d6191ac4_lang="",List_vue_vue_type_style_index_1_lang="",_withScopeId$4=e=>(vue.pushScopeId("data-v-d6191ac4"),e=e(),vue.popScopeId(),e),_hoisted_1$d={key:0,class:"title"},_hoisted_2$5={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$s(e,r,n,i,a,o){const s=vue.resolveComponent("a-tooltip"),l=vue.resolveComponent("marquee-scroll"),c=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-list",style:vue.normalizeStyle(e.style)},[vue.createVNode(c,{loading:e.loading},{default:vue.withCtx(()=>[e.useTitle?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$d,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.columnCount,u=>(vue.openBlock(),vue.createElementBlock("div",{class:"title-inner",style:vue.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:u%e.columnCount!==0?e.itemColSpan:"",padding:`0 ${e.itemPadding}`}),key:u},[e.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$5)):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myColumns,(h,b)=>(vue.openBlock(),vue.createElementBlock("div",{class:"column",key:h.key||b,style:vue.normalizeStyle({color:h.titleColor,...e.getColumnStyle(h)})},vue.toDisplayString(h.title),5))),128))],4))),128))])):vue.createCommentVNode("",!0),e.dataSource.length>0?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-list-content",style:vue.normalizeStyle({paddingTop:e.useTitle?e.itemRowSpan:0,height:e.useTitle?"calc(100% - 40px)":"100%"})},[vue.createVNode(l,{visible:e.isScroll,step:e.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap",...e.wrapStyle}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.dataSource.slice(0,e.sliceCount),(u,h)=>(vue.openBlock(),vue.createElementBlock("div",{class:"item",style:vue.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(${e.itemWidth} - ${e.colSpan})`,marginRight:e.colSpan,marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:u.id||h,onClick:b=>e.click(u)},[e.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$2,[_hoisted_5$2,vue.createElementVNode("div",_hoisted_6$2," Top "+vue.toDisplayString(h+1),1)])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myColumns,b=>{var f;return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["column",e.contrastClass(u[b.key],b.format),b.key==="SEQ"?"seq-column":""]),key:b.key,style:vue.normalizeStyle({fontSize:b.fontSize,color:e.contrastClass(u[b.key],b.format)===""?b.color:"",fontWeight:b.fontWeight,...e.getColumnStyle(b,"cell")})},[b.key==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[e.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[(f=e.seqIconConfig)!=null&&f.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"icon-box",style:vue.normalizeStyle({width:e.seqIconWidth||"",height:e.seqIconHeight||""})},[e.seqIconWidth&&e.seqIconHeight&&e.isShowSeqIcon(h)?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"custom-seq-icon",src:e.getSeqIconData(h,1),style:vue.normalizeStyle({width:e.seqIconWidth,height:e.seqIconHeight})},null,12,_hoisted_7$2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"custom-seq-text",style:vue.normalizeStyle({fontSize:e.seqFontSize,color:e.getSeqIconData(h,2),lineHeight:e.seqIconHeight||"",left:e.seqIconOffsetX,top:e.seqIconOffsetY})},vue.toDisplayString(e.formatSeq(h)),5)],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$2,[h===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,_hoisted_9$2)):h===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,_hoisted_10$2)):h===2?(vue.openBlock(),vue.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,_hoisted_11$2)):h>=3?(vue.openBlock(),vue.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,_hoisted_12$2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"seq-icon seq-text",style:vue.normalizeStyle({fontSize:e.seqFontSize})},vue.toDisplayString(e.formatSeq(h)),5)]))],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_13$2,vue.toDisplayString(e.formatSeq(h)),1))],64)):b.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"progress-cell",style:vue.normalizeStyle({height:e.itemHeight})},[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({height:b.progressWidth||"14px",backgroundColor:b.progressBaseColor})},[vue.createVNode(s,{title:u[b.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({borderRadius:"10px",height:b.progressWidth||"14px",width:`${e.getPercentage(u,b.key)}%`,...e.getBackgroundColor(b)})},null,4)]),_:2},1032,["title"])],4)],4)):(vue.openBlock(),vue.createElementBlock("span",{key:2,title:e.getText(b,u)},vue.toDisplayString(e.getText(b,u)),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$o,[["render",_sfc_render$s],["__scopeId","data-v-d6191ac4"]]),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$n=vue.defineComponent({name:"EcanProportion",components:{AProgress:antDesignVue.Progress,Skeleton},props:{...proportionComponentProps},setup(e,{expose:r}){const n=vue.ref(!1),{pageMode:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),a=usePickComponentStyle(e),o=vue.computed(()=>{const E=e.width;return parseFloat(E)}),s=vue.ref({});vue.watch(()=>e.data,()=>{(e.dataType==="static"||vue.unref(i)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=vue.computed(()=>{const E=vue.unref(s),k=+e.variableDefaultValue;if(E==null)return isNaN(k)?0:k;const _=e.text.match(/\{(.+?)\}/g)||[];let T;const B=new Set(Object.keys(E));for(let M=0;M<_.length;M++){const F=_[M],O=F.slice(1,F.length-1);if(B.has(O)){T=E[O];break}}return typeof T=="number"?T=T*100:typeof T=="string"&&!isNaN(+T)?T=+T*100:isNaN(k)?T=0:T=k*100,e.decimalFormat&&(T=+T.toFixed(2)),T}),c=vue.computed(()=>{var B;let E=e.text;if(E==="")return vue.unref(l);const k=e.variableDefaultValue,_=vue.unref(s),T=E.match(/\{(.+?)\}/g)||[];for(let M=0;M<T.length;M++){const F=T[M];let O=F.slice(1,F.length-1);const D=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,N=F.match(D);for(let P=0;P<(N==null?void 0:N.length);P++){const I=(B=N[P])==null?void 0:B.trim();_[I]!=null&&(O=O.replace(I,_[I]))}let L=O;try{(/\(.*\)/g.test(O)||/[+/\\*]/g.test(O))&&(L=runCode(O))}catch(P){console.error(P)}typeof+L=="number"&&!isNaN(+L)?(L=+L*100,e.decimalFormat&&(L=L.toFixed(2))):typeof L!="string"&&(L=k),E=E.replace(F,`<span style="color: ${e.variableColor};">${L+""}</span>`)}return E=E==null?void 0:E.replace(/\n|\\n/g,"<br/>"),vue.unref(n)?"NaN":E}),u=useRequestData(e,E=>{var k;s.value=((k=E==null?void 0:E.data)==null?void 0:k.data)||{}}),h=vue.ref(!1),b=async()=>{var E,k,_,T,B;if(e.dataType==="request")try{h.value=!0;const M=await u();s.value=((E=M==null?void 0:M.data)==null?void 0:E.data)||{},(_=(k=M==null?void 0:M.data)==null?void 0:k.data)!=null&&_.rowsToData&&(s.value=((B=(T=M==null?void 0:M.data)==null?void 0:T.data)==null?void 0:B.rowsToData)||{})}catch(M){console.error(M)}finally{h.value=!1}},f=(E={})=>{s.value=E},y=E=>{var _;const{data:k}=(E==null?void 0:E.data)||{};if(k){n.value=!1;const{columns:T=[],rows:B=[]}=((_=E==null?void 0:E.data)==null?void 0:_.data)??{};let M={};if(T.length>0){const F=T.find(O=>!!O);F&&(M={percent:B[F]})}f(M)}else n.value=!0,f({percent:"NaN"})},d=useIndicatorData(e,y),g=async()=>{try{h.value=!0;const E=await d();y(E)}catch(E){console.error(E)}finally{h.value=!1}},w=()=>{switch(e.dataType){case"indicator":g();break;case"request":b();break}};useOnEvent(e,{refreshData:w}),r({refreshData:w});const v=useEmitEvent(e)("click",()=>{}),{setRequest:m}=vue.inject(REQUEST_MODEL,{setRequest:({id:E,sortNum:k,requestFn:_})=>{}});typeof m=="function"&&m({id:e.id,requestFn:w,sortNum:e.requestSort});const x=vue.computed(()=>{const{gradientShow:E,gradientColor:k,gradientOffset:_,strokeColor:T}=e;let B=T;return E&&k&&(B={"0%":T,[`${_*100}%`]:k}),B});return{style:a,myWidth:o,text:c,myValue:l,loading:h,click:v,customStrokeColor:x}}}),Proportion_vue_vue_type_style_index_0_scoped_a33d058a_lang="",_hoisted_1$c=["innerHTML"];function _sfc_render$r(e,r,n,i,a,o){const s=vue.resolveComponent("skeleton"),l=vue.resolveComponent("a-progress");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-proportion",style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.customStrokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,showInfo:e.strokeTextShow,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:vue.withCtx(()=>[e.loading?(vue.openBlock(),vue.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"format",style:vue.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},[vue.createElementVNode("span",{style:{"white-space":"nowrap"},innerHTML:e.text},null,8,_hoisted_1$c)],4)):vue.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Proportion=_export_sfc$1(_sfc_main$n,[["render",_sfc_render$r],["__scopeId","data-v-a33d058a"]]),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$m=vue.defineComponent({name:"EcanCounter",components:{Skeleton},props:{...counterComponentProps},setup(e,{expose:r}){const n=vue.ref(),i=usePickComponentStyle(e),a=vue.computed(()=>({width:e.unitWidth,height:e.unitHeight,marginRight:e.unitInterval+"px"})),o=vue.computed(()=>({color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle}));vue.watch(()=>[e.data,e.dataType],([x,E])=>{E==="static"&&(n.value=x)},{immediate:!0});const{getGlobalModel:s,setGlobalModel:l}=vue.inject(GLOBAL_MODEL,{getGlobalModel:x=>{},setGlobalModel:(x,E)=>{}}),u=useEmitEvent(e)("click",()=>{const x=s(e.id);l(e.id,{...x,type:e.type,value:vue.unref(n)})}),h=()=>{const x=e.id,E=s(x);l(x,{...E,type:e.type,value:""})},b=useRequestData(e,x=>{var E,k;n.value=((k=(E=x==null?void 0:x.data)==null?void 0:E.data)==null?void 0:k.value)||""}),f=vue.ref(!1),y=async()=>{var x,E;try{f.value=!0;const k=await b();n.value=((E=(x=k==null?void 0:k.data)==null?void 0:x.data)==null?void 0:E.value)||""}catch(k){console.error(k)}finally{f.value=!1}},d=x=>{var _;const{data:E}=(x==null?void 0:x.data)||{};let k="";if(E){const{columns:T=[],rows:B=[]}=((_=x==null?void 0:x.data)==null?void 0:_.data)??{};if(T.length>0){const M=T.find(F=>!!F);M&&(k=B[M]||"")}}n.value=String(k)},g=useIndicatorData(e,d),w=async()=>{try{f.value=!0;const x=await g();d(x)}catch(x){console.error(x)}finally{f.value=!1}},p=()=>{switch(e.dataType){case"indicator":w();break;case"request":y();break}},v=vue.computed(()=>{const x=[],{digits:E}=e,k=vue.unref(n)?vue.unref(n).split("").reverse().join(""):"";for(let _=0;_<E;_++)k&&k[_]?x.push(k[_]):x.push("0");return x.reverse()});useOnEvent(e,{refreshData:p,resetRecord:h});const{setRequest:m}=vue.inject(REQUEST_MODEL,{setRequest:({id:x,sortNum:E,requestFn:k})=>{}});return typeof m=="function"&&m({id:e.id,requestFn:p,sortNum:e.requestSort}),r({refreshData:p}),{style:i,valueList:v,digitsStyle:a,fontStyle:o,loading:f,useImagePath,click:u}}}),Counter_vue_vue_type_style_index_0_scoped_82bd9070_lang="",_hoisted_1$b=["src"];function _sfc_render$q(e,r,n,i,a,o){var l;const s=vue.resolveComponent("skeleton");return e.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-counter",style:vue.normalizeStyle(e.style),onClick:r[0]||(r[0]=(...c)=>e.click&&e.click(...c))},[(l=e.valueList)!=null&&l.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(e.valueList,(c,u)=>(vue.openBlock(),vue.createElementBlock("div",{class:"digits-item",style:vue.normalizeStyle(e.digitsStyle),key:u},[e.counterBackgroundImage?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"item-image",src:e.useImagePath(e.counterBackgroundImage)},null,8,_hoisted_1$b)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:"item-text",style:vue.normalizeStyle(e.fontStyle)},vue.toDisplayString(c),5)],4))),128)):vue.createCommentVNode("",!0)],4))}const Counter=_export_sfc$1(_sfc_main$m,[["render",_sfc_render$q],["__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$l=vue.defineComponent({name:"EcanInput",components:{AInput:antDesignVue.Input},props:{...inputComponentProps},setup(e){const r=usePickComponentStyle(e),n=vue.ref(""),{getGlobalModel:i,setGlobalModel:a,getRecordValueByKeyName:o}=vue.inject(GLOBAL_MODEL,{getGlobalModel:h=>{},setGlobalModel:(h,b)=>{},getRecordValueByKeyName:h=>{}});vue.watch(()=>e.value,h=>{n.value=o(h)},{immediate:!0}),a(e.id,{type:e.type,value:n});const s=()=>{const h=i(e.id);a(e.id,{...h,RECORD:n})},l=useEmitEvent(e),c=lodashEs.debounce(l("inputChange",()=>{s()}),300),u=l("inputBlur",()=>{});return{style:r,myValue:n,inputBlur:u,inputChange:c}}}),Input_vue_vue_type_style_index_0_lang="";function _sfc_render$p(e,r,n,i,a,o){const s=vue.resolveComponent("a-input");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-input",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":r[0]||(r[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:vue.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const Input=_export_sfc$1(_sfc_main$l,[["render",_sfc_render$p]]),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"},datePickerComponentProps=transformToComponentProps(datePickerProps$1),datePickerEvents=["dateChange"],__default__$3=vue.defineComponent({name:"EcanDatePicker",props:{...datePickerComponentProps},components:{ADatePicker:antDesignVue.DatePicker,AInput:antDesignVue.Input,CalendarOutlined:CalendarOutlined$1,CloseCircleFilled:CloseCircleFilled$1},setup(e){const r=vue.inject("isMobile",!1),n=vue.inject("scaleValue",{widthScale:"1",heightScale:"1"}),i=usePickComponentStyle(e),a=()=>document.getElementById("ProviderConfig")||document.body,o=vue.ref(null),s=vue.ref(""),l=vue.ref(!1),c=vue.ref([]),u=vue.computed(()=>{let _=["year","month","day"];switch(e.picker){case"year":_=["year"];break;case"month":_=["year","month"];break}return _});vue.watch(()=>[e.value,e.useCurrentTime,e.operate],([_,T,B])=>{let M=null;if(_?M=dayjs(useVariablesInText(_)):T&&(M=dayjs()),B&&M){const{type:F,value:O,mode:D}=B;switch(F){case"add":M=M.add(O,D);break;case"minus":M=M.subtract(O,D)}}o.value=M,vue.unref(r)&&E(M)},{deep:!0,immediate:!0});const{setGlobalModel:h}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(_,T)=>{}});h(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:o});const f=useEmitEvent(e)("dateChange",()=>{}),y=()=>{vue.unref(o)&&f()};useOnEvent(e,{dateChange:f});const d=vue.ref({}),g=vue.ref({}),w=_=>{_?setTimeout(()=>{g.value=vue.unref(d)},300):g.value={}};vue.onMounted(()=>{setTimeout(()=>{const _=document.querySelector(`#ecan-date-picker-${e.id}`);if(_){const T=_.getBoundingClientRect(),B=parseFloat(vue.unref(n).widthScale)*280;document.body.clientWidth-T.left<B&&(d.value.marginLeft=-1*(B-T.width)+"px")}},0)});const p=()=>{E(vue.unref(o)),l.value=!0},v=()=>{E(),o.value=null},m=()=>{const _=dayjs(vue.unref(c).join("-"));o.value=_,E(_),l.value=!1,y()},x=()=>{o.value=dayjs(),E(),s.value=dayjs().format(e.format),l.value=!1};function E(_){c.value=k(_||dayjs()),s.value=(_==null?void 0:_.format(e.format))||""}function k(_){const T=[];for(const B of vue.unref(u))B==="day"?T.push(_.date()):T.push(_[B]()+(B==="month"?1:0));return T}return{style:i,getPopupContainer:a,myValue:o,locale,change:y,scaleValue:n,popupStyle:d,customStyle:g,openChange:w,isMobile:r,mobileDateStr:s,handleClearDate:v,openDatePick:p,datePickVisible:l,columnsType:u,mobileDate:c,onConfirmDate:m,onCancelDate:x}}}),__injectCSSVars__$3=()=>{vue.useCssVars(e=>({"43c34aaa":e.optionFontSize}))},__setup__$3=__default__$3.setup;__default__$3.setup=__setup__$3?(e,r)=>(__injectCSSVars__$3(),__setup__$3(e,r)):__injectCSSVars__$3;const DatePicker_vue_vue_type_style_index_0_scoped_a500e23b_lang="",DatePicker_vue_vue_type_style_index_1_lang="",_hoisted_1$a=["id"];function _sfc_render$o(e,r,n,i,a,o){const s=vue.resolveComponent("calendar-outlined"),l=vue.resolveComponent("close-circle-filled"),c=vue.resolveComponent("a-input"),u=vue.resolveComponent("van-date-picker"),h=vue.resolveComponent("van-popup"),b=vue.resolveComponent("a-date-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-date-picker",style:vue.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[e.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(c,{value:e.mobileDateStr,placeholder:"请选择日期",readonly:"",onClick:e.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(s,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[e.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(l,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(e.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(h,{show:e.datePickVisible,"onUpdate:show":r[1]||(r[1]=f=>e.datePickVisible=f),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[e.datePickVisible?(vue.openBlock(),vue.createBlock(u,{key:0,modelValue:e.mobileDate,"onUpdate:modelValue":r[0]||(r[0]=f=>e.mobileDate=f),"columns-type":e.columnsType,"cancel-button-text":"此刻",onConfirm:e.onConfirmDate,onCancel:e.onCancelDate},null,8,["modelValue","columns-type","onConfirm","onCancel"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(b,{key:1,class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":r[2]||(r[2]=f=>e.myValue=f),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,onOpenChange:e.openChange,getPopupContainer:e.getPopupContainer,popupStyle:{fontSize:e.optionFontSize,transform:`scale(${e.scaleValue.widthScale}, ${e.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","getPopupContainer","popupStyle"]))],12,_hoisted_1$a)}const DatePicker$1=_export_sfc$1(__default__$3,[["render",_sfc_render$o],["__scopeId","data-v-a500e23b"]]),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(e,r){(function(n,i){e.exports=i()})(commonjsGlobal,function(){var n="month",i="quarter";return function(a,o){var s=o.prototype;s.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var l=s.add;s.add=function(u,h){return u=Number(u),this.$utils().p(h)===i?this.add(3*u,n):l.bind(this)(u,h)};var c=s.startOf;s.startOf=function(u,h){var b=this.$utils(),f=!!b.u(h)||h;if(b.p(u)===i){var y=this.quarter()-1;return f?this.month(3*y).startOf(n).startOf("day"):this.month(3*y+2).endOf(n).endOf("day")}return c.bind(this)(u,h)}}})})(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(e){const r=vue.inject("isMobile",!1),{pageMode:n}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),i=usePickComponentStyle(e),a=()=>document.getElementById("ProviderConfig")||document.body,o=vue.ref([null,null]),s=vue.ref(!1),l=vue.ref([]),c=vue.ref([]),u=vue.ref(),h=vue.ref(),b=vue.ref(),f=vue.ref(),y=vue.ref(0),d=vue.ref({}),g=vue.ref(""),w=vue.computed(()=>{let $=["year","month","day"];switch(e.picker){case"year":$=["year"];break;case"month":$=["year","month"];break}return $});vue.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([$,Y,J,K,ne,X])=>{if(vue.unref(o).every(W=>!W)||vue.unref(n)==="design"){let W=null,ee=null;if(J&&(W=dayjs().subtract(K,ne),ee=dayjs()),$&&(W=dayjs(useVariablesInText($))),Y&&(ee=dayjs(useVariablesInText(Y))),X){const{type:te,value:ae,mode:ie}=X;switch(te){case"add":W=W&&W.add(ae,ie),ee=ee&&ee.add(ae,ie);break;case"minus":W=W&&W.subtract(ae,ie),ee=ee&&ee.subtract(ae,ie)}}o.value=[W,ee],vue.unref(r)&&j()}},{immediate:!0});let p=vue.unref(o)[0],v=vue.unref(o)[1],m="";const x=($,Y,J)=>{Array.isArray($)?(p=$[0],v=$[1],m=J.range):(p=null,v=null)},E=$=>{let Y=!1,{limitStartTime:J,limitEndTime:K}=e;const ne={startTime:`${p||""}`,endTime:`${v||""}`};if(J=useVariablesInText(J,{codeData:ne}),K=useVariablesInText(K,{codeData:ne}),J&&K?Y=!(dayjs(J)<$&&$<dayjs(K)):J?Y=dayjs(J)>$:K&&(Y=dayjs(K)<$),!e.isAllowSpanYear&&m){let X=null;if(m==="start"?X=p:m==="end"&&(X=v),X){const W=X.startOf("year"),ee=X.endOf("year");Y=!(W<=$&&$<ee)}}if(!Y){const{value:X=0,mode:W="year"}=e.limitInterval||{};X&&(m==="start"?Y=p.add(X,W)<$:m==="end"&&(Y=v.subtract(X,W)>$))}return Y},{getGlobalModel:k,setGlobalModel:_}=vue.inject(GLOBAL_MODEL,{getGlobalModel:$=>{},setGlobalModel:($,Y)=>{}}),T=vue.computed(()=>Array.isArray(vue.unref(o))?vue.unref(o)[0]:null),B=vue.computed(()=>Array.isArray(vue.unref(o))?vue.unref(o)[1]:null);_(e.id,{type:e.type,format:e.format,startTime:T,endTime:B,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const M=useEmitEvent(e);let F=!1;const O=M("dateChange",()=>{}),D=$=>{const Y=vue.unref(o),J=Y&&Y[0]&&Y[1];$===!1&&F===!0&&J&&(O(),F=!1),$||(m="")},N=()=>{F=!0},L=()=>{const{associated:$}=e;if($){const Y=k($)||{};if(Y){const{value:J}=Y;if(J)switch(vue.unref(J)){case"month":o.value=[dayjs().startOf("month"),dayjs().endOf("month")];break;case"quarter":o.value=[dayjs().startOf("quarter"),dayjs().endOf("quarter")];break;case"year":o.value=[dayjs().startOf("year"),dayjs().endOf("year")];break}}}O()},P=()=>{G(vue.unref(o)),s.value=!0},I=()=>{G(),g.value="",o.value=[null,null]},C=()=>{o.value=[dayjs(vue.unref(l).join("-")),dayjs(vue.unref(c).join("-"))],G(vue.unref(o)),U(),q(),s.value=!1,O()},S=()=>{H(),s.value=!1},R=()=>{var $,Y;($=vue.unref(l))!=null&&$.length&&e.format&&(b.value=new Date(vue.unref(l).join("-")),(Y=vue.unref(c))!=null&&Y.length&&dayjs(vue.unref(c).join("-")).isBefore(dayjs(vue.unref(l).join("-")))&&(c.value=lodashEs.cloneDeep(vue.unref(l))))},A=()=>{var $,Y;($=vue.unref(c))!=null&&$.length&&e.format&&(h.value=new Date(vue.unref(c).join("-")),(Y=vue.unref(l))!=null&&Y.length&&dayjs(vue.unref(l).join("-")).isAfter(dayjs(vue.unref(c).join("-")))&&(l.value=lodashEs.cloneDeep(vue.unref(c))))};function q(){d.value={startMinDate:lodashEs.cloneDeep(vue.unref(u)),startMaxDate:lodashEs.cloneDeep(vue.unref(h)),endMinDate:lodashEs.cloneDeep(vue.unref(b)),endMaxDate:lodashEs.cloneDeep(vue.unref(f))}}function H(){u.value=vue.unref(d).startMinDate,h.value=vue.unref(d).startMaxDate,b.value=vue.unref(d).endMinDate,f.value=vue.unref(d).endMaxDate}function G($=[]){l.value=V($[0]||dayjs()),c.value=V($[1]||dayjs())}function U(){var J,K;const $=(J=vue.unref(l))!=null&&J.length?dayjs(vue.unref(l).join("-")):"",Y=(K=vue.unref(c))!=null&&K.length?dayjs(vue.unref(c).join("-")):"";g.value=$&&Y&&`${$.format(e.format)} 至 ${Y.format(e.format)}`}function j(){const{limitStartTime:$,limitEndTime:Y,limitInterval:J,isAllowSpanYear:K}=e;G(vue.unref(o)),$&&(u.value=new Date($),b.value=new Date($),vue.unref(o)[0].isBefore(dayjs($))&&(vue.unref(o)[0]=dayjs($),l.value=V(vue.unref(o)[0]))),Y&&(h.value=new Date(Y),f.value=new Date(Y),vue.unref(o)[1].isAfter(dayjs(Y))&&(vue.unref(o)[1]=dayjs(Y),c.value=V(vue.unref(o)[1]))),vue.unref(o).every(ne=>ne)&&(J!=null&&J.value)&&vue.unref(o)[1].diff(vue.unref(o)[0],J.mode)>J.value&&(vue.unref(o)[0]=vue.unref(o)[1].subtract(J.value,J.mode),l.value=V(vue.unref(o)[0])),vue.unref(o).every(ne=>ne)&&!K&&vue.unref(o)[0].year()!==vue.unref(o)[1].year()&&(vue.unref(o)[0]=dayjs(`${vue.unref(o)[1].year()}-01-01`),l.value=V(vue.unref(o)[0])),q(),U()}function V($){const Y=[];for(const J of vue.unref(w))J==="day"?Y.push($.date()):Y.push($[J]()+(J==="month"?1:0));return Y}return useOnEvent(e,{dateChange:L}),{style:i,getPopupContainer:a,locale,dateChange:O,myValue:o,disabledDate:E,calendarChange:x,openChange:D,change:N,isMobile:r,mobileDateStr:g,datePickVisible:s,columnsType:w,openDatePick:P,handleClearDate:I,onConfirmDate:C,onCancelDate:S,mobileStartDate:l,mobileEndDate:c,startMinDate:u,startMaxDate:h,endMinDate:b,endMaxDate:f,pickerTabKey:y,onStartDateChange:R,onEndDateChange:A}}}),__injectCSSVars__$2=()=>{vue.useCssVars(e=>({a708a7a6:e.optionFontSize}))},__setup__$2=__default__$2.setup;__default__$2.setup=__setup__$2?(e,r)=>(__injectCSSVars__$2(),__setup__$2(e,r)):__injectCSSVars__$2;const RangePicker_vue_vue_type_style_index_0_scoped_c1fd3779_lang="",RangePicker_vue_vue_type_style_index_1_lang="";function _sfc_render$n(e,r,n,i,a,o){const s=vue.resolveComponent("calendar-outlined"),l=vue.resolveComponent("close-circle-filled"),c=vue.resolveComponent("a-input"),u=vue.resolveComponent("van-date-picker"),h=vue.resolveComponent("van-picker-group"),b=vue.resolveComponent("van-popup"),f=vue.resolveComponent("a-range-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-range-picker",style:vue.normalizeStyle(e.style)},[e.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(c,{value:e.mobileDateStr,placeholder:"请选择日期范围",readonly:"",onClick:e.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(s,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[e.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(l,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(e.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(b,{show:e.datePickVisible,"onUpdate:show":r[3]||(r[3]=y=>e.datePickVisible=y),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[e.datePickVisible?(vue.openBlock(),vue.createBlock(h,{key:0,"active-tab":e.pickerTabKey,"onUpdate:active-tab":r[2]||(r[2]=y=>e.pickerTabKey=y),tabs:["开始日期","结束日期"],onConfirm:e.onConfirmDate,onCancel:e.onCancelDate},{default:vue.withCtx(()=>[vue.createVNode(u,{modelValue:e.mobileStartDate,"onUpdate:modelValue":r[0]||(r[0]=y=>e.mobileStartDate=y),"min-date":e.startMinDate,"max-date":e.startMaxDate,"columns-type":e.columnsType,onChange:e.onStartDateChange},null,8,["modelValue","min-date","max-date","columns-type","onChange"]),vue.createVNode(u,{modelValue:e.mobileEndDate,"onUpdate:modelValue":r[1]||(r[1]=y=>e.mobileEndDate=y),"min-date":e.endMinDate,"max-date":e.endMaxDate,"columns-type":e.columnsType,onChange:e.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(f,{key:1,class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":r[4]||(r[4]=y=>e.myValue=y),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,"disabled-date":e.disabledDate,onChange:e.change,onCalendarChange:e.calendarChange,onOpenChange:e.openChange,popupStyle:{fontSize:e.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$n],["__scopeId","data-v-c1fd3779"]]),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$k=vue.defineComponent({name:"EcanButton",components:{AButton:antDesignVue.Button},props:{...buttonComponentProps},setup(e){const r=usePickComponentStyle(e),i=useEmitEvent(e)("click",()=>{const c=vue.unref(s);c&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:c},"*")}),a=vue.computed(()=>{const c={};return e.mode!=="primary"&&(c.backgroundColor=e.buttonBackgroundColor||"transparent",c.color=e.tooltipTextStyleColor,c.borderColor=e.borderColor||"transparent"),{height:e.height,...c}}),o=vue.computed(()=>useVariablesInText(e.text)),s=vue.computed(()=>useVariablesInText(e.href)||null),l=vue.computed(()=>{const c=e.target;if(!(c==="event"||vue.unref(s)==null))return{self:"_self",blank:"_blank"}[c]});return{style:r,click:i,myText:o,myHref:s,myTarget:l,buttonStyle:a}}}),Button_vue_vue_type_style_index_0_lang="";function _sfc_render$m(e,r,n,i,a,o){const s=vue.resolveComponent("a-button");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-button",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:vue.normalizeStyle(e.buttonStyle),class:vue.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:vue.withCtx(()=>[vue.createElementVNode("span",{style:vue.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},vue.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Button=_export_sfc$1(_sfc_main$k,[["render",_sfc_render$m]]),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$j=vue.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:antDesignVue.CheckboxGroup},props:{...checkboxComponentProps},setup(e,{expose:r}){const n=usePickComponentStyle(e),i=vue.ref([]),a=vue.ref([]),o=p=>{const v=e.value;let m=[];p.forEach(x=>{x.checked&&m.push(x.value)}),typeof v=="string"&&v!==""?m=m.concat(v.split(",")):Array.isArray(v)&&(m=m.concat(v)),i.value=p,a.value=m};vue.watch(()=>[e.data,e.value],([p])=>{o(p)},{immediate:!0,deep:!0});const s=useRequestData(e,p=>{var v,m;o(((m=(v=p==null?void 0:p.data)==null?void 0:v.data)==null?void 0:m.rows)||[])}),l=async()=>{var m,x;if(e.dataType!=="request")return;const p=await s(),v=((x=(m=p==null?void 0:p.data)==null?void 0:m.data)==null?void 0:x.rows)||[];o(v)},{getGlobalModel:c,setGlobalModel:u}=vue.inject(GLOBAL_MODEL,{getGlobalModel:p=>{},setGlobalModel:(p,v)=>{}});u(e.id,{type:e.type,value:a});const b=useEmitEvent(e)("checkboxChange",()=>{const p=c(e.id);u(e.id,{...p,RECORD:a})}),f=p=>{var m;const{data:v}=(p==null?void 0:p.data)||{};if(v){const E=(((m=p==null?void 0:p.data)==null?void 0:m.data)??[]).map(k=>({label:k.label,value:k.value}));o(E)}else o([])},y=useIndicatorData(e,f),d=async()=>{try{const p=await y();f(p)}catch(p){console.error(p)}},g=()=>{switch(e.dataType){case"indicator":d();break;case"request":l();break}},{setRequest:w}=vue.inject(REQUEST_MODEL,{setRequest:({id:p,sortNum:v,requestFn:m})=>{}});return typeof w=="function"&&w({id:e.id,requestFn:g,sortNum:e.requestSort}),r({refreshData:g}),{myOption:i,style:n,myValue:a,checkboxChange:b}}}),Checkbox_vue_vue_type_style_index_0_lang="";function _sfc_render$l(e,r,n,i,a,o){const s=vue.resolveComponent("a-checkbox-group");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-checkbox",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":r[0]||(r[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const Checkbox=_export_sfc$1(_sfc_main$j,[["render",_sfc_render$l]]),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$i=vue.defineComponent({name:"EcanSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,AInput:antDesignVue.Input,DownOutlined:DownOutlined$1},props:{...selectComponentProps},setup(e,{expose:r}){var U,j;const n=vue.inject("isMobile",!1),i=vue.ref(!1),a={text:((U=e.dataFieldNames)==null?void 0:U.label)||"label",value:((j=e.dataFieldNames)==null?void 0:j.value)||"value"},o=vue.ref([]),s=usePickComponentStyle(e),l=()=>document.getElementById("ProviderConfig")||document.body,c=vue.ref(e.data||[]),u=vue.ref(),h=vue.computed({get:()=>{var $;const{mode:V}=e;return($=vue.unref(c))!=null&&$.length?u.value:V==="multiple"||V==="tags"||V==="combobox"?[]:""},set:V=>{u.value=V}}),b=vue.computed(()=>{const{value:V,label:$}=e.dataFieldNames,Y=[];if(Array.isArray(vue.unref(h)))for(const J of vue.unref(h)){const K=vue.unref(c).find(ne=>ne[V]===J);K&&Y.push(K[$])}else{const J=vue.unref(c).find(K=>K[V]===vue.unref(h));J&&Y.push(J[$])}return Y.join(",")}),{getGlobalModel:f,setGlobalModel:y,getRecordValueByKeyName:d}=vue.inject(GLOBAL_MODEL,{getGlobalModel:V=>{},setGlobalModel:(V,$)=>{},getRecordValueByKeyName:V=>{}}),g=e.dataFieldNames;vue.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,c.value],()=>{const{mode:V,selectFirstOption:$,value:Y}=e,J=d(Y),K=g.value;if(V==="multiple"||V==="tags"||V==="combobox"){if(J)u.value=J.split(",");else if($){const ne=vue.unref(c)[0];u.value=ne?[ne[K]]:[]}}else if(J)u.value=J;else if($){const ne=vue.unref(c)[0];u.value=ne?ne[K]:""}},{immediate:!0});const w=(V,$)=>{const Y=g.label,J=g.value;let K;const ne=$[Y],X=$[J];return ne!=null?K=ne:X!=null&&(K=X),(K==null?void 0:K.toLowerCase().indexOf(V==null?void 0:V.toLowerCase()))>=0},p=V=>{const{label:$,value:Y,options:J}=e.dataFieldNames;if(J&&Array.isArray(V))if(V.some(K=>J in K)){const K={},ne=[];V.forEach(X=>{K[X[J]]||(K[X[J]]=[]),K[X[J]].push({[$]:X[$],[Y]:X[Y]})});for(const X in K)ne.push({[$]:X,[J]:K[X]});return ne}else return V;else{if(!J&&Array.isArray(V))return V=V.map(K=>({label:K[$],value:K[Y]})),V;if(!J&&!Array.isArray(V))return V}},v=vue.ref(!1),m=V=>{var $,Y;if(c.value=p(((Y=($=V==null?void 0:V.data)==null?void 0:$.data)==null?void 0:Y.rows)||[]),e.selectFirstOption){let J=vue.unref(c)[0];if(g.options){const K=J[g.options];K&&K.length&&(J=K[0])}u.value=J[g.value]}},x=useRequestData(e,m),E=async()=>{if(e.dataType==="request"){v.value=!0;try{const V=await x();m(V)}catch(V){console.error(V)}finally{v.value=!1}}},{setLoadedData:k,loadedData:_}=vue.inject(LOADED_DATA,{setLoadedData:(V,$)=>{},loadedData:{}}),T=vue.computed(()=>{let V=u.value;if(e.valueType==="label"&&vue.unref(u)&&vue.unref(c)){const $=g.label,Y=g.value;if(e.mode==="multiple")V=vue.unref(c).filter(J=>vue.unref(u).includes(J[Y])).map(J=>J[$]);else{const J=vue.unref(c).find(K=>vue.unref(u)===K[Y]);J&&(V=J[$])}}return V}),B=vue.ref([]),M=vue.computed(()=>{const V={};if(e.mode!=="multiple"){const $=vue.unref(B).find(Y=>Y.value===vue.unref(u));$&&(V.itemCodes=$.item_codes)}return V}),F=vue.computed(()=>{const{value:V,label:$}=g,Y=vue.unref(c).find(J=>J[V]===vue.unref(h));return Y?{label:Y[$],value:Y[V]}:{}});y(e.id,{type:e.type,value:T,...vue.unref(M),recordData:vue.unref(F)});const O=useEmitEvent(e),D=O("selectChange",()=>{const V=e.id,$=f(V);y(V,{...$,...vue.unref(M),RECORD:T,recordData:vue.unref(F)})}),N=O("clearValue",()=>{["multiple","tags","combobox"].includes(e.mode)?u.value=[]:u.value=null;const V=e.id;y(V,{RECORD:"",recordData:vue.unref(F)})}),L=(V=[])=>{var Y,J;const $=p(V);if((J=(Y=e==null?void 0:e.graphicConfig)==null?void 0:Y.formFields)!=null&&J.hasAllOption){const K=g.label,ne=g.value;$.unshift({[K]:"全部",[ne]:""})}if(c.value=$,e.selectFirstOption){let K=vue.unref(c)[0];if(g.options){const ne=K[g.options];ne&&ne.length&&(K=ne[0])}u.value=K[g.value]}y(e.id,{type:e.type,value:T,...vue.unref(M),recordData:vue.unref(F)})},P=V=>{var K;const{data:$}=(V==null?void 0:V.data)||{},Y=g.label,J=g.value;if($){const{rows:ne=[]}=((K=V==null?void 0:V.data)==null?void 0:K.data)||{};B.value=ne;const X=ne.map(te=>({[Y]:te.label,[J]:te.value})),{id:W}=e,ee=f(W);y(W,{...ee,...vue.unref(M)}),k(W,!0),L(X)}else L([])},I=useIndicatorData(e,P),C=async()=>{try{v.value=!0;const V=await I();P(V)}catch(V){console.error(V)}finally{v.value=!1}},S=vue.computed(()=>{var V,$;return($=getConditions(((V=e==null?void 0:e.graphicConfig)==null?void 0:V.controlList)||[]))==null?void 0:$.find(Y=>Y.conditionKey==="parentCode")}),R=vue.ref(!1);vue.watch(_,V=>{!vue.unref(R)&&vue.unref(S)&&V[vue.unref(S).id]&&(R.value=!0,A())},{deep:!0});const A=()=>{switch(e.dataType){case"indicator":{if(vue.unref(S)){if(vue.unref(_)[vue.unref(S).id]){const{mode:V}=e;V==="multiple"||V==="tags"||V==="combobox"?h.value=[]:h.value="",C()}}else C();break}case"request":E();break}};useOnEvent(e,{selectChange:D,refreshData:A,clearValue:N});const{setRequest:q}=vue.inject(REQUEST_MODEL,{setRequest:({id:V,sortNum:$,requestFn:Y})=>{}});return typeof q=="function"&&q({id:e.id,requestFn:A,sortNum:e.requestSort}),r({refreshData:A}),{style:s,getPopupContainer:l,myValue:u,selectChange:D,options:c,filterOption:w,loading:v,resultValue:h,isMobile:n,customFieldName:a,pickVisible:i,onConfirmPicker:()=>{h.value=vue.unref(o)[0],D(),i.value=!1},mobileValue:b,openPicker:()=>{var V;!Array.isArray(vue.unref(h))&&((V=vue.unref(c))!=null&&V.length)&&e.dataFieldNames.value&&(o.value=vue.unref(h)?[vue.unref(h)]:[vue.unref(c)[0][e.dataFieldNames.value]]),i.value=!0},mobileSelectValue:o}}}),Select_vue_vue_type_style_index_0_scoped_3779be3f_lang="",Select_vue_vue_type_style_index_1_lang="";function _sfc_render$k(e,r,n,i,a,o){const s=vue.resolveComponent("down-outlined"),l=vue.resolveComponent("a-input"),c=vue.resolveComponent("van-picker"),u=vue.resolveComponent("van-popup"),h=vue.resolveComponent("a-select-option"),b=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-select",style:vue.normalizeStyle(e.style)},[e.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(l,{value:e.mobileValue,placeholder:"请选择日期",readonly:"",onClick:e.openPicker},{suffix:vue.withCtx(()=>[vue.createVNode(s)]),_:1},8,["value","onClick"]),vue.createVNode(u,{show:e.pickVisible,"onUpdate:show":r[1]||(r[1]=f=>e.pickVisible=f),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[e.pickVisible?(vue.openBlock(),vue.createBlock(c,{key:0,modelValue:e.mobileSelectValue,"onUpdate:modelValue":r[0]||(r[0]=f=>e.mobileSelectValue=f),"columns-field-names":e.customFieldName,columns:e.options,"cancel-button-text":" ",onConfirm:e.onConfirmPicker},null,8,["modelValue","columns-field-names","columns","onConfirm"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(b,{key:1,class:"select",value:e.resultValue,"onUpdate:value":r[2]||(r[2]=f=>e.resultValue=f),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:vue.normalizeStyle({fontSize:e.optionFontSize})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.options,(f,y)=>(vue.openBlock(),vue.createBlock(h,{key:y,value:f.value,style:vue.normalizeStyle({fontSize:e.optionFontSize})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(f.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$i,[["render",_sfc_render$k],["__scopeId","data-v-3779be3f"]]),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$h={name:"EcanTreeSelect",components:{ATreeSelect:antDesignVue.TreeSelect},props:{...treeSelectComponentProps},setup(e){const r=usePickComponentStyle(e),n=vue.ref(e.data),i=(d,g)=>{const w=e.dataFieldNames,p=w.label,v=w.value;let m;const x=g[p],E=g[v];return x!=null?m=x:E!=null&&(m=E),(m==null?void 0:m.toLowerCase().indexOf(d==null?void 0:d.toLowerCase()))>=0},a=vue.ref();vue.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:d,value:g,selectFirstOption:w}=e;d?g?a.value=g.split(","):w&&(a.value=[vue.unref(n)[0]]):g?a.value=g:w&&(a.value=vue.unref(n)[0])},{immediate:!0});const o=vue.ref(!1),s=d=>{var w,p;n.value=((p=(w=d==null?void 0:d.data)==null?void 0:w.data)==null?void 0:p.rows)||[];const g=vue.unref(n)[0];e.value===""&&g!=null&&(a.value=g[e.dataFieldNames.value])},l=useRequestData(e,s),c=async()=>{if(e.dataType==="request"){o.value=!0;try{const d=await l();s(d)}catch(d){console.error(d)}finally{o.value=!1}}},{getGlobalModel:u,setGlobalModel:h}=vue.inject(GLOBAL_MODEL,{getGlobalModel:d=>{},setGlobalModel:(d,g)=>{}});h(e.id,{type:e.type,value:a});const f=useEmitEvent(e)("selectChange",()=>{const d=e.id,g=u(d);h(d,{...g,RECORD:a})});useOnEvent(e,{selectChange:f,refreshData:c});const{setRequest:y}=vue.inject(REQUEST_MODEL,{setRequest:({id:d,sortNum:g,requestFn:w})=>{}});return y({id:e.id,requestFn:c,sortNum:e.requestSort}),{style:r,treeData:n,filterTreeNode:i,myValue:a,loading:o,selectChange:f}}},TreeSelect_vue_vue_type_style_index_0_scoped_09e7f364_lang="",TreeSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$j(e,r,n,i,a,o){const s=vue.resolveComponent("a-tree-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tree-select",style:vue.normalizeStyle(i.style)},[vue.createVNode(s,{class:"tree-select",value:i.myValue,"onUpdate:value":r[0]||(r[0]=l=>i.myValue=l),allowClear:"",showSearch:"",loading:i.loading,fieldNames:e.dataFieldNames,treeData:i.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:i.filterTreeNode,placeholder:e.placeholder,onChange:i.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const TreeSelect=_export_sfc$1(_sfc_main$h,[["render",_sfc_render$j],["__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",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:""},radioComponentProps=transformToComponentProps(radioProps),radioEvents=["checkboxChange","click"],_sfc_main$g=vue.defineComponent({name:"EcanRadio",components:{ARadioGroup:antDesignVue.RadioGroup,ARadioButton:antDesignVue.RadioButton,ARadio:antDesignVue.Radio},props:{...radioComponentProps},setup(e,{expose:r}){const{pageMode:n}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),i=usePickComponentStyle(e),a=vue.ref([]),o=vue.ref(""),s=E=>{const k=e.value;let _=[];typeof k=="string"&&k!==""?_=_.concat(k.split(",")):Array.isArray(k)&&(_=_.concat(k)),a.value=E,o.value=_[0]||"",console.log(a.value,o.value," myValue.value")};vue.watch(()=>[e.data,e.value],([E])=>{vue.unref(n)==="design"&&s(E)},{immediate:!0,deep:!0});const l=useRequestData(e,E=>{var k,_;s(((_=(k=E==null?void 0:E.data)==null?void 0:k.data)==null?void 0:_.rows)||[])}),c=async()=>{var _,T;if(e.dataType!=="request")return;const E=await l(),k=((T=(_=E==null?void 0:E.data)==null?void 0:_.data)==null?void 0:T.rows)||[];s(k)},{getGlobalModel:u,setGlobalModel:h}=vue.inject(GLOBAL_MODEL,{getGlobalModel:E=>{},setGlobalModel:(E,k)=>{}});h(e.id,{type:e.type,value:o});const b=useEmitEvent(e),f=()=>{const E=vue.unref(a).find(k=>k.value===vue.unref(o))||{};b("checkboxChange",()=>{const k=u(e.id);h(e.id,{...k,RECORD:o})},E)()},y=E=>{o.value=E,b("click",()=>{const k=u(e.id);h(e.id,{...k,RECORD:o})})()};vue.watch(o,()=>{f()});const d=E=>{var _;const{data:k}=(E==null?void 0:E.data)||{};if(k){const B=(((_=E==null?void 0:E.data)==null?void 0:_.data)??[]).map(M=>({label:M.label,value:M.value}));s(B)}else s([])},g=useIndicatorData(e,d),w=async()=>{try{const E=await g();d(E)}catch(E){console.error(E)}},p=()=>{switch(e.dataType){case"indicator":w();break;case"request":c();break}},{setRequest:v}=vue.inject(REQUEST_MODEL,{setRequest:({id:E,sortNum:k,requestFn:_})=>{}});typeof v=="function"&&v({id:e.id,requestFn:p,sortNum:e.requestSort});const m=E=>{o.value=E.value},x=vue.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return vue.onMounted(()=>{s(e.data)}),r({refreshData:p}),{myOption:a,style:i,myValue:o,radioStyle:x,onClickButton:y,useImagePath,tabChange:m}}}),Radio_vue_vue_type_style_index_0_lang="",Radio_vue_vue_type_style_index_1_scoped_5507200e_lang="",_hoisted_1$9=["onClick"];function _sfc_render$i(e,r,n,i,a,o){const s=vue.resolveComponent("a-radio"),l=vue.resolveComponent("a-radio-button"),c=vue.resolveComponent("a-radio-group");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-radio",e.optionType]),style:vue.normalizeStyle(e.style)},[e.tabBackgroundImage&&e.activeTabBackgroundImage?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"tabs-header",style:vue.normalizeStyle({fontSize:e.tabFontSize,flexDirection:e.tabFlexDirection,alignItems:e.tabTextAlign})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myOption,(u,h)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.myValue===u.value?e.activeTabColor:e.tabColor,backgroundImage:e.myValue===u.value?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:"0",marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:"0"}),key:h,onClick:vue.withModifiers(b=>e.tabChange(u),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===u.value?e.activeTabColor:"transparent"}`:""})},vue.toDisplayString(u.label),5)],12,_hoisted_1$9))),128))],4)):(vue.openBlock(),vue.createBlock(c,{key:1,value:e.myValue,"onUpdate:value":r[0]||(r[0]=u=>e.myValue=u)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myOption,u=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:u.value},[e.optionType==="default"?(vue.openBlock(),vue.createBlock(s,{key:0,value:u.value,style:vue.normalizeStyle(e.radioStyle)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(u.label),1)]),_:2},1032,["value","style"])):e.optionType==="button"?(vue.openBlock(),vue.createBlock(l,{key:1,value:u.value,onClick:h=>e.onClickButton(u.value)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(u.label),1)]),_:2},1032,["value","onClick"])):vue.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"]))],6)}const Radio=_export_sfc$1(_sfc_main$g,[["render",_sfc_render$i],["__scopeId","data-v-5507200e"]]),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},pieComponentProps=transformToComponentProps(pieProps),pieEvents=["click","refreshData","resetRecord"],useDownloadFile=async e=>{var c;const r=await request.post(e,{},{responseType:"blob"}),{data:n,headers:i}=r,a=i["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),o=new Blob([n]),s=document.createElement("a"),l=window.URL.createObjectURL(o);s.href=l,s.download=decodeURI(a),s.style.display="none",document.body.appendChild(s),s.click(),(c=s.parentNode)==null||c.removeChild(s),window.URL.revokeObjectURL(l)},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:[]},modalComponentProps=transformToComponentProps(modalProps),modalEvents=["showModal","hideModal"],containerType=["ecanBorder","ecanTabs","ecanCirculate"];function handleScrollCombinations(e){const{containerMap:r={},sourceList:n=[]}=e,i=lodashEs.cloneDeep(e.componentList),a=i.filter(o=>o.type==="ecanTabs"&&o.isAutoScroll);if(a!=null&&a.length)for(const o of a){const s=r[o.id],l=[];if((!hasOwn(o,"componentList")||!(o!=null&&o.componentList))&&(o.componentList=[]),s){let c=0;for(const u in s){const h=s[u],b=[];if(h!=null&&h.length)for(const f of h){let y=i.find(d=>d.id===f);y||(y=n.find(d=>d.id===f)),y&&(b.push(y),containerType.includes(y.type)&&b.push(...getComponentByContainer(y.id,r,n)))}for(const f of b)hasOwn(f,"scale")?parseFloat(u)>0&&(f.left=parseFloat(f.left)+c+"px"):(f.left=parseFloat(f.sourceLeft||f.left)-parseFloat(o.sourceLeft||o.left)+c+"px",f.top=parseFloat(f.sourceTop||f.top)-parseFloat(o.sourceTop||o.top)+"px"),l.includes(f.id)||l.push(f.id);o.componentList.push(...b),c=getMaxLeftInComponents(b)}}for(const c of l){const u=i.findIndex(h=>h.id===c);u!==-1&&i.splice(u,1)}}return i}function compatibleMobileList(e){var o,s;const{combinationMap:r={},sourceList:n=[]}=e,i=e.containerMap,a=lodashEs.cloneDeep([...e.componentList,...getTabsSomeComponentList(i,n)]);if(handleContainerMap(i,a),(o=Object.keys(i))!=null&&o.length||(s=Object.keys(r))!=null&&s.length){for(const f in i){const y=a.find(d=>d.id===f);if(y){hasOwn(y,"parentId")||(y.parentId="",y.sourceLeft=y.left,y.sourceTop=y.top);for(const d in i[f])if(i[f][d])for(const g of i[f][d]){const w=a.find(p=>p.id===g);w&&(w.parentId=f,w.sourceLeft=w.left,w.sourceTop=w.top,w.left=parseFloat(w.left)-parseFloat(y.sourceLeft||y.left)+"px",w.top=parseFloat(w.top)-parseFloat(y.sourceTop||y.top)+"px")}}}const l=Array.from(new Set(a.filter(f=>(!hasOwn(f,"parentId")||f.parentId==="")&&f.combinationId).map(f=>f.combinationId))),c=getCombinationList(l,{...e,componentList:a});c!=null&&c.length&&a.unshift(...c);const u=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],h=a.filter(f=>u.includes(f.type)&&!hasOwn(f,"parentId")),b=[];for(const f of h)if(f){const y=f.id+"_vir";b.push({id:y,keyName:f.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:f.width,height:f.height,left:f.left,top:f.top,sourceLeft:f.left,sourceTop:f.top}),f.parentId=y,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=0,f.top=0}b!=null&&b.length&&a.unshift(...b);for(const f of a){const y=document.body.clientWidth;if(f.parentId===""&&containerType.includes(f.type))f.sourceWidth=parseFloat(f.width),f.height=(y/(f.sourceWidth/parseFloat(f.height))).toFixed(2)+"px",f.width="100%",f.position="relative",f.top="auto",f.left="auto";else{const d=a.find(g=>g.id===f.parentId);if((d==null?void 0:d.parentId)===""){const g=d.sourceWidth||parseFloat(d.width),w=y/g;f.scale=w,f.top=parseFloat(f.top)*w-parseFloat(f.height)*(1-w)/2+"px",f.left=parseFloat(f.left)*w-parseFloat(f.width)*(1-w)/2+"px"}}f.type==="ecanModal"&&(f.parentId="",f.fullModal=!0)}return sortList(a)}return a}function handleContainerMap(e,r){const n=lodashEs.cloneDeep(e),i=r.filter(a=>a.type==="ecanTabs"&&a.isAutoScroll);if(i!=null&&i.length)for(const a of i){const o=n[a.id];for(const s in o)for(const l of o[s]){const c=r.find(u=>u.id===l);if(c&&containerType.includes(c.type)){const u=getComponentByContainer(c.id,n,r);for(const h of u)e[a.id][s].push(h.id),containerType.includes(h.type)&&delete e[h.id];delete e[c.id]}}}}function getTabsSomeComponentList(e,r){const n=[],i=r.filter(a=>a.type==="ecanTabs"&&a.isAutoScroll);if(i!=null&&i.length)for(const a of i){const o=e[a.id];for(const s in o)if(parseFloat(s)>0)for(const l of o[s]){const c=r.find(u=>u.id===l);c&&(n.push(c),containerType.includes(c.type)&&n.push(...getComponentByContainer(c.id,e,r)))}}return n}function getComponentByContainer(e,r,n){const i=[],a=r[e];for(const o in a)for(const s of a[o]){const l=n.find(c=>c.id===s);l&&(i.push(l),containerType.includes(l.type)&&i.push(...getComponentByContainer(l.id,r,n)))}return i}function getCombinationList(e,r,n){const{combinationMap:i={},componentList:a=[]}=r,o=[];for(const s of e){const l=i[s];if(l!=null&&l.length){const c=a.filter(u=>l.includes(u.id));if(c!=null&&c.length){const u=getCombinateRect(c);if(u){o.push({...u,id:s,keyName:s,parentId:n||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:u.left,sourceTop:u.top});for(const h of c)h&&(h.parentId=s,h.sourceLeft=h.left,h.sourceTop=h.top,h.left=parseFloat(h.left)-parseFloat(u.left)+"px",h.top=parseFloat(h.top)-parseFloat(u.top)+"px")}}}}return o}function sortList(e){const n=e.filter(i=>i.parentId==="");if(n!=null&&n.length){const i=lodashEs.cloneDeep(n).map(a=>({...a,sourceTop:parseFloat(a.sourceTop),sourceLeft:parseFloat(a.sourceLeft)}));for(let a=0;a<i.length-1;a++)for(let o=0;o<i.length-a-1;o++){let s=!1;if((i[o].sourceTop-i[o+1].sourceTop>50||Math.abs(i[o+1].sourceTop-i[o].sourceTop)<=50&&i[o].sourceLeft>i[o+1].sourceLeft)&&(s=!0),s){const l=i[o];i[o]=i[o+1],i[o+1]=l}}for(const a of i){const o=e.findIndex(s=>s.id===a.id);o!==-1&&e.splice(o,1)}return[...i,...e]}return e}function getCombinateRect(e){const r=e.sort((o,s)=>parseFloat(o.top)-parseFloat(s.top))[0],n=e.sort((o,s)=>parseFloat(o.left)-parseFloat(s.left))[0],i=e.map(o=>({...o,computedTop:parseFloat(o.top)+parseFloat(o.height)})).sort((o,s)=>s.computedTop-o.computedTop)[0],a=e.map(o=>({...o,computedLeft:parseFloat(o.left)+parseFloat(o.width)})).sort((o,s)=>s.computedLeft-o.computedLeft)[0];return r&&n&&i&&a?{left:n.left,top:r.top,width:a.computedLeft-parseFloat(n.left)+"px",height:i.computedTop-parseFloat(r.top)+"px"}:null}function getMaxLeftInComponents(e){const r=e.map(n=>parseFloat(n.left)+parseFloat(n.width)).sort((n,i)=>i-n)[0];return r||0}function moveToComponentList(e,r,n){const i=e[n],a=[];if(i)for(const o in i){const s=i[o];for(const l of s){const c=r.find(u=>u.id===l);c&&(a.push(c),containerType.includes(c.type)&&a.push(...getComponentByContainer(c.id,e,r)))}}return a}const _sfc_main$f=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:r}){r("ready",e.component.id)}});function _sfc_render$h(e,r,n,i,a,o){return e.component.parentId?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#container_"+e.component.parentId},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(e.component.type),vue.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(e.component.type),vue.normalizeProps(vue.mergeProps({key:1},e.component)),null,16))}const Render=_export_sfc$1(_sfc_main$f,[["render",_sfc_render$h]]),EcanRender=withInstall$1(Render),_sfc_main$e=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(e,{emit:r}){const n=vue.ref([]),i=vue.inject("isMobile",!1),a=vue.inject("getContainerMap",()=>{}),o=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l,setRequestData:c}=vue.inject(GLOBAL_MODEL,{setRequestData:(X,W)=>{},clearInteractiveData:()=>{},interactiveData:null}),u=()=>document.getElementById("ProviderConfig")||document.body,h=vue.computed(()=>{const X=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[X]}}),b=e.fullModal?"1920px":e.width,f=e.fullModal?"1080px":e.height,y=e.originalWidth,d=e.originalHeight,g=vue.ref("80%"),w=vue.ref(0),p=vue.ref(),v=vue.ref(0),m=vue.ref({}),x=usePickComponentStyle(e),E=vue.ref({}),k=vue.ref(!1),_=vue.ref();let T;const B=()=>{p.value=parseFloat(b)/parseFloat(y);const X=parseFloat(f)/parseFloat(d),W=document.body.offsetWidth,ee=document.body.offsetHeight;w.value=W*vue.unref(p),v.value=ee*X,g.value=`${vue.unref(p)*100}%`,m.value={width:`${vue.unref(w)}px`,height:`${vue.unref(v)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},E.value={...vue.unref(x),backgroundImage:useImagePath(e.backgroundImage,!0)},i?E.value={...E.value,width:"100%",height:"100%"}:E.value={...E.value,transform:`scale(${vue.unref(w)/parseFloat(b)},${vue.unref(v)/parseFloat(f)})`,width:b,height:f}},M=lodashEs.debounce(()=>{B()},100),F=()=>{const X=window.MutationObserver;T=new X(M),T.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},O=()=>{T&&(T.disconnect(),T.takeRecords(),T=null)},D=vue.ref(!1),{touchRequest:N}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),L=vue.ref(""),P=()=>{var ee;const{title:X}=e,W=(ee=vue.unref(l))==null?void 0:ee.RECORD;return W?useVariablesInText(X,{textData:W},{useNewline:!1,useSpace:!1}):X},I=useEmitEvent(e),C=()=>{i&&(document.documentElement.style.overflow="hidden"),L.value=P(),D.value=!0},S=I("hideModal",()=>{r("close"),i&&(document.documentElement.style.overflow="hidden auto",n.value=[]),D.value=!1}),R=()=>{S()},A=()=>{S(),s()},{setModalModel:q,pushUseModalIds:H,popUseModalIds:G}=vue.inject(MODAL_MODEL,{pushUseModalIds:X=>{},popUseModalIds:()=>{},setModalModel:(X,W)=>{}}),U=vue.computed(()=>{let X=e.componentList;const W=lodashEs.cloneDeep(e.componentList),ee=a(),te=o(),ae={containerMap:ee,combinationMap:te};i&&(X=compatibleMobileList({...ae,componentList:W,sourceList:e.allComponentList})),X=handleScrollCombinations({...ae,componentList:X,sourceList:e.allComponentList});const ie=[];for(const se of X)if(se.type==="ecanCirculate"){const he=moveToComponentList(ee,vue.unref(W),se.id);se.componentList=he,ie.push(...he.map(de=>de.id))}if(ie!=null&&ie.length)for(const se of ie){const he=X.findIndex(de=>de.id===se);he!==-1&&X.splice(he,1)}return X}),j=()=>{const X=e.id;let W=[];const ee=e.componentList;Array.isArray(ee)&&(W=ee.map(te=>te.id),q(X,[...new Set(W)]))},V=vue.ref(!1),$={};for(const X of e.requestList)$[X.requestName]=useRequestData(X);vue.watch(()=>D.value,async X=>{if(X)k.value=!1,H(e.id),j(),await vue.nextTick(()=>{B(),window.addEventListener("resize",M),F(),k.value=!0}),N();else{for(const W in $)c(W,{});G(),window.removeEventListener("resize",M),O()}});const Y=vue.computed(()=>vue.unref(p)>=1),J=vue.computed(()=>e.fullModal),K=vue.computed(()=>{let X="ecan-modal";return vue.unref(Y)&&(X+=" ecan-full-width-modal"),vue.unref(J)&&(X+=" ecan-full-modal"),X});return useOnEvent(e,{showModal:C,hideModal:S}),{modalRef:_,containStyle:m,contentStyle:E,getContainer:u,modalStyle:h,modalWith:g,isFullModal:J,style:x,visible:D,showModal:C,onOk:R,onCancel:A,isFullWidth:Y,wrapClassName:K,ready:k,usedComponentList:U,isMobile:i,readyIds:n,hasOwn,onComponentReady:X=>{n.value.push(X)},formatTitle:L,requestLoaded:V}}}),Modal_vue_vue_type_style_index_0_scoped_000999c2_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$g(e,r,n,i,a,o){const s=vue.resolveComponent("close-outlined"),l=vue.resolveComponent("render"),c=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(c,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:vue.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"contain",ref:"containRef",style:vue.normalizeStyle(e.containStyle)},[e.ready?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"content",style:vue.normalizeStyle(e.contentStyle)},[vue.createElementVNode("div",{class:"header-bar",style:vue.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ant-modal-title",style:vue.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},vue.toDisplayString(e.formatTitle),5)):vue.createCommentVNode("",!0),e.isShowCloseBtn?(vue.openBlock(),vue.createBlock(s,{key:1,class:"close-icon",style:vue.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])):vue.createCommentVNode("",!0)],4),e.usedComponentList.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(e.isMobile?"mobile-wrap":"")},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.usedComponentList,(u,h)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:u.id+h},[e.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[e.hasOwn(u,"parentId")&&(e.readyIds.includes(u.parentId)||u.parentId==="")?(vue.openBlock(),vue.createBlock(l,{key:0,component:u,onReady:e.onComponentReady},null,8,["component","onReady"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(u.type),vue.normalizeProps(vue.mergeProps({key:1},u)),null,16))],64))),128))],2)):vue.renderSlot(e.$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$e,[["render",_sfc_render$g],["__scopeId","data-v-000999c2"]]),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$d=vue.defineComponent({name:"EcanPie",props:{...pieComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:r}){const{pageMode:n,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.ref(!1),o=usePickComponentStyle(e),s=vue.ref([]),l=vue.ref(),c=vue.ref({}),u=vue.computed(()=>{let{data:D=[]}=vue.unref(s)[0]||{};if(Array.isArray(e.colors)){const N=e.isUseLabelColors,L=e.colors;D=D.map((P,I)=>({label:N?{color:L[I]}:{},...P}))}return{textStyle:{fontFamily:vue.unref(i)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.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 N;a.value=!0,(N=l.value)==null||N.showModal()}},myInfo:{show:e.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:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:N=>{const{marker:L,seriesName:P,name:I,value:C,percent:S,data:R}=N||{};return useVariablesInText(e.tooltipFormatter,{textData:{marker:L,name:I,value:C,percent:S,a:P,b:I,c:C,d:S,...R}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:vue.unref(c),color:e.colors,series:[{data:D,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!0,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:a.value?ZOOM_FONT_SIZE:e.labelFontSize,position:e.labelPosition,formatter:handleFormatter(e.labelFormatter),width:e.labelWidth,overflow:e.labelOverflow},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),h=()=>{const D=a.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize);c.value={type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{lineHeight:D+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:D}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:N=>{const{data:L}=s.value[0]||{};let P=0,I,C="0%";if(L)for(const S of L)S.name===N&&(I=+S.value),P+=+S.value;return P&&(C=`${(I/P*100).toFixed(2)}%`),getLegendFormat(e.legendFormatter,{name:N,value:I,percent:C})}}},b=()=>{a.value=!1},{getGlobalModel:f,setGlobalModel:y}=vue.inject(GLOBAL_MODEL,{getGlobalModel:D=>{},setGlobalModel:(D,N)=>{}}),d=(D=[],N)=>{const{dataset:L}=useTransformChartDataByAttrValue(D,N);s.value=L},g=(D=[],N)=>{const L=useTransformChartDataByAttrValue(D,N);s.value=L.dataset};vue.watch(()=>e.data,D=>{(e.dataType==="static"||vue.unref(n)==="design")&&d(D)},{immediate:!0,deep:!0}),vue.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter,e.legendFontSize,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],()=>{h()},{immediate:!0});const w=vue.ref(!1),p=useRequestData(e,D=>{var N,L;d((L=(N=D==null?void 0:D.data)==null?void 0:N.data)==null?void 0:L.rows,e.valueTypeDataFieldNames)}),v=async()=>{var D,N;if(e.dataType==="request")try{w.value=!0;const L=await p();d((N=(D=L==null?void 0:L.data)==null?void 0:D.data)==null?void 0:N.rows,e.valueTypeDataFieldNames)}catch(L){console.error(L)}finally{w.value=!1}},m=useEmitEvent(e);y(e.id,{type:e.type,RECORD:""});const x=m("click",D=>{const N=f(e.id);y(e.id,{...N,type:e.type,RECORD:D==null?void 0:D.data})}),E=D=>{var L;const{data:N}=(D==null?void 0:D.data)||{};if(N){const{columns:P=[],rows:I=[]}=((L=D==null?void 0:D.data)==null?void 0:L.data)??{};let C=[];if(P.length>0){const S=P[0],R=P[1];C=I.filter(A=>!!A).map(A=>({name:A[S],value:isNaN(A[R])?0:A[R]||0}))}g(C)}},k=useIndicatorData(e,E),_=async()=>{try{w.value=!0;const D=await k();E(D)}catch(D){console.error(D)}finally{w.value=!1}},{loadedData:T}=vue.inject(LOADED_DATA,{loadedData:{}}),B=vue.ref(!1);vue.watch(T,D=>{if(e.dataType==="indicator"){const N=getFixedValueDatas(e.graphicConfig);N!=null&&N.length&&(!vue.unref(B)&&canRequestIndicator(e.graphicConfig,D)?(B.value=!0,M()):canRequestIndicator(e.graphicConfig,D)||(B.value=!1))}},{deep:!0});const M=()=>{switch(e.dataType){case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(T))&&_();break;case"request":v();break}};useOnEvent(e,{resetRecord:()=>{const D=e.id,N=f(D);y(D,{...N,RECORD:""})},refreshData:M,click:x}),r({refreshData:M});const{setRequest:O}=vue.inject(REQUEST_MODEL,{setRequest:D=>{}});return typeof O=="function"&&O({id:e.id,requestFn:M,sortNum:e.requestSort}),{option:u,style:o,click:x,onClose:b,loading:w,ecanModal:l}}}),Pie_vue_vue_type_style_index_0_lang="";function _sfc_render$f(e,r,n,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Pie=_export_sfc$1(_sfc_main$d,[["render",_sfc_render$f]]),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},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$c=vue.defineComponent({name:"EcanLine",props:{...lineComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:r}){const{pageMode:n,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.ref(),o=vue.ref(!1),s=usePickComponentStyle(e),l=vue.ref([]),c=vue.ref([]),u=vue.ref(),h=vue.computed(()=>o.value?ZOOM_FONT_SIZE:12),b=vue.ref({});let f;const y=vue.ref([]),d=vue.computed(()=>{const I=e.xAxisLabelFormatter,C=e.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(i)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.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 S;o.value=!0,(S=u.value)==null||S.showModal()}},myInfo:{show:e.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:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:h.value},show:e.tooltipShow,formatter:S=>{var H;const R=S.length;let A="",q=e.tooltipFormatter;f=(H=S[0])==null?void 0:H.data,q===""&&(q="{marker} {a} {c}");for(let G=0;G<R;G++){const{marker:U,seriesName:j,name:V,value:$,data:Y}=S[G]||{};if(G===0){let J=V;typeof V=="string"&&V[0]==="0"&&!isNaN(+V)&&(J=(+V).toString()),A+=`${useValueFormatter(I,J)}<br/>`}A+=useVariablesInText(q,{textData:{marker:U,name:V,value:$,a:j,b:V,c:$||0,...Y}},{useNewline:!0,useSpace:!0}),A+="<br/>"}return A},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:vue.unref(c).map(S=>{let R={};return S&&typeof S=="object"?R={...S}:R={value:S},R}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(S){return typeof S=="string"&&S[0]==="0"&&!isNaN(+S)&&(S=(+S).toString()),useValueFormatter(I,S)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(S){return useValueFormatter(C,S)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},max:e.yAxisMaxValue||null},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(o.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:o.value?ZOOM_FONT_SIZE:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:vue.unref(y).map(S=>({name:S.name,icon:e.legendType})),formatter:S=>getLegendFormat(e.legendFormatter,{name:S})},series:vue.unref(l)}}),g=()=>{o.value=!1},{getGlobalModel:w,setGlobalModel:p}=vue.inject(GLOBAL_MODEL,{getGlobalModel:I=>{},setGlobalModel:(I,C)=>{}}),v=vue.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),m=(I=[],C=!1)=>{let S;if(e.dataFieldConfigType==="key"){const H=C?e.keyTypeDataFieldNames:null;S=useTransformChartDataByAttrKey(I,H)}else if(e.dataFieldConfigType==="value"){const H=C?e.valueTypeDataFieldNames:null;S=useTransformChartDataByAttrValue(I,H)}c.value=S.dimensions,y.value=S.dataset;const R=S.dataset,A=[],q=R.length;for(let H=0;H<q;H++){const G={};e.shadowColor&&(G.shadowColor=e.shadowColor,G.shadowBlur=e.shadowBlur,G.shadowOffsetY=e.shadowOffsetY,G.shadowOffsetX=e.shadowOffsetX),A.push({type:"line",...R[H],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[H]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[H],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...G},...vue.unref(v)})}l.value=A},x=(I=[],C,S=!1)=>{const A=useTransformChartDataByAttrKey(I,S?C:null,!0);c.value=A.dimensions,y.value=A.dataset;const q=A.dataset,H=[],G=q.length;for(let U=0;U<G;U++){const j={};e.shadowColor&&(j.shadowColor=e.shadowColor,j.shadowBlur=e.shadowBlur,j.shadowOffsetY=e.shadowOffsetY,j.shadowOffsetX=e.shadowOffsetX),H.push({type:"line",...q[U],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[U]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[U],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...j},...vue.unref(v)})}l.value=H};vue.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([I])=>{(e.dataType==="static"||vue.unref(n)==="design")&&m(I)},{immediate:!0,deep:!0});const E=vue.ref(!1),k=useRequestData(e,I=>{var C,S;m((S=(C=I==null?void 0:I.data)==null?void 0:C.data)==null?void 0:S.rows,!0)}),_=async()=>{var I,C;if(e.dataType==="request")try{E.value=!0;const S=await k();m((C=(I=S==null?void 0:S.data)==null?void 0:I.data)==null?void 0:C.rows,!0)}catch(S){console.error(S)}finally{E.value=!1}},T=useEmitEvent(e);p(e.id,{type:e.type,RECORD:""});const B=T("click",I=>{const C=w(e.id);p(e.id,{...C,type:e.type,RECORD:e.tooltipShow?f:I.data})}),M=I=>{a.value.chart.containPixel("grid",[I.offsetX,I.offsetY])&&B()};e.tooltipShow?b.value["zr:click"]=M:b.value.click=B;const F=I=>{var A;const{columns:C=[],rows:S=[]}=((A=I==null?void 0:I.data)==null?void 0:A.data)??{};let R;C.length>0&&(R={name:C[0],types:C.slice(1).map(q=>({label:q,value:q}))}),x(S,R,!0)},O=useIndicatorData(e,F),D=async()=>{try{E.value=!0;const I=await O();F(I)}catch(I){console.error(I)}finally{E.value=!1}},N=()=>{switch(e.dataType){case"indicator":D();break;case"request":_();break}};useOnEvent(e,{refreshData:N,resetRecord:()=>{const I=e.id,C=w(I);p(I,{...C,RECORD:""})},click:B});const{setRequest:P}=vue.inject(REQUEST_MODEL,{setRequest:I=>{}});return typeof P=="function"&&P({id:e.id,requestFn:N,sortNum:e.requestSort}),r({refreshData:N}),{option:d,style:s,click:B,loading:E,onClose:g,ecanModal:u,eventObj:b,echartRef:a}}}),Line_vue_vue_type_style_index_0_lang="";function _sfc_render$e(e,r,n,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,vue.mergeProps({ref:"echartRef",option:e.option,autoresize:""},vue.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Line=_export_sfc$1(_sfc_main$c,[["render",_sfc_render$e]]),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},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$b=vue.defineComponent({name:"EcanBar",props:{...barComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(e,{expose:r}){const{pageMode:n,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.inject("usedComponentList",[]),o=vue.ref(),s=vue.ref(!1),l=vue.ref(!1),c=vue.ref(null),u=vue.ref([]),h=usePickComponentStyle(e),b=vue.ref([]),f=vue.ref(),y=vue.ref({});let d;const g=vue.computed(()=>s.value?ZOOM_FONT_SIZE:12),w=vue.computed(()=>{const{gradientShow:j,gradientColors:V,gradientOffset:$,barBorderRadius:Y}=e,J=vue.unref(b),K=J.length,ne=[];for(let X=0;X<K;X++){const W={...J[X],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(W.stack="stack"),W.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:ee=>{let te="",ae=e.labelFormatter;ae===""&&(ae="{c}");const{seriesName:ie,name:se,value:he,data:de}=ee||{};return te+=useVariablesInText(ae,{textData:{name:se,value:he,a:ie,b:se,c:he||0,...de}},{useNewline:!0,useSpace:!0}),te}},W.itemStyle={},j&&(W.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[X]},{offset:$,color:V[X]},{offset:1,color:V[X]}]}}),Y){const ee=Y.split(",");if(ee!=null&&ee.length){const te=[];for(const ae of ee){const ie=parseFloat(ae);isNaN(ie)||te.push(ie)}W.itemStyle.borderRadius=te}}e.isShowMarkLine&&(W.markLine={data:[{type:e.markLineType}]}),ne.push(W)}return ne}),p=vue.ref([]),v=vue.ref(!1),m=vue.computed(()=>{const j=e.yAxisLabelFormatter,V=e.xAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(i)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:s.value?!1:e.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(){l.value=!0;const $=o.value.chart.getOption(),{xAxis:Y}=$||{};Y&&Y.length&&(u.value=Y[0].data)}},myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:s.value?!1:e.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 $;s.value=!0,($=f.value)==null||$.showModal()}},myInfo:{show:e.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:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:$=>{var ne;const Y=$.length;let J="",K=e.tooltipFormatter;d=(ne=$[0])==null?void 0:ne.data,K===""&&(K="{marker} {a} {c}");for(let X=0;X<Y;X++){const{marker:W,seriesName:ee,name:te,value:ae,data:ie}=$[X]||{};if(X===0){let se=te;typeof te=="string"&&te[0]==="0"&&!isNaN(+te)&&(se=(+te).toString()),J+=`${useValueFormatter(V,se)}<br/>`}J+=useVariablesInText(K,{textData:{marker:W,name:te,value:ae,a:ee,b:te,c:ae||0,...ie}},{useNewline:!0,useSpace:!0}),J+="<br/>"}return J},textStyle:{color:e.tooltipTextStyleColor,fontSize:g.value},position:e.tooltipPosition||void 0},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(s.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:s.value?ZOOM_FONT_SIZE:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:vue.unref(b).map(($,Y)=>({name:$.name,itemStyle:{color:e.colors[Y]},icon:e.legendType})),formatter:$=>getLegendFormat(e.legendFormatter,{name:$})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:vue.unref(_),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor,type:e.xAxisSplitLineType},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter($){return typeof $=="string"&&$[0]==="0"&&!isNaN(+$)&&($=(+$).toString()),useValueFormatter(V,$)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?vue.unref(p):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter($){return useValueFormatter(j,$)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},max:e.yAxisMaxValue||null},series:vue.unref(w)}}),x=()=>{s.value=!1},E=(j=[],V=!1)=>{let $={};if(e.dataFieldConfigType==="key"){const Y=V?e.keyTypeDataFieldNames:null;$=useTransformChartDataByAttrKey(j,Y)}else if(e.dataFieldConfigType==="value"){const Y=V?e.valueTypeDataFieldNames:null;$=useTransformChartDataByAttrValue(j,Y)}b.value=$.dataset,p.value=$.dimensions},k=(j=[],V,$=!1)=>{const J=useTransformChartDataByAttrKey(j,$?V:null,!0);e.defaultRangeValue&&setDefaultRangeVal({props:e,componentList:vue.unref(a),getGlobalModel:R},J),b.value=J.dataset,p.value=J.dimensions},_=vue.computed(()=>vue.unref(p).map(j=>{let V={};return j&&typeof j=="object"?V={...j}:V={value:j},V}));vue.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([j])=>{(e.dataType==="static"||vue.unref(n)==="design")&&E(j)},{immediate:!0,deep:!0});const T=useRequestData(e,j=>{var V,$;E(($=(V=j==null?void 0:j.data)==null?void 0:V.data)==null?void 0:$.rows,!0)}),B=async()=>{var j,V;try{v.value=!0;const $=await T();E((V=(j=$==null?void 0:$.data)==null?void 0:j.data)==null?void 0:V.rows,!0)}catch($){console.error($)}finally{v.value=!1}},M=j=>{var J;const{columns:V=[],rows:$=[]}=((J=j==null?void 0:j.data)==null?void 0:J.data)??{};let Y;V.length>0&&(Y={name:V[0],types:V.slice(1).map(K=>({label:K,value:K}))}),k($,Y,!0)},F=useIndicatorData(e,M),O=async()=>{try{v.value=!0;const j=await F();M(j)}catch(j){console.error(j)}finally{v.value=!1}},{loadedData:D}=vue.inject(LOADED_DATA,{loadedData:{}}),N=vue.ref(!1);vue.watch(D,j=>{if(e.dataType==="indicator"){const V=getFixedValueDatas(e.graphicConfig);V!=null&&V.length&&(!vue.unref(N)&&canRequestIndicator(e.graphicConfig,j)?(N.value=!0,L()):canRequestIndicator(e.graphicConfig,j)||(N.value=!1))}},{deep:!0});const L=()=>{switch(e.dataType){case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(D))&&O();break;case"request":B();break}},P=(j,V)=>!!vue.unref(u)[V.value].value.includes(j),I=async()=>{l.value=!1;const j=o.value.chart.getOption();for(let V=0;V<7;V++)await C(j,V)},C=(j,V)=>new Promise($=>{setTimeout(()=>{const{series:Y,color:J,xAxis:K}=j,ne=o.value.chart,{splitArea:X={}}=K[0]||{};Y.forEach((W,ee)=>{const te=W.data;let ae="";V%2?ae=J[ee]+"a8":ae=J[ee],te[c.value].itemStyle={color:ae}}),V%2?(X.show=!0,X.areaStyle.color=vue.unref(u).map((W,ee)=>ee===c.value?"#ff003b26":"")):X.show=!1,ne.setOption({series:Y,xAxis:K}),$()},200)});r({refreshData:L});const S=useEmitEvent(e),{getGlobalModel:R,setGlobalModel:A}=vue.inject(GLOBAL_MODEL,{getGlobalModel:j=>{},setGlobalModel:(j,V)=>{}});A(e.id,{type:e.type,RECORD:""});const q=S("click",j=>{const V=R(e.id);A(e.id,{...V,type:e.type,RECORD:e.tooltipShow?d:j.data})}),{setRequest:H}=vue.inject(REQUEST_MODEL,{setRequest:j=>{}});typeof H=="function"&&H({id:e.id,requestFn:L,sortNum:e.requestSort});const G=()=>{const j=e.id,V=R(j);A(j,{...V,RECORD:""})},U=j=>{o.value.chart.containPixel("grid",[j.offsetX,j.offsetY])&&q()};return e.tooltipShow?y.value["zr:click"]=U:y.value.click=q,useOnEvent(e,{refreshData:L,click:q,resetRecord:G}),{option:m,style:h,refreshData:L,click:q,loading:v,onClose:x,ecanModal:f,echartRef:o,handleLocationOk:I,onFilterOption:P,locationVisible:l,locationValue:c,locationNames:u,eventObj:y}}}),Bar_vue_vue_type_style_index_0_lang="",Bar_vue_vue_type_style_index_1_scoped_36e67f03_lang="",_withScopeId$3=e=>(vue.pushScopeId("data-v-36e67f03"),e=e(),vue.popScopeId(),e),_hoisted_1$8={class:"location-wrap"},_hoisted_2$4=_withScopeId$3(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$d(e,r,n,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal"),u=vue.resolveComponent("a-select-option"),h=vue.resolveComponent("a-select"),b=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-bar",style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,vue.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},vue.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(b,{visible:e.locationVisible,"onUpdate:visible":r[1]||(r[1]=f=>e.locationVisible=f),title:"快速定位",onOk:e.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$8,[_hoisted_2$4,vue.createVNode(h,{value:e.locationValue,"onUpdate:value":r[0]||(r[0]=f=>e.locationValue=f),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.locationNames,(f,y)=>(vue.openBlock(),vue.createBlock(u,{key:y,value:y},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(f.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Bar=_export_sfc$1(_sfc_main$b,[["render",_sfc_render$d],["__scopeId","data-v-36e67f03"]]),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},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$a=vue.defineComponent({name:"EcanScatter",props:{...scatterComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:r}){const{pageMode:n,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.ref(),o=vue.ref(!1),s=usePickComponentStyle(e),l=vue.ref([]),c=vue.ref(),u=vue.computed(()=>o.value?ZOOM_FONT_SIZE:12),h=vue.ref(),b=vue.ref(),f=vue.ref(),y=vue.ref(),d=vue.computed(()=>{const{xAxisMarkLineValue:S=[],yAxisMarkLineValue:R=[]}=e,A=S.map(G=>({...G,x:!0})),q=R.map(G=>({...G,y:!0})),H=A.concat(q);if(H!=null&&H.length){const G=[],U={label:{show:!1}};for(const j of H){let V=j.value;const $=V.match(/\{(.+?)\}/g);let Y="";if(j.x?Y="xAxis":j.y&&(Y="yAxis"),$!=null&&$.length){for(const J of $)V=V.replace(J,J.slice(1,-1));if(V){const J=runCode(V,{max:j.x?vue.unref(h):j.y?vue.unref(f):0,min:j.x?vue.unref(b):j.y?vue.unref(y):0});isNaN(+J)||G.push({[Y]:+J,...U})}}else isNaN(+j.value)||G.push({[Y]:j.value,...U})}return{symbol:["none","none"],data:G}}else return{data:[]}});function g(S,R,A){switch(R){case"startX":S[0].coord[0]=+A;break;case"startY":S[0].coord[1]=+A;break;case"endX":S[1].coord[0]=+A;break;case"endY":S[1].coord[1]=+A;break}}const w=vue.computed(()=>{const{axisMarkArea:S=[]}=e;if(S!=null&&S.length){const R=[];for(const A of S){const q=[{name:"",coord:[],itemStyle:{color:A.color}},{coord:[]}];for(const H in A)if(H!=="color"){let G=A[H];const U=G.match(/\{(.+?)\}/g);if(U!=null&&U.length){for(const j of U)G=G.replace(j,j.slice(1,-1));if(G){const j=runCode(G,{xMax:vue.unref(h),xMin:vue.unref(b),yMax:vue.unref(f),yMin:vue.unref(y)});isNaN(+j)||g(q,H,j)}}else isNaN(+A[H])||g(q,H,A[H])}q.every(H=>{var G;return(G=H.coord)==null?void 0:G.length})&&R.push(q)}return{data:R}}else return{data:[]}}),p=vue.computed(()=>{const S=e.xAxisLabelFormatter,R=e.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(i)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.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 A;o.value=!0,(A=c.value)==null||A.showModal()}},myInfo:{show:e.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:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,xAxis:{z:10,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(A){return typeof A=="string"&&A[0]==="0"&&!isNaN(+A)&&(A=(+A).toString()),useValueFormatter(S,A)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor},symbol:["none",e.showXAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameLocation:e.xAxisLineInverse?"start":"end",nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},inverse:e.xAxisLineInverse,max:e.xAxisMax,min:e.xAxisMin},yAxis:{z:10,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},axisTick:{show:e.yAxisTickShow},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(A){return useValueFormatter(R,A)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor},symbol:["none",e.showYAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},name:e.yAxisName,nameLocation:e.yAxisLineInverse?"start":"end",nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},inverse:e.yAxisLineInverse,max:e.yAxisMax,min:e.yAxisMin},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(A){var $;const{marker:q,seriesName:H,componentType:G}=A,U=(($=A==null?void 0:A.data)==null?void 0:$.record)??{},j=U[vue.unref(E).name],V=U[vue.unref(E).value];return["markLine","markArea"].includes(G)?"":useVariablesInText(e.tooltipFormatter,{textData:{marker:q,seriesName:H,a:H,b:j,c:V,...U}},{useNewline:!0,useSpace:!0})},axisPointer:{type:"cross"},textStyle:{fontSize:u.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:u.value}},series:[{data:vue.unref(l),type:"scatter",symbolSize:e.symbolSize,itemStyle:{color:e.symbolColor},markLine:d.value,markArea:w.value}]}}),{getGlobalModel:v,setGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:S=>{},setGlobalModel:(S,R)=>{}}),x=()=>{const S=vue.unref(a).chart.getModel().getComponent("yAxis").axis.scale._extent,R=vue.unref(a).chart.getModel().getComponent("xAxis").axis.scale._extent;R&&S&&(b.value=R[0],h.value=R[1],y.value=S[0],f.value=S[1])},E=vue.computed(()=>{let S=e.dataFieldNames;if(e.dataType==="indicator"){const{formFields:R={}}=e.graphicConfig;R!=null&&R.labelField&&(R!=null&&R.valueField)&&(S={name:R.labelField,value:R.valueField})}return S}),k=(S=[])=>{const{name:R="name",value:A="value"}=vue.unref(E)||{};l.value=S.map(q=>({value:[q[R],q[A]],record:q})),setTimeout(()=>{x()},0)};vue.watch(()=>e.data,S=>{(e.dataType==="static"||vue.unref(n)==="design")&&k(S)},{immediate:!0,deep:!0});const _=vue.ref(!1),T=useRequestData(e,S=>{var R,A;k((A=(R=S==null?void 0:S.data)==null?void 0:R.data)==null?void 0:A.rows)}),B=async()=>{var S,R;if(e.dataType==="request"){_.value=!0;try{const A=await T();k((R=(S=A==null?void 0:A.data)==null?void 0:S.data)==null?void 0:R.rows)}catch(A){console.error(A)}finally{_.value=!1}}},M=()=>{o.value=!1},F=useEmitEvent(e);m(e.id,{type:e.type,RECORD:""});const O=F("click",S=>{const R=e.id,A=v(R);m(R,{...A,type:e.type,RECORD:S==null?void 0:S.data})}),D=S=>{var R,A;k((A=(R=S==null?void 0:S.data)==null?void 0:R.data)==null?void 0:A.rows)},N=useIndicatorData(e,D),L=async()=>{try{_.value=!0;const S=await N();D(S)}catch(S){console.error(S)}finally{_.value=!1}},P=()=>{switch(e.dataType){case"indicator":L();break;case"request":B();break}};useOnEvent(e,{refreshData:P,click:O,resetRecord:()=>{const S=e.id,R=v(S);m(S,{...R,RECORD:""})}});const{setRequest:C}=vue.inject(REQUEST_MODEL,{setRequest:S=>{}});return typeof C=="function"&&C({id:e.id,requestFn:P,sortNum:e.requestSort}),r({refreshData:P}),{option:p,style:s,click:O,loading:_,onClose:M,ecanModal:c,echartRef:a}}}),Scatter_vue_vue_type_style_index_0_lang="";function _sfc_render$c(e,r,n,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{ref:"echartRef",option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Scatter=_export_sfc$1(_sfc_main$a,[["render",_sfc_render$c]]),EcanScatter=withInstall$1(Scatter),customGraphProps={...props,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},customGraphComponentProps=transformToComponentProps(customGraphProps),_sfc_main$9=vue.defineComponent({name:"EcanCustomGraph",props:{...customGraphComponentProps},components:{Echarts},setup(e){const r=usePickComponentStyle(e),n=vue.ref();return vue.watch(()=>e.optionCode,i=>{try{const a=eval;n.value=a(i)}catch(a){console.error(a)}},{immediate:!0}),{style:r,myOption:n,echarts:echarts__namespace}}});function _sfc_render$b(e,r,n,i,a,o){const s=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const CustomGraph=_export_sfc$1(_sfc_main$9,[["render",_sfc_render$b]]),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},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$8=vue.defineComponent({name:"EcanComboGraph",props:{...comboGraphComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(e,{expose:r}){const{pageMode:n,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.inject("usedComponentList",[]),{getGlobalModel:o,setGlobalModel:s}=vue.inject(GLOBAL_MODEL,{getGlobalModel:V=>{},setGlobalModel:(V,$)=>{}}),l=vue.ref(),c=vue.ref(!1),u=vue.ref(!1),h=vue.ref(null),b=vue.ref([]),f=vue.ref({});let y;const d=usePickComponentStyle(e),g=vue.ref([]),w=vue.ref([]),p=vue.ref(),v=vue.ref([]),m=vue.computed(()=>c.value?ZOOM_FONT_SIZE:12),x=vue.computed(()=>({textStyle:{fontFamily:vue.unref(i)},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:c.value?!1:e.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(){u.value=!0;const V=l.value.chart.getOption(),{xAxis:$}=V||{};$&&$.length&&(b.value=$[0].data)}},myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:c.value?!1:e.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 V;c.value=!0,(V=p.value)==null||V.showModal()}},myInfo:{show:e.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:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(c.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:c.value?ZOOM_FONT_SIZE:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:vue.unref(v).map((V,$)=>({name:V.name,itemStyle:{color:e.colors[$]},icon:e.legendType})),formatter:V=>getLegendFormat(e.legendFormatter,{name:V})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:V=>{var ne;const $=V.length;let Y="",J=e.tooltipFormatter;y=(ne=V[0])==null?void 0:ne.data,J===""&&(J="{marker} {a} {c}");const K=e.seriesTypes;for(let X=0;X<$;X++){const W=K[X],{tooltipFormatter:ee}=W||{},{marker:te,seriesName:ae,name:ie,value:se,data:he}=V[X]||{};if(X===0){let de=ie;typeof ie=="string"&&ie[0]==="0"&&!isNaN(+ie)&&(de=(+ie).toString()),Y+=`${useValueFormatter(e.xAxisLabelFormatter,de)}<br/>`}Y+=useVariablesInText(ee||J,{textData:{marker:te,name:ie,value:se,seriesName:ae,a:ae,b:ie,c:se||0,...he}},{useNewline:!0,useSpace:!0}),Y+="<br/>"}return Y},textStyle:{color:e.tooltipTextStyleColor,fontSize:m.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:vue.unref(w).map(V=>{let $={};return V&&typeof V=="object"?$={...V}:$={value:V},$}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(V){return typeof V=="string"&&V[0]==="0"&&!isNaN(+V)&&(V=(+V).toString()),useValueFormatter(e.xAxisLabelFormatter,V)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:vue.unref(B),series:vue.unref(g)})),E=()=>{c.value=!1},k=(V=[],$=!1)=>{let Y;if(e.dataFieldConfigType==="key"){const K=$?e.keyTypeDataFieldNames:null;Y=useTransformChartDataByAttrKey(V,K)}else if(e.dataFieldConfigType==="value"){const K=$?e.valueTypeDataFieldNames:null;Y=useTransformChartDataByAttrValue(V,K)}w.value=Y.dimensions;const J=Y.dataset;v.value=Y.dataset,g.value=T(J)},_=(V=[],$,Y=!1)=>{const K=useTransformChartDataByAttrKey(V,Y?$:null,!0);e.defaultRangeValue&&setDefaultRangeVal({props:e,componentList:vue.unref(a),getGlobalModel:o},K),w.value=K.dimensions;const ne=K.dataset;v.value=K.dataset,g.value=T(ne)};function T(V){const $=[],Y=V.length,J=e.seriesTypes;for(let K=0;K<Y;K++){const ne=J[K],{type:X,axisIndex:W}=ne||{};let ee={type:X,yAxisIndex:W,...V[K]};if(X==="line"){const te={};e.shadowColor&&(te.shadowColor=e.shadowColor,te.shadowBlur=e.shadowBlur,te.shadowOffsetY=e.shadowOffsetY,te.shadowOffsetX=e.shadowOffsetX),ee={...ee,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[K]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[K]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[K],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...te}}}if(X==="bar"){const{gradientShow:te,gradientColors:ae,gradientOffset:ie}=e,se={};if(e.barBorderRadius){const he=e.barBorderRadius.split(",");if(he!=null&&he.length){const de=[];for(const ge of he){const be=parseFloat(ge);isNaN(be)||de.push(be)}se.borderRadius=de}}te&&(se.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[K]},{offset:ie,color:ae[K]},{offset:1,color:ae[K]}]}),ee={...ee,barWidth:e.barWidth,itemStyle:se}}e.isShowMarkLine&&(ee.markLine={data:[{type:e.markLineType}]}),$.push(ee)}return $}vue.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor,e.gradientShow,e.gradientColors,e.gradientOffset,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.xAxisLabelFormatter,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([V])=>{(e.dataType==="static"||vue.unref(n)==="design")&&k(V)},{immediate:!0,deep:!0});const B=vue.computed(()=>{const V=e.yAxis;return V==null?void 0:V.map(($,Y)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:Y===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:Y===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(J){return useValueFormatter($.axisLabelFormatter,J)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:Y===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:Y===0?"right":"left"},max:e.yAxisMaxValue||null}))}),M=vue.ref(!1),F=useRequestData(e,V=>{var $,Y;k((Y=($=V==null?void 0:V.data)==null?void 0:$.data)==null?void 0:Y.rows,!0)}),O=async()=>{var V,$;if(e.dataType==="request")try{M.value=!0;const Y=await F();k(($=(V=Y==null?void 0:Y.data)==null?void 0:V.data)==null?void 0:$.rows,!0)}catch(Y){console.error(Y)}finally{M.value=!1}},D=V=>{var K;const{columns:$=[],rows:Y=[]}=((K=V==null?void 0:V.data)==null?void 0:K.data)??{};let J;$.length>0&&(J={name:$[0],types:$.slice(1).map(ne=>({label:ne,value:ne}))}),_(Y,J,!0)},N=useIndicatorData(e,D),L=async()=>{try{M.value=!0;const V=await N();D(V)}catch(V){console.error(V)}finally{M.value=!1}},{loadedData:P}=vue.inject(LOADED_DATA,{loadedData:{}}),I=vue.ref(!1);vue.watch(P,V=>{if(e.dataType==="indicator"){const $=getFixedValueDatas(e.graphicConfig);$!=null&&$.length&&(!vue.unref(I)&&canRequestIndicator(e.graphicConfig,V)?(I.value=!0,C()):canRequestIndicator(e.graphicConfig,V)||(I.value=!1))}},{deep:!0});const C=()=>{switch(e.dataType){case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(P))&&L();break;case"request":O();break}},S=(V,$)=>!!vue.unref(b)[$.value].value.includes(V),R=async()=>{u.value=!1;const V=l.value.chart.getOption();for(let $=0;$<7;$++)await A(V,$)},A=(V,$)=>new Promise(Y=>{setTimeout(()=>{const{series:J,color:K,xAxis:ne}=V,X=l.value.chart,{splitArea:W={}}=ne[0]||{};J.forEach((ee,te)=>{const ae=ee.data;let ie="";$%2?ie=K[te]+"a8":ie=K[te],ae[h.value].itemStyle={color:ie}}),$%2?(W.show=!0,W.areaStyle.color=vue.unref(b).map((ee,te)=>te===h.value?"#ff003b26":"")):W.show=!1,X.setOption({series:J,xAxis:ne}),Y()},200)});r({refreshData:C});const q=useEmitEvent(e);s(e.id,{type:e.type,RECORD:""});const H=q("click",V=>{const $=o(e.id);s(e.id,{...$,type:e.type,RECORD:e.tooltipShow?y:V==null?void 0:V.data})}),G=V=>{l.value.chart.containPixel("grid",[V.offsetX,V.offsetY])&&H()};e.tooltipShow?f.value["zr:click"]=G:f.value.click=H;const{setRequest:U}=vue.inject(REQUEST_MODEL,{setRequest:V=>{}});return typeof U=="function"&&U({id:e.id,requestFn:C,sortNum:e.requestSort}),useOnEvent(e,{resetRecord:()=>{const V=e.id,$=o(V);s(V,{...$,RECORD:""})},refreshData:C,click:H}),{style:d,option:x,click:H,loading:M,onClose:E,ecanModal:p,echartRef:l,handleLocationOk:R,onFilterOption:S,locationVisible:u,locationValue:h,locationNames:b,eventObj:f}}}),ComboGraph_vue_vue_type_style_index_0_lang="",ComboGraph_vue_vue_type_style_index_1_scoped_db85dc30_lang="",_withScopeId$2=e=>(vue.pushScopeId("data-v-db85dc30"),e=e(),vue.popScopeId(),e),_hoisted_1$7={class:"location-wrap"},_hoisted_2$3=_withScopeId$2(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$a(e,r,n,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal"),u=vue.resolveComponent("a-select-option"),h=vue.resolveComponent("a-select"),b=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,vue.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},vue.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(b,{visible:e.locationVisible,"onUpdate:visible":r[1]||(r[1]=f=>e.locationVisible=f),title:"快速定位",onOk:e.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$7,[_hoisted_2$3,vue.createVNode(h,{value:e.locationValue,"onUpdate:value":r[0]||(r[0]=f=>e.locationValue=f),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.locationNames,(f,y)=>(vue.openBlock(),vue.createBlock(u,{key:y,value:y},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(f.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const ComboGraph=_export_sfc$1(_sfc_main$8,[["render",_sfc_render$a],["__scopeId","data-v-db85dc30"]]),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$7=vue.defineComponent({name:"EcanRadar",props:{...radarComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:r}){const{pageMode:n,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.ref(),o=vue.ref(!1),s=usePickComponentStyle(e),l=vue.ref([]),c=vue.ref(),u=vue.computed(()=>o.value?ZOOM_FONT_SIZE:12),h=vue.ref([]),b=vue.ref(e.valueTypeDataFieldNames.name),f=vue.computed(()=>{const L=vue.unref(h),P=L.length,I=[];for(let C=0;C<P;C++){const{name:S,data:R=[]}=L[C],A=[{name:S,value:R.map(G=>G.value)}];let q=e.colors[C];if(e.gradientShow){const{gradientOffset:G,gradientColors:U}=e;q={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[C]},{offset:G,color:U[C]},{offset:1,color:U[C]}]}}const H={type:"radar",name:S,data:A,areaStyle:{color:q,opacity:e.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:e.symbolSize,lineStyle:{width:e.lineStyleWidth},label:{show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:G=>{const{data:U,value:j}=G;let V=0,$="0%";if(U)for(const Y of U.value)V+=+Y;return V&&($=`${(j/V*100).toFixed(2)}%`),useVariablesInText(e.labelFormatter,{textData:{value:j,percent:$}},{useNewline:!1,useSpace:!1})}}};I.push(H)}return I}),y=vue.computed(()=>{var S;const L=[],P=[],I=vue.unref(h),C=I.length;for(let R=0;R<C;R++){const{data:A=[]}=I[R];for(let q=0;q<A.length;q++)P.push(A[q].value)}if((S=l.value)!=null&&S.length){const R=P!=null&&P.length?Math.max(...P)*1.2:0;for(const A of l.value)L.push({name:A,max:R})}return L}),d=vue.computed(()=>({textStyle:{fontFamily:vue.unref(i)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.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 L;o.value=!0,(L=c.value)==null||L.showModal()}},myInfo:{show:e.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:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:u.value},show:e.tooltipShow,formatter:L=>{let P="",I=e.tooltipFormatter;I===""&&(I="{marker} {a} {c}");for(let C=0;C<vue.unref(y).length;C++){const S=vue.unref(y)[C],{marker:R,seriesName:A,value:q}=L||{};C===0&&A&&(P+=`${A}<br/>`),P+=useVariablesInText(I,{textData:{marker:R,name:S.name,value:q[C],a:S.name,b:S.name,c:q[C]||0,type:A}},{useNewline:!0,useSpace:!0}),P+="<br/>"}return P},position:e.tooltipPosition||void 0},radar:{indicator:vue.unref(y),axisName:{color:e.axisNameColor}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(o.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:o.value?ZOOM_FONT_SIZE:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:vue.unref(h).map(L=>({name:L.name,icon:e.legendType})),formatter:L=>getLegendFormat(e.legendFormatter,{name:L})},series:vue.unref(f)})),g=()=>{o.value=!1},{getGlobalModel:w,setGlobalModel:p}=vue.inject(GLOBAL_MODEL,{getGlobalModel:L=>{},setGlobalModel:(L,P)=>{}}),v=(L=[],P=!1)=>{let I;if(e.dataFieldConfigType==="key"){const C=P?e.keyTypeDataFieldNames:null;I=useTransformChartDataByAttrKey(L,C)}else if(e.dataFieldConfigType==="value"){const C=P?e.valueTypeDataFieldNames:null;I=useTransformChartDataByAttrValue(L,C)}l.value=I.dimensions,h.value=I.dataset},m=(L=[],P,I=!1)=>{const S=useTransformChartDataByAttrKey(L,I?P:null,!0);l.value=S.dimensions,h.value=S.dataset};vue.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([L])=>{(e.dataType==="static"||vue.unref(n)==="design")&&v(L)},{immediate:!0,deep:!0});const x=vue.ref(!1),E=useRequestData(e,L=>{var P,I;v((I=(P=L==null?void 0:L.data)==null?void 0:P.data)==null?void 0:I.rows,!0)}),k=async()=>{var L,P;if(e.dataType==="request")try{x.value=!0;const I=await E();v((P=(L=I==null?void 0:I.data)==null?void 0:L.data)==null?void 0:P.rows,!0)}catch(I){console.error(I)}finally{x.value=!1}},_=useEmitEvent(e);p(e.id,{type:e.type,RECORD:""});const T=L=>{const P=L.event.topTarget.__dimIdx;P!==void 0&&_("click",()=>{var R;const{value:I,name:C}=L.data||{},S=w(e.id);p(e.id,{...S,type:e.type,RECORD:{[vue.unref(b)]:((R=vue.unref(y)[P])==null?void 0:R.name)||"",[C]:I[P],seriesName:C}})})()},B=L=>{var S;const{columns:P=[],rows:I=[]}=((S=L==null?void 0:L.data)==null?void 0:S.data)??{};let C;P.length>0&&(b.value=P[0],C={name:P[0],types:P.slice(1).map(R=>({label:R,value:R}))}),m(I,C,!0)},M=useIndicatorData(e,B),F=async()=>{try{x.value=!0;const L=await M();B(L)}catch(L){console.error(L)}finally{x.value=!1}},O=()=>{switch(e.dataType){case"indicator":F();break;case"request":k();break}};useOnEvent(e,{refreshData:O,resetRecord:()=>{const L=e.id,P=w(L);p(L,{...P,RECORD:""})},click:T});const{setRequest:N}=vue.inject(REQUEST_MODEL,{setRequest:L=>{}});return typeof N=="function"&&N({id:e.id,requestFn:O,sortNum:e.requestSort}),r({refreshData:O}),{option:d,style:s,click:T,loading:x,onClose:g,ecanModal:c,echartRef:a}}}),Radar_vue_vue_type_style_index_0_lang="";function _sfc_render$9(e,r,n,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{ref:"echartRef",option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Radar=_export_sfc$1(_sfc_main$7,[["render",_sfc_render$9]]),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$6=vue.defineComponent({name:"EcanBorder",props:{...borderComponentProps},setup(e){const r=usePickComponentStyle(e,["background"]),n=vue.computed(()=>{const{isTransparent:d,gradientShow:g,gradientColor:w,gradientOffset:p,gradientAngle:v,backgroundColor:m}=e;if(g){let x=w;return d&&(x="transparent"),x?{background:`linear-gradient(${v}, ${m}, ${x} ${p*100}%)`}:{}}else return{}}),i=vue.computed(()=>{const{events:d}=e;let g={};return d!=null&&d.length&&d.find(p=>p.emit==="showModal")&&(g={cursor:"pointer"}),g}),{theme:a}=vue.inject(GLOBAL_CONFIG,{theme:"light"}),o=vue.computed(()=>{let d="";switch(e.titleMode){case"type-2":d="2";break}return d}),s=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${o.value}.png`],self.location).href),l=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${o.value}.png`],self.location).href),c=vue.computed(()=>({width:"100%",height:"100%"})),u=vue.computed(()=>{const{borderRadius:d}=e,g=[],w={};if(d){const p=d.split(",");for(const v of p)(+v||+v==0)&&g.push(+v+"px")}return g!=null&&g.length&&(w.borderRadius=g.join(" ")),w}),b=useEmitEvent(e)("click",()=>{}),f=vue.ref([]);vue.watch(()=>e.data,d=>{f.value=d},{immediate:!0,deep:!0}),useOnEvent(e,{click:b});const{setGlobalModel:y}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(d,g)=>{}});return y(e.id,{type:e.type,value:f}),{style:r,gradientStyle:n,click:b,borderStyle:c,theme:a,borderRadiusStyle:u,titleLeftIcon:s,titleRightIcon:l,cursorStyle:i}}}),Border_vue_vue_type_style_index_0_scoped_8dd53b8f_lang="",_withScopeId$1=e=>(vue.pushScopeId("data-v-8dd53b8f"),e=e(),vue.popScopeId(),e),_hoisted_1$6=["id"],_hoisted_2$2=_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$8(e,r,n,i,a,o){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-border",style:vue.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:r[0]||(r[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"no-title",style:vue.normalizeStyle(e.borderStyle)},[e.useBorderModify?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[_hoisted_2$2,_hoisted_3$1,_hoisted_4$1,_hoisted_5$1],64)):vue.createCommentVNode("",!0)],4)):vue.createCommentVNode("",!0),e.mode==="top-title"?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"top-title",style:vue.normalizeStyle(e.borderStyle)},[vue.createElementVNode("div",{class:vue.normalizeClass(["title-item-wrapper",e.titleMode])},[vue.createElementVNode("div",_hoisted_6$1,[vue.createElementVNode("img",{class:vue.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,_hoisted_7$1),vue.createElementVNode("div",_hoisted_8$1,vue.toDisplayString(e.title),1),vue.createElementVNode("img",{class:vue.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,_hoisted_9$1)])],2),_hoisted_10$1,_hoisted_11$1,_hoisted_12$1,_hoisted_13$1],4)):vue.createCommentVNode("",!0),e.mode==="left-title"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14$1,[vue.createElementVNode("div",_hoisted_15$1,[vue.createElementVNode("span",null,vue.toDisplayString(e.title),1)])])):vue.createCommentVNode("",!0)],12,_hoisted_1$6)}const Border=_export_sfc$1(_sfc_main$6,[["render",_sfc_render$8],["__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$5=vue.defineComponent({name:"EcanTabs",props:{...tabsComponentProps},components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,MarqueeScroll},setup(e){const r=usePickComponentStyle(e),n=vue.ref(0);vue.watch(()=>e.activeKey,T=>{n.value=T},{immediate:!0});const{pageMode:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),a=vue.inject("getContainerMap",()=>{}),o=vue.inject("componentList",[]),s=["ecanBorder","ecanTabs","ecanCirculate"],l=vue.computed(()=>a()||{}),c=T=>{const B=vue.unref(l)[T],M=[];if(B)for(const F in B)for(const O of B[F]){const D=vue.unref(o).find(N=>N.id===O);M.push(O),s.includes(D==null?void 0:D.type)&&M.push(...c(O))}return M},u=vue.computed(()=>c(e.id));let h=null;const b=()=>{const T=Array.isArray(vue.unref(y))?vue.unref(y).length-1:0;vue.unref(i)!=="design"&&!e.isAutoScroll&&e.autoSwitch&&T>0&&(h=setInterval(()=>{const B=vue.unref(n)+1;B<=T?n.value=B:n.value=0,d.value=vue.unref(y)[vue.unref(n)],v()},e.autoSwitchInterval*1e3))},f=()=>{clearInterval(h)};vue.onMounted(()=>{vue.unref(i)!=="design"&&b()}),vue.onBeforeUnmount(()=>{f()});const y=vue.ref([]),d=vue.ref({});vue.watch(()=>e.data,T=>{y.value=T,d.value=Array.isArray(T)&&T.length>0?T[0]:{}},{immediate:!0,deep:!0});const g=T=>n.value===T,w=useEmitEvent(e),{setGlobalModel:p}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(T,B)=>{}});p(e.id,{RECORD:vue.unref(d),value:vue.unref(d),activeKey:n});const{emitRefreshPage:v}=vue.inject(REFRESH_PAGE,{emitRefreshPage:()=>{}}),m=T=>{let{tab:B,index:M}=T||{};if(T.label){const F=vue.unref(y).findIndex(O=>O.title===T.label);F!==-1&&(M=F,B=vue.unref(y)[F])}w("tabChange",()=>{!isNaN(+M)&&M!==vue.unref(n)&&(d.value=B,n.value=M,p(e.id,{RECORD:B,value:B,activeKey:M}),v())})()},x=vue.computed(()=>{const T=e.componentList.map(B=>parseFloat(B.left)+parseFloat(B.width)).sort((B,M)=>M-B)[0];return{width:T?T+"px":"100%"}}),E=()=>{vue.unref(i)!=="design"&&f()},k=T=>{var B,M;return T?(M=(B=T==null?void 0:T.parentNode)==null?void 0:B.className)!=null&&M.includes("ecan-")?T.parentNode.getAttribute("cpntid"):k(T.parentNode):""},_=T=>{var B;if(vue.unref(i)!=="design"){const M=(T==null?void 0:T.toElement)||{};if((B=M==null?void 0:M.className)!=null&&B.includes("ecan-"))vue.unref(u).includes(M.getAttribute("cpntid"))||b();else if((M==null?void 0:M.className)==="page-config")b();else{const F=k(M);vue.unref(u).includes(F)||b()}}};return useOnEvent(e,{tabChange:m}),{style:r,activeKey:n,isActive:g,tabChange:m,myData:y,useImagePath,pageMode:i,scrollWrapStyle:x,onMouseEnter:E,onMouseLeave:_}}}),Tabs_vue_vue_type_style_index_0_scoped_c936183e_lang="",_hoisted_1$5=["id"],_hoisted_2$1=["onClick"];function _sfc_render$7(e,r,n,i,a,o){const s=vue.resolveComponent("a-select-option"),l=vue.resolveComponent("a-select"),c=vue.resolveComponent("marquee-scroll");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tabs",style:vue.normalizeStyle(e.style),id:"container_"+e.id,onMouseenter:r[0]||(r[0]=(...u)=>e.onMouseEnter&&e.onMouseEnter(...u)),onMouseleave:r[1]||(r[1]=(...u)=>e.onMouseLeave&&e.onMouseLeave(...u))},[e.pageMode==="design"||!e.isAutoScroll?vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{key:0,class:"tabs-header",style:vue.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection,margin:`${e.gridTopPx||0} ${e.gridRightPx||0} ${e.gridBottomPx||0} ${e.gridLeftPx||0}`})},[e.tabType==="tabs"?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(e.myData,(u,h)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(h)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(h)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:null,marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:null,fontWeight:e.tabFontWeight}),key:h,onClick:vue.withModifiers(b=>e.tabChange({tab:u,index:h}),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(h)?e.activeTabColor:"transparent"}`:""})},vue.toDisplayString(u.title),5)],12,_hoisted_2$1))),128)):e.tabType==="select"?(vue.openBlock(),vue.createBlock(l,{key:1,value:e.activeKey,style:vue.normalizeStyle({width:e.tabWidth})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myData,(u,h)=>(vue.openBlock(),vue.createBlock(s,{key:h,value:h,onClick:b=>e.tabChange({tab:u,index:h})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(u.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):vue.createCommentVNode("",!0)],4)),[[vue.vShow,e.pageMode==="design"||!e.hideTabs]]):vue.createCommentVNode("",!0),e.pageMode!=="design"&&e.isAutoScroll?(vue.openBlock(),vue.createBlock(c,{key:1,visible:e.isAutoScroll,step:e.scrollSpeed,vertical:!1,style:vue.normalizeStyle({height:e.height})},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(e.scrollWrapStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.componentList,u=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(u.type),vue.normalizeProps(vue.mergeProps({key:u.id},u)),null,16))),128))],4)]),_:1},8,["visible","step","style"])):vue.createCommentVNode("",!0)],44,_hoisted_1$5)}const Tabs$1=_export_sfc$1(_sfc_main$5,[["render",_sfc_render$7],["__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=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((r,n)=>(n&=63,n<36?r+=n.toString(36):n<62?r+=(n-26).toString(36).toUpperCase():n>62?r+="-":r+="_",r),"");const _sfc_main$4=vue.defineComponent({name:"EcanCirculate",props:{...circulateComponentProps,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll,Skeleton},setup(e,{expose:r}){const n=vue.ref(!1),i=usePickComponentStyle(e,["background"]),a=vue.inject("usedComponentList",[]),o=vue.inject("isMobile",!1),{getGlobalModel:s,setGlobalModel:l}=vue.inject(GLOBAL_MODEL,{getGlobalModel:T=>{},setGlobalModel:(T,B)=>{}}),c=vue.ref([]),u=vue.ref({}),{pageMode:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),b=vue.computed(()=>{if(vue.unref(o)){const T=document.body.clientWidth,B=e.sourceWidth||parseFloat(e.width);return T/B||1}else return 1});function f(T,B){const M=B.find(F=>F.id===e.id);if(M)for(const F of T)F.left=parseFloat(F.left)-parseFloat(M.sourceLeft||M.left)+"px",F.top=parseFloat(F.top)-parseFloat(M.sourceTop||M.top)+"px"}const y=T=>{const B=T.sort((D,N)=>parseFloat(D.top)-parseFloat(N.top))[0],M=T.sort((D,N)=>parseFloat(D.left)-parseFloat(N.left))[0],F=T.map(D=>parseFloat(D.left)+parseFloat(D.width)).sort((D,N)=>N-D)[0],O=T.map(D=>parseFloat(D.top)+parseFloat(D.height)).sort((D,N)=>N-D)[0];if(M&&F&&B&&O){const D=parseFloat(M.left),N=parseFloat(B.top);return{width:F-D,height:O-N,left:D}}else return{width:0,height:0,left:0}},d=vue.ref({}),g=T=>{var S,R;const B=[],{graphicConfig:M,id:F,componentList:O,keyFieldMap:D,unitInterval:N,colNum:L}=e;let P=lodashEs.cloneDeep(O),I=[];if((S=vue.unref(a))!=null&&S.length)for(const A of vue.unref(a))I.push(A),(R=A==null?void 0:A.componentList)!=null&&R.length&&I.push(...A.componentList);if(M.pageMode==="design"&&M.preview){const{containerMap:A}=M.pageConfig||{};I=M.componentList||[],I.push(e),P=moveToComponentList(A,lodashEs.cloneDeep(I),F)}f(P,I);const C=y(P);if(T!=null&&T.length){const{width:A,left:q,height:H}=C;let G=0,U=0;T.forEach((j,V)=>{j.index=V+1;const $=nanoid(),Y=lodashEs.cloneDeep(P);for(const J of Y){const K=D.find(X=>X.keyName===J.keyName),ne=nanoid();if(J.left=(parseFloat(J.left)+G)*vue.unref(b)+"px",J.top=(parseFloat(J.top)+U)*vue.unref(b)+"px",J.scale=vue.unref(b),J.id=ne,J.keyName=J.name+"_"+ne,J.unitId=$,K!=null&&K.fieldName){const X=J.text.match(/\{(.+?)\}/g);switch(J.type){case"ecanText":{J.data={value:String(j[K.fieldName])},X!=null&&X.length||(J.text="{value}");break}case"ecanProportion":{J.data={percent:String(j[K.fieldName])},X!=null&&X.length||(J.text="{percent}");break}}}}L&&j.index%L===0?(G=0,U+=N+H):G+=N+A,B.push(...Y),d.value[$]=j}),u.value={width:((L||T.length)*(A+N)+q)*vue.unref(b)+"px",height:(L?Math.ceil(T.length/L)*(N+H):N+H)*vue.unref(b)+"px"}}c.value=B},w=T=>{var M;const{rows:B=[]}=((M=T==null?void 0:T.data)==null?void 0:M.data)??{};g(B)},p=useIndicatorData(e,w),v=async()=>{try{n.value=!0;const T=await p();w(T)}catch(T){console.error(T)}finally{n.value=!1}},m=()=>{switch(e.dataType){case"indicator":v();break}};useOnEvent(e,{refreshData:m,resetRecord:()=>{const T=e.id,B=s(T);l(T,{...B,RECORD:""})}}),r({refreshData:m}),l(e.id,{type:e.type,RECORD:""});const{setRequest:E}=vue.inject(REQUEST_MODEL,{setRequest:T=>{}});typeof E=="function"&&E({id:e.id,requestFn:m,sortNum:e.requestSort});const k=useEmitEvent(e);return{loading:n,style:i,myComponentList:c,scrollWrapStyle:u,pageMode:h,click:T=>{let B=T.target;if(B){let M=B.getAttribute("unitId");for(;!M&&!B.className.includes("ecan-");)B=B.parentElement,M=B.getAttribute("unitId");M&&k("click",()=>{const F=s(e.id);l(e.id,{...F,type:e.type,RECORD:vue.unref(d)[M]})})()}}}}}),Circulate_vue_vue_type_style_index_0_scoped_85608bec_lang="",_hoisted_1$4=["id"];function _sfc_render$6(e,r,n,i,a,o){const s=vue.resolveComponent("marquee-scroll"),l=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-circulate",style:vue.normalizeStyle(e.style),id:"container_"+e.id,onClick:r[0]||(r[0]=(...c)=>e.click&&e.click(...c))},[vue.createVNode(l,{loading:e.loading},{default:vue.withCtx(()=>{var c;return[(c=e.myComponentList)!=null&&c.length?(vue.openBlock(),vue.createBlock(s,{key:0,visible:e.pageMode!=="design"&&e.isAutoScroll,step:e.scrollSpeed,vertical:e.scrollDirection==="vertical",marqueeStyle:{height:"100%"},wrapStyle:{height:"100%",overflow:"auto"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(e.scrollWrapStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myComponentList,u=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(u.type),vue.normalizeProps(vue.mergeProps({key:u.id},u)),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$4,[["render",_sfc_render$6],["__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$3=vue.defineComponent({name:"EcanTemplate",props:{...templateComponentProps},components:{},setup(e){const r=usePickComponentStyle(e,["background"]),{templateEmit:n}=vue.inject("templateOperate",{templateEmit:(a,o)=>{}})||{};return useOnEvent(e,{refreshData:()=>{n("refreshTemplate",e.pageId)}}),{style:r}}});function _sfc_render$5(e,r,n,i,a,o){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-template",style:vue.normalizeStyle(e.style)},[vue.renderSlot(e.$slots,"default")],4)}const Template=_export_sfc$1(_sfc_main$3,[["render",_sfc_render$5]]),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:""}},imageComponentProps=transformToComponentProps(imageProps),imageEvents=["click"];var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(e,r){module.exports=r()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(r){_useWebWorker=!!r},getWebWorker=function(){return _useWebWorker},setLocationHref=function(r){locationHref=r},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,r){var n,i=e.length,a;for(n=0;n<i;n+=1){a=e[n].prototype;for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r.prototype[o]=a[o])}}function getDescriptor(e,r){return Object.getOwnPropertyDescriptor(e,r)}function createProxyFunction(e){function r(){}return r.prototype=e,r}var audioControllerFactory=function(){function e(r){this.audios=[],this.audioFactory=r,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].pause()},resume:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].resume()},setRate:function(n){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].setRate(n)},createAudio:function(n){return this.audioFactory?this.audioFactory(n):window.Howl?new window.Howl({src:[n]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(n){this.audioFactory=n},setVolume:function(n){this._volume=n,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(n,i){var a=0,o=[],s;switch(n){case"int16":case"uint8c":s=1;break;default:s=1.1;break}for(a=0;a<i;a+=1)o.push(s);return o}function r(n,i){return n==="float32"?new Float32Array(i):n==="int16"?new Int16Array(i):n==="uint8c"?new Uint8ClampedArray(i):e(n,i)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?r:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(n){return typeof n}:_typeof$6=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$6(e)}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 e=["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"],r,n=e.length;for(r=0;r<n;r+=1)BMMath[e[r]]=Math[e[r]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var r=_typeof$6(e);if(r==="object"&&e.length){var n=createSizedArray(e.length),i,a=e.length;for(i=0;i<a;i+=1)n[i]=Math.abs(e[i]);return n}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,r,n,i){this.type=e,this.currentTime=r,this.totalTime=n,this.direction=i<0?-1:1}function BMCompleteEvent(e,r){this.type=e,this.direction=r<0?-1:1}function BMCompleteLoopEvent(e,r,n,i){this.type=e,this.currentLoop=n,this.totalLoops=r,this.direction=i<0?-1:1}function BMSegmentStartEvent(e,r,n){this.type=e,this.firstFrame=r,this.totalFrames=n}function BMDestroyEvent(e,r){this.type=e,this.target=r}function BMRenderFrameErrorEvent(e,r){this.type="renderFrameError",this.nativeError=e,this.currentTime=r}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}}();function HSVtoRGB(e,r,n){var i,a,o,s,l,c,u,h;switch(s=Math.floor(e*6),l=e*6-s,c=n*(1-r),u=n*(1-l*r),h=n*(1-(1-l)*r),s%6){case 0:i=n,a=h,o=c;break;case 1:i=u,a=n,o=c;break;case 2:i=c,a=n,o=h;break;case 3:i=c,a=u,o=n;break;case 4:i=h,a=c,o=n;break;case 5:i=n,a=c,o=u;break}return[i,a,o]}function RGBtoHSV(e,r,n){var i=Math.max(e,r,n),a=Math.min(e,r,n),o=i-a,s,l=i===0?0:o/i,c=i/255;switch(i){case a:s=0;break;case e:s=r-n+o*(r<n?6:0),s/=6*o;break;case r:s=n-e+o*2,s/=6*o;break;case n:s=e-r+o*4,s/=6*o;break}return[s,l,c]}function addSaturationToRGB(e,r){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[1]+=r,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,r){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[2]+=r,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,r){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[0]+=r/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var e=[],r,n;for(r=0;r<256;r+=1)n=r.toString(16),e[r]=n.length===1?"0"+n:n;return function(i,a,o){return i<0&&(i=0),a<0&&(a=0),o<0&&(o=0),"#"+e[i]+e[a]+e[o]}}(),setSubframeEnabled=function(r){subframeEnabled=!!r},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(r){expressionsPlugin=r},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(r){expressionsInterfaces=r},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(r){defaultCurveSegments=r},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(r){idPrefix$1=r};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(n){return typeof n}:_typeof$5=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$5(e)}var dataManager=function(){var e=1,r=[],n,i,a={onmessage:function(){},postMessage:function(y){n({data:y})}},o={postMessage:function(y){a.onmessage({data:y})}};function s(f){if(window.Worker&&window.Blob&&getWebWorker()){var y=new Blob(["var _workerSelf = self; self.onmessage = ",f.toString()],{type:"text/javascript"}),d=URL.createObjectURL(y);return new Worker(d)}return n=f,a}function l(){i||(i=s(function(y){function d(){function w(L,P){var I,C,S=L.length,R,A,q,H;for(C=0;C<S;C+=1)if(I=L[C],"ks"in I&&!I.completed){if(I.completed=!0,I.hasMask){var G=I.masksProperties;for(A=G.length,R=0;R<A;R+=1)if(G[R].pt.k.i)E(G[R].pt.k);else for(H=G[R].pt.k.length,q=0;q<H;q+=1)G[R].pt.k[q].s&&E(G[R].pt.k[q].s[0]),G[R].pt.k[q].e&&E(G[R].pt.k[q].e[0])}I.ty===0?(I.layers=m(I.refId,P),w(I.layers,P)):I.ty===4?x(I.shapes):I.ty===5&&D(I)}}function p(L,P){if(L){var I=0,C=L.length;for(I=0;I<C;I+=1)L[I].t===1&&(L[I].data.layers=m(L[I].data.refId,P),w(L[I].data.layers,P))}}function v(L,P){for(var I=0,C=P.length;I<C;){if(P[I].id===L)return P[I];I+=1}return null}function m(L,P){var I=v(L,P);return I?I.layers.__used?JSON.parse(JSON.stringify(I.layers)):(I.layers.__used=!0,I.layers):null}function x(L){var P,I=L.length,C,S;for(P=I-1;P>=0;P-=1)if(L[P].ty==="sh")if(L[P].ks.k.i)E(L[P].ks.k);else for(S=L[P].ks.k.length,C=0;C<S;C+=1)L[P].ks.k[C].s&&E(L[P].ks.k[C].s[0]),L[P].ks.k[C].e&&E(L[P].ks.k[C].e[0]);else L[P].ty==="gr"&&x(L[P].it)}function E(L){var P,I=L.i.length;for(P=0;P<I;P+=1)L.i[P][0]+=L.v[P][0],L.i[P][1]+=L.v[P][1],L.o[P][0]+=L.v[P][0],L.o[P][1]+=L.v[P][1]}function k(L,P){var I=P?P.split("."):[100,100,100];return L[0]>I[0]?!0:I[0]>L[0]?!1:L[1]>I[1]?!0:I[1]>L[1]?!1:L[2]>I[2]?!0:I[2]>L[2]?!1:null}var _=function(){var L=[4,4,14];function P(C){var S=C.t.d;C.t.d={k:[{s:S,t:0}]}}function I(C){var S,R=C.length;for(S=0;S<R;S+=1)C[S].ty===5&&P(C[S])}return function(C){if(k(L,C.v)&&(I(C.layers),C.assets)){var S,R=C.assets.length;for(S=0;S<R;S+=1)C.assets[S].layers&&I(C.assets[S].layers)}}}(),T=function(){var L=[4,7,99];return function(P){if(P.chars&&!k(L,P.v)){var I,C=P.chars.length;for(I=0;I<C;I+=1){var S=P.chars[I];S.data&&S.data.shapes&&(x(S.data.shapes),S.data.ip=0,S.data.op=99999,S.data.st=0,S.data.sr=1,S.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}},P.chars[I].t||(S.data.shapes.push({ty:"no"}),S.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"})))}}}}(),B=function(){var L=[5,7,15];function P(C){var S=C.t.p;typeof S.a=="number"&&(S.a={a:0,k:S.a}),typeof S.p=="number"&&(S.p={a:0,k:S.p}),typeof S.r=="number"&&(S.r={a:0,k:S.r})}function I(C){var S,R=C.length;for(S=0;S<R;S+=1)C[S].ty===5&&P(C[S])}return function(C){if(k(L,C.v)&&(I(C.layers),C.assets)){var S,R=C.assets.length;for(S=0;S<R;S+=1)C.assets[S].layers&&I(C.assets[S].layers)}}}(),M=function(){var L=[4,1,9];function P(C){var S,R=C.length,A,q;for(S=0;S<R;S+=1)if(C[S].ty==="gr")P(C[S].it);else if(C[S].ty==="fl"||C[S].ty==="st")if(C[S].c.k&&C[S].c.k[0].i)for(q=C[S].c.k.length,A=0;A<q;A+=1)C[S].c.k[A].s&&(C[S].c.k[A].s[0]/=255,C[S].c.k[A].s[1]/=255,C[S].c.k[A].s[2]/=255,C[S].c.k[A].s[3]/=255),C[S].c.k[A].e&&(C[S].c.k[A].e[0]/=255,C[S].c.k[A].e[1]/=255,C[S].c.k[A].e[2]/=255,C[S].c.k[A].e[3]/=255);else C[S].c.k[0]/=255,C[S].c.k[1]/=255,C[S].c.k[2]/=255,C[S].c.k[3]/=255}function I(C){var S,R=C.length;for(S=0;S<R;S+=1)C[S].ty===4&&P(C[S].shapes)}return function(C){if(k(L,C.v)&&(I(C.layers),C.assets)){var S,R=C.assets.length;for(S=0;S<R;S+=1)C.assets[S].layers&&I(C.assets[S].layers)}}}(),F=function(){var L=[4,4,18];function P(C){var S,R=C.length,A,q;for(S=R-1;S>=0;S-=1)if(C[S].ty==="sh")if(C[S].ks.k.i)C[S].ks.k.c=C[S].closed;else for(q=C[S].ks.k.length,A=0;A<q;A+=1)C[S].ks.k[A].s&&(C[S].ks.k[A].s[0].c=C[S].closed),C[S].ks.k[A].e&&(C[S].ks.k[A].e[0].c=C[S].closed);else C[S].ty==="gr"&&P(C[S].it)}function I(C){var S,R,A=C.length,q,H,G,U;for(R=0;R<A;R+=1){if(S=C[R],S.hasMask){var j=S.masksProperties;for(H=j.length,q=0;q<H;q+=1)if(j[q].pt.k.i)j[q].pt.k.c=j[q].cl;else for(U=j[q].pt.k.length,G=0;G<U;G+=1)j[q].pt.k[G].s&&(j[q].pt.k[G].s[0].c=j[q].cl),j[q].pt.k[G].e&&(j[q].pt.k[G].e[0].c=j[q].cl)}S.ty===4&&P(S.shapes)}}return function(C){if(k(L,C.v)&&(I(C.layers),C.assets)){var S,R=C.assets.length;for(S=0;S<R;S+=1)C.assets[S].layers&&I(C.assets[S].layers)}}}();function O(L){L.__complete||(M(L),_(L),T(L),B(L),F(L),w(L.layers,L.assets),p(L.chars,L.assets),L.__complete=!0)}function D(L){L.t.a.length===0&&"m"in L.t.p}var N={};return N.completeData=O,N.checkColors=M,N.checkChars=T,N.checkPathProperties=B,N.checkShapes=F,N.completeLayers=w,N}if(o.dataManager||(o.dataManager=d()),o.assetLoader||(o.assetLoader=function(){function w(v){var m=v.getResponseHeader("content-type");return m&&v.responseType==="json"&&m.indexOf("json")!==-1||v.response&&_typeof$5(v.response)==="object"?v.response:v.response&&typeof v.response=="string"?JSON.parse(v.response):v.responseText?JSON.parse(v.responseText):null}function p(v,m,x,E){var k,_=new XMLHttpRequest;try{_.responseType="json"}catch{}_.onreadystatechange=function(){if(_.readyState===4)if(_.status===200)k=w(_),x(k);else try{k=w(_),x(k)}catch(T){E&&E(T)}};try{_.open(["G","E","T"].join(""),v,!0)}catch{_.open(["G","E","T"].join(""),m+"/"+v,!0)}_.send()}return{load:p}}()),y.data.type==="loadAnimation")o.assetLoader.load(y.data.path,y.data.fullPath,function(w){o.dataManager.completeData(w),o.postMessage({id:y.data.id,payload:w,status:"success"})},function(){o.postMessage({id:y.data.id,status:"error"})});else if(y.data.type==="complete"){var g=y.data.animation;o.dataManager.completeData(g),o.postMessage({id:y.data.id,payload:g,status:"success"})}else y.data.type==="loadData"&&o.assetLoader.load(y.data.path,y.data.fullPath,function(w){o.postMessage({id:y.data.id,payload:w,status:"success"})},function(){o.postMessage({id:y.data.id,status:"error"})})}),i.onmessage=function(f){var y=f.data,d=y.id,g=r[d];r[d]=null,y.status==="success"?g.onComplete(y.payload):g.onError&&g.onError()})}function c(f,y){e+=1;var d="processId_"+e;return r[d]={onComplete:f,onError:y},d}function u(f,y,d){l();var g=c(y,d);i.postMessage({type:"loadAnimation",path:f,fullPath:window.location.origin+window.location.pathname,id:g})}function h(f,y,d){l();var g=c(y,d);i.postMessage({type:"loadData",path:f,fullPath:window.location.origin+window.location.pathname,id:g})}function b(f,y,d){l();var g=c(y,d);i.postMessage({type:"complete",animation:f,id:g})}return{loadAnimation:u,loadData:h,completeAnimation:b}}(),ImagePreloader=function(){var e=function(){var p=createTag("canvas");p.width=1,p.height=1;var v=p.getContext("2d");return v.fillStyle="rgba(0,0,0,0)",v.fillRect(0,0,1,1),p}();function r(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(p,v,m){var x="";if(p.e)x=p.p;else if(v){var E=p.p;E.indexOf("images/")!==-1&&(E=E.split("/")[1]),x=v+E}else x=m,x+=p.u?p.u:"",x+=p.p;return x}function a(p){var v=0,m=setInterval((function(){var x=p.getBBox();(x.width||v>500)&&(this._imageLoaded(),clearInterval(m)),v+=1}).bind(this),50)}function o(p){var v=i(p,this.assetsPath,this.path),m=createNS("image");isSafari?this.testImageLoaded(m):m.addEventListener("load",this._imageLoaded,!1),m.addEventListener("error",(function(){x.img=e,this._imageLoaded()}).bind(this),!1),m.setAttributeNS("http://www.w3.org/1999/xlink","href",v),this._elementHelper.append?this._elementHelper.append(m):this._elementHelper.appendChild(m);var x={img:m,assetData:p};return x}function s(p){var v=i(p,this.assetsPath,this.path),m=createTag("img");m.crossOrigin="anonymous",m.addEventListener("load",this._imageLoaded,!1),m.addEventListener("error",(function(){x.img=e,this._imageLoaded()}).bind(this),!1),m.src=v;var x={img:m,assetData:p};return x}function l(p){var v={assetData:p},m=i(p,this.assetsPath,this.path);return dataManager.loadData(m,(function(x){v.img=x,this._footageLoaded()}).bind(this),(function(){v.img={},this._footageLoaded()}).bind(this)),v}function c(p,v){this.imagesLoadedCb=v;var m,x=p.length;for(m=0;m<x;m+=1)p[m].layers||(!p[m].t||p[m].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(p[m]))):p[m].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(p[m]))))}function u(p){this.path=p||""}function h(p){this.assetsPath=p||""}function b(p){for(var v=0,m=this.images.length;v<m;){if(this.images[v].assetData===p)return this.images[v].img;v+=1}return null}function f(){this.imagesLoadedCb=null,this.images.length=0}function y(){return this.totalImages===this.loadedAssets}function d(){return this.totalFootages===this.loadedFootagesCount}function g(p,v){p==="svg"?(this._elementHelper=v,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function w(){this._imageLoaded=r.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=a.bind(this),this.createFootageData=l.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return w.prototype={loadAssets:c,setAssetsPath:h,setPath:u,loadedImages:y,loadedFootages:d,destroy:f,getAsset:b,createImgData:s,createImageData:o,imageLoaded:r,footageLoaded:n,setCacheType:g},w}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(r,n){if(this._cbs[r])for(var i=this._cbs[r],a=0;a<i.length;a+=1)i[a](n)},addEventListener:function(r,n){return this._cbs[r]||(this._cbs[r]=[]),this._cbs[r].push(n),(function(){this.removeEventListener(r,n)}).bind(this)},removeEventListener:function(r,n){if(!n)this._cbs[r]=null;else if(this._cbs[r]){for(var i=0,a=this._cbs[r].length;i<a;)this._cbs[r][i]===n&&(this._cbs[r].splice(i,1),i-=1,a-=1),i+=1;this._cbs[r].length||(this._cbs[r]=null)}}};var markerParser=function(){function e(r){for(var n=r.split(`\r
120
120
  `),i={},a,o=0,s=0;s<n.length;s+=1)a=n[s].split(":"),a.length===2&&(i[a[0]]=a[1].trim(),o+=1);if(o===0)throw new Error;return i}return function(r){for(var n=[],i=0;i<r.length;i+=1){var a=r[i],o={time:a.tm,duration:a.dr};try{o.payload=JSON.parse(r[i].cm)}catch{try{o.payload=e(r[i].cm)}catch{o.payload={name:r[i].cm}}}n.push(o)}return n}}(),ProjectInterface=function(){function e(r){this.compositions.push(r)}return function(){function r(n){for(var i=0,a=this.compositions.length;i<a;){if(this.compositions[i].data&&this.compositions[i].data.nm===n)return this.compositions[i].prepareFrame&&this.compositions[i].data.xt&&this.compositions[i].prepareFrame(this.currentFrame),this.compositions[i].compInterface;i+=1}return null}return r.compositions=[],r.currentFrame=0,r.registerComposition=e,r}}(),renderers={},registerRenderer=function(r,n){renderers[r]=n};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(n){return typeof n}:_typeof$4=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$4(e)}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(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var r="svg";e.animType?r=e.animType:e.renderer&&(r=e.renderer);var n=getRenderer(r);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(r,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=r,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,r){r&&_typeof$4(r)!=="object"&&(r=JSON.parse(r));var n={wrapper:e,animationData:r},i=e.attributes;n.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",n.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var a=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";a==="false"?n.loop=!1:a==="true"?n.loop=!0:a!==""&&(n.loop=parseInt(a,10));var o=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:i.getNamedItem("bm-autoplay")?i.getNamedItem("bm-autoplay").value:!0;n.autoplay=o!=="false",n.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"";var s=i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"";s==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var r=this.animationData.layers,n,i=r.length,a=e.layers,o,s=a.length;for(o=0;o<s;o+=1)for(n=0;n<i;){if(r[n].id===a[o].id){r[n]=a[o];break}n+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,n=0;n<i;n+=1)this.animationData.assets.push(e.assets[n]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var r=getExpressionsPlugin();r&&r.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var r=e.shift();this.timeCompleted=r.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var e=this.animationData.segments;e||(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(e){if(this.renderer)try{this.animationData=e,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(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(r){this.triggerConfigError(r)}},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 e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,r){var n=typeof e=="number"?e:void 0,i=typeof r=="number"?r:void 0;this.renderer.updateContainerSize(n,i)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},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(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var r,n=0;n<this.markers.length;n+=1)if(r=this.markers[n],r.payload&&r.payload.name===e)return r;return null},AnimationItem.prototype.goToAndStop=function(e,r,n){if(!(n&&this.name!==n)){var i=Number(e);if(isNaN(i)){var a=this.getMarkerData(e);a&&this.goToAndStop(a.time,!0)}else r?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,r,n){if(!(n&&this.name!==n)){var i=Number(e);if(isNaN(i)){var a=this.getMarkerData(e);a&&(a.duration?this.playSegments([a.time,a.time+a.duration],!0):this.goToAndStop(a.time,!0))}else this.goToAndStop(i,r,n);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var r=this.currentRawFrame+e*this.frameModifier,n=!1;r>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(r>this.totalFrames?r%this.totalFrames:0)||(n=!0,r=this.totalFrames-1):r>=this.totalFrames?(this.playCount+=1,this.checkSegments(r%this.totalFrames)||(this.setCurrentRawFrameValue(r%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(r):r<0?this.checkSegments(r%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+r%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,r=0)):this.setCurrentRawFrameValue(r),n&&(this.setCurrentRawFrameValue(r),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,r){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-r)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+r)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,r){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>r&&(n=r-e)),this.firstFrame=e,this.totalFrames=r-e,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,r){if(r&&(this.segments.length=0),_typeof$4(e[0])==="object"){var n,i=e.length;for(n=0;n<i;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&r&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!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(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,r){r&&this.name!==r||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||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(e){var r="";if(e.e)r=e.p;else if(this.assetsPath){var n=e.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),r=this.assetsPath+n}else r=this.path,r+=e.u?e.u:"",r+=e.p;return r},AnimationItem.prototype.getAssetData=function(e){for(var r=0,n=this.assets.length;r<n;){if(e===this.assets[r].id)return this.assets[r];r+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,r,n){try{var i=this.renderer.getElementByPath(e);i.updateDocumentData(r,n)}catch{}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,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(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var r=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)},AnimationItem.prototype.triggerConfigError=function(e){var r=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)};var animationManager=function(){var e={},r=[],n=0,i=0,a=0,o=!0,s=!1;function l(P){for(var I=0,C=P.target;I<i;)r[I].animation===C&&(r.splice(I,1),I-=1,i-=1,C.isPaused||b()),I+=1}function c(P,I){if(!P)return null;for(var C=0;C<i;){if(r[C].elem===P&&r[C].elem!==null)return r[C].animation;C+=1}var S=new AnimationItem;return f(S,P),S.setData(P,I),S}function u(){var P,I=r.length,C=[];for(P=0;P<I;P+=1)C.push(r[P].animation);return C}function h(){a+=1,M()}function b(){a-=1}function f(P,I){P.addEventListener("destroy",l),P.addEventListener("_active",h),P.addEventListener("_idle",b),r.push({elem:I,animation:P}),i+=1}function y(P){var I=new AnimationItem;return f(I,null),I.setParams(P),I}function d(P,I){var C;for(C=0;C<i;C+=1)r[C].animation.setSpeed(P,I)}function g(P,I){var C;for(C=0;C<i;C+=1)r[C].animation.setDirection(P,I)}function w(P){var I;for(I=0;I<i;I+=1)r[I].animation.play(P)}function p(P){var I=P-n,C;for(C=0;C<i;C+=1)r[C].animation.advanceTime(I);n=P,a&&!s?window.requestAnimationFrame(p):o=!0}function v(P){n=P,window.requestAnimationFrame(p)}function m(P){var I;for(I=0;I<i;I+=1)r[I].animation.pause(P)}function x(P,I,C){var S;for(S=0;S<i;S+=1)r[S].animation.goToAndStop(P,I,C)}function E(P){var I;for(I=0;I<i;I+=1)r[I].animation.stop(P)}function k(P){var I;for(I=0;I<i;I+=1)r[I].animation.togglePause(P)}function _(P){var I;for(I=i-1;I>=0;I-=1)r[I].animation.destroy(P)}function T(P,I,C){var S=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),R,A=S.length;for(R=0;R<A;R+=1)C&&S[R].setAttribute("data-bm-type",C),c(S[R],P);if(I&&A===0){C||(C="svg");var q=document.getElementsByTagName("body")[0];q.innerText="";var H=createTag("div");H.style.width="100%",H.style.height="100%",H.setAttribute("data-bm-type",C),q.appendChild(H),c(H,P)}}function B(){var P;for(P=0;P<i;P+=1)r[P].animation.resize()}function M(){!s&&a&&o&&(window.requestAnimationFrame(v),o=!1)}function F(){s=!0}function O(){s=!1,M()}function D(P,I){var C;for(C=0;C<i;C+=1)r[C].animation.setVolume(P,I)}function N(P){var I;for(I=0;I<i;I+=1)r[I].animation.mute(P)}function L(P){var I;for(I=0;I<i;I+=1)r[I].animation.unmute(P)}return e.registerAnimation=c,e.loadAnimation=y,e.setSpeed=d,e.setDirection=g,e.play=w,e.pause=m,e.stop=E,e.togglePause=k,e.searchAnimations=T,e.resize=B,e.goToAndStop=x,e.destroy=_,e.freeze=F,e.unfreeze=O,e.setVolume=D,e.mute=N,e.unmute=L,e.getRegisteredAnimations=u,e}(),BezierFactory=function(){var e={};e.getBezierEasing=n;var r={};function n(v,m,x,E,k){var _=k||("bez_"+v+"_"+m+"_"+x+"_"+E).replace(/\./g,"p");if(r[_])return r[_];var T=new p([v,m,x,E]);return r[_]=T,T}var i=4,a=.001,o=1e-7,s=10,l=11,c=1/(l-1),u=typeof Float32Array=="function";function h(v,m){return 1-3*m+3*v}function b(v,m){return 3*m-6*v}function f(v){return 3*v}function y(v,m,x){return((h(m,x)*v+b(m,x))*v+f(m))*v}function d(v,m,x){return 3*h(m,x)*v*v+2*b(m,x)*v+f(m)}function g(v,m,x,E,k){var _,T,B=0;do T=m+(x-m)/2,_=y(T,E,k)-v,_>0?x=T:m=T;while(Math.abs(_)>o&&++B<s);return T}function w(v,m,x,E){for(var k=0;k<i;++k){var _=d(m,x,E);if(_===0)return m;var T=y(m,x,E)-v;m-=T/_}return m}function p(v){this._p=v,this._mSampleValues=u?new Float32Array(l):new Array(l),this._precomputed=!1,this.get=this.get.bind(this)}return p.prototype={get:function(m){var x=this._p[0],E=this._p[1],k=this._p[2],_=this._p[3];return this._precomputed||this._precompute(),x===E&&k===_?m:m===0?0:m===1?1:y(this._getTForX(m),E,_)},_precompute:function(){var m=this._p[0],x=this._p[1],E=this._p[2],k=this._p[3];this._precomputed=!0,(m!==x||E!==k)&&this._calcSampleValues()},_calcSampleValues:function(){for(var m=this._p[0],x=this._p[2],E=0;E<l;++E)this._mSampleValues[E]=y(E*c,m,x)},_getTForX:function(m){for(var x=this._p[0],E=this._p[2],k=this._mSampleValues,_=0,T=1,B=l-1;T!==B&&k[T]<=m;++T)_+=c;--T;var M=(m-k[T])/(k[T+1]-k[T]),F=_+M*c,O=d(F,x,E);return O>=a?w(m,F,x,E):O===0?F:g(m,_,_+c,x,E)}},e}(),pooling=function(){function e(r){return r.concat(createSizedArray(r.length))}return{double:e}}(),poolFactory=function(){return function(e,r,n){var i=0,a=e,o=createSizedArray(a),s={newElement:l,release:c};function l(){var u;return i?(i-=1,u=o[i]):u=r(),u}function c(u){i===a&&(o=pooling.double(o),a*=2),n&&n(u),o[i]=u,i+=1}return s}}(),bezierLengthPool=function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)}(),segmentsLengthPool=function(){function e(){return{lengths:[],totalLength:0}}function r(n){var i,a=n.lengths.length;for(i=0;i<a;i+=1)bezierLengthPool.release(n.lengths[i]);n.lengths.length=0}return poolFactory(8,e,r)}();function bezFunction(){var e=Math;function r(f,y,d,g,w,p){var v=f*g+y*w+d*p-w*g-p*f-d*y;return v>-.001&&v<.001}function n(f,y,d,g,w,p,v,m,x){if(d===0&&p===0&&x===0)return r(f,y,g,w,v,m);var E=e.sqrt(e.pow(g-f,2)+e.pow(w-y,2)+e.pow(p-d,2)),k=e.sqrt(e.pow(v-f,2)+e.pow(m-y,2)+e.pow(x-d,2)),_=e.sqrt(e.pow(v-g,2)+e.pow(m-w,2)+e.pow(x-p,2)),T;return E>k?E>_?T=E-k-_:T=_-k-E:_>k?T=_-k-E:T=k-E-_,T>-1e-4&&T<1e-4}var i=function(){return function(f,y,d,g){var w=getDefaultCurveSegments(),p,v,m,x,E,k=0,_,T=[],B=[],M=bezierLengthPool.newElement();for(m=d.length,p=0;p<w;p+=1){for(E=p/(w-1),_=0,v=0;v<m;v+=1)x=bmPow(1-E,3)*f[v]+3*bmPow(1-E,2)*E*d[v]+3*(1-E)*bmPow(E,2)*g[v]+bmPow(E,3)*y[v],T[v]=x,B[v]!==null&&(_+=bmPow(T[v]-B[v],2)),B[v]=T[v];_&&(_=bmSqrt(_),k+=_),M.percents[p]=E,M.lengths[p]=k}return M.addedLength=k,M}}();function a(f){var y=segmentsLengthPool.newElement(),d=f.c,g=f.v,w=f.o,p=f.i,v,m=f._length,x=y.lengths,E=0;for(v=0;v<m-1;v+=1)x[v]=i(g[v],g[v+1],w[v],p[v+1]),E+=x[v].addedLength;return d&&m&&(x[v]=i(g[v],g[0],w[v],p[0]),E+=x[v].addedLength),y.totalLength=E,y}function o(f){this.segmentLength=0,this.points=new Array(f)}function s(f,y){this.partialLength=f,this.point=y}var l=function(){var f={};return function(y,d,g,w){var p=(y[0]+"_"+y[1]+"_"+d[0]+"_"+d[1]+"_"+g[0]+"_"+g[1]+"_"+w[0]+"_"+w[1]).replace(/\./g,"p");if(!f[p]){var v=getDefaultCurveSegments(),m,x,E,k,_,T=0,B,M,F=null;y.length===2&&(y[0]!==d[0]||y[1]!==d[1])&&r(y[0],y[1],d[0],d[1],y[0]+g[0],y[1]+g[1])&&r(y[0],y[1],d[0],d[1],d[0]+w[0],d[1]+w[1])&&(v=2);var O=new o(v);for(E=g.length,m=0;m<v;m+=1){for(M=createSizedArray(E),_=m/(v-1),B=0,x=0;x<E;x+=1)k=bmPow(1-_,3)*y[x]+3*bmPow(1-_,2)*_*(y[x]+g[x])+3*(1-_)*bmPow(_,2)*(d[x]+w[x])+bmPow(_,3)*d[x],M[x]=k,F!==null&&(B+=bmPow(M[x]-F[x],2));B=bmSqrt(B),T+=B,O.points[m]=new s(B,M),F=M}O.segmentLength=T,f[p]=O}return f[p]}}();function c(f,y){var d=y.percents,g=y.lengths,w=d.length,p=bmFloor((w-1)*f),v=f*y.addedLength,m=0;if(p===w-1||p===0||v===g[p])return d[p];for(var x=g[p]>v?-1:1,E=!0;E;)if(g[p]<=v&&g[p+1]>v?(m=(v-g[p])/(g[p+1]-g[p]),E=!1):p+=x,p<0||p>=w-1){if(p===w-1)return d[p];E=!1}return d[p]+(d[p+1]-d[p])*m}function u(f,y,d,g,w,p){var v=c(w,p),m=1-v,x=e.round((m*m*m*f[0]+(v*m*m+m*v*m+m*m*v)*d[0]+(v*v*m+m*v*v+v*m*v)*g[0]+v*v*v*y[0])*1e3)/1e3,E=e.round((m*m*m*f[1]+(v*m*m+m*v*m+m*m*v)*d[1]+(v*v*m+m*v*v+v*m*v)*g[1]+v*v*v*y[1])*1e3)/1e3;return[x,E]}var h=createTypedArray("float32",8);function b(f,y,d,g,w,p,v){w<0?w=0:w>1&&(w=1);var m=c(w,v);p=p>1?1:p;var x=c(p,v),E,k=f.length,_=1-m,T=1-x,B=_*_*_,M=m*_*_*3,F=m*m*_*3,O=m*m*m,D=_*_*T,N=m*_*T+_*m*T+_*_*x,L=m*m*T+_*m*x+m*_*x,P=m*m*x,I=_*T*T,C=m*T*T+_*x*T+_*T*x,S=m*x*T+_*x*x+m*T*x,R=m*x*x,A=T*T*T,q=x*T*T+T*x*T+T*T*x,H=x*x*T+T*x*x+x*T*x,G=x*x*x;for(E=0;E<k;E+=1)h[E*4]=e.round((B*f[E]+M*d[E]+F*g[E]+O*y[E])*1e3)/1e3,h[E*4+1]=e.round((D*f[E]+N*d[E]+L*g[E]+P*y[E])*1e3)/1e3,h[E*4+2]=e.round((I*f[E]+C*d[E]+S*g[E]+R*y[E])*1e3)/1e3,h[E*4+3]=e.round((A*f[E]+q*d[E]+H*g[E]+G*y[E])*1e3)/1e3;return h}return{getSegmentsLength:a,getNewSegment:b,getPointInSegment:u,buildBezierData:l,pointOnLine2D:r,pointOnLine3D:n}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,r){var n=this.offsetTime,i;this.propType==="multidimensional"&&(i=createTypedArray("float32",this.pv.length));for(var a=r.lastIndex,o=a,s=this.keyframes.length-1,l=!0,c,u,h;l;){if(c=this.keyframes[o],u=this.keyframes[o+1],o===s-1&&e>=u.t-n){c.h&&(c=u),a=0;break}if(u.t-n>e){a=o;break}o<s-1?o+=1:(a=0,l=!1)}h=this.keyframesMetadata[o]||{};var b,f,y,d,g,w,p=u.t-n,v=c.t-n,m;if(c.to){h.bezierData||(h.bezierData=bez.buildBezierData(c.s,u.s||c.e,c.to,c.ti));var x=h.bezierData;if(e>=p||e<v){var E=e>=p?x.points.length-1:0;for(f=x.points[E].point.length,b=0;b<f;b+=1)i[b]=x.points[E].point[b]}else{h.__fnct?w=h.__fnct:(w=BezierFactory.getBezierEasing(c.o.x,c.o.y,c.i.x,c.i.y,c.n).get,h.__fnct=w),y=w((e-v)/(p-v));var k=x.segmentLength*y,_,T=r.lastFrame<e&&r._lastKeyframeIndex===o?r._lastAddedLength:0;for(g=r.lastFrame<e&&r._lastKeyframeIndex===o?r._lastPoint:0,l=!0,d=x.points.length;l;){if(T+=x.points[g].partialLength,k===0||y===0||g===x.points.length-1){for(f=x.points[g].point.length,b=0;b<f;b+=1)i[b]=x.points[g].point[b];break}else if(k>=T&&k<T+x.points[g+1].partialLength){for(_=(k-T)/x.points[g+1].partialLength,f=x.points[g].point.length,b=0;b<f;b+=1)i[b]=x.points[g].point[b]+(x.points[g+1].point[b]-x.points[g].point[b])*_;break}g<d-1?g+=1:l=!1}r._lastPoint=g,r._lastAddedLength=T-x.points[g].partialLength,r._lastKeyframeIndex=o}}else{var B,M,F,O,D;if(s=c.s.length,m=u.s||c.e,this.sh&&c.h!==1)if(e>=p)i[0]=m[0],i[1]=m[1],i[2]=m[2];else if(e<=v)i[0]=c.s[0],i[1]=c.s[1],i[2]=c.s[2];else{var N=createQuaternion(c.s),L=createQuaternion(m),P=(e-v)/(p-v);quaternionToEuler(i,slerp(N,L,P))}else for(o=0;o<s;o+=1)c.h!==1&&(e>=p?y=1:e<v?y=0:(c.o.x.constructor===Array?(h.__fnct||(h.__fnct=[]),h.__fnct[o]?w=h.__fnct[o]:(B=c.o.x[o]===void 0?c.o.x[0]:c.o.x[o],M=c.o.y[o]===void 0?c.o.y[0]:c.o.y[o],F=c.i.x[o]===void 0?c.i.x[0]:c.i.x[o],O=c.i.y[o]===void 0?c.i.y[0]:c.i.y[o],w=BezierFactory.getBezierEasing(B,M,F,O).get,h.__fnct[o]=w)):h.__fnct?w=h.__fnct:(B=c.o.x,M=c.o.y,F=c.i.x,O=c.i.y,w=BezierFactory.getBezierEasing(B,M,F,O).get,c.keyframeMetadata=w),y=w((e-v)/(p-v)))),m=u.s||c.e,D=c.h===1?c.s[o]:c.s[o]+(m[o]-c.s[o])*y,this.propType==="multidimensional"?i[o]=D:i=D}return r.lastIndex=a,i}function slerp(e,r,n){var i=[],a=e[0],o=e[1],s=e[2],l=e[3],c=r[0],u=r[1],h=r[2],b=r[3],f,y,d,g,w;return y=a*c+o*u+s*h+l*b,y<0&&(y=-y,c=-c,u=-u,h=-h,b=-b),1-y>1e-6?(f=Math.acos(y),d=Math.sin(f),g=Math.sin((1-n)*f)/d,w=Math.sin(n*f)/d):(g=1-n,w=n),i[0]=g*a+w*c,i[1]=g*o+w*u,i[2]=g*s+w*h,i[3]=g*l+w*b,i}function quaternionToEuler(e,r){var n=r[0],i=r[1],a=r[2],o=r[3],s=Math.atan2(2*i*o-2*n*a,1-2*i*i-2*a*a),l=Math.asin(2*n*i+2*a*o),c=Math.atan2(2*n*o-2*i*a,1-2*n*n-2*a*a);e[0]=s/degToRads,e[1]=l/degToRads,e[2]=c/degToRads}function createQuaternion(e){var r=e[0]*degToRads,n=e[1]*degToRads,i=e[2]*degToRads,a=Math.cos(r/2),o=Math.cos(n/2),s=Math.cos(i/2),l=Math.sin(r/2),c=Math.sin(n/2),u=Math.sin(i/2),h=a*o*s-l*c*u,b=l*c*s+a*o*u,f=l*o*s+a*c*u,y=a*c*s-l*o*u;return[b,f,y,h]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<r&&e<r))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function setVValue(e){var r;if(this.propType==="unidimensional")r=e*this.mult,mathAbs(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var n=0,i=this.v.length;n<i;)r=e[n]*this.mult,mathAbs(this.v[n]-r)>1e-5&&(this.v[n]=r,this._mdf=!0),n+=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 e,r=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<r;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,r,n,i){this.propType="unidimensional",this.mult=n||1,this.data=r,this.v=n?r.k*n:r.k,this.pv=r.k,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.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(e,r,n,i){this.propType="multidimensional",this.mult=n||1,this.data=r,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var a,o=r.k.length;for(this.v=createTypedArray("float32",o),this.pv=createTypedArray("float32",o),this.vel=createTypedArray("float32",o),a=0;a<o;a+=1)this.v[a]=r.k[a]*this.mult,this.pv[a]=r.k[a];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,r,n,i){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=n||1,this.elem=e,this.container=i,this.comp=e.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(e,r,n,i){this.propType="multidimensional";var a,o=r.k.length,s,l,c,u;for(a=0;a<o-1;a+=1)r.k[a].to&&r.k[a].s&&r.k[a+1]&&r.k[a+1].s&&(s=r.k[a].s,l=r.k[a+1].s,c=r.k[a].to,u=r.k[a].ti,(s.length===2&&!(s[0]===l[0]&&s[1]===l[1])&&bez.pointOnLine2D(s[0],s[1],l[0],l[1],s[0]+c[0],s[1]+c[1])&&bez.pointOnLine2D(s[0],s[1],l[0],l[1],l[0]+u[0],l[1]+u[1])||s.length===3&&!(s[0]===l[0]&&s[1]===l[1]&&s[2]===l[2])&&bez.pointOnLine3D(s[0],s[1],s[2],l[0],l[1],l[2],s[0]+c[0],s[1]+c[1],s[2]+c[2])&&bez.pointOnLine3D(s[0],s[1],s[2],l[0],l[1],l[2],l[0]+u[0],l[1]+u[1],l[2]+u[2]))&&(r.k[a].to=null,r.k[a].ti=null),s[0]===l[0]&&s[1]===l[1]&&c[0]===0&&c[1]===0&&u[0]===0&&u[1]===0&&(s.length===2||s[2]===l[2]&&c[2]===0&&u[2]===0)&&(r.k[a].to=null,r.k[a].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=i,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var h=r.k[0].s.length;for(this.v=createTypedArray("float32",h),this.pv=createTypedArray("float32",h),a=0;a<h;a+=1)this.v[a]=initFrame,this.pv[a]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",h)},this.addEffect=addEffect}var PropertyFactory=function(){function e(n,i,a,o,s){i.sid&&(i=n.globalData.slotManager.getProp(i));var l;if(!i.k.length)l=new ValueProperty(n,i,o,s);else if(typeof i.k[0]=="number")l=new MultiDimensionalProperty(n,i,o,s);else switch(a){case 0:l=new KeyframedValueProperty(n,i,o,s);break;case 1:l=new KeyframedMultidimensionalProperty(n,i,o,s);break}return l.effectsSequence.length&&s.addDynamicProperty(l),l}var r={getProp:e};return r}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&(this.dynamicProperties.push(r),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var r,n=this.dynamicProperties.length;for(r=0;r<n;r+=1)this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(r){this.container=r,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function e(){return createTypedArray("float32",2)}return poolFactory(8,e)}();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(e,r){this.c=e,this.setLength(r);for(var n=0;n<r;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},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(e,r,n,i,a){var o;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[];break}(!o[i]||o[i]&&!a)&&(o[i]=pointPool.newElement()),o[i][0]=e,o[i][1]=r},ShapePath.prototype.setTripleAt=function(e,r,n,i,a,o,s,l){this.setXYAt(e,r,"v",s,l),this.setXYAt(n,i,"o",s,l),this.setXYAt(a,o,"i",s,l)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var r=this.v,n=this.o,i=this.i,a=0;this.c&&(e.setTripleAt(r[0][0],r[0][1],i[0][0],i[0][1],n[0][0],n[0][1],0,!1),a=1);var o=this._length-1,s=this._length,l;for(l=a;l<s;l+=1)e.setTripleAt(r[o][0],r[o][1],i[o][0],i[o][1],n[o][0],n[o][1],l,!1),o-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function e(){return new ShapePath}function r(a){var o=a._length,s;for(s=0;s<o;s+=1)pointPool.release(a.v[s]),pointPool.release(a.i[s]),pointPool.release(a.o[s]),a.v[s]=null,a.i[s]=null,a.o[s]=null;a._length=0,a.c=!1}function n(a){var o=i.newElement(),s,l=a._length===void 0?a.v.length:a._length;for(o.setLength(l),o.c=a.c,s=0;s<l;s+=1)o.setTripleAt(a.v[s][0],a.v[s][1],a.o[s][0],a.o[s][1],a.i[s][0],a.i[s][1],s);return o}var i=poolFactory(4,e,r);return i.clone=n,i}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=function(){var e={newShapeCollection:a,release:o},r=0,n=4,i=createSizedArray(n);function a(){var s;return r?(r-=1,s=i[r]):s=new ShapeCollection,s}function o(s){var l,c=s._length;for(l=0;l<c;l+=1)shapePool.release(s.shapes[l]);s._length=0,r===n&&(i=pooling.double(i),n*=2),i[r]=s,r+=1}return e}(),ShapePropertyFactory=function(){var e=-999999;function r(p,v,m){var x=m.lastIndex,E,k,_,T,B,M,F,O,D,N=this.keyframes;if(p<N[0].t-this.offsetTime)E=N[0].s[0],_=!0,x=0;else if(p>=N[N.length-1].t-this.offsetTime)E=N[N.length-1].s?N[N.length-1].s[0]:N[N.length-2].e[0],_=!0;else{for(var L=x,P=N.length-1,I=!0,C,S,R;I&&(C=N[L],S=N[L+1],!(S.t-this.offsetTime>p));)L<P-1?L+=1:I=!1;if(R=this.keyframesMetadata[L]||{},_=C.h===1,x=L,!_){if(p>=S.t-this.offsetTime)O=1;else if(p<C.t-this.offsetTime)O=0;else{var A;R.__fnct?A=R.__fnct:(A=BezierFactory.getBezierEasing(C.o.x,C.o.y,C.i.x,C.i.y).get,R.__fnct=A),O=A((p-(C.t-this.offsetTime))/(S.t-this.offsetTime-(C.t-this.offsetTime)))}k=S.s?S.s[0]:C.e[0]}E=C.s[0]}for(M=v._length,F=E.i[0].length,m.lastIndex=x,T=0;T<M;T+=1)for(B=0;B<F;B+=1)D=_?E.i[T][B]:E.i[T][B]+(k.i[T][B]-E.i[T][B])*O,v.i[T][B]=D,D=_?E.o[T][B]:E.o[T][B]+(k.o[T][B]-E.o[T][B])*O,v.o[T][B]=D,D=_?E.v[T][B]:E.v[T][B]+(k.v[T][B]-E.v[T][B])*O,v.v[T][B]=D}function n(){var p=this.comp.renderedFrame-this.offsetTime,v=this.keyframes[0].t-this.offsetTime,m=this.keyframes[this.keyframes.length-1].t-this.offsetTime,x=this._caching.lastFrame;return x!==e&&(x<v&&p<v||x>m&&p>m)||(this._caching.lastIndex=x<p?this._caching.lastIndex:0,this.interpolateShape(p,this.pv,this._caching)),this._caching.lastFrame=p,this.pv}function i(){this.paths=this.localShapeCollection}function a(p,v){if(p._length!==v._length||p.c!==v.c)return!1;var m,x=p._length;for(m=0;m<x;m+=1)if(p.v[m][0]!==v.v[m][0]||p.v[m][1]!==v.v[m][1]||p.o[m][0]!==v.o[m][0]||p.o[m][1]!==v.o[m][1]||p.i[m][0]!==v.i[m][0]||p.i[m][1]!==v.i[m][1])return!1;return!0}function o(p){a(this.v,p)||(this.v=shapePool.clone(p),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function s(){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 p;this.kf?p=this.pv:this.data.ks?p=this.data.ks.k:p=this.data.pt.k;var v,m=this.effectsSequence.length;for(v=0;v<m;v+=1)p=this.effectsSequence[v](p);this.setVValue(p),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function l(p,v,m){this.propType="shape",this.comp=p.comp,this.container=p,this.elem=p,this.data=v,this.k=!1,this.kf=!1,this._mdf=!1;var x=m===3?v.pt.k:v.ks.k;this.v=shapePool.clone(x),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function c(p){this.effectsSequence.push(p),this.container.addDynamicProperty(this)}l.prototype.interpolateShape=r,l.prototype.getValue=s,l.prototype.setVValue=o,l.prototype.addEffect=c;function u(p,v,m){this.propType="shape",this.comp=p.comp,this.elem=p,this.container=p,this.offsetTime=p.data.st,this.keyframes=m===3?v.pt.k:v.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var x=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,x),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=i,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}u.prototype.getValue=s,u.prototype.interpolateShape=r,u.prototype.setVValue=o,u.prototype.addEffect=c;var h=function(){var p=roundCorner;function v(m,x){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=x.d,this.elem=m,this.comp=m.comp,this.frameId=-1,this.initDynamicPropertyContainer(m),this.p=PropertyFactory.getProp(m,x.p,1,0,this),this.s=PropertyFactory.getProp(m,x.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return v.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var x=this.p.v[0],E=this.p.v[1],k=this.s.v[0]/2,_=this.s.v[1]/2,T=this.d!==3,B=this.v;B.v[0][0]=x,B.v[0][1]=E-_,B.v[1][0]=T?x+k:x-k,B.v[1][1]=E,B.v[2][0]=x,B.v[2][1]=E+_,B.v[3][0]=T?x-k:x+k,B.v[3][1]=E,B.i[0][0]=T?x-k*p:x+k*p,B.i[0][1]=E-_,B.i[1][0]=T?x+k:x-k,B.i[1][1]=E-_*p,B.i[2][0]=T?x+k*p:x-k*p,B.i[2][1]=E+_,B.i[3][0]=T?x-k:x+k,B.i[3][1]=E+_*p,B.o[0][0]=T?x+k*p:x-k*p,B.o[0][1]=E-_,B.o[1][0]=T?x+k:x-k,B.o[1][1]=E+_*p,B.o[2][0]=T?x-k*p:x+k*p,B.o[2][1]=E+_,B.o[3][0]=T?x-k:x+k,B.o[3][1]=E-_*p}},extendPrototype([DynamicPropertyContainer],v),v}(),b=function(){function p(v,m){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=v,this.comp=v.comp,this.data=m,this.frameId=-1,this.d=m.d,this.initDynamicPropertyContainer(v),m.sy===1?(this.ir=PropertyFactory.getProp(v,m.ir,0,0,this),this.is=PropertyFactory.getProp(v,m.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(v,m.pt,0,0,this),this.p=PropertyFactory.getProp(v,m.p,1,0,this),this.r=PropertyFactory.getProp(v,m.r,0,degToRads,this),this.or=PropertyFactory.getProp(v,m.or,0,0,this),this.os=PropertyFactory.getProp(v,m.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 p.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var m=Math.floor(this.pt.v)*2,x=Math.PI*2/m,E=!0,k=this.or.v,_=this.ir.v,T=this.os.v,B=this.is.v,M=2*Math.PI*k/(m*2),F=2*Math.PI*_/(m*2),O,D,N,L,P=-Math.PI/2;P+=this.r.v;var I=this.data.d===3?-1:1;for(this.v._length=0,O=0;O<m;O+=1){D=E?k:_,N=E?T:B,L=E?M:F;var C=D*Math.cos(P),S=D*Math.sin(P),R=C===0&&S===0?0:S/Math.sqrt(C*C+S*S),A=C===0&&S===0?0:-C/Math.sqrt(C*C+S*S);C+=+this.p.v[0],S+=+this.p.v[1],this.v.setTripleAt(C,S,C-R*L*N*I,S-A*L*N*I,C+R*L*N*I,S+A*L*N*I,O,!0),E=!E,P+=x*I}},convertPolygonToPath:function(){var m=Math.floor(this.pt.v),x=Math.PI*2/m,E=this.or.v,k=this.os.v,_=2*Math.PI*E/(m*4),T,B=-Math.PI*.5,M=this.data.d===3?-1:1;for(B+=this.r.v,this.v._length=0,T=0;T<m;T+=1){var F=E*Math.cos(B),O=E*Math.sin(B),D=F===0&&O===0?0:O/Math.sqrt(F*F+O*O),N=F===0&&O===0?0:-F/Math.sqrt(F*F+O*O);F+=+this.p.v[0],O+=+this.p.v[1],this.v.setTripleAt(F,O,F-D*_*k*M,O-N*_*k*M,F+D*_*k*M,O+N*_*k*M,T,!0),B+=x*M}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],p),p}(),f=function(){function p(v,m){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=v,this.comp=v.comp,this.frameId=-1,this.d=m.d,this.initDynamicPropertyContainer(v),this.p=PropertyFactory.getProp(v,m.p,1,0,this),this.s=PropertyFactory.getProp(v,m.s,1,0,this),this.r=PropertyFactory.getProp(v,m.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return p.prototype={convertRectToPath:function(){var m=this.p.v[0],x=this.p.v[1],E=this.s.v[0]/2,k=this.s.v[1]/2,_=bmMin(E,k,this.r.v),T=_*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(m+E,x-k+_,m+E,x-k+_,m+E,x-k+T,0,!0),this.v.setTripleAt(m+E,x+k-_,m+E,x+k-T,m+E,x+k-_,1,!0),_!==0?(this.v.setTripleAt(m+E-_,x+k,m+E-_,x+k,m+E-T,x+k,2,!0),this.v.setTripleAt(m-E+_,x+k,m-E+T,x+k,m-E+_,x+k,3,!0),this.v.setTripleAt(m-E,x+k-_,m-E,x+k-_,m-E,x+k-T,4,!0),this.v.setTripleAt(m-E,x-k+_,m-E,x-k+T,m-E,x-k+_,5,!0),this.v.setTripleAt(m-E+_,x-k,m-E+_,x-k,m-E+T,x-k,6,!0),this.v.setTripleAt(m+E-_,x-k,m+E-T,x-k,m+E-_,x-k,7,!0)):(this.v.setTripleAt(m-E,x+k,m-E+T,x+k,m-E,x+k,2),this.v.setTripleAt(m-E,x-k,m-E,x-k+T,m-E,x-k,3))):(this.v.setTripleAt(m+E,x-k+_,m+E,x-k+T,m+E,x-k+_,0,!0),_!==0?(this.v.setTripleAt(m+E-_,x-k,m+E-_,x-k,m+E-T,x-k,1,!0),this.v.setTripleAt(m-E+_,x-k,m-E+T,x-k,m-E+_,x-k,2,!0),this.v.setTripleAt(m-E,x-k+_,m-E,x-k+_,m-E,x-k+T,3,!0),this.v.setTripleAt(m-E,x+k-_,m-E,x+k-T,m-E,x+k-_,4,!0),this.v.setTripleAt(m-E+_,x+k,m-E+_,x+k,m-E+T,x+k,5,!0),this.v.setTripleAt(m+E-_,x+k,m+E-T,x+k,m+E-_,x+k,6,!0),this.v.setTripleAt(m+E,x+k-_,m+E,x+k-_,m+E,x+k-T,7,!0)):(this.v.setTripleAt(m-E,x-k,m-E+T,x-k,m-E,x-k,1,!0),this.v.setTripleAt(m-E,x+k,m-E,x+k-T,m-E,x+k,2,!0),this.v.setTripleAt(m+E,x+k,m+E-T,x+k,m+E,x+k,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],p),p}();function y(p,v,m){var x;if(m===3||m===4){var E=m===3?v.pt:v.ks,k=E.k;k.length?x=new u(p,v,m):x=new l(p,v,m)}else m===5?x=new f(p,v):m===6?x=new h(p,v):m===7&&(x=new b(p,v));return x.k&&p.addDynamicProperty(x),x}function d(){return l}function g(){return u}var w={};return w.getShapeProp=y,w.getConstructorFunction=d,w.getKeyframedConstructorFunction=g,w}();/*!
121
121
  Transformation Matrix v2.0
122
122
  (c) Epistemex 2014-2015
@@ -124,7 +124,7 @@ version: 2.9.0
124
124
  By Ken Fyrstenberg
125
125
  Contributions by leeoniya.
126
126
  License: MIT, header required.
127
- */var Matrix=function(){var e=Math.cos,r=Math.sin,n=Math.tan,i=Math.round;function a(){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 o(C){if(C===0)return this;var S=e(C),R=r(C);return this._t(S,-R,0,0,R,S,0,0,0,0,1,0,0,0,0,1)}function s(C){if(C===0)return this;var S=e(C),R=r(C);return this._t(1,0,0,0,0,S,-R,0,0,R,S,0,0,0,0,1)}function l(C){if(C===0)return this;var S=e(C),R=r(C);return this._t(S,0,R,0,0,1,0,0,-R,0,S,0,0,0,0,1)}function c(C){if(C===0)return this;var S=e(C),R=r(C);return this._t(S,-R,0,0,R,S,0,0,0,0,1,0,0,0,0,1)}function u(C,S){return this._t(1,S,C,1,0,0)}function h(C,S){return this.shear(n(C),n(S))}function b(C,S){var R=e(S),A=r(S);return this._t(R,A,0,0,-A,R,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(C),1,0,0,0,0,1,0,0,0,0,1)._t(R,-A,0,0,A,R,0,0,0,0,1,0,0,0,0,1)}function f(C,S,R){return!R&&R!==0&&(R=1),C===1&&S===1&&R===1?this:this._t(C,0,0,0,0,S,0,0,0,0,R,0,0,0,0,1)}function y(C,S,R,A,q,H,G,U,j,V,$,Y,J,K,ne,X){return this.props[0]=C,this.props[1]=S,this.props[2]=R,this.props[3]=A,this.props[4]=q,this.props[5]=H,this.props[6]=G,this.props[7]=U,this.props[8]=j,this.props[9]=V,this.props[10]=$,this.props[11]=Y,this.props[12]=J,this.props[13]=K,this.props[14]=ne,this.props[15]=X,this}function d(C,S,R){return R=R||0,C!==0||S!==0||R!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,C,S,R,1):this}function g(C,S,R,A,q,H,G,U,j,V,$,Y,J,K,ne,X){var W=this.props;if(C===1&&S===0&&R===0&&A===0&&q===0&&H===1&&G===0&&U===0&&j===0&&V===0&&$===1&&Y===0)return W[12]=W[12]*C+W[15]*J,W[13]=W[13]*H+W[15]*K,W[14]=W[14]*$+W[15]*ne,W[15]*=X,this._identityCalculated=!1,this;var ee=W[0],te=W[1],ae=W[2],ie=W[3],se=W[4],he=W[5],de=W[6],ge=W[7],be=W[8],Ce=W[9],Te=W[10],Se=W[11],fe=W[12],pe=W[13],ve=W[14],we=W[15];return W[0]=ee*C+te*q+ae*j+ie*J,W[1]=ee*S+te*H+ae*V+ie*K,W[2]=ee*R+te*G+ae*$+ie*ne,W[3]=ee*A+te*U+ae*Y+ie*X,W[4]=se*C+he*q+de*j+ge*J,W[5]=se*S+he*H+de*V+ge*K,W[6]=se*R+he*G+de*$+ge*ne,W[7]=se*A+he*U+de*Y+ge*X,W[8]=be*C+Ce*q+Te*j+Se*J,W[9]=be*S+Ce*H+Te*V+Se*K,W[10]=be*R+Ce*G+Te*$+Se*ne,W[11]=be*A+Ce*U+Te*Y+Se*X,W[12]=fe*C+pe*q+ve*j+we*J,W[13]=fe*S+pe*H+ve*V+we*K,W[14]=fe*R+pe*G+ve*$+we*ne,W[15]=fe*A+pe*U+ve*Y+we*X,this._identityCalculated=!1,this}function w(C){var S=C.props;return this.transform(S[0],S[1],S[2],S[3],S[4],S[5],S[6],S[7],S[8],S[9],S[10],S[11],S[12],S[13],S[14],S[15])}function p(){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 v(C){for(var S=0;S<16;){if(C.props[S]!==this.props[S])return!1;S+=1}return!0}function m(C){var S;for(S=0;S<16;S+=1)C.props[S]=this.props[S];return C}function x(C){var S;for(S=0;S<16;S+=1)this.props[S]=C[S]}function E(C,S,R){return{x:C*this.props[0]+S*this.props[4]+R*this.props[8]+this.props[12],y:C*this.props[1]+S*this.props[5]+R*this.props[9]+this.props[13],z:C*this.props[2]+S*this.props[6]+R*this.props[10]+this.props[14]}}function k(C,S,R){return C*this.props[0]+S*this.props[4]+R*this.props[8]+this.props[12]}function _(C,S,R){return C*this.props[1]+S*this.props[5]+R*this.props[9]+this.props[13]}function T(C,S,R){return C*this.props[2]+S*this.props[6]+R*this.props[10]+this.props[14]}function B(){var C=this.props[0]*this.props[5]-this.props[1]*this.props[4],S=this.props[5]/C,R=-this.props[1]/C,A=-this.props[4]/C,q=this.props[0]/C,H=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/C,G=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/C,U=new Matrix;return U.props[0]=S,U.props[1]=R,U.props[4]=A,U.props[5]=q,U.props[12]=H,U.props[13]=G,U}function M(C){var S=this.getInverseMatrix();return S.applyToPointArray(C[0],C[1],C[2]||0)}function F(C){var S,R=C.length,A=[];for(S=0;S<R;S+=1)A[S]=M(C[S]);return A}function O(C,S,R){var A=createTypedArray("float32",6);if(this.isIdentity())A[0]=C[0],A[1]=C[1],A[2]=S[0],A[3]=S[1],A[4]=R[0],A[5]=R[1];else{var q=this.props[0],H=this.props[1],G=this.props[4],U=this.props[5],j=this.props[12],V=this.props[13];A[0]=C[0]*q+C[1]*G+j,A[1]=C[0]*H+C[1]*U+V,A[2]=S[0]*q+S[1]*G+j,A[3]=S[0]*H+S[1]*U+V,A[4]=R[0]*q+R[1]*G+j,A[5]=R[0]*H+R[1]*U+V}return A}function D(C,S,R){var A;return this.isIdentity()?A=[C,S,R]:A=[C*this.props[0]+S*this.props[4]+R*this.props[8]+this.props[12],C*this.props[1]+S*this.props[5]+R*this.props[9]+this.props[13],C*this.props[2]+S*this.props[6]+R*this.props[10]+this.props[14]],A}function N(C,S){if(this.isIdentity())return C+","+S;var R=this.props;return Math.round((C*R[0]+S*R[4]+R[12])*100)/100+","+Math.round((C*R[1]+S*R[5]+R[13])*100)/100}function L(){for(var C=0,S=this.props,R="matrix3d(",A=1e4;C<16;)R+=i(S[C]*A)/A,R+=C===15?")":",",C+=1;return R}function P(C){var S=1e4;return C<1e-6&&C>0||C>-1e-6&&C<0?i(C*S)/S:C}function I(){var C=this.props,S=P(C[0]),R=P(C[1]),A=P(C[4]),q=P(C[5]),H=P(C[12]),G=P(C[13]);return"matrix("+S+","+R+","+A+","+q+","+H+","+G+")"}return function(){this.reset=a,this.rotate=o,this.rotateX=s,this.rotateY=l,this.rotateZ=c,this.skew=h,this.skewFromAxis=b,this.shear=u,this.scale=f,this.setTransform=y,this.translate=d,this.transform=g,this.multiply=w,this.applyToPoint=E,this.applyToX=k,this.applyToY=_,this.applyToZ=T,this.applyToPointArray=D,this.applyToTriplePoints=O,this.applyToPointStringified=N,this.toCSS=L,this.to2dCSS=I,this.clone=m,this.cloneFromProps=x,this.equals=v,this.inversePoints=F,this.inversePoint=M,this.getInverseMatrix=B,this._t=this.transform,this.isIdentity=p,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(n){return typeof n}:_typeof$3=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,r){e==="expressions"&&setExpressionsPlugin(r)}function getFactory(e){switch(e){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(e){for(var r=queryString.split("&"),n=0;n<r.length;n+=1){var i=r[n].split("=");if(decodeURIComponent(i[0])==e)return decodeURIComponent(i[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(e){}var ShapeModifiers=function(){var e={},r={};e.registerModifier=n,e.getModifier=i;function n(a,o){r[a]||(r[a]=o)}function i(a,o,s){return new r[a](o,s)}return e}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var r={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(r),this.addShapeToModifier(r),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,r){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,r),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(e,r){this.s=PropertyFactory.getProp(e,r.s,0,.01,this),this.e=PropertyFactory.getProp(e,r.e,0,.01,this),this.o=PropertyFactory.getProp(e,r.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=r.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,r,n,i,a){var o=[];r<=1?o.push({s:e,e:r}):e>=1?o.push({s:e-1,e:r-1}):(o.push({s:e,e:1}),o.push({s:0,e:r-1}));var s=[],l,c=o.length,u;for(l=0;l<c;l+=1)if(u=o[l],!(u.e*a<i||u.s*a>i+n)){var h,b;u.s*a<=i?h=0:h=(u.s*a-i)/n,u.e*a>=i+n?b=1:b=(u.e*a-i)/n,s.push([h,b])}return s.length||s.push([0,0]),s},TrimModifier.prototype.releasePathsData=function(e){var r,n=e.length;for(r=0;r<n;r+=1)segmentsLengthPool.release(e[r]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var r,n;if(this._mdf||e){var i=this.o.v%360/360;if(i<0&&(i+=1),this.s.v>1?r=1+i:this.s.v<0?r=0+i:r=this.s.v+i,this.e.v>1?n=1+i:this.e.v<0?n=0+i:n=this.e.v+i,r>n){var a=r;r=n,n=a}r=Math.round(r*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=r,this.eValue=n}else r=this.sValue,n=this.eValue;var o,s,l=this.shapes.length,c,u,h,b,f,y=0;if(n===r)for(s=0;s<l;s+=1)this.shapes[s].localShapeCollection.releaseShapes(),this.shapes[s].shape._mdf=!0,this.shapes[s].shape.paths=this.shapes[s].localShapeCollection,this._mdf&&(this.shapes[s].pathsData.length=0);else if(n===1&&r===0||n===0&&r===1){if(this._mdf)for(s=0;s<l;s+=1)this.shapes[s].pathsData.length=0,this.shapes[s].shape._mdf=!0}else{var d=[],g,w;for(s=0;s<l;s+=1)if(g=this.shapes[s],!g.shape._mdf&&!this._mdf&&!e&&this.m!==2)g.shape.paths=g.localShapeCollection;else{if(o=g.shape.paths,u=o._length,f=0,!g.shape._mdf&&g.pathsData.length)f=g.totalShapeLength;else{for(h=this.releasePathsData(g.pathsData),c=0;c<u;c+=1)b=bez.getSegmentsLength(o.shapes[c]),h.push(b),f+=b.totalLength;g.totalShapeLength=f,g.pathsData=h}y+=f,g.shape._mdf=!0}var p=r,v=n,m=0,x;for(s=l-1;s>=0;s-=1)if(g=this.shapes[s],g.shape._mdf){for(w=g.localShapeCollection,w.releaseShapes(),this.m===2&&l>1?(x=this.calculateShapeEdges(r,n,g.totalShapeLength,m,y),m+=g.totalShapeLength):x=[[p,v]],u=x.length,c=0;c<u;c+=1){p=x[c][0],v=x[c][1],d.length=0,v<=1?d.push({s:g.totalShapeLength*p,e:g.totalShapeLength*v}):p>=1?d.push({s:g.totalShapeLength*(p-1),e:g.totalShapeLength*(v-1)}):(d.push({s:g.totalShapeLength*p,e:g.totalShapeLength}),d.push({s:0,e:g.totalShapeLength*(v-1)}));var E=this.addShapes(g,d[0]);if(d[0].s!==d[0].e){if(d.length>1){var k=g.shape.paths.shapes[g.shape.paths._length-1];if(k.c){var _=E.pop();this.addPaths(E,w),E=this.addShapes(g,d[1],_)}else this.addPaths(E,w),E=this.addShapes(g,d[1])}this.addPaths(E,w)}}g.shape.paths=w}}},TrimModifier.prototype.addPaths=function(e,r){var n,i=e.length;for(n=0;n<i;n+=1)r.addShape(e[n])},TrimModifier.prototype.addSegment=function(e,r,n,i,a,o,s){a.setXYAt(r[0],r[1],"o",o),a.setXYAt(n[0],n[1],"i",o+1),s&&a.setXYAt(e[0],e[1],"v",o),a.setXYAt(i[0],i[1],"v",o+1)},TrimModifier.prototype.addSegmentFromArray=function(e,r,n,i){r.setXYAt(e[1],e[5],"o",n),r.setXYAt(e[2],e[6],"i",n+1),i&&r.setXYAt(e[0],e[4],"v",n),r.setXYAt(e[3],e[7],"v",n+1)},TrimModifier.prototype.addShapes=function(e,r,n){var i=e.pathsData,a=e.shape.paths.shapes,o,s=e.shape.paths._length,l,c,u=0,h,b,f,y,d=[],g,w=!0;for(n?(b=n._length,g=n._length):(n=shapePool.newElement(),b=0,g=0),d.push(n),o=0;o<s;o+=1){for(f=i[o].lengths,n.c=a[o].c,c=a[o].c?f.length:f.length+1,l=1;l<c;l+=1)if(h=f[l-1],u+h.addedLength<r.s)u+=h.addedLength,n.c=!1;else if(u>r.e){n.c=!1;break}else r.s<=u&&r.e>=u+h.addedLength?(this.addSegment(a[o].v[l-1],a[o].o[l-1],a[o].i[l],a[o].v[l],n,b,w),w=!1):(y=bez.getNewSegment(a[o].v[l-1],a[o].v[l],a[o].o[l-1],a[o].i[l],(r.s-u)/h.addedLength,(r.e-u)/h.addedLength,f[l-1]),this.addSegmentFromArray(y,n,b,w),w=!1,n.c=!1),u+=h.addedLength,b+=1;if(a[o].c&&f.length){if(h=f[l-1],u<=r.e){var p=f[l-1].addedLength;r.s<=u&&r.e>=u+p?(this.addSegment(a[o].v[l-1],a[o].o[l-1],a[o].i[0],a[o].v[0],n,b,w),w=!1):(y=bez.getNewSegment(a[o].v[l-1],a[o].v[0],a[o].o[l-1],a[o].i[0],(r.s-u)/p,(r.e-u)/p,f[l-1]),this.addSegmentFromArray(y,n,b,w),w=!1,n.c=!1)}else n.c=!1;u+=h.addedLength,b+=1}if(n._length&&(n.setXYAt(n.v[g][0],n.v[g][1],"i",g),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),u>r.e)break;o<s-1&&(n=shapePool.newElement(),w=!0,d.push(n),b=0)}return d};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,r.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,r){var n=r/100,i=[0,0],a=e._length,o=0;for(o=0;o<a;o+=1)i[0]+=e.v[o][0],i[1]+=e.v[o][1];i[0]/=a,i[1]/=a;var s=shapePool.newElement();s.c=e.c;var l,c,u,h,b,f;for(o=0;o<a;o+=1)l=e.v[o][0]+(i[0]-e.v[o][0])*n,c=e.v[o][1]+(i[1]-e.v[o][1])*n,u=e.o[o][0]+(i[0]-e.o[o][0])*-n,h=e.o[o][1]+(i[1]-e.o[o][1])*-n,b=e.i[o][0]+(i[0]-e.i[o][0])*-n,f=e.i[o][1]+(i[1]-e.i[o][1])*-n,s.setTripleAt(l,c,u,h,b,f,o);return s},PuckerAndBloatModifier.prototype.processShapes=function(e){var r,n,i=this.shapes.length,a,o,s=this.amount.v;if(s!==0){var l,c;for(n=0;n<i;n+=1){if(l=this.shapes[n],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,r=l.shape.paths.shapes,o=l.shape.paths._length,a=0;a<o;a+=1)c.addShape(this.processPath(r[a],s));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function r(c){var u=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||u,this.a&&c.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&c.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&c.skewFromAxis(-this.sk.v,this.sa.v),this.r?c.rotate(-this.r.v):c.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?c.translate(this.px.v,this.py.v,-this.pz.v):c.translate(this.px.v,this.py.v,0):c.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(c){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||c){var u;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 h,b;if(u=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(h=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/u,0),b=this.p.getValueAtTime(this.p.keyframes[0].t/u,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(h=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/u,0),b=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/u,0)):(h=this.p.pv,b=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/u,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){h=[],b=[];var f=this.px,y=this.py;f._caching.lastFrame+f.offsetTime<=f.keyframes[0].t?(h[0]=f.getValueAtTime((f.keyframes[0].t+.01)/u,0),h[1]=y.getValueAtTime((y.keyframes[0].t+.01)/u,0),b[0]=f.getValueAtTime(f.keyframes[0].t/u,0),b[1]=y.getValueAtTime(y.keyframes[0].t/u,0)):f._caching.lastFrame+f.offsetTime>=f.keyframes[f.keyframes.length-1].t?(h[0]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/u,0),h[1]=y.getValueAtTime(y.keyframes[y.keyframes.length-1].t/u,0),b[0]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-.01)/u,0),b[1]=y.getValueAtTime((y.keyframes[y.keyframes.length-1].t-.01)/u,0)):(h=[f.pv,y.pv],b[0]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-.01)/u,f.offsetTime),b[1]=y.getValueAtTime((y._caching.lastFrame+y.offsetTime-.01)/u,y.offsetTime))}else b=e,h=b;this.v.rotate(-Math.atan2(h[1]-b[1],h[0]-b[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 i(){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 a(){}function o(c){this._addDynamicProperty(c),this.elem.addDynamicProperty(c),this._isDirty=!0}function s(c,u,h){if(this.elem=c,this.frameId=-1,this.propType="transform",this.data=u,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(h||c),u.p&&u.p.s?(this.px=PropertyFactory.getProp(c,u.p.x,0,0,this),this.py=PropertyFactory.getProp(c,u.p.y,0,0,this),u.p.z&&(this.pz=PropertyFactory.getProp(c,u.p.z,0,0,this))):this.p=PropertyFactory.getProp(c,u.p||{k:[0,0,0]},1,0,this),u.rx){if(this.rx=PropertyFactory.getProp(c,u.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(c,u.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(c,u.rz,0,degToRads,this),u.or.k[0].ti){var b,f=u.or.k.length;for(b=0;b<f;b+=1)u.or.k[b].to=null,u.or.k[b].ti=null}this.or=PropertyFactory.getProp(c,u.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(c,u.r||{k:0},0,degToRads,this);u.sk&&(this.sk=PropertyFactory.getProp(c,u.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(c,u.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(c,u.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(c,u.s||{k:[100,100,100]},1,.01,this),u.o?this.o=PropertyFactory.getProp(c,u.o,0,.01,c):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}s.prototype={applyToMatrix:r,getValue:n,precalculateMatrix:i,autoOrient:a},extendPrototype([DynamicPropertyContainer],s),s.prototype.addDynamicProperty=o,s.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function l(c,u,h){return new s(c,u,h)}return{getTransformProperty:l}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,r.c,0,null,this),this.o=PropertyFactory.getProp(e,r.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,r.tr,this),this.so=PropertyFactory.getProp(e,r.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,r.tr.eo,0,.01,this),this.data=r,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(e,r,n,i,a,o){var s=o?-1:1,l=i.s.v[0]+(1-i.s.v[0])*(1-a),c=i.s.v[1]+(1-i.s.v[1])*(1-a);e.translate(i.p.v[0]*s*a,i.p.v[1]*s*a,i.p.v[2]),r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),r.rotate(-i.r.v*s*a),r.translate(i.a.v[0],i.a.v[1],i.a.v[2]),n.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),n.scale(o?1/l:l,o?1/c:c),n.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(e,r,n,i){for(this.elem=e,this.arr=r,this.pos=n,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,r[n]);n>0;)n-=1,this._elements.unshift(r[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var r,n=e.length;for(r=0;r<n;r+=1)e[r]._processed=!1,e[r].ty==="gr"&&this.resetElements(e[r].it)},RepeaterModifier.prototype.cloneElements=function(e){var r=JSON.parse(JSON.stringify(e));return this.resetElements(r),r},RepeaterModifier.prototype.changeGroupRender=function(e,r){var n,i=e.length;for(n=0;n<i;n+=1)e[n]._render=r,e[n].ty==="gr"&&this.changeGroupRender(e[n].it,r)},RepeaterModifier.prototype.processShapes=function(e){var r,n,i,a,o,s=!1;if(this._mdf||e){var l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.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,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),s=!0}o=0;var u;for(i=0;i<=this._groups.length-1;i+=1){if(u=o<l,this._groups[i]._render=u,this.changeGroupRender(this._groups[i].it,u),!u){var h=this.elemsData[i].it,b=h[h.length-1];b.transform.op.v!==0?(b.transform.op._mdf=!0,b.transform.op.v=0):b.transform.op._mdf=!1}o+=1}this._currentCopies=l;var f=this.o.v,y=f%1,d=f>0?Math.floor(f):Math.ceil(f),g=this.pMatrix.props,w=this.rMatrix.props,p=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v=0;if(f>0){for(;v<d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),v+=1;y&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,y,!1),v+=y)}else if(f<0){for(;v>d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),v-=1;y&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-y,!0),v-=y)}i=this.data.m===1?0:this._currentCopies-1,a=this.data.m===1?1:-1,o=this._currentCopies;for(var m,x;o;){if(r=this.elemsData[i].it,n=r[r.length-1].transform.mProps.v.props,x=n.length,r[r.length-1].transform.mProps._mdf=!0,r[r.length-1].transform.op._mdf=!0,r[r.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),v!==0){for((i!==0&&a===1||i!==this._currentCopies-1&&a===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(w[0],w[1],w[2],w[3],w[4],w[5],w[6],w[7],w[8],w[9],w[10],w[11],w[12],w[13],w[14],w[15]),this.matrix.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),m=0;m<x;m+=1)n[m]=this.matrix.props[m];this.matrix.reset()}else for(this.matrix.reset(),m=0;m<x;m+=1)n[m]=this.matrix.props[m];v+=1,o-=1,i+=a}}else for(o=this._currentCopies,i=0,a=1;o;)r=this.elemsData[i].it,n=r[r.length-1].transform.mProps.v.props,r[r.length-1].transform.mProps._mdf=!1,r[r.length-1].transform.op._mdf=!1,o-=1,i+=a;return s},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,r.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,r){var n=shapePool.newElement();n.c=e.c;var i,a=e._length,o,s,l,c,u,h,b=0,f,y,d,g,w,p;for(i=0;i<a;i+=1)o=e.v[i],l=e.o[i],s=e.i[i],o[0]===l[0]&&o[1]===l[1]&&o[0]===s[0]&&o[1]===s[1]?(i===0||i===a-1)&&!e.c?(n.setTripleAt(o[0],o[1],l[0],l[1],s[0],s[1],b),b+=1):(i===0?c=e.v[a-1]:c=e.v[i-1],u=Math.sqrt(Math.pow(o[0]-c[0],2)+Math.pow(o[1]-c[1],2)),h=u?Math.min(u/2,r)/u:0,w=o[0]+(c[0]-o[0])*h,f=w,p=o[1]-(o[1]-c[1])*h,y=p,d=f-(f-o[0])*roundCorner,g=y-(y-o[1])*roundCorner,n.setTripleAt(f,y,d,g,w,p,b),b+=1,i===a-1?c=e.v[0]:c=e.v[i+1],u=Math.sqrt(Math.pow(o[0]-c[0],2)+Math.pow(o[1]-c[1],2)),h=u?Math.min(u/2,r)/u:0,d=o[0]+(c[0]-o[0])*h,f=d,g=o[1]+(c[1]-o[1])*h,y=g,w=f-(f-o[0])*roundCorner,p=y-(y-o[1])*roundCorner,n.setTripleAt(f,y,d,g,w,p,b),b+=1):(n.setTripleAt(e.v[i][0],e.v[i][1],e.o[i][0],e.o[i][1],e.i[i][0],e.i[i][1],b),b+=1);return n},RoundCornersModifier.prototype.processShapes=function(e){var r,n,i=this.shapes.length,a,o,s=this.rd.v;if(s!==0){var l,c;for(n=0;n<i;n+=1){if(l=this.shapes[n],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,r=l.shape.paths.shapes,o=l.shape.paths._length,a=0;a<o;a+=1)c.addShape(this.processPath(r[a],s));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,r){return Math.abs(e-r)*1e5<=Math.min(Math.abs(e),Math.abs(r))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,r,n){return e*(1-n)+r*n}function lerpPoint(e,r,n){return[lerp(e[0],r[0],n),lerp(e[1],r[1],n)]}function quadRoots(e,r,n){if(e===0)return[];var i=r*r-4*e*n;if(i<0)return[];var a=-r/(2*e);if(i===0)return[a];var o=Math.sqrt(i)/(2*e);return[a-o,a+o]}function polynomialCoefficients(e,r,n,i){return[-e+3*r-3*n+i,3*e-6*r+3*n,-3*e+3*r,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,r,n,i,a){a&&pointEqual(e,r)&&(r=lerpPoint(e,i,1/3)),a&&pointEqual(n,i)&&(n=lerpPoint(e,i,2/3));var o=polynomialCoefficients(e[0],r[0],n[0],i[0]),s=polynomialCoefficients(e[1],r[1],n[1],i[1]);this.a=[o[0],s[0]],this.b=[o[1],s[1]],this.c=[o[2],s[2]],this.d=[o[3],s[3]],this.points=[e,r,n,i]}PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var r=this.derivative(e);return Math.atan2(r[1],r[0])},PolynomialBezier.prototype.normalAngle=function(e){var r=this.derivative(e);return Math.atan2(r[0],r[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var r=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=r*r-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var i=Math.sqrt(n);return floatZero(i)?i>0&&i<1?[r]:[]:[r-i,r+i].filter(function(a){return a>0&&a<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var r=lerpPoint(this.points[0],this.points[1],e),n=lerpPoint(this.points[1],this.points[2],e),i=lerpPoint(this.points[2],this.points[3],e),a=lerpPoint(r,n,e),o=lerpPoint(n,i,e),s=lerpPoint(a,o,e);return[new PolynomialBezier(this.points[0],r,a,s,!0),new PolynomialBezier(s,o,i,this.points[3],!0)]};function extrema(e,r){var n=e.points[0][r],i=e.points[e.points.length-1][r];if(n>i){var a=i;i=n,n=a}for(var o=quadRoots(3*e.a[r],2*e.b[r],e.c[r]),s=0;s<o.length;s+=1)if(o[s]>0&&o[s]<1){var l=e.point(o[s])[r];l<n?n=l:l>i&&(i=l)}return{min:n,max:i}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,r,n){var i=e.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:e,t:(r+n)/2,t1:r,t2:n}}function splitData(e){var r=e.bez.split(.5);return[intersectData(r[0],e.t1,e.t),intersectData(r[1],e.t,e.t2)]}function boxIntersect(e,r){return Math.abs(e.cx-r.cx)*2<e.width+r.width&&Math.abs(e.cy-r.cy)*2<e.height+r.height}function intersectsImpl(e,r,n,i,a,o){if(boxIntersect(e,r)){if(n>=o||e.width<=i&&e.height<=i&&r.width<=i&&r.height<=i){a.push([e.t,r.t]);return}var s=splitData(e),l=splitData(r);intersectsImpl(s[0],l[0],n+1,i,a,o),intersectsImpl(s[0],l[1],n+1,i,a,o),intersectsImpl(s[1],l[0],n+1,i,a,o),intersectsImpl(s[1],l[1],n+1,i,a,o)}}PolynomialBezier.prototype.intersections=function(e,r,n){r===void 0&&(r=2),n===void 0&&(n=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,r,i,n),i},PolynomialBezier.shapeSegment=function(e,r){var n=(r+1)%e.length();return new PolynomialBezier(e.v[r],e.o[r],e.i[n],e.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(e,r){var n=(r+1)%e.length();return new PolynomialBezier(e.v[n],e.i[n],e.o[r],e.v[r],!0)};function crossProduct(e,r){return[e[1]*r[2]-e[2]*r[1],e[2]*r[0]-e[0]*r[2],e[0]*r[1]-e[1]*r[0]]}function lineIntersection(e,r,n,i){var a=[e[0],e[1],1],o=[r[0],r[1],1],s=[n[0],n[1],1],l=[i[0],i[1],1],c=crossProduct(crossProduct(a,o),crossProduct(s,l));return floatZero(c[2])?null:[c[0]/c[2],c[1]/c[2]]}function polarOffset(e,r,n){return[e[0]+Math.cos(r)*n,e[1]-Math.sin(r)*n]}function pointDistance(e,r){return Math.hypot(e[0]-r[0],e[1]-r[1])}function pointEqual(e,r){return floatEqual(e[0],r[0])&&floatEqual(e[1],r[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,r.s,0,null,this),this.frequency=PropertyFactory.getProp(e,r.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,r.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,r,n,i,a,o,s){var l=n-Math.PI/2,c=n+Math.PI/2,u=r[0]+Math.cos(n)*i*a,h=r[1]-Math.sin(n)*i*a;e.setTripleAt(u,h,u+Math.cos(l)*o,h-Math.sin(l)*o,u+Math.cos(c)*s,h-Math.sin(c)*s,e.length())}function getPerpendicularVector(e,r){var n=[r[0]-e[0],r[1]-e[1]],i=-Math.PI*.5,a=[Math.cos(i)*n[0]-Math.sin(i)*n[1],Math.sin(i)*n[0]+Math.cos(i)*n[1]];return a}function getProjectingAngle(e,r){var n=r===0?e.length()-1:r-1,i=(r+1)%e.length(),a=e.v[n],o=e.v[i],s=getPerpendicularVector(a,o);return Math.atan2(0,1)-Math.atan2(s[1],s[0])}function zigZagCorner(e,r,n,i,a,o,s){var l=getProjectingAngle(r,n),c=r.v[n%r._length],u=r.v[n===0?r._length-1:n-1],h=r.v[(n+1)%r._length],b=o===2?Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)):0,f=o===2?Math.sqrt(Math.pow(c[0]-h[0],2)+Math.pow(c[1]-h[1],2)):0;setPoint(e,r.v[n%r._length],l,s,i,f/((a+1)*2),b/((a+1)*2))}function zigZagSegment(e,r,n,i,a,o){for(var s=0;s<i;s+=1){var l=(s+1)/(i+1),c=a===2?Math.sqrt(Math.pow(r.points[3][0]-r.points[0][0],2)+Math.pow(r.points[3][1]-r.points[0][1],2)):0,u=r.normalAngle(l),h=r.point(l);setPoint(e,h,u,o,n,c/((i+1)*2),c/((i+1)*2)),o=-o}return o}ZigZagModifier.prototype.processPath=function(e,r,n,i){var a=e._length,o=shapePool.newElement();if(o.c=e.c,e.c||(a-=1),a===0)return o;var s=-1,l=PolynomialBezier.shapeSegment(e,0);zigZagCorner(o,e,0,r,n,i,s);for(var c=0;c<a;c+=1)s=zigZagSegment(o,l,r,n,i,-s),c===a-1&&!e.c?l=null:l=PolynomialBezier.shapeSegment(e,(c+1)%a),zigZagCorner(o,e,c+1,r,n,i,s);return o},ZigZagModifier.prototype.processShapes=function(e){var r,n,i=this.shapes.length,a,o,s=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(s!==0){var u,h;for(n=0;n<i;n+=1){if(u=this.shapes[n],h=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(h.releaseShapes(),u.shape._mdf=!0,r=u.shape.paths.shapes,o=u.shape.paths._length,a=0;a<o;a+=1)h.addShape(this.processPath(r[a],s,l,c));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,r,n){var i=Math.atan2(r[0]-e[0],r[1]-e[1]);return[polarOffset(e,i,n),polarOffset(r,i,n)]}function offsetSegment(e,r){var n,i,a,o,s,l,c;c=linearOffset(e.points[0],e.points[1],r),n=c[0],i=c[1],c=linearOffset(e.points[1],e.points[2],r),a=c[0],o=c[1],c=linearOffset(e.points[2],e.points[3],r),s=c[0],l=c[1];var u=lineIntersection(n,i,a,o);u===null&&(u=i);var h=lineIntersection(s,l,a,o);return h===null&&(h=s),new PolynomialBezier(n,u,h,l)}function joinLines(e,r,n,i,a){var o=r.points[3],s=n.points[0];if(i===3||pointEqual(o,s))return o;if(i===2){var l=-r.tangentAngle(1),c=-n.tangentAngle(0)+Math.PI,u=lineIntersection(o,polarOffset(o,l+Math.PI/2,100),s,polarOffset(s,l+Math.PI/2,100)),h=u?pointDistance(u,o):pointDistance(o,s)/2,b=polarOffset(o,l,2*h*roundCorner);return e.setXYAt(b[0],b[1],"o",e.length()-1),b=polarOffset(s,c,2*h*roundCorner),e.setTripleAt(s[0],s[1],s[0],s[1],b[0],b[1],e.length()),s}var f=pointEqual(o,r.points[2])?r.points[0]:r.points[2],y=pointEqual(s,n.points[1])?n.points[3]:n.points[1],d=lineIntersection(f,o,s,y);return d&&pointDistance(d,o)<a?(e.setTripleAt(d[0],d[1],d[0],d[1],d[0],d[1],e.length()),d):o}function getIntersection(e,r){var n=e.intersections(r);return n.length&&floatEqual(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pruneSegmentIntersection(e,r){var n=e.slice(),i=r.slice(),a=getIntersection(e[e.length-1],r[0]);return a&&(n[e.length-1]=e[e.length-1].split(a[0])[0],i[0]=r[0].split(a[1])[1]),e.length>1&&r.length>1&&(a=getIntersection(e[0],r[r.length-1]),a)?[[e[0].split(a[0])[0]],[r[r.length-1].split(a[1])[1]]]:[n,i]}function pruneIntersections(e){for(var r,n=1;n<e.length;n+=1)r=pruneSegmentIntersection(e[n-1],e[n]),e[n-1]=r[0],e[n]=r[1];return e.length>1&&(r=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=r[0],e[0]=r[1]),e}function offsetSegmentSplit(e,r){var n=e.inflectionPoints(),i,a,o,s;if(n.length===0)return[offsetSegment(e,r)];if(n.length===1||floatEqual(n[1],1))return o=e.split(n[0]),i=o[0],a=o[1],[offsetSegment(i,r),offsetSegment(a,r)];o=e.split(n[0]),i=o[0];var l=(n[1]-n[0])/(1-n[0]);return o=o[1].split(l),s=o[0],a=o[1],[offsetSegment(i,r),offsetSegment(s,r),offsetSegment(a,r)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,r.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,r.ml,0,null,this),this.lineJoin=r.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,r,n,i){var a=shapePool.newElement();a.c=e.c;var o=e.length();e.c||(o-=1);var s,l,c,u=[];for(s=0;s<o;s+=1)c=PolynomialBezier.shapeSegment(e,s),u.push(offsetSegmentSplit(c,r));if(!e.c)for(s=o-1;s>=0;s-=1)c=PolynomialBezier.shapeSegmentInverted(e,s),u.push(offsetSegmentSplit(c,r));u=pruneIntersections(u);var h=null,b=null;for(s=0;s<u.length;s+=1){var f=u[s];for(b&&(h=joinLines(a,b,f[0],n,i)),b=f[f.length-1],l=0;l<f.length;l+=1)c=f[l],h&&pointEqual(c.points[0],h)?a.setXYAt(c.points[1][0],c.points[1][1],"o",a.length()-1):a.setTripleAt(c.points[0][0],c.points[0][1],c.points[1][0],c.points[1][1],c.points[0][0],c.points[0][1],a.length()),a.setTripleAt(c.points[3][0],c.points[3][1],c.points[3][0],c.points[3][1],c.points[2][0],c.points[2][1],a.length()),h=c.points[3]}return u.length&&joinLines(a,b,u[0][0],n,i),a},OffsetPathModifier.prototype.processShapes=function(e){var r,n,i=this.shapes.length,a,o,s=this.amount.v,l=this.miterLimit.v,c=this.lineJoin;if(s!==0){var u,h;for(n=0;n<i;n+=1){if(u=this.shapes[n],h=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(h.releaseShapes(),u.shape._mdf=!0,r=u.shape.paths.shapes,o=u.shape.paths._length,a=0;a<o;a+=1)h.addShape(this.processPath(r[a],s,c,l));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var r=e.fStyle?e.fStyle.split(" "):[],n="normal",i="normal",a=r.length,o,s=0;s<a;s+=1)switch(o=r[s].toLowerCase(),o){case"italic":i="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break}return{style:i,weight:e.fWeight||n}}var FontManager=function(){var e=5e3,r={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.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 i=127988,a=917631,o=917601,s=917626,l=65039,c=8205,u=127462,h=127487,b=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function f(P){var I=P.split(","),C,S=I.length,R=[];for(C=0;C<S;C+=1)I[C]!=="sans-serif"&&I[C]!=="monospace"&&R.push(I[C]);return R.join(",")}function y(P,I){var C=createTag("span");C.setAttribute("aria-hidden",!0),C.style.fontFamily=I;var S=createTag("span");S.innerText="giItT1WQy@!-/#",C.style.position="absolute",C.style.left="-10000px",C.style.top="-10000px",C.style.fontSize="300px",C.style.fontVariant="normal",C.style.fontStyle="normal",C.style.fontWeight="normal",C.style.letterSpacing="0",C.appendChild(S),document.body.appendChild(C);var R=S.offsetWidth;return S.style.fontFamily=f(P)+", "+I,{node:S,w:R,parent:C}}function d(){var P,I=this.fonts.length,C,S,R=I;for(P=0;P<I;P+=1)this.fonts[P].loaded?R-=1:this.fonts[P].fOrigin==="n"||this.fonts[P].origin===0?this.fonts[P].loaded=!0:(C=this.fonts[P].monoCase.node,S=this.fonts[P].monoCase.w,C.offsetWidth!==S?(R-=1,this.fonts[P].loaded=!0):(C=this.fonts[P].sansCase.node,S=this.fonts[P].sansCase.w,C.offsetWidth!==S&&(R-=1,this.fonts[P].loaded=!0)),this.fonts[P].loaded&&(this.fonts[P].sansCase.parent.parentNode.removeChild(this.fonts[P].sansCase.parent),this.fonts[P].monoCase.parent.parentNode.removeChild(this.fonts[P].monoCase.parent)));R!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function g(P,I){var C=document.body&&I?"svg":"canvas",S,R=getFontProperties(P);if(C==="svg"){var A=createNS("text");A.style.fontSize="100px",A.setAttribute("font-family",P.fFamily),A.setAttribute("font-style",R.style),A.setAttribute("font-weight",R.weight),A.textContent="1",P.fClass?(A.style.fontFamily="inherit",A.setAttribute("class",P.fClass)):A.style.fontFamily=P.fFamily,I.appendChild(A),S=A}else{var q=new OffscreenCanvas(500,500).getContext("2d");q.font=R.style+" "+R.weight+" 100px "+P.fFamily,S=q}function H(G){return C==="svg"?(S.textContent=G,S.getComputedTextLength()):S.measureText(G).width}return{measureText:H}}function w(P,I){if(!P){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=P.list;return}if(!document.body){this.isLoaded=!0,P.list.forEach(function($){$.helper=g($),$.cache={}}),this.fonts=P.list;return}var C=P.list,S,R=C.length,A=R;for(S=0;S<R;S+=1){var q=!0,H,G;if(C[S].loaded=!1,C[S].monoCase=y(C[S].fFamily,"monospace"),C[S].sansCase=y(C[S].fFamily,"sans-serif"),!C[S].fPath)C[S].loaded=!0,A-=1;else if(C[S].fOrigin==="p"||C[S].origin===3){if(H=document.querySelectorAll('style[f-forigin="p"][f-family="'+C[S].fFamily+'"], style[f-origin="3"][f-family="'+C[S].fFamily+'"]'),H.length>0&&(q=!1),q){var U=createTag("style");U.setAttribute("f-forigin",C[S].fOrigin),U.setAttribute("f-origin",C[S].origin),U.setAttribute("f-family",C[S].fFamily),U.type="text/css",U.innerText="@font-face {font-family: "+C[S].fFamily+"; font-style: normal; src: url('"+C[S].fPath+"');}",I.appendChild(U)}}else if(C[S].fOrigin==="g"||C[S].origin===1){for(H=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),G=0;G<H.length;G+=1)H[G].href.indexOf(C[S].fPath)!==-1&&(q=!1);if(q){var j=createTag("link");j.setAttribute("f-forigin",C[S].fOrigin),j.setAttribute("f-origin",C[S].origin),j.type="text/css",j.rel="stylesheet",j.href=C[S].fPath,document.body.appendChild(j)}}else if(C[S].fOrigin==="t"||C[S].origin===2){for(H=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),G=0;G<H.length;G+=1)C[S].fPath===H[G].src&&(q=!1);if(q){var V=createTag("link");V.setAttribute("f-forigin",C[S].fOrigin),V.setAttribute("f-origin",C[S].origin),V.setAttribute("rel","stylesheet"),V.setAttribute("href",C[S].fPath),I.appendChild(V)}}C[S].helper=g(C[S],I),C[S].cache={},this.fonts.push(C[S])}A===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function p(P){if(P){this.chars||(this.chars=[]);var I,C=P.length,S,R=this.chars.length,A;for(I=0;I<C;I+=1){for(S=0,A=!1;S<R;)this.chars[S].style===P[I].style&&this.chars[S].fFamily===P[I].fFamily&&this.chars[S].ch===P[I].ch&&(A=!0),S+=1;A||(this.chars.push(P[I]),R+=1)}}}function v(P,I,C){for(var S=0,R=this.chars.length;S<R;){if(this.chars[S].ch===P&&this.chars[S].style===I&&this.chars[S].fFamily===C)return this.chars[S];S+=1}return(typeof P=="string"&&P.charCodeAt(0)!==13||!P)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",P,I,C)),r}function m(P,I,C){var S=this.getFontByName(I),R=P;if(!S.cache[R]){var A=S.helper;if(P===" "){var q=A.measureText("|"+P+"|"),H=A.measureText("||");S.cache[R]=(q-H)/100}else S.cache[R]=A.measureText(P)/100}return S.cache[R]*C}function x(P){for(var I=0,C=this.fonts.length;I<C;){if(this.fonts[I].fName===P)return this.fonts[I];I+=1}return this.fonts[0]}function E(P){var I=0,C=P.charCodeAt(0);if(C>=55296&&C<=56319){var S=P.charCodeAt(1);S>=56320&&S<=57343&&(I=(C-55296)*1024+S-56320+65536)}return I}function k(P,I){var C=P.toString(16)+I.toString(16);return b.indexOf(C)!==-1}function _(P){return P===c}function T(P){return P===l}function B(P){var I=E(P);return I>=u&&I<=h}function M(P){return B(P.substr(0,2))&&B(P.substr(2,2))}function F(P){return n.indexOf(P)!==-1}function O(P,I){var C=E(P.substr(I,2));if(C!==i)return!1;var S=0;for(I+=2;S<5;){if(C=E(P.substr(I,2)),C<o||C>s)return!1;S+=1,I+=2}return E(P.substr(I,2))===a}function D(){this.isLoaded=!0}var N=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)};N.isModifier=k,N.isZeroWidthJoiner=_,N.isFlagEmoji=M,N.isRegionalCode=B,N.isCombinedCharacter=F,N.isRegionalFlag=O,N.isVariationSelector=T,N.BLACK_FLAG_CODE_POINT=i;var L={addChars:p,addFonts:w,getCharData:v,getFontByName:x,measureText:m,checkLoadedFonts:d,setIsLoaded:D};return N.prototype=L,N}();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(r){this.renderableComponents.indexOf(r)===-1&&this.renderableComponents.push(r)},removeRenderableComponent:function(r){this.renderableComponents.indexOf(r)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(r),1)},prepareRenderableFrame:function(r){this.checkLayerLimits(r)},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(r){this.data.ip-this.data.st<=r&&this.data.op-this.data.st>r?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 r,n=this.renderableComponents.length;for(r=0;r<n;r+=1)this.renderableComponents[r].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 e={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(r){return e[r]||""}}();function SliderEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,0,0,n)}function AngleEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,0,0,n)}function ColorEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,1,0,n)}function PointEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,1,0,n)}function LayerIndexEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,0,0,n)}function MaskIndexEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,0,0,n)}function CheckboxEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(e,r){var n=e.ef||[];this.effectElements=[];var i,a=n.length,o;for(i=0;i<a;i+=1)o=new GroupEffect(n[i],r),this.effectElements.push(o)}function GroupEffect(e,r){this.init(e,r)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,r){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(r);var n,i=this.data.ef.length,a,o=this.data.ef;for(n=0;n<i;n+=1){switch(a=null,o[n].ty){case 0:a=new SliderEffect(o[n],r,this);break;case 1:a=new AngleEffect(o[n],r,this);break;case 2:a=new ColorEffect(o[n],r,this);break;case 3:a=new PointEffect(o[n],r,this);break;case 4:case 7:a=new CheckboxEffect(o[n],r,this);break;case 10:a=new LayerIndexEffect(o[n],r,this);break;case 11:a=new MaskIndexEffect(o[n],r,this);break;case 5:a=new EffectsManager(o[n],r);break;default:a=new NoValueEffect(o[n]);break}a&&this.effectElements.push(a)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var r=0,n=this.data.masksProperties.length;r<n;){if(this.data.masksProperties[r].mode!=="n"&&this.data.masksProperties[r].cl!==!1)return!0;r+=1}return!1},initExpressions:function(){var r=getExpressionInterfaces();if(r){var n=r("layer"),i=r("effects"),a=r("shape"),o=r("text"),s=r("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var l=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(l),this.data.ty===0||this.data.xt?this.compInterface=s(this):this.data.ty===4?(this.layerInterface.shapeInterface=a(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=o(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var r=getBlendMode(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=r},initBaseData:function(r,n,i){this.globalData=n,this.comp=i,this.data=r,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(r,n){var i,a=this.dynamicProperties.length;for(i=0;i<a;i+=1)(n||this._isParent&&this.dynamicProperties[i].propType==="transform")&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&this.dynamicProperties.push(r)}};function FootageElement(e,r,n){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(e.refId),this.footageData=r.imageLoader.getAsset(this.assetData),this.initBaseData(e,r,n)}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 e=getExpressionInterfaces();if(e){var r=e("footage");this.layerInterface=r(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,r,n){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(e.refId),this.initBaseData(e,r,n),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,r.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var r=this.tm.v;this._currentTime=r}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},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(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*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(e){var r,n=this.layers.length,i;for(this.completeLayers=!0,r=n-1;r>=0;r-=1)this.elements[r]||(i=this.layers[r],i.ip-i.st<=e-this.layers[r].st&&i.op-i.st>e-this.layers[r].st&&this.buildItem(r)),this.completeLayers=this.elements[r]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var r,n=e.length,i,a=this.layers.length;for(r=0;r<n;r+=1)for(i=0;i<a;){if(this.layers[i].id===e[r].id){this.layers[i]=e[r];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,r,n){for(var i=this.elements,a=this.layers,o=0,s=a.length;o<s;)a[o].ind==r&&(!i[o]||i[o]===!0?(this.buildItem(o),this.addPendingElement(e)):(n.push(i[o]),i[o].setAsParent(),a[o].parent!==void 0?this.buildElementParenting(e,a[o].parent,n):e.setHierarchy(n))),o+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var r,n=e.length;for(r=0;r<n;r+=1)if(e[r].xt){var i=this.createComp(e[r]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(e){var r,n=this.elements.length;for(r=0;r<n;r+=1)if(this.elements[r].data.ind===e)return this.elements[r];return null},BaseRenderer.prototype.getElementByPath=function(e){var r=e.shift(),n;if(typeof r=="number")n=this.elements[r];else{var i,a=this.elements.length;for(i=0;i<a;i+=1)if(this.elements[i].data.nm===r){n=this.elements[i];break}}return e.length===0?n:n.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,r){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,r),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=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var r=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:r,localMat:r,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 r,n=this.finalTransform.mat,i=0,a=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<a;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(r=this.finalTransform.mProp.v.props,n.cloneFromProps(r),i=0;i<a;i+=1)n.multiply(this.hierarchy[i].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 r=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;r<n;)this.localTransforms[r]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[r]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),r+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),r=1;r<n;r+=1){var a=this.localTransforms[r].matrix;i.multiply(a)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var o=this.finalTransform.localOpacity;for(r=0;r<n;r+=1)o*=this.localTransforms[r].opacity*.01;this.finalTransform.localOpacity=o}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var r=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(r.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var n=0,i=r.length;for(n=0;n<i;n+=1)this.localTransforms.push(r[n])}}},globalToLocal:function(r){var n=[];n.push(this.finalTransform);for(var i=!0,a=this.comp;i;)a.finalTransform?(a.data.hasMask&&n.splice(0,0,a.finalTransform),a=a.comp):i=!1;var o,s=n.length,l;for(o=0;o<s;o+=1)l=n[o].mat.applyToPointArray(0,0,0),r=[r[0]-l[0],r[1]-l[1],0];return r},mHelper:new Matrix};function MaskElement(e,r,n){this.data=e,this.element=r,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i=this.globalData.defs,a,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var s,l=this.masksProperties,c=0,u=[],h,b,f=createElementID(),y,d,g,w,p="clipPath",v="clip-path";for(a=0;a<o;a+=1)if((l[a].mode!=="a"&&l[a].mode!=="n"||l[a].inv||l[a].o.k!==100||l[a].o.x)&&(p="mask",v="mask"),(l[a].mode==="s"||l[a].mode==="i")&&c===0?(y=createNS("rect"),y.setAttribute("fill","#ffffff"),y.setAttribute("width",this.element.comp.data.w||0),y.setAttribute("height",this.element.comp.data.h||0),u.push(y)):y=null,s=createNS("path"),l[a].mode==="n")this.viewData[a]={op:PropertyFactory.getProp(this.element,l[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[a],3),elem:s,lastPath:""},i.appendChild(s);else{c+=1,s.setAttribute("fill",l[a].mode==="s"?"#000000":"#ffffff"),s.setAttribute("clip-rule","nonzero");var m;if(l[a].x.k!==0?(p="mask",v="mask",w=PropertyFactory.getProp(this.element,l[a].x,0,null,this.element),m=createElementID(),d=createNS("filter"),d.setAttribute("id",m),g=createNS("feMorphology"),g.setAttribute("operator","erode"),g.setAttribute("in","SourceGraphic"),g.setAttribute("radius","0"),d.appendChild(g),i.appendChild(d),s.setAttribute("stroke",l[a].mode==="s"?"#000000":"#ffffff")):(g=null,w=null),this.storedData[a]={elem:s,x:w,expan:g,lastPath:"",lastOperator:"",filterId:m,lastRadius:0},l[a].mode==="i"){b=u.length;var x=createNS("g");for(h=0;h<b;h+=1)x.appendChild(u[h]);var E=createNS("mask");E.setAttribute("mask-type","alpha"),E.setAttribute("id",f+"_"+c),E.appendChild(s),i.appendChild(E),x.setAttribute("mask","url("+getLocationHref()+"#"+f+"_"+c+")"),u.length=0,u.push(x)}else u.push(s);l[a].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[a]={elem:s,lastPath:"",op:PropertyFactory.getProp(this.element,l[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[a],3),invRect:y},this.viewData[a].prop.k||this.drawPath(l[a],this.viewData[a].prop.v,this.viewData[a])}for(this.maskElement=createNS(p),o=u.length,a=0;a<o;a+=1)this.maskElement.appendChild(u[a]);c>0&&(this.maskElement.setAttribute("id",f),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+f+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var r=this.element.finalTransform.mat,n,i=this.masksProperties.length;for(n=0;n<i;n+=1)if((this.viewData[n].prop._mdf||e)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||e)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[n].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||e))){var a=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[n].filterId+")")),a.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},MaskElement.prototype.drawPath=function(e,r,n){var i=" M"+r.v[0][0]+","+r.v[0][1],a,o;for(o=r._length,a=1;a<o;a+=1)i+=" C"+r.o[a-1][0]+","+r.o[a-1][1]+" "+r.i[a][0]+","+r.i[a][1]+" "+r.v[a][0]+","+r.v[a][1];if(r.c&&o>1&&(i+=" C"+r.o[a-1][0]+","+r.o[a-1][1]+" "+r.i[0][0]+","+r.i[0][1]+" "+r.v[0][0]+","+r.v[0][1]),n.lastPath!==i){var s="";n.elem&&(r.c&&(s=e.inv?this.solidPath+i:i),n.elem.setAttribute("d",s)),n.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={};e.createFilter=r,e.createAlphaToLuminanceFilter=n;function r(i,a){var o=createNS("filter");return o.setAttribute("id",i),a!==!0&&(o.setAttribute("filterUnits","objectBoundingBox"),o.setAttribute("x","0%"),o.setAttribute("y","0%"),o.setAttribute("width","100%"),o.setAttribute("height","100%")),o}function n(){var i=createNS("feColorMatrix");return i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),i}return e}(),featureSupport=function(){var e={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))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var r,n="SourceGraphic",i=e.data.ef?e.data.ef.length:0,a=createElementID(),o=filtersFactory.createFilter(a,!0),s=0;this.filters=[];var l;for(r=0;r<i;r+=1){l=null;var c=e.data.ef[r].ty;if(registeredEffects$1[c]){var u=registeredEffects$1[c].effect;l=new u(o,e.effectsManager.effectElements[r],e,idPrefix+s,n),n=idPrefix+s,registeredEffects$1[c].countsAsEffect&&(s+=1)}l&&this.filters.push(l)}s&&(e.globalData.defs.appendChild(o),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+a+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var r,n=this.filters.length;for(r=0;r<n;r+=1)this.filters[r].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var r,n=this.filters.length,i=[];for(r=0;r<n;r+=1)this.filters[r].type===e&&i.push(this.filters[r]);return i};function registerEffect$1(e,r,n){registeredEffects$1[e]={effect:r,countsAsEffect:n}}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 r=null;if(this.data.td){this.matteMasks={};var n=createNS("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),r=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),r=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 i=createNS("clipPath"),a=createNS("path");a.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var o=createElementID();if(i.setAttribute("id",o),i.appendChild(a),this.globalData.defs.appendChild(i),this.checkMasks()){var s=createNS("g");s.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),s.appendChild(this.layerElement),this.transformedElement=s,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")")}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(r){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[r]){var n=this.layerId+"_"+r,i,a,o,s;if(r===1||r===3){var l=createNS("mask");l.setAttribute("id",n),l.setAttribute("mask-type",r===3?"luminance":"alpha"),o=createNS("use"),o.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(o),this.globalData.defs.appendChild(l),!featureSupport.maskType&&r===1&&(l.setAttribute("mask-type","luminance"),i=createElementID(),a=filtersFactory.createFilter(i),this.globalData.defs.appendChild(a),a.appendChild(filtersFactory.createAlphaToLuminanceFilter()),s=createNS("g"),s.appendChild(o),l.appendChild(s),s.setAttribute("filter","url("+getLocationHref()+"#"+i+")"))}else if(r===2){var c=createNS("mask");c.setAttribute("id",n),c.setAttribute("mask-type","alpha");var u=createNS("g");c.appendChild(u),i=createElementID(),a=filtersFactory.createFilter(i);var h=createNS("feComponentTransfer");h.setAttribute("in","SourceGraphic"),a.appendChild(h);var b=createNS("feFuncA");b.setAttribute("type","table"),b.setAttribute("tableValues","1.0 0.0"),h.appendChild(b),this.globalData.defs.appendChild(a);var f=createNS("rect");f.setAttribute("width",this.comp.data.w),f.setAttribute("height",this.comp.data.h),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("fill","#ffffff"),f.setAttribute("opacity","0"),u.setAttribute("filter","url("+getLocationHref()+"#"+i+")"),u.appendChild(f),o=createNS("use"),o.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),u.appendChild(o),featureSupport.maskType||(c.setAttribute("mask-type","luminance"),a.appendChild(filtersFactory.createAlphaToLuminanceFilter()),s=createNS("g"),u.appendChild(f),s.appendChild(this.layerElement),u.appendChild(s)),this.globalData.defs.appendChild(c)}this.matteMasks[r]=n}return this.matteMasks[r]},setMatte:function(r){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+r+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(r){this.hierarchy=r},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var e={initElement:function(n,i,a){this.initFrame(),this.initBaseData(n,i,a),this.initTransform(n,i,a),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.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(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,r,n){this.assetData=r.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=r.slotManager.getProp(this.assetData)),this.initElement(e,r,n),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 e=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",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(e,r){this.elem=e,this.pos=r}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(r){var n,i=this.shapeModifiers.length;for(n=0;n<i;n+=1)this.shapeModifiers[n].addShape(r)},isShapeInAnimatedModifiers:function(r){for(var n=0,i=this.shapeModifiers.length;n<i;)if(this.shapeModifiers[n].isAnimatedWithShape(r))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var r,n=this.shapes.length;for(r=0;r<n;r+=1)this.shapes[r].sh.reset();n=this.shapeModifiers.length;var i;for(r=n-1;r>=0&&(i=this.shapeModifiers[r].processShapes(this._isFirstFrame),!i);r-=1);}},searchProcessedElement:function(r){for(var n=this.processedElements,i=0,a=n.length;i<a;){if(n[i].elem===r)return n[i].pos;i+=1}return 0},addProcessedElement:function(r,n){for(var i=this.processedElements,a=i.length;a;)if(a-=1,i[a].elem===r){i[a].pos=n;return}i.push(new ProcessedElement(r,n))},prepareFrame:function(r){this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,r,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=r,this._isAnimated=!!n.k;for(var i=0,a=e.length;i<a;){if(e[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,r){this.data=e,this.type=e.ty,this.d="",this.lvl=r,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,r,n,i){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(r.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",r.length?r.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var a,o=r.length||0,s;for(a=0;a<o;a+=1)s=PropertyFactory.getProp(e,r[a].v,0,0,this),this.k=s.k||this.k,this.dataProps[a]={n:r[a].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var r=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),r=0;r<n;r+=1)this.dataProps[r].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[r].p.v:this.dashArray[r]=this.dataProps[r].p.v:this.dashoffset[0]=this.dataProps[r].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,r,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,r.o,0,.01,this),this.w=PropertyFactory.getProp(e,r.w,0,null,this),this.d=new DashProperty(e,r.d||{},"svg",this),this.c=PropertyFactory.getProp(e,r.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,r,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,r.o,0,.01,this),this.c=PropertyFactory.getProp(e,r.c,1,255,this),this.style=n}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,r,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,r,n){this.data=r,this.c=createTypedArray("uint8c",r.p*4);var i=r.k.k[0].s?r.k.k[0].s.length-r.p*4:r.k.k.length-r.p*4;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(e,r.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,r){for(var n=0,i=this.o.length/2,a;n<i;){if(a=Math.abs(e[n*4]-e[r*4+n*2]),a>.01)return!1;n+=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 e=0,r=this.data.k.k.length;e<r;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var r,n=this.data.p*4,i,a;for(r=0;r<n;r+=1)i=r%4===0?100:255,a=Math.round(this.prop.v[r]*i),this.c[r]!==a&&(this.c[r]=a,this._cmdf=!e);if(this.o.length)for(n=this.prop.v.length,r=this.data.p*4;r<n;r+=1)i=r%2===0?100:1,a=r%2===0?Math.round(this.prop.v[r]*100):this.prop.v[r],this.o[r-this.data.p*4]!==a&&(this.o[r-this.data.p*4]=a,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,r,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,r,n)}SVGGradientFillStyleData.prototype.initGradientData=function(e,r,n){this.o=PropertyFactory.getProp(e,r.o,0,.01,this),this.s=PropertyFactory.getProp(e,r.s,1,null,this),this.e=PropertyFactory.getProp(e,r.e,1,null,this),this.h=PropertyFactory.getProp(e,r.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,r.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,r.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,r),this.setGradientOpacity(r,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,r){var n=createElementID(),i=createNS(r.t===1?"linearGradient":"radialGradient");i.setAttribute("id",n),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var a=[],o,s,l;for(l=r.g.p*4,s=0;s<l;s+=4)o=createNS("stop"),i.appendChild(o),a.push(o);e.setAttribute(r.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=i,this.cst=a},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,r){if(this.g._hasOpacity&&!this.g._collapsable){var n,i,a,o=createNS("mask"),s=createNS("path");o.appendChild(s);var l=createElementID(),c=createElementID();o.setAttribute("id",c);var u=createNS(e.t===1?"linearGradient":"radialGradient");u.setAttribute("id",l),u.setAttribute("spreadMethod","pad"),u.setAttribute("gradientUnits","userSpaceOnUse"),a=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var h=this.stops;for(i=e.g.p*4;i<a;i+=2)n=createNS("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(n),h.push(n);s.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+l+")"),e.ty==="gs"&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&s.setAttribute("stroke-miterlimit",e.ml)),this.of=u,this.ms=o,this.ost=h,this.maskId=c,r.msElem=s}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,r,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,r.w,0,null,this),this.d=new DashProperty(e,r.d||{},"svg",this),this.initGradientData(e,r,n),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,r,n){this.transform={mProps:e,op:r,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(r,n,i,a){if(n===0)return"";var o=r.o,s=r.i,l=r.v,c,u=" M"+a.applyToPointStringified(l[0][0],l[0][1]);for(c=1;c<n;c+=1)u+=" C"+a.applyToPointStringified(o[c-1][0],o[c-1][1])+" "+a.applyToPointStringified(s[c][0],s[c][1])+" "+a.applyToPointStringified(l[c][0],l[c][1]);return i&&n&&(u+=" C"+a.applyToPointStringified(o[c-1][0],o[c-1][1])+" "+a.applyToPointStringified(s[0][0],s[0][1])+" "+a.applyToPointStringified(l[0][0],l[0][1]),u+="z"),u},SVGElementsRenderer=function(){var e=new Matrix,r=new Matrix,n={createRenderFunction:i};function i(b){switch(b.ty){case"fl":return l;case"gf":return u;case"gs":return c;case"st":return h;case"sh":case"el":case"rc":case"sr":return s;case"tr":return a;case"no":return o;default:return null}}function a(b,f,y){(y||f.transform.op._mdf)&&f.transform.container.setAttribute("opacity",f.transform.op.v),(y||f.transform.mProps._mdf)&&f.transform.container.setAttribute("transform",f.transform.mProps.v.to2dCSS())}function o(){}function s(b,f,y){var d,g,w,p,v,m,x=f.styles.length,E=f.lvl,k,_,T,B;for(m=0;m<x;m+=1){if(p=f.sh._mdf||y,f.styles[m].lvl<E){for(_=r.reset(),T=E-f.styles[m].lvl,B=f.transformers.length-1;!p&&T>0;)p=f.transformers[B].mProps._mdf||p,T-=1,B-=1;if(p)for(T=E-f.styles[m].lvl,B=f.transformers.length-1;T>0;)_.multiply(f.transformers[B].mProps.v),T-=1,B-=1}else _=e;if(k=f.sh.paths,g=k._length,p){for(w="",d=0;d<g;d+=1)v=k.shapes[d],v&&v._length&&(w+=buildShapeString(v,v._length,v.c,_));f.caches[m]=w}else w=f.caches[m];f.styles[m].d+=b.hd===!0?"":w,f.styles[m]._mdf=p||f.styles[m]._mdf}}function l(b,f,y){var d=f.style;(f.c._mdf||y)&&d.pElem.setAttribute("fill","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||y)&&d.pElem.setAttribute("fill-opacity",f.o.v)}function c(b,f,y){u(b,f,y),h(b,f,y)}function u(b,f,y){var d=f.gf,g=f.g._hasOpacity,w=f.s.v,p=f.e.v;if(f.o._mdf||y){var v=b.ty==="gf"?"fill-opacity":"stroke-opacity";f.style.pElem.setAttribute(v,f.o.v)}if(f.s._mdf||y){var m=b.t===1?"x1":"cx",x=m==="x1"?"y1":"cy";d.setAttribute(m,w[0]),d.setAttribute(x,w[1]),g&&!f.g._collapsable&&(f.of.setAttribute(m,w[0]),f.of.setAttribute(x,w[1]))}var E,k,_,T;if(f.g._cmdf||y){E=f.cst;var B=f.g.c;for(_=E.length,k=0;k<_;k+=1)T=E[k],T.setAttribute("offset",B[k*4]+"%"),T.setAttribute("stop-color","rgb("+B[k*4+1]+","+B[k*4+2]+","+B[k*4+3]+")")}if(g&&(f.g._omdf||y)){var M=f.g.o;for(f.g._collapsable?E=f.cst:E=f.ost,_=E.length,k=0;k<_;k+=1)T=E[k],f.g._collapsable||T.setAttribute("offset",M[k*2]+"%"),T.setAttribute("stop-opacity",M[k*2+1])}if(b.t===1)(f.e._mdf||y)&&(d.setAttribute("x2",p[0]),d.setAttribute("y2",p[1]),g&&!f.g._collapsable&&(f.of.setAttribute("x2",p[0]),f.of.setAttribute("y2",p[1])));else{var F;if((f.s._mdf||f.e._mdf||y)&&(F=Math.sqrt(Math.pow(w[0]-p[0],2)+Math.pow(w[1]-p[1],2)),d.setAttribute("r",F),g&&!f.g._collapsable&&f.of.setAttribute("r",F)),f.e._mdf||f.h._mdf||f.a._mdf||y){F||(F=Math.sqrt(Math.pow(w[0]-p[0],2)+Math.pow(w[1]-p[1],2)));var O=Math.atan2(p[1]-w[1],p[0]-w[0]),D=f.h.v;D>=1?D=.99:D<=-1&&(D=-.99);var N=F*D,L=Math.cos(O+f.a.v)*N+w[0],P=Math.sin(O+f.a.v)*N+w[1];d.setAttribute("fx",L),d.setAttribute("fy",P),g&&!f.g._collapsable&&(f.of.setAttribute("fx",L),f.of.setAttribute("fy",P))}}}function h(b,f,y){var d=f.style,g=f.d;g&&(g._mdf||y)&&g.dashStr&&(d.pElem.setAttribute("stroke-dasharray",g.dashStr),d.pElem.setAttribute("stroke-dashoffset",g.dashoffset[0])),f.c&&(f.c._mdf||y)&&d.pElem.setAttribute("stroke","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||y)&&d.pElem.setAttribute("stroke-opacity",f.o.v),(f.w._mdf||y)&&(d.pElem.setAttribute("stroke-width",f.w.v),d.msElem&&d.msElem.setAttribute("stroke-width",f.w.v))}return n}();function SVGShapeElement(e,r,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,r,n),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 e,r=this.shapes.length,n,i,a=this.stylesList.length,o,s=[],l=!1;for(i=0;i<a;i+=1){for(o=this.stylesList[i],l=!1,s.length=0,e=0;e<r;e+=1)n=this.shapes[e],n.styles.indexOf(o)!==-1&&(s.push(n),l=n._isAnimated||l);s.length>1&&l&&this.setShapesAsAnimated(s)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var r,n=e.length;for(r=0;r<n;r+=1)e[r].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,r){var n,i=new SVGStyleData(e,r),a=i.pElem;if(e.ty==="st")n=new SVGStrokeStyleData(this,e,i);else if(e.ty==="fl")n=new SVGFillStyleData(this,e,i);else if(e.ty==="gf"||e.ty==="gs"){var o=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;n=new o(this,e,i),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),a.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))}else e.ty==="no"&&(n=new SVGNoStyleData(this,e,i));return(e.ty==="st"||e.ty==="gs")&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),a.setAttribute("fill-opacity","0"),e.lj===1&&a.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&a.setAttribute("fill-rule","evenodd"),e.ln&&a.setAttribute("id",e.ln),e.cl&&a.setAttribute("class",e.cl),e.bm&&(a.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(i),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createGroupElement=function(e){var r=new ShapeGroupData;return e.ln&&r.gr.setAttribute("id",e.ln),e.cl&&r.gr.setAttribute("class",e.cl),e.bm&&(r.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),r},SVGShapeElement.prototype.createTransformElement=function(e,r){var n=TransformPropertyFactory.getTransformProperty(this,e,this),i=new SVGTransformData(n,n.o,r);return this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createShapeElement=function(e,r,n){var i=4;e.ty==="rc"?i=5:e.ty==="el"?i=6:e.ty==="sr"&&(i=7);var a=ShapePropertyFactory.getShapeProp(this,e,i,this),o=new SVGShapeData(r,n,a);return this.shapes.push(o),this.addShapeToModifiers(o),this.addToAnimatedContents(e,o),o},SVGShapeElement.prototype.addToAnimatedContents=function(e,r){for(var n=0,i=this.animatedContents.length;n<i;){if(this.animatedContents[n].element===r)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:r,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var r=e.styles,n,i=this.stylesList.length;for(n=0;n<i;n+=1)this.stylesList[n].closed||r.push(this.stylesList[n])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,r=this.itemsData.length;for(e=0;e<r;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),r=this.dynamicProperties.length,e=0;e<r;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,r,n,i,a,o,s){var l=[].concat(o),c,u=e.length-1,h,b,f=[],y=[],d,g,w;for(c=u;c>=0;c-=1){if(w=this.searchProcessedElement(e[c]),w?r[c]=n[w-1]:e[c]._render=s,e[c].ty==="fl"||e[c].ty==="st"||e[c].ty==="gf"||e[c].ty==="gs"||e[c].ty==="no")w?r[c].style.closed=!1:r[c]=this.createStyleElement(e[c],a),e[c]._render&&r[c].style.pElem.parentNode!==i&&i.appendChild(r[c].style.pElem),f.push(r[c].style);else if(e[c].ty==="gr"){if(!w)r[c]=this.createGroupElement(e[c]);else for(b=r[c].it.length,h=0;h<b;h+=1)r[c].prevViewData[h]=r[c].it[h];this.searchShapes(e[c].it,r[c].it,r[c].prevViewData,r[c].gr,a+1,l,s),e[c]._render&&r[c].gr.parentNode!==i&&i.appendChild(r[c].gr)}else e[c].ty==="tr"?(w||(r[c]=this.createTransformElement(e[c],i)),d=r[c].transform,l.push(d)):e[c].ty==="sh"||e[c].ty==="rc"||e[c].ty==="el"||e[c].ty==="sr"?(w||(r[c]=this.createShapeElement(e[c],l,a)),this.setElementStyles(r[c])):e[c].ty==="tm"||e[c].ty==="rd"||e[c].ty==="ms"||e[c].ty==="pb"||e[c].ty==="zz"||e[c].ty==="op"?(w?(g=r[c],g.closed=!1):(g=ShapeModifiers.getModifier(e[c].ty),g.init(this,e[c]),r[c]=g,this.shapeModifiers.push(g)),y.push(g)):e[c].ty==="rp"&&(w?(g=r[c],g.closed=!0):(g=ShapeModifiers.getModifier(e[c].ty),r[c]=g,g.init(this,e,c,r),this.shapeModifiers.push(g),s=!1),y.push(g));this.addProcessedElement(e[c],c+1)}for(u=f.length,c=0;c<u;c+=1)f[c].closed=!0;for(u=y.length,c=0;c<u;c+=1)y[c].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<r;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,r=this.animatedContents.length,n;for(e=0;e<r;e+=1)n=this.animatedContents[e],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,r,n,i,a,o){this.o=e,this.sw=r,this.sc=n,this.fc=i,this.m=a,this.p=o,this._mdf={o:!0,sw:!!r,sc:!!n,fc:!!i,m:!0,p:!0}}LetterProps.prototype.update=function(e,r,n,i,a,o){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 s=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,s=!0),this.sw!==r&&(this.sw=r,this._mdf.sw=!0,s=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,s=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,s=!0),this.m!==a&&(this.m=a,this._mdf.m=!0,s=!0),o.length&&(this.p[0]!==o[0]||this.p[1]!==o[1]||this.p[4]!==o[4]||this.p[5]!==o[5]||this.p[12]!==o[12]||this.p[13]!==o[13])&&(this.p=o,this._mdf.p=!0,s=!0),s};function TextProperty(e,r){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,r.d&&r.d.sid&&(r.d=e.globalData.slotManager.getProp(r.d)),this.data=r,this.elem=e,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(e,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,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(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var r=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var i,a=this.effectsSequence.length,o=e||this.data.d.k[this.keysIndex].s;for(i=0;i<a;i+=1)n!==this.keysIndex?o=this.effectsSequence[i](o,o.t):o=this.effectsSequence[i](this.currentData,o.t);r!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,r=this.elem.comp.renderedFrame,n=0,i=e.length;n<=i-1&&!(n===i-1||e[n+1].t>r);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var r=[],n=0,i=e.length,a,o,s=!1,l=!1,c="";n<i;)s=l,l=!1,a=e.charCodeAt(n),c=e.charAt(n),FontManager.isCombinedCharacter(a)?s=!0:a>=55296&&a<=56319?FontManager.isRegionalFlag(e,n)?c=e.substr(n,14):(o=e.charCodeAt(n+1),o>=56320&&o<=57343&&(FontManager.isModifier(a,o)?(c=e.substr(n,2),s=!0):FontManager.isFlagEmoji(e.substr(n,4))?c=e.substr(n,4):c=e.substr(n,2))):a>56319?(o=e.charCodeAt(n+1),FontManager.isVariationSelector(a)&&(s=!0)):FontManager.isZeroWidthJoiner(a)&&(s=!0,l=!0),s?(r[r.length-1]+=c,s=!1):r.push(c),n+=c.length;return r},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var r=this.elem.globalData.fontManager,n=this.data,i=[],a,o,s,l=0,c,u=n.m.g,h=0,b=0,f=0,y=[],d=0,g=0,w,p,v=r.getFontByName(e.f),m,x=0,E=getFontProperties(v);e.fWeight=E.weight,e.fStyle=E.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),o=e.finalText.length,e.finalLineHeight=e.lh;var k=e.tr/1e3*e.finalSize,_;if(e.sz)for(var T=!0,B=e.sz[0],M=e.sz[1],F,O;T;){O=this.buildFinalText(e.t),F=0,d=0,o=O.length,k=e.tr/1e3*e.finalSize;var D=-1;for(a=0;a<o;a+=1)_=O[a].charCodeAt(0),s=!1,O[a]===" "?D=a:(_===13||_===3)&&(d=0,s=!0,F+=e.finalLineHeight||e.finalSize*1.2),r.chars?(m=r.getCharData(O[a],v.fStyle,v.fFamily),x=s?0:m.w*e.finalSize/100):x=r.measureText(O[a],e.f,e.finalSize),d+x>B&&O[a]!==" "?(D===-1?o+=1:a=D,F+=e.finalLineHeight||e.finalSize*1.2,O.splice(a,D===a?1:0,"\r"),D=-1,d=0):(d+=x,d+=k);F+=v.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&M<F?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=O,o=e.finalText.length,T=!1)}d=-k,x=0;var N=0,L;for(a=0;a<o;a+=1)if(s=!1,L=e.finalText[a],_=L.charCodeAt(0),_===13||_===3?(N=0,y.push(d),g=d>g?d:g,d=-2*k,c="",s=!0,f+=1):c=L,r.chars?(m=r.getCharData(L,v.fStyle,r.getFontByName(e.f).fFamily),x=s?0:m.w*e.finalSize/100):x=r.measureText(c,e.f,e.finalSize),L===" "?N+=x+k:(d+=x+k+N,N=0),i.push({l:x,an:x,add:h,n:s,anIndexes:[],val:c,line:f,animatorJustifyOffset:0}),u==2){if(h+=x,c===""||c===" "||a===o-1){for((c===""||c===" ")&&(h-=x);b<=a;)i[b].an=h,i[b].ind=l,i[b].extra=x,b+=1;l+=1,h=0}}else if(u==3){if(h+=x,c===""||a===o-1){for(c===""&&(h-=x);b<=a;)i[b].an=h,i[b].ind=l,i[b].extra=x,b+=1;h=0,l+=1}}else i[l].ind=l,i[l].extra=0,l+=1;if(e.l=i,g=d>g?d:g,y.push(d),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=g,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=y;var P=n.a,I,C;p=P.length;var S,R,A=[];for(w=0;w<p;w+=1){for(I=P[w],I.a.sc&&(e.strokeColorAnim=!0),I.a.sw&&(e.strokeWidthAnim=!0),(I.a.fc||I.a.fh||I.a.fs||I.a.fb)&&(e.fillColorAnim=!0),R=0,S=I.s.b,a=0;a<o;a+=1)C=i[a],C.anIndexes[w]=R,(S==1&&C.val!==""||S==2&&C.val!==""&&C.val!==" "||S==3&&(C.n||C.val==" "||a==o-1)||S==4&&(C.n||a==o-1))&&(I.s.rn===1&&A.push(R),R+=1);n.a[w].s.totalChars=R;var q=-1,H;if(I.s.rn===1)for(a=0;a<o;a+=1)C=i[a],q!=C.anIndexes[w]&&(q=C.anIndexes[w],H=A.splice(Math.floor(Math.random()*A.length),1)[0]),C.anIndexes[w]=H}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=v.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,r){r=r===void 0?this.keysIndex:r;var n=this.copyData({},this.data.d.k[r].s);n=this.copyData(n,e),this.data.d.k[r].s=n,this.recalculate(r),this.setCurrentData(n),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var r=this.data.d.k[e].s;r.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(r)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,r=Math.min,n=Math.floor;function i(o,s){this._currentTextLength=-1,this.k=!1,this.data=s,this.elem=o,this.comp=o.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(o),this.s=PropertyFactory.getProp(o,s.s||{k:0},0,0,this),"e"in s?this.e=PropertyFactory.getProp(o,s.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(o,s.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(o,s.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(o,s.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(o,s.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(o,s.a,0,.01,this),this.dynamicProperties.length||this.getValue()}i.prototype={getMult:function(s){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var l=0,c=0,u=1,h=1;this.ne.v>0?l=this.ne.v/100:c=-this.ne.v/100,this.xe.v>0?u=1-this.xe.v/100:h=1+this.xe.v/100;var b=BezierFactory.getBezierEasing(l,c,u,h).get,f=0,y=this.finalS,d=this.finalE,g=this.data.sh;if(g===2)d===y?f=s>=d?1:0:f=e(0,r(.5/(d-y)+(s-y)/(d-y),1)),f=b(f);else if(g===3)d===y?f=s>=d?0:1:f=1-e(0,r(.5/(d-y)+(s-y)/(d-y),1)),f=b(f);else if(g===4)d===y?f=0:(f=e(0,r(.5/(d-y)+(s-y)/(d-y),1)),f<.5?f*=2:f=1-2*(f-.5)),f=b(f);else if(g===5){if(d===y)f=0;else{var w=d-y;s=r(e(0,s+.5-y),d-y);var p=-w/2+s,v=w/2;f=Math.sqrt(1-p*p/(v*v))}f=b(f)}else g===6?(d===y?f=0:(s=r(e(0,s+.5-y),d-y),f=(1+Math.cos(Math.PI+Math.PI*2*s/(d-y)))/2),f=b(f)):(s>=n(y)&&(s-y<0?f=e(0,r(r(d,1)-(y-s),1)):f=e(0,r(d-s,1))),f=b(f));if(this.sm.v!==100){var m=this.sm.v*.01;m===0&&(m=1e-8);var x=.5-m*.5;f<x?f=0:(f=(f-x)/m,f>1&&(f=1))}return f*this.a.v},getValue:function(s){this.iterateDynamicProperties(),this._mdf=s||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,s&&this.data.r===2&&(this.e.v=this._currentTextLength);var l=this.data.r===2?1:100/this.data.totalChars,c=this.o.v/l,u=this.s.v/l+c,h=this.e.v/l+c;if(u>h){var b=u;u=h,h=b}this.finalS=u,this.finalE=h}},extendPrototype([DynamicPropertyContainer],i);function a(o,s,l){return new i(o,s)}return{getTextSelectorProp:a}}();function TextAnimatorDataProperty(e,r,n){var i={propType:!1},a=PropertyFactory.getProp,o=r.a;this.a={r:o.r?a(e,o.r,0,degToRads,n):i,rx:o.rx?a(e,o.rx,0,degToRads,n):i,ry:o.ry?a(e,o.ry,0,degToRads,n):i,sk:o.sk?a(e,o.sk,0,degToRads,n):i,sa:o.sa?a(e,o.sa,0,degToRads,n):i,s:o.s?a(e,o.s,1,.01,n):i,a:o.a?a(e,o.a,1,0,n):i,o:o.o?a(e,o.o,0,.01,n):i,p:o.p?a(e,o.p,1,0,n):i,sw:o.sw?a(e,o.sw,0,0,n):i,sc:o.sc?a(e,o.sc,1,0,n):i,fc:o.fc?a(e,o.fc,1,0,n):i,fh:o.fh?a(e,o.fh,0,0,n):i,fs:o.fs?a(e,o.fs,0,.01,n):i,fb:o.fb?a(e,o.fb,0,.01,n):i,t:o.t?a(e,o.t,0,0,n):i},this.s=TextSelectorProp.getTextSelectorProp(e,r.s,n),this.s.t=r.s.t}function TextAnimatorProperty(e,r,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=r,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}TextAnimatorProperty.prototype.searchProperties=function(){var e,r=this._textData.a.length,n,i=PropertyFactory.getProp;for(e=0;e<r;e+=1)n=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(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=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,r){if(this.lettersChangedFlag=r,!(!this._mdf&&!this._isFirstFrame&&!r&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,i=this._animatorsData,a=this._textData,o=this.mHelper,s=this._renderType,l=this.renderedLetters.length,c,u,h,b,f=e.l,y,d,g,w,p,v,m,x,E,k,_,T,B,M,F;if(this._hasMaskedPath){if(F=this._pathData.m,!this._pathData.n||this._pathData._mdf){var O=F.v;this._pathData.r.v&&(O=O.reverse()),y={tLength:0,segments:[]},b=O._length-1;var D;for(T=0,h=0;h<b;h+=1)D=bez.buildBezierData(O.v[h],O.v[h+1],[O.o[h][0]-O.v[h][0],O.o[h][1]-O.v[h][1]],[O.i[h+1][0]-O.v[h+1][0],O.i[h+1][1]-O.v[h+1][1]]),y.tLength+=D.segmentLength,y.segments.push(D),T+=D.segmentLength;h=b,F.v.c&&(D=bez.buildBezierData(O.v[h],O.v[0],[O.o[h][0]-O.v[h][0],O.o[h][1]-O.v[h][1]],[O.i[0][0]-O.v[0][0],O.i[0][1]-O.v[0][1]]),y.tLength+=D.segmentLength,y.segments.push(D),T+=D.segmentLength),this._pathData.pi=y}if(y=this._pathData.pi,d=this._pathData.f.v,m=0,v=1,w=0,p=!0,k=y.segments,d<0&&F.v.c)for(y.tLength<Math.abs(d)&&(d=-Math.abs(d)%y.tLength),m=k.length-1,E=k[m].points,v=E.length-1;d<0;)d+=E[v].partialLength,v-=1,v<0&&(m-=1,E=k[m].points,v=E.length-1);E=k[m].points,x=E[v-1],g=E[v],_=g.partialLength}b=f.length,c=0,u=0;var N=e.finalSize*1.2*.714,L=!0,P,I,C,S,R;S=i.length;var A,q=-1,H,G,U,j=d,V=m,$=v,Y=-1,J,K,ne,X,W,ee,te,ae,ie="",se=this.defaultPropsArray,he;if(e.j===2||e.j===1){var de=0,ge=0,be=e.j===2?-.5:-1,Ce=0,Te=!0;for(h=0;h<b;h+=1)if(f[h].n){for(de&&(de+=ge);Ce<h;)f[Ce].animatorJustifyOffset=de,Ce+=1;de=0,Te=!0}else{for(C=0;C<S;C+=1)P=i[C].a,P.t.propType&&(Te&&e.j===2&&(ge+=P.t.v*be),I=i[C].s,A=I.getMult(f[h].anIndexes[C],a.a[C].s.totalChars),A.length?de+=P.t.v*A[0]*be:de+=P.t.v*A*be);Te=!1}for(de&&(de+=ge);Ce<h;)f[Ce].animatorJustifyOffset=de,Ce+=1}for(h=0;h<b;h+=1){if(o.reset(),J=1,f[h].n)c=0,u+=e.yOffset,u+=L?1:0,d=j,L=!1,this._hasMaskedPath&&(m=V,v=$,E=k[m].points,x=E[v-1],g=E[v],_=g.partialLength,w=0),ie="",ae="",ee="",he="",se=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Y!==f[h].line){switch(e.j){case 1:d+=T-e.lineWidths[f[h].line];break;case 2:d+=(T-e.lineWidths[f[h].line])/2;break}Y=f[h].line}q!==f[h].ind&&(f[q]&&(d+=f[q].extra),d+=f[h].an/2,q=f[h].ind),d+=n[0]*f[h].an*.005;var Se=0;for(C=0;C<S;C+=1)P=i[C].a,P.p.propType&&(I=i[C].s,A=I.getMult(f[h].anIndexes[C],a.a[C].s.totalChars),A.length?Se+=P.p.v[0]*A[0]:Se+=P.p.v[0]*A),P.a.propType&&(I=i[C].s,A=I.getMult(f[h].anIndexes[C],a.a[C].s.totalChars),A.length?Se+=P.a.v[0]*A[0]:Se+=P.a.v[0]*A);for(p=!0,this._pathData.a.v&&(d=f[0].an*.5+(T-this._pathData.f.v-f[0].an*.5-f[f.length-1].an*.5)*q/(b-1),d+=this._pathData.f.v);p;)w+_>=d+Se||!E?(B=(d+Se-w)/g.partialLength,G=x.point[0]+(g.point[0]-x.point[0])*B,U=x.point[1]+(g.point[1]-x.point[1])*B,o.translate(-n[0]*f[h].an*.005,-(n[1]*N)*.01),p=!1):E&&(w+=g.partialLength,v+=1,v>=E.length&&(v=0,m+=1,k[m]?E=k[m].points:F.v.c?(v=0,m=0,E=k[m].points):(w-=g.partialLength,E=null)),E&&(x=g,g=E[v],_=g.partialLength));H=f[h].an/2-f[h].add,o.translate(-H,0,0)}else H=f[h].an/2-f[h].add,o.translate(-H,0,0),o.translate(-n[0]*f[h].an*.005,-n[1]*N*.01,0);for(C=0;C<S;C+=1)P=i[C].a,P.t.propType&&(I=i[C].s,A=I.getMult(f[h].anIndexes[C],a.a[C].s.totalChars),(c!==0||e.j!==0)&&(this._hasMaskedPath?A.length?d+=P.t.v*A[0]:d+=P.t.v*A:A.length?c+=P.t.v*A[0]:c+=P.t.v*A));for(e.strokeWidthAnim&&(ne=e.sw||0),e.strokeColorAnim&&(e.sc?K=[e.sc[0],e.sc[1],e.sc[2]]:K=[0,0,0]),e.fillColorAnim&&e.fc&&(X=[e.fc[0],e.fc[1],e.fc[2]]),C=0;C<S;C+=1)P=i[C].a,P.a.propType&&(I=i[C].s,A=I.getMult(f[h].anIndexes[C],a.a[C].s.totalChars),A.length?o.translate(-P.a.v[0]*A[0],-P.a.v[1]*A[1],P.a.v[2]*A[2]):o.translate(-P.a.v[0]*A,-P.a.v[1]*A,P.a.v[2]*A));for(C=0;C<S;C+=1)P=i[C].a,P.s.propType&&(I=i[C].s,A=I.getMult(f[h].anIndexes[C],a.a[C].s.totalChars),A.length?o.scale(1+(P.s.v[0]-1)*A[0],1+(P.s.v[1]-1)*A[1],1):o.scale(1+(P.s.v[0]-1)*A,1+(P.s.v[1]-1)*A,1));for(C=0;C<S;C+=1){if(P=i[C].a,I=i[C].s,A=I.getMult(f[h].anIndexes[C],a.a[C].s.totalChars),P.sk.propType&&(A.length?o.skewFromAxis(-P.sk.v*A[0],P.sa.v*A[1]):o.skewFromAxis(-P.sk.v*A,P.sa.v*A)),P.r.propType&&(A.length?o.rotateZ(-P.r.v*A[2]):o.rotateZ(-P.r.v*A)),P.ry.propType&&(A.length?o.rotateY(P.ry.v*A[1]):o.rotateY(P.ry.v*A)),P.rx.propType&&(A.length?o.rotateX(P.rx.v*A[0]):o.rotateX(P.rx.v*A)),P.o.propType&&(A.length?J+=(P.o.v*A[0]-J)*A[0]:J+=(P.o.v*A-J)*A),e.strokeWidthAnim&&P.sw.propType&&(A.length?ne+=P.sw.v*A[0]:ne+=P.sw.v*A),e.strokeColorAnim&&P.sc.propType)for(W=0;W<3;W+=1)A.length?K[W]+=(P.sc.v[W]-K[W])*A[0]:K[W]+=(P.sc.v[W]-K[W])*A;if(e.fillColorAnim&&e.fc){if(P.fc.propType)for(W=0;W<3;W+=1)A.length?X[W]+=(P.fc.v[W]-X[W])*A[0]:X[W]+=(P.fc.v[W]-X[W])*A;P.fh.propType&&(A.length?X=addHueToRGB(X,P.fh.v*A[0]):X=addHueToRGB(X,P.fh.v*A)),P.fs.propType&&(A.length?X=addSaturationToRGB(X,P.fs.v*A[0]):X=addSaturationToRGB(X,P.fs.v*A)),P.fb.propType&&(A.length?X=addBrightnessToRGB(X,P.fb.v*A[0]):X=addBrightnessToRGB(X,P.fb.v*A))}}for(C=0;C<S;C+=1)P=i[C].a,P.p.propType&&(I=i[C].s,A=I.getMult(f[h].anIndexes[C],a.a[C].s.totalChars),this._hasMaskedPath?A.length?o.translate(0,P.p.v[1]*A[0],-P.p.v[2]*A[1]):o.translate(0,P.p.v[1]*A,-P.p.v[2]*A):A.length?o.translate(P.p.v[0]*A[0],P.p.v[1]*A[1],-P.p.v[2]*A[2]):o.translate(P.p.v[0]*A,P.p.v[1]*A,-P.p.v[2]*A));if(e.strokeWidthAnim&&(ee=ne<0?0:ne),e.strokeColorAnim&&(te="rgb("+Math.round(K[0]*255)+","+Math.round(K[1]*255)+","+Math.round(K[2]*255)+")"),e.fillColorAnim&&e.fc&&(ae="rgb("+Math.round(X[0]*255)+","+Math.round(X[1]*255)+","+Math.round(X[2]*255)+")"),this._hasMaskedPath){if(o.translate(0,-e.ls),o.translate(0,n[1]*N*.01+u,0),this._pathData.p.v){M=(g.point[1]-x.point[1])/(g.point[0]-x.point[0]);var fe=Math.atan(M)*180/Math.PI;g.point[0]<x.point[0]&&(fe+=180),o.rotate(-fe*Math.PI/180)}o.translate(G,U,0),d-=n[0]*f[h].an*.005,f[h+1]&&q!==f[h+1].ind&&(d+=f[h].an/2,d+=e.tr*.001*e.finalSize)}else{switch(o.translate(c,u,0),e.ps&&o.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:o.translate(f[h].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[f[h].line]),0,0);break;case 2:o.translate(f[h].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[f[h].line])/2,0,0);break}o.translate(0,-e.ls),o.translate(H,0,0),o.translate(n[0]*f[h].an*.005,n[1]*N*.01,0),c+=f[h].l+e.tr*.001*e.finalSize}s==="html"?ie=o.toCSS():s==="svg"?ie=o.to2dCSS():se=[o.props[0],o.props[1],o.props[2],o.props[3],o.props[4],o.props[5],o.props[6],o.props[7],o.props[8],o.props[9],o.props[10],o.props[11],o.props[12],o.props[13],o.props[14],o.props[15]],he=J}l<=h?(R=new LetterProps(he,ee,te,ae,ie,se),this.renderedLetters.push(R),l+=1,this.lettersChangedFlag=!0):(R=this.renderedLetters[h],this.lettersChangedFlag=R.update(he,ee,te,ae,ie,se)||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(e,r,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,r,n),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,r,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,r){var n,i=r.length,a,o="";for(n=0;n<i;n+=1)r[n].ty==="sh"&&(a=r[n].ks.k,o+=buildShapeString(a,a.i.length,!0,e));return o},ITextElement.prototype.updateDocumentData=function(e,r){this.textProperty.updateDocumentData(e,r)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,r,n,i,a){switch(e.ps&&r.translate(e.ps[0],e.ps[1]+e.ascent,0),r.translate(0,-e.ls,0),e.j){case 1:r.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:r.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0);break}r.translate(i,a,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[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(e,r,n){this.textSpans=[],this.renderType="svg",this.initElement(e,r,n)}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(e){for(var r=0,n=e.length,i=[],a="";r<n;)e[r]===String.fromCharCode(13)||e[r]===String.fromCharCode(3)?(i.push(a),a=""):a+=e[r],r+=1;return i.push(a),i},SVGTextLottieElement.prototype.buildShapeData=function(e,r){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var i=n.it[n.it.length-1];i.s&&(i.s.k[0]=r,i.s.k[1]=r)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,r,n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var i=this.globalData.fontManager.getFontByName(n.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var a=n.fWeight,o=n.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",a)}this.layerElement.setAttribute("aria-label",n.t);var s=n.l||[],l=!!this.globalData.fontManager.chars;r=s.length;var c,u=this.mHelper,h="",b=this.data.singleShape,f=0,y=0,d=!0,g=n.tr*.001*n.finalSize;if(b&&!l&&!n.sz){var w=this.textContainer,p="start";switch(n.j){case 1:p="end";break;case 2:p="middle";break;default:p="start";break}w.setAttribute("text-anchor",p),w.setAttribute("letter-spacing",g);var v=this.buildTextContents(n.finalText);for(r=v.length,y=n.ps?n.ps[1]+n.ascent:0,e=0;e<r;e+=1)c=this.textSpans[e].span||createNS("tspan"),c.textContent=v[e],c.setAttribute("x",0),c.setAttribute("y",y),c.style.display="inherit",w.appendChild(c),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=c,y+=n.finalLineHeight;this.layerElement.appendChild(w)}else{var m=this.textSpans.length,x;for(e=0;e<r;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!b||e===0){if(c=m>e?this.textSpans[e].span:createNS(l?"g":"text"),m<=e){if(c.setAttribute("stroke-linecap","butt"),c.setAttribute("stroke-linejoin","round"),c.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=c,l){var E=createNS("g");c.appendChild(E),this.textSpans[e].childSpan=E}this.textSpans[e].span=c,this.layerElement.appendChild(c)}c.style.display="inherit"}if(u.reset(),b&&(s[e].n&&(f=-g,y+=n.yOffset,y+=d?1:0,d=!1),this.applyTextPropertiesToMatrix(n,u,s[e].line,f,y),f+=s[e].l||0,f+=g),l){x=this.globalData.fontManager.getCharData(n.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var k;if(x.t===1)k=new SVGCompElement(x.data,this.globalData,this);else{var _=emptyShapeData;x.data&&x.data.shapes&&(_=this.buildShapeData(x.data,n.finalSize)),k=new SVGShapeElement(_,this.globalData,this)}if(this.textSpans[e].glyph){var T=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(T.layerElement),T.destroy()}this.textSpans[e].glyph=k,k._debug=!0,k.prepareFrame(0),k.renderFrame(),this.textSpans[e].childSpan.appendChild(k.layerElement),x.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else b&&c.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),c.textContent=s[e].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}b&&c&&c.setAttribute("d",h)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=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 e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,r=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)n=this.textSpans[e].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._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 e,r,n=this.textAnimator.renderedLetters,i=this.textProperty.currentData.l;r=i.length;var a,o,s;for(e=0;e<r;e+=1)i[e].n||(a=n[e],o=this.textSpans[e].span,s=this.textSpans[e].glyph,s&&s.renderFrame(),a._mdf.m&&o.setAttribute("transform",a.m),a._mdf.o&&o.setAttribute("opacity",a.o),a._mdf.sw&&o.setAttribute("stroke-width",a.sw),a._mdf.sc&&o.setAttribute("stroke",a.sc),a._mdf.fc&&o.setAttribute("fill",a.fc))}};function ISolidElement(e,r,n){this.initElement(e,r,n)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function NullElement(e,r,n){this.initFrame(),this.initBaseData(e,r,n),this.initFrame(),this.initTransform(e,r,n),this.initHierarchy()}NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!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(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){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 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.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 r=this.globalData.defs;this.setupGlobalData(e,r),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",e.w),i.setAttribute("height",e.h),i.setAttribute("x",0),i.setAttribute("y",0);var a=createElementID();n.setAttribute("id",a),n.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),r.appendChild(n),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,r=this.layers?this.layers.length:0;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var r=0,n=this.layers.length;for(r=0;r<n;r+=1)if(this.layers[r].ind===e)return r;return-1},SVGRendererBase.prototype.buildItem=function(e){var r=this.elements;if(!(r[e]||this.layers[e].ty===99)){r[e]=!0;var n=this.createItem(this.layers[e]);if(r[e]=n,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var i="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(i===-1)return;if(!this.elements[i]||this.elements[i]===!0)this.buildItem(i),this.addPendingElement(n);else{var a=r[i],o=a.getMatte(this.layers[e].tt);n.setMatte(o)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var r=0,n=this.elements.length;r<n;){if(this.elements[r]===e){var i="tp"in e.data?this.findIndexByInd(e.data.tp):r-1,a=this.elements[i],o=a.getMatte(this.layers[r].tt);e.setMatte(o);break}r+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf)for(r=0;r<n;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,r){var n=e.getBaseElement();if(n){for(var i=0,a;i<r;)this.elements[i]&&this.elements[i]!==!0&&this.elements[i].getBaseElement()&&(a=this.elements[i].getBaseElement()),i+=1;a?this.layerElement.insertBefore(n,a):this.layerElement.appendChild(n)}},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(e,r,n){this.initFrame(),this.initBaseData(e,r,n),this.initTransform(e,r,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!r.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var r=this.tm.v;r===this.data.op&&(r=this.data.op-1),this.renderedFrame=r}var n,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,r,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,r,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,r.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,r){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(r&&r.title){var i=createNS("title"),a=createElementID();i.setAttribute("id",a),i.textContent=r.title,this.svgElement.appendChild(i),n+=a}if(r&&r.description){var o=createNS("desc"),s=createElementID();o.setAttribute("id",s),o.textContent=r.description,this.svgElement.appendChild(o),n+=" "+s}n&&this.svgElement.setAttribute("aria-labelledby",n);var l=createNS("defs");this.svgElement.appendChild(l);var c=createNS("g");this.svgElement.appendChild(c),this.layerElement=c,this.renderConfig={preserveAspectRatio:r&&r.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:r&&r.contentVisibility||"visible",progressiveLoad:r&&r.progressiveLoad||!1,hideOnTransparent:!(r&&r.hideOnTransparent===!1),viewBoxOnly:r&&r.viewBoxOnly||!1,viewBoxSize:r&&r.viewBoxSize||!1,className:r&&r.className||"",id:r&&r.id||"",focusable:r&&r.focusable,filterSize:{width:r&&r.filterSize&&r.filterSize.width||"100%",height:r&&r.filterSize&&r.filterSize.height||"100%",x:r&&r.filterSize&&r.filterSize.x||"0%",y:r&&r.filterSize&&r.filterSize.y||"0%"},width:r&&r.width,height:r&&r.height,runExpressions:!r||r.runExpressions===void 0||r.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:l,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(r){var n,i=r.length,a="_";for(n=0;n<i;n+=1)a+=r[n].transform.key+"_";var o=this.sequences[a];return o||(o={transforms:[].concat(r),finalTransform:new Matrix,_mdf:!1},this.sequences[a]=o,this.sequenceList.push(o)),o},processSequence:function(r,n){for(var i=0,a=r.transforms.length,o=n;i<a&&!n;){if(r.transforms[i].transform.mProps._mdf){o=!0;break}i+=1}if(o)for(r.finalTransform.reset(),i=a-1;i>=0;i-=1)r.finalTransform.multiply(r.transforms[i].transform.mProps.v);r._mdf=o},processSequences:function(r){var n,i=this.sequenceList.length;for(n=0;n<i;n+=1)this.processSequence(this.sequenceList[n],r)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var r="__lottie_element_luma_buffer",n=null,i=null,a=null;function o(){var c=createNS("svg"),u=createNS("filter"),h=createNS("feColorMatrix");return u.setAttribute("id",r),h.setAttribute("type","matrix"),h.setAttribute("color-interpolation-filters","sRGB"),h.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"),u.appendChild(h),c.appendChild(u),c.setAttribute("id",r+"_svg"),featureSupport.svgLumaHidden&&(c.style.display="none"),c}function s(){n||(a=o(),document.body.appendChild(a),n=createTag("canvas"),i=n.getContext("2d"),i.filter="url(#"+r+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}function l(c){return n||s(),n.width=c.width,n.height=c.height,i.filter="url(#"+r+")",n}return{load:s,get:l}};function createCanvas(e,r){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,r);var n=createTag("canvas");return n.width=e,n.height=r,n}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(e){var r,n=e.data.ef?e.data.ef.length:0;this.filters=[];var i;for(r=0;r<n;r+=1){i=null;var a=e.data.ef[r].ty;if(registeredEffects[a]){var o=registeredEffects[a].effect;i=new o(e.effectsManager.effectElements[r],e)}i&&this.filters.push(i)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var r,n=this.filters.length;for(r=0;r<n;r+=1)this.filters[r].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var r,n=this.filters.length,i=[];for(r=0;r<n;r+=1)this.filters[r].type===e&&i.push(this.filters[r]);return i};function registerEffect(e,r){registeredEffects[e]={effect:r}}function CVMaskElement(e,r){this.data=e,this.element=r,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n,i=this.masksProperties.length,a=!1;for(n=0;n<i;n+=1)this.masksProperties[n].mode!=="n"&&(a=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=a,a&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,r=this.element.canvasContext,n,i=this.masksProperties.length,a,o,s;for(r.beginPath(),n=0;n<i;n+=1)if(this.masksProperties[n].mode!=="n"){this.masksProperties[n].inv&&(r.moveTo(0,0),r.lineTo(this.element.globalData.compSize.w,0),r.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),r.lineTo(0,this.element.globalData.compSize.h),r.lineTo(0,0)),s=this.viewData[n].v,a=e.applyToPointArray(s.v[0][0],s.v[0][1],0),r.moveTo(a[0],a[1]);var l,c=s._length;for(l=1;l<c;l+=1)o=e.applyToTriplePoints(s.o[l-1],s.i[l],s.v[l]),r.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);o=e.applyToTriplePoints(s.o[l-1],s.i[0],s.v[0]),r.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5])}this.element.globalData.renderer.save(!0),r.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 r=this.globalData.canvasContext,n=assetLoader.createCanvas(r.canvas.width,r.canvas.height);this.buffers.push(n);var i=assetLoader.createCanvas(r.canvas.width,r.canvas.height);this.buffers.push(i),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 r=this.globalData;if(r.blendMode!==this.data.bm){r.blendMode=this.data.bm;var n=getBlendMode(this.data.bm);r.canvasContext.globalCompositeOperation=n}},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(r){r.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 r=this.buffers[0],n=r.getContext("2d");this.clearCanvas(n),n.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 r=this.buffers[1],n=r.getContext("2d");this.clearCanvas(n),n.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 i=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(i.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var a=assetLoader.getLumaCanvas(this.canvasContext.canvas),o=a.getContext("2d");o.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(a,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(r,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(r){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!r)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var n=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(n),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(n),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(e,r,n,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var a=4;r.ty==="rc"?a=5:r.ty==="el"?a=6:r.ty==="sr"&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(e,r,a,e);var o,s=n.length,l;for(o=0;o<s;o+=1)n[o].closed||(l={transforms:i.addTransformSequence(n[o].transforms),trNodes:[]},this.styledShapes.push(l),n[o].elements.push(l))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,r,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,r,n)}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(e,r){var n={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(r),transforms:[],elements:[],closed:e.hd===!0},i={};if(e.ty==="fl"||e.ty==="st"?(i.c=PropertyFactory.getProp(this,e.c,1,255,this),i.c.k||(n.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(i.s=PropertyFactory.getProp(this,e.s,1,null,this),i.e=PropertyFactory.getProp(this,e.e,1,null,this),i.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,e.g,this)),i.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(n.lc=lineCapEnum[e.lc||2],n.lj=lineJoinEnum[e.lj||2],e.lj==1&&(n.ml=e.ml),i.w=PropertyFactory.getProp(this,e.w,0,null,this),i.w.k||(n.wi=i.w.v),e.d){var a=new DashProperty(this,e.d,"canvas",this);i.d=a,i.d.k||(n.da=i.d.dashArray,n.do=i.d.dashoffset[0])}}else n.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(n),i.style=n,i},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var r={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return r},CVShapeElement.prototype.createShapeElement=function(e){var r=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(r),this.addShapeToModifiers(r),r},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,r=this.itemsData.length;for(e=0;e<r;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),r=this.dynamicProperties.length,e=0;e<r;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var r,n=this.stylesList.length;for(r=0;r<n;r+=1)this.stylesList[r].closed||this.stylesList[r].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var r,n=e.length;for(r=0;r<n;r+=1)e[r].closed=!0},CVShapeElement.prototype.searchShapes=function(e,r,n,i,a){var o,s=e.length-1,l,c,u=[],h=[],b,f,y,d=[].concat(a);for(o=s;o>=0;o-=1){if(b=this.searchProcessedElement(e[o]),b?r[o]=n[b-1]:e[o]._shouldRender=i,e[o].ty==="fl"||e[o].ty==="st"||e[o].ty==="gf"||e[o].ty==="gs")b?r[o].style.closed=!1:r[o]=this.createStyleElement(e[o],d),u.push(r[o].style);else if(e[o].ty==="gr"){if(!b)r[o]=this.createGroupElement(e[o]);else for(c=r[o].it.length,l=0;l<c;l+=1)r[o].prevViewData[l]=r[o].it[l];this.searchShapes(e[o].it,r[o].it,r[o].prevViewData,i,d)}else e[o].ty==="tr"?(b||(y=this.createTransformElement(e[o]),r[o]=y),d.push(r[o]),this.addTransformToStyleList(r[o])):e[o].ty==="sh"||e[o].ty==="rc"||e[o].ty==="el"||e[o].ty==="sr"?b||(r[o]=this.createShapeElement(e[o])):e[o].ty==="tm"||e[o].ty==="rd"||e[o].ty==="pb"||e[o].ty==="zz"||e[o].ty==="op"?(b?(f=r[o],f.closed=!1):(f=ShapeModifiers.getModifier(e[o].ty),f.init(this,e[o]),r[o]=f,this.shapeModifiers.push(f)),h.push(f)):e[o].ty==="rp"&&(b?(f=r[o],f.closed=!0):(f=ShapeModifiers.getModifier(e[o].ty),r[o]=f,f.init(this,e,o,r),this.shapeModifiers.push(f),i=!1),h.push(f));this.addProcessedElement(e[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),s=h.length,o=0;o<s;o+=1)h[o].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(e,r){(e._opMdf||r.op._mdf||this._isFirstFrame)&&(r.opacity=e.opacity,r.opacity*=r.op.v,r._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,r=this.stylesList.length,n,i,a,o,s,l,c=this.globalData.renderer,u=this.globalData.canvasContext,h,b;for(e=0;e<r;e+=1)if(b=this.stylesList[e],h=b.type,!((h==="st"||h==="gs")&&b.wi===0||!b.data._shouldRender||b.coOp===0||this.globalData.currentGlobalAlpha===0)){for(c.save(),s=b.elements,h==="st"||h==="gs"?(c.ctxStrokeStyle(h==="st"?b.co:b.grd),c.ctxLineWidth(b.wi),c.ctxLineCap(b.lc),c.ctxLineJoin(b.lj),c.ctxMiterLimit(b.ml||0)):c.ctxFillStyle(h==="fl"?b.co:b.grd),c.ctxOpacity(b.coOp),h!=="st"&&h!=="gs"&&u.beginPath(),c.ctxTransform(b.preTransforms.finalTransform.props),i=s.length,n=0;n<i;n+=1){for((h==="st"||h==="gs")&&(u.beginPath(),b.da&&(u.setLineDash(b.da),u.lineDashOffset=b.do)),l=s[n].trNodes,o=l.length,a=0;a<o;a+=1)l[a].t==="m"?u.moveTo(l[a].p[0],l[a].p[1]):l[a].t==="c"?u.bezierCurveTo(l[a].pts[0],l[a].pts[1],l[a].pts[2],l[a].pts[3],l[a].pts[4],l[a].pts[5]):u.closePath();(h==="st"||h==="gs")&&(c.ctxStroke(),b.da&&u.setLineDash(this.dashResetter))}h!=="st"&&h!=="gs"&&this.globalData.renderer.ctxFill(b.r),c.restore()}},CVShapeElement.prototype.renderShape=function(e,r,n,i){var a,o=r.length-1,s;for(s=e,a=o;a>=0;a-=1)r[a].ty==="tr"?(s=n[a].transform,this.renderShapeTransform(e,s)):r[a].ty==="sh"||r[a].ty==="el"||r[a].ty==="rc"||r[a].ty==="sr"?this.renderPath(r[a],n[a]):r[a].ty==="fl"?this.renderFill(r[a],n[a],s):r[a].ty==="st"?this.renderStroke(r[a],n[a],s):r[a].ty==="gf"||r[a].ty==="gs"?this.renderGradientFill(r[a],n[a],s):r[a].ty==="gr"?this.renderShape(s,r[a].it,n[a].it):r[a].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,r){if(this._isFirstFrame||r._mdf||e.transforms._mdf){var n=e.trNodes,i=r.paths,a,o,s,l=i._length;n.length=0;var c=e.transforms.finalTransform;for(s=0;s<l;s+=1){var u=i.shapes[s];if(u&&u.v){for(o=u._length,a=1;a<o;a+=1)a===1&&n.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),n.push({t:"c",pts:c.applyToTriplePoints(u.o[a-1],u.i[a],u.v[a])});o===1&&n.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),u.c&&o&&(n.push({t:"c",pts:c.applyToTriplePoints(u.o[a-1],u.i[0],u.v[0])}),n.push({t:"z"}))}}e.trNodes=n}},CVShapeElement.prototype.renderPath=function(e,r){if(e.hd!==!0&&e._shouldRender){var n,i=r.styledShapes.length;for(n=0;n<i;n+=1)this.renderStyledShape(r.styledShapes[n],r.sh)}},CVShapeElement.prototype.renderFill=function(e,r,n){var i=r.style;(r.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")"),(r.o._mdf||n._opMdf||this._isFirstFrame)&&(i.coOp=r.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,r,n){var i=r.style,a;if(!i.grd||r.g._mdf||r.s._mdf||r.e._mdf||e.t!==1&&(r.h._mdf||r.a._mdf)){var o=this.globalData.canvasContext,s=r.s.v,l=r.e.v;if(e.t===1)a=o.createLinearGradient(s[0],s[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),u=Math.atan2(l[1]-s[1],l[0]-s[0]),h=r.h.v;h>=1?h=.99:h<=-1&&(h=-.99);var b=c*h,f=Math.cos(u+r.a.v)*b+s[0],y=Math.sin(u+r.a.v)*b+s[1];a=o.createRadialGradient(f,y,0,s[0],s[1],c)}var d,g=e.g.p,w=r.g.c,p=1;for(d=0;d<g;d+=1)r.g._hasOpacity&&r.g._collapsable&&(p=r.g.o[d*2+1]),a.addColorStop(w[d*4]/100,"rgba("+w[d*4+1]+","+w[d*4+2]+","+w[d*4+3]+","+p+")");i.grd=a}i.coOp=r.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(e,r,n){var i=r.style,a=r.d;a&&(a._mdf||this._isFirstFrame)&&(i.da=a.dashArray,i.do=a.dashoffset[0]),(r.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")"),(r.o._mdf||n._opMdf||this._isFirstFrame)&&(i.coOp=r.o.v*n.opacity),(r.w._mdf||this._isFirstFrame)&&(i.wi=r.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(e,r,n){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(e,r,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var r=!1;e.fc?(r=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=r;var n=!1;e.sc&&(n=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var i=this.globalData.fontManager.getFontByName(e.f),a,o,s=e.l,l=this.mHelper;this.stroke=n,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,o=e.finalText.length;var c,u,h,b,f,y,d,g,w,p,v=this.data.singleShape,m=e.tr*.001*e.finalSize,x=0,E=0,k=!0,_=0;for(a=0;a<o;a+=1){c=this.globalData.fontManager.getCharData(e.finalText[a],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),u=c&&c.data||{},l.reset(),v&&s[a].n&&(x=-m,E+=e.yOffset,E+=k?1:0,k=!1),f=u.shapes?u.shapes[0].it:[],d=f.length,l.scale(e.finalSize/100,e.finalSize/100),v&&this.applyTextPropertiesToMatrix(e,l,s[a].line,x,E),w=createSizedArray(d-1);var T=0;for(y=0;y<d;y+=1)if(f[y].ty==="sh"){for(b=f[y].ks.k.i.length,g=f[y].ks.k,p=[],h=1;h<b;h+=1)h===1&&p.push(l.applyToX(g.v[0][0],g.v[0][1],0),l.applyToY(g.v[0][0],g.v[0][1],0)),p.push(l.applyToX(g.o[h-1][0],g.o[h-1][1],0),l.applyToY(g.o[h-1][0],g.o[h-1][1],0),l.applyToX(g.i[h][0],g.i[h][1],0),l.applyToY(g.i[h][0],g.i[h][1],0),l.applyToX(g.v[h][0],g.v[h][1],0),l.applyToY(g.v[h][0],g.v[h][1],0));p.push(l.applyToX(g.o[h-1][0],g.o[h-1][1],0),l.applyToY(g.o[h-1][0],g.o[h-1][1],0),l.applyToX(g.i[0][0],g.i[0][1],0),l.applyToY(g.i[0][0],g.i[0][1],0),l.applyToX(g.v[0][0],g.v[0][1],0),l.applyToY(g.v[0][0],g.v[0][1],0)),w[T]=p,T+=1}v&&(x+=s[a].l,x+=m),this.textSpans[_]?this.textSpans[_].elem=w:this.textSpans[_]={elem:w},_+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.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 r,n,i,a,o,s,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;n=c.length;var u,h=null,b=null,f=null,y,d,g=this.globalData.renderer;for(r=0;r<n;r+=1)if(!c[r].n){if(u=l[r],u&&(g.save(),g.ctxTransform(u.p),g.ctxOpacity(u.o)),this.fill){for(u&&u.fc?h!==u.fc&&(g.ctxFillStyle(u.fc),h=u.fc):h!==this.values.fill&&(h=this.values.fill,g.ctxFillStyle(this.values.fill)),y=this.textSpans[r].elem,a=y.length,this.globalData.canvasContext.beginPath(),i=0;i<a;i+=1)for(d=y[i],s=d.length,this.globalData.canvasContext.moveTo(d[0],d[1]),o=2;o<s;o+=6)this.globalData.canvasContext.bezierCurveTo(d[o],d[o+1],d[o+2],d[o+3],d[o+4],d[o+5]);this.globalData.canvasContext.closePath(),g.ctxFill()}if(this.stroke){for(u&&u.sw?f!==u.sw&&(f=u.sw,g.ctxLineWidth(u.sw)):f!==this.values.sWidth&&(f=this.values.sWidth,g.ctxLineWidth(this.values.sWidth)),u&&u.sc?b!==u.sc&&(b=u.sc,g.ctxStrokeStyle(u.sc)):b!==this.values.stroke&&(b=this.values.stroke,g.ctxStrokeStyle(this.values.stroke)),y=this.textSpans[r].elem,a=y.length,this.globalData.canvasContext.beginPath(),i=0;i<a;i+=1)for(d=y[i],s=d.length,this.globalData.canvasContext.moveTo(d[0],d[1]),o=2;o<s;o+=6)this.globalData.canvasContext.bezierCurveTo(d[o],d[o+1],d[o+2],d[o+3],d[o+4],d[o+5]);this.globalData.canvasContext.closePath(),g.ctxStroke()}u&&this.globalData.renderer.restore()}};function CVImageElement(e,r,n){this.assetData=r.getAssetData(e.refId),this.img=r.imageLoader.getAsset(this.assetData),this.initElement(e,r,n)}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 e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var r=e.getContext("2d"),n=this.img.width,i=this.img.height,a=n/i,o=this.assetData.w/this.assetData.h,s,l,c=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>o&&c==="xMidYMid slice"||a<o&&c!=="xMidYMid slice"?(l=i,s=l*o):(s=n,l=s/o),r.drawImage(this.img,(n-s)/2,(i-l)/2,s,l,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(e,r,n){this.initElement(e,r,n)}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(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,r,n,i){this.canvasContext.fillRect(e,r,n,i)},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(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var r=this.animationItem.container.style;r.width="100%",r.height="100%";var n="0px 0px 0px";r.transformOrigin=n,r.mozTransformOrigin=n,r.webkitTransformOrigin=n,r["-webkit-transform"]=n,r.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=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,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(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,r){this.reset();var n,i;e?(n=e,i=r,this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(n=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(n=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=n*this.renderConfig.dpr,this.canvasContext.canvas.height=i*this.renderConfig.dpr);var a,o;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var s=this.renderConfig.preserveAspectRatio.split(" "),l=s[1]||"meet",c=s[0]||"xMidYMid",u=c.substr(0,4),h=c.substr(4);a=n/i,o=this.transformCanvas.w/this.transformCanvas.h,o>a&&l==="meet"||o<a&&l==="slice"?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)),u==="xMid"&&(o<a&&l==="meet"||o>a&&l==="slice")?this.transformCanvas.tx=(n-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:u==="xMax"&&(o<a&&l==="meet"||o>a&&l==="slice")?this.transformCanvas.tx=(n-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,h==="YMid"&&(o>a&&l==="meet"||o<a&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(n/this.transformCanvas.w))/2*this.renderConfig.dpr:h==="YMax"&&(o>a&&l==="meet"||o<a&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(n/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(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 e,r=this.layers?this.layers.length:0;for(e=r-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,r){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!r||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||r,this.globalData.projectInterface.currentFrame=e;var n,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var r=this.elements;if(!(r[e]||this.layers[e].ty===99)){var n=this.createItem(this.layers[e],this,this.globalData);r[e]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.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 e,r=15;for(e=0;e<r;e+=1){var n=new CanvasContext;this.stack[e]=n}this._length=r,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 e=this._length*2,r=0;for(r=this._length;r<e;r+=1)this.stack[r]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var r=this.stack[this.cArrPos],n=r.transform,i,a=this.cTr.props;for(i=0;i<16;i+=1)a[i]=n[i];if(e){this.nativeContext.restore();var o=this.stack[this.cArrPos+1];this.appliedFillStyle=o.fillStyle,this.appliedStrokeStyle=o.strokeStyle,this.appliedLineWidth=o.lineWidth,this.appliedLineCap=o.lineCap,this.appliedLineJoin=o.lineJoin,this.appliedMiterLimit=o.miterLimit}this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),(e||r.opacity!==-1&&this.currentOpacity!==r.opacity)&&(this.nativeContext.globalAlpha=r.opacity,this.currentOpacity=r.opacity),this.currentFillStyle=r.fillStyle,this.currentStrokeStyle=r.strokeStyle,this.currentLineWidth=r.lineWidth,this.currentLineCap=r.lineCap,this.currentLineJoin=r.lineJoin,this.currentMiterLimit=r.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var r=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var n=this.stack[this.cArrPos],i;for(i=0;i<16;i+=1)n.transform[i]=r[i];this.cArrPos+=1;var a=this.stack[this.cArrPos];a.opacity=n.opacity,a.fillStyle=n.fillStyle,a.strokeStyle=n.strokeStyle,a.lineWidth=n.lineWidth,a.lineCap=n.lineCap,a.lineJoin=n.lineJoin,a.miterLimit=n.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var r=this.cTr;this.transformMat.multiply(r),r.cloneFromProps(this.transformMat.props);var n=r.props;this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])},CVContextData.prototype.opacity=function(e){var r=this.stack[this.cArrPos].opacity;r*=e<0?0:e,this.stack[this.cArrPos].opacity!==r&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=r)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,r,n,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,r,n,i)},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(e,r,n){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,r,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,r.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip();var r,n=this.layers.length;for(r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()},CVCompElement.prototype.destroy=function(){var e,r=this.layers.length;for(e=r-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function CanvasRenderer(e,r){this.animationItem=e,this.renderConfig={clearCanvas:r&&r.clearCanvas!==void 0?r.clearCanvas:!0,context:r&&r.context||null,progressiveLoad:r&&r.progressiveLoad||!1,preserveAspectRatio:r&&r.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:r&&r.contentVisibility||"visible",className:r&&r.className||"",id:r&&r.id||"",runExpressions:!r||r.runExpressions===void 0||r.runExpressions},this.renderConfig.dpr=r&&r.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=r&&r.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(e){return new CVCompElement(e,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 r=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var n=this.finalTransform.mat.toCSS();r.transform=n,r.webkitTransform=n}this.finalTransform._opMdf&&(r.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(e,r,n){this.initElement(e,r,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(e=createTag("div"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,r,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,r,n),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 e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var r=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",r.w),e.setAttribute("height",r.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,r){var n,i=e.length;for(n=0;n<i;n+=1)r=e[n].mProps.v.applyToPointArray(r[0],r[1],0);return r},HShapeElement.prototype.calculateShapeBoundingBox=function(e,r){var n=e.sh.v,i=e.transformers,a,o=n._length,s,l,c,u;if(!(o<=1)){for(a=0;a<o-1;a+=1)s=this.getTransformedPoint(i,n.v[a]),l=this.getTransformedPoint(i,n.o[a]),c=this.getTransformedPoint(i,n.i[a+1]),u=this.getTransformedPoint(i,n.v[a+1]),this.checkBounds(s,l,c,u,r);n.c&&(s=this.getTransformedPoint(i,n.v[a]),l=this.getTransformedPoint(i,n.o[a]),c=this.getTransformedPoint(i,n.i[0]),u=this.getTransformedPoint(i,n.v[0]),this.checkBounds(s,l,c,u,r))}},HShapeElement.prototype.checkBounds=function(e,r,n,i,a){this.getBoundsOfCurve(e,r,n,i);var o=this.shapeBoundingBox;a.x=bmMin(o.left,a.x),a.xMax=bmMax(o.right,a.xMax),a.y=bmMin(o.top,a.y),a.yMax=bmMax(o.bottom,a.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(e,r,n,i){for(var a=[[e[0],i[0]],[e[1],i[1]]],o,s,l,c,u,h,b,f=0;f<2;++f)s=6*e[f]-12*r[f]+6*n[f],o=-3*e[f]+9*r[f]-9*n[f]+3*i[f],l=3*r[f]-3*e[f],s|=0,o|=0,l|=0,o===0&&s===0||(o===0?(c=-l/s,c>0&&c<1&&a[f].push(this.calculateF(c,e,r,n,i,f))):(u=s*s-4*l*o,u>=0&&(h=(-s+bmSqrt(u))/(2*o),h>0&&h<1&&a[f].push(this.calculateF(h,e,r,n,i,f)),b=(-s-bmSqrt(u))/(2*o),b>0&&b<1&&a[f].push(this.calculateF(b,e,r,n,i,f)))));this.shapeBoundingBox.left=bmMin.apply(null,a[0]),this.shapeBoundingBox.top=bmMin.apply(null,a[1]),this.shapeBoundingBox.right=bmMax.apply(null,a[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,a[1])},HShapeElement.prototype.calculateF=function(e,r,n,i,a,o){return bmPow(1-e,3)*r[o]+3*bmPow(1-e,2)*e*n[o]+3*(1-e)*bmPow(e,2)*i[o]+bmPow(e,3)*a[o]},HShapeElement.prototype.calculateBoundingBox=function(e,r){var n,i=e.length;for(n=0;n<i;n+=1)e[n]&&e[n].sh?this.calculateShapeBoundingBox(e[n],r):e[n]&&e[n].it?this.calculateBoundingBox(e[n].it,r):e[n]&&e[n].style&&e[n].w&&this.expandStrokeBoundingBox(e[n].w,r)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,r){var n=0;if(e.keyframes){for(var i=0;i<e.keyframes.length;i+=1){var a=e.keyframes[i].s;a>n&&(n=a)}n*=e.mult}else n=e.v*e.mult;r.x-=n,r.xMax+=n,r.y-=n,r.yMax+=n},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,r=999999;if(e.x=r,e.xMax=-r,e.y=r,e.yMax=-r,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var n=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),n=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),n=!0),n||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,a="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=a,i.webkitTransform=a}}};function HTextElement(e,r,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,r,n)}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 e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var r=this.innerElem.style,n=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";r.fill=n,r.color=n,e.sc&&(r.stroke=this.buildColor(e.sc),r.strokeWidth=e.sw+"px");var i=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(r.fontSize=e.finalSize+"px",r.lineHeight=e.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{r.fontFamily=i.fFamily;var a=e.fWeight,o=e.fStyle;r.fontStyle=o,r.fontWeight=a}var s,l,c=e.l;l=c.length;var u,h,b,f=this.mHelper,y,d="",g=0;for(s=0;s<l;s+=1){if(this.globalData.fontManager.chars?(this.textPaths[g]?u=this.textPaths[g]:(u=createNS("path"),u.setAttribute("stroke-linecap",lineCapEnum[1]),u.setAttribute("stroke-linejoin",lineJoinEnum[2]),u.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[g]?(h=this.textSpans[g],b=h.children[0]):(h=createTag("div"),h.style.lineHeight=0,b=createNS("svg"),b.appendChild(u),styleDiv(h)))):this.isMasked?u=this.textPaths[g]?this.textPaths[g]:createNS("text"):this.textSpans[g]?(h=this.textSpans[g],u=this.textPaths[g]):(h=createTag("span"),styleDiv(h),u=createTag("span"),styleDiv(u),h.appendChild(u)),this.globalData.fontManager.chars){var w=this.globalData.fontManager.getCharData(e.finalText[s],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),p;if(w?p=w.data:p=null,f.reset(),p&&p.shapes&&p.shapes.length&&(y=p.shapes[0].it,f.scale(e.finalSize/100,e.finalSize/100),d=this.createPathShape(f,y),u.setAttribute("d",d)),this.isMasked)this.innerElem.appendChild(u);else{if(this.innerElem.appendChild(h),p&&p.shapes){document.body.appendChild(b);var v=b.getBBox();b.setAttribute("width",v.width+2),b.setAttribute("height",v.height+2),b.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var m=b.style,x="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";m.transform=x,m.webkitTransform=x,c[s].yOffset=v.y-1}else b.setAttribute("width",1),b.setAttribute("height",1);h.appendChild(b)}}else if(u.textContent=c[s].val,u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(u);else{this.innerElem.appendChild(h);var E=u.style,k="translate3d(0,"+-e.finalSize/1.2+"px,0)";E.transform=k,E.webkitTransform=k}this.isMasked?this.textSpans[g]=u:this.textSpans[g]=h,this.textSpans[g].style.display="block",this.textPaths[g]=u,g+=1}for(;g<this.textSpans.length;)this.textSpans[g].style.display="none",g+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;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),e=this.svgElement.style;var r="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=r,e.webkitTransform=r}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var n,i,a=0,o=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;i=s.length;var l,c,u;for(n=0;n<i;n+=1)s[n].n?a+=1:(c=this.textSpans[n],u=this.textPaths[n],l=o[a],a+=1,l._mdf.m&&(this.isMasked?c.setAttribute("transform",l.m):(c.style.webkitTransform=l.m,c.style.transform=l.m)),c.style.opacity=l.o,l.sw&&l._mdf.sw&&u.setAttribute("stroke-width",l.sw),l.sc&&l._mdf.sc&&u.setAttribute("stroke",l.sc),l.fc&&l._mdf.fc&&(u.setAttribute("fill",l.fc),u.style.color=l.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var h=this.innerElem.getBBox();this.currentBBox.w!==h.width&&(this.currentBBox.w=h.width,this.svgElement.setAttribute("width",h.width)),this.currentBBox.h!==h.height&&(this.currentBBox.h=h.height,this.svgElement.setAttribute("height",h.height));var b=1;if(this.currentBBox.w!==h.width+b*2||this.currentBBox.h!==h.height+b*2||this.currentBBox.x!==h.x-b||this.currentBBox.y!==h.y-b){this.currentBBox.w=h.width+b*2,this.currentBBox.h=h.height+b*2,this.currentBBox.x=h.x-b,this.currentBBox.y=h.y-b,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var f="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=f,e.webkitTransform=f}}}};function HCameraElement(e,r,n){this.initFrame(),this.initBaseData(e,r,n),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,e.pe,0,0,this),e.ks.p.s?(this.px=i(this,e.ks.p.x,1,0,this),this.py=i(this,e.ks.p.y,1,0,this),this.pz=i(this,e.ks.p.z,1,0,this)):this.p=i(this,e.ks.p,1,0,this),e.ks.a&&(this.a=i(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var a,o=e.ks.or.k.length;for(a=0;a<o;a+=1)e.ks.or.k[a].to=null,e.ks.or.k[a].ti=null}this.or=i(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,e.ks.rx,0,degToRads,this),this.ry=i(this,e.ks.ry,0,degToRads,this),this.rz=i(this,e.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 e,r=this.comp.threeDElements.length,n,i,a;for(e=0;e<r;e+=1)if(n=this.comp.threeDElements[e],n.type==="3d"){i=n.perspectiveElem.style,a=n.container.style;var o=this.pe.v+"px",s="0px 0px 0px",l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=o,i.webkitPerspective=o,a.transformOrigin=s,a.mozTransformOrigin=s,a.webkitTransformOrigin=s,i.transform=l,i.webkitTransform=l}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,r,n;if(this.hierarchy)for(n=this.hierarchy.length,r=0;r<n;r+=1)e=this.hierarchy[r].finalTransform.mProp._mdf||e;if(e||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(n=this.hierarchy.length-1,r=n;r>=0;r-=1){var i=this.hierarchy[r].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.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 a;this.p?a=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:a=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var o=Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2)+Math.pow(a[2],2)),s=[a[0]/o,a[1]/o,a[2]/o],l=Math.sqrt(s[2]*s[2]+s[0]*s[0]),c=Math.atan2(s[1],l),u=Math.atan2(s[0],-s[2]);this.mat.rotateY(u).rotateX(-c)}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 h=!this._prevMat.equals(this.mat);if((h||this.pe._mdf)&&this.comp.threeDElements){n=this.comp.threeDElements.length;var b,f,y;for(r=0;r<n;r+=1)if(b=this.comp.threeDElements[r],b.type==="3d"){if(h){var d=this.mat.toCSS();y=b.container.style,y.transform=d,y.webkitTransform=d}this.pe._mdf&&(f=b.perspectiveElem.style,f.perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,r,n){this.assetData=r.getAssetData(e.refId),this.initElement(e,r,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),r=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",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(r),r.crossOrigin="anonymous",r.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,r){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:r&&r.className||"",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(r&&r.hideOnTransparent===!1),filterSize:{width:r&&r.filterSize&&r.filterSize.width||"400%",height:r&&r.filterSize&&r.filterSize.height||"400%",x:r&&r.filterSize&&r.filterSize.x||"-100%",y:r&&r.filterSize&&r.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 e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,r){var n=e.getBaseElement();if(n){var i=this.layers[r];if(!i.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(n,r);else{for(var a=0,o,s,l;a<r;)this.elements[a]&&this.elements[a]!==!0&&this.elements[a].getBaseElement&&(s=this.elements[a],l=this.layers[a].ddd?this.getThreeDContainerByPos(a):s.getBaseElement(),o=l||o),a+=1;o?(!i.ddd||!this.supports3d)&&this.layerElement.insertBefore(n,o):(!i.ddd||!this.supports3d)&&this.layerElement.appendChild(n)}else this.addTo3dContainer(n,r)}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var r=0,n=this.threeDElements.length;r<n;){if(this.threeDElements[r].startPos<=e&&this.threeDElements[r].endPos>=e)return this.threeDElements[r].perspectiveElem;r+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,r){var n=createTag("div"),i,a;styleDiv(n);var o=createTag("div");if(styleDiv(o),r==="3d"){i=n.style,i.width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var s="50% 50%";i.webkitTransformOrigin=s,i.mozTransformOrigin=s,i.transformOrigin=s,a=o.style;var l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";a.transform=l,a.webkitTransform=l}n.appendChild(o);var c={container:o,perspectiveElem:n,startPos:e,endPos:e,type:r};return this.threeDElements.push(c),c},HybridRendererBase.prototype.build3dContainers=function(){var e,r=this.layers.length,n,i="";for(e=0;e<r;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(i!=="3d"&&(i="3d",n=this.createThreeDContainer(e,"3d")),n.endPos=Math.max(n.endPos,e)):(i!=="2d"&&(i="2d",n=this.createThreeDContainer(e,"2d")),n.endPos=Math.max(n.endPos,e));for(r=this.threeDElements.length,e=r-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,r){for(var n=0,i=this.threeDElements.length;n<i;){if(r<=this.threeDElements[n].endPos){for(var a=this.threeDElements[n].startPos,o;a<r;)this.elements[a]&&this.elements[a].getBaseElement&&(o=this.elements[a].getBaseElement()),a+=1;o?this.threeDElements[n].container.insertBefore(e,o):this.threeDElements[n].container.appendChild(e);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(e){var r=createTag("div"),n=this.animationItem.wrapper,i=r.style;i.width=e.w+"px",i.height=e.h+"px",this.resizerElem=r,styleDiv(r),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&r.setAttribute("class",this.renderConfig.className),n.appendChild(r),i.overflow="hidden";var a=createNS("svg");a.setAttribute("width","1"),a.setAttribute("height","1"),styleDiv(a),this.resizerElem.appendChild(a);var o=createNS("defs");a.appendChild(o),this.data=e,this.setupGlobalData(e,a),this.globalData.defs=o,this.layers=e.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 e,r=this.layers?this.layers.length:0;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e=this.animationItem.wrapper.offsetWidth,r=this.animationItem.wrapper.offsetHeight,n=e/r,i=this.globalData.compSize.w/this.globalData.compSize.h,a,o,s,l;i>n?(a=e/this.globalData.compSize.w,o=e/this.globalData.compSize.w,s=0,l=(r-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(a=r/this.globalData.compSize.h,o=r/this.globalData.compSize.h,s=(e-this.globalData.compSize.w*(r/this.globalData.compSize.h))/2,l=0);var c=this.resizerElem.style;c.webkitTransform="matrix3d("+a+",0,0,0,0,"+o+",0,0,0,0,1,0,"+s+","+l+",0,1)",c.transform=c.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 e=this.globalData.compSize.w,r=this.globalData.compSize.h,n,i=this.threeDElements.length;for(n=0;n<i;n+=1){var a=this.threeDElements[n].perspectiveElem.style;a.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(r,2))+"px",a.perspective=a.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var r,n=e.length,i=createTag("div");for(r=0;r<n;r+=1)if(e[r].xt){var a=this.createComp(e[r],i,this.globalData.comp,null);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}};function HCompElement(e,r,n){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,r,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,r.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(e,r){for(var n=0,i;n<r;)this.elements[n]&&this.elements[n].getBaseElement&&(i=this.elements[n].getBaseElement()),n+=1;i?this.layerElement.insertBefore(e,i):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,r){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:r&&r.className||"",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(r&&r.hideOnTransparent===!1),filterSize:{width:r&&r.filterSize&&r.filterSize.width||"400%",height:r&&r.filterSize&&r.filterSize.height||"400%",x:r&&r.filterSize&&r.filterSize.x||"-100%",y:r&&r.filterSize&&r.filterSize.y||"-100%"},runExpressions:!r||r.runExpressions===void 0||r.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(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(){return function(e){function r(n){for(var i=0,a=e.layers.length;i<a;){if(e.layers[i].nm===n||e.layers[i].ind===n)return e.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(r,"_name",{value:e.data.nm}),r.layer=r,r.pixelAspect=1,r.height=e.data.h||e.globalData.compSize.h,r.width=e.data.w||e.globalData.compSize.w,r.pixelAspect=1,r.frameDuration=1/e.globalData.frameRate,r.displayStartTime=0,r.numLayers=e.layers.length,r}}();function _typeof$2(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(n){return typeof n}:_typeof$2=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$2(e)}function seedRandom(e,r){var n=this,i=256,a=6,o=52,s="random",l=r.pow(i,a),c=r.pow(2,o),u=c*2,h=i-1,b;function f(m,x,E){var k=[];x=x===!0?{entropy:!0}:x||{};var _=w(g(x.entropy?[m,v(e)]:m===null?p():m,3),k),T=new y(k),B=function(){for(var F=T.g(a),O=l,D=0;F<c;)F=(F+D)*i,O*=i,D=T.g(1);for(;F>=u;)F/=2,O/=2,D>>>=1;return(F+D)/O};return B.int32=function(){return T.g(4)|0},B.quick=function(){return T.g(4)/4294967296},B.double=B,w(v(T.S),e),(x.pass||E||function(M,F,O,D){return D&&(D.S&&d(D,T),M.state=function(){return d(T,{})}),O?(r[s]=M,F):M})(B,_,"global"in x?x.global:this==r,x.state)}r["seed"+s]=f;function y(m){var x,E=m.length,k=this,_=0,T=k.i=k.j=0,B=k.S=[];for(E||(m=[E++]);_<i;)B[_]=_++;for(_=0;_<i;_++)B[_]=B[T=h&T+m[_%E]+(x=B[_])],B[T]=x;k.g=function(M){for(var F,O=0,D=k.i,N=k.j,L=k.S;M--;)F=L[D=h&D+1],O=O*i+L[h&(L[D]=L[N=h&N+F])+(L[N]=F)];return k.i=D,k.j=N,O}}function d(m,x){return x.i=m.i,x.j=m.j,x.S=m.S.slice(),x}function g(m,x){var E=[],k=_typeof$2(m),_;if(x&&k=="object")for(_ in m)try{E.push(g(m[_],x-1))}catch{}return E.length?E:k=="string"?m:m+"\0"}function w(m,x){for(var E=m+"",k,_=0;_<E.length;)x[h&_]=h&(k^=x[h&_]*19)+E.charCodeAt(_++);return v(x)}function p(){try{var m=new Uint8Array(i);return(n.crypto||n.msCrypto).getRandomValues(m),v(m)}catch{var x=n.navigator,E=x&&x.plugins;return[+new Date,n,E,n.screen,v(e)]}}function v(m){return String.fromCharCode.apply(0,m)}w(r.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(n){return typeof n}:_typeof$1=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$1(e)}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(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,r){return e==="number"||r instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var r=_typeof$1(e);if(r==="number"||e instanceof Number||r==="boolean")return-e;if($bm_isInstanceOfArray(e)){var n,i=e.length,a=[];for(n=0;n<i;n+=1)a[n]=-e[n];return a}return e.propType?e.v:-e}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(e,r){var n=_typeof$1(e),i=_typeof$1(r);if(isNumerable(n,e)&&isNumerable(i,r)||n==="string"||i==="string")return e+r;if($bm_isInstanceOfArray(e)&&isNumerable(i,r))return e=e.slice(0),e[0]+=r,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(r))return r=r.slice(0),r[0]=e+r[0],r;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(r)){for(var a=0,o=e.length,s=r.length,l=[];a<o||a<s;)(typeof e[a]=="number"||e[a]instanceof Number)&&(typeof r[a]=="number"||r[a]instanceof Number)?l[a]=e[a]+r[a]:l[a]=r[a]===void 0?e[a]:e[a]||r[a],a+=1;return l}return 0}var add=sum;function sub(e,r){var n=_typeof$1(e),i=_typeof$1(r);if(isNumerable(n,e)&&isNumerable(i,r))return n==="string"&&(e=parseInt(e,10)),i==="string"&&(r=parseInt(r,10)),e-r;if($bm_isInstanceOfArray(e)&&isNumerable(i,r))return e=e.slice(0),e[0]-=r,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(r))return r=r.slice(0),r[0]=e-r[0],r;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(r)){for(var a=0,o=e.length,s=r.length,l=[];a<o||a<s;)(typeof e[a]=="number"||e[a]instanceof Number)&&(typeof r[a]=="number"||r[a]instanceof Number)?l[a]=e[a]-r[a]:l[a]=r[a]===void 0?e[a]:e[a]||r[a],a+=1;return l}return 0}function mul(e,r){var n=_typeof$1(e),i=_typeof$1(r),a;if(isNumerable(n,e)&&isNumerable(i,r))return e*r;var o,s;if($bm_isInstanceOfArray(e)&&isNumerable(i,r)){for(s=e.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e[o]*r;return a}if(isNumerable(n,e)&&$bm_isInstanceOfArray(r)){for(s=r.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e*r[o];return a}return 0}function div(e,r){var n=_typeof$1(e),i=_typeof$1(r),a;if(isNumerable(n,e)&&isNumerable(i,r))return e/r;var o,s;if($bm_isInstanceOfArray(e)&&isNumerable(i,r)){for(s=e.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e[o]/r;return a}if(isNumerable(n,e)&&$bm_isInstanceOfArray(r)){for(s=r.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e/r[o];return a}return 0}function mod(e,r){return typeof e=="string"&&(e=parseInt(e,10)),typeof r=="string"&&(r=parseInt(r,10)),e%r}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,r,n){if(r>n){var i=n;n=r,r=i}return Math.min(Math.max(e,r),n)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,r){if(typeof e=="number"||e instanceof Number)return r=r||0,Math.abs(e-r);r||(r=helperLengthArray);var n,i=Math.min(e.length,r.length),a=0;for(n=0;n<i;n+=1)a+=Math.pow(r[n]-e[n],2);return Math.sqrt(a)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var r=e[0],n=e[1],i=e[2],a=Math.max(r,n,i),o=Math.min(r,n,i),s,l,c=(a+o)/2;if(a===o)s=0,l=0;else{var u=a-o;switch(l=c>.5?u/(2-a-o):u/(a+o),a){case r:s=(n-i)/u+(n<i?6:0);break;case n:s=(i-r)/u+2;break;case i:s=(r-n)/u+4;break}s/=6}return[s,l,c,e[3]]}function hue2rgb(e,r,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(r-e)*6*n:n<1/2?r:n<2/3?e+(r-e)*(2/3-n)*6:e}function hslToRgb(e){var r=e[0],n=e[1],i=e[2],a,o,s;if(n===0)a=i,s=i,o=i;else{var l=i<.5?i*(1+n):i+n-i*n,c=2*i-l;a=hue2rgb(c,l,r+1/3),o=hue2rgb(c,l,r),s=hue2rgb(c,l,r-1/3)}return[a,o,s,e[3]]}function linear(e,r,n,i,a){if((i===void 0||a===void 0)&&(i=r,a=n,r=0,n=1),n<r){var o=n;n=r,r=o}if(e<=r)return i;if(e>=n)return a;var s=n===r?0:(e-r)/(n-r);if(!i.length)return i+(a-i)*s;var l,c=i.length,u=createTypedArray("float32",c);for(l=0;l<c;l+=1)u[l]=i[l]+(a[l]-i[l])*s;return u}function random(e,r){if(r===void 0&&(e===void 0?(e=0,r=1):(r=e,e=void 0)),r.length){var n,i=r.length;e||(e=createTypedArray("float32",i));var a=createTypedArray("float32",i),o=BMMath.random();for(n=0;n<i;n+=1)a[n]=e[n]+o*(r[n]-e[n]);return a}e===void 0&&(e=0);var s=BMMath.random();return e+s*(r-e)}function createPath(e,r,n,i){var a,o=e.length,s=shapePool.newElement();s.setPathData(!!i,o);var l=[0,0],c,u;for(a=0;a<o;a+=1)c=r&&r[a]?r[a]:l,u=n&&n[a]?n[a]:l,s.setTripleAt(e[a][0],e[a][1],u[0]+e[a][0],u[1]+e[a][1],c[0]+e[a][0],c[1]+e[a][1],a,!0);return s}function initiateExpression(elem,data,property){function noOp(e){return e}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 e(r,n){var i,a,o=this.pv.length?this.pv.length:1,s=createTypedArray("float32",o);r=5;var l=Math.floor(time*r);for(i=0,a=0;i<l;){for(a=0;a<o;a+=1)s[a]+=-n+n*2*BMMath.random();i+=1}var c=time*r,u=c-Math.floor(c),h=createTypedArray("float32",o);if(o>1){for(a=0;a<o;a+=1)h[a]=this.pv[a]+s[a]+(-n+n*2*BMMath.random())*u;return h}return this.pv+s[0]+(-n+n*2*BMMath.random())*u}).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(e,r){return loopIn(e,r,!0)}function loopOutDuration(e,r){return loopOut(e,r,!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(e,r){var n=[r[0]-e[0],r[1]-e[1],r[2]-e[2]],i=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads,a=-Math.atan2(n[1],n[2])/degToRads;return[a,i,0]}function easeOut(e,r,n,i,a){return applyEase(easeOutBez,e,r,n,i,a)}function easeIn(e,r,n,i,a){return applyEase(easeInBez,e,r,n,i,a)}function ease(e,r,n,i,a){return applyEase(easeInOutBez,e,r,n,i,a)}function applyEase(e,r,n,i,a,o){a===void 0?(a=n,o=i):r=(r-n)/(i-n),r>1?r=1:r<0&&(r=0);var s=e(r);if($bm_isInstanceOfArray(a)){var l,c=a.length,u=createTypedArray("float32",c);for(l=0;l<c;l+=1)u[l]=(o[l]-a[l])*s+a[l];return u}return(o-a)*s+a}function nearestKey(e){var r,n=data.k.length,i,a;if(!data.k.length||typeof data.k[0]=="number")i=0,a=0;else if(i=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)i=1,a=data.k[0].t;else{for(r=0;r<n-1;r+=1)if(e===data.k[r].t){i=r+1,a=data.k[r].t;break}else if(e>data.k[r].t&&e<data.k[r+1].t){e-data.k[r].t>data.k[r+1].t-e?(i=r+2,a=data.k[r+1].t):(i=r+1,a=data.k[r].t);break}i===-1&&(i=r+1,a=data.k[r].t)}var o={};return o.index=i,o.time=a/elem.comp.globalData.frameRate,o}function key(e){var r,n,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,r={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var a=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(i=a.length,n=0;n<i;n+=1)r[n]=a[n],r.value[n]=a[n];return r}function framesToTime(e,r){return r||(r=elem.comp.globalData.frameRate),e/r}function timeToFrames(e,r){return!e&&e!==0&&(e=time),r||(r=elem.comp.globalData.frameRate),e*r}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,r){return typeof value=="string"?r===void 0?value.substring(e):value.substring(e,r):""}function substr(e,r){return typeof value=="string"?r===void 0?value.substr(e):value.substr(e,r):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,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(e){return value=e,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 e={};e.initExpressions=r,e.resetFrame=ExpressionManager.resetFrame;function r(n){var i=0,a=[];function o(){i+=1}function s(){i-=1,i===0&&c()}function l(u){a.indexOf(u)===-1&&a.push(u)}function c(){var u,h=a.length;for(u=0;u<h;u+=1)a[u].release();a.length=0}n.renderer.compInterface=CompExpressionInterface(n.renderer),n.renderer.globalData.projectInterface.registerComposition(n.renderer),n.renderer.globalData.pushExpression=o,n.renderer.globalData.popExpression=s,n.renderer.globalData.registerExpressionProperty=l}return e}(),MaskManagerInterface=function(){function e(n,i){this._mask=n,this._data=i}Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var r=function(i){var a=createSizedArray(i.viewData.length),o,s=i.viewData.length;for(o=0;o<s;o+=1)a[o]=new e(i.viewData[o],i.masksProperties[o]);var l=function(u){for(o=0;o<s;){if(i.masksProperties[o].nm===u)return a[o];o+=1}return null};return l};return r}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},r={pv:[0,0,0],v:[0,0,0],mult:1};function n(s,l,c){Object.defineProperty(s,"velocity",{get:function(){return l.getVelocityAtTime(l.comp.currentFrame)}}),s.numKeys=l.keyframes?l.keyframes.length:0,s.key=function(u){if(!s.numKeys)return 0;var h="";"s"in l.keyframes[u-1]?h=l.keyframes[u-1].s:"e"in l.keyframes[u-2]?h=l.keyframes[u-2].e:h=l.keyframes[u-2].s;var b=c==="unidimensional"?new Number(h):Object.assign({},h);return b.time=l.keyframes[u-1].t/l.elem.comp.globalData.frameRate,b.value=c==="unidimensional"?h[0]:h,b},s.valueAtTime=l.getValueAtTime,s.speedAtTime=l.getSpeedAtTime,s.velocityAtTime=l.getVelocityAtTime,s.propertyGroup=l.propertyGroup}function i(s){(!s||!("pv"in s))&&(s=e);var l=1/s.mult,c=s.pv*l,u=new Number(c);return u.value=c,n(u,s,"unidimensional"),function(){return s.k&&s.getValue(),c=s.v*l,u.value!==c&&(u=new Number(c),u.value=c,n(u,s,"unidimensional")),u}}function a(s){(!s||!("pv"in s))&&(s=r);var l=1/s.mult,c=s.data&&s.data.l||s.pv.length,u=createTypedArray("float32",c),h=createTypedArray("float32",c);return u.value=h,n(u,s,"multidimensional"),function(){s.k&&s.getValue();for(var b=0;b<c;b+=1)h[b]=s.v[b]*l,u[b]=h[b];return u}}function o(){return e}return function(s){return s?s.propType==="unidimensional"?i(s):a(s):o}}(),TransformExpressionInterface=function(){return function(e){function r(s){switch(s){case"scale":case"Scale":case"ADBE Scale":case 6:return r.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return r.rotation;case"ADBE Rotate X":return r.xRotation;case"ADBE Rotate Y":return r.yRotation;case"position":case"Position":case"ADBE Position":case 2:return r.position;case"ADBE Position_0":return r.xPosition;case"ADBE Position_1":return r.yPosition;case"ADBE Position_2":return r.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return r.anchorPoint;case"opacity":case"Opacity":case 11:return r.opacity;default:return null}}Object.defineProperty(r,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(r,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(r,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(r,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(r,"scale",{get:ExpressionPropertyInterface(e.s)});var n,i,a,o;return e.p?o=ExpressionPropertyInterface(e.p):(n=ExpressionPropertyInterface(e.px),i=ExpressionPropertyInterface(e.py),e.pz&&(a=ExpressionPropertyInterface(e.pz))),Object.defineProperty(r,"position",{get:function(){return e.p?o():[n(),i(),a?a():0]}}),Object.defineProperty(r,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(r,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(r,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(r,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(r,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(r,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(r,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(r,"orientation",{get:ExpressionPropertyInterface(e.or)}),r}}(),LayerExpressionInterface=function(){function e(u){var h=new Matrix;if(u!==void 0){var b=this._elem.finalTransform.mProp.getValueAtTime(u);b.clone(h)}else{var f=this._elem.finalTransform.mProp;f.applyToMatrix(h)}return h}function r(u,h){var b=this.getMatrix(h);return b.props[12]=0,b.props[13]=0,b.props[14]=0,this.applyPoint(b,u)}function n(u,h){var b=this.getMatrix(h);return this.applyPoint(b,u)}function i(u,h){var b=this.getMatrix(h);return b.props[12]=0,b.props[13]=0,b.props[14]=0,this.invertPoint(b,u)}function a(u,h){var b=this.getMatrix(h);return this.invertPoint(b,u)}function o(u,h){if(this._elem.hierarchy&&this._elem.hierarchy.length){var b,f=this._elem.hierarchy.length;for(b=0;b<f;b+=1)this._elem.hierarchy[b].finalTransform.mProp.applyToMatrix(u)}return u.applyToPointArray(h[0],h[1],h[2]||0)}function s(u,h){if(this._elem.hierarchy&&this._elem.hierarchy.length){var b,f=this._elem.hierarchy.length;for(b=0;b<f;b+=1)this._elem.hierarchy[b].finalTransform.mProp.applyToMatrix(u)}return u.inversePoint(h)}function l(u){var h=new Matrix;if(h.reset(),this._elem.finalTransform.mProp.applyToMatrix(h),this._elem.hierarchy&&this._elem.hierarchy.length){var b,f=this._elem.hierarchy.length;for(b=0;b<f;b+=1)this._elem.hierarchy[b].finalTransform.mProp.applyToMatrix(h);return h.inversePoint(u)}return h.inversePoint(u)}function c(){return[1,1,1,1]}return function(u){var h;function b(g){y.mask=new MaskManagerInterface(g,u)}function f(g){y.effect=g}function y(g){switch(g){case"ADBE Root Vectors Group":case"Contents":case 2:return y.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return h;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return y.effect;case"ADBE Text Properties":return y.textInterface;default:return null}}y.getMatrix=e,y.invertPoint=s,y.applyPoint=o,y.toWorld=n,y.toWorldVec=r,y.fromWorld=a,y.fromWorldVec=i,y.toComp=n,y.fromComp=l,y.sampleImage=c,y.sourceRectAtTime=u.sourceRectAtTime.bind(u),y._elem=u,h=TransformExpressionInterface(u.finalTransform.mProp);var d=getDescriptor(h,"anchorPoint");return Object.defineProperties(y,{hasParent:{get:function(){return u.hierarchy.length}},parent:{get:function(){return u.hierarchy[0].layerInterface}},rotation:getDescriptor(h,"rotation"),scale:getDescriptor(h,"scale"),position:getDescriptor(h,"position"),opacity:getDescriptor(h,"opacity"),anchorPoint:d,anchor_point:d,transform:{get:function(){return h}},active:{get:function(){return u.isInRange}}}),y.startTime=u.data.st,y.index=u.data.ind,y.source=u.data.refId,y.height=u.data.ty===0?u.data.h:100,y.width=u.data.ty===0?u.data.w:100,y.inPoint=u.data.ip/u.comp.globalData.frameRate,y.outPoint=u.data.op/u.comp.globalData.frameRate,y._name=u.data.nm,y.registerMaskInterface=b,y.registerEffectsInterface=f,y}}(),propertyGroupFactory=function(){return function(e,r){return function(n){return n=n===void 0?1:n,n<=0?e:r(n-1)}}}(),PropertyInterface=function(){return function(e,r){var n={_name:e};function i(a){return a=a===void 0?1:a,a<=0?n:r(a-1)}return i}}(),EffectsExpressionInterface=function(){var e={createEffectsInterface:r};function r(a,o){if(a.effectsManager){var s=[],l=a.data.ef,c,u=a.effectsManager.effectElements.length;for(c=0;c<u;c+=1)s.push(n(l[c],a.effectsManager.effectElements[c],o,a));var h=a.data.ef||[],b=function(y){for(c=0,u=h.length;c<u;){if(y===h[c].nm||y===h[c].mn||y===h[c].ix)return s[c];c+=1}return null};return Object.defineProperty(b,"numProperties",{get:function(){return h.length}}),b}return null}function n(a,o,s,l){function c(y){for(var d=a.ef,g=0,w=d.length;g<w;){if(y===d[g].nm||y===d[g].mn||y===d[g].ix)return d[g].ty===5?h[g]:h[g]();g+=1}throw new Error}var u=propertyGroupFactory(c,s),h=[],b,f=a.ef.length;for(b=0;b<f;b+=1)a.ef[b].ty===5?h.push(n(a.ef[b],o.effectElements[b],o.effectElements[b].propertyGroup,l)):h.push(i(o.effectElements[b],a.ef[b].ty,l,u));return a.mn==="ADBE Color Control"&&Object.defineProperty(c,"color",{get:function(){return h[0]()}}),Object.defineProperties(c,{numProperties:{get:function(){return a.np}},_name:{value:a.nm},propertyGroup:{value:u}}),c.enabled=a.en!==0,c.active=c.enabled,c}function i(a,o,s,l){var c=ExpressionPropertyInterface(a.p);function u(){return o===10?s.comp.compInterface(a.p.v):c()}return a.p.setGroupProperty&&a.p.setGroupProperty(PropertyInterface("",l)),u}return e}(),ShapePathInterface=function(){return function(r,n,i){var a=n.sh;function o(l){return l==="Shape"||l==="shape"||l==="Path"||l==="path"||l==="ADBE Vector Shape"||l===2?o.path:null}var s=propertyGroupFactory(o,i);return a.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(o,{path:{get:function(){return a.k&&a.getValue(),a}},shape:{get:function(){return a.k&&a.getValue(),a}},_name:{value:r.nm},ix:{value:r.ix},propertyIndex:{value:r.ix},mn:{value:r.mn},propertyGroup:{value:i}}),o}}(),ShapeExpressionInterface=function(){function e(d,g,w){var p=[],v,m=d?d.length:0;for(v=0;v<m;v+=1)d[v].ty==="gr"?p.push(n(d[v],g[v],w)):d[v].ty==="fl"?p.push(i(d[v],g[v],w)):d[v].ty==="st"?p.push(s(d[v],g[v],w)):d[v].ty==="tm"?p.push(l(d[v],g[v],w)):d[v].ty==="tr"||(d[v].ty==="el"?p.push(u(d[v],g[v],w)):d[v].ty==="sr"?p.push(h(d[v],g[v],w)):d[v].ty==="sh"?p.push(ShapePathInterface(d[v],g[v],w)):d[v].ty==="rc"?p.push(b(d[v],g[v],w)):d[v].ty==="rd"?p.push(f(d[v],g[v],w)):d[v].ty==="rp"?p.push(y(d[v],g[v],w)):d[v].ty==="gf"?p.push(a(d[v],g[v],w)):p.push(o(d[v],g[v])));return p}function r(d,g,w){var p,v=function(E){for(var k=0,_=p.length;k<_;){if(p[k]._name===E||p[k].mn===E||p[k].propertyIndex===E||p[k].ix===E||p[k].ind===E)return p[k];k+=1}return typeof E=="number"?p[E-1]:null};v.propertyGroup=propertyGroupFactory(v,w),p=e(d.it,g.it,v.propertyGroup),v.numProperties=p.length;var m=c(d.it[d.it.length-1],g.it[g.it.length-1],v.propertyGroup);return v.transform=m,v.propertyIndex=d.cix,v._name=d.nm,v}function n(d,g,w){var p=function(E){switch(E){case"ADBE Vectors Group":case"Contents":case 2:return p.content;default:return p.transform}};p.propertyGroup=propertyGroupFactory(p,w);var v=r(d,g,p.propertyGroup),m=c(d.it[d.it.length-1],g.it[g.it.length-1],p.propertyGroup);return p.content=v,p.transform=m,Object.defineProperty(p,"_name",{get:function(){return d.nm}}),p.numProperties=d.np,p.propertyIndex=d.ix,p.nm=d.nm,p.mn=d.mn,p}function i(d,g,w){function p(v){return v==="Color"||v==="color"?p.color:v==="Opacity"||v==="opacity"?p.opacity:null}return Object.defineProperties(p,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},_name:{value:d.nm},mn:{value:d.mn}}),g.c.setGroupProperty(PropertyInterface("Color",w)),g.o.setGroupProperty(PropertyInterface("Opacity",w)),p}function a(d,g,w){function p(v){return v==="Start Point"||v==="start point"?p.startPoint:v==="End Point"||v==="end point"?p.endPoint:v==="Opacity"||v==="opacity"?p.opacity:null}return Object.defineProperties(p,{startPoint:{get:ExpressionPropertyInterface(g.s)},endPoint:{get:ExpressionPropertyInterface(g.e)},opacity:{get:ExpressionPropertyInterface(g.o)},type:{get:function(){return"a"}},_name:{value:d.nm},mn:{value:d.mn}}),g.s.setGroupProperty(PropertyInterface("Start Point",w)),g.e.setGroupProperty(PropertyInterface("End Point",w)),g.o.setGroupProperty(PropertyInterface("Opacity",w)),p}function o(){function d(){return null}return d}function s(d,g,w){var p=propertyGroupFactory(_,w),v=propertyGroupFactory(k,p);function m(T){Object.defineProperty(k,d.d[T].nm,{get:ExpressionPropertyInterface(g.d.dataProps[T].p)})}var x,E=d.d?d.d.length:0,k={};for(x=0;x<E;x+=1)m(x),g.d.dataProps[x].p.setGroupProperty(v);function _(T){return T==="Color"||T==="color"?_.color:T==="Opacity"||T==="opacity"?_.opacity:T==="Stroke Width"||T==="stroke width"?_.strokeWidth:null}return Object.defineProperties(_,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},strokeWidth:{get:ExpressionPropertyInterface(g.w)},dash:{get:function(){return k}},_name:{value:d.nm},mn:{value:d.mn}}),g.c.setGroupProperty(PropertyInterface("Color",p)),g.o.setGroupProperty(PropertyInterface("Opacity",p)),g.w.setGroupProperty(PropertyInterface("Stroke Width",p)),_}function l(d,g,w){function p(m){return m===d.e.ix||m==="End"||m==="end"?p.end:m===d.s.ix?p.start:m===d.o.ix?p.offset:null}var v=propertyGroupFactory(p,w);return p.propertyIndex=d.ix,g.s.setGroupProperty(PropertyInterface("Start",v)),g.e.setGroupProperty(PropertyInterface("End",v)),g.o.setGroupProperty(PropertyInterface("Offset",v)),p.propertyIndex=d.ix,p.propertyGroup=w,Object.defineProperties(p,{start:{get:ExpressionPropertyInterface(g.s)},end:{get:ExpressionPropertyInterface(g.e)},offset:{get:ExpressionPropertyInterface(g.o)},_name:{value:d.nm}}),p.mn=d.mn,p}function c(d,g,w){function p(m){return d.a.ix===m||m==="Anchor Point"?p.anchorPoint:d.o.ix===m||m==="Opacity"?p.opacity:d.p.ix===m||m==="Position"?p.position:d.r.ix===m||m==="Rotation"||m==="ADBE Vector Rotation"?p.rotation:d.s.ix===m||m==="Scale"?p.scale:d.sk&&d.sk.ix===m||m==="Skew"?p.skew:d.sa&&d.sa.ix===m||m==="Skew Axis"?p.skewAxis:null}var v=propertyGroupFactory(p,w);return g.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",v)),g.transform.mProps.p.setGroupProperty(PropertyInterface("Position",v)),g.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",v)),g.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",v)),g.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",v)),g.transform.mProps.sk&&(g.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",v)),g.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",v))),g.transform.op.setGroupProperty(PropertyInterface("Opacity",v)),Object.defineProperties(p,{opacity:{get:ExpressionPropertyInterface(g.transform.mProps.o)},position:{get:ExpressionPropertyInterface(g.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(g.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(g.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(g.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(g.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(g.transform.mProps.sa)},_name:{value:d.nm}}),p.ty="tr",p.mn=d.mn,p.propertyGroup=w,p}function u(d,g,w){function p(x){return d.p.ix===x?p.position:d.s.ix===x?p.size:null}var v=propertyGroupFactory(p,w);p.propertyIndex=d.ix;var m=g.sh.ty==="tm"?g.sh.prop:g.sh;return m.s.setGroupProperty(PropertyInterface("Size",v)),m.p.setGroupProperty(PropertyInterface("Position",v)),Object.defineProperties(p,{size:{get:ExpressionPropertyInterface(m.s)},position:{get:ExpressionPropertyInterface(m.p)},_name:{value:d.nm}}),p.mn=d.mn,p}function h(d,g,w){function p(x){return d.p.ix===x?p.position:d.r.ix===x?p.rotation:d.pt.ix===x?p.points:d.or.ix===x||x==="ADBE Vector Star Outer Radius"?p.outerRadius:d.os.ix===x?p.outerRoundness:d.ir&&(d.ir.ix===x||x==="ADBE Vector Star Inner Radius")?p.innerRadius:d.is&&d.is.ix===x?p.innerRoundness:null}var v=propertyGroupFactory(p,w),m=g.sh.ty==="tm"?g.sh.prop:g.sh;return p.propertyIndex=d.ix,m.or.setGroupProperty(PropertyInterface("Outer Radius",v)),m.os.setGroupProperty(PropertyInterface("Outer Roundness",v)),m.pt.setGroupProperty(PropertyInterface("Points",v)),m.p.setGroupProperty(PropertyInterface("Position",v)),m.r.setGroupProperty(PropertyInterface("Rotation",v)),d.ir&&(m.ir.setGroupProperty(PropertyInterface("Inner Radius",v)),m.is.setGroupProperty(PropertyInterface("Inner Roundness",v))),Object.defineProperties(p,{position:{get:ExpressionPropertyInterface(m.p)},rotation:{get:ExpressionPropertyInterface(m.r)},points:{get:ExpressionPropertyInterface(m.pt)},outerRadius:{get:ExpressionPropertyInterface(m.or)},outerRoundness:{get:ExpressionPropertyInterface(m.os)},innerRadius:{get:ExpressionPropertyInterface(m.ir)},innerRoundness:{get:ExpressionPropertyInterface(m.is)},_name:{value:d.nm}}),p.mn=d.mn,p}function b(d,g,w){function p(x){return d.p.ix===x?p.position:d.r.ix===x?p.roundness:d.s.ix===x||x==="Size"||x==="ADBE Vector Rect Size"?p.size:null}var v=propertyGroupFactory(p,w),m=g.sh.ty==="tm"?g.sh.prop:g.sh;return p.propertyIndex=d.ix,m.p.setGroupProperty(PropertyInterface("Position",v)),m.s.setGroupProperty(PropertyInterface("Size",v)),m.r.setGroupProperty(PropertyInterface("Rotation",v)),Object.defineProperties(p,{position:{get:ExpressionPropertyInterface(m.p)},roundness:{get:ExpressionPropertyInterface(m.r)},size:{get:ExpressionPropertyInterface(m.s)},_name:{value:d.nm}}),p.mn=d.mn,p}function f(d,g,w){function p(x){return d.r.ix===x||x==="Round Corners 1"?p.radius:null}var v=propertyGroupFactory(p,w),m=g;return p.propertyIndex=d.ix,m.rd.setGroupProperty(PropertyInterface("Radius",v)),Object.defineProperties(p,{radius:{get:ExpressionPropertyInterface(m.rd)},_name:{value:d.nm}}),p.mn=d.mn,p}function y(d,g,w){function p(x){return d.c.ix===x||x==="Copies"?p.copies:d.o.ix===x||x==="Offset"?p.offset:null}var v=propertyGroupFactory(p,w),m=g;return p.propertyIndex=d.ix,m.c.setGroupProperty(PropertyInterface("Copies",v)),m.o.setGroupProperty(PropertyInterface("Offset",v)),Object.defineProperties(p,{copies:{get:ExpressionPropertyInterface(m.c)},offset:{get:ExpressionPropertyInterface(m.o)},_name:{value:d.nm}}),p.mn=d.mn,p}return function(d,g,w){var p;function v(x){if(typeof x=="number")return x=x===void 0?1:x,x===0?w:p[x-1];for(var E=0,k=p.length;E<k;){if(p[E]._name===x)return p[E];E+=1}return null}function m(){return w}return v.propertyGroup=propertyGroupFactory(v,m),p=e(d,g,v.propertyGroup),v.numProperties=p.length,v._name="Contents",v}}(),TextExpressionInterface=function(){return function(e){var r;function n(i){switch(i){case"ADBE Text Document":return n.sourceText;default:return null}}return Object.defineProperty(n,"sourceText",{get:function(){e.textProperty.getValue();var a=e.textProperty.currentData.t;return(!r||a!==r.value)&&(r=new String(a),r.value=a||new String(a),Object.defineProperty(r,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),r}}),n}}();function _typeof(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(n){return typeof n}:_typeof=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof(e)}var FootageInterface=function(){var e=function(i){var a="",o=i.getFootageData();function s(){return a="",o=i.getFootageData(),l}function l(c){if(o[c])return a=c,o=o[c],_typeof(o)==="object"?l:o;var u=c.indexOf(a);if(u!==-1){var h=parseInt(c.substr(u+a.length),10);return o=o[h],_typeof(o)==="object"?l:o}return""}return s},r=function(i){function a(o){return o==="Outline"?a.outlineInterface():null}return a._name="Outline",a.outlineInterface=e(i),a};return function(n){function i(a){return a==="Data"?i.dataInterface:null}return i._name="Data",i.dataInterface=r(n),i}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=function(){function e(s,l,c){l.x&&(c.k=!0,c.x=!0,c.initiateExpression=ExpressionManager.initiateExpression,c.effectsSequence.push(c.initiateExpression(s,l,c).bind(c)))}function r(s){return s*=this.elem.globalData.frameRate,s-=this.offsetTime,s!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<s?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(s,this._cachingAtTime),this._cachingAtTime.lastFrame=s),this._cachingAtTime.value}function n(s){var l=-.01,c=this.getValueAtTime(s),u=this.getValueAtTime(s+l),h=0;if(c.length){var b;for(b=0;b<c.length;b+=1)h+=Math.pow(u[b]-c[b],2);h=Math.sqrt(h)*100}else h=0;return h}function i(s){if(this.vel!==void 0)return this.vel;var l=-.001,c=this.getValueAtTime(s),u=this.getValueAtTime(s+l),h;if(c.length){h=createTypedArray("float32",c.length);var b;for(b=0;b<c.length;b+=1)h[b]=(u[b]-c[b])/l}else h=(u-c)/l;return h}function a(){return this.pv}function o(s){this.propertyGroup=s}return{searchExpressions:e,getSpeedAtTime:n,getVelocityAtTime:i,getValueAtTime:r,getStaticValueAtTime:a,setGroupProperty:o}}();function addPropertyDecorator(){function e(f,y,d){if(!this.k||!this.keyframes)return this.pv;f=f?f.toLowerCase():"";var g=this.comp.renderedFrame,w=this.keyframes,p=w[w.length-1].t;if(g<=p)return this.pv;var v,m;d?(y?v=Math.abs(p-this.elem.comp.globalData.frameRate*y):v=Math.max(0,p-this.elem.data.ip),m=p-v):((!y||y>w.length-1)&&(y=w.length-1),m=w[w.length-1-y].t,v=p-m);var x,E,k;if(f==="pingpong"){var _=Math.floor((g-m)/v);if(_%2!==0)return this.getValueAtTime((v-(g-m)%v+m)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var T=this.getValueAtTime(m/this.comp.globalData.frameRate,0),B=this.getValueAtTime(p/this.comp.globalData.frameRate,0),M=this.getValueAtTime(((g-m)%v+m)/this.comp.globalData.frameRate,0),F=Math.floor((g-m)/v);if(this.pv.length){for(k=new Array(T.length),E=k.length,x=0;x<E;x+=1)k[x]=(B[x]-T[x])*F+M[x];return k}return(B-T)*F+M}else if(f==="continue"){var O=this.getValueAtTime(p/this.comp.globalData.frameRate,0),D=this.getValueAtTime((p-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(k=new Array(O.length),E=k.length,x=0;x<E;x+=1)k[x]=O[x]+(O[x]-D[x])*((g-p)/this.comp.globalData.frameRate)/5e-4;return k}return O+(O-D)*((g-p)/.001)}return this.getValueAtTime(((g-m)%v+m)/this.comp.globalData.frameRate,0)}function r(f,y,d){if(!this.k)return this.pv;f=f?f.toLowerCase():"";var g=this.comp.renderedFrame,w=this.keyframes,p=w[0].t;if(g>=p)return this.pv;var v,m;d?(y?v=Math.abs(this.elem.comp.globalData.frameRate*y):v=Math.max(0,this.elem.data.op-p),m=p+v):((!y||y>w.length-1)&&(y=w.length-1),m=w[y].t,v=m-p);var x,E,k;if(f==="pingpong"){var _=Math.floor((p-g)/v);if(_%2===0)return this.getValueAtTime(((p-g)%v+p)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var T=this.getValueAtTime(p/this.comp.globalData.frameRate,0),B=this.getValueAtTime(m/this.comp.globalData.frameRate,0),M=this.getValueAtTime((v-(p-g)%v+p)/this.comp.globalData.frameRate,0),F=Math.floor((p-g)/v)+1;if(this.pv.length){for(k=new Array(T.length),E=k.length,x=0;x<E;x+=1)k[x]=M[x]-(B[x]-T[x])*F;return k}return M-(B-T)*F}else if(f==="continue"){var O=this.getValueAtTime(p/this.comp.globalData.frameRate,0),D=this.getValueAtTime((p+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(k=new Array(O.length),E=k.length,x=0;x<E;x+=1)k[x]=O[x]+(O[x]-D[x])*(p-g)/.001;return k}return O+(O-D)*(p-g)/.001}return this.getValueAtTime((v-((p-g)%v+p))/this.comp.globalData.frameRate,0)}function n(f,y){if(!this.k)return this.pv;if(f=(f||.4)*.5,y=Math.floor(y||5),y<=1)return this.pv;var d=this.comp.renderedFrame/this.comp.globalData.frameRate,g=d-f,w=d+f,p=y>1?(w-g)/(y-1):1,v=0,m=0,x;this.pv.length?x=createTypedArray("float32",this.pv.length):x=0;for(var E;v<y;){if(E=this.getValueAtTime(g+v*p),this.pv.length)for(m=0;m<this.pv.length;m+=1)x[m]+=E[m];else x+=E;v+=1}if(this.pv.length)for(m=0;m<this.pv.length;m+=1)x[m]/=y;else x/=y;return x}function i(f){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var y=this._transformCachingAtTime.v;if(y.cloneFromProps(this.pre.props),this.appliedTransformations<1){var d=this.a.getValueAtTime(f);y.translate(-d[0]*this.a.mult,-d[1]*this.a.mult,d[2]*this.a.mult)}if(this.appliedTransformations<2){var g=this.s.getValueAtTime(f);y.scale(g[0]*this.s.mult,g[1]*this.s.mult,g[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var w=this.sk.getValueAtTime(f),p=this.sa.getValueAtTime(f);y.skewFromAxis(-w*this.sk.mult,p*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var v=this.r.getValueAtTime(f);y.rotate(-v*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var m=this.rz.getValueAtTime(f),x=this.ry.getValueAtTime(f),E=this.rx.getValueAtTime(f),k=this.or.getValueAtTime(f);y.rotateZ(-m*this.rz.mult).rotateY(x*this.ry.mult).rotateX(E*this.rx.mult).rotateZ(-k[2]*this.or.mult).rotateY(k[1]*this.or.mult).rotateX(k[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var _=this.px.getValueAtTime(f),T=this.py.getValueAtTime(f);if(this.data.p.z){var B=this.pz.getValueAtTime(f);y.translate(_*this.px.mult,T*this.py.mult,-B*this.pz.mult)}else y.translate(_*this.px.mult,T*this.py.mult,0)}else{var M=this.p.getValueAtTime(f);y.translate(M[0]*this.p.mult,M[1]*this.p.mult,-M[2]*this.p.mult)}return y}function a(){return this.v.clone(new Matrix)}var o=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(f,y,d){var g=o(f,y,d);return g.dynamicProperties.length?g.getValueAtTime=i.bind(g):g.getValueAtTime=a.bind(g),g.setGroupProperty=expressionHelpers.setGroupProperty,g};var s=PropertyFactory.getProp;PropertyFactory.getProp=function(f,y,d,g,w){var p=s(f,y,d,g,w);p.kf?p.getValueAtTime=expressionHelpers.getValueAtTime.bind(p):p.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(p),p.setGroupProperty=expressionHelpers.setGroupProperty,p.loopOut=e,p.loopIn=r,p.smooth=n,p.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(p),p.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(p),p.numKeys=y.a===1?y.k.length:0,p.propertyIndex=y.ix;var v=0;return d!==0&&(v=createTypedArray("float32",y.a===1?y.k[0].s.length:y.k.length)),p._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:v},expressionHelpers.searchExpressions(f,y,p),p.k&&w.addDynamicProperty(p),p};function l(f){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),f*=this.elem.globalData.frameRate,f-=this.offsetTime,f!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<f?this._caching.lastIndex:0,this._cachingAtTime.lastTime=f,this.interpolateShape(f,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var c=ShapePropertyFactory.getConstructorFunction(),u=ShapePropertyFactory.getKeyframedConstructorFunction();function h(){}h.prototype={vertices:function(y,d){this.k&&this.getValue();var g=this.v;d!==void 0&&(g=this.getValueAtTime(d,0));var w,p=g._length,v=g[y],m=g.v,x=createSizedArray(p);for(w=0;w<p;w+=1)y==="i"||y==="o"?x[w]=[v[w][0]-m[w][0],v[w][1]-m[w][1]]:x[w]=[v[w][0],v[w][1]];return x},points:function(y){return this.vertices("v",y)},inTangents:function(y){return this.vertices("i",y)},outTangents:function(y){return this.vertices("o",y)},isClosed:function(){return this.v.c},pointOnPath:function(y,d){var g=this.v;d!==void 0&&(g=this.getValueAtTime(d,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(g));for(var w=this._segmentsLength,p=w.lengths,v=w.totalLength*y,m=0,x=p.length,E=0,k;m<x;){if(E+p[m].addedLength>v){var _=m,T=g.c&&m===x-1?0:m+1,B=(v-E)/p[m].addedLength;k=bez.getPointInSegment(g.v[_],g.v[T],g.o[_],g.i[T],B,p[m]);break}else E+=p[m].addedLength;m+=1}return k||(k=g.c?[g.v[0][0],g.v[0][1]]:[g.v[g._length-1][0],g.v[g._length-1][1]]),k},vectorOnPath:function(y,d,g){y==1?y=this.v.c:y==0&&(y=.999);var w=this.pointOnPath(y,d),p=this.pointOnPath(y+.001,d),v=p[0]-w[0],m=p[1]-w[1],x=Math.sqrt(Math.pow(v,2)+Math.pow(m,2));if(x===0)return[0,0];var E=g==="tangent"?[v/x,m/x]:[-m/x,v/x];return E},tangentOnPath:function(y,d){return this.vectorOnPath(y,d,"tangent")},normalOnPath:function(y,d){return this.vectorOnPath(y,d,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([h],c),extendPrototype([h],u),u.prototype.getValueAtTime=l,u.prototype.initiateExpression=ExpressionManager.initiateExpression;var b=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(f,y,d,g,w){var p=b(f,y,d,g,w);return p.propertyIndex=y.ix,p.lock=!1,d===3?expressionHelpers.searchExpressions(f,y.pt,p):d===4&&expressionHelpers.searchExpressions(f,y.ks,p),p.k&&f.addDynamicProperty(p),p}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){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(r,n){var i=this.calculateExpression(n);if(r.t!==i){var a={};return this.copyData(a,r),a.t=i.toString(),a.__complete=!1,a}return r},TextProperty.prototype.searchProperty=function(){var r=this.searchKeyframes(),n=this.searchExpressions();return this.kf=r||n,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(r,n){var i=createNS("feMerge");i.setAttribute("result",r);var a,o;for(o=0;o<n.length;o+=1)a=createNS("feMergeNode"),a.setAttribute("in",n[o]),i.appendChild(a),i.appendChild(a);return i}};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(e,r,n,i,a){this.filterManager=r;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=o,o.setAttribute("result",i+"_tint_1"),e.appendChild(o),o=createNS("feColorMatrix"),o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",i+"_tint_2"),e.appendChild(o),this.matrixFilter=o;var s=this.createMergeNode(i,[a,i+"_tint_1",i+"_tint_2"]);e.appendChild(s)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var r=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",n[0]-r[0]+" 0 0 0 "+r[0]+" "+(n[1]-r[1])+" 0 0 0 "+r[1]+" "+(n[2]-r[2])+" 0 0 0 "+r[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,r,n,i){this.filterManager=r;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",i),e.appendChild(a),this.matrixFilter=a}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var r=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+r[0]+" 0 0 0 0 "+r[1]+" 0 0 0 0 "+r[2]+" 0 0 0 "+n+" 0")}};function SVGStrokeEffect(e,r,n){this.initialized=!1,this.filterManager=r,this.elem=n,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,r,n,i,a;for(this.filterManager.effectElements[1].p.v===1?(a=this.elem.maskManager.masksProperties.length,i=0):(i=this.filterManager.effectElements[0].p.v-1,a=i+1),n=createNS("g"),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),n.setAttribute("stroke-dashoffset",1),i;i<a;i+=1)r=createNS("path"),n.appendChild(r),this.paths.push({p:r,m:i});if(this.filterManager.effectElements[10].p.v===3){var o=createNS("mask"),s=createElementID();o.setAttribute("id",s),o.setAttribute("mask-type","alpha"),o.appendChild(n),this.elem.globalData.defs.appendChild(o);var l=createNS("g");for(l.setAttribute("mask","url("+getLocationHref()+"#"+s+")");e[0];)l.appendChild(e[0]);this.elem.layerElement.appendChild(l),this.masker=o,n.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(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(n),this.elem.layerElement.removeAttribute("mask"),n.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=n},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var r,n=this.paths.length,i,a;for(r=0;r<n;r+=1)if(this.paths[r].m!==-1&&(i=this.elem.maskManager.viewData[this.paths[r].m],a=this.paths[r].p,(e||this.filterManager._mdf||i.prop._mdf)&&a.setAttribute("d",i.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var o;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var s=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,c=a.getTotalLength();o="0 0 0 "+c*s+" ";var u=c*(l-s),h=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,b=Math.floor(u/h),f;for(f=0;f<b;f+=1)o+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";o+="0 "+c*10+" 0 0"}else o="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;a.setAttribute("stroke-dasharray",o)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||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)&&(e||this.filterManager.effectElements[3].p._mdf)){var y=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(y[0]*255)+","+bmFloor(y[1]*255)+","+bmFloor(y[2]*255)+")")}};function SVGTritoneFilter(e,r,n,i){this.filterManager=r;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.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"),e.appendChild(a);var o=createNS("feComponentTransfer");o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",i),this.matrixFilter=o;var s=createNS("feFuncR");s.setAttribute("type","table"),o.appendChild(s),this.feFuncR=s;var l=createNS("feFuncG");l.setAttribute("type","table"),o.appendChild(l),this.feFuncG=l;var c=createNS("feFuncB");c.setAttribute("type","table"),o.appendChild(c),this.feFuncB=c,e.appendChild(o)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var r=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,a=i[0]+" "+n[0]+" "+r[0],o=i[1]+" "+n[1]+" "+r[1],s=i[2]+" "+n[2]+" "+r[2];this.feFuncR.setAttribute("tableValues",a),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",s)}};function SVGProLevelsFilter(e,r,n,i){this.filterManager=r;var a=this.filterManager.effectElements,o=createNS("feComponentTransfer");(a[10].p.k||a[10].p.v!==0||a[11].p.k||a[11].p.v!==1||a[12].p.k||a[12].p.v!==1||a[13].p.k||a[13].p.v!==0||a[14].p.k||a[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",o)),(a[17].p.k||a[17].p.v!==0||a[18].p.k||a[18].p.v!==1||a[19].p.k||a[19].p.v!==1||a[20].p.k||a[20].p.v!==0||a[21].p.k||a[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",o)),(a[24].p.k||a[24].p.v!==0||a[25].p.k||a[25].p.v!==1||a[26].p.k||a[26].p.v!==1||a[27].p.k||a[27].p.v!==0||a[28].p.k||a[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",o)),(a[31].p.k||a[31].p.v!==0||a[32].p.k||a[32].p.v!==1||a[33].p.k||a[33].p.v!==1||a[34].p.k||a[34].p.v!==0||a[35].p.k||a[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",o)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(o.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(o)),(a[3].p.k||a[3].p.v!==0||a[4].p.k||a[4].p.v!==1||a[5].p.k||a[5].p.v!==1||a[6].p.k||a[6].p.v!==0||a[7].p.k||a[7].p.v!==1)&&(o=createNS("feComponentTransfer"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",i),e.appendChild(o),this.feFuncRComposed=this.createFeFunc("feFuncR",o),this.feFuncGComposed=this.createFeFunc("feFuncG",o),this.feFuncBComposed=this.createFeFunc("feFuncB",o))}SVGProLevelsFilter.prototype.createFeFunc=function(e,r){var n=createNS(e);return n.setAttribute("type","table"),r.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(e,r,n,i,a){for(var o=0,s=256,l,c=Math.min(e,r),u=Math.max(e,r),h=Array.call(null,{length:s}),b,f=0,y=a-i,d=r-e;o<=256;)l=o/256,l<=c?b=d<0?a:i:l>=u?b=d<0?i:a:b=i+y*Math.pow((l-e)/d,1/n),h[f]=b,f+=1,o+=256/(s-1);return h.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var r,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(r=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",r),this.feFuncGComposed.setAttribute("tableValues",r),this.feFuncBComposed.setAttribute("tableValues",r)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(r=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",r)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(r=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",r)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(r=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",r)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(r=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",r))}};function SVGDropShadowEffect(e,r,n,i,a){var o=r.container.globalData.renderConfig.filterSize,s=r.data.fs||o;e.setAttribute("x",s.x||o.x),e.setAttribute("y",s.y||o.y),e.setAttribute("width",s.width||o.width),e.setAttribute("height",s.height||o.height),this.filterManager=r;var l=createNS("feGaussianBlur");l.setAttribute("in","SourceAlpha"),l.setAttribute("result",i+"_drop_shadow_1"),l.setAttribute("stdDeviation","0"),this.feGaussianBlur=l,e.appendChild(l);var c=createNS("feOffset");c.setAttribute("dx","25"),c.setAttribute("dy","0"),c.setAttribute("in",i+"_drop_shadow_1"),c.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=c,e.appendChild(c);var u=createNS("feFlood");u.setAttribute("flood-color","#00ff00"),u.setAttribute("flood-opacity","1"),u.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=u,e.appendChild(u);var h=createNS("feComposite");h.setAttribute("in",i+"_drop_shadow_3"),h.setAttribute("in2",i+"_drop_shadow_2"),h.setAttribute("operator","in"),h.setAttribute("result",i+"_drop_shadow_4"),e.appendChild(h);var b=this.createMergeNode(i,[i+"_drop_shadow_4",a]);e.appendChild(b)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var r=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(r[0]*255),Math.round(r[1]*255),Math.round(r[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,a=n*Math.cos(i),o=n*Math.sin(i);this.feOffset.setAttribute("dx",a),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,r,n){this.initialized=!1,this.filterManager=r,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var r=0,n=_svgMatteSymbols.length;r<n;){if(_svgMatteSymbols[r]===e)return _svgMatteSymbols[r];r+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,r){var n=e.layerElement.parentNode;if(n){for(var i=n.children,a=0,o=i.length;a<o&&i[a]!==e.layerElement;)a+=1;var s;a<=o-2&&(s=i[a+1]);var l=createNS("use");l.setAttribute("href","#"+r),s?n.insertBefore(l,s):n.appendChild(l)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,r){if(!this.findSymbol(r)){var n=createElementID(),i=createNS("mask");i.setAttribute("id",r.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(r);var a=e.globalData.defs;a.appendChild(i);var o=createNS("symbol");o.setAttribute("id",n),this.replaceInParent(r,n),o.appendChild(r.layerElement),a.appendChild(o);var s=createNS("use");s.setAttribute("href","#"+n),i.appendChild(s),r.data.hd=!1,r.show()}e.setMatte(r.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,r=this.elem.comp.elements,n=0,i=r.length;n<i;)r[n]&&r[n].data.ind===e&&this.setElementAsMask(this.elem,r[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,r,n,i){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=r;var a=createNS("feGaussianBlur");a.setAttribute("result",i),e.appendChild(a),this.feGaussianBlur=a}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var r=.3,n=this.filterManager.effectElements[0].p.v*r,i=this.filterManager.effectElements[1].p.v,a=i==3?0:n,o=i==2?0:n;this.feGaussianBlur.setAttribute("stdDeviation",a+" "+o);var s=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",s)}};function TransformEffect(){}TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var r=this.effectsManager.effectElements,n=r[0].p.v,i=r[1].p.v,a=r[2].p.v===1,o=r[3].p.v,s=a?o:r[4].p.v,l=r[5].p.v,c=r[6].p.v,u=r[7].p.v;this.matrix.reset(),this.matrix.translate(-n[0],-n[1],n[2]),this.matrix.scale(s*.01,o*.01,1),this.matrix.rotate(-u*degToRads),this.matrix.skewFromAxis(-l*degToRads,(c+90)*degToRads),this.matrix.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==r[8].p.v&&(this.opacity=r[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,r){this.init(r)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}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(e){const r=usePickComponentStyle(e),n=vue.computed(()=>useImagePath(e.imgUrl)),{pageMode:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{getGlobalModel:a,setGlobalModel:o}=vue.inject(GLOBAL_MODEL,{getGlobalModel:b=>{},setGlobalModel:(b,f)=>{}}),l=useEmitEvent(e)("click",()=>{const b=a(e.id);if(o(e.id,{...b,type:e.type,RECORD:e.data||{}}),setTimeout(()=>{o(e.id,{...b,type:e.type,RECORD:{}})},0),!e.linkPage&&!e.href)return;const f=e.linkPage||"",y=usePageUrl(vue.unref(i),f),d=e.href;let g=d||y;g=useVariablesInText(g);const w=e.target;w&&(w!=="event"?window.open(g,"_"+w):window.parent.postMessage({type:"openPage",url:d},"*"))}),c=vue.ref(),u=vue.ref(),h=()=>{const{directory:b}=e.animationSource;e.isAnimation&&c.value&&b&&(u.value=lottie.loadAnimation({name:`${e.keyName}-lotTie`,container:c.value,renderer:"svg",loop:!0,autoplay:!0,path:useImagePath(b)+"data.json"}),vue.unref(u).setSpeed(1))};return vue.watch(()=>[e.isAnimation,e.animationSource],([b])=>{b&&vue.nextTick(()=>{h()})},{immediate:!0,deep:!0}),useOnEvent(e,{click:l}),{style:r,myImgUrl:n,animation:c,pageMode:i,onClick:l}}}),__injectCSSVars__$1=()=>{vue.useCssVars(e=>({"01f4f5d8":e.isHoverStyle?"pointer":"auto",26617791:e.isHoverStyle?"0.6":"1"}))},__setup__$1=__default__$1.setup;__default__$1.setup=__setup__$1?(e,r)=>(__injectCSSVars__$1(),__setup__$1(e,r)):__injectCSSVars__$1;const Image_vue_vue_type_style_index_0_scoped_8c627cf7_lang="",_hoisted_1$3=["src"];function _sfc_render$4(e,r,n,i,a,o){var s;return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[e.isAnimation?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[e.animationSource.directory?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["ecan-image",e.pageMode==="design"?"component":""]),ref:"animation",style:vue.normalizeStyle(e.style),onClick:r[0]||(r[0]=(...l)=>e.onClick&&e.onClick(...l))},null,6)):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[e.myImgUrl!==""?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:vue.normalizeClass(["ecan-image",e.pageMode==="design"?"component":""]),style:vue.normalizeStyle(e.style),src:e.myImgUrl,onClick:r[1]||(r[1]=(...l)=>e.onClick&&e.onClick(...l))},null,14,_hoisted_1$3)):vue.createCommentVNode("",!0)],64)),(e.isAnimation?!((s=e.animationSource)!=null&&s.directory):!e.myImgUrl)?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["image-placeholder",e.pageMode==="design"?"component":""]),style:vue.normalizeStyle(e.style)}," 请上传图片 ",6)):vue.createCommentVNode("",!0)],64)}const Image$1=_export_sfc$1(__default__$1,[["render",_sfc_render$4],["__scopeId","data-v-8c627cf7"]]),EcanImage=withInstall$1(Image$1),iframeProps={...props,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},iframeComponentProps=transformToComponentProps(iframeProps),_sfc_main$2=vue.defineComponent({name:"EcanIframe",props:{...iframeComponentProps},setup(e){const r=usePickComponentStyle(e),{contextRequestUrl:n}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:""}),i=vue.computed(()=>{let a=useVariablesInText(e.link);if(e.linkType==="erd"&&a!=null){let o=vue.unref(n);o[o.length-1]==="/"?o+="erdReport":o+="/erdReport",a=`${ERD_URL||o}?_t=0&uid=${a}`}return a});return{style:r,myLink:i}}}),Iframe_vue_vue_type_style_index_0_scoped_19bc100c_lang="",_hoisted_1$2=["src"];function _sfc_render$3(e,r,n,i,a,o){return e.myLink?(vue.openBlock(),vue.createElementBlock("iframe",{key:0,src:e.myLink,style:vue.normalizeStyle(e.style)},null,12,_hoisted_1$2)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"iframe-placeholder",style:vue.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Iframe=_export_sfc$1(_sfc_main$2,[["render",_sfc_render$3],["__scopeId","data-v-19bc100c"]]),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:""},tableComponentProps=transformToComponentProps(tableProps),tableEvents=["click","refreshData","resetRecord","exportTableData"],seqIcon1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8oFilY+dZfEL3FnudOXKtVt3LqxyoQtlI1WUCFhYpSCIhKoAgTwhJMFkZm73bavP7dO3h9yQpJJNJtObnJx7u+ee+333O6cfDJahSQCHhhk91p1Ttj8xs4F8zOEe2dx3C2hH0efkkwCvKluCPEc+l7mfKHvD+X7jW8qjsqV0th60Hqh6GSsSUQlgWNDX0RGoQNauCdcbmvruU8oWnB9NqAtvGRtgPzJXJuMMh86U8jX7USPd57H4OmPwjWEOZ5/hfRdvDi6WiYumbj1Q/YrZSkf0l2OAytlRLj5BtAm4uwvV0pG9hl4S3lW2C3DEopdP9mDolpV9vew+JN80hxll+0xy8nU1iHXKLmYi83sM4D+tzl/SfWVXfqXstt8GcIy52oKpW5OBUl7sO7TeiEPBadoZi0y0l96aYOwdbb9MPgcgr+wxzgw6l0uBeduTggl13WEgkz4yipEC04dJicg3WeK3Jx9ibl7nSczVcZO3tPEpeQoXbn+rbIZDxi0V0XqgKxlRky56Wg0dxoNgB5LCi3OiaqGM9sVMYSfJ54JsVvbDKKajapdm/JL6e5e7IfkMH2N6Ip2YxSVXM8y3fI6MhYnJhM4gWUX5tngc87dqXTmBJWXOkUbwqJT0hP+Boe6qCXT0aNtmjFp4Bw0Cgncqe1I68TUAGJduu/q70+UkQNBX9lAwLpV8IzaoKooB1FENbYkCQW9UwhINqoZUV1+jHFii5UoZC5k1PBOAKHfnwjX0k9syEaYmAPamQbQeaK0hOniw+CxSzXGPE8y3OMMP/HKYyIPvRhuV73gQmvvOTQdYqdwJZwtPaNGV6Kzu5dpv1MuiuJnrxZUVtgyTRqIy5AOZ5OBI4mfT4kWm+4FGvmkWdVdNoKO9xRdjsXGMyJwJfUw1F0J6r0qEJCL6cbZsED2rER20EK1oxGwxIhRV/zQxInjs6oVsszQBAFmNbt5OTRrRVi8y3gP5cDai9UBrDdGR3rYXFKVGJDtBunCqnEHqXhYJdXe5Yk7qDljUJRGyqyGisxqTaGrnVkuPjOnqOtymc06vOuRZkoV9Td2N81F3FQaaiNFP5QCnWv+kIPpRihilIWqjaKNLqSay0k8aoo5G1E45WQ1vo5VyHoeoZPC8qYwSROuB4kuhb7SmED2lqXvFou5eVxRVwB9my68THSiPLoa6SxGjZaduTQY6eLB4TCF0D5JaNy3QZzy+Vd33XkPltUcRtWvdtPSSVvfa07THVUa2GFF6yVWnl2n1PK12rasroyoxqgcKAPY3uuIRHevd+pKCfkiCmY1TZbTQQO2inop5u5BPo649dZsjj6L7kTyKmdTOo56QSN1mf3ZRX0XdVRPo8OF2XHwe5fyNR2vd+RD9S68VXddrR6o/IWVXQ3ZdS9cXWutWIaqrpayTSJmjEd0WCLMyuDvHceGgCtF6oAsQo5WF6KEdryB1hTAVT9o0rQ2iteq+k/myEa0si/dARrhjFhT+LMUL2A+EY5aF7PUhKuYXkUdnrRkVrJy5KwiRss1+1GCJ2n1lM+Ekm9HD9UCrJ94rH9Herai645Dk0bMVP6t8f1iLYxN6NTELyR7HiVwF92P2e+Jpoo0D8YZxfyVexVft75KHdFZtRsb120Kpm7Pmnt0NHOm5LeC08qnybLxHA/Jr+o1MJvxC2U1nhkbJx4ZXS6Bjh4uHVNQVyUweHeYebrhe4zE6ql3VZ6LuyGQdqaSTYosrzYbx+w0lXBBvd2UH9Q01ijiORveGhTihm4wM0JmJUevKhEZkaG8mArhmkJISt/mb803fkQ+gBRnETp9ONpbrgdYaoncPbMZyyfWzXQS9iMI9yp4WzNBvSLpNyvevSLZwr2qxGkk4A2UtWvt83kLutxvC58guMIn+KWvz+FbFw62/dktkso7E6k8ADCXDS6QnA/4j+cq+d0nZbb/eth8DU3fVGYZVE6jZ8T4C5qOfyHXi3kV5soybv6pJgG71d1yy7eQb4I5eFk12SK6JuJC5n2xuVU21TjSEyJzDfmjOJgUMsMKKACas30PU/Cj6nnxhkEERahUFOokCcP48Hq+z0bMIZkyV1OInqwdaI4imwZwc4OgxJ1Xu5SfbkMJSPEl9eMR2K3tYsC3kuyEczH83w4TO9tx0uxf/1+kntdEmJ54wBAx+oHFEwK4ou5QT/eQr/jzwQNN0vgWKWWHNdaAq9vfUeKBpKJNvtKuAaQbR3dCIx+aYlChUqk1ziWJzP3LwDBLeZ73/gifuKZ/PWB9dZ8xBkcnxivE1XbwbT7WSRYvHPda81xZ86LEeaK0imsaRqZ5WUwXNZHJ4hhecyFRVjFmpVMKNmM7sKo3V/Hs/VjXLRdO0Z1w0dVd1oHbwUp/UnoLNmDJUmxnjZgbWUhhBMWKnrcOM80rJ0m9YFkRXQqD/A/mshzl9oUoNAAAAAElFTkSuQmCC",seqIcon2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABQFJREFUaEPtWt1v21QUv9eJ80FbWmV0adel7ZqyLenSgVYJaQghHhBIICEhoWkvSGgCiQ+JdWMCISEVxAPSoEWT+AN4QTzxzl/Ah8SAQtJ23dKvreuydl3TrIsd23e6xz63LovqeE2BePaLT06ur33O7+dzj8+5lPyHh5I7f4TfPpT6IIuPQSll9XwkWs/J3M7lGQOV7JdpYTxjX206gr4IMiM/CwQDdBhQTZ8VOreOs4//VxD0DWwkBO/kxjqRIkFDHwWZktdQZ2h6AOXlpUUQY3s7BKuCsoxB5ltUalLgYy43pYevu6Vr3SnqKQNZ9ptm9KjK7n5iye/bAkqYyzeuLQjV3OVJIavlMshyKCR03f2HQe5I9AgdpbRkBiP6BSpD6xTYQY+fubsdqjtC0DeQscZBkLERCamgZFveNmMH+9xGjzYu3165KVSzUzmQS8U1t7GBNLU8Kq7pS0HCQ1pjj9nmofPmD/aRoO3A2e/huWzZUM0U9ayB5exoP3iFGT/a3NfH5Y3SulDNTJrp5OpywTVatV6wJy5WIHLgkJkcRR5p2rzcWk8NSTuBSkcEfQMtVzUEgowxQFTLnj+OEBtEeteST6Lu2swVEGcvmUEEXnVW168cR9ZSyYx5vQdTYmxXbxKf5eWqFPWkgSw7GkNrVWa8A2gQkkCdrigQm4Ph8Kuom7j4K4grhSVHT+/2gFh7XNwifeyp+xH0vIEYJU3TjXP8VFiYLaJbSsViK5eTA4Nvoi732y8g3rp5Y7cBcpzfEUHfQC8iOD3+u0goJUlq5zzpP3L0Lc9Q1PMGTv55USSUciCwt9EQlCh5Riz01YKMb+D/fJlwhWA4JHdxuPtSmTcaJcj4BtrfwWg00m1m7enXPYmgb6Bjtri7A6rlolveQeWvMfHFyKh+mj+OpyjqfQPHRzNIIiYZ79WCYH7ib7hkcS6/u/yrYfZ9PVDggwPrp1sp6ht4/zLhKQRZRYUO0qEnhk4hFQLBYAuX7UVeLBvai8E1MMzVEHuRFwu/9mIwLzLAhAZ5WiTbigNFPWng/KWJVfTAfP4y1GfC4bBo4iUHBp/lulh7XHiKt/m4bmlhTqAyb/UCK6rqCik+2N4zTCQPwvWdiV4xD5WkCv9BGbmASlkLQDOIPjl8e1sEPWXglpYz02ELB2MEKmn8KK2uQBv2ymTW5DchZH1tDbzX0toGLTN+9KcyL/Bzc1ubWHYqqgqVckTynwhjNRyr1Pz/fd0HYD5EjctBGcjB+3VTeD9JZ/B1Iw+e+wl11c7UN7DREbTDyqYvQMtZVRVzBxK8xPR5fjYYC6Ju+fpV2BQwO5UTrduyoupcF+/aL8r+3Y8ffonrIpGo0NmXkYK1OaHToiUfG45GLTYSUVVmViAJKaWvxXMNjWxsR00x7qEysJpHsHdRYYZovhiMDfGxuq6JntnV/DSE5sWZvLnlA9ZbA87JVOYY6uL7e4ER/JAkam5DoUQwgRH2HVdphvwpjmvOnH7gHoFjh9c30HJzwyJYjbbl8TH4RqGSJvagMUJBp2zcgTWSH4VFMxh1JHogd+VHKBQxowhMQCGoMV37DFWRox+Kta7avd3qHCn6UBqIRmPLG4KC1dc3qPTK5v9mRkQJEa0ASukP+L+cPvOHCWR9tzHbQXkgBH0DLQ9gTtuwCFZ7PzEb4v9Vyhok3vJyEagIdHxuRHMbKHYyfkcUbQQD7wHq9EAq9LeVYwAAAABJRU5ErkJggg==",seqIcon3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABMJJREFUaEPtWl1sFFUUPndmlm1LdW1XoGxly7qFYqmIBkxEJDTRRI3RxNhgpDzpkwixJCaEJx588MHQCPrgGwT8SSD4Zkx84DfGEEjU2KpAS6ktZVsKpF0K3Z+55p4798ysGdju0A3Mdu5De/bcn7nnfN/ce+ecy+ABli1fHGsTjz+4fWMPTYMxPptTYrM5WKljBQaW6jGX9mVF8N19p2PimYxBnXq2ZpqfK5kDvCpl/qvSMdC7hPzN9vWkux87AwNn6r3O7pOLRVtT5+/bfVinJS9TOjNvakoeG0mhGF20gLoYIUMtMgcI9TzsEvKhrg0jM52PzYhSe9ylfWCg5RhfINjx9c8RMd/QnapN9v7FP7Dk1aTjPCTk1LDNrIHzfVSduTONcmgeNsPStCyJ/xvijfbQjKXFD87ZZ0qZy+t7hHx4x7rb9yKhp0Wmogx8be+PYeGhCNS+TC89AC7lAPCCw3s1Qr557TqpLv19AeX0xOS9nOxaN/+RWtInW1tQjkRptxE/BxFVYDtVw++2rf8eZcdpqCiCgYG2/32AIOeI6OYvT62jeXO2RVKBv+PgUlTIU+lbpOr/6zzKN8bGS6bjTDtEGxZS08SKZpSra9CvVpEnIt3UaPErpGglGtix55d6ZX/IyH4oX1JYonSZ25kGIc+rCr+pdEP9l1Ec+Oei7Ts+q185RUFlmjwQJVokkqI0JuL43wR4Q+lYYKDfEez86hhhbJraJwLaoT7cYrCkJyaRoitWtxFFe8/9jnXjqbGiVCp3g/qFj9MjVq6Rh6gCis5JA3vP/kFe0TQmEXx2FSHYc/Y3rL8+eq3cABUd3xOCgYF+R7DnjE1R3ahAigYGPuQU5SZ7iU4ybtuE3xEMDHQiGAqHnhBwL1/V+rqC/WHfB0tCMDCw6FmjvA3cTjIFCG7qPvGUmoJuwMdCdlI0XF2FH1nNbS1WHgHAVxSteAM37zvxtEKQA3xUcQgGBvr9HfSCYH+vDBEOD9hf/uVdK+8+emwpxcdARcALVtE5aeClP+1w4GR64jHhv9bnnqFQnBEyMNrqDPKqwK8zGDzbqDqDvCrw6wwGiyCDeCZn+RfpsO2GYGCgnxBUqWeEVpdpMc44JjiRhqMyHfbvxT7KUjbE4xifWxBbRHsoABhCd3VwmJh5+YJMdmYz2ZLZ6kyKLmlOYP9YHM/9WJim4aAc2F6lC+dznwp5f1f7TWpX8QY6XatygXW8ls6dwNgroo3JTUIwNXgFu42OjFCWcuny5PNCF6mvo0CyQk4h+X+EuZXPUHkGUd/YJJd9hZqQHTcvjqj5anpe3rzY2m6viC48KcguBQZaHvItgm4rgco+GXrubaIHY2uEnMlMEwMGrAUlP52jLGVTSxITqdXza0jn3CdTQ5LqMYuWQg5XV6nHnKOFAjT8CPByvatojr7iDXRD9b3uU0+iXocOqmcm6qYmpkiVuiIRakom5DUJANAMY61jTJV/lhlVLHyH+Pvttg0/2GN7v0NaFMHAQHpRKghBm03yVoYodDODw1tENnUi4too+YHxn6jelHcBsjeiR5Xu8O6VGTfWeNV5oujcMdDFreqwIKoi7FE8q14dz8qMKQAc392e84qGl373h2Bg4INH8D9A563p5gHY1gAAAABJRU5ErkJggg==",__default__=vue.defineComponent({name:"EcanTable",components:{Skeleton,AButton:antDesignVue.Button,AInput:antDesignVue.Input,ACheckboxGroup:antDesignVue.CheckboxGroup,ATable:antDesignVue.Table,ATableSummary:antDesignVue.TableSummary,ATableSummaryRow:antDesignVue.TableSummaryRow,ATableSummaryCell:antDesignVue.TableSummaryCell,DownOutlined:DownOutlined$1,RightOutlined:RightOutlined$1},props:{...tableComponentProps},setup(e,{expose:r}){const{pageMode:n}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),i=vue.ref(!1),a=vue.computed(()=>{const Z=lodashEs.cloneDeep(e.columns);return e.isUseSeq&&Z.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Z.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),Z}),o=vue.ref(),s=vue.ref(!1),l=usePickComponentStyle(e),c=vue.ref([]),u=vue.computed(()=>e.scrollX),h=vue.ref(parseFloat(e.height)),b=()=>{let Z=0;switch(e.size){case"small":Z=50;break;case"middle":Z=53;break;default:Z=65;break}return Z};vue.watchEffect(()=>{var Z;(Z=c.value)!=null&&Z.length&&e.height&&setTimeout(()=>{let Q=parseFloat(e.height);const re=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),le=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),ue=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let ce=0;if(le&&(Q-=(le==null?void 0:le.clientHeight)||0),ue&&e.isSummaryFixed&&(ce=(ue==null?void 0:ue.clientHeight)||0,Q-=ce),e.paginationShow){let oe=0;oe=b(),oe&&(Q-=oe)}(re==null?void 0:re.clientHeight)>Q?h.value=Q:h.value=0,vue.nextTick(()=>{if(ce){const oe=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),me=(oe==null?void 0:oe.clientHeight)||0;ce!==me&&vue.unref(h)&&(h.value=Q+ce-me)}})},0)});const f=vue.ref([]),y=vue.ref([]),d=vue.ref([]),g=vue.ref([]),w=vue.ref(0),p=vue.ref(1),v=vue.ref(e.paginationPageSize||10),m=vue.reactive([]),x=(Z,Q)=>{let re="";return Z.forEach((le,ue)=>{const{value:ce,rule:oe}=le;le.conditions?re+=`(${x(le.conditions,le.join)})`:ce&&oe&&(re+=`value ${oe} '${ce}'`),re+=`${ue===Z.length-1?"":Q?" "+Q+" ":""}`}),re},E=(Z=[])=>{var Q,re;if(Array.isArray(Z)&&Z.length>0){let le=Z.length;const ue=e.columnsFixedNum;if(e.dataType==="indicator"&&((Q=vue.unref(a))!=null&&Q.length)&&!vue.unref(a).find(ce=>{var oe;return(oe=ce.children)==null?void 0:oe.length})){const{graphicConfig:{indicators:ce=[]}}=e;Z.forEach((oe,me)=>{if(vue.unref(a)[me])for(const _e in vue.unref(a)[me])["dataIndex","title"].includes(_e)||(oe[_e]=vue.unref(a)[me][_e]);const xe=ce.find(_e=>_e.label===oe.title),{showLabel:ye=""}=xe||{};ye&&(oe.title=ye)})}for(let ce=le-1;ce>=0;ce--)(re=Z[ce])!=null&&re.isHidden&&Z.splice(ce,1);le=Z.length;for(let ce=0;ce<le;ce++){const oe=Z[ce];if(ce<ue?oe.fixed="left":oe.fixed=!1,e.isSortByFront&&oe.sorter){const Ne=oe.dataIndex;oe.sorter=(Ge,He)=>Ge[Ne]-He[Ne]}const{cellAlign:me="center",cellColor:xe,dataIndex:ye,title:_e,tableFilter:De,headerCellAlign:ke,headerCellColor:Fe,overflow:$e,conditions:ze}=oe;De&&(m.push(ye),oe.filterOptionsInputValue="",oe.filterCheckboxGroupValue=[],oe.customFilterDropdown=!0,oe.onFilter=(Ne,Ge)=>Ge[ye].toString().toLowerCase().includes(Ne.toLowerCase())),ze&&(oe.conditionCode=x(ze)),oe.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:ke||"center",color:Fe||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),oe.customCell=(Ne,Ge)=>({style:{textAlign:me,color:xe||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:vue.unref(K)===Ge&&e.clickHighlight},onClick:H("click",()=>{const He=e.id,We=G(He);Ne={dataIndex:ye,title:_e,...Ne},U(He,{...We,type:e.type,RECORD:Ne}),setTimeout(()=>{e.linkPage&&handleJumpLink(e,{pageMode:vue.unref(n),getRecordValueByKeyName:j})},0)})}),$e==="ellipsis"?oe.ellipsis=!0:oe.ellipsis=!1,Array.isArray(oe.children)&&E(oe.children)}}},k=(Z=[])=>{var re;let Q=lodashEs.cloneDeep(Z);return(re=vue.unref(g))!=null&&re.length&&(Q=lodashEs.cloneDeep(vue.unref(g))),e.isUseSeq&&Q.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Q.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),E(Q),Q};vue.watch(v,()=>{p.value=1,ee(!1)}),vue.watch(o,Z=>{s.value=!!Z}),vue.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.seqName,e.seqIcon,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{f.value=k(lodashEs.cloneDeep(e.columns))},{immediate:!0,deep:!0}),vue.watch(()=>[e.data,e.dataType],([Z,Q])=>{Q==="static"&&(y.value=Z)},{immediate:!0});const _=vue.ref({}),T=Z=>{if(Array.isArray(Z)){const Q=Z.length,re=m,le=re.length,ue={};for(let oe=0;oe<Q;oe++){const me=Z[oe];for(let xe=0;xe<le;xe++){const ye=re[xe];if(ue[ye])ue[ye].add(me[ye]);else{const _e=new Set;_e.add(me[ye]),ue[ye]=_e}}}const ce={};for(const oe in ue)if(Object.prototype.hasOwnProperty.call(ue,oe)){const me=ue[oe],xe=Array.from(me);ce[oe]=xe.map(ye=>({label:ye,value:ye}))}_.value=ce}};vue.watch(()=>[e.isReverse,f.value,y.value],()=>{const Z=vue.unref(f),Q=vue.unref(y);if(T(Q),e.isReverse){const{columns:re,dataSource:le}=B(lodashEs.cloneDeep(Z),lodashEs.cloneDeep(Q));d.value=re,c.value=le.map(ue=>({key:nanoid(6),...ue}))}else d.value=Z,c.value=Q.map(re=>({key:nanoid(6),...re}))},{immediate:!0});const B=(Z,Q)=>{const re=Z[0],le=[{title:re.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ce=0;ce<Q.length;ce++){const oe=Q[ce],me="col"+(ce+1);le.push({title:oe[re.dataIndex],dataIndex:me,key:me,align:"center"})}const ue=[];for(let ce=1;ce<Z.length;ce++){const oe=Z[ce],me={col0:oe.title};for(let xe=0;xe<Q.length;xe++){const ye=Q[xe];me[`col${xe+1}`]=ye[oe.dataIndex]}ue.push(me)}return{columns:le,dataSource:ue}},M=vue.ref(""),F=Z=>{var le;const{rows:Q=[],total:re=0}=((le=Z==null?void 0:Z.data)==null?void 0:le.data)||{};if(w.value=re,Array.isArray(Q)&&(y.value=Q),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:ue=[]}=e,ce=ue.find(oe=>oe.key==="dataSqlId");if((ce==null?void 0:ce.value)==="xt_jxzebg"){const oe=Q.filter(me=>!me.绩效总额).map(me=>me.ORG_NAME);oe!=null&&oe.length&&vue.nextTick(()=>{antDesignVue.notification.warning({message:"提示",description:`当前时段${oe.join("、")}绩效数据为空`,duration:3})})}}},O=useRequestData(e,F),D=async(Z=!0,Q={})=>{try{Z&&(i.value=!0),vue.unref(M)&&(Q.orderCondition=vue.unref(M)),e.paginationShow&&(Q={pageNum:vue.unref(p),pageSize:vue.unref(v)||"10",layer:"1",...Q});const re=await O(Q);F(re)}catch(re){console.error(re)}finally{i.value=!1}},N=({current:Z},Q,re)=>{if(p.value=Z,re&&Object.keys(re).length>0){const{field:le,order:ue}=re,oe={ascend:"asc",descend:"desc"}[ue];le!=null&&oe!=null&&oe?M.value=le+" "+oe:oe||(M.value="")}e.isSortByFront||ee(!1)},L=vue.computed(()=>{const Z=e.simple,Q=[e.paginationPosition],re={};return e.isShowTotal&&(re.showTotal=le=>`共 ${le} 条数据`),e.paginationShow&&{simple:Z,position:Q,total:vue.unref(w),current:vue.unref(p),pageSize:vue.unref(v)||"10",showSizeChanger:!1,size:"large",...re}}),P=Z=>+Z==1?"是":+Z==0?"否":Z,I=(Z,Q)=>{const{format:re,retentiondigit:le,customFormatter:ue,defaultVal:ce}=Q;let oe="";if(re==null||re==="")oe=Z;else{const me={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,boolean:P,decimals:formatDecimals,custom:formatCustom};me[re]||(oe=""),re==="decimals"?oe=me[re](Z,le)||"":re==="custom"?oe=me[re](Z,ue)||"":oe=me[re](Z)||""}return oe||(oe=ce),oe},C=Z=>Z==="contrast"?"upDown":"",S=Z=>{const{text:Q,format:re,declineColor:le="#39cf93",increaseColor:ue="#ff512e"}=Z;if(re==="contrast"){const ce={fontSize:e.fontSize},oe=parseFloat(Q+"");return oe>=0?ce.color=ue:oe<0&&(ce.color=le),ce}else return{}},R=vue.computed(()=>{const{fontSize:Z}=e;return{width:Z,height:Z,textIndent:`-${parseFloat(Z)*2}px`,overflow:"hidden"}}),A=Z=>{const{text:Q,declineColor:re="#39cf93",increaseColor:le="#ff512e"}=Z,{fontSize:ue}=e,ce=parseFloat(Q+""),oe={width:ue,verticalAlign:"unset"};return ce>=0?oe.filter=`drop-shadow(${le||"#ff512e"} ${ue} -1px)`:ce<0&&(oe.filter=`drop-shadow(${re||"#39cf93"} ${ue} -1px)`),oe},q=Z=>{const Q=parseFloat(Z+"");if(Q>=0)return goUp;if(Q<0)return goDown},H=useEmitEvent(e),{getGlobalModel:G,setGlobalModel:U,getRecordValueByKeyName:j}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Z=>{},setGlobalModel:(Z,Q)=>{},getRecordValueByKeyName:Z=>{}});U(e.id,{type:e.type,RECORD:""});const V=(Z=[],Q=[])=>{let re=Z.map(le=>({title:le,dataIndex:le,key:le}));vue.unref(a).find(le=>{var ue;return(ue=le.children)==null?void 0:ue.length})&&(re=lodashEs.cloneDeep(vue.unref(a))),g.value=lodashEs.cloneDeep(re),f.value=k(re),y.value=Q},$=Z=>{var Q,re,le,ue;V((re=(Q=Z==null?void 0:Z.data)==null?void 0:Q.data)==null?void 0:re.columns,(ue=(le=Z==null?void 0:Z.data)==null?void 0:le.data)==null?void 0:ue.rows)},Y=useIndicatorData(e,$),J=async(Z=!0)=>{try{Z&&(i.value=!0);const Q=vue.unref(M).split(" "),re={};e.isSortByFront||(re.sort={order:Q[1],field:Q[0]});const le=await Y(re);$(le)}catch(Q){console.error(Q)}finally{i.value=!1}},K=vue.ref(-1),ne=(Z,Q)=>({onClick:H("rowClick",()=>{const re=e.id,le=G(re);U(re,{...le,type:e.type,RECORD:Z}),K.value=Q})}),{loadedData:X}=vue.inject(LOADED_DATA,{loadedData:{}}),W=vue.ref(!1);vue.watch(X,Z=>{if(e.dataType==="indicator"){const Q=getFixedValueDatas(e.graphicConfig);Q!=null&&Q.length&&(!vue.unref(W)&&canRequestIndicator(e.graphicConfig,Z)?(W.value=!0,ee()):canRequestIndicator(e.graphicConfig,Z)||(W.value=!1))}},{deep:!0});const ee=(Z=!0)=>{switch(e.dataType){case"request":D(Z);break;case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(X))&&J(Z);break}},te=()=>{const Z=e.id,Q=G(Z);U(Z,{...Q,type:e.type,RECORD:""})},ae=vue.computed(()=>{const Z=vue.unref(d);let Q=0;const{subTotalColumn:re,subTotalName:le}=e;re&&(Q=Z.findIndex(xe=>xe.dataIndex===re),Q<0&&(Q=0));const ue=[];let ce=0;for(let xe=0;xe<Z.length;xe++){const ye=Z[xe],{isCalcTotal:_e}=ye;xe===Q?ue.push({...ye,total:le}):_e?(ue.push({...ye,index:xe,total:0}),ce++):ue.push({...ye})}if(ce===0)return[];const oe=vue.unref(c),me=ie(ue);for(let xe=0;xe<me.length;xe++){const ye=me[xe];let _e=0;const{isCalcTotal:De,dataIndex:ke}=ye;if(De===!0){for(let Fe=0;Fe<oe.length;Fe++){const ze=+oe[Fe][ke];isNaN(ze)||(_e=new big_js.Big(_e).add(ze).toNumber())}ye.total=_e}}return me});function ie(Z){var re;const Q=[];for(const le of Z)(re=le.children)!=null&&re.length?Q.push(...ie(le.children)):Q.push(le);return Q}const{setRequest:se}=vue.inject(REQUEST_MODEL,{setRequest:Z=>{}});typeof se=="function"&&se({id:e.id,requestFn:ee,sortNum:e.requestSort}),r({refreshData:ee});const he=(Z="",Q)=>useVariablesInText(Z,Q),de=Z=>{if(Z!=="event")return{self:"_self",blank:"_blank"}[Z]},ge=(Z,Q="")=>{Z==="event"&&window.parent.postMessage({type:"openPage",url:Q},"*")},be=(Z,Q)=>{Z(Q.filterCheckboxGroupValue)},Ce=(Z,Q)=>{Z({confirm:!0}),Q.filterOptionsInputValue="",Q.filterCheckboxGroupValue=[]},Te=()=>{},Se=Z=>{const Q=Z.dataIndex;if(typeof Q=="string"){let re=vue.unref(_)[Q];const le=vue.unref(Z.filterOptionsInputValue).trim();return Array.isArray(re)?(re=re.filter(ue=>typeof ue.label=="string"?ue.label.toLowerCase().includes(le.toLowerCase()):!0),re):[]}return[]},fe=async()=>{var ye,_e;const Z="EXPORT_KEY";antDesignVue.message.loading({key:Z,content:"正在导出...",duration:0});let Q=[];if(e.dataType==="static")Q=e.data;else if(e.dataType==="request"){const De={layer:"1"};vue.unref(M)&&(De.orderCondition=vue.unref(M));const ke=await O(De);Q=((_e=(ye=ke==null?void 0:ke.data)==null?void 0:ye.data)==null?void 0:_e.rows)||{}}const re=vue.unref(d),le=[],ue=[];re==null||re.forEach(De=>{le.push(De.dataIndex),ue.push(De.title)});const ce=Q.map(De=>lodashEs.pick(De,le)),oe=xlsx.utils.book_new(),me=xlsx.utils.aoa_to_sheet([ue]),xe=xlsx.utils.sheet_add_json(me,ce,{skipHeader:!0,origin:"A2"});xlsx.utils.book_append_sheet(oe,xe,"sheet"),xlsx.writeFile(oe,"表格数据.xlsx"),antDesignVue.message.success({key:Z,content:"导出成功"})},pe=(Z,Q=2)=>{const re=+Z*100;return isNaN(re)||re<=0?0:re>=100?100:re.toFixed(Q)};useOnEvent(e,{resetRecord:te,refreshData:ee,exportTableData:fe});const ve=(Z,Q)=>{let re=null;return e.stripedShow&&(re=Q%2===1?"table-striped":null),re},we=vue.computed(()=>{let Z=0;const{height:Q,isPageBottom:re}=e;return re&&Q&&(Z=parseFloat(Q)-b()),Z?Z+"px":"100%"}),Ae=vue.computed(()=>{let Z="#071655";return e.headerBackgroundColor&&(Z="transparent"),Z}),Pe=vue.computed(()=>{let Z="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(Z="transparent"),Z}),Oe=vue.computed(()=>parseFloat(e.fontSize)+16),Le=vue.computed(()=>{let Z="";const{paginationColor:Q,paginationBgColor:re,activePaginationColor:le,activePaginationBgColor:ue,hoverBackgroundColor:ce}=e;return Q&&(Z+="p-color "),re&&(Z+="p-bg-color "),le&&(Z+="active-p-color "),ue&&(Z+="active-p-bg-color "),ce&&(Z+="hover-bg-color "),Z}),Re=(Z,Q)=>{const{conditionCode:re}=Z;return runCode(re,{value:Q})};return{x:u,y:h,style:l,customRow:ne,pagination:L,formatFn:I,contrastClass:C,tableChange:N,summaryList:ae,loading:i,onTouchHrefEvent:ge,handleHref:he,handleHrefTarget:de,useRowIndex:K,tableColumns:d,tableDataSource:c,useFilterOptions:Se,useSetSelectedKeys:be,onResetFilter:Ce,onSearchFilterOptions:Te,exportTableData:fe,handleProgressText:pe,pageSizeVisible:s,pageSize:v,tableRef:o,rowClassName:ve,tableHeight:we,tableHeaderBgColor:Ae,tableBodyBgColor:Pe,getChgStyle:S,chgBoxStyle:R,getChgBoxImgStyle:A,getChgBoxImgSrc:q,seqIcon1,seqIcon2,seqIcon3,iconSize:Oe,containerClass:Le,getCellStyle:(Z,Q)=>{const{overflow:re,conditionCode:le,attribute:ue}=Z,ce={};return re==="ellipsis"&&(ce.overflow="hidden",ce.textOverflow="ellipsis"),le&&(ue!=null&&ue.color)&&Re(Z,Q)&&(ce.color=ue.color),ue!=null&&ue.icon&&(Z==null?void 0:Z.cellAlign)==="right"&&(ce.display="flex",ce.alignItems="center",ce.justifyContent="flex-end"),ce},isMatchCondition:Re,getAttrImgSrc:Z=>{const{attribute:Q}=Z;let re="";return Q!=null&&Q.icon&&(re=useImagePath(Q.icon)),re},getAttrImgStyle:Z=>{let Q={};return(Z==null?void 0:Z.cellAlign)==="right"?Q={marginRight:"5px"}:Q={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(e.fontSize)+6+"px",...Q}},getCellText:(Z,Q)=>Z||Z===0?Z:Q==null?void 0:Q.defaultVal}}}),__injectCSSVars__=()=>{vue.useCssVars(e=>({de5ecef0:e.stripedColor,"72f0f93f":e.tableHeaderBgColor,"2f47340a":e.tableBodyBgColor,"37710e08":e.paginationBgColor,"30c1cc66":e.paginationColor,"4bd1c0a2":e.activePaginationBgColor,ec40aa32:e.activePaginationColor,c0f01ad6:e.hoverBackgroundColor}))},__setup__=__default__.setup;__default__.setup=__setup__?(e,r)=>(__injectCSSVars__(),__setup__(e,r)):__injectCSSVars__;const Table_vue_vue_type_style_index_0_scoped_4b929723_lang="",Table_vue_vue_type_style_index_1_lang="",_withScopeId=e=>(vue.pushScopeId("data-v-4b929723"),e=e(),vue.popScopeId(),e),_hoisted_1$1=["id"],_hoisted_2={key:0,class:"table-tool"},_hoisted_3=vue.createTextVNode("导出数据"),_hoisted_4={key:0,style:{float:"left","margin-right":"5px"}},_hoisted_5={key:1,style:{float:"left","margin-right":"5px",visibility:"hidden"}},_hoisted_6=vue.createTextVNode(" 搜索 "),_hoisted_7=vue.createTextVNode(" 重置 "),_hoisted_8=["src","width","height"],_hoisted_9=["src","width","height"],_hoisted_10=["src","width","height"],_hoisted_11={key:1},_hoisted_12={key:1,class:"action-list"},_hoisted_13=["href","target","onClick"],_hoisted_14={key:2,class:"progress-cell"},_hoisted_15=["src"],_hoisted_16=["title"],_hoisted_17=["title"],_hoisted_18=["src"],_hoisted_19=["title"],_hoisted_20=["src"],_hoisted_21=["src"],_hoisted_22={class:"ant-pagination-options-quick-jumper"},_hoisted_23=_withScopeId(()=>vue.createElementVNode("span",null,"条 / 页",-1));function _sfc_render$2(e,r,n,i,a,o){const s=vue.resolveComponent("a-button"),l=vue.resolveComponent("down-outlined"),c=vue.resolveComponent("right-outlined"),u=vue.resolveComponent("a-input"),h=vue.resolveComponent("a-checkbox-group"),b=vue.resolveComponent("a-table-summary-cell"),f=vue.resolveComponent("a-table-summary-row"),y=vue.resolveComponent("a-table-summary"),d=vue.resolveComponent("a-table"),g=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-table",e.containerClass]),id:"ecanTable-"+e.id,style:vue.normalizeStyle(e.style)},[vue.createVNode(g,{loading:e.loading},{default:vue.withCtx(()=>{var w;return[e.isUseExport?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2,[vue.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:vue.withCtx(()=>[_hoisted_3]),_:1},8,["onClick"])])):vue.createCommentVNode("",!0),vue.createVNode(d,{ref:"tableRef",class:"table",style:vue.normalizeStyle({height:e.tableHeight}),columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:e.y?{x:e.x,y:e.y}:{x:e.x},pagination:e.pagination,"row-class-name":e.rowClassName,"show-header":!e.hideTableHeader,indentSize:30,onChange:e.tableChange},{expandIcon:vue.withCtx(p=>{var v;return[(v=p.record.children)!=null&&v.length?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4,[p.expanded?(vue.openBlock(),vue.createBlock(l,{key:0,onClick:m=>p.onExpand(p.record,m)},null,8,["onClick"])):(vue.openBlock(),vue.createBlock(c,{key:1,onClick:m=>p.onExpand(p.record,m)},null,8,["onClick"]))])):(vue.openBlock(),vue.createElementBlock("span",_hoisted_5,[vue.createVNode(l)]))]}),customFilterDropdown:vue.withCtx(({column:p,selectedKeys:v,setSelectedKeys:m,confirm:x,clearFilters:E})=>[vue.createElementVNode("div",{class:"ecan-table-filter",style:vue.normalizeStyle({height:e.filterDropdownHeight})},[vue.createVNode(u,{value:p.filterOptionsInputValue,"onUpdate:value":k=>p.filterOptionsInputValue=k,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),vue.createVNode(h,{value:p.filterCheckboxGroupValue,"onUpdate:value":k=>p.filterCheckboxGroupValue=k,class:"filter-checkbox",options:e.useFilterOptions(p),onChange:k=>e.useSetSelectedKeys(m,p)},null,8,["value","onUpdate:value","options","onChange"]),vue.createElementVNode("div",null,[vue.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>x()},{default:vue.withCtx(()=>[_hoisted_6]),_:2},1032,["onClick"]),vue.createVNode(s,{size:"small",style:{width:"90px"},onClick:vue.withModifiers(k=>e.onResetFilter(E,p),["stop"])},{default:vue.withCtx(()=>[_hoisted_7]),_:2},1032,["onClick"])])],4)]),bodyCell:vue.withCtx(({column:p,index:v,text:m,record:x})=>{var E,k,_,T,B,M;return[p.dataIndex==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[e.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[v===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,_hoisted_8)):v===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,_hoisted_9)):v>=2?(vue.openBlock(),vue.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,_hoisted_10)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"seq-icon seq-text",style:vue.normalizeStyle({fontSize:e.fontSize})},vue.toDisplayString(v+1),5)],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_11,vue.toDisplayString(v+1),1))],64)):p.dataIndex==="ACTION"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.actionList,(F,O)=>(vue.openBlock(),vue.createElementBlock("div",{class:"action",key:O},[vue.createElementVNode("a",{href:e.handleHref(F.href,x),target:e.handleHrefTarget(F.target),style:vue.normalizeStyle({color:F.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:D=>e.onTouchHrefEvent(F.target,e.handleHref(F.href,x))},vue.toDisplayString(F.title),13,_hoisted_13)]))),128))])):p.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14,[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({background:p.progressColor||"#1890ff",height:p.progressWidth||"18px",width:`${e.handleProgressText(m,p.progressTextDecimalPlaces)}%`})},null,4),vue.createElementVNode("div",{class:"progress-text",style:vue.normalizeStyle({color:+e.handleProgressText(m)<100?p.progressTextColor||"#333":p.progressFinishedTextColor||"#fff"})},vue.toDisplayString(e.handleProgressText(m,p.progressTextDecimalPlaces))+"% ",5)])):(vue.openBlock(),vue.createElementBlock("div",{key:3,style:vue.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(p,m)})},[e.isMatchCondition(p,m)&&(p==null?void 0:p.cellAlign)==="right"&&((E=p==null?void 0:p.attribute)!=null&&E.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:0,style:vue.normalizeStyle(e.getAttrImgStyle(p)),src:e.getAttrImgSrc(p)},null,12,_hoisted_15)):vue.createCommentVNode("",!0),p.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:1,title:((k=p==null?void 0:p.customFormatter)==null?void 0:k.split("{value}")[0])||""},vue.toDisplayString(((_=p==null?void 0:p.customFormatter)==null?void 0:_.split("{value}")[0])||""),9,_hoisted_16)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass([e.contrastClass(p.format)]),style:vue.normalizeStyle(e.getChgStyle({...p,text:m})),title:p.format!=null?e.formatFn(m,p):m},[p.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(e.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(e.getChgBoxImgStyle({...p,text:m})),src:e.getChgBoxImgSrc(m)},null,12,_hoisted_18)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(p.format!=null?e.formatFn(m,p):e.getCellText(m,p)),1)],14,_hoisted_17),p.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:2,title:((T=p==null?void 0:p.customFormatter)==null?void 0:T.split("{value}")[1])||""},vue.toDisplayString(((B=p==null?void 0:p.customFormatter)==null?void 0:B.split("{value}")[1])||""),9,_hoisted_19)):vue.createCommentVNode("",!0),e.isMatchCondition(p,m)&&(p==null?void 0:p.cellAlign)!=="right"&&((M=p==null?void 0:p.attribute)!=null&&M.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:3,style:vue.normalizeStyle(e.getAttrImgStyle(p)),src:e.getAttrImgSrc(p)},null,12,_hoisted_20)):vue.createCommentVNode("",!0)],4))]}),summary:vue.withCtx(()=>[e.summaryList.length>0?(vue.openBlock(),vue.createBlock(y,{key:0,fixed:e.isSummaryFixed},{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.summaryList,(p,v)=>(vue.openBlock(),vue.createBlock(b,{key:v,index:v,style:vue.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:p.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:vue.withCtx(()=>[vue.createElementVNode("span",{class:vue.normalizeClass([e.contrastClass(p.format)]),style:vue.normalizeStyle({...e.getChgStyle({...p,text:p.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[p.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(e.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(e.getChgBoxImgStyle({...p,text:p.total})),src:e.getChgBoxImgSrc(p.total)},null,12,_hoisted_21)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString((p.format!=null||p.format!=="")&&e.formatFn(p.total,p)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):vue.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","show-header","onChange"]),e.paginationShow?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[(w=e.tableDataSource)!=null&&w.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#ecanTable-"+e.id+" .ant-pagination"},[vue.createElementVNode("div",_hoisted_22,[vue.withDirectives(vue.createElementVNode("input",{type:"text","onUpdate:modelValue":r[0]||(r[0]=p=>e.pageSize=p)},null,512),[[vue.vModelText,e.pageSize]]),_hoisted_23])],8,["to"])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,_hoisted_1$1)}const Table=_export_sfc$1(__default__,[["render",_sfc_render$2],["__scopeId","data-v-4b929723"]]),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"},mapComponentProps=transformToComponentProps(mapProps),mapEvents=["click"];core$1.use([renderers.CanvasRenderer,charts.MapChart,charts.ScatterChart,components$1.VisualMapComponent,components$1.TooltipComponent,components$1.GraphicComponent]);const _sfc_main$1=vue.defineComponent({name:"EcanMap",components:{Echarts},props:{...mapComponentProps},setup(e){const r=useRequestData({...e.tooltipRequestData,requestHeaders:{}}),n=vue.ref(),i=vue.ref(""),a=vue.ref(""),o=usePickComponentStyle(e,["backgroundImage"]),s=vue.ref(),l=vue.computed(()=>useImagePath(e.geoBackgroundImage)),c=vue.computed(()=>useImagePath(e.backgroundImage)),u=vue.computed(()=>e.geoBackgroundImage?{image:vue.unref(s),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),h=vue.computed(()=>{const N=e.symbolImage;return e.symbolImage?"image://"+useImagePath(N):"circle"}),b=N=>{let L=e.tooltipFormatter;const P=L.match(/\{(.+?)\}/g);if(P==null||P.length===0)return L;for(let I=0;I<P.length;I++){const C=P[I];let S=C.slice(1,-1).trim();const R=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,A=S.match(R);for(let q=0;q<A.length;q++){const H=A[q],G=N[H];G!=null&&(S=S.replace(H,G))}L=L.replace(C,S)}return L.split(`
127
+ */var Matrix=function(){var e=Math.cos,r=Math.sin,n=Math.tan,i=Math.round;function a(){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 o(C){if(C===0)return this;var S=e(C),R=r(C);return this._t(S,-R,0,0,R,S,0,0,0,0,1,0,0,0,0,1)}function s(C){if(C===0)return this;var S=e(C),R=r(C);return this._t(1,0,0,0,0,S,-R,0,0,R,S,0,0,0,0,1)}function l(C){if(C===0)return this;var S=e(C),R=r(C);return this._t(S,0,R,0,0,1,0,0,-R,0,S,0,0,0,0,1)}function c(C){if(C===0)return this;var S=e(C),R=r(C);return this._t(S,-R,0,0,R,S,0,0,0,0,1,0,0,0,0,1)}function u(C,S){return this._t(1,S,C,1,0,0)}function h(C,S){return this.shear(n(C),n(S))}function b(C,S){var R=e(S),A=r(S);return this._t(R,A,0,0,-A,R,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(C),1,0,0,0,0,1,0,0,0,0,1)._t(R,-A,0,0,A,R,0,0,0,0,1,0,0,0,0,1)}function f(C,S,R){return!R&&R!==0&&(R=1),C===1&&S===1&&R===1?this:this._t(C,0,0,0,0,S,0,0,0,0,R,0,0,0,0,1)}function y(C,S,R,A,q,H,G,U,j,V,$,Y,J,K,ne,X){return this.props[0]=C,this.props[1]=S,this.props[2]=R,this.props[3]=A,this.props[4]=q,this.props[5]=H,this.props[6]=G,this.props[7]=U,this.props[8]=j,this.props[9]=V,this.props[10]=$,this.props[11]=Y,this.props[12]=J,this.props[13]=K,this.props[14]=ne,this.props[15]=X,this}function d(C,S,R){return R=R||0,C!==0||S!==0||R!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,C,S,R,1):this}function g(C,S,R,A,q,H,G,U,j,V,$,Y,J,K,ne,X){var W=this.props;if(C===1&&S===0&&R===0&&A===0&&q===0&&H===1&&G===0&&U===0&&j===0&&V===0&&$===1&&Y===0)return W[12]=W[12]*C+W[15]*J,W[13]=W[13]*H+W[15]*K,W[14]=W[14]*$+W[15]*ne,W[15]*=X,this._identityCalculated=!1,this;var ee=W[0],te=W[1],ae=W[2],ie=W[3],se=W[4],he=W[5],de=W[6],ge=W[7],be=W[8],Ce=W[9],Te=W[10],Se=W[11],fe=W[12],pe=W[13],ve=W[14],we=W[15];return W[0]=ee*C+te*q+ae*j+ie*J,W[1]=ee*S+te*H+ae*V+ie*K,W[2]=ee*R+te*G+ae*$+ie*ne,W[3]=ee*A+te*U+ae*Y+ie*X,W[4]=se*C+he*q+de*j+ge*J,W[5]=se*S+he*H+de*V+ge*K,W[6]=se*R+he*G+de*$+ge*ne,W[7]=se*A+he*U+de*Y+ge*X,W[8]=be*C+Ce*q+Te*j+Se*J,W[9]=be*S+Ce*H+Te*V+Se*K,W[10]=be*R+Ce*G+Te*$+Se*ne,W[11]=be*A+Ce*U+Te*Y+Se*X,W[12]=fe*C+pe*q+ve*j+we*J,W[13]=fe*S+pe*H+ve*V+we*K,W[14]=fe*R+pe*G+ve*$+we*ne,W[15]=fe*A+pe*U+ve*Y+we*X,this._identityCalculated=!1,this}function w(C){var S=C.props;return this.transform(S[0],S[1],S[2],S[3],S[4],S[5],S[6],S[7],S[8],S[9],S[10],S[11],S[12],S[13],S[14],S[15])}function p(){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 v(C){for(var S=0;S<16;){if(C.props[S]!==this.props[S])return!1;S+=1}return!0}function m(C){var S;for(S=0;S<16;S+=1)C.props[S]=this.props[S];return C}function x(C){var S;for(S=0;S<16;S+=1)this.props[S]=C[S]}function E(C,S,R){return{x:C*this.props[0]+S*this.props[4]+R*this.props[8]+this.props[12],y:C*this.props[1]+S*this.props[5]+R*this.props[9]+this.props[13],z:C*this.props[2]+S*this.props[6]+R*this.props[10]+this.props[14]}}function k(C,S,R){return C*this.props[0]+S*this.props[4]+R*this.props[8]+this.props[12]}function _(C,S,R){return C*this.props[1]+S*this.props[5]+R*this.props[9]+this.props[13]}function T(C,S,R){return C*this.props[2]+S*this.props[6]+R*this.props[10]+this.props[14]}function B(){var C=this.props[0]*this.props[5]-this.props[1]*this.props[4],S=this.props[5]/C,R=-this.props[1]/C,A=-this.props[4]/C,q=this.props[0]/C,H=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/C,G=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/C,U=new Matrix;return U.props[0]=S,U.props[1]=R,U.props[4]=A,U.props[5]=q,U.props[12]=H,U.props[13]=G,U}function M(C){var S=this.getInverseMatrix();return S.applyToPointArray(C[0],C[1],C[2]||0)}function F(C){var S,R=C.length,A=[];for(S=0;S<R;S+=1)A[S]=M(C[S]);return A}function O(C,S,R){var A=createTypedArray("float32",6);if(this.isIdentity())A[0]=C[0],A[1]=C[1],A[2]=S[0],A[3]=S[1],A[4]=R[0],A[5]=R[1];else{var q=this.props[0],H=this.props[1],G=this.props[4],U=this.props[5],j=this.props[12],V=this.props[13];A[0]=C[0]*q+C[1]*G+j,A[1]=C[0]*H+C[1]*U+V,A[2]=S[0]*q+S[1]*G+j,A[3]=S[0]*H+S[1]*U+V,A[4]=R[0]*q+R[1]*G+j,A[5]=R[0]*H+R[1]*U+V}return A}function D(C,S,R){var A;return this.isIdentity()?A=[C,S,R]:A=[C*this.props[0]+S*this.props[4]+R*this.props[8]+this.props[12],C*this.props[1]+S*this.props[5]+R*this.props[9]+this.props[13],C*this.props[2]+S*this.props[6]+R*this.props[10]+this.props[14]],A}function N(C,S){if(this.isIdentity())return C+","+S;var R=this.props;return Math.round((C*R[0]+S*R[4]+R[12])*100)/100+","+Math.round((C*R[1]+S*R[5]+R[13])*100)/100}function L(){for(var C=0,S=this.props,R="matrix3d(",A=1e4;C<16;)R+=i(S[C]*A)/A,R+=C===15?")":",",C+=1;return R}function P(C){var S=1e4;return C<1e-6&&C>0||C>-1e-6&&C<0?i(C*S)/S:C}function I(){var C=this.props,S=P(C[0]),R=P(C[1]),A=P(C[4]),q=P(C[5]),H=P(C[12]),G=P(C[13]);return"matrix("+S+","+R+","+A+","+q+","+H+","+G+")"}return function(){this.reset=a,this.rotate=o,this.rotateX=s,this.rotateY=l,this.rotateZ=c,this.skew=h,this.skewFromAxis=b,this.shear=u,this.scale=f,this.setTransform=y,this.translate=d,this.transform=g,this.multiply=w,this.applyToPoint=E,this.applyToX=k,this.applyToY=_,this.applyToZ=T,this.applyToPointArray=D,this.applyToTriplePoints=O,this.applyToPointStringified=N,this.toCSS=L,this.to2dCSS=I,this.clone=m,this.cloneFromProps=x,this.equals=v,this.inversePoints=F,this.inversePoint=M,this.getInverseMatrix=B,this._t=this.transform,this.isIdentity=p,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(n){return typeof n}:_typeof$3=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,r){e==="expressions"&&setExpressionsPlugin(r)}function getFactory(e){switch(e){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(e){for(var r=queryString.split("&"),n=0;n<r.length;n+=1){var i=r[n].split("=");if(decodeURIComponent(i[0])==e)return decodeURIComponent(i[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(e){}var ShapeModifiers=function(){var e={},r={};e.registerModifier=n,e.getModifier=i;function n(a,o){r[a]||(r[a]=o)}function i(a,o,s){return new r[a](o,s)}return e}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var r={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(r),this.addShapeToModifier(r),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,r){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,r),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(e,r){this.s=PropertyFactory.getProp(e,r.s,0,.01,this),this.e=PropertyFactory.getProp(e,r.e,0,.01,this),this.o=PropertyFactory.getProp(e,r.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=r.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,r,n,i,a){var o=[];r<=1?o.push({s:e,e:r}):e>=1?o.push({s:e-1,e:r-1}):(o.push({s:e,e:1}),o.push({s:0,e:r-1}));var s=[],l,c=o.length,u;for(l=0;l<c;l+=1)if(u=o[l],!(u.e*a<i||u.s*a>i+n)){var h,b;u.s*a<=i?h=0:h=(u.s*a-i)/n,u.e*a>=i+n?b=1:b=(u.e*a-i)/n,s.push([h,b])}return s.length||s.push([0,0]),s},TrimModifier.prototype.releasePathsData=function(e){var r,n=e.length;for(r=0;r<n;r+=1)segmentsLengthPool.release(e[r]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var r,n;if(this._mdf||e){var i=this.o.v%360/360;if(i<0&&(i+=1),this.s.v>1?r=1+i:this.s.v<0?r=0+i:r=this.s.v+i,this.e.v>1?n=1+i:this.e.v<0?n=0+i:n=this.e.v+i,r>n){var a=r;r=n,n=a}r=Math.round(r*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=r,this.eValue=n}else r=this.sValue,n=this.eValue;var o,s,l=this.shapes.length,c,u,h,b,f,y=0;if(n===r)for(s=0;s<l;s+=1)this.shapes[s].localShapeCollection.releaseShapes(),this.shapes[s].shape._mdf=!0,this.shapes[s].shape.paths=this.shapes[s].localShapeCollection,this._mdf&&(this.shapes[s].pathsData.length=0);else if(n===1&&r===0||n===0&&r===1){if(this._mdf)for(s=0;s<l;s+=1)this.shapes[s].pathsData.length=0,this.shapes[s].shape._mdf=!0}else{var d=[],g,w;for(s=0;s<l;s+=1)if(g=this.shapes[s],!g.shape._mdf&&!this._mdf&&!e&&this.m!==2)g.shape.paths=g.localShapeCollection;else{if(o=g.shape.paths,u=o._length,f=0,!g.shape._mdf&&g.pathsData.length)f=g.totalShapeLength;else{for(h=this.releasePathsData(g.pathsData),c=0;c<u;c+=1)b=bez.getSegmentsLength(o.shapes[c]),h.push(b),f+=b.totalLength;g.totalShapeLength=f,g.pathsData=h}y+=f,g.shape._mdf=!0}var p=r,v=n,m=0,x;for(s=l-1;s>=0;s-=1)if(g=this.shapes[s],g.shape._mdf){for(w=g.localShapeCollection,w.releaseShapes(),this.m===2&&l>1?(x=this.calculateShapeEdges(r,n,g.totalShapeLength,m,y),m+=g.totalShapeLength):x=[[p,v]],u=x.length,c=0;c<u;c+=1){p=x[c][0],v=x[c][1],d.length=0,v<=1?d.push({s:g.totalShapeLength*p,e:g.totalShapeLength*v}):p>=1?d.push({s:g.totalShapeLength*(p-1),e:g.totalShapeLength*(v-1)}):(d.push({s:g.totalShapeLength*p,e:g.totalShapeLength}),d.push({s:0,e:g.totalShapeLength*(v-1)}));var E=this.addShapes(g,d[0]);if(d[0].s!==d[0].e){if(d.length>1){var k=g.shape.paths.shapes[g.shape.paths._length-1];if(k.c){var _=E.pop();this.addPaths(E,w),E=this.addShapes(g,d[1],_)}else this.addPaths(E,w),E=this.addShapes(g,d[1])}this.addPaths(E,w)}}g.shape.paths=w}}},TrimModifier.prototype.addPaths=function(e,r){var n,i=e.length;for(n=0;n<i;n+=1)r.addShape(e[n])},TrimModifier.prototype.addSegment=function(e,r,n,i,a,o,s){a.setXYAt(r[0],r[1],"o",o),a.setXYAt(n[0],n[1],"i",o+1),s&&a.setXYAt(e[0],e[1],"v",o),a.setXYAt(i[0],i[1],"v",o+1)},TrimModifier.prototype.addSegmentFromArray=function(e,r,n,i){r.setXYAt(e[1],e[5],"o",n),r.setXYAt(e[2],e[6],"i",n+1),i&&r.setXYAt(e[0],e[4],"v",n),r.setXYAt(e[3],e[7],"v",n+1)},TrimModifier.prototype.addShapes=function(e,r,n){var i=e.pathsData,a=e.shape.paths.shapes,o,s=e.shape.paths._length,l,c,u=0,h,b,f,y,d=[],g,w=!0;for(n?(b=n._length,g=n._length):(n=shapePool.newElement(),b=0,g=0),d.push(n),o=0;o<s;o+=1){for(f=i[o].lengths,n.c=a[o].c,c=a[o].c?f.length:f.length+1,l=1;l<c;l+=1)if(h=f[l-1],u+h.addedLength<r.s)u+=h.addedLength,n.c=!1;else if(u>r.e){n.c=!1;break}else r.s<=u&&r.e>=u+h.addedLength?(this.addSegment(a[o].v[l-1],a[o].o[l-1],a[o].i[l],a[o].v[l],n,b,w),w=!1):(y=bez.getNewSegment(a[o].v[l-1],a[o].v[l],a[o].o[l-1],a[o].i[l],(r.s-u)/h.addedLength,(r.e-u)/h.addedLength,f[l-1]),this.addSegmentFromArray(y,n,b,w),w=!1,n.c=!1),u+=h.addedLength,b+=1;if(a[o].c&&f.length){if(h=f[l-1],u<=r.e){var p=f[l-1].addedLength;r.s<=u&&r.e>=u+p?(this.addSegment(a[o].v[l-1],a[o].o[l-1],a[o].i[0],a[o].v[0],n,b,w),w=!1):(y=bez.getNewSegment(a[o].v[l-1],a[o].v[0],a[o].o[l-1],a[o].i[0],(r.s-u)/p,(r.e-u)/p,f[l-1]),this.addSegmentFromArray(y,n,b,w),w=!1,n.c=!1)}else n.c=!1;u+=h.addedLength,b+=1}if(n._length&&(n.setXYAt(n.v[g][0],n.v[g][1],"i",g),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),u>r.e)break;o<s-1&&(n=shapePool.newElement(),w=!0,d.push(n),b=0)}return d};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,r.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,r){var n=r/100,i=[0,0],a=e._length,o=0;for(o=0;o<a;o+=1)i[0]+=e.v[o][0],i[1]+=e.v[o][1];i[0]/=a,i[1]/=a;var s=shapePool.newElement();s.c=e.c;var l,c,u,h,b,f;for(o=0;o<a;o+=1)l=e.v[o][0]+(i[0]-e.v[o][0])*n,c=e.v[o][1]+(i[1]-e.v[o][1])*n,u=e.o[o][0]+(i[0]-e.o[o][0])*-n,h=e.o[o][1]+(i[1]-e.o[o][1])*-n,b=e.i[o][0]+(i[0]-e.i[o][0])*-n,f=e.i[o][1]+(i[1]-e.i[o][1])*-n,s.setTripleAt(l,c,u,h,b,f,o);return s},PuckerAndBloatModifier.prototype.processShapes=function(e){var r,n,i=this.shapes.length,a,o,s=this.amount.v;if(s!==0){var l,c;for(n=0;n<i;n+=1){if(l=this.shapes[n],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,r=l.shape.paths.shapes,o=l.shape.paths._length,a=0;a<o;a+=1)c.addShape(this.processPath(r[a],s));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function r(c){var u=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||u,this.a&&c.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&c.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&c.skewFromAxis(-this.sk.v,this.sa.v),this.r?c.rotate(-this.r.v):c.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?c.translate(this.px.v,this.py.v,-this.pz.v):c.translate(this.px.v,this.py.v,0):c.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(c){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||c){var u;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 h,b;if(u=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(h=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/u,0),b=this.p.getValueAtTime(this.p.keyframes[0].t/u,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(h=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/u,0),b=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/u,0)):(h=this.p.pv,b=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/u,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){h=[],b=[];var f=this.px,y=this.py;f._caching.lastFrame+f.offsetTime<=f.keyframes[0].t?(h[0]=f.getValueAtTime((f.keyframes[0].t+.01)/u,0),h[1]=y.getValueAtTime((y.keyframes[0].t+.01)/u,0),b[0]=f.getValueAtTime(f.keyframes[0].t/u,0),b[1]=y.getValueAtTime(y.keyframes[0].t/u,0)):f._caching.lastFrame+f.offsetTime>=f.keyframes[f.keyframes.length-1].t?(h[0]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/u,0),h[1]=y.getValueAtTime(y.keyframes[y.keyframes.length-1].t/u,0),b[0]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-.01)/u,0),b[1]=y.getValueAtTime((y.keyframes[y.keyframes.length-1].t-.01)/u,0)):(h=[f.pv,y.pv],b[0]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-.01)/u,f.offsetTime),b[1]=y.getValueAtTime((y._caching.lastFrame+y.offsetTime-.01)/u,y.offsetTime))}else b=e,h=b;this.v.rotate(-Math.atan2(h[1]-b[1],h[0]-b[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 i(){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 a(){}function o(c){this._addDynamicProperty(c),this.elem.addDynamicProperty(c),this._isDirty=!0}function s(c,u,h){if(this.elem=c,this.frameId=-1,this.propType="transform",this.data=u,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(h||c),u.p&&u.p.s?(this.px=PropertyFactory.getProp(c,u.p.x,0,0,this),this.py=PropertyFactory.getProp(c,u.p.y,0,0,this),u.p.z&&(this.pz=PropertyFactory.getProp(c,u.p.z,0,0,this))):this.p=PropertyFactory.getProp(c,u.p||{k:[0,0,0]},1,0,this),u.rx){if(this.rx=PropertyFactory.getProp(c,u.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(c,u.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(c,u.rz,0,degToRads,this),u.or.k[0].ti){var b,f=u.or.k.length;for(b=0;b<f;b+=1)u.or.k[b].to=null,u.or.k[b].ti=null}this.or=PropertyFactory.getProp(c,u.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(c,u.r||{k:0},0,degToRads,this);u.sk&&(this.sk=PropertyFactory.getProp(c,u.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(c,u.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(c,u.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(c,u.s||{k:[100,100,100]},1,.01,this),u.o?this.o=PropertyFactory.getProp(c,u.o,0,.01,c):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}s.prototype={applyToMatrix:r,getValue:n,precalculateMatrix:i,autoOrient:a},extendPrototype([DynamicPropertyContainer],s),s.prototype.addDynamicProperty=o,s.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function l(c,u,h){return new s(c,u,h)}return{getTransformProperty:l}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,r.c,0,null,this),this.o=PropertyFactory.getProp(e,r.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,r.tr,this),this.so=PropertyFactory.getProp(e,r.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,r.tr.eo,0,.01,this),this.data=r,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(e,r,n,i,a,o){var s=o?-1:1,l=i.s.v[0]+(1-i.s.v[0])*(1-a),c=i.s.v[1]+(1-i.s.v[1])*(1-a);e.translate(i.p.v[0]*s*a,i.p.v[1]*s*a,i.p.v[2]),r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),r.rotate(-i.r.v*s*a),r.translate(i.a.v[0],i.a.v[1],i.a.v[2]),n.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),n.scale(o?1/l:l,o?1/c:c),n.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(e,r,n,i){for(this.elem=e,this.arr=r,this.pos=n,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,r[n]);n>0;)n-=1,this._elements.unshift(r[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var r,n=e.length;for(r=0;r<n;r+=1)e[r]._processed=!1,e[r].ty==="gr"&&this.resetElements(e[r].it)},RepeaterModifier.prototype.cloneElements=function(e){var r=JSON.parse(JSON.stringify(e));return this.resetElements(r),r},RepeaterModifier.prototype.changeGroupRender=function(e,r){var n,i=e.length;for(n=0;n<i;n+=1)e[n]._render=r,e[n].ty==="gr"&&this.changeGroupRender(e[n].it,r)},RepeaterModifier.prototype.processShapes=function(e){var r,n,i,a,o,s=!1;if(this._mdf||e){var l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.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,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),s=!0}o=0;var u;for(i=0;i<=this._groups.length-1;i+=1){if(u=o<l,this._groups[i]._render=u,this.changeGroupRender(this._groups[i].it,u),!u){var h=this.elemsData[i].it,b=h[h.length-1];b.transform.op.v!==0?(b.transform.op._mdf=!0,b.transform.op.v=0):b.transform.op._mdf=!1}o+=1}this._currentCopies=l;var f=this.o.v,y=f%1,d=f>0?Math.floor(f):Math.ceil(f),g=this.pMatrix.props,w=this.rMatrix.props,p=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v=0;if(f>0){for(;v<d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),v+=1;y&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,y,!1),v+=y)}else if(f<0){for(;v>d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),v-=1;y&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-y,!0),v-=y)}i=this.data.m===1?0:this._currentCopies-1,a=this.data.m===1?1:-1,o=this._currentCopies;for(var m,x;o;){if(r=this.elemsData[i].it,n=r[r.length-1].transform.mProps.v.props,x=n.length,r[r.length-1].transform.mProps._mdf=!0,r[r.length-1].transform.op._mdf=!0,r[r.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),v!==0){for((i!==0&&a===1||i!==this._currentCopies-1&&a===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(w[0],w[1],w[2],w[3],w[4],w[5],w[6],w[7],w[8],w[9],w[10],w[11],w[12],w[13],w[14],w[15]),this.matrix.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),m=0;m<x;m+=1)n[m]=this.matrix.props[m];this.matrix.reset()}else for(this.matrix.reset(),m=0;m<x;m+=1)n[m]=this.matrix.props[m];v+=1,o-=1,i+=a}}else for(o=this._currentCopies,i=0,a=1;o;)r=this.elemsData[i].it,n=r[r.length-1].transform.mProps.v.props,r[r.length-1].transform.mProps._mdf=!1,r[r.length-1].transform.op._mdf=!1,o-=1,i+=a;return s},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,r.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,r){var n=shapePool.newElement();n.c=e.c;var i,a=e._length,o,s,l,c,u,h,b=0,f,y,d,g,w,p;for(i=0;i<a;i+=1)o=e.v[i],l=e.o[i],s=e.i[i],o[0]===l[0]&&o[1]===l[1]&&o[0]===s[0]&&o[1]===s[1]?(i===0||i===a-1)&&!e.c?(n.setTripleAt(o[0],o[1],l[0],l[1],s[0],s[1],b),b+=1):(i===0?c=e.v[a-1]:c=e.v[i-1],u=Math.sqrt(Math.pow(o[0]-c[0],2)+Math.pow(o[1]-c[1],2)),h=u?Math.min(u/2,r)/u:0,w=o[0]+(c[0]-o[0])*h,f=w,p=o[1]-(o[1]-c[1])*h,y=p,d=f-(f-o[0])*roundCorner,g=y-(y-o[1])*roundCorner,n.setTripleAt(f,y,d,g,w,p,b),b+=1,i===a-1?c=e.v[0]:c=e.v[i+1],u=Math.sqrt(Math.pow(o[0]-c[0],2)+Math.pow(o[1]-c[1],2)),h=u?Math.min(u/2,r)/u:0,d=o[0]+(c[0]-o[0])*h,f=d,g=o[1]+(c[1]-o[1])*h,y=g,w=f-(f-o[0])*roundCorner,p=y-(y-o[1])*roundCorner,n.setTripleAt(f,y,d,g,w,p,b),b+=1):(n.setTripleAt(e.v[i][0],e.v[i][1],e.o[i][0],e.o[i][1],e.i[i][0],e.i[i][1],b),b+=1);return n},RoundCornersModifier.prototype.processShapes=function(e){var r,n,i=this.shapes.length,a,o,s=this.rd.v;if(s!==0){var l,c;for(n=0;n<i;n+=1){if(l=this.shapes[n],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,r=l.shape.paths.shapes,o=l.shape.paths._length,a=0;a<o;a+=1)c.addShape(this.processPath(r[a],s));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,r){return Math.abs(e-r)*1e5<=Math.min(Math.abs(e),Math.abs(r))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,r,n){return e*(1-n)+r*n}function lerpPoint(e,r,n){return[lerp(e[0],r[0],n),lerp(e[1],r[1],n)]}function quadRoots(e,r,n){if(e===0)return[];var i=r*r-4*e*n;if(i<0)return[];var a=-r/(2*e);if(i===0)return[a];var o=Math.sqrt(i)/(2*e);return[a-o,a+o]}function polynomialCoefficients(e,r,n,i){return[-e+3*r-3*n+i,3*e-6*r+3*n,-3*e+3*r,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,r,n,i,a){a&&pointEqual(e,r)&&(r=lerpPoint(e,i,1/3)),a&&pointEqual(n,i)&&(n=lerpPoint(e,i,2/3));var o=polynomialCoefficients(e[0],r[0],n[0],i[0]),s=polynomialCoefficients(e[1],r[1],n[1],i[1]);this.a=[o[0],s[0]],this.b=[o[1],s[1]],this.c=[o[2],s[2]],this.d=[o[3],s[3]],this.points=[e,r,n,i]}PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var r=this.derivative(e);return Math.atan2(r[1],r[0])},PolynomialBezier.prototype.normalAngle=function(e){var r=this.derivative(e);return Math.atan2(r[0],r[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var r=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=r*r-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var i=Math.sqrt(n);return floatZero(i)?i>0&&i<1?[r]:[]:[r-i,r+i].filter(function(a){return a>0&&a<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var r=lerpPoint(this.points[0],this.points[1],e),n=lerpPoint(this.points[1],this.points[2],e),i=lerpPoint(this.points[2],this.points[3],e),a=lerpPoint(r,n,e),o=lerpPoint(n,i,e),s=lerpPoint(a,o,e);return[new PolynomialBezier(this.points[0],r,a,s,!0),new PolynomialBezier(s,o,i,this.points[3],!0)]};function extrema(e,r){var n=e.points[0][r],i=e.points[e.points.length-1][r];if(n>i){var a=i;i=n,n=a}for(var o=quadRoots(3*e.a[r],2*e.b[r],e.c[r]),s=0;s<o.length;s+=1)if(o[s]>0&&o[s]<1){var l=e.point(o[s])[r];l<n?n=l:l>i&&(i=l)}return{min:n,max:i}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,r,n){var i=e.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:e,t:(r+n)/2,t1:r,t2:n}}function splitData(e){var r=e.bez.split(.5);return[intersectData(r[0],e.t1,e.t),intersectData(r[1],e.t,e.t2)]}function boxIntersect(e,r){return Math.abs(e.cx-r.cx)*2<e.width+r.width&&Math.abs(e.cy-r.cy)*2<e.height+r.height}function intersectsImpl(e,r,n,i,a,o){if(boxIntersect(e,r)){if(n>=o||e.width<=i&&e.height<=i&&r.width<=i&&r.height<=i){a.push([e.t,r.t]);return}var s=splitData(e),l=splitData(r);intersectsImpl(s[0],l[0],n+1,i,a,o),intersectsImpl(s[0],l[1],n+1,i,a,o),intersectsImpl(s[1],l[0],n+1,i,a,o),intersectsImpl(s[1],l[1],n+1,i,a,o)}}PolynomialBezier.prototype.intersections=function(e,r,n){r===void 0&&(r=2),n===void 0&&(n=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,r,i,n),i},PolynomialBezier.shapeSegment=function(e,r){var n=(r+1)%e.length();return new PolynomialBezier(e.v[r],e.o[r],e.i[n],e.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(e,r){var n=(r+1)%e.length();return new PolynomialBezier(e.v[n],e.i[n],e.o[r],e.v[r],!0)};function crossProduct(e,r){return[e[1]*r[2]-e[2]*r[1],e[2]*r[0]-e[0]*r[2],e[0]*r[1]-e[1]*r[0]]}function lineIntersection(e,r,n,i){var a=[e[0],e[1],1],o=[r[0],r[1],1],s=[n[0],n[1],1],l=[i[0],i[1],1],c=crossProduct(crossProduct(a,o),crossProduct(s,l));return floatZero(c[2])?null:[c[0]/c[2],c[1]/c[2]]}function polarOffset(e,r,n){return[e[0]+Math.cos(r)*n,e[1]-Math.sin(r)*n]}function pointDistance(e,r){return Math.hypot(e[0]-r[0],e[1]-r[1])}function pointEqual(e,r){return floatEqual(e[0],r[0])&&floatEqual(e[1],r[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,r.s,0,null,this),this.frequency=PropertyFactory.getProp(e,r.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,r.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,r,n,i,a,o,s){var l=n-Math.PI/2,c=n+Math.PI/2,u=r[0]+Math.cos(n)*i*a,h=r[1]-Math.sin(n)*i*a;e.setTripleAt(u,h,u+Math.cos(l)*o,h-Math.sin(l)*o,u+Math.cos(c)*s,h-Math.sin(c)*s,e.length())}function getPerpendicularVector(e,r){var n=[r[0]-e[0],r[1]-e[1]],i=-Math.PI*.5,a=[Math.cos(i)*n[0]-Math.sin(i)*n[1],Math.sin(i)*n[0]+Math.cos(i)*n[1]];return a}function getProjectingAngle(e,r){var n=r===0?e.length()-1:r-1,i=(r+1)%e.length(),a=e.v[n],o=e.v[i],s=getPerpendicularVector(a,o);return Math.atan2(0,1)-Math.atan2(s[1],s[0])}function zigZagCorner(e,r,n,i,a,o,s){var l=getProjectingAngle(r,n),c=r.v[n%r._length],u=r.v[n===0?r._length-1:n-1],h=r.v[(n+1)%r._length],b=o===2?Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)):0,f=o===2?Math.sqrt(Math.pow(c[0]-h[0],2)+Math.pow(c[1]-h[1],2)):0;setPoint(e,r.v[n%r._length],l,s,i,f/((a+1)*2),b/((a+1)*2))}function zigZagSegment(e,r,n,i,a,o){for(var s=0;s<i;s+=1){var l=(s+1)/(i+1),c=a===2?Math.sqrt(Math.pow(r.points[3][0]-r.points[0][0],2)+Math.pow(r.points[3][1]-r.points[0][1],2)):0,u=r.normalAngle(l),h=r.point(l);setPoint(e,h,u,o,n,c/((i+1)*2),c/((i+1)*2)),o=-o}return o}ZigZagModifier.prototype.processPath=function(e,r,n,i){var a=e._length,o=shapePool.newElement();if(o.c=e.c,e.c||(a-=1),a===0)return o;var s=-1,l=PolynomialBezier.shapeSegment(e,0);zigZagCorner(o,e,0,r,n,i,s);for(var c=0;c<a;c+=1)s=zigZagSegment(o,l,r,n,i,-s),c===a-1&&!e.c?l=null:l=PolynomialBezier.shapeSegment(e,(c+1)%a),zigZagCorner(o,e,c+1,r,n,i,s);return o},ZigZagModifier.prototype.processShapes=function(e){var r,n,i=this.shapes.length,a,o,s=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(s!==0){var u,h;for(n=0;n<i;n+=1){if(u=this.shapes[n],h=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(h.releaseShapes(),u.shape._mdf=!0,r=u.shape.paths.shapes,o=u.shape.paths._length,a=0;a<o;a+=1)h.addShape(this.processPath(r[a],s,l,c));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,r,n){var i=Math.atan2(r[0]-e[0],r[1]-e[1]);return[polarOffset(e,i,n),polarOffset(r,i,n)]}function offsetSegment(e,r){var n,i,a,o,s,l,c;c=linearOffset(e.points[0],e.points[1],r),n=c[0],i=c[1],c=linearOffset(e.points[1],e.points[2],r),a=c[0],o=c[1],c=linearOffset(e.points[2],e.points[3],r),s=c[0],l=c[1];var u=lineIntersection(n,i,a,o);u===null&&(u=i);var h=lineIntersection(s,l,a,o);return h===null&&(h=s),new PolynomialBezier(n,u,h,l)}function joinLines(e,r,n,i,a){var o=r.points[3],s=n.points[0];if(i===3||pointEqual(o,s))return o;if(i===2){var l=-r.tangentAngle(1),c=-n.tangentAngle(0)+Math.PI,u=lineIntersection(o,polarOffset(o,l+Math.PI/2,100),s,polarOffset(s,l+Math.PI/2,100)),h=u?pointDistance(u,o):pointDistance(o,s)/2,b=polarOffset(o,l,2*h*roundCorner);return e.setXYAt(b[0],b[1],"o",e.length()-1),b=polarOffset(s,c,2*h*roundCorner),e.setTripleAt(s[0],s[1],s[0],s[1],b[0],b[1],e.length()),s}var f=pointEqual(o,r.points[2])?r.points[0]:r.points[2],y=pointEqual(s,n.points[1])?n.points[3]:n.points[1],d=lineIntersection(f,o,s,y);return d&&pointDistance(d,o)<a?(e.setTripleAt(d[0],d[1],d[0],d[1],d[0],d[1],e.length()),d):o}function getIntersection(e,r){var n=e.intersections(r);return n.length&&floatEqual(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pruneSegmentIntersection(e,r){var n=e.slice(),i=r.slice(),a=getIntersection(e[e.length-1],r[0]);return a&&(n[e.length-1]=e[e.length-1].split(a[0])[0],i[0]=r[0].split(a[1])[1]),e.length>1&&r.length>1&&(a=getIntersection(e[0],r[r.length-1]),a)?[[e[0].split(a[0])[0]],[r[r.length-1].split(a[1])[1]]]:[n,i]}function pruneIntersections(e){for(var r,n=1;n<e.length;n+=1)r=pruneSegmentIntersection(e[n-1],e[n]),e[n-1]=r[0],e[n]=r[1];return e.length>1&&(r=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=r[0],e[0]=r[1]),e}function offsetSegmentSplit(e,r){var n=e.inflectionPoints(),i,a,o,s;if(n.length===0)return[offsetSegment(e,r)];if(n.length===1||floatEqual(n[1],1))return o=e.split(n[0]),i=o[0],a=o[1],[offsetSegment(i,r),offsetSegment(a,r)];o=e.split(n[0]),i=o[0];var l=(n[1]-n[0])/(1-n[0]);return o=o[1].split(l),s=o[0],a=o[1],[offsetSegment(i,r),offsetSegment(s,r),offsetSegment(a,r)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,r.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,r.ml,0,null,this),this.lineJoin=r.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,r,n,i){var a=shapePool.newElement();a.c=e.c;var o=e.length();e.c||(o-=1);var s,l,c,u=[];for(s=0;s<o;s+=1)c=PolynomialBezier.shapeSegment(e,s),u.push(offsetSegmentSplit(c,r));if(!e.c)for(s=o-1;s>=0;s-=1)c=PolynomialBezier.shapeSegmentInverted(e,s),u.push(offsetSegmentSplit(c,r));u=pruneIntersections(u);var h=null,b=null;for(s=0;s<u.length;s+=1){var f=u[s];for(b&&(h=joinLines(a,b,f[0],n,i)),b=f[f.length-1],l=0;l<f.length;l+=1)c=f[l],h&&pointEqual(c.points[0],h)?a.setXYAt(c.points[1][0],c.points[1][1],"o",a.length()-1):a.setTripleAt(c.points[0][0],c.points[0][1],c.points[1][0],c.points[1][1],c.points[0][0],c.points[0][1],a.length()),a.setTripleAt(c.points[3][0],c.points[3][1],c.points[3][0],c.points[3][1],c.points[2][0],c.points[2][1],a.length()),h=c.points[3]}return u.length&&joinLines(a,b,u[0][0],n,i),a},OffsetPathModifier.prototype.processShapes=function(e){var r,n,i=this.shapes.length,a,o,s=this.amount.v,l=this.miterLimit.v,c=this.lineJoin;if(s!==0){var u,h;for(n=0;n<i;n+=1){if(u=this.shapes[n],h=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(h.releaseShapes(),u.shape._mdf=!0,r=u.shape.paths.shapes,o=u.shape.paths._length,a=0;a<o;a+=1)h.addShape(this.processPath(r[a],s,c,l));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var r=e.fStyle?e.fStyle.split(" "):[],n="normal",i="normal",a=r.length,o,s=0;s<a;s+=1)switch(o=r[s].toLowerCase(),o){case"italic":i="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break}return{style:i,weight:e.fWeight||n}}var FontManager=function(){var e=5e3,r={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.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 i=127988,a=917631,o=917601,s=917626,l=65039,c=8205,u=127462,h=127487,b=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function f(P){var I=P.split(","),C,S=I.length,R=[];for(C=0;C<S;C+=1)I[C]!=="sans-serif"&&I[C]!=="monospace"&&R.push(I[C]);return R.join(",")}function y(P,I){var C=createTag("span");C.setAttribute("aria-hidden",!0),C.style.fontFamily=I;var S=createTag("span");S.innerText="giItT1WQy@!-/#",C.style.position="absolute",C.style.left="-10000px",C.style.top="-10000px",C.style.fontSize="300px",C.style.fontVariant="normal",C.style.fontStyle="normal",C.style.fontWeight="normal",C.style.letterSpacing="0",C.appendChild(S),document.body.appendChild(C);var R=S.offsetWidth;return S.style.fontFamily=f(P)+", "+I,{node:S,w:R,parent:C}}function d(){var P,I=this.fonts.length,C,S,R=I;for(P=0;P<I;P+=1)this.fonts[P].loaded?R-=1:this.fonts[P].fOrigin==="n"||this.fonts[P].origin===0?this.fonts[P].loaded=!0:(C=this.fonts[P].monoCase.node,S=this.fonts[P].monoCase.w,C.offsetWidth!==S?(R-=1,this.fonts[P].loaded=!0):(C=this.fonts[P].sansCase.node,S=this.fonts[P].sansCase.w,C.offsetWidth!==S&&(R-=1,this.fonts[P].loaded=!0)),this.fonts[P].loaded&&(this.fonts[P].sansCase.parent.parentNode.removeChild(this.fonts[P].sansCase.parent),this.fonts[P].monoCase.parent.parentNode.removeChild(this.fonts[P].monoCase.parent)));R!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function g(P,I){var C=document.body&&I?"svg":"canvas",S,R=getFontProperties(P);if(C==="svg"){var A=createNS("text");A.style.fontSize="100px",A.setAttribute("font-family",P.fFamily),A.setAttribute("font-style",R.style),A.setAttribute("font-weight",R.weight),A.textContent="1",P.fClass?(A.style.fontFamily="inherit",A.setAttribute("class",P.fClass)):A.style.fontFamily=P.fFamily,I.appendChild(A),S=A}else{var q=new OffscreenCanvas(500,500).getContext("2d");q.font=R.style+" "+R.weight+" 100px "+P.fFamily,S=q}function H(G){return C==="svg"?(S.textContent=G,S.getComputedTextLength()):S.measureText(G).width}return{measureText:H}}function w(P,I){if(!P){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=P.list;return}if(!document.body){this.isLoaded=!0,P.list.forEach(function($){$.helper=g($),$.cache={}}),this.fonts=P.list;return}var C=P.list,S,R=C.length,A=R;for(S=0;S<R;S+=1){var q=!0,H,G;if(C[S].loaded=!1,C[S].monoCase=y(C[S].fFamily,"monospace"),C[S].sansCase=y(C[S].fFamily,"sans-serif"),!C[S].fPath)C[S].loaded=!0,A-=1;else if(C[S].fOrigin==="p"||C[S].origin===3){if(H=document.querySelectorAll('style[f-forigin="p"][f-family="'+C[S].fFamily+'"], style[f-origin="3"][f-family="'+C[S].fFamily+'"]'),H.length>0&&(q=!1),q){var U=createTag("style");U.setAttribute("f-forigin",C[S].fOrigin),U.setAttribute("f-origin",C[S].origin),U.setAttribute("f-family",C[S].fFamily),U.type="text/css",U.innerText="@font-face {font-family: "+C[S].fFamily+"; font-style: normal; src: url('"+C[S].fPath+"');}",I.appendChild(U)}}else if(C[S].fOrigin==="g"||C[S].origin===1){for(H=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),G=0;G<H.length;G+=1)H[G].href.indexOf(C[S].fPath)!==-1&&(q=!1);if(q){var j=createTag("link");j.setAttribute("f-forigin",C[S].fOrigin),j.setAttribute("f-origin",C[S].origin),j.type="text/css",j.rel="stylesheet",j.href=C[S].fPath,document.body.appendChild(j)}}else if(C[S].fOrigin==="t"||C[S].origin===2){for(H=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),G=0;G<H.length;G+=1)C[S].fPath===H[G].src&&(q=!1);if(q){var V=createTag("link");V.setAttribute("f-forigin",C[S].fOrigin),V.setAttribute("f-origin",C[S].origin),V.setAttribute("rel","stylesheet"),V.setAttribute("href",C[S].fPath),I.appendChild(V)}}C[S].helper=g(C[S],I),C[S].cache={},this.fonts.push(C[S])}A===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function p(P){if(P){this.chars||(this.chars=[]);var I,C=P.length,S,R=this.chars.length,A;for(I=0;I<C;I+=1){for(S=0,A=!1;S<R;)this.chars[S].style===P[I].style&&this.chars[S].fFamily===P[I].fFamily&&this.chars[S].ch===P[I].ch&&(A=!0),S+=1;A||(this.chars.push(P[I]),R+=1)}}}function v(P,I,C){for(var S=0,R=this.chars.length;S<R;){if(this.chars[S].ch===P&&this.chars[S].style===I&&this.chars[S].fFamily===C)return this.chars[S];S+=1}return(typeof P=="string"&&P.charCodeAt(0)!==13||!P)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",P,I,C)),r}function m(P,I,C){var S=this.getFontByName(I),R=P;if(!S.cache[R]){var A=S.helper;if(P===" "){var q=A.measureText("|"+P+"|"),H=A.measureText("||");S.cache[R]=(q-H)/100}else S.cache[R]=A.measureText(P)/100}return S.cache[R]*C}function x(P){for(var I=0,C=this.fonts.length;I<C;){if(this.fonts[I].fName===P)return this.fonts[I];I+=1}return this.fonts[0]}function E(P){var I=0,C=P.charCodeAt(0);if(C>=55296&&C<=56319){var S=P.charCodeAt(1);S>=56320&&S<=57343&&(I=(C-55296)*1024+S-56320+65536)}return I}function k(P,I){var C=P.toString(16)+I.toString(16);return b.indexOf(C)!==-1}function _(P){return P===c}function T(P){return P===l}function B(P){var I=E(P);return I>=u&&I<=h}function M(P){return B(P.substr(0,2))&&B(P.substr(2,2))}function F(P){return n.indexOf(P)!==-1}function O(P,I){var C=E(P.substr(I,2));if(C!==i)return!1;var S=0;for(I+=2;S<5;){if(C=E(P.substr(I,2)),C<o||C>s)return!1;S+=1,I+=2}return E(P.substr(I,2))===a}function D(){this.isLoaded=!0}var N=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)};N.isModifier=k,N.isZeroWidthJoiner=_,N.isFlagEmoji=M,N.isRegionalCode=B,N.isCombinedCharacter=F,N.isRegionalFlag=O,N.isVariationSelector=T,N.BLACK_FLAG_CODE_POINT=i;var L={addChars:p,addFonts:w,getCharData:v,getFontByName:x,measureText:m,checkLoadedFonts:d,setIsLoaded:D};return N.prototype=L,N}();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(r){this.renderableComponents.indexOf(r)===-1&&this.renderableComponents.push(r)},removeRenderableComponent:function(r){this.renderableComponents.indexOf(r)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(r),1)},prepareRenderableFrame:function(r){this.checkLayerLimits(r)},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(r){this.data.ip-this.data.st<=r&&this.data.op-this.data.st>r?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 r,n=this.renderableComponents.length;for(r=0;r<n;r+=1)this.renderableComponents[r].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 e={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(r){return e[r]||""}}();function SliderEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,0,0,n)}function AngleEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,0,0,n)}function ColorEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,1,0,n)}function PointEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,1,0,n)}function LayerIndexEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,0,0,n)}function MaskIndexEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,0,0,n)}function CheckboxEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(e,r){var n=e.ef||[];this.effectElements=[];var i,a=n.length,o;for(i=0;i<a;i+=1)o=new GroupEffect(n[i],r),this.effectElements.push(o)}function GroupEffect(e,r){this.init(e,r)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,r){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(r);var n,i=this.data.ef.length,a,o=this.data.ef;for(n=0;n<i;n+=1){switch(a=null,o[n].ty){case 0:a=new SliderEffect(o[n],r,this);break;case 1:a=new AngleEffect(o[n],r,this);break;case 2:a=new ColorEffect(o[n],r,this);break;case 3:a=new PointEffect(o[n],r,this);break;case 4:case 7:a=new CheckboxEffect(o[n],r,this);break;case 10:a=new LayerIndexEffect(o[n],r,this);break;case 11:a=new MaskIndexEffect(o[n],r,this);break;case 5:a=new EffectsManager(o[n],r);break;default:a=new NoValueEffect(o[n]);break}a&&this.effectElements.push(a)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var r=0,n=this.data.masksProperties.length;r<n;){if(this.data.masksProperties[r].mode!=="n"&&this.data.masksProperties[r].cl!==!1)return!0;r+=1}return!1},initExpressions:function(){var r=getExpressionInterfaces();if(r){var n=r("layer"),i=r("effects"),a=r("shape"),o=r("text"),s=r("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var l=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(l),this.data.ty===0||this.data.xt?this.compInterface=s(this):this.data.ty===4?(this.layerInterface.shapeInterface=a(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=o(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var r=getBlendMode(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=r},initBaseData:function(r,n,i){this.globalData=n,this.comp=i,this.data=r,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(r,n){var i,a=this.dynamicProperties.length;for(i=0;i<a;i+=1)(n||this._isParent&&this.dynamicProperties[i].propType==="transform")&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&this.dynamicProperties.push(r)}};function FootageElement(e,r,n){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(e.refId),this.footageData=r.imageLoader.getAsset(this.assetData),this.initBaseData(e,r,n)}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 e=getExpressionInterfaces();if(e){var r=e("footage");this.layerInterface=r(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,r,n){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(e.refId),this.initBaseData(e,r,n),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,r.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var r=this.tm.v;this._currentTime=r}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},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(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*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(e){var r,n=this.layers.length,i;for(this.completeLayers=!0,r=n-1;r>=0;r-=1)this.elements[r]||(i=this.layers[r],i.ip-i.st<=e-this.layers[r].st&&i.op-i.st>e-this.layers[r].st&&this.buildItem(r)),this.completeLayers=this.elements[r]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var r,n=e.length,i,a=this.layers.length;for(r=0;r<n;r+=1)for(i=0;i<a;){if(this.layers[i].id===e[r].id){this.layers[i]=e[r];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,r,n){for(var i=this.elements,a=this.layers,o=0,s=a.length;o<s;)a[o].ind==r&&(!i[o]||i[o]===!0?(this.buildItem(o),this.addPendingElement(e)):(n.push(i[o]),i[o].setAsParent(),a[o].parent!==void 0?this.buildElementParenting(e,a[o].parent,n):e.setHierarchy(n))),o+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var r,n=e.length;for(r=0;r<n;r+=1)if(e[r].xt){var i=this.createComp(e[r]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(e){var r,n=this.elements.length;for(r=0;r<n;r+=1)if(this.elements[r].data.ind===e)return this.elements[r];return null},BaseRenderer.prototype.getElementByPath=function(e){var r=e.shift(),n;if(typeof r=="number")n=this.elements[r];else{var i,a=this.elements.length;for(i=0;i<a;i+=1)if(this.elements[i].data.nm===r){n=this.elements[i];break}}return e.length===0?n:n.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,r){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,r),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=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var r=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:r,localMat:r,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 r,n=this.finalTransform.mat,i=0,a=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<a;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(r=this.finalTransform.mProp.v.props,n.cloneFromProps(r),i=0;i<a;i+=1)n.multiply(this.hierarchy[i].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 r=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;r<n;)this.localTransforms[r]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[r]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),r+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),r=1;r<n;r+=1){var a=this.localTransforms[r].matrix;i.multiply(a)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var o=this.finalTransform.localOpacity;for(r=0;r<n;r+=1)o*=this.localTransforms[r].opacity*.01;this.finalTransform.localOpacity=o}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var r=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(r.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var n=0,i=r.length;for(n=0;n<i;n+=1)this.localTransforms.push(r[n])}}},globalToLocal:function(r){var n=[];n.push(this.finalTransform);for(var i=!0,a=this.comp;i;)a.finalTransform?(a.data.hasMask&&n.splice(0,0,a.finalTransform),a=a.comp):i=!1;var o,s=n.length,l;for(o=0;o<s;o+=1)l=n[o].mat.applyToPointArray(0,0,0),r=[r[0]-l[0],r[1]-l[1],0];return r},mHelper:new Matrix};function MaskElement(e,r,n){this.data=e,this.element=r,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i=this.globalData.defs,a,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var s,l=this.masksProperties,c=0,u=[],h,b,f=createElementID(),y,d,g,w,p="clipPath",v="clip-path";for(a=0;a<o;a+=1)if((l[a].mode!=="a"&&l[a].mode!=="n"||l[a].inv||l[a].o.k!==100||l[a].o.x)&&(p="mask",v="mask"),(l[a].mode==="s"||l[a].mode==="i")&&c===0?(y=createNS("rect"),y.setAttribute("fill","#ffffff"),y.setAttribute("width",this.element.comp.data.w||0),y.setAttribute("height",this.element.comp.data.h||0),u.push(y)):y=null,s=createNS("path"),l[a].mode==="n")this.viewData[a]={op:PropertyFactory.getProp(this.element,l[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[a],3),elem:s,lastPath:""},i.appendChild(s);else{c+=1,s.setAttribute("fill",l[a].mode==="s"?"#000000":"#ffffff"),s.setAttribute("clip-rule","nonzero");var m;if(l[a].x.k!==0?(p="mask",v="mask",w=PropertyFactory.getProp(this.element,l[a].x,0,null,this.element),m=createElementID(),d=createNS("filter"),d.setAttribute("id",m),g=createNS("feMorphology"),g.setAttribute("operator","erode"),g.setAttribute("in","SourceGraphic"),g.setAttribute("radius","0"),d.appendChild(g),i.appendChild(d),s.setAttribute("stroke",l[a].mode==="s"?"#000000":"#ffffff")):(g=null,w=null),this.storedData[a]={elem:s,x:w,expan:g,lastPath:"",lastOperator:"",filterId:m,lastRadius:0},l[a].mode==="i"){b=u.length;var x=createNS("g");for(h=0;h<b;h+=1)x.appendChild(u[h]);var E=createNS("mask");E.setAttribute("mask-type","alpha"),E.setAttribute("id",f+"_"+c),E.appendChild(s),i.appendChild(E),x.setAttribute("mask","url("+getLocationHref()+"#"+f+"_"+c+")"),u.length=0,u.push(x)}else u.push(s);l[a].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[a]={elem:s,lastPath:"",op:PropertyFactory.getProp(this.element,l[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[a],3),invRect:y},this.viewData[a].prop.k||this.drawPath(l[a],this.viewData[a].prop.v,this.viewData[a])}for(this.maskElement=createNS(p),o=u.length,a=0;a<o;a+=1)this.maskElement.appendChild(u[a]);c>0&&(this.maskElement.setAttribute("id",f),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+f+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var r=this.element.finalTransform.mat,n,i=this.masksProperties.length;for(n=0;n<i;n+=1)if((this.viewData[n].prop._mdf||e)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||e)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[n].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||e))){var a=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[n].filterId+")")),a.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},MaskElement.prototype.drawPath=function(e,r,n){var i=" M"+r.v[0][0]+","+r.v[0][1],a,o;for(o=r._length,a=1;a<o;a+=1)i+=" C"+r.o[a-1][0]+","+r.o[a-1][1]+" "+r.i[a][0]+","+r.i[a][1]+" "+r.v[a][0]+","+r.v[a][1];if(r.c&&o>1&&(i+=" C"+r.o[a-1][0]+","+r.o[a-1][1]+" "+r.i[0][0]+","+r.i[0][1]+" "+r.v[0][0]+","+r.v[0][1]),n.lastPath!==i){var s="";n.elem&&(r.c&&(s=e.inv?this.solidPath+i:i),n.elem.setAttribute("d",s)),n.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={};e.createFilter=r,e.createAlphaToLuminanceFilter=n;function r(i,a){var o=createNS("filter");return o.setAttribute("id",i),a!==!0&&(o.setAttribute("filterUnits","objectBoundingBox"),o.setAttribute("x","0%"),o.setAttribute("y","0%"),o.setAttribute("width","100%"),o.setAttribute("height","100%")),o}function n(){var i=createNS("feColorMatrix");return i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),i}return e}(),featureSupport=function(){var e={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))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var r,n="SourceGraphic",i=e.data.ef?e.data.ef.length:0,a=createElementID(),o=filtersFactory.createFilter(a,!0),s=0;this.filters=[];var l;for(r=0;r<i;r+=1){l=null;var c=e.data.ef[r].ty;if(registeredEffects$1[c]){var u=registeredEffects$1[c].effect;l=new u(o,e.effectsManager.effectElements[r],e,idPrefix+s,n),n=idPrefix+s,registeredEffects$1[c].countsAsEffect&&(s+=1)}l&&this.filters.push(l)}s&&(e.globalData.defs.appendChild(o),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+a+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var r,n=this.filters.length;for(r=0;r<n;r+=1)this.filters[r].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var r,n=this.filters.length,i=[];for(r=0;r<n;r+=1)this.filters[r].type===e&&i.push(this.filters[r]);return i};function registerEffect$1(e,r,n){registeredEffects$1[e]={effect:r,countsAsEffect:n}}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 r=null;if(this.data.td){this.matteMasks={};var n=createNS("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),r=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),r=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 i=createNS("clipPath"),a=createNS("path");a.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var o=createElementID();if(i.setAttribute("id",o),i.appendChild(a),this.globalData.defs.appendChild(i),this.checkMasks()){var s=createNS("g");s.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),s.appendChild(this.layerElement),this.transformedElement=s,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")")}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(r){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[r]){var n=this.layerId+"_"+r,i,a,o,s;if(r===1||r===3){var l=createNS("mask");l.setAttribute("id",n),l.setAttribute("mask-type",r===3?"luminance":"alpha"),o=createNS("use"),o.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(o),this.globalData.defs.appendChild(l),!featureSupport.maskType&&r===1&&(l.setAttribute("mask-type","luminance"),i=createElementID(),a=filtersFactory.createFilter(i),this.globalData.defs.appendChild(a),a.appendChild(filtersFactory.createAlphaToLuminanceFilter()),s=createNS("g"),s.appendChild(o),l.appendChild(s),s.setAttribute("filter","url("+getLocationHref()+"#"+i+")"))}else if(r===2){var c=createNS("mask");c.setAttribute("id",n),c.setAttribute("mask-type","alpha");var u=createNS("g");c.appendChild(u),i=createElementID(),a=filtersFactory.createFilter(i);var h=createNS("feComponentTransfer");h.setAttribute("in","SourceGraphic"),a.appendChild(h);var b=createNS("feFuncA");b.setAttribute("type","table"),b.setAttribute("tableValues","1.0 0.0"),h.appendChild(b),this.globalData.defs.appendChild(a);var f=createNS("rect");f.setAttribute("width",this.comp.data.w),f.setAttribute("height",this.comp.data.h),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("fill","#ffffff"),f.setAttribute("opacity","0"),u.setAttribute("filter","url("+getLocationHref()+"#"+i+")"),u.appendChild(f),o=createNS("use"),o.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),u.appendChild(o),featureSupport.maskType||(c.setAttribute("mask-type","luminance"),a.appendChild(filtersFactory.createAlphaToLuminanceFilter()),s=createNS("g"),u.appendChild(f),s.appendChild(this.layerElement),u.appendChild(s)),this.globalData.defs.appendChild(c)}this.matteMasks[r]=n}return this.matteMasks[r]},setMatte:function(r){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+r+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(r){this.hierarchy=r},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var e={initElement:function(n,i,a){this.initFrame(),this.initBaseData(n,i,a),this.initTransform(n,i,a),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.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(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,r,n){this.assetData=r.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=r.slotManager.getProp(this.assetData)),this.initElement(e,r,n),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 e=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",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(e,r){this.elem=e,this.pos=r}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(r){var n,i=this.shapeModifiers.length;for(n=0;n<i;n+=1)this.shapeModifiers[n].addShape(r)},isShapeInAnimatedModifiers:function(r){for(var n=0,i=this.shapeModifiers.length;n<i;)if(this.shapeModifiers[n].isAnimatedWithShape(r))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var r,n=this.shapes.length;for(r=0;r<n;r+=1)this.shapes[r].sh.reset();n=this.shapeModifiers.length;var i;for(r=n-1;r>=0&&(i=this.shapeModifiers[r].processShapes(this._isFirstFrame),!i);r-=1);}},searchProcessedElement:function(r){for(var n=this.processedElements,i=0,a=n.length;i<a;){if(n[i].elem===r)return n[i].pos;i+=1}return 0},addProcessedElement:function(r,n){for(var i=this.processedElements,a=i.length;a;)if(a-=1,i[a].elem===r){i[a].pos=n;return}i.push(new ProcessedElement(r,n))},prepareFrame:function(r){this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,r,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=r,this._isAnimated=!!n.k;for(var i=0,a=e.length;i<a;){if(e[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,r){this.data=e,this.type=e.ty,this.d="",this.lvl=r,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,r,n,i){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(r.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",r.length?r.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var a,o=r.length||0,s;for(a=0;a<o;a+=1)s=PropertyFactory.getProp(e,r[a].v,0,0,this),this.k=s.k||this.k,this.dataProps[a]={n:r[a].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var r=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),r=0;r<n;r+=1)this.dataProps[r].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[r].p.v:this.dashArray[r]=this.dataProps[r].p.v:this.dashoffset[0]=this.dataProps[r].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,r,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,r.o,0,.01,this),this.w=PropertyFactory.getProp(e,r.w,0,null,this),this.d=new DashProperty(e,r.d||{},"svg",this),this.c=PropertyFactory.getProp(e,r.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,r,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,r.o,0,.01,this),this.c=PropertyFactory.getProp(e,r.c,1,255,this),this.style=n}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,r,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,r,n){this.data=r,this.c=createTypedArray("uint8c",r.p*4);var i=r.k.k[0].s?r.k.k[0].s.length-r.p*4:r.k.k.length-r.p*4;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(e,r.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,r){for(var n=0,i=this.o.length/2,a;n<i;){if(a=Math.abs(e[n*4]-e[r*4+n*2]),a>.01)return!1;n+=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 e=0,r=this.data.k.k.length;e<r;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var r,n=this.data.p*4,i,a;for(r=0;r<n;r+=1)i=r%4===0?100:255,a=Math.round(this.prop.v[r]*i),this.c[r]!==a&&(this.c[r]=a,this._cmdf=!e);if(this.o.length)for(n=this.prop.v.length,r=this.data.p*4;r<n;r+=1)i=r%2===0?100:1,a=r%2===0?Math.round(this.prop.v[r]*100):this.prop.v[r],this.o[r-this.data.p*4]!==a&&(this.o[r-this.data.p*4]=a,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,r,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,r,n)}SVGGradientFillStyleData.prototype.initGradientData=function(e,r,n){this.o=PropertyFactory.getProp(e,r.o,0,.01,this),this.s=PropertyFactory.getProp(e,r.s,1,null,this),this.e=PropertyFactory.getProp(e,r.e,1,null,this),this.h=PropertyFactory.getProp(e,r.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,r.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,r.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,r),this.setGradientOpacity(r,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,r){var n=createElementID(),i=createNS(r.t===1?"linearGradient":"radialGradient");i.setAttribute("id",n),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var a=[],o,s,l;for(l=r.g.p*4,s=0;s<l;s+=4)o=createNS("stop"),i.appendChild(o),a.push(o);e.setAttribute(r.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=i,this.cst=a},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,r){if(this.g._hasOpacity&&!this.g._collapsable){var n,i,a,o=createNS("mask"),s=createNS("path");o.appendChild(s);var l=createElementID(),c=createElementID();o.setAttribute("id",c);var u=createNS(e.t===1?"linearGradient":"radialGradient");u.setAttribute("id",l),u.setAttribute("spreadMethod","pad"),u.setAttribute("gradientUnits","userSpaceOnUse"),a=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var h=this.stops;for(i=e.g.p*4;i<a;i+=2)n=createNS("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(n),h.push(n);s.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+l+")"),e.ty==="gs"&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&s.setAttribute("stroke-miterlimit",e.ml)),this.of=u,this.ms=o,this.ost=h,this.maskId=c,r.msElem=s}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,r,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,r.w,0,null,this),this.d=new DashProperty(e,r.d||{},"svg",this),this.initGradientData(e,r,n),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,r,n){this.transform={mProps:e,op:r,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(r,n,i,a){if(n===0)return"";var o=r.o,s=r.i,l=r.v,c,u=" M"+a.applyToPointStringified(l[0][0],l[0][1]);for(c=1;c<n;c+=1)u+=" C"+a.applyToPointStringified(o[c-1][0],o[c-1][1])+" "+a.applyToPointStringified(s[c][0],s[c][1])+" "+a.applyToPointStringified(l[c][0],l[c][1]);return i&&n&&(u+=" C"+a.applyToPointStringified(o[c-1][0],o[c-1][1])+" "+a.applyToPointStringified(s[0][0],s[0][1])+" "+a.applyToPointStringified(l[0][0],l[0][1]),u+="z"),u},SVGElementsRenderer=function(){var e=new Matrix,r=new Matrix,n={createRenderFunction:i};function i(b){switch(b.ty){case"fl":return l;case"gf":return u;case"gs":return c;case"st":return h;case"sh":case"el":case"rc":case"sr":return s;case"tr":return a;case"no":return o;default:return null}}function a(b,f,y){(y||f.transform.op._mdf)&&f.transform.container.setAttribute("opacity",f.transform.op.v),(y||f.transform.mProps._mdf)&&f.transform.container.setAttribute("transform",f.transform.mProps.v.to2dCSS())}function o(){}function s(b,f,y){var d,g,w,p,v,m,x=f.styles.length,E=f.lvl,k,_,T,B;for(m=0;m<x;m+=1){if(p=f.sh._mdf||y,f.styles[m].lvl<E){for(_=r.reset(),T=E-f.styles[m].lvl,B=f.transformers.length-1;!p&&T>0;)p=f.transformers[B].mProps._mdf||p,T-=1,B-=1;if(p)for(T=E-f.styles[m].lvl,B=f.transformers.length-1;T>0;)_.multiply(f.transformers[B].mProps.v),T-=1,B-=1}else _=e;if(k=f.sh.paths,g=k._length,p){for(w="",d=0;d<g;d+=1)v=k.shapes[d],v&&v._length&&(w+=buildShapeString(v,v._length,v.c,_));f.caches[m]=w}else w=f.caches[m];f.styles[m].d+=b.hd===!0?"":w,f.styles[m]._mdf=p||f.styles[m]._mdf}}function l(b,f,y){var d=f.style;(f.c._mdf||y)&&d.pElem.setAttribute("fill","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||y)&&d.pElem.setAttribute("fill-opacity",f.o.v)}function c(b,f,y){u(b,f,y),h(b,f,y)}function u(b,f,y){var d=f.gf,g=f.g._hasOpacity,w=f.s.v,p=f.e.v;if(f.o._mdf||y){var v=b.ty==="gf"?"fill-opacity":"stroke-opacity";f.style.pElem.setAttribute(v,f.o.v)}if(f.s._mdf||y){var m=b.t===1?"x1":"cx",x=m==="x1"?"y1":"cy";d.setAttribute(m,w[0]),d.setAttribute(x,w[1]),g&&!f.g._collapsable&&(f.of.setAttribute(m,w[0]),f.of.setAttribute(x,w[1]))}var E,k,_,T;if(f.g._cmdf||y){E=f.cst;var B=f.g.c;for(_=E.length,k=0;k<_;k+=1)T=E[k],T.setAttribute("offset",B[k*4]+"%"),T.setAttribute("stop-color","rgb("+B[k*4+1]+","+B[k*4+2]+","+B[k*4+3]+")")}if(g&&(f.g._omdf||y)){var M=f.g.o;for(f.g._collapsable?E=f.cst:E=f.ost,_=E.length,k=0;k<_;k+=1)T=E[k],f.g._collapsable||T.setAttribute("offset",M[k*2]+"%"),T.setAttribute("stop-opacity",M[k*2+1])}if(b.t===1)(f.e._mdf||y)&&(d.setAttribute("x2",p[0]),d.setAttribute("y2",p[1]),g&&!f.g._collapsable&&(f.of.setAttribute("x2",p[0]),f.of.setAttribute("y2",p[1])));else{var F;if((f.s._mdf||f.e._mdf||y)&&(F=Math.sqrt(Math.pow(w[0]-p[0],2)+Math.pow(w[1]-p[1],2)),d.setAttribute("r",F),g&&!f.g._collapsable&&f.of.setAttribute("r",F)),f.e._mdf||f.h._mdf||f.a._mdf||y){F||(F=Math.sqrt(Math.pow(w[0]-p[0],2)+Math.pow(w[1]-p[1],2)));var O=Math.atan2(p[1]-w[1],p[0]-w[0]),D=f.h.v;D>=1?D=.99:D<=-1&&(D=-.99);var N=F*D,L=Math.cos(O+f.a.v)*N+w[0],P=Math.sin(O+f.a.v)*N+w[1];d.setAttribute("fx",L),d.setAttribute("fy",P),g&&!f.g._collapsable&&(f.of.setAttribute("fx",L),f.of.setAttribute("fy",P))}}}function h(b,f,y){var d=f.style,g=f.d;g&&(g._mdf||y)&&g.dashStr&&(d.pElem.setAttribute("stroke-dasharray",g.dashStr),d.pElem.setAttribute("stroke-dashoffset",g.dashoffset[0])),f.c&&(f.c._mdf||y)&&d.pElem.setAttribute("stroke","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||y)&&d.pElem.setAttribute("stroke-opacity",f.o.v),(f.w._mdf||y)&&(d.pElem.setAttribute("stroke-width",f.w.v),d.msElem&&d.msElem.setAttribute("stroke-width",f.w.v))}return n}();function SVGShapeElement(e,r,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,r,n),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 e,r=this.shapes.length,n,i,a=this.stylesList.length,o,s=[],l=!1;for(i=0;i<a;i+=1){for(o=this.stylesList[i],l=!1,s.length=0,e=0;e<r;e+=1)n=this.shapes[e],n.styles.indexOf(o)!==-1&&(s.push(n),l=n._isAnimated||l);s.length>1&&l&&this.setShapesAsAnimated(s)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var r,n=e.length;for(r=0;r<n;r+=1)e[r].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,r){var n,i=new SVGStyleData(e,r),a=i.pElem;if(e.ty==="st")n=new SVGStrokeStyleData(this,e,i);else if(e.ty==="fl")n=new SVGFillStyleData(this,e,i);else if(e.ty==="gf"||e.ty==="gs"){var o=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;n=new o(this,e,i),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),a.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))}else e.ty==="no"&&(n=new SVGNoStyleData(this,e,i));return(e.ty==="st"||e.ty==="gs")&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),a.setAttribute("fill-opacity","0"),e.lj===1&&a.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&a.setAttribute("fill-rule","evenodd"),e.ln&&a.setAttribute("id",e.ln),e.cl&&a.setAttribute("class",e.cl),e.bm&&(a.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(i),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createGroupElement=function(e){var r=new ShapeGroupData;return e.ln&&r.gr.setAttribute("id",e.ln),e.cl&&r.gr.setAttribute("class",e.cl),e.bm&&(r.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),r},SVGShapeElement.prototype.createTransformElement=function(e,r){var n=TransformPropertyFactory.getTransformProperty(this,e,this),i=new SVGTransformData(n,n.o,r);return this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createShapeElement=function(e,r,n){var i=4;e.ty==="rc"?i=5:e.ty==="el"?i=6:e.ty==="sr"&&(i=7);var a=ShapePropertyFactory.getShapeProp(this,e,i,this),o=new SVGShapeData(r,n,a);return this.shapes.push(o),this.addShapeToModifiers(o),this.addToAnimatedContents(e,o),o},SVGShapeElement.prototype.addToAnimatedContents=function(e,r){for(var n=0,i=this.animatedContents.length;n<i;){if(this.animatedContents[n].element===r)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:r,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var r=e.styles,n,i=this.stylesList.length;for(n=0;n<i;n+=1)this.stylesList[n].closed||r.push(this.stylesList[n])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,r=this.itemsData.length;for(e=0;e<r;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),r=this.dynamicProperties.length,e=0;e<r;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,r,n,i,a,o,s){var l=[].concat(o),c,u=e.length-1,h,b,f=[],y=[],d,g,w;for(c=u;c>=0;c-=1){if(w=this.searchProcessedElement(e[c]),w?r[c]=n[w-1]:e[c]._render=s,e[c].ty==="fl"||e[c].ty==="st"||e[c].ty==="gf"||e[c].ty==="gs"||e[c].ty==="no")w?r[c].style.closed=!1:r[c]=this.createStyleElement(e[c],a),e[c]._render&&r[c].style.pElem.parentNode!==i&&i.appendChild(r[c].style.pElem),f.push(r[c].style);else if(e[c].ty==="gr"){if(!w)r[c]=this.createGroupElement(e[c]);else for(b=r[c].it.length,h=0;h<b;h+=1)r[c].prevViewData[h]=r[c].it[h];this.searchShapes(e[c].it,r[c].it,r[c].prevViewData,r[c].gr,a+1,l,s),e[c]._render&&r[c].gr.parentNode!==i&&i.appendChild(r[c].gr)}else e[c].ty==="tr"?(w||(r[c]=this.createTransformElement(e[c],i)),d=r[c].transform,l.push(d)):e[c].ty==="sh"||e[c].ty==="rc"||e[c].ty==="el"||e[c].ty==="sr"?(w||(r[c]=this.createShapeElement(e[c],l,a)),this.setElementStyles(r[c])):e[c].ty==="tm"||e[c].ty==="rd"||e[c].ty==="ms"||e[c].ty==="pb"||e[c].ty==="zz"||e[c].ty==="op"?(w?(g=r[c],g.closed=!1):(g=ShapeModifiers.getModifier(e[c].ty),g.init(this,e[c]),r[c]=g,this.shapeModifiers.push(g)),y.push(g)):e[c].ty==="rp"&&(w?(g=r[c],g.closed=!0):(g=ShapeModifiers.getModifier(e[c].ty),r[c]=g,g.init(this,e,c,r),this.shapeModifiers.push(g),s=!1),y.push(g));this.addProcessedElement(e[c],c+1)}for(u=f.length,c=0;c<u;c+=1)f[c].closed=!0;for(u=y.length,c=0;c<u;c+=1)y[c].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<r;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,r=this.animatedContents.length,n;for(e=0;e<r;e+=1)n=this.animatedContents[e],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,r,n,i,a,o){this.o=e,this.sw=r,this.sc=n,this.fc=i,this.m=a,this.p=o,this._mdf={o:!0,sw:!!r,sc:!!n,fc:!!i,m:!0,p:!0}}LetterProps.prototype.update=function(e,r,n,i,a,o){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 s=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,s=!0),this.sw!==r&&(this.sw=r,this._mdf.sw=!0,s=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,s=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,s=!0),this.m!==a&&(this.m=a,this._mdf.m=!0,s=!0),o.length&&(this.p[0]!==o[0]||this.p[1]!==o[1]||this.p[4]!==o[4]||this.p[5]!==o[5]||this.p[12]!==o[12]||this.p[13]!==o[13])&&(this.p=o,this._mdf.p=!0,s=!0),s};function TextProperty(e,r){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,r.d&&r.d.sid&&(r.d=e.globalData.slotManager.getProp(r.d)),this.data=r,this.elem=e,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(e,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,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(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var r=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var i,a=this.effectsSequence.length,o=e||this.data.d.k[this.keysIndex].s;for(i=0;i<a;i+=1)n!==this.keysIndex?o=this.effectsSequence[i](o,o.t):o=this.effectsSequence[i](this.currentData,o.t);r!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,r=this.elem.comp.renderedFrame,n=0,i=e.length;n<=i-1&&!(n===i-1||e[n+1].t>r);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var r=[],n=0,i=e.length,a,o,s=!1,l=!1,c="";n<i;)s=l,l=!1,a=e.charCodeAt(n),c=e.charAt(n),FontManager.isCombinedCharacter(a)?s=!0:a>=55296&&a<=56319?FontManager.isRegionalFlag(e,n)?c=e.substr(n,14):(o=e.charCodeAt(n+1),o>=56320&&o<=57343&&(FontManager.isModifier(a,o)?(c=e.substr(n,2),s=!0):FontManager.isFlagEmoji(e.substr(n,4))?c=e.substr(n,4):c=e.substr(n,2))):a>56319?(o=e.charCodeAt(n+1),FontManager.isVariationSelector(a)&&(s=!0)):FontManager.isZeroWidthJoiner(a)&&(s=!0,l=!0),s?(r[r.length-1]+=c,s=!1):r.push(c),n+=c.length;return r},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var r=this.elem.globalData.fontManager,n=this.data,i=[],a,o,s,l=0,c,u=n.m.g,h=0,b=0,f=0,y=[],d=0,g=0,w,p,v=r.getFontByName(e.f),m,x=0,E=getFontProperties(v);e.fWeight=E.weight,e.fStyle=E.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),o=e.finalText.length,e.finalLineHeight=e.lh;var k=e.tr/1e3*e.finalSize,_;if(e.sz)for(var T=!0,B=e.sz[0],M=e.sz[1],F,O;T;){O=this.buildFinalText(e.t),F=0,d=0,o=O.length,k=e.tr/1e3*e.finalSize;var D=-1;for(a=0;a<o;a+=1)_=O[a].charCodeAt(0),s=!1,O[a]===" "?D=a:(_===13||_===3)&&(d=0,s=!0,F+=e.finalLineHeight||e.finalSize*1.2),r.chars?(m=r.getCharData(O[a],v.fStyle,v.fFamily),x=s?0:m.w*e.finalSize/100):x=r.measureText(O[a],e.f,e.finalSize),d+x>B&&O[a]!==" "?(D===-1?o+=1:a=D,F+=e.finalLineHeight||e.finalSize*1.2,O.splice(a,D===a?1:0,"\r"),D=-1,d=0):(d+=x,d+=k);F+=v.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&M<F?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=O,o=e.finalText.length,T=!1)}d=-k,x=0;var N=0,L;for(a=0;a<o;a+=1)if(s=!1,L=e.finalText[a],_=L.charCodeAt(0),_===13||_===3?(N=0,y.push(d),g=d>g?d:g,d=-2*k,c="",s=!0,f+=1):c=L,r.chars?(m=r.getCharData(L,v.fStyle,r.getFontByName(e.f).fFamily),x=s?0:m.w*e.finalSize/100):x=r.measureText(c,e.f,e.finalSize),L===" "?N+=x+k:(d+=x+k+N,N=0),i.push({l:x,an:x,add:h,n:s,anIndexes:[],val:c,line:f,animatorJustifyOffset:0}),u==2){if(h+=x,c===""||c===" "||a===o-1){for((c===""||c===" ")&&(h-=x);b<=a;)i[b].an=h,i[b].ind=l,i[b].extra=x,b+=1;l+=1,h=0}}else if(u==3){if(h+=x,c===""||a===o-1){for(c===""&&(h-=x);b<=a;)i[b].an=h,i[b].ind=l,i[b].extra=x,b+=1;h=0,l+=1}}else i[l].ind=l,i[l].extra=0,l+=1;if(e.l=i,g=d>g?d:g,y.push(d),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=g,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=y;var P=n.a,I,C;p=P.length;var S,R,A=[];for(w=0;w<p;w+=1){for(I=P[w],I.a.sc&&(e.strokeColorAnim=!0),I.a.sw&&(e.strokeWidthAnim=!0),(I.a.fc||I.a.fh||I.a.fs||I.a.fb)&&(e.fillColorAnim=!0),R=0,S=I.s.b,a=0;a<o;a+=1)C=i[a],C.anIndexes[w]=R,(S==1&&C.val!==""||S==2&&C.val!==""&&C.val!==" "||S==3&&(C.n||C.val==" "||a==o-1)||S==4&&(C.n||a==o-1))&&(I.s.rn===1&&A.push(R),R+=1);n.a[w].s.totalChars=R;var q=-1,H;if(I.s.rn===1)for(a=0;a<o;a+=1)C=i[a],q!=C.anIndexes[w]&&(q=C.anIndexes[w],H=A.splice(Math.floor(Math.random()*A.length),1)[0]),C.anIndexes[w]=H}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=v.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,r){r=r===void 0?this.keysIndex:r;var n=this.copyData({},this.data.d.k[r].s);n=this.copyData(n,e),this.data.d.k[r].s=n,this.recalculate(r),this.setCurrentData(n),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var r=this.data.d.k[e].s;r.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(r)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,r=Math.min,n=Math.floor;function i(o,s){this._currentTextLength=-1,this.k=!1,this.data=s,this.elem=o,this.comp=o.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(o),this.s=PropertyFactory.getProp(o,s.s||{k:0},0,0,this),"e"in s?this.e=PropertyFactory.getProp(o,s.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(o,s.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(o,s.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(o,s.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(o,s.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(o,s.a,0,.01,this),this.dynamicProperties.length||this.getValue()}i.prototype={getMult:function(s){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var l=0,c=0,u=1,h=1;this.ne.v>0?l=this.ne.v/100:c=-this.ne.v/100,this.xe.v>0?u=1-this.xe.v/100:h=1+this.xe.v/100;var b=BezierFactory.getBezierEasing(l,c,u,h).get,f=0,y=this.finalS,d=this.finalE,g=this.data.sh;if(g===2)d===y?f=s>=d?1:0:f=e(0,r(.5/(d-y)+(s-y)/(d-y),1)),f=b(f);else if(g===3)d===y?f=s>=d?0:1:f=1-e(0,r(.5/(d-y)+(s-y)/(d-y),1)),f=b(f);else if(g===4)d===y?f=0:(f=e(0,r(.5/(d-y)+(s-y)/(d-y),1)),f<.5?f*=2:f=1-2*(f-.5)),f=b(f);else if(g===5){if(d===y)f=0;else{var w=d-y;s=r(e(0,s+.5-y),d-y);var p=-w/2+s,v=w/2;f=Math.sqrt(1-p*p/(v*v))}f=b(f)}else g===6?(d===y?f=0:(s=r(e(0,s+.5-y),d-y),f=(1+Math.cos(Math.PI+Math.PI*2*s/(d-y)))/2),f=b(f)):(s>=n(y)&&(s-y<0?f=e(0,r(r(d,1)-(y-s),1)):f=e(0,r(d-s,1))),f=b(f));if(this.sm.v!==100){var m=this.sm.v*.01;m===0&&(m=1e-8);var x=.5-m*.5;f<x?f=0:(f=(f-x)/m,f>1&&(f=1))}return f*this.a.v},getValue:function(s){this.iterateDynamicProperties(),this._mdf=s||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,s&&this.data.r===2&&(this.e.v=this._currentTextLength);var l=this.data.r===2?1:100/this.data.totalChars,c=this.o.v/l,u=this.s.v/l+c,h=this.e.v/l+c;if(u>h){var b=u;u=h,h=b}this.finalS=u,this.finalE=h}},extendPrototype([DynamicPropertyContainer],i);function a(o,s,l){return new i(o,s)}return{getTextSelectorProp:a}}();function TextAnimatorDataProperty(e,r,n){var i={propType:!1},a=PropertyFactory.getProp,o=r.a;this.a={r:o.r?a(e,o.r,0,degToRads,n):i,rx:o.rx?a(e,o.rx,0,degToRads,n):i,ry:o.ry?a(e,o.ry,0,degToRads,n):i,sk:o.sk?a(e,o.sk,0,degToRads,n):i,sa:o.sa?a(e,o.sa,0,degToRads,n):i,s:o.s?a(e,o.s,1,.01,n):i,a:o.a?a(e,o.a,1,0,n):i,o:o.o?a(e,o.o,0,.01,n):i,p:o.p?a(e,o.p,1,0,n):i,sw:o.sw?a(e,o.sw,0,0,n):i,sc:o.sc?a(e,o.sc,1,0,n):i,fc:o.fc?a(e,o.fc,1,0,n):i,fh:o.fh?a(e,o.fh,0,0,n):i,fs:o.fs?a(e,o.fs,0,.01,n):i,fb:o.fb?a(e,o.fb,0,.01,n):i,t:o.t?a(e,o.t,0,0,n):i},this.s=TextSelectorProp.getTextSelectorProp(e,r.s,n),this.s.t=r.s.t}function TextAnimatorProperty(e,r,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=r,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}TextAnimatorProperty.prototype.searchProperties=function(){var e,r=this._textData.a.length,n,i=PropertyFactory.getProp;for(e=0;e<r;e+=1)n=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(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=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,r){if(this.lettersChangedFlag=r,!(!this._mdf&&!this._isFirstFrame&&!r&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,i=this._animatorsData,a=this._textData,o=this.mHelper,s=this._renderType,l=this.renderedLetters.length,c,u,h,b,f=e.l,y,d,g,w,p,v,m,x,E,k,_,T,B,M,F;if(this._hasMaskedPath){if(F=this._pathData.m,!this._pathData.n||this._pathData._mdf){var O=F.v;this._pathData.r.v&&(O=O.reverse()),y={tLength:0,segments:[]},b=O._length-1;var D;for(T=0,h=0;h<b;h+=1)D=bez.buildBezierData(O.v[h],O.v[h+1],[O.o[h][0]-O.v[h][0],O.o[h][1]-O.v[h][1]],[O.i[h+1][0]-O.v[h+1][0],O.i[h+1][1]-O.v[h+1][1]]),y.tLength+=D.segmentLength,y.segments.push(D),T+=D.segmentLength;h=b,F.v.c&&(D=bez.buildBezierData(O.v[h],O.v[0],[O.o[h][0]-O.v[h][0],O.o[h][1]-O.v[h][1]],[O.i[0][0]-O.v[0][0],O.i[0][1]-O.v[0][1]]),y.tLength+=D.segmentLength,y.segments.push(D),T+=D.segmentLength),this._pathData.pi=y}if(y=this._pathData.pi,d=this._pathData.f.v,m=0,v=1,w=0,p=!0,k=y.segments,d<0&&F.v.c)for(y.tLength<Math.abs(d)&&(d=-Math.abs(d)%y.tLength),m=k.length-1,E=k[m].points,v=E.length-1;d<0;)d+=E[v].partialLength,v-=1,v<0&&(m-=1,E=k[m].points,v=E.length-1);E=k[m].points,x=E[v-1],g=E[v],_=g.partialLength}b=f.length,c=0,u=0;var N=e.finalSize*1.2*.714,L=!0,P,I,C,S,R;S=i.length;var A,q=-1,H,G,U,j=d,V=m,$=v,Y=-1,J,K,ne,X,W,ee,te,ae,ie="",se=this.defaultPropsArray,he;if(e.j===2||e.j===1){var de=0,ge=0,be=e.j===2?-.5:-1,Ce=0,Te=!0;for(h=0;h<b;h+=1)if(f[h].n){for(de&&(de+=ge);Ce<h;)f[Ce].animatorJustifyOffset=de,Ce+=1;de=0,Te=!0}else{for(C=0;C<S;C+=1)P=i[C].a,P.t.propType&&(Te&&e.j===2&&(ge+=P.t.v*be),I=i[C].s,A=I.getMult(f[h].anIndexes[C],a.a[C].s.totalChars),A.length?de+=P.t.v*A[0]*be:de+=P.t.v*A*be);Te=!1}for(de&&(de+=ge);Ce<h;)f[Ce].animatorJustifyOffset=de,Ce+=1}for(h=0;h<b;h+=1){if(o.reset(),J=1,f[h].n)c=0,u+=e.yOffset,u+=L?1:0,d=j,L=!1,this._hasMaskedPath&&(m=V,v=$,E=k[m].points,x=E[v-1],g=E[v],_=g.partialLength,w=0),ie="",ae="",ee="",he="",se=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Y!==f[h].line){switch(e.j){case 1:d+=T-e.lineWidths[f[h].line];break;case 2:d+=(T-e.lineWidths[f[h].line])/2;break}Y=f[h].line}q!==f[h].ind&&(f[q]&&(d+=f[q].extra),d+=f[h].an/2,q=f[h].ind),d+=n[0]*f[h].an*.005;var Se=0;for(C=0;C<S;C+=1)P=i[C].a,P.p.propType&&(I=i[C].s,A=I.getMult(f[h].anIndexes[C],a.a[C].s.totalChars),A.length?Se+=P.p.v[0]*A[0]:Se+=P.p.v[0]*A),P.a.propType&&(I=i[C].s,A=I.getMult(f[h].anIndexes[C],a.a[C].s.totalChars),A.length?Se+=P.a.v[0]*A[0]:Se+=P.a.v[0]*A);for(p=!0,this._pathData.a.v&&(d=f[0].an*.5+(T-this._pathData.f.v-f[0].an*.5-f[f.length-1].an*.5)*q/(b-1),d+=this._pathData.f.v);p;)w+_>=d+Se||!E?(B=(d+Se-w)/g.partialLength,G=x.point[0]+(g.point[0]-x.point[0])*B,U=x.point[1]+(g.point[1]-x.point[1])*B,o.translate(-n[0]*f[h].an*.005,-(n[1]*N)*.01),p=!1):E&&(w+=g.partialLength,v+=1,v>=E.length&&(v=0,m+=1,k[m]?E=k[m].points:F.v.c?(v=0,m=0,E=k[m].points):(w-=g.partialLength,E=null)),E&&(x=g,g=E[v],_=g.partialLength));H=f[h].an/2-f[h].add,o.translate(-H,0,0)}else H=f[h].an/2-f[h].add,o.translate(-H,0,0),o.translate(-n[0]*f[h].an*.005,-n[1]*N*.01,0);for(C=0;C<S;C+=1)P=i[C].a,P.t.propType&&(I=i[C].s,A=I.getMult(f[h].anIndexes[C],a.a[C].s.totalChars),(c!==0||e.j!==0)&&(this._hasMaskedPath?A.length?d+=P.t.v*A[0]:d+=P.t.v*A:A.length?c+=P.t.v*A[0]:c+=P.t.v*A));for(e.strokeWidthAnim&&(ne=e.sw||0),e.strokeColorAnim&&(e.sc?K=[e.sc[0],e.sc[1],e.sc[2]]:K=[0,0,0]),e.fillColorAnim&&e.fc&&(X=[e.fc[0],e.fc[1],e.fc[2]]),C=0;C<S;C+=1)P=i[C].a,P.a.propType&&(I=i[C].s,A=I.getMult(f[h].anIndexes[C],a.a[C].s.totalChars),A.length?o.translate(-P.a.v[0]*A[0],-P.a.v[1]*A[1],P.a.v[2]*A[2]):o.translate(-P.a.v[0]*A,-P.a.v[1]*A,P.a.v[2]*A));for(C=0;C<S;C+=1)P=i[C].a,P.s.propType&&(I=i[C].s,A=I.getMult(f[h].anIndexes[C],a.a[C].s.totalChars),A.length?o.scale(1+(P.s.v[0]-1)*A[0],1+(P.s.v[1]-1)*A[1],1):o.scale(1+(P.s.v[0]-1)*A,1+(P.s.v[1]-1)*A,1));for(C=0;C<S;C+=1){if(P=i[C].a,I=i[C].s,A=I.getMult(f[h].anIndexes[C],a.a[C].s.totalChars),P.sk.propType&&(A.length?o.skewFromAxis(-P.sk.v*A[0],P.sa.v*A[1]):o.skewFromAxis(-P.sk.v*A,P.sa.v*A)),P.r.propType&&(A.length?o.rotateZ(-P.r.v*A[2]):o.rotateZ(-P.r.v*A)),P.ry.propType&&(A.length?o.rotateY(P.ry.v*A[1]):o.rotateY(P.ry.v*A)),P.rx.propType&&(A.length?o.rotateX(P.rx.v*A[0]):o.rotateX(P.rx.v*A)),P.o.propType&&(A.length?J+=(P.o.v*A[0]-J)*A[0]:J+=(P.o.v*A-J)*A),e.strokeWidthAnim&&P.sw.propType&&(A.length?ne+=P.sw.v*A[0]:ne+=P.sw.v*A),e.strokeColorAnim&&P.sc.propType)for(W=0;W<3;W+=1)A.length?K[W]+=(P.sc.v[W]-K[W])*A[0]:K[W]+=(P.sc.v[W]-K[W])*A;if(e.fillColorAnim&&e.fc){if(P.fc.propType)for(W=0;W<3;W+=1)A.length?X[W]+=(P.fc.v[W]-X[W])*A[0]:X[W]+=(P.fc.v[W]-X[W])*A;P.fh.propType&&(A.length?X=addHueToRGB(X,P.fh.v*A[0]):X=addHueToRGB(X,P.fh.v*A)),P.fs.propType&&(A.length?X=addSaturationToRGB(X,P.fs.v*A[0]):X=addSaturationToRGB(X,P.fs.v*A)),P.fb.propType&&(A.length?X=addBrightnessToRGB(X,P.fb.v*A[0]):X=addBrightnessToRGB(X,P.fb.v*A))}}for(C=0;C<S;C+=1)P=i[C].a,P.p.propType&&(I=i[C].s,A=I.getMult(f[h].anIndexes[C],a.a[C].s.totalChars),this._hasMaskedPath?A.length?o.translate(0,P.p.v[1]*A[0],-P.p.v[2]*A[1]):o.translate(0,P.p.v[1]*A,-P.p.v[2]*A):A.length?o.translate(P.p.v[0]*A[0],P.p.v[1]*A[1],-P.p.v[2]*A[2]):o.translate(P.p.v[0]*A,P.p.v[1]*A,-P.p.v[2]*A));if(e.strokeWidthAnim&&(ee=ne<0?0:ne),e.strokeColorAnim&&(te="rgb("+Math.round(K[0]*255)+","+Math.round(K[1]*255)+","+Math.round(K[2]*255)+")"),e.fillColorAnim&&e.fc&&(ae="rgb("+Math.round(X[0]*255)+","+Math.round(X[1]*255)+","+Math.round(X[2]*255)+")"),this._hasMaskedPath){if(o.translate(0,-e.ls),o.translate(0,n[1]*N*.01+u,0),this._pathData.p.v){M=(g.point[1]-x.point[1])/(g.point[0]-x.point[0]);var fe=Math.atan(M)*180/Math.PI;g.point[0]<x.point[0]&&(fe+=180),o.rotate(-fe*Math.PI/180)}o.translate(G,U,0),d-=n[0]*f[h].an*.005,f[h+1]&&q!==f[h+1].ind&&(d+=f[h].an/2,d+=e.tr*.001*e.finalSize)}else{switch(o.translate(c,u,0),e.ps&&o.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:o.translate(f[h].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[f[h].line]),0,0);break;case 2:o.translate(f[h].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[f[h].line])/2,0,0);break}o.translate(0,-e.ls),o.translate(H,0,0),o.translate(n[0]*f[h].an*.005,n[1]*N*.01,0),c+=f[h].l+e.tr*.001*e.finalSize}s==="html"?ie=o.toCSS():s==="svg"?ie=o.to2dCSS():se=[o.props[0],o.props[1],o.props[2],o.props[3],o.props[4],o.props[5],o.props[6],o.props[7],o.props[8],o.props[9],o.props[10],o.props[11],o.props[12],o.props[13],o.props[14],o.props[15]],he=J}l<=h?(R=new LetterProps(he,ee,te,ae,ie,se),this.renderedLetters.push(R),l+=1,this.lettersChangedFlag=!0):(R=this.renderedLetters[h],this.lettersChangedFlag=R.update(he,ee,te,ae,ie,se)||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(e,r,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,r,n),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,r,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,r){var n,i=r.length,a,o="";for(n=0;n<i;n+=1)r[n].ty==="sh"&&(a=r[n].ks.k,o+=buildShapeString(a,a.i.length,!0,e));return o},ITextElement.prototype.updateDocumentData=function(e,r){this.textProperty.updateDocumentData(e,r)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,r,n,i,a){switch(e.ps&&r.translate(e.ps[0],e.ps[1]+e.ascent,0),r.translate(0,-e.ls,0),e.j){case 1:r.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:r.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0);break}r.translate(i,a,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[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(e,r,n){this.textSpans=[],this.renderType="svg",this.initElement(e,r,n)}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(e){for(var r=0,n=e.length,i=[],a="";r<n;)e[r]===String.fromCharCode(13)||e[r]===String.fromCharCode(3)?(i.push(a),a=""):a+=e[r],r+=1;return i.push(a),i},SVGTextLottieElement.prototype.buildShapeData=function(e,r){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var i=n.it[n.it.length-1];i.s&&(i.s.k[0]=r,i.s.k[1]=r)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,r,n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var i=this.globalData.fontManager.getFontByName(n.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var a=n.fWeight,o=n.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",a)}this.layerElement.setAttribute("aria-label",n.t);var s=n.l||[],l=!!this.globalData.fontManager.chars;r=s.length;var c,u=this.mHelper,h="",b=this.data.singleShape,f=0,y=0,d=!0,g=n.tr*.001*n.finalSize;if(b&&!l&&!n.sz){var w=this.textContainer,p="start";switch(n.j){case 1:p="end";break;case 2:p="middle";break;default:p="start";break}w.setAttribute("text-anchor",p),w.setAttribute("letter-spacing",g);var v=this.buildTextContents(n.finalText);for(r=v.length,y=n.ps?n.ps[1]+n.ascent:0,e=0;e<r;e+=1)c=this.textSpans[e].span||createNS("tspan"),c.textContent=v[e],c.setAttribute("x",0),c.setAttribute("y",y),c.style.display="inherit",w.appendChild(c),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=c,y+=n.finalLineHeight;this.layerElement.appendChild(w)}else{var m=this.textSpans.length,x;for(e=0;e<r;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!b||e===0){if(c=m>e?this.textSpans[e].span:createNS(l?"g":"text"),m<=e){if(c.setAttribute("stroke-linecap","butt"),c.setAttribute("stroke-linejoin","round"),c.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=c,l){var E=createNS("g");c.appendChild(E),this.textSpans[e].childSpan=E}this.textSpans[e].span=c,this.layerElement.appendChild(c)}c.style.display="inherit"}if(u.reset(),b&&(s[e].n&&(f=-g,y+=n.yOffset,y+=d?1:0,d=!1),this.applyTextPropertiesToMatrix(n,u,s[e].line,f,y),f+=s[e].l||0,f+=g),l){x=this.globalData.fontManager.getCharData(n.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var k;if(x.t===1)k=new SVGCompElement(x.data,this.globalData,this);else{var _=emptyShapeData;x.data&&x.data.shapes&&(_=this.buildShapeData(x.data,n.finalSize)),k=new SVGShapeElement(_,this.globalData,this)}if(this.textSpans[e].glyph){var T=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(T.layerElement),T.destroy()}this.textSpans[e].glyph=k,k._debug=!0,k.prepareFrame(0),k.renderFrame(),this.textSpans[e].childSpan.appendChild(k.layerElement),x.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else b&&c.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),c.textContent=s[e].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}b&&c&&c.setAttribute("d",h)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=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 e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,r=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)n=this.textSpans[e].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._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 e,r,n=this.textAnimator.renderedLetters,i=this.textProperty.currentData.l;r=i.length;var a,o,s;for(e=0;e<r;e+=1)i[e].n||(a=n[e],o=this.textSpans[e].span,s=this.textSpans[e].glyph,s&&s.renderFrame(),a._mdf.m&&o.setAttribute("transform",a.m),a._mdf.o&&o.setAttribute("opacity",a.o),a._mdf.sw&&o.setAttribute("stroke-width",a.sw),a._mdf.sc&&o.setAttribute("stroke",a.sc),a._mdf.fc&&o.setAttribute("fill",a.fc))}};function ISolidElement(e,r,n){this.initElement(e,r,n)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function NullElement(e,r,n){this.initFrame(),this.initBaseData(e,r,n),this.initFrame(),this.initTransform(e,r,n),this.initHierarchy()}NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!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(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){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 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.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 r=this.globalData.defs;this.setupGlobalData(e,r),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",e.w),i.setAttribute("height",e.h),i.setAttribute("x",0),i.setAttribute("y",0);var a=createElementID();n.setAttribute("id",a),n.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),r.appendChild(n),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,r=this.layers?this.layers.length:0;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var r=0,n=this.layers.length;for(r=0;r<n;r+=1)if(this.layers[r].ind===e)return r;return-1},SVGRendererBase.prototype.buildItem=function(e){var r=this.elements;if(!(r[e]||this.layers[e].ty===99)){r[e]=!0;var n=this.createItem(this.layers[e]);if(r[e]=n,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var i="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(i===-1)return;if(!this.elements[i]||this.elements[i]===!0)this.buildItem(i),this.addPendingElement(n);else{var a=r[i],o=a.getMatte(this.layers[e].tt);n.setMatte(o)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var r=0,n=this.elements.length;r<n;){if(this.elements[r]===e){var i="tp"in e.data?this.findIndexByInd(e.data.tp):r-1,a=this.elements[i],o=a.getMatte(this.layers[r].tt);e.setMatte(o);break}r+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf)for(r=0;r<n;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,r){var n=e.getBaseElement();if(n){for(var i=0,a;i<r;)this.elements[i]&&this.elements[i]!==!0&&this.elements[i].getBaseElement()&&(a=this.elements[i].getBaseElement()),i+=1;a?this.layerElement.insertBefore(n,a):this.layerElement.appendChild(n)}},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(e,r,n){this.initFrame(),this.initBaseData(e,r,n),this.initTransform(e,r,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!r.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var r=this.tm.v;r===this.data.op&&(r=this.data.op-1),this.renderedFrame=r}var n,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,r,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,r,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,r.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,r){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(r&&r.title){var i=createNS("title"),a=createElementID();i.setAttribute("id",a),i.textContent=r.title,this.svgElement.appendChild(i),n+=a}if(r&&r.description){var o=createNS("desc"),s=createElementID();o.setAttribute("id",s),o.textContent=r.description,this.svgElement.appendChild(o),n+=" "+s}n&&this.svgElement.setAttribute("aria-labelledby",n);var l=createNS("defs");this.svgElement.appendChild(l);var c=createNS("g");this.svgElement.appendChild(c),this.layerElement=c,this.renderConfig={preserveAspectRatio:r&&r.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:r&&r.contentVisibility||"visible",progressiveLoad:r&&r.progressiveLoad||!1,hideOnTransparent:!(r&&r.hideOnTransparent===!1),viewBoxOnly:r&&r.viewBoxOnly||!1,viewBoxSize:r&&r.viewBoxSize||!1,className:r&&r.className||"",id:r&&r.id||"",focusable:r&&r.focusable,filterSize:{width:r&&r.filterSize&&r.filterSize.width||"100%",height:r&&r.filterSize&&r.filterSize.height||"100%",x:r&&r.filterSize&&r.filterSize.x||"0%",y:r&&r.filterSize&&r.filterSize.y||"0%"},width:r&&r.width,height:r&&r.height,runExpressions:!r||r.runExpressions===void 0||r.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:l,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(r){var n,i=r.length,a="_";for(n=0;n<i;n+=1)a+=r[n].transform.key+"_";var o=this.sequences[a];return o||(o={transforms:[].concat(r),finalTransform:new Matrix,_mdf:!1},this.sequences[a]=o,this.sequenceList.push(o)),o},processSequence:function(r,n){for(var i=0,a=r.transforms.length,o=n;i<a&&!n;){if(r.transforms[i].transform.mProps._mdf){o=!0;break}i+=1}if(o)for(r.finalTransform.reset(),i=a-1;i>=0;i-=1)r.finalTransform.multiply(r.transforms[i].transform.mProps.v);r._mdf=o},processSequences:function(r){var n,i=this.sequenceList.length;for(n=0;n<i;n+=1)this.processSequence(this.sequenceList[n],r)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var r="__lottie_element_luma_buffer",n=null,i=null,a=null;function o(){var c=createNS("svg"),u=createNS("filter"),h=createNS("feColorMatrix");return u.setAttribute("id",r),h.setAttribute("type","matrix"),h.setAttribute("color-interpolation-filters","sRGB"),h.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"),u.appendChild(h),c.appendChild(u),c.setAttribute("id",r+"_svg"),featureSupport.svgLumaHidden&&(c.style.display="none"),c}function s(){n||(a=o(),document.body.appendChild(a),n=createTag("canvas"),i=n.getContext("2d"),i.filter="url(#"+r+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}function l(c){return n||s(),n.width=c.width,n.height=c.height,i.filter="url(#"+r+")",n}return{load:s,get:l}};function createCanvas(e,r){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,r);var n=createTag("canvas");return n.width=e,n.height=r,n}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(e){var r,n=e.data.ef?e.data.ef.length:0;this.filters=[];var i;for(r=0;r<n;r+=1){i=null;var a=e.data.ef[r].ty;if(registeredEffects[a]){var o=registeredEffects[a].effect;i=new o(e.effectsManager.effectElements[r],e)}i&&this.filters.push(i)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var r,n=this.filters.length;for(r=0;r<n;r+=1)this.filters[r].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var r,n=this.filters.length,i=[];for(r=0;r<n;r+=1)this.filters[r].type===e&&i.push(this.filters[r]);return i};function registerEffect(e,r){registeredEffects[e]={effect:r}}function CVMaskElement(e,r){this.data=e,this.element=r,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n,i=this.masksProperties.length,a=!1;for(n=0;n<i;n+=1)this.masksProperties[n].mode!=="n"&&(a=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=a,a&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,r=this.element.canvasContext,n,i=this.masksProperties.length,a,o,s;for(r.beginPath(),n=0;n<i;n+=1)if(this.masksProperties[n].mode!=="n"){this.masksProperties[n].inv&&(r.moveTo(0,0),r.lineTo(this.element.globalData.compSize.w,0),r.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),r.lineTo(0,this.element.globalData.compSize.h),r.lineTo(0,0)),s=this.viewData[n].v,a=e.applyToPointArray(s.v[0][0],s.v[0][1],0),r.moveTo(a[0],a[1]);var l,c=s._length;for(l=1;l<c;l+=1)o=e.applyToTriplePoints(s.o[l-1],s.i[l],s.v[l]),r.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);o=e.applyToTriplePoints(s.o[l-1],s.i[0],s.v[0]),r.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5])}this.element.globalData.renderer.save(!0),r.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 r=this.globalData.canvasContext,n=assetLoader.createCanvas(r.canvas.width,r.canvas.height);this.buffers.push(n);var i=assetLoader.createCanvas(r.canvas.width,r.canvas.height);this.buffers.push(i),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 r=this.globalData;if(r.blendMode!==this.data.bm){r.blendMode=this.data.bm;var n=getBlendMode(this.data.bm);r.canvasContext.globalCompositeOperation=n}},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(r){r.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 r=this.buffers[0],n=r.getContext("2d");this.clearCanvas(n),n.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 r=this.buffers[1],n=r.getContext("2d");this.clearCanvas(n),n.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 i=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(i.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var a=assetLoader.getLumaCanvas(this.canvasContext.canvas),o=a.getContext("2d");o.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(a,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(r,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(r){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!r)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var n=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(n),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(n),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(e,r,n,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var a=4;r.ty==="rc"?a=5:r.ty==="el"?a=6:r.ty==="sr"&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(e,r,a,e);var o,s=n.length,l;for(o=0;o<s;o+=1)n[o].closed||(l={transforms:i.addTransformSequence(n[o].transforms),trNodes:[]},this.styledShapes.push(l),n[o].elements.push(l))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,r,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,r,n)}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(e,r){var n={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(r),transforms:[],elements:[],closed:e.hd===!0},i={};if(e.ty==="fl"||e.ty==="st"?(i.c=PropertyFactory.getProp(this,e.c,1,255,this),i.c.k||(n.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(i.s=PropertyFactory.getProp(this,e.s,1,null,this),i.e=PropertyFactory.getProp(this,e.e,1,null,this),i.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,e.g,this)),i.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(n.lc=lineCapEnum[e.lc||2],n.lj=lineJoinEnum[e.lj||2],e.lj==1&&(n.ml=e.ml),i.w=PropertyFactory.getProp(this,e.w,0,null,this),i.w.k||(n.wi=i.w.v),e.d){var a=new DashProperty(this,e.d,"canvas",this);i.d=a,i.d.k||(n.da=i.d.dashArray,n.do=i.d.dashoffset[0])}}else n.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(n),i.style=n,i},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var r={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return r},CVShapeElement.prototype.createShapeElement=function(e){var r=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(r),this.addShapeToModifiers(r),r},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,r=this.itemsData.length;for(e=0;e<r;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),r=this.dynamicProperties.length,e=0;e<r;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var r,n=this.stylesList.length;for(r=0;r<n;r+=1)this.stylesList[r].closed||this.stylesList[r].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var r,n=e.length;for(r=0;r<n;r+=1)e[r].closed=!0},CVShapeElement.prototype.searchShapes=function(e,r,n,i,a){var o,s=e.length-1,l,c,u=[],h=[],b,f,y,d=[].concat(a);for(o=s;o>=0;o-=1){if(b=this.searchProcessedElement(e[o]),b?r[o]=n[b-1]:e[o]._shouldRender=i,e[o].ty==="fl"||e[o].ty==="st"||e[o].ty==="gf"||e[o].ty==="gs")b?r[o].style.closed=!1:r[o]=this.createStyleElement(e[o],d),u.push(r[o].style);else if(e[o].ty==="gr"){if(!b)r[o]=this.createGroupElement(e[o]);else for(c=r[o].it.length,l=0;l<c;l+=1)r[o].prevViewData[l]=r[o].it[l];this.searchShapes(e[o].it,r[o].it,r[o].prevViewData,i,d)}else e[o].ty==="tr"?(b||(y=this.createTransformElement(e[o]),r[o]=y),d.push(r[o]),this.addTransformToStyleList(r[o])):e[o].ty==="sh"||e[o].ty==="rc"||e[o].ty==="el"||e[o].ty==="sr"?b||(r[o]=this.createShapeElement(e[o])):e[o].ty==="tm"||e[o].ty==="rd"||e[o].ty==="pb"||e[o].ty==="zz"||e[o].ty==="op"?(b?(f=r[o],f.closed=!1):(f=ShapeModifiers.getModifier(e[o].ty),f.init(this,e[o]),r[o]=f,this.shapeModifiers.push(f)),h.push(f)):e[o].ty==="rp"&&(b?(f=r[o],f.closed=!0):(f=ShapeModifiers.getModifier(e[o].ty),r[o]=f,f.init(this,e,o,r),this.shapeModifiers.push(f),i=!1),h.push(f));this.addProcessedElement(e[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),s=h.length,o=0;o<s;o+=1)h[o].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(e,r){(e._opMdf||r.op._mdf||this._isFirstFrame)&&(r.opacity=e.opacity,r.opacity*=r.op.v,r._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,r=this.stylesList.length,n,i,a,o,s,l,c=this.globalData.renderer,u=this.globalData.canvasContext,h,b;for(e=0;e<r;e+=1)if(b=this.stylesList[e],h=b.type,!((h==="st"||h==="gs")&&b.wi===0||!b.data._shouldRender||b.coOp===0||this.globalData.currentGlobalAlpha===0)){for(c.save(),s=b.elements,h==="st"||h==="gs"?(c.ctxStrokeStyle(h==="st"?b.co:b.grd),c.ctxLineWidth(b.wi),c.ctxLineCap(b.lc),c.ctxLineJoin(b.lj),c.ctxMiterLimit(b.ml||0)):c.ctxFillStyle(h==="fl"?b.co:b.grd),c.ctxOpacity(b.coOp),h!=="st"&&h!=="gs"&&u.beginPath(),c.ctxTransform(b.preTransforms.finalTransform.props),i=s.length,n=0;n<i;n+=1){for((h==="st"||h==="gs")&&(u.beginPath(),b.da&&(u.setLineDash(b.da),u.lineDashOffset=b.do)),l=s[n].trNodes,o=l.length,a=0;a<o;a+=1)l[a].t==="m"?u.moveTo(l[a].p[0],l[a].p[1]):l[a].t==="c"?u.bezierCurveTo(l[a].pts[0],l[a].pts[1],l[a].pts[2],l[a].pts[3],l[a].pts[4],l[a].pts[5]):u.closePath();(h==="st"||h==="gs")&&(c.ctxStroke(),b.da&&u.setLineDash(this.dashResetter))}h!=="st"&&h!=="gs"&&this.globalData.renderer.ctxFill(b.r),c.restore()}},CVShapeElement.prototype.renderShape=function(e,r,n,i){var a,o=r.length-1,s;for(s=e,a=o;a>=0;a-=1)r[a].ty==="tr"?(s=n[a].transform,this.renderShapeTransform(e,s)):r[a].ty==="sh"||r[a].ty==="el"||r[a].ty==="rc"||r[a].ty==="sr"?this.renderPath(r[a],n[a]):r[a].ty==="fl"?this.renderFill(r[a],n[a],s):r[a].ty==="st"?this.renderStroke(r[a],n[a],s):r[a].ty==="gf"||r[a].ty==="gs"?this.renderGradientFill(r[a],n[a],s):r[a].ty==="gr"?this.renderShape(s,r[a].it,n[a].it):r[a].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,r){if(this._isFirstFrame||r._mdf||e.transforms._mdf){var n=e.trNodes,i=r.paths,a,o,s,l=i._length;n.length=0;var c=e.transforms.finalTransform;for(s=0;s<l;s+=1){var u=i.shapes[s];if(u&&u.v){for(o=u._length,a=1;a<o;a+=1)a===1&&n.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),n.push({t:"c",pts:c.applyToTriplePoints(u.o[a-1],u.i[a],u.v[a])});o===1&&n.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),u.c&&o&&(n.push({t:"c",pts:c.applyToTriplePoints(u.o[a-1],u.i[0],u.v[0])}),n.push({t:"z"}))}}e.trNodes=n}},CVShapeElement.prototype.renderPath=function(e,r){if(e.hd!==!0&&e._shouldRender){var n,i=r.styledShapes.length;for(n=0;n<i;n+=1)this.renderStyledShape(r.styledShapes[n],r.sh)}},CVShapeElement.prototype.renderFill=function(e,r,n){var i=r.style;(r.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")"),(r.o._mdf||n._opMdf||this._isFirstFrame)&&(i.coOp=r.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,r,n){var i=r.style,a;if(!i.grd||r.g._mdf||r.s._mdf||r.e._mdf||e.t!==1&&(r.h._mdf||r.a._mdf)){var o=this.globalData.canvasContext,s=r.s.v,l=r.e.v;if(e.t===1)a=o.createLinearGradient(s[0],s[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),u=Math.atan2(l[1]-s[1],l[0]-s[0]),h=r.h.v;h>=1?h=.99:h<=-1&&(h=-.99);var b=c*h,f=Math.cos(u+r.a.v)*b+s[0],y=Math.sin(u+r.a.v)*b+s[1];a=o.createRadialGradient(f,y,0,s[0],s[1],c)}var d,g=e.g.p,w=r.g.c,p=1;for(d=0;d<g;d+=1)r.g._hasOpacity&&r.g._collapsable&&(p=r.g.o[d*2+1]),a.addColorStop(w[d*4]/100,"rgba("+w[d*4+1]+","+w[d*4+2]+","+w[d*4+3]+","+p+")");i.grd=a}i.coOp=r.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(e,r,n){var i=r.style,a=r.d;a&&(a._mdf||this._isFirstFrame)&&(i.da=a.dashArray,i.do=a.dashoffset[0]),(r.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")"),(r.o._mdf||n._opMdf||this._isFirstFrame)&&(i.coOp=r.o.v*n.opacity),(r.w._mdf||this._isFirstFrame)&&(i.wi=r.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(e,r,n){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(e,r,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var r=!1;e.fc?(r=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=r;var n=!1;e.sc&&(n=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var i=this.globalData.fontManager.getFontByName(e.f),a,o,s=e.l,l=this.mHelper;this.stroke=n,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,o=e.finalText.length;var c,u,h,b,f,y,d,g,w,p,v=this.data.singleShape,m=e.tr*.001*e.finalSize,x=0,E=0,k=!0,_=0;for(a=0;a<o;a+=1){c=this.globalData.fontManager.getCharData(e.finalText[a],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),u=c&&c.data||{},l.reset(),v&&s[a].n&&(x=-m,E+=e.yOffset,E+=k?1:0,k=!1),f=u.shapes?u.shapes[0].it:[],d=f.length,l.scale(e.finalSize/100,e.finalSize/100),v&&this.applyTextPropertiesToMatrix(e,l,s[a].line,x,E),w=createSizedArray(d-1);var T=0;for(y=0;y<d;y+=1)if(f[y].ty==="sh"){for(b=f[y].ks.k.i.length,g=f[y].ks.k,p=[],h=1;h<b;h+=1)h===1&&p.push(l.applyToX(g.v[0][0],g.v[0][1],0),l.applyToY(g.v[0][0],g.v[0][1],0)),p.push(l.applyToX(g.o[h-1][0],g.o[h-1][1],0),l.applyToY(g.o[h-1][0],g.o[h-1][1],0),l.applyToX(g.i[h][0],g.i[h][1],0),l.applyToY(g.i[h][0],g.i[h][1],0),l.applyToX(g.v[h][0],g.v[h][1],0),l.applyToY(g.v[h][0],g.v[h][1],0));p.push(l.applyToX(g.o[h-1][0],g.o[h-1][1],0),l.applyToY(g.o[h-1][0],g.o[h-1][1],0),l.applyToX(g.i[0][0],g.i[0][1],0),l.applyToY(g.i[0][0],g.i[0][1],0),l.applyToX(g.v[0][0],g.v[0][1],0),l.applyToY(g.v[0][0],g.v[0][1],0)),w[T]=p,T+=1}v&&(x+=s[a].l,x+=m),this.textSpans[_]?this.textSpans[_].elem=w:this.textSpans[_]={elem:w},_+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.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 r,n,i,a,o,s,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;n=c.length;var u,h=null,b=null,f=null,y,d,g=this.globalData.renderer;for(r=0;r<n;r+=1)if(!c[r].n){if(u=l[r],u&&(g.save(),g.ctxTransform(u.p),g.ctxOpacity(u.o)),this.fill){for(u&&u.fc?h!==u.fc&&(g.ctxFillStyle(u.fc),h=u.fc):h!==this.values.fill&&(h=this.values.fill,g.ctxFillStyle(this.values.fill)),y=this.textSpans[r].elem,a=y.length,this.globalData.canvasContext.beginPath(),i=0;i<a;i+=1)for(d=y[i],s=d.length,this.globalData.canvasContext.moveTo(d[0],d[1]),o=2;o<s;o+=6)this.globalData.canvasContext.bezierCurveTo(d[o],d[o+1],d[o+2],d[o+3],d[o+4],d[o+5]);this.globalData.canvasContext.closePath(),g.ctxFill()}if(this.stroke){for(u&&u.sw?f!==u.sw&&(f=u.sw,g.ctxLineWidth(u.sw)):f!==this.values.sWidth&&(f=this.values.sWidth,g.ctxLineWidth(this.values.sWidth)),u&&u.sc?b!==u.sc&&(b=u.sc,g.ctxStrokeStyle(u.sc)):b!==this.values.stroke&&(b=this.values.stroke,g.ctxStrokeStyle(this.values.stroke)),y=this.textSpans[r].elem,a=y.length,this.globalData.canvasContext.beginPath(),i=0;i<a;i+=1)for(d=y[i],s=d.length,this.globalData.canvasContext.moveTo(d[0],d[1]),o=2;o<s;o+=6)this.globalData.canvasContext.bezierCurveTo(d[o],d[o+1],d[o+2],d[o+3],d[o+4],d[o+5]);this.globalData.canvasContext.closePath(),g.ctxStroke()}u&&this.globalData.renderer.restore()}};function CVImageElement(e,r,n){this.assetData=r.getAssetData(e.refId),this.img=r.imageLoader.getAsset(this.assetData),this.initElement(e,r,n)}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 e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var r=e.getContext("2d"),n=this.img.width,i=this.img.height,a=n/i,o=this.assetData.w/this.assetData.h,s,l,c=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>o&&c==="xMidYMid slice"||a<o&&c!=="xMidYMid slice"?(l=i,s=l*o):(s=n,l=s/o),r.drawImage(this.img,(n-s)/2,(i-l)/2,s,l,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(e,r,n){this.initElement(e,r,n)}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(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,r,n,i){this.canvasContext.fillRect(e,r,n,i)},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(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var r=this.animationItem.container.style;r.width="100%",r.height="100%";var n="0px 0px 0px";r.transformOrigin=n,r.mozTransformOrigin=n,r.webkitTransformOrigin=n,r["-webkit-transform"]=n,r.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=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,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(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,r){this.reset();var n,i;e?(n=e,i=r,this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(n=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(n=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=n*this.renderConfig.dpr,this.canvasContext.canvas.height=i*this.renderConfig.dpr);var a,o;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var s=this.renderConfig.preserveAspectRatio.split(" "),l=s[1]||"meet",c=s[0]||"xMidYMid",u=c.substr(0,4),h=c.substr(4);a=n/i,o=this.transformCanvas.w/this.transformCanvas.h,o>a&&l==="meet"||o<a&&l==="slice"?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)),u==="xMid"&&(o<a&&l==="meet"||o>a&&l==="slice")?this.transformCanvas.tx=(n-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:u==="xMax"&&(o<a&&l==="meet"||o>a&&l==="slice")?this.transformCanvas.tx=(n-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,h==="YMid"&&(o>a&&l==="meet"||o<a&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(n/this.transformCanvas.w))/2*this.renderConfig.dpr:h==="YMax"&&(o>a&&l==="meet"||o<a&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(n/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(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 e,r=this.layers?this.layers.length:0;for(e=r-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,r){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!r||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||r,this.globalData.projectInterface.currentFrame=e;var n,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var r=this.elements;if(!(r[e]||this.layers[e].ty===99)){var n=this.createItem(this.layers[e],this,this.globalData);r[e]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.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 e,r=15;for(e=0;e<r;e+=1){var n=new CanvasContext;this.stack[e]=n}this._length=r,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 e=this._length*2,r=0;for(r=this._length;r<e;r+=1)this.stack[r]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var r=this.stack[this.cArrPos],n=r.transform,i,a=this.cTr.props;for(i=0;i<16;i+=1)a[i]=n[i];if(e){this.nativeContext.restore();var o=this.stack[this.cArrPos+1];this.appliedFillStyle=o.fillStyle,this.appliedStrokeStyle=o.strokeStyle,this.appliedLineWidth=o.lineWidth,this.appliedLineCap=o.lineCap,this.appliedLineJoin=o.lineJoin,this.appliedMiterLimit=o.miterLimit}this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),(e||r.opacity!==-1&&this.currentOpacity!==r.opacity)&&(this.nativeContext.globalAlpha=r.opacity,this.currentOpacity=r.opacity),this.currentFillStyle=r.fillStyle,this.currentStrokeStyle=r.strokeStyle,this.currentLineWidth=r.lineWidth,this.currentLineCap=r.lineCap,this.currentLineJoin=r.lineJoin,this.currentMiterLimit=r.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var r=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var n=this.stack[this.cArrPos],i;for(i=0;i<16;i+=1)n.transform[i]=r[i];this.cArrPos+=1;var a=this.stack[this.cArrPos];a.opacity=n.opacity,a.fillStyle=n.fillStyle,a.strokeStyle=n.strokeStyle,a.lineWidth=n.lineWidth,a.lineCap=n.lineCap,a.lineJoin=n.lineJoin,a.miterLimit=n.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var r=this.cTr;this.transformMat.multiply(r),r.cloneFromProps(this.transformMat.props);var n=r.props;this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])},CVContextData.prototype.opacity=function(e){var r=this.stack[this.cArrPos].opacity;r*=e<0?0:e,this.stack[this.cArrPos].opacity!==r&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=r)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,r,n,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,r,n,i)},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(e,r,n){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,r,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,r.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip();var r,n=this.layers.length;for(r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()},CVCompElement.prototype.destroy=function(){var e,r=this.layers.length;for(e=r-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function CanvasRenderer(e,r){this.animationItem=e,this.renderConfig={clearCanvas:r&&r.clearCanvas!==void 0?r.clearCanvas:!0,context:r&&r.context||null,progressiveLoad:r&&r.progressiveLoad||!1,preserveAspectRatio:r&&r.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:r&&r.contentVisibility||"visible",className:r&&r.className||"",id:r&&r.id||"",runExpressions:!r||r.runExpressions===void 0||r.runExpressions},this.renderConfig.dpr=r&&r.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=r&&r.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(e){return new CVCompElement(e,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 r=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var n=this.finalTransform.mat.toCSS();r.transform=n,r.webkitTransform=n}this.finalTransform._opMdf&&(r.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(e,r,n){this.initElement(e,r,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(e=createTag("div"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,r,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,r,n),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 e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var r=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",r.w),e.setAttribute("height",r.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,r){var n,i=e.length;for(n=0;n<i;n+=1)r=e[n].mProps.v.applyToPointArray(r[0],r[1],0);return r},HShapeElement.prototype.calculateShapeBoundingBox=function(e,r){var n=e.sh.v,i=e.transformers,a,o=n._length,s,l,c,u;if(!(o<=1)){for(a=0;a<o-1;a+=1)s=this.getTransformedPoint(i,n.v[a]),l=this.getTransformedPoint(i,n.o[a]),c=this.getTransformedPoint(i,n.i[a+1]),u=this.getTransformedPoint(i,n.v[a+1]),this.checkBounds(s,l,c,u,r);n.c&&(s=this.getTransformedPoint(i,n.v[a]),l=this.getTransformedPoint(i,n.o[a]),c=this.getTransformedPoint(i,n.i[0]),u=this.getTransformedPoint(i,n.v[0]),this.checkBounds(s,l,c,u,r))}},HShapeElement.prototype.checkBounds=function(e,r,n,i,a){this.getBoundsOfCurve(e,r,n,i);var o=this.shapeBoundingBox;a.x=bmMin(o.left,a.x),a.xMax=bmMax(o.right,a.xMax),a.y=bmMin(o.top,a.y),a.yMax=bmMax(o.bottom,a.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(e,r,n,i){for(var a=[[e[0],i[0]],[e[1],i[1]]],o,s,l,c,u,h,b,f=0;f<2;++f)s=6*e[f]-12*r[f]+6*n[f],o=-3*e[f]+9*r[f]-9*n[f]+3*i[f],l=3*r[f]-3*e[f],s|=0,o|=0,l|=0,o===0&&s===0||(o===0?(c=-l/s,c>0&&c<1&&a[f].push(this.calculateF(c,e,r,n,i,f))):(u=s*s-4*l*o,u>=0&&(h=(-s+bmSqrt(u))/(2*o),h>0&&h<1&&a[f].push(this.calculateF(h,e,r,n,i,f)),b=(-s-bmSqrt(u))/(2*o),b>0&&b<1&&a[f].push(this.calculateF(b,e,r,n,i,f)))));this.shapeBoundingBox.left=bmMin.apply(null,a[0]),this.shapeBoundingBox.top=bmMin.apply(null,a[1]),this.shapeBoundingBox.right=bmMax.apply(null,a[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,a[1])},HShapeElement.prototype.calculateF=function(e,r,n,i,a,o){return bmPow(1-e,3)*r[o]+3*bmPow(1-e,2)*e*n[o]+3*(1-e)*bmPow(e,2)*i[o]+bmPow(e,3)*a[o]},HShapeElement.prototype.calculateBoundingBox=function(e,r){var n,i=e.length;for(n=0;n<i;n+=1)e[n]&&e[n].sh?this.calculateShapeBoundingBox(e[n],r):e[n]&&e[n].it?this.calculateBoundingBox(e[n].it,r):e[n]&&e[n].style&&e[n].w&&this.expandStrokeBoundingBox(e[n].w,r)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,r){var n=0;if(e.keyframes){for(var i=0;i<e.keyframes.length;i+=1){var a=e.keyframes[i].s;a>n&&(n=a)}n*=e.mult}else n=e.v*e.mult;r.x-=n,r.xMax+=n,r.y-=n,r.yMax+=n},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,r=999999;if(e.x=r,e.xMax=-r,e.y=r,e.yMax=-r,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var n=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),n=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),n=!0),n||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,a="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=a,i.webkitTransform=a}}};function HTextElement(e,r,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,r,n)}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 e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var r=this.innerElem.style,n=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";r.fill=n,r.color=n,e.sc&&(r.stroke=this.buildColor(e.sc),r.strokeWidth=e.sw+"px");var i=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(r.fontSize=e.finalSize+"px",r.lineHeight=e.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{r.fontFamily=i.fFamily;var a=e.fWeight,o=e.fStyle;r.fontStyle=o,r.fontWeight=a}var s,l,c=e.l;l=c.length;var u,h,b,f=this.mHelper,y,d="",g=0;for(s=0;s<l;s+=1){if(this.globalData.fontManager.chars?(this.textPaths[g]?u=this.textPaths[g]:(u=createNS("path"),u.setAttribute("stroke-linecap",lineCapEnum[1]),u.setAttribute("stroke-linejoin",lineJoinEnum[2]),u.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[g]?(h=this.textSpans[g],b=h.children[0]):(h=createTag("div"),h.style.lineHeight=0,b=createNS("svg"),b.appendChild(u),styleDiv(h)))):this.isMasked?u=this.textPaths[g]?this.textPaths[g]:createNS("text"):this.textSpans[g]?(h=this.textSpans[g],u=this.textPaths[g]):(h=createTag("span"),styleDiv(h),u=createTag("span"),styleDiv(u),h.appendChild(u)),this.globalData.fontManager.chars){var w=this.globalData.fontManager.getCharData(e.finalText[s],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),p;if(w?p=w.data:p=null,f.reset(),p&&p.shapes&&p.shapes.length&&(y=p.shapes[0].it,f.scale(e.finalSize/100,e.finalSize/100),d=this.createPathShape(f,y),u.setAttribute("d",d)),this.isMasked)this.innerElem.appendChild(u);else{if(this.innerElem.appendChild(h),p&&p.shapes){document.body.appendChild(b);var v=b.getBBox();b.setAttribute("width",v.width+2),b.setAttribute("height",v.height+2),b.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var m=b.style,x="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";m.transform=x,m.webkitTransform=x,c[s].yOffset=v.y-1}else b.setAttribute("width",1),b.setAttribute("height",1);h.appendChild(b)}}else if(u.textContent=c[s].val,u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(u);else{this.innerElem.appendChild(h);var E=u.style,k="translate3d(0,"+-e.finalSize/1.2+"px,0)";E.transform=k,E.webkitTransform=k}this.isMasked?this.textSpans[g]=u:this.textSpans[g]=h,this.textSpans[g].style.display="block",this.textPaths[g]=u,g+=1}for(;g<this.textSpans.length;)this.textSpans[g].style.display="none",g+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;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),e=this.svgElement.style;var r="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=r,e.webkitTransform=r}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var n,i,a=0,o=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;i=s.length;var l,c,u;for(n=0;n<i;n+=1)s[n].n?a+=1:(c=this.textSpans[n],u=this.textPaths[n],l=o[a],a+=1,l._mdf.m&&(this.isMasked?c.setAttribute("transform",l.m):(c.style.webkitTransform=l.m,c.style.transform=l.m)),c.style.opacity=l.o,l.sw&&l._mdf.sw&&u.setAttribute("stroke-width",l.sw),l.sc&&l._mdf.sc&&u.setAttribute("stroke",l.sc),l.fc&&l._mdf.fc&&(u.setAttribute("fill",l.fc),u.style.color=l.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var h=this.innerElem.getBBox();this.currentBBox.w!==h.width&&(this.currentBBox.w=h.width,this.svgElement.setAttribute("width",h.width)),this.currentBBox.h!==h.height&&(this.currentBBox.h=h.height,this.svgElement.setAttribute("height",h.height));var b=1;if(this.currentBBox.w!==h.width+b*2||this.currentBBox.h!==h.height+b*2||this.currentBBox.x!==h.x-b||this.currentBBox.y!==h.y-b){this.currentBBox.w=h.width+b*2,this.currentBBox.h=h.height+b*2,this.currentBBox.x=h.x-b,this.currentBBox.y=h.y-b,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var f="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=f,e.webkitTransform=f}}}};function HCameraElement(e,r,n){this.initFrame(),this.initBaseData(e,r,n),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,e.pe,0,0,this),e.ks.p.s?(this.px=i(this,e.ks.p.x,1,0,this),this.py=i(this,e.ks.p.y,1,0,this),this.pz=i(this,e.ks.p.z,1,0,this)):this.p=i(this,e.ks.p,1,0,this),e.ks.a&&(this.a=i(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var a,o=e.ks.or.k.length;for(a=0;a<o;a+=1)e.ks.or.k[a].to=null,e.ks.or.k[a].ti=null}this.or=i(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,e.ks.rx,0,degToRads,this),this.ry=i(this,e.ks.ry,0,degToRads,this),this.rz=i(this,e.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 e,r=this.comp.threeDElements.length,n,i,a;for(e=0;e<r;e+=1)if(n=this.comp.threeDElements[e],n.type==="3d"){i=n.perspectiveElem.style,a=n.container.style;var o=this.pe.v+"px",s="0px 0px 0px",l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=o,i.webkitPerspective=o,a.transformOrigin=s,a.mozTransformOrigin=s,a.webkitTransformOrigin=s,i.transform=l,i.webkitTransform=l}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,r,n;if(this.hierarchy)for(n=this.hierarchy.length,r=0;r<n;r+=1)e=this.hierarchy[r].finalTransform.mProp._mdf||e;if(e||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(n=this.hierarchy.length-1,r=n;r>=0;r-=1){var i=this.hierarchy[r].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.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 a;this.p?a=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:a=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var o=Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2)+Math.pow(a[2],2)),s=[a[0]/o,a[1]/o,a[2]/o],l=Math.sqrt(s[2]*s[2]+s[0]*s[0]),c=Math.atan2(s[1],l),u=Math.atan2(s[0],-s[2]);this.mat.rotateY(u).rotateX(-c)}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 h=!this._prevMat.equals(this.mat);if((h||this.pe._mdf)&&this.comp.threeDElements){n=this.comp.threeDElements.length;var b,f,y;for(r=0;r<n;r+=1)if(b=this.comp.threeDElements[r],b.type==="3d"){if(h){var d=this.mat.toCSS();y=b.container.style,y.transform=d,y.webkitTransform=d}this.pe._mdf&&(f=b.perspectiveElem.style,f.perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,r,n){this.assetData=r.getAssetData(e.refId),this.initElement(e,r,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),r=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",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(r),r.crossOrigin="anonymous",r.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,r){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:r&&r.className||"",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(r&&r.hideOnTransparent===!1),filterSize:{width:r&&r.filterSize&&r.filterSize.width||"400%",height:r&&r.filterSize&&r.filterSize.height||"400%",x:r&&r.filterSize&&r.filterSize.x||"-100%",y:r&&r.filterSize&&r.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 e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,r){var n=e.getBaseElement();if(n){var i=this.layers[r];if(!i.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(n,r);else{for(var a=0,o,s,l;a<r;)this.elements[a]&&this.elements[a]!==!0&&this.elements[a].getBaseElement&&(s=this.elements[a],l=this.layers[a].ddd?this.getThreeDContainerByPos(a):s.getBaseElement(),o=l||o),a+=1;o?(!i.ddd||!this.supports3d)&&this.layerElement.insertBefore(n,o):(!i.ddd||!this.supports3d)&&this.layerElement.appendChild(n)}else this.addTo3dContainer(n,r)}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var r=0,n=this.threeDElements.length;r<n;){if(this.threeDElements[r].startPos<=e&&this.threeDElements[r].endPos>=e)return this.threeDElements[r].perspectiveElem;r+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,r){var n=createTag("div"),i,a;styleDiv(n);var o=createTag("div");if(styleDiv(o),r==="3d"){i=n.style,i.width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var s="50% 50%";i.webkitTransformOrigin=s,i.mozTransformOrigin=s,i.transformOrigin=s,a=o.style;var l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";a.transform=l,a.webkitTransform=l}n.appendChild(o);var c={container:o,perspectiveElem:n,startPos:e,endPos:e,type:r};return this.threeDElements.push(c),c},HybridRendererBase.prototype.build3dContainers=function(){var e,r=this.layers.length,n,i="";for(e=0;e<r;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(i!=="3d"&&(i="3d",n=this.createThreeDContainer(e,"3d")),n.endPos=Math.max(n.endPos,e)):(i!=="2d"&&(i="2d",n=this.createThreeDContainer(e,"2d")),n.endPos=Math.max(n.endPos,e));for(r=this.threeDElements.length,e=r-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,r){for(var n=0,i=this.threeDElements.length;n<i;){if(r<=this.threeDElements[n].endPos){for(var a=this.threeDElements[n].startPos,o;a<r;)this.elements[a]&&this.elements[a].getBaseElement&&(o=this.elements[a].getBaseElement()),a+=1;o?this.threeDElements[n].container.insertBefore(e,o):this.threeDElements[n].container.appendChild(e);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(e){var r=createTag("div"),n=this.animationItem.wrapper,i=r.style;i.width=e.w+"px",i.height=e.h+"px",this.resizerElem=r,styleDiv(r),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&r.setAttribute("class",this.renderConfig.className),n.appendChild(r),i.overflow="hidden";var a=createNS("svg");a.setAttribute("width","1"),a.setAttribute("height","1"),styleDiv(a),this.resizerElem.appendChild(a);var o=createNS("defs");a.appendChild(o),this.data=e,this.setupGlobalData(e,a),this.globalData.defs=o,this.layers=e.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 e,r=this.layers?this.layers.length:0;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e=this.animationItem.wrapper.offsetWidth,r=this.animationItem.wrapper.offsetHeight,n=e/r,i=this.globalData.compSize.w/this.globalData.compSize.h,a,o,s,l;i>n?(a=e/this.globalData.compSize.w,o=e/this.globalData.compSize.w,s=0,l=(r-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(a=r/this.globalData.compSize.h,o=r/this.globalData.compSize.h,s=(e-this.globalData.compSize.w*(r/this.globalData.compSize.h))/2,l=0);var c=this.resizerElem.style;c.webkitTransform="matrix3d("+a+",0,0,0,0,"+o+",0,0,0,0,1,0,"+s+","+l+",0,1)",c.transform=c.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 e=this.globalData.compSize.w,r=this.globalData.compSize.h,n,i=this.threeDElements.length;for(n=0;n<i;n+=1){var a=this.threeDElements[n].perspectiveElem.style;a.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(r,2))+"px",a.perspective=a.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var r,n=e.length,i=createTag("div");for(r=0;r<n;r+=1)if(e[r].xt){var a=this.createComp(e[r],i,this.globalData.comp,null);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}};function HCompElement(e,r,n){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,r,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,r.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(e,r){for(var n=0,i;n<r;)this.elements[n]&&this.elements[n].getBaseElement&&(i=this.elements[n].getBaseElement()),n+=1;i?this.layerElement.insertBefore(e,i):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,r){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:r&&r.className||"",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(r&&r.hideOnTransparent===!1),filterSize:{width:r&&r.filterSize&&r.filterSize.width||"400%",height:r&&r.filterSize&&r.filterSize.height||"400%",x:r&&r.filterSize&&r.filterSize.x||"-100%",y:r&&r.filterSize&&r.filterSize.y||"-100%"},runExpressions:!r||r.runExpressions===void 0||r.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(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(){return function(e){function r(n){for(var i=0,a=e.layers.length;i<a;){if(e.layers[i].nm===n||e.layers[i].ind===n)return e.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(r,"_name",{value:e.data.nm}),r.layer=r,r.pixelAspect=1,r.height=e.data.h||e.globalData.compSize.h,r.width=e.data.w||e.globalData.compSize.w,r.pixelAspect=1,r.frameDuration=1/e.globalData.frameRate,r.displayStartTime=0,r.numLayers=e.layers.length,r}}();function _typeof$2(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(n){return typeof n}:_typeof$2=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$2(e)}function seedRandom(e,r){var n=this,i=256,a=6,o=52,s="random",l=r.pow(i,a),c=r.pow(2,o),u=c*2,h=i-1,b;function f(m,x,E){var k=[];x=x===!0?{entropy:!0}:x||{};var _=w(g(x.entropy?[m,v(e)]:m===null?p():m,3),k),T=new y(k),B=function(){for(var F=T.g(a),O=l,D=0;F<c;)F=(F+D)*i,O*=i,D=T.g(1);for(;F>=u;)F/=2,O/=2,D>>>=1;return(F+D)/O};return B.int32=function(){return T.g(4)|0},B.quick=function(){return T.g(4)/4294967296},B.double=B,w(v(T.S),e),(x.pass||E||function(M,F,O,D){return D&&(D.S&&d(D,T),M.state=function(){return d(T,{})}),O?(r[s]=M,F):M})(B,_,"global"in x?x.global:this==r,x.state)}r["seed"+s]=f;function y(m){var x,E=m.length,k=this,_=0,T=k.i=k.j=0,B=k.S=[];for(E||(m=[E++]);_<i;)B[_]=_++;for(_=0;_<i;_++)B[_]=B[T=h&T+m[_%E]+(x=B[_])],B[T]=x;k.g=function(M){for(var F,O=0,D=k.i,N=k.j,L=k.S;M--;)F=L[D=h&D+1],O=O*i+L[h&(L[D]=L[N=h&N+F])+(L[N]=F)];return k.i=D,k.j=N,O}}function d(m,x){return x.i=m.i,x.j=m.j,x.S=m.S.slice(),x}function g(m,x){var E=[],k=_typeof$2(m),_;if(x&&k=="object")for(_ in m)try{E.push(g(m[_],x-1))}catch{}return E.length?E:k=="string"?m:m+"\0"}function w(m,x){for(var E=m+"",k,_=0;_<E.length;)x[h&_]=h&(k^=x[h&_]*19)+E.charCodeAt(_++);return v(x)}function p(){try{var m=new Uint8Array(i);return(n.crypto||n.msCrypto).getRandomValues(m),v(m)}catch{var x=n.navigator,E=x&&x.plugins;return[+new Date,n,E,n.screen,v(e)]}}function v(m){return String.fromCharCode.apply(0,m)}w(r.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(n){return typeof n}:_typeof$1=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$1(e)}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(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,r){return e==="number"||r instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var r=_typeof$1(e);if(r==="number"||e instanceof Number||r==="boolean")return-e;if($bm_isInstanceOfArray(e)){var n,i=e.length,a=[];for(n=0;n<i;n+=1)a[n]=-e[n];return a}return e.propType?e.v:-e}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(e,r){var n=_typeof$1(e),i=_typeof$1(r);if(isNumerable(n,e)&&isNumerable(i,r)||n==="string"||i==="string")return e+r;if($bm_isInstanceOfArray(e)&&isNumerable(i,r))return e=e.slice(0),e[0]+=r,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(r))return r=r.slice(0),r[0]=e+r[0],r;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(r)){for(var a=0,o=e.length,s=r.length,l=[];a<o||a<s;)(typeof e[a]=="number"||e[a]instanceof Number)&&(typeof r[a]=="number"||r[a]instanceof Number)?l[a]=e[a]+r[a]:l[a]=r[a]===void 0?e[a]:e[a]||r[a],a+=1;return l}return 0}var add=sum;function sub(e,r){var n=_typeof$1(e),i=_typeof$1(r);if(isNumerable(n,e)&&isNumerable(i,r))return n==="string"&&(e=parseInt(e,10)),i==="string"&&(r=parseInt(r,10)),e-r;if($bm_isInstanceOfArray(e)&&isNumerable(i,r))return e=e.slice(0),e[0]-=r,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(r))return r=r.slice(0),r[0]=e-r[0],r;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(r)){for(var a=0,o=e.length,s=r.length,l=[];a<o||a<s;)(typeof e[a]=="number"||e[a]instanceof Number)&&(typeof r[a]=="number"||r[a]instanceof Number)?l[a]=e[a]-r[a]:l[a]=r[a]===void 0?e[a]:e[a]||r[a],a+=1;return l}return 0}function mul(e,r){var n=_typeof$1(e),i=_typeof$1(r),a;if(isNumerable(n,e)&&isNumerable(i,r))return e*r;var o,s;if($bm_isInstanceOfArray(e)&&isNumerable(i,r)){for(s=e.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e[o]*r;return a}if(isNumerable(n,e)&&$bm_isInstanceOfArray(r)){for(s=r.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e*r[o];return a}return 0}function div(e,r){var n=_typeof$1(e),i=_typeof$1(r),a;if(isNumerable(n,e)&&isNumerable(i,r))return e/r;var o,s;if($bm_isInstanceOfArray(e)&&isNumerable(i,r)){for(s=e.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e[o]/r;return a}if(isNumerable(n,e)&&$bm_isInstanceOfArray(r)){for(s=r.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e/r[o];return a}return 0}function mod(e,r){return typeof e=="string"&&(e=parseInt(e,10)),typeof r=="string"&&(r=parseInt(r,10)),e%r}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,r,n){if(r>n){var i=n;n=r,r=i}return Math.min(Math.max(e,r),n)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,r){if(typeof e=="number"||e instanceof Number)return r=r||0,Math.abs(e-r);r||(r=helperLengthArray);var n,i=Math.min(e.length,r.length),a=0;for(n=0;n<i;n+=1)a+=Math.pow(r[n]-e[n],2);return Math.sqrt(a)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var r=e[0],n=e[1],i=e[2],a=Math.max(r,n,i),o=Math.min(r,n,i),s,l,c=(a+o)/2;if(a===o)s=0,l=0;else{var u=a-o;switch(l=c>.5?u/(2-a-o):u/(a+o),a){case r:s=(n-i)/u+(n<i?6:0);break;case n:s=(i-r)/u+2;break;case i:s=(r-n)/u+4;break}s/=6}return[s,l,c,e[3]]}function hue2rgb(e,r,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(r-e)*6*n:n<1/2?r:n<2/3?e+(r-e)*(2/3-n)*6:e}function hslToRgb(e){var r=e[0],n=e[1],i=e[2],a,o,s;if(n===0)a=i,s=i,o=i;else{var l=i<.5?i*(1+n):i+n-i*n,c=2*i-l;a=hue2rgb(c,l,r+1/3),o=hue2rgb(c,l,r),s=hue2rgb(c,l,r-1/3)}return[a,o,s,e[3]]}function linear(e,r,n,i,a){if((i===void 0||a===void 0)&&(i=r,a=n,r=0,n=1),n<r){var o=n;n=r,r=o}if(e<=r)return i;if(e>=n)return a;var s=n===r?0:(e-r)/(n-r);if(!i.length)return i+(a-i)*s;var l,c=i.length,u=createTypedArray("float32",c);for(l=0;l<c;l+=1)u[l]=i[l]+(a[l]-i[l])*s;return u}function random(e,r){if(r===void 0&&(e===void 0?(e=0,r=1):(r=e,e=void 0)),r.length){var n,i=r.length;e||(e=createTypedArray("float32",i));var a=createTypedArray("float32",i),o=BMMath.random();for(n=0;n<i;n+=1)a[n]=e[n]+o*(r[n]-e[n]);return a}e===void 0&&(e=0);var s=BMMath.random();return e+s*(r-e)}function createPath(e,r,n,i){var a,o=e.length,s=shapePool.newElement();s.setPathData(!!i,o);var l=[0,0],c,u;for(a=0;a<o;a+=1)c=r&&r[a]?r[a]:l,u=n&&n[a]?n[a]:l,s.setTripleAt(e[a][0],e[a][1],u[0]+e[a][0],u[1]+e[a][1],c[0]+e[a][0],c[1]+e[a][1],a,!0);return s}function initiateExpression(elem,data,property){function noOp(e){return e}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 e(r,n){var i,a,o=this.pv.length?this.pv.length:1,s=createTypedArray("float32",o);r=5;var l=Math.floor(time*r);for(i=0,a=0;i<l;){for(a=0;a<o;a+=1)s[a]+=-n+n*2*BMMath.random();i+=1}var c=time*r,u=c-Math.floor(c),h=createTypedArray("float32",o);if(o>1){for(a=0;a<o;a+=1)h[a]=this.pv[a]+s[a]+(-n+n*2*BMMath.random())*u;return h}return this.pv+s[0]+(-n+n*2*BMMath.random())*u}).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(e,r){return loopIn(e,r,!0)}function loopOutDuration(e,r){return loopOut(e,r,!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(e,r){var n=[r[0]-e[0],r[1]-e[1],r[2]-e[2]],i=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads,a=-Math.atan2(n[1],n[2])/degToRads;return[a,i,0]}function easeOut(e,r,n,i,a){return applyEase(easeOutBez,e,r,n,i,a)}function easeIn(e,r,n,i,a){return applyEase(easeInBez,e,r,n,i,a)}function ease(e,r,n,i,a){return applyEase(easeInOutBez,e,r,n,i,a)}function applyEase(e,r,n,i,a,o){a===void 0?(a=n,o=i):r=(r-n)/(i-n),r>1?r=1:r<0&&(r=0);var s=e(r);if($bm_isInstanceOfArray(a)){var l,c=a.length,u=createTypedArray("float32",c);for(l=0;l<c;l+=1)u[l]=(o[l]-a[l])*s+a[l];return u}return(o-a)*s+a}function nearestKey(e){var r,n=data.k.length,i,a;if(!data.k.length||typeof data.k[0]=="number")i=0,a=0;else if(i=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)i=1,a=data.k[0].t;else{for(r=0;r<n-1;r+=1)if(e===data.k[r].t){i=r+1,a=data.k[r].t;break}else if(e>data.k[r].t&&e<data.k[r+1].t){e-data.k[r].t>data.k[r+1].t-e?(i=r+2,a=data.k[r+1].t):(i=r+1,a=data.k[r].t);break}i===-1&&(i=r+1,a=data.k[r].t)}var o={};return o.index=i,o.time=a/elem.comp.globalData.frameRate,o}function key(e){var r,n,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,r={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var a=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(i=a.length,n=0;n<i;n+=1)r[n]=a[n],r.value[n]=a[n];return r}function framesToTime(e,r){return r||(r=elem.comp.globalData.frameRate),e/r}function timeToFrames(e,r){return!e&&e!==0&&(e=time),r||(r=elem.comp.globalData.frameRate),e*r}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,r){return typeof value=="string"?r===void 0?value.substring(e):value.substring(e,r):""}function substr(e,r){return typeof value=="string"?r===void 0?value.substr(e):value.substr(e,r):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,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(e){return value=e,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 e={};e.initExpressions=r,e.resetFrame=ExpressionManager.resetFrame;function r(n){var i=0,a=[];function o(){i+=1}function s(){i-=1,i===0&&c()}function l(u){a.indexOf(u)===-1&&a.push(u)}function c(){var u,h=a.length;for(u=0;u<h;u+=1)a[u].release();a.length=0}n.renderer.compInterface=CompExpressionInterface(n.renderer),n.renderer.globalData.projectInterface.registerComposition(n.renderer),n.renderer.globalData.pushExpression=o,n.renderer.globalData.popExpression=s,n.renderer.globalData.registerExpressionProperty=l}return e}(),MaskManagerInterface=function(){function e(n,i){this._mask=n,this._data=i}Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var r=function(i){var a=createSizedArray(i.viewData.length),o,s=i.viewData.length;for(o=0;o<s;o+=1)a[o]=new e(i.viewData[o],i.masksProperties[o]);var l=function(u){for(o=0;o<s;){if(i.masksProperties[o].nm===u)return a[o];o+=1}return null};return l};return r}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},r={pv:[0,0,0],v:[0,0,0],mult:1};function n(s,l,c){Object.defineProperty(s,"velocity",{get:function(){return l.getVelocityAtTime(l.comp.currentFrame)}}),s.numKeys=l.keyframes?l.keyframes.length:0,s.key=function(u){if(!s.numKeys)return 0;var h="";"s"in l.keyframes[u-1]?h=l.keyframes[u-1].s:"e"in l.keyframes[u-2]?h=l.keyframes[u-2].e:h=l.keyframes[u-2].s;var b=c==="unidimensional"?new Number(h):Object.assign({},h);return b.time=l.keyframes[u-1].t/l.elem.comp.globalData.frameRate,b.value=c==="unidimensional"?h[0]:h,b},s.valueAtTime=l.getValueAtTime,s.speedAtTime=l.getSpeedAtTime,s.velocityAtTime=l.getVelocityAtTime,s.propertyGroup=l.propertyGroup}function i(s){(!s||!("pv"in s))&&(s=e);var l=1/s.mult,c=s.pv*l,u=new Number(c);return u.value=c,n(u,s,"unidimensional"),function(){return s.k&&s.getValue(),c=s.v*l,u.value!==c&&(u=new Number(c),u.value=c,n(u,s,"unidimensional")),u}}function a(s){(!s||!("pv"in s))&&(s=r);var l=1/s.mult,c=s.data&&s.data.l||s.pv.length,u=createTypedArray("float32",c),h=createTypedArray("float32",c);return u.value=h,n(u,s,"multidimensional"),function(){s.k&&s.getValue();for(var b=0;b<c;b+=1)h[b]=s.v[b]*l,u[b]=h[b];return u}}function o(){return e}return function(s){return s?s.propType==="unidimensional"?i(s):a(s):o}}(),TransformExpressionInterface=function(){return function(e){function r(s){switch(s){case"scale":case"Scale":case"ADBE Scale":case 6:return r.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return r.rotation;case"ADBE Rotate X":return r.xRotation;case"ADBE Rotate Y":return r.yRotation;case"position":case"Position":case"ADBE Position":case 2:return r.position;case"ADBE Position_0":return r.xPosition;case"ADBE Position_1":return r.yPosition;case"ADBE Position_2":return r.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return r.anchorPoint;case"opacity":case"Opacity":case 11:return r.opacity;default:return null}}Object.defineProperty(r,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(r,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(r,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(r,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(r,"scale",{get:ExpressionPropertyInterface(e.s)});var n,i,a,o;return e.p?o=ExpressionPropertyInterface(e.p):(n=ExpressionPropertyInterface(e.px),i=ExpressionPropertyInterface(e.py),e.pz&&(a=ExpressionPropertyInterface(e.pz))),Object.defineProperty(r,"position",{get:function(){return e.p?o():[n(),i(),a?a():0]}}),Object.defineProperty(r,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(r,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(r,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(r,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(r,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(r,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(r,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(r,"orientation",{get:ExpressionPropertyInterface(e.or)}),r}}(),LayerExpressionInterface=function(){function e(u){var h=new Matrix;if(u!==void 0){var b=this._elem.finalTransform.mProp.getValueAtTime(u);b.clone(h)}else{var f=this._elem.finalTransform.mProp;f.applyToMatrix(h)}return h}function r(u,h){var b=this.getMatrix(h);return b.props[12]=0,b.props[13]=0,b.props[14]=0,this.applyPoint(b,u)}function n(u,h){var b=this.getMatrix(h);return this.applyPoint(b,u)}function i(u,h){var b=this.getMatrix(h);return b.props[12]=0,b.props[13]=0,b.props[14]=0,this.invertPoint(b,u)}function a(u,h){var b=this.getMatrix(h);return this.invertPoint(b,u)}function o(u,h){if(this._elem.hierarchy&&this._elem.hierarchy.length){var b,f=this._elem.hierarchy.length;for(b=0;b<f;b+=1)this._elem.hierarchy[b].finalTransform.mProp.applyToMatrix(u)}return u.applyToPointArray(h[0],h[1],h[2]||0)}function s(u,h){if(this._elem.hierarchy&&this._elem.hierarchy.length){var b,f=this._elem.hierarchy.length;for(b=0;b<f;b+=1)this._elem.hierarchy[b].finalTransform.mProp.applyToMatrix(u)}return u.inversePoint(h)}function l(u){var h=new Matrix;if(h.reset(),this._elem.finalTransform.mProp.applyToMatrix(h),this._elem.hierarchy&&this._elem.hierarchy.length){var b,f=this._elem.hierarchy.length;for(b=0;b<f;b+=1)this._elem.hierarchy[b].finalTransform.mProp.applyToMatrix(h);return h.inversePoint(u)}return h.inversePoint(u)}function c(){return[1,1,1,1]}return function(u){var h;function b(g){y.mask=new MaskManagerInterface(g,u)}function f(g){y.effect=g}function y(g){switch(g){case"ADBE Root Vectors Group":case"Contents":case 2:return y.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return h;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return y.effect;case"ADBE Text Properties":return y.textInterface;default:return null}}y.getMatrix=e,y.invertPoint=s,y.applyPoint=o,y.toWorld=n,y.toWorldVec=r,y.fromWorld=a,y.fromWorldVec=i,y.toComp=n,y.fromComp=l,y.sampleImage=c,y.sourceRectAtTime=u.sourceRectAtTime.bind(u),y._elem=u,h=TransformExpressionInterface(u.finalTransform.mProp);var d=getDescriptor(h,"anchorPoint");return Object.defineProperties(y,{hasParent:{get:function(){return u.hierarchy.length}},parent:{get:function(){return u.hierarchy[0].layerInterface}},rotation:getDescriptor(h,"rotation"),scale:getDescriptor(h,"scale"),position:getDescriptor(h,"position"),opacity:getDescriptor(h,"opacity"),anchorPoint:d,anchor_point:d,transform:{get:function(){return h}},active:{get:function(){return u.isInRange}}}),y.startTime=u.data.st,y.index=u.data.ind,y.source=u.data.refId,y.height=u.data.ty===0?u.data.h:100,y.width=u.data.ty===0?u.data.w:100,y.inPoint=u.data.ip/u.comp.globalData.frameRate,y.outPoint=u.data.op/u.comp.globalData.frameRate,y._name=u.data.nm,y.registerMaskInterface=b,y.registerEffectsInterface=f,y}}(),propertyGroupFactory=function(){return function(e,r){return function(n){return n=n===void 0?1:n,n<=0?e:r(n-1)}}}(),PropertyInterface=function(){return function(e,r){var n={_name:e};function i(a){return a=a===void 0?1:a,a<=0?n:r(a-1)}return i}}(),EffectsExpressionInterface=function(){var e={createEffectsInterface:r};function r(a,o){if(a.effectsManager){var s=[],l=a.data.ef,c,u=a.effectsManager.effectElements.length;for(c=0;c<u;c+=1)s.push(n(l[c],a.effectsManager.effectElements[c],o,a));var h=a.data.ef||[],b=function(y){for(c=0,u=h.length;c<u;){if(y===h[c].nm||y===h[c].mn||y===h[c].ix)return s[c];c+=1}return null};return Object.defineProperty(b,"numProperties",{get:function(){return h.length}}),b}return null}function n(a,o,s,l){function c(y){for(var d=a.ef,g=0,w=d.length;g<w;){if(y===d[g].nm||y===d[g].mn||y===d[g].ix)return d[g].ty===5?h[g]:h[g]();g+=1}throw new Error}var u=propertyGroupFactory(c,s),h=[],b,f=a.ef.length;for(b=0;b<f;b+=1)a.ef[b].ty===5?h.push(n(a.ef[b],o.effectElements[b],o.effectElements[b].propertyGroup,l)):h.push(i(o.effectElements[b],a.ef[b].ty,l,u));return a.mn==="ADBE Color Control"&&Object.defineProperty(c,"color",{get:function(){return h[0]()}}),Object.defineProperties(c,{numProperties:{get:function(){return a.np}},_name:{value:a.nm},propertyGroup:{value:u}}),c.enabled=a.en!==0,c.active=c.enabled,c}function i(a,o,s,l){var c=ExpressionPropertyInterface(a.p);function u(){return o===10?s.comp.compInterface(a.p.v):c()}return a.p.setGroupProperty&&a.p.setGroupProperty(PropertyInterface("",l)),u}return e}(),ShapePathInterface=function(){return function(r,n,i){var a=n.sh;function o(l){return l==="Shape"||l==="shape"||l==="Path"||l==="path"||l==="ADBE Vector Shape"||l===2?o.path:null}var s=propertyGroupFactory(o,i);return a.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(o,{path:{get:function(){return a.k&&a.getValue(),a}},shape:{get:function(){return a.k&&a.getValue(),a}},_name:{value:r.nm},ix:{value:r.ix},propertyIndex:{value:r.ix},mn:{value:r.mn},propertyGroup:{value:i}}),o}}(),ShapeExpressionInterface=function(){function e(d,g,w){var p=[],v,m=d?d.length:0;for(v=0;v<m;v+=1)d[v].ty==="gr"?p.push(n(d[v],g[v],w)):d[v].ty==="fl"?p.push(i(d[v],g[v],w)):d[v].ty==="st"?p.push(s(d[v],g[v],w)):d[v].ty==="tm"?p.push(l(d[v],g[v],w)):d[v].ty==="tr"||(d[v].ty==="el"?p.push(u(d[v],g[v],w)):d[v].ty==="sr"?p.push(h(d[v],g[v],w)):d[v].ty==="sh"?p.push(ShapePathInterface(d[v],g[v],w)):d[v].ty==="rc"?p.push(b(d[v],g[v],w)):d[v].ty==="rd"?p.push(f(d[v],g[v],w)):d[v].ty==="rp"?p.push(y(d[v],g[v],w)):d[v].ty==="gf"?p.push(a(d[v],g[v],w)):p.push(o(d[v],g[v])));return p}function r(d,g,w){var p,v=function(E){for(var k=0,_=p.length;k<_;){if(p[k]._name===E||p[k].mn===E||p[k].propertyIndex===E||p[k].ix===E||p[k].ind===E)return p[k];k+=1}return typeof E=="number"?p[E-1]:null};v.propertyGroup=propertyGroupFactory(v,w),p=e(d.it,g.it,v.propertyGroup),v.numProperties=p.length;var m=c(d.it[d.it.length-1],g.it[g.it.length-1],v.propertyGroup);return v.transform=m,v.propertyIndex=d.cix,v._name=d.nm,v}function n(d,g,w){var p=function(E){switch(E){case"ADBE Vectors Group":case"Contents":case 2:return p.content;default:return p.transform}};p.propertyGroup=propertyGroupFactory(p,w);var v=r(d,g,p.propertyGroup),m=c(d.it[d.it.length-1],g.it[g.it.length-1],p.propertyGroup);return p.content=v,p.transform=m,Object.defineProperty(p,"_name",{get:function(){return d.nm}}),p.numProperties=d.np,p.propertyIndex=d.ix,p.nm=d.nm,p.mn=d.mn,p}function i(d,g,w){function p(v){return v==="Color"||v==="color"?p.color:v==="Opacity"||v==="opacity"?p.opacity:null}return Object.defineProperties(p,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},_name:{value:d.nm},mn:{value:d.mn}}),g.c.setGroupProperty(PropertyInterface("Color",w)),g.o.setGroupProperty(PropertyInterface("Opacity",w)),p}function a(d,g,w){function p(v){return v==="Start Point"||v==="start point"?p.startPoint:v==="End Point"||v==="end point"?p.endPoint:v==="Opacity"||v==="opacity"?p.opacity:null}return Object.defineProperties(p,{startPoint:{get:ExpressionPropertyInterface(g.s)},endPoint:{get:ExpressionPropertyInterface(g.e)},opacity:{get:ExpressionPropertyInterface(g.o)},type:{get:function(){return"a"}},_name:{value:d.nm},mn:{value:d.mn}}),g.s.setGroupProperty(PropertyInterface("Start Point",w)),g.e.setGroupProperty(PropertyInterface("End Point",w)),g.o.setGroupProperty(PropertyInterface("Opacity",w)),p}function o(){function d(){return null}return d}function s(d,g,w){var p=propertyGroupFactory(_,w),v=propertyGroupFactory(k,p);function m(T){Object.defineProperty(k,d.d[T].nm,{get:ExpressionPropertyInterface(g.d.dataProps[T].p)})}var x,E=d.d?d.d.length:0,k={};for(x=0;x<E;x+=1)m(x),g.d.dataProps[x].p.setGroupProperty(v);function _(T){return T==="Color"||T==="color"?_.color:T==="Opacity"||T==="opacity"?_.opacity:T==="Stroke Width"||T==="stroke width"?_.strokeWidth:null}return Object.defineProperties(_,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},strokeWidth:{get:ExpressionPropertyInterface(g.w)},dash:{get:function(){return k}},_name:{value:d.nm},mn:{value:d.mn}}),g.c.setGroupProperty(PropertyInterface("Color",p)),g.o.setGroupProperty(PropertyInterface("Opacity",p)),g.w.setGroupProperty(PropertyInterface("Stroke Width",p)),_}function l(d,g,w){function p(m){return m===d.e.ix||m==="End"||m==="end"?p.end:m===d.s.ix?p.start:m===d.o.ix?p.offset:null}var v=propertyGroupFactory(p,w);return p.propertyIndex=d.ix,g.s.setGroupProperty(PropertyInterface("Start",v)),g.e.setGroupProperty(PropertyInterface("End",v)),g.o.setGroupProperty(PropertyInterface("Offset",v)),p.propertyIndex=d.ix,p.propertyGroup=w,Object.defineProperties(p,{start:{get:ExpressionPropertyInterface(g.s)},end:{get:ExpressionPropertyInterface(g.e)},offset:{get:ExpressionPropertyInterface(g.o)},_name:{value:d.nm}}),p.mn=d.mn,p}function c(d,g,w){function p(m){return d.a.ix===m||m==="Anchor Point"?p.anchorPoint:d.o.ix===m||m==="Opacity"?p.opacity:d.p.ix===m||m==="Position"?p.position:d.r.ix===m||m==="Rotation"||m==="ADBE Vector Rotation"?p.rotation:d.s.ix===m||m==="Scale"?p.scale:d.sk&&d.sk.ix===m||m==="Skew"?p.skew:d.sa&&d.sa.ix===m||m==="Skew Axis"?p.skewAxis:null}var v=propertyGroupFactory(p,w);return g.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",v)),g.transform.mProps.p.setGroupProperty(PropertyInterface("Position",v)),g.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",v)),g.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",v)),g.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",v)),g.transform.mProps.sk&&(g.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",v)),g.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",v))),g.transform.op.setGroupProperty(PropertyInterface("Opacity",v)),Object.defineProperties(p,{opacity:{get:ExpressionPropertyInterface(g.transform.mProps.o)},position:{get:ExpressionPropertyInterface(g.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(g.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(g.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(g.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(g.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(g.transform.mProps.sa)},_name:{value:d.nm}}),p.ty="tr",p.mn=d.mn,p.propertyGroup=w,p}function u(d,g,w){function p(x){return d.p.ix===x?p.position:d.s.ix===x?p.size:null}var v=propertyGroupFactory(p,w);p.propertyIndex=d.ix;var m=g.sh.ty==="tm"?g.sh.prop:g.sh;return m.s.setGroupProperty(PropertyInterface("Size",v)),m.p.setGroupProperty(PropertyInterface("Position",v)),Object.defineProperties(p,{size:{get:ExpressionPropertyInterface(m.s)},position:{get:ExpressionPropertyInterface(m.p)},_name:{value:d.nm}}),p.mn=d.mn,p}function h(d,g,w){function p(x){return d.p.ix===x?p.position:d.r.ix===x?p.rotation:d.pt.ix===x?p.points:d.or.ix===x||x==="ADBE Vector Star Outer Radius"?p.outerRadius:d.os.ix===x?p.outerRoundness:d.ir&&(d.ir.ix===x||x==="ADBE Vector Star Inner Radius")?p.innerRadius:d.is&&d.is.ix===x?p.innerRoundness:null}var v=propertyGroupFactory(p,w),m=g.sh.ty==="tm"?g.sh.prop:g.sh;return p.propertyIndex=d.ix,m.or.setGroupProperty(PropertyInterface("Outer Radius",v)),m.os.setGroupProperty(PropertyInterface("Outer Roundness",v)),m.pt.setGroupProperty(PropertyInterface("Points",v)),m.p.setGroupProperty(PropertyInterface("Position",v)),m.r.setGroupProperty(PropertyInterface("Rotation",v)),d.ir&&(m.ir.setGroupProperty(PropertyInterface("Inner Radius",v)),m.is.setGroupProperty(PropertyInterface("Inner Roundness",v))),Object.defineProperties(p,{position:{get:ExpressionPropertyInterface(m.p)},rotation:{get:ExpressionPropertyInterface(m.r)},points:{get:ExpressionPropertyInterface(m.pt)},outerRadius:{get:ExpressionPropertyInterface(m.or)},outerRoundness:{get:ExpressionPropertyInterface(m.os)},innerRadius:{get:ExpressionPropertyInterface(m.ir)},innerRoundness:{get:ExpressionPropertyInterface(m.is)},_name:{value:d.nm}}),p.mn=d.mn,p}function b(d,g,w){function p(x){return d.p.ix===x?p.position:d.r.ix===x?p.roundness:d.s.ix===x||x==="Size"||x==="ADBE Vector Rect Size"?p.size:null}var v=propertyGroupFactory(p,w),m=g.sh.ty==="tm"?g.sh.prop:g.sh;return p.propertyIndex=d.ix,m.p.setGroupProperty(PropertyInterface("Position",v)),m.s.setGroupProperty(PropertyInterface("Size",v)),m.r.setGroupProperty(PropertyInterface("Rotation",v)),Object.defineProperties(p,{position:{get:ExpressionPropertyInterface(m.p)},roundness:{get:ExpressionPropertyInterface(m.r)},size:{get:ExpressionPropertyInterface(m.s)},_name:{value:d.nm}}),p.mn=d.mn,p}function f(d,g,w){function p(x){return d.r.ix===x||x==="Round Corners 1"?p.radius:null}var v=propertyGroupFactory(p,w),m=g;return p.propertyIndex=d.ix,m.rd.setGroupProperty(PropertyInterface("Radius",v)),Object.defineProperties(p,{radius:{get:ExpressionPropertyInterface(m.rd)},_name:{value:d.nm}}),p.mn=d.mn,p}function y(d,g,w){function p(x){return d.c.ix===x||x==="Copies"?p.copies:d.o.ix===x||x==="Offset"?p.offset:null}var v=propertyGroupFactory(p,w),m=g;return p.propertyIndex=d.ix,m.c.setGroupProperty(PropertyInterface("Copies",v)),m.o.setGroupProperty(PropertyInterface("Offset",v)),Object.defineProperties(p,{copies:{get:ExpressionPropertyInterface(m.c)},offset:{get:ExpressionPropertyInterface(m.o)},_name:{value:d.nm}}),p.mn=d.mn,p}return function(d,g,w){var p;function v(x){if(typeof x=="number")return x=x===void 0?1:x,x===0?w:p[x-1];for(var E=0,k=p.length;E<k;){if(p[E]._name===x)return p[E];E+=1}return null}function m(){return w}return v.propertyGroup=propertyGroupFactory(v,m),p=e(d,g,v.propertyGroup),v.numProperties=p.length,v._name="Contents",v}}(),TextExpressionInterface=function(){return function(e){var r;function n(i){switch(i){case"ADBE Text Document":return n.sourceText;default:return null}}return Object.defineProperty(n,"sourceText",{get:function(){e.textProperty.getValue();var a=e.textProperty.currentData.t;return(!r||a!==r.value)&&(r=new String(a),r.value=a||new String(a),Object.defineProperty(r,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),r}}),n}}();function _typeof(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(n){return typeof n}:_typeof=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof(e)}var FootageInterface=function(){var e=function(i){var a="",o=i.getFootageData();function s(){return a="",o=i.getFootageData(),l}function l(c){if(o[c])return a=c,o=o[c],_typeof(o)==="object"?l:o;var u=c.indexOf(a);if(u!==-1){var h=parseInt(c.substr(u+a.length),10);return o=o[h],_typeof(o)==="object"?l:o}return""}return s},r=function(i){function a(o){return o==="Outline"?a.outlineInterface():null}return a._name="Outline",a.outlineInterface=e(i),a};return function(n){function i(a){return a==="Data"?i.dataInterface:null}return i._name="Data",i.dataInterface=r(n),i}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=function(){function e(s,l,c){l.x&&(c.k=!0,c.x=!0,c.initiateExpression=ExpressionManager.initiateExpression,c.effectsSequence.push(c.initiateExpression(s,l,c).bind(c)))}function r(s){return s*=this.elem.globalData.frameRate,s-=this.offsetTime,s!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<s?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(s,this._cachingAtTime),this._cachingAtTime.lastFrame=s),this._cachingAtTime.value}function n(s){var l=-.01,c=this.getValueAtTime(s),u=this.getValueAtTime(s+l),h=0;if(c.length){var b;for(b=0;b<c.length;b+=1)h+=Math.pow(u[b]-c[b],2);h=Math.sqrt(h)*100}else h=0;return h}function i(s){if(this.vel!==void 0)return this.vel;var l=-.001,c=this.getValueAtTime(s),u=this.getValueAtTime(s+l),h;if(c.length){h=createTypedArray("float32",c.length);var b;for(b=0;b<c.length;b+=1)h[b]=(u[b]-c[b])/l}else h=(u-c)/l;return h}function a(){return this.pv}function o(s){this.propertyGroup=s}return{searchExpressions:e,getSpeedAtTime:n,getVelocityAtTime:i,getValueAtTime:r,getStaticValueAtTime:a,setGroupProperty:o}}();function addPropertyDecorator(){function e(f,y,d){if(!this.k||!this.keyframes)return this.pv;f=f?f.toLowerCase():"";var g=this.comp.renderedFrame,w=this.keyframes,p=w[w.length-1].t;if(g<=p)return this.pv;var v,m;d?(y?v=Math.abs(p-this.elem.comp.globalData.frameRate*y):v=Math.max(0,p-this.elem.data.ip),m=p-v):((!y||y>w.length-1)&&(y=w.length-1),m=w[w.length-1-y].t,v=p-m);var x,E,k;if(f==="pingpong"){var _=Math.floor((g-m)/v);if(_%2!==0)return this.getValueAtTime((v-(g-m)%v+m)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var T=this.getValueAtTime(m/this.comp.globalData.frameRate,0),B=this.getValueAtTime(p/this.comp.globalData.frameRate,0),M=this.getValueAtTime(((g-m)%v+m)/this.comp.globalData.frameRate,0),F=Math.floor((g-m)/v);if(this.pv.length){for(k=new Array(T.length),E=k.length,x=0;x<E;x+=1)k[x]=(B[x]-T[x])*F+M[x];return k}return(B-T)*F+M}else if(f==="continue"){var O=this.getValueAtTime(p/this.comp.globalData.frameRate,0),D=this.getValueAtTime((p-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(k=new Array(O.length),E=k.length,x=0;x<E;x+=1)k[x]=O[x]+(O[x]-D[x])*((g-p)/this.comp.globalData.frameRate)/5e-4;return k}return O+(O-D)*((g-p)/.001)}return this.getValueAtTime(((g-m)%v+m)/this.comp.globalData.frameRate,0)}function r(f,y,d){if(!this.k)return this.pv;f=f?f.toLowerCase():"";var g=this.comp.renderedFrame,w=this.keyframes,p=w[0].t;if(g>=p)return this.pv;var v,m;d?(y?v=Math.abs(this.elem.comp.globalData.frameRate*y):v=Math.max(0,this.elem.data.op-p),m=p+v):((!y||y>w.length-1)&&(y=w.length-1),m=w[y].t,v=m-p);var x,E,k;if(f==="pingpong"){var _=Math.floor((p-g)/v);if(_%2===0)return this.getValueAtTime(((p-g)%v+p)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var T=this.getValueAtTime(p/this.comp.globalData.frameRate,0),B=this.getValueAtTime(m/this.comp.globalData.frameRate,0),M=this.getValueAtTime((v-(p-g)%v+p)/this.comp.globalData.frameRate,0),F=Math.floor((p-g)/v)+1;if(this.pv.length){for(k=new Array(T.length),E=k.length,x=0;x<E;x+=1)k[x]=M[x]-(B[x]-T[x])*F;return k}return M-(B-T)*F}else if(f==="continue"){var O=this.getValueAtTime(p/this.comp.globalData.frameRate,0),D=this.getValueAtTime((p+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(k=new Array(O.length),E=k.length,x=0;x<E;x+=1)k[x]=O[x]+(O[x]-D[x])*(p-g)/.001;return k}return O+(O-D)*(p-g)/.001}return this.getValueAtTime((v-((p-g)%v+p))/this.comp.globalData.frameRate,0)}function n(f,y){if(!this.k)return this.pv;if(f=(f||.4)*.5,y=Math.floor(y||5),y<=1)return this.pv;var d=this.comp.renderedFrame/this.comp.globalData.frameRate,g=d-f,w=d+f,p=y>1?(w-g)/(y-1):1,v=0,m=0,x;this.pv.length?x=createTypedArray("float32",this.pv.length):x=0;for(var E;v<y;){if(E=this.getValueAtTime(g+v*p),this.pv.length)for(m=0;m<this.pv.length;m+=1)x[m]+=E[m];else x+=E;v+=1}if(this.pv.length)for(m=0;m<this.pv.length;m+=1)x[m]/=y;else x/=y;return x}function i(f){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var y=this._transformCachingAtTime.v;if(y.cloneFromProps(this.pre.props),this.appliedTransformations<1){var d=this.a.getValueAtTime(f);y.translate(-d[0]*this.a.mult,-d[1]*this.a.mult,d[2]*this.a.mult)}if(this.appliedTransformations<2){var g=this.s.getValueAtTime(f);y.scale(g[0]*this.s.mult,g[1]*this.s.mult,g[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var w=this.sk.getValueAtTime(f),p=this.sa.getValueAtTime(f);y.skewFromAxis(-w*this.sk.mult,p*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var v=this.r.getValueAtTime(f);y.rotate(-v*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var m=this.rz.getValueAtTime(f),x=this.ry.getValueAtTime(f),E=this.rx.getValueAtTime(f),k=this.or.getValueAtTime(f);y.rotateZ(-m*this.rz.mult).rotateY(x*this.ry.mult).rotateX(E*this.rx.mult).rotateZ(-k[2]*this.or.mult).rotateY(k[1]*this.or.mult).rotateX(k[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var _=this.px.getValueAtTime(f),T=this.py.getValueAtTime(f);if(this.data.p.z){var B=this.pz.getValueAtTime(f);y.translate(_*this.px.mult,T*this.py.mult,-B*this.pz.mult)}else y.translate(_*this.px.mult,T*this.py.mult,0)}else{var M=this.p.getValueAtTime(f);y.translate(M[0]*this.p.mult,M[1]*this.p.mult,-M[2]*this.p.mult)}return y}function a(){return this.v.clone(new Matrix)}var o=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(f,y,d){var g=o(f,y,d);return g.dynamicProperties.length?g.getValueAtTime=i.bind(g):g.getValueAtTime=a.bind(g),g.setGroupProperty=expressionHelpers.setGroupProperty,g};var s=PropertyFactory.getProp;PropertyFactory.getProp=function(f,y,d,g,w){var p=s(f,y,d,g,w);p.kf?p.getValueAtTime=expressionHelpers.getValueAtTime.bind(p):p.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(p),p.setGroupProperty=expressionHelpers.setGroupProperty,p.loopOut=e,p.loopIn=r,p.smooth=n,p.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(p),p.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(p),p.numKeys=y.a===1?y.k.length:0,p.propertyIndex=y.ix;var v=0;return d!==0&&(v=createTypedArray("float32",y.a===1?y.k[0].s.length:y.k.length)),p._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:v},expressionHelpers.searchExpressions(f,y,p),p.k&&w.addDynamicProperty(p),p};function l(f){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),f*=this.elem.globalData.frameRate,f-=this.offsetTime,f!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<f?this._caching.lastIndex:0,this._cachingAtTime.lastTime=f,this.interpolateShape(f,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var c=ShapePropertyFactory.getConstructorFunction(),u=ShapePropertyFactory.getKeyframedConstructorFunction();function h(){}h.prototype={vertices:function(y,d){this.k&&this.getValue();var g=this.v;d!==void 0&&(g=this.getValueAtTime(d,0));var w,p=g._length,v=g[y],m=g.v,x=createSizedArray(p);for(w=0;w<p;w+=1)y==="i"||y==="o"?x[w]=[v[w][0]-m[w][0],v[w][1]-m[w][1]]:x[w]=[v[w][0],v[w][1]];return x},points:function(y){return this.vertices("v",y)},inTangents:function(y){return this.vertices("i",y)},outTangents:function(y){return this.vertices("o",y)},isClosed:function(){return this.v.c},pointOnPath:function(y,d){var g=this.v;d!==void 0&&(g=this.getValueAtTime(d,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(g));for(var w=this._segmentsLength,p=w.lengths,v=w.totalLength*y,m=0,x=p.length,E=0,k;m<x;){if(E+p[m].addedLength>v){var _=m,T=g.c&&m===x-1?0:m+1,B=(v-E)/p[m].addedLength;k=bez.getPointInSegment(g.v[_],g.v[T],g.o[_],g.i[T],B,p[m]);break}else E+=p[m].addedLength;m+=1}return k||(k=g.c?[g.v[0][0],g.v[0][1]]:[g.v[g._length-1][0],g.v[g._length-1][1]]),k},vectorOnPath:function(y,d,g){y==1?y=this.v.c:y==0&&(y=.999);var w=this.pointOnPath(y,d),p=this.pointOnPath(y+.001,d),v=p[0]-w[0],m=p[1]-w[1],x=Math.sqrt(Math.pow(v,2)+Math.pow(m,2));if(x===0)return[0,0];var E=g==="tangent"?[v/x,m/x]:[-m/x,v/x];return E},tangentOnPath:function(y,d){return this.vectorOnPath(y,d,"tangent")},normalOnPath:function(y,d){return this.vectorOnPath(y,d,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([h],c),extendPrototype([h],u),u.prototype.getValueAtTime=l,u.prototype.initiateExpression=ExpressionManager.initiateExpression;var b=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(f,y,d,g,w){var p=b(f,y,d,g,w);return p.propertyIndex=y.ix,p.lock=!1,d===3?expressionHelpers.searchExpressions(f,y.pt,p):d===4&&expressionHelpers.searchExpressions(f,y.ks,p),p.k&&f.addDynamicProperty(p),p}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){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(r,n){var i=this.calculateExpression(n);if(r.t!==i){var a={};return this.copyData(a,r),a.t=i.toString(),a.__complete=!1,a}return r},TextProperty.prototype.searchProperty=function(){var r=this.searchKeyframes(),n=this.searchExpressions();return this.kf=r||n,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(r,n){var i=createNS("feMerge");i.setAttribute("result",r);var a,o;for(o=0;o<n.length;o+=1)a=createNS("feMergeNode"),a.setAttribute("in",n[o]),i.appendChild(a),i.appendChild(a);return i}};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(e,r,n,i,a){this.filterManager=r;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=o,o.setAttribute("result",i+"_tint_1"),e.appendChild(o),o=createNS("feColorMatrix"),o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",i+"_tint_2"),e.appendChild(o),this.matrixFilter=o;var s=this.createMergeNode(i,[a,i+"_tint_1",i+"_tint_2"]);e.appendChild(s)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var r=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",n[0]-r[0]+" 0 0 0 "+r[0]+" "+(n[1]-r[1])+" 0 0 0 "+r[1]+" "+(n[2]-r[2])+" 0 0 0 "+r[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,r,n,i){this.filterManager=r;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",i),e.appendChild(a),this.matrixFilter=a}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var r=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+r[0]+" 0 0 0 0 "+r[1]+" 0 0 0 0 "+r[2]+" 0 0 0 "+n+" 0")}};function SVGStrokeEffect(e,r,n){this.initialized=!1,this.filterManager=r,this.elem=n,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,r,n,i,a;for(this.filterManager.effectElements[1].p.v===1?(a=this.elem.maskManager.masksProperties.length,i=0):(i=this.filterManager.effectElements[0].p.v-1,a=i+1),n=createNS("g"),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),n.setAttribute("stroke-dashoffset",1),i;i<a;i+=1)r=createNS("path"),n.appendChild(r),this.paths.push({p:r,m:i});if(this.filterManager.effectElements[10].p.v===3){var o=createNS("mask"),s=createElementID();o.setAttribute("id",s),o.setAttribute("mask-type","alpha"),o.appendChild(n),this.elem.globalData.defs.appendChild(o);var l=createNS("g");for(l.setAttribute("mask","url("+getLocationHref()+"#"+s+")");e[0];)l.appendChild(e[0]);this.elem.layerElement.appendChild(l),this.masker=o,n.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(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(n),this.elem.layerElement.removeAttribute("mask"),n.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=n},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var r,n=this.paths.length,i,a;for(r=0;r<n;r+=1)if(this.paths[r].m!==-1&&(i=this.elem.maskManager.viewData[this.paths[r].m],a=this.paths[r].p,(e||this.filterManager._mdf||i.prop._mdf)&&a.setAttribute("d",i.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var o;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var s=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,c=a.getTotalLength();o="0 0 0 "+c*s+" ";var u=c*(l-s),h=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,b=Math.floor(u/h),f;for(f=0;f<b;f+=1)o+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";o+="0 "+c*10+" 0 0"}else o="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;a.setAttribute("stroke-dasharray",o)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||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)&&(e||this.filterManager.effectElements[3].p._mdf)){var y=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(y[0]*255)+","+bmFloor(y[1]*255)+","+bmFloor(y[2]*255)+")")}};function SVGTritoneFilter(e,r,n,i){this.filterManager=r;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.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"),e.appendChild(a);var o=createNS("feComponentTransfer");o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",i),this.matrixFilter=o;var s=createNS("feFuncR");s.setAttribute("type","table"),o.appendChild(s),this.feFuncR=s;var l=createNS("feFuncG");l.setAttribute("type","table"),o.appendChild(l),this.feFuncG=l;var c=createNS("feFuncB");c.setAttribute("type","table"),o.appendChild(c),this.feFuncB=c,e.appendChild(o)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var r=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,a=i[0]+" "+n[0]+" "+r[0],o=i[1]+" "+n[1]+" "+r[1],s=i[2]+" "+n[2]+" "+r[2];this.feFuncR.setAttribute("tableValues",a),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",s)}};function SVGProLevelsFilter(e,r,n,i){this.filterManager=r;var a=this.filterManager.effectElements,o=createNS("feComponentTransfer");(a[10].p.k||a[10].p.v!==0||a[11].p.k||a[11].p.v!==1||a[12].p.k||a[12].p.v!==1||a[13].p.k||a[13].p.v!==0||a[14].p.k||a[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",o)),(a[17].p.k||a[17].p.v!==0||a[18].p.k||a[18].p.v!==1||a[19].p.k||a[19].p.v!==1||a[20].p.k||a[20].p.v!==0||a[21].p.k||a[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",o)),(a[24].p.k||a[24].p.v!==0||a[25].p.k||a[25].p.v!==1||a[26].p.k||a[26].p.v!==1||a[27].p.k||a[27].p.v!==0||a[28].p.k||a[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",o)),(a[31].p.k||a[31].p.v!==0||a[32].p.k||a[32].p.v!==1||a[33].p.k||a[33].p.v!==1||a[34].p.k||a[34].p.v!==0||a[35].p.k||a[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",o)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(o.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(o)),(a[3].p.k||a[3].p.v!==0||a[4].p.k||a[4].p.v!==1||a[5].p.k||a[5].p.v!==1||a[6].p.k||a[6].p.v!==0||a[7].p.k||a[7].p.v!==1)&&(o=createNS("feComponentTransfer"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",i),e.appendChild(o),this.feFuncRComposed=this.createFeFunc("feFuncR",o),this.feFuncGComposed=this.createFeFunc("feFuncG",o),this.feFuncBComposed=this.createFeFunc("feFuncB",o))}SVGProLevelsFilter.prototype.createFeFunc=function(e,r){var n=createNS(e);return n.setAttribute("type","table"),r.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(e,r,n,i,a){for(var o=0,s=256,l,c=Math.min(e,r),u=Math.max(e,r),h=Array.call(null,{length:s}),b,f=0,y=a-i,d=r-e;o<=256;)l=o/256,l<=c?b=d<0?a:i:l>=u?b=d<0?i:a:b=i+y*Math.pow((l-e)/d,1/n),h[f]=b,f+=1,o+=256/(s-1);return h.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var r,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(r=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",r),this.feFuncGComposed.setAttribute("tableValues",r),this.feFuncBComposed.setAttribute("tableValues",r)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(r=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",r)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(r=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",r)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(r=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",r)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(r=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",r))}};function SVGDropShadowEffect(e,r,n,i,a){var o=r.container.globalData.renderConfig.filterSize,s=r.data.fs||o;e.setAttribute("x",s.x||o.x),e.setAttribute("y",s.y||o.y),e.setAttribute("width",s.width||o.width),e.setAttribute("height",s.height||o.height),this.filterManager=r;var l=createNS("feGaussianBlur");l.setAttribute("in","SourceAlpha"),l.setAttribute("result",i+"_drop_shadow_1"),l.setAttribute("stdDeviation","0"),this.feGaussianBlur=l,e.appendChild(l);var c=createNS("feOffset");c.setAttribute("dx","25"),c.setAttribute("dy","0"),c.setAttribute("in",i+"_drop_shadow_1"),c.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=c,e.appendChild(c);var u=createNS("feFlood");u.setAttribute("flood-color","#00ff00"),u.setAttribute("flood-opacity","1"),u.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=u,e.appendChild(u);var h=createNS("feComposite");h.setAttribute("in",i+"_drop_shadow_3"),h.setAttribute("in2",i+"_drop_shadow_2"),h.setAttribute("operator","in"),h.setAttribute("result",i+"_drop_shadow_4"),e.appendChild(h);var b=this.createMergeNode(i,[i+"_drop_shadow_4",a]);e.appendChild(b)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var r=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(r[0]*255),Math.round(r[1]*255),Math.round(r[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,a=n*Math.cos(i),o=n*Math.sin(i);this.feOffset.setAttribute("dx",a),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,r,n){this.initialized=!1,this.filterManager=r,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var r=0,n=_svgMatteSymbols.length;r<n;){if(_svgMatteSymbols[r]===e)return _svgMatteSymbols[r];r+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,r){var n=e.layerElement.parentNode;if(n){for(var i=n.children,a=0,o=i.length;a<o&&i[a]!==e.layerElement;)a+=1;var s;a<=o-2&&(s=i[a+1]);var l=createNS("use");l.setAttribute("href","#"+r),s?n.insertBefore(l,s):n.appendChild(l)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,r){if(!this.findSymbol(r)){var n=createElementID(),i=createNS("mask");i.setAttribute("id",r.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(r);var a=e.globalData.defs;a.appendChild(i);var o=createNS("symbol");o.setAttribute("id",n),this.replaceInParent(r,n),o.appendChild(r.layerElement),a.appendChild(o);var s=createNS("use");s.setAttribute("href","#"+n),i.appendChild(s),r.data.hd=!1,r.show()}e.setMatte(r.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,r=this.elem.comp.elements,n=0,i=r.length;n<i;)r[n]&&r[n].data.ind===e&&this.setElementAsMask(this.elem,r[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,r,n,i){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=r;var a=createNS("feGaussianBlur");a.setAttribute("result",i),e.appendChild(a),this.feGaussianBlur=a}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var r=.3,n=this.filterManager.effectElements[0].p.v*r,i=this.filterManager.effectElements[1].p.v,a=i==3?0:n,o=i==2?0:n;this.feGaussianBlur.setAttribute("stdDeviation",a+" "+o);var s=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",s)}};function TransformEffect(){}TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var r=this.effectsManager.effectElements,n=r[0].p.v,i=r[1].p.v,a=r[2].p.v===1,o=r[3].p.v,s=a?o:r[4].p.v,l=r[5].p.v,c=r[6].p.v,u=r[7].p.v;this.matrix.reset(),this.matrix.translate(-n[0],-n[1],n[2]),this.matrix.scale(s*.01,o*.01,1),this.matrix.rotate(-u*degToRads),this.matrix.skewFromAxis(-l*degToRads,(c+90)*degToRads),this.matrix.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==r[8].p.v&&(this.opacity=r[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,r){this.init(r)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}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(e){const r=usePickComponentStyle(e),n=vue.computed(()=>useImagePath(e.imgUrl)),{pageMode:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{getGlobalModel:a,setGlobalModel:o}=vue.inject(GLOBAL_MODEL,{getGlobalModel:b=>{},setGlobalModel:(b,f)=>{}}),l=useEmitEvent(e)("click",()=>{const b=a(e.id);if(o(e.id,{...b,type:e.type,RECORD:e.data||{}}),setTimeout(()=>{o(e.id,{...b,type:e.type,RECORD:{}})},0),!e.linkPage&&!e.href)return;const f=e.linkPage||"",y=usePageUrl(vue.unref(i),f),d=e.href;let g=d||y;g=useVariablesInText(g);const w=e.target;w&&(w!=="event"?window.open(g,"_"+w):window.parent.postMessage({type:"openPage",url:d},"*"))}),c=vue.ref(),u=vue.ref(),h=()=>{const{directory:b}=e.animationSource;e.isAnimation&&c.value&&b&&(u.value=lottie.loadAnimation({name:`${e.keyName}-lotTie`,container:c.value,renderer:"svg",loop:!0,autoplay:!0,path:useImagePath(b)+"data.json"}),vue.unref(u).setSpeed(1))};return vue.watch(()=>[e.isAnimation,e.animationSource],([b])=>{b&&vue.nextTick(()=>{h()})},{immediate:!0,deep:!0}),useOnEvent(e,{click:l}),{style:r,myImgUrl:n,animation:c,pageMode:i,onClick:l}}}),__injectCSSVars__$1=()=>{vue.useCssVars(e=>({"01f4f5d8":e.isHoverStyle?"pointer":"auto",26617791:e.isHoverStyle?"0.6":"1"}))},__setup__$1=__default__$1.setup;__default__$1.setup=__setup__$1?(e,r)=>(__injectCSSVars__$1(),__setup__$1(e,r)):__injectCSSVars__$1;const Image_vue_vue_type_style_index_0_scoped_8c627cf7_lang="",_hoisted_1$3=["src"];function _sfc_render$4(e,r,n,i,a,o){var s;return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[e.isAnimation?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[e.animationSource.directory?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["ecan-image",e.pageMode==="design"?"component":""]),ref:"animation",style:vue.normalizeStyle(e.style),onClick:r[0]||(r[0]=(...l)=>e.onClick&&e.onClick(...l))},null,6)):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[e.myImgUrl!==""?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:vue.normalizeClass(["ecan-image",e.pageMode==="design"?"component":""]),style:vue.normalizeStyle(e.style),src:e.myImgUrl,onClick:r[1]||(r[1]=(...l)=>e.onClick&&e.onClick(...l))},null,14,_hoisted_1$3)):vue.createCommentVNode("",!0)],64)),(e.isAnimation?!((s=e.animationSource)!=null&&s.directory):!e.myImgUrl)?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["image-placeholder",e.pageMode==="design"?"component":""]),style:vue.normalizeStyle(e.style)}," 请上传图片 ",6)):vue.createCommentVNode("",!0)],64)}const Image$1=_export_sfc$1(__default__$1,[["render",_sfc_render$4],["__scopeId","data-v-8c627cf7"]]),EcanImage=withInstall$1(Image$1),iframeProps={...props,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},iframeComponentProps=transformToComponentProps(iframeProps),_sfc_main$2=vue.defineComponent({name:"EcanIframe",props:{...iframeComponentProps},setup(e){const r=usePickComponentStyle(e),{contextRequestUrl:n}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:""}),i=vue.computed(()=>{let a=useVariablesInText(e.link);if(e.linkType==="erd"&&a!=null){let o=vue.unref(n);o[o.length-1]==="/"?o+="erdReport":o+="/erdReport",a=`${ERD_URL||o}?_t=0&uid=${a}`}return a});return{style:r,myLink:i}}}),Iframe_vue_vue_type_style_index_0_scoped_19bc100c_lang="",_hoisted_1$2=["src"];function _sfc_render$3(e,r,n,i,a,o){return e.myLink?(vue.openBlock(),vue.createElementBlock("iframe",{key:0,src:e.myLink,style:vue.normalizeStyle(e.style)},null,12,_hoisted_1$2)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"iframe-placeholder",style:vue.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Iframe=_export_sfc$1(_sfc_main$2,[["render",_sfc_render$3],["__scopeId","data-v-19bc100c"]]),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:""},tableComponentProps=transformToComponentProps(tableProps),tableEvents=["click","refreshData","resetRecord","exportTableData"],seqIcon1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8oFilY+dZfEL3FnudOXKtVt3LqxyoQtlI1WUCFhYpSCIhKoAgTwhJMFkZm73bavP7dO3h9yQpJJNJtObnJx7u+ee+333O6cfDJahSQCHhhk91p1Ttj8xs4F8zOEe2dx3C2hH0efkkwCvKluCPEc+l7mfKHvD+X7jW8qjsqV0th60Hqh6GSsSUQlgWNDX0RGoQNauCdcbmvruU8oWnB9NqAtvGRtgPzJXJuMMh86U8jX7USPd57H4OmPwjWEOZ5/hfRdvDi6WiYumbj1Q/YrZSkf0l2OAytlRLj5BtAm4uwvV0pG9hl4S3lW2C3DEopdP9mDolpV9vew+JN80hxll+0xy8nU1iHXKLmYi83sM4D+tzl/SfWVXfqXstt8GcIy52oKpW5OBUl7sO7TeiEPBadoZi0y0l96aYOwdbb9MPgcgr+wxzgw6l0uBeduTggl13WEgkz4yipEC04dJicg3WeK3Jx9ibl7nSczVcZO3tPEpeQoXbn+rbIZDxi0V0XqgKxlRky56Wg0dxoNgB5LCi3OiaqGM9sVMYSfJ54JsVvbDKKajapdm/JL6e5e7IfkMH2N6Ip2YxSVXM8y3fI6MhYnJhM4gWUX5tngc87dqXTmBJWXOkUbwqJT0hP+Boe6qCXT0aNtmjFp4Bw0Cgncqe1I68TUAGJduu/q70+UkQNBX9lAwLpV8IzaoKooB1FENbYkCQW9UwhINqoZUV1+jHFii5UoZC5k1PBOAKHfnwjX0k9syEaYmAPamQbQeaK0hOniw+CxSzXGPE8y3OMMP/HKYyIPvRhuV73gQmvvOTQdYqdwJZwtPaNGV6Kzu5dpv1MuiuJnrxZUVtgyTRqIy5AOZ5OBI4mfT4kWm+4FGvmkWdVdNoKO9xRdjsXGMyJwJfUw1F0J6r0qEJCL6cbZsED2rER20EK1oxGwxIhRV/zQxInjs6oVsszQBAFmNbt5OTRrRVi8y3gP5cDai9UBrDdGR3rYXFKVGJDtBunCqnEHqXhYJdXe5Yk7qDljUJRGyqyGisxqTaGrnVkuPjOnqOtymc06vOuRZkoV9Td2N81F3FQaaiNFP5QCnWv+kIPpRihilIWqjaKNLqSay0k8aoo5G1E45WQ1vo5VyHoeoZPC8qYwSROuB4kuhb7SmED2lqXvFou5eVxRVwB9my68THSiPLoa6SxGjZaduTQY6eLB4TCF0D5JaNy3QZzy+Vd33XkPltUcRtWvdtPSSVvfa07THVUa2GFF6yVWnl2n1PK12rasroyoxqgcKAPY3uuIRHevd+pKCfkiCmY1TZbTQQO2inop5u5BPo649dZsjj6L7kTyKmdTOo56QSN1mf3ZRX0XdVRPo8OF2XHwe5fyNR2vd+RD9S68VXddrR6o/IWVXQ3ZdS9cXWutWIaqrpayTSJmjEd0WCLMyuDvHceGgCtF6oAsQo5WF6KEdryB1hTAVT9o0rQ2iteq+k/myEa0si/dARrhjFhT+LMUL2A+EY5aF7PUhKuYXkUdnrRkVrJy5KwiRss1+1GCJ2n1lM+Ekm9HD9UCrJ94rH9Herai645Dk0bMVP6t8f1iLYxN6NTELyR7HiVwF92P2e+Jpoo0D8YZxfyVexVft75KHdFZtRsb120Kpm7Pmnt0NHOm5LeC08qnybLxHA/Jr+o1MJvxC2U1nhkbJx4ZXS6Bjh4uHVNQVyUweHeYebrhe4zE6ql3VZ6LuyGQdqaSTYosrzYbx+w0lXBBvd2UH9Q01ijiORveGhTihm4wM0JmJUevKhEZkaG8mArhmkJISt/mb803fkQ+gBRnETp9ONpbrgdYaoncPbMZyyfWzXQS9iMI9yp4WzNBvSLpNyvevSLZwr2qxGkk4A2UtWvt83kLutxvC58guMIn+KWvz+FbFw62/dktkso7E6k8ADCXDS6QnA/4j+cq+d0nZbb/eth8DU3fVGYZVE6jZ8T4C5qOfyHXi3kV5soybv6pJgG71d1yy7eQb4I5eFk12SK6JuJC5n2xuVU21TjSEyJzDfmjOJgUMsMKKACas30PU/Cj6nnxhkEERahUFOokCcP48Hq+z0bMIZkyV1OInqwdaI4imwZwc4OgxJ1Xu5SfbkMJSPEl9eMR2K3tYsC3kuyEczH83w4TO9tx0uxf/1+kntdEmJ54wBAx+oHFEwK4ou5QT/eQr/jzwQNN0vgWKWWHNdaAq9vfUeKBpKJNvtKuAaQbR3dCIx+aYlChUqk1ziWJzP3LwDBLeZ73/gifuKZ/PWB9dZ8xBkcnxivE1XbwbT7WSRYvHPda81xZ86LEeaK0imsaRqZ5WUwXNZHJ4hhecyFRVjFmpVMKNmM7sKo3V/Hs/VjXLRdO0Z1w0dVd1oHbwUp/UnoLNmDJUmxnjZgbWUhhBMWKnrcOM80rJ0m9YFkRXQqD/A/mshzl9oUoNAAAAAElFTkSuQmCC",seqIcon2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABQFJREFUaEPtWt1v21QUv9eJ80FbWmV0adel7ZqyLenSgVYJaQghHhBIICEhoWkvSGgCiQ+JdWMCISEVxAPSoEWT+AN4QTzxzl/Ah8SAQtJ23dKvreuydl3TrIsd23e6xz63LovqeE2BePaLT06ur33O7+dzj8+5lPyHh5I7f4TfPpT6IIuPQSll9XwkWs/J3M7lGQOV7JdpYTxjX206gr4IMiM/CwQDdBhQTZ8VOreOs4//VxD0DWwkBO/kxjqRIkFDHwWZktdQZ2h6AOXlpUUQY3s7BKuCsoxB5ltUalLgYy43pYevu6Vr3SnqKQNZ9ptm9KjK7n5iye/bAkqYyzeuLQjV3OVJIavlMshyKCR03f2HQe5I9AgdpbRkBiP6BSpD6xTYQY+fubsdqjtC0DeQscZBkLERCamgZFveNmMH+9xGjzYu3165KVSzUzmQS8U1t7GBNLU8Kq7pS0HCQ1pjj9nmofPmD/aRoO3A2e/huWzZUM0U9ayB5exoP3iFGT/a3NfH5Y3SulDNTJrp5OpywTVatV6wJy5WIHLgkJkcRR5p2rzcWk8NSTuBSkcEfQMtVzUEgowxQFTLnj+OEBtEeteST6Lu2swVEGcvmUEEXnVW168cR9ZSyYx5vQdTYmxXbxKf5eWqFPWkgSw7GkNrVWa8A2gQkkCdrigQm4Ph8Kuom7j4K4grhSVHT+/2gFh7XNwifeyp+xH0vIEYJU3TjXP8VFiYLaJbSsViK5eTA4Nvoi732y8g3rp5Y7cBcpzfEUHfQC8iOD3+u0goJUlq5zzpP3L0Lc9Q1PMGTv55USSUciCwt9EQlCh5Riz01YKMb+D/fJlwhWA4JHdxuPtSmTcaJcj4BtrfwWg00m1m7enXPYmgb6Bjtri7A6rlolveQeWvMfHFyKh+mj+OpyjqfQPHRzNIIiYZ79WCYH7ib7hkcS6/u/yrYfZ9PVDggwPrp1sp6ht4/zLhKQRZRYUO0qEnhk4hFQLBYAuX7UVeLBvai8E1MMzVEHuRFwu/9mIwLzLAhAZ5WiTbigNFPWng/KWJVfTAfP4y1GfC4bBo4iUHBp/lulh7XHiKt/m4bmlhTqAyb/UCK6rqCik+2N4zTCQPwvWdiV4xD5WkCv9BGbmASlkLQDOIPjl8e1sEPWXglpYz02ELB2MEKmn8KK2uQBv2ymTW5DchZH1tDbzX0toGLTN+9KcyL/Bzc1ubWHYqqgqVckTynwhjNRyr1Pz/fd0HYD5EjctBGcjB+3VTeD9JZ/B1Iw+e+wl11c7UN7DREbTDyqYvQMtZVRVzBxK8xPR5fjYYC6Ju+fpV2BQwO5UTrduyoupcF+/aL8r+3Y8ffonrIpGo0NmXkYK1OaHToiUfG45GLTYSUVVmViAJKaWvxXMNjWxsR00x7qEysJpHsHdRYYZovhiMDfGxuq6JntnV/DSE5sWZvLnlA9ZbA87JVOYY6uL7e4ER/JAkam5DoUQwgRH2HVdphvwpjmvOnH7gHoFjh9c30HJzwyJYjbbl8TH4RqGSJvagMUJBp2zcgTWSH4VFMxh1JHogd+VHKBQxowhMQCGoMV37DFWRox+Kta7avd3qHCn6UBqIRmPLG4KC1dc3qPTK5v9mRkQJEa0ASukP+L+cPvOHCWR9tzHbQXkgBH0DLQ9gTtuwCFZ7PzEb4v9Vyhok3vJyEagIdHxuRHMbKHYyfkcUbQQD7wHq9EAq9LeVYwAAAABJRU5ErkJggg==",seqIcon3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABMJJREFUaEPtWl1sFFUUPndmlm1LdW1XoGxly7qFYqmIBkxEJDTRRI3RxNhgpDzpkwixJCaEJx588MHQCPrgGwT8SSD4Zkx84DfGEEjU2KpAS6ktZVsKpF0K3Z+55p4798ysGdju0A3Mdu5De/bcn7nnfN/ce+ecy+ABli1fHGsTjz+4fWMPTYMxPptTYrM5WKljBQaW6jGX9mVF8N19p2PimYxBnXq2ZpqfK5kDvCpl/qvSMdC7hPzN9vWkux87AwNn6r3O7pOLRVtT5+/bfVinJS9TOjNvakoeG0mhGF20gLoYIUMtMgcI9TzsEvKhrg0jM52PzYhSe9ylfWCg5RhfINjx9c8RMd/QnapN9v7FP7Dk1aTjPCTk1LDNrIHzfVSduTONcmgeNsPStCyJ/xvijfbQjKXFD87ZZ0qZy+t7hHx4x7rb9yKhp0Wmogx8be+PYeGhCNS+TC89AC7lAPCCw3s1Qr557TqpLv19AeX0xOS9nOxaN/+RWtInW1tQjkRptxE/BxFVYDtVw++2rf8eZcdpqCiCgYG2/32AIOeI6OYvT62jeXO2RVKBv+PgUlTIU+lbpOr/6zzKN8bGS6bjTDtEGxZS08SKZpSra9CvVpEnIt3UaPErpGglGtix55d6ZX/IyH4oX1JYonSZ25kGIc+rCr+pdEP9l1Ec+Oei7Ts+q185RUFlmjwQJVokkqI0JuL43wR4Q+lYYKDfEez86hhhbJraJwLaoT7cYrCkJyaRoitWtxFFe8/9jnXjqbGiVCp3g/qFj9MjVq6Rh6gCis5JA3vP/kFe0TQmEXx2FSHYc/Y3rL8+eq3cABUd3xOCgYF+R7DnjE1R3ahAigYGPuQU5SZ7iU4ybtuE3xEMDHQiGAqHnhBwL1/V+rqC/WHfB0tCMDCw6FmjvA3cTjIFCG7qPvGUmoJuwMdCdlI0XF2FH1nNbS1WHgHAVxSteAM37zvxtEKQA3xUcQgGBvr9HfSCYH+vDBEOD9hf/uVdK+8+emwpxcdARcALVtE5aeClP+1w4GR64jHhv9bnnqFQnBEyMNrqDPKqwK8zGDzbqDqDvCrw6wwGiyCDeCZn+RfpsO2GYGCgnxBUqWeEVpdpMc44JjiRhqMyHfbvxT7KUjbE4xifWxBbRHsoABhCd3VwmJh5+YJMdmYz2ZLZ6kyKLmlOYP9YHM/9WJim4aAc2F6lC+dznwp5f1f7TWpX8QY6XatygXW8ls6dwNgroo3JTUIwNXgFu42OjFCWcuny5PNCF6mvo0CyQk4h+X+EuZXPUHkGUd/YJJd9hZqQHTcvjqj5anpe3rzY2m6viC48KcguBQZaHvItgm4rgco+GXrubaIHY2uEnMlMEwMGrAUlP52jLGVTSxITqdXza0jn3CdTQ5LqMYuWQg5XV6nHnKOFAjT8CPByvatojr7iDXRD9b3uU0+iXocOqmcm6qYmpkiVuiIRakom5DUJANAMY61jTJV/lhlVLHyH+Pvttg0/2GN7v0NaFMHAQHpRKghBm03yVoYodDODw1tENnUi4too+YHxn6jelHcBsjeiR5Xu8O6VGTfWeNV5oujcMdDFreqwIKoi7FE8q14dz8qMKQAc392e84qGl373h2Bg4INH8D9A563p5gHY1gAAAABJRU5ErkJggg==",__default__=vue.defineComponent({name:"EcanTable",components:{Skeleton,AButton:antDesignVue.Button,AInput:antDesignVue.Input,ACheckboxGroup:antDesignVue.CheckboxGroup,ATable:antDesignVue.Table,ATableSummary:antDesignVue.TableSummary,ATableSummaryRow:antDesignVue.TableSummaryRow,ATableSummaryCell:antDesignVue.TableSummaryCell,DownOutlined:DownOutlined$1,RightOutlined:RightOutlined$1},props:{...tableComponentProps},setup(e,{expose:r}){const{pageMode:n}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),i=vue.ref(!1),a=vue.computed(()=>{const Z=lodashEs.cloneDeep(e.columns);return e.isUseSeq&&Z.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Z.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),Z}),o=vue.ref(),s=vue.ref(!1),l=usePickComponentStyle(e),c=vue.ref([]),u=vue.computed(()=>e.scrollX),h=vue.ref(parseFloat(e.height)),b=()=>{let Z=0;switch(e.size){case"small":Z=50;break;case"middle":Z=53;break;default:Z=65;break}return Z};vue.watchEffect(()=>{var Z;(Z=c.value)!=null&&Z.length&&e.height&&setTimeout(()=>{let Q=parseFloat(e.height);const re=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),le=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),ue=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let ce=0;if(le&&(Q-=(le==null?void 0:le.clientHeight)||0),ue&&e.isSummaryFixed&&(ce=(ue==null?void 0:ue.clientHeight)||0,Q-=ce),e.paginationShow){let oe=0;oe=b(),oe&&(Q-=oe)}(re==null?void 0:re.clientHeight)>Q?h.value=Q:h.value=0,vue.nextTick(()=>{if(ce){const oe=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),me=(oe==null?void 0:oe.clientHeight)||0;ce!==me&&vue.unref(h)&&(h.value=Q+ce-me)}})},0)});const f=vue.ref([]),y=vue.ref([]),d=vue.ref([]),g=vue.ref([]),w=vue.ref(0),p=vue.ref(1),v=vue.ref(e.paginationPageSize||10),m=vue.reactive([]),x=(Z,Q)=>{let re="";return Z.forEach((le,ue)=>{const{value:ce,rule:oe}=le;le.conditions?re+=`(${x(le.conditions,le.join)})`:ce&&oe&&(re+=`value ${oe} '${ce}'`),re+=`${ue===Z.length-1?"":Q?" "+Q+" ":""}`}),re},E=(Z=[])=>{var Q,re;if(Array.isArray(Z)&&Z.length>0){let le=Z.length;const ue=e.columnsFixedNum;if(e.dataType==="indicator"&&((Q=vue.unref(a))!=null&&Q.length)&&!vue.unref(a).find(ce=>{var oe;return(oe=ce.children)==null?void 0:oe.length})){const{graphicConfig:{indicators:ce=[]}}=e;Z.forEach((oe,me)=>{if(vue.unref(a)[me])for(const _e in vue.unref(a)[me])["dataIndex","title"].includes(_e)||(oe[_e]=vue.unref(a)[me][_e]);const xe=ce.find(_e=>_e.label===oe.title),{showLabel:ye=""}=xe||{};ye&&(oe.title=ye)})}for(let ce=le-1;ce>=0;ce--)(re=Z[ce])!=null&&re.isHidden&&Z.splice(ce,1);le=Z.length;for(let ce=0;ce<le;ce++){const oe=Z[ce];if(ce<ue?oe.fixed="left":oe.fixed=!1,e.isSortByFront&&oe.sorter){const Ne=oe.dataIndex;oe.sorter=(Ge,He)=>Ge[Ne]-He[Ne]}const{cellAlign:me="center",cellColor:xe,dataIndex:ye,title:_e,tableFilter:De,headerCellAlign:ke,headerCellColor:Fe,overflow:$e,conditions:ze}=oe;De&&(m.push(ye),oe.filterOptionsInputValue="",oe.filterCheckboxGroupValue=[],oe.customFilterDropdown=!0,oe.onFilter=(Ne,Ge)=>Ge[ye].toString().toLowerCase().includes(Ne.toLowerCase())),ze&&(oe.conditionCode=x(ze)),oe.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:ke||"center",color:Fe||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),oe.customCell=(Ne,Ge)=>({style:{textAlign:me,color:xe||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:vue.unref(K)===Ge&&e.clickHighlight},onClick:H("click",()=>{if(!e.linkPage&&!e.href)return;const He=e.id,We=G(He);Ne={dataIndex:ye,title:_e,...Ne},U(He,{...We,type:e.type,RECORD:Ne}),setTimeout(()=>{handleJumpLink(e,{pageMode:vue.unref(n),getRecordValueByKeyName:j})},0)})}),$e==="ellipsis"?oe.ellipsis=!0:oe.ellipsis=!1,Array.isArray(oe.children)&&E(oe.children)}}},k=(Z=[])=>{var re;let Q=lodashEs.cloneDeep(Z);return(re=vue.unref(g))!=null&&re.length&&(Q=lodashEs.cloneDeep(vue.unref(g))),e.isUseSeq&&Q.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Q.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),E(Q),Q};vue.watch(v,()=>{p.value=1,ee(!1)}),vue.watch(o,Z=>{s.value=!!Z}),vue.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.seqName,e.seqIcon,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{f.value=k(lodashEs.cloneDeep(e.columns))},{immediate:!0,deep:!0}),vue.watch(()=>[e.data,e.dataType],([Z,Q])=>{Q==="static"&&(y.value=Z)},{immediate:!0});const _=vue.ref({}),T=Z=>{if(Array.isArray(Z)){const Q=Z.length,re=m,le=re.length,ue={};for(let oe=0;oe<Q;oe++){const me=Z[oe];for(let xe=0;xe<le;xe++){const ye=re[xe];if(ue[ye])ue[ye].add(me[ye]);else{const _e=new Set;_e.add(me[ye]),ue[ye]=_e}}}const ce={};for(const oe in ue)if(Object.prototype.hasOwnProperty.call(ue,oe)){const me=ue[oe],xe=Array.from(me);ce[oe]=xe.map(ye=>({label:ye,value:ye}))}_.value=ce}};vue.watch(()=>[e.isReverse,f.value,y.value],()=>{const Z=vue.unref(f),Q=vue.unref(y);if(T(Q),e.isReverse){const{columns:re,dataSource:le}=B(lodashEs.cloneDeep(Z),lodashEs.cloneDeep(Q));d.value=re,c.value=le.map(ue=>({key:nanoid(6),...ue}))}else d.value=Z,c.value=Q.map(re=>({key:nanoid(6),...re}))},{immediate:!0});const B=(Z,Q)=>{const re=Z[0],le=[{title:re.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ce=0;ce<Q.length;ce++){const oe=Q[ce],me="col"+(ce+1);le.push({title:oe[re.dataIndex],dataIndex:me,key:me,align:"center"})}const ue=[];for(let ce=1;ce<Z.length;ce++){const oe=Z[ce],me={col0:oe.title};for(let xe=0;xe<Q.length;xe++){const ye=Q[xe];me[`col${xe+1}`]=ye[oe.dataIndex]}ue.push(me)}return{columns:le,dataSource:ue}},M=vue.ref(""),F=Z=>{var le;const{rows:Q=[],total:re=0}=((le=Z==null?void 0:Z.data)==null?void 0:le.data)||{};if(w.value=re,Array.isArray(Q)&&(y.value=Q),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:ue=[]}=e,ce=ue.find(oe=>oe.key==="dataSqlId");if((ce==null?void 0:ce.value)==="xt_jxzebg"){const oe=Q.filter(me=>!me.绩效总额).map(me=>me.ORG_NAME);oe!=null&&oe.length&&vue.nextTick(()=>{antDesignVue.notification.warning({message:"提示",description:`当前时段${oe.join("、")}绩效数据为空`,duration:3})})}}},O=useRequestData(e,F),D=async(Z=!0,Q={})=>{try{Z&&(i.value=!0),vue.unref(M)&&(Q.orderCondition=vue.unref(M)),e.paginationShow&&(Q={pageNum:vue.unref(p),pageSize:vue.unref(v)||"10",layer:"1",...Q});const re=await O(Q);F(re)}catch(re){console.error(re)}finally{i.value=!1}},N=({current:Z},Q,re)=>{if(p.value=Z,re&&Object.keys(re).length>0){const{field:le,order:ue}=re,oe={ascend:"asc",descend:"desc"}[ue];le!=null&&oe!=null&&oe?M.value=le+" "+oe:oe||(M.value="")}e.isSortByFront||ee(!1)},L=vue.computed(()=>{const Z=e.simple,Q=[e.paginationPosition],re={};return e.isShowTotal&&(re.showTotal=le=>`共 ${le} 条数据`),e.paginationShow&&{simple:Z,position:Q,total:vue.unref(w),current:vue.unref(p),pageSize:vue.unref(v)||"10",showSizeChanger:!1,size:"large",...re}}),P=Z=>+Z==1?"是":+Z==0?"否":Z,I=(Z,Q)=>{const{format:re,retentiondigit:le,customFormatter:ue,defaultVal:ce}=Q;let oe="";if(re==null||re==="")oe=Z;else{const me={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,boolean:P,decimals:formatDecimals,custom:formatCustom};me[re]||(oe=""),re==="decimals"?oe=me[re](Z,le)||"":re==="custom"?oe=me[re](Z,ue)||"":oe=me[re](Z)||""}return oe||(oe=ce),oe},C=Z=>Z==="contrast"?"upDown":"",S=Z=>{const{text:Q,format:re,declineColor:le="#39cf93",increaseColor:ue="#ff512e"}=Z;if(re==="contrast"){const ce={fontSize:e.fontSize},oe=parseFloat(Q+"");return oe>=0?ce.color=ue:oe<0&&(ce.color=le),ce}else return{}},R=vue.computed(()=>{const{fontSize:Z}=e;return{width:Z,height:Z,textIndent:`-${parseFloat(Z)*2}px`,overflow:"hidden"}}),A=Z=>{const{text:Q,declineColor:re="#39cf93",increaseColor:le="#ff512e"}=Z,{fontSize:ue}=e,ce=parseFloat(Q+""),oe={width:ue,verticalAlign:"unset"};return ce>=0?oe.filter=`drop-shadow(${le||"#ff512e"} ${ue} -1px)`:ce<0&&(oe.filter=`drop-shadow(${re||"#39cf93"} ${ue} -1px)`),oe},q=Z=>{const Q=parseFloat(Z+"");if(Q>=0)return goUp;if(Q<0)return goDown},H=useEmitEvent(e),{getGlobalModel:G,setGlobalModel:U,getRecordValueByKeyName:j}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Z=>{},setGlobalModel:(Z,Q)=>{},getRecordValueByKeyName:Z=>{}});U(e.id,{type:e.type,RECORD:""});const V=(Z=[],Q=[])=>{let re=Z.map(le=>({title:le,dataIndex:le,key:le}));vue.unref(a).find(le=>{var ue;return(ue=le.children)==null?void 0:ue.length})&&(re=lodashEs.cloneDeep(vue.unref(a))),g.value=lodashEs.cloneDeep(re),f.value=k(re),y.value=Q},$=Z=>{var Q,re,le,ue;V((re=(Q=Z==null?void 0:Z.data)==null?void 0:Q.data)==null?void 0:re.columns,(ue=(le=Z==null?void 0:Z.data)==null?void 0:le.data)==null?void 0:ue.rows)},Y=useIndicatorData(e,$),J=async(Z=!0)=>{try{Z&&(i.value=!0);const Q=vue.unref(M).split(" "),re={};e.isSortByFront||(re.sort={order:Q[1],field:Q[0]});const le=await Y(re);$(le)}catch(Q){console.error(Q)}finally{i.value=!1}},K=vue.ref(-1),ne=(Z,Q)=>({onClick:H("rowClick",()=>{const re=e.id,le=G(re);U(re,{...le,type:e.type,RECORD:Z}),K.value=Q})}),{loadedData:X}=vue.inject(LOADED_DATA,{loadedData:{}}),W=vue.ref(!1);vue.watch(X,Z=>{if(e.dataType==="indicator"){const Q=getFixedValueDatas(e.graphicConfig);Q!=null&&Q.length&&(!vue.unref(W)&&canRequestIndicator(e.graphicConfig,Z)?(W.value=!0,ee()):canRequestIndicator(e.graphicConfig,Z)||(W.value=!1))}},{deep:!0});const ee=(Z=!0)=>{switch(e.dataType){case"request":D(Z);break;case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(X))&&J(Z);break}},te=()=>{const Z=e.id,Q=G(Z);U(Z,{...Q,type:e.type,RECORD:""})},ae=vue.computed(()=>{const Z=vue.unref(d);let Q=0;const{subTotalColumn:re,subTotalName:le}=e;re&&(Q=Z.findIndex(xe=>xe.dataIndex===re),Q<0&&(Q=0));const ue=[];let ce=0;for(let xe=0;xe<Z.length;xe++){const ye=Z[xe],{isCalcTotal:_e}=ye;xe===Q?ue.push({...ye,total:le}):_e?(ue.push({...ye,index:xe,total:0}),ce++):ue.push({...ye})}if(ce===0)return[];const oe=vue.unref(c),me=ie(ue);for(let xe=0;xe<me.length;xe++){const ye=me[xe];let _e=0;const{isCalcTotal:De,dataIndex:ke}=ye;if(De===!0){for(let Fe=0;Fe<oe.length;Fe++){const ze=+oe[Fe][ke];isNaN(ze)||(_e=new big_js.Big(_e).add(ze).toNumber())}ye.total=_e}}return me});function ie(Z){var re;const Q=[];for(const le of Z)(re=le.children)!=null&&re.length?Q.push(...ie(le.children)):Q.push(le);return Q}const{setRequest:se}=vue.inject(REQUEST_MODEL,{setRequest:Z=>{}});typeof se=="function"&&se({id:e.id,requestFn:ee,sortNum:e.requestSort}),r({refreshData:ee});const he=(Z="",Q)=>useVariablesInText(Z,Q),de=Z=>{if(Z!=="event")return{self:"_self",blank:"_blank"}[Z]},ge=(Z,Q="")=>{Z==="event"&&window.parent.postMessage({type:"openPage",url:Q},"*")},be=(Z,Q)=>{Z(Q.filterCheckboxGroupValue)},Ce=(Z,Q)=>{Z({confirm:!0}),Q.filterOptionsInputValue="",Q.filterCheckboxGroupValue=[]},Te=()=>{},Se=Z=>{const Q=Z.dataIndex;if(typeof Q=="string"){let re=vue.unref(_)[Q];const le=vue.unref(Z.filterOptionsInputValue).trim();return Array.isArray(re)?(re=re.filter(ue=>typeof ue.label=="string"?ue.label.toLowerCase().includes(le.toLowerCase()):!0),re):[]}return[]},fe=async()=>{var ye,_e;const Z="EXPORT_KEY";antDesignVue.message.loading({key:Z,content:"正在导出...",duration:0});let Q=[];if(e.dataType==="static")Q=e.data;else if(e.dataType==="request"){const De={layer:"1"};vue.unref(M)&&(De.orderCondition=vue.unref(M));const ke=await O(De);Q=((_e=(ye=ke==null?void 0:ke.data)==null?void 0:ye.data)==null?void 0:_e.rows)||{}}const re=vue.unref(d),le=[],ue=[];re==null||re.forEach(De=>{le.push(De.dataIndex),ue.push(De.title)});const ce=Q.map(De=>lodashEs.pick(De,le)),oe=xlsx.utils.book_new(),me=xlsx.utils.aoa_to_sheet([ue]),xe=xlsx.utils.sheet_add_json(me,ce,{skipHeader:!0,origin:"A2"});xlsx.utils.book_append_sheet(oe,xe,"sheet"),xlsx.writeFile(oe,"表格数据.xlsx"),antDesignVue.message.success({key:Z,content:"导出成功"})},pe=(Z,Q=2)=>{const re=+Z*100;return isNaN(re)||re<=0?0:re>=100?100:re.toFixed(Q)};useOnEvent(e,{resetRecord:te,refreshData:ee,exportTableData:fe});const ve=(Z,Q)=>{let re=null;return e.stripedShow&&(re=Q%2===1?"table-striped":null),re},we=vue.computed(()=>{let Z=0;const{height:Q,isPageBottom:re}=e;return re&&Q&&(Z=parseFloat(Q)-b()),Z?Z+"px":"100%"}),Ae=vue.computed(()=>{let Z="#071655";return e.headerBackgroundColor&&(Z="transparent"),Z}),Pe=vue.computed(()=>{let Z="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(Z="transparent"),Z}),Oe=vue.computed(()=>parseFloat(e.fontSize)+16),Le=vue.computed(()=>{let Z="";const{paginationColor:Q,paginationBgColor:re,activePaginationColor:le,activePaginationBgColor:ue,hoverBackgroundColor:ce}=e;return Q&&(Z+="p-color "),re&&(Z+="p-bg-color "),le&&(Z+="active-p-color "),ue&&(Z+="active-p-bg-color "),ce&&(Z+="hover-bg-color "),Z}),Re=(Z,Q)=>{const{conditionCode:re}=Z;return runCode(re,{value:Q})};return{x:u,y:h,style:l,customRow:ne,pagination:L,formatFn:I,contrastClass:C,tableChange:N,summaryList:ae,loading:i,onTouchHrefEvent:ge,handleHref:he,handleHrefTarget:de,useRowIndex:K,tableColumns:d,tableDataSource:c,useFilterOptions:Se,useSetSelectedKeys:be,onResetFilter:Ce,onSearchFilterOptions:Te,exportTableData:fe,handleProgressText:pe,pageSizeVisible:s,pageSize:v,tableRef:o,rowClassName:ve,tableHeight:we,tableHeaderBgColor:Ae,tableBodyBgColor:Pe,getChgStyle:S,chgBoxStyle:R,getChgBoxImgStyle:A,getChgBoxImgSrc:q,seqIcon1,seqIcon2,seqIcon3,iconSize:Oe,containerClass:Le,getCellStyle:(Z,Q)=>{const{overflow:re,conditionCode:le,attribute:ue}=Z,ce={};return re==="ellipsis"&&(ce.overflow="hidden",ce.textOverflow="ellipsis"),le&&(ue!=null&&ue.color)&&Re(Z,Q)&&(ce.color=ue.color),ue!=null&&ue.icon&&(Z==null?void 0:Z.cellAlign)==="right"&&(ce.display="flex",ce.alignItems="center",ce.justifyContent="flex-end"),ce},isMatchCondition:Re,getAttrImgSrc:Z=>{const{attribute:Q}=Z;let re="";return Q!=null&&Q.icon&&(re=useImagePath(Q.icon)),re},getAttrImgStyle:Z=>{let Q={};return(Z==null?void 0:Z.cellAlign)==="right"?Q={marginRight:"5px"}:Q={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(e.fontSize)+6+"px",...Q}},getCellText:(Z,Q)=>Z||Z===0?Z:Q==null?void 0:Q.defaultVal}}}),__injectCSSVars__=()=>{vue.useCssVars(e=>({"05e6e36f":e.stripedColor,ef318a34:e.tableHeaderBgColor,"48dfb371":e.tableBodyBgColor,"50e87b81":e.paginationBgColor,"74d59186":e.paginationColor,"38156f5b":e.activePaginationBgColor,"1681b3e0":e.activePaginationColor,"3074667c":e.hoverBackgroundColor}))},__setup__=__default__.setup;__default__.setup=__setup__?(e,r)=>(__injectCSSVars__(),__setup__(e,r)):__injectCSSVars__;const Table_vue_vue_type_style_index_0_scoped_fc8391da_lang="",Table_vue_vue_type_style_index_1_lang="",_withScopeId=e=>(vue.pushScopeId("data-v-fc8391da"),e=e(),vue.popScopeId(),e),_hoisted_1$1=["id"],_hoisted_2={key:0,class:"table-tool"},_hoisted_3=vue.createTextVNode("导出数据"),_hoisted_4={key:0,style:{float:"left","margin-right":"5px"}},_hoisted_5={key:1,style:{float:"left","margin-right":"5px",visibility:"hidden"}},_hoisted_6=vue.createTextVNode(" 搜索 "),_hoisted_7=vue.createTextVNode(" 重置 "),_hoisted_8=["src","width","height"],_hoisted_9=["src","width","height"],_hoisted_10=["src","width","height"],_hoisted_11={key:1},_hoisted_12={key:1,class:"action-list"},_hoisted_13=["href","target","onClick"],_hoisted_14={key:2,class:"progress-cell"},_hoisted_15=["src"],_hoisted_16=["title"],_hoisted_17=["title"],_hoisted_18=["src"],_hoisted_19=["title"],_hoisted_20=["src"],_hoisted_21=["src"],_hoisted_22={class:"ant-pagination-options-quick-jumper"},_hoisted_23=_withScopeId(()=>vue.createElementVNode("span",null,"条 / 页",-1));function _sfc_render$2(e,r,n,i,a,o){const s=vue.resolveComponent("a-button"),l=vue.resolveComponent("down-outlined"),c=vue.resolveComponent("right-outlined"),u=vue.resolveComponent("a-input"),h=vue.resolveComponent("a-checkbox-group"),b=vue.resolveComponent("a-table-summary-cell"),f=vue.resolveComponent("a-table-summary-row"),y=vue.resolveComponent("a-table-summary"),d=vue.resolveComponent("a-table"),g=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-table",e.containerClass]),id:"ecanTable-"+e.id,style:vue.normalizeStyle(e.style)},[vue.createVNode(g,{loading:e.loading},{default:vue.withCtx(()=>{var w;return[e.isUseExport?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2,[vue.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:vue.withCtx(()=>[_hoisted_3]),_:1},8,["onClick"])])):vue.createCommentVNode("",!0),vue.createVNode(d,{ref:"tableRef",class:"table",style:vue.normalizeStyle({height:e.tableHeight}),columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:e.y?{x:e.x,y:e.y}:{x:e.x},pagination:e.pagination,"row-class-name":e.rowClassName,"show-header":!e.hideTableHeader,indentSize:30,onChange:e.tableChange},{expandIcon:vue.withCtx(p=>{var v;return[(v=p.record.children)!=null&&v.length?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4,[p.expanded?(vue.openBlock(),vue.createBlock(l,{key:0,onClick:m=>p.onExpand(p.record,m)},null,8,["onClick"])):(vue.openBlock(),vue.createBlock(c,{key:1,onClick:m=>p.onExpand(p.record,m)},null,8,["onClick"]))])):(vue.openBlock(),vue.createElementBlock("span",_hoisted_5,[vue.createVNode(l)]))]}),customFilterDropdown:vue.withCtx(({column:p,selectedKeys:v,setSelectedKeys:m,confirm:x,clearFilters:E})=>[vue.createElementVNode("div",{class:"ecan-table-filter",style:vue.normalizeStyle({height:e.filterDropdownHeight})},[vue.createVNode(u,{value:p.filterOptionsInputValue,"onUpdate:value":k=>p.filterOptionsInputValue=k,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),vue.createVNode(h,{value:p.filterCheckboxGroupValue,"onUpdate:value":k=>p.filterCheckboxGroupValue=k,class:"filter-checkbox",options:e.useFilterOptions(p),onChange:k=>e.useSetSelectedKeys(m,p)},null,8,["value","onUpdate:value","options","onChange"]),vue.createElementVNode("div",null,[vue.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>x()},{default:vue.withCtx(()=>[_hoisted_6]),_:2},1032,["onClick"]),vue.createVNode(s,{size:"small",style:{width:"90px"},onClick:vue.withModifiers(k=>e.onResetFilter(E,p),["stop"])},{default:vue.withCtx(()=>[_hoisted_7]),_:2},1032,["onClick"])])],4)]),bodyCell:vue.withCtx(({column:p,index:v,text:m,record:x})=>{var E,k,_,T,B,M;return[p.dataIndex==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[e.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[v===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,_hoisted_8)):v===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,_hoisted_9)):v>=2?(vue.openBlock(),vue.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,_hoisted_10)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"seq-icon seq-text",style:vue.normalizeStyle({fontSize:e.fontSize})},vue.toDisplayString(v+1),5)],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_11,vue.toDisplayString(v+1),1))],64)):p.dataIndex==="ACTION"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.actionList,(F,O)=>(vue.openBlock(),vue.createElementBlock("div",{class:"action",key:O},[vue.createElementVNode("a",{href:e.handleHref(F.href,x),target:e.handleHrefTarget(F.target),style:vue.normalizeStyle({color:F.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:D=>e.onTouchHrefEvent(F.target,e.handleHref(F.href,x))},vue.toDisplayString(F.title),13,_hoisted_13)]))),128))])):p.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14,[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({background:p.progressColor||"#1890ff",height:p.progressWidth||"18px",width:`${e.handleProgressText(m,p.progressTextDecimalPlaces)}%`})},null,4),vue.createElementVNode("div",{class:"progress-text",style:vue.normalizeStyle({color:+e.handleProgressText(m)<100?p.progressTextColor||"#333":p.progressFinishedTextColor||"#fff"})},vue.toDisplayString(e.handleProgressText(m,p.progressTextDecimalPlaces))+"% ",5)])):(vue.openBlock(),vue.createElementBlock("div",{key:3,style:vue.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(p,m)})},[e.isMatchCondition(p,m)&&(p==null?void 0:p.cellAlign)==="right"&&((E=p==null?void 0:p.attribute)!=null&&E.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:0,style:vue.normalizeStyle(e.getAttrImgStyle(p)),src:e.getAttrImgSrc(p)},null,12,_hoisted_15)):vue.createCommentVNode("",!0),p.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:1,title:((k=p==null?void 0:p.customFormatter)==null?void 0:k.split("{value}")[0])||""},vue.toDisplayString(((_=p==null?void 0:p.customFormatter)==null?void 0:_.split("{value}")[0])||""),9,_hoisted_16)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass([e.contrastClass(p.format)]),style:vue.normalizeStyle(e.getChgStyle({...p,text:m})),title:p.format!=null?e.formatFn(m,p):m},[p.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(e.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(e.getChgBoxImgStyle({...p,text:m})),src:e.getChgBoxImgSrc(m)},null,12,_hoisted_18)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(p.format!=null?e.formatFn(m,p):e.getCellText(m,p)),1)],14,_hoisted_17),p.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:2,title:((T=p==null?void 0:p.customFormatter)==null?void 0:T.split("{value}")[1])||""},vue.toDisplayString(((B=p==null?void 0:p.customFormatter)==null?void 0:B.split("{value}")[1])||""),9,_hoisted_19)):vue.createCommentVNode("",!0),e.isMatchCondition(p,m)&&(p==null?void 0:p.cellAlign)!=="right"&&((M=p==null?void 0:p.attribute)!=null&&M.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:3,style:vue.normalizeStyle(e.getAttrImgStyle(p)),src:e.getAttrImgSrc(p)},null,12,_hoisted_20)):vue.createCommentVNode("",!0)],4))]}),summary:vue.withCtx(()=>[e.summaryList.length>0?(vue.openBlock(),vue.createBlock(y,{key:0,fixed:e.isSummaryFixed},{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.summaryList,(p,v)=>(vue.openBlock(),vue.createBlock(b,{key:v,index:v,style:vue.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:p.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:vue.withCtx(()=>[vue.createElementVNode("span",{class:vue.normalizeClass([e.contrastClass(p.format)]),style:vue.normalizeStyle({...e.getChgStyle({...p,text:p.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[p.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(e.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(e.getChgBoxImgStyle({...p,text:p.total})),src:e.getChgBoxImgSrc(p.total)},null,12,_hoisted_21)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString((p.format!=null||p.format!=="")&&e.formatFn(p.total,p)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):vue.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","show-header","onChange"]),e.paginationShow?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[(w=e.tableDataSource)!=null&&w.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#ecanTable-"+e.id+" .ant-pagination"},[vue.createElementVNode("div",_hoisted_22,[vue.withDirectives(vue.createElementVNode("input",{type:"text","onUpdate:modelValue":r[0]||(r[0]=p=>e.pageSize=p)},null,512),[[vue.vModelText,e.pageSize]]),_hoisted_23])],8,["to"])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,_hoisted_1$1)}const Table=_export_sfc$1(__default__,[["render",_sfc_render$2],["__scopeId","data-v-fc8391da"]]),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"},mapComponentProps=transformToComponentProps(mapProps),mapEvents=["click"];core$1.use([renderers.CanvasRenderer,charts.MapChart,charts.ScatterChart,components$1.VisualMapComponent,components$1.TooltipComponent,components$1.GraphicComponent]);const _sfc_main$1=vue.defineComponent({name:"EcanMap",components:{Echarts},props:{...mapComponentProps},setup(e){const r=useRequestData({...e.tooltipRequestData,requestHeaders:{}}),n=vue.ref(),i=vue.ref(""),a=vue.ref(""),o=usePickComponentStyle(e,["backgroundImage"]),s=vue.ref(),l=vue.computed(()=>useImagePath(e.geoBackgroundImage)),c=vue.computed(()=>useImagePath(e.backgroundImage)),u=vue.computed(()=>e.geoBackgroundImage?{image:vue.unref(s),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),h=vue.computed(()=>{const N=e.symbolImage;return e.symbolImage?"image://"+useImagePath(N):"circle"}),b=N=>{let L=e.tooltipFormatter;const P=L.match(/\{(.+?)\}/g);if(P==null||P.length===0)return L;for(let I=0;I<P.length;I++){const C=P[I];let S=C.slice(1,-1).trim();const R=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,A=S.match(R);for(let q=0;q<A.length;q++){const H=A[q],G=N[H];G!=null&&(S=S.replace(H,G))}L=L.replace(C,S)}return L.split(`
128
128
  `)},f=vue.ref(!1),y=vue.ref("");let d=new AbortController;const g=(N,L)=>{const P=d.signal;f.value=!0,i.value=N,r({name:N,signal:P}).then(I=>{var C,S;if(I){const R=((S=(C=I==null?void 0:I.data)==null?void 0:C.data)==null?void 0:S.rows)||[];let A="";for(const q of R){const H=b(q)||[];if(H!=null&&H.length)for(const G of H)A+=`<div style="word-break: break-all;white-space: normal;">${G}</div>`}A=`<div style="max-width:200px;">${A}</div>`,a.value=A,L(vue.unref(y),A)}else P.aborted?a.value="Loading":a.value=N,L(vue.unref(y),a.value);f.value=!1})},w=vue.computed(()=>{const N=e.geoCenter;let L;return typeof N=="string"&&N!==""&&(L=N.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:vue.unref(c)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:L,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(P,I,C)=>{y.value=I;const{name:S=""}=P,{requestUrl:R}=e.tooltipRequestData;if(!R)return S;if(vue.unref(f))vue.unref(i)!==S&&(d.abort(),d=new AbortController);else{if(vue.unref(i)===S)return vue.unref(a);g(S,C)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:vue.unref(u),borderColor:e.geoItemStyleBorderColor,borderWidth:e.geoItemStyleBorderWidth,shadowColor:e.geoItemStyleShadowColor,shadowBlur:e.geoItemStyleShadowBlur,shadowOffsetX:e.geoItemStyleShadowOffsetX,shadowOffsetY:e.geoItemStyleShadowOffsetY},emphasis:{disabled:e.geoEmphasisDisabled,label:{color:e.geoEmphasisLabelColor},itemStyle:{areaColor:e.geoEmphasisItemStyleAreaColor,borderColor:e.geoEmphasisItemStyleBorderColor}}},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:vue.unref(h),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),p=vue.ref(!1),v=async()=>{var P;p.value=!1;const N=e.mapJson,L=`map-${e.id}`;if(N!=null&&N.path){const I=await request(((P=window==null?void 0:window.config)==null?void 0:P.uploadPath)+N.path);core$1.registerMap(L,(I==null?void 0:I.data)||{})}else core$1.registerMap(L,{});p.value=!0};vue.watch(()=>e.mapJson,()=>{v()},{immediate:!0,deep:!0});const m=async N=>{var I,C;const L=((C=(I=N==null?void 0:N.data)==null?void 0:I.data)==null?void 0:C.rows)||{},P=`map-${e.id}`;if(L!=null&&L.path){const S=await request(L.path);core$1.registerMap(P,(S==null?void 0:S.data)||{})}else core$1.registerMap(P,{})},x=useRequestData(e,m),E=async()=>{if(e.dataType==="request"){p.value=!1;try{const N=await x();m(N)}catch(N){console.error(N)}finally{p.value=!0}}},k=()=>{switch(e.dataType){case"request":E();break}},{getGlobalModel:_,setGlobalModel:T}=vue.inject(GLOBAL_MODEL,{getGlobalModel:N=>{},setGlobalModel:(N,L)=>{}}),M=useEmitEvent(e)("click",()=>{const N=_(e.id);T(e.id,{...N,RECORD:vue.unref(n)})});useOnEvent(e,{refreshData:k});const{setRequest:F}=vue.inject(REQUEST_MODEL,{setRequest:N=>{}});return typeof F=="function"&&F({id:e.id,requestFn:k,sortNum:e.requestSort}),{option:w,style:o,isLoadedData:p,geoBackgroundImageRef:s,myGeoBackgroundImage:l,customClick:()=>{vue.unref(n)&&M()},onMouseOver:(N={})=>{N.componentType==="geo"&&N.region?n.value=N.region:n.value=null}}}}),Map_vue_vue_type_style_index_0_scoped_a049dc3f_lang="",_hoisted_1=["src"];function _sfc_render$1(e,r,n,i,a,o){const s=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-map",style:vue.normalizeStyle(e.style)},[e.isLoadedData?(vue.openBlock(),vue.createBlock(s,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:"","onZr:click":e.customClick,onMouseover:e.onMouseOver},null,8,["option","onZr:click","onMouseover"])):vue.createCommentVNode("",!0),vue.withDirectives(vue.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,_hoisted_1),[[vue.vShow,!1]])],4)}const Map$1=_export_sfc$1(_sfc_main$1,[["render",_sfc_render$1],["__scopeId","data-v-a049dc3f"]]),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=vue.defineComponent({name:"EcanDataSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption},props:{...dataSelectComponentProps},setup(e,{expose:r}){const n=usePickComponentStyle(e),i=()=>document.getElementById("ProviderConfig")||document.body,a=vue.ref(e.data||[]),o=vue.ref(),s=vue.computed({get:()=>{var N;const{mode:D}=e;return(N=vue.unref(a))!=null&&N.length?o.value:D==="multiple"||D==="tags"||D==="combobox"?[]:""},set:D=>{o.value=D}}),{getGlobalModel:l,setGlobalModel:c,getRecordValueByKeyName:u}=vue.inject(GLOBAL_MODEL,{getGlobalModel:D=>{},setGlobalModel:(D,N)=>{},getRecordValueByKeyName:D=>{}}),h=e.dataFieldNames;vue.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,a.value],()=>{const{mode:D,selectFirstOption:N,value:L}=e,P=u(L),I=h.value;if(D==="multiple"||D==="tags"||D==="combobox"){if(P)o.value=P.split(",");else if(N){const C=vue.unref(a)[0];o.value=C?[C[I]]:[]}}else if(P)o.value=P;else if(N){const C=vue.unref(a)[0];o.value=C?C[I]:""}},{immediate:!0});const b=(D,N)=>{const L=h.label,P=h.value;let I;const C=N[L],S=N[P];return C!=null?I=C:S!=null&&(I=S),(I==null?void 0:I.toLowerCase().indexOf(D==null?void 0:D.toLowerCase()))>=0},f=D=>{const{label:N,value:L,options:P}=e.dataFieldNames;if(P&&Array.isArray(D))if(D.some(I=>P in I)){const I={},C=[];D.forEach(S=>{I[S[P]]||(I[S[P]]=[]),I[S[P]].push({[N]:S[N],[L]:S[L]})});for(const S in I)C.push({[N]:S,[P]:I[S]});return C}else return D;else if(!P)return D},y=vue.ref(!1),d=D=>{var N,L;if(a.value=f(((L=(N=D==null?void 0:D.data)==null?void 0:N.data)==null?void 0:L.rows)||[]),e.selectFirstOption){let P=vue.unref(a)[0];if(h.options){const I=P[h.options];I&&I.length&&(P=I[0])}o.value=P[h.value]}},g=useRequestData(e,d),w=async()=>{if(e.dataType==="request"){y.value=!0;try{const D=await g();d(D)}catch(D){console.error(D)}finally{y.value=!1}}},p=vue.computed(()=>{let D=o.value;if(e.valueType==="label"&&vue.unref(o)&&vue.unref(a)){const N=h.label,L=h.value;if(e.mode==="multiple")D=vue.unref(a).filter(P=>vue.unref(o).includes(P[L])).map(P=>P[N]);else{const P=vue.unref(a).find(I=>vue.unref(o)===I[L]);P&&(D=P[N])}}return D}),v=vue.ref([]),m=vue.computed(()=>{const D={};if(e.mode!=="multiple"){const N=vue.unref(v).find(L=>L.value===vue.unref(o));N&&(D.itemCodes=N.item_codes)}return D}),x=vue.computed(()=>{const{value:D,label:N}=h,L=vue.unref(a).find(P=>P[D]===vue.unref(s));return L?{label:L[N],value:L[D]}:{}});c(e.id,{type:e.type,value:p,...vue.unref(m),recordData:vue.unref(x)});const k=useEmitEvent(e)("selectChange",()=>{const D=e.id,N=l(D);c(D,{...N,...vue.unref(m),RECORD:p,recordData:vue.unref(x)})}),_=(D=[])=>{if(a.value=f(D),e.selectFirstOption){let N=vue.unref(a)[0];if(h.options){const L=N[h.options];L&&L.length&&(N=L[0])}o.value=N[h.value]}c(e.id,{type:e.type,value:p,...vue.unref(m),recordData:vue.unref(x)})},T=D=>{var I;const{data:N}=(D==null?void 0:D.data)||{},L=h.label,P=h.value;if(N){const{rows:C=[]}=((I=D==null?void 0:D.data)==null?void 0:I.data)||{};v.value=C;const S=C.map(q=>({[L]:q.label,[P]:q.value})),{id:R}=e,A=l(R);c(R,{...A,...vue.unref(m)}),_(S)}else _([])},B=useIndicatorData(e,T),M=async()=>{try{y.value=!0;const D=await B();T(D)}catch(D){console.error(D)}finally{y.value=!1}},F=()=>{switch(e.dataType){case"indicator":{M();break}case"request":w();break}};useOnEvent(e,{selectChange:k,refreshData:F});const{setRequest:O}=vue.inject(REQUEST_MODEL,{setRequest:({id:D,sortNum:N,requestFn:L})=>{}});return typeof O=="function"&&O({id:e.id,requestFn:F,sortNum:e.requestSort}),r({refreshData:F}),{style:n,getPopupContainer:i,myValue:o,selectChange:k,options:a,filterOption:b,loading:y,resultValue:s}}}),DataSelect_vue_vue_type_style_index_0_scoped_585d4f8a_lang="",DataSelect_vue_vue_type_style_index_1_lang="";function _sfc_render(e,r,n,i,a,o){const s=vue.resolveComponent("a-select-option"),l=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-select",style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":r[0]||(r[0]=c=>e.resultValue=c),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:vue.normalizeStyle({fontSize:e.optionFontSize})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.options,(c,u)=>(vue.openBlock(),vue.createBlock(s,{key:u,value:c.value,label:c.label,style:vue.normalizeStyle({fontSize:e.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,[["render",_sfc_render],["__scopeId","data-v-585d4f8a"]]),EcanDataSelect=withInstall$1(DataSelect),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,EcanProportion,EcanProviderConfig,EcanRadar,EcanRadio,EcanRangePicker,EcanScatter,EcanScrollText,EcanSelect,EcanTable,EcanTabs,EcanTemplate,EcanText,EcanTimeDisplay,EcanTreeSelect,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,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},Symbol.toStringTag,{value:"Module"}));function noop(){}const extend=Object.assign,inBrowser$1=typeof window<"u",isObject$1=e=>e!==null&&typeof e=="object",isDef=e=>e!=null,isFunction=e=>typeof e=="function",isPromise=e=>isObject$1(e)&&isFunction(e.then)&&isFunction(e.catch),isDate=e=>Object.prototype.toString.call(e)==="[object Date]"&&!Number.isNaN(e.getTime()),isNumeric=e=>typeof e=="number"||/^\d+(\.\d+)?$/.test(e),isIOS=()=>inBrowser$1?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function get(e,r){const n=r.split(".");let i=e;return n.forEach(a=>{var o;i=isObject$1(i)&&(o=i[a])!=null?o:""}),i}function pick(e,r,n){return r.reduce((i,a)=>((!n||e[a]!==void 0)&&(i[a]=e[a]),i),{})}const isSameValue=(e,r)=>JSON.stringify(e)===JSON.stringify(r),flat=e=>e.reduce((r,n)=>r.concat(n),[]),unknownProp=null,numericProp=[Number,String],truthProp={type:Boolean,default:!0},makeRequiredProp=e=>({type:e,required:!0}),makeArrayProp=()=>({type:Array,default:()=>[]}),makeNumericProp=e=>({type:numericProp,default:e}),makeStringProp=e=>({type:String,default:e});var inBrowser=typeof window<"u";function raf(e){return inBrowser?requestAnimationFrame(e):-1}function cancelRaf(e){inBrowser&&cancelAnimationFrame(e)}function doubleRaf(e){raf(()=>raf(e))}var isWindow=e=>e===window,makeDOMRect=(e,r)=>({top:0,left:0,right:e,bottom:r,width:e,height:r}),useRect=e=>{const r=vue.unref(e);if(isWindow(r)){const n=r.innerWidth,i=r.innerHeight;return makeDOMRect(n,i)}return r!=null&&r.getBoundingClientRect?r.getBoundingClientRect():makeDOMRect(0,0)};function useParent(e){const r=vue.inject(e,null);if(r){const n=vue.getCurrentInstance(),{link:i,unlink:a,internalChildren:o}=r;i(n),vue.onUnmounted(()=>a(n));const s=vue.computed(()=>o.indexOf(n));return{parent:r,index:s}}return{parent:null,index:vue.ref(-1)}}function flattenVNodes(e){const r=[],n=i=>{Array.isArray(i)&&i.forEach(a=>{var o;vue.isVNode(a)&&(r.push(a),(o=a.component)!=null&&o.subTree&&(r.push(a.component.subTree),n(a.component.subTree.children)),a.children&&n(a.children))})};return n(e),r}var findVNodeIndex=(e,r)=>{const n=e.indexOf(r);return n===-1?e.findIndex(i=>r.key!==void 0&&r.key!==null&&i.type===r.type&&i.key===r.key):n};function sortChildren(e,r,n){const i=flattenVNodes(e.subTree.children);n.sort((o,s)=>findVNodeIndex(i,o.vnode)-findVNodeIndex(i,s.vnode));const a=n.map(o=>o.proxy);r.sort((o,s)=>{const l=a.indexOf(o),c=a.indexOf(s);return l-c})}function useChildren(e){const r=vue.reactive([]),n=vue.reactive([]),i=vue.getCurrentInstance();return{children:r,linkChildren:o=>{const s=c=>{c.proxy&&(n.push(c),r.push(c.proxy),sortChildren(i,r,n))},l=c=>{const u=n.indexOf(c);r.splice(u,1),n.splice(u,1)};vue.provide(e,Object.assign({link:s,unlink:l,children:r,internalChildren:n},o))}}}function onMountedOrActivated(e){let r;vue.onMounted(()=>{e(),vue.nextTick(()=>{r=!0})}),vue.onActivated(()=>{r&&e()})}function useEventListener(e,r,n={}){if(!inBrowser)return;const{target:i=window,passive:a=!1,capture:o=!1}=n;let s=!1,l;const c=b=>{if(s)return;const f=vue.unref(b);f&&!l&&(f.addEventListener(e,r,{capture:o,passive:a}),l=!0)},u=b=>{if(s)return;const f=vue.unref(b);f&&l&&(f.removeEventListener(e,r,o),l=!1)};vue.onUnmounted(()=>u(i)),vue.onDeactivated(()=>u(i)),onMountedOrActivated(()=>c(i));let h;return vue.isRef(i)&&(h=vue.watch(i,(b,f)=>{u(f),c(b)})),()=>{h==null||h(),u(i),s=!0}}var width,height;function useWindowSize(){if(!width&&(width=vue.ref(0),height=vue.ref(0),inBrowser)){const e=()=>{width.value=window.innerWidth,height.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width,height}}var overflowScrollReg=/scroll|auto|overlay/i,defaultRoot=inBrowser?window:void 0;function isElement(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function getScrollParent(e,r=defaultRoot){let n=e;for(;n&&n!==r&&isElement(n);){const{overflowY:i}=window.getComputedStyle(n);if(overflowScrollReg.test(i))return n;n=n.parentNode}return r}function useScrollParent(e,r=defaultRoot){const n=vue.ref();return vue.onMounted(()=>{e.value&&(n.value=getScrollParent(e.value,r))}),n}var visibility;function usePageVisibility(){if(!visibility&&(visibility=vue.ref("visible"),inBrowser)){const e=()=>{visibility.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return visibility}function getScrollTop(e){const r="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(r,0)}function setScrollTop(e,r){"scrollTop"in e?e.scrollTop=r:e.scrollTo(e.scrollX,r)}function getRootScrollTop(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function setRootScrollTop(e){setScrollTop(window,e),setScrollTop(document.body,e)}function getElementTop(e,r){if(e===window)return 0;const n=r?getScrollTop(r):getRootScrollTop();return useRect(e).top+n}isIOS();const stopPropagation=e=>e.stopPropagation();function preventDefault(e,r){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),r&&stopPropagation(e)}function isHidden(e){const r=vue.unref(e);if(!r)return!1;const n=window.getComputedStyle(r),i=n.display==="none",a=r.offsetParent===null&&n.position!=="fixed";return i||a}const{width:windowWidth,height:windowHeight}=useWindowSize();function addUnit(e){if(isDef(e))return isNumeric(e)?`${e}px`:String(e)}function getSizeStyle(e){if(isDef(e)){if(Array.isArray(e))return{width:addUnit(e[0]),height:addUnit(e[1])};const r=addUnit(e);return{width:r,height:r}}}function getZIndexStyle(e){const r={};return e!==void 0&&(r.zIndex=+e),r}let rootFontSize;function getRootFontSize(){if(!rootFontSize){const e=document.documentElement,r=e.style.fontSize||window.getComputedStyle(e).fontSize;rootFontSize=parseFloat(r)}return rootFontSize}function convertRem(e){return e=e.replace(/rem/g,""),+e*getRootFontSize()}function convertVw(e){return e=e.replace(/vw/g,""),+e*windowWidth.value/100}function convertVh(e){return e=e.replace(/vh/g,""),+e*windowHeight.value/100}function unitToPx(e){if(typeof e=="number")return e;if(inBrowser$1){if(e.includes("rem"))return convertRem(e);if(e.includes("vw"))return convertVw(e);if(e.includes("vh"))return convertVh(e)}return parseFloat(e)}const camelizeRE=/-(\w)/g,camelize=e=>e.replace(camelizeRE,(r,n)=>n.toUpperCase()),kebabCase=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");function padZero(e,r=2){let n=e+"";for(;n.length<r;)n="0"+n;return n}const clamp=(e,r,n)=>Math.min(Math.max(e,r),n),{hasOwnProperty}=Object.prototype;function assignKey(e,r,n){const i=r[n];isDef(i)&&(!hasOwnProperty.call(e,n)||!isObject$1(i)?e[n]=i:e[n]=deepAssign(Object(e[n]),i))}function deepAssign(e,r){return Object.keys(r).forEach(n=>{assignKey(e,r,n)}),e}var stdin_default$h={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,r)=>`${e}年${r}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},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(e,r){lang.value=e,this.add({[e]:r})},add(e={}){deepAssign(messages,e)}};var stdin_default$g=Locale;function createTranslate(e){const r=camelize(e)+".";return(n,...i)=>{const a=stdin_default$g.messages(),o=get(a,r+n)||get(a,n);return isFunction(o)?o(...i):o}}function genBem(e,r){return r?typeof r=="string"?` ${e}--${r}`:Array.isArray(r)?r.reduce((n,i)=>n+genBem(e,i),""):Object.keys(r).reduce((n,i)=>n+(r[i]?genBem(e,i):""),""):""}function createBEM(e){return(r,n)=>(r&&typeof r!="string"&&(n=r,r=""),r=r?`${e}__${r}`:e,`${r}${genBem(r,n)}`)}function createNamespace(e){const r=`van-${e}`;return[r,createBEM(r),createTranslate(r)]}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(e,{args:r=[],done:n,canceled:i,error:a}){if(e){const o=e.apply(null,r);isPromise(o)?o.then(s=>{s?n():i&&i()}).catch(a||noop):o?n():i&&i()}else n()}function withInstall(e){return e.install=r=>{const{name:n}=e;n&&(r.component(n,e),r.component(camelize(`-${n}`),e))},e}const POPUP_TOGGLE_KEY=Symbol();function onPopupReopen(e){const r=vue.inject(POPUP_TOGGLE_KEY,null);r&&vue.watch(r,n=>{n&&e()})}function useExpose(e){const r=vue.getCurrentInstance();r&&extend(r.proxy,e)}const routeProps={to:[String,Object],url:String,replace:Boolean};function route({to:e,url:r,replace:n,$router:i}){e&&i?i[n?"replace":"push"](e):r&&(n?location.replace(r):location.href=r)}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(e,{slots:r}){const n=()=>{if(r.content)return!0;const{content:l,showZero:c}=e;return isDef(l)&&l!==""&&(c||l!==0&&l!=="0")},i=()=>{const{dot:l,max:c,content:u}=e;if(!l&&n())return r.content?r.content():isDef(c)&&isNumeric(u)&&+u>+c?`${c}+`:u},a=l=>l.startsWith("-")?l.replace("-",""):`-${l}`,o=vue.computed(()=>{const l={background:e.color};if(e.offset){const[c,u]=e.offset,{position:h}=e,[b,f]=h.split("-");r.default?(typeof u=="number"?l[b]=addUnit(b==="top"?u:-u):l[b]=b==="top"?addUnit(u):a(u),typeof c=="number"?l[f]=addUnit(f==="left"?c:-c):l[f]=f==="left"?addUnit(c):a(c)):(l.marginTop=addUnit(u),l.marginLeft=addUnit(c))}return l}),s=()=>{if(n()||e.dot)return vue.createVNode("div",{class:bem$f([e.position,{dot:e.dot,fixed:!!r.default}]),style:o.value},[i()])};return()=>{if(r.default){const{tag:l}=e;return vue.createVNode(l,{class:bem$f("wrapper")},{default:()=>[r.default(),s()]})}return s()}}});const Badge=withInstall(stdin_default$f);let globalZIndex=2e3;const useGlobalZIndex=()=>++globalZIndex,setGlobalZIndex=e=>{globalZIndex=e},[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(e){return e.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function mapThemeVarsToCSSVars(e){const r={};return Object.keys(e).forEach(n=>{const i=insertDash(kebabCase(n));r[`--van-${i}`]=e[n]}),r}function syncThemeVarsOnRoot(e={},r={}){Object.keys(e).forEach(n=>{e[n]!==r[n]&&document.documentElement.style.setProperty(n,e[n])}),Object.keys(r).forEach(n=>{e[n]||document.documentElement.style.removeProperty(n)})}vue.defineComponent({name:name$g,props:configProviderProps,setup(e,{slots:r}){const n=vue.computed(()=>mapThemeVarsToCSSVars(extend({},e.themeVars,e.theme==="dark"?e.themeVarsDark:e.themeVarsLight)));if(inBrowser$1){const i=()=>{document.documentElement.classList.add(`van-theme-${e.theme}`)},a=(o=e.theme)=>{document.documentElement.classList.remove(`van-theme-${o}`)};vue.watch(()=>e.theme,(o,s)=>{s&&a(s),i()},{immediate:!0}),vue.onActivated(i),vue.onDeactivated(a),vue.onBeforeUnmount(a),vue.watch(n,(o,s)=>{e.themeVarsScope==="global"&&syncThemeVarsOnRoot(o,s)}),vue.watch(()=>e.themeVarsScope,(o,s)=>{s==="global"&&syncThemeVarsOnRoot({},n.value),o==="global"&&syncThemeVarsOnRoot(n.value,{})}),e.themeVarsScope==="global"&&syncThemeVarsOnRoot(n.value,{})}return vue.provide(CONFIG_PROVIDER_KEY,e),vue.watchEffect(()=>{e.zIndex!==void 0&&setGlobalZIndex(e.zIndex)}),()=>vue.createVNode(e.tag,{class:bem$e(),style:e.themeVarsScope==="local"?n.value:void 0},{default:()=>{var i;return[(i=r.default)==null?void 0:i.call(r)]}})}});const[name$f,bem$d]=createNamespace("icon"),isImage=e=>e==null?void 0:e.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(e,{slots:r}){const n=vue.inject(CONFIG_PROVIDER_KEY,null),i=vue.computed(()=>e.classPrefix||(n==null?void 0:n.iconPrefix)||bem$d());return()=>{const{tag:a,dot:o,name:s,size:l,badge:c,color:u}=e,h=isImage(s);return vue.createVNode(Badge,vue.mergeProps({dot:o,tag:a,class:[i.value,h?"":`${i.value}-${s}`],style:{color:u,fontSize:addUnit(l)},content:c},e.badgeProps),{default:()=>{var b;return[(b=r.default)==null?void 0:b.call(r),h&&vue.createVNode("img",{class:bem$d("image"),src:s},null)]}})}}});const Icon=withInstall(stdin_default$e),[name$e,bem$c]=createNamespace("loading"),SpinIcon=Array(12).fill(null).map((e,r)=>vue.createVNode("i",{class:bem$c("line",String(r+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(e,{slots:r}){const n=vue.computed(()=>extend({color:e.color},getSizeStyle(e.size))),i=()=>{const o=e.type==="spinner"?SpinIcon:CircularIcon;return vue.createVNode("span",{class:bem$c("spinner",e.type),style:n.value},[r.icon?r.icon():o])},a=()=>{var o;if(r.default)return vue.createVNode("span",{class:bem$c("text"),style:{fontSize:addUnit(e.textSize),color:(o=e.textColor)!=null?o:e.color}},[r.default()])};return()=>{const{type:o,vertical:s}=e;return vue.createVNode("div",{class:bem$c([o,{vertical:s}]),"aria-live":"polite","aria-busy":!0},[i(),a()])}}});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(e,r){return e>r?"horizontal":r>e?"vertical":""}function useTouch(){const e=vue.ref(0),r=vue.ref(0),n=vue.ref(0),i=vue.ref(0),a=vue.ref(0),o=vue.ref(0),s=vue.ref(""),l=vue.ref(!0),c=()=>s.value==="vertical",u=()=>s.value==="horizontal",h=()=>{n.value=0,i.value=0,a.value=0,o.value=0,s.value="",l.value=!0};return{move:y=>{const d=y.touches[0];n.value=(d.clientX<0?0:d.clientX)-e.value,i.value=d.clientY-r.value,a.value=Math.abs(n.value),o.value=Math.abs(i.value);const g=10;(!s.value||a.value<g&&o.value<g)&&(s.value=getDirection(a.value,o.value)),l.value&&(a.value>TAP_OFFSET||o.value>TAP_OFFSET)&&(l.value=!1)},start:y=>{h(),e.value=y.touches[0].clientX,r.value=y.touches[0].clientY},reset:h,startX:e,startY:r,deltaX:n,deltaY:i,offsetX:a,offsetY:o,direction:s,isVertical:c,isHorizontal:u,isTap:l}}let totalLockCount=0;const BODY_LOCK_CLASS="van-overflow-hidden";function useLockScroll(e,r){const n=useTouch(),i="01",a="10",o=h=>{n.move(h);const b=n.deltaY.value>0?a:i,f=getScrollParent(h.target,e.value),{scrollHeight:y,offsetHeight:d,scrollTop:g}=f;let w="11";g===0?w=d>=y?"00":"01":g+d>=y&&(w="10"),w!=="11"&&n.isVertical()&&!(parseInt(w,2)&parseInt(b,2))&&preventDefault(h,!0)},s=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",o,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},l=()=>{totalLockCount&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",o),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},c=()=>r()&&s(),u=()=>r()&&l();onMountedOrActivated(c),vue.onDeactivated(u),vue.onBeforeUnmount(u),vue.watch(r,h=>{h?s():l()})}function useLazyRender(e){const r=vue.ref(!1);return vue.watch(e,n=>{n&&(r.value=n)},{immediate:!0}),n=>()=>r.value?n():null}const useScopeId=()=>{var e;const{scopeId:r}=((e=vue.getCurrentInstance())==null?void 0:e.vnode)||{};return r?{[r]:""}: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(e,{slots:r}){const n=vue.ref(),i=useLazyRender(()=>e.show||!e.lazyRender),a=s=>{e.lockScroll&&preventDefault(s,!0)},o=i(()=>{var s;const l=extend(getZIndexStyle(e.zIndex),e.customStyle);return isDef(e.duration)&&(l.animationDuration=`${e.duration}s`),vue.withDirectives(vue.createVNode("div",{ref:n,style:l,class:[bem$b(),e.className]},[(s=r.default)==null?void 0:s.call(r)]),[[vue.vShow,e.show]])});return useEventListener("touchmove",a,{target:n}),()=>{const s=vue.createVNode(vue.Transition,{name:"van-fade",appear:!0},{default:o});return e.teleport?vue.createVNode(vue.Teleport,{to:e.teleport},{default:()=>[s]}):s}}});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(e,{emit:r,attrs:n,slots:i}){let a,o;const s=vue.ref(),l=vue.ref(),c=useLazyRender(()=>e.show||!e.lazyRender),u=vue.computed(()=>{const k={zIndex:s.value};if(isDef(e.duration)){const _=e.position==="center"?"animationDuration":"transitionDuration";k[_]=`${e.duration}s`}return k}),h=()=>{a||(a=!0,s.value=e.zIndex!==void 0?+e.zIndex:useGlobalZIndex(),r("open"))},b=()=>{a&&callInterceptor(e.beforeClose,{done(){a=!1,r("close"),r("update:show",!1)}})},f=k=>{r("clickOverlay",k),e.closeOnClickOverlay&&b()},y=()=>{if(e.overlay)return vue.createVNode(Overlay,vue.mergeProps({show:e.show,class:e.overlayClass,zIndex:s.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0},useScopeId(),{onClick:f}),{default:i["overlay-content"]})},d=k=>{r("clickCloseIcon",k),b()},g=()=>{if(e.closeable)return vue.createVNode(Icon,{role:"button",tabindex:0,name:e.closeIcon,class:[bem$a("close-icon",e.closeIconPosition),HAPTICS_FEEDBACK],classPrefix:e.iconPrefix,onClick:d},null)};let w;const p=()=>{w&&clearTimeout(w),w=setTimeout(()=>{r("opened")})},v=()=>r("closed"),m=k=>r("keydown",k),x=c(()=>{var k;const{round:_,position:T,safeAreaInsetTop:B,safeAreaInsetBottom:M}=e;return vue.withDirectives(vue.createVNode("div",vue.mergeProps({ref:l,style:u.value,role:"dialog",tabindex:0,class:[bem$a({round:_,[T]:T}),{"van-safe-area-top":B,"van-safe-area-bottom":M}],onKeydown:m},n,useScopeId()),[(k=i.default)==null?void 0:k.call(i),g()]),[[vue.vShow,e.show]])}),E=()=>{const{position:k,transition:_,transitionAppear:T}=e,B=k==="center"?"van-fade":`van-popup-slide-${k}`;return vue.createVNode(vue.Transition,{name:_||B,appear:T,onAfterEnter:p,onAfterLeave:v},{default:x})};return vue.watch(()=>e.show,k=>{k&&!a&&(h(),n.tabindex===0&&vue.nextTick(()=>{var _;(_=l.value)==null||_.focus()})),!k&&a&&(a=!1,r("close"))}),useExpose({popupRef:l}),useLockScroll(l,()=>e.show&&e.lockScroll),useEventListener("popstate",()=>{e.closeOnPopstate&&(b(),o=!1)}),vue.onMounted(()=>{e.show&&h()}),vue.onActivated(()=>{o&&(r("update:show",!0),o=!1)}),vue.onDeactivated(()=>{e.show&&e.teleport&&(b(),o=!0)}),vue.provide(POPUP_TOGGLE_KEY,()=>e.show),()=>e.teleport?vue.createVNode(vue.Teleport,{to:e.teleport},{default:()=>[y(),E()]}):vue.createVNode(vue.Fragment,null,[y(),E()])}});const Popup=withInstall(stdin_default$b),[name$b,bem$9,t]=createNamespace("picker"),getFirstEnabledOption=e=>e.find(r=>!r.disabled)||e[0];function getColumnsType(e,r){const n=e[0];if(n){if(Array.isArray(n))return"multiple";if(r.children in n)return"cascade"}return"default"}function findIndexOfEnabledOption(e,r){r=clamp(r,0,e.length);for(let n=r;n<e.length;n++)if(!e[n].disabled)return n;for(let n=r-1;n>=0;n--)if(!e[n].disabled)return n;return 0}const isOptionExist=(e,r,n)=>r!==void 0&&!!e.find(i=>i[n.value]===r);function findOptionByValue(e,r,n){const i=e.findIndex(o=>o[n.value]===r),a=findIndexOfEnabledOption(e,i);return e[a]}function formatCascadeColumns(e,r,n){const i=[];let a={[r.children]:e},o=0;for(;a&&a[r.children];){const s=a[r.children],l=n.value[o];if(a=isDef(l)?findOptionByValue(s,l,r):void 0,!a&&s.length){const c=getFirstEnabledOption(s)[r.value];a=findOptionByValue(s,c,r)}o++,i.push(s)}return i}function getElementTranslateY(e){const{transform:r}=window.getComputedStyle(e),n=r.slice(7,r.length-1).split(", ")[5];return Number(n)}function assignDefaultFields(e){return extend({text:"text",value:"value",children:"children"},e)}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(e,{emit:r,slots:n}){let i,a,o,s,l;const c=vue.ref(),u=vue.ref(),h=vue.ref(0),b=vue.ref(0),f=useTouch(),y=()=>e.options.length,d=()=>e.optionHeight*(+e.visibleOptionNum-1)/2,g=M=>{let F=findIndexOfEnabledOption(e.options,M);const O=-F*e.optionHeight,D=()=>{F>y()-1&&(F=findIndexOfEnabledOption(e.options,M));const N=e.options[F][e.fields.value];N!==e.value&&r("change",N)};i&&O!==h.value?l=D:D(),h.value=O},w=()=>e.readonly||!e.options.length,p=M=>{i||w()||(l=null,b.value=DEFAULT_DURATION,g(M),r("clickOption",e.options[M]))},v=M=>clamp(Math.round(-M/e.optionHeight),0,y()-1),m=vue.computed(()=>v(h.value)),x=(M,F)=>{const O=Math.abs(M/F);M=h.value+O/.003*(M<0?-1:1);const D=v(M);b.value=+e.swipeDuration,g(D)},E=()=>{i=!1,b.value=0,l&&(l(),l=null)},k=M=>{if(!w()){if(f.start(M),i){const F=getElementTranslateY(u.value);h.value=Math.min(0,F-d())}b.value=0,a=h.value,o=Date.now(),s=a,l=null}},_=M=>{if(w())return;f.move(M),f.isVertical()&&(i=!0,preventDefault(M,!0));const F=clamp(a+f.deltaY.value,-(y()*e.optionHeight),e.optionHeight),O=v(F);O!==m.value&&r("scrollInto",e.options[O]),h.value=F;const D=Date.now();D-o>MOMENTUM_TIME&&(o=D,s=F)},T=()=>{if(w())return;const M=h.value-s,F=Date.now()-o;if(F<MOMENTUM_TIME&&Math.abs(M)>MOMENTUM_DISTANCE){x(M,F);return}const D=v(h.value);b.value=DEFAULT_DURATION,g(D),setTimeout(()=>{i=!1},0)},B=()=>{const M={height:`${e.optionHeight}px`};return e.options.map((F,O)=>{const D=F[e.fields.text],{disabled:N}=F,L=F[e.fields.value],P={role:"button",style:M,tabindex:N?-1:0,class:[bem$8("item",{disabled:N,selected:L===e.value}),F.className],onClick:()=>p(O)},I={class:"van-ellipsis",[e.allowHtml?"innerHTML":"textContent"]:D};return vue.createVNode("li",P,[n.option?n.option(F,O):vue.createVNode("div",I,null)])})};return useParent(PICKER_KEY),useExpose({stopMomentum:E}),vue.watchEffect(()=>{const M=i?Math.floor(-h.value/e.optionHeight):e.options.findIndex(D=>D[e.fields.value]===e.value),F=findIndexOfEnabledOption(e.options,M),O=-F*e.optionHeight;i&&F<M&&E(),h.value=O}),useEventListener("touchmove",_,{target:c}),()=>vue.createVNode("div",{ref:c,class:bem$8(),onTouchstartPassive:k,onTouchend:T,onTouchcancel:T},[vue.createVNode("ul",{ref:u,style:{transform:`translate3d(0, ${h.value+d()}px, 0)`,transitionDuration:`${b.value}ms`,transitionProperty:b.value?"all":"none"},class:bem$8("wrapper"),onTransitionend:E},[B()])])}});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(e,{emit:r,slots:n}){const i=()=>{if(n.title)return n.title();if(e.title)return vue.createVNode("div",{class:[bem$9("title"),"van-ellipsis"]},[e.title])},a=()=>r("cancel"),o=()=>r("confirm"),s=()=>{var c;const u=(c=e.cancelButtonText)!=null?c:t("cancel");if(!(!n.cancel&&!u))return vue.createVNode("button",{type:"button",class:[bem$9("cancel"),HAPTICS_FEEDBACK],onClick:a},[n.cancel?n.cancel():u])},l=()=>{var c;const u=(c=e.confirmButtonText)!=null?c:t("confirm");if(!(!n.confirm&&!u))return vue.createVNode("button",{type:"button",class:[bem$9("confirm"),HAPTICS_FEEDBACK],onClick:o},[n.confirm?n.confirm():u])};return()=>vue.createVNode("div",{class:bem$9("toolbar")},[n.toolbar?n.toolbar():[s(),i(),l()]])}});const useSyncPropRef=(e,r)=>{const n=vue.ref(e());return vue.watch(e,i=>{i!==n.value&&(n.value=i)}),vue.watch(n,i=>{i!==e()&&r(i)}),n};/**
129
129
  * @vue/shared v3.5.4
130
130
  * (c) 2018-present Yuxi (Evan) You and Vue contributors