@ecan-bi/datav 1.4.10 → 1.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +24 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/types/laboratory/value-line/ValueLine.vue.d.ts +8 -0
- package/types/laboratory/value-line/index.d.ts +8 -0
- package/types/laboratory/value-line/props.d.ts +6 -0
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.4.
|
|
1
|
+
/*! @ecan-bi/datav@1.4.11 */
|
|
2
2
|
(function(Ee,Ze){typeof exports=="object"&&typeof module<"u"?Ze(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"],Ze):(Ee=typeof globalThis<"u"?globalThis:Ee||self,Ze(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,Ze,Qe,et;"use strict";function _interopNamespaceDefault(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}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,n){function r(a){return(...o)=>{if(e.value||n(),!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]=r(o)}),a}return i()}function useAutoresize(e,n,r){let i=null;vue.watch([r,e,n],([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,n,r){const i=vue.inject(LOADING_OPTIONS_KEY,{}),a=vue.computed(()=>({...vue.unref(i),...r==null?void 0:r.value}));vue.watchEffect(()=>{const o=e.value;o&&(n.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 n={};for(const r in e)isOn(r)||(n[r]=e[r]);return n}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:n,listeners:r}){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:f,loading:x,loadingOptions:h}=vue.toRefs(e),g=vue.computed(()=>o.value||e.option||Object.create(null)),v=vue.computed(()=>e.theme||vue.unref(s)||{}),m=vue.computed(()=>e.initOptions||vue.unref(l)||{}),C=vue.computed(()=>e.updateOptions||vue.unref(c)||{}),b=vue.computed(()=>omitOn(n));function d(A){if(a.value||!i.value)return;const T=a.value=core$1.init(i.value,v.value,m.value);e.group&&(T.group=e.group);let D=r;D||(D={},Object.keys(n).filter(O=>O.indexOf("on")===0&&O.length>2).forEach(O=>{const L=O.charAt(2).toLowerCase()+O.slice(3);D[L]=n[O]})),Object.keys(D).forEach(O=>{const L=D[O];L&&(O.indexOf("zr:")===0?T.getZr().on(O.slice(3).toLowerCase(),L):T.on(O.toLowerCase(),L))});function I(){if(T&&!T.isDisposed())try{T.resize()}catch(O){if(O.message==="Cannot read property 'get' of undefined")return;throw O}}function B(){T.setOption(A||g.value,C.value)}u.value?vue.nextTick(()=>{I(),B()}):B()}function p(A,T){e.manualUpdate&&(o.value=A),a.value?a.value.setOption(A,T||{}):d(A)}function y(){a.value&&(a.value.dispose(),a.value=void 0)}let E=null;vue.watch(f,A=>{typeof E=="function"&&(E(),E=null),A||(E=vue.watch(()=>e.option,T=>{T&&(a.value?a.value.setOption(T,C.value):d())},{deep:!0}))},{immediate:!0}),vue.watch([v,m],()=>{y(),d()},{deep:!0}),vue.watchEffect(()=>{e.group&&a.value&&(a.value.group=e.group)});const k=usePublicAPI(a,d);return useLoading(a,x,h),useAutoresize(a,u,i),vue.onMounted(()=>{e.option&&d()}),vue.onUnmounted(y),{chart:a,root:i,setOption:p,nonEventAttrs:b,...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,n){isOnePointZero(e)&&(e="100%");var r=isPercentage(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),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,n,r){return{r:bound01(e,255)*255,g:bound01(n,255)*255,b:bound01(r,255)*255}}function hue2rgb(e,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(n-e)*(6*r):r<1/2?n:r<2/3?e+(n-e)*(2/3-r)*6:e}function hslToRgb(e,n,r){var i,a,o;if(e=bound01(e,360),n=bound01(n,100),r=bound01(r,100),n===0)a=r,o=r,i=r;else{var s=r<.5?r*(1+n):r+n-r*n,l=2*r-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,n,r){e=bound01(e,255),n=bound01(n,255),r=bound01(r,255);var i=Math.max(e,n,r),a=Math.min(e,n,r),o=0,s=i,l=i-a,c=i===0?0:l/i;if(i===a)o=0;else{switch(i){case e:o=(n-r)/l+(n<r?6:0);break;case n:o=(r-e)/l+2;break;case r:o=(e-n)/l+4;break}o/=6}return{h:o,s:c,v:s}}function hsvToRgb(e,n,r){e=bound01(e,360)*6,n=bound01(n,100),r=bound01(r,100);var i=Math.floor(e),a=e-i,o=r*(1-n),s=r*(1-a*n),l=r*(1-(1-a)*n),c=i%6,u=[r,s,o,o,l,r][c],f=[l,r,r,s,o,o][c],x=[o,o,l,r,r,s][c];return{r:u*255,g:f*255,b:x*255}}function rgbToHex(e,n,r,i){var a=[pad2(Math.round(e).toString(16)),pad2(Math.round(n).toString(16)),pad2(Math.round(r).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 n={r:0,g:0,b:0},r=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)?(n=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),n=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),n=hslToRgb(e.h,i,o),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=boundAlpha(r),{ok:s,format:e.format||l,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:r}}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 n=!1;if(names[e])e=names[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=matchers.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=matchers.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=matchers.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=matchers.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=matchers.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=matchers.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=matchers.hex8.exec(e),r?{r:parseIntFromHex(r[1]),g:parseIntFromHex(r[2]),b:parseIntFromHex(r[3]),a:convertHexToDecimal(r[4]),format:n?"name":"hex8"}:(r=matchers.hex6.exec(e),r?{r:parseIntFromHex(r[1]),g:parseIntFromHex(r[2]),b:parseIntFromHex(r[3]),format:n?"name":"hex"}:(r=matchers.hex4.exec(e),r?{r:parseIntFromHex(r[1]+r[1]),g:parseIntFromHex(r[2]+r[2]),b:parseIntFromHex(r[3]+r[3]),a:convertHexToDecimal(r[4]+r[4]),format:n?"name":"hex8"}:(r=matchers.hex3.exec(e),r?{r:parseIntFromHex(r[1]+r[1]),g:parseIntFromHex(r[2]+r[2]),b:parseIntFromHex(r[3]+r[3]),format:n?"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 n=e.r,r=e.g,i=e.b,a=rgbToHsv(n,r,i);return{h:a.h*360,s:a.s,v:a.v}}function toHex(e){var n=e.r,r=e.g,i=e.b;return"#".concat(rgbToHex(n,r,i,!1))}function mix(e,n,r){var i=r/100,a={r:(n.r-e.r)*i+e.r,g:(n.g-e.g)*i+e.g,b:(n.b-e.b)*i+e.b};return a}function getHue(e,n,r){var i;return Math.round(e.h)>=60&&Math.round(e.h)<=240?i=r?Math.round(e.h)-hueStep*n:Math.round(e.h)+hueStep*n:i=r?Math.round(e.h)+hueStep*n:Math.round(e.h)-hueStep*n,i<0?i+=360:i>=360&&(i-=360),i}function getSaturation(e,n,r){if(e.h===0&&e.s===0)return e.s;var i;return r?i=e.s-saturationStep*n:n===darkColorCount?i=e.s+saturationStep:i=e.s+saturationStep2*n,i>1&&(i=1),r&&n===lightColorCount&&i>.1&&(i=.1),i<.06&&(i=.06),Number(i.toFixed(2))}function getValue(e,n,r){var i;return r?i=e.v+brightnessStep1*n:i=e.v-brightnessStep2*n,i>1&&(i=1),Number(i.toFixed(2))}function generate$1(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],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)}));r.push(s)}r.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)}));r.push(u)}return n.theme==="dark"?darkColorMap.map(function(f){var x=f.index,h=f.opacity,g=toHex(mix(inputToRGB(n.backgroundColor||"#141414"),inputToRGB(r[x]),h*100));return g}):r}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,n){if(n=n||{},e===void 0)throw new Error(usage);var r=n.prepend===!0?"prepend":"append",i=n.container!==void 0?n.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][r]!==void 0?o=styleElements[a][r]:(o=styleElements[a][r]=createStyleElement(),r==="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 n=1;n<arguments.length;n++){var r=arguments[n]!=null?Object(arguments[n]):{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),i.forEach(function(a){_defineProperty$8(e,a,r[a])})}return e}function _defineProperty$8(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function warn(e,n){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(n))}function warning(e,n){warn(e,"[@ant-design/icons-vue] ".concat(n))}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,n,r){return r?vue.h(e.tag,_objectSpread$8({key:n},r,e.attrs),(e.children||[]).map(function(i,a){return generate(i,"".concat(n,"-").concat(e.tag,"-").concat(a))})):vue.h(e.tag,_objectSpread$8({key:n},e.attrs),(e.children||[]).map(function(i,a){return generate(i,"".concat(n,"-").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;
|
|
@@ -125,7 +125,7 @@ version: 2.9.0
|
|
|
125
125
|
Contributions by leeoniya.
|
|
126
126
|
License: MIT, header required.
|
|
127
127
|
*/var Matrix=function(){var e=Math.cos,n=Math.sin,r=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(w){if(w===0)return this;var S=e(w),R=n(w);return this._t(S,-R,0,0,R,S,0,0,0,0,1,0,0,0,0,1)}function s(w){if(w===0)return this;var S=e(w),R=n(w);return this._t(1,0,0,0,0,S,-R,0,0,R,S,0,0,0,0,1)}function l(w){if(w===0)return this;var S=e(w),R=n(w);return this._t(S,0,R,0,0,1,0,0,-R,0,S,0,0,0,0,1)}function c(w){if(w===0)return this;var S=e(w),R=n(w);return this._t(S,-R,0,0,R,S,0,0,0,0,1,0,0,0,0,1)}function u(w,S){return this._t(1,S,w,1,0,0)}function f(w,S){return this.shear(r(w),r(S))}function x(w,S){var R=e(S),_=n(S);return this._t(R,_,0,0,-_,R,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(w),1,0,0,0,0,1,0,0,0,0,1)._t(R,-_,0,0,_,R,0,0,0,0,1,0,0,0,0,1)}function h(w,S,R){return!R&&R!==0&&(R=1),w===1&&S===1&&R===1?this:this._t(w,0,0,0,0,S,0,0,0,0,R,0,0,0,0,1)}function g(w,S,R,_,V,$,F,q,U,j,W,G,Y,J,Z,X){return this.props[0]=w,this.props[1]=S,this.props[2]=R,this.props[3]=_,this.props[4]=V,this.props[5]=$,this.props[6]=F,this.props[7]=q,this.props[8]=U,this.props[9]=j,this.props[10]=W,this.props[11]=G,this.props[12]=Y,this.props[13]=J,this.props[14]=Z,this.props[15]=X,this}function v(w,S,R){return R=R||0,w!==0||S!==0||R!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,w,S,R,1):this}function m(w,S,R,_,V,$,F,q,U,j,W,G,Y,J,Z,X){var K=this.props;if(w===1&&S===0&&R===0&&_===0&&V===0&&$===1&&F===0&&q===0&&U===0&&j===0&&W===1&&G===0)return K[12]=K[12]*w+K[15]*Y,K[13]=K[13]*$+K[15]*J,K[14]=K[14]*W+K[15]*Z,K[15]*=X,this._identityCalculated=!1,this;var ee=K[0],ne=K[1],re=K[2],ae=K[3],se=K[4],fe=K[5],he=K[6],ge=K[7],ye=K[8],Ce=K[9],Te=K[10],Se=K[11],ke=K[12],Ge=K[13],Ve=K[14],de=K[15];return K[0]=ee*w+ne*V+re*U+ae*Y,K[1]=ee*S+ne*$+re*j+ae*J,K[2]=ee*R+ne*F+re*W+ae*Z,K[3]=ee*_+ne*q+re*G+ae*X,K[4]=se*w+fe*V+he*U+ge*Y,K[5]=se*S+fe*$+he*j+ge*J,K[6]=se*R+fe*F+he*W+ge*Z,K[7]=se*_+fe*q+he*G+ge*X,K[8]=ye*w+Ce*V+Te*U+Se*Y,K[9]=ye*S+Ce*$+Te*j+Se*J,K[10]=ye*R+Ce*F+Te*W+Se*Z,K[11]=ye*_+Ce*q+Te*G+Se*X,K[12]=ke*w+Ge*V+Ve*U+de*Y,K[13]=ke*S+Ge*$+Ve*j+de*J,K[14]=ke*R+Ge*F+Ve*W+de*Z,K[15]=ke*_+Ge*q+Ve*G+de*X,this._identityCalculated=!1,this}function C(w){var S=w.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 b(){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 d(w){for(var S=0;S<16;){if(w.props[S]!==this.props[S])return!1;S+=1}return!0}function p(w){var S;for(S=0;S<16;S+=1)w.props[S]=this.props[S];return w}function y(w){var S;for(S=0;S<16;S+=1)this.props[S]=w[S]}function E(w,S,R){return{x:w*this.props[0]+S*this.props[4]+R*this.props[8]+this.props[12],y:w*this.props[1]+S*this.props[5]+R*this.props[9]+this.props[13],z:w*this.props[2]+S*this.props[6]+R*this.props[10]+this.props[14]}}function k(w,S,R){return w*this.props[0]+S*this.props[4]+R*this.props[8]+this.props[12]}function A(w,S,R){return w*this.props[1]+S*this.props[5]+R*this.props[9]+this.props[13]}function T(w,S,R){return w*this.props[2]+S*this.props[6]+R*this.props[10]+this.props[14]}function D(){var w=this.props[0]*this.props[5]-this.props[1]*this.props[4],S=this.props[5]/w,R=-this.props[1]/w,_=-this.props[4]/w,V=this.props[0]/w,$=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/w,F=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/w,q=new Matrix;return q.props[0]=S,q.props[1]=R,q.props[4]=_,q.props[5]=V,q.props[12]=$,q.props[13]=F,q}function I(w){var S=this.getInverseMatrix();return S.applyToPointArray(w[0],w[1],w[2]||0)}function B(w){var S,R=w.length,_=[];for(S=0;S<R;S+=1)_[S]=I(w[S]);return _}function O(w,S,R){var _=createTypedArray("float32",6);if(this.isIdentity())_[0]=w[0],_[1]=w[1],_[2]=S[0],_[3]=S[1],_[4]=R[0],_[5]=R[1];else{var V=this.props[0],$=this.props[1],F=this.props[4],q=this.props[5],U=this.props[12],j=this.props[13];_[0]=w[0]*V+w[1]*F+U,_[1]=w[0]*$+w[1]*q+j,_[2]=S[0]*V+S[1]*F+U,_[3]=S[0]*$+S[1]*q+j,_[4]=R[0]*V+R[1]*F+U,_[5]=R[0]*$+R[1]*q+j}return _}function L(w,S,R){var _;return this.isIdentity()?_=[w,S,R]:_=[w*this.props[0]+S*this.props[4]+R*this.props[8]+this.props[12],w*this.props[1]+S*this.props[5]+R*this.props[9]+this.props[13],w*this.props[2]+S*this.props[6]+R*this.props[10]+this.props[14]],_}function H(w,S){if(this.isIdentity())return w+","+S;var R=this.props;return Math.round((w*R[0]+S*R[4]+R[12])*100)/100+","+Math.round((w*R[1]+S*R[5]+R[13])*100)/100}function N(){for(var w=0,S=this.props,R="matrix3d(",_=1e4;w<16;)R+=i(S[w]*_)/_,R+=w===15?")":",",w+=1;return R}function P(w){var S=1e4;return w<1e-6&&w>0||w>-1e-6&&w<0?i(w*S)/S:w}function M(){var w=this.props,S=P(w[0]),R=P(w[1]),_=P(w[4]),V=P(w[5]),$=P(w[12]),F=P(w[13]);return"matrix("+S+","+R+","+_+","+V+","+$+","+F+")"}return function(){this.reset=a,this.rotate=o,this.rotateX=s,this.rotateY=l,this.rotateZ=c,this.skew=f,this.skewFromAxis=x,this.shear=u,this.scale=h,this.setTransform=g,this.translate=v,this.transform=m,this.multiply=C,this.applyToPoint=E,this.applyToX=k,this.applyToY=A,this.applyToZ=T,this.applyToPointArray=L,this.applyToTriplePoints=O,this.applyToPointStringified=H,this.toCSS=N,this.to2dCSS=M,this.clone=p,this.cloneFromProps=y,this.equals=d,this.inversePoints=B,this.inversePoint=I,this.getInverseMatrix=D,this._t=this.transform,this.isIdentity=b,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(r){return typeof r}:_typeof$3=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_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,n){e==="expressions"&&setExpressionsPlugin(n)}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 n=queryString.split("&"),r=0;r<n.length;r+=1){var i=n[r].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={},n={};e.registerModifier=r,e.getModifier=i;function r(a,o){n[a]||(n[a]=o)}function i(a,o,s){return new n[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 n={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(n),this.addShapeToModifier(n),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,n){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,n),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,n){this.s=PropertyFactory.getProp(e,n.s,0,.01,this),this.e=PropertyFactory.getProp(e,n.e,0,.01,this),this.o=PropertyFactory.getProp(e,n.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=n.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,n,r,i,a){var o=[];n<=1?o.push({s:e,e:n}):e>=1?o.push({s:e-1,e:n-1}):(o.push({s:e,e:1}),o.push({s:0,e:n-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+r)){var f,x;u.s*a<=i?f=0:f=(u.s*a-i)/r,u.e*a>=i+r?x=1:x=(u.e*a-i)/r,s.push([f,x])}return s.length||s.push([0,0]),s},TrimModifier.prototype.releasePathsData=function(e){var n,r=e.length;for(n=0;n<r;n+=1)segmentsLengthPool.release(e[n]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var n,r;if(this._mdf||e){var i=this.o.v%360/360;if(i<0&&(i+=1),this.s.v>1?n=1+i:this.s.v<0?n=0+i:n=this.s.v+i,this.e.v>1?r=1+i:this.e.v<0?r=0+i:r=this.e.v+i,n>r){var a=n;n=r,r=a}n=Math.round(n*1e4)*1e-4,r=Math.round(r*1e4)*1e-4,this.sValue=n,this.eValue=r}else n=this.sValue,r=this.eValue;var o,s,l=this.shapes.length,c,u,f,x,h,g=0;if(r===n)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(r===1&&n===0||r===0&&n===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 v=[],m,C;for(s=0;s<l;s+=1)if(m=this.shapes[s],!m.shape._mdf&&!this._mdf&&!e&&this.m!==2)m.shape.paths=m.localShapeCollection;else{if(o=m.shape.paths,u=o._length,h=0,!m.shape._mdf&&m.pathsData.length)h=m.totalShapeLength;else{for(f=this.releasePathsData(m.pathsData),c=0;c<u;c+=1)x=bez.getSegmentsLength(o.shapes[c]),f.push(x),h+=x.totalLength;m.totalShapeLength=h,m.pathsData=f}g+=h,m.shape._mdf=!0}var b=n,d=r,p=0,y;for(s=l-1;s>=0;s-=1)if(m=this.shapes[s],m.shape._mdf){for(C=m.localShapeCollection,C.releaseShapes(),this.m===2&&l>1?(y=this.calculateShapeEdges(n,r,m.totalShapeLength,p,g),p+=m.totalShapeLength):y=[[b,d]],u=y.length,c=0;c<u;c+=1){b=y[c][0],d=y[c][1],v.length=0,d<=1?v.push({s:m.totalShapeLength*b,e:m.totalShapeLength*d}):b>=1?v.push({s:m.totalShapeLength*(b-1),e:m.totalShapeLength*(d-1)}):(v.push({s:m.totalShapeLength*b,e:m.totalShapeLength}),v.push({s:0,e:m.totalShapeLength*(d-1)}));var E=this.addShapes(m,v[0]);if(v[0].s!==v[0].e){if(v.length>1){var k=m.shape.paths.shapes[m.shape.paths._length-1];if(k.c){var A=E.pop();this.addPaths(E,C),E=this.addShapes(m,v[1],A)}else this.addPaths(E,C),E=this.addShapes(m,v[1])}this.addPaths(E,C)}}m.shape.paths=C}}},TrimModifier.prototype.addPaths=function(e,n){var r,i=e.length;for(r=0;r<i;r+=1)n.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,n,r,i,a,o,s){a.setXYAt(n[0],n[1],"o",o),a.setXYAt(r[0],r[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,n,r,i){n.setXYAt(e[1],e[5],"o",r),n.setXYAt(e[2],e[6],"i",r+1),i&&n.setXYAt(e[0],e[4],"v",r),n.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,n,r){var i=e.pathsData,a=e.shape.paths.shapes,o,s=e.shape.paths._length,l,c,u=0,f,x,h,g,v=[],m,C=!0;for(r?(x=r._length,m=r._length):(r=shapePool.newElement(),x=0,m=0),v.push(r),o=0;o<s;o+=1){for(h=i[o].lengths,r.c=a[o].c,c=a[o].c?h.length:h.length+1,l=1;l<c;l+=1)if(f=h[l-1],u+f.addedLength<n.s)u+=f.addedLength,r.c=!1;else if(u>n.e){r.c=!1;break}else n.s<=u&&n.e>=u+f.addedLength?(this.addSegment(a[o].v[l-1],a[o].o[l-1],a[o].i[l],a[o].v[l],r,x,C),C=!1):(g=bez.getNewSegment(a[o].v[l-1],a[o].v[l],a[o].o[l-1],a[o].i[l],(n.s-u)/f.addedLength,(n.e-u)/f.addedLength,h[l-1]),this.addSegmentFromArray(g,r,x,C),C=!1,r.c=!1),u+=f.addedLength,x+=1;if(a[o].c&&h.length){if(f=h[l-1],u<=n.e){var b=h[l-1].addedLength;n.s<=u&&n.e>=u+b?(this.addSegment(a[o].v[l-1],a[o].o[l-1],a[o].i[0],a[o].v[0],r,x,C),C=!1):(g=bez.getNewSegment(a[o].v[l-1],a[o].v[0],a[o].o[l-1],a[o].i[0],(n.s-u)/b,(n.e-u)/b,h[l-1]),this.addSegmentFromArray(g,r,x,C),C=!1,r.c=!1)}else r.c=!1;u+=f.addedLength,x+=1}if(r._length&&(r.setXYAt(r.v[m][0],r.v[m][1],"i",m),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),u>n.e)break;o<s-1&&(r=shapePool.newElement(),C=!0,v.push(r),x=0)}return v};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,n){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,n.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,n){var r=n/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,f,x,h;for(o=0;o<a;o+=1)l=e.v[o][0]+(i[0]-e.v[o][0])*r,c=e.v[o][1]+(i[1]-e.v[o][1])*r,u=e.o[o][0]+(i[0]-e.o[o][0])*-r,f=e.o[o][1]+(i[1]-e.o[o][1])*-r,x=e.i[o][0]+(i[0]-e.i[o][0])*-r,h=e.i[o][1]+(i[1]-e.i[o][1])*-r,s.setTripleAt(l,c,u,f,x,h,o);return s},PuckerAndBloatModifier.prototype.processShapes=function(e){var n,r,i=this.shapes.length,a,o,s=this.amount.v;if(s!==0){var l,c;for(r=0;r<i;r+=1){if(l=this.shapes[r],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,n=l.shape.paths.shapes,o=l.shape.paths._length,a=0;a<o;a+=1)c.addShape(this.processPath(n[a],s));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function n(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 r(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 f,x;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?(f=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/u,0),x=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?(f=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/u,0),x=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/u,0)):(f=this.p.pv,x=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){f=[],x=[];var h=this.px,g=this.py;h._caching.lastFrame+h.offsetTime<=h.keyframes[0].t?(f[0]=h.getValueAtTime((h.keyframes[0].t+.01)/u,0),f[1]=g.getValueAtTime((g.keyframes[0].t+.01)/u,0),x[0]=h.getValueAtTime(h.keyframes[0].t/u,0),x[1]=g.getValueAtTime(g.keyframes[0].t/u,0)):h._caching.lastFrame+h.offsetTime>=h.keyframes[h.keyframes.length-1].t?(f[0]=h.getValueAtTime(h.keyframes[h.keyframes.length-1].t/u,0),f[1]=g.getValueAtTime(g.keyframes[g.keyframes.length-1].t/u,0),x[0]=h.getValueAtTime((h.keyframes[h.keyframes.length-1].t-.01)/u,0),x[1]=g.getValueAtTime((g.keyframes[g.keyframes.length-1].t-.01)/u,0)):(f=[h.pv,g.pv],x[0]=h.getValueAtTime((h._caching.lastFrame+h.offsetTime-.01)/u,h.offsetTime),x[1]=g.getValueAtTime((g._caching.lastFrame+g.offsetTime-.01)/u,g.offsetTime))}else x=e,f=x;this.v.rotate(-Math.atan2(f[1]-x[1],f[0]-x[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,f){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(f||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 x,h=u.or.k.length;for(x=0;x<h;x+=1)u.or.k[x].to=null,u.or.k[x].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:n,getValue:r,precalculateMatrix:i,autoOrient:a},extendPrototype([DynamicPropertyContainer],s),s.prototype.addDynamicProperty=o,s.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function l(c,u,f){return new s(c,u,f)}return{getTransformProperty:l}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,n){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,n.c,0,null,this),this.o=PropertyFactory.getProp(e,n.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,n.tr,this),this.so=PropertyFactory.getProp(e,n.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,n.tr.eo,0,.01,this),this.data=n,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,n,r,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]),n.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),n.rotate(-i.r.v*s*a),n.translate(i.a.v[0],i.a.v[1],i.a.v[2]),r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),r.scale(o?1/l:l,o?1/c:c),r.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(e,n,r,i){for(this.elem=e,this.arr=n,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,n[r]);r>0;)r-=1,this._elements.unshift(n[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var n,r=e.length;for(n=0;n<r;n+=1)e[n]._processed=!1,e[n].ty==="gr"&&this.resetElements(e[n].it)},RepeaterModifier.prototype.cloneElements=function(e){var n=JSON.parse(JSON.stringify(e));return this.resetElements(n),n},RepeaterModifier.prototype.changeGroupRender=function(e,n){var r,i=e.length;for(r=0;r<i;r+=1)e[r]._render=n,e[r].ty==="gr"&&this.changeGroupRender(e[r].it,n)},RepeaterModifier.prototype.processShapes=function(e){var n,r,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 f=this.elemsData[i].it,x=f[f.length-1];x.transform.op.v!==0?(x.transform.op._mdf=!0,x.transform.op.v=0):x.transform.op._mdf=!1}o+=1}this._currentCopies=l;var h=this.o.v,g=h%1,v=h>0?Math.floor(h):Math.ceil(h),m=this.pMatrix.props,C=this.rMatrix.props,b=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var d=0;if(h>0){for(;d<v;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),d+=1;g&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,g,!1),d+=g)}else if(h<0){for(;d>v;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),d-=1;g&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-g,!0),d-=g)}i=this.data.m===1?0:this._currentCopies-1,a=this.data.m===1?1:-1,o=this._currentCopies;for(var p,y;o;){if(n=this.elemsData[i].it,r=n[n.length-1].transform.mProps.v.props,y=r.length,n[n.length-1].transform.mProps._mdf=!0,n[n.length-1].transform.op._mdf=!0,n[n.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),d!==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(C[0],C[1],C[2],C[3],C[4],C[5],C[6],C[7],C[8],C[9],C[10],C[11],C[12],C[13],C[14],C[15]),this.matrix.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),p=0;p<y;p+=1)r[p]=this.matrix.props[p];this.matrix.reset()}else for(this.matrix.reset(),p=0;p<y;p+=1)r[p]=this.matrix.props[p];d+=1,o-=1,i+=a}}else for(o=this._currentCopies,i=0,a=1;o;)n=this.elemsData[i].it,r=n[n.length-1].transform.mProps.v.props,n[n.length-1].transform.mProps._mdf=!1,n[n.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,n){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,n.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,n){var r=shapePool.newElement();r.c=e.c;var i,a=e._length,o,s,l,c,u,f,x=0,h,g,v,m,C,b;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?(r.setTripleAt(o[0],o[1],l[0],l[1],s[0],s[1],x),x+=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)),f=u?Math.min(u/2,n)/u:0,C=o[0]+(c[0]-o[0])*f,h=C,b=o[1]-(o[1]-c[1])*f,g=b,v=h-(h-o[0])*roundCorner,m=g-(g-o[1])*roundCorner,r.setTripleAt(h,g,v,m,C,b,x),x+=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)),f=u?Math.min(u/2,n)/u:0,v=o[0]+(c[0]-o[0])*f,h=v,m=o[1]+(c[1]-o[1])*f,g=m,C=h-(h-o[0])*roundCorner,b=g-(g-o[1])*roundCorner,r.setTripleAt(h,g,v,m,C,b,x),x+=1):(r.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],x),x+=1);return r},RoundCornersModifier.prototype.processShapes=function(e){var n,r,i=this.shapes.length,a,o,s=this.rd.v;if(s!==0){var l,c;for(r=0;r<i;r+=1){if(l=this.shapes[r],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,n=l.shape.paths.shapes,o=l.shape.paths._length,a=0;a<o;a+=1)c.addShape(this.processPath(n[a],s));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,n){return Math.abs(e-n)*1e5<=Math.min(Math.abs(e),Math.abs(n))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,n,r){return e*(1-r)+n*r}function lerpPoint(e,n,r){return[lerp(e[0],n[0],r),lerp(e[1],n[1],r)]}function quadRoots(e,n,r){if(e===0)return[];var i=n*n-4*e*r;if(i<0)return[];var a=-n/(2*e);if(i===0)return[a];var o=Math.sqrt(i)/(2*e);return[a-o,a+o]}function polynomialCoefficients(e,n,r,i){return[-e+3*n-3*r+i,3*e-6*n+3*r,-3*e+3*n,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,n,r,i,a){a&&pointEqual(e,n)&&(n=lerpPoint(e,i,1/3)),a&&pointEqual(r,i)&&(r=lerpPoint(e,i,2/3));var o=polynomialCoefficients(e[0],n[0],r[0],i[0]),s=polynomialCoefficients(e[1],n[1],r[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,n,r,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 n=this.derivative(e);return Math.atan2(n[1],n[0])},PolynomialBezier.prototype.normalAngle=function(e){var n=this.derivative(e);return Math.atan2(n[0],n[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var n=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=n*n-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var i=Math.sqrt(r);return floatZero(i)?i>0&&i<1?[n]:[]:[n-i,n+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 n=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),i=lerpPoint(this.points[2],this.points[3],e),a=lerpPoint(n,r,e),o=lerpPoint(r,i,e),s=lerpPoint(a,o,e);return[new PolynomialBezier(this.points[0],n,a,s,!0),new PolynomialBezier(s,o,i,this.points[3],!0)]};function extrema(e,n){var r=e.points[0][n],i=e.points[e.points.length-1][n];if(r>i){var a=i;i=r,r=a}for(var o=quadRoots(3*e.a[n],2*e.b[n],e.c[n]),s=0;s<o.length;s+=1)if(o[s]>0&&o[s]<1){var l=e.point(o[s])[n];l<r?r=l:l>i&&(i=l)}return{min:r,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,n,r){var i=e.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:e,t:(n+r)/2,t1:n,t2:r}}function splitData(e){var n=e.bez.split(.5);return[intersectData(n[0],e.t1,e.t),intersectData(n[1],e.t,e.t2)]}function boxIntersect(e,n){return Math.abs(e.cx-n.cx)*2<e.width+n.width&&Math.abs(e.cy-n.cy)*2<e.height+n.height}function intersectsImpl(e,n,r,i,a,o){if(boxIntersect(e,n)){if(r>=o||e.width<=i&&e.height<=i&&n.width<=i&&n.height<=i){a.push([e.t,n.t]);return}var s=splitData(e),l=splitData(n);intersectsImpl(s[0],l[0],r+1,i,a,o),intersectsImpl(s[0],l[1],r+1,i,a,o),intersectsImpl(s[1],l[0],r+1,i,a,o),intersectsImpl(s[1],l[1],r+1,i,a,o)}}PolynomialBezier.prototype.intersections=function(e,n,r){n===void 0&&(n=2),r===void 0&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,n,i,r),i},PolynomialBezier.shapeSegment=function(e,n){var r=(n+1)%e.length();return new PolynomialBezier(e.v[n],e.o[n],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,n){var r=(n+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[n],e.v[n],!0)};function crossProduct(e,n){return[e[1]*n[2]-e[2]*n[1],e[2]*n[0]-e[0]*n[2],e[0]*n[1]-e[1]*n[0]]}function lineIntersection(e,n,r,i){var a=[e[0],e[1],1],o=[n[0],n[1],1],s=[r[0],r[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,n,r){return[e[0]+Math.cos(n)*r,e[1]-Math.sin(n)*r]}function pointDistance(e,n){return Math.hypot(e[0]-n[0],e[1]-n[1])}function pointEqual(e,n){return floatEqual(e[0],n[0])&&floatEqual(e[1],n[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,n){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,n.s,0,null,this),this.frequency=PropertyFactory.getProp(e,n.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,n.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,n,r,i,a,o,s){var l=r-Math.PI/2,c=r+Math.PI/2,u=n[0]+Math.cos(r)*i*a,f=n[1]-Math.sin(r)*i*a;e.setTripleAt(u,f,u+Math.cos(l)*o,f-Math.sin(l)*o,u+Math.cos(c)*s,f-Math.sin(c)*s,e.length())}function getPerpendicularVector(e,n){var r=[n[0]-e[0],n[1]-e[1]],i=-Math.PI*.5,a=[Math.cos(i)*r[0]-Math.sin(i)*r[1],Math.sin(i)*r[0]+Math.cos(i)*r[1]];return a}function getProjectingAngle(e,n){var r=n===0?e.length()-1:n-1,i=(n+1)%e.length(),a=e.v[r],o=e.v[i],s=getPerpendicularVector(a,o);return Math.atan2(0,1)-Math.atan2(s[1],s[0])}function zigZagCorner(e,n,r,i,a,o,s){var l=getProjectingAngle(n,r),c=n.v[r%n._length],u=n.v[r===0?n._length-1:r-1],f=n.v[(r+1)%n._length],x=o===2?Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)):0,h=o===2?Math.sqrt(Math.pow(c[0]-f[0],2)+Math.pow(c[1]-f[1],2)):0;setPoint(e,n.v[r%n._length],l,s,i,h/((a+1)*2),x/((a+1)*2))}function zigZagSegment(e,n,r,i,a,o){for(var s=0;s<i;s+=1){var l=(s+1)/(i+1),c=a===2?Math.sqrt(Math.pow(n.points[3][0]-n.points[0][0],2)+Math.pow(n.points[3][1]-n.points[0][1],2)):0,u=n.normalAngle(l),f=n.point(l);setPoint(e,f,u,o,r,c/((i+1)*2),c/((i+1)*2)),o=-o}return o}ZigZagModifier.prototype.processPath=function(e,n,r,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,n,r,i,s);for(var c=0;c<a;c+=1)s=zigZagSegment(o,l,n,r,i,-s),c===a-1&&!e.c?l=null:l=PolynomialBezier.shapeSegment(e,(c+1)%a),zigZagCorner(o,e,c+1,n,r,i,s);return o},ZigZagModifier.prototype.processShapes=function(e){var n,r,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,f;for(r=0;r<i;r+=1){if(u=this.shapes[r],f=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(f.releaseShapes(),u.shape._mdf=!0,n=u.shape.paths.shapes,o=u.shape.paths._length,a=0;a<o;a+=1)f.addShape(this.processPath(n[a],s,l,c));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,n,r){var i=Math.atan2(n[0]-e[0],n[1]-e[1]);return[polarOffset(e,i,r),polarOffset(n,i,r)]}function offsetSegment(e,n){var r,i,a,o,s,l,c;c=linearOffset(e.points[0],e.points[1],n),r=c[0],i=c[1],c=linearOffset(e.points[1],e.points[2],n),a=c[0],o=c[1],c=linearOffset(e.points[2],e.points[3],n),s=c[0],l=c[1];var u=lineIntersection(r,i,a,o);u===null&&(u=i);var f=lineIntersection(s,l,a,o);return f===null&&(f=s),new PolynomialBezier(r,u,f,l)}function joinLines(e,n,r,i,a){var o=n.points[3],s=r.points[0];if(i===3||pointEqual(o,s))return o;if(i===2){var l=-n.tangentAngle(1),c=-r.tangentAngle(0)+Math.PI,u=lineIntersection(o,polarOffset(o,l+Math.PI/2,100),s,polarOffset(s,l+Math.PI/2,100)),f=u?pointDistance(u,o):pointDistance(o,s)/2,x=polarOffset(o,l,2*f*roundCorner);return e.setXYAt(x[0],x[1],"o",e.length()-1),x=polarOffset(s,c,2*f*roundCorner),e.setTripleAt(s[0],s[1],s[0],s[1],x[0],x[1],e.length()),s}var h=pointEqual(o,n.points[2])?n.points[0]:n.points[2],g=pointEqual(s,r.points[1])?r.points[3]:r.points[1],v=lineIntersection(h,o,s,g);return v&&pointDistance(v,o)<a?(e.setTripleAt(v[0],v[1],v[0],v[1],v[0],v[1],e.length()),v):o}function getIntersection(e,n){var r=e.intersections(n);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,n){var r=e.slice(),i=n.slice(),a=getIntersection(e[e.length-1],n[0]);return a&&(r[e.length-1]=e[e.length-1].split(a[0])[0],i[0]=n[0].split(a[1])[1]),e.length>1&&n.length>1&&(a=getIntersection(e[0],n[n.length-1]),a)?[[e[0].split(a[0])[0]],[n[n.length-1].split(a[1])[1]]]:[r,i]}function pruneIntersections(e){for(var n,r=1;r<e.length;r+=1)n=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=n[0],e[r]=n[1];return e.length>1&&(n=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=n[0],e[0]=n[1]),e}function offsetSegmentSplit(e,n){var r=e.inflectionPoints(),i,a,o,s;if(r.length===0)return[offsetSegment(e,n)];if(r.length===1||floatEqual(r[1],1))return o=e.split(r[0]),i=o[0],a=o[1],[offsetSegment(i,n),offsetSegment(a,n)];o=e.split(r[0]),i=o[0];var l=(r[1]-r[0])/(1-r[0]);return o=o[1].split(l),s=o[0],a=o[1],[offsetSegment(i,n),offsetSegment(s,n),offsetSegment(a,n)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,n){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,n.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,n.ml,0,null,this),this.lineJoin=n.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,n,r,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,n));if(!e.c)for(s=o-1;s>=0;s-=1)c=PolynomialBezier.shapeSegmentInverted(e,s),u.push(offsetSegmentSplit(c,n));u=pruneIntersections(u);var f=null,x=null;for(s=0;s<u.length;s+=1){var h=u[s];for(x&&(f=joinLines(a,x,h[0],r,i)),x=h[h.length-1],l=0;l<h.length;l+=1)c=h[l],f&&pointEqual(c.points[0],f)?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()),f=c.points[3]}return u.length&&joinLines(a,x,u[0][0],r,i),a},OffsetPathModifier.prototype.processShapes=function(e){var n,r,i=this.shapes.length,a,o,s=this.amount.v,l=this.miterLimit.v,c=this.lineJoin;if(s!==0){var u,f;for(r=0;r<i;r+=1){if(u=this.shapes[r],f=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(f.releaseShapes(),u.shape._mdf=!0,n=u.shape.paths.shapes,o=u.shape.paths._length,a=0;a<o;a+=1)f.addShape(this.processPath(n[a],s,c,l));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var n=e.fStyle?e.fStyle.split(" "):[],r="normal",i="normal",a=n.length,o,s=0;s<a;s+=1)switch(o=n[s].toLowerCase(),o){case"italic":i="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200";break}return{style:i,weight:e.fWeight||r}}var FontManager=function(){var e=5e3,n={w:0,size:0,shapes:[],data:{shapes:[]}},r=[];r=r.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,f=127487,x=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function h(P){var M=P.split(","),w,S=M.length,R=[];for(w=0;w<S;w+=1)M[w]!=="sans-serif"&&M[w]!=="monospace"&&R.push(M[w]);return R.join(",")}function g(P,M){var w=createTag("span");w.setAttribute("aria-hidden",!0),w.style.fontFamily=M;var S=createTag("span");S.innerText="giItT1WQy@!-/#",w.style.position="absolute",w.style.left="-10000px",w.style.top="-10000px",w.style.fontSize="300px",w.style.fontVariant="normal",w.style.fontStyle="normal",w.style.fontWeight="normal",w.style.letterSpacing="0",w.appendChild(S),document.body.appendChild(w);var R=S.offsetWidth;return S.style.fontFamily=h(P)+", "+M,{node:S,w:R,parent:w}}function v(){var P,M=this.fonts.length,w,S,R=M;for(P=0;P<M;P+=1)this.fonts[P].loaded?R-=1:this.fonts[P].fOrigin==="n"||this.fonts[P].origin===0?this.fonts[P].loaded=!0:(w=this.fonts[P].monoCase.node,S=this.fonts[P].monoCase.w,w.offsetWidth!==S?(R-=1,this.fonts[P].loaded=!0):(w=this.fonts[P].sansCase.node,S=this.fonts[P].sansCase.w,w.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 m(P,M){var w=document.body&&M?"svg":"canvas",S,R=getFontProperties(P);if(w==="svg"){var _=createNS("text");_.style.fontSize="100px",_.setAttribute("font-family",P.fFamily),_.setAttribute("font-style",R.style),_.setAttribute("font-weight",R.weight),_.textContent="1",P.fClass?(_.style.fontFamily="inherit",_.setAttribute("class",P.fClass)):_.style.fontFamily=P.fFamily,M.appendChild(_),S=_}else{var V=new OffscreenCanvas(500,500).getContext("2d");V.font=R.style+" "+R.weight+" 100px "+P.fFamily,S=V}function $(F){return w==="svg"?(S.textContent=F,S.getComputedTextLength()):S.measureText(F).width}return{measureText:$}}function C(P,M){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(W){W.helper=m(W),W.cache={}}),this.fonts=P.list;return}var w=P.list,S,R=w.length,_=R;for(S=0;S<R;S+=1){var V=!0,$,F;if(w[S].loaded=!1,w[S].monoCase=g(w[S].fFamily,"monospace"),w[S].sansCase=g(w[S].fFamily,"sans-serif"),!w[S].fPath)w[S].loaded=!0,_-=1;else if(w[S].fOrigin==="p"||w[S].origin===3){if($=document.querySelectorAll('style[f-forigin="p"][f-family="'+w[S].fFamily+'"], style[f-origin="3"][f-family="'+w[S].fFamily+'"]'),$.length>0&&(V=!1),V){var q=createTag("style");q.setAttribute("f-forigin",w[S].fOrigin),q.setAttribute("f-origin",w[S].origin),q.setAttribute("f-family",w[S].fFamily),q.type="text/css",q.innerText="@font-face {font-family: "+w[S].fFamily+"; font-style: normal; src: url('"+w[S].fPath+"');}",M.appendChild(q)}}else if(w[S].fOrigin==="g"||w[S].origin===1){for($=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),F=0;F<$.length;F+=1)$[F].href.indexOf(w[S].fPath)!==-1&&(V=!1);if(V){var U=createTag("link");U.setAttribute("f-forigin",w[S].fOrigin),U.setAttribute("f-origin",w[S].origin),U.type="text/css",U.rel="stylesheet",U.href=w[S].fPath,document.body.appendChild(U)}}else if(w[S].fOrigin==="t"||w[S].origin===2){for($=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),F=0;F<$.length;F+=1)w[S].fPath===$[F].src&&(V=!1);if(V){var j=createTag("link");j.setAttribute("f-forigin",w[S].fOrigin),j.setAttribute("f-origin",w[S].origin),j.setAttribute("rel","stylesheet"),j.setAttribute("href",w[S].fPath),M.appendChild(j)}}w[S].helper=m(w[S],M),w[S].cache={},this.fonts.push(w[S])}_===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function b(P){if(P){this.chars||(this.chars=[]);var M,w=P.length,S,R=this.chars.length,_;for(M=0;M<w;M+=1){for(S=0,_=!1;S<R;)this.chars[S].style===P[M].style&&this.chars[S].fFamily===P[M].fFamily&&this.chars[S].ch===P[M].ch&&(_=!0),S+=1;_||(this.chars.push(P[M]),R+=1)}}}function d(P,M,w){for(var S=0,R=this.chars.length;S<R;){if(this.chars[S].ch===P&&this.chars[S].style===M&&this.chars[S].fFamily===w)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,M,w)),n}function p(P,M,w){var S=this.getFontByName(M),R=P;if(!S.cache[R]){var _=S.helper;if(P===" "){var V=_.measureText("|"+P+"|"),$=_.measureText("||");S.cache[R]=(V-$)/100}else S.cache[R]=_.measureText(P)/100}return S.cache[R]*w}function y(P){for(var M=0,w=this.fonts.length;M<w;){if(this.fonts[M].fName===P)return this.fonts[M];M+=1}return this.fonts[0]}function E(P){var M=0,w=P.charCodeAt(0);if(w>=55296&&w<=56319){var S=P.charCodeAt(1);S>=56320&&S<=57343&&(M=(w-55296)*1024+S-56320+65536)}return M}function k(P,M){var w=P.toString(16)+M.toString(16);return x.indexOf(w)!==-1}function A(P){return P===c}function T(P){return P===l}function D(P){var M=E(P);return M>=u&&M<=f}function I(P){return D(P.substr(0,2))&&D(P.substr(2,2))}function B(P){return r.indexOf(P)!==-1}function O(P,M){var w=E(P.substr(M,2));if(w!==i)return!1;var S=0;for(M+=2;S<5;){if(w=E(P.substr(M,2)),w<o||w>s)return!1;S+=1,M+=2}return E(P.substr(M,2))===a}function L(){this.isLoaded=!0}var H=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)};H.isModifier=k,H.isZeroWidthJoiner=A,H.isFlagEmoji=I,H.isRegionalCode=D,H.isCombinedCharacter=B,H.isRegionalFlag=O,H.isVariationSelector=T,H.BLACK_FLAG_CODE_POINT=i;var N={addChars:b,addFonts:C,getCharData:d,getFontByName:y,measureText:p,checkLoadedFonts:v,setIsLoaded:L};return H.prototype=N,H}();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(n){this.renderableComponents.indexOf(n)===-1&&this.renderableComponents.push(n)},removeRenderableComponent:function(n){this.renderableComponents.indexOf(n)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(n),1)},prepareRenderableFrame:function(n){this.checkLayerLimits(n)},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(n){this.data.ip-this.data.st<=n&&this.data.op-this.data.st>n?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 n,r=this.renderableComponents.length;for(n=0;n<r;n+=1)this.renderableComponents[n].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(n){return e[n]||""}}();function SliderEffect(e,n,r){this.p=PropertyFactory.getProp(n,e.v,0,0,r)}function AngleEffect(e,n,r){this.p=PropertyFactory.getProp(n,e.v,0,0,r)}function ColorEffect(e,n,r){this.p=PropertyFactory.getProp(n,e.v,1,0,r)}function PointEffect(e,n,r){this.p=PropertyFactory.getProp(n,e.v,1,0,r)}function LayerIndexEffect(e,n,r){this.p=PropertyFactory.getProp(n,e.v,0,0,r)}function MaskIndexEffect(e,n,r){this.p=PropertyFactory.getProp(n,e.v,0,0,r)}function CheckboxEffect(e,n,r){this.p=PropertyFactory.getProp(n,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,n){var r=e.ef||[];this.effectElements=[];var i,a=r.length,o;for(i=0;i<a;i+=1)o=new GroupEffect(r[i],n),this.effectElements.push(o)}function GroupEffect(e,n){this.init(e,n)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,n){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(n);var r,i=this.data.ef.length,a,o=this.data.ef;for(r=0;r<i;r+=1){switch(a=null,o[r].ty){case 0:a=new SliderEffect(o[r],n,this);break;case 1:a=new AngleEffect(o[r],n,this);break;case 2:a=new ColorEffect(o[r],n,this);break;case 3:a=new PointEffect(o[r],n,this);break;case 4:case 7:a=new CheckboxEffect(o[r],n,this);break;case 10:a=new LayerIndexEffect(o[r],n,this);break;case 11:a=new MaskIndexEffect(o[r],n,this);break;case 5:a=new EffectsManager(o[r],n);break;default:a=new NoValueEffect(o[r]);break}a&&this.effectElements.push(a)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var n=0,r=this.data.masksProperties.length;n<r;){if(this.data.masksProperties[n].mode!=="n"&&this.data.masksProperties[n].cl!==!1)return!0;n+=1}return!1},initExpressions:function(){var n=getExpressionInterfaces();if(n){var r=n("layer"),i=n("effects"),a=n("shape"),o=n("text"),s=n("comp");this.layerInterface=r(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 n=getBlendMode(this.data.bm),r=this.baseElement||this.layerElement;r.style["mix-blend-mode"]=n},initBaseData:function(n,r,i){this.globalData=r,this.comp=i,this.data=n,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(n,r){var i,a=this.dynamicProperties.length;for(i=0;i<a;i+=1)(r||this._isParent&&this.dynamicProperties[i].propType==="transform")&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(n){this.dynamicProperties.indexOf(n)===-1&&this.dynamicProperties.push(n)}};function FootageElement(e,n,r){this.initFrame(),this.initRenderable(),this.assetData=n.getAssetData(e.refId),this.footageData=n.imageLoader.getAsset(this.assetData),this.initBaseData(e,n,r)}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 n=e("footage");this.layerInterface=n(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,n,r){this.initFrame(),this.initRenderable(),this.assetData=n.getAssetData(e.refId),this.initBaseData(e,n,r),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,n.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 n=this.tm.v;this._currentTime=n}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},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 n,r=this.layers.length,i;for(this.completeLayers=!0,n=r-1;n>=0;n-=1)this.elements[n]||(i=this.layers[n],i.ip-i.st<=e-this.layers[n].st&&i.op-i.st>e-this.layers[n].st&&this.buildItem(n)),this.completeLayers=this.elements[n]?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,n=this.layers.length;for(e=0;e<n;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var n,r=e.length,i,a=this.layers.length;for(n=0;n<r;n+=1)for(i=0;i<a;){if(this.layers[i].id===e[n].id){this.layers[i]=e[n];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,n,r){for(var i=this.elements,a=this.layers,o=0,s=a.length;o<s;)a[o].ind==n&&(!i[o]||i[o]===!0?(this.buildItem(o),this.addPendingElement(e)):(r.push(i[o]),i[o].setAsParent(),a[o].parent!==void 0?this.buildElementParenting(e,a[o].parent,r):e.setHierarchy(r))),o+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var n,r=e.length;for(n=0;n<r;n+=1)if(e[n].xt){var i=this.createComp(e[n]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(e){var n,r=this.elements.length;for(n=0;n<r;n+=1)if(this.elements[n].data.ind===e)return this.elements[n];return null},BaseRenderer.prototype.getElementByPath=function(e){var n=e.shift(),r;if(typeof n=="number")r=this.elements[n];else{var i,a=this.elements.length;for(i=0;i<a;i+=1)if(this.elements[i].data.nm===n){r=this.elements[i];break}}return e.length===0?r:r.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,n){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,n),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 n=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:n,localMat:n,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 n,r=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(n=this.finalTransform.mProp.v.props,r.cloneFromProps(n),i=0;i<a;i+=1)r.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 n=0,r=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;n<r;)this.localTransforms[n]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[n]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),n+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),n=1;n<r;n+=1){var a=this.localTransforms[n].matrix;i.multiply(a)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var o=this.finalTransform.localOpacity;for(n=0;n<r;n+=1)o*=this.localTransforms[n].opacity*.01;this.finalTransform.localOpacity=o}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var n=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(n.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var r=0,i=n.length;for(r=0;r<i;r+=1)this.localTransforms.push(n[r])}}},globalToLocal:function(n){var r=[];r.push(this.finalTransform);for(var i=!0,a=this.comp;i;)a.finalTransform?(a.data.hasMask&&r.splice(0,0,a.finalTransform),a=a.comp):i=!1;var o,s=r.length,l;for(o=0;o<s;o+=1)l=r[o].mat.applyToPointArray(0,0,0),n=[n[0]-l[0],n[1]-l[1],0];return n},mHelper:new Matrix};function MaskElement(e,n,r){this.data=e,this.element=n,this.globalData=r,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=[],f,x,h=createElementID(),g,v,m,C,b="clipPath",d="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)&&(b="mask",d="mask"),(l[a].mode==="s"||l[a].mode==="i")&&c===0?(g=createNS("rect"),g.setAttribute("fill","#ffffff"),g.setAttribute("width",this.element.comp.data.w||0),g.setAttribute("height",this.element.comp.data.h||0),u.push(g)):g=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 p;if(l[a].x.k!==0?(b="mask",d="mask",C=PropertyFactory.getProp(this.element,l[a].x,0,null,this.element),p=createElementID(),v=createNS("filter"),v.setAttribute("id",p),m=createNS("feMorphology"),m.setAttribute("operator","erode"),m.setAttribute("in","SourceGraphic"),m.setAttribute("radius","0"),v.appendChild(m),i.appendChild(v),s.setAttribute("stroke",l[a].mode==="s"?"#000000":"#ffffff")):(m=null,C=null),this.storedData[a]={elem:s,x:C,expan:m,lastPath:"",lastOperator:"",filterId:p,lastRadius:0},l[a].mode==="i"){x=u.length;var y=createNS("g");for(f=0;f<x;f+=1)y.appendChild(u[f]);var E=createNS("mask");E.setAttribute("mask-type","alpha"),E.setAttribute("id",h+"_"+c),E.appendChild(s),i.appendChild(E),y.setAttribute("mask","url("+getLocationHref()+"#"+h+"_"+c+")"),u.length=0,u.push(y)}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:g},this.viewData[a].prop.k||this.drawPath(l[a],this.viewData[a].prop.v,this.viewData[a])}for(this.maskElement=createNS(b),o=u.length,a=0;a<o;a+=1)this.maskElement.appendChild(u[a]);c>0&&(this.maskElement.setAttribute("id",h),this.element.maskedElement.setAttribute(d,"url("+getLocationHref()+"#"+h+")"),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 n=this.element.finalTransform.mat,r,i=this.masksProperties.length;for(r=0;r<i;r+=1)if((this.viewData[r].prop._mdf||e)&&this.drawPath(this.masksProperties[r],this.viewData[r].prop.v,this.viewData[r]),(this.viewData[r].op._mdf||e)&&this.viewData[r].elem.setAttribute("fill-opacity",this.viewData[r].op.v),this.masksProperties[r].mode!=="n"&&(this.viewData[r].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[r].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[r].x&&(this.storedData[r].x._mdf||e))){var a=this.storedData[r].expan;this.storedData[r].x.v<0?(this.storedData[r].lastOperator!=="erode"&&(this.storedData[r].lastOperator="erode",this.storedData[r].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[r].filterId+")")),a.setAttribute("radius",-this.storedData[r].x.v)):(this.storedData[r].lastOperator!=="dilate"&&(this.storedData[r].lastOperator="dilate",this.storedData[r].elem.setAttribute("filter",null)),this.storedData[r].elem.setAttribute("stroke-width",this.storedData[r].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,n,r){var i=" M"+n.v[0][0]+","+n.v[0][1],a,o;for(o=n._length,a=1;a<o;a+=1)i+=" C"+n.o[a-1][0]+","+n.o[a-1][1]+" "+n.i[a][0]+","+n.i[a][1]+" "+n.v[a][0]+","+n.v[a][1];if(n.c&&o>1&&(i+=" C"+n.o[a-1][0]+","+n.o[a-1][1]+" "+n.i[0][0]+","+n.i[0][1]+" "+n.v[0][0]+","+n.v[0][1]),r.lastPath!==i){var s="";r.elem&&(n.c&&(s=e.inv?this.solidPath+i:i),r.elem.setAttribute("d",s)),r.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=n,e.createAlphaToLuminanceFilter=r;function n(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 r(){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 n,r="SourceGraphic",i=e.data.ef?e.data.ef.length:0,a=createElementID(),o=filtersFactory.createFilter(a,!0),s=0;this.filters=[];var l;for(n=0;n<i;n+=1){l=null;var c=e.data.ef[n].ty;if(registeredEffects$1[c]){var u=registeredEffects$1[c].effect;l=new u(o,e.effectsManager.effectElements[n],e,idPrefix+s,r),r=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 n,r=this.filters.length;for(n=0;n<r;n+=1)this.filters[n].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var n,r=this.filters.length,i=[];for(n=0;n<r;n+=1)this.filters[n].type===e&&i.push(this.filters[n]);return i};function registerEffect$1(e,n,r){registeredEffects$1[e]={effect:n,countsAsEffect:r}}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 n=null;if(this.data.td){this.matteMasks={};var r=createNS("g");r.setAttribute("id",this.layerId),r.appendChild(this.layerElement),n=r,this.globalData.defs.appendChild(r)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),n=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,n?n.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(n){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[n]){var r=this.layerId+"_"+n,i,a,o,s;if(n===1||n===3){var l=createNS("mask");l.setAttribute("id",r),l.setAttribute("mask-type",n===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&&n===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(n===2){var c=createNS("mask");c.setAttribute("id",r),c.setAttribute("mask-type","alpha");var u=createNS("g");c.appendChild(u),i=createElementID(),a=filtersFactory.createFilter(i);var f=createNS("feComponentTransfer");f.setAttribute("in","SourceGraphic"),a.appendChild(f);var x=createNS("feFuncA");x.setAttribute("type","table"),x.setAttribute("tableValues","1.0 0.0"),f.appendChild(x),this.globalData.defs.appendChild(a);var h=createNS("rect");h.setAttribute("width",this.comp.data.w),h.setAttribute("height",this.comp.data.h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("fill","#ffffff"),h.setAttribute("opacity","0"),u.setAttribute("filter","url("+getLocationHref()+"#"+i+")"),u.appendChild(h),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(h),s.appendChild(this.layerElement),u.appendChild(s)),this.globalData.defs.appendChild(c)}this.matteMasks[n]=r}return this.matteMasks[n]},setMatte:function(n){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+n+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(n){this.hierarchy=n},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(r,i,a){this.initFrame(),this.initBaseData(r,i,a),this.initTransform(r,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 r=this.baseElement||this.layerElement;r.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var r=this.baseElement||this.layerElement;r.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(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,n,r){this.assetData=n.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=n.slotManager.getProp(this.assetData)),this.initElement(e,n,r),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,n){this.elem=e,this.pos=n}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(n){var r,i=this.shapeModifiers.length;for(r=0;r<i;r+=1)this.shapeModifiers[r].addShape(n)},isShapeInAnimatedModifiers:function(n){for(var r=0,i=this.shapeModifiers.length;r<i;)if(this.shapeModifiers[r].isAnimatedWithShape(n))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var n,r=this.shapes.length;for(n=0;n<r;n+=1)this.shapes[n].sh.reset();r=this.shapeModifiers.length;var i;for(n=r-1;n>=0&&(i=this.shapeModifiers[n].processShapes(this._isFirstFrame),!i);n-=1);}},searchProcessedElement:function(n){for(var r=this.processedElements,i=0,a=r.length;i<a;){if(r[i].elem===n)return r[i].pos;i+=1}return 0},addProcessedElement:function(n,r){for(var i=this.processedElements,a=i.length;a;)if(a-=1,i[a].elem===n){i[a].pos=r;return}i.push(new ProcessedElement(n,r))},prepareFrame:function(n){this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,n,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=n,this._isAnimated=!!r.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,n){this.data=e,this.type=e.ty,this.d="",this.lvl=n,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,n,r,i){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(n.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",n.length?n.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var a,o=n.length||0,s;for(a=0;a<o;a+=1)s=PropertyFactory.getProp(e,n[a].v,0,0,this),this.k=s.k||this.k,this.dataProps[a]={n:n[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 n=0,r=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),n=0;n<r;n+=1)this.dataProps[n].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[n].p.v:this.dashArray[n]=this.dataProps[n].p.v:this.dashoffset[0]=this.dataProps[n].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,n,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,n.o,0,.01,this),this.w=PropertyFactory.getProp(e,n.w,0,null,this),this.d=new DashProperty(e,n.d||{},"svg",this),this.c=PropertyFactory.getProp(e,n.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,n,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,n.o,0,.01,this),this.c=PropertyFactory.getProp(e,n.c,1,255,this),this.style=r}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,n,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,n,r){this.data=n,this.c=createTypedArray("uint8c",n.p*4);var i=n.k.k[0].s?n.k.k[0].s.length-n.p*4:n.k.k.length-n.p*4;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,n.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,n){for(var r=0,i=this.o.length/2,a;r<i;){if(a=Math.abs(e[r*4]-e[n*4+r*2]),a>.01)return!1;r+=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,n=this.data.k.k.length;e<n;){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 n,r=this.data.p*4,i,a;for(n=0;n<r;n+=1)i=n%4===0?100:255,a=Math.round(this.prop.v[n]*i),this.c[n]!==a&&(this.c[n]=a,this._cmdf=!e);if(this.o.length)for(r=this.prop.v.length,n=this.data.p*4;n<r;n+=1)i=n%2===0?100:1,a=n%2===0?Math.round(this.prop.v[n]*100):this.prop.v[n],this.o[n-this.data.p*4]!==a&&(this.o[n-this.data.p*4]=a,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,n,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,n,r)}SVGGradientFillStyleData.prototype.initGradientData=function(e,n,r){this.o=PropertyFactory.getProp(e,n.o,0,.01,this),this.s=PropertyFactory.getProp(e,n.s,1,null,this),this.e=PropertyFactory.getProp(e,n.e,1,null,this),this.h=PropertyFactory.getProp(e,n.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,n.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,n.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,n),this.setGradientOpacity(n,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,n){var r=createElementID(),i=createNS(n.t===1?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var a=[],o,s,l;for(l=n.g.p*4,s=0;s<l;s+=4)o=createNS("stop"),i.appendChild(o),a.push(o);e.setAttribute(n.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=i,this.cst=a},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,n){if(this.g._hasOpacity&&!this.g._collapsable){var r,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 f=this.stops;for(i=e.g.p*4;i<a;i+=2)r=createNS("stop"),r.setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(r),f.push(r);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=f,this.maskId=c,n.msElem=s}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,n,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,n.w,0,null,this),this.d=new DashProperty(e,n.d||{},"svg",this),this.initGradientData(e,n,r),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,n,r){this.transform={mProps:e,op:n,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(n,r,i,a){if(r===0)return"";var o=n.o,s=n.i,l=n.v,c,u=" M"+a.applyToPointStringified(l[0][0],l[0][1]);for(c=1;c<r;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&&r&&(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,n=new Matrix,r={createRenderFunction:i};function i(x){switch(x.ty){case"fl":return l;case"gf":return u;case"gs":return c;case"st":return f;case"sh":case"el":case"rc":case"sr":return s;case"tr":return a;case"no":return o;default:return null}}function a(x,h,g){(g||h.transform.op._mdf)&&h.transform.container.setAttribute("opacity",h.transform.op.v),(g||h.transform.mProps._mdf)&&h.transform.container.setAttribute("transform",h.transform.mProps.v.to2dCSS())}function o(){}function s(x,h,g){var v,m,C,b,d,p,y=h.styles.length,E=h.lvl,k,A,T,D;for(p=0;p<y;p+=1){if(b=h.sh._mdf||g,h.styles[p].lvl<E){for(A=n.reset(),T=E-h.styles[p].lvl,D=h.transformers.length-1;!b&&T>0;)b=h.transformers[D].mProps._mdf||b,T-=1,D-=1;if(b)for(T=E-h.styles[p].lvl,D=h.transformers.length-1;T>0;)A.multiply(h.transformers[D].mProps.v),T-=1,D-=1}else A=e;if(k=h.sh.paths,m=k._length,b){for(C="",v=0;v<m;v+=1)d=k.shapes[v],d&&d._length&&(C+=buildShapeString(d,d._length,d.c,A));h.caches[p]=C}else C=h.caches[p];h.styles[p].d+=x.hd===!0?"":C,h.styles[p]._mdf=b||h.styles[p]._mdf}}function l(x,h,g){var v=h.style;(h.c._mdf||g)&&v.pElem.setAttribute("fill","rgb("+bmFloor(h.c.v[0])+","+bmFloor(h.c.v[1])+","+bmFloor(h.c.v[2])+")"),(h.o._mdf||g)&&v.pElem.setAttribute("fill-opacity",h.o.v)}function c(x,h,g){u(x,h,g),f(x,h,g)}function u(x,h,g){var v=h.gf,m=h.g._hasOpacity,C=h.s.v,b=h.e.v;if(h.o._mdf||g){var d=x.ty==="gf"?"fill-opacity":"stroke-opacity";h.style.pElem.setAttribute(d,h.o.v)}if(h.s._mdf||g){var p=x.t===1?"x1":"cx",y=p==="x1"?"y1":"cy";v.setAttribute(p,C[0]),v.setAttribute(y,C[1]),m&&!h.g._collapsable&&(h.of.setAttribute(p,C[0]),h.of.setAttribute(y,C[1]))}var E,k,A,T;if(h.g._cmdf||g){E=h.cst;var D=h.g.c;for(A=E.length,k=0;k<A;k+=1)T=E[k],T.setAttribute("offset",D[k*4]+"%"),T.setAttribute("stop-color","rgb("+D[k*4+1]+","+D[k*4+2]+","+D[k*4+3]+")")}if(m&&(h.g._omdf||g)){var I=h.g.o;for(h.g._collapsable?E=h.cst:E=h.ost,A=E.length,k=0;k<A;k+=1)T=E[k],h.g._collapsable||T.setAttribute("offset",I[k*2]+"%"),T.setAttribute("stop-opacity",I[k*2+1])}if(x.t===1)(h.e._mdf||g)&&(v.setAttribute("x2",b[0]),v.setAttribute("y2",b[1]),m&&!h.g._collapsable&&(h.of.setAttribute("x2",b[0]),h.of.setAttribute("y2",b[1])));else{var B;if((h.s._mdf||h.e._mdf||g)&&(B=Math.sqrt(Math.pow(C[0]-b[0],2)+Math.pow(C[1]-b[1],2)),v.setAttribute("r",B),m&&!h.g._collapsable&&h.of.setAttribute("r",B)),h.e._mdf||h.h._mdf||h.a._mdf||g){B||(B=Math.sqrt(Math.pow(C[0]-b[0],2)+Math.pow(C[1]-b[1],2)));var O=Math.atan2(b[1]-C[1],b[0]-C[0]),L=h.h.v;L>=1?L=.99:L<=-1&&(L=-.99);var H=B*L,N=Math.cos(O+h.a.v)*H+C[0],P=Math.sin(O+h.a.v)*H+C[1];v.setAttribute("fx",N),v.setAttribute("fy",P),m&&!h.g._collapsable&&(h.of.setAttribute("fx",N),h.of.setAttribute("fy",P))}}}function f(x,h,g){var v=h.style,m=h.d;m&&(m._mdf||g)&&m.dashStr&&(v.pElem.setAttribute("stroke-dasharray",m.dashStr),v.pElem.setAttribute("stroke-dashoffset",m.dashoffset[0])),h.c&&(h.c._mdf||g)&&v.pElem.setAttribute("stroke","rgb("+bmFloor(h.c.v[0])+","+bmFloor(h.c.v[1])+","+bmFloor(h.c.v[2])+")"),(h.o._mdf||g)&&v.pElem.setAttribute("stroke-opacity",h.o.v),(h.w._mdf||g)&&(v.pElem.setAttribute("stroke-width",h.w.v),v.msElem&&v.msElem.setAttribute("stroke-width",h.w.v))}return r}();function SVGShapeElement(e,n,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,n,r),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,n=this.shapes.length,r,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<n;e+=1)r=this.shapes[e],r.styles.indexOf(o)!==-1&&(s.push(r),l=r._isAnimated||l);s.length>1&&l&&this.setShapesAsAnimated(s)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var n,r=e.length;for(n=0;n<r;n+=1)e[n].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,n){var r,i=new SVGStyleData(e,n),a=i.pElem;if(e.ty==="st")r=new SVGStrokeStyleData(this,e,i);else if(e.ty==="fl")r=new SVGFillStyleData(this,e,i);else if(e.ty==="gf"||e.ty==="gs"){var o=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;r=new o(this,e,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),a.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))}else e.ty==="no"&&(r=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,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var n=new ShapeGroupData;return e.ln&&n.gr.setAttribute("id",e.ln),e.cl&&n.gr.setAttribute("class",e.cl),e.bm&&(n.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),n},SVGShapeElement.prototype.createTransformElement=function(e,n){var r=TransformPropertyFactory.getTransformProperty(this,e,this),i=new SVGTransformData(r,r.o,n);return this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createShapeElement=function(e,n,r){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(n,r,a);return this.shapes.push(o),this.addShapeToModifiers(o),this.addToAnimatedContents(e,o),o},SVGShapeElement.prototype.addToAnimatedContents=function(e,n){for(var r=0,i=this.animatedContents.length;r<i;){if(this.animatedContents[r].element===n)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:n,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var n=e.styles,r,i=this.stylesList.length;for(r=0;r<i;r+=1)this.stylesList[r].closed||n.push(this.stylesList[r])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,n=this.itemsData.length;for(e=0;e<n;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),n=this.dynamicProperties.length,e=0;e<n;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,n,r,i,a,o,s){var l=[].concat(o),c,u=e.length-1,f,x,h=[],g=[],v,m,C;for(c=u;c>=0;c-=1){if(C=this.searchProcessedElement(e[c]),C?n[c]=r[C-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")C?n[c].style.closed=!1:n[c]=this.createStyleElement(e[c],a),e[c]._render&&n[c].style.pElem.parentNode!==i&&i.appendChild(n[c].style.pElem),h.push(n[c].style);else if(e[c].ty==="gr"){if(!C)n[c]=this.createGroupElement(e[c]);else for(x=n[c].it.length,f=0;f<x;f+=1)n[c].prevViewData[f]=n[c].it[f];this.searchShapes(e[c].it,n[c].it,n[c].prevViewData,n[c].gr,a+1,l,s),e[c]._render&&n[c].gr.parentNode!==i&&i.appendChild(n[c].gr)}else e[c].ty==="tr"?(C||(n[c]=this.createTransformElement(e[c],i)),v=n[c].transform,l.push(v)):e[c].ty==="sh"||e[c].ty==="rc"||e[c].ty==="el"||e[c].ty==="sr"?(C||(n[c]=this.createShapeElement(e[c],l,a)),this.setElementStyles(n[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"?(C?(m=n[c],m.closed=!1):(m=ShapeModifiers.getModifier(e[c].ty),m.init(this,e[c]),n[c]=m,this.shapeModifiers.push(m)),g.push(m)):e[c].ty==="rp"&&(C?(m=n[c],m.closed=!0):(m=ShapeModifiers.getModifier(e[c].ty),n[c]=m,m.init(this,e,c,n),this.shapeModifiers.push(m),s=!1),g.push(m));this.addProcessedElement(e[c],c+1)}for(u=h.length,c=0;c<u;c+=1)h[c].closed=!0;for(u=g.length,c=0;c<u;c+=1)g[c].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,n=this.stylesList.length;for(e=0;e<n;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<n;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,n=this.animatedContents.length,r;for(e=0;e<n;e+=1)r=this.animatedContents[e],(this._isFirstFrame||r.element._isAnimated)&&r.data!==!0&&r.fn(r.data,r.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,n,r,i,a,o){this.o=e,this.sw=n,this.sc=r,this.fc=i,this.m=a,this.p=o,this._mdf={o:!0,sw:!!n,sc:!!r,fc:!!i,m:!0,p:!0}}LetterProps.prototype.update=function(e,n,r,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!==n&&(this.sw=n,this._mdf.sw=!0,s=!0),this.sc!==r&&(this.sc=r,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,n){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,n.d&&n.d.sid&&(n.d=e.globalData.slotManager.getProp(n.d)),this.data=n,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,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);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 n=this.currentData,r=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)r!==this.keysIndex?o=this.effectsSequence[i](o,o.t):o=this.effectsSequence[i](this.currentData,o.t);n!==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,n=this.elem.comp.renderedFrame,r=0,i=e.length;r<=i-1&&!(r===i-1||e[r+1].t>n);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var n=[],r=0,i=e.length,a,o,s=!1,l=!1,c="";r<i;)s=l,l=!1,a=e.charCodeAt(r),c=e.charAt(r),FontManager.isCombinedCharacter(a)?s=!0:a>=55296&&a<=56319?FontManager.isRegionalFlag(e,r)?c=e.substr(r,14):(o=e.charCodeAt(r+1),o>=56320&&o<=57343&&(FontManager.isModifier(a,o)?(c=e.substr(r,2),s=!0):FontManager.isFlagEmoji(e.substr(r,4))?c=e.substr(r,4):c=e.substr(r,2))):a>56319?(o=e.charCodeAt(r+1),FontManager.isVariationSelector(a)&&(s=!0)):FontManager.isZeroWidthJoiner(a)&&(s=!0,l=!0),s?(n[n.length-1]+=c,s=!1):n.push(c),r+=c.length;return n},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var n=this.elem.globalData.fontManager,r=this.data,i=[],a,o,s,l=0,c,u=r.m.g,f=0,x=0,h=0,g=[],v=0,m=0,C,b,d=n.getFontByName(e.f),p,y=0,E=getFontProperties(d);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,A;if(e.sz)for(var T=!0,D=e.sz[0],I=e.sz[1],B,O;T;){O=this.buildFinalText(e.t),B=0,v=0,o=O.length,k=e.tr/1e3*e.finalSize;var L=-1;for(a=0;a<o;a+=1)A=O[a].charCodeAt(0),s=!1,O[a]===" "?L=a:(A===13||A===3)&&(v=0,s=!0,B+=e.finalLineHeight||e.finalSize*1.2),n.chars?(p=n.getCharData(O[a],d.fStyle,d.fFamily),y=s?0:p.w*e.finalSize/100):y=n.measureText(O[a],e.f,e.finalSize),v+y>D&&O[a]!==" "?(L===-1?o+=1:a=L,B+=e.finalLineHeight||e.finalSize*1.2,O.splice(a,L===a?1:0,"\r"),L=-1,v=0):(v+=y,v+=k);B+=d.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&I<B?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=O,o=e.finalText.length,T=!1)}v=-k,y=0;var H=0,N;for(a=0;a<o;a+=1)if(s=!1,N=e.finalText[a],A=N.charCodeAt(0),A===13||A===3?(H=0,g.push(v),m=v>m?v:m,v=-2*k,c="",s=!0,h+=1):c=N,n.chars?(p=n.getCharData(N,d.fStyle,n.getFontByName(e.f).fFamily),y=s?0:p.w*e.finalSize/100):y=n.measureText(c,e.f,e.finalSize),N===" "?H+=y+k:(v+=y+k+H,H=0),i.push({l:y,an:y,add:f,n:s,anIndexes:[],val:c,line:h,animatorJustifyOffset:0}),u==2){if(f+=y,c===""||c===" "||a===o-1){for((c===""||c===" ")&&(f-=y);x<=a;)i[x].an=f,i[x].ind=l,i[x].extra=y,x+=1;l+=1,f=0}}else if(u==3){if(f+=y,c===""||a===o-1){for(c===""&&(f-=y);x<=a;)i[x].an=f,i[x].ind=l,i[x].extra=y,x+=1;f=0,l+=1}}else i[l].ind=l,i[l].extra=0,l+=1;if(e.l=i,m=v>m?v:m,g.push(v),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=m,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var P=r.a,M,w;b=P.length;var S,R,_=[];for(C=0;C<b;C+=1){for(M=P[C],M.a.sc&&(e.strokeColorAnim=!0),M.a.sw&&(e.strokeWidthAnim=!0),(M.a.fc||M.a.fh||M.a.fs||M.a.fb)&&(e.fillColorAnim=!0),R=0,S=M.s.b,a=0;a<o;a+=1)w=i[a],w.anIndexes[C]=R,(S==1&&w.val!==""||S==2&&w.val!==""&&w.val!==" "||S==3&&(w.n||w.val==" "||a==o-1)||S==4&&(w.n||a==o-1))&&(M.s.rn===1&&_.push(R),R+=1);r.a[C].s.totalChars=R;var V=-1,$;if(M.s.rn===1)for(a=0;a<o;a+=1)w=i[a],V!=w.anIndexes[C]&&(V=w.anIndexes[C],$=_.splice(Math.floor(Math.random()*_.length),1)[0]),w.anIndexes[C]=$}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=d.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,n){n=n===void 0?this.keysIndex:n;var r=this.copyData({},this.data.d.k[n].s);r=this.copyData(r,e),this.data.d.k[n].s=r,this.recalculate(n),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var n=this.data.d.k[e].s;n.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(n)},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,n=Math.min,r=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,f=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:f=1+this.xe.v/100;var x=BezierFactory.getBezierEasing(l,c,u,f).get,h=0,g=this.finalS,v=this.finalE,m=this.data.sh;if(m===2)v===g?h=s>=v?1:0:h=e(0,n(.5/(v-g)+(s-g)/(v-g),1)),h=x(h);else if(m===3)v===g?h=s>=v?0:1:h=1-e(0,n(.5/(v-g)+(s-g)/(v-g),1)),h=x(h);else if(m===4)v===g?h=0:(h=e(0,n(.5/(v-g)+(s-g)/(v-g),1)),h<.5?h*=2:h=1-2*(h-.5)),h=x(h);else if(m===5){if(v===g)h=0;else{var C=v-g;s=n(e(0,s+.5-g),v-g);var b=-C/2+s,d=C/2;h=Math.sqrt(1-b*b/(d*d))}h=x(h)}else m===6?(v===g?h=0:(s=n(e(0,s+.5-g),v-g),h=(1+Math.cos(Math.PI+Math.PI*2*s/(v-g)))/2),h=x(h)):(s>=r(g)&&(s-g<0?h=e(0,n(n(v,1)-(g-s),1)):h=e(0,n(v-s,1))),h=x(h));if(this.sm.v!==100){var p=this.sm.v*.01;p===0&&(p=1e-8);var y=.5-p*.5;h<y?h=0:(h=(h-y)/p,h>1&&(h=1))}return h*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,f=this.e.v/l+c;if(u>f){var x=u;u=f,f=x}this.finalS=u,this.finalE=f}},extendPrototype([DynamicPropertyContainer],i);function a(o,s,l){return new i(o,s)}return{getTextSelectorProp:a}}();function TextAnimatorDataProperty(e,n,r){var i={propType:!1},a=PropertyFactory.getProp,o=n.a;this.a={r:o.r?a(e,o.r,0,degToRads,r):i,rx:o.rx?a(e,o.rx,0,degToRads,r):i,ry:o.ry?a(e,o.ry,0,degToRads,r):i,sk:o.sk?a(e,o.sk,0,degToRads,r):i,sa:o.sa?a(e,o.sa,0,degToRads,r):i,s:o.s?a(e,o.s,1,.01,r):i,a:o.a?a(e,o.a,1,0,r):i,o:o.o?a(e,o.o,0,.01,r):i,p:o.p?a(e,o.p,1,0,r):i,sw:o.sw?a(e,o.sw,0,0,r):i,sc:o.sc?a(e,o.sc,1,0,r):i,fc:o.fc?a(e,o.fc,1,0,r):i,fh:o.fh?a(e,o.fh,0,0,r):i,fs:o.fs?a(e,o.fs,0,.01,r):i,fb:o.fb?a(e,o.fb,0,.01,r):i,t:o.t?a(e,o.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(e,n.s,r),this.s.t=n.s.t}function TextAnimatorProperty(e,n,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=n,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}TextAnimatorProperty.prototype.searchProperties=function(){var e,n=this._textData.a.length,r,i=PropertyFactory.getProp;for(e=0;e<n;e+=1)r=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,r,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,n){if(this.lettersChangedFlag=n,!(!this._mdf&&!this._isFirstFrame&&!n&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var r=this._moreOptions.alignment.v,i=this._animatorsData,a=this._textData,o=this.mHelper,s=this._renderType,l=this.renderedLetters.length,c,u,f,x,h=e.l,g,v,m,C,b,d,p,y,E,k,A,T,D,I,B;if(this._hasMaskedPath){if(B=this._pathData.m,!this._pathData.n||this._pathData._mdf){var O=B.v;this._pathData.r.v&&(O=O.reverse()),g={tLength:0,segments:[]},x=O._length-1;var L;for(T=0,f=0;f<x;f+=1)L=bez.buildBezierData(O.v[f],O.v[f+1],[O.o[f][0]-O.v[f][0],O.o[f][1]-O.v[f][1]],[O.i[f+1][0]-O.v[f+1][0],O.i[f+1][1]-O.v[f+1][1]]),g.tLength+=L.segmentLength,g.segments.push(L),T+=L.segmentLength;f=x,B.v.c&&(L=bez.buildBezierData(O.v[f],O.v[0],[O.o[f][0]-O.v[f][0],O.o[f][1]-O.v[f][1]],[O.i[0][0]-O.v[0][0],O.i[0][1]-O.v[0][1]]),g.tLength+=L.segmentLength,g.segments.push(L),T+=L.segmentLength),this._pathData.pi=g}if(g=this._pathData.pi,v=this._pathData.f.v,p=0,d=1,C=0,b=!0,k=g.segments,v<0&&B.v.c)for(g.tLength<Math.abs(v)&&(v=-Math.abs(v)%g.tLength),p=k.length-1,E=k[p].points,d=E.length-1;v<0;)v+=E[d].partialLength,d-=1,d<0&&(p-=1,E=k[p].points,d=E.length-1);E=k[p].points,y=E[d-1],m=E[d],A=m.partialLength}x=h.length,c=0,u=0;var H=e.finalSize*1.2*.714,N=!0,P,M,w,S,R;S=i.length;var _,V=-1,$,F,q,U=v,j=p,W=d,G=-1,Y,J,Z,X,K,ee,ne,re,ae="",se=this.defaultPropsArray,fe;if(e.j===2||e.j===1){var he=0,ge=0,ye=e.j===2?-.5:-1,Ce=0,Te=!0;for(f=0;f<x;f+=1)if(h[f].n){for(he&&(he+=ge);Ce<f;)h[Ce].animatorJustifyOffset=he,Ce+=1;he=0,Te=!0}else{for(w=0;w<S;w+=1)P=i[w].a,P.t.propType&&(Te&&e.j===2&&(ge+=P.t.v*ye),M=i[w].s,_=M.getMult(h[f].anIndexes[w],a.a[w].s.totalChars),_.length?he+=P.t.v*_[0]*ye:he+=P.t.v*_*ye);Te=!1}for(he&&(he+=ge);Ce<f;)h[Ce].animatorJustifyOffset=he,Ce+=1}for(f=0;f<x;f+=1){if(o.reset(),Y=1,h[f].n)c=0,u+=e.yOffset,u+=N?1:0,v=U,N=!1,this._hasMaskedPath&&(p=j,d=W,E=k[p].points,y=E[d-1],m=E[d],A=m.partialLength,C=0),ae="",re="",ee="",fe="",se=this.defaultPropsArray;else{if(this._hasMaskedPath){if(G!==h[f].line){switch(e.j){case 1:v+=T-e.lineWidths[h[f].line];break;case 2:v+=(T-e.lineWidths[h[f].line])/2;break}G=h[f].line}V!==h[f].ind&&(h[V]&&(v+=h[V].extra),v+=h[f].an/2,V=h[f].ind),v+=r[0]*h[f].an*.005;var Se=0;for(w=0;w<S;w+=1)P=i[w].a,P.p.propType&&(M=i[w].s,_=M.getMult(h[f].anIndexes[w],a.a[w].s.totalChars),_.length?Se+=P.p.v[0]*_[0]:Se+=P.p.v[0]*_),P.a.propType&&(M=i[w].s,_=M.getMult(h[f].anIndexes[w],a.a[w].s.totalChars),_.length?Se+=P.a.v[0]*_[0]:Se+=P.a.v[0]*_);for(b=!0,this._pathData.a.v&&(v=h[0].an*.5+(T-this._pathData.f.v-h[0].an*.5-h[h.length-1].an*.5)*V/(x-1),v+=this._pathData.f.v);b;)C+A>=v+Se||!E?(D=(v+Se-C)/m.partialLength,F=y.point[0]+(m.point[0]-y.point[0])*D,q=y.point[1]+(m.point[1]-y.point[1])*D,o.translate(-r[0]*h[f].an*.005,-(r[1]*H)*.01),b=!1):E&&(C+=m.partialLength,d+=1,d>=E.length&&(d=0,p+=1,k[p]?E=k[p].points:B.v.c?(d=0,p=0,E=k[p].points):(C-=m.partialLength,E=null)),E&&(y=m,m=E[d],A=m.partialLength));$=h[f].an/2-h[f].add,o.translate(-$,0,0)}else $=h[f].an/2-h[f].add,o.translate(-$,0,0),o.translate(-r[0]*h[f].an*.005,-r[1]*H*.01,0);for(w=0;w<S;w+=1)P=i[w].a,P.t.propType&&(M=i[w].s,_=M.getMult(h[f].anIndexes[w],a.a[w].s.totalChars),(c!==0||e.j!==0)&&(this._hasMaskedPath?_.length?v+=P.t.v*_[0]:v+=P.t.v*_:_.length?c+=P.t.v*_[0]:c+=P.t.v*_));for(e.strokeWidthAnim&&(Z=e.sw||0),e.strokeColorAnim&&(e.sc?J=[e.sc[0],e.sc[1],e.sc[2]]:J=[0,0,0]),e.fillColorAnim&&e.fc&&(X=[e.fc[0],e.fc[1],e.fc[2]]),w=0;w<S;w+=1)P=i[w].a,P.a.propType&&(M=i[w].s,_=M.getMult(h[f].anIndexes[w],a.a[w].s.totalChars),_.length?o.translate(-P.a.v[0]*_[0],-P.a.v[1]*_[1],P.a.v[2]*_[2]):o.translate(-P.a.v[0]*_,-P.a.v[1]*_,P.a.v[2]*_));for(w=0;w<S;w+=1)P=i[w].a,P.s.propType&&(M=i[w].s,_=M.getMult(h[f].anIndexes[w],a.a[w].s.totalChars),_.length?o.scale(1+(P.s.v[0]-1)*_[0],1+(P.s.v[1]-1)*_[1],1):o.scale(1+(P.s.v[0]-1)*_,1+(P.s.v[1]-1)*_,1));for(w=0;w<S;w+=1){if(P=i[w].a,M=i[w].s,_=M.getMult(h[f].anIndexes[w],a.a[w].s.totalChars),P.sk.propType&&(_.length?o.skewFromAxis(-P.sk.v*_[0],P.sa.v*_[1]):o.skewFromAxis(-P.sk.v*_,P.sa.v*_)),P.r.propType&&(_.length?o.rotateZ(-P.r.v*_[2]):o.rotateZ(-P.r.v*_)),P.ry.propType&&(_.length?o.rotateY(P.ry.v*_[1]):o.rotateY(P.ry.v*_)),P.rx.propType&&(_.length?o.rotateX(P.rx.v*_[0]):o.rotateX(P.rx.v*_)),P.o.propType&&(_.length?Y+=(P.o.v*_[0]-Y)*_[0]:Y+=(P.o.v*_-Y)*_),e.strokeWidthAnim&&P.sw.propType&&(_.length?Z+=P.sw.v*_[0]:Z+=P.sw.v*_),e.strokeColorAnim&&P.sc.propType)for(K=0;K<3;K+=1)_.length?J[K]+=(P.sc.v[K]-J[K])*_[0]:J[K]+=(P.sc.v[K]-J[K])*_;if(e.fillColorAnim&&e.fc){if(P.fc.propType)for(K=0;K<3;K+=1)_.length?X[K]+=(P.fc.v[K]-X[K])*_[0]:X[K]+=(P.fc.v[K]-X[K])*_;P.fh.propType&&(_.length?X=addHueToRGB(X,P.fh.v*_[0]):X=addHueToRGB(X,P.fh.v*_)),P.fs.propType&&(_.length?X=addSaturationToRGB(X,P.fs.v*_[0]):X=addSaturationToRGB(X,P.fs.v*_)),P.fb.propType&&(_.length?X=addBrightnessToRGB(X,P.fb.v*_[0]):X=addBrightnessToRGB(X,P.fb.v*_))}}for(w=0;w<S;w+=1)P=i[w].a,P.p.propType&&(M=i[w].s,_=M.getMult(h[f].anIndexes[w],a.a[w].s.totalChars),this._hasMaskedPath?_.length?o.translate(0,P.p.v[1]*_[0],-P.p.v[2]*_[1]):o.translate(0,P.p.v[1]*_,-P.p.v[2]*_):_.length?o.translate(P.p.v[0]*_[0],P.p.v[1]*_[1],-P.p.v[2]*_[2]):o.translate(P.p.v[0]*_,P.p.v[1]*_,-P.p.v[2]*_));if(e.strokeWidthAnim&&(ee=Z<0?0:Z),e.strokeColorAnim&&(ne="rgb("+Math.round(J[0]*255)+","+Math.round(J[1]*255)+","+Math.round(J[2]*255)+")"),e.fillColorAnim&&e.fc&&(re="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,r[1]*H*.01+u,0),this._pathData.p.v){I=(m.point[1]-y.point[1])/(m.point[0]-y.point[0]);var ke=Math.atan(I)*180/Math.PI;m.point[0]<y.point[0]&&(ke+=180),o.rotate(-ke*Math.PI/180)}o.translate(F,q,0),v-=r[0]*h[f].an*.005,h[f+1]&&V!==h[f+1].ind&&(v+=h[f].an/2,v+=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(h[f].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[h[f].line]),0,0);break;case 2:o.translate(h[f].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[h[f].line])/2,0,0);break}o.translate(0,-e.ls),o.translate($,0,0),o.translate(r[0]*h[f].an*.005,r[1]*H*.01,0),c+=h[f].l+e.tr*.001*e.finalSize}s==="html"?ae=o.toCSS():s==="svg"?ae=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]],fe=Y}l<=f?(R=new LetterProps(fe,ee,ne,re,ae,se),this.renderedLetters.push(R),l+=1,this.lettersChangedFlag=!0):(R=this.renderedLetters[f],this.lettersChangedFlag=R.update(fe,ee,ne,re,ae,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,n,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,n,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,n,r),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,n){var r,i=n.length,a,o="";for(r=0;r<i;r+=1)n[r].ty==="sh"&&(a=n[r].ks.k,o+=buildShapeString(a,a.i.length,!0,e));return o},ITextElement.prototype.updateDocumentData=function(e,n){this.textProperty.updateDocumentData(e,n)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,n,r,i,a){switch(e.ps&&n.translate(e.ps[0],e.ps[1]+e.ascent,0),n.translate(0,-e.ls,0),e.j){case 1:n.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:n.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0);break}n.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,n,r){this.textSpans=[],this.renderType="svg",this.initElement(e,n,r)}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 n=0,r=e.length,i=[],a="";n<r;)e[n]===String.fromCharCode(13)||e[n]===String.fromCharCode(3)?(i.push(a),a=""):a+=e[n],n+=1;return i.push(a),i},SVGTextLottieElement.prototype.buildShapeData=function(e,n){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var i=r.it[r.it.length-1];i.s&&(i.s.k[0]=n,i.s.k[1]=n)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,n,r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var i=this.globalData.fontManager.getFontByName(r.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var a=r.fWeight,o=r.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",a)}this.layerElement.setAttribute("aria-label",r.t);var s=r.l||[],l=!!this.globalData.fontManager.chars;n=s.length;var c,u=this.mHelper,f="",x=this.data.singleShape,h=0,g=0,v=!0,m=r.tr*.001*r.finalSize;if(x&&!l&&!r.sz){var C=this.textContainer,b="start";switch(r.j){case 1:b="end";break;case 2:b="middle";break;default:b="start";break}C.setAttribute("text-anchor",b),C.setAttribute("letter-spacing",m);var d=this.buildTextContents(r.finalText);for(n=d.length,g=r.ps?r.ps[1]+r.ascent:0,e=0;e<n;e+=1)c=this.textSpans[e].span||createNS("tspan"),c.textContent=d[e],c.setAttribute("x",0),c.setAttribute("y",g),c.style.display="inherit",C.appendChild(c),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=c,g+=r.finalLineHeight;this.layerElement.appendChild(C)}else{var p=this.textSpans.length,y;for(e=0;e<n;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!x||e===0){if(c=p>e?this.textSpans[e].span:createNS(l?"g":"text"),p<=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(),x&&(s[e].n&&(h=-m,g+=r.yOffset,g+=v?1:0,v=!1),this.applyTextPropertiesToMatrix(r,u,s[e].line,h,g),h+=s[e].l||0,h+=m),l){y=this.globalData.fontManager.getCharData(r.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily);var k;if(y.t===1)k=new SVGCompElement(y.data,this.globalData,this);else{var A=emptyShapeData;y.data&&y.data.shapes&&(A=this.buildShapeData(y.data,r.finalSize)),k=new SVGShapeElement(A,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),y.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else x&&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")}x&&c&&c.setAttribute("d",f)}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,n=this.textSpans.length,r;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<n;e+=1)r=this.textSpans[e].glyph,r&&(r.prepareFrame(this.comp.renderedFrame-this.data.st),r._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,n,r=this.textAnimator.renderedLetters,i=this.textProperty.currentData.l;n=i.length;var a,o,s;for(e=0;e<n;e+=1)i[e].n||(a=r[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,n,r){this.initElement(e,n,r)}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,n,r){this.initFrame(),this.initBaseData(e,n,r),this.initFrame(),this.initTransform(e,n,r),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 n=this.globalData.defs;this.setupGlobalData(e,n),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=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();r.setAttribute("id",a),r.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),n.appendChild(r),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,n=this.layers?this.layers.length:0;for(e=0;e<n;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 n=0,r=this.layers.length;for(n=0;n<r;n+=1)if(this.layers[n].ind===e)return n;return-1},SVGRendererBase.prototype.buildItem=function(e){var n=this.elements;if(!(n[e]||this.layers[e].ty===99)){n[e]=!0;var r=this.createItem(this.layers[e]);if(n[e]=r,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,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(r);else{var a=n[i],o=a.getMatte(this.layers[e].tt);r.setMatte(o)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var n=0,r=this.elements.length;n<r;){if(this.elements[n]===e){var i="tp"in e.data?this.findIndexByInd(e.data.tp):n-1,a=this.elements[i],o=a.getMatte(this.layers[n].tt);e.setMatte(o);break}n+=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 n,r=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf)for(n=0;n<r;n+=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,n){var r=e.getBaseElement();if(r){for(var i=0,a;i<n;)this.elements[i]&&this.elements[i]!==!0&&this.elements[i].getBaseElement()&&(a=this.elements[i].getBaseElement()),i+=1;a?this.layerElement.insertBefore(r,a):this.layerElement.appendChild(r)}},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,n,r){this.initFrame(),this.initBaseData(e,n,r),this.initTransform(e,n,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!n.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 n=this.tm.v;n===this.data.op&&(n=this.data.op-1),this.renderedFrame=n}var r,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,n=this.layers.length;for(e=0;e<n;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,n=this.layers.length;for(e=0;e<n;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,n,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,n,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,n.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,n){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(n&&n.title){var i=createNS("title"),a=createElementID();i.setAttribute("id",a),i.textContent=n.title,this.svgElement.appendChild(i),r+=a}if(n&&n.description){var o=createNS("desc"),s=createElementID();o.setAttribute("id",s),o.textContent=n.description,this.svgElement.appendChild(o),r+=" "+s}r&&this.svgElement.setAttribute("aria-labelledby",r);var l=createNS("defs");this.svgElement.appendChild(l);var c=createNS("g");this.svgElement.appendChild(c),this.layerElement=c,this.renderConfig={preserveAspectRatio:n&&n.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:n&&n.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:n&&n.contentVisibility||"visible",progressiveLoad:n&&n.progressiveLoad||!1,hideOnTransparent:!(n&&n.hideOnTransparent===!1),viewBoxOnly:n&&n.viewBoxOnly||!1,viewBoxSize:n&&n.viewBoxSize||!1,className:n&&n.className||"",id:n&&n.id||"",focusable:n&&n.focusable,filterSize:{width:n&&n.filterSize&&n.filterSize.width||"100%",height:n&&n.filterSize&&n.filterSize.height||"100%",x:n&&n.filterSize&&n.filterSize.x||"0%",y:n&&n.filterSize&&n.filterSize.y||"0%"},width:n&&n.width,height:n&&n.height,runExpressions:!n||n.runExpressions===void 0||n.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(n){var r,i=n.length,a="_";for(r=0;r<i;r+=1)a+=n[r].transform.key+"_";var o=this.sequences[a];return o||(o={transforms:[].concat(n),finalTransform:new Matrix,_mdf:!1},this.sequences[a]=o,this.sequenceList.push(o)),o},processSequence:function(n,r){for(var i=0,a=n.transforms.length,o=r;i<a&&!r;){if(n.transforms[i].transform.mProps._mdf){o=!0;break}i+=1}if(o)for(n.finalTransform.reset(),i=a-1;i>=0;i-=1)n.finalTransform.multiply(n.transforms[i].transform.mProps.v);n._mdf=o},processSequences:function(n){var r,i=this.sequenceList.length;for(r=0;r<i;r+=1)this.processSequence(this.sequenceList[r],n)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var n="__lottie_element_luma_buffer",r=null,i=null,a=null;function o(){var c=createNS("svg"),u=createNS("filter"),f=createNS("feColorMatrix");return u.setAttribute("id",n),f.setAttribute("type","matrix"),f.setAttribute("color-interpolation-filters","sRGB"),f.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(f),c.appendChild(u),c.setAttribute("id",n+"_svg"),featureSupport.svgLumaHidden&&(c.style.display="none"),c}function s(){r||(a=o(),document.body.appendChild(a),r=createTag("canvas"),i=r.getContext("2d"),i.filter="url(#"+n+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}function l(c){return r||s(),r.width=c.width,r.height=c.height,i.filter="url(#"+n+")",r}return{load:s,get:l}};function createCanvas(e,n){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,n);var r=createTag("canvas");return r.width=e,r.height=n,r}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(e){var n,r=e.data.ef?e.data.ef.length:0;this.filters=[];var i;for(n=0;n<r;n+=1){i=null;var a=e.data.ef[n].ty;if(registeredEffects[a]){var o=registeredEffects[a].effect;i=new o(e.effectsManager.effectElements[n],e)}i&&this.filters.push(i)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var n,r=this.filters.length;for(n=0;n<r;n+=1)this.filters[n].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var n,r=this.filters.length,i=[];for(n=0;n<r;n+=1)this.filters[n].type===e&&i.push(this.filters[n]);return i};function registerEffect(e,n){registeredEffects[e]={effect:n}}function CVMaskElement(e,n){this.data=e,this.element=n,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r,i=this.masksProperties.length,a=!1;for(r=0;r<i;r+=1)this.masksProperties[r].mode!=="n"&&(a=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=a,a&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,n=this.element.canvasContext,r,i=this.masksProperties.length,a,o,s;for(n.beginPath(),r=0;r<i;r+=1)if(this.masksProperties[r].mode!=="n"){this.masksProperties[r].inv&&(n.moveTo(0,0),n.lineTo(this.element.globalData.compSize.w,0),n.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),n.lineTo(0,this.element.globalData.compSize.h),n.lineTo(0,0)),s=this.viewData[r].v,a=e.applyToPointArray(s.v[0][0],s.v[0][1],0),n.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]),n.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]),n.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5])}this.element.globalData.renderer.save(!0),n.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 n=this.globalData.canvasContext,r=assetLoader.createCanvas(n.canvas.width,n.canvas.height);this.buffers.push(r);var i=assetLoader.createCanvas(n.canvas.width,n.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 n=this.globalData;if(n.blendMode!==this.data.bm){n.blendMode=this.data.bm;var r=getBlendMode(this.data.bm);n.canvasContext.globalCompositeOperation=r}},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(n){n.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 n=this.buffers[0],r=n.getContext("2d");this.clearCanvas(r),r.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 n=this.buffers[1],r=n.getContext("2d");this.clearCanvas(r),r.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(n,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(n){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!n)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var r=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(r),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(r),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,n,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var a=4;n.ty==="rc"?a=5:n.ty==="el"?a=6:n.ty==="sr"&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(e,n,a,e);var o,s=r.length,l;for(o=0;o<s;o+=1)r[o].closed||(l={transforms:i.addTransformSequence(r[o].transforms),trNodes:[]},this.styledShapes.push(l),r[o].elements.push(l))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,n,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,n,r)}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,n){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(n),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||(r.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(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],e.lj==1&&(r.ml=e.ml),i.w=PropertyFactory.getProp(this,e.w,0,null,this),i.w.k||(r.wi=i.w.v),e.d){var a=new DashProperty(this,e.d,"canvas",this);i.d=a,i.d.k||(r.da=i.d.dashArray,r.do=i.d.dashoffset[0])}}else r.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(r),i.style=r,i},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var n={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 n},CVShapeElement.prototype.createShapeElement=function(e){var n=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(n),this.addShapeToModifiers(n),n},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,n=this.itemsData.length;for(e=0;e<n;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),n=this.dynamicProperties.length,e=0;e<n;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var n,r=this.stylesList.length;for(n=0;n<r;n+=1)this.stylesList[n].closed||this.stylesList[n].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,n=this.stylesList.length;for(e=0;e<n;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var n,r=e.length;for(n=0;n<r;n+=1)e[n].closed=!0},CVShapeElement.prototype.searchShapes=function(e,n,r,i,a){var o,s=e.length-1,l,c,u=[],f=[],x,h,g,v=[].concat(a);for(o=s;o>=0;o-=1){if(x=this.searchProcessedElement(e[o]),x?n[o]=r[x-1]:e[o]._shouldRender=i,e[o].ty==="fl"||e[o].ty==="st"||e[o].ty==="gf"||e[o].ty==="gs")x?n[o].style.closed=!1:n[o]=this.createStyleElement(e[o],v),u.push(n[o].style);else if(e[o].ty==="gr"){if(!x)n[o]=this.createGroupElement(e[o]);else for(c=n[o].it.length,l=0;l<c;l+=1)n[o].prevViewData[l]=n[o].it[l];this.searchShapes(e[o].it,n[o].it,n[o].prevViewData,i,v)}else e[o].ty==="tr"?(x||(g=this.createTransformElement(e[o]),n[o]=g),v.push(n[o]),this.addTransformToStyleList(n[o])):e[o].ty==="sh"||e[o].ty==="rc"||e[o].ty==="el"||e[o].ty==="sr"?x||(n[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"?(x?(h=n[o],h.closed=!1):(h=ShapeModifiers.getModifier(e[o].ty),h.init(this,e[o]),n[o]=h,this.shapeModifiers.push(h)),f.push(h)):e[o].ty==="rp"&&(x?(h=n[o],h.closed=!0):(h=ShapeModifiers.getModifier(e[o].ty),n[o]=h,h.init(this,e,o,n),this.shapeModifiers.push(h),i=!1),f.push(h));this.addProcessedElement(e[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),s=f.length,o=0;o<s;o+=1)f[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,n){(e._opMdf||n.op._mdf||this._isFirstFrame)&&(n.opacity=e.opacity,n.opacity*=n.op.v,n._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,n=this.stylesList.length,r,i,a,o,s,l,c=this.globalData.renderer,u=this.globalData.canvasContext,f,x;for(e=0;e<n;e+=1)if(x=this.stylesList[e],f=x.type,!((f==="st"||f==="gs")&&x.wi===0||!x.data._shouldRender||x.coOp===0||this.globalData.currentGlobalAlpha===0)){for(c.save(),s=x.elements,f==="st"||f==="gs"?(c.ctxStrokeStyle(f==="st"?x.co:x.grd),c.ctxLineWidth(x.wi),c.ctxLineCap(x.lc),c.ctxLineJoin(x.lj),c.ctxMiterLimit(x.ml||0)):c.ctxFillStyle(f==="fl"?x.co:x.grd),c.ctxOpacity(x.coOp),f!=="st"&&f!=="gs"&&u.beginPath(),c.ctxTransform(x.preTransforms.finalTransform.props),i=s.length,r=0;r<i;r+=1){for((f==="st"||f==="gs")&&(u.beginPath(),x.da&&(u.setLineDash(x.da),u.lineDashOffset=x.do)),l=s[r].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();(f==="st"||f==="gs")&&(c.ctxStroke(),x.da&&u.setLineDash(this.dashResetter))}f!=="st"&&f!=="gs"&&this.globalData.renderer.ctxFill(x.r),c.restore()}},CVShapeElement.prototype.renderShape=function(e,n,r,i){var a,o=n.length-1,s;for(s=e,a=o;a>=0;a-=1)n[a].ty==="tr"?(s=r[a].transform,this.renderShapeTransform(e,s)):n[a].ty==="sh"||n[a].ty==="el"||n[a].ty==="rc"||n[a].ty==="sr"?this.renderPath(n[a],r[a]):n[a].ty==="fl"?this.renderFill(n[a],r[a],s):n[a].ty==="st"?this.renderStroke(n[a],r[a],s):n[a].ty==="gf"||n[a].ty==="gs"?this.renderGradientFill(n[a],r[a],s):n[a].ty==="gr"?this.renderShape(s,n[a].it,r[a].it):n[a].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,n){if(this._isFirstFrame||n._mdf||e.transforms._mdf){var r=e.trNodes,i=n.paths,a,o,s,l=i._length;r.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&&r.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),r.push({t:"c",pts:c.applyToTriplePoints(u.o[a-1],u.i[a],u.v[a])});o===1&&r.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),u.c&&o&&(r.push({t:"c",pts:c.applyToTriplePoints(u.o[a-1],u.i[0],u.v[0])}),r.push({t:"z"}))}}e.trNodes=r}},CVShapeElement.prototype.renderPath=function(e,n){if(e.hd!==!0&&e._shouldRender){var r,i=n.styledShapes.length;for(r=0;r<i;r+=1)this.renderStyledShape(n.styledShapes[r],n.sh)}},CVShapeElement.prototype.renderFill=function(e,n,r){var i=n.style;(n.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")"),(n.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=n.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,n,r){var i=n.style,a;if(!i.grd||n.g._mdf||n.s._mdf||n.e._mdf||e.t!==1&&(n.h._mdf||n.a._mdf)){var o=this.globalData.canvasContext,s=n.s.v,l=n.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]),f=n.h.v;f>=1?f=.99:f<=-1&&(f=-.99);var x=c*f,h=Math.cos(u+n.a.v)*x+s[0],g=Math.sin(u+n.a.v)*x+s[1];a=o.createRadialGradient(h,g,0,s[0],s[1],c)}var v,m=e.g.p,C=n.g.c,b=1;for(v=0;v<m;v+=1)n.g._hasOpacity&&n.g._collapsable&&(b=n.g.o[v*2+1]),a.addColorStop(C[v*4]/100,"rgba("+C[v*4+1]+","+C[v*4+2]+","+C[v*4+3]+","+b+")");i.grd=a}i.coOp=n.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,n,r){var i=n.style,a=n.d;a&&(a._mdf||this._isFirstFrame)&&(i.da=a.dashArray,i.do=a.dashoffset[0]),(n.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")"),(n.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=n.o.v*r.opacity),(n.w._mdf||this._isFirstFrame)&&(i.wi=n.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,n,r){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,n,r)}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 n=!1;e.fc?(n=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=n;var r=!1;e.sc&&(r=!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=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,o=e.finalText.length;var c,u,f,x,h,g,v,m,C,b,d=this.data.singleShape,p=e.tr*.001*e.finalSize,y=0,E=0,k=!0,A=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(),d&&s[a].n&&(y=-p,E+=e.yOffset,E+=k?1:0,k=!1),h=u.shapes?u.shapes[0].it:[],v=h.length,l.scale(e.finalSize/100,e.finalSize/100),d&&this.applyTextPropertiesToMatrix(e,l,s[a].line,y,E),C=createSizedArray(v-1);var T=0;for(g=0;g<v;g+=1)if(h[g].ty==="sh"){for(x=h[g].ks.k.i.length,m=h[g].ks.k,b=[],f=1;f<x;f+=1)f===1&&b.push(l.applyToX(m.v[0][0],m.v[0][1],0),l.applyToY(m.v[0][0],m.v[0][1],0)),b.push(l.applyToX(m.o[f-1][0],m.o[f-1][1],0),l.applyToY(m.o[f-1][0],m.o[f-1][1],0),l.applyToX(m.i[f][0],m.i[f][1],0),l.applyToY(m.i[f][0],m.i[f][1],0),l.applyToX(m.v[f][0],m.v[f][1],0),l.applyToY(m.v[f][0],m.v[f][1],0));b.push(l.applyToX(m.o[f-1][0],m.o[f-1][1],0),l.applyToY(m.o[f-1][0],m.o[f-1][1],0),l.applyToX(m.i[0][0],m.i[0][1],0),l.applyToY(m.i[0][0],m.i[0][1],0),l.applyToX(m.v[0][0],m.v[0][1],0),l.applyToY(m.v[0][0],m.v[0][1],0)),C[T]=b,T+=1}d&&(y+=s[a].l,y+=p),this.textSpans[A]?this.textSpans[A].elem=C:this.textSpans[A]={elem:C},A+=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 n,r,i,a,o,s,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;r=c.length;var u,f=null,x=null,h=null,g,v,m=this.globalData.renderer;for(n=0;n<r;n+=1)if(!c[n].n){if(u=l[n],u&&(m.save(),m.ctxTransform(u.p),m.ctxOpacity(u.o)),this.fill){for(u&&u.fc?f!==u.fc&&(m.ctxFillStyle(u.fc),f=u.fc):f!==this.values.fill&&(f=this.values.fill,m.ctxFillStyle(this.values.fill)),g=this.textSpans[n].elem,a=g.length,this.globalData.canvasContext.beginPath(),i=0;i<a;i+=1)for(v=g[i],s=v.length,this.globalData.canvasContext.moveTo(v[0],v[1]),o=2;o<s;o+=6)this.globalData.canvasContext.bezierCurveTo(v[o],v[o+1],v[o+2],v[o+3],v[o+4],v[o+5]);this.globalData.canvasContext.closePath(),m.ctxFill()}if(this.stroke){for(u&&u.sw?h!==u.sw&&(h=u.sw,m.ctxLineWidth(u.sw)):h!==this.values.sWidth&&(h=this.values.sWidth,m.ctxLineWidth(this.values.sWidth)),u&&u.sc?x!==u.sc&&(x=u.sc,m.ctxStrokeStyle(u.sc)):x!==this.values.stroke&&(x=this.values.stroke,m.ctxStrokeStyle(this.values.stroke)),g=this.textSpans[n].elem,a=g.length,this.globalData.canvasContext.beginPath(),i=0;i<a;i+=1)for(v=g[i],s=v.length,this.globalData.canvasContext.moveTo(v[0],v[1]),o=2;o<s;o+=6)this.globalData.canvasContext.bezierCurveTo(v[o],v[o+1],v[o+2],v[o+3],v[o+4],v[o+5]);this.globalData.canvasContext.closePath(),m.ctxStroke()}u&&this.globalData.renderer.restore()}};function CVImageElement(e,n,r){this.assetData=n.getAssetData(e.refId),this.img=n.imageLoader.getAsset(this.assetData),this.initElement(e,n,r)}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 n=e.getContext("2d"),r=this.img.width,i=this.img.height,a=r/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=r,l=s/o),n.drawImage(this.img,(r-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,n,r){this.initElement(e,n,r)}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,n,r,i){this.canvasContext.fillRect(e,n,r,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 n=this.animationItem.container.style;n.width="100%",n.height="100%";var r="0px 0px 0px";n.transformOrigin=r,n.mozTransformOrigin=r,n.webkitTransformOrigin=r,n["-webkit-transform"]=r,n.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,n){this.reset();var r,i;e?(r=e,i=n,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*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),f=c.substr(4);a=r/i,o=this.transformCanvas.w/this.transformCanvas.h,o>a&&l==="meet"||o<a&&l==="slice"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(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=(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:u==="xMax"&&(o<a&&l==="meet"||o>a&&l==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,f==="YMid"&&(o>a&&l==="meet"||o<a&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:f==="YMax"&&(o>a&&l==="meet"||o<a&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=r/(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,n=this.layers?this.layers.length:0;for(e=n-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,n){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!n||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||n,this.globalData.projectInterface.currentFrame=e;var r,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var n=this.elements;if(!(n[e]||this.layers[e].ty===99)){var r=this.createItem(this.layers[e],this,this.globalData);n[e]=r,r.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,n=15;for(e=0;e<n;e+=1){var r=new CanvasContext;this.stack[e]=r}this._length=n,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,n=0;for(n=this._length;n<e;n+=1)this.stack[n]=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 n=this.stack[this.cArrPos],r=n.transform,i,a=this.cTr.props;for(i=0;i<16;i+=1)a[i]=r[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(r[0],r[1],r[4],r[5],r[12],r[13]),(e||n.opacity!==-1&&this.currentOpacity!==n.opacity)&&(this.nativeContext.globalAlpha=n.opacity,this.currentOpacity=n.opacity),this.currentFillStyle=n.fillStyle,this.currentStrokeStyle=n.strokeStyle,this.currentLineWidth=n.lineWidth,this.currentLineCap=n.lineCap,this.currentLineJoin=n.lineJoin,this.currentMiterLimit=n.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var n=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r=this.stack[this.cArrPos],i;for(i=0;i<16;i+=1)r.transform[i]=n[i];this.cArrPos+=1;var a=this.stack[this.cArrPos];a.opacity=r.opacity,a.fillStyle=r.fillStyle,a.strokeStyle=r.strokeStyle,a.lineWidth=r.lineWidth,a.lineCap=r.lineCap,a.lineJoin=r.lineJoin,a.miterLimit=r.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 n=this.cTr;this.transformMat.multiply(n),n.cloneFromProps(this.transformMat.props);var r=n.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var n=this.stack[this.cArrPos].opacity;n*=e<0?0:e,this.stack[this.cArrPos].opacity!==n&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=n)},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,n,r,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,n,r,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,n,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,n,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,n.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 n,r=this.layers.length;for(n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame()},CVCompElement.prototype.destroy=function(){var e,n=this.layers.length;for(e=n-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,n){this.animationItem=e,this.renderConfig={clearCanvas:n&&n.clearCanvas!==void 0?n.clearCanvas:!0,context:n&&n.context||null,progressiveLoad:n&&n.progressiveLoad||!1,preserveAspectRatio:n&&n.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:n&&n.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:n&&n.contentVisibility||"visible",className:n&&n.className||"",id:n&&n.id||"",runExpressions:!n||n.runExpressions===void 0||n.runExpressions},this.renderConfig.dpr=n&&n.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=n&&n.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 n=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var r=this.finalTransform.mat.toCSS();n.transform=r,n.webkitTransform=r}this.finalTransform._opMdf&&(n.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,n,r){this.initElement(e,n,r)}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,n,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,n,r),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 n=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",n.w),e.setAttribute("height",n.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,n){var r,i=e.length;for(r=0;r<i;r+=1)n=e[r].mProps.v.applyToPointArray(n[0],n[1],0);return n},HShapeElement.prototype.calculateShapeBoundingBox=function(e,n){var r=e.sh.v,i=e.transformers,a,o=r._length,s,l,c,u;if(!(o<=1)){for(a=0;a<o-1;a+=1)s=this.getTransformedPoint(i,r.v[a]),l=this.getTransformedPoint(i,r.o[a]),c=this.getTransformedPoint(i,r.i[a+1]),u=this.getTransformedPoint(i,r.v[a+1]),this.checkBounds(s,l,c,u,n);r.c&&(s=this.getTransformedPoint(i,r.v[a]),l=this.getTransformedPoint(i,r.o[a]),c=this.getTransformedPoint(i,r.i[0]),u=this.getTransformedPoint(i,r.v[0]),this.checkBounds(s,l,c,u,n))}},HShapeElement.prototype.checkBounds=function(e,n,r,i,a){this.getBoundsOfCurve(e,n,r,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,n,r,i){for(var a=[[e[0],i[0]],[e[1],i[1]]],o,s,l,c,u,f,x,h=0;h<2;++h)s=6*e[h]-12*n[h]+6*r[h],o=-3*e[h]+9*n[h]-9*r[h]+3*i[h],l=3*n[h]-3*e[h],s|=0,o|=0,l|=0,o===0&&s===0||(o===0?(c=-l/s,c>0&&c<1&&a[h].push(this.calculateF(c,e,n,r,i,h))):(u=s*s-4*l*o,u>=0&&(f=(-s+bmSqrt(u))/(2*o),f>0&&f<1&&a[h].push(this.calculateF(f,e,n,r,i,h)),x=(-s-bmSqrt(u))/(2*o),x>0&&x<1&&a[h].push(this.calculateF(x,e,n,r,i,h)))));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,n,r,i,a,o){return bmPow(1-e,3)*n[o]+3*bmPow(1-e,2)*e*r[o]+3*(1-e)*bmPow(e,2)*i[o]+bmPow(e,3)*a[o]},HShapeElement.prototype.calculateBoundingBox=function(e,n){var r,i=e.length;for(r=0;r<i;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],n):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,n):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,n)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,n){var r=0;if(e.keyframes){for(var i=0;i<e.keyframes.length;i+=1){var a=e.keyframes[i].s;a>r&&(r=a)}r*=e.mult}else r=e.v*e.mult;n.x-=r,n.xMax+=r,n.y-=r,n.yMax+=r},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,n=999999;if(e.x=n,e.xMax=-n,e.y=n,e.yMax=-n,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 r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||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,n,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,n,r)}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 n=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";n.fill=r,n.color=r,e.sc&&(n.stroke=this.buildColor(e.sc),n.strokeWidth=e.sw+"px");var i=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(n.fontSize=e.finalSize+"px",n.lineHeight=e.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{n.fontFamily=i.fFamily;var a=e.fWeight,o=e.fStyle;n.fontStyle=o,n.fontWeight=a}var s,l,c=e.l;l=c.length;var u,f,x,h=this.mHelper,g,v="",m=0;for(s=0;s<l;s+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?u=this.textPaths[m]:(u=createNS("path"),u.setAttribute("stroke-linecap",lineCapEnum[1]),u.setAttribute("stroke-linejoin",lineJoinEnum[2]),u.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?(f=this.textSpans[m],x=f.children[0]):(f=createTag("div"),f.style.lineHeight=0,x=createNS("svg"),x.appendChild(u),styleDiv(f)))):this.isMasked?u=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(f=this.textSpans[m],u=this.textPaths[m]):(f=createTag("span"),styleDiv(f),u=createTag("span"),styleDiv(u),f.appendChild(u)),this.globalData.fontManager.chars){var C=this.globalData.fontManager.getCharData(e.finalText[s],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),b;if(C?b=C.data:b=null,h.reset(),b&&b.shapes&&b.shapes.length&&(g=b.shapes[0].it,h.scale(e.finalSize/100,e.finalSize/100),v=this.createPathShape(h,g),u.setAttribute("d",v)),this.isMasked)this.innerElem.appendChild(u);else{if(this.innerElem.appendChild(f),b&&b.shapes){document.body.appendChild(x);var d=x.getBBox();x.setAttribute("width",d.width+2),x.setAttribute("height",d.height+2),x.setAttribute("viewBox",d.x-1+" "+(d.y-1)+" "+(d.width+2)+" "+(d.height+2));var p=x.style,y="translate("+(d.x-1)+"px,"+(d.y-1)+"px)";p.transform=y,p.webkitTransform=y,c[s].yOffset=d.y-1}else x.setAttribute("width",1),x.setAttribute("height",1);f.appendChild(x)}}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(f);var E=u.style,k="translate3d(0,"+-e.finalSize/1.2+"px,0)";E.transform=k,E.webkitTransform=k}this.isMasked?this.textSpans[m]=u:this.textSpans[m]=f,this.textSpans[m].style.display="block",this.textPaths[m]=u,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=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 n="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=n,e.webkitTransform=n}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var r,i,a=0,o=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;i=s.length;var l,c,u;for(r=0;r<i;r+=1)s[r].n?a+=1:(c=this.textSpans[r],u=this.textPaths[r],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 f=this.innerElem.getBBox();this.currentBBox.w!==f.width&&(this.currentBBox.w=f.width,this.svgElement.setAttribute("width",f.width)),this.currentBBox.h!==f.height&&(this.currentBBox.h=f.height,this.svgElement.setAttribute("height",f.height));var x=1;if(this.currentBBox.w!==f.width+x*2||this.currentBBox.h!==f.height+x*2||this.currentBBox.x!==f.x-x||this.currentBBox.y!==f.y-x){this.currentBBox.w=f.width+x*2,this.currentBBox.h=f.height+x*2,this.currentBBox.x=f.x-x,this.currentBBox.y=f.y-x,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var h="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=h,e.webkitTransform=h}}}};function HCameraElement(e,n,r){this.initFrame(),this.initBaseData(e,n,r),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,n=this.comp.threeDElements.length,r,i,a;for(e=0;e<n;e+=1)if(r=this.comp.threeDElements[e],r.type==="3d"){i=r.perspectiveElem.style,a=r.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,n,r;if(this.hierarchy)for(r=this.hierarchy.length,n=0;n<r;n+=1)e=this.hierarchy[n].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(r=this.hierarchy.length-1,n=r;n>=0;n-=1){var i=this.hierarchy[n].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 f=!this._prevMat.equals(this.mat);if((f||this.pe._mdf)&&this.comp.threeDElements){r=this.comp.threeDElements.length;var x,h,g;for(n=0;n<r;n+=1)if(x=this.comp.threeDElements[n],x.type==="3d"){if(f){var v=this.mat.toCSS();g=x.container.style,g.transform=v,g.webkitTransform=v}this.pe._mdf&&(h=x.perspectiveElem.style,h.perspective=this.pe.v+"px",h.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,n,r){this.assetData=n.getAssetData(e.refId),this.initElement(e,n,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),n=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(n),n.crossOrigin="anonymous",n.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,n){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:n&&n.className||"",imagePreserveAspectRatio:n&&n.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(n&&n.hideOnTransparent===!1),filterSize:{width:n&&n.filterSize&&n.filterSize.width||"400%",height:n&&n.filterSize&&n.filterSize.height||"400%",x:n&&n.filterSize&&n.filterSize.x||"-100%",y:n&&n.filterSize&&n.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,n){var r=e.getBaseElement();if(r){var i=this.layers[n];if(!i.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(r,n);else{for(var a=0,o,s,l;a<n;)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(r,o):(!i.ddd||!this.supports3d)&&this.layerElement.appendChild(r)}else this.addTo3dContainer(r,n)}},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 n=0,r=this.threeDElements.length;n<r;){if(this.threeDElements[n].startPos<=e&&this.threeDElements[n].endPos>=e)return this.threeDElements[n].perspectiveElem;n+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,n){var r=createTag("div"),i,a;styleDiv(r);var o=createTag("div");if(styleDiv(o),n==="3d"){i=r.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}r.appendChild(o);var c={container:o,perspectiveElem:r,startPos:e,endPos:e,type:n};return this.threeDElements.push(c),c},HybridRendererBase.prototype.build3dContainers=function(){var e,n=this.layers.length,r,i="";for(e=0;e<n;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(i!=="3d"&&(i="3d",r=this.createThreeDContainer(e,"3d")),r.endPos=Math.max(r.endPos,e)):(i!=="2d"&&(i="2d",r=this.createThreeDContainer(e,"2d")),r.endPos=Math.max(r.endPos,e));for(n=this.threeDElements.length,e=n-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,n){for(var r=0,i=this.threeDElements.length;r<i;){if(n<=this.threeDElements[r].endPos){for(var a=this.threeDElements[r].startPos,o;a<n;)this.elements[a]&&this.elements[a].getBaseElement&&(o=this.elements[a].getBaseElement()),a+=1;o?this.threeDElements[r].container.insertBefore(e,o):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var n=createTag("div"),r=this.animationItem.wrapper,i=n.style;i.width=e.w+"px",i.height=e.h+"px",this.resizerElem=n,styleDiv(n),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&n.setAttribute("class",this.renderConfig.className),r.appendChild(n),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,n=this.layers?this.layers.length:0;for(e=0;e<n;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,n=this.animationItem.wrapper.offsetHeight,r=e/n,i=this.globalData.compSize.w/this.globalData.compSize.h,a,o,s,l;i>r?(a=e/this.globalData.compSize.w,o=e/this.globalData.compSize.w,s=0,l=(n-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(a=n/this.globalData.compSize.h,o=n/this.globalData.compSize.h,s=(e-this.globalData.compSize.w*(n/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,n=this.globalData.compSize.h,r,i=this.threeDElements.length;for(r=0;r<i;r+=1){var a=this.threeDElements[r].perspectiveElem.style;a.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(n,2))+"px",a.perspective=a.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var n,r=e.length,i=createTag("div");for(n=0;n<r;n+=1)if(e[n].xt){var a=this.createComp(e[n],i,this.globalData.comp,null);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}};function HCompElement(e,n,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,n,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,n.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,n){for(var r=0,i;r<n;)this.elements[r]&&this.elements[r].getBaseElement&&(i=this.elements[r].getBaseElement()),r+=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,n){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:n&&n.className||"",imagePreserveAspectRatio:n&&n.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(n&&n.hideOnTransparent===!1),filterSize:{width:n&&n.filterSize&&n.filterSize.width||"400%",height:n&&n.filterSize&&n.filterSize.height||"400%",x:n&&n.filterSize&&n.filterSize.x||"-100%",y:n&&n.filterSize&&n.filterSize.y||"-100%"},runExpressions:!n||n.runExpressions===void 0||n.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 n(r){for(var i=0,a=e.layers.length;i<a;){if(e.layers[i].nm===r||e.layers[i].ind===r)return e.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(n,"_name",{value:e.data.nm}),n.layer=n,n.pixelAspect=1,n.height=e.data.h||e.globalData.compSize.h,n.width=e.data.w||e.globalData.compSize.w,n.pixelAspect=1,n.frameDuration=1/e.globalData.frameRate,n.displayStartTime=0,n.numLayers=e.layers.length,n}}();function _typeof$2(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(r){return typeof r}:_typeof$2=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$2(e)}function seedRandom(e,n){var r=this,i=256,a=6,o=52,s="random",l=n.pow(i,a),c=n.pow(2,o),u=c*2,f=i-1,x;function h(p,y,E){var k=[];y=y===!0?{entropy:!0}:y||{};var A=C(m(y.entropy?[p,d(e)]:p===null?b():p,3),k),T=new g(k),D=function(){for(var B=T.g(a),O=l,L=0;B<c;)B=(B+L)*i,O*=i,L=T.g(1);for(;B>=u;)B/=2,O/=2,L>>>=1;return(B+L)/O};return D.int32=function(){return T.g(4)|0},D.quick=function(){return T.g(4)/4294967296},D.double=D,C(d(T.S),e),(y.pass||E||function(I,B,O,L){return L&&(L.S&&v(L,T),I.state=function(){return v(T,{})}),O?(n[s]=I,B):I})(D,A,"global"in y?y.global:this==n,y.state)}n["seed"+s]=h;function g(p){var y,E=p.length,k=this,A=0,T=k.i=k.j=0,D=k.S=[];for(E||(p=[E++]);A<i;)D[A]=A++;for(A=0;A<i;A++)D[A]=D[T=f&T+p[A%E]+(y=D[A])],D[T]=y;k.g=function(I){for(var B,O=0,L=k.i,H=k.j,N=k.S;I--;)B=N[L=f&L+1],O=O*i+N[f&(N[L]=N[H=f&H+B])+(N[H]=B)];return k.i=L,k.j=H,O}}function v(p,y){return y.i=p.i,y.j=p.j,y.S=p.S.slice(),y}function m(p,y){var E=[],k=_typeof$2(p),A;if(y&&k=="object")for(A in p)try{E.push(m(p[A],y-1))}catch{}return E.length?E:k=="string"?p:p+"\0"}function C(p,y){for(var E=p+"",k,A=0;A<E.length;)y[f&A]=f&(k^=y[f&A]*19)+E.charCodeAt(A++);return d(y)}function b(){try{var p=new Uint8Array(i);return(r.crypto||r.msCrypto).getRandomValues(p),d(p)}catch{var y=r.navigator,E=y&&y.plugins;return[+new Date,r,E,r.screen,d(e)]}}function d(p){return String.fromCharCode.apply(0,p)}C(n.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(r){return typeof r}:_typeof$1=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_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,n){return e==="number"||n instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var n=_typeof$1(e);if(n==="number"||e instanceof Number||n==="boolean")return-e;if($bm_isInstanceOfArray(e)){var r,i=e.length,a=[];for(r=0;r<i;r+=1)a[r]=-e[r];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,n){var r=_typeof$1(e),i=_typeof$1(n);if(isNumerable(r,e)&&isNumerable(i,n)||r==="string"||i==="string")return e+n;if($bm_isInstanceOfArray(e)&&isNumerable(i,n))return e=e.slice(0),e[0]+=n,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(n))return n=n.slice(0),n[0]=e+n[0],n;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(n)){for(var a=0,o=e.length,s=n.length,l=[];a<o||a<s;)(typeof e[a]=="number"||e[a]instanceof Number)&&(typeof n[a]=="number"||n[a]instanceof Number)?l[a]=e[a]+n[a]:l[a]=n[a]===void 0?e[a]:e[a]||n[a],a+=1;return l}return 0}var add=sum;function sub(e,n){var r=_typeof$1(e),i=_typeof$1(n);if(isNumerable(r,e)&&isNumerable(i,n))return r==="string"&&(e=parseInt(e,10)),i==="string"&&(n=parseInt(n,10)),e-n;if($bm_isInstanceOfArray(e)&&isNumerable(i,n))return e=e.slice(0),e[0]-=n,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(n))return n=n.slice(0),n[0]=e-n[0],n;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(n)){for(var a=0,o=e.length,s=n.length,l=[];a<o||a<s;)(typeof e[a]=="number"||e[a]instanceof Number)&&(typeof n[a]=="number"||n[a]instanceof Number)?l[a]=e[a]-n[a]:l[a]=n[a]===void 0?e[a]:e[a]||n[a],a+=1;return l}return 0}function mul(e,n){var r=_typeof$1(e),i=_typeof$1(n),a;if(isNumerable(r,e)&&isNumerable(i,n))return e*n;var o,s;if($bm_isInstanceOfArray(e)&&isNumerable(i,n)){for(s=e.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e[o]*n;return a}if(isNumerable(r,e)&&$bm_isInstanceOfArray(n)){for(s=n.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e*n[o];return a}return 0}function div(e,n){var r=_typeof$1(e),i=_typeof$1(n),a;if(isNumerable(r,e)&&isNumerable(i,n))return e/n;var o,s;if($bm_isInstanceOfArray(e)&&isNumerable(i,n)){for(s=e.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e[o]/n;return a}if(isNumerable(r,e)&&$bm_isInstanceOfArray(n)){for(s=n.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e/n[o];return a}return 0}function mod(e,n){return typeof e=="string"&&(e=parseInt(e,10)),typeof n=="string"&&(n=parseInt(n,10)),e%n}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,n,r){if(n>r){var i=r;r=n,n=i}return Math.min(Math.max(e,n),r)}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,n){if(typeof e=="number"||e instanceof Number)return n=n||0,Math.abs(e-n);n||(n=helperLengthArray);var r,i=Math.min(e.length,n.length),a=0;for(r=0;r<i;r+=1)a+=Math.pow(n[r]-e[r],2);return Math.sqrt(a)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var n=e[0],r=e[1],i=e[2],a=Math.max(n,r,i),o=Math.min(n,r,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 n:s=(r-i)/u+(r<i?6:0);break;case r:s=(i-n)/u+2;break;case i:s=(n-r)/u+4;break}s/=6}return[s,l,c,e[3]]}function hue2rgb(e,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(n-e)*6*r:r<1/2?n:r<2/3?e+(n-e)*(2/3-r)*6:e}function hslToRgb(e){var n=e[0],r=e[1],i=e[2],a,o,s;if(r===0)a=i,s=i,o=i;else{var l=i<.5?i*(1+r):i+r-i*r,c=2*i-l;a=hue2rgb(c,l,n+1/3),o=hue2rgb(c,l,n),s=hue2rgb(c,l,n-1/3)}return[a,o,s,e[3]]}function linear(e,n,r,i,a){if((i===void 0||a===void 0)&&(i=n,a=r,n=0,r=1),r<n){var o=r;r=n,n=o}if(e<=n)return i;if(e>=r)return a;var s=r===n?0:(e-n)/(r-n);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,n){if(n===void 0&&(e===void 0?(e=0,n=1):(n=e,e=void 0)),n.length){var r,i=n.length;e||(e=createTypedArray("float32",i));var a=createTypedArray("float32",i),o=BMMath.random();for(r=0;r<i;r+=1)a[r]=e[r]+o*(n[r]-e[r]);return a}e===void 0&&(e=0);var s=BMMath.random();return e+s*(n-e)}function createPath(e,n,r,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=n&&n[a]?n[a]:l,u=r&&r[a]?r[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(n,r){var i,a,o=this.pv.length?this.pv.length:1,s=createTypedArray("float32",o);n=5;var l=Math.floor(time*n);for(i=0,a=0;i<l;){for(a=0;a<o;a+=1)s[a]+=-r+r*2*BMMath.random();i+=1}var c=time*n,u=c-Math.floor(c),f=createTypedArray("float32",o);if(o>1){for(a=0;a<o;a+=1)f[a]=this.pv[a]+s[a]+(-r+r*2*BMMath.random())*u;return f}return this.pv+s[0]+(-r+r*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,n){return loopIn(e,n,!0)}function loopOutDuration(e,n){return loopOut(e,n,!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,n){var r=[n[0]-e[0],n[1]-e[1],n[2]-e[2]],i=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads,a=-Math.atan2(r[1],r[2])/degToRads;return[a,i,0]}function easeOut(e,n,r,i,a){return applyEase(easeOutBez,e,n,r,i,a)}function easeIn(e,n,r,i,a){return applyEase(easeInBez,e,n,r,i,a)}function ease(e,n,r,i,a){return applyEase(easeInOutBez,e,n,r,i,a)}function applyEase(e,n,r,i,a,o){a===void 0?(a=r,o=i):n=(n-r)/(i-r),n>1?n=1:n<0&&(n=0);var s=e(n);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 n,r=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(n=0;n<r-1;n+=1)if(e===data.k[n].t){i=n+1,a=data.k[n].t;break}else if(e>data.k[n].t&&e<data.k[n+1].t){e-data.k[n].t>data.k[n+1].t-e?(i=n+2,a=data.k[n+1].t):(i=n+1,a=data.k[n].t);break}i===-1&&(i=n+1,a=data.k[n].t)}var o={};return o.index=i,o.time=a/elem.comp.globalData.frameRate,o}function key(e){var n,r,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,n={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,r=0;r<i;r+=1)n[r]=a[r],n.value[r]=a[r];return n}function framesToTime(e,n){return n||(n=elem.comp.globalData.frameRate),e/n}function timeToFrames(e,n){return!e&&e!==0&&(e=time),n||(n=elem.comp.globalData.frameRate),e*n}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,n){return typeof value=="string"?n===void 0?value.substring(e):value.substring(e,n):""}function substr(e,n){return typeof value=="string"?n===void 0?value.substr(e):value.substr(e,n):""}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=n,e.resetFrame=ExpressionManager.resetFrame;function n(r){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,f=a.length;for(u=0;u<f;u+=1)a[u].release();a.length=0}r.renderer.compInterface=CompExpressionInterface(r.renderer),r.renderer.globalData.projectInterface.registerComposition(r.renderer),r.renderer.globalData.pushExpression=o,r.renderer.globalData.popExpression=s,r.renderer.globalData.registerExpressionProperty=l}return e}(),MaskManagerInterface=function(){function e(r,i){this._mask=r,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 n=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 n}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},n={pv:[0,0,0],v:[0,0,0],mult:1};function r(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 f="";"s"in l.keyframes[u-1]?f=l.keyframes[u-1].s:"e"in l.keyframes[u-2]?f=l.keyframes[u-2].e:f=l.keyframes[u-2].s;var x=c==="unidimensional"?new Number(f):Object.assign({},f);return x.time=l.keyframes[u-1].t/l.elem.comp.globalData.frameRate,x.value=c==="unidimensional"?f[0]:f,x},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,r(u,s,"unidimensional"),function(){return s.k&&s.getValue(),c=s.v*l,u.value!==c&&(u=new Number(c),u.value=c,r(u,s,"unidimensional")),u}}function a(s){(!s||!("pv"in s))&&(s=n);var l=1/s.mult,c=s.data&&s.data.l||s.pv.length,u=createTypedArray("float32",c),f=createTypedArray("float32",c);return u.value=f,r(u,s,"multidimensional"),function(){s.k&&s.getValue();for(var x=0;x<c;x+=1)f[x]=s.v[x]*l,u[x]=f[x];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 n(s){switch(s){case"scale":case"Scale":case"ADBE Scale":case 6:return n.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return n.rotation;case"ADBE Rotate X":return n.xRotation;case"ADBE Rotate Y":return n.yRotation;case"position":case"Position":case"ADBE Position":case 2:return n.position;case"ADBE Position_0":return n.xPosition;case"ADBE Position_1":return n.yPosition;case"ADBE Position_2":return n.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return n.anchorPoint;case"opacity":case"Opacity":case 11:return n.opacity;default:return null}}Object.defineProperty(n,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(n,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(n,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(n,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(n,"scale",{get:ExpressionPropertyInterface(e.s)});var r,i,a,o;return e.p?o=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),i=ExpressionPropertyInterface(e.py),e.pz&&(a=ExpressionPropertyInterface(e.pz))),Object.defineProperty(n,"position",{get:function(){return e.p?o():[r(),i(),a?a():0]}}),Object.defineProperty(n,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(n,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(n,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(n,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(n,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(n,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(n,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(n,"orientation",{get:ExpressionPropertyInterface(e.or)}),n}}(),LayerExpressionInterface=function(){function e(u){var f=new Matrix;if(u!==void 0){var x=this._elem.finalTransform.mProp.getValueAtTime(u);x.clone(f)}else{var h=this._elem.finalTransform.mProp;h.applyToMatrix(f)}return f}function n(u,f){var x=this.getMatrix(f);return x.props[12]=0,x.props[13]=0,x.props[14]=0,this.applyPoint(x,u)}function r(u,f){var x=this.getMatrix(f);return this.applyPoint(x,u)}function i(u,f){var x=this.getMatrix(f);return x.props[12]=0,x.props[13]=0,x.props[14]=0,this.invertPoint(x,u)}function a(u,f){var x=this.getMatrix(f);return this.invertPoint(x,u)}function o(u,f){if(this._elem.hierarchy&&this._elem.hierarchy.length){var x,h=this._elem.hierarchy.length;for(x=0;x<h;x+=1)this._elem.hierarchy[x].finalTransform.mProp.applyToMatrix(u)}return u.applyToPointArray(f[0],f[1],f[2]||0)}function s(u,f){if(this._elem.hierarchy&&this._elem.hierarchy.length){var x,h=this._elem.hierarchy.length;for(x=0;x<h;x+=1)this._elem.hierarchy[x].finalTransform.mProp.applyToMatrix(u)}return u.inversePoint(f)}function l(u){var f=new Matrix;if(f.reset(),this._elem.finalTransform.mProp.applyToMatrix(f),this._elem.hierarchy&&this._elem.hierarchy.length){var x,h=this._elem.hierarchy.length;for(x=0;x<h;x+=1)this._elem.hierarchy[x].finalTransform.mProp.applyToMatrix(f);return f.inversePoint(u)}return f.inversePoint(u)}function c(){return[1,1,1,1]}return function(u){var f;function x(m){g.mask=new MaskManagerInterface(m,u)}function h(m){g.effect=m}function g(m){switch(m){case"ADBE Root Vectors Group":case"Contents":case 2:return g.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return f;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return g.effect;case"ADBE Text Properties":return g.textInterface;default:return null}}g.getMatrix=e,g.invertPoint=s,g.applyPoint=o,g.toWorld=r,g.toWorldVec=n,g.fromWorld=a,g.fromWorldVec=i,g.toComp=r,g.fromComp=l,g.sampleImage=c,g.sourceRectAtTime=u.sourceRectAtTime.bind(u),g._elem=u,f=TransformExpressionInterface(u.finalTransform.mProp);var v=getDescriptor(f,"anchorPoint");return Object.defineProperties(g,{hasParent:{get:function(){return u.hierarchy.length}},parent:{get:function(){return u.hierarchy[0].layerInterface}},rotation:getDescriptor(f,"rotation"),scale:getDescriptor(f,"scale"),position:getDescriptor(f,"position"),opacity:getDescriptor(f,"opacity"),anchorPoint:v,anchor_point:v,transform:{get:function(){return f}},active:{get:function(){return u.isInRange}}}),g.startTime=u.data.st,g.index=u.data.ind,g.source=u.data.refId,g.height=u.data.ty===0?u.data.h:100,g.width=u.data.ty===0?u.data.w:100,g.inPoint=u.data.ip/u.comp.globalData.frameRate,g.outPoint=u.data.op/u.comp.globalData.frameRate,g._name=u.data.nm,g.registerMaskInterface=x,g.registerEffectsInterface=h,g}}(),propertyGroupFactory=function(){return function(e,n){return function(r){return r=r===void 0?1:r,r<=0?e:n(r-1)}}}(),PropertyInterface=function(){return function(e,n){var r={_name:e};function i(a){return a=a===void 0?1:a,a<=0?r:n(a-1)}return i}}(),EffectsExpressionInterface=function(){var e={createEffectsInterface:n};function n(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(r(l[c],a.effectsManager.effectElements[c],o,a));var f=a.data.ef||[],x=function(g){for(c=0,u=f.length;c<u;){if(g===f[c].nm||g===f[c].mn||g===f[c].ix)return s[c];c+=1}return null};return Object.defineProperty(x,"numProperties",{get:function(){return f.length}}),x}return null}function r(a,o,s,l){function c(g){for(var v=a.ef,m=0,C=v.length;m<C;){if(g===v[m].nm||g===v[m].mn||g===v[m].ix)return v[m].ty===5?f[m]:f[m]();m+=1}throw new Error}var u=propertyGroupFactory(c,s),f=[],x,h=a.ef.length;for(x=0;x<h;x+=1)a.ef[x].ty===5?f.push(r(a.ef[x],o.effectElements[x],o.effectElements[x].propertyGroup,l)):f.push(i(o.effectElements[x],a.ef[x].ty,l,u));return a.mn==="ADBE Color Control"&&Object.defineProperty(c,"color",{get:function(){return f[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(n,r,i){var a=r.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:n.nm},ix:{value:n.ix},propertyIndex:{value:n.ix},mn:{value:n.mn},propertyGroup:{value:i}}),o}}(),ShapeExpressionInterface=function(){function e(v,m,C){var b=[],d,p=v?v.length:0;for(d=0;d<p;d+=1)v[d].ty==="gr"?b.push(r(v[d],m[d],C)):v[d].ty==="fl"?b.push(i(v[d],m[d],C)):v[d].ty==="st"?b.push(s(v[d],m[d],C)):v[d].ty==="tm"?b.push(l(v[d],m[d],C)):v[d].ty==="tr"||(v[d].ty==="el"?b.push(u(v[d],m[d],C)):v[d].ty==="sr"?b.push(f(v[d],m[d],C)):v[d].ty==="sh"?b.push(ShapePathInterface(v[d],m[d],C)):v[d].ty==="rc"?b.push(x(v[d],m[d],C)):v[d].ty==="rd"?b.push(h(v[d],m[d],C)):v[d].ty==="rp"?b.push(g(v[d],m[d],C)):v[d].ty==="gf"?b.push(a(v[d],m[d],C)):b.push(o(v[d],m[d])));return b}function n(v,m,C){var b,d=function(E){for(var k=0,A=b.length;k<A;){if(b[k]._name===E||b[k].mn===E||b[k].propertyIndex===E||b[k].ix===E||b[k].ind===E)return b[k];k+=1}return typeof E=="number"?b[E-1]:null};d.propertyGroup=propertyGroupFactory(d,C),b=e(v.it,m.it,d.propertyGroup),d.numProperties=b.length;var p=c(v.it[v.it.length-1],m.it[m.it.length-1],d.propertyGroup);return d.transform=p,d.propertyIndex=v.cix,d._name=v.nm,d}function r(v,m,C){var b=function(E){switch(E){case"ADBE Vectors Group":case"Contents":case 2:return b.content;default:return b.transform}};b.propertyGroup=propertyGroupFactory(b,C);var d=n(v,m,b.propertyGroup),p=c(v.it[v.it.length-1],m.it[m.it.length-1],b.propertyGroup);return b.content=d,b.transform=p,Object.defineProperty(b,"_name",{get:function(){return v.nm}}),b.numProperties=v.np,b.propertyIndex=v.ix,b.nm=v.nm,b.mn=v.mn,b}function i(v,m,C){function b(d){return d==="Color"||d==="color"?b.color:d==="Opacity"||d==="opacity"?b.opacity:null}return Object.defineProperties(b,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},_name:{value:v.nm},mn:{value:v.mn}}),m.c.setGroupProperty(PropertyInterface("Color",C)),m.o.setGroupProperty(PropertyInterface("Opacity",C)),b}function a(v,m,C){function b(d){return d==="Start Point"||d==="start point"?b.startPoint:d==="End Point"||d==="end point"?b.endPoint:d==="Opacity"||d==="opacity"?b.opacity:null}return Object.defineProperties(b,{startPoint:{get:ExpressionPropertyInterface(m.s)},endPoint:{get:ExpressionPropertyInterface(m.e)},opacity:{get:ExpressionPropertyInterface(m.o)},type:{get:function(){return"a"}},_name:{value:v.nm},mn:{value:v.mn}}),m.s.setGroupProperty(PropertyInterface("Start Point",C)),m.e.setGroupProperty(PropertyInterface("End Point",C)),m.o.setGroupProperty(PropertyInterface("Opacity",C)),b}function o(){function v(){return null}return v}function s(v,m,C){var b=propertyGroupFactory(A,C),d=propertyGroupFactory(k,b);function p(T){Object.defineProperty(k,v.d[T].nm,{get:ExpressionPropertyInterface(m.d.dataProps[T].p)})}var y,E=v.d?v.d.length:0,k={};for(y=0;y<E;y+=1)p(y),m.d.dataProps[y].p.setGroupProperty(d);function A(T){return T==="Color"||T==="color"?A.color:T==="Opacity"||T==="opacity"?A.opacity:T==="Stroke Width"||T==="stroke width"?A.strokeWidth:null}return Object.defineProperties(A,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},strokeWidth:{get:ExpressionPropertyInterface(m.w)},dash:{get:function(){return k}},_name:{value:v.nm},mn:{value:v.mn}}),m.c.setGroupProperty(PropertyInterface("Color",b)),m.o.setGroupProperty(PropertyInterface("Opacity",b)),m.w.setGroupProperty(PropertyInterface("Stroke Width",b)),A}function l(v,m,C){function b(p){return p===v.e.ix||p==="End"||p==="end"?b.end:p===v.s.ix?b.start:p===v.o.ix?b.offset:null}var d=propertyGroupFactory(b,C);return b.propertyIndex=v.ix,m.s.setGroupProperty(PropertyInterface("Start",d)),m.e.setGroupProperty(PropertyInterface("End",d)),m.o.setGroupProperty(PropertyInterface("Offset",d)),b.propertyIndex=v.ix,b.propertyGroup=C,Object.defineProperties(b,{start:{get:ExpressionPropertyInterface(m.s)},end:{get:ExpressionPropertyInterface(m.e)},offset:{get:ExpressionPropertyInterface(m.o)},_name:{value:v.nm}}),b.mn=v.mn,b}function c(v,m,C){function b(p){return v.a.ix===p||p==="Anchor Point"?b.anchorPoint:v.o.ix===p||p==="Opacity"?b.opacity:v.p.ix===p||p==="Position"?b.position:v.r.ix===p||p==="Rotation"||p==="ADBE Vector Rotation"?b.rotation:v.s.ix===p||p==="Scale"?b.scale:v.sk&&v.sk.ix===p||p==="Skew"?b.skew:v.sa&&v.sa.ix===p||p==="Skew Axis"?b.skewAxis:null}var d=propertyGroupFactory(b,C);return m.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",d)),m.transform.mProps.p.setGroupProperty(PropertyInterface("Position",d)),m.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",d)),m.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",d)),m.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",d)),m.transform.mProps.sk&&(m.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",d)),m.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",d))),m.transform.op.setGroupProperty(PropertyInterface("Opacity",d)),Object.defineProperties(b,{opacity:{get:ExpressionPropertyInterface(m.transform.mProps.o)},position:{get:ExpressionPropertyInterface(m.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(m.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(m.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(m.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(m.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(m.transform.mProps.sa)},_name:{value:v.nm}}),b.ty="tr",b.mn=v.mn,b.propertyGroup=C,b}function u(v,m,C){function b(y){return v.p.ix===y?b.position:v.s.ix===y?b.size:null}var d=propertyGroupFactory(b,C);b.propertyIndex=v.ix;var p=m.sh.ty==="tm"?m.sh.prop:m.sh;return p.s.setGroupProperty(PropertyInterface("Size",d)),p.p.setGroupProperty(PropertyInterface("Position",d)),Object.defineProperties(b,{size:{get:ExpressionPropertyInterface(p.s)},position:{get:ExpressionPropertyInterface(p.p)},_name:{value:v.nm}}),b.mn=v.mn,b}function f(v,m,C){function b(y){return v.p.ix===y?b.position:v.r.ix===y?b.rotation:v.pt.ix===y?b.points:v.or.ix===y||y==="ADBE Vector Star Outer Radius"?b.outerRadius:v.os.ix===y?b.outerRoundness:v.ir&&(v.ir.ix===y||y==="ADBE Vector Star Inner Radius")?b.innerRadius:v.is&&v.is.ix===y?b.innerRoundness:null}var d=propertyGroupFactory(b,C),p=m.sh.ty==="tm"?m.sh.prop:m.sh;return b.propertyIndex=v.ix,p.or.setGroupProperty(PropertyInterface("Outer Radius",d)),p.os.setGroupProperty(PropertyInterface("Outer Roundness",d)),p.pt.setGroupProperty(PropertyInterface("Points",d)),p.p.setGroupProperty(PropertyInterface("Position",d)),p.r.setGroupProperty(PropertyInterface("Rotation",d)),v.ir&&(p.ir.setGroupProperty(PropertyInterface("Inner Radius",d)),p.is.setGroupProperty(PropertyInterface("Inner Roundness",d))),Object.defineProperties(b,{position:{get:ExpressionPropertyInterface(p.p)},rotation:{get:ExpressionPropertyInterface(p.r)},points:{get:ExpressionPropertyInterface(p.pt)},outerRadius:{get:ExpressionPropertyInterface(p.or)},outerRoundness:{get:ExpressionPropertyInterface(p.os)},innerRadius:{get:ExpressionPropertyInterface(p.ir)},innerRoundness:{get:ExpressionPropertyInterface(p.is)},_name:{value:v.nm}}),b.mn=v.mn,b}function x(v,m,C){function b(y){return v.p.ix===y?b.position:v.r.ix===y?b.roundness:v.s.ix===y||y==="Size"||y==="ADBE Vector Rect Size"?b.size:null}var d=propertyGroupFactory(b,C),p=m.sh.ty==="tm"?m.sh.prop:m.sh;return b.propertyIndex=v.ix,p.p.setGroupProperty(PropertyInterface("Position",d)),p.s.setGroupProperty(PropertyInterface("Size",d)),p.r.setGroupProperty(PropertyInterface("Rotation",d)),Object.defineProperties(b,{position:{get:ExpressionPropertyInterface(p.p)},roundness:{get:ExpressionPropertyInterface(p.r)},size:{get:ExpressionPropertyInterface(p.s)},_name:{value:v.nm}}),b.mn=v.mn,b}function h(v,m,C){function b(y){return v.r.ix===y||y==="Round Corners 1"?b.radius:null}var d=propertyGroupFactory(b,C),p=m;return b.propertyIndex=v.ix,p.rd.setGroupProperty(PropertyInterface("Radius",d)),Object.defineProperties(b,{radius:{get:ExpressionPropertyInterface(p.rd)},_name:{value:v.nm}}),b.mn=v.mn,b}function g(v,m,C){function b(y){return v.c.ix===y||y==="Copies"?b.copies:v.o.ix===y||y==="Offset"?b.offset:null}var d=propertyGroupFactory(b,C),p=m;return b.propertyIndex=v.ix,p.c.setGroupProperty(PropertyInterface("Copies",d)),p.o.setGroupProperty(PropertyInterface("Offset",d)),Object.defineProperties(b,{copies:{get:ExpressionPropertyInterface(p.c)},offset:{get:ExpressionPropertyInterface(p.o)},_name:{value:v.nm}}),b.mn=v.mn,b}return function(v,m,C){var b;function d(y){if(typeof y=="number")return y=y===void 0?1:y,y===0?C:b[y-1];for(var E=0,k=b.length;E<k;){if(b[E]._name===y)return b[E];E+=1}return null}function p(){return C}return d.propertyGroup=propertyGroupFactory(d,p),b=e(v,m,d.propertyGroup),d.numProperties=b.length,d._name="Contents",d}}(),TextExpressionInterface=function(){return function(e){var n;function r(i){switch(i){case"ADBE Text Document":return r.sourceText;default:return null}}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var a=e.textProperty.currentData.t;return(!n||a!==n.value)&&(n=new String(a),n.value=a||new String(a),Object.defineProperty(n,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),n}}),r}}();function _typeof(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(r){return typeof r}:_typeof=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_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 f=parseInt(c.substr(u+a.length),10);return o=o[f],_typeof(o)==="object"?l:o}return""}return s},n=function(i){function a(o){return o==="Outline"?a.outlineInterface():null}return a._name="Outline",a.outlineInterface=e(i),a};return function(r){function i(a){return a==="Data"?i.dataInterface:null}return i._name="Data",i.dataInterface=n(r),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 n(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 r(s){var l=-.01,c=this.getValueAtTime(s),u=this.getValueAtTime(s+l),f=0;if(c.length){var x;for(x=0;x<c.length;x+=1)f+=Math.pow(u[x]-c[x],2);f=Math.sqrt(f)*100}else f=0;return f}function i(s){if(this.vel!==void 0)return this.vel;var l=-.001,c=this.getValueAtTime(s),u=this.getValueAtTime(s+l),f;if(c.length){f=createTypedArray("float32",c.length);var x;for(x=0;x<c.length;x+=1)f[x]=(u[x]-c[x])/l}else f=(u-c)/l;return f}function a(){return this.pv}function o(s){this.propertyGroup=s}return{searchExpressions:e,getSpeedAtTime:r,getVelocityAtTime:i,getValueAtTime:n,getStaticValueAtTime:a,setGroupProperty:o}}();function addPropertyDecorator(){function e(h,g,v){if(!this.k||!this.keyframes)return this.pv;h=h?h.toLowerCase():"";var m=this.comp.renderedFrame,C=this.keyframes,b=C[C.length-1].t;if(m<=b)return this.pv;var d,p;v?(g?d=Math.abs(b-this.elem.comp.globalData.frameRate*g):d=Math.max(0,b-this.elem.data.ip),p=b-d):((!g||g>C.length-1)&&(g=C.length-1),p=C[C.length-1-g].t,d=b-p);var y,E,k;if(h==="pingpong"){var A=Math.floor((m-p)/d);if(A%2!==0)return this.getValueAtTime((d-(m-p)%d+p)/this.comp.globalData.frameRate,0)}else if(h==="offset"){var T=this.getValueAtTime(p/this.comp.globalData.frameRate,0),D=this.getValueAtTime(b/this.comp.globalData.frameRate,0),I=this.getValueAtTime(((m-p)%d+p)/this.comp.globalData.frameRate,0),B=Math.floor((m-p)/d);if(this.pv.length){for(k=new Array(T.length),E=k.length,y=0;y<E;y+=1)k[y]=(D[y]-T[y])*B+I[y];return k}return(D-T)*B+I}else if(h==="continue"){var O=this.getValueAtTime(b/this.comp.globalData.frameRate,0),L=this.getValueAtTime((b-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(k=new Array(O.length),E=k.length,y=0;y<E;y+=1)k[y]=O[y]+(O[y]-L[y])*((m-b)/this.comp.globalData.frameRate)/5e-4;return k}return O+(O-L)*((m-b)/.001)}return this.getValueAtTime(((m-p)%d+p)/this.comp.globalData.frameRate,0)}function n(h,g,v){if(!this.k)return this.pv;h=h?h.toLowerCase():"";var m=this.comp.renderedFrame,C=this.keyframes,b=C[0].t;if(m>=b)return this.pv;var d,p;v?(g?d=Math.abs(this.elem.comp.globalData.frameRate*g):d=Math.max(0,this.elem.data.op-b),p=b+d):((!g||g>C.length-1)&&(g=C.length-1),p=C[g].t,d=p-b);var y,E,k;if(h==="pingpong"){var A=Math.floor((b-m)/d);if(A%2===0)return this.getValueAtTime(((b-m)%d+b)/this.comp.globalData.frameRate,0)}else if(h==="offset"){var T=this.getValueAtTime(b/this.comp.globalData.frameRate,0),D=this.getValueAtTime(p/this.comp.globalData.frameRate,0),I=this.getValueAtTime((d-(b-m)%d+b)/this.comp.globalData.frameRate,0),B=Math.floor((b-m)/d)+1;if(this.pv.length){for(k=new Array(T.length),E=k.length,y=0;y<E;y+=1)k[y]=I[y]-(D[y]-T[y])*B;return k}return I-(D-T)*B}else if(h==="continue"){var O=this.getValueAtTime(b/this.comp.globalData.frameRate,0),L=this.getValueAtTime((b+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(k=new Array(O.length),E=k.length,y=0;y<E;y+=1)k[y]=O[y]+(O[y]-L[y])*(b-m)/.001;return k}return O+(O-L)*(b-m)/.001}return this.getValueAtTime((d-((b-m)%d+b))/this.comp.globalData.frameRate,0)}function r(h,g){if(!this.k)return this.pv;if(h=(h||.4)*.5,g=Math.floor(g||5),g<=1)return this.pv;var v=this.comp.renderedFrame/this.comp.globalData.frameRate,m=v-h,C=v+h,b=g>1?(C-m)/(g-1):1,d=0,p=0,y;this.pv.length?y=createTypedArray("float32",this.pv.length):y=0;for(var E;d<g;){if(E=this.getValueAtTime(m+d*b),this.pv.length)for(p=0;p<this.pv.length;p+=1)y[p]+=E[p];else y+=E;d+=1}if(this.pv.length)for(p=0;p<this.pv.length;p+=1)y[p]/=g;else y/=g;return y}function i(h){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var g=this._transformCachingAtTime.v;if(g.cloneFromProps(this.pre.props),this.appliedTransformations<1){var v=this.a.getValueAtTime(h);g.translate(-v[0]*this.a.mult,-v[1]*this.a.mult,v[2]*this.a.mult)}if(this.appliedTransformations<2){var m=this.s.getValueAtTime(h);g.scale(m[0]*this.s.mult,m[1]*this.s.mult,m[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var C=this.sk.getValueAtTime(h),b=this.sa.getValueAtTime(h);g.skewFromAxis(-C*this.sk.mult,b*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var d=this.r.getValueAtTime(h);g.rotate(-d*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var p=this.rz.getValueAtTime(h),y=this.ry.getValueAtTime(h),E=this.rx.getValueAtTime(h),k=this.or.getValueAtTime(h);g.rotateZ(-p*this.rz.mult).rotateY(y*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 A=this.px.getValueAtTime(h),T=this.py.getValueAtTime(h);if(this.data.p.z){var D=this.pz.getValueAtTime(h);g.translate(A*this.px.mult,T*this.py.mult,-D*this.pz.mult)}else g.translate(A*this.px.mult,T*this.py.mult,0)}else{var I=this.p.getValueAtTime(h);g.translate(I[0]*this.p.mult,I[1]*this.p.mult,-I[2]*this.p.mult)}return g}function a(){return this.v.clone(new Matrix)}var o=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(h,g,v){var m=o(h,g,v);return m.dynamicProperties.length?m.getValueAtTime=i.bind(m):m.getValueAtTime=a.bind(m),m.setGroupProperty=expressionHelpers.setGroupProperty,m};var s=PropertyFactory.getProp;PropertyFactory.getProp=function(h,g,v,m,C){var b=s(h,g,v,m,C);b.kf?b.getValueAtTime=expressionHelpers.getValueAtTime.bind(b):b.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(b),b.setGroupProperty=expressionHelpers.setGroupProperty,b.loopOut=e,b.loopIn=n,b.smooth=r,b.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(b),b.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(b),b.numKeys=g.a===1?g.k.length:0,b.propertyIndex=g.ix;var d=0;return v!==0&&(d=createTypedArray("float32",g.a===1?g.k[0].s.length:g.k.length)),b._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:d},expressionHelpers.searchExpressions(h,g,b),b.k&&C.addDynamicProperty(b),b};function l(h){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),h*=this.elem.globalData.frameRate,h-=this.offsetTime,h!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<h?this._caching.lastIndex:0,this._cachingAtTime.lastTime=h,this.interpolateShape(h,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var c=ShapePropertyFactory.getConstructorFunction(),u=ShapePropertyFactory.getKeyframedConstructorFunction();function f(){}f.prototype={vertices:function(g,v){this.k&&this.getValue();var m=this.v;v!==void 0&&(m=this.getValueAtTime(v,0));var C,b=m._length,d=m[g],p=m.v,y=createSizedArray(b);for(C=0;C<b;C+=1)g==="i"||g==="o"?y[C]=[d[C][0]-p[C][0],d[C][1]-p[C][1]]:y[C]=[d[C][0],d[C][1]];return y},points:function(g){return this.vertices("v",g)},inTangents:function(g){return this.vertices("i",g)},outTangents:function(g){return this.vertices("o",g)},isClosed:function(){return this.v.c},pointOnPath:function(g,v){var m=this.v;v!==void 0&&(m=this.getValueAtTime(v,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(m));for(var C=this._segmentsLength,b=C.lengths,d=C.totalLength*g,p=0,y=b.length,E=0,k;p<y;){if(E+b[p].addedLength>d){var A=p,T=m.c&&p===y-1?0:p+1,D=(d-E)/b[p].addedLength;k=bez.getPointInSegment(m.v[A],m.v[T],m.o[A],m.i[T],D,b[p]);break}else E+=b[p].addedLength;p+=1}return k||(k=m.c?[m.v[0][0],m.v[0][1]]:[m.v[m._length-1][0],m.v[m._length-1][1]]),k},vectorOnPath:function(g,v,m){g==1?g=this.v.c:g==0&&(g=.999);var C=this.pointOnPath(g,v),b=this.pointOnPath(g+.001,v),d=b[0]-C[0],p=b[1]-C[1],y=Math.sqrt(Math.pow(d,2)+Math.pow(p,2));if(y===0)return[0,0];var E=m==="tangent"?[d/y,p/y]:[-p/y,d/y];return E},tangentOnPath:function(g,v){return this.vectorOnPath(g,v,"tangent")},normalOnPath:function(g,v){return this.vectorOnPath(g,v,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([f],c),extendPrototype([f],u),u.prototype.getValueAtTime=l,u.prototype.initiateExpression=ExpressionManager.initiateExpression;var x=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(h,g,v,m,C){var b=x(h,g,v,m,C);return b.propertyIndex=g.ix,b.lock=!1,v===3?expressionHelpers.searchExpressions(h,g.pt,b):v===4&&expressionHelpers.searchExpressions(h,g.ks,b),b.k&&h.addDynamicProperty(b),b}}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(n,r){var i=this.calculateExpression(r);if(n.t!==i){var a={};return this.copyData(a,n),a.t=i.toString(),a.__complete=!1,a}return n},TextProperty.prototype.searchProperty=function(){var n=this.searchKeyframes(),r=this.searchExpressions();return this.kf=n||r,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(n,r){var i=createNS("feMerge");i.setAttribute("result",n);var a,o;for(o=0;o<r.length;o+=1)a=createNS("feMergeNode"),a.setAttribute("in",r[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,n,r,i,a){this.filterManager=n;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 n=this.filterManager.effectElements[0].p.v,r=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",r[0]-n[0]+" 0 0 0 "+n[0]+" "+(r[1]-n[1])+" 0 0 0 "+n[1]+" "+(r[2]-n[2])+" 0 0 0 "+n[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,n,r,i){this.filterManager=n;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 n=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+n[0]+" 0 0 0 0 "+n[1]+" 0 0 0 0 "+n[2]+" 0 0 0 "+r+" 0")}};function SVGStrokeEffect(e,n,r){this.initialized=!1,this.filterManager=n,this.elem=r,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,n,r,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),r=createNS("g"),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),r.setAttribute("stroke-dashoffset",1),i;i<a;i+=1)n=createNS("path"),r.appendChild(n),this.paths.push({p:n,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(r),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,r.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(r),this.elem.layerElement.removeAttribute("mask"),r.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=r},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var n,r=this.paths.length,i,a;for(n=0;n<r;n+=1)if(this.paths[n].m!==-1&&(i=this.elem.maskManager.viewData[this.paths[n].m],a=this.paths[n].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),f=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,x=Math.floor(u/f),h;for(h=0;h<x;h+=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 g=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(g[0]*255)+","+bmFloor(g[1]*255)+","+bmFloor(g[2]*255)+")")}};function SVGTritoneFilter(e,n,r,i){this.filterManager=n;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 n=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,a=i[0]+" "+r[0]+" "+n[0],o=i[1]+" "+r[1]+" "+n[1],s=i[2]+" "+r[2]+" "+n[2];this.feFuncR.setAttribute("tableValues",a),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",s)}};function SVGProLevelsFilter(e,n,r,i){this.filterManager=n;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,n){var r=createNS(e);return r.setAttribute("type","table"),n.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,n,r,i,a){for(var o=0,s=256,l,c=Math.min(e,n),u=Math.max(e,n),f=Array.call(null,{length:s}),x,h=0,g=a-i,v=n-e;o<=256;)l=o/256,l<=c?x=v<0?a:i:l>=u?x=v<0?i:a:x=i+g*Math.pow((l-e)/v,1/r),f[h]=x,h+=1,o+=256/(s-1);return f.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var n,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(n=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",n),this.feFuncGComposed.setAttribute("tableValues",n),this.feFuncBComposed.setAttribute("tableValues",n)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(n=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",n)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(n=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",n)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(n=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",n)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(n=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",n))}};function SVGDropShadowEffect(e,n,r,i,a){var o=n.container.globalData.renderConfig.filterSize,s=n.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=n;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 f=createNS("feComposite");f.setAttribute("in",i+"_drop_shadow_3"),f.setAttribute("in2",i+"_drop_shadow_2"),f.setAttribute("operator","in"),f.setAttribute("result",i+"_drop_shadow_4"),e.appendChild(f);var x=this.createMergeNode(i,[i+"_drop_shadow_4",a]);e.appendChild(x)}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 n=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(n[0]*255),Math.round(n[1]*255),Math.round(n[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 r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,a=r*Math.cos(i),o=r*Math.sin(i);this.feOffset.setAttribute("dx",a),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,n,r){this.initialized=!1,this.filterManager=n,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var n=0,r=_svgMatteSymbols.length;n<r;){if(_svgMatteSymbols[n]===e)return _svgMatteSymbols[n];n+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,n){var r=e.layerElement.parentNode;if(r){for(var i=r.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","#"+n),s?r.insertBefore(l,s):r.appendChild(l)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,n){if(!this.findSymbol(n)){var r=createElementID(),i=createNS("mask");i.setAttribute("id",n.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(n);var a=e.globalData.defs;a.appendChild(i);var o=createNS("symbol");o.setAttribute("id",r),this.replaceInParent(n,r),o.appendChild(n.layerElement),a.appendChild(o);var s=createNS("use");s.setAttribute("href","#"+r),i.appendChild(s),n.data.hd=!1,n.show()}e.setMatte(n.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,n=this.elem.comp.elements,r=0,i=n.length;r<i;)n[r]&&n[r].data.ind===e&&this.setElementAsMask(this.elem,n[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,n,r,i){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=n;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 n=.3,r=this.filterManager.effectElements[0].p.v*n,i=this.filterManager.effectElements[1].p.v,a=i==3?0:r,o=i==2?0:r;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 n=this.effectsManager.effectElements,r=n[0].p.v,i=n[1].p.v,a=n[2].p.v===1,o=n[3].p.v,s=a?o:n[4].p.v,l=n[5].p.v,c=n[6].p.v,u=n[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[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!==n[8].p.v&&(this.opacity=n[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,n){this.init(n)}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 n=usePickComponentStyle(e),r=vue.computed(()=>useImagePath(e.imgUrl)),{pageMode:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),a=vue.computed(()=>{const v={},{actionType:m,linkPage:C,href:b}=e,{requestParams:d={}}=window.config;return vue.unref(i)!=="design"&&m==="close"&&e.isDrillShow&&!d.drillFlag&&(v.display="none"),(m==="link"&&(C||b)||!m&&(C||b)||m==="close")&&(v.cursor="pointer"),{...vue.unref(n),...v}}),{getGlobalModel:o,setGlobalModel:s,getRecordValueByKeyName:l}=vue.inject(GLOBAL_MODEL,{getGlobalModel:v=>{},setGlobalModel:(v,m)=>{},getRecordValueByKeyName:v=>{}}),{setTemplateData:c}=vue.inject("templateOperate",{setTemplateData:v=>{}}),f=useEmitEvent(e)("click",()=>{const v=o(e.id);if(s(e.id,{...v,type:e.type,RECORD:e.data||{}}),setTimeout(()=>{s(e.id,{...v,type:e.type,RECORD:{}})},0),[void 0,"link"].includes(e.actionType)){if(!e.linkPage&&!e.href)return;handleJumpLink(e,{pageMode:vue.unref(i),targetTemplate:e.targetTemplate,getRecordValueByKeyName:l,setTemplateData:c})}else e.actionType==="close"&&window.close()}),x=vue.ref(),h=vue.ref(),g=()=>{const{directory:v}=e.animationSource;e.isAnimation&&x.value&&v&&(h.value=lottie.loadAnimation({name:`${e.keyName}-lotTie`,container:x.value,renderer:"svg",loop:!0,autoplay:!0,path:useImagePath(v)+"data.json"}),vue.unref(h).setSpeed(1))};return vue.watch(()=>[e.isAnimation,e.animationSource],([v])=>{v&&vue.nextTick(()=>{g()})},{immediate:!0,deep:!0}),useOnEvent(e,{click:f}),{customStyle:a,myImgUrl:r,animation:x,pageMode:i,onClick:f}}}),__injectCSSVars__$1=()=>{vue.useCssVars(e=>({"8d74eefa":e.isHoverStyle?"pointer":"auto","7ff7bf46":e.isHoverStyle?"0.6":"1"}))},__setup__$1=__default__$1.setup;__default__$1.setup=__setup__$1?(e,n)=>(__injectCSSVars__$1(),__setup__$1(e,n)):__injectCSSVars__$1;const Image_vue_vue_type_style_index_0_scoped_8b128e89_lang="",_hoisted_1$3=["src"];function _sfc_render$6(e,n,r,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.customStyle),onClick:n[0]||(n[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.customStyle),src:e.myImgUrl,onClick:n[1]||(n[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.customStyle)}," 请上传图片 ",6)):vue.createCommentVNode("",!0)],64)}const Image$1=_export_sfc$1(__default__$1,[["render",_sfc_render$6],["__scopeId","data-v-8b128e89"]]),EcanImage=withInstall$1(Image$1),iframeProps={...props,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web",transParams:[]},iframeComponentProps=transformToComponentProps(iframeProps),_sfc_main$4=vue.defineComponent({name:"EcanIframe",props:{...iframeComponentProps},setup(e){const n=usePickComponentStyle(e),{contextRequestUrl:r}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:""}),{getRecordValueByKeyName:i}=vue.inject(GLOBAL_MODEL,{getRecordValueByKeyName:o=>{}}),a=vue.computed(()=>{var s;let o=useVariablesInText(e.link);if(e.linkType==="erd"&&o!=null){let l=vue.unref(r);l[l.length-1]==="/"?l+="erdReport":l+="/erdReport",o=`${ERD_URL||l}?_t=0&uid=${o}`}if((s=e.transParams)!=null&&s.length){o.includes("?")?o+="&":o+="?";const l=[];for(const c of e.transParams){const u=i(String(c.fieldName));l.push(`${c.keyName}=${u}`)}o+=l.join("&")}return o});return{style:n,myLink:a}}}),Iframe_vue_vue_type_style_index_0_scoped_06253280_lang="",_hoisted_1$2=["src"];function _sfc_render$5(e,n,r,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$4,[["render",_sfc_render$5],["__scopeId","data-v-06253280"]]),EcanIframe=withInstall$1(Iframe),tableProps={...props,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!1,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1,transParams:[],linkPage:"",target:"self",href:"",isAutoScroll:!1,scrollSpeed:10,clickTarget:"row",clickTargetColumns:[],linkTextColor:""},tableComponentProps=transformToComponentProps(tableProps),tableEvents=["click","refreshData","resetRecord","exportTableData"],seqIcon1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8oFilY+dZfEL3FnudOXKtVt3LqxyoQtlI1WUCFhYpSCIhKoAgTwhJMFkZm73bavP7dO3h9yQpJJNJtObnJx7u+ee+333O6cfDJahSQCHhhk91p1Ttj8xs4F8zOEe2dx3C2hH0efkkwCvKluCPEc+l7mfKHvD+X7jW8qjsqV0th60Hqh6GSsSUQlgWNDX0RGoQNauCdcbmvruU8oWnB9NqAtvGRtgPzJXJuMMh86U8jX7USPd57H4OmPwjWEOZ5/hfRdvDi6WiYumbj1Q/YrZSkf0l2OAytlRLj5BtAm4uwvV0pG9hl4S3lW2C3DEopdP9mDolpV9vew+JN80hxll+0xy8nU1iHXKLmYi83sM4D+tzl/SfWVXfqXstt8GcIy52oKpW5OBUl7sO7TeiEPBadoZi0y0l96aYOwdbb9MPgcgr+wxzgw6l0uBeduTggl13WEgkz4yipEC04dJicg3WeK3Jx9ibl7nSczVcZO3tPEpeQoXbn+rbIZDxi0V0XqgKxlRky56Wg0dxoNgB5LCi3OiaqGM9sVMYSfJ54JsVvbDKKajapdm/JL6e5e7IfkMH2N6Ip2YxSVXM8y3fI6MhYnJhM4gWUX5tngc87dqXTmBJWXOkUbwqJT0hP+Boe6qCXT0aNtmjFp4Bw0Cgncqe1I68TUAGJduu/q70+UkQNBX9lAwLpV8IzaoKooB1FENbYkCQW9UwhINqoZUV1+jHFii5UoZC5k1PBOAKHfnwjX0k9syEaYmAPamQbQeaK0hOniw+CxSzXGPE8y3OMMP/HKYyIPvRhuV73gQmvvOTQdYqdwJZwtPaNGV6Kzu5dpv1MuiuJnrxZUVtgyTRqIy5AOZ5OBI4mfT4kWm+4FGvmkWdVdNoKO9xRdjsXGMyJwJfUw1F0J6r0qEJCL6cbZsED2rER20EK1oxGwxIhRV/zQxInjs6oVsszQBAFmNbt5OTRrRVi8y3gP5cDai9UBrDdGR3rYXFKVGJDtBunCqnEHqXhYJdXe5Yk7qDljUJRGyqyGisxqTaGrnVkuPjOnqOtymc06vOuRZkoV9Td2N81F3FQaaiNFP5QCnWv+kIPpRihilIWqjaKNLqSay0k8aoo5G1E45WQ1vo5VyHoeoZPC8qYwSROuB4kuhb7SmED2lqXvFou5eVxRVwB9my68THSiPLoa6SxGjZaduTQY6eLB4TCF0D5JaNy3QZzy+Vd33XkPltUcRtWvdtPSSVvfa07THVUa2GFF6yVWnl2n1PK12rasroyoxqgcKAPY3uuIRHevd+pKCfkiCmY1TZbTQQO2inop5u5BPo649dZsjj6L7kTyKmdTOo56QSN1mf3ZRX0XdVRPo8OF2XHwe5fyNR2vd+RD9S68VXddrR6o/IWVXQ3ZdS9cXWutWIaqrpayTSJmjEd0WCLMyuDvHceGgCtF6oAsQo5WF6KEdryB1hTAVT9o0rQ2iteq+k/myEa0si/dARrhjFhT+LMUL2A+EY5aF7PUhKuYXkUdnrRkVrJy5KwiRss1+1GCJ2n1lM+Ekm9HD9UCrJ94rH9Herai645Dk0bMVP6t8f1iLYxN6NTELyR7HiVwF92P2e+Jpoo0D8YZxfyVexVft75KHdFZtRsb120Kpm7Pmnt0NHOm5LeC08qnybLxHA/Jr+o1MJvxC2U1nhkbJx4ZXS6Bjh4uHVNQVyUweHeYebrhe4zE6ql3VZ6LuyGQdqaSTYosrzYbx+w0lXBBvd2UH9Q01ijiORveGhTihm4wM0JmJUevKhEZkaG8mArhmkJISt/mb803fkQ+gBRnETp9ONpbrgdYaoncPbMZyyfWzXQS9iMI9yp4WzNBvSLpNyvevSLZwr2qxGkk4A2UtWvt83kLutxvC58guMIn+KWvz+FbFw62/dktkso7E6k8ADCXDS6QnA/4j+cq+d0nZbb/eth8DU3fVGYZVE6jZ8T4C5qOfyHXi3kV5soybv6pJgG71d1yy7eQb4I5eFk12SK6JuJC5n2xuVU21TjSEyJzDfmjOJgUMsMKKACas30PU/Cj6nnxhkEERahUFOokCcP48Hq+z0bMIZkyV1OInqwdaI4imwZwc4OgxJ1Xu5SfbkMJSPEl9eMR2K3tYsC3kuyEczH83w4TO9tx0uxf/1+kntdEmJ54wBAx+oHFEwK4ou5QT/eQr/jzwQNN0vgWKWWHNdaAq9vfUeKBpKJNvtKuAaQbR3dCIx+aYlChUqk1ziWJzP3LwDBLeZ73/gifuKZ/PWB9dZ8xBkcnxivE1XbwbT7WSRYvHPda81xZ86LEeaK0imsaRqZ5WUwXNZHJ4hhecyFRVjFmpVMKNmM7sKo3V/Hs/VjXLRdO0Z1w0dVd1oHbwUp/UnoLNmDJUmxnjZgbWUhhBMWKnrcOM80rJ0m9YFkRXQqD/A/mshzl9oUoNAAAAAElFTkSuQmCC",seqIcon2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABQFJREFUaEPtWt1v21QUv9eJ80FbWmV0adel7ZqyLenSgVYJaQghHhBIICEhoWkvSGgCiQ+JdWMCISEVxAPSoEWT+AN4QTzxzl/Ah8SAQtJ23dKvreuydl3TrIsd23e6xz63LovqeE2BePaLT06ur33O7+dzj8+5lPyHh5I7f4TfPpT6IIuPQSll9XwkWs/J3M7lGQOV7JdpYTxjX206gr4IMiM/CwQDdBhQTZ8VOreOs4//VxD0DWwkBO/kxjqRIkFDHwWZktdQZ2h6AOXlpUUQY3s7BKuCsoxB5ltUalLgYy43pYevu6Vr3SnqKQNZ9ptm9KjK7n5iye/bAkqYyzeuLQjV3OVJIavlMshyKCR03f2HQe5I9AgdpbRkBiP6BSpD6xTYQY+fubsdqjtC0DeQscZBkLERCamgZFveNmMH+9xGjzYu3165KVSzUzmQS8U1t7GBNLU8Kq7pS0HCQ1pjj9nmofPmD/aRoO3A2e/huWzZUM0U9ayB5exoP3iFGT/a3NfH5Y3SulDNTJrp5OpywTVatV6wJy5WIHLgkJkcRR5p2rzcWk8NSTuBSkcEfQMtVzUEgowxQFTLnj+OEBtEeteST6Lu2swVEGcvmUEEXnVW168cR9ZSyYx5vQdTYmxXbxKf5eWqFPWkgSw7GkNrVWa8A2gQkkCdrigQm4Ph8Kuom7j4K4grhSVHT+/2gFh7XNwifeyp+xH0vIEYJU3TjXP8VFiYLaJbSsViK5eTA4Nvoi732y8g3rp5Y7cBcpzfEUHfQC8iOD3+u0goJUlq5zzpP3L0Lc9Q1PMGTv55USSUciCwt9EQlCh5Riz01YKMb+D/fJlwhWA4JHdxuPtSmTcaJcj4BtrfwWg00m1m7enXPYmgb6Bjtri7A6rlolveQeWvMfHFyKh+mj+OpyjqfQPHRzNIIiYZ79WCYH7ib7hkcS6/u/yrYfZ9PVDggwPrp1sp6ht4/zLhKQRZRYUO0qEnhk4hFQLBYAuX7UVeLBvai8E1MMzVEHuRFwu/9mIwLzLAhAZ5WiTbigNFPWng/KWJVfTAfP4y1GfC4bBo4iUHBp/lulh7XHiKt/m4bmlhTqAyb/UCK6rqCik+2N4zTCQPwvWdiV4xD5WkCv9BGbmASlkLQDOIPjl8e1sEPWXglpYz02ELB2MEKmn8KK2uQBv2ymTW5DchZH1tDbzX0toGLTN+9KcyL/Bzc1ubWHYqqgqVckTynwhjNRyr1Pz/fd0HYD5EjctBGcjB+3VTeD9JZ/B1Iw+e+wl11c7UN7DREbTDyqYvQMtZVRVzBxK8xPR5fjYYC6Ju+fpV2BQwO5UTrduyoupcF+/aL8r+3Y8ffonrIpGo0NmXkYK1OaHToiUfG45GLTYSUVVmViAJKaWvxXMNjWxsR00x7qEysJpHsHdRYYZovhiMDfGxuq6JntnV/DSE5sWZvLnlA9ZbA87JVOYY6uL7e4ER/JAkam5DoUQwgRH2HVdphvwpjmvOnH7gHoFjh9c30HJzwyJYjbbl8TH4RqGSJvagMUJBp2zcgTWSH4VFMxh1JHogd+VHKBQxowhMQCGoMV37DFWRox+Kta7avd3qHCn6UBqIRmPLG4KC1dc3qPTK5v9mRkQJEa0ASukP+L+cPvOHCWR9tzHbQXkgBH0DLQ9gTtuwCFZ7PzEb4v9Vyhok3vJyEagIdHxuRHMbKHYyfkcUbQQD7wHq9EAq9LeVYwAAAABJRU5ErkJggg==",seqIcon3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABMJJREFUaEPtWl1sFFUUPndmlm1LdW1XoGxly7qFYqmIBkxEJDTRRI3RxNhgpDzpkwixJCaEJx588MHQCPrgGwT8SSD4Zkx84DfGEEjU2KpAS6ktZVsKpF0K3Z+55p4798ysGdju0A3Mdu5De/bcn7nnfN/ce+ecy+ABli1fHGsTjz+4fWMPTYMxPptTYrM5WKljBQaW6jGX9mVF8N19p2PimYxBnXq2ZpqfK5kDvCpl/qvSMdC7hPzN9vWkux87AwNn6r3O7pOLRVtT5+/bfVinJS9TOjNvakoeG0mhGF20gLoYIUMtMgcI9TzsEvKhrg0jM52PzYhSe9ylfWCg5RhfINjx9c8RMd/QnapN9v7FP7Dk1aTjPCTk1LDNrIHzfVSduTONcmgeNsPStCyJ/xvijfbQjKXFD87ZZ0qZy+t7hHx4x7rb9yKhp0Wmogx8be+PYeGhCNS+TC89AC7lAPCCw3s1Qr557TqpLv19AeX0xOS9nOxaN/+RWtInW1tQjkRptxE/BxFVYDtVw++2rf8eZcdpqCiCgYG2/32AIOeI6OYvT62jeXO2RVKBv+PgUlTIU+lbpOr/6zzKN8bGS6bjTDtEGxZS08SKZpSra9CvVpEnIt3UaPErpGglGtix55d6ZX/IyH4oX1JYonSZ25kGIc+rCr+pdEP9l1Ec+Oei7Ts+q185RUFlmjwQJVokkqI0JuL43wR4Q+lYYKDfEez86hhhbJraJwLaoT7cYrCkJyaRoitWtxFFe8/9jnXjqbGiVCp3g/qFj9MjVq6Rh6gCis5JA3vP/kFe0TQmEXx2FSHYc/Y3rL8+eq3cABUd3xOCgYF+R7DnjE1R3ahAigYGPuQU5SZ7iU4ybtuE3xEMDHQiGAqHnhBwL1/V+rqC/WHfB0tCMDCw6FmjvA3cTjIFCG7qPvGUmoJuwMdCdlI0XF2FH1nNbS1WHgHAVxSteAM37zvxtEKQA3xUcQgGBvr9HfSCYH+vDBEOD9hf/uVdK+8+emwpxcdARcALVtE5aeClP+1w4GR64jHhv9bnnqFQnBEyMNrqDPKqwK8zGDzbqDqDvCrw6wwGiyCDeCZn+RfpsO2GYGCgnxBUqWeEVpdpMc44JjiRhqMyHfbvxT7KUjbE4xifWxBbRHsoABhCd3VwmJh5+YJMdmYz2ZLZ6kyKLmlOYP9YHM/9WJim4aAc2F6lC+dznwp5f1f7TWpX8QY6XatygXW8ls6dwNgroo3JTUIwNXgFu42OjFCWcuny5PNCF6mvo0CyQk4h+X+EuZXPUHkGUd/YJJd9hZqQHTcvjqj5anpe3rzY2m6viC48KcguBQZaHvItgm4rgco+GXrubaIHY2uEnMlMEwMGrAUlP52jLGVTSxITqdXza0jn3CdTQ5LqMYuWQg5XV6nHnKOFAjT8CPByvatojr7iDXRD9b3uU0+iXocOqmcm6qYmpkiVuiIRakom5DUJANAMY61jTJV/lhlVLHyH+Pvttg0/2GN7v0NaFMHAQHpRKghBm03yVoYodDODw1tENnUi4too+YHxn6jelHcBsjeiR5Xu8O6VGTfWeNV5oujcMdDFreqwIKoi7FE8q14dz8qMKQAc392e84qGl373h2Bg4INH8D9A563p5gHY1gAAAABJRU5ErkJggg==",__default__=vue.defineComponent({name:"EcanTable",components:{Skeleton,AButton:antDesignVue.Button,AInput:antDesignVue.Input,ACheckboxGroup:antDesignVue.CheckboxGroup,ATable:antDesignVue.Table,ATableSummary:antDesignVue.TableSummary,ATableSummaryRow:antDesignVue.TableSummaryRow,ATableSummaryCell:antDesignVue.TableSummaryCell,DownOutlined:DownOutlined$1,RightOutlined:RightOutlined$1,MarqueeScroll},props:{...tableComponentProps},setup(e,{expose:n}){const{pageMode:r}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),i=vue.ref(!1),a=vue.computed(()=>vue.unref(r)!=="design"&&e.isAutoScroll),o=vue.ref({}),s=vue.ref(!1),l=vue.computed(()=>{const Q=lodashEs.cloneDeep(e.columns);return e.isUseSeq&&Q.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Q.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),Q}),c=vue.ref(),u=vue.ref(!1),f=usePickComponentStyle(e),x=vue.ref([]),h=vue.computed(()=>e.scrollX),g=vue.ref(parseFloat(e.height)),v=()=>{let Q=0;switch(e.size){case"small":Q=50;break;case"middle":Q=53;break;default:Q=65;break}return Q},m=vue.ref(0),C=vue.ref(""),b=vue.ref(0);vue.watchEffect(()=>{var Q;(Q=x.value)!=null&&Q.length&&e.height&&setTimeout(()=>{let te=parseFloat(e.height),ie=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),ue=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`);const le=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let ce=0;if(ue&&(te-=(ue==null?void 0:ue.clientHeight)||0),le&&e.isSummaryFixed&&(ce=(le==null?void 0:le.clientHeight)||0,te-=ce),e.paginationShow&&!e.isAutoScroll){let oe=0;oe=v(),oe&&(te-=oe)}(ie==null?void 0:ie.clientHeight)>te?g.value=te:g.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(g)&&(g.value=te+ce-me)}e.isAutoScroll&&i.value&&setTimeout(()=>{var be;const oe=document.querySelector(`#ecanTable-${e.id} .ant-table-body`);ie=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),ue=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`);const me=oe||ie;m.value=(me==null?void 0:me.clientHeight)||0,b.value=(ue==null?void 0:ue.clientHeight)||0,o.value={height:((ie==null?void 0:ie.clientHeight)||0)+"px"};const xe=document.querySelector(`#ecanTable-${e.id} .ant-table-body > table`);if(C.value=(be=document.querySelector(`#ecanTable-${e.id} .ant-table`))==null?void 0:be.className,xe){const we=xe.cloneNode(!0);xe.style.visibility="hidden",setTimeout(()=>{me==null||me.setAttribute("id","hiddenTableBody")},0);const Me=document.querySelectorAll(`#ecanTable-${e.id} .scroll-wrap`);if(Me!=null&&Me.length){for(const Ue of Me)Ue.append(we.cloneNode(!0));const $e=document.querySelectorAll(`#ecanTable-${e.id} .scroll-wrap .ant-table-cell`);if($e!=null&&$e.length)for(const Ue of $e)d(Ue);const We=document.querySelector(`#ecanTable-${e.id} .vue3-marquee`);We&&We.addEventListener("scroll",Ue=>{var Ke;document.querySelector(`#ecanTable-${e.id} .ant-table-header`).scrollLeft=((Ke=Ue==null?void 0:Ue.target)==null?void 0:Ke.scrollLeft)||0})}}},0)})},0)});function d(Q){Q.addEventListener("click",te=>{const ue=p(te.target).getAttribute("dix");if(ue){const le=document.querySelector(`#ecanTable-${e.id} #hiddenTableBody td[dix="${ue}"]`);le&&le.click()}})}function p(Q){return Q.className.includes("ant-table-cell")?Q:p(Q.parentElement)}const y=vue.ref([]),E=vue.ref([]),k=vue.ref([]),A=vue.ref([]),T=vue.ref(0),D=vue.ref(1),I=vue.ref(e.paginationPageSize||10),B=vue.reactive([]),O=(Q,te)=>{let ie="";return Q.forEach((ue,le)=>{const{value:ce,rule:oe}=ue;ue.conditions?ie+=`(${O(ue.conditions,ue.join)})`:ce&&oe&&(ie+=`value ${oe} '${ce}'`),ie+=`${le===Q.length-1?"":te?" "+te+" ":""}`}),ie},L=(Q=[])=>{var te,ie;if(Array.isArray(Q)&&Q.length>0){let ue=Q.length;const le=e.columnsFixedNum;if(e.dataType==="indicator"&&((te=vue.unref(l))!=null&&te.length)&&!vue.unref(l).find(ce=>{var oe;return(oe=ce.children)==null?void 0:oe.length})){const{graphicConfig:{indicators:ce=[]}}=e;Q.forEach((oe,me)=>{if(vue.unref(l)[me])for(const we in vue.unref(l)[me])["dataIndex","title"].includes(we)||(oe[we]=vue.unref(l)[me][we]);const xe=ce.find(we=>we.label===oe.title),{showLabel:be=""}=xe||{};be&&(oe.title=be)})}for(let ce=ue-1;ce>=0;ce--)(ie=Q[ce])!=null&&ie.isHidden&&Q.splice(ce,1);ue=Q.length;for(let ce=0;ce<ue;ce++){const oe=Q[ce];if(ce<le?oe.fixed="left":oe.fixed=!1,e.isSortByFront&&oe.sorter){const Ye=oe.dataIndex;oe.sorter=(Je,Xe)=>Je[Ye]-Xe[Ye]}const{cellAlign:me="center",cellColor:xe,dataIndex:be,title:we,tableFilter:Me,headerCellAlign:$e,headerCellColor:We,overflow:Ue,conditions:Ke}=oe;Me&&(B.push(be),oe.filterOptionsInputValue="",oe.filterCheckboxGroupValue=[],oe.customFilterDropdown=!0,oe.onFilter=(Ye,Je)=>Je[be].toString().toLowerCase().includes(Ye.toLowerCase())),Ke&&(oe.conditionCode=O(Ke)),oe.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:$e||"center",color:We||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),oe.customCell=(Ye,Je,Xe)=>({style:{textAlign:me,color:H(Xe)?e.linkTextColor:xe||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:vue.unref(fe)===Je&&e.clickHighlight,linkText:H(Xe)},dix:Xe.dataIndex+"_"+Je,onClick:Z("click",()=>{const tt=e.id,rt=X(tt);Ye={dataIndex:be,title:we,...Ye},K(tt,{...rt,type:e.type,RECORD:Ye}),fe.value=Je,setTimeout(()=>{if(!e.linkPage&&!e.href)return;let nt=!1;(H(Xe)||e.clickTarget!=="cell")&&(nt=!0),nt&&handleJumpLink(e,{pageMode:vue.unref(r),getRecordValueByKeyName:ee})},0)})}),Ue==="ellipsis"?oe.ellipsis=!0:oe.ellipsis=!1,Array.isArray(oe.children)&&L(oe.children)}}};function H(Q){let te=!1;return e.clickTarget==="cell"&&e.clickTargetColumns.includes(Q.dataIndex)&&(te=!0),te}const N=(Q=[])=>{var ie;let te=lodashEs.cloneDeep(Q);return(ie=vue.unref(A))!=null&&ie.length&&(te=lodashEs.cloneDeep(vue.unref(A))),e.isUseSeq&&te.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&te.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),L(te),te};vue.watch(I,()=>{D.value=1,ye(!1)}),vue.watch(c,Q=>{u.value=!!Q}),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],()=>{y.value=N(lodashEs.cloneDeep(e.columns))},{immediate:!0,deep:!0}),vue.watch(()=>[e.data,e.dataType],([Q,te])=>{te==="static"&&(E.value=Q)},{immediate:!0});const P=vue.ref({}),M=Q=>{if(Array.isArray(Q)){const te=Q.length,ie=B,ue=ie.length,le={};for(let oe=0;oe<te;oe++){const me=Q[oe];for(let xe=0;xe<ue;xe++){const be=ie[xe];if(le[be])le[be].add(me[be]);else{const we=new Set;we.add(me[be]),le[be]=we}}}const ce={};for(const oe in le)if(Object.prototype.hasOwnProperty.call(le,oe)){const me=le[oe],xe=Array.from(me);ce[oe]=xe.map(be=>({label:be,value:be}))}P.value=ce}};vue.watch(()=>[e.isReverse,y.value,E.value],()=>{const Q=vue.unref(y),te=vue.unref(E);if(M(te),e.isReverse){const{columns:ie,dataSource:ue}=w(lodashEs.cloneDeep(Q),lodashEs.cloneDeep(te));k.value=ie,x.value=ue.map(le=>({key:nanoid(6),...le}))}else k.value=Q,x.value=te.map(ie=>({key:nanoid(6),...ie}))},{immediate:!0});const w=(Q,te)=>{const ie=Q[0],ue=[{title:ie.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ce=0;ce<te.length;ce++){const oe=te[ce],me="col"+(ce+1);ue.push({title:oe[ie.dataIndex],dataIndex:me,key:me,align:"center"})}const le=[];for(let ce=1;ce<Q.length;ce++){const oe=Q[ce],me={col0:oe.title};for(let xe=0;xe<te.length;xe++){const be=te[xe];me[`col${xe+1}`]=be[oe.dataIndex]}le.push(me)}return{columns:ue,dataSource:le}},S=vue.ref(""),R=Q=>{var ue;const{rows:te=[],total:ie=0}=((ue=Q==null?void 0:Q.data)==null?void 0:ue.data)||{};if(T.value=ie,Array.isArray(te)&&(E.value=te),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:le=[]}=e,ce=le.find(oe=>oe.key==="dataSqlId");if((ce==null?void 0:ce.value)==="xt_jxzebg"){const oe=te.filter(me=>!me.绩效总额).map(me=>me.ORG_NAME);oe!=null&&oe.length&&vue.nextTick(()=>{antDesignVue.notification.warning({message:"提示",description:`当前时段${oe.join("、")}绩效数据为空`,duration:3})})}}i.value=!0},_=useRequestData(e),V=async(Q=!0,te={})=>{try{Q&&(s.value=!0),vue.unref(S)&&(te.orderCondition=vue.unref(S)),e.paginationShow&&(te={pageNum:vue.unref(D),pageSize:vue.unref(I)||"10",layer:"1",...te});const ie=await _(te);R(ie)}catch(ie){console.error(ie)}finally{s.value=!1}},$=({current:Q},te,ie)=>{if(D.value=Q,ie&&Object.keys(ie).length>0){const{field:ue,order:le}=ie,oe={ascend:"asc",descend:"desc"}[le];ue!=null&&oe!=null&&oe?S.value=ue+" "+oe:oe||(S.value="")}e.isSortByFront||ye(!1)},F=vue.computed(()=>{const Q=e.simple,te=[e.paginationPosition],ie={};return e.isShowTotal&&(ie.showTotal=ue=>`共 ${ue} 条数据`),e.paginationShow&&{simple:Q,position:te,total:vue.unref(T),current:vue.unref(D),pageSize:vue.unref(I)||"10",showSizeChanger:!1,size:"large",...ie}}),q=Q=>+Q==1?"是":+Q==0?"否":Q,U=(Q,te)=>{const{format:ie,retentiondigit:ue,customFormatter:le,defaultVal:ce}=te;let oe="";if(ie==null||ie==="")oe=Q;else{const me={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,boolean:q,decimals:formatDecimals,custom:formatCustom};me[ie]||(oe=""),ie==="decimals"?oe=me[ie](Q,ue)||"":ie==="custom"?oe=me[ie](Q,le)||"":oe=me[ie](Q)||""}return oe||(oe=ce),oe},j=Q=>Q==="contrast"?"upDown":"",W=Q=>{const{text:te,format:ie,declineColor:ue="#39cf93",increaseColor:le="#ff512e"}=Q;if(ie==="contrast"){const ce={fontSize:e.fontSize},oe=parseFloat(te+"");return oe>=0?ce.color=le:oe<0&&(ce.color=ue),ce}else return{}},G=vue.computed(()=>{const{fontSize:Q}=e;return{width:Q,height:Q,textIndent:`-${parseFloat(Q)*2}px`,overflow:"hidden"}}),Y=Q=>{const{text:te,declineColor:ie="#39cf93",increaseColor:ue="#ff512e"}=Q,{fontSize:le}=e,ce=parseFloat(te+""),oe={width:le,verticalAlign:"unset"};return ce>=0?oe.filter=`drop-shadow(${ue||"#ff512e"} ${le} -1px)`:ce<0&&(oe.filter=`drop-shadow(${ie||"#39cf93"} ${le} -1px)`),oe},J=Q=>{const te=parseFloat(Q+"");if(te>=0)return goUp;if(te<0)return goDown},Z=useEmitEvent(e),{getGlobalModel:X,setGlobalModel:K,getRecordValueByKeyName:ee}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Q=>{},setGlobalModel:(Q,te)=>{},getRecordValueByKeyName:Q=>{}});K(e.id,{type:e.type,RECORD:""});const ne=(Q=[],te=[])=>{let ie=Q.map(ue=>({title:ue,dataIndex:ue,key:ue}));vue.unref(l).find(ue=>{var le;return(le=ue.children)==null?void 0:le.length})&&(ie=lodashEs.cloneDeep(vue.unref(l))),A.value=lodashEs.cloneDeep(ie),y.value=N(ie),E.value=te,i.value=!0},re=Q=>{var te,ie,ue,le;ne((ie=(te=Q==null?void 0:Q.data)==null?void 0:te.data)==null?void 0:ie.columns,(le=(ue=Q==null?void 0:Q.data)==null?void 0:ue.data)==null?void 0:le.rows)},ae=useIndicatorData(e,re),se=async(Q=!0)=>{try{Q&&(s.value=!0);const te=vue.unref(S).split(" "),ie={};e.isSortByFront||(ie.sort={order:te[1],field:te[0]});const ue=await ae(ie);re(ue)}catch(te){console.error(te)}finally{s.value=!1}},fe=vue.ref(-1),{loadedData:he}=vue.inject(LOADED_DATA,{loadedData:{}}),ge=vue.ref(!1);vue.watch(he,Q=>{if(e.dataType==="indicator"){const te=getFixedValueDatas(e.graphicConfig);te!=null&&te.length&&(!vue.unref(ge)&&canRequestIndicator(e.graphicConfig,Q)?(ge.value=!0,ye()):canRequestIndicator(e.graphicConfig,Q)||(ge.value=!1))}},{deep:!0});const ye=(Q=!0)=>{switch(e.dataType){case"request":V(Q);break;case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(he))&&se(Q);break}},Ce=()=>{const Q=e.id,te=X(Q);K(Q,{...te,type:e.type,RECORD:""})},Te=vue.computed(()=>{const Q=vue.unref(k);let te=0;const{subTotalColumn:ie,subTotalName:ue}=e;ie&&(te=Q.findIndex(xe=>xe.dataIndex===ie),te<0&&(te=0));const le=[];let ce=0;for(let xe=0;xe<Q.length;xe++){const be=Q[xe],{isCalcTotal:we}=be;xe===te?le.push({...be,total:ue}):we?(le.push({...be,index:xe,total:0}),ce++):le.push({...be})}if(ce===0)return[];const oe=vue.unref(x),me=Se(le);for(let xe=0;xe<me.length;xe++){const be=me[xe];let we=0;const{isCalcTotal:Me,dataIndex:$e}=be;if(Me===!0){for(let We=0;We<oe.length;We++){const Ke=+oe[We][$e];isNaN(Ke)||(we=new big_js.Big(we).add(Ke).toNumber())}be.total=we}}return me});function Se(Q){var ie;const te=[];for(const ue of Q)(ie=ue.children)!=null&&ie.length?te.push(...Se(ue.children)):te.push(ue);return te}const{setRequest:ke}=vue.inject(REQUEST_MODEL,{setRequest:Q=>{}});typeof ke=="function"&&ke({id:e.id,requestFn:ye,sortNum:e.requestSort}),n({refreshData:ye});const Ge=(Q="",te)=>useVariablesInText(Q,te),Ve=Q=>{if(Q!=="event")return{self:"_self",blank:"_blank"}[Q]},de=(Q,te="")=>{Q==="event"&&window.parent.postMessage({type:"openPage",url:te},"*")},ve=(Q,te)=>{Q(te.filterCheckboxGroupValue)},pe=(Q,te)=>{Q({confirm:!0}),te.filterOptionsInputValue="",te.filterCheckboxGroupValue=[]},Ae=()=>{},_e=Q=>{const te=Q.dataIndex;if(typeof te=="string"){let ie=vue.unref(P)[te];const ue=vue.unref(Q.filterOptionsInputValue).trim();return Array.isArray(ie)?(ie=ie.filter(le=>typeof le.label=="string"?le.label.toLowerCase().includes(ue.toLowerCase()):!0),ie):[]}return[]},De=async()=>{var be,we;const Q="EXPORT_KEY";antDesignVue.message.loading({key:Q,content:"正在导出...",duration:0});let te=[];if(e.dataType==="static")te=e.data;else if(e.dataType==="request"){const Me={layer:"1"};vue.unref(S)&&(Me.orderCondition=vue.unref(S));const $e=await _(Me);te=((we=(be=$e==null?void 0:$e.data)==null?void 0:be.data)==null?void 0:we.rows)||{}}const ie=vue.unref(k),ue=[],le=[];ie==null||ie.forEach(Me=>{ue.push(Me.dataIndex),le.push(Me.title)});const ce=te.map(Me=>lodashEs.pick(Me,ue)),oe=xlsx.utils.book_new(),me=xlsx.utils.aoa_to_sheet([le]),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:Q,content:"导出成功"})},Ne=(Q,te=2)=>{const ie=+Q*100;return isNaN(ie)||ie<=0?0:ie>=100?100:ie.toFixed(te)};useOnEvent(e,{resetRecord:Ce,refreshData:ye,exportTableData:De});const He=(Q,te)=>{let ie=null;return e.stripedShow&&(ie=te%2===1?"table-striped":null),ie},ze=vue.computed(()=>{let Q=0;const{height:te,isPageBottom:ie}=e;return ie&&te&&(Q=parseFloat(te)-v()),Q?Q+"px":"100%"}),Ie=vue.computed(()=>{let Q="#071655";return e.headerBackgroundColor&&(Q="transparent"),Q}),je=vue.computed(()=>{let Q="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(Q="transparent"),Q}),Fe=vue.computed(()=>parseFloat(e.fontSize)+16),Pe=vue.computed(()=>{let Q="";const{paginationColor:te,paginationBgColor:ie,activePaginationColor:ue,activePaginationBgColor:le,hoverBackgroundColor:ce}=e;return te&&(Q+="p-color "),ie&&(Q+="p-bg-color "),ue&&(Q+="active-p-color "),le&&(Q+="active-p-bg-color "),ce&&(Q+="hover-bg-color "),Q}),Be=(Q,te)=>{const{conditionCode:ie}=Q;return runCode(ie,{value:te})};return{x:h,y:g,style:f,pagination:F,formatFn:U,contrastClass:j,tableChange:$,summaryList:Te,loading:s,onTouchHrefEvent:de,handleHref:Ge,handleHrefTarget:Ve,useRowIndex:fe,tableColumns:k,tableDataSource:x,useFilterOptions:_e,useSetSelectedKeys:ve,onResetFilter:pe,onSearchFilterOptions:Ae,exportTableData:De,handleProgressText:Ne,pageSizeVisible:u,pageSize:I,tableRef:c,rowClassName:He,tableHeight:ze,tableHeaderBgColor:Ie,tableBodyBgColor:je,getChgStyle:W,chgBoxStyle:G,getChgBoxImgStyle:Y,getChgBoxImgSrc:J,seqIcon1,seqIcon2,seqIcon3,iconSize:Fe,containerClass:Pe,getCellStyle:(Q,te)=>{const{overflow:ie,conditionCode:ue,attribute:le}=Q,ce={};return ie==="ellipsis"&&(ce.overflow="hidden",ce.textOverflow="ellipsis"),ue&&(le!=null&&le.color)&&Be(Q,te)&&(ce.color=le.color),le!=null&&le.icon&&(Q==null?void 0:Q.cellAlign)==="right"&&(ce.display="flex",ce.alignItems="center",ce.justifyContent="flex-end"),ce},isMatchCondition:Be,getAttrImgSrc:Q=>{const{attribute:te}=Q;let ie="";return te!=null&&te.icon&&(ie=useImagePath(te.icon)),ie},getAttrImgStyle:Q=>{let te={};return(Q==null?void 0:Q.cellAlign)==="right"?te={marginRight:"5px"}:te={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(e.fontSize)+6+"px",...te}},getCellText:(Q,te)=>Q||Q===0?Q:te==null?void 0:te.defaultVal,autoScrollHeight:m,autoScrollClass:C,autoScrollTop:b,isScroll:a,scrollWrapStyle:o,isLinkStyle:H}}}),__injectCSSVars__=()=>{vue.useCssVars(e=>({"6ceefd0e":e.stripedColor,"78d8a970":e.tableHeaderBgColor,"070f3c7b":e.tableBodyBgColor,"58aa13b7":e.paginationBgColor,"496bbf3c":e.paginationColor,f254f1de:e.activePaginationBgColor,"929f7dd4":e.activePaginationColor,"6b774af4":e.hoverBackgroundColor}))},__setup__=__default__.setup;__default__.setup=__setup__?(e,n)=>(__injectCSSVars__(),__setup__(e,n)):__injectCSSVars__;const Table_vue_vue_type_style_index_0_scoped_6c429f32_lang="",Table_vue_vue_type_style_index_1_lang="",_withScopeId=e=>(vue.pushScopeId("data-v-6c429f32"),e=e(),vue.popScopeId(),e),_hoisted_1$1=["id"],_hoisted_2$1={key:0,class:"table-tool"},_hoisted_3=vue.createTextVNode("导出数据"),_hoisted_4={key:0,style:{float:"left","margin-right":"5px"}},_hoisted_5={key:1,style:{float:"left","margin-right":"5px",visibility:"hidden"}},_hoisted_6=vue.createTextVNode(" 搜索 "),_hoisted_7=vue.createTextVNode(" 重置 "),_hoisted_8=["src","width","height"],_hoisted_9=["src","width","height"],_hoisted_10=["src","width","height"],_hoisted_11={key:1},_hoisted_12={key:1,class:"action-list"},_hoisted_13=["href","target","onClick"],_hoisted_14={key:2,class:"progress-cell"},_hoisted_15=["src"],_hoisted_16=["title"],_hoisted_17=["title"],_hoisted_18=["src"],_hoisted_19=["title"],_hoisted_20=["src"],_hoisted_21=["src"],_hoisted_22={class:"ant-pagination-options-quick-jumper"},_hoisted_23=_withScopeId(()=>vue.createElementVNode("span",null,"条 / 页",-1));function _sfc_render$4(e,n,r,i,a,o){const s=vue.resolveComponent("a-button"),l=vue.resolveComponent("down-outlined"),c=vue.resolveComponent("right-outlined"),u=vue.resolveComponent("a-input"),f=vue.resolveComponent("a-checkbox-group"),x=vue.resolveComponent("a-table-summary-cell"),h=vue.resolveComponent("a-table-summary-row"),g=vue.resolveComponent("a-table-summary"),v=vue.resolveComponent("a-table"),m=vue.resolveComponent("marquee-scroll"),C=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(C,{loading:e.loading},{default:vue.withCtx(()=>{var b;return[e.isUseExport?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1,[vue.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:vue.withCtx(()=>[_hoisted_3]),_:1},8,["onClick"])])):vue.createCommentVNode("",!0),vue.createVNode(v,{ref:"tableRef",class:"table",style:vue.normalizeStyle({height:e.tableHeight}),columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,scroll:e.y?{x:e.x,y:e.y}:{x:e.x},pagination:e.isAutoScroll?!1:e.pagination,"row-class-name":e.rowClassName,"show-header":!e.hideTableHeader,indentSize:30,onChange:e.tableChange},{expandIcon:vue.withCtx(d=>{var p;return[(p=d.record.children)!=null&&p.length?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4,[d.expanded?(vue.openBlock(),vue.createBlock(l,{key:0,onClick:y=>d.onExpand(d.record,y)},null,8,["onClick"])):(vue.openBlock(),vue.createBlock(c,{key:1,onClick:y=>d.onExpand(d.record,y)},null,8,["onClick"]))])):(vue.openBlock(),vue.createElementBlock("span",_hoisted_5,[vue.createVNode(l)]))]}),customFilterDropdown:vue.withCtx(({column:d,selectedKeys:p,setSelectedKeys:y,confirm:E,clearFilters:k})=>[vue.createElementVNode("div",{class:"ecan-table-filter",style:vue.normalizeStyle({height:e.filterDropdownHeight})},[vue.createVNode(u,{value:d.filterOptionsInputValue,"onUpdate:value":A=>d.filterOptionsInputValue=A,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),vue.createVNode(f,{value:d.filterCheckboxGroupValue,"onUpdate:value":A=>d.filterCheckboxGroupValue=A,class:"filter-checkbox",options:e.useFilterOptions(d),onChange:A=>e.useSetSelectedKeys(y,d)},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:()=>E()},{default:vue.withCtx(()=>[_hoisted_6]),_:2},1032,["onClick"]),vue.createVNode(s,{size:"small",style:{width:"90px"},onClick:vue.withModifiers(A=>e.onResetFilter(k,d),["stop"])},{default:vue.withCtx(()=>[_hoisted_7]),_:2},1032,["onClick"])])],4)]),bodyCell:vue.withCtx(({column:d,index:p,text:y,record:E})=>{var k,A,T,D,I,B;return[d.dataIndex==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[e.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[p===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,_hoisted_8)):p===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,_hoisted_9)):p>=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(p+1),5)],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_11,vue.toDisplayString(p+1),1))],64)):d.dataIndex==="ACTION"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.actionList,(O,L)=>(vue.openBlock(),vue.createElementBlock("div",{class:"action",key:L},[vue.createElementVNode("a",{href:e.handleHref(O.href,E),target:e.handleHrefTarget(O.target),style:vue.normalizeStyle({color:O.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:H=>e.onTouchHrefEvent(O.target,e.handleHref(O.href,E))},vue.toDisplayString(O.title),13,_hoisted_13)]))),128))])):d.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14,[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({background:d.progressColor||"#1890ff",height:d.progressWidth||"18px",width:`${e.handleProgressText(y,d.progressTextDecimalPlaces)}%`})},null,4),vue.createElementVNode("div",{class:"progress-text",style:vue.normalizeStyle({color:+e.handleProgressText(y)<100?d.progressTextColor||"#333":d.progressFinishedTextColor||"#fff"})},vue.toDisplayString(e.handleProgressText(y,d.progressTextDecimalPlaces))+"% ",5)])):(vue.openBlock(),vue.createElementBlock("div",{key:3,style:vue.normalizeStyle({fontSize:e.fontSize,fontWeight:e.isLinkStyle(d)?"bold":e.fontWeight,...e.getCellStyle(d,y)})},[e.isMatchCondition(d,y)&&(d==null?void 0:d.cellAlign)==="right"&&((k=d==null?void 0:d.attribute)!=null&&k.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:0,style:vue.normalizeStyle(e.getAttrImgStyle(d)),src:e.getAttrImgSrc(d)},null,12,_hoisted_15)):vue.createCommentVNode("",!0),d.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:1,title:((A=d==null?void 0:d.customFormatter)==null?void 0:A.split("{value}")[0])||""},vue.toDisplayString(((T=d==null?void 0:d.customFormatter)==null?void 0:T.split("{value}")[0])||""),9,_hoisted_16)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass([e.contrastClass(d.format)]),style:vue.normalizeStyle(e.getChgStyle({...d,text:y})),title:d.format!=null?e.formatFn(y,d):y},[d.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(e.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(e.getChgBoxImgStyle({...d,text:y})),src:e.getChgBoxImgSrc(y)},null,12,_hoisted_18)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(d.format!=null?e.formatFn(y,d):e.getCellText(y,d)),1)],14,_hoisted_17),d.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:2,title:((D=d==null?void 0:d.customFormatter)==null?void 0:D.split("{value}")[1])||""},vue.toDisplayString(((I=d==null?void 0:d.customFormatter)==null?void 0:I.split("{value}")[1])||""),9,_hoisted_19)):vue.createCommentVNode("",!0),e.isMatchCondition(d,y)&&(d==null?void 0:d.cellAlign)!=="right"&&((B=d==null?void 0:d.attribute)!=null&&B.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:3,style:vue.normalizeStyle(e.getAttrImgStyle(d)),src:e.getAttrImgSrc(d)},null,12,_hoisted_20)):vue.createCommentVNode("",!0)],4))]}),summary:vue.withCtx(()=>[e.summaryList.length>0?(vue.openBlock(),vue.createBlock(g,{key:0,fixed:e.isSummaryFixed},{default:vue.withCtx(()=>[vue.createVNode(h,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.summaryList,(d,p)=>(vue.openBlock(),vue.createBlock(x,{key:p,index:p,style:vue.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:d.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:vue.withCtx(()=>[vue.createElementVNode("span",{class:vue.normalizeClass([e.contrastClass(d.format)]),style:vue.normalizeStyle({...e.getChgStyle({...d,text:d.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[d.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(e.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(e.getChgBoxImgStyle({...d,text:d.total})),src:e.getChgBoxImgSrc(d.total)},null,12,_hoisted_21)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString((d.format!=null||d.format!=="")&&e.formatFn(d.total,d)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):vue.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","scroll","pagination","row-class-name","show-header","onChange"]),e.paginationShow?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[(b=e.tableDataSource)!=null&&b.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":n[0]||(n[0]=d=>e.pageSize=d)},null,512),[[vue.vModelText,e.pageSize]]),_hoisted_23])],8,["to"])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),e.isAutoScroll?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["auto-scroll-content ant-table-wrapper table",e.autoScrollClass]),style:vue.normalizeStyle({width:"100%",position:"absolute",left:"0",height:e.autoScrollHeight+"px",top:e.autoScrollTop+"px",overflow:"auto"})},[vue.createVNode(m,{visible:e.isScroll,step:e.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(e.scrollWrapStyle)},null,4)]),_:1},8,["visible","step"])],6)):vue.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,_hoisted_1$1)}const Table=_export_sfc$1(__default__,[["render",_sfc_render$4],["__scopeId","data-v-6c429f32"]]),EcanTable=withInstall$1(Table),mapProps={...props,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{name}:{value}",tooltipRequestData:{requestUrl:"",requestMethod:"get",requestParams:[]},tooltipBackgroundColor:"#fff",areaStyleKeyName:"",mapAreaStyleConfig:[],legendShow:!1,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"bottom",legendLeft:"right",mapLegendType:"circle",legendTextShow:!0,legendTitle:"",legendTitleColor:"#333",legendTitleFontSize:"16px",legendFrontText:"",legendAfterText:"",legendBoxShadow:""},mapComponentProps=transformToComponentProps(mapProps),mapEvents=["refreshData","click"];core$1.use([renderers.CanvasRenderer,charts.MapChart,charts.ScatterChart,components$1.VisualMapComponent,components$1.TooltipComponent,components$1.GraphicComponent]);const _sfc_main$3=vue.defineComponent({name:"EcanMap",components:{Echarts},props:{...mapComponentProps},setup(e){const n=useRequestData({...e.tooltipRequestData,requestHeaders:{}}),r=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.ref([]),f=vue.computed(()=>e.geoBackgroundImage?{image:vue.unref(s),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),x=vue.computed(()=>{const F=e.symbolImage;return e.symbolImage?"image://"+useImagePath(F):"circle"}),h=F=>{let q=e.tooltipFormatter;const U=q.match(/\{(.+?)\}/g);if(U==null||U.length===0)return q;for(let j=0;j<U.length;j++){const W=U[j];let G=W.slice(1,-1).trim();const Y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,J=G.match(Y);for(let Z=0;Z<J.length;Z++){const X=J[Z],K=F[X];K!=null&&(G=G.replace(X,K))}q=q.replace(W,G)}return q.split(`
|
|
128
|
-
`)},g=vue.ref(!1),v=vue.ref("");let m=new AbortController;const C=(F,q)=>{const U=m.signal;g.value=!0,i.value=F,n({name:F,signal:U}).then(j=>{var W,G;if(j){const Y=((G=(W=j==null?void 0:j.data)==null?void 0:W.data)==null?void 0:G.rows)||[];let J="";for(const Z of Y){const X=h(Z)||[];if(X!=null&&X.length)for(const K of X)J+=`<div style="word-break: break-all;white-space: normal;">${K}</div>`}J=`<div style="max-width:200px;">${J}</div>`,a.value=J,q(vue.unref(v),J)}else U.aborted?a.value="Loading":a.value=F,q(vue.unref(v),a.value);g.value=!1})},b=vue.ref(),d=vue.computed(()=>e.dataType==="request"?b.value:e.data),p=vue.computed(()=>{const F=[],{mapAreaStyleConfig:q}=e;if(q!=null&&q.length)for(const U of q)F.push({...U,key:nanoid(6)});return F}),y=vue.computed(()=>{const F=[];for(const q of vue.unref(p)){let U="";q.value1&&(U+=`value ${q.rule1} ${q.value1}`),q.value2&&(U+=`${q.value1?"&&":""} value ${q.rule2} ${q.value2}`),U&&F.push({rule:U,color:q.color,key:q.key})}return F.reverse()}),E=vue.computed(()=>{var U;const F=[],{areaStyleKeyName:q}=e;if((U=vue.unref(d))!=null&&U.length)for(const j of vue.unref(d)){const W=j[q];if(W||W===0){const G=vue.unref(y).find(Y=>runCode(Y.rule,{value:W}));G&&F.push({name:j.name,itemStyle:{areaColor:vue.unref(u).includes(G.key)?e.geoItemStyleAreaColor:G.color}})}}return F}),k=vue.computed(()=>{const F=e.geoCenter;let q;return typeof F=="string"&&F!==""&&(q=F.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:q,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(U,j,W)=>{v.value=j;const{name:G=""}=U,{requestUrl:Y}=e.tooltipRequestData;if(!Y){let J="",Z=e.tooltipFormatter;Z===""&&(Z="{name}:{value}");const X=vue.unref(d).find(K=>K.name===G);return X?(J+=useVariablesInText(Z,{textData:{name:G,...X}},{useNewline:!0,useSpace:!0}),J):G}if(vue.unref(g))vue.unref(i)!==G&&(m.abort(),m=new AbortController);else{if(vue.unref(i)===G)return vue.unref(a);C(G,W)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:vue.unref(f),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}},regions:E.value},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:vue.unref(x),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:d.value}]}}),A=vue.ref(!1),T=async()=>{var U;A.value=!1;const F=e.mapJson,q=`map-${e.id}`;if(F!=null&&F.path){const j=await request(((U=window==null?void 0:window.config)==null?void 0:U.uploadPath)+F.path);core$1.registerMap(q,(j==null?void 0:j.data)||{})}else core$1.registerMap(q,{});A.value=!0};vue.watch(()=>e.mapJson,()=>{T()},{immediate:!0,deep:!0});const D=async F=>{var j,W,G,Y;const q=(W=(j=F==null?void 0:F.data)==null?void 0:j.data)==null?void 0:W.rows,U=`map-${e.id}`;if(q!=null&&q.path){const J=await request(q.path);core$1.registerMap(U,(J==null?void 0:J.data)||{})}else if(Array.isArray(q))if(b.value=q,(G=q[0])!=null&&G.mapUrl){const J=await request((Y=q[0])==null?void 0:Y.mapUrl);core$1.registerMap(U,(J==null?void 0:J.data)||{})}else core$1.registerMap(U,{});else core$1.registerMap(U,{});vue.nextTick(()=>{A.value=!0})},I=useRequestData(e),B=async()=>{if(e.dataType==="request"){A.value=!1;try{const F=await I();D(F)}catch(F){console.error(F),A.value=!0}}},O=()=>{switch(e.dataType){case"static":T();break;case"request":B();break}},{getGlobalModel:L,setGlobalModel:H}=vue.inject(GLOBAL_MODEL,{getGlobalModel:F=>{},setGlobalModel:(F,q)=>{}}),P=useEmitEvent(e)("click",()=>{const F=L(e.id);H(e.id,{...F,RECORD:vue.unref(r)})});useOnEvent(e,{refreshData:O});const{setRequest:M}=vue.inject(REQUEST_MODEL,{setRequest:F=>{}});typeof M=="function"&&M({id:e.id,requestFn:O,sortNum:e.requestSort});const w=()=>{vue.unref(r)&&P()},S=(F={})=>{F.componentType==="geo"&&F.region?r.value=F.region:r.value=null},R=vue.computed(()=>{const F={},{legendTop:q,legendLeft:U,legendBoxShadow:j}=e;return j&&(F.boxShadow=j),q==="bottom"?F.bottom=0:q==="top"&&(F.top=0),U==="left"?F.left=0:U==="right"&&(F.right=0),F}),_=vue.computed(()=>{const F={};return e.legendOrient==="vertical"&&(F.flexDirection="column"),F}),V=vue.computed(()=>{var F;if((F=vue.unref(p))!=null&&F.length){const q=[];for(const U of vue.unref(p)){const{value1:j,value2:W,rule1:G,rule2:Y,color:J}=U;j&&W?+j<+W?G.includes(">")&&Y.includes("<")&&q.push({text:`${j} - ${W}`,color:J,key:U.key}):+j>+W?G.includes("<")&&Y.includes(">")&&q.push({text:`${W} - ${j}`,color:J,key:U.key}):+j==+W&&q.push({text:`${j} - ${W}`,color:J,key:U.key}):j?q.push({text:`${G} ${j}`,color:J,key:U.key}):W&&q.push({text:`${Y} ${W}`,color:J,key:U.key})}return q}else return[]});return{option:k,style:o,isLoadedData:A,geoBackgroundImageRef:s,myGeoBackgroundImage:l,mapLegendStyle:R,legendContainerStyle:_,mapLegendList:V,hiddenLegendKey:u,customClick:w,onMouseOver:S,handleToggleVisible:F=>{const q=vue.unref(u).findIndex(U=>U===F);q>=0?u.value.splice(q,1):u.value.push(F)}}}}),Map_vue_vue_type_style_index_0_scoped_b045403e_lang="",_hoisted_1=["src"],_hoisted_2=["title","onClick"];function _sfc_render$3(e,n,r,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]]),e.legendShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"map-legend",style:vue.normalizeStyle(e.mapLegendStyle)},[vue.createElementVNode("div",{class:"legend-title",style:vue.normalizeStyle({color:e.legendTitleColor,fontSize:e.legendTitleFontSize})},vue.toDisplayString(e.legendTitle),5),vue.createElementVNode("div",{class:"legend-container",style:vue.normalizeStyle(e.legendContainerStyle)},[vue.createElementVNode("div",{style:vue.normalizeStyle({color:e.legendTextStyleColor,marginRight:e.legendOrient==="horizontal"?"5px":"",marginBottom:e.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(e.legendFrontText),5),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.mapLegendList,(l,c)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["legend-item",{hidden:e.hiddenLegendKey.includes(l.key)}]),style:vue.normalizeStyle({marginRight:e.legendOrient==="horizontal"?"10px":"",marginLeft:e.legendOrient==="horizontal"?"10px":"",marginBottom:e.legendOrient==="vertical"?"10px":"",marginTop:e.legendOrient==="vertical"?"10px":""}),key:c,title:e.legendTextShow?"":l.text,onClick:u=>e.handleToggleVisible(l.key)},[vue.createElementVNode("div",{class:"color-block",style:vue.normalizeStyle({backgroundColor:l.color,width:"20px",height:e.mapLegendType==="rect"?"16px":"20px",borderRadius:e.mapLegendType==="circle"?"50%":"4px"})},null,4),e.legendTextShow?(vue.openBlock(),vue.createElementBlock("span",{key:0,class:"legend-item-text",style:vue.normalizeStyle({color:e.legendTextStyleColor,marginLeft:"10px"})},vue.toDisplayString(l.text),5)):vue.createCommentVNode("",!0)],14,_hoisted_2))),128)),vue.createElementVNode("div",{style:vue.normalizeStyle({color:e.legendTextStyleColor,marginLeft:e.legendOrient==="horizontal"?"5px":"",marginTop:e.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(e.legendAfterText),5)],4)],4)):vue.createCommentVNode("",!0)],4)}const Map$1=_export_sfc$1(_sfc_main$3,[["render",_sfc_render$3],["__scopeId","data-v-b045403e"]]),EcanMap=withInstall$1(Map$1),dataSelectProps={...props,name:"下拉框选择器-数据",keyName:"下拉框选择器-数据",width:"120px",height:"33px",type:"ecanDataSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},dataSelectComponentProps=transformToComponentProps(dataSelectProps),dataSelectEvents=["selectChange","refreshData"],_sfc_main$2=vue.defineComponent({name:"EcanDataSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption},props:{...dataSelectComponentProps},setup(e,{expose:n}){const r=usePickComponentStyle(e),i=()=>document.getElementById("ProviderConfig")||document.body,a=vue.ref(e.data||[]),o=vue.ref(),s=vue.computed({get:()=>{var H;const{mode:L}=e;return(H=vue.unref(a))!=null&&H.length?o.value:L==="multiple"||L==="tags"||L==="combobox"?[]:""},set:L=>{o.value=L}}),{getGlobalModel:l,setGlobalModel:c,getRecordValueByKeyName:u}=vue.inject(GLOBAL_MODEL,{getGlobalModel:L=>{},setGlobalModel:(L,H)=>{},getRecordValueByKeyName:L=>{}}),f=e.dataFieldNames;vue.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,a.value],()=>{const{mode:L,selectFirstOption:H,value:N}=e,P=u(N),M=f.value;if(L==="multiple"||L==="tags"||L==="combobox"){if(P)o.value=P.split(",");else if(H){const w=vue.unref(a)[0];o.value=w?[w[M]]:[]}}else if(P)o.value=P;else if(H){const w=vue.unref(a)[0];o.value=w?w[M]:""}},{immediate:!0});const x=(L,H)=>{const N=f.label,P=f.value;let M;const w=H[N],S=H[P];return w!=null?M=w:S!=null&&(M=S),(M==null?void 0:M.toLowerCase().indexOf(L==null?void 0:L.toLowerCase()))>=0},h=L=>{const{label:H,value:N,options:P}=e.dataFieldNames;if(P&&Array.isArray(L))if(L.some(M=>P in M)){const M={},w=[];L.forEach(S=>{M[S[P]]||(M[S[P]]=[]),M[S[P]].push({[H]:S[H],[N]:S[N]})});for(const S in M)w.push({[H]:S,[P]:M[S]});return w}else return L;else if(!P)return L},g=vue.ref(!1),v=L=>{var H,N;if(a.value=h(((N=(H=L==null?void 0:L.data)==null?void 0:H.data)==null?void 0:N.rows)||[]),e.selectFirstOption){let P=vue.unref(a)[0];if(f.options){const M=P[f.options];M&&M.length&&(P=M[0])}o.value=P[f.value]}},m=useRequestData(e),C=async()=>{if(e.dataType==="request"){g.value=!0;try{const L=await m();v(L)}catch(L){console.error(L)}finally{g.value=!1}}},b=vue.computed(()=>{let L=o.value;if(e.valueType==="label"&&vue.unref(o)&&vue.unref(a)){const H=f.label,N=f.value;if(e.mode==="multiple")L=vue.unref(a).filter(P=>vue.unref(o).includes(P[N])).map(P=>P[H]);else{const P=vue.unref(a).find(M=>vue.unref(o)===M[N]);P&&(L=P[H])}}return L}),d=vue.ref([]),p=vue.computed(()=>{const L={};if(e.mode!=="multiple"){const H=vue.unref(d).find(N=>N.value===vue.unref(o));H&&(L.itemCodes=H.item_codes)}return L}),y=vue.computed(()=>{const{value:L,label:H}=f,N=vue.unref(a).find(P=>P[L]===vue.unref(s));return N?{label:N[H],value:N[L]}:{}});c(e.id,{type:e.type,value:b,...vue.unref(p),recordData:vue.unref(y)});const k=useEmitEvent(e)("selectChange",()=>{const L=e.id,H=l(L);c(L,{...H,...vue.unref(p),RECORD:b,recordData:vue.unref(y)})}),A=(L=[])=>{if(a.value=h(L),e.selectFirstOption){let H=vue.unref(a)[0];if(f.options){const N=H[f.options];N&&N.length&&(H=N[0])}o.value=H[f.value]}c(e.id,{type:e.type,value:b,...vue.unref(p),recordData:vue.unref(y)})},T=L=>{var M;const{data:H}=(L==null?void 0:L.data)||{},N=f.label,P=f.value;if(H){const{rows:w=[]}=((M=L==null?void 0:L.data)==null?void 0:M.data)||{};d.value=w;const S=w.map(V=>({[N]:V.label,[P]:V.value})),{id:R}=e,_=l(R);c(R,{..._,...vue.unref(p)}),A(S)}else A([])},D=useIndicatorData(e,T),I=async()=>{try{g.value=!0;const L=await D();T(L)}catch(L){console.error(L)}finally{g.value=!1}},B=()=>{switch(e.dataType){case"indicator":{I();break}case"request":C();break}};useOnEvent(e,{selectChange:k,refreshData:B});const{setRequest:O}=vue.inject(REQUEST_MODEL,{setRequest:({id:L,sortNum:H,requestFn:N})=>{}});return typeof O=="function"&&O({id:e.id,requestFn:B,sortNum:e.requestSort}),n({refreshData:B}),{style:r,getPopupContainer:i,myValue:o,selectChange:k,options:a,filterOption:x,loading:g,resultValue:s}}}),DataSelect_vue_vue_type_style_index_0_scoped_585d4f8a_lang="",DataSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$2(e,n,r,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":n[0]||(n[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$2,[["render",_sfc_render$2],["__scopeId","data-v-585d4f8a"]]),EcanDataSelect=withInstall$1(DataSelect),pivotTableProps={...props,name:"透视表",keyName:"透视表",width:"800px",height:"400px",type:"ecanPivotTable",graphicConfig:{},dataType:"indicator",data:[],dimensionList:[],indicatorList:[]},pivotTableComponentProps=transformToComponentProps(pivotTableProps),pivotTableEvents=["refreshData"],_sfc_main$1=vue.defineComponent({name:"EcanPivotTable",components:{},props:{...pivotTableComponentProps},setup(e,{expose:n}){const r=usePickComponentStyle(e),i=vue.ref(!1),a=vue.ref(),o=vue.ref([]),s=vue.ref([]),{pageMode:l}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),c=p=>{vue.unref(a).refreshData(p)},u=useIndicatorData(e,c),f=async p=>{try{i.value=!0;const y=await u(p);c(y)}catch(y){console.error(y)}finally{i.value=!1}},x=()=>{switch(e.dataType){case"indicator":f();break}},{setRequest:h}=vue.inject(REQUEST_MODEL,{setRequest:({id:p,sortNum:y,requestFn:E})=>{}});typeof h=="function"&&h({id:e.id,requestFn:x,sortNum:e.requestSort}),n({refreshData:x});const v=useEmitEvent(e)("click",()=>{vue.unref(a).click()});useOnEvent(e,{refreshData:x,click:v}),vue.onMounted(()=>{});const m=()=>{const{indicators:p=[]}=e.graphicConfig,y=[];for(const k of vue.unref(o)){const{data:A,indicatorKey:T="",calculateType:D=""}=k||{};y.push({label:A.indicatorKey,columnName:A.indicatorKey,location:"LEFT",show:!0,calcType:"BUILT_IN",builtInFormula:D,builtInValueSource:T})}const E=[];console.log("filterList",s.value);for(const k of vue.unref(s)){const A=p.find(T=>T.label===k.key);A&&E.push({fieldName:A.name,fieldType:A.genericType,fieldValue:k.value,hrpIndexCode:A.indexCode,hrpIndexCodeNum:A.indexCodeNum,id:A.id,label:A.label,rule:k.rule,targetSource:"",typeGuid:""})}f({pivotTableCal:{calc:y,filter:E}})};return{props:e,style:r,pageMode:l,pivotTableRef:a,calculateList:o,click:v,onCalculate:p=>{vue.unref(o).find(y=>y.data.indicatorKey===p.data.indicatorKey)||o.value.push(p),m()},onDeleteCalculate:p=>{const y=vue.unref(o).findIndex(E=>E.data.indicatorKey===p);y!==-1&&o.value.splice(y,1)},onFilter:p=>{const{key:y="",rule:E={}}=p||{},{rule:k,value:A}=E;if(y&&k&&A){const T=s.value.find(D=>D.key===y);T?(T.rule=k,T.value=A):s.value.push({key:y,rule:k,value:A})}else{const T=vue.unref(s).findIndex(D=>D.key===y);T!==-1&&s.value.splice(T,1)}m()}}}}),PivotTableContainer_vue_vue_type_style_index_0_scoped_ec6e5e96_lang="";function _sfc_render$1(e,n,r,i,a,o){const s=vue.resolveComponent("pivot-table");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-pivot-table",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,vue.mergeProps({ref:"pivotTableRef"},e.props,{pageMode:e.pageMode,calculateList:e.calculateList,onCalculate:e.onCalculate,onDeleteCalculate:e.onDeleteCalculate,onFilter:e.onFilter}),null,16,["pageMode","calculateList","onCalculate","onDeleteCalculate","onFilter"])],4)}const PivotTableContainer=_export_sfc$1(_sfc_main$1,[["render",_sfc_render$1],["__scopeId","data-v-ec6e5e96"]]),EcanPivotTable=withInstall$1(PivotTableContainer),valueLineProps={...props,id:"",name:"双值轴折线图",keyName:"双值轴折线图",type:"ecanValueLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:0,value:0,value2:10},{name:10,value:20,value2:35},{name:20,value:30,value2:25},{name:30,value:40,value2:55}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a}:{c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",customPoint:"",axisMarkPoint:[]},valueLineComponentProps=transformToComponentProps(valueLineProps),valueLineEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent,components$1.MarkPointComponent]);const _sfc_main=vue.defineComponent({name:"EcanValueLine",props:{...valueLineComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:n}){const{pageMode:r,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),f=vue.ref({});let x;const h=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,orient:e.toolboxOrient,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 _;o.value=!0,(_=c.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",textStyle:{fontSize:u.value,color:e.tooltipTextStyleColor},show:e.tooltipShow,formatter:_=>{var q;const V=_.length;let $="",F=e.tooltipFormatter;x=(q=_[0])==null?void 0:q.data,F===""&&(F="{marker} {a} {c}");for(let U=0;U<V;U++){const{marker:j,seriesName:W,name:G,value:Y,data:J}=_[U]||{};if(U===0){let Z=G;typeof G=="string"&&G[0]==="0"&&!isNaN(+G)&&(Z=(+G).toString()),$+=`${useValueFormatter(S,Z)}<br/>`}$+=useVariablesInText(F,{textData:{marker:j,a:W,b:Y[0],c:Y[1]||0,...J==null?void 0:J.record}},{useNewline:!0,useSpace:!0}),$+="<br/>"}return $},position:e.tooltipPosition||void 0},xAxis:{type:"value",boundaryGap:e.isBoundaryGap,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{show:e.xAxisLabelShow,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(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(_){return useValueFormatter(R,_)}},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,formatter:_=>getLegendFormat(e.legendFormatter,{name:_})},series:vue.unref(l)}}),g=()=>{o.value=!1},{getGlobalModel:v,setGlobalModel:m,getRecordValueByKeyName:C}=vue.inject(GLOBAL_MODEL,{getGlobalModel:S=>{},setGlobalModel:(S,R)=>{},getRecordValueByKeyName:S=>{}}),b=vue.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),d=(S,R,_,V,$,F,q,U)=>{const j=(-($*U-F*q)/(q-$)+(S*V-R*_)/(_-S))/((V-R)/(_-S)-(U-F)/(q-$)),W=(V-R)/(_-S)*(-($*U-F*q)/(q-$)+(S*V-R*_)/(_-S))/((V-R)/(_-S)-(U-F)/(q-$))-(S*V-R*_)/(_-S);return[j,W]},p=()=>{var _;const S={symbol:"circle",data:[]},{axisMarkPoint:R=[]}=e;for(const V of R){const{coord:$=""}=V,F=[];let q=[];if($.includes("getIntersectPoint")){const U=(_=$.match(/getIntersectPoint\((.*?)\)/)[1])==null?void 0:_.split(",");if((U==null?void 0:U.length)===8){const j=[];for(const W of U){const G=W.replaceAll(" ","");(G==null?void 0:G.slice(0,1))==="{"&&(G==null?void 0:G.slice(-1))==="}"?j.push(+C(G)||0):j.push(+G)}q=d(...j)}}else q=$.split(",");(q==null?void 0:q.length)===2&&(F[0]=+q[0],F[1]=+q[1]),F!=null&&F.length&&S.data.push({coord:F,symbolSize:V.symbolSize,itemStyle:{color:V.pointColor||"transparent",borderWidth:V.borderWidth||"transparent",borderColor:V.borderColor||"transparent"},label:{formatter:V.label,position:V.labelPosition,color:V.labelColor||"transparent"}})}return S},y=S=>{var j,W,G;const R=lodashEs.cloneDeep(S),{graphicConfig:_,customPoint:V=""}=e,$={},F={},{formFields:q={}}=_;let U=[];if(V){U=JSON.parse(V);for(const Y of U)for(const J in Y)typeof Y[J]=="string"&&((j=Y[J])==null?void 0:j.slice(0,1))==="{"&&((W=Y[J])==null?void 0:W.slice(-1))==="}"&&(Y[J]=C(Y[J])||0)}U!=null&&U.length&&R.push(...U),e.dataType==="static"?(F.name="name",F.values=["value","value2"]):(F.name=(q==null?void 0:q.labelField)||"name",F.values=(q==null?void 0:q.valueField)||["value","value2"]);for(const Y of R){const{values:J,name:Z}=F;for(const X of J){const K={value:[Y[Z],Y[X]],record:Y};hasOwn($,X)?$[X].push(K):$[X]=[K]}}if((G=Object.keys($))!=null&&G.length){const Y=[];for(const J in $)Y.push({name:J,data:$[J]});return Y}else return[]},E=(S=[])=>{const R=y(S),_=[],V=R.length;for(let $=0;$<V;$++){const F={},q={};$===0&&(q.markPoint=p()),e.shadowColor&&(F.shadowColor=e.shadowColor,F.shadowBlur=e.shadowBlur,F.shadowOffsetY=e.shadowOffsetY,F.shadowOffsetX=e.shadowOffsetX),_.push({type:"line",...q,...R[$],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[$]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[$],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...F},...vue.unref(b)})}l.value=_},k=(S=[])=>{const R=y(S),_=[],V=R.length;for(let $=0;$<V;$++){const F={};e.shadowColor&&(F.shadowColor=e.shadowColor,F.shadowBlur=e.shadowBlur,F.shadowOffsetY=e.shadowOffsetY,F.shadowOffsetX=e.shadowOffsetX);const q={};$===0&&(q.markPoint=p()),_.push({type:"line",...R[$],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[$]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[$],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...F},...vue.unref(b),...q})}l.value=_};vue.watch(()=>[e.data,e.dataType,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],([S])=>{(e.dataType==="static"||vue.unref(r)==="design")&&E(S)},{immediate:!0,deep:!0});const A=vue.ref(!1),T=useRequestData(e),D=async()=>{var S,R;if(e.dataType==="request")try{A.value=!0;const _=await T();E((R=(S=_==null?void 0:_.data)==null?void 0:S.data)==null?void 0:R.rows)}catch(_){console.error(_)}finally{A.value=!1}},I=useEmitEvent(e);m(e.id,{type:e.type,RECORD:""});const B=I("click",S=>{const R=v(e.id);m(e.id,{...R,type:e.type,RECORD:e.tooltipShow?x:S.data})}),O=S=>{a.value.chart.containPixel("grid",[S.offsetX,S.offsetY])&&B()};e.tooltipShow?f.value["zr:click"]=O:f.value.click=B;const L=S=>{var _;const{rows:R=[]}=((_=S==null?void 0:S.data)==null?void 0:_.data)??{};k(R)},H=useIndicatorData(e,S=>{e.isViewRedrawing&&a.value.clear(),L(S)}),N=async()=>{try{A.value=!0;const S=await H();L(S)}catch(S){console.error(S)}finally{A.value=!1}},P=()=>{switch(e.dataType){case"indicator":N();break;case"request":D();break}};useOnEvent(e,{refreshData:P,resetRecord:()=>{const S=e.id,R=v(S);m(S,{...R,RECORD:""})},click:B});const{setRequest:w}=vue.inject(REQUEST_MODEL,{setRequest:S=>{}});return typeof w=="function"&&w({id:e.id,requestFn:P,sortNum:e.requestSort}),n({refreshData:P}),{option:h,style:s,click:B,loading:A,onClose:g,ecanModal:c,eventObj:f,echartRef:a}}}),ValueLine_vue_vue_type_style_index_0_lang="";function _sfc_render(e,n,r,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-value-line",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 ValueLine=_export_sfc$1(_sfc_main,[["render",_sfc_render]]),EcanValueLine=withInstall$1(ValueLine),components=Object.freeze(Object.defineProperty({__proto__:null,EcanBar,EcanBorder,EcanButton,EcanCheckbox,EcanCirculate,EcanComboGraph,EcanCounter,EcanCustomGraph,EcanDataSelect,EcanDatePicker,EcanIframe,EcanImage,EcanInput,EcanLine,EcanList,EcanMap,EcanModal,EcanPageConfig,EcanPie,EcanPivotTable,EcanProportion,EcanProviderConfig,EcanRadar,EcanRadio,EcanRangePicker,EcanScatter,EcanScrollText,EcanSelect,EcanTable,EcanTabs,EcanTemplate,EcanText,EcanTimeDisplay,EcanTreeSelect,EcanValueLine,barComponentProps,barEvents,barProps,borderComponentProps,borderEvents,borderProps,buttonComponentProps,buttonEvents,buttonProps,checkboxComponentProps,checkboxEvents,checkboxProps,circulateComponentProps,circulateEvents,circulateProps,comboGraphComponentProps,comboGraphEvents,comboGraphProps,counterComponentProps,counterEvents,counterProps,customGraphComponentProps,customGraphProps,dataSelectComponentProps,dataSelectEvents,dataSelectProps,datePickerComponentProps,datePickerEvents,datePickerProps:datePickerProps$1,iframeComponentProps,iframeProps,imageComponentProps,imageEvents,imageProps,inputComponentProps,inputEvents,inputProps,lineComponentProps,lineEvents,lineProps,listComponentProps,listEvents,listProps,mapComponentProps,mapEvents,mapProps,modalComponentProps,modalEvents,modalProps,pageConfig,pageConfigComponentProps,pieComponentProps,pieEvents,pieProps,pivotTableComponentProps,pivotTableEvents,pivotTableProps,proportionComponentProps,proportionEvents,proportionProps,providerConfig,providerConfigComponentProps,radarComponentProps,radarEvents,radarProps,radioComponentProps,radioEvents,radioProps,rangePickerComponentProps,rangePickerEvents,rangePickerProps,scatterComponentProps,scatterEvents,scatterProps,selectComponentProps,selectEvents,selectProps,tableComponentProps,tableEvents,tableProps,tabsComponentProps,tabsEvents,tabsProps:tabsProps$1,templateComponentProps,templateEvents,templateProps,textComponentProps,textEvents,textProps,timeDisplayComponentProps,timeDisplayEvents,timeDisplayProps,treeSelectComponentProps,treeSelectEvents,treeSelectProps,valueLineComponentProps,valueLineEvents,valueLineProps},Symbol.toStringTag,{value:"Module"}));function noop(){}const extend=Object.assign,inBrowser$1=typeof window<"u",isObject$1=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,n){const r=n.split(".");let i=e;return r.forEach(a=>{var o;i=isObject$1(i)&&(o=i[a])!=null?o:""}),i}function pick(e,n,r){return n.reduce((i,a)=>((!r||e[a]!==void 0)&&(i[a]=e[a]),i),{})}const isSameValue=(e,n)=>JSON.stringify(e)===JSON.stringify(n),flat=e=>e.reduce((n,r)=>n.concat(r),[]),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,n)=>({top:0,left:0,right:e,bottom:n,width:e,height:n}),useRect=e=>{const n=vue.unref(e);if(isWindow(n)){const r=n.innerWidth,i=n.innerHeight;return makeDOMRect(r,i)}return n!=null&&n.getBoundingClientRect?n.getBoundingClientRect():makeDOMRect(0,0)};function useParent(e){const n=vue.inject(e,null);if(n){const r=vue.getCurrentInstance(),{link:i,unlink:a,internalChildren:o}=n;i(r),vue.onUnmounted(()=>a(r));const s=vue.computed(()=>o.indexOf(r));return{parent:n,index:s}}return{parent:null,index:vue.ref(-1)}}function flattenVNodes(e){const n=[],r=i=>{Array.isArray(i)&&i.forEach(a=>{var o;vue.isVNode(a)&&(n.push(a),(o=a.component)!=null&&o.subTree&&(n.push(a.component.subTree),r(a.component.subTree.children)),a.children&&r(a.children))})};return r(e),n}var findVNodeIndex=(e,n)=>{const r=e.indexOf(n);return r===-1?e.findIndex(i=>n.key!==void 0&&n.key!==null&&i.type===n.type&&i.key===n.key):r};function sortChildren(e,n,r){const i=flattenVNodes(e.subTree.children);r.sort((o,s)=>findVNodeIndex(i,o.vnode)-findVNodeIndex(i,s.vnode));const a=r.map(o=>o.proxy);n.sort((o,s)=>{const l=a.indexOf(o),c=a.indexOf(s);return l-c})}function useChildren(e){const n=vue.reactive([]),r=vue.reactive([]),i=vue.getCurrentInstance();return{children:n,linkChildren:o=>{const s=c=>{c.proxy&&(r.push(c),n.push(c.proxy),sortChildren(i,n,r))},l=c=>{const u=r.indexOf(c);n.splice(u,1),r.splice(u,1)};vue.provide(e,Object.assign({link:s,unlink:l,children:n,internalChildren:r},o))}}}function onMountedOrActivated(e){let n;vue.onMounted(()=>{e(),vue.nextTick(()=>{n=!0})}),vue.onActivated(()=>{n&&e()})}function useEventListener(e,n,r={}){if(!inBrowser)return;const{target:i=window,passive:a=!1,capture:o=!1}=r;let s=!1,l;const c=x=>{if(s)return;const h=vue.unref(x);h&&!l&&(h.addEventListener(e,n,{capture:o,passive:a}),l=!0)},u=x=>{if(s)return;const h=vue.unref(x);h&&l&&(h.removeEventListener(e,n,o),l=!1)};vue.onUnmounted(()=>u(i)),vue.onDeactivated(()=>u(i)),onMountedOrActivated(()=>c(i));let f;return vue.isRef(i)&&(f=vue.watch(i,(x,h)=>{u(h),c(x)})),()=>{f==null||f(),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,n=defaultRoot){let r=e;for(;r&&r!==n&&isElement(r);){const{overflowY:i}=window.getComputedStyle(r);if(overflowScrollReg.test(i))return r;r=r.parentNode}return n}function useScrollParent(e,n=defaultRoot){const r=vue.ref();return vue.onMounted(()=>{e.value&&(r.value=getScrollParent(e.value,n))}),r}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 n="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(n,0)}function setScrollTop(e,n){"scrollTop"in e?e.scrollTop=n:e.scrollTo(e.scrollX,n)}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,n){if(e===window)return 0;const r=n?getScrollTop(n):getRootScrollTop();return useRect(e).top+r}isIOS();const stopPropagation=e=>e.stopPropagation();function preventDefault(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&stopPropagation(e)}function isHidden(e){const n=vue.unref(e);if(!n)return!1;const r=window.getComputedStyle(n),i=r.display==="none",a=n.offsetParent===null&&r.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 n=addUnit(e);return{width:n,height:n}}}function getZIndexStyle(e){const n={};return e!==void 0&&(n.zIndex=+e),n}let rootFontSize;function getRootFontSize(){if(!rootFontSize){const e=document.documentElement,n=e.style.fontSize||window.getComputedStyle(e).fontSize;rootFontSize=parseFloat(n)}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,(n,r)=>r.toUpperCase()),kebabCase=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");function padZero(e,n=2){let r=e+"";for(;r.length<n;)r="0"+r;return r}const clamp=(e,n,r)=>Math.min(Math.max(e,n),r),{hasOwnProperty}=Object.prototype;function assignKey(e,n,r){const i=n[r];isDef(i)&&(!hasOwnProperty.call(e,r)||!isObject$1(i)?e[r]=i:e[r]=deepAssign(Object(e[r]),i))}function deepAssign(e,n){return Object.keys(n).forEach(r=>{assignKey(e,n,r)}),e}var stdin_default$h={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,n)=>`${e}年${n}月`,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,n){lang.value=e,this.add({[e]:n})},add(e={}){deepAssign(messages,e)}};var stdin_default$g=Locale;function createTranslate(e){const n=camelize(e)+".";return(r,...i)=>{const a=stdin_default$g.messages(),o=get(a,n+r)||get(a,r);return isFunction(o)?o(...i):o}}function genBem(e,n){return n?typeof n=="string"?` ${e}--${n}`:Array.isArray(n)?n.reduce((r,i)=>r+genBem(e,i),""):Object.keys(n).reduce((r,i)=>r+(n[i]?genBem(e,i):""),""):""}function createBEM(e){return(n,r)=>(n&&typeof n!="string"&&(r=n,n=""),n=n?`${e}__${n}`:e,`${n}${genBem(n,r)}`)}function createNamespace(e){const n=`van-${e}`;return[n,createBEM(n),createTranslate(n)]}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:n=[],done:r,canceled:i,error:a}){if(e){const o=e.apply(null,n);isPromise(o)?o.then(s=>{s?r():i&&i()}).catch(a||noop):o?r():i&&i()}else r()}function withInstall(e){return e.install=n=>{const{name:r}=e;r&&(n.component(r,e),n.component(camelize(`-${r}`),e))},e}const POPUP_TOGGLE_KEY=Symbol();function onPopupReopen(e){const n=vue.inject(POPUP_TOGGLE_KEY,null);n&&vue.watch(n,r=>{r&&e()})}function useExpose(e){const n=vue.getCurrentInstance();n&&extend(n.proxy,e)}const routeProps={to:[String,Object],url:String,replace:Boolean};function route({to:e,url:n,replace:r,$router:i}){e&&i?i[r?"replace":"push"](e):n&&(r?location.replace(n):location.href=n)}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:n}){const r=()=>{if(n.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&&r())return n.content?n.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:f}=e,[x,h]=f.split("-");n.default?(typeof u=="number"?l[x]=addUnit(x==="top"?u:-u):l[x]=x==="top"?addUnit(u):a(u),typeof c=="number"?l[h]=addUnit(h==="left"?c:-c):l[h]=h==="left"?addUnit(c):a(c)):(l.marginTop=addUnit(u),l.marginLeft=addUnit(c))}return l}),s=()=>{if(r()||e.dot)return vue.createVNode("div",{class:bem$f([e.position,{dot:e.dot,fixed:!!n.default}]),style:o.value},[i()])};return()=>{if(n.default){const{tag:l}=e;return vue.createVNode(l,{class:bem$f("wrapper")},{default:()=>[n.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 n={};return Object.keys(e).forEach(r=>{const i=insertDash(kebabCase(r));n[`--van-${i}`]=e[r]}),n}function syncThemeVarsOnRoot(e={},n={}){Object.keys(e).forEach(r=>{e[r]!==n[r]&&document.documentElement.style.setProperty(r,e[r])}),Object.keys(n).forEach(r=>{e[r]||document.documentElement.style.removeProperty(r)})}vue.defineComponent({name:name$g,props:configProviderProps,setup(e,{slots:n}){const r=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(r,(o,s)=>{e.themeVarsScope==="global"&&syncThemeVarsOnRoot(o,s)}),vue.watch(()=>e.themeVarsScope,(o,s)=>{s==="global"&&syncThemeVarsOnRoot({},r.value),o==="global"&&syncThemeVarsOnRoot(r.value,{})}),e.themeVarsScope==="global"&&syncThemeVarsOnRoot(r.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"?r.value:void 0},{default:()=>{var i;return[(i=n.default)==null?void 0:i.call(n)]}})}});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:n}){const r=vue.inject(CONFIG_PROVIDER_KEY,null),i=vue.computed(()=>e.classPrefix||(r==null?void 0:r.iconPrefix)||bem$d());return()=>{const{tag:a,dot:o,name:s,size:l,badge:c,color:u}=e,f=isImage(s);return vue.createVNode(Badge,vue.mergeProps({dot:o,tag:a,class:[i.value,f?"":`${i.value}-${s}`],style:{color:u,fontSize:addUnit(l)},content:c},e.badgeProps),{default:()=>{var x;return[(x=n.default)==null?void 0:x.call(n),f&&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,n)=>vue.createVNode("i",{class:bem$c("line",String(n+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:n}){const r=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:r.value},[n.icon?n.icon():o])},a=()=>{var o;if(n.default)return vue.createVNode("span",{class:bem$c("text"),style:{fontSize:addUnit(e.textSize),color:(o=e.textColor)!=null?o:e.color}},[n.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,n){return e>n?"horizontal":n>e?"vertical":""}function useTouch(){const e=vue.ref(0),n=vue.ref(0),r=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",f=()=>{r.value=0,i.value=0,a.value=0,o.value=0,s.value="",l.value=!0};return{move:g=>{const v=g.touches[0];r.value=(v.clientX<0?0:v.clientX)-e.value,i.value=v.clientY-n.value,a.value=Math.abs(r.value),o.value=Math.abs(i.value);const m=10;(!s.value||a.value<m&&o.value<m)&&(s.value=getDirection(a.value,o.value)),l.value&&(a.value>TAP_OFFSET||o.value>TAP_OFFSET)&&(l.value=!1)},start:g=>{f(),e.value=g.touches[0].clientX,n.value=g.touches[0].clientY},reset:f,startX:e,startY:n,deltaX:r,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,n){const r=useTouch(),i="01",a="10",o=f=>{r.move(f);const x=r.deltaY.value>0?a:i,h=getScrollParent(f.target,e.value),{scrollHeight:g,offsetHeight:v,scrollTop:m}=h;let C="11";m===0?C=v>=g?"00":"01":m+v>=g&&(C="10"),C!=="11"&&r.isVertical()&&!(parseInt(C,2)&parseInt(x,2))&&preventDefault(f,!0)},s=()=>{document.addEventListener("touchstart",r.start),document.addEventListener("touchmove",o,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},l=()=>{totalLockCount&&(document.removeEventListener("touchstart",r.start),document.removeEventListener("touchmove",o),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},c=()=>n()&&s(),u=()=>n()&&l();onMountedOrActivated(c),vue.onDeactivated(u),vue.onBeforeUnmount(u),vue.watch(n,f=>{f?s():l()})}function useLazyRender(e){const n=vue.ref(!1);return vue.watch(e,r=>{r&&(n.value=r)},{immediate:!0}),r=>()=>n.value?r():null}const useScopeId=()=>{var e;const{scopeId:n}=((e=vue.getCurrentInstance())==null?void 0:e.vnode)||{};return n?{[n]:""}: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:n}){const r=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:r,style:l,class:[bem$b(),e.className]},[(s=n.default)==null?void 0:s.call(n)]),[[vue.vShow,e.show]])});return useEventListener("touchmove",a,{target:r}),()=>{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:n,attrs:r,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 A=e.position==="center"?"animationDuration":"transitionDuration";k[A]=`${e.duration}s`}return k}),f=()=>{a||(a=!0,s.value=e.zIndex!==void 0?+e.zIndex:useGlobalZIndex(),n("open"))},x=()=>{a&&callInterceptor(e.beforeClose,{done(){a=!1,n("close"),n("update:show",!1)}})},h=k=>{n("clickOverlay",k),e.closeOnClickOverlay&&x()},g=()=>{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:h}),{default:i["overlay-content"]})},v=k=>{n("clickCloseIcon",k),x()},m=()=>{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:v},null)};let C;const b=()=>{C&&clearTimeout(C),C=setTimeout(()=>{n("opened")})},d=()=>n("closed"),p=k=>n("keydown",k),y=c(()=>{var k;const{round:A,position:T,safeAreaInsetTop:D,safeAreaInsetBottom:I}=e;return vue.withDirectives(vue.createVNode("div",vue.mergeProps({ref:l,style:u.value,role:"dialog",tabindex:0,class:[bem$a({round:A,[T]:T}),{"van-safe-area-top":D,"van-safe-area-bottom":I}],onKeydown:p},r,useScopeId()),[(k=i.default)==null?void 0:k.call(i),m()]),[[vue.vShow,e.show]])}),E=()=>{const{position:k,transition:A,transitionAppear:T}=e,D=k==="center"?"van-fade":`van-popup-slide-${k}`;return vue.createVNode(vue.Transition,{name:A||D,appear:T,onAfterEnter:b,onAfterLeave:d},{default:y})};return vue.watch(()=>e.show,k=>{k&&!a&&(f(),r.tabindex===0&&vue.nextTick(()=>{var A;(A=l.value)==null||A.focus()})),!k&&a&&(a=!1,n("close"))}),useExpose({popupRef:l}),useLockScroll(l,()=>e.show&&e.lockScroll),useEventListener("popstate",()=>{e.closeOnPopstate&&(x(),o=!1)}),vue.onMounted(()=>{e.show&&f()}),vue.onActivated(()=>{o&&(n("update:show",!0),o=!1)}),vue.onDeactivated(()=>{e.show&&e.teleport&&(x(),o=!0)}),vue.provide(POPUP_TOGGLE_KEY,()=>e.show),()=>e.teleport?vue.createVNode(vue.Teleport,{to:e.teleport},{default:()=>[g(),E()]}):vue.createVNode(vue.Fragment,null,[g(),E()])}});const Popup=withInstall(stdin_default$b),[name$b,bem$9,t]=createNamespace("picker"),getFirstEnabledOption=e=>e.find(n=>!n.disabled)||e[0];function getColumnsType(e,n){const r=e[0];if(r){if(Array.isArray(r))return"multiple";if(n.children in r)return"cascade"}return"default"}function findIndexOfEnabledOption(e,n){n=clamp(n,0,e.length);for(let r=n;r<e.length;r++)if(!e[r].disabled)return r;for(let r=n-1;r>=0;r--)if(!e[r].disabled)return r;return 0}const isOptionExist=(e,n,r)=>n!==void 0&&!!e.find(i=>i[r.value]===n);function findOptionByValue(e,n,r){const i=e.findIndex(o=>o[r.value]===n),a=findIndexOfEnabledOption(e,i);return e[a]}function formatCascadeColumns(e,n,r){const i=[];let a={[n.children]:e},o=0;for(;a&&a[n.children];){const s=a[n.children],l=r.value[o];if(a=isDef(l)?findOptionByValue(s,l,n):void 0,!a&&s.length){const c=getFirstEnabledOption(s)[n.value];a=findOptionByValue(s,c,n)}o++,i.push(s)}return i}function getElementTranslateY(e){const{transform:n}=window.getComputedStyle(e),r=n.slice(7,n.length-1).split(", ")[5];return Number(r)}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:n,slots:r}){let i,a,o,s,l;const c=vue.ref(),u=vue.ref(),f=vue.ref(0),x=vue.ref(0),h=useTouch(),g=()=>e.options.length,v=()=>e.optionHeight*(+e.visibleOptionNum-1)/2,m=I=>{let B=findIndexOfEnabledOption(e.options,I);const O=-B*e.optionHeight,L=()=>{B>g()-1&&(B=findIndexOfEnabledOption(e.options,I));const H=e.options[B][e.fields.value];H!==e.value&&n("change",H)};i&&O!==f.value?l=L:L(),f.value=O},C=()=>e.readonly||!e.options.length,b=I=>{i||C()||(l=null,x.value=DEFAULT_DURATION,m(I),n("clickOption",e.options[I]))},d=I=>clamp(Math.round(-I/e.optionHeight),0,g()-1),p=vue.computed(()=>d(f.value)),y=(I,B)=>{const O=Math.abs(I/B);I=f.value+O/.003*(I<0?-1:1);const L=d(I);x.value=+e.swipeDuration,m(L)},E=()=>{i=!1,x.value=0,l&&(l(),l=null)},k=I=>{if(!C()){if(h.start(I),i){const B=getElementTranslateY(u.value);f.value=Math.min(0,B-v())}x.value=0,a=f.value,o=Date.now(),s=a,l=null}},A=I=>{if(C())return;h.move(I),h.isVertical()&&(i=!0,preventDefault(I,!0));const B=clamp(a+h.deltaY.value,-(g()*e.optionHeight),e.optionHeight),O=d(B);O!==p.value&&n("scrollInto",e.options[O]),f.value=B;const L=Date.now();L-o>MOMENTUM_TIME&&(o=L,s=B)},T=()=>{if(C())return;const I=f.value-s,B=Date.now()-o;if(B<MOMENTUM_TIME&&Math.abs(I)>MOMENTUM_DISTANCE){y(I,B);return}const L=d(f.value);x.value=DEFAULT_DURATION,m(L),setTimeout(()=>{i=!1},0)},D=()=>{const I={height:`${e.optionHeight}px`};return e.options.map((B,O)=>{const L=B[e.fields.text],{disabled:H}=B,N=B[e.fields.value],P={role:"button",style:I,tabindex:H?-1:0,class:[bem$8("item",{disabled:H,selected:N===e.value}),B.className],onClick:()=>b(O)},M={class:"van-ellipsis",[e.allowHtml?"innerHTML":"textContent"]:L};return vue.createVNode("li",P,[r.option?r.option(B,O):vue.createVNode("div",M,null)])})};return useParent(PICKER_KEY),useExpose({stopMomentum:E}),vue.watchEffect(()=>{const I=i?Math.floor(-f.value/e.optionHeight):e.options.findIndex(L=>L[e.fields.value]===e.value),B=findIndexOfEnabledOption(e.options,I),O=-B*e.optionHeight;i&&B<I&&E(),f.value=O}),useEventListener("touchmove",A,{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, ${f.value+v()}px, 0)`,transitionDuration:`${x.value}ms`,transitionProperty:x.value?"all":"none"},class:bem$8("wrapper"),onTransitionend:E},[D()])])}});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:n,slots:r}){const i=()=>{if(r.title)return r.title();if(e.title)return vue.createVNode("div",{class:[bem$9("title"),"van-ellipsis"]},[e.title])},a=()=>n("cancel"),o=()=>n("confirm"),s=()=>{var c;const u=(c=e.cancelButtonText)!=null?c:t("cancel");if(!(!r.cancel&&!u))return vue.createVNode("button",{type:"button",class:[bem$9("cancel"),HAPTICS_FEEDBACK],onClick:a},[r.cancel?r.cancel():u])},l=()=>{var c;const u=(c=e.confirmButtonText)!=null?c:t("confirm");if(!(!r.confirm&&!u))return vue.createVNode("button",{type:"button",class:[bem$9("confirm"),HAPTICS_FEEDBACK],onClick:o},[r.confirm?r.confirm():u])};return()=>vue.createVNode("div",{class:bem$9("toolbar")},[r.toolbar?r.toolbar():[s(),i(),l()]])}});const useSyncPropRef=(e,n)=>{const r=vue.ref(e());return vue.watch(e,i=>{i!==r.value&&(r.value=i)}),vue.watch(r,i=>{i!==e()&&n(i)}),r};/**
|
|
128
|
+
`)},g=vue.ref(!1),v=vue.ref("");let m=new AbortController;const C=(F,q)=>{const U=m.signal;g.value=!0,i.value=F,n({name:F,signal:U}).then(j=>{var W,G;if(j){const Y=((G=(W=j==null?void 0:j.data)==null?void 0:W.data)==null?void 0:G.rows)||[];let J="";for(const Z of Y){const X=h(Z)||[];if(X!=null&&X.length)for(const K of X)J+=`<div style="word-break: break-all;white-space: normal;">${K}</div>`}J=`<div style="max-width:200px;">${J}</div>`,a.value=J,q(vue.unref(v),J)}else U.aborted?a.value="Loading":a.value=F,q(vue.unref(v),a.value);g.value=!1})},b=vue.ref(),d=vue.computed(()=>e.dataType==="request"?b.value:e.data),p=vue.computed(()=>{const F=[],{mapAreaStyleConfig:q}=e;if(q!=null&&q.length)for(const U of q)F.push({...U,key:nanoid(6)});return F}),y=vue.computed(()=>{const F=[];for(const q of vue.unref(p)){let U="";q.value1&&(U+=`value ${q.rule1} ${q.value1}`),q.value2&&(U+=`${q.value1?"&&":""} value ${q.rule2} ${q.value2}`),U&&F.push({rule:U,color:q.color,key:q.key})}return F.reverse()}),E=vue.computed(()=>{var U;const F=[],{areaStyleKeyName:q}=e;if((U=vue.unref(d))!=null&&U.length)for(const j of vue.unref(d)){const W=j[q];if(W||W===0){const G=vue.unref(y).find(Y=>runCode(Y.rule,{value:W}));G&&F.push({name:j.name,itemStyle:{areaColor:vue.unref(u).includes(G.key)?e.geoItemStyleAreaColor:G.color}})}}return F}),k=vue.computed(()=>{const F=e.geoCenter;let q;return typeof F=="string"&&F!==""&&(q=F.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:q,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(U,j,W)=>{v.value=j;const{name:G=""}=U,{requestUrl:Y}=e.tooltipRequestData;if(!Y){let J="",Z=e.tooltipFormatter;Z===""&&(Z="{name}:{value}");const X=vue.unref(d).find(K=>K.name===G);return X?(J+=useVariablesInText(Z,{textData:{name:G,...X}},{useNewline:!0,useSpace:!0}),J):G}if(vue.unref(g))vue.unref(i)!==G&&(m.abort(),m=new AbortController);else{if(vue.unref(i)===G)return vue.unref(a);C(G,W)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:vue.unref(f),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}},regions:E.value},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:vue.unref(x),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:d.value}]}}),A=vue.ref(!1),T=async()=>{var U;A.value=!1;const F=e.mapJson,q=`map-${e.id}`;if(F!=null&&F.path){const j=await request(((U=window==null?void 0:window.config)==null?void 0:U.uploadPath)+F.path);core$1.registerMap(q,(j==null?void 0:j.data)||{})}else core$1.registerMap(q,{});A.value=!0};vue.watch(()=>e.mapJson,()=>{T()},{immediate:!0,deep:!0});const D=async F=>{var j,W,G,Y;const q=(W=(j=F==null?void 0:F.data)==null?void 0:j.data)==null?void 0:W.rows,U=`map-${e.id}`;if(q!=null&&q.path){const J=await request(q.path);core$1.registerMap(U,(J==null?void 0:J.data)||{})}else if(Array.isArray(q))if(b.value=q,(G=q[0])!=null&&G.mapUrl){const J=await request((Y=q[0])==null?void 0:Y.mapUrl);core$1.registerMap(U,(J==null?void 0:J.data)||{})}else core$1.registerMap(U,{});else core$1.registerMap(U,{});vue.nextTick(()=>{A.value=!0})},I=useRequestData(e),B=async()=>{if(e.dataType==="request"){A.value=!1;try{const F=await I();D(F)}catch(F){console.error(F),A.value=!0}}},O=()=>{switch(e.dataType){case"static":T();break;case"request":B();break}},{getGlobalModel:L,setGlobalModel:H}=vue.inject(GLOBAL_MODEL,{getGlobalModel:F=>{},setGlobalModel:(F,q)=>{}}),P=useEmitEvent(e)("click",()=>{const F=L(e.id);H(e.id,{...F,RECORD:vue.unref(r)})});useOnEvent(e,{refreshData:O});const{setRequest:M}=vue.inject(REQUEST_MODEL,{setRequest:F=>{}});typeof M=="function"&&M({id:e.id,requestFn:O,sortNum:e.requestSort});const w=()=>{vue.unref(r)&&P()},S=(F={})=>{F.componentType==="geo"&&F.region?r.value=F.region:r.value=null},R=vue.computed(()=>{const F={},{legendTop:q,legendLeft:U,legendBoxShadow:j}=e;return j&&(F.boxShadow=j),q==="bottom"?F.bottom=0:q==="top"&&(F.top=0),U==="left"?F.left=0:U==="right"&&(F.right=0),F}),_=vue.computed(()=>{const F={};return e.legendOrient==="vertical"&&(F.flexDirection="column"),F}),V=vue.computed(()=>{var F;if((F=vue.unref(p))!=null&&F.length){const q=[];for(const U of vue.unref(p)){const{value1:j,value2:W,rule1:G,rule2:Y,color:J}=U;j&&W?+j<+W?G.includes(">")&&Y.includes("<")&&q.push({text:`${j} - ${W}`,color:J,key:U.key}):+j>+W?G.includes("<")&&Y.includes(">")&&q.push({text:`${W} - ${j}`,color:J,key:U.key}):+j==+W&&q.push({text:`${j} - ${W}`,color:J,key:U.key}):j?q.push({text:`${G} ${j}`,color:J,key:U.key}):W&&q.push({text:`${Y} ${W}`,color:J,key:U.key})}return q}else return[]});return{option:k,style:o,isLoadedData:A,geoBackgroundImageRef:s,myGeoBackgroundImage:l,mapLegendStyle:R,legendContainerStyle:_,mapLegendList:V,hiddenLegendKey:u,customClick:w,onMouseOver:S,handleToggleVisible:F=>{const q=vue.unref(u).findIndex(U=>U===F);q>=0?u.value.splice(q,1):u.value.push(F)}}}}),Map_vue_vue_type_style_index_0_scoped_b045403e_lang="",_hoisted_1=["src"],_hoisted_2=["title","onClick"];function _sfc_render$3(e,n,r,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]]),e.legendShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"map-legend",style:vue.normalizeStyle(e.mapLegendStyle)},[vue.createElementVNode("div",{class:"legend-title",style:vue.normalizeStyle({color:e.legendTitleColor,fontSize:e.legendTitleFontSize})},vue.toDisplayString(e.legendTitle),5),vue.createElementVNode("div",{class:"legend-container",style:vue.normalizeStyle(e.legendContainerStyle)},[vue.createElementVNode("div",{style:vue.normalizeStyle({color:e.legendTextStyleColor,marginRight:e.legendOrient==="horizontal"?"5px":"",marginBottom:e.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(e.legendFrontText),5),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.mapLegendList,(l,c)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["legend-item",{hidden:e.hiddenLegendKey.includes(l.key)}]),style:vue.normalizeStyle({marginRight:e.legendOrient==="horizontal"?"10px":"",marginLeft:e.legendOrient==="horizontal"?"10px":"",marginBottom:e.legendOrient==="vertical"?"10px":"",marginTop:e.legendOrient==="vertical"?"10px":""}),key:c,title:e.legendTextShow?"":l.text,onClick:u=>e.handleToggleVisible(l.key)},[vue.createElementVNode("div",{class:"color-block",style:vue.normalizeStyle({backgroundColor:l.color,width:"20px",height:e.mapLegendType==="rect"?"16px":"20px",borderRadius:e.mapLegendType==="circle"?"50%":"4px"})},null,4),e.legendTextShow?(vue.openBlock(),vue.createElementBlock("span",{key:0,class:"legend-item-text",style:vue.normalizeStyle({color:e.legendTextStyleColor,marginLeft:"10px"})},vue.toDisplayString(l.text),5)):vue.createCommentVNode("",!0)],14,_hoisted_2))),128)),vue.createElementVNode("div",{style:vue.normalizeStyle({color:e.legendTextStyleColor,marginLeft:e.legendOrient==="horizontal"?"5px":"",marginTop:e.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(e.legendAfterText),5)],4)],4)):vue.createCommentVNode("",!0)],4)}const Map$1=_export_sfc$1(_sfc_main$3,[["render",_sfc_render$3],["__scopeId","data-v-b045403e"]]),EcanMap=withInstall$1(Map$1),dataSelectProps={...props,name:"下拉框选择器-数据",keyName:"下拉框选择器-数据",width:"120px",height:"33px",type:"ecanDataSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},dataSelectComponentProps=transformToComponentProps(dataSelectProps),dataSelectEvents=["selectChange","refreshData"],_sfc_main$2=vue.defineComponent({name:"EcanDataSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption},props:{...dataSelectComponentProps},setup(e,{expose:n}){const r=usePickComponentStyle(e),i=()=>document.getElementById("ProviderConfig")||document.body,a=vue.ref(e.data||[]),o=vue.ref(),s=vue.computed({get:()=>{var H;const{mode:L}=e;return(H=vue.unref(a))!=null&&H.length?o.value:L==="multiple"||L==="tags"||L==="combobox"?[]:""},set:L=>{o.value=L}}),{getGlobalModel:l,setGlobalModel:c,getRecordValueByKeyName:u}=vue.inject(GLOBAL_MODEL,{getGlobalModel:L=>{},setGlobalModel:(L,H)=>{},getRecordValueByKeyName:L=>{}}),f=e.dataFieldNames;vue.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,a.value],()=>{const{mode:L,selectFirstOption:H,value:N}=e,P=u(N),M=f.value;if(L==="multiple"||L==="tags"||L==="combobox"){if(P)o.value=P.split(",");else if(H){const w=vue.unref(a)[0];o.value=w?[w[M]]:[]}}else if(P)o.value=P;else if(H){const w=vue.unref(a)[0];o.value=w?w[M]:""}},{immediate:!0});const x=(L,H)=>{const N=f.label,P=f.value;let M;const w=H[N],S=H[P];return w!=null?M=w:S!=null&&(M=S),(M==null?void 0:M.toLowerCase().indexOf(L==null?void 0:L.toLowerCase()))>=0},h=L=>{const{label:H,value:N,options:P}=e.dataFieldNames;if(P&&Array.isArray(L))if(L.some(M=>P in M)){const M={},w=[];L.forEach(S=>{M[S[P]]||(M[S[P]]=[]),M[S[P]].push({[H]:S[H],[N]:S[N]})});for(const S in M)w.push({[H]:S,[P]:M[S]});return w}else return L;else if(!P)return L},g=vue.ref(!1),v=L=>{var H,N;if(a.value=h(((N=(H=L==null?void 0:L.data)==null?void 0:H.data)==null?void 0:N.rows)||[]),e.selectFirstOption){let P=vue.unref(a)[0];if(f.options){const M=P[f.options];M&&M.length&&(P=M[0])}o.value=P[f.value]}},m=useRequestData(e),C=async()=>{if(e.dataType==="request"){g.value=!0;try{const L=await m();v(L)}catch(L){console.error(L)}finally{g.value=!1}}},b=vue.computed(()=>{let L=o.value;if(e.valueType==="label"&&vue.unref(o)&&vue.unref(a)){const H=f.label,N=f.value;if(e.mode==="multiple")L=vue.unref(a).filter(P=>vue.unref(o).includes(P[N])).map(P=>P[H]);else{const P=vue.unref(a).find(M=>vue.unref(o)===M[N]);P&&(L=P[H])}}return L}),d=vue.ref([]),p=vue.computed(()=>{const L={};if(e.mode!=="multiple"){const H=vue.unref(d).find(N=>N.value===vue.unref(o));H&&(L.itemCodes=H.item_codes)}return L}),y=vue.computed(()=>{const{value:L,label:H}=f,N=vue.unref(a).find(P=>P[L]===vue.unref(s));return N?{label:N[H],value:N[L]}:{}});c(e.id,{type:e.type,value:b,...vue.unref(p),recordData:vue.unref(y)});const k=useEmitEvent(e)("selectChange",()=>{const L=e.id,H=l(L);c(L,{...H,...vue.unref(p),RECORD:b,recordData:vue.unref(y)})}),A=(L=[])=>{if(a.value=h(L),e.selectFirstOption){let H=vue.unref(a)[0];if(f.options){const N=H[f.options];N&&N.length&&(H=N[0])}o.value=H[f.value]}c(e.id,{type:e.type,value:b,...vue.unref(p),recordData:vue.unref(y)})},T=L=>{var M;const{data:H}=(L==null?void 0:L.data)||{},N=f.label,P=f.value;if(H){const{rows:w=[]}=((M=L==null?void 0:L.data)==null?void 0:M.data)||{};d.value=w;const S=w.map(V=>({[N]:V.label,[P]:V.value})),{id:R}=e,_=l(R);c(R,{..._,...vue.unref(p)}),A(S)}else A([])},D=useIndicatorData(e,T),I=async()=>{try{g.value=!0;const L=await D();T(L)}catch(L){console.error(L)}finally{g.value=!1}},B=()=>{switch(e.dataType){case"indicator":{I();break}case"request":C();break}};useOnEvent(e,{selectChange:k,refreshData:B});const{setRequest:O}=vue.inject(REQUEST_MODEL,{setRequest:({id:L,sortNum:H,requestFn:N})=>{}});return typeof O=="function"&&O({id:e.id,requestFn:B,sortNum:e.requestSort}),n({refreshData:B}),{style:r,getPopupContainer:i,myValue:o,selectChange:k,options:a,filterOption:x,loading:g,resultValue:s}}}),DataSelect_vue_vue_type_style_index_0_scoped_585d4f8a_lang="",DataSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$2(e,n,r,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":n[0]||(n[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$2,[["render",_sfc_render$2],["__scopeId","data-v-585d4f8a"]]),EcanDataSelect=withInstall$1(DataSelect),pivotTableProps={...props,name:"透视表",keyName:"透视表",width:"800px",height:"400px",type:"ecanPivotTable",graphicConfig:{},dataType:"indicator",data:[],dimensionList:[],indicatorList:[]},pivotTableComponentProps=transformToComponentProps(pivotTableProps),pivotTableEvents=["refreshData"],_sfc_main$1=vue.defineComponent({name:"EcanPivotTable",components:{},props:{...pivotTableComponentProps},setup(e,{expose:n}){const r=usePickComponentStyle(e),i=vue.ref(!1),a=vue.ref(),o=vue.ref([]),s=vue.ref([]),{pageMode:l}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),c=p=>{vue.unref(a).refreshData(p)},u=useIndicatorData(e,c),f=async p=>{try{i.value=!0;const y=await u(p);c(y)}catch(y){console.error(y)}finally{i.value=!1}},x=()=>{switch(e.dataType){case"indicator":f();break}},{setRequest:h}=vue.inject(REQUEST_MODEL,{setRequest:({id:p,sortNum:y,requestFn:E})=>{}});typeof h=="function"&&h({id:e.id,requestFn:x,sortNum:e.requestSort}),n({refreshData:x});const v=useEmitEvent(e)("click",()=>{vue.unref(a).click()});useOnEvent(e,{refreshData:x,click:v}),vue.onMounted(()=>{});const m=()=>{const{indicators:p=[]}=e.graphicConfig,y=[];for(const k of vue.unref(o)){const{data:A,indicatorKey:T="",calculateType:D=""}=k||{};y.push({label:A.indicatorKey,columnName:A.indicatorKey,location:"LEFT",show:!0,calcType:"BUILT_IN",builtInFormula:D,builtInValueSource:T})}const E=[];console.log("filterList",s.value);for(const k of vue.unref(s)){const A=p.find(T=>T.label===k.key);A&&E.push({fieldName:A.name,fieldType:A.genericType,fieldValue:k.value,hrpIndexCode:A.indexCode,hrpIndexCodeNum:A.indexCodeNum,id:A.id,label:A.label,rule:k.rule,targetSource:"",typeGuid:""})}f({pivotTableCal:{calc:y,filter:E}})};return{props:e,style:r,pageMode:l,pivotTableRef:a,calculateList:o,click:v,onCalculate:p=>{vue.unref(o).find(y=>y.data.indicatorKey===p.data.indicatorKey)||o.value.push(p),m()},onDeleteCalculate:p=>{const y=vue.unref(o).findIndex(E=>E.data.indicatorKey===p);y!==-1&&o.value.splice(y,1)},onFilter:p=>{const{key:y="",rule:E={}}=p||{},{rule:k,value:A}=E;if(y&&k&&A){const T=s.value.find(D=>D.key===y);T?(T.rule=k,T.value=A):s.value.push({key:y,rule:k,value:A})}else{const T=vue.unref(s).findIndex(D=>D.key===y);T!==-1&&s.value.splice(T,1)}m()}}}}),PivotTableContainer_vue_vue_type_style_index_0_scoped_ec6e5e96_lang="";function _sfc_render$1(e,n,r,i,a,o){const s=vue.resolveComponent("pivot-table");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-pivot-table",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,vue.mergeProps({ref:"pivotTableRef"},e.props,{pageMode:e.pageMode,calculateList:e.calculateList,onCalculate:e.onCalculate,onDeleteCalculate:e.onDeleteCalculate,onFilter:e.onFilter}),null,16,["pageMode","calculateList","onCalculate","onDeleteCalculate","onFilter"])],4)}const PivotTableContainer=_export_sfc$1(_sfc_main$1,[["render",_sfc_render$1],["__scopeId","data-v-ec6e5e96"]]),EcanPivotTable=withInstall$1(PivotTableContainer),valueLineProps={...props,id:"",name:"双值轴折线图",keyName:"双值轴折线图",type:"ecanValueLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:0,value:0,value2:10},{name:10,value:20,value2:35},{name:20,value:30,value2:25},{name:30,value:40,value2:55}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a}:{c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",customPoint:"",axisMarkPoint:[],markPointFormatter:"{x}, {y}"},valueLineComponentProps=transformToComponentProps(valueLineProps),valueLineEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent,components$1.MarkPointComponent]);const _sfc_main=vue.defineComponent({name:"EcanValueLine",props:{...valueLineComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:n}){const{pageMode:r,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),f=vue.ref({});let x;const h=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,orient:e.toolboxOrient,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 _;o.value=!0,(_=c.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",textStyle:{fontSize:u.value,color:e.tooltipTextStyleColor},show:e.tooltipShow,formatter:_=>{var q;const V=_.length;let $="",F=e.tooltipFormatter;x=(q=_[0])==null?void 0:q.data,F===""&&(F="{marker} {a} {c}");for(let U=0;U<V;U++){const{marker:j,seriesName:W,name:G,value:Y,data:J}=_[U]||{};if(U===0){let Z=G;typeof G=="string"&&G[0]==="0"&&!isNaN(+G)&&(Z=(+G).toString()),$+=`${useValueFormatter(S,Z)}<br/>`}$+=useVariablesInText(F,{textData:{marker:j,a:W,b:Y[0],c:Y[1]||0,...J==null?void 0:J.record}},{useNewline:!0,useSpace:!0}),$+="<br/>"}return $},position:e.tooltipPosition||void 0},xAxis:{type:"value",boundaryGap:e.isBoundaryGap,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{show:e.xAxisLabelShow,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(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(_){return useValueFormatter(R,_)}},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,formatter:_=>getLegendFormat(e.legendFormatter,{name:_})},series:vue.unref(l)}}),g=()=>{o.value=!1},{getGlobalModel:v,setGlobalModel:m,getRecordValueByKeyName:C}=vue.inject(GLOBAL_MODEL,{getGlobalModel:S=>{},setGlobalModel:(S,R)=>{},getRecordValueByKeyName:S=>{}}),b=vue.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),d=(S,R,_,V,$,F,q,U)=>{const j=(-($*U-F*q)/(q-$)+(S*V-R*_)/(_-S))/((V-R)/(_-S)-(U-F)/(q-$)),W=(V-R)/(_-S)*(-($*U-F*q)/(q-$)+(S*V-R*_)/(_-S))/((V-R)/(_-S)-(U-F)/(q-$))-(S*V-R*_)/(_-S);return[j,W]},p=()=>{var _;const S={symbol:"circle",tooltip:{trigger:"item",formatter:V=>{let $="",F=e.markPointFormatter;F===""&&(F="{x}, {y}");const{data:{coord:q=[]}}=V||{};return $+=useVariablesInText(F,{textData:{x:q[0]||0,y:q[1]||0}},{useNewline:!0,useSpace:!0}),$+="<br/>",$}},data:[]},{axisMarkPoint:R=[]}=e;for(const V of R){const{coord:$=""}=V,F=[];let q=[];if($.includes("getIntersectPoint")){const U=(_=$.match(/getIntersectPoint\((.*?)\)/)[1])==null?void 0:_.split(",");if((U==null?void 0:U.length)===8){const j=[];for(const W of U){const G=W.replaceAll(" ","");(G==null?void 0:G.slice(0,1))==="{"&&(G==null?void 0:G.slice(-1))==="}"?j.push(+C(G)||0):j.push(+G)}q=d(...j)}}else q=$.split(",");(q==null?void 0:q.length)===2&&(F[0]=+q[0],F[1]=+q[1]),F!=null&&F.length&&S.data.push({coord:F,symbolSize:V.symbolSize,itemStyle:{color:V.pointColor||"transparent",borderWidth:V.borderWidth||"transparent",borderColor:V.borderColor||"transparent"},label:{formatter:V.label,position:V.labelPosition,color:V.labelColor||"transparent"}})}return S},y=S=>{var j,W,G;const R=lodashEs.cloneDeep(S),{graphicConfig:_,customPoint:V=""}=e,$={},F={},{formFields:q={}}=_;let U=[];if(V){U=JSON.parse(V);for(const Y of U)for(const J in Y)typeof Y[J]=="string"&&((j=Y[J])==null?void 0:j.slice(0,1))==="{"&&((W=Y[J])==null?void 0:W.slice(-1))==="}"&&(Y[J]=C(Y[J])||0)}U!=null&&U.length&&R.push(...U),e.dataType==="static"?(F.name="name",F.values=["value","value2"]):(F.name=(q==null?void 0:q.labelField)||"name",F.values=(q==null?void 0:q.valueField)||["value","value2"]);for(const Y of R){const{values:J,name:Z}=F;for(const X of J){const K={value:[Y[Z],Y[X]],record:Y};hasOwn($,X)?$[X].push(K):$[X]=[K]}}if((G=Object.keys($))!=null&&G.length){const Y=[];for(const J in $)Y.push({name:J,data:$[J]});return Y}else return[]},E=(S=[])=>{const R=y(S),_=[],V=R.length;for(let $=0;$<V;$++){const F={},q={};$===0&&(q.markPoint=p()),e.shadowColor&&(F.shadowColor=e.shadowColor,F.shadowBlur=e.shadowBlur,F.shadowOffsetY=e.shadowOffsetY,F.shadowOffsetX=e.shadowOffsetX),_.push({type:"line",...q,...R[$],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[$]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[$],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...F},...vue.unref(b)})}l.value=_},k=(S=[])=>{const R=y(S),_=[],V=R.length;for(let $=0;$<V;$++){const F={};e.shadowColor&&(F.shadowColor=e.shadowColor,F.shadowBlur=e.shadowBlur,F.shadowOffsetY=e.shadowOffsetY,F.shadowOffsetX=e.shadowOffsetX);const q={};$===0&&(q.markPoint=p()),_.push({type:"line",...R[$],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[$]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[$],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...F},...vue.unref(b),...q})}l.value=_};vue.watch(()=>[e.data,e.dataType,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],([S])=>{(e.dataType==="static"||vue.unref(r)==="design")&&E(S)},{immediate:!0,deep:!0});const A=vue.ref(!1),T=useRequestData(e),D=async()=>{var S,R;if(e.dataType==="request")try{A.value=!0;const _=await T();E((R=(S=_==null?void 0:_.data)==null?void 0:S.data)==null?void 0:R.rows)}catch(_){console.error(_)}finally{A.value=!1}},I=useEmitEvent(e);m(e.id,{type:e.type,RECORD:""});const B=I("click",S=>{const R=v(e.id);m(e.id,{...R,type:e.type,RECORD:e.tooltipShow?x:S.data})}),O=S=>{a.value.chart.containPixel("grid",[S.offsetX,S.offsetY])&&B()};e.tooltipShow?f.value["zr:click"]=O:f.value.click=B;const L=S=>{var _;const{rows:R=[]}=((_=S==null?void 0:S.data)==null?void 0:_.data)??{};k(R)},H=useIndicatorData(e,S=>{e.isViewRedrawing&&a.value.clear(),L(S)}),N=async()=>{try{A.value=!0;const S=await H();L(S)}catch(S){console.error(S)}finally{A.value=!1}},P=()=>{switch(e.dataType){case"indicator":N();break;case"request":D();break}};useOnEvent(e,{refreshData:P,resetRecord:()=>{const S=e.id,R=v(S);m(S,{...R,RECORD:""})},click:B});const{setRequest:w}=vue.inject(REQUEST_MODEL,{setRequest:S=>{}});return typeof w=="function"&&w({id:e.id,requestFn:P,sortNum:e.requestSort}),n({refreshData:P}),{option:h,style:s,click:B,loading:A,onClose:g,ecanModal:c,eventObj:f,echartRef:a}}}),ValueLine_vue_vue_type_style_index_0_lang="";function _sfc_render(e,n,r,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-value-line",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 ValueLine=_export_sfc$1(_sfc_main,[["render",_sfc_render]]),EcanValueLine=withInstall$1(ValueLine),components=Object.freeze(Object.defineProperty({__proto__:null,EcanBar,EcanBorder,EcanButton,EcanCheckbox,EcanCirculate,EcanComboGraph,EcanCounter,EcanCustomGraph,EcanDataSelect,EcanDatePicker,EcanIframe,EcanImage,EcanInput,EcanLine,EcanList,EcanMap,EcanModal,EcanPageConfig,EcanPie,EcanPivotTable,EcanProportion,EcanProviderConfig,EcanRadar,EcanRadio,EcanRangePicker,EcanScatter,EcanScrollText,EcanSelect,EcanTable,EcanTabs,EcanTemplate,EcanText,EcanTimeDisplay,EcanTreeSelect,EcanValueLine,barComponentProps,barEvents,barProps,borderComponentProps,borderEvents,borderProps,buttonComponentProps,buttonEvents,buttonProps,checkboxComponentProps,checkboxEvents,checkboxProps,circulateComponentProps,circulateEvents,circulateProps,comboGraphComponentProps,comboGraphEvents,comboGraphProps,counterComponentProps,counterEvents,counterProps,customGraphComponentProps,customGraphProps,dataSelectComponentProps,dataSelectEvents,dataSelectProps,datePickerComponentProps,datePickerEvents,datePickerProps:datePickerProps$1,iframeComponentProps,iframeProps,imageComponentProps,imageEvents,imageProps,inputComponentProps,inputEvents,inputProps,lineComponentProps,lineEvents,lineProps,listComponentProps,listEvents,listProps,mapComponentProps,mapEvents,mapProps,modalComponentProps,modalEvents,modalProps,pageConfig,pageConfigComponentProps,pieComponentProps,pieEvents,pieProps,pivotTableComponentProps,pivotTableEvents,pivotTableProps,proportionComponentProps,proportionEvents,proportionProps,providerConfig,providerConfigComponentProps,radarComponentProps,radarEvents,radarProps,radioComponentProps,radioEvents,radioProps,rangePickerComponentProps,rangePickerEvents,rangePickerProps,scatterComponentProps,scatterEvents,scatterProps,selectComponentProps,selectEvents,selectProps,tableComponentProps,tableEvents,tableProps,tabsComponentProps,tabsEvents,tabsProps:tabsProps$1,templateComponentProps,templateEvents,templateProps,textComponentProps,textEvents,textProps,timeDisplayComponentProps,timeDisplayEvents,timeDisplayProps,treeSelectComponentProps,treeSelectEvents,treeSelectProps,valueLineComponentProps,valueLineEvents,valueLineProps},Symbol.toStringTag,{value:"Module"}));function noop(){}const extend=Object.assign,inBrowser$1=typeof window<"u",isObject$1=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,n){const r=n.split(".");let i=e;return r.forEach(a=>{var o;i=isObject$1(i)&&(o=i[a])!=null?o:""}),i}function pick(e,n,r){return n.reduce((i,a)=>((!r||e[a]!==void 0)&&(i[a]=e[a]),i),{})}const isSameValue=(e,n)=>JSON.stringify(e)===JSON.stringify(n),flat=e=>e.reduce((n,r)=>n.concat(r),[]),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,n)=>({top:0,left:0,right:e,bottom:n,width:e,height:n}),useRect=e=>{const n=vue.unref(e);if(isWindow(n)){const r=n.innerWidth,i=n.innerHeight;return makeDOMRect(r,i)}return n!=null&&n.getBoundingClientRect?n.getBoundingClientRect():makeDOMRect(0,0)};function useParent(e){const n=vue.inject(e,null);if(n){const r=vue.getCurrentInstance(),{link:i,unlink:a,internalChildren:o}=n;i(r),vue.onUnmounted(()=>a(r));const s=vue.computed(()=>o.indexOf(r));return{parent:n,index:s}}return{parent:null,index:vue.ref(-1)}}function flattenVNodes(e){const n=[],r=i=>{Array.isArray(i)&&i.forEach(a=>{var o;vue.isVNode(a)&&(n.push(a),(o=a.component)!=null&&o.subTree&&(n.push(a.component.subTree),r(a.component.subTree.children)),a.children&&r(a.children))})};return r(e),n}var findVNodeIndex=(e,n)=>{const r=e.indexOf(n);return r===-1?e.findIndex(i=>n.key!==void 0&&n.key!==null&&i.type===n.type&&i.key===n.key):r};function sortChildren(e,n,r){const i=flattenVNodes(e.subTree.children);r.sort((o,s)=>findVNodeIndex(i,o.vnode)-findVNodeIndex(i,s.vnode));const a=r.map(o=>o.proxy);n.sort((o,s)=>{const l=a.indexOf(o),c=a.indexOf(s);return l-c})}function useChildren(e){const n=vue.reactive([]),r=vue.reactive([]),i=vue.getCurrentInstance();return{children:n,linkChildren:o=>{const s=c=>{c.proxy&&(r.push(c),n.push(c.proxy),sortChildren(i,n,r))},l=c=>{const u=r.indexOf(c);n.splice(u,1),r.splice(u,1)};vue.provide(e,Object.assign({link:s,unlink:l,children:n,internalChildren:r},o))}}}function onMountedOrActivated(e){let n;vue.onMounted(()=>{e(),vue.nextTick(()=>{n=!0})}),vue.onActivated(()=>{n&&e()})}function useEventListener(e,n,r={}){if(!inBrowser)return;const{target:i=window,passive:a=!1,capture:o=!1}=r;let s=!1,l;const c=x=>{if(s)return;const h=vue.unref(x);h&&!l&&(h.addEventListener(e,n,{capture:o,passive:a}),l=!0)},u=x=>{if(s)return;const h=vue.unref(x);h&&l&&(h.removeEventListener(e,n,o),l=!1)};vue.onUnmounted(()=>u(i)),vue.onDeactivated(()=>u(i)),onMountedOrActivated(()=>c(i));let f;return vue.isRef(i)&&(f=vue.watch(i,(x,h)=>{u(h),c(x)})),()=>{f==null||f(),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,n=defaultRoot){let r=e;for(;r&&r!==n&&isElement(r);){const{overflowY:i}=window.getComputedStyle(r);if(overflowScrollReg.test(i))return r;r=r.parentNode}return n}function useScrollParent(e,n=defaultRoot){const r=vue.ref();return vue.onMounted(()=>{e.value&&(r.value=getScrollParent(e.value,n))}),r}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 n="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(n,0)}function setScrollTop(e,n){"scrollTop"in e?e.scrollTop=n:e.scrollTo(e.scrollX,n)}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,n){if(e===window)return 0;const r=n?getScrollTop(n):getRootScrollTop();return useRect(e).top+r}isIOS();const stopPropagation=e=>e.stopPropagation();function preventDefault(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&stopPropagation(e)}function isHidden(e){const n=vue.unref(e);if(!n)return!1;const r=window.getComputedStyle(n),i=r.display==="none",a=n.offsetParent===null&&r.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 n=addUnit(e);return{width:n,height:n}}}function getZIndexStyle(e){const n={};return e!==void 0&&(n.zIndex=+e),n}let rootFontSize;function getRootFontSize(){if(!rootFontSize){const e=document.documentElement,n=e.style.fontSize||window.getComputedStyle(e).fontSize;rootFontSize=parseFloat(n)}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,(n,r)=>r.toUpperCase()),kebabCase=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");function padZero(e,n=2){let r=e+"";for(;r.length<n;)r="0"+r;return r}const clamp=(e,n,r)=>Math.min(Math.max(e,n),r),{hasOwnProperty}=Object.prototype;function assignKey(e,n,r){const i=n[r];isDef(i)&&(!hasOwnProperty.call(e,r)||!isObject$1(i)?e[r]=i:e[r]=deepAssign(Object(e[r]),i))}function deepAssign(e,n){return Object.keys(n).forEach(r=>{assignKey(e,n,r)}),e}var stdin_default$h={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,n)=>`${e}年${n}月`,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,n){lang.value=e,this.add({[e]:n})},add(e={}){deepAssign(messages,e)}};var stdin_default$g=Locale;function createTranslate(e){const n=camelize(e)+".";return(r,...i)=>{const a=stdin_default$g.messages(),o=get(a,n+r)||get(a,r);return isFunction(o)?o(...i):o}}function genBem(e,n){return n?typeof n=="string"?` ${e}--${n}`:Array.isArray(n)?n.reduce((r,i)=>r+genBem(e,i),""):Object.keys(n).reduce((r,i)=>r+(n[i]?genBem(e,i):""),""):""}function createBEM(e){return(n,r)=>(n&&typeof n!="string"&&(r=n,n=""),n=n?`${e}__${n}`:e,`${n}${genBem(n,r)}`)}function createNamespace(e){const n=`van-${e}`;return[n,createBEM(n),createTranslate(n)]}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:n=[],done:r,canceled:i,error:a}){if(e){const o=e.apply(null,n);isPromise(o)?o.then(s=>{s?r():i&&i()}).catch(a||noop):o?r():i&&i()}else r()}function withInstall(e){return e.install=n=>{const{name:r}=e;r&&(n.component(r,e),n.component(camelize(`-${r}`),e))},e}const POPUP_TOGGLE_KEY=Symbol();function onPopupReopen(e){const n=vue.inject(POPUP_TOGGLE_KEY,null);n&&vue.watch(n,r=>{r&&e()})}function useExpose(e){const n=vue.getCurrentInstance();n&&extend(n.proxy,e)}const routeProps={to:[String,Object],url:String,replace:Boolean};function route({to:e,url:n,replace:r,$router:i}){e&&i?i[r?"replace":"push"](e):n&&(r?location.replace(n):location.href=n)}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:n}){const r=()=>{if(n.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&&r())return n.content?n.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:f}=e,[x,h]=f.split("-");n.default?(typeof u=="number"?l[x]=addUnit(x==="top"?u:-u):l[x]=x==="top"?addUnit(u):a(u),typeof c=="number"?l[h]=addUnit(h==="left"?c:-c):l[h]=h==="left"?addUnit(c):a(c)):(l.marginTop=addUnit(u),l.marginLeft=addUnit(c))}return l}),s=()=>{if(r()||e.dot)return vue.createVNode("div",{class:bem$f([e.position,{dot:e.dot,fixed:!!n.default}]),style:o.value},[i()])};return()=>{if(n.default){const{tag:l}=e;return vue.createVNode(l,{class:bem$f("wrapper")},{default:()=>[n.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 n={};return Object.keys(e).forEach(r=>{const i=insertDash(kebabCase(r));n[`--van-${i}`]=e[r]}),n}function syncThemeVarsOnRoot(e={},n={}){Object.keys(e).forEach(r=>{e[r]!==n[r]&&document.documentElement.style.setProperty(r,e[r])}),Object.keys(n).forEach(r=>{e[r]||document.documentElement.style.removeProperty(r)})}vue.defineComponent({name:name$g,props:configProviderProps,setup(e,{slots:n}){const r=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(r,(o,s)=>{e.themeVarsScope==="global"&&syncThemeVarsOnRoot(o,s)}),vue.watch(()=>e.themeVarsScope,(o,s)=>{s==="global"&&syncThemeVarsOnRoot({},r.value),o==="global"&&syncThemeVarsOnRoot(r.value,{})}),e.themeVarsScope==="global"&&syncThemeVarsOnRoot(r.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"?r.value:void 0},{default:()=>{var i;return[(i=n.default)==null?void 0:i.call(n)]}})}});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:n}){const r=vue.inject(CONFIG_PROVIDER_KEY,null),i=vue.computed(()=>e.classPrefix||(r==null?void 0:r.iconPrefix)||bem$d());return()=>{const{tag:a,dot:o,name:s,size:l,badge:c,color:u}=e,f=isImage(s);return vue.createVNode(Badge,vue.mergeProps({dot:o,tag:a,class:[i.value,f?"":`${i.value}-${s}`],style:{color:u,fontSize:addUnit(l)},content:c},e.badgeProps),{default:()=>{var x;return[(x=n.default)==null?void 0:x.call(n),f&&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,n)=>vue.createVNode("i",{class:bem$c("line",String(n+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:n}){const r=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:r.value},[n.icon?n.icon():o])},a=()=>{var o;if(n.default)return vue.createVNode("span",{class:bem$c("text"),style:{fontSize:addUnit(e.textSize),color:(o=e.textColor)!=null?o:e.color}},[n.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,n){return e>n?"horizontal":n>e?"vertical":""}function useTouch(){const e=vue.ref(0),n=vue.ref(0),r=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",f=()=>{r.value=0,i.value=0,a.value=0,o.value=0,s.value="",l.value=!0};return{move:g=>{const v=g.touches[0];r.value=(v.clientX<0?0:v.clientX)-e.value,i.value=v.clientY-n.value,a.value=Math.abs(r.value),o.value=Math.abs(i.value);const m=10;(!s.value||a.value<m&&o.value<m)&&(s.value=getDirection(a.value,o.value)),l.value&&(a.value>TAP_OFFSET||o.value>TAP_OFFSET)&&(l.value=!1)},start:g=>{f(),e.value=g.touches[0].clientX,n.value=g.touches[0].clientY},reset:f,startX:e,startY:n,deltaX:r,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,n){const r=useTouch(),i="01",a="10",o=f=>{r.move(f);const x=r.deltaY.value>0?a:i,h=getScrollParent(f.target,e.value),{scrollHeight:g,offsetHeight:v,scrollTop:m}=h;let C="11";m===0?C=v>=g?"00":"01":m+v>=g&&(C="10"),C!=="11"&&r.isVertical()&&!(parseInt(C,2)&parseInt(x,2))&&preventDefault(f,!0)},s=()=>{document.addEventListener("touchstart",r.start),document.addEventListener("touchmove",o,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},l=()=>{totalLockCount&&(document.removeEventListener("touchstart",r.start),document.removeEventListener("touchmove",o),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},c=()=>n()&&s(),u=()=>n()&&l();onMountedOrActivated(c),vue.onDeactivated(u),vue.onBeforeUnmount(u),vue.watch(n,f=>{f?s():l()})}function useLazyRender(e){const n=vue.ref(!1);return vue.watch(e,r=>{r&&(n.value=r)},{immediate:!0}),r=>()=>n.value?r():null}const useScopeId=()=>{var e;const{scopeId:n}=((e=vue.getCurrentInstance())==null?void 0:e.vnode)||{};return n?{[n]:""}: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:n}){const r=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:r,style:l,class:[bem$b(),e.className]},[(s=n.default)==null?void 0:s.call(n)]),[[vue.vShow,e.show]])});return useEventListener("touchmove",a,{target:r}),()=>{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:n,attrs:r,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 A=e.position==="center"?"animationDuration":"transitionDuration";k[A]=`${e.duration}s`}return k}),f=()=>{a||(a=!0,s.value=e.zIndex!==void 0?+e.zIndex:useGlobalZIndex(),n("open"))},x=()=>{a&&callInterceptor(e.beforeClose,{done(){a=!1,n("close"),n("update:show",!1)}})},h=k=>{n("clickOverlay",k),e.closeOnClickOverlay&&x()},g=()=>{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:h}),{default:i["overlay-content"]})},v=k=>{n("clickCloseIcon",k),x()},m=()=>{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:v},null)};let C;const b=()=>{C&&clearTimeout(C),C=setTimeout(()=>{n("opened")})},d=()=>n("closed"),p=k=>n("keydown",k),y=c(()=>{var k;const{round:A,position:T,safeAreaInsetTop:D,safeAreaInsetBottom:I}=e;return vue.withDirectives(vue.createVNode("div",vue.mergeProps({ref:l,style:u.value,role:"dialog",tabindex:0,class:[bem$a({round:A,[T]:T}),{"van-safe-area-top":D,"van-safe-area-bottom":I}],onKeydown:p},r,useScopeId()),[(k=i.default)==null?void 0:k.call(i),m()]),[[vue.vShow,e.show]])}),E=()=>{const{position:k,transition:A,transitionAppear:T}=e,D=k==="center"?"van-fade":`van-popup-slide-${k}`;return vue.createVNode(vue.Transition,{name:A||D,appear:T,onAfterEnter:b,onAfterLeave:d},{default:y})};return vue.watch(()=>e.show,k=>{k&&!a&&(f(),r.tabindex===0&&vue.nextTick(()=>{var A;(A=l.value)==null||A.focus()})),!k&&a&&(a=!1,n("close"))}),useExpose({popupRef:l}),useLockScroll(l,()=>e.show&&e.lockScroll),useEventListener("popstate",()=>{e.closeOnPopstate&&(x(),o=!1)}),vue.onMounted(()=>{e.show&&f()}),vue.onActivated(()=>{o&&(n("update:show",!0),o=!1)}),vue.onDeactivated(()=>{e.show&&e.teleport&&(x(),o=!0)}),vue.provide(POPUP_TOGGLE_KEY,()=>e.show),()=>e.teleport?vue.createVNode(vue.Teleport,{to:e.teleport},{default:()=>[g(),E()]}):vue.createVNode(vue.Fragment,null,[g(),E()])}});const Popup=withInstall(stdin_default$b),[name$b,bem$9,t]=createNamespace("picker"),getFirstEnabledOption=e=>e.find(n=>!n.disabled)||e[0];function getColumnsType(e,n){const r=e[0];if(r){if(Array.isArray(r))return"multiple";if(n.children in r)return"cascade"}return"default"}function findIndexOfEnabledOption(e,n){n=clamp(n,0,e.length);for(let r=n;r<e.length;r++)if(!e[r].disabled)return r;for(let r=n-1;r>=0;r--)if(!e[r].disabled)return r;return 0}const isOptionExist=(e,n,r)=>n!==void 0&&!!e.find(i=>i[r.value]===n);function findOptionByValue(e,n,r){const i=e.findIndex(o=>o[r.value]===n),a=findIndexOfEnabledOption(e,i);return e[a]}function formatCascadeColumns(e,n,r){const i=[];let a={[n.children]:e},o=0;for(;a&&a[n.children];){const s=a[n.children],l=r.value[o];if(a=isDef(l)?findOptionByValue(s,l,n):void 0,!a&&s.length){const c=getFirstEnabledOption(s)[n.value];a=findOptionByValue(s,c,n)}o++,i.push(s)}return i}function getElementTranslateY(e){const{transform:n}=window.getComputedStyle(e),r=n.slice(7,n.length-1).split(", ")[5];return Number(r)}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:n,slots:r}){let i,a,o,s,l;const c=vue.ref(),u=vue.ref(),f=vue.ref(0),x=vue.ref(0),h=useTouch(),g=()=>e.options.length,v=()=>e.optionHeight*(+e.visibleOptionNum-1)/2,m=I=>{let B=findIndexOfEnabledOption(e.options,I);const O=-B*e.optionHeight,L=()=>{B>g()-1&&(B=findIndexOfEnabledOption(e.options,I));const H=e.options[B][e.fields.value];H!==e.value&&n("change",H)};i&&O!==f.value?l=L:L(),f.value=O},C=()=>e.readonly||!e.options.length,b=I=>{i||C()||(l=null,x.value=DEFAULT_DURATION,m(I),n("clickOption",e.options[I]))},d=I=>clamp(Math.round(-I/e.optionHeight),0,g()-1),p=vue.computed(()=>d(f.value)),y=(I,B)=>{const O=Math.abs(I/B);I=f.value+O/.003*(I<0?-1:1);const L=d(I);x.value=+e.swipeDuration,m(L)},E=()=>{i=!1,x.value=0,l&&(l(),l=null)},k=I=>{if(!C()){if(h.start(I),i){const B=getElementTranslateY(u.value);f.value=Math.min(0,B-v())}x.value=0,a=f.value,o=Date.now(),s=a,l=null}},A=I=>{if(C())return;h.move(I),h.isVertical()&&(i=!0,preventDefault(I,!0));const B=clamp(a+h.deltaY.value,-(g()*e.optionHeight),e.optionHeight),O=d(B);O!==p.value&&n("scrollInto",e.options[O]),f.value=B;const L=Date.now();L-o>MOMENTUM_TIME&&(o=L,s=B)},T=()=>{if(C())return;const I=f.value-s,B=Date.now()-o;if(B<MOMENTUM_TIME&&Math.abs(I)>MOMENTUM_DISTANCE){y(I,B);return}const L=d(f.value);x.value=DEFAULT_DURATION,m(L),setTimeout(()=>{i=!1},0)},D=()=>{const I={height:`${e.optionHeight}px`};return e.options.map((B,O)=>{const L=B[e.fields.text],{disabled:H}=B,N=B[e.fields.value],P={role:"button",style:I,tabindex:H?-1:0,class:[bem$8("item",{disabled:H,selected:N===e.value}),B.className],onClick:()=>b(O)},M={class:"van-ellipsis",[e.allowHtml?"innerHTML":"textContent"]:L};return vue.createVNode("li",P,[r.option?r.option(B,O):vue.createVNode("div",M,null)])})};return useParent(PICKER_KEY),useExpose({stopMomentum:E}),vue.watchEffect(()=>{const I=i?Math.floor(-f.value/e.optionHeight):e.options.findIndex(L=>L[e.fields.value]===e.value),B=findIndexOfEnabledOption(e.options,I),O=-B*e.optionHeight;i&&B<I&&E(),f.value=O}),useEventListener("touchmove",A,{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, ${f.value+v()}px, 0)`,transitionDuration:`${x.value}ms`,transitionProperty:x.value?"all":"none"},class:bem$8("wrapper"),onTransitionend:E},[D()])])}});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:n,slots:r}){const i=()=>{if(r.title)return r.title();if(e.title)return vue.createVNode("div",{class:[bem$9("title"),"van-ellipsis"]},[e.title])},a=()=>n("cancel"),o=()=>n("confirm"),s=()=>{var c;const u=(c=e.cancelButtonText)!=null?c:t("cancel");if(!(!r.cancel&&!u))return vue.createVNode("button",{type:"button",class:[bem$9("cancel"),HAPTICS_FEEDBACK],onClick:a},[r.cancel?r.cancel():u])},l=()=>{var c;const u=(c=e.confirmButtonText)!=null?c:t("confirm");if(!(!r.confirm&&!u))return vue.createVNode("button",{type:"button",class:[bem$9("confirm"),HAPTICS_FEEDBACK],onClick:o},[r.confirm?r.confirm():u])};return()=>vue.createVNode("div",{class:bem$9("toolbar")},[r.toolbar?r.toolbar():[s(),i(),l()]])}});const useSyncPropRef=(e,n)=>{const r=vue.ref(e());return vue.watch(e,i=>{i!==r.value&&(r.value=i)}),vue.watch(r,i=>{i!==e()&&n(i)}),r};/**
|
|
129
129
|
* @vue/shared v3.5.4
|
|
130
130
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
131
131
|
* @license MIT
|