index-179890b4-1715840129614.js 658 KB

1234567891011121314151617
  1. import{ba as BaseTransition,bb as BaseTransitionPropsValidators,bc as Comment,bd as DeprecationTypes,be as EffectScope,bf as ErrorCodes,bg as ErrorTypeStrings,F as Fragment,bh as KeepAlive,bi as ReactiveEffect,bj as Static,bk as Suspense,bl as Teleport,bm as Text,bn as TrackOpTypes,Y as Transition,b2 as TransitionGroup,bo as TriggerOpTypes,bp as VueElement,bq as assertNumber,br as callWithAsyncErrorHandling,bs as callWithErrorHandling,bt as camelize,bu as capitalize,a4 as cloneVNode,bv as compatUtils,S as computed,bw as createApp,bx as createBlock,by as createCommentVNode,aS as createElementBlock,aT as createBaseVNode,bz as createHydrationRenderer,bA as createPropsRestProxy,bB as createRenderer,bC as createSSRApp,bD as createSlots,bE as createStaticVNode,k as createTextVNode,f as createVNode,bF as customRef,bG as defineAsyncComponent,d as defineComponent,bH as defineCustomElement,bI as defineEmits,bJ as defineExpose,bK as defineModel,bL as defineOptions,bM as defineProps,bN as defineSSRCustomElement,bO as defineSlots,bP as devtools,bQ as effect,bR as effectScope,bS as getCurrentInstance,bT as getCurrentScope,bU as getTransitionRawChildren,bV as guardReactiveProps,ab as h$1,bW as handleError,bX as hasInjectionContext,bY as hydrate,bZ as initCustomFormatter,b_ as initDirectivesForSSR,a6 as inject,b$ as isMemoSame,c0 as isProxy,c1 as isReactive,c2 as isReadonly,c3 as isRef,c4 as isRuntimeOnly,c5 as isShallow,B as isVNode,c6 as markRaw,c7 as mergeDefaults,c8 as mergeModels,x as mergeProps,Q as nextTick,c9 as normalizeClass,ca as normalizeProps,as as normalizeStyle,cb as onActivated,cc as onBeforeMount,o as onBeforeUnmount,aa as onBeforeUpdate,cd as onDeactivated,ce as onErrorCaptured,p as onMounted,cf as onRenderTracked,cg as onRenderTriggered,ch as onScopeDispose,ci as onServerPrefetch,R as onUnmounted,al as onUpdated,aR as openBlock,cj as popScopeId,a5 as provide,ck as proxyRefs,cl as pushScopeId,cm as queuePostFlushCb,e as reactive,cn as readonly,r as ref,co as registerRuntimeCompiler,cp as render,cq as renderList,cr as renderSlot,X as resolveComponent,cs as resolveDirective,ct as resolveDynamicComponent,cu as resolveFilter,cv as resolveTransitionHooks,cw as setBlockTracking,cx as setDevtoolsHook,cy as setTransitionHooks,cz as shallowReactive,cA as shallowReadonly,cB as shallowRef,cC as ssrContextKey,cD as ssrUtils,cE as stop,cF as toDisplayString,cG as toHandlerKey,cH as toHandlers,cI as toRaw,aj as toRef,b6 as toRefs,cJ as toValue,cK as transformVNodeArgs,cL as triggerRef,aV as unref,cM as useAttrs,cN as useCssModule,cO as useCssVars,cP as useModel,cQ as useSSRContext,cR as useSlots,cS as useTransitionState,cT as vModelCheckbox,cU as vModelDynamic,cV as vModelRadio,cW as vModelSelect,$ as vModelText,ar as vShow,cX as version$1,cY as warn,y as watch,ak as watchEffect,cZ as watchPostEffect,c_ as watchSyncEffect,c$ as withAsyncContext,d0 as withCtx,d1 as withDefaults,_ as withDirectives,d2 as withKeys,d3 as withMemo,d4 as withModifiers,d5 as withScopeId,d6 as NInputNumber,b3 as commonjsGlobal,b4 as getDefaultExportFromCjs,c as useUserStore,G as NSelect,l as NModal,w as NSpace,j as NButton,D as iframeDislableKeyboard,d7 as NSkeleton,b as useMessage,N as NForm,g as NFormItem,v as NImage,aA as NPopselect,A as eventGlobal,C as NSpin,q as NTabs,t as NTabPane,T as NTooltip,U as NPopover,d8 as getAugmentedNamespace,m as NCheckbox,ax as NCheckboxGroup,aK as NAvatar,M as dayjs,h as NInput,aH as NDatePicker,E as request,aI as request$1,n as useDialog,a as useRoute,u as useRouter,d9 as api_cousseScheduleDetail,s as storage,da as ACCESS_TOKEN_ADMIN}from"./index-27f38392-1715840129614.js";import{v as vaildMusicScoreUrl}from"./urlUtils-a03c114e-1715840129614.js";import{D as Dragbom,u as useDrag,T as TCPlayer,i as iconSpeed,b as iconplay,c as iconpause,t as tickMp3,d as iconReplay$2,V as Vudio,C as CardPreview,g as gradeToCN,e as evaluateDifficult,a as getGuidanceShow,L as ListenModal,I as InstruemntDetail,M as MusicDetail,f as TheotyDetail}from"./index-28769104-1715840129614.js";import{N as NSlider}from"./Slider-17a69cd3-1715840129614.js";import{q as isCollaose,C as CardType,r as materialQueryPage,s as favorite,i as teacherChapterLessonCoursewareList,p as lessonTrainingAdd,F as lessonPreTrainingV2Detail,G as lessonPreTrainingDelete,H as lessonPreTrainingV2Save,c as lessonCoursewareDetail,d as api_teacherChapterLessonCoursewareDetail,I as courseScheduleUpdate}from"./api-4261a394-1715840129614.js";import{d as dingPng$1,m as moveTop}from"./ding-8e9054d5-1715840129614.js";import{s as state}from"./state-bac02a99-1715840129614.js";import{d as deepClone,u as useCatchStore}from"./catchData-ee7bbce5-1715840129614.js";import{N as NScrollbar}from"./Scrollbar-b72aeac2-1715840129614.js";import{r as resourceTypeArray}from"./searchArray-d5f42180-1715840129614.js";import{T as TheSearch}from"./index-63751212-1715840129614.js";import{a as useThrottleFn,u as useDebounceFn}from"./index-95d27d49-1715840129614.js";import{T as TheEmpty}from"./index-f592738f-1715840129614.js";import{u as usePrepareStore,a as TrainUpdate,T as TrainType,S as SelectMusic$1}from"./index-618fa48e-1715840129614.js";import{u as useResizeObserver}from"./index-64303d0e-1715840129614.js";import{a as api_getCurrentGradeYear,g as getStudentList$1,b as getStudentAfterWork}from"./api-0aa82bae-1715840129614.js";import{c as classGroupList}from"./api-f974413a-1715840129614.js";import{d as defultHeade}from"./teacherIcon-b8e3946d-1715840129614.js";import{S as SearchInput}from"./index-717042f2-1715840129614.js";import{h as getStudentList}from"./api-ada3b0f5-1715840129614.js";import{N as NCascader}from"./Cascader-1e2d657d-1715840129614.js";import{T as TheMessageDialog}from"./index-5b211554-1715840129614.js";/**
  2. * vue v3.4.27
  3. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  4. * @license MIT
  5. **/const compile=()=>{},vue_runtime_esmBundler=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition,BaseTransitionPropsValidators,Comment,DeprecationTypes,EffectScope,ErrorCodes,ErrorTypeStrings,Fragment,KeepAlive,ReactiveEffect,Static,Suspense,Teleport,Text,TrackOpTypes,Transition,TransitionGroup,TriggerOpTypes,VueElement,assertNumber,callWithAsyncErrorHandling,callWithErrorHandling,camelize,capitalize,cloneVNode,compatUtils,compile,computed,createApp,createBlock,createCommentVNode,createElementBlock,createElementVNode:createBaseVNode,createHydrationRenderer,createPropsRestProxy,createRenderer,createSSRApp,createSlots,createStaticVNode,createTextVNode,createVNode,customRef,defineAsyncComponent,defineComponent,defineCustomElement,defineEmits,defineExpose,defineModel,defineOptions,defineProps,defineSSRCustomElement,defineSlots,devtools,effect,effectScope,getCurrentInstance,getCurrentScope,getTransitionRawChildren,guardReactiveProps,h:h$1,handleError,hasInjectionContext,hydrate,initCustomFormatter,initDirectivesForSSR,inject,isMemoSame,isProxy,isReactive,isReadonly,isRef,isRuntimeOnly,isShallow,isVNode,markRaw,mergeDefaults,mergeModels,mergeProps,nextTick,normalizeClass,normalizeProps,normalizeStyle,onActivated,onBeforeMount,onBeforeUnmount,onBeforeUpdate,onDeactivated,onErrorCaptured,onMounted,onRenderTracked,onRenderTriggered,onScopeDispose,onServerPrefetch,onUnmounted,onUpdated,openBlock,popScopeId,provide,proxyRefs,pushScopeId,queuePostFlushCb,reactive,readonly,ref,registerRuntimeCompiler,render,renderList,renderSlot,resolveComponent,resolveDirective,resolveDynamicComponent,resolveFilter,resolveTransitionHooks,setBlockTracking,setDevtoolsHook,setTransitionHooks,shallowReactive,shallowReadonly,shallowRef,ssrContextKey,ssrUtils,stop,toDisplayString,toHandlerKey,toHandlers,toRaw,toRef,toRefs,toValue,transformVNodeArgs,triggerRef,unref,useAttrs,useCssModule,useCssVars,useModel,useSSRContext,useSlots,useTransitionState,vModelCheckbox,vModelDynamic,vModelRadio,vModelSelect,vModelText,vShow,version:version$1,warn,watch,watchEffect,watchPostEffect,watchSyncEffect,withAsyncContext,withCtx,withDefaults,withDirectives,withKeys,withMemo,withModifiers,withScopeId},Symbol.toStringTag,{value:"Module"})),_imports_0$2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAQCAMAAAA7+k+nAAAANlBMVEXh4eEAAADg4ODR0dHh4eHi4uLj4+Pi4uLh4eHg4ODg4ODg4ODh4eHg4ODj4+Pf39/j4+Pf398ilOFoAAAAEnRSTlN/ACcIeFY8InZzbGNMSS4YEhAlIBnCAAAAX0lEQVQY023JVRLAIBDA0MAidbn/ZTsVim3+Mg+Ti7GYAjx4DVaAtYfAU2hh42urIboELpawO/hlz3COFI1nApmomuQFmWma5QFPl79hQWkxWNQsQYfAMaA0HBixSmIuu4QCG3HOSMwAAAAASUVORK5CYII=",_imports_1$2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAASCAMAAAB2Mu6sAAAAOVBMVEUAAADh4eHg4ODg4ODi4uLf39/h4eHl5eXg4ODh4eHh4eHh4eHg4ODk5OTe3t7h4eHk5OTV1dXV1dWtzjrUAAAAE3RSTlMAfzF6QSUXEXVuZ11RSj4uHAwGOWQ6qwAAAGFJREFUGNONz0cOgDAQwEBvKr39/7EIBUHKIjFH38y3uJrGGiFYUdjAIqoFLyoPTusOYGr7BJex7iPJMZR9OLjtfd77PZvs3t5FMpt91jYK/h2omNQNDZfGFLPIjCoEfjgBcOwCYQkzb9cAAAAASUVORK5CYII=",_imports_2$2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAABICAMAAADBGyWzAAAAUVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////8IN+deAAAAGnRSTlMAFfny6825nY47Cfft4MGol39sWk5ELikjEOwBXk0AAACISURBVDjL7M/HEcQwDATBhejlvUH+gZ6OJUukoH5O7QPAaQ1hxcvsNO+0m3HKHV9cjogMPxiKu5pf6v+240QHkEqjIvQs9LAyWlQyVihkLKBl1DAyGngZPYKMAbDyImBRyUMLdmP2bNmIaCrvVk44UJsds5Zw2wbfNH7Y8Pn8RnswWjIMp5IBAJlXPZ3uqS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X2swHF9roPGdMyqYqs20QkfeJV+tBjskfakGgoSRZehoU9LNqkmIOpnf0MoDDMeHHR53vlAM6FInSpGELYsMLtpsZz9gZ+o8UBsNyGiQFosnKWCLhXxkvOEBh+G4ltyY7oE1HnSYq9WzE0mBziV8LAxxN+Lx1l3OZg/aoUXp5KxaNTuCcesDzOZe6vXh/PYkprtrE53RiAnwWhAZhI8AgvJ8iuW76j7RtRGRZ96yDHHQAjRTJOoUbXcx2+R27yUHMwGDZuDNxoMWAfCqpw0JuleCF87Ok7bquZuksLFzXk64yJ92FKlxWgU0wRKMz8JwQwrM6K0kmU4YsPZsonfFAXiEr1UpKvRPVzL8dMTPkegvAhcYHbSAjKA5Vryibc+AlZjWX4PzmvgOx4U1TPDMlC910Wwd1SqZdKEvpTOV2lGreZGiZGaCFrZCJGAF3vazemlmXUt312UVvcFohPANLSCLRINe0eq6q2Vbn+lvadUnGrMYz+43xp3jUfCf2WQamMtkBp9Fx51xo99O0LDcn/pdlLbE3hXxtGKzinHv2krU4ohEhAEUiTgs0ZU1b1y02tj0gfRkaYC1hskJZoXd99jvE8Mhr9OzFgyO96VgcM3j9IbCos//mDkNayI52CrNaT7hIT4AdNn8fuusz9infLNWv9/mAjBGhjU5Pej61sWn3FhLCIgDCQx6LPdaHGJl8Mt/svp28uVwa6rfTN36uuWJqTdDr0bfuuUV3x+2brSO/94tLhF+fm/wdfwY76nhVvQU0IaAw5qZCoyaLDA1M7L/urG8+TAxOrLEw83l0f6/kuVX8+5RkLnnXyGyIeGwPi1MPQncoC+fTC3Q+/vo4LCWthZWk/MfH27c71MbDz/OJ1cXttC9vS+4/1h/ATnky8eIqn/DAAAAAElFTkSuQmCC",_imports_5$2=""+new URL("resetting-a142617a.png",import.meta.url).href,_imports_6$1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAApgAAAAqCAMAAAAgctusAAAAS1BMVEUAAADq6urp6enq6urq6urj4+Pr6+vo6Ojq6urm5ubp6enm5ubo6Ojp6enn5+fp6enn5+fo6Ojp6env7+/r6+vz8/Po6Ojp6en29vY4U4nHAAAAE3RSTlMA95feNwkGpJPy5dTJvY8vK5SjBTYU0gAAAa9JREFUeNrtnMuSgjAUBYeHgm+ZXJP5/y+dSAUiCIVES6LVzQa6bvWK9fm5kqfbJNmm+Y8Hj1/arwqtjUXrYlULPD4Cv9prUTWi9+4Sj1/cF0bU5c9yUWIKf/g74os5nj79wE6u5XL9rpXovLmzvtXeP3avWk+ffmA/df+pM6m7w+OX9ZkVLUoyd4fHL+sTZYU3SXOYeN3zt4HJe/r0w/qJKE/ncJbvdaTx9OmH9TPVIXN3PS/TXgY9ffph/VI6lO6u69WgVyNelO/Qpx/WP5n6RdWPmJO7c17JqLcMe3Xr6dMP7KfmhrS5m/TymKdPP7C/PuiWw9ofWu+q917XmL7Xd54+/eD+umpM6e86vur6csr7Dn36T/TPx91mszue2xs8PiIPAAAAAAAAAAAAAAAAH08kywt4PEsc+Nh9NMsLeDxLHPRj73/sUgP97+5Hs7yAx7PEgY/ef+xSA/3v7o8uKchLlhro03/TEofM8vTp9zrvWeKoGl8NLzXQpx/WPxn3PrGYELjUQJ9+WH96MUGeWWqgT//1SxyWwSWFhmlPn/78Pksc9OPux7a8gMf/A9O1ZaEK+VoAAAAAAElFTkSuQmCC",soundWav=""+new URL("timer-f5d3d904.mp3",import.meta.url).href,_withScopeId$2=e=>(pushScopeId("data-v-187422ff"),e=e(),popScopeId(),e),_hoisted_1$3={class:"timerMeter"},_hoisted_2$2={class:"timeCon"},_hoisted_3$2={class:"timeBox"},_hoisted_4$2={class:"timeInput mmTimeIpt"},_hoisted_5$2=_withScopeId$2(()=>createBaseVNode("img",{src:_imports_0$2},null,-1)),_hoisted_6$1=[_hoisted_5$2],_hoisted_7$1=_withScopeId$2(()=>createBaseVNode("img",{src:_imports_0$2},null,-1)),_hoisted_8$1=[_hoisted_7$1],_hoisted_9$1={class:"timeInputBox"},_hoisted_10$1=_withScopeId$2(()=>createBaseVNode("img",{src:_imports_1$2},null,-1)),_hoisted_11$1=[_hoisted_10$1],_hoisted_12$1=_withScopeId$2(()=>createBaseVNode("img",{src:_imports_1$2},null,-1)),_hoisted_13$1=[_hoisted_12$1],_hoisted_14$1=_withScopeId$2(()=>createBaseVNode("img",{class:"midBg",src:_imports_2$2},null,-1)),_hoisted_15$1={class:"timeInput ssTimeIpt"},_hoisted_16$1=_withScopeId$2(()=>createBaseVNode("img",{src:_imports_0$2},null,-1)),_hoisted_17$1=[_hoisted_16$1],_hoisted_18$1=_withScopeId$2(()=>createBaseVNode("img",{src:_imports_0$2},null,-1)),_hoisted_19$1=[_hoisted_18$1],_hoisted_20={class:"timeInputBox"},_hoisted_21=_withScopeId$2(()=>createBaseVNode("img",{src:_imports_1$2},null,-1)),_hoisted_22=[_hoisted_21],_hoisted_23=_withScopeId$2(()=>createBaseVNode("img",{src:_imports_1$2},null,-1)),_hoisted_24=[_hoisted_23],_hoisted_25={class:"timeTools"},_hoisted_26={class:"timeType"},_hoisted_27={class:"timeTypeBox"},_hoisted_28={class:"playState"},_hoisted_29={class:"timeBomCon"},_hoisted_30={key:1,class:"timeUpBom",src:_imports_6$1},_sfc_main$3=defineComponent({__name:"TimerMeter",setup(e){const t=new Audio(soundWav);onMounted(()=>{document.querySelectorAll(".timerMeter .timeInput .timeInputBox .n-input__input-el").forEach(E=>{E.setAttribute("maxlength","2")})}),onUnmounted(()=>{clearInterval(u),t.pause()});const r=ref("countdown");function a(g){r.value!==g&&(r.value=g,n())}function n(){m(),i.value=0,o.value=0,l.value=0}const s=ref("pause"),i=ref(0),o=ref(0),l=ref(0);watch(i,()=>{o.value=Math.floor(i.value/60),l.value=i.value%60});function c(g){if(s.value==="play")return;let E=i.value+g;E>=3599&&(E=3599),E<=0&&(E=0),i.value=E}function f(){if(r.value==="countdown"){if(i.value<=0)return;s.value="play",d()}else{if(i.value>=3599)return;s.value="play",p()}}function m(){clearInterval(u),s.value="pause",t.pause()}let u;function d(){t.pause(),t.currentTime=0,i.value<=3&&(t.currentTime=3-i.value,t.play()),u=setInterval(()=>{i.value--,i.value===3&&t.play(),i.value<=0&&(clearInterval(u),s.value="pause")},1e3)}function p(){u=setInterval(()=>{i.value++,i.value>=3599&&m()},1e3)}return(g,E)=>(openBlock(),createElementBlock("div",_hoisted_1$3,[createBaseVNode("div",_hoisted_2$2,[createBaseVNode("div",_hoisted_3$2,[createBaseVNode("div",_hoisted_4$2,[r.value==="countdown"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["timeInputBtn",{palyDisabled:s.value==="play"}])},[createBaseVNode("div",{onClick:E[0]||(E[0]=y=>c(600))},_hoisted_6$1),createBaseVNode("div",{onClick:E[1]||(E[1]=y=>c(60))},_hoisted_8$1)],2)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_9$1,[createVNode(unref(NInputNumber),{disabled:!0,placeholder:"",value:o.value,format:y=>y?y<10?"0".concat(y):y+"":"00","onUpdate:value":E[2]||(E[2]=y=>{y&&(y<0?y=0:y>59&&(y=59),i.value=y*60+l.value)}),"show-button":!1},null,8,["value","format"])]),r.value==="countdown"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["timeInputBtn",{palyDisabled:s.value==="play"}])},[createBaseVNode("div",{onClick:E[3]||(E[3]=y=>c(-600))},_hoisted_11$1),createBaseVNode("div",{onClick:E[4]||(E[4]=y=>c(-60))},_hoisted_13$1)],2)):createCommentVNode("",!0)]),_hoisted_14$1,createBaseVNode("div",_hoisted_15$1,[r.value==="countdown"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["timeInputBtn",{palyDisabled:s.value==="play"}])},[createBaseVNode("div",{onClick:E[5]||(E[5]=y=>c(10))},_hoisted_17$1),createBaseVNode("div",{onClick:E[6]||(E[6]=y=>c(1))},_hoisted_19$1)],2)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_20,[createVNode(unref(NInputNumber),{disabled:!0,placeholder:"",value:l.value,format:y=>y?y<10?"0".concat(y):y+"":"00","onUpdate:value":E[7]||(E[7]=y=>{y&&(y<0?y=0:y>59&&(y=59),i.value=o.value*60+y)}),"show-button":!1},null,8,["value","format"])]),r.value==="countdown"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["timeInputBtn",{palyDisabled:s.value==="play"}])},[createBaseVNode("div",{onClick:E[8]||(E[8]=y=>c(-10))},_hoisted_22),createBaseVNode("div",{onClick:E[9]||(E[9]=y=>c(-1))},_hoisted_24)],2)):createCommentVNode("",!0)])]),createBaseVNode("div",_hoisted_25,[createBaseVNode("div",_hoisted_26,[createBaseVNode("div",_hoisted_27,[createBaseVNode("div",{class:normalizeClass(["timeTypeName",{timeTypeActive:r.value==="countdown"}]),onClick:E[10]||(E[10]=y=>a("countdown"))}," 倒计时 ",2),createBaseVNode("div",{class:normalizeClass(["timeTypeName",{timeTypeActive:r.value==="countup"}]),onClick:E[11]||(E[11]=y=>a("countup"))}," 正计时 ",2)])]),createBaseVNode("div",_hoisted_28,[s.value==="play"?(openBlock(),createElementBlock("img",{key:0,onClick:m,src:_imports_3$2})):(openBlock(),createElementBlock("img",{key:1,onClick:f,src:_imports_4$2}))]),createBaseVNode("div",{class:"resetting"},[createBaseVNode("img",{onClick:n,src:_imports_5$2})])])]),createBaseVNode("div",_hoisted_29,[r.value==="countdown"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["timeDownBom",{palyDisabled:s.value==="play"}])},[createBaseVNode("div",{onClick:E[12]||(E[12]=y=>c(300))},"5分"),createBaseVNode("div",{onClick:E[13]||(E[13]=y=>c(60))},"1分"),createBaseVNode("div",{onClick:E[14]||(E[14]=y=>c(30))},"30秒"),createBaseVNode("div",{onClick:E[15]||(E[15]=y=>c(5))},"5秒")],2)):(openBlock(),createElementBlock("img",_hoisted_30)),createVNode(unref(Dragbom))])]))}}),TimerMeter_vue_vue_type_style_index_0_scoped_187422ff_lang="",_export_sfc$1=(e,t)=>{const r=e.__vccOpts||e;for(const[a,n]of t)r[a]=n;return r},TimerMeter=_export_sfc$1(_sfc_main$3,[["__scopeId","data-v-187422ff"]]),_imports_0$1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAABECAMAAACs5QVGAAAASFBMVEUAAAD/nob7j2/7kG77kG/6kG/8j27/knH/knb7j2/7j2/7kG/8knH/lHn7j3D7kG/6j27////9y7v8sZr7mnz9y7z8spv7mn093k0XAAAAEHRSTlMAB+bDq6aTKhz27YxNE3JzrutAdwAAALNJREFUOMvtlUsSgyAMQAMK4rdR/Nz/plUJxA7NpqvO6FsBTyEEhkDCGa2NgwzX4E6TG4MnJhM6CJ0JJB7xs6jKKMoKGGXxglVA9AV+UPT0fRxnE/6xmGHPdfELRwQpntn7OcUGoGpqT+PORJ1aQcfjV9PBQPOMBM02QBsaPgof+q0sXsJU4uIc7nKMLxwub3Bb1403KKVESqKYdumgpKMVLsP/XNFH3FFkj75QJuTCIpaiN4anMAgvwjL+AAAAAElFTkSuQmCC",_imports_1$1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAABcCAMAAAD+gdPFAAABJlBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+Yzv9Lqf5SrP5Pq/5IqP5Vrv+Oyf+MyP9Yr//G5P+53v9uuv5esv6Jx/91vf9quP9ltv9bsf5htP9yvP95v/9ot/9/wv+Gxf/7/f+Bw/98wf6DxP+s2P/l8//R6f+n1f+i0//1+/+d0f/u9//b7v/N5//X7P+Exf/p9f+13P98wf/4/P/y+f+94P+Sy//B4f+w2f+Vzf/D4//f8P8Tk/5OAAAALXRSTlMAmfJQPAgEbNOOhDQP/Pi0q6OUfXQgxruIGe3p2r8rFVhHI+GWkGlkYVvO5ON2uHVLAAAFpUlEQVRYw6WZCVvaQBCGq1I51LaCFo9arbV3F6EGgtwghDPhFOQQ9P//ic5MIpBAyEa+5wGXnZmXsMtsvgffmGv7cGfrp/PA53F7vW6P78D5Y8tx+PaNPb3dOvK7TtlSnbj87otdTtCxd5NZ6N3+JQ/JSSBLmGfb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lHTSbqCZFploSj5XCxMEMvlFXYFcaVYqEYkVAtFJc78/APvJmMNq8VzcQAAAABJRU5ErkJggg==",_imports_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAANlBMVEUAAAB2ent4eXt3enx2eXx3eXp3enp3eXt3eXt4eXx3enx2eXx1eXt3e3t3eXt8fHx2dnx3eXtMdUTrAAAAEXRSTlMAmdGjxshH6/VdWFAxPIsOJ8pXJ/EAAAB4SURBVEjH7dRJCsAgEERRp8QxGu9/2UB2ot0iNKED/v3b1KLETgSJFAfAVqy4CiQByArK9QBPfQ28RvI9CBXNd0DiQNMAZ4Y5ECgxzGzwA3AfTWkKUm26GIByNhUGs1KCbK0NK+CNO3DAzQMAjgbE2Rn3QiIFwbsHfxknzdQ/5zIAAAAASUVORK5CYII=",_imports_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMAgHIRQx0KTE13NBtuAAAAmklEQVQ4y9XTKQ7DQAxA0ZG6YecGUS8Q9QRFxWUtLOgBSspDcu+QHznRB8YZZI/nZbE8bYfr9Vhn3/8SnaIbcv/Qx5PwEnHNwi3iR3gMCCDuxOceAug+62QAcEhZnslUIHMBNgSSUBcxgABMACYAE4CJgQt+VPlyf275g25J2US33cCEXETDUI2PB64YUQ/1WF2D9t5enKntb81cmCBGRHN3oQAAAABJRU5ErkJggg==",_imports_2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAABGBAMAAACDAP+3AAAAMFBMVEUAAACWlpaVlZWVlZWWlpaVlZWVlZWXl5eVlZWZmZmSkpKVlZWVlZWWlpaVlZWVlZVOlI4QAAAAD3RSTlMAgbR3wq6KV0MUB+balsELmVrpAAAAe0lEQVRIx2MYBaOA7qC5gKAS3v9fFhBS0///vwEhNfL//wcQoUZhVA0t1TQKgsD7//8PghkFWCMcBWCN/n5UJVij3x5VBdbor0dXk4CphgVNye8JmGq4TJVA4Pz//5vAjEyGIRAXo2rqMSMcM/oxIhxb9GcyjIJRMAgBAMF7m6W6Zav9AAAAAElFTkSuQmCC",_imports_3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAA2CAMAAAC2heqoAAAAdVBMVEUAAAAAAAATFBUSEhQUFBYAAAAAAAAAAAAAAAAAAAAICAsAAAAAAAAAAAAHCAgODg4AAAAAAAATFBQAAAAAAAAAAAAAAAAAAAAUFBQAAAAAAAAAAAAAAAAAAAAAAAAAAAATExMAAAAAAAAAAAAAAAAAAAATFBXWhxLZAAAAJXRSTlMAQtprdPz69/iQIO7Wu18/DMC7rpiFfXhNNCgZB8yfilxTSUcVTIU1bQAAALVJREFUSMft1V0PgiAUgGHSFEFALD9K+67T//+JXbTmOhceWGOx1Xt9nk2BAfu8sfMECwgOMl+Q+wL+i6CID+R/EAJkEQOZok4E2NxRCQGqBLX6+k+Hv1vlEmUI4Lqs4LusEN+DEg2wZ1ErpfvRDcimhGd87QB2Rw5TNBgUgA/YluAFJJ4vCKABVRMfBLjrPOgA1bL5BJoXjMi8jfOU3rQ9TOmB0dlD/joUFXPrZtpG9BfLXHoAUbQjfOBFZ/AAAAAASUVORK5CYII=",_imports_4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAABGBAMAAACDAP+3AAAALVBMVEUAAACWlpaVlZWZmZmVlZWWlpaVlZWVlZWVlZWZmZmVlZWWlpaXl5eXl5eVlZWU66tbAAAADnRSTlMAgbUFd8KrikMU5JZYVl+ukwoAAABLSURBVEjHYxgFo2AUjAKaAmY3JRRQiUWN6TtU8GoCppp779BAAaYaP3Q1CZhq+tDVOGCq4UZT8tQAi6MbBVHAYYZRMApGwSgYaAAAWgRS7kzpQAQAAAAASUVORK5CYII=",_imports_5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAilBMVEUAAAAap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/m9//Z8v+/5v+Bz/9Yxv9Ivf9Bs//r+f/J7//U7v/H7v+n5/+X4v+g4P+R3P+a2/9s1/9k1P9g1P+S0/9Yyv99FZbGAAAAOHRSTlMAB+zrJPf41bKygD82My8vL/v7+/jz7u7r6+vV1c/Pz8+1ta6umJiYmI2NjYCAPz82LiTz7u6Njd6AANQAAAImSURBVDjLddRXW9swFAbgIzvOhIa9R9kbumsTs0yAQtKEFuxsoMwy/v81sh/5WLbk7/p9Pg3rGMIhufX0uJocUCcyGzkC8fmwMLRNs7tbKBRO9va+LebjYJoyTh4env7OyDBZSYryz9/en8I2EpPbMlksnk8lwvKTGpWnTB4djXSF5FehE+Xx8SBnE3znSVReXIziHsikbHWUZ2eVacLoinz1cyYvLyulVXafSV4+39/Ubbt++/iGnZVSua/Ho/zNv9zZOovzUPQk7SyVqzNeKSf/13QujTbKgwO3doGT13oo121Xll25vwRAhoLVsRN7O77cHyaQC+7zThfyRBevVqm0zE1YD85ui9TpeJ2WZZlZSON93uuStKh0O01zDsbx5m9ktOnLXylQ8RvVZbTmSovKnTFI4te0ZdT25Y4GA/hCpNShq3vS0EDFFyLfAOs0DAUm8H3eSo9lMmmkIIPv81F6Wb405mED3+ebI0rnypdGFnLBdDyI9JVKRreAfMc5Kjai8p/ldxoKAVgM5qgdeYT1K5TGMgDkuYlrN0KdKGm6gSbDzWbnycETvVqcnAU3+V5/3t0332k1a7ZTa7bw7G76P4OXH9xslvB98tJY838ZU2zecTooDMmPBH9EI6wzLJEqXwDTNYhTTGV0dc07PdrReKkwiXuYjt2nvzqGrPbJOvvXCIjpmRE7Z9l9inhpmO9UlrshPmQzO5ca0zQlNZ/diiz9DrXEVCS8JPZeAAAAAElFTkSuQmCC",_imports_7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAcCAMAAABIzV/hAAAAVFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////8wXzyWAAAAG3RSTlMAT+raDfeDQ/DMw7WqnJFyaVtQPjgrJBoUBNQxDgHgAAAAdElEQVQoz53S2wqAIAyA4VKz87m02vu/Z4HIwLnI/tsPYbhl7ykOVglyjj8R8FSXESrB1e6EcvD1liUotAoJE9MZEiYXQlizIZE6wxIUw+GJVo1IJM2T+EWaHyN5+M6kfpRc+KWkrrK3389GVe7YmBO95hjcrpAoVLkesMgAAAAASUVORK5CYII=",_imports_8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAaCAMAAACaYWzBAAAAM1BMVEUAAAD///////////////////////////////////////////////////////////////+3leKCAAAAEHRSTlMAkW3TS/lo8u3Vt6RBFgsHbqBFqQAAAE5JREFUKM9jYGBhZmVmYUAAPkYOdm5eoLgACCDJcIH4nPwMzGAJZrg4jwAYsDGwgmlWuAQbRIKRQQAC4BJMoxJDTAJX1OJMDDiTD84EBwBYMhPvQGi3JAAAAABJRU5ErkJggg==",tickWav=""+new URL("tick-b5f22461.mp3",import.meta.url).href,tockWav=""+new URL("tock-8f21331a.wav",import.meta.url).href;var crunker={exports:{}};(function(e,t){(function(r,a){e.exports=a()})(typeof self<"u"?self:commonjsGlobal,()=>(()=>{var r={d:(f,m)=>{for(var u in m)r.o(m,u)&&!r.o(f,u)&&Object.defineProperty(f,u,{enumerable:!0,get:m[u]})},o:(f,m)=>Object.prototype.hasOwnProperty.call(f,m),r:f=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})}},a={};function n(f){return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},n(f)}function s(f){return function(m){if(Array.isArray(m))return i(m)}(f)||function(m){if(typeof Symbol<"u"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}(f)||function(m,u){if(m){if(typeof m=="string")return i(m,u);var d=Object.prototype.toString.call(m).slice(8,-1);if(d==="Object"&&m.constructor&&(d=m.constructor.name),d==="Map"||d==="Set")return Array.from(m);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return i(m,u)}}(f)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(f,m){(m==null||m>f.length)&&(m=f.length);for(var u=0,d=new Array(m);u<m;u++)d[u]=f[u];return d}function o(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}function l(f,m){for(var u=0;u<m.length;u++){var d=m[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(f,(p=d.key,g=void 0,g=function(E,y){if(n(E)!=="object"||E===null)return E;var S=E[Symbol.toPrimitive];if(S!==void 0){var b=S.call(E,y||"default");if(n(b)!=="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(E)}(p,"string"),n(g)==="symbol"?g:String(g)),d)}var p,g}r.r(a),r.d(a,{default:()=>c});var c=function(){function f(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=d.sampleRate;o(this,f),this._context=this._createContext(p),p||(p=this._context.sampleRate),this._sampleRate=p}var m,u;return m=f,u=[{key:"_createContext",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:44100;return window.AudioContext=window.AudioContext||window.webkitAudioContext||window.mozAudioContext,new AudioContext({sampleRate:d})}},{key:"context",get:function(){return this._context}},{key:"fetchAudio",value:async function(){for(var d=this,p=arguments.length,g=new Array(p),E=0;E<p;E++)g[E]=arguments[E];return await Promise.all(g.map(async function(y){var S;return S=y instanceof File||y instanceof Blob?await y.arrayBuffer():await fetch(y).then(function(b){return b.headers.has("Content-Type")&&!b.headers.get("Content-Type").includes("audio/")&&console.warn("Crunker: Attempted to fetch an audio file, but its MIME type is `".concat(b.headers.get("Content-Type").split(";")[0],"`. We'll try and continue anyway. (file: \"").concat(y,'")')),b.arrayBuffer()}),await d._context.decodeAudioData(S)}))}},{key:"mergeAudio",value:function(d){var p=this._context.createBuffer(this._maxNumberOfChannels(d),this._sampleRate*this._maxDuration(d),this._sampleRate);return d.forEach(function(g){for(var E=0;E<g.numberOfChannels;E++){for(var y=p.getChannelData(E),S=g.getChannelData(E),b=g.getChannelData(E).length-1;b>=0;b--)y[b]+=S[b];p.getChannelData(E).set(y)}}),p}},{key:"concatAudio",value:function(d){var p=this._context.createBuffer(this._maxNumberOfChannels(d),this._totalLength(d),this._sampleRate),g=0;return d.forEach(function(E){for(var y=0;y<E.numberOfChannels;y++)p.getChannelData(y).set(E.getChannelData(y),g);g+=E.length}),p}},{key:"padAudio",value:function(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(g===0)return d;if(p<0)throw new Error('Crunker: Parameter "padStart" in padAudio must be positive');if(g<0)throw new Error('Crunker: Parameter "seconds" in padAudio must be positive');for(var E=this._context.createBuffer(d.numberOfChannels,Math.ceil(d.length+g*d.sampleRate),d.sampleRate),y=0;y<d.numberOfChannels;y++){var S=d.getChannelData(y);E.getChannelData(y).set(S.subarray(0,Math.ceil(p*d.sampleRate)+1),0),E.getChannelData(y).set(S.subarray(Math.ceil(p*d.sampleRate)+2,E.length+1),Math.ceil((p+g)*d.sampleRate))}return E}},{key:"sliceAudio",value:function(d,p,g){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,y=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(p>=g)throw new Error('Crunker: "start" time should be less than "end" time in sliceAudio method');for(var S=Math.round((g-p)*this._sampleRate),b=Math.round(p*this._sampleRate),A=this._context.createBuffer(d.numberOfChannels,S,this._sampleRate),C=0;C<d.numberOfChannels;C++)for(var P=d.getChannelData(C),N=A.getChannelData(C),D=0;D<S;D++)N[D]=P[b+D],D<E*this._sampleRate&&(N[D]*=D/(E*this._sampleRate)),D>S-y*this._sampleRate&&(N[D]*=(S-D)/(y*this._sampleRate));return A}},{key:"play",value:function(d){var p=this._context.createBufferSource();return p.buffer=d,p.connect(this._context.destination),p.start(),p}},{key:"export",value:function(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"audio/wav",g=this._interleave(d),E=this._writeHeaders(g,d.numberOfChannels,d.sampleRate),y=new Blob([E],{type:p});return{blob:y,url:this._renderURL(y),element:this._renderAudioElement(y)}}},{key:"download",value:function(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"crunker",g=document.createElement("a");return g.style.display="none",g.href=this._renderURL(d),g.download="".concat(p,".").concat(d.type.split("/")[1]),g.click(),g}},{key:"notSupported",value:function(d){return this._isSupported()?void 0:d()}},{key:"close",value:function(){return this._context.close(),this}},{key:"_maxDuration",value:function(d){return Math.max.apply(Math,s(d.map(function(p){return p.duration})))}},{key:"_maxNumberOfChannels",value:function(d){return Math.max.apply(Math,s(d.map(function(p){return p.numberOfChannels})))}},{key:"_totalLength",value:function(d){return d.map(function(p){return p.length}).reduce(function(p,g){return p+g},0)}},{key:"_isSupported",value:function(){return"AudioContext"in window||"webkitAudioContext"in window||"mozAudioContext"in window}},{key:"_writeHeaders",value:function(d,p,g){var E=2*p,y=2*d.length,S=36+y,b=new ArrayBuffer(8+S),A=new DataView(b);return this._writeString(A,0,"RIFF"),A.setUint32(4,S,!0),this._writeString(A,8,"WAVE"),this._writeString(A,12,"fmt "),A.setUint32(16,16,!0),A.setUint16(20,1,!0),A.setUint16(22,p,!0),A.setUint32(24,g,!0),A.setUint32(28,g*E,!0),A.setUint16(32,E,!0),A.setUint16(34,16,!0),this._writeString(A,36,"data"),A.setUint32(40,y,!0),this._floatTo16BitPCM(A,d,44)}},{key:"_floatTo16BitPCM",value:function(d,p,g){for(var E=0;E<p.length;E++,g+=2){var y=Math.max(-1,Math.min(1,p[E]));d.setInt16(g,y<0?32768*y:32767*y,!0)}return d}},{key:"_writeString",value:function(d,p,g){for(var E=0;E<g.length;E++)d.setUint8(p+E,g.charCodeAt(E))}},{key:"_interleave",value:function(d){if(d.numberOfChannels===1)return d.getChannelData(0);for(var p=[],g=0;g<d.numberOfChannels;g++)p.push(d.getChannelData(g));for(var E=p.reduce(function(A,C){return A+C.length},0),y=new Float32Array(E),S=0,b=0;S<E;)p.forEach(function(A){y[S++]=A[b]}),b++;return y}},{key:"_renderAudioElement",value:function(d){var p=document.createElement("audio");return p.controls=!0,p.src=this._renderURL(d),p}},{key:"_renderURL",value:function(d){return(window.URL||window.webkitURL).createObjectURL(d)}}],u&&l(m.prototype,u),Object.defineProperty(m,"prototype",{writable:!1}),f}();return a})())})(crunker);var crunkerExports=crunker.exports;const Crunker=getDefaultExportFromCjs(crunkerExports);function useMetronome(e,t){const r=ref(100);watch(r,()=>{o(r.value/100)});const a=ref("pause"),n=ref(90),{start:s,stop:i,changeVolume:o}=useHandleAudio([tickWav,tockWav]);onUnmounted(()=>{c()});async function l(){await s(f.value,{volume:r.value/100,playbackRate:n.value/60})&&(a.value="play")}function c(){i(),a.value="pause"}const f=computed(()=>t.value==="1"?e.value.split("-"):t.value.split("-"));return{volumeNum:r,playState:a,speedNum:n,startPlay:l,pausePlay:c}}function useHandleAudio(e){const t=new Crunker;async function r(c,f,m){try{const u=await t.fetchAudio(...c),d=u[0],p=u[1];let g;return f.map((E,y)=>{const S=Number(E);let b=y===0&&S!==0?d:p;(1/m-b.duration*f.length<=0||(S||1)/m-b.duration<=0)&&(b=t.sliceAudio(b,0,b.duration/m,0,.12)),g?g=t.concatAudio([g,b]):g=b,g=t.padAudio(g,g.duration-.01,(S||1)/m-b.duration)}),g}catch(u){console.log(u);return}}const a=t.context;let n,s;async function i(c,f){const m=await r(e,c,f.playbackRate);return m?(n=a.createBufferSource(),n.buffer=m,s=a.createGain(),n.connect(s),s.connect(a.destination),s.gain.value=f.volume,n.loop=!0,n.start(),!0):!1}function o(){n==null||n.stop(),n=null,s=null}function l(c){s&&(s.gain.value=c)}return{start:i,stop:o,changeVolume:l}}const localStorageName="metronomePos";function getCachePos(e){const t=localStorage.getItem(localStorageName);if(t)try{return JSON.parse(t)[e+localStorageName]}catch(r){return null}return null}function setCachePos(e,t){const r=localStorage.getItem(localStorageName);let a={};if(r)try{a=JSON.parse(r)}catch(n){}a[e+localStorageName]=t,localStorage.setItem(localStorageName,JSON.stringify(a))}const _withScopeId$1=e=>(pushScopeId("data-v-02b0b46f"),e=e(),popScopeId(),e),_hoisted_1$2={class:"Metronome"},_hoisted_2$1={class:"MetronomeBox"},_hoisted_3$1={class:"headTools"},_hoisted_4$1={class:"beatWrap"},_hoisted_5$1=_withScopeId$1(()=>createBaseVNode("div",{class:"round"},null,-1)),_hoisted_6={class:"beatCon"},_hoisted_7={class:"optMid"},_hoisted_8=_withScopeId$1(()=>createBaseVNode("img",{class:"optImg",src:_imports_3},null,-1)),_hoisted_9={class:"selectCon"},_hoisted_10={class:"sliderList"},_hoisted_11=_withScopeId$1(()=>createBaseVNode("img",{src:_imports_5,alt:""},null,-1)),_hoisted_12=_withScopeId$1(()=>createBaseVNode("img",{class:"thumbDot",src:_imports_6,alt:""},null,-1)),_hoisted_13={class:"sliderText"},_hoisted_14=_withScopeId$1(()=>createBaseVNode("span",null,"播放",-1)),_hoisted_15=_withScopeId$1(()=>createBaseVNode("img",{src:_imports_7},null,-1)),_hoisted_16=[_hoisted_14,_hoisted_15],_hoisted_17=_withScopeId$1(()=>createBaseVNode("span",null,"暂停",-1)),_hoisted_18=_withScopeId$1(()=>createBaseVNode("img",{class:"pauseImg",src:_imports_8},null,-1)),_hoisted_19=[_hoisted_17,_hoisted_18],_sfc_main$2=defineComponent({__name:"Metronome",emits:["windowMet","closeMet","playStateChange"],setup(e,{expose:t,emit:r}){const a=useUserStore(),n=r,s=ref(),i=ref(),o=ref("1"),l=[{label:"",labelHide:"0",value:"0",class:"beatValOptItem"},{label:"",labelHide:"1",value:"1",class:"beatValOptItem"},{label:"",labelHide:"2",value:"1-1",class:"beatValOptItem"},{label:"",labelHide:"3",value:"1-1-1",class:"beatValOptItem"},{label:"",labelHide:"4",value:"1-1-1-1",class:"beatValOptItem"},{label:"",labelHide:"5",value:"1-1-1-1-1",class:"beatValOptItem"},{label:"",labelHide:"6",value:"1-1-1-1-1-1",class:"beatValOptItem"},{label:"",labelHide:"7",value:"1-1-1-1-1-1-1",class:"beatValOptItem"},{label:"",labelHide:"8",value:"1-1-1-1-1-1-1-1",class:"beatValOptItem"},{label:"",labelHide:"9",value:"1-1-1-1-1-1-1-1-1",class:"beatValOptItem"}],c=ref("1"),f=[{label:"",labelHide:"1",value:"1",class:"beatSymbolOptItem"},{label:"",labelHide:"2",value:"0.5-0.5",class:"beatSymbolOptItem"},{label:"",labelHide:"3",value:"0.3333333-0.3333333-0.3333333",class:"beatSymbolOptItem"},{label:"",labelHide:"4",value:"0.25-0.25-0.25-0.25",class:"beatSymbolOptItem"},{label:"",labelHide:"5",value:"0.6666666-0.3333333",class:"beatSymbolOptItem"},{label:"",labelHide:"6",value:"0.75-0.25",class:"beatSymbolOptItem"},{label:"",labelHide:"7",value:"0.5-0.25-0.25",class:"beatSymbolOptItem"}],{volumeNum:m,playState:u,speedNum:d,startPlay:p,pausePlay:g}=useMetronome(o,c);onMounted(()=>{const V=getCachePos(a.info.id);V&&(o.value=V.beatVal,c.value=V.beatSymbol,m.value=V.volumeNum,d.value=V.speedNum);const B=document.querySelector(".Metronome .MetronomeBox .optMid .n-input__input-el");B==null||B.setAttribute("maxlength","3"),N(E(d.value))}),onUnmounted(()=>{setCachePos(a.info.id,{beatVal:o.value,beatSymbol:c.value,volumeNum:m.value,speedNum:d.value})}),watch(u,()=>{n("playStateChange",u.value)}),watch(d,()=>{u.value==="play"&&g(),N(E(d.value))}),watch([o,c],()=>{u.value==="play"&&g()});function E(V){return(V-50)/150*100}function y(V){return Math.round(V*150/100+50)}const S=V=>{const B=s.value.getBoundingClientRect(),O=B.left+B.width/2,_=B.top+B.height/2,G=D(V)?V.touches[0]:V,H=(Math.atan2(G.clientY-_,G.clientX-O)*(180/Math.PI)+180)/360,I=Math.round(H*100)-25;d.value=y(I<0?100+I:I)};function b(){function V(){document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",V)}document.addEventListener("mousemove",C),document.addEventListener("mouseup",V)}function A(){function V(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",V)}document.addEventListener("touchmove",P),document.addEventListener("touchend",V)}function C(V){S(V)}function P(V){S(V)}function N(V){const O=["#51DBFF","#009FFF"],_=s.value,G=_.getContext("2d");G.clearRect(0,0,_.width,_.height);const $=_.width/2,H=_.height/2,I=Math.PI*2/100,F=-Math.PI/2+V*I,x=121+Math.cos(F)*121,T=121+Math.sin(F)*121;i.value.style.left=x-7+"Px",i.value.style.top=T-7+"Px";const R={x1:0,y1:0,x2:121*2,y2:0};R.y2=121*2;const k=G.createLinearGradient(R.x1,R.y1,R.x2,R.y2);O.map((Y,Z)=>{k.addColorStop(Z,Y)}),G.strokeStyle=k,G.lineWidth=10,G.save(),G.beginPath(),G.arc($,H,121,-Math.PI/2,-Math.PI/2+V*I,!1),G.stroke(),G.closePath(),G.restore()}function D(V){return window.TouchEvent&&V instanceof window.TouchEvent}return t({startPlay:p,pausePlay:g,speedNum:d,beatSymbol:c}),(V,B)=>(openBlock(),createElementBlock("div",_hoisted_1$2,[createBaseVNode("div",_hoisted_2$1,[createBaseVNode("div",_hoisted_3$1,[createBaseVNode("img",{src:_imports_0,onClick:B[0]||(B[0]=()=>{n("windowMet")})}),createBaseVNode("img",{src:_imports_1,onClick:B[1]||(B[1]=()=>{n("closeMet")})})]),createBaseVNode("div",_hoisted_4$1,[createBaseVNode("div",{class:"dot",ref_key:"dotDom",ref:i,onMousedown:b,onTouchstart:A},null,544),_hoisted_5$1,createBaseVNode("canvas",{ref_key:"mycanvasDom",ref:s,class:"mycanvas",width:"252",height:"252",onClick:S},null,512),createBaseVNode("div",_hoisted_6,[createBaseVNode("img",{class:"optImg",src:_imports_2,onClick:B[2]||(B[2]=()=>{unref(d)<200&&d.value++})}),createBaseVNode("div",_hoisted_7,[_hoisted_8,createVNode(unref(NInputNumber),{disabled:!0,placeholder:"",value:unref(d),"show-button":!1,"onUpdate:value":B[3]||(B[3]=O=>{O&&(O<=50?d.value=50:O>=200?d.value=200:d.value=O)})},null,8,["value"])]),createBaseVNode("img",{class:"optImg",src:_imports_4,onClick:B[4]||(B[4]=()=>{unref(d)>50&&d.value--})})])]),createBaseVNode("div",_hoisted_9,[createVNode(unref(NSelect),{value:o.value,"onUpdate:value":B[5]||(B[5]=O=>o.value=O),options:l,"show-checkmark":!1,"show-arrow":!1,placement:"top","render-tag":({option:O})=>h$1("div",{class:"beatName"},[h$1("div",O.labelHide),h$1("div","拍")]),"render-label":O=>h$1("div",O.labelHide)},null,8,["value","render-tag","render-label"]),createVNode(unref(NSelect),{class:"beatSymbolSel",value:c.value,"onUpdate:value":B[6]||(B[6]=O=>c.value=O),options:f,"show-checkmark":!1,"show-arrow":!1,placement:"top","render-tag":({option:O})=>h$1("div",{class:"beatSymbolImg".concat(O.labelHide," beatSymbolImg")}),"render-label":O=>h$1("div",{class:"beatSymbolImg".concat(O.labelHide," beatSymbolImg")})},null,8,["value","render-tag","render-label"])]),createBaseVNode("div",_hoisted_10,[_hoisted_11,createVNode(unref(NSlider),{value:unref(m),"onUpdate:value":B[7]||(B[7]=O=>isRef(m)?m.value=O:null),step:1,tooltip:!1},{thumb:withCtx(()=>[_hoisted_12]),_:1},8,["value"]),createBaseVNode("span",_hoisted_13,toDisplayString(unref(m)),1)]),unref(u)==="pause"?(openBlock(),createElementBlock("div",{key:0,class:"playBtn",onClick:B[8]||(B[8]=(...O)=>unref(p)&&unref(p)(...O))},_hoisted_16)):(openBlock(),createElementBlock("div",{key:1,class:"playBtn",onClick:B[9]||(B[9]=(...O)=>unref(g)&&unref(g)(...O))},_hoisted_19))]),createVNode(unref(Dragbom))]))}}),Metronome_vue_vue_type_style_index_0_scoped_02b0b46f_lang="",Metronome_vue_vue_type_style_index_1_lang="",Metronome=_export_sfc$1(_sfc_main$2,[["__scopeId","data-v-02b0b46f"]]),_withScopeId=e=>(pushScopeId("data-v-14c0066b"),e=e(),popScopeId(),e),_hoisted_1$1={key:0,class:"metronomeMinConMask"},_hoisted_2={class:"topMetronomeMin"},_hoisted_3=_withScopeId(()=>createBaseVNode("img",{class:"bai",src:_imports_1$1},null,-1)),_hoisted_4={class:"bomMetronomeMin"},_hoisted_5=_withScopeId(()=>createBaseVNode("div",{class:"topDragDom"},null,-1)),metronomeMinConBoxClass="metronomeMinConBoxClass_drag",_sfc_main$1=defineComponent({__name:"MetronomeBox",props:{modelValue:{type:Boolean},dragClass:{},dragStyle:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,a=t,n=ref(!0),s=ref(),i=ref(!1),o=computed({get(){return r.modelValue},set(N){a("update:modelValue",N)}});watch(o,()=>{o.value&&(i.value=!1)});const l=ref("pause");function c(N){N==="play"&&(u.value=parseFloat((60/s.value.speedNum).toFixed(4)),f.value=s.value.beatSymbol),l.value=N}const f=ref("1"),m={1:"1","0.5-0.5":"2","0.3333333-0.3333333-0.3333333":"3","0.25-0.25-0.25-0.25":"4","0.6666666-0.3333333":"5","0.75-0.25":"6","0.5-0.25-0.25":"7"},u=ref(60/90);onMounted(()=>{document.addEventListener("visibilitychange",d)}),onUnmounted(()=>{document.removeEventListener("visibilitychange",d)});function d(){var N;document.visibilityState==="hidden"&&((N=s.value)==null||N.pausePlay())}function p(){o.value=!1,i.value=!1,l.value="pause"}function g(){i.value=!0,nextTick(()=>{A(),o.value=!1})}function E(){o.value=!0}const y=useUserStore(),S=useDrag(["".concat(metronomeMinConBoxClass)],metronomeMinConBoxClass,i,y.info.id),b=ref("initial");function A(){const D=document.querySelector(".".concat(r.dragClass)).getBoundingClientRect(),V=S.pos.value.left===-1?12:S.pos.value.left,B=S.pos.value.top===-1?document.body.clientHeight-81-10:S.pos.value.top,O=D.left,_=D.top;b.value="".concat(V-O,"Px ").concat(B-_,"Px")}const C=ref(!1);function P(){C.value=!0,document.addEventListener("mouseup",N);function N(){C.value=!1,document.removeEventListener("mouseup",N)}}return(N,D)=>(openBlock(),createElementBlock(Fragment,null,[C.value?(openBlock(),createElementBlock("div",_hoisted_1$1)):createCommentVNode("",!0),o.value||i.value?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["metronomeMinCon",[metronomeMinConBoxClass,o.value&&"metronomeMinConHide"]]),style:normalizeStyle(unref(S).styleDrag.value),onMousedown:P},[createBaseVNode("div",_hoisted_2,[createBaseVNode("img",{class:normalizeClass(["zhen",[l.value==="play"&&"playWagAnimation"+m[f.value]]]),style:normalizeStyle({"--rotateWagTime":u.value+"s"}),src:_imports_0$1},null,6),_hoisted_3]),createBaseVNode("div",_hoisted_4,[createBaseVNode("img",{class:"setting",onClick:E,src:_imports_2$1}),l.value==="pause"?(openBlock(),createElementBlock("img",{key:0,class:"play",onClick:D[0]||(D[0]=()=>{var V;(V=s.value)==null||V.startPlay()}),src:_imports_3$1})):(openBlock(),createElementBlock("img",{key:1,class:"pause",onClick:D[1]||(D[1]=()=>{var V;(V=s.value)==null||V.pausePlay()}),src:_imports_4$1})),createBaseVNode("img",{class:"close",onClick:p,src:_imports_5$1})])],38)):createCommentVNode("",!0),createVNode(unref(NModal),{style:normalizeStyle({...N.dragStyle,"--transformOrigin":b.value}),class:normalizeClass(["metronomeNModal",[N.dragClass,i.value?"transformOrigin":""]]),show:o.value,"onUpdate:show":D[2]||(D[2]=V=>o.value=V),"display-directive":"show",onMaskClick:p,onEsc:p,onAfterEnter:D[3]||(D[3]=()=>{n.value=!0}),onAfterLeave:D[4]||(D[4]=()=>{n.value=!1})},{default:withCtx(()=>[createBaseVNode("div",null,[_hoisted_5,i.value||o.value||n.value?(openBlock(),createBlock(Metronome,{key:0,ref_key:"metronomeDom",ref:s,onCloseMet:p,onWindowMet:g,onPlayStateChange:c},null,512)):createCommentVNode("",!0)])]),_:1},8,["style","show","class"])],64))}}),MetronomeBox_vue_vue_type_style_index_0_scoped_14c0066b_lang="",MetronomeBox=_export_sfc$1(_sfc_main$1,[["__scopeId","data-v-14c0066b"]]),downMove="_downMove_137wx_1",downMoveBg="_downMoveBg_137wx_9",dingPng="_dingPng_137wx_16",closeAble="_closeAble_137wx_25",submitAppBtn="_submitAppBtn_137wx_53",styles$l={downMove,downMoveBg,dingPng,closeAble,submitAppBtn},PlaceholderTone=defineComponent({props:["item","message"],emits:["close"],name:"placeholderTone",setup(e,{emit:t}){return()=>createVNode(Fragment,null,[createVNode("div",{class:styles$l.downMove},[createVNode("img",{src:dingPng$1,class:styles$l.dingPng,alt:""},null),createVNode("img",{src:moveTop,class:styles$l.downMoveBg,alt:""},null),createVNode("h2",null,[createTextVNode("温馨提示")]),createVNode("p",null,[e.message||"调音器功能暂未开放,敬请期待!"]),createVNode(NSpace,{style:{padding:"25px 0 0 0"},justify:"center"},{default:()=>[createVNode(NButton,mergeProps({id:"submitBtn"},{class:styles$l.submitAppBtn,round:!0,type:"primary",onClick:()=>{t("close")}}),{default:()=>[createTextVNode("我知道了")]})]})])])}}),playContent="_playContent_yhnf8_1",assignHomeworkClose="_assignHomeworkClose_yhnf8_10",coursewarePlay="_coursewarePlay_yhnf8_23",playModel="_playModel_yhnf8_29",headerContainer="_headerContainer_yhnf8_38",backBtn="_backBtn_yhnf8_58",headRight="_headRight_yhnf8_70",rightBtn="_rightBtn_yhnf8_79",menu$1="_menu_yhnf8_91",tabsContent="_tabsContent_yhnf8_102",wraps="_wraps_yhnf8_113",itemDiv="_itemDiv_yhnf8_119",itemActive="_itemActive_yhnf8_132",acitveAnimation="_acitveAnimation_yhnf8_135",show="_show_yhnf8_138",hide$2="_hide_yhnf8_141",rightFixedBtns="_rightFixedBtns_yhnf8_154",fullBtn="_fullBtn_yhnf8_161",point="_point_yhnf8_166",iconUp="_iconUp_yhnf8_176",iconDown="_iconDown_yhnf8_177",btnsDisabled="_btnsDisabled_yhnf8_180",loadWrap="_loadWrap_yhnf8_210",drawerContainer="_drawerContainer_yhnf8_221",sectionAnimate$2="_sectionAnimate_yhnf8_236",sectionAnimateUp="_sectionAnimateUp_yhnf8_242",switchDisplaySection="_switchDisplaySection_yhnf8_248",switchSpace="_switchSpace_yhnf8_262",btnItem$1="_btnItem_yhnf8_265",attendClassModal="_attendClassModal_yhnf8_287",modelAttendContent="_modelAttendContent_yhnf8_311",modelAttendBtnGroup="_modelAttendBtnGroup_yhnf8_317",trainClassModal="_trainClassModal_yhnf8_325",workContainer="_workContainer_yhnf8_331",toolboxImg="_toolboxImg_yhnf8_335",isDragIng="_isDragIng_yhnf8_344",toolClassImg="_toolClassImg_yhnf8_348",booxToolWrap="_booxToolWrap_yhnf8_363",booxToolItem="_booxToolItem_yhnf8_374",setTimeImage="_setTimeImage_yhnf8_391",beatImage="_beatImage_yhnf8_397",changePwdModal="_changePwdModal_yhnf8_403",imChatModal="_imChatModal_yhnf8_406",modeWrap="_modeWrap_yhnf8_409",showModalTone="_showModalTone_yhnf8_414",studentRemove$2="_studentRemove_yhnf8_417",removeVisiable$2="_removeVisiable_yhnf8_429",btnGroupModal$2="_btnGroupModal_yhnf8_455",iframePpt="_iframePpt_yhnf8_462",pptBox="_pptBox_yhnf8_467",rightColumn="_rightColumn_yhnf8_476",leftColumn="_leftColumn_yhnf8_477",columnItemBox="_columnItemBox_yhnf8_490",columnItem="_columnItem_yhnf8_490",active$1="_active_yhnf8_509",itemDisabled="_itemDisabled_yhnf8_523",rightColumnHide="_rightColumnHide_yhnf8_569",leftColumnHide="_leftColumnHide_yhnf8_572",rightHideIcon="_rightHideIcon_yhnf8_575",leftHideIcon="_leftHideIcon_yhnf8_576",rightIconShow="_rightIconShow_yhnf8_604",rightIn="_rightIn_yhnf8_1",leftIconShow="_leftIconShow_yhnf8_608",leftIn="_leftIn_yhnf8_1",instrumentContainer="_instrumentContainer_yhnf8_628",selectMusicModal$1="_selectMusicModal_yhnf8_647",selectClassModal="_selectClassModal_yhnf8_660",workVisiable="_workVisiable_yhnf8_663",timerMeterClose$1="_timerMeterClose_yhnf8_689",workTrain="_workTrain_yhnf8_701",resourceMain="_resourceMain_yhnf8_714",styles$k={playContent,assignHomeworkClose,coursewarePlay,playModel,headerContainer,backBtn,headRight,rightBtn,menu:menu$1,tabsContent,wraps,itemDiv,itemActive,acitveAnimation,show,hide:hide$2,rightFixedBtns,fullBtn,point,iconUp,iconDown,btnsDisabled,loadWrap,drawerContainer,sectionAnimate:sectionAnimate$2,sectionAnimateUp,switchDisplaySection,switchSpace,btnItem:btnItem$1,attendClassModal,modelAttendContent,modelAttendBtnGroup,trainClassModal,workContainer,toolboxImg,isDragIng,toolClassImg,booxToolWrap,booxToolItem,setTimeImage,beatImage,changePwdModal,imChatModal,modeWrap,showModalTone,studentRemove:studentRemove$2,removeVisiable:removeVisiable$2,btnGroupModal:btnGroupModal$2,iframePpt,pptBox,rightColumn,leftColumn,columnItemBox,columnItem,active:active$1,itemDisabled,rightColumnHide,leftColumnHide,rightHideIcon,leftHideIcon,rightIconShow,rightIn,leftIconShow,leftIn,instrumentContainer,selectMusicModal:selectMusicModal$1,selectClassModal,workVisiable,timerMeterClose:timerMeterClose$1,workTrain,resourceMain},plyr="",musicScore$1="_musicScore_6u588_1",container="_container_6u588_7",musicModel="_musicModel_6u588_15",errorModel="_errorModel_6u588_22",startBtn="_startBtn_6u588_34",loading="_loading_6u588_44",skeletonWrap="_skeletonWrap_6u588_50",skeleton="_skeleton_6u588_50",styles$j={musicScore:musicScore$1,container,musicModel,errorModel,startBtn,loading,skeletonWrap,skeleton};var inBrowser=typeof window<"u",visibility;function usePageVisibility(){if(!visibility&&(visibility=ref("visible"),inBrowser)){const e=()=>{visibility.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return visibility}const MusicScore=defineComponent({name:"musicScore",props:{music:{type:Object,default:()=>({})},activeModel:{type:Boolean},activeStatus:{type:Boolean},imagePos:{type:String,default:"left"}},emits:["setIframe"],setup(e,{emit:t}){const r=useUserStore(),a=ref(!1),n=usePageVisibility();watch(n,m=>{console.log("🚀 ~ value:",m),m=="hidden"&&(a.value=!1)});const s=ref(),i=ref(!1),o=ref(!1),l=ref(!1),c="".concat(vaildMusicScoreUrl(),"/instrument/?v=").concat(+new Date,"&showGuide=true&platform=pc&zoom=1.2&modelType=practise&id=").concat(e.music.content,"&Authorization=").concat(r.getToken,"&imagePos=").concat(e.imagePos),f=()=>{fetch(c).then(()=>{l.value=!0,o.value=!1}).catch(()=>{o.value=!0})};return watch(()=>e.music,()=>{l.value||(o.value=!1,e.music.display&&f())}),watch(()=>e.activeModel,()=>{s.value.contentWindow&&e.activeStatus&&s.value.contentWindow.postMessage({api:"attendClassBarStatus",hideMenu:!e.activeModel},"*")}),()=>createVNode("div",{class:styles$j.musicScore},[createVNode("iframe",{ref:s,onLoad:m=>{t("setIframe",s.value),i.value=!0,iframeDislableKeyboard(m.target)},class:[styles$j.container,"musicIframe"],frameborder:"0",src:c},null),i.value&&createVNode("div",{class:styles$j.skeletonWrap},[createVNode("div",null,[createVNode(NSkeleton,{text:!0,repeat:8},null)])])])}});var lottie={exports:{}};(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,a=e.length,n;for(r=0;r<a;r+=1){n=e[r].prototype;for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t.prototype[s]=n[s])}}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,a=this.audios.length;for(r=0;r<a;r+=1)this.audios[r].pause()},resume:function(){var r,a=this.audios.length;for(r=0;r<a;r+=1)this.audios[r].resume()},setRate:function(r){var a,n=this.audios.length;for(a=0;a<n;a+=1)this.audios[a].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,a=this.audios.length;for(r=0;r<a;r+=1)this.audios[r].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(r,a){var n=0,s=[],i;switch(r){case"int16":case"uint8c":i=1;break;default:i=1.1;break}for(n=0;n<a;n+=1)s.push(i);return s}function t(r,a){return r==="float32"?new Float32Array(a):r==="int16"?new Int16Array(a):r==="uint8c"?new Uint8ClampedArray(a):e(r,a)}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),a,n=e.length;for(a=0;a<n;a+=1)r[a]=Math.abs(e[a]);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,a){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=a<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,a){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=a<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 a,n,s,i,o,l,c,f;switch(i=Math.floor(e*6),o=e*6-i,l=r*(1-t),c=r*(1-o*t),f=r*(1-(1-o)*t),i%6){case 0:a=r,n=f,s=l;break;case 1:a=c,n=r,s=l;break;case 2:a=l,n=r,s=f;break;case 3:a=l,n=c,s=r;break;case 4:a=f,n=l,s=r;break;case 5:a=r,n=l,s=c;break}return[a,n,s]}function RGBtoHSV(e,t,r){var a=Math.max(e,t,r),n=Math.min(e,t,r),s=a-n,i,o=a===0?0:s/a,l=a/255;switch(a){case n:i=0;break;case e:i=t-r+s*(t<r?6:0),i/=6*s;break;case t:i=r-e+s*2,i/=6*s;break;case r:i=e-t+s*4,i/=6*s;break}return[i,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(a,n,s){return a<0&&(a=0),n<0&&(n=0),s<0&&(s=0),"#"+e[a]+e[n]+e[s]}}(),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,a,n={onmessage:function(){},postMessage:function(d){r({data:d})}},s={postMessage:function(d){n.onmessage({data:d})}};function i(u){if(window.Worker&&window.Blob&&getWebWorker()){var d=new Blob(["var _workerSelf = self; self.onmessage = ",u.toString()],{type:"text/javascript"}),p=URL.createObjectURL(d);return new Worker(p)}return r=u,n}function o(){a||(a=i(function(d){function p(){function E(H,I){var F,x,T=H.length,R,k,Y,Z;for(x=0;x<T;x+=1)if(F=H[x],"ks"in F&&!F.completed){if(F.completed=!0,F.hasMask){var q=F.masksProperties;for(k=q.length,R=0;R<k;R+=1)if(q[R].pt.k.i)C(q[R].pt.k);else for(Z=q[R].pt.k.length,Y=0;Y<Z;Y+=1)q[R].pt.k[Y].s&&C(q[R].pt.k[Y].s[0]),q[R].pt.k[Y].e&&C(q[R].pt.k[Y].e[0])}F.ty===0?(F.layers=b(F.refId,I),E(F.layers,I)):F.ty===4?A(F.shapes):F.ty===5&&G(F)}}function y(H,I){if(H){var F=0,x=H.length;for(F=0;F<x;F+=1)H[F].t===1&&(H[F].data.layers=b(H[F].data.refId,I),E(H[F].data.layers,I))}}function S(H,I){for(var F=0,x=I.length;F<x;){if(I[F].id===H)return I[F];F+=1}return null}function b(H,I){var F=S(H,I);return F?F.layers.__used?JSON.parse(JSON.stringify(F.layers)):(F.layers.__used=!0,F.layers):null}function A(H){var I,F=H.length,x,T;for(I=F-1;I>=0;I-=1)if(H[I].ty==="sh")if(H[I].ks.k.i)C(H[I].ks.k);else for(T=H[I].ks.k.length,x=0;x<T;x+=1)H[I].ks.k[x].s&&C(H[I].ks.k[x].s[0]),H[I].ks.k[x].e&&C(H[I].ks.k[x].e[0]);else H[I].ty==="gr"&&A(H[I].it)}function C(H){var I,F=H.i.length;for(I=0;I<F;I+=1)H.i[I][0]+=H.v[I][0],H.i[I][1]+=H.v[I][1],H.o[I][0]+=H.v[I][0],H.o[I][1]+=H.v[I][1]}function P(H,I){var F=I?I.split("."):[100,100,100];return H[0]>F[0]?!0:F[0]>H[0]?!1:H[1]>F[1]?!0:F[1]>H[1]?!1:H[2]>F[2]?!0:F[2]>H[2]?!1:null}var N=function(){var H=[4,4,14];function I(x){var T=x.t.d;x.t.d={k:[{s:T,t:0}]}}function F(x){var T,R=x.length;for(T=0;T<R;T+=1)x[T].ty===5&&I(x[T])}return function(x){if(P(H,x.v)&&(F(x.layers),x.assets)){var T,R=x.assets.length;for(T=0;T<R;T+=1)x.assets[T].layers&&F(x.assets[T].layers)}}}(),D=function(){var H=[4,7,99];return function(I){if(I.chars&&!P(H,I.v)){var F,x=I.chars.length;for(F=0;F<x;F+=1){var T=I.chars[F];T.data&&T.data.shapes&&(A(T.data.shapes),T.data.ip=0,T.data.op=99999,T.data.st=0,T.data.sr=1,T.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[F].t||(T.data.shapes.push({ty:"no"}),T.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 H=[5,7,15];function I(x){var T=x.t.p;typeof T.a=="number"&&(T.a={a:0,k:T.a}),typeof T.p=="number"&&(T.p={a:0,k:T.p}),typeof T.r=="number"&&(T.r={a:0,k:T.r})}function F(x){var T,R=x.length;for(T=0;T<R;T+=1)x[T].ty===5&&I(x[T])}return function(x){if(P(H,x.v)&&(F(x.layers),x.assets)){var T,R=x.assets.length;for(T=0;T<R;T+=1)x.assets[T].layers&&F(x.assets[T].layers)}}}(),B=function(){var H=[4,1,9];function I(x){var T,R=x.length,k,Y;for(T=0;T<R;T+=1)if(x[T].ty==="gr")I(x[T].it);else if(x[T].ty==="fl"||x[T].ty==="st")if(x[T].c.k&&x[T].c.k[0].i)for(Y=x[T].c.k.length,k=0;k<Y;k+=1)x[T].c.k[k].s&&(x[T].c.k[k].s[0]/=255,x[T].c.k[k].s[1]/=255,x[T].c.k[k].s[2]/=255,x[T].c.k[k].s[3]/=255),x[T].c.k[k].e&&(x[T].c.k[k].e[0]/=255,x[T].c.k[k].e[1]/=255,x[T].c.k[k].e[2]/=255,x[T].c.k[k].e[3]/=255);else x[T].c.k[0]/=255,x[T].c.k[1]/=255,x[T].c.k[2]/=255,x[T].c.k[3]/=255}function F(x){var T,R=x.length;for(T=0;T<R;T+=1)x[T].ty===4&&I(x[T].shapes)}return function(x){if(P(H,x.v)&&(F(x.layers),x.assets)){var T,R=x.assets.length;for(T=0;T<R;T+=1)x.assets[T].layers&&F(x.assets[T].layers)}}}(),O=function(){var H=[4,4,18];function I(x){var T,R=x.length,k,Y;for(T=R-1;T>=0;T-=1)if(x[T].ty==="sh")if(x[T].ks.k.i)x[T].ks.k.c=x[T].closed;else for(Y=x[T].ks.k.length,k=0;k<Y;k+=1)x[T].ks.k[k].s&&(x[T].ks.k[k].s[0].c=x[T].closed),x[T].ks.k[k].e&&(x[T].ks.k[k].e[0].c=x[T].closed);else x[T].ty==="gr"&&I(x[T].it)}function F(x){var T,R,k=x.length,Y,Z,q,se;for(R=0;R<k;R+=1){if(T=x[R],T.hasMask){var re=T.masksProperties;for(Z=re.length,Y=0;Y<Z;Y+=1)if(re[Y].pt.k.i)re[Y].pt.k.c=re[Y].cl;else for(se=re[Y].pt.k.length,q=0;q<se;q+=1)re[Y].pt.k[q].s&&(re[Y].pt.k[q].s[0].c=re[Y].cl),re[Y].pt.k[q].e&&(re[Y].pt.k[q].e[0].c=re[Y].cl)}T.ty===4&&I(T.shapes)}}return function(x){if(P(H,x.v)&&(F(x.layers),x.assets)){var T,R=x.assets.length;for(T=0;T<R;T+=1)x.assets[T].layers&&F(x.assets[T].layers)}}}();function _(H){H.__complete||(B(H),N(H),D(H),V(H),O(H),E(H.layers,H.assets),y(H.chars,H.assets),H.__complete=!0)}function G(H){H.t.a.length===0&&"m"in H.t.p}var $={};return $.completeData=_,$.checkColors=B,$.checkChars=D,$.checkPathProperties=V,$.checkShapes=O,$.completeLayers=E,$}if(s.dataManager||(s.dataManager=p()),s.assetLoader||(s.assetLoader=function(){function E(S){var b=S.getResponseHeader("content-type");return b&&S.responseType==="json"&&b.indexOf("json")!==-1||S.response&&_typeof$5(S.response)==="object"?S.response:S.response&&typeof S.response=="string"?JSON.parse(S.response):S.responseText?JSON.parse(S.responseText):null}function y(S,b,A,C){var P,N=new XMLHttpRequest;try{N.responseType="json"}catch(D){}N.onreadystatechange=function(){if(N.readyState===4)if(N.status===200)P=E(N),A(P);else try{P=E(N),A(P)}catch(D){C&&C(D)}};try{N.open(["G","E","T"].join(""),S,!0)}catch(D){N.open(["G","E","T"].join(""),b+"/"+S,!0)}N.send()}return{load:y}}()),d.data.type==="loadAnimation")s.assetLoader.load(d.data.path,d.data.fullPath,function(E){s.dataManager.completeData(E),s.postMessage({id:d.data.id,payload:E,status:"success"})},function(){s.postMessage({id:d.data.id,status:"error"})});else if(d.data.type==="complete"){var g=d.data.animation;s.dataManager.completeData(g),s.postMessage({id:d.data.id,payload:g,status:"success"})}else d.data.type==="loadData"&&s.assetLoader.load(d.data.path,d.data.fullPath,function(E){s.postMessage({id:d.data.id,payload:E,status:"success"})},function(){s.postMessage({id:d.data.id,status:"error"})})}),a.onmessage=function(u){var d=u.data,p=d.id,g=t[p];t[p]=null,d.status==="success"?g.onComplete(d.payload):g.onError&&g.onError()})}function l(u,d){e+=1;var p="processId_"+e;return t[p]={onComplete:u,onError:d},p}function c(u,d,p){o();var g=l(d,p);a.postMessage({type:"loadAnimation",path:u,fullPath:window.location.origin+window.location.pathname,id:g})}function f(u,d,p){o();var g=l(d,p);a.postMessage({type:"loadData",path:u,fullPath:window.location.origin+window.location.pathname,id:g})}function m(u,d,p){o();var g=l(d,p);a.postMessage({type:"complete",animation:u,id:g})}return{loadAnimation:c,loadData:f,completeAnimation:m}}(),ImagePreloader=function(){var e=function(){var y=createTag("canvas");y.width=1,y.height=1;var S=y.getContext("2d");return S.fillStyle="rgba(0,0,0,0)",S.fillRect(0,0,1,1),y}();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 a(y,S,b){var A="";if(y.e)A=y.p;else if(S){var C=y.p;C.indexOf("images/")!==-1&&(C=C.split("/")[1]),A=S+C}else A=b,A+=y.u?y.u:"",A+=y.p;return A}function n(y){var S=0,b=setInterval((function(){var A=y.getBBox();(A.width||S>500)&&(this._imageLoaded(),clearInterval(b)),S+=1}).bind(this),50)}function s(y){var S=a(y,this.assetsPath,this.path),b=createNS("image");isSafari?this.testImageLoaded(b):b.addEventListener("load",this._imageLoaded,!1),b.addEventListener("error",(function(){A.img=e,this._imageLoaded()}).bind(this),!1),b.setAttributeNS("http://www.w3.org/1999/xlink","href",S),this._elementHelper.append?this._elementHelper.append(b):this._elementHelper.appendChild(b);var A={img:b,assetData:y};return A}function i(y){var S=a(y,this.assetsPath,this.path),b=createTag("img");b.crossOrigin="anonymous",b.addEventListener("load",this._imageLoaded,!1),b.addEventListener("error",(function(){A.img=e,this._imageLoaded()}).bind(this),!1),b.src=S;var A={img:b,assetData:y};return A}function o(y){var S={assetData:y},b=a(y,this.assetsPath,this.path);return dataManager.loadData(b,(function(A){S.img=A,this._footageLoaded()}).bind(this),(function(){S.img={},this._footageLoaded()}).bind(this)),S}function l(y,S){this.imagesLoadedCb=S;var b,A=y.length;for(b=0;b<A;b+=1)y[b].layers||(!y[b].t||y[b].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(y[b]))):y[b].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(y[b]))))}function c(y){this.path=y||""}function f(y){this.assetsPath=y||""}function m(y){for(var S=0,b=this.images.length;S<b;){if(this.images[S].assetData===y)return this.images[S].img;S+=1}return null}function u(){this.imagesLoadedCb=null,this.images.length=0}function d(){return this.totalImages===this.loadedAssets}function p(){return this.totalFootages===this.loadedFootagesCount}function g(y,S){y==="svg"?(this._elementHelper=S,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function E(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=n.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 E.prototype={loadAssets:l,setAssetsPath:f,setPath:c,loadedImages:d,loadedFootages:p,destroy:u,getAsset:m,createImgData:i,createImageData:s,imageLoaded:t,footageLoaded:r,setCacheType:g},E}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,r){if(this._cbs[t])for(var a=this._cbs[t],n=0;n<a.length;n+=1)a[n](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 a=0,n=this._cbs[t].length;a<n;)this._cbs[t][a]===r&&(this._cbs[t].splice(a,1),a-=1,n-=1),a+=1;this._cbs[t].length||(this._cbs[t]=null)}}};var markerParser=function(){function e(t){for(var r=t.split("\r\n"),a={},n,s=0,i=0;i<r.length;i+=1)n=r[i].split(":"),n.length===2&&(a[n[0]]=n[1].trim(),s+=1);if(s===0)throw new Error;return a}return function(t){for(var r=[],a=0;a<t.length;a+=1){var n=t[a],s={time:n.tm,duration:n.dr};try{s.payload=JSON.parse(t[a].cm)}catch(i){try{s.payload=e(t[a].cm)}catch(o){s.payload={name:t[a].cm}}}r.push(s)}return r}}(),ProjectInterface=function(){function e(t){this.compositions.push(t)}return function(){function t(r){for(var a=0,n=this.compositions.length;a<n;){if(this.compositions[a].data&&this.compositions[a].data.nm===r)return this.compositions[a].prepareFrame&&this.compositions[a].data.xt&&this.compositions[a].prepareFrame(this.currentFrame),this.compositions[a].compInterface;a+=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),this.expressionsPlugin=getExpressionsPlugin()};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},a=e.attributes;r.path=a.getNamedItem("data-animation-path")?a.getNamedItem("data-animation-path").value:a.getNamedItem("data-bm-path")?a.getNamedItem("data-bm-path").value:a.getNamedItem("bm-path")?a.getNamedItem("bm-path").value:"",r.animType=a.getNamedItem("data-anim-type")?a.getNamedItem("data-anim-type").value:a.getNamedItem("data-bm-type")?a.getNamedItem("data-bm-type").value:a.getNamedItem("bm-type")?a.getNamedItem("bm-type").value:a.getNamedItem("data-bm-renderer")?a.getNamedItem("data-bm-renderer").value:a.getNamedItem("bm-renderer")?a.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var n=a.getNamedItem("data-anim-loop")?a.getNamedItem("data-anim-loop").value:a.getNamedItem("data-bm-loop")?a.getNamedItem("data-bm-loop").value:a.getNamedItem("bm-loop")?a.getNamedItem("bm-loop").value:"";n==="false"?r.loop=!1:n==="true"?r.loop=!0:n!==""&&(r.loop=parseInt(n,10));var s=a.getNamedItem("data-anim-autoplay")?a.getNamedItem("data-anim-autoplay").value:a.getNamedItem("data-bm-autoplay")?a.getNamedItem("data-bm-autoplay").value:a.getNamedItem("bm-autoplay")?a.getNamedItem("bm-autoplay").value:!0;r.autoplay=s!=="false",r.name=a.getNamedItem("data-name")?a.getNamedItem("data-name").value:a.getNamedItem("data-bm-name")?a.getNamedItem("data-bm-name").value:a.getNamedItem("bm-name")?a.getNamedItem("bm-name").value:"";var i=a.getNamedItem("data-anim-prerender")?a.getNamedItem("data-anim-prerender").value:a.getNamedItem("data-bm-prerender")?a.getNamedItem("data-bm-prerender").value:a.getNamedItem("bm-prerender")?a.getNamedItem("bm-prerender").value:"";i==="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,a=t.length,n=e.layers,s,i=n.length;for(s=0;s<i;s+=1)for(r=0;r<a;){if(t[r].id===n[s].id){t[r]=n[s];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(a=e.assets.length,r=0;r<a;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,a=typeof t=="number"?t:void 0;this.renderer.updateContainerSize(r,a)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var 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 a=Number(e);if(isNaN(a)){var n=this.getMarkerData(e);n&&this.goToAndStop(n.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 a=Number(e);if(isNaN(a)){var n=this.getMarkerData(e);n&&(n.duration?this.playSegments([n.time,n.time+n.duration],!0):this.goToAndStop(n.time,!0))}else this.goToAndStop(a,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,a=e.length;for(r=0;r<a;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.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,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 a=this.renderer.getElementByPath(e);a.updateDocumentData(t,r)}catch(n){}},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,a=0,n=0,s=!0,i=!1;function o(I){for(var F=0,x=I.target;F<a;)t[F].animation===x&&(t.splice(F,1),F-=1,a-=1,x.isPaused||m()),F+=1}function l(I,F){if(!I)return null;for(var x=0;x<a;){if(t[x].elem===I&&t[x].elem!==null)return t[x].animation;x+=1}var T=new AnimationItem;return u(T,I),T.setData(I,F),T}function c(){var I,F=t.length,x=[];for(I=0;I<F;I+=1)x.push(t[I].animation);return x}function f(){n+=1,B()}function m(){n-=1}function u(I,F){I.addEventListener("destroy",o),I.addEventListener("_active",f),I.addEventListener("_idle",m),t.push({elem:F,animation:I}),a+=1}function d(I){var F=new AnimationItem;return u(F,null),F.setParams(I),F}function p(I,F){var x;for(x=0;x<a;x+=1)t[x].animation.setSpeed(I,F)}function g(I,F){var x;for(x=0;x<a;x+=1)t[x].animation.setDirection(I,F)}function E(I){var F;for(F=0;F<a;F+=1)t[F].animation.play(I)}function y(I){var F=I-r,x;for(x=0;x<a;x+=1)t[x].animation.advanceTime(F);r=I,n&&!i?window.requestAnimationFrame(y):s=!0}function S(I){r=I,window.requestAnimationFrame(y)}function b(I){var F;for(F=0;F<a;F+=1)t[F].animation.pause(I)}function A(I,F,x){var T;for(T=0;T<a;T+=1)t[T].animation.goToAndStop(I,F,x)}function C(I){var F;for(F=0;F<a;F+=1)t[F].animation.stop(I)}function P(I){var F;for(F=0;F<a;F+=1)t[F].animation.togglePause(I)}function N(I){var F;for(F=a-1;F>=0;F-=1)t[F].animation.destroy(I)}function D(I,F,x){var T=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),R,k=T.length;for(R=0;R<k;R+=1)x&&T[R].setAttribute("data-bm-type",x),l(T[R],I);if(F&&k===0){x||(x="svg");var Y=document.getElementsByTagName("body")[0];Y.innerText="";var Z=createTag("div");Z.style.width="100%",Z.style.height="100%",Z.setAttribute("data-bm-type",x),Y.appendChild(Z),l(Z,I)}}function V(){var I;for(I=0;I<a;I+=1)t[I].animation.resize()}function B(){!i&&n&&s&&(window.requestAnimationFrame(S),s=!1)}function O(){i=!0}function _(){i=!1,B()}function G(I,F){var x;for(x=0;x<a;x+=1)t[x].animation.setVolume(I,F)}function $(I){var F;for(F=0;F<a;F+=1)t[F].animation.mute(I)}function H(I){var F;for(F=0;F<a;F+=1)t[F].animation.unmute(I)}return e.registerAnimation=l,e.loadAnimation=d,e.setSpeed=p,e.setDirection=g,e.play=E,e.pause=b,e.stop=C,e.togglePause=P,e.searchAnimations=D,e.resize=V,e.goToAndStop=A,e.destroy=N,e.freeze=O,e.unfreeze=_,e.setVolume=G,e.mute=$,e.unmute=H,e.getRegisteredAnimations=c,e}(),BezierFactory=function(){var e={};e.getBezierEasing=r;var t={};function r(S,b,A,C,P){var N=P||("bez_"+S+"_"+b+"_"+A+"_"+C).replace(/\./g,"p");if(t[N])return t[N];var D=new y([S,b,A,C]);return t[N]=D,D}var a=4,n=.001,s=1e-7,i=10,o=11,l=1/(o-1),c=typeof Float32Array=="function";function f(S,b){return 1-3*b+3*S}function m(S,b){return 3*b-6*S}function u(S){return 3*S}function d(S,b,A){return((f(b,A)*S+m(b,A))*S+u(b))*S}function p(S,b,A){return 3*f(b,A)*S*S+2*m(b,A)*S+u(b)}function g(S,b,A,C,P){var N,D,V=0;do D=b+(A-b)/2,N=d(D,C,P)-S,N>0?A=D:b=D;while(Math.abs(N)>s&&++V<i);return D}function E(S,b,A,C){for(var P=0;P<a;++P){var N=p(b,A,C);if(N===0)return b;var D=d(b,A,C)-S;b-=D/N}return b}function y(S){this._p=S,this._mSampleValues=c?new Float32Array(o):new Array(o),this._precomputed=!1,this.get=this.get.bind(this)}return y.prototype={get:function(b){var A=this._p[0],C=this._p[1],P=this._p[2],N=this._p[3];return this._precomputed||this._precompute(),A===C&&P===N?b:b===0?0:b===1?1:d(this._getTForX(b),C,N)},_precompute:function(){var b=this._p[0],A=this._p[1],C=this._p[2],P=this._p[3];this._precomputed=!0,(b!==A||C!==P)&&this._calcSampleValues()},_calcSampleValues:function(){for(var b=this._p[0],A=this._p[2],C=0;C<o;++C)this._mSampleValues[C]=d(C*l,b,A)},_getTForX:function(b){for(var A=this._p[0],C=this._p[2],P=this._mSampleValues,N=0,D=1,V=o-1;D!==V&&P[D]<=b;++D)N+=l;--D;var B=(b-P[D])/(P[D+1]-P[D]),O=N+B*l,_=p(O,A,C);return _>=n?E(b,O,A,C):_===0?O:g(b,N,N+l,A,C)}},e}(),pooling=function(){function e(t){return t.concat(createSizedArray(t.length))}return{double:e}}(),poolFactory=function(){return function(e,t,r){var a=0,n=e,s=createSizedArray(n),i={newElement:o,release:l};function o(){var c;return a?(a-=1,c=s[a]):c=t(),c}function l(c){a===n&&(s=pooling.double(s),n*=2),r&&r(c),s[a]=c,a+=1}return i}}(),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 a,n=r.lengths.length;for(a=0;a<n;a+=1)bezierLengthPool.release(r.lengths[a]);r.lengths.length=0}return poolFactory(8,e,t)}();function bezFunction(){var e=Math;function t(u,d,p,g,E,y){var S=u*g+d*E+p*y-E*g-y*u-p*d;return S>-.001&&S<.001}function r(u,d,p,g,E,y,S,b,A){if(p===0&&y===0&&A===0)return t(u,d,g,E,S,b);var C=e.sqrt(e.pow(g-u,2)+e.pow(E-d,2)+e.pow(y-p,2)),P=e.sqrt(e.pow(S-u,2)+e.pow(b-d,2)+e.pow(A-p,2)),N=e.sqrt(e.pow(S-g,2)+e.pow(b-E,2)+e.pow(A-y,2)),D;return C>P?C>N?D=C-P-N:D=N-P-C:N>P?D=N-P-C:D=P-C-N,D>-1e-4&&D<1e-4}var a=function(){return function(u,d,p,g){var E=getDefaultCurveSegments(),y,S,b,A,C,P=0,N,D=[],V=[],B=bezierLengthPool.newElement();for(b=p.length,y=0;y<E;y+=1){for(C=y/(E-1),N=0,S=0;S<b;S+=1)A=bmPow(1-C,3)*u[S]+3*bmPow(1-C,2)*C*p[S]+3*(1-C)*bmPow(C,2)*g[S]+bmPow(C,3)*d[S],D[S]=A,V[S]!==null&&(N+=bmPow(D[S]-V[S],2)),V[S]=D[S];N&&(N=bmSqrt(N),P+=N),B.percents[y]=C,B.lengths[y]=P}return B.addedLength=P,B}}();function n(u){var d=segmentsLengthPool.newElement(),p=u.c,g=u.v,E=u.o,y=u.i,S,b=u._length,A=d.lengths,C=0;for(S=0;S<b-1;S+=1)A[S]=a(g[S],g[S+1],E[S],y[S+1]),C+=A[S].addedLength;return p&&b&&(A[S]=a(g[S],g[0],E[S],y[0]),C+=A[S].addedLength),d.totalLength=C,d}function s(u){this.segmentLength=0,this.points=new Array(u)}function i(u,d){this.partialLength=u,this.point=d}var o=function(){var u={};return function(d,p,g,E){var y=(d[0]+"_"+d[1]+"_"+p[0]+"_"+p[1]+"_"+g[0]+"_"+g[1]+"_"+E[0]+"_"+E[1]).replace(/\./g,"p");if(!u[y]){var S=getDefaultCurveSegments(),b,A,C,P,N,D=0,V,B,O=null;d.length===2&&(d[0]!==p[0]||d[1]!==p[1])&&t(d[0],d[1],p[0],p[1],d[0]+g[0],d[1]+g[1])&&t(d[0],d[1],p[0],p[1],p[0]+E[0],p[1]+E[1])&&(S=2);var _=new s(S);for(C=g.length,b=0;b<S;b+=1){for(B=createSizedArray(C),N=b/(S-1),V=0,A=0;A<C;A+=1)P=bmPow(1-N,3)*d[A]+3*bmPow(1-N,2)*N*(d[A]+g[A])+3*(1-N)*bmPow(N,2)*(p[A]+E[A])+bmPow(N,3)*p[A],B[A]=P,O!==null&&(V+=bmPow(B[A]-O[A],2));V=bmSqrt(V),D+=V,_.points[b]=new i(V,B),O=B}_.segmentLength=D,u[y]=_}return u[y]}}();function l(u,d){var p=d.percents,g=d.lengths,E=p.length,y=bmFloor((E-1)*u),S=u*d.addedLength,b=0;if(y===E-1||y===0||S===g[y])return p[y];for(var A=g[y]>S?-1:1,C=!0;C;)if(g[y]<=S&&g[y+1]>S?(b=(S-g[y])/(g[y+1]-g[y]),C=!1):y+=A,y<0||y>=E-1){if(y===E-1)return p[y];C=!1}return p[y]+(p[y+1]-p[y])*b}function c(u,d,p,g,E,y){var S=l(E,y),b=1-S,A=e.round((b*b*b*u[0]+(S*b*b+b*S*b+b*b*S)*p[0]+(S*S*b+b*S*S+S*b*S)*g[0]+S*S*S*d[0])*1e3)/1e3,C=e.round((b*b*b*u[1]+(S*b*b+b*S*b+b*b*S)*p[1]+(S*S*b+b*S*S+S*b*S)*g[1]+S*S*S*d[1])*1e3)/1e3;return[A,C]}var f=createTypedArray("float32",8);function m(u,d,p,g,E,y,S){E<0?E=0:E>1&&(E=1);var b=l(E,S);y=y>1?1:y;var A=l(y,S),C,P=u.length,N=1-b,D=1-A,V=N*N*N,B=b*N*N*3,O=b*b*N*3,_=b*b*b,G=N*N*D,$=b*N*D+N*b*D+N*N*A,H=b*b*D+N*b*A+b*N*A,I=b*b*A,F=N*D*D,x=b*D*D+N*A*D+N*D*A,T=b*A*D+N*A*A+b*D*A,R=b*A*A,k=D*D*D,Y=A*D*D+D*A*D+D*D*A,Z=A*A*D+D*A*A+A*D*A,q=A*A*A;for(C=0;C<P;C+=1)f[C*4]=e.round((V*u[C]+B*p[C]+O*g[C]+_*d[C])*1e3)/1e3,f[C*4+1]=e.round((G*u[C]+$*p[C]+H*g[C]+I*d[C])*1e3)/1e3,f[C*4+2]=e.round((F*u[C]+x*p[C]+T*g[C]+R*d[C])*1e3)/1e3,f[C*4+3]=e.round((k*u[C]+Y*p[C]+Z*g[C]+q*d[C])*1e3)/1e3;return f}return{getSegmentsLength:n,getNewSegment:m,getPointInSegment:c,buildBezierData:o,pointOnLine2D:t,pointOnLine3D:r}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var r=this.offsetTime,a;this.propType==="multidimensional"&&(a=createTypedArray("float32",this.pv.length));for(var n=t.lastIndex,s=n,i=this.keyframes.length-1,o=!0,l,c,f;o;){if(l=this.keyframes[s],c=this.keyframes[s+1],s===i-1&&e>=c.t-r){l.h&&(l=c),n=0;break}if(c.t-r>e){n=s;break}s<i-1?s+=1:(n=0,o=!1)}f=this.keyframesMetadata[s]||{};var m,u,d,p,g,E,y=c.t-r,S=l.t-r,b;if(l.to){f.bezierData||(f.bezierData=bez.buildBezierData(l.s,c.s||l.e,l.to,l.ti));var A=f.bezierData;if(e>=y||e<S){var C=e>=y?A.points.length-1:0;for(u=A.points[C].point.length,m=0;m<u;m+=1)a[m]=A.points[C].point[m]}else{f.__fnct?E=f.__fnct:(E=BezierFactory.getBezierEasing(l.o.x,l.o.y,l.i.x,l.i.y,l.n).get,f.__fnct=E),d=E((e-S)/(y-S));var P=A.segmentLength*d,N,D=t.lastFrame<e&&t._lastKeyframeIndex===s?t._lastAddedLength:0;for(g=t.lastFrame<e&&t._lastKeyframeIndex===s?t._lastPoint:0,o=!0,p=A.points.length;o;){if(D+=A.points[g].partialLength,P===0||d===0||g===A.points.length-1){for(u=A.points[g].point.length,m=0;m<u;m+=1)a[m]=A.points[g].point[m];break}else if(P>=D&&P<D+A.points[g+1].partialLength){for(N=(P-D)/A.points[g+1].partialLength,u=A.points[g].point.length,m=0;m<u;m+=1)a[m]=A.points[g].point[m]+(A.points[g+1].point[m]-A.points[g].point[m])*N;break}g<p-1?g+=1:o=!1}t._lastPoint=g,t._lastAddedLength=D-A.points[g].partialLength,t._lastKeyframeIndex=s}}else{var V,B,O,_,G;if(i=l.s.length,b=c.s||l.e,this.sh&&l.h!==1)if(e>=y)a[0]=b[0],a[1]=b[1],a[2]=b[2];else if(e<=S)a[0]=l.s[0],a[1]=l.s[1],a[2]=l.s[2];else{var $=createQuaternion(l.s),H=createQuaternion(b),I=(e-S)/(y-S);quaternionToEuler(a,slerp($,H,I))}else for(s=0;s<i;s+=1)l.h!==1&&(e>=y?d=1:e<S?d=0:(l.o.x.constructor===Array?(f.__fnct||(f.__fnct=[]),f.__fnct[s]?E=f.__fnct[s]:(V=l.o.x[s]===void 0?l.o.x[0]:l.o.x[s],B=l.o.y[s]===void 0?l.o.y[0]:l.o.y[s],O=l.i.x[s]===void 0?l.i.x[0]:l.i.x[s],_=l.i.y[s]===void 0?l.i.y[0]:l.i.y[s],E=BezierFactory.getBezierEasing(V,B,O,_).get,f.__fnct[s]=E)):f.__fnct?E=f.__fnct:(V=l.o.x,B=l.o.y,O=l.i.x,_=l.i.y,E=BezierFactory.getBezierEasing(V,B,O,_).get,l.keyframeMetadata=E),d=E((e-S)/(y-S)))),b=c.s||l.e,G=l.h===1?l.s[s]:l.s[s]+(b[s]-l.s[s])*d,this.propType==="multidimensional"?a[s]=G:a=G}return t.lastIndex=n,a}function slerp(e,t,r){var a=[],n=e[0],s=e[1],i=e[2],o=e[3],l=t[0],c=t[1],f=t[2],m=t[3],u,d,p,g,E;return d=n*l+s*c+i*f+o*m,d<0&&(d=-d,l=-l,c=-c,f=-f,m=-m),1-d>1e-6?(u=Math.acos(d),p=Math.sin(u),g=Math.sin((1-r)*u)/p,E=Math.sin(r*u)/p):(g=1-r,E=r),a[0]=g*n+E*l,a[1]=g*s+E*c,a[2]=g*i+E*f,a[3]=g*o+E*m,a}function quaternionToEuler(e,t){var r=t[0],a=t[1],n=t[2],s=t[3],i=Math.atan2(2*a*s-2*r*n,1-2*a*a-2*n*n),o=Math.asin(2*r*a+2*n*s),l=Math.atan2(2*r*s-2*a*n,1-2*r*r-2*n*n);e[0]=i/degToRads,e[1]=o/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,a=e[2]*degToRads,n=Math.cos(t/2),s=Math.cos(r/2),i=Math.cos(a/2),o=Math.sin(t/2),l=Math.sin(r/2),c=Math.sin(a/2),f=n*s*i-o*l*c,m=o*l*i+n*s*c,u=o*s*i+n*l*c,d=n*l*i-o*s*c;return[m,u,d,f]}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 a=this.interpolateValue(e,this._caching);this.pv=a}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,a=this.v.length;r<a;)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,a){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=a,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,a){this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=a,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var n,s=t.k.length;for(this.v=createTypedArray("float32",s),this.pv=createTypedArray("float32",s),this.vel=createTypedArray("float32",s),n=0;n<s;n+=1)this.v[n]=t.k[n]*this.mult,this.pv[n]=t.k[n];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,a){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=a,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,a){this.propType="multidimensional";var n,s=t.k.length,i,o,l,c;for(n=0;n<s-1;n+=1)t.k[n].to&&t.k[n].s&&t.k[n+1]&&t.k[n+1].s&&(i=t.k[n].s,o=t.k[n+1].s,l=t.k[n].to,c=t.k[n].ti,(i.length===2&&!(i[0]===o[0]&&i[1]===o[1])&&bez.pointOnLine2D(i[0],i[1],o[0],o[1],i[0]+l[0],i[1]+l[1])&&bez.pointOnLine2D(i[0],i[1],o[0],o[1],o[0]+c[0],o[1]+c[1])||i.length===3&&!(i[0]===o[0]&&i[1]===o[1]&&i[2]===o[2])&&bez.pointOnLine3D(i[0],i[1],i[2],o[0],o[1],o[2],i[0]+l[0],i[1]+l[1],i[2]+l[2])&&bez.pointOnLine3D(i[0],i[1],i[2],o[0],o[1],o[2],o[0]+c[0],o[1]+c[1],o[2]+c[2]))&&(t.k[n].to=null,t.k[n].ti=null),i[0]===o[0]&&i[1]===o[1]&&l[0]===0&&l[1]===0&&c[0]===0&&c[1]===0&&(i.length===2||i[2]===o[2]&&l[2]===0&&c[2]===0)&&(t.k[n].to=null,t.k[n].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=a,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var f=t.k[0].s.length;for(this.v=createTypedArray("float32",f),this.pv=createTypedArray("float32",f),n=0;n<f;n+=1)this.v[n]=initFrame,this.pv[n]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",f)},this.addEffect=addEffect}var PropertyFactory=function(){function e(r,a,n,s,i){a.sid&&(a=r.globalData.slotManager.getProp(a));var o;if(!a.k.length)o=new ValueProperty(r,a,s,i);else if(typeof a.k[0]=="number")o=new MultiDimensionalProperty(r,a,s,i);else switch(n){case 0:o=new KeyframedValueProperty(r,a,s,i);break;case 1:o=new KeyframedMultidimensionalProperty(r,a,s,i);break}return o.effectsSequence.length&&i.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,a,n){var s;switch(this._length=Math.max(this._length,a+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[];break}(!s[a]||s[a]&&!n)&&(s[a]=pointPool.newElement()),s[a][0]=e,s[a][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,a,n,s,i,o){this.setXYAt(e,t,"v",i,o),this.setXYAt(r,a,"o",i,o),this.setXYAt(n,s,"i",i,o)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,a=this.i,n=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],a[0][0],a[0][1],r[0][0],r[0][1],0,!1),n=1);var s=this._length-1,i=this._length,o;for(o=n;o<i;o+=1)e.setTripleAt(t[s][0],t[s][1],a[s][0],a[s][1],r[s][0],r[s][1],o,!1),s-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function e(){return new ShapePath}function t(n){var s=n._length,i;for(i=0;i<s;i+=1)pointPool.release(n.v[i]),pointPool.release(n.i[i]),pointPool.release(n.o[i]),n.v[i]=null,n.i[i]=null,n.o[i]=null;n._length=0,n.c=!1}function r(n){var s=a.newElement(),i,o=n._length===void 0?n.v.length:n._length;for(s.setLength(o),s.c=n.c,i=0;i<o;i+=1)s.setTripleAt(n.v[i][0],n.v[i][1],n.o[i][0],n.o[i][1],n.i[i][0],n.i[i][1],i);return s}var a=poolFactory(4,e,t);return a.clone=r,a}();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:n,release:s},t=0,r=4,a=createSizedArray(r);function n(){var i;return t?(t-=1,i=a[t]):i=new ShapeCollection,i}function s(i){var o,l=i._length;for(o=0;o<l;o+=1)shapePool.release(i.shapes[o]);i._length=0,t===r&&(a=pooling.double(a),r*=2),a[t]=i,t+=1}return e}(),ShapePropertyFactory=function(){var e=-999999;function t(y,S,b){var A=b.lastIndex,C,P,N,D,V,B,O,_,G,$=this.keyframes;if(y<$[0].t-this.offsetTime)C=$[0].s[0],N=!0,A=0;else if(y>=$[$.length-1].t-this.offsetTime)C=$[$.length-1].s?$[$.length-1].s[0]:$[$.length-2].e[0],N=!0;else{for(var H=A,I=$.length-1,F=!0,x,T,R;F&&(x=$[H],T=$[H+1],!(T.t-this.offsetTime>y));)H<I-1?H+=1:F=!1;if(R=this.keyframesMetadata[H]||{},N=x.h===1,A=H,!N){if(y>=T.t-this.offsetTime)_=1;else if(y<x.t-this.offsetTime)_=0;else{var k;R.__fnct?k=R.__fnct:(k=BezierFactory.getBezierEasing(x.o.x,x.o.y,x.i.x,x.i.y).get,R.__fnct=k),_=k((y-(x.t-this.offsetTime))/(T.t-this.offsetTime-(x.t-this.offsetTime)))}P=T.s?T.s[0]:x.e[0]}C=x.s[0]}for(B=S._length,O=C.i[0].length,b.lastIndex=A,D=0;D<B;D+=1)for(V=0;V<O;V+=1)G=N?C.i[D][V]:C.i[D][V]+(P.i[D][V]-C.i[D][V])*_,S.i[D][V]=G,G=N?C.o[D][V]:C.o[D][V]+(P.o[D][V]-C.o[D][V])*_,S.o[D][V]=G,G=N?C.v[D][V]:C.v[D][V]+(P.v[D][V]-C.v[D][V])*_,S.v[D][V]=G}function r(){var y=this.comp.renderedFrame-this.offsetTime,S=this.keyframes[0].t-this.offsetTime,b=this.keyframes[this.keyframes.length-1].t-this.offsetTime,A=this._caching.lastFrame;return A!==e&&(A<S&&y<S||A>b&&y>b)||(this._caching.lastIndex=A<y?this._caching.lastIndex:0,this.interpolateShape(y,this.pv,this._caching)),this._caching.lastFrame=y,this.pv}function a(){this.paths=this.localShapeCollection}function n(y,S){if(y._length!==S._length||y.c!==S.c)return!1;var b,A=y._length;for(b=0;b<A;b+=1)if(y.v[b][0]!==S.v[b][0]||y.v[b][1]!==S.v[b][1]||y.o[b][0]!==S.o[b][0]||y.o[b][1]!==S.o[b][1]||y.i[b][0]!==S.i[b][0]||y.i[b][1]!==S.i[b][1])return!1;return!0}function s(y){n(this.v,y)||(this.v=shapePool.clone(y),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function i(){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 y;this.kf?y=this.pv:this.data.ks?y=this.data.ks.k:y=this.data.pt.k;var S,b=this.effectsSequence.length;for(S=0;S<b;S+=1)y=this.effectsSequence[S](y);this.setVValue(y),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(y,S,b){this.propType="shape",this.comp=y.comp,this.container=y,this.elem=y,this.data=S,this.k=!1,this.kf=!1,this._mdf=!1;var A=b===3?S.pt.k:S.ks.k;this.v=shapePool.clone(A),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=a,this.effectsSequence=[]}function l(y){this.effectsSequence.push(y),this.container.addDynamicProperty(this)}o.prototype.interpolateShape=t,o.prototype.getValue=i,o.prototype.setVValue=s,o.prototype.addEffect=l;function c(y,S,b){this.propType="shape",this.comp=y.comp,this.elem=y,this.container=y,this.offsetTime=y.data.st,this.keyframes=b===3?S.pt.k:S.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var A=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,A),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=a,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}c.prototype.getValue=i,c.prototype.interpolateShape=t,c.prototype.setVValue=s,c.prototype.addEffect=l;var f=function(){var y=roundCorner;function S(b,A){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=A.d,this.elem=b,this.comp=b.comp,this.frameId=-1,this.initDynamicPropertyContainer(b),this.p=PropertyFactory.getProp(b,A.p,1,0,this),this.s=PropertyFactory.getProp(b,A.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return S.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var A=this.p.v[0],C=this.p.v[1],P=this.s.v[0]/2,N=this.s.v[1]/2,D=this.d!==3,V=this.v;V.v[0][0]=A,V.v[0][1]=C-N,V.v[1][0]=D?A+P:A-P,V.v[1][1]=C,V.v[2][0]=A,V.v[2][1]=C+N,V.v[3][0]=D?A-P:A+P,V.v[3][1]=C,V.i[0][0]=D?A-P*y:A+P*y,V.i[0][1]=C-N,V.i[1][0]=D?A+P:A-P,V.i[1][1]=C-N*y,V.i[2][0]=D?A+P*y:A-P*y,V.i[2][1]=C+N,V.i[3][0]=D?A-P:A+P,V.i[3][1]=C+N*y,V.o[0][0]=D?A+P*y:A-P*y,V.o[0][1]=C-N,V.o[1][0]=D?A+P:A-P,V.o[1][1]=C+N*y,V.o[2][0]=D?A-P*y:A+P*y,V.o[2][1]=C+N,V.o[3][0]=D?A-P:A+P,V.o[3][1]=C-N*y}},extendPrototype([DynamicPropertyContainer],S),S}(),m=function(){function y(S,b){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=S,this.comp=S.comp,this.data=b,this.frameId=-1,this.d=b.d,this.initDynamicPropertyContainer(S),b.sy===1?(this.ir=PropertyFactory.getProp(S,b.ir,0,0,this),this.is=PropertyFactory.getProp(S,b.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(S,b.pt,0,0,this),this.p=PropertyFactory.getProp(S,b.p,1,0,this),this.r=PropertyFactory.getProp(S,b.r,0,degToRads,this),this.or=PropertyFactory.getProp(S,b.or,0,0,this),this.os=PropertyFactory.getProp(S,b.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 y.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var b=Math.floor(this.pt.v)*2,A=Math.PI*2/b,C=!0,P=this.or.v,N=this.ir.v,D=this.os.v,V=this.is.v,B=2*Math.PI*P/(b*2),O=2*Math.PI*N/(b*2),_,G,$,H,I=-Math.PI/2;I+=this.r.v;var F=this.data.d===3?-1:1;for(this.v._length=0,_=0;_<b;_+=1){G=C?P:N,$=C?D:V,H=C?B:O;var x=G*Math.cos(I),T=G*Math.sin(I),R=x===0&&T===0?0:T/Math.sqrt(x*x+T*T),k=x===0&&T===0?0:-x/Math.sqrt(x*x+T*T);x+=+this.p.v[0],T+=+this.p.v[1],this.v.setTripleAt(x,T,x-R*H*$*F,T-k*H*$*F,x+R*H*$*F,T+k*H*$*F,_,!0),C=!C,I+=A*F}},convertPolygonToPath:function(){var b=Math.floor(this.pt.v),A=Math.PI*2/b,C=this.or.v,P=this.os.v,N=2*Math.PI*C/(b*4),D,V=-Math.PI*.5,B=this.data.d===3?-1:1;for(V+=this.r.v,this.v._length=0,D=0;D<b;D+=1){var O=C*Math.cos(V),_=C*Math.sin(V),G=O===0&&_===0?0:_/Math.sqrt(O*O+_*_),$=O===0&&_===0?0:-O/Math.sqrt(O*O+_*_);O+=+this.p.v[0],_+=+this.p.v[1],this.v.setTripleAt(O,_,O-G*N*P*B,_-$*N*P*B,O+G*N*P*B,_+$*N*P*B,D,!0),V+=A*B}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],y),y}(),u=function(){function y(S,b){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=S,this.comp=S.comp,this.frameId=-1,this.d=b.d,this.initDynamicPropertyContainer(S),this.p=PropertyFactory.getProp(S,b.p,1,0,this),this.s=PropertyFactory.getProp(S,b.s,1,0,this),this.r=PropertyFactory.getProp(S,b.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return y.prototype={convertRectToPath:function(){var b=this.p.v[0],A=this.p.v[1],C=this.s.v[0]/2,P=this.s.v[1]/2,N=bmMin(C,P,this.r.v),D=N*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(b+C,A-P+N,b+C,A-P+N,b+C,A-P+D,0,!0),this.v.setTripleAt(b+C,A+P-N,b+C,A+P-D,b+C,A+P-N,1,!0),N!==0?(this.v.setTripleAt(b+C-N,A+P,b+C-N,A+P,b+C-D,A+P,2,!0),this.v.setTripleAt(b-C+N,A+P,b-C+D,A+P,b-C+N,A+P,3,!0),this.v.setTripleAt(b-C,A+P-N,b-C,A+P-N,b-C,A+P-D,4,!0),this.v.setTripleAt(b-C,A-P+N,b-C,A-P+D,b-C,A-P+N,5,!0),this.v.setTripleAt(b-C+N,A-P,b-C+N,A-P,b-C+D,A-P,6,!0),this.v.setTripleAt(b+C-N,A-P,b+C-D,A-P,b+C-N,A-P,7,!0)):(this.v.setTripleAt(b-C,A+P,b-C+D,A+P,b-C,A+P,2),this.v.setTripleAt(b-C,A-P,b-C,A-P+D,b-C,A-P,3))):(this.v.setTripleAt(b+C,A-P+N,b+C,A-P+D,b+C,A-P+N,0,!0),N!==0?(this.v.setTripleAt(b+C-N,A-P,b+C-N,A-P,b+C-D,A-P,1,!0),this.v.setTripleAt(b-C+N,A-P,b-C+D,A-P,b-C+N,A-P,2,!0),this.v.setTripleAt(b-C,A-P+N,b-C,A-P+N,b-C,A-P+D,3,!0),this.v.setTripleAt(b-C,A+P-N,b-C,A+P-D,b-C,A+P-N,4,!0),this.v.setTripleAt(b-C+N,A+P,b-C+N,A+P,b-C+D,A+P,5,!0),this.v.setTripleAt(b+C-N,A+P,b+C-D,A+P,b+C-N,A+P,6,!0),this.v.setTripleAt(b+C,A+P-N,b+C,A+P-N,b+C,A+P-D,7,!0)):(this.v.setTripleAt(b-C,A-P,b-C+D,A-P,b-C,A-P,1,!0),this.v.setTripleAt(b-C,A+P,b-C,A+P-D,b-C,A+P,2,!0),this.v.setTripleAt(b+C,A+P,b+C-D,A+P,b+C,A+P,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:a},extendPrototype([DynamicPropertyContainer],y),y}();function d(y,S,b){var A;if(b===3||b===4){var C=b===3?S.pt:S.ks,P=C.k;P.length?A=new c(y,S,b):A=new o(y,S,b)}else b===5?A=new u(y,S):b===6?A=new f(y,S):b===7&&(A=new m(y,S));return A.k&&y.addDynamicProperty(A),A}function p(){return o}function g(){return c}var E={};return E.getShapeProp=d,E.getConstructorFunction=p,E.getKeyframedConstructorFunction=g,E}();/*!
  6. Transformation Matrix v2.0
  7. (c) Epistemex 2014-2015
  8. www.epistemex.com
  9. By Ken Fyrstenberg
  10. Contributions by leeoniya.
  11. License: MIT, header required.
  12. */var Matrix=function(){var e=Math.cos,t=Math.sin,r=Math.tan,a=Math.round;function n(){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 s(x){if(x===0)return this;var T=e(x),R=t(x);return this._t(T,-R,0,0,R,T,0,0,0,0,1,0,0,0,0,1)}function i(x){if(x===0)return this;var T=e(x),R=t(x);return this._t(1,0,0,0,0,T,-R,0,0,R,T,0,0,0,0,1)}function o(x){if(x===0)return this;var T=e(x),R=t(x);return this._t(T,0,R,0,0,1,0,0,-R,0,T,0,0,0,0,1)}function l(x){if(x===0)return this;var T=e(x),R=t(x);return this._t(T,-R,0,0,R,T,0,0,0,0,1,0,0,0,0,1)}function c(x,T){return this._t(1,T,x,1,0,0)}function f(x,T){return this.shear(r(x),r(T))}function m(x,T){var R=e(T),k=t(T);return this._t(R,k,0,0,-k,R,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(x),1,0,0,0,0,1,0,0,0,0,1)._t(R,-k,0,0,k,R,0,0,0,0,1,0,0,0,0,1)}function u(x,T,R){return!R&&R!==0&&(R=1),x===1&&T===1&&R===1?this:this._t(x,0,0,0,0,T,0,0,0,0,R,0,0,0,0,1)}function d(x,T,R,k,Y,Z,q,se,re,ne,ce,fe,he,ue,de,oe){return this.props[0]=x,this.props[1]=T,this.props[2]=R,this.props[3]=k,this.props[4]=Y,this.props[5]=Z,this.props[6]=q,this.props[7]=se,this.props[8]=re,this.props[9]=ne,this.props[10]=ce,this.props[11]=fe,this.props[12]=he,this.props[13]=ue,this.props[14]=de,this.props[15]=oe,this}function p(x,T,R){return R=R||0,x!==0||T!==0||R!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,x,T,R,1):this}function g(x,T,R,k,Y,Z,q,se,re,ne,ce,fe,he,ue,de,oe){var J=this.props;if(x===1&&T===0&&R===0&&k===0&&Y===0&&Z===1&&q===0&&se===0&&re===0&&ne===0&&ce===1&&fe===0)return J[12]=J[12]*x+J[15]*he,J[13]=J[13]*Z+J[15]*ue,J[14]=J[14]*ce+J[15]*de,J[15]*=oe,this._identityCalculated=!1,this;var Ce=J[0],ve=J[1],ge=J[2],be=J[3],we=J[4],pe=J[5],me=J[6],Ee=J[7],Pe=J[8],ye=J[9],Te=J[10],Ae=J[11],Ie=J[12],Me=J[13],U=J[14],j=J[15];return J[0]=Ce*x+ve*Y+ge*re+be*he,J[1]=Ce*T+ve*Z+ge*ne+be*ue,J[2]=Ce*R+ve*q+ge*ce+be*de,J[3]=Ce*k+ve*se+ge*fe+be*oe,J[4]=we*x+pe*Y+me*re+Ee*he,J[5]=we*T+pe*Z+me*ne+Ee*ue,J[6]=we*R+pe*q+me*ce+Ee*de,J[7]=we*k+pe*se+me*fe+Ee*oe,J[8]=Pe*x+ye*Y+Te*re+Ae*he,J[9]=Pe*T+ye*Z+Te*ne+Ae*ue,J[10]=Pe*R+ye*q+Te*ce+Ae*de,J[11]=Pe*k+ye*se+Te*fe+Ae*oe,J[12]=Ie*x+Me*Y+U*re+j*he,J[13]=Ie*T+Me*Z+U*ne+j*ue,J[14]=Ie*R+Me*q+U*ce+j*de,J[15]=Ie*k+Me*se+U*fe+j*oe,this._identityCalculated=!1,this}function E(x){var T=x.props;return this.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])}function y(){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 S(x){for(var T=0;T<16;){if(x.props[T]!==this.props[T])return!1;T+=1}return!0}function b(x){var T;for(T=0;T<16;T+=1)x.props[T]=this.props[T];return x}function A(x){var T;for(T=0;T<16;T+=1)this.props[T]=x[T]}function C(x,T,R){return{x:x*this.props[0]+T*this.props[4]+R*this.props[8]+this.props[12],y:x*this.props[1]+T*this.props[5]+R*this.props[9]+this.props[13],z:x*this.props[2]+T*this.props[6]+R*this.props[10]+this.props[14]}}function P(x,T,R){return x*this.props[0]+T*this.props[4]+R*this.props[8]+this.props[12]}function N(x,T,R){return x*this.props[1]+T*this.props[5]+R*this.props[9]+this.props[13]}function D(x,T,R){return x*this.props[2]+T*this.props[6]+R*this.props[10]+this.props[14]}function V(){var x=this.props[0]*this.props[5]-this.props[1]*this.props[4],T=this.props[5]/x,R=-this.props[1]/x,k=-this.props[4]/x,Y=this.props[0]/x,Z=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/x,q=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/x,se=new Matrix;return se.props[0]=T,se.props[1]=R,se.props[4]=k,se.props[5]=Y,se.props[12]=Z,se.props[13]=q,se}function B(x){var T=this.getInverseMatrix();return T.applyToPointArray(x[0],x[1],x[2]||0)}function O(x){var T,R=x.length,k=[];for(T=0;T<R;T+=1)k[T]=B(x[T]);return k}function _(x,T,R){var k=createTypedArray("float32",6);if(this.isIdentity())k[0]=x[0],k[1]=x[1],k[2]=T[0],k[3]=T[1],k[4]=R[0],k[5]=R[1];else{var Y=this.props[0],Z=this.props[1],q=this.props[4],se=this.props[5],re=this.props[12],ne=this.props[13];k[0]=x[0]*Y+x[1]*q+re,k[1]=x[0]*Z+x[1]*se+ne,k[2]=T[0]*Y+T[1]*q+re,k[3]=T[0]*Z+T[1]*se+ne,k[4]=R[0]*Y+R[1]*q+re,k[5]=R[0]*Z+R[1]*se+ne}return k}function G(x,T,R){var k;return this.isIdentity()?k=[x,T,R]:k=[x*this.props[0]+T*this.props[4]+R*this.props[8]+this.props[12],x*this.props[1]+T*this.props[5]+R*this.props[9]+this.props[13],x*this.props[2]+T*this.props[6]+R*this.props[10]+this.props[14]],k}function $(x,T){if(this.isIdentity())return x+","+T;var R=this.props;return Math.round((x*R[0]+T*R[4]+R[12])*100)/100+","+Math.round((x*R[1]+T*R[5]+R[13])*100)/100}function H(){for(var x=0,T=this.props,R="matrix3d(",k=1e4;x<16;)R+=a(T[x]*k)/k,R+=x===15?")":",",x+=1;return R}function I(x){var T=1e4;return x<1e-6&&x>0||x>-1e-6&&x<0?a(x*T)/T:x}function F(){var x=this.props,T=I(x[0]),R=I(x[1]),k=I(x[4]),Y=I(x[5]),Z=I(x[12]),q=I(x[13]);return"matrix("+T+","+R+","+k+","+Y+","+Z+","+q+")"}return function(){this.reset=n,this.rotate=s,this.rotateX=i,this.rotateY=o,this.rotateZ=l,this.skew=f,this.skewFromAxis=m,this.shear=c,this.scale=u,this.setTransform=d,this.translate=p,this.transform=g,this.multiply=E,this.applyToPoint=C,this.applyToX=P,this.applyToY=N,this.applyToZ=D,this.applyToPointArray=G,this.applyToTriplePoints=_,this.applyToPointStringified=$,this.toCSS=H,this.to2dCSS=F,this.clone=b,this.cloneFromProps=A,this.equals=S,this.inversePoints=O,this.inversePoint=B,this.getInverseMatrix=V,this._t=this.transform,this.isIdentity=y,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.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var a=t[r].split("=");if(decodeURIComponent(a[0])==e)return decodeURIComponent(a[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=a;function r(n,s){t[n]||(t[n]=s)}function a(n,s,i){return new t[n](s,i)}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,a,n){var s=[];t<=1?s.push({s:e,e:t}):e>=1?s.push({s:e-1,e:t-1}):(s.push({s:e,e:1}),s.push({s:0,e:t-1}));var i=[],o,l=s.length,c;for(o=0;o<l;o+=1)if(c=s[o],!(c.e*n<a||c.s*n>a+r)){var f,m;c.s*n<=a?f=0:f=(c.s*n-a)/r,c.e*n>=a+r?m=1:m=(c.e*n-a)/r,i.push([f,m])}return i.length||i.push([0,0]),i},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 a=this.o.v%360/360;if(a<0&&(a+=1),this.s.v>1?t=1+a:this.s.v<0?t=0+a:t=this.s.v+a,this.e.v>1?r=1+a:this.e.v<0?r=0+a:r=this.e.v+a,t>r){var n=t;t=r,r=n}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 s,i,o=this.shapes.length,l,c,f,m,u,d=0;if(r===t)for(i=0;i<o;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(r===1&&t===0||r===0&&t===1){if(this._mdf)for(i=0;i<o;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var p=[],g,E;for(i=0;i<o;i+=1)if(g=this.shapes[i],!g.shape._mdf&&!this._mdf&&!e&&this.m!==2)g.shape.paths=g.localShapeCollection;else{if(s=g.shape.paths,c=s._length,u=0,!g.shape._mdf&&g.pathsData.length)u=g.totalShapeLength;else{for(f=this.releasePathsData(g.pathsData),l=0;l<c;l+=1)m=bez.getSegmentsLength(s.shapes[l]),f.push(m),u+=m.totalLength;g.totalShapeLength=u,g.pathsData=f}d+=u,g.shape._mdf=!0}var y=t,S=r,b=0,A;for(i=o-1;i>=0;i-=1)if(g=this.shapes[i],g.shape._mdf){for(E=g.localShapeCollection,E.releaseShapes(),this.m===2&&o>1?(A=this.calculateShapeEdges(t,r,g.totalShapeLength,b,d),b+=g.totalShapeLength):A=[[y,S]],c=A.length,l=0;l<c;l+=1){y=A[l][0],S=A[l][1],p.length=0,S<=1?p.push({s:g.totalShapeLength*y,e:g.totalShapeLength*S}):y>=1?p.push({s:g.totalShapeLength*(y-1),e:g.totalShapeLength*(S-1)}):(p.push({s:g.totalShapeLength*y,e:g.totalShapeLength}),p.push({s:0,e:g.totalShapeLength*(S-1)}));var C=this.addShapes(g,p[0]);if(p[0].s!==p[0].e){if(p.length>1){var P=g.shape.paths.shapes[g.shape.paths._length-1];if(P.c){var N=C.pop();this.addPaths(C,E),C=this.addShapes(g,p[1],N)}else this.addPaths(C,E),C=this.addShapes(g,p[1])}this.addPaths(C,E)}}g.shape.paths=E}}},TrimModifier.prototype.addPaths=function(e,t){var r,a=e.length;for(r=0;r<a;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,a,n,s,i){n.setXYAt(t[0],t[1],"o",s),n.setXYAt(r[0],r[1],"i",s+1),i&&n.setXYAt(e[0],e[1],"v",s),n.setXYAt(a[0],a[1],"v",s+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,a){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),a&&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 a=e.pathsData,n=e.shape.paths.shapes,s,i=e.shape.paths._length,o,l,c=0,f,m,u,d,p=[],g,E=!0;for(r?(m=r._length,g=r._length):(r=shapePool.newElement(),m=0,g=0),p.push(r),s=0;s<i;s+=1){for(u=a[s].lengths,r.c=n[s].c,l=n[s].c?u.length:u.length+1,o=1;o<l;o+=1)if(f=u[o-1],c+f.addedLength<t.s)c+=f.addedLength,r.c=!1;else if(c>t.e){r.c=!1;break}else t.s<=c&&t.e>=c+f.addedLength?(this.addSegment(n[s].v[o-1],n[s].o[o-1],n[s].i[o],n[s].v[o],r,m,E),E=!1):(d=bez.getNewSegment(n[s].v[o-1],n[s].v[o],n[s].o[o-1],n[s].i[o],(t.s-c)/f.addedLength,(t.e-c)/f.addedLength,u[o-1]),this.addSegmentFromArray(d,r,m,E),E=!1,r.c=!1),c+=f.addedLength,m+=1;if(n[s].c&&u.length){if(f=u[o-1],c<=t.e){var y=u[o-1].addedLength;t.s<=c&&t.e>=c+y?(this.addSegment(n[s].v[o-1],n[s].o[o-1],n[s].i[0],n[s].v[0],r,m,E),E=!1):(d=bez.getNewSegment(n[s].v[o-1],n[s].v[0],n[s].o[o-1],n[s].i[0],(t.s-c)/y,(t.e-c)/y,u[o-1]),this.addSegmentFromArray(d,r,m,E),E=!1,r.c=!1)}else r.c=!1;c+=f.addedLength,m+=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)),c>t.e)break;s<i-1&&(r=shapePool.newElement(),E=!0,p.push(r),m=0)}return p};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,a=[0,0],n=e._length,s=0;for(s=0;s<n;s+=1)a[0]+=e.v[s][0],a[1]+=e.v[s][1];a[0]/=n,a[1]/=n;var i=shapePool.newElement();i.c=e.c;var o,l,c,f,m,u;for(s=0;s<n;s+=1)o=e.v[s][0]+(a[0]-e.v[s][0])*r,l=e.v[s][1]+(a[1]-e.v[s][1])*r,c=e.o[s][0]+(a[0]-e.o[s][0])*-r,f=e.o[s][1]+(a[1]-e.o[s][1])*-r,m=e.i[s][0]+(a[0]-e.i[s][0])*-r,u=e.i[s][1]+(a[1]-e.i[s][1])*-r,i.setTripleAt(o,l,c,f,m,u,s);return i},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,a=this.shapes.length,n,s,i=this.amount.v;if(i!==0){var o,l;for(r=0;r<a;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,s=o.shape.paths._length,n=0;n<s;n+=1)l.addShape(this.processPath(t[n],i));o.shape.paths=o.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(l){var c=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||c,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 c;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var f,m;if(c=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(f=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/c,0),m=this.p.getValueAtTime(this.p.keyframes[0].t/c,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(f=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/c,0),m=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/c,0)):(f=this.p.pv,m=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/c,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){f=[],m=[];var u=this.px,d=this.py;u._caching.lastFrame+u.offsetTime<=u.keyframes[0].t?(f[0]=u.getValueAtTime((u.keyframes[0].t+.01)/c,0),f[1]=d.getValueAtTime((d.keyframes[0].t+.01)/c,0),m[0]=u.getValueAtTime(u.keyframes[0].t/c,0),m[1]=d.getValueAtTime(d.keyframes[0].t/c,0)):u._caching.lastFrame+u.offsetTime>=u.keyframes[u.keyframes.length-1].t?(f[0]=u.getValueAtTime(u.keyframes[u.keyframes.length-1].t/c,0),f[1]=d.getValueAtTime(d.keyframes[d.keyframes.length-1].t/c,0),m[0]=u.getValueAtTime((u.keyframes[u.keyframes.length-1].t-.01)/c,0),m[1]=d.getValueAtTime((d.keyframes[d.keyframes.length-1].t-.01)/c,0)):(f=[u.pv,d.pv],m[0]=u.getValueAtTime((u._caching.lastFrame+u.offsetTime-.01)/c,u.offsetTime),m[1]=d.getValueAtTime((d._caching.lastFrame+d.offsetTime-.01)/c,d.offsetTime))}else m=e,f=m;this.v.rotate(-Math.atan2(f[1]-m[1],f[0]-m[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 a(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function n(){}function s(l){this._addDynamicProperty(l),this.elem.addDynamicProperty(l),this._isDirty=!0}function i(l,c,f){if(this.elem=l,this.frameId=-1,this.propType="transform",this.data=c,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(f||l),c.p&&c.p.s?(this.px=PropertyFactory.getProp(l,c.p.x,0,0,this),this.py=PropertyFactory.getProp(l,c.p.y,0,0,this),c.p.z&&(this.pz=PropertyFactory.getProp(l,c.p.z,0,0,this))):this.p=PropertyFactory.getProp(l,c.p||{k:[0,0,0]},1,0,this),c.rx){if(this.rx=PropertyFactory.getProp(l,c.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(l,c.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(l,c.rz,0,degToRads,this),c.or.k[0].ti){var m,u=c.or.k.length;for(m=0;m<u;m+=1)c.or.k[m].to=null,c.or.k[m].ti=null}this.or=PropertyFactory.getProp(l,c.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(l,c.r||{k:0},0,degToRads,this);c.sk&&(this.sk=PropertyFactory.getProp(l,c.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(l,c.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(l,c.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(l,c.s||{k:[100,100,100]},1,.01,this),c.o?this.o=PropertyFactory.getProp(l,c.o,0,.01,l):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}i.prototype={applyToMatrix:t,getValue:r,precalculateMatrix:a,autoOrient:n},extendPrototype([DynamicPropertyContainer],i),i.prototype.addDynamicProperty=s,i.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function o(l,c,f){return new i(l,c,f)}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,a,n,s){var i=s?-1:1,o=a.s.v[0]+(1-a.s.v[0])*(1-n),l=a.s.v[1]+(1-a.s.v[1])*(1-n);e.translate(a.p.v[0]*i*n,a.p.v[1]*i*n,a.p.v[2]),t.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),t.rotate(-a.r.v*i*n),t.translate(a.a.v[0],a.a.v[1],a.a.v[2]),r.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),r.scale(s?1/o:o,s?1/l:l),r.translate(a.a.v[0],a.a.v[1],a.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,a){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=a,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,a=e.length;for(r=0;r<a;r+=1)e[r]._render=t,e[r].ty==="gr"&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,a,n,s,i=!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(),i=!0}s=0;var c;for(a=0;a<=this._groups.length-1;a+=1){if(c=s<o,this._groups[a]._render=c,this.changeGroupRender(this._groups[a].it,c),!c){var f=this.elemsData[a].it,m=f[f.length-1];m.transform.op.v!==0?(m.transform.op._mdf=!0,m.transform.op.v=0):m.transform.op._mdf=!1}s+=1}this._currentCopies=o;var u=this.o.v,d=u%1,p=u>0?Math.floor(u):Math.ceil(u),g=this.pMatrix.props,E=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var S=0;if(u>0){for(;S<p;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),S+=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,d,!1),S+=d)}else if(u<0){for(;S>p;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),S-=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-d,!0),S-=d)}a=this.data.m===1?0:this._currentCopies-1,n=this.data.m===1?1:-1,s=this._currentCopies;for(var b,A;s;){if(t=this.elemsData[a].it,r=t[t.length-1].transform.mProps.v.props,A=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)*(a/(this._currentCopies-1)),S!==0){for((a!==0&&n===1||a!==this._currentCopies-1&&n===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[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]),b=0;b<A;b+=1)r[b]=this.matrix.props[b];this.matrix.reset()}else for(this.matrix.reset(),b=0;b<A;b+=1)r[b]=this.matrix.props[b];S+=1,s-=1,a+=n}}else for(s=this._currentCopies,a=0,n=1;s;)t=this.elemsData[a].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,s-=1,a+=n;return i},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 a,n=e._length,s,i,o,l,c,f,m=0,u,d,p,g,E,y;for(a=0;a<n;a+=1)s=e.v[a],o=e.o[a],i=e.i[a],s[0]===o[0]&&s[1]===o[1]&&s[0]===i[0]&&s[1]===i[1]?(a===0||a===n-1)&&!e.c?(r.setTripleAt(s[0],s[1],o[0],o[1],i[0],i[1],m),m+=1):(a===0?l=e.v[n-1]:l=e.v[a-1],c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),f=c?Math.min(c/2,t)/c:0,E=s[0]+(l[0]-s[0])*f,u=E,y=s[1]-(s[1]-l[1])*f,d=y,p=u-(u-s[0])*roundCorner,g=d-(d-s[1])*roundCorner,r.setTripleAt(u,d,p,g,E,y,m),m+=1,a===n-1?l=e.v[0]:l=e.v[a+1],c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),f=c?Math.min(c/2,t)/c:0,p=s[0]+(l[0]-s[0])*f,u=p,g=s[1]+(l[1]-s[1])*f,d=g,E=u-(u-s[0])*roundCorner,y=d-(d-s[1])*roundCorner,r.setTripleAt(u,d,p,g,E,y,m),m+=1):(r.setTripleAt(e.v[a][0],e.v[a][1],e.o[a][0],e.o[a][1],e.i[a][0],e.i[a][1],m),m+=1);return r},RoundCornersModifier.prototype.processShapes=function(e){var t,r,a=this.shapes.length,n,s,i=this.rd.v;if(i!==0){var o,l;for(r=0;r<a;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,s=o.shape.paths._length,n=0;n<s;n+=1)l.addShape(this.processPath(t[n],i));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 a=t*t-4*e*r;if(a<0)return[];var n=-t/(2*e);if(a===0)return[n];var s=Math.sqrt(a)/(2*e);return[n-s,n+s]}function polynomialCoefficients(e,t,r,a){return[-e+3*t-3*r+a,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,a,n){n&&pointEqual(e,t)&&(t=lerpPoint(e,a,1/3)),n&&pointEqual(r,a)&&(r=lerpPoint(e,a,2/3));var s=polynomialCoefficients(e[0],t[0],r[0],a[0]),i=polynomialCoefficients(e[1],t[1],r[1],a[1]);this.a=[s[0],i[0]],this.b=[s[1],i[1]],this.c=[s[2],i[2]],this.d=[s[3],i[3]],this.points=[e,t,r,a]}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 a=Math.sqrt(r);return floatZero(a)?a>0&&a<1?[t]:[]:[t-a,t+a].filter(function(n){return n>0&&n<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),a=lerpPoint(this.points[2],this.points[3],e),n=lerpPoint(t,r,e),s=lerpPoint(r,a,e),i=lerpPoint(n,s,e);return[new PolynomialBezier(this.points[0],t,n,i,!0),new PolynomialBezier(i,s,a,this.points[3],!0)]};function extrema(e,t){var r=e.points[0][t],a=e.points[e.points.length-1][t];if(r>a){var n=a;a=r,r=n}for(var s=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),i=0;i<s.length;i+=1)if(s[i]>0&&s[i]<1){var o=e.point(s[i])[t];o<r?r=o:o>a&&(a=o)}return{min:r,max:a}}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 a=e.boundingBox();return{cx:a.cx,cy:a.cy,width:a.width,height:a.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,a,n,s){if(boxIntersect(e,t)){if(r>=s||e.width<=a&&e.height<=a&&t.width<=a&&t.height<=a){n.push([e.t,t.t]);return}var i=splitData(e),o=splitData(t);intersectsImpl(i[0],o[0],r+1,a,n,s),intersectsImpl(i[0],o[1],r+1,a,n,s),intersectsImpl(i[1],o[0],r+1,a,n,s),intersectsImpl(i[1],o[1],r+1,a,n,s)}}PolynomialBezier.prototype.intersections=function(e,t,r){t===void 0&&(t=2),r===void 0&&(r=7);var a=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,a,r),a},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,a){var n=[e[0],e[1],1],s=[t[0],t[1],1],i=[r[0],r[1],1],o=[a[0],a[1],1],l=crossProduct(crossProduct(n,s),crossProduct(i,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,a,n,s,i){var o=r-Math.PI/2,l=r+Math.PI/2,c=t[0]+Math.cos(r)*a*n,f=t[1]-Math.sin(r)*a*n;e.setTripleAt(c,f,c+Math.cos(o)*s,f-Math.sin(o)*s,c+Math.cos(l)*i,f-Math.sin(l)*i,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],a=-Math.PI*.5,n=[Math.cos(a)*r[0]-Math.sin(a)*r[1],Math.sin(a)*r[0]+Math.cos(a)*r[1]];return n}function getProjectingAngle(e,t){var r=t===0?e.length()-1:t-1,a=(t+1)%e.length(),n=e.v[r],s=e.v[a],i=getPerpendicularVector(n,s);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(e,t,r,a,n,s,i){var o=getProjectingAngle(t,r),l=t.v[r%t._length],c=t.v[r===0?t._length-1:r-1],f=t.v[(r+1)%t._length],m=s===2?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,u=s===2?Math.sqrt(Math.pow(l[0]-f[0],2)+Math.pow(l[1]-f[1],2)):0;setPoint(e,t.v[r%t._length],o,i,a,u/((n+1)*2),m/((n+1)*2))}function zigZagSegment(e,t,r,a,n,s){for(var i=0;i<a;i+=1){var o=(i+1)/(a+1),l=n===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,c=t.normalAngle(o),f=t.point(o);setPoint(e,f,c,s,r,l/((a+1)*2),l/((a+1)*2)),s=-s}return s}ZigZagModifier.prototype.processPath=function(e,t,r,a){var n=e._length,s=shapePool.newElement();if(s.c=e.c,e.c||(n-=1),n===0)return s;var i=-1,o=PolynomialBezier.shapeSegment(e,0);zigZagCorner(s,e,0,t,r,a,i);for(var l=0;l<n;l+=1)i=zigZagSegment(s,o,t,r,a,-i),l===n-1&&!e.c?o=null:o=PolynomialBezier.shapeSegment(e,(l+1)%n),zigZagCorner(s,e,l+1,t,r,a,i);return s},ZigZagModifier.prototype.processShapes=function(e){var t,r,a=this.shapes.length,n,s,i=this.amplitude.v,o=Math.max(0,Math.round(this.frequency.v)),l=this.pointsType.v;if(i!==0){var c,f;for(r=0;r<a;r+=1){if(c=this.shapes[r],f=c.localShapeCollection,!(!c.shape._mdf&&!this._mdf&&!e))for(f.releaseShapes(),c.shape._mdf=!0,t=c.shape.paths.shapes,s=c.shape.paths._length,n=0;n<s;n+=1)f.addShape(this.processPath(t[n],i,o,l));c.shape.paths=c.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,t,r){var a=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,a,r),polarOffset(t,a,r)]}function offsetSegment(e,t){var r,a,n,s,i,o,l;l=linearOffset(e.points[0],e.points[1],t),r=l[0],a=l[1],l=linearOffset(e.points[1],e.points[2],t),n=l[0],s=l[1],l=linearOffset(e.points[2],e.points[3],t),i=l[0],o=l[1];var c=lineIntersection(r,a,n,s);c===null&&(c=a);var f=lineIntersection(i,o,n,s);return f===null&&(f=i),new PolynomialBezier(r,c,f,o)}function joinLines(e,t,r,a,n){var s=t.points[3],i=r.points[0];if(a===3||pointEqual(s,i))return s;if(a===2){var o=-t.tangentAngle(1),l=-r.tangentAngle(0)+Math.PI,c=lineIntersection(s,polarOffset(s,o+Math.PI/2,100),i,polarOffset(i,o+Math.PI/2,100)),f=c?pointDistance(c,s):pointDistance(s,i)/2,m=polarOffset(s,o,2*f*roundCorner);return e.setXYAt(m[0],m[1],"o",e.length()-1),m=polarOffset(i,l,2*f*roundCorner),e.setTripleAt(i[0],i[1],i[0],i[1],m[0],m[1],e.length()),i}var u=pointEqual(s,t.points[2])?t.points[0]:t.points[2],d=pointEqual(i,r.points[1])?r.points[3]:r.points[1],p=lineIntersection(u,s,i,d);return p&&pointDistance(p,s)<n?(e.setTripleAt(p[0],p[1],p[0],p[1],p[0],p[1],e.length()),p):s}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(),a=t.slice(),n=getIntersection(e[e.length-1],t[0]);return n&&(r[e.length-1]=e[e.length-1].split(n[0])[0],a[0]=t[0].split(n[1])[1]),e.length>1&&t.length>1&&(n=getIntersection(e[0],t[t.length-1]),n)?[[e[0].split(n[0])[0]],[t[t.length-1].split(n[1])[1]]]:[r,a]}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(),a,n,s,i;if(r.length===0)return[offsetSegment(e,t)];if(r.length===1||floatEqual(r[1],1))return s=e.split(r[0]),a=s[0],n=s[1],[offsetSegment(a,t),offsetSegment(n,t)];s=e.split(r[0]),a=s[0];var o=(r[1]-r[0])/(1-r[0]);return s=s[1].split(o),i=s[0],n=s[1],[offsetSegment(a,t),offsetSegment(i,t),offsetSegment(n,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,a){var n=shapePool.newElement();n.c=e.c;var s=e.length();e.c||(s-=1);var i,o,l,c=[];for(i=0;i<s;i+=1)l=PolynomialBezier.shapeSegment(e,i),c.push(offsetSegmentSplit(l,t));if(!e.c)for(i=s-1;i>=0;i-=1)l=PolynomialBezier.shapeSegmentInverted(e,i),c.push(offsetSegmentSplit(l,t));c=pruneIntersections(c);var f=null,m=null;for(i=0;i<c.length;i+=1){var u=c[i];for(m&&(f=joinLines(n,m,u[0],r,a)),m=u[u.length-1],o=0;o<u.length;o+=1)l=u[o],f&&pointEqual(l.points[0],f)?n.setXYAt(l.points[1][0],l.points[1][1],"o",n.length()-1):n.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],n.length()),n.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],n.length()),f=l.points[3]}return c.length&&joinLines(n,m,c[0][0],r,a),n},OffsetPathModifier.prototype.processShapes=function(e){var t,r,a=this.shapes.length,n,s,i=this.amount.v,o=this.miterLimit.v,l=this.lineJoin;if(i!==0){var c,f;for(r=0;r<a;r+=1){if(c=this.shapes[r],f=c.localShapeCollection,!(!c.shape._mdf&&!this._mdf&&!e))for(f.releaseShapes(),c.shape._mdf=!0,t=c.shape.paths.shapes,s=c.shape.paths._length,n=0;n<s;n+=1)f.addShape(this.processPath(t[n],i,l,o));c.shape.paths=c.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",a="normal",n=t.length,s,i=0;i<n;i+=1)switch(s=t[i].toLowerCase(),s){case"italic":a="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:a,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 a=127988,n=917631,s=917601,i=917626,o=65039,l=8205,c=127462,f=127487,m=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function u(I){var F=I.split(","),x,T=F.length,R=[];for(x=0;x<T;x+=1)F[x]!=="sans-serif"&&F[x]!=="monospace"&&R.push(F[x]);return R.join(",")}function d(I,F){var x=createTag("span");x.setAttribute("aria-hidden",!0),x.style.fontFamily=F;var T=createTag("span");T.innerText="giItT1WQy@!-/#",x.style.position="absolute",x.style.left="-10000px",x.style.top="-10000px",x.style.fontSize="300px",x.style.fontVariant="normal",x.style.fontStyle="normal",x.style.fontWeight="normal",x.style.letterSpacing="0",x.appendChild(T),document.body.appendChild(x);var R=T.offsetWidth;return T.style.fontFamily=u(I)+", "+F,{node:T,w:R,parent:x}}function p(){var I,F=this.fonts.length,x,T,R=F;for(I=0;I<F;I+=1)this.fonts[I].loaded?R-=1:this.fonts[I].fOrigin==="n"||this.fonts[I].origin===0?this.fonts[I].loaded=!0:(x=this.fonts[I].monoCase.node,T=this.fonts[I].monoCase.w,x.offsetWidth!==T?(R-=1,this.fonts[I].loaded=!0):(x=this.fonts[I].sansCase.node,T=this.fonts[I].sansCase.w,x.offsetWidth!==T&&(R-=1,this.fonts[I].loaded=!0)),this.fonts[I].loaded&&(this.fonts[I].sansCase.parent.parentNode.removeChild(this.fonts[I].sansCase.parent),this.fonts[I].monoCase.parent.parentNode.removeChild(this.fonts[I].monoCase.parent)));R!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function g(I,F){var x=document.body&&F?"svg":"canvas",T,R=getFontProperties(I);if(x==="svg"){var k=createNS("text");k.style.fontSize="100px",k.setAttribute("font-family",I.fFamily),k.setAttribute("font-style",R.style),k.setAttribute("font-weight",R.weight),k.textContent="1",I.fClass?(k.style.fontFamily="inherit",k.setAttribute("class",I.fClass)):k.style.fontFamily=I.fFamily,F.appendChild(k),T=k}else{var Y=new OffscreenCanvas(500,500).getContext("2d");Y.font=R.style+" "+R.weight+" 100px "+I.fFamily,T=Y}function Z(q){return x==="svg"?(T.textContent=q,T.getComputedTextLength()):T.measureText(q).width}return{measureText:Z}}function E(I,F){if(!I){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=I.list;return}if(!document.body){this.isLoaded=!0,I.list.forEach(function(ce){ce.helper=g(ce),ce.cache={}}),this.fonts=I.list;return}var x=I.list,T,R=x.length,k=R;for(T=0;T<R;T+=1){var Y=!0,Z,q;if(x[T].loaded=!1,x[T].monoCase=d(x[T].fFamily,"monospace"),x[T].sansCase=d(x[T].fFamily,"sans-serif"),!x[T].fPath)x[T].loaded=!0,k-=1;else if(x[T].fOrigin==="p"||x[T].origin===3){if(Z=document.querySelectorAll('style[f-forigin="p"][f-family="'+x[T].fFamily+'"], style[f-origin="3"][f-family="'+x[T].fFamily+'"]'),Z.length>0&&(Y=!1),Y){var se=createTag("style");se.setAttribute("f-forigin",x[T].fOrigin),se.setAttribute("f-origin",x[T].origin),se.setAttribute("f-family",x[T].fFamily),se.type="text/css",se.innerText="@font-face {font-family: "+x[T].fFamily+"; font-style: normal; src: url('"+x[T].fPath+"');}",F.appendChild(se)}}else if(x[T].fOrigin==="g"||x[T].origin===1){for(Z=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),q=0;q<Z.length;q+=1)Z[q].href.indexOf(x[T].fPath)!==-1&&(Y=!1);if(Y){var re=createTag("link");re.setAttribute("f-forigin",x[T].fOrigin),re.setAttribute("f-origin",x[T].origin),re.type="text/css",re.rel="stylesheet",re.href=x[T].fPath,document.body.appendChild(re)}}else if(x[T].fOrigin==="t"||x[T].origin===2){for(Z=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),q=0;q<Z.length;q+=1)x[T].fPath===Z[q].src&&(Y=!1);if(Y){var ne=createTag("link");ne.setAttribute("f-forigin",x[T].fOrigin),ne.setAttribute("f-origin",x[T].origin),ne.setAttribute("rel","stylesheet"),ne.setAttribute("href",x[T].fPath),F.appendChild(ne)}}x[T].helper=g(x[T],F),x[T].cache={},this.fonts.push(x[T])}k===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function y(I){if(I){this.chars||(this.chars=[]);var F,x=I.length,T,R=this.chars.length,k;for(F=0;F<x;F+=1){for(T=0,k=!1;T<R;)this.chars[T].style===I[F].style&&this.chars[T].fFamily===I[F].fFamily&&this.chars[T].ch===I[F].ch&&(k=!0),T+=1;k||(this.chars.push(I[F]),R+=1)}}}function S(I,F,x){for(var T=0,R=this.chars.length;T<R;){if(this.chars[T].ch===I&&this.chars[T].style===F&&this.chars[T].fFamily===x)return this.chars[T];T+=1}return(typeof I=="string"&&I.charCodeAt(0)!==13||!I)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",I,F,x)),t}function b(I,F,x){var T=this.getFontByName(F),R=I;if(!T.cache[R]){var k=T.helper;if(I===" "){var Y=k.measureText("|"+I+"|"),Z=k.measureText("||");T.cache[R]=(Y-Z)/100}else T.cache[R]=k.measureText(I)/100}return T.cache[R]*x}function A(I){for(var F=0,x=this.fonts.length;F<x;){if(this.fonts[F].fName===I)return this.fonts[F];F+=1}return this.fonts[0]}function C(I){var F=0,x=I.charCodeAt(0);if(x>=55296&&x<=56319){var T=I.charCodeAt(1);T>=56320&&T<=57343&&(F=(x-55296)*1024+T-56320+65536)}return F}function P(I,F){var x=I.toString(16)+F.toString(16);return m.indexOf(x)!==-1}function N(I){return I===l}function D(I){return I===o}function V(I){var F=C(I);return F>=c&&F<=f}function B(I){return V(I.substr(0,2))&&V(I.substr(2,2))}function O(I){return r.indexOf(I)!==-1}function _(I,F){var x=C(I.substr(F,2));if(x!==a)return!1;var T=0;for(F+=2;T<5;){if(x=C(I.substr(F,2)),x<s||x>i)return!1;T+=1,F+=2}return C(I.substr(F,2))===n}function G(){this.isLoaded=!0}var $=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)};$.isModifier=P,$.isZeroWidthJoiner=N,$.isFlagEmoji=B,$.isRegionalCode=V,$.isCombinedCharacter=O,$.isRegionalFlag=_,$.isVariationSelector=D,$.BLACK_FLAG_CODE_POINT=a;var H={addChars:y,addFonts:E,getCharData:S,getFontByName:A,measureText:b,checkLoadedFonts:p,setIsLoaded:G};return $.prototype=H,$}();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(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 a,n=r.length,s;for(a=0;a<n;a+=1)s=new GroupEffect(r[a],t),this.effectElements.push(s)}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,a=this.data.ef.length,n,s=this.data.ef;for(r=0;r<a;r+=1){switch(n=null,s[r].ty){case 0:n=new SliderEffect(s[r],t,this);break;case 1:n=new AngleEffect(s[r],t,this);break;case 2:n=new ColorEffect(s[r],t,this);break;case 3:n=new PointEffect(s[r],t,this);break;case 4:case 7:n=new CheckboxEffect(s[r],t,this);break;case 10:n=new LayerIndexEffect(s[r],t,this);break;case 11:n=new MaskIndexEffect(s[r],t,this);break;case 5:n=new EffectsManager(s[r],t);break;default:n=new NoValueEffect(s[r]);break}n&&this.effectElements.push(n)}};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"),a=t("effects"),n=t("shape"),s=t("text"),i=t("comp");this.layerInterface=r(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var o=a.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(o),this.data.ty===0||this.data.xt?this.compInterface=i(this):this.data.ty===4?(this.layerInterface.shapeInterface=n(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=s(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,a){this.globalData=r,this.comp=a,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 a,n=this.dynamicProperties.length;for(a=0;a<n;a+=1)(r||this._isParent&&this.dynamicProperties[a].propType==="transform")&&(this.dynamicProperties[a].getValue(),this.dynamicProperties[a]._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 a=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(a),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,a;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(a=this.layers[t],a.ip-a.st<=e-this.layers[t].st&&a.op-a.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,a,n=this.layers.length;for(t=0;t<r;t+=1)for(a=0;a<n;){if(this.layers[a].id===e[t].id){this.layers[a]=e[t];break}a+=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 a=this.elements,n=this.layers,s=0,i=n.length;s<i;)n[s].ind==t&&(!a[s]||a[s]===!0?(this.buildItem(s),this.addPendingElement(e)):(r.push(a[s]),a[s].setAsParent(),n[s].parent!==void 0?this.buildElementParenting(e,n[s].parent,r):e.setHierarchy(r))),s+=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 a=this.createComp(e[t]);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},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 a,n=this.elements.length;for(a=0;a<n;a+=1)if(this.elements[a].data.nm===t){r=this.elements[a];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}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,r=this.finalTransform.mat,a=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;a<n;){if(this.hierarchy[a].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}a+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,r.cloneFromProps(t),a=0;a<n;a+=1)r.multiply(this.hierarchy[a].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,r=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<r;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var a=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(a),t=1;t<r;t+=1){var n=this.localTransforms[t].matrix;a.multiply(n)}a.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var s=this.finalTransform.localOpacity;for(t=0;t<r;t+=1)s*=this.localTransforms[t].opacity*.01;this.finalTransform.localOpacity=s}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var r=0,a=t.length;for(r=0;r<a;r+=1)this.localTransforms.push(t[r])}}},globalToLocal:function(t){var r=[];r.push(this.finalTransform);for(var a=!0,n=this.comp;a;)n.finalTransform?(n.data.hasMask&&r.splice(0,0,n.finalTransform),n=n.comp):a=!1;var s,i=r.length,o;for(s=0;s<i;s+=1)o=r[s].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 a=this.globalData.defs,n,s=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(s),this.solidPath="";var i,o=this.masksProperties,l=0,c=[],f,m,u=createElementID(),d,p,g,E,y="clipPath",S="clip-path";for(n=0;n<s;n+=1)if((o[n].mode!=="a"&&o[n].mode!=="n"||o[n].inv||o[n].o.k!==100||o[n].o.x)&&(y="mask",S="mask"),(o[n].mode==="s"||o[n].mode==="i")&&l===0?(d=createNS("rect"),d.setAttribute("fill","#ffffff"),d.setAttribute("width",this.element.comp.data.w||0),d.setAttribute("height",this.element.comp.data.h||0),c.push(d)):d=null,i=createNS("path"),o[n].mode==="n")this.viewData[n]={op:PropertyFactory.getProp(this.element,o[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,o[n],3),elem:i,lastPath:""},a.appendChild(i);else{l+=1,i.setAttribute("fill",o[n].mode==="s"?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero");var b;if(o[n].x.k!==0?(y="mask",S="mask",E=PropertyFactory.getProp(this.element,o[n].x,0,null,this.element),b=createElementID(),p=createNS("filter"),p.setAttribute("id",b),g=createNS("feMorphology"),g.setAttribute("operator","erode"),g.setAttribute("in","SourceGraphic"),g.setAttribute("radius","0"),p.appendChild(g),a.appendChild(p),i.setAttribute("stroke",o[n].mode==="s"?"#000000":"#ffffff")):(g=null,E=null),this.storedData[n]={elem:i,x:E,expan:g,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},o[n].mode==="i"){m=c.length;var A=createNS("g");for(f=0;f<m;f+=1)A.appendChild(c[f]);var C=createNS("mask");C.setAttribute("mask-type","alpha"),C.setAttribute("id",u+"_"+l),C.appendChild(i),a.appendChild(C),A.setAttribute("mask","url("+getLocationHref()+"#"+u+"_"+l+")"),c.length=0,c.push(A)}else c.push(i);o[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,o[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,o[n],3),invRect:d},this.viewData[n].prop.k||this.drawPath(o[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=createNS(y),s=c.length,n=0;n<s;n+=1)this.maskElement.appendChild(c[n]);l>0&&(this.maskElement.setAttribute("id",u),this.element.maskedElement.setAttribute(S,"url("+getLocationHref()+"#"+u+")"),a.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,a=this.masksProperties.length;for(r=0;r<a;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 n=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+")")),n.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 a=" M"+t.v[0][0]+","+t.v[0][1],n,s;for(s=t._length,n=1;n<s;n+=1)a+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[n][0]+","+t.i[n][1]+" "+t.v[n][0]+","+t.v[n][1];if(t.c&&s>1&&(a+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==a){var i="";r.elem&&(t.c&&(i=e.inv?this.solidPath+a:a),r.elem.setAttribute("d",i)),r.lastPath=a}},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(a,n){var s=createNS("filter");return s.setAttribute("id",a),n!==!0&&(s.setAttribute("filterUnits","objectBoundingBox"),s.setAttribute("x","0%"),s.setAttribute("y","0%"),s.setAttribute("width","100%"),s.setAttribute("height","100%")),s}function r(){var a=createNS("feColorMatrix");return a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),a}return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r="SourceGraphic",a=e.data.ef?e.data.ef.length:0,n=createElementID(),s=filtersFactory.createFilter(n,!0),i=0;this.filters=[];var o;for(t=0;t<a;t+=1){o=null;var l=e.data.ef[t].ty;if(registeredEffects$1[l]){var c=registeredEffects$1[l].effect;o=new c(s,e.effectsManager.effectElements[t],e,idPrefix+i,r),r=idPrefix+i,registeredEffects$1[l].countsAsEffect&&(i+=1)}o&&this.filters.push(o)}i&&(e.globalData.defs.appendChild(s),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+n+")")),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)},SVGEffects.prototype.getEffects=function(e){var t,r=this.filters.length,a=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&a.push(this.filters[t]);return a};function registerEffect$1(e,t,r){registeredEffects$1[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 a=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var s=createElementID();if(a.setAttribute("id",s),a.appendChild(n),this.globalData.defs.appendChild(a),this.checkMasks()){var i=createNS("g");i.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),i.appendChild(this.layerElement),this.transformedElement=i,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var r=this.layerId+"_"+t,a,n,s,i;if(t===1||t===3){var o=createNS("mask");o.setAttribute("id",r),o.setAttribute("mask-type",t===3?"luminance":"alpha"),s=createNS("use"),s.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(s),this.globalData.defs.appendChild(o),!featureSupport.maskType&&t===1&&(o.setAttribute("mask-type","luminance"),a=createElementID(),n=filtersFactory.createFilter(a),this.globalData.defs.appendChild(n),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),i=createNS("g"),i.appendChild(s),o.appendChild(i),i.setAttribute("filter","url("+getLocationHref()+"#"+a+")"))}else if(t===2){var l=createNS("mask");l.setAttribute("id",r),l.setAttribute("mask-type","alpha");var c=createNS("g");l.appendChild(c),a=createElementID(),n=filtersFactory.createFilter(a);var f=createNS("feComponentTransfer");f.setAttribute("in","SourceGraphic"),n.appendChild(f);var m=createNS("feFuncA");m.setAttribute("type","table"),m.setAttribute("tableValues","1.0 0.0"),f.appendChild(m),this.globalData.defs.appendChild(n);var u=createNS("rect");u.setAttribute("width",this.comp.data.w),u.setAttribute("height",this.comp.data.h),u.setAttribute("x","0"),u.setAttribute("y","0"),u.setAttribute("fill","#ffffff"),u.setAttribute("opacity","0"),c.setAttribute("filter","url("+getLocationHref()+"#"+a+")"),c.appendChild(u),s=createNS("use"),s.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),c.appendChild(s),featureSupport.maskType||(l.setAttribute("mask-type","luminance"),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),i=createNS("g"),c.appendChild(u),i.appendChild(this.layerElement),c.appendChild(i)),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,a,n){this.initFrame(),this.initBaseData(r,a,n),this.initTransform(r,a,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var r=this.baseElement||this.layerElement;r.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var r=this.baseElement||this.layerElement;r.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,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,a=this.shapeModifiers.length;for(r=0;r<a;r+=1)this.shapeModifiers[r].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var r=0,a=this.shapeModifiers.length;r<a;)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 a;for(t=r-1;t>=0&&(a=this.shapeModifiers[t].processShapes(this._isFirstFrame),!a);t-=1);}},searchProcessedElement:function(t){for(var r=this.processedElements,a=0,n=r.length;a<n;){if(r[a].elem===t)return r[a].pos;a+=1}return 0},addProcessedElement:function(t,r){for(var a=this.processedElements,n=a.length;n;)if(n-=1,a[n].elem===t){a[n].pos=r;return}a.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 a=0,n=e.length;a<n;){if(e[a].mProps.dynamicProperties.length){this._isAnimated=!0;break}a+=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,a){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(a);var n,s=t.length||0,i;for(n=0;n<s;n+=1)i=PropertyFactory.getProp(e,t[n].v,0,0,this),this.k=i.k||this.k,this.dataProps[n]={n:t[n].n,p:i};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 a=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",a),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=a,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,a=this.o.length/2,n;r<a;){if(n=Math.abs(e[r*4]-e[t*4+r*2]),n>.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,a,n;for(t=0;t<r;t+=1)a=t%4===0?100:255,n=Math.round(this.prop.v[t]*a),this.c[t]!==n&&(this.c[t]=n,this._cmdf=!e);if(this.o.length)for(r=this.prop.v.length,t=this.data.p*4;t<r;t+=1)a=t%2===0?100:1,n=t%2===0?Math.round(this.prop.v[t]*100):this.prop.v[t],this.o[t-this.data.p*4]!==n&&(this.o[t-this.data.p*4]=n,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(),a=createNS(t.t===1?"linearGradient":"radialGradient");a.setAttribute("id",r),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var n=[],s,i,o;for(o=t.g.p*4,i=0;i<o;i+=4)s=createNS("stop"),a.appendChild(s),n.push(s);e.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=a,this.cst=n},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,a,n,s=createNS("mask"),i=createNS("path");s.appendChild(i);var o=createElementID(),l=createElementID();s.setAttribute("id",l);var c=createNS(e.t===1?"linearGradient":"radialGradient");c.setAttribute("id",o),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),n=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var f=this.stops;for(a=e.g.p*4;a<n;a+=2)r=createNS("stop"),r.setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(r),f.push(r);i.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),e.ty==="gs"&&(i.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&i.setAttribute("stroke-miterlimit",e.ml)),this.of=c,this.ms=s,this.ost=f,this.maskId=l,t.msElem=i}},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,a,n){if(r===0)return"";var s=t.o,i=t.i,o=t.v,l,c=" M"+n.applyToPointStringified(o[0][0],o[0][1]);for(l=1;l<r;l+=1)c+=" C"+n.applyToPointStringified(s[l-1][0],s[l-1][1])+" "+n.applyToPointStringified(i[l][0],i[l][1])+" "+n.applyToPointStringified(o[l][0],o[l][1]);return a&&r&&(c+=" C"+n.applyToPointStringified(s[l-1][0],s[l-1][1])+" "+n.applyToPointStringified(i[0][0],i[0][1])+" "+n.applyToPointStringified(o[0][0],o[0][1]),c+="z"),c},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix,r={createRenderFunction:a};function a(m){switch(m.ty){case"fl":return o;case"gf":return c;case"gs":return l;case"st":return f;case"sh":case"el":case"rc":case"sr":return i;case"tr":return n;case"no":return s;default:return null}}function n(m,u,d){(d||u.transform.op._mdf)&&u.transform.container.setAttribute("opacity",u.transform.op.v),(d||u.transform.mProps._mdf)&&u.transform.container.setAttribute("transform",u.transform.mProps.v.to2dCSS())}function s(){}function i(m,u,d){var p,g,E,y,S,b,A=u.styles.length,C=u.lvl,P,N,D,V;for(b=0;b<A;b+=1){if(y=u.sh._mdf||d,u.styles[b].lvl<C){for(N=t.reset(),D=C-u.styles[b].lvl,V=u.transformers.length-1;!y&&D>0;)y=u.transformers[V].mProps._mdf||y,D-=1,V-=1;if(y)for(D=C-u.styles[b].lvl,V=u.transformers.length-1;D>0;)N.multiply(u.transformers[V].mProps.v),D-=1,V-=1}else N=e;if(P=u.sh.paths,g=P._length,y){for(E="",p=0;p<g;p+=1)S=P.shapes[p],S&&S._length&&(E+=buildShapeString(S,S._length,S.c,N));u.caches[b]=E}else E=u.caches[b];u.styles[b].d+=m.hd===!0?"":E,u.styles[b]._mdf=y||u.styles[b]._mdf}}function o(m,u,d){var p=u.style;(u.c._mdf||d)&&p.pElem.setAttribute("fill","rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||d)&&p.pElem.setAttribute("fill-opacity",u.o.v)}function l(m,u,d){c(m,u,d),f(m,u,d)}function c(m,u,d){var p=u.gf,g=u.g._hasOpacity,E=u.s.v,y=u.e.v;if(u.o._mdf||d){var S=m.ty==="gf"?"fill-opacity":"stroke-opacity";u.style.pElem.setAttribute(S,u.o.v)}if(u.s._mdf||d){var b=m.t===1?"x1":"cx",A=b==="x1"?"y1":"cy";p.setAttribute(b,E[0]),p.setAttribute(A,E[1]),g&&!u.g._collapsable&&(u.of.setAttribute(b,E[0]),u.of.setAttribute(A,E[1]))}var C,P,N,D;if(u.g._cmdf||d){C=u.cst;var V=u.g.c;for(N=C.length,P=0;P<N;P+=1)D=C[P],D.setAttribute("offset",V[P*4]+"%"),D.setAttribute("stop-color","rgb("+V[P*4+1]+","+V[P*4+2]+","+V[P*4+3]+")")}if(g&&(u.g._omdf||d)){var B=u.g.o;for(u.g._collapsable?C=u.cst:C=u.ost,N=C.length,P=0;P<N;P+=1)D=C[P],u.g._collapsable||D.setAttribute("offset",B[P*2]+"%"),D.setAttribute("stop-opacity",B[P*2+1])}if(m.t===1)(u.e._mdf||d)&&(p.setAttribute("x2",y[0]),p.setAttribute("y2",y[1]),g&&!u.g._collapsable&&(u.of.setAttribute("x2",y[0]),u.of.setAttribute("y2",y[1])));else{var O;if((u.s._mdf||u.e._mdf||d)&&(O=Math.sqrt(Math.pow(E[0]-y[0],2)+Math.pow(E[1]-y[1],2)),p.setAttribute("r",O),g&&!u.g._collapsable&&u.of.setAttribute("r",O)),u.e._mdf||u.h._mdf||u.a._mdf||d){O||(O=Math.sqrt(Math.pow(E[0]-y[0],2)+Math.pow(E[1]-y[1],2)));var _=Math.atan2(y[1]-E[1],y[0]-E[0]),G=u.h.v;G>=1?G=.99:G<=-1&&(G=-.99);var $=O*G,H=Math.cos(_+u.a.v)*$+E[0],I=Math.sin(_+u.a.v)*$+E[1];p.setAttribute("fx",H),p.setAttribute("fy",I),g&&!u.g._collapsable&&(u.of.setAttribute("fx",H),u.of.setAttribute("fy",I))}}}function f(m,u,d){var p=u.style,g=u.d;g&&(g._mdf||d)&&g.dashStr&&(p.pElem.setAttribute("stroke-dasharray",g.dashStr),p.pElem.setAttribute("stroke-dashoffset",g.dashoffset[0])),u.c&&(u.c._mdf||d)&&p.pElem.setAttribute("stroke","rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||d)&&p.pElem.setAttribute("stroke-opacity",u.o.v),(u.w._mdf||d)&&(p.pElem.setAttribute("stroke-width",u.w.v),p.msElem&&p.msElem.setAttribute("stroke-width",u.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,a,n=this.stylesList.length,s,i=[],o=!1;for(a=0;a<n;a+=1){for(s=this.stylesList[a],o=!1,i.length=0,e=0;e<t;e+=1)r=this.shapes[e],r.styles.indexOf(s)!==-1&&(i.push(r),o=r._isAnimated||o);i.length>1&&o&&this.setShapesAsAnimated(i)}},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,a=new SVGStyleData(e,t),n=a.pElem;if(e.ty==="st")r=new SVGStrokeStyleData(this,e,a);else if(e.ty==="fl")r=new SVGFillStyleData(this,e,a);else if(e.ty==="gf"||e.ty==="gs"){var s=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;r=new s(this,e,a),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),n.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))}else e.ty==="no"&&(r=new SVGNoStyleData(this,e,a));return(e.ty==="st"||e.ty==="gs")&&(n.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),n.setAttribute("fill-opacity","0"),e.lj===1&&n.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&n.setAttribute("fill-rule","evenodd"),e.ln&&n.setAttribute("id",e.ln),e.cl&&n.setAttribute("class",e.cl),e.bm&&(n.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(a),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),a=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var a=4;e.ty==="rc"?a=5:e.ty==="el"?a=6:e.ty==="sr"&&(a=7);var n=ShapePropertyFactory.getShapeProp(this,e,a,this),s=new SVGShapeData(t,r,n);return this.shapes.push(s),this.addShapeToModifiers(s),this.addToAnimatedContents(e,s),s},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,a=this.animatedContents.length;r<a;){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,a=this.stylesList.length;for(r=0;r<a;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,a,n,s,i){var o=[].concat(s),l,c=e.length-1,f,m,u=[],d=[],p,g,E;for(l=c;l>=0;l-=1){if(E=this.searchProcessedElement(e[l]),E?t[l]=r[E-1]:e[l]._render=i,e[l].ty==="fl"||e[l].ty==="st"||e[l].ty==="gf"||e[l].ty==="gs"||e[l].ty==="no")E?t[l].style.closed=!1:t[l]=this.createStyleElement(e[l],n),e[l]._render&&t[l].style.pElem.parentNode!==a&&a.appendChild(t[l].style.pElem),u.push(t[l].style);else if(e[l].ty==="gr"){if(!E)t[l]=this.createGroupElement(e[l]);else for(m=t[l].it.length,f=0;f<m;f+=1)t[l].prevViewData[f]=t[l].it[f];this.searchShapes(e[l].it,t[l].it,t[l].prevViewData,t[l].gr,n+1,o,i),e[l]._render&&t[l].gr.parentNode!==a&&a.appendChild(t[l].gr)}else e[l].ty==="tr"?(E||(t[l]=this.createTransformElement(e[l],a)),p=t[l].transform,o.push(p)):e[l].ty==="sh"||e[l].ty==="rc"||e[l].ty==="el"||e[l].ty==="sr"?(E||(t[l]=this.createShapeElement(e[l],o,n)),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"?(E?(g=t[l],g.closed=!1):(g=ShapeModifiers.getModifier(e[l].ty),g.init(this,e[l]),t[l]=g,this.shapeModifiers.push(g)),d.push(g)):e[l].ty==="rp"&&(E?(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),i=!1),d.push(g));this.addProcessedElement(e[l],l+1)}for(c=u.length,l=0;l<c;l+=1)u[l].closed=!0;for(c=d.length,l=0;l<c;l+=1)d[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,a,n,s){this.o=e,this.sw=t,this.sc=r,this.fc=a,this.m=n,this.p=s,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!a,m:!0,p:!0}}LetterProps.prototype.update=function(e,t,r,a,n,s){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 i=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,i=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,i=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,i=!0),this.fc!==a&&(this.fc=a,this._mdf.fc=!0,i=!0),this.m!==n&&(this.m=n,this._mdf.m=!0,i=!0),s.length&&(this.p[0]!==s[0]||this.p[1]!==s[1]||this.p[4]!==s[4]||this.p[5]!==s[5]||this.p[12]!==s[12]||this.p[13]!==s[13])&&(this.p=s,this._mdf.p=!0,i=!0),i};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 a,n=this.effectsSequence.length,s=e||this.data.d.k[this.keysIndex].s;for(a=0;a<n;a+=1)r!==this.keysIndex?s=this.effectsSequence[a](s,s.t):s=this.effectsSequence[a](this.currentData,s.t);t!==s&&this.setCurrentData(s),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,a=e.length;r<=a-1&&!(r===a-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,a=e.length,n,s,i=!1,o=!1,l="";r<a;)i=o,o=!1,n=e.charCodeAt(r),l=e.charAt(r),FontManager.isCombinedCharacter(n)?i=!0:n>=55296&&n<=56319?FontManager.isRegionalFlag(e,r)?l=e.substr(r,14):(s=e.charCodeAt(r+1),s>=56320&&s<=57343&&(FontManager.isModifier(n,s)?(l=e.substr(r,2),i=!0):FontManager.isFlagEmoji(e.substr(r,4))?l=e.substr(r,4):l=e.substr(r,2))):n>56319?(s=e.charCodeAt(r+1),FontManager.isVariationSelector(n)&&(i=!0)):FontManager.isZeroWidthJoiner(n)&&(i=!0,o=!0),i?(t[t.length-1]+=l,i=!1):t.push(l),r+=l.length;return t},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t=this.elem.globalData.fontManager,r=this.data,a=[],n,s,i,o=0,l,c=r.m.g,f=0,m=0,u=0,d=[],p=0,g=0,E,y,S=t.getFontByName(e.f),b,A=0,C=getFontProperties(S);e.fWeight=C.weight,e.fStyle=C.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),s=e.finalText.length,e.finalLineHeight=e.lh;var P=e.tr/1e3*e.finalSize,N;if(e.sz)for(var D=!0,V=e.sz[0],B=e.sz[1],O,_;D;){_=this.buildFinalText(e.t),O=0,p=0,s=_.length,P=e.tr/1e3*e.finalSize;var G=-1;for(n=0;n<s;n+=1)N=_[n].charCodeAt(0),i=!1,_[n]===" "?G=n:(N===13||N===3)&&(p=0,i=!0,O+=e.finalLineHeight||e.finalSize*1.2),t.chars?(b=t.getCharData(_[n],S.fStyle,S.fFamily),A=i?0:b.w*e.finalSize/100):A=t.measureText(_[n],e.f,e.finalSize),p+A>V&&_[n]!==" "?(G===-1?s+=1:n=G,O+=e.finalLineHeight||e.finalSize*1.2,_.splice(n,G===n?1:0,"\r"),G=-1,p=0):(p+=A,p+=P);O+=S.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&B<O?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=_,s=e.finalText.length,D=!1)}p=-P,A=0;var $=0,H;for(n=0;n<s;n+=1)if(i=!1,H=e.finalText[n],N=H.charCodeAt(0),N===13||N===3?($=0,d.push(p),g=p>g?p:g,p=-2*P,l="",i=!0,u+=1):l=H,t.chars?(b=t.getCharData(H,S.fStyle,t.getFontByName(e.f).fFamily),A=i?0:b.w*e.finalSize/100):A=t.measureText(l,e.f,e.finalSize),H===" "?$+=A+P:(p+=A+P+$,$=0),a.push({l:A,an:A,add:f,n:i,anIndexes:[],val:l,line:u,animatorJustifyOffset:0}),c==2){if(f+=A,l===""||l===" "||n===s-1){for((l===""||l===" ")&&(f-=A);m<=n;)a[m].an=f,a[m].ind=o,a[m].extra=A,m+=1;o+=1,f=0}}else if(c==3){if(f+=A,l===""||n===s-1){for(l===""&&(f-=A);m<=n;)a[m].an=f,a[m].ind=o,a[m].extra=A,m+=1;f=0,o+=1}}else a[o].ind=o,a[o].extra=0,o+=1;if(e.l=a,g=p>g?p:g,d.push(p),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=d;var I=r.a,F,x;y=I.length;var T,R,k=[];for(E=0;E<y;E+=1){for(F=I[E],F.a.sc&&(e.strokeColorAnim=!0),F.a.sw&&(e.strokeWidthAnim=!0),(F.a.fc||F.a.fh||F.a.fs||F.a.fb)&&(e.fillColorAnim=!0),R=0,T=F.s.b,n=0;n<s;n+=1)x=a[n],x.anIndexes[E]=R,(T==1&&x.val!==""||T==2&&x.val!==""&&x.val!==" "||T==3&&(x.n||x.val==" "||n==s-1)||T==4&&(x.n||n==s-1))&&(F.s.rn===1&&k.push(R),R+=1);r.a[E].s.totalChars=R;var Y=-1,Z;if(F.s.rn===1)for(n=0;n<s;n+=1)x=a[n],Y!=x.anIndexes[E]&&(Y=x.anIndexes[E],Z=k.splice(Math.floor(Math.random()*k.length),1)[0]),x.anIndexes[E]=Z}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=S.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 a(s,i){this._currentTextLength=-1,this.k=!1,this.data=i,this.elem=s,this.comp=s.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(s),this.s=PropertyFactory.getProp(s,i.s||{k:0},0,0,this),"e"in i?this.e=PropertyFactory.getProp(s,i.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(s,i.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(s,i.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(s,i.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(s,i.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(s,i.a,0,.01,this),this.dynamicProperties.length||this.getValue()}a.prototype={getMult:function(i){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var o=0,l=0,c=1,f=1;this.ne.v>0?o=this.ne.v/100:l=-this.ne.v/100,this.xe.v>0?c=1-this.xe.v/100:f=1+this.xe.v/100;var m=BezierFactory.getBezierEasing(o,l,c,f).get,u=0,d=this.finalS,p=this.finalE,g=this.data.sh;if(g===2)p===d?u=i>=p?1:0:u=e(0,t(.5/(p-d)+(i-d)/(p-d),1)),u=m(u);else if(g===3)p===d?u=i>=p?0:1:u=1-e(0,t(.5/(p-d)+(i-d)/(p-d),1)),u=m(u);else if(g===4)p===d?u=0:(u=e(0,t(.5/(p-d)+(i-d)/(p-d),1)),u<.5?u*=2:u=1-2*(u-.5)),u=m(u);else if(g===5){if(p===d)u=0;else{var E=p-d;i=t(e(0,i+.5-d),p-d);var y=-E/2+i,S=E/2;u=Math.sqrt(1-y*y/(S*S))}u=m(u)}else g===6?(p===d?u=0:(i=t(e(0,i+.5-d),p-d),u=(1+Math.cos(Math.PI+Math.PI*2*i/(p-d)))/2),u=m(u)):(i>=r(d)&&(i-d<0?u=e(0,t(t(p,1)-(d-i),1)):u=e(0,t(p-i,1))),u=m(u));if(this.sm.v!==100){var b=this.sm.v*.01;b===0&&(b=1e-8);var A=.5-b*.5;u<A?u=0:(u=(u-A)/b,u>1&&(u=1))}return u*this.a.v},getValue:function(i){this.iterateDynamicProperties(),this._mdf=i||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,i&&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,c=this.s.v/o+l,f=this.e.v/o+l;if(c>f){var m=c;c=f,f=m}this.finalS=c,this.finalE=f}},extendPrototype([DynamicPropertyContainer],a);function n(s,i,o){return new a(s,i)}return{getTextSelectorProp:n}}();function TextAnimatorDataProperty(e,t,r){var a={propType:!1},n=PropertyFactory.getProp,s=t.a;this.a={r:s.r?n(e,s.r,0,degToRads,r):a,rx:s.rx?n(e,s.rx,0,degToRads,r):a,ry:s.ry?n(e,s.ry,0,degToRads,r):a,sk:s.sk?n(e,s.sk,0,degToRads,r):a,sa:s.sa?n(e,s.sa,0,degToRads,r):a,s:s.s?n(e,s.s,1,.01,r):a,a:s.a?n(e,s.a,1,0,r):a,o:s.o?n(e,s.o,0,.01,r):a,p:s.p?n(e,s.p,1,0,r):a,sw:s.sw?n(e,s.sw,0,0,r):a,sc:s.sc?n(e,s.sc,1,0,r):a,fc:s.fc?n(e,s.fc,1,0,r):a,fh:s.fh?n(e,s.fh,0,0,r):a,fs:s.fs?n(e,s.fs,0,.01,r):a,fb:s.fb?n(e,s.fb,0,.01,r):a,t:s.t?n(e,s.t,0,0,r):a},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,a=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:a(this._elem,this._textData.p.a,0,0,this),f:a(this._elem,this._textData.p.f,0,0,this),l:a(this._elem,this._textData.p.l,0,0,this),r:a(this._elem,this._textData.p.r,0,0,this),p:a(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=a(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,a=this._animatorsData,n=this._textData,s=this.mHelper,i=this._renderType,o=this.renderedLetters.length,l,c,f,m,u=e.l,d,p,g,E,y,S,b,A,C,P,N,D,V,B,O;if(this._hasMaskedPath){if(O=this._pathData.m,!this._pathData.n||this._pathData._mdf){var _=O.v;this._pathData.r.v&&(_=_.reverse()),d={tLength:0,segments:[]},m=_._length-1;var G;for(D=0,f=0;f<m;f+=1)G=bez.buildBezierData(_.v[f],_.v[f+1],[_.o[f][0]-_.v[f][0],_.o[f][1]-_.v[f][1]],[_.i[f+1][0]-_.v[f+1][0],_.i[f+1][1]-_.v[f+1][1]]),d.tLength+=G.segmentLength,d.segments.push(G),D+=G.segmentLength;f=m,O.v.c&&(G=bez.buildBezierData(_.v[f],_.v[0],[_.o[f][0]-_.v[f][0],_.o[f][1]-_.v[f][1]],[_.i[0][0]-_.v[0][0],_.i[0][1]-_.v[0][1]]),d.tLength+=G.segmentLength,d.segments.push(G),D+=G.segmentLength),this._pathData.pi=d}if(d=this._pathData.pi,p=this._pathData.f.v,b=0,S=1,E=0,y=!0,P=d.segments,p<0&&O.v.c)for(d.tLength<Math.abs(p)&&(p=-Math.abs(p)%d.tLength),b=P.length-1,C=P[b].points,S=C.length-1;p<0;)p+=C[S].partialLength,S-=1,S<0&&(b-=1,C=P[b].points,S=C.length-1);C=P[b].points,A=C[S-1],g=C[S],N=g.partialLength}m=u.length,l=0,c=0;var $=e.finalSize*1.2*.714,H=!0,I,F,x,T,R;T=a.length;var k,Y=-1,Z,q,se,re=p,ne=b,ce=S,fe=-1,he,ue,de,oe,J,Ce,ve,ge,be="",we=this.defaultPropsArray,pe;if(e.j===2||e.j===1){var me=0,Ee=0,Pe=e.j===2?-.5:-1,ye=0,Te=!0;for(f=0;f<m;f+=1)if(u[f].n){for(me&&(me+=Ee);ye<f;)u[ye].animatorJustifyOffset=me,ye+=1;me=0,Te=!0}else{for(x=0;x<T;x+=1)I=a[x].a,I.t.propType&&(Te&&e.j===2&&(Ee+=I.t.v*Pe),F=a[x].s,k=F.getMult(u[f].anIndexes[x],n.a[x].s.totalChars),k.length?me+=I.t.v*k[0]*Pe:me+=I.t.v*k*Pe);Te=!1}for(me&&(me+=Ee);ye<f;)u[ye].animatorJustifyOffset=me,ye+=1}for(f=0;f<m;f+=1){if(s.reset(),he=1,u[f].n)l=0,c+=e.yOffset,c+=H?1:0,p=re,H=!1,this._hasMaskedPath&&(b=ne,S=ce,C=P[b].points,A=C[S-1],g=C[S],N=g.partialLength,E=0),be="",ge="",Ce="",pe="",we=this.defaultPropsArray;else{if(this._hasMaskedPath){if(fe!==u[f].line){switch(e.j){case 1:p+=D-e.lineWidths[u[f].line];break;case 2:p+=(D-e.lineWidths[u[f].line])/2;break}fe=u[f].line}Y!==u[f].ind&&(u[Y]&&(p+=u[Y].extra),p+=u[f].an/2,Y=u[f].ind),p+=r[0]*u[f].an*.005;var Ae=0;for(x=0;x<T;x+=1)I=a[x].a,I.p.propType&&(F=a[x].s,k=F.getMult(u[f].anIndexes[x],n.a[x].s.totalChars),k.length?Ae+=I.p.v[0]*k[0]:Ae+=I.p.v[0]*k),I.a.propType&&(F=a[x].s,k=F.getMult(u[f].anIndexes[x],n.a[x].s.totalChars),k.length?Ae+=I.a.v[0]*k[0]:Ae+=I.a.v[0]*k);for(y=!0,this._pathData.a.v&&(p=u[0].an*.5+(D-this._pathData.f.v-u[0].an*.5-u[u.length-1].an*.5)*Y/(m-1),p+=this._pathData.f.v);y;)E+N>=p+Ae||!C?(V=(p+Ae-E)/g.partialLength,q=A.point[0]+(g.point[0]-A.point[0])*V,se=A.point[1]+(g.point[1]-A.point[1])*V,s.translate(-r[0]*u[f].an*.005,-(r[1]*$)*.01),y=!1):C&&(E+=g.partialLength,S+=1,S>=C.length&&(S=0,b+=1,P[b]?C=P[b].points:O.v.c?(S=0,b=0,C=P[b].points):(E-=g.partialLength,C=null)),C&&(A=g,g=C[S],N=g.partialLength));Z=u[f].an/2-u[f].add,s.translate(-Z,0,0)}else Z=u[f].an/2-u[f].add,s.translate(-Z,0,0),s.translate(-r[0]*u[f].an*.005,-r[1]*$*.01,0);for(x=0;x<T;x+=1)I=a[x].a,I.t.propType&&(F=a[x].s,k=F.getMult(u[f].anIndexes[x],n.a[x].s.totalChars),(l!==0||e.j!==0)&&(this._hasMaskedPath?k.length?p+=I.t.v*k[0]:p+=I.t.v*k:k.length?l+=I.t.v*k[0]:l+=I.t.v*k));for(e.strokeWidthAnim&&(de=e.sw||0),e.strokeColorAnim&&(e.sc?ue=[e.sc[0],e.sc[1],e.sc[2]]:ue=[0,0,0]),e.fillColorAnim&&e.fc&&(oe=[e.fc[0],e.fc[1],e.fc[2]]),x=0;x<T;x+=1)I=a[x].a,I.a.propType&&(F=a[x].s,k=F.getMult(u[f].anIndexes[x],n.a[x].s.totalChars),k.length?s.translate(-I.a.v[0]*k[0],-I.a.v[1]*k[1],I.a.v[2]*k[2]):s.translate(-I.a.v[0]*k,-I.a.v[1]*k,I.a.v[2]*k));for(x=0;x<T;x+=1)I=a[x].a,I.s.propType&&(F=a[x].s,k=F.getMult(u[f].anIndexes[x],n.a[x].s.totalChars),k.length?s.scale(1+(I.s.v[0]-1)*k[0],1+(I.s.v[1]-1)*k[1],1):s.scale(1+(I.s.v[0]-1)*k,1+(I.s.v[1]-1)*k,1));for(x=0;x<T;x+=1){if(I=a[x].a,F=a[x].s,k=F.getMult(u[f].anIndexes[x],n.a[x].s.totalChars),I.sk.propType&&(k.length?s.skewFromAxis(-I.sk.v*k[0],I.sa.v*k[1]):s.skewFromAxis(-I.sk.v*k,I.sa.v*k)),I.r.propType&&(k.length?s.rotateZ(-I.r.v*k[2]):s.rotateZ(-I.r.v*k)),I.ry.propType&&(k.length?s.rotateY(I.ry.v*k[1]):s.rotateY(I.ry.v*k)),I.rx.propType&&(k.length?s.rotateX(I.rx.v*k[0]):s.rotateX(I.rx.v*k)),I.o.propType&&(k.length?he+=(I.o.v*k[0]-he)*k[0]:he+=(I.o.v*k-he)*k),e.strokeWidthAnim&&I.sw.propType&&(k.length?de+=I.sw.v*k[0]:de+=I.sw.v*k),e.strokeColorAnim&&I.sc.propType)for(J=0;J<3;J+=1)k.length?ue[J]+=(I.sc.v[J]-ue[J])*k[0]:ue[J]+=(I.sc.v[J]-ue[J])*k;if(e.fillColorAnim&&e.fc){if(I.fc.propType)for(J=0;J<3;J+=1)k.length?oe[J]+=(I.fc.v[J]-oe[J])*k[0]:oe[J]+=(I.fc.v[J]-oe[J])*k;I.fh.propType&&(k.length?oe=addHueToRGB(oe,I.fh.v*k[0]):oe=addHueToRGB(oe,I.fh.v*k)),I.fs.propType&&(k.length?oe=addSaturationToRGB(oe,I.fs.v*k[0]):oe=addSaturationToRGB(oe,I.fs.v*k)),I.fb.propType&&(k.length?oe=addBrightnessToRGB(oe,I.fb.v*k[0]):oe=addBrightnessToRGB(oe,I.fb.v*k))}}for(x=0;x<T;x+=1)I=a[x].a,I.p.propType&&(F=a[x].s,k=F.getMult(u[f].anIndexes[x],n.a[x].s.totalChars),this._hasMaskedPath?k.length?s.translate(0,I.p.v[1]*k[0],-I.p.v[2]*k[1]):s.translate(0,I.p.v[1]*k,-I.p.v[2]*k):k.length?s.translate(I.p.v[0]*k[0],I.p.v[1]*k[1],-I.p.v[2]*k[2]):s.translate(I.p.v[0]*k,I.p.v[1]*k,-I.p.v[2]*k));if(e.strokeWidthAnim&&(Ce=de<0?0:de),e.strokeColorAnim&&(ve="rgb("+Math.round(ue[0]*255)+","+Math.round(ue[1]*255)+","+Math.round(ue[2]*255)+")"),e.fillColorAnim&&e.fc&&(ge="rgb("+Math.round(oe[0]*255)+","+Math.round(oe[1]*255)+","+Math.round(oe[2]*255)+")"),this._hasMaskedPath){if(s.translate(0,-e.ls),s.translate(0,r[1]*$*.01+c,0),this._pathData.p.v){B=(g.point[1]-A.point[1])/(g.point[0]-A.point[0]);var Ie=Math.atan(B)*180/Math.PI;g.point[0]<A.point[0]&&(Ie+=180),s.rotate(-Ie*Math.PI/180)}s.translate(q,se,0),p-=r[0]*u[f].an*.005,u[f+1]&&Y!==u[f+1].ind&&(p+=u[f].an/2,p+=e.tr*.001*e.finalSize)}else{switch(s.translate(l,c,0),e.ps&&s.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:s.translate(u[f].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[u[f].line]),0,0);break;case 2:s.translate(u[f].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[u[f].line])/2,0,0);break}s.translate(0,-e.ls),s.translate(Z,0,0),s.translate(r[0]*u[f].an*.005,r[1]*$*.01,0),l+=u[f].l+e.tr*.001*e.finalSize}i==="html"?be=s.toCSS():i==="svg"?be=s.to2dCSS():we=[s.props[0],s.props[1],s.props[2],s.props[3],s.props[4],s.props[5],s.props[6],s.props[7],s.props[8],s.props[9],s.props[10],s.props[11],s.props[12],s.props[13],s.props[14],s.props[15]],pe=he}o<=f?(R=new LetterProps(pe,Ce,ve,ge,be,we),this.renderedLetters.push(R),o+=1,this.lettersChangedFlag=!0):(R=this.renderedLetters[f],this.lettersChangedFlag=R.update(pe,Ce,ve,ge,be,we)||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)},ITextElement.prototype.createPathShape=function(e,t){var r,a=t.length,n,s="";for(r=0;r<a;r+=1)t[r].ty==="sh"&&(n=t[r].ks.k,s+=buildShapeString(n,n.i.length,!0,e));return s},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,a,n){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(a,n,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,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,a=[],n="";t<r;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(a.push(n),n=""):n+=e[t],t+=1;return a.push(n),a},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var a=r.it[r.it.length-1];a.s&&(a.s.k[0]=t,a.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 a=this.globalData.fontManager.getFontByName(r.f);if(a.fClass)this.layerElement.setAttribute("class",a.fClass);else{this.layerElement.setAttribute("font-family",a.fFamily);var n=r.fWeight,s=r.fStyle;this.layerElement.setAttribute("font-style",s),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",r.t);var i=r.l||[],o=!!this.globalData.fontManager.chars;t=i.length;var l,c=this.mHelper,f="",m=this.data.singleShape,u=0,d=0,p=!0,g=r.tr*.001*r.finalSize;if(m&&!o&&!r.sz){var E=this.textContainer,y="start";switch(r.j){case 1:y="end";break;case 2:y="middle";break;default:y="start";break}E.setAttribute("text-anchor",y),E.setAttribute("letter-spacing",g);var S=this.buildTextContents(r.finalText);for(t=S.length,d=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)l=this.textSpans[e].span||createNS("tspan"),l.textContent=S[e],l.setAttribute("x",0),l.setAttribute("y",d),l.style.display="inherit",E.appendChild(l),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=l,d+=r.finalLineHeight;this.layerElement.appendChild(E)}else{var b=this.textSpans.length,A;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!o||!m||e===0){if(l=b>e?this.textSpans[e].span:createNS(o?"g":"text"),b<=e){if(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=l,o){var C=createNS("g");l.appendChild(C),this.textSpans[e].childSpan=C}this.textSpans[e].span=l,this.layerElement.appendChild(l)}l.style.display="inherit"}if(c.reset(),m&&(i[e].n&&(u=-g,d+=r.yOffset,d+=p?1:0,p=!1),this.applyTextPropertiesToMatrix(r,c,i[e].line,u,d),u+=i[e].l||0,u+=g),o){A=this.globalData.fontManager.getCharData(r.finalText[e],a.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily);var P;if(A.t===1)P=new SVGCompElement(A.data,this.globalData,this);else{var N=emptyShapeData;A.data&&A.data.shapes&&(N=this.buildShapeData(A.data,r.finalSize)),P=new SVGShapeElement(N,this.globalData,this)}if(this.textSpans[e].glyph){var D=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(D.layerElement),D.destroy()}this.textSpans[e].glyph=P,P._debug=!0,P.prepareFrame(0),P.renderFrame(),this.textSpans[e].childSpan.appendChild(P.layerElement),A.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else m&&l.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),l.textContent=i[e].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}m&&l&&l.setAttribute("d",f)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,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.validateText(),(!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,a=this.textProperty.currentData.l;t=a.length;var n,s,i;for(e=0;e<t;e+=1)a[e].n||(n=r[e],s=this.textSpans[e].span,i=this.textSpans[e].glyph,i&&i.renderFrame(),n._mdf.m&&s.setAttribute("transform",n.m),n._mdf.o&&s.setAttribute("opacity",n.o),n._mdf.sw&&s.setAttribute("stroke-width",n.sw),n._mdf.sc&&s.setAttribute("stroke",n.sc),n._mdf.fc&&s.setAttribute("fill",n.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"),a=createNS("rect");a.setAttribute("width",e.w),a.setAttribute("height",e.h),a.setAttribute("x",0),a.setAttribute("y",0);var n=createElementID();r.setAttribute("id",n),r.appendChild(a),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),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 a="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(a===-1)return;if(!this.elements[a]||this.elements[a]===!0)this.buildItem(a),this.addPendingElement(r);else{var n=t[a],s=n.getMatte(this.layers[e].tt);r.setMatte(s)}}}},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 a="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,n=this.elements[a],s=n.getMatte(this.layers[t].tt);e.setMatte(s);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 a=0,n;a<t;)this.elements[a]&&this.elements[a]!==!0&&this.elements[a].getBaseElement()&&(n=this.elements[a].getBaseElement()),a+=1;n?this.layerElement.insertBefore(r,n):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,a=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=a-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 a=createNS("title"),n=createElementID();a.setAttribute("id",n),a.textContent=t.title,this.svgElement.appendChild(a),r+=n}if(t&&t.description){var s=createNS("desc"),i=createElementID();s.setAttribute("id",i),s.textContent=t.description,this.svgElement.appendChild(s),r+=" "+i}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 ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(t){var r,a=t.length,n="_";for(r=0;r<a;r+=1)n+=t[r].transform.key+"_";var s=this.sequences[n];return s||(s={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[n]=s,this.sequenceList.push(s)),s},processSequence:function(t,r){for(var a=0,n=t.transforms.length,s=r;a<n&&!r;){if(t.transforms[a].transform.mProps._mdf){s=!0;break}a+=1}if(s)for(t.finalTransform.reset(),a=n-1;a>=0;a-=1)t.finalTransform.multiply(t.transforms[a].transform.mProps.v);t._mdf=s},processSequences:function(t){var r,a=this.sequenceList.length;for(r=0;r<a;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,a=null,n=null;function s(){var l=createNS("svg"),c=createNS("filter"),f=createNS("feColorMatrix");return c.setAttribute("id",t),f.setAttribute("type","matrix"),f.setAttribute("color-interpolation-filters","sRGB"),f.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),c.appendChild(f),l.appendChild(c),l.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(l.style.display="none"),l}function i(){r||(n=s(),document.body.appendChild(n),r=createTag("canvas"),a=r.getContext("2d"),a.filter="url(#"+t+")",a.fillStyle="rgba(0,0,0,0)",a.fillRect(0,0,1,1))}function o(l){return r||i(),r.width=l.width,r.height=l.height,a.filter="url(#"+t+")",r}return{load:i,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}}(),registeredEffects={};function CVEffects(e){var t,r=e.data.ef?e.data.ef.length:0;this.filters=[];var a;for(t=0;t<r;t+=1){a=null;var n=e.data.ef[t].ty;if(registeredEffects[n]){var s=registeredEffects[n].effect;a=new s(e.effectsManager.effectElements[t],e)}a&&this.filters.push(a)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,r=this.filters.length,a=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&a.push(this.filters[t]);return a};function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r,a=this.masksProperties.length,n=!1;for(r=0;r<a;r+=1)this.masksProperties[r].mode!=="n"&&(n=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=n,n&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,t=this.element.canvasContext,r,a=this.masksProperties.length,n,s,i;for(t.beginPath(),r=0;r<a;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)),i=this.viewData[r].v,n=e.applyToPointArray(i.v[0][0],i.v[0][1],0),t.moveTo(n[0],n[1]);var o,l=i._length;for(o=1;o<l;o+=1)s=e.applyToTriplePoints(i.o[o-1],i.i[o],i.v[o]),t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);s=e.applyToTriplePoints(i.o[o-1],i.i[0],i.v[0]),t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[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 a=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(a),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var 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),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(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 a=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(a.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var n=assetLoader.getLumaCanvas(this.canvasContext.canvas),s=n.getContext("2d");s.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(n,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.renderLocalTransform(),this.setBlendMode();var r=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(r),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(r),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(e,t,r,a){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var n=4;t.ty==="rc"?n=5:t.ty==="el"?n=6:t.ty==="sr"&&(n=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,n,e);var s,i=r.length,o;for(s=0;s<i;s+=1)r[s].closed||(o={transforms:a.addTransformSequence(r[s].transforms),trNodes:[]},this.styledShapes.push(o),r[s].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},a={};if(e.ty==="fl"||e.ty==="st"?(a.c=PropertyFactory.getProp(this,e.c,1,255,this),a.c.k||(r.co="rgb("+bmFloor(a.c.v[0])+","+bmFloor(a.c.v[1])+","+bmFloor(a.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(a.s=PropertyFactory.getProp(this,e.s,1,null,this),a.e=PropertyFactory.getProp(this,e.e,1,null,this),a.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),a.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),a.g=new GradientProperty(this,e.g,this)),a.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),a.w=PropertyFactory.getProp(this,e.w,0,null,this),a.w.k||(r.wi=a.w.v),e.d){var n=new DashProperty(this,e.d,"canvas",this);a.d=n,a.d.k||(r.da=a.d.dashArray,r.do=a.d.dashoffset[0])}}else r.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(r),a.style=r,a},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,a,n){var s,i=e.length-1,o,l,c=[],f=[],m,u,d,p=[].concat(n);for(s=i;s>=0;s-=1){if(m=this.searchProcessedElement(e[s]),m?t[s]=r[m-1]:e[s]._shouldRender=a,e[s].ty==="fl"||e[s].ty==="st"||e[s].ty==="gf"||e[s].ty==="gs")m?t[s].style.closed=!1:t[s]=this.createStyleElement(e[s],p),c.push(t[s].style);else if(e[s].ty==="gr"){if(!m)t[s]=this.createGroupElement(e[s]);else for(l=t[s].it.length,o=0;o<l;o+=1)t[s].prevViewData[o]=t[s].it[o];this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,a,p)}else e[s].ty==="tr"?(m||(d=this.createTransformElement(e[s]),t[s]=d),p.push(t[s]),this.addTransformToStyleList(t[s])):e[s].ty==="sh"||e[s].ty==="rc"||e[s].ty==="el"||e[s].ty==="sr"?m||(t[s]=this.createShapeElement(e[s])):e[s].ty==="tm"||e[s].ty==="rd"||e[s].ty==="pb"||e[s].ty==="zz"||e[s].ty==="op"?(m?(u=t[s],u.closed=!1):(u=ShapeModifiers.getModifier(e[s].ty),u.init(this,e[s]),t[s]=u,this.shapeModifiers.push(u)),f.push(u)):e[s].ty==="rp"&&(m?(u=t[s],u.closed=!0):(u=ShapeModifiers.getModifier(e[s].ty),t[s]=u,u.init(this,e,s,t),this.shapeModifiers.push(u),a=!1),f.push(u));this.addProcessedElement(e[s],s+1)}for(this.removeTransformFromStyleList(),this.closeStyles(c),i=f.length,s=0;s<i;s+=1)f[s].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,a,n,s,i,o,l=this.globalData.renderer,c=this.globalData.canvasContext,f,m;for(e=0;e<t;e+=1)if(m=this.stylesList[e],f=m.type,!((f==="st"||f==="gs")&&m.wi===0||!m.data._shouldRender||m.coOp===0||this.globalData.currentGlobalAlpha===0)){for(l.save(),i=m.elements,f==="st"||f==="gs"?(l.ctxStrokeStyle(f==="st"?m.co:m.grd),l.ctxLineWidth(m.wi),l.ctxLineCap(m.lc),l.ctxLineJoin(m.lj),l.ctxMiterLimit(m.ml||0)):l.ctxFillStyle(f==="fl"?m.co:m.grd),l.ctxOpacity(m.coOp),f!=="st"&&f!=="gs"&&c.beginPath(),l.ctxTransform(m.preTransforms.finalTransform.props),a=i.length,r=0;r<a;r+=1){for((f==="st"||f==="gs")&&(c.beginPath(),m.da&&(c.setLineDash(m.da),c.lineDashOffset=m.do)),o=i[r].trNodes,s=o.length,n=0;n<s;n+=1)o[n].t==="m"?c.moveTo(o[n].p[0],o[n].p[1]):o[n].t==="c"?c.bezierCurveTo(o[n].pts[0],o[n].pts[1],o[n].pts[2],o[n].pts[3],o[n].pts[4],o[n].pts[5]):c.closePath();(f==="st"||f==="gs")&&(l.ctxStroke(),m.da&&c.setLineDash(this.dashResetter))}f!=="st"&&f!=="gs"&&this.globalData.renderer.ctxFill(m.r),l.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,a){var n,s=t.length-1,i;for(i=e,n=s;n>=0;n-=1)t[n].ty==="tr"?(i=r[n].transform,this.renderShapeTransform(e,i)):t[n].ty==="sh"||t[n].ty==="el"||t[n].ty==="rc"||t[n].ty==="sr"?this.renderPath(t[n],r[n]):t[n].ty==="fl"?this.renderFill(t[n],r[n],i):t[n].ty==="st"?this.renderStroke(t[n],r[n],i):t[n].ty==="gf"||t[n].ty==="gs"?this.renderGradientFill(t[n],r[n],i):t[n].ty==="gr"?this.renderShape(i,t[n].it,r[n].it):t[n].ty;a&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r=e.trNodes,a=t.paths,n,s,i,o=a._length;r.length=0;var l=e.transforms.finalTransform;for(i=0;i<o;i+=1){var c=a.shapes[i];if(c&&c.v){for(s=c._length,n=1;n<s;n+=1)n===1&&r.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),r.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[n],c.v[n])});s===1&&r.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&s&&(r.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[0],c.v[0])}),r.push({t:"z"}))}}e.trNodes=r}},CVShapeElement.prototype.renderPath=function(e,t){if(e.hd!==!0&&e._shouldRender){var r,a=t.styledShapes.length;for(r=0;r<a;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var a=t.style;(t.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(a.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var a=t.style,n;if(!a.grd||t.g._mdf||t.s._mdf||t.e._mdf||e.t!==1&&(t.h._mdf||t.a._mdf)){var s=this.globalData.canvasContext,i=t.s.v,o=t.e.v;if(e.t===1)n=s.createLinearGradient(i[0],i[1],o[0],o[1]);else{var l=Math.sqrt(Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)),c=Math.atan2(o[1]-i[1],o[0]-i[0]),f=t.h.v;f>=1?f=.99:f<=-1&&(f=-.99);var m=l*f,u=Math.cos(c+t.a.v)*m+i[0],d=Math.sin(c+t.a.v)*m+i[1];n=s.createRadialGradient(u,d,0,i[0],i[1],l)}var p,g=e.g.p,E=t.g.c,y=1;for(p=0;p<g;p+=1)t.g._hasOpacity&&t.g._collapsable&&(y=t.g.o[p*2+1]),n.addColorStop(E[p*4]/100,"rgba("+E[p*4+1]+","+E[p*4+2]+","+E[p*4+3]+","+y+")");a.grd=n}a.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var a=t.style,n=t.d;n&&(n._mdf||this._isFirstFrame)&&(a.da=n.dashArray,a.do=n.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(a.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(a.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 a=this.globalData.fontManager.getFontByName(e.f),n,s,i=e.l,o=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,s=e.finalText.length;var l,c,f,m,u,d,p,g,E,y,S=this.data.singleShape,b=e.tr*.001*e.finalSize,A=0,C=0,P=!0,N=0;for(n=0;n<s;n+=1){l=this.globalData.fontManager.getCharData(e.finalText[n],a.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),c=l&&l.data||{},o.reset(),S&&i[n].n&&(A=-b,C+=e.yOffset,C+=P?1:0,P=!1),u=c.shapes?c.shapes[0].it:[],p=u.length,o.scale(e.finalSize/100,e.finalSize/100),S&&this.applyTextPropertiesToMatrix(e,o,i[n].line,A,C),E=createSizedArray(p-1);var D=0;for(d=0;d<p;d+=1)if(u[d].ty==="sh"){for(m=u[d].ks.k.i.length,g=u[d].ks.k,y=[],f=1;f<m;f+=1)f===1&&y.push(o.applyToX(g.v[0][0],g.v[0][1],0),o.applyToY(g.v[0][0],g.v[0][1],0)),y.push(o.applyToX(g.o[f-1][0],g.o[f-1][1],0),o.applyToY(g.o[f-1][0],g.o[f-1][1],0),o.applyToX(g.i[f][0],g.i[f][1],0),o.applyToY(g.i[f][0],g.i[f][1],0),o.applyToX(g.v[f][0],g.v[f][1],0),o.applyToY(g.v[f][0],g.v[f][1],0));y.push(o.applyToX(g.o[f-1][0],g.o[f-1][1],0),o.applyToY(g.o[f-1][0],g.o[f-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)),E[D]=y,D+=1}S&&(A+=i[n].l,A+=b),this.textSpans[N]?this.textSpans[N].elem=E:this.textSpans[N]={elem:E},N+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var t,r,a,n,s,i,o=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;r=l.length;var c,f=null,m=null,u=null,d,p,g=this.globalData.renderer;for(t=0;t<r;t+=1)if(!l[t].n){if(c=o[t],c&&(g.save(),g.ctxTransform(c.p),g.ctxOpacity(c.o)),this.fill){for(c&&c.fc?f!==c.fc&&(g.ctxFillStyle(c.fc),f=c.fc):f!==this.values.fill&&(f=this.values.fill,g.ctxFillStyle(this.values.fill)),d=this.textSpans[t].elem,n=d.length,this.globalData.canvasContext.beginPath(),a=0;a<n;a+=1)for(p=d[a],i=p.length,this.globalData.canvasContext.moveTo(p[0],p[1]),s=2;s<i;s+=6)this.globalData.canvasContext.bezierCurveTo(p[s],p[s+1],p[s+2],p[s+3],p[s+4],p[s+5]);this.globalData.canvasContext.closePath(),g.ctxFill()}if(this.stroke){for(c&&c.sw?u!==c.sw&&(u=c.sw,g.ctxLineWidth(c.sw)):u!==this.values.sWidth&&(u=this.values.sWidth,g.ctxLineWidth(this.values.sWidth)),c&&c.sc?m!==c.sc&&(m=c.sc,g.ctxStrokeStyle(c.sc)):m!==this.values.stroke&&(m=this.values.stroke,g.ctxStrokeStyle(this.values.stroke)),d=this.textSpans[t].elem,n=d.length,this.globalData.canvasContext.beginPath(),a=0;a<n;a+=1)for(p=d[a],i=p.length,this.globalData.canvasContext.moveTo(p[0],p[1]),s=2;s<i;s+=6)this.globalData.canvasContext.bezierCurveTo(p[s],p[s+1],p[s+2],p[s+3],p[s+4],p[s+5]);this.globalData.canvasContext.closePath(),g.ctxStroke()}c&&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,a=this.img.height,n=r/a,s=this.assetData.w/this.assetData.h,i,o,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;n>s&&l==="xMidYMid slice"||n<s&&l!=="xMidYMid slice"?(o=a,i=o*s):(i=r,o=i/s),t.drawImage(this.img,(r-i)/2,(a-o)/2,i,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(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,r,a){this.canvasContext.fillRect(e,t,r,a)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var 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.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){this.reset();var r,a;e?(r=e,a=t,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=a):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,a=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=a*this.renderConfig.dpr);var n,s;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var i=this.renderConfig.preserveAspectRatio.split(" "),o=i[1]||"meet",l=i[0]||"xMidYMid",c=l.substr(0,4),f=l.substr(4);n=r/a,s=this.transformCanvas.w/this.transformCanvas.h,s>n&&o==="meet"||s<n&&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=a/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.h/this.renderConfig.dpr)),c==="xMid"&&(s<n&&o==="meet"||s>n&&o==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(a/this.transformCanvas.h))/2*this.renderConfig.dpr:c==="xMax"&&(s<n&&o==="meet"||s>n&&o==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(a/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,f==="YMid"&&(s>n&&o==="meet"||s<n&&o==="slice")?this.transformCanvas.ty=(a-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:f==="YMax"&&(s>n&&o==="meet"||s<n&&o==="slice")?this.transformCanvas.ty=(a-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=a/(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,a=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=a-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=a-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 CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var e,t=15;for(e=0;e<t;e+=1){var r=new CanvasContext;this.stack[e]=r}this._length=t,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var e=this._length*2,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t=this.stack[this.cArrPos],r=t.transform,a,n=this.cTr.props;for(a=0;a<16;a+=1)n[a]=r[a];if(e){this.nativeContext.restore();var s=this.stack[this.cArrPos+1];this.appliedFillStyle=s.fillStyle,this.appliedStrokeStyle=s.strokeStyle,this.appliedLineWidth=s.lineWidth,this.appliedLineCap=s.lineCap,this.appliedLineJoin=s.lineJoin,this.appliedMiterLimit=s.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(e||t.opacity!==-1&&this.currentOpacity!==t.opacity)&&(this.nativeContext.globalAlpha=t.opacity,this.currentOpacity=t.opacity),this.currentFillStyle=t.fillStyle,this.currentStrokeStyle=t.strokeStyle,this.currentLineWidth=t.lineWidth,this.currentLineCap=t.lineCap,this.currentLineJoin=t.lineJoin,this.currentMiterLimit=t.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r=this.stack[this.cArrPos],a;for(a=0;a<16;a+=1)r.transform[a]=t[a];this.cArrPos+=1;var n=this.stack[this.cArrPos];n.opacity=r.opacity,n.fillStyle=r.fillStyle,n.strokeStyle=r.strokeStyle,n.lineWidth=r.lineWidth,n.lineCap=r.lineCap,n.lineJoin=r.lineJoin,n.miterLimit=r.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var r=t.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,r,a){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,r,a)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(e,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",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var 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,a=e.length;for(r=0;r<a;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,a=e.transformers,n,s=r._length,i,o,l,c;if(!(s<=1)){for(n=0;n<s-1;n+=1)i=this.getTransformedPoint(a,r.v[n]),o=this.getTransformedPoint(a,r.o[n]),l=this.getTransformedPoint(a,r.i[n+1]),c=this.getTransformedPoint(a,r.v[n+1]),this.checkBounds(i,o,l,c,t);r.c&&(i=this.getTransformedPoint(a,r.v[n]),o=this.getTransformedPoint(a,r.o[n]),l=this.getTransformedPoint(a,r.i[0]),c=this.getTransformedPoint(a,r.v[0]),this.checkBounds(i,o,l,c,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,a,n){this.getBoundsOfCurve(e,t,r,a);var s=this.shapeBoundingBox;n.x=bmMin(s.left,n.x),n.xMax=bmMax(s.right,n.xMax),n.y=bmMin(s.top,n.y),n.yMax=bmMax(s.bottom,n.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,a){for(var n=[[e[0],a[0]],[e[1],a[1]]],s,i,o,l,c,f,m,u=0;u<2;++u)i=6*e[u]-12*t[u]+6*r[u],s=-3*e[u]+9*t[u]-9*r[u]+3*a[u],o=3*t[u]-3*e[u],i|=0,s|=0,o|=0,s===0&&i===0||(s===0?(l=-o/i,l>0&&l<1&&n[u].push(this.calculateF(l,e,t,r,a,u))):(c=i*i-4*o*s,c>=0&&(f=(-i+bmSqrt(c))/(2*s),f>0&&f<1&&n[u].push(this.calculateF(f,e,t,r,a,u)),m=(-i-bmSqrt(c))/(2*s),m>0&&m<1&&n[u].push(this.calculateF(m,e,t,r,a,u)))));this.shapeBoundingBox.left=bmMin.apply(null,n[0]),this.shapeBoundingBox.top=bmMin.apply(null,n[1]),this.shapeBoundingBox.right=bmMax.apply(null,n[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,n[1])},HShapeElement.prototype.calculateF=function(e,t,r,a,n,s){return bmPow(1-e,3)*t[s]+3*bmPow(1-e,2)*e*r[s]+3*(1-e)*bmPow(e,2)*a[s]+bmPow(e,3)*n[s]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,a=e.length;for(r=0;r<a;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 a=0;a<e.keyframes.length;a+=1){var n=e.keyframes[a].s;n>r&&(r=n)}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 a=this.shapeCont.style,n="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";a.transform=n,a.webkitTransform=n}}};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 a=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",a.fClass)this.innerElem.className=a.fClass;else{t.fontFamily=a.fFamily;var n=e.fWeight,s=e.fStyle;t.fontStyle=s,t.fontWeight=n}var i,o,l=e.l;o=l.length;var c,f,m,u=this.mHelper,d,p="",g=0;for(i=0;i<o;i+=1){if(this.globalData.fontManager.chars?(this.textPaths[g]?c=this.textPaths[g]:(c=createNS("path"),c.setAttribute("stroke-linecap",lineCapEnum[1]),c.setAttribute("stroke-linejoin",lineJoinEnum[2]),c.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[g]?(f=this.textSpans[g],m=f.children[0]):(f=createTag("div"),f.style.lineHeight=0,m=createNS("svg"),m.appendChild(c),styleDiv(f)))):this.isMasked?c=this.textPaths[g]?this.textPaths[g]:createNS("text"):this.textSpans[g]?(f=this.textSpans[g],c=this.textPaths[g]):(f=createTag("span"),styleDiv(f),c=createTag("span"),styleDiv(c),f.appendChild(c)),this.globalData.fontManager.chars){var E=this.globalData.fontManager.getCharData(e.finalText[i],a.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),y;if(E?y=E.data:y=null,u.reset(),y&&y.shapes&&y.shapes.length&&(d=y.shapes[0].it,u.scale(e.finalSize/100,e.finalSize/100),p=this.createPathShape(u,d),c.setAttribute("d",p)),this.isMasked)this.innerElem.appendChild(c);else{if(this.innerElem.appendChild(f),y&&y.shapes){document.body.appendChild(m);var S=m.getBBox();m.setAttribute("width",S.width+2),m.setAttribute("height",S.height+2),m.setAttribute("viewBox",S.x-1+" "+(S.y-1)+" "+(S.width+2)+" "+(S.height+2));var b=m.style,A="translate("+(S.x-1)+"px,"+(S.y-1)+"px)";b.transform=A,b.webkitTransform=A,l[i].yOffset=S.y-1}else m.setAttribute("width",1),m.setAttribute("height",1);f.appendChild(m)}}else if(c.textContent=l[i].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(c);else{this.innerElem.appendChild(f);var C=c.style,P="translate3d(0,"+-e.finalSize/1.2+"px,0)";C.transform=P,C.webkitTransform=P}this.isMasked?this.textSpans[g]=c:this.textSpans[g]=f,this.textSpans[g].style.display="block",this.textPaths[g]=c,g+=1}for(;g<this.textSpans.length;)this.textSpans[g].style.display="none",g+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var 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,a,n=0,s=this.textAnimator.renderedLetters,i=this.textProperty.currentData.l;a=i.length;var o,l,c;for(r=0;r<a;r+=1)i[r].n?n+=1:(l=this.textSpans[r],c=this.textPaths[r],o=s[n],n+=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&&c.setAttribute("stroke-width",o.sw),o.sc&&o._mdf.sc&&c.setAttribute("stroke",o.sc),o.fc&&o._mdf.fc&&(c.setAttribute("fill",o.fc),c.style.color=o.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var f=this.innerElem.getBBox();this.currentBBox.w!==f.width&&(this.currentBBox.w=f.width,this.svgElement.setAttribute("width",f.width)),this.currentBBox.h!==f.height&&(this.currentBBox.h=f.height,this.svgElement.setAttribute("height",f.height));var m=1;if(this.currentBBox.w!==f.width+m*2||this.currentBBox.h!==f.height+m*2||this.currentBBox.x!==f.x-m||this.currentBBox.y!==f.y-m){this.currentBBox.w=f.width+m*2,this.currentBBox.h=f.height+m*2,this.currentBBox.x=f.x-m,this.currentBBox.y=f.y-m,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var u="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=u,e.webkitTransform=u}}}};function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var a=PropertyFactory.getProp;if(this.pe=a(this,e.pe,0,0,this),e.ks.p.s?(this.px=a(this,e.ks.p.x,1,0,this),this.py=a(this,e.ks.p.y,1,0,this),this.pz=a(this,e.ks.p.z,1,0,this)):this.p=a(this,e.ks.p,1,0,this),e.ks.a&&(this.a=a(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var n,s=e.ks.or.k.length;for(n=0;n<s;n+=1)e.ks.or.k[n].to=null,e.ks.or.k[n].ti=null}this.or=a(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=a(this,e.ks.rx,0,degToRads,this),this.ry=a(this,e.ks.ry,0,degToRads,this),this.rz=a(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,a,n;for(e=0;e<t;e+=1)if(r=this.comp.threeDElements[e],r.type==="3d"){a=r.perspectiveElem.style,n=r.container.style;var s=this.pe.v+"px",i="0px 0px 0px",o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";a.perspective=s,a.webkitPerspective=s,n.transformOrigin=i,n.mozTransformOrigin=i,n.webkitTransformOrigin=i,a.transform=o,a.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 a=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-a.p.v[0],-a.p.v[1],a.p.v[2]),this.mat.rotateX(-a.or.v[0]).rotateY(-a.or.v[1]).rotateZ(a.or.v[2]),this.mat.rotateX(-a.rx.v).rotateY(-a.ry.v).rotateZ(a.rz.v),this.mat.scale(1/a.s.v[0],1/a.s.v[1],1/a.s.v[2]),this.mat.translate(a.a.v[0],a.a.v[1],a.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 n;this.p?n=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:n=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var s=Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2)+Math.pow(n[2],2)),i=[n[0]/s,n[1]/s,n[2]/s],o=Math.sqrt(i[2]*i[2]+i[0]*i[0]),l=Math.atan2(i[1],o),c=Math.atan2(i[0],-i[2]);this.mat.rotateY(c).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 f=!this._prevMat.equals(this.mat);if((f||this.pe._mdf)&&this.comp.threeDElements){r=this.comp.threeDElements.length;var m,u,d;for(t=0;t<r;t+=1)if(m=this.comp.threeDElements[t],m.type==="3d"){if(f){var p=this.mat.toCSS();d=m.container.style,d.transform=p,d.webkitTransform=p}this.pe._mdf&&(u=m.perspectiveElem.style,u.perspective=this.pe.v+"px",u.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 a=this.layers[t];if(!a.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var n=0,s,i,o;n<t;)this.elements[n]&&this.elements[n]!==!0&&this.elements[n].getBaseElement&&(i=this.elements[n],o=this.layers[n].ddd?this.getThreeDContainerByPos(n):i.getBaseElement(),s=o||s),n+=1;s?(!a.ddd||!this.supports3d)&&this.layerElement.insertBefore(r,s):(!a.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"),a,n;styleDiv(r);var s=createTag("div");if(styleDiv(s),t==="3d"){a=r.style,a.width=this.globalData.compSize.w+"px",a.height=this.globalData.compSize.h+"px";var i="50% 50%";a.webkitTransformOrigin=i,a.mozTransformOrigin=i,a.transformOrigin=i,n=s.style;var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.transform=o,n.webkitTransform=o}r.appendChild(s);var l={container:s,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,a="";for(e=0;e<t;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(a!=="3d"&&(a="3d",r=this.createThreeDContainer(e,"3d")),r.endPos=Math.max(r.endPos,e)):(a!=="2d"&&(a="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,a=this.threeDElements.length;r<a;){if(t<=this.threeDElements[r].endPos){for(var n=this.threeDElements[r].startPos,s;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(s=this.elements[n].getBaseElement()),n+=1;s?this.threeDElements[r].container.insertBefore(e,s):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,a=t.style;a.width=e.w+"px",a.height=e.h+"px",this.resizerElem=t,styleDiv(t),a.transformStyle="flat",a.mozTransformStyle="flat",a.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),a.overflow="hidden";var n=createNS("svg");n.setAttribute("width","1"),n.setAttribute("height","1"),styleDiv(n),this.resizerElem.appendChild(n);var s=createNS("defs");n.appendChild(s),this.data=e,this.setupGlobalData(e,n),this.globalData.defs=s,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,a=this.globalData.compSize.w/this.globalData.compSize.h,n,s,i,o;a>r?(n=e/this.globalData.compSize.w,s=e/this.globalData.compSize.w,i=0,o=(t-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(n=t/this.globalData.compSize.h,s=t/this.globalData.compSize.h,i=(e-this.globalData.compSize.w*(t/this.globalData.compSize.h))/2,o=0);var l=this.resizerElem.style;l.webkitTransform="matrix3d("+n+",0,0,0,0,"+s+",0,0,0,0,1,0,"+i+","+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,a=this.threeDElements.length;for(r=0;r<a;r+=1){var n=this.threeDElements[r].perspectiveElem.style;n.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(t,2))+"px",n.perspective=n.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,a=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var n=this.createComp(e[t],a,this.globalData.comp,null);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}};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,a;r<t;)this.elements[r]&&this.elements[r].getBaseElement&&(a=this.elements[r].getBaseElement()),r+=1;a?this.layerElement.insertBefore(e,a):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 a=0,n=e.layers.length;a<n;){if(e.layers[a].nm===r||e.layers[a].ind===r)return e.elements[a].layerInterface;a+=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}}();function _typeof$2(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(r){return typeof r}:_typeof$2=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$2(e)}function seedRandom(e,t){var r=this,a=256,n=6,s=52,i="random",o=t.pow(a,n),l=t.pow(2,s),c=l*2,f=a-1,m;function u(b,A,C){var P=[];A=A===!0?{entropy:!0}:A||{};var N=E(g(A.entropy?[b,S(e)]:b===null?y():b,3),P),D=new d(P),V=function(){for(var O=D.g(n),_=o,G=0;O<l;)O=(O+G)*a,_*=a,G=D.g(1);for(;O>=c;)O/=2,_/=2,G>>>=1;return(O+G)/_};return V.int32=function(){return D.g(4)|0},V.quick=function(){return D.g(4)/4294967296},V.double=V,E(S(D.S),e),(A.pass||C||function(B,O,_,G){return G&&(G.S&&p(G,D),B.state=function(){return p(D,{})}),_?(t[i]=B,O):B})(V,N,"global"in A?A.global:this==t,A.state)}t["seed"+i]=u;function d(b){var A,C=b.length,P=this,N=0,D=P.i=P.j=0,V=P.S=[];for(C||(b=[C++]);N<a;)V[N]=N++;for(N=0;N<a;N++)V[N]=V[D=f&D+b[N%C]+(A=V[N])],V[D]=A;P.g=function(B){for(var O,_=0,G=P.i,$=P.j,H=P.S;B--;)O=H[G=f&G+1],_=_*a+H[f&(H[G]=H[$=f&$+O])+(H[$]=O)];return P.i=G,P.j=$,_}}function p(b,A){return A.i=b.i,A.j=b.j,A.S=b.S.slice(),A}function g(b,A){var C=[],P=_typeof$2(b),N;if(A&&P=="object")for(N in b)try{C.push(g(b[N],A-1))}catch(D){}return C.length?C:P=="string"?b:b+"\0"}function E(b,A){for(var C=b+"",P,N=0;N<C.length;)A[f&N]=f&(P^=A[f&N]*19)+C.charCodeAt(N++);return S(A)}function y(){try{var b=new Uint8Array(a);return(r.crypto||r.msCrypto).getRandomValues(b),S(b)}catch(P){var A=r.navigator,C=A&&A.plugins;return[+new Date,r,C,r.screen,S(e)]}}function S(b){return String.fromCharCode.apply(0,b)}E(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(r){return typeof r}:_typeof$1=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return e==="number"||t instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var t=_typeof$1(e);if(t==="number"||e instanceof Number||t==="boolean")return-e;if($bm_isInstanceOfArray(e)){var r,a=e.length,n=[];for(r=0;r<a;r+=1)n[r]=-e[r];return n}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$1(e),a=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(a,t)||r==="string"||a==="string")return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(a,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 n=0,s=e.length,i=t.length,o=[];n<s||n<i;)(typeof e[n]=="number"||e[n]instanceof Number)&&(typeof t[n]=="number"||t[n]instanceof Number)?o[n]=e[n]+t[n]:o[n]=t[n]===void 0?e[n]:e[n]||t[n],n+=1;return o}return 0}var add=sum;function sub(e,t){var r=_typeof$1(e),a=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(a,t))return r==="string"&&(e=parseInt(e,10)),a==="string"&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(a,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 n=0,s=e.length,i=t.length,o=[];n<s||n<i;)(typeof e[n]=="number"||e[n]instanceof Number)&&(typeof t[n]=="number"||t[n]instanceof Number)?o[n]=e[n]-t[n]:o[n]=t[n]===void 0?e[n]:e[n]||t[n],n+=1;return o}return 0}function mul(e,t){var r=_typeof$1(e),a=_typeof$1(t),n;if(isNumerable(r,e)&&isNumerable(a,t))return e*t;var s,i;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(i=e.length,n=createTypedArray("float32",i),s=0;s<i;s+=1)n[s]=e[s]*t;return n}if(isNumerable(r,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,n=createTypedArray("float32",i),s=0;s<i;s+=1)n[s]=e*t[s];return n}return 0}function div(e,t){var r=_typeof$1(e),a=_typeof$1(t),n;if(isNumerable(r,e)&&isNumerable(a,t))return e/t;var s,i;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(i=e.length,n=createTypedArray("float32",i),s=0;s<i;s+=1)n[s]=e[s]/t;return n}if(isNumerable(r,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,n=createTypedArray("float32",i),s=0;s<i;s+=1)n[s]=e/t[s];return n}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 a=r;r=t,t=a}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,a=Math.min(e.length,t.length),n=0;for(r=0;r<a;r+=1)n+=Math.pow(t[r]-e[r],2);return Math.sqrt(n)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t=e[0],r=e[1],a=e[2],n=Math.max(t,r,a),s=Math.min(t,r,a),i,o,l=(n+s)/2;if(n===s)i=0,o=0;else{var c=n-s;switch(o=l>.5?c/(2-n-s):c/(n+s),n){case t:i=(r-a)/c+(r<a?6:0);break;case r:i=(a-t)/c+2;break;case a:i=(t-r)/c+4;break}i/=6}return[i,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],a=e[2],n,s,i;if(r===0)n=a,i=a,s=a;else{var o=a<.5?a*(1+r):a+r-a*r,l=2*a-o;n=hue2rgb(l,o,t+1/3),s=hue2rgb(l,o,t),i=hue2rgb(l,o,t-1/3)}return[n,s,i,e[3]]}function linear(e,t,r,a,n){if((a===void 0||n===void 0)&&(a=t,n=r,t=0,r=1),r<t){var s=r;r=t,t=s}if(e<=t)return a;if(e>=r)return n;var i=r===t?0:(e-t)/(r-t);if(!a.length)return a+(n-a)*i;var o,l=a.length,c=createTypedArray("float32",l);for(o=0;o<l;o+=1)c[o]=a[o]+(n[o]-a[o])*i;return c}function random(e,t){if(t===void 0&&(e===void 0?(e=0,t=1):(t=e,e=void 0)),t.length){var r,a=t.length;e||(e=createTypedArray("float32",a));var n=createTypedArray("float32",a),s=BMMath.random();for(r=0;r<a;r+=1)n[r]=e[r]+s*(t[r]-e[r]);return n}e===void 0&&(e=0);var i=BMMath.random();return e+i*(t-e)}function createPath(e,t,r,a){var n,s=e.length,i=shapePool.newElement();i.setPathData(!!a,s);var o=[0,0],l,c;for(n=0;n<s;n+=1)l=t&&t[n]?t[n]:o,c=r&&r[n]?r[n]:o,i.setTripleAt(e[n][0],e[n][1],c[0]+e[n][0],c[1]+e[n][1],l[0]+e[n][0],l[1]+e[n][1],n,!0);return i}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 a,n,s=this.pv.length?this.pv.length:1,i=createTypedArray("float32",s);t=5;var o=Math.floor(time*t);for(a=0,n=0;a<o;){for(n=0;n<s;n+=1)i[n]+=-r+r*2*BMMath.random();a+=1}var l=time*t,c=l-Math.floor(l),f=createTypedArray("float32",s);if(s>1){for(n=0;n<s;n+=1)f[n]=this.pv[n]+i[n]+(-r+r*2*BMMath.random())*c;return f}return this.pv+i[0]+(-r+r*2*BMMath.random())*c}).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]],a=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads,n=-Math.atan2(r[1],r[2])/degToRads;return[n,a,0]}function easeOut(e,t,r,a,n){return applyEase(easeOutBez,e,t,r,a,n)}function easeIn(e,t,r,a,n){return applyEase(easeInBez,e,t,r,a,n)}function ease(e,t,r,a,n){return applyEase(easeInOutBez,e,t,r,a,n)}function applyEase(e,t,r,a,n,s){n===void 0?(n=r,s=a):t=(t-r)/(a-r),t>1?t=1:t<0&&(t=0);var i=e(t);if($bm_isInstanceOfArray(n)){var o,l=n.length,c=createTypedArray("float32",l);for(o=0;o<l;o+=1)c[o]=(s[o]-n[o])*i+n[o];return c}return(s-n)*i+n}function nearestKey(e){var t,r=data.k.length,a,n;if(!data.k.length||typeof data.k[0]=="number")a=0,n=0;else if(a=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)a=1,n=data.k[0].t;else{for(t=0;t<r-1;t+=1)if(e===data.k[t].t){a=t+1,n=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?(a=t+2,n=data.k[t+1].t):(a=t+1,n=data.k[t].t);break}a===-1&&(a=t+1,n=data.k[t].t)}var s={};return s.index=a,s.time=n/elem.comp.globalData.frameRate,s}function key(e){var t,r,a;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 n=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(a=n.length,r=0;r<a;r+=1)t[r]=n[r],t.value[r]=n[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,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={};e.initExpressions=t,e.resetFrame=ExpressionManager.resetFrame;function t(r){var a=0,n=[];function s(){a+=1}function i(){a-=1,a===0&&l()}function o(c){n.indexOf(c)===-1&&n.push(c)}function l(){var c,f=n.length;for(c=0;c<f;c+=1)n[c].release();n.length=0}r.renderer.compInterface=CompExpressionInterface(r.renderer),r.renderer.globalData.projectInterface.registerComposition(r.renderer),r.renderer.globalData.pushExpression=s,r.renderer.globalData.popExpression=i,r.renderer.globalData.registerExpressionProperty=o}return e}(),MaskManagerInterface=function(){function e(r,a){this._mask=r,this._data=a}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(a){var n=createSizedArray(a.viewData.length),s,i=a.viewData.length;for(s=0;s<i;s+=1)n[s]=new e(a.viewData[s],a.masksProperties[s]);var o=function(c){for(s=0;s<i;){if(a.masksProperties[s].nm===c)return n[s];s+=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(i,o,l){Object.defineProperty(i,"velocity",{get:function(){return o.getVelocityAtTime(o.comp.currentFrame)}}),i.numKeys=o.keyframes?o.keyframes.length:0,i.key=function(c){if(!i.numKeys)return 0;var f="";"s"in o.keyframes[c-1]?f=o.keyframes[c-1].s:"e"in o.keyframes[c-2]?f=o.keyframes[c-2].e:f=o.keyframes[c-2].s;var m=l==="unidimensional"?new Number(f):Object.assign({},f);return m.time=o.keyframes[c-1].t/o.elem.comp.globalData.frameRate,m.value=l==="unidimensional"?f[0]:f,m},i.valueAtTime=o.getValueAtTime,i.speedAtTime=o.getSpeedAtTime,i.velocityAtTime=o.getVelocityAtTime,i.propertyGroup=o.propertyGroup}function a(i){(!i||!("pv"in i))&&(i=e);var o=1/i.mult,l=i.pv*o,c=new Number(l);return c.value=l,r(c,i,"unidimensional"),function(){return i.k&&i.getValue(),l=i.v*o,c.value!==l&&(c=new Number(l),c.value=l,r(c,i,"unidimensional")),c}}function n(i){(!i||!("pv"in i))&&(i=t);var o=1/i.mult,l=i.data&&i.data.l||i.pv.length,c=createTypedArray("float32",l),f=createTypedArray("float32",l);return c.value=f,r(c,i,"multidimensional"),function(){i.k&&i.getValue();for(var m=0;m<l;m+=1)f[m]=i.v[m]*o,c[m]=f[m];return c}}function s(){return e}return function(i){return i?i.propType==="unidimensional"?a(i):n(i):s}}(),TransformExpressionInterface=function(){return function(e){function t(i){switch(i){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,a,n,s;return e.p?s=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),a=ExpressionPropertyInterface(e.py),e.pz&&(n=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?s():[r(),a(),n?n():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(c){var f=new Matrix;if(c!==void 0){var m=this._elem.finalTransform.mProp.getValueAtTime(c);m.clone(f)}else{var u=this._elem.finalTransform.mProp;u.applyToMatrix(f)}return f}function t(c,f){var m=this.getMatrix(f);return m.props[12]=0,m.props[13]=0,m.props[14]=0,this.applyPoint(m,c)}function r(c,f){var m=this.getMatrix(f);return this.applyPoint(m,c)}function a(c,f){var m=this.getMatrix(f);return m.props[12]=0,m.props[13]=0,m.props[14]=0,this.invertPoint(m,c)}function n(c,f){var m=this.getMatrix(f);return this.invertPoint(m,c)}function s(c,f){if(this._elem.hierarchy&&this._elem.hierarchy.length){var m,u=this._elem.hierarchy.length;for(m=0;m<u;m+=1)this._elem.hierarchy[m].finalTransform.mProp.applyToMatrix(c)}return c.applyToPointArray(f[0],f[1],f[2]||0)}function i(c,f){if(this._elem.hierarchy&&this._elem.hierarchy.length){var m,u=this._elem.hierarchy.length;for(m=0;m<u;m+=1)this._elem.hierarchy[m].finalTransform.mProp.applyToMatrix(c)}return c.inversePoint(f)}function o(c){var f=new Matrix;if(f.reset(),this._elem.finalTransform.mProp.applyToMatrix(f),this._elem.hierarchy&&this._elem.hierarchy.length){var m,u=this._elem.hierarchy.length;for(m=0;m<u;m+=1)this._elem.hierarchy[m].finalTransform.mProp.applyToMatrix(f);return f.inversePoint(c)}return f.inversePoint(c)}function l(){return[1,1,1,1]}return function(c){var f;function m(g){d.mask=new MaskManagerInterface(g,c)}function u(g){d.effect=g}function d(g){switch(g){case"ADBE Root Vectors Group":case"Contents":case 2:return d.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return f;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return d.effect;case"ADBE Text Properties":return d.textInterface;default:return null}}d.getMatrix=e,d.invertPoint=i,d.applyPoint=s,d.toWorld=r,d.toWorldVec=t,d.fromWorld=n,d.fromWorldVec=a,d.toComp=r,d.fromComp=o,d.sampleImage=l,d.sourceRectAtTime=c.sourceRectAtTime.bind(c),d._elem=c,f=TransformExpressionInterface(c.finalTransform.mProp);var p=getDescriptor(f,"anchorPoint");return Object.defineProperties(d,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(f,"rotation"),scale:getDescriptor(f,"scale"),position:getDescriptor(f,"position"),opacity:getDescriptor(f,"opacity"),anchorPoint:p,anchor_point:p,transform:{get:function(){return f}},active:{get:function(){return c.isInRange}}}),d.startTime=c.data.st,d.index=c.data.ind,d.source=c.data.refId,d.height=c.data.ty===0?c.data.h:100,d.width=c.data.ty===0?c.data.w:100,d.inPoint=c.data.ip/c.comp.globalData.frameRate,d.outPoint=c.data.op/c.comp.globalData.frameRate,d._name=c.data.nm,d.registerMaskInterface=m,d.registerEffectsInterface=u,d}}(),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 a(n){return n=n===void 0?1:n,n<=0?r:t(n-1)}return a}}(),EffectsExpressionInterface=function(){var e={createEffectsInterface:t};function t(n,s){if(n.effectsManager){var i=[],o=n.data.ef,l,c=n.effectsManager.effectElements.length;for(l=0;l<c;l+=1)i.push(r(o[l],n.effectsManager.effectElements[l],s,n));var f=n.data.ef||[],m=function(d){for(l=0,c=f.length;l<c;){if(d===f[l].nm||d===f[l].mn||d===f[l].ix)return i[l];l+=1}return null};return Object.defineProperty(m,"numProperties",{get:function(){return f.length}}),m}return null}function r(n,s,i,o){function l(d){for(var p=n.ef,g=0,E=p.length;g<E;){if(d===p[g].nm||d===p[g].mn||d===p[g].ix)return p[g].ty===5?f[g]:f[g]();g+=1}throw new Error}var c=propertyGroupFactory(l,i),f=[],m,u=n.ef.length;for(m=0;m<u;m+=1)n.ef[m].ty===5?f.push(r(n.ef[m],s.effectElements[m],s.effectElements[m].propertyGroup,o)):f.push(a(s.effectElements[m],n.ef[m].ty,o,c));return n.mn==="ADBE Color Control"&&Object.defineProperty(l,"color",{get:function(){return f[0]()}}),Object.defineProperties(l,{numProperties:{get:function(){return n.np}},_name:{value:n.nm},propertyGroup:{value:c}}),l.enabled=n.en!==0,l.active=l.enabled,l}function a(n,s,i,o){var l=ExpressionPropertyInterface(n.p);function c(){return s===10?i.comp.compInterface(n.p.v):l()}return n.p.setGroupProperty&&n.p.setGroupProperty(PropertyInterface("",o)),c}return e}(),ShapePathInterface=function(){return function(t,r,a){var n=r.sh;function s(o){return o==="Shape"||o==="shape"||o==="Path"||o==="path"||o==="ADBE Vector Shape"||o===2?s.path:null}var i=propertyGroupFactory(s,a);return n.setGroupProperty(PropertyInterface("Path",i)),Object.defineProperties(s,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:a}}),s}}(),ShapeExpressionInterface=function(){function e(p,g,E){var y=[],S,b=p?p.length:0;for(S=0;S<b;S+=1)p[S].ty==="gr"?y.push(r(p[S],g[S],E)):p[S].ty==="fl"?y.push(a(p[S],g[S],E)):p[S].ty==="st"?y.push(i(p[S],g[S],E)):p[S].ty==="tm"?y.push(o(p[S],g[S],E)):p[S].ty==="tr"||(p[S].ty==="el"?y.push(c(p[S],g[S],E)):p[S].ty==="sr"?y.push(f(p[S],g[S],E)):p[S].ty==="sh"?y.push(ShapePathInterface(p[S],g[S],E)):p[S].ty==="rc"?y.push(m(p[S],g[S],E)):p[S].ty==="rd"?y.push(u(p[S],g[S],E)):p[S].ty==="rp"?y.push(d(p[S],g[S],E)):p[S].ty==="gf"?y.push(n(p[S],g[S],E)):y.push(s(p[S],g[S])));return y}function t(p,g,E){var y,S=function(C){for(var P=0,N=y.length;P<N;){if(y[P]._name===C||y[P].mn===C||y[P].propertyIndex===C||y[P].ix===C||y[P].ind===C)return y[P];P+=1}return typeof C=="number"?y[C-1]:null};S.propertyGroup=propertyGroupFactory(S,E),y=e(p.it,g.it,S.propertyGroup),S.numProperties=y.length;var b=l(p.it[p.it.length-1],g.it[g.it.length-1],S.propertyGroup);return S.transform=b,S.propertyIndex=p.cix,S._name=p.nm,S}function r(p,g,E){var y=function(C){switch(C){case"ADBE Vectors Group":case"Contents":case 2:return y.content;default:return y.transform}};y.propertyGroup=propertyGroupFactory(y,E);var S=t(p,g,y.propertyGroup),b=l(p.it[p.it.length-1],g.it[g.it.length-1],y.propertyGroup);return y.content=S,y.transform=b,Object.defineProperty(y,"_name",{get:function(){return p.nm}}),y.numProperties=p.np,y.propertyIndex=p.ix,y.nm=p.nm,y.mn=p.mn,y}function a(p,g,E){function y(S){return S==="Color"||S==="color"?y.color:S==="Opacity"||S==="opacity"?y.opacity:null}return Object.defineProperties(y,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},_name:{value:p.nm},mn:{value:p.mn}}),g.c.setGroupProperty(PropertyInterface("Color",E)),g.o.setGroupProperty(PropertyInterface("Opacity",E)),y}function n(p,g,E){function y(S){return S==="Start Point"||S==="start point"?y.startPoint:S==="End Point"||S==="end point"?y.endPoint:S==="Opacity"||S==="opacity"?y.opacity:null}return Object.defineProperties(y,{startPoint:{get:ExpressionPropertyInterface(g.s)},endPoint:{get:ExpressionPropertyInterface(g.e)},opacity:{get:ExpressionPropertyInterface(g.o)},type:{get:function(){return"a"}},_name:{value:p.nm},mn:{value:p.mn}}),g.s.setGroupProperty(PropertyInterface("Start Point",E)),g.e.setGroupProperty(PropertyInterface("End Point",E)),g.o.setGroupProperty(PropertyInterface("Opacity",E)),y}function s(){function p(){return null}return p}function i(p,g,E){var y=propertyGroupFactory(N,E),S=propertyGroupFactory(P,y);function b(D){Object.defineProperty(P,p.d[D].nm,{get:ExpressionPropertyInterface(g.d.dataProps[D].p)})}var A,C=p.d?p.d.length:0,P={};for(A=0;A<C;A+=1)b(A),g.d.dataProps[A].p.setGroupProperty(S);function N(D){return D==="Color"||D==="color"?N.color:D==="Opacity"||D==="opacity"?N.opacity:D==="Stroke Width"||D==="stroke width"?N.strokeWidth:null}return Object.defineProperties(N,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},strokeWidth:{get:ExpressionPropertyInterface(g.w)},dash:{get:function(){return P}},_name:{value:p.nm},mn:{value:p.mn}}),g.c.setGroupProperty(PropertyInterface("Color",y)),g.o.setGroupProperty(PropertyInterface("Opacity",y)),g.w.setGroupProperty(PropertyInterface("Stroke Width",y)),N}function o(p,g,E){function y(b){return b===p.e.ix||b==="End"||b==="end"?y.end:b===p.s.ix?y.start:b===p.o.ix?y.offset:null}var S=propertyGroupFactory(y,E);return y.propertyIndex=p.ix,g.s.setGroupProperty(PropertyInterface("Start",S)),g.e.setGroupProperty(PropertyInterface("End",S)),g.o.setGroupProperty(PropertyInterface("Offset",S)),y.propertyIndex=p.ix,y.propertyGroup=E,Object.defineProperties(y,{start:{get:ExpressionPropertyInterface(g.s)},end:{get:ExpressionPropertyInterface(g.e)},offset:{get:ExpressionPropertyInterface(g.o)},_name:{value:p.nm}}),y.mn=p.mn,y}function l(p,g,E){function y(b){return p.a.ix===b||b==="Anchor Point"?y.anchorPoint:p.o.ix===b||b==="Opacity"?y.opacity:p.p.ix===b||b==="Position"?y.position:p.r.ix===b||b==="Rotation"||b==="ADBE Vector Rotation"?y.rotation:p.s.ix===b||b==="Scale"?y.scale:p.sk&&p.sk.ix===b||b==="Skew"?y.skew:p.sa&&p.sa.ix===b||b==="Skew Axis"?y.skewAxis:null}var S=propertyGroupFactory(y,E);return g.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",S)),g.transform.mProps.p.setGroupProperty(PropertyInterface("Position",S)),g.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",S)),g.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",S)),g.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",S)),g.transform.mProps.sk&&(g.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",S)),g.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",S))),g.transform.op.setGroupProperty(PropertyInterface("Opacity",S)),Object.defineProperties(y,{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:p.nm}}),y.ty="tr",y.mn=p.mn,y.propertyGroup=E,y}function c(p,g,E){function y(A){return p.p.ix===A?y.position:p.s.ix===A?y.size:null}var S=propertyGroupFactory(y,E);y.propertyIndex=p.ix;var b=g.sh.ty==="tm"?g.sh.prop:g.sh;return b.s.setGroupProperty(PropertyInterface("Size",S)),b.p.setGroupProperty(PropertyInterface("Position",S)),Object.defineProperties(y,{size:{get:ExpressionPropertyInterface(b.s)},position:{get:ExpressionPropertyInterface(b.p)},_name:{value:p.nm}}),y.mn=p.mn,y}function f(p,g,E){function y(A){return p.p.ix===A?y.position:p.r.ix===A?y.rotation:p.pt.ix===A?y.points:p.or.ix===A||A==="ADBE Vector Star Outer Radius"?y.outerRadius:p.os.ix===A?y.outerRoundness:p.ir&&(p.ir.ix===A||A==="ADBE Vector Star Inner Radius")?y.innerRadius:p.is&&p.is.ix===A?y.innerRoundness:null}var S=propertyGroupFactory(y,E),b=g.sh.ty==="tm"?g.sh.prop:g.sh;return y.propertyIndex=p.ix,b.or.setGroupProperty(PropertyInterface("Outer Radius",S)),b.os.setGroupProperty(PropertyInterface("Outer Roundness",S)),b.pt.setGroupProperty(PropertyInterface("Points",S)),b.p.setGroupProperty(PropertyInterface("Position",S)),b.r.setGroupProperty(PropertyInterface("Rotation",S)),p.ir&&(b.ir.setGroupProperty(PropertyInterface("Inner Radius",S)),b.is.setGroupProperty(PropertyInterface("Inner Roundness",S))),Object.defineProperties(y,{position:{get:ExpressionPropertyInterface(b.p)},rotation:{get:ExpressionPropertyInterface(b.r)},points:{get:ExpressionPropertyInterface(b.pt)},outerRadius:{get:ExpressionPropertyInterface(b.or)},outerRoundness:{get:ExpressionPropertyInterface(b.os)},innerRadius:{get:ExpressionPropertyInterface(b.ir)},innerRoundness:{get:ExpressionPropertyInterface(b.is)},_name:{value:p.nm}}),y.mn=p.mn,y}function m(p,g,E){function y(A){return p.p.ix===A?y.position:p.r.ix===A?y.roundness:p.s.ix===A||A==="Size"||A==="ADBE Vector Rect Size"?y.size:null}var S=propertyGroupFactory(y,E),b=g.sh.ty==="tm"?g.sh.prop:g.sh;return y.propertyIndex=p.ix,b.p.setGroupProperty(PropertyInterface("Position",S)),b.s.setGroupProperty(PropertyInterface("Size",S)),b.r.setGroupProperty(PropertyInterface("Rotation",S)),Object.defineProperties(y,{position:{get:ExpressionPropertyInterface(b.p)},roundness:{get:ExpressionPropertyInterface(b.r)},size:{get:ExpressionPropertyInterface(b.s)},_name:{value:p.nm}}),y.mn=p.mn,y}function u(p,g,E){function y(A){return p.r.ix===A||A==="Round Corners 1"?y.radius:null}var S=propertyGroupFactory(y,E),b=g;return y.propertyIndex=p.ix,b.rd.setGroupProperty(PropertyInterface("Radius",S)),Object.defineProperties(y,{radius:{get:ExpressionPropertyInterface(b.rd)},_name:{value:p.nm}}),y.mn=p.mn,y}function d(p,g,E){function y(A){return p.c.ix===A||A==="Copies"?y.copies:p.o.ix===A||A==="Offset"?y.offset:null}var S=propertyGroupFactory(y,E),b=g;return y.propertyIndex=p.ix,b.c.setGroupProperty(PropertyInterface("Copies",S)),b.o.setGroupProperty(PropertyInterface("Offset",S)),Object.defineProperties(y,{copies:{get:ExpressionPropertyInterface(b.c)},offset:{get:ExpressionPropertyInterface(b.o)},_name:{value:p.nm}}),y.mn=p.mn,y}return function(p,g,E){var y;function S(A){if(typeof A=="number")return A=A===void 0?1:A,A===0?E:y[A-1];for(var C=0,P=y.length;C<P;){if(y[C]._name===A)return y[C];C+=1}return null}function b(){return E}return S.propertyGroup=propertyGroupFactory(S,b),y=e(p,g,S.propertyGroup),S.numProperties=y.length,S._name="Contents",S}}(),TextExpressionInterface=function(){return function(e){var t;function r(a){switch(a){case"ADBE Text Document":return r.sourceText;default:return null}}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var n=e.textProperty.currentData.t;return(!t||n!==t.value)&&(t=new String(n),t.value=n||new String(n),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),r}}();function _typeof(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(r){return typeof r}:_typeof=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof(e)}var FootageInterface=function(){var e=function(a){var n="",s=a.getFootageData();function i(){return n="",s=a.getFootageData(),o}function o(l){if(s[l])return n=l,s=s[l],_typeof(s)==="object"?o:s;var c=l.indexOf(n);if(c!==-1){var f=parseInt(l.substr(c+n.length),10);return s=s[f],_typeof(s)==="object"?o:s}return""}return i},t=function(a){function n(s){return s==="Outline"?n.outlineInterface():null}return n._name="Outline",n.outlineInterface=e(a),n};return function(r){function a(n){return n==="Data"?a.dataInterface:null}return a._name="Data",a.dataInterface=t(r),a}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=function(){function e(i,o,l){o.x&&(l.k=!0,l.x=!0,l.initiateExpression=ExpressionManager.initiateExpression,l.effectsSequence.push(l.initiateExpression(i,o,l).bind(l)))}function t(i){return i*=this.elem.globalData.frameRate,i-=this.offsetTime,i!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<i?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(i,this._cachingAtTime),this._cachingAtTime.lastFrame=i),this._cachingAtTime.value}function r(i){var o=-.01,l=this.getValueAtTime(i),c=this.getValueAtTime(i+o),f=0;if(l.length){var m;for(m=0;m<l.length;m+=1)f+=Math.pow(c[m]-l[m],2);f=Math.sqrt(f)*100}else f=0;return f}function a(i){if(this.vel!==void 0)return this.vel;var o=-.001,l=this.getValueAtTime(i),c=this.getValueAtTime(i+o),f;if(l.length){f=createTypedArray("float32",l.length);var m;for(m=0;m<l.length;m+=1)f[m]=(c[m]-l[m])/o}else f=(c-l)/o;return f}function n(){return this.pv}function s(i){this.propertyGroup=i}return{searchExpressions:e,getSpeedAtTime:r,getVelocityAtTime:a,getValueAtTime:t,getStaticValueAtTime:n,setGroupProperty:s}}();function addPropertyDecorator(){function e(u,d,p){if(!this.k||!this.keyframes)return this.pv;u=u?u.toLowerCase():"";var g=this.comp.renderedFrame,E=this.keyframes,y=E[E.length-1].t;if(g<=y)return this.pv;var S,b;p?(d?S=Math.abs(y-this.elem.comp.globalData.frameRate*d):S=Math.max(0,y-this.elem.data.ip),b=y-S):((!d||d>E.length-1)&&(d=E.length-1),b=E[E.length-1-d].t,S=y-b);var A,C,P;if(u==="pingpong"){var N=Math.floor((g-b)/S);if(N%2!==0)return this.getValueAtTime((S-(g-b)%S+b)/this.comp.globalData.frameRate,0)}else if(u==="offset"){var D=this.getValueAtTime(b/this.comp.globalData.frameRate,0),V=this.getValueAtTime(y/this.comp.globalData.frameRate,0),B=this.getValueAtTime(((g-b)%S+b)/this.comp.globalData.frameRate,0),O=Math.floor((g-b)/S);if(this.pv.length){for(P=new Array(D.length),C=P.length,A=0;A<C;A+=1)P[A]=(V[A]-D[A])*O+B[A];return P}return(V-D)*O+B}else if(u==="continue"){var _=this.getValueAtTime(y/this.comp.globalData.frameRate,0),G=this.getValueAtTime((y-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(P=new Array(_.length),C=P.length,A=0;A<C;A+=1)P[A]=_[A]+(_[A]-G[A])*((g-y)/this.comp.globalData.frameRate)/5e-4;return P}return _+(_-G)*((g-y)/.001)}return this.getValueAtTime(((g-b)%S+b)/this.comp.globalData.frameRate,0)}function t(u,d,p){if(!this.k)return this.pv;u=u?u.toLowerCase():"";var g=this.comp.renderedFrame,E=this.keyframes,y=E[0].t;if(g>=y)return this.pv;var S,b;p?(d?S=Math.abs(this.elem.comp.globalData.frameRate*d):S=Math.max(0,this.elem.data.op-y),b=y+S):((!d||d>E.length-1)&&(d=E.length-1),b=E[d].t,S=b-y);var A,C,P;if(u==="pingpong"){var N=Math.floor((y-g)/S);if(N%2===0)return this.getValueAtTime(((y-g)%S+y)/this.comp.globalData.frameRate,0)}else if(u==="offset"){var D=this.getValueAtTime(y/this.comp.globalData.frameRate,0),V=this.getValueAtTime(b/this.comp.globalData.frameRate,0),B=this.getValueAtTime((S-(y-g)%S+y)/this.comp.globalData.frameRate,0),O=Math.floor((y-g)/S)+1;if(this.pv.length){for(P=new Array(D.length),C=P.length,A=0;A<C;A+=1)P[A]=B[A]-(V[A]-D[A])*O;return P}return B-(V-D)*O}else if(u==="continue"){var _=this.getValueAtTime(y/this.comp.globalData.frameRate,0),G=this.getValueAtTime((y+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(P=new Array(_.length),C=P.length,A=0;A<C;A+=1)P[A]=_[A]+(_[A]-G[A])*(y-g)/.001;return P}return _+(_-G)*(y-g)/.001}return this.getValueAtTime((S-((y-g)%S+y))/this.comp.globalData.frameRate,0)}function r(u,d){if(!this.k)return this.pv;if(u=(u||.4)*.5,d=Math.floor(d||5),d<=1)return this.pv;var p=this.comp.renderedFrame/this.comp.globalData.frameRate,g=p-u,E=p+u,y=d>1?(E-g)/(d-1):1,S=0,b=0,A;this.pv.length?A=createTypedArray("float32",this.pv.length):A=0;for(var C;S<d;){if(C=this.getValueAtTime(g+S*y),this.pv.length)for(b=0;b<this.pv.length;b+=1)A[b]+=C[b];else A+=C;S+=1}if(this.pv.length)for(b=0;b<this.pv.length;b+=1)A[b]/=d;else A/=d;return A}function a(u){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var d=this._transformCachingAtTime.v;if(d.cloneFromProps(this.pre.props),this.appliedTransformations<1){var p=this.a.getValueAtTime(u);d.translate(-p[0]*this.a.mult,-p[1]*this.a.mult,p[2]*this.a.mult)}if(this.appliedTransformations<2){var g=this.s.getValueAtTime(u);d.scale(g[0]*this.s.mult,g[1]*this.s.mult,g[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var E=this.sk.getValueAtTime(u),y=this.sa.getValueAtTime(u);d.skewFromAxis(-E*this.sk.mult,y*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var S=this.r.getValueAtTime(u);d.rotate(-S*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var b=this.rz.getValueAtTime(u),A=this.ry.getValueAtTime(u),C=this.rx.getValueAtTime(u),P=this.or.getValueAtTime(u);d.rotateZ(-b*this.rz.mult).rotateY(A*this.ry.mult).rotateX(C*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 N=this.px.getValueAtTime(u),D=this.py.getValueAtTime(u);if(this.data.p.z){var V=this.pz.getValueAtTime(u);d.translate(N*this.px.mult,D*this.py.mult,-V*this.pz.mult)}else d.translate(N*this.px.mult,D*this.py.mult,0)}else{var B=this.p.getValueAtTime(u);d.translate(B[0]*this.p.mult,B[1]*this.p.mult,-B[2]*this.p.mult)}return d}function n(){return this.v.clone(new Matrix)}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(u,d,p){var g=s(u,d,p);return g.dynamicProperties.length?g.getValueAtTime=a.bind(g):g.getValueAtTime=n.bind(g),g.setGroupProperty=expressionHelpers.setGroupProperty,g};var i=PropertyFactory.getProp;PropertyFactory.getProp=function(u,d,p,g,E){var y=i(u,d,p,g,E);y.kf?y.getValueAtTime=expressionHelpers.getValueAtTime.bind(y):y.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(y),y.setGroupProperty=expressionHelpers.setGroupProperty,y.loopOut=e,y.loopIn=t,y.smooth=r,y.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(y),y.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(y),y.numKeys=d.a===1?d.k.length:0,y.propertyIndex=d.ix;var S=0;return p!==0&&(S=createTypedArray("float32",d.a===1?d.k[0].s.length:d.k.length)),y._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:S},expressionHelpers.searchExpressions(u,d,y),y.k&&E.addDynamicProperty(y),y};function o(u){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),u*=this.elem.globalData.frameRate,u-=this.offsetTime,u!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<u?this._caching.lastIndex:0,this._cachingAtTime.lastTime=u,this.interpolateShape(u,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var l=ShapePropertyFactory.getConstructorFunction(),c=ShapePropertyFactory.getKeyframedConstructorFunction();function f(){}f.prototype={vertices:function(d,p){this.k&&this.getValue();var g=this.v;p!==void 0&&(g=this.getValueAtTime(p,0));var E,y=g._length,S=g[d],b=g.v,A=createSizedArray(y);for(E=0;E<y;E+=1)d==="i"||d==="o"?A[E]=[S[E][0]-b[E][0],S[E][1]-b[E][1]]:A[E]=[S[E][0],S[E][1]];return A},points:function(d){return this.vertices("v",d)},inTangents:function(d){return this.vertices("i",d)},outTangents:function(d){return this.vertices("o",d)},isClosed:function(){return this.v.c},pointOnPath:function(d,p){var g=this.v;p!==void 0&&(g=this.getValueAtTime(p,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(g));for(var E=this._segmentsLength,y=E.lengths,S=E.totalLength*d,b=0,A=y.length,C=0,P;b<A;){if(C+y[b].addedLength>S){var N=b,D=g.c&&b===A-1?0:b+1,V=(S-C)/y[b].addedLength;P=bez.getPointInSegment(g.v[N],g.v[D],g.o[N],g.i[D],V,y[b]);break}else C+=y[b].addedLength;b+=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(d,p,g){d==1?d=this.v.c:d==0&&(d=.999);var E=this.pointOnPath(d,p),y=this.pointOnPath(d+.001,p),S=y[0]-E[0],b=y[1]-E[1],A=Math.sqrt(Math.pow(S,2)+Math.pow(b,2));if(A===0)return[0,0];var C=g==="tangent"?[S/A,b/A]:[-b/A,S/A];return C},tangentOnPath:function(d,p){return this.vectorOnPath(d,p,"tangent")},normalOnPath:function(d,p){return this.vectorOnPath(d,p,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([f],l),extendPrototype([f],c),c.prototype.getValueAtTime=o,c.prototype.initiateExpression=ExpressionManager.initiateExpression;var m=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(u,d,p,g,E){var y=m(u,d,p,g,E);return y.propertyIndex=d.ix,y.lock=!1,p===3?expressionHelpers.searchExpressions(u,d.pt,y):p===4&&expressionHelpers.searchExpressions(u,d.ks,y),y.k&&u.addDynamicProperty(y),y}}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 a=this.calculateExpression(r);if(t.t!==a){var n={};return this.copyData(n,t),n.t=a.toString(),n.__complete=!1,n}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 a=createNS("feMerge");a.setAttribute("result",t);var n,s;for(s=0;s<r.length;s+=1)n=createNS("feMergeNode"),n.setAttribute("in",r[s]),a.appendChild(n),a.appendChild(n);return a}};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,a,n){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=s,s.setAttribute("result",a+"_tint_1"),e.appendChild(s),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",a+"_tint_2"),e.appendChild(s),this.matrixFilter=s;var i=this.createMergeNode(a,[n,a+"_tint_1",a+"_tint_2"]);e.appendChild(i)}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,a=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+a+" 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,a){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",a),e.appendChild(n),this.matrixFilter=n}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,a,n;for(this.filterManager.effectElements[1].p.v===1?(n=this.elem.maskManager.masksProperties.length,a=0):(a=this.filterManager.effectElements[0].p.v-1,n=a+1),r=createNS("g"),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),r.setAttribute("stroke-dashoffset",1),a;a<n;a+=1)t=createNS("path"),r.appendChild(t),this.paths.push({p:t,m:a});if(this.filterManager.effectElements[10].p.v===3){var s=createNS("mask"),i=createElementID();s.setAttribute("id",i),s.setAttribute("mask-type","alpha"),s.appendChild(r),this.elem.globalData.defs.appendChild(s);var o=createNS("g");for(o.setAttribute("mask","url("+getLocationHref()+"#"+i+")");e[0];)o.appendChild(e[0]);this.elem.layerElement.appendChild(o),this.masker=s,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,a,n;for(t=0;t<r;t+=1)if(this.paths[t].m!==-1&&(a=this.elem.maskManager.viewData[this.paths[t].m],n=this.paths[t].p,(e||this.filterManager._mdf||a.prop._mdf)&&n.setAttribute("d",a.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||a.prop._mdf)){var s;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var i=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=n.getTotalLength();s="0 0 0 "+l*i+" ";var c=l*(o-i),f=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,m=Math.floor(c/f),u;for(u=0;u<m;u+=1)s+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";s+="0 "+l*10+" 0 0"}else s="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;n.setAttribute("stroke-dasharray",s)}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 d=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(d[0]*255)+","+bmFloor(d[1]*255)+","+bmFloor(d[2]*255)+")")}};function SVGTritoneFilter(e,t,r,a){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.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(n);var s=createNS("feComponentTransfer");s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",a),this.matrixFilter=s;var i=createNS("feFuncR");i.setAttribute("type","table"),s.appendChild(i),this.feFuncR=i;var o=createNS("feFuncG");o.setAttribute("type","table"),s.appendChild(o),this.feFuncG=o;var l=createNS("feFuncB");l.setAttribute("type","table"),s.appendChild(l),this.feFuncB=l,e.appendChild(s)}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,a=this.filterManager.effectElements[2].p.v,n=a[0]+" "+r[0]+" "+t[0],s=a[1]+" "+r[1]+" "+t[1],i=a[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",n),this.feFuncG.setAttribute("tableValues",s),this.feFuncB.setAttribute("tableValues",i)}};function SVGProLevelsFilter(e,t,r,a){this.filterManager=t;var n=this.filterManager.effectElements,s=createNS("feComponentTransfer");(n[10].p.k||n[10].p.v!==0||n[11].p.k||n[11].p.v!==1||n[12].p.k||n[12].p.v!==1||n[13].p.k||n[13].p.v!==0||n[14].p.k||n[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(n[17].p.k||n[17].p.v!==0||n[18].p.k||n[18].p.v!==1||n[19].p.k||n[19].p.v!==1||n[20].p.k||n[20].p.v!==0||n[21].p.k||n[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(n[24].p.k||n[24].p.v!==0||n[25].p.k||n[25].p.v!==1||n[26].p.k||n[26].p.v!==1||n[27].p.k||n[27].p.v!==0||n[28].p.k||n[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(n[31].p.k||n[31].p.v!==0||n[32].p.k||n[32].p.v!==1||n[33].p.k||n[33].p.v!==1||n[34].p.k||n[34].p.v!==0||n[35].p.k||n[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",s)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(s.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(s)),(n[3].p.k||n[3].p.v!==0||n[4].p.k||n[4].p.v!==1||n[5].p.k||n[5].p.v!==1||n[6].p.k||n[6].p.v!==0||n[7].p.k||n[7].p.v!==1)&&(s=createNS("feComponentTransfer"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",a),e.appendChild(s),this.feFuncRComposed=this.createFeFunc("feFuncR",s),this.feFuncGComposed=this.createFeFunc("feFuncG",s),this.feFuncBComposed=this.createFeFunc("feFuncB",s))}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,a,n){for(var s=0,i=256,o,l=Math.min(e,t),c=Math.max(e,t),f=Array.call(null,{length:i}),m,u=0,d=n-a,p=t-e;s<=256;)o=s/256,o<=l?m=p<0?n:a:o>=c?m=p<0?a:n:m=a+d*Math.pow((o-e)/p,1/r),f[u]=m,u+=1,s+=256/(i-1);return f.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,a,n){var s=t.container.globalData.renderConfig.filterSize,i=t.data.fs||s;e.setAttribute("x",i.x||s.x),e.setAttribute("y",i.y||s.y),e.setAttribute("width",i.width||s.width),e.setAttribute("height",i.height||s.height),this.filterManager=t;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",a+"_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",a+"_drop_shadow_1"),l.setAttribute("result",a+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",a+"_drop_shadow_3"),this.feFlood=c,e.appendChild(c);var f=createNS("feComposite");f.setAttribute("in",a+"_drop_shadow_3"),f.setAttribute("in2",a+"_drop_shadow_2"),f.setAttribute("operator","in"),f.setAttribute("result",a+"_drop_shadow_4"),e.appendChild(f);var m=this.createMergeNode(a,[a+"_drop_shadow_4",n]);e.appendChild(m)}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,a=(this.filterManager.effectElements[2].p.v-90)*degToRads,n=r*Math.cos(a),s=r*Math.sin(a);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",s)}}};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 a=r.children,n=0,s=a.length;n<s&&a[n]!==e.layerElement;)n+=1;var i;n<=s-2&&(i=a[n+1]);var o=createNS("use");o.setAttribute("href","#"+t),i?r.insertBefore(o,i):r.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),a=createNS("mask");a.setAttribute("id",t.layerId),a.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var n=e.globalData.defs;n.appendChild(a);var s=createNS("symbol");s.setAttribute("id",r),this.replaceInParent(t,r),s.appendChild(t.layerElement),n.appendChild(s);var i=createNS("use");i.setAttribute("href","#"+r),a.appendChild(i),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,a=t.length;r<a;)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,a){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var n=createNS("feGaussianBlur");n.setAttribute("result",a),e.appendChild(n),this.feGaussianBlur=n}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3,r=this.filterManager.effectElements[0].p.v*t,a=this.filterManager.effectElements[1].p.v,n=a==3?0:r,s=a==2?0:r;this.feGaussianBlur.setAttribute("stdDeviation",n+" "+s);var i=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",i)}};function TransformEffect(){}TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,r=t[0].p.v,a=t[1].p.v,n=t[2].p.v===1,s=t[3].p.v,i=n?s:t[4].p.v,o=t[5].p.v,l=t[6].p.v,c=t[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(i*.01,s*.01,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-o*degToRads,(l+90)*degToRads),this.matrix.translate(a[0],a[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,t){this.init(t)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})})(lottie,lottie.exports);var lottieExports=lottie.exports;const Lottie=getDefaultExportFromCjs(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 a=!0}catch(s){}var n=nativeObjectToString$1.call(e);return a&&(t?e[symToStringTag$1]=r:delete e[symToStringTag$1]),n}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,a=e.length;for(t||(t=Array(a));++r<a;)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,a=e==null?0:e.length;++r<a&&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 a=e[t];(!(hasOwnProperty$9.call(e,t)&&eq(a,r))||r===void 0&&!(t in e))&&baseAssignValue(e,t,r)}function copyObject(e,t,r,a){var n=!r;r||(r={});for(var s=-1,i=t.length;++s<i;){var o=t[s],l=a?a(r[o],e[o],o,r,e):void 0;l===void 0&&(l=e[o]),n?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,a=Array(e);++r<e;)a[r]=t(r);return a}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),a=!r&&isArguments$1(e),n=!r&&!a&&isBuffer$1(e),s=!r&&!a&&!n&&isTypedArray$1(e),i=r||a||n||s,o=i?baseTimes(e.length,String):[],l=o.length;for(var c in e)(t||hasOwnProperty$7.call(e,c))&&!(i&&(c=="length"||n&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||isIndex(c,l)))&&o.push(c);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 a in e)a=="constructor"&&(t||!hasOwnProperty$5.call(e,a))||r.push(a);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 a=e[t];this.set(a[0],a[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 a=t.length-1;return r==a?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__,a=assocIndexOf(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}function ListCache(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype.delete=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;var Map=getNative(root$1,"Map"),Map$1=Map;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$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),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}function MapCache(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[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,a=t.length,n=e.length;++r<a;)e[n+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 a=r.__data__;if(!Map$1||a.length<LARGE_ARRAY_SIZE-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new MapCache(a)}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,a=allocUnsafe?allocUnsafe(r):new e.constructor(r);return e.copy(a),a}function arrayFilter(e,t){for(var r=-1,a=e==null?0:e.length,n=0,s=[];++r<a;){var i=e[r];t(i,r,e)&&(s[n++]=i)}return s}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 a=t(e);return isArray$1(e)?a:arrayPush(a,r(e))}function getAllKeys(e){return baseGetAllKeys(e,keys,getSymbols$1)}function getAllKeysIn(e){return baseGetAllKeys(e,keysIn,getSymbolsIn$1)}var DataView$1=getNative(root$1,"DataView"),DataView$1$1=DataView$1,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$1),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$2),setCtorString=toSource(Set$1$1),weakMapCtorString=toSource(WeakMap$1),getTag=baseGetTag;(DataView$1$1&&getTag(new DataView$1$1(new ArrayBuffer(1)))!=dataViewTag$3||Map$1&&getTag(new Map$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,a=r?toSource(r):"";if(a)switch(a){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 a=e.constructor;switch(t){case arrayBufferTag$2:return cloneArrayBuffer(e);case boolTag$2:case dateTag$2:return new a(+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 a;case numberTag$2:case stringTag$2:return new a(e);case regexpTag$2:return cloneRegExp(e);case setTag$3:return new a;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,a,n,s){var i,o=t&CLONE_DEEP_FLAG$1,l=t&CLONE_FLAT_FLAG,c=t&CLONE_SYMBOLS_FLAG$1;if(r&&(i=n?r(e,a,n,s):r(e)),i!==void 0)return i;if(!isObject(e))return e;var f=isArray$1(e);if(f){if(i=initCloneArray(e),!o)return copyArray(e,i)}else{var m=getTag$1(e),u=m==funcTag||m==genTag;if(isBuffer$1(e))return cloneBuffer(e,o);if(m==objectTag$1||m==argsTag$1||u&&!n){if(i=l||u?{}:initCloneObject(e),!o)return l?copySymbolsIn(e,baseAssignIn(i,e)):copySymbols(e,baseAssign(i,e))}else{if(!cloneableTags[m])return n?e:{};i=initCloneByTag(e,m,o)}}s||(s=new Stack);var d=s.get(e);if(d)return d;s.set(e,i),isSet$1(e)?e.forEach(function(E){i.add(baseClone(E,t,r,E,e,s))}):isMap$1(e)&&e.forEach(function(E,y){i.set(y,baseClone(E,t,r,y,e,s))});var p=c?l?getAllKeysIn:getAllKeys:l?keysIn:keys,g=f?void 0:p(e);return arrayEach(g||e,function(E,y){g&&(y=E,E=e[y]),assignValue(i,y,baseClone(E,t,r,y,e,s))}),i}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,a=e==null?0:e.length;++r<a;)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,a,n,s){var i=r&COMPARE_PARTIAL_FLAG$3,o=e.length,l=t.length;if(o!=l&&!(i&&l>o))return!1;var c=s.get(e),f=s.get(t);if(c&&f)return c==t&&f==e;var m=-1,u=!0,d=r&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(s.set(e,t),s.set(t,e);++m<o;){var p=e[m],g=t[m];if(a)var E=i?a(g,p,m,t,e,s):a(p,g,m,e,t,s);if(E!==void 0){if(E)continue;u=!1;break}if(d){if(!arraySome(t,function(y,S){if(!cacheHas(d,S)&&(p===y||n(p,y,r,a,s)))return d.push(S)})){u=!1;break}}else if(!(p===g||n(p,g,r,a,s))){u=!1;break}}return s.delete(e),s.delete(t),u}function mapToArray(e){var t=-1,r=Array(e.size);return e.forEach(function(a,n){r[++t]=[n,a]}),r}function setToArray(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),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,a,n,s,i){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||!s(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=a&COMPARE_PARTIAL_FLAG$2;if(o||(o=setToArray),e.size!=t.size&&!l)return!1;var c=i.get(e);if(c)return c==t;a|=COMPARE_UNORDERED_FLAG,i.set(e,t);var f=equalArrays(o(e),o(t),a,n,s,i);return i.delete(e),f;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,a,n,s){var i=r&COMPARE_PARTIAL_FLAG$1,o=getAllKeys(e),l=o.length,c=getAllKeys(t),f=c.length;if(l!=f&&!i)return!1;for(var m=l;m--;){var u=o[m];if(!(i?u in t:hasOwnProperty$1.call(t,u)))return!1}var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var g=!0;s.set(e,t),s.set(t,e);for(var E=i;++m<l;){u=o[m];var y=e[u],S=t[u];if(a)var b=i?a(S,y,u,t,e,s):a(y,S,u,e,t,s);if(!(b===void 0?y===S||n(y,S,r,a,s):b)){g=!1;break}E||(E=u=="constructor")}if(g&&!E){var A=e.constructor,C=t.constructor;A!=C&&"constructor"in e&&"constructor"in t&&!(typeof A=="function"&&A instanceof A&&typeof C=="function"&&C instanceof C)&&(g=!1)}return s.delete(e),s.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,a,n,s){var i=isArray$1(e),o=isArray$1(t),l=i?arrayTag:getTag$1(e),c=o?arrayTag:getTag$1(t);l=l==argsTag?objectTag:l,c=c==argsTag?objectTag:c;var f=l==objectTag,m=c==objectTag,u=l==c;if(u&&isBuffer$1(e)){if(!isBuffer$1(t))return!1;i=!0,f=!1}if(u&&!f)return s||(s=new Stack),i||isTypedArray$1(e)?equalArrays(e,t,r,a,n,s):equalByTag(e,t,l,r,a,n,s);if(!(r&COMPARE_PARTIAL_FLAG)){var d=f&&hasOwnProperty.call(e,"__wrapped__"),p=m&&hasOwnProperty.call(t,"__wrapped__");if(d||p){var g=d?e.value():e,E=p?t.value():t;return s||(s=new Stack),n(g,E,r,a,s)}}return u?(s||(s=new Stack),equalObjects(e,t,r,a,n,s)):!1}function baseIsEqual(e,t,r,a,n){return e===t?!0:e==null||t==null||!isObjectLike(e)&&!isObjectLike(t)?e!==e&&t!==t:baseIsEqualDeep(e,t,r,a,baseIsEqual,n)}function isEqual(e,t){return baseIsEqual(e,t)}var _export_sfc=(e,t)=>{const r=e.__vccOpts||e;for(const[a,n]of t)r[a]=n;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 a=ref("");let n=1;const s=D=>document.querySelector('[data-id="'.concat(D,'"]'))!==null,i=async D=>{let V=e.autoPlay;e.playOnHover&&(V=!1);let B={};if(isEqual(e.animationData,{})===!1&&(B=cloneDeep(e.animationData)),e.animationLink!="")try{B=await(await fetch(e.animationLink)).json()}catch(G){console.error(G);return}let O=e.loop;typeof O=="number"&&O>0&&(O=O-1),e.delay>0&&(V=!1);const _={container:D,renderer:e.renderer,loop:O,autoplay:V,animationData:B,assetsPath:e.assetsPath};isEqual(e.rendererSettings,{})===!1&&(_.rendererSettings=e.rendererSettings),r=Lottie.loadAnimation(_),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(),n=n*-1,r.setDirection(n),r.play()),t("onLoopComplete")}),r.addEventListener("complete",()=>{t("onComplete")}),r.addEventListener("enterFrame",()=>{t("onEnterFrame")}),r.addEventListener("segmentStart",()=>{t("onSegmentStart")})},o=computed(()=>{let D=e.width,V=e.height;return typeof e.width=="number"&&(D="".concat(e.width,"px")),typeof e.height=="number"&&(V="".concat(e.height,"px")),{"--lottie-animation-container-width":D,"--lottie-animation-container-height":V,"--lottie-animation-container-background-color":e.backgroundColor}}),l=()=>{r&&e.pauseOnHover&&r.pause(),r&&e.playOnHover&&r.play()},c=()=>{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 f=()=>{r&&r.play()},m=()=>{r&&r.pause()},u=()=>{r&&r.stop()},d=()=>{r&&r.destroy()},p=(D=1)=>{if(D<=0)throw new Error("Speed must be greater than 0");r&&r.setSpeed(D)},g=D=>{r&&(D==="forward"?r.setDirection(1):D==="reverse"&&r.setDirection(-1))},E=(D,V=!0)=>{r&&r.goToAndStop(D,V)},y=(D,V=!0)=>{r&&r.goToAndPlay(D,V)},S=(D,V=!1)=>{r&&r.playSegments(D,V)},b=(D=!0)=>{r&&r.setSubframe(D)},A=(D=!0)=>{if(r)return r.getDuration(D)},C=(D,V=0)=>{r&&r.renderer.elements[V].updateDocumentData(D)},P=D=>{for(var V="",B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",O=B.length,_=0;_<D;_++)V+=B.charAt(Math.floor(Math.random()*O));return V},N=D=>{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(s(D)){clearInterval(V);const B=document.querySelector('[data-id="'.concat(D,'" ]'));B&&i(B)}},0)};return onMounted(async()=>{a.value=P(20),N(a.value)}),{elementid:a,hoverEnded:c,hoverStarted:l,getCurrentStyle:o,play:f,pause:m,stop:u,destroy:d,setSpeed:p,setDirection:g,goToAndStop:E,goToAndPlay:y,playSegments:S,setSubFrame:b,getDuration:A,updateDocumentData:C}}}),_hoisted_1=["data-id"];function _sfc_render(e,t,r,a,n,s){return openBlock(),createElementBlock("div",{"data-id":e.elementid,class:"lottie-animation-container",style:normalizeStyle(e.getCurrentStyle),onMouseenter:t[0]||(t[0]=(...i)=>e.hoverStarted&&e.hoverStarted(...i)),onMouseleave:t[1]||(t[1]=(...i)=>e.hoverEnded&&e.hoverEnded(...i))},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,iVBORw0KGgoAAAANSUhEUgAAAMMAAAEICAYAAADiJ0BpAAAACXBIWXMAAAABAAAAAQBPJcTWAAAAJHpUWHRDcmVhdG9yAAAImXNMyU9KVXBMK0ktUnBNS0tNLikGAEF6Bs5qehXFAAAgAElEQVR4nO19ebxlRXXut85tGhBoZGjAhEkRISjJQ5QYYwjghBFiVMQ5xhiHRJOoz0jEiahIElEjUcOLmJ8xosGg4hRFoy2IedHggMg8NUQF6WZqmga6++4vf1StqlW19xnu1Hc3d31w+5yzd1WtqtprrqpzBFsh7r9p1aOmNzdHgTyK4AFosFKEKwksBxj+JwEBQMZa8TV+ZvwcitC0Hu+T4R6YmpFUj6bdXDYWCKVqurlwqgMBpCiby5CESEm37Kul30Ay8dwJ4C6Qt1HkFwJ+F4PBBZze8Vu7PubEu0bP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: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="_videoWrap_y7fw1_1",videoPop="_videoPop_y7fw1_6",sectionAnimate$1="_sectionAnimate_y7fw1_14",controls$1="_controls_y7fw1_20",time$1="_time_y7fw1_35",line$1="_line_y7fw1_48",tools$1="_tools_y7fw1_55",actions$1="_actions_y7fw1_61",actionWrap$1="_actionWrap_y7fw1_69",actionBtn$1="_actionBtn_y7fw1_73",actionBtnSpeed="_actionBtnSpeed_y7fw1_83",iconReplay$1="_iconReplay_y7fw1_94",slider$1="_slider_y7fw1_105",sliderPopup="_sliderPopup_y7fw1_113",iconAdd$1="_iconAdd_y7fw1_127",iconCut="_iconCut_y7fw1_128",disabled$1="_disabled_y7fw1_137",sliderPoint="_sliderPoint_y7fw1_145",styles$i={videoWrap,videoPop,sectionAnimate:sectionAnimate$1,controls:controls$1,time:time$1,line:line$1,tools:tools$1,actions:actions$1,actionWrap:actionWrap$1,actionBtn:actionBtn$1,actionBtnSpeed,iconReplay:iconReplay$1,slider:slider$1,sliderPopup,iconAdd:iconAdd$1,iconCut,disabled:disabled$1,sliderPoint},iconLoop=""+new URL("icon-loop-6bac787f.svg",import.meta.url).href,VideoPlay=defineComponent({name:"video-play",props:{item:{type:Object,default:()=>({})},showModel:{type:Boolean,default:!1},isEmtry:{type:Boolean,default:!1},imagePos:{type:String,default:"left"}},emits:["canplay","pause","togglePlay","ended","reset","error","close","loadedmetadata"],setup(e,{emit:t,expose:r}){const{item:a,isEmtry:n}=toRefs(e),s=reactive({paused:!0,currentTimeNum:0,currentTime:"00:00",durationNum:0,duration:"00:00",showBar:!0,showAction:!0,loop:!1,speedControl:!1,speedStyle:{left:"1px"},defaultSpeed:1}),i=ref(),o=ref(),l=ref("video"+Date.now()+Math.floor(Math.random()*100)),c=A=>{if(A>0){const C=Math.floor(A/60),P=A%60;return(C<10?"0"+C:C)+":"+(P<10?"0"+P:P)}else return"00:00"},f=()=>{o.value&&(o.value.src(a.value.content),t("reset"))},m=A=>{s.showBar=A,s.speedControl=!1},u=()=>{s.speedControl=!1,o.value&&o.value.currentTime(0)},d=A=>{A==null||A.stopPropagation(),s.paused?(o.value.play(),s.paused=!1):(o.value.pause(),s.paused=!0),t("togglePlay",s.paused)},p=null;let g=0;const E=()=>{g>5||(clearTimeout(p),nextTick(()=>{var A;(A=o.value)==null||A.play().catch(C=>{})}),g++)},y=()=>{o.value&&(o.value.poster(e.item.coverImg),o.value.src(a.value.content),o.value.playbackRate(s.defaultSpeed),o.value.one("loadedmetadata",()=>{o.value.playbackRate(s.defaultSpeed),s.duration=c(Math.round(o.value.duration())),s.durationNum=o.value.duration(),t("canplay"),t("loadedmetadata",o.value),a.value.autoPlay&&o.value&&nextTick(()=>{g=0,o.value.currentTime(0),nextTick(E)})}),o.value.on("play",()=>{t("close"),t("canplay")}),o.value.on("timeupdate",()=>{var A;s.currentTime=c(Math.round(((A=o.value)==null?void 0:A.currentTime())||0)),s.currentTimeNum=o.value.currentTime()}),o.value.on("ended",()=>{s.paused=!0,t("ended")}),o.value.on("pause",()=>{s.paused=!0,t("pause")}),o.value.on("playing",()=>{s.paused=!1}),o.value.on("canplay",A=>{s.duration=c(Math.round(o.value.duration())),s.durationNum=o.value.duration(),t("canplay")}),o.value.on("error",A=>{t("error"),console.log(A,"error")}))};onMounted(()=>{o.value=TCPlayer(l.value,{appID:"",controls:!1}),y()});const S=()=>{o.value.currentTime(0),o.value.pause()},b=()=>{o.value.pause()};return onUnmounted(()=>{o.value&&(o.value.pause(),o.value.src(""),o.value.dispose())}),watch(()=>e.item,()=>{var A;o.value.pause(),o.value.currentTime(0),(A=a.value)!=null&&A.id&&(y(),s.paused=!0)}),watch(()=>e.showModel,()=>{s.showAction=e.showModel,s.speedControl=!1}),r({onPlay:f,stop:S,pause:b,toggleHideControl:m}),()=>createVNode("div",{class:styles$i.videoWrap},[createVNode("video",{style:{width:"100%",height:"100%"},ref:i,id:l.value,preload:"auto",playsinline:!0,"webkit-playsinline":!0,"x5-video-player-type":"h5"},null),createVNode("div",{class:styles$i.videoPop},null),createVNode("div",{class:[styles$i.controls,s.showAction?"":styles$i.sectionAnimate],onClick:A=>{A.stopPropagation(),!o.value.paused()&&(t("close"),t("reset"))}},[createVNode("div",{class:styles$i.slider},[createVNode(NSlider,{value:s.currentTimeNum,step:.01,max:s.durationNum,tooltip:!1,"onUpdate:value":A=>{s.speedControl=!1,o.value.currentTime(A),s.currentTimeNum=A,s.currentTime=c(Math.round(A||0))}},null)]),createVNode("div",{class:styles$i.tools},[e.imagePos==="right"?createVNode(Fragment,null,[createVNode("div",{class:styles$i.actions},[createVNode("div",{class:styles$i.actionWrap},[createVNode("div",{class:styles$i.time},[createVNode("div",{class:"plyr__time plyr__time--current","aria-label":"Current time"},[s.currentTime]),createVNode("span",{class:styles$i.line},[createTextVNode("/")]),createVNode("div",{class:"plyr__time plyr__time--duration","aria-label":"Duration"},[s.duration])])])]),createVNode("div",{class:styles$i.actions},[createVNode("div",{class:styles$i.actionWrap},[createVNode("div",{class:styles$i.actionBtnSpeed,onClick:A=>{A.stopPropagation(),s.speedControl=!s.speedControl}},[createVNode("img",{src:iconSpeed},null),createVNode("div",{style:{display:s.speedControl?"block":"none"}},[createVNode("div",{class:styles$i.sliderPopup,onClick:A=>{A.stopPropagation()}},[createVNode("i",{class:styles$i.iconAdd,onClick:()=>{s.defaultSpeed>=1.5||o.value&&(s.defaultSpeed=(s.defaultSpeed*10+1)/10,o.value.playbackRate(s.defaultSpeed))}},null),createVNode(NSlider,{value:s.defaultSpeed,step:.1,max:1.5,min:.5,vertical:!0,tooltip:!1,"onUpdate:value":A=>{s.defaultSpeed=A,o.value&&o.value.playbackRate(s.defaultSpeed)}},{thumb:()=>createVNode("div",{class:styles$i.sliderPoint},[s.defaultSpeed,createVNode("span",null,[createTextVNode("x")])])}),createVNode("i",{class:[styles$i.iconCut],onClick:()=>{s.defaultSpeed<=.5||o.value&&(s.defaultSpeed=(s.defaultSpeed*10-1)/10,o.value.playbackRate(s.defaultSpeed))}},null)])])]),createVNode("button",{class:styles$i.iconReplay,onClick:u},[createVNode("img",{src:iconLoop},null)]),createVNode("div",{class:styles$i.actionBtn,onClick:()=>{s.speedControl=!1,d()}},[s.paused?createVNode("img",{class:styles$i.playIcon,src:iconplay},null):createVNode("img",{class:styles$i.playIcon,src:iconpause},null)])])])]):createVNode(Fragment,null,[createVNode("div",{class:styles$i.actions},[createVNode("div",{class:styles$i.actionWrap},[createVNode("div",{class:styles$i.actionBtn,onClick:()=>{s.speedControl=!1,d()}},[s.paused?createVNode("img",{class:styles$i.playIcon,src:iconplay},null):createVNode("img",{class:styles$i.playIcon,src:iconpause},null)]),createVNode("button",{class:styles$i.iconReplay,onClick:u},[createVNode("img",{src:iconLoop},null)]),createVNode("div",{class:styles$i.actionBtnSpeed,onClick:A=>{A.stopPropagation(),s.speedControl=!s.speedControl}},[createVNode("img",{src:iconSpeed},null),createVNode("div",{style:{display:s.speedControl?"block":"none"}},[createVNode("div",{class:styles$i.sliderPopup,onClick:A=>{A.stopPropagation()}},[createVNode("i",{class:styles$i.iconAdd,onClick:()=>{s.defaultSpeed>=1.5||o.value&&(s.defaultSpeed=(s.defaultSpeed*10+1)/10,o.value.playbackRate(s.defaultSpeed))}},null),createVNode(NSlider,{value:s.defaultSpeed,step:.1,max:1.5,min:.5,vertical:!0,tooltip:!1,"onUpdate:value":A=>{s.defaultSpeed=A,o.value&&o.value.playbackRate(s.defaultSpeed)}},{thumb:()=>createVNode("div",{class:styles$i.sliderPoint},[s.defaultSpeed,createVNode("span",null,[createTextVNode("x")])])}),createVNode("i",{class:[styles$i.iconCut],onClick:()=>{s.defaultSpeed<=.5||o.value&&(s.defaultSpeed=(s.defaultSpeed*10-1)/10,o.value.playbackRate(s.defaultSpeed))}},null)])])])])]),createVNode("div",{class:styles$i.actions},[createVNode("div",{class:styles$i.actionWrap},[createVNode("div",{class:styles$i.time},[createVNode("div",{class:"plyr__time plyr__time--current","aria-label":"Current time"},[s.currentTime]),createVNode("span",{class:styles$i.line},[createTextVNode("/")]),createVNode("div",{class:"plyr__time plyr__time--duration","aria-label":"Duration"},[s.duration])])])])])])])])}}),pen="_pen_4lyqr_1",open="_open_4lyqr_9",whiteboard="_whiteboard_4lyqr_12",hide$1="_hide_4lyqr_15",iframe="_iframe_4lyqr_18",dely="_dely_4lyqr_24",rightItem="_rightItem_4lyqr_27",img="_img_4lyqr_42",removeVisiable$1="_removeVisiable_4lyqr_50",studentRemove$1="_studentRemove_4lyqr_63",btnGroupModal$1="_btnGroupModal_4lyqr_75",styles$h={pen,open,whiteboard,hide:hide$1,iframe,dely,rightItem,img,removeVisiable:removeVisiable$1,studentRemove:studentRemove$1,btnGroupModal:btnGroupModal$1},Pen=defineComponent({name:"pen-page",props:{show:{type:Boolean,default:!1},type:{type:String,default:"pen"},close:{type:Function,default:()=>({})},callStudents:{type:Array,default:()=>[]},imagePos:{type:String,default:"left"},isDrag:{type:Boolean,default:!1}},setup(e){const{show:t,type:r}=toRefs(e),a="penIframeRef".concat(+new Date),n=reactive({status:!1,title:r.value==="pen"?"退出批注":"退出白板",content:r.value==="pen"?"确认是否退出批注?":"确认是否退出白板?"}),s=ref(!0),i=/(localhost|192)/.test(location.host)?"https://test.lexiaoya.cn/":location.origin;let o="".concat(i,"/classroom-whiteboard?t=").concat(+new Date);e.type==="call"&&(o="".concat(i,"/roll-call/index.html?t=").concat(+new Date,"&platform=modal&imagePos=").concat(e.imagePos));let l,c;if(e.isDrag){const f=useUserStore();c="penBoxClass_drag",l=useDrag(["".concat(c,">.n-card-header"),"".concat(c," .bom_drag")],c,toRef(n,"status"),f.info.id)}return()=>createVNode("div",{class:[styles$h.pen,r.value==="whiteboard"?styles$h.whiteboard:"",s.value?styles$h.dely:"",t.value?styles$h.open:styles$h.hide]},[createVNode("iframe",{class:styles$h.iframe,id:a,frameborder:"0",width:"100vw",height:"100vh",src:o,onLoad:f=>{if(s.value=!1,e.type==="call"){const m=document.getElementById(a);m&&m.contentWindow.renderData&&m.contentWindow.renderData(e.callStudents)}iframeDislableKeyboard(f.target)}},null),e.type!=="call"&&createVNode("div",{class:styles$h.rightItem,onClick:()=>n.status=!0},[createVNode("svg",{width:"28px",height:"28px",viewBox:"0 0 34 34",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[createVNode("g",{transform:"translate(-1842.000000, -1016.000000)",stroke:"#FFFFFF"},[createVNode("g",{transform:"translate(980.000000, 1006.000000)"},[createVNode("g",{transform:"translate(862.000000, 10.000000)"},[createVNode("g",{transform:"translate(4.000000, 5.000000)"},[createVNode("g",{transform:"translate(8.058241, 5.009812)",fill:"#FFFFFF","fill-rule":"nonzero","stroke-width":"0.3"},[createVNode("path",{d:"M11.6084252,-0.15 C11.9880433,-0.15 12.3676614,-0.00518057514 12.6573002,0.284458275 L12.6573002,0.284458275 L18.3141545,5.94131252 C18.6037933,6.23095137 18.7486128,6.61056948 18.7486128,6.99018758 C18.7486128,7.36980569 18.6037933,7.74942379 18.3141545,8.03906264 L18.3141545,8.03906264 L12.6573002,13.6959169 C12.3676614,13.9855557 11.9880433,14.1303752 11.6084252,14.1303752 C11.2288071,14.1303752 10.849189,13.9855557 10.5595501,13.6959169 C10.2699113,13.406278 10.1250918,13.0266599 10.1250918,12.6470418 C10.1250918,12.2674237 10.2699113,11.8878056 10.5595368,11.5981801 L10.5595368,11.5981801 L13.6839174,8.47301484 L1.33333333,8.47352092 C0.923722144,8.47352092 0.552888811,8.30749318 0.284458275,8.03906264 C0.0160277386,7.77063211 -0.15,7.39979877 -0.15,6.99018758 C-0.15,6.61194961 -0.00841906355,6.26678575 0.224608408,6.00476938 C0.462154637,5.73767211 0.794779811,5.55707713 1.16932931,5.51583101 L1.16932931,5.51583101 L13.6841044,5.50627626 L10.5595501,2.38220839 C10.2699113,2.09256954 10.1250918,1.71295144 10.1250918,1.33333333 C10.1250918,0.953715229 10.2699113,0.574097124 10.5595501,0.284458275 C10.849189,-0.00518057514 11.2288071,-0.15 11.6084252,-0.15 Z"},null)]),createVNode("path",{d:"M15,24 L3,24 C1.34314575,24 -1.1293615e-15,22.6568542 0,21 L0,3 C-2.02906125e-16,1.34314575 1.34314575,3.04359188e-16 3,0 L15,0 L15,0","stroke-width":"3.5","stroke-linecap":"round","stroke-linejoin":"round"},null)])])])])])])]),createVNode(NModal,{style:e.isDrag?l.styleDrag.value:{},"z-index":3e3,transformOrigin:"center",show:n.status,"onUpdate:show":f=>n.status=f,preset:"card",title:n.title,class:["modalTitle",styles$h.removeVisiable,c]},{default:()=>[createVNode("div",{class:styles$h.studentRemove},[createVNode("p",null,[n.content]),createVNode(NSpace,{class:styles$h.btnGroupModal,justify:"center"},{default:()=>[createVNode(NButton,{type:"default",round:!0,onClick:()=>{n.status=!1}},{default:()=>[createTextVNode("取消")]}),createVNode(NButton,{type:"primary",round:!0,onClick:()=>{n.status=!1,e.close()}},{default:()=>[createTextVNode("确认")]})]}),e.isDrag&&createVNode(Dragbom,null,null)])]})])}}),audioWrap="_audioWrap_lif5l_1",audioContainer="_audioContainer_lif5l_6",audio="_audio_lif5l_1",tempVudio="_tempVudio_lif5l_22",sectionAnimate="_sectionAnimate_lif5l_34",controls="_controls_lif5l_40",time="_time_lif5l_55",line="_line_lif5l_68",tools="_tools_lif5l_75",actions="_actions_lif5l_81",actionWrap="_actionWrap_lif5l_89",actionBtn="_actionBtn_lif5l_93",iconReplay="_iconReplay_lif5l_103",slider="_slider_lif5l_114",styles$g={audioWrap,audioContainer,audio,tempVudio,sectionAnimate,controls,time,line,tools,actions,actionWrap,actionBtn,iconReplay,slider},AudioPay=defineComponent({name:"audio-play",props:{item:{type:Object,default:()=>({})},activeStatus:{type:Boolean,default:!1},isEmtry:{type:Boolean,default:!1},imagePos:{type:String,default:"left"}},emits:["loadedmetadata","togglePlay","ended","reset"],setup(e,{emit:t,expose:r}){const a=reactive({paused:!0,currentTimeNum:0,currentTime:"00:00",durationNum:0,duration:"00:00",showBar:!0,afterMa3:!0,count:0}),n=ref(),s=ref();let i=null;const o=g=>{var E,y,S;g==null||g.stopPropagation(),s.value.paused?(s.value.play(),a.afterMa3=!1):(E=s.value)==null||E.pause(),a.paused=(y=s.value)==null?void 0:y.paused,(S=g==null?void 0:g.target)==null||S.focus(),t("togglePlay",a.paused)},l=(g,E)=>{i||(i=new Vudio(g,E,{effect:"waveform",accuracy:256,width:1024,height:600,waveform:{maxHeight:200,color:[[0,"#44D1FF"],[.5,"#44D1FF"],[.5,"#198CFE"],[1,"#198CFE"]],prettify:!1}}),i.dance())},c=g=>{if(g>0){const E=Math.floor(g/60),y=g%60;return(E<10?"0"+E:E)+":"+(y<10?"0"+y:y)}else return"00:00"},f=g=>{a.showBar=g},m=()=>{s.value&&(s.value.currentTime=0)};let u=null;const d=ref(),p=ref();return nextTick(()=>{u=new Vudio(p.value,d.value,{effect:"waveform",accuracy:256,width:1024,height:600,waveform:{maxHeight:200,color:[[0,"#44D1FF"],[.5,"#44D1FF"],[.5,"#198CFE"],[1,"#198CFE"]],prettify:!1}}),u.dance()}),watch(()=>e.activeStatus,g=>{a.count=0,g&&e.item.autoPlay?(i=null,o()):s.value.pause()}),r({toggleHideControl:f}),()=>createVNode("div",{class:styles$g.audioWrap},[createVNode("div",{class:styles$g.audioContainer},[createVNode("audio",{ref:s,crossorigin:"anonymous",src:e.item.content+"?time=1",onEnded:()=>{a.paused=!0,t("ended")},onTimeupdate:()=>{var g,E;a.currentTime=c(Math.round(((g=s.value)==null?void 0:g.currentTime)||0)),a.currentTimeNum=((E=s.value)==null?void 0:E.currentTime)||0,a.count<=1&&(a.count+=1,l(s.value,n.value))},onLoadedmetadata:()=>{var g,E;a.duration=c(Math.round((g=s.value)==null?void 0:g.duration)),a.durationNum=(E=s.value)==null?void 0:E.duration,e.item.autoPlay&&s.value&&e.activeStatus&&o(),s.value&&(s.value.stop=()=>{var y;(y=s.value)==null||y.pause(),a.paused=!0,t("togglePlay",a.paused)},s.value.onPlay=()=>{var y;(y=s.value)==null||y.play(),a.paused=!1,l(s.value,n.value),t("togglePlay",a.paused)}),t("loadedmetadata",s.value)}},null),createVNode("canvas",{ref:n},null),a.afterMa3&&createVNode("div",{class:styles$g.tempVudio},[createVNode("audio",{ref:p,src:tickMp3},null),createVNode("canvas",{ref:d},null)])]),createVNode("div",{class:[styles$g.controls,a.showBar?"":styles$g.sectionAnimate],onClick:g=>{g.stopPropagation(),t("reset")}},[createVNode("div",{class:styles$g.slider},[createVNode(NSlider,{value:a.currentTimeNum,step:.01,max:a.durationNum,tooltip:!1,"onUpdate:value":g=>{s.value.currentTime=g,a.currentTimeNum=g,a.currentTime=c(Math.round(g||0))}},null)]),createVNode("div",{class:styles$g.tools},[e.imagePos==="right"?createVNode(Fragment,null,[createVNode("div",{class:styles$g.actions},[createVNode("div",{class:styles$g.time},[createVNode("div",{class:"plyr__time plyr__time--current","aria-label":"Current time"},[a.currentTime]),createVNode("span",{class:styles$g.line},[createTextVNode("/")]),createVNode("div",{class:"plyr__time plyr__time--duration","aria-label":"Duration"},[a.duration])])]),createVNode("div",{class:styles$g.actions},[createVNode("div",{class:styles$g.actionWrap},[createVNode("button",{class:styles$g.iconReplay,onClick:m},[createVNode("img",{src:iconReplay$2},null)]),createVNode("div",{class:styles$g.actionBtn,onClick:o},[a.paused?createVNode("img",{class:styles$g.playIcon,src:iconplay},null):createVNode("img",{class:styles$g.playIcon,src:iconpause},null)])])])]):createVNode(Fragment,null,[createVNode("div",{class:styles$g.actions},[createVNode("div",{class:styles$g.actionWrap},[createVNode("div",{class:styles$g.actionBtn,onClick:o},[a.paused?createVNode("img",{class:styles$g.playIcon,src:iconplay},null):createVNode("img",{class:styles$g.playIcon,src:iconpause},null)]),createVNode("button",{class:styles$g.iconReplay,onClick:m},[createVNode("img",{src:iconReplay$2},null)])])]),createVNode("div",{class:styles$g.actions},[createVNode("div",{class:styles$g.time},[createVNode("div",{class:"plyr__time plyr__time--current","aria-label":"Current time"},[a.currentTime]),createVNode("span",{class:styles$g.line},[createTextVNode("/")]),createVNode("div",{class:"plyr__time plyr__time--duration","aria-label":"Duration"},[a.duration])])])])])])])}}),chapterBox="_chapterBox_tlyul_1",scrollBar="_scrollBar_tlyul_5",treeBox$1="_treeBox_tlyul_9",listSectionLeft$1="_listSectionLeft_tlyul_17",listSectionRight$1="_listSectionRight_tlyul_24",treeParentSelect="_treeParentSelect_tlyul_29",treeChild="_treeChild_tlyul_33",treeItem="_treeItem_tlyul_36",dir="_dir_tlyul_44",name$2="_name_tlyul_48",childItem="_childItem_tlyul_51",titleName="_titleName_tlyul_51",title="_title_tlyul_51",titleSelect="_titleSelect_tlyul_76",childSelect="_childSelect_tlyul_96",styles$f={chapterBox,scrollBar,treeBox:treeBox$1,listSectionLeft:listSectionLeft$1,listSectionRight:listSectionRight$1,treeParentSelect,treeChild,treeItem,dir,name:name$2,childItem,titleName,title,titleSelect,childSelect};function _isSlot$4(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode(e)}const Chapter=defineComponent({name:"chapter-modal",props:{treeList:{type:Array,default:()=>[]},itemActive:{type:String,default:""}},emits:["handleSelect"],setup(e,{emit:t}){const r=useMessage(),a=toRef(e,"itemActive"),n=ref(deepClone(e.treeList)),s=(o,l,c=[])=>{for(const f of l){if(f.knowledgeList&&f.knowledgeList.length>0){const m=s(o,f.knowledgeList,[...c,f.id]);if(m.includes(o))return m}if(f.id===o)return[...c,o]}return c};watch(()=>e.itemActive,()=>{const o=s(a.value,n.value);o.length>0&&n.value.forEach(l=>{l.id==o[0]?l.selected=!0:l.selected=!1})}),onMounted(()=>{const o=s(a.value,n.value);o.length>0&&n.value.forEach(l=>{l.id==o[0]&&(l.selected=!0)})});const i=computed(()=>n.value.find(o=>o.selected));return()=>{let o;return createVNode("div",{class:styles$f.chapterBox},[createVNode("div",{class:styles$f.treeBox},[createVNode("div",{class:[styles$f.listSectionLeft]},[createVNode(NScrollbar,{class:styles$f.scrollBar},_isSlot$4(o=n.value.map((l,c)=>createVNode("div",{class:[l.selected?styles$f.treeParentSelect:""],key:"parent"+c},[createVNode("div",{class:[styles$f.treeItem,styles$f.parentItem],onClick:()=>{n.value.forEach(f=>{l.id!==f.id&&(f.selected=!1)}),l.selected=!0}},[createVNode("p",{class:[styles$f.title,l.selected?styles$f.titleSelect:""]},[createVNode("span",{class:[styles$f.dir,l.selected?styles$f.dirSelect:""]},null),createVNode("div",{class:styles$f.name},[l.name])])])])))?o:{default:()=>[o]})]),createVNode("div",{class:styles$f.listSectionRight},[createVNode(NScrollbar,{class:styles$f.scrollBar},{default:()=>[i.value&&i.value.knowledgeList&&i.value.knowledgeList.map((l,c)=>createVNode("div",{key:"child"+c,class:[styles$f.treeItem,styles$f.childItem,a.value===l.id?styles$f.childSelect:""],onClick:()=>{if(a.value!=l.id){if(l.coursewareNum<=0){r.error("该章节暂无课件");return}t("handleSelect",{itemActive:l.id,itemName:l.name})}}},[createVNode("div",{class:styles$f.titleName},[l.name])]))]})])])])}}}),iconNote="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAMAAADxPgR5AAAAwFBMVEUAAADk9P/k8//l9f/n9f/l9P/l9P/l8//l9P/l8//m8//m9P/o9v/q///k9P/k9P/l9P/k9P/m9P/l9P/l9P/l9f/n9v/o8//p+P/m9//p9P/////l8//l8//l9P/k8/8wmP9Wq/9Rqf80mv9Bof83nP/S6v94vf/d8P/X7f/F5P9yuf9mtP88nv/K5v+73v9IpP+Ixf/A4f9/wP9st/+j0/+w2f+bzv+Uy/9Zrf/O6P+OyP9fsP/h8v+13P+p1v+YamAyAAAAH3RSTlMA+cdMSs777eGYgnArDNG/uLSMi4lqVEIiHhcFxsWpm2xOQwAABJ5JREFUaN7Vm2lT6lAMhlso+yIgV3G7OdhS9lVAWcT//6/uaKNHKU2TUu7g88UZmOlrw8mb9JzUkNGwCrnKQzmbMc1MtvxQyRWshnEiSlYtZcIBzFTNKsWtVswn0kCQTuSL8andFlLAIFW4jUXuupoGJunq9dFyyQSISCSPkrsqg5jUVfSVcgGRuChGS4O6CREx6xHSxMrCEWQtodzdJRzJ5Z1E7yYBR5O4EeRCBmIgw86QPxATf3h6eYiNPEcvBzGSC9f7C7HyV3Z/p7/HPMROnr8+T79Wk3ASkoH+koGTkLkJ8E+5n3XHy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bRhWlX/DT8xzfwEXCng2pVM7OKvJSOXZzkTF8EJh3l3zKCxpWX4/4EbuvWw2UPpFZLFHWdxw7HC5EDiOOHGBRlGbJC1FwjFC30L9hW6FuOMJ6QZ6KgmJgk+w+/mgcAuy6jBiusJ6SQr7MKPWfcnF7HDQcQHbzaKJULjOvQArl/9QB0B3YFcoF17pN5y2XywWHKAWOjXrc0KFuC0shzwqCtj79xOltlJ6Rl1hqQFP8ssFQA6WX5C2WfKnHLloI+Si9JZ+Pjgps61radI8MYHXBYN5n8vVI4LRRj3tggbaD0leyHWCxpmvxrwuRqaESbJP9eSxXoCn2ZSUyFVTm9wl5d4T0hB7zqgR60nhHCFmvOkeOAz++Q5ke86KGCO2IvFNdBz1x5SA+tMX9TQC+zF8lCPC+glW7yfRJf1JMb9oYr7wnjK2ag3TY5E36i2ST1pHp2hbhpAMH8agUpDxcp57MVtNEsNm0bdvh37/gT4L+FTmguUkQ9dKWeO1JdtsLg5cqkezSqi3pNMfbzU4Yq9JdErLWcsMG06djOu6bYchtrZE+SbWh2CFBb5TdC+wQpaEmSYREqm7aJmDzT1C7GHQvakG0vZ5KkAEeLtYVM4Li+Y0LVBu+B20oA2598SEZ4sFCo2QOUaoEQeXm2cbCA5Si/mKra05Bt7WI9lD/U3ReiZOVeZrCng+TULVmFxIMc/Sx29TUBBlDck2jVwFkYeN7XjDDenBFtbUkGc+uqtGe50LYZbuBo9ejmrpLJrOZ1rSW77lDeH5L09KbJJ6tD2yy6/6lB7MGc+dd+nW2BD5skelIrKu6NoCurifILdjf/vZFTacWFlJp9cu37f0xsX/AKBuuyNzsygAAAABJRU5ErkJggg==",rightIconEnd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAn1BMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8Kd3m4AAAANHRSTlMAL2L85+9ECPeTc24lGvTe2tN+XlI7HhMNBPHHQCrizKqgmXdZVdDBsI9rYE25sqWKhTUx+JzRhwAAAfBJREFUSMftlttygjAQhtFwEPCIoCICinjWam3e/9k62ThTSTZBmelV+1+Z3XwRNnvA+OOaNcPsjObdBtzUopSOGoAhZZq8D7YBbP0+2AvcSALDwndquIVJKVkIoM/CpA/wkbDdSwEcsF+WraTgaCVIO2pyzDliC6BHOXlXcF8d8FtnKTgegUU2RTlnCN5BF7mOxRxWHyj4ybkJeo8RJ0OEm8CD9lNFAoT82FgGD+A5KTPHhfVYLoY+s+/UKTcz2XorgSfYF2ly1ceTd8+siS7JZxYzBAIXw5P62upYCWeDUl62WjCEsAtgyYymvh57YBGqZM1sFz1owEvaSNpca0DIyU0VhOst5FJJn005s7SRvFk9W1oQikrHGDFTWQUDSH7xIUj1eMidM9LThkIr96tpMsNSJ4LSn+pnAuxxhPlCeMR0ulFsKCTMuteCGdviilbIANKtHSa21AAIvxC1to+sROuKRDU9N5Add3CYPQUXQUuaY3FfApk4+CwyweuhPgt8F4yc8J47ig1MJQVtu9gMY+qopuWBk32v+qdTl1ChNyKvCcrWPzFKb3PKtTaUilf0IZK7x8259Ap4OSEwmAJCcc03dbN8iHK7+k8lJ7AkbHB67RPOGz1TZDeOjVeVHq+5RWjHTIpxz3hbsfGvZvoGIsd8tdTzIiAAAAAASUVORK5CYII=",rightIconArrange="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAmVBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////VHQRUAAAAMnRSTlMAu0PjG4Z40C4k2fb6sbgI7zgpDOjfwo5fRxcVD6iBfHNwbDEfEvzTvaKck2NZTj/Ind+ac5sAAAF1SURBVEjH7dXZjoIwFIBhHEBE9kUWcddRx3XmvP/DjT1ggnoqLYnJJON/hTafpqVNlf+Vd5j2WsEOgJW3cD245Jvy0ASW4clLB+WXUjVLjJu+ne6Khp8DlIvKwWOWzpmlxUbtAD9sgcqhZY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amqajgfSPjDhzGjO2535hubEn/h38LMzMgQUBeWY2HN0c2M+sKOEpcnFkBy+nxNQNSF+60I6hgg8SALjQXWEPqLbN9bjFguZVAXhoY5RpgQHaVEv4YwcSxwjymtLCbaQtZCth2myHK1gvBsRk4WgVwCR19YGjLpU3I1TwZ1YbwR020zC7RCvkBbaGv6ENeGnCOQg3nyri08iWSwgL0Z0iQQctErC9n7u5T5tqXRVR6Al7dMV5hyJBUg+4shffrVTA9Voe9l0xwjB0fjrmW83qEqrIxsahF43A1p5FmqChlp7gVTbG4Cd6spjFjEdeGuoT8PX81CdqX9KhP/yl8VYY5nCLx5TeGLWz60gsMjhaLQshurX+K1g6aQvdh7zLEDRxU0hUWItBnM1NqqCUOktfiBjmMqhp4wHNryjbGAnjAc2vKN8aN5M0xBEAiicP3sBGOaWpSaW0QGReX97xUsyAu0QXF8+Q7ghwu7+2Q+a7EDYtG0xmgGxKKVyvH6EisgdkSlNEYnlsA1Fu1HY7yJKfCAI627MWaFLTDDJa8caXbA1D801RqjGRB74qI1RmNg6Z+qNUZj4N3fEnpjtAe+lcZIAaIx2gNd59beBmiMDGCBxsgAojGygA80RnvgvvUuu7ip2QxgdIw3ARrjpEBPCz0M96M98NQ8PfG0JnEkyARA0PCRjdgD803wjauVEmpwW7QSKskOyUhgEQbDch0JFDcQ+BwLFDfsHavRQElc3p933omafoOSKF33jMepg5KlULNcrISaFX2cRx9Y0key9KEzfazOFgfoagRd/mDrLXSBh60o0SUstmbGFunoqiBbhmTrnmyh9f/K7rRS8jy068nE8jmp84SfA+i/P3wAWrtCfeiitXgAAAAASUVORK5CYII=",rightIconWhiteboard="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAMAAADxPgR5AAAAmVBMVEUAAADs9v/r9f/s9v/t9//////r9v/r9f/r9f/s9v/r9v/s9f/s9f/r9f/t9v/w+f/r+P/r9f/k8v/m///////r9f/r9f+Ag4XBydCeo6ipr7TY4erg6fORlZnO1t+MkJPU3eXp8v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JGYmb5MqZjiAuDbp5rY7FPCdzFSG1G04s+tn+sIEOIGTM63vkEZfH1TDlCw2ZGO0AmnkMo4QJyhDDXhNKdekjjt5N3LcgSwhwTRm9inOqWhBFakCeEMSAJ3dmneXBnsUkSmguICNP0XbLFbS5ro9ZssP4gOwYmJAthjclZwgiQLoQ3aWbrui0T0oVMGWVE2XEC8KCBi6/4DuKe9qgOTrQyODGsyGnNaiNn4pvgpqyVoJSSpkMpulaBUipaFUqpKn8kq/yhs/LH6qoHB5SPRigf/lA93qJ8gEf1iJLyISzVY2aqB+mUjwqqHoZUPe6peqD174/sFjuU/G+MXRc2WP4vjc4r+HGA8p8//AaDG0f0Jk/e8AAAAABJRU5ErkJggg==",rightIconCall="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAnFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+TINBkAAAAM3RSTlMA/Qz5b4QPywhmYhkE5l4nHBP18qIj1tPDt7B8LN/GvaeYk5BNNxftwG1qW0lCMYp0VJyLGxmBAAAByklEQVRIx+2UyZaCMBBFg5FJUWgBRcV5nrXz///WPqIHggrVvfD0wrurUJdMlWIf3seyqX9P+nPrl9qxq4mE1qTO6DhTqUm1SfasEbwUnSqOb4J2922aZydS4xw61mLGEXCX4lUayO0aMooHiHoUsYZM07qHro/5PYLYQ+Iijfv40YYgrq55nWwl4IjGhDtE3iQ7gl2uy8X6w82ZWMJfxfZ/FL8gzrIjbdwr4VQ56iY70iKWTgdPyUjjvVxCObq6SWeI+EAQYw01N7+HM3gNhxEIElNPVhv2BKgxCvWVAH7vNB3Jtxw5jMRFqK1j8EXSvIALBdMjeVVfna6lW6QGN1at6FxnJG8tp+PdzT523Ye9hfPli8aYePz04jS2XPiLp/uDpnXCV9vX0jJW8Hx4I6PI0541kQATtrPeIph6iodafGDJ8007vo40XMWzVSdtoNPcCMwSj0X4olxbU0vMsNizsNKh2g1GN7PIY0d866tjlUiAlfRePK4DPu5YzhwmZpHHLk9bhDEs82RT0o1KipWYZqGHDC5yBLLRmkUemORFfpRmJPwdK8Do4PCe9Qyv5C0bQd40K4yGt6tWq5vt1rbtWq15JWYf3ssP6XFlmwYeECoAAAAASUVORK5CYII=",rightIconPackUp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAYFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////98JRy6AAAAH3RSTlMA+zeQHF/x29HqrYAuFAUM47+jaEw9KhnauJmKenIEBwQ4zAAAAJxJREFUSMfty8kOwjAMRVFnAEoLOEknZv//X4KyqBoLKRaskHx3fvIBTfs9P2I5TPYpcb2hYNfDlajxdYeGiLYraendri5nolIOJJSRSQxCeWyYPOxVqvxKTkyeUShbYPIOtW75Ly736ZIHV3Md5frFtfk2VuYcdxt16j70YA6SzKFhzsoczMzBIHC5WDrAIHOAXSrfvEsjaNqf9wKfgi4azH+HogAAAABJRU5ErkJggg==",leftIconPackUp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAXVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9RKvvlAAAAHnRSTlMA+zcckPHbYAXq0a2ALhQMu+KlnHZoTD3lz8NZKyrGTxKvAAAAmklEQVRIx+3MyQ6CUBBE0X6DioI2M471/5+psCC8dkHHuCHpu6zkFFnWf8v8i5J4CBoXbkBDi/wVrlO4PT75hdsBcKxz6FMHBJ2rWLhS545n4U4Xc+a+Y+meOketcJTrHEWMldk83Kch0lreYSyfZYepYlUepIwmTf4kaxKy1UovpGOl7EnIQCpZMaWyJEVDE9P/R10wWdb2egP9ySypatgqLwAAAABJRU5ErkJggg==",rightIconMusic="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAn1BMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8Kd3m4AAAANHRSTlMA/Pg2Bt24LBjZyFJMIu97EQmPhXNZqVYdDPPprpSId2k81EAm0c3DvquagF1EMuzks6RiOvmixQAAAjhJREFUSMftlstiqjAQhodwC4IKWAGvR49aL9Xa2nn/ZytOqBgTNG666rfQRfiTuWYCf/wScZh6boex42rcXThgiNP3LLziuLPBhJmLCps5PMJeoZZTDHf5Z2EDH/cOdTKscCe5HzsOt2dZBwUsbNZ5SFjj692TH6etPTSwRaL1rsRreFf5JlZ7oNJeC2u1eTlYtNaHOOKqF5/C9QEoJC6d14fFETvLprhNQKFLC13IWfn3ptl4RRv7cMOAor6BOcOSCFSWFKEMbnghB5dOcN725Vzn/cn21Fvc2mS1Qea/8CAUfkLSGyIRhLVRI1S98OmrNqTl7w6geMULaV2PtJPG0jWcT2RtGJTn10yhglPCCkk4xpKza+H0HWCHEhdHW2rgKIk/pdamnYdpuBdpb0m2SgXpnD+1kuvwdXz6tPJdMNigNYVrOJaMoMITdhMUpa86mRzAz3ldxBQvKTU+ED1RTzVxVnphPy/MKZnes6byqmXXTwbHH6FgL6fDfpSODIljrhQA8aAAcMvVkhPoSq4WzrRFTuiKvBba2rYSKG2lCJVGhgpq5PGlkRM7yg+8EuqvDh2Rx8Tpo1qoXlYK3EMJu+l6vKFwURXqL2SZNSpCoxEQVUPOG79aldBs6OxIFpHRJ1qem425DZaEIKDIRwaDFQA+r4puyahRDUZ5EFWOe7lfzKd04Mjo8cB4wVCmZ/ZcOYhWrgkSowcS4wBTSVcYPcmCiFIZXCxPB/AUh7TlfqyyWQx/GPIN4YqwXgc8ikQAAAAASUVORK5CYII=",bottomIconSwitch="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAkFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+WABnwAAAAL3RSTlMAR7iKqlR0/NR+OB75wZEuFATs2sa0poZ7bT8L7+XRrp12W0QpGcqwoHBiUUooJd2BplMAAAECSURBVEjH7ZTZboMwEEWHEIqx2RKWQMi+dG/n//+umqaB2IOUhIeqlXwej+5B2A8Gi+VE4wVuy+xFkjvuLl196OvqBeqI93TjG644si5GzpSrpTI6D28kN0KBt+JonULi+aGlin7+1u1csCQTa+Gc1KOm1qTCj0u1I/WkrRxSI37qvGdllVVW/brakyoGhIqeRndACJWPq3RICOknwICQ+IuhJJVNroQ1rcaaSn1yYtxSbhsg5pvOFSGNZqARocn6u/OZT/RQhr2LEbMlGLyyb4v9IWZd1ICJzPEq06D3/pTjncmwozrLN8kyRrJouxjuIlmdsnALdzLxSpFFgQLLv+ALF8x6vv/+q3MAAAAASUVORK5CYII=",bottomIconResource="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAgVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9d3yJTAAAAKnRSTlMApEM72tSqL/EKJhwPvFb69c7HrqidlYl9amEiFgTttJmRgk8sH4pKRz/l61sYAAAA20lEQVRIx+3VWW/CMBAE4Am0jXMSIAeQcNNr/v8PbLaikl1VXpU+VEL+nkYreffNgyD4F9t1s95KeO7qJ5/jBY4lyVre7aiYxbCkFBlwoqqBJaZIgY6qCLb5OFnIhhk1b7AN7aLNJbzvH72KM4J7lMc5PvUTrxSusqIpJdRUFIlzrxpHZhxtqFrBMqWIgSNVS+eiufEiSkNzlhBRsU/gSOLrIJt69Qju0dDMD4OESfHgVZS49Sd//bE7Xn7ZHf1XW62oOrj9eF2V7aioLt8aud1AZKfIq0sRBH/xAeE/WP9JY0opAAAAAElFTkSuQmCC",bottomIconPre="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4BAMAAABaqCYtAAAAKlBMVEUAAAD///////////////////////////////////////////////////+Gu8ovAAAADXRSTlMA4yQFrV8c8M97xqJQmy3IyQAAAIlJREFUOMvty7EJwkAAheGHoFhY2VkIuoGVDuAcjuAIaVJkgWyTLQJpknC7hMCRv3h3C4T7m8crPpX226lrle0ZhpcyHe4hfPMwQBMQ6hCagDeowf7x26jBq45QgxLUoKAJCHUIJSDUIdShU2CaniOEjrx/hNCJ94kQOnMuVb0OtGpE77j8Ukm0AATIXclNea52AAAAAElFTkSuQmCC",bottomIconNext="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4BAMAAABaqCYtAAAAKlBMVEUAAAD///////////////////////////////////////////////////+Gu8ovAAAADXRSTlMA4yQFrV8c8M97xqJQmy3IyQAAAIhJREFUOMvty7EJwlAYReEfQbGwsrMQdAMrHcA5HMER0qTIAtkmWwTSJOHuEnjNeXBDBgjvdJfLF6VS1ntjX6o68o5Vw/iof+TnTzPjL11zKE2ssxIFamQd7okC9Q16JgocXuHUIdQh1KBRoFOgU6BTIEGBTm9ApwI6BToFrlKgU6B36too7bcF4hRdyc/l56kAAAAASUVORK5CYII=",rightIconTool="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAVFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////8wXzyWAAAAG3RSTlMA75mtQfZ64dSUO46lh2c6BujPtLCiYVUuHQ3WiSDuAAABBUlEQVRIx+2Wy47DIAxFCaEESl59P/z//zm6LEYj18LejNqqPbsgH2E7IOO+vAHbmH0lx62zExL9IQWrNxNjNu5HD9j2TAQ2XWVDIJn6gsgh/O4/4NvSoVhzY5nHpnIt+x2SewSJ7/blKmprJpW8CuKBDByk0lTEYu9dbebJ+7EXGL0/1fZ2dyZesHpcXYP1iJgLW52weHNNboiZ2KJHGk4B5finiz3BVEBML4gqryGOuAJeARdnfPrv+DBxKZ5RFou4kMBiECdJnAziWRLPlhrL0DGG8g9dzTjkmohDnuVRow/O2BhuHD7w5HEq0B6xgXTkamaLN2uPFJkUlGeRCJ5KX16VH6RxSpVCxaDeAAAAAElFTkSuQmCC",selectMusic="_selectMusic_7wci3_1",close="_close_7wci3_37",styles$e={selectMusic,close},searchGroup$4="_searchGroup_th8gx_1",btnType$3="_btnType_th8gx_5",inputSearch$3="_inputSearch_th8gx_41",searchCatatory$1="_searchCatatory_th8gx_62",addTrain$1="_addTrain_th8gx_69",spaceSection$1="_spaceSection_th8gx_81",collaoseGroup="_collaoseGroup_th8gx_92",collapseWrap$1="_collapseWrap_th8gx_99",collaoseBtn$1="_collaoseBtn_th8gx_105",isStart$1="_isStart_th8gx_110",isHidden$1="_isHidden_th8gx_113",hideButton$1="_hideButton_th8gx_117",popSelect$1="_popSelect_th8gx_122",spaceSection2$1="_spaceSection2_th8gx_132",textBtn$1="_textBtn_th8gx_137",iconArrow$1="_iconArrow_th8gx_149",textBtnActive$1="_textBtnActive_th8gx_158",styles$d={searchGroup:searchGroup$4,btnType:btnType$3,inputSearch:inputSearch$3,searchCatatory:searchCatatory$1,addTrain:addTrain$1,spaceSection:spaceSection$1,collaoseGroup,collapseWrap:collapseWrap$1,collaoseBtn:collaoseBtn$1,isStart:isStart$1,isHidden:isHidden$1,hideButton:hideButton$1,popSelect:popSelect$1,spaceSection2:spaceSection2$1,textBtn:textBtn$1,iconArrow:iconArrow$1,textBtnActive:textBtnActive$1};function _isSlot$3(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode(e)}const ResourceSearchGroup$2=defineComponent({name:"resource-search-group",props:{type:{type:String,default:"shareResources"},subjectId:{type:String,default:null}},emits:["search"],setup(e,{emit:t}){const r=toRef(e.subjectId),a=useCatchStore(),n=reactive({type:"MUSIC",name:"",subjectId:r.value,bookVersionId:null}),s=reactive({tempSubjectId:null}),i=ref([]),o=()=>{t("search",n)},l=useThrottleFn(()=>o(),500),c=ref(),f=ref([]),m=ref(0),u=ref(0),d=ref(0),p=ref(!1),g=ref(!1),E=A=>{A!=null&&A.selfElRef&&f.value.push(A.selfElRef.parentNode)},y=A=>{p.value=A,S()},S=()=>{try{f.value=[...new Set(f.value)];let A=-1;f.value.forEach((C,P)=>{P===0?(d.value=1,A=C.offsetLeft):C.offsetLeft===A&&P!=0&&d.value++,p.value?C.style.display="block":d.value>1?C.style.display="none":C.style.display="block"}),g.value=!0}catch(A){}},b=A=>{const C={};return A==null||A.forEach(P=>{P.id===n.subjectId&&(C.selected=!0,C.name=P.name)}),C};return onMounted(async()=>{var A,C;resourceTypeArray.forEach(P=>{i.value.push(P)}),await a.getMusicSheetCategory(),await a.getSubjects(),n.subjectId=null,n.type==="MUSIC"&&(m.value=(A=c.value)==null?void 0:A.offsetHeight,u.value=((C=c.value)==null?void 0:C.offsetHeight)/d.value,S())}),()=>{let A,C;return createVNode("div",{class:styles$d.searchGroup},[createVNode("div",{class:styles$d.searchCatatory},[createVNode(NSpace,{size:"small",class:styles$d.btnType},_isSlot$3(A=i.value.map(P=>createVNode(NButton,{type:n.type===P.value?"primary":"default",secondary:n.type!==P.value,round:!0,size:"small",focusable:!1,onClick:()=>{n.type=P.value,n.subjectId=null,o();try{nextTick(()=>{var N,D;n.type==="MUSIC"?(m.value=(N=c.value)==null?void 0:N.offsetHeight,u.value=((D=c.value)==null?void 0:D.offsetHeight)/d.value,S()):f.value=[]})}catch(N){}}},{default:()=>[P.label]})))?A:{default:()=>[A]}),createVNode(TheSearch,{class:styles$d.inputSearch,round:!0,onSearch:P=>{n.name=P,l()}},null)]),createVNode(NForm,{labelAlign:"left",labelPlacement:"left"},{default:()=>[n.type==="MUSIC"&&e.type==="shareResources"&&createVNode("div",{class:styles$d.collapsSection},[createVNode(NFormItem,{label:"教材:"},{default:()=>[createVNode("div",{class:[styles$d.collapseWrap,g.value?"":styles$d.hideButton,p.value?"":styles$d.isHidden],ref:c},[createVNode(NSpace,{class:[styles$d.spaceSection]},{default:()=>[a.getAllMusicCategories.map(P=>createVNode(NButton,{ref:E,secondary:n.bookVersionId===P.id,quaternary:n.bookVersionId!==P.id,strong:!0,focusable:!1,type:n.bookVersionId===P.id?"primary":"default",onClick:()=>{n.bookVersionId=P.id,o()}},{default:()=>[P.name]})),d.value>1&&createVNode("div",{class:styles$d.collaoseGroup,onClick:()=>{y(!p.value)}},[createVNode(NImage,{previewDisabled:!0,src:isCollaose,class:[styles$d.collaoseBtn,p.value?styles$d.isStart:""]},null)])]})])]})]),createVNode(NFormItem,{label:"乐器:"},{default:()=>[createVNode(NSpace,{class:styles$d.spaceSection2},_isSlot$3(C=a.getSubjectInstruments.map(P=>P.instruments&&P.instruments.length>1?createVNode(NPopselect,{options:P.instruments,trigger:"hover",scrollable:!0,value:s.tempSubjectId,"onUpdate:value":[N=>s.tempSubjectId=N,()=>{n.subjectId=s.tempSubjectId,o()}],key:P.value,class:[styles$d.popSelect]},{default:()=>[createVNode("span",{class:[styles$d.textBtn,b(P.instruments).selected&&styles$d.textBtnActive]},[b(P.instruments).name||P.name,createVNode("i",{class:styles$d.iconArrow},null)])]}):createVNode("span",{class:[styles$d.textBtn,n.subjectId===P.value&&styles$d.textBtnActive],onClick:()=>{n.subjectId=P.value,s.tempSubjectId=null,o()}},[P.name])))?C:{default:()=>[C]})]})]})])}}}),listContainer$3="_listContainer_1vlr5_1",emptySection$3="_emptySection_1vlr5_5",list$4="_list_1vlr5_1",itemWrap$1="_itemWrap_1vlr5_18",itemWrapBox$1="_itemWrapBox_1vlr5_23",styles$c={listContainer:listContainer$3,emptySection:emptySection$3,list:list$4,itemWrap:itemWrap$1,itemWrapBox:itemWrapBox$1},searchGroup$3="_searchGroup_sj4lp_1",btnType$2="_btnType_sj4lp_5",inputSearch$2="_inputSearch_sj4lp_41",searchCatatory="_searchCatatory_sj4lp_65",addTrain="_addTrain_sj4lp_72",spaceSection="_spaceSection_sj4lp_84",collapseWrap="_collapseWrap_sj4lp_91",collaoseBtn="_collaoseBtn_sj4lp_97",isStart="_isStart_sj4lp_102",isHidden="_isHidden_sj4lp_105",hideButton="_hideButton_sj4lp_109",popSelect="_popSelect_sj4lp_114",spaceSection2="_spaceSection2_sj4lp_124",textBtn="_textBtn_sj4lp_129",iconArrow="_iconArrow_sj4lp_141",textBtnActive="_textBtnActive_sj4lp_150",styles$b={searchGroup:searchGroup$3,btnType:btnType$2,inputSearch:inputSearch$2,searchCatatory,addTrain,spaceSection,collapseWrap,collaoseBtn,isStart,isHidden,hideButton,popSelect,spaceSection2,textBtn,iconArrow,textBtnActive};function _isSlot$2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode(e)}const ClassSearchGroup=defineComponent({name:"resource-search-group",props:{type:{type:String,default:"shareResources"},subjectId:{type:String,default:""}},emits:["search"],setup(e,{emit:t}){const r=toRef(e.subjectId),a=useCatchStore(),n=reactive({type:"MUSIC",name:"",subjectId:r.value,bookVersionId:null}),s=ref([]),i=()=>{t("search",n)},o=useThrottleFn(()=>i(),500),l=c=>{const f={};return c==null||c.forEach(m=>{m.id===n.subjectId&&(f.selected=!0,f.name=m.name)}),f};return onMounted(async()=>{resourceTypeArray.forEach(c=>{s.value.push(c)}),await a.getMusicSheetCategory(),await a.getSubjects(),a.getSubjectInstruments.forEach(c=>{c.id==e.subjectId&&(c.instruments.length>0?n.subjectId=c.instruments[0].value:n.subjectId=c.value)})}),()=>{let c;return createVNode("div",{class:styles$b.searchGroup},[createVNode(NForm,{labelAlign:"left",labelPlacement:"left"},{default:()=>[createVNode(NFormItem,{label:"乐器:"},{default:()=>[createVNode(NSpace,{class:[styles$b.spaceSection,styles$b.spaceSection2,"spaceSectionBox"]},_isSlot$2(c=a.getSubjectInstruments.map(f=>f.instruments&&f.instruments.length>1?createVNode(NPopselect,{options:f.instruments,trigger:"hover",scrollable:!0,value:n.subjectId,"onUpdate:value":[m=>n.subjectId=m,()=>{i()}],key:f.value,class:[styles$b.popSelect]},{default:()=>[createVNode("span",{class:[styles$b.textBtn,l(f.instruments).selected&&styles$b.textBtnActive]},[l(f.instruments).name||f.name,createVNode("i",{class:styles$b.iconArrow},null)])]}):createVNode("span",{class:[styles$b.textBtn,n.subjectId===f.value&&styles$b.textBtnActive],onClick:()=>{n.subjectId=f.value,i()}},[f.name])))?c:{default:()=>[c]})]}),createVNode(TheSearch,{class:styles$b.inputSearch,round:!0,onSearch:f=>{n.name=f,o()}},null)]})])}}}),formatType$2=e=>{if(e==="shareResources")return 2;if(e==="myResources")return 3;if(e==="myCollect")return 4;if(e==="relateResources")return 5},SelectItem=defineComponent({name:"share-resources",props:{type:{type:String,default:"shareResources"},from:{type:String,default:""}},setup(e){const t=usePrepareStore(),r=useCatchStore();useMessage();const{type:a}=toRefs(e),n="resourceSearchGroup"+ +new Date,s=reactive({searchHeight:"0px",loading:!1,finshed:!1,pagination:{page:1,rows:20},searchGroup:{type:"MUSIC",name:"",bookVersionId:null,subjectId:null,sourceType:formatType$2(a.value),musicalInstrumentId:null,enableFlag:!0},tableList:[],show:!1,item:{}}),i=async()=>{try{s.pagination.page===1&&(s.loading=!0);const{data:u}=await materialQueryPage({...s.searchGroup,...s.pagination,lessonCoursewareKnowledgeId:e.type==="relateResources"||e.type==="shareResources"?t.getSelectKey:null,relateLessonCoursewareKnowledgeMaterialIds:f()});s.loading=!1;const d=u.rows||[],p=[];d.forEach(g=>{p.push({id:g.id,coverImg:g.coverImg,type:g.type,title:g.name,isCollect:!!g.favoriteFlag,isSelected:g.sourceFrom==="PLATFORM",refFlag:g.refFlag,content:g.content})}),s.tableList.push(...p),s.finshed=u.pages<=u.current}catch(u){s.loading=!1}},o=useDebounceFn(u=>{s.pagination.page=1,s.tableList=[];const{subjectId:d,...p}=u;s.searchGroup=Object.assign(s.searchGroup,{...p,musicalInstrumentId:d,subjectId:null}),i()},500),l=async u=>{try{eventGlobal.emit("onPrepareAddItem",{materialId:u.id,coverImg:u.coverImg,type:u.type,title:u.title,refFlag:u.refFlag,isCollect:u.isCollect,isSelected:u.isSelected,content:u.content,removeFlag:!1})}catch(d){}},c=async u=>{try{await favorite({materialId:u.id,favoriteFlag:u.isCollect?0:1,type:u.type}),u.isCollect=!u.isCollect}catch(d){}},f=()=>{let u=[];if(e.type==="relateResources"){const d=[];t.getCoursewareList.forEach(p=>{var g;(g=p.list)==null||g.forEach(E=>{d.push(E.materialId)})}),u=Array(...new Set(d))}return u.join(",")},m=()=>{s.pagination.page=1,s.tableList=[],i()};return onMounted(async()=>{await r.getSubjects(),useResizeObserver(document.querySelector("."+n),u=>{const d=u[0],{height:p}=d.contentRect;s.searchHeight=p+"px"}),i(),e.type==="relateResources"&&eventGlobal.on("onCoursewareUpdate",m)}),onUnmounted(()=>{eventGlobal.off("onCoursewareUpdate",m)}),()=>createVNode("div",null,[createVNode("div",{class:n},[e.from==="class"?createVNode(ClassSearchGroup,{type:e.type,subjectId:t.getSubjectId,onSearch:u=>o(u)},null):createVNode(ResourceSearchGroup$2,{type:e.type,onSearch:u=>o(u)},null)]),createVNode(NScrollbar,{class:[styles$c.listContainer,"list_container"],style:{"max-height":"calc(var(--listContainerHeight) - var(--modal-lesson-tab-height) - ".concat(s.searchHeight,") ")},onScroll:u=>{var E,y,S;const d=(E=u.target)==null?void 0:E.clientHeight,p=(y=u.target)==null?void 0:y.scrollTop,g=(S=u.target)==null?void 0:S.scrollHeight;d+p+20>=g&&!s.finshed&&!s.loading&&(s.pagination.page=s.pagination.page+1,i())}},{default:()=>[createVNode(NSpin,{show:s.loading,size:"small"},{default:()=>[createVNode("div",{style:{"min-height":"calc(var(--listContainerHeight) - var(--modal-lesson-tab-height) - ".concat(s.searchHeight,")")},class:[styles$c.listSection,!s.loading&&s.tableList.length<=0?styles$c.emptySection:""]},[s.tableList.length>0&&createVNode("div",{class:styles$c.list},[s.tableList.map(u=>createVNode("div",{class:[styles$c.itemWrap,"selresources_item_Wrap"]},[createVNode("div",{class:styles$c.itemWrapBox},[createVNode(CardType,{isShowAdd:e.from!=="class",item:u,isShowCollect:!0,onAdd:d=>l(d),disabledMouseHover:!1,onCollect:d=>c(d),onClick:()=>{u.type!=="IMG"&&(s.show=!0,s.item=u)}},null)])]))]),!s.loading&&s.tableList.length<=0&&createVNode(TheEmpty,null,null)])]})]}),createVNode(CardPreview,{size:e.from==="class"?"large":"default",show:s.show,"onUpdate:show":u=>s.show=u,from:e.from,item:s.item},null)])}}),SelectResources=defineComponent({name:"select-resources",props:{type:{type:String,default:"myResources"},from:{type:String,default:""}},emits:["select"],setup(e){const{type:t}=toRefs(e),r=ref(t.value),a=useCatchStore();return onMounted(async()=>{useResizeObserver(document.querySelector(".select-resource .n-tabs-nav--top"),n=>{const s=n[0],{height:i}=s.contentRect;console.log(i,"height - 11"),document.documentElement.style.setProperty("--modal-lesson-tab-height",i+"px")}),await a.getMusicSheetCategory(!0)}),()=>createVNode("div",{class:[styles$e.selectMusic,"select-resource"]},[createVNode(NTabs,{animated:!0,value:r.value,paneClass:styles$e.paneTitle,justifyContent:"center",paneWrapperClass:styles$e.paneWrapperContainer,"onUpdate:value":n=>{r.value=n}},{default:()=>[e.from!=="class"&&createVNode(NTabPane,{name:"relateResources",tab:"相关资源"},{default:()=>[createVNode(SelectItem,{type:"relateResources"},null)]}),createVNode(NTabPane,{name:"shareResources",tab:e.from==="class"?"共享曲目":"共享资源"},{default:()=>[createVNode(SelectItem,{type:"shareResources",from:e.from},null)]}),createVNode(NTabPane,{name:"myResources",tab:e.from==="class"?"我的曲目":"我的资源"},{default:()=>[createVNode(SelectItem,{type:"myResources",from:e.from},null)]}),createVNode(NTabPane,{name:"myCollect",tab:"我的收藏"},{default:()=>[createVNode(SelectItem,{type:"myCollect",from:e.from},null)]})]})])}}),selectClass="_selectClass_1i72c_1",selectClassScroll="_selectClassScroll_1i72c_4",searchGroup$2="_searchGroup_1i72c_8",list$3="_list_1i72c_11",listEmpty="_listEmpty_1i72c_20",itemWrap="_itemWrap_1i72c_25",itemWrapBox="_itemWrapBox_1i72c_28",styles$a={selectClass,selectClassScroll,searchGroup:searchGroup$2,list:list$3,listEmpty,itemWrap,itemWrapBox},coursewareType="_coursewareType_1lcrj_1",footer="_footer_1lcrj_13",coursewareTypeHover="_coursewareTypeHover_1lcrj_18",addBtn="_addBtn_1lcrj_18",coursewareTypeHocoursewareTypeShow="_coursewareTypeHocoursewareTypeShow_1lcrj_22",cover="_cover_1lcrj_44",noCoverImg="_noCoverImg_1lcrj_54",defaultLook="_defaultLook_1lcrj_64",isShowAdd="_isShowAdd_1lcrj_88",iconNoWork="_iconNoWork_1lcrj_96",status="_status_1lcrj_106",hideP="_hideP_1lcrj_127",preview="_preview_1lcrj_130",previewBtn="_previewBtn_1lcrj_150",coursewareText="_coursewareText_1lcrj_157",name$1="_name_1lcrj_160",iconEditName="_iconEditName_1lcrj_175",subjectName="_subjectName_1lcrj_182",editName="_editName_1lcrj_188",operationBottom="_operationBottom_1lcrj_207",actionClass="_actionClass_1lcrj_227",actionWork="_actionWork_1lcrj_245",menu="_menu_1lcrj_255",iconEdit="_iconEdit_1lcrj_175",iconDelete="_iconDelete_1lcrj_279",popoverItem="_popoverItem_1lcrj_292",iconLook="_iconLook_1lcrj_326",iconAdd="_iconAdd_1lcrj_327",styles$9={coursewareType,footer,coursewareTypeHover,addBtn,coursewareTypeHocoursewareTypeShow,cover,noCoverImg,defaultLook,isShowAdd,function:"_function_1lcrj_91",iconNoWork,status,hideP,preview,previewBtn,coursewareText,name:name$1,iconEditName,subjectName,editName,operationBottom,actionClass,actionWork,menu,iconEdit,iconDelete,popoverItem,iconLook,iconAdd},CoursewareType=defineComponent({name:"courseware-type",props:{item:{type:Object,default:()=>({})},isHoverShowAdd:{type:Boolean,default:!0},isShowAdd:{type:Boolean,default:!1},isEditName:{type:Boolean,default:!1},operate:{type:Boolean,default:!1},isShowPreviewBtn:{type:Boolean,default:!1},isShowOpenFlag:{type:Boolean,default:!0}},emits:["add","editName","edit","delete","startClass","click","work","look"],setup(e,{emit:t}){return()=>createVNode("div",{class:[styles$9.coursewareType,e.isHoverShowAdd?styles$9.coursewareTypeHover:styles$9.coursewareTypeHocoursewareTypeShow]},[createVNode("div",{class:[styles$9.cover,e.isShowPreviewBtn&&styles$9.hideP,e.isShowAdd&&styles$9.isShowAdd],onClick:()=>t("click")},[e.item.openFlag&&e.isShowOpenFlag&&createVNode("span",{class:styles$9.status},[createTextVNode("公开")]),createVNode(NImage,{objectFit:"cover",previewDisabled:!0,src:e.item.coverImg,class:!e.item.coverImg&&styles$9.noCoverImg},null),createVNode("i",{class:styles$9.defaultLook},null),e.isShowPreviewBtn&&createVNode("div",{class:styles$9.preview},[createVNode(NButton,{strong:!0,secondary:!0,class:styles$9.previewBtn},{default:()=>[createTextVNode("使用课件")]})]),e.item.isNotWork&&createVNode("i",{class:styles$9.iconNoWork},null),e.isShowAdd&&createVNode("div",{class:styles$9.function},[createVNode(NTooltip,{showArrow:!1,duration:30,animated:!1},{trigger:()=>createVNode("i",{class:styles$9.iconLook,onClick:()=>t("look")},null),default:()=>"预览课件"}),createVNode(NTooltip,{showArrow:!1,duration:30,animated:!1},{trigger:()=>createVNode("i",{class:styles$9.iconAdd,onClick:()=>t("add")},null),default:()=>"添加到我的课件"})])]),createVNode("div",{class:styles$9.operationBottom},[createVNode("div",{class:styles$9.coursewareText},[createVNode("div",{class:[styles$9.name]},[createVNode("span",null,[e.item.name])]),createVNode("div",{class:styles$9.subjectName},[e.item.instrumentNames])]),e.operate&&createVNode("div",{class:styles$9.footer},[createVNode("div",{class:styles$9.actionClass,onClick:()=>t("startClass")},[createTextVNode("开始上课")]),createVNode(NSpace,null,{default:()=>[createVNode("div",{class:[styles$9.actionClass,styles$9.actionWork],onClick:()=>t("work")},[createTextVNode("作业")]),createVNode(NPopover,{trigger:"hover",showArrow:!1,to:!1,duration:50},{trigger:()=>createVNode("div",{class:[styles$9.menu]},null),default:()=>createVNode("div",{class:styles$9.popoverList},[createVNode("div",{class:styles$9.popoverItem,onClick:()=>t("edit")},[createVNode("i",{class:styles$9.iconEdit},null),createVNode("span",null,[createTextVNode("编辑课件")])]),createVNode("div",{class:styles$9.popoverItem,onClick:()=>t("delete")},[createVNode("i",{class:styles$9.iconDelete},null),createVNode("span",null,[createTextVNode("删除课件")])])])})]})])])])}}),SelectClass=defineComponent({name:"select-class",props:{courseId:{type:String,default:""},instrumentId:{type:String,default:""},lessonCoursewareSubjectList:{type:Array,default:()=>[]},classId:{type:String,default:""}},emits:["confirm","close"],setup(e,{emit:t}){const r=reactive({loading:!1,instrumentId:e.instrumentId?Number(e.instrumentId):"",tableList:[]}),a=async()=>{r.loading=!0;try{const{data:n}=await teacherChapterLessonCoursewareList({coursewareDetailKnowledgeId:e.courseId,instrumentId:e.classId?r.instrumentId:null});if(!Array.isArray(n))return;const s=[];n.forEach(i=>{var l;const o=(l=i.chapterKnowledgeList[0])==null?void 0:l.chapterKnowledgeMaterialList[0];s.push({id:i.id,openFlag:i.openFlag,openFlagEnable:i.openFlagEnable,subjectNames:i.subjectNames,fromChapterLessonCoursewareId:i.fromChapterLessonCoursewareId,name:i.name,coverImg:o==null?void 0:o.bizInfo.coverImg,type:o==null?void 0:o.bizInfo.type})}),r.tableList=s}catch(n){}r.loading=!1};return onMounted(()=>{if(console.log(e.instrumentId,e.lessonCoursewareSubjectList,"props.lessonCoursewareSubjectList"),e.instrumentId){const n=Number(e.instrumentId);let s=!1;e.lessonCoursewareSubjectList.forEach(i=>{i.id===n&&(s=!0)}),s||(r.instrumentId="")}a()}),()=>createVNode("div",{class:styles$a.selectClass},[e.classId&&createVNode("div",{class:styles$a.searchGroup},[createVNode(NSelect,{options:[{id:"",name:"全部乐器"},...e.lessonCoursewareSubjectList],valueField:"id",labelField:"name",style:{width:"220px"},placeholder:"请选择乐器",value:r.instrumentId,"onUpdate:value":[n=>r.instrumentId=n,()=>{a()}]},null)]),createVNode(NSpin,{show:r.loading},{default:()=>[createVNode(NScrollbar,{class:styles$a.selectClassScroll},{default:()=>[createVNode("div",{class:[styles$a.list,!r.loading&&r.tableList.length<=0&&styles$a.listEmpty]},[r.tableList.map(n=>createVNode("div",{class:[styles$a.itemWrap,styles$a.itemBlock,"row-nav"]},[createVNode("div",{class:styles$a.itemWrapBox},[createVNode(CoursewareType,{isShowPreviewBtn:!0,isShowOpenFlag:!1,item:n,onClick:()=>{t("confirm",{itemActive:e.courseId,chapterId:n.id})}},null)])])),!r.loading&&r.tableList.length<=0&&createVNode(TheEmpty,null,null)])]})]})])}}),sourcelistBox="_sourcelistBox_1sa5p_1",treeBox="_treeBox_1sa5p_5",listSectionLeft="_listSectionLeft_1sa5p_10",leftscrollBar="_leftscrollBar_1sa5p_14",className$1="_className_1sa5p_20",classNameIcon="_classNameIcon_1sa5p_27",classNameContent="_classNameContent_1sa5p_35",treeParent="_treeParent_1sa5p_43",parentSelect="_parentSelect_1sa5p_54",listSectionRight="_listSectionRight_1sa5p_60",rightscrollBar="_rightscrollBar_1sa5p_64",cardContainer="_cardContainer_1sa5p_72",styles$8={sourcelistBox,treeBox,listSectionLeft,leftscrollBar,className:className$1,classNameIcon,classNameContent,treeParent,parentSelect,listSectionRight,rightscrollBar,cardContainer},SourceList=defineComponent({name:"source-list",props:{knowledgePointList:{type:Array,default:()=>[]},activeItem:{type:Object,default:()=>({})},courseActiveIndex:{type:Number,default:0},teacherChapterName:{type:String,default:""}},emits:["confirm"],setup(e,{emit:t}){const r=ref(e.courseActiveIndex);watch(()=>e.courseActiveIndex,()=>{r.value=e.courseActiveIndex});const a=computed(()=>{let n=0;return e.knowledgePointList.forEach(s=>{s.list.forEach((i,o)=>{i.id===e.activeItem.id&&(n=o)})}),n});return()=>createVNode("div",{class:styles$8.sourcelistBox},[createVNode("div",{class:styles$8.treeBox},[createVNode("div",{class:[styles$8.listSectionLeft]},[createVNode(NScrollbar,{class:styles$8.leftscrollBar},{default:()=>[e.teacherChapterName&&createVNode("div",{class:styles$8.className},[createVNode("i",{class:styles$8.classNameIcon},null),createVNode("p",{class:styles$8.classNameContent},[e.teacherChapterName])]),e.knowledgePointList.map((n,s)=>createVNode("div",{class:[styles$8.treeParent,r.value===s&&styles$8.parentSelect],key:"parent"+s,onClick:()=>{r.value=s}},[n.title]))]})]),createVNode("div",{class:[styles$8.listSectionRight]},[createVNode(NScrollbar,{class:styles$8.rightscrollBar},{default:()=>{var n;return[((n=e.knowledgePointList[r.value])==null?void 0:n.list)&&e.knowledgePointList[r.value].list.map((s,i)=>createVNode("div",{class:[styles$8.cardContainer,"drawerCardItemRef"]},[createVNode(CardType,{item:s,isActive:a.value===i&&r.value===e.courseActiveIndex,isCollect:!1,isShowCollect:!1,onClick:()=>{t("confirm",s)}},null)]))]}})])])])}}),musicScore="_musicScore_17kro_1",styles$7={musicScore},RhythmModal=defineComponent({name:"song-modal",props:{item:{type:Object,default:()=>({})},activeStatus:{type:Boolean,default:!1},imagePos:{type:String,default:"left"}},emits:["setIframe"],setup(e,{emit:t}){const r=useUserStore(),a=ref(),n=ref(!1);let s="".concat(location.origin,"/classroom-app/#/tempo-practice?v=").concat(+new Date,"&platform=modal&dataJson=").concat(e.item.dataJson,"&Authorization=").concat(r.getToken,"&win=pc&imagePos=").concat(e.imagePos);return/(localhost)/.test(location.host)&&(s="http://localhost:9002/#/tempo-practice?v=".concat(+new Date,"&platform=modal&dataJson=").concat(e.item.dataJson,"&Authorization=").concat(r.getToken,"&win=pc&imagePos=").concat(e.imagePos)),watch(()=>e.activeStatus,()=>{var i;e.activeStatus||(i=a.value.contentWindow)==null||i.postMessage({api:"resetPlay"},"*")}),()=>createVNode("div",{class:styles$7.musicScore},[createVNode("iframe",{ref:a,onLoad:i=>{t("setIframe",a.value),n.value=!0,iframeDislableKeyboard(i.target)},class:[styles$7.container,"musicIframe"],frameborder:"0",src:s},null)])}}),btnGroup$1="_btnGroup_lrsir_1",tipsContainer="_tipsContainer_lrsir_61",tipsLeft="_tipsLeft_lrsir_73",tips="_tips_lrsir_61",iconTips="_iconTips_lrsir_82",btnNoTips="_btnNoTips_lrsir_87",btnItem="_btnItem_lrsir_93",btnTitle="_btnTitle_lrsir_97",btnGroupClass="_btnGroupClass_lrsir_106",listContainer$2="_listContainer_lrsir_109",listSection$2="_listSection_lrsir_113",listContainerDrag="_listContainerDrag_lrsir_116",emptySection$2="_emptySection_lrsir_122",list$2="_list_lrsir_109",itemBlock="_itemBlock_lrsir_136",trainEditModal$2="_trainEditModal_lrsir_139",assignHomework="_assignHomework_lrsir_48",assignHomeworkContainer="_assignHomeworkContainer_lrsir_145",expireDateTip="_expireDateTip_lrsir_148",expireDateIcon="_expireDateIcon_lrsir_156",updateBtnGroup="_updateBtnGroup_lrsir_168",active="_active_lrsir_180",studentSection$1="_studentSection_lrsir_184",selectStudentBtn="_selectStudentBtn_lrsir_188",disabled="_disabled_lrsir_197",firstName="_firstName_lrsir_201",studentList="_studentList_lrsir_204",studentItem$1="_studentItem_lrsir_212",removeVisiable="_removeVisiable_lrsir_230",studentRemove="_studentRemove_lrsir_236",btnGroupModal="_btnGroupModal_lrsir_248",removeVisiable1="_removeVisiable1_lrsir_255",styles$6={btnGroup:btnGroup$1,tipsContainer,tipsLeft,tips,iconTips,btnNoTips,btnItem,btnTitle,btnGroupClass,listContainer:listContainer$2,listSection:listSection$2,listContainerDrag,emptySection:emptySection$2,list:list$2,itemBlock,trainEditModal:trainEditModal$2,assignHomework,assignHomeworkContainer,expireDateTip,expireDateIcon,updateBtnGroup,switch:"_switch_lrsir_176",active,studentSection:studentSection$1,selectStudentBtn,disabled,firstName,studentList,studentItem:studentItem$1,removeVisiable,studentRemove,btnGroupModal,removeVisiable1};var vuedraggable_umd={exports:{}};const require$$0=getAugmentedNamespace(vue_runtime_esmBundler);/**!
  13. * Sortable 1.14.0
  14. * @author RubaXa <trash@rubaxa.org>
  15. * @author owenm <owen23355@gmail.com>
  16. * @license MIT
  17. */function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(a){_defineProperty(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function _typeof(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(t){return typeof t}:_typeof=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(e)}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _extends(){return _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_extends.apply(this,arguments)}function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var r={},a=Object.keys(e),n,s;for(s=0;s<a.length;s++)n=a[s],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function _objectWithoutProperties(e,t){if(e==null)return{};var r=_objectWithoutPropertiesLoose(e,t),a,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)a=s[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _iterableToArray(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _unsupportedIterableToArray(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}}function _arrayLikeToArray(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var version="1.14.0";function userAgent(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var IE11OrLess=userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Edge=userAgent(/Edge/i),FireFox=userAgent(/firefox/i),Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i),IOS=userAgent(/iP(ad|od|hone)/i),ChromeForAndroid=userAgent(/chrome/i)&&userAgent(/android/i),captureMode={capture:!1,passive:!1};function on(e,t,r){e.addEventListener(t,r,!IE11OrLess&&captureMode)}function off(e,t,r){e.removeEventListener(t,r,!IE11OrLess&&captureMode)}function matches(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(r){return!1}return!1}}function getParentOrHost(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function closest(e,t,r,a){if(e){r=r||document;do{if(t!=null&&(t[0]===">"?e.parentNode===r&&matches(e,t):matches(e,t))||a&&e===r)return e;if(e===r)break}while(e=getParentOrHost(e))}return null}var R_SPACE=/\s+/g;function toggleClass(e,t,r){if(e&&t)if(e.classList)e.classList[r?"add":"remove"](t);else{var a=(" "+e.className+" ").replace(R_SPACE," ").replace(" "+t+" "," ");e.className=(a+(r?" "+t:"")).replace(R_SPACE," ")}}function css(e,t,r){var a=e&&e.style;if(a){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(r=e.currentStyle),t===void 0?r:r[t];!(t in a)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),a[t]=r+(typeof r=="string"?"":"px")}}function matrix(e,t){var r="";if(typeof e=="string")r=e;else do{var a=css(e,"transform");a&&a!=="none"&&(r=a+" "+r)}while(!t&&(e=e.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(r)}function find(e,t,r){if(e){var a=e.getElementsByTagName(t),n=0,s=a.length;if(r)for(;n<s;n++)r(a[n],n);return a}return[]}function getWindowScrollingElement(){var e=document.scrollingElement;return e||document.documentElement}function getRect(e,t,r,a,n){if(!(!e.getBoundingClientRect&&e!==window)){var s,i,o,l,c,f,m;if(e!==window&&e.parentNode&&e!==getWindowScrollingElement()?(s=e.getBoundingClientRect(),i=s.top,o=s.left,l=s.bottom,c=s.right,f=s.height,m=s.width):(i=0,o=0,l=window.innerHeight,c=window.innerWidth,f=window.innerHeight,m=window.innerWidth),(t||r)&&e!==window&&(n=n||e.parentNode,!IE11OrLess))do if(n&&n.getBoundingClientRect&&(css(n,"transform")!=="none"||r&&css(n,"position")!=="static")){var u=n.getBoundingClientRect();i-=u.top+parseInt(css(n,"border-top-width")),o-=u.left+parseInt(css(n,"border-left-width")),l=i+s.height,c=o+s.width;break}while(n=n.parentNode);if(a&&e!==window){var d=matrix(n||e),p=d&&d.a,g=d&&d.d;d&&(i/=g,o/=p,m/=p,f/=g,l=i+f,c=o+m)}return{top:i,left:o,bottom:l,right:c,width:m,height:f}}}function isScrolledPast(e,t,r){for(var a=getParentAutoScrollElement(e,!0),n=getRect(e)[t];a;){var s=getRect(a)[r],i=void 0;if(r==="top"||r==="left"?i=n>=s:i=n<=s,!i)return a;if(a===getWindowScrollingElement())break;a=getParentAutoScrollElement(a,!1)}return!1}function getChild(e,t,r,a){for(var n=0,s=0,i=e.children;s<i.length;){if(i[s].style.display!=="none"&&i[s]!==Sortable.ghost&&(a||i[s]!==Sortable.dragged)&&closest(i[s],r.draggable,e,!1)){if(n===t)return i[s];n++}s++}return null}function lastChild(e,t){for(var r=e.lastElementChild;r&&(r===Sortable.ghost||css(r,"display")==="none"||t&&!matches(r,t));)r=r.previousElementSibling;return r||null}function index$1(e,t){var r=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Sortable.clone&&(!t||matches(e,t))&&r++;return r}function getRelativeScrollOffset(e){var t=0,r=0,a=getWindowScrollingElement();if(e)do{var n=matrix(e),s=n.a,i=n.d;t+=e.scrollLeft*s,r+=e.scrollTop*i}while(e!==a&&(e=e.parentNode));return[t,r]}function indexOfObject(e,t){for(var r in e)if(e.hasOwnProperty(r)){for(var a in t)if(t.hasOwnProperty(a)&&t[a]===e[r][a])return Number(r)}return-1}function getParentAutoScrollElement(e,t){if(!e||!e.getBoundingClientRect)return getWindowScrollingElement();var r=e,a=!1;do if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var n=css(r);if(r.clientWidth<r.scrollWidth&&(n.overflowX=="auto"||n.overflowX=="scroll")||r.clientHeight<r.scrollHeight&&(n.overflowY=="auto"||n.overflowY=="scroll")){if(!r.getBoundingClientRect||r===document.body)return getWindowScrollingElement();if(a||t)return r;a=!0}}while(r=r.parentNode);return getWindowScrollingElement()}function extend(e,t){if(e&&t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function isRectEqual(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var _throttleTimeout;function throttle(e,t){return function(){if(!_throttleTimeout){var r=arguments,a=this;r.length===1?e.call(a,r[0]):e.apply(a,r),_throttleTimeout=setTimeout(function(){_throttleTimeout=void 0},t)}}}function cancelThrottle(){clearTimeout(_throttleTimeout),_throttleTimeout=void 0}function scrollBy(e,t,r){e.scrollLeft+=t,e.scrollTop+=r}function clone(e){var t=window.Polymer,r=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):r?r(e).clone(!0)[0]:e.cloneNode(!0)}function setRect(e,t){css(e,"position","absolute"),css(e,"top",t.top),css(e,"left",t.left),css(e,"width",t.width),css(e,"height",t.height)}function unsetRect(e){css(e,"position",""),css(e,"top",""),css(e,"left",""),css(e,"width",""),css(e,"height","")}var expando="Sortable"+new Date().getTime();function AnimationStateManager(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var a=[].slice.call(this.el.children);a.forEach(function(n){if(!(css(n,"display")==="none"||n===Sortable.ghost)){e.push({target:n,rect:getRect(n)});var s=_objectSpread2({},e[e.length-1].rect);if(n.thisAnimationDuration){var i=matrix(n,!0);i&&(s.top-=i.f,s.left-=i.e)}n.fromRect=s}})}},addAnimationState:function(a){e.push(a)},removeAnimationState:function(a){e.splice(indexOfObject(e,{target:a}),1)},animateAll:function(a){var n=this;if(!this.options.animation){clearTimeout(t),typeof a=="function"&&a();return}var s=!1,i=0;e.forEach(function(o){var l=0,c=o.target,f=c.fromRect,m=getRect(c),u=c.prevFromRect,d=c.prevToRect,p=o.rect,g=matrix(c,!0);g&&(m.top-=g.f,m.left-=g.e),c.toRect=m,c.thisAnimationDuration&&isRectEqual(u,m)&&!isRectEqual(f,m)&&(p.top-m.top)/(p.left-m.left)===(f.top-m.top)/(f.left-m.left)&&(l=calculateRealTime(p,u,d,n.options)),isRectEqual(m,f)||(c.prevFromRect=f,c.prevToRect=m,l||(l=n.options.animation),n.animate(c,p,m,l)),l&&(s=!0,i=Math.max(i,l),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},l),c.thisAnimationDuration=l)}),clearTimeout(t),s?t=setTimeout(function(){typeof a=="function"&&a()},i):typeof a=="function"&&a(),e=[]},animate:function(a,n,s,i){if(i){css(a,"transition",""),css(a,"transform","");var o=matrix(this.el),l=o&&o.a,c=o&&o.d,f=(n.left-s.left)/(l||1),m=(n.top-s.top)/(c||1);a.animatingX=!!f,a.animatingY=!!m,css(a,"transform","translate3d("+f+"px,"+m+"px,0)"),this.forRepaintDummy=repaint(a),css(a,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),css(a,"transform","translate3d(0,0,0)"),typeof a.animated=="number"&&clearTimeout(a.animated),a.animated=setTimeout(function(){css(a,"transition",""),css(a,"transform",""),a.animated=!1,a.animatingX=!1,a.animatingY=!1},i)}}}}function repaint(e){return e.offsetWidth}function calculateRealTime(e,t,r,a){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-r.top,2)+Math.pow(t.left-r.left,2))*a.animation}var plugins=[],defaults={initializeByDefault:!0},PluginManager={mount:function e(t){for(var r in defaults)defaults.hasOwnProperty(r)&&!(r in t)&&(t[r]=defaults[r]);plugins.forEach(function(a){if(a.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),plugins.push(t)},pluginEvent:function e(t,r,a){var n=this;this.eventCanceled=!1,a.cancel=function(){n.eventCanceled=!0};var s=t+"Global";plugins.forEach(function(i){r[i.pluginName]&&(r[i.pluginName][s]&&r[i.pluginName][s](_objectSpread2({sortable:r},a)),r.options[i.pluginName]&&r[i.pluginName][t]&&r[i.pluginName][t](_objectSpread2({sortable:r},a)))})},initializePlugins:function e(t,r,a,n){plugins.forEach(function(o){var l=o.pluginName;if(!(!t.options[l]&&!o.initializeByDefault)){var c=new o(t,r,t.options);c.sortable=t,c.options=t.options,t[l]=c,_extends(a,c.defaults)}});for(var s in t.options)if(t.options.hasOwnProperty(s)){var i=this.modifyOption(t,s,t.options[s]);typeof i<"u"&&(t.options[s]=i)}},getEventProperties:function e(t,r){var a={};return plugins.forEach(function(n){typeof n.eventProperties=="function"&&_extends(a,n.eventProperties.call(r[n.pluginName],t))}),a},modifyOption:function e(t,r,a){var n;return plugins.forEach(function(s){t[s.pluginName]&&s.optionListeners&&typeof s.optionListeners[r]=="function"&&(n=s.optionListeners[r].call(t[s.pluginName],a))}),n}};function dispatchEvent(e){var t=e.sortable,r=e.rootEl,a=e.name,n=e.targetEl,s=e.cloneEl,i=e.toEl,o=e.fromEl,l=e.oldIndex,c=e.newIndex,f=e.oldDraggableIndex,m=e.newDraggableIndex,u=e.originalEvent,d=e.putSortable,p=e.extraEventProperties;if(t=t||r&&r[expando],!!t){var g,E=t.options,y="on"+a.charAt(0).toUpperCase()+a.substr(1);window.CustomEvent&&!IE11OrLess&&!Edge?g=new CustomEvent(a,{bubbles:!0,cancelable:!0}):(g=document.createEvent("Event"),g.initEvent(a,!0,!0)),g.to=i||r,g.from=o||r,g.item=n||r,g.clone=s,g.oldIndex=l,g.newIndex=c,g.oldDraggableIndex=f,g.newDraggableIndex=m,g.originalEvent=u,g.pullMode=d?d.lastPutMode:void 0;var S=_objectSpread2(_objectSpread2({},p),PluginManager.getEventProperties(a,t));for(var b in S)g[b]=S[b];r&&r.dispatchEvent(g),E[y]&&E[y].call(t,g)}}var _excluded=["evt"],pluginEvent=function e(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=a.evt,s=_objectWithoutProperties(a,_excluded);PluginManager.pluginEvent.bind(Sortable)(t,r,_objectSpread2({dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,dragStarted:moved,putSortable,activeSortable:Sortable.active,originalEvent:n,oldIndex,oldDraggableIndex,newIndex,newDraggableIndex,hideGhostForTarget:_hideGhostForTarget,unhideGhostForTarget:_unhideGhostForTarget,cloneNowHidden:function(){cloneHidden=!0},cloneNowShown:function(){cloneHidden=!1},dispatchSortableEvent:function(o){_dispatchEvent({sortable:r,name:o,originalEvent:n})}},s))};function _dispatchEvent(e){dispatchEvent(_objectSpread2({putSortable,cloneEl,targetEl:dragEl,rootEl,oldIndex,oldDraggableIndex,newIndex,newDraggableIndex},e))}var dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,oldIndex,newIndex,oldDraggableIndex,newDraggableIndex,activeGroup,putSortable,awaitingDragStarted=!1,ignoreNextClick=!1,sortables=[],tapEvt,touchEvt,lastDx,lastDy,tapDistanceLeft,tapDistanceTop,moved,lastTarget,lastDirection,pastFirstInvertThresh=!1,isCircumstantialInvert=!1,targetMoveDistance,ghostRelativeParent,ghostRelativeParentInitialScroll=[],_silent=!1,savedInputChecked=[],documentExists=typeof document<"u",PositionGhostAbsolutely=IOS,CSSFloatProperty=Edge||IE11OrLess?"cssFloat":"float",supportDraggable=documentExists&&!ChromeForAndroid&&!IOS&&"draggable"in document.createElement("div"),supportCssPointerEvents=function(){if(documentExists){if(IE11OrLess)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),_detectDirection=function e(t,r){var a=css(t),n=parseInt(a.width)-parseInt(a.paddingLeft)-parseInt(a.paddingRight)-parseInt(a.borderLeftWidth)-parseInt(a.borderRightWidth),s=getChild(t,0,r),i=getChild(t,1,r),o=s&&css(s),l=i&&css(i),c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+getRect(s).width,f=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+getRect(i).width;if(a.display==="flex")return a.flexDirection==="column"||a.flexDirection==="column-reverse"?"vertical":"horizontal";if(a.display==="grid")return a.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(s&&o.float&&o.float!=="none"){var m=o.float==="left"?"left":"right";return i&&(l.clear==="both"||l.clear===m)?"vertical":"horizontal"}return s&&(o.display==="block"||o.display==="flex"||o.display==="table"||o.display==="grid"||c>=n&&a[CSSFloatProperty]==="none"||i&&a[CSSFloatProperty]==="none"&&c+f>n)?"vertical":"horizontal"},_dragElInRowColumn=function e(t,r,a){var n=a?t.left:t.top,s=a?t.right:t.bottom,i=a?t.width:t.height,o=a?r.left:r.top,l=a?r.right:r.bottom,c=a?r.width:r.height;return n===o||s===l||n+i/2===o+c/2},_detectNearestEmptySortable=function e(t,r){var a;return sortables.some(function(n){var s=n[expando].options.emptyInsertThreshold;if(!(!s||lastChild(n))){var i=getRect(n),o=t>=i.left-s&&t<=i.right+s,l=r>=i.top-s&&r<=i.bottom+s;if(o&&l)return a=n}}),a},_prepareGroup=function e(t){function r(s,i){return function(o,l,c,f){var m=o.options.group.name&&l.options.group.name&&o.options.group.name===l.options.group.name;if(s==null&&(i||m))return!0;if(s==null||s===!1)return!1;if(i&&s==="clone")return s;if(typeof s=="function")return r(s(o,l,c,f),i)(o,l,c,f);var u=(i?o:l).options.group.name;return s===!0||typeof s=="string"&&s===u||s.join&&s.indexOf(u)>-1}}var a={},n=t.group;(!n||_typeof(n)!="object")&&(n={name:n}),a.name=n.name,a.checkPull=r(n.pull,!0),a.checkPut=r(n.put),a.revertClone=n.revertClone,t.group=a},_hideGhostForTarget=function e(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","none")},_unhideGhostForTarget=function e(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","")};documentExists&&document.addEventListener("click",function(e){if(ignoreNextClick)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ignoreNextClick=!1,!1},!0);var nearestEmptyInsertDetectEvent=function e(t){if(dragEl){t=t.touches?t.touches[0]:t;var r=_detectNearestEmptySortable(t.clientX,t.clientY);if(r){var a={};for(var n in t)t.hasOwnProperty(n)&&(a[n]=t[n]);a.target=a.rootEl=r,a.preventDefault=void 0,a.stopPropagation=void 0,r[expando]._onDragOver(a)}}},_checkOutsideTargetEl=function e(t){dragEl&&dragEl.parentNode[expando]._isOutsideThisEl(t.target)};function Sortable(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=_extends({},t),e[expando]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return _detectDirection(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,o){i.setData("Text",o.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Sortable.supportPointer!==!1&&"PointerEvent"in window&&!Safari,emptyInsertThreshold:5};PluginManager.initializePlugins(this,e,r);for(var a in r)!(a in t)&&(t[a]=r[a]);_prepareGroup(t);for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));this.nativeDraggable=t.forceFallback?!1:supportDraggable,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?on(e,"pointerdown",this._onTapStart):(on(e,"mousedown",this._onTapStart),on(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(on(e,"dragover",this),on(e,"dragenter",this)),sortables.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),_extends(this,AnimationStateManager())}Sortable.prototype={constructor:Sortable,_isOutsideThisEl:function e(t){!this.el.contains(t)&&t!==this.el&&(lastTarget=null)},_getDirection:function e(t,r){return typeof this.options.direction=="function"?this.options.direction.call(this,t,r,dragEl):this.options.direction},_onTapStart:function e(t){if(t.cancelable){var r=this,a=this.el,n=this.options,s=n.preventOnFilter,i=t.type,o=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(o||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,f=n.filter;if(_saveInputCheckedState(a),!dragEl&&!(/mousedown|pointerdown/.test(i)&&t.button!==0||n.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Safari&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=closest(l,n.draggable,a,!1),!(l&&l.animated)&&lastDownEl!==l)){if(oldIndex=index$1(l),oldDraggableIndex=index$1(l,n.draggable),typeof f=="function"){if(f.call(this,t,l,this)){_dispatchEvent({sortable:r,rootEl:c,name:"filter",targetEl:l,toEl:a,fromEl:a}),pluginEvent("filter",r,{evt:t}),s&&t.cancelable&&t.preventDefault();return}}else if(f&&(f=f.split(",").some(function(m){if(m=closest(c,m.trim(),a,!1),m)return _dispatchEvent({sortable:r,rootEl:m,name:"filter",targetEl:l,fromEl:a,toEl:a}),pluginEvent("filter",r,{evt:t}),!0}),f)){s&&t.cancelable&&t.preventDefault();return}n.handle&&!closest(c,n.handle,a,!1)||this._prepareDragStart(t,o,l)}}},_prepareDragStart:function e(t,r,a){var n=this,s=n.el,i=n.options,o=s.ownerDocument,l;if(a&&!dragEl&&a.parentNode===s){var c=getRect(a);if(rootEl=s,dragEl=a,parentEl=dragEl.parentNode,nextEl=dragEl.nextSibling,lastDownEl=a,activeGroup=i.group,Sortable.dragged=dragEl,tapEvt={target:dragEl,clientX:(r||t).clientX,clientY:(r||t).clientY},tapDistanceLeft=tapEvt.clientX-c.left,tapDistanceTop=tapEvt.clientY-c.top,this._lastX=(r||t).clientX,this._lastY=(r||t).clientY,dragEl.style["will-change"]="all",l=function(){if(pluginEvent("delayEnded",n,{evt:t}),Sortable.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!FireFox&&n.nativeDraggable&&(dragEl.draggable=!0),n._triggerDragStart(t,r),_dispatchEvent({sortable:n,name:"choose",originalEvent:t}),toggleClass(dragEl,i.chosenClass,!0)},i.ignore.split(",").forEach(function(f){find(dragEl,f.trim(),_disableDraggable)}),on(o,"dragover",nearestEmptyInsertDetectEvent),on(o,"mousemove",nearestEmptyInsertDetectEvent),on(o,"touchmove",nearestEmptyInsertDetectEvent),on(o,"mouseup",n._onDrop),on(o,"touchend",n._onDrop),on(o,"touchcancel",n._onDrop),FireFox&&this.nativeDraggable&&(this.options.touchStartThreshold=4,dragEl.draggable=!0),pluginEvent("delayStart",this,{evt:t}),i.delay&&(!i.delayOnTouchOnly||r)&&(!this.nativeDraggable||!(Edge||IE11OrLess))){if(Sortable.eventCanceled){this._onDrop();return}on(o,"mouseup",n._disableDelayedDrag),on(o,"touchend",n._disableDelayedDrag),on(o,"touchcancel",n._disableDelayedDrag),on(o,"mousemove",n._delayedDragTouchMoveHandler),on(o,"touchmove",n._delayedDragTouchMoveHandler),i.supportPointer&&on(o,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(l,i.delay)}else l()}},_delayedDragTouchMoveHandler:function e(t){var r=t.touches?t.touches[0]:t;Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function e(){dragEl&&_disableDraggable(dragEl),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function e(){var t=this.el.ownerDocument;off(t,"mouseup",this._disableDelayedDrag),off(t,"touchend",this._disableDelayedDrag),off(t,"touchcancel",this._disableDelayedDrag),off(t,"mousemove",this._delayedDragTouchMoveHandler),off(t,"touchmove",this._delayedDragTouchMoveHandler),off(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function e(t,r){r=r||t.pointerType=="touch"&&t,!this.nativeDraggable||r?this.options.supportPointer?on(document,"pointermove",this._onTouchMove):r?on(document,"touchmove",this._onTouchMove):on(document,"mousemove",this._onTouchMove):(on(dragEl,"dragend",this),on(rootEl,"dragstart",this._onDragStart));try{document.selection?_nextTick(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(a){}},_dragStarted:function e(t,r){if(awaitingDragStarted=!1,rootEl&&dragEl){pluginEvent("dragStarted",this,{evt:r}),this.nativeDraggable&&on(document,"dragover",_checkOutsideTargetEl);var a=this.options;!t&&toggleClass(dragEl,a.dragClass,!1),toggleClass(dragEl,a.ghostClass,!0),Sortable.active=this,t&&this._appendGhost(),_dispatchEvent({sortable:this,name:"start",originalEvent:r})}else this._nulling()},_emulateDragOver:function e(){if(touchEvt){this._lastX=touchEvt.clientX,this._lastY=touchEvt.clientY,_hideGhostForTarget();for(var t=document.elementFromPoint(touchEvt.clientX,touchEvt.clientY),r=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(touchEvt.clientX,touchEvt.clientY),t!==r);)r=t;if(dragEl.parentNode[expando]._isOutsideThisEl(t),r)do{if(r[expando]){var a=void 0;if(a=r[expando]._onDragOver({clientX:touchEvt.clientX,clientY:touchEvt.clientY,target:t,rootEl:r}),a&&!this.options.dragoverBubble)break}t=r}while(r=r.parentNode);_unhideGhostForTarget()}},_onTouchMove:function e(t){if(tapEvt){var r=this.options,a=r.fallbackTolerance,n=r.fallbackOffset,s=t.touches?t.touches[0]:t,i=ghostEl&&matrix(ghostEl,!0),o=ghostEl&&i&&i.a,l=ghostEl&&i&&i.d,c=PositionGhostAbsolutely&&ghostRelativeParent&&getRelativeScrollOffset(ghostRelativeParent),f=(s.clientX-tapEvt.clientX+n.x)/(o||1)+(c?c[0]-ghostRelativeParentInitialScroll[0]:0)/(o||1),m=(s.clientY-tapEvt.clientY+n.y)/(l||1)+(c?c[1]-ghostRelativeParentInitialScroll[1]:0)/(l||1);if(!Sortable.active&&!awaitingDragStarted){if(a&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<a)return;this._onDragStart(t,!0)}if(ghostEl){i?(i.e+=f-(lastDx||0),i.f+=m-(lastDy||0)):i={a:1,b:0,c:0,d:1,e:f,f:m};var u="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");css(ghostEl,"webkitTransform",u),css(ghostEl,"mozTransform",u),css(ghostEl,"msTransform",u),css(ghostEl,"transform",u),lastDx=f,lastDy=m,touchEvt=s}t.cancelable&&t.preventDefault()}},_appendGhost:function e(){if(!ghostEl){var t=this.options.fallbackOnBody?document.body:rootEl,r=getRect(dragEl,!0,PositionGhostAbsolutely,!0,t),a=this.options;if(PositionGhostAbsolutely){for(ghostRelativeParent=t;css(ghostRelativeParent,"position")==="static"&&css(ghostRelativeParent,"transform")==="none"&&ghostRelativeParent!==document;)ghostRelativeParent=ghostRelativeParent.parentNode;ghostRelativeParent!==document.body&&ghostRelativeParent!==document.documentElement?(ghostRelativeParent===document&&(ghostRelativeParent=getWindowScrollingElement()),r.top+=ghostRelativeParent.scrollTop,r.left+=ghostRelativeParent.scrollLeft):ghostRelativeParent=getWindowScrollingElement(),ghostRelativeParentInitialScroll=getRelativeScrollOffset(ghostRelativeParent)}ghostEl=dragEl.cloneNode(!0),toggleClass(ghostEl,a.ghostClass,!1),toggleClass(ghostEl,a.fallbackClass,!0),toggleClass(ghostEl,a.dragClass,!0),css(ghostEl,"transition",""),css(ghostEl,"transform",""),css(ghostEl,"box-sizing","border-box"),css(ghostEl,"margin",0),css(ghostEl,"top",r.top),css(ghostEl,"left",r.left),css(ghostEl,"width",r.width),css(ghostEl,"height",r.height),css(ghostEl,"opacity","0.8"),css(ghostEl,"position",PositionGhostAbsolutely?"absolute":"fixed"),css(ghostEl,"zIndex","100000"),css(ghostEl,"pointerEvents","none"),Sortable.ghost=ghostEl,t.appendChild(ghostEl),css(ghostEl,"transform-origin",tapDistanceLeft/parseInt(ghostEl.style.width)*100+"% "+tapDistanceTop/parseInt(ghostEl.style.height)*100+"%")}},_onDragStart:function e(t,r){var a=this,n=t.dataTransfer,s=a.options;if(pluginEvent("dragStart",this,{evt:t}),Sortable.eventCanceled){this._onDrop();return}pluginEvent("setupClone",this),Sortable.eventCanceled||(cloneEl=clone(dragEl),cloneEl.draggable=!1,cloneEl.style["will-change"]="",this._hideClone(),toggleClass(cloneEl,this.options.chosenClass,!1),Sortable.clone=cloneEl),a.cloneId=_nextTick(function(){pluginEvent("clone",a),!Sortable.eventCanceled&&(a.options.removeCloneOnHide||rootEl.insertBefore(cloneEl,dragEl),a._hideClone(),_dispatchEvent({sortable:a,name:"clone"}))}),!r&&toggleClass(dragEl,s.dragClass,!0),r?(ignoreNextClick=!0,a._loopId=setInterval(a._emulateDragOver,50)):(off(document,"mouseup",a._onDrop),off(document,"touchend",a._onDrop),off(document,"touchcancel",a._onDrop),n&&(n.effectAllowed="move",s.setData&&s.setData.call(a,n,dragEl)),on(document,"drop",a),css(dragEl,"transform","translateZ(0)")),awaitingDragStarted=!0,a._dragStartId=_nextTick(a._dragStarted.bind(a,r,t)),on(document,"selectstart",a),moved=!0,Safari&&css(document.body,"user-select","none")},_onDragOver:function e(t){var r=this.el,a=t.target,n,s,i,o=this.options,l=o.group,c=Sortable.active,f=activeGroup===l,m=o.sort,u=putSortable||c,d,p=this,g=!1;if(_silent)return;function E(x,T){pluginEvent(x,p,_objectSpread2({evt:t,isOwner:f,axis:d?"vertical":"horizontal",revert:i,dragRect:n,targetRect:s,canSort:m,fromSortable:u,target:a,completed:S,onMove:function(k,Y){return _onMove(rootEl,r,dragEl,n,k,getRect(k),t,Y)},changed:b},T))}function y(){E("dragOverAnimationCapture"),p.captureAnimationState(),p!==u&&u.captureAnimationState()}function S(x){return E("dragOverCompleted",{insertion:x}),x&&(f?c._hideClone():c._showClone(p),p!==u&&(toggleClass(dragEl,putSortable?putSortable.options.ghostClass:c.options.ghostClass,!1),toggleClass(dragEl,o.ghostClass,!0)),putSortable!==p&&p!==Sortable.active?putSortable=p:p===Sortable.active&&putSortable&&(putSortable=null),u===p&&(p._ignoreWhileAnimating=a),p.animateAll(function(){E("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==u&&(u.animateAll(),u._ignoreWhileAnimating=null)),(a===dragEl&&!dragEl.animated||a===r&&!a.animated)&&(lastTarget=null),!o.dragoverBubble&&!t.rootEl&&a!==document&&(dragEl.parentNode[expando]._isOutsideThisEl(t.target),!x&&nearestEmptyInsertDetectEvent(t)),!o.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),g=!0}function b(){newIndex=index$1(dragEl),newDraggableIndex=index$1(dragEl,o.draggable),_dispatchEvent({sortable:p,name:"change",toEl:r,newIndex,newDraggableIndex,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),a=closest(a,o.draggable,r,!0),E("dragOver"),Sortable.eventCanceled)return g;if(dragEl.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return S(!1);if(ignoreNextClick=!1,c&&!o.disabled&&(f?m||(i=parentEl!==rootEl):putSortable===this||(this.lastPutMode=activeGroup.checkPull(this,c,dragEl,t))&&l.checkPut(this,c,dragEl,t))){if(d=this._getDirection(t,a)==="vertical",n=getRect(dragEl),E("dragOverValid"),Sortable.eventCanceled)return g;if(i)return parentEl=rootEl,y(),this._hideClone(),E("revert"),Sortable.eventCanceled||(nextEl?rootEl.insertBefore(dragEl,nextEl):rootEl.appendChild(dragEl)),S(!0);var A=lastChild(r,o.draggable);if(!A||_ghostIsLast(t,d,this)&&!A.animated){if(A===dragEl)return S(!1);if(A&&r===t.target&&(a=A),a&&(s=getRect(a)),_onMove(rootEl,r,dragEl,n,a,s,t,!!a)!==!1)return y(),r.appendChild(dragEl),parentEl=r,b(),S(!0)}else if(A&&_ghostIsFirst(t,d,this)){var C=getChild(r,0,o,!0);if(C===dragEl)return S(!1);if(a=C,s=getRect(a),_onMove(rootEl,r,dragEl,n,a,s,t,!1)!==!1)return y(),r.insertBefore(dragEl,C),parentEl=r,b(),S(!0)}else if(a.parentNode===r){s=getRect(a);var P=0,N,D=dragEl.parentNode!==r,V=!_dragElInRowColumn(dragEl.animated&&dragEl.toRect||n,a.animated&&a.toRect||s,d),B=d?"top":"left",O=isScrolledPast(a,"top","top")||isScrolledPast(dragEl,"top","top"),_=O?O.scrollTop:void 0;lastTarget!==a&&(N=s[B],pastFirstInvertThresh=!1,isCircumstantialInvert=!V&&o.invertSwap||D),P=_getSwapDirection(t,a,s,d,V?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,isCircumstantialInvert,lastTarget===a);var G;if(P!==0){var $=index$1(dragEl);do $-=P,G=parentEl.children[$];while(G&&(css(G,"display")==="none"||G===ghostEl))}if(P===0||G===a)return S(!1);lastTarget=a,lastDirection=P;var H=a.nextElementSibling,I=!1;I=P===1;var F=_onMove(rootEl,r,dragEl,n,a,s,t,I);if(F!==!1)return(F===1||F===-1)&&(I=F===1),_silent=!0,setTimeout(_unsilent,30),y(),I&&!H?r.appendChild(dragEl):a.parentNode.insertBefore(dragEl,I?H:a),O&&scrollBy(O,0,_-O.scrollTop),parentEl=dragEl.parentNode,N!==void 0&&!isCircumstantialInvert&&(targetMoveDistance=Math.abs(N-getRect(a)[B])),b(),S(!0)}if(r.contains(dragEl))return S(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function e(){off(document,"mousemove",this._onTouchMove),off(document,"touchmove",this._onTouchMove),off(document,"pointermove",this._onTouchMove),off(document,"dragover",nearestEmptyInsertDetectEvent),off(document,"mousemove",nearestEmptyInsertDetectEvent),off(document,"touchmove",nearestEmptyInsertDetectEvent)},_offUpEvents:function e(){var t=this.el.ownerDocument;off(t,"mouseup",this._onDrop),off(t,"touchend",this._onDrop),off(t,"pointerup",this._onDrop),off(t,"touchcancel",this._onDrop),off(document,"selectstart",this)},_onDrop:function e(t){var r=this.el,a=this.options;if(newIndex=index$1(dragEl),newDraggableIndex=index$1(dragEl,a.draggable),pluginEvent("drop",this,{evt:t}),parentEl=dragEl&&dragEl.parentNode,newIndex=index$1(dragEl),newDraggableIndex=index$1(dragEl,a.draggable),Sortable.eventCanceled){this._nulling();return}awaitingDragStarted=!1,isCircumstantialInvert=!1,pastFirstInvertThresh=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),_cancelNextTick(this.cloneId),_cancelNextTick(this._dragStartId),this.nativeDraggable&&(off(document,"drop",this),off(r,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Safari&&css(document.body,"user-select",""),css(dragEl,"transform",""),t&&(moved&&(t.cancelable&&t.preventDefault(),!a.dropBubble&&t.stopPropagation()),ghostEl&&ghostEl.parentNode&&ghostEl.parentNode.removeChild(ghostEl),(rootEl===parentEl||putSortable&&putSortable.lastPutMode!=="clone")&&cloneEl&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),dragEl&&(this.nativeDraggable&&off(dragEl,"dragend",this),_disableDraggable(dragEl),dragEl.style["will-change"]="",moved&&!awaitingDragStarted&&toggleClass(dragEl,putSortable?putSortable.options.ghostClass:this.options.ghostClass,!1),toggleClass(dragEl,this.options.chosenClass,!1),_dispatchEvent({sortable:this,name:"unchoose",toEl:parentEl,newIndex:null,newDraggableIndex:null,originalEvent:t}),rootEl!==parentEl?(newIndex>=0&&(_dispatchEvent({rootEl:parentEl,name:"add",toEl:parentEl,fromEl:rootEl,originalEvent:t}),_dispatchEvent({sortable:this,name:"remove",toEl:parentEl,originalEvent:t}),_dispatchEvent({rootEl:parentEl,name:"sort",toEl:parentEl,fromEl:rootEl,originalEvent:t}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:t})),putSortable&&putSortable.save()):newIndex!==oldIndex&&newIndex>=0&&(_dispatchEvent({sortable:this,name:"update",toEl:parentEl,originalEvent:t}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:t})),Sortable.active&&((newIndex==null||newIndex===-1)&&(newIndex=oldIndex,newDraggableIndex=oldDraggableIndex),_dispatchEvent({sortable:this,name:"end",toEl:parentEl,originalEvent:t}),this.save()))),this._nulling()},_nulling:function e(){pluginEvent("nulling",this),rootEl=dragEl=parentEl=ghostEl=nextEl=cloneEl=lastDownEl=cloneHidden=tapEvt=touchEvt=moved=newIndex=newDraggableIndex=oldIndex=oldDraggableIndex=lastTarget=lastDirection=putSortable=activeGroup=Sortable.dragged=Sortable.ghost=Sortable.clone=Sortable.active=null,savedInputChecked.forEach(function(t){t.checked=!0}),savedInputChecked.length=lastDx=lastDy=0},handleEvent:function e(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":dragEl&&(this._onDragOver(t),_globalDragOver(t));break;case"selectstart":t.preventDefault();break}},toArray:function e(){for(var t=[],r,a=this.el.children,n=0,s=a.length,i=this.options;n<s;n++)r=a[n],closest(r,i.draggable,this.el,!1)&&t.push(r.getAttribute(i.dataIdAttr)||_generateId(r));return t},sort:function e(t,r){var a={},n=this.el;this.toArray().forEach(function(s,i){var o=n.children[i];closest(o,this.options.draggable,n,!1)&&(a[s]=o)},this),r&&this.captureAnimationState(),t.forEach(function(s){a[s]&&(n.removeChild(a[s]),n.appendChild(a[s]))}),r&&this.animateAll()},save:function e(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function e(t,r){return closest(t,r||this.options.draggable,this.el,!1)},option:function e(t,r){var a=this.options;if(r===void 0)return a[t];var n=PluginManager.modifyOption(this,t,r);typeof n<"u"?a[t]=n:a[t]=r,t==="group"&&_prepareGroup(a)},destroy:function e(){pluginEvent("destroy",this);var t=this.el;t[expando]=null,off(t,"mousedown",this._onTapStart),off(t,"touchstart",this._onTapStart),off(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(off(t,"dragover",this),off(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(r){r.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),sortables.splice(sortables.indexOf(this.el),1),this.el=t=null},_hideClone:function e(){if(!cloneHidden){if(pluginEvent("hideClone",this),Sortable.eventCanceled)return;css(cloneEl,"display","none"),this.options.removeCloneOnHide&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),cloneHidden=!0}},_showClone:function e(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(cloneHidden){if(pluginEvent("showClone",this),Sortable.eventCanceled)return;dragEl.parentNode==rootEl&&!this.options.group.revertClone?rootEl.insertBefore(cloneEl,dragEl):nextEl?rootEl.insertBefore(cloneEl,nextEl):rootEl.appendChild(cloneEl),this.options.group.revertClone&&this.animate(dragEl,cloneEl),css(cloneEl,"display",""),cloneHidden=!1}}};function _globalDragOver(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function _onMove(e,t,r,a,n,s,i,o){var l,c=e[expando],f=c.options.onMove,m;return window.CustomEvent&&!IE11OrLess&&!Edge?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=r,l.draggedRect=a,l.related=n||t,l.relatedRect=s||getRect(t),l.willInsertAfter=o,l.originalEvent=i,e.dispatchEvent(l),f&&(m=f.call(c,l,i)),m}function _disableDraggable(e){e.draggable=!1}function _unsilent(){_silent=!1}function _ghostIsFirst(e,t,r){var a=getRect(getChild(r.el,0,r.options,!0)),n=10;return t?e.clientX<a.left-n||e.clientY<a.top&&e.clientX<a.right:e.clientY<a.top-n||e.clientY<a.bottom&&e.clientX<a.left}function _ghostIsLast(e,t,r){var a=getRect(lastChild(r.el,r.options.draggable)),n=10;return t?e.clientX>a.right+n||e.clientX<=a.right&&e.clientY>a.bottom&&e.clientX>=a.left:e.clientX>a.right&&e.clientY>a.top||e.clientX<=a.right&&e.clientY>a.bottom+n}function _getSwapDirection(e,t,r,a,n,s,i,o){var l=a?e.clientY:e.clientX,c=a?r.height:r.width,f=a?r.top:r.left,m=a?r.bottom:r.right,u=!1;if(!i){if(o&&targetMoveDistance<c*n){if(!pastFirstInvertThresh&&(lastDirection===1?l>f+c*s/2:l<m-c*s/2)&&(pastFirstInvertThresh=!0),pastFirstInvertThresh)u=!0;else if(lastDirection===1?l<f+targetMoveDistance:l>m-targetMoveDistance)return-lastDirection}else if(l>f+c*(1-n)/2&&l<m-c*(1-n)/2)return _getInsertDirection(t)}return u=u||i,u&&(l<f+c*s/2||l>m-c*s/2)?l>f+c/2?1:-1:0}function _getInsertDirection(e){return index$1(dragEl)<index$1(e)?1:-1}function _generateId(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,r=t.length,a=0;r--;)a+=t.charCodeAt(r);return a.toString(36)}function _saveInputCheckedState(e){savedInputChecked.length=0;for(var t=e.getElementsByTagName("input"),r=t.length;r--;){var a=t[r];a.checked&&savedInputChecked.push(a)}}function _nextTick(e){return setTimeout(e,0)}function _cancelNextTick(e){return clearTimeout(e)}documentExists&&on(document,"touchmove",function(e){(Sortable.active||awaitingDragStarted)&&e.cancelable&&e.preventDefault()});Sortable.utils={on,off,css,find,is:function e(t,r){return!!closest(t,r,t,!1)},extend,throttle,closest,toggleClass,clone,index:index$1,nextTick:_nextTick,cancelNextTick:_cancelNextTick,detectDirection:_detectDirection,getChild};Sortable.get=function(e){return e[expando]};Sortable.mount=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t[0].constructor===Array&&(t=t[0]),t.forEach(function(a){if(!a.prototype||!a.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(a));a.utils&&(Sortable.utils=_objectSpread2(_objectSpread2({},Sortable.utils),a.utils)),PluginManager.mount(a)})};Sortable.create=function(e,t){return new Sortable(e,t)};Sortable.version=version;var autoScrolls=[],scrollEl,scrollRootEl,scrolling=!1,lastAutoScrollX,lastAutoScrollY,touchEvt$1,pointerElemChangedInterval;function AutoScrollPlugin(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(r){var a=r.originalEvent;this.sortable.nativeDraggable?on(document,"dragover",this._handleAutoScroll):this.options.supportPointer?on(document,"pointermove",this._handleFallbackAutoScroll):a.touches?on(document,"touchmove",this._handleFallbackAutoScroll):on(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(r){var a=r.originalEvent;!this.options.dragOverBubble&&!a.rootEl&&this._handleAutoScroll(a)},drop:function(){this.sortable.nativeDraggable?off(document,"dragover",this._handleAutoScroll):(off(document,"pointermove",this._handleFallbackAutoScroll),off(document,"touchmove",this._handleFallbackAutoScroll),off(document,"mousemove",this._handleFallbackAutoScroll)),clearPointerElemChangedInterval(),clearAutoScrolls(),cancelThrottle()},nulling:function(){touchEvt$1=scrollRootEl=scrollEl=scrolling=pointerElemChangedInterval=lastAutoScrollX=lastAutoScrollY=null,autoScrolls.length=0},_handleFallbackAutoScroll:function(r){this._handleAutoScroll(r,!0)},_handleAutoScroll:function(r,a){var n=this,s=(r.touches?r.touches[0]:r).clientX,i=(r.touches?r.touches[0]:r).clientY,o=document.elementFromPoint(s,i);if(touchEvt$1=r,a||this.options.forceAutoScrollFallback||Edge||IE11OrLess||Safari){autoScroll(r,this.options,o,a);var l=getParentAutoScrollElement(o,!0);scrolling&&(!pointerElemChangedInterval||s!==lastAutoScrollX||i!==lastAutoScrollY)&&(pointerElemChangedInterval&&clearPointerElemChangedInterval(),pointerElemChangedInterval=setInterval(function(){var c=getParentAutoScrollElement(document.elementFromPoint(s,i),!0);c!==l&&(l=c,clearAutoScrolls()),autoScroll(r,n.options,c,a)},10),lastAutoScrollX=s,lastAutoScrollY=i)}else{if(!this.options.bubbleScroll||getParentAutoScrollElement(o,!0)===getWindowScrollingElement()){clearAutoScrolls();return}autoScroll(r,this.options,getParentAutoScrollElement(o,!1),!1)}}},_extends(e,{pluginName:"scroll",initializeByDefault:!0})}function clearAutoScrolls(){autoScrolls.forEach(function(e){clearInterval(e.pid)}),autoScrolls=[]}function clearPointerElemChangedInterval(){clearInterval(pointerElemChangedInterval)}var autoScroll=throttle(function(e,t,r,a){if(t.scroll){var n=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,i=t.scrollSensitivity,o=t.scrollSpeed,l=getWindowScrollingElement(),c=!1,f;scrollRootEl!==r&&(scrollRootEl=r,clearAutoScrolls(),scrollEl=t.scroll,f=t.scrollFn,scrollEl===!0&&(scrollEl=getParentAutoScrollElement(r,!0)));var m=0,u=scrollEl;do{var d=u,p=getRect(d),g=p.top,E=p.bottom,y=p.left,S=p.right,b=p.width,A=p.height,C=void 0,P=void 0,N=d.scrollWidth,D=d.scrollHeight,V=css(d),B=d.scrollLeft,O=d.scrollTop;d===l?(C=b<N&&(V.overflowX==="auto"||V.overflowX==="scroll"||V.overflowX==="visible"),P=A<D&&(V.overflowY==="auto"||V.overflowY==="scroll"||V.overflowY==="visible")):(C=b<N&&(V.overflowX==="auto"||V.overflowX==="scroll"),P=A<D&&(V.overflowY==="auto"||V.overflowY==="scroll"));var _=C&&(Math.abs(S-n)<=i&&B+b<N)-(Math.abs(y-n)<=i&&!!B),G=P&&(Math.abs(E-s)<=i&&O+A<D)-(Math.abs(g-s)<=i&&!!O);if(!autoScrolls[m])for(var $=0;$<=m;$++)autoScrolls[$]||(autoScrolls[$]={});(autoScrolls[m].vx!=_||autoScrolls[m].vy!=G||autoScrolls[m].el!==d)&&(autoScrolls[m].el=d,autoScrolls[m].vx=_,autoScrolls[m].vy=G,clearInterval(autoScrolls[m].pid),(_!=0||G!=0)&&(c=!0,autoScrolls[m].pid=setInterval((function(){a&&this.layer===0&&Sortable.active._onTouchMove(touchEvt$1);var H=autoScrolls[this.layer].vy?autoScrolls[this.layer].vy*o:0,I=autoScrolls[this.layer].vx?autoScrolls[this.layer].vx*o:0;typeof f=="function"&&f.call(Sortable.dragged.parentNode[expando],I,H,e,touchEvt$1,autoScrolls[this.layer].el)!=="continue"||scrollBy(autoScrolls[this.layer].el,I,H)}).bind({layer:m}),24))),m++}while(t.bubbleScroll&&u!==l&&(u=getParentAutoScrollElement(u,!1)));scrolling=c}},30),drop=function e(t){var r=t.originalEvent,a=t.putSortable,n=t.dragEl,s=t.activeSortable,i=t.dispatchSortableEvent,o=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(r){var c=a||s;o();var f=r.changedTouches&&r.changedTouches.length?r.changedTouches[0]:r,m=document.elementFromPoint(f.clientX,f.clientY);l(),c&&!c.el.contains(m)&&(i("spill"),this.onSpill({dragEl:n,putSortable:a}))}};function Revert(){}Revert.prototype={startIndex:null,dragStart:function e(t){var r=t.oldDraggableIndex;this.startIndex=r},onSpill:function e(t){var r=t.dragEl,a=t.putSortable;this.sortable.captureAnimationState(),a&&a.captureAnimationState();var n=getChild(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(r,n):this.sortable.el.appendChild(r),this.sortable.animateAll(),a&&a.animateAll()},drop};_extends(Revert,{pluginName:"revertOnSpill"});function Remove(){}Remove.prototype={onSpill:function e(t){var r=t.dragEl,a=t.putSortable,n=a||this.sortable;n.captureAnimationState(),r.parentNode&&r.parentNode.removeChild(r),n.animateAll()},drop};_extends(Remove,{pluginName:"removeOnSpill"});var lastSwapEl;function SwapPlugin(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(r){var a=r.dragEl;lastSwapEl=a},dragOverValid:function(r){var a=r.completed,n=r.target,s=r.onMove,i=r.activeSortable,o=r.changed,l=r.cancel;if(i.options.swap){var c=this.sortable.el,f=this.options;if(n&&n!==c){var m=lastSwapEl;s(n)!==!1?(toggleClass(n,f.swapClass,!0),lastSwapEl=n):lastSwapEl=null,m&&m!==lastSwapEl&&toggleClass(m,f.swapClass,!1)}o(),a(!0),l()}},drop:function(r){var a=r.activeSortable,n=r.putSortable,s=r.dragEl,i=n||this.sortable,o=this.options;lastSwapEl&&toggleClass(lastSwapEl,o.swapClass,!1),lastSwapEl&&(o.swap||n&&n.options.swap)&&s!==lastSwapEl&&(i.captureAnimationState(),i!==a&&a.captureAnimationState(),swapNodes(s,lastSwapEl),i.animateAll(),i!==a&&a.animateAll())},nulling:function(){lastSwapEl=null}},_extends(e,{pluginName:"swap",eventProperties:function(){return{swapItem:lastSwapEl}}})}function swapNodes(e,t){var r=e.parentNode,a=t.parentNode,n,s;!r||!a||r.isEqualNode(t)||a.isEqualNode(e)||(n=index$1(e),s=index$1(t),r.isEqualNode(a)&&n<s&&s++,r.insertBefore(t,r.children[n]),a.insertBefore(e,a.children[s]))}var multiDragElements=[],multiDragClones=[],lastMultiDragSelect,multiDragSortable,initialFolding=!1,folding=!1,dragStarted=!1,dragEl$1,clonesFromRect,clonesHidden;function MultiDragPlugin(){function e(t){for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));t.options.supportPointer?on(document,"pointerup",this._deselectMultiDrag):(on(document,"mouseup",this._deselectMultiDrag),on(document,"touchend",this._deselectMultiDrag)),on(document,"keydown",this._checkKeyDown),on(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(n,s){var i="";multiDragElements.length&&multiDragSortable===t?multiDragElements.forEach(function(o,l){i+=(l?", ":"")+o.textContent}):i=s.textContent,n.setData("Text",i)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(r){var a=r.dragEl;dragEl$1=a},delayEnded:function(){this.isMultiDrag=~multiDragElements.indexOf(dragEl$1)},setupClone:function(r){var a=r.sortable,n=r.cancel;if(this.isMultiDrag){for(var s=0;s<multiDragElements.length;s++)multiDragClones.push(clone(multiDragElements[s])),multiDragClones[s].sortableIndex=multiDragElements[s].sortableIndex,multiDragClones[s].draggable=!1,multiDragClones[s].style["will-change"]="",toggleClass(multiDragClones[s],this.options.selectedClass,!1),multiDragElements[s]===dragEl$1&&toggleClass(multiDragClones[s],this.options.chosenClass,!1);a._hideClone(),n()}},clone:function(r){var a=r.sortable,n=r.rootEl,s=r.dispatchSortableEvent,i=r.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||multiDragElements.length&&multiDragSortable===a&&(insertMultiDragClones(!0,n),s("clone"),i()))},showClone:function(r){var a=r.cloneNowShown,n=r.rootEl,s=r.cancel;this.isMultiDrag&&(insertMultiDragClones(!1,n),multiDragClones.forEach(function(i){css(i,"display","")}),a(),clonesHidden=!1,s())},hideClone:function(r){var a=this;r.sortable;var n=r.cloneNowHidden,s=r.cancel;this.isMultiDrag&&(multiDragClones.forEach(function(i){css(i,"display","none"),a.options.removeCloneOnHide&&i.parentNode&&i.parentNode.removeChild(i)}),n(),clonesHidden=!0,s())},dragStartGlobal:function(r){r.sortable,!this.isMultiDrag&&multiDragSortable&&multiDragSortable.multiDrag._deselectMultiDrag(),multiDragElements.forEach(function(a){a.sortableIndex=index$1(a)}),multiDragElements=multiDragElements.sort(function(a,n){return a.sortableIndex-n.sortableIndex}),dragStarted=!0},dragStarted:function(r){var a=this,n=r.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){multiDragElements.forEach(function(i){i!==dragEl$1&&css(i,"position","absolute")});var s=getRect(dragEl$1,!1,!0,!0);multiDragElements.forEach(function(i){i!==dragEl$1&&setRect(i,s)}),folding=!0,initialFolding=!0}n.animateAll(function(){folding=!1,initialFolding=!1,a.options.animation&&multiDragElements.forEach(function(i){unsetRect(i)}),a.options.sort&&removeMultiDragElements()})}},dragOver:function(r){var a=r.target,n=r.completed,s=r.cancel;folding&&~multiDragElements.indexOf(a)&&(n(!1),s())},revert:function(r){var a=r.fromSortable,n=r.rootEl,s=r.sortable,i=r.dragRect;multiDragElements.length>1&&(multiDragElements.forEach(function(o){s.addAnimationState({target:o,rect:folding?getRect(o):i}),unsetRect(o),o.fromRect=i,a.removeAnimationState(o)}),folding=!1,insertMultiDragElements(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(r){var a=r.sortable,n=r.isOwner,s=r.insertion,i=r.activeSortable,o=r.parentEl,l=r.putSortable,c=this.options;if(s){if(n&&i._hideClone(),initialFolding=!1,c.animation&&multiDragElements.length>1&&(folding||!n&&!i.options.sort&&!l)){var f=getRect(dragEl$1,!1,!0,!0);multiDragElements.forEach(function(u){u!==dragEl$1&&(setRect(u,f),o.appendChild(u))}),folding=!0}if(!n)if(folding||removeMultiDragElements(),multiDragElements.length>1){var m=clonesHidden;i._showClone(a),i.options.animation&&!clonesHidden&&m&&multiDragClones.forEach(function(u){i.addAnimationState({target:u,rect:clonesFromRect}),u.fromRect=clonesFromRect,u.thisAnimationDuration=null})}else i._showClone(a)}},dragOverAnimationCapture:function(r){var a=r.dragRect,n=r.isOwner,s=r.activeSortable;if(multiDragElements.forEach(function(o){o.thisAnimationDuration=null}),s.options.animation&&!n&&s.multiDrag.isMultiDrag){clonesFromRect=_extends({},a);var i=matrix(dragEl$1,!0);clonesFromRect.top-=i.f,clonesFromRect.left-=i.e}},dragOverAnimationComplete:function(){folding&&(folding=!1,removeMultiDragElements())},drop:function(r){var a=r.originalEvent,n=r.rootEl,s=r.parentEl,i=r.sortable,o=r.dispatchSortableEvent,l=r.oldIndex,c=r.putSortable,f=c||this.sortable;if(a){var m=this.options,u=s.children;if(!dragStarted)if(m.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),toggleClass(dragEl$1,m.selectedClass,!~multiDragElements.indexOf(dragEl$1)),~multiDragElements.indexOf(dragEl$1))multiDragElements.splice(multiDragElements.indexOf(dragEl$1),1),lastMultiDragSelect=null,dispatchEvent({sortable:i,rootEl:n,name:"deselect",targetEl:dragEl$1,originalEvt:a});else{if(multiDragElements.push(dragEl$1),dispatchEvent({sortable:i,rootEl:n,name:"select",targetEl:dragEl$1,originalEvt:a}),a.shiftKey&&lastMultiDragSelect&&i.el.contains(lastMultiDragSelect)){var d=index$1(lastMultiDragSelect),p=index$1(dragEl$1);if(~d&&~p&&d!==p){var g,E;for(p>d?(E=d,g=p):(E=p,g=d+1);E<g;E++)~multiDragElements.indexOf(u[E])||(toggleClass(u[E],m.selectedClass,!0),multiDragElements.push(u[E]),dispatchEvent({sortable:i,rootEl:n,name:"select",targetEl:u[E],originalEvt:a}))}}else lastMultiDragSelect=dragEl$1;multiDragSortable=f}if(dragStarted&&this.isMultiDrag){if(folding=!1,(s[expando].options.sort||s!==n)&&multiDragElements.length>1){var y=getRect(dragEl$1),S=index$1(dragEl$1,":not(."+this.options.selectedClass+")");if(!initialFolding&&m.animation&&(dragEl$1.thisAnimationDuration=null),f.captureAnimationState(),!initialFolding&&(m.animation&&(dragEl$1.fromRect=y,multiDragElements.forEach(function(A){if(A.thisAnimationDuration=null,A!==dragEl$1){var C=folding?getRect(A):y;A.fromRect=C,f.addAnimationState({target:A,rect:C})}})),removeMultiDragElements(),multiDragElements.forEach(function(A){u[S]?s.insertBefore(A,u[S]):s.appendChild(A),S++}),l===index$1(dragEl$1))){var b=!1;multiDragElements.forEach(function(A){if(A.sortableIndex!==index$1(A)){b=!0;return}}),b&&o("update")}multiDragElements.forEach(function(A){unsetRect(A)}),f.animateAll()}multiDragSortable=f}(n===s||c&&c.lastPutMode!=="clone")&&multiDragClones.forEach(function(A){A.parentNode&&A.parentNode.removeChild(A)})}},nullingGlobal:function(){this.isMultiDrag=dragStarted=!1,multiDragClones.length=0},destroyGlobal:function(){this._deselectMultiDrag(),off(document,"pointerup",this._deselectMultiDrag),off(document,"mouseup",this._deselectMultiDrag),off(document,"touchend",this._deselectMultiDrag),off(document,"keydown",this._checkKeyDown),off(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(r){if(!(typeof dragStarted<"u"&&dragStarted)&&multiDragSortable===this.sortable&&!(r&&closest(r.target,this.options.draggable,this.sortable.el,!1))&&!(r&&r.button!==0))for(;multiDragElements.length;){var a=multiDragElements[0];toggleClass(a,this.options.selectedClass,!1),multiDragElements.shift(),dispatchEvent({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:a,originalEvt:r})}},_checkKeyDown:function(r){r.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(r){r.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},_extends(e,{pluginName:"multiDrag",utils:{select:function(r){var a=r.parentNode[expando];!a||!a.options.multiDrag||~multiDragElements.indexOf(r)||(multiDragSortable&&multiDragSortable!==a&&(multiDragSortable.multiDrag._deselectMultiDrag(),multiDragSortable=a),toggleClass(r,a.options.selectedClass,!0),multiDragElements.push(r))},deselect:function(r){var a=r.parentNode[expando],n=multiDragElements.indexOf(r);!a||!a.options.multiDrag||!~n||(toggleClass(r,a.options.selectedClass,!1),multiDragElements.splice(n,1))}},eventProperties:function(){var r=this,a=[],n=[];return multiDragElements.forEach(function(s){a.push({multiDragElement:s,index:s.sortableIndex});var i;folding&&s!==dragEl$1?i=-1:folding?i=index$1(s,":not(."+r.options.selectedClass+")"):i=index$1(s),n.push({multiDragElement:s,index:i})}),{items:_toConsumableArray(multiDragElements),clones:[].concat(multiDragClones),oldIndicies:a,newIndicies:n}},optionListeners:{multiDragKey:function(r){return r=r.toLowerCase(),r==="ctrl"?r="Control":r.length>1&&(r=r.charAt(0).toUpperCase()+r.substr(1)),r}}})}function insertMultiDragElements(e,t){multiDragElements.forEach(function(r,a){var n=t.children[r.sortableIndex+(e?Number(a):0)];n?t.insertBefore(r,n):t.appendChild(r)})}function insertMultiDragClones(e,t){multiDragClones.forEach(function(r,a){var n=t.children[r.sortableIndex+(e?Number(a):0)];n?t.insertBefore(r,n):t.appendChild(r)})}function removeMultiDragElements(){multiDragElements.forEach(function(e){e!==dragEl$1&&e.parentNode&&e.parentNode.removeChild(e)})}Sortable.mount(new AutoScrollPlugin);Sortable.mount(Remove,Revert);const sortable_esm=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:MultiDragPlugin,Sortable,Swap:SwapPlugin,default:Sortable},Symbol.toStringTag,{value:"Module"})),require$$1=getAugmentedNamespace(sortable_esm);(function(e,t){(function(a,n){e.exports=n(require$$0,require$$1)})(typeof self<"u"?self:commonjsGlobal,function(r,a){return function(n){var s={};function i(o){if(s[o])return s[o].exports;var l=s[o]={i:o,l:!1,exports:{}};return n[o].call(l.exports,l,l.exports,i),l.l=!0,l.exports}return i.m=n,i.c=s,i.d=function(o,l,c){i.o(o,l)||Object.defineProperty(o,l,{enumerable:!0,get:c})},i.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},i.t=function(o,l){if(l&1&&(o=i(o)),l&8||l&4&&typeof o=="object"&&o&&o.__esModule)return o;var c=Object.create(null);if(i.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:o}),l&2&&typeof o!="string")for(var f in o)i.d(c,f,(function(m){return o[m]}).bind(null,f));return c},i.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(l,"a",l),l},i.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},i.p="",i(i.s="fb15")}({"00ee":function(n,s,i){var o=i("b622"),l=o("toStringTag"),c={};c[l]="z",n.exports=String(c)==="[object z]"},"0366":function(n,s,i){var o=i("1c0b");n.exports=function(l,c,f){if(o(l),c===void 0)return l;switch(f){case 0:return function(){return l.call(c)};case 1:return function(m){return l.call(c,m)};case 2:return function(m,u){return l.call(c,m,u)};case 3:return function(m,u,d){return l.call(c,m,u,d)}}return function(){return l.apply(c,arguments)}}},"057f":function(n,s,i){var o=i("fc6a"),l=i("241c").f,c={}.toString,f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m=function(u){try{return l(u)}catch(d){return f.slice()}};n.exports.f=function(d){return f&&c.call(d)=="[object Window]"?m(d):l(o(d))}},"06cf":function(n,s,i){var o=i("83ab"),l=i("d1e7"),c=i("5c6c"),f=i("fc6a"),m=i("c04e"),u=i("5135"),d=i("0cfb"),p=Object.getOwnPropertyDescriptor;s.f=o?p:function(E,y){if(E=f(E),y=m(y,!0),d)try{return p(E,y)}catch(S){}if(u(E,y))return c(!l.f.call(E,y),E[y])}},"0cfb":function(n,s,i){var o=i("83ab"),l=i("d039"),c=i("cc12");n.exports=!o&&!l(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(n,s,i){var o=i("23e7"),l=i("d58f").left,c=i("a640"),f=i("ae40"),m=c("reduce"),u=f("reduce",{1:0});o({target:"Array",proto:!0,forced:!m||!u},{reduce:function(p){return l(this,p,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(n,s,i){var o=i("c6b6"),l=i("9263");n.exports=function(c,f){var m=c.exec;if(typeof m=="function"){var u=m.call(c,f);if(typeof u!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return u}if(o(c)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(c,f)}},"159b":function(n,s,i){var o=i("da84"),l=i("fdbc"),c=i("17c2"),f=i("9112");for(var m in l){var u=o[m],d=u&&u.prototype;if(d&&d.forEach!==c)try{f(d,"forEach",c)}catch(p){d.forEach=c}}},"17c2":function(n,s,i){var o=i("b727").forEach,l=i("a640"),c=i("ae40"),f=l("forEach"),m=c("forEach");n.exports=!f||!m?function(d){return o(this,d,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(n,s,i){var o=i("d066");n.exports=o("document","documentElement")},"1c0b":function(n,s){n.exports=function(i){if(typeof i!="function")throw TypeError(String(i)+" is not a function");return i}},"1c7e":function(n,s,i){var o=i("b622"),l=o("iterator"),c=!1;try{var f=0,m={next:function(){return{done:!!f++}},return:function(){c=!0}};m[l]=function(){return this},Array.from(m,function(){throw 2})}catch(u){}n.exports=function(u,d){if(!d&&!c)return!1;var p=!1;try{var g={};g[l]=function(){return{next:function(){return{done:p=!0}}}},u(g)}catch(E){}return p}},"1d80":function(n,s){n.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},"1dde":function(n,s,i){var o=i("d039"),l=i("b622"),c=i("2d00"),f=l("species");n.exports=function(m){return c>=51||!o(function(){var u=[],d=u.constructor={};return d[f]=function(){return{foo:1}},u[m](Boolean).foo!==1})}},"23cb":function(n,s,i){var o=i("a691"),l=Math.max,c=Math.min;n.exports=function(f,m){var u=o(f);return u<0?l(u+m,0):c(u,m)}},"23e7":function(n,s,i){var o=i("da84"),l=i("06cf").f,c=i("9112"),f=i("6eeb"),m=i("ce4e"),u=i("e893"),d=i("94ca");n.exports=function(p,g){var E=p.target,y=p.global,S=p.stat,b,A,C,P,N,D;if(y?A=o:S?A=o[E]||m(E,{}):A=(o[E]||{}).prototype,A)for(C in g){if(N=g[C],p.noTargetGet?(D=l(A,C),P=D&&D.value):P=A[C],b=d(y?C:E+(S?".":"#")+C,p.forced),!b&&P!==void 0){if(typeof N==typeof P)continue;u(N,P)}(p.sham||P&&P.sham)&&c(N,"sham",!0),f(A,C,N,p)}}},"241c":function(n,s,i){var o=i("ca84"),l=i("7839"),c=l.concat("length","prototype");s.f=Object.getOwnPropertyNames||function(m){return o(m,c)}},"25f0":function(n,s,i){var o=i("6eeb"),l=i("825a"),c=i("d039"),f=i("ad6d"),m="toString",u=RegExp.prototype,d=u[m],p=c(function(){return d.call({source:"a",flags:"b"})!="/a/b"}),g=d.name!=m;(p||g)&&o(RegExp.prototype,m,function(){var y=l(this),S=String(y.source),b=y.flags,A=String(b===void 0&&y instanceof RegExp&&!("flags"in u)?f.call(y):b);return"/"+S+"/"+A},{unsafe:!0})},"2ca0":function(n,s,i){var o=i("23e7"),l=i("06cf").f,c=i("50c4"),f=i("5a34"),m=i("1d80"),u=i("ab13"),d=i("c430"),p="".startsWith,g=Math.min,E=u("startsWith"),y=!d&&!E&&!!function(){var S=l(String.prototype,"startsWith");return S&&!S.writable}();o({target:"String",proto:!0,forced:!y&&!E},{startsWith:function(b){var A=String(m(this));f(b);var C=c(g(arguments.length>1?arguments[1]:void 0,A.length)),P=String(b);return p?p.call(A,P,C):A.slice(C,C+P.length)===P}})},"2d00":function(n,s,i){var o=i("da84"),l=i("342f"),c=o.process,f=c&&c.versions,m=f&&f.v8,u,d;m?(u=m.split("."),d=u[0]+u[1]):l&&(u=l.match(/Edge\/(\d+)/),(!u||u[1]>=74)&&(u=l.match(/Chrome\/(\d+)/),u&&(d=u[1]))),n.exports=d&&+d},"342f":function(n,s,i){var o=i("d066");n.exports=o("navigator","userAgent")||""},"35a1":function(n,s,i){var o=i("f5df"),l=i("3f8c"),c=i("b622"),f=c("iterator");n.exports=function(m){if(m!=null)return m[f]||m["@@iterator"]||l[o(m)]}},"37e8":function(n,s,i){var o=i("83ab"),l=i("9bf2"),c=i("825a"),f=i("df75");n.exports=o?Object.defineProperties:function(u,d){c(u);for(var p=f(d),g=p.length,E=0,y;g>E;)l.f(u,y=p[E++],d[y]);return u}},"3bbe":function(n,s,i){var o=i("861d");n.exports=function(l){if(!o(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(n,s,i){var o=i("6547").charAt,l=i("69f3"),c=i("7dd0"),f="String Iterator",m=l.set,u=l.getterFor(f);c(String,"String",function(d){m(this,{type:f,string:String(d),index:0})},function(){var p=u(this),g=p.string,E=p.index,y;return E>=g.length?{value:void 0,done:!0}:(y=o(g,E),p.index+=y.length,{value:y,done:!1})})},"3f8c":function(n,s){n.exports={}},4160:function(n,s,i){var o=i("23e7"),l=i("17c2");o({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(n,s,i){var o=i("da84");n.exports=o},"44ad":function(n,s,i){var o=i("d039"),l=i("c6b6"),c="".split;n.exports=o(function(){return!Object("z").propertyIsEnumerable(0)})?function(f){return l(f)=="String"?c.call(f,""):Object(f)}:Object},"44d2":function(n,s,i){var o=i("b622"),l=i("7c73"),c=i("9bf2"),f=o("unscopables"),m=Array.prototype;m[f]==null&&c.f(m,f,{configurable:!0,value:l(null)}),n.exports=function(u){m[f][u]=!0}},"44e7":function(n,s,i){var o=i("861d"),l=i("c6b6"),c=i("b622"),f=c("match");n.exports=function(m){var u;return o(m)&&((u=m[f])!==void 0?!!u:l(m)=="RegExp")}},4930:function(n,s,i){var o=i("d039");n.exports=!!Object.getOwnPropertySymbols&&!o(function(){return!String(Symbol())})},"4d64":function(n,s,i){var o=i("fc6a"),l=i("50c4"),c=i("23cb"),f=function(m){return function(u,d,p){var g=o(u),E=l(g.length),y=c(p,E),S;if(m&&d!=d){for(;E>y;)if(S=g[y++],S!=S)return!0}else for(;E>y;y++)if((m||y in g)&&g[y]===d)return m||y||0;return!m&&-1}};n.exports={includes:f(!0),indexOf:f(!1)}},"4de4":function(n,s,i){var o=i("23e7"),l=i("b727").filter,c=i("1dde"),f=i("ae40"),m=c("filter"),u=f("filter");o({target:"Array",proto:!0,forced:!m||!u},{filter:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(n,s,i){var o=i("0366"),l=i("7b0b"),c=i("9bdd"),f=i("e95a"),m=i("50c4"),u=i("8418"),d=i("35a1");n.exports=function(g){var E=l(g),y=typeof this=="function"?this:Array,S=arguments.length,b=S>1?arguments[1]:void 0,A=b!==void 0,C=d(E),P=0,N,D,V,B,O,_;if(A&&(b=o(b,S>2?arguments[2]:void 0,2)),C!=null&&!(y==Array&&f(C)))for(B=C.call(E),O=B.next,D=new y;!(V=O.call(B)).done;P++)_=A?c(B,b,[V.value,P],!0):V.value,u(D,P,_);else for(N=m(E.length),D=new y(N);N>P;P++)_=A?b(E[P],P):E[P],u(D,P,_);return D.length=P,D}},"4fad":function(n,s,i){var o=i("23e7"),l=i("6f53").entries;o({target:"Object",stat:!0},{entries:function(f){return l(f)}})},"50c4":function(n,s,i){var o=i("a691"),l=Math.min;n.exports=function(c){return c>0?l(o(c),9007199254740991):0}},5135:function(n,s){var i={}.hasOwnProperty;n.exports=function(o,l){return i.call(o,l)}},5319:function(n,s,i){var o=i("d784"),l=i("825a"),c=i("7b0b"),f=i("50c4"),m=i("a691"),u=i("1d80"),d=i("8aa5"),p=i("14c3"),g=Math.max,E=Math.min,y=Math.floor,S=/\$([$&'`]|\d\d?|<[^>]*>)/g,b=/\$([$&'`]|\d\d?)/g,A=function(C){return C===void 0?C:String(C)};o("replace",2,function(C,P,N,D){var V=D.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,B=D.REPLACE_KEEPS_$0,O=V?"$":"$0";return[function($,H){var I=u(this),F=$==null?void 0:$[C];return F!==void 0?F.call($,I,H):P.call(String(I),$,H)},function(G,$){if(!V&&B||typeof $=="string"&&$.indexOf(O)===-1){var H=N(P,G,this,$);if(H.done)return H.value}var I=l(G),F=String(this),x=typeof $=="function";x||($=String($));var T=I.global;if(T){var R=I.unicode;I.lastIndex=0}for(var k=[];;){var Y=p(I,F);if(Y===null||(k.push(Y),!T))break;var Z=String(Y[0]);Z===""&&(I.lastIndex=d(F,f(I.lastIndex),R))}for(var q="",se=0,re=0;re<k.length;re++){Y=k[re];for(var ne=String(Y[0]),ce=g(E(m(Y.index),F.length),0),fe=[],he=1;he<Y.length;he++)fe.push(A(Y[he]));var ue=Y.groups;if(x){var de=[ne].concat(fe,ce,F);ue!==void 0&&de.push(ue);var oe=String($.apply(void 0,de))}else oe=_(ne,F,ce,fe,ue,$);ce>=se&&(q+=F.slice(se,ce)+oe,se=ce+ne.length)}return q+F.slice(se)}];function _(G,$,H,I,F,x){var T=H+G.length,R=I.length,k=b;return F!==void 0&&(F=c(F),k=S),P.call(x,k,function(Y,Z){var q;switch(Z.charAt(0)){case"$":return"$";case"&":return G;case"`":return $.slice(0,H);case"'":return $.slice(T);case"<":q=F[Z.slice(1,-1)];break;default:var se=+Z;if(se===0)return Y;if(se>R){var re=y(se/10);return re===0?Y:re<=R?I[re-1]===void 0?Z.charAt(1):I[re-1]+Z.charAt(1):Y}q=I[se-1]}return q===void 0?"":q})}})},5692:function(n,s,i){var o=i("c430"),l=i("c6cd");(n.exports=function(c,f){return l[c]||(l[c]=f!==void 0?f:{})})("versions",[]).push({version:"3.6.5",mode:o?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(n,s,i){var o=i("d066"),l=i("241c"),c=i("7418"),f=i("825a");n.exports=o("Reflect","ownKeys")||function(u){var d=l.f(f(u)),p=c.f;return p?d.concat(p(u)):d}},"5a34":function(n,s,i){var o=i("44e7");n.exports=function(l){if(o(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(n,s){n.exports=function(i,o){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:o}}},"5db7":function(n,s,i){var o=i("23e7"),l=i("a2bf"),c=i("7b0b"),f=i("50c4"),m=i("1c0b"),u=i("65f0");o({target:"Array",proto:!0},{flatMap:function(p){var g=c(this),E=f(g.length),y;return m(p),y=u(g,0),y.length=l(y,g,g,E,0,1,p,arguments.length>1?arguments[1]:void 0),y}})},6547:function(n,s,i){var o=i("a691"),l=i("1d80"),c=function(f){return function(m,u){var d=String(l(m)),p=o(u),g=d.length,E,y;return p<0||p>=g?f?"":void 0:(E=d.charCodeAt(p),E<55296||E>56319||p+1===g||(y=d.charCodeAt(p+1))<56320||y>57343?f?d.charAt(p):E:f?d.slice(p,p+2):(E-55296<<10)+(y-56320)+65536)}};n.exports={codeAt:c(!1),charAt:c(!0)}},"65f0":function(n,s,i){var o=i("861d"),l=i("e8b5"),c=i("b622"),f=c("species");n.exports=function(m,u){var d;return l(m)&&(d=m.constructor,typeof d=="function"&&(d===Array||l(d.prototype))?d=void 0:o(d)&&(d=d[f],d===null&&(d=void 0))),new(d===void 0?Array:d)(u===0?0:u)}},"69f3":function(n,s,i){var o=i("7f9a"),l=i("da84"),c=i("861d"),f=i("9112"),m=i("5135"),u=i("f772"),d=i("d012"),p=l.WeakMap,g,E,y,S=function(V){return y(V)?E(V):g(V,{})},b=function(V){return function(B){var O;if(!c(B)||(O=E(B)).type!==V)throw TypeError("Incompatible receiver, "+V+" required");return O}};if(o){var A=new p,C=A.get,P=A.has,N=A.set;g=function(V,B){return N.call(A,V,B),B},E=function(V){return C.call(A,V)||{}},y=function(V){return P.call(A,V)}}else{var D=u("state");d[D]=!0,g=function(V,B){return f(V,D,B),B},E=function(V){return m(V,D)?V[D]:{}},y=function(V){return m(V,D)}}n.exports={set:g,get:E,has:y,enforce:S,getterFor:b}},"6eeb":function(n,s,i){var o=i("da84"),l=i("9112"),c=i("5135"),f=i("ce4e"),m=i("8925"),u=i("69f3"),d=u.get,p=u.enforce,g=String(String).split("String");(n.exports=function(E,y,S,b){var A=b?!!b.unsafe:!1,C=b?!!b.enumerable:!1,P=b?!!b.noTargetGet:!1;if(typeof S=="function"&&(typeof y=="string"&&!c(S,"name")&&l(S,"name",y),p(S).source=g.join(typeof y=="string"?y:"")),E===o){C?E[y]=S:f(y,S);return}else A?!P&&E[y]&&(C=!0):delete E[y];C?E[y]=S:l(E,y,S)})(Function.prototype,"toString",function(){return typeof this=="function"&&d(this).source||m(this)})},"6f53":function(n,s,i){var o=i("83ab"),l=i("df75"),c=i("fc6a"),f=i("d1e7").f,m=function(u){return function(d){for(var p=c(d),g=l(p),E=g.length,y=0,S=[],b;E>y;)b=g[y++],(!o||f.call(p,b))&&S.push(u?[b,p[b]]:p[b]);return S}};n.exports={entries:m(!0),values:m(!1)}},"73d9":function(n,s,i){var o=i("44d2");o("flatMap")},7418:function(n,s){s.f=Object.getOwnPropertySymbols},"746f":function(n,s,i){var o=i("428f"),l=i("5135"),c=i("e538"),f=i("9bf2").f;n.exports=function(m){var u=o.Symbol||(o.Symbol={});l(u,m)||f(u,m,{value:c.f(m)})}},7839:function(n,s){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(n,s,i){var o=i("1d80");n.exports=function(l){return Object(o(l))}},"7c73":function(n,s,i){var o=i("825a"),l=i("37e8"),c=i("7839"),f=i("d012"),m=i("1be4"),u=i("cc12"),d=i("f772"),p=">",g="<",E="prototype",y="script",S=d("IE_PROTO"),b=function(){},A=function(V){return g+y+p+V+g+"/"+y+p},C=function(V){V.write(A("")),V.close();var B=V.parentWindow.Object;return V=null,B},P=function(){var V=u("iframe"),B="java"+y+":",O;return V.style.display="none",m.appendChild(V),V.src=String(B),O=V.contentWindow.document,O.open(),O.write(A("document.F=Object")),O.close(),O.F},N,D=function(){try{N=document.domain&&new ActiveXObject("htmlfile")}catch(B){}D=N?C(N):P();for(var V=c.length;V--;)delete D[E][c[V]];return D()};f[S]=!0,n.exports=Object.create||function(B,O){var _;return B!==null?(b[E]=o(B),_=new b,b[E]=null,_[S]=B):_=D(),O===void 0?_:l(_,O)}},"7dd0":function(n,s,i){var o=i("23e7"),l=i("9ed3"),c=i("e163"),f=i("d2bb"),m=i("d44e"),u=i("9112"),d=i("6eeb"),p=i("b622"),g=i("c430"),E=i("3f8c"),y=i("ae93"),S=y.IteratorPrototype,b=y.BUGGY_SAFARI_ITERATORS,A=p("iterator"),C="keys",P="values",N="entries",D=function(){return this};n.exports=function(V,B,O,_,G,$,H){l(O,B,_);var I=function(re){if(re===G&&k)return k;if(!b&&re in T)return T[re];switch(re){case C:return function(){return new O(this,re)};case P:return function(){return new O(this,re)};case N:return function(){return new O(this,re)}}return function(){return new O(this)}},F=B+" Iterator",x=!1,T=V.prototype,R=T[A]||T["@@iterator"]||G&&T[G],k=!b&&R||I(G),Y=B=="Array"&&T.entries||R,Z,q,se;if(Y&&(Z=c(Y.call(new V)),S!==Object.prototype&&Z.next&&(!g&&c(Z)!==S&&(f?f(Z,S):typeof Z[A]!="function"&&u(Z,A,D)),m(Z,F,!0,!0),g&&(E[F]=D))),G==P&&R&&R.name!==P&&(x=!0,k=function(){return R.call(this)}),(!g||H)&&T[A]!==k&&u(T,A,k),E[B]=k,G)if(q={values:I(P),keys:$?k:I(C),entries:I(N)},H)for(se in q)(b||x||!(se in T))&&d(T,se,q[se]);else o({target:B,proto:!0,forced:b||x},q);return q}},"7f9a":function(n,s,i){var o=i("da84"),l=i("8925"),c=o.WeakMap;n.exports=typeof c=="function"&&/native code/.test(l(c))},"825a":function(n,s,i){var o=i("861d");n.exports=function(l){if(!o(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(n,s,i){var o=i("d039");n.exports=!o(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(n,s,i){var o=i("c04e"),l=i("9bf2"),c=i("5c6c");n.exports=function(f,m,u){var d=o(m);d in f?l.f(f,d,c(0,u)):f[d]=u}},"861d":function(n,s){n.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},8875:function(n,s,i){var o,l,c;(function(f,m){l=[],o=m,c=typeof o=="function"?o.apply(s,l):o,c!==void 0&&(n.exports=c)})(typeof self<"u"?self:this,function(){function f(){var m=Object.getOwnPropertyDescriptor(document,"currentScript");if(!m&&"currentScript"in document&&document.currentScript||m&&m.get!==f&&document.currentScript)return document.currentScript;try{throw new Error}catch(N){var u=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,d=/@([^@]*):(\d+):(\d+)\s*$/ig,p=u.exec(N.stack)||d.exec(N.stack),g=p&&p[1]||!1,E=p&&p[2]||!1,y=document.location.href.replace(document.location.hash,""),S,b,A,C=document.getElementsByTagName("script");g===y&&(S=document.documentElement.outerHTML,b=new RegExp("(?:[^\\n]+?\\n){0,"+(E-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),A=S.replace(b,"$1").trim());for(var P=0;P<C.length;P++)if(C[P].readyState==="interactive"||C[P].src===g||g===y&&C[P].innerHTML&&C[P].innerHTML.trim()===A)return C[P];return null}}return f})},8925:function(n,s,i){var o=i("c6cd"),l=Function.toString;typeof o.inspectSource!="function"&&(o.inspectSource=function(c){return l.call(c)}),n.exports=o.inspectSource},"8aa5":function(n,s,i){var o=i("6547").charAt;n.exports=function(l,c,f){return c+(f?o(l,c).length:1)}},"8bbf":function(n,s){n.exports=r},"90e3":function(n,s){var i=0,o=Math.random();n.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++i+o).toString(36)}},9112:function(n,s,i){var o=i("83ab"),l=i("9bf2"),c=i("5c6c");n.exports=o?function(f,m,u){return l.f(f,m,c(1,u))}:function(f,m,u){return f[m]=u,f}},9263:function(n,s,i){var o=i("ad6d"),l=i("9f7f"),c=RegExp.prototype.exec,f=String.prototype.replace,m=c,u=function(){var E=/a/,y=/b*/g;return c.call(E,"a"),c.call(y,"a"),E.lastIndex!==0||y.lastIndex!==0}(),d=l.UNSUPPORTED_Y||l.BROKEN_CARET,p=/()??/.exec("")[1]!==void 0,g=u||p||d;g&&(m=function(y){var S=this,b,A,C,P,N=d&&S.sticky,D=o.call(S),V=S.source,B=0,O=y;return N&&(D=D.replace("y",""),D.indexOf("g")===-1&&(D+="g"),O=String(y).slice(S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&y[S.lastIndex-1]!=="\n")&&(V="(?: "+V+")",O=" "+O,B++),A=new RegExp("^(?:"+V+")",D)),p&&(A=new RegExp("^"+V+"$(?!\\s)",D)),u&&(b=S.lastIndex),C=c.call(N?A:S,O),N?C?(C.input=C.input.slice(B),C[0]=C[0].slice(B),C.index=S.lastIndex,S.lastIndex+=C[0].length):S.lastIndex=0:u&&C&&(S.lastIndex=S.global?C.index+C[0].length:b),p&&C&&C.length>1&&f.call(C[0],A,function(){for(P=1;P<arguments.length-2;P++)arguments[P]===void 0&&(C[P]=void 0)}),C}),n.exports=m},"94ca":function(n,s,i){var o=i("d039"),l=/#|\.prototype\./,c=function(p,g){var E=m[f(p)];return E==d?!0:E==u?!1:typeof g=="function"?o(g):!!g},f=c.normalize=function(p){return String(p).replace(l,".").toLowerCase()},m=c.data={},u=c.NATIVE="N",d=c.POLYFILL="P";n.exports=c},"99af":function(n,s,i){var o=i("23e7"),l=i("d039"),c=i("e8b5"),f=i("861d"),m=i("7b0b"),u=i("50c4"),d=i("8418"),p=i("65f0"),g=i("1dde"),E=i("b622"),y=i("2d00"),S=E("isConcatSpreadable"),b=9007199254740991,A="Maximum allowed index exceeded",C=y>=51||!l(function(){var V=[];return V[S]=!1,V.concat()[0]!==V}),P=g("concat"),N=function(V){if(!f(V))return!1;var B=V[S];return B!==void 0?!!B:c(V)},D=!C||!P;o({target:"Array",proto:!0,forced:D},{concat:function(B){var O=m(this),_=p(O,0),G=0,$,H,I,F,x;for($=-1,I=arguments.length;$<I;$++)if(x=$===-1?O:arguments[$],N(x)){if(F=u(x.length),G+F>b)throw TypeError(A);for(H=0;H<F;H++,G++)H in x&&d(_,G,x[H])}else{if(G>=b)throw TypeError(A);d(_,G++,x)}return _.length=G,_}})},"9bdd":function(n,s,i){var o=i("825a");n.exports=function(l,c,f,m){try{return m?c(o(f)[0],f[1]):c(f)}catch(d){var u=l.return;throw u!==void 0&&o(u.call(l)),d}}},"9bf2":function(n,s,i){var o=i("83ab"),l=i("0cfb"),c=i("825a"),f=i("c04e"),m=Object.defineProperty;s.f=o?m:function(d,p,g){if(c(d),p=f(p,!0),c(g),l)try{return m(d,p,g)}catch(E){}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(d[p]=g.value),d}},"9ed3":function(n,s,i){var o=i("ae93").IteratorPrototype,l=i("7c73"),c=i("5c6c"),f=i("d44e"),m=i("3f8c"),u=function(){return this};n.exports=function(d,p,g){var E=p+" Iterator";return d.prototype=l(o,{next:c(1,g)}),f(d,E,!1,!0),m[E]=u,d}},"9f7f":function(n,s,i){var o=i("d039");function l(c,f){return RegExp(c,f)}s.UNSUPPORTED_Y=o(function(){var c=l("a","y");return c.lastIndex=2,c.exec("abcd")!=null}),s.BROKEN_CARET=o(function(){var c=l("^r","gy");return c.lastIndex=2,c.exec("str")!=null})},a2bf:function(n,s,i){var o=i("e8b5"),l=i("50c4"),c=i("0366"),f=function(m,u,d,p,g,E,y,S){for(var b=g,A=0,C=y?c(y,S,3):!1,P;A<p;){if(A in d){if(P=C?C(d[A],A,u):d[A],E>0&&o(P))b=f(m,u,P,l(P.length),b,E-1)-1;else{if(b>=9007199254740991)throw TypeError("Exceed the acceptable array length");m[b]=P}b++}A++}return b};n.exports=f},a352:function(n,s){n.exports=a},a434:function(n,s,i){var o=i("23e7"),l=i("23cb"),c=i("a691"),f=i("50c4"),m=i("7b0b"),u=i("65f0"),d=i("8418"),p=i("1dde"),g=i("ae40"),E=p("splice"),y=g("splice",{ACCESSORS:!0,0:0,1:2}),S=Math.max,b=Math.min,A=9007199254740991,C="Maximum allowed length exceeded";o({target:"Array",proto:!0,forced:!E||!y},{splice:function(N,D){var V=m(this),B=f(V.length),O=l(N,B),_=arguments.length,G,$,H,I,F,x;if(_===0?G=$=0:_===1?(G=0,$=B-O):(G=_-2,$=b(S(c(D),0),B-O)),B+G-$>A)throw TypeError(C);for(H=u(V,$),I=0;I<$;I++)F=O+I,F in V&&d(H,I,V[F]);if(H.length=$,G<$){for(I=O;I<B-$;I++)F=I+$,x=I+G,F in V?V[x]=V[F]:delete V[x];for(I=B;I>B-$+G;I--)delete V[I-1]}else if(G>$)for(I=B-$;I>O;I--)F=I+$-1,x=I+G-1,F in V?V[x]=V[F]:delete V[x];for(I=0;I<G;I++)V[I+O]=arguments[I+2];return V.length=B-$+G,H}})},a4d3:function(n,s,i){var o=i("23e7"),l=i("da84"),c=i("d066"),f=i("c430"),m=i("83ab"),u=i("4930"),d=i("fdbf"),p=i("d039"),g=i("5135"),E=i("e8b5"),y=i("861d"),S=i("825a"),b=i("7b0b"),A=i("fc6a"),C=i("c04e"),P=i("5c6c"),N=i("7c73"),D=i("df75"),V=i("241c"),B=i("057f"),O=i("7418"),_=i("06cf"),G=i("9bf2"),$=i("d1e7"),H=i("9112"),I=i("6eeb"),F=i("5692"),x=i("f772"),T=i("d012"),R=i("90e3"),k=i("b622"),Y=i("e538"),Z=i("746f"),q=i("d44e"),se=i("69f3"),re=i("b727").forEach,ne=x("hidden"),ce="Symbol",fe="prototype",he=k("toPrimitive"),ue=se.set,de=se.getterFor(ce),oe=Object[fe],J=l.Symbol,Ce=c("JSON","stringify"),ve=_.f,ge=G.f,be=B.f,we=$.f,pe=F("symbols"),me=F("op-symbols"),Ee=F("string-to-symbol-registry"),Pe=F("symbol-to-string-registry"),ye=F("wks"),Te=l.QObject,Ae=!Te||!Te[fe]||!Te[fe].findChild,Ie=m&&p(function(){return N(ge({},"a",{get:function(){return ge(this,"a",{value:7}).a}})).a!=7})?function(te,X,Q){var ae=ve(oe,X);ae&&delete oe[X],ge(te,X,Q),ae&&te!==oe&&ge(oe,X,ae)}:ge,Me=function(te,X){var Q=pe[te]=N(J[fe]);return ue(Q,{type:ce,tag:te,description:X}),m||(Q.description=X),Q},U=d?function(te){return typeof te=="symbol"}:function(te){return Object(te)instanceof J},j=function(X,Q,ae){X===oe&&j(me,Q,ae),S(X);var le=C(Q,!0);return S(ae),g(pe,le)?(ae.enumerable?(g(X,ne)&&X[ne][le]&&(X[ne][le]=!1),ae=N(ae,{enumerable:P(0,!1)})):(g(X,ne)||ge(X,ne,P(1,{})),X[ne][le]=!0),Ie(X,le,ae)):ge(X,le,ae)},z=function(X,Q){S(X);var ae=A(Q),le=D(ae).concat(ee(ae));return re(le,function(xe){(!m||L.call(ae,xe))&&j(X,xe,ae[xe])}),X},M=function(X,Q){return Q===void 0?N(X):z(N(X),Q)},L=function(X){var Q=C(X,!0),ae=we.call(this,Q);return this===oe&&g(pe,Q)&&!g(me,Q)?!1:ae||!g(this,Q)||!g(pe,Q)||g(this,ne)&&this[ne][Q]?ae:!0},W=function(X,Q){var ae=A(X),le=C(Q,!0);if(!(ae===oe&&g(pe,le)&&!g(me,le))){var xe=ve(ae,le);return xe&&g(pe,le)&&!(g(ae,ne)&&ae[ne][le])&&(xe.enumerable=!0),xe}},K=function(X){var Q=be(A(X)),ae=[];return re(Q,function(le){!g(pe,le)&&!g(T,le)&&ae.push(le)}),ae},ee=function(X){var Q=X===oe,ae=be(Q?me:A(X)),le=[];return re(ae,function(xe){g(pe,xe)&&(!Q||g(oe,xe))&&le.push(pe[xe])}),le};if(u||(J=function(){if(this instanceof J)throw TypeError("Symbol is not a constructor");var X=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Q=R(X),ae=function(le){this===oe&&ae.call(me,le),g(this,ne)&&g(this[ne],Q)&&(this[ne][Q]=!1),Ie(this,Q,P(1,le))};return m&&Ae&&Ie(oe,Q,{configurable:!0,set:ae}),Me(Q,X)},I(J[fe],"toString",function(){return de(this).tag}),I(J,"withoutSetter",function(te){return Me(R(te),te)}),$.f=L,G.f=j,_.f=W,V.f=B.f=K,O.f=ee,Y.f=function(te){return Me(k(te),te)},m&&(ge(J[fe],"description",{configurable:!0,get:function(){return de(this).description}}),f||I(oe,"propertyIsEnumerable",L,{unsafe:!0}))),o({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:J}),re(D(ye),function(te){Z(te)}),o({target:ce,stat:!0,forced:!u},{for:function(te){var X=String(te);if(g(Ee,X))return Ee[X];var Q=J(X);return Ee[X]=Q,Pe[Q]=X,Q},keyFor:function(X){if(!U(X))throw TypeError(X+" is not a symbol");if(g(Pe,X))return Pe[X]},useSetter:function(){Ae=!0},useSimple:function(){Ae=!1}}),o({target:"Object",stat:!0,forced:!u,sham:!m},{create:M,defineProperty:j,defineProperties:z,getOwnPropertyDescriptor:W}),o({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:K,getOwnPropertySymbols:ee}),o({target:"Object",stat:!0,forced:p(function(){O.f(1)})},{getOwnPropertySymbols:function(X){return O.f(b(X))}}),Ce){var ie=!u||p(function(){var te=J();return Ce([te])!="[null]"||Ce({a:te})!="{}"||Ce(Object(te))!="{}"});o({target:"JSON",stat:!0,forced:ie},{stringify:function(X,Q,ae){for(var le=[X],xe=1,Se;arguments.length>xe;)le.push(arguments[xe++]);if(Se=Q,!(!y(Q)&&X===void 0||U(X)))return E(Q)||(Q=function(Ne,De){if(typeof Se=="function"&&(De=Se.call(this,Ne,De)),!U(De))return De}),le[1]=Q,Ce.apply(null,le)}})}J[fe][he]||H(J[fe],he,J[fe].valueOf),q(J,ce),T[ne]=!0},a630:function(n,s,i){var o=i("23e7"),l=i("4df4"),c=i("1c7e"),f=!c(function(m){Array.from(m)});o({target:"Array",stat:!0,forced:f},{from:l})},a640:function(n,s,i){var o=i("d039");n.exports=function(l,c){var f=[][l];return!!f&&o(function(){f.call(null,c||function(){throw 1},1)})}},a691:function(n,s){var i=Math.ceil,o=Math.floor;n.exports=function(l){return isNaN(l=+l)?0:(l>0?o:i)(l)}},ab13:function(n,s,i){var o=i("b622"),l=o("match");n.exports=function(c){var f=/./;try{"/./"[c](f)}catch(m){try{return f[l]=!1,"/./"[c](f)}catch(u){}}return!1}},ac1f:function(n,s,i){var o=i("23e7"),l=i("9263");o({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},ad6d:function(n,s,i){var o=i("825a");n.exports=function(){var l=o(this),c="";return l.global&&(c+="g"),l.ignoreCase&&(c+="i"),l.multiline&&(c+="m"),l.dotAll&&(c+="s"),l.unicode&&(c+="u"),l.sticky&&(c+="y"),c}},ae40:function(n,s,i){var o=i("83ab"),l=i("d039"),c=i("5135"),f=Object.defineProperty,m={},u=function(d){throw d};n.exports=function(d,p){if(c(m,d))return m[d];p||(p={});var g=[][d],E=c(p,"ACCESSORS")?p.ACCESSORS:!1,y=c(p,0)?p[0]:u,S=c(p,1)?p[1]:void 0;return m[d]=!!g&&!l(function(){if(E&&!o)return!0;var b={length:-1};E?f(b,1,{enumerable:!0,get:u}):b[1]=1,g.call(b,y,S)})}},ae93:function(n,s,i){var o=i("e163"),l=i("9112"),c=i("5135"),f=i("b622"),m=i("c430"),u=f("iterator"),d=!1,p=function(){return this},g,E,y;[].keys&&(y=[].keys(),"next"in y?(E=o(o(y)),E!==Object.prototype&&(g=E)):d=!0),g==null&&(g={}),!m&&!c(g,u)&&l(g,u,p),n.exports={IteratorPrototype:g,BUGGY_SAFARI_ITERATORS:d}},b041:function(n,s,i){var o=i("00ee"),l=i("f5df");n.exports=o?{}.toString:function(){return"[object "+l(this)+"]"}},b0c0:function(n,s,i){var o=i("83ab"),l=i("9bf2").f,c=Function.prototype,f=c.toString,m=/^\s*function ([^ (]*)/,u="name";o&&!(u in c)&&l(c,u,{configurable:!0,get:function(){try{return f.call(this).match(m)[1]}catch(d){return""}}})},b622:function(n,s,i){var o=i("da84"),l=i("5692"),c=i("5135"),f=i("90e3"),m=i("4930"),u=i("fdbf"),d=l("wks"),p=o.Symbol,g=u?p:p&&p.withoutSetter||f;n.exports=function(E){return c(d,E)||(m&&c(p,E)?d[E]=p[E]:d[E]=g("Symbol."+E)),d[E]}},b64b:function(n,s,i){var o=i("23e7"),l=i("7b0b"),c=i("df75"),f=i("d039"),m=f(function(){c(1)});o({target:"Object",stat:!0,forced:m},{keys:function(d){return c(l(d))}})},b727:function(n,s,i){var o=i("0366"),l=i("44ad"),c=i("7b0b"),f=i("50c4"),m=i("65f0"),u=[].push,d=function(p){var g=p==1,E=p==2,y=p==3,S=p==4,b=p==6,A=p==5||b;return function(C,P,N,D){for(var V=c(C),B=l(V),O=o(P,N,3),_=f(B.length),G=0,$=D||m,H=g?$(C,_):E?$(C,0):void 0,I,F;_>G;G++)if((A||G in B)&&(I=B[G],F=O(I,G,V),p)){if(g)H[G]=F;else if(F)switch(p){case 3:return!0;case 5:return I;case 6:return G;case 2:u.call(H,I)}else if(S)return!1}return b?-1:y||S?S:H}};n.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6)}},c04e:function(n,s,i){var o=i("861d");n.exports=function(l,c){if(!o(l))return l;var f,m;if(c&&typeof(f=l.toString)=="function"&&!o(m=f.call(l))||typeof(f=l.valueOf)=="function"&&!o(m=f.call(l))||!c&&typeof(f=l.toString)=="function"&&!o(m=f.call(l)))return m;throw TypeError("Can't convert object to primitive value")}},c430:function(n,s){n.exports=!1},c6b6:function(n,s){var i={}.toString;n.exports=function(o){return i.call(o).slice(8,-1)}},c6cd:function(n,s,i){var o=i("da84"),l=i("ce4e"),c="__core-js_shared__",f=o[c]||l(c,{});n.exports=f},c740:function(n,s,i){var o=i("23e7"),l=i("b727").findIndex,c=i("44d2"),f=i("ae40"),m="findIndex",u=!0,d=f(m);m in[]&&Array(1)[m](function(){u=!1}),o({target:"Array",proto:!0,forced:u||!d},{findIndex:function(g){return l(this,g,arguments.length>1?arguments[1]:void 0)}}),c(m)},c8ba:function(n,s){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(o){typeof window=="object"&&(i=window)}n.exports=i},c975:function(n,s,i){var o=i("23e7"),l=i("4d64").indexOf,c=i("a640"),f=i("ae40"),m=[].indexOf,u=!!m&&1/[1].indexOf(1,-0)<0,d=c("indexOf"),p=f("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:u||!d||!p},{indexOf:function(E){return u?m.apply(this,arguments)||0:l(this,E,arguments.length>1?arguments[1]:void 0)}})},ca84:function(n,s,i){var o=i("5135"),l=i("fc6a"),c=i("4d64").indexOf,f=i("d012");n.exports=function(m,u){var d=l(m),p=0,g=[],E;for(E in d)!o(f,E)&&o(d,E)&&g.push(E);for(;u.length>p;)o(d,E=u[p++])&&(~c(g,E)||g.push(E));return g}},caad:function(n,s,i){var o=i("23e7"),l=i("4d64").includes,c=i("44d2"),f=i("ae40"),m=f("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:!m},{includes:function(d){return l(this,d,arguments.length>1?arguments[1]:void 0)}}),c("includes")},cc12:function(n,s,i){var o=i("da84"),l=i("861d"),c=o.document,f=l(c)&&l(c.createElement);n.exports=function(m){return f?c.createElement(m):{}}},ce4e:function(n,s,i){var o=i("da84"),l=i("9112");n.exports=function(c,f){try{l(o,c,f)}catch(m){o[c]=f}return f}},d012:function(n,s){n.exports={}},d039:function(n,s){n.exports=function(i){try{return!!i()}catch(o){return!0}}},d066:function(n,s,i){var o=i("428f"),l=i("da84"),c=function(f){return typeof f=="function"?f:void 0};n.exports=function(f,m){return arguments.length<2?c(o[f])||c(l[f]):o[f]&&o[f][m]||l[f]&&l[f][m]}},d1e7:function(n,s,i){var o={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,c=l&&!o.call({1:2},1);s.f=c?function(m){var u=l(this,m);return!!u&&u.enumerable}:o},d28b:function(n,s,i){var o=i("746f");o("iterator")},d2bb:function(n,s,i){var o=i("825a"),l=i("3bbe");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,f={},m;try{m=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,m.call(f,[]),c=f instanceof Array}catch(u){}return function(d,p){return o(d),l(p),c?m.call(d,p):d.__proto__=p,d}}():void 0)},d3b7:function(n,s,i){var o=i("00ee"),l=i("6eeb"),c=i("b041");o||l(Object.prototype,"toString",c,{unsafe:!0})},d44e:function(n,s,i){var o=i("9bf2").f,l=i("5135"),c=i("b622"),f=c("toStringTag");n.exports=function(m,u,d){m&&!l(m=d?m:m.prototype,f)&&o(m,f,{configurable:!0,value:u})}},d58f:function(n,s,i){var o=i("1c0b"),l=i("7b0b"),c=i("44ad"),f=i("50c4"),m=function(u){return function(d,p,g,E){o(p);var y=l(d),S=c(y),b=f(y.length),A=u?b-1:0,C=u?-1:1;if(g<2)for(;;){if(A in S){E=S[A],A+=C;break}if(A+=C,u?A<0:b<=A)throw TypeError("Reduce of empty array with no initial value")}for(;u?A>=0:b>A;A+=C)A in S&&(E=p(E,S[A],A,y));return E}};n.exports={left:m(!1),right:m(!0)}},d784:function(n,s,i){i("ac1f");var o=i("6eeb"),l=i("d039"),c=i("b622"),f=i("9263"),m=i("9112"),u=c("species"),d=!l(function(){var S=/./;return S.exec=function(){var b=[];return b.groups={a:"7"},b},"".replace(S,"$<a>")!=="7"}),p=function(){return"a".replace(/./,"$0")==="$0"}(),g=c("replace"),E=function(){return/./[g]?/./[g]("a","$0")==="":!1}(),y=!l(function(){var S=/(?:)/,b=S.exec;S.exec=function(){return b.apply(this,arguments)};var A="ab".split(S);return A.length!==2||A[0]!=="a"||A[1]!=="b"});n.exports=function(S,b,A,C){var P=c(S),N=!l(function(){var G={};return G[P]=function(){return 7},""[S](G)!=7}),D=N&&!l(function(){var G=!1,$=/a/;return S==="split"&&($={},$.constructor={},$.constructor[u]=function(){return $},$.flags="",$[P]=/./[P]),$.exec=function(){return G=!0,null},$[P](""),!G});if(!N||!D||S==="replace"&&!(d&&p&&!E)||S==="split"&&!y){var V=/./[P],B=A(P,""[S],function(G,$,H,I,F){return $.exec===f?N&&!F?{done:!0,value:V.call($,H,I)}:{done:!0,value:G.call(H,$,I)}:{done:!1}},{REPLACE_KEEPS_$0:p,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:E}),O=B[0],_=B[1];o(String.prototype,S,O),o(RegExp.prototype,P,b==2?function(G,$){return _.call(G,this,$)}:function(G){return _.call(G,this)})}C&&m(RegExp.prototype[P],"sham",!0)}},d81d:function(n,s,i){var o=i("23e7"),l=i("b727").map,c=i("1dde"),f=i("ae40"),m=c("map"),u=f("map");o({target:"Array",proto:!0,forced:!m||!u},{map:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}})},da84:function(n,s,i){(function(o){var l=function(c){return c&&c.Math==Math&&c};n.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof o=="object"&&o)||Function("return this")()}).call(this,i("c8ba"))},dbb4:function(n,s,i){var o=i("23e7"),l=i("83ab"),c=i("56ef"),f=i("fc6a"),m=i("06cf"),u=i("8418");o({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(p){for(var g=f(p),E=m.f,y=c(g),S={},b=0,A,C;y.length>b;)C=E(g,A=y[b++]),C!==void 0&&u(S,A,C);return S}})},dbf1:function(n,s,i){(function(o){i.d(s,"a",function(){return c});function l(){return typeof window<"u"?window.console:o.console}var c=l()}).call(this,i("c8ba"))},ddb0:function(n,s,i){var o=i("da84"),l=i("fdbc"),c=i("e260"),f=i("9112"),m=i("b622"),u=m("iterator"),d=m("toStringTag"),p=c.values;for(var g in l){var E=o[g],y=E&&E.prototype;if(y){if(y[u]!==p)try{f(y,u,p)}catch(b){y[u]=p}if(y[d]||f(y,d,g),l[g]){for(var S in c)if(y[S]!==c[S])try{f(y,S,c[S])}catch(b){y[S]=c[S]}}}}},df75:function(n,s,i){var o=i("ca84"),l=i("7839");n.exports=Object.keys||function(f){return o(f,l)}},e01a:function(n,s,i){var o=i("23e7"),l=i("83ab"),c=i("da84"),f=i("5135"),m=i("861d"),u=i("9bf2").f,d=i("e893"),p=c.Symbol;if(l&&typeof p=="function"&&(!("description"in p.prototype)||p().description!==void 0)){var g={},E=function(){var P=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),N=this instanceof E?new p(P):P===void 0?p():p(P);return P===""&&(g[N]=!0),N};d(E,p);var y=E.prototype=p.prototype;y.constructor=E;var S=y.toString,b=String(p("test"))=="Symbol(test)",A=/^Symbol\((.*)\)[^)]+$/;u(y,"description",{configurable:!0,get:function(){var P=m(this)?this.valueOf():this,N=S.call(P);if(f(g,P))return"";var D=b?N.slice(7,-1):N.replace(A,"$1");return D===""?void 0:D}}),o({global:!0,forced:!0},{Symbol:E})}},e163:function(n,s,i){var o=i("5135"),l=i("7b0b"),c=i("f772"),f=i("e177"),m=c("IE_PROTO"),u=Object.prototype;n.exports=f?Object.getPrototypeOf:function(d){return d=l(d),o(d,m)?d[m]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?u:null}},e177:function(n,s,i){var o=i("d039");n.exports=!o(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},e260:function(n,s,i){var o=i("fc6a"),l=i("44d2"),c=i("3f8c"),f=i("69f3"),m=i("7dd0"),u="Array Iterator",d=f.set,p=f.getterFor(u);n.exports=m(Array,"Array",function(g,E){d(this,{type:u,target:o(g),index:0,kind:E})},function(){var g=p(this),E=g.target,y=g.kind,S=g.index++;return!E||S>=E.length?(g.target=void 0,{value:void 0,done:!0}):y=="keys"?{value:S,done:!1}:y=="values"?{value:E[S],done:!1}:{value:[S,E[S]],done:!1}},"values"),c.Arguments=c.Array,l("keys"),l("values"),l("entries")},e439:function(n,s,i){var o=i("23e7"),l=i("d039"),c=i("fc6a"),f=i("06cf").f,m=i("83ab"),u=l(function(){f(1)}),d=!m||u;o({target:"Object",stat:!0,forced:d,sham:!m},{getOwnPropertyDescriptor:function(g,E){return f(c(g),E)}})},e538:function(n,s,i){var o=i("b622");s.f=o},e893:function(n,s,i){var o=i("5135"),l=i("56ef"),c=i("06cf"),f=i("9bf2");n.exports=function(m,u){for(var d=l(u),p=f.f,g=c.f,E=0;E<d.length;E++){var y=d[E];o(m,y)||p(m,y,g(u,y))}}},e8b5:function(n,s,i){var o=i("c6b6");n.exports=Array.isArray||function(c){return o(c)=="Array"}},e95a:function(n,s,i){var o=i("b622"),l=i("3f8c"),c=o("iterator"),f=Array.prototype;n.exports=function(m){return m!==void 0&&(l.Array===m||f[c]===m)}},f5df:function(n,s,i){var o=i("00ee"),l=i("c6b6"),c=i("b622"),f=c("toStringTag"),m=l(function(){return arguments}())=="Arguments",u=function(d,p){try{return d[p]}catch(g){}};n.exports=o?l:function(d){var p,g,E;return d===void 0?"Undefined":d===null?"Null":typeof(g=u(p=Object(d),f))=="string"?g:m?l(p):(E=l(p))=="Object"&&typeof p.callee=="function"?"Arguments":E}},f772:function(n,s,i){var o=i("5692"),l=i("90e3"),c=o("keys");n.exports=function(f){return c[f]||(c[f]=l(f))}},fb15:function(n,s,i){if(i.r(s),typeof window<"u"){var o=window.document.currentScript;{var l=i("8875");o=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var c=o&&o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(i.p=c[1])}i("99af"),i("4de4"),i("4160"),i("c975"),i("d81d"),i("a434"),i("159b"),i("a4d3"),i("e439"),i("dbb4"),i("b64b");function f(U,j,z){return j in U?Object.defineProperty(U,j,{value:z,enumerable:!0,configurable:!0,writable:!0}):U[j]=z,U}function m(U,j){var z=Object.keys(U);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(U);j&&(M=M.filter(function(L){return Object.getOwnPropertyDescriptor(U,L).enumerable})),z.push.apply(z,M)}return z}function u(U){for(var j=1;j<arguments.length;j++){var z=arguments[j]!=null?arguments[j]:{};j%2?m(Object(z),!0).forEach(function(M){f(U,M,z[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(z)):m(Object(z)).forEach(function(M){Object.defineProperty(U,M,Object.getOwnPropertyDescriptor(z,M))})}return U}function d(U){if(Array.isArray(U))return U}i("e01a"),i("d28b"),i("e260"),i("d3b7"),i("3ca3"),i("ddb0");function p(U,j){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(U)))){var z=[],M=!0,L=!1,W=void 0;try{for(var K=U[Symbol.iterator](),ee;!(M=(ee=K.next()).done)&&(z.push(ee.value),!(j&&z.length===j));M=!0);}catch(ie){L=!0,W=ie}finally{try{!M&&K.return!=null&&K.return()}finally{if(L)throw W}}return z}}i("a630"),i("fb6a"),i("b0c0"),i("25f0");function g(U,j){(j==null||j>U.length)&&(j=U.length);for(var z=0,M=new Array(j);z<j;z++)M[z]=U[z];return M}function E(U,j){if(U){if(typeof U=="string")return g(U,j);var z=Object.prototype.toString.call(U).slice(8,-1);if(z==="Object"&&U.constructor&&(z=U.constructor.name),z==="Map"||z==="Set")return Array.from(U);if(z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return g(U,j)}}function y(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(U,j){return d(U)||p(U,j)||E(U,j)||y()}function b(U){if(Array.isArray(U))return g(U)}function A(U){if(typeof Symbol<"u"&&Symbol.iterator in Object(U))return Array.from(U)}function C(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P(U){return b(U)||A(U)||E(U)||C()}var N=i("a352"),D=i.n(N);function V(U){U.parentElement!==null&&U.parentElement.removeChild(U)}function B(U,j,z){var M=z===0?U.children[0]:U.children[z-1].nextSibling;U.insertBefore(j,M)}var O=i("dbf1");i("13d5"),i("4fad"),i("ac1f"),i("5319");function _(U){var j=Object.create(null);return function(M){var L=j[M];return L||(j[M]=U(M))}}var G=/-(\w)/g,$=_(function(U){return U.replace(G,function(j,z){return z.toUpperCase()})});i("5db7"),i("73d9");var H=["Start","Add","Remove","Update","End"],I=["Choose","Unchoose","Sort","Filter","Clone"],F=["Move"],x=[F,H,I].flatMap(function(U){return U}).map(function(U){return"on".concat(U)}),T={manage:F,manageAndEmit:H,emit:I};function R(U){return x.indexOf(U)!==-1}i("caad"),i("2ca0");var k=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function Y(U){return k.includes(U)}function Z(U){return["transition-group","TransitionGroup"].includes(U)}function q(U){return["id","class","role","style"].includes(U)||U.startsWith("data-")||U.startsWith("aria-")||U.startsWith("on")}function se(U){return U.reduce(function(j,z){var M=S(z,2),L=M[0],W=M[1];return j[L]=W,j},{})}function re(U){var j=U.$attrs,z=U.componentData,M=z===void 0?{}:z,L=se(Object.entries(j).filter(function(W){var K=S(W,2),ee=K[0];return K[1],q(ee)}));return u(u({},L),M)}function ne(U){var j=U.$attrs,z=U.callBackBuilder,M=se(ce(j));Object.entries(z).forEach(function(W){var K=S(W,2),ee=K[0],ie=K[1];T[ee].forEach(function(te){M["on".concat(te)]=ie(te)})});var L="[data-draggable]".concat(M.draggable||"");return u(u({},M),{},{draggable:L})}function ce(U){return Object.entries(U).filter(function(j){var z=S(j,2),M=z[0];return z[1],!q(M)}).map(function(j){var z=S(j,2),M=z[0],L=z[1];return[$(M),L]}).filter(function(j){var z=S(j,2),M=z[0];return z[1],!R(M)})}i("c740");function fe(U,j){if(!(U instanceof j))throw new TypeError("Cannot call a class as a function")}function he(U,j){for(var z=0;z<j.length;z++){var M=j[z];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(U,M.key,M)}}function ue(U,j,z){return j&&he(U.prototype,j),z&&he(U,z),U}var de=function(j){var z=j.el;return z},oe=function(j,z){return j.__draggable_context=z},J=function(j){return j.__draggable_context},Ce=function(){function U(j){var z=j.nodes,M=z.header,L=z.default,W=z.footer,K=j.root,ee=j.realList;fe(this,U),this.defaultNodes=L,this.children=[].concat(P(M),P(L),P(W)),this.externalComponent=K.externalComponent,this.rootTransition=K.transition,this.tag=K.tag,this.realList=ee}return ue(U,[{key:"render",value:function(z,M){var L=this.tag,W=this.children,K=this._isRootComponent,ee=K?{default:function(){return W}}:W;return z(L,M,ee)}},{key:"updated",value:function(){var z=this.defaultNodes,M=this.realList;z.forEach(function(L,W){oe(de(L),{element:M[W],index:W})})}},{key:"getUnderlyingVm",value:function(z){return J(z)}},{key:"getVmIndexFromDomIndex",value:function(z,M){var L=this.defaultNodes,W=L.length,K=M.children,ee=K.item(z);if(ee===null)return W;var ie=J(ee);if(ie)return ie.index;if(W===0)return 0;var te=de(L[0]),X=P(K).findIndex(function(Q){return Q===te});return z<X?0:W}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),U}(),ve=i("8bbf");function ge(U,j){var z=U[j];return z?z():[]}function be(U){var j=U.$slots,z=U.realList,M=U.getKey,L=z||[],W=["header","footer"].map(function(Q){return ge(j,Q)}),K=S(W,2),ee=K[0],ie=K[1],te=j.item;if(!te)throw new Error("draggable element must have an item slot");var X=L.flatMap(function(Q,ae){return te({element:Q,index:ae}).map(function(le){return le.key=M(Q),le.props=u(u({},le.props||{}),{},{"data-draggable":!0}),le})});if(X.length!==L.length)throw new Error("Item slot must have only one child");return{header:ee,footer:ie,default:X}}function we(U){var j=Z(U),z=!Y(U)&&!j;return{transition:j,externalComponent:z,tag:z?Object(ve.resolveComponent)(U):j?ve.TransitionGroup:U}}function pe(U){var j=U.$slots,z=U.tag,M=U.realList,L=U.getKey,W=be({$slots:j,realList:M,getKey:L}),K=we(z);return new Ce({nodes:W,root:K,realList:M})}function me(U,j){var z=this;Object(ve.nextTick)(function(){return z.$emit(U.toLowerCase(),j)})}function Ee(U){var j=this;return function(z,M){if(j.realList!==null)return j["onDrag".concat(U)](z,M)}}function Pe(U){var j=this,z=Ee.call(this,U);return function(M,L){z.call(j,M,L),me.call(j,U,M)}}var ye=null,Te={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(j){return j}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Ae=["update:modelValue","change"].concat(P([].concat(P(T.manageAndEmit),P(T.emit)).map(function(U){return U.toLowerCase()}))),Ie=Object(ve.defineComponent)({name:"draggable",inheritAttrs:!1,props:Te,emits:Ae,data:function(){return{error:!1}},render:function(){try{this.error=!1;var j=this.$slots,z=this.$attrs,M=this.tag,L=this.componentData,W=this.realList,K=this.getKey,ee=pe({$slots:j,tag:M,realList:W,getKey:K});this.componentStructure=ee;var ie=re({$attrs:z,componentData:L});return ee.render(ve.h,ie)}catch(te){return this.error=!0,Object(ve.h)("pre",{style:{color:"red"}},te.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&O.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var j=this;if(!this.error){var z=this.$attrs,M=this.$el,L=this.componentStructure;L.updated();var W=ne({$attrs:z,callBackBuilder:{manageAndEmit:function(ie){return Pe.call(j,ie)},emit:function(ie){return me.bind(j,ie)},manage:function(ie){return Ee.call(j,ie)}}}),K=M.nodeType===1?M:M.parentElement;this._sortable=new D.a(K,W),this.targetDomElement=K,K.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var j=this.list;return j||this.modelValue},getKey:function(){var j=this.itemKey;return typeof j=="function"?j:function(z){return z[j]}}},watch:{$attrs:{handler:function(j){var z=this._sortable;z&&ce(j).forEach(function(M){var L=S(M,2),W=L[0],K=L[1];z.option(W,K)})},deep:!0}},methods:{getUnderlyingVm:function(j){return this.componentStructure.getUnderlyingVm(j)||null},getUnderlyingPotencialDraggableComponent:function(j){return j.__draggable_component__},emitChanges:function(j){var z=this;Object(ve.nextTick)(function(){return z.$emit("change",j)})},alterList:function(j){if(this.list){j(this.list);return}var z=P(this.modelValue);j(z),this.$emit("update:modelValue",z)},spliceList:function(){var j=arguments,z=function(L){return L.splice.apply(L,P(j))};this.alterList(z)},updatePosition:function(j,z){var M=function(W){return W.splice(z,0,W.splice(j,1)[0])};this.alterList(M)},getRelatedContextFromMoveEvent:function(j){var z=j.to,M=j.related,L=this.getUnderlyingPotencialDraggableComponent(z);if(!L)return{component:L};var W=L.realList,K={list:W,component:L};if(z!==M&&W){var ee=L.getUnderlyingVm(M)||{};return u(u({},ee),K)}return K},getVmIndexFromDomIndex:function(j){return this.componentStructure.getVmIndexFromDomIndex(j,this.targetDomElement)},onDragStart:function(j){this.context=this.getUnderlyingVm(j.item),j.item._underlying_vm_=this.clone(this.context.element),ye=j.item},onDragAdd:function(j){var z=j.item._underlying_vm_;if(z!==void 0){V(j.item);var M=this.getVmIndexFromDomIndex(j.newIndex);this.spliceList(M,0,z);var L={element:z,newIndex:M};this.emitChanges({added:L})}},onDragRemove:function(j){if(B(this.$el,j.item,j.oldIndex),j.pullMode==="clone"){V(j.clone);return}var z=this.context,M=z.index,L=z.element;this.spliceList(M,1);var W={element:L,oldIndex:M};this.emitChanges({removed:W})},onDragUpdate:function(j){V(j.item),B(j.from,j.item,j.oldIndex);var z=this.context.index,M=this.getVmIndexFromDomIndex(j.newIndex);this.updatePosition(z,M);var L={element:this.context.element,oldIndex:z,newIndex:M};this.emitChanges({moved:L})},computeFutureIndex:function(j,z){if(!j.element)return 0;var M=P(z.to.children).filter(function(ee){return ee.style.display!=="none"}),L=M.indexOf(z.related),W=j.component.getVmIndexFromDomIndex(L),K=M.indexOf(ye)!==-1;return K||!z.willInsertAfter?W:W+1},onDragMove:function(j,z){var M=this.move,L=this.realList;if(!M||!L)return!0;var W=this.getRelatedContextFromMoveEvent(j),K=this.computeFutureIndex(W,j),ee=u(u({},this.context),{},{futureIndex:K}),ie=u(u({},j),{},{relatedContext:W,draggedContext:ee});return M(ie,z)},onDragEnd:function(){ye=null}}}),Me=Ie;s.default=Me},fb6a:function(n,s,i){var o=i("23e7"),l=i("861d"),c=i("e8b5"),f=i("23cb"),m=i("50c4"),u=i("fc6a"),d=i("8418"),p=i("b622"),g=i("1dde"),E=i("ae40"),y=g("slice"),S=E("slice",{ACCESSORS:!0,0:0,1:2}),b=p("species"),A=[].slice,C=Math.max;o({target:"Array",proto:!0,forced:!y||!S},{slice:function(N,D){var V=u(this),B=m(V.length),O=f(N,B),_=f(D===void 0?B:D,B),G,$,H;if(c(V)&&(G=V.constructor,typeof G=="function"&&(G===Array||c(G.prototype))?G=void 0:l(G)&&(G=G[b],G===null&&(G=void 0)),G===Array||G===void 0))return A.call(V,O,_);for($=new(G===void 0?Array:G)(C(_-O,0)),H=0;O<_;O++,H++)O in V&&d($,H,V[O]);return $.length=H,$}})},fc6a:function(n,s,i){var o=i("44ad"),l=i("1d80");n.exports=function(c){return o(l(c))}},fdbc:function(n,s){n.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(n,s,i){var o=i("4930");n.exports=o&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(vuedraggable_umd);var vuedraggable_umdExports=vuedraggable_umd.exports;const Draggable=getDefaultExportFromCjs(vuedraggable_umdExports),assignStudent="_assignStudent_19k54_1",studentListGroup="_studentListGroup_19k54_4",selectStudentGroup="_selectStudentGroup_19k54_5",searchSection="_searchSection_19k54_11",searchSpace="_searchSpace_19k54_14",studentSection="_studentSection_19k54_21",checkboxAll="_checkboxAll_19k54_24",nums="_nums_19k54_34",student="_student_19k54_4",loadingSection="_loadingSection_19k54_43",studentItem="_studentItem_19k54_46",studentInfo="_studentInfo_19k54_58",studentImg="_studentImg_19k54_63",studentValue="_studentValue_19k54_70",userInfo="_userInfo_19k54_73",name="_name_19k54_77",iconMember="_iconMember_19k54_88",className="_className_19k54_96",phone="_phone_19k54_108",selectCount="_selectCount_19k54_114",hide="_hide_19k54_143",iconClose="_iconClose_19k54_146",btnGroup="_btnGroup_19k54_170",styles$5={assignStudent,studentListGroup,selectStudentGroup,searchSection,searchSpace,studentSection,checkboxAll,nums,student,loadingSection,studentItem,studentInfo,studentImg,studentValue,userInfo,name,iconMember,className,phone,selectCount,hide,iconClose,btnGroup};function _isSlot$1(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode(e)}const AssignStudent=defineComponent({name:"assign-student",props:{classList:{type:Array,default:()=>[]},studentList:{type:Array,default:()=>[]},currentGradeNum:{type:[String||Number],default:""},selectIds:{type:Array,default:()=>[]},classGroupId:{type:String,default:""}},emits:["close","confirm"],setup(e,{emit:t}){const r=useCatchStore(),a=reactive({studentName:"",loading:!1,finshed:!1,checkAllStatus:!1,indeterminate:!1,searchFrom:{upgradeFlag:!0,currentGradeNum:e.currentGradeNum||"",gradeYear:null,classGroupId:e.classGroupId||"",classInstrumentId:"",keyword:""},pagination:{page:1,rows:20,pageTotal:0},tableList:[],checkboxIds:[],selectStudents:[],selectKeyword:"",popSelectYearList:[]}),n=async()=>{try{const{data:u}=await api_getCurrentGradeYear({});a.searchFrom.gradeYear=u}catch(u){}},s=async()=>{try{a.pagination.page===1&&(a.loading=!0,a.tableList=[]);const{data:u}=await getStudentList({...a.searchFrom,...a.pagination});a.loading=!1;const d=u.rows||[];a.tableList.push(...d),a.finshed=u.pages<=u.current,c()}catch(u){a.loading=!1}},i=()=>{a.pagination.page=1,s()},o=computed(()=>{let u=!0;return a.selectStudents.forEach(d=>{d.hide||(u=!1)}),u}),l=useThrottleFn(()=>{a.pagination.page=a.pagination.page+1,s()},500),c=()=>{if(a.checkboxIds.length<=0||a.tableList.length<=0){a.indeterminate=!1,a.checkAllStatus=!1;return}let u=0;a.tableList.forEach(d=>{a.checkboxIds.includes(d.id)&&(u++,a.selectStudents.findIndex(g=>g.id===d.id)===-1&&a.selectStudents.push(d))}),u>=a.tableList.length?(a.checkAllStatus=!0,a.indeterminate=!1):(a.checkAllStatus=!1,a.indeterminate=!0)},f=u=>{const d=a.checkboxIds.findIndex(p=>p===u.id);if(d!==-1){a.checkboxIds.splice(d,1);const p=a.selectStudents.findIndex(g=>g.id===u.id);p!==-1&&a.selectStudents.splice(p,1),c()}},m=()=>{const u=[];a.selectStudents.forEach(d=>{u.push({id:d.id,name:d.nickname,avatar:d.avatar})}),t("confirm",u)};return onMounted(async()=>{var u;a.checkboxIds=e.selectIds||[],a.loading=!0,await r.getSubjects(),await n(),await s(),a.selectStudents=(u=e.studentList)==null?void 0:u.map(d=>({...d,nickname:d.name}))}),()=>{let u;return createVNode("div",{class:[styles$5.assignStudent,"assignStudent"]},[createVNode("div",{class:styles$5.studentListGroup},[createVNode("div",{class:styles$5.searchSection},[createVNode("div",{class:styles$5.searchSpace},[createVNode(NSelect,{placeholder:"全部班级",disabled:!!e.classGroupId,value:a.searchFrom.classGroupId,"onUpdate:value":[d=>a.searchFrom.classGroupId=d,()=>i()],options:[{label:"全部班级",value:""},...e.classList]},null),createVNode(NCascader,{options:[{name:"全部乐器",id:""},...r.getSubjectList],placeholder:"全部乐器",value:a.searchFrom.classInstrumentId,"onUpdate:value":[d=>a.searchFrom.classInstrumentId=d,()=>i()],checkStrategy:"child",showPath:!1,childrenField:"instruments",expandTrigger:"hover",labelField:"name",valueField:"id",clearable:!0,filterable:!0},null)]),createVNode(SearchInput,mergeProps({placeholder:"请输入学生姓名/手机号"},{class:styles$5.searchInput,searchWord:a.searchFrom.keyword,onChangeValue:d=>{a.searchFrom.keyword=d},onClear:()=>{a.searchFrom.keyword="",i()},onKeyup:d=>{d.code==="Enter"&&i()}}),null)]),createVNode("div",{class:styles$5.studentSection},[createVNode("div",{class:styles$5.checkboxAll},[createVNode(NCheckbox,{checked:a.checkAllStatus,"onUpdate:checked":[d=>a.checkAllStatus=d,d=>{if(d){const p=[];a.tableList.forEach(g=>{p.push(g.id)}),a.checkboxIds=p}else a.checkboxIds=[],a.selectStudents=[],a.indeterminate=!1;c()}],indeterminate:a.indeterminate},null),createVNode("p",null,[createTextVNode("全选 "),createVNode("span",{class:styles$5.nums},[createTextVNode("("),a.tableList.length,createTextVNode(")")])," ",createTextVNode(":")])])]),createVNode(NScrollbar,{class:styles$5.student,onScroll:d=>{var y,S,b;const p=(y=d.target)==null?void 0:y.clientHeight,g=(S=d.target)==null?void 0:S.scrollTop,E=(b=d.target)==null?void 0:b.scrollHeight;p+g+20>=E&&!a.finshed&&!a.loading&&l()}},{default:()=>[createVNode(NSpin,{show:a.loading,class:styles$5.loadingSection},{default:()=>[createVNode(NCheckboxGroup,{value:a.checkboxIds,"onUpdate:value":[d=>a.checkboxIds=d,()=>{a.selectStudents=[],c()}]},_isSlot$1(u=a.tableList.map(d=>createVNode(NCheckbox,{value:d.id,class:[styles$5.studentItem]},{default:()=>[createVNode("div",{class:styles$5.studentInfo},[createVNode(NAvatar,{src:d.avatar||defultHeade,class:styles$5.studentImg},null),createVNode("div",{class:styles$5.studentValue},[createVNode("div",{class:styles$5.userInfo},[createVNode("span",{class:styles$5.name},[d.nickname]),d.membership&&createVNode("i",{class:styles$5.iconMember},null),d.classGroupName&&createVNode("span",{class:styles$5.className},[d.classGroupName])]),createVNode("div",{class:styles$5.phone},[d.phone])])])]})))?u:{default:()=>[u]}),a.tableList.length<=0&&!a.loading&&createVNode(TheEmpty,null,null)]})]})]),createVNode("div",{class:styles$5.selectStudentGroup},[createVNode("div",{class:styles$5.selectCount},[createTextVNode("当前选中 "),createVNode("span",null,[createTextVNode("("),a.selectStudents.length,createTextVNode(") ")]),createTextVNode(":")]),createVNode("div",{class:styles$5.searchSection},[createVNode(SearchInput,mergeProps({placeholder:"请输入学生姓名"},{class:styles$5.searchInput,searchWord:a.selectKeyword,onChangeValue:d=>{a.selectKeyword=d,a.selectStudents.forEach(p=>{var g;((g=p.nickname)==null?void 0:g.indexOf(d))===-1?p.hide=!0:p.hide=!1})}}),null)]),createVNode(NScrollbar,{class:styles$5.student},{default:()=>[a.selectStudents.map(d=>createVNode("div",{class:[styles$5.studentItem,d.hide&&styles$5.hide]},[createVNode("div",{class:styles$5.studentInfo},[createVNode(NAvatar,{src:d.avatar||defultHeade,class:styles$5.studentImg},null),createVNode("span",{class:styles$5.name},[d.nickname])]),createVNode("i",{class:styles$5.iconClose,onClick:()=>f(d)},null)])),o.value&&createVNode(TheEmpty,null,null)]}),createVNode(NSpace,{justify:"end",class:styles$5.btnGroup},{default:()=>[createVNode(NButton,{type:"default",onClick:()=>t("close")},{default:()=>[createTextVNode("取消")]}),createVNode(NButton,{type:"primary",onClick:m},{default:()=>[createTextVNode("保存")]})]})])])}}}),AssignHomework=defineComponent({name:"assign-homework",props:{classGroupId:{type:String,default:""},courseScheduleId:{type:String,default:""},chapterLessonCoursewareId:{type:String,default:""},item:{type:Object,default:()=>({})},trainList:{type:Array,default:()=>[]},homeworkType:{type:String,default:"CLASSWORK"},from:{type:String,default:""}},emits:["close","confirm"],setup(e,{emit:t}){const r=useMessage(),a=usePrepareStore(),n=reactive({gradeYear:"",currentTime:dayjs(dayjs().format("YYYY-MM-DD")).valueOf(),homeworkObj:"CLASS",homeworkType:e.homeworkType,workVisiable:!1,id:null,uploading:!1,title:e.item.title,courseScheduleId:e.courseScheduleId||null,chapterLessonCoursewareId:e.chapterLessonCoursewareId||null,gradeList:[],classList:[],currentGradeNum:null,expireDate:dayjs().add(7,"day").format("YYYY-MM-DD HH:mm"),classGroupId:null,studentList:[],selectIds:[]}),s=ref(),i=ref(0),o=ref(0),l=ref(null),c=async()=>{try{const y=e.classGroupId||a.getClassGroupId,{data:S}=await classGroupList({upgradeFlag:!0,gradeYear:n.gradeYear}),b=S||[],A=[];b.forEach(C=>{const P=[];C.classGroupList.forEach(N=>{P.push({label:N.currentClass+"班",value:N.id,lastStudy:N.lastStudy,preStudentNum:N.preStudentNum}),N.id===y&&(n.currentGradeNum=N.currentGradeNum,n.classGroupId=[N.id])}),A.push({label:gradeToCN[C.currentGradeNum],value:C.currentGradeNum,childrens:P})}),n.gradeList=A,n.currentGradeNum&&f()}catch(y){}},f=async()=>{try{n.gradeList.forEach(y=>{y.value===n.currentGradeNum&&(n.classList=y.childrens)})}catch(y){}},m=async()=>{var y;(y=s.value)==null||y.validate(async S=>{if(!S){n.uploading=!0;try{const b=e.item.lessonPreTrainingDetails||[],A=[];b.forEach(P=>{A.push({trainingType:P.trainingType,musicId:P.musicId,trainingConfigJsonObject:P.trainingConfigJson})});const C={name:n.title,homeworkObj:n.homeworkObj,homeworkType:n.homeworkType,lessonTrainingDetails:A,expireDate:dayjs(n.expireDate).format("YYYY-MM-DD HH:mm:ss"),classGroupId:n.classGroupId?n.classGroupId.join(","):null,studentIds:null,courseScheduleId:n.courseScheduleId,chapterLessonCoursewareId:n.chapterLessonCoursewareId};if(n.homeworkObj==="PERSON"){C.classGroupId="";const P=[];n.studentList.forEach(N=>{P.push(N.id)}),C.studentIds=P.join(",")}await lessonTrainingAdd(C),r.success("布置成功"),t("close"),t("confirm")}catch(b){}n.uploading=!1}})},u=async()=>{try{const{data:y}=await api_getCurrentGradeYear({});console.log(y),n.gradeYear=y}catch(y){}},d=async()=>{try{const{data:y}=await request.get("/edu-app/open/paramConfig/queryByParamNameList",{params:{paramNames:"homework_max_deadline_time,homework_file_expire_time"}});console.log(y,"data"),(y||[]).forEach(b=>{b.paramName==="homework_file_expire_time"?o.value=b.paramValue||0:b.paramName==="homework_max_deadline_time"&&(i.value=b.paramValue||0)}),i.value>0&&(l.value=dayjs(dayjs().add(Number(i.value)+1,"day").format("YYYY-MM-DD")).valueOf(),Number(i.value)<7&&(n.expireDate=dayjs().add(Number(i.value),"day").format("YYYY-MM-DD HH:mm")),console.log(dayjs().add(Number(i.value),"day").format("YYYY-MM-DD"),"pickerEndTime.value"))}catch(y){}},p=y=>{let S=!1;return l.value?S=y<n.currentTime||y>=l.value:S=y<n.currentTime,console.log(S,"1212",y>l.value,n.currentTime,y,l.value),S};onMounted(async()=>{await d(),await u(),await c()});let g,E;if(e.from==="class"){const y=useUserStore();E="assignHomeworkStuBoxClass_drag",g=useDrag(["".concat(E,">.n-card-header"),"".concat(E," .bom_drag")],E,toRef(n,"workVisiable"),y.info.id)}return()=>createVNode("div",{class:styles$6.assignHomeworkContainer},[createVNode(NForm,{ref:s,model:n,labelAlign:"right",labelWidth:"80",labelPlacement:"left"},{default:()=>[createVNode(NFormItem,{label:"布置方式",path:"homeworkObj",rule:[{required:!0,message:"请选择布置方式"}]},{default:()=>[createVNode(NSpace,null,{default:()=>[createVNode(NButton,{secondary:!0,class:[styles$6.switch,n.homeworkObj==="CLASS"?styles$6.active:""],onClick:()=>n.homeworkObj="CLASS"},{default:()=>[createTextVNode("按班级布置")]}),createVNode(NButton,{secondary:!0,class:[styles$6.switch,n.homeworkObj==="PERSON"?styles$6.active:""],onClick:()=>n.homeworkObj="PERSON"},{default:()=>[createTextVNode("按学生布置")]})]})]}),createVNode(NFormItem,{label:"作业标题",path:"title",rule:[{required:!0,message:"请输入作业标题",trigger:"blur"}]},{default:()=>[createVNode(NInput,{value:n.title,"onUpdate:value":y=>n.title=y,placeholder:"请选择作业标题",clearable:!0},null)]}),createVNode(NFormItem,{label:"年级",path:"currentGradeNum",rule:[{required:!0,message:"请选择年级",trigger:"change",type:"number"}]},{default:()=>[createVNode(NSelect,{disabled:!!e.classGroupId,value:n.currentGradeNum,"onUpdate:value":[y=>n.currentGradeNum=y,()=>{n.classGroupId=null,f()}],placeholder:"请选择年级",options:n.gradeList,clearable:!0},null)]}),n.homeworkObj==="CLASS"?createVNode(NFormItem,{label:"班级",path:"classGroupId",rule:[{required:!0,message:"请选择班级",trigger:"change",type:"array"}]},{default:()=>[createVNode(NSelect,{disabled:!!e.classGroupId,options:n.classList,value:n.classGroupId,"onUpdate:value":y=>n.classGroupId=y,placeholder:"请选择班级",clearable:!0,multiple:!0},null)]}):createVNode(NFormItem,{label:"学生",path:"studentList",rule:[{required:!0,message:"请选择学生",trigger:"change",type:"array"}],class:styles$6.studentSection},{default:()=>[createVNode("span",{class:[styles$6.selectStudentBtn,!n.currentGradeNum&&styles$6.disabled],onClick:()=>{if(!n.currentGradeNum)return;const y=[];n.studentList.forEach(S=>{y.push(S.id)}),n.selectIds=y,n.workVisiable=!0}},[createTextVNode("选择学生")]),n.studentList.length>0&&createVNode(NScrollbar,{class:styles$6.studentList},{default:()=>[createVNode("span",{class:styles$6.firstName},[createTextVNode("当前选中("),n.studentList.length||0,createTextVNode("):")]),n.studentList.map((y,S)=>createVNode("span",{class:styles$6.studentItem},[y.name," ",createVNode("i",{class:styles$6.iconDelete,onClick:()=>{n.studentList.splice(S,1)}},null)]))]})]}),createVNode(NFormItem,{label:"截止时间",path:"expireDate",rule:[{required:!0,message:"请选择截止时间",trigger:"change"}]},{default:()=>[createVNode(NDatePicker,{"formatted-value":n.expireDate,"onUpdate:formatted-value":y=>n.expireDate=y,type:"datetime",clearable:!0,format:"yyyy-MM-dd HH:mm",style:{width:"100%"},isDateDisabled:p},null)]}),o.value>0&&createVNode(NFormItem,{label:" "},{default:()=>[createVNode("div",{class:styles$6.expireDateTip},[createVNode("i",{class:styles$6.expireDateIcon},null),createVNode("span",null,[createTextVNode("作业截止"),o.value,createTextVNode("天后,学生上传的文件将过期,请及时查看")])])]}),createVNode(NSpace,{class:styles$6.updateBtnGroup},{default:()=>[createVNode(NButton,{strong:!0,type:"default",round:!0,onClick:()=>t("close")},{default:()=>[createTextVNode("取消布置")]}),createVNode(NButton,{strong:!0,type:"primary",round:!0,disabled:n.uploading,loading:n.uploading,onClick:m},{default:()=>[createTextVNode("确认布置")]})]})]}),createVNode(NModal,{show:n.workVisiable,"onUpdate:show":y=>n.workVisiable=y,style:e.from==="class"?{width:"640px",...g.styleDrag.value}:{width:"640px"},preset:"card",showIcon:!1,class:["modalTitle background",E],title:"选择学生",blockScroll:!1},{default:()=>[createVNode(AssignStudent,{classGroupId:e.classGroupId,currentGradeNum:n.currentGradeNum,selectIds:n.selectIds,studentList:n.studentList,classList:n.classList,onClose:()=>n.workVisiable=!1,onConfirm:y=>{n.studentList=y||[],n.workVisiable=!1}},null),e.from==="class"&&createVNode(Dragbom,null,null)]})])}}),searchGroup$1="_searchGroup_5ue74_1",searchSelect$1="_searchSelect_5ue74_4",inputSearch$1="_inputSearch_5ue74_18",searchBtn$1="_searchBtn_5ue74_22",btnType$1="_btnType_5ue74_28",styles$4={searchGroup:searchGroup$1,searchSelect:searchSelect$1,inputSearch:inputSearch$1,searchBtn:searchBtn$1,btnType:btnType$1},ResourceSearchGroup$1=defineComponent({name:"resource-search-group",props:{type:{type:String,default:"myMusic"}},emits:["search"],setup(e,{emit:t}){const r=useCatchStore(),a=reactive({name:"",musicSheetCategoriesId:null,musicalInstrumentId:null}),n=()=>{t("search",a)},s=useThrottleFn(()=>n(),500);return onMounted(async()=>{await r.getMusicSheetCategory(),await r.getSubjects()}),()=>createVNode(Fragment,null,[createVNode("div",{class:styles$4.searchGroup},[e.type!=="myMusic"&&createVNode("div",{class:styles$4.searchSelect},[createVNode(NSelect,{placeholder:"全部教材",options:[{name:"全部教材",id:null},...r.getMusicCategories],clearable:!0,labelField:"name",valueField:"id",value:a.musicSheetCategoriesId,"onUpdate:value":[i=>a.musicSheetCategoriesId=i,()=>{n()}]},null)]),createVNode("div",{class:styles$4.searchSelect},[createVNode(NCascader,{placeholder:"全部乐器",value:a.musicalInstrumentId,"onUpdate:value":[i=>a.musicalInstrumentId=i,()=>{n()}],options:[...r.getSubjectList],checkStrategy:"child",showPath:!1,childrenField:"instruments",expandTrigger:"hover",clearable:!0,filterable:!0},null)]),createVNode(NInput,{type:"text",placeholder:"请输入搜索关键词",clearable:!0,value:a.name,"onUpdate:value":i=>a.name=i,class:styles$4.inputSearch,onKeyup:i=>{i.code==="Enter"&&s()},onClear:()=>{a.name="",s()}},{prefix:()=>createVNode("span",{class:"icon-search-input",onClick:()=>s()},null)})])])}}),listContainer$1="_listContainer_13612_1",listNoMusic$1="_listNoMusic_13612_5",listSection$1="_listSection_13612_8",emptySection$1="_emptySection_13612_14",list$1="_list_13612_1",trainEditModal$1="_trainEditModal_13612_28",styles$3={listContainer:listContainer$1,listNoMusic:listNoMusic$1,listSection:listSection$1,emptySection:emptySection$1,list:list$1,trainEditModal:trainEditModal$1},formatType$1=e=>{if(e==="sahreMusic")return 2;if(e==="myMusic")return 3;if(e==="collectMusic")return 4},typeFormat=(e,t)=>{let r=[];return e==="EVALUATION"?r=["".concat(evaluateDifficult[t.evaluateDifficult]),t.practiceChapterBegin||t.practiceChapterEnd?"".concat(t.practiceChapterBegin,"-").concat(t.practiceChapterEnd,"小节"):"全部小节","".concat(t.trainingTimes,"分合格")]:r=["".concat(t.practiceChapterBegin,"-").concat(t.practiceChapterEnd,"小节"),"速度".concat(t.practiceSpeed),"".concat(t.trainingTimes,"分钟")],r},SelectMusic=defineComponent({name:"share-resources",props:{type:{type:String,default:"myMusic"},cardType:{type:String,default:""},from:{type:String,default:""}},setup(e){const t=usePrepareStore(),r=reactive({loading:!1,finshed:!1,pagination:{page:1,rows:20},searchGroup:{name:"",type:"MUSIC",musicSheetCategoriesId:"",musicalInstrumentId:"",sourceType:formatType$1(e.type),status:1,versionFlag:!1,musicSubject:null},tableList:[],editStatus:!1,editItem:{},show:!1,item:{}}),a=async()=>{try{if(!t.getSubjectId&&!["homerowk-record","prepare"].includes(e.cardType))return;r.pagination.page===1&&(r.loading=!0);const{data:f}=await materialQueryPage({...r.searchGroup,...r.pagination});r.loading=!1;const m=f.rows||[],u=[];m.forEach(d=>{const p=t.getTrainList.findIndex(g=>g.musicId===d.id);u.push({id:d.id,coverImg:d.coverImg||d.musicSvg,type:"MUSIC",title:d.name,isCollect:!!d.favoriteFlag,refFlag:d.refFlag,isSelected:d.sourceFrom==="PLATFORM",content:d.id,xmlFileUrl:d.xmlFileUrl})}),r.tableList.push(...u),r.finshed=f.pages<=f.current}catch(f){r.loading=!1}},n=async f=>{r.pagination.page=1,r.tableList=[],r.searchGroup=Object.assign(r.searchGroup,f),a()};watch(()=>t.getSubjectId,()=>{n(r.searchGroup)});const s=useThrottleFn(()=>{r.pagination.page=r.pagination.page+1,a()},500),i=async f=>{var d;let m="init",u=null;try{const p=await request$1.get(f.xmlFileUrl,{mode:"cors"});u=(d=new DOMParser().parseFromString(p,"text/xml").getElementsByTagName("part")[0])==null?void 0:d.getElementsByTagName("measure"),m="success"}catch(p){m="error"}m=="success"?f.practiceChapterMax=u.length:f.practiceChapterMax=0,f.coursewareKnowledgeDetailId=t.getSelectKey,f.subjectId=t.getSubjectId,r.editItem=f,r.editStatus=!0},o=async f=>{try{await favorite({materialId:f.id,favoriteFlag:f.isCollect?0:1,type:f.type}),f.isCollect=!f.isCollect}catch(m){}};onMounted(()=>{a(),eventGlobal.on("onTrainDragItem",(f,m)=>{i(f)})});let l,c;if(e.from==="class"){const f=useUserStore();c="workSetingBoxClass_drag",l=useDrag(["".concat(c,">.n-card-header"),"".concat(c," .bom_drag")],c,toRef(r,"editStatus"),f.info.id)}return()=>createVNode("div",null,[createVNode(ResourceSearchGroup$1,{type:e.type,onSearch:f=>n(f)},null),createVNode(NScrollbar,{class:[styles$3.listContainer,e.type==="myMusic"?styles$3.listNoMusic:""],onScroll:f=>{var p,g,E;const m=(p=f.target)==null?void 0:p.clientHeight,u=(g=f.target)==null?void 0:g.scrollTop,d=(E=f.target)==null?void 0:E.scrollHeight;m+u+20>=d&&!r.finshed&&!r.loading&&s()}},{default:()=>[createVNode(NSpin,{show:r.loading,size:"small"},{default:()=>[createVNode("div",{class:[styles$3.listSection,!r.loading&&r.tableList.length<=0?styles$3.emptySection:""]},[r.tableList.length>0&&createVNode("div",{class:styles$3.list},[r.tableList.map(f=>createVNode(CardType,{isShowAdd:!0,item:f,draggable:!0,isShowCollect:!0,disabledMouseHover:!1,onClick:()=>{f.type!=="IMG"&&(r.show=!0,r.item=f)},onAdd:m=>i(m),onCollect:m=>o(m)},null))]),!r.loading&&r.tableList.length<=0&&createVNode(TheEmpty,null,null)])]})]}),createVNode(CardPreview,{from:e.from,show:r.show,"onUpdate:show":f=>r.show=f,item:r.item},null),createVNode(NModal,{show:r.editStatus,"onUpdate:show":f=>r.editStatus=f,style:e.from==="class"?l.styleDrag.value:{},class:["modalTitle background",styles$3.trainEditModal,c],preset:"card",title:"作业设置"},{default:()=>[createVNode(TrainUpdate,{item:r.editItem,type:"homework",onClose:()=>r.editStatus=!1,onConfirm:f=>{const m=typeFormat(f.trainingType,f.trainingConfigJson),u={...f,id:null,musicName:r.editItem.title,typeList:m};eventGlobal.emit("onTrainAddItem",u)}},null),e.from==="class"&&createVNode(Dragbom,null,null)]})])}}),Train=defineComponent({name:"courseware-modal",props:{lessonPreTraining:{type:Object,default:()=>({})},cardType:{type:String,default:""},classGroupId:{type:String,default:""},coursewareKnowledgeDetailId:{type:String,default:""},courseScheduleId:{type:String,default:""},from:{type:String,default:""}},emits:["change"],setup(e,{emit:t}){var b;console.log(e.courseScheduleId,"courseScheduleId"),useCatchStore();const r=usePrepareStore(),a=useDialog(),n=useMessage(),s=reactive({title:(b=e.lessonPreTraining)==null?void 0:b.title,preBtnLoading:!1,showAttendClass:!1,list:[],drag:!0,loadingStatus:!1,trainList:[],assignHomeworkStatus:!1,editStatus:!1,editItem:{},removeIds:[],removeVisiable1:!1,preSaveVisiable:!1}),i=async()=>{var A,C;s.loadingStatus=!0;try{if(!((A=e.lessonPreTraining)!=null&&A.id))return s.loadingStatus=!1;const{data:P}=await lessonPreTrainingV2Detail({id:(C=e.lessonPreTraining)==null?void 0:C.id}),N=P.lessonPreTrainingDetails||[],D=[];s.title=P.title,N.forEach(B=>{let O=[];const _=B.trainingConfigJson;B.trainingType==="EVALUATION"?O=["".concat(evaluateDifficult[_.evaluateDifficult]),_.practiceChapterBegin||_.practiceChapterEnd?"".concat(_.practiceChapterBegin,"-").concat(_.practiceChapterEnd,"小节"):"全部小节","".concat(_.trainingTimes,"分合格")]:O=["".concat(_.practiceChapterBegin,"-").concat(_.practiceChapterEnd,"小节"),"速度".concat(_.practiceSpeed),"".concat(_.trainingTimes,"分钟")],D.push({typeList:O||[],...B})}),r.setTrainList(D||[]);const V=[];D.forEach(B=>{s.removeIds.includes(B.id)||V.push(B)}),s.trainList=V||[]}catch(P){}s.loadingStatus=!1};watch(()=>r.getSelectKey,()=>{eventGlobal.emit("teacher-slideshow",!1),t("change",{status:!1}),s.trainList=[],i()});const o=A=>{s.removeIds.push(A.id);const C=s.trainList.findIndex(P=>P.id===A.id);s.trainList.splice(C,1)},l=async A=>{try{a.warning({title:"提示",content:"该训练已下架,是否删除?",positiveText:"确定",negativeText:"取消",onPositiveClick:async()=>{s.removeIds.push(A.id),await lessonPreTrainingDelete({ids:A.id}),n.success("删除成功"),i()}})}catch(C){}},c=async()=>{var A,C;s.preBtnLoading=!0;try{const P=[];s.trainList.forEach(D=>{P.push({trainingType:D.trainingType,musicId:D.musicId,trainingConfigJson:D.trainingConfigJson,musicName:D.musicName})});const{data:N}=await lessonPreTrainingV2Save({title:s.title,id:(A=e.lessonPreTraining)==null?void 0:A.id,coursewareKnowledgeDetailId:e.coursewareKnowledgeDetailId||r.getSelectKey,lessonPreTrainingDetails:P,courseScheduleId:e.courseScheduleId,chapterLessonCoursewareId:(C=e.lessonPreTraining)==null?void 0:C.chapterId});n.success("保存成功"),r.setIsEditTrain(!1),s.removeIds=[],t("change",{status:!1,saveWork:!0,lessonPreTrainingId:N.id})}catch(P){}s.preBtnLoading=!1},f=()=>{const A=document.querySelector("#model-homework-height");A&&useResizeObserver(A,C=>{const P=C[0],{height:N}=P.contentRect;A.style.setProperty("--window-page-lesson-height",N+"px")})};onMounted(async()=>{f(),await i(),eventGlobal.on("onTrainAddItem",A=>{s.drag=!0,A.id=A.id||new Date().getTime()+"__tmp",s.trainList.push(A),r.setTrainList(s.trainList)})}),onUnmounted(()=>{s.trainList=[],r.setTrainList([])});let m,u;if(e.from==="class"){const A=useUserStore();u="workSetingBoxClass_drag",m=useDrag(["".concat(u,">.n-card-header"),"".concat(u," .bom_drag")],u,toRef(s,"editStatus"),A.info.id)}let d,p;if(e.from==="class"){const A=useUserStore();p="workClearBoxClass_drag",d=useDrag(["".concat(p,">.n-card-header"),"".concat(p," .bom_drag")],p,toRef(s,"removeVisiable1"),A.info.id)}let g,E;if(e.from==="class"){const A=useUserStore();E="workSaveBoxClass_drag",g=useDrag(["".concat(E,">.n-card-header"),"".concat(E," .bom_drag")],E,toRef(s,"preSaveVisiable"),A.info.id)}let y,S;if(e.from==="class"){const A=useUserStore();S="workArrangeImmediatelyBoxClass_drag",y=useDrag(["".concat(S,">.n-card-header"),"".concat(S," .bom_drag")],S,toRef(s,"assignHomeworkStatus"),A.info.id)}return()=>createVNode("div",{class:styles$6.coursewareModal},[createVNode("div",{class:styles$6.btnGroup},[createVNode(NSpace,null,{default:()=>[createVNode("div",{class:styles$6.btnItem},[createVNode("span",{class:styles$6.btnTitle},[createVNode("i",{style:{color:"#ea4132",fontStyle:"normal"}},[createTextVNode("*")]),createTextVNode("标题:")]),createVNode(NInput,{placeholder:"请输入标题",value:s.title,"onUpdate:value":A=>s.title=A,maxlength:100},null)])]}),createVNode("div",{class:styles$6.spaceBtnGroup},[createVNode(NButton,{bordered:!1,type:"error",disabled:s.trainList.length<=0,onClick:()=>{s.removeVisiable1=!0}},{default:()=>[createTextVNode("清空")]}),createVNode(NButton,{bordered:!1,type:"error",onClick:()=>{r.setIsEditTrain(!1),s.removeIds=[],t("change",{status:!1})}},{default:()=>[createTextVNode("取消")]}),(e.cardType!=="homeworkRecord"||e.courseScheduleId)&&createVNode(NButton,{bordered:!1,type:"default",disabled:s.trainList.length<=0,onClick:()=>{if(!s.title){n.error("请输入标题");return}let A=0;if(s.trainList.forEach(C=>{C.removeFlag||A++}),A<=0){n.error("作业内容不能为空");return}s.preSaveVisiable=!0}},{default:()=>[createTextVNode("保存")]}),(e.cardType==="homeworkRecord"||e.courseScheduleId)&&createVNode(NButton,{type:"primary",disabled:s.trainList.length<=0,onClick:()=>{if(!s.title){n.error("请输入标题");return}let A=0;if(s.trainList.forEach(C=>{C.removeFlag||A++}),A<=0){n.error("作业内容不能为空");return}s.assignHomeworkStatus=!0}},{default:()=>[createTextVNode("立即布置")]})])]),createVNode(NScrollbar,{class:[styles$6.listContainer,"train-container"]},{default:()=>[createVNode(NSpin,{show:s.loadingStatus},{default:()=>[createVNode("div",{class:[styles$6.listSection,"train-listSection",!s.loadingStatus&&r.getTrainList.length<=0?styles$6.emptySection:""],onDragenter:A=>{A.preventDefault()},onDragover:A=>{A.preventDefault()},onDrop:A=>{let C=A.dataTransfer.getData("text");console.log(C,"dropItem",C),C=C?JSON.parse(C):{},C.id&&eventGlobal.emit("onTrainDragItem",C)}},[s.trainList.length>0&&createVNode(Fragment,null,[createVNode(Draggable,{modelValue:s.trainList,"onUpdate:modelValue":A=>s.trainList=A,itemKey:"id",componentData:{itemKey:"id",tag:"div",animation:200,group:"description",disabled:!1},class:styles$6.list},{item:A=>{const C=A.element;return createVNode("div",{"data-id":C.musicId,class:styles$6.itemBlock},[createVNode(TrainType,{from:e.from,item:C,isDelete:!0,type:"prepare",onDelete:P=>o(P),offShelf:!!C.removeFlag,onOffShelf:()=>l(C),onEdit:P=>{const{trainingConfigJson:N,id:D,musicId:V,...B}=P;s.editItem={...B,id:V,trainId:D,...N},s.editStatus=!0}},null)])}})]),!s.loadingStatus&&r.getTrainList.length<=0&&createVNode(TheEmpty,{description:"暂无作业"},null)])]})]}),createVNode(NModal,{style:e.from==="class"?m.styleDrag.value:{},show:s.editStatus,"onUpdate:show":A=>s.editStatus=A,class:["modalTitle background",styles$6.trainEditModal,u],preset:"card",title:"作业设置"},{default:()=>[createVNode(TrainUpdate,{item:s.editItem,onClose:()=>s.editStatus=!1,onConfirm:A=>{s.editItem={};const C=typeFormat(A.trainingType,A.trainingConfigJson),P={...A,typeList:C};s.trainList.forEach(N=>{N.id===P.id&&(N.trainingConfigJson=P.trainingConfigJson,N.trainingType=P.trainingType,N.typeList=P.typeList)}),r.setTrainList(s.trainList)}},null),e.from==="class"&&createVNode(Dragbom,null,null)]}),createVNode(NModal,{style:e.from==="class"?y.styleDrag.value:{},show:s.assignHomeworkStatus,"onUpdate:show":A=>s.assignHomeworkStatus=A,preset:"card",showIcon:!1,class:["modalTitle background",styles$6.assignHomework,S],title:"布置作业",blockScroll:!1},{default:()=>[createVNode(AssignHomework,{from:e.from,classGroupId:e.classGroupId,courseScheduleId:e.courseScheduleId,chapterLessonCoursewareId:e.lessonPreTraining.chapterId,homeworkType:e.courseScheduleId?"HOMEWORK":"CLASSWORK",item:{title:s.title,lessonPreTrainingDetails:s.trainList},onClose:()=>s.assignHomeworkStatus=!1,onConfirm:()=>{e.cardType==="homeworkRecord"&&(s.trainList=[],r.setTrainList([]),t("change",{state:!1}))}},null),e.from==="class"&&createVNode(Dragbom,null,null)]}),createVNode(NModal,{style:e.from==="class"?d.styleDrag.value:{},show:s.removeVisiable1,"onUpdate:show":A=>s.removeVisiable1=A,preset:"card",class:["modalTitle",styles$6.removeVisiable1,p],title:"清空资源"},{default:()=>[createVNode("div",{class:styles$6.studentRemove},[createVNode("p",null,[createTextVNode("请确认是否要清空作业?")]),createVNode(NSpace,{class:styles$6.btnGroupModal,justify:"center"},{default:()=>[createVNode(NButton,{round:!0,type:"primary",onClick:()=>{s.trainList.forEach(A=>{s.removeIds.push(A.id)}),s.trainList=[],r.setTrainList([]),s.removeVisiable1=!1}},{default:()=>[createTextVNode("确定")]}),createVNode(NButton,{round:!0,onClick:()=>s.removeVisiable1=!1},{default:()=>[createTextVNode("取消")]})]})]),e.from==="class"&&createVNode(Dragbom,null,null)]}),createVNode(NModal,{style:e.from==="class"?g.styleDrag.value:{},show:s.preSaveVisiable,"onUpdate:show":A=>s.preSaveVisiable=A,preset:"card",class:["modalTitle",styles$6.removeVisiable1,E],title:"保存"},{default:()=>[createVNode(TheMessageDialog,{content:"是否保存当前页面编辑内容?",cancelButtonText:"取消",confirmButtonText:"保存",onClose:()=>s.preSaveVisiable=!1,onConfirm:()=>c()},null),e.from==="class"&&createVNode(Dragbom,null,null)]})])}}),iconScreen="_iconScreen_1rqu7_40",homerowkTabs="_homerowkTabs_1rqu7_51",selectMusicModal="_selectMusicModal_1rqu7_68",trainEditModal="_trainEditModal_1rqu7_81",styles$2={"resource-main":"_resource-main_1rqu7_1",iconScreen,homerowkTabs,selectMusicModal,trainEditModal},searchGroup="_searchGroup_1vu4z_1",searchSelect="_searchSelect_1vu4z_4",inputSearch="_inputSearch_1vu4z_21",searchBtn="_searchBtn_1vu4z_28",btnType="_btnType_1vu4z_34",styles$1={searchGroup,searchSelect,inputSearch,searchBtn,btnType};function _isSlot(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode(e)}const ResourceSearchGroup=defineComponent({name:"resource-search-group",emits:["search"],props:{type:{type:String,default:"relateResources"}},setup(e,{emit:t}){const r=useCatchStore(),a=reactive({type:"MUSIC",name:"",bookVersionId:null,musicalInstrumentId:""}),n=ref([]),s=()=>{t("search",a)},i=useThrottleFn(()=>s(),500);return onMounted(async()=>{await r.getMusicSheetCategory(),await r.getSubjects(),resourceTypeArray.forEach(o=>{n.value.push(o)})}),()=>{let o;return createVNode(Fragment,null,[createVNode("div",{class:styles$1.searchGroup},[createVNode(NSpace,{size:"small",class:styles$1.btnType},_isSlot(o=n.value.map(l=>createVNode(NButton,{type:a.type===l.value?"primary":"default",secondary:a.type!==l.value,round:!0,size:"small",focusable:!1,onClick:()=>{a.type=l.value,i()}},{default:()=>[l.label]})))?o:{default:()=>[o]}),createVNode("div",{class:styles$1.searchSelect},[createVNode(NCascader,{placeholder:"全部乐器",options:[{name:"全部乐器",id:""},...r.getSubjectList],clearable:!0,labelField:"name",valueField:"id",value:a.musicalInstrumentId,"onUpdate:value":[l=>a.musicalInstrumentId=l,()=>{s()}],checkStrategy:"child",showPath:!1,childrenField:"instruments",expandTrigger:"hover",filterable:!0},null)]),a.type==="MUSIC"&&e.type==="shareResources"&&createVNode("div",{class:styles$1.searchSelect},[createVNode(NSelect,{placeholder:"全部教材",options:[{name:"全部教材",id:null},...r.getMusicCategories],clearable:!0,labelField:"name",valueField:"id",value:a.bookVersionId,"onUpdate:value":[l=>a.bookVersionId=l,()=>{s()}]},null)]),createVNode(NInput,{type:"text",placeholder:"请输入搜索关键词",clearable:!0,value:a.name,"onUpdate:value":l=>a.name=l,class:styles$1.inputSearch,onKeyup:l=>{l.code==="Enter"&&i()},onClear:()=>{a.name="",i()}},{prefix:()=>createVNode("span",{class:"icon-search-input",onClick:()=>i()},null)})])])}}}),listContainer="_listContainer_15hpr_1",listNoMusic="_listNoMusic_15hpr_5",listSection="_listSection_15hpr_8",emptySection="_emptySection_15hpr_14",list="_list_15hpr_1",styles={listContainer,listNoMusic,listSection,emptySection,list},formatType=e=>{if(e==="shareResources")return 2;if(e==="myResources")return 3;if(e==="myCollect")return 4;if(e==="relateResources")return 5},ResourceItem=defineComponent({name:"share-resources",props:{type:{type:String,default:"relateResources"}},setup(e){const t=usePrepareStore();useMessage(),useDialog();const r=reactive({loading:!1,finshed:!1,pagination:{page:1,rows:20},searchGroup:{type:"MUSIC",name:"",bookVersionId:null,musicalInstrumentId:null,subjectId:null,sourceType:formatType(e.type),enableFlag:!0},tableList:[],show:!1,item:{}}),a=async()=>{try{r.pagination.page===1&&(r.loading=!0);const{data:m}=await materialQueryPage({...r.searchGroup,...r.pagination,lessonCoursewareKnowledgeId:e.type==="relateResources"||e.type==="shareResources"?t.getSelectKey:null,relateLessonCoursewareKnowledgeMaterialIds:c()});r.loading=!1;const u=m.rows||[],d=[];u.forEach(p=>{const g=t.getCoursewareList.findIndex(E=>E.materialId===p.id);d.push({id:p.id,coverImg:p.coverImg,type:p.type,title:p.name,isCollect:!!p.favoriteFlag,refFlag:p.refFlag,isSelected:p.sourceFrom==="PLATFORM",content:p.content})}),r.pagination.page===1?r.tableList=d:r.tableList.push(...d),r.finshed=m.pages<=m.current}catch(m){r.loading=!1}},n=async m=>{r.pagination.page=1,r.tableList=[],r.searchGroup=Object.assign(r.searchGroup,m),a()},s=useDebounceFn(m=>{r.pagination.page=r.pagination.page+1,r.pagination.page=1,r.tableList=[],r.searchGroup=Object.assign(r.searchGroup,m),a()},500);watch(()=>t.getInstrumentId,()=>{n(r.searchGroup)});const i=useThrottleFn(()=>{r.pagination.page=r.pagination.page+1,a()},500),o=async m=>{try{eventGlobal.emit("onPrepareAddItem",{materialId:m.id,coverImg:m.coverImg,refFlag:m.refFlag,type:m.type,title:m.title,isCollect:m.isCollect,isSelected:m.isSelected,content:m.content,removeFlag:!1})}catch(u){}},l=async m=>{try{await favorite({materialId:m.id,favoriteFlag:m.isCollect?0:1,type:m.type}),m.isCollect=!m.isCollect}catch(u){}},c=()=>{let m=[];if(e.type==="relateResources"){const u=[];t.getCoursewareList.forEach(d=>{var p;(p=d.list)==null||p.forEach(g=>{u.push(g.materialId)})}),m=Array(...new Set(u))}return m.join(",")},f=()=>{r.pagination.page=1,r.tableList=[],a()};return onMounted(()=>{f(),e.type==="relateResources"&&eventGlobal.on("onCoursewareUpdate",f)}),onUnmounted(()=>{eventGlobal.off("onCoursewareUpdate",f)}),()=>createVNode("div",null,[createVNode(ResourceSearchGroup,{type:e.type,onSearch:m=>{r.searchGroup=Object.assign(r.searchGroup,m),s(m)}},null),createVNode(NScrollbar,{class:[styles.listContainer,"listContainerResource",r.searchGroup.type!=="MUSIC"||["myResources","myCollect","relateResources"].includes(e.type)?[styles.listNoMusic,"listNoMusicResource"]:""],onScroll:m=>{var g,E,y;const u=(g=m.target)==null?void 0:g.clientHeight,d=(E=m.target)==null?void 0:E.scrollTop,p=(y=m.target)==null?void 0:y.scrollHeight;u+d+20>=p&&!r.finshed&&!r.loading&&i()}},{default:()=>[createVNode(NSpin,{show:r.loading,size:"small"},{default:()=>[createVNode("div",{class:[styles.listSection,"listSectionResource",!r.loading&&r.tableList.length<=0?[styles.emptySection,"emptySectionResource"]:""]},[r.tableList.length>0&&createVNode("div",{class:styles.list},[r.tableList.map(m=>createVNode(CardType,{isShowAdd:!0,item:m,isShowCollect:!0,draggable:!0,disabledMouseHover:!1,onClick:()=>{m.type!=="IMG"&&(r.show=!0,r.item=m)},onCollect:u=>l(u),onAdd:u=>o(u)},null))]),!r.loading&&r.tableList.length<=0&&createVNode(TheEmpty,null,null)])]})]}),createVNode(CardPreview,{show:r.show,"onUpdate:show":m=>r.show=m,item:r.item},null)])}}),ResourceMain=defineComponent({name:"resource-main",props:{cardType:{type:String,default:""},from:{type:String,default:""}},setup(e,{expose:t}){const r=usePrepareStore(),a=useCatchStore(),n=reactive({tabType:"relateResources",tabWorkType:"myMusic",selectMusicStatus:!1,selectResourceStatus:!1,editStatus:!1,editItem:{}}),s=ref(),i=ref(),o=async d=>{var E;let p="init",g=null;try{const y=await request$1.get(d.xmlFileUrl,{mode:"cors"});g=(E=new DOMParser().parseFromString(y,"text/xml").getElementsByTagName("part")[0])==null?void 0:E.getElementsByTagName("measure"),p="success"}catch(y){p="error"}p=="success"?d.practiceChapterMax=g.length:d.practiceChapterMax=0,d.coursewareKnowledgeDetailId=r.getSelectKey,d.subjectId=r.getSubjectId,n.editItem=d,n.editStatus=!0},l=()=>{nextTick(()=>{var d,p;(d=s.value)==null||d.syncBarPosition(),(p=i.value)==null||p.syncBarPosition()})};onMounted(async()=>{l(),await a.getMusicSheetCategory(!0)});let c,f;if(e.from==="class"){const d=useUserStore();f="selectResourceStatusAddBoxClass_drag",c=useDrag(["".concat(f," .select-resource>.n-tabs>.n-tabs-nav--top.n-tabs-nav"),"".concat(f," .bom_drag")],f,toRef(n,"selectMusicStatus"),d.info.id)}let m,u;if(e.from==="class"){const d=useUserStore();u="workSetingBoxClass_drag",m=useDrag(["".concat(u,">.n-card-header"),"".concat(u," .bom_drag")],u,toRef(n,"editStatus"),d.info.id)}return t({resetTabPosition:l}),()=>createVNode("div",{class:[styles$2["resource-main"],n.selectMusicStatus||n.selectResourceStatus?styles$2.resourceClose:""]},[r.getTabType==="courseware"&&!["homerowk-record","prepare"].includes(e.cardType)?createVNode(NTabs,{id:"lessonsIn-0",ref:s,animated:!0,class:styles$2.homerowkTabs,value:n.tabType,paneClass:styles$2.paneTitle,paneWrapperClass:styles$2.paneWrapperContainer,"onUpdate:value":d=>{n.tabType=d}},{suffix:()=>createVNode("div",{class:styles$2.iconScreen,onClick:()=>{n.selectResourceStatus=!0,r.setSelectResourceStatus(!0)}},[createVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[createVNode("g",{fill:"none"},[createVNode("path",{d:"M5 6a1 1 0 0 1 1-1h2a1 1 0 0 0 0-2H6a3 3 0 0 0-3 3v2a1 1 0 0 0 2 0V6zm0 12a1 1 0 0 0 1 1h2a1 1 0 1 1 0 2H6a3 3 0 0 1-3-3v-2a1 1 0 1 1 2 0v2zM18 5a1 1 0 0 1 1 1v2a1 1 0 1 0 2 0V6a3 3 0 0 0-3-3h-2a1 1 0 1 0 0 2h2zm1 13a1 1 0 0 1-1 1h-2a1 1 0 1 0 0 2h2a3 3 0 0 0 3-3v-2a1 1 0 1 0-2 0v2z",fill:"#198CFE"},null)])])]),default:()=>createVNode(Fragment,null,[createVNode(NTabPane,{name:"relateResources",tab:"相关资源"},{default:()=>[createVNode(ResourceItem,{type:"relateResources"},null)]}),createVNode(NTabPane,{name:"shareResources",tab:"共享资源"},{default:()=>[createVNode(ResourceItem,{type:"shareResources"},null)]}),createVNode(NTabPane,{name:"myResources",tab:"我的资源"},{default:()=>[createVNode(ResourceItem,{type:"myResources"},null)]}),createVNode(NTabPane,{name:"myCollect",tab:"我的收藏"},{default:()=>[createVNode(ResourceItem,{type:"myCollect"},null)]})])}):createVNode(NTabs,{ref:i,animated:!0,value:n.tabWorkType,paneClass:styles$2.paneTitle,paneWrapperClass:styles$2.paneWrapperContainer,"onUpdate:value":d=>{n.tabWorkType=d}},{suffix:()=>createVNode("div",{class:styles$2.iconScreen,onClick:()=>{n.selectMusicStatus=!0,r.setSelectMusicStatus(!0)}},[createVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[createVNode("g",{fill:"none"},[createVNode("path",{d:"M5 6a1 1 0 0 1 1-1h2a1 1 0 0 0 0-2H6a3 3 0 0 0-3 3v2a1 1 0 0 0 2 0V6zm0 12a1 1 0 0 0 1 1h2a1 1 0 1 1 0 2H6a3 3 0 0 1-3-3v-2a1 1 0 1 1 2 0v2zM18 5a1 1 0 0 1 1 1v2a1 1 0 1 0 2 0V6a3 3 0 0 0-3-3h-2a1 1 0 1 0 0 2h2zm1 13a1 1 0 0 1-1 1h-2a1 1 0 1 0 0 2h2a3 3 0 0 0 3-3v-2a1 1 0 1 0-2 0v2z",fill:"#198CFE"},null)])])]),default:()=>createVNode(Fragment,null,[createVNode(NTabPane,{name:"myMusic",tab:"我的曲目"},{default:()=>[createVNode(SelectMusic,{from:e.from,cardType:e.cardType,type:"myMusic"},null)]}),createVNode(NTabPane,{name:"sahreMusic",tab:"共享曲目"},{default:()=>[createVNode(SelectMusic,{from:e.from,cardType:e.cardType,type:"sahreMusic"},null)]}),createVNode(NTabPane,{name:"collectMusic",tab:"收藏曲目"},{default:()=>[createVNode(SelectMusic,{from:e.from,cardType:e.cardType,type:"collectMusic"},null)]})])}),createVNode(NModal,{show:n.selectResourceStatus,"onUpdate:show":[d=>n.selectResourceStatus=d,d=>{d||r.setSelectResourceStatus(d)}],class:["modalTitle",styles$2.selectMusicModal],preset:"card",title:"选择资源"},{default:()=>[createVNode(SelectResources,{type:n.tabType},null)]}),createVNode(NModal,{style:e.from==="class"?c.styleDrag.value:{},show:n.selectMusicStatus,"onUpdate:show":[d=>n.selectMusicStatus=d,d=>{d||r.setSelectMusicStatus(d)}],class:["modalTitle",styles$2.selectMusicModal,f],preset:"card",title:"选择曲目"},{default:()=>[createVNode(SelectMusic$1,{from:e.from,onAdd:d=>o(d)},null),e.from==="class"&&createVNode(Dragbom,null,null)]}),createVNode(NModal,{style:e.from==="class"?m.styleDrag.value:{},show:n.editStatus,"onUpdate:show":d=>n.editStatus=d,class:["modalTitle background",styles$2.trainEditModal,u],preset:"card",title:"作业设置"},{default:()=>[createVNode(TrainUpdate,{item:n.editItem,onClose:()=>n.editStatus=!1,onConfirm:d=>{const p=typeFormat(d.trainingType,d.trainingConfigJson),g={...d,id:null,musicName:n.editItem.title,typeList:p};eventGlobal.emit("onTrainAddItem",g)}},null),e.from==="class"&&createVNode(Dragbom,null,null)]})])}}),AttendClass=defineComponent({name:"CoursewarePlay",props:{type:{type:String,default:""},courseId:{type:String,default:""},instrumentId:{type:[String,Number],default:""},lessonCourseId:{type:[String,Number],default:""},detailId:{type:String,default:""},classGroupId:{type:String,default:""},classId:{type:String,defaault:""},preStudentNum:{type:[String,Number],default:""}},emits:["close"],setup(e,{emit:t}){const r=useMessage(),a=useRoute(),n=useRouter(),s=useUserStore(),i=reactive({width:"100vw"});onUnmounted(()=>{});const o=reactive({type:"class",courseId:"",instrumentId:"",lessonCourseId:"",lessonCoursewareDetailId:"",lessonCoursewareSubjectList:[],detailId:"",classGroupId:"",classId:"",preStudentNum:"",knowledgePointList:[],itemList:[],videoRefs:{},audioRefs:{},modelAttendStatus:!1,modalAttendMessage:"本节课未设置课后作业,是否继续?",modelTrainStatus:!1,selectClassStatus:!1,homeworkStatus:!0,removeVisiable:!1,nextEndShow:!1,removeTitle:"",removeContent:"",removeCourseStatus:!1,teacherChapterName:"",lessonPreTrainingId:null,selectResourceStatus:!1,videoState:"init",videoItemRef:null,animationState:"start"}),l=reactive({isAutoPlay:!1,nowTime:0,model:!0,isAnimation:!0,timer:null,item:null});ref(!1);const c=async()=>{try{const M=await api_teacherChapterLessonCoursewareDetail(o.courseId);o.teacherChapterName=M.data.name||"",o.lessonPreTrainingId=M.data.lessonPreTrainingId;const L=M.data.chapterKnowledgeList||[],W=[],K=[];L.forEach((ee,ie)=>{if(!Array.isArray(ee.chapterKnowledgeMaterialList))return;const te=[];ee.chapterKnowledgeMaterialList.forEach(X=>{X.removeFlag||te.push({id:X.id,materialId:X.bizId,coverImg:X.bizInfo.coverImg,type:X.type,title:X.bizInfo.name,dataJson:X.dataJson,isCollect:!!X.favoriteFlag,isSelected:X.source==="PLATFORM",content:X.bizInfo.content,parentIndex:ie})}),W.push({title:ee.name,list:te}),K.push(...te)}),o.knowledgePointList=W,o.itemList=K==null?void 0:K.map(ee=>({...ee,iframeRef:null,videoEle:null,audioEle:null,autoPlay:M.data.autoPlay||!1,isprepare:!1,isRender:!1})),setTimeout(()=>{o.animationState="end"},500)}catch(M){console.log(M)}},f=ref(!1),m=ref(!1),u=ref(!1),d=M=>{var L,W,K,ee,ie,te,X,Q;if(((L=M.data)==null?void 0:L.api)==="headerTogge"&&(l.model=M.data.show||M.data.playState!="play"),((W=M.data)==null?void 0:W.api)==="onAttendToggleMenu"&&(l.model=!l.model),((K=M.data)==null?void 0:K.api)==="api_fingerPreView"&&(clearInterval(l.timer),l.model=!M.data.state),((ee=M.data)==null?void 0:ee.api)==="documentBodyKeyup"&&(((ie=M.data)==null?void 0:ie.code)==="ArrowUp"&&(I(),$("up")),((te=M.data)==null?void 0:te.code)==="ArrowDown"&&(I(),$("down"))),((X=M.data)==null?void 0:X.api)==="callBack"&&(T(),F.callShow=!1),((Q=M.data)==null?void 0:Q.api)==="onLogin"){const ae=document;ae.exitFullscreen?ae.exitFullscreen():ae.mozCancelFullScreen?ae.mozCancelFullScreen():ae.webkitExitFullscreen&&ae.webkitExitFullscreen(),s.logout(),n.replace("/login")}};onMounted(async()=>{const M=a.query;if(o.type=e.type||M.type,o.courseId=e.courseId||M.courseId,o.instrumentId=e.instrumentId||M.instrumentId,o.detailId=e.detailId||M.detailId,o.lessonCourseId=e.lessonCourseId||M.lessonCourseId,o.classGroupId=e.classGroupId||M.classGroupId,o.classId=e.classId||M.classId,o.preStudentNum=e.preStudentNum||M.preStudentNum,window.addEventListener("message",d),o.classId){const L=await api_cousseScheduleDetail(o.classId);o.courseId=L.data.useChapterLessonCoursewareId}if(c(),E(),o.type==="preview"){const L=[2,10];let W=q.length-1;for(;W>=0;)L.includes(q[W].id)&&(console.log(W),q.splice(W,1)),W--}fe()});const p=reactive({open:!1,activeIndex:0,courseActiveIndex:0,toolOpen:!1,chapterOpen:!1,chapterDetails:[],courseId:null,chapterLoading:!1});watch(()=>[p.open,p.chapterOpen],M=>{setTimeout(()=>{const L=document.querySelectorAll(".n-drawer-container");M[0]||M[1]?L==null||L.forEach(W=>{W.classList.remove("n-drawer-container-relative")}):L==null||L.forEach(W=>{W.classList.add("n-drawer-container-relative")})},200)});const g=(M,L,W=[])=>{for(const K of L){if(K.knowledgeList&&K.knowledgeList.length>0){const ee=g(M,K.knowledgeList,[...W,K.id]);if(ee.includes(M))return ee}if(K.id===M)return[...W,M]}return W},E=async()=>{try{const M=await lessonCoursewareDetail({id:o.lessonCourseId,instrumentId:o.instrumentId});p.chapterDetails=M.data.lessonList||[];const L=g(o.detailId,p.chapterDetails);o.lessonCoursewareDetailId=L[0],console.log(M.data,"data"),o.lessonCoursewareSubjectList=M.data.instrumentList||[]}catch(M){}},y=async()=>{try{if(!o.classId)return;await courseScheduleUpdate({lessonCoursewareKnowledgeDetailId:o.detailId,id:o.classId})}catch(M){}},S=computed(()=>{let M="";return p.chapterDetails.forEach(L=>{var W;L.id===o.lessonCoursewareDetailId&&((W=L.knowledgeList)==null||W.forEach(K=>{K.id===o.detailId&&(M=K.name)}))}),M}),b=(M=!0)=>{var L,W,K,ee,ie,te,X,Q,ae,le;for(let xe=0;xe<o.itemList.length;xe++){const Se=o.itemList[xe];if(Se.type==="VIDEO"&&Se.videoEle)try{M&&((L=Se.videoEle)==null||L.currentTime(0)),(W=Se.videoEle)==null||W.pause()}catch(Ne){}Se.type==="SONG"&&Se.audioEle&&((K=Se.audioEle)==null||K.stop()),Se.type==="MUSIC"&&((ie=(ee=Se.iframeRef)==null?void 0:ee.contentWindow)==null||ie.postMessage({api:"setPlayState"},"*")),(Se.type==="INSTRUMENT"||Se.type==="MUSICIAN"||Se.type==="MUSIC_WIKI")&&((te=Se.iframeRef)==null||te.handleChangeAudio("pause")),Se.type==="RHYTHM"&&((Q=(X=Se.iframeRef)==null?void 0:X.contentWindow)==null||Q.postMessage({api:"setPlayState",data:!1},"*")),Se.type==="LISTEN"&&((le=(ae=Se.iframeRef)==null?void 0:ae.contentWindow)==null||le.postMessage({api:"setPlayState"},"*"))}},A=M=>{const L=o.itemList.findIndex(W=>W.id==M);L>-1&&_(L)},C=()=>{clearTimeout(l.timer),r.destroyAll(),l.timer=setTimeout(()=>{l.model=!1,Object.values(o.videoRefs).map(M=>M==null?void 0:M.toggleHideControl(!1)),Object.values(o.audioRefs).map(M=>M==null?void 0:M.toggleHideControl(!1))},4e3)},P=()=>{clearTimeout(l.timer),r.destroyAll(),l.model=!1,Object.values(o.videoRefs).map(M=>M==null?void 0:M.toggleHideControl(!1)),Object.values(o.audioRefs).map(M=>M==null?void 0:M.toggleHideControl(!1))},N=(M=!0)=>{l.model=M,Object.values(o.videoRefs).map(L=>L==null?void 0:L.toggleHideControl(M)),Object.values(o.audioRefs).map(L=>L==null?void 0:L.toggleHideControl(M))},D=M=>{if(M&&M.type==="VIDEO"){const L=M.videoEle;L&&(L.paused?(r.destroyAll(),L.play()):(r.warning("已暂停"),L.pause()))}},V=ref(3),B=[{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)"},next:{transform:"translate3d(100%, 0, -800px) rotateY(120deg)"}},{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"}}],O=ref(),_=M=>{p.activeIndex!=M&&(o.animationState="start",o.videoState="init",b(),clearTimeout(O.value),l.model=!0,G(p.activeIndex,M),p.activeIndex=M,nextTick(()=>{he()}),O.value=setTimeout(()=>{const L=o.itemList[M];L&&(L.type=="MUSIC"&&(l.model=!0),L.type==="SONG"&&(clearTimeout(l.timer),r.destroyAll()),L.type==="VIDEO"&&(clearTimeout(l.timer),r.destroyAll(),nextTick(()=>{var W;L.error&&((W=L.videoEle)==null||W.src(L.content),L.error=!1),o.animationState="end"})),L.type)},l.isAnimation?800:0))},G=(M,L)=>{const W=o.itemList[M],K=o.itemList[L];if(K){if(K.knowledgePointId!=W.knowledgePointId){l.isAnimation=!0;return}const ee=W.videoEle,ie=K.videoEle;ee&&ee.duration<8&&M<L||ie&&ie.duration<8&&M>L?l.isAnimation=!1:l.isAnimation=!0}else l.isAnimation=!((W==null?void 0:W.adviseStudyTimeSecond)<8)},$=async M=>{var L,W;if(M==="up"){if(p.activeIndex>0){_(p.activeIndex-1);return}let K=p.chapterDetails.findIndex(ae=>ae.id==o.lessonCoursewareDetailId);const ee=((L=p.chapterDetails[K])==null?void 0:L.knowledgeList)||[];let ie=ee.findIndex(ae=>ae.id==o.detailId),te=!1,X="";for(;ie>=0&&(ie--,ie>=0&&ee[ie].coursewareNum>0&&(te=!0,ee[ie].lessonCoursewareDetailId,X=ee[ie].id),!te););if(te){p.courseId=X,o.selectClassStatus=!0;return}let Q=!1;for(;K>=0;){K--;const ae=((W=p.chapterDetails[K])==null?void 0:W.knowledgeList)||[];let le=ae.length;for(;le>0&&(ae[le-1].coursewareNum>0&&(Q=!0,ae[le-1].lessonCoursewareDetailId,X=ae[le-1].id),le--,!Q););if(Q)break}if(Q){p.courseId=X,o.selectClassStatus=!0;return}}else{if(p.activeIndex<o.itemList.length-1){_(p.activeIndex+1);return}if(!Y.value)return;o.nextEndShow=!0}};function H(){var te,X;let M=p.chapterDetails.findIndex(Q=>Q.id==o.lessonCoursewareDetailId);const L=((te=p.chapterDetails[M])==null?void 0:te.knowledgeList)||[];let W=L.findIndex(Q=>Q.id==o.detailId),K=!1,ee="";for(;W<L.length-1&&(W++,W>=0&&L[W].coursewareNum>0&&(K=!0,L[W].lessonCoursewareDetailId,ee=L[W].id),!K););if(K){p.courseId=ee,o.selectClassStatus=!0;return}let ie=!1;for(;M<=p.chapterDetails.length-1;){M++;const Q=((X=p.chapterDetails[M])==null?void 0:X.knowledgeList)||[];let ae=0;for(;ae<=Q.length-1&&(Q[ae].coursewareNum>0&&(ie=!0,Q[ae].lessonCoursewareDetailId,ee=Q[ae].id),ae++,!ie););if(ie)break}if(ie){p.courseId=ee,o.selectClassStatus=!0;return}}document.body.addEventListener("keyup",M=>{M.code==="ArrowUp"?(I(),$("up")):M.code==="ArrowDown"?(I(),$("down")):M.code}),watch(()=>p.activeIndex,()=>{const M=o.itemList[p.activeIndex];p.courseActiveIndex=M.parentIndex});const I=(M=!0)=>{clearTimeout(l.timer),l.model=M,Object.values(o.videoRefs).map(L=>L==null?void 0:L.toggleHideControl(M)),Object.values(o.audioRefs).map(L=>L==null?void 0:L.toggleHideControl(M))},F=reactive({type:"",penShow:!1,whiteboardShow:!1,callShow:!1,callStudentList:[]}),x=M=>{switch(b(!1),P(),p.toolOpen=!1,F.type=M.type,M.type){case"pen":F.penShow=!0;break;case"whiteboard":F.whiteboardShow=!0;break;case"call":F.callShow=!0;break}},T=()=>{F.type="init",N(),C()},R=M=>{M=="setTimeIcon"&&(u.value=!0),M=="beatIcon"&&(f.value=!0),M=="toneIcon"&&(m.value=!0)},k=computed(()=>{var ie,te;if(p.activeIndex>0)return!0;let M=p.chapterDetails.findIndex(X=>X.id==o.lessonCoursewareDetailId);const L=((ie=p.chapterDetails[M])==null?void 0:ie.knowledgeList)||[];let W=L.findIndex(X=>X.id==o.detailId);if(M<=0&&W<=0)return!1;let K=!1;for(;W>=0;)W--,W>=0&&L[W].coursewareNum>0&&(K=!0);if(K)return!0;if(M<=0)return!1;let ee=!1;for(;M>=0;){M--;const X=((te=p.chapterDetails[M])==null?void 0:te.knowledgeList)||[];let Q=X.length;for(;Q>0;)X[Q-1].coursewareNum>0&&(ee=!0),Q--;if(ee)return!0}return!1}),Y=computed(()=>{var ie,te;if(p.activeIndex<o.itemList.length-1)return!0;let M=p.chapterDetails.findIndex(X=>X.id==o.lessonCoursewareDetailId);const L=((ie=p.chapterDetails[M])==null?void 0:ie.knowledgeList)||[];let W=L.findIndex(X=>X.id==o.detailId);if(M>=p.chapterDetails.length-1&&W>=L.length-1)return!1;let K=!1;for(;W<L.length-1;)W++,W>=0&&L[W].coursewareNum>0&&(K=!0);if(K)return!0;if(M>=p.chapterDetails.length-1)return!1;let ee=!1;for(;M<p.chapterDetails.length-1;){M++;const X=((te=p.chapterDetails[M])==null?void 0:te.knowledgeList)||[];let Q=0;for(;Q<=X.length-1;)X[Q].coursewareNum>0&&(ee=!0),Q++;if(ee)return!0}return!1}),Z=computed(()=>{const M=o.itemList[p.activeIndex];return M&&M.type&&M.type.toLocaleUpperCase()==="VIDEO"?M:{}}),q=reactive([{name:"上一个",icon:bottomIconPre,id:11},{name:"下一个",icon:bottomIconNext,id:12},{name:"切换章节",icon:bottomIconSwitch,id:13},{name:"资源列表",icon:bottomIconResource,id:14},{name:"曲目资源",icon:rightIconMusic,id:9},{name:"点名",icon:rightIconCall,id:10},{name:"布置作业",icon:rightIconArrange,id:2},{name:"工具箱",icon:rightIconTool,id:15},{name:"结束课程",name2:"结束预览",icon:rightIconEnd,id:1},{name:"收起",icon:leftIconPackUp,id:8}]),se=[{name:"节拍器",icon:rightIconMetronome,id:5},{name:"计时器",icon:rightIconTimer,id:7},{name:"批注",icon:rightIconPostil,id:3},{name:"白板",icon:rightIconWhiteboard,id:4}],re=ref(!0),ne=ref("left");watch(ne,()=>{var M,L;for(let W=0;W<o.itemList.length;W++){const K=o.itemList[W];["RHYTHM","MUSIC"].includes(K.type)&&((L=(M=K.iframeRef)==null?void 0:M.contentWindow)==null||L.postMessage({api:"imagePos",data:ne.value},"*"))}});const ce=async M=>{switch([8,11,12,13,14].includes(M)||b(!1),M){case 1:if(o.type==="preview")o.removeVisiable=!0,o.removeTitle="结束预览",o.removeContent="请确认是否结束预览?";else{const W=await getStudentAfterWork({courseScheduleId:o.classId,page:1,rows:99});W.data.rows&&W.data.rows.length?(o.removeContent="请确认是否结束课程?",o.removeCourseStatus=!1):(o.removeContent="本次课堂尚未布置作业,是否结束课程?",o.removeCourseStatus=!0),o.removeVisiable=!0,o.removeTitle="结束课程"}break;case 2:if(o.preStudentNum<=0)return;const L=await getStudentAfterWork({courseScheduleId:o.classId,page:1,rows:99});L.data.rows&&L.data.rows.length?(o.modalAttendMessage="本次课程已布置作业,是否继续?",o.modelAttendStatus=!0):(o.modelTrainStatus=!0,nextTick(()=>{ue()}),o.modelAttendStatus=!1);break;case 3:x({type:"pen",icon:iconNote,name:"批注"});break;case 4:x({type:"whiteboard",icon:iconWhite,name:"白板"});break;case 5:R("beatIcon");break;case 6:R("toneIcon");break;case 7:R("setTimeIcon");break;case 8:re.value=!1;break;case 9:b(!1),o.selectResourceStatus=!0;break;case 10:if(F.callStudentList.length>0){x({type:"call",icon:iconWhite,name:"点名"});return}break;case 11:if(!k.value)return;$("up");break;case 12:if(!Y.value)return;$("down");break;case 13:p.chapterOpen=!0;break;case 14:p.open=!0,nextTick(()=>{he()});break}},fe=async()=>{if(o.classId)try{const L=(await getStudentList$1({classGroupId:o.classGroupId,page:1,rows:999})).data||{};if(Array.isArray(L.rows)&&L.rows.length>0){const W=[];L.rows.forEach(K=>{W.push({name:K.nickname,img:K.avatar})}),F.callStudentList=[...W]}}catch(M){}},he=()=>{const M=document.querySelectorAll(".drawerCardItemRef");p.activeIndex>=0&&M[p.activeIndex]&&M[p.activeIndex].scrollIntoView()},ue=()=>{const M=document.querySelector("#model-homework-height");M&&useResizeObserver(M,L=>{const W=L[0],{height:K}=W.contentRect;M.style.setProperty("--window-page-lesson-height",K+"px")})};getGuidanceShow();const de="selCourBoxClass_drag",oe=useDrag(["".concat(de,">.n-card-header"),"".concat(de," .bom_drag")],de,toRef(o,"selectClassStatus"),s.info.id),J="selResourBoxClass_drag",Ce=useDrag(["".concat(J," .select-resource>.n-tabs>.n-tabs-nav--top.n-tabs-nav"),"".concat(J," .bom_drag")],J,toRef(o,"selectResourceStatus"),s.info.id),ve="removeResourBoxClass_drag",ge=useDrag(["".concat(ve,">.n-card-header"),"".concat(ve," .bom_drag")],ve,toRef(o,"removeVisiable"),s.info.id),be="nextEndBoxClass_drag",we=useDrag(["".concat(be,">.n-card-header"),"".concat(be," .bom_drag")],be,toRef(o,"nextEndShow"),s.info.id),pe="chapterConBoxClass_drag",me=useDrag(["".concat(pe,">.n-card-header"),"".concat(pe," .bom_drag")],pe,toRef(p,"chapterOpen"),s.info.id),Ee="resourcesConBoxClass_drag",Pe=useDrag(["".concat(Ee,">.n-card-header"),"".concat(Ee," .bom_drag")],Ee,toRef(p,"open"),s.info.id),ye="timerMeterConBoxClass_drag",Te=useDrag(["".concat(ye," .timeBomCon .bom_drag"),"".concat(ye," .topDragDom")],ye,u,s.info.id),Ae="metronomeConBoxClass_drag",Ie=useDrag(["".concat(Ae," .topDragDom"),"".concat(Ae," .bom_drag")],Ae,f,s.info.id),Me="modelTrainStatusConBoxClass_drag",U=useDrag(["".concat(Me,">.n-card-header"),"".concat(Me," .bom_drag")],Me,toRef(o,"modelTrainStatus"),s.info.id),j="modelTrainHomeWordConBoxClassBoxClass_drag",z=useDrag(["".concat(j,">.n-card-header"),"".concat(j," .bom_drag")],j,toRef(o,"modelAttendStatus"),s.info.id);return()=>createVNode("div",{id:"playContent",class:[styles$k.playContent,"wrap"]},[createVNode("div",{onClick:()=>{clearTimeout(l.timer),l.model=!l.model,Object.values(o.videoRefs).map(M=>M==null?void 0:M.toggleHideControl(l.model)),Object.values(o.audioRefs).map(M=>M==null?void 0:M.toggleHideControl(l.model))}},[createVNode("div",{class:styles$k.coursewarePlay,style:{width:i.width}},[p.chapterLoading?"":createVNode("div",{class:styles$k.wraps},[createVNode("div",{style:Z.value.type&&o.animationState==="end"&&o.videoState==="play"?{zIndex:15,opacity:1}:{opacity:0,zIndex:-1},class:styles$k.itemDiv},[createVNode(VideoPlay,{imagePos:ne.value,ref:M=>o.videoItemRef=M,item:Z.value,showModel:l.model,onClose:C,onLoadedmetadata:M=>{o.itemList[p.activeIndex]&&(o.itemList[p.activeIndex].videoEle=M)},onCanplay:()=>{o.videoState="play"},onPause:()=>{clearTimeout(l.timer),l.model=!0},onEnded:()=>{}},null)]),o.itemList.map((M,L)=>{const W=Math.abs(p.activeIndex-L)<2;return Math.abs(p.activeIndex-L)>4,W?createVNode("div",{key:"index"+L,class:[styles$k.itemDiv,p.activeIndex===L&&styles$k.itemActive,l.isAnimation&&styles$k.acitveAnimation,Math.abs(p.activeIndex-L)<2?styles$k.show:styles$k.hide],style:L<p.activeIndex?B[V.value].prev:L>p.activeIndex?B[V.value].next:{},onClick:K=>{if(K.stopPropagation(),clearTimeout(l.timer),Date.now()-l.nowTime<300){D(M);return}l.nowTime=Date.now(),l.timer=setTimeout(()=>{l.model=!l.model,Object.values(o.videoRefs).map(ee=>ee==null?void 0:ee.toggleHideControl(l.model)),Object.values(o.audioRefs).map(ee=>ee==null?void 0:ee.toggleHideControl(l.model)),l.model&&C()},300)}},[M.type==="VIDEO"?createVNode(Fragment,null,[createVNode("img",{src:M.coverImg,onLoad:()=>{M.isprepare=!0}},null),createVNode(Transition,{name:"van-fade"},{default:()=>[createVNode("div",{class:styles$k.loadWrap},[createVNode(Vue3Lottie,{animationData:playLoadData},null)])]})]):M.type==="IMG"?createVNode("img",{src:M.content},null):M.type==="SONG"?createVNode(AudioPay,{imagePos:ne.value,item:M,activeStatus:p.activeIndex===L,ref:K=>o.audioRefs[L]=K,onLoadedmetadata:K=>{M.audioEle=K,M.isprepare=!0},onTogglePlay:K=>{K||p.open?clearTimeout(l.timer):C()},onEnded:()=>{},onReset:()=>{var K;(K=M.audioEle)!=null&&K.paused||C()}},null):M.type==="PPT"?createVNode("iframe",{src:"https://view.officeapps.live.com/op/embed.aspx?src=".concat(encodeURIComponent(M.content)),width:"100%",height:"100%",frameborder:"1"},null):M.type==="RHYTHM"?createVNode(RhythmModal,{item:M,activeStatus:p.activeIndex===L,imagePos:ne.value,onSetIframe:K=>{M.iframeRef=K}},null):M.type==="LISTEN"?createVNode(ListenModal,{item:M,"data-vid":M.id,activeStatus:p.activeIndex===L,onSetIframe:K=>{M.iframeRef=K}},null):M.type==="INSTRUMENT"||M.type==="MUSICIAN"?createVNode(InstruemntDetail,{type:"preview",id:M.content,contentType:M.type,activeStatus:p.activeIndex===L,ref:K=>M.iframeRef=K},null):M.type==="MUSIC_WIKI"?createVNode(MusicDetail,{type:"preview",id:M.content,contentType:M.type,activeStatus:p.activeIndex===L,ref:K=>M.iframeRef=K},null):M.type==="THEORY"?createVNode(TheotyDetail,{type:"preview",id:M.content,activeStatus:p.activeIndex===L,ref:K=>M.iframeRef=K},null):createVNode(MusicScore,{activeModel:l.model,activeStatus:p.activeIndex===L,"data-vid":M.id,music:M,imagePos:ne.value,onSetIframe:K=>{M.iframeRef=K}},null)]):null})])])]),createVNode("div",{class:[styles$k.rightColumn,re.value&&ne.value==="right"?"":styles$k.rightColumnHide]},[q.map(M=>createVNode("div",{class:styles$k.columnItemBox},[createVNode("div",{class:[styles$k.columnItem,M.id===2&&o.preStudentNum<=0||M.id===10&&F.callStudentList.length<=0||M.id===11&&!k.value||M.id===12&&!Y.value?styles$k.itemDisabled:""],onClick:()=>ce(M.id)},[createVNode(NTooltip,{showArrow:!1,placement:"left",class:[M.id===15?"columnItemTooltip rightColumnItemTooltip":""]},{trigger:()=>createVNode("img",{src:M.id===8?rightIconPackUp:M.icon},null),default:()=>M.id===15?createVNode("div",{class:"tools"},[se.map(L=>createVNode("div",{onClick:()=>ce(L.id)},[createVNode("img",{src:L.icon},null),createVNode("div",{class:"tit"},[L.name])]))]):M.id===1&&o.type==="preview"?M.name2:M.name})])]))]),createVNode(NTooltip,{showArrow:!1,placement:"left"},{trigger:()=>createVNode("div",{class:[styles$k.rightHideIcon,re.value&&ne.value==="right"?"":styles$k.rightIconShow],onClick:()=>{ne.value="right",re.value=!0}},null),default:()=>"按钮镜像"}),createVNode("div",{class:[styles$k.leftColumn,re.value&&ne.value==="left"?"":styles$k.leftColumnHide]},[q.map(M=>createVNode("div",{class:styles$k.columnItemBox},[createVNode("div",{class:[styles$k.columnItem,M.id===2&&o.preStudentNum<=0||M.id===10&&F.callStudentList.length<=0||M.id===11&&!k.value||M.id===12&&!Y.value?styles$k.itemDisabled:""],onClick:()=>ce(M.id)},[createVNode(NTooltip,{showArrow:!1,placement:"right",class:[M.id===15?"columnItemTooltip":""]},{trigger:()=>createVNode("img",{src:M.icon},null),default:()=>M.id===15?createVNode("div",{class:"tools"},[se.map(L=>createVNode("div",{onClick:()=>ce(L.id)},[createVNode("img",{src:L.icon},null),createVNode("div",{class:"tit"},[L.name])]))]):M.id===1&&o.type==="preview"?M.name2:M.name})])]))]),createVNode(NTooltip,{showArrow:!1,placement:"right"},{trigger:()=>createVNode("div",{class:[styles$k.leftHideIcon,re.value&&ne.value==="left"?"":styles$k.leftIconShow],onClick:()=>{ne.value="left",re.value=!0}},null),default:()=>"按钮镜像"}),createVNode(NModal,{transformOrigin:"center",show:p.open,"onUpdate:show":M=>p.open=M,preset:"card",class:["modalTitle background",styles$k.drawerContainer,Ee],style:Pe.styleDrag.value,title:S.value||"资源列表"},{default:()=>[createVNode(SourceList,{teacherChapterName:o.teacherChapterName,knowledgePointList:o.knowledgePointList,courseActiveIndex:p.courseActiveIndex,activeItem:o.itemList[p.activeIndex],onConfirm:M=>{p.open=!1,A(M.id)}},null),createVNode(Dragbom,null,null)]}),createVNode(NModal,{transformOrigin:"center",show:p.chapterOpen,"onUpdate:show":M=>p.chapterOpen=M,preset:"card",class:["modalTitle background",styles$k.drawerContainer,pe],style:me.styleDrag.value,title:"切换章节"},{default:()=>[createVNode(Chapter,{treeList:p.chapterDetails,itemActive:o.detailId,onHandleSelect:async M=>{p.courseId=M.itemActive,o.selectClassStatus=!0}},null),createVNode(Dragbom,null,null)]}),F.penShow&&createVNode(Pen,{isDrag:!0,show:F.type==="pen",type:F.type,close:()=>T()},null),F.whiteboardShow&&createVNode(Pen,{isDrag:!0,show:F.type==="whiteboard",type:F.type,close:()=>T()},null),F.callShow&&createVNode(Pen,{isDrag:!0,imagePos:ne.value,callStudents:F.callStudentList,show:F.type==="call",type:F.type,close:()=>{T(),F.callShow=!1}},null),createVNode(NModal,{transformOrigin:"center",show:o.selectClassStatus,"onUpdate:show":M=>o.selectClassStatus=M,preset:"card",class:["modalTitle background",styles$k.selectClassModal,de],style:oe.styleDrag.value,title:"选择课件"},{default:()=>[createVNode(SelectClass,{classId:o.classId,courseId:p.courseId,instrumentId:o.instrumentId,lessonCoursewareSubjectList:o.lessonCoursewareSubjectList,onConfirm:async M=>{p.chapterLoading=!0;try{o.selectClassStatus=!1,o.detailId=M.itemActive,o.courseId=M.chapterId;const L=g(M.itemActive,p.chapterDetails);o.lessonCoursewareDetailId=L[0],o.type!=="preview"&&await y(),await c(),p.activeIndex=0,p.chapterOpen=!1}catch(L){}p.chapterLoading=!1}},null),createVNode(Dragbom,null,null)]}),createVNode(NModal,{transformOrigin:"center",show:o.modelAttendStatus,"onUpdate:show":M=>o.modelAttendStatus=M,preset:"card",title:"课后作业",style:z.styleDrag.value,class:["modalTitle",styles$k.removeVisiable,j]},{default:()=>[createVNode("div",{class:styles$k.studentRemove},[createVNode("p",null,[o.modalAttendMessage]),createVNode(NSpace,{class:styles$k.btnGroupModal,justify:"center"},{default:()=>[createVNode(NButton,{type:"default",round:!0,onClick:()=>{o.modelTrainStatus=!0,nextTick(()=>{ue()}),o.modelAttendStatus=!1}},{default:()=>[createTextVNode("布置作业")]}),createVNode(NButton,{type:"primary",round:!0,onClick:()=>{b(),o.modelAttendStatus=!1}},{default:()=>[createTextVNode("取消")]})]})]),createVNode(Dragbom,null,null)]}),createVNode(NModal,{show:o.modelTrainStatus,"onUpdate:show":M=>o.modelTrainStatus=M,preset:"card",class:["modalTitle background",styles$k.workVisiable,Me],style:U.styleDrag.value,title:"布置作业"},{default:()=>[createVNode("div",{id:"model-homework-height",class:styles$k.workContainer},[createVNode("div",{class:styles$k.workTrain},[createVNode(Train,{from:"class",cardType:"homeworkRecord",lessonPreTraining:{title:o.lessonPreTrainingId?"":o.teacherChapterName+"-课后作业",chapterId:o.courseId,id:o.lessonPreTrainingId},coursewareKnowledgeDetailId:o.detailId,classGroupId:o.classGroupId,courseScheduleId:o.classId,onChange:async M=>{o.modelTrainStatus=M.status,M.saveWork&&o.classId&&(o.lessonPreTrainingId=M.lessonPreTrainingId)}},null)]),createVNode("div",{class:styles$k.resourceMain},[createVNode(ResourceMain,{from:"class",cardType:"homerowk-record"},null)])]),createVNode(Dragbom,null,null)]}),createVNode(MetronomeBox,{modelValue:f.value,"onUpdate:modelValue":M=>f.value=M,dragClass:Ae,dragStyle:Ie.styleDrag.value},null),createVNode(NModal,{transformOrigin:"center",class:["background"],show:m.value,"onUpdate:show":M=>m.value=M},{default:()=>[createVNode("div",null,[createVNode(PlaceholderTone,{onClose:()=>{m.value=!1}},null)])]}),createVNode(NModal,{show:u.value,"onUpdate:show":M=>u.value=M,class:ye,style:Te.styleDrag.value},{default:()=>[createVNode("div",null,[createVNode("img",{class:styles$k.timerMeterClose,src:timerMeterClose,onClick:()=>{u.value=!1}},null),createVNode("div",{class:"topDragDom"},null),createVNode(TimerMeter,null,null)])]}),createVNode(NModal,{show:o.selectResourceStatus,"onUpdate:show":M=>o.selectResourceStatus=M,class:["modalTitle",styles$k.selectMusicModal,J],style:Ce.styleDrag.value,preset:"card",title:"选择资源"},{default:()=>[createVNode(SelectResources,{from:"class"},null),createVNode(Dragbom,null,null)]}),createVNode(NModal,{transformOrigin:"center",show:o.removeVisiable,"onUpdate:show":M=>o.removeVisiable=M,preset:"card",class:["modalTitle",styles$k.removeVisiable,ve],style:ge.styleDrag.value,title:o.removeTitle},{default:()=>[createVNode("div",{class:styles$k.studentRemove},[createVNode("p",null,[o.removeContent]),createVNode(NSpace,{class:styles$k.btnGroupModal,justify:"center"},{default:()=>[createVNode(NButton,{round:!0,onClick:()=>{o.removeCourseStatus?state.application?(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen(),t("close")):window.close():o.removeVisiable=!1}},{default:()=>[o.removeCourseStatus?"结束课程":"取消"]}),createVNode(NButton,{round:!0,type:"primary",onClick:()=>{o.removeCourseStatus?(o.modelTrainStatus=!0,o.removeVisiable=!1,nextTick(()=>{ue()})):state.application?(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen(),t("close")):(window.close(),a.query.source==="admin"&&(storage.remove(ACCESS_TOKEN_ADMIN),window.parent.postMessage({api:"iframe_exit"},"*")))}},{default:()=>[o.removeCourseStatus?"布置作业":"确定"]})]}),createVNode(Dragbom,null,null)])]}),createVNode(NModal,{style:we.styleDrag.value,"z-index":3e3,transformOrigin:"center",show:o.nextEndShow,"onUpdate:show":M=>o.nextEndShow=M,preset:"card",title:"提示",class:["modalTitle",styles$k.removeVisiable,be]},{default:()=>[createVNode("div",{class:styles$k.studentRemove},[createVNode("p",null,[createTextVNode("当前课件已结束,是否进入下一章节")]),createVNode(NSpace,{class:styles$k.btnGroupModal,justify:"center"},{default:()=>[createVNode(NButton,{type:"default",round:!0,onClick:()=>{o.nextEndShow=!1}},{default:()=>[createTextVNode("取消")]}),createVNode(NButton,{type:"primary",round:!0,onClick:()=>{o.nextEndShow=!1,H()}},{default:()=>[createTextVNode("确认")]})]}),createVNode(Dragbom,null,null)])]})])}}),index=Object.freeze(Object.defineProperty({__proto__:null,default:AttendClass},Symbol.toStringTag,{value:"Module"}));export{AttendClass as A,CoursewareType as C,Draggable as D,MetronomeBox as M,Pen as P,ResourceMain as R,TimerMeter as T,PlaceholderTone as a,Train as b,index as i};