index-3baf626d-1734950731618.js 679 KB

12345678910111213
  1. import{bf as BaseTransition,bg as BaseTransitionPropsValidators,bh as Comment,bi as EffectScope,F as Fragment,bj as KeepAlive,bk as ReactiveEffect,bl as Static,bm as Suspense,bn as Teleport,bo as Text,_ as Transition,ba as TransitionGroup,bp as VueElement,bq as assertNumber,br as callWithAsyncErrorHandling,bs as callWithErrorHandling,bt as camelize,bu as capitalize,a6 as cloneVNode,bv as compatUtils,U as computed,bw as createApp,bx as createBlock,by as createCommentVNode,aZ as createElementBlock,a_ 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,ad as h$1,bW as handleError,bX as hasInjectionContext,bY as hydrate,bZ as initCustomFormatter,b_ as initDirectivesForSSR,a8 as inject,b$ as isMemoSame,c0 as isProxy,c1 as isReactive,c2 as isReadonly,c3 as isRef,c4 as isRuntimeOnly,c5 as isShallow,D as isVNode,c6 as markRaw,c7 as mergeDefaults,c8 as mergeModels,y as mergeProps,S as nextTick,c9 as normalizeClass,ca as normalizeProps,au as normalizeStyle,cb as onActivated,cc as onBeforeMount,p as onBeforeUnmount,ac as onBeforeUpdate,cd as onDeactivated,ce as onErrorCaptured,q as onMounted,cf as onRenderTracked,cg as onRenderTriggered,ch as onScopeDispose,ci as onServerPrefetch,T as onUnmounted,an as onUpdated,aY as openBlock,cj as popScopeId,a7 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,Z 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,al as toRef,aR as toRefs,cJ as toValue,cK as transformVNodeArgs,cL as triggerRef,b1 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,a1 as vModelText,at as vShow,cX as version$1,cY as warn,A as watch,am as watchEffect,cZ as watchPostEffect,c_ as watchSyncEffect,c$ as withAsyncContext,d0 as withCtx,d1 as withDefaults,a0 as withDirectives,d2 as withKeys,d3 as withMemo,d4 as withModifiers,d5 as withScopeId,aP as NInputNumber,bb as commonjsGlobal,bc as getDefaultExportFromCjs,c as useUserStore,I as NSelect,l as NModal,x as NSpace,j as NButton,G as iframeDislableKeyboard,m as modalClickMask,b as useMessage,N as NForm,g as NFormItem,ay as NPopselect,C as eventGlobal,E as NSpin,t as NTabs,v as NTabPane,w as NImage,V as NTooltip,W as NPopover,d6 as getAugmentedNamespace,n as NCheckbox,aA as NCheckboxGroup,aN as NAvatar,Q as dayjs,h as NInput,aJ as NDatePicker,aL as router,H as request,aK as request$1,o as useDialog,a as useRoute,u as useRouter,d7 as api_cousseScheduleDetail,z as state,s as storage,d8 as ACCESS_TOKEN_ADMIN}from"./index-efb66432-1734950731618.js";import{v as vaildMusicScoreUrl,a as vaildPPTUrl}from"./urlUtils-7f82c85e-1734950731618.js";import{D as Dragbom,u as useDrag,T as TCPlayer,i as iconSpeed,a as iconplay,b as iconpause,t as tickMp3,c as iconReplay$2,V as Vudio,C as CardPreview,g as getGuidanceShow,L as ListenModal,I as InstruemntDetail,M as MusicDetail,d as TheotyDetail}from"./index-1071cbc8-1734950731618.js";import{N as NSlider}from"./Slider-f8e18c57-1734950731618.js";import{C as CardType,u as materialQueryPage,v as favorite,i as teacherChapterLessonCoursewareList,s as lessonTrainingAdd,H as lessonPreTrainingV2Detail,I as lessonPreTrainingDelete,J as lessonPreTrainingV2Save,c as lessonCoursewareDetail,d as api_teacherChapterLessonCoursewareDetail,K as courseScheduleUpdate}from"./api-5c1c8c26-1734950731618.js";import{d as dingPng$1,m as moveTop}from"./ding-8e9054d5-1734950731618.js";import{d as deepClone,u as useCatchStore}from"./catchData-e017bf09-1734950731618.js";import{N as NScrollbar}from"./Scrollbar-10f58cff-1734950731618.js";import{r as resourceTypeArray}from"./searchArray-e332cd94-1734950731618.js";import{T as TheSearch}from"./index-80ba3b64-1734950731618.js";import{a as audioPlayType,g as gradeToCN,e as evaluateDifficult}from"./contants-84ba384e-1734950731618.js";import{a as useThrottleFn,u as useDebounceFn}from"./index-5585b177-1734950731618.js";import{T as TheEmpty}from"./index-043f1db0-1734950731618.js";import{u as usePrepareStore,b as TheTipDialog,a as TrainUpdate,T as TrainType,S as SelectMusic$1}from"./index-5fd713bb-1734950731618.js";import{u as useResizeObserver}from"./index-4064e060-1734950731618.js";import{a as api_getCurrentGradeYear,g as getStudentList$1,b as getStudentAfterWork}from"./api-5d798bfa-1734950731618.js";import{c as classGroupList}from"./api-14703b96-1734950731618.js";import{d as defultHeade}from"./teacherIcon-b8e3946d-1734950731618.js";import{S as SearchInput}from"./index-7f4ffec0-1734950731618.js";import{h as getStudentList}from"./api-23af9df8-1734950731618.js";import{N as NCascader}from"./Cascader-500c8137-1734950731618.js";import{C as CCascader}from"./index-3315377a-1734950731618.js";import{T as TheMessageDialog}from"./index-ef2cd44a-1734950731618.js";const compile=()=>{},vue_runtime_esmBundler=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition,BaseTransitionPropsValidators,Comment,EffectScope,Fragment,KeepAlive,ReactiveEffect,Static,Suspense,Teleport,Text,Transition,TransitionGroup,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,get devtools(){return 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+240QHkEqjIvQs9LAyWlQyVihkLKBl1DAyGngZPYKMAbDyImBRyUMLdmP2bNmIaCrvVk44UJsds5Zw2wbfNH7Y8Pn8RnswWjIMp5IBAJlXPZ3uqSNdAAAAAElFTkSuQmCC",_imports_3$2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJwAAAB2CAMAAAAKuQqbAAAB11BMVEXw8PAAAADq6urPz8+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CLhXxkvOEBh+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-01be6336"),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(f),t.pause()});const r=ref("countdown");function a(g){r.value!==g&&(r.value=g,n())}function n(){y(),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 d(){if(r.value==="countdown"){if(i.value<=0)return;s.value="play",u()}else{if(i.value>=3599)return;s.value="play",m()}}function y(){clearInterval(f),s.value="pause",t.pause()}let f;function u(){t.pause(),t.currentTime=0,i.value<=3&&(t.currentTime=3-i.value,t.play()),f=setInterval(()=>{i.value--,i.value===3&&t.play(),i.value<=0&&(clearInterval(f),s.value="pause")},1e3)}function m(){f=setInterval(()=>{i.value++,i.value>=3599&&y()},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]=p=>c(600))},_hoisted_6$1),createBaseVNode("div",{onClick:E[1]||(E[1]=p=>c(60))},_hoisted_8$1)],2)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_9$1,[createVNode(unref(NInputNumber),{disabled:!0,placeholder:"",value:o.value,format:p=>p?p<10?"0".concat(p):p+"":"00","onUpdate:value":E[2]||(E[2]=p=>{p&&(p<0?p=0:p>59&&(p=59),i.value=p*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]=p=>c(-600))},_hoisted_11$1),createBaseVNode("div",{onClick:E[4]||(E[4]=p=>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]=p=>c(10))},_hoisted_17$1),createBaseVNode("div",{onClick:E[6]||(E[6]=p=>c(1))},_hoisted_19$1)],2)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_20,[createVNode(unref(NInputNumber),{disabled:!0,placeholder:"",value:l.value,format:p=>p?p<10?"0".concat(p):p+"":"00","onUpdate:value":E[7]||(E[7]=p=>{p&&(p<0?p=0:p>59&&(p=59),i.value=o.value*60+p)}),"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]=p=>c(-10))},_hoisted_22),createBaseVNode("div",{onClick:E[9]||(E[9]=p=>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]=p=>a("countdown"))}," 倒计时 ",2),createBaseVNode("div",{class:normalizeClass(["timeTypeName",{timeTypeActive:r.value==="countup"}]),onClick:E[11]||(E[11]=p=>a("countup"))}," 正计时 ",2)])]),createBaseVNode("div",_hoisted_28,[s.value==="play"?(openBlock(),createElementBlock("img",{key:0,onClick:y,src:_imports_3$2})):(openBlock(),createElementBlock("img",{key:1,onClick:d,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]=p=>c(300))},"5分"),createBaseVNode("div",{onClick:E[13]||(E[13]=p=>c(60))},"1分"),createBaseVNode("div",{onClick:E[14]||(E[14]=p=>c(30))},"30秒"),createBaseVNode("div",{onClick:E[15]||(E[15]=p=>c(5))},"5秒")],2)):(openBlock(),createElementBlock("img",_hoisted_30)),createVNode(unref(Dragbom))])]))}}),TimerMeter_vue_vue_type_style_index_0_scoped_01be6336_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-01be6336"]]),_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/JSSBLmGfb8rPtM1K92qqJw7GsKI3AZDSaBBqKIo+jYq1VrTOS3+pTfsCsgdgQVqjx2MSsj6u34Ahz2iPBSk8S5O2vIu3sQUY0LITD+MBnQfs7HWu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zav9AAAAAElFTkSuQmCC",_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/MbrfIbrPIcrPIcrfEbrfIbrfMcrvIcrfIaq/EcrfIcrPAcrPIcrfIcrPIbrvMVqvkUqvYbrPIcrPIcrPIbrPEcrPIcrfIcrfIbrf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lMAB+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:(d,y)=>{for(var f in y)r.o(y,f)&&!r.o(d,f)&&Object.defineProperty(d,f,{enumerable:!0,get:y[f]})},o:(d,y)=>Object.prototype.hasOwnProperty.call(d,y),r:d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})}},a={};function n(d){return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},n(d)}function s(d){return function(y){if(Array.isArray(y))return i(y)}(d)||function(y){if(typeof Symbol<"u"&&y[Symbol.iterator]!=null||y["@@iterator"]!=null)return Array.from(y)}(d)||function(y,f){if(y){if(typeof y=="string")return i(y,f);var u=Object.prototype.toString.call(y).slice(8,-1);if(u==="Object"&&y.constructor&&(u=y.constructor.name),u==="Map"||u==="Set")return Array.from(y);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return i(y,f)}}(d)||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(d,y){(y==null||y>d.length)&&(y=d.length);for(var f=0,u=new Array(y);f<y;f++)u[f]=d[f];return u}function o(d,y){if(!(d instanceof y))throw new TypeError("Cannot call a class as a function")}function l(d,y){for(var f=0;f<y.length;f++){var u=y[f];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(d,(m=u.key,g=void 0,g=function(E,p){if(n(E)!=="object"||E===null)return E;var S=E[Symbol.toPrimitive];if(S!==void 0){var A=S.call(E,p||"default");if(n(A)!=="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(p==="string"?String:Number)(E)}(m,"string"),n(g)==="symbol"?g:String(g)),u)}var m,g}r.r(a),r.d(a,{default:()=>c});var c=function(){function d(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=u.sampleRate;o(this,d),this._context=this._createContext(m),m||(m=this._context.sampleRate),this._sampleRate=m}var y,f;return y=d,f=[{key:"_createContext",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:44100;return window.AudioContext=window.AudioContext||window.webkitAudioContext||window.mozAudioContext,new AudioContext({sampleRate:u})}},{key:"context",get:function(){return this._context}},{key:"fetchAudio",value:async function(){for(var u=this,m=arguments.length,g=new Array(m),E=0;E<m;E++)g[E]=arguments[E];return await Promise.all(g.map(async function(p){var S;return S=p instanceof File||p instanceof Blob?await p.arrayBuffer():await fetch(p).then(function(A){return A.headers.has("Content-Type")&&!A.headers.get("Content-Type").includes("audio/")&&console.warn("Crunker: Attempted to fetch an audio file, but its MIME type is `".concat(A.headers.get("Content-Type").split(";")[0],"`. We'll try and continue anyway. (file: \"").concat(p,'")')),A.arrayBuffer()}),await u._context.decodeAudioData(S)}))}},{key:"mergeAudio",value:function(u){var m=this._context.createBuffer(this._maxNumberOfChannels(u),this._sampleRate*this._maxDuration(u),this._sampleRate);return u.forEach(function(g){for(var E=0;E<g.numberOfChannels;E++){for(var p=m.getChannelData(E),S=g.getChannelData(E),A=g.getChannelData(E).length-1;A>=0;A--)p[A]+=S[A];m.getChannelData(E).set(p)}}),m}},{key:"concatAudio",value:function(u){var m=this._context.createBuffer(this._maxNumberOfChannels(u),this._totalLength(u),this._sampleRate),g=0;return u.forEach(function(E){for(var p=0;p<E.numberOfChannels;p++)m.getChannelData(p).set(E.getChannelData(p),g);g+=E.length}),m}},{key:"padAudio",value:function(u){var m=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 u;if(m<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(u.numberOfChannels,Math.ceil(u.length+g*u.sampleRate),u.sampleRate),p=0;p<u.numberOfChannels;p++){var S=u.getChannelData(p);E.getChannelData(p).set(S.subarray(0,Math.ceil(m*u.sampleRate)+1),0),E.getChannelData(p).set(S.subarray(Math.ceil(m*u.sampleRate)+2,E.length+1),Math.ceil((m+g)*u.sampleRate))}return E}},{key:"sliceAudio",value:function(u,m,g){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(m>=g)throw new Error('Crunker: "start" time should be less than "end" time in sliceAudio method');for(var S=Math.round((g-m)*this._sampleRate),A=Math.round(m*this._sampleRate),b=this._context.createBuffer(u.numberOfChannels,S,this._sampleRate),C=0;C<u.numberOfChannels;C++)for(var x=u.getChannelData(C),D=b.getChannelData(C),I=0;I<S;I++)D[I]=x[A+I],I<E*this._sampleRate&&(D[I]*=I/(E*this._sampleRate)),I>S-p*this._sampleRate&&(D[I]*=(S-I)/(p*this._sampleRate));return b}},{key:"play",value:function(u){var m=this._context.createBufferSource();return m.buffer=u,m.connect(this._context.destination),m.start(),m}},{key:"export",value:function(u){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"audio/wav",g=this._interleave(u),E=this._writeHeaders(g,u.numberOfChannels,u.sampleRate),p=new Blob([E],{type:m});return{blob:p,url:this._renderURL(p),element:this._renderAudioElement(p)}}},{key:"download",value:function(u){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"crunker",g=document.createElement("a");return g.style.display="none",g.href=this._renderURL(u),g.download="".concat(m,".").concat(u.type.split("/")[1]),g.click(),g}},{key:"notSupported",value:function(u){return this._isSupported()?void 0:u()}},{key:"close",value:function(){return this._context.close(),this}},{key:"_maxDuration",value:function(u){return Math.max.apply(Math,s(u.map(function(m){return m.duration})))}},{key:"_maxNumberOfChannels",value:function(u){return Math.max.apply(Math,s(u.map(function(m){return m.numberOfChannels})))}},{key:"_totalLength",value:function(u){return u.map(function(m){return m.length}).reduce(function(m,g){return m+g},0)}},{key:"_isSupported",value:function(){return"AudioContext"in window||"webkitAudioContext"in window||"mozAudioContext"in window}},{key:"_writeHeaders",value:function(u,m,g){var E=2*m,p=2*u.length,S=36+p,A=new ArrayBuffer(8+S),b=new DataView(A);return this._writeString(b,0,"RIFF"),b.setUint32(4,S,!0),this._writeString(b,8,"WAVE"),this._writeString(b,12,"fmt "),b.setUint32(16,16,!0),b.setUint16(20,1,!0),b.setUint16(22,m,!0),b.setUint32(24,g,!0),b.setUint32(28,g*E,!0),b.setUint16(32,E,!0),b.setUint16(34,16,!0),this._writeString(b,36,"data"),b.setUint32(40,p,!0),this._floatTo16BitPCM(b,u,44)}},{key:"_floatTo16BitPCM",value:function(u,m,g){for(var E=0;E<m.length;E++,g+=2){var p=Math.max(-1,Math.min(1,m[E]));u.setInt16(g,p<0?32768*p:32767*p,!0)}return u}},{key:"_writeString",value:function(u,m,g){for(var E=0;E<g.length;E++)u.setUint8(m+E,g.charCodeAt(E))}},{key:"_interleave",value:function(u){if(u.numberOfChannels===1)return u.getChannelData(0);for(var m=[],g=0;g<u.numberOfChannels;g++)m.push(u.getChannelData(g));for(var E=m.reduce(function(b,C){return b+C.length},0),p=new Float32Array(E),S=0,A=0;S<E;)m.forEach(function(b){p[S++]=b[A]}),A++;return p}},{key:"_renderAudioElement",value:function(u){var m=document.createElement("audio");return m.controls=!0,m.src=this._renderURL(u),m}},{key:"_renderURL",value:function(u){return(window.URL||window.webkitURL).createObjectURL(u)}}],f&&l(y.prototype,f),Object.defineProperty(y,"prototype",{writable:!1}),d}();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(d.value,{volume:r.value/100,playbackRate:n.value/60})&&(a.value="play")}function c(){i(),a.value="pause"}const d=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,d,y){try{const f=await t.fetchAudio(...c),u=f[0],m=f[1];let g;return d.map((E,p)=>{const S=Number(E);let A=p===0&&S!==0?u:m;(1/y-A.duration*d.length<=0||(S||1)/y-A.duration<=0)&&(A=t.sliceAudio(A,0,A.duration/y,0,.12)),g?g=t.concatAudio([g,A]):g=A,g=t.padAudio(g,g.duration-.01,(S||1)/y-A.duration)}),g}catch(f){console.log(f);return}}const a=t.context;let n,s;async function i(c,d){const y=await r(e,c,d.playbackRate);return y?(n=a.createBufferSource(),n.buffer=y,s=a.createGain(),n.connect(s),s.connect(a.destination),s.gain.value=d.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-138efc00"),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=ref(),s=ref(),i=ref("1"),o=[{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"}],l=ref("1"),c=[{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:d,playState:y,speedNum:f,startPlay:u,pausePlay:m}=useMetronome(i,l);onMounted(()=>{const I=getCachePos(a.info.id);I&&(i.value=I.beatVal,l.value=I.beatSymbol,d.value=I.volumeNum,f.value=I.speedNum);const N=document.querySelector(".Metronome .MetronomeBox .optMid .n-input__input-el");N==null||N.setAttribute("maxlength","3"),x(g(f.value))}),onUnmounted(()=>{setCachePos(a.info.id,{beatVal:i.value,beatSymbol:l.value,volumeNum:d.value,speedNum:f.value})}),watch(y,()=>{r("playStateChange",y.value)}),watch(f,()=>{y.value==="play"&&m(),x(g(f.value))}),watch([i,l],()=>{y.value==="play"&&m()});function g(I){return(I-50)/150*100}function E(I){return Math.round(I*150/100+50)}const p=I=>{const N=n.value.getBoundingClientRect(),B=N.left+N.width/2,L=N.top+N.height/2,R=D(I)?I.touches[0]:I,j=(Math.atan2(R.clientY-L,R.clientX-B)*(180/Math.PI)+180)/360,H=Math.round(j*100)-25;f.value=E(H<0?100+H:H)};function S(){function I(){document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",I)}document.addEventListener("mousemove",b),document.addEventListener("mouseup",I)}function A(){function I(){document.removeEventListener("touchmove",C),document.removeEventListener("touchend",I)}document.addEventListener("touchmove",C),document.addEventListener("touchend",I)}function b(I){p(I)}function C(I){p(I)}function x(I){const B=["#51DBFF","#009FFF"],L=n.value,R=L.getContext("2d");R.clearRect(0,0,L.width,L.height);const _=L.width/2,j=L.height/2,H=Math.PI*2/100,M=-Math.PI/2+I*H,F=121+Math.cos(M)*121,P=121+Math.sin(M)*121;s.value.style.left=F-7+"Px",s.value.style.top=P-7+"Px";const T={x1:0,y1:0,x2:121*2,y2:0};T.y2=121*2;const O=R.createLinearGradient(T.x1,T.y1,T.x2,T.y2);B.map((k,z)=>{O.addColorStop(z,k)}),R.strokeStyle=O,R.lineWidth=10,R.save(),R.beginPath(),R.arc(_,j,121,-Math.PI/2,-Math.PI/2+I*H,!1),R.stroke(),R.closePath(),R.restore()}function D(I){return window.TouchEvent&&I instanceof window.TouchEvent}return t({startPlay:u,pausePlay:m,speedNum:f,beatSymbol:l}),(I,N)=>(openBlock(),createElementBlock("div",_hoisted_1$2,[createBaseVNode("div",_hoisted_2$1,[createBaseVNode("div",_hoisted_3$1,[createBaseVNode("img",{src:_imports_0,onClick:N[0]||(N[0]=()=>{r("windowMet")})}),createBaseVNode("img",{src:_imports_1,onClick:N[1]||(N[1]=()=>{r("closeMet")})})]),createBaseVNode("div",_hoisted_4$1,[createBaseVNode("div",{class:"dot",ref_key:"dotDom",ref:s,onMousedown:S,onTouchstart:A},null,544),_hoisted_5$1,createBaseVNode("canvas",{ref_key:"mycanvasDom",ref:n,class:"mycanvas",width:"252",height:"252",onClick:p},null,512),createBaseVNode("div",_hoisted_6,[createBaseVNode("img",{class:"optImg",src:_imports_2,onClick:N[2]||(N[2]=()=>{unref(f)<200&&f.value++})}),createBaseVNode("div",_hoisted_7,[_hoisted_8,createVNode(unref(NInputNumber),{disabled:!0,placeholder:"",value:unref(f),"show-button":!1,"onUpdate:value":N[3]||(N[3]=B=>{B&&(B<=50?f.value=50:B>=200?f.value=200:f.value=B)})},null,8,["value"])]),createBaseVNode("img",{class:"optImg",src:_imports_4,onClick:N[4]||(N[4]=()=>{unref(f)>50&&f.value--})})])]),createBaseVNode("div",_hoisted_9,[createVNode(unref(NSelect),{value:i.value,"onUpdate:value":N[5]||(N[5]=B=>i.value=B),options:o,"show-checkmark":!1,"show-arrow":!1,placement:"top","render-tag":({option:B})=>h$1("div",{class:"beatName"},[h$1("div",B.labelHide),h$1("div","拍")]),"render-label":B=>h$1("div",B.labelHide)},null,8,["value","render-tag","render-label"]),createVNode(unref(NSelect),{class:"beatSymbolSel",value:l.value,"onUpdate:value":N[6]||(N[6]=B=>l.value=B),options:c,"show-checkmark":!1,"show-arrow":!1,placement:"top","render-tag":({option:B})=>h$1("div",{class:"beatSymbolImg".concat(B.labelHide," beatSymbolImg")}),"render-label":B=>h$1("div",{class:"beatSymbolImg".concat(B.labelHide," beatSymbolImg")})},null,8,["value","render-tag","render-label"])]),createBaseVNode("div",_hoisted_10,[_hoisted_11,createVNode(unref(NSlider),{value:unref(d),"onUpdate:value":N[7]||(N[7]=B=>isRef(d)?d.value=B:null),step:1,tooltip:!1},{thumb:withCtx(()=>[_hoisted_12]),_:1},8,["value"]),createBaseVNode("span",_hoisted_13,toDisplayString(unref(d)),1)]),unref(y)==="pause"?(openBlock(),createElementBlock("div",{key:0,class:"playBtn",onClick:N[8]||(N[8]=(...B)=>unref(u)&&unref(u)(...B))},_hoisted_16)):(openBlock(),createElementBlock("div",{key:1,class:"playBtn",onClick:N[9]||(N[9]=(...B)=>unref(m)&&unref(m)(...B))},_hoisted_19))]),createVNode(unref(Dragbom))]))}}),Metronome_vue_vue_type_style_index_0_scoped_138efc00_lang="",Metronome_vue_vue_type_style_index_1_lang="",Metronome=_export_sfc$1(_sfc_main$2,[["__scopeId","data-v-138efc00"]]),_withScopeId=e=>(pushScopeId("data-v-b8a07c11"),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=ref(!0),n=ref(),s=ref(!1),i=computed({get(){return r.modelValue},set(x){t("update:modelValue",x)}});watch(i,()=>{i.value&&(s.value=!1)});const o=ref("pause");function l(x){x==="play"&&(y.value=parseFloat((60/n.value.speedNum).toFixed(4)),c.value=n.value.beatSymbol),o.value=x}const c=ref("1"),d={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"},y=ref(60/90);onMounted(()=>{document.addEventListener("visibilitychange",f)}),onUnmounted(()=>{document.removeEventListener("visibilitychange",f)});function f(){var x;document.visibilityState==="hidden"&&((x=n.value)==null||x.pausePlay())}function u(){i.value=!1,s.value=!1,o.value="pause"}function m(){s.value=!0,nextTick(()=>{A(),i.value=!1})}function g(){i.value=!0}const E=useUserStore(),p=useDrag(["".concat(metronomeMinConBoxClass)],metronomeMinConBoxClass,s,E.info.id),S=ref("initial");function A(){const D=document.querySelector(".".concat(r.dragClass)).getBoundingClientRect(),I=p.pos.value.left===-1?12:p.pos.value.left,N=p.pos.value.top===-1?document.body.clientHeight-81-10:p.pos.value.top,B=D.left,L=D.top;S.value="".concat(I-B,"Px ").concat(N-L,"Px")}const b=ref(!1);function C(){b.value=!0,document.addEventListener("mouseup",x);function x(){b.value=!1,document.removeEventListener("mouseup",x)}}return(x,D)=>(openBlock(),createElementBlock(Fragment,null,[b.value?(openBlock(),createElementBlock("div",_hoisted_1$1)):createCommentVNode("",!0),i.value||s.value?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["metronomeMinCon",[metronomeMinConBoxClass,i.value&&"metronomeMinConHide"]]),style:normalizeStyle(unref(p).styleDrag.value),onMousedown:C},[createBaseVNode("div",_hoisted_2,[createBaseVNode("img",{class:normalizeClass(["zhen",[o.value==="play"&&"playWagAnimation"+d[c.value]]]),style:normalizeStyle({"--rotateWagTime":y.value+"s"}),src:_imports_0$1},null,6),_hoisted_3]),createBaseVNode("div",_hoisted_4,[createBaseVNode("img",{class:"setting",onClick:g,src:_imports_2$1}),o.value==="pause"?(openBlock(),createElementBlock("img",{key:0,class:"play",onClick:D[0]||(D[0]=()=>{var I;(I=n.value)==null||I.startPlay()}),src:_imports_3$1})):(openBlock(),createElementBlock("img",{key:1,class:"pause",onClick:D[1]||(D[1]=()=>{var I;(I=n.value)==null||I.pausePlay()}),src:_imports_4$1})),createBaseVNode("img",{class:"close",onClick:u,src:_imports_5$1})])],38)):createCommentVNode("",!0),createVNode(unref(NModal),{style:normalizeStyle({...x.dragStyle,"--transformOrigin":S.value}),class:normalizeClass(["metronomeNModal",[x.dragClass,s.value?"transformOrigin":""]]),show:i.value,"onUpdate:show":D[2]||(D[2]=I=>i.value=I),"display-directive":"show","mask-closable":!1,onEsc:u,onAfterEnter:D[3]||(D[3]=()=>{a.value=!0}),onAfterLeave:D[4]||(D[4]=()=>{a.value=!1})},{default:withCtx(()=>[createBaseVNode("div",null,[_hoisted_5,s.value||i.value||a.value?(openBlock(),createBlock(Metronome,{key:0,ref_key:"metronomeDom",ref:n,onCloseMet:u,onWindowMet:m,onPlayStateChange:l},null,512)):createCommentVNode("",!0)])]),_:1},8,["style","show","class"])],64))}}),MetronomeBox_vue_vue_type_style_index_0_scoped_b8a07c11_lang="",MetronomeBox=_export_sfc$1(_sfc_main$1,[["__scopeId","data-v-b8a07c11"]]),downMove="_downMove_137wx_1",downMoveBg="_downMoveBg_137wx_9",dingPng="_dingPng_137wx_16",closeAble="_closeAble_137wx_25",submitAppBtn="_submitAppBtn_137wx_53",styles$m={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$m.downMove},[createVNode("img",{src:dingPng$1,class:styles$m.dingPng,alt:""},null),createVNode("img",{src:moveTop,class:styles$m.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$m.submitAppBtn,round:!0,type:"primary",onClick:()=>{t("close")}}),{default:()=>[createTextVNode("我知道了")]})]})])])}}),playContent="_playContent_vexwm_1",assignHomeworkClose="_assignHomeworkClose_vexwm_10",coursewarePlay="_coursewarePlay_vexwm_23",playModel="_playModel_vexwm_29",headerContainer="_headerContainer_vexwm_38",backBtn="_backBtn_vexwm_58",headRight="_headRight_vexwm_70",rightBtn="_rightBtn_vexwm_79",menu$1="_menu_vexwm_91",tabsContent="_tabsContent_vexwm_102",wraps="_wraps_vexwm_113",itemDiv="_itemDiv_vexwm_119",itemActive="_itemActive_vexwm_132",acitveAnimation="_acitveAnimation_vexwm_135",show="_show_vexwm_138",hide$2="_hide_vexwm_141",rightFixedBtns="_rightFixedBtns_vexwm_154",fullBtn="_fullBtn_vexwm_161",point="_point_vexwm_166",iconUp="_iconUp_vexwm_176",iconDown="_iconDown_vexwm_177",btnsDisabled="_btnsDisabled_vexwm_180",loadWrap="_loadWrap_vexwm_210",drawerContainer="_drawerContainer_vexwm_221",sectionAnimate$2="_sectionAnimate_vexwm_236",sectionAnimateUp="_sectionAnimateUp_vexwm_242",switchDisplaySection="_switchDisplaySection_vexwm_248",switchSpace="_switchSpace_vexwm_262",btnItem$1="_btnItem_vexwm_265",attendClassModal="_attendClassModal_vexwm_287",modelAttendContent="_modelAttendContent_vexwm_311",modelAttendBtnGroup="_modelAttendBtnGroup_vexwm_317",trainClassModal="_trainClassModal_vexwm_325",workContainer="_workContainer_vexwm_331",toolboxImg="_toolboxImg_vexwm_335",isDragIng="_isDragIng_vexwm_344",toolClassImg="_toolClassImg_vexwm_348",booxToolWrap="_booxToolWrap_vexwm_363",booxToolItem="_booxToolItem_vexwm_374",setTimeImage="_setTimeImage_vexwm_391",beatImage="_beatImage_vexwm_397",changePwdModal="_changePwdModal_vexwm_403",imChatModal="_imChatModal_vexwm_406",modeWrap="_modeWrap_vexwm_409",showModalTone="_showModalTone_vexwm_414",studentRemove$2="_studentRemove_vexwm_417",removeVisiable$2="_removeVisiable_vexwm_429",btnGroupModal$2="_btnGroupModal_vexwm_455",iframePpt="_iframePpt_vexwm_462",pptBox="_pptBox_vexwm_467",rightColumn="_rightColumn_vexwm_476",leftColumn="_leftColumn_vexwm_477",columnItemBox="_columnItemBox_vexwm_490",columnItem="_columnItem_vexwm_490",active$1="_active_vexwm_509",itemDisabled="_itemDisabled_vexwm_523",hideBtn="_hideBtn_vexwm_528",rightColumnHide="_rightColumnHide_vexwm_573",leftColumnHide="_leftColumnHide_vexwm_576",rightHideIcon="_rightHideIcon_vexwm_579",leftHideIcon="_leftHideIcon_vexwm_580",rightIconShow="_rightIconShow_vexwm_608",rightIn="_rightIn_vexwm_1",leftIconShow="_leftIconShow_vexwm_612",leftIn="_leftIn_vexwm_1",instrumentContainer="_instrumentContainer_vexwm_632",selectMusicModal$1="_selectMusicModal_vexwm_651",selectClassModal="_selectClassModal_vexwm_664",workVisiable="_workVisiable_vexwm_667",timerMeterClose$1="_timerMeterClose_vexwm_696",workTrain="_workTrain_vexwm_708",resourceMain="_resourceMain_vexwm_721",styles$l={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,hideBtn,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$1="_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$k={musicScore:musicScore$1,container:container$1,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},instrumentId:{type:String},activeStatus:{type:Boolean},imagePos:{type:String,default:"left"}},emits:["setIframe"],setup(e,{emit:t}){const r=useUserStore(),a=ref(!1),n=usePageVisibility();watch(n,y=>{console.log("🚀 ~ value:",y),y=="hidden"&&(a.value=!1)});const s=ref(),i=ref(!1),o=ref(!1),l=ref(!1);let c="".concat(vaildMusicScoreUrl(),"/instrument/?v=").concat(+new Date,"&showGuide=true&showWebGuide=false&platform=pc&zoom=1.2&modelType=practise&id=").concat(e.music.content,"&Authorization=").concat(r.getToken,"&imagePos=").concat(e.imagePos);e.instrumentId&&(c+="&instrumentId=".concat(e.instrumentId));const d=()=>{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&&d())}),watch(()=>e.activeModel,()=>{s.value.contentWindow&&e.activeStatus&&s.value.contentWindow.postMessage({api:"attendClassBarStatus",hideMenu:!e.activeModel},"*")}),()=>createVNode("div",{class:styles$k.musicScore},[createVNode("iframe",{ref:s,onLoad:y=>{t("setIframe",s.value),i.value=!0,iframeDislableKeyboard(y.target)},class:[styles$k.container,"musicIframe"],frameborder:"0",src:c},null)])}}),pptList="_pptList_opvvb_1",container="_container_opvvb_6",styles$j={pptList,container},PptList=defineComponent({name:"pptList",props:{pptData:{type:Object,default:()=>({})},fromType:{type:String,default:"TEACHER"}},emits:["initPPT","changeSlideIndex"],setup(e,{emit:t,expose:r}){const a=useUserStore(),n=ref(),s="".concat(vaildPPTUrl(),"/#/pptScreen?id=").concat(e.pptData.id,"&Authorization=").concat(a.getToken,"&hideFullScreen=true&fromType=").concat(e.fromType);function i(l){var c,d;(d=(c=n.value)==null?void 0:c.contentWindow)==null||d.postMessage({type:"changePageSlide",content:l},"*")}function o(l){const{type:c,content:d}=l.data||{};console.log(d,"message"),c==="initPPT"?t("initPPT",d):c==="changeSlideIndex"&&t("changeSlideIndex",d)}return onMounted(()=>{window.addEventListener("message",o)}),onUnmounted(()=>{window.removeEventListener("message",o)}),r({handleChangeSlide:i}),()=>createVNode("div",{class:styles$j.pptList},[createVNode("iframe",{ref:n,class:[styles$j.container],frameborder:"0",src:s},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,d;switch(i=Math.floor(e*6),o=e*6-i,l=r*(1-t),c=r*(1-o*t),d=r*(1-(1-o)*t),i%6){case 0:a=r,n=d,s=l;break;case 1:a=c,n=r,s=l;break;case 2:a=l,n=r,s=d;break;case 3:a=l,n=c,s=r;break;case 4:a=d,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(u){r({data:u})}},s={postMessage:function(u){n.onmessage({data:u})}};function i(f){if(window.Worker&&window.Blob&&getWebWorker()){var u=new Blob(["var _workerSelf = self; self.onmessage = ",f.toString()],{type:"text/javascript"}),m=URL.createObjectURL(u);return new Worker(m)}return r=f,n}function o(){a||(a=i(function(u){function m(){function E(H,M){var F,P,T=H.length,O,k,z,Q;for(P=0;P<T;P+=1)if(F=H[P],"ks"in F&&!F.completed){if(F.completed=!0,F.hasMask){var X=F.masksProperties;for(k=X.length,O=0;O<k;O+=1)if(X[O].pt.k.i)C(X[O].pt.k);else for(Q=X[O].pt.k.length,z=0;z<Q;z+=1)X[O].pt.k[z].s&&C(X[O].pt.k[z].s[0]),X[O].pt.k[z].e&&C(X[O].pt.k[z].e[0])}F.ty===0?(F.layers=A(F.refId,M),E(F.layers,M)):F.ty===4?b(F.shapes):F.ty===5&&_(F)}}function p(H,M){if(H){var F=0,P=H.length;for(F=0;F<P;F+=1)H[F].t===1&&(H[F].data.layers=A(H[F].data.refId,M),E(H[F].data.layers,M))}}function S(H,M){for(var F=0,P=M.length;F<P;){if(M[F].id===H)return M[F];F+=1}return null}function A(H,M){var F=S(H,M);return F?F.layers.__used?JSON.parse(JSON.stringify(F.layers)):(F.layers.__used=!0,F.layers):null}function b(H){var M,F=H.length,P,T;for(M=F-1;M>=0;M-=1)if(H[M].ty==="sh")if(H[M].ks.k.i)C(H[M].ks.k);else for(T=H[M].ks.k.length,P=0;P<T;P+=1)H[M].ks.k[P].s&&C(H[M].ks.k[P].s[0]),H[M].ks.k[P].e&&C(H[M].ks.k[P].e[0]);else H[M].ty==="gr"&&b(H[M].it)}function C(H){var M,F=H.i.length;for(M=0;M<F;M+=1)H.i[M][0]+=H.v[M][0],H.i[M][1]+=H.v[M][1],H.o[M][0]+=H.v[M][0],H.o[M][1]+=H.v[M][1]}function x(H,M){var F=M?M.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 D=function(){var H=[4,4,14];function M(P){var T=P.t.d;P.t.d={k:[{s:T,t:0}]}}function F(P){var T,O=P.length;for(T=0;T<O;T+=1)P[T].ty===5&&M(P[T])}return function(P){if(x(H,P.v)&&(F(P.layers),P.assets)){var T,O=P.assets.length;for(T=0;T<O;T+=1)P.assets[T].layers&&F(P.assets[T].layers)}}}(),I=function(){var H=[4,7,99];return function(M){if(M.chars&&!x(H,M.v)){var F,P=M.chars.length;for(F=0;F<P;F+=1){var T=M.chars[F];T.data&&T.data.shapes&&(b(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}},M.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"})))}}}}(),N=function(){var H=[5,7,15];function M(P){var T=P.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(P){var T,O=P.length;for(T=0;T<O;T+=1)P[T].ty===5&&M(P[T])}return function(P){if(x(H,P.v)&&(F(P.layers),P.assets)){var T,O=P.assets.length;for(T=0;T<O;T+=1)P.assets[T].layers&&F(P.assets[T].layers)}}}(),B=function(){var H=[4,1,9];function M(P){var T,O=P.length,k,z;for(T=0;T<O;T+=1)if(P[T].ty==="gr")M(P[T].it);else if(P[T].ty==="fl"||P[T].ty==="st")if(P[T].c.k&&P[T].c.k[0].i)for(z=P[T].c.k.length,k=0;k<z;k+=1)P[T].c.k[k].s&&(P[T].c.k[k].s[0]/=255,P[T].c.k[k].s[1]/=255,P[T].c.k[k].s[2]/=255,P[T].c.k[k].s[3]/=255),P[T].c.k[k].e&&(P[T].c.k[k].e[0]/=255,P[T].c.k[k].e[1]/=255,P[T].c.k[k].e[2]/=255,P[T].c.k[k].e[3]/=255);else P[T].c.k[0]/=255,P[T].c.k[1]/=255,P[T].c.k[2]/=255,P[T].c.k[3]/=255}function F(P){var T,O=P.length;for(T=0;T<O;T+=1)P[T].ty===4&&M(P[T].shapes)}return function(P){if(x(H,P.v)&&(F(P.layers),P.assets)){var T,O=P.assets.length;for(T=0;T<O;T+=1)P.assets[T].layers&&F(P.assets[T].layers)}}}(),L=function(){var H=[4,4,18];function M(P){var T,O=P.length,k,z;for(T=O-1;T>=0;T-=1)if(P[T].ty==="sh")if(P[T].ks.k.i)P[T].ks.k.c=P[T].closed;else for(z=P[T].ks.k.length,k=0;k<z;k+=1)P[T].ks.k[k].s&&(P[T].ks.k[k].s[0].c=P[T].closed),P[T].ks.k[k].e&&(P[T].ks.k[k].e[0].c=P[T].closed);else P[T].ty==="gr"&&M(P[T].it)}function F(P){var T,O,k=P.length,z,Q,X,re;for(O=0;O<k;O+=1){if(T=P[O],T.hasMask){var q=T.masksProperties;for(Q=q.length,z=0;z<Q;z+=1)if(q[z].pt.k.i)q[z].pt.k.c=q[z].cl;else for(re=q[z].pt.k.length,X=0;X<re;X+=1)q[z].pt.k[X].s&&(q[z].pt.k[X].s[0].c=q[z].cl),q[z].pt.k[X].e&&(q[z].pt.k[X].e[0].c=q[z].cl)}T.ty===4&&M(T.shapes)}}return function(P){if(x(H,P.v)&&(F(P.layers),P.assets)){var T,O=P.assets.length;for(T=0;T<O;T+=1)P.assets[T].layers&&F(P.assets[T].layers)}}}();function R(H){H.__complete||(B(H),D(H),I(H),N(H),L(H),E(H.layers,H.assets),p(H.chars,H.assets),H.__complete=!0)}function _(H){H.t.a.length===0&&"m"in H.t.p}var j={};return j.completeData=R,j.checkColors=B,j.checkChars=I,j.checkPathProperties=N,j.checkShapes=L,j.completeLayers=E,j}if(s.dataManager||(s.dataManager=m()),s.assetLoader||(s.assetLoader=function(){function E(S){var A=S.getResponseHeader("content-type");return A&&S.responseType==="json"&&A.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 p(S,A,b,C){var x,D=new XMLHttpRequest;try{D.responseType="json"}catch(I){}D.onreadystatechange=function(){if(D.readyState===4)if(D.status===200)x=E(D),b(x);else try{x=E(D),b(x)}catch(I){C&&C(I)}};try{D.open(["G","E","T"].join(""),S,!0)}catch(I){D.open(["G","E","T"].join(""),A+"/"+S,!0)}D.send()}return{load:p}}()),u.data.type==="loadAnimation")s.assetLoader.load(u.data.path,u.data.fullPath,function(E){s.dataManager.completeData(E),s.postMessage({id:u.data.id,payload:E,status:"success"})},function(){s.postMessage({id:u.data.id,status:"error"})});else if(u.data.type==="complete"){var g=u.data.animation;s.dataManager.completeData(g),s.postMessage({id:u.data.id,payload:g,status:"success"})}else u.data.type==="loadData"&&s.assetLoader.load(u.data.path,u.data.fullPath,function(E){s.postMessage({id:u.data.id,payload:E,status:"success"})},function(){s.postMessage({id:u.data.id,status:"error"})})}),a.onmessage=function(f){var u=f.data,m=u.id,g=t[m];t[m]=null,u.status==="success"?g.onComplete(u.payload):g.onError&&g.onError()})}function l(f,u){e+=1;var m="processId_"+e;return t[m]={onComplete:f,onError:u},m}function c(f,u,m){o();var g=l(u,m);a.postMessage({type:"loadAnimation",path:f,fullPath:window.location.origin+window.location.pathname,id:g})}function d(f,u,m){o();var g=l(u,m);a.postMessage({type:"loadData",path:f,fullPath:window.location.origin+window.location.pathname,id:g})}function y(f,u,m){o();var g=l(u,m);a.postMessage({type:"complete",animation:f,id:g})}return{loadAnimation:c,loadData:d,completeAnimation:y}}(),ImagePreloader=function(){var e=function(){var p=createTag("canvas");p.width=1,p.height=1;var S=p.getContext("2d");return S.fillStyle="rgba(0,0,0,0)",S.fillRect(0,0,1,1),p}();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(p,S,A){var b="";if(p.e)b=p.p;else if(S){var C=p.p;C.indexOf("images/")!==-1&&(C=C.split("/")[1]),b=S+C}else b=A,b+=p.u?p.u:"",b+=p.p;return b}function n(p){var S=0,A=setInterval((function(){var b=p.getBBox();(b.width||S>500)&&(this._imageLoaded(),clearInterval(A)),S+=1}).bind(this),50)}function s(p){var S=a(p,this.assetsPath,this.path),A=createNS("image");isSafari?this.testImageLoaded(A):A.addEventListener("load",this._imageLoaded,!1),A.addEventListener("error",(function(){b.img=e,this._imageLoaded()}).bind(this),!1),A.setAttributeNS("http://www.w3.org/1999/xlink","href",S),this._elementHelper.append?this._elementHelper.append(A):this._elementHelper.appendChild(A);var b={img:A,assetData:p};return b}function i(p){var S=a(p,this.assetsPath,this.path),A=createTag("img");A.crossOrigin="anonymous",A.addEventListener("load",this._imageLoaded,!1),A.addEventListener("error",(function(){b.img=e,this._imageLoaded()}).bind(this),!1),A.src=S;var b={img:A,assetData:p};return b}function o(p){var S={assetData:p},A=a(p,this.assetsPath,this.path);return dataManager.loadData(A,(function(b){S.img=b,this._footageLoaded()}).bind(this),(function(){S.img={},this._footageLoaded()}).bind(this)),S}function l(p,S){this.imagesLoadedCb=S;var A,b=p.length;for(A=0;A<b;A+=1)p[A].layers||(!p[A].t||p[A].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(p[A]))):p[A].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(p[A]))))}function c(p){this.path=p||""}function d(p){this.assetsPath=p||""}function y(p){for(var S=0,A=this.images.length;S<A;){if(this.images[S].assetData===p)return this.images[S].img;S+=1}return null}function f(){this.imagesLoadedCb=null,this.images.length=0}function u(){return this.totalImages===this.loadedAssets}function m(){return this.totalFootages===this.loadedFootagesCount}function g(p,S){p==="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:d,setPath:c,loadedImages:u,loadedFootages:m,destroy:f,getAsset:y,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(M){for(var F=0,P=M.target;F<a;)t[F].animation===P&&(t.splice(F,1),F-=1,a-=1,P.isPaused||y()),F+=1}function l(M,F){if(!M)return null;for(var P=0;P<a;){if(t[P].elem===M&&t[P].elem!==null)return t[P].animation;P+=1}var T=new AnimationItem;return f(T,M),T.setData(M,F),T}function c(){var M,F=t.length,P=[];for(M=0;M<F;M+=1)P.push(t[M].animation);return P}function d(){n+=1,B()}function y(){n-=1}function f(M,F){M.addEventListener("destroy",o),M.addEventListener("_active",d),M.addEventListener("_idle",y),t.push({elem:F,animation:M}),a+=1}function u(M){var F=new AnimationItem;return f(F,null),F.setParams(M),F}function m(M,F){var P;for(P=0;P<a;P+=1)t[P].animation.setSpeed(M,F)}function g(M,F){var P;for(P=0;P<a;P+=1)t[P].animation.setDirection(M,F)}function E(M){var F;for(F=0;F<a;F+=1)t[F].animation.play(M)}function p(M){var F=M-r,P;for(P=0;P<a;P+=1)t[P].animation.advanceTime(F);r=M,n&&!i?window.requestAnimationFrame(p):s=!0}function S(M){r=M,window.requestAnimationFrame(p)}function A(M){var F;for(F=0;F<a;F+=1)t[F].animation.pause(M)}function b(M,F,P){var T;for(T=0;T<a;T+=1)t[T].animation.goToAndStop(M,F,P)}function C(M){var F;for(F=0;F<a;F+=1)t[F].animation.stop(M)}function x(M){var F;for(F=0;F<a;F+=1)t[F].animation.togglePause(M)}function D(M){var F;for(F=a-1;F>=0;F-=1)t[F].animation.destroy(M)}function I(M,F,P){var T=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),O,k=T.length;for(O=0;O<k;O+=1)P&&T[O].setAttribute("data-bm-type",P),l(T[O],M);if(F&&k===0){P||(P="svg");var z=document.getElementsByTagName("body")[0];z.innerText="";var Q=createTag("div");Q.style.width="100%",Q.style.height="100%",Q.setAttribute("data-bm-type",P),z.appendChild(Q),l(Q,M)}}function N(){var M;for(M=0;M<a;M+=1)t[M].animation.resize()}function B(){!i&&n&&s&&(window.requestAnimationFrame(S),s=!1)}function L(){i=!0}function R(){i=!1,B()}function _(M,F){var P;for(P=0;P<a;P+=1)t[P].animation.setVolume(M,F)}function j(M){var F;for(F=0;F<a;F+=1)t[F].animation.mute(M)}function H(M){var F;for(F=0;F<a;F+=1)t[F].animation.unmute(M)}return e.registerAnimation=l,e.loadAnimation=u,e.setSpeed=m,e.setDirection=g,e.play=E,e.pause=A,e.stop=C,e.togglePause=x,e.searchAnimations=I,e.resize=N,e.goToAndStop=b,e.destroy=D,e.freeze=L,e.unfreeze=R,e.setVolume=_,e.mute=j,e.unmute=H,e.getRegisteredAnimations=c,e}(),BezierFactory=function(){var e={};e.getBezierEasing=r;var t={};function r(S,A,b,C,x){var D=x||("bez_"+S+"_"+A+"_"+b+"_"+C).replace(/\./g,"p");if(t[D])return t[D];var I=new p([S,A,b,C]);return t[D]=I,I}var a=4,n=.001,s=1e-7,i=10,o=11,l=1/(o-1),c=typeof Float32Array=="function";function d(S,A){return 1-3*A+3*S}function y(S,A){return 3*A-6*S}function f(S){return 3*S}function u(S,A,b){return((d(A,b)*S+y(A,b))*S+f(A))*S}function m(S,A,b){return 3*d(A,b)*S*S+2*y(A,b)*S+f(A)}function g(S,A,b,C,x){var D,I,N=0;do I=A+(b-A)/2,D=u(I,C,x)-S,D>0?b=I:A=I;while(Math.abs(D)>s&&++N<i);return I}function E(S,A,b,C){for(var x=0;x<a;++x){var D=m(A,b,C);if(D===0)return A;var I=u(A,b,C)-S;A-=I/D}return A}function p(S){this._p=S,this._mSampleValues=c?new Float32Array(o):new Array(o),this._precomputed=!1,this.get=this.get.bind(this)}return p.prototype={get:function(A){var b=this._p[0],C=this._p[1],x=this._p[2],D=this._p[3];return this._precomputed||this._precompute(),b===C&&x===D?A:A===0?0:A===1?1:u(this._getTForX(A),C,D)},_precompute:function(){var A=this._p[0],b=this._p[1],C=this._p[2],x=this._p[3];this._precomputed=!0,(A!==b||C!==x)&&this._calcSampleValues()},_calcSampleValues:function(){for(var A=this._p[0],b=this._p[2],C=0;C<o;++C)this._mSampleValues[C]=u(C*l,A,b)},_getTForX:function(A){for(var b=this._p[0],C=this._p[2],x=this._mSampleValues,D=0,I=1,N=o-1;I!==N&&x[I]<=A;++I)D+=l;--I;var B=(A-x[I])/(x[I+1]-x[I]),L=D+B*l,R=m(L,b,C);return R>=n?E(A,L,b,C):R===0?L:g(A,D,D+l,b,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(f,u,m,g,E,p){var S=f*g+u*E+m*p-E*g-p*f-m*u;return S>-.001&&S<.001}function r(f,u,m,g,E,p,S,A,b){if(m===0&&p===0&&b===0)return t(f,u,g,E,S,A);var C=e.sqrt(e.pow(g-f,2)+e.pow(E-u,2)+e.pow(p-m,2)),x=e.sqrt(e.pow(S-f,2)+e.pow(A-u,2)+e.pow(b-m,2)),D=e.sqrt(e.pow(S-g,2)+e.pow(A-E,2)+e.pow(b-p,2)),I;return C>x?C>D?I=C-x-D:I=D-x-C:D>x?I=D-x-C:I=x-C-D,I>-1e-4&&I<1e-4}var a=function(){return function(f,u,m,g){var E=getDefaultCurveSegments(),p,S,A,b,C,x=0,D,I=[],N=[],B=bezierLengthPool.newElement();for(A=m.length,p=0;p<E;p+=1){for(C=p/(E-1),D=0,S=0;S<A;S+=1)b=bmPow(1-C,3)*f[S]+3*bmPow(1-C,2)*C*m[S]+3*(1-C)*bmPow(C,2)*g[S]+bmPow(C,3)*u[S],I[S]=b,N[S]!==null&&(D+=bmPow(I[S]-N[S],2)),N[S]=I[S];D&&(D=bmSqrt(D),x+=D),B.percents[p]=C,B.lengths[p]=x}return B.addedLength=x,B}}();function n(f){var u=segmentsLengthPool.newElement(),m=f.c,g=f.v,E=f.o,p=f.i,S,A=f._length,b=u.lengths,C=0;for(S=0;S<A-1;S+=1)b[S]=a(g[S],g[S+1],E[S],p[S+1]),C+=b[S].addedLength;return m&&A&&(b[S]=a(g[S],g[0],E[S],p[0]),C+=b[S].addedLength),u.totalLength=C,u}function s(f){this.segmentLength=0,this.points=new Array(f)}function i(f,u){this.partialLength=f,this.point=u}var o=function(){var f={};return function(u,m,g,E){var p=(u[0]+"_"+u[1]+"_"+m[0]+"_"+m[1]+"_"+g[0]+"_"+g[1]+"_"+E[0]+"_"+E[1]).replace(/\./g,"p");if(!f[p]){var S=getDefaultCurveSegments(),A,b,C,x,D,I=0,N,B,L=null;u.length===2&&(u[0]!==m[0]||u[1]!==m[1])&&t(u[0],u[1],m[0],m[1],u[0]+g[0],u[1]+g[1])&&t(u[0],u[1],m[0],m[1],m[0]+E[0],m[1]+E[1])&&(S=2);var R=new s(S);for(C=g.length,A=0;A<S;A+=1){for(B=createSizedArray(C),D=A/(S-1),N=0,b=0;b<C;b+=1)x=bmPow(1-D,3)*u[b]+3*bmPow(1-D,2)*D*(u[b]+g[b])+3*(1-D)*bmPow(D,2)*(m[b]+E[b])+bmPow(D,3)*m[b],B[b]=x,L!==null&&(N+=bmPow(B[b]-L[b],2));N=bmSqrt(N),I+=N,R.points[A]=new i(N,B),L=B}R.segmentLength=I,f[p]=R}return f[p]}}();function l(f,u){var m=u.percents,g=u.lengths,E=m.length,p=bmFloor((E-1)*f),S=f*u.addedLength,A=0;if(p===E-1||p===0||S===g[p])return m[p];for(var b=g[p]>S?-1:1,C=!0;C;)if(g[p]<=S&&g[p+1]>S?(A=(S-g[p])/(g[p+1]-g[p]),C=!1):p+=b,p<0||p>=E-1){if(p===E-1)return m[p];C=!1}return m[p]+(m[p+1]-m[p])*A}function c(f,u,m,g,E,p){var S=l(E,p),A=1-S,b=e.round((A*A*A*f[0]+(S*A*A+A*S*A+A*A*S)*m[0]+(S*S*A+A*S*S+S*A*S)*g[0]+S*S*S*u[0])*1e3)/1e3,C=e.round((A*A*A*f[1]+(S*A*A+A*S*A+A*A*S)*m[1]+(S*S*A+A*S*S+S*A*S)*g[1]+S*S*S*u[1])*1e3)/1e3;return[b,C]}var d=createTypedArray("float32",8);function y(f,u,m,g,E,p,S){E<0?E=0:E>1&&(E=1);var A=l(E,S);p=p>1?1:p;var b=l(p,S),C,x=f.length,D=1-A,I=1-b,N=D*D*D,B=A*D*D*3,L=A*A*D*3,R=A*A*A,_=D*D*I,j=A*D*I+D*A*I+D*D*b,H=A*A*I+D*A*b+A*D*b,M=A*A*b,F=D*I*I,P=A*I*I+D*b*I+D*I*b,T=A*b*I+D*b*b+A*I*b,O=A*b*b,k=I*I*I,z=b*I*I+I*b*I+I*I*b,Q=b*b*I+I*b*b+b*I*b,X=b*b*b;for(C=0;C<x;C+=1)d[C*4]=e.round((N*f[C]+B*m[C]+L*g[C]+R*u[C])*1e3)/1e3,d[C*4+1]=e.round((_*f[C]+j*m[C]+H*g[C]+M*u[C])*1e3)/1e3,d[C*4+2]=e.round((F*f[C]+P*m[C]+T*g[C]+O*u[C])*1e3)/1e3,d[C*4+3]=e.round((k*f[C]+z*m[C]+Q*g[C]+X*u[C])*1e3)/1e3;return d}return{getSegmentsLength:n,getNewSegment:y,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,d;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)}d=this.keyframesMetadata[s]||{};var y,f,u,m,g,E,p=c.t-r,S=l.t-r,A;if(l.to){d.bezierData||(d.bezierData=bez.buildBezierData(l.s,c.s||l.e,l.to,l.ti));var b=d.bezierData;if(e>=p||e<S){var C=e>=p?b.points.length-1:0;for(f=b.points[C].point.length,y=0;y<f;y+=1)a[y]=b.points[C].point[y]}else{d.__fnct?E=d.__fnct:(E=BezierFactory.getBezierEasing(l.o.x,l.o.y,l.i.x,l.i.y,l.n).get,d.__fnct=E),u=E((e-S)/(p-S));var x=b.segmentLength*u,D,I=t.lastFrame<e&&t._lastKeyframeIndex===s?t._lastAddedLength:0;for(g=t.lastFrame<e&&t._lastKeyframeIndex===s?t._lastPoint:0,o=!0,m=b.points.length;o;){if(I+=b.points[g].partialLength,x===0||u===0||g===b.points.length-1){for(f=b.points[g].point.length,y=0;y<f;y+=1)a[y]=b.points[g].point[y];break}else if(x>=I&&x<I+b.points[g+1].partialLength){for(D=(x-I)/b.points[g+1].partialLength,f=b.points[g].point.length,y=0;y<f;y+=1)a[y]=b.points[g].point[y]+(b.points[g+1].point[y]-b.points[g].point[y])*D;break}g<m-1?g+=1:o=!1}t._lastPoint=g,t._lastAddedLength=I-b.points[g].partialLength,t._lastKeyframeIndex=s}}else{var N,B,L,R,_;if(i=l.s.length,A=c.s||l.e,this.sh&&l.h!==1)if(e>=p)a[0]=A[0],a[1]=A[1],a[2]=A[2];else if(e<=S)a[0]=l.s[0],a[1]=l.s[1],a[2]=l.s[2];else{var j=createQuaternion(l.s),H=createQuaternion(A),M=(e-S)/(p-S);quaternionToEuler(a,slerp(j,H,M))}else for(s=0;s<i;s+=1)l.h!==1&&(e>=p?u=1:e<S?u=0:(l.o.x.constructor===Array?(d.__fnct||(d.__fnct=[]),d.__fnct[s]?E=d.__fnct[s]:(N=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],L=l.i.x[s]===void 0?l.i.x[0]:l.i.x[s],R=l.i.y[s]===void 0?l.i.y[0]:l.i.y[s],E=BezierFactory.getBezierEasing(N,B,L,R).get,d.__fnct[s]=E)):d.__fnct?E=d.__fnct:(N=l.o.x,B=l.o.y,L=l.i.x,R=l.i.y,E=BezierFactory.getBezierEasing(N,B,L,R).get,l.keyframeMetadata=E),u=E((e-S)/(p-S)))),A=c.s||l.e,_=l.h===1?l.s[s]:l.s[s]+(A[s]-l.s[s])*u,this.propType==="multidimensional"?a[s]=_:a=_}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],d=t[2],y=t[3],f,u,m,g,E;return u=n*l+s*c+i*d+o*y,u<0&&(u=-u,l=-l,c=-c,d=-d,y=-y),1-u>1e-6?(f=Math.acos(u),m=Math.sin(f),g=Math.sin((1-r)*f)/m,E=Math.sin(r*f)/m):(g=1-r,E=r),a[0]=g*n+E*l,a[1]=g*s+E*c,a[2]=g*i+E*d,a[3]=g*o+E*y,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),d=n*s*i-o*l*c,y=o*l*i+n*s*c,f=o*s*i+n*l*c,u=n*l*i-o*s*c;return[y,f,u,d]}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 d=t.k[0].s.length;for(this.v=createTypedArray("float32",d),this.pv=createTypedArray("float32",d),n=0;n<d;n+=1)this.v[n]=initFrame,this.pv[n]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",d)},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(p,S,A){var b=A.lastIndex,C,x,D,I,N,B,L,R,_,j=this.keyframes;if(p<j[0].t-this.offsetTime)C=j[0].s[0],D=!0,b=0;else if(p>=j[j.length-1].t-this.offsetTime)C=j[j.length-1].s?j[j.length-1].s[0]:j[j.length-2].e[0],D=!0;else{for(var H=b,M=j.length-1,F=!0,P,T,O;F&&(P=j[H],T=j[H+1],!(T.t-this.offsetTime>p));)H<M-1?H+=1:F=!1;if(O=this.keyframesMetadata[H]||{},D=P.h===1,b=H,!D){if(p>=T.t-this.offsetTime)R=1;else if(p<P.t-this.offsetTime)R=0;else{var k;O.__fnct?k=O.__fnct:(k=BezierFactory.getBezierEasing(P.o.x,P.o.y,P.i.x,P.i.y).get,O.__fnct=k),R=k((p-(P.t-this.offsetTime))/(T.t-this.offsetTime-(P.t-this.offsetTime)))}x=T.s?T.s[0]:P.e[0]}C=P.s[0]}for(B=S._length,L=C.i[0].length,A.lastIndex=b,I=0;I<B;I+=1)for(N=0;N<L;N+=1)_=D?C.i[I][N]:C.i[I][N]+(x.i[I][N]-C.i[I][N])*R,S.i[I][N]=_,_=D?C.o[I][N]:C.o[I][N]+(x.o[I][N]-C.o[I][N])*R,S.o[I][N]=_,_=D?C.v[I][N]:C.v[I][N]+(x.v[I][N]-C.v[I][N])*R,S.v[I][N]=_}function r(){var p=this.comp.renderedFrame-this.offsetTime,S=this.keyframes[0].t-this.offsetTime,A=this.keyframes[this.keyframes.length-1].t-this.offsetTime,b=this._caching.lastFrame;return b!==e&&(b<S&&p<S||b>A&&p>A)||(this._caching.lastIndex=b<p?this._caching.lastIndex:0,this.interpolateShape(p,this.pv,this._caching)),this._caching.lastFrame=p,this.pv}function a(){this.paths=this.localShapeCollection}function n(p,S){if(p._length!==S._length||p.c!==S.c)return!1;var A,b=p._length;for(A=0;A<b;A+=1)if(p.v[A][0]!==S.v[A][0]||p.v[A][1]!==S.v[A][1]||p.o[A][0]!==S.o[A][0]||p.o[A][1]!==S.o[A][1]||p.i[A][0]!==S.i[A][0]||p.i[A][1]!==S.i[A][1])return!1;return!0}function s(p){n(this.v,p)||(this.v=shapePool.clone(p),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 p;this.kf?p=this.pv:this.data.ks?p=this.data.ks.k:p=this.data.pt.k;var S,A=this.effectsSequence.length;for(S=0;S<A;S+=1)p=this.effectsSequence[S](p);this.setVValue(p),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(p,S,A){this.propType="shape",this.comp=p.comp,this.container=p,this.elem=p,this.data=S,this.k=!1,this.kf=!1,this._mdf=!1;var b=A===3?S.pt.k:S.ks.k;this.v=shapePool.clone(b),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(p){this.effectsSequence.push(p),this.container.addDynamicProperty(this)}o.prototype.interpolateShape=t,o.prototype.getValue=i,o.prototype.setVValue=s,o.prototype.addEffect=l;function c(p,S,A){this.propType="shape",this.comp=p.comp,this.elem=p,this.container=p,this.offsetTime=p.data.st,this.keyframes=A===3?S.pt.k:S.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var b=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,b),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 d=function(){var p=roundCorner;function S(A,b){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=b.d,this.elem=A,this.comp=A.comp,this.frameId=-1,this.initDynamicPropertyContainer(A),this.p=PropertyFactory.getProp(A,b.p,1,0,this),this.s=PropertyFactory.getProp(A,b.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 b=this.p.v[0],C=this.p.v[1],x=this.s.v[0]/2,D=this.s.v[1]/2,I=this.d!==3,N=this.v;N.v[0][0]=b,N.v[0][1]=C-D,N.v[1][0]=I?b+x:b-x,N.v[1][1]=C,N.v[2][0]=b,N.v[2][1]=C+D,N.v[3][0]=I?b-x:b+x,N.v[3][1]=C,N.i[0][0]=I?b-x*p:b+x*p,N.i[0][1]=C-D,N.i[1][0]=I?b+x:b-x,N.i[1][1]=C-D*p,N.i[2][0]=I?b+x*p:b-x*p,N.i[2][1]=C+D,N.i[3][0]=I?b-x:b+x,N.i[3][1]=C+D*p,N.o[0][0]=I?b+x*p:b-x*p,N.o[0][1]=C-D,N.o[1][0]=I?b+x:b-x,N.o[1][1]=C+D*p,N.o[2][0]=I?b-x*p:b+x*p,N.o[2][1]=C+D,N.o[3][0]=I?b-x:b+x,N.o[3][1]=C-D*p}},extendPrototype([DynamicPropertyContainer],S),S}(),y=function(){function p(S,A){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=S,this.comp=S.comp,this.data=A,this.frameId=-1,this.d=A.d,this.initDynamicPropertyContainer(S),A.sy===1?(this.ir=PropertyFactory.getProp(S,A.ir,0,0,this),this.is=PropertyFactory.getProp(S,A.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(S,A.pt,0,0,this),this.p=PropertyFactory.getProp(S,A.p,1,0,this),this.r=PropertyFactory.getProp(S,A.r,0,degToRads,this),this.or=PropertyFactory.getProp(S,A.or,0,0,this),this.os=PropertyFactory.getProp(S,A.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return p.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var A=Math.floor(this.pt.v)*2,b=Math.PI*2/A,C=!0,x=this.or.v,D=this.ir.v,I=this.os.v,N=this.is.v,B=2*Math.PI*x/(A*2),L=2*Math.PI*D/(A*2),R,_,j,H,M=-Math.PI/2;M+=this.r.v;var F=this.data.d===3?-1:1;for(this.v._length=0,R=0;R<A;R+=1){_=C?x:D,j=C?I:N,H=C?B:L;var P=_*Math.cos(M),T=_*Math.sin(M),O=P===0&&T===0?0:T/Math.sqrt(P*P+T*T),k=P===0&&T===0?0:-P/Math.sqrt(P*P+T*T);P+=+this.p.v[0],T+=+this.p.v[1],this.v.setTripleAt(P,T,P-O*H*j*F,T-k*H*j*F,P+O*H*j*F,T+k*H*j*F,R,!0),C=!C,M+=b*F}},convertPolygonToPath:function(){var A=Math.floor(this.pt.v),b=Math.PI*2/A,C=this.or.v,x=this.os.v,D=2*Math.PI*C/(A*4),I,N=-Math.PI*.5,B=this.data.d===3?-1:1;for(N+=this.r.v,this.v._length=0,I=0;I<A;I+=1){var L=C*Math.cos(N),R=C*Math.sin(N),_=L===0&&R===0?0:R/Math.sqrt(L*L+R*R),j=L===0&&R===0?0:-L/Math.sqrt(L*L+R*R);L+=+this.p.v[0],R+=+this.p.v[1],this.v.setTripleAt(L,R,L-_*D*x*B,R-j*D*x*B,L+_*D*x*B,R+j*D*x*B,I,!0),N+=b*B}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],p),p}(),f=function(){function p(S,A){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=A.d,this.initDynamicPropertyContainer(S),this.p=PropertyFactory.getProp(S,A.p,1,0,this),this.s=PropertyFactory.getProp(S,A.s,1,0,this),this.r=PropertyFactory.getProp(S,A.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return p.prototype={convertRectToPath:function(){var A=this.p.v[0],b=this.p.v[1],C=this.s.v[0]/2,x=this.s.v[1]/2,D=bmMin(C,x,this.r.v),I=D*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(A+C,b-x+D,A+C,b-x+D,A+C,b-x+I,0,!0),this.v.setTripleAt(A+C,b+x-D,A+C,b+x-I,A+C,b+x-D,1,!0),D!==0?(this.v.setTripleAt(A+C-D,b+x,A+C-D,b+x,A+C-I,b+x,2,!0),this.v.setTripleAt(A-C+D,b+x,A-C+I,b+x,A-C+D,b+x,3,!0),this.v.setTripleAt(A-C,b+x-D,A-C,b+x-D,A-C,b+x-I,4,!0),this.v.setTripleAt(A-C,b-x+D,A-C,b-x+I,A-C,b-x+D,5,!0),this.v.setTripleAt(A-C+D,b-x,A-C+D,b-x,A-C+I,b-x,6,!0),this.v.setTripleAt(A+C-D,b-x,A+C-I,b-x,A+C-D,b-x,7,!0)):(this.v.setTripleAt(A-C,b+x,A-C+I,b+x,A-C,b+x,2),this.v.setTripleAt(A-C,b-x,A-C,b-x+I,A-C,b-x,3))):(this.v.setTripleAt(A+C,b-x+D,A+C,b-x+I,A+C,b-x+D,0,!0),D!==0?(this.v.setTripleAt(A+C-D,b-x,A+C-D,b-x,A+C-I,b-x,1,!0),this.v.setTripleAt(A-C+D,b-x,A-C+I,b-x,A-C+D,b-x,2,!0),this.v.setTripleAt(A-C,b-x+D,A-C,b-x+D,A-C,b-x+I,3,!0),this.v.setTripleAt(A-C,b+x-D,A-C,b+x-I,A-C,b+x-D,4,!0),this.v.setTripleAt(A-C+D,b+x,A-C+D,b+x,A-C+I,b+x,5,!0),this.v.setTripleAt(A+C-D,b+x,A+C-I,b+x,A+C-D,b+x,6,!0),this.v.setTripleAt(A+C,b+x-D,A+C,b+x-D,A+C,b+x-I,7,!0)):(this.v.setTripleAt(A-C,b-x,A-C+I,b-x,A-C,b-x,1,!0),this.v.setTripleAt(A-C,b+x,A-C,b+x-I,A-C,b+x,2,!0),this.v.setTripleAt(A+C,b+x,A+C-I,b+x,A+C,b+x,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],p),p}();function u(p,S,A){var b;if(A===3||A===4){var C=A===3?S.pt:S.ks,x=C.k;x.length?b=new c(p,S,A):b=new o(p,S,A)}else A===5?b=new f(p,S):A===6?b=new d(p,S):A===7&&(b=new y(p,S));return b.k&&p.addDynamicProperty(b),b}function m(){return o}function g(){return c}var E={};return E.getShapeProp=u,E.getConstructorFunction=m,E.getKeyframedConstructorFunction=g,E}();/*!
  2. Transformation Matrix v2.0
  3. (c) Epistemex 2014-2015
  4. www.epistemex.com
  5. By Ken Fyrstenberg
  6. Contributions by leeoniya.
  7. License: MIT, header required.
  8. */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(P){if(P===0)return this;var T=e(P),O=t(P);return this._t(T,-O,0,0,O,T,0,0,0,0,1,0,0,0,0,1)}function i(P){if(P===0)return this;var T=e(P),O=t(P);return this._t(1,0,0,0,0,T,-O,0,0,O,T,0,0,0,0,1)}function o(P){if(P===0)return this;var T=e(P),O=t(P);return this._t(T,0,O,0,0,1,0,0,-O,0,T,0,0,0,0,1)}function l(P){if(P===0)return this;var T=e(P),O=t(P);return this._t(T,-O,0,0,O,T,0,0,0,0,1,0,0,0,0,1)}function c(P,T){return this._t(1,T,P,1,0,0)}function d(P,T){return this.shear(r(P),r(T))}function y(P,T){var O=e(T),k=t(T);return this._t(O,k,0,0,-k,O,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(P),1,0,0,0,0,1,0,0,0,0,1)._t(O,-k,0,0,k,O,0,0,0,0,1,0,0,0,0,1)}function f(P,T,O){return!O&&O!==0&&(O=1),P===1&&T===1&&O===1?this:this._t(P,0,0,0,0,T,0,0,0,0,O,0,0,0,0,1)}function u(P,T,O,k,z,Q,X,re,q,te,ue,fe,he,pe,oe,ne){return this.props[0]=P,this.props[1]=T,this.props[2]=O,this.props[3]=k,this.props[4]=z,this.props[5]=Q,this.props[6]=X,this.props[7]=re,this.props[8]=q,this.props[9]=te,this.props[10]=ue,this.props[11]=fe,this.props[12]=he,this.props[13]=pe,this.props[14]=oe,this.props[15]=ne,this}function m(P,T,O){return O=O||0,P!==0||T!==0||O!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,P,T,O,1):this}function g(P,T,O,k,z,Q,X,re,q,te,ue,fe,he,pe,oe,ne){var Z=this.props;if(P===1&&T===0&&O===0&&k===0&&z===0&&Q===1&&X===0&&re===0&&q===0&&te===0&&ue===1&&fe===0)return Z[12]=Z[12]*P+Z[15]*he,Z[13]=Z[13]*Q+Z[15]*pe,Z[14]=Z[14]*ue+Z[15]*oe,Z[15]*=ne,this._identityCalculated=!1,this;var Ee=Z[0],Se=Z[1],be=Z[2],Te=Z[3],Ve=Z[4],ye=Z[5],Ae=Z[6],we=Z[7],Ne=Z[8],xe=Z[9],De=Z[10],Pe=Z[11],Fe=Z[12],ke=Z[13],U=Z[14],$=Z[15];return Z[0]=Ee*P+Se*z+be*q+Te*he,Z[1]=Ee*T+Se*Q+be*te+Te*pe,Z[2]=Ee*O+Se*X+be*ue+Te*oe,Z[3]=Ee*k+Se*re+be*fe+Te*ne,Z[4]=Ve*P+ye*z+Ae*q+we*he,Z[5]=Ve*T+ye*Q+Ae*te+we*pe,Z[6]=Ve*O+ye*X+Ae*ue+we*oe,Z[7]=Ve*k+ye*re+Ae*fe+we*ne,Z[8]=Ne*P+xe*z+De*q+Pe*he,Z[9]=Ne*T+xe*Q+De*te+Pe*pe,Z[10]=Ne*O+xe*X+De*ue+Pe*oe,Z[11]=Ne*k+xe*re+De*fe+Pe*ne,Z[12]=Fe*P+ke*z+U*q+$*he,Z[13]=Fe*T+ke*Q+U*te+$*pe,Z[14]=Fe*O+ke*X+U*ue+$*oe,Z[15]=Fe*k+ke*re+U*fe+$*ne,this._identityCalculated=!1,this}function E(P){var T=P.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 p(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function S(P){for(var T=0;T<16;){if(P.props[T]!==this.props[T])return!1;T+=1}return!0}function A(P){var T;for(T=0;T<16;T+=1)P.props[T]=this.props[T];return P}function b(P){var T;for(T=0;T<16;T+=1)this.props[T]=P[T]}function C(P,T,O){return{x:P*this.props[0]+T*this.props[4]+O*this.props[8]+this.props[12],y:P*this.props[1]+T*this.props[5]+O*this.props[9]+this.props[13],z:P*this.props[2]+T*this.props[6]+O*this.props[10]+this.props[14]}}function x(P,T,O){return P*this.props[0]+T*this.props[4]+O*this.props[8]+this.props[12]}function D(P,T,O){return P*this.props[1]+T*this.props[5]+O*this.props[9]+this.props[13]}function I(P,T,O){return P*this.props[2]+T*this.props[6]+O*this.props[10]+this.props[14]}function N(){var P=this.props[0]*this.props[5]-this.props[1]*this.props[4],T=this.props[5]/P,O=-this.props[1]/P,k=-this.props[4]/P,z=this.props[0]/P,Q=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/P,X=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/P,re=new Matrix;return re.props[0]=T,re.props[1]=O,re.props[4]=k,re.props[5]=z,re.props[12]=Q,re.props[13]=X,re}function B(P){var T=this.getInverseMatrix();return T.applyToPointArray(P[0],P[1],P[2]||0)}function L(P){var T,O=P.length,k=[];for(T=0;T<O;T+=1)k[T]=B(P[T]);return k}function R(P,T,O){var k=createTypedArray("float32",6);if(this.isIdentity())k[0]=P[0],k[1]=P[1],k[2]=T[0],k[3]=T[1],k[4]=O[0],k[5]=O[1];else{var z=this.props[0],Q=this.props[1],X=this.props[4],re=this.props[5],q=this.props[12],te=this.props[13];k[0]=P[0]*z+P[1]*X+q,k[1]=P[0]*Q+P[1]*re+te,k[2]=T[0]*z+T[1]*X+q,k[3]=T[0]*Q+T[1]*re+te,k[4]=O[0]*z+O[1]*X+q,k[5]=O[0]*Q+O[1]*re+te}return k}function _(P,T,O){var k;return this.isIdentity()?k=[P,T,O]:k=[P*this.props[0]+T*this.props[4]+O*this.props[8]+this.props[12],P*this.props[1]+T*this.props[5]+O*this.props[9]+this.props[13],P*this.props[2]+T*this.props[6]+O*this.props[10]+this.props[14]],k}function j(P,T){if(this.isIdentity())return P+","+T;var O=this.props;return Math.round((P*O[0]+T*O[4]+O[12])*100)/100+","+Math.round((P*O[1]+T*O[5]+O[13])*100)/100}function H(){for(var P=0,T=this.props,O="matrix3d(",k=1e4;P<16;)O+=a(T[P]*k)/k,O+=P===15?")":",",P+=1;return O}function M(P){var T=1e4;return P<1e-6&&P>0||P>-1e-6&&P<0?a(P*T)/T:P}function F(){var P=this.props,T=M(P[0]),O=M(P[1]),k=M(P[4]),z=M(P[5]),Q=M(P[12]),X=M(P[13]);return"matrix("+T+","+O+","+k+","+z+","+Q+","+X+")"}return function(){this.reset=n,this.rotate=s,this.rotateX=i,this.rotateY=o,this.rotateZ=l,this.skew=d,this.skewFromAxis=y,this.shear=c,this.scale=f,this.setTransform=u,this.translate=m,this.transform=g,this.multiply=E,this.applyToPoint=C,this.applyToX=x,this.applyToY=D,this.applyToZ=I,this.applyToPointArray=_,this.applyToTriplePoints=R,this.applyToPointStringified=j,this.toCSS=H,this.to2dCSS=F,this.clone=A,this.cloneFromProps=b,this.equals=S,this.inversePoints=L,this.inversePoint=B,this.getInverseMatrix=N,this._t=this.transform,this.isIdentity=p,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(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 d,y;c.s*n<=a?d=0:d=(c.s*n-a)/r,c.e*n>=a+r?y=1:y=(c.e*n-a)/r,i.push([d,y])}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,d,y,f,u=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 m=[],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,f=0,!g.shape._mdf&&g.pathsData.length)f=g.totalShapeLength;else{for(d=this.releasePathsData(g.pathsData),l=0;l<c;l+=1)y=bez.getSegmentsLength(s.shapes[l]),d.push(y),f+=y.totalLength;g.totalShapeLength=f,g.pathsData=d}u+=f,g.shape._mdf=!0}var p=t,S=r,A=0,b;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?(b=this.calculateShapeEdges(t,r,g.totalShapeLength,A,u),A+=g.totalShapeLength):b=[[p,S]],c=b.length,l=0;l<c;l+=1){p=b[l][0],S=b[l][1],m.length=0,S<=1?m.push({s:g.totalShapeLength*p,e:g.totalShapeLength*S}):p>=1?m.push({s:g.totalShapeLength*(p-1),e:g.totalShapeLength*(S-1)}):(m.push({s:g.totalShapeLength*p,e:g.totalShapeLength}),m.push({s:0,e:g.totalShapeLength*(S-1)}));var C=this.addShapes(g,m[0]);if(m[0].s!==m[0].e){if(m.length>1){var x=g.shape.paths.shapes[g.shape.paths._length-1];if(x.c){var D=C.pop();this.addPaths(C,E),C=this.addShapes(g,m[1],D)}else this.addPaths(C,E),C=this.addShapes(g,m[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,d,y,f,u,m=[],g,E=!0;for(r?(y=r._length,g=r._length):(r=shapePool.newElement(),y=0,g=0),m.push(r),s=0;s<i;s+=1){for(f=a[s].lengths,r.c=n[s].c,l=n[s].c?f.length:f.length+1,o=1;o<l;o+=1)if(d=f[o-1],c+d.addedLength<t.s)c+=d.addedLength,r.c=!1;else if(c>t.e){r.c=!1;break}else t.s<=c&&t.e>=c+d.addedLength?(this.addSegment(n[s].v[o-1],n[s].o[o-1],n[s].i[o],n[s].v[o],r,y,E),E=!1):(u=bez.getNewSegment(n[s].v[o-1],n[s].v[o],n[s].o[o-1],n[s].i[o],(t.s-c)/d.addedLength,(t.e-c)/d.addedLength,f[o-1]),this.addSegmentFromArray(u,r,y,E),E=!1,r.c=!1),c+=d.addedLength,y+=1;if(n[s].c&&f.length){if(d=f[o-1],c<=t.e){var p=f[o-1].addedLength;t.s<=c&&t.e>=c+p?(this.addSegment(n[s].v[o-1],n[s].o[o-1],n[s].i[0],n[s].v[0],r,y,E),E=!1):(u=bez.getNewSegment(n[s].v[o-1],n[s].v[0],n[s].o[o-1],n[s].i[0],(t.s-c)/p,(t.e-c)/p,f[o-1]),this.addSegmentFromArray(u,r,y,E),E=!1,r.c=!1)}else r.c=!1;c+=d.addedLength,y+=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,m.push(r),y=0)}return m};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,d,y,f;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,d=e.o[s][1]+(a[1]-e.o[s][1])*-r,y=e.i[s][0]+(a[0]-e.i[s][0])*-r,f=e.i[s][1]+(a[1]-e.i[s][1])*-r,i.setTripleAt(o,l,c,d,y,f,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 d,y;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?(d=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/c,0),y=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?(d=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/c,0),y=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/c,0)):(d=this.p.pv,y=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){d=[],y=[];var f=this.px,u=this.py;f._caching.lastFrame+f.offsetTime<=f.keyframes[0].t?(d[0]=f.getValueAtTime((f.keyframes[0].t+.01)/c,0),d[1]=u.getValueAtTime((u.keyframes[0].t+.01)/c,0),y[0]=f.getValueAtTime(f.keyframes[0].t/c,0),y[1]=u.getValueAtTime(u.keyframes[0].t/c,0)):f._caching.lastFrame+f.offsetTime>=f.keyframes[f.keyframes.length-1].t?(d[0]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/c,0),d[1]=u.getValueAtTime(u.keyframes[u.keyframes.length-1].t/c,0),y[0]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-.01)/c,0),y[1]=u.getValueAtTime((u.keyframes[u.keyframes.length-1].t-.01)/c,0)):(d=[f.pv,u.pv],y[0]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-.01)/c,f.offsetTime),y[1]=u.getValueAtTime((u._caching.lastFrame+u.offsetTime-.01)/c,u.offsetTime))}else y=e,d=y;this.v.rotate(-Math.atan2(d[1]-y[1],d[0]-y[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,d){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(d||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 y,f=c.or.k.length;for(y=0;y<f;y+=1)c.or.k[y].to=null,c.or.k[y].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,d){return new i(l,c,d)}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 d=this.elemsData[a].it,y=d[d.length-1];y.transform.op.v!==0?(y.transform.op._mdf=!0,y.transform.op.v=0):y.transform.op._mdf=!1}s+=1}this._currentCopies=o;var f=this.o.v,u=f%1,m=f>0?Math.floor(f):Math.ceil(f),g=this.pMatrix.props,E=this.rMatrix.props,p=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var S=0;if(f>0){for(;S<m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),S+=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,u,!1),S+=u)}else if(f<0){for(;S>m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),S-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),S-=u)}a=this.data.m===1?0:this._currentCopies-1,n=this.data.m===1?1:-1,s=this._currentCopies;for(var A,b;s;){if(t=this.elemsData[a].it,r=t[t.length-1].transform.mProps.v.props,b=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(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),A=0;A<b;A+=1)r[A]=this.matrix.props[A];this.matrix.reset()}else for(this.matrix.reset(),A=0;A<b;A+=1)r[A]=this.matrix.props[A];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,d,y=0,f,u,m,g,E,p;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],y),y+=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)),d=c?Math.min(c/2,t)/c:0,E=s[0]+(l[0]-s[0])*d,f=E,p=s[1]-(s[1]-l[1])*d,u=p,m=f-(f-s[0])*roundCorner,g=u-(u-s[1])*roundCorner,r.setTripleAt(f,u,m,g,E,p,y),y+=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)),d=c?Math.min(c/2,t)/c:0,m=s[0]+(l[0]-s[0])*d,f=m,g=s[1]+(l[1]-s[1])*d,u=g,E=f-(f-s[0])*roundCorner,p=u-(u-s[1])*roundCorner,r.setTripleAt(f,u,m,g,E,p,y),y+=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],y),y+=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,d=t[1]-Math.sin(r)*a*n;e.setTripleAt(c,d,c+Math.cos(o)*s,d-Math.sin(o)*s,c+Math.cos(l)*i,d-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],d=t.v[(r+1)%t._length],y=s===2?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,f=s===2?Math.sqrt(Math.pow(l[0]-d[0],2)+Math.pow(l[1]-d[1],2)):0;setPoint(e,t.v[r%t._length],o,i,a,f/((n+1)*2),y/((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),d=t.point(o);setPoint(e,d,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,d;for(r=0;r<a;r+=1){if(c=this.shapes[r],d=c.localShapeCollection,!(!c.shape._mdf&&!this._mdf&&!e))for(d.releaseShapes(),c.shape._mdf=!0,t=c.shape.paths.shapes,s=c.shape.paths._length,n=0;n<s;n+=1)d.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 d=lineIntersection(i,o,n,s);return d===null&&(d=i),new PolynomialBezier(r,c,d,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)),d=c?pointDistance(c,s):pointDistance(s,i)/2,y=polarOffset(s,o,2*d*roundCorner);return e.setXYAt(y[0],y[1],"o",e.length()-1),y=polarOffset(i,l,2*d*roundCorner),e.setTripleAt(i[0],i[1],i[0],i[1],y[0],y[1],e.length()),i}var f=pointEqual(s,t.points[2])?t.points[0]:t.points[2],u=pointEqual(i,r.points[1])?r.points[3]:r.points[1],m=lineIntersection(f,s,i,u);return m&&pointDistance(m,s)<n?(e.setTripleAt(m[0],m[1],m[0],m[1],m[0],m[1],e.length()),m):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 d=null,y=null;for(i=0;i<c.length;i+=1){var f=c[i];for(y&&(d=joinLines(n,y,f[0],r,a)),y=f[f.length-1],o=0;o<f.length;o+=1)l=f[o],d&&pointEqual(l.points[0],d)?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()),d=l.points[3]}return c.length&&joinLines(n,y,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,d;for(r=0;r<a;r+=1){if(c=this.shapes[r],d=c.localShapeCollection,!(!c.shape._mdf&&!this._mdf&&!e))for(d.releaseShapes(),c.shape._mdf=!0,t=c.shape.paths.shapes,s=c.shape.paths._length,n=0;n<s;n+=1)d.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,d=127487,y=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function f(M){var F=M.split(","),P,T=F.length,O=[];for(P=0;P<T;P+=1)F[P]!=="sans-serif"&&F[P]!=="monospace"&&O.push(F[P]);return O.join(",")}function u(M,F){var P=createTag("span");P.setAttribute("aria-hidden",!0),P.style.fontFamily=F;var T=createTag("span");T.innerText="giItT1WQy@!-/#",P.style.position="absolute",P.style.left="-10000px",P.style.top="-10000px",P.style.fontSize="300px",P.style.fontVariant="normal",P.style.fontStyle="normal",P.style.fontWeight="normal",P.style.letterSpacing="0",P.appendChild(T),document.body.appendChild(P);var O=T.offsetWidth;return T.style.fontFamily=f(M)+", "+F,{node:T,w:O,parent:P}}function m(){var M,F=this.fonts.length,P,T,O=F;for(M=0;M<F;M+=1)this.fonts[M].loaded?O-=1:this.fonts[M].fOrigin==="n"||this.fonts[M].origin===0?this.fonts[M].loaded=!0:(P=this.fonts[M].monoCase.node,T=this.fonts[M].monoCase.w,P.offsetWidth!==T?(O-=1,this.fonts[M].loaded=!0):(P=this.fonts[M].sansCase.node,T=this.fonts[M].sansCase.w,P.offsetWidth!==T&&(O-=1,this.fonts[M].loaded=!0)),this.fonts[M].loaded&&(this.fonts[M].sansCase.parent.parentNode.removeChild(this.fonts[M].sansCase.parent),this.fonts[M].monoCase.parent.parentNode.removeChild(this.fonts[M].monoCase.parent)));O!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function g(M,F){var P=document.body&&F?"svg":"canvas",T,O=getFontProperties(M);if(P==="svg"){var k=createNS("text");k.style.fontSize="100px",k.setAttribute("font-family",M.fFamily),k.setAttribute("font-style",O.style),k.setAttribute("font-weight",O.weight),k.textContent="1",M.fClass?(k.style.fontFamily="inherit",k.setAttribute("class",M.fClass)):k.style.fontFamily=M.fFamily,F.appendChild(k),T=k}else{var z=new OffscreenCanvas(500,500).getContext("2d");z.font=O.style+" "+O.weight+" 100px "+M.fFamily,T=z}function Q(X){return P==="svg"?(T.textContent=X,T.getComputedTextLength()):T.measureText(X).width}return{measureText:Q}}function E(M,F){if(!M){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=M.list;return}if(!document.body){this.isLoaded=!0,M.list.forEach(function(ue){ue.helper=g(ue),ue.cache={}}),this.fonts=M.list;return}var P=M.list,T,O=P.length,k=O;for(T=0;T<O;T+=1){var z=!0,Q,X;if(P[T].loaded=!1,P[T].monoCase=u(P[T].fFamily,"monospace"),P[T].sansCase=u(P[T].fFamily,"sans-serif"),!P[T].fPath)P[T].loaded=!0,k-=1;else if(P[T].fOrigin==="p"||P[T].origin===3){if(Q=document.querySelectorAll('style[f-forigin="p"][f-family="'+P[T].fFamily+'"], style[f-origin="3"][f-family="'+P[T].fFamily+'"]'),Q.length>0&&(z=!1),z){var re=createTag("style");re.setAttribute("f-forigin",P[T].fOrigin),re.setAttribute("f-origin",P[T].origin),re.setAttribute("f-family",P[T].fFamily),re.type="text/css",re.innerText="@font-face {font-family: "+P[T].fFamily+"; font-style: normal; src: url('"+P[T].fPath+"');}",F.appendChild(re)}}else if(P[T].fOrigin==="g"||P[T].origin===1){for(Q=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),X=0;X<Q.length;X+=1)Q[X].href.indexOf(P[T].fPath)!==-1&&(z=!1);if(z){var q=createTag("link");q.setAttribute("f-forigin",P[T].fOrigin),q.setAttribute("f-origin",P[T].origin),q.type="text/css",q.rel="stylesheet",q.href=P[T].fPath,document.body.appendChild(q)}}else if(P[T].fOrigin==="t"||P[T].origin===2){for(Q=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),X=0;X<Q.length;X+=1)P[T].fPath===Q[X].src&&(z=!1);if(z){var te=createTag("link");te.setAttribute("f-forigin",P[T].fOrigin),te.setAttribute("f-origin",P[T].origin),te.setAttribute("rel","stylesheet"),te.setAttribute("href",P[T].fPath),F.appendChild(te)}}P[T].helper=g(P[T],F),P[T].cache={},this.fonts.push(P[T])}k===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function p(M){if(M){this.chars||(this.chars=[]);var F,P=M.length,T,O=this.chars.length,k;for(F=0;F<P;F+=1){for(T=0,k=!1;T<O;)this.chars[T].style===M[F].style&&this.chars[T].fFamily===M[F].fFamily&&this.chars[T].ch===M[F].ch&&(k=!0),T+=1;k||(this.chars.push(M[F]),O+=1)}}}function S(M,F,P){for(var T=0,O=this.chars.length;T<O;){if(this.chars[T].ch===M&&this.chars[T].style===F&&this.chars[T].fFamily===P)return this.chars[T];T+=1}return(typeof M=="string"&&M.charCodeAt(0)!==13||!M)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",M,F,P)),t}function A(M,F,P){var T=this.getFontByName(F),O=M;if(!T.cache[O]){var k=T.helper;if(M===" "){var z=k.measureText("|"+M+"|"),Q=k.measureText("||");T.cache[O]=(z-Q)/100}else T.cache[O]=k.measureText(M)/100}return T.cache[O]*P}function b(M){for(var F=0,P=this.fonts.length;F<P;){if(this.fonts[F].fName===M)return this.fonts[F];F+=1}return this.fonts[0]}function C(M){var F=0,P=M.charCodeAt(0);if(P>=55296&&P<=56319){var T=M.charCodeAt(1);T>=56320&&T<=57343&&(F=(P-55296)*1024+T-56320+65536)}return F}function x(M,F){var P=M.toString(16)+F.toString(16);return y.indexOf(P)!==-1}function D(M){return M===l}function I(M){return M===o}function N(M){var F=C(M);return F>=c&&F<=d}function B(M){return N(M.substr(0,2))&&N(M.substr(2,2))}function L(M){return r.indexOf(M)!==-1}function R(M,F){var P=C(M.substr(F,2));if(P!==a)return!1;var T=0;for(F+=2;T<5;){if(P=C(M.substr(F,2)),P<s||P>i)return!1;T+=1,F+=2}return C(M.substr(F,2))===n}function _(){this.isLoaded=!0}var j=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)};j.isModifier=x,j.isZeroWidthJoiner=D,j.isFlagEmoji=B,j.isRegionalCode=N,j.isCombinedCharacter=L,j.isRegionalFlag=R,j.isVariationSelector=I,j.BLACK_FLAG_CODE_POINT=a;var H={addChars:p,addFonts:E,getCharData:S,getFontByName:b,measureText:A,checkLoadedFonts:m,setIsLoaded:_};return j.prototype=H,j}();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=[],d,y,f=createElementID(),u,m,g,E,p="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)&&(p="mask",S="mask"),(o[n].mode==="s"||o[n].mode==="i")&&l===0?(u=createNS("rect"),u.setAttribute("fill","#ffffff"),u.setAttribute("width",this.element.comp.data.w||0),u.setAttribute("height",this.element.comp.data.h||0),c.push(u)):u=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 A;if(o[n].x.k!==0?(p="mask",S="mask",E=PropertyFactory.getProp(this.element,o[n].x,0,null,this.element),A=createElementID(),m=createNS("filter"),m.setAttribute("id",A),g=createNS("feMorphology"),g.setAttribute("operator","erode"),g.setAttribute("in","SourceGraphic"),g.setAttribute("radius","0"),m.appendChild(g),a.appendChild(m),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:A,lastRadius:0},o[n].mode==="i"){y=c.length;var b=createNS("g");for(d=0;d<y;d+=1)b.appendChild(c[d]);var C=createNS("mask");C.setAttribute("mask-type","alpha"),C.setAttribute("id",f+"_"+l),C.appendChild(i),a.appendChild(C),b.setAttribute("mask","url("+getLocationHref()+"#"+f+"_"+l+")"),c.length=0,c.push(b)}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:u},this.viewData[n].prop.k||this.drawPath(o[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=createNS(p),s=c.length,n=0;n<s;n+=1)this.maskElement.appendChild(c[n]);l>0&&(this.maskElement.setAttribute("id",f),this.element.maskedElement.setAttribute(S,"url("+getLocationHref()+"#"+f+")"),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 d=createNS("feComponentTransfer");d.setAttribute("in","SourceGraphic"),n.appendChild(d);var y=createNS("feFuncA");y.setAttribute("type","table"),y.setAttribute("tableValues","1.0 0.0"),d.appendChild(y),this.globalData.defs.appendChild(n);var f=createNS("rect");f.setAttribute("width",this.comp.data.w),f.setAttribute("height",this.comp.data.h),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("fill","#ffffff"),f.setAttribute("opacity","0"),c.setAttribute("filter","url("+getLocationHref()+"#"+a+")"),c.appendChild(f),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(f),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 d=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),d.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=d,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(y){switch(y.ty){case"fl":return o;case"gf":return c;case"gs":return l;case"st":return d;case"sh":case"el":case"rc":case"sr":return i;case"tr":return n;case"no":return s;default:return null}}function n(y,f,u){(u||f.transform.op._mdf)&&f.transform.container.setAttribute("opacity",f.transform.op.v),(u||f.transform.mProps._mdf)&&f.transform.container.setAttribute("transform",f.transform.mProps.v.to2dCSS())}function s(){}function i(y,f,u){var m,g,E,p,S,A,b=f.styles.length,C=f.lvl,x,D,I,N;for(A=0;A<b;A+=1){if(p=f.sh._mdf||u,f.styles[A].lvl<C){for(D=t.reset(),I=C-f.styles[A].lvl,N=f.transformers.length-1;!p&&I>0;)p=f.transformers[N].mProps._mdf||p,I-=1,N-=1;if(p)for(I=C-f.styles[A].lvl,N=f.transformers.length-1;I>0;)D.multiply(f.transformers[N].mProps.v),I-=1,N-=1}else D=e;if(x=f.sh.paths,g=x._length,p){for(E="",m=0;m<g;m+=1)S=x.shapes[m],S&&S._length&&(E+=buildShapeString(S,S._length,S.c,D));f.caches[A]=E}else E=f.caches[A];f.styles[A].d+=y.hd===!0?"":E,f.styles[A]._mdf=p||f.styles[A]._mdf}}function o(y,f,u){var m=f.style;(f.c._mdf||u)&&m.pElem.setAttribute("fill","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||u)&&m.pElem.setAttribute("fill-opacity",f.o.v)}function l(y,f,u){c(y,f,u),d(y,f,u)}function c(y,f,u){var m=f.gf,g=f.g._hasOpacity,E=f.s.v,p=f.e.v;if(f.o._mdf||u){var S=y.ty==="gf"?"fill-opacity":"stroke-opacity";f.style.pElem.setAttribute(S,f.o.v)}if(f.s._mdf||u){var A=y.t===1?"x1":"cx",b=A==="x1"?"y1":"cy";m.setAttribute(A,E[0]),m.setAttribute(b,E[1]),g&&!f.g._collapsable&&(f.of.setAttribute(A,E[0]),f.of.setAttribute(b,E[1]))}var C,x,D,I;if(f.g._cmdf||u){C=f.cst;var N=f.g.c;for(D=C.length,x=0;x<D;x+=1)I=C[x],I.setAttribute("offset",N[x*4]+"%"),I.setAttribute("stop-color","rgb("+N[x*4+1]+","+N[x*4+2]+","+N[x*4+3]+")")}if(g&&(f.g._omdf||u)){var B=f.g.o;for(f.g._collapsable?C=f.cst:C=f.ost,D=C.length,x=0;x<D;x+=1)I=C[x],f.g._collapsable||I.setAttribute("offset",B[x*2]+"%"),I.setAttribute("stop-opacity",B[x*2+1])}if(y.t===1)(f.e._mdf||u)&&(m.setAttribute("x2",p[0]),m.setAttribute("y2",p[1]),g&&!f.g._collapsable&&(f.of.setAttribute("x2",p[0]),f.of.setAttribute("y2",p[1])));else{var L;if((f.s._mdf||f.e._mdf||u)&&(L=Math.sqrt(Math.pow(E[0]-p[0],2)+Math.pow(E[1]-p[1],2)),m.setAttribute("r",L),g&&!f.g._collapsable&&f.of.setAttribute("r",L)),f.e._mdf||f.h._mdf||f.a._mdf||u){L||(L=Math.sqrt(Math.pow(E[0]-p[0],2)+Math.pow(E[1]-p[1],2)));var R=Math.atan2(p[1]-E[1],p[0]-E[0]),_=f.h.v;_>=1?_=.99:_<=-1&&(_=-.99);var j=L*_,H=Math.cos(R+f.a.v)*j+E[0],M=Math.sin(R+f.a.v)*j+E[1];m.setAttribute("fx",H),m.setAttribute("fy",M),g&&!f.g._collapsable&&(f.of.setAttribute("fx",H),f.of.setAttribute("fy",M))}}}function d(y,f,u){var m=f.style,g=f.d;g&&(g._mdf||u)&&g.dashStr&&(m.pElem.setAttribute("stroke-dasharray",g.dashStr),m.pElem.setAttribute("stroke-dashoffset",g.dashoffset[0])),f.c&&(f.c._mdf||u)&&m.pElem.setAttribute("stroke","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||u)&&m.pElem.setAttribute("stroke-opacity",f.o.v),(f.w._mdf||u)&&(m.pElem.setAttribute("stroke-width",f.w.v),m.msElem&&m.msElem.setAttribute("stroke-width",f.w.v))}return r}();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t=this.shapes.length,r,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,d,y,f=[],u=[],m,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),f.push(t[l].style);else if(e[l].ty==="gr"){if(!E)t[l]=this.createGroupElement(e[l]);else for(y=t[l].it.length,d=0;d<y;d+=1)t[l].prevViewData[d]=t[l].it[d];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)),m=t[l].transform,o.push(m)):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)),u.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),u.push(g));this.addProcessedElement(e[l],l+1)}for(c=f.length,l=0;l<c;l+=1)f[l].closed=!0;for(c=u.length,l=0;l<c;l+=1)u[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,d=0,y=0,f=0,u=[],m=0,g=0,E,p,S=t.getFontByName(e.f),A,b=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 x=e.tr/1e3*e.finalSize,D;if(e.sz)for(var I=!0,N=e.sz[0],B=e.sz[1],L,R;I;){R=this.buildFinalText(e.t),L=0,m=0,s=R.length,x=e.tr/1e3*e.finalSize;var _=-1;for(n=0;n<s;n+=1)D=R[n].charCodeAt(0),i=!1,R[n]===" "?_=n:(D===13||D===3)&&(m=0,i=!0,L+=e.finalLineHeight||e.finalSize*1.2),t.chars?(A=t.getCharData(R[n],S.fStyle,S.fFamily),b=i?0:A.w*e.finalSize/100):b=t.measureText(R[n],e.f,e.finalSize),m+b>N&&R[n]!==" "?(_===-1?s+=1:n=_,L+=e.finalLineHeight||e.finalSize*1.2,R.splice(n,_===n?1:0,"\r"),_=-1,m=0):(m+=b,m+=x);L+=S.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&B<L?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=R,s=e.finalText.length,I=!1)}m=-x,b=0;var j=0,H;for(n=0;n<s;n+=1)if(i=!1,H=e.finalText[n],D=H.charCodeAt(0),D===13||D===3?(j=0,u.push(m),g=m>g?m:g,m=-2*x,l="",i=!0,f+=1):l=H,t.chars?(A=t.getCharData(H,S.fStyle,t.getFontByName(e.f).fFamily),b=i?0:A.w*e.finalSize/100):b=t.measureText(l,e.f,e.finalSize),H===" "?j+=b+x:(m+=b+x+j,j=0),a.push({l:b,an:b,add:d,n:i,anIndexes:[],val:l,line:f,animatorJustifyOffset:0}),c==2){if(d+=b,l===""||l===" "||n===s-1){for((l===""||l===" ")&&(d-=b);y<=n;)a[y].an=d,a[y].ind=o,a[y].extra=b,y+=1;o+=1,d=0}}else if(c==3){if(d+=b,l===""||n===s-1){for(l===""&&(d-=b);y<=n;)a[y].an=d,a[y].ind=o,a[y].extra=b,y+=1;d=0,o+=1}}else a[o].ind=o,a[o].extra=0,o+=1;if(e.l=a,g=m>g?m:g,u.push(m),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=u;var M=r.a,F,P;p=M.length;var T,O,k=[];for(E=0;E<p;E+=1){for(F=M[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),O=0,T=F.s.b,n=0;n<s;n+=1)P=a[n],P.anIndexes[E]=O,(T==1&&P.val!==""||T==2&&P.val!==""&&P.val!==" "||T==3&&(P.n||P.val==" "||n==s-1)||T==4&&(P.n||n==s-1))&&(F.s.rn===1&&k.push(O),O+=1);r.a[E].s.totalChars=O;var z=-1,Q;if(F.s.rn===1)for(n=0;n<s;n+=1)P=a[n],z!=P.anIndexes[E]&&(z=P.anIndexes[E],Q=k.splice(Math.floor(Math.random()*k.length),1)[0]),P.anIndexes[E]=Q}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,d=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:d=1+this.xe.v/100;var y=BezierFactory.getBezierEasing(o,l,c,d).get,f=0,u=this.finalS,m=this.finalE,g=this.data.sh;if(g===2)m===u?f=i>=m?1:0:f=e(0,t(.5/(m-u)+(i-u)/(m-u),1)),f=y(f);else if(g===3)m===u?f=i>=m?0:1:f=1-e(0,t(.5/(m-u)+(i-u)/(m-u),1)),f=y(f);else if(g===4)m===u?f=0:(f=e(0,t(.5/(m-u)+(i-u)/(m-u),1)),f<.5?f*=2:f=1-2*(f-.5)),f=y(f);else if(g===5){if(m===u)f=0;else{var E=m-u;i=t(e(0,i+.5-u),m-u);var p=-E/2+i,S=E/2;f=Math.sqrt(1-p*p/(S*S))}f=y(f)}else g===6?(m===u?f=0:(i=t(e(0,i+.5-u),m-u),f=(1+Math.cos(Math.PI+Math.PI*2*i/(m-u)))/2),f=y(f)):(i>=r(u)&&(i-u<0?f=e(0,t(t(m,1)-(u-i),1)):f=e(0,t(m-i,1))),f=y(f));if(this.sm.v!==100){var A=this.sm.v*.01;A===0&&(A=1e-8);var b=.5-A*.5;f<b?f=0:(f=(f-b)/A,f>1&&(f=1))}return f*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,d=this.e.v/o+l;if(c>d){var y=c;c=d,d=y}this.finalS=c,this.finalE=d}},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,d,y,f=e.l,u,m,g,E,p,S,A,b,C,x,D,I,N,B,L;if(this._hasMaskedPath){if(L=this._pathData.m,!this._pathData.n||this._pathData._mdf){var R=L.v;this._pathData.r.v&&(R=R.reverse()),u={tLength:0,segments:[]},y=R._length-1;var _;for(I=0,d=0;d<y;d+=1)_=bez.buildBezierData(R.v[d],R.v[d+1],[R.o[d][0]-R.v[d][0],R.o[d][1]-R.v[d][1]],[R.i[d+1][0]-R.v[d+1][0],R.i[d+1][1]-R.v[d+1][1]]),u.tLength+=_.segmentLength,u.segments.push(_),I+=_.segmentLength;d=y,L.v.c&&(_=bez.buildBezierData(R.v[d],R.v[0],[R.o[d][0]-R.v[d][0],R.o[d][1]-R.v[d][1]],[R.i[0][0]-R.v[0][0],R.i[0][1]-R.v[0][1]]),u.tLength+=_.segmentLength,u.segments.push(_),I+=_.segmentLength),this._pathData.pi=u}if(u=this._pathData.pi,m=this._pathData.f.v,A=0,S=1,E=0,p=!0,x=u.segments,m<0&&L.v.c)for(u.tLength<Math.abs(m)&&(m=-Math.abs(m)%u.tLength),A=x.length-1,C=x[A].points,S=C.length-1;m<0;)m+=C[S].partialLength,S-=1,S<0&&(A-=1,C=x[A].points,S=C.length-1);C=x[A].points,b=C[S-1],g=C[S],D=g.partialLength}y=f.length,l=0,c=0;var j=e.finalSize*1.2*.714,H=!0,M,F,P,T,O;T=a.length;var k,z=-1,Q,X,re,q=m,te=A,ue=S,fe=-1,he,pe,oe,ne,Z,Ee,Se,be,Te="",Ve=this.defaultPropsArray,ye;if(e.j===2||e.j===1){var Ae=0,we=0,Ne=e.j===2?-.5:-1,xe=0,De=!0;for(d=0;d<y;d+=1)if(f[d].n){for(Ae&&(Ae+=we);xe<d;)f[xe].animatorJustifyOffset=Ae,xe+=1;Ae=0,De=!0}else{for(P=0;P<T;P+=1)M=a[P].a,M.t.propType&&(De&&e.j===2&&(we+=M.t.v*Ne),F=a[P].s,k=F.getMult(f[d].anIndexes[P],n.a[P].s.totalChars),k.length?Ae+=M.t.v*k[0]*Ne:Ae+=M.t.v*k*Ne);De=!1}for(Ae&&(Ae+=we);xe<d;)f[xe].animatorJustifyOffset=Ae,xe+=1}for(d=0;d<y;d+=1){if(s.reset(),he=1,f[d].n)l=0,c+=e.yOffset,c+=H?1:0,m=q,H=!1,this._hasMaskedPath&&(A=te,S=ue,C=x[A].points,b=C[S-1],g=C[S],D=g.partialLength,E=0),Te="",be="",Ee="",ye="",Ve=this.defaultPropsArray;else{if(this._hasMaskedPath){if(fe!==f[d].line){switch(e.j){case 1:m+=I-e.lineWidths[f[d].line];break;case 2:m+=(I-e.lineWidths[f[d].line])/2;break}fe=f[d].line}z!==f[d].ind&&(f[z]&&(m+=f[z].extra),m+=f[d].an/2,z=f[d].ind),m+=r[0]*f[d].an*.005;var Pe=0;for(P=0;P<T;P+=1)M=a[P].a,M.p.propType&&(F=a[P].s,k=F.getMult(f[d].anIndexes[P],n.a[P].s.totalChars),k.length?Pe+=M.p.v[0]*k[0]:Pe+=M.p.v[0]*k),M.a.propType&&(F=a[P].s,k=F.getMult(f[d].anIndexes[P],n.a[P].s.totalChars),k.length?Pe+=M.a.v[0]*k[0]:Pe+=M.a.v[0]*k);for(p=!0,this._pathData.a.v&&(m=f[0].an*.5+(I-this._pathData.f.v-f[0].an*.5-f[f.length-1].an*.5)*z/(y-1),m+=this._pathData.f.v);p;)E+D>=m+Pe||!C?(N=(m+Pe-E)/g.partialLength,X=b.point[0]+(g.point[0]-b.point[0])*N,re=b.point[1]+(g.point[1]-b.point[1])*N,s.translate(-r[0]*f[d].an*.005,-(r[1]*j)*.01),p=!1):C&&(E+=g.partialLength,S+=1,S>=C.length&&(S=0,A+=1,x[A]?C=x[A].points:L.v.c?(S=0,A=0,C=x[A].points):(E-=g.partialLength,C=null)),C&&(b=g,g=C[S],D=g.partialLength));Q=f[d].an/2-f[d].add,s.translate(-Q,0,0)}else Q=f[d].an/2-f[d].add,s.translate(-Q,0,0),s.translate(-r[0]*f[d].an*.005,-r[1]*j*.01,0);for(P=0;P<T;P+=1)M=a[P].a,M.t.propType&&(F=a[P].s,k=F.getMult(f[d].anIndexes[P],n.a[P].s.totalChars),(l!==0||e.j!==0)&&(this._hasMaskedPath?k.length?m+=M.t.v*k[0]:m+=M.t.v*k:k.length?l+=M.t.v*k[0]:l+=M.t.v*k));for(e.strokeWidthAnim&&(oe=e.sw||0),e.strokeColorAnim&&(e.sc?pe=[e.sc[0],e.sc[1],e.sc[2]]:pe=[0,0,0]),e.fillColorAnim&&e.fc&&(ne=[e.fc[0],e.fc[1],e.fc[2]]),P=0;P<T;P+=1)M=a[P].a,M.a.propType&&(F=a[P].s,k=F.getMult(f[d].anIndexes[P],n.a[P].s.totalChars),k.length?s.translate(-M.a.v[0]*k[0],-M.a.v[1]*k[1],M.a.v[2]*k[2]):s.translate(-M.a.v[0]*k,-M.a.v[1]*k,M.a.v[2]*k));for(P=0;P<T;P+=1)M=a[P].a,M.s.propType&&(F=a[P].s,k=F.getMult(f[d].anIndexes[P],n.a[P].s.totalChars),k.length?s.scale(1+(M.s.v[0]-1)*k[0],1+(M.s.v[1]-1)*k[1],1):s.scale(1+(M.s.v[0]-1)*k,1+(M.s.v[1]-1)*k,1));for(P=0;P<T;P+=1){if(M=a[P].a,F=a[P].s,k=F.getMult(f[d].anIndexes[P],n.a[P].s.totalChars),M.sk.propType&&(k.length?s.skewFromAxis(-M.sk.v*k[0],M.sa.v*k[1]):s.skewFromAxis(-M.sk.v*k,M.sa.v*k)),M.r.propType&&(k.length?s.rotateZ(-M.r.v*k[2]):s.rotateZ(-M.r.v*k)),M.ry.propType&&(k.length?s.rotateY(M.ry.v*k[1]):s.rotateY(M.ry.v*k)),M.rx.propType&&(k.length?s.rotateX(M.rx.v*k[0]):s.rotateX(M.rx.v*k)),M.o.propType&&(k.length?he+=(M.o.v*k[0]-he)*k[0]:he+=(M.o.v*k-he)*k),e.strokeWidthAnim&&M.sw.propType&&(k.length?oe+=M.sw.v*k[0]:oe+=M.sw.v*k),e.strokeColorAnim&&M.sc.propType)for(Z=0;Z<3;Z+=1)k.length?pe[Z]+=(M.sc.v[Z]-pe[Z])*k[0]:pe[Z]+=(M.sc.v[Z]-pe[Z])*k;if(e.fillColorAnim&&e.fc){if(M.fc.propType)for(Z=0;Z<3;Z+=1)k.length?ne[Z]+=(M.fc.v[Z]-ne[Z])*k[0]:ne[Z]+=(M.fc.v[Z]-ne[Z])*k;M.fh.propType&&(k.length?ne=addHueToRGB(ne,M.fh.v*k[0]):ne=addHueToRGB(ne,M.fh.v*k)),M.fs.propType&&(k.length?ne=addSaturationToRGB(ne,M.fs.v*k[0]):ne=addSaturationToRGB(ne,M.fs.v*k)),M.fb.propType&&(k.length?ne=addBrightnessToRGB(ne,M.fb.v*k[0]):ne=addBrightnessToRGB(ne,M.fb.v*k))}}for(P=0;P<T;P+=1)M=a[P].a,M.p.propType&&(F=a[P].s,k=F.getMult(f[d].anIndexes[P],n.a[P].s.totalChars),this._hasMaskedPath?k.length?s.translate(0,M.p.v[1]*k[0],-M.p.v[2]*k[1]):s.translate(0,M.p.v[1]*k,-M.p.v[2]*k):k.length?s.translate(M.p.v[0]*k[0],M.p.v[1]*k[1],-M.p.v[2]*k[2]):s.translate(M.p.v[0]*k,M.p.v[1]*k,-M.p.v[2]*k));if(e.strokeWidthAnim&&(Ee=oe<0?0:oe),e.strokeColorAnim&&(Se="rgb("+Math.round(pe[0]*255)+","+Math.round(pe[1]*255)+","+Math.round(pe[2]*255)+")"),e.fillColorAnim&&e.fc&&(be="rgb("+Math.round(ne[0]*255)+","+Math.round(ne[1]*255)+","+Math.round(ne[2]*255)+")"),this._hasMaskedPath){if(s.translate(0,-e.ls),s.translate(0,r[1]*j*.01+c,0),this._pathData.p.v){B=(g.point[1]-b.point[1])/(g.point[0]-b.point[0]);var Fe=Math.atan(B)*180/Math.PI;g.point[0]<b.point[0]&&(Fe+=180),s.rotate(-Fe*Math.PI/180)}s.translate(X,re,0),m-=r[0]*f[d].an*.005,f[d+1]&&z!==f[d+1].ind&&(m+=f[d].an/2,m+=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(f[d].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[f[d].line]),0,0);break;case 2:s.translate(f[d].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[f[d].line])/2,0,0);break}s.translate(0,-e.ls),s.translate(Q,0,0),s.translate(r[0]*f[d].an*.005,r[1]*j*.01,0),l+=f[d].l+e.tr*.001*e.finalSize}i==="html"?Te=s.toCSS():i==="svg"?Te=s.to2dCSS():Ve=[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]],ye=he}o<=d?(O=new LetterProps(ye,Ee,Se,be,Te,Ve),this.renderedLetters.push(O),o+=1,this.lettersChangedFlag=!0):(O=this.renderedLetters[d],this.lettersChangedFlag=O.update(ye,Ee,Se,be,Te,Ve)||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,d="",y=this.data.singleShape,f=0,u=0,m=!0,g=r.tr*.001*r.finalSize;if(y&&!o&&!r.sz){var E=this.textContainer,p="start";switch(r.j){case 1:p="end";break;case 2:p="middle";break;default:p="start";break}E.setAttribute("text-anchor",p),E.setAttribute("letter-spacing",g);var S=this.buildTextContents(r.finalText);for(t=S.length,u=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",u),l.style.display="inherit",E.appendChild(l),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=l,u+=r.finalLineHeight;this.layerElement.appendChild(E)}else{var A=this.textSpans.length,b;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!o||!y||e===0){if(l=A>e?this.textSpans[e].span:createNS(o?"g":"text"),A<=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(),y&&(i[e].n&&(f=-g,u+=r.yOffset,u+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(r,c,i[e].line,f,u),f+=i[e].l||0,f+=g),o){b=this.globalData.fontManager.getCharData(r.finalText[e],a.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily);var x;if(b.t===1)x=new SVGCompElement(b.data,this.globalData,this);else{var D=emptyShapeData;b.data&&b.data.shapes&&(D=this.buildShapeData(b.data,r.finalSize)),x=new SVGShapeElement(D,this.globalData,this)}if(this.textSpans[e].glyph){var I=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(I.layerElement),I.destroy()}this.textSpans[e].glyph=x,x._debug=!0,x.prepareFrame(0),x.renderFrame(),this.textSpans[e].childSpan.appendChild(x.layerElement),b.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else y&&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")}y&&l&&l.setAttribute("d",d)}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"),d=createNS("feColorMatrix");return c.setAttribute("id",t),d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.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(d),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=[],d=[],y,f,u,m=[].concat(n);for(s=i;s>=0;s-=1){if(y=this.searchProcessedElement(e[s]),y?t[s]=r[y-1]:e[s]._shouldRender=a,e[s].ty==="fl"||e[s].ty==="st"||e[s].ty==="gf"||e[s].ty==="gs")y?t[s].style.closed=!1:t[s]=this.createStyleElement(e[s],m),c.push(t[s].style);else if(e[s].ty==="gr"){if(!y)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,m)}else e[s].ty==="tr"?(y||(u=this.createTransformElement(e[s]),t[s]=u),m.push(t[s]),this.addTransformToStyleList(t[s])):e[s].ty==="sh"||e[s].ty==="rc"||e[s].ty==="el"||e[s].ty==="sr"?y||(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"?(y?(f=t[s],f.closed=!1):(f=ShapeModifiers.getModifier(e[s].ty),f.init(this,e[s]),t[s]=f,this.shapeModifiers.push(f)),d.push(f)):e[s].ty==="rp"&&(y?(f=t[s],f.closed=!0):(f=ShapeModifiers.getModifier(e[s].ty),t[s]=f,f.init(this,e,s,t),this.shapeModifiers.push(f),a=!1),d.push(f));this.addProcessedElement(e[s],s+1)}for(this.removeTransformFromStyleList(),this.closeStyles(c),i=d.length,s=0;s<i;s+=1)d[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,d,y;for(e=0;e<t;e+=1)if(y=this.stylesList[e],d=y.type,!((d==="st"||d==="gs")&&y.wi===0||!y.data._shouldRender||y.coOp===0||this.globalData.currentGlobalAlpha===0)){for(l.save(),i=y.elements,d==="st"||d==="gs"?(l.ctxStrokeStyle(d==="st"?y.co:y.grd),l.ctxLineWidth(y.wi),l.ctxLineCap(y.lc),l.ctxLineJoin(y.lj),l.ctxMiterLimit(y.ml||0)):l.ctxFillStyle(d==="fl"?y.co:y.grd),l.ctxOpacity(y.coOp),d!=="st"&&d!=="gs"&&c.beginPath(),l.ctxTransform(y.preTransforms.finalTransform.props),a=i.length,r=0;r<a;r+=1){for((d==="st"||d==="gs")&&(c.beginPath(),y.da&&(c.setLineDash(y.da),c.lineDashOffset=y.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();(d==="st"||d==="gs")&&(l.ctxStroke(),y.da&&c.setLineDash(this.dashResetter))}d!=="st"&&d!=="gs"&&this.globalData.renderer.ctxFill(y.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]),d=t.h.v;d>=1?d=.99:d<=-1&&(d=-.99);var y=l*d,f=Math.cos(c+t.a.v)*y+i[0],u=Math.sin(c+t.a.v)*y+i[1];n=s.createRadialGradient(f,u,0,i[0],i[1],l)}var m,g=e.g.p,E=t.g.c,p=1;for(m=0;m<g;m+=1)t.g._hasOpacity&&t.g._collapsable&&(p=t.g.o[m*2+1]),n.addColorStop(E[m*4]/100,"rgba("+E[m*4+1]+","+E[m*4+2]+","+E[m*4+3]+","+p+")");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,d,y,f,u,m,g,E,p,S=this.data.singleShape,A=e.tr*.001*e.finalSize,b=0,C=0,x=!0,D=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&&(b=-A,C+=e.yOffset,C+=x?1:0,x=!1),f=c.shapes?c.shapes[0].it:[],m=f.length,o.scale(e.finalSize/100,e.finalSize/100),S&&this.applyTextPropertiesToMatrix(e,o,i[n].line,b,C),E=createSizedArray(m-1);var I=0;for(u=0;u<m;u+=1)if(f[u].ty==="sh"){for(y=f[u].ks.k.i.length,g=f[u].ks.k,p=[],d=1;d<y;d+=1)d===1&&p.push(o.applyToX(g.v[0][0],g.v[0][1],0),o.applyToY(g.v[0][0],g.v[0][1],0)),p.push(o.applyToX(g.o[d-1][0],g.o[d-1][1],0),o.applyToY(g.o[d-1][0],g.o[d-1][1],0),o.applyToX(g.i[d][0],g.i[d][1],0),o.applyToY(g.i[d][0],g.i[d][1],0),o.applyToX(g.v[d][0],g.v[d][1],0),o.applyToY(g.v[d][0],g.v[d][1],0));p.push(o.applyToX(g.o[d-1][0],g.o[d-1][1],0),o.applyToY(g.o[d-1][0],g.o[d-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[I]=p,I+=1}S&&(b+=i[n].l,b+=A),this.textSpans[D]?this.textSpans[D].elem=E:this.textSpans[D]={elem:E},D+=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,d=null,y=null,f=null,u,m,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?d!==c.fc&&(g.ctxFillStyle(c.fc),d=c.fc):d!==this.values.fill&&(d=this.values.fill,g.ctxFillStyle(this.values.fill)),u=this.textSpans[t].elem,n=u.length,this.globalData.canvasContext.beginPath(),a=0;a<n;a+=1)for(m=u[a],i=m.length,this.globalData.canvasContext.moveTo(m[0],m[1]),s=2;s<i;s+=6)this.globalData.canvasContext.bezierCurveTo(m[s],m[s+1],m[s+2],m[s+3],m[s+4],m[s+5]);this.globalData.canvasContext.closePath(),g.ctxFill()}if(this.stroke){for(c&&c.sw?f!==c.sw&&(f=c.sw,g.ctxLineWidth(c.sw)):f!==this.values.sWidth&&(f=this.values.sWidth,g.ctxLineWidth(this.values.sWidth)),c&&c.sc?y!==c.sc&&(y=c.sc,g.ctxStrokeStyle(c.sc)):y!==this.values.stroke&&(y=this.values.stroke,g.ctxStrokeStyle(this.values.stroke)),u=this.textSpans[t].elem,n=u.length,this.globalData.canvasContext.beginPath(),a=0;a<n;a+=1)for(m=u[a],i=m.length,this.globalData.canvasContext.moveTo(m[0],m[1]),s=2;s<i;s+=6)this.globalData.canvasContext.bezierCurveTo(m[s],m[s+1],m[s+2],m[s+3],m[s+4],m[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),d=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,d==="YMid"&&(s>n&&o==="meet"||s<n&&o==="slice")?this.transformCanvas.ty=(a-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:d==="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,d,y,f=0;f<2;++f)i=6*e[f]-12*t[f]+6*r[f],s=-3*e[f]+9*t[f]-9*r[f]+3*a[f],o=3*t[f]-3*e[f],i|=0,s|=0,o|=0,s===0&&i===0||(s===0?(l=-o/i,l>0&&l<1&&n[f].push(this.calculateF(l,e,t,r,a,f))):(c=i*i-4*o*s,c>=0&&(d=(-i+bmSqrt(c))/(2*s),d>0&&d<1&&n[f].push(this.calculateF(d,e,t,r,a,f)),y=(-i-bmSqrt(c))/(2*s),y>0&&y<1&&n[f].push(this.calculateF(y,e,t,r,a,f)))));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,d,y,f=this.mHelper,u,m="",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]?(d=this.textSpans[g],y=d.children[0]):(d=createTag("div"),d.style.lineHeight=0,y=createNS("svg"),y.appendChild(c),styleDiv(d)))):this.isMasked?c=this.textPaths[g]?this.textPaths[g]:createNS("text"):this.textSpans[g]?(d=this.textSpans[g],c=this.textPaths[g]):(d=createTag("span"),styleDiv(d),c=createTag("span"),styleDiv(c),d.appendChild(c)),this.globalData.fontManager.chars){var E=this.globalData.fontManager.getCharData(e.finalText[i],a.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),p;if(E?p=E.data:p=null,f.reset(),p&&p.shapes&&p.shapes.length&&(u=p.shapes[0].it,f.scale(e.finalSize/100,e.finalSize/100),m=this.createPathShape(f,u),c.setAttribute("d",m)),this.isMasked)this.innerElem.appendChild(c);else{if(this.innerElem.appendChild(d),p&&p.shapes){document.body.appendChild(y);var S=y.getBBox();y.setAttribute("width",S.width+2),y.setAttribute("height",S.height+2),y.setAttribute("viewBox",S.x-1+" "+(S.y-1)+" "+(S.width+2)+" "+(S.height+2));var A=y.style,b="translate("+(S.x-1)+"px,"+(S.y-1)+"px)";A.transform=b,A.webkitTransform=b,l[i].yOffset=S.y-1}else y.setAttribute("width",1),y.setAttribute("height",1);d.appendChild(y)}}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(d);var C=c.style,x="translate3d(0,"+-e.finalSize/1.2+"px,0)";C.transform=x,C.webkitTransform=x}this.isMasked?this.textSpans[g]=c:this.textSpans[g]=d,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 d=this.innerElem.getBBox();this.currentBBox.w!==d.width&&(this.currentBBox.w=d.width,this.svgElement.setAttribute("width",d.width)),this.currentBBox.h!==d.height&&(this.currentBBox.h=d.height,this.svgElement.setAttribute("height",d.height));var y=1;if(this.currentBBox.w!==d.width+y*2||this.currentBBox.h!==d.height+y*2||this.currentBBox.x!==d.x-y||this.currentBBox.y!==d.y-y){this.currentBBox.w=d.width+y*2,this.currentBBox.h=d.height+y*2,this.currentBBox.x=d.x-y,this.currentBBox.y=d.y-y,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var f="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=f,e.webkitTransform=f}}}};function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var 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 d=!this._prevMat.equals(this.mat);if((d||this.pe._mdf)&&this.comp.threeDElements){r=this.comp.threeDElements.length;var y,f,u;for(t=0;t<r;t+=1)if(y=this.comp.threeDElements[t],y.type==="3d"){if(d){var m=this.mat.toCSS();u=y.container.style,u.transform=m,u.webkitTransform=m}this.pe._mdf&&(f=y.perspectiveElem.style,f.perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var 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,d=a-1,y;function f(A,b,C){var x=[];b=b===!0?{entropy:!0}:b||{};var D=E(g(b.entropy?[A,S(e)]:A===null?p():A,3),x),I=new u(x),N=function(){for(var L=I.g(n),R=o,_=0;L<l;)L=(L+_)*a,R*=a,_=I.g(1);for(;L>=c;)L/=2,R/=2,_>>>=1;return(L+_)/R};return N.int32=function(){return I.g(4)|0},N.quick=function(){return I.g(4)/4294967296},N.double=N,E(S(I.S),e),(b.pass||C||function(B,L,R,_){return _&&(_.S&&m(_,I),B.state=function(){return m(I,{})}),R?(t[i]=B,L):B})(N,D,"global"in b?b.global:this==t,b.state)}t["seed"+i]=f;function u(A){var b,C=A.length,x=this,D=0,I=x.i=x.j=0,N=x.S=[];for(C||(A=[C++]);D<a;)N[D]=D++;for(D=0;D<a;D++)N[D]=N[I=d&I+A[D%C]+(b=N[D])],N[I]=b;x.g=function(B){for(var L,R=0,_=x.i,j=x.j,H=x.S;B--;)L=H[_=d&_+1],R=R*a+H[d&(H[_]=H[j=d&j+L])+(H[j]=L)];return x.i=_,x.j=j,R}}function m(A,b){return b.i=A.i,b.j=A.j,b.S=A.S.slice(),b}function g(A,b){var C=[],x=_typeof$2(A),D;if(b&&x=="object")for(D in A)try{C.push(g(A[D],b-1))}catch(I){}return C.length?C:x=="string"?A:A+"\0"}function E(A,b){for(var C=A+"",x,D=0;D<C.length;)b[d&D]=d&(x^=b[d&D]*19)+C.charCodeAt(D++);return S(b)}function p(){try{var A=new Uint8Array(a);return(r.crypto||r.msCrypto).getRandomValues(A),S(A)}catch(x){var b=r.navigator,C=b&&b.plugins;return[+new Date,r,C,r.screen,S(e)]}}function S(A){return String.fromCharCode.apply(0,A)}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),d=createTypedArray("float32",s);if(s>1){for(n=0;n<s;n+=1)d[n]=this.pv[n]+i[n]+(-r+r*2*BMMath.random())*c;return d}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,d=n.length;for(c=0;c<d;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 d="";"s"in o.keyframes[c-1]?d=o.keyframes[c-1].s:"e"in o.keyframes[c-2]?d=o.keyframes[c-2].e:d=o.keyframes[c-2].s;var y=l==="unidimensional"?new Number(d):Object.assign({},d);return y.time=o.keyframes[c-1].t/o.elem.comp.globalData.frameRate,y.value=l==="unidimensional"?d[0]:d,y},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),d=createTypedArray("float32",l);return c.value=d,r(c,i,"multidimensional"),function(){i.k&&i.getValue();for(var y=0;y<l;y+=1)d[y]=i.v[y]*o,c[y]=d[y];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 d=new Matrix;if(c!==void 0){var y=this._elem.finalTransform.mProp.getValueAtTime(c);y.clone(d)}else{var f=this._elem.finalTransform.mProp;f.applyToMatrix(d)}return d}function t(c,d){var y=this.getMatrix(d);return y.props[12]=0,y.props[13]=0,y.props[14]=0,this.applyPoint(y,c)}function r(c,d){var y=this.getMatrix(d);return this.applyPoint(y,c)}function a(c,d){var y=this.getMatrix(d);return y.props[12]=0,y.props[13]=0,y.props[14]=0,this.invertPoint(y,c)}function n(c,d){var y=this.getMatrix(d);return this.invertPoint(y,c)}function s(c,d){if(this._elem.hierarchy&&this._elem.hierarchy.length){var y,f=this._elem.hierarchy.length;for(y=0;y<f;y+=1)this._elem.hierarchy[y].finalTransform.mProp.applyToMatrix(c)}return c.applyToPointArray(d[0],d[1],d[2]||0)}function i(c,d){if(this._elem.hierarchy&&this._elem.hierarchy.length){var y,f=this._elem.hierarchy.length;for(y=0;y<f;y+=1)this._elem.hierarchy[y].finalTransform.mProp.applyToMatrix(c)}return c.inversePoint(d)}function o(c){var d=new Matrix;if(d.reset(),this._elem.finalTransform.mProp.applyToMatrix(d),this._elem.hierarchy&&this._elem.hierarchy.length){var y,f=this._elem.hierarchy.length;for(y=0;y<f;y+=1)this._elem.hierarchy[y].finalTransform.mProp.applyToMatrix(d);return d.inversePoint(c)}return d.inversePoint(c)}function l(){return[1,1,1,1]}return function(c){var d;function y(g){u.mask=new MaskManagerInterface(g,c)}function f(g){u.effect=g}function u(g){switch(g){case"ADBE Root Vectors Group":case"Contents":case 2:return u.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return d;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return u.effect;case"ADBE Text Properties":return u.textInterface;default:return null}}u.getMatrix=e,u.invertPoint=i,u.applyPoint=s,u.toWorld=r,u.toWorldVec=t,u.fromWorld=n,u.fromWorldVec=a,u.toComp=r,u.fromComp=o,u.sampleImage=l,u.sourceRectAtTime=c.sourceRectAtTime.bind(c),u._elem=c,d=TransformExpressionInterface(c.finalTransform.mProp);var m=getDescriptor(d,"anchorPoint");return Object.defineProperties(u,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(d,"rotation"),scale:getDescriptor(d,"scale"),position:getDescriptor(d,"position"),opacity:getDescriptor(d,"opacity"),anchorPoint:m,anchor_point:m,transform:{get:function(){return d}},active:{get:function(){return c.isInRange}}}),u.startTime=c.data.st,u.index=c.data.ind,u.source=c.data.refId,u.height=c.data.ty===0?c.data.h:100,u.width=c.data.ty===0?c.data.w:100,u.inPoint=c.data.ip/c.comp.globalData.frameRate,u.outPoint=c.data.op/c.comp.globalData.frameRate,u._name=c.data.nm,u.registerMaskInterface=y,u.registerEffectsInterface=f,u}}(),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 d=n.data.ef||[],y=function(u){for(l=0,c=d.length;l<c;){if(u===d[l].nm||u===d[l].mn||u===d[l].ix)return i[l];l+=1}return null};return Object.defineProperty(y,"numProperties",{get:function(){return d.length}}),y}return null}function r(n,s,i,o){function l(u){for(var m=n.ef,g=0,E=m.length;g<E;){if(u===m[g].nm||u===m[g].mn||u===m[g].ix)return m[g].ty===5?d[g]:d[g]();g+=1}throw new Error}var c=propertyGroupFactory(l,i),d=[],y,f=n.ef.length;for(y=0;y<f;y+=1)n.ef[y].ty===5?d.push(r(n.ef[y],s.effectElements[y],s.effectElements[y].propertyGroup,o)):d.push(a(s.effectElements[y],n.ef[y].ty,o,c));return n.mn==="ADBE Color Control"&&Object.defineProperty(l,"color",{get:function(){return d[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(m,g,E){var p=[],S,A=m?m.length:0;for(S=0;S<A;S+=1)m[S].ty==="gr"?p.push(r(m[S],g[S],E)):m[S].ty==="fl"?p.push(a(m[S],g[S],E)):m[S].ty==="st"?p.push(i(m[S],g[S],E)):m[S].ty==="tm"?p.push(o(m[S],g[S],E)):m[S].ty==="tr"||(m[S].ty==="el"?p.push(c(m[S],g[S],E)):m[S].ty==="sr"?p.push(d(m[S],g[S],E)):m[S].ty==="sh"?p.push(ShapePathInterface(m[S],g[S],E)):m[S].ty==="rc"?p.push(y(m[S],g[S],E)):m[S].ty==="rd"?p.push(f(m[S],g[S],E)):m[S].ty==="rp"?p.push(u(m[S],g[S],E)):m[S].ty==="gf"?p.push(n(m[S],g[S],E)):p.push(s(m[S],g[S])));return p}function t(m,g,E){var p,S=function(C){for(var x=0,D=p.length;x<D;){if(p[x]._name===C||p[x].mn===C||p[x].propertyIndex===C||p[x].ix===C||p[x].ind===C)return p[x];x+=1}return typeof C=="number"?p[C-1]:null};S.propertyGroup=propertyGroupFactory(S,E),p=e(m.it,g.it,S.propertyGroup),S.numProperties=p.length;var A=l(m.it[m.it.length-1],g.it[g.it.length-1],S.propertyGroup);return S.transform=A,S.propertyIndex=m.cix,S._name=m.nm,S}function r(m,g,E){var p=function(C){switch(C){case"ADBE Vectors Group":case"Contents":case 2:return p.content;default:return p.transform}};p.propertyGroup=propertyGroupFactory(p,E);var S=t(m,g,p.propertyGroup),A=l(m.it[m.it.length-1],g.it[g.it.length-1],p.propertyGroup);return p.content=S,p.transform=A,Object.defineProperty(p,"_name",{get:function(){return m.nm}}),p.numProperties=m.np,p.propertyIndex=m.ix,p.nm=m.nm,p.mn=m.mn,p}function a(m,g,E){function p(S){return S==="Color"||S==="color"?p.color:S==="Opacity"||S==="opacity"?p.opacity:null}return Object.defineProperties(p,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},_name:{value:m.nm},mn:{value:m.mn}}),g.c.setGroupProperty(PropertyInterface("Color",E)),g.o.setGroupProperty(PropertyInterface("Opacity",E)),p}function n(m,g,E){function p(S){return S==="Start Point"||S==="start point"?p.startPoint:S==="End Point"||S==="end point"?p.endPoint:S==="Opacity"||S==="opacity"?p.opacity:null}return Object.defineProperties(p,{startPoint:{get:ExpressionPropertyInterface(g.s)},endPoint:{get:ExpressionPropertyInterface(g.e)},opacity:{get:ExpressionPropertyInterface(g.o)},type:{get:function(){return"a"}},_name:{value:m.nm},mn:{value:m.mn}}),g.s.setGroupProperty(PropertyInterface("Start Point",E)),g.e.setGroupProperty(PropertyInterface("End Point",E)),g.o.setGroupProperty(PropertyInterface("Opacity",E)),p}function s(){function m(){return null}return m}function i(m,g,E){var p=propertyGroupFactory(D,E),S=propertyGroupFactory(x,p);function A(I){Object.defineProperty(x,m.d[I].nm,{get:ExpressionPropertyInterface(g.d.dataProps[I].p)})}var b,C=m.d?m.d.length:0,x={};for(b=0;b<C;b+=1)A(b),g.d.dataProps[b].p.setGroupProperty(S);function D(I){return I==="Color"||I==="color"?D.color:I==="Opacity"||I==="opacity"?D.opacity:I==="Stroke Width"||I==="stroke width"?D.strokeWidth:null}return Object.defineProperties(D,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},strokeWidth:{get:ExpressionPropertyInterface(g.w)},dash:{get:function(){return x}},_name:{value:m.nm},mn:{value:m.mn}}),g.c.setGroupProperty(PropertyInterface("Color",p)),g.o.setGroupProperty(PropertyInterface("Opacity",p)),g.w.setGroupProperty(PropertyInterface("Stroke Width",p)),D}function o(m,g,E){function p(A){return A===m.e.ix||A==="End"||A==="end"?p.end:A===m.s.ix?p.start:A===m.o.ix?p.offset:null}var S=propertyGroupFactory(p,E);return p.propertyIndex=m.ix,g.s.setGroupProperty(PropertyInterface("Start",S)),g.e.setGroupProperty(PropertyInterface("End",S)),g.o.setGroupProperty(PropertyInterface("Offset",S)),p.propertyIndex=m.ix,p.propertyGroup=E,Object.defineProperties(p,{start:{get:ExpressionPropertyInterface(g.s)},end:{get:ExpressionPropertyInterface(g.e)},offset:{get:ExpressionPropertyInterface(g.o)},_name:{value:m.nm}}),p.mn=m.mn,p}function l(m,g,E){function p(A){return m.a.ix===A||A==="Anchor Point"?p.anchorPoint:m.o.ix===A||A==="Opacity"?p.opacity:m.p.ix===A||A==="Position"?p.position:m.r.ix===A||A==="Rotation"||A==="ADBE Vector Rotation"?p.rotation:m.s.ix===A||A==="Scale"?p.scale:m.sk&&m.sk.ix===A||A==="Skew"?p.skew:m.sa&&m.sa.ix===A||A==="Skew Axis"?p.skewAxis:null}var S=propertyGroupFactory(p,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(p,{opacity:{get:ExpressionPropertyInterface(g.transform.mProps.o)},position:{get:ExpressionPropertyInterface(g.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(g.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(g.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(g.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(g.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(g.transform.mProps.sa)},_name:{value:m.nm}}),p.ty="tr",p.mn=m.mn,p.propertyGroup=E,p}function c(m,g,E){function p(b){return m.p.ix===b?p.position:m.s.ix===b?p.size:null}var S=propertyGroupFactory(p,E);p.propertyIndex=m.ix;var A=g.sh.ty==="tm"?g.sh.prop:g.sh;return A.s.setGroupProperty(PropertyInterface("Size",S)),A.p.setGroupProperty(PropertyInterface("Position",S)),Object.defineProperties(p,{size:{get:ExpressionPropertyInterface(A.s)},position:{get:ExpressionPropertyInterface(A.p)},_name:{value:m.nm}}),p.mn=m.mn,p}function d(m,g,E){function p(b){return m.p.ix===b?p.position:m.r.ix===b?p.rotation:m.pt.ix===b?p.points:m.or.ix===b||b==="ADBE Vector Star Outer Radius"?p.outerRadius:m.os.ix===b?p.outerRoundness:m.ir&&(m.ir.ix===b||b==="ADBE Vector Star Inner Radius")?p.innerRadius:m.is&&m.is.ix===b?p.innerRoundness:null}var S=propertyGroupFactory(p,E),A=g.sh.ty==="tm"?g.sh.prop:g.sh;return p.propertyIndex=m.ix,A.or.setGroupProperty(PropertyInterface("Outer Radius",S)),A.os.setGroupProperty(PropertyInterface("Outer Roundness",S)),A.pt.setGroupProperty(PropertyInterface("Points",S)),A.p.setGroupProperty(PropertyInterface("Position",S)),A.r.setGroupProperty(PropertyInterface("Rotation",S)),m.ir&&(A.ir.setGroupProperty(PropertyInterface("Inner Radius",S)),A.is.setGroupProperty(PropertyInterface("Inner Roundness",S))),Object.defineProperties(p,{position:{get:ExpressionPropertyInterface(A.p)},rotation:{get:ExpressionPropertyInterface(A.r)},points:{get:ExpressionPropertyInterface(A.pt)},outerRadius:{get:ExpressionPropertyInterface(A.or)},outerRoundness:{get:ExpressionPropertyInterface(A.os)},innerRadius:{get:ExpressionPropertyInterface(A.ir)},innerRoundness:{get:ExpressionPropertyInterface(A.is)},_name:{value:m.nm}}),p.mn=m.mn,p}function y(m,g,E){function p(b){return m.p.ix===b?p.position:m.r.ix===b?p.roundness:m.s.ix===b||b==="Size"||b==="ADBE Vector Rect Size"?p.size:null}var S=propertyGroupFactory(p,E),A=g.sh.ty==="tm"?g.sh.prop:g.sh;return p.propertyIndex=m.ix,A.p.setGroupProperty(PropertyInterface("Position",S)),A.s.setGroupProperty(PropertyInterface("Size",S)),A.r.setGroupProperty(PropertyInterface("Rotation",S)),Object.defineProperties(p,{position:{get:ExpressionPropertyInterface(A.p)},roundness:{get:ExpressionPropertyInterface(A.r)},size:{get:ExpressionPropertyInterface(A.s)},_name:{value:m.nm}}),p.mn=m.mn,p}function f(m,g,E){function p(b){return m.r.ix===b||b==="Round Corners 1"?p.radius:null}var S=propertyGroupFactory(p,E),A=g;return p.propertyIndex=m.ix,A.rd.setGroupProperty(PropertyInterface("Radius",S)),Object.defineProperties(p,{radius:{get:ExpressionPropertyInterface(A.rd)},_name:{value:m.nm}}),p.mn=m.mn,p}function u(m,g,E){function p(b){return m.c.ix===b||b==="Copies"?p.copies:m.o.ix===b||b==="Offset"?p.offset:null}var S=propertyGroupFactory(p,E),A=g;return p.propertyIndex=m.ix,A.c.setGroupProperty(PropertyInterface("Copies",S)),A.o.setGroupProperty(PropertyInterface("Offset",S)),Object.defineProperties(p,{copies:{get:ExpressionPropertyInterface(A.c)},offset:{get:ExpressionPropertyInterface(A.o)},_name:{value:m.nm}}),p.mn=m.mn,p}return function(m,g,E){var p;function S(b){if(typeof b=="number")return b=b===void 0?1:b,b===0?E:p[b-1];for(var C=0,x=p.length;C<x;){if(p[C]._name===b)return p[C];C+=1}return null}function A(){return E}return S.propertyGroup=propertyGroupFactory(S,A),p=e(m,g,S.propertyGroup),S.numProperties=p.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 d=parseInt(l.substr(c+n.length),10);return s=s[d],_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),d=0;if(l.length){var y;for(y=0;y<l.length;y+=1)d+=Math.pow(c[y]-l[y],2);d=Math.sqrt(d)*100}else d=0;return d}function a(i){if(this.vel!==void 0)return this.vel;var o=-.001,l=this.getValueAtTime(i),c=this.getValueAtTime(i+o),d;if(l.length){d=createTypedArray("float32",l.length);var y;for(y=0;y<l.length;y+=1)d[y]=(c[y]-l[y])/o}else d=(c-l)/o;return d}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(f,u,m){if(!this.k||!this.keyframes)return this.pv;f=f?f.toLowerCase():"";var g=this.comp.renderedFrame,E=this.keyframes,p=E[E.length-1].t;if(g<=p)return this.pv;var S,A;m?(u?S=Math.abs(p-this.elem.comp.globalData.frameRate*u):S=Math.max(0,p-this.elem.data.ip),A=p-S):((!u||u>E.length-1)&&(u=E.length-1),A=E[E.length-1-u].t,S=p-A);var b,C,x;if(f==="pingpong"){var D=Math.floor((g-A)/S);if(D%2!==0)return this.getValueAtTime((S-(g-A)%S+A)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var I=this.getValueAtTime(A/this.comp.globalData.frameRate,0),N=this.getValueAtTime(p/this.comp.globalData.frameRate,0),B=this.getValueAtTime(((g-A)%S+A)/this.comp.globalData.frameRate,0),L=Math.floor((g-A)/S);if(this.pv.length){for(x=new Array(I.length),C=x.length,b=0;b<C;b+=1)x[b]=(N[b]-I[b])*L+B[b];return x}return(N-I)*L+B}else if(f==="continue"){var R=this.getValueAtTime(p/this.comp.globalData.frameRate,0),_=this.getValueAtTime((p-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(x=new Array(R.length),C=x.length,b=0;b<C;b+=1)x[b]=R[b]+(R[b]-_[b])*((g-p)/this.comp.globalData.frameRate)/5e-4;return x}return R+(R-_)*((g-p)/.001)}return this.getValueAtTime(((g-A)%S+A)/this.comp.globalData.frameRate,0)}function t(f,u,m){if(!this.k)return this.pv;f=f?f.toLowerCase():"";var g=this.comp.renderedFrame,E=this.keyframes,p=E[0].t;if(g>=p)return this.pv;var S,A;m?(u?S=Math.abs(this.elem.comp.globalData.frameRate*u):S=Math.max(0,this.elem.data.op-p),A=p+S):((!u||u>E.length-1)&&(u=E.length-1),A=E[u].t,S=A-p);var b,C,x;if(f==="pingpong"){var D=Math.floor((p-g)/S);if(D%2===0)return this.getValueAtTime(((p-g)%S+p)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var I=this.getValueAtTime(p/this.comp.globalData.frameRate,0),N=this.getValueAtTime(A/this.comp.globalData.frameRate,0),B=this.getValueAtTime((S-(p-g)%S+p)/this.comp.globalData.frameRate,0),L=Math.floor((p-g)/S)+1;if(this.pv.length){for(x=new Array(I.length),C=x.length,b=0;b<C;b+=1)x[b]=B[b]-(N[b]-I[b])*L;return x}return B-(N-I)*L}else if(f==="continue"){var R=this.getValueAtTime(p/this.comp.globalData.frameRate,0),_=this.getValueAtTime((p+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(x=new Array(R.length),C=x.length,b=0;b<C;b+=1)x[b]=R[b]+(R[b]-_[b])*(p-g)/.001;return x}return R+(R-_)*(p-g)/.001}return this.getValueAtTime((S-((p-g)%S+p))/this.comp.globalData.frameRate,0)}function r(f,u){if(!this.k)return this.pv;if(f=(f||.4)*.5,u=Math.floor(u||5),u<=1)return this.pv;var m=this.comp.renderedFrame/this.comp.globalData.frameRate,g=m-f,E=m+f,p=u>1?(E-g)/(u-1):1,S=0,A=0,b;this.pv.length?b=createTypedArray("float32",this.pv.length):b=0;for(var C;S<u;){if(C=this.getValueAtTime(g+S*p),this.pv.length)for(A=0;A<this.pv.length;A+=1)b[A]+=C[A];else b+=C;S+=1}if(this.pv.length)for(A=0;A<this.pv.length;A+=1)b[A]/=u;else b/=u;return b}function a(f){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var u=this._transformCachingAtTime.v;if(u.cloneFromProps(this.pre.props),this.appliedTransformations<1){var m=this.a.getValueAtTime(f);u.translate(-m[0]*this.a.mult,-m[1]*this.a.mult,m[2]*this.a.mult)}if(this.appliedTransformations<2){var g=this.s.getValueAtTime(f);u.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(f),p=this.sa.getValueAtTime(f);u.skewFromAxis(-E*this.sk.mult,p*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var S=this.r.getValueAtTime(f);u.rotate(-S*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var A=this.rz.getValueAtTime(f),b=this.ry.getValueAtTime(f),C=this.rx.getValueAtTime(f),x=this.or.getValueAtTime(f);u.rotateZ(-A*this.rz.mult).rotateY(b*this.ry.mult).rotateX(C*this.rx.mult).rotateZ(-x[2]*this.or.mult).rotateY(x[1]*this.or.mult).rotateX(x[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var D=this.px.getValueAtTime(f),I=this.py.getValueAtTime(f);if(this.data.p.z){var N=this.pz.getValueAtTime(f);u.translate(D*this.px.mult,I*this.py.mult,-N*this.pz.mult)}else u.translate(D*this.px.mult,I*this.py.mult,0)}else{var B=this.p.getValueAtTime(f);u.translate(B[0]*this.p.mult,B[1]*this.p.mult,-B[2]*this.p.mult)}return u}function n(){return this.v.clone(new Matrix)}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(f,u,m){var g=s(f,u,m);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(f,u,m,g,E){var p=i(f,u,m,g,E);p.kf?p.getValueAtTime=expressionHelpers.getValueAtTime.bind(p):p.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(p),p.setGroupProperty=expressionHelpers.setGroupProperty,p.loopOut=e,p.loopIn=t,p.smooth=r,p.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(p),p.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(p),p.numKeys=u.a===1?u.k.length:0,p.propertyIndex=u.ix;var S=0;return m!==0&&(S=createTypedArray("float32",u.a===1?u.k[0].s.length:u.k.length)),p._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:S},expressionHelpers.searchExpressions(f,u,p),p.k&&E.addDynamicProperty(p),p};function o(f){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),f*=this.elem.globalData.frameRate,f-=this.offsetTime,f!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<f?this._caching.lastIndex:0,this._cachingAtTime.lastTime=f,this.interpolateShape(f,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var l=ShapePropertyFactory.getConstructorFunction(),c=ShapePropertyFactory.getKeyframedConstructorFunction();function d(){}d.prototype={vertices:function(u,m){this.k&&this.getValue();var g=this.v;m!==void 0&&(g=this.getValueAtTime(m,0));var E,p=g._length,S=g[u],A=g.v,b=createSizedArray(p);for(E=0;E<p;E+=1)u==="i"||u==="o"?b[E]=[S[E][0]-A[E][0],S[E][1]-A[E][1]]:b[E]=[S[E][0],S[E][1]];return b},points:function(u){return this.vertices("v",u)},inTangents:function(u){return this.vertices("i",u)},outTangents:function(u){return this.vertices("o",u)},isClosed:function(){return this.v.c},pointOnPath:function(u,m){var g=this.v;m!==void 0&&(g=this.getValueAtTime(m,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(g));for(var E=this._segmentsLength,p=E.lengths,S=E.totalLength*u,A=0,b=p.length,C=0,x;A<b;){if(C+p[A].addedLength>S){var D=A,I=g.c&&A===b-1?0:A+1,N=(S-C)/p[A].addedLength;x=bez.getPointInSegment(g.v[D],g.v[I],g.o[D],g.i[I],N,p[A]);break}else C+=p[A].addedLength;A+=1}return x||(x=g.c?[g.v[0][0],g.v[0][1]]:[g.v[g._length-1][0],g.v[g._length-1][1]]),x},vectorOnPath:function(u,m,g){u==1?u=this.v.c:u==0&&(u=.999);var E=this.pointOnPath(u,m),p=this.pointOnPath(u+.001,m),S=p[0]-E[0],A=p[1]-E[1],b=Math.sqrt(Math.pow(S,2)+Math.pow(A,2));if(b===0)return[0,0];var C=g==="tangent"?[S/b,A/b]:[-A/b,S/b];return C},tangentOnPath:function(u,m){return this.vectorOnPath(u,m,"tangent")},normalOnPath:function(u,m){return this.vectorOnPath(u,m,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([d],l),extendPrototype([d],c),c.prototype.getValueAtTime=o,c.prototype.initiateExpression=ExpressionManager.initiateExpression;var y=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(f,u,m,g,E){var p=y(f,u,m,g,E);return p.propertyIndex=u.ix,p.lock=!1,m===3?expressionHelpers.searchExpressions(f,u.pt,p):m===4&&expressionHelpers.searchExpressions(f,u.ks,p),p.k&&f.addDynamicProperty(p),p}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(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),d=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,y=Math.floor(c/d),f;for(f=0;f<y;f+=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 u=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(u[0]*255)+","+bmFloor(u[1]*255)+","+bmFloor(u[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),d=Array.call(null,{length:i}),y,f=0,u=n-a,m=t-e;s<=256;)o=s/256,o<=l?y=m<0?n:a:o>=c?y=m<0?a:n:y=a+u*Math.pow((o-e)/m,1/r),d[f]=y,f+=1,s+=256/(i-1);return d.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 d=createNS("feComposite");d.setAttribute("in",a+"_drop_shadow_3"),d.setAttribute("in2",a+"_drop_shadow_2"),d.setAttribute("operator","in"),d.setAttribute("result",a+"_drop_shadow_4"),e.appendChild(d);var y=this.createMergeNode(a,[a+"_drop_shadow_4",n]);e.appendChild(y)}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 d=isArray$1(e);if(d){if(i=initCloneArray(e),!o)return copyArray(e,i)}else{var y=getTag$1(e),f=y==funcTag||y==genTag;if(isBuffer$1(e))return cloneBuffer(e,o);if(y==objectTag$1||y==argsTag$1||f&&!n){if(i=l||f?{}:initCloneObject(e),!o)return l?copySymbolsIn(e,baseAssignIn(i,e)):copySymbols(e,baseAssign(i,e))}else{if(!cloneableTags[y])return n?e:{};i=initCloneByTag(e,y,o)}}s||(s=new Stack);var u=s.get(e);if(u)return u;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,p){i.set(p,baseClone(E,t,r,p,e,s))});var m=c?l?getAllKeysIn:getAllKeys:l?keysIn:keys,g=d?void 0:m(e);return arrayEach(g||e,function(E,p){g&&(p=E,E=e[p]),assignValue(i,p,baseClone(E,t,r,p,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),d=s.get(t);if(c&&d)return c==t&&d==e;var y=-1,f=!0,u=r&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(s.set(e,t),s.set(t,e);++y<o;){var m=e[y],g=t[y];if(a)var E=i?a(g,m,y,t,e,s):a(m,g,y,e,t,s);if(E!==void 0){if(E)continue;f=!1;break}if(u){if(!arraySome(t,function(p,S){if(!cacheHas(u,S)&&(m===p||n(m,p,r,a,s)))return u.push(S)})){f=!1;break}}else if(!(m===g||n(m,g,r,a,s))){f=!1;break}}return s.delete(e),s.delete(t),f}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 d=equalArrays(o(e),o(t),a,n,s,i);return i.delete(e),d;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),d=c.length;if(l!=d&&!i)return!1;for(var y=l;y--;){var f=o[y];if(!(i?f in t:hasOwnProperty$1.call(t,f)))return!1}var u=s.get(e),m=s.get(t);if(u&&m)return u==t&&m==e;var g=!0;s.set(e,t),s.set(t,e);for(var E=i;++y<l;){f=o[y];var p=e[f],S=t[f];if(a)var A=i?a(S,p,f,t,e,s):a(p,S,f,e,t,s);if(!(A===void 0?p===S||n(p,S,r,a,s):A)){g=!1;break}E||(E=f=="constructor")}if(g&&!E){var b=e.constructor,C=t.constructor;b!=C&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&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 d=l==objectTag,y=c==objectTag,f=l==c;if(f&&isBuffer$1(e)){if(!isBuffer$1(t))return!1;i=!0,d=!1}if(f&&!d)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 u=d&&hasOwnProperty.call(e,"__wrapped__"),m=y&&hasOwnProperty.call(t,"__wrapped__");if(u||m){var g=u?e.value():e,E=m?t.value():t;return s||(s=new Stack),n(g,E,r,a,s)}}return f?(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=I=>document.querySelector('[data-id="'.concat(I,'"]'))!==null,i=async I=>{let N=e.autoPlay;e.playOnHover&&(N=!1);let B={};if(isEqual(e.animationData,{})===!1&&(B=cloneDeep(e.animationData)),e.animationLink!="")try{B=await(await fetch(e.animationLink)).json()}catch(_){console.error(_);return}let L=e.loop;typeof L=="number"&&L>0&&(L=L-1),e.delay>0&&(N=!1);const R={container:I,renderer:e.renderer,loop:L,autoplay:N,animationData:B,assetsPath:e.assetsPath};isEqual(e.rendererSettings,{})===!1&&(R.rendererSettings=e.rendererSettings),r=Lottie.loadAnimation(R),setTimeout(()=>{N=e.autoPlay,e.playOnHover?r.pause():N?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 I=e.width,N=e.height;return typeof e.width=="number"&&(I="".concat(e.width,"px")),typeof e.height=="number"&&(N="".concat(e.height,"px")),{"--lottie-animation-container-width":I,"--lottie-animation-container-height":N,"--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 d=()=>{r&&r.play()},y=()=>{r&&r.pause()},f=()=>{r&&r.stop()},u=()=>{r&&r.destroy()},m=(I=1)=>{if(I<=0)throw new Error("Speed must be greater than 0");r&&r.setSpeed(I)},g=I=>{r&&(I==="forward"?r.setDirection(1):I==="reverse"&&r.setDirection(-1))},E=(I,N=!0)=>{r&&r.goToAndStop(I,N)},p=(I,N=!0)=>{r&&r.goToAndPlay(I,N)},S=(I,N=!1)=>{r&&r.playSegments(I,N)},A=(I=!0)=>{r&&r.setSubframe(I)},b=(I=!0)=>{if(r)return r.getDuration(I)},C=(I,N=0)=>{r&&r.renderer.elements[N].updateDocumentData(I)},x=I=>{for(var N="",B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",L=B.length,R=0;R<I;R++)N+=B.charAt(Math.floor(Math.random()*L));return N},D=I=>{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 N=setInterval(()=>{if(s(I)){clearInterval(N);const B=document.querySelector('[data-id="'.concat(I,'" ]'));B&&i(B)}},0)};return onMounted(async()=>{a.value=x(20),D(a.value)}),{elementid:a,hoverEnded:c,hoverStarted:l,getCurrentStyle:o,play:d,pause:y,stop:f,destroy:u,setSpeed:m,setDirection:g,goToAndStop:E,goToAndPlay:p,playSegments:S,setSubFrame:A,getDuration:b,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,iVBORw0KGgoAAAANSUhEUgAAAMMAAAEICAYAAADiJ0BpAAAACXBIWXMAAAABAAAAAQBPJcTWAA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PNkKlpKiVFpcEtlPSiZZrM8v9MVZnnloFS6oZUFTjZntY0lXkyS0lTubPNPBmHD7bhgKn1wGFuNw9mw4mTZx8BjuWWABH2MYxr+olnw225PdDSVKLcGOAGbo4Fzi43AUqayg320VcPcrlNAGzSVGqKymtnf8CHXExR4SGuOC1NxbEYHuO8+H1SVIDLaSpAS1X55m+wfPLaT3jCy5cvefLpH0r7n1+ZF9s0la/4is9+/q/LNxDuuX3wa5rKv6/8EycY65bo+YM2AAAAAElFTkSuQmCC",e:1}],layers=[{ddd:0,ind:1,ty:2,nm:"加载视频@3x.png",cl:"png",refId:"image_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[1218,562,0],ix:2},a:{a:0,k:[97.5,132,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:2,ty:2,nm:"进度条@3x.png",cl:"png",refId:"image_1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[100],e:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:61,s:[0],e:[0]},{t:120}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[678,587.5,0],ix:2},a:{a:0,k:[0,1.5,0],ix:1},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:0,s:[0,100,100],e:[100,100,100]},{t:60}],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:3,ty:2,nm:"进度条@3x.png",cl:"png",refId:"image_1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:0,s:[0],e:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[0],e:[100]},{t:61}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[1758,589,0],ix:2},a:{a:0,k:[1080,3,0],ix:1},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:60,s:[100,100,100],e:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:61,s:[100,100,100],e:[0,100,100]},{t:120}],ix:6}},ao:0,ip:0,op:300,st:0,bm:0}],markers=[],playLoadData={v,fr,ip,op,w,h,nm,ddd,assets,layers,markers},videoWrap="_videoWrap_mthmy_1",videoPop="_videoPop_mthmy_6",sectionAnimate$1="_sectionAnimate_mthmy_14",controls$1="_controls_mthmy_20",time$1="_time_mthmy_35",rightTime$1="_rightTime_mthmy_44",line$1="_line_mthmy_51",tools$1="_tools_mthmy_58",actions$1="_actions_mthmy_64",actionWrap$1="_actionWrap_mthmy_72",title$2="_title_mthmy_76",downloadSpeed$1="_downloadSpeed_mthmy_80",actionBtn$1="_actionBtn_mthmy_87",actionBtnSpeed="_actionBtnSpeed_mthmy_97",iconReplay$1="_iconReplay_mthmy_108",slider$1="_slider_mthmy_119",sliderPopup="_sliderPopup_mthmy_145",iconAdd$1="_iconAdd_mthmy_159",iconCut="_iconCut_mthmy_160",disabled$1="_disabled_mthmy_169",sliderPoint="_sliderPoint_mthmy_177",styles$i={videoWrap,videoPop,sectionAnimate:sectionAnimate$1,controls:controls$1,time:time$1,rightTime:rightTime$1,line:line$1,tools:tools$1,actions:actions$1,actionWrap:actionWrap$1,title:title$2,downloadSpeed:downloadSpeed$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-169f4c3b.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,speedInKbps:"",isOnline:!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=x=>{if(x>0){const D=Math.floor(x/60),I=x%60;return(D<10?"0"+D:D)+":"+(I<10?"0"+I:I)}else return"00:00"},d=()=>{o.value&&(o.value.src(a.value.content),t("reset"))},y=x=>{s.showBar=x,s.speedControl=!1},f=()=>{s.speedControl=!1,o.value&&o.value.currentTime(0)},u=x=>{x==null||x.stopPropagation(),s.paused?(o.value.play(),s.paused=!1):(o.value.pause(),s.paused=!0),t("togglePlay",s.paused)},m=null;let g=0;const E=()=>{g>5||(clearTimeout(m),nextTick(()=>{var x;(x=o.value)==null||x.play().catch(D=>{})}),g++)},p=()=>{o.value&&(console.log(a.value,"item.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 x;s.currentTime=c(Math.round(((x=o.value)==null?void 0:x.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",x=>{s.duration=c(Math.round(o.value.duration())),s.durationNum=o.value.duration(),t("canplay")}),o.value.on("error",x=>{t("error"),console.log(x,"error")}))},S=x=>{let D=0,I=null,N=Date.now(),B=[],L=!1,R=!1,_=null;const j=2500;function H(X=1500){I=setTimeout(()=>{s.speedInKbps="0 KB/s"},X)}function M(X=0){_=setTimeout(()=>{R&&(console.log("停止缓存数据。"),R=!1,s.speedInKbps="")},X||j)}function F(){_&&clearTimeout(_),R=!0,M()}const P=X=>{const re=[];X.sort((te,ue)=>te[0]-ue[0]);let q=X[0];for(let te=1;te<X.length;te++){const ue=X[te];q[1]>=ue[0]?q[1]=Math.max(ue[1],q[1]):(re.push(q),q=ue)}return re.push(q),re};let T=!1;const O=()=>{const X=x.duration,re=Date.now(),q=x.buffered;let te=0,ue=0;if(q.length>0){for(let oe=0;oe<q.length;oe++)te+=q.end(oe)-q.start(oe),ue+=q.end(oe)-q.start(oe),B=P([...B,[q.start(oe),q.end(oe)]]);te*=x.duration*x.seekable.end(0)}const fe=X-ue;let he=!0;B.forEach(oe=>{x.currentTime>=oe[0]&&he<=oe[1]&&(he=!1)});const pe=te<=D;if(fe>0){if(te>D&&s.isOnline){const oe=(re-N)/1e3,Z=(te-D)/oe;if(!x.paused){const Ee=Z/1024,Se=Ee.toFixed(2);Ee>1024?s.speedInKbps="".concat(Number((Ee/1024).toFixed(2))," M/s"):s.speedInKbps="".concat(Number(Se)," KB/s"),clearTimeout(I),H()}D=te,N=re,T=!1}pe&&!he&&(T||(clearTimeout(I),clearTimeout(_),setTimeout(()=>{R&&(console.log("停止缓存数据-。"),R=!1,s.speedInKbps="")},800)),T=!0),(x.paused||!s.isOnline)&&(clearTimeout(I),s.speedInKbps=""),L||F()}else clearTimeout(I),M(1e3)},k=()=>{console.log("waiting"),L=!0;let X=!0;B.forEach(re=>{x.currentTime>=re[0]&&X<=re[1]&&(X=!1)}),!x.paused&&s.isOnline&&X&&(clearTimeout(I),H()),_&&clearTimeout(_)},z=()=>{console.log("canplay"),L=!1,F()},Q=()=>{clearTimeout(I),_&&clearTimeout(_),s.speedInKbps=""};x.removeEventListener("progress",O),x.removeEventListener("waiting",k),x.removeEventListener("canplay",z),x.removeEventListener("pause",Q),x.addEventListener("progress",O),x.addEventListener("waiting",k),x.addEventListener("canplay",z),x.addEventListener("pause",Q)},A=x=>{if(x.type==="online"){s.isOnline=!0;const D=o.value.currentTime();o.value.load(),o.value.currentTime(D),C()}else x.type==="offline"&&(s.isOnline=!1)};onMounted(()=>{o.value=TCPlayer(l.value,{appID:"",controls:!1}),p(),nextTick(()=>{S(i.value)}),window.addEventListener("online",A),window.addEventListener("offline",A)});const b=()=>{o.value.currentTime(0),o.value.pause()},C=()=>{o.value.pause(),s.paused=!0};return onUnmounted(()=>{o.value&&(o.value.pause(),o.value.src(""),o.value.dispose()),window.removeEventListener("online",A),window.removeEventListener("offline",A)}),watch(()=>e.item,()=>{var x;o.value.pause(),o.value.currentTime(0),(x=a.value)!=null&&x.id&&(p(),s.paused=!0),nextTick(()=>{S(i.value)})}),watch(()=>e.showModel,()=>{s.showAction=e.showModel,s.speedControl=!1}),r({onPlay:d,stop:b,pause:C,toggleHideControl:y}),()=>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:x=>{x.stopPropagation(),!o.value.paused()&&(t("close"),t("reset"))}},[createVNode("div",{class:styles$i.slider},[e.imagePos!=="right"&&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(NSlider,{value:s.currentTimeNum,step:.01,max:s.durationNum,tooltip:!1,"onUpdate:value":x=>{s.speedControl=!1,o.value.currentTime(x),s.currentTimeNum=x,s.currentTime=c(Math.round(x||0))}},null),e.imagePos==="right"&&createVNode("div",{class:[styles$i.time,styles$i.rightTime]},[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.tools},[e.imagePos==="right"?createVNode(Fragment,null,[createVNode("div",{class:styles$i.actions},[createVNode("div",{class:styles$i.actionWrap},[createVNode("div",{class:styles$i.title},[e.item.title])])]),createVNode("div",{class:styles$i.actions},[createVNode("div",{class:styles$i.actionWrap},[createVNode("div",{class:styles$i.downloadSpeed,style:{paddingRight:"20px"}},[s.speedInKbps]),createVNode("div",{class:styles$i.actionBtnSpeed,onClick:x=>{x.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:x=>{x.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":x=>{s.defaultSpeed=x,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:f},[createVNode("img",{src:iconLoop},null)]),createVNode("div",{class:styles$i.actionBtn,onClick:()=>{s.speedControl=!1,u()}},[createVNode("img",{style:{display:s.paused?"block":"none"},class:styles$i.playIcon,src:iconplay},null),createVNode("img",{style:{display:s.paused?"none":"block"},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,u()}},[createVNode("img",{style:{display:s.paused?"block":"none"},class:styles$i.playIcon,src:iconplay},null),createVNode("img",{style:{display:s.paused?"none":"block"},class:styles$i.playIcon,src:iconpause},null)]),createVNode("button",{class:styles$i.iconReplay,onClick:f},[createVNode("img",{src:iconLoop},null)]),createVNode("div",{class:styles$i.actionBtnSpeed,onClick:x=>{x.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:x=>{x.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":x=>{s.defaultSpeed=x,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.downloadSpeed},[s.speedInKbps])])]),createVNode("div",{class:styles$i.actions},[createVNode("div",{class:styles$i.actionWrap},[createVNode("div",{class:styles$i.title},[e.item.title])])])])])])])}}),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,"/classroom-app/roll-call/index.html?platform=modal&imagePos=").concat(e.imagePos));let l,c;if(e.isDrag){const d=useUserStore();c="penBoxClass_drag",l=useDrag(["".concat(c,">.n-card-header"),"".concat(c," .bom_drag")],c,toRef(n,"status"),d.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:d=>{if(s.value=!1,e.type==="call"){const y=document.getElementById(a);y&&y.contentWindow.renderData&&y.contentWindow.renderData(e.callStudents)}iframeDislableKeyboard(d.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,{maskClosable:modalClickMask,style:e.isDrag?l.styleDrag.value:{},"z-index":3e3,transformOrigin:"center",show:n.status,"onUpdate:show":d=>n.status=d,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_1bi4t_1",audioContainer="_audioContainer_1bi4t_6",audioTitle="_audioTitle_1bi4t_14",audio="_audio_1bi4t_1",tempVudio="_tempVudio_1bi4t_29",sectionAnimate="_sectionAnimate_1bi4t_41",controls="_controls_1bi4t_47",time="_time_1bi4t_62",rightTime="_rightTime_1bi4t_71",line="_line_1bi4t_78",tools="_tools_1bi4t_85",actions="_actions_1bi4t_91",actionWrap="_actionWrap_1bi4t_99",downloadSpeed="_downloadSpeed_1bi4t_103",actionBtn="_actionBtn_1bi4t_109",iconReplay="_iconReplay_1bi4t_119",title$1="_title_1bi4t_130",slider="_slider_1bi4t_134",styles$g={audioWrap,audioContainer,audioTitle,audio,tempVudio,sectionAnimate,controls,time,rightTime,line,tools,actions,actionWrap,downloadSpeed,actionBtn,iconReplay,title:title$1,slider},AudioPay=defineComponent({name:"audio-play",props:{item:{type:Object,default:()=>({})},activeStatus:{type:Boolean,default:!1},isEmtry:{type:Boolean,default:!1},showModel:{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,speedInKbps:"",currentTimeNum:0,isOnline:!1,currentTime:"00:00",durationNum:0,duration:"00:00",showBar:!0,showAction:!0,afterMa3:!0,count:0,previousBytesLoaded:0,previousTime:Date.now()}),n=ref(),s=ref();let i=null;const o=p=>{var S,A,b;p==null||p.stopPropagation(),s.value.paused?(s.value.play(),a.afterMa3=!1):(S=s.value)==null||S.pause(),a.paused=(A=s.value)==null?void 0:A.paused,(b=p==null?void 0:p.target)==null||b.focus(),t("togglePlay",a.paused)},l=(p,S)=>{i||(i=new Vudio(p,S,{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=p=>{if(p>0){const S=Math.floor(p/60),A=p%60;return(S<10?"0"+S:S)+":"+(A<10?"0"+A:A)}else return"00:00"},d=p=>{a.showBar=p},y=()=>{s.value&&(s.value.currentTime=0)};let f=null;const u=ref(),m=ref();nextTick(()=>{f=new Vudio(m.value,u.value,{effect:"waveform",accuracy:256,width:1024,height:600,waveform:{maxHeight:200,color:[[0,"#44D1FF"],[.5,"#44D1FF"],[.5,"#198CFE"],[1,"#198CFE"]],prettify:!1}}),f.dance()}),watch(()=>e.activeStatus,p=>{a.count=0,p&&e.item.autoPlay?(i=null,o()):s.value.pause()}),watch(()=>e.showModel,()=>{a.showAction=e.showModel});const g=p=>{let S=0,A=null,b=Date.now(),C=[],x=!1,D=!1,I=null;const N=2500;function B(){A=setTimeout(()=>{a.speedInKbps="0 KB/s"},1500)}function L(T=0){I=setTimeout(()=>{D&&(console.log("停止缓存数据。"),D=!1,a.speedInKbps="")},T||N)}function R(){I&&clearTimeout(I),D=!0,L()}const _=T=>{const O=[];T.sort((z,Q)=>z[0]-Q[0]);let k=T[0];for(let z=1;z<T.length;z++){const Q=T[z];k[1]>=Q[0]?k[1]=Math.max(Q[1],k[1]):(O.push(k),k=Q)}return O.push(k),O};let j=!1;const H=()=>{const T=p.duration,O=Date.now(),k=p.buffered;let z=0,Q=0;if(k.length>0){for(let te=0;te<k.length;te++)z+=k.end(te)-k.start(te),Q+=k.end(te)-k.start(te),C=_([...C,[k.start(te),k.end(te)]]);z*=p.duration*p.seekable.end(0)}const X=T-Q;let re=!0;C.forEach(te=>{p.currentTime>=te[0]&&re<=te[1]&&(re=!1)});const q=z<=S;if(X>0){if(z>S&&a.isOnline){const te=(O-b)/1e3,fe=(z-S)/te;if(!p.paused){const he=fe/1024,pe=he.toFixed(2);he>1024?a.speedInKbps="".concat(Number((he/1024).toFixed(2))," M/s"):a.speedInKbps="".concat(Number(pe)," KB/s"),clearTimeout(A),B()}S=z,b=O,j=!1}q&&!re&&(j||(clearTimeout(A),clearTimeout(I),setTimeout(()=>{D&&(console.log("停止缓存数据"),D=!1,a.speedInKbps="")},800)),j=!0),(p.paused||!a.isOnline)&&(clearTimeout(A),a.speedInKbps=""),x||R()}else clearTimeout(A),L(1e3)},M=()=>{console.log("waiting"),x=!0;let T=!0;C.forEach(O=>{p.currentTime>=O[0]&&T<=O[1]&&(T=!1)}),!p.paused&&a.isOnline&&T&&(clearTimeout(A),B()),I&&clearTimeout(I)},F=()=>{console.log("canplay"),x=!1,R()},P=()=>{clearTimeout(A),I&&clearTimeout(I),a.speedInKbps=""};p.removeEventListener("progress",H),p.removeEventListener("waiting",M),p.removeEventListener("canplay",F),p.removeEventListener("pause",P),p.addEventListener("progress",H),p.addEventListener("waiting",M),p.addEventListener("canplay",F),p.addEventListener("pause",P)},E=p=>{if(p.type==="online"){a.isOnline=!0;const S=s.value.currentTime;s.value.load(),s.value.currentTime=S}else p.type==="offline"&&(a.isOnline=!1)};return onMounted(()=>{nextTick(()=>{g(s.value)}),window.addEventListener("online",E),window.addEventListener("offline",E)}),onUnmounted(()=>{window.removeEventListener("online",E),window.removeEventListener("offline",E)}),r({toggleHideControl:d,onToggleAudio:o}),()=>createVNode("div",{class:styles$g.audioWrap},[createVNode("div",{class:styles$g.audioContainer},[createVNode("div",{class:styles$g.audioTitle},[e.item.title]),createVNode("audio",{ref:s,crossorigin:"anonymous",src:e.item.content,onEnded:()=>{a.paused=!0,t("ended")},onPlay:()=>{var p;a.paused=(p=s.value)==null?void 0:p.paused},onPause:()=>{},onTimeupdate:()=>{var p,S;a.currentTime=c(Math.round(((p=s.value)==null?void 0:p.currentTime)||0)),a.currentTimeNum=((S=s.value)==null?void 0:S.currentTime)||0,a.count<=1&&(a.count+=1,l(s.value,n.value))},onLoadedmetadata:()=>{var p,S;a.duration=c(Math.round((p=s.value)==null?void 0:p.duration)),a.durationNum=(S=s.value)==null?void 0:S.duration,e.item.autoPlay&&s.value&&e.activeStatus&&o(),s.value&&(s.value.stop=()=>{var A;(A=s.value)==null||A.pause(),a.paused=!0,t("togglePlay",a.paused)},s.value.onPlay=()=>{var A;(A=s.value)==null||A.play(),a.paused=!1,l(s.value,n.value),t("togglePlay",a.paused)}),t("loadedmetadata",s.value)},onError:()=>{var p,S;(p=s.value)==null||p.pause(),a.paused=(S=s.value)==null?void 0:S.paused}},null),createVNode("canvas",{ref:n},null),a.afterMa3&&createVNode("div",{class:styles$g.tempVudio},[createVNode("audio",{ref:m,src:tickMp3},null),createVNode("canvas",{ref:u},null)])]),createVNode("div",{class:[styles$g.controls,a.showAction?"":styles$g.sectionAnimate],onClick:p=>{p.stopPropagation(),t("reset")}},[createVNode("div",{class:styles$g.slider},[e.imagePos!=="right"&&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(NSlider,{value:a.currentTimeNum,step:.01,max:a.durationNum,tooltip:!1,"onUpdate:value":p=>{s.value.currentTime=p,a.currentTimeNum=p,a.currentTime=c(Math.round(p||0))}},null),e.imagePos==="right"&&createVNode("div",{class:[styles$g.time,styles$g.rightTime]},[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.tools},[e.imagePos==="right"?createVNode(Fragment,null,[createVNode("div",{class:styles$g.actions},[createVNode("div",{class:styles$g.title},[e.item.title])]),createVNode("div",{class:styles$g.actions},[createVNode("div",{class:styles$g.actionWrap},[createVNode("div",{class:styles$g.downloadSpeed},[a.speedInKbps]),createVNode("button",{class:styles$g.iconReplay,onClick:y},[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:y},[createVNode("img",{src:iconReplay$2},null)]),createVNode("div",{class:styles$g.downloadSpeed},[a.speedInKbps])])]),createVNode("div",{class:styles$g.actions},[createVNode("div",{class:styles$g.title},[e.item.title])])])])])])}}),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 d of l){if(d.knowledgeList&&d.knowledgeList.length>0){const y=s(o,d.knowledgeList,[...c,d.id]);if(y.includes(o))return y}if(d.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(d=>{l.id!==d.id&&(d.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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GCO2IvFNdBz1x5SA+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+ne6Khp8DlIvKwWOWzpmlxUbtAD9sgcqhZYaD6pA9/wDZhJZ7HEzYo2aQ0BrSMsHRtFzm3k2BbpdLQKbFKI/kYFquOt0Zf9Yi917OhlyF0xxY/REx9MFGOgqvMUpHHkYblFMpiJk+XFrnErCa2GmNB2UlCo8+uBE+6cRB4cOC7dRqF7vENLnwjG+pflA6DZD6esn+PpWEWK6CE7WAWJRu+tecUALuoJbqiUMV6gXicFt3ViEOw37NZaJzxDTzmte4qrxeC0dZ975TM8Sd+thYAM6BKmyGs7ZwGBPOFVmcYq7fl/2l97jEw/MMLsrXct8Ib429x3VBzLkgXWDZKicfsCXxi0DXfJdPmt2AvpC7doMzVgpduIv5yk4OypMijVOhvHt5v1H4kLYy4bnyAAAAAElFTkSuQmCC",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BnM1NqqCUOktfiBjmMqhp4wHNryjbGAnjAc2vKN8aN5M0xBEAiicP3sBGOaWpSaW0QGReX97xUsyAu0QXF8+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+MkJPU3eXp8vzQ2OCrsbaDhojL09u7wciIjI/l7/jGztbW3uezub+GiYyutLqYnqHa4+ykqa6ip6ydoqdEf5LcAAAAFnRSTlMA4OuYTgT48/DNwauEgnE1JhoTCgfpys6LywAAAqxJREFUaN7tm2tzqjAQhgmI90ut7UYFDgS5KWpr//+PO4NyHGsUTCB7bIfnq7M+OrMbneyLdgtzMjb6RG+DJG2d9I3xxNQewmwNulAL3UGr3Pk60qFG9NFroW427EDNdIaz+74WAQWQ1h3dmwGKMN5u+aY9UEZvyvteCCiEvHC+d1DK+5VxSkAxZPqtX3qgnN5l5xiAgHExf4DCeR5nBFAgs1w4BCSG+XndASQ6p5N8BGiMMp+pAxq6idCiXKMOAJGBppldQKR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ggg==",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_1pw89_1",btnType$3="_btnType_1pw89_4",inputSearch$3="_inputSearch_1pw89_40",searchCatatory$1="_searchCatatory_1pw89_61",addTrain$1="_addTrain_1pw89_77",searchForm="_searchForm_1pw89_89",spaceSection$1="_spaceSection_1pw89_92",collaoseGroup="_collaoseGroup_1pw89_100",collapseWrap$1="_collapseWrap_1pw89_107",collaoseBtn$1="_collaoseBtn_1pw89_113",isStart$1="_isStart_1pw89_118",isHidden$1="_isHidden_1pw89_121",hideButton$1="_hideButton_1pw89_125",popSelect$1="_popSelect_1pw89_130",spaceSection2$1="_spaceSection2_1pw89_140",textBtn$1="_textBtn_1pw89_145",iconArrow$1="_iconArrow_1pw89_157",textBtnActive$1="_textBtnActive_1pw89_166",styles$d={searchGroup:searchGroup$4,btnType:btnType$3,inputSearch:inputSearch$3,searchCatatory:searchCatatory$1,addTrain:addTrain$1,searchForm,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 ChildNodeSearch=defineComponent({name:"ChildNodeSearch",props:{activeRow:{type:Object,default:()=>({})},list:{type:Array,default:()=>[]}},emits:["selectChildTag"],setup(e,{emit:t}){const{activeRow:r}=toRefs(e),a=ref({});watch(()=>e.activeRow,()=>{r.value=e.activeRow,n()});const n=()=>{r.value.activeIndex?(r.value.children||[]).forEach(i=>{if(i.id===r.value.activeIndex){let o,l="";i.children&&(o=[{columnName:i.children[0].columnName,name:"全部",id:""},...i.children],l=i.children[0].columnName,a.value={...i,columnName:l,activeIndex:i.activeIndex,children:o})}}):a.value={}};return onMounted(()=>{n()}),()=>{var s;return createVNode(Fragment,null,[((s=r.value)==null?void 0:s.id)&&createVNode(Fragment,null,[createVNode(NFormItem,{label:r.value.columnName+":"},{default:()=>[createVNode(NSpace,{class:styles$d.spaceSection},{default:()=>{var i;return[(i=r.value)==null?void 0:i.children.map(o=>createVNode("span",{class:[styles$d.textBtn,(r.value.activeIndex||"")==o.id&&styles$d.textBtnActive],onClick:()=>{r.value.activeIndex=o.id;let l,c="";o.children?(l=[{columnName:o.children[0].columnName,name:"全部",id:""},...o.children],c=o.children[0].columnName,a.value={...o,columnName:c,activeIndex:"",children:l}):a.value={},t("selectChildTag",r.value.activeIndex)}},[o.name]))]}})]}),createVNode(ChildNodeSearch,{activeRow:a.value,onSelectChildTag:i=>{t("selectChildTag",i||r.value.activeIndex)}},null)])])}}}),ResourceSearchGroup$2=defineComponent({name:"resource-search-group",props:{type:{type:String,default:"shareResources"},searchGroup:{type:Object,default:()=>({})},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,audioPlayTypes:e.type=="myResources"?"PLAY":"",bookVersionId:null}),s=reactive({tempSubjectId:null,gradeList:[],musicCategory:[]}),i=reactive({selectParents:{},tags:[],tagActiveId:"",tagActive:{},childSelectId:null}),o=ref([]),l=ref([]),c=N=>{t("search",{...n,subjectId:n.audioPlayTypes!=="SING"?n.subjectId:null,audioPlayTypes:n.audioPlayTypes?n.audioPlayTypes==="PLAY_SING"?["PLAY","SING"]:[n.audioPlayTypes]:[],bookVersionId:i.childSelectId||i.tagActiveId},N)},d=useThrottleFn(()=>c(),500),y=ref(),f=ref([]),u=ref(0),m=ref(0),g=ref(0),E=ref(!1),p=ref(!1),S=()=>{try{f.value=[...new Set(f.value)];let N=-1;f.value.forEach((B,L)=>{L===0?(g.value=1,N=B.offsetLeft):B.offsetLeft===N&&L!=0&&g.value++,E.value?B.style.display="block":g.value>1?B.style.display="none":B.style.display="block"}),p.value=!0}catch(N){}},A=N=>{const B={};return N==null||N.forEach(L=>{L.id===n.subjectId&&(B.selected=!0,B.name=L.name)}),B},b=()=>{const N=a.getMusicTagTree;i.tags=[{columnName:N[0].columnName,name:"全部",id:""},...N],i.tagActiveId=i.tags[0].id},C=N=>{i.tagActiveId=N.id,i.childSelectId=null;let B,L="";N.children?(B=[{columnName:N.children[0].columnName,name:"全部",id:""},...N.children],L=N.children[0].columnName,i.selectParents={...N,columnName:L,activeIndex:"",children:B}):i.selectParents={},c()},x=()=>{var B,L;const N=a.getSubjectInstrumentOnly;if(N.length>0){const R=N[0];R.instruments&&R.instruments.length>1?(s.tempSubjectId=(B=R.instruments[0])==null?void 0:B.value,n.subjectId=(L=R.instruments[0])==null?void 0:L.value):n.subjectId=R.value}},D=(N,B,L=[])=>{for(const R of B){if(R.children&&R.children.length>0){const _=D(N,R.children,[...L,R.id]);if(_.includes(N))return _}if(R.id===N)return[...L,N]}return L},I=(N,B)=>{for(const L of B){if(N.includes(L.id)&&L.children&&L.children.length>0){let R;L.children.forEach(_=>{N.includes(_.id)&&(R=_.id)}),L.activeIndex=R}L.children&&L.children.length>0&&I(N,L.children)}};return onMounted(async()=>{var B,L;const N=Object.keys(audioPlayType).map(R=>({value:R,name:audioPlayType[R]}));if(l.value=[{name:"全部",value:""},...N],resourceTypeArray.forEach(R=>{o.value.push(R)}),await a.getMusicTagTreeApi(),b(),await a.getSubjects(),n.subjectId=null,n.type==="MUSIC"&&(u.value=(B=y.value)==null?void 0:B.offsetHeight,m.value=((L=y.value)==null?void 0:L.offsetHeight)/g.value,S()),x(),console.log(e.searchGroup,"searchGroup - parent"),e.searchGroup.type){const R=e.searchGroup;if(n.type=R.type||"MUSIC",n.audioPlayTypes=R!=null&&R.audioPlayTypes?R.audioPlayTypes.join("_"):"",R.musicalInstrumentId&&(n.subjectId=R.musicalInstrumentId),R.bookVersionId){i.childSelectId=R.bookVersionId;let _=D(i.childSelectId,i.tags);console.log(_,"ids"),i.tagActiveId=_[0];const j=_.findIndex(H=>H===i.childSelectId);_=_.slice(0,j+1),I(_,i.tags),i.tags.forEach(H=>{if(H.id===i.tagActiveId){let M,F="";if(H.children){M=[{columnName:H.children[0].columnName,name:"全部",id:""},...H.children],F=H.children[0].columnName;let P;H.children.forEach(T=>{_.includes(T.id)&&(P=T.id)}),i.selectParents={...H,columnName:F,activeIndex:P||"",children:M}}else i.selectParents={}}})}}c("timer")}),()=>{let N,B,L,R;return createVNode("div",{class:styles$d.searchGroup},[createVNode("div",{class:styles$d.searchCatatory},[createVNode(NSpace,{size:"small",class:styles$d.btnType},_isSlot$3(N=o.value.map(_=>createVNode(NButton,{type:n.type===_.value?"primary":"default",secondary:n.type!==_.value,round:!0,size:"small",focusable:!1,onClick:()=>{n.type=_.value,n.subjectId=null,i.tagActiveId="",i.childSelectId=null,i.selectParents={},n.audioPlayTypes=e.type==="myResources"?"PLAY":"",x(),c();try{nextTick(()=>{var j,H;n.type==="MUSIC"?(u.value=(j=y.value)==null?void 0:j.offsetHeight,m.value=((H=y.value)==null?void 0:H.offsetHeight)/g.value,S()):f.value=[]})}catch(j){}}},{default:()=>[_.label]})))?N:{default:()=>[N]}),createVNode(TheSearch,{class:styles$d.inputSearch,round:!0,onSearch:_=>{n.name=_,d()}},null)]),createVNode(NForm,{labelAlign:"left",labelPlacement:"left",class:styles$d.searchForm},{default:()=>{var _;return[n.type==="MUSIC"&&e.type==="shareResources"&&createVNode(Fragment,null,[createVNode(NFormItem,{label:((_=i.tags[0])==null?void 0:_.columnName)+":"},{default:()=>[createVNode(NSpace,{class:styles$d.spaceSection},_isSlot$3(B=i.tags.map(j=>createVNode("span",{class:[styles$d.textBtn,i.tagActiveId===j.id&&styles$d.textBtnActive],onClick:()=>{C(j)}},[j.name])))?B:{default:()=>[B]})]}),createVNode(ChildNodeSearch,{activeRow:i.selectParents,onSelectChildTag:j=>{i.childSelectId=j,c()}},null)]),e.type!=="myResources"&&n.type==="MUSIC"&&createVNode(NFormItem,{label:"场景:"},{default:()=>[createVNode(NSpace,{class:styles$d.spaceSection},_isSlot$3(L=l.value.map(j=>createVNode("span",{class:[styles$d.textBtn,n.audioPlayTypes===j.value&&styles$d.textBtnActive],onClick:()=>{n.audioPlayTypes=j.value,c()}},[j.name])))?L:{default:()=>[L]})]}),n.audioPlayTypes!=="SING"&&createVNode(NFormItem,{label:"乐器:"},{default:()=>[createVNode(NSpace,{class:styles$d.spaceSection2},_isSlot$3(R=a.getSubjectInstrumentOnly.map(j=>j.instruments&&j.instruments.length>1?createVNode(NPopselect,{options:j.instruments,trigger:"hover",scrollable:!0,value:s.tempSubjectId,"onUpdate:value":[H=>s.tempSubjectId=H,()=>{n.subjectId=s.tempSubjectId,c()}],key:j.value,class:[styles$d.popSelect]},{default:()=>[createVNode("span",{class:[styles$d.textBtn,A(j.instruments).selected&&styles$d.textBtnActive]},[A(j.instruments).name||j.name,createVNode("i",{class:styles$d.iconArrow},null)])]}):createVNode("span",{class:[styles$d.textBtn,n.subjectId===j.value&&styles$d.textBtnActive],onClick:()=>{n.subjectId=j.value,s.tempSubjectId=null,c()}},[j.name])))?R:{default:()=>[R]})]})]}})])}}}),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:""},from:{type:String,default:""}},emits:["search"],setup(e,{emit:t}){const r=toRef(e.subjectId),a=useCatchStore(),n=reactive({type:"MUSIC",name:"",audioPlayTypes:e.type==="myResources"&&e.from==="class"?"PLAY":"",subjectId:r.value,bookVersionId:null}),s=ref([]),i=ref([]),o=y=>{t("search",{...n,subjectId:n.audioPlayTypes!=="SING"?n.subjectId:null,audioPlayTypes:n.audioPlayTypes?n.audioPlayTypes==="PLAY_SING"?["PLAY","SING"]:[n.audioPlayTypes]:[]},y)},l=useThrottleFn(()=>o(),500),c=y=>{const f={};return y==null||y.forEach(u=>{u.id===n.subjectId&&(f.selected=!0,f.name=u.name)}),f},d=()=>{var f;const y=a.getSubjectInstrumentOnly;if(y.length>0){const u=y[0];u.instruments&&u.instruments.length>1?n.subjectId=(f=u.instruments[0])==null?void 0:f.value:n.subjectId=u.value}};return onMounted(async()=>{const y=Object.keys(audioPlayType).map(f=>({value:f,name:audioPlayType[f]}));i.value=[{name:"全部",value:""},...y],resourceTypeArray.forEach(f=>{s.value.push(f)}),await a.getMusicSheetCategory(),await a.getSubjects(),e.subjectId||d(),a.getSubjectInstruments.forEach(f=>{var u;((u=f.instruments)==null?void 0:u.length)>0?f.instruments.forEach(m=>{m.id==e.subjectId&&(n.subjectId=m.value)}):f.id==e.subjectId&&(n.subjectId=f.value)}),o("timer")}),()=>{let y,f;return createVNode("div",{class:styles$b.searchGroup},[createVNode(NForm,{labelAlign:"left",labelPlacement:"left"},{default:()=>[e.type!=="myResources"&&createVNode(NFormItem,{label:"场景:"},{default:()=>[createVNode(NSpace,{class:[styles$b.spaceSection,styles$b.spaceSection2,"spaceSectionBox"]},_isSlot$2(y=i.value.map(u=>createVNode("span",{class:[styles$b.textBtn,n.audioPlayTypes===u.value&&styles$b.textBtnActive],onClick:()=>{n.audioPlayTypes=u.value,o()}},[u.name])))?y:{default:()=>[y]})]}),n.audioPlayTypes!=="SING"&&createVNode(NFormItem,{label:"乐器:"},{default:()=>[createVNode(NSpace,{class:[styles$b.spaceSection,styles$b.spaceSection2,"spaceSectionBox"]},_isSlot$2(f=a.getSubjectInstrumentOnly.map(u=>u.instruments&&u.instruments.length>1?createVNode(NPopselect,{options:u.instruments,trigger:"hover",scrollable:!0,value:n.subjectId,"onUpdate:value":[m=>n.subjectId=m,()=>{o()}],key:u.value,class:[styles$b.popSelect]},{default:()=>[createVNode("span",{class:[styles$b.textBtn,c(u.instruments).selected&&styles$b.textBtnActive]},[c(u.instruments).name||u.name,createVNode("i",{class:styles$b.iconArrow},null)])]}):createVNode("span",{class:[styles$b.textBtn,n.subjectId===u.value&&styles$b.textBtnActive],onClick:()=>{n.subjectId=u.value,o()}},[u.name])))?f:{default:()=>[f]})]}),createVNode(TheSearch,{class:styles$b.inputSearch,round:!0,onSearch:u=>{n.name=u,l()}},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"},searchGroup:{type:Object,default:()=>({})},from:{type:String,default:""},instrumentId:{type:String,default:""}},setup(e){const t=usePrepareStore(),r=useCatchStore(),{type:a}=toRefs(e),n="resourceSearchGroup"+ +new Date,s="spinSearchGroup"+ +new Date,i=reactive({searchHeight:"0px",searchHeight2:"0px",loading:!1,finshed:!1,pagination:{page:1,rows:20},searchGroup:{type:"MUSIC",name:"",bookVersionId:null,subjectId:null,audioPlayTypes:e.type==="myResources"?["PLAY"]:[],sourceType:formatType$2(a.value),musicalInstrumentId:null,enableFlag:!0},tableList:[],show:!1,item:{}}),o=async()=>{try{i.pagination.page===1&&(i.loading=!0);const{data:m}=await materialQueryPage({...i.searchGroup,...i.pagination,lessonCoursewareKnowledgeId:e.type==="relateResources"||e.type==="shareResources"?t.getSelectKey:null,relateLessonCoursewareKnowledgeMaterialIds:f()});i.loading=!1;const g=m.rows||[],E=[];g.forEach(p=>{E.push({id:p.id,coverImg:p.coverImg,type:p.type,title:p.name,isCollect:!!p.favoriteFlag,isSelected:p.sourceFrom==="PLATFORM",refFlag:p.refFlag,instrumentIds:p.instrumentIds,hasNotCheck:p.hasNotCheck,audioPlayTypeArray:p.audioPlayTypes?p.audioPlayTypes.split(","):[],containAccompaniment:p.containAccompaniment,content:p.content})}),i.tableList.push(...E),i.finshed=m.pages<=m.current}catch(m){i.loading=!1}},l=m=>{i.pagination.page=1,i.tableList=[];const{subjectId:g,...E}=m;i.searchGroup=Object.assign(i.searchGroup,{...E,musicalInstrumentId:g,subjectId:null}),o()},c=useDebounceFn(m=>{l(m)},300),d=async m=>{try{eventGlobal.emit("onPrepareAddItem",{materialId:m.id,coverImg:m.coverImg,type:m.type,title:m.title,refFlag:m.refFlag,isCollect:m.isCollect,isSelected:m.isSelected,audioPlayTypeArray:m.audioPlayTypeArray,instrumentIds:m.instrumentIds,hasNotCheck:m.hasNotCheck,content:m.content,removeFlag:!1})}catch(g){}},y=async m=>{try{await favorite({materialId:m.id,favoriteFlag:m.isCollect?0:1,type:m.type}),m.isCollect=!m.isCollect}catch(g){}},f=()=>{let m=[];if(e.type==="relateResources"){const g=[];t.getCoursewareList.forEach(E=>{var p;(p=E.list)==null||p.forEach(S=>{g.push(S.materialId)})}),m=Array(...new Set(g))}return m.join(",")},u=()=>{i.pagination.page=1,i.tableList=[],o()};return onMounted(async()=>{await r.getSubjects(),useResizeObserver(document.querySelector("."+n),m=>{const g=m[0],{height:E}=g.contentRect;i.searchHeight=E+"px"}),useResizeObserver(document.querySelector("."+s),m=>{const g=m[0],{height:E}=g.contentRect;i.searchHeight2=E+"px"}),e.type==="relateResources"&&eventGlobal.on("onCoursewareUpdate",u)}),onUnmounted(()=>{eventGlobal.off("onCoursewareUpdate",u)}),()=>createVNode("div",null,[createVNode(NScrollbar,{class:[styles$c.listContainer,"list_container"],style:{"max-height":"calc(var(--listContainerHeight) - var(--modal-lesson-tab-height) - ".concat(i.searchHeight,") ")},onScroll:m=>{var S,A,b;const g=(S=m.target)==null?void 0:S.clientHeight,E=(A=m.target)==null?void 0:A.scrollTop,p=(b=m.target)==null?void 0:b.scrollHeight;g+E+20>=p&&!i.finshed&&!i.loading&&(i.pagination.page=i.pagination.page+1,o())}},{default:()=>[createVNode("div",{class:s},[e.from==="class"?createVNode(ClassSearchGroup,{from:e.from,type:e.type,subjectId:t.getSubjectId||e.instrumentId,onSearch:(m,g)=>{if(g){l(m);return}c(m)}},null):createVNode(ResourceSearchGroup$2,{type:e.type,searchGroup:e.searchGroup,onSearch:(m,g)=>{if(g){l(m);return}c(m)}},null)]),createVNode(NSpin,{show:i.loading,size:"small"},{default:()=>[createVNode("div",{style:{"min-height":"calc(var(--listContainerHeight) - var(--modal-lesson-tab-height) - ".concat(i.searchHeight," - ").concat(i.searchHeight2,")")},class:[styles$c.listSection,!i.loading&&i.tableList.length<=0?styles$c.emptySection:""]},[i.tableList.length>0&&createVNode("div",{class:styles$c.list},[i.tableList.map(m=>createVNode("div",{class:[styles$c.itemWrap,"selresources_item_Wrap"]},[createVNode("div",{class:styles$c.itemWrapBox},[createVNode(CardType,{isShowAdd:e.from!=="class",item:m,isShowCollect:!0,onAdd:g=>d(g),disabledMouseHover:!1,onCollect:g=>y(g),onClick:()=>{m.type!=="IMG"&&(i.show=!0,i.item={instrumentId:i.searchGroup.musicalInstrumentId,...m})}},null)])]))]),!i.loading&&i.tableList.length<=0&&createVNode(TheEmpty,null,null)])]})]}),createVNode(CardPreview,{size:e.from==="class"?"large":"default",show:i.show,"onUpdate:show":m=>i.show=m,from:e.from,item:i.item,isDownload:!1},null)])}}),SelectResources=defineComponent({name:"select-resources",props:{type:{type:String,default:"myResources"},searchGroup:{type:Object,default:()=>({})},from:{type:String,default:""},instrumentId:{type:String,default:""}},emits:["select"],setup(e){const{type:t}=toRefs(e),r=ref(t.value),a=useCatchStore();return onMounted(async()=>{nextTick(()=>{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",searchGroup:e.searchGroup,from:e.from,instrumentId:e.instrumentId},null)]}),createVNode(NTabPane,{name:"shareResources",tab:e.from==="class"?"共享曲目":"共享资源"},{default:()=>[createVNode(SelectItem,{type:"shareResources",from:e.from,searchGroup:e.searchGroup,instrumentId:e.instrumentId},null)]}),createVNode(NTabPane,{name:"myResources",tab:e.from==="class"?"我的曲目":"我的资源"},{default:()=>[createVNode(SelectItem,{type:"myResources",from:e.from,searchGroup:e.searchGroup,instrumentId:e.instrumentId},null)]}),createVNode(NTabPane,{name:"myCollect",tab:"我的收藏"},{default:()=>[createVNode(SelectItem,{type:"myCollect",from:e.from,searchGroup:e.searchGroup,instrumentId:e.instrumentId},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_1ji0a_1",coursewareTypeHover="_coursewareTypeHover_1ji0a_12",addBtn="_addBtn_1ji0a_12",coursewareTypeHocoursewareTypeShow="_coursewareTypeHocoursewareTypeShow_1ji0a_16",cover="_cover_1ji0a_38",noCoverImg="_noCoverImg_1ji0a_48",defaultLook="_defaultLook_1ji0a_58",isShowAdd="_isShowAdd_1ji0a_82",iconNoWork="_iconNoWork_1ji0a_90",statusCon="_statusCon_1ji0a_100",status="_status_1ji0a_100",hideP="_hideP_1ji0a_128",preview="_preview_1ji0a_131",previewBtn="_previewBtn_1ji0a_151",coursewareText="_coursewareText_1ji0a_158",name$1="_name_1ji0a_161",iconEditName="_iconEditName_1ji0a_176",subjectName="_subjectName_1ji0a_183",editName="_editName_1ji0a_189",addCourseBtn="_addCourseBtn_1ji0a_208",operationBottom="_operationBottom_1ji0a_218",footer="_footer_1ji0a_221",actionClass="_actionClass_1ji0a_230",actionWork="_actionWork_1ji0a_249",menu="_menu_1ji0a_259",iconEdit="_iconEdit_1ji0a_176",iconDelete="_iconDelete_1ji0a_283",iconSetup="_iconSetup_1ji0a_284",popoverItem="_popoverItem_1ji0a_301",iconLook="_iconLook_1ji0a_335",iconAdd="_iconAdd_1ji0a_336",styles$9={coursewareType,coursewareTypeHover,addBtn,coursewareTypeHocoursewareTypeShow,cover,noCoverImg,defaultLook,isShowAdd,function:"_function_1ji0a_85",iconNoWork,statusCon,status,hideP,preview,previewBtn,coursewareText,name:name$1,iconEditName,subjectName,editName,addCourseBtn,operationBottom,footer,actionClass,actionWork,menu,iconEdit,iconDelete,iconSetup,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},background:{type:String,default:"#F4F7FD"}},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],style:{background:e.background}},[createVNode("div",{class:[styles$9.cover,e.isShowPreviewBtn&&styles$9.hideP,e.isShowAdd&&styles$9.isShowAdd],onClick:()=>t("click")},[createVNode("div",{class:styles$9.statusCon},[createVNode("div",{class:styles$9.status},[e.item.coursewareType==="PPT"?"PPT":"数字化课件"]),e.isShowOpenFlag&&e.item.openFlag&&createVNode("div",{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("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.isShowAdd&&createVNode("div",{class:styles$9.addCourseBtn,onClick:()=>t("add")},[createTextVNode("添加课件")])]),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},[e.item.coursewareType==="PPT"?createVNode(Fragment,null,[createVNode("div",{class:styles$9.popoverItem,onClick:()=>t("edit","PPT")},[createVNode("i",{class:styles$9.iconEdit},null),createVNode("span",null,[createTextVNode("编辑PPT")])]),createVNode("div",{class:styles$9.popoverItem,onClick:()=>t("edit")},[createVNode("i",{class:styles$9.iconSetup},null),createVNode("span",null,[createTextVNode("课件设置")])])]):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,coursewareType:i.coursewareType})}),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,audioPlayTypeSize:"small",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_2jpng_1",tipsContainer="_tipsContainer_2jpng_61",tipsLeft="_tipsLeft_2jpng_73",tips="_tips_2jpng_61",iconTips="_iconTips_2jpng_82",btnNoTips="_btnNoTips_2jpng_87",btnItem="_btnItem_2jpng_93",btnTitle="_btnTitle_2jpng_97",btnGroupClass="_btnGroupClass_2jpng_106",listContainer$2="_listContainer_2jpng_109",listSection$2="_listSection_2jpng_113",listContainerDrag="_listContainerDrag_2jpng_116",emptySection$2="_emptySection_2jpng_122",list$2="_list_2jpng_109",itemBlock="_itemBlock_2jpng_136",trainEditModal$2="_trainEditModal_2jpng_139",assignHomework="_assignHomework_2jpng_48",assignHomeworkContainer="_assignHomeworkContainer_2jpng_145",maxExpireTime="_maxExpireTime_2jpng_148",expireDateTip="_expireDateTip_2jpng_151",expireDateIcon="_expireDateIcon_2jpng_159",updateBtnGroup="_updateBtnGroup_2jpng_171",active="_active_2jpng_183",studentSection$1="_studentSection_2jpng_187",selectStudentBtn="_selectStudentBtn_2jpng_191",disabled="_disabled_2jpng_200",firstName="_firstName_2jpng_204",studentList="_studentList_2jpng_207",studentItem$1="_studentItem_2jpng_215",removeVisiable="_removeVisiable_2jpng_233",studentRemove="_studentRemove_2jpng_239",btnGroupModal="_btnGroupModal_2jpng_251",removeVisiable1="_removeVisiable1_2jpng_258",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,maxExpireTime,expireDateTip,expireDateIcon,updateBtnGroup,switch:"_switch_2jpng_179",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);/**!
  9. * Sortable 1.14.0
  10. * @author RubaXa <trash@rubaxa.org>
  11. * @author owenm <owen23355@gmail.com>
  12. * @license MIT
  13. */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,d,y;if(e!==window&&e.parentNode&&e!==getWindowScrollingElement()?(s=e.getBoundingClientRect(),i=s.top,o=s.left,l=s.bottom,c=s.right,d=s.height,y=s.width):(i=0,o=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,y=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 f=n.getBoundingClientRect();i-=f.top+parseInt(css(n,"border-top-width")),o-=f.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 u=matrix(n||e),m=u&&u.a,g=u&&u.d;u&&(i/=g,o/=m,y/=m,d/=g,l=i+d,c=o+y)}return{top:i,left:o,bottom:l,right:c,width:y,height:d}}}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,d=c.fromRect,y=getRect(c),f=c.prevFromRect,u=c.prevToRect,m=o.rect,g=matrix(c,!0);g&&(y.top-=g.f,y.left-=g.e),c.toRect=y,c.thisAnimationDuration&&isRectEqual(f,y)&&!isRectEqual(d,y)&&(m.top-y.top)/(m.left-y.left)===(d.top-y.top)/(d.left-y.left)&&(l=calculateRealTime(m,f,u,n.options)),isRectEqual(y,d)||(c.prevFromRect=d,c.prevToRect=y,l||(l=n.options.animation),n.animate(c,m,y,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,d=(n.left-s.left)/(l||1),y=(n.top-s.top)/(c||1);a.animatingX=!!d,a.animatingY=!!y,css(a,"transform","translate3d("+d+"px,"+y+"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,d=e.oldDraggableIndex,y=e.newDraggableIndex,f=e.originalEvent,u=e.putSortable,m=e.extraEventProperties;if(t=t||r&&r[expando],!!t){var g,E=t.options,p="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=d,g.newDraggableIndex=y,g.originalEvent=f,g.pullMode=u?u.lastPutMode:void 0;var S=_objectSpread2(_objectSpread2({},m),PluginManager.getEventProperties(a,t));for(var A in S)g[A]=S[A];r&&r.dispatchEvent(g),E[p]&&E[p].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,d=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 y=o.float==="left"?"left":"right";return i&&(l.clear==="both"||l.clear===y)?"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+d>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,d){var y=o.options.group.name&&l.options.group.name&&o.options.group.name===l.options.group.name;if(s==null&&(i||y))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,d),i)(o,l,c,d);var f=(i?o:l).options.group.name;return s===!0||typeof s=="string"&&s===f||s.join&&s.indexOf(f)>-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,d=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 d=="function"){if(d.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(d&&(d=d.split(",").some(function(y){if(y=closest(c,y.trim(),a,!1),y)return _dispatchEvent({sortable:r,rootEl:y,name:"filter",targetEl:l,fromEl:a,toEl:a}),pluginEvent("filter",r,{evt:t}),!0}),d)){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(d){find(dragEl,d.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),d=(s.clientX-tapEvt.clientX+n.x)/(o||1)+(c?c[0]-ghostRelativeParentInitialScroll[0]:0)/(o||1),y=(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+=d-(lastDx||0),i.f+=y-(lastDy||0)):i={a:1,b:0,c:0,d:1,e:d,f:y};var f="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");css(ghostEl,"webkitTransform",f),css(ghostEl,"mozTransform",f),css(ghostEl,"msTransform",f),css(ghostEl,"transform",f),lastDx=d,lastDy=y,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,d=activeGroup===l,y=o.sort,f=putSortable||c,u,m=this,g=!1;if(_silent)return;function E(P,T){pluginEvent(P,m,_objectSpread2({evt:t,isOwner:d,axis:u?"vertical":"horizontal",revert:i,dragRect:n,targetRect:s,canSort:y,fromSortable:f,target:a,completed:S,onMove:function(k,z){return _onMove(rootEl,r,dragEl,n,k,getRect(k),t,z)},changed:A},T))}function p(){E("dragOverAnimationCapture"),m.captureAnimationState(),m!==f&&f.captureAnimationState()}function S(P){return E("dragOverCompleted",{insertion:P}),P&&(d?c._hideClone():c._showClone(m),m!==f&&(toggleClass(dragEl,putSortable?putSortable.options.ghostClass:c.options.ghostClass,!1),toggleClass(dragEl,o.ghostClass,!0)),putSortable!==m&&m!==Sortable.active?putSortable=m:m===Sortable.active&&putSortable&&(putSortable=null),f===m&&(m._ignoreWhileAnimating=a),m.animateAll(function(){E("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===dragEl&&!dragEl.animated||a===r&&!a.animated)&&(lastTarget=null),!o.dragoverBubble&&!t.rootEl&&a!==document&&(dragEl.parentNode[expando]._isOutsideThisEl(t.target),!P&&nearestEmptyInsertDetectEvent(t)),!o.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),g=!0}function A(){newIndex=index$1(dragEl),newDraggableIndex=index$1(dragEl,o.draggable),_dispatchEvent({sortable:m,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||m._ignoreWhileAnimating===a)return S(!1);if(ignoreNextClick=!1,c&&!o.disabled&&(d?y||(i=parentEl!==rootEl):putSortable===this||(this.lastPutMode=activeGroup.checkPull(this,c,dragEl,t))&&l.checkPut(this,c,dragEl,t))){if(u=this._getDirection(t,a)==="vertical",n=getRect(dragEl),E("dragOverValid"),Sortable.eventCanceled)return g;if(i)return parentEl=rootEl,p(),this._hideClone(),E("revert"),Sortable.eventCanceled||(nextEl?rootEl.insertBefore(dragEl,nextEl):rootEl.appendChild(dragEl)),S(!0);var b=lastChild(r,o.draggable);if(!b||_ghostIsLast(t,u,this)&&!b.animated){if(b===dragEl)return S(!1);if(b&&r===t.target&&(a=b),a&&(s=getRect(a)),_onMove(rootEl,r,dragEl,n,a,s,t,!!a)!==!1)return p(),r.appendChild(dragEl),parentEl=r,A(),S(!0)}else if(b&&_ghostIsFirst(t,u,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 p(),r.insertBefore(dragEl,C),parentEl=r,A(),S(!0)}else if(a.parentNode===r){s=getRect(a);var x=0,D,I=dragEl.parentNode!==r,N=!_dragElInRowColumn(dragEl.animated&&dragEl.toRect||n,a.animated&&a.toRect||s,u),B=u?"top":"left",L=isScrolledPast(a,"top","top")||isScrolledPast(dragEl,"top","top"),R=L?L.scrollTop:void 0;lastTarget!==a&&(D=s[B],pastFirstInvertThresh=!1,isCircumstantialInvert=!N&&o.invertSwap||I),x=_getSwapDirection(t,a,s,u,N?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,isCircumstantialInvert,lastTarget===a);var _;if(x!==0){var j=index$1(dragEl);do j-=x,_=parentEl.children[j];while(_&&(css(_,"display")==="none"||_===ghostEl))}if(x===0||_===a)return S(!1);lastTarget=a,lastDirection=x;var H=a.nextElementSibling,M=!1;M=x===1;var F=_onMove(rootEl,r,dragEl,n,a,s,t,M);if(F!==!1)return(F===1||F===-1)&&(M=F===1),_silent=!0,setTimeout(_unsilent,30),p(),M&&!H?r.appendChild(dragEl):a.parentNode.insertBefore(dragEl,M?H:a),L&&scrollBy(L,0,R-L.scrollTop),parentEl=dragEl.parentNode,D!==void 0&&!isCircumstantialInvert&&(targetMoveDistance=Math.abs(D-getRect(a)[B])),A(),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],d=c.options.onMove,y;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),d&&(y=d.call(c,l,i)),y}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,d=a?r.top:r.left,y=a?r.bottom:r.right,f=!1;if(!i){if(o&&targetMoveDistance<c*n){if(!pastFirstInvertThresh&&(lastDirection===1?l>d+c*s/2:l<y-c*s/2)&&(pastFirstInvertThresh=!0),pastFirstInvertThresh)f=!0;else if(lastDirection===1?l<d+targetMoveDistance:l>y-targetMoveDistance)return-lastDirection}else if(l>d+c*(1-n)/2&&l<y-c*(1-n)/2)return _getInsertDirection(t)}return f=f||i,f&&(l<d+c*s/2||l>y-c*s/2)?l>d+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,d;scrollRootEl!==r&&(scrollRootEl=r,clearAutoScrolls(),scrollEl=t.scroll,d=t.scrollFn,scrollEl===!0&&(scrollEl=getParentAutoScrollElement(r,!0)));var y=0,f=scrollEl;do{var u=f,m=getRect(u),g=m.top,E=m.bottom,p=m.left,S=m.right,A=m.width,b=m.height,C=void 0,x=void 0,D=u.scrollWidth,I=u.scrollHeight,N=css(u),B=u.scrollLeft,L=u.scrollTop;u===l?(C=A<D&&(N.overflowX==="auto"||N.overflowX==="scroll"||N.overflowX==="visible"),x=b<I&&(N.overflowY==="auto"||N.overflowY==="scroll"||N.overflowY==="visible")):(C=A<D&&(N.overflowX==="auto"||N.overflowX==="scroll"),x=b<I&&(N.overflowY==="auto"||N.overflowY==="scroll"));var R=C&&(Math.abs(S-n)<=i&&B+A<D)-(Math.abs(p-n)<=i&&!!B),_=x&&(Math.abs(E-s)<=i&&L+b<I)-(Math.abs(g-s)<=i&&!!L);if(!autoScrolls[y])for(var j=0;j<=y;j++)autoScrolls[j]||(autoScrolls[j]={});(autoScrolls[y].vx!=R||autoScrolls[y].vy!=_||autoScrolls[y].el!==u)&&(autoScrolls[y].el=u,autoScrolls[y].vx=R,autoScrolls[y].vy=_,clearInterval(autoScrolls[y].pid),(R!=0||_!=0)&&(c=!0,autoScrolls[y].pid=setInterval((function(){a&&this.layer===0&&Sortable.active._onTouchMove(touchEvt$1);var H=autoScrolls[this.layer].vy?autoScrolls[this.layer].vy*o:0,M=autoScrolls[this.layer].vx?autoScrolls[this.layer].vx*o:0;typeof d=="function"&&d.call(Sortable.dragged.parentNode[expando],M,H,e,touchEvt$1,autoScrolls[this.layer].el)!=="continue"||scrollBy(autoScrolls[this.layer].el,M,H)}).bind({layer:y}),24))),y++}while(t.bubbleScroll&&f!==l&&(f=getParentAutoScrollElement(f,!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 d=r.changedTouches&&r.changedTouches.length?r.changedTouches[0]:r,y=document.elementFromPoint(d.clientX,d.clientY);l(),c&&!c.el.contains(y)&&(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,d=this.options;if(n&&n!==c){var y=lastSwapEl;s(n)!==!1?(toggleClass(n,d.swapClass,!0),lastSwapEl=n):lastSwapEl=null,y&&y!==lastSwapEl&&toggleClass(y,d.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 d=getRect(dragEl$1,!1,!0,!0);multiDragElements.forEach(function(f){f!==dragEl$1&&(setRect(f,d),o.appendChild(f))}),folding=!0}if(!n)if(folding||removeMultiDragElements(),multiDragElements.length>1){var y=clonesHidden;i._showClone(a),i.options.animation&&!clonesHidden&&y&&multiDragClones.forEach(function(f){i.addAnimationState({target:f,rect:clonesFromRect}),f.fromRect=clonesFromRect,f.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,d=c||this.sortable;if(a){var y=this.options,f=s.children;if(!dragStarted)if(y.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),toggleClass(dragEl$1,y.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 u=index$1(lastMultiDragSelect),m=index$1(dragEl$1);if(~u&&~m&&u!==m){var g,E;for(m>u?(E=u,g=m):(E=m,g=u+1);E<g;E++)~multiDragElements.indexOf(f[E])||(toggleClass(f[E],y.selectedClass,!0),multiDragElements.push(f[E]),dispatchEvent({sortable:i,rootEl:n,name:"select",targetEl:f[E],originalEvt:a}))}}else lastMultiDragSelect=dragEl$1;multiDragSortable=d}if(dragStarted&&this.isMultiDrag){if(folding=!1,(s[expando].options.sort||s!==n)&&multiDragElements.length>1){var p=getRect(dragEl$1),S=index$1(dragEl$1,":not(."+this.options.selectedClass+")");if(!initialFolding&&y.animation&&(dragEl$1.thisAnimationDuration=null),d.captureAnimationState(),!initialFolding&&(y.animation&&(dragEl$1.fromRect=p,multiDragElements.forEach(function(b){if(b.thisAnimationDuration=null,b!==dragEl$1){var C=folding?getRect(b):p;b.fromRect=C,d.addAnimationState({target:b,rect:C})}})),removeMultiDragElements(),multiDragElements.forEach(function(b){f[S]?s.insertBefore(b,f[S]):s.appendChild(b),S++}),l===index$1(dragEl$1))){var A=!1;multiDragElements.forEach(function(b){if(b.sortableIndex!==index$1(b)){A=!0;return}}),A&&o("update")}multiDragElements.forEach(function(b){unsetRect(b)}),d.animateAll()}multiDragSortable=d}(n===s||c&&c.lastPutMode!=="clone")&&multiDragClones.forEach(function(b){b.parentNode&&b.parentNode.removeChild(b)})}},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 d in o)i.d(c,d,(function(y){return o[y]}).bind(null,d));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,d){if(o(l),c===void 0)return l;switch(d){case 0:return function(){return l.call(c)};case 1:return function(y){return l.call(c,y)};case 2:return function(y,f){return l.call(c,y,f)};case 3:return function(y,f,u){return l.call(c,y,f,u)}}return function(){return l.apply(c,arguments)}}},"057f":function(n,s,i){var o=i("fc6a"),l=i("241c").f,c={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],y=function(f){try{return l(f)}catch(u){return d.slice()}};n.exports.f=function(u){return d&&c.call(u)=="[object Window]"?y(u):l(o(u))}},"06cf":function(n,s,i){var o=i("83ab"),l=i("d1e7"),c=i("5c6c"),d=i("fc6a"),y=i("c04e"),f=i("5135"),u=i("0cfb"),m=Object.getOwnPropertyDescriptor;s.f=o?m:function(E,p){if(E=d(E),p=y(p,!0),u)try{return m(E,p)}catch(S){}if(f(E,p))return c(!l.f.call(E,p),E[p])}},"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"),d=i("ae40"),y=c("reduce"),f=d("reduce",{1:0});o({target:"Array",proto:!0,forced:!y||!f},{reduce:function(m){return l(this,m,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,d){var y=c.exec;if(typeof y=="function"){var f=y.call(c,d);if(typeof f!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return f}if(o(c)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(c,d)}},"159b":function(n,s,i){var o=i("da84"),l=i("fdbc"),c=i("17c2"),d=i("9112");for(var y in l){var f=o[y],u=f&&f.prototype;if(u&&u.forEach!==c)try{d(u,"forEach",c)}catch(m){u.forEach=c}}},"17c2":function(n,s,i){var o=i("b727").forEach,l=i("a640"),c=i("ae40"),d=l("forEach"),y=c("forEach");n.exports=!d||!y?function(u){return o(this,u,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 d=0,y={next:function(){return{done:!!d++}},return:function(){c=!0}};y[l]=function(){return this},Array.from(y,function(){throw 2})}catch(f){}n.exports=function(f,u){if(!u&&!c)return!1;var m=!1;try{var g={};g[l]=function(){return{next:function(){return{done:m=!0}}}},f(g)}catch(E){}return m}},"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"),d=l("species");n.exports=function(y){return c>=51||!o(function(){var f=[],u=f.constructor={};return u[d]=function(){return{foo:1}},f[y](Boolean).foo!==1})}},"23cb":function(n,s,i){var o=i("a691"),l=Math.max,c=Math.min;n.exports=function(d,y){var f=o(d);return f<0?l(f+y,0):c(f,y)}},"23e7":function(n,s,i){var o=i("da84"),l=i("06cf").f,c=i("9112"),d=i("6eeb"),y=i("ce4e"),f=i("e893"),u=i("94ca");n.exports=function(m,g){var E=m.target,p=m.global,S=m.stat,A,b,C,x,D,I;if(p?b=o:S?b=o[E]||y(E,{}):b=(o[E]||{}).prototype,b)for(C in g){if(D=g[C],m.noTargetGet?(I=l(b,C),x=I&&I.value):x=b[C],A=u(p?C:E+(S?".":"#")+C,m.forced),!A&&x!==void 0){if(typeof D==typeof x)continue;f(D,x)}(m.sham||x&&x.sham)&&c(D,"sham",!0),d(b,C,D,m)}}},"241c":function(n,s,i){var o=i("ca84"),l=i("7839"),c=l.concat("length","prototype");s.f=Object.getOwnPropertyNames||function(y){return o(y,c)}},"25f0":function(n,s,i){var o=i("6eeb"),l=i("825a"),c=i("d039"),d=i("ad6d"),y="toString",f=RegExp.prototype,u=f[y],m=c(function(){return u.call({source:"a",flags:"b"})!="/a/b"}),g=u.name!=y;(m||g)&&o(RegExp.prototype,y,function(){var p=l(this),S=String(p.source),A=p.flags,b=String(A===void 0&&p instanceof RegExp&&!("flags"in f)?d.call(p):A);return"/"+S+"/"+b},{unsafe:!0})},"2ca0":function(n,s,i){var o=i("23e7"),l=i("06cf").f,c=i("50c4"),d=i("5a34"),y=i("1d80"),f=i("ab13"),u=i("c430"),m="".startsWith,g=Math.min,E=f("startsWith"),p=!u&&!E&&!!function(){var S=l(String.prototype,"startsWith");return S&&!S.writable}();o({target:"String",proto:!0,forced:!p&&!E},{startsWith:function(A){var b=String(y(this));d(A);var C=c(g(arguments.length>1?arguments[1]:void 0,b.length)),x=String(A);return m?m.call(b,x,C):b.slice(C,C+x.length)===x}})},"2d00":function(n,s,i){var o=i("da84"),l=i("342f"),c=o.process,d=c&&c.versions,y=d&&d.v8,f,u;y?(f=y.split("."),u=f[0]+f[1]):l&&(f=l.match(/Edge\/(\d+)/),(!f||f[1]>=74)&&(f=l.match(/Chrome\/(\d+)/),f&&(u=f[1]))),n.exports=u&&+u},"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"),d=c("iterator");n.exports=function(y){if(y!=null)return y[d]||y["@@iterator"]||l[o(y)]}},"37e8":function(n,s,i){var o=i("83ab"),l=i("9bf2"),c=i("825a"),d=i("df75");n.exports=o?Object.defineProperties:function(f,u){c(f);for(var m=d(u),g=m.length,E=0,p;g>E;)l.f(f,p=m[E++],u[p]);return f}},"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"),d="String Iterator",y=l.set,f=l.getterFor(d);c(String,"String",function(u){y(this,{type:d,string:String(u),index:0})},function(){var m=f(this),g=m.string,E=m.index,p;return E>=g.length?{value:void 0,done:!0}:(p=o(g,E),m.index+=p.length,{value:p,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(d){return l(d)=="String"?c.call(d,""):Object(d)}:Object},"44d2":function(n,s,i){var o=i("b622"),l=i("7c73"),c=i("9bf2"),d=o("unscopables"),y=Array.prototype;y[d]==null&&c.f(y,d,{configurable:!0,value:l(null)}),n.exports=function(f){y[d][f]=!0}},"44e7":function(n,s,i){var o=i("861d"),l=i("c6b6"),c=i("b622"),d=c("match");n.exports=function(y){var f;return o(y)&&((f=y[d])!==void 0?!!f:l(y)=="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"),d=function(y){return function(f,u,m){var g=o(f),E=l(g.length),p=c(m,E),S;if(y&&u!=u){for(;E>p;)if(S=g[p++],S!=S)return!0}else for(;E>p;p++)if((y||p in g)&&g[p]===u)return y||p||0;return!y&&-1}};n.exports={includes:d(!0),indexOf:d(!1)}},"4de4":function(n,s,i){var o=i("23e7"),l=i("b727").filter,c=i("1dde"),d=i("ae40"),y=c("filter"),f=d("filter");o({target:"Array",proto:!0,forced:!y||!f},{filter:function(m){return l(this,m,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(n,s,i){var o=i("0366"),l=i("7b0b"),c=i("9bdd"),d=i("e95a"),y=i("50c4"),f=i("8418"),u=i("35a1");n.exports=function(g){var E=l(g),p=typeof this=="function"?this:Array,S=arguments.length,A=S>1?arguments[1]:void 0,b=A!==void 0,C=u(E),x=0,D,I,N,B,L,R;if(b&&(A=o(A,S>2?arguments[2]:void 0,2)),C!=null&&!(p==Array&&d(C)))for(B=C.call(E),L=B.next,I=new p;!(N=L.call(B)).done;x++)R=b?c(B,A,[N.value,x],!0):N.value,f(I,x,R);else for(D=y(E.length),I=new p(D);D>x;x++)R=b?A(E[x],x):E[x],f(I,x,R);return I.length=x,I}},"4fad":function(n,s,i){var o=i("23e7"),l=i("6f53").entries;o({target:"Object",stat:!0},{entries:function(d){return l(d)}})},"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"),d=i("50c4"),y=i("a691"),f=i("1d80"),u=i("8aa5"),m=i("14c3"),g=Math.max,E=Math.min,p=Math.floor,S=/\$([$&'`]|\d\d?|<[^>]*>)/g,A=/\$([$&'`]|\d\d?)/g,b=function(C){return C===void 0?C:String(C)};o("replace",2,function(C,x,D,I){var N=I.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,B=I.REPLACE_KEEPS_$0,L=N?"$":"$0";return[function(j,H){var M=f(this),F=j==null?void 0:j[C];return F!==void 0?F.call(j,M,H):x.call(String(M),j,H)},function(_,j){if(!N&&B||typeof j=="string"&&j.indexOf(L)===-1){var H=D(x,_,this,j);if(H.done)return H.value}var M=l(_),F=String(this),P=typeof j=="function";P||(j=String(j));var T=M.global;if(T){var O=M.unicode;M.lastIndex=0}for(var k=[];;){var z=m(M,F);if(z===null||(k.push(z),!T))break;var Q=String(z[0]);Q===""&&(M.lastIndex=u(F,d(M.lastIndex),O))}for(var X="",re=0,q=0;q<k.length;q++){z=k[q];for(var te=String(z[0]),ue=g(E(y(z.index),F.length),0),fe=[],he=1;he<z.length;he++)fe.push(b(z[he]));var pe=z.groups;if(P){var oe=[te].concat(fe,ue,F);pe!==void 0&&oe.push(pe);var ne=String(j.apply(void 0,oe))}else ne=R(te,F,ue,fe,pe,j);ue>=re&&(X+=F.slice(re,ue)+ne,re=ue+te.length)}return X+F.slice(re)}];function R(_,j,H,M,F,P){var T=H+_.length,O=M.length,k=A;return F!==void 0&&(F=c(F),k=S),x.call(P,k,function(z,Q){var X;switch(Q.charAt(0)){case"$":return"$";case"&":return _;case"`":return j.slice(0,H);case"'":return j.slice(T);case"<":X=F[Q.slice(1,-1)];break;default:var re=+Q;if(re===0)return z;if(re>O){var q=p(re/10);return q===0?z:q<=O?M[q-1]===void 0?Q.charAt(1):M[q-1]+Q.charAt(1):z}X=M[re-1]}return X===void 0?"":X})}})},5692:function(n,s,i){var o=i("c430"),l=i("c6cd");(n.exports=function(c,d){return l[c]||(l[c]=d!==void 0?d:{})})("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"),d=i("825a");n.exports=o("Reflect","ownKeys")||function(f){var u=l.f(d(f)),m=c.f;return m?u.concat(m(f)):u}},"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"),d=i("50c4"),y=i("1c0b"),f=i("65f0");o({target:"Array",proto:!0},{flatMap:function(m){var g=c(this),E=d(g.length),p;return y(m),p=f(g,0),p.length=l(p,g,g,E,0,1,m,arguments.length>1?arguments[1]:void 0),p}})},6547:function(n,s,i){var o=i("a691"),l=i("1d80"),c=function(d){return function(y,f){var u=String(l(y)),m=o(f),g=u.length,E,p;return m<0||m>=g?d?"":void 0:(E=u.charCodeAt(m),E<55296||E>56319||m+1===g||(p=u.charCodeAt(m+1))<56320||p>57343?d?u.charAt(m):E:d?u.slice(m,m+2):(E-55296<<10)+(p-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"),d=c("species");n.exports=function(y,f){var u;return l(y)&&(u=y.constructor,typeof u=="function"&&(u===Array||l(u.prototype))?u=void 0:o(u)&&(u=u[d],u===null&&(u=void 0))),new(u===void 0?Array:u)(f===0?0:f)}},"69f3":function(n,s,i){var o=i("7f9a"),l=i("da84"),c=i("861d"),d=i("9112"),y=i("5135"),f=i("f772"),u=i("d012"),m=l.WeakMap,g,E,p,S=function(N){return p(N)?E(N):g(N,{})},A=function(N){return function(B){var L;if(!c(B)||(L=E(B)).type!==N)throw TypeError("Incompatible receiver, "+N+" required");return L}};if(o){var b=new m,C=b.get,x=b.has,D=b.set;g=function(N,B){return D.call(b,N,B),B},E=function(N){return C.call(b,N)||{}},p=function(N){return x.call(b,N)}}else{var I=f("state");u[I]=!0,g=function(N,B){return d(N,I,B),B},E=function(N){return y(N,I)?N[I]:{}},p=function(N){return y(N,I)}}n.exports={set:g,get:E,has:p,enforce:S,getterFor:A}},"6eeb":function(n,s,i){var o=i("da84"),l=i("9112"),c=i("5135"),d=i("ce4e"),y=i("8925"),f=i("69f3"),u=f.get,m=f.enforce,g=String(String).split("String");(n.exports=function(E,p,S,A){var b=A?!!A.unsafe:!1,C=A?!!A.enumerable:!1,x=A?!!A.noTargetGet:!1;if(typeof S=="function"&&(typeof p=="string"&&!c(S,"name")&&l(S,"name",p),m(S).source=g.join(typeof p=="string"?p:"")),E===o){C?E[p]=S:d(p,S);return}else b?!x&&E[p]&&(C=!0):delete E[p];C?E[p]=S:l(E,p,S)})(Function.prototype,"toString",function(){return typeof this=="function"&&u(this).source||y(this)})},"6f53":function(n,s,i){var o=i("83ab"),l=i("df75"),c=i("fc6a"),d=i("d1e7").f,y=function(f){return function(u){for(var m=c(u),g=l(m),E=g.length,p=0,S=[],A;E>p;)A=g[p++],(!o||d.call(m,A))&&S.push(f?[A,m[A]]:m[A]);return S}};n.exports={entries:y(!0),values:y(!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"),d=i("9bf2").f;n.exports=function(y){var f=o.Symbol||(o.Symbol={});l(f,y)||d(f,y,{value:c.f(y)})}},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"),d=i("d012"),y=i("1be4"),f=i("cc12"),u=i("f772"),m=">",g="<",E="prototype",p="script",S=u("IE_PROTO"),A=function(){},b=function(N){return g+p+m+N+g+"/"+p+m},C=function(N){N.write(b("")),N.close();var B=N.parentWindow.Object;return N=null,B},x=function(){var N=f("iframe"),B="java"+p+":",L;return N.style.display="none",y.appendChild(N),N.src=String(B),L=N.contentWindow.document,L.open(),L.write(b("document.F=Object")),L.close(),L.F},D,I=function(){try{D=document.domain&&new ActiveXObject("htmlfile")}catch(B){}I=D?C(D):x();for(var N=c.length;N--;)delete I[E][c[N]];return I()};d[S]=!0,n.exports=Object.create||function(B,L){var R;return B!==null?(A[E]=o(B),R=new A,A[E]=null,R[S]=B):R=I(),L===void 0?R:l(R,L)}},"7dd0":function(n,s,i){var o=i("23e7"),l=i("9ed3"),c=i("e163"),d=i("d2bb"),y=i("d44e"),f=i("9112"),u=i("6eeb"),m=i("b622"),g=i("c430"),E=i("3f8c"),p=i("ae93"),S=p.IteratorPrototype,A=p.BUGGY_SAFARI_ITERATORS,b=m("iterator"),C="keys",x="values",D="entries",I=function(){return this};n.exports=function(N,B,L,R,_,j,H){l(L,B,R);var M=function(q){if(q===_&&k)return k;if(!A&&q in T)return T[q];switch(q){case C:return function(){return new L(this,q)};case x:return function(){return new L(this,q)};case D:return function(){return new L(this,q)}}return function(){return new L(this)}},F=B+" Iterator",P=!1,T=N.prototype,O=T[b]||T["@@iterator"]||_&&T[_],k=!A&&O||M(_),z=B=="Array"&&T.entries||O,Q,X,re;if(z&&(Q=c(z.call(new N)),S!==Object.prototype&&Q.next&&(!g&&c(Q)!==S&&(d?d(Q,S):typeof Q[b]!="function"&&f(Q,b,I)),y(Q,F,!0,!0),g&&(E[F]=I))),_==x&&O&&O.name!==x&&(P=!0,k=function(){return O.call(this)}),(!g||H)&&T[b]!==k&&f(T,b,k),E[B]=k,_)if(X={values:M(x),keys:j?k:M(C),entries:M(D)},H)for(re in X)(A||P||!(re in T))&&u(T,re,X[re]);else o({target:B,proto:!0,forced:A||P},X);return X}},"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(d,y,f){var u=o(y);u in d?l.f(d,u,c(0,f)):d[u]=f}},"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(d,y){l=[],o=y,c=typeof o=="function"?o.apply(s,l):o,c!==void 0&&(n.exports=c)})(typeof self<"u"?self:this,function(){function d(){var y=Object.getOwnPropertyDescriptor(document,"currentScript");if(!y&&"currentScript"in document&&document.currentScript||y&&y.get!==d&&document.currentScript)return document.currentScript;try{throw new Error}catch(D){var f=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,u=/@([^@]*):(\d+):(\d+)\s*$/ig,m=f.exec(D.stack)||u.exec(D.stack),g=m&&m[1]||!1,E=m&&m[2]||!1,p=document.location.href.replace(document.location.hash,""),S,A,b,C=document.getElementsByTagName("script");g===p&&(S=document.documentElement.outerHTML,A=new RegExp("(?:[^\\n]+?\\n){0,"+(E-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),b=S.replace(A,"$1").trim());for(var x=0;x<C.length;x++)if(C[x].readyState==="interactive"||C[x].src===g||g===p&&C[x].innerHTML&&C[x].innerHTML.trim()===b)return C[x];return null}}return d})},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,d){return c+(d?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(d,y,f){return l.f(d,y,c(1,f))}:function(d,y,f){return d[y]=f,d}},9263:function(n,s,i){var o=i("ad6d"),l=i("9f7f"),c=RegExp.prototype.exec,d=String.prototype.replace,y=c,f=function(){var E=/a/,p=/b*/g;return c.call(E,"a"),c.call(p,"a"),E.lastIndex!==0||p.lastIndex!==0}(),u=l.UNSUPPORTED_Y||l.BROKEN_CARET,m=/()??/.exec("")[1]!==void 0,g=f||m||u;g&&(y=function(p){var S=this,A,b,C,x,D=u&&S.sticky,I=o.call(S),N=S.source,B=0,L=p;return D&&(I=I.replace("y",""),I.indexOf("g")===-1&&(I+="g"),L=String(p).slice(S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&p[S.lastIndex-1]!=="\n")&&(N="(?: "+N+")",L=" "+L,B++),b=new RegExp("^(?:"+N+")",I)),m&&(b=new RegExp("^"+N+"$(?!\\s)",I)),f&&(A=S.lastIndex),C=c.call(D?b:S,L),D?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:f&&C&&(S.lastIndex=S.global?C.index+C[0].length:A),m&&C&&C.length>1&&d.call(C[0],b,function(){for(x=1;x<arguments.length-2;x++)arguments[x]===void 0&&(C[x]=void 0)}),C}),n.exports=y},"94ca":function(n,s,i){var o=i("d039"),l=/#|\.prototype\./,c=function(m,g){var E=y[d(m)];return E==u?!0:E==f?!1:typeof g=="function"?o(g):!!g},d=c.normalize=function(m){return String(m).replace(l,".").toLowerCase()},y=c.data={},f=c.NATIVE="N",u=c.POLYFILL="P";n.exports=c},"99af":function(n,s,i){var o=i("23e7"),l=i("d039"),c=i("e8b5"),d=i("861d"),y=i("7b0b"),f=i("50c4"),u=i("8418"),m=i("65f0"),g=i("1dde"),E=i("b622"),p=i("2d00"),S=E("isConcatSpreadable"),A=9007199254740991,b="Maximum allowed index exceeded",C=p>=51||!l(function(){var N=[];return N[S]=!1,N.concat()[0]!==N}),x=g("concat"),D=function(N){if(!d(N))return!1;var B=N[S];return B!==void 0?!!B:c(N)},I=!C||!x;o({target:"Array",proto:!0,forced:I},{concat:function(B){var L=y(this),R=m(L,0),_=0,j,H,M,F,P;for(j=-1,M=arguments.length;j<M;j++)if(P=j===-1?L:arguments[j],D(P)){if(F=f(P.length),_+F>A)throw TypeError(b);for(H=0;H<F;H++,_++)H in P&&u(R,_,P[H])}else{if(_>=A)throw TypeError(b);u(R,_++,P)}return R.length=_,R}})},"9bdd":function(n,s,i){var o=i("825a");n.exports=function(l,c,d,y){try{return y?c(o(d)[0],d[1]):c(d)}catch(u){var f=l.return;throw f!==void 0&&o(f.call(l)),u}}},"9bf2":function(n,s,i){var o=i("83ab"),l=i("0cfb"),c=i("825a"),d=i("c04e"),y=Object.defineProperty;s.f=o?y:function(u,m,g){if(c(u),m=d(m,!0),c(g),l)try{return y(u,m,g)}catch(E){}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(u[m]=g.value),u}},"9ed3":function(n,s,i){var o=i("ae93").IteratorPrototype,l=i("7c73"),c=i("5c6c"),d=i("d44e"),y=i("3f8c"),f=function(){return this};n.exports=function(u,m,g){var E=m+" Iterator";return u.prototype=l(o,{next:c(1,g)}),d(u,E,!1,!0),y[E]=f,u}},"9f7f":function(n,s,i){var o=i("d039");function l(c,d){return RegExp(c,d)}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"),d=function(y,f,u,m,g,E,p,S){for(var A=g,b=0,C=p?c(p,S,3):!1,x;b<m;){if(b in u){if(x=C?C(u[b],b,f):u[b],E>0&&o(x))A=d(y,f,x,l(x.length),A,E-1)-1;else{if(A>=9007199254740991)throw TypeError("Exceed the acceptable array length");y[A]=x}A++}b++}return A};n.exports=d},a352:function(n,s){n.exports=a},a434:function(n,s,i){var o=i("23e7"),l=i("23cb"),c=i("a691"),d=i("50c4"),y=i("7b0b"),f=i("65f0"),u=i("8418"),m=i("1dde"),g=i("ae40"),E=m("splice"),p=g("splice",{ACCESSORS:!0,0:0,1:2}),S=Math.max,A=Math.min,b=9007199254740991,C="Maximum allowed length exceeded";o({target:"Array",proto:!0,forced:!E||!p},{splice:function(D,I){var N=y(this),B=d(N.length),L=l(D,B),R=arguments.length,_,j,H,M,F,P;if(R===0?_=j=0:R===1?(_=0,j=B-L):(_=R-2,j=A(S(c(I),0),B-L)),B+_-j>b)throw TypeError(C);for(H=f(N,j),M=0;M<j;M++)F=L+M,F in N&&u(H,M,N[F]);if(H.length=j,_<j){for(M=L;M<B-j;M++)F=M+j,P=M+_,F in N?N[P]=N[F]:delete N[P];for(M=B;M>B-j+_;M--)delete N[M-1]}else if(_>j)for(M=B-j;M>L;M--)F=M+j-1,P=M+_-1,F in N?N[P]=N[F]:delete N[P];for(M=0;M<_;M++)N[M+L]=arguments[M+2];return N.length=B-j+_,H}})},a4d3:function(n,s,i){var o=i("23e7"),l=i("da84"),c=i("d066"),d=i("c430"),y=i("83ab"),f=i("4930"),u=i("fdbf"),m=i("d039"),g=i("5135"),E=i("e8b5"),p=i("861d"),S=i("825a"),A=i("7b0b"),b=i("fc6a"),C=i("c04e"),x=i("5c6c"),D=i("7c73"),I=i("df75"),N=i("241c"),B=i("057f"),L=i("7418"),R=i("06cf"),_=i("9bf2"),j=i("d1e7"),H=i("9112"),M=i("6eeb"),F=i("5692"),P=i("f772"),T=i("d012"),O=i("90e3"),k=i("b622"),z=i("e538"),Q=i("746f"),X=i("d44e"),re=i("69f3"),q=i("b727").forEach,te=P("hidden"),ue="Symbol",fe="prototype",he=k("toPrimitive"),pe=re.set,oe=re.getterFor(ue),ne=Object[fe],Z=l.Symbol,Ee=c("JSON","stringify"),Se=R.f,be=_.f,Te=B.f,Ve=j.f,ye=F("symbols"),Ae=F("op-symbols"),we=F("string-to-symbol-registry"),Ne=F("symbol-to-string-registry"),xe=F("wks"),De=l.QObject,Pe=!De||!De[fe]||!De[fe].findChild,Fe=y&&m(function(){return D(be({},"a",{get:function(){return be(this,"a",{value:7}).a}})).a!=7})?function(V,G,K){var Y=Se(ne,G);Y&&delete ne[G],be(V,G,K),Y&&V!==ne&&be(ne,G,Y)}:be,ke=function(V,G){var K=ye[V]=D(Z[fe]);return pe(K,{type:ue,tag:V,description:G}),y||(K.description=G),K},U=u?function(V){return typeof V=="symbol"}:function(V){return Object(V)instanceof Z},$=function(G,K,Y){G===ne&&$(Ae,K,Y),S(G);var ee=C(K,!0);return S(Y),g(ye,ee)?(Y.enumerable?(g(G,te)&&G[te][ee]&&(G[te][ee]=!1),Y=D(Y,{enumerable:x(0,!1)})):(g(G,te)||be(G,te,x(1,{})),G[te][ee]=!0),Fe(G,ee,Y)):be(G,ee,Y)},W=function(G,K){S(G);var Y=b(K),ee=I(Y).concat(de(Y));return q(ee,function(le){(!y||ae.call(Y,le))&&$(G,le,Y[le])}),G},J=function(G,K){return K===void 0?D(G):W(D(G),K)},ae=function(G){var K=C(G,!0),Y=Ve.call(this,K);return this===ne&&g(ye,K)&&!g(Ae,K)?!1:Y||!g(this,K)||!g(ye,K)||g(this,te)&&this[te][K]?Y:!0},se=function(G,K){var Y=b(G),ee=C(K,!0);if(!(Y===ne&&g(ye,ee)&&!g(Ae,ee))){var le=Se(Y,ee);return le&&g(ye,ee)&&!(g(Y,te)&&Y[te][ee])&&(le.enumerable=!0),le}},ce=function(G){var K=Te(b(G)),Y=[];return q(K,function(ee){!g(ye,ee)&&!g(T,ee)&&Y.push(ee)}),Y},de=function(G){var K=G===ne,Y=Te(K?Ae:b(G)),ee=[];return q(Y,function(le){g(ye,le)&&(!K||g(ne,le))&&ee.push(ye[le])}),ee};if(f||(Z=function(){if(this instanceof Z)throw TypeError("Symbol is not a constructor");var G=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),K=O(G),Y=function(ee){this===ne&&Y.call(Ae,ee),g(this,te)&&g(this[te],K)&&(this[te][K]=!1),Fe(this,K,x(1,ee))};return y&&Pe&&Fe(ne,K,{configurable:!0,set:Y}),ke(K,G)},M(Z[fe],"toString",function(){return oe(this).tag}),M(Z,"withoutSetter",function(V){return ke(O(V),V)}),j.f=ae,_.f=$,R.f=se,N.f=B.f=ce,L.f=de,z.f=function(V){return ke(k(V),V)},y&&(be(Z[fe],"description",{configurable:!0,get:function(){return oe(this).description}}),d||M(ne,"propertyIsEnumerable",ae,{unsafe:!0}))),o({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:Z}),q(I(xe),function(V){Q(V)}),o({target:ue,stat:!0,forced:!f},{for:function(V){var G=String(V);if(g(we,G))return we[G];var K=Z(G);return we[G]=K,Ne[K]=G,K},keyFor:function(G){if(!U(G))throw TypeError(G+" is not a symbol");if(g(Ne,G))return Ne[G]},useSetter:function(){Pe=!0},useSimple:function(){Pe=!1}}),o({target:"Object",stat:!0,forced:!f,sham:!y},{create:J,defineProperty:$,defineProperties:W,getOwnPropertyDescriptor:se}),o({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:ce,getOwnPropertySymbols:de}),o({target:"Object",stat:!0,forced:m(function(){L.f(1)})},{getOwnPropertySymbols:function(G){return L.f(A(G))}}),Ee){var Ce=!f||m(function(){var V=Z();return Ee([V])!="[null]"||Ee({a:V})!="{}"||Ee(Object(V))!="{}"});o({target:"JSON",stat:!0,forced:Ce},{stringify:function(G,K,Y){for(var ee=[G],le=1,ve;arguments.length>le;)ee.push(arguments[le++]);if(ve=K,!(!p(K)&&G===void 0||U(G)))return E(K)||(K=function(ie,me){if(typeof ve=="function"&&(me=ve.call(this,ie,me)),!U(me))return me}),ee[1]=K,Ee.apply(null,ee)}})}Z[fe][he]||H(Z[fe],he,Z[fe].valueOf),X(Z,ue),T[te]=!0},a630:function(n,s,i){var o=i("23e7"),l=i("4df4"),c=i("1c7e"),d=!c(function(y){Array.from(y)});o({target:"Array",stat:!0,forced:d},{from:l})},a640:function(n,s,i){var o=i("d039");n.exports=function(l,c){var d=[][l];return!!d&&o(function(){d.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 d=/./;try{"/./"[c](d)}catch(y){try{return d[l]=!1,"/./"[c](d)}catch(f){}}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"),d=Object.defineProperty,y={},f=function(u){throw u};n.exports=function(u,m){if(c(y,u))return y[u];m||(m={});var g=[][u],E=c(m,"ACCESSORS")?m.ACCESSORS:!1,p=c(m,0)?m[0]:f,S=c(m,1)?m[1]:void 0;return y[u]=!!g&&!l(function(){if(E&&!o)return!0;var A={length:-1};E?d(A,1,{enumerable:!0,get:f}):A[1]=1,g.call(A,p,S)})}},ae93:function(n,s,i){var o=i("e163"),l=i("9112"),c=i("5135"),d=i("b622"),y=i("c430"),f=d("iterator"),u=!1,m=function(){return this},g,E,p;[].keys&&(p=[].keys(),"next"in p?(E=o(o(p)),E!==Object.prototype&&(g=E)):u=!0),g==null&&(g={}),!y&&!c(g,f)&&l(g,f,m),n.exports={IteratorPrototype:g,BUGGY_SAFARI_ITERATORS:u}},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,d=c.toString,y=/^\s*function ([^ (]*)/,f="name";o&&!(f in c)&&l(c,f,{configurable:!0,get:function(){try{return d.call(this).match(y)[1]}catch(u){return""}}})},b622:function(n,s,i){var o=i("da84"),l=i("5692"),c=i("5135"),d=i("90e3"),y=i("4930"),f=i("fdbf"),u=l("wks"),m=o.Symbol,g=f?m:m&&m.withoutSetter||d;n.exports=function(E){return c(u,E)||(y&&c(m,E)?u[E]=m[E]:u[E]=g("Symbol."+E)),u[E]}},b64b:function(n,s,i){var o=i("23e7"),l=i("7b0b"),c=i("df75"),d=i("d039"),y=d(function(){c(1)});o({target:"Object",stat:!0,forced:y},{keys:function(u){return c(l(u))}})},b727:function(n,s,i){var o=i("0366"),l=i("44ad"),c=i("7b0b"),d=i("50c4"),y=i("65f0"),f=[].push,u=function(m){var g=m==1,E=m==2,p=m==3,S=m==4,A=m==6,b=m==5||A;return function(C,x,D,I){for(var N=c(C),B=l(N),L=o(x,D,3),R=d(B.length),_=0,j=I||y,H=g?j(C,R):E?j(C,0):void 0,M,F;R>_;_++)if((b||_ in B)&&(M=B[_],F=L(M,_,N),m)){if(g)H[_]=F;else if(F)switch(m){case 3:return!0;case 5:return M;case 6:return _;case 2:f.call(H,M)}else if(S)return!1}return A?-1:p||S?S:H}};n.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},c04e:function(n,s,i){var o=i("861d");n.exports=function(l,c){if(!o(l))return l;var d,y;if(c&&typeof(d=l.toString)=="function"&&!o(y=d.call(l))||typeof(d=l.valueOf)=="function"&&!o(y=d.call(l))||!c&&typeof(d=l.toString)=="function"&&!o(y=d.call(l)))return y;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__",d=o[c]||l(c,{});n.exports=d},c740:function(n,s,i){var o=i("23e7"),l=i("b727").findIndex,c=i("44d2"),d=i("ae40"),y="findIndex",f=!0,u=d(y);y in[]&&Array(1)[y](function(){f=!1}),o({target:"Array",proto:!0,forced:f||!u},{findIndex:function(g){return l(this,g,arguments.length>1?arguments[1]:void 0)}}),c(y)},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"),d=i("ae40"),y=[].indexOf,f=!!y&&1/[1].indexOf(1,-0)<0,u=c("indexOf"),m=d("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:f||!u||!m},{indexOf:function(E){return f?y.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,d=i("d012");n.exports=function(y,f){var u=l(y),m=0,g=[],E;for(E in u)!o(d,E)&&o(u,E)&&g.push(E);for(;f.length>m;)o(u,E=f[m++])&&(~c(g,E)||g.push(E));return g}},caad:function(n,s,i){var o=i("23e7"),l=i("4d64").includes,c=i("44d2"),d=i("ae40"),y=d("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:!y},{includes:function(u){return l(this,u,arguments.length>1?arguments[1]:void 0)}}),c("includes")},cc12:function(n,s,i){var o=i("da84"),l=i("861d"),c=o.document,d=l(c)&&l(c.createElement);n.exports=function(y){return d?c.createElement(y):{}}},ce4e:function(n,s,i){var o=i("da84"),l=i("9112");n.exports=function(c,d){try{l(o,c,d)}catch(y){o[c]=d}return d}},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(d){return typeof d=="function"?d:void 0};n.exports=function(d,y){return arguments.length<2?c(o[d])||c(l[d]):o[d]&&o[d][y]||l[d]&&l[d][y]}},d1e7:function(n,s,i){var o={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,c=l&&!o.call({1:2},1);s.f=c?function(y){var f=l(this,y);return!!f&&f.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,d={},y;try{y=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,y.call(d,[]),c=d instanceof Array}catch(f){}return function(u,m){return o(u),l(m),c?y.call(u,m):u.__proto__=m,u}}():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"),d=c("toStringTag");n.exports=function(y,f,u){y&&!l(y=u?y:y.prototype,d)&&o(y,d,{configurable:!0,value:f})}},d58f:function(n,s,i){var o=i("1c0b"),l=i("7b0b"),c=i("44ad"),d=i("50c4"),y=function(f){return function(u,m,g,E){o(m);var p=l(u),S=c(p),A=d(p.length),b=f?A-1:0,C=f?-1:1;if(g<2)for(;;){if(b in S){E=S[b],b+=C;break}if(b+=C,f?b<0:A<=b)throw TypeError("Reduce of empty array with no initial value")}for(;f?b>=0:A>b;b+=C)b in S&&(E=m(E,S[b],b,p));return E}};n.exports={left:y(!1),right:y(!0)}},d784:function(n,s,i){i("ac1f");var o=i("6eeb"),l=i("d039"),c=i("b622"),d=i("9263"),y=i("9112"),f=c("species"),u=!l(function(){var S=/./;return S.exec=function(){var A=[];return A.groups={a:"7"},A},"".replace(S,"$<a>")!=="7"}),m=function(){return"a".replace(/./,"$0")==="$0"}(),g=c("replace"),E=function(){return/./[g]?/./[g]("a","$0")==="":!1}(),p=!l(function(){var S=/(?:)/,A=S.exec;S.exec=function(){return A.apply(this,arguments)};var b="ab".split(S);return b.length!==2||b[0]!=="a"||b[1]!=="b"});n.exports=function(S,A,b,C){var x=c(S),D=!l(function(){var _={};return _[x]=function(){return 7},""[S](_)!=7}),I=D&&!l(function(){var _=!1,j=/a/;return S==="split"&&(j={},j.constructor={},j.constructor[f]=function(){return j},j.flags="",j[x]=/./[x]),j.exec=function(){return _=!0,null},j[x](""),!_});if(!D||!I||S==="replace"&&!(u&&m&&!E)||S==="split"&&!p){var N=/./[x],B=b(x,""[S],function(_,j,H,M,F){return j.exec===d?D&&!F?{done:!0,value:N.call(j,H,M)}:{done:!0,value:_.call(H,j,M)}:{done:!1}},{REPLACE_KEEPS_$0:m,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:E}),L=B[0],R=B[1];o(String.prototype,S,L),o(RegExp.prototype,x,A==2?function(_,j){return R.call(_,this,j)}:function(_){return R.call(_,this)})}C&&y(RegExp.prototype[x],"sham",!0)}},d81d:function(n,s,i){var o=i("23e7"),l=i("b727").map,c=i("1dde"),d=i("ae40"),y=c("map"),f=d("map");o({target:"Array",proto:!0,forced:!y||!f},{map:function(m){return l(this,m,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"),d=i("fc6a"),y=i("06cf"),f=i("8418");o({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(m){for(var g=d(m),E=y.f,p=c(g),S={},A=0,b,C;p.length>A;)C=E(g,b=p[A++]),C!==void 0&&f(S,b,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"),d=i("9112"),y=i("b622"),f=y("iterator"),u=y("toStringTag"),m=c.values;for(var g in l){var E=o[g],p=E&&E.prototype;if(p){if(p[f]!==m)try{d(p,f,m)}catch(A){p[f]=m}if(p[u]||d(p,u,g),l[g]){for(var S in c)if(p[S]!==c[S])try{d(p,S,c[S])}catch(A){p[S]=c[S]}}}}},df75:function(n,s,i){var o=i("ca84"),l=i("7839");n.exports=Object.keys||function(d){return o(d,l)}},e01a:function(n,s,i){var o=i("23e7"),l=i("83ab"),c=i("da84"),d=i("5135"),y=i("861d"),f=i("9bf2").f,u=i("e893"),m=c.Symbol;if(l&&typeof m=="function"&&(!("description"in m.prototype)||m().description!==void 0)){var g={},E=function(){var x=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),D=this instanceof E?new m(x):x===void 0?m():m(x);return x===""&&(g[D]=!0),D};u(E,m);var p=E.prototype=m.prototype;p.constructor=E;var S=p.toString,A=String(m("test"))=="Symbol(test)",b=/^Symbol\((.*)\)[^)]+$/;f(p,"description",{configurable:!0,get:function(){var x=y(this)?this.valueOf():this,D=S.call(x);if(d(g,x))return"";var I=A?D.slice(7,-1):D.replace(b,"$1");return I===""?void 0:I}}),o({global:!0,forced:!0},{Symbol:E})}},e163:function(n,s,i){var o=i("5135"),l=i("7b0b"),c=i("f772"),d=i("e177"),y=c("IE_PROTO"),f=Object.prototype;n.exports=d?Object.getPrototypeOf:function(u){return u=l(u),o(u,y)?u[y]:typeof u.constructor=="function"&&u instanceof u.constructor?u.constructor.prototype:u instanceof Object?f: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"),d=i("69f3"),y=i("7dd0"),f="Array Iterator",u=d.set,m=d.getterFor(f);n.exports=y(Array,"Array",function(g,E){u(this,{type:f,target:o(g),index:0,kind:E})},function(){var g=m(this),E=g.target,p=g.kind,S=g.index++;return!E||S>=E.length?(g.target=void 0,{value:void 0,done:!0}):p=="keys"?{value:S,done:!1}:p=="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"),d=i("06cf").f,y=i("83ab"),f=l(function(){d(1)}),u=!y||f;o({target:"Object",stat:!0,forced:u,sham:!y},{getOwnPropertyDescriptor:function(g,E){return d(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"),d=i("9bf2");n.exports=function(y,f){for(var u=l(f),m=d.f,g=c.f,E=0;E<u.length;E++){var p=u[E];o(y,p)||m(y,p,g(f,p))}}},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"),d=Array.prototype;n.exports=function(y){return y!==void 0&&(l.Array===y||d[c]===y)}},f5df:function(n,s,i){var o=i("00ee"),l=i("c6b6"),c=i("b622"),d=c("toStringTag"),y=l(function(){return arguments}())=="Arguments",f=function(u,m){try{return u[m]}catch(g){}};n.exports=o?l:function(u){var m,g,E;return u===void 0?"Undefined":u===null?"Null":typeof(g=f(m=Object(u),d))=="string"?g:y?l(m):(E=l(m))=="Object"&&typeof m.callee=="function"?"Arguments":E}},f772:function(n,s,i){var o=i("5692"),l=i("90e3"),c=o("keys");n.exports=function(d){return c[d]||(c[d]=l(d))}},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 d(U,$,W){return $ in U?Object.defineProperty(U,$,{value:W,enumerable:!0,configurable:!0,writable:!0}):U[$]=W,U}function y(U,$){var W=Object.keys(U);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(U);$&&(J=J.filter(function(ae){return Object.getOwnPropertyDescriptor(U,ae).enumerable})),W.push.apply(W,J)}return W}function f(U){for(var $=1;$<arguments.length;$++){var W=arguments[$]!=null?arguments[$]:{};$%2?y(Object(W),!0).forEach(function(J){d(U,J,W[J])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(W)):y(Object(W)).forEach(function(J){Object.defineProperty(U,J,Object.getOwnPropertyDescriptor(W,J))})}return U}function u(U){if(Array.isArray(U))return U}i("e01a"),i("d28b"),i("e260"),i("d3b7"),i("3ca3"),i("ddb0");function m(U,$){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(U)))){var W=[],J=!0,ae=!1,se=void 0;try{for(var ce=U[Symbol.iterator](),de;!(J=(de=ce.next()).done)&&(W.push(de.value),!($&&W.length===$));J=!0);}catch(Ce){ae=!0,se=Ce}finally{try{!J&&ce.return!=null&&ce.return()}finally{if(ae)throw se}}return W}}i("a630"),i("fb6a"),i("b0c0"),i("25f0");function g(U,$){($==null||$>U.length)&&($=U.length);for(var W=0,J=new Array($);W<$;W++)J[W]=U[W];return J}function E(U,$){if(U){if(typeof U=="string")return g(U,$);var W=Object.prototype.toString.call(U).slice(8,-1);if(W==="Object"&&U.constructor&&(W=U.constructor.name),W==="Map"||W==="Set")return Array.from(U);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return g(U,$)}}function p(){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,$){return u(U)||m(U,$)||E(U,$)||p()}function A(U){if(Array.isArray(U))return g(U)}function b(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 x(U){return A(U)||b(U)||E(U)||C()}var D=i("a352"),I=i.n(D);function N(U){U.parentElement!==null&&U.parentElement.removeChild(U)}function B(U,$,W){var J=W===0?U.children[0]:U.children[W-1].nextSibling;U.insertBefore($,J)}var L=i("dbf1");i("13d5"),i("4fad"),i("ac1f"),i("5319");function R(U){var $=Object.create(null);return function(J){var ae=$[J];return ae||($[J]=U(J))}}var _=/-(\w)/g,j=R(function(U){return U.replace(_,function($,W){return W.toUpperCase()})});i("5db7"),i("73d9");var H=["Start","Add","Remove","Update","End"],M=["Choose","Unchoose","Sort","Filter","Clone"],F=["Move"],P=[F,H,M].flatMap(function(U){return U}).map(function(U){return"on".concat(U)}),T={manage:F,manageAndEmit:H,emit:M};function O(U){return P.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 z(U){return k.includes(U)}function Q(U){return["transition-group","TransitionGroup"].includes(U)}function X(U){return["id","class","role","style"].includes(U)||U.startsWith("data-")||U.startsWith("aria-")||U.startsWith("on")}function re(U){return U.reduce(function($,W){var J=S(W,2),ae=J[0],se=J[1];return $[ae]=se,$},{})}function q(U){var $=U.$attrs,W=U.componentData,J=W===void 0?{}:W,ae=re(Object.entries($).filter(function(se){var ce=S(se,2),de=ce[0];return ce[1],X(de)}));return f(f({},ae),J)}function te(U){var $=U.$attrs,W=U.callBackBuilder,J=re(ue($));Object.entries(W).forEach(function(se){var ce=S(se,2),de=ce[0],Ce=ce[1];T[de].forEach(function(V){J["on".concat(V)]=Ce(V)})});var ae="[data-draggable]".concat(J.draggable||"");return f(f({},J),{},{draggable:ae})}function ue(U){return Object.entries(U).filter(function($){var W=S($,2),J=W[0];return W[1],!X(J)}).map(function($){var W=S($,2),J=W[0],ae=W[1];return[j(J),ae]}).filter(function($){var W=S($,2),J=W[0];return W[1],!O(J)})}i("c740");function fe(U,$){if(!(U instanceof $))throw new TypeError("Cannot call a class as a function")}function he(U,$){for(var W=0;W<$.length;W++){var J=$[W];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(U,J.key,J)}}function pe(U,$,W){return $&&he(U.prototype,$),W&&he(U,W),U}var oe=function($){var W=$.el;return W},ne=function($,W){return $.__draggable_context=W},Z=function($){return $.__draggable_context},Ee=function(){function U($){var W=$.nodes,J=W.header,ae=W.default,se=W.footer,ce=$.root,de=$.realList;fe(this,U),this.defaultNodes=ae,this.children=[].concat(x(J),x(ae),x(se)),this.externalComponent=ce.externalComponent,this.rootTransition=ce.transition,this.tag=ce.tag,this.realList=de}return pe(U,[{key:"render",value:function(W,J){var ae=this.tag,se=this.children,ce=this._isRootComponent,de=ce?{default:function(){return se}}:se;return W(ae,J,de)}},{key:"updated",value:function(){var W=this.defaultNodes,J=this.realList;W.forEach(function(ae,se){ne(oe(ae),{element:J[se],index:se})})}},{key:"getUnderlyingVm",value:function(W){return Z(W)}},{key:"getVmIndexFromDomIndex",value:function(W,J){var ae=this.defaultNodes,se=ae.length,ce=J.children,de=ce.item(W);if(de===null)return se;var Ce=Z(de);if(Ce)return Ce.index;if(se===0)return 0;var V=oe(ae[0]),G=x(ce).findIndex(function(K){return K===V});return W<G?0:se}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),U}(),Se=i("8bbf");function be(U,$){var W=U[$];return W?W():[]}function Te(U){var $=U.$slots,W=U.realList,J=U.getKey,ae=W||[],se=["header","footer"].map(function(K){return be($,K)}),ce=S(se,2),de=ce[0],Ce=ce[1],V=$.item;if(!V)throw new Error("draggable element must have an item slot");var G=ae.flatMap(function(K,Y){return V({element:K,index:Y}).map(function(ee){return ee.key=J(K),ee.props=f(f({},ee.props||{}),{},{"data-draggable":!0}),ee})});if(G.length!==ae.length)throw new Error("Item slot must have only one child");return{header:de,footer:Ce,default:G}}function Ve(U){var $=Q(U),W=!z(U)&&!$;return{transition:$,externalComponent:W,tag:W?Object(Se.resolveComponent)(U):$?Se.TransitionGroup:U}}function ye(U){var $=U.$slots,W=U.tag,J=U.realList,ae=U.getKey,se=Te({$slots:$,realList:J,getKey:ae}),ce=Ve(W);return new Ee({nodes:se,root:ce,realList:J})}function Ae(U,$){var W=this;Object(Se.nextTick)(function(){return W.$emit(U.toLowerCase(),$)})}function we(U){var $=this;return function(W,J){if($.realList!==null)return $["onDrag".concat(U)](W,J)}}function Ne(U){var $=this,W=we.call(this,U);return function(J,ae){W.call($,J,ae),Ae.call($,U,J)}}var xe=null,De={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($){return $}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Pe=["update:modelValue","change"].concat(x([].concat(x(T.manageAndEmit),x(T.emit)).map(function(U){return U.toLowerCase()}))),Fe=Object(Se.defineComponent)({name:"draggable",inheritAttrs:!1,props:De,emits:Pe,data:function(){return{error:!1}},render:function(){try{this.error=!1;var $=this.$slots,W=this.$attrs,J=this.tag,ae=this.componentData,se=this.realList,ce=this.getKey,de=ye({$slots:$,tag:J,realList:se,getKey:ce});this.componentStructure=de;var Ce=q({$attrs:W,componentData:ae});return de.render(Se.h,Ce)}catch(V){return this.error=!0,Object(Se.h)("pre",{style:{color:"red"}},V.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&L.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var $=this;if(!this.error){var W=this.$attrs,J=this.$el,ae=this.componentStructure;ae.updated();var se=te({$attrs:W,callBackBuilder:{manageAndEmit:function(Ce){return Ne.call($,Ce)},emit:function(Ce){return Ae.bind($,Ce)},manage:function(Ce){return we.call($,Ce)}}}),ce=J.nodeType===1?J:J.parentElement;this._sortable=new I.a(ce,se),this.targetDomElement=ce,ce.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var $=this.list;return $||this.modelValue},getKey:function(){var $=this.itemKey;return typeof $=="function"?$:function(W){return W[$]}}},watch:{$attrs:{handler:function($){var W=this._sortable;W&&ue($).forEach(function(J){var ae=S(J,2),se=ae[0],ce=ae[1];W.option(se,ce)})},deep:!0}},methods:{getUnderlyingVm:function($){return this.componentStructure.getUnderlyingVm($)||null},getUnderlyingPotencialDraggableComponent:function($){return $.__draggable_component__},emitChanges:function($){var W=this;Object(Se.nextTick)(function(){return W.$emit("change",$)})},alterList:function($){if(this.list){$(this.list);return}var W=x(this.modelValue);$(W),this.$emit("update:modelValue",W)},spliceList:function(){var $=arguments,W=function(ae){return ae.splice.apply(ae,x($))};this.alterList(W)},updatePosition:function($,W){var J=function(se){return se.splice(W,0,se.splice($,1)[0])};this.alterList(J)},getRelatedContextFromMoveEvent:function($){var W=$.to,J=$.related,ae=this.getUnderlyingPotencialDraggableComponent(W);if(!ae)return{component:ae};var se=ae.realList,ce={list:se,component:ae};if(W!==J&&se){var de=ae.getUnderlyingVm(J)||{};return f(f({},de),ce)}return ce},getVmIndexFromDomIndex:function($){return this.componentStructure.getVmIndexFromDomIndex($,this.targetDomElement)},onDragStart:function($){this.context=this.getUnderlyingVm($.item),$.item._underlying_vm_=this.clone(this.context.element),xe=$.item},onDragAdd:function($){var W=$.item._underlying_vm_;if(W!==void 0){N($.item);var J=this.getVmIndexFromDomIndex($.newIndex);this.spliceList(J,0,W);var ae={element:W,newIndex:J};this.emitChanges({added:ae})}},onDragRemove:function($){if(B(this.$el,$.item,$.oldIndex),$.pullMode==="clone"){N($.clone);return}var W=this.context,J=W.index,ae=W.element;this.spliceList(J,1);var se={element:ae,oldIndex:J};this.emitChanges({removed:se})},onDragUpdate:function($){N($.item),B($.from,$.item,$.oldIndex);var W=this.context.index,J=this.getVmIndexFromDomIndex($.newIndex);this.updatePosition(W,J);var ae={element:this.context.element,oldIndex:W,newIndex:J};this.emitChanges({moved:ae})},computeFutureIndex:function($,W){if(!$.element)return 0;var J=x(W.to.children).filter(function(de){return de.style.display!=="none"}),ae=J.indexOf(W.related),se=$.component.getVmIndexFromDomIndex(ae),ce=J.indexOf(xe)!==-1;return ce||!W.willInsertAfter?se:se+1},onDragMove:function($,W){var J=this.move,ae=this.realList;if(!J||!ae)return!0;var se=this.getRelatedContextFromMoveEvent($),ce=this.computeFutureIndex(se,$),de=f(f({},this.context),{},{futureIndex:ce}),Ce=f(f({},$),{},{relatedContext:se,draggedContext:de});return J(Ce,W)},onDragEnd:function(){xe=null}}}),ke=Fe;s.default=ke},fb6a:function(n,s,i){var o=i("23e7"),l=i("861d"),c=i("e8b5"),d=i("23cb"),y=i("50c4"),f=i("fc6a"),u=i("8418"),m=i("b622"),g=i("1dde"),E=i("ae40"),p=g("slice"),S=E("slice",{ACCESSORS:!0,0:0,1:2}),A=m("species"),b=[].slice,C=Math.max;o({target:"Array",proto:!0,forced:!p||!S},{slice:function(D,I){var N=f(this),B=y(N.length),L=d(D,B),R=d(I===void 0?B:I,B),_,j,H;if(c(N)&&(_=N.constructor,typeof _=="function"&&(_===Array||c(_.prototype))?_=void 0:l(_)&&(_=_[A],_===null&&(_=void 0)),_===Array||_===void 0))return b.call(N,L,R);for(j=new(_===void 0?Array:_)(C(R-L,0)),H=0;L<R;L++,H++)L in N&&u(j,H,N[L]);return j.length=H,j}})},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_kiwge_1",studentListGroup="_studentListGroup_kiwge_4",selectStudentGroup="_selectStudentGroup_kiwge_5",searchSection="_searchSection_kiwge_11",searchSpace="_searchSpace_kiwge_14",studentSection="_studentSection_kiwge_21",checkboxAll="_checkboxAll_kiwge_24",nums="_nums_kiwge_34",student="_student_kiwge_4",loadingSection="_loadingSection_kiwge_43",studentItem="_studentItem_kiwge_46",studentInfo="_studentInfo_kiwge_58",studentImg="_studentImg_kiwge_63",studentValue="_studentValue_kiwge_70",userInfo="_userInfo_kiwge_73",name="_name_kiwge_77",iconMember="_iconMember_kiwge_88",className="_className_kiwge_96",phone="_phone_kiwge_108",selectCount="_selectCount_kiwge_114",hide="_hide_kiwge_143",iconClose="_iconClose_kiwge_146",btnGroup="_btnGroup_kiwge_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,currentGradeNums:null,gradeYear:null,classGroupId:e.classGroupId||"",classInstrumentId:"",keyword:""},pagination:{page:1,rows:20,pageTotal:0},tableList:[],checkboxIds:[],selectStudents:[],selectKeyword:"",popSelectYearList:[]}),n=async()=>{try{const{data:f}=await api_getCurrentGradeYear({});a.searchFrom.gradeYear=f}catch(f){}},s=async()=>{try{a.pagination.page===1&&(a.loading=!0,a.tableList=[]);const{data:f}=await getStudentList({...a.searchFrom,...a.pagination});a.loading=!1;const u=f.rows||[];a.tableList.push(...u),a.finshed=f.pages<=f.current,c()}catch(f){a.loading=!1}},i=()=>{a.pagination.page=1,s()},o=computed(()=>{let f=!0;return a.selectStudents.forEach(u=>{u.hide||(f=!1)}),f}),l=useThrottleFn(()=>{a.pagination.page=a.pagination.page+1,s()},500),c=()=>{if(a.tableList.length<=0){a.indeterminate=!1,a.checkAllStatus=!1;return}a.tableList.forEach(u=>{if(a.checkboxIds.includes(u.id))a.selectStudents.findIndex(g=>g.id==u.id)===-1&&a.selectStudents.push(u);else{const m=a.selectStudents.findIndex(g=>g.id==u.id);m>=0&&a.selectStudents.splice(m,1)}});let f=0;a.tableList.forEach(u=>{a.selectStudents.findIndex(g=>g.id===u.id)>=0&&f++}),f>=a.tableList.length?(a.checkAllStatus=!0,a.indeterminate=!1):(a.checkAllStatus=!1,a.indeterminate=f!==0)},d=f=>{const u=a.checkboxIds.findIndex(m=>m==f.id);if(u!==-1){a.checkboxIds.splice(u,1);const m=a.selectStudents.findIndex(g=>g.id===f.id);m!==-1&&a.selectStudents.splice(m,1),c()}},y=()=>{const f=[];a.selectStudents.forEach(u=>{f.push({id:u.id,name:u.nickname,avatar:u.avatar})}),t("confirm",f)};return onMounted(async()=>{var f;console.log(e.currentGradeNum,"props.currentGradeNum-----"),Array.isArray(e.currentGradeNum)?a.searchFrom.currentGradeNums=e.currentGradeNum.join(","):a.searchFrom.currentGradeNums=e.currentGradeNum,a.checkboxIds=e.selectIds||[],a.loading=!0,await r.getSubjects(),await n(),await s(),a.selectStudents=(f=e.studentList)==null?void 0:f.map(u=>({...u,nickname:u.name}))}),()=>{let f;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,labelField:"defaultLabel",filterable:!0,clearable:!0,value:a.searchFrom.classGroupId,"onUpdate:value":[u=>a.searchFrom.classGroupId=u,()=>i()],options:[{defaultLabel:"全部年级班级",value:""},...e.classList]},null),createVNode(NCascader,{options:[{name:"全部乐器",id:""},...r.getSubjectList],placeholder:"全部乐器",value:a.searchFrom.classInstrumentId,"onUpdate:value":[u=>a.searchFrom.classInstrumentId=u,()=>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:u=>{a.searchFrom.keyword=u},onClear:()=>{a.searchFrom.keyword="",i()},onKeyup:u=>{u.code==="Enter"&&i()}}),null)]),createVNode("div",{class:styles$5.studentSection},[createVNode("div",{class:styles$5.checkboxAll},[createVNode(NCheckbox,{checked:a.checkAllStatus,"onUpdate:checked":[u=>a.checkAllStatus=u,u=>{if(u){const m=[];a.tableList.forEach(g=>{m.push(g.id)}),m.forEach(g=>{a.checkboxIds.includes(g)||a.checkboxIds.push(g)})}else{const m=a.tableList.map(g=>g.id);console.log(m,"removeIds",a.checkboxIds),m.forEach(g=>{const E=a.checkboxIds.findIndex(S=>S==g);E!==-1&&a.checkboxIds.splice(E,1);const p=a.selectStudents.findIndex(S=>S.id==g);p!==-1&&a.selectStudents.splice(p,1)}),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:u=>{var p,S,A;const m=(p=u.target)==null?void 0:p.clientHeight,g=(S=u.target)==null?void 0:S.scrollTop,E=(A=u.target)==null?void 0:A.scrollHeight;m+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":[u=>a.checkboxIds=u,()=>{c()}]},_isSlot$1(f=a.tableList.map(u=>createVNode(NCheckbox,{value:u.id,class:[styles$5.studentItem]},{default:()=>[createVNode("div",{class:styles$5.studentInfo},[createVNode(NAvatar,{src:u.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},[u.nickname]),u.membership&&createVNode("i",{class:styles$5.iconMember},null),u.classGroupName&&createVNode("span",{class:styles$5.className},[u.classGroupName])]),createVNode("div",{class:styles$5.phone},[u.phone])])])]})))?f:{default:()=>[f]}),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:u=>{a.selectKeyword=u,a.selectStudents.forEach(m=>{var g;((g=m.nickname)==null?void 0:g.indexOf(u))===-1?m.hide=!0:m.hide=!1})}}),null)]),createVNode(NScrollbar,{class:styles$5.student},{default:()=>[a.selectStudents.map(u=>createVNode("div",{class:[styles$5.studentItem,u.hide&&styles$5.hide]},[createVNode("div",{class:styles$5.studentInfo},[createVNode(NAvatar,{src:u.avatar||defultHeade,class:styles$5.studentImg},null),createVNode("span",{class:styles$5.name},[u.nickname])]),createVNode("i",{class:styles$5.iconClose,onClick:()=>d(u)},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:y},{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,currentClassList:[],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 C=e.classGroupId||a.getClassGroupId,{data:x}=await classGroupList({upgradeFlag:!0,gradeYear:n.gradeYear}),D=x||[],I=[];D.forEach(N=>{const B=[];N.classGroupList.forEach(L=>{B.push({label:L.currentClass+"班",defaultLabel:L.name,value:L.id,lastStudy:L.lastStudy,preStudentNum:L.preStudentNum}),L.id===C&&(n.currentGradeNum=L.currentGradeNum,n.classGroupId=[L.id])}),I.push({label:gradeToCN[N.currentGradeNum],value:N.currentGradeNum,childrens:B})}),n.gradeList=I,n.currentGradeNum&&d()}catch(C){}},d=async()=>{try{n.gradeList.forEach(C=>{C.value===n.currentGradeNum&&(n.classList=C.childrens)})}catch(C){}},y=reactive({show:!1,msg:"",confirmButtonText:"",cancelBtn:!1,type:"CLASS"});function f(C){const{type:x,errList:D}=C;if(y.type=x,x==="CLASS"){y.cancelBtn=!0,y.confirmButtonText="去设置";const I=D.map(N=>'<div><span style="color:#F44541">【'.concat(N.classGroupName,"】</span>未设置乐器,请设置乐器后布置作业").concat(D.length>1?";":"","</div>"));y.msg=I.join("")}else if(x==="PERSON"){y.cancelBtn=!0,y.confirmButtonText="去设置";const I=D.map(N=>'<div><span style="color:#F44541">【'.concat(N.studentName,'】</span>所在<span style="color:#F44541">【').concat(N.classGroupName,"】</span>未设置乐器,请设置乐器后布置作业").concat(D.length>1?";":"","</div>"));y.msg=I.join("")}else if(x==="MUSIC"){y.cancelBtn=!1,y.confirmButtonText="我知道了";const I=D.map(N=>'<div>曲目<span style="color:#F44541">【'.concat(N.musicSheetName,'】</span>不支持<span style="color:#F44541">【').concat(N.instrumentName,'】</span>练习,请更换曲目或取消<span style="color:#F44541">【').concat(N.instrumentName,"】</span>的学生").concat(D.length>1?";":"","</div>"));y.msg=I.join("")}y.show=!0}function u(){["CLASS","PERSON"].includes(y.type)?router.push({path:"/classList"}):y.type==="MUSIC"&&(y.show=!1)}const m=async()=>{var C;(C=s.value)==null||C.validate(async x=>{if(!x){n.uploading=!0;try{const D=e.item.lessonPreTrainingDetails||[],I=[];D.forEach(L=>{I.push({trainingType:L.trainingType,musicId:L.musicId,trainingConfigJsonObject:L.trainingConfigJson})});const N={name:n.title,homeworkObj:n.homeworkObj,homeworkType:n.homeworkType,lessonTrainingDetails:I,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"){N.classGroupId="";const L=[];n.studentList.forEach(R=>{L.push(R.id)}),N.studentIds=L.join(",")}const B=await lessonTrainingAdd(N);B.code===200&&(B.data.status?(r.success("布置成功"),t("close"),t("confirm")):f(B.data))}catch(D){}n.uploading=!1}})},g=async()=>{try{const{data:C}=await api_getCurrentGradeYear({});console.log(C),n.gradeYear=C}catch(C){}},E=async()=>{try{const{data:C}=await request.get("/edu-app/open/paramConfig/queryByParamNameList",{params:{paramNames:"homework_max_deadline_time,homework_file_expire_time"}});(C||[]).forEach(D=>{D.paramName==="homework_file_expire_time"?o.value=D.paramValue||0:D.paramName==="homework_max_deadline_time"&&(i.value=D.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")))}catch(C){}},p=C=>{let x=!1;return l.value?x=C<n.currentTime||C>=l.value:x=C<n.currentTime,x},S=C=>{n.homeworkObj=C,e.classGroupId||(n.currentGradeNum=null,n.classGroupId=null)};onMounted(async()=>{await E(),await g(),await c()});let A,b;if(e.from==="class"){const C=useUserStore();b="assignHomeworkStuBoxClass_drag",A=useDrag(["".concat(b,">.n-card-header"),"".concat(b," .bom_drag")],b,toRef(n,"workVisiable"),C.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:()=>S("CLASS")},{default:()=>[createTextVNode("按班级布置")]}),createVNode(NButton,{secondary:!0,class:[styles$6.switch,n.homeworkObj==="PERSON"?styles$6.active:""],onClick:()=>S("PERSON")},{default:()=>[createTextVNode("按学生布置")]})]})]}),createVNode(NFormItem,{label:"作业标题",path:"title",rule:[{required:!0,message:"请输入作业标题",trigger:"blur"}]},{default:()=>[createVNode(NInput,{value:n.title,"onUpdate:value":C=>n.title=C,placeholder:"请选择作业标题",clearable:!0},null)]}),createVNode(NFormItem,{label:"年级",path:"currentGradeNum",rule:[{required:!0,message:"请选择年级",trigger:"change",type:n.homeworkObj==="CLASS"||e.classGroupId?"number":"array"}]},{default:()=>[createVNode(NSelect,{disabled:!!e.classGroupId,value:n.currentGradeNum,"onUpdate:value":[C=>n.currentGradeNum=C,()=>{n.classGroupId=null,n.studentList=[],d()}],placeholder:"请选择年级",multiple:!(n.homeworkObj==="CLASS"||e.classGroupId),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":C=>n.classGroupId=C,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.length<=0)return;console.log(n.currentGradeNum,"currentGradeNum",n.gradeList);const C=[];n.gradeList.forEach(D=>{if(Array.isArray(n.currentGradeNum)){if(n.currentGradeNum.includes(D.value)){const I=D.childrens||[];C.push(...I)}}else if(n.currentGradeNum===D.value){const I=D.childrens||[];C.push(...I)}}),n.currentClassList=C;const x=[];n.studentList.forEach(D=>{x.push(D.id)}),n.selectIds=x,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((C,x)=>createVNode("span",{class:styles$6.studentItem},[C.name," ",createVNode("i",{class:styles$6.iconDelete,onClick:()=>{n.studentList.splice(x,1)}},null)]))]})]}),createVNode(NFormItem,{label:"截止时间",path:"expireDate",rule:[{required:!0,message:"请选择截止时间",trigger:"change"}]},{default:()=>[createVNode(NDatePicker,{"formatted-value":n.expireDate,"onUpdate:formatted-value":C=>n.expireDate=C,type:"datetime",clearable:!0,format:"yyyy-MM-dd HH:mm",style:{width:"100%"},isDateDisabled:p},null)]}),o.value>0&&createVNode(NFormItem,{label:" ",class:styles$6.maxExpireTime},{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,{maskClosable:modalClickMask,show:n.workVisiable,"onUpdate:show":C=>n.workVisiable=C,style:e.from==="class"?{width:"780px",...A.styleDrag.value}:{width:"780px"},preset:"card",showIcon:!1,class:["modalTitle background",b],title:"选择学生",blockScroll:!1},{default:()=>[createVNode(AssignStudent,{classGroupId:e.classGroupId,currentGradeNum:n.currentGradeNum,selectIds:n.selectIds,studentList:n.studentList,classList:n.currentClassList,onClose:()=>n.workVisiable=!1,onConfirm:C=>{n.studentList=C||[],n.workVisiable=!1}},null),e.from==="class"&&createVNode(Dragbom,null,null)]}),createVNode(TheTipDialog,{show:y.show,content:y.msg,onClose:()=>{y.show=!1},onConfirm:u,cancelButtonText:"暂不设置",cancelBtn:y.cancelBtn,confirmButtonText:y.confirmButtonText},null)])}}),searchGroup$1="_searchGroup_noig9_1",searchSelect$1="_searchSelect_noig9_4",inputSearch$1="_inputSearch_noig9_18",searchBtn$1="_searchBtn_noig9_22",btnType$1="_btnType_noig9_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=ref(""),n=ref(""),s=reactive({name:"",bookVersionId:"",subjectId:null,musicalInstrumentId:""}),i=u=>{t("search",s,u)},o=useThrottleFn(()=>i(),500),l=ref([]),c=()=>{const u=r.getMusicTagTree;l.value=[{columnName:u[0].columnName,name:"全部"+u[0].columnName||"",id:""},...u]},d=u=>{for(const m of u)m.instruments&&m.instruments.length>0&&(m.instruments.forEach(g=>{g.columnName="乐器"}),m.children=m.instruments,d(m.instruments))},y=ref([]),f=()=>{var m,g;const u=r.getSubjectList;if(d(u),u.length>0){u[0].columnName="声部";const E=u[0];s.subjectId=E.value,s.musicalInstrumentId=(m=E.children[0])==null?void 0:m.value,n.value=(g=E.children[0])==null?void 0:g.value}y.value=u};return onMounted(async()=>{await r.getMusicTagTreeApi(),c(),await r.getSubjects(),f(),await r.getSubjects(),i("time")}),()=>createVNode(Fragment,null,[createVNode("div",{class:styles$4.searchGroup},[createVNode("div",{class:styles$4.searchSelect},[e.type!=="myMusic"&&createVNode(CCascader,{placeholder:"全部版本",showPath:!0,value:a.value,"onUpdate:value":[u=>a.value=u,u=>{s.bookVersionId=u||"",i()}],options:l.value},null),createVNode(CCascader,{value:n.value,"onUpdate:value":u=>n.value=u,childShowAllCheck:!1,placement:"bottom-end",placeholder:"全部声部",options:y.value,onMoreId:u=>{s.musicalInstrumentId=u.childId,s.subjectId=u.parentId,i()}},null)]),createVNode(NInput,{type:"text",placeholder:"请输入搜索关键词",clearable:!0,value:s.name,"onUpdate:value":u=>s.name=u,class:styles$4.inputSearch,onKeyup:u=>{u.code==="Enter"&&o()},onClear:()=>{s.name="",o()}},{prefix:()=>createVNode("span",{class:"icon-search-input",onClick:()=>o()},null)})])])}}),listContainer$1="_listContainer_1gz6z_1",listSection$1="_listSection_1gz6z_5",emptySection$1="_emptySection_1gz6z_8",list$1="_list_1gz6z_1",trainEditModal$1="_trainEditModal_1gz6z_22",styles$3={listContainer:listContainer$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:"",audioPlayTypes:e.cardType==="homerowk-record"||e.cardType==="prepare"?["PLAY"]:[],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:d}=await materialQueryPage({...r.searchGroup,...r.pagination});r.loading=!1;const y=d.rows||[],f=[];y.forEach(u=>{const m=t.getTrainList.findIndex(g=>g.musicId===u.id);f.push({id:u.id,coverImg:u.coverImg||u.musicSvg,type:"MUSIC",title:u.name,isCollect:!!u.favoriteFlag,refFlag:u.refFlag,isSelected:u.sourceFrom==="PLATFORM",content:u.id,audioPlayTypeArray:u.audioPlayTypes?u.audioPlayTypes.split(","):[],containAccompaniment:u.containAccompaniment,xmlFileUrl:u.xmlFileUrl})}),r.tableList.push(...f),r.finshed=d.pages<=d.current}catch(d){r.loading=!1}},n=async d=>{r.pagination.page=1,r.tableList=[],r.searchGroup=Object.assign(r.searchGroup,d),a()};watch(()=>t.getSubjectId,()=>{n(r.searchGroup)});const s=useThrottleFn(()=>{r.pagination.page=r.pagination.page+1,a()},500),i=async d=>{var u;let y="init",f=null;try{const m=await request$1.get(d.xmlFileUrl,{mode:"cors"});f=(u=new DOMParser().parseFromString(m,"text/xml").getElementsByTagName("part")[0])==null?void 0:u.getElementsByTagName("measure"),y="success"}catch(m){y="error"}y=="success"?d.practiceChapterMax=f.length:d.practiceChapterMax=0,d.coursewareKnowledgeDetailId=t.getSelectKey,d.subjectId=t.getSubjectId,r.editItem=d,r.editStatus=!0},o=async d=>{try{await favorite({materialId:d.id,favoriteFlag:d.isCollect?0:1,type:d.type}),d.isCollect=!d.isCollect}catch(y){}};onMounted(()=>{eventGlobal.on("onTrainDragItem",(d,y)=>{i(d)})});let l,c;if(e.from==="class"){const d=useUserStore();c="workSetingBoxClass_drag",l=useDrag(["".concat(c,">.n-card-header"),"".concat(c," .bom_drag")],c,toRef(r,"editStatus"),d.info.id)}return()=>createVNode("div",null,[createVNode(ResourceSearchGroup$1,{type:e.type,onSearch:d=>{n(d)}},null),createVNode(NScrollbar,{class:[styles$3.listContainer,e.type==="myMusic"?styles$3.listNoMusic:""],onScroll:d=>{var m,g,E;const y=(m=d.target)==null?void 0:m.clientHeight,f=(g=d.target)==null?void 0:g.scrollTop,u=(E=d.target)==null?void 0:E.scrollHeight;y+f+20>=u&&!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(d=>createVNode(CardType,{isShowAdd:!0,item:d,draggable:!0,isShowCollect:!0,disabledMouseHover:!1,onClick:()=>{d.type!=="IMG"&&(r.show=!0,r.item={instrumentId:r.searchGroup.musicalInstrumentId||null,...d})},onAdd:y=>i(y),onCollect:y=>o(y)},null))]),!r.loading&&r.tableList.length<=0&&createVNode(TheEmpty,null,null)])]})]}),createVNode(CardPreview,{from:e.from,show:r.show,"onUpdate:show":d=>r.show=d,item:r.item,isDownload:!1},null),createVNode(NModal,{maskClosable:modalClickMask,show:r.editStatus,"onUpdate:show":d=>r.editStatus=d,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:d=>{const y=typeFormat(d.trainingType,d.trainingConfigJson),f={...d,id:null,musicName:r.editItem.title,typeList:y};eventGlobal.emit("onTrainAddItem",f)}},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 A;console.log(e.courseScheduleId,"courseScheduleId"),useCatchStore();const r=usePrepareStore(),a=useDialog(),n=useMessage(),s=reactive({title:(A=e.lessonPreTraining)==null?void 0:A.title,preBtnLoading:!1,showAttendClass:!1,list:[],drag:!0,loadingStatus:!1,trainList:[],assignHomeworkStatus:!1,editStatus:!1,editItem:{},removeIds:[],removeVisiable1:!1,preSaveVisiable:!1}),i=async()=>{var b,C;s.loadingStatus=!0;try{if(!((b=e.lessonPreTraining)!=null&&b.id))return s.loadingStatus=!1;const{data:x}=await lessonPreTrainingV2Detail({id:(C=e.lessonPreTraining)==null?void 0:C.id}),D=x.lessonPreTrainingDetails||[],I=[];s.title=x.title,D.forEach(B=>{let L=[];const R=B.trainingConfigJson;B.trainingType==="EVALUATION"?L=["".concat(evaluateDifficult[R.evaluateDifficult]),R.practiceChapterBegin||R.practiceChapterEnd?"".concat(R.practiceChapterBegin,"-").concat(R.practiceChapterEnd,"小节"):"全部小节","".concat(R.trainingTimes,"分达标")]:L=["".concat(R.practiceChapterBegin,"-").concat(R.practiceChapterEnd,"小节"),"速度".concat(R.practiceSpeed),"".concat(R.trainingTimes,"分钟")],I.push({typeList:L||[],audioPlayTypeArray:B.audioPlayTypes?B.audioPlayTypes.split(","):[],...B})}),r.setTrainList(I||[]);const N=[];I.forEach(B=>{s.removeIds.includes(B.id)||N.push(B)}),s.trainList=N||[]}catch(x){}s.loadingStatus=!1};watch(()=>r.getSelectKey,()=>{eventGlobal.emit("teacher-slideshow",!1),t("change",{status:!1}),s.trainList=[],i()});const o=b=>{s.removeIds.push(b.id);const C=s.trainList.findIndex(x=>x.id===b.id);s.trainList.splice(C,1)},l=async b=>{try{a.warning({title:"提示",content:"该训练已下架,是否删除?",positiveText:"确定",negativeText:"取消",maskClosable:!1,onPositiveClick:async()=>{s.removeIds.push(b.id),await lessonPreTrainingDelete({ids:b.id}),n.success("删除成功"),i()}})}catch(C){}},c=async()=>{var b,C;s.preBtnLoading=!0;try{const x=[];s.trainList.forEach(I=>{x.push({trainingType:I.trainingType,musicId:I.musicId,trainingConfigJson:I.trainingConfigJson,musicName:I.musicName})});const{data:D}=await lessonPreTrainingV2Save({title:s.title,id:(b=e.lessonPreTraining)==null?void 0:b.id,coursewareKnowledgeDetailId:e.coursewareKnowledgeDetailId||r.getSelectKey,lessonPreTrainingDetails:x,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:D.id})}catch(x){}s.preBtnLoading=!1},d=()=>{const b=document.querySelector("#model-homework-height");b&&useResizeObserver(b,C=>{const x=C[0],{height:D}=x.contentRect;b.style.setProperty("--window-page-lesson-height",D+"px")})};onMounted(async()=>{d(),await i(),eventGlobal.on("onTrainAddItem",b=>{s.drag=!0,b.id=b.id||new Date().getTime()+"__tmp",s.trainList.push(b),r.setTrainList(s.trainList)})}),onUnmounted(()=>{s.trainList=[],r.setTrainList([])});let y,f;if(e.from==="class"){const b=useUserStore();f="workSetingBoxClass_drag",y=useDrag(["".concat(f,">.n-card-header"),"".concat(f," .bom_drag")],f,toRef(s,"editStatus"),b.info.id)}let u,m;if(e.from==="class"){const b=useUserStore();m="workClearBoxClass_drag",u=useDrag(["".concat(m,">.n-card-header"),"".concat(m," .bom_drag")],m,toRef(s,"removeVisiable1"),b.info.id)}let g,E;if(e.from==="class"){const b=useUserStore();E="workSaveBoxClass_drag",g=useDrag(["".concat(E,">.n-card-header"),"".concat(E," .bom_drag")],E,toRef(s,"preSaveVisiable"),b.info.id)}let p,S;if(e.from==="class"){const b=useUserStore();S="workArrangeImmediatelyBoxClass_drag",p=useDrag(["".concat(S,">.n-card-header"),"".concat(S," .bom_drag")],S,toRef(s,"assignHomeworkStatus"),b.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":b=>s.title=b,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",onClick:()=>{if(!s.title){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 b=0;if(s.trainList.forEach(C=>{C.removeFlag||b++}),b<=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:b=>{b.preventDefault()},onDragover:b=>{b.preventDefault()},onDrop:b=>{let C=b.dataTransfer.getData("text");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":b=>s.trainList=b,itemKey:"id",componentData:{itemKey:"id",tag:"div",animation:200,group:"description",disabled:!1},class:styles$6.list},{item:b=>{const C=b.element;return createVNode("div",{"data-id":C.musicId,class:styles$6.itemBlock},[createVNode(TrainType,{from:e.from,item:C,isDelete:!0,type:"prepare",onDelete:x=>o(x),offShelf:!!C.removeFlag,onOffShelf:()=>l(C),onEdit:x=>{const{trainingConfigJson:D,id:I,musicId:N,...B}=x;s.editItem={...B,id:N,trainId:I,...D},s.editStatus=!0}},null)])}})]),!s.loadingStatus&&r.getTrainList.length<=0&&createVNode(TheEmpty,{description:"暂无作业"},null)])]})]}),createVNode(NModal,{maskClosable:modalClickMask,style:e.from==="class"?y.styleDrag.value:{},show:s.editStatus,"onUpdate:show":b=>s.editStatus=b,class:["modalTitle background",styles$6.trainEditModal,f],preset:"card",title:"作业设置"},{default:()=>[createVNode(TrainUpdate,{item:s.editItem,onClose:()=>s.editStatus=!1,onConfirm:b=>{s.editItem={};const C=typeFormat(b.trainingType,b.trainingConfigJson),x={...b,typeList:C};s.trainList.forEach(D=>{D.id===x.id&&(D.trainingConfigJson=x.trainingConfigJson,D.trainingType=x.trainingType,D.typeList=x.typeList)}),r.setTrainList(s.trainList)}},null),e.from==="class"&&createVNode(Dragbom,null,null)]}),createVNode(NModal,{maskClosable:modalClickMask,style:e.from==="class"?p.styleDrag.value:{},show:s.assignHomeworkStatus,"onUpdate:show":b=>s.assignHomeworkStatus=b,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,{maskClosable:modalClickMask,style:e.from==="class"?u.styleDrag.value:{},show:s.removeVisiable1,"onUpdate:show":b=>s.removeVisiable1=b,preset:"card",class:["modalTitle",styles$6.removeVisiable1,m],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(b=>{s.removeIds.push(b.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,{maskClosable:modalClickMask,style:e.from==="class"?g.styleDrag.value:{},show:s.preSaveVisiable,"onUpdate:show":b=>s.preSaveVisiable=b,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_1r4vd_40",homerowkTabs="_homerowkTabs_1r4vd_51",selectMusicModal="_selectMusicModal_1r4vd_68",trainEditModal="_trainEditModal_1r4vd_81",styles$2={"resource-main":"_resource-main_1r4vd_1",iconScreen,homerowkTabs,selectMusicModal,trainEditModal},searchGroup="_searchGroup_1c8zl_4",searchSelect="_searchSelect_1c8zl_7",inputSearch="_inputSearch_1c8zl_24",searchBtn="_searchBtn_1c8zl_31",btnType="_btnType_1c8zl_37",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=ref(""),n=ref(""),s=reactive({type:"MUSIC",name:"",bookVersionId:null,subjectId:null,audioPlayTypes:e.type==="myResources"?"PLAY":"",musicalInstrumentId:""}),i=ref([]),o=m=>{t("search",{...s,audioPlayTypes:s.type==="MUSIC"?s.audioPlayTypes?s.audioPlayTypes==="PLAY_SING"?["PLAY","SING"]:[s.audioPlayTypes]:[]:[]},m)},l=useThrottleFn(()=>o(),500),c=ref([]),d=()=>{const m=r.getMusicTagTree;c.value=[{columnName:m[0].columnName,name:"全部"+m[0].columnName||"",id:""},...m]},y=m=>{for(const g of m)g.instruments&&g.instruments.length>0&&(g.instruments.forEach(E=>{E.columnName="乐器"}),g.children=g.instruments,y(g.instruments))},f=ref([]),u=()=>{var g,E;const m=r.getSubjectList;if(y(m),m.length>0){m[0].columnName="声部";const p=m[0];s.subjectId=p.value,s.musicalInstrumentId=(g=p.children[0])==null?void 0:g.value,n.value=(E=p.children[0])==null?void 0:E.value}f.value=m};return onMounted(async()=>{await r.getMusicTagTreeApi(),d(),await r.getSubjects(),u(),resourceTypeArray.forEach(m=>{i.value.push(m)}),o()}),()=>{let m;return createVNode(Fragment,null,[createVNode("div",{class:styles$1.searchGroup},[createVNode(NSpace,{size:"small",class:styles$1.btnType},_isSlot(m=i.value.map(g=>createVNode(NButton,{type:s.type===g.value?"primary":"default",secondary:s.type!==g.value,round:!0,size:"small",focusable:!1,onClick:()=>{s.type=g.value,l()}},{default:()=>[g.label]})))?m:{default:()=>[m]}),createVNode("div",{class:styles$1.searchSelect},[s.type==="MUSIC"&&e.type==="shareResources"&&createVNode(CCascader,{placeholder:"全部教材",showPath:!0,value:a.value,"onUpdate:value":[g=>a.value=g,g=>{console.log(g,"value"),s.bookVersionId=g||"",o()}],options:c.value},null),createVNode(CCascader,{placeholder:"全部声部",childShowAllCheck:!1,showPath:!0,showAudioPlayType:!(e.type==="myResources"||s.type!=="MUSIC"),value:n.value,"onUpdate:value":g=>n.value=g,options:f.value,onMoreId:g=>{s.musicalInstrumentId=g.childId,s.subjectId=g.parentId,e.type!=="myResources"&&(s.audioPlayTypes=g.audioPlayTypes),o()}},null)]),createVNode(NInput,{type:"text",placeholder:"请输入搜索关键词",clearable:!0,value:s.name,"onUpdate:value":g=>s.name=g,class:styles$1.inputSearch,onKeyup:g=>{g.code==="Enter"&&l()},onClear:()=>{s.name="",l()}},{prefix:()=>createVNode("span",{class:"icon-search-input",onClick:()=>l()},null)})])])}}}),listContainer="_listContainer_x01kc_1",listSection="_listSection_x01kc_5",emptySection="_emptySection_x01kc_8",list="_list_x01kc_1",styles={listContainer,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,{expose:t}){const r=usePrepareStore();useMessage(),useDialog();const a=reactive({loading:!1,finshed:!1,pagination:{page:1,rows:20},searchGroup:{type:"MUSIC",name:"",bookVersionId:null,musicalInstrumentId:null,subjectId:null,audioPlayTypes:[],sourceType:formatType(e.type),enableFlag:!0},tableList:[],show:!1,item:{}}),n=async()=>{try{a.pagination.page===1&&(a.loading=!0);const{data:u}=await materialQueryPage({...a.searchGroup,...a.pagination,lessonCoursewareKnowledgeId:e.type==="relateResources"||e.type==="shareResources"?r.getSelectKey:null,relateLessonCoursewareKnowledgeMaterialIds:d()});a.loading=!1;const m=u.rows||[],g=[];m.forEach(E=>{g.push({id:E.id,coverImg:E.coverImg,type:E.type,title:E.name,isCollect:!!E.favoriteFlag,refFlag:E.refFlag,isSelected:E.sourceFrom==="PLATFORM",containAccompaniment:E.containAccompaniment,content:E.content,instrumentIds:E.instrumentIds,hasNotCheck:E.hasNotCheck,sourceForm:"resource-item",audioPlayTypeArray:E.audioPlayTypes?E.audioPlayTypes.split(","):[]})}),a.pagination.page===1?a.tableList=g:a.tableList.push(...g),a.finshed=u.pages<=u.current}catch(u){a.loading=!1}},s=async u=>{a.pagination.page=1,a.tableList=[],a.searchGroup=Object.assign(a.searchGroup,u),n()},i=useDebounceFn(u=>{s(u)},300);watch(()=>r.getInstrumentId,()=>{s(a.searchGroup)});const o=useThrottleFn(()=>{a.pagination.page=a.pagination.page+1,n()},500),l=async u=>{try{eventGlobal.emit("onPrepareAddItem",{materialId:u.id,coverImg:u.coverImg,refFlag:u.refFlag,type:u.type,title:u.title,isCollect:u.isCollect,isSelected:u.isSelected,audioPlayTypeArray:u.audioPlayTypeArray,instrumentIds:u.instrumentIds,hasNotCheck:u.hasNotCheck,content:u.content,removeFlag:!1})}catch(m){}},c=async u=>{try{await favorite({materialId:u.id,favoriteFlag:u.isCollect?0:1,type:u.type}),u.isCollect=!u.isCollect}catch(m){}},d=()=>{let u=[];if(e.type==="relateResources"){const m=[];r.getCoursewareList.forEach(g=>{var E;(E=g.list)==null||E.forEach(p=>{m.push(p.materialId)})}),u=Array(...new Set(m))}return u.join(",")},y=()=>{a.pagination.page=1,a.tableList=[],n()};return onMounted(()=>{e.type==="relateResources"&&eventGlobal.on("onCoursewareUpdate",y)}),onUnmounted(()=>{eventGlobal.off("onCoursewareUpdate",y)}),t({getParams:()=>a.searchGroup}),()=>createVNode("div",null,[createVNode(ResourceSearchGroup,{type:e.type,onSearch:(u,m)=>{a.searchGroup=Object.assign(a.searchGroup,u),m?s(u):i(u)}},null),createVNode(NScrollbar,{class:[styles.listContainer,"listContainerResource",a.searchGroup.type!=="MUSIC"||["myResources","myCollect","relateResources"].includes(e.type)?[styles.listNoMusic,"listNoMusicResource"]:""],onScroll:u=>{var p,S,A;const m=(p=u.target)==null?void 0:p.clientHeight,g=(S=u.target)==null?void 0:S.scrollTop,E=(A=u.target)==null?void 0:A.scrollHeight;m+g+20>=E&&!a.finshed&&!a.loading&&o()}},{default:()=>[createVNode(NSpin,{show:a.loading,size:"small"},{default:()=>[createVNode("div",{class:[styles.listSection,"listSectionResource",!a.loading&&a.tableList.length<=0?[styles.emptySection,"emptySectionResource"]:""]},[a.tableList.length>0&&createVNode(Draggable,{modelValue:a.tableList,"onUpdate:modelValue":u=>a.tableList=u,itemKey:"id",group:{name:"description",pull:"clone",put:!1},animation:200,sort:!1,onMove:u=>u.from!==u.to,componentData:{draggable:"row-nav",itemKey:"id",tag:"div",pull:"clone",put:!1,animation:200,group:"description"},class:styles.list},{item:u=>{const m=u.element;return createVNode("div",{"data-id":m.id,class:["itemWrap","itemBlock","row-nav"]},[createVNode("div",{class:"itemWrapBox"},[createVNode(CardType,{isShowAdd:!0,item:m,isShowCollect:!0,draggable:!1,disabledMouseHover:!1,onClick:()=>{m.type!=="IMG"&&(a.show=!0,a.item={instrumentId:a.searchGroup.musicalInstrumentId||null,...m})},onCollect:g=>c(g),onAdd:g=>l(g)},null)])])}}),!a.loading&&a.tableList.length<=0&&createVNode(TheEmpty,null,null)])]})]}),createVNode(CardPreview,{show:a.show,"onUpdate:show":u=>a.show=u,item:a.item,isDownload:!1},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:{},searchGroup:{}}),s=ref(),i=ref(),o=ref(),l=ref(),c=ref(),d=ref(),y=async p=>{var b;let S="init",A=null;try{const C=await request$1.get(p.xmlFileUrl,{mode:"cors"}),x=new DOMParser().parseFromString(C,"text/xml");(Array.from(x==null?void 0:x.querySelectorAll("systems"))||[]).forEach(N=>{(Array.from(N==null?void 0:N.querySelectorAll("system"))||[]).forEach(L=>{N==null||N.removeChild(L)})}),A=(b=x.getElementsByTagName("part")[0])==null?void 0:b.getElementsByTagName("measure"),S="success"}catch(C){S="error"}S=="success"?p.practiceChapterMax=A.length:p.practiceChapterMax=0,p.coursewareKnowledgeDetailId=r.getSelectKey,p.subjectId=r.getSubjectId,n.editItem=p,n.editStatus=!0},f=()=>{nextTick(()=>{var p,S;(p=c.value)==null||p.syncBarPosition(),(S=d.value)==null||S.syncBarPosition()})};onMounted(async()=>{f(),await a.getMusicSheetCategory(!0)});let u,m;if(e.from==="class"){const p=useUserStore();m="selectResourceStatusAddBoxClass_drag",u=useDrag(["".concat(m," .select-resource>.n-tabs>.n-tabs-nav--top.n-tabs-nav"),"".concat(m," .bom_drag")],m,toRef(n,"selectMusicStatus"),p.info.id)}let g,E;if(e.from==="class"){const p=useUserStore();E="workSetingBoxClass_drag",g=useDrag(["".concat(E,">.n-card-header"),"".concat(E," .bom_drag")],E,toRef(n,"editStatus"),p.info.id)}return t({resetTabPosition:f}),()=>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:c,animated:!0,class:styles$2.homerowkTabs,value:n.tabType,paneClass:styles$2.paneTitle,paneWrapperClass:styles$2.paneWrapperContainer,"onUpdate:value":p=>{n.tabType=p}},{suffix:()=>createVNode("div",{class:styles$2.iconScreen,onClick:()=>{var S,A,b,C;let p={};n.tabType==="relateResources"?p=(S=s.value)==null?void 0:S.getParams():n.tabType==="shareResources"?p=(A=i.value)==null?void 0:A.getParams():n.tabType==="myResources"?p=(b=o.value)==null?void 0:b.getParams():n.tabType==="myCollect"&&(p=(C=l.value)==null?void 0:C.getParams()),n.searchGroup=p,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",ref:s},null)]}),createVNode(NTabPane,{name:"shareResources",tab:"共享资源"},{default:()=>[createVNode(ResourceItem,{type:"shareResources",ref:i},null)]}),createVNode(NTabPane,{name:"myResources",tab:"我的资源"},{default:()=>[createVNode(ResourceItem,{type:"myResources",ref:o},null)]}),createVNode(NTabPane,{name:"myCollect",tab:"我的收藏"},{default:()=>[createVNode(ResourceItem,{type:"myCollect",ref:l},null)]})])}):createVNode(NTabs,{ref:d,animated:!0,value:n.tabWorkType,paneClass:styles$2.paneTitle,paneWrapperClass:styles$2.paneWrapperContainer,"onUpdate:value":p=>{n.tabWorkType=p}},{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,{maskClosable:modalClickMask,show:n.selectResourceStatus,"onUpdate:show":[p=>n.selectResourceStatus=p,p=>{p||r.setSelectResourceStatus(p)}],class:["modalTitle",styles$2.selectMusicModal],preset:"card",title:"选择资源"},{default:()=>[createVNode(SelectResources,{type:n.tabType,searchGroup:n.searchGroup},null)]}),createVNode(NModal,{maskClosable:modalClickMask,style:e.from==="class"?u.styleDrag.value:{},show:n.selectMusicStatus,"onUpdate:show":[p=>n.selectMusicStatus=p,p=>{p||r.setSelectMusicStatus(p)}],class:["modalTitle",styles$2.selectMusicModal,m],preset:"card",title:"选择曲目"},{default:()=>[createVNode(SelectMusic$1,{from:e.from,cardType:e.cardType,onAdd:p=>y(p)},null),e.from==="class"&&createVNode(Dragbom,null,null)]}),createVNode(NModal,{maskClosable:modalClickMask,style:e.from==="class"?g.styleDrag.value:{},show:n.editStatus,"onUpdate:show":p=>n.editStatus=p,class:["modalTitle background",styles$2.trainEditModal,E],preset:"card",title:"作业设置"},{default:()=>[createVNode(TrainUpdate,{item:n.editItem,onClose:()=>n.editStatus=!1,onConfirm:p=>{const S=typeFormat(p.trainingType,p.trainingConfigJson),A={...p,id:null,musicName:n.editItem.title,typeList:S};eventGlobal.emit("onTrainAddItem",A)}},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(()=>{window.removeEventListener("online",p),window.removeEventListener("offline",S)});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",coursewareType:"CLASSIC"}),l=reactive({pptEl:null,slidesLen:1,activeLen:0}),c=reactive({isAutoPlay:!1,nowTime:0,model:!0,isAnimation:!0,timer:null,item:null});ref(!1);const d=async()=>{try{const V=await api_teacherChapterLessonCoursewareDetail(o.courseId);o.coursewareType=V.data.coursewareType||"CLASSIC",o.teacherChapterName=V.data.name||"",o.lessonPreTrainingId=V.data.lessonPreTrainingId;const G=V.data.chapterKnowledgeList||[],K=[],Y=[];G.forEach((ee,le)=>{if(!Array.isArray(ee.chapterKnowledgeMaterialList))return;const ve=[];ee.chapterKnowledgeMaterialList.forEach(ie=>{ie.removeFlag||ve.push({id:ie.id,materialId:ie.bizId,coverImg:ie.bizInfo.coverImg,type:ie.type,title:ie.bizInfo.name,dataJson:ie.dataJson,isCollect:!!ie.favoriteFlag,isSelected:ie.source==="PLATFORM",audioPlayTypeArray:ie.audioPlayTypes?ie.audioPlayTypes.split(","):[],content:ie.bizInfo.content,parentIndex:le})}),K.push({title:ee.name,list:ve}),Y.push(...ve)}),o.knowledgePointList=K,o.itemList=Y==null?void 0:Y.map(ee=>({...ee,iframeRef:null,videoEle:null,audioEle:null,autoPlay:V.data.autoPlay||!1,isprepare:!1,isRender:!1})),setTimeout(()=>{o.animationState="end"},500)}catch(V){console.log(V)}},y=ref(!1),f=ref(!1),u=ref(!1),m=V=>{var G,K,Y,ee,le,ve,ie,me,Ie;if(((G=V.data)==null?void 0:G.api)==="headerTogge"&&(c.model=V.data.show||V.data.playState!="play"),((K=V.data)==null?void 0:K.api)==="onAttendToggleMenu"&&(c.model=!c.model),((Y=V.data)==null?void 0:Y.api)==="api_fingerPreView"&&(clearInterval(c.timer),c.model=!V.data.state),((ee=V.data)==null?void 0:ee.api)==="documentBodyKeyup"&&(((le=V.data)==null?void 0:le.code)==="ArrowUp"&&(k(),T("up")),((ve=V.data)==null?void 0:ve.code)==="ArrowDown"&&(k(),T("down")),((ie=V.data)==null?void 0:ie.code)==="Tab"&&g()),((me=V.data)==null?void 0:me.api)==="callBack"&&(X(),z.callShow=!1),((Ie=V.data)==null?void 0:Ie.api)==="onLogin"){const Me=document;Me.exitFullscreen?Me.exitFullscreen():Me.mozCancelFullScreen?Me.mozCancelFullScreen():Me.webkitExitFullscreen&&Me.webkitExitFullscreen(),s.logout(),n.replace("/login")}},g=()=>{var G,K,Y,ee,le,ve,ie,me,Ie,Me,Be,ge;const V=o.itemList[A.activeIndex];V.type==="VIDEO"&&V.videoEle&&((G=V.videoEle)!=null&&G.paused()?(K=V.videoEle)==null||K.play():(Y=V.videoEle)==null||Y.pause()),V.type==="SONG"&&V.audioEle&&((ee=o.audioRefs[A.activeIndex])==null||ee.onToggleAudio()),V.type==="MUSIC"&&((ve=(le=V.iframeRef)==null?void 0:le.contentWindow)==null||ve.postMessage({api:"togglePlayState"},"*")),V.type==="LISTEN"&&(console.log(V.type,"listening"),(me=(ie=V.iframeRef)==null?void 0:ie.contentWindow)==null||me.postMessage({api:"startPlayState"},"*")),V.type==="RHYTHM"&&((Me=(Ie=V.iframeRef)==null?void 0:Ie.contentWindow)==null||Me.postMessage({api:"setPlayState",data:!0},"*")),V.type==="PPT"&&(console.log(V.iframeRef,"activeItem.iframeRef;"),(Be=V.iframeRef)==null||Be.focus(),((ge=V.iframeRef)==null?void 0:ge.contentWindow).postMessage({type:"focus"},"*"))};onMounted(async()=>{const V=a.query;if(o.type=e.type||V.type,o.courseId=e.courseId||V.courseId,o.instrumentId=e.instrumentId||V.instrumentId,o.detailId=e.detailId||V.detailId,o.lessonCourseId=e.lessonCourseId||V.lessonCourseId,o.classGroupId=e.classGroupId||V.classGroupId,o.classId=e.classId||V.classId,o.preStudentNum=e.preStudentNum||V.preStudentNum,window.addEventListener("message",m),o.classId){const G=await api_cousseScheduleDetail(o.classId);o.courseId=G.data.useChapterLessonCoursewareId}if(d(),C(),o.type==="preview"){const G=[2,10];let K=fe.length-1;for(;K>=0;)G.includes(fe[K].id)&&fe.splice(K,1),K--}Ee(),window.addEventListener("online",p),window.addEventListener("offline",S),document.addEventListener("keydown",G=>{G.stopPropagation(),!(o.nextEndShow||o.removeVisiable||o.selectResourceStatus||u.value||f.value||y.value||o.modelTrainStatus||o.modelAttendStatus||o.selectClassStatus||z.callShow||z.whiteboardShow||z.penShow||A.chapterOpen||A.open)&&(console.log(G.code,"code"),G.code==="ArrowUp"||G.code==="PageUp"?(k(),T("up")):G.code==="ArrowDown"||G.code==="PageDown"?(k(),T("down")):G.code==="Tab"&&(console.log("Space clicked"),g()))})});const E=ref(),p=()=>{clearTimeout(E.value)},S=()=>{E.value=setTimeout(()=>{r.info("请检查网络",{showIcon:!1,render:V=>createVNode("div",{style:"background: rgba(0,0,0,.6); color: #fff; border-radius: 8px; padding: 6px 16px;"},[V.content])})},3e3)},A=reactive({open:!1,activeIndex:0,courseActiveIndex:0,toolOpen:!1,chapterOpen:!1,chapterDetails:[],courseId:null,chapterLoading:!1});watch(()=>[A.open,A.chapterOpen],V=>{setTimeout(()=>{const G=document.querySelectorAll(".n-drawer-container");V[0]||V[1]?G==null||G.forEach(K=>{K.classList.remove("n-drawer-container-relative")}):G==null||G.forEach(K=>{K.classList.add("n-drawer-container-relative")})},200)});const b=(V,G,K=[])=>{for(const Y of G){if(Y.knowledgeList&&Y.knowledgeList.length>0){const ee=b(V,Y.knowledgeList,[...K,Y.id]);if(ee.includes(V))return ee}if(Y.id===V)return[...K,V]}return K},C=async()=>{try{const V=await lessonCoursewareDetail({id:o.lessonCourseId,instrumentId:o.instrumentId});A.chapterDetails=V.data.lessonList||[];const G=b(o.detailId,A.chapterDetails);o.lessonCoursewareDetailId=G[0],console.log(V.data,"data"),o.lessonCoursewareSubjectList=V.data.instrumentList||[]}catch(V){}},x=async()=>{try{if(!o.classId)return;await courseScheduleUpdate({lessonCoursewareKnowledgeDetailId:o.detailId,id:o.classId})}catch(V){}},D=computed(()=>{let V="";return A.chapterDetails.forEach(G=>{var K;G.id===o.lessonCoursewareDetailId&&((K=G.knowledgeList)==null||K.forEach(Y=>{Y.id===o.detailId&&(V=Y.name)}))}),V}),I=(V=!0)=>{var G,K,Y,ee,le,ve,ie,me,Ie,Me;for(let Be=0;Be<o.itemList.length;Be++){const ge=o.itemList[Be];if(ge.type==="VIDEO"&&ge.videoEle)try{V&&((G=ge.videoEle)==null||G.currentTime(0)),(K=ge.videoEle)==null||K.pause()}catch(Re){}ge.type==="SONG"&&ge.audioEle&&((Y=ge.audioEle)==null||Y.stop()),ge.type==="MUSIC"&&((le=(ee=ge.iframeRef)==null?void 0:ee.contentWindow)==null||le.postMessage({api:"setPlayState"},"*")),(ge.type==="INSTRUMENT"||ge.type==="MUSICIAN"||ge.type==="MUSIC_WIKI"||ge.type==="THEORY")&&((ve=ge.iframeRef)==null||ve.handleChangeAudio("pause")),ge.type==="RHYTHM"&&((me=(ie=ge.iframeRef)==null?void 0:ie.contentWindow)==null||me.postMessage({api:"setPlayState",data:!1},"*")),ge.type==="LISTEN"&&((Me=(Ie=ge.iframeRef)==null?void 0:Ie.contentWindow)==null||Me.postMessage({api:"setPlayState"},"*"))}},N=V=>{const G=o.itemList.findIndex(K=>K.id==V);G>-1&&F(G)},B=()=>{clearTimeout(c.timer),r.destroyAll(),c.timer=setTimeout(()=>{c.model=!1,Object.values(o.videoRefs).map(V=>V==null?void 0:V.toggleHideControl(!1)),Object.values(o.audioRefs).map(V=>V==null?void 0:V.toggleHideControl(!1))},4e3)},L=()=>{clearTimeout(c.timer),r.destroyAll(),c.model=!1,Object.values(o.videoRefs).map(V=>V==null?void 0:V.toggleHideControl(!1)),Object.values(o.audioRefs).map(V=>V==null?void 0:V.toggleHideControl(!1))},R=(V=!0)=>{c.model=V,Object.values(o.videoRefs).map(G=>G==null?void 0:G.toggleHideControl(V)),Object.values(o.audioRefs).map(G=>G==null?void 0:G.toggleHideControl(V))},_=V=>{if(V&&V.type==="VIDEO"){const G=V.videoEle;G&&(G.paused?(r.destroyAll(),G.play()):(r.warning("已暂停"),G.pause()))}},j=ref(3),H=[{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"}}],M=ref(),F=V=>{A.activeIndex!=V&&(o.animationState="start",o.videoState="init",I(),clearTimeout(M.value),c.model=!0,P(A.activeIndex,V),A.activeIndex=V,nextTick(()=>{Se()}),M.value=setTimeout(()=>{const G=o.itemList[V];G&&(G.type=="MUSIC"&&(c.model=!0),G.type==="SONG"&&(clearTimeout(c.timer),r.destroyAll()),G.type==="VIDEO"&&(clearTimeout(c.timer),r.destroyAll(),nextTick(()=>{var K;G.error&&((K=G.videoEle)==null||K.src(G.content),G.error=!1),o.animationState="end"})),G.type)},c.isAnimation?800:0))},P=(V,G)=>{const K=o.itemList[V],Y=o.itemList[G];if(Y){if(Y.knowledgePointId!=K.knowledgePointId){c.isAnimation=!0;return}const ee=K.videoEle,le=Y.videoEle;ee&&ee.duration<8&&V<G||le&&le.duration<8&&V>G?c.isAnimation=!1:c.isAnimation=!0}else c.isAnimation=!((K==null?void 0:K.adviseStudyTimeSecond)<8)},T=async V=>{var G,K,Y,ee;if(o.coursewareType==="PPT"){if(V==="up"&&l.activeLen>0){(G=l.pptEl)==null||G.handleChangeSlide("prev");return}else if(V==="down"&&l.activeLen<l.slidesLen-1){(K=l.pptEl)==null||K.handleChangeSlide("next");return}}if(V==="up"){if(A.activeIndex>0){F(A.activeIndex-1);return}let le=A.chapterDetails.findIndex(Be=>Be.id==o.lessonCoursewareDetailId);const ve=((Y=A.chapterDetails[le])==null?void 0:Y.knowledgeList)||[];let ie=ve.findIndex(Be=>Be.id==o.detailId),me=!1,Ie="";for(;ie>=0&&(ie--,ie>=0&&ve[ie].coursewareNum>0&&(me=!0,ve[ie].lessonCoursewareDetailId,Ie=ve[ie].id),!me););if(me){A.courseId=Ie,o.selectClassStatus=!0;return}let Me=!1;for(;le>=0;){le--;const Be=((ee=A.chapterDetails[le])==null?void 0:ee.knowledgeList)||[];let ge=Be.length;for(;ge>0&&(Be[ge-1].coursewareNum>0&&(Me=!0,Be[ge-1].lessonCoursewareDetailId,Ie=Be[ge-1].id),ge--,!Me););if(Me)break}if(Me){A.courseId=Ie,o.selectClassStatus=!0;return}}else{if(A.activeIndex<o.itemList.length-1){F(A.activeIndex+1);return}if(!te.value)return;o.nextEndShow=!0}};function O(){var ve,ie;let V=A.chapterDetails.findIndex(me=>me.id==o.lessonCoursewareDetailId);const G=((ve=A.chapterDetails[V])==null?void 0:ve.knowledgeList)||[];let K=G.findIndex(me=>me.id==o.detailId),Y=!1,ee="";for(;K<G.length-1&&(K++,K>=0&&G[K].coursewareNum>0&&(Y=!0,G[K].lessonCoursewareDetailId,ee=G[K].id),!Y););if(Y){A.courseId=ee,o.selectClassStatus=!0;return}let le=!1;for(;V<=A.chapterDetails.length-1;){V++;const me=((ie=A.chapterDetails[V])==null?void 0:ie.knowledgeList)||[];let Ie=0;for(;Ie<=me.length-1&&(me[Ie].coursewareNum>0&&(le=!0,me[Ie].lessonCoursewareDetailId,ee=me[Ie].id),Ie++,!le););if(le)break}if(le){A.courseId=ee,o.selectClassStatus=!0;return}}watch(()=>A.activeIndex,()=>{const V=o.itemList[A.activeIndex];A.courseActiveIndex=V.parentIndex});const k=(V=!0)=>{clearTimeout(c.timer),c.model=V,Object.values(o.videoRefs).map(G=>G==null?void 0:G.toggleHideControl(V)),Object.values(o.audioRefs).map(G=>G==null?void 0:G.toggleHideControl(V))},z=reactive({type:"",penShow:!1,whiteboardShow:!1,callShow:!1,callStudentList:[]}),Q=V=>{switch(I(!1),L(),A.toolOpen=!1,z.type=V.type,V.type){case"pen":z.penShow=!0;break;case"whiteboard":z.whiteboardShow=!0;break;case"call":z.callShow=!0;break}},X=()=>{z.type="init",R(),B()},re=V=>{V=="setTimeIcon"&&(u.value=!0),V=="beatIcon"&&(y.value=!0),V=="toneIcon"&&(f.value=!0)},q=computed(()=>{var le,ve;if(o.coursewareType==="PPT"&&l.activeLen>0||A.activeIndex>0)return!0;let V=A.chapterDetails.findIndex(ie=>ie.id==o.lessonCoursewareDetailId);const G=((le=A.chapterDetails[V])==null?void 0:le.knowledgeList)||[];let K=G.findIndex(ie=>ie.id==o.detailId);if(V<=0&&K<=0)return!1;let Y=!1;for(;K>=0;)K--,K>=0&&G[K].coursewareNum>0&&(Y=!0);if(Y)return!0;if(V<=0)return!1;let ee=!1;for(;V>=0;){V--;const ie=((ve=A.chapterDetails[V])==null?void 0:ve.knowledgeList)||[];let me=ie.length;for(;me>0;)ie[me-1].coursewareNum>0&&(ee=!0),me--;if(ee)return!0}return!1}),te=computed(()=>{var le,ve;if(o.coursewareType==="PPT"&&l.activeLen<l.slidesLen-1||A.activeIndex<o.itemList.length-1)return!0;let V=A.chapterDetails.findIndex(ie=>ie.id==o.lessonCoursewareDetailId);const G=((le=A.chapterDetails[V])==null?void 0:le.knowledgeList)||[];let K=G.findIndex(ie=>ie.id==o.detailId);if(V>=A.chapterDetails.length-1&&K>=G.length-1)return!1;let Y=!1;for(;K<G.length-1;)K++,K>=0&&G[K].coursewareNum>0&&(Y=!0);if(Y)return!0;if(V>=A.chapterDetails.length-1)return!1;let ee=!1;for(;V<A.chapterDetails.length-1;){V++;const ie=((ve=A.chapterDetails[V])==null?void 0:ve.knowledgeList)||[];let me=0;for(;me<=ie.length-1;)ie[me].coursewareNum>0&&(ee=!0),me++;if(ee)return!0}return!1}),ue=computed(()=>{const V=o.itemList[A.activeIndex];return V&&V.type&&V.type.toLocaleUpperCase()==="VIDEO"?V:{}}),fe=reactive([{name:"上一个",icon:bottomIconPre,id:11},{name:"下一个",icon:bottomIconNext,id:12},{name:"资源列表",icon:bottomIconResource,id:14},{name:"切换章节",icon:bottomIconSwitch,id:13},{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}]),he=[{name:"节拍器",icon:rightIconMetronome,id:5},{name:"计时器",icon:rightIconTimer,id:7},{name:"批注",icon:rightIconPostil,id:3},{name:"白板",icon:rightIconWhiteboard,id:4}],pe=(V="get",G)=>{const K="mirrorAddressCatch";if(V==="get")return localStorage.getItem(K)||null;V==="set"&&localStorage.setItem(K,G||"")},oe=ref(!0),ne=ref("left");pe()&&(ne.value=pe()),watch(ne,()=>{var V,G;for(let K=0;K<o.itemList.length;K++){const Y=o.itemList[K];["RHYTHM","MUSIC"].includes(Y.type)&&((G=(V=Y.iframeRef)==null?void 0:V.contentWindow)==null||G.postMessage({api:"imagePos",data:ne.value},"*"))}});const Z=async V=>{switch([8,11,12,13,14].includes(V)||I(!1),V){case 1:if(o.type==="preview")o.removeVisiable=!0,o.removeTitle="结束预览",o.removeContent="请确认是否结束预览?";else{const K=await getStudentAfterWork({courseScheduleId:o.classId,page:1,rows:99});K.data.rows&&K.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 G=await getStudentAfterWork({courseScheduleId:o.classId,page:1,rows:99});G.data.rows&&G.data.rows.length?(o.modalAttendMessage="本次课程已布置作业,是否继续?",o.modelAttendStatus=!0):(o.modelTrainStatus=!0,nextTick(()=>{be()}),o.modelAttendStatus=!1);break;case 3:Q({type:"pen",icon:iconNote,name:"批注"});break;case 4:Q({type:"whiteboard",icon:iconWhite,name:"白板"});break;case 5:re("beatIcon");break;case 6:re("toneIcon");break;case 7:re("setTimeIcon");break;case 8:oe.value=!1;break;case 9:I(!1),o.selectResourceStatus=!0;break;case 10:if(z.callStudentList.length>0){Q({type:"call",icon:iconWhite,name:"点名"});return}break;case 11:if(!q.value)return;T("up");break;case 12:if(!te.value)return;T("down");break;case 13:A.chapterOpen=!0;break;case 14:A.open=!0,nextTick(()=>{Se()});break}},Ee=async()=>{if(o.classId)try{const G=(await getStudentList$1({classGroupId:o.classGroupId,page:1,rows:999})).data||{};if(Array.isArray(G.rows)&&G.rows.length>0){const K=[];G.rows.forEach(Y=>{K.push({name:Y.nickname,img:Y.avatar})}),z.callStudentList=[...K]}}catch(V){}},Se=()=>{const V=document.querySelectorAll(".drawerCardItemRef");A.activeIndex>=0&&V[A.activeIndex]&&V[A.activeIndex].scrollIntoView()},be=()=>{const V=document.querySelector("#model-homework-height");V&&useResizeObserver(V,G=>{const K=G[0],{height:Y}=K.contentRect;V.style.setProperty("--window-page-lesson-height",Y+"px")})};getGuidanceShow();const Te="selCourBoxClass_drag",Ve=useDrag(["".concat(Te,">.n-card-header"),"".concat(Te," .bom_drag")],Te,toRef(o,"selectClassStatus"),s.info.id),ye="selResourBoxClass_drag",Ae=useDrag(["".concat(ye," .select-resource>.n-tabs>.n-tabs-nav--top.n-tabs-nav"),"".concat(ye," .bom_drag")],ye,toRef(o,"selectResourceStatus"),s.info.id),we="removeResourBoxClass_drag",Ne=useDrag(["".concat(we,">.n-card-header"),"".concat(we," .bom_drag")],we,toRef(o,"removeVisiable"),s.info.id),xe="nextEndBoxClass_drag",De=useDrag(["".concat(xe,">.n-card-header"),"".concat(xe," .bom_drag")],xe,toRef(o,"nextEndShow"),s.info.id),Pe="chapterConBoxClass_drag",Fe=useDrag(["".concat(Pe,">.n-card-header"),"".concat(Pe," .bom_drag")],Pe,toRef(A,"chapterOpen"),s.info.id),ke="resourcesConBoxClass_drag",U=useDrag(["".concat(ke,">.n-card-header"),"".concat(ke," .bom_drag")],ke,toRef(A,"open"),s.info.id),$="timerMeterConBoxClass_drag",W=useDrag(["".concat($," .timeBomCon .bom_drag"),"".concat($," .topDragDom")],$,u,s.info.id),J="metronomeConBoxClass_drag",ae=useDrag(["".concat(J," .topDragDom"),"".concat(J," .bom_drag")],J,y,s.info.id),se="modelTrainStatusConBoxClass_drag",ce=useDrag(["".concat(se,">.n-card-header"),"".concat(se," .bom_drag")],se,toRef(o,"modelTrainStatus"),s.info.id),de="modelTrainHomeWordConBoxClassBoxClass_drag",Ce=useDrag(["".concat(de,">.n-card-header"),"".concat(de," .bom_drag")],de,toRef(o,"modelAttendStatus"),s.info.id);return()=>createVNode("div",{id:"playContent",class:[styles$l.playContent,"wrap"]},[createVNode("div",{onClick:()=>{clearTimeout(c.timer),c.model=!c.model,Object.values(o.videoRefs).map(V=>V==null?void 0:V.toggleHideControl(c.model)),Object.values(o.audioRefs).map(V=>V==null?void 0:V.toggleHideControl(c.model))}},[createVNode("div",{class:styles$l.coursewarePlay,style:{width:i.width}},[A.chapterLoading?"":createVNode("div",{class:styles$l.wraps},[createVNode("div",{style:ue.value.type&&o.animationState==="end"&&o.videoState==="play"?{zIndex:15,opacity:1}:{opacity:0,zIndex:-1},class:styles$l.itemDiv},[createVNode(VideoPlay,{imagePos:ne.value,ref:V=>o.videoItemRef=V,item:ue.value,showModel:c.model,onClose:B,onLoadedmetadata:V=>{o.itemList[A.activeIndex]&&(o.itemList[A.activeIndex].videoEle=V)},onCanplay:()=>{o.videoState="play"},onPause:()=>{clearTimeout(c.timer),c.model=!0},onEnded:()=>{}},null)]),o.itemList.map((V,G)=>{const K=Math.abs(A.activeIndex-G)<2;return Math.abs(A.activeIndex-G)>4,K?createVNode("div",{key:"index"+G,class:[styles$l.itemDiv,A.activeIndex===G&&styles$l.itemActive,c.isAnimation&&styles$l.acitveAnimation,Math.abs(A.activeIndex-G)<2?styles$l.show:styles$l.hide],style:G<A.activeIndex?H[j.value].prev:G>A.activeIndex?H[j.value].next:{},onClick:Y=>{if(Y.stopPropagation(),clearTimeout(c.timer),Date.now()-c.nowTime<300){_(V);return}c.nowTime=Date.now(),c.timer=setTimeout(()=>{c.model=!c.model,Object.values(o.videoRefs).map(ee=>ee==null?void 0:ee.toggleHideControl(c.model)),Object.values(o.audioRefs).map(ee=>ee==null?void 0:ee.toggleHideControl(c.model)),c.model&&B()},300)}},[V.type==="VIDEO"?createVNode(Fragment,null,[createVNode("img",{src:V.coverImg,onLoad:()=>{V.isprepare=!0}},null),createVNode(Transition,{name:"van-fade"},{default:()=>[createVNode("div",{class:styles$l.loadWrap},[createVNode(Vue3Lottie,{animationData:playLoadData},null)])]})]):V.type==="IMG"?createVNode("img",{src:V.content},null):V.type==="SONG"?createVNode(AudioPay,{imagePos:ne.value,item:V,showModel:c.model,activeStatus:A.activeIndex===G,ref:Y=>o.audioRefs[G]=Y,onLoadedmetadata:Y=>{V.audioEle=Y,V.isprepare=!0},onTogglePlay:Y=>{Y||A.open?clearTimeout(c.timer):B()},onEnded:()=>{},onReset:()=>{var Y;(Y=V.audioEle)!=null&&Y.paused||B()}},null):V.type==="PPT"?createVNode("iframe",{src:"https://view.officeapps.live.com/op/embed.aspx?src=".concat(encodeURIComponent(V.content)),onLoad:Y=>{nextTick(()=>{console.log(Y,"ppt",Y.target),V.iframeRef=Y.target})},width:"100%",height:"100%",frameborder:"1"},null):V.type==="RHYTHM"?createVNode(RhythmModal,{item:V,activeStatus:A.activeIndex===G,imagePos:ne.value,onSetIframe:Y=>{V.iframeRef=Y}},null):V.type==="LISTEN"?createVNode(ListenModal,{item:V,"data-vid":V.id,activeStatus:A.activeIndex===G,onSetIframe:Y=>{V.iframeRef=Y}},null):V.type==="INSTRUMENT"||V.type==="MUSICIAN"?createVNode(InstruemntDetail,{type:"preview",id:V.content,contentType:V.type,activeStatus:A.activeIndex===G,ref:Y=>V.iframeRef=Y},null):V.type==="MUSIC_WIKI"?createVNode(MusicDetail,{type:"preview",id:V.content,contentType:V.type,activeStatus:A.activeIndex===G,ref:Y=>V.iframeRef=Y},null):V.type==="THEORY"?createVNode(TheotyDetail,{type:"preview",id:V.content,activeStatus:A.activeIndex===G,ref:Y=>V.iframeRef=Y},null):V.type==="MUSIC"?createVNode(MusicScore,{activeModel:c.model,instrumentId:o.instrumentId,activeStatus:A.activeIndex===G,"data-vid":V.id,music:V,imagePos:ne.value,onSetIframe:Y=>{V.iframeRef=Y}},null):createVNode(PptList,{ref:Y=>{l.pptEl=Y},onInitPPT:({slidesLen:Y})=>{l.slidesLen=Y},onChangeSlideIndex:({slideIndex:Y})=>{l.activeLen=Y},pptData:V},null)]):null})])])]),createVNode("div",{class:[styles$l.rightColumn,oe.value&&ne.value==="right"?"":styles$l.rightColumnHide]},[fe.map(V=>createVNode("div",{class:[styles$l.columnItemBox,V.id===14&&o.coursewareType==="PPT"?styles$l.hideBtn:""]},[createVNode("div",{class:[styles$l.columnItem,V.id===2&&o.preStudentNum<=0||V.id===10&&z.callStudentList.length<=0||V.id===11&&!q.value||V.id===12&&!te.value?styles$l.itemDisabled:""],onClick:()=>Z(V.id)},[createVNode(NTooltip,{showArrow:!1,placement:"left",show:V.id===15?void 0:!1,class:[V.id===15?"columnItemTooltip rightColumnItemTooltip":""]},{trigger:()=>createVNode("img",{src:V.id===8?rightIconPackUp:V.icon},null),default:()=>V.id===15?createVNode("div",{class:"tools"},[he.map(G=>createVNode("div",{onClick:()=>Z(G.id)},[createVNode("img",{src:G.icon},null),createVNode("div",{class:"tit"},[G.name])]))]):V.id===1&&o.type==="preview"?V.name2:V.name})])]))]),createVNode(NTooltip,{showArrow:!1,placement:"left",show:!1},{trigger:()=>createVNode("div",{class:[styles$l.rightHideIcon,oe.value&&ne.value==="right"?"":styles$l.rightIconShow],onClick:()=>{ne.value="right",oe.value=!0,pe("set","right")}},null),default:()=>"按钮镜像"}),createVNode("div",{class:[styles$l.leftColumn,oe.value&&ne.value==="left"?"":styles$l.leftColumnHide]},[fe.map(V=>createVNode("div",{class:[styles$l.columnItemBox,V.id===14&&o.coursewareType==="PPT"?styles$l.hideBtn:""]},[createVNode("div",{class:[styles$l.columnItem,V.id===2&&o.preStudentNum<=0||V.id===10&&z.callStudentList.length<=0||V.id===11&&!q.value||V.id===12&&!te.value?styles$l.itemDisabled:""],onClick:()=>Z(V.id)},[createVNode(NTooltip,{showArrow:!1,placement:"right",show:V.id===15?void 0:!1,class:[V.id===15?"columnItemTooltip":""]},{trigger:()=>createVNode("img",{src:V.icon},null),default:()=>V.id===15?createVNode("div",{class:"tools"},[he.map(G=>createVNode("div",{onClick:()=>Z(G.id)},[createVNode("img",{src:G.icon},null),createVNode("div",{class:"tit"},[G.name])]))]):""})])]))]),createVNode(NTooltip,{showArrow:!1,placement:"right",show:!1},{trigger:()=>createVNode("div",{class:[styles$l.leftHideIcon,oe.value&&ne.value==="left"?"":styles$l.leftIconShow],onClick:()=>{ne.value="left",oe.value=!0,pe("set","left")}},null),default:()=>"按钮镜像"}),createVNode(NModal,{maskClosable:modalClickMask,transformOrigin:"center",show:A.open,"onUpdate:show":V=>A.open=V,preset:"card",class:["modalTitle background",styles$l.drawerContainer,ke],style:U.styleDrag.value,title:D.value||"资源列表"},{default:()=>[createVNode(SourceList,{teacherChapterName:o.teacherChapterName,knowledgePointList:o.knowledgePointList,courseActiveIndex:A.courseActiveIndex,activeItem:o.itemList[A.activeIndex],onConfirm:V=>{A.open=!1,N(V.id)}},null),createVNode(Dragbom,null,null)]}),createVNode(NModal,{maskClosable:modalClickMask,transformOrigin:"center",show:A.chapterOpen,"onUpdate:show":V=>A.chapterOpen=V,preset:"card",class:["modalTitle background",styles$l.drawerContainer,Pe],style:Fe.styleDrag.value,title:"切换章节"},{default:()=>[createVNode(Chapter,{treeList:A.chapterDetails,itemActive:o.detailId,onHandleSelect:async V=>{A.courseId=V.itemActive,o.selectClassStatus=!0}},null),createVNode(Dragbom,null,null)]}),z.penShow&&createVNode(Pen,{isDrag:!0,show:z.type==="pen",type:z.type,close:()=>X()},null),z.whiteboardShow&&createVNode(Pen,{isDrag:!0,show:z.type==="whiteboard",type:z.type,close:()=>X()},null),z.callShow&&createVNode(Pen,{isDrag:!0,imagePos:ne.value,callStudents:z.callStudentList,show:z.type==="call",type:z.type,close:()=>{X(),z.callShow=!1}},null),createVNode(NModal,{maskClosable:modalClickMask,transformOrigin:"center",show:o.selectClassStatus,"onUpdate:show":V=>o.selectClassStatus=V,preset:"card",class:["modalTitle background",styles$l.selectClassModal,Te],style:Ve.styleDrag.value,title:"选择课件"},{default:()=>[createVNode(SelectClass,{classId:o.classId,courseId:A.courseId,instrumentId:o.instrumentId,lessonCoursewareSubjectList:o.lessonCoursewareSubjectList,onConfirm:async V=>{A.chapterLoading=!0;try{o.selectClassStatus=!1,o.detailId=V.itemActive,o.courseId=V.chapterId;const G=b(V.itemActive,A.chapterDetails);o.lessonCoursewareDetailId=G[0],o.type!=="preview"&&await x(),await d(),A.activeIndex=0,A.chapterOpen=!1}catch(G){}A.chapterLoading=!1}},null),createVNode(Dragbom,null,null)]}),createVNode(NModal,{maskClosable:modalClickMask,transformOrigin:"center",show:o.modelAttendStatus,"onUpdate:show":V=>o.modelAttendStatus=V,preset:"card",title:"课后作业",style:Ce.styleDrag.value,class:["modalTitle",styles$l.removeVisiable,de]},{default:()=>[createVNode("div",{class:styles$l.studentRemove},[createVNode("p",null,[o.modalAttendMessage]),createVNode(NSpace,{class:styles$l.btnGroupModal,justify:"center"},{default:()=>[createVNode(NButton,{type:"default",round:!0,onClick:()=>{o.modelTrainStatus=!0,nextTick(()=>{be()}),o.modelAttendStatus=!1}},{default:()=>[createTextVNode("布置作业")]}),createVNode(NButton,{type:"primary",round:!0,onClick:()=>{I(),o.modelAttendStatus=!1}},{default:()=>[createTextVNode("取消")]})]})]),createVNode(Dragbom,null,null)]}),createVNode(NModal,{maskClosable:modalClickMask,show:o.modelTrainStatus,"onUpdate:show":V=>o.modelTrainStatus=V,preset:"card",class:["modalTitle background",styles$l.workVisiable,se],style:ce.styleDrag.value,title:"布置作业"},{default:()=>[createVNode("div",{id:"model-homework-height",class:styles$l.workContainer},[createVNode("div",{class:styles$l.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 V=>{o.modelTrainStatus=V.status,V.saveWork&&o.classId&&(o.lessonPreTrainingId=V.lessonPreTrainingId)}},null)]),createVNode("div",{class:styles$l.resourceMain},[createVNode(ResourceMain,{from:"class",cardType:"homerowk-record"},null)])]),createVNode(Dragbom,null,null)]}),createVNode(MetronomeBox,{modelValue:y.value,"onUpdate:modelValue":V=>y.value=V,dragClass:J,dragStyle:ae.styleDrag.value},null),createVNode(NModal,{maskClosable:modalClickMask,transformOrigin:"center",class:["background"],show:f.value,"onUpdate:show":V=>f.value=V},{default:()=>[createVNode("div",null,[createVNode(PlaceholderTone,{onClose:()=>{f.value=!1}},null)])]}),createVNode(NModal,{maskClosable:modalClickMask,show:u.value,"onUpdate:show":V=>u.value=V,class:$,style:W.styleDrag.value},{default:()=>[createVNode("div",null,[createVNode("img",{class:styles$l.timerMeterClose,src:timerMeterClose,onClick:()=>{u.value=!1}},null),createVNode("div",{class:"topDragDom"},null),createVNode(TimerMeter,null,null)])]}),createVNode(NModal,{maskClosable:modalClickMask,show:o.selectResourceStatus,"onUpdate:show":V=>o.selectResourceStatus=V,class:["modalTitle",styles$l.selectMusicModal,ye],style:Ae.styleDrag.value,preset:"card",title:"选择资源"},{default:()=>[createVNode(SelectResources,{from:"class",instrumentId:o.instrumentId},null),createVNode(Dragbom,null,null)]}),createVNode(NModal,{maskClosable:modalClickMask,transformOrigin:"center",show:o.removeVisiable,"onUpdate:show":V=>o.removeVisiable=V,preset:"card",class:["modalTitle",styles$l.removeVisiable,we],style:Ne.styleDrag.value,title:o.removeTitle},{default:()=>[createVNode("div",{class:styles$l.studentRemove},[createVNode("p",null,[o.removeContent]),createVNode(NSpace,{class:styles$l.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(()=>{be()})):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,{maskClosable:modalClickMask,style:De.styleDrag.value,"z-index":3e3,transformOrigin:"center",show:o.nextEndShow,"onUpdate:show":V=>o.nextEndShow=V,preset:"card",title:"提示",class:["modalTitle",styles$l.removeVisiable,xe]},{default:()=>[createVNode("div",{class:styles$l.studentRemove},[createVNode("p",null,[createTextVNode("当前课件已结束,是否进入下一章节")]),createVNode(NSpace,{class:styles$l.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,O()}},{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};