import{aH as inject,aK as provide,e as computed,ay as onBeforeUnmount,r as ref,aX as onBeforeUpdate,d as defineComponent,aJ as toRef,w as watch,aE as h$1,T as Transition,z as nextTick,R as browser,U as useRoute,G as storage,J as ACCESS_TOKEN,ap as listenerMessage,a as createVNode,V as Popup,a5 as postMessage,M as state,al as commonjsGlobal,y as onMounted,aY as openBlock,aZ as createElementBlock,aN as normalizeStyle,a_ as toRefs,x as reactive,a$ as getSecondRPM,D as request,b0 as usePageVisibility,af as onUnmounted,A as createTextVNode,I as Icon,b1 as closeToast}from"./index-4cdbb637.js";/* empty css             */import{q as queryString}from"./base-aba1ba3e.js";import{T as TheVip}from"./index-15a7f252.js";import{S as Skeleton}from"./index-2bbfd879.js";import{a7 as createInjectionKey,G as commonLight,F as c,E as cB,I as cM,J as cE,a8 as fadeInScaleUpTransition,ab as insideModal,ac as insidePopover,L as useConfig,K as useTheme,_ as useMergedState,N as useThemeClass,Z as isMounted,Q as useAdjustedTo,a2 as VBinder,a1 as VTarget,ad as resolveSlot,V as VFollower,o as on,a as off,a4 as call}from"./fade-in-scale-up.cssr-481792b3.js";const formItemInjectionKey=createInjectionKey("n-form-item");function useFormItem(e,{defaultSize:t="medium",mergedSize:r,mergedDisabled:i}={}){const s=inject(formItemInjectionKey,null);provide(formItemInjectionKey,null);const a=computed(r?()=>r(s):()=>{const{size:l}=e;if(l)return l;if(s){const{mergedSize:p}=s;if(p.value!==void 0)return p.value}return t}),n=computed(i?()=>i(s):()=>{const{disabled:l}=e;return l!==void 0?l:s?s.disabled.value:!1}),o=computed(()=>{const{status:l}=e;return l||(s==null?void 0:s.mergedValidationStatus.value)});return onBeforeUnmount(()=>{s&&s.restoreValidation()}),{mergedSizeRef:a,mergedDisabledRef:n,mergedStatusRef:o,nTriggerFormBlur(){s&&s.handleContentBlur()},nTriggerFormChange(){s&&s.handleContentChange()},nTriggerFormFocus(){s&&s.handleContentFocus()},nTriggerFormInput(){s&&s.handleContentInput()}}}const sizeVariables={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},self$1=e=>{const t="rgba(0, 0, 0, .85)",r="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:i,primaryColor:s,baseColor:a,cardColor:n,modalColor:o,popoverColor:l,borderRadius:p,fontSize:b,opacityDisabled:E}=e;return Object.assign(Object.assign({},sizeVariables),{fontSize:b,markFontSize:b,railColor:i,railColorHover:i,fillColor:s,fillColorHover:s,opacityDisabled:E,handleColor:"#FFF",dotColor:n,dotColorModal:o,dotColorPopover:l,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:r,indicatorTextColor:a,indicatorBorderRadius:p,dotBorder:`2px solid ${i}`,dotBorderActive:`2px solid ${s}`,dotBoxShadow:""})},sliderLight={name:"Slider",common:commonLight,self:self$1},sliderLight$1=sliderLight;function isTouchEvent(e){return window.TouchEvent&&e instanceof window.TouchEvent}function useRefs(){const e=ref(new Map),t=r=>i=>{e.value.set(r,i)};return onBeforeUpdate(()=>{e.value.clear()}),[e,t]}const style=c([cB("slider",`
 display: block;
 padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0;
 position: relative;
 z-index: 0;
 width: 100%;
 cursor: pointer;
 user-select: none;
 -webkit-user-select: none;
 `,[cM("reverse",[cB("slider-handles",[cB("slider-handle-wrapper",`
 transform: translate(50%, -50%);
 `)]),cB("slider-dots",[cB("slider-dot",`
 transform: translateX(50%, -50%);
 `)]),cM("vertical",[cB("slider-handles",[cB("slider-handle-wrapper",`
 transform: translate(-50%, -50%);
 `)]),cB("slider-marks",[cB("slider-mark",`
 transform: translateY(calc(-50% + var(--n-dot-height) / 2));
 `)]),cB("slider-dots",[cB("slider-dot",`
 transform: translateX(-50%) translateY(0);
 `)])])]),cM("vertical",`
 padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2);
 width: var(--n-rail-width-vertical);
 height: 100%;
 `,[cB("slider-handles",`
 top: calc(var(--n-handle-size) / 2);
 right: 0;
 bottom: calc(var(--n-handle-size) / 2);
 left: 0;
 `,[cB("slider-handle-wrapper",`
 top: unset;
 left: 50%;
 transform: translate(-50%, 50%);
 `)]),cB("slider-rail",`
 height: 100%;
 `,[cE("fill",`
 top: unset;
 right: 0;
 bottom: unset;
 left: 0;
 `)]),cM("with-mark",`
 width: var(--n-rail-width-vertical);
 margin: 0 32px 0 8px;
 `),cB("slider-marks",`
 top: calc(var(--n-handle-size) / 2);
 right: unset;
 bottom: calc(var(--n-handle-size) / 2);
 left: 22px;
 font-size: var(--n-mark-font-size);
 `,[cB("slider-mark",`
 transform: translateY(50%);
 white-space: nowrap;
 `)]),cB("slider-dots",`
 top: calc(var(--n-handle-size) / 2);
 right: unset;
 bottom: calc(var(--n-handle-size) / 2);
 left: 50%;
 `,[cB("slider-dot",`
 transform: translateX(-50%) translateY(50%);
 `)])]),cM("disabled",`
 cursor: not-allowed;
 opacity: var(--n-opacity-disabled);
 `,[cB("slider-handle",`
 cursor: not-allowed;
 `)]),cM("with-mark",`
 width: 100%;
 margin: 8px 0 32px 0;
 `),c("&:hover",[cB("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[cE("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),cB("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),cM("active",[cB("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[cE("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),cB("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),cB("slider-marks",`
 position: absolute;
 top: 18px;
 left: calc(var(--n-handle-size) / 2);
 right: calc(var(--n-handle-size) / 2);
 `,[cB("slider-mark",`
 position: absolute;
 transform: translateX(-50%);
 white-space: nowrap;
 `)]),cB("slider-rail",`
 width: 100%;
 position: relative;
 height: var(--n-rail-height);
 background-color: var(--n-rail-color);
 transition: background-color .3s var(--n-bezier);
 border-radius: calc(var(--n-rail-height) / 2);
 `,[cE("fill",`
 position: absolute;
 top: 0;
 bottom: 0;
 border-radius: calc(var(--n-rail-height) / 2);
 transition: background-color .3s var(--n-bezier);
 background-color: var(--n-fill-color);
 `)]),cB("slider-handles",`
 position: absolute;
 top: 0;
 right: calc(var(--n-handle-size) / 2);
 bottom: 0;
 left: calc(var(--n-handle-size) / 2);
 `,[cB("slider-handle-wrapper",`
 outline: none;
 position: absolute;
 top: 50%;
 transform: translate(-50%, -50%);
 cursor: pointer;
 display: flex;
 `,[cB("slider-handle",`
 height: var(--n-handle-size);
 width: var(--n-handle-size);
 border-radius: 50%;
 overflow: hidden;
 transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier);
 background-color: var(--n-handle-color);
 box-shadow: var(--n-handle-box-shadow);
 `,[c("&:hover",`
 box-shadow: var(--n-handle-box-shadow-hover);
 `)]),c("&:focus",[cB("slider-handle",`
 box-shadow: var(--n-handle-box-shadow-focus);
 `,[c("&:hover",`
 box-shadow: var(--n-handle-box-shadow-active);
 `)])])])]),cB("slider-dots",`
 position: absolute;
 top: 50%;
 left: calc(var(--n-handle-size) / 2);
 right: calc(var(--n-handle-size) / 2);
 `,[cM("transition-disabled",[cB("slider-dot","transition: none;")]),cB("slider-dot",`
 transition:
 border-color .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier),
 background-color .3s var(--n-bezier);
 position: absolute;
 transform: translate(-50%, -50%);
 height: var(--n-dot-height);
 width: var(--n-dot-width);
 border-radius: var(--n-dot-border-radius);
 overflow: hidden;
 box-sizing: border-box;
 border: var(--n-dot-border);
 background-color: var(--n-dot-color);
 `,[cM("active","border: var(--n-dot-border-active);")])])]),cB("slider-handle-indicator",`
 font-size: var(--n-font-size);
 padding: 6px 10px;
 border-radius: var(--n-indicator-border-radius);
 color: var(--n-indicator-text-color);
 background-color: var(--n-indicator-color);
 box-shadow: var(--n-indicator-box-shadow);
 `,[fadeInScaleUpTransition()]),cB("slider-handle-indicator",`
 font-size: var(--n-font-size);
 padding: 6px 10px;
 border-radius: var(--n-indicator-border-radius);
 color: var(--n-indicator-text-color);
 background-color: var(--n-indicator-color);
 box-shadow: var(--n-indicator-box-shadow);
 `,[cM("top",`
 margin-bottom: 12px;
 `),cM("right",`
 margin-left: 12px;
 `),cM("bottom",`
 margin-top: 12px;
 `),cM("left",`
 margin-right: 12px;
 `),fadeInScaleUpTransition()]),insideModal(cB("slider",[cB("slider-dot","background-color: var(--n-dot-color-modal);")])),insidePopover(cB("slider",[cB("slider-dot","background-color: var(--n-dot-color-popover);")]))]),eventButtonLeft=0,sliderProps=Object.assign(Object.assign({},useTheme.props),{to:useAdjustedTo.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),NSlider=defineComponent({name:"Slider",props:sliderProps,setup(e){const{mergedClsPrefixRef:t,namespaceRef:r,inlineThemeDisabled:i}=useConfig(e),s=useTheme("Slider","-slider",style,sliderLight$1,e,t),a=ref(null),[n,o]=useRefs(),[l,p]=useRefs(),b=ref(new Set),E=useFormItem(e),{mergedDisabledRef:f}=E,S=computed(()=>{const{step:L}=e;if(Number(L)<=0||L==="mark")return 0;const z=L.toString();let j=0;return z.includes(".")&&(j=z.length-z.indexOf(".")-1),j}),A=ref(e.defaultValue),g=toRef(e,"value"),_=useMergedState(g,A),d=computed(()=>{const{value:L}=_;return(e.range?L:[L]).map(W)}),y=computed(()=>d.value.length>2),m=computed(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),u=computed(()=>{const{marks:L}=e;return L?Object.keys(L).map(parseFloat):null}),x=ref(-1),P=ref(-1),T=ref(-1),M=ref(!1),V=ref(!1),N=computed(()=>{const{vertical:L,reverse:z}=e;return L?z?"top":"bottom":z?"right":"left"}),G=computed(()=>{if(y.value)return;const L=d.value,z=Y(e.range?Math.min(...L):e.min),j=Y(e.range?Math.max(...L):L[0]),{value:X}=N;return e.vertical?{[X]:`${z}%`,height:`${j-z}%`}:{[X]:`${z}%`,width:`${j-z}%`}}),D=computed(()=>{const L=[],{marks:z}=e;if(z){const j=d.value.slice();j.sort((he,fe)=>he-fe);const{value:X}=N,{value:U}=y,{range:J}=e,le=U?()=>!1:he=>J?he>=j[0]&&he<=j[j.length-1]:he<=j[0];for(const he of Object.keys(z)){const fe=Number(he);L.push({active:le(fe),label:z[he],style:{[X]:`${Y(fe)}%`}})}}return L});function H(L,z){const j=Y(L),{value:X}=N;return{[X]:`${j}%`,zIndex:z===x.value?1:0}}function q(L){return e.showTooltip||T.value===L||x.value===L&&M.value}function R(L){return M.value?!(x.value===L&&P.value===L):!0}function I(L){var z;~L&&(x.value=L,(z=n.value.get(L))===null||z===void 0||z.focus())}function k(){l.value.forEach((L,z)=>{q(z)&&L.syncPosition()})}function C(L){const{"onUpdate:value":z,onUpdateValue:j}=e,{nTriggerFormInput:X,nTriggerFormChange:U}=E;j&&call(j,L),z&&call(z,L),A.value=L,X(),U()}function F(L){const{range:z}=e;if(z){if(Array.isArray(L)){const{value:j}=d;L.join()!==j.join()&&C(L)}}else Array.isArray(L)||d.value[0]!==L&&C(L)}function O(L,z){if(e.range){const j=d.value.slice();j.splice(z,1,L),F(j)}else F(L)}function B(L,z,j){const X=j!==void 0;j||(j=L-z>0?1:-1);const U=u.value||[],{step:J}=e;if(J==="mark"){const fe=Z(L,U.concat(z),X?j:void 0);return fe?fe.value:z}if(J<=0)return z;const{value:le}=S;let he;if(X){const fe=Number((z/J).toFixed(le)),ge=Math.floor(fe),be=fe>ge?ge:ge-1,Ae=fe<ge?ge:ge+1;he=Z(z,[Number((be*J).toFixed(le)),Number((Ae*J).toFixed(le)),...U],j)}else{const fe=ee(L);he=Z(L,[...U,fe])}return he?W(he.value):z}function W(L){return Math.min(e.max,Math.max(e.min,L))}function Y(L){const{max:z,min:j}=e;return(L-j)/(z-j)*100}function K(L){const{max:z,min:j}=e;return j+(z-j)*L}function ee(L){const{step:z,min:j}=e;if(Number(z)<=0||z==="mark")return L;const X=Math.round((L-j)/z)*z+j;return Number(X.toFixed(S.value))}function Z(L,z=u.value,j){if(!(z!=null&&z.length))return null;let X=null,U=-1;for(;++U<z.length;){const J=z[U]-L,le=Math.abs(J);(j===void 0||J*j>0)&&(X===null||le<X.distance)&&(X={index:U,distance:le,value:z[U]})}return X}function ce(L){const z=a.value;if(!z)return;const j=isTouchEvent(L)?L.touches[0]:L,X=z.getBoundingClientRect();let U;return e.vertical?U=(X.bottom-j.clientY)/X.height:U=(j.clientX-X.left)/X.width,e.reverse&&(U=1-U),K(U)}function de(L){if(f.value||!e.keyboard)return;const{vertical:z,reverse:j}=e;switch(L.key){case"ArrowUp":L.preventDefault(),ne(z&&j?-1:1);break;case"ArrowRight":L.preventDefault(),ne(!z&&j?-1:1);break;case"ArrowDown":L.preventDefault(),ne(z&&j?1:-1);break;case"ArrowLeft":L.preventDefault(),ne(!z&&j?1:-1);break}}function ne(L){const z=x.value;if(z===-1)return;const{step:j}=e,X=d.value[z],U=Number(j)<=0||j==="mark"?X:X+j*L;O(B(U,X,L>0?1:-1),z)}function se(L){var z,j;if(f.value||!isTouchEvent(L)&&L.button!==eventButtonLeft)return;const X=ce(L);if(X===void 0)return;const U=d.value.slice(),J=e.range?(j=(z=Z(X,U))===null||z===void 0?void 0:z.index)!==null&&j!==void 0?j:-1:0;J!==-1&&(L.preventDefault(),I(J),te(),O(B(X,d.value[J]),J))}function te(){M.value||(M.value=!0,on("touchend",document,Q),on("mouseup",document,Q),on("touchmove",document,$),on("mousemove",document,$))}function re(){M.value&&(M.value=!1,off("touchend",document,Q),off("mouseup",document,Q),off("touchmove",document,$),off("mousemove",document,$))}function $(L){const{value:z}=x;if(!M.value||z===-1){re();return}const j=ce(L);O(B(j,d.value[z]),z)}function Q(){re()}function me(L){x.value=L,f.value||(T.value=L)}function ye(L){x.value===L&&(x.value=-1,re()),T.value===L&&(T.value=-1)}function ve(L){T.value=L}function pe(L){T.value===L&&(T.value=-1)}watch(x,(L,z)=>void nextTick(()=>P.value=z)),watch(_,()=>{if(e.marks){if(V.value)return;V.value=!0,nextTick(()=>{V.value=!1})}nextTick(k)}),onBeforeUnmount(()=>{re()});const ue=computed(()=>{const{self:{markFontSize:L,railColor:z,railColorHover:j,fillColor:X,fillColorHover:U,handleColor:J,opacityDisabled:le,dotColor:he,dotColorModal:fe,handleBoxShadow:ge,handleBoxShadowHover:be,handleBoxShadowActive:Ae,handleBoxShadowFocus:Se,dotBorder:Pe,dotBoxShadow:xe,railHeight:Ee,railWidthVertical:Te,handleSize:Ce,dotHeight:we,dotWidth:_e,dotBorderRadius:Me,fontSize:ke,dotBorderActive:Fe,dotColorPopover:Ie},common:{cubicBezierEaseInOut:Ve}}=s.value;return{"--n-bezier":Ve,"--n-dot-border":Pe,"--n-dot-border-active":Fe,"--n-dot-border-radius":Me,"--n-dot-box-shadow":xe,"--n-dot-color":he,"--n-dot-color-modal":fe,"--n-dot-color-popover":Ie,"--n-dot-height":we,"--n-dot-width":_e,"--n-fill-color":X,"--n-fill-color-hover":U,"--n-font-size":ke,"--n-handle-box-shadow":ge,"--n-handle-box-shadow-active":Ae,"--n-handle-box-shadow-focus":Se,"--n-handle-box-shadow-hover":be,"--n-handle-color":J,"--n-handle-size":Ce,"--n-opacity-disabled":le,"--n-rail-color":z,"--n-rail-color-hover":j,"--n-rail-height":Ee,"--n-rail-width-vertical":Te,"--n-mark-font-size":L}}),ae=i?useThemeClass("slider",void 0,ue,e):void 0,ie=computed(()=>{const{self:{fontSize:L,indicatorColor:z,indicatorBoxShadow:j,indicatorTextColor:X,indicatorBorderRadius:U}}=s.value;return{"--n-font-size":L,"--n-indicator-border-radius":U,"--n-indicator-box-shadow":j,"--n-indicator-color":z,"--n-indicator-text-color":X}}),oe=i?useThemeClass("slider-indicator",void 0,ie,e):void 0;return{mergedClsPrefix:t,namespace:r,uncontrolledValue:A,mergedValue:_,mergedDisabled:f,mergedPlacement:m,isMounted:isMounted(),adjustedTo:useAdjustedTo(e),dotTransitionDisabled:V,markInfos:D,isShowTooltip:q,shouldKeepTooltipTransition:R,handleRailRef:a,setHandleRefs:o,setFollowerRefs:p,fillStyle:G,getHandleStyle:H,activeIndex:x,arrifiedValues:d,followerEnabledIndexSet:b,handleRailMouseDown:se,handleHandleFocus:me,handleHandleBlur:ye,handleHandleMouseEnter:ve,handleHandleMouseLeave:pe,handleRailKeyDown:de,indicatorCssVars:i?void 0:ie,indicatorThemeClass:oe==null?void 0:oe.themeClass,indicatorOnRender:oe==null?void 0:oe.onRender,cssVars:i?void 0:ue,themeClass:ae==null?void 0:ae.themeClass,onRender:ae==null?void 0:ae.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:r,formatTooltip:i}=this;return(e=this.onRender)===null||e===void 0||e.call(this),h$1("div",{class:[`${t}-slider`,r,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},h$1("div",{class:`${t}-slider-rail`},h$1("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?h$1("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(s=>h$1("div",{key:s.label,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:s.active}],style:s.style}))):null,h$1("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((s,a)=>{const n=this.isShowTooltip(a);return h$1(VBinder,null,{default:()=>[h$1(VTarget,null,{default:()=>h$1("div",{ref:this.setHandleRefs(a),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,style:this.getHandleStyle(s,a),onFocus:()=>{this.handleHandleFocus(a)},onBlur:()=>{this.handleHandleBlur(a)},onMouseenter:()=>{this.handleHandleMouseEnter(a)},onMouseleave:()=>{this.handleHandleMouseLeave(a)}},resolveSlot(this.$slots.thumb,()=>[h$1("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&h$1(VFollower,{ref:this.setFollowerRefs(a),show:n,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(a),teleportDisabled:this.adjustedTo===useAdjustedTo.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>h$1(Transition,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(a),onEnter:()=>{this.followerEnabledIndexSet.add(a)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(a)}},{default:()=>{var o;return n?((o=this.indicatorOnRender)===null||o===void 0||o.call(this),h$1("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof i=="function"?i(s):s)):null}})})]})})),this.marks?h$1("div",{class:`${t}-slider-marks`},this.markInfos.map(s=>h$1("div",{key:s.label,class:`${t}-slider-mark`,style:s.style},s.label))):null))}}),iconBack=""+new URL("back-137ab198.svg",import.meta.url).href,playContent="_playContent_1ksku_1",coursewarePlay="_coursewarePlay_1ksku_9",playModel="_playModel_1ksku_15",headerContainer="_headerContainer_1ksku_24",backBtn="_backBtn_1ksku_42",headRight="_headRight_1ksku_55",rightBtn="_rightBtn_1ksku_64",menu="_menu_1ksku_76",tabsContent="_tabsContent_1ksku_86",wraps="_wraps_1ksku_97",itemDiv="_itemDiv_1ksku_104",itemActive$1="_itemActive_1ksku_117",acitveAnimation="_acitveAnimation_1ksku_120",show="_show_1ksku_123",hide$2="_hide_1ksku_126",rightFixedBtns="_rightFixedBtns_1ksku_139",fullBtn="_fullBtn_1ksku_146",btnsDisabled="_btnsDisabled_1ksku_165",popup="_popup_1ksku_169",overlayClass="_overlayClass_1ksku_173",loadWrap="_loadWrap_1ksku_201",styles$4={playContent,coursewarePlay,playModel,headerContainer,backBtn,headRight,rightBtn,menu,tabsContent,wraps,itemDiv,itemActive:itemActive$1,acitveAnimation,show,hide:hide$2,rightFixedBtns,fullBtn,btnsDisabled,popup,overlayClass,loadWrap},musicScore="_musicScore_1dh20_1",container$1="_container_1dh20_8",musicModel="_musicModel_1dh20_16",errorModel="_errorModel_1dh20_23",startBtn="_startBtn_1dh20_35",loading="_loading_1dh20_44",skeletonWrap="_skeletonWrap_1dh20_50",skeleton="_skeleton_1dh20_50",styles$3={musicScore,container:container$1,musicModel,errorModel,startBtn,loading,skeletonWrap,skeleton},iconStart=""+new URL("icon-start-4118ae28.svg",import.meta.url).href,MusicScore=defineComponent({name:"musicScore",props:{pageVisibility:{type:String,default:""},show:{type:Boolean,default:!1},music:{type:Object,default:()=>{}},activeModel:{type:Boolean}},emits:["setIframe"],setup(e,{emit:t}){const r=browser();useRoute();const i=ref(!1);watch(()=>e.pageVisibility,A=>{var g,_;A=="hidden"&&(i.value=!1),A=="hidden"&&e.show&&((_=(g=s.value)==null?void 0:g.contentWindow)==null||_.postMessage({api:"setPlayState"},"*"))}),watch(()=>e.show,A=>{var g,_;A||(_=(g=s.value)==null?void 0:g.contentWindow)==null||_.postMessage({api:"setPlayState"},"*")});const s=ref(),a=ref(!1),n=ref(!1),o=ref(!1),l=ref(!1),p=storage.get(ACCESS_TOKEN),b=/(localhost|192)/.test(location.host)?"https://test.lexiaoya.cn":location.origin;let E=queryString.stringifyUrl({url:b+"/instrument",query:{id:e.music.content,modelType:"practise",Authorization:p}});const f=()=>{fetch(E).then(()=>{o.value=!0,n.value=!1}).catch(A=>{n.value=!0})};watch(e.music,()=>{o.value||(n.value=!1,e.music.display&&f())});const S=()=>{var d;if(!((d=state.user.data)!=null&&d.vipMember)){l.value=!0;return}if(i.value)return;r.ios||(i.value=!0);const A=storage.get(ACCESS_TOKEN),g=/(localhost|192)/.test(location.host)?"https://test.lexiaoya.cn":location.origin;let _=queryString.stringifyUrl({url:g+"/instrument",query:{id:e.music.content,Authorization:A}});postMessage({api:"openAccompanyWebView",content:{url:_,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0,c_orientation:0}},()=>{r.ios&&(i.value=!0)})};return listenerMessage("webViewOnResume",()=>{i.value=!1}),()=>createVNode("div",{class:styles$3.musicScore},[createVNode("iframe",{ref:s,onLoad:A=>{t("setIframe",s.value),a.value=!0},class:[styles$3.container,"musicIframe"],frameborder:"0",src:E},null),a.value&&createVNode("div",{style:{display:e.activeModel?"":"none"},class:styles$3.startBtn,onClick:A=>{A.stopPropagation(),S()}},[createVNode("img",{src:iconStart},null)]),createVNode("div",{class:styles$3.skeletonWrap},[createVNode(Skeleton,{class:styles$3.skeleton,row:8},null)]),createVNode(Popup,{teleport:"body",class:"popup-custom van-scale",transition:"van-scale",closeOnClickOverlay:!1,show:l.value,"onUpdate:show":A=>l.value=A},{default:()=>[createVNode(TheVip,{onClose:A=>{A&&postMessage({api:"openWebView",content:{url:`${location.origin}${location.pathname}#/member-center`,orientation:1}}),l.value=!1}},null)]})])}}),iconMenu=""+new URL("icon-menu-107c1ebd.svg",import.meta.url).href,iconUp=""+new URL("icon-up-44f779eb.svg",import.meta.url).href,iconDown=""+new URL("icon-down-254707d8.svg",import.meta.url).href,container="_container_eyzhy_1",pointHead="_pointHead_eyzhy_12",content$2="_content_eyzhy_24",item="_item_eyzhy_34",cover="_cover_eyzhy_41",title="_title_eyzhy_50",tag="_tag_eyzhy_59",itemActive="_itemActive_eyzhy_75",styles$2={container,pointHead,content:content$2,item,cover,title,tag,itemActive},iconMulv=""+new URL("icon-mulv-62ebfce7.svg",import.meta.url).href,Points=defineComponent({name:"points",props:{data:{type:Array,default:()=>[]},itemActive:{type:String,default:""}},emits:["handleSelect"],setup(e,{emit:t}){const r=useRoute(),i={SONG:"音频",VIDEO:"视频",IMG:"图片",MUSIC:"乐谱"};return()=>createVNode("div",{class:styles$2.container},[createVNode("div",{class:styles$2.pointHead},[createVNode("img",{src:iconMulv},null),r.query.name]),createVNode("div",{class:styles$2.content},[e.data.map((s,a)=>createVNode("div",{class:[styles$2.item,e.itemActive==s.id?styles$2.itemActive:""],onClick:()=>{t("handleSelect",{itemActive:s.id})}},[createVNode("div",{class:styles$2.cover},[createVNode("img",{src:s.url},null)]),createVNode("div",{class:styles$2.title},[createVNode("div",{class:styles$2.tag},[i[s.type]]),createVNode("div",null,[s.name])])]))])])}});var lottieExports={},lottie={get exports(){return lottieExports},set exports(e){lottieExports=e}};(function(module,exports){typeof navigator<"u"&&function(e,t){module.exports=t()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,i=e.length,s;for(r=0;r<i;r+=1){s=e[r].prototype;for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(t.prototype[a]=s[a])}}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(r){this.audios.push(r)},pause:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].pause()},resume:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].resume()},setRate:function(r){var i,s=this.audios.length;for(i=0;i<s;i+=1)this.audios[i].setRate(r)},createAudio:function(r){return this.audioFactory?this.audioFactory(r):window.Howl?new window.Howl({src:[r]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(r){this.audioFactory=r},setVolume:function(r){this._volume=r,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(r,i){var s=0,a=[],n;switch(r){case"int16":case"uint8c":n=1;break;default:n=1.1;break}for(s=0;s<i;s+=1)a.push(n);return a}function t(r,i){return r==="float32"?new Float32Array(i):r==="int16"?new Int16Array(i):r==="uint8c"?new Uint8ClampedArray(i):e(r,i)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?t:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(r){return typeof r}:_typeof$6=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],t,r=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var t=_typeof$6(e);if(t==="object"&&e.length){var r=createSizedArray(e.length),i,s=e.length;for(i=0;i<s;i+=1)r[i]=Math.abs(e[i]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,r,i){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=i<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,i){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=i<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}}();function HSVtoRGB(e,t,r){var i,s,a,n,o,l,p,b;switch(n=Math.floor(e*6),o=e*6-n,l=r*(1-t),p=r*(1-o*t),b=r*(1-(1-o)*t),n%6){case 0:i=r,s=b,a=l;break;case 1:i=p,s=r,a=l;break;case 2:i=l,s=r,a=b;break;case 3:i=l,s=p,a=r;break;case 4:i=b,s=l,a=r;break;case 5:i=r,s=l,a=p;break}return[i,s,a]}function RGBtoHSV(e,t,r){var i=Math.max(e,t,r),s=Math.min(e,t,r),a=i-s,n,o=i===0?0:a/i,l=i/255;switch(i){case s:n=0;break;case e:n=t-r+a*(t<r?6:0),n/=6*a;break;case t:n=r-e+a*2,n/=6*a;break;case r:n=e-t+a*4,n/=6*a;break}return[n,o,l]}function addSaturationToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var e=[],t,r;for(t=0;t<256;t+=1)r=t.toString(16),e[t]=r.length===1?"0"+r:r;return function(i,s,a){return i<0&&(i=0),s<0&&(s=0),a<0&&(a=0),"#"+e[i]+e[s]+e[a]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(r){return typeof r}:_typeof$5=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$5(e)}var dataManager=function(){var e=1,t=[],r,i,s={onmessage:function(){},postMessage:function(S){r({data:S})}},a={postMessage:function(S){s.onmessage({data:S})}};function n(f){if(window.Worker&&window.Blob&&getWebWorker()){var S=new Blob(["var _workerSelf = self; self.onmessage = ",f.toString()],{type:"text/javascript"}),A=URL.createObjectURL(S);return new Worker(A)}return r=f,s}function o(){i||(i=n(function(S){function A(){function _(R,I){var k,C,F=R.length,O,B,W,Y;for(C=0;C<F;C+=1)if(k=R[C],"ks"in k&&!k.completed){if(k.completed=!0,k.hasMask){var K=k.masksProperties;for(B=K.length,O=0;O<B;O+=1)if(K[O].pt.k.i)x(K[O].pt.k);else for(Y=K[O].pt.k.length,W=0;W<Y;W+=1)K[O].pt.k[W].s&&x(K[O].pt.k[W].s[0]),K[O].pt.k[W].e&&x(K[O].pt.k[W].e[0])}k.ty===0?(k.layers=m(k.refId,I),_(k.layers,I)):k.ty===4?u(k.shapes):k.ty===5&&H(k)}}function d(R,I){if(R){var k=0,C=R.length;for(k=0;k<C;k+=1)R[k].t===1&&(R[k].data.layers=m(R[k].data.refId,I),_(R[k].data.layers,I))}}function y(R,I){for(var k=0,C=I.length;k<C;){if(I[k].id===R)return I[k];k+=1}return null}function m(R,I){var k=y(R,I);return k?k.layers.__used?JSON.parse(JSON.stringify(k.layers)):(k.layers.__used=!0,k.layers):null}function u(R){var I,k=R.length,C,F;for(I=k-1;I>=0;I-=1)if(R[I].ty==="sh")if(R[I].ks.k.i)x(R[I].ks.k);else for(F=R[I].ks.k.length,C=0;C<F;C+=1)R[I].ks.k[C].s&&x(R[I].ks.k[C].s[0]),R[I].ks.k[C].e&&x(R[I].ks.k[C].e[0]);else R[I].ty==="gr"&&u(R[I].it)}function x(R){var I,k=R.i.length;for(I=0;I<k;I+=1)R.i[I][0]+=R.v[I][0],R.i[I][1]+=R.v[I][1],R.o[I][0]+=R.v[I][0],R.o[I][1]+=R.v[I][1]}function P(R,I){var k=I?I.split("."):[100,100,100];return R[0]>k[0]?!0:k[0]>R[0]?!1:R[1]>k[1]?!0:k[1]>R[1]?!1:R[2]>k[2]?!0:k[2]>R[2]?!1:null}var T=function(){var R=[4,4,14];function I(C){var F=C.t.d;C.t.d={k:[{s:F,t:0}]}}function k(C){var F,O=C.length;for(F=0;F<O;F+=1)C[F].ty===5&&I(C[F])}return function(C){if(P(R,C.v)&&(k(C.layers),C.assets)){var F,O=C.assets.length;for(F=0;F<O;F+=1)C.assets[F].layers&&k(C.assets[F].layers)}}}(),M=function(){var R=[4,7,99];return function(I){if(I.chars&&!P(R,I.v)){var k,C=I.chars.length;for(k=0;k<C;k+=1){var F=I.chars[k];F.data&&F.data.shapes&&(u(F.data.shapes),F.data.ip=0,F.data.op=99999,F.data.st=0,F.data.sr=1,F.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},I.chars[k].t||(F.data.shapes.push({ty:"no"}),F.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),V=function(){var R=[5,7,15];function I(C){var F=C.t.p;typeof F.a=="number"&&(F.a={a:0,k:F.a}),typeof F.p=="number"&&(F.p={a:0,k:F.p}),typeof F.r=="number"&&(F.r={a:0,k:F.r})}function k(C){var F,O=C.length;for(F=0;F<O;F+=1)C[F].ty===5&&I(C[F])}return function(C){if(P(R,C.v)&&(k(C.layers),C.assets)){var F,O=C.assets.length;for(F=0;F<O;F+=1)C.assets[F].layers&&k(C.assets[F].layers)}}}(),N=function(){var R=[4,1,9];function I(C){var F,O=C.length,B,W;for(F=0;F<O;F+=1)if(C[F].ty==="gr")I(C[F].it);else if(C[F].ty==="fl"||C[F].ty==="st")if(C[F].c.k&&C[F].c.k[0].i)for(W=C[F].c.k.length,B=0;B<W;B+=1)C[F].c.k[B].s&&(C[F].c.k[B].s[0]/=255,C[F].c.k[B].s[1]/=255,C[F].c.k[B].s[2]/=255,C[F].c.k[B].s[3]/=255),C[F].c.k[B].e&&(C[F].c.k[B].e[0]/=255,C[F].c.k[B].e[1]/=255,C[F].c.k[B].e[2]/=255,C[F].c.k[B].e[3]/=255);else C[F].c.k[0]/=255,C[F].c.k[1]/=255,C[F].c.k[2]/=255,C[F].c.k[3]/=255}function k(C){var F,O=C.length;for(F=0;F<O;F+=1)C[F].ty===4&&I(C[F].shapes)}return function(C){if(P(R,C.v)&&(k(C.layers),C.assets)){var F,O=C.assets.length;for(F=0;F<O;F+=1)C.assets[F].layers&&k(C.assets[F].layers)}}}(),G=function(){var R=[4,4,18];function I(C){var F,O=C.length,B,W;for(F=O-1;F>=0;F-=1)if(C[F].ty==="sh")if(C[F].ks.k.i)C[F].ks.k.c=C[F].closed;else for(W=C[F].ks.k.length,B=0;B<W;B+=1)C[F].ks.k[B].s&&(C[F].ks.k[B].s[0].c=C[F].closed),C[F].ks.k[B].e&&(C[F].ks.k[B].e[0].c=C[F].closed);else C[F].ty==="gr"&&I(C[F].it)}function k(C){var F,O,B=C.length,W,Y,K,ee;for(O=0;O<B;O+=1){if(F=C[O],F.hasMask){var Z=F.masksProperties;for(Y=Z.length,W=0;W<Y;W+=1)if(Z[W].pt.k.i)Z[W].pt.k.c=Z[W].cl;else for(ee=Z[W].pt.k.length,K=0;K<ee;K+=1)Z[W].pt.k[K].s&&(Z[W].pt.k[K].s[0].c=Z[W].cl),Z[W].pt.k[K].e&&(Z[W].pt.k[K].e[0].c=Z[W].cl)}F.ty===4&&I(F.shapes)}}return function(C){if(P(R,C.v)&&(k(C.layers),C.assets)){var F,O=C.assets.length;for(F=0;F<O;F+=1)C.assets[F].layers&&k(C.assets[F].layers)}}}();function D(R){R.__complete||(N(R),T(R),M(R),V(R),G(R),_(R.layers,R.assets),d(R.chars,R.assets),R.__complete=!0)}function H(R){R.t.a.length===0&&"m"in R.t.p}var q={};return q.completeData=D,q.checkColors=N,q.checkChars=M,q.checkPathProperties=V,q.checkShapes=G,q.completeLayers=_,q}if(a.dataManager||(a.dataManager=A()),a.assetLoader||(a.assetLoader=function(){function _(y){var m=y.getResponseHeader("content-type");return m&&y.responseType==="json"&&m.indexOf("json")!==-1||y.response&&_typeof$5(y.response)==="object"?y.response:y.response&&typeof y.response=="string"?JSON.parse(y.response):y.responseText?JSON.parse(y.responseText):null}function d(y,m,u,x){var P,T=new XMLHttpRequest;try{T.responseType="json"}catch(M){}T.onreadystatechange=function(){if(T.readyState===4)if(T.status===200)P=_(T),u(P);else try{P=_(T),u(P)}catch(M){x&&x(M)}};try{T.open(["G","E","T"].join(""),y,!0)}catch(M){T.open(["G","E","T"].join(""),m+"/"+y,!0)}T.send()}return{load:d}}()),S.data.type==="loadAnimation")a.assetLoader.load(S.data.path,S.data.fullPath,function(_){a.dataManager.completeData(_),a.postMessage({id:S.data.id,payload:_,status:"success"})},function(){a.postMessage({id:S.data.id,status:"error"})});else if(S.data.type==="complete"){var g=S.data.animation;a.dataManager.completeData(g),a.postMessage({id:S.data.id,payload:g,status:"success"})}else S.data.type==="loadData"&&a.assetLoader.load(S.data.path,S.data.fullPath,function(_){a.postMessage({id:S.data.id,payload:_,status:"success"})},function(){a.postMessage({id:S.data.id,status:"error"})})}),i.onmessage=function(f){var S=f.data,A=S.id,g=t[A];t[A]=null,S.status==="success"?g.onComplete(S.payload):g.onError&&g.onError()})}function l(f,S){e+=1;var A="processId_"+e;return t[A]={onComplete:f,onError:S},A}function p(f,S,A){o();var g=l(S,A);i.postMessage({type:"loadAnimation",path:f,fullPath:window.location.origin+window.location.pathname,id:g})}function b(f,S,A){o();var g=l(S,A);i.postMessage({type:"loadData",path:f,fullPath:window.location.origin+window.location.pathname,id:g})}function E(f,S,A){o();var g=l(S,A);i.postMessage({type:"complete",animation:f,id:g})}return{loadAnimation:p,loadData:b,completeAnimation:E}}(),ImagePreloader=function(){var e=function(){var d=createTag("canvas");d.width=1,d.height=1;var y=d.getContext("2d");return y.fillStyle="rgba(0,0,0,0)",y.fillRect(0,0,1,1),d}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(d,y,m){var u="";if(d.e)u=d.p;else if(y){var x=d.p;x.indexOf("images/")!==-1&&(x=x.split("/")[1]),u=y+x}else u=m,u+=d.u?d.u:"",u+=d.p;return u}function s(d){var y=0,m=setInterval(function(){var u=d.getBBox();(u.width||y>500)&&(this._imageLoaded(),clearInterval(m)),y+=1}.bind(this),50)}function a(d){var y=i(d,this.assetsPath,this.path),m=createNS("image");isSafari?this.testImageLoaded(m):m.addEventListener("load",this._imageLoaded,!1),m.addEventListener("error",function(){u.img=e,this._imageLoaded()}.bind(this),!1),m.setAttributeNS("http://www.w3.org/1999/xlink","href",y),this._elementHelper.append?this._elementHelper.append(m):this._elementHelper.appendChild(m);var u={img:m,assetData:d};return u}function n(d){var y=i(d,this.assetsPath,this.path),m=createTag("img");m.crossOrigin="anonymous",m.addEventListener("load",this._imageLoaded,!1),m.addEventListener("error",function(){u.img=e,this._imageLoaded()}.bind(this),!1),m.src=y;var u={img:m,assetData:d};return u}function o(d){var y={assetData:d},m=i(d,this.assetsPath,this.path);return dataManager.loadData(m,function(u){y.img=u,this._footageLoaded()}.bind(this),function(){y.img={},this._footageLoaded()}.bind(this)),y}function l(d,y){this.imagesLoadedCb=y;var m,u=d.length;for(m=0;m<u;m+=1)d[m].layers||(!d[m].t||d[m].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(d[m]))):d[m].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(d[m]))))}function p(d){this.path=d||""}function b(d){this.assetsPath=d||""}function E(d){for(var y=0,m=this.images.length;y<m;){if(this.images[y].assetData===d)return this.images[y].img;y+=1}return null}function f(){this.imagesLoadedCb=null,this.images.length=0}function S(){return this.totalImages===this.loadedAssets}function A(){return this.totalFootages===this.loadedFootagesCount}function g(d,y){d==="svg"?(this._elementHelper=y,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function _(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=s.bind(this),this.createFootageData=o.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return _.prototype={loadAssets:l,setAssetsPath:b,setPath:p,loadedImages:S,loadedFootages:A,destroy:f,getAsset:E,createImgData:n,createImageData:a,imageLoaded:t,footageLoaded:r,setCacheType:g},_}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,r){if(this._cbs[t])for(var i=this._cbs[t],s=0;s<i.length;s+=1)i[s](r)},addEventListener:function(t,r){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(r),function(){this.removeEventListener(t,r)}.bind(this)},removeEventListener:function(t,r){if(!r)this._cbs[t]=null;else if(this._cbs[t]){for(var i=0,s=this._cbs[t].length;i<s;)this._cbs[t][i]===r&&(this._cbs[t].splice(i,1),i-=1,s-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}};var markerParser=function(){function e(t){for(var r=t.split(`\r
`),i={},s,a=0,n=0;n<r.length;n+=1)s=r[n].split(":"),s.length===2&&(i[s[0]]=s[1].trim(),a+=1);if(a===0)throw new Error;return i}return function(t){for(var r=[],i=0;i<t.length;i+=1){var s=t[i],a={time:s.tm,duration:s.dr};try{a.payload=JSON.parse(t[i].cm)}catch(n){try{a.payload=e(t[i].cm)}catch(o){a.payload={name:t[i].cm}}}r.push(a)}return r}}(),ProjectInterface=function(){function e(t){this.compositions.push(t)}return function(){function t(r){for(var i=0,s=this.compositions.length;i<s;){if(this.compositions[i].data&&this.compositions[i].data.nm===r)return this.compositions[i].prepareFrame&&this.compositions[i].data.xt&&this.compositions[i].prepareFrame(this.currentFrame),this.compositions[i].compInterface;i+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(t,r){renderers[t]=r};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(r){return typeof r}:_typeof$4=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&_typeof$4(t)!=="object"&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},i=e.attributes;r.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",r.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var s=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";s==="false"?r.loop=!1:s==="true"?r.loop=!0:s!==""&&(r.loop=parseInt(s,10));var a=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:i.getNamedItem("bm-autoplay")?i.getNamedItem("bm-autoplay").value:!0;r.autoplay=a!=="false",r.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"";var n=i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"";n==="false"&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t=this.animationData.layers,r,i=t.length,s=e.layers,a,n=s.length;for(a=0;a<n;a+=1)for(r=0;r<i;){if(t[r].id===s[a].id){t[r]=s[a];break}r+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,r=0;r<i;r+=1)this.animationData.assets.push(e.assets[r]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var t=e.shift();this.timeCompleted=t.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var r=typeof e=="number"?e:void 0,i=typeof t=="number"?t:void 0;this.renderer.updateContainerSize(r,i)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r<this.markers.length;r+=1)if(t=this.markers[r],t.payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!(r&&this.name!==r)){var i=Number(e);if(isNaN(i)){var s=this.getMarkerData(e);s&&this.goToAndStop(s.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,r){if(!(r&&this.name!==r)){var i=Number(e);if(isNaN(i)){var s=this.getMarkerData(e);s&&(s.duration?this.playSegments([s.time,s.time+s.duration],!0):this.goToAndStop(s.time,!0))}else this.goToAndStop(i,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):t<0?this.checkSegments(t%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(r=!0,t=0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>t&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,r!==-1&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),_typeof$4(e[0])==="object"){var r,i=e.length;for(r=0;r<i;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;r.indexOf("images/")!==-1&&(r=r.split("/")[1]),t=this.assetsPath+r}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,r=this.assets.length;t<r;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,r){try{var i=this.renderer.getElementByPath(e);i.updateDocumentData(t,r)}catch(s){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],r=0,i=0,s=0,a=!0,n=!1;function o(I){for(var k=0,C=I.target;k<i;)t[k].animation===C&&(t.splice(k,1),k-=1,i-=1,C.isPaused||E()),k+=1}function l(I,k){if(!I)return null;for(var C=0;C<i;){if(t[C].elem===I&&t[C].elem!==null)return t[C].animation;C+=1}var F=new AnimationItem;return f(F,I),F.setData(I,k),F}function p(){var I,k=t.length,C=[];for(I=0;I<k;I+=1)C.push(t[I].animation);return C}function b(){s+=1,N()}function E(){s-=1}function f(I,k){I.addEventListener("destroy",o),I.addEventListener("_active",b),I.addEventListener("_idle",E),t.push({elem:k,animation:I}),i+=1}function S(I){var k=new AnimationItem;return f(k,null),k.setParams(I),k}function A(I,k){var C;for(C=0;C<i;C+=1)t[C].animation.setSpeed(I,k)}function g(I,k){var C;for(C=0;C<i;C+=1)t[C].animation.setDirection(I,k)}function _(I){var k;for(k=0;k<i;k+=1)t[k].animation.play(I)}function d(I){var k=I-r,C;for(C=0;C<i;C+=1)t[C].animation.advanceTime(k);r=I,s&&!n?window.requestAnimationFrame(d):a=!0}function y(I){r=I,window.requestAnimationFrame(d)}function m(I){var k;for(k=0;k<i;k+=1)t[k].animation.pause(I)}function u(I,k,C){var F;for(F=0;F<i;F+=1)t[F].animation.goToAndStop(I,k,C)}function x(I){var k;for(k=0;k<i;k+=1)t[k].animation.stop(I)}function P(I){var k;for(k=0;k<i;k+=1)t[k].animation.togglePause(I)}function T(I){var k;for(k=i-1;k>=0;k-=1)t[k].animation.destroy(I)}function M(I,k,C){var F=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),O,B=F.length;for(O=0;O<B;O+=1)C&&F[O].setAttribute("data-bm-type",C),l(F[O],I);if(k&&B===0){C||(C="svg");var W=document.getElementsByTagName("body")[0];W.innerText="";var Y=createTag("div");Y.style.width="100%",Y.style.height="100%",Y.setAttribute("data-bm-type",C),W.appendChild(Y),l(Y,I)}}function V(){var I;for(I=0;I<i;I+=1)t[I].animation.resize()}function N(){!n&&s&&a&&(window.requestAnimationFrame(y),a=!1)}function G(){n=!0}function D(){n=!1,N()}function H(I,k){var C;for(C=0;C<i;C+=1)t[C].animation.setVolume(I,k)}function q(I){var k;for(k=0;k<i;k+=1)t[k].animation.mute(I)}function R(I){var k;for(k=0;k<i;k+=1)t[k].animation.unmute(I)}return e.registerAnimation=l,e.loadAnimation=S,e.setSpeed=A,e.setDirection=g,e.play=_,e.pause=m,e.stop=x,e.togglePause=P,e.searchAnimations=M,e.resize=V,e.goToAndStop=u,e.destroy=T,e.freeze=G,e.unfreeze=D,e.setVolume=H,e.mute=q,e.unmute=R,e.getRegisteredAnimations=p,e}(),BezierFactory=function(){var e={};e.getBezierEasing=r;var t={};function r(y,m,u,x,P){var T=P||("bez_"+y+"_"+m+"_"+u+"_"+x).replace(/\./g,"p");if(t[T])return t[T];var M=new d([y,m,u,x]);return t[T]=M,M}var i=4,s=.001,a=1e-7,n=10,o=11,l=1/(o-1),p=typeof Float32Array=="function";function b(y,m){return 1-3*m+3*y}function E(y,m){return 3*m-6*y}function f(y){return 3*y}function S(y,m,u){return((b(m,u)*y+E(m,u))*y+f(m))*y}function A(y,m,u){return 3*b(m,u)*y*y+2*E(m,u)*y+f(m)}function g(y,m,u,x,P){var T,M,V=0;do M=m+(u-m)/2,T=S(M,x,P)-y,T>0?u=M:m=M;while(Math.abs(T)>a&&++V<n);return M}function _(y,m,u,x){for(var P=0;P<i;++P){var T=A(m,u,x);if(T===0)return m;var M=S(m,u,x)-y;m-=M/T}return m}function d(y){this._p=y,this._mSampleValues=p?new Float32Array(o):new Array(o),this._precomputed=!1,this.get=this.get.bind(this)}return d.prototype={get:function(m){var u=this._p[0],x=this._p[1],P=this._p[2],T=this._p[3];return this._precomputed||this._precompute(),u===x&&P===T?m:m===0?0:m===1?1:S(this._getTForX(m),x,T)},_precompute:function(){var m=this._p[0],u=this._p[1],x=this._p[2],P=this._p[3];this._precomputed=!0,(m!==u||x!==P)&&this._calcSampleValues()},_calcSampleValues:function(){for(var m=this._p[0],u=this._p[2],x=0;x<o;++x)this._mSampleValues[x]=S(x*l,m,u)},_getTForX:function(m){for(var u=this._p[0],x=this._p[2],P=this._mSampleValues,T=0,M=1,V=o-1;M!==V&&P[M]<=m;++M)T+=l;--M;var N=(m-P[M])/(P[M+1]-P[M]),G=T+N*l,D=A(G,u,x);return D>=s?_(m,G,u,x):D===0?G:g(m,T,T+l,u,x)}},e}(),pooling=function(){function e(t){return t.concat(createSizedArray(t.length))}return{double:e}}(),poolFactory=function(){return function(e,t,r){var i=0,s=e,a=createSizedArray(s),n={newElement:o,release:l};function o(){var p;return i?(i-=1,p=a[i]):p=t(),p}function l(p){i===s&&(a=pooling.double(a),s*=2),r&&r(p),a[i]=p,i+=1}return n}}(),bezierLengthPool=function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)}(),segmentsLengthPool=function(){function e(){return{lengths:[],totalLength:0}}function t(r){var i,s=r.lengths.length;for(i=0;i<s;i+=1)bezierLengthPool.release(r.lengths[i]);r.lengths.length=0}return poolFactory(8,e,t)}();function bezFunction(){var e=Math;function t(f,S,A,g,_,d){var y=f*g+S*_+A*d-_*g-d*f-A*S;return y>-.001&&y<.001}function r(f,S,A,g,_,d,y,m,u){if(A===0&&d===0&&u===0)return t(f,S,g,_,y,m);var x=e.sqrt(e.pow(g-f,2)+e.pow(_-S,2)+e.pow(d-A,2)),P=e.sqrt(e.pow(y-f,2)+e.pow(m-S,2)+e.pow(u-A,2)),T=e.sqrt(e.pow(y-g,2)+e.pow(m-_,2)+e.pow(u-d,2)),M;return x>P?x>T?M=x-P-T:M=T-P-x:T>P?M=T-P-x:M=P-x-T,M>-1e-4&&M<1e-4}var i=function(){return function(f,S,A,g){var _=getDefaultCurveSegments(),d,y,m,u,x,P=0,T,M=[],V=[],N=bezierLengthPool.newElement();for(m=A.length,d=0;d<_;d+=1){for(x=d/(_-1),T=0,y=0;y<m;y+=1)u=bmPow(1-x,3)*f[y]+3*bmPow(1-x,2)*x*A[y]+3*(1-x)*bmPow(x,2)*g[y]+bmPow(x,3)*S[y],M[y]=u,V[y]!==null&&(T+=bmPow(M[y]-V[y],2)),V[y]=M[y];T&&(T=bmSqrt(T),P+=T),N.percents[d]=x,N.lengths[d]=P}return N.addedLength=P,N}}();function s(f){var S=segmentsLengthPool.newElement(),A=f.c,g=f.v,_=f.o,d=f.i,y,m=f._length,u=S.lengths,x=0;for(y=0;y<m-1;y+=1)u[y]=i(g[y],g[y+1],_[y],d[y+1]),x+=u[y].addedLength;return A&&m&&(u[y]=i(g[y],g[0],_[y],d[0]),x+=u[y].addedLength),S.totalLength=x,S}function a(f){this.segmentLength=0,this.points=new Array(f)}function n(f,S){this.partialLength=f,this.point=S}var o=function(){var f={};return function(S,A,g,_){var d=(S[0]+"_"+S[1]+"_"+A[0]+"_"+A[1]+"_"+g[0]+"_"+g[1]+"_"+_[0]+"_"+_[1]).replace(/\./g,"p");if(!f[d]){var y=getDefaultCurveSegments(),m,u,x,P,T,M=0,V,N,G=null;S.length===2&&(S[0]!==A[0]||S[1]!==A[1])&&t(S[0],S[1],A[0],A[1],S[0]+g[0],S[1]+g[1])&&t(S[0],S[1],A[0],A[1],A[0]+_[0],A[1]+_[1])&&(y=2);var D=new a(y);for(x=g.length,m=0;m<y;m+=1){for(N=createSizedArray(x),T=m/(y-1),V=0,u=0;u<x;u+=1)P=bmPow(1-T,3)*S[u]+3*bmPow(1-T,2)*T*(S[u]+g[u])+3*(1-T)*bmPow(T,2)*(A[u]+_[u])+bmPow(T,3)*A[u],N[u]=P,G!==null&&(V+=bmPow(N[u]-G[u],2));V=bmSqrt(V),M+=V,D.points[m]=new n(V,N),G=N}D.segmentLength=M,f[d]=D}return f[d]}}();function l(f,S){var A=S.percents,g=S.lengths,_=A.length,d=bmFloor((_-1)*f),y=f*S.addedLength,m=0;if(d===_-1||d===0||y===g[d])return A[d];for(var u=g[d]>y?-1:1,x=!0;x;)if(g[d]<=y&&g[d+1]>y?(m=(y-g[d])/(g[d+1]-g[d]),x=!1):d+=u,d<0||d>=_-1){if(d===_-1)return A[d];x=!1}return A[d]+(A[d+1]-A[d])*m}function p(f,S,A,g,_,d){var y=l(_,d),m=1-y,u=e.round((m*m*m*f[0]+(y*m*m+m*y*m+m*m*y)*A[0]+(y*y*m+m*y*y+y*m*y)*g[0]+y*y*y*S[0])*1e3)/1e3,x=e.round((m*m*m*f[1]+(y*m*m+m*y*m+m*m*y)*A[1]+(y*y*m+m*y*y+y*m*y)*g[1]+y*y*y*S[1])*1e3)/1e3;return[u,x]}var b=createTypedArray("float32",8);function E(f,S,A,g,_,d,y){_<0?_=0:_>1&&(_=1);var m=l(_,y);d=d>1?1:d;var u=l(d,y),x,P=f.length,T=1-m,M=1-u,V=T*T*T,N=m*T*T*3,G=m*m*T*3,D=m*m*m,H=T*T*M,q=m*T*M+T*m*M+T*T*u,R=m*m*M+T*m*u+m*T*u,I=m*m*u,k=T*M*M,C=m*M*M+T*u*M+T*M*u,F=m*u*M+T*u*u+m*M*u,O=m*u*u,B=M*M*M,W=u*M*M+M*u*M+M*M*u,Y=u*u*M+M*u*u+u*M*u,K=u*u*u;for(x=0;x<P;x+=1)b[x*4]=e.round((V*f[x]+N*A[x]+G*g[x]+D*S[x])*1e3)/1e3,b[x*4+1]=e.round((H*f[x]+q*A[x]+R*g[x]+I*S[x])*1e3)/1e3,b[x*4+2]=e.round((k*f[x]+C*A[x]+F*g[x]+O*S[x])*1e3)/1e3,b[x*4+3]=e.round((B*f[x]+W*A[x]+Y*g[x]+K*S[x])*1e3)/1e3;return b}return{getSegmentsLength:s,getNewSegment:E,getPointInSegment:p,buildBezierData:o,pointOnLine2D:t,pointOnLine3D:r}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var r=this.offsetTime,i;this.propType==="multidimensional"&&(i=createTypedArray("float32",this.pv.length));for(var s=t.lastIndex,a=s,n=this.keyframes.length-1,o=!0,l,p,b;o;){if(l=this.keyframes[a],p=this.keyframes[a+1],a===n-1&&e>=p.t-r){l.h&&(l=p),s=0;break}if(p.t-r>e){s=a;break}a<n-1?a+=1:(s=0,o=!1)}b=this.keyframesMetadata[a]||{};var E,f,S,A,g,_,d=p.t-r,y=l.t-r,m;if(l.to){b.bezierData||(b.bezierData=bez.buildBezierData(l.s,p.s||l.e,l.to,l.ti));var u=b.bezierData;if(e>=d||e<y){var x=e>=d?u.points.length-1:0;for(f=u.points[x].point.length,E=0;E<f;E+=1)i[E]=u.points[x].point[E]}else{b.__fnct?_=b.__fnct:(_=BezierFactory.getBezierEasing(l.o.x,l.o.y,l.i.x,l.i.y,l.n).get,b.__fnct=_),S=_((e-y)/(d-y));var P=u.segmentLength*S,T,M=t.lastFrame<e&&t._lastKeyframeIndex===a?t._lastAddedLength:0;for(g=t.lastFrame<e&&t._lastKeyframeIndex===a?t._lastPoint:0,o=!0,A=u.points.length;o;){if(M+=u.points[g].partialLength,P===0||S===0||g===u.points.length-1){for(f=u.points[g].point.length,E=0;E<f;E+=1)i[E]=u.points[g].point[E];break}else if(P>=M&&P<M+u.points[g+1].partialLength){for(T=(P-M)/u.points[g+1].partialLength,f=u.points[g].point.length,E=0;E<f;E+=1)i[E]=u.points[g].point[E]+(u.points[g+1].point[E]-u.points[g].point[E])*T;break}g<A-1?g+=1:o=!1}t._lastPoint=g,t._lastAddedLength=M-u.points[g].partialLength,t._lastKeyframeIndex=a}}else{var V,N,G,D,H;if(n=l.s.length,m=p.s||l.e,this.sh&&l.h!==1)if(e>=d)i[0]=m[0],i[1]=m[1],i[2]=m[2];else if(e<=y)i[0]=l.s[0],i[1]=l.s[1],i[2]=l.s[2];else{var q=createQuaternion(l.s),R=createQuaternion(m),I=(e-y)/(d-y);quaternionToEuler(i,slerp(q,R,I))}else for(a=0;a<n;a+=1)l.h!==1&&(e>=d?S=1:e<y?S=0:(l.o.x.constructor===Array?(b.__fnct||(b.__fnct=[]),b.__fnct[a]?_=b.__fnct[a]:(V=l.o.x[a]===void 0?l.o.x[0]:l.o.x[a],N=l.o.y[a]===void 0?l.o.y[0]:l.o.y[a],G=l.i.x[a]===void 0?l.i.x[0]:l.i.x[a],D=l.i.y[a]===void 0?l.i.y[0]:l.i.y[a],_=BezierFactory.getBezierEasing(V,N,G,D).get,b.__fnct[a]=_)):b.__fnct?_=b.__fnct:(V=l.o.x,N=l.o.y,G=l.i.x,D=l.i.y,_=BezierFactory.getBezierEasing(V,N,G,D).get,l.keyframeMetadata=_),S=_((e-y)/(d-y)))),m=p.s||l.e,H=l.h===1?l.s[a]:l.s[a]+(m[a]-l.s[a])*S,this.propType==="multidimensional"?i[a]=H:i=H}return t.lastIndex=s,i}function slerp(e,t,r){var i=[],s=e[0],a=e[1],n=e[2],o=e[3],l=t[0],p=t[1],b=t[2],E=t[3],f,S,A,g,_;return S=s*l+a*p+n*b+o*E,S<0&&(S=-S,l=-l,p=-p,b=-b,E=-E),1-S>1e-6?(f=Math.acos(S),A=Math.sin(f),g=Math.sin((1-r)*f)/A,_=Math.sin(r*f)/A):(g=1-r,_=r),i[0]=g*s+_*l,i[1]=g*a+_*p,i[2]=g*n+_*b,i[3]=g*o+_*E,i}function quaternionToEuler(e,t){var r=t[0],i=t[1],s=t[2],a=t[3],n=Math.atan2(2*i*a-2*r*s,1-2*i*i-2*s*s),o=Math.asin(2*r*i+2*s*a),l=Math.atan2(2*r*a-2*i*s,1-2*r*r-2*s*s);e[0]=n/degToRads,e[1]=o/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,i=e[2]*degToRads,s=Math.cos(t/2),a=Math.cos(r/2),n=Math.cos(i/2),o=Math.sin(t/2),l=Math.sin(r/2),p=Math.sin(i/2),b=s*a*n-o*l*p,E=o*l*n+s*a*p,f=o*a*n+s*l*p,S=s*l*n-o*a*p;return[E,f,S,b]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if(this.propType==="unidimensional")t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)t=e[r]*this.mult,mathAbs(this.v[r]-t)>1e-5&&(this.v[r]=t,this._mdf=!0),r+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,r,i){this.propType="unidimensional",this.mult=r||1,this.data=t,this.v=r?t.k*r:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,r,i){this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s,a=t.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a),s=0;s<a;s+=1)this.v[s]=t.k[s]*this.mult,this.pv[s]=t.k[s];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,i){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=r||1,this.elem=e,this.container=i,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,r,i){this.propType="multidimensional";var s,a=t.k.length,n,o,l,p;for(s=0;s<a-1;s+=1)t.k[s].to&&t.k[s].s&&t.k[s+1]&&t.k[s+1].s&&(n=t.k[s].s,o=t.k[s+1].s,l=t.k[s].to,p=t.k[s].ti,(n.length===2&&!(n[0]===o[0]&&n[1]===o[1])&&bez.pointOnLine2D(n[0],n[1],o[0],o[1],n[0]+l[0],n[1]+l[1])&&bez.pointOnLine2D(n[0],n[1],o[0],o[1],o[0]+p[0],o[1]+p[1])||n.length===3&&!(n[0]===o[0]&&n[1]===o[1]&&n[2]===o[2])&&bez.pointOnLine3D(n[0],n[1],n[2],o[0],o[1],o[2],n[0]+l[0],n[1]+l[1],n[2]+l[2])&&bez.pointOnLine3D(n[0],n[1],n[2],o[0],o[1],o[2],o[0]+p[0],o[1]+p[1],o[2]+p[2]))&&(t.k[s].to=null,t.k[s].ti=null),n[0]===o[0]&&n[1]===o[1]&&l[0]===0&&l[1]===0&&p[0]===0&&p[1]===0&&(n.length===2||n[2]===o[2]&&l[2]===0&&p[2]===0)&&(t.k[s].to=null,t.k[s].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=i,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var b=t.k[0].s.length;for(this.v=createTypedArray("float32",b),this.pv=createTypedArray("float32",b),s=0;s<b;s+=1)this.v[s]=initFrame,this.pv[s]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",b)},this.addEffect=addEffect}var PropertyFactory=function(){function e(r,i,s,a,n){i.sid&&(i=r.globalData.slotManager.getProp(i));var o;if(!i.k.length)o=new ValueProperty(r,i,a,n);else if(typeof i.k[0]=="number")o=new MultiDimensionalProperty(r,i,a,n);else switch(s){case 0:o=new KeyframedValueProperty(r,i,a,n);break;case 1:o=new KeyframedMultidimensionalProperty(r,i,a,n);break}return o.effectsSequence.length&&n.addDynamicProperty(o),o}var t={getProp:e};return t}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,r=this.dynamicProperties.length;for(t=0;t<r;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function e(){return createTypedArray("float32",2)}return poolFactory(8,e)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var r=0;r<t;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,r,i,s){var a;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[];break}(!a[i]||a[i]&&!s)&&(a[i]=pointPool.newElement()),a[i][0]=e,a[i][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,i,s,a,n,o){this.setXYAt(e,t,"v",n,o),this.setXYAt(r,i,"o",n,o),this.setXYAt(s,a,"i",n,o)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,i=this.i,s=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),s=1);var a=this._length-1,n=this._length,o;for(o=s;o<n;o+=1)e.setTripleAt(t[a][0],t[a][1],i[a][0],i[a][1],r[a][0],r[a][1],o,!1),a-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function e(){return new ShapePath}function t(s){var a=s._length,n;for(n=0;n<a;n+=1)pointPool.release(s.v[n]),pointPool.release(s.i[n]),pointPool.release(s.o[n]),s.v[n]=null,s.i[n]=null,s.o[n]=null;s._length=0,s.c=!1}function r(s){var a=i.newElement(),n,o=s._length===void 0?s.v.length:s._length;for(a.setLength(o),a.c=s.c,n=0;n<o;n+=1)a.setTripleAt(s.v[n][0],s.v[n][1],s.o[n][0],s.o[n][1],s.i[n][0],s.i[n][1],n);return a}var i=poolFactory(4,e,t);return i.clone=r,i}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=function(){var e={newShapeCollection:s,release:a},t=0,r=4,i=createSizedArray(r);function s(){var n;return t?(t-=1,n=i[t]):n=new ShapeCollection,n}function a(n){var o,l=n._length;for(o=0;o<l;o+=1)shapePool.release(n.shapes[o]);n._length=0,t===r&&(i=pooling.double(i),r*=2),i[t]=n,t+=1}return e}(),ShapePropertyFactory=function(){var e=-999999;function t(d,y,m){var u=m.lastIndex,x,P,T,M,V,N,G,D,H,q=this.keyframes;if(d<q[0].t-this.offsetTime)x=q[0].s[0],T=!0,u=0;else if(d>=q[q.length-1].t-this.offsetTime)x=q[q.length-1].s?q[q.length-1].s[0]:q[q.length-2].e[0],T=!0;else{for(var R=u,I=q.length-1,k=!0,C,F,O;k&&(C=q[R],F=q[R+1],!(F.t-this.offsetTime>d));)R<I-1?R+=1:k=!1;if(O=this.keyframesMetadata[R]||{},T=C.h===1,u=R,!T){if(d>=F.t-this.offsetTime)D=1;else if(d<C.t-this.offsetTime)D=0;else{var B;O.__fnct?B=O.__fnct:(B=BezierFactory.getBezierEasing(C.o.x,C.o.y,C.i.x,C.i.y).get,O.__fnct=B),D=B((d-(C.t-this.offsetTime))/(F.t-this.offsetTime-(C.t-this.offsetTime)))}P=F.s?F.s[0]:C.e[0]}x=C.s[0]}for(N=y._length,G=x.i[0].length,m.lastIndex=u,M=0;M<N;M+=1)for(V=0;V<G;V+=1)H=T?x.i[M][V]:x.i[M][V]+(P.i[M][V]-x.i[M][V])*D,y.i[M][V]=H,H=T?x.o[M][V]:x.o[M][V]+(P.o[M][V]-x.o[M][V])*D,y.o[M][V]=H,H=T?x.v[M][V]:x.v[M][V]+(P.v[M][V]-x.v[M][V])*D,y.v[M][V]=H}function r(){var d=this.comp.renderedFrame-this.offsetTime,y=this.keyframes[0].t-this.offsetTime,m=this.keyframes[this.keyframes.length-1].t-this.offsetTime,u=this._caching.lastFrame;return u!==e&&(u<y&&d<y||u>m&&d>m)||(this._caching.lastIndex=u<d?this._caching.lastIndex:0,this.interpolateShape(d,this.pv,this._caching)),this._caching.lastFrame=d,this.pv}function i(){this.paths=this.localShapeCollection}function s(d,y){if(d._length!==y._length||d.c!==y.c)return!1;var m,u=d._length;for(m=0;m<u;m+=1)if(d.v[m][0]!==y.v[m][0]||d.v[m][1]!==y.v[m][1]||d.o[m][0]!==y.o[m][0]||d.o[m][1]!==y.o[m][1]||d.i[m][0]!==y.i[m][0]||d.i[m][1]!==y.i[m][1])return!1;return!0}function a(d){s(this.v,d)||(this.v=shapePool.clone(d),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function n(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var d;this.kf?d=this.pv:this.data.ks?d=this.data.ks.k:d=this.data.pt.k;var y,m=this.effectsSequence.length;for(y=0;y<m;y+=1)d=this.effectsSequence[y](d);this.setVValue(d),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(d,y,m){this.propType="shape",this.comp=d.comp,this.container=d,this.elem=d,this.data=y,this.k=!1,this.kf=!1,this._mdf=!1;var u=m===3?y.pt.k:y.ks.k;this.v=shapePool.clone(u),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function l(d){this.effectsSequence.push(d),this.container.addDynamicProperty(this)}o.prototype.interpolateShape=t,o.prototype.getValue=n,o.prototype.setVValue=a,o.prototype.addEffect=l;function p(d,y,m){this.propType="shape",this.comp=d.comp,this.elem=d,this.container=d,this.offsetTime=d.data.st,this.keyframes=m===3?y.pt.k:y.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var u=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,u),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=i,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}p.prototype.getValue=n,p.prototype.interpolateShape=t,p.prototype.setVValue=a,p.prototype.addEffect=l;var b=function(){var d=roundCorner;function y(m,u){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=u.d,this.elem=m,this.comp=m.comp,this.frameId=-1,this.initDynamicPropertyContainer(m),this.p=PropertyFactory.getProp(m,u.p,1,0,this),this.s=PropertyFactory.getProp(m,u.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return y.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var u=this.p.v[0],x=this.p.v[1],P=this.s.v[0]/2,T=this.s.v[1]/2,M=this.d!==3,V=this.v;V.v[0][0]=u,V.v[0][1]=x-T,V.v[1][0]=M?u+P:u-P,V.v[1][1]=x,V.v[2][0]=u,V.v[2][1]=x+T,V.v[3][0]=M?u-P:u+P,V.v[3][1]=x,V.i[0][0]=M?u-P*d:u+P*d,V.i[0][1]=x-T,V.i[1][0]=M?u+P:u-P,V.i[1][1]=x-T*d,V.i[2][0]=M?u+P*d:u-P*d,V.i[2][1]=x+T,V.i[3][0]=M?u-P:u+P,V.i[3][1]=x+T*d,V.o[0][0]=M?u+P*d:u-P*d,V.o[0][1]=x-T,V.o[1][0]=M?u+P:u-P,V.o[1][1]=x+T*d,V.o[2][0]=M?u-P*d:u+P*d,V.o[2][1]=x+T,V.o[3][0]=M?u-P:u+P,V.o[3][1]=x-T*d}},extendPrototype([DynamicPropertyContainer],y),y}(),E=function(){function d(y,m){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=y,this.comp=y.comp,this.data=m,this.frameId=-1,this.d=m.d,this.initDynamicPropertyContainer(y),m.sy===1?(this.ir=PropertyFactory.getProp(y,m.ir,0,0,this),this.is=PropertyFactory.getProp(y,m.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(y,m.pt,0,0,this),this.p=PropertyFactory.getProp(y,m.p,1,0,this),this.r=PropertyFactory.getProp(y,m.r,0,degToRads,this),this.or=PropertyFactory.getProp(y,m.or,0,0,this),this.os=PropertyFactory.getProp(y,m.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return d.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var m=Math.floor(this.pt.v)*2,u=Math.PI*2/m,x=!0,P=this.or.v,T=this.ir.v,M=this.os.v,V=this.is.v,N=2*Math.PI*P/(m*2),G=2*Math.PI*T/(m*2),D,H,q,R,I=-Math.PI/2;I+=this.r.v;var k=this.data.d===3?-1:1;for(this.v._length=0,D=0;D<m;D+=1){H=x?P:T,q=x?M:V,R=x?N:G;var C=H*Math.cos(I),F=H*Math.sin(I),O=C===0&&F===0?0:F/Math.sqrt(C*C+F*F),B=C===0&&F===0?0:-C/Math.sqrt(C*C+F*F);C+=+this.p.v[0],F+=+this.p.v[1],this.v.setTripleAt(C,F,C-O*R*q*k,F-B*R*q*k,C+O*R*q*k,F+B*R*q*k,D,!0),x=!x,I+=u*k}},convertPolygonToPath:function(){var m=Math.floor(this.pt.v),u=Math.PI*2/m,x=this.or.v,P=this.os.v,T=2*Math.PI*x/(m*4),M,V=-Math.PI*.5,N=this.data.d===3?-1:1;for(V+=this.r.v,this.v._length=0,M=0;M<m;M+=1){var G=x*Math.cos(V),D=x*Math.sin(V),H=G===0&&D===0?0:D/Math.sqrt(G*G+D*D),q=G===0&&D===0?0:-G/Math.sqrt(G*G+D*D);G+=+this.p.v[0],D+=+this.p.v[1],this.v.setTripleAt(G,D,G-H*T*P*N,D-q*T*P*N,G+H*T*P*N,D+q*T*P*N,M,!0),V+=u*N}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],d),d}(),f=function(){function d(y,m){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=y,this.comp=y.comp,this.frameId=-1,this.d=m.d,this.initDynamicPropertyContainer(y),this.p=PropertyFactory.getProp(y,m.p,1,0,this),this.s=PropertyFactory.getProp(y,m.s,1,0,this),this.r=PropertyFactory.getProp(y,m.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return d.prototype={convertRectToPath:function(){var m=this.p.v[0],u=this.p.v[1],x=this.s.v[0]/2,P=this.s.v[1]/2,T=bmMin(x,P,this.r.v),M=T*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(m+x,u-P+T,m+x,u-P+T,m+x,u-P+M,0,!0),this.v.setTripleAt(m+x,u+P-T,m+x,u+P-M,m+x,u+P-T,1,!0),T!==0?(this.v.setTripleAt(m+x-T,u+P,m+x-T,u+P,m+x-M,u+P,2,!0),this.v.setTripleAt(m-x+T,u+P,m-x+M,u+P,m-x+T,u+P,3,!0),this.v.setTripleAt(m-x,u+P-T,m-x,u+P-T,m-x,u+P-M,4,!0),this.v.setTripleAt(m-x,u-P+T,m-x,u-P+M,m-x,u-P+T,5,!0),this.v.setTripleAt(m-x+T,u-P,m-x+T,u-P,m-x+M,u-P,6,!0),this.v.setTripleAt(m+x-T,u-P,m+x-M,u-P,m+x-T,u-P,7,!0)):(this.v.setTripleAt(m-x,u+P,m-x+M,u+P,m-x,u+P,2),this.v.setTripleAt(m-x,u-P,m-x,u-P+M,m-x,u-P,3))):(this.v.setTripleAt(m+x,u-P+T,m+x,u-P+M,m+x,u-P+T,0,!0),T!==0?(this.v.setTripleAt(m+x-T,u-P,m+x-T,u-P,m+x-M,u-P,1,!0),this.v.setTripleAt(m-x+T,u-P,m-x+M,u-P,m-x+T,u-P,2,!0),this.v.setTripleAt(m-x,u-P+T,m-x,u-P+T,m-x,u-P+M,3,!0),this.v.setTripleAt(m-x,u+P-T,m-x,u+P-M,m-x,u+P-T,4,!0),this.v.setTripleAt(m-x+T,u+P,m-x+T,u+P,m-x+M,u+P,5,!0),this.v.setTripleAt(m+x-T,u+P,m+x-M,u+P,m+x-T,u+P,6,!0),this.v.setTripleAt(m+x,u+P-T,m+x,u+P-T,m+x,u+P-M,7,!0)):(this.v.setTripleAt(m-x,u-P,m-x+M,u-P,m-x,u-P,1,!0),this.v.setTripleAt(m-x,u+P,m-x,u+P-M,m-x,u+P,2,!0),this.v.setTripleAt(m+x,u+P,m+x-M,u+P,m+x,u+P,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],d),d}();function S(d,y,m){var u;if(m===3||m===4){var x=m===3?y.pt:y.ks,P=x.k;P.length?u=new p(d,y,m):u=new o(d,y,m)}else m===5?u=new f(d,y):m===6?u=new b(d,y):m===7&&(u=new E(d,y));return u.k&&d.addDynamicProperty(u),u}function A(){return o}function g(){return p}var _={};return _.getShapeProp=S,_.getConstructorFunction=A,_.getKeyframedConstructorFunction=g,_}();/*!
 Transformation Matrix v2.0
 (c) Epistemex 2014-2015
 www.epistemex.com
 By Ken Fyrstenberg
 Contributions by leeoniya.
 License: MIT, header required.
 */var Matrix=function(){var e=Math.cos,t=Math.sin,r=Math.tan,i=Math.round;function s(){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 a(k){if(k===0)return this;var C=e(k),F=t(k);return this._t(C,-F,0,0,F,C,0,0,0,0,1,0,0,0,0,1)}function n(k){if(k===0)return this;var C=e(k),F=t(k);return this._t(1,0,0,0,0,C,-F,0,0,F,C,0,0,0,0,1)}function o(k){if(k===0)return this;var C=e(k),F=t(k);return this._t(C,0,F,0,0,1,0,0,-F,0,C,0,0,0,0,1)}function l(k){if(k===0)return this;var C=e(k),F=t(k);return this._t(C,-F,0,0,F,C,0,0,0,0,1,0,0,0,0,1)}function p(k,C){return this._t(1,C,k,1,0,0)}function b(k,C){return this.shear(r(k),r(C))}function E(k,C){var F=e(C),O=t(C);return this._t(F,O,0,0,-O,F,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(k),1,0,0,0,0,1,0,0,0,0,1)._t(F,-O,0,0,O,F,0,0,0,0,1,0,0,0,0,1)}function f(k,C,F){return!F&&F!==0&&(F=1),k===1&&C===1&&F===1?this:this._t(k,0,0,0,0,C,0,0,0,0,F,0,0,0,0,1)}function S(k,C,F,O,B,W,Y,K,ee,Z,ce,de,ne,se,te,re){return this.props[0]=k,this.props[1]=C,this.props[2]=F,this.props[3]=O,this.props[4]=B,this.props[5]=W,this.props[6]=Y,this.props[7]=K,this.props[8]=ee,this.props[9]=Z,this.props[10]=ce,this.props[11]=de,this.props[12]=ne,this.props[13]=se,this.props[14]=te,this.props[15]=re,this}function A(k,C,F){return F=F||0,k!==0||C!==0||F!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,k,C,F,1):this}function g(k,C,F,O,B,W,Y,K,ee,Z,ce,de,ne,se,te,re){var $=this.props;if(k===1&&C===0&&F===0&&O===0&&B===0&&W===1&&Y===0&&K===0&&ee===0&&Z===0&&ce===1&&de===0)return $[12]=$[12]*k+$[15]*ne,$[13]=$[13]*W+$[15]*se,$[14]=$[14]*ce+$[15]*te,$[15]*=re,this._identityCalculated=!1,this;var Q=$[0],me=$[1],ye=$[2],ve=$[3],pe=$[4],ue=$[5],ae=$[6],ie=$[7],oe=$[8],L=$[9],z=$[10],j=$[11],X=$[12],U=$[13],J=$[14],le=$[15];return $[0]=Q*k+me*B+ye*ee+ve*ne,$[1]=Q*C+me*W+ye*Z+ve*se,$[2]=Q*F+me*Y+ye*ce+ve*te,$[3]=Q*O+me*K+ye*de+ve*re,$[4]=pe*k+ue*B+ae*ee+ie*ne,$[5]=pe*C+ue*W+ae*Z+ie*se,$[6]=pe*F+ue*Y+ae*ce+ie*te,$[7]=pe*O+ue*K+ae*de+ie*re,$[8]=oe*k+L*B+z*ee+j*ne,$[9]=oe*C+L*W+z*Z+j*se,$[10]=oe*F+L*Y+z*ce+j*te,$[11]=oe*O+L*K+z*de+j*re,$[12]=X*k+U*B+J*ee+le*ne,$[13]=X*C+U*W+J*Z+le*se,$[14]=X*F+U*Y+J*ce+le*te,$[15]=X*O+U*K+J*de+le*re,this._identityCalculated=!1,this}function _(){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(k){for(var C=0;C<16;){if(k.props[C]!==this.props[C])return!1;C+=1}return!0}function y(k){var C;for(C=0;C<16;C+=1)k.props[C]=this.props[C];return k}function m(k){var C;for(C=0;C<16;C+=1)this.props[C]=k[C]}function u(k,C,F){return{x:k*this.props[0]+C*this.props[4]+F*this.props[8]+this.props[12],y:k*this.props[1]+C*this.props[5]+F*this.props[9]+this.props[13],z:k*this.props[2]+C*this.props[6]+F*this.props[10]+this.props[14]}}function x(k,C,F){return k*this.props[0]+C*this.props[4]+F*this.props[8]+this.props[12]}function P(k,C,F){return k*this.props[1]+C*this.props[5]+F*this.props[9]+this.props[13]}function T(k,C,F){return k*this.props[2]+C*this.props[6]+F*this.props[10]+this.props[14]}function M(){var k=this.props[0]*this.props[5]-this.props[1]*this.props[4],C=this.props[5]/k,F=-this.props[1]/k,O=-this.props[4]/k,B=this.props[0]/k,W=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/k,Y=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/k,K=new Matrix;return K.props[0]=C,K.props[1]=F,K.props[4]=O,K.props[5]=B,K.props[12]=W,K.props[13]=Y,K}function V(k){var C=this.getInverseMatrix();return C.applyToPointArray(k[0],k[1],k[2]||0)}function N(k){var C,F=k.length,O=[];for(C=0;C<F;C+=1)O[C]=V(k[C]);return O}function G(k,C,F){var O=createTypedArray("float32",6);if(this.isIdentity())O[0]=k[0],O[1]=k[1],O[2]=C[0],O[3]=C[1],O[4]=F[0],O[5]=F[1];else{var B=this.props[0],W=this.props[1],Y=this.props[4],K=this.props[5],ee=this.props[12],Z=this.props[13];O[0]=k[0]*B+k[1]*Y+ee,O[1]=k[0]*W+k[1]*K+Z,O[2]=C[0]*B+C[1]*Y+ee,O[3]=C[0]*W+C[1]*K+Z,O[4]=F[0]*B+F[1]*Y+ee,O[5]=F[0]*W+F[1]*K+Z}return O}function D(k,C,F){var O;return this.isIdentity()?O=[k,C,F]:O=[k*this.props[0]+C*this.props[4]+F*this.props[8]+this.props[12],k*this.props[1]+C*this.props[5]+F*this.props[9]+this.props[13],k*this.props[2]+C*this.props[6]+F*this.props[10]+this.props[14]],O}function H(k,C){if(this.isIdentity())return k+","+C;var F=this.props;return Math.round((k*F[0]+C*F[4]+F[12])*100)/100+","+Math.round((k*F[1]+C*F[5]+F[13])*100)/100}function q(){for(var k=0,C=this.props,F="matrix3d(",O=1e4;k<16;)F+=i(C[k]*O)/O,F+=k===15?")":",",k+=1;return F}function R(k){var C=1e4;return k<1e-6&&k>0||k>-1e-6&&k<0?i(k*C)/C:k}function I(){var k=this.props,C=R(k[0]),F=R(k[1]),O=R(k[4]),B=R(k[5]),W=R(k[12]),Y=R(k[13]);return"matrix("+C+","+F+","+O+","+B+","+W+","+Y+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=n,this.rotateY=o,this.rotateZ=l,this.skew=b,this.skewFromAxis=E,this.shear=p,this.scale=f,this.setTransform=S,this.translate=A,this.transform=g,this.applyToPoint=u,this.applyToX=x,this.applyToY=P,this.applyToZ=T,this.applyToPointArray=D,this.applyToTriplePoints=G,this.applyToPointStringified=H,this.toCSS=q,this.to2dCSS=I,this.clone=y,this.cloneFromProps=m,this.equals=d,this.inversePoints=N,this.inversePoint=V,this.getInverseMatrix=M,this._t=this.transform,this.isIdentity=_,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,t){e==="expressions"&&setExpressionsPlugin(t)}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.11.0";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var i=t[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={},t={};e.registerModifier=r,e.getModifier=i;function r(s,a){t[s]||(t[s]=a)}function i(s,a,n){return new t[s](a,n)}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 t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),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,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.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,t,r,i,s){var a=[];t<=1?a.push({s:e,e:t}):e>=1?a.push({s:e-1,e:t-1}):(a.push({s:e,e:1}),a.push({s:0,e:t-1}));var n=[],o,l=a.length,p;for(o=0;o<l;o+=1)if(p=a[o],!(p.e*s<i||p.s*s>i+r)){var b,E;p.s*s<=i?b=0:b=(p.s*s-i)/r,p.e*s>=i+r?E=1:E=(p.e*s-i)/r,n.push([b,E])}return n.length||n.push([0,0]),n},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t<r;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,r;if(this._mdf||e){var i=this.o.v%360/360;if(i<0&&(i+=1),this.s.v>1?t=1+i:this.s.v<0?t=0+i:t=this.s.v+i,this.e.v>1?r=1+i:this.e.v<0?r=0+i:r=this.e.v+i,t>r){var s=t;t=r,r=s}t=Math.round(t*1e4)*1e-4,r=Math.round(r*1e4)*1e-4,this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var a,n,o=this.shapes.length,l,p,b,E,f,S=0;if(r===t)for(n=0;n<o;n+=1)this.shapes[n].localShapeCollection.releaseShapes(),this.shapes[n].shape._mdf=!0,this.shapes[n].shape.paths=this.shapes[n].localShapeCollection,this._mdf&&(this.shapes[n].pathsData.length=0);else if(r===1&&t===0||r===0&&t===1){if(this._mdf)for(n=0;n<o;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0}else{var A=[],g,_;for(n=0;n<o;n+=1)if(g=this.shapes[n],!g.shape._mdf&&!this._mdf&&!e&&this.m!==2)g.shape.paths=g.localShapeCollection;else{if(a=g.shape.paths,p=a._length,f=0,!g.shape._mdf&&g.pathsData.length)f=g.totalShapeLength;else{for(b=this.releasePathsData(g.pathsData),l=0;l<p;l+=1)E=bez.getSegmentsLength(a.shapes[l]),b.push(E),f+=E.totalLength;g.totalShapeLength=f,g.pathsData=b}S+=f,g.shape._mdf=!0}var d=t,y=r,m=0,u;for(n=o-1;n>=0;n-=1)if(g=this.shapes[n],g.shape._mdf){for(_=g.localShapeCollection,_.releaseShapes(),this.m===2&&o>1?(u=this.calculateShapeEdges(t,r,g.totalShapeLength,m,S),m+=g.totalShapeLength):u=[[d,y]],p=u.length,l=0;l<p;l+=1){d=u[l][0],y=u[l][1],A.length=0,y<=1?A.push({s:g.totalShapeLength*d,e:g.totalShapeLength*y}):d>=1?A.push({s:g.totalShapeLength*(d-1),e:g.totalShapeLength*(y-1)}):(A.push({s:g.totalShapeLength*d,e:g.totalShapeLength}),A.push({s:0,e:g.totalShapeLength*(y-1)}));var x=this.addShapes(g,A[0]);if(A[0].s!==A[0].e){if(A.length>1){var P=g.shape.paths.shapes[g.shape.paths._length-1];if(P.c){var T=x.pop();this.addPaths(x,_),x=this.addShapes(g,A[1],T)}else this.addPaths(x,_),x=this.addShapes(g,A[1])}this.addPaths(x,_)}}g.shape.paths=_}}},TrimModifier.prototype.addPaths=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,i,s,a,n){s.setXYAt(t[0],t[1],"o",a),s.setXYAt(r[0],r[1],"i",a+1),n&&s.setXYAt(e[0],e[1],"v",a),s.setXYAt(i[0],i[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,i){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),i&&t.setXYAt(e[0],e[4],"v",r),t.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,t,r){var i=e.pathsData,s=e.shape.paths.shapes,a,n=e.shape.paths._length,o,l,p=0,b,E,f,S,A=[],g,_=!0;for(r?(E=r._length,g=r._length):(r=shapePool.newElement(),E=0,g=0),A.push(r),a=0;a<n;a+=1){for(f=i[a].lengths,r.c=s[a].c,l=s[a].c?f.length:f.length+1,o=1;o<l;o+=1)if(b=f[o-1],p+b.addedLength<t.s)p+=b.addedLength,r.c=!1;else if(p>t.e){r.c=!1;break}else t.s<=p&&t.e>=p+b.addedLength?(this.addSegment(s[a].v[o-1],s[a].o[o-1],s[a].i[o],s[a].v[o],r,E,_),_=!1):(S=bez.getNewSegment(s[a].v[o-1],s[a].v[o],s[a].o[o-1],s[a].i[o],(t.s-p)/b.addedLength,(t.e-p)/b.addedLength,f[o-1]),this.addSegmentFromArray(S,r,E,_),_=!1,r.c=!1),p+=b.addedLength,E+=1;if(s[a].c&&f.length){if(b=f[o-1],p<=t.e){var d=f[o-1].addedLength;t.s<=p&&t.e>=p+d?(this.addSegment(s[a].v[o-1],s[a].o[o-1],s[a].i[0],s[a].v[0],r,E,_),_=!1):(S=bez.getNewSegment(s[a].v[o-1],s[a].v[0],s[a].o[o-1],s[a].i[0],(t.s-p)/d,(t.e-p)/d,f[o-1]),this.addSegmentFromArray(S,r,E,_),_=!1,r.c=!1)}else r.c=!1;p+=b.addedLength,E+=1}if(r._length&&(r.setXYAt(r.v[g][0],r.v[g][1],"i",g),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),p>t.e)break;a<n-1&&(r=shapePool.newElement(),_=!0,A.push(r),E=0)}return A};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var r=t/100,i=[0,0],s=e._length,a=0;for(a=0;a<s;a+=1)i[0]+=e.v[a][0],i[1]+=e.v[a][1];i[0]/=s,i[1]/=s;var n=shapePool.newElement();n.c=e.c;var o,l,p,b,E,f;for(a=0;a<s;a+=1)o=e.v[a][0]+(i[0]-e.v[a][0])*r,l=e.v[a][1]+(i[1]-e.v[a][1])*r,p=e.o[a][0]+(i[0]-e.o[a][0])*-r,b=e.o[a][1]+(i[1]-e.o[a][1])*-r,E=e.i[a][0]+(i[0]-e.i[a][0])*-r,f=e.i[a][1]+(i[1]-e.i[a][1])*-r,n.setTripleAt(o,l,p,b,E,f,a);return n},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,s,a,n=this.amount.v;if(n!==0){var o,l;for(r=0;r<i;r+=1){if(o=this.shapes[r],l=o.localShapeCollection,!(!o.shape._mdf&&!this._mdf&&!e))for(l.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,a=o.shape.paths._length,s=0;s<a;s+=1)l.addShape(this.processPath(t[s],n));o.shape.paths=o.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(l){var p=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||p,this.a&&l.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&l.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&l.skewFromAxis(-this.sk.v,this.sa.v),this.r?l.rotate(-this.r.v):l.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?l.translate(this.px.v,this.py.v,-this.pz.v):l.translate(this.px.v,this.py.v,0):l.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function r(l){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||l){var p;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var b,E;if(p=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(b=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/p,0),E=this.p.getValueAtTime(this.p.keyframes[0].t/p,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(b=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/p,0),E=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/p,0)):(b=this.p.pv,E=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/p,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){b=[],E=[];var f=this.px,S=this.py;f._caching.lastFrame+f.offsetTime<=f.keyframes[0].t?(b[0]=f.getValueAtTime((f.keyframes[0].t+.01)/p,0),b[1]=S.getValueAtTime((S.keyframes[0].t+.01)/p,0),E[0]=f.getValueAtTime(f.keyframes[0].t/p,0),E[1]=S.getValueAtTime(S.keyframes[0].t/p,0)):f._caching.lastFrame+f.offsetTime>=f.keyframes[f.keyframes.length-1].t?(b[0]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/p,0),b[1]=S.getValueAtTime(S.keyframes[S.keyframes.length-1].t/p,0),E[0]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-.01)/p,0),E[1]=S.getValueAtTime((S.keyframes[S.keyframes.length-1].t-.01)/p,0)):(b=[f.pv,S.pv],E[0]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-.01)/p,f.offsetTime),E[1]=S.getValueAtTime((S._caching.lastFrame+S.offsetTime-.01)/p,S.offsetTime))}else E=e,b=E;this.v.rotate(-Math.atan2(b[1]-E[1],b[0]-E[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.a.k)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 s(){}function a(l){this._addDynamicProperty(l),this.elem.addDynamicProperty(l),this._isDirty=!0}function n(l,p,b){if(this.elem=l,this.frameId=-1,this.propType="transform",this.data=p,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(b||l),p.p&&p.p.s?(this.px=PropertyFactory.getProp(l,p.p.x,0,0,this),this.py=PropertyFactory.getProp(l,p.p.y,0,0,this),p.p.z&&(this.pz=PropertyFactory.getProp(l,p.p.z,0,0,this))):this.p=PropertyFactory.getProp(l,p.p||{k:[0,0,0]},1,0,this),p.rx){if(this.rx=PropertyFactory.getProp(l,p.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(l,p.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(l,p.rz,0,degToRads,this),p.or.k[0].ti){var E,f=p.or.k.length;for(E=0;E<f;E+=1)p.or.k[E].to=null,p.or.k[E].ti=null}this.or=PropertyFactory.getProp(l,p.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(l,p.r||{k:0},0,degToRads,this);p.sk&&(this.sk=PropertyFactory.getProp(l,p.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(l,p.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(l,p.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(l,p.s||{k:[100,100,100]},1,.01,this),p.o?this.o=PropertyFactory.getProp(l,p.o,0,.01,l):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}n.prototype={applyToMatrix:t,getValue:r,precalculateMatrix:i,autoOrient:s},extendPrototype([DynamicPropertyContainer],n),n.prototype.addDynamicProperty=a,n.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function o(l,p,b){return new n(l,p,b)}return{getTransformProperty:o}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,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,t,r,i,s,a){var n=a?-1:1,o=i.s.v[0]+(1-i.s.v[0])*(1-s),l=i.s.v[1]+(1-i.s.v[1])*(1-s);e.translate(i.p.v[0]*n*s,i.p.v[1]*n*s,i.p.v[2]),t.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),t.rotate(-i.r.v*n*s),t.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(a?1/o:o,a?1/l:l),r.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,i){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[r]);r>0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t]._processed=!1,e[t].ty==="gr"&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)e[r]._render=t,e[r].ty==="gr"&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,i,s,a,n=!1;if(this._mdf||e){var o=Math.ceil(this.c.v);if(this._groups.length<o){for(;this._groups.length<o;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.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,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),n=!0}a=0;var p;for(i=0;i<=this._groups.length-1;i+=1){if(p=a<o,this._groups[i]._render=p,this.changeGroupRender(this._groups[i].it,p),!p){var b=this.elemsData[i].it,E=b[b.length-1];E.transform.op.v!==0?(E.transform.op._mdf=!0,E.transform.op.v=0):E.transform.op._mdf=!1}a+=1}this._currentCopies=o;var f=this.o.v,S=f%1,A=f>0?Math.floor(f):Math.ceil(f),g=this.pMatrix.props,_=this.rMatrix.props,d=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y=0;if(f>0){for(;y<A;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),y+=1;S&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,S,!1),y+=S)}else if(f<0){for(;y>A;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),y-=1;S&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-S,!0),y-=S)}i=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,a=this._currentCopies;for(var m,u;a;){if(t=this.elemsData[i].it,r=t[t.length-1].transform.mProps.v.props,u=r.length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),y!==0){for((i!==0&&s===1||i!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(_[0],_[1],_[2],_[3],_[4],_[5],_[6],_[7],_[8],_[9],_[10],_[11],_[12],_[13],_[14],_[15]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),m=0;m<u;m+=1)r[m]=this.matrix.props[m];this.matrix.reset()}else for(this.matrix.reset(),m=0;m<u;m+=1)r[m]=this.matrix.props[m];y+=1,a-=1,i+=s}}else for(a=this._currentCopies,i=0,s=1;a;)t=this.elemsData[i].it,r=t[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,a-=1,i+=s;return n},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var r=shapePool.newElement();r.c=e.c;var i,s=e._length,a,n,o,l,p,b,E=0,f,S,A,g,_,d;for(i=0;i<s;i+=1)a=e.v[i],o=e.o[i],n=e.i[i],a[0]===o[0]&&a[1]===o[1]&&a[0]===n[0]&&a[1]===n[1]?(i===0||i===s-1)&&!e.c?(r.setTripleAt(a[0],a[1],o[0],o[1],n[0],n[1],E),E+=1):(i===0?l=e.v[s-1]:l=e.v[i-1],p=Math.sqrt(Math.pow(a[0]-l[0],2)+Math.pow(a[1]-l[1],2)),b=p?Math.min(p/2,t)/p:0,_=a[0]+(l[0]-a[0])*b,f=_,d=a[1]-(a[1]-l[1])*b,S=d,A=f-(f-a[0])*roundCorner,g=S-(S-a[1])*roundCorner,r.setTripleAt(f,S,A,g,_,d,E),E+=1,i===s-1?l=e.v[0]:l=e.v[i+1],p=Math.sqrt(Math.pow(a[0]-l[0],2)+Math.pow(a[1]-l[1],2)),b=p?Math.min(p/2,t)/p:0,A=a[0]+(l[0]-a[0])*b,f=A,g=a[1]+(l[1]-a[1])*b,S=g,_=f-(f-a[0])*roundCorner,d=S-(S-a[1])*roundCorner,r.setTripleAt(f,S,A,g,_,d,E),E+=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],E),E+=1);return r},RoundCornersModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,s,a,n=this.rd.v;if(n!==0){var o,l;for(r=0;r<i;r+=1){if(o=this.shapes[r],l=o.localShapeCollection,!(!o.shape._mdf&&!this._mdf&&!e))for(l.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,a=o.shape.paths._length,s=0;s<a;s+=1)l.addShape(this.processPath(t[s],n));o.shape.paths=o.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,t){return Math.abs(e-t)*1e5<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,r){return e*(1-r)+t*r}function lerpPoint(e,t,r){return[lerp(e[0],t[0],r),lerp(e[1],t[1],r)]}function quadRoots(e,t,r){if(e===0)return[];var i=t*t-4*e*r;if(i<0)return[];var s=-t/(2*e);if(i===0)return[s];var a=Math.sqrt(i)/(2*e);return[s-a,s+a]}function polynomialCoefficients(e,t,r,i){return[-e+3*t-3*r+i,3*e-6*t+3*r,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,r,i,s){s&&pointEqual(e,t)&&(t=lerpPoint(e,i,1/3)),s&&pointEqual(r,i)&&(r=lerpPoint(e,i,2/3));var a=polynomialCoefficients(e[0],t[0],r[0],i[0]),n=polynomialCoefficients(e[1],t[1],r[1],i[1]);this.a=[a[0],n[0]],this.b=[a[1],n[1]],this.c=[a[2],n[2]],this.d=[a[3],n[3]],this.points=[e,t,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 t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=t*t-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?[t]:[]:[t-i,t+i].filter(function(s){return s>0&&s<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 t=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),s=lerpPoint(t,r,e),a=lerpPoint(r,i,e),n=lerpPoint(s,a,e);return[new PolynomialBezier(this.points[0],t,s,n,!0),new PolynomialBezier(n,a,i,this.points[3],!0)]};function extrema(e,t){var r=e.points[0][t],i=e.points[e.points.length-1][t];if(r>i){var s=i;i=r,r=s}for(var a=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),n=0;n<a.length;n+=1)if(a[n]>0&&a[n]<1){var o=e.point(a[n])[t];o<r?r=o:o>i&&(i=o)}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,t,r){var i=e.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return Math.abs(e.cx-t.cx)*2<e.width+t.width&&Math.abs(e.cy-t.cy)*2<e.height+t.height}function intersectsImpl(e,t,r,i,s,a){if(boxIntersect(e,t)){if(r>=a||e.width<=i&&e.height<=i&&t.width<=i&&t.height<=i){s.push([e.t,t.t]);return}var n=splitData(e),o=splitData(t);intersectsImpl(n[0],o[0],r+1,i,s,a),intersectsImpl(n[0],o[1],r+1,i,s,a),intersectsImpl(n[1],o[0],r+1,i,s,a),intersectsImpl(n[1],o[1],r+1,i,s,a)}}PolynomialBezier.prototype.intersections=function(e,t,r){t===void 0&&(t=2),r===void 0&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,i,r),i},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)};function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,i){var s=[e[0],e[1],1],a=[t[0],t[1],1],n=[r[0],r[1],1],o=[i[0],i[1],1],l=crossProduct(crossProduct(s,a),crossProduct(n,o));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,t,r,i,s,a,n){var o=r-Math.PI/2,l=r+Math.PI/2,p=t[0]+Math.cos(r)*i*s,b=t[1]-Math.sin(r)*i*s;e.setTripleAt(p,b,p+Math.cos(o)*a,b-Math.sin(o)*a,p+Math.cos(l)*n,b-Math.sin(l)*n,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],i=-Math.PI*.5,s=[Math.cos(i)*r[0]-Math.sin(i)*r[1],Math.sin(i)*r[0]+Math.cos(i)*r[1]];return s}function getProjectingAngle(e,t){var r=t===0?e.length()-1:t-1,i=(t+1)%e.length(),s=e.v[r],a=e.v[i],n=getPerpendicularVector(s,a);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(e,t,r,i,s,a,n){var o=getProjectingAngle(t,r),l=t.v[r%t._length],p=t.v[r===0?t._length-1:r-1],b=t.v[(r+1)%t._length],E=a===2?Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)):0,f=a===2?Math.sqrt(Math.pow(l[0]-b[0],2)+Math.pow(l[1]-b[1],2)):0;setPoint(e,t.v[r%t._length],o,n,i,f/((s+1)*2),E/((s+1)*2))}function zigZagSegment(e,t,r,i,s,a){for(var n=0;n<i;n+=1){var o=(n+1)/(i+1),l=s===2?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,p=t.normalAngle(o),b=t.point(o);setPoint(e,b,p,a,r,l/((i+1)*2),l/((i+1)*2)),a=-a}return a}ZigZagModifier.prototype.processPath=function(e,t,r,i){var s=e._length,a=shapePool.newElement();if(a.c=e.c,e.c||(s-=1),s===0)return a;var n=-1,o=PolynomialBezier.shapeSegment(e,0);zigZagCorner(a,e,0,t,r,i,n);for(var l=0;l<s;l+=1)n=zigZagSegment(a,o,t,r,i,-n),l===s-1&&!e.c?o=null:o=PolynomialBezier.shapeSegment(e,(l+1)%s),zigZagCorner(a,e,l+1,t,r,i,n);return a},ZigZagModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,s,a,n=this.amplitude.v,o=Math.max(0,Math.round(this.frequency.v)),l=this.pointsType.v;if(n!==0){var p,b;for(r=0;r<i;r+=1){if(p=this.shapes[r],b=p.localShapeCollection,!(!p.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),p.shape._mdf=!0,t=p.shape.paths.shapes,a=p.shape.paths._length,s=0;s<a;s+=1)b.addShape(this.processPath(t[s],n,o,l));p.shape.paths=p.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,t,r){var i=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,i,r),polarOffset(t,i,r)]}function offsetSegment(e,t){var r,i,s,a,n,o,l;l=linearOffset(e.points[0],e.points[1],t),r=l[0],i=l[1],l=linearOffset(e.points[1],e.points[2],t),s=l[0],a=l[1],l=linearOffset(e.points[2],e.points[3],t),n=l[0],o=l[1];var p=lineIntersection(r,i,s,a);p===null&&(p=i);var b=lineIntersection(n,o,s,a);return b===null&&(b=n),new PolynomialBezier(r,p,b,o)}function joinLines(e,t,r,i,s){var a=t.points[3],n=r.points[0];if(i===3||pointEqual(a,n))return a;if(i===2){var o=-t.tangentAngle(1),l=-r.tangentAngle(0)+Math.PI,p=lineIntersection(a,polarOffset(a,o+Math.PI/2,100),n,polarOffset(n,o+Math.PI/2,100)),b=p?pointDistance(p,a):pointDistance(a,n)/2,E=polarOffset(a,o,2*b*roundCorner);return e.setXYAt(E[0],E[1],"o",e.length()-1),E=polarOffset(n,l,2*b*roundCorner),e.setTripleAt(n[0],n[1],n[0],n[1],E[0],E[1],e.length()),n}var f=pointEqual(a,t.points[2])?t.points[0]:t.points[2],S=pointEqual(n,r.points[1])?r.points[3]:r.points[1],A=lineIntersection(f,a,n,S);return A&&pointDistance(A,a)<s?(e.setTripleAt(A[0],A[1],A[0],A[1],A[0],A[1],e.length()),A):a}function getIntersection(e,t){var r=e.intersections(t);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,t){var r=e.slice(),i=t.slice(),s=getIntersection(e[e.length-1],t[0]);return s&&(r[e.length-1]=e[e.length-1].split(s[0])[0],i[0]=t[0].split(s[1])[1]),e.length>1&&t.length>1&&(s=getIntersection(e[0],t[t.length-1]),s)?[[e[0].split(s[0])[0]],[t[t.length-1].split(s[1])[1]]]:[r,i]}function pruneIntersections(e){for(var t,r=1;r<e.length;r+=1)t=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=t[0],e[r]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r=e.inflectionPoints(),i,s,a,n;if(r.length===0)return[offsetSegment(e,t)];if(r.length===1||floatEqual(r[1],1))return a=e.split(r[0]),i=a[0],s=a[1],[offsetSegment(i,t),offsetSegment(s,t)];a=e.split(r[0]),i=a[0];var o=(r[1]-r[0])/(1-r[0]);return a=a[1].split(o),n=a[0],s=a[1],[offsetSegment(i,t),offsetSegment(n,t),offsetSegment(s,t)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,t,r,i){var s=shapePool.newElement();s.c=e.c;var a=e.length();e.c||(a-=1);var n,o,l,p=[];for(n=0;n<a;n+=1)l=PolynomialBezier.shapeSegment(e,n),p.push(offsetSegmentSplit(l,t));if(!e.c)for(n=a-1;n>=0;n-=1)l=PolynomialBezier.shapeSegmentInverted(e,n),p.push(offsetSegmentSplit(l,t));p=pruneIntersections(p);var b=null,E=null;for(n=0;n<p.length;n+=1){var f=p[n];for(E&&(b=joinLines(s,E,f[0],r,i)),E=f[f.length-1],o=0;o<f.length;o+=1)l=f[o],b&&pointEqual(l.points[0],b)?s.setXYAt(l.points[1][0],l.points[1][1],"o",s.length()-1):s.setTripleAt(l.points[0][0],l.points[0][1],l.points[1][0],l.points[1][1],l.points[0][0],l.points[0][1],s.length()),s.setTripleAt(l.points[3][0],l.points[3][1],l.points[3][0],l.points[3][1],l.points[2][0],l.points[2][1],s.length()),b=l.points[3]}return p.length&&joinLines(s,E,p[0][0],r,i),s},OffsetPathModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,s,a,n=this.amount.v,o=this.miterLimit.v,l=this.lineJoin;if(n!==0){var p,b;for(r=0;r<i;r+=1){if(p=this.shapes[r],b=p.localShapeCollection,!(!p.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),p.shape._mdf=!0,t=p.shape.paths.shapes,a=p.shape.paths._length,s=0;s<a;s+=1)b.addShape(this.processPath(t[s],n,l,o));p.shape.paths=p.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",i="normal",s=t.length,a,n=0;n<s;n+=1)switch(a=t[n].toLowerCase(),a){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,t={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=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],s=[65039,8205];function a(u){var x=u.split(","),P,T=x.length,M=[];for(P=0;P<T;P+=1)x[P]!=="sans-serif"&&x[P]!=="monospace"&&M.push(x[P]);return M.join(",")}function n(u,x){var P=createTag("span");P.setAttribute("aria-hidden",!0),P.style.fontFamily=x;var T=createTag("span");T.innerText="giItT1WQy@!-/#",P.style.position="absolute",P.style.left="-10000px",P.style.top="-10000px",P.style.fontSize="300px",P.style.fontVariant="normal",P.style.fontStyle="normal",P.style.fontWeight="normal",P.style.letterSpacing="0",P.appendChild(T),document.body.appendChild(P);var M=T.offsetWidth;return T.style.fontFamily=a(u)+", "+x,{node:T,w:M,parent:P}}function o(){var u,x=this.fonts.length,P,T,M=x;for(u=0;u<x;u+=1)this.fonts[u].loaded?M-=1:this.fonts[u].fOrigin==="n"||this.fonts[u].origin===0?this.fonts[u].loaded=!0:(P=this.fonts[u].monoCase.node,T=this.fonts[u].monoCase.w,P.offsetWidth!==T?(M-=1,this.fonts[u].loaded=!0):(P=this.fonts[u].sansCase.node,T=this.fonts[u].sansCase.w,P.offsetWidth!==T&&(M-=1,this.fonts[u].loaded=!0)),this.fonts[u].loaded&&(this.fonts[u].sansCase.parent.parentNode.removeChild(this.fonts[u].sansCase.parent),this.fonts[u].monoCase.parent.parentNode.removeChild(this.fonts[u].monoCase.parent)));M!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function l(u,x){var P=document.body&&x?"svg":"canvas",T,M=getFontProperties(u);if(P==="svg"){var V=createNS("text");V.style.fontSize="100px",V.setAttribute("font-family",u.fFamily),V.setAttribute("font-style",M.style),V.setAttribute("font-weight",M.weight),V.textContent="1",u.fClass?(V.style.fontFamily="inherit",V.setAttribute("class",u.fClass)):V.style.fontFamily=u.fFamily,x.appendChild(V),T=V}else{var N=new OffscreenCanvas(500,500).getContext("2d");N.font=M.style+" "+M.weight+" 100px "+u.fFamily,T=N}function G(D){return P==="svg"?(T.textContent=D,T.getComputedTextLength()):T.measureText(D).width}return{measureText:G}}function p(u,x){if(!u){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=u.list;return}if(!document.body){this.isLoaded=!0,u.list.forEach(function(I){I.helper=l(I),I.cache={}}),this.fonts=u.list;return}var P=u.list,T,M=P.length,V=M;for(T=0;T<M;T+=1){var N=!0,G,D;if(P[T].loaded=!1,P[T].monoCase=n(P[T].fFamily,"monospace"),P[T].sansCase=n(P[T].fFamily,"sans-serif"),!P[T].fPath)P[T].loaded=!0,V-=1;else if(P[T].fOrigin==="p"||P[T].origin===3){if(G=document.querySelectorAll('style[f-forigin="p"][f-family="'+P[T].fFamily+'"], style[f-origin="3"][f-family="'+P[T].fFamily+'"]'),G.length>0&&(N=!1),N){var H=createTag("style");H.setAttribute("f-forigin",P[T].fOrigin),H.setAttribute("f-origin",P[T].origin),H.setAttribute("f-family",P[T].fFamily),H.type="text/css",H.innerText="@font-face {font-family: "+P[T].fFamily+"; font-style: normal; src: url('"+P[T].fPath+"');}",x.appendChild(H)}}else if(P[T].fOrigin==="g"||P[T].origin===1){for(G=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),D=0;D<G.length;D+=1)G[D].href.indexOf(P[T].fPath)!==-1&&(N=!1);if(N){var q=createTag("link");q.setAttribute("f-forigin",P[T].fOrigin),q.setAttribute("f-origin",P[T].origin),q.type="text/css",q.rel="stylesheet",q.href=P[T].fPath,document.body.appendChild(q)}}else if(P[T].fOrigin==="t"||P[T].origin===2){for(G=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),D=0;D<G.length;D+=1)P[T].fPath===G[D].src&&(N=!1);if(N){var R=createTag("link");R.setAttribute("f-forigin",P[T].fOrigin),R.setAttribute("f-origin",P[T].origin),R.setAttribute("rel","stylesheet"),R.setAttribute("href",P[T].fPath),x.appendChild(R)}}P[T].helper=l(P[T],x),P[T].cache={},this.fonts.push(P[T])}V===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function b(u){if(u){this.chars||(this.chars=[]);var x,P=u.length,T,M=this.chars.length,V;for(x=0;x<P;x+=1){for(T=0,V=!1;T<M;)this.chars[T].style===u[x].style&&this.chars[T].fFamily===u[x].fFamily&&this.chars[T].ch===u[x].ch&&(V=!0),T+=1;V||(this.chars.push(u[x]),M+=1)}}}function E(u,x,P){for(var T=0,M=this.chars.length;T<M;){if(this.chars[T].ch===u&&this.chars[T].style===x&&this.chars[T].fFamily===P)return this.chars[T];T+=1}return(typeof u=="string"&&u.charCodeAt(0)!==13||!u)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",u,x,P)),t}function f(u,x,P){var T=this.getFontByName(x),M=u.charCodeAt(0);if(!T.cache[M+1]){var V=T.helper;if(u===" "){var N=V.measureText("|"+u+"|"),G=V.measureText("||");T.cache[M+1]=(N-G)/100}else T.cache[M+1]=V.measureText(u)/100}return T.cache[M+1]*P}function S(u){for(var x=0,P=this.fonts.length;x<P;){if(this.fonts[x].fName===u)return this.fonts[x];x+=1}return this.fonts[0]}function A(u,x){var P=u.toString(16)+x.toString(16);return i.indexOf(P)!==-1}function g(u,x){return x?u===s[0]&&x===s[1]:u===s[1]}function _(u){return r.indexOf(u)!==-1}function d(){this.isLoaded=!0}var y=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)};y.isModifier=A,y.isZeroWidthJoiner=g,y.isCombinedCharacter=_;var m={addChars:b,addFonts:p,getCharData:E,getFontByName:S,measureText:f,checkLoadedFonts:o,setIsLoaded:d};return y.prototype=m,y}();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(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},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(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?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 t,r=this.renderableComponents.length;for(t=0;t<r;t+=1)this.renderableComponents[t].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(t){return e[t]||""}}();function SliderEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function AngleEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function ColorEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function PointEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function LayerIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function MaskIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function CheckboxEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var r=e.ef||[];this.effectElements=[];var i,s=r.length,a;for(i=0;i<s;i+=1)a=new GroupEffect(r[i],t),this.effectElements.push(a)}function GroupEffect(e,t){this.init(e,t)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var r,i=this.data.ef.length,s,a=this.data.ef;for(r=0;r<i;r+=1){switch(s=null,a[r].ty){case 0:s=new SliderEffect(a[r],t,this);break;case 1:s=new AngleEffect(a[r],t,this);break;case 2:s=new ColorEffect(a[r],t,this);break;case 3:s=new PointEffect(a[r],t,this);break;case 4:case 7:s=new CheckboxEffect(a[r],t,this);break;case 10:s=new LayerIndexEffect(a[r],t,this);break;case 11:s=new MaskIndexEffect(a[r],t,this);break;case 5:s=new EffectsManager(a[r],t);break;default:s=new NoValueEffect(a[r]);break}s&&this.effectElements.push(s)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,r=this.data.masksProperties.length;t<r;){if(this.data.masksProperties[t].mode!=="n"&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var r=t("layer"),i=t("effects"),s=t("shape"),a=t("text"),n=t("comp");this.layerInterface=r(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var o=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(o),this.data.ty===0||this.data.xt?this.compInterface=n(this):this.data.ty===4?(this.layerInterface.shapeInterface=s(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=a(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm),r=this.baseElement||this.layerElement;r.style["mix-blend-mode"]=t},initBaseData:function(t,r,i){this.globalData=r,this.comp=i,this.data=t,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(t,r){var i,s=this.dynamicProperties.length;for(i=0;i<s;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(t){this.dynamicProperties.indexOf(t)===-1&&this.dynamicProperties.push(t)}};function FootageElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,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 t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,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,t.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 t=this.tm.v;this._currentTime=t}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 t,r=this.layers.length,i;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(i=this.layers[t],i.ip-i.st<=e-this.layers[t].st&&i.op-i.st>e-this.layers[t].st&&this.buildItem(t)),this.completeLayers=this.elements[t]?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,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var t,r=e.length,i,s=this.layers.length;for(t=0;t<r;t+=1)for(i=0;i<s;){if(this.layers[i].id===e[t].id){this.layers[i]=e[t];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,t,r){for(var i=this.elements,s=this.layers,a=0,n=s.length;a<n;)s[a].ind==t&&(!i[a]||i[a]===!0?(this.buildItem(a),this.addPendingElement(e)):(r.push(i[a]),i[a].setAsParent(),s[a].parent!==void 0?this.buildElementParenting(e,s[a].parent,r):e.setHierarchy(r))),a+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,r=e.length;for(t=0;t<r;t+=1)if(e[t].xt){var i=this.createComp(e[t]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(e){var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t=e.shift(),r;if(typeof t=="number")r=this.elements[t];else{var i,s=this.elements.length;for(i=0;i<s;i+=1)if(this.elements[i].data.nm===t){r=this.elements[i];break}}return e.length===0?r:r.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),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}};function TransformElement(){}TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},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 t,r=this.finalTransform.mat,i=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<s;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,r.cloneFromProps(t),i=0;i<s;i+=1)t=this.hierarchy[i].finalTransform.mProp.v.props,r.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){var r=[];r.push(this.finalTransform);for(var i=!0,s=this.comp;i;)s.finalTransform?(s.data.hasMask&&r.splice(0,0,s.finalTransform),s=s.comp):i=!1;var a,n=r.length,o;for(a=0;a<n;a+=1)o=r[a].mat.applyToPointArray(0,0,0),t=[t[0]-o[0],t[1]-o[1],0];return t},mHelper:new Matrix};function MaskElement(e,t,r){this.data=e,this.element=t,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i=this.globalData.defs,s,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var n,o=this.masksProperties,l=0,p=[],b,E,f=createElementID(),S,A,g,_,d="clipPath",y="clip-path";for(s=0;s<a;s+=1)if((o[s].mode!=="a"&&o[s].mode!=="n"||o[s].inv||o[s].o.k!==100||o[s].o.x)&&(d="mask",y="mask"),(o[s].mode==="s"||o[s].mode==="i")&&l===0?(S=createNS("rect"),S.setAttribute("fill","#ffffff"),S.setAttribute("width",this.element.comp.data.w||0),S.setAttribute("height",this.element.comp.data.h||0),p.push(S)):S=null,n=createNS("path"),o[s].mode==="n")this.viewData[s]={op:PropertyFactory.getProp(this.element,o[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,o[s],3),elem:n,lastPath:""},i.appendChild(n);else{l+=1,n.setAttribute("fill",o[s].mode==="s"?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero");var m;if(o[s].x.k!==0?(d="mask",y="mask",_=PropertyFactory.getProp(this.element,o[s].x,0,null,this.element),m=createElementID(),A=createNS("filter"),A.setAttribute("id",m),g=createNS("feMorphology"),g.setAttribute("operator","erode"),g.setAttribute("in","SourceGraphic"),g.setAttribute("radius","0"),A.appendChild(g),i.appendChild(A),n.setAttribute("stroke",o[s].mode==="s"?"#000000":"#ffffff")):(g=null,_=null),this.storedData[s]={elem:n,x:_,expan:g,lastPath:"",lastOperator:"",filterId:m,lastRadius:0},o[s].mode==="i"){E=p.length;var u=createNS("g");for(b=0;b<E;b+=1)u.appendChild(p[b]);var x=createNS("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",f+"_"+l),x.appendChild(n),i.appendChild(x),u.setAttribute("mask","url("+getLocationHref()+"#"+f+"_"+l+")"),p.length=0,p.push(u)}else p.push(n);o[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:n,lastPath:"",op:PropertyFactory.getProp(this.element,o[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,o[s],3),invRect:S},this.viewData[s].prop.k||this.drawPath(o[s],this.viewData[s].prop.v,this.viewData[s])}for(this.maskElement=createNS(d),a=p.length,s=0;s<a;s+=1)this.maskElement.appendChild(p[s]);l>0&&(this.maskElement.setAttribute("id",f),this.element.maskedElement.setAttribute(y,"url("+getLocationHref()+"#"+f+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t=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",t.getInverseMatrix().to2dCSS()),this.storedData[r].x&&(this.storedData[r].x._mdf||e))){var s=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+")")),s.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,t,r){var i=" M"+t.v[0][0]+","+t.v[0][1],s,a;for(a=t._length,s=1;s<a;s+=1)i+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[s][0]+","+t.i[s][1]+" "+t.v[s][0]+","+t.v[s][1];if(t.c&&a>1&&(i+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==i){var n="";r.elem&&(t.c&&(n=e.inv?this.solidPath+i:i),r.elem.setAttribute("d",n)),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=t,e.createAlphaToLuminanceFilter=r;function t(i,s){var a=createNS("filter");return a.setAttribute("id",i),s!==!0&&(a.setAttribute("filterUnits","objectBoundingBox"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%")),a}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={},idPrefix="filter_result_";function SVGEffects(e){var t,r="SourceGraphic",i=e.data.ef?e.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),n=0;this.filters=[];var o;for(t=0;t<i;t+=1){o=null;var l=e.data.ef[t].ty;if(registeredEffects[l]){var p=registeredEffects[l].effect;o=new p(a,e.effectsManager.effectElements[t],e,idPrefix+n,r),r=idPrefix+n,registeredEffects[l].countsAsEffect&&(n+=1)}o&&this.filters.push(o)}n&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)};function registerEffect(e,t,r){registeredEffects[e]={effect:t,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 t=null;if(this.data.td){this.matteMasks={};var r=createNS("g");r.setAttribute("id",this.layerId),r.appendChild(this.layerElement),t=r,this.globalData.defs.appendChild(r)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=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"),s=createNS("path");s.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var a=createElementID();if(i.setAttribute("id",a),i.appendChild(s),this.globalData.defs.appendChild(i),this.checkMasks()){var n=createNS("g");n.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),n.appendChild(this.layerElement),this.transformedElement=n,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},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)},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var r=this.layerId+"_"+t,i,s,a,n;if(t===1||t===3){var o=createNS("mask");o.setAttribute("id",r),o.setAttribute("mask-type",t===3?"luminance":"alpha"),a=createNS("use"),a.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(a),this.globalData.defs.appendChild(o),!featureSupport.maskType&&t===1&&(o.setAttribute("mask-type","luminance"),i=createElementID(),s=filtersFactory.createFilter(i),this.globalData.defs.appendChild(s),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),n.appendChild(a),o.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+i+")"))}else if(t===2){var l=createNS("mask");l.setAttribute("id",r),l.setAttribute("mask-type","alpha");var p=createNS("g");l.appendChild(p),i=createElementID(),s=filtersFactory.createFilter(i);var b=createNS("feComponentTransfer");b.setAttribute("in","SourceGraphic"),s.appendChild(b);var E=createNS("feFuncA");E.setAttribute("type","table"),E.setAttribute("tableValues","1.0 0.0"),b.appendChild(E),this.globalData.defs.appendChild(s);var f=createNS("rect");f.setAttribute("width",this.comp.data.w),f.setAttribute("height",this.comp.data.h),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("fill","#ffffff"),f.setAttribute("opacity","0"),p.setAttribute("filter","url("+getLocationHref()+"#"+i+")"),p.appendChild(f),a=createNS("use"),a.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),p.appendChild(a),featureSupport.maskType||(l.setAttribute("mask-type","luminance"),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),p.appendChild(f),n.appendChild(this.layerElement),p.appendChild(n)),this.globalData.defs.appendChild(l)}this.matteMasks[t]=r}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},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,s){this.initFrame(),this.initBaseData(r,i,s),this.initTransform(r,i,s),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.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,t,r){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,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,t){this.elem=e,this.pos=t}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(t){var r,i=this.shapeModifiers.length;for(r=0;r<i;r+=1)this.shapeModifiers[r].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var r=0,i=this.shapeModifiers.length;r<i;)if(this.shapeModifiers[r].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,r=this.shapes.length;for(t=0;t<r;t+=1)this.shapes[t].sh.reset();r=this.shapeModifiers.length;var i;for(t=r-1;t>=0&&(i=this.shapeModifiers[t].processShapes(this._isFirstFrame),!i);t-=1);}},searchProcessedElement:function(t){for(var r=this.processedElements,i=0,s=r.length;i<s;){if(r[i].elem===t)return r[i].pos;i+=1}return 0},addProcessedElement:function(t,r){for(var i=this.processedElements,s=i.length;s;)if(s-=1,i[s].elem===t){i[s].pos=r;return}i.push(new ProcessedElement(t,r))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=t,this._isAnimated=!!r.k;for(var i=0,s=e.length;i<s;){if(e[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,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,t,r,i){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var s,a=t.length||0,n;for(s=0;s<a;s+=1)n=PropertyFactory.getProp(e,t[s].v,0,0,this),this.k=n.k||this.k,this.dataProps[s]={n:t[s].n,p:n};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 t=0,r=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),t=0;t<r;t+=1)this.dataProps[t].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",t.p*4);var i=t.k.k[0].s?t.k.k[0].s.length-t.p*4:t.k.k.length-t.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,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,i=this.o.length/2,s;r<i;){if(s=Math.abs(e[r*4]-e[t*4+r*2]),s>.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,t=this.data.k.k.length;e<t;){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 t,r=this.data.p*4,i,s;for(t=0;t<r;t+=1)i=t%4===0?100:255,s=Math.round(this.prop.v[t]*i),this.c[t]!==s&&(this.c[t]=s,this._cmdf=!e);if(this.o.length)for(r=this.prop.v.length,t=this.data.p*4;t<r;t+=1)i=t%2===0?100:1,s=t%2===0?Math.round(this.prop.v[t]*100):this.prop.v[t],this.o[t-this.data.p*4]!==s&&(this.o[t-this.data.p*4]=s,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}SVGGradientFillStyleData.prototype.initGradientData=function(e,t,r){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,t),this.setGradientOpacity(t,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var r=createElementID(),i=createNS(t.t===1?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var s=[],a,n,o;for(o=t.g.p*4,n=0;n<o;n+=4)a=createNS("stop"),i.appendChild(a),s.push(a);e.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=i,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,i,s,a=createNS("mask"),n=createNS("path");a.appendChild(n);var o=createElementID(),l=createElementID();a.setAttribute("id",l);var p=createNS(e.t===1?"linearGradient":"radialGradient");p.setAttribute("id",o),p.setAttribute("spreadMethod","pad"),p.setAttribute("gradientUnits","userSpaceOnUse"),s=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var b=this.stops;for(i=e.g.p*4;i<s;i+=2)r=createNS("stop"),r.setAttribute("stop-color","rgb(255,255,255)"),p.appendChild(r),b.push(r);n.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),e.ty==="gs"&&(n.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&n.setAttribute("stroke-miterlimit",e.ml)),this.of=p,this.ms=a,this.ost=b,this.maskId=l,t.msElem=n}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,r),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,r){this.transform={mProps:e,op:t,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(t,r,i,s){if(r===0)return"";var a=t.o,n=t.i,o=t.v,l,p=" M"+s.applyToPointStringified(o[0][0],o[0][1]);for(l=1;l<r;l+=1)p+=" C"+s.applyToPointStringified(a[l-1][0],a[l-1][1])+" "+s.applyToPointStringified(n[l][0],n[l][1])+" "+s.applyToPointStringified(o[l][0],o[l][1]);return i&&r&&(p+=" C"+s.applyToPointStringified(a[l-1][0],a[l-1][1])+" "+s.applyToPointStringified(n[0][0],n[0][1])+" "+s.applyToPointStringified(o[0][0],o[0][1]),p+="z"),p},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix,r={createRenderFunction:i};function i(E){switch(E.ty){case"fl":return o;case"gf":return p;case"gs":return l;case"st":return b;case"sh":case"el":case"rc":case"sr":return n;case"tr":return s;case"no":return a;default:return null}}function s(E,f,S){(S||f.transform.op._mdf)&&f.transform.container.setAttribute("opacity",f.transform.op.v),(S||f.transform.mProps._mdf)&&f.transform.container.setAttribute("transform",f.transform.mProps.v.to2dCSS())}function a(){}function n(E,f,S){var A,g,_,d,y,m,u=f.styles.length,x=f.lvl,P,T,M,V,N;for(m=0;m<u;m+=1){if(d=f.sh._mdf||S,f.styles[m].lvl<x){for(T=t.reset(),V=x-f.styles[m].lvl,N=f.transformers.length-1;!d&&V>0;)d=f.transformers[N].mProps._mdf||d,V-=1,N-=1;if(d)for(V=x-f.styles[m].lvl,N=f.transformers.length-1;V>0;)M=f.transformers[N].mProps.v.props,T.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]),V-=1,N-=1}else T=e;if(P=f.sh.paths,g=P._length,d){for(_="",A=0;A<g;A+=1)y=P.shapes[A],y&&y._length&&(_+=buildShapeString(y,y._length,y.c,T));f.caches[m]=_}else _=f.caches[m];f.styles[m].d+=E.hd===!0?"":_,f.styles[m]._mdf=d||f.styles[m]._mdf}}function o(E,f,S){var A=f.style;(f.c._mdf||S)&&A.pElem.setAttribute("fill","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||S)&&A.pElem.setAttribute("fill-opacity",f.o.v)}function l(E,f,S){p(E,f,S),b(E,f,S)}function p(E,f,S){var A=f.gf,g=f.g._hasOpacity,_=f.s.v,d=f.e.v;if(f.o._mdf||S){var y=E.ty==="gf"?"fill-opacity":"stroke-opacity";f.style.pElem.setAttribute(y,f.o.v)}if(f.s._mdf||S){var m=E.t===1?"x1":"cx",u=m==="x1"?"y1":"cy";A.setAttribute(m,_[0]),A.setAttribute(u,_[1]),g&&!f.g._collapsable&&(f.of.setAttribute(m,_[0]),f.of.setAttribute(u,_[1]))}var x,P,T,M;if(f.g._cmdf||S){x=f.cst;var V=f.g.c;for(T=x.length,P=0;P<T;P+=1)M=x[P],M.setAttribute("offset",V[P*4]+"%"),M.setAttribute("stop-color","rgb("+V[P*4+1]+","+V[P*4+2]+","+V[P*4+3]+")")}if(g&&(f.g._omdf||S)){var N=f.g.o;for(f.g._collapsable?x=f.cst:x=f.ost,T=x.length,P=0;P<T;P+=1)M=x[P],f.g._collapsable||M.setAttribute("offset",N[P*2]+"%"),M.setAttribute("stop-opacity",N[P*2+1])}if(E.t===1)(f.e._mdf||S)&&(A.setAttribute("x2",d[0]),A.setAttribute("y2",d[1]),g&&!f.g._collapsable&&(f.of.setAttribute("x2",d[0]),f.of.setAttribute("y2",d[1])));else{var G;if((f.s._mdf||f.e._mdf||S)&&(G=Math.sqrt(Math.pow(_[0]-d[0],2)+Math.pow(_[1]-d[1],2)),A.setAttribute("r",G),g&&!f.g._collapsable&&f.of.setAttribute("r",G)),f.e._mdf||f.h._mdf||f.a._mdf||S){G||(G=Math.sqrt(Math.pow(_[0]-d[0],2)+Math.pow(_[1]-d[1],2)));var D=Math.atan2(d[1]-_[1],d[0]-_[0]),H=f.h.v;H>=1?H=.99:H<=-1&&(H=-.99);var q=G*H,R=Math.cos(D+f.a.v)*q+_[0],I=Math.sin(D+f.a.v)*q+_[1];A.setAttribute("fx",R),A.setAttribute("fy",I),g&&!f.g._collapsable&&(f.of.setAttribute("fx",R),f.of.setAttribute("fy",I))}}}function b(E,f,S){var A=f.style,g=f.d;g&&(g._mdf||S)&&g.dashStr&&(A.pElem.setAttribute("stroke-dasharray",g.dashStr),A.pElem.setAttribute("stroke-dashoffset",g.dashoffset[0])),f.c&&(f.c._mdf||S)&&A.pElem.setAttribute("stroke","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||S)&&A.pElem.setAttribute("stroke-opacity",f.o.v),(f.w._mdf||S)&&(A.pElem.setAttribute("stroke-width",f.w.v),A.msElem&&A.msElem.setAttribute("stroke-width",f.w.v))}return r}();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,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,t=this.shapes.length,r,i,s=this.stylesList.length,a,n=[],o=!1;for(i=0;i<s;i+=1){for(a=this.stylesList[i],o=!1,n.length=0,e=0;e<t;e+=1)r=this.shapes[e],r.styles.indexOf(a)!==-1&&(n.push(r),o=r._isAnimated||o);n.length>1&&o&&this.setShapesAsAnimated(n)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,i=new SVGStyleData(e,t),s=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 a=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;r=new a(this,e,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),s.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))}else e.ty==="no"&&(r=new SVGNoStyleData(this,e,i));return(e.ty==="st"||e.ty==="gs")&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),s.setAttribute("fill-opacity","0"),e.lj===1&&s.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&s.setAttribute("fill-rule","evenodd"),e.ln&&s.setAttribute("id",e.ln),e.cl&&s.setAttribute("class",e.cl),e.bm&&(s.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(i),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var r=TransformPropertyFactory.getTransformProperty(this,e,this),i=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var i=4;e.ty==="rc"?i=5:e.ty==="el"?i=6:e.ty==="sr"&&(i=7);var s=ShapePropertyFactory.getShapeProp(this,e,i,this),a=new SVGShapeData(t,r,s);return this.shapes.push(a),this.addShapeToModifiers(a),this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,i=this.animatedContents.length;r<i;){if(this.animatedContents[r].element===t)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t=e.styles,r,i=this.stylesList.length;for(r=0;r<i;r+=1)this.stylesList[r].closed||t.push(this.stylesList[r])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,r,i,s,a,n){var o=[].concat(a),l,p=e.length-1,b,E,f=[],S=[],A,g,_;for(l=p;l>=0;l-=1){if(_=this.searchProcessedElement(e[l]),_?t[l]=r[_-1]:e[l]._render=n,e[l].ty==="fl"||e[l].ty==="st"||e[l].ty==="gf"||e[l].ty==="gs"||e[l].ty==="no")_?t[l].style.closed=!1:t[l]=this.createStyleElement(e[l],s),e[l]._render&&t[l].style.pElem.parentNode!==i&&i.appendChild(t[l].style.pElem),f.push(t[l].style);else if(e[l].ty==="gr"){if(!_)t[l]=this.createGroupElement(e[l]);else for(E=t[l].it.length,b=0;b<E;b+=1)t[l].prevViewData[b]=t[l].it[b];this.searchShapes(e[l].it,t[l].it,t[l].prevViewData,t[l].gr,s+1,o,n),e[l]._render&&t[l].gr.parentNode!==i&&i.appendChild(t[l].gr)}else e[l].ty==="tr"?(_||(t[l]=this.createTransformElement(e[l],i)),A=t[l].transform,o.push(A)):e[l].ty==="sh"||e[l].ty==="rc"||e[l].ty==="el"||e[l].ty==="sr"?(_||(t[l]=this.createShapeElement(e[l],o,s)),this.setElementStyles(t[l])):e[l].ty==="tm"||e[l].ty==="rd"||e[l].ty==="ms"||e[l].ty==="pb"||e[l].ty==="zz"||e[l].ty==="op"?(_?(g=t[l],g.closed=!1):(g=ShapeModifiers.getModifier(e[l].ty),g.init(this,e[l]),t[l]=g,this.shapeModifiers.push(g)),S.push(g)):e[l].ty==="rp"&&(_?(g=t[l],g.closed=!0):(g=ShapeModifiers.getModifier(e[l].ty),t[l]=g,g.init(this,e,l,t),this.shapeModifiers.push(g),n=!1),S.push(g));this.addProcessedElement(e[l],l+1)}for(p=f.length,l=0;l<p;l+=1)f[l].closed=!0;for(p=S.length,l=0;l<p;l+=1)S[l].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;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,t=this.animatedContents.length,r;for(e=0;e<t;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,t,r,i,s,a){this.o=e,this.sw=t,this.sc=r,this.fc=i,this.m=s,this.p=a,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!i,m:!0,p:!0}}LetterProps.prototype.update=function(e,t,r,i,s,a){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 n=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,n=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,n=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,n=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,n=!0),this.m!==s&&(this.m=s,this._mdf.m=!0,n=!0),a.length&&(this.p[0]!==a[0]||this.p[1]!==a[1]||this.p[4]!==a[4]||this.p[5]!==a[5]||this.p[12]!==a[12]||this.p[13]!==a[13])&&(this.p=a,this._mdf.p=!0,n=!0),n};function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,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,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[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 t=this.currentData,r=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var i,s=this.effectsSequence.length,a=e||this.data.d.k[this.keysIndex].s;for(i=0;i<s;i+=1)r!==this.keysIndex?a=this.effectsSequence[i](a,a.t):a=this.effectsSequence[i](this.currentData,a.t);t!==a&&this.setCurrentData(a),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,t=this.elem.comp.renderedFrame,r=0,i=e.length;r<=i-1&&!(r===i-1||e[r+1].t>t);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t=[],r=0,i=e.length,s,a,n=!1;r<i;)s=e.charCodeAt(r),FontManager.isCombinedCharacter(s)?t[t.length-1]+=e.charAt(r):s>=55296&&s<=56319?(a=e.charCodeAt(r+1),a>=56320&&a<=57343?(n||FontManager.isModifier(s,a)?(t[t.length-1]+=e.substr(r,2),n=!1):t.push(e.substr(r,2)),r+=1):t.push(e.charAt(r))):s>56319?(a=e.charCodeAt(r+1),FontManager.isZeroWidthJoiner(s,a)?(n=!0,t[t.length-1]+=e.substr(r,2),r+=1):t.push(e.charAt(r))):FontManager.isZeroWidthJoiner(s)?(t[t.length-1]+=e.charAt(r),n=!0):t.push(e.charAt(r)),r+=1;return t},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t=this.elem.globalData.fontManager,r=this.data,i=[],s,a,n,o=0,l,p=r.m.g,b=0,E=0,f=0,S=[],A=0,g=0,_,d,y=t.getFontByName(e.f),m,u=0,x=getFontProperties(y);e.fWeight=x.weight,e.fStyle=x.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),a=e.finalText.length,e.finalLineHeight=e.lh;var P=e.tr/1e3*e.finalSize,T;if(e.sz)for(var M=!0,V=e.sz[0],N=e.sz[1],G,D;M;){D=this.buildFinalText(e.t),G=0,A=0,a=D.length,P=e.tr/1e3*e.finalSize;var H=-1;for(s=0;s<a;s+=1)T=D[s].charCodeAt(0),n=!1,D[s]===" "?H=s:(T===13||T===3)&&(A=0,n=!0,G+=e.finalLineHeight||e.finalSize*1.2),t.chars?(m=t.getCharData(D[s],y.fStyle,y.fFamily),u=n?0:m.w*e.finalSize/100):u=t.measureText(D[s],e.f,e.finalSize),A+u>V&&D[s]!==" "?(H===-1?a+=1:s=H,G+=e.finalLineHeight||e.finalSize*1.2,D.splice(s,H===s?1:0,"\r"),H=-1,A=0):(A+=u,A+=P);G+=y.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&N<G?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=D,a=e.finalText.length,M=!1)}A=-P,u=0;var q=0,R;for(s=0;s<a;s+=1)if(n=!1,R=e.finalText[s],T=R.charCodeAt(0),T===13||T===3?(q=0,S.push(A),g=A>g?A:g,A=-2*P,l="",n=!0,f+=1):l=R,t.chars?(m=t.getCharData(R,y.fStyle,t.getFontByName(e.f).fFamily),u=n?0:m.w*e.finalSize/100):u=t.measureText(l,e.f,e.finalSize),R===" "?q+=u+P:(A+=u+P+q,q=0),i.push({l:u,an:u,add:b,n,anIndexes:[],val:l,line:f,animatorJustifyOffset:0}),p==2){if(b+=u,l===""||l===" "||s===a-1){for((l===""||l===" ")&&(b-=u);E<=s;)i[E].an=b,i[E].ind=o,i[E].extra=u,E+=1;o+=1,b=0}}else if(p==3){if(b+=u,l===""||s===a-1){for(l===""&&(b-=u);E<=s;)i[E].an=b,i[E].ind=o,i[E].extra=u,E+=1;b=0,o+=1}}else i[o].ind=o,i[o].extra=0,o+=1;if(e.l=i,g=A>g?A:g,S.push(A),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=g,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=S;var I=r.a,k,C;d=I.length;var F,O,B=[];for(_=0;_<d;_+=1){for(k=I[_],k.a.sc&&(e.strokeColorAnim=!0),k.a.sw&&(e.strokeWidthAnim=!0),(k.a.fc||k.a.fh||k.a.fs||k.a.fb)&&(e.fillColorAnim=!0),O=0,F=k.s.b,s=0;s<a;s+=1)C=i[s],C.anIndexes[_]=O,(F==1&&C.val!==""||F==2&&C.val!==""&&C.val!==" "||F==3&&(C.n||C.val==" "||s==a-1)||F==4&&(C.n||s==a-1))&&(k.s.rn===1&&B.push(O),O+=1);r.a[_].s.totalChars=O;var W=-1,Y;if(k.s.rn===1)for(s=0;s<a;s+=1)C=i[s],W!=C.anIndexes[_]&&(W=C.anIndexes[_],Y=B.splice(Math.floor(Math.random()*B.length),1)[0]),C.anIndexes[_]=Y}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=y.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=t===void 0?this.keysIndex:t;var r=this.copyData({},this.data.d.k[t].s);r=this.copyData(r,e),this.data.d.k[t].s=r,this.recalculate(t),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},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,t=Math.min,r=Math.floor;function i(a,n){this._currentTextLength=-1,this.k=!1,this.data=n,this.elem=a,this.comp=a.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(a),this.s=PropertyFactory.getProp(a,n.s||{k:0},0,0,this),"e"in n?this.e=PropertyFactory.getProp(a,n.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(a,n.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(a,n.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(a,n.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(a,n.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(a,n.a,0,.01,this),this.dynamicProperties.length||this.getValue()}i.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var o=0,l=0,p=1,b=1;this.ne.v>0?o=this.ne.v/100:l=-this.ne.v/100,this.xe.v>0?p=1-this.xe.v/100:b=1+this.xe.v/100;var E=BezierFactory.getBezierEasing(o,l,p,b).get,f=0,S=this.finalS,A=this.finalE,g=this.data.sh;if(g===2)A===S?f=n>=A?1:0:f=e(0,t(.5/(A-S)+(n-S)/(A-S),1)),f=E(f);else if(g===3)A===S?f=n>=A?0:1:f=1-e(0,t(.5/(A-S)+(n-S)/(A-S),1)),f=E(f);else if(g===4)A===S?f=0:(f=e(0,t(.5/(A-S)+(n-S)/(A-S),1)),f<.5?f*=2:f=1-2*(f-.5)),f=E(f);else if(g===5){if(A===S)f=0;else{var _=A-S;n=t(e(0,n+.5-S),A-S);var d=-_/2+n,y=_/2;f=Math.sqrt(1-d*d/(y*y))}f=E(f)}else g===6?(A===S?f=0:(n=t(e(0,n+.5-S),A-S),f=(1+Math.cos(Math.PI+Math.PI*2*n/(A-S)))/2),f=E(f)):(n>=r(S)&&(n-S<0?f=e(0,t(t(A,1)-(S-n),1)):f=e(0,t(A-n,1))),f=E(f));if(this.sm.v!==100){var m=this.sm.v*.01;m===0&&(m=1e-8);var u=.5-m*.5;f<u?f=0:(f=(f-u)/m,f>1&&(f=1))}return f*this.a.v},getValue:function(n){this.iterateDynamicProperties(),this._mdf=n||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,n&&this.data.r===2&&(this.e.v=this._currentTextLength);var o=this.data.r===2?1:100/this.data.totalChars,l=this.o.v/o,p=this.s.v/o+l,b=this.e.v/o+l;if(p>b){var E=p;p=b,b=E}this.finalS=p,this.finalE=b}},extendPrototype([DynamicPropertyContainer],i);function s(a,n,o){return new i(a,n)}return{getTextSelectorProp:s}}();function TextAnimatorDataProperty(e,t,r){var i={propType:!1},s=PropertyFactory.getProp,a=t.a;this.a={r:a.r?s(e,a.r,0,degToRads,r):i,rx:a.rx?s(e,a.rx,0,degToRads,r):i,ry:a.ry?s(e,a.ry,0,degToRads,r):i,sk:a.sk?s(e,a.sk,0,degToRads,r):i,sa:a.sa?s(e,a.sa,0,degToRads,r):i,s:a.s?s(e,a.s,1,.01,r):i,a:a.a?s(e,a.a,1,0,r):i,o:a.o?s(e,a.o,0,.01,r):i,p:a.p?s(e,a.p,1,0,r):i,sw:a.sw?s(e,a.sw,0,0,r):i,sc:a.sc?s(e,a.sc,1,0,r):i,fc:a.fc?s(e,a.fc,1,0,r):i,fh:a.fh?s(e,a.fh,0,0,r):i,fs:a.fs?s(e,a.fs,0,.01,r):i,fb:a.fb?s(e,a.fb,0,.01,r):i,t:a.t?s(e,a.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,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,t=this._textData.a.length,r,i=PropertyFactory.getProp;for(e=0;e<t;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,t){if(this.lettersChangedFlag=t,!(!this._mdf&&!this._isFirstFrame&&!t&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var r=this._moreOptions.alignment.v,i=this._animatorsData,s=this._textData,a=this.mHelper,n=this._renderType,o=this.renderedLetters.length,l,p,b,E,f=e.l,S,A,g,_,d,y,m,u,x,P,T,M,V,N,G;if(this._hasMaskedPath){if(G=this._pathData.m,!this._pathData.n||this._pathData._mdf){var D=G.v;this._pathData.r.v&&(D=D.reverse()),S={tLength:0,segments:[]},E=D._length-1;var H;for(M=0,b=0;b<E;b+=1)H=bez.buildBezierData(D.v[b],D.v[b+1],[D.o[b][0]-D.v[b][0],D.o[b][1]-D.v[b][1]],[D.i[b+1][0]-D.v[b+1][0],D.i[b+1][1]-D.v[b+1][1]]),S.tLength+=H.segmentLength,S.segments.push(H),M+=H.segmentLength;b=E,G.v.c&&(H=bez.buildBezierData(D.v[b],D.v[0],[D.o[b][0]-D.v[b][0],D.o[b][1]-D.v[b][1]],[D.i[0][0]-D.v[0][0],D.i[0][1]-D.v[0][1]]),S.tLength+=H.segmentLength,S.segments.push(H),M+=H.segmentLength),this._pathData.pi=S}if(S=this._pathData.pi,A=this._pathData.f.v,m=0,y=1,_=0,d=!0,P=S.segments,A<0&&G.v.c)for(S.tLength<Math.abs(A)&&(A=-Math.abs(A)%S.tLength),m=P.length-1,x=P[m].points,y=x.length-1;A<0;)A+=x[y].partialLength,y-=1,y<0&&(m-=1,x=P[m].points,y=x.length-1);x=P[m].points,u=x[y-1],g=x[y],T=g.partialLength}E=f.length,l=0,p=0;var q=e.finalSize*1.2*.714,R=!0,I,k,C,F,O;F=i.length;var B,W=-1,Y,K,ee,Z=A,ce=m,de=y,ne=-1,se,te,re,$,Q,me,ye,ve,pe="",ue=this.defaultPropsArray,ae;if(e.j===2||e.j===1){var ie=0,oe=0,L=e.j===2?-.5:-1,z=0,j=!0;for(b=0;b<E;b+=1)if(f[b].n){for(ie&&(ie+=oe);z<b;)f[z].animatorJustifyOffset=ie,z+=1;ie=0,j=!0}else{for(C=0;C<F;C+=1)I=i[C].a,I.t.propType&&(j&&e.j===2&&(oe+=I.t.v*L),k=i[C].s,B=k.getMult(f[b].anIndexes[C],s.a[C].s.totalChars),B.length?ie+=I.t.v*B[0]*L:ie+=I.t.v*B*L);j=!1}for(ie&&(ie+=oe);z<b;)f[z].animatorJustifyOffset=ie,z+=1}for(b=0;b<E;b+=1){if(a.reset(),se=1,f[b].n)l=0,p+=e.yOffset,p+=R?1:0,A=Z,R=!1,this._hasMaskedPath&&(m=ce,y=de,x=P[m].points,u=x[y-1],g=x[y],T=g.partialLength,_=0),pe="",ve="",me="",ae="",ue=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ne!==f[b].line){switch(e.j){case 1:A+=M-e.lineWidths[f[b].line];break;case 2:A+=(M-e.lineWidths[f[b].line])/2;break}ne=f[b].line}W!==f[b].ind&&(f[W]&&(A+=f[W].extra),A+=f[b].an/2,W=f[b].ind),A+=r[0]*f[b].an*.005;var X=0;for(C=0;C<F;C+=1)I=i[C].a,I.p.propType&&(k=i[C].s,B=k.getMult(f[b].anIndexes[C],s.a[C].s.totalChars),B.length?X+=I.p.v[0]*B[0]:X+=I.p.v[0]*B),I.a.propType&&(k=i[C].s,B=k.getMult(f[b].anIndexes[C],s.a[C].s.totalChars),B.length?X+=I.a.v[0]*B[0]:X+=I.a.v[0]*B);for(d=!0,this._pathData.a.v&&(A=f[0].an*.5+(M-this._pathData.f.v-f[0].an*.5-f[f.length-1].an*.5)*W/(E-1),A+=this._pathData.f.v);d;)_+T>=A+X||!x?(V=(A+X-_)/g.partialLength,K=u.point[0]+(g.point[0]-u.point[0])*V,ee=u.point[1]+(g.point[1]-u.point[1])*V,a.translate(-r[0]*f[b].an*.005,-(r[1]*q)*.01),d=!1):x&&(_+=g.partialLength,y+=1,y>=x.length&&(y=0,m+=1,P[m]?x=P[m].points:G.v.c?(y=0,m=0,x=P[m].points):(_-=g.partialLength,x=null)),x&&(u=g,g=x[y],T=g.partialLength));Y=f[b].an/2-f[b].add,a.translate(-Y,0,0)}else Y=f[b].an/2-f[b].add,a.translate(-Y,0,0),a.translate(-r[0]*f[b].an*.005,-r[1]*q*.01,0);for(C=0;C<F;C+=1)I=i[C].a,I.t.propType&&(k=i[C].s,B=k.getMult(f[b].anIndexes[C],s.a[C].s.totalChars),(l!==0||e.j!==0)&&(this._hasMaskedPath?B.length?A+=I.t.v*B[0]:A+=I.t.v*B:B.length?l+=I.t.v*B[0]:l+=I.t.v*B));for(e.strokeWidthAnim&&(re=e.sw||0),e.strokeColorAnim&&(e.sc?te=[e.sc[0],e.sc[1],e.sc[2]]:te=[0,0,0]),e.fillColorAnim&&e.fc&&($=[e.fc[0],e.fc[1],e.fc[2]]),C=0;C<F;C+=1)I=i[C].a,I.a.propType&&(k=i[C].s,B=k.getMult(f[b].anIndexes[C],s.a[C].s.totalChars),B.length?a.translate(-I.a.v[0]*B[0],-I.a.v[1]*B[1],I.a.v[2]*B[2]):a.translate(-I.a.v[0]*B,-I.a.v[1]*B,I.a.v[2]*B));for(C=0;C<F;C+=1)I=i[C].a,I.s.propType&&(k=i[C].s,B=k.getMult(f[b].anIndexes[C],s.a[C].s.totalChars),B.length?a.scale(1+(I.s.v[0]-1)*B[0],1+(I.s.v[1]-1)*B[1],1):a.scale(1+(I.s.v[0]-1)*B,1+(I.s.v[1]-1)*B,1));for(C=0;C<F;C+=1){if(I=i[C].a,k=i[C].s,B=k.getMult(f[b].anIndexes[C],s.a[C].s.totalChars),I.sk.propType&&(B.length?a.skewFromAxis(-I.sk.v*B[0],I.sa.v*B[1]):a.skewFromAxis(-I.sk.v*B,I.sa.v*B)),I.r.propType&&(B.length?a.rotateZ(-I.r.v*B[2]):a.rotateZ(-I.r.v*B)),I.ry.propType&&(B.length?a.rotateY(I.ry.v*B[1]):a.rotateY(I.ry.v*B)),I.rx.propType&&(B.length?a.rotateX(I.rx.v*B[0]):a.rotateX(I.rx.v*B)),I.o.propType&&(B.length?se+=(I.o.v*B[0]-se)*B[0]:se+=(I.o.v*B-se)*B),e.strokeWidthAnim&&I.sw.propType&&(B.length?re+=I.sw.v*B[0]:re+=I.sw.v*B),e.strokeColorAnim&&I.sc.propType)for(Q=0;Q<3;Q+=1)B.length?te[Q]+=(I.sc.v[Q]-te[Q])*B[0]:te[Q]+=(I.sc.v[Q]-te[Q])*B;if(e.fillColorAnim&&e.fc){if(I.fc.propType)for(Q=0;Q<3;Q+=1)B.length?$[Q]+=(I.fc.v[Q]-$[Q])*B[0]:$[Q]+=(I.fc.v[Q]-$[Q])*B;I.fh.propType&&(B.length?$=addHueToRGB($,I.fh.v*B[0]):$=addHueToRGB($,I.fh.v*B)),I.fs.propType&&(B.length?$=addSaturationToRGB($,I.fs.v*B[0]):$=addSaturationToRGB($,I.fs.v*B)),I.fb.propType&&(B.length?$=addBrightnessToRGB($,I.fb.v*B[0]):$=addBrightnessToRGB($,I.fb.v*B))}}for(C=0;C<F;C+=1)I=i[C].a,I.p.propType&&(k=i[C].s,B=k.getMult(f[b].anIndexes[C],s.a[C].s.totalChars),this._hasMaskedPath?B.length?a.translate(0,I.p.v[1]*B[0],-I.p.v[2]*B[1]):a.translate(0,I.p.v[1]*B,-I.p.v[2]*B):B.length?a.translate(I.p.v[0]*B[0],I.p.v[1]*B[1],-I.p.v[2]*B[2]):a.translate(I.p.v[0]*B,I.p.v[1]*B,-I.p.v[2]*B));if(e.strokeWidthAnim&&(me=re<0?0:re),e.strokeColorAnim&&(ye="rgb("+Math.round(te[0]*255)+","+Math.round(te[1]*255)+","+Math.round(te[2]*255)+")"),e.fillColorAnim&&e.fc&&(ve="rgb("+Math.round($[0]*255)+","+Math.round($[1]*255)+","+Math.round($[2]*255)+")"),this._hasMaskedPath){if(a.translate(0,-e.ls),a.translate(0,r[1]*q*.01+p,0),this._pathData.p.v){N=(g.point[1]-u.point[1])/(g.point[0]-u.point[0]);var U=Math.atan(N)*180/Math.PI;g.point[0]<u.point[0]&&(U+=180),a.rotate(-U*Math.PI/180)}a.translate(K,ee,0),A-=r[0]*f[b].an*.005,f[b+1]&&W!==f[b+1].ind&&(A+=f[b].an/2,A+=e.tr*.001*e.finalSize)}else{switch(a.translate(l,p,0),e.ps&&a.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:a.translate(f[b].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[f[b].line]),0,0);break;case 2:a.translate(f[b].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[f[b].line])/2,0,0);break}a.translate(0,-e.ls),a.translate(Y,0,0),a.translate(r[0]*f[b].an*.005,r[1]*q*.01,0),l+=f[b].l+e.tr*.001*e.finalSize}n==="html"?pe=a.toCSS():n==="svg"?pe=a.to2dCSS():ue=[a.props[0],a.props[1],a.props[2],a.props[3],a.props[4],a.props[5],a.props[6],a.props[7],a.props[8],a.props[9],a.props[10],a.props[11],a.props[12],a.props[13],a.props[14],a.props[15]],ae=se}o<=b?(O=new LetterProps(ae,me,ye,ve,pe,ue),this.renderedLetters.push(O),o+=1,this.lettersChangedFlag=!0):(O=this.renderedLetters[b],this.lettersChangedFlag=O.update(ae,me,ye,ve,pe,ue)||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,t,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,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),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(e,t){var r,i=t.length,s,a="";for(r=0;r<i;r+=1)t[r].ty==="sh"&&(s=t[r].ks.k,a+=buildShapeString(s,s.i.length,!0,e));return a},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,r,i,s){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0);break}t.translate(i,s,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(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,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 t=0,r=e.length,i=[],s="";t<r;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(i.push(s),s=""):s+=e[t],t+=1;return i.push(s),i},SVGTextLottieElement.prototype.buildShapeData=function(e,t){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]=t,i.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,t,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 s=r.fWeight,a=r.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",s)}this.layerElement.setAttribute("aria-label",r.t);var n=r.l||[],o=!!this.globalData.fontManager.chars;t=n.length;var l,p=this.mHelper,b="",E=this.data.singleShape,f=0,S=0,A=!0,g=r.tr*.001*r.finalSize;if(E&&!o&&!r.sz){var _=this.textContainer,d="start";switch(r.j){case 1:d="end";break;case 2:d="middle";break;default:d="start";break}_.setAttribute("text-anchor",d),_.setAttribute("letter-spacing",g);var y=this.buildTextContents(r.finalText);for(t=y.length,S=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)l=this.textSpans[e].span||createNS("tspan"),l.textContent=y[e],l.setAttribute("x",0),l.setAttribute("y",S),l.style.display="inherit",_.appendChild(l),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=l,S+=r.finalLineHeight;this.layerElement.appendChild(_)}else{var m=this.textSpans.length,u;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!o||!E||e===0){if(l=m>e?this.textSpans[e].span:createNS(o?"g":"text"),m<=e){if(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=l,o){var x=createNS("g");l.appendChild(x),this.textSpans[e].childSpan=x}this.textSpans[e].span=l,this.layerElement.appendChild(l)}l.style.display="inherit"}if(p.reset(),E&&(n[e].n&&(f=-g,S+=r.yOffset,S+=A?1:0,A=!1),this.applyTextPropertiesToMatrix(r,p,n[e].line,f,S),f+=n[e].l||0,f+=g),o){u=this.globalData.fontManager.getCharData(r.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily);var P;if(u.t===1)P=new SVGCompElement(u.data,this.globalData,this);else{var T=emptyShapeData;u.data&&u.data.shapes&&(T=this.buildShapeData(u.data,r.finalSize)),P=new SVGShapeElement(T,this.globalData,this)}if(this.textSpans[e].glyph){var M=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(M.layerElement),M.destroy()}this.textSpans[e].glyph=P,P._debug=!0,P.prepareFrame(0),P.renderFrame(),this.textSpans[e].childSpan.appendChild(P.layerElement),u.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else E&&l.setAttribute("transform","translate("+p.props[12]+","+p.props[13]+")"),l.textContent=n[e].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}E&&l&&l.setAttribute("d",b)}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,t=this.textSpans.length,r;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<t;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.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,t,r=this.textAnimator.renderedLetters,i=this.textProperty.currentData.l;t=i.length;var s,a,n;for(e=0;e<t;e+=1)i[e].n||(s=r[e],a=this.textSpans[e].span,n=this.textSpans[e].glyph,n&&n.renderFrame(),s._mdf.m&&a.setAttribute("transform",s.m),s._mdf.o&&a.setAttribute("opacity",s.o),s._mdf.sw&&a.setAttribute("stroke-width",s.sw),s._mdf.sc&&a.setAttribute("stroke",s.sc),s._mdf.fc&&a.setAttribute("fill",s.fc))}};function ISolidElement(e,t,r){this.initElement(e,t,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,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,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 t=this.globalData.defs;this.setupGlobalData(e,t),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 s=createElementID();r.setAttribute("id",s),r.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),t.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,t=this.layers?this.layers.length:0;for(e=0;e<t;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 t=0,r=this.layers.length;for(t=0;t<r;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){t[e]=!0;var r=this.createItem(this.layers[e]);if(t[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 s=t[i],a=s.getMatte(this.layers[e].tt);r.setMatte(a)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,r=this.elements.length;t<r;){if(this.elements[t]===e){var i="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,s=this.elements[i],a=s.getMatte(this.layers[t].tt);e.setMatte(a);break}t+=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 t,r=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){for(var i=0,s;i<t;)this.elements[i]&&this.elements[i]!==!0&&this.elements[i].getBaseElement()&&(s=this.elements[i].getBaseElement()),i+=1;s?this.layerElement.insertBefore(r,s):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,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!t.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 t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}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,t=this.layers.length;for(e=0;e<t;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,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,t,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var i=createNS("title"),s=createElementID();i.setAttribute("id",s),i.textContent=t.title,this.svgElement.appendChild(i),r+=s}if(t&&t.description){var a=createNS("desc"),n=createElementID();a.setAttribute("id",n),a.textContent=t.description,this.svgElement.appendChild(a),r+=" "+n}r&&this.svgElement.setAttribute("aria-labelledby",r);var o=createNS("defs");this.svgElement.appendChild(o);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&t.hideOnTransparent===!1),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,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 CVContextData(){this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1;var e,t=15;for(this.savedOp=createTypedArray("float32",t),e=0;e<t;e+=1)this.saved[e]=createTypedArray("float32",16);this._length=t}CVContextData.prototype.duplicate=function(){var e=this._length*2,t=this.savedOp;this.savedOp=createTypedArray("float32",e),this.savedOp.set(t);var r=0;for(r=this._length;r<e;r+=1)this.saved[r]=createTypedArray("float32",16);this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},CVContextData.prototype.popTransform=function(){var e=this.saved[this.cArrPos],t,r=this.cTr.props;for(t=0;t<16;t+=1)r[t]=e[t];return e},CVContextData.prototype.popOpacity=function(){var e=this.savedOp[this.cArrPos];return this.cO=e,e},CVContextData.prototype.pop=function(){this.cArrPos-=1;var e=this.popTransform(),t=this.popOpacity();return{transform:e,opacity:t}},CVContextData.prototype.push=function(){var e=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var t,r=this.saved[this.cArrPos];for(t=0;t<16;t+=1)r[t]=e[t];this.savedOp[this.cArrPos]=this.cO,this.cArrPos+=1},CVContextData.prototype.getTransform=function(){return this.cTr},CVContextData.prototype.getOpacity=function(){return this.cO},CVContextData.prototype.setOpacity=function(e){this.cO=e};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(t){var r,i=t.length,s="_";for(r=0;r<i;r+=1)s+=t[r].transform.key+"_";var a=this.sequences[s];return a||(a={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[s]=a,this.sequenceList.push(a)),a},processSequence:function(t,r){for(var i=0,s=t.transforms.length,a=r;i<s&&!r;){if(t.transforms[i].transform.mProps._mdf){a=!0;break}i+=1}if(a){var n;for(t.finalTransform.reset(),i=s-1;i>=0;i-=1)n=t.transforms[i].transform.mProps.v.props,t.finalTransform.transform(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15])}t._mdf=a},processSequences:function(t){var r,i=this.sequenceList.length;for(r=0;r<i;r+=1)this.processSequence(this.sequenceList[r],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",r=null,i=null,s=null;function a(){var l=createNS("svg"),p=createNS("filter"),b=createNS("feColorMatrix");return p.setAttribute("id",t),b.setAttribute("type","matrix"),b.setAttribute("color-interpolation-filters","sRGB"),b.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),p.appendChild(b),l.appendChild(p),l.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(l.style.display="none"),l}function n(){r||(s=a(),document.body.appendChild(s),r=createTag("canvas"),i=r.getContext("2d"),i.filter="url(#"+t+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}function o(l){return r||n(),r.width=l.width,r.height=l.height,i.filter="url(#"+t+")",r}return{load:n,get:o}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var r=createTag("canvas");return r.width=e,r.height=t,r}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}();function CVEffects(){}CVEffects.prototype.renderFrame=function(){};function CVMaskElement(e,t){this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r,i=this.masksProperties.length,s=!1;for(r=0;r<i;r+=1)this.masksProperties[r].mode!=="n"&&(s=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=s,s&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,t=this.element.canvasContext,r,i=this.masksProperties.length,s,a,n;for(t.beginPath(),r=0;r<i;r+=1)if(this.masksProperties[r].mode!=="n"){this.masksProperties[r].inv&&(t.moveTo(0,0),t.lineTo(this.element.globalData.compSize.w,0),t.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),t.lineTo(0,this.element.globalData.compSize.h),t.lineTo(0,0)),n=this.viewData[r].v,s=e.applyToPointArray(n.v[0][0],n.v[0][1],0),t.moveTo(s[0],s[1]);var o,l=n._length;for(o=1;o<l;o+=1)a=e.applyToTriplePoints(n.o[o-1],n.i[o],n.v[o]),t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);a=e.applyToTriplePoints(n.o[o-1],n.i[0],n.v[0]),t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5])}this.element.globalData.renderer.save(!0),t.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 t=this.globalData.canvasContext,r=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(r);var i=assetLoader.createCanvas(t.canvas.width,t.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},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var r=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=r}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},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(t){t.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 t=this.buffers[0],r=t.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 t=this.buffers[1],r=t.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 s=assetLoader.getLumaCanvas(this.canvasContext.canvas),a=s.getContext("2d");a.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(s,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,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(t){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!t)){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var r=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(r),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),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,t,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s=4;t.ty==="rc"?s=5:t.ty==="el"?s=6:t.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,s,e);var a,n=r.length,o;for(a=0;a<n;a+=1)r[a].closed||(o={transforms:i.addTransformSequence(r[a].transforms),trNodes:[]},this.styledShapes.push(o),r[a].elements.push(o))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,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,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),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 s=new DashProperty(this,e.d,"canvas",this);i.d=s,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 t={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 t},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,r,i,s){var a,n=e.length-1,o,l,p=[],b=[],E,f,S,A=[].concat(s);for(a=n;a>=0;a-=1){if(E=this.searchProcessedElement(e[a]),E?t[a]=r[E-1]:e[a]._shouldRender=i,e[a].ty==="fl"||e[a].ty==="st"||e[a].ty==="gf"||e[a].ty==="gs")E?t[a].style.closed=!1:t[a]=this.createStyleElement(e[a],A),p.push(t[a].style);else if(e[a].ty==="gr"){if(!E)t[a]=this.createGroupElement(e[a]);else for(l=t[a].it.length,o=0;o<l;o+=1)t[a].prevViewData[o]=t[a].it[o];this.searchShapes(e[a].it,t[a].it,t[a].prevViewData,i,A)}else e[a].ty==="tr"?(E||(S=this.createTransformElement(e[a]),t[a]=S),A.push(t[a]),this.addTransformToStyleList(t[a])):e[a].ty==="sh"||e[a].ty==="rc"||e[a].ty==="el"||e[a].ty==="sr"?E||(t[a]=this.createShapeElement(e[a])):e[a].ty==="tm"||e[a].ty==="rd"||e[a].ty==="pb"||e[a].ty==="zz"||e[a].ty==="op"?(E?(f=t[a],f.closed=!1):(f=ShapeModifiers.getModifier(e[a].ty),f.init(this,e[a]),t[a]=f,this.shapeModifiers.push(f)),b.push(f)):e[a].ty==="rp"&&(E?(f=t[a],f.closed=!0):(f=ShapeModifiers.getModifier(e[a].ty),t[a]=f,f.init(this,e,a,t),this.shapeModifiers.push(f),i=!1),b.push(f));this.addProcessedElement(e[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(p),n=b.length,a=0;a<n;a+=1)b[a].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,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t=this.stylesList.length,r,i,s,a,n,o,l=this.globalData.renderer,p=this.globalData.canvasContext,b,E;for(e=0;e<t;e+=1)if(E=this.stylesList[e],b=E.type,!((b==="st"||b==="gs")&&E.wi===0||!E.data._shouldRender||E.coOp===0||this.globalData.currentGlobalAlpha===0)){for(l.save(),n=E.elements,b==="st"||b==="gs"?(p.strokeStyle=b==="st"?E.co:E.grd,p.lineWidth=E.wi,p.lineCap=E.lc,p.lineJoin=E.lj,p.miterLimit=E.ml||0):p.fillStyle=b==="fl"?E.co:E.grd,l.ctxOpacity(E.coOp),b!=="st"&&b!=="gs"&&p.beginPath(),l.ctxTransform(E.preTransforms.finalTransform.props),i=n.length,r=0;r<i;r+=1){for((b==="st"||b==="gs")&&(p.beginPath(),E.da&&(p.setLineDash(E.da),p.lineDashOffset=E.do)),o=n[r].trNodes,a=o.length,s=0;s<a;s+=1)o[s].t==="m"?p.moveTo(o[s].p[0],o[s].p[1]):o[s].t==="c"?p.bezierCurveTo(o[s].pts[0],o[s].pts[1],o[s].pts[2],o[s].pts[3],o[s].pts[4],o[s].pts[5]):p.closePath();(b==="st"||b==="gs")&&(p.stroke(),E.da&&p.setLineDash(this.dashResetter))}b!=="st"&&b!=="gs"&&p.fill(E.r),l.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,i){var s,a=t.length-1,n;for(n=e,s=a;s>=0;s-=1)t[s].ty==="tr"?(n=r[s].transform,this.renderShapeTransform(e,n)):t[s].ty==="sh"||t[s].ty==="el"||t[s].ty==="rc"||t[s].ty==="sr"?this.renderPath(t[s],r[s]):t[s].ty==="fl"?this.renderFill(t[s],r[s],n):t[s].ty==="st"?this.renderStroke(t[s],r[s],n):t[s].ty==="gf"||t[s].ty==="gs"?this.renderGradientFill(t[s],r[s],n):t[s].ty==="gr"?this.renderShape(n,t[s].it,r[s].it):t[s].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r=e.trNodes,i=t.paths,s,a,n,o=i._length;r.length=0;var l=e.transforms.finalTransform;for(n=0;n<o;n+=1){var p=i.shapes[n];if(p&&p.v){for(a=p._length,s=1;s<a;s+=1)s===1&&r.push({t:"m",p:l.applyToPointArray(p.v[0][0],p.v[0][1],0)}),r.push({t:"c",pts:l.applyToTriplePoints(p.o[s-1],p.i[s],p.v[s])});a===1&&r.push({t:"m",p:l.applyToPointArray(p.v[0][0],p.v[0][1],0)}),p.c&&a&&(r.push({t:"c",pts:l.applyToTriplePoints(p.o[s-1],p.i[0],p.v[0])}),r.push({t:"z"}))}}e.trNodes=r}},CVShapeElement.prototype.renderPath=function(e,t){if(e.hd!==!0&&e._shouldRender){var r,i=t.styledShapes.length;for(r=0;r<i;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var i=t.style;(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var i=t.style,s;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||e.t!==1&&(t.h._mdf||t.a._mdf)){var a=this.globalData.canvasContext,n=t.s.v,o=t.e.v;if(e.t===1)s=a.createLinearGradient(n[0],n[1],o[0],o[1]);else{var l=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)),p=Math.atan2(o[1]-n[1],o[0]-n[0]),b=t.h.v;b>=1?b=.99:b<=-1&&(b=-.99);var E=l*b,f=Math.cos(p+t.a.v)*E+n[0],S=Math.sin(p+t.a.v)*E+n[1];s=a.createRadialGradient(f,S,0,n[0],n[1],l)}var A,g=e.g.p,_=t.g.c,d=1;for(A=0;A<g;A+=1)t.g._hasOpacity&&t.g._collapsable&&(d=t.g.o[A*2+1]),s.addColorStop(_[A*4]/100,"rgba("+_[A*4+1]+","+_[A*4+2]+","+_[A*4+3]+","+d+")");i.grd=s}i.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var i=t.style,s=t.d;s&&(s._mdf||this._isFirstFrame)&&(i.da=s.dashArray,i.do=s.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(i.wi=t.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,t,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,t,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 t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;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),s,a,n=e.l,o=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,a=e.finalText.length;var l,p,b,E,f,S,A,g,_,d,y=this.data.singleShape,m=e.tr*.001*e.finalSize,u=0,x=0,P=!0,T=0;for(s=0;s<a;s+=1){l=this.globalData.fontManager.getCharData(e.finalText[s],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),p=l&&l.data||{},o.reset(),y&&n[s].n&&(u=-m,x+=e.yOffset,x+=P?1:0,P=!1),f=p.shapes?p.shapes[0].it:[],A=f.length,o.scale(e.finalSize/100,e.finalSize/100),y&&this.applyTextPropertiesToMatrix(e,o,n[s].line,u,x),_=createSizedArray(A-1);var M=0;for(S=0;S<A;S+=1)if(f[S].ty==="sh"){for(E=f[S].ks.k.i.length,g=f[S].ks.k,d=[],b=1;b<E;b+=1)b===1&&d.push(o.applyToX(g.v[0][0],g.v[0][1],0),o.applyToY(g.v[0][0],g.v[0][1],0)),d.push(o.applyToX(g.o[b-1][0],g.o[b-1][1],0),o.applyToY(g.o[b-1][0],g.o[b-1][1],0),o.applyToX(g.i[b][0],g.i[b][1],0),o.applyToY(g.i[b][0],g.i[b][1],0),o.applyToX(g.v[b][0],g.v[b][1],0),o.applyToY(g.v[b][0],g.v[b][1],0));d.push(o.applyToX(g.o[b-1][0],g.o[b-1][1],0),o.applyToY(g.o[b-1][0],g.o[b-1][1],0),o.applyToX(g.i[0][0],g.i[0][1],0),o.applyToY(g.i[0][0],g.i[0][1],0),o.applyToX(g.v[0][0],g.v[0][1],0),o.applyToY(g.v[0][0],g.v[0][1],0)),_[M]=d,M+=1}y&&(u+=n[s].l,u+=m),this.textSpans[T]?this.textSpans[T].elem=_:this.textSpans[T]={elem:_},T+=1}},CVTextElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.font=this.values.fValue,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var t,r,i,s,a,n,o=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;r=l.length;var p,b=null,E=null,f=null,S,A;for(t=0;t<r;t+=1)if(!l[t].n){if(p=o[t],p&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(p.p),this.globalData.renderer.ctxOpacity(p.o)),this.fill){for(p&&p.fc?b!==p.fc&&(b=p.fc,e.fillStyle=p.fc):b!==this.values.fill&&(b=this.values.fill,e.fillStyle=this.values.fill),S=this.textSpans[t].elem,s=S.length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(A=S[i],n=A.length,this.globalData.canvasContext.moveTo(A[0],A[1]),a=2;a<n;a+=6)this.globalData.canvasContext.bezierCurveTo(A[a],A[a+1],A[a+2],A[a+3],A[a+4],A[a+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(p&&p.sw?f!==p.sw&&(f=p.sw,e.lineWidth=p.sw):f!==this.values.sWidth&&(f=this.values.sWidth,e.lineWidth=this.values.sWidth),p&&p.sc?E!==p.sc&&(E=p.sc,e.strokeStyle=p.sc):E!==this.values.stroke&&(E=this.values.stroke,e.strokeStyle=this.values.stroke),S=this.textSpans[t].elem,s=S.length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(A=S[i],n=A.length,this.globalData.canvasContext.moveTo(A[0],A[1]),a=2;a<n;a+=6)this.globalData.canvasContext.bezierCurveTo(A[a],A[a+1],A[a+2],A[a+3],A[a+4],A[a+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}p&&this.globalData.renderer.restore()}};function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,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 t=e.getContext("2d"),r=this.img.width,i=this.img.height,s=r/i,a=this.assetData.w/this.assetData.h,n,o,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s>a&&l==="xMidYMid slice"||s<a&&l!=="xMidYMid slice"?(o=i,n=o*a):(n=r,o=n/a),t.drawImage(this.img,(r-n)/2,(i-o)/2,n,o,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,t,r){this.initElement(e,t,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(){var e=this.canvasContext;e.fillStyle=this.data.sc,e.fillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(e,t){this.animationItem=e,this.renderConfig={clearCanvas:t&&t.clearCanvas!==void 0?t.clearCanvas:!0,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||""},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.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"}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){if(!(e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0)){if(!this.renderConfig.clearCanvas){this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13]);return}this.transformMat.cloneFromProps(e);var t=this.contextData.getTransform(),r=t.props;this.transformMat.transform(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15]),t.cloneFromProps(this.transformMat.props);var i=t.props;this.canvasContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13])}},CanvasRendererBase.prototype.ctxOpacity=function(e){var t=this.contextData.getOpacity();if(!this.renderConfig.clearCanvas){this.canvasContext.globalAlpha*=e<0?0:e,this.globalData.currentGlobalAlpha=t;return}t*=e<0?0:e,this.contextData.setOpacity(t),this.globalData.currentGlobalAlpha!==t&&(this.canvasContext.globalAlpha=t,this.globalData.currentGlobalAlpha=t)},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.save();return}e&&this.canvasContext.save(),this.contextData.push()},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.canvasContext.restore(),this.globalData.blendMode="source-over");var t=this.contextData.pop(),r=t.transform,i=t.opacity;this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),this.globalData.currentGlobalAlpha!==i&&(this.canvasContext.globalAlpha=i,this.globalData.currentGlobalAlpha=i)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var r="0px 0px 0px";t.transformOrigin=r,t.mozTransformOrigin=r,t.webkitTransformOrigin=r,t["-webkit-transform"]=r,t.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.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,t){this.reset();var r,i;e?(r=e,i=t,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 s,a;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var n=this.renderConfig.preserveAspectRatio.split(" "),o=n[1]||"meet",l=n[0]||"xMidYMid",p=l.substr(0,4),b=l.substr(4);s=r/i,a=this.transformCanvas.w/this.transformCanvas.h,a>s&&o==="meet"||a<s&&o==="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)),p==="xMid"&&(a<s&&o==="meet"||a>s&&o==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:p==="xMax"&&(a<s&&o==="meet"||a>s&&o==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,b==="YMid"&&(a>s&&o==="meet"||a<s&&o==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:b==="YMax"&&(a>s&&o==="meet"||a<s&&o==="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,t=this.layers?this.layers.length:0;for(e=t-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,t){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!t||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var r,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=0;r<i;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 t=this.elements;if(!(t[e]||this.layers[e].ty===99)){var r=this.createItem(this.layers[e],this,this.globalData);t[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 CVCompElement(e,t,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.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 t,r=this.layers.length;for(t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var e,t=this.layers.length;for(e=t-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,t){this.animationItem=e,this.renderConfig={clearCanvas:t&&t.clearCanvas!==void 0?t.clearCanvas:!0,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.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"}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.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 t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var r=this.finalTransform.mat.toCSS();t.transform=r,t.webkitTransform=r}this.finalTransform._opMdf&&(t.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,t,r){this.initElement(e,t,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,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,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 t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.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,t){var r,i=e.length;for(r=0;r<i;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r=e.sh.v,i=e.transformers,s,a=r._length,n,o,l,p;if(!(a<=1)){for(s=0;s<a-1;s+=1)n=this.getTransformedPoint(i,r.v[s]),o=this.getTransformedPoint(i,r.o[s]),l=this.getTransformedPoint(i,r.i[s+1]),p=this.getTransformedPoint(i,r.v[s+1]),this.checkBounds(n,o,l,p,t);r.c&&(n=this.getTransformedPoint(i,r.v[s]),o=this.getTransformedPoint(i,r.o[s]),l=this.getTransformedPoint(i,r.i[0]),p=this.getTransformedPoint(i,r.v[0]),this.checkBounds(n,o,l,p,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,i,s){this.getBoundsOfCurve(e,t,r,i);var a=this.shapeBoundingBox;s.x=bmMin(a.left,s.x),s.xMax=bmMax(a.right,s.xMax),s.y=bmMin(a.top,s.y),s.yMax=bmMax(a.bottom,s.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,t,r,i){for(var s=[[e[0],i[0]],[e[1],i[1]]],a,n,o,l,p,b,E,f=0;f<2;++f)n=6*e[f]-12*t[f]+6*r[f],a=-3*e[f]+9*t[f]-9*r[f]+3*i[f],o=3*t[f]-3*e[f],n|=0,a|=0,o|=0,a===0&&n===0||(a===0?(l=-o/n,l>0&&l<1&&s[f].push(this.calculateF(l,e,t,r,i,f))):(p=n*n-4*o*a,p>=0&&(b=(-n+bmSqrt(p))/(2*a),b>0&&b<1&&s[f].push(this.calculateF(b,e,t,r,i,f)),E=(-n-bmSqrt(p))/(2*a),E>0&&E<1&&s[f].push(this.calculateF(E,e,t,r,i,f)))));this.shapeBoundingBox.left=bmMin.apply(null,s[0]),this.shapeBoundingBox.top=bmMin.apply(null,s[1]),this.shapeBoundingBox.right=bmMax.apply(null,s[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,s[1])},HShapeElement.prototype.calculateF=function(e,t,r,i,s,a){return bmPow(1-e,3)*t[a]+3*bmPow(1-e,2)*e*r[a]+3*(1-e)*bmPow(e,2)*i[a]+bmPow(e,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],t):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,t):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var r=0;if(e.keyframes){for(var i=0;i<e.keyframes.length;i+=1){var s=e.keyframes[i].s;s>r&&(r=s)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.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,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,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,s="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=s,i.webkitTransform=s}}};function HTextElement(e,t,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,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 t=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=r,t.color=r,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var i=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{t.fontFamily=i.fFamily;var s=e.fWeight,a=e.fStyle;t.fontStyle=a,t.fontWeight=s}var n,o,l=e.l;o=l.length;var p,b,E,f=this.mHelper,S,A="",g=0;for(n=0;n<o;n+=1){if(this.globalData.fontManager.chars?(this.textPaths[g]?p=this.textPaths[g]:(p=createNS("path"),p.setAttribute("stroke-linecap",lineCapEnum[1]),p.setAttribute("stroke-linejoin",lineJoinEnum[2]),p.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[g]?(b=this.textSpans[g],E=b.children[0]):(b=createTag("div"),b.style.lineHeight=0,E=createNS("svg"),E.appendChild(p),styleDiv(b)))):this.isMasked?p=this.textPaths[g]?this.textPaths[g]:createNS("text"):this.textSpans[g]?(b=this.textSpans[g],p=this.textPaths[g]):(b=createTag("span"),styleDiv(b),p=createTag("span"),styleDiv(p),b.appendChild(p)),this.globalData.fontManager.chars){var _=this.globalData.fontManager.getCharData(e.finalText[n],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),d;if(_?d=_.data:d=null,f.reset(),d&&d.shapes&&d.shapes.length&&(S=d.shapes[0].it,f.scale(e.finalSize/100,e.finalSize/100),A=this.createPathShape(f,S),p.setAttribute("d",A)),this.isMasked)this.innerElem.appendChild(p);else{if(this.innerElem.appendChild(b),d&&d.shapes){document.body.appendChild(E);var y=E.getBBox();E.setAttribute("width",y.width+2),E.setAttribute("height",y.height+2),E.setAttribute("viewBox",y.x-1+" "+(y.y-1)+" "+(y.width+2)+" "+(y.height+2));var m=E.style,u="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";m.transform=u,m.webkitTransform=u,l[n].yOffset=y.y-1}else E.setAttribute("width",1),E.setAttribute("height",1);b.appendChild(E)}}else if(p.textContent=l[n].val,p.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(p);else{this.innerElem.appendChild(b);var x=p.style,P="translate3d(0,"+-e.finalSize/1.2+"px,0)";x.transform=P,x.webkitTransform=P}this.isMasked?this.textSpans[g]=p:this.textSpans[g]=b,this.textSpans[g].style.display="block",this.textPaths[g]=p,g+=1}for(;g<this.textSpans.length;)this.textSpans[g].style.display="none",g+=1},HTextElement.prototype.renderInnerContent=function(){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 t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var r,i,s=0,a=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;i=n.length;var o,l,p;for(r=0;r<i;r+=1)n[r].n?s+=1:(l=this.textSpans[r],p=this.textPaths[r],o=a[s],s+=1,o._mdf.m&&(this.isMasked?l.setAttribute("transform",o.m):(l.style.webkitTransform=o.m,l.style.transform=o.m)),l.style.opacity=o.o,o.sw&&o._mdf.sw&&p.setAttribute("stroke-width",o.sw),o.sc&&o._mdf.sc&&p.setAttribute("stroke",o.sc),o.fc&&o._mdf.fc&&(p.setAttribute("fill",o.fc),p.style.color=o.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var b=this.innerElem.getBBox();this.currentBBox.w!==b.width&&(this.currentBBox.w=b.width,this.svgElement.setAttribute("width",b.width)),this.currentBBox.h!==b.height&&(this.currentBBox.h=b.height,this.svgElement.setAttribute("height",b.height));var E=1;if(this.currentBBox.w!==b.width+E*2||this.currentBBox.h!==b.height+E*2||this.currentBBox.x!==b.x-E||this.currentBBox.y!==b.y-E){this.currentBBox.w=b.width+E*2,this.currentBBox.h=b.height+E*2,this.currentBBox.x=b.x-E,this.currentBBox.y=b.y-E,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var f="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=f,e.webkitTransform=f}}}};function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,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 s,a=e.ks.or.k.length;for(s=0;s<a;s+=1)e.ks.or.k[s].to=null,e.ks.or.k[s].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,t=this.comp.threeDElements.length,r,i,s;for(e=0;e<t;e+=1)if(r=this.comp.threeDElements[e],r.type==="3d"){i=r.perspectiveElem.style,s=r.container.style;var a=this.pe.v+"px",n="0px 0px 0px",o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=a,i.webkitPerspective=a,s.transformOrigin=n,s.mozTransformOrigin=n,s.webkitTransformOrigin=n,i.transform=o,i.webkitTransform=o}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,t,r;if(this.hierarchy)for(r=this.hierarchy.length,t=0;t<r;t+=1)e=this.hierarchy[t].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,t=r;t>=0;t-=1){var i=this.hierarchy[t].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 s;this.p?s=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:s=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),n=[s[0]/a,s[1]/a,s[2]/a],o=Math.sqrt(n[2]*n[2]+n[0]*n[0]),l=Math.atan2(n[1],o),p=Math.atan2(n[0],-n[2]);this.mat.rotateY(p).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var b=!this._prevMat.equals(this.mat);if((b||this.pe._mdf)&&this.comp.threeDElements){r=this.comp.threeDElements.length;var E,f,S;for(t=0;t<r;t+=1)if(E=this.comp.threeDElements[t],E.type==="3d"){if(b){var A=this.mat.toCSS();S=E.container.style,S.transform=A,S.webkitTransform=A}this.pe._mdf&&(f=E.perspectiveElem.style,f.perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=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(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.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,t){var r=e.getBaseElement();if(r){var i=this.layers[t];if(!i.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var s=0,a,n,o;s<t;)this.elements[s]&&this.elements[s]!==!0&&this.elements[s].getBaseElement&&(n=this.elements[s],o=this.layers[s].ddd?this.getThreeDContainerByPos(s):n.getBaseElement(),a=o||a),s+=1;a?(!i.ddd||!this.supports3d)&&this.layerElement.insertBefore(r,a):(!i.ddd||!this.supports3d)&&this.layerElement.appendChild(r)}else this.addTo3dContainer(r,t)}},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 t=0,r=this.threeDElements.length;t<r;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r=createTag("div"),i,s;styleDiv(r);var a=createTag("div");if(styleDiv(a),t==="3d"){i=r.style,i.width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var n="50% 50%";i.webkitTransformOrigin=n,i.mozTransformOrigin=n,i.transformOrigin=n,s=a.style;var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=o,s.webkitTransform=o}r.appendChild(a);var l={container:a,perspectiveElem:r,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t=this.layers.length,r,i="";for(e=0;e<t;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(t=this.threeDElements.length,e=t-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,i=this.threeDElements.length;r<i;){if(t<=this.threeDElements[r].endPos){for(var s=this.threeDElements[r].startPos,a;s<t;)this.elements[s]&&this.elements[s].getBaseElement&&(a=this.elements[s].getBaseElement()),s+=1;a?this.threeDElements[r].container.insertBefore(e,a):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,i=t.style;i.width=e.w+"px",i.height=e.h+"px",this.resizerElem=t,styleDiv(t),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),i.overflow="hidden";var s=createNS("svg");s.setAttribute("width","1"),s.setAttribute("height","1"),styleDiv(s),this.resizerElem.appendChild(s);var a=createNS("defs");s.appendChild(a),this.data=e,this.setupGlobalData(e,s),this.globalData.defs=a,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,t=this.layers?this.layers.length:0;for(e=0;e<t;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,t=this.animationItem.wrapper.offsetHeight,r=e/t,i=this.globalData.compSize.w/this.globalData.compSize.h,s,a,n,o;i>r?(s=e/this.globalData.compSize.w,a=e/this.globalData.compSize.w,n=0,o=(t-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(s=t/this.globalData.compSize.h,a=t/this.globalData.compSize.h,n=(e-this.globalData.compSize.w*(t/this.globalData.compSize.h))/2,o=0);var l=this.resizerElem.style;l.webkitTransform="matrix3d("+s+",0,0,0,0,"+a+",0,0,0,0,1,0,"+n+","+o+",0,1)",l.transform=l.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,t=this.globalData.compSize.h,r,i=this.threeDElements.length;for(r=0;r<i;r+=1){var s=this.threeDElements[r].perspectiveElem.style;s.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(t,2))+"px",s.perspective=s.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,i=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var s=this.createComp(e[t],i,this.globalData.comp,null);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}};function HCompElement(e,t,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,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.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,t){for(var r=0,i;r<t;)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,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||t.runExpressions===void 0||t.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 t(r){for(var i=0,s=e.layers.length;i<s;){if(e.layers[i].nm===r||e.layers[i].ind===r)return e.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t}}(),Expressions=function(){var e={};e.initExpressions=t;function t(r){var i=0,s=[];function a(){i+=1}function n(){i-=1,i===0&&l()}function o(p){s.indexOf(p)===-1&&s.push(p)}function l(){var p,b=s.length;for(p=0;p<b;p+=1)s[p].release();s.length=0}r.renderer.compInterface=CompExpressionInterface(r.renderer),r.renderer.globalData.projectInterface.registerComposition(r.renderer),r.renderer.globalData.pushExpression=a,r.renderer.globalData.popExpression=n,r.renderer.globalData.registerExpressionProperty=o}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 t=function(i){var s=createSizedArray(i.viewData.length),a,n=i.viewData.length;for(a=0;a<n;a+=1)s[a]=new e(i.viewData[a],i.masksProperties[a]);var o=function(p){for(a=0;a<n;){if(i.masksProperties[a].nm===p)return s[a];a+=1}return null};return o};return t}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(n,o,l){Object.defineProperty(n,"velocity",{get:function(){return o.getVelocityAtTime(o.comp.currentFrame)}}),n.numKeys=o.keyframes?o.keyframes.length:0,n.key=function(p){if(!n.numKeys)return 0;var b="";"s"in o.keyframes[p-1]?b=o.keyframes[p-1].s:"e"in o.keyframes[p-2]?b=o.keyframes[p-2].e:b=o.keyframes[p-2].s;var E=l==="unidimensional"?new Number(b):Object.assign({},b);return E.time=o.keyframes[p-1].t/o.elem.comp.globalData.frameRate,E.value=l==="unidimensional"?b[0]:b,E},n.valueAtTime=o.getValueAtTime,n.speedAtTime=o.getSpeedAtTime,n.velocityAtTime=o.getVelocityAtTime,n.propertyGroup=o.propertyGroup}function i(n){(!n||!("pv"in n))&&(n=e);var o=1/n.mult,l=n.pv*o,p=new Number(l);return p.value=l,r(p,n,"unidimensional"),function(){return n.k&&n.getValue(),l=n.v*o,p.value!==l&&(p=new Number(l),p.value=l,r(p,n,"unidimensional")),p}}function s(n){(!n||!("pv"in n))&&(n=t);var o=1/n.mult,l=n.data&&n.data.l||n.pv.length,p=createTypedArray("float32",l),b=createTypedArray("float32",l);return p.value=b,r(p,n,"multidimensional"),function(){n.k&&n.getValue();for(var E=0;E<l;E+=1)b[E]=n.v[E]*o,p[E]=b[E];return p}}function a(){return e}return function(n){return n?n.propType==="unidimensional"?i(n):s(n):a}}(),TransformExpressionInterface=function(){return function(e){function t(n){switch(n){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)});var r,i,s,a;return e.p?a=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),i=ExpressionPropertyInterface(e.py),e.pz&&(s=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?a():[r(),i(),s?s():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t}}(),LayerExpressionInterface=function(){function e(p){var b=new Matrix;if(p!==void 0){var E=this._elem.finalTransform.mProp.getValueAtTime(p);E.clone(b)}else{var f=this._elem.finalTransform.mProp;f.applyToMatrix(b)}return b}function t(p,b){var E=this.getMatrix(b);return E.props[12]=0,E.props[13]=0,E.props[14]=0,this.applyPoint(E,p)}function r(p,b){var E=this.getMatrix(b);return this.applyPoint(E,p)}function i(p,b){var E=this.getMatrix(b);return E.props[12]=0,E.props[13]=0,E.props[14]=0,this.invertPoint(E,p)}function s(p,b){var E=this.getMatrix(b);return this.invertPoint(E,p)}function a(p,b){if(this._elem.hierarchy&&this._elem.hierarchy.length){var E,f=this._elem.hierarchy.length;for(E=0;E<f;E+=1)this._elem.hierarchy[E].finalTransform.mProp.applyToMatrix(p)}return p.applyToPointArray(b[0],b[1],b[2]||0)}function n(p,b){if(this._elem.hierarchy&&this._elem.hierarchy.length){var E,f=this._elem.hierarchy.length;for(E=0;E<f;E+=1)this._elem.hierarchy[E].finalTransform.mProp.applyToMatrix(p)}return p.inversePoint(b)}function o(p){var b=new Matrix;if(b.reset(),this._elem.finalTransform.mProp.applyToMatrix(b),this._elem.hierarchy&&this._elem.hierarchy.length){var E,f=this._elem.hierarchy.length;for(E=0;E<f;E+=1)this._elem.hierarchy[E].finalTransform.mProp.applyToMatrix(b);return b.inversePoint(p)}return b.inversePoint(p)}function l(){return[1,1,1,1]}return function(p){var b;function E(g){S.mask=new MaskManagerInterface(g,p)}function f(g){S.effect=g}function S(g){switch(g){case"ADBE Root Vectors Group":case"Contents":case 2:return S.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return b;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return S.effect;case"ADBE Text Properties":return S.textInterface;default:return null}}S.getMatrix=e,S.invertPoint=n,S.applyPoint=a,S.toWorld=r,S.toWorldVec=t,S.fromWorld=s,S.fromWorldVec=i,S.toComp=r,S.fromComp=o,S.sampleImage=l,S.sourceRectAtTime=p.sourceRectAtTime.bind(p),S._elem=p,b=TransformExpressionInterface(p.finalTransform.mProp);var A=getDescriptor(b,"anchorPoint");return Object.defineProperties(S,{hasParent:{get:function(){return p.hierarchy.length}},parent:{get:function(){return p.hierarchy[0].layerInterface}},rotation:getDescriptor(b,"rotation"),scale:getDescriptor(b,"scale"),position:getDescriptor(b,"position"),opacity:getDescriptor(b,"opacity"),anchorPoint:A,anchor_point:A,transform:{get:function(){return b}},active:{get:function(){return p.isInRange}}}),S.startTime=p.data.st,S.index=p.data.ind,S.source=p.data.refId,S.height=p.data.ty===0?p.data.h:100,S.width=p.data.ty===0?p.data.w:100,S.inPoint=p.data.ip/p.comp.globalData.frameRate,S.outPoint=p.data.op/p.comp.globalData.frameRate,S._name=p.data.nm,S.registerMaskInterface=E,S.registerEffectsInterface=f,S}}(),propertyGroupFactory=function(){return function(e,t){return function(r){return r=r===void 0?1:r,r<=0?e:t(r-1)}}}(),PropertyInterface=function(){return function(e,t){var r={_name:e};function i(s){return s=s===void 0?1:s,s<=0?r:t(s-1)}return i}}(),EffectsExpressionInterface=function(){var e={createEffectsInterface:t};function t(s,a){if(s.effectsManager){var n=[],o=s.data.ef,l,p=s.effectsManager.effectElements.length;for(l=0;l<p;l+=1)n.push(r(o[l],s.effectsManager.effectElements[l],a,s));var b=s.data.ef||[],E=function(S){for(l=0,p=b.length;l<p;){if(S===b[l].nm||S===b[l].mn||S===b[l].ix)return n[l];l+=1}return null};return Object.defineProperty(E,"numProperties",{get:function(){return b.length}}),E}return null}function r(s,a,n,o){function l(S){for(var A=s.ef,g=0,_=A.length;g<_;){if(S===A[g].nm||S===A[g].mn||S===A[g].ix)return A[g].ty===5?b[g]:b[g]();g+=1}throw new Error}var p=propertyGroupFactory(l,n),b=[],E,f=s.ef.length;for(E=0;E<f;E+=1)s.ef[E].ty===5?b.push(r(s.ef[E],a.effectElements[E],a.effectElements[E].propertyGroup,o)):b.push(i(a.effectElements[E],s.ef[E].ty,o,p));return s.mn==="ADBE Color Control"&&Object.defineProperty(l,"color",{get:function(){return b[0]()}}),Object.defineProperties(l,{numProperties:{get:function(){return s.np}},_name:{value:s.nm},propertyGroup:{value:p}}),l.enabled=s.en!==0,l.active=l.enabled,l}function i(s,a,n,o){var l=ExpressionPropertyInterface(s.p);function p(){return a===10?n.comp.compInterface(s.p.v):l()}return s.p.setGroupProperty&&s.p.setGroupProperty(PropertyInterface("",o)),p}return e}(),ShapePathInterface=function(){return function(t,r,i){var s=r.sh;function a(o){return o==="Shape"||o==="shape"||o==="Path"||o==="path"||o==="ADBE Vector Shape"||o===2?a.path:null}var n=propertyGroupFactory(a,i);return s.setGroupProperty(PropertyInterface("Path",n)),Object.defineProperties(a,{path:{get:function(){return s.k&&s.getValue(),s}},shape:{get:function(){return s.k&&s.getValue(),s}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),a}}(),ShapeExpressionInterface=function(){function e(A,g,_){var d=[],y,m=A?A.length:0;for(y=0;y<m;y+=1)A[y].ty==="gr"?d.push(r(A[y],g[y],_)):A[y].ty==="fl"?d.push(i(A[y],g[y],_)):A[y].ty==="st"?d.push(n(A[y],g[y],_)):A[y].ty==="tm"?d.push(o(A[y],g[y],_)):A[y].ty==="tr"||(A[y].ty==="el"?d.push(p(A[y],g[y],_)):A[y].ty==="sr"?d.push(b(A[y],g[y],_)):A[y].ty==="sh"?d.push(ShapePathInterface(A[y],g[y],_)):A[y].ty==="rc"?d.push(E(A[y],g[y],_)):A[y].ty==="rd"?d.push(f(A[y],g[y],_)):A[y].ty==="rp"?d.push(S(A[y],g[y],_)):A[y].ty==="gf"?d.push(s(A[y],g[y],_)):d.push(a(A[y],g[y])));return d}function t(A,g,_){var d,y=function(x){for(var P=0,T=d.length;P<T;){if(d[P]._name===x||d[P].mn===x||d[P].propertyIndex===x||d[P].ix===x||d[P].ind===x)return d[P];P+=1}return typeof x=="number"?d[x-1]:null};y.propertyGroup=propertyGroupFactory(y,_),d=e(A.it,g.it,y.propertyGroup),y.numProperties=d.length;var m=l(A.it[A.it.length-1],g.it[g.it.length-1],y.propertyGroup);return y.transform=m,y.propertyIndex=A.cix,y._name=A.nm,y}function r(A,g,_){var d=function(x){switch(x){case"ADBE Vectors Group":case"Contents":case 2:return d.content;default:return d.transform}};d.propertyGroup=propertyGroupFactory(d,_);var y=t(A,g,d.propertyGroup),m=l(A.it[A.it.length-1],g.it[g.it.length-1],d.propertyGroup);return d.content=y,d.transform=m,Object.defineProperty(d,"_name",{get:function(){return A.nm}}),d.numProperties=A.np,d.propertyIndex=A.ix,d.nm=A.nm,d.mn=A.mn,d}function i(A,g,_){function d(y){return y==="Color"||y==="color"?d.color:y==="Opacity"||y==="opacity"?d.opacity:null}return Object.defineProperties(d,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},_name:{value:A.nm},mn:{value:A.mn}}),g.c.setGroupProperty(PropertyInterface("Color",_)),g.o.setGroupProperty(PropertyInterface("Opacity",_)),d}function s(A,g,_){function d(y){return y==="Start Point"||y==="start point"?d.startPoint:y==="End Point"||y==="end point"?d.endPoint:y==="Opacity"||y==="opacity"?d.opacity:null}return Object.defineProperties(d,{startPoint:{get:ExpressionPropertyInterface(g.s)},endPoint:{get:ExpressionPropertyInterface(g.e)},opacity:{get:ExpressionPropertyInterface(g.o)},type:{get:function(){return"a"}},_name:{value:A.nm},mn:{value:A.mn}}),g.s.setGroupProperty(PropertyInterface("Start Point",_)),g.e.setGroupProperty(PropertyInterface("End Point",_)),g.o.setGroupProperty(PropertyInterface("Opacity",_)),d}function a(){function A(){return null}return A}function n(A,g,_){var d=propertyGroupFactory(T,_),y=propertyGroupFactory(P,d);function m(M){Object.defineProperty(P,A.d[M].nm,{get:ExpressionPropertyInterface(g.d.dataProps[M].p)})}var u,x=A.d?A.d.length:0,P={};for(u=0;u<x;u+=1)m(u),g.d.dataProps[u].p.setGroupProperty(y);function T(M){return M==="Color"||M==="color"?T.color:M==="Opacity"||M==="opacity"?T.opacity:M==="Stroke Width"||M==="stroke width"?T.strokeWidth:null}return Object.defineProperties(T,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},strokeWidth:{get:ExpressionPropertyInterface(g.w)},dash:{get:function(){return P}},_name:{value:A.nm},mn:{value:A.mn}}),g.c.setGroupProperty(PropertyInterface("Color",d)),g.o.setGroupProperty(PropertyInterface("Opacity",d)),g.w.setGroupProperty(PropertyInterface("Stroke Width",d)),T}function o(A,g,_){function d(m){return m===A.e.ix||m==="End"||m==="end"?d.end:m===A.s.ix?d.start:m===A.o.ix?d.offset:null}var y=propertyGroupFactory(d,_);return d.propertyIndex=A.ix,g.s.setGroupProperty(PropertyInterface("Start",y)),g.e.setGroupProperty(PropertyInterface("End",y)),g.o.setGroupProperty(PropertyInterface("Offset",y)),d.propertyIndex=A.ix,d.propertyGroup=_,Object.defineProperties(d,{start:{get:ExpressionPropertyInterface(g.s)},end:{get:ExpressionPropertyInterface(g.e)},offset:{get:ExpressionPropertyInterface(g.o)},_name:{value:A.nm}}),d.mn=A.mn,d}function l(A,g,_){function d(m){return A.a.ix===m||m==="Anchor Point"?d.anchorPoint:A.o.ix===m||m==="Opacity"?d.opacity:A.p.ix===m||m==="Position"?d.position:A.r.ix===m||m==="Rotation"||m==="ADBE Vector Rotation"?d.rotation:A.s.ix===m||m==="Scale"?d.scale:A.sk&&A.sk.ix===m||m==="Skew"?d.skew:A.sa&&A.sa.ix===m||m==="Skew Axis"?d.skewAxis:null}var y=propertyGroupFactory(d,_);return g.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",y)),g.transform.mProps.p.setGroupProperty(PropertyInterface("Position",y)),g.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",y)),g.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",y)),g.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",y)),g.transform.mProps.sk&&(g.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",y)),g.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",y))),g.transform.op.setGroupProperty(PropertyInterface("Opacity",y)),Object.defineProperties(d,{opacity:{get:ExpressionPropertyInterface(g.transform.mProps.o)},position:{get:ExpressionPropertyInterface(g.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(g.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(g.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(g.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(g.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(g.transform.mProps.sa)},_name:{value:A.nm}}),d.ty="tr",d.mn=A.mn,d.propertyGroup=_,d}function p(A,g,_){function d(u){return A.p.ix===u?d.position:A.s.ix===u?d.size:null}var y=propertyGroupFactory(d,_);d.propertyIndex=A.ix;var m=g.sh.ty==="tm"?g.sh.prop:g.sh;return m.s.setGroupProperty(PropertyInterface("Size",y)),m.p.setGroupProperty(PropertyInterface("Position",y)),Object.defineProperties(d,{size:{get:ExpressionPropertyInterface(m.s)},position:{get:ExpressionPropertyInterface(m.p)},_name:{value:A.nm}}),d.mn=A.mn,d}function b(A,g,_){function d(u){return A.p.ix===u?d.position:A.r.ix===u?d.rotation:A.pt.ix===u?d.points:A.or.ix===u||u==="ADBE Vector Star Outer Radius"?d.outerRadius:A.os.ix===u?d.outerRoundness:A.ir&&(A.ir.ix===u||u==="ADBE Vector Star Inner Radius")?d.innerRadius:A.is&&A.is.ix===u?d.innerRoundness:null}var y=propertyGroupFactory(d,_),m=g.sh.ty==="tm"?g.sh.prop:g.sh;return d.propertyIndex=A.ix,m.or.setGroupProperty(PropertyInterface("Outer Radius",y)),m.os.setGroupProperty(PropertyInterface("Outer Roundness",y)),m.pt.setGroupProperty(PropertyInterface("Points",y)),m.p.setGroupProperty(PropertyInterface("Position",y)),m.r.setGroupProperty(PropertyInterface("Rotation",y)),A.ir&&(m.ir.setGroupProperty(PropertyInterface("Inner Radius",y)),m.is.setGroupProperty(PropertyInterface("Inner Roundness",y))),Object.defineProperties(d,{position:{get:ExpressionPropertyInterface(m.p)},rotation:{get:ExpressionPropertyInterface(m.r)},points:{get:ExpressionPropertyInterface(m.pt)},outerRadius:{get:ExpressionPropertyInterface(m.or)},outerRoundness:{get:ExpressionPropertyInterface(m.os)},innerRadius:{get:ExpressionPropertyInterface(m.ir)},innerRoundness:{get:ExpressionPropertyInterface(m.is)},_name:{value:A.nm}}),d.mn=A.mn,d}function E(A,g,_){function d(u){return A.p.ix===u?d.position:A.r.ix===u?d.roundness:A.s.ix===u||u==="Size"||u==="ADBE Vector Rect Size"?d.size:null}var y=propertyGroupFactory(d,_),m=g.sh.ty==="tm"?g.sh.prop:g.sh;return d.propertyIndex=A.ix,m.p.setGroupProperty(PropertyInterface("Position",y)),m.s.setGroupProperty(PropertyInterface("Size",y)),m.r.setGroupProperty(PropertyInterface("Rotation",y)),Object.defineProperties(d,{position:{get:ExpressionPropertyInterface(m.p)},roundness:{get:ExpressionPropertyInterface(m.r)},size:{get:ExpressionPropertyInterface(m.s)},_name:{value:A.nm}}),d.mn=A.mn,d}function f(A,g,_){function d(u){return A.r.ix===u||u==="Round Corners 1"?d.radius:null}var y=propertyGroupFactory(d,_),m=g;return d.propertyIndex=A.ix,m.rd.setGroupProperty(PropertyInterface("Radius",y)),Object.defineProperties(d,{radius:{get:ExpressionPropertyInterface(m.rd)},_name:{value:A.nm}}),d.mn=A.mn,d}function S(A,g,_){function d(u){return A.c.ix===u||u==="Copies"?d.copies:A.o.ix===u||u==="Offset"?d.offset:null}var y=propertyGroupFactory(d,_),m=g;return d.propertyIndex=A.ix,m.c.setGroupProperty(PropertyInterface("Copies",y)),m.o.setGroupProperty(PropertyInterface("Offset",y)),Object.defineProperties(d,{copies:{get:ExpressionPropertyInterface(m.c)},offset:{get:ExpressionPropertyInterface(m.o)},_name:{value:A.nm}}),d.mn=A.mn,d}return function(A,g,_){var d;function y(u){if(typeof u=="number")return u=u===void 0?1:u,u===0?_:d[u-1];for(var x=0,P=d.length;x<P;){if(d[x]._name===u)return d[x];x+=1}return null}function m(){return _}return y.propertyGroup=propertyGroupFactory(y,m),d=e(A,g,y.propertyGroup),y.numProperties=d.length,y._name="Contents",y}}(),TextExpressionInterface=function(){return function(e){var t;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 s=e.textProperty.currentData.t;return(!t||s!==t.value)&&(t=new String(s),t.value=s||new String(s),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),r}}();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)}var FootageInterface=function(){var e=function(i){var s="",a=i.getFootageData();function n(){return s="",a=i.getFootageData(),o}function o(l){if(a[l])return s=l,a=a[l],_typeof$2(a)==="object"?o:a;var p=l.indexOf(s);if(p!==-1){var b=parseInt(l.substr(p+s.length),10);return a=a[b],_typeof$2(a)==="object"?o:a}return""}return n},t=function(i){function s(a){return a==="Outline"?s.outlineInterface():null}return s._name="Outline",s.outlineInterface=e(i),s};return function(r){function i(s){return s==="Data"?i.dataInterface:null}return i._name="Data",i.dataInterface=t(r),i}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}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)}function seedRandom(e,t){var r=this,i=256,s=6,a=52,n="random",o=t.pow(i,s),l=t.pow(2,a),p=l*2,b=i-1,E;function f(m,u,x){var P=[];u=u===!0?{entropy:!0}:u||{};var T=_(g(u.entropy?[m,y(e)]:m===null?d():m,3),P),M=new S(P),V=function(){for(var G=M.g(s),D=o,H=0;G<l;)G=(G+H)*i,D*=i,H=M.g(1);for(;G>=p;)G/=2,D/=2,H>>>=1;return(G+H)/D};return V.int32=function(){return M.g(4)|0},V.quick=function(){return M.g(4)/4294967296},V.double=V,_(y(M.S),e),(u.pass||x||function(N,G,D,H){return H&&(H.S&&A(H,M),N.state=function(){return A(M,{})}),D?(t[n]=N,G):N})(V,T,"global"in u?u.global:this==t,u.state)}t["seed"+n]=f;function S(m){var u,x=m.length,P=this,T=0,M=P.i=P.j=0,V=P.S=[];for(x||(m=[x++]);T<i;)V[T]=T++;for(T=0;T<i;T++)V[T]=V[M=b&M+m[T%x]+(u=V[T])],V[M]=u;P.g=function(N){for(var G,D=0,H=P.i,q=P.j,R=P.S;N--;)G=R[H=b&H+1],D=D*i+R[b&(R[H]=R[q=b&q+G])+(R[q]=G)];return P.i=H,P.j=q,D}}function A(m,u){return u.i=m.i,u.j=m.j,u.S=m.S.slice(),u}function g(m,u){var x=[],P=_typeof$1(m),T;if(u&&P=="object")for(T in m)try{x.push(g(m[T],u-1))}catch(M){}return x.length?x:P=="string"?m:m+"\0"}function _(m,u){for(var x=m+"",P,T=0;T<x.length;)u[b&T]=b&(P^=u[b&T]*19)+x.charCodeAt(T++);return y(u)}function d(){try{var m=new Uint8Array(i);return(r.crypto||r.msCrypto).getRandomValues(m),y(m)}catch(P){var u=r.navigator,x=u&&u.plugins;return[+new Date,r,x,r.screen,y(e)]}}function y(m){return String.fromCharCode.apply(0,m)}_(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};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 ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;initialize$2(BMMath);function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return e==="number"||e==="boolean"||e==="string"||t instanceof Number}function $bm_neg(e){var t=_typeof(e);if(t==="number"||t==="boolean"||e instanceof Number)return-e;if($bm_isInstanceOfArray(e)){var r,i=e.length,s=[];for(r=0;r<i;r+=1)s[r]=-e[r];return s}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,t){var r=_typeof(e),i=_typeof(t);if(r==="string"||i==="string"||isNumerable(r,e)&&isNumerable(i,t))return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return e=e.slice(0),e[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,a=e.length,n=t.length,o=[];s<a||s<n;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?o[s]=e[s]+t[s]:o[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return o}return 0}var add=sum;function sub(e,t){var r=_typeof(e),i=_typeof(t);if(isNumerable(r,e)&&isNumerable(i,t))return r==="string"&&(e=parseInt(e,10)),i==="string"&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return e=e.slice(0),e[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,a=e.length,n=t.length,o=[];s<a||s<n;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?o[s]=e[s]-t[s]:o[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return o}return 0}function mul(e,t){var r=_typeof(e),i=_typeof(t),s;if(isNumerable(r,e)&&isNumerable(i,t))return e*t;var a,n;if($bm_isInstanceOfArray(e)&&isNumerable(i,t)){for(n=e.length,s=createTypedArray("float32",n),a=0;a<n;a+=1)s[a]=e[a]*t;return s}if(isNumerable(r,e)&&$bm_isInstanceOfArray(t)){for(n=t.length,s=createTypedArray("float32",n),a=0;a<n;a+=1)s[a]=e*t[a];return s}return 0}function div(e,t){var r=_typeof(e),i=_typeof(t),s;if(isNumerable(r,e)&&isNumerable(i,t))return e/t;var a,n;if($bm_isInstanceOfArray(e)&&isNumerable(i,t)){for(n=e.length,s=createTypedArray("float32",n),a=0;a<n;a+=1)s[a]=e[a]/t;return s}if(isNumerable(r,e)&&$bm_isInstanceOfArray(t)){for(n=t.length,s=createTypedArray("float32",n),a=0;a<n;a+=1)s[a]=e/t[a];return s}return 0}function mod(e,t){return typeof e=="string"&&(e=parseInt(e,10)),typeof t=="string"&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,r){if(t>r){var i=r;r=t,t=i}return Math.min(Math.max(e,t),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,t){if(typeof e=="number"||e instanceof Number)return t=t||0,Math.abs(e-t);t||(t=helperLengthArray);var r,i=Math.min(e.length,t.length),s=0;for(r=0;r<i;r+=1)s+=Math.pow(t[r]-e[r],2);return Math.sqrt(s)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t=e[0],r=e[1],i=e[2],s=Math.max(t,r,i),a=Math.min(t,r,i),n,o,l=(s+a)/2;if(s===a)n=0,o=0;else{var p=s-a;switch(o=l>.5?p/(2-s-a):p/(s+a),s){case t:n=(r-i)/p+(r<i?6:0);break;case r:n=(i-t)/p+2;break;case i:n=(t-r)/p+4;break}n/=6}return[n,o,l,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t=e[0],r=e[1],i=e[2],s,a,n;if(r===0)s=i,n=i,a=i;else{var o=i<.5?i*(1+r):i+r-i*r,l=2*i-o;s=hue2rgb(l,o,t+1/3),a=hue2rgb(l,o,t),n=hue2rgb(l,o,t-1/3)}return[s,a,n,e[3]]}function linear(e,t,r,i,s){if((i===void 0||s===void 0)&&(i=t,s=r,t=0,r=1),r<t){var a=r;r=t,t=a}if(e<=t)return i;if(e>=r)return s;var n=r===t?0:(e-t)/(r-t);if(!i.length)return i+(s-i)*n;var o,l=i.length,p=createTypedArray("float32",l);for(o=0;o<l;o+=1)p[o]=i[o]+(s[o]-i[o])*n;return p}function random(e,t){if(t===void 0&&(e===void 0?(e=0,t=1):(t=e,e=void 0)),t.length){var r,i=t.length;e||(e=createTypedArray("float32",i));var s=createTypedArray("float32",i),a=BMMath.random();for(r=0;r<i;r+=1)s[r]=e[r]+a*(t[r]-e[r]);return s}e===void 0&&(e=0);var n=BMMath.random();return e+n*(t-e)}function createPath(e,t,r,i){var s,a=e.length,n=shapePool.newElement();n.setPathData(!!i,a);var o=[0,0],l,p;for(s=0;s<a;s+=1)l=t&&t[s]?t[s]:o,p=r&&r[s]?r[s]:o,n.setTripleAt(e[s][0],e[s][1],p[0]+e[s][0],p[1]+e[s][1],l[0]+e[s][0],l[1]+e[s][1],s,!0);return n}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(t,r){var i,s,a=this.pv.length?this.pv.length:1,n=createTypedArray("float32",a);t=5;var o=Math.floor(time*t);for(i=0,s=0;i<o;){for(s=0;s<a;s+=1)n[s]+=-r+r*2*BMMath.random();i+=1}var l=time*t,p=l-Math.floor(l),b=createTypedArray("float32",a);if(a>1){for(s=0;s<a;s+=1)b[s]=this.pv[s]+n[s]+(-r+r*2*BMMath.random())*p;return b}return this.pv+n[0]+(-r+r*2*BMMath.random())*p}.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,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!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,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],i=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads,s=-Math.atan2(r[1],r[2])/degToRads;return[s,i,0]}function easeOut(e,t,r,i,s){return applyEase(easeOutBez,e,t,r,i,s)}function easeIn(e,t,r,i,s){return applyEase(easeInBez,e,t,r,i,s)}function ease(e,t,r,i,s){return applyEase(easeInOutBez,e,t,r,i,s)}function applyEase(e,t,r,i,s,a){s===void 0?(s=r,a=i):t=(t-r)/(i-r),t>1?t=1:t<0&&(t=0);var n=e(t);if($bm_isInstanceOfArray(s)){var o,l=s.length,p=createTypedArray("float32",l);for(o=0;o<l;o+=1)p[o]=(a[o]-s[o])*n+s[o];return p}return(a-s)*n+s}function nearestKey(e){var t,r=data.k.length,i,s;if(!data.k.length||typeof data.k[0]=="number")i=0,s=0;else if(i=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)i=1,s=data.k[0].t;else{for(t=0;t<r-1;t+=1)if(e===data.k[t].t){i=t+1,s=data.k[t].t;break}else if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(i=t+2,s=data.k[t+1].t):(i=t+1,s=data.k[t].t);break}i===-1&&(i=t+1,s=data.k[t].t)}var a={};return a.index=i,a.time=s/elem.comp.globalData.frameRate,a}function key(e){var t,r,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(i=s.length,r=0;r<i;r+=1)t[r]=s[r],t.value[r]=s[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return!e&&e!==0&&(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return typeof value=="string"?t===void 0?value.substring(e):value.substring(e,t):""}function substr(e,t){return typeof value=="string"?t===void 0?value.substr(e):value.substr(e,t):""}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],ob}(),expressionHelpers=function(){function e(n,o,l){o.x&&(l.k=!0,l.x=!0,l.initiateExpression=ExpressionManager.initiateExpression,l.effectsSequence.push(l.initiateExpression(n,o,l).bind(l)))}function t(n){return n*=this.elem.globalData.frameRate,n-=this.offsetTime,n!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<n?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(n,this._cachingAtTime),this._cachingAtTime.lastFrame=n),this._cachingAtTime.value}function r(n){var o=-.01,l=this.getValueAtTime(n),p=this.getValueAtTime(n+o),b=0;if(l.length){var E;for(E=0;E<l.length;E+=1)b+=Math.pow(p[E]-l[E],2);b=Math.sqrt(b)*100}else b=0;return b}function i(n){if(this.vel!==void 0)return this.vel;var o=-.001,l=this.getValueAtTime(n),p=this.getValueAtTime(n+o),b;if(l.length){b=createTypedArray("float32",l.length);var E;for(E=0;E<l.length;E+=1)b[E]=(p[E]-l[E])/o}else b=(p-l)/o;return b}function s(){return this.pv}function a(n){this.propertyGroup=n}return{searchExpressions:e,getSpeedAtTime:r,getVelocityAtTime:i,getValueAtTime:t,getStaticValueAtTime:s,setGroupProperty:a}}();function addPropertyDecorator(){function e(f,S,A){if(!this.k||!this.keyframes)return this.pv;f=f?f.toLowerCase():"";var g=this.comp.renderedFrame,_=this.keyframes,d=_[_.length-1].t;if(g<=d)return this.pv;var y,m;A?(S?y=Math.abs(d-this.elem.comp.globalData.frameRate*S):y=Math.max(0,d-this.elem.data.ip),m=d-y):((!S||S>_.length-1)&&(S=_.length-1),m=_[_.length-1-S].t,y=d-m);var u,x,P;if(f==="pingpong"){var T=Math.floor((g-m)/y);if(T%2!==0)return this.getValueAtTime((y-(g-m)%y+m)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var M=this.getValueAtTime(m/this.comp.globalData.frameRate,0),V=this.getValueAtTime(d/this.comp.globalData.frameRate,0),N=this.getValueAtTime(((g-m)%y+m)/this.comp.globalData.frameRate,0),G=Math.floor((g-m)/y);if(this.pv.length){for(P=new Array(M.length),x=P.length,u=0;u<x;u+=1)P[u]=(V[u]-M[u])*G+N[u];return P}return(V-M)*G+N}else if(f==="continue"){var D=this.getValueAtTime(d/this.comp.globalData.frameRate,0),H=this.getValueAtTime((d-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(P=new Array(D.length),x=P.length,u=0;u<x;u+=1)P[u]=D[u]+(D[u]-H[u])*((g-d)/this.comp.globalData.frameRate)/5e-4;return P}return D+(D-H)*((g-d)/.001)}return this.getValueAtTime(((g-m)%y+m)/this.comp.globalData.frameRate,0)}function t(f,S,A){if(!this.k)return this.pv;f=f?f.toLowerCase():"";var g=this.comp.renderedFrame,_=this.keyframes,d=_[0].t;if(g>=d)return this.pv;var y,m;A?(S?y=Math.abs(this.elem.comp.globalData.frameRate*S):y=Math.max(0,this.elem.data.op-d),m=d+y):((!S||S>_.length-1)&&(S=_.length-1),m=_[S].t,y=m-d);var u,x,P;if(f==="pingpong"){var T=Math.floor((d-g)/y);if(T%2===0)return this.getValueAtTime(((d-g)%y+d)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var M=this.getValueAtTime(d/this.comp.globalData.frameRate,0),V=this.getValueAtTime(m/this.comp.globalData.frameRate,0),N=this.getValueAtTime((y-(d-g)%y+d)/this.comp.globalData.frameRate,0),G=Math.floor((d-g)/y)+1;if(this.pv.length){for(P=new Array(M.length),x=P.length,u=0;u<x;u+=1)P[u]=N[u]-(V[u]-M[u])*G;return P}return N-(V-M)*G}else if(f==="continue"){var D=this.getValueAtTime(d/this.comp.globalData.frameRate,0),H=this.getValueAtTime((d+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(P=new Array(D.length),x=P.length,u=0;u<x;u+=1)P[u]=D[u]+(D[u]-H[u])*(d-g)/.001;return P}return D+(D-H)*(d-g)/.001}return this.getValueAtTime((y-((d-g)%y+d))/this.comp.globalData.frameRate,0)}function r(f,S){if(!this.k)return this.pv;if(f=(f||.4)*.5,S=Math.floor(S||5),S<=1)return this.pv;var A=this.comp.renderedFrame/this.comp.globalData.frameRate,g=A-f,_=A+f,d=S>1?(_-g)/(S-1):1,y=0,m=0,u;this.pv.length?u=createTypedArray("float32",this.pv.length):u=0;for(var x;y<S;){if(x=this.getValueAtTime(g+y*d),this.pv.length)for(m=0;m<this.pv.length;m+=1)u[m]+=x[m];else u+=x;y+=1}if(this.pv.length)for(m=0;m<this.pv.length;m+=1)u[m]/=S;else u/=S;return u}function i(f){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var S=this._transformCachingAtTime.v;if(S.cloneFromProps(this.pre.props),this.appliedTransformations<1){var A=this.a.getValueAtTime(f);S.translate(-A[0]*this.a.mult,-A[1]*this.a.mult,A[2]*this.a.mult)}if(this.appliedTransformations<2){var g=this.s.getValueAtTime(f);S.scale(g[0]*this.s.mult,g[1]*this.s.mult,g[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var _=this.sk.getValueAtTime(f),d=this.sa.getValueAtTime(f);S.skewFromAxis(-_*this.sk.mult,d*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var y=this.r.getValueAtTime(f);S.rotate(-y*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var m=this.rz.getValueAtTime(f),u=this.ry.getValueAtTime(f),x=this.rx.getValueAtTime(f),P=this.or.getValueAtTime(f);S.rotateZ(-m*this.rz.mult).rotateY(u*this.ry.mult).rotateX(x*this.rx.mult).rotateZ(-P[2]*this.or.mult).rotateY(P[1]*this.or.mult).rotateX(P[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var T=this.px.getValueAtTime(f),M=this.py.getValueAtTime(f);if(this.data.p.z){var V=this.pz.getValueAtTime(f);S.translate(T*this.px.mult,M*this.py.mult,-V*this.pz.mult)}else S.translate(T*this.px.mult,M*this.py.mult,0)}else{var N=this.p.getValueAtTime(f);S.translate(N[0]*this.p.mult,N[1]*this.p.mult,-N[2]*this.p.mult)}return S}function s(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(f,S,A){var g=a(f,S,A);return g.dynamicProperties.length?g.getValueAtTime=i.bind(g):g.getValueAtTime=s.bind(g),g.setGroupProperty=expressionHelpers.setGroupProperty,g};var n=PropertyFactory.getProp;PropertyFactory.getProp=function(f,S,A,g,_){var d=n(f,S,A,g,_);d.kf?d.getValueAtTime=expressionHelpers.getValueAtTime.bind(d):d.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(d),d.setGroupProperty=expressionHelpers.setGroupProperty,d.loopOut=e,d.loopIn=t,d.smooth=r,d.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(d),d.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(d),d.numKeys=S.a===1?S.k.length:0,d.propertyIndex=S.ix;var y=0;return A!==0&&(y=createTypedArray("float32",S.a===1?S.k[0].s.length:S.k.length)),d._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:y},expressionHelpers.searchExpressions(f,S,d),d.k&&_.addDynamicProperty(d),d};function o(f){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),f*=this.elem.globalData.frameRate,f-=this.offsetTime,f!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<f?this._caching.lastIndex:0,this._cachingAtTime.lastTime=f,this.interpolateShape(f,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var l=ShapePropertyFactory.getConstructorFunction(),p=ShapePropertyFactory.getKeyframedConstructorFunction();function b(){}b.prototype={vertices:function(S,A){this.k&&this.getValue();var g=this.v;A!==void 0&&(g=this.getValueAtTime(A,0));var _,d=g._length,y=g[S],m=g.v,u=createSizedArray(d);for(_=0;_<d;_+=1)S==="i"||S==="o"?u[_]=[y[_][0]-m[_][0],y[_][1]-m[_][1]]:u[_]=[y[_][0],y[_][1]];return u},points:function(S){return this.vertices("v",S)},inTangents:function(S){return this.vertices("i",S)},outTangents:function(S){return this.vertices("o",S)},isClosed:function(){return this.v.c},pointOnPath:function(S,A){var g=this.v;A!==void 0&&(g=this.getValueAtTime(A,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(g));for(var _=this._segmentsLength,d=_.lengths,y=_.totalLength*S,m=0,u=d.length,x=0,P;m<u;){if(x+d[m].addedLength>y){var T=m,M=g.c&&m===u-1?0:m+1,V=(y-x)/d[m].addedLength;P=bez.getPointInSegment(g.v[T],g.v[M],g.o[T],g.i[M],V,d[m]);break}else x+=d[m].addedLength;m+=1}return P||(P=g.c?[g.v[0][0],g.v[0][1]]:[g.v[g._length-1][0],g.v[g._length-1][1]]),P},vectorOnPath:function(S,A,g){S==1?S=this.v.c:S==0&&(S=.999);var _=this.pointOnPath(S,A),d=this.pointOnPath(S+.001,A),y=d[0]-_[0],m=d[1]-_[1],u=Math.sqrt(Math.pow(y,2)+Math.pow(m,2));if(u===0)return[0,0];var x=g==="tangent"?[y/u,m/u]:[-m/u,y/u];return x},tangentOnPath:function(S,A){return this.vectorOnPath(S,A,"tangent")},normalOnPath:function(S,A){return this.vectorOnPath(S,A,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([b],l),extendPrototype([b],p),p.prototype.getValueAtTime=o,p.prototype.initiateExpression=ExpressionManager.initiateExpression;var E=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(f,S,A,g,_){var d=E(f,S,A,g,_);return d.propertyIndex=S.ix,d.lock=!1,A===3?expressionHelpers.searchExpressions(f,S.pt,d):A===4&&expressionHelpers.searchExpressions(f,S.ks,d),d.k&&f.addDynamicProperty(d),d}}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(t,r){var i=this.calculateExpression(r);if(t.t!==i){var s={};return this.copyData(s,t),s.t=i.toString(),s.__complete=!1,s}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),r=this.searchExpressions();return this.kf=t||r,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(t,r){var i=createNS("feMerge");i.setAttribute("result",t);var s,a;for(a=0;a<r.length;a+=1)s=createNS("feMergeNode"),s.setAttribute("in",r[a]),i.appendChild(s),i.appendChild(s);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,t,r,i,s){this.filterManager=t;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=a,a.setAttribute("result",i+"_tint_1"),e.appendChild(a),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+"_tint_2"),e.appendChild(a),this.matrixFilter=a;var n=this.createMergeNode(i,[s,i+"_tint_1",i+"_tint_2"]);e.appendChild(n)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=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]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,t,r,i){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",i),e.appendChild(s),this.matrixFilter=s}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}};function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,t,r,i,s;for(this.filterManager.effectElements[1].p.v===1?(s=this.elem.maskManager.masksProperties.length,i=0):(i=this.filterManager.effectElements[0].p.v-1,s=i+1),r=createNS("g"),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),r.setAttribute("stroke-dashoffset",1),i;i<s;i+=1)t=createNS("path"),r.appendChild(t),this.paths.push({p:t,m:i});if(this.filterManager.effectElements[10].p.v===3){var a=createNS("mask"),n=createElementID();a.setAttribute("id",n),a.setAttribute("mask-type","alpha"),a.appendChild(r),this.elem.globalData.defs.appendChild(a);var o=createNS("g");for(o.setAttribute("mask","url("+getLocationHref()+"#"+n+")");e[0];)o.appendChild(e[0]);this.elem.layerElement.appendChild(o),this.masker=a,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 t,r=this.paths.length,i,s;for(t=0;t<r;t+=1)if(this.paths[t].m!==-1&&(i=this.elem.maskManager.viewData[this.paths[t].m],s=this.paths[t].p,(e||this.filterManager._mdf||i.prop._mdf)&&s.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 a;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var n=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,o=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=s.getTotalLength();a="0 0 0 "+l*n+" ";var p=l*(o-n),b=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,E=Math.floor(p/b),f;for(f=0;f<E;f+=1)a+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";a+="0 "+l*10+" 0 0"}else a="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;s.setAttribute("stroke-dasharray",a)}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 S=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(S[0]*255)+","+bmFloor(S[1]*255)+","+bmFloor(S[2]*255)+")")}};function SVGTritoneFilter(e,t,r,i){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.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(s);var a=createNS("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",i),this.matrixFilter=a;var n=createNS("feFuncR");n.setAttribute("type","table"),a.appendChild(n),this.feFuncR=n;var o=createNS("feFuncG");o.setAttribute("type","table"),a.appendChild(o),this.feFuncG=o;var l=createNS("feFuncB");l.setAttribute("type","table"),a.appendChild(l),this.feFuncB=l,e.appendChild(a)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,s=i[0]+" "+r[0]+" "+t[0],a=i[1]+" "+r[1]+" "+t[1],n=i[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",s),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",n)}};function SVGProLevelsFilter(e,t,r,i){this.filterManager=t;var s=this.filterManager.effectElements,a=createNS("feComponentTransfer");(s[10].p.k||s[10].p.v!==0||s[11].p.k||s[11].p.v!==1||s[12].p.k||s[12].p.v!==1||s[13].p.k||s[13].p.v!==0||s[14].p.k||s[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(s[17].p.k||s[17].p.v!==0||s[18].p.k||s[18].p.v!==1||s[19].p.k||s[19].p.v!==1||s[20].p.k||s[20].p.v!==0||s[21].p.k||s[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(s[24].p.k||s[24].p.v!==0||s[25].p.k||s[25].p.v!==1||s[26].p.k||s[26].p.v!==1||s[27].p.k||s[27].p.v!==0||s[28].p.k||s[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(s[31].p.k||s[31].p.v!==0||s[32].p.k||s[32].p.v!==1||s[33].p.k||s[33].p.v!==1||s[34].p.k||s[34].p.v!==0||s[35].p.k||s[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(a)),(s[3].p.k||s[3].p.v!==0||s[4].p.k||s[4].p.v!==1||s[5].p.k||s[5].p.v!==1||s[6].p.k||s[6].p.v!==0||s[7].p.k||s[7].p.v!==1)&&(a=createNS("feComponentTransfer"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",i),e.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var r=createNS(e);return r.setAttribute("type","table"),t.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,t,r,i,s){for(var a=0,n=256,o,l=Math.min(e,t),p=Math.max(e,t),b=Array.call(null,{length:n}),E,f=0,S=s-i,A=t-e;a<=256;)o=a/256,o<=l?E=A<0?s:i:o>=p?E=A<0?i:s:E=i+S*Math.pow((o-e)/A,1/r),b[f]=E,f+=1,a+=256/(n-1);return b.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,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)&&(t=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",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=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",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=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",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=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",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=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",t))}};function SVGDropShadowEffect(e,t,r,i,s){var a=t.container.globalData.renderConfig.filterSize,n=t.data.fs||a;e.setAttribute("x",n.x||a.x),e.setAttribute("y",n.y||a.y),e.setAttribute("width",n.width||a.width),e.setAttribute("height",n.height||a.height),this.filterManager=t;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",i+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,e.appendChild(o);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",i+"_drop_shadow_1"),l.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var p=createNS("feFlood");p.setAttribute("flood-color","#00ff00"),p.setAttribute("flood-opacity","1"),p.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=p,e.appendChild(p);var b=createNS("feComposite");b.setAttribute("in",i+"_drop_shadow_3"),b.setAttribute("in2",i+"_drop_shadow_2"),b.setAttribute("operator","in"),b.setAttribute("result",i+"_drop_shadow_4"),e.appendChild(b);var E=this.createMergeNode(i,[i+"_drop_shadow_4",s]);e.appendChild(E)}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 t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(t[0]*255),Math.round(t[1]*255),Math.round(t[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,s=r*Math.cos(i),a=r*Math.sin(i);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,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 t=0,r=_svgMatteSymbols.length;t<r;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var r=e.layerElement.parentNode;if(r){for(var i=r.children,s=0,a=i.length;s<a&&i[s]!==e.layerElement;)s+=1;var n;s<=a-2&&(n=i[s+1]);var o=createNS("use");o.setAttribute("href","#"+t),n?r.insertBefore(o,n):r.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),i=createNS("mask");i.setAttribute("id",t.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var s=e.globalData.defs;s.appendChild(i);var a=createNS("symbol");a.setAttribute("id",r),this.replaceInParent(t,r),a.appendChild(t.layerElement),s.appendChild(a);var n=createNS("use");n.setAttribute("href","#"+r),i.appendChild(n),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,i=t.length;r<i;)t[r]&&t[r].data.ind===e&&this.setElementAsMask(this.elem,t[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,t,r,i){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("result",i),e.appendChild(s),this.feGaussianBlur=s}return SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3,r=this.filterManager.effectElements[0].p.v*t,i=this.filterManager.effectElements[1].p.v,s=i==3?0:r,a=i==2?0:r;this.feGaussianBlur.setAttribute("stdDeviation",s+" "+a);var n=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",n)}},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(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie})})(lottie,lottieExports);const Lottie=lottieExports;var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeGlobal$1=freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")(),root$1=root,Symbol$1=root$1.Symbol,Symbol$2=Symbol$1,objectProto$e=Object.prototype,hasOwnProperty$b=objectProto$e.hasOwnProperty,nativeObjectToString$1=objectProto$e.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(e){var t=hasOwnProperty$b.call(e,symToStringTag$1),r=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var i=!0}catch(a){}var s=nativeObjectToString$1.call(e);return i&&(t?e[symToStringTag$1]=r:delete e[symToStringTag$1]),s}var objectProto$d=Object.prototype,nativeObjectToString=objectProto$d.toString;function objectToString(e){return nativeObjectToString.call(e)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}function isObjectLike(e){return e!=null&&typeof e=="object"}var isArray=Array.isArray,isArray$1=isArray;function isObject(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(e){if(!isObject(e))return!1;var t=baseGetTag(e);return t==funcTag$2||t==genTag$1||t==asyncTag||t==proxyTag}var coreJsData=root$1["__core-js_shared__"],coreJsData$1=coreJsData,maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}var funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource(e){if(e!=null){try{return funcToString$1.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$c=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$a=objectProto$c.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$a).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){if(!isObject(e)||isMasked(e))return!1;var t=isFunction(e)?reIsNative:reIsHostCtor;return t.test(toSource(e))}function getValue(e,t){return e==null?void 0:e[t]}function getNative(e,t){var r=getValue(e,t);return baseIsNative(r)?r:void 0}var WeakMap=getNative(root$1,"WeakMap"),WeakMap$1=WeakMap,objectCreate=Object.create,baseCreate=function(){function e(){}return function(t){if(!isObject(t))return{};if(objectCreate)return objectCreate(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),baseCreate$1=baseCreate;function copyArray(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}var defineProperty=function(){try{var e=getNative(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),defineProperty$1=defineProperty;function arrayEach(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(e,t){var r=typeof e;return t=t==null?MAX_SAFE_INTEGER$1:t,!!t&&(r=="number"||r!="symbol"&&reIsUint.test(e))&&e>-1&&e%1==0&&e<t}function baseAssignValue(e,t,r){t=="__proto__"&&defineProperty$1?defineProperty$1(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function eq(e,t){return e===t||e!==e&&t!==t}var objectProto$b=Object.prototype,hasOwnProperty$9=objectProto$b.hasOwnProperty;function assignValue(e,t,r){var i=e[t];(!(hasOwnProperty$9.call(e,t)&&eq(i,r))||r===void 0&&!(t in e))&&baseAssignValue(e,t,r)}function copyObject(e,t,r,i){var s=!r;r||(r={});for(var a=-1,n=t.length;++a<n;){var o=t[a],l=i?i(r[o],e[o],o,r,e):void 0;l===void 0&&(l=e[o]),s?baseAssignValue(r,o,l):assignValue(r,o,l)}return r}var MAX_SAFE_INTEGER=9007199254740991;function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER}function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}var objectProto$a=Object.prototype;function isPrototype(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||objectProto$a;return e===r}function baseTimes(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var argsTag$3="[object Arguments]";function baseIsArguments(e){return isObjectLike(e)&&baseGetTag(e)==argsTag$3}var objectProto$9=Object.prototype,hasOwnProperty$8=objectProto$9.hasOwnProperty,propertyIsEnumerable$1=objectProto$9.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&hasOwnProperty$8.call(e,"callee")&&!propertyIsEnumerable$1.call(e,"callee")},isArguments$1=isArguments;function stubFalse(){return!1}var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$1=moduleExports$2?root$1.Buffer:void 0,nativeIsBuffer=Buffer$1?Buffer$1.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse,isBuffer$1=isBuffer,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$1="[object Function]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$3="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!typedArrayTags[baseGetTag(e)]}function baseUnary(e){return function(t){return e(t)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal$1.process,nodeUtil=function(){try{var e=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return e||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(t){}}(),nodeUtil$1=nodeUtil,nodeIsTypedArray=nodeUtil$1&&nodeUtil$1.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray$1=isTypedArray,objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty;function arrayLikeKeys(e,t){var r=isArray$1(e),i=!r&&isArguments$1(e),s=!r&&!i&&isBuffer$1(e),a=!r&&!i&&!s&&isTypedArray$1(e),n=r||i||s||a,o=n?baseTimes(e.length,String):[],l=o.length;for(var p in e)(t||hasOwnProperty$7.call(e,p))&&!(n&&(p=="length"||s&&(p=="offset"||p=="parent")||a&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||isIndex(p,l)))&&o.push(p);return o}function overArg(e,t){return function(r){return e(t(r))}}var nativeKeys=overArg(Object.keys,Object),nativeKeys$1=nativeKeys,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function baseKeys(e){if(!isPrototype(e))return nativeKeys$1(e);var t=[];for(var r in Object(e))hasOwnProperty$6.call(e,r)&&r!="constructor"&&t.push(r);return t}function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}function nativeKeysIn(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty;function baseKeysIn(e){if(!isObject(e))return nativeKeysIn(e);var t=isPrototype(e),r=[];for(var i in e)i=="constructor"&&(t||!hasOwnProperty$5.call(e,i))||r.push(i);return r}function keysIn(e){return isArrayLike(e)?arrayLikeKeys(e,!0):baseKeysIn(e)}var nativeCreate=getNative(Object,"create"),nativeCreate$1=nativeCreate;function hashClear(){this.__data__=nativeCreate$1?nativeCreate$1(null):{},this.size=0}function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty;function hashGet(e){var t=this.__data__;if(nativeCreate$1){var r=t[e];return r===HASH_UNDEFINED$2?void 0:r}return hasOwnProperty$4.call(t,e)?t[e]:void 0}var objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function hashHas(e){var t=this.__data__;return nativeCreate$1?t[e]!==void 0:hasOwnProperty$3.call(t,e)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nativeCreate$1&&t===void 0?HASH_UNDEFINED$1:t,this}function Hash(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Hash.prototype.clear=hashClear;Hash.prototype.delete=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf(e,t){for(var r=e.length;r--;)if(eq(e[r][0],t))return r;return-1}var arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(e){var t=this.__data__,r=assocIndexOf(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():splice.call(t,r,1),--this.size,!0}function listCacheGet(e){var t=this.__data__,r=assocIndexOf(t,e);return r<0?void 0:t[r][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var r=this.__data__,i=assocIndexOf(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function ListCache(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype.delete=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;var Map$1=getNative(root$1,"Map"),Map$1$1=Map$1;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$1$1||ListCache),string:new Hash}}function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function getMapData(e,t){var r=e.__data__;return isKeyable(t)?r[typeof t=="string"?"string":"hash"]:r.map}function mapCacheDelete(e){var t=getMapData(this,e).delete(e);return this.size-=t?1:0,t}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){var r=getMapData(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function MapCache(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}MapCache.prototype.clear=mapCacheClear;MapCache.prototype.delete=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;function arrayPush(e,t){for(var r=-1,i=t.length,s=e.length;++r<i;)e[s+r]=t[r];return e}var getPrototype=overArg(Object.getPrototypeOf,Object),getPrototype$1=getPrototype;function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function stackGet(e){return this.__data__.get(e)}function stackHas(e){return this.__data__.has(e)}var LARGE_ARRAY_SIZE=200;function stackSet(e,t){var r=this.__data__;if(r instanceof ListCache){var i=r.__data__;if(!Map$1$1||i.length<LARGE_ARRAY_SIZE-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new MapCache(i)}return r.set(e,t),this.size=r.size,this}function Stack(e){var t=this.__data__=new ListCache(e);this.size=t.size}Stack.prototype.clear=stackClear;Stack.prototype.delete=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;function baseAssign(e,t){return e&&copyObject(t,keys(t),e)}function baseAssignIn(e,t){return e&&copyObject(t,keysIn(t),e)}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer=moduleExports?root$1.Buffer:void 0,allocUnsafe=Buffer?Buffer.allocUnsafe:void 0;function cloneBuffer(e,t){if(t)return e.slice();var r=e.length,i=allocUnsafe?allocUnsafe(r):new e.constructor(r);return e.copy(i),i}function arrayFilter(e,t){for(var r=-1,i=e==null?0:e.length,s=0,a=[];++r<i;){var n=e[r];t(n,r,e)&&(a[s++]=n)}return a}function stubArray(){return[]}var objectProto$3=Object.prototype,propertyIsEnumerable=objectProto$3.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols$1?function(e){return e==null?[]:(e=Object(e),arrayFilter(nativeGetSymbols$1(e),function(t){return propertyIsEnumerable.call(e,t)}))}:stubArray,getSymbols$1=getSymbols;function copySymbols(e,t){return copyObject(e,getSymbols$1(e),t)}var nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function(e){for(var t=[];e;)arrayPush(t,getSymbols$1(e)),e=getPrototype$1(e);return t}:stubArray,getSymbolsIn$1=getSymbolsIn;function copySymbolsIn(e,t){return copyObject(e,getSymbolsIn$1(e),t)}function baseGetAllKeys(e,t,r){var i=t(e);return isArray$1(e)?i:arrayPush(i,r(e))}function getAllKeys(e){return baseGetAllKeys(e,keys,getSymbols$1)}function getAllKeysIn(e){return baseGetAllKeys(e,keysIn,getSymbolsIn$1)}var DataView=getNative(root$1,"DataView"),DataView$1=DataView,Promise$1=getNative(root$1,"Promise"),Promise$2=Promise$1,Set$1=getNative(root$1,"Set"),Set$1$1=Set$1,mapTag$4="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$4="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$1$1),promiseCtorString=toSource(Promise$2),setCtorString=toSource(Set$1$1),weakMapCtorString=toSource(WeakMap$1),getTag=baseGetTag;(DataView$1&&getTag(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$3||Map$1$1&&getTag(new Map$1$1)!=mapTag$4||Promise$2&&getTag(Promise$2.resolve())!=promiseTag||Set$1$1&&getTag(new Set$1$1)!=setTag$4||WeakMap$1&&getTag(new WeakMap$1)!=weakMapTag$1)&&(getTag=function(e){var t=baseGetTag(e),r=t==objectTag$2?e.constructor:void 0,i=r?toSource(r):"";if(i)switch(i){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$4;case promiseCtorString:return promiseTag;case setCtorString:return setTag$4;case weakMapCtorString:return weakMapTag$1}return t});var getTag$1=getTag,objectProto$2=Object.prototype,hasOwnProperty$2=objectProto$2.hasOwnProperty;function initCloneArray(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&hasOwnProperty$2.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Uint8Array$1=root$1.Uint8Array,Uint8Array$1$1=Uint8Array$1;function cloneArrayBuffer(e){var t=new e.constructor(e.byteLength);return new Uint8Array$1$1(t).set(new Uint8Array$1$1(e)),t}function cloneDataView(e,t){var r=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var reFlags=/\w*$/;function cloneRegExp(e){var t=new e.constructor(e.source,reFlags.exec(e));return t.lastIndex=e.lastIndex,t}var symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf$1=symbolProto$1?symbolProto$1.valueOf:void 0;function cloneSymbol(e){return symbolValueOf$1?Object(symbolValueOf$1.call(e)):{}}function cloneTypedArray(e,t){var r=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var boolTag$2="[object Boolean]",dateTag$2="[object Date]",mapTag$3="[object Map]",numberTag$2="[object Number]",regexpTag$2="[object RegExp]",setTag$3="[object Set]",stringTag$2="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag(e,t,r){var i=e.constructor;switch(t){case arrayBufferTag$2:return cloneArrayBuffer(e);case boolTag$2:case dateTag$2:return new i(+e);case dataViewTag$2:return cloneDataView(e,r);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(e,r);case mapTag$3:return new i;case numberTag$2:case stringTag$2:return new i(e);case regexpTag$2:return cloneRegExp(e);case setTag$3:return new i;case symbolTag$2:return cloneSymbol(e)}}function initCloneObject(e){return typeof e.constructor=="function"&&!isPrototype(e)?baseCreate$1(getPrototype$1(e)):{}}var mapTag$2="[object Map]";function baseIsMap(e){return isObjectLike(e)&&getTag$1(e)==mapTag$2}var nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap,isMap=nodeIsMap?baseUnary(nodeIsMap):baseIsMap,isMap$1=isMap,setTag$2="[object Set]";function baseIsSet(e){return isObjectLike(e)&&getTag$1(e)==setTag$2}var nodeIsSet=nodeUtil$1&&nodeUtil$1.isSet,isSet=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,isSet$1=isSet,CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$1=4,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag$1="[object Map]",numberTag$1="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$1="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$1]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$1]=cloneableTags[dateTag$1]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$1]=cloneableTags[numberTag$1]=cloneableTags[objectTag$1]=cloneableTags[regexpTag$1]=cloneableTags[setTag$1]=cloneableTags[stringTag$1]=cloneableTags[symbolTag$1]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0;cloneableTags[errorTag$1]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;function baseClone(e,t,r,i,s,a){var n,o=t&CLONE_DEEP_FLAG$1,l=t&CLONE_FLAT_FLAG,p=t&CLONE_SYMBOLS_FLAG$1;if(r&&(n=s?r(e,i,s,a):r(e)),n!==void 0)return n;if(!isObject(e))return e;var b=isArray$1(e);if(b){if(n=initCloneArray(e),!o)return copyArray(e,n)}else{var E=getTag$1(e),f=E==funcTag||E==genTag;if(isBuffer$1(e))return cloneBuffer(e,o);if(E==objectTag$1||E==argsTag$1||f&&!s){if(n=l||f?{}:initCloneObject(e),!o)return l?copySymbolsIn(e,baseAssignIn(n,e)):copySymbols(e,baseAssign(n,e))}else{if(!cloneableTags[E])return s?e:{};n=initCloneByTag(e,E,o)}}a||(a=new Stack);var S=a.get(e);if(S)return S;a.set(e,n),isSet$1(e)?e.forEach(function(_){n.add(baseClone(_,t,r,_,e,a))}):isMap$1(e)&&e.forEach(function(_,d){n.set(d,baseClone(_,t,r,d,e,a))});var A=p?l?getAllKeysIn:getAllKeys:l?keysIn:keys,g=b?void 0:A(e);return arrayEach(g||e,function(_,d){g&&(d=_,_=e[d]),assignValue(n,d,baseClone(_,t,r,d,e,a))}),n}var CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;function cloneDeep(e){return baseClone(e,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(e){return this.__data__.set(e,HASH_UNDEFINED),this}function setCacheHas(e){return this.__data__.has(e)}function SetCache(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new MapCache;++t<r;)this.add(e[t])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function arraySome(e,t){for(var r=-1,i=e==null?0:e.length;++r<i;)if(t(e[r],r,e))return!0;return!1}function cacheHas(e,t){return e.has(t)}var COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;function equalArrays(e,t,r,i,s,a){var n=r&COMPARE_PARTIAL_FLAG$3,o=e.length,l=t.length;if(o!=l&&!(n&&l>o))return!1;var p=a.get(e),b=a.get(t);if(p&&b)return p==t&&b==e;var E=-1,f=!0,S=r&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(a.set(e,t),a.set(t,e);++E<o;){var A=e[E],g=t[E];if(i)var _=n?i(g,A,E,t,e,a):i(A,g,E,e,t,a);if(_!==void 0){if(_)continue;f=!1;break}if(S){if(!arraySome(t,function(d,y){if(!cacheHas(S,y)&&(A===d||s(A,d,r,i,a)))return S.push(y)})){f=!1;break}}else if(!(A===g||s(A,g,r,i,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function mapToArray(e){var t=-1,r=Array(e.size);return e.forEach(function(i,s){r[++t]=[s,i]}),r}function setToArray(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}var COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(e,t,r,i,s,a,n){switch(r){case dataViewTag:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case arrayBufferTag:return!(e.byteLength!=t.byteLength||!a(new Uint8Array$1$1(e),new Uint8Array$1$1(t)));case boolTag:case dateTag:case numberTag:return eq(+e,+t);case errorTag:return e.name==t.name&&e.message==t.message;case regexpTag:case stringTag:return e==t+"";case mapTag:var o=mapToArray;case setTag:var l=i&COMPARE_PARTIAL_FLAG$2;if(o||(o=setToArray),e.size!=t.size&&!l)return!1;var p=n.get(e);if(p)return p==t;i|=COMPARE_UNORDERED_FLAG,n.set(e,t);var b=equalArrays(o(e),o(t),i,s,a,n);return n.delete(e),b;case symbolTag:if(symbolValueOf)return symbolValueOf.call(e)==symbolValueOf.call(t)}return!1}var COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function equalObjects(e,t,r,i,s,a){var n=r&COMPARE_PARTIAL_FLAG$1,o=getAllKeys(e),l=o.length,p=getAllKeys(t),b=p.length;if(l!=b&&!n)return!1;for(var E=l;E--;){var f=o[E];if(!(n?f in t:hasOwnProperty$1.call(t,f)))return!1}var S=a.get(e),A=a.get(t);if(S&&A)return S==t&&A==e;var g=!0;a.set(e,t),a.set(t,e);for(var _=n;++E<l;){f=o[E];var d=e[f],y=t[f];if(i)var m=n?i(y,d,f,t,e,a):i(d,y,f,e,t,a);if(!(m===void 0?d===y||s(d,y,r,i,a):m)){g=!1;break}_||(_=f=="constructor")}if(g&&!_){var u=e.constructor,x=t.constructor;u!=x&&"constructor"in e&&"constructor"in t&&!(typeof u=="function"&&u instanceof u&&typeof x=="function"&&x instanceof x)&&(g=!1)}return a.delete(e),a.delete(t),g}var COMPARE_PARTIAL_FLAG=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep(e,t,r,i,s,a){var n=isArray$1(e),o=isArray$1(t),l=n?arrayTag:getTag$1(e),p=o?arrayTag:getTag$1(t);l=l==argsTag?objectTag:l,p=p==argsTag?objectTag:p;var b=l==objectTag,E=p==objectTag,f=l==p;if(f&&isBuffer$1(e)){if(!isBuffer$1(t))return!1;n=!0,b=!1}if(f&&!b)return a||(a=new Stack),n||isTypedArray$1(e)?equalArrays(e,t,r,i,s,a):equalByTag(e,t,l,r,i,s,a);if(!(r&COMPARE_PARTIAL_FLAG)){var S=b&&hasOwnProperty.call(e,"__wrapped__"),A=E&&hasOwnProperty.call(t,"__wrapped__");if(S||A){var g=S?e.value():e,_=A?t.value():t;return a||(a=new Stack),s(g,_,r,i,a)}}return f?(a||(a=new Stack),equalObjects(e,t,r,i,s,a)):!1}function baseIsEqual(e,t,r,i,s){return e===t?!0:e==null||t==null||!isObjectLike(e)&&!isObjectLike(t)?e!==e&&t!==t:baseIsEqualDeep(e,t,r,i,baseIsEqual,s)}function isEqual(e,t){return baseIsEqual(e,t)}var _export_sfc=(e,t)=>{const r=e.__vccOpts||e;for(const[i,s]of t)r[i]=s;return r};const _sfc_main=defineComponent({props:{animationData:{type:Object,default:()=>({})},animationLink:{type:String,default:""},loop:{type:[Boolean,Number],default:!0},autoPlay:{type:Boolean,default:!0},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"},speed:{type:Number,default:1},delay:{type:Number,default:0},direction:{type:String,default:"forward"},pauseOnHover:{type:Boolean,default:!1},playOnHover:{type:Boolean,default:!1},backgroundColor:{type:String,default:"transparent"},pauseAnimation:{type:Boolean,default:!1},renderer:{type:String,default:"svg"},rendererSettings:{type:Object,default:()=>({})},assetsPath:{type:String,default:""}},emits:{onComplete:null,onLoopComplete:null,onEnterFrame:null,onSegmentStart:null,onAnimationLoaded:null},setup(e,{emit:t}){let r=ref(null);const i=ref("");let s=1;const a=M=>document.querySelector(`[data-id="${M}"]`)!==null,n=async M=>{let V=e.autoPlay;e.playOnHover&&(V=!1);let N={};if(isEqual(e.animationData,{})===!1&&(N=cloneDeep(e.animationData)),e.animationLink!="")try{N=await(await fetch(e.animationLink)).json()}catch(H){console.error(H);return}let G=e.loop;typeof G=="number"&&G>0&&(G=G-1),e.delay>0&&(V=!1);const D={container:M,renderer:e.renderer,loop:G,autoplay:V,animationData:N,assetsPath:e.assetsPath};isEqual(e.rendererSettings,{})===!1&&(D.rendererSettings=e.rendererSettings),r=Lottie.loadAnimation(D),setTimeout(()=>{V=e.autoPlay,e.playOnHover?r.pause():V?r.play():r.pause(),t("onAnimationLoaded")},e.delay),r.setSpeed(e.speed),e.direction==="reverse"&&r.setDirection(-1),e.direction==="normal"&&r.setDirection(1),(e.pauseAnimation||e.playOnHover)&&r.pause(),r.addEventListener("loopComplete",()=>{e.direction==="alternate"&&(r.stop(),s=s*-1,r.setDirection(s),r.play()),t("onLoopComplete")}),r.addEventListener("complete",()=>{t("onComplete")}),r.addEventListener("enterFrame",()=>{t("onEnterFrame")}),r.addEventListener("segmentStart",()=>{t("onSegmentStart")})},o=computed(()=>{let M=e.width,V=e.height;return typeof e.width=="number"&&(M=`${e.width}px`),typeof e.height=="number"&&(V=`${e.height}px`),{"--lottie-animation-container-width":M,"--lottie-animation-container-height":V,"--lottie-animation-container-background-color":e.backgroundColor}}),l=()=>{r&&e.pauseOnHover&&r.pause(),r&&e.playOnHover&&r.play()},p=()=>{r&&e.pauseOnHover&&r.play(),r&&e.playOnHover&&r.pause()};watch(()=>e.pauseAnimation,()=>{if((e.pauseOnHover||e.playOnHover)&&e.pauseAnimation){console.error("If you are using pauseAnimation prop for Vue3-Lottie, please remove the props pauseOnHover and playOnHover");return}r&&(e.pauseAnimation?r.pause():r.play())});const b=()=>{r&&r.play()},E=()=>{r&&r.pause()},f=()=>{r&&r.stop()},S=()=>{r&&r.destroy()},A=(M=1)=>{if(M<=0)throw new Error("Speed must be greater than 0");r&&r.setSpeed(M)},g=M=>{r&&(M==="forward"?r.setDirection(1):M==="reverse"&&r.setDirection(-1))},_=(M,V=!0)=>{r&&r.goToAndStop(M,V)},d=(M,V=!0)=>{r&&r.goToAndPlay(M,V)},y=(M,V=!1)=>{r&&r.playSegments(M,V)},m=(M=!0)=>{r&&r.setSubframe(M)},u=(M=!0)=>{if(r)return r.getDuration(M)},x=(M,V=0)=>{r&&r.renderer.elements[V].updateDocumentData(M)},P=M=>{for(var V="",N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",G=N.length,D=0;D<M;D++)V+=N.charAt(Math.floor(Math.random()*G));return V},T=M=>{if(e.pauseOnHover&&e.playOnHover)throw new Error("You cannot set pauseOnHover and playOnHover for Vue3-Lottie at the same time.");if(e.animationLink===""&&isEqual(e.animationData,{}))throw new Error("You must provide either animationLink or animationData");const V=setInterval(()=>{if(a(M)){clearInterval(V);const N=document.querySelector(`[data-id="${M}" ]`);N&&n(N)}},0)};return onMounted(async()=>{i.value=P(20),T(i.value)}),{elementid:i,hoverEnded:p,hoverStarted:l,getCurrentStyle:o,play:b,pause:E,stop:f,destroy:S,setSpeed:A,setDirection:g,goToAndStop:_,goToAndPlay:d,playSegments:y,setSubFrame:m,getDuration:u,updateDocumentData:x}}}),_hoisted_1=["data-id"];function _sfc_render(e,t,r,i,s,a){return openBlock(),createElementBlock("div",{"data-id":e.elementid,class:"lottie-animation-container",style:normalizeStyle(e.getCurrentStyle),onMouseenter:t[0]||(t[0]=(...n)=>e.hoverStarted&&e.hoverStarted(...n)),onMouseleave:t[1]||(t[1]=(...n)=>e.hoverEnded&&e.hoverEnded(...n))},null,44,_hoisted_1)}var Vue3Lottie=_export_sfc(_sfc_main,[["render",_sfc_render]]);const v="5.7.1",fr=60,ip=0,op=120,w=2436,h=1125,nm="合成 1",ddd=0,assets=[{id:"image_0",w:195,h:264,u:"",p:"data:image/png;base64,[encoded data, 17304 characters]",e:1},{id:"image_1",w:1080,h:3,u:"",p:"data:image/png;base64,[encoded data, 5712 characters]",e:1}],layers=[{ddd:0,ind:1,ty:2,nm:"加载视频@3x.png",cl:"png",refId:"image_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[1218,562,0],ix:2},a:{a:0,k:[97.5,132,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:2,ty:2,nm:"进度条@3x.png",cl:"png",refId:"image_1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[100],e:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:61,s:[0],e:[0]},{t:120}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[678,587.5,0],ix:2},a:{a:0,k:[0,1.5,0],ix:1},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:0,s:[0,100,100],e:[100,100,100]},{t:60}],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:3,ty:2,nm:"进度条@3x.png",cl:"png",refId:"image_1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:0,s:[0],e:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[0],e:[100]},{t:61}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[1758,589,0],ix:2},a:{a:0,k:[1080,3,0],ix:1},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:60,s:[100,100,100],e:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:61,s:[100,100,100],e:[0,100,100]},{t:120}],ix:6}},ao:0,ip:0,op:300,st:0,bm:0}],markers=[],playLoadData={v,fr,ip,op,w,h,nm,ddd,assets,layers,markers},videoWrap$1="_videoWrap_74f01_1",content$1="_content_74f01_6",contentWrap$1="_contentWrap_74f01_10",controls$1="_controls_74f01_17",hide$1="_hide_74f01_29",time$1="_time_74f01_32",slider$1="_slider_74f01_40",actions$1="_actions_74f01_53",actionWrap$1="_actionWrap_74f01_61",actionBtn$1="_actionBtn_74f01_64",playIcon$1="_playIcon_74f01_79",btnPlay$1="_btnPlay_74f01_82",btnPause$1="_btnPause_74f01_85",loopBtn$1="_loopBtn_74f01_92",active$1="_active_74f01_98",styles$1={videoWrap:videoWrap$1,content:content$1,contentWrap:contentWrap$1,controls:controls$1,hide:hide$1,time:time$1,slider:slider$1,actions:actions$1,actionWrap:actionWrap$1,actionBtn:actionBtn$1,playIcon:playIcon$1,btnPlay:btnPlay$1,btnPause:btnPause$1,loopBtn:loopBtn$1,active:active$1},iconLoop="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAkFBMVEUAAAD4///4///4///////4///////3///4///4///4///4///3///////////3///4///5///3///4///5///6///5///4///3///4///4///5///5///5///////4///4///3///4///6///4///5///4///3///7///6///3///7///////4///4///3//+Qo/yLAAAAL3RSTlMAdPLYCCAOpnD27NGjEwvFvybptHpdTULl4Kp/d1QczJiHZiz6nYmDPDiGORfTldnaPncAAAG2SURBVEjH3VXZYoIwEIRwS1DkqCjibT1qy///XbOIOIHE9tl92zOzs+xivKc4Po8txqzYM6d/R0dlWINY29XLcDtjdU+Cq6uP/yhqhYxyXfzyHnCIzdnUtZ1zvmjf+1TD4fd6SxdsldUY07EigTfVT33XbtRkaPAkMwXLDW3bQb9knSs5HKfkq3oNFAR/qiF7TU6Z3YyKzLqIXsYqEd6TNF/i7/iAEAYbdwg4uIGhpDejVsmpm173E2G7gh7idMyaRH7ki74rYI4i9pgweIQG+OTEF9rakBPoERjiVuhmp3lC+xkm4CMXoXqdFgttBwlPyR5GVyixBLCCBBDnYWXYNSNXeLooEvZQlHUJQetNeOVCAsKWE2DRNpgQ+ORVQPruQjhCmhDxyqY9CYGJ5ZFWDoNDxCaWx8E9K+zv8Yt2Kal8N1Vg3gEV4o3bCMrDxxfi/kgMRkT+8PMu5QU6ol+18SxCS6m+VbiimdKlPwKFrfTpz8yHxqs7ZEutX30quRZumpjR8BhzXQMu8X1I/fNqjOdej2dRK6R41a+f9MNZZr/mPJ9geFhG/+AxP67nAf12fcd4S/kFWWxhMWHsl5QAAAAASUVORK5CYII=",iconLoopActive="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAwCAMAAABpN6nPAAAA0lBMVEUAAAD4//84x/8drfH////4//8crPH4//8crfL3//8ervL5///////////3//8drfEervMcrfL////4///4///3///4///5//8drfL4//8crfL3///3///5///5///5///5///////////4///4///4///5///4//8drPP5///4//8gr//4//8drfH4///4///4///4///5///3///6//8esvP////////3///4///3///4///3///4///4///6//8erfEerfIcrfIhsfT3//8crPGbp5AlAAAARHRSTlMAdATdCPbz8dmlingOCuqlVVET4NHFcWCql+rkqX5TPyobBPrXq52JaSYiENrMy7+1a1hCNyseF+y8oY+DTEQxpHljLmZMFBAAAAIbSURBVEjH5ZTZetowEIVtvGDHCwRvBQwGwtKmFEhCoUmzx37/V4okS2iF5Do5N/4sza8Zn9FY+x66TN31tNlcJrP01+eIziAuGUWL/YeI6TVLQdaic5p56JcKNYenGK8Ouljrxcg3d9ssx3n/T46W5qKA0POZxespWrw1j0CIubgPhOUMZZudqC28UXRgBXe6Sg+QwWNl3bdwb6jYgL79G2lKBQnY7Pvq4orDEWLHQ2ihdA/g187JwbHVFY69hh6JtQ9gcR0mInrkAzZgzRMgeN8W5EUvofhkBVhZCq7CqBELSclgk7cclIKVWOMglCzgnbqSLkNXhsqI9voGO0W1hsfIEPvxPnhZcdASd1yGyh1ZHQcB7zm6k/H9VoKoPbIsHBHeDX0ecuuARrvl2LbTajcoxAxsl4WstN4/Nyos45zpLdEdW16Cf0ZnFaMzajlbjU7TUEamUszk2AicBtdWCcIVPtXMbFIPOEyja1gNQ4QM7MaUYbR9CNMQtTng5a1XVW06Gi6dLrY5LZb5iRK3DkM419RyQKz93CPMD/BwyBQutCOykWF/e5SpbCFEDTm/AUUYGVKXV/0B1CtmaHmyqBGYIgw0QtCETCu1HFOEIZZTmZtQ79DXYHhobs/gm0vlJ/AHt0mLcWBeFllulZnqGvHKS1GRL19YQZOrUKRcaTRkmVnCIv3BXhxCtXbZfBVZVhjn3pMmjftX1TvZ0b81Ol2EMAAAAABJRU5ErkJggg==",iconplay="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAADbN2wMAAACQklEQVRoBe2ZzysEYRjHd/1IKSclDtRGodxcKWWduCkX5R+QkM2FAykX8k+sk9ysk5xozxyQInEhDkr5FVqfp7w1jd3Zmdmdmfeteerb++7zzvu+n+87s7sz7yQSccQrEK+A0SuQ9ENfKBSa6dePvlE+mUx++Bkn9D6A16BV9IVUPFKZRrWhA3mdEMh5RV2kPCE34HXMUI8H8KkIuD2VJdEWKpibyYBqt5M6fH6hbQHVuxk7lGOA6XEALtV0TsNwKIDlJvFpQBnbodJRbo5A2ys0IEZe0RJqCBS01OBM7OcSotu/uCIzWmoer/karx2qcHwnY+QwsYekXlFEYUABj1E5w8QaalTJwEomqdYlxFD/4pbMuB/4KM+AlVd+oXYxcYB6rQ3l6roYUJxpKqeY2EBNKulU6mZAWOXfO4MuMTEpCafQ0YDilfupbUwcoZRK2kudDShWucPNY6JLJaylCQaEtxWtSMUephgQ7hE7vHw2yUCd6Qb2TTZwA/yyqQaOAR9i5+PONAP3AE8BPlgKXgzp+CX+gmsLdQOeFUinKPrNduoQcNsh488AfuF2Hl3OgFzfE4CnvcCLyajPwCcMm2gd8DcB8hpRGpDf9VnAr71CW4+PwoAAzwGes4IEXudusNJHStlWWUZGbqvI46KRG1uytZgO/PJwMwEgKeQ2ZHM3g7Ta3K0D6NmFA3kM1G97Xc4SYIsOBvR/wfFnQnbS3i1GHqhH9orJ70u+Fsz0Ibnxkpd8P2IujngF4hWIV8DzCvwCJiXIZfS6dB4AAAAASUVORK5CYII=",iconpause="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAADbN2wMAAABJElEQVRoBe1ZQQ6DMAyD/YuPsV/xjr2DvWLrHAkOLaAGOdWEcKRoa4md1OZUuk4hBaSAFLiEAimlATkh5yXt/8AObxzIcN5sLjQYkV9kGR9sjFnxiYVhkeG82QhoYArZoEdhz047YRhkOG82vC3QxOytxbQBVjZA2IR30xaN7J2vxbwBVjZAGMLbV/qYA6lWY897hKdurYnifayEV/3VAf7tnByQA6QCeoVIAWm4HKAlJAnkACkgDZcDtIQkgRwgBaThcoCWkCSQA6SANFwO0BKSBHKAFJCG38KBt0MmT01J48FUazwOvMrOO2tPTQnzYDw1JW++xh1mk2vwVrz59MsKzZ7Ivbt822M+cDThPTqEORH+KQicTXh3D6FNKSAFpEC4Aj8w8BfWLCtJSQAAAABJRU5ErkJggg==";var vudioExports={},vudio={get exports(){return vudioExports},set exports(e){vudioExports=e}};(function(e,t){(function(r){e.exports=r()})(function(){var r={effect:"waveform",accuracy:128,width:256,height:100,waveform:{maxHeight:80,minHeight:1,spacing:1,color:"#f00",shadowBlur:0,shadowColor:"#f00",fadeSide:!0,horizontalAlign:"center",verticalAlign:"middle",prettify:!0},lighting:{maxHeight:80,lineWidth:0,color:"#f00",shadowBlur:0,shadowColor:"#f00",fadeSide:!0,horizontalAlign:"center",verticalAlign:"middle"}};function i(a,n,o){if(["[object HTMLAudioSource]","[object HTMLAudioElement]","[object MediaStream]"].indexOf(Object.prototype.toString.call(a))===-1)throw new TypeError("Invaild Audio Source");if(Object.prototype.toString.call(n)!=="[object HTMLCanvasElement]")throw new TypeError("Invaild Canvas Element");this.audioSrc=a,this.canvasEle=n,this.option=s(r,o),this.meta={},this.stat=0,this.freqByteData=null,this.__init()}function s(){var a={};return Array.prototype.forEach.call(arguments,function(n){var o;for(o in n)Object.prototype.hasOwnProperty.call(n,o)&&(Object.prototype.toString.call(n[o])==="[object Object]"?a[o]=s(a[o],n[o]):a[o]=n[o])}),a}return i.prototype={__init:function(){var a=new(window.AudioContext||window.webkitAudioContext||window.mozAudioContext),n=Object.prototype.toString.call(this.audioSrc)!=="[object MediaStream]"?a.createMediaElementSource(this.audioSrc):a.createMediaStreamSource(this.audioSrc),o=window.devicePixelRatio||1;this.analyser=a.createAnalyser(),this.meta.spr=a.sampleRate,n.connect(this.analyser),this.analyser.fftSize=this.option.accuracy*2,this.analyser.connect(a.destination),this.freqByteData=new Uint8Array(this.analyser.frequencyBinCount),this.context2d=this.canvasEle.getContext("2d"),this.width=this.option.width,this.height=this.option.height,this.context2d.canvas.width=this.width*o,this.context2d.canvas.height=this.height*o,this.context2d.scale(o,o)},__rebuildData:function(a,n){var o;return n==="center"?o=[].concat(Array.from(a).reverse().splice(this.option.accuracy/2,this.option.accuracy/2),Array.from(a).splice(0,this.option.accuracy/2)):n==="left"?o=a:n==="right"?o=Array.from(a).reverse():o=[].concat(Array.from(a).reverse().splice(this.option.accuracy/2,this.option.accuracy/2),Array.from(a).splice(0,this.option.accuracy/2)),o},__animate:function(){this.stat===1&&(this.analyser.getByteFrequencyData(this.freqByteData),typeof this.__effects()[this.option.effect]=="function"&&this.__effects()[this.option.effect](this.freqByteData),requestAnimationFrame(this.__animate.bind(this)))},__testFrame:function(){this.analyser.getByteFrequencyData(this.freqByteData),typeof this.__effects()[this.option.effect]=="function"&&this.__effects()[this.option.effect](this.freqByteData)},__effects:function(){var a=this;return{lighting:function(n){var o=a.option.lighting,l=a.__rebuildData(n,o.horizontalAlign),p=o.maxHeight/2,b=!0,E,f;o.horizontalAlign,a.context2d.clearRect(0,0,a.width,a.height),a.context2d.lineWidth=o.lineWidth,a.context2d.strokeStyle=o.color,a.context2d.beginPath(),l.forEach(function(S,A){E=a.width/a.option.accuracy*A,f=S/256*p,o.verticalAlign==="middle"?f=(a.height-S)/2-p/2:o.verticalAlign==="bottom"?f=a.height-S:o.verticalAlign==="top"?f=S:f=(a.height-S)/2-p/2,b?(a.context2d.moveTo(E,f),b=!1):a.context2d.lineTo(E,f)}),a.context2d.stroke()},waveform:function(n){var o=a.option.waveform,l=o.fadeSide,p=o.prettify,b=a.__rebuildData(n,o.horizontalAlign),E,f,S,A,g,_,d,y;o.horizontalAlign!=="center"&&(l=!1,p=!1),a.context2d.clearRect(0,0,a.width,a.height),b.forEach(function(m,u){f=(a.width-a.option.accuracy*o.spacing)/a.option.accuracy,A=u*(f+o.spacing),o.spacing!==1&&(A+=o.spacing/2),p?u<=a.option.accuracy/2?E=(1-(a.option.accuracy/2-1-u)/(a.option.accuracy/2))*o.maxHeight:E=(1-(u-a.option.accuracy/2)/(a.option.accuracy/2))*o.maxHeight:E=o.maxHeight,S=m/256*E,S=S<o.minHeight?o.minHeight:S,o.verticalAlign==="middle"?g=(a.height-S)/2:o.verticalAlign==="top"?g=0:o.verticalAlign==="bottom"?g=a.height-S:g=(a.height-S)/2,_=o.color,_ instanceof Array?(d=a.context2d.createLinearGradient(A,g,A,g+S),_.forEach(function(x,P){x instanceof Array?(y=x[0],x=x[1]):P===0||P===_.length-1?y=P/(_.length-1):y=P/_.length+.5/_.length,d.addColorStop(y,x)}),a.context2d.fillStyle=d):a.context2d.fillStyle=_,o.shadowBlur>0&&(a.context2d.shadowBlur=o.shadowBlur,a.context2d.shadowColor=o.shadowColor),l?u<=a.option.accuracy/2?a.context2d.globalAlpha=1-(a.option.accuracy/2-1-u)/(a.option.accuracy/2):a.context2d.globalAlpha=1-(u-a.option.accuracy/2)/(a.option.accuracy/2):a.context2d.globalAlpha=1,a.context2d.fillRect(A,g,f,S)})}}},dance:function(){return this.stat===0&&(this.stat=1,this.__animate()),this},pause:function(){return this.stat=0,this},setOption:function(a){this.option=s(this.option,a)}},i})})(vudio);const Vudio=vudioExports,AudioItem=defineComponent({name:"video-play",props:{item:{type:Object,default:()=>({})},show:{type:Boolean,default:!1},pageVisibility:{type:String,default:""},showModel:{type:Boolean,default:!1},isEmtry:{type:Boolean,default:!1}},emits:["loadedmetadata","togglePlay","ended","reset","close"],setup(e,{emit:t}){const{item:r,isEmtry:i}=toRefs(e),s=reactive({timer:null,currentTime:0,duration:0,loop:!1,playState:"pause",vudio:null}),a=ref(),n=ref(),o=ref();watch(()=>e.show,S=>{S||(n.value.pause(),s.playState="pause")}),watch(()=>e.pageVisibility,S=>{S==="hidden"&&e.show&&(n.value.pause(),s.playState="pause")});const l=()=>{n.value.paused?(p(n.value,a.value),n.value.play(),s.playState="play"):(n.value.pause(),s.playState="pause")},p=(S,A)=>{if(!s.vudio){const g=o.value.getBoundingClientRect()||{width:200,height:200};s.vudio=new Vudio(S,A,{effect:"waveform",accuracy:128,width:g.width,height:g.height,waveform:{maxHeight:160,color:[[0,"#44D1FF"],[.5,"#44D1FF"],[.5,"#198CFE"],[1,"#198CFE"]],prettify:!1}}),s.vudio.dance()}},b=()=>{s.duration=n.value.duration},E=S=>{s.currentTime=S,clearTimeout(s.timer),s.timer=setTimeout(()=>{n.value.currentTime=S,s.timer=null},300)},f=()=>{s.playState="pause"};return()=>createVNode("div",{class:styles$1.videoWrap},[createVNode("div",{class:styles$1.content},[createVNode("div",{ref:o,class:styles$1.contentWrap},[createVNode("canvas",{ref:a},null),createVNode("audio",{src:i.value?"":r.value.content,ref:n,loop:s.loop,onLoadedmetadata:b,onTimeupdate:()=>{s.timer||(s.currentTime=n.value.currentTime)},onEnded:f,crossorigin:"anonymous",playsinline:"false"},null)])]),createVNode("div",{class:[styles$1.controls,e.showModel?"":styles$1.hide],onClick:S=>{S.stopPropagation()},onTouchmove:S=>{t("close")}},[createVNode("div",{class:styles$1.time},[createVNode("div",null,[getSecondRPM(s.currentTime)]),createVNode("div",null,[getSecondRPM(s.duration)])]),createVNode("div",{class:styles$1.slider},[createVNode(NSlider,{tooltip:!1,step:.01,class:styles$1.timeProgress,value:s.currentTime,max:s.duration,"onUpdate:value":S=>E(S)},null)]),createVNode("div",{class:styles$1.actions,onClick:()=>t("close")},[createVNode("div",{class:styles$1.actionBtn,onClick:()=>l()},[createVNode("img",{src:s.playState==="pause"?iconplay:iconpause},null)]),createVNode("div",{class:styles$1.actionBtn,onClick:()=>s.loop=!s.loop},[createVNode("img",{src:s.loop?iconLoopActive:iconLoop},null)])])])])}}),api_lessonCoursewareKnowledgeDetailDetail=e=>request.post("/edu-app/lessonCoursewareKnowledgeDetail/detail",{data:e}),api_classLessonCoursewareQuery=e=>request.post("/edu-app/classLessonCourseware/queryCourseware",{data:e}),videoWrap="_videoWrap_re3ur_1",content="_content_re3ur_6",contentWrap="_contentWrap_re3ur_9",controls="_controls_re3ur_16",hide="_hide_re3ur_28",time="_time_re3ur_31",slider="_slider_re3ur_39",actions="_actions_re3ur_52",actionWrap="_actionWrap_re3ur_60",actionBtn="_actionBtn_re3ur_63",playIcon="_playIcon_re3ur_78",btnPlay="_btnPlay_re3ur_81",btnPause="_btnPause_re3ur_84",loopBtn="_loopBtn_re3ur_91",active="_active_re3ur_97",styles={videoWrap,content,contentWrap,controls,hide,time,slider,actions,actionWrap,actionBtn,playIcon,btnPlay,btnPause,loopBtn,active},VideoItem=defineComponent({name:"video-play",props:{item:{type:Object,default:()=>({})},pageVisibility:{type:String,default:""},show:{type:Boolean,default:!1},showModel:{type:Boolean,default:!1},isEmtry:{type:Boolean,default:!1}},emits:["loadedmetadata","togglePlay","ended","reset","close"],setup(e,{emit:t}){const{item:r,isEmtry:i}=toRefs(e),s=reactive({timer:null,currentTime:0,duration:0,loop:!1,playState:"pause",vudio:null});ref();const a=ref(),n=ref();watch(()=>e.show,f=>{l("pause")}),watch(()=>e.pageVisibility,f=>{f==="hidden"&&e.show&&l("pause")});let o=null;const l=f=>{clearTimeout(o),f==="play"?o=setTimeout(()=>{a.value.play(),s.playState="play"},100):(a.value.pause(),s.playState="pause")},p=()=>{s.duration=a.value.duration,t("loadedmetadata")},b=f=>{s.currentTime=f,clearTimeout(s.timer),s.timer=setTimeout(()=>{a.value.currentTime=f,s.timer=null},300)},E=()=>{s.playState="pause"};return onMounted(()=>{console.log("加载")}),()=>createVNode("div",{class:styles.videoWrap},[createVNode("div",{class:styles.content},[createVNode("div",{ref:n,class:styles.contentWrap},[createVNode("video",{poster:e.item.coverImg,src:i.value?"":r.value.content,ref:a,loop:s.loop,onLoadedmetadata:p,onTimeupdate:()=>{s.timer||(s.currentTime=a.value.currentTime)},onEnded:E,playsinline:"false"},null)])]),createVNode("div",{class:[styles.controls,e.showModel?"":styles.hide],onClick:f=>{f.stopPropagation()},onTouchmove:f=>{t("close")}},[createVNode("div",{class:styles.time},[createVNode("div",null,[getSecondRPM(s.currentTime)]),createVNode("div",null,[getSecondRPM(s.duration)])]),createVNode("div",{class:styles.slider},[createVNode(NSlider,{tooltip:!1,step:.01,class:styles.timeProgress,value:s.currentTime,max:s.duration,"onUpdate:value":f=>b(f)},null)]),createVNode("div",{class:styles.actions,onClick:()=>t("close")},[createVNode("div",{class:styles.actionBtn,onClick:()=>l(s.playState==="pause"?"play":"pause")},[createVNode("img",{src:s.playState==="pause"?iconplay:iconpause},null)]),createVNode("div",{class:styles.actionBtn,onClick:()=>s.loop=!s.loop},[createVNode("img",{src:s.loop?iconLoopActive:iconLoop},null)])])])])}}),index=defineComponent({name:"CoursewarePlay",setup(){const e=usePageVisibility(),t=reactive({width:"100vw"}),r=()=>{let P=Math.min(screen.width,screen.height),T=Math.max(screen.width,screen.height),M=P*(16/9);if(M>T){t.width="100vw";return}else t.width=M+"px"},i=(P=0)=>{r(),postMessage({api:"setStatusBarVisibility",content:{isVisibility:P}}),postMessage({api:"keepScreenLongLight",content:{isOpenLight:!!P}})};i(),onUnmounted(()=>{i(1),window.removeEventListener("message",p)});const s=useRoute(),a=ref(),n=reactive({knowledgePointList:[],itemList:[],videoRefs:{}}),o=reactive({isAutoPlay:!0,nowTime:0,model:!0,isAnimation:!0,videoBtns:!0,currentTime:0,duration:0,timer:null,item:null}),l=async()=>{let P=[];if(s.query.tab=="course"){const T=await api_classLessonCoursewareQuery({coursewareDetailKnowledgeId:s.query.id,page:1,rows:-1});(T==null?void 0:T.code)===200&&Array.isArray(T.data.rows)&&(T.data.rows||[]).forEach(V=>{P.push({content:V.content,coverImg:V.coverImg,id:V.id,materialId:V.materialId,name:V.materialName,relOrder:0,sourceFrom:V.source,type:V.materialType})})}else{const T=await api_lessonCoursewareKnowledgeDetailDetail({lessonCoursewareKnowledgeDetailId:s.query.id});(T==null?void 0:T.code)===200&&Array.isArray(T.data)&&(P=T.data||[])}P.length>0&&(n.knowledgePointList=P.map(T=>({...T,url:T.type==="SONG"?"https://gyt.ks3-cn-beijing.ksyuncs.com/courseware/1687916228530.png":T.coverImg}))),n.itemList=n.knowledgePointList.map((T,M)=>(f.itemActive||(f.itemActive=T.id,f.itemName=T.name),{...T,iframeRef:null,videoEle:null,autoPlay:!1,isprepare:!1,isRender:!1}))},p=P=>{var T;((T=P.data)==null?void 0:T.api)==="headerTogge"&&(o.model=P.data.show||P.data.playState!="play")};onMounted(()=>{postMessage({api:"courseLoading",content:{show:!1,type:"fullscreen"}}),l(),window.addEventListener("message",p)});const b=ref(),E=()=>{var P;try{(P=b.value)==null||P.handleOut()}catch(T){}postMessage({api:"goBack"})},f=reactive({open:!1,activeIndex:0,itemActive:"",itemName:""}),S=P=>{const T=n.itemList.findIndex(M=>M.id==P);T>-1&&m(T)},A=()=>{clearTimeout(o.timer),closeToast(),o.model=!o.model,o.timer=setTimeout(()=>{o.model=!1},4e3)},g=P=>{P&&["VIDEO"].includes(P.type)&&console.log("双击")},_=ref(3),d=[{prev:{transform:"translate3d(0, 0, -800px) rotateX(180deg)"},next:{transform:"translate3d(0, 0, -800px) rotateX(-180deg)"}},{prev:{transform:"translate3d(-100%, 0, -800px)"},next:{transform:"translate3d(100%, 0, -800px)"}},{prev:{transform:"translate3d(-50%, 0, -800px) rotateY(80deg)"},next:{transform:"translate3d(50%, 0, -800px) rotateY(-80deg)"}},{prev:{transform:"translate3d(-100%, 0, -800px) rotateY(-120deg)",opacity:0},next:{transform:"translate3d(100%, 0, -800px) rotateY(120deg)",opacity:0}},{prev:{transform:"translate3d(-50%, 50%, -800px) rotateZ(-14deg)",opacity:0},next:{transform:"translate3d(50%, 50%, -800px) rotateZ(14deg)",opacity:0}},{prev:{transform:"translateZ(-800px) rotate3d(0, -1, 0, 90deg)",opacity:0},next:{transform:"translateZ(-800px) rotate3d(0, 1, 0, 90deg)",opacity:0},current:{transitionDelay:"700ms"}}],y=ref(),m=P=>{if(f.activeIndex==P)return;clearTimeout(y.value);const T=n.itemList[P];f.activeIndex=P,f.itemActive=T.id,f.itemName=T.name,T.type=="MUSIC"&&(o.model=!0)},u=P=>{m(P==="up"?f.activeIndex-1:f.activeIndex+1)},x=()=>{A()};return()=>createVNode("div",{id:"playContent",class:styles$4.playContent},[createVNode("div",{onClick:()=>A()},[createVNode("div",{class:styles$4.coursewarePlay,style:{width:t.width}},[createVNode("div",{class:styles$4.wraps},[n.itemList.map((P,T)=>{const M=P.isRender||Math.abs(f.activeIndex-T)<2,V=Math.abs(f.activeIndex-T)>4;return M&&(P.isRender=!0),M?createVNode("div",{key:"index"+T,class:[styles$4.itemDiv,f.activeIndex===T&&styles$4.itemActive,o.isAnimation&&styles$4.acitveAnimation,Math.abs(f.activeIndex-T)<2?styles$4.show:styles$4.hide],style:T<f.activeIndex?d[_.value].prev:T>f.activeIndex?d[_.value].next:{},onClick:N=>{if(Date.now()-o.nowTime<300){g(P);return}o.nowTime=Date.now()}},[P.type==="IMG"&&createVNode("img",{src:P.content},null),P.type==="VIDEO"&&createVNode(VideoItem,{item:P,show:f.activeIndex===T,pageVisibility:e.value,showModel:o.model,isEmtry:V,onLoadedmetadata:()=>{P.isprepare=!0},onEnded:()=>{const N=f.activeIndex+1;N<n.itemList.length&&m(N)}},null),P.type==="SONG"&&createVNode(AudioItem,{item:P,show:f.activeIndex===T,pageVisibility:e.value,showModel:o.model,isEmtry:V,onEnded:()=>{const N=f.activeIndex+1;N<n.itemList.length&&m(N)},onClose:()=>{clearTimeout(o.timer),o.timer=setTimeout(()=>{o.model=!1},4e3)}},null),P.type==="MUSIC"&&createVNode(MusicScore,{pageVisibility:e.value,show:f.activeIndex===T,activeModel:o.model,"data-vid":P.id,music:P},null),P.type==="VIDEO"&&createVNode(Transition,{name:"van-fade"},{default:()=>[!P.isprepare&&createVNode("div",{class:styles$4.loadWrap},[createVNode(Vue3Lottie,{style:{width:"100%",height:"100%"},animationData:playLoadData},null)])]})]):createVNode("div",{key:"index"+T,class:[styles$4.itemDiv,f.activeIndex===T&&styles$4.itemActive,o.isAnimation&&styles$4.acitveAnimation,Math.abs(f.activeIndex-T)<2?styles$4.show:styles$4.hide],style:T<f.activeIndex?d[_.value].prev:T>f.activeIndex?d[_.value].next:{}},null)})]),createVNode(Transition,{name:"right"},{default:()=>[o.model&&createVNode("div",{class:styles$4.rightFixedBtns,onClick:P=>{P.stopPropagation(),clearTimeout(o.timer)}},[createVNode("div",{class:[styles$4.fullBtn,styles$4.point],onClick:()=>f.open=!0},[createVNode("img",{src:iconMenu},null),createVNode("span",null,[createTextVNode("课件")])]),createVNode("div",{class:[styles$4.fullBtn,f.activeIndex==0&&styles$4.btnsDisabled],onClick:()=>u("up")},[createVNode("img",{src:iconUp},null),createVNode("span",{style:{textAlign:"center"}},[createTextVNode("上一个")])]),createVNode("div",{class:[styles$4.fullBtn,f.activeIndex==n.itemList.length-1&&styles$4.btnsDisabled],onClick:()=>u("down")},[createVNode("span",{style:{textAlign:"center"}},[createTextVNode("下一个")]),createVNode("img",{src:iconDown},null)])])]})])]),createVNode("div",{style:{transform:o.model?"":"translateY(-100%)"},class:styles$4.headerContainer,ref:a},[createVNode("div",{class:styles$4.backBtn,onClick:()=>E()},[createVNode(Icon,{name:iconBack},null),createTextVNode("返回")]),createVNode("div",{class:styles$4.menu},[f.itemName])]),createVNode(Popup,{class:styles$4.popup,style:{background:"rgba(0,0,0, 0.75)"},overlayClass:styles$4.overlayClass,position:"right",round:!0,show:f.open,"onUpdate:show":P=>f.open=P,onClose:x},{default:()=>[createVNode(Points,{data:n.knowledgePointList,itemActive:f.itemActive,onHandleSelect:P=>{f.open=!1,S(P.itemActive)}},null)]})])}});export{index as default};
