import{aw as inject,aA as provide,e as computed,ar as onBeforeUnmount,r as ref,aJ as onBeforeUpdate,d as defineComponent,az as toRef,w as watch,at as h$1,T as Transition,z as nextTick,R as browser,P as useRoute,G as storage,J as ACCESS_TOKEN,X as queryString,am as listenerMessage,a as createVNode,M as state,Q as Popup,S as postMessage,D as request,al as commonjsGlobal,ai as getDefaultExportFromCjs,y as onMounted,aK as openBlock,aL as createElementBlock,aD as normalizeStyle,aM as toRefs,x as reactive,aN as getSecondRPM,A as createTextVNode,F as Fragment,E as showToast,a3 as isVNode,aO as usePageVisibility,a8 as onUnmounted,I as Icon,aP as closeToast}from"./index-521a9826.js";import{T as TCPlayer}from"./tcplayer.v4.8.0.min-e19fa46b.js";import{T as TheVip}from"./index-e0de1f06.js";import{S as Skeleton}from"./index-b3b209e4.js";import{S as Slider}from"./index-631128d0.js";import{a7 as createInjectionKey,G as commonLight,F as c,E as cB,I as cM,J as cE,a8 as fadeInScaleUpTransition,ab as insideModal,ac as insidePopover,L as useConfig,K as useTheme,_ as useMergedState,N as useThemeClass,Z as isMounted,V as useAdjustedTo,a2 as VBinder,a1 as VTarget,ad as resolveSlot,W as VFollower,o as on,a as off,a4 as call}from"./fade-in-scale-up.cssr-d571bec8.js";import{C as Collapse,a as CollapseItem}from"./index-06b5ed9e.js";import{I as Image$1}from"./index-25b5c9d0.js";import{h as api_classLessonCoursewareDetail,i as api_lessonCoursewareDetail}from"./api-e984f715.js";import"./index-1ad6a58d.js";const formItemInjectionKey=createInjectionKey("n-form-item");function useFormItem(e,{defaultSize:t="medium",mergedSize:r,mergedDisabled:i}={}){const s=inject(formItemInjectionKey,null);provide(formItemInjectionKey,null);const a=computed(r?()=>r(s):()=>{const{size:l}=e;if(l)return l;if(s){const{mergedSize:f}=s;if(f.value!==void 0)return f.value}return t}),n=computed(i?()=>i(s):()=>{const{disabled:l}=e;return l!==void 0?l:s?s.disabled.value:!1}),o=computed(()=>{const{status:l}=e;return l||(s==null?void 0:s.mergedValidationStatus.value)});return onBeforeUnmount(()=>{s&&s.restoreValidation()}),{mergedSizeRef:a,mergedDisabledRef:n,mergedStatusRef:o,nTriggerFormBlur(){s&&s.handleContentBlur()},nTriggerFormChange(){s&&s.handleContentChange()},nTriggerFormFocus(){s&&s.handleContentFocus()},nTriggerFormInput(){s&&s.handleContentInput()}}}const sizeVariables={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},self$1=e=>{const t="rgba(0, 0, 0, .85)",r="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:i,primaryColor:s,baseColor:a,cardColor:n,modalColor:o,popoverColor:l,borderRadius:f,fontSize:m,opacityDisabled:C}=e;return Object.assign(Object.assign({},sizeVariables),{fontSize:m,markFontSize:m,railColor:i,railColorHover:i,fillColor:s,fillColorHover:s,opacityDisabled:C,handleColor:"#FFF",dotColor:n,dotColorModal:o,dotColorPopover:l,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:r,indicatorTextColor:a,indicatorBorderRadius:f,dotBorder:`2px solid ${i}`,dotBorderActive:`2px solid ${s}`,dotBoxShadow:""})},sliderLight={name:"Slider",common:commonLight,self:self$1},sliderLight$1=sliderLight;function isTouchEvent(e){return window.TouchEvent&&e instanceof window.TouchEvent}function useRefs(){const e=ref(new Map),t=r=>i=>{e.value.set(r,i)};return onBeforeUpdate(()=>{e.value.clear()}),[e,t]}const style=c([cB("slider",` display: block; padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0; position: relative; z-index: 0; width: 100%; cursor: pointer; user-select: none; -webkit-user-select: none; `,[cM("reverse",[cB("slider-handles",[cB("slider-handle-wrapper",` transform: translate(50%, -50%); `)]),cB("slider-dots",[cB("slider-dot",` transform: translateX(50%, -50%); `)]),cM("vertical",[cB("slider-handles",[cB("slider-handle-wrapper",` transform: translate(-50%, -50%); `)]),cB("slider-marks",[cB("slider-mark",` transform: translateY(calc(-50% + var(--n-dot-height) / 2)); `)]),cB("slider-dots",[cB("slider-dot",` transform: translateX(-50%) translateY(0); `)])])]),cM("vertical",` padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2); width: var(--n-rail-width-vertical); height: 100%; `,[cB("slider-handles",` top: calc(var(--n-handle-size) / 2); right: 0; bottom: calc(var(--n-handle-size) / 2); left: 0; `,[cB("slider-handle-wrapper",` top: unset; left: 50%; transform: translate(-50%, 50%); `)]),cB("slider-rail",` height: 100%; `,[cE("fill",` top: unset; right: 0; bottom: unset; left: 0; `)]),cM("with-mark",` width: var(--n-rail-width-vertical); margin: 0 32px 0 8px; `),cB("slider-marks",` top: calc(var(--n-handle-size) / 2); right: unset; bottom: calc(var(--n-handle-size) / 2); left: 22px; font-size: var(--n-mark-font-size); `,[cB("slider-mark",` transform: translateY(50%); white-space: nowrap; `)]),cB("slider-dots",` top: calc(var(--n-handle-size) / 2); right: unset; bottom: calc(var(--n-handle-size) / 2); left: 50%; `,[cB("slider-dot",` transform: translateX(-50%) translateY(50%); `)])]),cM("disabled",` cursor: not-allowed; opacity: var(--n-opacity-disabled); `,[cB("slider-handle",` cursor: not-allowed; `)]),cM("with-mark",` width: 100%; margin: 8px 0 32px 0; `),c("&:hover",[cB("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[cE("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),cB("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),cM("active",[cB("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[cE("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),cB("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),cB("slider-marks",` position: absolute; top: 18px; left: calc(var(--n-handle-size) / 2); right: calc(var(--n-handle-size) / 2); `,[cB("slider-mark",` position: absolute; transform: translateX(-50%); white-space: nowrap; `)]),cB("slider-rail",` width: 100%; position: relative; height: var(--n-rail-height); background-color: var(--n-rail-color); transition: background-color .3s var(--n-bezier); border-radius: calc(var(--n-rail-height) / 2); `,[cE("fill",` position: absolute; top: 0; bottom: 0; border-radius: calc(var(--n-rail-height) / 2); transition: background-color .3s var(--n-bezier); background-color: var(--n-fill-color); `)]),cB("slider-handles",` position: absolute; top: 0; right: calc(var(--n-handle-size) / 2); bottom: 0; left: calc(var(--n-handle-size) / 2); `,[cB("slider-handle-wrapper",` outline: none; position: absolute; top: 50%; transform: translate(-50%, -50%); cursor: pointer; display: flex; `,[cB("slider-handle",` height: var(--n-handle-size); width: var(--n-handle-size); border-radius: 50%; overflow: hidden; transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier); background-color: var(--n-handle-color); box-shadow: var(--n-handle-box-shadow); `,[c("&:hover",` box-shadow: var(--n-handle-box-shadow-hover); `)]),c("&:focus",[cB("slider-handle",` box-shadow: var(--n-handle-box-shadow-focus); `,[c("&:hover",` box-shadow: var(--n-handle-box-shadow-active); `)])])])]),cB("slider-dots",` position: absolute; top: 50%; left: calc(var(--n-handle-size) / 2); right: calc(var(--n-handle-size) / 2); `,[cM("transition-disabled",[cB("slider-dot","transition: none;")]),cB("slider-dot",` transition: border-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier); position: absolute; transform: translate(-50%, -50%); height: var(--n-dot-height); width: var(--n-dot-width); border-radius: var(--n-dot-border-radius); overflow: hidden; box-sizing: border-box; border: var(--n-dot-border); background-color: var(--n-dot-color); `,[cM("active","border: var(--n-dot-border-active);")])])]),cB("slider-handle-indicator",` font-size: var(--n-font-size); padding: 6px 10px; border-radius: var(--n-indicator-border-radius); color: var(--n-indicator-text-color); background-color: var(--n-indicator-color); box-shadow: var(--n-indicator-box-shadow); `,[fadeInScaleUpTransition()]),cB("slider-handle-indicator",` font-size: var(--n-font-size); padding: 6px 10px; border-radius: var(--n-indicator-border-radius); color: var(--n-indicator-text-color); background-color: var(--n-indicator-color); box-shadow: var(--n-indicator-box-shadow); `,[cM("top",` margin-bottom: 12px; `),cM("right",` margin-left: 12px; `),cM("bottom",` margin-top: 12px; `),cM("left",` margin-right: 12px; `),fadeInScaleUpTransition()]),insideModal(cB("slider",[cB("slider-dot","background-color: var(--n-dot-color-modal);")])),insidePopover(cB("slider",[cB("slider-dot","background-color: var(--n-dot-color-popover);")]))]),eventButtonLeft=0,sliderProps=Object.assign(Object.assign({},useTheme.props),{to:useAdjustedTo.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),NSlider=defineComponent({name:"Slider",props:sliderProps,setup(e){const{mergedClsPrefixRef:t,namespaceRef:r,inlineThemeDisabled:i}=useConfig(e),s=useTheme("Slider","-slider",style,sliderLight$1,e,t),a=ref(null),[n,o]=useRefs(),[l,f]=useRefs(),m=ref(new Set),C=useFormItem(e),{mergedDisabledRef:u}=C,x=computed(()=>{const{step:O}=e;if(Number(O)<=0||O==="mark")return 0;const N=O.toString();let W=0;return N.includes(".")&&(W=N.length-N.indexOf(".")-1),W}),S=ref(e.defaultValue),p=toRef(e,"value"),T=useMergedState(p,S),d=computed(()=>{const{value:O}=T;return(e.range?O:[O]).map(z)}),b=computed(()=>d.value.length>2),g=computed(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),A=computed(()=>{const{marks:O}=e;return O?Object.keys(O).map(parseFloat):null}),E=ref(-1),M=ref(-1),I=ref(-1),k=ref(!1),L=ref(!1),j=computed(()=>{const{vertical:O,reverse:N}=e;return O?N?"top":"bottom":N?"right":"left"}),G=computed(()=>{if(b.value)return;const O=d.value,N=X(e.range?Math.min(...O):e.min),W=X(e.range?Math.max(...O):O[0]),{value:Z}=j;return e.vertical?{[Z]:`${N}%`,height:`${W-N}%`}:{[Z]:`${N}%`,width:`${W-N}%`}}),B=computed(()=>{const O=[],{marks:N}=e;if(N){const W=d.value.slice();W.sort((fe,ye)=>fe-ye);const{value:Z}=j,{value:Q}=b,{range:oe}=e,ve=Q?()=>!1:fe=>oe?fe>=W[0]&&fe<=W[W.length-1]:fe<=W[0];for(const fe of Object.keys(N)){const ye=Number(fe);O.push({active:ve(ye),label:N[fe],style:{[Z]:`${X(ye)}%`}})}}return O});function H(O,N){const W=X(O),{value:Z}=j;return{[Z]:`${W}%`,zIndex:N===E.value?1:0}}function $(O){return e.showTooltip||I.value===O||E.value===O&&k.value}function R(O){return k.value?!(E.value===O&&M.value===O):!0}function _(O){var N;~O&&(E.value=O,(N=n.value.get(O))===null||N===void 0||N.focus())}function F(){l.value.forEach((O,N)=>{$(N)&&O.syncPosition()})}function y(O){const{"onUpdate:value":N,onUpdateValue:W}=e,{nTriggerFormInput:Z,nTriggerFormChange:Q}=C;W&&call(W,O),N&&call(N,O),S.value=O,Z(),Q()}function P(O){const{range:N}=e;if(N){if(Array.isArray(O)){const{value:W}=d;O.join()!==W.join()&&y(O)}}else Array.isArray(O)||d.value[0]!==O&&y(O)}function V(O,N){if(e.range){const W=d.value.slice();W.splice(N,1,O),P(W)}else P(O)}function D(O,N,W){const Z=W!==void 0;W||(W=O-N>0?1:-1);const Q=A.value||[],{step:oe}=e;if(oe==="mark"){const ye=J(O,Q.concat(N),Z?W:void 0);return ye?ye.value:N}if(oe<=0)return N;const{value:ve}=x;let fe;if(Z){const ye=Number((N/oe).toFixed(ve)),ge=Math.floor(ye),be=ye>ge?ge:ge-1,Ae=ye0)&&(Z===null||ve0?1:-1),N)}function pe(O){var N,W;if(u.value||!isTouchEvent(O)&&O.button!==eventButtonLeft)return;const Z=se(O);if(Z===void 0)return;const Q=d.value.slice(),oe=e.range?(W=(N=J(Z,Q))===null||N===void 0?void 0:N.index)!==null&&W!==void 0?W:-1:0;oe!==-1&&(O.preventDefault(),_(oe),ie(),V(D(Z,d.value[oe]),oe))}function ie(){k.value||(k.value=!0,on("touchend",document,q),on("mouseup",document,q),on("touchmove",document,Y),on("mousemove",document,Y))}function te(){k.value&&(k.value=!1,off("touchend",document,q),off("mouseup",document,q),off("touchmove",document,Y),off("mousemove",document,Y))}function Y(O){const{value:N}=E;if(!k.value||N===-1){te();return}const W=se(O);V(D(W,d.value[N]),N)}function q(){te()}function le(O){E.value=O,u.value||(I.value=O)}function ae(O){E.value===O&&(E.value=-1,te()),I.value===O&&(I.value=-1)}function he(O){I.value=O}function ne(O){I.value===O&&(I.value=-1)}watch(E,(O,N)=>void nextTick(()=>M.value=N)),watch(T,()=>{if(e.marks){if(L.value)return;L.value=!0,nextTick(()=>{L.value=!1})}nextTick(F)}),onBeforeUnmount(()=>{te()});const ee=computed(()=>{const{self:{markFontSize:O,railColor:N,railColorHover:W,fillColor:Z,fillColorHover:Q,handleColor:oe,opacityDisabled:ve,dotColor:fe,dotColorModal:ye,handleBoxShadow:ge,handleBoxShadowHover:be,handleBoxShadowActive:Ae,handleBoxShadowFocus:Se,dotBorder:Pe,dotBoxShadow:xe,railHeight:Ce,railWidthVertical:Te,handleSize:Ee,dotHeight:we,dotWidth:_e,dotBorderRadius:Me,fontSize:ke,dotBorderActive:Ie,dotColorPopover:Fe},common:{cubicBezierEaseInOut:Ve}}=s.value;return{"--n-bezier":Ve,"--n-dot-border":Pe,"--n-dot-border-active":Ie,"--n-dot-border-radius":Me,"--n-dot-box-shadow":xe,"--n-dot-color":fe,"--n-dot-color-modal":ye,"--n-dot-color-popover":Fe,"--n-dot-height":we,"--n-dot-width":_e,"--n-fill-color":Z,"--n-fill-color-hover":Q,"--n-font-size":ke,"--n-handle-box-shadow":ge,"--n-handle-box-shadow-active":Ae,"--n-handle-box-shadow-focus":Se,"--n-handle-box-shadow-hover":be,"--n-handle-color":oe,"--n-handle-size":Ee,"--n-opacity-disabled":ve,"--n-rail-color":N,"--n-rail-color-hover":W,"--n-rail-height":Ce,"--n-rail-width-vertical":Te,"--n-mark-font-size":O}}),re=i?useThemeClass("slider",void 0,ee,e):void 0,de=computed(()=>{const{self:{fontSize:O,indicatorColor:N,indicatorBoxShadow:W,indicatorTextColor:Z,indicatorBorderRadius:Q}}=s.value;return{"--n-font-size":O,"--n-indicator-border-radius":Q,"--n-indicator-box-shadow":W,"--n-indicator-color":N,"--n-indicator-text-color":Z}}),me=i?useThemeClass("slider-indicator",void 0,de,e):void 0;return{mergedClsPrefix:t,namespace:r,uncontrolledValue:S,mergedValue:T,mergedDisabled:u,mergedPlacement:g,isMounted:isMounted(),adjustedTo:useAdjustedTo(e),dotTransitionDisabled:L,markInfos:B,isShowTooltip:$,shouldKeepTooltipTransition:R,handleRailRef:a,setHandleRefs:o,setFollowerRefs:f,fillStyle:G,getHandleStyle:H,activeIndex:E,arrifiedValues:d,followerEnabledIndexSet:m,handleRailMouseDown:pe,handleHandleFocus:le,handleHandleBlur:ae,handleHandleMouseEnter:he,handleHandleMouseLeave:ne,handleRailKeyDown:ce,indicatorCssVars:i?void 0:de,indicatorThemeClass:me==null?void 0:me.themeClass,indicatorOnRender:me==null?void 0:me.onRender,cssVars:i?void 0:ee,themeClass:re==null?void 0:re.themeClass,onRender:re==null?void 0:re.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:r,formatTooltip:i}=this;return(e=this.onRender)===null||e===void 0||e.call(this),h$1("div",{class:[`${t}-slider`,r,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},h$1("div",{class:`${t}-slider-rail`},h$1("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?h$1("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(s=>h$1("div",{key:s.label,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:s.active}],style:s.style}))):null,h$1("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((s,a)=>{const n=this.isShowTooltip(a);return h$1(VBinder,null,{default:()=>[h$1(VTarget,null,{default:()=>h$1("div",{ref:this.setHandleRefs(a),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,style:this.getHandleStyle(s,a),onFocus:()=>{this.handleHandleFocus(a)},onBlur:()=>{this.handleHandleBlur(a)},onMouseenter:()=>{this.handleHandleMouseEnter(a)},onMouseleave:()=>{this.handleHandleMouseLeave(a)}},resolveSlot(this.$slots.thumb,()=>[h$1("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&h$1(VFollower,{ref:this.setFollowerRefs(a),show:n,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(a),teleportDisabled:this.adjustedTo===useAdjustedTo.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>h$1(Transition,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(a),onEnter:()=>{this.followerEnabledIndexSet.add(a)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(a)}},{default:()=>{var o;return n?((o=this.indicatorOnRender)===null||o===void 0||o.call(this),h$1("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof i=="function"?i(s):s)):null}})})]})})),this.marks?h$1("div",{class:`${t}-slider-marks`},this.markInfos.map(s=>h$1("div",{key:s.label,class:`${t}-slider-mark`,style:s.style},s.label))):null))}}),iconBack=""+new URL("back-137ab198.svg",import.meta.url).href,playContent="_playContent_3dolj_1",coursewarePlay="_coursewarePlay_3dolj_9",playModel="_playModel_3dolj_15",headerContainer="_headerContainer_3dolj_24",backBtn="_backBtn_3dolj_42",headRight="_headRight_3dolj_55",rightBtn="_rightBtn_3dolj_64",menu="_menu_3dolj_76",tabsContent="_tabsContent_3dolj_86",wraps="_wraps_3dolj_97",itemDiv="_itemDiv_3dolj_104",itemActive$2="_itemActive_3dolj_117",acitveAnimation="_acitveAnimation_3dolj_120",show="_show_3dolj_123",hide$2="_hide_3dolj_126",rightFixedBtns="_rightFixedBtns_3dolj_139",fullBtn="_fullBtn_3dolj_146",btnsDisabled="_btnsDisabled_3dolj_165",popup="_popup_3dolj_169",overlayClass="_overlayClass_3dolj_173",loadWrap="_loadWrap_3dolj_201",styles$5={playContent,coursewarePlay,playModel,headerContainer,backBtn,headRight,rightBtn,menu,tabsContent,wraps,itemDiv,itemActive:itemActive$2,acitveAnimation,show,hide:hide$2,rightFixedBtns,fullBtn,btnsDisabled,popup,overlayClass,loadWrap},musicScore="_musicScore_18k28_1",container$2="_container_18k28_8",musicModel="_musicModel_18k28_16",errorModel="_errorModel_18k28_23",startBtn="_startBtn_18k28_35",loading="_loading_18k28_44",skeletonWrap="_skeletonWrap_18k28_50",skeleton="_skeleton_18k28_50",styles$4={musicScore,container:container$2,musicModel,errorModel,startBtn,loading,skeletonWrap,skeleton},iconStart=""+new URL("icon-start-4118ae28.svg",import.meta.url).href,MusicScore=defineComponent({name:"musicScore",props:{pageVisibility:{type:String,default:""},show:{type:Boolean,default:!1},music:{type:Object,default:()=>{}},activeModel:{type:Boolean}},emits:["setIframe"],setup(e,{emit:t}){const r=browser();useRoute();const i=ref(!1);watch(()=>e.pageVisibility,p=>{var T,d;p=="hidden"&&(i.value=!1),p=="hidden"&&e.show&&((d=(T=s.value)==null?void 0:T.contentWindow)==null||d.postMessage({api:"setPlayState"},"*"))}),watch(()=>e.show,p=>{var T,d;p||(d=(T=s.value)==null?void 0:T.contentWindow)==null||d.postMessage({api:"setPlayState"},"*")});const s=ref(),a=ref(!1),n=ref(!1),o=ref(!1),l=ref(!1),f=storage.get(ACCESS_TOKEN),m=/(localhost|192)/.test(location.host)?"https://test.lexiaoya.cn":location.origin;let C=queryString.stringifyUrl({url:m+"/instrument",query:{id:e.music.content,modelType:"practise",Authorization:f,showGuide:!0,iscurseplay:"play"}});const u=()=>{fetch(C).then(()=>{o.value=!0,n.value=!1}).catch(p=>{n.value=!0})};watch(e.music,()=>{o.value||(n.value=!1,e.music.display&&u())});const x=()=>{var b;if(!((b=state.user.data)!=null&&b.vipMember)||i.value)return;r.ios||(i.value=!0);const p=storage.get(ACCESS_TOKEN),T=/(localhost|192)/.test(location.host)?"https://test.lexiaoya.cn":location.origin;let d=queryString.stringifyUrl({url:T+"/instrument",query:{id:e.music.content,Authorization:p,showGuide:!0}});postMessage({api:"openAccompanyWebView",content:{url:d,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0,c_orientation:0}},()=>{r.ios&&(i.value=!0)})},S=async()=>{const p=await request.get("/edu-app/user/getUserInfo",{initRequest:!0,requestType:"form",hideLoading:!0});(p==null?void 0:p.code)===200&&(state.user.data.vipMember=p.data.vipMember)};return listenerMessage("webViewOnResume",()=>{i.value=!1,S()}),()=>{var p;return createVNode("div",{class:styles$4.musicScore},[createVNode("iframe",{ref:s,onLoad:T=>{t("setIframe",s.value),a.value=!0},class:[styles$4.container,"musicIframe"],frameborder:"0",src:C},null),a.value&&createVNode("div",{style:{display:e.activeModel||!((p=state.user.data)!=null&&p.vipMember)?"":"none"},class:styles$4.startBtn,onClick:T=>{T.stopPropagation(),x()}},[createVNode("img",{src:iconStart},null)]),createVNode("div",{class:styles$4.skeletonWrap},[createVNode(Skeleton,{class:styles$4.skeleton,row:8},null)]),createVNode(Popup,{teleport:"body",class:"popup-custom van-scale",transition:"van-scale",closeOnClickOverlay:!1,show:l.value,"onUpdate:show":T=>l.value=T},{default:()=>[createVNode(TheVip,{onClose:T=>{T&&postMessage({api:"openWebView",content:{url:`${location.origin}${location.pathname}#/member-center`,orientation:1}}),l.value=!1}},null)]})])}}}),iconMenu=""+new URL("icon-menu-107c1ebd.svg",import.meta.url).href,iconChange=""+new URL("icon-change-4e3ae26f.svg",import.meta.url).href,iconUp=""+new URL("icon-up-44f779eb.svg",import.meta.url).href,iconDown=""+new URL("icon-down-254707d8.svg",import.meta.url).href,container$1="_container_eyzhy_1",pointHead$1="_pointHead_eyzhy_12",content$3="_content_eyzhy_24",item$1="_item_eyzhy_34",cover="_cover_eyzhy_41",title="_title_eyzhy_50",tag="_tag_eyzhy_59",itemActive$1="_itemActive_eyzhy_75",styles$3={container:container$1,pointHead:pointHead$1,content:content$3,item:item$1,cover,title,tag,itemActive:itemActive$1},iconMulv=""+new URL("icon-mulv-62ebfce7.svg",import.meta.url).href,Points=defineComponent({name:"points",props:{data:{type:Array,default:()=>[]},itemActive:{type:String,default:""},itemName:{type:String,default:""}},emits:["handleSelect"],setup(e,{emit:t}){useRoute();const r={SONG:"音频",VIDEO:"视频",IMG:"图片",MUSIC:"乐谱",PPT:"PPT"};return()=>createVNode("div",{class:styles$3.container},[createVNode("div",{class:styles$3.pointHead},[createVNode("img",{src:iconMulv},null),e.itemName]),createVNode("div",{class:styles$3.content},[e.data.map((i,s)=>createVNode("div",{class:[styles$3.item,e.itemActive==i.id?styles$3.itemActive:""],onClick:()=>{t("handleSelect",{itemActive:i.id})}},[createVNode("div",{class:styles$3.cover},[createVNode("img",{src:i.url},null)]),createVNode("div",{class:styles$3.title},[createVNode("div",{class:styles$3.tag},[r[i.type]]),createVNode("div",null,[i.name])])]))])])}});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,i=e.length,s;for(r=0;r1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var e=[],t,r;for(t=0;t<256;t+=1)r=t.toString(16),e[t]=r.length===1?"0"+r:r;return function(i,s,a){return i<0&&(i=0),s<0&&(s=0),a<0&&(a=0),"#"+e[i]+e[s]+e[a]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(r){return typeof r}:_typeof$5=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$5(e)}var dataManager=function(){var e=1,t=[],r,i,s={onmessage:function(){},postMessage:function(x){r({data:x})}},a={postMessage:function(x){s.onmessage({data:x})}};function n(u){if(window.Worker&&window.Blob&&getWebWorker()){var x=new Blob(["var _workerSelf = self; self.onmessage = ",u.toString()],{type:"text/javascript"}),S=URL.createObjectURL(x);return new Worker(S)}return r=u,s}function o(){i||(i=n(function(x){function S(){function T(R,_){var F,y,P=R.length,V,D,z,X;for(y=0;y=0;_-=1)if(R[_].ty==="sh")if(R[_].ks.k.i)E(R[_].ks.k);else for(P=R[_].ks.k.length,y=0;yF[0]?!0:F[0]>R[0]?!1:R[1]>F[1]?!0:F[1]>R[1]?!1:R[2]>F[2]?!0:F[2]>R[2]?!1:null}var I=function(){var R=[4,4,14];function _(y){var P=y.t.d;y.t.d={k:[{s:P,t:0}]}}function F(y){var P,V=y.length;for(P=0;P=0;P-=1)if(y[P].ty==="sh")if(y[P].ks.k.i)y[P].ks.k.c=y[P].closed;else for(z=y[P].ks.k.length,D=0;D500)&&(this._imageLoaded(),clearInterval(g)),b+=1}.bind(this),50)}function a(d){var b=i(d,this.assetsPath,this.path),g=createNS("image");isSafari?this.testImageLoaded(g):g.addEventListener("load",this._imageLoaded,!1),g.addEventListener("error",function(){A.img=e,this._imageLoaded()}.bind(this),!1),g.setAttributeNS("http://www.w3.org/1999/xlink","href",b),this._elementHelper.append?this._elementHelper.append(g):this._elementHelper.appendChild(g);var A={img:g,assetData:d};return A}function n(d){var b=i(d,this.assetsPath,this.path),g=createTag("img");g.crossOrigin="anonymous",g.addEventListener("load",this._imageLoaded,!1),g.addEventListener("error",function(){A.img=e,this._imageLoaded()}.bind(this),!1),g.src=b;var A={img:g,assetData:d};return A}function o(d){var b={assetData:d},g=i(d,this.assetsPath,this.path);return dataManager.loadData(g,function(A){b.img=A,this._footageLoaded()}.bind(this),function(){b.img={},this._footageLoaded()}.bind(this)),b}function l(d,b){this.imagesLoadedCb=b;var g,A=d.length;for(g=0;gthis.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t=this.animationData.layers,r,i=t.length,s=e.layers,a,n=s.length;for(a=0;athis.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.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]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.firstFramet&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,r!==-1&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),_typeof$4(e[0])==="object"){var r,i=e.length;for(r=0;r=0;F-=1)t[F].animation.destroy(_)}function k(_,F,y){var P=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),V,D=P.length;for(V=0;V0?A=k:g=k;while(Math.abs(I)>a&&++L=s?T(g,G,A,E):B===0?G:p(g,I,I+l,A,E)}},e}(),pooling=function(){function e(t){return t.concat(createSizedArray(t.length))}return{double:e}}(),poolFactory=function(){return function(e,t,r){var i=0,s=e,a=createSizedArray(s),n={newElement:o,release:l};function o(){var f;return i?(i-=1,f=a[i]):f=t(),f}function l(f){i===s&&(a=pooling.double(a),s*=2),r&&r(f),a[i]=f,i+=1}return n}}(),bezierLengthPool=function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)}(),segmentsLengthPool=function(){function e(){return{lengths:[],totalLength:0}}function t(r){var i,s=r.lengths.length;for(i=0;i-.001&&b<.001}function r(u,x,S,p,T,d,b,g,A){if(S===0&&d===0&&A===0)return t(u,x,p,T,b,g);var E=e.sqrt(e.pow(p-u,2)+e.pow(T-x,2)+e.pow(d-S,2)),M=e.sqrt(e.pow(b-u,2)+e.pow(g-x,2)+e.pow(A-S,2)),I=e.sqrt(e.pow(b-p,2)+e.pow(g-T,2)+e.pow(A-d,2)),k;return E>M?E>I?k=E-M-I:k=I-M-E:I>M?k=I-M-E:k=M-E-I,k>-1e-4&&k<1e-4}var i=function(){return function(u,x,S,p){var T=getDefaultCurveSegments(),d,b,g,A,E,M=0,I,k=[],L=[],j=bezierLengthPool.newElement();for(g=S.length,d=0;db?-1:1,E=!0;E;)if(p[d]<=b&&p[d+1]>b?(g=(b-p[d])/(p[d+1]-p[d]),E=!1):d+=A,d<0||d>=T-1){if(d===T-1)return S[d];E=!1}return S[d]+(S[d+1]-S[d])*g}function f(u,x,S,p,T,d){var b=l(T,d),g=1-b,A=e.round((g*g*g*u[0]+(b*g*g+g*b*g+g*g*b)*S[0]+(b*b*g+g*b*b+b*g*b)*p[0]+b*b*b*x[0])*1e3)/1e3,E=e.round((g*g*g*u[1]+(b*g*g+g*b*g+g*g*b)*S[1]+(b*b*g+g*b*b+b*g*b)*p[1]+b*b*b*x[1])*1e3)/1e3;return[A,E]}var m=createTypedArray("float32",8);function C(u,x,S,p,T,d,b){T<0?T=0:T>1&&(T=1);var g=l(T,b);d=d>1?1:d;var A=l(d,b),E,M=u.length,I=1-g,k=1-A,L=I*I*I,j=g*I*I*3,G=g*g*I*3,B=g*g*g,H=I*I*k,$=g*I*k+I*g*k+I*I*A,R=g*g*k+I*g*A+g*I*A,_=g*g*A,F=I*k*k,y=g*k*k+I*A*k+I*k*A,P=g*A*k+I*A*A+g*k*A,V=g*A*A,D=k*k*k,z=A*k*k+k*A*k+k*k*A,X=A*A*k+k*A*A+A*k*A,K=A*A*A;for(E=0;E=f.t-r){l.h&&(l=f),s=0;break}if(f.t-r>e){s=a;break}a=d||e=d?A.points.length-1:0;for(u=A.points[E].point.length,C=0;C=k&&M=d)i[0]=g[0],i[1]=g[1],i[2]=g[2];else if(e<=b)i[0]=l.s[0],i[1]=l.s[1],i[2]=l.s[2];else{var $=createQuaternion(l.s),R=createQuaternion(g),_=(e-b)/(d-b);quaternionToEuler(i,slerp($,R,_))}else for(a=0;a=d?x=1:e1e-6?(u=Math.acos(x),S=Math.sin(u),p=Math.sin((1-r)*u)/S,T=Math.sin(r*u)/S):(p=1-r,T=r),i[0]=p*s+T*l,i[1]=p*a+T*f,i[2]=p*n+T*m,i[3]=p*o+T*C,i}function quaternionToEuler(e,t){var r=t[0],i=t[1],s=t[2],a=t[3],n=Math.atan2(2*i*a-2*r*s,1-2*i*i-2*s*s),o=Math.asin(2*r*i+2*s*a),l=Math.atan2(2*r*a-2*i*s,1-2*r*r-2*s*s);e[0]=n/degToRads,e[1]=o/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,i=e[2]*degToRads,s=Math.cos(t/2),a=Math.cos(r/2),n=Math.cos(i/2),o=Math.sin(t/2),l=Math.sin(r/2),f=Math.sin(i/2),m=s*a*n-o*l*f,C=o*l*n+s*a*f,u=o*a*n+s*l*f,x=s*l*n-o*a*f;return[C,u,x,m]}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=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if(this.propType==="unidimensional")t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,i=this.v.length;r1e-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=this._maxLength&&this.doubleArrayLength(),r){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[];break}(!a[i]||a[i]&&!s)&&(a[i]=pointPool.newElement()),a[i][0]=e,a[i][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,i,s,a,n,o){this.setXYAt(e,t,"v",n,o),this.setXYAt(r,i,"o",n,o),this.setXYAt(s,a,"i",n,o)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,i=this.i,s=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),s=1);var a=this._length-1,n=this._length,o;for(o=s;o=$[$.length-1].t-this.offsetTime)E=$[$.length-1].s?$[$.length-1].s[0]:$[$.length-2].e[0],I=!0;else{for(var R=A,_=$.length-1,F=!0,y,P,V;F&&(y=$[R],P=$[R+1],!(P.t-this.offsetTime>d));)R<_-1?R+=1:F=!1;if(V=this.keyframesMetadata[R]||{},I=y.h===1,A=R,!I){if(d>=P.t-this.offsetTime)B=1;else if(dg&&d>g)||(this._caching.lastIndex=A0||y>-1e-6&&y<0?i(y*P)/P:y}function F(){var y=this.props,P=_(y[0]),V=_(y[1]),D=_(y[4]),z=_(y[5]),X=_(y[12]),K=_(y[13]);return"matrix("+P+","+V+","+D+","+z+","+X+","+K+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=n,this.rotateY=o,this.rotateZ=l,this.skew=m,this.skewFromAxis=C,this.shear=f,this.scale=u,this.setTransform=x,this.translate=S,this.transform=p,this.multiply=T,this.applyToPoint=E,this.applyToX=M,this.applyToY=I,this.applyToZ=k,this.applyToPointArray=H,this.applyToTriplePoints=B,this.applyToPointStringified=$,this.toCSS=R,this.to2dCSS=F,this.clone=g,this.cloneFromProps=A,this.equals=b,this.inversePoints=G,this.inversePoint=j,this.getInverseMatrix=L,this._t=this.transform,this.isIdentity=d,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=1?a.push({s:e-1,e:t-1}):(a.push({s:e,e:1}),a.push({s:0,e:t-1}));var n=[],o,l=a.length,f;for(o=0;oi+r)){var m,C;f.s*s<=i?m=0:m=(f.s*s-i)/r,f.e*s>=i+r?C=1:C=(f.e*s-i)/r,n.push([m,C])}return n.length||n.push([0,0]),n},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t1?t=1+i:this.s.v<0?t=0+i:t=this.s.v+i,this.e.v>1?r=1+i:this.e.v<0?r=0+i:r=this.e.v+i,t>r){var s=t;t=r,r=s}t=Math.round(t*1e4)*1e-4,r=Math.round(r*1e4)*1e-4,this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var a,n,o=this.shapes.length,l,f,m,C,u,x=0;if(r===t)for(n=0;n=0;n-=1)if(p=this.shapes[n],p.shape._mdf){for(T=p.localShapeCollection,T.releaseShapes(),this.m===2&&o>1?(A=this.calculateShapeEdges(t,r,p.totalShapeLength,g,x),g+=p.totalShapeLength):A=[[d,b]],f=A.length,l=0;l=1?S.push({s:p.totalShapeLength*(d-1),e:p.totalShapeLength*(b-1)}):(S.push({s:p.totalShapeLength*d,e:p.totalShapeLength}),S.push({s:0,e:p.totalShapeLength*(b-1)}));var E=this.addShapes(p,S[0]);if(S[0].s!==S[0].e){if(S.length>1){var M=p.shape.paths.shapes[p.shape.paths._length-1];if(M.c){var I=E.pop();this.addPaths(E,T),E=this.addShapes(p,S[1],I)}else this.addPaths(E,T),E=this.addShapes(p,S[1])}this.addPaths(E,T)}}p.shape.paths=T}}},TrimModifier.prototype.addPaths=function(e,t){var r,i=e.length;for(r=0;rt.e){r.c=!1;break}else t.s<=f&&t.e>=f+m.addedLength?(this.addSegment(s[a].v[o-1],s[a].o[o-1],s[a].i[o],s[a].v[o],r,C,T),T=!1):(x=bez.getNewSegment(s[a].v[o-1],s[a].v[o],s[a].o[o-1],s[a].i[o],(t.s-f)/m.addedLength,(t.e-f)/m.addedLength,u[o-1]),this.addSegmentFromArray(x,r,C,T),T=!1,r.c=!1),f+=m.addedLength,C+=1;if(s[a].c&&u.length){if(m=u[o-1],f<=t.e){var d=u[o-1].addedLength;t.s<=f&&t.e>=f+d?(this.addSegment(s[a].v[o-1],s[a].o[o-1],s[a].i[0],s[a].v[0],r,C,T),T=!1):(x=bez.getNewSegment(s[a].v[o-1],s[a].v[0],s[a].o[o-1],s[a].i[0],(t.s-f)/d,(t.e-f)/d,u[o-1]),this.addSegmentFromArray(x,r,C,T),T=!1,r.c=!1)}else r.c=!1;f+=m.addedLength,C+=1}if(r._length&&(r.setXYAt(r.v[p][0],r.v[p][1],"i",p),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),f>t.e)break;a=this.p.keyframes[this.p.keyframes.length-1].t?(m=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/f,0),C=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/f,0)):(m=this.p.pv,C=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/f,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){m=[],C=[];var u=this.px,x=this.py;u._caching.lastFrame+u.offsetTime<=u.keyframes[0].t?(m[0]=u.getValueAtTime((u.keyframes[0].t+.01)/f,0),m[1]=x.getValueAtTime((x.keyframes[0].t+.01)/f,0),C[0]=u.getValueAtTime(u.keyframes[0].t/f,0),C[1]=x.getValueAtTime(x.keyframes[0].t/f,0)):u._caching.lastFrame+u.offsetTime>=u.keyframes[u.keyframes.length-1].t?(m[0]=u.getValueAtTime(u.keyframes[u.keyframes.length-1].t/f,0),m[1]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/f,0),C[0]=u.getValueAtTime((u.keyframes[u.keyframes.length-1].t-.01)/f,0),C[1]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/f,0)):(m=[u.pv,x.pv],C[0]=u.getValueAtTime((u._caching.lastFrame+u.offsetTime-.01)/f,u.offsetTime),C[1]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/f,x.offsetTime))}else C=e,m=C;this.v.rotate(-Math.atan2(m[1]-C[1],m[0]-C[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function i(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function s(){}function a(l){this._addDynamicProperty(l),this.elem.addDynamicProperty(l),this._isDirty=!0}function n(l,f,m){if(this.elem=l,this.frameId=-1,this.propType="transform",this.data=f,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(m||l),f.p&&f.p.s?(this.px=PropertyFactory.getProp(l,f.p.x,0,0,this),this.py=PropertyFactory.getProp(l,f.p.y,0,0,this),f.p.z&&(this.pz=PropertyFactory.getProp(l,f.p.z,0,0,this))):this.p=PropertyFactory.getProp(l,f.p||{k:[0,0,0]},1,0,this),f.rx){if(this.rx=PropertyFactory.getProp(l,f.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(l,f.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(l,f.rz,0,degToRads,this),f.or.k[0].ti){var C,u=f.or.k.length;for(C=0;C0;)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;t0?Math.floor(u):Math.ceil(u),p=this.pMatrix.props,T=this.rMatrix.props,d=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var b=0;if(u>0){for(;bS;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),b-=1;x&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-x,!0),b-=x)}i=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,a=this._currentCopies;for(var g,A;a;){if(t=this.elemsData[i].it,r=t[t.length-1].transform.mProps.v.props,A=r.length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),b!==0){for((i!==0&&s===1||i!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(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]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),this.matrix.transform(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]),g=0;g0&&i<1?[t]:[]:[t-i,t+i].filter(function(s){return s>0&&s<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),i=lerpPoint(this.points[2],this.points[3],e),s=lerpPoint(t,r,e),a=lerpPoint(r,i,e),n=lerpPoint(s,a,e);return[new PolynomialBezier(this.points[0],t,s,n,!0),new PolynomialBezier(n,a,i,this.points[3],!0)]};function extrema(e,t){var r=e.points[0][t],i=e.points[e.points.length-1][t];if(r>i){var s=i;i=r,r=s}for(var a=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),n=0;n0&&a[n]<1){var o=e.point(a[n])[t];oi&&(i=o)}return{min:r,max:i}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,t,r){var i=e.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return Math.abs(e.cx-t.cx)*2=a||e.width<=i&&e.height<=i&&t.width<=i&&t.height<=i){s.push([e.t,t.t]);return}var n=splitData(e),o=splitData(t);intersectsImpl(n[0],o[0],r+1,i,s,a),intersectsImpl(n[0],o[1],r+1,i,s,a),intersectsImpl(n[1],o[0],r+1,i,s,a),intersectsImpl(n[1],o[1],r+1,i,s,a)}}PolynomialBezier.prototype.intersections=function(e,t,r){t===void 0&&(t=2),r===void 0&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,i,r),i},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)};function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,i){var s=[e[0],e[1],1],a=[t[0],t[1],1],n=[r[0],r[1],1],o=[i[0],i[1],1],l=crossProduct(crossProduct(s,a),crossProduct(n,o));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,t,r,i,s,a,n){var o=r-Math.PI/2,l=r+Math.PI/2,f=t[0]+Math.cos(r)*i*s,m=t[1]-Math.sin(r)*i*s;e.setTripleAt(f,m,f+Math.cos(o)*a,m-Math.sin(o)*a,f+Math.cos(l)*n,m-Math.sin(l)*n,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],i=-Math.PI*.5,s=[Math.cos(i)*r[0]-Math.sin(i)*r[1],Math.sin(i)*r[0]+Math.cos(i)*r[1]];return s}function getProjectingAngle(e,t){var r=t===0?e.length()-1:t-1,i=(t+1)%e.length(),s=e.v[r],a=e.v[i],n=getPerpendicularVector(s,a);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(e,t,r,i,s,a,n){var o=getProjectingAngle(t,r),l=t.v[r%t._length],f=t.v[r===0?t._length-1:r-1],m=t.v[(r+1)%t._length],C=a===2?Math.sqrt(Math.pow(l[0]-f[0],2)+Math.pow(l[1]-f[1],2)):0,u=a===2?Math.sqrt(Math.pow(l[0]-m[0],2)+Math.pow(l[1]-m[1],2)):0;setPoint(e,t.v[r%t._length],o,n,i,u/((s+1)*2),C/((s+1)*2))}function zigZagSegment(e,t,r,i,s,a){for(var n=0;n1&&t.length>1&&(s=getIntersection(e[0],t[t.length-1]),s)?[[e[0].split(s[0])[0]],[t[t.length-1].split(s[1])[1]]]:[r,i]}function pruneIntersections(e){for(var t,r=1;r1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r=e.inflectionPoints(),i,s,a,n;if(r.length===0)return[offsetSegment(e,t)];if(r.length===1||floatEqual(r[1],1))return a=e.split(r[0]),i=a[0],s=a[1],[offsetSegment(i,t),offsetSegment(s,t)];a=e.split(r[0]),i=a[0];var o=(r[1]-r[0])/(1-r[0]);return a=a[1].split(o),n=a[0],s=a[1],[offsetSegment(i,t),offsetSegment(n,t),offsetSegment(s,t)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,t,r,i){var s=shapePool.newElement();s.c=e.c;var a=e.length();e.c||(a-=1);var n,o,l,f=[];for(n=0;n=0;n-=1)l=PolynomialBezier.shapeSegmentInverted(e,n),f.push(offsetSegmentSplit(l,t));f=pruneIntersections(f);var m=null,C=null;for(n=0;n0&&(z=!1),z){var U=createTag("style");U.setAttribute("f-forigin",y[P].fOrigin),U.setAttribute("f-origin",y[P].origin),U.setAttribute("f-family",y[P].fFamily),U.type="text/css",U.innerText="@font-face {font-family: "+y[P].fFamily+"; font-style: normal; src: url('"+y[P].fPath+"');}",F.appendChild(U)}}else if(y[P].fOrigin==="g"||y[P].origin===1){for(X=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),K=0;K=55296&&y<=56319){var P=_.charCodeAt(1);P>=56320&&P<=57343&&(F=(y-55296)*1024+P-56320+65536)}return F}function M(_,F){var y=_.toString(16)+F.toString(16);return C.indexOf(y)!==-1}function I(_){return _===l}function k(_){return _===o}function L(_){var F=E(_);return F>=f&&F<=m}function j(_){return L(_.substr(0,2))&&L(_.substr(2,2))}function G(_){return r.indexOf(_)!==-1}function B(_,F){var y=E(_.substr(F,2));if(y!==i)return!1;var P=0;for(F+=2;P<5;){if(y=E(_.substr(F,2)),yn)return!1;P+=1,F+=2}return E(_.substr(F,2))===s}function H(){this.isLoaded=!0}var $=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};$.isModifier=M,$.isZeroWidthJoiner=I,$.isFlagEmoji=j,$.isRegionalCode=L,$.isCombinedCharacter=G,$.isRegionalFlag=B,$.isVariationSelector=k,$.BLACK_FLAG_CODE_POINT=i;var R={addChars:d,addFonts:T,getCharData:b,getFontByName:A,measureText:g,checkLoadedFonts:S,setIsLoaded:H};return $.prototype=R,$}();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.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(e){var t,r=this.layers.length,i;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(i=this.layers[t],i.ip-i.st<=e-this.layers[t].st&&i.op-i.st>e-this.layers[t].st&&this.buildItem(t)),this.completeLayers=this.elements[t]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e0&&(this.maskElement.setAttribute("id",u),this.element.maskedElement.setAttribute(b,"url("+getLocationHref()+"#"+u+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t=this.element.finalTransform.mat,r,i=this.masksProperties.length;for(r=0;r1&&(i+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==i){var n="";r.elem&&(t.c&&(n=e.inv?this.solidPath+i:i),r.elem.setAttribute("d",n)),r.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={};e.createFilter=t,e.createAlphaToLuminanceFilter=r;function t(i,s){var a=createNS("filter");return a.setAttribute("id",i),s!==!0&&(a.setAttribute("filterUnits","objectBoundingBox"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%")),a}function r(){var i=createNS("feColorMatrix");return i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),i}return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r="SourceGraphic",i=e.data.ef?e.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),n=0;this.filters=[];var o;for(t=0;t=0&&(i=this.shapeModifiers[t].processShapes(this._isFirstFrame),!i);t-=1);}},searchProcessedElement:function(t){for(var r=this.processedElements,i=0,s=r.length;i.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;e0;)d=u.transformers[L].mProps._mdf||d,k-=1,L-=1;if(d)for(k=E-u.styles[g].lvl,L=u.transformers.length-1;k>0;)I.multiply(u.transformers[L].mProps.v),k-=1,L-=1}else I=e;if(M=u.sh.paths,p=M._length,d){for(T="",S=0;S=1?H=.99:H<=-1&&(H=-.99);var $=G*H,R=Math.cos(B+u.a.v)*$+T[0],_=Math.sin(B+u.a.v)*$+T[1];S.setAttribute("fx",R),S.setAttribute("fy",_),p&&!u.g._collapsable&&(u.of.setAttribute("fx",R),u.of.setAttribute("fy",_))}}}function m(C,u,x){var S=u.style,p=u.d;p&&(p._mdf||x)&&p.dashStr&&(S.pElem.setAttribute("stroke-dasharray",p.dashStr),S.pElem.setAttribute("stroke-dashoffset",p.dashoffset[0])),u.c&&(u.c._mdf||x)&&S.pElem.setAttribute("stroke","rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||x)&&S.pElem.setAttribute("stroke-opacity",u.o.v),(u.w._mdf||x)&&(S.pElem.setAttribute("stroke-width",u.w.v),S.msElem&&S.msElem.setAttribute("stroke-width",u.w.v))}return r}();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t=this.shapes.length,r,i,s=this.stylesList.length,a,n=[],o=!1;for(i=0;i1&&o&&this.setShapesAsAnimated(n)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t=0;l-=1){if(T=this.searchProcessedElement(e[l]),T?t[l]=r[T-1]:e[l]._render=n,e[l].ty==="fl"||e[l].ty==="st"||e[l].ty==="gf"||e[l].ty==="gs"||e[l].ty==="no")T?t[l].style.closed=!1:t[l]=this.createStyleElement(e[l],s),e[l]._render&&t[l].style.pElem.parentNode!==i&&i.appendChild(t[l].style.pElem),u.push(t[l].style);else if(e[l].ty==="gr"){if(!T)t[l]=this.createGroupElement(e[l]);else for(C=t[l].it.length,m=0;m1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,r=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var i,s=this.effectsSequence.length,a=e||this.data.d.k[this.keysIndex].s;for(i=0;it);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t=[],r=0,i=e.length,s,a,n=!1,o=!1,l="";r=55296&&s<=56319?FontManager.isRegionalFlag(e,r)?l=e.substr(r,14):(a=e.charCodeAt(r+1),a>=56320&&a<=57343&&(FontManager.isModifier(s,a)?(l=e.substr(r,2),n=!0):FontManager.isFlagEmoji(e.substr(r,4))?l=e.substr(r,4):l=e.substr(r,2))):s>56319?(a=e.charCodeAt(r+1),FontManager.isVariationSelector(s)&&(n=!0)):FontManager.isZeroWidthJoiner(s)&&(n=!0,o=!0),n?(t[t.length-1]+=l,n=!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,i=[],s,a,n,o=0,l,f=r.m.g,m=0,C=0,u=0,x=[],S=0,p=0,T,d,b=t.getFontByName(e.f),g,A=0,E=getFontProperties(b);e.fWeight=E.weight,e.fStyle=E.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),a=e.finalText.length,e.finalLineHeight=e.lh;var M=e.tr/1e3*e.finalSize,I;if(e.sz)for(var k=!0,L=e.sz[0],j=e.sz[1],G,B;k;){B=this.buildFinalText(e.t),G=0,S=0,a=B.length,M=e.tr/1e3*e.finalSize;var H=-1;for(s=0;sL&&B[s]!==" "?(H===-1?a+=1:s=H,G+=e.finalLineHeight||e.finalSize*1.2,B.splice(s,H===s?1:0,"\r"),H=-1,S=0):(S+=A,S+=M);G+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&jp?S:p,S=-2*M,l="",n=!0,u+=1):l=R,t.chars?(g=t.getCharData(R,b.fStyle,t.getFontByName(e.f).fFamily),A=n?0:g.w*e.finalSize/100):A=t.measureText(l,e.f,e.finalSize),R===" "?$+=A+M:(S+=A+M+$,$=0),i.push({l:A,an:A,add:m,n,anIndexes:[],val:l,line:u,animatorJustifyOffset:0}),f==2){if(m+=A,l===""||l===" "||s===a-1){for((l===""||l===" ")&&(m-=A);C<=s;)i[C].an=m,i[C].ind=o,i[C].extra=A,C+=1;o+=1,m=0}}else if(f==3){if(m+=A,l===""||s===a-1){for(l===""&&(m-=A);C<=s;)i[C].an=m,i[C].ind=o,i[C].extra=A,C+=1;m=0,o+=1}}else i[o].ind=o,i[o].extra=0,o+=1;if(e.l=i,p=S>p?S:p,x.push(S),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=p,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=x;var _=r.a,F,y;d=_.length;var P,V,D=[];for(T=0;T0?o=this.ne.v/100:l=-this.ne.v/100,this.xe.v>0?f=1-this.xe.v/100:m=1+this.xe.v/100;var C=BezierFactory.getBezierEasing(o,l,f,m).get,u=0,x=this.finalS,S=this.finalE,p=this.data.sh;if(p===2)S===x?u=n>=S?1:0:u=e(0,t(.5/(S-x)+(n-x)/(S-x),1)),u=C(u);else if(p===3)S===x?u=n>=S?0:1:u=1-e(0,t(.5/(S-x)+(n-x)/(S-x),1)),u=C(u);else if(p===4)S===x?u=0:(u=e(0,t(.5/(S-x)+(n-x)/(S-x),1)),u<.5?u*=2:u=1-2*(u-.5)),u=C(u);else if(p===5){if(S===x)u=0;else{var T=S-x;n=t(e(0,n+.5-x),S-x);var d=-T/2+n,b=T/2;u=Math.sqrt(1-d*d/(b*b))}u=C(u)}else p===6?(S===x?u=0:(n=t(e(0,n+.5-x),S-x),u=(1+Math.cos(Math.PI+Math.PI*2*n/(S-x)))/2),u=C(u)):(n>=r(x)&&(n-x<0?u=e(0,t(t(S,1)-(x-n),1)):u=e(0,t(S-n,1))),u=C(u));if(this.sm.v!==100){var g=this.sm.v*.01;g===0&&(g=1e-8);var A=.5-g*.5;u1&&(u=1))}return u*this.a.v},getValue:function(n){this.iterateDynamicProperties(),this._mdf=n||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,n&&this.data.r===2&&(this.e.v=this._currentTextLength);var o=this.data.r===2?1:100/this.data.totalChars,l=this.o.v/o,f=this.s.v/o+l,m=this.e.v/o+l;if(f>m){var C=f;f=m,m=C}this.finalS=f,this.finalE=m}},extendPrototype([DynamicPropertyContainer],i);function s(a,n,o){return new i(a,n)}return{getTextSelectorProp:s}}();function TextAnimatorDataProperty(e,t,r){var i={propType:!1},s=PropertyFactory.getProp,a=t.a;this.a={r:a.r?s(e,a.r,0,degToRads,r):i,rx:a.rx?s(e,a.rx,0,degToRads,r):i,ry:a.ry?s(e,a.ry,0,degToRads,r):i,sk:a.sk?s(e,a.sk,0,degToRads,r):i,sa:a.sa?s(e,a.sa,0,degToRads,r):i,s:a.s?s(e,a.s,1,.01,r):i,a:a.a?s(e,a.a,1,0,r):i,o:a.o?s(e,a.o,0,.01,r):i,p:a.p?s(e,a.p,1,0,r):i,sw:a.sw?s(e,a.sw,0,0,r):i,sc:a.sc?s(e,a.sc,1,0,r):i,fc:a.fc?s(e,a.fc,1,0,r):i,fh:a.fh?s(e,a.fh,0,0,r):i,fs:a.fs?s(e,a.fs,0,.01,r):i,fb:a.fb?s(e,a.fb,0,.01,r):i,t:a.t?s(e,a.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}TextAnimatorProperty.prototype.searchProperties=function(){var e,t=this._textData.a.length,r,i=PropertyFactory.getProp;for(e=0;e=S+Z||!E?(L=(S+Z-T)/p.partialLength,K=A.point[0]+(p.point[0]-A.point[0])*L,U=A.point[1]+(p.point[1]-A.point[1])*L,a.translate(-r[0]*u[m].an*.005,-(r[1]*$)*.01),d=!1):E&&(T+=p.partialLength,b+=1,b>=E.length&&(b=0,g+=1,M[g]?E=M[g].points:G.v.c?(b=0,g=0,E=M[g].points):(T-=p.partialLength,E=null)),E&&(A=p,p=E[b],I=p.partialLength));X=u[m].an/2-u[m].add,a.translate(-X,0,0)}else X=u[m].an/2-u[m].add,a.translate(-X,0,0),a.translate(-r[0]*u[m].an*.005,-r[1]*$*.01,0);for(y=0;ye?this.textSpans[e].span:createNS(o?"g":"text"),g<=e){if(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=l,o){var E=createNS("g");l.appendChild(E),this.textSpans[e].childSpan=E}this.textSpans[e].span=l,this.layerElement.appendChild(l)}l.style.display="inherit"}if(f.reset(),C&&(n[e].n&&(u=-p,x+=r.yOffset,x+=S?1:0,S=!1),this.applyTextPropertiesToMatrix(r,f,n[e].line,u,x),u+=n[e].l||0,u+=p),o){A=this.globalData.fontManager.getCharData(r.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily);var M;if(A.t===1)M=new SVGCompElement(A.data,this.globalData,this);else{var I=emptyShapeData;A.data&&A.data.shapes&&(I=this.buildShapeData(A.data,r.finalSize)),M=new SVGShapeElement(I,this.globalData,this)}if(this.textSpans[e].glyph){var k=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(k.layerElement),k.destroy()}this.textSpans[e].glyph=M,M._debug=!0,M.prepareFrame(0),M.renderFrame(),this.textSpans[e].childSpan.appendChild(M.layerElement),A.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else C&&l.setAttribute("transform","translate("+f.props[12]+","+f.props[13]+")"),l.textContent=n[e].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}C&&l&&l.setAttribute("d",m)}for(;e=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=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=0;i-=1)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=a},processSequences:function(t){var r,i=this.sequenceList.length;for(r=0;r=1){this.buffers=[];var t=this.globalData.canvasContext,r=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(r);var i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(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 i=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(i.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var s=assetLoader.getLumaCanvas(this.canvasContext.canvas),a=s.getContext("2d");a.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(s,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!t)){this.renderTransform(),this.renderRenderable(),this.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,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s=4;t.ty==="rc"?s=5:t.ty==="el"?s=6:t.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,s,e);var a,n=r.length,o;for(a=0;a=0;a-=1){if(C=this.searchProcessedElement(e[a]),C?t[a]=r[C-1]:e[a]._shouldRender=i,e[a].ty==="fl"||e[a].ty==="st"||e[a].ty==="gf"||e[a].ty==="gs")C?t[a].style.closed=!1:t[a]=this.createStyleElement(e[a],S),f.push(t[a].style);else if(e[a].ty==="gr"){if(!C)t[a]=this.createGroupElement(e[a]);else for(l=t[a].it.length,o=0;o=0;s-=1)t[s].ty==="tr"?(n=r[s].transform,this.renderShapeTransform(e,n)):t[s].ty==="sh"||t[s].ty==="el"||t[s].ty==="rc"||t[s].ty==="sr"?this.renderPath(t[s],r[s]):t[s].ty==="fl"?this.renderFill(t[s],r[s],n):t[s].ty==="st"?this.renderStroke(t[s],r[s],n):t[s].ty==="gf"||t[s].ty==="gs"?this.renderGradientFill(t[s],r[s],n):t[s].ty==="gr"?this.renderShape(n,t[s].it,r[s].it):t[s].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r=e.trNodes,i=t.paths,s,a,n,o=i._length;r.length=0;var l=e.transforms.finalTransform;for(n=0;n=1?m=.99:m<=-1&&(m=-.99);var C=l*m,u=Math.cos(f+t.a.v)*C+n[0],x=Math.sin(f+t.a.v)*C+n[1];s=a.createRadialGradient(u,x,0,n[0],n[1],l)}var S,p=e.g.p,T=t.g.c,d=1;for(S=0;Sa&&l==="xMidYMid slice"||ss&&o==="meet"||as&&o==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:f==="xMax"&&(as&&o==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,m==="YMid"&&(a>s&&o==="meet"||as&&o==="meet"||a=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!t||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var r,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var 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=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,i=e.length;for(r=0;r0&&l<1&&s[u].push(this.calculateF(l,e,t,r,i,u))):(f=n*n-4*o*a,f>=0&&(m=(-n+bmSqrt(f))/(2*a),m>0&&m<1&&s[u].push(this.calculateF(m,e,t,r,i,u)),C=(-n-bmSqrt(f))/(2*a),C>0&&C<1&&s[u].push(this.calculateF(C,e,t,r,i,u)))));this.shapeBoundingBox.left=bmMin.apply(null,s[0]),this.shapeBoundingBox.top=bmMin.apply(null,s[1]),this.shapeBoundingBox.right=bmMax.apply(null,s[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,s[1])},HShapeElement.prototype.calculateF=function(e,t,r,i,s,a){return bmPow(1-e,3)*t[a]+3*bmPow(1-e,2)*e*r[a]+3*(1-e)*bmPow(e,2)*i[a]+bmPow(e,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,i=e.length;for(r=0;rr&&(r=s)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax=0;t-=1){var i=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var s;this.p?s=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:s=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),n=[s[0]/a,s[1]/a,s[2]/a],o=Math.sqrt(n[2]*n[2]+n[0]*n[0]),l=Math.atan2(n[1],o),f=Math.atan2(n[0],-n[2]);this.mat.rotateY(f).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 m=!this._prevMat.equals(this.mat);if((m||this.pe._mdf)&&this.comp.threeDElements){r=this.comp.threeDElements.length;var C,u,x;for(t=0;t=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r=createTag("div"),i,s;styleDiv(r);var a=createTag("div");if(styleDiv(a),t==="3d"){i=r.style,i.width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var n="50% 50%";i.webkitTransformOrigin=n,i.mozTransformOrigin=n,i.transformOrigin=n,s=a.style;var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=o,s.webkitTransform=o}r.appendChild(a);var l={container:a,perspectiveElem:r,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t=this.layers.length,r,i="";for(e=0;e=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,i=this.threeDElements.length;rr?(s=e/this.globalData.compSize.w,a=e/this.globalData.compSize.w,n=0,o=(t-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(s=t/this.globalData.compSize.h,a=t/this.globalData.compSize.h,n=(e-this.globalData.compSize.w*(t/this.globalData.compSize.h))/2,o=0);var l=this.resizerElem.style;l.webkitTransform="matrix3d("+s+",0,0,0,0,"+a+",0,0,0,0,1,0,"+n+","+o+",0,1)",l.transform=l.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e=this.globalData.compSize.w,t=this.globalData.compSize.h,r,i=this.threeDElements.length;for(r=0;r=f;)G/=2,B/=2,H>>>=1;return(G+H)/B};return L.int32=function(){return k.g(4)|0},L.quick=function(){return k.g(4)/4294967296},L.double=L,T(b(k.S),e),(A.pass||E||function(j,G,B,H){return H&&(H.S&&S(H,k),j.state=function(){return S(k,{})}),B?(t[n]=j,G):j})(L,I,"global"in A?A.global:this==t,A.state)}t["seed"+n]=u;function x(g){var A,E=g.length,M=this,I=0,k=M.i=M.j=0,L=M.S=[];for(E||(g=[E++]);Ir){var i=r;r=t,t=i}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if(typeof e=="number"||e instanceof Number)return t=t||0,Math.abs(e-t);t||(t=helperLengthArray);var r,i=Math.min(e.length,t.length),s=0;for(r=0;r.5?f/(2-s-a):f/(s+a),s){case t:n=(r-i)/f+(r1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t=e[0],r=e[1],i=e[2],s,a,n;if(r===0)s=i,n=i,a=i;else{var o=i<.5?i*(1+r):i+r-i*r,l=2*i-o;s=hue2rgb(l,o,t+1/3),a=hue2rgb(l,o,t),n=hue2rgb(l,o,t-1/3)}return[s,a,n,e[3]]}function linear(e,t,r,i,s){if((i===void 0||s===void 0)&&(i=t,s=r,t=0,r=1),r=r)return s;var n=r===t?0:(e-t)/(r-t);if(!i.length)return i+(s-i)*n;var o,l=i.length,f=createTypedArray("float32",l);for(o=0;o1){for(s=0;s1?t=1:t<0&&(t=0);var n=e(t);if($bm_isInstanceOfArray(s)){var o,l=s.length,f=createTypedArray("float32",l);for(o=0;odata.k[t].t&&edata.k[t+1].t-e?(i=t+2,s=data.k[t+1].t):(i=t+1,s=data.k[t].t);break}i===-1&&(i=t+1,s=data.k[t].t)}var a={};return a.index=i,a.time=s/elem.comp.globalData.frameRate,a}function key(e){var t,r,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(i=s.length,r=0;rT.length-1)&&(x=T.length-1),g=T[T.length-1-x].t,b=d-g);var A,E,M;if(u==="pingpong"){var I=Math.floor((p-g)/b);if(I%2!==0)return this.getValueAtTime((b-(p-g)%b+g)/this.comp.globalData.frameRate,0)}else if(u==="offset"){var k=this.getValueAtTime(g/this.comp.globalData.frameRate,0),L=this.getValueAtTime(d/this.comp.globalData.frameRate,0),j=this.getValueAtTime(((p-g)%b+g)/this.comp.globalData.frameRate,0),G=Math.floor((p-g)/b);if(this.pv.length){for(M=new Array(k.length),E=M.length,A=0;A=d)return this.pv;var b,g;S?(x?b=Math.abs(this.elem.comp.globalData.frameRate*x):b=Math.max(0,this.elem.data.op-d),g=d+b):((!x||x>T.length-1)&&(x=T.length-1),g=T[x].t,b=g-d);var A,E,M;if(u==="pingpong"){var I=Math.floor((d-p)/b);if(I%2===0)return this.getValueAtTime(((d-p)%b+d)/this.comp.globalData.frameRate,0)}else if(u==="offset"){var k=this.getValueAtTime(d/this.comp.globalData.frameRate,0),L=this.getValueAtTime(g/this.comp.globalData.frameRate,0),j=this.getValueAtTime((b-(d-p)%b+d)/this.comp.globalData.frameRate,0),G=Math.floor((d-p)/b)+1;if(this.pv.length){for(M=new Array(k.length),E=M.length,A=0;A1?(T-p)/(x-1):1,b=0,g=0,A;this.pv.length?A=createTypedArray("float32",this.pv.length):A=0;for(var E;bb){var I=g,k=p.c&&g===A-1?0:g+1,L=(b-E)/d[g].addedLength;M=bez.getPointInSegment(p.v[I],p.v[k],p.o[I],p.i[k],L,d[g]);break}else E+=d[g].addedLength;g+=1}return M||(M=p.c?[p.v[0][0],p.v[0][1]]:[p.v[p._length-1][0],p.v[p._length-1][1]]),M},vectorOnPath:function(x,S,p){x==1?x=this.v.c:x==0&&(x=.999);var T=this.pointOnPath(x,S),d=this.pointOnPath(x+.001,S),b=d[0]-T[0],g=d[1]-T[1],A=Math.sqrt(Math.pow(b,2)+Math.pow(g,2));if(A===0)return[0,0];var E=p==="tangent"?[b/A,g/A]:[-g/A,b/A];return E},tangentOnPath:function(x,S){return this.vectorOnPath(x,S,"tangent")},normalOnPath:function(x,S){return this.vectorOnPath(x,S,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([m],l),extendPrototype([m],f),f.prototype.getValueAtTime=o,f.prototype.initiateExpression=ExpressionManager.initiateExpression;var C=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(u,x,S,p,T){var d=C(u,x,S,p,T);return d.propertyIndex=x.ix,d.lock=!1,S===3?expressionHelpers.searchExpressions(u,x.pt,d):S===4&&expressionHelpers.searchExpressions(u,x.ks,d),d.k&&u.addDynamicProperty(d),d}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(t,r){var i=this.calculateExpression(r);if(t.t!==i){var s={};return this.copyData(s,t),s.t=i.toString(),s.__complete=!1,s}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),r=this.searchExpressions();return this.kf=t||r,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(t,r){var i=createNS("feMerge");i.setAttribute("result",t);var s,a;for(a=0;a=f?C=S<0?i:s:C=i+x*Math.pow((o-e)/S,1/r),m[u]=C,u+=1,a+=256/(n-1);return m.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",t))}};function SVGDropShadowEffect(e,t,r,i,s){var a=t.container.globalData.renderConfig.filterSize,n=t.data.fs||a;e.setAttribute("x",n.x||a.x),e.setAttribute("y",n.y||a.y),e.setAttribute("width",n.width||a.width),e.setAttribute("height",n.height||a.height),this.filterManager=t;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",i+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,e.appendChild(o);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",i+"_drop_shadow_1"),l.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var f=createNS("feFlood");f.setAttribute("flood-color","#00ff00"),f.setAttribute("flood-opacity","1"),f.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=f,e.appendChild(f);var m=createNS("feComposite");m.setAttribute("in",i+"_drop_shadow_3"),m.setAttribute("in2",i+"_drop_shadow_2"),m.setAttribute("operator","in"),m.setAttribute("result",i+"_drop_shadow_4"),e.appendChild(m);var C=this.createMergeNode(i,[i+"_drop_shadow_4",s]);e.appendChild(C)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(t[0]*255),Math.round(t[1]*255),Math.round(t[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=r*Math.cos(i),a=r*Math.sin(i);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t-1&&e%1==0&&e-1&&e%1==0&&e<=MAX_SAFE_INTEGER}function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}var objectProto$a=Object.prototype;function isPrototype(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||objectProto$a;return e===r}function baseTimes(e,t){for(var r=-1,i=Array(e);++r-1}function listCacheSet(e,t){var r=this.__data__,i=assocIndexOf(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function ListCache(e){var t=-1,r=e==null?0:e.length;for(this.clear();++to))return!1;var f=a.get(e),m=a.get(t);if(f&&m)return f==t&&m==e;var C=-1,u=!0,x=r&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(a.set(e,t),a.set(t,e);++C{const r=e.__vccOpts||e;for(const[i,s]of t)r[i]=s;return r};const _sfc_main=defineComponent({props:{animationData:{type:Object,default:()=>({})},animationLink:{type:String,default:""},loop:{type:[Boolean,Number],default:!0},autoPlay:{type:Boolean,default:!0},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"},speed:{type:Number,default:1},delay:{type:Number,default:0},direction:{type:String,default:"forward"},pauseOnHover:{type:Boolean,default:!1},playOnHover:{type:Boolean,default:!1},backgroundColor:{type:String,default:"transparent"},pauseAnimation:{type:Boolean,default:!1},renderer:{type:String,default:"svg"},rendererSettings:{type:Object,default:()=>({})},assetsPath:{type:String,default:""}},emits:{onComplete:null,onLoopComplete:null,onEnterFrame:null,onSegmentStart:null,onAnimationLoaded:null},setup(e,{emit:t}){let r=ref(null);const i=ref("");let s=1;const a=k=>document.querySelector(`[data-id="${k}"]`)!==null,n=async k=>{let L=e.autoPlay;e.playOnHover&&(L=!1);let j={};if(isEqual(e.animationData,{})===!1&&(j=cloneDeep(e.animationData)),e.animationLink!="")try{j=await(await fetch(e.animationLink)).json()}catch(H){console.error(H);return}let G=e.loop;typeof G=="number"&&G>0&&(G=G-1),e.delay>0&&(L=!1);const B={container:k,renderer:e.renderer,loop:G,autoplay:L,animationData:j,assetsPath:e.assetsPath};isEqual(e.rendererSettings,{})===!1&&(B.rendererSettings=e.rendererSettings),r=Lottie.loadAnimation(B),setTimeout(()=>{L=e.autoPlay,e.playOnHover?r.pause():L?r.play():r.pause(),t("onAnimationLoaded")},e.delay),r.setSpeed(e.speed),e.direction==="reverse"&&r.setDirection(-1),e.direction==="normal"&&r.setDirection(1),(e.pauseAnimation||e.playOnHover)&&r.pause(),r.addEventListener("loopComplete",()=>{e.direction==="alternate"&&(r.stop(),s=s*-1,r.setDirection(s),r.play()),t("onLoopComplete")}),r.addEventListener("complete",()=>{t("onComplete")}),r.addEventListener("enterFrame",()=>{t("onEnterFrame")}),r.addEventListener("segmentStart",()=>{t("onSegmentStart")})},o=computed(()=>{let k=e.width,L=e.height;return typeof e.width=="number"&&(k=`${e.width}px`),typeof e.height=="number"&&(L=`${e.height}px`),{"--lottie-animation-container-width":k,"--lottie-animation-container-height":L,"--lottie-animation-container-background-color":e.backgroundColor}}),l=()=>{r&&e.pauseOnHover&&r.pause(),r&&e.playOnHover&&r.play()},f=()=>{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 m=()=>{r&&r.play()},C=()=>{r&&r.pause()},u=()=>{r&&r.stop()},x=()=>{r&&r.destroy()},S=(k=1)=>{if(k<=0)throw new Error("Speed must be greater than 0");r&&r.setSpeed(k)},p=k=>{r&&(k==="forward"?r.setDirection(1):k==="reverse"&&r.setDirection(-1))},T=(k,L=!0)=>{r&&r.goToAndStop(k,L)},d=(k,L=!0)=>{r&&r.goToAndPlay(k,L)},b=(k,L=!1)=>{r&&r.playSegments(k,L)},g=(k=!0)=>{r&&r.setSubframe(k)},A=(k=!0)=>{if(r)return r.getDuration(k)},E=(k,L=0)=>{r&&r.renderer.elements[L].updateDocumentData(k)},M=k=>{for(var L="",j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",G=j.length,B=0;B{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 L=setInterval(()=>{if(a(k)){clearInterval(L);const j=document.querySelector(`[data-id="${k}" ]`);j&&n(j)}},0)};return onMounted(async()=>{i.value=M(20),I(i.value)}),{elementid:i,hoverEnded:f,hoverStarted:l,getCurrentStyle:o,play:m,pause:C,stop:u,destroy:x,setSpeed:S,setDirection:p,goToAndStop:T,goToAndPlay:d,playSegments:b,setSubFrame:g,getDuration:A,updateDocumentData:E}}}),_hoisted_1=["data-id"];function _sfc_render(e,t,r,i,s,a){return openBlock(),createElementBlock("div",{"data-id":e.elementid,class:"lottie-animation-container",style:normalizeStyle(e.getCurrentStyle),onMouseenter:t[0]||(t[0]=(...n)=>e.hoverStarted&&e.hoverStarted(...n)),onMouseleave:t[1]||(t[1]=(...n)=>e.hoverEnded&&e.hoverEnded(...n))},null,44,_hoisted_1)}var Vue3Lottie=_export_sfc(_sfc_main,[["render",_sfc_render]]);const v="5.7.1",fr=60,ip=0,op=120,w=2436,h=1125,nm="合成 1",ddd=0,assets=[{id:"image_0",w:195,h:264,u:"",p:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMMAAAEICAYAAADiJ0BpAAAACXBIWXMAAAABAAAAAQBPJcTWAAAAJHpUWHRDcmVhdG9yAAAImXNMyU9KVXBMK0ktUnBNS0tNLikGAEF6Bs5qehXFAAAgAElEQVR4nO19ebxlRXXut85tGhBoZGjAhEkRISjJQ5QYYwjghBFiVMQ5xhiHRJOoz0jEiahIElEjUcOLmJ8xosGg4hRFoy2IedHggMg8NUQF6WZqmga6++4vf1StqlW19xnu1Hc3d31w+5yzd1WtqtprrqpzBFsh7r9p1aOmNzdHgTyK4AFosFKEKwksBxj+JwEBQMZa8TV+ZvwcitC0Hu+T4R6YmpFUj6bdXDYWCKVqurlwqgMBpCiby5CESEm37Kul30Ay8dwJ4C6Qt1HkFwJ+F4PBBZze8Vu7PubEu0bP8NKELHYHJgV5zbb3rb7p+U3D14H8VeWUNpMAaDE6K2Yu7xkilQABqJlV38dylmlrgUvXbT9HCeEQASI5om/luFQZJBqxXSPU9wrwiW22HZyx06/90U/qeV7K2CqE4d4bv/lETvOjIPcLPGe0YnzIlmktoymzgsgMXDGk3lbhyEyE+FlKZq6tQmwg1RcphbBi4lxO6Yf22/03n5H72U2/qq8W0sxPukNCRAjyzF1WLDtJDn7Z3TN+KA9A9FoYSA7uvXHV36Hha0jGZ0qjlZEYCqg1JFQtF0xh3Z7KrTB1Ev18v9DMlqnQwcTI9WKbNP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UqsAK0+lvXQusk9+OW8lXeXLv97onf+PdnAlz/RvEdqyMiv5VTs0EebEambuaeKtK7oqSvv4O72hTou8xvfZ3mdZxBkEhOWPeof0VIldsZLieY7v5f+Z6kSiZRGbarsiXMDeJ8aU2TqYMneZt+kjV2d7a08aWfANQSXWnpJSoZM5Pa86alKYrhN0Pj7PB2lfvVlX59J7hkRdTFLljtUKvYnjakrlBsLbZ/qPNJZX6Se/lOFy2OocUix2CBpczskB0zthsQ0DWkNsEnv2KSoDO9AsrzNhGv09jQq/55xs5XNQ0rOxET5Ul745RG223vl1VNVSl4L/GKqSktVWnw5VSXt7JDXNJVmo3nGy4rT0lRKCgn0NJWZ+r1x8gwsU5RxsZS7B8xzE6vSCjPNkKlpKiVFpcEtlPSiZZrM8v9MVZnnloFS6oZUFTjZntY0lXkyS0lTubPNPBmHD7bhgKn1wGFuNw9mw4mTZx8BjuWWABH2MYxr+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$1="_videoWrap_q0ooo_1",content$2="_content_q0ooo_6",contentWrap$1="_contentWrap_q0ooo_10",tempVudio="_tempVudio_q0ooo_18",controls$1="_controls_q0ooo_25",hide$1="_hide_q0ooo_37",time$1="_time_q0ooo_40",slider$1="_slider_q0ooo_48",actions$1="_actions_q0ooo_66",actionWrap$1="_actionWrap_q0ooo_74",actionBtn$1="_actionBtn_q0ooo_77",playIcon$1="_playIcon_q0ooo_92",btnPlay$1="_btnPlay_q0ooo_95",btnPause$1="_btnPause_q0ooo_98",loopBtn$1="_loopBtn_q0ooo_105",active$1="_active_q0ooo_111",styles$2={videoWrap:videoWrap$1,content:content$2,contentWrap:contentWrap$1,tempVudio,controls:controls$1,hide:hide$1,time:time$1,slider:slider$1,actions:actions$1,actionWrap:actionWrap$1,actionBtn:actionBtn$1,playIcon:playIcon$1,btnPlay:btnPlay$1,btnPause:btnPause$1,loopBtn:loopBtn$1,active:active$1},iconLoop=""+new URL("icon-loop-d829c914.svg",import.meta.url).href,iconLoopActive=""+new URL("icon-loop-active-cd128045.svg",import.meta.url).href,iconplay$1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAADbN2wMAAACQklEQVRoBe2ZzysEYRjHd/1IKSclDtRGodxcKWWduCkX5R+QkM2FAykX8k+sk9ysk5xozxyQInEhDkr5FVqfp7w1jd3Zmdmdmfeteerb++7zzvu+n+87s7sz7yQSccQrEK+A0SuQ9ENfKBSa6dePvlE+mUx++Bkn9D6A16BV9IVUPFKZRrWhA3mdEMh5RV2kPCE34HXMUI8H8KkIuD2VJdEWKpibyYBqt5M6fH6hbQHVuxk7lGOA6XEALtV0TsNwKIDlJvFpQBnbodJRbo5A2ys0IEZe0RJqCBS01OBM7OcSotu/uCIzWmoer/karx2qcHwnY+QwsYekXlFEYUABj1E5w8QaalTJwEomqdYlxFD/4pbMuB/4KM+AlVd+oXYxcYB6rQ3l6roYUJxpKqeY2EBNKulU6mZAWOXfO4MuMTEpCafQ0YDilfupbUwcoZRK2kudDShWucPNY6JLJaylCQaEtxWtSMUephgQ7hE7vHw2yUCd6Qb2TTZwA/yyqQaOAR9i5+PONAP3AE8BPlgKXgzp+CX+gmsLdQOeFUinKPrNduoQcNsh488AfuF2Hl3OgFzfE4CnvcCLyajPwCcMm2gd8DcB8hpRGpDf9VnAr71CW4+PwoAAzwGes4IEXudusNJHStlWWUZGbqvI46KRG1uytZgO/PJwMwEgKeQ2ZHM3g7Ta3K0D6NmFA3kM1G97Xc4SYIsOBvR/wfFnQnbS3i1GHqhH9orJ70u+Fsz0Ibnxkpd8P2IujngF4hWIV8DzCvwCJiXIZfS6dB4AAAAASUVORK5CYII=",iconpause$1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAADbN2wMAAABJElEQVRoBe1ZQQ6DMAyD/YuPsV/xjr2DvWLrHAkOLaAGOdWEcKRoa4md1OZUuk4hBaSAFLiEAimlATkh5yXt/8AObxzIcN5sLjQYkV9kGR9sjFnxiYVhkeG82QhoYArZoEdhz047YRhkOG82vC3QxOytxbQBVjZA2IR30xaN7J2vxbwBVjZAGMLbV/qYA6lWY897hKdurYnifayEV/3VAf7tnByQA6QCeoVIAWm4HKAlJAnkACkgDZcDtIQkgRwgBaThcoCWkCSQA6SANFwO0BKSBHKAFJCG38KBt0MmT01J48FUazwOvMrOO2tPTQnzYDw1JW++xh1mk2vwVrz59MsKzZ7Ivbt822M+cDThPTqEORH+KQicTXh3D6FNKSAFpEC4Aj8w8BfWLCtJSQAAAABJRU5ErkJggg==";var vudio={exports:{}};(function(e,t){(function(r){e.exports=r()})(function(){var r={effect:"waveform",accuracy:128,width:256,height:100,waveform:{maxHeight:80,minHeight:1,spacing:1,color:"#f00",shadowBlur:0,shadowColor:"#f00",fadeSide:!0,horizontalAlign:"center",verticalAlign:"middle",prettify:!0},lighting:{maxHeight:80,lineWidth:0,color:"#f00",shadowBlur:0,shadowColor:"#f00",fadeSide:!0,horizontalAlign:"center",verticalAlign:"middle"}};function i(a,n,o){if(["[object HTMLAudioSource]","[object HTMLAudioElement]","[object MediaStream]"].indexOf(Object.prototype.toString.call(a))===-1)throw new TypeError("Invaild Audio Source");if(Object.prototype.toString.call(n)!=="[object HTMLCanvasElement]")throw new TypeError("Invaild Canvas Element");this.audioSrc=a,this.canvasEle=n,this.option=s(r,o),this.meta={},this.stat=0,this.freqByteData=null,this.__init()}function s(){var a={};return Array.prototype.forEach.call(arguments,function(n){var o;for(o in n)Object.prototype.hasOwnProperty.call(n,o)&&(Object.prototype.toString.call(n[o])==="[object Object]"?a[o]=s(a[o],n[o]):a[o]=n[o])}),a}return i.prototype={__init:function(){var a=new(window.AudioContext||window.webkitAudioContext||window.mozAudioContext),n=Object.prototype.toString.call(this.audioSrc)!=="[object MediaStream]"?a.createMediaElementSource(this.audioSrc):a.createMediaStreamSource(this.audioSrc),o=window.devicePixelRatio||1;this.analyser=a.createAnalyser(),this.meta.spr=a.sampleRate,n.connect(this.analyser),this.analyser.fftSize=this.option.accuracy*2,this.analyser.connect(a.destination),this.freqByteData=new Uint8Array(this.analyser.frequencyBinCount),this.context2d=this.canvasEle.getContext("2d"),this.width=this.option.width,this.height=this.option.height,this.context2d.canvas.width=this.width*o,this.context2d.canvas.height=this.height*o,this.context2d.scale(o,o)},__rebuildData:function(a,n){var o;return n==="center"?o=[].concat(Array.from(a).reverse().splice(this.option.accuracy/2,this.option.accuracy/2),Array.from(a).splice(0,this.option.accuracy/2)):n==="left"?o=a:n==="right"?o=Array.from(a).reverse():o=[].concat(Array.from(a).reverse().splice(this.option.accuracy/2,this.option.accuracy/2),Array.from(a).splice(0,this.option.accuracy/2)),o},__animate:function(){this.stat===1&&(this.analyser.getByteFrequencyData(this.freqByteData),typeof this.__effects()[this.option.effect]=="function"&&this.__effects()[this.option.effect](this.freqByteData),requestAnimationFrame(this.__animate.bind(this)))},__testFrame:function(){this.analyser.getByteFrequencyData(this.freqByteData),typeof this.__effects()[this.option.effect]=="function"&&this.__effects()[this.option.effect](this.freqByteData)},__effects:function(){var a=this;return{lighting:function(n){var o=a.option.lighting,l=a.__rebuildData(n,o.horizontalAlign),f=o.maxHeight/2,m=!0,C,u;o.horizontalAlign,a.context2d.clearRect(0,0,a.width,a.height),a.context2d.lineWidth=o.lineWidth,a.context2d.strokeStyle=o.color,a.context2d.beginPath(),l.forEach(function(x,S){C=a.width/a.option.accuracy*S,u=x/256*f,o.verticalAlign==="middle"?u=(a.height-x)/2-f/2:o.verticalAlign==="bottom"?u=a.height-x:o.verticalAlign==="top"?u=x:u=(a.height-x)/2-f/2,m?(a.context2d.moveTo(C,u),m=!1):a.context2d.lineTo(C,u)}),a.context2d.stroke()},waveform:function(n){var o=a.option.waveform,l=o.fadeSide,f=o.prettify,m=a.__rebuildData(n,o.horizontalAlign),C,u,x,S,p,T,d,b;o.horizontalAlign!=="center"&&(l=!1,f=!1),a.context2d.clearRect(0,0,a.width,a.height),m.forEach(function(g,A){u=(a.width-a.option.accuracy*o.spacing)/a.option.accuracy,S=A*(u+o.spacing),o.spacing!==1&&(S+=o.spacing/2),f?A<=a.option.accuracy/2?C=(1-(a.option.accuracy/2-1-A)/(a.option.accuracy/2))*o.maxHeight:C=(1-(A-a.option.accuracy/2)/(a.option.accuracy/2))*o.maxHeight:C=o.maxHeight,x=g/256*C,x=x0&&(a.context2d.shadowBlur=o.shadowBlur,a.context2d.shadowColor=o.shadowColor),l?A<=a.option.accuracy/2?a.context2d.globalAlpha=1-(a.option.accuracy/2-1-A)/(a.option.accuracy/2):a.context2d.globalAlpha=1-(A-a.option.accuracy/2)/(a.option.accuracy/2):a.context2d.globalAlpha=1,a.context2d.fillRect(S,p,u,x)})}}},dance:function(){return this.stat===0&&(this.stat=1,this.__animate()),this},pause:function(){return this.stat=0,this},setOption:function(a){this.option=s(this.option,a)}},i})})(vudio);var vudioExports=vudio.exports;const Vudio=getDefaultExportFromCjs(vudioExports),tickMp3=""+new URL("tick-b5f22461.mp3",import.meta.url).href,AudioItem=defineComponent({name:"video-play",props:{item:{type:Object,default:()=>({})},show:{type:Boolean,default:!1},pageVisibility:{type:String,default:""},showModel:{type:Boolean,default:!1},isEmtry:{type:Boolean,default:!1}},emits:["loadedmetadata","togglePlay","ended","reset","close"],setup(e,{emit:t}){const{item:r,isEmtry:i}=toRefs(e),s=reactive({timer:null,currentTime:0,duration:.1,loop:!1,dragStatus:!1,playState:"pause",vudio:null,afterMa3:!0}),a=ref(),n=ref(),o=ref();watch(()=>e.show,T=>{T||(n.value.pause(),s.playState="pause")}),watch(()=>e.pageVisibility,T=>{T==="hidden"&&e.show&&(n.value.pause(),s.playState="pause")});const l=()=>{n.value.paused?(f(n.value,a.value),n.value.play(),s.playState="play"):(n.value.pause(),s.playState="pause")},f=(T,d)=>{if(!s.vudio){const b=o.value.getBoundingClientRect()||{width:200,height:200};s.vudio=new Vudio(T,d,{effect:"waveform",accuracy:128,width:b.width,height:b.height,waveform:{maxHeight:160,color:[[0,"#44D1FF"],[.5,"#44D1FF"],[.5,"#198CFE"],[1,"#198CFE"]],prettify:!1}}),s.vudio.dance()}},m=()=>{s.duration=n.value.duration},C=T=>{s.currentTime=T,clearTimeout(s.timer),s.timer=setTimeout(()=>{n.value.currentTime=T,s.timer=null},60)},u=()=>{s.playState="pause"};let x=null;const S=ref(),p=ref();return nextTick(()=>{const T=o.value.getBoundingClientRect()||{width:200,height:200};x=new Vudio(p.value,S.value,{effect:"waveform",accuracy:128,width:T.width,height:T.height,waveform:{maxHeight:160,color:[[0,"#44D1FF"],[.5,"#44D1FF"],[.5,"#198CFE"],[1,"#198CFE"]],prettify:!1}}),x.dance()}),()=>createVNode("div",{class:styles$2.videoWrap},[createVNode("div",{class:styles$2.content},[createVNode("div",{ref:o,class:styles$2.contentWrap},[createVNode("canvas",{ref:a},null),createVNode("audio",{src:i.value?"":r.value.content,ref:n,loop:s.loop,onLoadedmetadata:m,onTimeupdate:()=>{s.timer&&s.playState==="pause"||s.dragStatus||(s.currentTime=n.value.currentTime)},onError:()=>{console.log("error"),n.value.pause(),s.playState="pause"},onPause:()=>{console.log("pause"),s.playState="pause"},onEnded:u,crossorigin:"anonymous",playsinline:"false"},null),s.afterMa3&&createVNode("div",{class:styles$2.tempVudio},[createVNode("audio",{ref:p,src:tickMp3},null),createVNode("canvas",{ref:S},null)])])]),createVNode("div",{class:[styles$2.controls,e.showModel?"":styles$2.hide],onClick:T=>{T.stopPropagation()},onTouchmove:T=>{t("close")}},[createVNode("div",{class:styles$2.time},[createVNode("div",null,[getSecondRPM(s.currentTime)]),createVNode("div",null,[getSecondRPM(s.duration)])]),createVNode("div",{class:[styles$2.slider]},[createVNode(Slider,{step:.01,class:styles$2.timeProgress,modelValue:s.currentTime,"onUpdate:modelValue":[T=>s.currentTime=T,T=>{C(T)}],max:s.duration,onDragStart:()=>{s.dragStatus=!0,console.log("onDragStart")},onDragEnd:()=>{s.dragStatus=!1,console.log("onDragEnd")}},null)]),createVNode("div",{class:styles$2.actions,onClick:()=>t("close")},[createVNode("div",{class:styles$2.actionBtn,onClick:()=>l()},[createVNode("img",{src:s.playState==="pause"?iconplay$1:iconpause$1},null)]),createVNode("div",{class:styles$2.actionBtn,onClick:()=>s.loop=!s.loop},[createVNode("img",{src:s.loop?iconLoopActive:iconLoop},null)])])])])}}),api_lessonCoursewareKnowledgeDetailDetail=e=>request.post("/edu-app/lessonCoursewareKnowledgeDetail/detail",{data:e}),api_classLessonCoursewareQuery=e=>request.post("/edu-app/classLessonCourseware/queryCourseware",{data:e}),videoWrap="_videoWrap_1o3d4_1",content$1="_content_1o3d4_6",contentWrap="_contentWrap_1o3d4_10",videoSection="_videoSection_1o3d4_17",controls="_controls_1o3d4_24",hide="_hide_1o3d4_36",time="_time_1o3d4_39",slider="_slider_1o3d4_47",actions="_actions_1o3d4_60",actionWrap="_actionWrap_1o3d4_68",actionBtn="_actionBtn_1o3d4_71",playIcon="_playIcon_1o3d4_86",btnPlay="_btnPlay_1o3d4_89",btnPause="_btnPause_1o3d4_92",loopBtn="_loopBtn_1o3d4_99",active="_active_1o3d4_105",styles$1={videoWrap,content:content$1,contentWrap,videoSection,controls,hide,time,slider,actions,actionWrap,actionBtn,playIcon,btnPlay,btnPause,loopBtn,active},tcplayer_min="",iconplay=""+new URL("icon-play-6bc42262.svg",import.meta.url).href,iconpause=""+new URL("icon-pause-fe805220.svg",import.meta.url).href,VideoItem=defineComponent({name:"video-play",props:{item:{type:Object,default:()=>({})},pageVisibility:{type:String,default:""},show:{type:Boolean,default:!1},showModel:{type:Boolean,default:!1},isEmtry:{type:Boolean,default:!1}},emits:["canplay","pause","togglePlay","ended","reset","close","error"],setup(e,{emit:t,expose:r}){const i="video"+Date.now()+Math.floor(Math.random()*100),s=ref(),{item:a,isEmtry:n}=toRefs(e),o=reactive({timer:null,currentTime:0,duration:0,loop:!1,playState:"pause",vudio:null,reload:!1}),l=ref();watch(()=>e.show,p=>{m("pause")}),watch(()=>e.pageVisibility,p=>{p==="hidden"&&e.show&&m("pause")});let f=null;const m=p=>{var T;clearTimeout(f),p==="play"?f=setTimeout(()=>{var d;(d=s.value)==null||d.play(),o.playState="play"},100):((T=s.value)==null||T.pause(),o.playState="pause"),t("togglePlay",o.playState)},C=()=>{s.value&&(s.value.src(a.value.content),t("reset"))},u=p=>{o.currentTime=p,clearTimeout(o.timer),o.timer=setTimeout(()=>{s.value.currentTime(p),o.timer=null},300)},x=()=>{s.value=TCPlayer(i,{appID:"",controls:!1}),s.value&&(console.log(s.value),s.value.poster(e.item.coverImg),s.value.src(a.value.content),s.value.one("loadedmetadata",p=>{console.log(" Loading metadata",p),o.reload=!1,o.duration=s.value.duration(),t("canplay",s.value)}),s.value.on("play",()=>{t("close"),t("canplay")}),s.value.on("pause",()=>{o.playState="pause",t("pause")}),s.value.on("timeupdate",()=>{o.timer||(o.currentTime=s.value.currentTime())}),s.value.on("ended",()=>{o.playState="pause"}),s.value.on("playing",()=>{o.playState="play"}),s.value.on("canplay",p=>{console.log("canplay"),o.duration=s.value.duration(),t("canplay")}),s.value.on("error",p=>{t("error"),console.log(p,"error")}))};return watch(()=>e.item,(p,T)=>{s.value.currentTime(0),s.value.poster(e.item.coverImg),s.value.src(a.value.content),o.playState="pause"}),onMounted(()=>{x()}),r({onPlay:C,pause:()=>{s.value.pause()}}),()=>createVNode("div",{class:styles$1.videoWrap},[createVNode("div",{class:styles$1.content},[createVNode("div",{ref:l,class:styles$1.contentWrap},[createVNode("video",{style:{width:"100%",height:"100%"},id:i,preload:"auto",playsinline:!0,"webkit-playsinline":!0,"x5-video-player-type":"h5"},null)]),createVNode("div",{class:styles$1.videoSection},null)]),createVNode("div",{class:[styles$1.controls,e.showModel?"":styles$1.hide],onClick:p=>{p.stopPropagation(),!s.value.paused()&&t("close")},onTouchmove:p=>{s.value.paused()||t("close")}},[createVNode("div",{class:styles$1.time},[createVNode("div",null,[getSecondRPM(o.currentTime)]),createVNode("div",null,[getSecondRPM(o.duration)])]),createVNode("div",{class:styles$1.slider},[createVNode(NSlider,{tooltip:!1,step:.01,class:styles$1.timeProgress,value:o.currentTime,max:o.duration,"onUpdate:value":p=>u(p)},null)]),createVNode("div",{class:styles$1.actions},[createVNode("div",{class:styles$1.actionBtn,onClick:()=>m(o.playState==="pause"?"play":"pause")},[createVNode("img",{src:o.playState==="pause"?iconplay:iconpause},null)]),createVNode("div",{class:styles$1.actionBtn,onClick:()=>{o.loop=!o.loop,s.value.loop(o.loop)}},[createVNode("img",{src:o.loop?iconLoopActive:iconLoop},null)])])])])}}),container="_container_1l0gk_1",pointHead="_pointHead_1l0gk_12",content="_content_1l0gk_24",collapse="_collapse_1l0gk_34",collapseItem="_collapseItem_1l0gk_34",item="_item_1l0gk_49",arrow="_arrow_1l0gk_58",itemImage="_itemImage_1l0gk_63",activeItem="_activeItem_1l0gk_68",itemActive="_itemActive_1l0gk_76",styles={container,pointHead,content,collapse,collapseItem,item,arrow,itemImage,activeItem,itemActive},iconMenuChapter=""+new URL("icon-menu-chapter-bd664df8.svg",import.meta.url).href,chapterDown=""+new URL("chapter-down-arrow-ed70546b.svg",import.meta.url).href,chapterDefault=""+new URL("chapter-default-arrow-a8515aa3.svg",import.meta.url).href,chapterVideo=""+new URL("chapter-video-91c7709a.svg",import.meta.url).href;function _isSlot(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode(e)}const Chapter=defineComponent({name:"chapter",props:{detail:{type:Object,default:()=>[]},itemActive:{type:String,default:""},active:{type:String,default:""}},emits:["handleSelect"],setup(e,{emit:t}){const{detail:r,itemActive:i,active:s}=toRefs(e),a=reactive({active:s.value});return watch(()=>e.itemActive,()=>{a.active=s.value}),()=>{let n;return createVNode("div",{class:styles.container},[createVNode("div",{class:styles.pointHead},[createVNode("img",{src:iconMenuChapter},null),createTextVNode("切换章节")]),createVNode("div",{class:styles.content},[createVNode(Collapse,{class:styles.collapse,modelValue:a.active,"onUpdate:modelValue":o=>{a.active=o},border:!1,accordion:!0},_isSlot(n=r.value.map(o=>createVNode(CollapseItem,{center:!0,class:[styles.collapseItem,a.active===o.id?styles.activeItem:""],border:!1,isLink:!1,title:o.name,titleClass:"van-ellipsis",titleStyle:{width:"80%"},name:o.id},{default:()=>createVNode(Fragment,null,[o.knowledgeList.map(l=>createVNode("div",{class:[styles.item,i.value==l.id?styles.itemActive:""],onClick:()=>{var m,C,u,x;if(i.value==l.id)return;if(!l.containMaterial){showToast("该章节暂无课件");return}t("handleSelect",{itemActive:l.id,itemName:l.name,tabActive:o.id,tabName:o.name});const f="lastTime"+((x=(u=(C=(m=state)==null?void 0:m.user)==null?void 0:C.data)==null?void 0:u.phone)!=null?x:"");localStorage.setItem(f,l.id)}},[createVNode(Image$1,{src:chapterVideo,class:styles.itemImage},null),createVNode("span",{style:{width:"80%"},class:"van-ellipsis"},[l.name])]))]),icon:()=>createVNode("img",{class:styles.arrow,src:a.active===o.id?chapterDown:chapterDefault},null)})))?n:{default:()=>[n]})])])}}}),index=defineComponent({name:"CoursewarePlay",setup(){var $,R,_,F;const e=usePageVisibility(),t="lastTime"+((F=(_=(R=($=state)==null?void 0:$.user)==null?void 0:R.data)==null?void 0:_.phone)!=null?F:""),r=reactive({width:"100vw"}),i=()=>{let y=Math.min(screen.width,screen.height),P=Math.max(screen.width,screen.height),V=y*(16/9);if(V>P){r.width="100vw";return}else r.width=V+"px"},s=(y=0)=>{i(),postMessage({api:"setStatusBarVisibility",content:{isVisibility:y}}),postMessage({api:"keepScreenLongLight",content:{isOpenLight:!!y}})};s(),onUnmounted(()=>{s(1),window.removeEventListener("message",u)});const a=async()=>{var y,P;try{if(n.query.tab=="course"){const V=await api_classLessonCoursewareDetail({id:m.courseId,subjectId:m.subjectId});(V==null?void 0:V.code)==200&&Array.isArray((y=V==null?void 0:V.data)==null?void 0:y.lessonList)&&(f.courseDetails=V.data.lessonList||[],console.log("🚀 ~ data.details course:",f.courseDetails))}else{const V=await api_lessonCoursewareDetail({id:n.query.lessonCoursewareId,subjectId:m.subjectId});(V==null?void 0:V.code)==200&&Array.isArray((P=V==null?void 0:V.data)==null?void 0:P.lessonList)&&(f.courseDetails=V.data.lessonList||[])}console.log(f.courseDetails,"data.courseDetails")}catch(V){}},n=useRoute(),o=ref(),l=ref(!1),f=reactive({knowledgePointList:[],courseDetails:[],itemList:[],videoRefs:{},videoState:"init",videoItemRef:null,animationState:"start"}),m=reactive({isAutoPlay:!0,subjectId:n.query.subjectId,lessonCoursewareId:n.query.lessonCoursewareId,lessonCoursewareDetailId:n.query.lessonCoursewareDetailId,coursewareDetailKnowledgeId:n.query.id,courseId:n.query.courseId,nowTime:0,model:!0,isAnimation:!0,videoBtns:!0,currentTime:0,duration:0,timer:null,item:null}),C=async()=>{let y=[];if(n.query.tab=="course"){const P=await api_classLessonCoursewareQuery({coursewareDetailKnowledgeId:m.coursewareDetailKnowledgeId,subjectId:m.subjectId,page:1,rows:-1});(P==null?void 0:P.code)===200&&Array.isArray(P.data.rows)&&(P.data.rows||[]).forEach(D=>{y.push({content:D.content,coverImg:D.coverImg,id:D.id,materialId:D.materialId,name:D.materialName,relOrder:0,sourceFrom:D.source,type:D.materialType})})}else{const P=await api_lessonCoursewareKnowledgeDetailDetail({lessonCoursewareKnowledgeDetailId:m.coursewareDetailKnowledgeId,subjectId:m.subjectId});(P==null?void 0:P.code)===200&&Array.isArray(P.data)&&(y=P.data||[])}y.length>0&&(f.knowledgePointList=y.map(P=>({...P,url:P.type==="SONG"?"https://oss.dayaedu.com/ktqy/1698420034679a22d3f7a.png":P.type==="PPT"?"https://oss.dayaedu.com/ktqy/12/1701931810284.png":P.coverImg}))),f.itemList=f.knowledgePointList.map((P,V)=>(p.itemActive||(p.itemActive=P.id,p.itemName=P.name),{...P,iframeRef:null,videoEle:null,autoPlay:!1,isprepare:!1,isRender:!1})),setTimeout(()=>{f.animationState="end"},500)},u=y=>{var P,V;((P=y.data)==null?void 0:P.api)==="headerTogge"&&(m.model=y.data.show||y.data.playState!="play"),((V=y.data)==null?void 0:V.api)==="api_fingerPreView"&&(clearInterval(m.timer),m.model=!y.data.state)};onMounted(()=>{postMessage({api:"courseLoading",content:{show:!1,type:"fullscreen"}}),C(),a(),window.addEventListener("message",u)});const x=ref(),S=()=>{var y;try{(y=x.value)==null||y.handleOut()}catch(P){}postMessage({api:"goBack"})},p=reactive({open:!1,activeIndex:0,itemActive:"",itemName:"",itemPointName:n.query.name,chapterOpen:!1}),T=y=>{const P=f.itemList.findIndex(V=>V.id==y);P>-1&&k(P)},d=()=>{clearTimeout(m.timer),closeToast(),m.model=!m.model,m.timer=setTimeout(()=>{m.model=!1},4e3)},b=()=>{clearTimeout(m.timer),closeToast(),m.model=!0,m.timer=setTimeout(()=>{m.model=!1},4e3)},g=y=>{y&&["VIDEO"].includes(y.type)&&console.log("双击")},A=ref(3),E=[{prev:{transform:"translate3d(0, 0, -800px) rotateX(180deg)"},next:{transform:"translate3d(0, 0, -800px) rotateX(-180deg)"}},{prev:{transform:"translate3d(-100%, 0, -800px)"},next:{transform:"translate3d(100%, 0, -800px)"}},{prev:{transform:"translate3d(-50%, 0, -800px) rotateY(80deg)"},next:{transform:"translate3d(50%, 0, -800px) rotateY(-80deg)"}},{prev:{transform:"translate3d(-100%, 0, -800px) rotateY(-120deg)",opacity:0},next:{transform:"translate3d(100%, 0, -800px) rotateY(120deg)",opacity:0}},{prev:{transform:"translate3d(-50%, 50%, -800px) rotateZ(-14deg)",opacity:0},next:{transform:"translate3d(50%, 50%, -800px) rotateZ(14deg)",opacity:0}},{prev:{transform:"translateZ(-800px) rotate3d(0, -1, 0, 90deg)",opacity:0},next:{transform:"translateZ(-800px) rotate3d(0, 1, 0, 90deg)",opacity:0},current:{transitionDelay:"700ms"}}],M=()=>{f.videoItemRef.pause()},I=ref(),k=y=>{var V;if(p.activeIndex==y)return;f.animationState="start",f.videoState="init",M(),clearTimeout(I.value),m.model=!0;const P=f.itemList[y];p.activeIndex=y,p.itemActive=P.id,p.itemName=P.name,P.type=="MUSIC"?m.model=!0:P.type=="VIDEO"&&(P.error&&((V=f.videoRefs[y])==null||V.onPlay()),setTimeout(()=>{f.animationState="end"},800))},L=async y=>{var P,V,D,z,X,K,U,J,se,ce,ue,pe;if(y==="up"){if(p.activeIndex>0){k(p.activeIndex-1);return}let ie=f.courseDetails.findIndex(ee=>ee.id==m.lessonCoursewareDetailId);const te=((P=f.courseDetails[ie])==null?void 0:P.knowledgeList)||[];let Y=te.findIndex(ee=>ee.id==m.coursewareDetailKnowledgeId),q=!1,le="",ae="",he="";for(;Y>=0&&(Y--,Y>=0&&te[Y].containMaterial&&(q=!0,le=te[Y].lessonCoursewareDetailId,ae=te[Y].id,he=te[Y].name),!q););if(q){l.value=!0,m.coursewareDetailKnowledgeId=ae,m.lessonCoursewareDetailId=le,await C(),p.activeIndex=f.itemList.length-1||0,p.itemActive=((V=f.knowledgePointList[f.itemList.length-1])==null?void 0:V.id)||((D=f.knowledgePointList[0])==null?void 0:D.id),p.itemPointName=he,p.itemName=((z=f.knowledgePointList[f.itemList.length-1])==null?void 0:z.name)||((X=f.knowledgePointList[0])==null?void 0:X.name),localStorage.setItem(t,ae),p.chapterOpen=!1,l.value=!1;return}let ne=!1;for(;ie>=0;){ie--;const ee=((K=f.courseDetails[ie])==null?void 0:K.knowledgeList)||[];let re=ee.length;for(;re>0&&(ee[re-1].containMaterial&&(ne=!0,le=ee[re-1].lessonCoursewareDetailId,ae=ee[re-1].id,he=ee[re-1].name),re--,!ne););if(ne)break}if(ne){l.value=!0,m.coursewareDetailKnowledgeId=ae,m.lessonCoursewareDetailId=le,await C(),p.activeIndex=f.itemList.length-1||0,p.itemActive=((U=f.knowledgePointList[f.itemList.length-1])==null?void 0:U.id)||((J=f.knowledgePointList[0])==null?void 0:J.id),localStorage.setItem(t,ae),p.itemPointName=he,p.itemName=((se=f.knowledgePointList[f.itemList.length-1])==null?void 0:se.name)||((ce=f.knowledgePointList[0])==null?void 0:ce.name),p.chapterOpen=!1,l.value=!1;return}}else{if(p.activeIndexee.id==m.lessonCoursewareDetailId);const te=((ue=f.courseDetails[ie])==null?void 0:ue.knowledgeList)||[];let Y=te.findIndex(ee=>ee.id==m.coursewareDetailKnowledgeId),q=!1,le="",ae="",he="";for(;Y=0&&te[Y].containMaterial&&(q=!0,le=te[Y].lessonCoursewareDetailId,ae=te[Y].id,he=te[Y].name),!q););if(q){l.value=!0,m.coursewareDetailKnowledgeId=ae,m.lessonCoursewareDetailId=le,await C(),p.activeIndex=0,p.itemActive=f.knowledgePointList[0].id,p.itemName=f.knowledgePointList[0].name,localStorage.setItem(t,ae),p.itemPointName=he,p.chapterOpen=!1,l.value=!1;return}let ne=!1;for(;ie<=f.courseDetails.length-1;){ie++;const ee=((pe=f.courseDetails[ie])==null?void 0:pe.knowledgeList)||[];let re=0;for(;re<=ee.length-1&&(ee[re].containMaterial&&(ne=!0,le=ee[re].lessonCoursewareDetailId,ae=ee[re].id,he=ee[re].name),re++,!ne););if(ne)break}if(ne){l.value=!0,m.coursewareDetailKnowledgeId=ae,m.lessonCoursewareDetailId=le,await C(),p.activeIndex=0,p.itemActive=f.knowledgePointList[0].id,localStorage.setItem(t,ae),p.itemName=f.knowledgePointList[0].name,p.itemPointName=he,p.chapterOpen=!1,l.value=!1;return}}},j=()=>{},G=computed(()=>{var X,K;if(p.activeIndex>0)return!0;let y=f.courseDetails.findIndex(U=>U.id==m.lessonCoursewareDetailId);const P=((X=f.courseDetails[y])==null?void 0:X.knowledgeList)||[];let V=P.findIndex(U=>U.id==m.coursewareDetailKnowledgeId);if(y<=0&&V<=0)return!1;let D=!1;for(;V>=0;)V--,V>=0&&P[V].containMaterial&&(D=!0);if(D)return!0;if(y<=0)return!1;let z=!1;for(;y>=0;){y--;const U=((K=f.courseDetails[y])==null?void 0:K.knowledgeList)||[];let J=U.length;for(;J>0;)U[J-1].containMaterial&&(z=!0),J--;if(z)return!0}return!1}),B=computed(()=>{var X,K;if(p.activeIndexU.id==m.lessonCoursewareDetailId);const P=((X=f.courseDetails[y])==null?void 0:X.knowledgeList)||[];let V=P.findIndex(U=>U.id==m.coursewareDetailKnowledgeId);if(y>=f.courseDetails.length-1&&V>=P.length-1)return!1;let D=!1;for(;V=0&&P[V].containMaterial&&(D=!0);if(D)return!0;if(y>=f.courseDetails.length-1)return!1;let z=!1;for(;y{const y=f.itemList[p.activeIndex];return y&&y.type&&y.type.toLocaleUpperCase()==="VIDEO"?y:{}});return()=>createVNode("div",{id:"playContent",class:styles$5.playContent},[createVNode("div",{class:styles$5.coursewarePlay,style:{width:r.width},onClick:()=>d()},[!l.value&&createVNode("div",{class:styles$5.wraps},[createVNode("div",{style:H.value.type&&f.animationState==="end"&&f.videoState==="play"?{zIndex:15,opacity:1}:{opacity:0,zIndex:-1},class:styles$5.itemDiv},[createVNode(VideoItem,{ref:y=>f.videoItemRef=y,item:H.value,showModel:m.model,onClose:b,onCanplay:()=>{f.videoState="play"},onPause:()=>{clearTimeout(m.timer),m.model=!0},onEnded:()=>{}},null)]),f.itemList.map((y,P)=>{const V=y.isRender||Math.abs(p.activeIndex-P)<2,D=Math.abs(p.activeIndex-P)>4;return V&&(y.isRender=!0),V?createVNode("div",{key:"index"+P,class:[styles$5.itemDiv,p.activeIndex===P&&styles$5.itemActive,m.isAnimation&&styles$5.acitveAnimation,Math.abs(p.activeIndex-P)<2?styles$5.show:styles$5.hide],style:Pp.activeIndex?E[A.value].next:{},onClick:z=>{if(Date.now()-m.nowTime<300){g(y);return}m.nowTime=Date.now()}},[y.type==="IMG"&&createVNode("img",{src:y.content},null),y.type==="PPT"&&createVNode("iframe",{src:`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(y.content)}`,width:"100%",height:"100%",frameborder:"1"},null),y.type==="VIDEO"&&createVNode("img",{src:y.coverImg,onLoad:()=>{y.isprepare=!0}},null),y.type==="SONG"&&createVNode(AudioItem,{item:y,show:p.activeIndex===P,pageVisibility:e.value,showModel:m.model,isEmtry:D,onEnded:()=>{const z=p.activeIndex+1;z{clearTimeout(m.timer),m.timer=setTimeout(()=>{m.model=!1},4e3)}},null),y.type==="MUSIC"&&createVNode(MusicScore,{pageVisibility:e.value,show:p.activeIndex===P,activeModel:m.model,"data-vid":y.id,music:y},null),y.type==="VIDEO"&&createVNode(Transition,{name:"van-fade"},{default:()=>[f.videoState!=="play"&&createVNode("div",{class:styles$5.loadWrap},[createVNode(Vue3Lottie,{style:{width:"100%",height:"100%"},animationData:playLoadData},null)])]})]):createVNode("div",{key:"index"+P,class:[styles$5.itemDiv,p.activeIndex===P&&styles$5.itemActive,m.isAnimation&&styles$5.acitveAnimation,Math.abs(p.activeIndex-P)<2?styles$5.show:styles$5.hide],style:Pp.activeIndex?E[A.value].next:{}},null)})]),createVNode(Transition,{name:"right"},{default:()=>[m.model&&createVNode("div",{class:styles$5.rightFixedBtns,onClick:y=>{y.stopPropagation(),clearTimeout(m.timer)}},[createVNode("div",{class:[styles$5.fullBtn,styles$5.point],onClick:()=>p.chapterOpen=!0},[createVNode("img",{src:iconChange},null),createVNode("span",null,[createTextVNode("切换")])]),createVNode("div",{class:[styles$5.fullBtn,styles$5.point],onClick:()=>p.open=!0},[createVNode("img",{src:iconMenu},null),createVNode("span",null,[createTextVNode("课件")])]),createVNode("div",{class:[styles$5.fullBtn,!G.value&&styles$5.btnsDisabled],onClick:()=>L("up")},[createVNode("img",{src:iconUp},null),createVNode("span",{style:{textAlign:"center"}},[createTextVNode("上一个")])]),createVNode("div",{class:[styles$5.fullBtn,!B.value&&styles$5.btnsDisabled],onClick:()=>L("down")},[createVNode("span",{style:{textAlign:"center"}},[createTextVNode("下一个")]),createVNode("img",{src:iconDown},null)])])]})]),createVNode("div",{style:{transform:m.model?"":"translateY(-100%)"},class:styles$5.headerContainer,ref:o},[createVNode("div",{class:styles$5.backBtn,onClick:()=>S()},[createVNode(Icon,{name:iconBack},null),createTextVNode("返回")]),createVNode("div",{class:styles$5.menu},[p.itemName])]),createVNode(Popup,{class:styles$5.popup,style:{background:"rgba(0,0,0, 0.75)"},overlayClass:styles$5.overlayClass,position:"right",round:!0,show:p.open,"onUpdate:show":y=>p.open=y,onClose:j},{default:()=>[createVNode(Points,{data:f.knowledgePointList,itemActive:p.itemActive,itemName:p.itemPointName,onHandleSelect:y=>{p.open=!1,T(y.itemActive)}},null)]}),createVNode(Popup,{class:styles$5.popup,style:{background:"rgba(0,0,0, 0.75)"},overlayClass:styles$5.overlayClass,position:"right",round:!0,show:p.chapterOpen,"onUpdate:show":y=>p.chapterOpen=y,onClose:j},{default:()=>[createVNode(Chapter,{detail:f.courseDetails,itemActive:m.coursewareDetailKnowledgeId,active:m.lessonCoursewareDetailId,onHandleSelect:async y=>{l.value=!0,m.coursewareDetailKnowledgeId=y.itemActive,m.lessonCoursewareDetailId=y.tabActive,await C(),p.activeIndex=0,p.itemActive=f.knowledgePointList[0].id,p.itemName=f.knowledgePointList[0].name,p.itemPointName=y.itemName,p.chapterOpen=!1,l.value=!1}},null)]})])}});export{index as default};