1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- (function(){System.register(["./index-legacy-40373f6b.js","./contants-legacy-64469168.js","./Slider-legacy-7702236f.js","./isCollaose-legacy-e984283d.js","./index-legacy-e6b7bc7d.js","./api-legacy-8a6c719a.js","./urlUtils-legacy-b652a21b.js","./ding-legacy-f3656c17.js","./state-legacy-edffeb23.js"],(function(exports,module){"use strict";var openBlock,createElementBlock,createBaseVNode,normalizeClass,defineComponent,ref$1,useRoute,onMounted,nextTick,onUnmounted,watch,createVNode,createTextVNode,NInputNumber,NSpace,NButton,NImage,getSecond,dayjs,mergeProps,Fragment,useUserStore,NSkeleton,commonjsGlobal,getDefaultExportFromCjs,computed,normalizeStyle,toRefs,reactive,toRef,px2vw,eventGlobal,withDirectives,vModelText,useMessage,Transition,NTooltip,NDrawer,NDrawerContent,NModal,NPopover,isVNode,TCPlayer,iconplay,iconpause,iconReplay$2,tickMp3,Vudio,NScrollbar,NSlider,lessonCoursewareDetail,lessonPreTrainingPage,CardType,queryCourseware,courseScheduleUpdate,TrainSettings,getImage,styles$8,getGuidance,setGuidance,vaildUrl,dingPng$1,moveTop,state;return{setters:[t=>{openBlock=t.b9,createElementBlock=t.ai,createBaseVNode=t.aj,normalizeClass=t.aZ,defineComponent=t.d,ref$1=t.r,useRoute=t.a,onMounted=t.n,nextTick=t.E,onUnmounted=t.L,watch=t.y,createVNode=t.f,createTextVNode=t.k,NInputNumber=t.dl,NSpace=t.w,NButton=t.j,NImage=t.t,getSecond=t.dm,dayjs=t.V,mergeProps=t.x,Fragment=t.F,useUserStore=t.c,NSkeleton=t.dn,commonjsGlobal=t.c4,getDefaultExportFromCjs=t.c5,computed=t.ae,normalizeStyle=t.a$,toRefs=t.bC,reactive=t.e,toRef=t.bB,px2vw=t.O,eventGlobal=t.Q,withDirectives=t.S,vModelText=t.U,useMessage=t.b,Transition=t.T,NTooltip=t.J,NDrawer=t.dp,NDrawerContent=t.dq,NModal=t.v,NPopover=t.I,isVNode=t.aV},t=>{TCPlayer=t.T,iconplay=t.b,iconpause=t.c,iconReplay$2=t.d,tickMp3=t.f,Vudio=t.V,NScrollbar=t.N},t=>{NSlider=t.N},t=>{lessonCoursewareDetail=t.c,lessonPreTrainingPage=t.h,CardType=t.C,queryCourseware=t.q,courseScheduleUpdate=t.u},t=>{TrainSettings=t.a},t=>{getImage=t.g,styles$8=t.s,getGuidance=t.a,setGuidance=t.b},t=>{vaildUrl=t.v},t=>{dingPng$1=t.d,moveTop=t.m},t=>{state=t.s}],execute:function(){var __vite_style__=document.createElement("style");function prefixNames(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.map((function(e){return e.split(" ").map((function(e){return e?""+t+e:""})).join(" ")})).join(" ")}function prefixCSS(t,e){return e.replace(/([^}{]*){/gm,(function(e,r){return r.replace(/\.([^{,\s\d.]+)/g,"."+t+"$1")+"{"}))}function ref(t,e){return function(r){r&&(t[e]=r)}}function refs(t,e,r){return function(i){i&&(t[e][r]=i)}}function Properties(t,e){return function(r){var i=r.prototype;t.forEach((function(t){e(i,t)}))}}function withMethods(t,e){return void 0===e&&(e={}),function(r,i){t.forEach((function(t){var n=e[t]||t;n in r||(r[n]=function(){for(var e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=(e=this[i])[t].apply(e,r);return a===this[i]?this:a})}))}}__vite_style__.textContent='@charset "UTF-8";._timerWrap_1ilvi_1{background-color:#fff;display:flex;flex-direction:column;align-items:center;border-radius:0 0 .83333333vw .83333333vw}._timerWrap_1ilvi_1 ._timerTop_1ilvi_8{width:14.375vw;height:2.13541667vw;background:#F5F6FA;border-radius:.41666667vw;margin-top:1.25vw;display:flex;flex-direction:row;align-items:center;margin-bottom:1.25vw}._timerWrap_1ilvi_1 ._timerTop_1ilvi_8 ._timerTopPane_1ilvi_19{width:50%;text-align:center;line-height:2.13541667vw;cursor:pointer}._timerWrap_1ilvi_1 ._timerTop_1ilvi_8 ._timerTopPaneActive_1ilvi_25{background:#198CFE;border-radius:.41666667vw;color:#fff}._timerItemInfo_1ilvi_30{width:36.04166667vw;background:#A6D1FF;box-shadow:0 .46875vw #cbd6df;border-radius:2.39583333vw;border:.67708333vw solid #EEF7FF;padding:.52083333vw}._timerItemInfo_1ilvi_30 ._timerItemInset_1ilvi_38{min-height:17.65625vw;border-radius:1.45833333vw 1.45833333vw 1.97916667vw 1.97916667vw;background:#D8ECFE}._timerItemInfo_1ilvi_30 ._timerItemInfoTop_1ilvi_43{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:center}._timerItemInfo_1ilvi_30 ._timerItemInfoTop_1ilvi_43 ._dot_1ilvi_50{width:.52083333vw;height:.52083333vw;background:#131415;border-radius:1.45833333vw;margin-bottom:.78125vw;margin:.36458333vw 3.64583333vw}._timerItemInfo_1ilvi_30 ._timerItemInfoTop_1ilvi_43 ._dotTop_1ilvi_58{width:.52083333vw;height:3.85416667vw}._timerItemInfo_1ilvi_30 ._timerItemInfoTop_1ilvi_43 ._timerItemTopCore_1ilvi_62{display:flex;flex-direction:column;align-items:center;justify-content:center}._timerItemInfo_1ilvi_30 ._timerItemInfoTop_1ilvi_43 ._timerItemTopCore_1ilvi_62 h4{font-size:1.14583333rem;font-weight:600;color:#7caee1;line-height:3.64583333vw}._nowTimerWrap_1ilvi_74{margin:1.82291667vw 0 1.35416667vw;width:9.0625vw;line-height:2.34375vw;height:2.34375vw;width:100%;text-align:center;font-size:1.25rem;font-weight:400;color:rgba(19,20,21,.5);line-height:1.71875vw}._btnGroupModal_1ilvi_86{padding:2.08333333vw 0 1.66666667vw}._btnGroupModal_1ilvi_86 .n-button{height:2.44791667vw;min-width:8.125vw}._palyIcon_1ilvi_93{width:.57291667vw;height:.72916667vw}._playText_1ilvi_97{margin-left:.52083333vw}._countInput_1ilvi_100{margin:0 .83333333vw}._countInput_1ilvi_100 .n-input__border,._countInput_1ilvi_100 .n-input__state-border{display:none}._countInput_1ilvi_100 .n-input{width:3.4375vw;height:1.71875vw;border-radius:.88541667vw;overflow:hidden}._countInput_1ilvi_100 .n-input .n-input-wrapper{text-align:center;background:#F5F6FA;padding:0}._dotBtm_1ilvi_120{width:100%;height:1.71875vw}._chioseWrap_1ilvi_124{margin:1.82291667vw 0 1.35416667vw;line-height:2.34375vw;height:2.34375vw;background:linear-gradient(180deg,#FFFFFF 0%,#FFFFFF 100%);box-shadow:.10416667vw .10416667vw #a2caee;border-radius:1.19791667vw;display:flex;flex-direction:row;align-items:center;justify-content:center}._chioseWrap_1ilvi_124 .n-input__input,._chioseWrap_1ilvi_124 .n-input__input-el{line-height:1.71875vw!important;height:1.71875vw!important}._chioseWrap_1ilvi_124 ._add_1ilvi_144{width:.83333333vw;height:.83333333vw;cursor:pointer}._chioseWrap_1ilvi_124 ._minus_1ilvi_149{width:.83333333vw;height:.20833333vw;cursor:pointer}._chioseHidden_1ilvi_154{visibility:hidden}._numberWrap_1ilvi_157{border-radius:.83333333vw;overflow:hidden;background-color:#fff;box-shadow:.20833333vw .20833333vw #a2caee;align-items:center;display:flex;flex-direction:row}.M-Flipper{display:inline-block;position:relative;width:3.90625vw;height:7.8125vw;line-height:7.8125vw;background:#fff;font-size:6.66666667rem;color:#131415;text-align:center;font-family:DINA}.M-Flipper:nth-of-type(2n){text-align:left;margin-left:.26041667vw}.M-Flipper:nth-of-type(odd){text-align:right;margin-right:.26041667vw}.M-Flipper .digital:before,.M-Flipper .digital:after{content:"";position:absolute;left:0;right:0;background:#fff;overflow:hidden;box-sizing:border-box}.M-Flipper .digital:before{top:0;bottom:50%;border-radius:.52083333vw .52083333vw 0 0;border-bottom:solid .10416667vw #fff}.M-Flipper .digital:after{top:50%;bottom:0;border-radius:0 0 .52083333vw .52083333vw;line-height:0}.M-Flipper.down .front:before{z-index:3}.M-Flipper.down .back:after{z-index:2;transform-origin:50% 0%;transform:perspective(15.625vw) rotateX(180deg)}.M-Flipper.down .front:after,.M-Flipper.down .back:before{z-index:1}.M-Flipper.down.go .front:before{transform-origin:50% 100%;animation:frontFlipDown .6s ease-in-out both;box-shadow:0 -.10416667vw .3125vw rgba(255,255,255,.3);backface-visibility:hidden}.M-Flipper.down.go .back:after{animation:backFlipDown .6s ease-in-out both}.M-Flipper.up .front:after{z-index:3}.M-Flipper.up .back:before{z-index:2;transform-origin:50% 100%;transform:perspective(15.625vw) rotateX(-180deg)}.M-Flipper.up .front:before,.M-Flipper.up .back:after{z-index:1}.M-Flipper.up.go .front:after{transform-origin:50% 0;animation:frontFlipUp .6s ease-in-out both;box-shadow:0 .10416667vw .3125vw rgba(255,255,255,.3);backface-visibility:hidden}.M-Flipper.up.go .back:before{animation:backFlipUp .6s ease-in-out both}@keyframes frontFlipDown{0%{transform:perspective(300px) rotateX(0)}to{transform:perspective(300px) rotateX(-180deg)}}@keyframes backFlipDown{0%{transform:perspective(300px) rotateX(180deg)}to{transform:perspective(300px) rotateX(0)}}@keyframes frontFlipUp{0%{transform:perspective(300px) rotateX(0)}to{transform:perspective(300px) rotateX(180deg)}}@keyframes backFlipUp{0%{transform:perspective(300px) rotateX(-180deg)}to{transform:perspective(300px) rotateX(0)}}.M-Flipper .number0:before,.M-Flipper .number0:after{content:"0"}.M-Flipper .number1:before,.M-Flipper .number1:after{content:"1"}.M-Flipper .number2:before,.M-Flipper .number2:after{content:"2"}.M-Flipper .number3:before,.M-Flipper .number3:after{content:"3"}.M-Flipper .number4:before,.M-Flipper .number4:after{content:"4"}.M-Flipper .number5:before,.M-Flipper .number5:after{content:"5"}.M-Flipper .number6:before,.M-Flipper .number6:after{content:"6"}.M-Flipper .number7:before,.M-Flipper .number7:after{content:"7"}.M-Flipper .number8:before,.M-Flipper .number8:after{content:"8"}.M-Flipper .number9:before,.M-Flipper .number9:after{content:"9"}._downMove_137wx_1{width:18.38541667vw;background:#FFFFFF;border-radius:.83333333vw;position:relative;padding:0 1.5625vw 1.82291667vw;text-align:center}._downMove_137wx_1 ._downMoveBg_137wx_9{position:absolute;top:0;left:0;width:18.38541667vw;height:5.26041667vw}._downMove_137wx_1 ._dingPng_137wx_16{width:8.4375vw;height:5.10416667vw;position:absolute;left:50%;margin-left:-4.21875vw;top:-2.55208333vw;z-index:100}._downMove_137wx_1 ._closeAble_137wx_25{cursor:pointer;width:1.30208333vw;height:1.30208333vw;position:absolute;top:.9375vw;right:1.04166667vw}._downMove_137wx_1 h2{position:relative;padding-top:3.33333333vw;height:1.71875vw;font-size:1.25rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#131415;line-height:1.71875vw;text-align:center;margin-bottom:.78125vw}._downMove_137wx_1 p{padding-top:1.66666667vw;font-size:.9375rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#777;line-height:1.5625vw}._downMove_137wx_1 ._submitAppBtn_137wx_53{width:13.38541667vw;height:2.34375vw;line-height:2.34375vw;background:linear-gradient(305deg,#40C8FF 0%,#3192FF 100%);border-radius:1.25vw;border:none}._downMove_137wx_1 ._submitAppBtn_137wx_53 .n-button__border,._downMove_137wx_1 ._submitAppBtn_137wx_53 .n-button__state-border{display:none}._playContent_bvkpz_1{position:relative;width:100vw;height:100vh;background-color:#000;overflow:hidden;--plyr-color-main: var(--van-primary);--plyr-range-track-height: .15625vw}._assignHomeworkClose_bvkpz_10{position:absolute;top:2.08333333vw;left:2.08333333vw;width:3.125vw;height:3.38541667vw;cursor:pointer;transition:all .5s}._assignHomeworkClose_bvkpz_10 img{width:100%;height:100%}._assignHomework_bvkpz_10{position:absolute;top:2.08333333vw;left:2.08333333vw;width:9.73958333vw;height:3.38541667vw;cursor:pointer;transition:all .5s}._assignHomework_bvkpz_10._isClose_bvkpz_32{left:6.45833333vw}._assignHomework_bvkpz_10 img{width:100%;height:100%}._sectionAnimateUp_bvkpz_39{opacity:0;pointer-events:none;transform:translateY(-100%);transition:all .5s}._coursewarePlay_bvkpz_45{position:relative;height:100vh;margin:0 auto;overflow:hidden}._playModel_bvkpz_51{position:absolute;left:0;top:0;right:0;bottom:0;box-shadow:inset 0 0 8.54166667vw #000;pointer-events:none}._headerContainer_bvkpz_60{position:fixed;top:0;left:0;right:0;z-index:10;display:flex;align-items:center;justify-content:space-between;height:2.60416667vw;background:linear-gradient(180deg,rgba(0,0,0,.5) 0%,rgba(0,0,0,0) 100%);transition:transform .5s;box-sizing:border-box;font-size:1.25rem;pointer-events:none}._headerContainer_bvkpz_60 div{box-sizing:border-box}._backBtn_bvkpz_79{color:#fff;height:100%;display:flex;justify-content:space-between;align-items:center;z-index:10;padding:0 .78125vw}._backBtn_bvkpz_79 .van-icon{margin-right:.41666667vw}._headRight_bvkpz_91{position:relative;z-index:10;display:flex;align-items:center;margin-left:auto;height:100%;padding-right:.78125vw}._headRight_bvkpz_91 ._rightBtn_bvkpz_100{display:flex;justify-content:center;align-items:center;height:100%;padding:0 .52083333vw}._headRight_bvkpz_91 ._rightBtn_bvkpz_100 img{width:1.14583333vw;height:1.14583333vw;display:block}._menu_bvkpz_112{position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center;font-size:.88541667rem;font-weight:700;color:#fff}._tabsContent_bvkpz_123{width:100vw;height:100vh}._tabsContent_bvkpz_123 .van-tabs__wrap{display:none!important}._tabsContent_bvkpz_123 .van-tabs__content{width:100%;height:100%}._wraps_bvkpz_134{width:100%;height:100%;transform-style:preserve-3d;perspective:32rem;transition-timing-function:initial}._itemDiv_bvkpz_141{position:absolute;left:0;top:0;width:100%;height:100%;background-color:#000;transform-style:preserve-3d;transition-property:transform,opacity,height;backface-visibility:hidden;overflow:hidden;z-index:1}._itemDiv_bvkpz_141._itemActive_bvkpz_154{z-index:10}._itemDiv_bvkpz_141._acitveAnimation_bvkpz_157{transition-duration:.8s}._itemDiv_bvkpz_141._show_bvkpz_160{display:block}._itemDiv_bvkpz_141._hide_bvkpz_163{display:none}._itemDiv_bvkpz_141 video{width:100%;height:100%}._itemDiv_bvkpz_141 img{display:block;width:100%;height:100%;object-fit:contain}._rightFixedBtns_bvkpz_176{position:absolute;top:50%;transform:translateY(-50%);right:.83333333vw;z-index:10}._fullBtn_bvkpz_183{width:3.125vw;height:3.125vw;overflow:hidden}._fullBtn_bvkpz_183._point_bvkpz_188{margin:1.04166667vw 0 0}._fullBtn_bvkpz_183 img{width:100%;height:100%}._fullBtn_bvkpz_183:active{opacity:.8}._fullBtn_bvkpz_183._iconUp_bvkpz_198,._fullBtn_bvkpz_183._iconDown_bvkpz_199{margin-top:1.04166667vw}._fullBtn_bvkpz_183._btnsDisabled_bvkpz_202{opacity:0;pointer-events:none;display:none}.top-enter-active,.top-leave-active{transition:transform .5s}.top-enter-from,.top-leave-to{transform:translateY(-100%)}.right-enter-active,.right-leave-active{transition:all .5s}.right-enter-from,.right-leave-to{right:-3.125vw;opacity:0}.bottom-enter-active,.bottom-leave-active{transition:transform .5s}.bottom-enter-from,.bottom-leave-to{transform:translateY(100%)}._loadWrap_bvkpz_232{position:absolute;left:0;top:0;right:0;bottom:0;background:linear-gradient(45deg,#21232a,#111218);display:flex;justify-content:center;align-items:center}._drawerContainer_bvkpz_243{width:18.75vw!important}._drawerContainer_bvkpz_243 ._cardContainer_bvkpz_246{margin-bottom:1.25vw}._drawerContainer_bvkpz_243 .n-drawer-body-content-wrapper{padding:.41666667vw 0px 0px!important;text-align:center}._drawerContainer_bvkpz_243 .n-drawer-header{position:relative;justify-content:center!important;padding-top:1.25vw!important;padding-bottom:1.04166667vw!important;border-bottom:0!important}._drawerContainer_bvkpz_243 .n-drawer-header .n-drawer-header__main{position:relative;z-index:2;font-size:.9375rem;font-weight:600;color:#131415}._drawerContainer_bvkpz_243 .n-drawer-header .n-drawer-header__main:after{position:absolute;bottom:-.20833333vw;left:0;z-index:-1;content:" ";width:100%;display:inline-block;height:.52083333vw;background:linear-gradient(90deg,#77bbff 0%,rgba(163,231,255,.22) 100%)}._drawerContainer_bvkpz_243 .n-drawer-header .n-drawer-header__close{position:absolute;right:1.35416667vw}._sectionAnimate_bvkpz_39{opacity:0;pointer-events:none;transform:translateY(100%);transition:all .5s}._switchDisplaySection_bvkpz_288{position:absolute;right:1.5625vw;bottom:1.5625vw;z-index:199;transition:all .5s;display:flex}._switchDisplaySection_bvkpz_288 ._displayBtn_bvkpz_296{width:4.6875vw;height:4.6875vw;cursor:pointer}._switchDisplaySection_bvkpz_288 ._displayBtn_bvkpz_296 img{width:inherit;height:inherit}._switchDisplaySection_bvkpz_288 ._displayBtn_bvkpz_296+._displayBtn_bvkpz_296{margin-left:1.04166667vw}._attendClassModal_bvkpz_308{width:23.02083333vw;border-radius:.83333333vw;overflow:hidden}._attendClassModal_bvkpz_308 .n-card-header{position:relative;padding:1.04166667vw .9375vw;text-align:center;font-size:1.14583333rem;font-weight:600;color:#131415;line-height:1.5625vw}._attendClassModal_bvkpz_308 .n-card-header__close{position:absolute;right:.9375vw}._attendClassModal_bvkpz_308 .n-card__content{padding:0}._attendClassModal_bvkpz_308 .n-base-select-menu .n-base-select-option{font-size:.9375rem!important}._attendClassModal_bvkpz_308 ._modelAttendContent_bvkpz_332{font-size:.9375rem;color:#777;line-height:1.5625vw;text-align:center}._attendClassModal_bvkpz_308 ._modelAttendBtnGroup_bvkpz_338{padding:2.08333333vw 0;justify-content:center!important}._attendClassModal_bvkpz_308 ._modelAttendBtnGroup_bvkpz_338 .n-button{height:2.5vw!important;min-width:8.125vw}._trainClassModal_bvkpz_346{width:53.54166667vw}._trainClassModal_bvkpz_346 .n-card-header{background:#f5f6fa}._workContainer_bvkpz_352{padding:1.04166667vw 2.08333333vw 2.08333333vw}._workContainer_bvkpz_352 h2{font-size:1.35416667rem;text-align:center}._toolboxImg_bvkpz_359{width:4.32291667vw;height:4.32291667vw;position:absolute;right:.83333333vw;bottom:8.54166667vw;cursor:pointer;z-index:1000}._isDragIng_bvkpz_368{width:4.32291667vw;height:4.32291667vw}._toolClassImg_bvkpz_372{width:4.32291667vw;height:4.32291667vw;position:absolute;right:1.66666667vw;bottom:8.33333333vw;cursor:pointer;z-index:1000}.moveable-control-box{--moveable-color: transparent !important}.n-popover{background-color:transparent}._booxToolWrap_bvkpz_387{height:4.94791667vw;background:#ffffff;box-shadow:0 .10416667vw .52083333vw rgba(0,0,0,.1);border-radius:1.04166667vw;display:flex;flex-direction:row;align-items:center;padding:.52083333vw .41666667vw;justify-content:space-between}._booxToolWrap_bvkpz_387 ._booxToolItem_bvkpz_398{margin:0 .625vw;display:flex;flex-direction:column;align-items:center;font-size:.625rem;cursor:pointer;text-align:center}._booxToolWrap_bvkpz_387 ._booxToolItem_bvkpz_398:hover{opacity:.8}._booxToolWrap_bvkpz_387 ._booxToolItem_bvkpz_398 img{width:2.91666667vw;height:2.91666667vw;margin-bottom:.20833333vw}._setTimeImage_bvkpz_415{cursor:pointer}._setTimeImage_bvkpz_415 img{width:41.25vw}._beatImage_bvkpz_421{cursor:pointer}._beatImage_bvkpz_421 img{width:36.35416667vw}._changePwdModal_bvkpz_427{border-radius:.83333333vw}._imChatModal_bvkpz_430{border-radius:1.04166667vw}._modeWrap_bvkpz_433{overflow:hidden;border-radius:.83333333vw;background-color:#fff}._showModalTone_bvkpz_438{width:26.04166667vw}._showModalTone_bvkpz_438 ._studentRemove_bvkpz_441{padding:1.66666667vw 2.08333333vw 2.39583333vw}._showModalTone_bvkpz_438 ._studentRemove_bvkpz_441 p{font-size:.9375rem;color:#777;line-height:1.5625vw;text-align:center}._showModalTone_bvkpz_438 ._studentRemove_bvkpz_441 p span{color:#ea4132}._removeVisiable_bvkpz_453{width:22.5vw}._removeVisiable_bvkpz_453 .n-card-header{font-size:max(1.14583333rem,16Px)}._removeVisiable_bvkpz_453 ._studentRemove_bvkpz_441{padding:1.04166667vw 2.08333333vw 0}._removeVisiable_bvkpz_453 ._studentRemove_bvkpz_441 p{font-size:max(.9375rem,14Px);color:#777;line-height:1.5625vw;text-align:center}._removeVisiable_bvkpz_453 ._studentRemove_bvkpz_441 p span{color:#ea4132}._removeVisiable_bvkpz_453 ._btnGroupModal_bvkpz_471{padding:1.66666667vw 0}._removeVisiable_bvkpz_453 ._btnGroupModal_bvkpz_471 .n-button{height:2.44791667vw;min-width:8.125vw}@keyframes plyr-progress{to{background-position:25px 0;background-position:var(--plyr-progress-loading-size,25px) 0}}@keyframes plyr-popup{0%{opacity:.5;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes plyr-fade-in{0%{opacity:0}to{opacity:1}}.plyr{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;align-items:center;direction:ltr;display:flex;flex-direction:column;font-family:inherit;font-family:var(--plyr-font-family,inherit);font-variant-numeric:tabular-nums;font-weight:400;font-weight:var(--plyr-font-weight-regular,400);line-height:1.7;line-height:var(--plyr-line-height,1.7);max-width:100%;min-width:10.41666667vw;position:relative;text-shadow:none;transition:box-shadow .3s ease;z-index:0}.plyr audio,.plyr iframe,.plyr video{display:block;height:100%;width:100%}.plyr button{font:inherit;line-height:inherit;width:auto}.plyr:focus{outline:0}.plyr--full-ui{box-sizing:border-box}.plyr--full-ui *,.plyr--full-ui :after,.plyr--full-ui :before{box-sizing:inherit}.plyr--full-ui a,.plyr--full-ui button,.plyr--full-ui input,.plyr--full-ui label{touch-action:manipulation}.plyr__badge{background:#4a5464;background:var(--plyr-badge-background,#4a5464);border-radius:.10416667vw;border-radius:var(--plyr-badge-border-radius,.10416667vw);color:#fff;color:var(--plyr-badge-text-color,#fff);font-size:.46875rem;font-size:var(--plyr-font-size-badge,.46875rem);line-height:1;padding:.15625vw .20833333vw}.plyr--full-ui ::-webkit-media-text-track-container{display:none}.plyr__captions{animation:plyr-fade-in .3s ease;bottom:0;display:none;font-size:.67708333rem;font-size:var(--plyr-font-size-small,.67708333rem);left:0;padding:.52083333vw;padding:var(--plyr-control-spacing,.52083333vw);position:absolute;text-align:center;transition:transform .4s ease-in-out;width:100%}.plyr__captions span:empty{display:none}@media (min-width:480px){.plyr__captions{font-size:15px;font-size:var(--plyr-font-size-base,15px);padding:20px;padding:calc(var(--plyr-control-spacing, 10px)*2)}}@media (min-width:768px){.plyr__captions{font-size:18px;font-size:var(--plyr-font-size-large,18px)}}.plyr--captions-active .plyr__captions{display:block}.plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(-2.08333333vw);transform:translateY(calc(var(--plyr-control-spacing, .52083333vw)*-4))}.plyr__caption{background:#000c;background:var(--plyr-captions-background,#000c);border-radius:.10416667vw;-webkit-box-decoration-break:clone;box-decoration-break:clone;color:#fff;color:var(--plyr-captions-text-color,#fff);line-height:185%;padding:.2em .5em;white-space:pre-wrap}.plyr__caption div{display:inline}.plyr__control{background:#0000;border:0;border-radius:.20833333vw;border-radius:var(--plyr-control-radius,.20833333vw);color:inherit;cursor:pointer;flex-shrink:0;overflow:visible;padding:.36458333vw;padding:calc(var(--plyr-control-spacing, .52083333vw)*.7);position:relative;transition:all .3s ease}.plyr__control svg{fill:currentColor;display:block;height:.9375vw;height:var(--plyr-control-icon-size,.9375vw);pointer-events:none;width:.9375vw;width:var(--plyr-control-icon-size,.9375vw)}.plyr__control:focus{outline:0}.plyr__control:focus-visible{outline:.10416667vw dashed #00b2ff;outline:.10416667vw dashed var(--plyr-focus-visible-color,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));outline-offset:.10416667vw}a.plyr__control{text-decoration:none}.plyr__control.plyr__control--pressed .icon--not-pressed,.plyr__control.plyr__control--pressed .label--not-pressed,.plyr__control:not(.plyr__control--pressed) .icon--pressed,.plyr__control:not(.plyr__control--pressed) .label--pressed,a.plyr__control:after,a.plyr__control:before{display:none}.plyr--full-ui ::-webkit-media-controls{display:none}.plyr__controls{align-items:center;display:flex;justify-content:flex-end;text-align:center}.plyr__controls .plyr__progress__container{flex:1;min-width:0}.plyr__controls .plyr__controls__item{margin-left:.13020833vw;margin-left:calc(var(--plyr-control-spacing, .52083333vw)/4)}.plyr__controls .plyr__controls__item:first-child{margin-left:0;margin-right:auto}.plyr__controls .plyr__controls__item.plyr__progress__container{padding-left:.13020833vw;padding-left:calc(var(--plyr-control-spacing, .52083333vw)/4)}.plyr__controls .plyr__controls__item.plyr__time{padding:0 .26041667vw;padding:0 calc(var(--plyr-control-spacing, .52083333vw)/2)}.plyr__controls .plyr__controls__item.plyr__progress__container:first-child,.plyr__controls .plyr__controls__item.plyr__time+.plyr__time,.plyr__controls .plyr__controls__item.plyr__time:first-child{padding-left:0}.plyr [data-plyr=airplay],.plyr [data-plyr=captions],.plyr [data-plyr=fullscreen],.plyr [data-plyr=pip],.plyr__controls:empty{display:none}.plyr--airplay-supported [data-plyr=airplay],.plyr--captions-enabled [data-plyr=captions],.plyr--fullscreen-enabled [data-plyr=fullscreen],.plyr--pip-supported [data-plyr=pip]{display:inline-block}.plyr__menu{display:flex;position:relative}.plyr__menu .plyr__control svg{transition:transform .3s ease}.plyr__menu .plyr__control[aria-expanded=true] svg{transform:rotate(90deg)}.plyr__menu .plyr__control[aria-expanded=true] .plyr__tooltip{display:none}.plyr__menu__container{animation:plyr-popup .2s ease;background:#ffffffe6;background:var(--plyr-menu-background,#ffffffe6);border-radius:.41666667vw;border-radius:var(--plyr-menu-radius,.41666667vw);bottom:100%;box-shadow:0 1px .10416667vw rgba(0,0,0,.15);box-shadow:var(--plyr-menu-shadow,0 1px .10416667vw #00000026);color:#4a5464;color:var(--plyr-menu-color,#4a5464);font-size:.78125rem;font-size:var(--plyr-font-size-base,.78125rem);margin-bottom:.52083333vw;position:absolute;right:-.15625vw;text-align:left;white-space:nowrap;z-index:3}.plyr__menu__container>div{overflow:hidden;transition:height .35s cubic-bezier(.4,0,.2,1),width .35s cubic-bezier(.4,0,.2,1)}.plyr__menu__container:after{border:.20833333vw solid #0000;border-top-color:rgba(255,255,255,.9);border:var(--plyr-menu-arrow-size,.20833333vw) solid #0000;border-top-color:var(--plyr-menu-background,#ffffffe6);content:"";height:0;position:absolute;right:.72916667vw;right:calc(var(--plyr-control-icon-size, .9375vw)/2 + var(--plyr-control-spacing, .52083333vw)*.7 - var(--plyr-menu-arrow-size, .20833333vw)/2);top:100%;width:0}.plyr__menu__container [role=menu]{padding:.36458333vw;padding:calc(var(--plyr-control-spacing, .52083333vw)*.7)}.plyr__menu__container [role=menuitem],.plyr__menu__container [role=menuitemradio]{margin-top:.10416667vw}.plyr__menu__container [role=menuitem]:first-child,.plyr__menu__container [role=menuitemradio]:first-child{margin-top:0}.plyr__menu__container .plyr__control{align-items:center;color:#4a5464;color:var(--plyr-menu-color,#4a5464);display:flex;font-size:.67708333rem;font-size:var(--plyr-font-size-menu,var(--plyr-font-size-small,.67708333rem));padding:.24305573vw .546875vw;padding:calc(var(--plyr-control-spacing, .52083333vw)*.7/1.5) calc(var(--plyr-control-spacing, .52083333vw)*.7*1.5);-webkit-user-select:none;user-select:none;width:100%}.plyr__menu__container .plyr__control>span{align-items:inherit;display:flex;width:100%}.plyr__menu__container .plyr__control:after{border:.20833333vw solid #0000;border:var(--plyr-menu-item-arrow-size,.20833333vw) solid #0000;content:"";position:absolute;top:50%;transform:translateY(-50%)}.plyr__menu__container .plyr__control--forward{padding-right:1.45833333vw;padding-right:calc(var(--plyr-control-spacing, .52083333vw)*.7*4)}.plyr__menu__container .plyr__control--forward:after{border-left-color:#728197;border-left-color:var(--plyr-menu-arrow-color,#728197);right:.33854167vw;right:calc(var(--plyr-control-spacing, .52083333vw)*.7*1.5 - var(--plyr-menu-item-arrow-size, .20833333vw))}.plyr__menu__container .plyr__control--forward:focus-visible:after,.plyr__menu__container .plyr__control--forward:hover:after{border-left-color:initial}.plyr__menu__container .plyr__control--back{font-weight:400;font-weight:var(--plyr-font-weight-regular,400);margin:.36458333vw;margin:calc(var(--plyr-control-spacing, .52083333vw)*.7);margin-bottom:.18229167vw;margin-bottom:calc(var(--plyr-control-spacing, .52083333vw)*.7/2);padding-left:1.45833333vw;padding-left:calc(var(--plyr-control-spacing, .52083333vw)*.7*4);position:relative;width:calc(100% - .72916667vw);width:calc(100% - var(--plyr-control-spacing, .52083333vw)*.7*2)}.plyr__menu__container .plyr__control--back:after{border-right-color:#728197;border-right-color:var(--plyr-menu-arrow-color,#728197);left:.33854167vw;left:calc(var(--plyr-control-spacing, .52083333vw)*.7*1.5 - var(--plyr-menu-item-arrow-size, .20833333vw))}.plyr__menu__container .plyr__control--back:before{background:#dcdfe5;background:var(--plyr-menu-back-border-color,#dcdfe5);box-shadow:0 1px #fff;box-shadow:0 1px 0 var(--plyr-menu-back-border-shadow-color,#fff);content:"";height:1px;left:0;margin-top:.18229167vw;margin-top:calc(var(--plyr-control-spacing, .52083333vw)*.7/2);overflow:hidden;position:absolute;right:0;top:100%}.plyr__menu__container .plyr__control--back:focus-visible:after,.plyr__menu__container .plyr__control--back:hover:after{border-right-color:initial}.plyr__menu__container .plyr__control[role=menuitemradio]{padding-left:.36458333vw;padding-left:calc(var(--plyr-control-spacing, .52083333vw)*.7)}.plyr__menu__container .plyr__control[role=menuitemradio]:after,.plyr__menu__container .plyr__control[role=menuitemradio]:before{border-radius:100%}.plyr__menu__container .plyr__control[role=menuitemradio]:before{background:#0000001a;content:"";display:block;flex-shrink:0;height:.83333333vw;margin-right:.52083333vw;margin-right:var(--plyr-control-spacing,.52083333vw);transition:all .3s ease;width:.83333333vw}.plyr__menu__container .plyr__control[role=menuitemradio]:after{background:#fff;border:0;height:.3125vw;left:.625vw;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform .3s ease,opacity .3s ease;width:.3125vw}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]:before{background:#00b2ff;background:var(--plyr-control-toggle-checked-background,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)))}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]:after{opacity:1;transform:translateY(-50%) scale(1)}.plyr__menu__container .plyr__control[role=menuitemradio]:focus-visible:before,.plyr__menu__container .plyr__control[role=menuitemradio]:hover:before{background:#23282f1a}.plyr__menu__container .plyr__menu__value{align-items:center;display:flex;margin-left:auto;margin-right:-.26041667vw;margin-right:calc(var(--plyr-control-spacing, .52083333vw)*.7*-1 - -.10416667vw);overflow:hidden;padding-left:1.27604167vw;padding-left:calc(var(--plyr-control-spacing, .52083333vw)*.7*3.5);pointer-events:none}.plyr--full-ui input[type=range]{-webkit-appearance:none;appearance:none;background:#0000;border:0;border-radius:1.35416667vw;border-radius:calc(var(--plyr-range-thumb-height, .67708333vw)*2);color:#00b2ff;color:var(--plyr-range-fill-background,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));display:block;height:.98958333vw;height:calc(var(--plyr-range-thumb-active-shadow-width, .15625vw)*2 + var(--plyr-range-thumb-height, .67708333vw));margin:0;min-width:0;padding:0;transition:box-shadow .3s ease;width:100%}.plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background:#0000;background-image:linear-gradient(90deg,currentColor 0,#0000 0);background-image:linear-gradient(to right,currentColor var(--value,0),#0000 var(--value,0));border:0;border-radius:.13020833vw;border-radius:calc(var(--plyr-range-track-height, .26041667vw)/2);height:.26041667vw;height:var(--plyr-range-track-height,.26041667vw);-webkit-transition:box-shadow .3s ease;transition:box-shadow .3s ease;-webkit-user-select:none;user-select:none}.plyr--full-ui input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33);height:.67708333vw;height:var(--plyr-range-thumb-height,.67708333vw);margin-top:-.20833333vw;margin-top:calc((var(--plyr-range-thumb-height, .67708333vw) - var(--plyr-range-track-height, .26041667vw))/2*-1);position:relative;-webkit-transition:all .2s ease;transition:all .2s ease;width:.67708333vw;width:var(--plyr-range-thumb-height,.67708333vw)}.plyr--full-ui input[type=range]::-moz-range-track{background:#0000;border:0;border-radius:.13020833vw;border-radius:calc(var(--plyr-range-track-height, .26041667vw)/2);height:.26041667vw;height:var(--plyr-range-track-height,.26041667vw);-moz-transition:box-shadow .3s ease;transition:box-shadow .3s ease;user-select:none}.plyr--full-ui input[type=range]::-moz-range-thumb{background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33);height:.67708333vw;height:var(--plyr-range-thumb-height,.67708333vw);position:relative;-moz-transition:all .2s ease;transition:all .2s ease;width:.67708333vw;width:var(--plyr-range-thumb-height,.67708333vw)}.plyr--full-ui input[type=range]::-moz-range-progress{background:currentColor;border-radius:.13020833vw;border-radius:calc(var(--plyr-range-track-height, .26041667vw)/2);height:.26041667vw;height:var(--plyr-range-track-height,.26041667vw)}.plyr--full-ui input[type=range]::-ms-track{color:rgba(0,0,0,0)}.plyr--full-ui input[type=range]::-ms-fill-upper,.plyr--full-ui input[type=range]::-ms-track{background:#0000;border:0;border-radius:.13020833vw;border-radius:calc(var(--plyr-range-track-height, .26041667vw)/2);height:.26041667vw;height:var(--plyr-range-track-height,.26041667vw);-ms-transition:box-shadow .3s ease;transition:box-shadow .3s ease;user-select:none}.plyr--full-ui input[type=range]::-ms-fill-lower{background:#0000;background:currentColor;border:0;border-radius:.13020833vw;border-radius:calc(var(--plyr-range-track-height, .26041667vw)/2);height:.26041667vw;height:var(--plyr-range-track-height,.26041667vw);-ms-transition:box-shadow .3s ease;transition:box-shadow .3s ease;user-select:none}.plyr--full-ui input[type=range]::-ms-thumb{background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33);height:.67708333vw;height:var(--plyr-range-thumb-height,.67708333vw);margin-top:0;position:relative;-ms-transition:all .2s ease;transition:all .2s ease;width:.67708333vw;width:var(--plyr-range-thumb-height,.67708333vw)}.plyr--full-ui input[type=range]::-ms-tooltip{display:none}.plyr--full-ui input[type=range]::-moz-focus-outer{border:0}.plyr--full-ui input[type=range]:focus{outline:0}.plyr--full-ui input[type=range]:focus-visible::-webkit-slider-runnable-track{outline:.10416667vw dashed #00b2ff;outline:.10416667vw dashed var(--plyr-focus-visible-color,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));outline-offset:.10416667vw}.plyr--full-ui input[type=range]:focus-visible::-moz-range-track{outline:.10416667vw dashed #00b2ff;outline:.10416667vw dashed var(--plyr-focus-visible-color,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));outline-offset:.10416667vw}.plyr--full-ui input[type=range]:focus-visible::-ms-track{outline:.10416667vw dashed #00b2ff;outline:.10416667vw dashed var(--plyr-focus-visible-color,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));outline-offset:.10416667vw}.plyr__poster{background-color:#000;background-color:var(--plyr-video-background,var(--plyr-video-background,#000));background-position:50% 50%;background-repeat:no-repeat;background-size:contain;height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity .2s ease;width:100%;z-index:1}.plyr--stopped.plyr__poster-enabled .plyr__poster{opacity:1}.plyr--youtube.plyr--paused.plyr__poster-enabled:not(.plyr--stopped) .plyr__poster{display:none}.plyr__time{font-size:.67708333rem;font-size:var(--plyr-font-size-time,var(--plyr-font-size-small,.67708333rem))}.plyr__time+.plyr__time:before{content:"⁄";margin-right:.52083333vw;margin-right:var(--plyr-control-spacing,.52083333vw)}@media (max-width:767px){.plyr__time+.plyr__time{display:none}}.plyr__tooltip{background:#fff;background:var(--plyr-tooltip-background,#fff);border-radius:.26041667vw;border-radius:var(--plyr-tooltip-radius,.26041667vw);bottom:100%;box-shadow:0 1px .10416667vw rgba(0,0,0,.15);box-shadow:var(--plyr-tooltip-shadow,0 1px .10416667vw #00000026);color:#4a5464;color:var(--plyr-tooltip-color,#4a5464);font-size:.67708333rem;font-size:var(--plyr-font-size-small,.67708333rem);font-weight:400;font-weight:var(--plyr-font-weight-regular,400);left:50%;line-height:1.3;margin-bottom:.52083333vw;margin-bottom:calc(var(--plyr-control-spacing, .52083333vw)/2*2);opacity:0;padding:.26041667vw .390625vw;padding:calc(var(--plyr-control-spacing, .52083333vw)/2) calc(var(--plyr-control-spacing, .52083333vw)/2*1.5);pointer-events:none;position:absolute;transform:translate(-50%,.52083333vw) scale(.8);transform-origin:50% 100%;transition:transform .2s ease .1s,opacity .2s ease .1s;white-space:nowrap;z-index:2}.plyr__tooltip:before{border-left:.20833333vw solid #0000;border-left:var(--plyr-tooltip-arrow-size,.20833333vw) solid #0000;border-right:.20833333vw solid #0000;border-right:var(--plyr-tooltip-arrow-size,.20833333vw) solid #0000;border-top:.20833333vw solid #fff;border-top:var(--plyr-tooltip-arrow-size,.20833333vw) solid var(--plyr-tooltip-background,#fff);bottom:-.20833333vw;bottom:calc(var(--plyr-tooltip-arrow-size, .20833333vw)*-1);content:"";height:0;left:50%;position:absolute;transform:translate(-50%);width:0;z-index:2}.plyr .plyr__control:focus-visible .plyr__tooltip,.plyr .plyr__control:hover .plyr__tooltip,.plyr__tooltip--visible{opacity:1;transform:translate(-50%) scale(1)}.plyr .plyr__control:hover .plyr__tooltip{z-index:3}.plyr__controls>.plyr__control:first-child .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip{left:0;transform:translateY(.52083333vw) scale(.8);transform-origin:0 100%}.plyr__controls>.plyr__control:first-child .plyr__tooltip:before,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip:before{left:.83333333vw;left:calc(var(--plyr-control-icon-size, .9375vw)/2 + var(--plyr-control-spacing, .52083333vw)*.7)}.plyr__controls>.plyr__control:last-child .plyr__tooltip{left:auto;right:0;transform:translateY(.52083333vw) scale(.8);transform-origin:100% 100%}.plyr__controls>.plyr__control:last-child .plyr__tooltip:before{left:auto;right:.83333333vw;right:calc(var(--plyr-control-icon-size, .9375vw)/2 + var(--plyr-control-spacing, .52083333vw)*.7);transform:translate(50%)}.plyr__controls>.plyr__control:first-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control:focus-visible .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child:focus-visible .plyr__tooltip,.plyr__controls>.plyr__control:first-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:last-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:last-child:focus-visible .plyr__tooltip,.plyr__controls>.plyr__control:last-child:hover .plyr__tooltip{transform:translate(0) scale(1)}.plyr__progress{left:.33854167vw;left:calc(var(--plyr-range-thumb-height, .67708333vw)*.5);margin-right:.67708333vw;margin-right:var(--plyr-range-thumb-height,.67708333vw);position:relative}.plyr__progress input[type=range],.plyr__progress__buffer{margin-left:-.33854167vw;margin-left:calc(var(--plyr-range-thumb-height, .67708333vw)*-.5);margin-right:-.33854167vw;margin-right:calc(var(--plyr-range-thumb-height, .67708333vw)*-.5);width:calc(100% + .67708333vw);width:calc(100% + var(--plyr-range-thumb-height, .67708333vw))}.plyr__progress input[type=range]{position:relative;z-index:2}.plyr__progress .plyr__tooltip{left:0;max-width:6.25vw;overflow-wrap:break-word}.plyr__progress__buffer{-webkit-appearance:none;background:#0000;border:0;border-radius:5.20833333vw;height:.26041667vw;height:var(--plyr-range-track-height,.26041667vw);left:0;margin-top:-.13020833vw;margin-top:calc((var(--plyr-range-track-height, .26041667vw)/2)*-1);padding:0;position:absolute;top:50%}.plyr__progress__buffer::-webkit-progress-bar{background:#0000}.plyr__progress__buffer::-webkit-progress-value{background:currentColor;border-radius:5.20833333vw;min-width:.26041667vw;min-width:var(--plyr-range-track-height,.26041667vw);-webkit-transition:width .2s ease;transition:width .2s ease}.plyr__progress__buffer::-moz-progress-bar{background:currentColor;border-radius:5.20833333vw;min-width:.26041667vw;min-width:var(--plyr-range-track-height,.26041667vw);-moz-transition:width .2s ease;transition:width .2s ease}.plyr__progress__buffer::-ms-fill{border-radius:5.20833333vw;-ms-transition:width .2s ease;transition:width .2s ease}.plyr--loading .plyr__progress__buffer{animation:plyr-progress 1s linear infinite;background-image:linear-gradient(-45deg,#23282f99 25%,#0000 0,#0000 50%,#23282f99 0,#23282f99 75%,#0000 0,#0000);background-image:linear-gradient(-45deg,var(--plyr-progress-loading-background,#23282f99) 25%,#0000 25%,#0000 50%,var(--plyr-progress-loading-background,#23282f99) 50%,var(--plyr-progress-loading-background,#23282f99) 75%,#0000 75%,#0000);background-repeat:repeat-x;background-size:1.30208333vw 1.30208333vw;background-size:var(--plyr-progress-loading-size,1.30208333vw) var(--plyr-progress-loading-size,1.30208333vw);color:rgba(0,0,0,0)}.plyr--video.plyr--loading .plyr__progress__buffer{background-color:rgba(255,255,255,.25);background-color:var(--plyr-video-progress-buffered-background,#ffffff40)}.plyr--audio.plyr--loading .plyr__progress__buffer{background-color:rgba(193,200,209,.6);background-color:var(--plyr-audio-progress-buffered-background,#c1c8d199)}.plyr__progress__marker{background-color:#fff;background-color:var(--plyr-progress-marker-background,#fff);border-radius:1px;height:.26041667vw;height:var(--plyr-range-track-height,.26041667vw);position:absolute;top:50%;transform:translate(-50%,-50%);width:.15625vw;width:var(--plyr-progress-marker-width,.15625vw);z-index:3}.plyr__volume{align-items:center;display:flex;position:relative}.plyr__volume input[type=range]{margin-left:.26041667vw;margin-left:calc(var(--plyr-control-spacing, .52083333vw)/2);margin-right:.26041667vw;margin-right:calc(var(--plyr-control-spacing, .52083333vw)/2);max-width:4.6875vw;min-width:3.125vw;position:relative;z-index:2}.plyr--audio{display:block}.plyr--audio .plyr__controls{background:#fff;background:var(--plyr-audio-controls-background,#fff);border-radius:inherit;color:#4a5464;color:var(--plyr-audio-control-color,#4a5464);padding:.52083333vw;padding:var(--plyr-control-spacing,.52083333vw)}.plyr--audio .plyr__control:focus-visible,.plyr--audio .plyr__control:hover,.plyr--audio .plyr__control[aria-expanded=true]{background:#00b2ff;background:var(--plyr-audio-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));color:#fff;color:var(--plyr-audio-control-color-hover,#fff)}.plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track{background-color:rgba(193,200,209,.6);background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,#c1c8d199))}.plyr--full-ui.plyr--audio input[type=range]::-moz-range-track{background-color:rgba(193,200,209,.6);background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,#c1c8d199))}.plyr--full-ui.plyr--audio input[type=range]::-ms-track{background-color:rgba(193,200,209,.6);background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,#c1c8d199))}.plyr--full-ui.plyr--audio input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 .15625vw rgba(35,40,47,.1);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,.15625vw) var(--plyr-audio-range-thumb-active-shadow-color,#23282f1a)}.plyr--full-ui.plyr--audio input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 .15625vw rgba(35,40,47,.1);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,.15625vw) var(--plyr-audio-range-thumb-active-shadow-color,#23282f1a)}.plyr--full-ui.plyr--audio input[type=range]:active::-ms-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 .15625vw rgba(35,40,47,.1);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,.15625vw) var(--plyr-audio-range-thumb-active-shadow-color,#23282f1a)}.plyr--audio .plyr__progress__buffer{color:rgba(193,200,209,.6);color:var(--plyr-audio-progress-buffered-background,#c1c8d199)}.plyr--video{overflow:hidden}.plyr--video.plyr--menu-open{overflow:visible}.plyr__video-wrapper{background:#000;background:var(--plyr-video-background,var(--plyr-video-background,#000));border-radius:inherit;height:100%;margin:auto;overflow:hidden;position:relative;width:100%}.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{aspect-ratio:16/9}@supports not (aspect-ratio:16/9){.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0;padding-bottom:56.25%;position:relative}}.plyr__video-embed iframe,.plyr__video-wrapper--fixed-ratio video{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.plyr--full-ui .plyr__video-embed>.plyr__video-embed__container{padding-bottom:240%;position:relative;transform:translateY(-38.28125%)}.plyr--video .plyr__controls{background:linear-gradient(#0000,#000000bf);background:var(--plyr-video-controls-background,linear-gradient(#0000,#000000bf));border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;color:#fff;color:var(--plyr-video-control-color,#fff);left:0;padding:.26041667vw;padding:calc(var(--plyr-control-spacing, .52083333vw)/2);padding-top:1.04166667vw;padding-top:calc(var(--plyr-control-spacing, .52083333vw)*2);position:absolute;right:0;transition:opacity .4s ease-in-out,transform .4s ease-in-out;z-index:3}@media (min-width:480px){.plyr--video .plyr__controls{padding:10px;padding:var(--plyr-control-spacing,10px);padding-top:35px;padding-top:calc(var(--plyr-control-spacing, 10px)*3.5)}}.plyr--video.plyr--hide-controls .plyr__controls{opacity:0;pointer-events:none;transform:translateY(100%)}.plyr--video .plyr__control:focus-visible,.plyr--video .plyr__control:hover,.plyr--video .plyr__control[aria-expanded=true]{background:#00b2ff;background:var(--plyr-video-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));color:#fff;color:var(--plyr-video-control-color-hover,#fff)}.plyr__control--overlaid{background:#00b2ff;background:var(--plyr-video-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));border:0;border-radius:100%;color:#fff;color:var(--plyr-video-control-color,#fff);display:none;left:50%;opacity:.9;padding:.78125vw;padding:calc(var(--plyr-control-spacing, .52083333vw)*1.5);position:absolute;top:50%;transform:translate(-50%,-50%);transition:.3s;z-index:2}.plyr__control--overlaid svg{left:.10416667vw;position:relative}.plyr__control--overlaid:focus,.plyr__control--overlaid:hover{opacity:1}.plyr--playing .plyr__control--overlaid{opacity:0;visibility:hidden}.plyr--full-ui.plyr--video .plyr__control--overlaid{display:block}.plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{background-color:rgba(255,255,255,.25);background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,#ffffff40))}.plyr--full-ui.plyr--video input[type=range]::-moz-range-track{background-color:rgba(255,255,255,.25);background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,#ffffff40))}.plyr--full-ui.plyr--video input[type=range]::-ms-track{background-color:rgba(255,255,255,.25);background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,#ffffff40))}.plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 .15625vw rgba(255,255,255,.5);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,.15625vw) var(--plyr-audio-range-thumb-active-shadow-color,#ffffff80)}.plyr--full-ui.plyr--video input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 .15625vw rgba(255,255,255,.5);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,.15625vw) var(--plyr-audio-range-thumb-active-shadow-color,#ffffff80)}.plyr--full-ui.plyr--video input[type=range]:active::-ms-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 .15625vw rgba(255,255,255,.5);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,.15625vw) var(--plyr-audio-range-thumb-active-shadow-color,#ffffff80)}.plyr--video .plyr__progress__buffer{color:rgba(255,255,255,.25);color:var(--plyr-video-progress-buffered-background,#ffffff40)}.plyr:fullscreen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:fullscreen video{height:100%}.plyr:fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:fullscreen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:fullscreen .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr--fullscreen-fallback{background:#000;border-radius:0!important;bottom:0;height:100%;left:0;margin:0;position:fixed;right:0;top:0;width:100%;z-index:10000000}.plyr--fullscreen-fallback video{height:100%}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen{display:block}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr--fullscreen-fallback.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr--fullscreen-fallback .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr__ads{border-radius:inherit;bottom:0;cursor:pointer;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.plyr__ads>div,.plyr__ads>div iframe{height:100%;position:absolute;width:100%}.plyr__ads:after{background:#23282f;border-radius:.10416667vw;bottom:.52083333vw;bottom:var(--plyr-control-spacing,.52083333vw);color:#fff;content:attr(data-badge-text);font-size:.57291667rem;padding:.10416667vw .3125vw;pointer-events:none;position:absolute;right:.52083333vw;right:var(--plyr-control-spacing,.52083333vw);z-index:3}.plyr__ads:empty:after{display:none}.plyr__cues{background:currentColor;display:block;height:.26041667vw;height:var(--plyr-range-track-height,.26041667vw);left:0;opacity:.8;position:absolute;top:50%;transform:translateY(-50%);width:.15625vw;z-index:3}.plyr__preview-thumb{background-color:#fff;background-color:var(--plyr-tooltip-background,#fff);border-radius:.41666667vw;border-radius:var(--plyr-menu-radius,.41666667vw);bottom:100%;box-shadow:0 1px .10416667vw rgba(0,0,0,.15);box-shadow:var(--plyr-tooltip-shadow,0 1px .10416667vw #00000026);margin-bottom:.52083333vw;margin-bottom:calc(var(--plyr-control-spacing, .52083333vw)/2*2);opacity:0;padding:.15625vw;pointer-events:none;position:absolute;transform:translateY(.52083333vw) scale(.8);transform-origin:50% 100%;transition:transform .2s ease .1s,opacity .2s ease .1s;z-index:2}.plyr__preview-thumb--is-shown{opacity:1;transform:translate(0) scale(1)}.plyr__preview-thumb:before{border-left:.20833333vw solid #0000;border-left:var(--plyr-tooltip-arrow-size,.20833333vw) solid #0000;border-right:.20833333vw solid #0000;border-right:var(--plyr-tooltip-arrow-size,.20833333vw) solid #0000;border-top:.20833333vw solid #fff;border-top:var(--plyr-tooltip-arrow-size,.20833333vw) solid var(--plyr-tooltip-background,#fff);bottom:-.20833333vw;bottom:calc(var(--plyr-tooltip-arrow-size, .20833333vw)*-1);content:"";height:0;left:calc(50% + var(--preview-arrow-offset));position:absolute;transform:translate(-50%);width:0;z-index:2}.plyr__preview-thumb__image-container{background:#c1c8d1;border-radius:.36458333vw;border-radius:calc(var(--plyr-menu-radius, .41666667vw) - 1px);overflow:hidden;position:relative;z-index:0}.plyr__preview-thumb__image-container img,.plyr__preview-thumb__image-container:after{height:100%;left:0;position:absolute;top:0;width:100%}.plyr__preview-thumb__image-container:after{border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15);content:"";pointer-events:none}.plyr__preview-thumb__image-container img{max-height:none;max-width:none}.plyr__preview-thumb__time-container{background:linear-gradient(#0000,#000000bf);background:var(--plyr-video-controls-background,linear-gradient(#0000,#000000bf));border-bottom-left-radius:.36458333vw;border-bottom-left-radius:calc(var(--plyr-menu-radius, .41666667vw) - 1px);border-bottom-right-radius:.36458333vw;border-bottom-right-radius:calc(var(--plyr-menu-radius, .41666667vw) - 1px);bottom:0;left:0;line-height:1.1;padding:1.04166667vw .3125vw .3125vw;position:absolute;right:0;z-index:3}.plyr__preview-thumb__time-container span{color:#fff;font-size:.67708333rem;font-size:var(--plyr-font-size-time,var(--plyr-font-size-small,.67708333rem))}.plyr__preview-scrubbing{bottom:0;filter:blur(1px);height:100%;left:0;margin:auto;opacity:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .3s ease;width:100%;z-index:1}.plyr__preview-scrubbing--is-shown{opacity:1}.plyr__preview-scrubbing img{height:100%;left:0;max-height:none;max-width:none;object-fit:contain;position:absolute;top:0;width:100%}.plyr--no-transition{transition:none!important}.plyr__sr-only{clip:rect(1px,1px,1px,1px);border:0!important;height:1px!important;overflow:hidden;padding:0!important;position:absolute!important;width:1px!important}.plyr [hidden]{display:none!important}._musicScore_10wpn_1{position:relative;width:100%;height:100%;-webkit-overflow-scrolling:touch;overflow:scroll}._musicScore_10wpn_1 ._container_10wpn_8{position:relative;display:block;border:none;width:100%;height:100%;z-index:10}._musicScore_10wpn_1 ._musicModel_10wpn_16{position:absolute;left:0;top:0;right:0;bottom:0}._errorModel_10wpn_23{position:absolute;left:0;top:0;right:0;bottom:0;background:#000;display:flex;align-items:center;justify-content:center;overflow:hidden}._startBtn_10wpn_35{position:absolute;left:50%;bottom:6vh;transform:translate(-50%);z-index:11}._startBtn_10wpn_35:active{opacity:.8}._loading_10wpn_45{position:absolute;left:4%;top:50%;margin-top:-.78125vw}._skeletonWrap_10wpn_51{position:absolute;left:0;top:0;right:0;height:100%;z-index:1;padding-top:1.2rem;display:flex;flex-direction:column;justify-content:center;overflow:hidden;background:#fff;pointer-events:none;font-size:2.08333333rem}._skeleton_10wpn_51{--van-skeleton-paragraph-height: 1.25vw}._skeleton_10wpn_51 .van-skeleton__content .van-skeleton-paragraph{margin:.625vw auto;width:80%!important}._skeleton_10wpn_51 .van-skeleton__content .van-skeleton-paragraph:first-child{width:60%!important}._skeleton_10wpn_51 .van-skeleton__content .van-skeleton-paragraph:last-child{width:100%!important}._videoWrap_1gczm_1{width:100%;height:100%}._videoWrap_1gczm_1 ._controls_1gczm_5{position:absolute;bottom:0;left:0;right:0;width:100%;background:rgba(0,0,0,.6);backdrop-filter:blur(1.35416667vw);height:7.8125vw;padding:0 13.02083333vw 0 2.08333333vw!important;display:flex;align-items:center;transition:all .5s}._videoWrap_1gczm_1 ._controls_1gczm_5 ._time_1gczm_19{display:flex;justify-content:space-between;color:#fff;padding:.20833333vw 1.04166667vw;font-size:1.25rem;font-weight:600;line-height:1.71875vw}._videoWrap_1gczm_1 ._controls_1gczm_5 ._time_1gczm_19>div{font-size:1.25rem!important}._videoWrap_1gczm_1 ._controls_1gczm_5 ._time_1gczm_19 ._line_1gczm_31{font-size:.625rem}._videoWrap_1gczm_1 ._controls_1gczm_5 ._time_1gczm_19 .plyr__time+.plyr__time:before{content:"";margin-right:0}._videoWrap_1gczm_1 ._actions_1gczm_38{display:flex;justify-content:space-between;height:100%;color:#fff;font-size:.625rem;align-items:center}._videoWrap_1gczm_1 ._actions_1gczm_38 ._actionWrap_1gczm_46{display:flex}._videoWrap_1gczm_1 ._actions_1gczm_38 ._actionBtn_1gczm_49{display:flex;width:4.27083333vw;height:4.27083333vw;padding:.20833333vw 0;background:transparent}._videoWrap_1gczm_1 ._actions_1gczm_38 ._actionBtn_1gczm_49>img{width:100%;height:100%}._videoWrap_1gczm_1 ._actions_1gczm_38 ._iconReplay_1gczm_60{width:2.23958333vw;height:2.1875vw;background-color:transparent}._videoWrap_1gczm_1 ._actions_1gczm_38 ._iconReplay_1gczm_60>img{width:100%;height:100%}._videoWrap_1gczm_1 ._slider_1gczm_69{width:100%;padding:0 1.04166667vw 0 .625vw}._videoWrap_1gczm_1 ._slider_1gczm_69 .n-slider .n-slider-rail .n-slider-rail__fill,._videoWrap_1gczm_1 ._slider_1gczm_69 .n-slider .n-slider-handles .n-slider-handle-wrapper{transition:all .2s}._videoWrap_1gczm_1 ._sectionAnimate_1gczm_77{opacity:0;pointer-events:none;transform:translateY(100%);transition:all .5s}._pen_1gl80_1{position:fixed;left:0;right:0;bottom:0;top:0;z-index:501}._open_1gl80_9{display:block}._whiteboard_1gl80_12{background:#fff!important}._hide_1gl80_15{display:none}._iframe_1gl80_18{display:block;width:100%;height:100%;border:0}._dely_1gl80_24{opacity:0}._rightItem_1gl80_27{position:absolute;top:2.08333333vw;left:2.08333333vw;width:9.73958333vw;height:3.38541667vw;cursor:pointer;transition:all .5s}._rightItem_1gl80_27 img{width:100%;height:100%;-moz-user-select:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none}._img_1gl80_52{position:absolute;left:0;top:0;width:100%;height:100%;display:block}._audioWrap_1s1t3_1{width:100%;height:100%;background-color:#fff}._audioContainer_1s1t3_6{position:relative;display:flex;align-items:center;justify-content:center;height:100%;padding:0 12.5vw}._audioContainer_1s1t3_6>div{flex:1}._audioContainer_1s1t3_6 ._audio_1s1t3_1{position:absolute;top:0;opacity:0}._audioContainer_1s1t3_6 ._tempVudio_1s1t3_22{position:absolute;top:0;right:0;bottom:0;left:0;padding:0 12.5vw}._audioContainer_1s1t3_6 canvas{width:100%;height:100%}._controls_1s1t3_34{position:absolute;bottom:0;left:0;right:0;width:100%;background:rgba(0,0,0,.6);backdrop-filter:blur(1.35416667vw);height:7.8125vw;padding:0 13.02083333vw 0 2.08333333vw!important;display:flex;align-items:center;transition:all .5s}._controls_1s1t3_34 ._time_1s1t3_48{display:flex;justify-content:space-between;color:#fff;padding:.20833333vw 1.04166667vw;font-size:1.25rem;font-weight:600;line-height:1.71875vw}._controls_1s1t3_34 ._time_1s1t3_48>div{font-size:1.25rem!important}._controls_1s1t3_34 ._time_1s1t3_48 ._line_1s1t3_60{font-size:.625rem}._controls_1s1t3_34 ._time_1s1t3_48 .plyr__time+.plyr__time:before{content:"";margin-right:0}._actions_1s1t3_67{display:flex;justify-content:space-between;height:100%;color:#fff;font-size:.625rem;align-items:center}._actions_1s1t3_67 ._actionWrap_1s1t3_75{display:flex}._actions_1s1t3_67 ._actionBtn_1s1t3_78{display:flex;width:4.27083333vw;height:4.27083333vw;padding:.20833333vw 0;background:transparent}._actions_1s1t3_67 ._actionBtn_1s1t3_78>img{width:100%;height:100%}._actions_1s1t3_67 ._iconReplay_1s1t3_89{width:2.23958333vw;height:2.1875vw;background-color:transparent}._actions_1s1t3_67 ._iconReplay_1s1t3_89>img{width:100%;height:100%}._slider_1s1t3_98{width:100%;padding:0 1.04166667vw 0 .625vw}._slider_1s1t3_98 .n-slider .n-slider-rail .n-slider-rail__fill,._slider_1s1t3_98 .n-slider .n-slider-handles .n-slider-handle-wrapper{transition:all .2s}._sectionAnimate_1s1t3_106{opacity:0;pointer-events:none;transform:translateY(100%);transition:all .5s}._scrollBar_ds6lg_1{margin:0 1.04166667vw;width:calc(100% - 2.08333333vw)}._treeParent_ds6lg_5{transition:height 1s ease-in-out}._treeChild_ds6lg_8{line-height:2.8125vw}._treeItem_ds6lg_11{display:flex;align-items:center;line-height:2.8125vw;padding:0 .26041667vw;cursor:pointer;border-radius:.52083333vw;font-size:.88541667rem}._treeItem_ds6lg_11:hover{background:#F5F6FA}._treeItem_ds6lg_11 ._title_ds6lg_23{padding-left:.41666667vw;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:14.58333333vw!important;color:rgba(0,0,0,.5);display:flex;align-items:center}._treeItem_ds6lg_11 ._title_ds6lg_23 ._dir_ds6lg_33{flex-shrink:1;display:inline-block;width:.83333333vw;height:.9375vw;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAkCAYAAADo6zjiAAAAAXNSR0IArs4c6QAAAetJREFUWEftmL9Lw0AUx78v0aAgxSFprSDOdhAHJ0FCS3Hs5iR1ERH8tepWxb+gWkUQFzsqIo5FCuLqIA5xtg4drLWUohJNTk4pqGjpxZM4NFMg9333ue/lPe4d4cMTiUS0UqkyzMgZgEs6I7fz43ev78SURyisREy90vXuc8uy7Hosqr+Ew+F+x3HGXaDL60TN6BSgpqrqfrFYvObj3wD45M+OMwlAbSaIhDFOu6rucQh6t720+Ncr/wrNndB1fZ2Cwd4RFy9jElYlHEJBW46MUGiKMdYnrJYgIKIbMozQMiPWISGecAieHaQHgyvCSomC/w0QCASwubGBWCwGTdOE1m3bNvL5POYWFlCtVn/UNnQglUphfnZWaOKvgzOZDFbX1rwB7O7sIJFI/Arg6OgY0zPT3gDG4nFks1koiuIJwnVdJJNJ5E5OvAFw1dDgEExzFJomlqm2/YTT0zNcXF40hP/fWeDJd0FRy4GGDogUonK5jHQ6ja3tbaFNkF6IzGgUlmU1DdEQwEshmuB5n8vJARAtRIVCAaYZRe2hJgdApBDd39/h4PAQlUql6cnfDqWt80DLgZYDhtGzJKsJFco/noL8WO57Y+J7a+Z7c8r3zdf2vP7j+HpBUYf4fEUDQ1bTSoyeoOD2uyuaV7DJ02v4pZ8HAAAAAElFTkSuQmCC) no-repeat center;background-size:contain;margin-right:.3125vw}._treeItem_ds6lg_11 ._title_ds6lg_23._titleSelect_ds6lg_42{color:#198cfe;font-weight:700}._treeItem_ds6lg_11 ._title_ds6lg_23._titleSelect_ds6lg_42 ._dir_ds6lg_33{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAkCAYAAADo6zjiAAAAAXNSR0IArs4c6QAAAc9JREFUWEftmEFIVFEUhr/zGlIIhAwc0rUxbXQfIgy5cuEmmIWYy4KgjRJjK8FdRCBFYLQRBRcDIq5clAyGuk4XJblqoWOLeUUwqIPNifvggU35eO++F8/F3NWFd/5z/vvfe8675wrnRva5XlOXhzS4J5BT6Dz/3XYu4Crs4bAsnbz59kRqvi/xJ91FHTgTSig3bQOFwgmVjFI4fCabxt4jYIL/EtZVuRrKSUwjEepXlLuGhHiyV9n/7ytvJi1U5Aa90vVUJ2jwIuai7OAOk9JV1C3gjp2H2KhtyU6pq8r12K4sHJjsMAqoBTYxyOUm0NEOrwqQvwVtmWiLPj2D8hd4XIKfJxdjAxWYHoZHg9ECN1u/3oCZNUsCb0dhpC8egdVdeLBkSWAoB4vj4Dh2JBoNuL8A7/csCRhYfw8M9tqdgQ/7sHMQTP5yZ4Gd8NFQLQUCFYhSiKo1eFmGOe+aEX4kXojys/DpKCECNoVobB7eBeT9X/eSoL9h1EL01QWjQK2ekAJRCpE5Aysf4cdx+ODGspWGLQVaCki2qNWkmtBoCej1hd61PL3GRNhKvzVLvTk1+5Zqe+4fnFQfKHwSfzzRCLeTalpF+K7K53890fwGwiHWBQCa64sAAAAASUVORK5CYII=) no-repeat center;background-size:contain}._treeItem_ds6lg_11 ._arrow_ds6lg_50{display:inline-block;width:.72916667vw;height:.78125vw;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAeCAYAAAA/xX6fAAAAAXNSR0IArs4c6QAAARRJREFUSEvt1cFKxDAQBuCZqVroua19gMpC32jx3h76En2aFQVvnnwCTz6Aewlsly0Yll667imV7vaoxElCQDHXhn5k8mcGwfNCzx78g5DneTgMQ1ZV1aZpGmV7BdqSxvH1EmBcEME6iqJHIcTRBtWCSZLV46iSCUGk9zC8uGvbdm+KssAJIaIDETx0XSdMUDY4IwogeJJy98pFTcGTgxi81HX1zAmTFXguMS9M1iA3TE5ATpicgT8Nk2twdi9XUm7fvkrwrwe179PZCRHpIwjgXteBnICcHmsNen34PlubNhzfNXV2Sb2OJ044jE+YpumtUnDDDYcxWBTFVd/3WVmWLWfuGYPcia7brw2N7gfc738f/ATIjb8fAy3RmAAAAABJRU5ErkJggg==) no-repeat center;background-size:contain}._treeItem_ds6lg_11 ._arrow_ds6lg_50._arrowSelect_ds6lg_57{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAVBJREFUSEvtlLFKw1AYhf+TqggFcXCxUkFxcnAVETo5KT6BowUHQWz0AfoAkoiboIubs9DJSQXxBToVhyoWpJPooiZHMlRrucnNbWIHScbkP/8H5343kAE/GDBPMmDqjWeV/m2lC2fMt5/lnCIzaZAAaYyPykZ9G6+dfb/OsOBymR5v0oB977BQatm4VgKrpHXsyIWQq6lAgdqWLetVwFcCg5dzRxx7e5dbEc4ng6KeH5Glxg5euvcor8W0y9lPX+5ITvQDBdAesmSxWcF9bz70HhYPWfI8uSQ5bAIF8JHLycrDLq5UuciLX3C4SZ8nRkAL5Scbp2EZ7Z9m8oCOCCvxoHBb+7CjZrXA2OYqjDSutBPQm6s2sm9gEAwzN8rIRMAg3GuuzsjEwGBBt7nQGJkKMFgy5XINvvBxD7V49v5MaS01Xaibz4C6hoy///9KvwAj538d1KBtmgAAAABJRU5ErkJggg==) no-repeat center;background-size:contain}._treeItem_ds6lg_11 ._childArrow_ds6lg_61{width:.625vw}._treeItem_ds6lg_11._childItem_ds6lg_64{padding-left:1.5625vw;font-size:.78125rem}._treeItem_ds6lg_11._childItem_ds6lg_64 ._title_ds6lg_23{color:#131415}._treeItem_ds6lg_11._childSelect_ds6lg_71{background:#F5F6FA}._treeItem_ds6lg_11._childSelect_ds6lg_71 ._title_ds6lg_23{color:#198cfe;font-weight:700}\n',document.head.appendChild(__vite_style__);var FUNCTION="function",OBJECT="object",STRING="string",NUMBER="number",UNDEFINED="undefined",IS_WINDOW=typeof window!==UNDEFINED,doc=typeof document!==UNDEFINED&&document,OPEN_CLOSED_CHARACTERS=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],TINY_NUM$1=1e-7,DEFAULT_UNIT_PRESETS={cm:function(t){return 96*t/2.54},mm:function(t){return 96*t/254},in:function(t){return 96*t},pt:function(t){return 96*t/72},pc:function(t){return 96*t/6},"%":function(t,e){return t*e/100},vw:function(t,e){return void 0===e&&(e=window.innerWidth),t/100*e},vh:function(t,e){return void 0===e&&(e=window.innerHeight),t/100*e},vmax:function(t,e){return void 0===e&&(e=Math.max(window.innerWidth,window.innerHeight)),t/100*e},vmin:function(t,e){return void 0===e&&(e=Math.min(window.innerWidth,window.innerHeight)),t/100*e}};
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- function __spreadArrays$2(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var i=Array(t),n=0;for(e=0;e<r;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,n++)i[n]=a[o];return i}function dot$1(t,e,r,i){return(t*i+e*r)/(r+i)}function isUndefined(t){return typeof t===UNDEFINED}function isObject$1(t){return t&&typeof t===OBJECT}function isArray$2(t){return Array.isArray(t)}function isString(t){return typeof t===STRING}function isNumber(t){return typeof t===NUMBER}function isFunction$1(t){return typeof t===FUNCTION}function isEqualSeparator(t,e){return(""===e||" "==e)&&(""===t||" "==t)||t===e}function findOpen(t,e,r,i,n){return findIgnore(t,e,r)?r:findClose(t,e,r+1,i,n)}function findIgnore(t,e,r){if(!t.ignore)return null;var i=e.slice(Math.max(r-3,0),r+3).join("");return new RegExp(t.ignore).exec(i)}function findClose(t,e,r,i,n){for(var a,o=function(r){var o=e[r].trim();if(o===t.close&&!findIgnore(t,e,r))return{value:r};var s=r,l=find$1(n,(function(t){return t.open===o}));if(l&&(s=findOpen(l,e,r,i,n)),-1===s)return a=r,"break";a=r=s},s=r;s<i;++s){var l=o(s);if(s=a,"object"==typeof l)return l.value;if("break"===l)break}return-1}function splitText(t,e){var r=isString(e)?{separator:e}:e,i=r.separator,n=void 0===i?",":i,a=r.isSeparateFirst,o=r.isSeparateOnlyOpenClose,s=r.isSeparateOpenClose,l=void 0===s?o:s,p=r.openCloseCharacters,c=void 0===p?OPEN_CLOSED_CHARACTERS:p,h=c.map((function(t){var e=t.open,r=t.close;return e===r?e:e+"|"+r})).join("|"),u=new RegExp("(\\s*"+n+"\\s*|"+h+"|\\s+)","g"),d=t.split(u).filter((function(t){return t&&"undefined"!==t})),f=d.length,g=[],m=[];function v(){return!!m.length&&(g.push(m.join("")),m=[],!0)}for(var y,b=function(e){var r=d[e].trim(),i=e,s=find$1(c,(function(t){return t.open===r})),p=find$1(c,(function(t){return t.close===r}));if(s){if(-1!==(i=findOpen(s,d,e,f,c))&&l)return v()&&a?(y=e,"break"):(g.push(d.slice(e,i+1).join("")),e=i,a?(y=e,"break"):(y=e,"continue"))}else{if(p&&!findIgnore(p,d,e)){var h=__spreadArrays$2(c);return h.splice(c.indexOf(p),1),{value:splitText(t,{separator:n,isSeparateFirst:a,isSeparateOnlyOpenClose:o,isSeparateOpenClose:l,openCloseCharacters:h})}}if(isEqualSeparator(r,n)&&!o)return v(),a?(y=e,"break"):(y=e,"continue")}-1===i&&(i=f-1),m.push(d.slice(e,i+1).join("")),y=e=i},_=0;_<f;++_){var x=b(_);if(_=y,"object"==typeof x)return x.value;if("break"===x)break}return m.length&&g.push(m.join("")),g}function splitSpace(t){return splitText(t,"")}function splitComma(t){return splitText(t,",")}function splitBracket(t){var e=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(t);return!e||e.length<4?{}:{prefix:e[1],value:e[2],suffix:e[3]}}function splitUnit(t){var e=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(t);if(!e)return{prefix:"",unit:"",value:NaN};var r=e[1],i=e[2];return{prefix:r,unit:e[3],value:parseFloat(i)}}function camelize(t){return t.replace(/[\s-_]+([^\s-_])/g,(function(t,e){return e.toUpperCase()}))}function decamelize(t,e){return void 0===e&&(e="-"),t.replace(/([a-z])([A-Z])/g,(function(t,r,i){return""+r+e+i.toLowerCase()}))}function now(){return Date.now?Date.now():(new Date).getTime()}function findIndex(t,e,r){void 0===r&&(r=-1);for(var i=t.length,n=0;n<i;++n)if(e(t[n],n,t))return n;return r}function find$1(t,e,r){var i=findIndex(t,e);return i>-1?t[i]:r}var requestAnimationFrame$1=function(){var t=now(),e=IS_WINDOW&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame);return e?e.bind(window):function(e){var r=now();return setTimeout((function(){e(r-t)}),1e3/60)}}(),cancelAnimationFrame$1=function(){var t=IS_WINDOW&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame);return t?t.bind(window):function(t){clearTimeout(t)}}();function getKeys(t){return Object.keys(t)}function getValues(t){return getKeys(t).map((function(e){return t[e]}))}function convertUnitSize(t,e){var r=splitUnit(t),i=r.value,n=r.unit;if(isObject$1(e)){var a=e[n];if(a){if(isFunction$1(a))return a(i);if(DEFAULT_UNIT_PRESETS[n])return DEFAULT_UNIT_PRESETS[n](i,a)}}else if("%"===n)return i*e/100;return DEFAULT_UNIT_PRESETS[n]?DEFAULT_UNIT_PRESETS[n](i):i}function between(t,e,r){return Math.max(e,Math.min(t,r))}function checkBoundSize(t,e,r,i){return void 0===i&&(i=t[0]/t[1]),[[throttle(e[0],TINY_NUM$1),throttle(e[0]/i,TINY_NUM$1)],[throttle(e[1]*i,TINY_NUM$1),throttle(e[1],TINY_NUM$1)]].filter((function(t){return t.every((function(t,i){var n=e[i],a=throttle(n,TINY_NUM$1);return r?t<=n||t<=a:t>=n||t>=a}))}))[0]||t}function calculateBoundSize(t,e,r,i){if(!i)return t.map((function(t,i){return between(t,e[i],r[i])}));var n=t[0],a=t[1],o=!0===i?n/a:i,s=checkBoundSize(t,e,!1,o),l=s[0],p=s[1],c=checkBoundSize(t,r,!0,o),h=c[0],u=c[1];return n<l||a<p?(n=l,a=p):(n>h||a>u)&&(n=h,a=u),[n,a]}function sum(t){for(var e=0,r=t.length-1;r>=0;--r)e+=t[r];return e}function average(t){for(var e=t.length,r=0,i=e-1;i>=0;--i)r+=t[i];return e?r/e:0}function getRad$1(t,e){var r=e[0]-t[0],i=e[1]-t[1],n=Math.atan2(i,r);return n>=0?n:n+2*Math.PI}function getCenterPoint(t){return[0,1].map((function(e){return average(t.map((function(t){return t[e]})))}))}function getShapeDirection(t){var e=getCenterPoint(t),r=getRad$1(e,t[0]),i=getRad$1(e,t[1]);return r<i&&i-r<Math.PI||r>i&&i-r<-Math.PI?1:-1}function getDist$2(t,e){return Math.sqrt(Math.pow((e?e[0]:0)-t[0],2)+Math.pow((e?e[1]:0)-t[1],2))}function throttle(t,e){if(!e)return t;var r=1/e;return Math.round(t/e)/r}function throttleArray(t,e){return t.forEach((function(r,i){t[i]=throttle(t[i],e)})),t}function counter(t){for(var e=[],r=0;r<t;++r)e.push(r);return e}function flat$2(t){return t.reduce((function(t,e){return t.concat(e)}),[])}function pushSet(t,e){-1===t.indexOf(e)&&t.push(e)}function hasClass(t,e){return t.classList?t.classList.contains(e):!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function addClass(t,e){t.classList?t.classList.add(e):t.className+=" "+e}function removeClass(t,e){if(t.classList)t.classList.remove(e);else{var r=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(r," ")}}function addEvent(t,e,r,i){t.addEventListener(e,r,i)}function removeEvent(t,e,r,i){t.removeEventListener(e,r,i)}function getDocument(t){return(null==t?void 0:t.ownerDocument)||doc}function getDocumentElement(t){return getDocument(t).documentElement}function getDocumentBody(t){return getDocument(t).body}function getWindow(t){var e;return(null===(e=null==t?void 0:t.ownerDocument)||void 0===e?void 0:e.defaultView)||window}function isWindow(t){return t&&"postMessage"in t&&"blur"in t&&"self"in t}function isNode(t){return isObject$1(t)&&t.nodeName&&t.nodeType&&"ownerDocument"in t}var PolyMap=function(){function t(){this.keys=[],this.values=[]}var e=t.prototype;return e.get=function(t){return this.values[this.keys.indexOf(t)]},e.set=function(t,e){var r=this.keys,i=this.values,n=r.indexOf(t),a=-1===n?r.length:n;r[a]=t,i[a]=e},t}(),HashMap=function(){function t(){this.object={}}var e=t.prototype;return e.get=function(t){return this.object[t]},e.set=function(t,e){this.object[t]=e},t}(),SUPPORT_MAP="function"==typeof Map,Link=function(){function t(){}var e=t.prototype;return e.connect=function(t,e){this.prev=t,this.next=e,t&&(t.next=this),e&&(e.prev=this)},e.disconnect=function(){var t=this.prev,e=this.next;t&&(t.next=e),e&&(e.prev=t)},e.getIndex=function(){for(var t=this,e=-1;t;)t=t.prev,++e;return e},t}();function orderChanged(t,e){var r=[],i=[];return t.forEach((function(t){var e=t[0],n=t[1],a=new Link;r[e]=a,i[n]=a})),r.forEach((function(t,e){t.connect(r[e-1])})),t.filter((function(t,r){return!e[r]})).map((function(t,e){var n=t[0],a=t[1];if(n===a)return[0,0];var o=r[n],s=i[a-1],l=o.getIndex();return o.disconnect(),s?o.connect(s,s.next):o.connect(void 0,r[0]),[l,o.getIndex()]}))}var Result=function(){function t(t,e,r,i,n,a,o,s){this.prevList=t,this.list=e,this.added=r,this.removed=i,this.changed=n,this.maintained=a,this.changedBeforeAdded=o,this.fixed=s}var e=t.prototype;return Object.defineProperty(e,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(e,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),e.caculateOrdered=function(){var t=orderChanged(this.changedBeforeAdded,this.fixed),e=this.changed,r=[];this.cacheOrdered=t.filter((function(t,i){var n=t[0],a=t[1],o=e[i],s=o[0],l=o[1];if(n!==a)return r.push([s,l]),!0})),this.cachePureChanged=r},t}();function diff$1(t,e,r){var i=SUPPORT_MAP?Map:r?HashMap:PolyMap,n=r||function(t){return t},a=[],o=[],s=[],l=t.map(n),p=e.map(n),c=new i,h=new i,u=[],d=[],f={},g=[],m=0,v=0;return l.forEach((function(t,e){c.set(t,e)})),p.forEach((function(t,e){h.set(t,e)})),l.forEach((function(t,e){var r=h.get(t);void 0===r?(++v,o.push(e)):f[r]=v})),p.forEach((function(t,e){var r=c.get(t);void 0===r?(a.push(e),++m):(s.push([r,e]),v=f[e]||0,u.push([r-v,e-m]),d.push(e===r),r!==e&&g.push([r,e]))})),o.reverse(),new Result(t,e,a,o,g,s,u,d)}var ListDiffer=function(){function t(t,e){void 0===t&&(t=[]),this.findKeyCallback=e,this.list=[].slice.call(t)}return t.prototype.update=function(t){var e=[].slice.call(t),r=diff$1(this.list,e,this.findKeyCallback);return this.list=e,r},t}(),extendStatics$5=function(t,e){return extendStatics$5=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},extendStatics$5(t,e)};function __extends$5(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}extendStatics$5(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var __assign$7=function(){return __assign$7=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},__assign$7.apply(this,arguments)};function __rest$2(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]])}return r}function __spreadArray$1(t,e,r){if(r||2===arguments.length)for(var i,n=0,a=e.length;n<a;n++)!i&&n in e||(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}function fillKeys(t){var e=0;return t.map((function(t){return null==t?"$compat".concat(++e):"".concat(t)}))}function flat$1(t){var e=[];return t.forEach((function(t){e=e.concat(isArray$2(t)?flat$1(t):t)})),e}function fillProps(t,e){if(!e)return t;for(var r in e)isUndefined(t[r])&&(t[r]=e[r]);return t}function isDiff(t,e){if(t===e)return!1;for(var r in t)if(!(r in e))return!0;for(var r in e)if(t[r]!==e[r])return!0;return!1}function getAttributes(t){var e=t.className,r=__rest$2(t,["className"]);return null!=e&&(r.class=e),delete r.style,delete r.children,r}function splitProps(t){var e={},r={};for(var i in t)0===i.indexOf("on")?r[i]=t[i]:e[i]=t[i];return[e,r]}function findContainerNode(t){if(!t)return null;var e=t.b;return isNode(e)?e:findContainerNode(t.c)}function removeNode(t){var e=t.parentNode;e&&e.removeChild(t)}function executeHooks(t){t.forEach((function(t){t()}))}function renderFunctionComponent(){return this.constructor(this.props,this.context)}var hooksIndex=0,Provider=function(){function t(t,e,r,i,n,a,o){void 0===o&&(o={}),this.t=t,this.d=e,this.k=r,this.i=i,this.c=n,this.ref=a,this.ps=o,this.typ="prov",this._ps=[],this._cs={},this._hyd=null,this._sel=!1}var e=t.prototype;return e.s=function(){return!0},e.u=function(t,e,r,i,n){var a=this,o=a.d,s=flat$1(getValues(e).filter((function(t){return t.$_req})).map((function(t){return t.$_subs}))),l=find$1(s,(function(t){return t.d===o}));if(a.b&&!isString(r)&&!n&&!a.s(r.props,i)&&!l)return s.reduce((function(t,e){var r=e.d;return t[0]?t[0].d===r&&t.push(e):r>o&&t.push(e),t}),[]).forEach((function(r){renderProviders(r,r._ps,[r.o],t,e,!0)})),!1;a.o=r,a.ss(i);var p=a.ps;return isString(r)||(a.ps=r.props,a.ref=r.ref),setCurrentInstance(this),a.r(t,e,a.b?p:{},i),!0},e.md=function(){this.rr()},e.ss=function(){},e.ud=function(){this.rr()},e.rr=function(){var t=this,e=t.ref,r=t.fr;e&&e(r?r.current:t.b)},t}();function getCurrentInstance(){return Object.__CROACT_CURRENT_INSTNACE__}function getHooksIndex(){return hooksIndex}function setHooksInex(t){hooksIndex=t}function setCurrentInstance(t){return Object.__CROACT_CURRENT_INSTNACE__=t,hooksIndex=0,t}var Component=function(){function t(t,e){void 0===t&&(t={}),this.props=t,this.context=e,this.state={},this.$_timer=0,this.$_state={},this.$_subs=[],this.$_cs={}}var e=t.prototype;return e.render=function(){return null},e.shouldComponentUpdate=function(t,e){return this.props!==t||this.state!==e},e.setState=function(t,e,r){var i=this;i.$_timer||(i.$_state={}),clearTimeout(i.$_timer),i.$_timer=0,i.$_state=__assign$7(__assign$7({},i.$_state),t),r?i.$_setState(e,r):i.$_timer=window.setTimeout((function(){i.$_timer=0,i.$_setState(e,r)}))},e.forceUpdate=function(t){this.setState({},t,!0)},e.componentDidMount=function(){},e.componentDidUpdate=function(t,e){},e.componentWillUnmount=function(){},e.$_setState=function(t,e){var r=[],i=this.$_p;renderProviders(i.c,[i],[i.o],r,i._cs,__assign$7(__assign$7({},this.state),this.$_state),e)&&(t&&r.push(t),executeHooks(r),setCurrentInstance(null))},t}(),PureComponent=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$5(e,t),e.prototype.shouldComponentUpdate=function(t,e){return isDiff(this.props,t)||isDiff(this.state,e)},e}(Component);function createRef(t){var e=function(t){e.current=t};return e.current=t,e}function forwardRef(t){return t._fr=!0,t}function createComponent(t,e,r,i){var n,a;return(null===(n=null==t?void 0:t.prototype)||void 0===n?void 0:n.render)?a=new t(e,r):((a=new Component(e,r)).constructor=t,t._fr?(i.fr=createRef(),a.render=function(){return this.constructor(this.props,i.fr)}):a.render=renderFunctionComponent),a.$_p=i,a}var ComponentProvider=function(t){function e(e,r,i,n,a,o,s){void 0===s&&(s={});var l=t.call(this,e,r,i,n,a,o,fillProps(s,e.defaultProps))||this;return l.typ="comp",l._usefs=[],l._uefs=[],l._defs=[],l}__extends$5(e,t);var r=e.prototype;return r.s=function(t,e){var r=this.b;return!1!==r.shouldComponentUpdate(fillProps(t,this.t.defaultProps),e||r.state)},r.r=function(t,e,r){var i,n,a=this,o=a.t;a.ps=fillProps(a.ps,a.t.defaultProps);var s=a.ps,l=!a.b,p=o.contextType,c=a.b,h=null==p?void 0:p.get(a);a._cs=e,l?(c=createComponent(o,s,h,a),a.b=c):(c.props=s,c.context=h);var u=c.state;a._usefs=[],a._uefs=[];var d=c.render();0===(null===(n=null===(i=null==d?void 0:d.props)||void 0===i?void 0:i.children)||void 0===n?void 0:n.length)&&(d.props.children=a.ps.children);var f=__assign$7(__assign$7({},e),c.$_cs);renderProviders(a,a._ps,d?[d]:[],t,f),l?a._uefs.push((function(){null==p||p.register(a),c.componentDidMount()})):a._uefs.push((function(){c.componentDidUpdate(r,u)})),t.push((function(){a._usefs.forEach((function(t){t()})),l?a.md():a.ud(),a._defs=a._uefs.map((function(t){return t()}))}))},r.ss=function(t){var e=this.b;e&&t&&(e.state=t)},r.un=function(){var t,e=this;e._ps.forEach((function(t){t.un()})),null===(t=e.t.contextType)||void 0===t||t.unregister(e),clearTimeout(e.b.$_timer),e._defs.forEach((function(t){t&&t()})),e.b.componentWillUnmount()},e}(Provider);function diffAttributes(t,e,r){var i=diffObject(getAttributes(t),getAttributes(e)),n=i.added,a=i.removed,o=i.changed;for(var s in n)r.setAttribute(s,n[s]);for(var l in o)r.setAttribute(l,o[l][1]);for(var p in a)r.removeAttribute(p)}function diffEvents(t,e,r){var i=diffObject(t,e),n=i.added,a=i.removed;for(var o in a)r.e(o,!0);for(var s in n)r.e(s)}function diffObject(t,e){var r=getKeys(t),i=getKeys(e),n=diff$1(r,i,(function(t){return t})),a={},o={},s={};return n.added.forEach((function(t){var r=i[t];a[r]=e[r]})),n.removed.forEach((function(e){var i=r[e];o[i]=t[i]})),n.maintained.forEach((function(i){var n=i[0],a=r[n],o=[t[a],e[a]];t[a]!==e[a]&&(s[a]=o)})),{added:a,removed:o,changed:s}}function diffStyle(t,e,r){var i=r.style,n=diffObject(t,e),a=n.added,o=n.removed,s=n.changed;for(var l in a){var p=decamelize(l,"-");i.setProperty(p,a[l])}for(var l in s){var c=decamelize(l,"-");i.setProperty(c,s[l][1])}for(var l in o){var h=decamelize(l,"-");i.removeProperty(h)}}function getNativeEventName(t){return t.replace(/^on/g,"").toLowerCase()}var ElementProvider=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.typ="elem",e._es={},e._svg=!1,e}__extends$5(e,t);var r=e.prototype;return r.e=function(t,e){var r=this,i=r._es,n=r.b,a=getNativeEventName(t);e?(removeEvent(n,a,i[t]),delete i[t]):(i[t]=function(e){var i,n;null===(n=(i=r.ps)[t])||void 0===n||n.call(i,e)},addEvent(n,a,i[t]))},r.s=function(t){return isDiff(this.ps,t)},r.r=function(t,e,r){var i,n=this,a=!n.b,o=n.ps;if(a){var s=findContainerNode(n.c),l=!1;l=!(!n._svg&&"svg"!==n.t)||s&&s.ownerSVGElement,n._svg=l;var p=null===(i=n._hyd)||void 0===i?void 0:i.splice(0,1)[0],c=n.t;if(p)n._hyd=[].slice.call(p.children||[]);else{var h=getDocument(s);p=l?h.createElementNS("http://www.w3.org/2000/svg",c):h.createElement(c)}n.b=p}renderProviders(n,n._ps,o.children,t,e);var u=n.b,d=splitProps(r),f=d[0],g=d[1],m=splitProps(o),v=m[0],y=m[1];return diffAttributes(f,v,u),diffEvents(g,y,n),diffStyle(r.style||{},o.style||{},u),t.push((function(){a?n.md():n.ud()})),!0},r.un=function(){var t=this,e=t._es,r=t.b;for(var i in e)removeEvent(r,i,e[i]);t._ps.forEach((function(t){t.un()})),t._es={},t._sel||removeNode(r)},e}(Provider);function findDOMNode(t){if(!t||isNode(t))return t;var e=t.$_p._ps;return e.length?findDOMNode(e[0].b):null}function findNodeProvider(t){if(t){if(t.b&&isNode(t.b))return t;var e=t._ps;return e.length?findNodeProvider(e[0]):null}}function createElement(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var n=e||{},a=n.key,o=n.ref,s=__rest$2(n,["key","ref"]);return{type:t,key:a,ref:o,props:__assign$7(__assign$7({},s),{children:flat$2(r).filter((function(t){return null!=t&&!1!==t}))})}}var ContainerProvider=function(t){function e(e,r){void 0===r&&(r=0);var i=t.call(this,"container",r,"container",0,null)||this;return i.typ="container",i.b=e,i}__extends$5(e,t);var r=e.prototype;return r.r=function(){return!0},r.un=function(){},e}(Provider),TextProvider=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.typ="text",e}__extends$5(e,t);var r=e.prototype;return r.r=function(t){var e,r=this,i=!r.b;if(i){var n=findContainerNode(r.c),a=null===(e=r._hyd)||void 0===e?void 0:e.splice(0,1)[0];r.b=a||getDocument(n).createTextNode(r.t.replace("text_",""))}return t.push((function(){i?r.md():r.ud()})),!0},r.un=function(){removeNode(this.b)},e}(Provider);function diffProviders(t,e,r){var i=r.map((function(t){return isString(t)?null:t.key})),n=diff$1(fillKeys(e.map((function(t){return t.k}))),fillKeys(i),(function(t){return t}));n.removed.forEach((function(t){e.splice(t,1)[0].un()})),n.ordered.forEach((function(t){var r=t[0],i=t[1],n=e.splice(r,1)[0];e.splice(i,0,n);var a=findDOMNode(n.b),o=findDOMNode(e[i+1]&&e[i+1].b);a&&a.parentNode.insertBefore(a,o)})),n.added.forEach((function(n){e.splice(n,0,createProvider(r[n],i[n],n,t))}));var a=n.maintained.filter((function(n){n[0];var a=n[1],o=r[a],s=e[a];return(isString(o)?"text_".concat(o):o.type)!==s.t?(s.un(),e.splice(a,1,createProvider(o,i[a],a,t)),!0):(s.i=a,!1)}));return __spreadArray$1(__spreadArray$1([],n.added,!0),a.map((function(t){return t[0],t[1]})),!0)}function getNextSibiling(t,e){for(var r=t._ps,i=r.length,n=e.i+1;n<i;++n){var a=findDOMNode(r[n].b);if(a)return a}return null}function createProvider(t,e,r,i){var n=i.d+1;if(isString(t)||isNumber(t))return new TextProvider("text_".concat(t),n,e,r,i,null,{});var a=t.type;return new("string"==typeof a?ElementProvider:ComponentProvider)(a,n,e,r,i,t.ref,t.props)}function renderProviders(t,e,r,i,n,a,o){var s=diffProviders(t,e,r),l=t._hyd,p=e.filter((function(t,e){return t._hyd=l,t.u(i,n,r[e],a,o)}));"container"===t.typ&&t._sel&&e.forEach((function(t){var e=findNodeProvider(t);e&&(e._sel=!0)})),t._hyd=null;var c=findContainerNode(t);return c&&s.reverse().forEach((function(r){var i=e[r],n=findDOMNode(i.b);if(n&&c!==n&&!n.parentNode){var a=getNextSibiling(t,i);c.insertBefore(n,a)}})),p.length>0}function renderProvider(t,e,r,i){void 0===r&&(r=e.__CROACT__),void 0===i&&(i={});var n=!!r;r||(r=new ContainerProvider(e));var a=[];return renderProviders(r,r._ps,t?[t]:[],a,i,void 0,void 0),executeHooks(a),setCurrentInstance(null),n||(e.__CROACT__=r),r}function renderSelf(t,e,r){return!r&&t&&((r=new ContainerProvider(e.parentElement))._hyd=[e],r._sel=!0),renderProvider(t,e,r),r}function checkHookInfo(t){var e=getCurrentInstance(),r=e._hs||(e._hs=[]),i=getHooksIndex(),n=r[i];if(setHooksInex(i+1),n){if(!isDiff(n.deps,t.deps))return n.updated=!1,n;r[i]=t}else r.push(t);return t.value=t.func(),t.updated=!0,t}function useMemo(t,e){return checkHookInfo({func:t,deps:e}).value}function useRef(t){return useMemo((function(){return createRef(t)}),[])}function useEffect(t,e,r){var i=getCurrentInstance(),n=checkHookInfo({func:function(){return t},deps:e}),a=r?i._usefs:i._uefs;n.updated?a.push((function(){return n.effect&&n.effect(),n.effect=t(),n.effect})):a.push((function(){return n.effect}))}function useImperativeHandle(t,e,r){useEffect((function(){null==t||t(e())}),r,!0)}function some(t,e){for(var r=t.length,i=0;i<r;++i)if(e(t[i],i))return!0;return!1}function find(t,e){for(var r=t.length,i=0;i<r;++i)if(e(t[i],i))return t[i];return null}function getUserAgentString(t){var e=t;if(void 0===e){if("undefined"==typeof navigator||!navigator)return"";e=navigator.userAgent||""}return e.toLowerCase()}function execRegExp(t,e){try{return new RegExp(t,"g").exec(e)}catch(r){return null}}function hasUserAgentData(){if("undefined"==typeof navigator||!navigator||!navigator.userAgentData)return!1;var t=navigator.userAgentData,e=t.brands||t.uaList;return!(!e||!e.length)}function findVersion(t,e){var r=execRegExp("("+t+")((?:\\/|\\s|:)([0-9|\\.|_]+))",e);return r?r[3]:""}function convertVersion(t){return t.replace(/_/g,".")}function findPreset(t,e){var r=null,i="-1";return some(t,(function(t){var n=execRegExp("("+t.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",e);return!(!n||t.brand)&&(r=t,i=n[3]||"-1",t.versionAlias?i=t.versionAlias:t.versionTest&&(i=findVersion(t.versionTest.toLowerCase(),e)||i),i=convertVersion(i),!0)})),{preset:r,version:i}}function findPresetBrand(t,e){var r={brand:"",version:"-1"};return some(t,(function(t){var i=findBrand(e,t);return!!i&&(r.brand=t.id,r.version=t.versionAlias||i.version,"-1"!==r.version)})),r}function findBrand(t,e){return find(t,(function(t){var r=t.brand;return execRegExp(""+e.test,r.toLowerCase())}))}var BROWSER_PRESETS=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],CHROMIUM_PRESETS=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],WEBKIT_PRESETS=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],WEBVIEW_PRESETS=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],OS_PRESETS=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function isWebView(t){return!!findPreset(WEBVIEW_PRESETS,t).preset}function getLegacyAgent(t){var e=getUserAgentString(t),r=!!/mobi/g.exec(e),i={name:"unknown",version:"-1",majorVersion:-1,webview:isWebView(e),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},n={name:"unknown",version:"-1",majorVersion:-1},a=findPreset(BROWSER_PRESETS,e),o=a.preset,s=a.version,l=findPreset(OS_PRESETS,e),p=l.preset,c=l.version,h=findPreset(CHROMIUM_PRESETS,e);if(i.chromium=!!h.preset,i.chromiumVersion=h.version,!i.chromium){var u=findPreset(WEBKIT_PRESETS,e);i.webkit=!!u.preset,i.webkitVersion=u.version}return p&&(n.name=p.id,n.version=c,n.majorVersion=parseInt(c,10)),o&&(i.name=o.id,i.version=s,i.webview&&"ios"===n.name&&"safari"!==i.name&&(i.webview=!1)),i.majorVersion=parseInt(i.version,10),{browser:i,os:n,isMobile:r,isHints:!1}}function getClientHintsAgent(t){var e=navigator.userAgentData,r=(e.uaList||e.brands).slice(),i=t&&t.fullVersionList,n=e.mobile||!1,a=r[0],o=(t&&t.platform||e.platform||navigator.platform).toLowerCase(),s={name:a.brand,version:a.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!findPresetBrand(WEBVIEW_PRESETS,r).brand||isWebView(getUserAgentString())},l={name:"unknown",version:"-1",majorVersion:-1};s.webkit=!s.chromium&&some(WEBKIT_PRESETS,(function(t){return findBrand(r,t)}));var p=findPresetBrand(CHROMIUM_PRESETS,r);if(s.chromium=!!p.brand,s.chromiumVersion=p.version,!s.chromium){var c=findPresetBrand(WEBKIT_PRESETS,r);s.webkit=!!c.brand,s.webkitVersion=c.version}var h=find(OS_PRESETS,(function(t){return new RegExp(""+t.test,"g").exec(o)}));if(l.name=h?h.id:"",t&&(l.version=t.platformVersion),i&&i.length){var u=findPresetBrand(BROWSER_PRESETS,i);s.name=u.brand||s.name,s.version=u.version||s.version}else{var d=findPresetBrand(BROWSER_PRESETS,r);s.name=d.brand||s.name,s.version=d.brand&&t?t.uaFullVersion:d.version}return s.webkit&&(l.name=n?"ios":"mac"),"ios"===l.name&&s.webview&&(s.version="-1"),l.version=convertVersion(l.version),s.version=convertVersion(s.version),l.majorVersion=parseInt(l.version,10),s.majorVersion=parseInt(s.version,10),{browser:s,os:l,isMobile:n,isHints:!0}}function agent$1(t){return void 0===t&&hasUserAgentData()?getClientHintsAgent():getLegacyAgent(t)}function add$2(t,e,r,i,n,a){for(var o=0;o<n;++o){var s=r+o*n,l=i+o*n;t[s]+=t[l]*a,e[s]+=e[l]*a}}function swap(t,e,r,i,n){for(var a=0;a<n;++a){var o=r+a*n,s=i+a*n,l=t[o],p=e[o];t[o]=t[s],t[s]=l,e[o]=e[s],e[s]=p}}function divide(t,e,r,i,n){for(var a=0;a<i;++a){var o=r+a*i;t[o]/=n,e[o]/=n}}function ignoreDimension(t,e,r){void 0===r&&(r=Math.sqrt(t.length));for(var i=t.slice(),n=0;n<r;++n)i[n*r+e-1]=0,i[(e-1)*r+n]=0;return i[(e-1)*(r+1)]=1,i}function invert(t,e){void 0===e&&(e=Math.sqrt(t.length));for(var r=t.slice(),i=createIdentityMatrix(e),n=0;n<e;++n){var a=e*n+n;if(!throttle(r[a],TINY_NUM$1))for(var o=n+1;o<e;++o)if(r[e*n+o]){swap(r,i,n,o,e);break}if(!throttle(r[a],TINY_NUM$1))return[];divide(r,i,n,e,r[a]);for(o=0;o<e;++o){var s=o,l=r[o+n*e];throttle(l,TINY_NUM$1)&&n!==o&&add$2(r,i,s,n,e,-l)}}return i}function transpose(t,e){void 0===e&&(e=Math.sqrt(t.length));for(var r=[],i=0;i<e;++i)for(var n=0;n<e;++n)r[n*e+i]=t[e*i+n];return r}function getOrigin(t,e){void 0===e&&(e=Math.sqrt(t.length));for(var r=[],i=t[e*e-1],n=0;n<e-1;++n)r[n]=t[e*(e-1)+n]/i;return r[e-1]=0,r}function fromTranslation(t,e){for(var r=createIdentityMatrix(e),i=0;i<e-1;++i)r[e*(e-1)+i]=t[i]||0;return r}function convertPositionMatrix(t,e){for(var r=t.slice(),i=t.length;i<e-1;++i)r[i]=0;return r[e-1]=1,r}function convertDimension(t,e,r){if(void 0===e&&(e=Math.sqrt(t.length)),e===r)return t;for(var i=createIdentityMatrix(r),n=Math.min(e,r),a=0;a<n-1;++a){for(var o=0;o<n-1;++o)i[a*r+o]=t[a*e+o];i[(a+1)*r-1]=t[(a+1)*e-1],i[(r-1)*r+a]=t[(e-1)*e+a]}return i[r*r-1]=t[e*e-1],i}function multiplies(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=createIdentityMatrix(t);return e.forEach((function(e){i=multiply(i,e,t)})),i}function multiply(t,e,r){void 0===r&&(r=Math.sqrt(t.length));var i=[],n=t.length/r,a=e.length/n;if(!n)return e;if(!a)return t;for(var o=0;o<r;++o)for(var s=0;s<a;++s){i[s*r+o]=0;for(var l=0;l<n;++l)i[s*r+o]+=t[l*r+o]*e[s*n+l]}return i}function plus(t,e){for(var r=Math.min(t.length,e.length),i=t.slice(),n=0;n<r;++n)i[n]=i[n]+e[n];return i}function minus$2(t,e){for(var r=Math.min(t.length,e.length),i=t.slice(),n=0;n<r;++n)i[n]=i[n]-e[n];return i}function convertCSStoMatrix(t,e){return void 0===e&&(e=6===t.length),e?[t[0],t[1],0,t[2],t[3],0,t[4],t[5],1]:t}function convertMatrixtoCSS(t,e){return void 0===e&&(e=9===t.length),e?[t[0],t[1],t[3],t[4],t[6],t[7]]:t}function calculate(t,e,r){void 0===r&&(r=e.length);var i=multiply(t,e,r),n=i[r-1];return i.map((function(t){return t/n}))}function rotateX3d(t,e){return multiply(t,[1,0,0,0,0,Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1],4)}function rotateY3d(t,e){return multiply(t,[Math.cos(e),0,-Math.sin(e),0,0,1,0,0,Math.sin(e),0,Math.cos(e),0,0,0,0,1],4)}function rotateZ3d(t,e){return multiply(t,createRotateMatrix(e,4))}function scale3d(t,e){var r=e[0],i=void 0===r?1:r,n=e[1],a=void 0===n?1:n,o=e[2];return multiply(t,[i,0,0,0,0,a,0,0,0,0,void 0===o?1:o,0,0,0,0,1],4)}function rotate(t,e){return calculate(createRotateMatrix(e,3),convertPositionMatrix(t,3))}function translate3d(t,e){var r=e[0],i=void 0===r?0:r,n=e[1],a=void 0===n?0:n,o=e[2];return multiply(t,[1,0,0,0,0,1,0,0,0,0,1,0,i,a,void 0===o?0:o,1],4)}function matrix3d(t,e){return multiply(t,e,4)}function createRotateMatrix(t,e){var r=Math.cos(t),i=Math.sin(t),n=createIdentityMatrix(e);return n[0]=r,n[1]=i,n[e]=-i,n[e+1]=r,n}function createIdentityMatrix(t){for(var e=t*t,r=[],i=0;i<e;++i)r[i]=i%(t+1)?0:1;return r}function createScaleMatrix(t,e){for(var r=createIdentityMatrix(e),i=Math.min(t.length,e-1),n=0;n<i;++n)r[(e+1)*n]=t[n];return r}function createOriginMatrix(t,e){for(var r=createIdentityMatrix(e),i=Math.min(t.length,e-1),n=0;n<i;++n)r[e*(e-1)+n]=t[n];return r}function createWarpMatrix(t,e,r,i,n,a,o,s){var l=t[0],p=t[1],c=e[0],h=e[1],u=r[0],d=r[1],f=i[0],g=i[1],m=n[0],v=n[1],y=a[0],b=a[1],_=o[0],x=o[1],S=s[0],w=s[1],A=invert([l,0,c,0,u,0,f,0,p,0,h,0,d,0,g,0,1,0,1,0,1,0,1,0,0,l,0,c,0,u,0,f,0,p,0,h,0,d,0,g,0,1,0,1,0,1,0,1,-m*l,-v*l,-y*c,-b*c,-_*u,-x*u,-S*f,-w*f,-m*p,-v*p,-y*h,-b*h,-_*d,-x*d,-S*g,-w*g],8);if(!A.length)return[];var E=multiply(A,[m,v,y,b,_,x,S,w],8);return E[8]=1,convertDimension(transpose(E),3,4)}var __assign$6=function(){return __assign$6=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},__assign$6.apply(this,arguments)};function createMatrix(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function parseMat(t,e){return void 0===e&&(e=0),toMat(parse(t,e))}function calculateMatrixDist(t,e){var r=calculate(t,[e[0],e[1]||0,e[2]||0,1],4),i=r[3]||1;return[r[0]/i,r[1]/i,r[2]/i]}function toMat(t){var e=createMatrix();return t.forEach((function(t){var r=t.matrixFunction,i=t.functionValue;r&&(e=r(e,i))})),e}function parse(t,e){return void 0===e&&(e=0),(isArray$2(t)?t:splitSpace(t)).map((function(t){var r=splitBracket(t),i=r.prefix,n=r.value,a=null,o=i,s="";if("translate"===i||"translateX"===i||"translate3d"===i){var l=isObject$1(e)?__assign$6(__assign$6({},e),{"o%":e["%"]}):{"%":e,"o%":e},p=splitComma(n).map((function(t,r){return l["%"]=0===r&&"x%"in l?e["x%"]:1===r&&"y%"in l?e["y%"]:e["o%"],convertUnitSize(t,l)})),c=p[0],h=p[1],u=void 0===h?0:h,d=p[2];a=translate3d,s=[c,u,void 0===d?0:d]}else if("translateY"===i){a=translate3d,s=[0,u=convertUnitSize(n,isObject$1(e)?__assign$6({"%":e["y%"]},e):{"%":e}),0]}else if("translateZ"===i){a=translate3d,s=[0,0,parseFloat(n)]}else if("scale"===i||"scale3d"===i){var f=splitComma(n).map((function(t){return parseFloat(t)})),g=f[0],m=f[1],v=void 0===m?g:m,y=f[2];a=scale3d,s=[g,v,void 0===y?1:y]}else if("scaleX"===i){a=scale3d,s=[g=parseFloat(n),1,1]}else if("scaleY"===i){a=scale3d,s=[1,v=parseFloat(n),1]}else if("scaleZ"===i){a=scale3d,s=[1,1,parseFloat(n)]}else if("rotate"===i||"rotateZ"===i||"rotateX"===i||"rotateY"===i){var b=splitUnit(n),_=b.unit,x=b.value;"rotate"===i||"rotateZ"===i?(o="rotateZ",a=rotateZ3d):"rotateX"===i?a=rotateX3d:"rotateY"===i&&(a=rotateY3d),s="rad"===_?x:x*Math.PI/180}else if("matrix3d"===i)a=matrix3d,s=splitComma(n).map((function(t){return parseFloat(t)}));else if("matrix"===i){var S=splitComma(n).map((function(t){return parseFloat(t)}));a=matrix3d,s=[S[0],S[1],0,0,S[2],S[3],0,0,0,0,1,0,S[4],S[5],0,1]}else o="";return{name:i,functionName:o,value:n,matrixFunction:a,functionValue:s}}))}
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */var extendStatics$4=function(t,e){return extendStatics$4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},extendStatics$4(t,e)};function __extends$4(t,e){function r(){this.constructor=t}extendStatics$4(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var findKeyCallback="function"==typeof Map?void 0:(childrenCount=0,function(t){return t.__DIFF_KEY__||(t.__DIFF_KEY__=++childrenCount)}),childrenCount,ChildrenDiffer=function(t){function e(e){return void 0===e&&(e=[]),t.call(this,e,findKeyCallback)||this}return __extends$4(e,t),e}(ListDiffer);function diff(t,e){return diff$1(t,e,findKeyCallback)}const ChildrenDiffer$1=ChildrenDiffer;
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var __assign$5=function(){return __assign$5=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},__assign$5.apply(this,arguments)};function __spreadArrays$1(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var i=Array(t),n=0;for(e=0;e<r;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,n++)i[n]=a[o];return i}var EventEmitter=function(){function t(){this._events={}}var e=t.prototype;return e.on=function(t,e){if(isObject$1(t))for(var r in t)this.on(r,t[r]);else this._addEvent(t,e,{});return this},e.off=function(t,e){if(t)if(isObject$1(t))for(var r in t)this.off(r);else if(e){var i=this._events[t];if(i){var n=findIndex(i,(function(t){return t.listener===e}));n>-1&&i.splice(n,1)}}else this._events[t]=[];else this._events={};return this},e.once=function(t,e){var r=this;return e&&this._addEvent(t,e,{once:!0}),new Promise((function(e){r._addEvent(t,e,{once:!0})}))},e.emit=function(t,e){var r=this;void 0===e&&(e={});var i=this._events[t];if(!t||!i)return!0;var n=!1;return e.eventType=t,e.stop=function(){n=!0},e.currentTarget=this,__spreadArrays$1(i).forEach((function(i){i.listener(e),i.once&&r.off(t,i.listener)})),!n},e.trigger=function(t,e){return void 0===e&&(e={}),this.emit(t,e)},e._addEvent=function(t,e,r){var i=this._events;i[t]=i[t]||[],i[t].push(__assign$5({listener:e},r))},t}();const EventEmitter$1=EventEmitter;
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var extendStatics$3=function(t,e){return extendStatics$3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},extendStatics$3(t,e)};function __extends$3(t,e){function r(){this.constructor=t}extendStatics$3(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var __assign$4=function(){return __assign$4=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},__assign$4.apply(this,arguments)};function getDefaultScrollPosition$1(t){var e=t.container;return e===document.body?[e.scrollLeft||document.documentElement.scrollLeft,e.scrollTop||document.documentElement.scrollTop]:[e.scrollLeft,e.scrollTop]}function checkDefaultScrollEvent(t,e){return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}function getContainerElement(t){return t?isString(t)?document.querySelector(t):isFunction$1(t)?t():t instanceof Element?t:"current"in t?t.current:"value"in t?t.value:void 0:null}var DragScroll=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._startRect=null,e._startPos=[],e._prevTime=0,e._timer=0,e._prevScrollPos=[0,0],e._isWait=!1,e._flag=!1,e._currentOptions=null,e._lock=!1,e._unregister=null,e._onScroll=function(){var t=e._currentOptions;!e._lock&&t&&e.emit("scrollDrag",{next:function(r){e.checkScroll({container:t.container,inputEvent:r})}})},e}__extends$3(e,t);var r=e.prototype;return r.dragStart=function(t,e){var r=getContainerElement(e.container);if(r){var i=0,n=0,a=0,o=0;if(r===document.body)a=window.innerWidth,o=window.innerHeight;else{var s=r.getBoundingClientRect();i=s.top,n=s.left,a=s.width,o=s.height}this._flag=!0,this._startPos=[t.clientX,t.clientY],this._startRect={top:i,left:n,width:a,height:o},this._prevScrollPos=this._getScrollPosition([0,0],e),this._currentOptions=e,this._registerScrollEvent(e)}else this._flag=!1},r.drag=function(t,e){if(clearTimeout(this._timer),this._flag){var r=t.clientX,i=t.clientY,n=e.threshold,a=void 0===n?0:n,o=this._startRect,s=this._startPos;this._currentOptions=e;var l=[0,0];return o.top>i-a?(s[1]>o.top||i<s[1])&&(l[1]=-1):o.top+o.height<i+a&&(s[1]<o.top+o.height||i>s[1])&&(l[1]=1),o.left>r-a?(s[0]>o.left||r<s[0])&&(l[0]=-1):o.left+o.width<r+a&&(s[0]<o.left+o.width||r>s[0])&&(l[0]=1),!(!l[0]&&!l[1])&&this._continueDrag(__assign$4(__assign$4({},e),{direction:l,inputEvent:t,isDrag:!0}))}},r.checkScroll=function(t){var e=this;if(this._isWait)return!1;var r=t.prevScrollPos,i=void 0===r?this._prevScrollPos:r,n=t.direction,a=t.throttleTime,o=void 0===a?0:a,s=t.inputEvent,l=t.isDrag,p=this._getScrollPosition(n||[0,0],t),c=p[0]-i[0],h=p[1]-i[1],u=n||[c?Math.abs(c)/c:0,h?Math.abs(h)/h:0];return this._prevScrollPos=p,this._lock=!1,!(!c&&!h)&&(this.emit("move",{offsetX:u[0]?c:0,offsetY:u[1]?h:0,inputEvent:s}),o&&l&&(clearTimeout(this._timer),this._timer=window.setTimeout((function(){e._continueDrag(t)}),o)),!0)},r.dragEnd=function(){this._flag=!1,this._lock=!1,clearTimeout(this._timer),this._unregisterScrollEvent()},r._getScrollPosition=function(t,e){var r=e.container,i=e.getScrollPosition;return(void 0===i?getDefaultScrollPosition$1:i)({container:getContainerElement(r),direction:t})},r._continueDrag=function(t){var e,r=this,i=t.container,n=t.direction,a=t.throttleTime,o=t.useScroll,s=t.isDrag,l=t.inputEvent;if(!(!this._flag||s&&this._isWait)){var p=now(),c=Math.max(a+this._prevTime-p,0);if(c>0)return clearTimeout(this._timer),this._timer=window.setTimeout((function(){r._continueDrag(t)}),c),!1;this._prevTime=p;var h=this._getScrollPosition(n,t);this._prevScrollPos=h,s&&(this._isWait=!0),o||(this._lock=!0);var u={container:getContainerElement(i),direction:n,inputEvent:l};return null===(e=t.requestScroll)||void 0===e||e.call(t,u),this.emit("scroll",u),this._isWait=!1,o||this.checkScroll(__assign$4(__assign$4({},t),{prevScrollPos:h,direction:n,inputEvent:l}))}},r._registerScrollEvent=function(t){this._unregisterScrollEvent();var e=t.checkScrollEvent;if(e){var r=!0===e?checkDefaultScrollEvent:e,i=getContainerElement(t.container);!0!==e||i!==document.body&&i!==document.documentElement?this._unregister=r(i,this._onScroll):this._unregister=checkDefaultScrollEvent(window,this._onScroll)}},r._unregisterScrollEvent=function(){var t;null===(t=this._unregister)||void 0===t||t.call(this),this._unregister=null},e}(EventEmitter$1);const DragScroll$1=DragScroll;
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */function __spreadArrays(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var i=Array(t),n=0;for(e=0;e<r;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,n++)i[n]=a[o];return i}function tinyThrottle(t){return throttle(t,TINY_NUM$1)}function isSameConstants(t,e){return t.every((function(t,r){return 0===tinyThrottle(t-e[r])}))}function isSamePoint(t,e){return!tinyThrottle(t[0]-e[0])&&!tinyThrottle(t[1]-e[1])}function getAreaSize(t){return t.length<3?0:Math.abs(sum(t.map((function(e,r){var i=t[r+1]||t[0];return e[0]*i[1]-i[0]*e[1]}))))/2}function fitPoints(t,e){var r=e.width,i=e.height,n=e.left,a=e.top,o=getMinMaxs(t),s=o.minX,l=o.minY,p=o.maxX,c=o.maxY,h=r/(p-s),u=i/(c-l);return t.map((function(t){return[n+(t[0]-s)*h,a+(t[1]-l)*u]}))}function getMinMaxs(t){var e=t.map((function(t){return t[0]})),r=t.map((function(t){return t[1]}));return{minX:Math.min.apply(Math,e),minY:Math.min.apply(Math,r),maxX:Math.max.apply(Math,e),maxY:Math.max.apply(Math,r)}}function isInside(t,e,r){var i=t[0],n=t[1],a=getMinMaxs(e),o=a.minX,s=a.maxX,l=[[o,n],[s,n]],p=getLinearConstants(l[0],l[1]),c=convertLines(e),h=[];if(c.forEach((function(e){var r=getLinearConstants(e[0],e[1]),i=e[0];isSameConstants(p,r)?h.push({pos:t,line:e,type:"line"}):getPointsOnLines(getIntersectionPointsByConstants(p,r),[l,e]).forEach((function(t){e.some((function(e){return isSamePoint(e,t)}))?h.push({pos:t,line:e,type:"point"}):0!==tinyThrottle(i[1]-n)&&h.push({pos:t,line:e,type:"intersection"})}))})),!r&&find$1(h,(function(t){return t[0]===i})))return!0;var u=0,d={};return h.forEach((function(t){var e=t.pos,r=t.type,a=t.line;if(!(e[0]>i))if("intersection"===r)++u;else{if("line"===r)return;if("point"===r){var o=find$1(a,(function(t){return t[1]!==n})),s=d[e[0]],l=o[1]>n?1:-1;s?s!==l&&++u:d[e[0]]=l}}})),u%2==1}function getLinearConstants(t,e){var r=t[0],i=t[1],n=e[0]-r,a=e[1]-i;Math.abs(n)<TINY_NUM$1&&(n=0),Math.abs(a)<TINY_NUM$1&&(a=0);var o=0,s=0,l=0;return n?a?(s=1,l=-(o=-a/n)*r-i):(s=1,l=-i):a&&(o=-1,l=r),[o,s,l]}function getIntersectionPointsByConstants(t,e){var r=t[0],i=t[1],n=t[2],a=e[0],o=e[1],s=e[2],l=0===r&&0===a,p=0===i&&0===o,c=[];if(l&&p)return[];if(l){var h=-n/i;return h!==-s/o?[]:[[-1/0,h],[1/0,h]]}if(p){var u=-n/r;return u!==-s/a?[]:[[u,-1/0],[u,1/0]]}if(0===r)c=[[d=-(o*(f=-n/i)+s)/a,f]];else if(0===a){c=[[d=-(i*(f=-s/o)+n)/r,f]]}else if(0===i){c=[[d=-n/r,f=-(a*d+s)/o]]}else if(0===o){c=[[d=-s/a,f=-(r*d+n)/i]]}else{var d,f;c=[[d=(i*s-o*n)/(o*r-i*a),f=-(r*d+n)/i]]}return c.map((function(t){return[t[0],t[1]]}))}function getPointsOnLines(t,e){var r=e.map((function(t){return[0,1].map((function(e){return[Math.min(t[0][e],t[1][e]),Math.max(t[0][e],t[1][e])]}))})),i=[];if(2===t.length){var n=t[0],a=n[0],o=n[1];if(tinyThrottle(a-t[1][0])){if(!tinyThrottle(o-t[1][1])){var s=Math.max.apply(Math,r.map((function(t){return t[0][0]}))),l=Math.min.apply(Math,r.map((function(t){return t[0][1]})));if(tinyThrottle(s-l)>0)return[];i=[[s,o],[l,o]]}}else{var p=Math.max.apply(Math,r.map((function(t){return t[1][0]}))),c=Math.min.apply(Math,r.map((function(t){return t[1][1]})));if(tinyThrottle(p-c)>0)return[];i=[[a,p],[a,c]]}}return i.length||(i=t.filter((function(t){var e=t[0],i=t[1];return r.every((function(t){return 0<=tinyThrottle(e-t[0][0])&&0<=tinyThrottle(t[0][1]-e)&&0<=tinyThrottle(i-t[1][0])&&0<=tinyThrottle(t[1][1]-i)}))}))),i.map((function(t){return[tinyThrottle(t[0]),tinyThrottle(t[1])]}))}function convertLines(t){return __spreadArrays(t.slice(1),[t[0]]).map((function(e,r){return[t[r],e]}))}function getOverlapPointInfos(t,e){var r=t.slice(),i=e.slice();-1===getShapeDirection(r)&&r.reverse(),-1===getShapeDirection(i)&&i.reverse();var n=convertLines(r),a=convertLines(i),o=n.map((function(t){return getLinearConstants(t[0],t[1])})),s=a.map((function(t){return getLinearConstants(t[0],t[1])})),l=[];o.forEach((function(t,e){var r=n[e],o=[];s.forEach((function(i,n){var s=getPointsOnLines(getIntersectionPointsByConstants(t,i),[r,a[n]]);o.push.apply(o,s.map((function(t){return{index1:e,index2:n,pos:t,type:"intersection"}})))})),o.sort((function(t,e){return getDist$2(r[0],t.pos)-getDist$2(r[0],e.pos)})),l.push.apply(l,o),isInside(r[1],i)&&l.push({index1:e,index2:-1,pos:r[1],type:"inside"})})),a.forEach((function(t,e){if(isInside(t[1],r)){var i=!1,n=findIndex(l,(function(t){return t.index2===e?(i=!0,!1):!!i}));-1===n&&(i=!1,n=findIndex(l,(function(t){var r=t.index1,n=t.index2;return-1===r&&n+1===e?(i=!0,!1):!!i}))),-1===n?l.push({index1:-1,index2:e,pos:t[1],type:"inside"}):l.splice(n,0,{index1:-1,index2:e,pos:t[1],type:"inside"})}}));var p={};return l.filter((function(t){var e=t.pos,r=e[0]+"x"+e[1];return!p[r]&&(p[r]=!0,!0)}))}function getOverlapPoints(t,e){return getOverlapPointInfos(t,e).map((function(t){return t.pos}))}function getOverlapSize(t,e){return getAreaSize(getOverlapPoints(t,e))}
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var extendStatics$2=function(t,e){return extendStatics$2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},extendStatics$2(t,e)};function __extends$2(t,e){function r(){this.constructor=t}extendStatics$2(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var __assign$3=function(){return __assign$3=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},__assign$3.apply(this,arguments)};function getRad(t,e){var r=e[0]-t[0],i=e[1]-t[1],n=Math.atan2(i,r);return n>=0?n:n+2*Math.PI}function getRotatiion(t){return getRad([t[0].clientX,t[0].clientY],[t[1].clientX,t[1].clientY])/Math.PI*180}function isMultiTouch(t){return t.touches&&t.touches.length>=2}function getEventClients(t){return t?t.touches?getClients(t.touches):[getClient(t)]:[]}function isMouseEvent(t){return t&&(t.type.indexOf("mouse")>-1||"button"in t)}function getPosition(t,e,r){var i=r.length,n=getAverageClient(t,i),a=n.clientX,o=n.clientY,s=n.originalClientX,l=n.originalClientY,p=getAverageClient(e,i),c=p.clientX,h=p.clientY,u=getAverageClient(r,i);return{clientX:s,clientY:l,deltaX:a-c,deltaY:o-h,distX:a-u.clientX,distY:o-u.clientY}}function getDist$1(t){return Math.sqrt(Math.pow(t[0].clientX-t[1].clientX,2)+Math.pow(t[0].clientY-t[1].clientY,2))}function getClients(t){for(var e=Math.min(t.length,2),r=[],i=0;i<e;++i)r.push(getClient(t[i]));return r}function getClient(t){return{clientX:t.clientX,clientY:t.clientY}}function getAverageClient(t,e){void 0===e&&(e=t.length);for(var r={clientX:0,clientY:0,originalClientX:0,originalClientY:0},i=0;i<e;++i){var n=t[i];r.originalClientX+="originalClientX"in n?n.originalClientX:n.clientX,r.originalClientY+="originalClientY"in n?n.originalClientY:n.clientY,r.clientX+=n.clientX,r.clientY+=n.clientY}return e?{clientX:r.clientX/e,clientY:r.clientY/e,originalClientX:r.originalClientX/e,originalClientY:r.originalClientY/e}:r}var ClientStore=function(){function t(t){this.prevClients=[],this.startClients=[],this.movement=0,this.length=0,this.startClients=t,this.prevClients=t,this.length=t.length}return t.prototype.getAngle=function(t){return void 0===t&&(t=this.prevClients),getRotatiion(t)},t.prototype.getRotation=function(t){return void 0===t&&(t=this.prevClients),getRotatiion(t)-getRotatiion(this.startClients)},t.prototype.getPosition=function(t,e){void 0===t&&(t=this.prevClients);var r=getPosition(t||this.prevClients,this.prevClients,this.startClients),i=r.deltaX,n=r.deltaY;return this.movement+=Math.sqrt(i*i+n*n),this.prevClients=t,r},t.prototype.getPositions=function(t){void 0===t&&(t=this.prevClients);var e=this.prevClients;return this.startClients.map((function(r,i){return getPosition([t[i]],[e[i]],[r])}))},t.prototype.getMovement=function(t){var e=this.movement;if(!t)return e;var r=getAverageClient(t,this.length),i=getAverageClient(this.prevClients,this.length),n=r.clientX-i.clientX,a=r.clientY-i.clientY;return Math.sqrt(n*n+a*a)+e},t.prototype.getDistance=function(t){return void 0===t&&(t=this.prevClients),getDist$1(t)},t.prototype.getScale=function(t){return void 0===t&&(t=this.prevClients),getDist$1(t)/getDist$1(this.startClients)},t.prototype.move=function(t,e){this.startClients.forEach((function(r){r.clientX-=t,r.clientY-=e})),this.prevClients.forEach((function(r){r.clientX-=t,r.clientY-=e}))},t}(),INPUT_TAGNAMES=["textarea","input"],Gesto=function(t){function e(e,r){void 0===r&&(r={});var i=t.call(this)||this;i.options={},i.flag=!1,i.pinchFlag=!1,i.data={},i.isDrag=!1,i.isPinch=!1,i.clientStores=[],i.targets=[],i.prevTime=0,i.doubleFlag=!1,i._useMouse=!1,i._useTouch=!1,i._useDrag=!1,i._dragFlag=!1,i._isTrusted=!1,i._isMouseEvent=!1,i._isSecondaryButton=!1,i._preventMouseEvent=!1,i._prevInputEvent=null,i._isDragAPI=!1,i._isIdle=!0,i._window=window,i.onDragStart=function(t,e){if(void 0===e&&(e=!0),i.flag||!1!==t.cancelable){var r=t.type.indexOf("drag")>=-1;if(!i.flag||!r){i._isDragAPI=!0;var n=i.options,a=n.container,o=n.pinchOutside,s=n.preventWheelClick,l=n.preventRightClick,p=n.preventDefault,c=n.checkInput,h=n.dragFocusedInput,u=n.preventClickEventOnDragStart,d=n.preventClickEventOnDrag,f=n.preventClickEventByCondition,g=i._useTouch,m=!i.flag;if(i._isSecondaryButton=3===t.which||2===t.button,s&&(2===t.which||1===t.button)||l&&(3===t.which||2===t.button))return i.stop(),!1;if(m){var v=i._window.document.activeElement,y=t.target;if(y){var b=y.tagName.toLowerCase(),_=INPUT_TAGNAMES.indexOf(b)>-1,x=y.isContentEditable;if(_||x){if(c||!h&&v===y)return!1;if(v&&(v===y||x&&v.isContentEditable&&v.contains(y))){if(!h)return!1;y.blur()}}else if((p||"touchstart"===t.type)&&v){var S=v.tagName.toLowerCase();(v.isContentEditable||INPUT_TAGNAMES.indexOf(S)>-1)&&v.blur()}(u||d||f)&&addEvent(i._window,"click",i._onClick,!0)}i.clientStores=[new ClientStore(getEventClients(t))],i._isIdle=!1,i.flag=!0,i.isDrag=!1,i._isTrusted=e,i._dragFlag=!0,i._prevInputEvent=t,i.data={},i.doubleFlag=now()-i.prevTime<200,i._isMouseEvent=isMouseEvent(t),!i._isMouseEvent&&i._preventMouseEvent&&(i._preventMouseEvent=!1),!1===(i._preventMouseEvent||i.emit("dragStart",__assign$3(__assign$3({data:i.data,datas:i.data,inputEvent:t,isMouseEvent:i._isMouseEvent,isSecondaryButton:i._isSecondaryButton,isTrusted:e,isDouble:i.doubleFlag},i.getCurrentStore().getPosition()),{preventDefault:function(){t.preventDefault()},preventDrag:function(){i._dragFlag=!1}})))&&i.stop(),i._isMouseEvent&&i.flag&&p&&t.preventDefault()}if(!i.flag)return!1;var w=0;if(m?(i._attchDragEvent(),g&&o&&(w=setTimeout((function(){addEvent(a,"touchstart",i.onDragStart,{passive:!1})})))):g&&o&&removeEvent(a,"touchstart",i.onDragStart),i.flag&&isMultiTouch(t)){if(clearTimeout(w),m&&t.touches.length!==t.changedTouches.length)return;i.pinchFlag||i.onPinchStart(t)}}}},i.onDrag=function(t,e){if(i.flag){var r=i.options.preventDefault;!i._isMouseEvent&&r&&t.preventDefault(),i._prevInputEvent=t;var n=getEventClients(t),a=i.moveClients(n,t,!1);if(i._dragFlag){if(i.pinchFlag||a.deltaX||a.deltaY)if(!1===(i._preventMouseEvent||i.emit("drag",__assign$3(__assign$3({},a),{isScroll:!!e,inputEvent:t}))))return void i.stop();i.pinchFlag&&i.onPinch(t,n)}i.getCurrentStore().getPosition(n,!0)}},i.onDragEnd=function(t){if(i.flag){var e=i.options,r=e.pinchOutside,n=e.container,a=e.preventClickEventOnDrag,o=e.preventClickEventOnDragStart,s=e.preventClickEventByCondition,l=i.isDrag;(a||o||s)&&requestAnimationFrame((function(){i._allowClickEvent()})),s||o||!a||l||i._allowClickEvent(),i._useTouch&&r&&removeEvent(n,"touchstart",i.onDragStart),i.pinchFlag&&i.onPinchEnd(t);var p=(null==t?void 0:t.touches)?getEventClients(t):[];0!==p.length&&i.options.keepDragging?i._addStore(new ClientStore(p)):i.flag=!1;var c=i._getPosition(),h=now(),u=!l&&i.doubleFlag;i._prevInputEvent=null,i.prevTime=l||u?0:h,i.flag||(i._dettachDragEvent(),i._preventMouseEvent||i.emit("dragEnd",__assign$3({data:i.data,datas:i.data,isDouble:u,isDrag:l,isClick:!l,isMouseEvent:i._isMouseEvent,isSecondaryButton:i._isSecondaryButton,inputEvent:t,isTrusted:i._isTrusted},c)),i.clientStores=[],i._isMouseEvent||(i._preventMouseEvent=!0,requestAnimationFrame((function(){requestAnimationFrame((function(){i._preventMouseEvent=!1}))}))),i._isIdle=!0)}},i.onBlur=function(){i.onDragEnd()},i._allowClickEvent=function(){removeEvent(i._window,"click",i._onClick,!0)},i._onClick=function(t){i._allowClickEvent(),i._preventMouseEvent=!1;var e=i.options.preventClickEventByCondition;(null==e?void 0:e(t))||(t.stopPropagation(),t.preventDefault())},i._onContextMenu=function(t){i.options.preventRightClick?i.onDragEnd(t):t.preventDefault()},i._passCallback=function(){};var n=[].concat(e),a=n[0];i._window=isWindow(a)?a:getWindow(a),i.options=__assign$3({checkInput:!1,container:a&&!("document"in a)?getWindow(a):a,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},r);var o=i.options,s=o.container,l=o.events,p=o.checkWindowBlur;if(i._useDrag=l.indexOf("drag")>-1,i._useTouch=l.indexOf("touch")>-1,i._useMouse=l.indexOf("mouse")>-1,i.targets=n,i._useDrag&&n.forEach((function(t){addEvent(t,"dragstart",i.onDragStart)})),i._useMouse&&(n.forEach((function(t){addEvent(t,"mousedown",i.onDragStart),addEvent(t,"mousemove",i._passCallback)})),addEvent(s,"contextmenu",i._onContextMenu)),p&&addEvent(getWindow(),"blur",i.onBlur),i._useTouch){var c={passive:!1};n.forEach((function(t){addEvent(t,"touchstart",i.onDragStart,c),addEvent(t,"touchmove",i._passCallback,c)}))}return i}return __extends$2(e,t),e.prototype.stop=function(){this.isDrag=!1,this.data={},this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1,this._isIdle=!0,this._allowClickEvent(),this._dettachDragEvent(),this._isDragAPI=!1},e.prototype.getMovement=function(t){return this.getCurrentStore().getMovement(t)+this.clientStores.slice(1).reduce((function(t,e){return t+e.movement}),0)},e.prototype.isDragging=function(){return this.isDrag},e.prototype.isIdle=function(){return this._isIdle},e.prototype.isFlag=function(){return this.flag},e.prototype.isPinchFlag=function(){return this.pinchFlag},e.prototype.isDoubleFlag=function(){return this.doubleFlag},e.prototype.isPinching=function(){return this.isPinch},e.prototype.scrollBy=function(t,e,r,i){void 0===i&&(i=!0),this.flag&&(this.clientStores[0].move(t,e),i&&this.onDrag(r,!0))},e.prototype.move=function(t,e){var r=t[0],i=t[1],n=this.getCurrentStore().prevClients;return this.moveClients(n.map((function(t){var e=t.clientX,n=t.clientY;return{clientX:e+r,clientY:n+i,originalClientX:e,originalClientY:n}})),e,!0)},e.prototype.triggerDragStart=function(t){this.onDragStart(t,!1)},e.prototype.setEventData=function(t){var e=this.data;for(var r in t)e[r]=t[r];return this},e.prototype.setEventDatas=function(t){return this.setEventData(t)},e.prototype.getCurrentEvent=function(t){return void 0===t&&(t=this._prevInputEvent),__assign$3(__assign$3({data:this.data,datas:this.data},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:t})},e.prototype.getEventData=function(){return this.data},e.prototype.getEventDatas=function(){return this.data},e.prototype.unset=function(){var t=this,e=this.targets,r=this.options.container;this.off(),removeEvent(this._window,"blur",this.onBlur),this._useDrag&&e.forEach((function(e){removeEvent(e,"dragstart",t.onDragStart)})),this._useMouse&&(e.forEach((function(e){removeEvent(e,"mousedown",t.onDragStart)})),removeEvent(r,"contextmenu",this._onContextMenu)),this._useTouch&&(e.forEach((function(e){removeEvent(e,"touchstart",t.onDragStart)})),removeEvent(r,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},e.prototype.onPinchStart=function(t){var e=this,r=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>r)){var i=new ClientStore(getEventClients(t));this.pinchFlag=!0,this._addStore(i),!1===this.emit("pinchStart",__assign$3(__assign$3({data:this.data,datas:this.data,angle:i.getAngle(),touches:this.getCurrentStore().getPositions()},i.getPosition()),{inputEvent:t,isTrusted:this._isTrusted,preventDefault:function(){t.preventDefault()},preventDrag:function(){e._dragFlag=!1}}))&&(this.pinchFlag=!1)}},e.prototype.onPinch=function(t,e){if(this.flag&&this.pinchFlag&&!(e.length<2)){var r=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",__assign$3(__assign$3({data:this.data,datas:this.data,movement:this.getMovement(e),angle:r.getAngle(e),rotation:r.getRotation(e),touches:r.getPositions(e),scale:r.getScale(e),distance:r.getDistance(e)},r.getPosition(e)),{inputEvent:t,isTrusted:this._isTrusted}))}},e.prototype.onPinchEnd=function(t){if(this.pinchFlag){var e=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var r=this.getCurrentStore();this.emit("pinchEnd",__assign$3(__assign$3({data:this.data,datas:this.data,isPinch:e,touches:r.getPositions()},r.getPosition()),{inputEvent:t}))}},e.prototype.getCurrentStore=function(){return this.clientStores[0]},e.prototype.moveClients=function(t,e,r){var i=this._getPosition(t,r),n=this.isDrag;(i.deltaX||i.deltaY)&&(this.isDrag=!0);var a=!1;return!n&&this.isDrag&&(a=!0),__assign$3(__assign$3({data:this.data,datas:this.data},i),{movement:this.getMovement(t),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:e,isTrusted:this._isTrusted,isFirstDrag:a})},e.prototype._addStore=function(t){this.clientStores.splice(0,0,t)},e.prototype._getPosition=function(t,e){var r=this.getCurrentStore().getPosition(t,e),i=this.clientStores.slice(1).reduce((function(t,e){var r=e.getPosition();return t.distX+=r.distX,t.distY+=r.distY,t}),r),n=i.distX,a=i.distY;return __assign$3(__assign$3({},r),{distX:n,distY:a})},e.prototype._attchDragEvent=function(){var t=this._window,e=this.options.container,r={passive:!1};this._isDragAPI&&(addEvent(e,"dragover",this.onDrag,r),addEvent(t,"dragend",this.onDragEnd)),this._useMouse&&(addEvent(e,"mousemove",this.onDrag),addEvent(t,"mouseup",this.onDragEnd)),this._useTouch&&(addEvent(e,"touchmove",this.onDrag,r),addEvent(t,"touchend",this.onDragEnd,r),addEvent(t,"touchcancel",this.onDragEnd,r))},e.prototype._dettachDragEvent=function(){var t=this._window,e=this.options.container;this._isDragAPI&&(removeEvent(e,"dragover",this.onDrag),removeEvent(t,"dragend",this.onDragEnd)),this._useMouse&&(removeEvent(e,"mousemove",this.onDrag),removeEvent(t,"mouseup",this.onDragEnd)),this._useTouch&&(removeEvent(e,"touchstart",this.onDragStart),removeEvent(e,"touchmove",this.onDrag),removeEvent(t,"touchend",this.onDragEnd),removeEvent(t,"touchcancel",this.onDragEnd))},e}(EventEmitter$1);function hash(t){for(var e=5381,r=t.length;r;)e=33*e^t.charCodeAt(--r);return e>>>0}var stringHash=hash;function getHash(t){return stringHash(t).toString(36)}function getShadowRoot$1(t){if(t&&t.getRootNode){var e=t.getRootNode();if(11===e.nodeType)return e}}function replaceStyle(t,e,r){return r.original?e:e.replace(/([^};{\s}][^};{]*|^\s*){/gm,(function(e,r){var i=r.trim();return(i?splitComma(i):[""]).map((function(e){var r=e.trim();return 0===r.indexOf("@")?r:r.indexOf(":global")>-1?r.replace(/\:global/g,""):r.indexOf(":host")>-1?"".concat(r.replace(/\:host/g,".".concat(t))):r?".".concat(t," ").concat(r):".".concat(t)})).join(", ")+" {"}))}function injectStyle(t,e,r,i,n){var a=getDocument(i),o=a.createElement("style");return o.setAttribute("type","text/css"),o.setAttribute("data-styled-id",t),o.setAttribute("data-styled-count","1"),r.nonce&&o.setAttribute("nonce",r.nonce),o.innerHTML=replaceStyle(t,e,r),(n||a.head||a.body).appendChild(o),o}function styled$1(t){var e="rCS"+getHash(t);return{className:e,inject:function(r,i){void 0===i&&(i={});var n=getShadowRoot$1(r),a=(n||r.ownerDocument||document).querySelector('style[data-styled-id="'.concat(e,'"]'));if(a){var o=parseFloat(a.getAttribute("data-styled-count"))||0;a.setAttribute("data-styled-count","".concat(o+1))}else a=injectStyle(e,t,i,r,n);return{destroy:function(){var t,e=parseFloat(a.getAttribute("data-styled-count"))||0;e<=1?(a.remove?a.remove():null===(t=a.parentNode)||void 0===t||t.removeChild(a),a=null):a.setAttribute("data-styled-count","".concat(e-1))}}}}}var __assign$2=function(){return __assign$2=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},__assign$2.apply(this,arguments)};function __rest$1(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]])}return r}function styled(t,e){var r=styled$1(e),i=r.className;return forwardRef((function(e,n){var a=e.className,o=void 0===a?"":a;e.cspNonce;var s=__rest$1(e,["className","cspNonce"]),l=useRef();return useImperativeHandle(n,(function(){return l.current}),[]),useEffect((function(){var t=r.inject(l.current,{nonce:e.cspNonce});return function(){t.destroy()}}),[]),createElement(t,__assign$2({ref:l,"data-styled-id":i,className:"".concat(o," ").concat(i)},s))}))}var extendStatics$1=function(t,e){return extendStatics$1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},extendStatics$1(t,e)};function __extends$1(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}extendStatics$1(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var __assign$1=function(){return __assign$1=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},__assign$1.apply(this,arguments)};function __rest(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]])}return r}function __decorate$1(t,e,r,i){var n,a=arguments.length,o=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(o=(a<3?n(o):a>3?n(e,r,o):n(e,r))||o);return a>3&&o&&Object.defineProperty(e,r,o),o}function __values(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var i,n,a=r.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(s){n={error:s}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}function __spreadArray(t,e,r){if(r||2===arguments.length)for(var i,n=0,a=e.length;n<a;n++)!i&&n in e||(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}function makeAble(t,e){return __assign$1({events:[],props:[],name:t},e)}var DIRECTIONS4=["n","w","s","e"],DIRECTIONS=["n","w","s","e","nw","ne","sw","se"];function getSVGCursor(t,e){return'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(32*t,'px" height="').concat(32*t,'px" viewBox="0 0 32 32" ><path d="M 16,5 L 12,10 L 14.5,10 L 14.5,22 L 12,22 L 16,27 L 20,22 L 17.5,22 L 17.5,10 L 20, 10 L 16,5 Z" stroke-linejoin="round" stroke-width="1.2" fill="black" stroke="white" style="transform:rotate(').concat(e,'deg);transform-origin: 16px 16px"></path></svg>')}function getCursorCSS(t){var e=getSVGCursor(1,t),r=45*Math.round(t/45)%180,i="ns-resize";return 135===r?i="nwse-resize":45===r?i="nesw-resize":90===r&&(i="ew-resize"),"cursor:".concat(i,";cursor: url('").concat(e,"') 16 16, ").concat(i,";")}var agent=agent$1(),IS_WEBKIT=agent.browser.webkit,IS_WEBKIT605=IS_WEBKIT&&(navi="undefined"==typeof window?{userAgent:""}:window.navigator,res=/applewebkit\/([^\s]+)/g.exec(navi.userAgent.toLowerCase()),!!res&&parseFloat(res[1])<605),navi,res,browserName=agent.browser.name,browserVersion=parseInt(agent.browser.version,10),IS_CHROME="chrome"===browserName,IS_CHROMIUM=agent.browser.chromium,chromiumVersion=parseInt(agent.browser.chromiumVersion,10)||0,IS_CHROMIUM109=IS_CHROME&&browserVersion>=109||IS_CHROMIUM&&chromiumVersion>=109,IS_FIREFOX="firefox"===browserName,IS_SAFARI_ABOVE15=parseInt(agent.browser.webkitVersion,10)>=612||browserVersion>=15,PREFIX="moveable-",directionCSS=DIRECTIONS.map((function(t){var e="",r="",i="center",n="center",a="calc(var(--moveable-control-padding, 20) * -1px)";return t.indexOf("n")>-1&&(e="top: ".concat(a,";"),n="bottom"),t.indexOf("s")>-1&&(e="top: 0px;",n="top"),t.indexOf("w")>-1&&(r="left: ".concat(a,";"),i="right"),t.indexOf("e")>-1&&(r="left: 0px;",i="left"),'.around-control[data-direction*="'.concat(t,'"] {\n ').concat(r).concat(e,"\n transform-origin: ").concat(i," ").concat(n,";\n }")})).join("\n"),MOVEABLE_CSS="\n{\nposition: absolute;\nwidth: 1px;\nheight: 1px;\nleft: 0;\ntop: 0;\nz-index: 3000;\n--moveable-color: #4af;\n--zoom: 1;\n--zoompx: 1px;\n--moveable-line-padding: 0;\n--moveable-control-padding: 0;\nwill-change: transform;\noutline: 1px solid transparent;\n}\n.control-box {\nz-index: 0;\n}\n.line, .control {\nposition: absolute;\nleft: 0;\ntop: 0;\nwill-change: transform;\n}\n.control {\nwidth: 14px;\nheight: 14px;\nborder-radius: 50%;\nborder: 2px solid #fff;\nbox-sizing: border-box;\nbackground: #4af;\nbackground: var(--moveable-color);\nmargin-top: -7px;\nmargin-left: -7px;\nborder: 2px solid #fff;\nz-index: 10;\n}\n.around-control {\nposition: absolute;\nwill-change: transform;\nwidth: calc(var(--moveable-control-padding, 20) * 1px);\nheight: calc(var(--moveable-control-padding, 20) * 1px);\nleft: calc(var(--moveable-control-padding, 20) * -0.5px);\ntop: calc(var(--moveable-control-padding, 20) * -0.5px);\nbox-sizing: border-box;\nbackground: transparent;\nz-index: 8;\ncursor: alias;\ntransform-origin: center center;\n}\n".concat(directionCSS,"\n.padding {\nposition: absolute;\ntop: 0px;\nleft: 0px;\nwidth: 100px;\nheight: 100px;\ntransform-origin: 0 0;\n}\n.line {\nwidth: 1px;\nheight: 1px;\nbackground: #4af;\nbackground: var(--moveable-color);\ntransform-origin: 0px 50%;\n}\n.line.edge {\nz-index: 1;\nbackground: transparent;\n}\n.line.dashed {\nbox-sizing: border-box;\nbackground: transparent;\n}\n.line.dashed.horizontal {\nborder-top: 1px dashed #4af;\nborder-top-color: #4af;\nborder-top-color: var(--moveable-color);\n}\n.line.dashed.vertical {\nborder-left: 1px dashed #4af;\nborder-left-color: #4af;\nborder-left-color: var(--moveable-color);\n}\n.line.vertical {\ntransform: translateX(-50%);\n}\n.line.horizontal {\ntransform: translateY(-50%);\n}\n.line.vertical.bold {\nwidth: 2px;\n}\n.line.horizontal.bold {\nheight: 2px;\n}\n\n.control.origin {\nborder-color: #f55;\nbackground: #fff;\nwidth: 12px;\nheight: 12px;\nmargin-top: -6px;\nmargin-left: -6px;\npointer-events: none;\n}\n").concat([0,15,30,45,60,75,90,105,120,135,150,165].map((function(t){return'\n.direction[data-rotation="'.concat(t,'"], :global .view-control-rotation').concat(t," {\n").concat(getCursorCSS(t),"\n}\n")})).join("\n"),'\n\n.line.direction:before {\ncontent: "";\nposition: absolute;\nwidth: 100%;\nheight: calc(var(--moveable-line-padding, 0) * 1px);\nbottom: 0;\nleft: 0;\n}\n.group {\nz-index: -1;\n}\n.area {\nposition: absolute;\n}\n.area-pieces {\nposition: absolute;\ntop: 0;\nleft: 0;\ndisplay: none;\n}\n.area.avoid, .area.pass {\npointer-events: none;\n}\n.area.avoid+.area-pieces {\ndisplay: block;\n}\n.area-piece {\nposition: absolute;\n}\n\n').concat(IS_WEBKIT605?':global svg *:before {\ncontent:"";\ntransform-origin: inherit;\n}':"","\n"),NEARBY_POS=[[0,1,2],[1,0,3],[2,0,3],[3,1,2]],FLOAT_POINT_NUM=1e-4,TINY_NUM=1e-7,MIN_SCALE=1e-9,MAX_NUM=Math.pow(10,10),MIN_NUM=-MAX_NUM,DIRECTION_REGION_TO_DIRECTION={n:[0,-1],e:[1,0],s:[0,1],w:[-1,0],nw:[-1,-1],ne:[1,-1],sw:[-1,1],se:[1,1]},DIRECTION_INDEXES={n:[0,1],e:[1,3],s:[3,2],w:[2,0],nw:[0],ne:[1],sw:[2],se:[3]},DIRECTION_ROTATIONS={n:0,s:180,w:270,e:90,nw:315,ne:45,sw:225,se:135},MOVEABLE_METHODS=["isMoveableElement","updateRect","updateTarget","destroy","dragStart","isInside","hitTest","setState","getRect","request","isDragging","getManager","forceUpdate","waitToChangeTarget","updateSelectors","getTargets","stopDrag","getControlBoxElement"];function setCustomDrag(t,e,r,i,n,a){var o,s;void 0===a&&(a="draggable");var l=null!==(s=null===(o=e.gestos[a])||void 0===o?void 0:o.move(r,t.inputEvent))&&void 0!==s?s:{},p=l.originalDatas||l.datas,c=p[a]||(p[a]={});return __assign$1(__assign$1({},n?convertDragDist(e,l):l),{isPinch:!!i,parentEvent:!0,datas:c,originalDatas:t.originalDatas})}var CustomGesto=function(){function t(t){var e;void 0===t&&(t="draggable"),this.ableName=t,this.prevX=0,this.prevY=0,this.startX=0,this.startY=0,this.isDrag=!1,this.isFlag=!1,this.datas={draggable:{}},this.datas=((e={})[t]={},e)}return t.prototype.dragStart=function(t,e){this.isDrag=!1,this.isFlag=!1;var r=e.originalDatas;return this.datas=r,r[this.ableName]||(r[this.ableName]={}),__assign$1(__assign$1({},this.move(t,e.inputEvent)),{type:"dragstart"})},t.prototype.drag=function(t,e){return this.move([t[0]-this.prevX,t[1]-this.prevY],e)},t.prototype.move=function(t,e){var r,i,n=!1;if(this.isFlag){var a=this.isDrag;r=this.prevX+t[0],i=this.prevY+t[1],(t[0]||t[1])&&(this.isDrag=!0),!a&&this.isDrag&&(n=!0)}else this.prevX=t[0],this.prevY=t[1],this.startX=t[0],this.startY=t[1],r=t[0],i=t[1],this.isFlag=!0;return this.prevX=r,this.prevY=i,{type:"drag",clientX:r,clientY:i,inputEvent:e,isFirstDrag:n,isDrag:this.isDrag,distX:r-this.startX,distY:i-this.startY,deltaX:t[0],deltaY:t[1],datas:this.datas[this.ableName],originalDatas:this.datas,parentEvent:!0,parentGesto:this}},t}();function calculateElementPosition(t,e,r,i){var n=16===t.length?4:3,a=__read(calculatePoses(t,r,i,n),4),o=__read(a[0],2),s=o[0],l=o[1],p=__read(a[1],2),c=p[0],h=p[1],u=__read(a[2],2),d=u[0],f=u[1],g=__read(a[3],2),m=g[0],v=g[1],y=__read(calculatePosition(t,e,n),2),b=y[0],_=y[1],x=Math.min(s,c,d,m),S=Math.min(l,h,f,v),w=Math.max(s,c,d,m);return s=s-x||0,{left:x,top:S,right:w,bottom:Math.max(l,h,f,v),origin:[b=b-x||0,_=_-S||0],pos1:[s,l=l-S||0],pos2:[c=c-x||0,h=h-S||0],pos3:[d=d-x||0,f=f-S||0],pos4:[m=m-x||0,v=v-S||0],direction:sign(t[0]*t[n+1])}}function calculatePointerDist(t,e){var r=e.clientX,i=e.clientY,n=e.datas,a=t.state,o=a.moveableClientRect,s=a.rootMatrix,l=a.is3d,p=a.pos1,c=__read(minus$2(calculateInversePosition(s,[r-o.left,i-o.top],l?4:3),p),2),h=__read(getDragDist({datas:n,distX:c[0],distY:c[1]}),2);return[h[0],h[1]]}function setDragStart(t,e){var r=e.datas,i=t.state,n=i.allMatrix,a=i.beforeMatrix,o=i.is3d,s=i.left,l=i.top,p=i.origin,c=i.offsetMatrix,h=i.targetMatrix,u=i.transformOrigin,d=o?4:3;r.is3d=o,r.matrix=n,r.targetMatrix=h,r.beforeMatrix=a,r.offsetMatrix=c,r.transformOrigin=u,r.inverseMatrix=invert(n,d),r.inverseBeforeMatrix=invert(a,d),r.absoluteOrigin=convertPositionMatrix(plus([s,l],p),d),r.startDragBeforeDist=calculate(r.inverseBeforeMatrix,r.absoluteOrigin,d),r.startDragDist=calculate(r.inverseMatrix,r.absoluteOrigin,d)}function getTransformDirection(t){return calculateElementPosition(t.datas.beforeTransform,[50,50],100,100).direction}function resolveTransformEvent(t,e){var r=t.datas,i=t.originalDatas.beforeRenderable,n=r.transformIndex,a=i.nextTransforms,o=a.length,s=i.nextTransformAppendedIndexes,l=-1;-1===n?("translate"===e?l=0:"rotate"===e&&(l=findIndex(a,(function(t){return t.match(/scale\(/g)}))),-1===l&&(l=a.length),r.transformIndex=l):l=find$1(s,(function(t){return t.index===n&&t.functionName===e}))?n:n+s.filter((function(t){return t.index<n})).length;var p=convertTransformInfo(a,l),c=p.targetFunction,h="rotate"===e?"rotateZ":e;r.beforeFunctionTexts=p.beforeFunctionTexts,r.afterFunctionTexts=p.afterFunctionTexts,r.beforeTransform=p.beforeFunctionMatrix,r.beforeTransform2=p.beforeFunctionMatrix2,r.targetTansform=p.targetFunctionMatrix,r.afterTransform=p.afterFunctionMatrix,r.afterTransform2=p.afterFunctionMatrix2,r.targetAllTransform=p.allFunctionMatrix,c.functionName===h?(r.afterFunctionTexts.splice(0,1),r.isAppendTransform=!1):o>l&&(r.isAppendTransform=!0,i.nextTransformAppendedIndexes=__spreadArray(__spreadArray([],__read(s),!1),[{functionName:e,index:l,isAppend:!0}],!1))}function convertTransformFormat(t,e,r){return"".concat(t.beforeFunctionTexts.join(" ")," ").concat(t.isAppendTransform?r:e," ").concat(t.afterFunctionTexts.join(" "))}function getTransformDist(t){var e=t.datas,r=__read(getBeforeDragDist({datas:e,distX:t.distX,distY:t.distY}),2);return calculate(getTransfromMatrix(e,fromTranslation([r[0],r[1]],4)),convertPositionMatrix([0,0,0],4),4)}function getTransfromMatrix(t,e,r){var i=t.beforeTransform,n=t.afterTransform,a=t.beforeTransform2,o=t.afterTransform2,s=t.targetAllTransform,l=r?multiply(s,e,4):multiply(e,s,4),p=multiply(invert(r?a:i,4),l,4);return multiply(p,invert(r?o:n,4),4)}function getBeforeDragDist(t){var e=t.datas,r=t.distX,i=t.distY,n=e.inverseBeforeMatrix,a=e.is3d,o=e.startDragBeforeDist,s=a?4:3;return minus$2(calculate(n,plus(e.absoluteOrigin,[r,i]),s),o)}function getDragDist(t,e){var r=t.datas,i=t.distX,n=t.distY,a=r.inverseBeforeMatrix,o=r.inverseMatrix,s=r.is3d,l=r.startDragBeforeDist,p=r.startDragDist,c=s?4:3;return minus$2(calculate(e?a:o,plus(r.absoluteOrigin,[i,n]),c),e?l:p)}function getInverseDragDist(t,e){var r=t.datas,i=t.distX,n=t.distY,a=r.beforeMatrix,o=r.matrix,s=r.is3d,l=r.startDragBeforeDist,p=r.startDragDist,c=r.absoluteOrigin,h=s?4:3;return minus$2(calculate(e?a:o,plus(e?l:p,[i,n]),h),c)}function calculateTransformOrigin(t,e,r,i,n,a){return void 0===i&&(i=e),void 0===n&&(n=r),void 0===a&&(a=[0,0]),t?t.map((function(t,o){var s=splitUnit(t),l=s.value,p=s.unit,c=o?n:i,h=o?r:e;return"%"===t||isNaN(l)?h*(c?a[o]/c:0):"%"!==p?l:h*l/100})):a}function getPosIndexesByDirection(t){var e=[];return t[1]>=0&&(t[0]>=0&&e.push(3),t[0]<=0&&e.push(2)),t[1]<=0&&(t[0]>=0&&e.push(1),t[0]<=0&&e.push(0)),e}function getPosesByDirection(t,e){return getPosIndexesByDirection(e).map((function(e){return t[e]}))}function getPosByDirection(t,e){var r=(e[0]+1)/2,i=(e[1]+1)/2,n=[dot$1(t[0][0],t[1][0],r,1-r),dot$1(t[0][1],t[1][1],r,1-r)],a=[dot$1(t[2][0],t[3][0],r,1-r),dot$1(t[2][1],t[3][1],r,1-r)];return[dot$1(n[0],a[0],i,1-i),dot$1(n[1],a[1],i,1-i)]}function getDist(t,e,r,i,n,a){var o=getPosByDirection(calculatePoses(e,r,i,n),a);return[t[0]-o[0],t[1]-o[1]]}function getNextMatrix(t,e,r,i){return multiply(t,getAbsoluteMatrix(e,i,r),i)}function getNextTransformMatrix(t,e,r,i){var n,a=t.transformOrigin,o=t.offsetMatrix,s=t.is3d?4:3;if(isString(r)){var l=e.beforeTransform,p=e.afterTransform;n=convertDimension(i?parseMat(r):multiply(multiply(l,parseMat([r]),4),p,4),4,s)}else n=r;return getNextMatrix(o,n,a,s)}function scaleMatrix(t,e){var r=t.transformOrigin,i=t.offsetMatrix,n=t.is3d,a=t.targetMatrix,o=n?4:3;return getNextMatrix(i,multiply(t.targetAllTransform||a,createScaleMatrix(e,o),o),r,o)}function fillTransformStartEvent(t){var e=getBeforeRenderableDatas(t);return{setTransform:function(r,i){void 0===i&&(i=-1),e.startTransforms=isArray$2(r)?r:splitSpace(r),setTransformIndex(t,i)},setTransformIndex:function(e){setTransformIndex(t,e)}}}function setDefaultTransformIndex(t,e){setTransformIndex(t,findIndex(getBeforeRenderableDatas(t).startTransforms,(function(t){return 0===t.indexOf("".concat(e,"("))})))}function setTransformIndex(t,e){var r=getBeforeRenderableDatas(t),i=t.datas;if(i.transformIndex=e,-1!==e){var n=r.startTransforms[e];if(n){var a=parse([n]);i.startValue=a[0].functionValue}}}function fillOriginalTransform(t,e){getBeforeRenderableDatas(t).nextTransforms=splitSpace(e)}function getBeforeRenderableDatas(t){return t.originalDatas.beforeRenderable}function getNextTransforms(t){return t.originalDatas.beforeRenderable.nextTransforms}function getNextTransformText(t){return(getNextTransforms(t)||[]).join(" ")}function getNextStyle(t){return getBeforeRenderableDatas(t).nextStyle}function fillTransformEvent(t,e,r,i,n){fillOriginalTransform(n,e);var a=Draggable.drag(t,setCustomDrag(n,t.state,r,i,!1)),o=a?a.transform:e;return __assign$1(__assign$1({transform:e,drag:a},fillCSSObject({transform:o},n)),{afterTransform:o})}function getTranslateFixedPosition(t,e,r,i,n,a){return getDirectionOffset(t,r,i,getNextTransformMatrix(t.state,n,e,a))}function getTranslateDist(t,e,r,i,n,a,o){var s=getTranslateFixedPosition(t,e,r,n,a,o),l=t.state,p=l.left,c=l.top,h=t.props.groupable,u=h?p:0,d=h?c:0,f=minus$2(i,s);return minus$2(f,[u,d])}function getScaleDist(t,e,r,i,n,a,o){return getTranslateDist(t,e,r,i,n,a,o)}function getDirectionByPos(t,e,r){return[e?t[0]/(e/2)-1:0,r?t[1]/(r/2)-1:0]}function getDirectionOffset(t,e,r,i){void 0===i&&(i=t.state.allMatrix);var n=t.state,a=n.width,o=n.height,s=n.is3d?4:3;return calculatePosition(i,[a/2*(1+e[0])+r[0],o/2*(1+e[1])+r[1]],s)}function getRotateDist(t,e,r){var i=r.fixedDirection,n=r.fixedPosition,a=r.fixedOffset;return getTranslateDist(t,"rotate(".concat(e,"deg)"),i,n,a,r)}function getResizeDist(t,e,r,i,n,a){var o=t.props.groupable,s=t.state,l=s.transformOrigin,p=s.offsetMatrix,c=s.is3d,h=s.width,u=s.height,d=s.left,f=s.top,g=a.fixedDirection,m=c?4:3,v=o?d:0,y=o?f:0;return minus$2(getDist(i,getNextMatrix(p,a.nextTargetMatrix||s.targetMatrix,calculateTransformOrigin(n,e,r,h,u,l),m),e,r,m,g),[v,y])}function getAbsolutePosition(t,e){return getPosByDirection(getAbsolutePosesByState(t.state),e)}function getGestoData(t,e){var r,i=t.targetGesto,n=t.controlGesto;return(null==i?void 0:i.isFlag())&&(r=i.getEventData()[e]),!r&&(null==n?void 0:n.isFlag())&&(r=n.getEventData()[e]),r||{}}function getShadowRoot(t){if(t&&t.getRootNode){var e=t.getRootNode();if(11===e.nodeType)return e}}function getMatrixStackInfo(t,e,r){for(var i,n,a,o=t,s=[],l=getDocumentElement(t)||getDocumentBody(t),p=!r&&t===e||t===l,c=p,h=!1,u=3,d=!1,f=getOffsetInfo(e,e,!0).offsetParent,g=1;o&&!c;){c=p;var m=getCachedStyle(o),v=m("position"),y=m("scale"),b="fixed"===v,_=convertCSStoMatrix(getTransformMatrix(getElementTransform(o))),x=void 0,S=!1,w=!1,A=0,E=0,C=0,P=0,T={hasTransform:!1,fixedContainer:null};b&&(d=!0,f=(T=getPositionFixedInfo(o)).fixedContainer);var D=_.length;h||16!==D||(h=!0,u=4,convert3DMatrixes(s),a&&(a=convertDimension(a,3,4))),h&&9===D&&(_=convertDimension(_,3,4));var M=getOffsetPosInfo(o,t),k=M.tagName,I=M.hasOffset,R=M.isSVG,F=M.origin,B=M.targetOrigin,N=__read(M.offset,2),O=N[0],V=N[1];"svg"===k&&a&&(s.push({type:"target",target:o,matrix:getSVGMatrix(o,u)}),s.push({type:"offset",target:o,matrix:createIdentityMatrix(u)}));var z=parseFloat(m("zoom"))||1;if(b)x=T.fixedContainer,S=!0;else{var L=getOffsetInfo(o,e,!1,!0,m),G=L.offsetZoom;if(x=L.offsetParent,S=L.isEnd,w=L.isStatic,g*=G,(L.isCustomElement||1!==G)&&w)O-=x.offsetLeft,V-=x.offsetTop;else if(IS_FIREFOX||IS_CHROMIUM109){if(L.parentSlotElement){for(var $=x,j=0,H=0;$&&getShadowRoot($);)j+=$.offsetLeft,H+=$.offsetTop,$=$.offsetParent;O-=j,V-=H}}}if(!IS_WEBKIT||IS_SAFARI_ABOVE15||!I||R||!w||"relative"!==v&&"static"!==v||(O-=x.offsetLeft,V-=x.offsetTop,p=p||S),b)I&&T.hasTransform&&(C=x.clientLeft,P=x.clientTop);else if(I&&f!==x&&(A=x.clientLeft,E=x.clientTop),I&&x===l){var W=getBodyOffset(o,!1);O+=W[0],V+=W[1]}if(s.push({type:"target",target:o,matrix:getAbsoluteMatrix(_,u,F)}),y&&"1"!==y&&"none"!==y){var U=__read(y.split(" ").map((function(t){return parseFloat(t)})),2),Y=U[0],q=U[1],X=createScaleMatrix([Y,void 0===q?Y:q],u);s.push({type:"offset",target:o,matrix:createIdentityMatrix(u)}),s.push({type:"target",target:o,matrix:getAbsoluteMatrix(X,u,F)})}if(I){var K=o===t,Z=K?0:o.scrollLeft,J=K?0:o.scrollTop;s.push({type:"offset",target:o,matrix:createOriginMatrix([O-Z+A-C,V-J+E-P],u)})}else s.push({type:"offset",target:o,origin:F});if(1!==z&&s.push({type:"zoom",target:o,matrix:getAbsoluteMatrix(createScaleMatrix([z,z],u),u,[0,0])}),a||(a=_),i||(i=F),n||(n=B),c||b)break;o=x,p=S,r&&o!==l||(c=p)}return a||(a=createIdentityMatrix(u)),i||(i=[0,0]),n||(n=[0,0]),{zoom:g,offsetContainer:f,matrixes:s,targetMatrix:a,transformOrigin:i,targetOrigin:n,is3d:h,hasFixed:d}}var cacheStyleMap=null,clientRectStyleMap=null,matrixContainerInfos=null;function setStoreCache(t){t?(window.Map&&(cacheStyleMap=new Map,clientRectStyleMap=new Map),matrixContainerInfos=[]):(cacheStyleMap=null,matrixContainerInfos=null,clientRectStyleMap=null)}function getCachedClientRect(t){var e=null==clientRectStyleMap?void 0:clientRectStyleMap.get(t);if(e)return e;var r=getClientRect(t,!0);return clientRectStyleMap&&clientRectStyleMap.set(t,r),r}function getCachedMatrixContainerInfo(t,e){if(matrixContainerInfos){var r=find$1(matrixContainerInfos,(function(r){return r[0][0]==t&&r[0][1]==e}));if(r)return r[1]}var i=getMatrixStackInfo(t,e,!0);return matrixContainerInfos&&matrixContainerInfos.push([[t,e],i]),i}function getCachedStyle(t){var e=null==cacheStyleMap?void 0:cacheStyleMap.get(t);if(!e){var r=getWindow(t).getComputedStyle(t);if(!cacheStyleMap)return function(t){return r[t]};e={style:r,cached:{}},cacheStyleMap.set(t,e)}var i=e.cached,n=e.style;return function(t){return t in i||(i[t]=n[t]),i[t]}}function fillChildEvents(t,e,r){var i=r.originalDatas;i.groupable=i.groupable||{};var n=i.groupable;n.childDatas=n.childDatas||[];var a=n.childDatas;return t.moveables.map((function(t,i){return a[i]=a[i]||{},a[i][e]=a[i][e]||{},__assign$1(__assign$1({},r),{datas:a[i][e],originalDatas:a[i]})}))}function triggerChildGesto(t,e,r,i,n,a,o){var s=!!r.match(/Start$/g),l=!!r.match(/End$/g),p=n.isPinch,c=n.datas,h=fillChildEvents(t,e.name,n),u=t.moveables,d=h.map((function(t,n){var h=u[n],d=h.state,f=d.gestos,g=t;if(s)g=new CustomGesto(o).dragStart(i,t);else{if(f[o]||(f[o]=c.childGestos[n]),!f[o])return;g=setCustomDrag(t,d,i,p,a,o)}var m=e[r](h,__assign$1(__assign$1({},g),{parentFlag:!0}));return l&&(f[o]=null),m}));return s&&(c.childGestos=u.map((function(t){return t.state.gestos[o]}))),d}function triggerChildAbles(t,e,r,i,n,a){void 0===n&&(n=function(t,e){return e});var o=!!r.match(/End$/g),s=fillChildEvents(t,e.name,i),l=t.moveables;return s.map((function(t,i){var s,p=l[i];s=n(p,t);var c=e[r](p,__assign$1(__assign$1({},s),{parentFlag:!0}));return c&&a&&a(p,t,c,i),o&&(p.state.gestos={}),c}))}function startChildDist(t,e,r,i){var n=r.fixedDirection,a=r.fixedPosition,o=getPosByDirection(i.datas.startPositions||getAbsolutePosesByState(e.state),n),s=__read(calculate(createRotateMatrix(-t.rotation/180*Math.PI,3),[o[0]-a[0],o[1]-a[1],1],3),2),l=s[0],p=s[1];return i.datas.originalX=l,i.datas.originalY=p,i}function renderDirectionControlsByInfos(t,e,r,i){var n=t.getState(),a=n.renderPoses,o=n.rotation,s=n.direction,l=getProps(t.props,e).zoom,p=absDegree(o/Math.PI*180),c={},h=t.renderState;h.renderDirectionMap||(h.renderDirectionMap={});var u=h.renderDirectionMap;r.forEach((function(t){var e=t.dir;c[e]=!0}));var d=sign(s);return r.map((function(t){var r=t.data,n=t.classNames,s=t.dir,h=DIRECTION_INDEXES[s];if(!h||!c[s])return null;u[s]=!0;var f=(throttle(p,15)+d*DIRECTION_ROTATIONS[s]+720)%180,g={};return getKeys(r).forEach((function(t){g["data-".concat(t)]=r[t]})),i.createElement("div",__assign$1({className:prefix.apply(void 0,__spreadArray(["control","direction",s,e],__read(n),!1)),"data-rotation":f,"data-direction":s},g,{key:"direction-".concat(s),style:getControlTransform.apply(void 0,__spreadArray([o,l],__read(h.map((function(t){return a[t]}))),!1))}))}))}function renderDirectionControls(t,e,r,i){var n=getProps(t.props,r),a=n.renderDirections,o=void 0===a?e:a,s=n.displayAroundControls;if(!o)return[];var l=!0===o?DIRECTIONS:o;return __spreadArray(__spreadArray([],__read(s?renderAroundControls(t,i,r,l):[]),!1),__read(renderDirectionControlsByInfos(t,r,l.map((function(t){return{data:{},classNames:[],dir:t}})),i)),!1)}function renderLine(t,e,r,i,n,a){for(var o=[],s=6;s<arguments.length;s++)o[s-6]=arguments[s];var l=getRad$1(r,i),p=e?throttle(l/Math.PI*180,15)%180:-1;return t.createElement("div",{key:"line-".concat(a),className:prefix.apply(void 0,__spreadArray(["line","direction",e?"edge":"",e],__read(o),!1)),"data-rotation":p,"data-line-key":a,"data-direction":e,style:getLineStyle(r,i,n,l)})}function renderEdgeLines(t,e,r,i,n){return(!0===r?DIRECTIONS4:r).map((function(r,a){var o=__read(DIRECTION_INDEXES[r],2),s=o[0],l=o[1];if(null!=l)return renderLine(t,r,i[s],i[l],n,"".concat(e,"Edge").concat(a),e)})).filter(Boolean)}function getRenderDirections(t){return function(e,r){var i=getProps(e.props,t).edge;return i&&(!0===i||i.length)?__spreadArray(__spreadArray([],__read(renderEdgeLines(r,t,i,e.getState().renderPoses,e.props.zoom)),!1),__read(renderDiagonalDirections(e,t,r)),!1):renderAllDirections(e,t,r)}}function renderAllDirections(t,e,r){return renderDirectionControls(t,DIRECTIONS,e,r)}function renderDiagonalDirections(t,e,r){return renderDirectionControls(t,["nw","ne","sw","se"],e,r)}function renderAroundControls(t,e,r,i){var n=t.renderState;n.renderDirectionMap||(n.renderDirectionMap={});var a=t.getState(),o=a.renderPoses,s=a.rotation,l=a.direction,p=n.renderDirectionMap,c=t.props.zoom,h=sign(l),u=s/Math.PI*180;return(i||getKeys(p)).map((function(t){var i=DIRECTION_INDEXES[t];if(!i)return null;var n=(throttle(u,15)+h*DIRECTION_ROTATIONS[t]+720)%180,a=["around-control"];return r&&a.push("direction",r),e.createElement("div",{className:prefix.apply(void 0,__spreadArray([],__read(a),!1)),"data-rotation":n,"data-direction":t,key:"direction-around-".concat(t),style:getControlTransform.apply(void 0,__spreadArray([s,c],__read(i.map((function(t){return o[t]}))),!1))})}))}function checkBoundPoses(t,e,r){var i=t||{},n=i.position,a=void 0===n?"client":n,o=i.left,s=void 0===o?-1/0:o,l=i.top,p=void 0===l?-1/0:l,c=i.right,h=void 0===c?1/0:c,u=i.bottom,d={position:a,left:s,top:p,right:h,bottom:void 0===u?1/0:u};return{vertical:checkBounds(d,e,!0),horizontal:checkBounds(d,r,!1)}}function getBounds(t,e){var r=t.state,i=r.containerClientRect,n=i.clientHeight,a=i.clientWidth,o=i.clientLeft,s=i.clientTop,l=r.snapOffset,p=l.left,c=l.top,h=l.right,u=l.bottom,d=e||t.props.bounds||{},f="css"===(d.position||"client"),g=d.left,m=void 0===g?-1/0:g,v=d.top,y=void 0===v?-1/0:v,b=d.right,_=void 0===b?f?-1/0:1/0:b,x=d.bottom,S=void 0===x?f?-1/0:1/0:x;return f&&(_=a+h-p-_,S=n+u-c-S),{left:m+p-o,right:_+p-o,top:y+c-s,bottom:S+c-s}}function checkBoundKeepRatio(t,e,r){var i=getBounds(t),n=i.left,a=i.top,o=i.right,s=i.bottom,l=__read(r,2),p=l[0],c=l[1],h=__read(minus$2(r,e),2),u=h[0],d=h[1];abs(u)<TINY_NUM&&(u=0),abs(d)<TINY_NUM&&(d=0);var f=d>0,g=u>0,m={isBound:!1,offset:0,pos:0},v={isBound:!1,offset:0,pos:0};if(0===u&&0===d)return{vertical:m,horizontal:v};if(0===u)f?s<c&&(v.pos=s,v.offset=c-s):a>c&&(v.pos=a,v.offset=c-a);else if(0===d)g?o<p&&(m.pos=o,m.offset=p-o):n>p&&(m.pos=n,m.offset=p-n);else{var y=d/u,b=r[1]-y*p,_=0,x=0,S=!1;g&&o<=p?(_=y*o+b,x=o,S=!0):!g&&p<=n&&(_=y*n+b,x=n,S=!0),S&&(_<a||_>s)&&(S=!1),S||(f&&s<=c?(x=((_=s)-b)/y,S=!0):!f&&c<=a&&(x=((_=a)-b)/y,S=!0)),S&&(m.isBound=!0,m.pos=x,m.offset=p-x,v.isBound=!0,v.pos=_,v.offset=c-_)}return{vertical:m,horizontal:v}}function checkBounds(t,e,r){var i=t[r?"left":"top"],n=t[r?"right":"bottom"],a=Math.min.apply(Math,__spreadArray([],__read(e),!1)),o=Math.max.apply(Math,__spreadArray([],__read(e),!1)),s=[];return i+1>a&&s.push({isBound:!0,offset:a-i,pos:i}),n-1<o&&s.push({isBound:!0,offset:o-n,pos:n}),s.length||s.push({isBound:!1,offset:0,pos:0}),s.sort((function(t,e){return abs(e.offset)-abs(t.offset)}))}function isBoundRotate$1(t,e,r){return(r?t.map((function(t){return rotate(t,r)})):t).some((function(t){return t[0]<e.left&&abs(t[0]-e.left)>.1||t[0]>e.right&&abs(t[0]-e.right)>.1||t[1]<e.top&&abs(t[1]-e.top)>.1||t[1]>e.bottom&&abs(t[1]-e.bottom)>.1}))}function boundRotate(t,e,r){var i=getDistSize(t),n=Math.sqrt(i*i-e*e)||0;return[n,-n].sort((function(e,i){return abs(e-t[r?0:1])-abs(i-t[r?0:1])})).map((function(t){return getRad$1([0,0],r?[t,e]:[e,t])}))}function checkRotateBounds(t,e,r,i,n){if(!t.props.bounds)return[];var a=n*Math.PI/180,o=getBounds(t),s=o.left,l=o.top,p=o.right,c=o.bottom,h=s-i[0],u=p-i[0],d=l-i[1],f=c-i[1],g={left:h,top:d,right:u,bottom:f};if(!isBoundRotate$1(r,g,0))return[];var m=[];return[[h,0],[u,0],[d,1],[f,1]].forEach((function(t){var i=__read(t,2),n=i[0],o=i[1];r.forEach((function(t){var r=getRad$1([0,0],t);m.push.apply(m,__spreadArray([],__read(boundRotate(t,n,o).map((function(t){return a+t-r})).filter((function(t){return!isBoundRotate$1(e,g,t)})).map((function(t){return throttle(180*t/Math.PI,TINY_NUM)}))),!1))}))})),m}var VERTICAL_NAMES=["left","right","center"],HORIZONTAL_NAMES=["top","bottom","middle"],VERTICAL_NAMES_MAP={start:"left",end:"right",center:"center"},HORIZONTAL_NAMES_MAP={start:"top",end:"bottom",center:"middle"};function hasGuidelines(t,e){var r=t.props,i=r.snappable,n=r.bounds,a=r.innerBounds,o=r.verticalGuidelines,s=r.horizontalGuidelines,l=r.snapGridWidth,p=r.snapGridHeight,c=t.state,h=c.guidelines,u=c.enableSnap;return!(!i||!u||e&&!0!==i&&i.indexOf(e)<0)&&!!(l||p||n||a||h&&h.length||o&&o.length||s&&s.length)}function getSnapDirections(t){return!1===t?{}:!0!==t&&t?t:{left:!0,right:!0,top:!0,bottom:!0}}function mapSnapDirectionPoses(t,e){var r=getSnapDirections(t),i={};for(var n in r)n in e&&r[n]&&(i[n]=e[n]);return i}function splitSnapDirectionPoses(t,e){var r=mapSnapDirectionPoses(t,e),i=HORIZONTAL_NAMES.filter((function(t){return t in r})),n=VERTICAL_NAMES.filter((function(t){return t in r}));return{horizontalNames:i,verticalNames:n,horizontal:i.map((function(t){return r[t]})),vertical:n.map((function(t){return r[t]}))}}function calculateContainerPos(t,e,r){var i=calculatePosition(t,[e.clientLeft,e.clientTop],r);return[e.left+i[0],e.top+i[1]]}function solveLineConstants(t){var e=__read(t,2),r=e[0],i=e[1],n=i[0]-r[0],a=i[1]-r[1];Math.abs(n)<TINY_NUM$1&&(n=0),Math.abs(a)<TINY_NUM$1&&(a=0);var o=0,s=0,l=0;return n?a?(s=1,l=(o=-a/n)*r[0]-r[1]):(s=1,l=-r[1]):(o=-1,l=r[0]),[o,s,l].map((function(t){return throttle(t,TINY_NUM$1)}))}function checkMoveableSnapPoses(t,e,r,i,n,a){void 0===i&&(i=[]),void 0===n&&(n=[]);var o=selectValue(a,t.props.snapThreshold,5);return checkSnapPoses(t.state.guidelines,e,r,i,n,o)}function checkSnapPoses(t,e,r,i,n,a){return{vertical:checkSnap(t,"vertical",e,a,i),horizontal:checkSnap(t,"horizontal",r,a,n)}}function checkSnapKeepRatio(t,e,r){var i=__read(r,2),n=i[0],a=i[1],o=__read(e,2),s=o[0],l=o[1],p=__read(minus$2(r,e),2),c=p[0],h=p[1],u=h>0,d=c>0;c=getTinyDist(c),h=getTinyDist(h);var f={isSnap:!1,offset:0,pos:0},g={isSnap:!1,offset:0,pos:0};if(0===c&&0===h)return{vertical:f,horizontal:g};var m=checkMoveableSnapPoses(t,c?[n]:[],h?[a]:[]),v=m.vertical,y=m.horizontal;v.posInfos.filter((function(t){var e=t.pos;return d?e>=s:e<=s})),y.posInfos.filter((function(t){var e=t.pos;return u?e>=l:e<=l})),v.isSnap=v.posInfos.length>0,y.isSnap=y.posInfos.length>0;var b=getNearestSnapGuidelineInfo(v),_=b.isSnap,x=b.guideline,S=getNearestSnapGuidelineInfo(y),w=S.isSnap,A=S.guideline,E=w?A.pos[1]:0,C=_?x.pos[0]:0;if(0===c)w&&(g.isSnap=!0,g.pos=A.pos[1],g.offset=a-g.pos);else if(0===h)_&&(f.isSnap=!0,f.pos=C,f.offset=n-C);else{var P=h/c,T=r[1]-P*n,D=0,M=0,k=!1;_?(D=P*(M=C)+T,k=!0):w&&(M=((D=E)-T)/P,k=!0),k&&(f.isSnap=!0,f.pos=M,f.offset=n-M,g.isSnap=!0,g.pos=D,g.offset=a-D)}return{vertical:f,horizontal:g}}function getStringDirection(t){var e="";return-1===t||"top"===t||"left"===t?e="start":0===t||"center"===t||"middle"===t?e="center":1!==t&&"right"!==t&&"bottom"!==t||(e="end"),e}function checkSnaps(t,e,r){var i=splitSnapDirectionPoses(t.props.snapDirections,e),n=checkMoveableSnapPoses(t,i.vertical,i.horizontal,i.verticalNames.map((function(t){return getStringDirection(t)})),i.horizontalNames.map((function(t){return getStringDirection(t)})),r),a=getStringDirection(i.horizontalNames[n.horizontal.index]),o=getStringDirection(i.verticalNames[n.vertical.index]);return{vertical:__assign$1(__assign$1({},n.vertical),{direction:o}),horizontal:__assign$1(__assign$1({},n.horizontal),{direction:a})}}function getNearestSnapGuidelineInfo(t){var e=t.isSnap;if(!e)return{isSnap:!1,offset:0,dist:-1,pos:0,guideline:null};var r=t.posInfos[0],i=r.guidelineInfos[0],n=i.offset,a=i.dist,o=i.guideline;return{isSnap:e,offset:n,dist:a,pos:r.pos,guideline:o}}function checkSnap(t,e,r,i,n){var a,o;if(void 0===n&&(n=[]),!t||!t.length)return{isSnap:!1,index:-1,direction:"",posInfos:[]};var s="vertical"===e?0:1,l=r.map((function(r,a){var o=n[a]||"",l=t.map((function(t){var e=t.pos,i=r-e[s];return{offset:i,dist:abs(i),guideline:t,direction:o}})).filter((function(t){var r=t.guideline,n=t.dist;return!(r.type!==e||n>i)})).sort((function(t,e){return t.dist-e.dist}));return{pos:r,index:a,guidelineInfos:l,direction:o}})).filter((function(t){return t.guidelineInfos.length>0})).sort((function(t,e){return t.guidelineInfos[0].dist-e.guidelineInfos[0].dist})),p=l.length>0;return{isSnap:p,index:p?l[0].index:-1,direction:null!==(o=null===(a=l[0])||void 0===a?void 0:a.direction)&&void 0!==o?o:"",posInfos:l}}function getSnapInfosByDirection(t,e,r,i){void 0===i&&(i=1);var n=[];r[0]&&r[1]?n=[r,[-r[0],r[1]],[r[0],-r[1]]]:r[0]||r[1]?t.props.keepRatio?n.push([-1,-1],[-1,1],[1,-1],[1,1],r):(n.push.apply(n,__spreadArray([],__read(getPosesByDirection([[-1,-1],[1,-1],[-1,-1],[1,1]],r)),!1)),n.length>1&&n.push([(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2])):[[-1,-1],[1,-1],[1,1],[-1,1]].forEach((function(t,e,r){var i=r[e+1]||r[0];n.push(t),n.push([(t[0]+i[0])/2,(t[1]+i[1])/2])}));var a=n.map((function(t){return getPosByDirection(e,t)})),o=checkMoveableSnapPoses(t,a.map((function(t){return t[0]})),a.map((function(t){return t[1]})),n.map((function(t){return getStringDirection(t[0])})),n.map((function(t){return getStringDirection(t[1])})),i),s=getStringDirection(n.map((function(t){return t[0]}))[o.vertical.index]),l=getStringDirection(n.map((function(t){return t[1]}))[o.horizontal.index]);return{vertical:__assign$1(__assign$1({},o.vertical),{direction:s}),horizontal:__assign$1(__assign$1({},o.horizontal),{direction:l})}}function checkSnapBoundPriority(t,e){var r=abs(t.offset),i=abs(e.offset);return t.isBound&&e.isBound?i-r:t.isBound?-1:e.isBound?1:t.isSnap&&e.isSnap?i-r:t.isSnap?-1:e.isSnap||r<TINY_NUM?1:i<TINY_NUM?-1:r-i}function getNearOffsetInfo(t,e){return t.slice().sort((function(t,r){var i=t.sign[e],n=r.sign[e],a=t.offset[e],o=r.offset[e];return i?n?checkSnapBoundPriority({isBound:t.isBound,isSnap:t.isSnap,offset:a},{isBound:r.isBound,isSnap:r.isSnap,offset:o}):-1:1}))[0]}function getCheckSnapDirections(t,e,r){var i=[];if(r)1!==abs(e[0])||1!==abs(e[1])?i.push([e,[-1,-1]],[e,[-1,1]],[e,[1,-1]],[e,[1,1]]):i.push([e,[t[0],-t[1]]],[e,[-t[0],t[1]]]),i.push([e,t]);else if(t[0]&&t[1]||!t[0]&&!t[1]){var n=t[0]?t:[1,1];[1,-1].forEach((function(t){[1,-1].forEach((function(r){var a=[t*n[0],r*n[1]];e[0]===a[0]&&e[1]===a[1]||i.push([e,a])}))}))}else if(t[0]){(1===abs(e[0])?[1]:[1,-1]).forEach((function(r){i.push([[e[0],-1],[r*t[0],-1]],[[e[0],0],[r*t[0],0]],[[e[0],1],[r*t[0],1]])}))}else if(t[1]){(1===abs(e[1])?[1]:[1,-1]).forEach((function(r){i.push([[-1,e[1]],[-1,r*t[1]]],[[0,e[1]],[0,r*t[1]]],[[1,e[1]],[1,r*t[1]]])}))}return i}function isStartLine(t,e){var r=average([e[0][0],e[1][0]]),i=average([e[0][1],e[1][1]]);return{vertical:r<=t[0],horizontal:i<=t[1]}}function hitTestLine(t,e){var r,i,n=__read(e,2),a=n[0],o=n[1],s=o[0]-a[0],l=o[1]-a[1];if(abs(s)<TINY_NUM&&(s=0),abs(l)<TINY_NUM&&(l=0),s)if(l){r=l/s*(t[0]-a[0])+a[1],i=t[1]}else r=a[1],i=t[1];else r=a[0],i=t[0];return r-i}function isSameStartLine(t,e,r,i){return void 0===i&&(i=TINY_NUM),t.every((function(t){var n=hitTestLine(t,e);return n<=0===r||abs(n)<=i}))}function checkInnerBoundDot(t,e,r,i,n){return void 0===n&&(n=0),i&&e-n<=t||!i&&t<=r+n?{isBound:!0,offset:i?e-t:r-t}:{isBound:!1,offset:0}}function checkInnerBound(t,e){var r=e.line,i=e.centerSign,n=e.verticalSign,a=e.horizontalSign,o=e.lineConstants,s=t.props.innerBounds;if(!s)return{isAllBound:!1,isBound:!1,isVerticalBound:!1,isHorizontalBound:!1,offset:[0,0]};var l=s.left,p=s.top,c=s.width,h=s.height,u=[[l,p],[l,p+h]],d=[[l,p],[l+c,p]],f=[[l+c,p],[l+c,p+h]],g=[[l,p+h],[l+c,p+h]];if(isSameStartLine([[l,p],[l+c,p],[l,p+h],[l+c,p+h]],r,i))return{isAllBound:!1,isBound:!1,isVerticalBound:!1,isHorizontalBound:!1,offset:[0,0]};var m=checkLineBoundCollision(r,o,d,n),v=checkLineBoundCollision(r,o,g,n),y=checkLineBoundCollision(r,o,u,a),b=checkLineBoundCollision(r,o,f,a),_=m.isBound&&v.isBound,x=m.isBound||v.isBound,S=y.isBound&&b.isBound,w=y.isBound||b.isBound,A=maxOffset(m.offset,v.offset),E=maxOffset(y.offset,b.offset),C=[0,0],P=!1,T=!1;return abs(E)<abs(A)?(C=[A,0],P=x,T=_):(C=[0,E],P=w,T=S),{isAllBound:T,isVerticalBound:x,isHorizontalBound:w,isBound:P,offset:C}}function checkLineBoundCollision(t,e,r,i,n,a){var o,s,l=__read(e,2),p=l[0],c=l[1],h=t[0],u=r[0],d=r[1],f=getTinyDist(d[1]-u[1]),g=c,m=p,v=-p/c;return getTinyDist(d[0]-u[0])?f||a&&!g?{isBound:!1,offset:0}:m?checkInnerBoundDot((u[1]-h[1])/v+h[0],u[0],d[0],i,n):{isBound:s=abs(o=u[1]-h[1])<=(n||0),offset:s?o:0}:a&&!m?{isBound:!1,offset:0}:g?checkInnerBoundDot(v*(u[0]-h[0])+h[1],u[1],d[1],i,n):{isBound:s=abs(o=u[0]-h[0])<=(n||0),offset:s?o:0}}function getInnerBoundInfo(t,e,r){return e.map((function(e){var i=checkInnerBound(t,e),n=i.isBound,a=i.offset,o=i.isVerticalBound,s=i.isHorizontalBound,l=e.multiple,p=getDragDist({datas:r,distX:a[0],distY:a[1]}).map((function(t,e){return t*(l[e]?2/l[e]:0)}));return{sign:l,isBound:n,isVerticalBound:o,isHorizontalBound:s,isSnap:!1,offset:p}}))}function getInnerBoundDragInfo(t,e,r){var i,n=getCheckInnerBoundLineInfos(t,e,[0,0],!1).map((function(t){return __assign$1(__assign$1({},t),{multiple:t.multiple.map((function(t){return 2*abs(t)}))})})),a=getInnerBoundInfo(t,n,r),o=getNearOffsetInfo(a,0),s=getNearOffsetInfo(a,1),l=0,p=0,c=o.isVerticalBound||s.isVerticalBound,h=o.isHorizontalBound||s.isHorizontalBound;return(c||h)&&(l=(i=__read(getInverseDragDist({datas:r,distX:-o.offset[0],distY:-s.offset[1]}),2))[0],p=i[1]),{vertical:{isBound:c,offset:l},horizontal:{isBound:h,offset:p}}}function getCheckSnapLineDirections(t,e){var r=[],i=t[0],n=t[1];return i&&n?r.push([[0,2*n],t,[-i,n]],[[2*i,0],t,[i,-n]]):i?(r.push([[2*i,0],[i,1],[i,-1]]),e&&r.push([[0,-1],[i,-1],[-i,-1]],[[0,1],[i,1],[-i,1]])):n?(r.push([[0,2*n],[1,n],[-1,n]]),e&&r.push([[-1,0],[-1,n],[-1,-n]],[[1,0],[1,n],[1,-n]])):r.push([[-1,0],[-1,-1],[-1,1]],[[1,0],[1,-1],[1,1]],[[0,-1],[-1,-1],[1,-1]],[[0,1],[-1,1],[1,1]]),r}function getCheckInnerBoundLineInfos(t,e,r,i){var n=t.state,a=calculatePoses(n.allMatrix,100,100,n.is3d?4:3),o=getPosByDirection(a,[0,0]);return getCheckSnapLineDirections(r,i).map((function(t){var r=__read(t,3),i=r[0],n=r[1],s=r[2],l=[getPosByDirection(a,n),getPosByDirection(a,s)],p=solveLineConstants(l),c=isStartLine(o,l),h=c.vertical,u=c.horizontal;return{multiple:i,centerSign:hitTestLine(o,l)<=0,verticalSign:h,horizontalSign:u,lineConstants:p,line:[getPosByDirection(e,n),getPosByDirection(e,s)]}}))}function isBoundRotate(t,e,r,i){var n=i?t.map((function(t){return rotate(t,i)})):t;return[[n[0],n[1]],[n[1],n[3]],[n[3],n[2]],[n[2],n[0]]].some((function(t){var i=hitTestLine(r,t)<=0;return!isSameStartLine(e,t,i)}))}function getDistPointLine(t){var e=__read(t,2),r=e[0],i=e[1],n=i[0]-r[0],a=i[1]-r[1];if(!n)return abs(r[0]);if(!a)return abs(r[1]);var o=a/n;return abs((-o*r[0]+r[1])/Math.sqrt(Math.pow(o,2)+1))}function solveReverseLine(t){var e=__read(t,2),r=e[0],i=e[1],n=i[0]-r[0],a=i[1]-r[1];if(!n)return[r[0],0];if(!a)return[0,r[1]];var o=a/n,s=-o*r[0]+r[1];return[-s/(o+1/o),s/(o*o+1)]}function checkRotateInnerBounds(t,e,r,i,n){var a=t.props.innerBounds,o=n*Math.PI/180;if(!a)return[];var s=a.left,l=a.top,p=a.width,c=a.height,h=s-i[0],u=s+p-i[0],d=l-i[1],f=l+c-i[1],g=[[h,d],[u,d],[h,f],[u,f]],m=getPosByDirection(r,[0,0]);if(!isBoundRotate(r,g,m,0))return[];var v=[],y=g.map((function(t){return[getDistSize(t),getRad$1([0,0],t)]}));return[[r[0],r[1]],[r[1],r[3]],[r[3],r[2]],[r[2],r[0]]].forEach((function(t){var r=getRad$1([0,0],solveReverseLine(t)),i=getDistPointLine(t);v.push.apply(v,__spreadArray([],__read(y.filter((function(t){var e=__read(t,1)[0];return e&&i<=e})).map((function(t){var e=__read(t,2),n=e[0],a=e[1],s=Math.acos(n?i/n:0);return[o+(a+s)-r,o+(a-s)-r]})).reduce((function(t,e){return t.push.apply(t,__spreadArray([],__read(e),!1)),t}),[]).filter((function(t){return!isBoundRotate(e,g,m,t)})).map((function(t){return throttle(180*t/Math.PI,TINY_NUM)}))),!1))})),v}function checkInnerBoundPoses(t){var e=t.props.innerBounds;if(!e)return{vertical:[],horizontal:[]};var r=t.getRect(),i=[r.pos1,r.pos2,r.pos3,r.pos4],n=getPosByDirection(i,[0,0]),a=e.left,o=e.top,s=e.width,l=e.height,p=[[a,o],[a,o+l]],c=[[a,o],[a+s,o]],h=[[a+s,o],[a+s,o+l]],u=[[a,o+l],[a+s,o+l]],d=getCheckInnerBoundLineInfos(t,i,[0,0],!1),f=[],g=[],m={top:!1,bottom:!1,left:!1,right:!1};return d.forEach((function(t){var e=t.line,r=t.lineConstants,i=isStartLine(n,e),d=i.horizontal,v=i.vertical,y=checkLineBoundCollision(e,r,c,v,1,!0),b=checkLineBoundCollision(e,r,u,v,1,!0),_=checkLineBoundCollision(e,r,p,d,1,!0),x=checkLineBoundCollision(e,r,h,d,1,!0);y.isBound&&!m.top&&(f.push(o),m.top=!0),b.isBound&&!m.bottom&&(f.push(o+l),m.bottom=!0),_.isBound&&!m.left&&(g.push(a),m.left=!0),x.isBound&&!m.right&&(g.push(a+s),m.right=!0)})),{horizontal:f,vertical:g}}function solveEquation(t,e,r,i){var n=e[0]-t[0],a=e[1]-t[1];if(abs(n)<TINY_NUM$1&&(n=0),abs(a)<TINY_NUM$1&&(a=0),!n)return i?[0,0]:[0,r];if(!a)return i?[r,0]:[0,0];var o=a/n,s=t[1]-o*t[0];return i?[r,o*(e[0]+r)+s-e[1]]:[(e[1]+r-s)/o-e[0],r]}function solveNextOffset(t,e,r,i,n){var a=solveEquation(t,e,r,i);if(!a)return{isOutside:!1,offset:[0,0]};var o=getDist$2(t,e),s=getDist$2(a,t),l=getDist$2(a,e),p=s>o||l>o,c=__read(getDragDist({datas:n,distX:a[0],distY:a[1]}),2);return{offset:[c[0],c[1]],isOutside:p}}function getSnapBound(t,e){return t.isBound?t.offset:e.isSnap?getNearestSnapGuidelineInfo(e).offset:0}function checkThrottleDragRotate(t,e,r,i,n){var a=__read(e,2),o=a[0],s=a[1],l=__read(r,2),p=l[0],c=l[1],h=__read(i,2),u=h[0],d=h[1],f=__read(n,2),g=f[0],m=f[1],v=-g,y=-m;if(t&&o&&s){v=0,y=0;var b=[];if(p&&c?b.push([0,m],[g,0]):p?b.push([g,0]):c?b.push([0,m]):u&&d?b.push([0,m],[g,0]):u?b.push([g,0]):d&&b.push([0,m]),b.length){b.sort((function(t,e){return getDistSize(minus$2([o,s],t))-getDistSize(minus$2([o,s],e))}));var _=b[0];if(_[0]&&abs(o)>TINY_NUM$1)v=-_[0],y=s*abs(o+v)/abs(o)-s;else if(_[1]&&abs(s)>TINY_NUM$1){var x=s;y=-_[1],v=o*abs(s+y)/abs(x)-o}if(t&&c&&p)if(abs(v)>TINY_NUM$1&&abs(v)<abs(g))v*=S=abs(g)/abs(v),y*=S;else if(abs(y)>TINY_NUM$1&&abs(y)<abs(m)){var S;v*=S=abs(m)/abs(y),y*=S}else v=maxOffset(-g,v),y=maxOffset(-m,y)}}else v=o||p?-g:0,y=s||c?-m:0;return[v,y]}function checkSnapBoundsDrag(t,e,r,i,n,a){if(!hasGuidelines(t,"draggable"))return[{isSnap:!1,isBound:!1,offset:0},{isSnap:!1,isBound:!1,offset:0}];var o=getAbsolutePoses(a.absolutePoses,[e,r]),s=getRect(o),l=s.left,p=s.right,c=s.top,h=s.bottom,u={horizontal:o.map((function(t){return t[1]})),vertical:o.map((function(t){return t[0]}))},d=checkMoveableSnapBounds(t,n,splitSnapDirectionPoses(getSnapDirections(t.props.snapDirections),{left:l,right:p,top:c,bottom:h,center:(l+p)/2,middle:(c+h)/2}),u),f=d.vertical,g=d.horizontal,m=getInnerBoundDragInfo(t,o,a),v=m.vertical,y=m.horizontal,b=f.isSnap,_=g.isSnap,x=f.isBound||v.isBound,S=g.isBound||y.isBound,w=__read(checkThrottleDragRotate(i,[e,r],[x,S],[b,_],[maxOffset(f.offset,v.offset),maxOffset(g.offset,y.offset)]),2);return[{isBound:x,isSnap:b,offset:w[0]},{isBound:S,isSnap:_,offset:w[1]}]}function checkMoveableSnapBounds(t,e,r,i){void 0===i&&(i=r);var n=checkBoundPoses(getBounds(t),i.vertical,i.horizontal),a=n.horizontal,o=n.vertical,s=e?{horizontal:{isSnap:!1,index:-1},vertical:{isSnap:!1,index:-1}}:checkMoveableSnapPoses(t,r.vertical,r.horizontal),l=s.horizontal,p=s.vertical,c=getSnapBound(a[0],l),h=getSnapBound(o[0],p),u=abs(c),d=abs(h);return{horizontal:{isBound:a[0].isBound,isSnap:l.isSnap,snapIndex:l.index,offset:c,dist:u,bounds:a,snap:l},vertical:{isBound:o[0].isBound,isSnap:p.isSnap,snapIndex:p.index,offset:h,dist:d,bounds:o,snap:p}}}function checkSnapBounds(t,e,r,i,n){var a=checkBoundPoses(e,r,i),o=a.horizontal,s=a.vertical,l=checkSnapPoses(t,r,i,[],[],n),p=l.horizontal,c=l.vertical,h=getSnapBound(o[0],p),u=getSnapBound(s[0],c),d=abs(h),f=abs(u);return{horizontal:{isBound:o[0].isBound,isSnap:p.isSnap,snapIndex:p.index,offset:h,dist:d,bounds:o,snap:p},vertical:{isBound:s[0].isBound,isSnap:c.isSnap,snapIndex:c.index,offset:u,dist:f,bounds:s,snap:c}}}function checkSnapRightLine(t,e,r,i){var n=getRad$1(t,e)/Math.PI*180,a=r.vertical,o=a.isBound,s=a.isSnap,l=a.dist,p=r.horizontal,c=p.isBound,h=p.isSnap,u=n%180,d=u<3||u>177,f=u>87&&u<93;return p.dist<l&&(o||s&&!f&&(!i||!d))?"vertical":!c&&(!h||d||i&&f)?"":"horizontal"}function getSnapBoundInfo(t,e,r,i,n,a){return r.map((function(r){var o=__read(r,2),s=o[0],l=o[1],p=getPosByDirection(e,s),c=getPosByDirection(e,l),h=i?checkSnapBoundsKeepRatio(t,p,c,n):checkMoveableSnapBounds(t,n,{vertical:[c[0]],horizontal:[c[1]]}),u=h.horizontal,d=u.offset,f=u.isBound,g=u.isSnap,m=h.vertical,v=m.offset,y=m.isBound,b=m.isSnap,_=minus$2(l,s);if(!v&&!d)return{isBound:y||f,isSnap:b||g,sign:_,offset:[0,0]};var x=checkSnapRightLine(p,c,h,i);if(!x)return{sign:_,isBound:!1,isSnap:!1,offset:[0,0]};var S="vertical"===x,w=[0,0];return w=(w=i||1!==abs(l[0])||1!==abs(l[1])||s[0]===l[0]||s[1]===l[1]?solveNextOffset(p,c,-(S?v:d),S,a).offset:getDragDist({datas:a,distX:-v,distY:-d})).map((function(t,e){return t*(_[e]?2/_[e]:0)})),{sign:_,isBound:S?y:f,isSnap:S?b:g,offset:w}}))}function getSnapBoundOffset(t,e){return t.isBound?t.offset:e.isSnap?e.offset:0}function checkSnapBoundsKeepRatio(t,e,r,i){var n=checkBoundKeepRatio(t,e,r),a=n.horizontal,o=n.vertical,s=i?{horizontal:{isSnap:!1},vertical:{isSnap:!1}}:checkSnapKeepRatio(t,e,r),l=s.horizontal,p=s.vertical,c=getSnapBoundOffset(a,l),h=getSnapBoundOffset(o,p),u=abs(c),d=abs(h);return{horizontal:{isBound:a.isBound,isSnap:l.isSnap,offset:c,dist:u},vertical:{isBound:o.isBound,isSnap:p.isSnap,offset:h,dist:d}}}function checkMaxBounds(t,e,r,i,n){var a=[-r[0],-r[1]],o=t.state,s=o.width,l=o.height,p=t.props.bounds,c=1/0,h=1/0;if(p){var u=[[r[0],-r[1]],[-r[0],r[1]]],d=p.left,f=void 0===d?-1/0:d,g=p.top,m=void 0===g?-1/0:g,v=p.right,y=void 0===v?1/0:v,b=p.bottom,_=void 0===b?1/0:b;u.forEach((function(t){var r=t[0]!==a[0],o=t[1]!==a[1],p=getPosByDirection(e,t),u=360*getRad$1(i,p)/Math.PI;if(o){var d=p.slice();(abs(u-360)<2||abs(u-180)<2)&&(d[1]=i[1]);var g=solveNextOffset(i,d,(i[1]<p[1]?_:m)-p[1],!1,n),v=__read(g.offset,2)[1],b=g.isOutside;isNaN(v)||(h=l+(b?1:-1)*abs(v))}if(r){d=p.slice();(abs(u-90)<2||abs(u-270)<2)&&(d[0]=i[0]);var x=solveNextOffset(i,d,(i[0]<p[0]?y:f)-p[0],!0,n),S=__read(x.offset,1)[0],w=x.isOutside;isNaN(S)||(c=s+(w?1:-1)*abs(S))}}))}return{maxWidth:c,maxHeight:h}}var Draggable={name:"draggable",props:["draggable","throttleDrag","throttleDragRotate","hideThrottleDragRotateLine","startDragRotate","edgeDraggable"],events:["dragStart","drag","dragEnd","dragGroupStart","dragGroup","dragGroupEnd"],requestStyle:function(){return["left","top","right","bottom"]},requestChildStyle:function(){return["left","top","right","bottom"]},render:function(t,e){var r=t.props,i=r.hideThrottleDragRotateLine,n=r.throttleDragRotate,a=r.zoom,o=t.getState(),s=o.dragInfo,l=o.beforeOrigin;if(i||!n||!s)return[];var p=s.dist;if(!p[0]&&!p[1])return[];var c=getDistSize(p),h=getRad$1(p,[0,0]);return[e.createElement("div",{className:prefix("line","horizontal","dragline","dashed"),key:"dragRotateGuideline",style:{width:"".concat(c,"px"),transform:"translate(".concat(l[0],"px, ").concat(l[1],"px) rotate(").concat(h,"rad) scaleY(").concat(a,")")}})]},dragStart:function(t,e){var r=e.datas,i=e.parentEvent,n=e.parentGesto,a=t.state,o=a.gestos,s=a.style;if(o.draggable)return!1;o.draggable=n||t.targetGesto,r.datas={},r.left=parseFloat(s.left||"")||0,r.top=parseFloat(s.top||"")||0,r.bottom=parseFloat(s.bottom||"")||0,r.right=parseFloat(s.right||"")||0,r.startValue=[0,0],setDragStart(t,e),setDefaultTransformIndex(e,"translate"),startCheckSnapDrag(t,r),r.prevDist=[0,0],r.prevBeforeDist=[0,0],r.isDrag=!1,r.deltaOffset=[0,0];var l=fillParams(t,e,__assign$1({set:function(t){r.startValue=t}},fillTransformStartEvent(e)));return!1!==(i||triggerEvent(t,"onDragStart",l))?(r.isDrag=!0,t.state.dragInfo={startRect:t.getRect(),dist:[0,0]}):(o.draggable=null,r.isPinch=!1),!!r.isDrag&&l},drag:function(t,e){if(e){resolveTransformEvent(e,"translate");var r=e.datas,i=e.parentEvent,n=e.parentFlag,a=e.isPinch,o=e.deltaOffset,s=e.useSnap,l=e.isRequest,p=e.distX,c=e.distY,h=r.isDrag,u=r.prevDist,d=r.prevBeforeDist,f=r.startValue;if(h){o&&(p+=o[0],c+=o[1]);var g=t.props,m=g.parentMoveable,v=i?0:g.throttleDrag||0,y=i?0:g.throttleDragRotate||0,b=0,_=!1,x=!1,S=!1,w=!1;if(!i&&y>0&&(p||c)){var A=g.startDragRotate||0,E=throttle(A+180*getRad$1([0,0],[p,c])/Math.PI,y)-A,C=c*Math.abs(Math.cos((E-90)/180*Math.PI)),P=getDistSize([p*Math.abs(Math.cos(E/180*Math.PI)),C]);b=E*Math.PI/180,p=P*Math.cos(b),c=P*Math.sin(b)}if(!a&&!i&&!n){var T=__read(checkSnapBoundsDrag(t,p,c,y,!s&&l||o,r),2),D=T[0],M=T[1];_=D.isSnap,x=D.isBound,S=M.isSnap,w=M.isBound,p+=D.offset,c+=M.offset}var k=plus(getBeforeDragDist({datas:r,distX:p,distY:c}),f),I=plus(getTransformDist({datas:r,distX:p,distY:c}),f);throttleArray(I,TINY_NUM),throttleArray(k,TINY_NUM),y||(_||x||(I[0]=throttle(I[0],v),k[0]=throttle(k[0],v)),S||w||(I[1]=throttle(I[1],v),k[1]=throttle(k[1],v)));var R=minus$2(k,f),F=minus$2(I,f),B=minus$2(F,u),N=minus$2(R,d);r.prevDist=F,r.prevBeforeDist=R,r.passDelta=B,r.passDist=F;var O=r.left+R[0],V=r.top+R[1],z=r.right-R[0],L=r.bottom-R[1],G=convertTransformFormat(r,"translate(".concat(I[0],"px, ").concat(I[1],"px)"),"translate(".concat(F[0],"px, ").concat(F[1],"px)"));if(fillOriginalTransform(e,G),t.state.dragInfo.dist=i?[0,0]:F,i||m||!B.every((function(t){return!t}))||!N.some((function(t){return!t}))){var $=t.state,j=$.width,H=$.height,W=fillParams(t,e,__assign$1({transform:G,dist:F,delta:B,translate:I,beforeDist:R,beforeDelta:N,beforeTranslate:k,left:O,top:V,right:z,bottom:L,width:j,height:H,isPinch:a},fillCSSObject({transform:G},e)));return!i&&triggerEvent(t,"onDrag",W),W}}}},dragAfter:function(t,e){var r=e.datas,i=r.deltaOffset;return!(!i[0]&&!i[1])&&(r.deltaOffset=[0,0],this.drag(t,__assign$1(__assign$1({},e),{deltaOffset:i})))},dragEnd:function(t,e){var r=e.parentEvent,i=e.datas;if(t.state.dragInfo=null,i.isDrag){i.isDrag=!1;var n=fillEndParams(t,e,{});return!r&&triggerEvent(t,"onDragEnd",n),n}},dragGroupStart:function(t,e){var r=e.datas,i=e.clientX,n=e.clientY,a=this.dragStart(t,e);if(!a)return!1;var o=triggerChildGesto(t,this,"dragStart",[i||0,n||0],e,!1,"draggable"),s=triggerEvent(t,"onDragGroupStart",__assign$1(__assign$1({},a),{targets:t.props.targets,events:o}));return r.isDrag=!1!==s,!!r.isDrag&&a},dragGroup:function(t,e){if(e.datas.isDrag){var r=this.drag(t,e),i=triggerChildGesto(t,this,"drag",e.datas.passDelta,e,!1,"draggable");if(r){var n=__assign$1({targets:t.props.targets,events:i},r);return triggerEvent(t,"onDragGroup",n),n}}},dragGroupEnd:function(t,e){var r=e.isDrag;if(e.datas.isDrag){this.dragEnd(t,e);var i=triggerChildGesto(t,this,"dragEnd",[0,0],e,!1,"draggable");return triggerEvent(t,"onDragGroupEnd",fillEndParams(t,e,{targets:t.props.targets,events:i})),r}},request:function(t){var e={},r=t.getRect(),i=0,n=0,a=!1;return{isControl:!1,requestStart:function(t){return a=t.useSnap,{datas:e,useSnap:a}},request:function(t){return"x"in t?i=t.x-r.left:"deltaX"in t&&(i+=t.deltaX),"y"in t?n=t.y-r.top:"deltaY"in t&&(n+=t.deltaY),{datas:e,distX:i,distY:n,useSnap:a}},requestEnd:function(){return{datas:e,isDrag:!0,useSnap:a}}}},unset:function(t){t.state.gestos.draggable=null,t.state.dragInfo=null}};function getFixedDirectionInfo(t,e){return{fixedPosition:getPosByDirection(t,e),fixedDirection:e,fixedOffset:[0,0]}}function getOffsetFixedDirectionInfo(t,e){var r=t.allMatrix,i=t.is3d,n=t.width,a=t.height,o=i?4:3;return{fixedPosition:calculatePosition(r,[n/2*(1+e[0]),a/2*(1+e[1])],o),fixedDirection:e,fixedOffset:[0,0]}}function getOffsetFixedPositionInfo(t,e){var r=t.allMatrix,i=t.is3d,n=t.width,a=t.height,o=i?4:3,s=getDirectionByPos(e,n,a);return{fixedPosition:calculatePosition(r,e,o),fixedDirection:s,fixedOffset:[n?0:e[0],a?0:e[1]]}}var directionCondition$2=getDirectionCondition("resizable"),Resizable={name:"resizable",ableGroup:"size",canPinch:!0,props:["resizable","throttleResize","renderDirections","displayAroundControls","keepRatio","resizeFormat","keepRatioFinally","edge","checkResizableError"],events:["resizeStart","beforeResize","resize","resizeEnd","resizeGroupStart","beforeResizeGroup","resizeGroup","resizeGroupEnd"],render:getRenderDirections("resizable"),dragControlCondition:directionCondition$2,viewClassName:getDirectionViewClassName("resizable"),dragControlStart:function(t,e){var r,i=e.inputEvent,n=e.isPinch,a=e.isGroup,o=e.parentDirection,s=e.parentGesto,l=e.datas,p=e.parentFixedDirection,c=e.parentEvent,h=getTotalDirection(o,n,i,l),u=t.state,d=u.target,f=u.width,g=u.height,m=u.gestos;if(!h||!d)return!1;if(m.resizable)return!1;m.resizable=s||t.controlGesto,!n&&setDragStart(t,e),l.datas={},l.direction=h,l.startOffsetWidth=f,l.startOffsetHeight=g,l.prevWidth=0,l.prevHeight=0,l.minSize=[0,0],l.startWidth=u.inlineCSSWidth||u.cssWidth,l.startHeight=u.inlineCSSHeight||u.cssHeight,l.maxSize=[1/0,1/0],a||(l.minSize=[u.minOffsetWidth,u.minOffsetHeight],l.maxSize=[u.maxOffsetWidth,u.maxOffsetHeight]);var v=t.props.transformOrigin||"% %";function y(t){l.ratio=t&&isFinite(t)?t:0}function b(t){var e=getFixedDirectionInfo(l.startPositions,t);l.fixedDirection=e.fixedDirection,l.fixedPosition=e.fixedPosition,l.fixedOffset=e.fixedOffset}function _(e){var r=getOffsetFixedPositionInfo(t.state,e);l.fixedDirection=r.fixedDirection,l.fixedPosition=r.fixedPosition,l.fixedOffset=r.fixedOffset}function x(t){l.minSize=[convertUnitSize("".concat(t[0]),0)||0,convertUnitSize("".concat(t[1]),0)||0]}function S(t){var e=[t[0]||1/0,t[1]||1/0];isNumber(e[0])&&!isFinite(e[0])||(e[0]=convertUnitSize("".concat(e[0]),0)||1/0),isNumber(e[1])&&!isFinite(e[1])||(e[1]=convertUnitSize("".concat(e[1]),0)||1/0),l.maxSize=e}l.transformOrigin=v&&isString(v)?v.split(" "):v,l.startOffsetMatrix=u.offsetMatrix,l.startTransformOrigin=u.transformOrigin,l.isWidth=null!==(r=null==e?void 0:e.parentIsWidth)&&void 0!==r?r:!h[0]&&!h[1]||h[0]||!h[1],l.startPositions=getAbsolutePosesByState(t.state),y(f/g),b(p||[-h[0],-h[1]]),l.setFixedDirection=b,l.setFixedPosition=_,l.setMin=x,l.setMax=S;var w=fillParams(t,e,{direction:h,startRatio:l.ratio,set:function(t){var e=__read(t,2),r=e[0],i=e[1];l.startWidth=r,l.startHeight=i},setMin:x,setMax:S,setRatio:y,setFixedDirection:b,setFixedPosition:_,setOrigin:function(t){l.transformOrigin=t},dragStart:Draggable.dragStart(t,(new CustomGesto).dragStart([0,0],e))}),A=c||triggerEvent(t,"onResizeStart",w);return l.startFixedDirection=l.fixedDirection,l.startFixedPosition=l.fixedPosition,!1!==A&&(l.isResize=!0,t.state.snapRenderInfo={request:e.isRequest,direction:h}),!!l.isResize&&w},dragControl:function(t,e){var r,i=e.datas,n=e.parentFlag,a=e.isPinch,o=e.parentKeepRatio,s=e.dragClient,l=e.parentDist,p=e.useSnap,c=e.isRequest,h=e.isGroup,u=e.parentEvent,d=e.resolveMatrix,f=i.isResize,g=i.transformOrigin,m=i.startWidth,v=i.startHeight,y=i.prevWidth,b=i.prevHeight,_=i.minSize,x=i.maxSize,S=i.ratio,w=i.startOffsetWidth,A=i.startOffsetHeight,E=i.isWidth;if(f){if(d){var C=t.state.is3d,P=i.startOffsetMatrix,T=i.startTransformOrigin,D=C?4:3,M=parseMat(getNextTransforms(e)),k=Math.sqrt(M.length);D!==k&&(M=convertDimension(M,k,D));var I=getNextMatrix(P,M,T,D),R=calculatePoses(I,w,A,D);i.startPositions=R,i.nextTargetMatrix=M,i.nextAllMatrix=I}var F=getProps(t.props,"resizable"),B=F.resizeFormat,N=F.throttleResize,O=void 0===N?n?0:1:N,V=F.parentMoveable,z=F.keepRatioFinally,L=i.direction,G=L,$=0,j=0;L[0]||L[1]||(G=[1,1]);var H=S&&(null!=o?o:F.keepRatio)||!1,W=__read(nt(),2),U=W[0],Y=W[1];u||(i.setFixedDirection(i.fixedDirection),triggerEvent(t,"onBeforeResize",fillParams(t,e,{startFixedDirection:i.startFixedDirection,startFixedPosition:i.startFixedPosition,setFixedDirection:function(t){var e;return i.setFixedDirection(t),e=__read(nt(),2),U=e[0],Y=e[1],[U,Y]},setFixedPosition:function(t){var e;return i.setFixedPosition(t),e=__read(nt(),2),U=e[0],Y=e[1],[U,Y]},boundingWidth:U,boundingHeight:Y,setSize:function(t){var e;e=__read(t,2),U=e[0],Y=e[1]}},!0)));var q=s;s||(q=!n&&a?getAbsolutePosition(t,[0,0]):i.fixedPosition);var X=[0,0];if(a||(X=checkSnapResize(t,U,Y,L,q,!p&&c,i)),l&&(!l[0]&&(X[0]=0),!l[1]&&(X[1]=0)),H){G[0]&&G[1]&&X[0]&&X[1]&&(abs(X[0])>abs(X[1])?X[1]=0:X[0]=0);var K=!X[0]&&!X[1];K&&at(),G[0]&&!G[1]||X[0]&&!X[1]||K&&E?(U+=X[0],Y=U/S):(!G[0]&&G[1]||!X[0]&&X[1]||K&&!E)&&(Y+=X[1],U=Y*S)}else U+=X[0],Y+=X[1],U=Math.max(0,U),Y=Math.max(0,Y);r=__read(calculateBoundSize([U,Y],_,x,!!H&&S),2),U=r[0],Y=r[1],at(),H&&(h||z)&&(E?Y=U/S:U=Y*S);var Z=[($=U-w)-y,(j=Y-A)-b];i.prevWidth=$,i.prevHeight=j;var J=getResizeDist(t,U,Y,q,g,i);if(V||!Z.every((function(t){return!t}))||!J.every((function(t){return!t}))){var Q=Draggable.drag(t,setCustomDrag(e,t.state,J,!!a,!1,"draggable")),tt=Q.transform,et=m+$,rt=v+j,it=fillParams(t,e,__assign$1({width:et,height:rt,offsetWidth:Math.round(U),offsetHeight:Math.round(Y),startRatio:S,boundingWidth:U,boundingHeight:Y,direction:L,dist:[$,j],delta:Z,isPinch:!!a,drag:Q},fillAfterTransform({style:{width:"".concat(et,"px"),height:"".concat(rt,"px")},transform:tt},Q,e)));return!u&&triggerEvent(t,"onResize",it),it}}function nt(){var t=i.fixedDirection,r=getOffsetSizeDist(G,H,i,e);$=r.distWidth,j=r.distHeight;var n=G[0]-t[0]||H?Math.max(w+$,TINY_NUM):w,a=G[1]-t[1]||H?Math.max(A+j,TINY_NUM):A;return H&&w&&A&&(E?a=n/S:n=a*S),[n,a]}function at(){var t;B&&(t=__read(B([U,Y]),2),U=t[0],Y=t[1]),U=throttle(U,O),Y=throttle(Y,O)}},dragControlAfter:function(t,e){var r=e.datas,i=r.isResize,n=r.startOffsetWidth,a=r.startOffsetHeight,o=r.prevWidth,s=r.prevHeight;if(i&&!1!==t.props.checkResizableError){var l=t.state,p=l.width-(n+o),c=l.height-(a+s),h=abs(p)>3,u=abs(c)>3;return h&&(r.startWidth+=p,r.startOffsetWidth+=p,r.prevWidth+=p),u&&(r.startHeight+=c,r.startOffsetHeight+=c,r.prevHeight+=c),h||u?this.dragControl(t,e):void 0}},dragControlEnd:function(t,e){var r=e.datas,i=e.parentEvent;if(r.isResize){r.isResize=!1;var n=fillEndParams(t,e,{});return!i&&triggerEvent(t,"onResizeEnd",n),n}},dragGroupControlCondition:directionCondition$2,dragGroupControlStart:function(t,e){var r=e.datas,i=this.dragControlStart(t,__assign$1(__assign$1({},e),{isGroup:!0}));if(!i)return!1;var n=fillChildEvents(t,"resizable",e),a=r.startOffsetWidth,o=r.startOffsetHeight;function s(){var t=r.minSize;n.forEach((function(e){var r=e.datas,i=r.minSize,n=r.startOffsetWidth,s=r.startOffsetHeight,l=a*(n?i[0]/n:0),p=o*(s?i[1]/s:0);t[0]=Math.max(t[0],l),t[1]=Math.max(t[1],p)}))}function l(){var t=r.maxSize;n.forEach((function(e){var r=e.datas,i=r.maxSize,n=r.startOffsetWidth,s=r.startOffsetHeight,l=a*(n?i[0]/n:0),p=o*(s?i[1]/s:0);t[0]=Math.min(t[0],l),t[1]=Math.min(t[1],p)}))}var p=triggerChildAbles(t,this,"dragControlStart",e,(function(e,i){return startChildDist(t,e,r,i)}));s(),l();var c=function(e){i.setFixedDirection(e),p.forEach((function(i,a){i.setFixedDirection(e),startChildDist(t,i.moveable,r,n[a])}))};r.setFixedDirection=c;var h=__assign$1(__assign$1({},i),{targets:t.props.targets,events:p.map((function(t){return __assign$1(__assign$1({},t),{setMin:function(e){t.setMin(e),s()},setMax:function(e){t.setMax(e),l()}})})),setFixedDirection:c,setMin:function(t){i.setMin(t),s()},setMax:function(t){i.setMax(t),l()}}),u=triggerEvent(t,"onResizeGroupStart",h);return r.isResize=!1!==u,!!r.isResize&&i},dragGroupControl:function(t,e){var r=e.datas;if(r.isResize){var i=getProps(t.props,"resizable");catchEvent(t,"onBeforeResize",(function(r){triggerEvent(t,"onBeforeResizeGroup",fillParams(t,e,__assign$1(__assign$1({},r),{targets:i.targets}),!0))}));var n=this.dragControl(t,__assign$1(__assign$1({},e),{isGroup:!0}));if(n){var a=n.boundingWidth,o=n.boundingHeight,s=n.dist,l=i.keepRatio,p=[a/(a-s[0]),o/(o-s[1])],c=r.fixedPosition,h=triggerChildAbles(t,this,"dragControl",e,(function(e,r){var i=__read(calculate(createRotateMatrix(t.rotation/180*Math.PI,3),[r.datas.originalX*p[0],r.datas.originalY*p[1],1],3),2),n=i[0],a=i[1];return __assign$1(__assign$1({},r),{parentDist:null,parentScale:p,dragClient:plus(c,[n,a]),parentKeepRatio:l})})),u=__assign$1({targets:i.targets,events:h},n);return triggerEvent(t,"onResizeGroup",u),u}}},dragGroupControlEnd:function(t,e){var r=e.isDrag;if(e.datas.isResize){this.dragControlEnd(t,e);var i=triggerChildAbles(t,this,"dragControlEnd",e);return triggerEvent(t,"onResizeGroupEnd",fillEndParams(t,e,{targets:t.props.targets,events:i})),r}},request:function(t){var e={},r=0,i=0,n=!1,a=t.getRect();return{isControl:!0,requestStart:function(t){var r;return n=t.useSnap,{datas:e,parentDirection:t.direction||[1,1],parentIsWidth:null===(r=null==t?void 0:t.horizontal)||void 0===r||r,useSnap:n}},request:function(t){return"offsetWidth"in t?r=t.offsetWidth-a.offsetWidth:"deltaWidth"in t&&(r+=t.deltaWidth),"offsetHeight"in t?i=t.offsetHeight-a.offsetHeight:"deltaHeight"in t&&(i+=t.deltaHeight),{datas:e,parentDist:[r,i],parentKeepRatio:t.keepRatio,useSnap:n}},requestEnd:function(){return{datas:e,isDrag:!0,useSnap:n}}}},unset:function(t){t.state.gestos.resizable=null}};function setRotateStartInfo(t,e,r,i,n){var a=t.props.groupable,o=t.state,s=o.is3d?4:3,l=e.origin,p=calculatePosition(t.state.rootMatrix,minus$2([l[0],l[1]],a?[0,0]:[o.left,o.top]),s),c=plus([n.left,n.top],p);e.startAbsoluteOrigin=c,e.prevDeg=getRad$1(c,[r,i])/Math.PI*180,e.defaultDeg=e.prevDeg,e.prevSnapDeg=0,e.loop=0,e.startDist=getDist$2(c,[r,i])}function getAbsoluteDist(t,e,r){var i=r.defaultDeg,n=r.prevDeg,a=n%360,o=Math.floor(n/360);a<0&&(a+=360),a>t&&a>270&&t<90?++o:a<t&&a<90&&t>270&&--o;var s=e*(360*o+t-i);return r.prevDeg=i+s,s}function getAbsoluteDistByClient(t,e,r,i){return getAbsoluteDist(getRad$1(i.startAbsoluteOrigin,[t,e])/Math.PI*180,r,i)}function getRotateInfo(t,e,r,i,n,a){var o=t.props.throttleRotate,s=void 0===o?0:o,l=r.prevSnapDeg,p=0,c=!1;if(a){var h=checkSnapRotate(t,e,i,n+i);c=h.isSnap,p=n+h.dist}c||(p=throttle(n+i,s));var u=p-n;return r.prevSnapDeg=u,[u-l,u,p]}function getRotationPositions(t,e,r){var i=__read(e,4),n=i[0],a=i[1],o=i[2],s=i[3];if("none"===t)return[];if(isArray$2(t))return t.map((function(t){return getRotationPositions(t,[n,a,o,s],r)[0]}));var l=__read((t||"top").split("-"),2),p=l[0],c=l[1],h=[n,a];"left"===p?h=[o,n]:"right"===p?h=[a,s]:"bottom"===p&&(h=[s,o]);var u=[(h[0][0]+h[1][0])/2,(h[0][1]+h[1][1])/2],d=getRotationRad(h,r);if(c){var f="top"===c||"left"===c,g="bottom"===p||"left"===p;u=h[f&&!g||!f&&g?0:1]}return[[u,d]]}function dragControlCondition(t,e){if(e.isRequest)return"rotatable"===e.requestAble;var r=e.inputEvent.target;if(hasClass(r,prefix("rotation-control"))||t.props.rotateAroundControls&&hasClass(r,prefix("around-control"))||hasClass(r,prefix("control"))&&hasClass(r,prefix("rotatable")))return!0;var i=t.props.rotationTarget;return!!i&&getRefTargets(i,!0).some((function(t){return!!t&&(r===t||r.contains(t))}))}var css=".rotation {\nposition: absolute;\nheight: 40px;\nwidth: 1px;\ntransform-origin: 50% 100%;\nheight: calc(40px * var(--zoom));\ntop: auto;\nleft: 0;\nbottom: 100%;\nwill-change: transform;\n}\n.rotation .rotation-line {\ndisplay: block;\nwidth: 100%;\nheight: 100%;\ntransform-origin: 50% 50%;\n}\n.rotation .rotation-control {\nborder-color: #4af;\nborder-color: var(--moveable-color);\nbackground:#fff;\ncursor: alias;\n}\n:global .view-rotation-dragging, .rotatable.direction.control {\ncursor: alias;\n}\n.rotatable.direction.control.move {\ncursor: move;\n}\n",Rotatable={name:"rotatable",canPinch:!0,props:["rotatable","rotationPosition","throttleRotate","renderDirections","rotationTarget","rotateAroundControls","edge","resolveAblesWithRotatable","displayAroundControls"],events:["rotateStart","beforeRotate","rotate","rotateEnd","rotateGroupStart","beforeRotateGroup","rotateGroup","rotateGroupEnd"],css:[css],viewClassName:function(t){return t.isDragging("rotatable")?prefix("view-rotation-dragging"):""},render:function(t,e){var r=getProps(t.props,"rotatable"),i=r.rotatable,n=r.rotationPosition,a=r.zoom,o=r.renderDirections,s=r.rotateAroundControls,l=r.resolveAblesWithRotatable,p=t.getState(),c=p.renderPoses,h=p.direction;if(!i)return null;var u=getRotationPositions(n,c,h),d=[];if(u.forEach((function(t,r){var i=__read(t,2),n=i[0],o=i[1];d.push(e.createElement("div",{key:"rotation".concat(r),className:prefix("rotation"),style:{transform:"translate(-50%) translate(".concat(n[0],"px, ").concat(n[1],"px) rotate(").concat(o,"rad)")}},e.createElement("div",{className:prefix("line rotation-line"),style:{transform:"scaleX(".concat(a,")")}}),e.createElement("div",{className:prefix("control rotation-control"),style:{transform:"translate(0.5px) scale(".concat(a,")")}})))})),o){var f=getKeys(l||{}),g={};f.forEach((function(t){l[t].forEach((function(e){g[e]=t}))}));var m=[];isArray$2(o)&&(m=o.map((function(t){var e=g[t];return{data:e?{resolve:e}:{},classNames:e?["move"]:[],dir:t}}))),d.push.apply(d,__spreadArray([],__read(renderDirectionControlsByInfos(t,"rotatable",m,e)),!1))}return s&&d.push.apply(d,__spreadArray([],__read(renderAroundControls(t,e)),!1)),d},dragControlCondition:dragControlCondition,dragControlStart:function(t,e){var r,i,n=e.datas,a=e.clientX,o=e.clientY,s=e.parentRotate,l=e.parentFlag,p=e.isPinch,c=e.isRequest,h=t.state,u=h.target,d=h.left,f=h.top,g=h.direction,m=h.beforeDirection,v=h.targetTransform,y=h.moveableClientRect,b=h.offsetMatrix,_=h.targetMatrix,x=h.allMatrix,S=h.width,w=h.height;if(!c&&!u)return!1;var A=t.getRect();n.rect=A,n.transform=v,n.left=d,n.top=f;var E=function(e){var r=getOffsetFixedPositionInfo(t.state,e);n.fixedDirection=r.fixedDirection,n.fixedOffset=r.fixedOffset,n.fixedPosition=r.fixedPosition,N&&N.setFixedPosition(e)},C=function(e){var r=getOffsetFixedDirectionInfo(t.state,e);n.fixedDirection=r.fixedDirection,n.fixedOffset=r.fixedOffset,n.fixedPosition=r.fixedPosition,N&&N.setFixedDirection(e)},P=a,T=o;if(c||p||l){var D=s||0;n.beforeInfo={origin:A.beforeOrigin,prevDeg:D,defaultDeg:D,prevSnapDeg:0,startDist:0},n.afterInfo=__assign$1(__assign$1({},n.beforeInfo),{origin:A.origin}),n.absoluteInfo=__assign$1(__assign$1({},n.beforeInfo),{origin:A.origin,startValue:D})}else{var M=null===(i=e.inputEvent)||void 0===i?void 0:i.target;if(M){var k=M.getAttribute("data-direction")||"",I=DIRECTION_REGION_TO_DIRECTION[k];if(I){n.isControl=!0,n.isAroundControl=hasClass(M,prefix("around-control")),n.controlDirection=I;var R=M.getAttribute("data-resolve");R&&(n.resolveAble=R),r=__read(getPosByDirection(calculateMoveableClientPositions(h.rootMatrix,h.renderPoses,y),I),2),P=r[0],T=r[1]}}n.beforeInfo={origin:A.beforeOrigin},n.afterInfo={origin:A.origin},n.absoluteInfo={origin:A.origin,startValue:A.rotation};var F=E;E=function(e){var r=h.is3d?4:3,i=__read(plus(getOrigin(_,r),e),2),a=i[0],o=i[1],s=calculate(b,convertPositionMatrix([a,o],r)),l=calculate(x,convertPositionMatrix([e[0],e[1]],r));F(e);var p=h.posDelta;n.beforeInfo.origin=minus$2(s,p),n.afterInfo.origin=minus$2(l,p),n.absoluteInfo.origin=minus$2(l,p),setRotateStartInfo(t,n.beforeInfo,P,T,y),setRotateStartInfo(t,n.afterInfo,P,T,y),setRotateStartInfo(t,n.absoluteInfo,P,T,y)},C=function(t){var e=getPosByDirection([[0,0],[S,0],[0,w],[S,w]],t);E(e)}}n.startClientX=P,n.startClientY=T,n.direction=g,n.beforeDirection=m,n.startValue=0,n.datas={},setDefaultTransformIndex(e,"rotate");var B=!1,N=!1;n.isControl&&n.resolveAble&&("resizable"===n.resolveAble&&(N=Resizable.dragControlStart(t,__assign$1(__assign$1({},new CustomGesto("resizable").dragStart([0,0],e)),{parentPosition:n.controlPosition,parentFixedPosition:n.fixedPosition}))));N||(B=Draggable.dragStart(t,(new CustomGesto).dragStart([0,0],e))),E(getTotalOrigin(t));var O=fillParams(t,e,__assign$1(__assign$1({set:function(t){n.startValue=t*Math.PI/180},setFixedDirection:C,setFixedPosition:E},fillTransformStartEvent(e)),{dragStart:B,resizeStart:N})),V=triggerEvent(t,"onRotateStart",O);return n.isRotate=!1!==V,h.snapRenderInfo={request:e.isRequest},!!n.isRotate&&O},dragControl:function(t,e){var r,i,n,a=e.datas,o=e.clientDistX,s=e.clientDistY,l=e.parentRotate,p=e.parentFlag,c=e.isPinch,h=e.groupDelta,u=e.resolveMatrix,d=a.beforeDirection,f=a.beforeInfo,g=a.afterInfo,m=a.absoluteInfo,v=a.isRotate,y=a.startValue,b=a.rect,_=a.startClientX,x=a.startClientY;if(v){resolveTransformEvent(e,"rotate");var S,w,A,E,C,P,T,D,M,k=d*getTransformDirection(e),I=t.props.parentMoveable,R=180/Math.PI*y,F=m.startValue,B=!1,N=_+o,O=x+s;if(!p&&"parentDist"in e){var V=e.parentDist;w=V,C=V,D=V}else c||p?(w=getAbsoluteDist(l,d,f),C=getAbsoluteDist(l,k,g),D=getAbsoluteDist(l,k,m)):(w=getAbsoluteDistByClient(N,O,d,f),C=getAbsoluteDistByClient(N,O,k,g),D=getAbsoluteDistByClient(N,O,k,m),B=!0);if(triggerEvent(t,"onBeforeRotate",fillParams(t,e,{beforeRotation:A=R+w,rotation:P=R+C,absoluteRotation:M=F+D,setRotation:function(t){w=C=t-R,D=C}},!0)),S=(r=__read(getRotateInfo(t,b,f,w,R,B),3))[0],w=r[1],A=r[2],E=(i=__read(getRotateInfo(t,b,g,C,R,B),3))[0],C=i[1],P=i[2],T=(n=__read(getRotateInfo(t,b,m,D,F,B),3))[0],D=n[1],M=n[2],T||E||S||I||u){var z=convertTransformFormat(a,"rotate(".concat(P,"deg)"),"rotate(".concat(C,"deg)"));u&&(a.fixedPosition=getTranslateFixedPosition(t,a.targetAllTransform,a.fixedDirection,a.fixedOffset,a));var L=getRotateDist(t,C,a),G=minus$2(plus(h||[0,0],L),a.prevInverseDist||[0,0]);a.prevInverseDist=L,a.requestValue=null;var $=fillTransformEvent(t,z,G,c,e),j=$,H=getDist$2([N,O],m.startAbsoluteOrigin)-m.startDist,W=void 0;if("resizable"===a.resolveAble){var U=Resizable.dragControl(t,__assign$1(__assign$1({},setCustomDrag(e,t.state,[e.deltaX,e.deltaY],!!c,!1,"resizable")),{resolveMatrix:!0,parentDistance:H}));U&&(W=U,j=fillAfterTransform(j,U,e))}var Y=fillParams(t,e,__assign$1(__assign$1({delta:E,dist:C,rotate:P,rotation:P,beforeDist:w,beforeDelta:S,beforeRotate:A,beforeRotation:A,absoluteDist:D,absoluteDelta:T,absoluteRotate:M,absoluteRotation:M,isPinch:!!c,resize:W},$),j));return triggerEvent(t,"onRotate",Y),Y}}},dragControlEnd:function(t,e){var r=e.datas;if(r.isRotate){r.isRotate=!1;var i=fillEndParams(t,e,{});return triggerEvent(t,"onRotateEnd",i),i}},dragGroupControlCondition:dragControlCondition,dragGroupControlStart:function(t,e){var r=e.datas,i=t.state,n=i.left,a=i.top,o=i.beforeOrigin,s=this.dragControlStart(t,e);if(!s)return!1;s.set(r.beforeDirection*t.rotation);var l=triggerChildAbles(t,this,"dragControlStart",e,(function(t,e){var r=t.state,i=r.left,s=r.top,l=r.beforeOrigin,p=plus(minus$2([i,s],[n,a]),minus$2(l,o));return e.datas.startGroupClient=p,e.datas.groupClient=p,__assign$1(__assign$1({},e),{parentRotate:0})})),p=triggerEvent(t,"onRotateGroupStart",__assign$1(__assign$1({},s),{targets:t.props.targets,events:l}));return r.isRotate=!1!==p,!!r.isRotate&&s},dragGroupControl:function(t,e){var r=e.datas;if(r.isRotate){catchEvent(t,"onBeforeRotate",(function(r){triggerEvent(t,"onBeforeRotateGroup",fillParams(t,e,__assign$1(__assign$1({},r),{targets:t.props.targets}),!0))}));var i=this.dragControl(t,e);if(i){var n=r.beforeDirection,a=i.beforeDist,o=a/180*Math.PI,s=triggerChildAbles(t,this,"dragControl",e,(function(t,e){var r=e.datas.startGroupClient,i=__read(e.datas.groupClient,2),s=i[0],l=i[1],p=__read(rotate(r,o*n),2),c=p[0],h=p[1],u=[c-s,h-l];return e.datas.groupClient=[c,h],__assign$1(__assign$1({},e),{parentRotate:a,groupDelta:u})}));t.rotation=n*i.beforeRotation;var l=__assign$1({targets:t.props.targets,events:s,set:function(e){t.rotation=e},setGroupRotation:function(e){t.rotation=e}},i);return triggerEvent(t,"onRotateGroup",l),l}}},dragGroupControlEnd:function(t,e){var r=e.isDrag;if(e.datas.isRotate){this.dragControlEnd(t,e);var i=triggerChildAbles(t,this,"dragControlEnd",e);return triggerEvent(t,"onRotateGroupEnd",fillEndParams(t,e,{targets:t.props.targets,events:i})),r}},request:function(t){var e={},r=0,i=t.getRotation();return{isControl:!0,requestStart:function(){return{datas:e}},request:function(t){return"deltaRotate"in t?r+=t.deltaRotate:"rotate"in t&&(r=t.rotate-i),{datas:e,parentDist:r}},requestEnd:function(){return{datas:e,isDrag:!0}}}}};function renderGuideline(t,e){var r,i=t.direction,n=t.classNames,a=t.size,o=t.pos,s=t.zoom,l=t.key,p="horizontal"===i,c=p?"Y":"X";return e.createElement("div",{key:l,className:n.join(" "),style:(r={},r[p?"width":"height"]="".concat(a),r.transform="translate(".concat(o[0],", ").concat(o[1],") translate").concat(c,"(-50%) scale").concat(c,"(").concat(s,")"),r)})}function renderInnerGuideline(t,e){return renderGuideline(__assign$1(__assign$1({},t),{classNames:__spreadArray([prefix("line","guideline",t.direction)],__read(t.classNames),!1).filter((function(t){return t})),size:t.size||"".concat(t.sizeValue,"px"),pos:t.pos||t.posValue.map((function(t){return"".concat(throttle(t,.1),"px")}))}),e)}function renderSnapPoses(t,e,r,i,n,a,o,s){var l=t.props.zoom;return r.map((function(t,r){var p=t.type,c=t.pos,h=[0,0];return h[o]=i,h[o?0:1]=-n+c,renderInnerGuideline({key:"".concat(e,"TargetGuideline").concat(r),classNames:[prefix("target","bold",p)],posValue:h,sizeValue:a,zoom:l,direction:e},s)}))}function renderGuidelines(t,e,r,i,n,a){var o=t.props,s=o.zoom,l=o.isDisplayInnerSnapDigit,p="horizontal"===e?VERTICAL_NAMES_MAP:HORIZONTAL_NAMES_MAP,c=n[p.start],h=n[p.end];return r.filter((function(t){var e=t.hide,r=t.elementRect;if(e)return!1;if(l&&r){var i=r.rect;if(i[p.start]<=c&&h<=i[p.end])return!1}return!0})).map((function(t,r){var n=t.pos,o=t.size,l=t.element,p=t.className,c=[-i[0]+n[0],-i[1]+n[1]];return renderInnerGuideline({key:"".concat(e,"-default-guideline-").concat(r),classNames:l?[prefix("bold"),p]:[prefix("normal"),p],direction:e,posValue:c,sizeValue:o,zoom:s},a)}))}function renderDigitLine(t,e,r,i,n,a,o,s){var l,p=t.props,c=p.snapDigit,h=void 0===c?0:c,u=p.isDisplaySnapDigit,d=void 0===u||u,f=p.snapDistFormat,g=void 0===f?function(t,e){return t}:f,m=p.zoom,v="horizontal"===e?"X":"Y",y="vertical"===e?"height":"width",b=Math.abs(n),_=d?parseFloat(b.toFixed(h)):0;return s.createElement("div",{key:"".concat(e,"-").concat(r,"-guideline-").concat(i),className:prefix("guideline-group",e),style:(l={left:"".concat(a[0],"px"),top:"".concat(a[1],"px")},l[y]="".concat(b,"px"),l)},renderInnerGuideline({direction:e,classNames:[prefix(r),o],size:"100%",posValue:[0,0],sizeValue:b,zoom:m},s),s.createElement("div",{className:prefix("size-value","gap"),style:{transform:"translate".concat(v,"(-50%) scale(").concat(m,")")}},_>0?g(_,e):""))}function groupByElementGuidelines(t,e,r,i){var n="vertical"===t?0:1,a="vertical"===t?1:0,o=n?VERTICAL_NAMES_MAP:HORIZONTAL_NAMES_MAP,s=r[o.start],l=r[o.end];return groupBy(e,(function(t){return t.pos[n]})).map((function(e){var r=[],p=[];return e.forEach((function(e){var c,h,u=e.element,d=e.elementRect.rect;if(d[o.end]<s)r.push(e);else if(l<d[o.start])p.push(e);else if(d[o.start]<=s&&l<=d[o.end]&&i){var f=e.pos,g={element:u,rect:__assign$1(__assign$1({},d),(c={},c[o.end]=d[o.start],c))},m={element:u,rect:__assign$1(__assign$1({},d),(h={},h[o.start]=d[o.end],h))},v=[0,0],y=[0,0];v[n]=f[n],v[a]=f[a],y[n]=f[n],y[a]=f[a]+e.size,r.push({type:t,pos:v,size:0,elementRect:g,direction:""}),p.push({type:t,pos:y,size:0,elementRect:m,direction:""})}})),r.sort((function(t,e){return e.pos[a]-t.pos[a]})),p.sort((function(t,e){return t.pos[a]-e.pos[a]})),{total:e,start:r,end:p,inner:[]}}))}function renderDashedGuidelines(t,e,r,i,n){var a=t.props.isDisplayInnerSnapDigit,o=[];return["vertical","horizontal"].forEach((function(s){var l=e.filter((function(t){return t.type===s})),p="vertical"===s?1:0,c=p?0:1,h=groupByElementGuidelines(s,l,i,a),u=p?HORIZONTAL_NAMES_MAP:VERTICAL_NAMES_MAP,d=p?VERTICAL_NAMES_MAP:HORIZONTAL_NAMES_MAP,f=i[u.start],g=i[u.end];h.forEach((function(e){var a=e.total,l=e.start,h=e.end,m=e.inner,v=r[c]+a[0].pos[c]-i[d.start],y=i;l.forEach((function(e){var i=e.elementRect.rect,a=y[u.start]-i[u.end];if(a>0){var l=[0,0];l[p]=r[p]+y[u.start]-f-a,l[c]=v,o.push(renderDigitLine(t,s,"dashed",o.length,a,l,e.className,n))}y=i})),y=i,h.forEach((function(e){var i=e.elementRect.rect,a=i[u.start]-y[u.end];if(a>0){var l=[0,0];l[p]=r[p]+y[u.end]-f,l[c]=v,o.push(renderDigitLine(t,s,"dashed",o.length,a,l,e.className,n))}y=i})),m.forEach((function(e){var i=e.elementRect.rect,a=f-i[u.start],l=i[u.end]-g,h=[0,0],d=[0,0];h[p]=r[p]-a,h[c]=v,d[p]=r[p]+g-f,d[c]=v,o.push(renderDigitLine(t,s,"dashed",o.length,a,h,e.className,n)),o.push(renderDigitLine(t,s,"dashed",o.length,l,d,e.className,n))}))}))})),o}function renderGapGuidelines(t,e,r,i,n){var a=[];return["horizontal","vertical"].forEach((function(o){var s=e.filter((function(t){return t.type===o})).slice(0,1),l="vertical"===o?0:1,p=l?0:1,c=l?HORIZONTAL_NAMES_MAP:VERTICAL_NAMES_MAP,h=l?VERTICAL_NAMES_MAP:HORIZONTAL_NAMES_MAP,u=i[c.start],d=i[c.end],f=i[h.start],g=i[h.end];s.forEach((function(e){var i=e.gap,o=e.gapRects,s=Math.max.apply(Math,__spreadArray([f],__read(o.map((function(t){return t.rect[h.start]}))),!1)),m=Math.min.apply(Math,__spreadArray([g],__read(o.map((function(t){return t.rect[h.end]}))),!1)),v=(s+m)/2;s!==m&&v!==(f+g)/2&&o.forEach((function(e){var o=e.rect,s=e.className,h=[r[0],r[1]];if(o[c.end]<u)h[l]+=o[c.end]-u;else{if(!(d<o[c.start]))return;h[l]+=o[c.start]-u-i}h[p]+=v-f,a.push(renderDigitLine(t,l?"vertical":"horizontal","gap",a.length,i,h,s,n))}))}))})),a}function getTotalGuidelines(t){var e=t.state,r=e.containerClientRect,i=e.hasFixed,n=r.overflow,a=r.scrollHeight,o=r.scrollWidth,s=r.clientHeight,l=r.clientWidth,p=r.clientLeft,c=r.clientTop,h=t.props,u=h.snapGap,d=void 0===u||u,f=h.verticalGuidelines,g=h.horizontalGuidelines,m=h.snapThreshold,v=void 0===m?5:m,y=h.snapGridWidth,b=void 0===y?0:y,_=h.snapGridHeight,x=void 0===_?0:_,S=h.maxSnapElementGuidelineDistance,w=void 0===S?1/0:S,A=h.isDisplayGridGuidelines,E=getRect(getAbsolutePosesByState(t.state)),C=E.top,P=E.left,T=E.bottom,D=E.right,M={top:C,left:P,bottom:T,right:D,center:(P+D)/2,middle:(C+T)/2},k=__spreadArray([],__read(getElementGuidelines(t)),!1);d&&k.push.apply(k,__spreadArray([],__read(getGapGuidelines(t,M,v)),!1));var I=__assign$1({},e.snapOffset||{left:0,top:0,bottom:0,right:0});if(k.push.apply(k,__spreadArray([],__read(getGridGuidelines(b,x,n?o:l,n?a:s,p,c,I,A)),!1)),i){var R=r.left,F=r.top;I.left+=R,I.top+=F,I.right+=R,I.bottom+=F}return k.push.apply(k,__spreadArray([],__read(getDefaultGuidelines(g||!1,f||!1,n?o:l,n?a:s,p,c,I)),!1)),k=k.filter((function(t){var e=t.element,r=t.elementRect,i=t.type;if(!e||!r)return!0;var n=r.rect;return checkBetweenRects(M,n,i,w)})),k}function getGapGuidelines(t,e,r){var i=t.props,n=i.maxSnapElementGuidelineDistance,a=void 0===n?1/0:n,o=i.maxSnapElementGapDistance,s=void 0===o?1/0:o,l=t.state.elementRects,p=[];return[["vertical",VERTICAL_NAMES_MAP,HORIZONTAL_NAMES_MAP],["horizontal",HORIZONTAL_NAMES_MAP,VERTICAL_NAMES_MAP]].forEach((function(t){var i=__read(t,3),n=i[0],o=i[1],c=i[2],h=e[o.start],u=e[o.end],d=e[o.center],f=e[c.start],g=e[c.end];function m(t){var e=t.rect;return e[o.end]<h+r?h-e[o.end]:u-r<e[o.start]?e[o.start]-u:-1}var v=l.filter((function(t){var e=t.rect;return!(e[c.start]>g||e[c.end]<f)&&m(t)>0})).sort((function(t,e){return m(t)-m(e)})),y=[];v.forEach((function(t){v.forEach((function(e){if(t!==e){var r=t.rect,i=e.rect,n=r[c.start],a=r[c.end],o=i[c.start];n>i[c.end]||o>a||y.push([t,e])}}))})),y.forEach((function(t){var i=__read(t,2),l=i[0],c=i[1],f=l.rect,g=c.rect,m=f[o.start],v=f[o.end],y=g[o.start],b=g[o.end],_=0,x=0,S=!1,w=!1,A=!1;if(v<=h&&u<=y){if(w=!0,abs((x=v+(_=(y-v-(u-h))/2)+(u-h)/2)-d)>r)return}else if(v<y&&b<h+r){if(S=!0,abs((x=b+(_=y-v))-h)>r)return}else{if(!(v<y&&u-r<m))return;if(A=!0,abs((x=m-(_=y-v))-u)>r)return}_&&checkBetweenRects(e,g,n,a)&&(_>s||p.push({type:n,pos:"vertical"===n?[x,0]:[0,x],element:c.element,size:0,className:c.className,isStart:S,isCenter:w,isEnd:A,gap:_,hide:!0,gapRects:[l,c],direction:""}))}))})),p}function getGridGuidelines(t,e,r,i,n,a,o,s){void 0===n&&(n=0),void 0===a&&(a=0);var l=[],p=o.left,c=o.top;if(e)for(var h=0;h<=i;h+=e)l.push({type:"horizontal",pos:[p,throttle(h-a+c,.1)],className:prefix("grid-guideline"),size:r,hide:!s,direction:""});if(t)for(h=0;h<=r;h+=t)l.push({type:"vertical",pos:[throttle(h-n+p,.1),c],className:prefix("grid-guideline"),size:i,hide:!s,direction:""});return l}function checkBetweenRects(t,e,r,i){return"horizontal"===r?abs(t.right-e.left)<=i||abs(t.left-e.right)<=i||t.left<=e.right&&e.left<=t.right:"vertical"!==r||(abs(t.bottom-e.top)<=i||abs(t.top-e.bottom)<=i||t.top<=e.bottom&&e.top<=t.bottom)}function getElementGuidelines(t){var e=t.state,r=t.props.elementGuidelines,i=void 0===r?[]:r;if(!i.length)return e.elementRects=[],[];var n=(e.elementRects||[]).filter((function(t){return!t.refresh})),a=i.map((function(t){return isObject$1(t)&&"element"in t?__assign$1(__assign$1({},t),{element:getRefTarget(t.element,!0)}):{element:getRefTarget(t,!0)}})).filter((function(t){return t.element})),o=diff(n.map((function(t){return t.element})),a.map((function(t){return t.element}))),s=o.maintained,l=o.added,p=[];s.forEach((function(t){var e=__read(t,2),r=e[0],i=e[1];p[i]=n[r]})),getSnapElementRects(t,l.map((function(t){return a[t]}))).map((function(t,e){p[l[e]]=t})),e.elementRects=p;var c=getSnapDirections(t.props.elementSnapDirections),h=[];return p.forEach((function(t){var e=t.element,r=t.top,i=void 0===r?c.top:r,n=t.left,a=void 0===n?c.left:n,o=t.right,s=void 0===o?c.right:o,l=t.bottom,p=void 0===l?c.bottom:l,u=t.center,d=void 0===u?c.center:u,f=t.middle,g=void 0===f?c.middle:f,m=t.className,v=t.rect,y=splitSnapDirectionPoses({top:i,right:s,left:a,bottom:p,center:d,middle:g},v),b=y.horizontal,_=y.vertical,x=v.top,S=v.left,w=v.right-S,A=v.bottom-x,E=[w,A];_.forEach((function(r){h.push({type:"vertical",element:e,pos:[throttle(r,.1),x],size:A,sizes:E,className:m,elementRect:t,direction:""})})),b.forEach((function(r){h.push({type:"horizontal",element:e,pos:[S,throttle(r,.1)],size:w,sizes:E,className:m,elementRect:t,direction:""})}))})),h}function getObjectGuidelines(t,e){return t?t.map((function(t){var r=isObject$1(t)?t:{pos:t},i=r.pos;return isNumber(i)?r:__assign$1(__assign$1({},r),{pos:convertUnitSize(i,e)})})):[]}function getDefaultGuidelines(t,e,r,i,n,a,o){void 0===n&&(n=0),void 0===a&&(a=0),void 0===o&&(o={left:0,top:0,right:0,bottom:0});var s=[],l=o.left,p=o.top,c=o.bottom,h=r+o.right-l,u=i+c-p;return getObjectGuidelines(t,u).forEach((function(t){s.push({type:"horizontal",pos:[l,throttle(t.pos-a+p,.1)],size:h,className:t.className,direction:""})})),getObjectGuidelines(e,h).forEach((function(t){s.push({type:"vertical",pos:[throttle(t.pos-n+l,.1),p],size:u,className:t.className,direction:""})})),s}function getSnapElementRects(t,e){if(!e.length)return[];var r=t.props.groupable,i=t.state,n=i.containerClientRect,a=i.rootMatrix,o=i.is3d,s=i.offsetDelta,l=o?4:3,p=__read(calculateContainerPos(a,n,l),2),c=p[0],h=p[1],u=r?0:s[0],d=r?0:s[1];return e.map((function(t){var e=t.element.getBoundingClientRect(),r=e.left-c-u,i=e.top-h-d,n=i+e.height,o=r+e.width,s=__read(calculateInversePosition(a,[r,i],l),2),p=s[0],f=s[1],g=__read(calculateInversePosition(a,[o,n],l),2),m=g[0],v=g[1];return __assign$1(__assign$1({},t),{rect:{left:p,right:m,top:f,bottom:v,center:(p+m)/2,middle:(f+v)/2}})}))}function checkSnapInfo(t){var e=t.state,r=e.container,i=t.props.snapContainer||r;if(e.snapContainer===i&&e.guidelines&&e.guidelines.length)return!1;var n=e.containerClientRect,a={left:0,top:0,bottom:0,right:0};if(r!==i){var o=getRefTarget(i,!0);if(o){var s=getClientRect(o),l=getDragDistByState(e,[s.left-n.left,s.top-n.top]),p=getDragDistByState(e,[s.right-n.right,s.bottom-n.bottom]);a.left=throttle(l[0],1e-5),a.top=throttle(l[1],1e-5),a.right=throttle(p[0],1e-5),a.bottom=throttle(p[1],1e-5)}}return e.snapContainer=i,e.snapOffset=a,e.guidelines=getTotalGuidelines(t),e.enableSnap=!0,!0}function getNextFixedPoses(t,e,r,i,n,a){var o=calculatePoses(t,e,r,a?4:3);return getAbsolutePoses(o,minus$2(n,getPosByDirection(o,i)))}function normalized(t){return t?t/abs(t):0}function getSizeOffsetInfo(t,e,r,i,n,a){var o=getCheckSnapDirections(r,a.fixedDirection,i),s=getCheckInnerBoundLineInfos(t,e,r,i),l=__spreadArray(__spreadArray([],__read(getSnapBoundInfo(t,e,o,i,n,a)),!1),__read(getInnerBoundInfo(t,s,a)),!1),p=getNearOffsetInfo(l,0),c=getNearOffsetInfo(l,1);return{width:{isBound:p.isBound,offset:p.offset[0]},height:{isBound:c.isBound,offset:c.offset[1]}}}function recheckSizeByTwoDirection(t,e,r,i,n,a,o,s,l){var p=getPosByDirection(e,o),c=checkMoveableSnapBounds(t,s,{vertical:[p[0]],horizontal:[p[1]]}),h=c.horizontal.offset,u=c.vertical.offset;if(throttle(u,FLOAT_POINT_NUM)||throttle(h,FLOAT_POINT_NUM)){var d=__read(getDragDist({datas:l,distX:-u,distY:-h}),2),f=d[0],g=d[1];return[Math.min(n||1/0,r+o[0]*f)-r,Math.min(a||1/0,i+o[1]*g)-i]}return[0,0]}function checkSizeDist(t,e,r,i,n,a,o,s){for(var l=getAbsolutePosesByState(t.state),p=t.props.keepRatio,c=0,h=0,u=0;u<2;++u){var d=getSizeOffsetInfo(t,e(c,h),n,p,o,s),f=d.width,g=d.height,m=f.isBound,v=g.isBound,y=f.offset,b=g.offset;if(1===u&&(m||(y=0),v||(b=0)),0===u&&o&&!m&&!v)return[0,0];if(p){var _=abs(y)*(r?1/r:1),x=abs(b)*(i?1/i:1);(m&&v?_<x:v||!m&&_<x)?y=r*b/i:b=i*y/r}c+=y,h+=b}if(n[0]&&n[1]){var S=checkMaxBounds(t,l,n,a,s),w=S.maxWidth,A=S.maxHeight,E=__read(recheckSizeByTwoDirection(t,e(c,h).map((function(t){return t.map((function(t){return throttle(t,FLOAT_POINT_NUM)}))})),r+c,i+h,w,A,n,o,s),2);c+=y=E[0],h+=b=E[1]}return[c,h]}function absDegree(t){return t<0&&(t=t%360+360),t%=360}function bumpDegree(t,e){e=absDegree(e);var r=Math.floor(t/360),i=360*r+360-e,n=360*r+e;return abs(t-i)<abs(t-n)?i:n}function getMinDegreeDistance(t,e){t=absDegree(t),e=absDegree(e);var r=absDegree(t-e);return Math.min(r,360-r)}function checkSnapRotate(t,e,r,i){var n,a=t.props,o=null!==(n=a[NAME_snapRotationThreshold])&&void 0!==n?n:5,s=a[NAME_snapRotationDegrees];if(hasGuidelines(t,"rotatable")){var l=e.pos1,p=e.pos2,c=e.pos3,h=e.pos4,u=e.origin,d=r*Math.PI/180,f=[l,p,c,h].map((function(t){return minus$2(t,u)})),g=f.map((function(t){return rotate(t,d)})),m=__spreadArray(__spreadArray([],__read(checkRotateBounds(t,f,g,u,r)),!1),__read(checkRotateInnerBounds(t,f,g,u,r)),!1);m.sort((function(t,e){return abs(t-r)-abs(e-r)}));var v=m.length>0;if(v)return{isSnap:v,dist:v?m[0]:r}}if((null==s?void 0:s.length)&&o){var y=s.slice().sort((function(t,e){return getMinDegreeDistance(t,i)-getMinDegreeDistance(e,i)}))[0];if(getMinDegreeDistance(y,i)<=o)return{isSnap:!0,dist:r+bumpDegree(i,y)-i}}return{isSnap:!1,dist:r}}function checkSnapResize(t,e,r,i,n,a,o){if(!hasGuidelines(t,"resizable"))return[0,0];var s=o.fixedDirection,l=o.nextAllMatrix,p=t.state,c=p.allMatrix,h=p.is3d;return checkSizeDist(t,(function(t,i){return getNextFixedPoses(l||c,e+t,r+i,s,n,h)}),e,r,i,n,a,o)}function checkSnapScale(t,e,r,i,n){if(!hasGuidelines(t,"scalable"))return[0,0];var a=n.startOffsetWidth,o=n.startOffsetHeight,s=n.fixedPosition,l=n.fixedDirection,p=n.is3d,c=checkSizeDist(t,(function(t,r){return getNextFixedPoses(scaleMatrix(n,plus(e,[t/a,r/o])),a,o,l,s,p)}),a,o,r,s,i,n);return[c[0]/a,c[1]/o]}function startCheckSnapDrag(t,e){e.absolutePoses=getAbsolutePosesByState(t.state)}function getSnapGuidelines(t){var e=[];return t.forEach((function(t){t.guidelineInfos.forEach((function(r){var i=r.guideline;find$1(e,(function(t){return t.guideline===i}))||(i.direction="",e.push({guideline:i,posInfo:t}))}))})),e.map((function(t){var e=t.guideline,r=t.posInfo;return __assign$1(__assign$1({},e),{direction:r.direction})}))}function addBoundGuidelines(t,e,r,i,n,a){var o=checkBoundPoses(getBounds(t,a),e,r),s=o.vertical,l=o.horizontal;s.forEach((function(t){t.isBound&&i.push({type:"bounds",pos:t.pos})})),l.forEach((function(t){t.isBound&&n.push({type:"bounds",pos:t.pos})}));var p=checkInnerBoundPoses(t),c=p.vertical,h=p.horizontal;c.forEach((function(t){findIndex(i,(function(e){var r=e.type,i=e.pos;return"bounds"===r&&i===t}))>=0||i.push({type:"bounds",pos:t})})),h.forEach((function(t){findIndex(n,(function(e){var r=e.type,i=e.pos;return"bounds"===r&&i===t}))>=0||n.push({type:"bounds",pos:t})}))}var directionCondition$1=getDirectionCondition("",["resizable","scalable"]),NAME_snapRotationThreshold="snapRotationThreshold",NAME_snapRotationDegrees="snapRotationDegrees",Snappable={name:"snappable",dragRelation:"strong",props:["snappable","snapContainer","snapDirections","elementSnapDirections","snapGap","snapGridWidth","snapGridHeight","isDisplaySnapDigit","isDisplayInnerSnapDigit","isDisplayGridGuidelines","snapDigit","snapThreshold","snapRenderThreshold",NAME_snapRotationThreshold,NAME_snapRotationDegrees,"horizontalGuidelines","verticalGuidelines","elementGuidelines","bounds","innerBounds","snapDistFormat","maxSnapElementGuidelineDistance","maxSnapElementGapDistance"],events:["snap"],css:[":host {\n--bounds-color: #d66;\n}\n.guideline {\npointer-events: none;\nz-index: 2;\n}\n.guideline.bounds {\nbackground: #d66;\nbackground: var(--bounds-color);\n}\n.guideline-group {\nposition: absolute;\ntop: 0;\nleft: 0;\n}\n.guideline-group .size-value {\nposition: absolute;\ncolor: #f55;\nfont-size: 12px;\nfont-size: calc(12px * var(--zoom));\nfont-weight: bold;\n}\n.guideline-group.horizontal .size-value {\ntransform-origin: 50% 100%;\ntransform: translateX(-50%);\nleft: 50%;\nbottom: 5px;\nbottom: calc(2px + 3px * var(--zoom));\n}\n.guideline-group.vertical .size-value {\ntransform-origin: 0% 50%;\ntop: 50%;\ntransform: translateY(-50%);\nleft: 5px;\nleft: calc(2px + 3px * var(--zoom));\n}\n.guideline.gap {\nbackground: #f55;\n}\n.size-value.gap {\ncolor: #f55;\n}\n"],render:function(t,e){var r=t.state,i=r.top,n=r.left,a=r.pos1,o=r.pos2,s=r.pos3,l=r.pos4,p=r.snapRenderInfo,c=t.props.snapRenderThreshold,h=void 0===c?1:c;if(!p||!p.render||!hasGuidelines(t,""))return[];r.guidelines=getTotalGuidelines(t);var u=Math.min(a[0],o[0],s[0],l[0]),d=Math.min(a[1],o[1],s[1],l[1]),f=p.externalPoses||[],g=getAbsolutePosesByState(t.state),m=[],v=[],y=[],b=[],_=[],x=getRect(g),S=x.width,w=x.height,A=x.top,E=x.left,C=x.bottom,P=x.right,T={left:E,right:P,top:A,bottom:C,center:(E+P)/2,middle:(A+C)/2},D=f.length>0,M=D?getRect(f):{};if(!p.request){if(p.direction&&_.push(getSnapInfosByDirection(t,g,p.direction,h)),p.snap){var k=getRect(g);p.center&&(k.middle=(k.top+k.bottom)/2,k.center=(k.left+k.right)/2),_.push(checkSnaps(t,k,h))}D&&(p.center&&(M.middle=(M.top+M.bottom)/2,M.center=(M.left+M.right)/2),_.push(checkSnaps(t,M,h))),_.forEach((function(t){var e=t.vertical.posInfos,r=t.horizontal.posInfos;m.push.apply(m,__spreadArray([],__read(e.filter((function(t){return t.guidelineInfos.some((function(t){return!t.guideline.hide}))})).map((function(t){return{type:"snap",pos:t.pos}}))),!1)),v.push.apply(v,__spreadArray([],__read(r.filter((function(t){return t.guidelineInfos.some((function(t){return!t.guideline.hide}))})).map((function(t){return{type:"snap",pos:t.pos}}))),!1)),y.push.apply(y,__spreadArray([],__read(getSnapGuidelines(e)),!1)),b.push.apply(b,__spreadArray([],__read(getSnapGuidelines(r)),!1))}))}addBoundGuidelines(t,[E,P],[A,C],m,v),D&&addBoundGuidelines(t,[M.left,M.right],[M.top,M.bottom],m,v,p.externalBounds);var I=__spreadArray(__spreadArray([],__read(y),!1),__read(b),!1),R=I.filter((function(t){return t.element&&!t.gapRects})),F=I.filter((function(t){return t.gapRects})).sort((function(t,e){return t.gap-e.gap}));return triggerEvent(t,"onSnap",{guidelines:I.filter((function(t){return!t.element})),elements:R,gaps:F},!0),__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([],__read(renderDashedGuidelines(t,R,[u,d],T,e)),!1),__read(renderGapGuidelines(t,F,[u,d],T,e)),!1),__read(renderGuidelines(t,"horizontal",b,[n,i],T,e)),!1),__read(renderGuidelines(t,"vertical",y,[n,i],T,e)),!1),__read(renderSnapPoses(t,"horizontal",v,u,i,S,0,e)),!1),__read(renderSnapPoses(t,"vertical",m,d,n,w,1,e)),!1)},dragStart:function(t,e){t.state.snapRenderInfo={request:e.isRequest,snap:!0,center:!0},checkSnapInfo(t)},drag:function(t){var e=t.state;checkSnapInfo(t)||(e.guidelines=getTotalGuidelines(t)),e.snapRenderInfo&&(e.snapRenderInfo.render=!0)},pinchStart:function(t){this.unset(t)},dragEnd:function(t){this.unset(t)},dragControlCondition:function(t,e){return!(!directionCondition$1(t,e)&&!dragControlCondition(t,e))||(!e.isRequest&&e.inputEvent?hasClass(e.inputEvent.target,prefix("snap-control")):void 0)},dragControlStart:function(t){t.state.snapRenderInfo=null,checkSnapInfo(t)},dragControl:function(t){this.drag(t)},dragControlEnd:function(t){this.unset(t)},dragGroupStart:function(t,e){this.dragStart(t,e)},dragGroup:function(t){this.drag(t)},dragGroupEnd:function(t){this.unset(t)},dragGroupControlStart:function(t){t.state.snapRenderInfo=null,checkSnapInfo(t)},dragGroupControl:function(t){this.drag(t)},dragGroupControlEnd:function(t){this.unset(t)},unset:function(t){var e=t.state;e.enableSnap=!1,e.guidelines=[],e.snapRenderInfo=null,e.elementRects=[]}};function multiply2(t,e){return[t[0]*e[0],t[1]*e[1]]}function prefix(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return prefixNames.apply(void 0,__spreadArray([PREFIX],__read(t),!1))}function defaultSync(t){t()}function getTransformMatrix(t){return t&&"none"!==t?isObject$1(t)?t:parseMat(t):[1,0,0,1,0,0]}function getAbsoluteMatrix(t,e,r){return multiplies(e,createOriginMatrix(r,e),t,createOriginMatrix(r.map((function(t){return-t})),e))}function measureSVGSize(t,e,r){return"%"===e?getSVGViewBox(t.ownerSVGElement)[r?"width":"height"]/100:1}function getBeforeTransformOrigin(t){return getTransformOrigin(getComputedStyle$1(t,":before")).map((function(e,r){var i=splitUnit(e),n=i.value,a=i.unit;return n*measureSVGSize(t,a,0===r)}))}function getTransformOriginArray(t){return t?t.split(" "):["0","0"]}function getTransformOrigin(t){return getTransformOriginArray(t.transformOrigin)}function getElementTransform(t){var e=getCachedStyle(t)("transform");if(e&&"none"!==e)return e;if("transform"in t){var r=t.transform.baseVal;if(!r)return"";var i=r.length;if(!i)return"";for(var n=[],a=function(t){var e=r[t].matrix;n.push("matrix(".concat(["a","b","c","d","e","f"].map((function(t){return e[t]})).join(", "),")"))},o=0;o<i;++o)a(o);return n.join(" ")}return""}function getOffsetInfo(t,e,r,i,n){var a,o,s,l,p=getDocumentElement(t)||getDocumentBody(t),c=!1;if(!t||r)s=t;else{var h=null===(a=null==t?void 0:t.assignedSlot)||void 0===a?void 0:a.parentElement,u=t.parentElement;h?(c=!0,l=u,s=h):s=u}for(var d=!1,f=t===e||s===e,g="relative",m=1,v=parseFloat(null==n?void 0:n("zoom"))||1,y=null==n?void 0:n("position");s&&s!==p;){e===s&&(f=!0);var b=getCachedStyle(s),_=s.tagName.toLowerCase(),x=getElementTransform(s),S=b("willChange"),w=parseFloat(b("zoom"))||1;if(g=b("position"),i&&1!==w){m=w;break}if(!r&&i&&1!==v&&y&&"absolute"!==y||"svg"===_||"static"!==g||x&&"none"!==x||"transform"===S)break;var A=null===(o=null==t?void 0:t.assignedSlot)||void 0===o?void 0:o.parentNode,E=s.parentNode;A&&(c=!0,l=E);var C=E;if(C&&11===C.nodeType){d=!0,g=getCachedStyle(s=C.host)("position");break}s=C,g="relative"}return{offsetZoom:m,hasSlot:c,parentSlotElement:l,isCustomElement:d,isStatic:"static"===g,isEnd:f||!s||s===p,offsetParent:s||p}}function getOffsetPosInfo(t,e){var r,i,n,a=t.tagName.toLowerCase(),o=t.offsetLeft,s=t.offsetTop,l=getCachedStyle(t),p=isUndefined(o),c=!p;return c||"svg"===a?n=(i=getTransformOriginArray(l("transformOrigin")).map((function(t){return parseFloat(t)}))).slice():(n=(i=IS_WEBKIT605?getBeforeTransformOrigin(t):getTransformOriginArray(l("transformOrigin")).map((function(t){return parseFloat(t)}))).slice(),c=!0,o=(r=__read(getSVGGraphicsOffset(t,i,t===e&&"g"===e.tagName.toLowerCase()),4))[0],s=r[1],i[0]=r[2],i[1]=r[3]),{tagName:a,isSVG:p,hasOffset:c,offset:[o||0,s||0],origin:i,targetOrigin:n}}function getBodyOffset(t,e){var r=getCachedStyle(t),i=getCachedStyle(getDocumentBody(t)),n=i("position");if(!(e||n&&"static"!==n))return[0,0];var a=parseInt(i("marginLeft"),10),o=parseInt(i("marginTop"),10);return"absolute"===r("position")&&("auto"===r("top")&&"auto"===r("bottom")||(o=0),"auto"===r("left")&&"auto"===r("right")||(a=0)),[a,o]}function convert3DMatrixes(t){t.forEach((function(t){var e=t.matrix;e&&(t.matrix=convertDimension(e,3,4))}))}function getPositionFixedInfo(t){for(var e=t.parentElement,r=!1,i=getDocumentBody(t);e;){var n=getComputedStyle$1(e).transform;if(n&&"none"!==n){r=!0;break}if(e===i)break;e=e.parentElement}return{fixedContainer:e||i,hasTransform:r}}function makeMatrixCSS(t,e){return void 0===e&&(e=t.length>9),"".concat(e?"matrix3d":"matrix","(").concat(convertMatrixtoCSS(t,!e).join(","),")")}function getSVGViewBox(t){var e=t.clientWidth,r=t.clientHeight;if(!t)return{x:0,y:0,width:0,height:0,clientWidth:e,clientHeight:r};var i=t.viewBox,n=i&&i.baseVal||{x:0,y:0,width:0,height:0};return{x:n.x,y:n.y,width:n.width||e,height:n.height||r,clientWidth:e,clientHeight:r}}function getSVGMatrix(t,e){var r,i=getSVGViewBox(t),n=i.width,a=i.height,o=i.clientWidth,s=i.clientHeight,l=o/n,p=s/a,c=t.preserveAspectRatio.baseVal,h=c.align,u=c.meetOrSlice,d=[0,0],f=[l,p],g=[0,0];if(1!==h){var m=(h-2)%3,v=Math.floor((h-2)/3);d[0]=n*m/2,d[1]=a*v/2;var y=2===u?Math.max(p,l):Math.min(l,p);f[0]=y,f[1]=y,g[0]=(o-n)/2*m,g[1]=(s-a)/2*v}var b=createScaleMatrix(f,e);return r=__read(g,2),b[e*(e-1)]=r[0],b[e*(e-1)+1]=r[1],getAbsoluteMatrix(b,e,d)}function getSVGGraphicsOffset(t,e,r){if(!t.getBBox||!r&&"g"===t.tagName.toLowerCase())return[0,0,0,0];var i=t.getBBox(),n=getSVGViewBox(t.ownerSVGElement),a=i.x-n.x,o=i.y-n.y;return[a,o,e[0]-a,e[1]-o]}function calculatePosition(t,e,r){return calculate(t,convertPositionMatrix(e,r),r)}function calculatePoses(t,e,r,i){return[[0,0],[e,0],[0,r],[e,r]].map((function(e){return calculatePosition(t,e,i)}))}function getRect(t){var e=t.map((function(t){return t[0]})),r=t.map((function(t){return t[1]})),i=Math.min.apply(Math,__spreadArray([],__read(e),!1)),n=Math.min.apply(Math,__spreadArray([],__read(r),!1)),a=Math.max.apply(Math,__spreadArray([],__read(e),!1)),o=Math.max.apply(Math,__spreadArray([],__read(r),!1));return{left:i,top:n,right:a,bottom:o,width:a-i,height:o-n}}function calculateRect(t,e,r,i){return getRect(calculatePoses(t,e,r,i))}function getSVGOffset(t,e,r,i,n){var a,o=t.target,s=t.origin,l=e.matrix,p=getSize(o),c=p.offsetWidth,h=p.offsetHeight,u=r.getBoundingClientRect(),d=[0,0];r===getDocumentBody(r)&&(d=getBodyOffset(o,!0));for(var f=o.getBoundingClientRect(),g=f.left-u.left+r.scrollLeft-(r.clientLeft||0)+d[0],m=f.top-u.top+r.scrollTop-(r.clientTop||0)+d[1],v=f.width,y=f.height,b=multiplies(i,n,l),_=calculateRect(b,c,h,i),x=_.left,S=_.top,w=_.width,A=_.height,E=calculatePosition(b,s,i),C=minus$2(E,[x,S]),P=[g+C[0]*v/w,m+C[1]*y/A],T=[0,0],D=0;++D<10;){var M=invert(n,i);a=__read(minus$2(calculatePosition(M,P,i),calculatePosition(M,E,i)),2),T[0]=a[0],T[1]=a[1];var k=calculateRect(multiplies(i,n,createOriginMatrix(T,i),l),c,h,i),I=k.left-g,R=k.top-m;if(abs(I)<2&&abs(R)<2)break;P[0]-=I,P[1]-=R}return T.map((function(t){return Math.round(t)}))}function calculateMoveableClientPositions(t,e,r){var i=16===t.length?4:3,n=e.map((function(e){return calculatePosition(t,e,i)})),a=r.left,o=r.top;return n.map((function(t){return[t[0]+a,t[1]+o]}))}function getDistSize(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function getDiagonalSize(t,e){return getDistSize([e[0]-t[0],e[1]-t[1]])}function getLineStyle(t,e,r,i){void 0===r&&(r=1),void 0===i&&(i=getRad$1(t,e));var n=getDiagonalSize(t,e);return{transform:"translateY(-50%) translate(".concat(t[0],"px, ").concat(t[1],"px) rotate(").concat(i,"rad) scaleY(").concat(r,")"),width:"".concat(n,"px")}}function getControlTransform(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var n=r.length,a=r.reduce((function(t,e){return t+e[0]}),0)/n,o=r.reduce((function(t,e){return t+e[1]}),0)/n;return{transform:"translateZ(0px) translate(".concat(a,"px, ").concat(o,"px) rotate(").concat(t,"rad) scale(").concat(e,")")}}function getProps(t,e){var r=t[e];return isObject$1(r)?__assign$1(__assign$1({},t),r):t}function getSize(t){var e=t&&!isUndefined(t.offsetWidth),r=0,i=0,n=0,a=0,o=0,s=0,l=0,p=0,c=0,h=0,u=0,d=0,f=1/0,g=1/0,m=1/0,v=1/0,y=0,b=0,_=!1;if(t)if(e||"svg"===t.tagName.toLowerCase()){var x=getCachedStyle(t),S=t.style,w="border-box"===x("boxSizing"),A=parseFloat(x("borderLeftWidth"))||0,E=parseFloat(x("borderRightWidth"))||0,C=parseFloat(x("borderTopWidth"))||0,P=parseFloat(x("borderBottomWidth"))||0,T=(parseFloat(x("paddingLeft"))||0)+(parseFloat(x("paddingRight"))||0),D=(parseFloat(x("paddingTop"))||0)+(parseFloat(x("paddingBottom"))||0),M=T+(A+E),k=D+(C+P),I=x("position"),R=0,F=0;if("clientLeft"in t){var B=null;if("absolute"===I)B=getOffsetInfo(t,getDocumentBody(t)).offsetParent;else B=t.parentElement;if(B){var N=getCachedStyle(B);R=parseFloat(N("width")),F=parseFloat(N("height"))}}c=Math.max(T,convertUnitSize(x("minWidth"),R)||0),h=Math.max(D,convertUnitSize(x("minHeight"),F)||0),f=convertUnitSize(x("maxWidth"),R),g=convertUnitSize(x("maxHeight"),F),isNaN(f)&&(f=1/0),isNaN(g)&&(g=1/0),y=convertUnitSize(S.width,0)||0,b=convertUnitSize(S.height,0)||0,o=parseFloat(x("width"))||0,s=parseFloat(x("height"))||0,r=l=abs(o-y)<1?between(c,y||o,f):o,i=p=abs(s-b)<1?between(h,b||s,g):s,n=l,a=p,w?(m=f,v=g,u=c,d=h,l=r-M,p=i-k):(m=f+M,v=g+k,u=c+M,d=h+k,r=l+M,i=p+k),n=l+T,a=p+D}else{var O=t.getBBox();_=!0,o=r=O.width,s=i=O.height,l=r,p=i,n=r,a=i}return{svg:_,offsetWidth:r,offsetHeight:i,clientWidth:n,clientHeight:a,contentWidth:l,contentHeight:p,inlineCSSWidth:y,inlineCSSHeight:b,cssWidth:o,cssHeight:s,minWidth:c,minHeight:h,maxWidth:f,maxHeight:g,minOffsetWidth:u,minOffsetHeight:d,maxOffsetWidth:m,maxOffsetHeight:v}}function getRotationRad(t,e){return getRad$1(e>0?t[0]:t[1],e>0?t[1]:t[0])}function resetClientRect(){return{left:0,top:0,width:0,height:0,right:0,bottom:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0}}function getExtendsRect(t,e){var r=t===getDocumentBody(t)||t===getDocumentElement(t),i={clientLeft:t.clientLeft,clientTop:t.clientTop,clientWidth:t.clientWidth,clientHeight:t.clientHeight,scrollWidth:t.scrollWidth,scrollHeight:t.scrollHeight,overflow:!1};return r&&(i.clientHeight=Math.max(e.height,i.clientHeight),i.scrollHeight=Math.max(e.height,i.scrollHeight)),i.overflow="visible"!==getCachedStyle(t)("overflow"),__assign$1(__assign$1({},e),i)}function getClientRectByPosition(t,e,r,i){var n=t.left,a=t.right,o=t.top,s=t.bottom,l=e.top,p=e.left,c={left:p+n,top:l+o,right:p+a,bottom:l+s,width:a-n,height:s-o};return r&&i?getExtendsRect(r,c):c}function getClientRect(t,e){var r=0,i=0,n=0,a=0;if(t){var o=t.getBoundingClientRect();r=o.left,i=o.top,n=o.width,a=o.height}var s={left:r,top:i,width:n,height:a,right:r+n,bottom:i+a};return t&&e?getExtendsRect(t,s):s}function getTotalOrigin(t){var e=t.props,r=e.groupable,i=e.svgOrigin,n=t.getState(),a=n.offsetWidth,o=n.offsetHeight,s=n.svg,l=n.transformOrigin;return!r&&s&&i?convertTransformOriginArray(i,a,o):l}function getTotalDirection(t,e,r,i){var n;if(t)n=t;else if(e)n=[0,0];else{n=getDirection(r.target,i)}return n}function getDirection(t,e){if(t){var r=t.getAttribute("data-rotation")||"",i=t.getAttribute("data-direction");if(e.deg=r,i){var n=[0,0];return i.indexOf("w")>-1&&(n[0]=-1),i.indexOf("e")>-1&&(n[0]=1),i.indexOf("n")>-1&&(n[1]=-1),i.indexOf("s")>-1&&(n[1]=1),n}}}function getAbsolutePoses(t,e){return[plus(e,t[0]),plus(e,t[1]),plus(e,t[2]),plus(e,t[3])]}function getAbsolutePosesByState(t){var e=t.left,r=t.top;return getAbsolutePoses([t.pos1,t.pos2,t.pos3,t.pos4],[e,r])}function unsetAbles(t,e){t[e?"controlAbles":"targetAbles"].forEach((function(e){e.unset&&e.unset(t)}))}function unsetGesto(t,e){var r=e?"controlGesto":"targetGesto",i=t[r];!1===(null==i?void 0:i.isIdle())&&unsetAbles(t,e),null==i||i.unset(),t[r]=null}function fillCSSObject(t,e){if(e){var r=getBeforeRenderableDatas(e);r.nextStyle=__assign$1(__assign$1({},r.nextStyle),t)}return{style:t,cssText:getKeys(t).map((function(e){return"".concat(decamelize(e,"-"),": ").concat(t[e],";")})).join("")}}function fillAfterTransform(t,e,r){var i=e.afterTransform||e.transform;return __assign$1(__assign$1({},fillCSSObject(__assign$1(__assign$1(__assign$1({},t.style),e.style),{transform:i}),r)),{afterTransform:i,transform:t.transform})}function fillParams(t,e,r,i){var n=e.datas;n.datas||(n.datas={});var a=__assign$1(__assign$1({},r),{target:t.state.target,clientX:e.clientX,clientY:e.clientY,inputEvent:e.inputEvent,currentTarget:t,moveable:t,datas:n.datas,isFirstDrag:!!e.isFirstDrag,isTrusted:!1!==e.isTrusted,stopAble:function(){n.isEventStart=!1},stopDrag:function(){var t;null===(t=e.stop)||void 0===t||t.call(e)}});return n.isStartEvent?i||(n.lastEvent=a):n.isStartEvent=!0,a}function fillEndParams(t,e,r){var i=e.datas,n="isDrag"in r?r.isDrag:e.isDrag;return i.datas||(i.datas={}),__assign$1(__assign$1({isDrag:n},r),{moveable:t,target:t.state.target,clientX:e.clientX,clientY:e.clientY,inputEvent:e.inputEvent,currentTarget:t,lastEvent:i.lastEvent,isDouble:e.isDouble,datas:i.datas,isFirstDrag:!!e.isFirstDrag})}function catchEvent(t,e,r){t._emitter.on(e,r)}function triggerEvent(t,e,r,i){return t.triggerEvent(e,r,i)}function getComputedStyle$1(t,e){return getWindow(t).getComputedStyle(t,e)}function filterAbles(t,e,r){var i={},n={};return t.filter((function(t){var a=t.name;if(i[a]||!e.some((function(e){return t[e]})))return!1;if(!r&&t.ableGroup){if(n[t.ableGroup])return!1;n[t.ableGroup]=!0}return i[a]=!0,!0}))}function equals(t,e){return t===e||null==t&&null==e}function selectValue(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=t.length-1,i=0;i<r;++i){var n=t[i];if(!isUndefined(n))return n}return t[r]}function groupBy(t,e){var r=[],i=[];return t.forEach((function(n,a){var o=e(n,a,t),s=i.indexOf(o),l=r[s]||[];-1===s&&(i.push(o),r.push(l)),l.push(n)})),r}function groupByMap(t,e){var r=[],i={};return t.forEach((function(n,a){var o=e(n,a,t),s=i[o];s||(s=[],i[o]=s,r.push(s)),s.push(n)})),r}function flat(t){return t.reduce((function(t,e){return t.concat(e)}),[])}function maxOffset(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.sort((function(t,e){return abs(e)-abs(t)})),t[0]}function calculateInversePosition(t,e,r){return calculate(invert(t,r),convertPositionMatrix(e,r),r)}function convertDragDist(t,e){var r,i=t.is3d?4:3;return r=__read(calculateInversePosition(t.rootMatrix,[e.distX,e.distY],i),2),e.distX=r[0],e.distY=r[1],e}function calculatePadding(t,e,r,i){if(!r[0]&&!r[1])return e;var n=calculatePosition(t,[normalized(r[0]),0],i),a=calculatePosition(t,[0,normalized(r[1])],i);return plus(e,calculatePosition(t,[r[0]/getDistSize(n),r[1]/getDistSize(a)],i))}function convertCSSSize(t,e,r){return r?"".concat(t/e*100,"%"):"".concat(t,"px")}function getTinyDist(t){return abs(t)<=TINY_NUM?0:t}function getDirectionViewClassName(t){return function(e){if(!e.isDragging(t))return"";var r=getGestoData(e,t).deg;return r?prefix("view-control-rotation".concat(r)):""}}function getDirectionCondition(t,e){return void 0===e&&(e=[t]),function(r,i){if(i.isRequest)return!!e.some((function(t){return i.requestAble===t}))&&i.parentDirection;var n=i.inputEvent.target;return hasClass(n,prefix("direction"))&&(!t||hasClass(n,prefix(t)))}}function convertTransformInfo(t,e){var r,i=parse(t),n=t.slice(0,e<0?void 0:e),a=t.slice(0,e<0?void 0:e+1),o=t[e]||"",s=e<0?[]:t.slice(e),l=e<0?[]:t.slice(e+1),p=i.slice(0,e<0?void 0:e),c=i.slice(0,e<0?void 0:e+1),h=null!==(r=i[e])&&void 0!==r?r:parse([""])[0],u=e<0?[]:i.slice(e),d=e<0?[]:i.slice(e+1),f=h?[h]:[],g=toMat(p),m=toMat(c),v=toMat(u),y=toMat(d),b=multiply(g,v,4);return{transforms:t,beforeFunctionMatrix:g,beforeFunctionMatrix2:m,targetFunctionMatrix:toMat(f),afterFunctionMatrix:v,afterFunctionMatrix2:y,allFunctionMatrix:b,beforeFunctions:p,beforeFunctions2:c,targetFunction:f[0],afterFunctions:u,afterFunctions2:d,beforeFunctionTexts:n,beforeFunctionTexts2:a,targetFunctionText:o,afterFunctionTexts:s,afterFunctionTexts2:l}}function isArrayFormat(t){return!(!t||!isObject$1(t))&&(!isNode(t)&&(isArray$2(t)||"length"in t))}function getRefTarget(t,e){return t?isNode(t)?t:isString(t)?e?document.querySelector(t):t:isFunction$1(t)?t():isWindow(t)?t:"current"in t?t.current:t:null}function getRefTargets(t,e){return t?(isArrayFormat(t)?[].slice.call(t):[t]).reduce((function(t,r){return isString(r)&&e?__spreadArray(__spreadArray([],__read(t),!1),__read([].slice.call(document.querySelectorAll(r))),!1):(isArray$2(r)?t.push(getRefTargets(r,e)):t.push(getRefTarget(r,e)),t)}),[]):[]}function getAbsoluteRotation(t,e,r){var i=getRad$1(t,e)/Math.PI*180;return i=(i=r>=0?i:180-i)>=0?i:360+i}function getDragDistByState(t,e){var r=t.rootMatrix,i=t.is3d,n=invert(r,i?4:3);return i||(n=convertDimension(n,3,4)),n[12]=0,n[13]=0,n[14]=0,calculateMatrixDist(n,e)}function getSizeDistByDist(t,e,r,i,n){var a=__read(t,2),o=a[0],s=a[1],l=0,p=0;if(n&&o&&s){var c=getRad$1([0,0],e),h=getRad$1([0,0],i),u=getDistSize(e),d=Math.cos(c-h)*u;if(i[0])if(i[1]){var f=i[0]*o,g=i[1]*s,m=Math.atan2(f+e[0],g+e[1]),v=Math.atan2(f,g);m<0&&(m+=2*Math.PI),v<0&&(v+=2*Math.PI);var y=0;(y=abs(m-v)<Math.PI/2||abs(m-v)>Math.PI/2*3?m-v:m-(v+=Math.PI))>2*Math.PI?y-=2*Math.PI:y>Math.PI?y=2*Math.PI-y:y<-Math.PI&&(y=-2*Math.PI-y);var b=getDistSize([f+e[0],g+e[1]])*Math.cos(y);l=b*Math.sin(v)-f,p=b*Math.cos(v)-g,i[0]<0&&(l*=-1),i[1]<0&&(p*=-1)}else p=(l=d)/r;else l=(p=d)*r}else l=i[0]*e[0],p=i[1]*e[1];return[l,p]}function getOffsetSizeDist(t,e,r,i){var n,a=r.ratio,o=r.startOffsetWidth,s=r.startOffsetHeight,l=0,p=0,c=i.distX,h=i.distY,u=i.pinchScale,d=i.parentDistance,f=i.parentDist,g=i.parentScale,m=r.fixedDirection,v=[0,1].map((function(e){return abs(t[e]-m[e])})),y=[0,1].map((function(t){var e=v[t];return 0!==e&&(e=2/e),e}));if(f)l=f[0],p=f[1],e&&(l?p||(p=l/a):l=p*a);else if(isNumber(u))l=(u-1)*o,p=(u-1)*s;else if(g)l=(g[0]-1)*o,p=(g[1]-1)*s;else if(d){var b=o*v[0],_=s*v[1],x=getDistSize([b,_]);l=d/x*b*y[0],p=d/x*_*y[1]}else{var S=getDragDist({datas:r,distX:c,distY:h});S=y.map((function(t,e){return S[e]*t})),l=(n=__read(getSizeDistByDist([o,s],S,a,t,e),2))[0],p=n[1]}return{distWidth:l,distHeight:p}}function convertTransformUnit(t,e){if(e){if("left"===t)return{x:"0%",y:"50%"};if("top"===t)return{x:"50%",y:"50%"};if("center"===t)return{x:"50%",y:"50%"};if("right"===t)return{x:"100%",y:"50%"};if("bottom"===t)return{x:"50%",y:"100%"};var r=__read(t.split(" "),2),i=r[0],n=r[1],a=convertTransformUnit(i||""),o=convertTransformUnit(n||""),s=__assign$1(__assign$1({},a),o),l={x:"50%",y:"50%"};return s.x&&(l.x=s.x),s.y&&(l.y=s.y),s.value&&(s.x&&!s.y&&(l.y=s.value),!s.x&&s.y&&(l.x=s.value)),l}return"left"===t?{x:"0%"}:"right"===t?{x:"100%"}:"top"===t?{y:"0%"}:"bottom"===t?{y:"100%"}:t?"center"===t?{value:"50%"}:{value:t}:{}}function convertTransformOriginArray(t,e,r){var i=convertTransformUnit(t,!0),n=i.x,a=i.y;return[convertUnitSize(n,e)||0,convertUnitSize(a,r)||0]}function rotatePosesInfo(t,e,r){var i=t.map((function(t){return minus$2(t,e)})),n=i.map((function(t){return rotate(t,r)}));return{prev:i,next:n,result:n.map((function(t){return plus(t,e)}))}}function isDeepArrayEquals(t,e){return t.length===e.length&&t.every((function(t,r){var i=e[r],n=isArray$2(t),a=isArray$2(i);return n&&a?isDeepArrayEquals(t,i):!n&&!a&&t===i}))}function watchValue(t,e,r,i){var n=t[e];return!(e in t)||n!==r&&i(n)!==i(r)?(t[e]=r,r):n}function sign(t){return t>=0?1:-1}function abs(t){return Math.abs(t)}function countEach(t,e){return counter(t).map((function(t){return e(t)}))}function getPaddingBox(t){return isNumber(t)?{top:t,left:t,right:t,bottom:t}:{left:t.left||0,top:t.top||0,right:t.right||0,bottom:t.bottom||0}}var Pinchable=makeAble("pinchable",{props:["pinchable"],events:["pinchStart","pinch","pinchEnd","pinchGroupStart","pinchGroup","pinchGroupEnd"],dragStart:function(){return!0},pinchStart:function(t,e){var r=e.datas,i=e.targets,n=e.angle,a=e.originalDatas,o=t.props,s=o.pinchable,l=o.ables;if(!s)return!1;var p="onPinch".concat(i?"Group":"","Start"),c="drag".concat(i?"Group":"","ControlStart"),h=(!0===s?t.controlAbles:l.filter((function(t){return s.indexOf(t.name)>-1}))).filter((function(t){return t.canPinch&&t[c]})),u=fillParams(t,e,{});i&&(u.targets=i);var d=triggerEvent(t,p,u);r.isPinch=!1!==d,r.ables=h;var f=r.isPinch;return!!f&&(h.forEach((function(r){if(a[r.name]=a[r.name]||{},r[c]){var i=__assign$1(__assign$1({},e),{datas:a[r.name],parentRotate:n,isPinch:!0});r[c](t,i)}})),t.state.snapRenderInfo={request:e.isRequest,direction:[0,0]},f)},pinch:function(t,e){var r=e.datas,i=e.scale,n=e.distance,a=e.originalDatas,o=e.inputEvent,s=e.targets,l=e.angle;if(r.isPinch){var p=n*(1-1/i),c=fillParams(t,e,{});s&&(c.targets=s);var h="onPinch".concat(s?"Group":"");triggerEvent(t,h,c);var u=r.ables,d="drag".concat(s?"Group":"","Control");return u.forEach((function(r){r[d]&&r[d](t,__assign$1(__assign$1({},e),{datas:a[r.name],inputEvent:o,resolveMatrix:!0,pinchScale:i,parentDistance:p,parentRotate:l,isPinch:!0}))})),c}},pinchEnd:function(t,e){var r=e.datas,i=e.isPinch,n=e.inputEvent,a=e.targets,o=e.originalDatas;if(r.isPinch){var s="onPinch".concat(a?"Group":"","End"),l=fillEndParams(t,e,{isDrag:i});a&&(l.targets=a),triggerEvent(t,s,l);var p=r.ables,c="drag".concat(a?"Group":"","ControlEnd");return p.forEach((function(r){r[c]&&r[c](t,__assign$1(__assign$1({},e),{isDrag:i,datas:o[r.name],inputEvent:n,isPinch:!0}))})),i}},pinchGroupStart:function(t,e){return this.pinchStart(t,__assign$1(__assign$1({},e),{targets:t.props.targets}))},pinchGroup:function(t,e){return this.pinch(t,__assign$1(__assign$1({},e),{targets:t.props.targets}))},pinchGroupEnd:function(t,e){return this.pinchEnd(t,__assign$1(__assign$1({},e),{targets:t.props.targets}))}}),directionCondition=getDirectionCondition("scalable"),Scalable={name:"scalable",ableGroup:"size",canPinch:!0,props:["scalable","throttleScale","renderDirections","keepRatio","edge","displayAroundControls"],events:["scaleStart","beforeScale","scale","scaleEnd","scaleGroupStart","beforeScaleGroup","scaleGroup","scaleGroupEnd"],render:getRenderDirections("scalable"),dragControlCondition:directionCondition,viewClassName:getDirectionViewClassName("scalable"),dragControlStart:function(t,e){var r=e.datas,i=e.isPinch,n=e.inputEvent,a=getTotalDirection(e.parentDirection,i,n,r),o=t.state,s=o.width,l=o.height,p=o.targetTransform,c=o.target,h=o.pos1,u=o.pos2,d=o.pos4;if(!a||!c)return!1;i||setDragStart(t,e),r.datas={},r.transform=p,r.prevDist=[1,1],r.direction=a,r.startOffsetWidth=s,r.startOffsetHeight=l,r.startValue=[1,1];var f=!a[0]&&!a[1]||a[0]||!a[1];function g(t){r.ratio=t&&isFinite(t)?t:0}function m(t){var e=getFixedDirectionInfo(r.startPositions,t);r.fixedDirection=e.fixedDirection,r.fixedPosition=e.fixedPosition,r.fixedOffset=e.fixedOffset}setDefaultTransformIndex(e,"scale"),r.isWidth=f,r.startPositions=getAbsolutePosesByState(t.state),r.setFixedDirection=m,g(getDist$2(h,u)/getDist$2(u,d)),m([-a[0],-a[1]]);var v=function(t){r.minScaleSize=t},y=function(t){r.maxScaleSize=t};v([-1/0,-1/0]),y([1/0,1/0]);var b=fillParams(t,e,__assign$1(__assign$1({direction:a,set:function(t){r.startValue=t},setRatio:g,setFixedDirection:m,setMinScaleSize:v,setMaxScaleSize:y},fillTransformStartEvent(e)),{dragStart:Draggable.dragStart(t,(new CustomGesto).dragStart([0,0],e))})),_=triggerEvent(t,"onScaleStart",b);return r.startFixedDirection=r.fixedDirection,!1!==_&&(r.isScale=!0,t.state.snapRenderInfo={request:e.isRequest,direction:a}),!!r.isScale&&b},dragControl:function(t,e){resolveTransformEvent(e,"scale");var r=e.datas,i=e.parentKeepRatio,n=e.parentFlag,a=e.isPinch,o=e.dragClient,s=e.isRequest,l=e.useSnap,p=e.resolveMatrix,c=r.prevDist,h=r.direction,u=r.startOffsetWidth,d=r.startOffsetHeight,f=r.isScale,g=r.startValue,m=r.isWidth,v=r.ratio;if(!f)return!1;var y=t.props,b=y.throttleScale,_=y.parentMoveable,x=h;h[0]||h[1]||(x=[1,1]);var S=v&&(null!=i?i:y.keepRatio)||!1,w=t.state,A=[g[0],g[1]];function E(){var t=getOffsetSizeDist(x,S,r,e),i=t.distWidth,n=t.distHeight,a=u?(u+i)/u:1,o=d?(d+n)/d:1;g[0]||(A[0]=i/u),g[1]||(A[1]=n/d);var s=(x[0]||S?a:1)*A[0],l=(x[1]||S?o:1)*A[1];return 0===s&&(s=sign(c[0])*MIN_SCALE),0===l&&(l=sign(c[1])*MIN_SCALE),[s,l]}var C=E();if(!a&&t.props.groupable){var P=(w.snapRenderInfo||{}).direction;isArray$2(P)&&(P[0]||P[1])&&(w.snapRenderInfo={direction:h,request:e.isRequest})}triggerEvent(t,"onBeforeScale",fillParams(t,e,{scale:C,setFixedDirection:function(t){return r.setFixedDirection(t),C=E()},startFixedDirection:r.startFixedDirection,setScale:function(t){C=t}},!0));var T=[C[0]/A[0],C[1]/A[1]],D=o,M=[0,0],k=!o&&!n&&a;if(k||p?D=getTranslateFixedPosition(t,r.targetAllTransform,[0,0],[0,0],r):o||(D=r.fixedPosition),a||(M=checkSnapScale(t,T,h,!l&&s,r)),S){x[0]&&x[1]&&M[0]&&M[1]&&(Math.abs(M[0]*u)>Math.abs(M[1]*d)?M[1]=0:M[0]=0);var I=!M[0]&&!M[1];if(I&&(m?T[0]=throttle(T[0]*A[0],b)/A[0]:T[1]=throttle(T[1]*A[1],b)/A[1]),x[0]&&!x[1]||M[0]&&!M[1]||I&&m){T[0]+=M[0];var R=u*T[0]*A[0]/v;T[1]=R/d/A[1]}else if(!x[0]&&x[1]||!M[0]&&M[1]||I&&!m){T[1]+=M[1];var F=d*T[1]*A[1]*v;T[0]=F/u/A[0]}}else T[0]+=M[0],T[1]+=M[1],M[0]||(T[0]=throttle(T[0]*A[0],b)/A[0]),M[1]||(T[1]=throttle(T[1]*A[1],b)/A[1]);0===T[0]&&(T[0]=sign(c[0])*MIN_SCALE),0===T[1]&&(T[1]=sign(c[1])*MIN_SCALE),C=multiply2(T,[A[0],A[1]]);var B=[u,d],N=[u*C[0],d*C[1]];N=calculateBoundSize(N,r.minScaleSize,r.maxScaleSize,!!S&&v),C=countEach(2,(function(t){return B[t]?N[t]/B[t]:N[t]})),T=countEach(2,(function(t){return C[t]/A[t]}));var O=countEach(2,(function(t){return c[t]?T[t]/c[t]:T[t]})),V="scale(".concat(T.join(", "),")"),z="scale(".concat(C.join(", "),")"),L=convertTransformFormat(r,z,V),G=!g[0]||!g[1],$=getScaleDist(t,G?z:V,r.fixedDirection,D,r.fixedOffset,r,G),j=k?$:minus$2($,r.prevInverseDist||[0,0]);if(r.prevDist=T,r.prevInverseDist=$,C[0]===c[0]&&C[1]===c[1]&&j.every((function(t){return!t}))&&!_&&!k)return!1;var H=fillParams(t,e,__assign$1({offsetWidth:u,offsetHeight:d,direction:h,scale:C,dist:T,delta:O,isPinch:!!a},fillTransformEvent(t,L,j,a,e)));return triggerEvent(t,"onScale",H),H},dragControlEnd:function(t,e){var r=e.datas;if(!r.isScale)return!1;r.isScale=!1;var i=fillEndParams(t,e,{});return triggerEvent(t,"onScaleEnd",i),i},dragGroupControlCondition:directionCondition,dragGroupControlStart:function(t,e){var r=e.datas,i=this.dragControlStart(t,e);if(!i)return!1;var n=fillChildEvents(t,"resizable",e);r.moveableScale=t.scale;var a=triggerChildAbles(t,this,"dragControlStart",e,(function(e,i){return startChildDist(t,e,r,i)})),o=function(e){i.setFixedDirection(e),a.forEach((function(i,a){i.setFixedDirection(e),startChildDist(t,i.moveable,r,n[a])}))};r.setFixedDirection=o;var s=__assign$1(__assign$1({},i),{targets:t.props.targets,events:a,setFixedDirection:o}),l=triggerEvent(t,"onScaleGroupStart",s);return r.isScale=!1!==l,!!r.isScale&&s},dragGroupControl:function(t,e){var r=e.datas;if(r.isScale){catchEvent(t,"onBeforeScale",(function(r){triggerEvent(t,"onBeforeScaleGroup",fillParams(t,e,__assign$1(__assign$1({},r),{targets:t.props.targets}),!0))}));var i=this.dragControl(t,e);if(i){var n=i.dist,a=r.moveableScale;t.scale=[n[0]*a[0],n[1]*a[1]];var o=t.props.keepRatio,s=r.fixedPosition,l=triggerChildAbles(t,this,"dragControl",e,(function(e,r){var i=__read(calculate(createRotateMatrix(t.rotation/180*Math.PI,3),[r.datas.originalX*n[0],r.datas.originalY*n[1],1],3),2),a=i[0],l=i[1];return __assign$1(__assign$1({},r),{parentDist:null,parentScale:n,parentKeepRatio:o,dragClient:plus(s,[a,l])})})),p=__assign$1({targets:t.props.targets,events:l},i);return triggerEvent(t,"onScaleGroup",p),p}}},dragGroupControlEnd:function(t,e){var r=e.isDrag;if(e.datas.isScale){this.dragControlEnd(t,e);var i=triggerChildAbles(t,this,"dragControlEnd",e);return triggerEvent(t,"onScaleGroupEnd",fillEndParams(t,e,{targets:t.props.targets,events:i})),r}},request:function(){var t={},e=0,r=0,i=!1;return{isControl:!0,requestStart:function(e){return i=e.useSnap,{datas:t,parentDirection:e.direction||[1,1],useSnap:i}},request:function(n){return e+=n.deltaWidth,r+=n.deltaHeight,{datas:t,parentDist:[e,r],parentKeepRatio:n.keepRatio,useSnap:i}},requestEnd:function(){return{datas:t,isDrag:!0,useSnap:i}}}}};function getMiddleLinePos(t,e){return t.map((function(t,r){return dot$1(t,e[r],1,2)}))}function getTriangleRad(t,e,r){var i=getRad$1(t,e),n=getRad$1(t,r)-i;return n>=0?n:n+2*Math.PI}function isValidPos(t,e){var r=getTriangleRad(t[0],t[1],t[2]),i=getTriangleRad(e[0],e[1],e[2]),n=Math.PI;return!(r>=n&&i<=n||r<=n&&i>=n)}var Warpable={name:"warpable",ableGroup:"size",props:["warpable","renderDirections","edge","displayAroundControls"],events:["warpStart","warp","warpEnd"],viewClassName:getDirectionViewClassName("warpable"),render:function(t,e){var r=t.props,i=r.resizable,n=r.scalable,a=r.warpable,o=r.zoom;if(i||n||!a)return[];var s=t.state,l=s.pos1,p=s.pos2,c=s.pos3,h=s.pos4,u=getMiddleLinePos(l,p),d=getMiddleLinePos(p,l),f=getMiddleLinePos(l,c),g=getMiddleLinePos(c,l),m=getMiddleLinePos(c,h),v=getMiddleLinePos(h,c),y=getMiddleLinePos(p,h),b=getMiddleLinePos(h,p);return __spreadArray([e.createElement("div",{className:prefix("line"),key:"middeLine1",style:getLineStyle(u,m,o)}),e.createElement("div",{className:prefix("line"),key:"middeLine2",style:getLineStyle(d,v,o)}),e.createElement("div",{className:prefix("line"),key:"middeLine3",style:getLineStyle(f,y,o)}),e.createElement("div",{className:prefix("line"),key:"middeLine4",style:getLineStyle(g,b,o)})],__read(renderAllDirections(t,"warpable",e)),!1)},dragControlCondition:function(t,e){if(e.isRequest)return!1;var r=e.inputEvent.target;return hasClass(r,prefix("direction"))&&hasClass(r,prefix("warpable"))},dragControlStart:function(t,e){var r=e.datas,i=e.inputEvent,n=t.props.target,a=getDirection(i.target,r);if(!a||!n)return!1;var o=t.state,s=o.transformOrigin,l=o.is3d,p=o.targetTransform,c=o.targetMatrix,h=o.width,u=o.height,d=o.left,f=o.top;return r.datas={},r.targetTransform=p,r.warpTargetMatrix=l?c:convertDimension(c,3,4),r.targetInverseMatrix=ignoreDimension(invert(r.warpTargetMatrix,4),3,4),r.direction=a,r.left=d,r.top=f,r.poses=[[0,0],[h,0],[0,u],[h,u]].map((function(t){return minus$2(t,s)})),r.nextPoses=r.poses.map((function(t){var e=__read(t,2),i=e[0],n=e[1];return calculate(r.warpTargetMatrix,[i,n,0,1],4)})),r.startValue=createIdentityMatrix(4),r.prevMatrix=createIdentityMatrix(4),r.absolutePoses=getAbsolutePosesByState(o),r.posIndexes=getPosIndexesByDirection(a),setDragStart(t,e),setDefaultTransformIndex(e,"matrix3d"),o.snapRenderInfo={request:e.isRequest,direction:a},!1!==triggerEvent(t,"onWarpStart",fillParams(t,e,__assign$1({set:function(t){r.startValue=t}},fillTransformStartEvent(e))))&&(r.isWarp=!0),r.isWarp},dragControl:function(t,e){var r=e.datas,i=e.isRequest,n=e.distX,a=e.distY,o=r.targetInverseMatrix,s=r.prevMatrix,l=r.isWarp,p=r.startValue,c=r.poses,h=r.posIndexes,u=r.absolutePoses;if(!l)return!1;if(resolveTransformEvent(e,"matrix3d"),hasGuidelines(t,"warpable")){var d=h.map((function(t){return u[t]}));d.length>1&&d.push([(d[0][0]+d[1][0])/2,(d[0][1]+d[1][1])/2]);var f=checkMoveableSnapBounds(t,i,{horizontal:d.map((function(t){return t[1]+a})),vertical:d.map((function(t){return t[0]+n}))}),g=f.horizontal,m=f.vertical;a-=g.offset,n-=m.offset}var v=getDragDist({datas:r,distX:n,distY:a},!0),y=r.nextPoses.slice();if(h.forEach((function(t){y[t]=plus(y[t],v)})),!NEARBY_POS.every((function(t){return isValidPos(t.map((function(t){return c[t]})),t.map((function(t){return y[t]})))})))return!1;var b=createWarpMatrix(c[0],c[2],c[1],c[3],y[0],y[2],y[1],y[3]);if(!b.length)return!1;var _=getTransfromMatrix(r,multiply(o,b,4),!0),x=multiply(invert(s,4),_,4);r.prevMatrix=_;var S=multiply(p,_,4),w=convertTransformFormat(r,"matrix3d(".concat(S.join(", "),")"),"matrix3d(".concat(_.join(", "),")"));return fillOriginalTransform(e,w),triggerEvent(t,"onWarp",fillParams(t,e,__assign$1({delta:x,matrix:S,dist:_,multiply:multiply,transform:w},fillCSSObject({transform:w},e)))),!0},dragControlEnd:function(t,e){var r=e.datas,i=e.isDrag;return!!r.isWarp&&(r.isWarp=!1,triggerEvent(t,"onWarpEnd",fillEndParams(t,e,{})),i)}},AREA_PIECES=prefix("area-pieces"),AREA_PIECE=prefix("area-piece"),AVOID=prefix("avoid"),VIEW_DRAGGING=prefix("view-dragging");function restoreStyle(t){var e=t.areaElement;if(e){var r=t.state,i=r.width,n=r.height;removeClass(e,AVOID),e.style.cssText+="left: 0px; top: 0px; width: ".concat(i,"px; height: ").concat(n,"px")}}function renderPieces(t){return t.createElement("div",{key:"area_pieces",className:AREA_PIECES},t.createElement("div",{className:AREA_PIECE}),t.createElement("div",{className:AREA_PIECE}),t.createElement("div",{className:AREA_PIECE}),t.createElement("div",{className:AREA_PIECE}))}var DragArea={name:"dragArea",props:["dragArea","passDragArea"],events:["click","clickGroup"],render:function(t,e){var r=t.props,i=r.target,n=r.dragArea,a=r.groupable,o=r.passDragArea,s=t.getState(),l=s.width,p=s.height,c=s.renderPoses,h=o?prefix("area","pass"):prefix("area");if(a)return[e.createElement("div",{key:"area",ref:ref(t,"areaElement"),className:h}),renderPieces(e)];if(!i||!n)return[];var u=createWarpMatrix([0,0],[l,0],[0,p],[l,p],c[0],c[1],c[2],c[3]),d=u.length?makeMatrixCSS(u,!0):"none";return[e.createElement("div",{key:"area",ref:ref(t,"areaElement"),className:h,style:{top:"0px",left:"0px",width:"".concat(l,"px"),height:"".concat(p,"px"),transformOrigin:"0 0",transform:d}}),renderPieces(e)]},dragStart:function(t,e){var r=e.datas,i=e.clientX,n=e.clientY;if(!e.inputEvent)return!1;r.isDragArea=!1;var a=t.areaElement,o=t.state,s=o.moveableClientRect,l=o.renderPoses,p=o.rootMatrix,c=o.is3d,h=s.left,u=s.top,d=getRect(l),f=d.left,g=d.top,m=d.width,v=d.height,y=__read(calculateInversePosition(p,[i-h,n-u],c?4:3),2),b=y[0],_=y[1],x=[{left:f,top:g,width:m,height:(_-=g)-10},{left:f,top:g,width:(b-=f)-10,height:v},{left:f,top:g+_+10,width:m,height:v-_-10},{left:f+b+10,top:g,width:m-b-10,height:v}],S=[].slice.call(a.nextElementSibling.children);x.forEach((function(t,e){S[e].style.cssText="left: ".concat(t.left,"px;top: ").concat(t.top,"px; width: ").concat(t.width,"px; height: ").concat(t.height,"px;")})),addClass(a,AVOID),o.disableNativeEvent=!0},drag:function(t,e){var r=e.datas,i=e.inputEvent;if(this.enableNativeEvent(t),!i)return!1;r.isDragArea||(r.isDragArea=!0,restoreStyle(t))},dragEnd:function(t,e){this.enableNativeEvent(t);var r=e.inputEvent,i=e.datas;if(!r)return!1;i.isDragArea||restoreStyle(t)},dragGroupStart:function(t,e){return this.dragStart(t,e)},dragGroup:function(t,e){return this.drag(t,e)},dragGroupEnd:function(t,e){return this.dragEnd(t,e)},unset:function(t){restoreStyle(t),t.state.disableNativeEvent=!1},enableNativeEvent:function(t){var e=t.state;e.disableNativeEvent&&requestAnimationFrame$1((function(){e.disableNativeEvent=!1}))}},Origin=makeAble("origin",{props:["origin","svgOrigin"],render:function(t,e){var r,i=t.props,n=i.zoom,a=i.svgOrigin,o=i.groupable,s=t.getState(),l=s.beforeOrigin,p=s.rotation,c=s.svg,h=s.allMatrix,u=s.is3d,d=s.left,f=s.top,g=s.offsetWidth,m=s.offsetHeight;if(!o&&c&&a){var v=__read(convertTransformOriginArray(a,g,m),2);r=getControlTransform(p,n,minus$2(calculatePosition(h,[v[0],v[1]],u?4:3),[d,f]))}else r=getControlTransform(p,n,l);return[e.createElement("div",{className:prefix("control","origin"),style:r,key:"beforeOrigin"})]}});function getDefaultScrollPosition(t){var e=t.scrollContainer;return[e.scrollLeft,e.scrollTop]}var Scrollable={name:"scrollable",canPinch:!0,props:["scrollable","scrollContainer","scrollThreshold","scrollThrottleTime","getScrollPosition","scrollOptions"],events:["scroll","scrollGroup"],dragRelation:"strong",dragStart:function(t,e){var r=t.props,i=r.scrollContainer,n=void 0===i?t.getContainer():i,a=r.scrollOptions,o=new DragScroll$1,s=getRefTarget(n,!0);e.datas.dragScroll=o,t.state.dragScroll=o;var l=e.isControl?"controlGesto":"targetGesto",p=e.targets;o.on("scroll",(function(r){var i=r.container,n=r.direction,a=fillParams(t,e,{scrollContainer:i,direction:n}),o=p?"onScrollGroup":"onScroll";p&&(a.targets=p),triggerEvent(t,o,a)})).on("move",(function(e){var r=e.offsetX,i=e.offsetY,n=e.inputEvent;t[l].scrollBy(r,i,n.inputEvent,!0)})).on("scrollDrag",(function(e){(0,e.next)(t[l].getCurrentEvent())})),o.dragStart(e,__assign$1({container:s},a))},checkScroll:function(t,e){var r=e.datas.dragScroll;if(r){var i=t.props,n=i.scrollContainer,a=void 0===n?t.getContainer():n,o=i.scrollThreshold,s=void 0===o?0:o,l=i.scrollThrottleTime,p=void 0===l?0:l,c=i.getScrollPosition,h=void 0===c?getDefaultScrollPosition:c,u=i.scrollOptions;return r.drag(e,__assign$1({container:a,threshold:s,throttleTime:p,getScrollPosition:function(t){return h({scrollContainer:t.container,direction:t.direction})}},u)),!0}},drag:function(t,e){return this.checkScroll(t,e)},dragEnd:function(t,e){e.datas.dragScroll.dragEnd(),e.datas.dragScroll=null},dragControlStart:function(t,e){return this.dragStart(t,__assign$1(__assign$1({},e),{isControl:!0}))},dragControl:function(t,e){return this.drag(t,e)},dragControlEnd:function(t,e){return this.dragEnd(t,e)},dragGroupStart:function(t,e){return this.dragStart(t,__assign$1(__assign$1({},e),{targets:t.props.targets}))},dragGroup:function(t,e){return this.drag(t,__assign$1(__assign$1({},e),{targets:t.props.targets}))},dragGroupEnd:function(t,e){return this.dragEnd(t,__assign$1(__assign$1({},e),{targets:t.props.targets}))},dragGroupControlStart:function(t,e){return this.dragStart(t,__assign$1(__assign$1({},e),{targets:t.props.targets,isControl:!0}))},dragGroupControl:function(t,e){return this.drag(t,__assign$1(__assign$1({},e),{targets:t.props.targets}))},dragGroupControEnd:function(t,e){return this.dragEnd(t,__assign$1(__assign$1({},e),{targets:t.props.targets}))},unset:function(t){var e,r=t.state;null===(e=r.dragScroll)||void 0===e||e.dragEnd(),r.dragScroll=null}},Default={name:"",props:["target","dragTarget","dragContainer","container","warpSelf","rootContainer","useResizeObserver","useMutationObserver","zoom","dragFocusedInput","transformOrigin","ables","className","pinchThreshold","pinchOutside","triggerAblesSimultaneously","checkInput","cspNonce","translateZ","hideDefaultLines","props","flushSync","stopPropagation","preventClickEventOnDrag","preventClickDefault","viewContainer","persistData","useAccuratePosition","firstRenderState","linePadding","controlPadding","preventDefault","requestStyles"],events:["changeTargets"]},Padding=makeAble("padding",{props:["padding"],render:function(t,e){var r=t.props;if(r.dragArea)return[];var i=getPaddingBox(r.padding||{}),n=i.left,a=i.top,o=i.right,s=i.bottom,l=t.getState(),p=l.renderPoses,c=[l.pos1,l.pos2,l.pos3,l.pos4],h=[];return n>0&&h.push([0,2]),a>0&&h.push([0,1]),o>0&&h.push([1,3]),s>0&&h.push([2,3]),h.map((function(t,r){var i=__read(t,2),n=i[0],a=i[1],o=createWarpMatrix([0,0],[100,0],[0,100],[100,100],c[n],c[a],p[n],p[a]);if(o.length)return e.createElement("div",{key:"padding".concat(r),className:prefix("padding"),style:{transform:makeMatrixCSS(o,!0)}})}))}}),RADIUS_DIRECTIONS=["nw","ne","se","sw"];function calculateRatio(t,e){var r=t[0]+t[1],i=r>e?e/r:1;return t[0]*=i,t[1]=e-t[1]*i,t}var HORIZONTAL_RADIUS_ORDER=[1,2,5,6],VERTICAL_RADIUS_ORDER=[0,3,4,7],HORIZONTAL_RADIUS_DIRECTIONS=[1,-1,-1,1],VERTICAL_RADIUS_DIRECTIONS=[1,1,-1,-1];function getRadiusStyles(t,e,r,i,n,a,o,s){void 0===n&&(n=0),void 0===a&&(a=0),void 0===o&&(o=r),void 0===s&&(s=i);var l=[],p=!1,c=t.filter((function(t){return!t.virtual})),h=c.map((function(t){var c=t.horizontal,h=t.vertical,u=t.pos;if(h&&!p&&(p=!0,l.push("/")),p){var d=Math.max(0,1===h?u[1]-a:s-u[1]);return l.push(convertCSSSize(d,i,e)),d}d=Math.max(0,1===c?u[0]-n:o-u[0]);return l.push(convertCSSSize(d,r,e)),d}));return{radiusPoses:c,styles:l,raws:h}}function getRadiusRange(t){for(var e=[0,0],r=[0,0],i=t.length,n=0;n<i;++n){var a=t[n];a.sub&&(a.horizontal&&(0===e[1]&&(e[0]=n),e[1]=n-e[0]+1,r[0]=n+1),a.vertical&&(0===r[1]&&(r[0]=n),r[1]=n-r[0]+1))}return{horizontalRange:e,verticalRange:r}}function getRadiusValues(t,e,r,i,n,a,o){var s,l,p,c;void 0===a&&(a=[0,0]),void 0===o&&(o=!1);var h=t.indexOf("/"),u=(h>-1?t.slice(0,h):t).length,d=t.slice(0,u),f=t.slice(u+1),g=d.length,m=f.length,v=m>0,y=__read(d,4),b=y[0],_=void 0===b?"0px":b,x=y[1],S=void 0===x?_:x,w=y[2],A=void 0===w?_:w,E=y[3],C=void 0===E?S:E,P=__read(f,4),T=P[0],D=void 0===T?_:T,M=P[1],k=void 0===M?v?D:S:M,I=P[2],R=void 0===I?v?D:A:I,F=P[3],B=void 0===F?v?k:C:F,N=[_,S,A,C].map((function(t){return convertUnitSize(t,e)})),O=[D,k,R,B].map((function(t){return convertUnitSize(t,r)})),V=N.slice(),z=O.slice();s=__read(calculateRatio([V[0],V[1]],e),2),V[0]=s[0],V[1]=s[1],l=__read(calculateRatio([V[3],V[2]],e),2),V[3]=l[0],V[2]=l[1],p=__read(calculateRatio([z[0],z[3]],r),2),z[0]=p[0],z[3]=p[1],c=__read(calculateRatio([z[1],z[2]],r),2),z[1]=c[0],z[2]=c[1];var L=o?V:V.slice(0,Math.max(a[0],g)),G=o?z:z.slice(0,Math.max(a[1],m));return __spreadArray(__spreadArray([],__read(L.map((function(t,e){var a=RADIUS_DIRECTIONS[e];return{virtual:e>=g,horizontal:HORIZONTAL_RADIUS_DIRECTIONS[e],vertical:0,pos:[i+t,n+(-1===VERTICAL_RADIUS_DIRECTIONS[e]?r:0)],sub:!0,raw:N[e],direction:a}}))),!1),__read(G.map((function(t,r){var a=RADIUS_DIRECTIONS[r];return{virtual:r>=m,horizontal:0,vertical:VERTICAL_RADIUS_DIRECTIONS[r],pos:[i+(-1===HORIZONTAL_RADIUS_DIRECTIONS[r]?e:0),n+t],sub:!0,raw:O[r],direction:a}}))),!1)}function removeRadiusPos(t,e,r,i,n){void 0===n&&(n=e.length);var a=getRadiusRange(t.slice(i)),o=a.horizontalRange,s=a.verticalRange,l=r-i,p=0;if(0===l)p=n;else if(l>0&&l<o[1])p=o[1]-l;else{if(!(l>=s[0]))return;p=s[0]+s[1]-l}t.splice(r,p),e.splice(r,p)}function addRadiusPos(t,e,r,i,n,a,o,s,l,p,c){void 0===p&&(p=0),void 0===c&&(c=0);var h=getRadiusRange(t.slice(r)),u=h.horizontalRange,d=h.verticalRange;if(i>-1)for(var f=1===HORIZONTAL_RADIUS_DIRECTIONS[i]?a-p:s-a,g=u[1];g<=i;++g){var m=1===VERTICAL_RADIUS_DIRECTIONS[g]?c:l,v=0;if(i===g?v=a:0===g?v=p+f:-1===HORIZONTAL_RADIUS_DIRECTIONS[g]&&(v=s-(e[r][0]-p)),t.splice(r+g,0,{horizontal:HORIZONTAL_RADIUS_DIRECTIONS[g],vertical:0,pos:[v,m]}),e.splice(r+g,0,[v,m]),0===g)break}else if(n>-1){var y=1===VERTICAL_RADIUS_DIRECTIONS[n]?o-c:l-o;if(0===u[1]&&0===d[1]){var b=[p+y,c];t.push({horizontal:HORIZONTAL_RADIUS_DIRECTIONS[0],vertical:0,pos:b}),e.push(b)}var _=d[0];for(g=d[1];g<=n;++g){v=1===HORIZONTAL_RADIUS_DIRECTIONS[g]?p:s,m=0;if(n===g?m=o:0===g?m=c+y:1===VERTICAL_RADIUS_DIRECTIONS[g]?m=e[r+_][1]:-1===VERTICAL_RADIUS_DIRECTIONS[g]&&(m=l-(e[r+_][1]-c)),t.push({horizontal:0,vertical:VERTICAL_RADIUS_DIRECTIONS[g],pos:[v,m]}),e.push([v,m]),0===g)break}}}function splitRadiusPoses(t,e){return void 0===e&&(e=t.map((function(t){return t.raw}))),{horizontals:t.map((function(t,r){return t.horizontal?e[r]:null})).filter((function(t){return null!=t})),verticals:t.map((function(t,r){return t.vertical?e[r]:null})).filter((function(t){return null!=t}))}}var CLIP_DIRECTIONS=[[0,-1,"n"],[1,0,"e"]],CLIP_RECT_DIRECTIONS=[[-1,-1,"nw"],[0,-1,"n"],[1,-1,"ne"],[1,0,"e"],[1,1,"se"],[0,1,"s"],[-1,1,"sw"],[-1,0,"w"]];function getClipStyles(t,e,r){var i=t.props.clipRelative,n=t.state,a=n.width,o=n.height,s=e,l=s.type,p=s.poses,c="rect"===l,h="circle"===l;if("polygon"===l)return r.map((function(t){return"".concat(convertCSSSize(t[0],a,i)," ").concat(convertCSSSize(t[1],o,i))}));if(c||"inset"===l){var u=r[1][1],d=r[3][0],f=r[7][0],g=r[5][1];if(c)return[u,d,g,f].map((function(t){return"".concat(t,"px")}));var m=[u,a-d,o-g,f].map((function(t,e){return convertCSSSize(t,e%2?a:o,i)}));if(r.length>8){var v=__read(minus$2(r[4],r[0]),2),y=v[0],b=v[1];m.push.apply(m,__spreadArray(["round"],__read(getRadiusStyles(p.slice(8).map((function(t,e){return __assign$1(__assign$1({},t),{pos:r[e]})})),i,y,b,f,u,d,g).styles),!1))}return m}if(h||"ellipse"===l){var _=r[0],x=convertCSSSize(abs(r[1][1]-_[1]),h?Math.sqrt((a*a+o*o)/2):o,i);return(m=h?[x]:[convertCSSSize(abs(r[2][0]-_[0]),a,i),x]).push("at",convertCSSSize(_[0],a,i),convertCSSSize(_[1],o,i)),m}}function getRectPoses(t,e,r,i){var n=[i,(i+e)/2,e],a=[t,(t+r)/2,r];return CLIP_RECT_DIRECTIONS.map((function(t){var e=__read(t,3),r=e[0],i=e[1],o=e[2],s=n[r+1],l=a[i+1];return{vertical:abs(i),horizontal:abs(r),direction:o,pos:[s,l]}}))}function getControlSize(t){var e=[1/0,-1/0],r=[1/0,-1/0];return t.forEach((function(t){var i=t.pos;e[0]=Math.min(e[0],i[0]),e[1]=Math.max(e[1],i[0]),r[0]=Math.min(r[0],i[1]),r[1]=Math.max(r[1],i[1])})),[abs(e[1]-e[0]),abs(r[1]-r[0])]}function getClipPath(t,e,r,i,n){var a,o,s,l,p,c,h,u,d;if(t){var f=n;if(!f){var g=getCachedStyle(t),m=g("clipPath");f="none"!==m?m:g("clip")}if(f&&"none"!==f&&"auto"!==f||(f=i)){var v=splitBracket(f),y=v.prefix,b=void 0===y?f:y,_=v.value,x=void 0===_?"":_,S="circle"===b,w=" ";if("polygon"===b){w=",";var A=(M=splitComma(x||"0% 0%, 100% 0%, 100% 100%, 0% 100%")).map((function(t){var i=__read(t.split(" "),2),n=i[0],a=i[1];return{vertical:1,horizontal:1,pos:[convertUnitSize(n,e),convertUnitSize(a,r)]}})),E=getMinMaxs(A.map((function(t){return t.pos})));return{type:b,clipText:f,poses:A,splitter:w,left:E.minX,right:E.maxX,top:E.minY,bottom:E.maxY}}if(S||"ellipse"===b){var C="",P="",T=0,D=0,M=splitSpace(x);if(S){var k;k=void 0===(o=(a=__read(M,4))[0])?"50%":o,C=void 0===(s=a[2])?"50%":s,P=void 0===(l=a[3])?"50%":l,T=convertUnitSize(k,Math.sqrt((e*e+r*r)/2)),D=T}else{var I,R;I=void 0===(c=(p=__read(M,5))[0])?"50%":c,R=void 0===(h=p[1])?"50%":h,C=void 0===(u=p[3])?"50%":u,P=void 0===(d=p[4])?"50%":d,T=convertUnitSize(I,e),D=convertUnitSize(R,r)}var F=[convertUnitSize(C,e),convertUnitSize(P,r)];A=__spreadArray([{vertical:1,horizontal:1,pos:F,direction:"nesw"}],__read(CLIP_DIRECTIONS.slice(0,S?1:2).map((function(t){return{vertical:abs(t[1]),horizontal:t[0],direction:t[2],sub:!0,pos:[F[0]+t[0]*T,F[1]+t[1]*D]}}))),!1);return{type:b,clipText:f,radiusX:T,radiusY:D,left:F[0]-T,top:F[1]-D,right:F[0]+T,bottom:F[1]+D,poses:A,splitter:w}}if("inset"===b){var B=(M=splitSpace(x||"0 0 0 0")).indexOf("round"),N=(B>-1?M.slice(0,B):M).length,O=M.slice(N+1),V=__read(M.slice(0,N),4),z=V[0],L=V[1],G=void 0===L?z:L,$=V[2],j=void 0===$?z:$,H=V[3],W=void 0===H?G:H,U=__read([z,j].map((function(t){return convertUnitSize(t,r)})),2),Y=U[0],q=U[1],X=__read([W,G].map((function(t){return convertUnitSize(t,e)})),2),K=X[0],Z=X[1],J=e-Z,Q=r-q,tt=getRadiusValues(O,J-K,Q-Y,K,Y);return{type:"inset",clipText:f,poses:A=__spreadArray(__spreadArray([],__read(getRectPoses(Y,J,Q,K)),!1),__read(tt),!1),top:Y,left:K,right:J,bottom:Q,radius:O,splitter:w}}if("rect"===b){w=",";var et=__read((M=splitComma(x||"0px, ".concat(e,"px, ").concat(r,"px, 0px"))).map((function(t){return splitUnit(t).value})),4),rt=et[0];return{type:"rect",clipText:f,poses:A=getRectPoses(rt,Z=et[1],q=et[2],K=et[3]),top:rt,right:Z,bottom:q,left:K,values:M,splitter:w}}}}}function moveControlPos(t,e,r,i,n){var a=t[e],o=a.direction,s=a.sub,l=t.map((function(){return[0,0]})),p=o?o.split(""):[];if(i&&e<8){var c=p.filter((function(t){return"w"===t||"e"===t})),h=p.filter((function(t){return"n"===t||"s"===t})),u=c[0],d=h[0];l[e]=r;var f=__read(getControlSize(t),2),g=f[0],m=f[1],v=g&&m?g/m:0;if(v&&n){var y=t[(e+4)%8].pos,b=[0,0];o.indexOf("w")>-1?b[0]=-1:o.indexOf("e")>-1&&(b[0]=1),o.indexOf("n")>-1?b[1]=-1:o.indexOf("s")>-1&&(b[1]=1);var _=getSizeDistByDist([g,m],r,v,b,!0),x=g+_[0],S=m+_[1],w=y[1],A=y[1],E=y[0],C=y[0];-1===b[0]?E=C-x:1===b[0]?C=E+x:(E-=x/2,C+=x/2),-1===b[1]?w=A-S:A=1===b[1]?w+S:(w=A-S/2)+S;var P=getRectPoses(w,C,A,E);t.forEach((function(t,e){l[e][0]=P[e].pos[0]-t.pos[0],l[e][1]=P[e].pos[1]-t.pos[1]}))}else t.forEach((function(t,e){var i=t.direction;i&&(i.indexOf(u)>-1&&(l[e][0]=r[0]),i.indexOf(d)>-1&&(l[e][1]=r[1]))})),u&&(l[1][0]=r[0]/2,l[5][0]=r[0]/2),d&&(l[3][1]=r[1]/2,l[7][1]=r[1]/2)}else o&&!s?p.forEach((function(e){var i="n"===e||"s"===e;t.forEach((function(t,n){var a=t.direction,o=t.horizontal,s=t.vertical;a&&-1!==a.indexOf(e)&&(l[n]=[i||!o?0:r[0],i&&s?r[1]:0])}))})):l[e]=r;return l}function addClipPath(t,e){var r=__read(calculatePointerDist(t,e),2),i=r[0],n=r[1],a=e.datas,o=a.clipPath,s=a.clipIndex,l=o,p=l.type,c=l.poses,h=l.splitter,u=c.map((function(t){return t.pos}));if("polygon"===p)u.splice(s,0,[i,n]);else{if("inset"!==p)return;var d=HORIZONTAL_RADIUS_ORDER.indexOf(s),f=VERTICAL_RADIUS_ORDER.indexOf(s),g=c.length;if(addRadiusPos(c,u,8,d,f,i,n,u[4][0],u[4][1],u[0][0],u[0][1]),g===c.length)return}var m=getClipStyles(t,o,u),v="".concat(p,"(").concat(m.join(h),")");triggerEvent(t,"onClip",fillParams(t,e,__assign$1({clipEventType:"added",clipType:p,poses:u,clipStyles:m,clipStyle:v,distX:0,distY:0},fillCSSObject({clipPath:v},e))))}function removeClipPath(t,e){var r=e.datas,i=r.clipPath,n=r.clipIndex,a=i,o=a.type,s=a.poses,l=a.splitter,p=s.map((function(t){return t.pos})),c=p.length;if("polygon"===o)s.splice(n,1),p.splice(n,1);else{if("inset"!==o)return;if(n<8)return;if(removeRadiusPos(s,p,n,8,c),c===s.length)return}var h=getClipStyles(t,i,p),u="".concat(o,"(").concat(h.join(l),")");triggerEvent(t,"onClip",fillParams(t,e,__assign$1({clipEventType:"removed",clipType:o,poses:p,clipStyles:h,clipStyle:u,distX:0,distY:0},fillCSSObject({clipPath:u},e))))}var Clippable={name:"clippable",props:["clippable","defaultClipPath","customClipPath","keepRatio","clipRelative","clipArea","dragWithClip","clipTargetBounds","clipVerticalGuidelines","clipHorizontalGuidelines","clipSnapThreshold"],events:["clipStart","clip","clipEnd"],css:[".control.clip-control {\nbackground: #6d6;\ncursor: pointer;\n}\n.control.clip-control.clip-radius {\nbackground: #d66;\n}\n.line.clip-line {\nbackground: #6e6;\ncursor: move;\nz-index: 1;\n}\n.clip-area {\nposition: absolute;\ntop: 0;\nleft: 0;\n}\n.clip-ellipse {\nposition: absolute;\ncursor: move;\nborder: 1px solid #6d6;\nborder: var(--zoompx) solid #6d6;\nborder-radius: 50%;\ntransform-origin: 0px 0px;\n}",":host {\n--bounds-color: #d66;\n}",".guideline {\npointer-events: none;\nz-index: 2;\n}",".line.guideline.bounds {\nbackground: #d66;\nbackground: var(--bounds-color);\n}"],render:function(t,e){var r=t.props,i=r.customClipPath,n=r.defaultClipPath,a=r.clipArea,o=r.zoom,s=r.groupable,l=t.getState(),p=l.target,c=l.width,h=l.height,u=l.allMatrix,d=l.is3d,f=l.left,g=l.top,m=l.pos1,v=l.pos2,y=l.pos3,b=l.pos4,_=l.clipPathState,x=l.snapBoundInfos,S=l.rotation;if(!p||s)return[];var w=getClipPath(p,c,h,n||"inset",_||i);if(!w)return[];var A=d?4:3,E=w.type,C=w.poses.map((function(t){var e=calculatePosition(u,t.pos,A);return[e[0]-f,e[1]-g]})),P=[],T=[],D="rect"===E,M="inset"===E,k="polygon"===E;if(D||M||k){var I=M?C.slice(0,8):C;T=I.map((function(t,r){var i=0===r?I[I.length-1]:I[r-1],n=getRad$1(i,t),a=getDiagonalSize(i,t);return e.createElement("div",{key:"clipLine".concat(r),className:prefix("line","clip-line","snap-control"),"data-clip-index":r,style:{width:"".concat(a,"px"),transform:"translate(".concat(i[0],"px, ").concat(i[1],"px) rotate(").concat(n,"rad) scaleY(").concat(o,")")}})}))}if(P=C.map((function(t,r){return e.createElement("div",{key:"clipControl".concat(r),className:prefix("control","clip-control","snap-control"),"data-clip-index":r,style:{transform:"translate(".concat(t[0],"px, ").concat(t[1],"px) rotate(").concat(S,"rad) scale(").concat(o,")")}})})),M&&P.push.apply(P,__spreadArray([],__read(C.slice(8).map((function(t,r){return e.createElement("div",{key:"clipRadiusControl".concat(r),className:prefix("control","clip-control","clip-radius","snap-control"),"data-clip-index":8+r,style:{transform:"translate(".concat(t[0],"px, ").concat(t[1],"px) rotate(").concat(S,"rad) scale(").concat(o,")")}})}))),!1)),"circle"===E||"ellipse"===E){var R=w.left,F=w.top,B=w.radiusX,N=w.radiusY,O=__read(minus$2(calculatePosition(u,[R,F],A),calculatePosition(u,[0,0],A)),2),V=O[0],z=O[1],L="none";if(!a){for(var G=Math.max(10,B/5,N/5),$=[],j=0;j<=G;++j){var H=2*Math.PI/G*j;$.push([B+(B-o)*Math.cos(H),N+(N-o)*Math.sin(H)])}$.push([B,-2]),$.push([-2,-2]),$.push([-2,2*N+2]),$.push([2*B+2,2*N+2]),$.push([2*B+2,-2]),$.push([B,-2]),L="polygon(".concat($.map((function(t){return"".concat(t[0],"px ").concat(t[1],"px")})).join(", "),")")}P.push(e.createElement("div",{key:"clipEllipse",className:prefix("clip-ellipse","snap-control"),style:{width:"".concat(2*B,"px"),height:"".concat(2*N,"px"),clipPath:L,transform:"translate(".concat(-f+V,"px, ").concat(-g+z,"px) ").concat(makeMatrixCSS(u))}}))}if(a){var W=getRect(__spreadArray([m,v,y,b],__read(C),!1)),U=W.width,Y=W.height,q=W.left,X=W.top;if(k||D||M){$=M?C.slice(0,8):C;P.push(e.createElement("div",{key:"clipArea",className:prefix("clip-area","snap-control"),style:{width:"".concat(U,"px"),height:"".concat(Y,"px"),transform:"translate(".concat(q,"px, ").concat(X,"px)"),clipPath:"polygon(".concat($.map((function(t){return"".concat(t[0]-q,"px ").concat(t[1]-X,"px")})).join(", "),")")}}))}}return x&&["vertical","horizontal"].forEach((function(t){var r=x[t],i="horizontal"===t;r.isSnap&&T.push.apply(T,__spreadArray([],__read(r.snap.posInfos.map((function(r,n){var a=r.pos,s=minus$2(calculatePosition(u,i?[0,a]:[a,0],A),[f,g]),l=minus$2(calculatePosition(u,i?[c,a]:[a,h],A),[f,g]);return renderLine(e,"",s,l,o,"clip".concat(t,"snap").concat(n),"guideline")}))),!1)),r.isBound&&T.push.apply(T,__spreadArray([],__read(r.bounds.map((function(r,n){var a=r.pos,s=minus$2(calculatePosition(u,i?[0,a]:[a,0],A),[f,g]),l=minus$2(calculatePosition(u,i?[c,a]:[a,h],A),[f,g]);return renderLine(e,"",s,l,o,"clip".concat(t,"bounds").concat(n),"guideline","bounds","bold")}))),!1))})),__spreadArray(__spreadArray([],__read(P),!1),__read(T),!1)},dragControlCondition:function(t,e){return e.inputEvent&&(e.inputEvent.target.getAttribute("class")||"").indexOf("clip")>-1},dragStart:function(t,e){var r=t.props.dragWithClip;return!(void 0===r||r)&&this.dragControlStart(t,e)},drag:function(t,e){return this.dragControl(t,__assign$1(__assign$1({},e),{isDragTarget:!0}))},dragEnd:function(t,e){return this.dragControlEnd(t,e)},dragControlStart:function(t,e){var r=t.state,i=t.props,n=i.defaultClipPath,a=i.customClipPath,o=r.target,s=r.width,l=r.height,p=e.inputEvent?e.inputEvent.target:null,c=p&&p.getAttribute("class")||"",h=e.datas,u=getClipPath(o,s,l,n||"inset",a);if(!u)return!1;var d=u.clipText;return!1===triggerEvent(t,"onClipStart",fillParams(t,e,{clipType:u.type,clipStyle:d,poses:u.poses.map((function(t){return t.pos}))}))?(h.isClipStart=!1,!1):(h.isControl=c&&c.indexOf("clip-control")>-1,h.isLine=c.indexOf("clip-line")>-1,h.isArea=c.indexOf("clip-area")>-1||c.indexOf("clip-ellipse")>-1,h.clipIndex=p?parseInt(p.getAttribute("data-clip-index"),10):-1,h.clipPath=u,h.isClipStart=!0,r.clipPathState=d,setDragStart(t,e),!0)},dragControl:function(t,e){var r,i,n,a=e.datas,o=e.originalDatas,s=e.isDragTarget;if(!a.isClipStart)return!1;var l=a,p=l.isControl,c=l.isLine,h=l.isArea,u=l.clipIndex,d=l.clipPath;if(!d)return!1;var f=getProps(t.props,"clippable"),g=f.keepRatio,m=0,v=0,y=o.draggable,b=getDragDist(e);s&&y?(r=__read(y.prevBeforeDist,2),m=r[0],v=r[1]):(i=__read(b,2),m=i[0],v=i[1]);var _=[m,v],x=t.state,S=x.width,w=x.height,A=!h&&!p&&!c,E=d.type,C=d.poses,P=d.splitter,T=C.map((function(t){return t.pos}));A&&(m=-m,v=-v);var D=!p||"nesw"===C[u].direction,M="inset"===E||"rect"===E,k=C.map((function(){return[0,0]}));if(p&&!D){var I=C[u],R=I.horizontal,F=I.vertical,B=[m*abs(R),v*abs(F)];k=moveControlPos(C,u,B,M,g)}else D&&(k=T.map((function(){return[m,v]})));var N=T.map((function(t,e){return plus(t,k[e])})),O=__spreadArray([],__read(N),!1);x.snapBoundInfos=null;var V="circle"===d.type,z="ellipse"===d.type;if(V||z){var L=abs((rt=getRect(N)).bottom-rt.top),G=abs(z?rt.right-rt.left:L),$=N[0][1]+L,j=N[0][0]-G,H=N[0][0]+G;V&&(O.push([H,rt.bottom]),k.push([1,0])),O.push([rt.left,$]),k.push([0,1]),O.push([j,rt.bottom]),k.push([1,0])}var W=getDefaultGuidelines((f.clipHorizontalGuidelines||[]).map((function(t){return convertUnitSize("".concat(t),w)})),(f.clipVerticalGuidelines||[]).map((function(t){return convertUnitSize("".concat(t),S)})),S,w),U=[],Y=[];if(V||z)U=[O[4][0],O[2][0]],Y=[O[1][1],O[3][1]];else if(M){var q=[O[0],O[2],O[4],O[6]],X=[k[0],k[2],k[4],k[6]];U=q.filter((function(t,e){return X[e][0]})).map((function(t){return t[0]})),Y=q.filter((function(t,e){return X[e][1]})).map((function(t){return t[1]}))}else U=O.filter((function(t,e){return k[e][0]})).map((function(t){return t[0]})),Y=O.filter((function(t,e){return k[e][1]})).map((function(t){return t[1]}));var K=[0,0],Z=checkSnapBounds(W,f.clipTargetBounds&&{left:0,top:0,right:S,bottom:w},U,Y,5),J=Z.horizontal,Q=Z.vertical,tt=J.offset,et=Q.offset;if(J.isBound&&(K[1]+=tt),Q.isBound&&(K[0]+=et),(z||V)&&0===k[0][0]&&0===k[0][1]){var rt,it=(rt=getRect(N)).bottom-rt.top,nt=z?rt.right-rt.left:it;nt-=Q.isBound?abs(et):0===Q.snapIndex?-et:et,it-=J.isBound?abs(tt):0===J.snapIndex?-tt:tt,V&&(nt=it=checkSnapBoundPriority(Q,J)>0?it:nt);var at=O[0];O[1][1]=at[1]-it,O[2][0]=at[0]+nt,O[3][1]=at[1]+it,O[4][0]=at[0]-nt}else if(M&&g&&p){var ot=__read(getControlSize(C),2),st=ot[0],lt=ot[1],pt=st&<?st/lt:0,ct=C[u].direction||"",ht=O[1][1];$=O[5][1],j=O[7][0],H=O[3][0];abs(tt)<=abs(et)?tt=sign(tt)*abs(et)/pt:et=sign(et)*abs(tt)*pt,ct.indexOf("w")>-1?j-=et:ct.indexOf("e")>-1?H-=et:(j+=et/2,H-=et/2),ct.indexOf("n")>-1?ht-=tt:ct.indexOf("s")>-1?$-=tt:(ht+=tt/2,$-=tt/2);var ut=getRectPoses(ht,H,$,j);O.forEach((function(t,e){var r;r=__read(ut[e].pos,2),t[0]=r[0],t[1]=r[1]}))}else O.forEach((function(t,e){var r=k[e];r[0]&&(t[0]-=et),r[1]&&(t[1]-=tt)}));var dt=getClipStyles(t,d,N),ft="".concat(E,"(").concat(dt.join(P),")");if(x.clipPathState=ft,V||z)U=[O[4][0],O[2][0]],Y=[O[1][1],O[3][1]];else if(M){U=(q=[O[0],O[2],O[4],O[6]]).map((function(t){return t[0]})),Y=q.map((function(t){return t[1]}))}else U=O.map((function(t){return t[0]})),Y=O.map((function(t){return t[1]}));if(x.snapBoundInfos=checkSnapBounds(W,f.clipTargetBounds&&{left:0,top:0,right:S,bottom:w},U,Y,1),y){var gt=x.is3d,mt=x.allMatrix,vt=gt?4:3,yt=K;s&&(yt=[_[0]+K[0]-b[0],_[1]+K[1]-b[1]]),y.deltaOffset=multiply(mt,[yt[0],yt[1],0,0],vt)}return triggerEvent(t,"onClip",fillParams(t,e,__assign$1({clipEventType:"changed",clipType:E,poses:N,clipStyle:ft,clipStyles:dt,distX:m,distY:v},fillCSSObject(((n={})["rect"===E?"clip":"clipPath"]=ft,n),e)))),!0},dragControlEnd:function(t,e){this.unset(t);var r=e.isDrag,i=e.datas,n=e.isDouble,a=i.isLine,o=i.isClipStart,s=i.isControl;return!!o&&(triggerEvent(t,"onClipEnd",fillEndParams(t,e,{})),n&&(s?removeClipPath(t,e):a&&addClipPath(t,e)),n||r)},unset:function(t){t.state.clipPathState="",t.state.snapBoundInfos=null}},OriginDraggable={name:"originDraggable",props:["originDraggable","originRelative"],events:["dragOriginStart","dragOrigin","dragOriginEnd"],css:[":host[data-able-origindraggable] .control.origin {\npointer-events: auto;\n}"],dragControlCondition:function(t,e){return e.isRequest?"originDraggable"===e.requestAble:hasClass(e.inputEvent.target,prefix("origin"))},dragControlStart:function(t,e){var r=e.datas;setDragStart(t,e);var i=fillParams(t,e,{dragStart:Draggable.dragStart(t,(new CustomGesto).dragStart([0,0],e))}),n=triggerEvent(t,"onDragOriginStart",i);return r.startOrigin=t.state.transformOrigin,r.startTargetOrigin=t.state.targetOrigin,r.prevOrigin=[0,0],r.isDragOrigin=!0,!1===n?(r.isDragOrigin=!1,!1):i},dragControl:function(t,e){var r=e.datas,i=e.isPinch,n=e.isRequest;if(!r.isDragOrigin)return!1;var a=__read(getDragDist(e),2),o=a[0],s=a[1],l=t.state,p=l.width,c=l.height,h=l.offsetMatrix,u=l.targetMatrix,d=l.is3d,f=t.props.originRelative,g=void 0===f||f,m=d?4:3,v=[o,s];if(n){var y=e.distOrigin;(y[0]||y[1])&&(v=y)}var b=plus(r.startOrigin,v),_=plus(r.startTargetOrigin,v),x=minus$2(v,r.prevOrigin),S=getNextMatrix(h,u,b,m),w=t.getRect(),A=getRect(calculatePoses(S,p,c,m)),E=[w.left-A.left,w.top-A.top];r.prevOrigin=v;var C=[convertCSSSize(_[0],p,g),convertCSSSize(_[1],c,g)].join(" "),P=Draggable.drag(t,setCustomDrag(e,t.state,E,!!i,!1)),T=fillParams(t,e,__assign$1(__assign$1({width:p,height:c,origin:b,dist:v,delta:x,transformOrigin:C,drag:P},fillCSSObject({transformOrigin:C,transform:P.transform},e)),{afterTransform:P.transform}));return triggerEvent(t,"onDragOrigin",T),T},dragControlEnd:function(t,e){return!!e.datas.isDragOrigin&&(triggerEvent(t,"onDragOriginEnd",fillEndParams(t,e,{})),!0)},dragGroupControlCondition:function(t,e){return this.dragControlCondition(t,e)},dragGroupControlStart:function(t,e){return!!this.dragControlStart(t,e)},dragGroupControl:function(t,e){var r=this.dragControl(t,e);return!!r&&(t.transformOrigin=r.transformOrigin,!0)},request:function(t){var e={},r=t.getRect(),i=0,n=0,a=r.transformOrigin,o=[0,0];return{isControl:!0,requestStart:function(){return{datas:e}},request:function(t){return"deltaOrigin"in t?(o[0]+=t.deltaOrigin[0],o[1]+=t.deltaOrigin[1]):"origin"in t?(o[0]=t.origin[0]-a[0],o[1]=t.origin[1]-a[1]):("x"in t?i=t.x-r.left:"deltaX"in t&&(i+=t.deltaX),"y"in t?n=t.y-r.top:"deltaY"in t&&(n+=t.deltaY)),{datas:e,distX:i,distY:n,distOrigin:o}},requestEnd:function(){return{datas:e,isDrag:!0}}}}};function addBorderRadiusByLine(t,e,r,i){var n=t.filter((function(t){var e=t.virtual;return t.horizontal&&!e})).length,a=t.filter((function(t){var e=t.virtual;return t.vertical&&!e})).length,o=-1;if(0===e&&(0===n?o=0:1===n&&(o=1)),2===e&&(n<=2?o=2:n<=3&&(o=3)),3===e&&(0===a?o=4:a<4&&(o=7)),1===e&&(a<=1?o=5:a<=2&&(o=6)),-1!==o&&t[o].virtual){var s=t[o];addBorderRadius(t,o),o<4?s.pos[0]=r:s.pos[1]=i}}function addBorderRadius(t,e){e<4?t.slice(0,e+1).forEach((function(t){t.virtual=!1})):(t[0].virtual&&(t[0].virtual=!1),t.slice(4,e+1).forEach((function(t){t.virtual=!1})))}function removeBorderRadius(t,e){e<4?t.slice(e,4).forEach((function(t){t.virtual=!0})):t.slice(e).forEach((function(t){t.virtual=!0}))}function getBorderRadius(t,e,r,i,n){void 0===i&&(i=[0,0]);return getRadiusValues(t&&"0px"!==t?splitSpace(t):[],e,r,0,0,i,n)}function triggerRoundEvent(t,e,r,i,n){var a=t.state,o=a.width,s=a.height,l=getRadiusStyles(n,t.props.roundRelative,o,s),p=l.raws,c=l.styles,h=splitRadiusPoses(l.radiusPoses,p),u=h.horizontals,d=h.verticals,f=c.join(" ");a.borderRadiusState=f;var g=fillParams(t,e,__assign$1({horizontals:u,verticals:d,borderRadius:f,width:o,height:s,delta:i,dist:r},fillCSSObject({borderRadius:f},e)));return triggerEvent(t,"onRound",g),g}function getStyleBorderRadius(t){var e,r,i=t.getState().style,n=i.borderRadius||"";if(!n&&t.props.groupable){var a=t.moveables[0],o=t.getTargets()[0];o&&((null==a?void 0:a.props.target)===o?(n=null!==(r=null===(e=t.moveables[0])||void 0===e?void 0:e.state.style.borderRadius)&&void 0!==r?r:"",i.borderRadius=n):(n=getComputedStyle$1(o).borderRadius,i.borderRadius=n))}return n}var Roundable={name:"roundable",props:["roundable","roundRelative","minRoundControls","maxRoundControls","roundClickable","roundPadding","isDisplayShadowRoundControls"],events:["roundStart","round","roundEnd","roundGroupStart","roundGroup","roundGroupEnd"],css:[".control.border-radius {\nbackground: #d66;\ncursor: pointer;\nz-index: 3;\n}",".control.border-radius.vertical {\nbackground: #d6d;\nz-index: 2;\n}",".control.border-radius.virtual {\nopacity: 0.5;\nz-index: 1;\n}",":host.round-line-clickable .line.direction {\ncursor: pointer;\n}"],className:function(t){var e=t.props.roundClickable;return!0===e||"line"===e?prefix("round-line-clickable"):""},requestStyle:function(){return["borderRadius"]},requestChildStyle:function(){return["borderRadius"]},render:function(t,e){var r=t.getState(),i=r.target,n=r.width,a=r.height,o=r.allMatrix,s=r.is3d,l=r.left,p=r.top,c=r.borderRadiusState,h=t.props,u=h.minRoundControls,d=void 0===u?[0,0]:u,f=h.maxRoundControls,g=void 0===f?[4,4]:f,m=h.zoom,v=h.roundPadding,y=void 0===v?0:v,b=h.isDisplayShadowRoundControls,_=h.groupable;if(!i)return null;var x=c||getStyleBorderRadius(t),S=s?4:3,w=getBorderRadius(x,n,a,d,!0);if(!w)return null;var A=0,E=0,C=_?[0,0]:[l,p];return w.map((function(t,r){var i=t.horizontal,n=t.vertical,a=t.direction||"",s=__spreadArray([],__read(t.pos),!1);E+=Math.abs(i),A+=Math.abs(n),i&&a.indexOf("n")>-1&&(s[1]-=y),n&&a.indexOf("w")>-1&&(s[0]-=y),i&&a.indexOf("s")>-1&&(s[1]+=y),n&&a.indexOf("e")>-1&&(s[0]+=y);var l=minus$2(calculatePosition(o,s,S),C),p=t.vertical?A<=g[1]&&(b||!t.virtual):E<=g[0]&&(b||!t.virtual);return e.createElement("div",{key:"borderRadiusControl".concat(r),className:prefix("control","border-radius",t.vertical?"vertical":"",t.virtual?"virtual":""),"data-radius-index":r,style:{display:p?"block":"none",transform:"translate(".concat(l[0],"px, ").concat(l[1],"px) scale(").concat(m,")")}})}))},dragControlCondition:function(t,e){if(!e.inputEvent||e.isRequest)return!1;var r=e.inputEvent.target.getAttribute("class")||"";return r.indexOf("border-radius")>-1||r.indexOf("moveable-line")>-1&&r.indexOf("moveable-direction")>-1},dragGroupControlCondition:function(t,e){return this.dragControlCondition(t,e)},dragControlStart:function(t,e){var r=e.inputEvent,i=e.datas,n=r.target,a=n.getAttribute("class")||"",o=a.indexOf("border-radius")>-1,s=a.indexOf("moveable-line")>-1&&a.indexOf("moveable-direction")>-1,l=o?parseInt(n.getAttribute("data-radius-index"),10):-1,p=-1;if(s){var c=n.getAttribute("data-line-key")||"";c&&(p=parseInt(c.replace(/render-line-/g,""),10),isNaN(p)&&(p=-1))}if(!o&&!s)return!1;var h=fillParams(t,e,{});if(!1===triggerEvent(t,"onRoundStart",h))return!1;i.lineIndex=p,i.controlIndex=l,i.isControl=o,i.isLine=s,setDragStart(t,e);var u=t.props,d=u.roundRelative,f=u.minRoundControls,g=void 0===f?[0,0]:f,m=t.state,v=m.width,y=m.height;i.isRound=!0,i.prevDist=[0,0];var b=getBorderRadius(getStyleBorderRadius(t)||"",v,y,g,!0)||[];return i.controlPoses=b,m.borderRadiusState=getRadiusStyles(b,d,v,y).styles.join(" "),h},dragControl:function(t,e){var r=e.datas,i=r.controlPoses;if(!r.isRound||!r.isControl||!i.length)return!1;var n=r.controlIndex,a=__read(getDragDist(e),2),o=a[0],s=a[1],l=[o,s],p=minus$2(l,r.prevDist),c=t.props.maxRoundControls,h=void 0===c?[4,4]:c,u=t.state,d=u.width,f=u.height,g=i[n],m=g.vertical,v=g.horizontal,y=i.map((function(t){var e=t.horizontal,r=t.vertical,i=[e*v*l[0],r*m*l[1]];if(e){if(1===h[0])return i;if(h[0]<4&&e!==v)return i}else{if(0===h[1])return i[1]=r*v*l[0]/d*f,i;if(m){if(1===h[1])return i;if(h[1]<4&&r!==m)return i}}return[0,0]}));y[n]=l;var b=i.map((function(t,e){return __assign$1(__assign$1({},t),{pos:plus(t.pos,y[e])})}));return n<4?b.slice(0,n+1).forEach((function(t){t.virtual=!1})):b.slice(4,n+1).forEach((function(t){t.virtual=!1})),r.prevDist=[o,s],triggerRoundEvent(t,e,l,p,b)},dragControlEnd:function(t,e){var r=t.state;r.borderRadiusState="";var i=e.datas,n=e.isDouble;if(!i.isRound)return!1;var a=i.isControl,o=i.controlIndex,s=i.isLine,l=i.lineIndex,p=i.controlPoses,c=p.filter((function(t){return t.virtual})).length,h=t.props.roundClickable,u=void 0===h||h;if(n&&u){if(!a||!0!==u&&"control"!==u){if(s&&(!0===u||"line"===u)){var d=__read(calculatePointerDist(t,e),2);addBorderRadiusByLine(p,l,d[0],d[1])}}else removeBorderRadius(p,o);c!==p.filter((function(t){return t.virtual})).length&&triggerRoundEvent(t,e,[0,0],[0,0],p)}var f=fillEndParams(t,e,{});return triggerEvent(t,"onRoundEnd",f),r.borderRadiusState="",f},dragGroupControlStart:function(t,e){var r=this.dragControlStart(t,e);if(!r)return!1;var i=t.moveables,n=t.props.targets,a=fillChildEvents(t,"roundable",e);return triggerEvent(t,"onRoundGroupStart",__assign$1({targets:t.props.targets,events:a.map((function(t,e){return __assign$1(__assign$1({},t),{target:n[e],moveable:i[e],currentTarget:i[e]})}))},r)),r},dragGroupControl:function(t,e){var r=this.dragControl(t,e);if(!r)return!1;var i=t.moveables,n=t.props.targets,a=fillChildEvents(t,"roundable",e),o=__assign$1({targets:t.props.targets,events:a.map((function(t,e){return __assign$1(__assign$1(__assign$1({},t),{target:n[e],moveable:i[e],currentTarget:i[e]}),fillCSSObject({borderRadius:r.borderRadius},t))}))},r);return triggerEvent(t,"onRoundGroup",o),o},dragGroupControlEnd:function(t,e){var r=t.moveables,i=t.props.targets,n=fillChildEvents(t,"roundable",e);catchEvent(t,"onRound",(function(e){var a=__assign$1({targets:t.props.targets,events:n.map((function(t,n){return __assign$1(__assign$1(__assign$1({},t),{target:i[n],moveable:r[n],currentTarget:r[n]}),fillCSSObject({borderRadius:e.borderRadius},t))}))},e);triggerEvent(t,"onRoundGroup",a)}));var a=this.dragControlEnd(t,e);if(!a)return!1;var o=__assign$1({targets:t.props.targets,events:n.map((function(t,e){var n;return __assign$1(__assign$1({},t),{target:i[e],moveable:r[e],currentTarget:r[e],lastEvent:null===(n=t.datas)||void 0===n?void 0:n.lastEvent})}))},a);return triggerEvent(t,"onRoundGroupEnd",o),o},unset:function(t){t.state.borderRadiusState=""}};function isIdentityMatrix(t,e){var r=createIdentityMatrix(e?4:3);return t==="matrix".concat(e?"3d":"","(").concat(r.join(","),")")||"matrix(1,0,0,1,0,0)"===t}var BeforeRenderable={isPinch:!0,name:"beforeRenderable",props:[],events:["beforeRenderStart","beforeRender","beforeRenderEnd","beforeRenderGroupStart","beforeRenderGroup","beforeRenderGroupEnd"],dragRelation:"weak",setTransform:function(t,e){var r=t.state,i=r.is3d,n=r.targetMatrix,a=r.inlineTransform,o=i?"matrix3d(".concat(n.join(","),")"):"matrix(".concat(convertMatrixtoCSS(n,!0),")"),s=a&&"none"!==a?a:o;e.datas.startTransforms=isIdentityMatrix(s,i)?[]:splitSpace(s)},resetStyle:function(t){var e=t.datas;e.nextStyle={},e.nextTransforms=t.datas.startTransforms,e.nextTransformAppendedIndexes=[]},fillDragStartParams:function(t,e){return fillParams(t,e,{setTransform:function(t){e.datas.startTransforms=isArray$2(t)?t:splitSpace(t)},isPinch:!!e.isPinch})},fillDragParams:function(t,e){return fillParams(t,e,{isPinch:!!e.isPinch})},dragStart:function(t,e){this.setTransform(t,e),this.resetStyle(e),triggerEvent(t,"onBeforeRenderStart",this.fillDragStartParams(t,e))},drag:function(t,e){e.datas.startTransforms||this.setTransform(t,e),this.resetStyle(e),triggerEvent(t,"onBeforeRender",fillParams(t,e,{isPinch:!!e.isPinch}))},dragEnd:function(t,e){e.datas.startTransforms||(this.setTransform(t,e),this.resetStyle(e)),triggerEvent(t,"onBeforeRenderEnd",fillParams(t,e,{isPinch:!!e.isPinch,isDrag:e.isDrag}))},dragGroupStart:function(t,e){var r=this;this.dragStart(t,e);var i=fillChildEvents(t,"beforeRenderable",e),n=t.moveables,a=i.map((function(t,e){var i=n[e];return r.setTransform(i,t),r.resetStyle(t),r.fillDragStartParams(i,t)}));triggerEvent(t,"onBeforeRenderGroupStart",fillParams(t,e,{isPinch:!!e.isPinch,targets:t.props.targets,setTransform:function(){},events:a}))},dragGroup:function(t,e){var r=this;this.drag(t,e);var i=fillChildEvents(t,"beforeRenderable",e),n=t.moveables,a=i.map((function(t,e){var i=n[e];return r.resetStyle(t),r.fillDragParams(i,t)}));triggerEvent(t,"onBeforeRenderGroup",fillParams(t,e,{isPinch:!!e.isPinch,targets:t.props.targets,events:a}))},dragGroupEnd:function(t,e){this.dragEnd(t,e),triggerEvent(t,"onBeforeRenderGroupEnd",fillParams(t,e,{isPinch:!!e.isPinch,isDrag:e.isDrag,targets:t.props.targets}))},dragControlStart:function(t,e){return this.dragStart(t,e)},dragControl:function(t,e){return this.drag(t,e)},dragControlEnd:function(t,e){return this.dragEnd(t,e)},dragGroupControlStart:function(t,e){return this.dragGroupStart(t,e)},dragGroupControl:function(t,e){return this.dragGroup(t,e)},dragGroupControlEnd:function(t,e){return this.dragGroupEnd(t,e)}},Renderable={name:"renderable",props:[],events:["renderStart","render","renderEnd","renderGroupStart","renderGroup","renderGroupEnd"],dragRelation:"weak",dragStart:function(t,e){triggerEvent(t,"onRenderStart",fillParams(t,e,{isPinch:!!e.isPinch}))},drag:function(t,e){triggerEvent(t,"onRender",this.fillDragParams(t,e))},dragAfter:function(t,e){return this.drag(t,e)},dragEnd:function(t,e){triggerEvent(t,"onRenderEnd",this.fillDragEndParams(t,e))},dragGroupStart:function(t,e){triggerEvent(t,"onRenderGroupStart",fillParams(t,e,{isPinch:!!e.isPinch,targets:t.props.targets}))},dragGroup:function(t,e){var r=this,i=fillChildEvents(t,"beforeRenderable",e),n=t.moveables,a=i.map((function(t,e){var i=n[e];return r.fillDragParams(i,t)}));triggerEvent(t,"onRenderGroup",fillParams(t,e,__assign$1(__assign$1({isPinch:!!e.isPinch,targets:t.props.targets,transform:getNextTransformText(e),transformObject:{}},fillCSSObject(getNextStyle(e))),{events:a})))},dragGroupEnd:function(t,e){var r=this,i=fillChildEvents(t,"beforeRenderable",e),n=t.moveables,a=i.map((function(t,e){var i=n[e];return r.fillDragEndParams(i,t)}));triggerEvent(t,"onRenderGroupEnd",fillParams(t,e,__assign$1({isPinch:!!e.isPinch,isDrag:e.isDrag,targets:t.props.targets,events:a,transformObject:{},transform:getNextTransformText(e)},fillCSSObject(getNextStyle(e)))))},dragControlStart:function(t,e){return this.dragStart(t,e)},dragControl:function(t,e){return this.drag(t,e)},dragControlAfter:function(t,e){return this.dragAfter(t,e)},dragControlEnd:function(t,e){return this.dragEnd(t,e)},dragGroupControlStart:function(t,e){return this.dragGroupStart(t,e)},dragGroupControl:function(t,e){return this.dragGroup(t,e)},dragGroupControlEnd:function(t,e){return this.dragGroupEnd(t,e)},fillDragParams:function(t,e){var r={};return parse(getNextTransforms(e)||[]).forEach((function(t){r[t.name]=t.functionValue})),fillParams(t,e,__assign$1({isPinch:!!e.isPinch,transformObject:r,transform:getNextTransformText(e)},fillCSSObject(getNextStyle(e))))},fillDragEndParams:function(t,e){var r={};return parse(getNextTransforms(e)||[]).forEach((function(t){r[t.name]=t.functionValue})),fillParams(t,e,__assign$1({isPinch:!!e.isPinch,isDrag:e.isDrag,transformObject:r,transform:getNextTransformText(e)},fillCSSObject(getNextStyle(e))))}};function triggerAble(t,e,r,i,n,a,o){a.clientDistX=a.distX,a.clientDistY=a.distY;var s="Start"===n,l="End"===n,p="After"===n,c=t.state.target,h=a.isRequest,u=i.indexOf("Control")>-1;if(!c||s&&u&&!h&&t.areaElement===a.inputEvent.target)return!1;var d=__spreadArray([],__read(t[e]),!1);if(h){var f=a.requestAble;d.some((function(t){return t.name===f}))||d.push.apply(d,__spreadArray([],__read(t.props.ables.filter((function(t){return t.name===f}))),!1))}if(!d.length||d.every((function(t){return t.dragRelation})))return!1;var g,m=a.inputEvent;l&&m&&(g=document.elementFromPoint(a.clientX,a.clientY)||m.target);var v=!1,y=function(){var t;v=!0,null===(t=a.stop)||void 0===t||t.call(a)},b=s&&(!t.targetGesto||!t.controlGesto||!t.targetGesto.isFlag()||!t.controlGesto.isFlag());b&&t.updateRect(n,!0,!1);var _=a.datas,x=u?"controlGesto":"targetGesto",S=t[x],w=function(e,r,i){if(!(r in e)||S!==t[x])return!1;var n=e.name,o=_[n]||(_[n]={});if(s&&(o.isEventStart=!i||!e[i]||e[i](t,a)),!o.isEventStart)return!1;var l=e[r](t,__assign$1(__assign$1({},a),{stop:y,datas:o,originalDatas:_,inputTarget:g}));return t._emitter.off(),s&&!1===l&&(o.isEventStart=!1),l};b&&d.forEach((function(e){e.unset&&e.unset(t)})),w(BeforeRenderable,"drag".concat(i).concat(n));var A=0,E=0;r.forEach((function(e){if(v)return!1;var r="".concat(e).concat(i).concat(n),o="".concat(e).concat(i,"Condition");""!==n||h||convertDragDist(t.state,a);var l=d.filter((function(t){return t[r]})),p=(l=l.filter((function(t,e){return t.name&&l.indexOf(t)===e}))).filter((function(t){return w(t,r,o)})).length;v&&++A,p&&++E,!v&&s&&l.length&&!p&&(A+=l.filter((function(t){var e=t.name;return!!_[e].isEventStart&&"strong"!==t.dragRelation})).length?1:0)})),p&&!E||w(Renderable,"drag".concat(i).concat(n));var C=S!==t[x]||A===r.length;if((l||v||C)&&(t.state.gestos={},t.moveables&&t.moveables.forEach((function(t){t.state.gestos={}})),d.forEach((function(e){e.unset&&e.unset(t)}))),s&&!C&&!h&&E&&t.props.preventDefault&&(null==a||a.preventDefault()),t.isUnmounted||C)return!1;(!s&&E&&!o||l)&&(t.props.flushSync||defaultSync)((function(){t.updateRect(l?n:"",!0,!1),t.forceUpdate()}));return s||l||p||!E||o||triggerAble(t,e,r,i,n+"After",a),!0}function checkMoveableTarget(t){return function(e){var r,i=e.inputEvent.target,n=t.areaElement,a=t._dragTarget;return!(!a||(null===(r=t.controlGesto)||void 0===r?void 0:r.isFlag()))&&(i===a||a.contains(i)||i===n||!t.isMoveableElement(i)&&!t.controlBox.contains(i)||hasClass(i,"moveable-area")||hasClass(i,"moveable-padding")||hasClass(i,"moveable-edgeDraggable"))}}function getTargetAbleGesto(t,e,r){var i=t.controlBox,n=[],a=t.props.dragTarget;return n.push(i),t.props.dragArea&&!a||n.push(e),getAbleGesto(t,n,"targetAbles",r,{dragStart:checkMoveableTarget(t),pinchStart:checkMoveableTarget(t)})}function getAbleGesto(t,e,r,i,n){void 0===n&&(n={});var a="targetAbles"===r,o=t.props,s=o.pinchOutside,l=o.pinchThreshold,p=o.preventClickEventOnDrag,c=o.preventClickDefault,h=o.checkInput,u=o.dragFocusedInput,d=o.preventDefault,f={preventDefault:void 0===d||d,preventRightClick:!0,preventWheelClick:!0,container:getRefTarget(o.dragContainer,!0)||getWindow(t.getControlBoxElement()),pinchThreshold:l,pinchOutside:s,preventClickEventOnDrag:!!a&&p,preventClickEventOnDragStart:!!a&&c,preventClickEventByCondition:a?null:function(e){return t.controlBox.contains(e.target)},checkInput:!!a&&h,dragFocusedInput:u},g=new Gesto(e,f),m="Control"===i;return["drag","pinch"].forEach((function(e){["Start","","End"].forEach((function(a){g.on("".concat(e).concat(a),(function(o){var s,l=o.eventType,p="drag"===e&&o.isPinch;!n[l]||n[l](o)?p||(triggerAble(t,r,"drag"===e?[e]:["drag",e],i,a,o)?(t.props.stopPropagation||"Start"===a&&m)&&(null===(s=null==o?void 0:o.inputEvent)||void 0===s||s.stopPropagation()):o.stop()):o.stop()}))}))})),g}var EventManager=function(){function t(t,e,r){var i=this;this.target=t,this.moveable=e,this.eventName=r,this.ables=[],this._onEvent=function(t){var e=i.eventName,r=i.moveable;r.state.disableNativeEvent||i.ables.forEach((function(i){i[e](r,{inputEvent:t})}))},t.addEventListener(r.toLowerCase(),this._onEvent)}return t.prototype.setAbles=function(t){this.ables=t},t.prototype.destroy=function(){this.target.removeEventListener(this.eventName.toLowerCase(),this._onEvent),this.target=null,this.moveable=null},t}();function calculateMatrixStack(t,e,r,i){var n;void 0===r&&(r=e);var a=getMatrixStackInfo(t,e),o=a.matrixes,s=a.is3d,l=a.targetMatrix,p=a.transformOrigin,c=a.targetOrigin,h=a.offsetContainer,u=a.hasFixed,d=a.zoom,f=getCachedMatrixContainerInfo(h,r),g=f.matrixes,m=f.is3d,v=f.offsetContainer,y=f.zoom,b=i||m||s,_=b?4:3,x="svg"!==t.tagName.toLowerCase()&&"ownerSVGElement"in t,S=l,w=createIdentityMatrix(_),A=createIdentityMatrix(_),E=createIdentityMatrix(_),C=createIdentityMatrix(_),P=o.length,T=g.map((function(t){return __assign$1(__assign$1({},t),{matrix:t.matrix?__spreadArray([],__read(t.matrix),!1):void 0})})).reverse();o.reverse(),!s&&b&&(S=convertDimension(S,3,4),convert3DMatrixes(o)),!m&&b&&convert3DMatrixes(T),T.forEach((function(t){A=multiply(A,t.matrix,_)}));var D=r||getDocumentBody(t),M=(null===(n=T[0])||void 0===n?void 0:n.target)||getOffsetInfo(D,D,!0).offsetParent,k=T.slice(1).reduce((function(t,e){return multiply(t,e.matrix,_)}),createIdentityMatrix(_));o.forEach((function(t,e){if(P-2===e&&(E=w.slice()),P-1===e&&(C=w.slice()),!t.matrix){var r=getSVGOffset(t,o[e+1],M,_,multiply(k,w,_));t.matrix=createOriginMatrix(r,_)}w=multiply(w,t.matrix,_)}));var I=!x&&s;S||(S=createIdentityMatrix(I?4:3));var R=makeMatrixCSS(x&&16===S.length?convertDimension(S,4,3):S,I),F=A;return A=ignoreDimension(A,_,_),{hasZoom:1!==d||1!==y,hasFixed:u,matrixes:o,rootMatrix:A,originalRootMatrix:F,beforeMatrix:E,offsetMatrix:C,allMatrix:w,targetMatrix:S,targetTransform:R,inlineTransform:t.style.transform,transformOrigin:p,targetOrigin:c,is3d:b,offsetContainer:h,offsetRootContainer:v}}function calculateElementInfo(t,e,r,i){void 0===r&&(r=e);var n=0,a=0,o=0,s={},l=getSize(t);if(t&&(n=l.offsetWidth,a=l.offsetHeight),t){var p=calculateMatrixStack(t,e,r,i),c=calculateElementPosition(p.allMatrix,p.transformOrigin,n,a);s=__assign$1(__assign$1({},p),c);var h=calculateElementPosition(p.allMatrix,[50,50],100,100);o=getRotationRad([h.pos1,h.pos2],h.direction)}var u=i?4:3;return __assign$1(__assign$1(__assign$1({hasZoom:!1,width:n,height:a,rotation:o},l),{originalRootMatrix:createIdentityMatrix(u),rootMatrix:createIdentityMatrix(u),beforeMatrix:createIdentityMatrix(u),offsetMatrix:createIdentityMatrix(u),allMatrix:createIdentityMatrix(u),targetMatrix:createIdentityMatrix(u),targetTransform:"",inlineTransform:"",transformOrigin:[0,0],targetOrigin:[0,0],is3d:!!i,left:0,top:0,right:0,bottom:0,origin:[0,0],pos1:[0,0],pos2:[0,0],pos3:[0,0],pos4:[0,0],direction:1,hasFixed:!1,offsetContainer:null,offsetRootContainer:null,matrixes:[]}),s)}function getMoveableTargetInfo(t,e,r,i,n,a){void 0===a&&(a=[]);var o=1,s=[0,0],l=resetClientRect(),p=resetClientRect(),c=resetClientRect(),h=resetClientRect(),u=[0,0],d={},f=calculateElementInfo(e,r,n,!0);if(e){var g=getCachedStyle(e);a.forEach((function(t){d[t]=g(t)}));var m=f.is3d?4:3,v=calculateElementPosition(f.offsetMatrix,plus(f.transformOrigin,getOrigin(f.targetMatrix,m)),f.width,f.height);o=v.direction,s=plus(v.origin,[v.left-f.left,v.top-f.top]),h=getClientRect(f.offsetRootContainer);var y=getOffsetInfo(i,i,!0).offsetParent||f.offsetRootContainer;if(f.hasZoom){var b=calculateElementPosition(multiply(f.originalRootMatrix,f.allMatrix),f.transformOrigin,f.width,f.height),_=calculateElementPosition(f.originalRootMatrix,getTransformOriginArray(getCachedStyle(y)("transformOrigin")).map((function(t){return parseFloat(t)})),y.offsetWidth,y.offsetHeight);if(l=getClientRectByPosition(b,h),c=getClientRectByPosition(_,h,y,!0),t){var x=b.left,S=b.top;p=getClientRectByPosition({left:x,top:S,bottom:S,right:S},h)}}else{l=getClientRect(e),c=getCachedClientRect(y),t&&(p=getClientRect(t));var w=c.left,A=c.top,E=c.clientLeft,C=c.clientTop,P=[l.left-w,l.top-A];u=minus$2(calculateInversePosition(f.rootMatrix,P,4),[E+f.left,C+f.top])}}return __assign$1({targetClientRect:l,containerClientRect:c,moveableClientRect:p,rootContainerClientRect:h,beforeDirection:o,beforeOrigin:s,originalBeforeOrigin:s,target:e,style:d,offsetDelta:u},f)}function getPersistState(t){var e=t.pos1,r=t.pos2,i=t.pos3,n=t.pos4;if(!(e&&r&&i&&n))return null;var a=getMinMaxs([e,r,i,n]),o=[a.minX,a.minY],s=minus$2(t.origin,o);return e=minus$2(e,o),r=minus$2(r,o),i=minus$2(i,o),n=minus$2(n,o),__assign$1(__assign$1({},t),{left:t.left,top:t.top,posDelta:o,pos1:e,pos2:r,pos3:i,pos4:n,origin:s,beforeOrigin:s,isPersisted:!0})}var MoveableManager$1=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state=__assign$1({container:null,gestos:{},renderPoses:[[0,0],[0,0],[0,0],[0,0]],disableNativeEvent:!1,posDelta:[0,0]},getMoveableTargetInfo(null)),e.renderState={},e.enabledAbles=[],e.targetAbles=[],e.controlAbles=[],e.rotation=0,e.scale=[1,1],e.isMoveableMounted=!1,e.isUnmounted=!1,e.events={mouseEnter:null,mouseLeave:null},e._emitter=new EventEmitter$1,e._prevOriginalDragTarget=null,e._originalDragTarget=null,e._prevDragTarget=null,e._dragTarget=null,e._prevDragArea=!1,e._isPropTargetChanged=!1,e._hasFirstTarget=!1,e._reiszeObserver=null,e._observerId=0,e._mutationObserver=null,e._rootContainer=null,e._viewContainer=null,e._viewClassNames=[],e._store={},e.checkUpdateRect=function(){if(!e.isDragging()){var t=e.props.parentMoveable;t?t.checkUpdateRect():(cancelAnimationFrame$1(e._observerId),e._observerId=requestAnimationFrame$1((function(){e.isDragging()||e.updateRect()})))}},e._onPreventClick=function(t){t.stopPropagation(),t.preventDefault()},e}return __extends$1(e,t),e.prototype.render=function(){var t=this.props,e=this.getState(),r=t.parentPosition,i=t.className,n=t.target,a=t.zoom,o=t.cspNonce,s=t.translateZ,l=t.cssStyled,p=t.groupable,c=t.linePadding,h=t.controlPadding;this._checkUpdateRootContainer(),this.checkUpdate(),this.updateRenderPoses();var u=__read(r||[0,0],2),d=u[0],f=u[1],g=e.left,m=e.top,v=e.target,y=e.direction,b=e.hasFixed,_=e.offsetDelta,x=t.targets,S=this.isDragging(),w={};this.getEnabledAbles().forEach((function(t){w["data-able-".concat(t.name.toLowerCase())]=!0}));var A=this._getAbleClassName(),E=x&&x.length&&(v||p)||n||!this._hasFirstTarget&&this.state.isPersisted,C=this.controlBox||this.props.firstRenderState||this.props.persistData,P=[g-d,m-f];!p&&t.useAccuratePosition&&(P[0]+=_[0],P[1]+=_[1]);var T={position:b?"fixed":"absolute",display:E?"block":"none",visibility:C?"visible":"hidden",transform:"translate3d(".concat(P[0],"px, ").concat(P[1],"px, ").concat(s,")"),"--zoom":a,"--zoompx":"".concat(a,"px")};return c&&(T["--moveable-line-padding"]=c),h&&(T["--moveable-control-padding"]=h),createElement(l,__assign$1({cspNonce:o,ref:ref(this,"controlBox"),className:"".concat(prefix("control-box",-1===y?"reverse":"",S?"dragging":"")," ").concat(A," ").concat(i)},w,{onClick:this._onPreventClick,style:T}),this.renderAbles(),this._renderLines())},e.prototype.componentDidMount=function(){this.isMoveableMounted=!0,this.isUnmounted=!1;var t=this.props,e=t.parentMoveable,r=t.container;this._checkUpdateRootContainer(),this._checkUpdateViewContainer(),this._updateTargets(),this._updateNativeEvents(),this._updateEvents(),this.updateCheckInput(),this._updateObserver(this.props),r||e||this.state.isPersisted||(this.updateRect("",!1,!1),this.forceUpdate())},e.prototype.componentDidUpdate=function(t){this._checkUpdateRootContainer(),this._checkUpdateViewContainer(),this._updateNativeEvents(),this._updateTargets(),this._updateEvents(),this.updateCheckInput(),this._updateObserver(t)},e.prototype.componentWillUnmount=function(){var t,e;this.isMoveableMounted=!1,this.isUnmounted=!0,this._emitter.off(),null===(t=this._reiszeObserver)||void 0===t||t.disconnect(),null===(e=this._mutationObserver)||void 0===e||e.disconnect(),this._viewContainer&&this._changeAbleViewClassNames([]),unsetGesto(this,!1),unsetGesto(this,!0);var r=this.events;for(var i in r){var n=r[i];n&&n.destroy()}},e.prototype.getTargets=function(){var t=this.props.target;return t?[t]:[]},e.prototype.getAble=function(t){return find$1(this.props.ables||[],(function(e){return e.name===t}))},e.prototype.getContainer=function(){var t=this.props,e=t.parentMoveable,r=t.wrapperMoveable;return t.container||r&&r.getContainer()||e&&e.getContainer()||this.controlBox.parentElement},e.prototype.getControlBoxElement=function(){return this.controlBox},e.prototype.isMoveableElement=function(t){var e;return t&&((null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"class"))||"").indexOf(PREFIX)>-1},e.prototype.dragStart=function(t){var e=this.targetGesto,r=this.controlGesto;return e&&checkMoveableTarget(this)({inputEvent:t})?e.isFlag()||e.triggerDragStart(t):r&&this.isMoveableElement(t.target)&&(r.isFlag()||r.triggerDragStart(t)),this},e.prototype.hitTest=function(t){var e,r=this.state,i=r.target,n=r.pos1,a=r.pos2,o=r.pos3,s=r.pos4,l=r.targetClientRect;if(!i)return 0;if(isNode(t)){var p=t.getBoundingClientRect();e={left:p.left,top:p.top,width:p.width,height:p.height}}else e=__assign$1({width:0,height:0},t);var c=e.left,h=e.top,u=e.width,d=e.height,f=fitPoints([n,a,s,o],l),g=getOverlapSize(f,[[c,h],[c+u,h],[c+u,h+d],[c,h+d]]),m=getAreaSize(f);return g&&m?Math.min(100,g/m*100):0},e.prototype.isInside=function(t,e){var r=this.state,i=r.target,n=r.pos1,a=r.pos2,o=r.pos3,s=r.pos4,l=r.targetClientRect;return!!i&&isInside([t,e],fitPoints([n,a,s,o],l))},e.prototype.updateRect=function(t,e,r){void 0===r&&(r=!0);var i=this.props,n=!i.parentPosition&&!i.wrapperMoveable;n&&setStoreCache(!0);var a=i.parentMoveable,o=this.state.target||i.target,s=this.getContainer(),l=a?a._rootContainer:this._rootContainer,p=getMoveableTargetInfo(this.controlBox,o,s,s,l||s,this._getRequestStyles());if(!o&&this._hasFirstTarget&&i.persistData){var c=getPersistState(i.persistData);for(var h in c)p[h]=c[h]}n&&setStoreCache(),this.updateState(p,!a&&r)},e.prototype.isDragging=function(t){var e,r,i=this.targetGesto,n=this.controlGesto;return(null==i?void 0:i.isFlag())?!t||!!(null===(e=i.getEventData()[t])||void 0===e?void 0:e.isEventStart):!!(null==n?void 0:n.isFlag())&&(!t||!!(null===(r=n.getEventData()[t])||void 0===r?void 0:r.isEventStart))},e.prototype.updateTarget=function(t){this.updateRect(t,!0)},e.prototype.getRect=function(){var t=this.state,e=getAbsolutePosesByState(this.state),r=__read(e,4),i=r[0],n=r[1],a=r[2],o=r[3],s=getRect(e),l=t.width,p=t.height,c=s.width,h=s.height,u=s.left,d=s.top,f=[t.left,t.top],g=plus(f,t.origin);return{width:c,height:h,left:u,top:d,pos1:i,pos2:n,pos3:a,pos4:o,offsetWidth:l,offsetHeight:p,beforeOrigin:plus(f,t.beforeOrigin),origin:g,transformOrigin:t.transformOrigin,rotation:this.getRotation()}},e.prototype.getManager=function(){return this},e.prototype.stopDrag=function(t){var e;t&&"target"!==t||(!1===(null==(e=this.targetGesto)?void 0:e.isIdle())&&unsetAbles(this,!1),null==e||e.stop());t&&"control"!==t||(!1===(null==(e=this.controlGesto)?void 0:e.isIdle())&&unsetAbles(this,!0),null==e||e.stop())},e.prototype.getRotation=function(){var t=this.state;return getAbsoluteRotation(t.pos1,t.pos2,t.direction)},e.prototype.request=function(t,e,r){void 0===e&&(e={});var i=this.props,n=i.ables,a=i.groupable,o=n.filter((function(e){return e.name===t}))[0];if(this.isDragging()||!o||!o.request)return{request:function(){return this},requestEnd:function(){return this}};var s=this,l=o.request(this),p=r||e.isInstant,c=l.isControl?"controlAbles":"targetAbles",h="".concat(a?"Group":"").concat(l.isControl?"Control":""),u={request:function(e){return triggerAble(s,c,["drag"],h,"",__assign$1(__assign$1({},l.request(e)),{requestAble:t,isRequest:!0}),p),this},requestEnd:function(){return triggerAble(s,c,["drag"],h,"End",__assign$1(__assign$1({},l.requestEnd()),{requestAble:t,isRequest:!0}),p),this}};return triggerAble(s,c,["drag"],h,"Start",__assign$1(__assign$1({},l.requestStart(e)),{requestAble:t,isRequest:!0}),p),p?u.request(e).requestEnd():u},e.prototype.destroy=function(){this.componentWillUnmount()},e.prototype.updateRenderPoses=function(){var t=this.getState(),e=this.props,r=e.padding,i=t.originalBeforeOrigin,n=t.transformOrigin,a=t.allMatrix,o=t.is3d,s=t.pos1,l=t.pos2,p=t.pos3,c=t.pos4,h=t.left,u=t.top,d=t.isPersisted;if(r){var f=getPaddingBox(r),g=f.left,m=f.top,v=f.bottom,y=f.right,b=o?4:3,_=multiplies(b,createOriginMatrix((d?n:this.controlBox&&e.groupable?i:plus(i,[h,u])).map((function(t){return-t})),b),a,createOriginMatrix(n,b));t.renderPoses=[calculatePadding(_,s,[-g,-m],b),calculatePadding(_,l,[y,-m],b),calculatePadding(_,p,[-g,v],b),calculatePadding(_,c,[y,v],b)]}else t.renderPoses=[s,l,p,c]},e.prototype.checkUpdate=function(){this._isPropTargetChanged=!1;var t=this.props,e=t.target,r=t.container,i=t.parentMoveable,n=this.state,a=n.target,o=n.container;if(a||e){this.updateAbles();var s=!equals(a,e);if(s||!equals(o,r)){var l=r||this.controlBox;l&&this.unsetAbles(),this.updateState({target:e,container:r}),!i&&l&&this.updateRect("End",!1,!1),this._isPropTargetChanged=s}}},e.prototype.waitToChangeTarget=function(){return new Promise((function(){}))},e.prototype.triggerEvent=function(t,e){this._emitter.trigger(t,e);var r=this.props[t];return r&&r(e)},e.prototype.useCSS=function(t,e){var r=this.props.customStyledMap,i=t+e;return r[i]||(r[i]=styled(t,e)),r[i]},e.prototype.getState=function(){var t,e=this.props;(e.target||(null===(t=e.targets)||void 0===t?void 0:t.length))&&(this._hasFirstTarget=!0);var r=this.controlBox,i=e.persistData,n=e.firstRenderState;if(n&&!r)return n;if(!this._hasFirstTarget&&i){var a=getPersistState(i);if(a)return this.updateState(a,!1),this.state}return this.state.isPersisted=!1,this.state},e.prototype.updateSelectors=function(){},e.prototype.unsetAbles=function(){var t=this;this.targetAbles.forEach((function(e){e.unset&&e.unset(t)}))},e.prototype.updateAbles=function(t,e){void 0===t&&(t=this.props.ables),void 0===e&&(e="");var r=this.props.triggerAblesSimultaneously,i=this.getEnabledAbles(t),n="drag".concat(e,"Start"),a="pinch".concat(e,"Start"),o="drag".concat(e,"ControlStart"),s=filterAbles(i,[n,a],r),l=filterAbles(i,[o],r);this.enabledAbles=i,this.targetAbles=s,this.controlAbles=l},e.prototype.updateState=function(t,e){if(e){if(this.isUnmounted)return;this.setState(t)}else{var r=this.state;for(var i in t)r[i]=t[i]}},e.prototype.getEnabledAbles=function(t){void 0===t&&(t=this.props.ables);var e=this.props;return t.filter((function(t){return t&&(t.always&&!1!==e[t.name]||e[t.name])}))},e.prototype.renderAbles=function(){var t=this,e=this.props.triggerAblesSimultaneously,r={createElement:createElement};return this.renderState={},groupByMap(flat(filterAbles(this.getEnabledAbles(),["render"],e).map((function(e){return(0,e.render)(t,r)||[]}))).filter((function(t){return t})),(function(t){return t.key})).map((function(t){return t[0]}))},e.prototype.updateCheckInput=function(){this.targetGesto&&(this.targetGesto.options.checkInput=this.props.checkInput)},e.prototype._getRequestStyles=function(){return this.getEnabledAbles().reduce((function(t,e){var r,i,n=null!==(i=null===(r=e.requestStyle)||void 0===r?void 0:r.call(e))&&void 0!==i?i:[];return __spreadArray(__spreadArray([],__read(t),!1),__read(n),!1)}),__spreadArray([],__read(this.props.requestStyles||[]),!1))},e.prototype._updateObserver=function(t){this._updateResizeObserver(t),this._updateMutationObserver(t)},e.prototype._updateEvents=function(){var t=this.controlBox,e=this.targetAbles.length,r=this.controlAbles.length,i=this._dragTarget;(!e&&this.targetGesto||this._isTargetChanged(!0))&&(unsetGesto(this,!1),this.updateState({gestos:{}})),r||unsetGesto(this,!0),i&&e&&!this.targetGesto&&(this.targetGesto=getTargetAbleGesto(this,i,"")),!this.controlGesto&&r&&(this.controlGesto=getAbleGesto(this,t,"controlAbles","Control"))},e.prototype._updateTargets=function(){var t=this.props;this._prevDragTarget=this._dragTarget,this._prevOriginalDragTarget=this._originalDragTarget,this._originalDragTarget=t.dragTarget||t.target,this._dragTarget=getRefTarget(this._originalDragTarget,!0),this._prevDragArea=t.dragArea},e.prototype._renderLines=function(){var t=this.props,e=t.zoom,r=t.hideDefaultLines,i=t.hideChildMoveableDefaultLines,n=t.parentMoveable;if(r||n&&i)return[];var a=this.getState().renderPoses,o={createElement:createElement};return[[0,1],[1,3],[3,2],[2,0]].map((function(t,r){var i=__read(t,2),n=i[0],s=i[1];return renderLine(o,"",a[n],a[s],e,"render-line-".concat(r))}))},e.prototype._isTargetChanged=function(t){var e=this.props,r=e.dragTarget||e.target,i=this._prevOriginalDragTarget,n=this._prevDragArea,a=e.dragArea;return!a&&i!==r||(t||a)&&n!==a},e.prototype._updateNativeEvents=function(){var t=this,e=this.props.dragArea?this.areaElement:this.state.target,r=this.events,i=getKeys(r);if(this._isTargetChanged())for(var n in r){var a=r[n];a&&a.destroy(),r[n]=null}if(e){var o=this.enabledAbles;i.forEach((function(i){var n=filterAbles(o,[i]),a=n.length>0,s=r[i];a?(s||(s=new EventManager(e,t,i),r[i]=s),s.setAbles(n)):s&&(s.destroy(),r[i]=null)}))}},e.prototype._checkUpdateRootContainer=function(){var t=this.props.rootContainer;!this._rootContainer&&t&&(this._rootContainer=getRefTarget(t,!0))},e.prototype._checkUpdateViewContainer=function(){var t=this.props.viewContainer;!this._viewContainer&&t&&(this._viewContainer=getRefTarget(t,!0)),this._viewContainer&&this._changeAbleViewClassNames(__spreadArray(__spreadArray([],__read(this._getAbleViewClassNames()),!1),[this.isDragging()?VIEW_DRAGGING:""],!1))},e.prototype._changeAbleViewClassNames=function(t){var e=this._viewContainer,r=groupBy(t.filter(Boolean),(function(t){return t})).map((function(t){return __read(t,1)[0]})),i=this._viewClassNames,n=diff$1(i,r),a=n.removed,o=n.added;a.forEach((function(t){removeClass(e,i[t])})),o.forEach((function(t){addClass(e,r[t])})),this._viewClassNames=r},e.prototype._getAbleViewClassNames=function(){var t=this;return(this.getEnabledAbles().map((function(e){var r;return(null===(r=e.viewClassName)||void 0===r?void 0:r.call(e,t))||""})).join(" ")+" ".concat(this._getAbleClassName("-view"))).split(/\s+/g)},e.prototype._getAbleClassName=function(t){var e=this;void 0===t&&(t="");var r=this.getEnabledAbles(),i=this.targetGesto,n=this.controlGesto,a=(null==i?void 0:i.isFlag())?i.getEventData():{},o=(null==n?void 0:n.isFlag())?n.getEventData():{};return r.map((function(r){var i,n,s,l=r.name,p=(null===(i=r.className)||void 0===i?void 0:i.call(r,e))||"";return((null===(n=a[l])||void 0===n?void 0:n.isEventStart)||(null===(s=o[l])||void 0===s?void 0:s.isEventStart))&&(p+=" ".concat(prefix("".concat(l).concat(t,"-dragging")))),p.trim()})).filter(Boolean).join(" ")},e.prototype._updateResizeObserver=function(t){var e,r=this.props,i=r.target,n=getWindow(this.getControlBoxElement());if(n.ResizeObserver&&i&&r.useResizeObserver){if(t.target!==i||!this._reiszeObserver){var a=new n.ResizeObserver(this.checkUpdateRect);a.observe(i,{box:"border-box"}),this._reiszeObserver=a}}else null===(e=this._reiszeObserver)||void 0===e||e.disconnect()},e.prototype._updateMutationObserver=function(t){var e,r=this,i=this.props,n=i.target,a=getWindow(this.getControlBoxElement());if(a.MutationObserver&&n&&i.useMutationObserver){if(t.target!==n||!this._mutationObserver){var o=new a.MutationObserver((function(t){var e,i;try{for(var n=__values(t),a=n.next();!a.done;a=n.next()){var o=a.value;"attributes"===o.type&&"style"===o.attributeName&&r.checkUpdateRect()}}catch(s){e={error:s}}finally{try{a&&!a.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}}));o.observe(n,{attributes:!0}),this._mutationObserver=o}}else null===(e=this._mutationObserver)||void 0===e||e.disconnect()},e.defaultProps={target:null,dragTarget:null,container:null,rootContainer:null,origin:!0,parentMoveable:null,wrapperMoveable:null,isWrapperMounted:!1,parentPosition:null,warpSelf:!1,svgOrigin:"",dragContainer:null,useResizeObserver:!1,useMutationObserver:!1,preventDefault:!0,linePadding:0,controlPadding:0,ables:[],pinchThreshold:20,dragArea:!1,passDragArea:!1,transformOrigin:"",className:"",zoom:1,triggerAblesSimultaneously:!1,padding:{},pinchOutside:!0,checkInput:!1,dragFocusedInput:!1,groupable:!1,hideDefaultLines:!1,cspNonce:"",translateZ:0,cssStyled:null,customStyledMap:{},props:{},stopPropagation:!1,preventClickDefault:!1,preventClickEventOnDrag:!0,flushSync:defaultSync,firstRenderState:null,persistData:null,viewContainer:null,requestStyles:[],useAccuratePosition:!1},e}(PureComponent),Groupable={name:"groupable",props:["defaultGroupRotate","useDefaultGroupRotate","defaultGroupOrigin","groupable","groupableProps","targetGroups","hideChildMoveableDefaultLines"],events:[],render:function(t,e){var r,i=t.props,n=i.targets||[],a=t.getState(),o=a.left,s=a.top,l=a.isPersisted,p=i.zoom||1,c=t.renderGroupRects,h=(null===(r=i.persistData)||void 0===r?void 0:r.children)||[];l?n=h.map((function(){return null})):h=[];var u=t._store,d=watchValue(u,"parentPosition",[o,s],(function(t){return t.join(",")})),f=watchValue(u,"requestStyles",t.getRequestChildStyles(),(function(t){return t.join(",")}));return t.moveables=t.moveables.slice(0,n.length),__spreadArray(__spreadArray([],__read(n.map((function(r,n){return e.createElement(MoveableManager$1,{key:"moveable"+n,ref:refs(t,"moveables",n),target:r,origin:!1,requestStyles:f,cssStyled:i.cssStyled,customStyledMap:i.customStyledMap,useResizeObserver:i.useResizeObserver,useMutationObserver:i.useMutationObserver,hideChildMoveableDefaultLines:i.hideChildMoveableDefaultLines,parentMoveable:t,parentPosition:[o,s],persistData:h[n],zoom:p})}))),!1),__read(flat(c.map((function(t,r){var i=[t.pos1,t.pos2,t.pos3,t.pos4];return[[0,1],[1,3],[3,2],[2,0]].map((function(t,n){var a=__read(t,2),o=a[0],s=a[1];return renderLine(e,"",minus$2(i[o],d),minus$2(i[s],d),p,"group-rect-".concat(r,"-").concat(n))}))})))),!1)}},Clickable=makeAble("clickable",{props:["clickable"],events:["click","clickGroup"],always:!0,dragRelation:"weak",dragStart:function(){},dragControlStart:function(){},dragGroupStart:function(t,e){e.datas.inputTarget=e.inputEvent&&e.inputEvent.target},dragEnd:function(t,e){var r=t.props.target,i=e.inputEvent,n=e.inputTarget,a=!t.isMoveableElement(n)&&t.controlBox.contains(n);if(i&&n&&!e.isDrag&&!t.isMoveableElement(n)&&!a){var o=r.contains(n);triggerEvent(t,"onClick",fillParams(t,e,{isDouble:e.isDouble,inputTarget:n,isTarget:r===n,moveableTarget:t.props.target,containsTarget:o}))}},dragGroupEnd:function(t,e){var r=e.inputEvent,i=e.inputTarget;if(r&&i&&!e.isDrag&&!t.isMoveableElement(i)&&e.datas.inputTarget!==i){var n=t.props.targets,a=n.indexOf(i),o=a>-1,s=!1;-1===a&&(s=(a=findIndex(n,(function(t){return t.contains(i)})))>-1),triggerEvent(t,"onClickGroup",fillParams(t,e,{isDouble:e.isDouble,targets:n,inputTarget:i,targetIndex:a,isTarget:o,containsTarget:s,moveableTarget:n[a]}))}},dragControlEnd:function(t,e){this.dragEnd(t,e)},dragGroupControlEnd:function(t,e){this.dragEnd(t,e)}});function getDraggableEvent(t){var e=t.originalDatas.draggable;return e||(t.originalDatas.draggable={},e=t.originalDatas.draggable),__assign$1(__assign$1({},t),{datas:e})}var edgeDraggable=makeAble("edgeDraggable",{css:[".edge.edgeDraggable.line {\ncursor: move;\n}"],render:function(t,e){var r=t.props,i=r.edgeDraggable;return i?renderEdgeLines(e,"edgeDraggable",i,t.getState().renderPoses,r.zoom):[]},dragCondition:function(t,e){var r,i=t.props,n=null===(r=e.inputEvent)||void 0===r?void 0:r.target;return!(!i.edgeDraggable||!n)&&(!i.draggable&&hasClass(n,prefix("direction"))&&hasClass(n,prefix("edge"))&&hasClass(n,prefix("edgeDraggable")))},dragStart:function(t,e){return Draggable.dragStart(t,getDraggableEvent(e))},drag:function(t,e){return Draggable.drag(t,getDraggableEvent(e))},dragEnd:function(t,e){return Draggable.dragEnd(t,getDraggableEvent(e))},dragGroupCondition:function(t,e){var r,i=t.props,n=null===(r=e.inputEvent)||void 0===r?void 0:r.target;return!(!i.edgeDraggable||!n)&&(!i.draggable&&hasClass(n,prefix("direction"))&&hasClass(n,prefix("line")))},dragGroupStart:function(t,e){return Draggable.dragGroupStart(t,getDraggableEvent(e))},dragGroup:function(t,e){return Draggable.dragGroup(t,getDraggableEvent(e))},dragGroupEnd:function(t,e){return Draggable.dragGroupEnd(t,getDraggableEvent(e))},unset:function(t){return Draggable.unset(t)}}),IndividualGroupable={name:"individualGroupable",props:["individualGroupable","individualGroupableProps"],events:[]},MOVEABLE_ABLES=[BeforeRenderable,Default,Snappable,Pinchable,Draggable,edgeDraggable,Resizable,Scalable,Warpable,Rotatable,Scrollable,Padding,Origin,OriginDraggable,Clippable,Roundable,Groupable,IndividualGroupable,Clickable,DragArea,Renderable],MOVEABLE_EVENTS=MOVEABLE_ABLES.reduce((function(t,e){return(e.events||[]).forEach((function(e){pushSet(t,e)})),t}),[]),MOVEABLE_PROPS=MOVEABLE_ABLES.reduce((function(t,e){return(e.props||[]).forEach((function(e){pushSet(t,e)})),t}),[]);function solveConstantsDistance(t,e){var r=__read(t,3),i=r[0],n=r[1],a=r[2];return(i*e[0]+n*e[1]+a)/Math.sqrt(i*i+n*n)}function solveC(t,e){var r=__read(t,2),i=r[0],n=r[1];return-i*e[0]-n*e[1]}function getMaxPos(t,e){return Math.max.apply(Math,__spreadArray([],__read(t.map((function(t){var r=__read(t,4),i=r[0],n=r[1],a=r[2],o=r[3];return Math.max(i[e],n[e],a[e],o[e])}))),!1))}function getMinPos(t,e){return Math.min.apply(Math,__spreadArray([],__read(t.map((function(t){var r=__read(t,4),i=r[0],n=r[1],a=r[2],o=r[3];return Math.min(i[e],n[e],a[e],o[e])}))),!1))}function getGroupRect(t,e){var r,i,n,a=[0,0],o=[0,0],s=[0,0],l=[0,0],p=0,c=0;if(!t.length)return{pos1:a,pos2:o,pos3:s,pos4:l,minX:0,minY:0,maxX:0,maxY:0,width:p,height:c,rotation:e};var h=throttle(e,TINY_NUM);if(h%90){var u=h/180*Math.PI,d=Math.tan(u),f=-1/d,g=[MAX_NUM,MIN_NUM],m=[[0,0],[0,0]],v=[MAX_NUM,MIN_NUM],y=[[0,0],[0,0]];t.forEach((function(t){t.forEach((function(t){var e=solveConstantsDistance([-d,1,0],t),r=solveConstantsDistance([-f,1,0],t);g[0]>e&&(m[0]=t,g[0]=e),g[1]<e&&(m[1]=t,g[1]=e),v[0]>r&&(y[0]=t,v[0]=r),v[1]<r&&(y[1]=t,v[1]=r)}))}));var b=__read(m,2),_=b[0],x=b[1],S=__read(y,2),w=S[0],A=S[1],E=[-d,1,solveC([-d,1],_)],C=[-d,1,solveC([-d,1],x)],P=[-f,1,solveC([-f,1],w)],T=[-f,1,solveC([-f,1],A)];r=__read([[E,P],[E,T],[C,P],[C,T]].map((function(t){var e=__read(t,2);return getIntersectionPointsByConstants(e[0],e[1])[0]})),4),a=r[0],o=r[1],s=r[2],l=r[3],p=v[1]-v[0],c=g[1]-g[0]}else{var D=getMinPos(t,0),M=getMinPos(t,1),k=getMaxPos(t,0),I=getMaxPos(t,1);if(a=[D,M],o=[k,M],s=[D,I],l=[k,I],p=k-D,c=I-M,h%180)a=(i=__read([s,a,l,o],4))[0],o=i[1],s=i[2],l=i[3],p=I-M,c=k-D}h%360>180&&(a=(n=__read([l,s,o,a],4))[0],o=n[1],s=n[2],l=n[3]);var R=getMinMaxs([a,o,s,l]);return{pos1:a,pos2:o,pos3:s,pos4:l,width:p,height:c,minX:R.minX,minY:R.minY,maxX:R.maxX,maxY:R.maxY,rotation:e}}function findMoveableGroups(t,e){var r=e.map((function(e){if(isArray$2(e)){var r=findMoveableGroups(t,e),i=r.length;return i>1?r:1===i?r[0]:null}var n=find$1(t,(function(t){return t.manager.props.target===e}));return n?(n.finded=!0,n.manager):null})).filter(Boolean);return 1===r.length&&isArray$2(r[0])?r[0]:r}var MoveableGroup=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.differ=new ChildrenDiffer$1,e.moveables=[],e.transformOrigin="50% 50%",e.renderGroupRects=[],e._targetGroups=[],e._hasFirstTargets=!1,e}return __extends$1(e,t),e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this)},e.prototype.checkUpdate=function(){this._isPropTargetChanged=!1,this.updateAbles()},e.prototype.getTargets=function(){return this.props.targets},e.prototype.updateRect=function(t,e,r){var i;void 0===r&&(r=!0);var n=this.state;if(this.controlBox&&!n.isPersisted){setStoreCache(!0),this.moveables.forEach((function(e){e.updateRect(t,!1,!1)}));var a=this.props,o=this.moveables,s=n.target||a.target,l=o.map((function(t){return{finded:!1,manager:t}})),p=this.props.targetGroups||[],c=findMoveableGroups(l,p),h=a.useDefaultGroupRotate;c.push.apply(c,__spreadArray([],__read(l.filter((function(t){return!t.finded})).map((function(t){return t.manager}))),!1));var u=[],d=!e||""!==t&&a.updateGroup,f=a.defaultGroupRotate||0;if(!this._hasFirstTargets){var g=null===(i=a.persistData)||void 0===i?void 0:i.rotation;null!=g&&(f=g)}var m=function t(e,r,i){var n=e.map((function(e){if(isArray$2(e)){var i=t(e,r),n=[i.pos1,i.pos2,i.pos3,i.pos4];return u.push(i),{poses:n,rotation:i.rotation}}return{poses:getAbsolutePosesByState(e.state),rotation:e.getRotation()}})),a=n.map((function(t){return t.rotation})),o=0,s=a[0],l=a.every((function(t){return Math.abs(s-t)<.1}));o=d?!h&&l?s:f:h||i||!l?r:s;var p=n.map((function(t){return t.poses}));return getGroupRect(p,o)}(c,this.rotation,!0);d&&(this.rotation=m.rotation,this.transformOrigin=a.defaultGroupOrigin||"50% 50%",this.scale=[1,1]),this._targetGroups=p,this.renderGroupRects=u;var v=this.transformOrigin,y=this.rotation,b=this.scale,_=m.width,x=m.height,S=m.minX,w=m.minY,A=getMinMaxs(rotatePosesInfo([[0,0],[_,0],[0,x],[_,x]],convertTransformOriginArray(v,_,x),this.rotation/180*Math.PI).result),E=A.minX,C=A.minY,P=" rotate(".concat(y,"deg)")+" scale(".concat(sign(b[0]),", ").concat(sign(b[1]),")"),T="translate(".concat(-E,"px, ").concat(-C,"px)").concat(P);this.controlBox.style.transform="translate3d(".concat(S,"px, ").concat(w,"px, ").concat(this.props.translateZ||0,")"),s.style.cssText+="left:0px;top:0px;"+"transform-origin:".concat(v,";")+"width:".concat(_,"px;height:").concat(x,"px;")+"transform: ".concat(T),n.width=_,n.height=x;var D=this.getContainer(),M=getMoveableTargetInfo(this.controlBox,s,this.controlBox,this.getContainer(),this._rootContainer||D,[]),k=[M.left,M.top],I=__read(getAbsolutePosesByState(M),4),R=I[0],F=I[1],B=I[2],N=I[3],O=getMinMaxs([R,F,B,N]),V=[O.minX,O.minY],z=sign(b[0]*b[1]);M.pos1=minus$2(R,V),M.pos2=minus$2(F,V),M.pos3=minus$2(B,V),M.pos4=minus$2(N,V),M.left=S-M.left+V[0],M.top=w-M.top+V[1],M.origin=minus$2(plus(k,M.origin),V),M.beforeOrigin=minus$2(plus(k,M.beforeOrigin),V),M.originalBeforeOrigin=plus(k,M.originalBeforeOrigin),M.transformOrigin=minus$2(plus(k,M.transformOrigin),V),s.style.transform="translate(".concat(-E-V[0],"px, ").concat(-C-V[1],"px)")+P,setStoreCache(),this.updateState(__assign$1(__assign$1({},M),{posDelta:V,direction:z,beforeDirection:z}),r)}},e.prototype.getRect=function(){return __assign$1(__assign$1({},t.prototype.getRect.call(this)),{children:this.moveables.map((function(t){return t.getRect()}))})},e.prototype.triggerEvent=function(e,r,i){if(i||e.indexOf("Group")>-1)return t.prototype.triggerEvent.call(this,e,r);this._emitter.trigger(e,r)},e.prototype.getRequestChildStyles=function(){return this.getEnabledAbles().reduce((function(t,e){var r,i,n=null!==(i=null===(r=e.requestChildStyle)||void 0===r?void 0:r.call(e))&&void 0!==i?i:[];return __spreadArray(__spreadArray([],__read(t),!1),__read(n),!1)}),[])},e.prototype.updateAbles=function(){t.prototype.updateAbles.call(this,__spreadArray(__spreadArray([],__read(this.props.ables),!1),[Groupable],!1),"Group")},e.prototype._updateTargets=function(){t.prototype._updateTargets.call(this),this._originalDragTarget=this.props.dragTarget||this.areaElement,this._dragTarget=getRefTarget(this._originalDragTarget,!0)},e.prototype._updateEvents=function(){var t=this.state,e=this.props,r=this._prevDragTarget,i=e.dragTarget||this.areaElement,n=e.targets,a=this.differ.update(n),o=a.added,s=a.changed,l=a.removed,p=o.length||l.length;(p||r!==i)&&(unsetGesto(this,!1),unsetGesto(this,!0),this.updateState({gestos:{}})),r!==i&&(t.target=null),t.target||(t.target=this.areaElement,this.controlBox.style.display="block"),t.target&&(this.targetGesto||(this.targetGesto=getTargetAbleGesto(this,this._dragTarget,"Group")),this.controlGesto||(this.controlGesto=getAbleGesto(this,this.controlBox,"controlAbles","GroupControl")));var c=!equals(t.container,e.container);c&&(t.container=e.container),(c||p||this.transformOrigin!==(e.defaultGroupOrigin||"50% 50%")||s.length||n.length&&!isDeepArrayEquals(this._targetGroups,e.targetGroups||[]))&&(this.updateRect(),this._hasFirstTargets=!0),this._isPropTargetChanged=!!p},e.prototype._updateObserver=function(){},e.defaultProps=__assign$1(__assign$1({},MoveableManager$1.defaultProps),{transformOrigin:["50%","50%"],groupable:!0,dragArea:!0,keepRatio:!0,targets:[],defaultGroupRotate:0,defaultGroupOrigin:"50% 50%"}),e}(MoveableManager$1),MoveableIndividualGroup=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.moveables=[],e}return __extends$1(e,t),e.prototype.render=function(){var t,e=this,r=this.props,i=r.cspNonce,n=r.cssStyled,a=r.persistData,o=r.targets||[],s=o.length,l=this.isUnmounted||!s,p=null!==(t=null==a?void 0:a.children)&&void 0!==t?t:[];return l&&!s&&p.length?o=p.map((function(){return null})):l||(p=[]),createElement(n,{cspNonce:i,ref:ref(this,"controlBox"),className:prefix("control-box")},o.map((function(t,i){var n,a,o=null!==(a=null===(n=r.individualGroupableProps)||void 0===n?void 0:n.call(r,t,i))&&void 0!==a?a:{};return createElement(MoveableManager$1,__assign$1({key:"moveable"+i,ref:refs(e,"moveables",i)},r,o,{target:t,wrapperMoveable:e,isWrapperMounted:e.isMoveableMounted,persistData:p[i]}))})))},e.prototype.componentDidMount=function(){},e.prototype.componentDidUpdate=function(){},e.prototype.getTargets=function(){return this.props.targets},e.prototype.updateRect=function(t,e,r){void 0===r&&(r=!0),setStoreCache(!0),this.moveables.forEach((function(i){i.updateRect(t,e,r)})),setStoreCache()},e.prototype.getRect=function(){return __assign$1(__assign$1({},t.prototype.getRect.call(this)),{children:this.moveables.map((function(t){return t.getRect()}))})},e.prototype.request=function(){return{request:function(){return this},requestEnd:function(){return this}}},e.prototype.dragStart=function(){return this},e.prototype.hitTest=function(){return 0},e.prototype.isInside=function(){return!1},e.prototype.isDragging=function(){return!1},e.prototype.updateRenderPoses=function(){},e.prototype.checkUpdate=function(){},e.prototype.triggerEvent=function(){},e.prototype.updateAbles=function(){},e.prototype._updateEvents=function(){},e.prototype._updateObserver=function(){},e}(MoveableManager$1);function getElementTargets(t,e){var r=[];return t.forEach((function(t){t&&(isString(t)?e[t]&&r.push.apply(r,__spreadArray([],__read(e[t]),!1)):isArray$2(t)?r.push.apply(r,__spreadArray([],__read(getElementTargets(t,e)),!1)):r.push(t))})),r}function getTargetGroups(t,e){var r=[];return t.forEach((function(t){t&&(isString(t)?e[t]&&r.push.apply(r,__spreadArray([],__read(e[t]),!1)):isArray$2(t)?r.push(getTargetGroups(t,e)):r.push(t))})),r}function compareRefTargets(t,e){return t.length!==e.length||t.some((function(t,r){var i=e[r];return!(!t&&!i)&&(t!=i&&(!isArray$2(t)||!isArray$2(i)||compareRefTargets(t,i)))}))}var InitialMoveable=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.refTargets=[],e.selectorMap={},e._differ=new ChildrenDiffer$1,e._elementTargets=[],e._onChangeTargets=null,e}return __extends$1(e,t),e.makeStyled=function(){var t={};this.getTotalAbles().forEach((function(e){var r=e.css;r&&r.forEach((function(e){t[e]=!0}))}));var e=getKeys(t).join("\n");this.defaultStyled=styled("div",prefixCSS(PREFIX,MOVEABLE_CSS+e))},e.getTotalAbles=function(){return __spreadArray([Default,Groupable,IndividualGroupable,DragArea],__read(this.defaultAbles),!1)},e.prototype.render=function(){var t,e=this.constructor;e.defaultStyled||e.makeStyled();var r=this.props,i=r.ables,n=r.props,a=__rest(r,["ables","props"]),o=this._updateRefs(!0),s=getElementTargets(o,this.selectorMap),l=s.length>1,p=__spreadArray(__spreadArray([],__read(e.getTotalAbles()),!1),__read(i||[]),!1),c=__assign$1(__assign$1(__assign$1({},a),n||{}),{ables:p,cssStyled:e.defaultStyled,customStyledMap:e.customStyledMap});this._elementTargets=s;var h=null,u=this.moveable,d=a.persistData;if((null==d?void 0:d.children)&&(l=!0),a.individualGroupable)return createElement(MoveableIndividualGroup,__assign$1({key:"individual-group",ref:ref(this,"moveable")},c,{target:null,targets:s}));if(l){var f=getTargetGroups(o,this.selectorMap);if(u&&!u.props.groupable&&!u.props.individualGroupable){var g=u.props.target;g&&s.indexOf(g)>-1&&(h=__assign$1({},u.state))}return createElement(MoveableGroup,__assign$1({key:"group",ref:ref(this,"moveable")},c,null!==(t=a.groupableProps)&&void 0!==t?t:{},{target:null,targets:s,targetGroups:f,firstRenderState:h}))}var m=s[0];if(u&&(u.props.groupable||u.props.individualGroupable)){var v=find$1(u.moveables||[],(function(t){return t.props.target===m}));v&&(h=__assign$1({},v.state))}return createElement(MoveableManager$1,__assign$1({key:"single",ref:ref(this,"moveable")},c,{target:m,firstRenderState:h}))},e.prototype.componentDidMount=function(){this._checkChangeTargets(),this._updateRefs()},e.prototype.componentDidUpdate=function(){this._checkChangeTargets()},e.prototype.componentWillUnmount=function(){this.selectorMap={},this.refTargets=[]},e.prototype.getTargets=function(){var t,e;return null!==(e=null===(t=this.moveable)||void 0===t?void 0:t.getTargets())&&void 0!==e?e:[]},e.prototype.updateSelectors=function(){this.selectorMap={},this._updateRefs()},e.prototype.waitToChangeTarget=function(){var t,e=this;return this._onChangeTargets=function(){e._onChangeTargets=null,t()},new Promise((function(e){t=e}))},e.prototype.waitToChangeTargets=function(){return this.waitToChangeTarget()},e.prototype.getManager=function(){return this.moveable},e.prototype._updateRefs=function(t){var e=this.refTargets,r=getRefTargets(this.props.target||this.props.targets),i="undefined"!=typeof document,n=compareRefTargets(e,r),a=this.selectorMap,o={};return this.refTargets.forEach((function t(e){isString(e)?a[e]?o[e]=a[e]:i&&(n=!0,o[e]=[].slice.call(document.querySelectorAll(e))):isArray$2(e)&&e.forEach(t)})),this.refTargets=r,this.selectorMap=o,!t&&n&&this.forceUpdate(),r},e.prototype._checkChangeTargets=function(){var t,e,r,i=this._differ.update(this._elementTargets),n=i.added,a=i.removed;(n.length||a.length)&&(null===(e=(t=this.props).onChangeTargets)||void 0===e||e.call(t,{moveable:this.moveable,targets:this._elementTargets}),null===(r=this._onChangeTargets)||void 0===r||r.call(this)),this._updateRefs()},e.defaultAbles=[],e.customStyledMap={},e.defaultStyled=null,__decorate$1([withMethods(MOVEABLE_METHODS)],e.prototype,"moveable",void 0),e}(PureComponent),Moveable$1=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends$1(e,t),e.defaultAbles=MOVEABLE_ABLES,e}(InitialMoveable),extendStatics=function(t,e){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},extendStatics(t,e)};function __extends(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}extendStatics(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var __assign=function(){return __assign=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},__assign.apply(this,arguments)};function __decorate(t,e,r,i){var n,a=arguments.length,o=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(o=(a<3?n(o):a>3?n(e,r,o):n(e,r))||o);return a>3&&o&&Object.defineProperty(e,r,o),o}var InnerMoveable=function(t){function e(e){var r=t.call(this,e)||this;return r.state={},r.state=r.props,r}return __extends(e,t),e.prototype.render=function(){return createElement(Moveable$1,__assign({ref:ref(this,"moveable")},this.state))},e}(Component),PROPERTIES=MOVEABLE_PROPS,METHODS=MOVEABLE_METHODS,EVENTS=MOVEABLE_EVENTS,MoveableManager=function(t){function e(e,r){void 0===r&&(r={});var i=t.call(this)||this;i.containerProvider=null,i.selfElement=null,i._warp=!1;var n,a=__assign({},r),o={};EVENTS.forEach((function(t){o[camelize("on ".concat(t))]=function(e){return i.trigger(t,e)}})),r.warpSelf?(delete r.warpSelf,i._warp=!0,n=e):(n=getDocument(e).createElement("div"),e.appendChild(n)),i.containerProvider=renderSelf(createElement(InnerMoveable,__assign({ref:ref(i,"innerMoveable")},a,o)),n),i.selfElement=n;var s=a.target;return isArray$2(s)&&s.length>1&&i.updateRect(),i}__extends(e,t);var r=e.prototype;return r.setState=function(t,e){this.innerMoveable.setState(t,e)},r.forceUpdate=function(t){this.innerMoveable.forceUpdate(t)},r.dragStart=function(t){this.innerMoveable.$_timer&&this.forceUpdate(),this.getMoveable().dragStart(t)},r.destroy=function(){var t,e=this.selfElement;renderSelf(null,e,this.containerProvider),this._warp||null===(t=null==e?void 0:e.parentElement)||void 0===t||t.removeChild(e),this.containerProvider=null,this.off(),this.selfElement=null,this.innerMoveable=null},r.getMoveable=function(){return this.innerMoveable.moveable},e=__decorate([Properties(METHODS,(function(t,e){t[e]||(t[e]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=this.getMoveable();if(i&&i[e])return i[e].apply(i,t)})})),Properties(PROPERTIES,(function(t,e){Object.defineProperty(t,e,{get:function(){return this.getMoveable().props[e]},set:function(t){var r;this.setState(((r={})[e]=t,r))},enumerable:!0,configurable:!0})}))],e),e}(EventEmitter$1),Moveable=exports("M",function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(MoveableManager));const toolbox=exports("a",""+new URL("toolbox-b154b72c.png",module.meta.url).href),setTimeIcon=exports("s",""+new URL("setTimeIcon-7c3b5a37.png",module.meta.url).href),beatIcon=exports("b",""+new URL("beatIcon-902ff81a.png",module.meta.url).href),toneIcon=exports("t",""+new URL("toneIcon-f58dd6e3.png",module.meta.url).href),iconNote$1=exports("i","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAABF1BMVEUAAAD/6uf/6eb/6+f/////6eb/6uf/6uf/6uf/6uf/6eb/6ub/6ub/6+b/6+j/7Oj/7Oz/8PD/6eb/////UHT/WHr/H03/VHf/epX/Q2n/R2z/Wnz/Sm//cY7/bYv/Unb/I1D/MFv/fZf/Nl//LVj/Xn//hZ7/OmL/b43/M13+aYj/XH7/c5D/dZL/TXL/Z4b/d5P/P2f/gpz+YIH/Vnn/K1f/f5n/ZIT+YoL/JVL/PmX/J1T+TXL/KlX/aoj/bIr/RWv/ZoX/SW7/QGj+NF7/PGT/YoL/OGH/jaP/YIH+MFv/5OP/1tr/m67/l6v/3+L/xs7/tsH/iKD/sL3/ztP/n7H/9/n/29z/u8T/k6f/7/L/qLj/vclSN3bHAAAAEnRSTlMA6PheCfXy28u3r498Zk43GxFW1ZYLAAAGe0lEQVRo3rTUzUrDUBCG4ZmTk/80P98iFBQJWQqt0kXBpW4M2KakVLR4//ehhprSxpKDZp4beBfDN9Sj49B3WeEPFLt+GGsakFmBjX+yAyujy3TkYBROpOmCCWM0PKHfpB5G5aXUkzBGxgmdsRRGp6yzBkScVBIFESqhTsoQwsfrexDjdfuAoMNeNEMQ6zYSQVTU/kQHopxMZiL9sQQQFhBpG8JsTTHExRRCXEg+TL3smo+62i4W26rer5sNTPnkwsjmvV6WZbn8dvP0kOd5Ma9WMOISw8BuXU7Lg7vn/Edx1cAAkzJI7Ked2zZxNDfIKMKQt9fZfesrMbsuiiI/9bjCkMHIJ+l0t50mEIVh+B4EFoJEYpX4j6Vqo4iA4l/UKNGYNDb3fx39ZjMYVpMDMC9LPfNxz2zDfJv6iaezHg5vqaTUP34XObbi2m15PBqNhug/6Hb1LWTzeFO7iWq11H5/DAZ9ctzN9cj+UGMRVFMqlX6fOcl5YkjbXotsDkVerVa01qUKIihymHRhzM2VyM51Xc/zil6x6Kn1eqlUWlcgfT2Qex1ybLgNyvVcczaroxKKJiKGoNhZXYOEHYohDamMuEMlD44gdMyOvHqT+0mnM2FQt1qtLssXaI1pvnBK28zI2+CemiBlDgXOkjG2Ok8MxB2C3KxIuBggvMHSbXseMeru+UUQhHOYL5OT3Dj0lBH53X3AM+jCMRTLstG8uoPA20v8ihInN+5lQ0IDdQ043QdHCQIL2e9CopfFrAwGxQMB+pMJuWsiw2gaePkKCoLgJFDnHP8McEEfEM2zyIK8NguoWWCUqPo+cwoC6yTadrA6C+hxiU1gfZxbfZsB+SuhQtRURYCOAloFFusHXUsVcWjGd3uXAcn3pDhd06aaCmmD783R0VmBtWeKNU+uNjFGemQjybLcQ7BEx9FYuoCOmEhh0Q6IWLmkA2m5T42867IOBpAsi45pOqamDega6OB8jmC1iSGHH9tTauSks0jSRRYYaYUW02l0RTkYuXi1uUTQW2rkIPLIihzHgYSJNObsBBQqrMAKkgPlUyM10YkZnNnFARM5bfrn3/gqMdFANknVRWrEcEw8jgOr15MpODFk/iLjma92AgIjpkZ6+LUmAiMhbBl3SDoIrK1MJxdB/sXRUiOmxjN1/BuJ4Q6gO5ojFB26IEDExI6fGvnXq93upg1DYQDWbsFbBm2BQUApH4GysAJp1QRWUNH4hjJg7P6vY6/P8XCj/agzJL/lL304tnGM7RzeiE+Jf5JpNMAw5BBUJWMtGw7JIXAIoqa7NkY+XVMgZeQkSZCjGm5GBipSIw5/5KgeMu8TZ3A1QPAuB3M9ZmLtFGjWQklvhtzfiiRzY4wMr1QGDp6OcDrSIYjm+yN30Nmhsc0NFxkj7jNCitPrgyGIC6K5uK5GnHZ48gHkGSOLrxRIzt0QiwnJdDoE0aSle0h/hRhq7YyRw4OMdL5hQTQcSghO/9xuNOTYSVbU+m2MLPGkeBhLKBNhbQdHFcQVqRHHEMIOfVczU2NE9DDVjWVacVxH4CgoWH78daKWY0g7BDWFOYLH9y3lCmvtOEY5eEmoSk/3XR8MDQR2NHNKgezlqvTlFlIVvxqQKCLobsHzVg9DTkO6HmdvjCDRqMzp5RUTU8MpBA0HBi89FAgKRBrkMBox4/h5hKG4EPm8GOIhx9JbZ5UKEY0aMqqNBk2fmTwXFMx+ihONBHb4K4QR14HjinTIoVTCOqpWK+ebCEO65SIw6CFEDW10EHpolRIRVf4V8qPRbjfZ8XVBMTl17fTk+n8i0iKzl0qphNdzNttGtKN7SELSUlC8T42IbYVTyMqw40vHZ0Y1XASHmOFKpEfE8V6m8t1FFKQlXRAgqmcr0iNI9Unm3ncpzCDE/OMs/nezIPP4CCXXRdjREEvkELSZpkc4+y9hiB+ccRB0ZZLtlnA2yws2cOIQKQdI0kEYYmZ+wQYOMgmLYZjxvCABZd1Ew60v3VTbVorFMPYQBemCFOSuxKWImA2LxSeXlKSjoN1evBeTjc5163O5653DjIIWrwYbnWZbtuubcUBAsqBgB+L9fDDdfJ7N5xsv4Xjzw9Jw8znVNvrhND9ONpvJcX46vE7Nt9GtHAhYOdqwckhj47jJysGZlSNAG4eZVo5lbRww2zgqt3Lob+P6go2LGDaulNi4HGPjmo+FC0s2rl5Zv0Rm5TrcH7lNubIoVSvAAAAAAElFTkSuQmCC"),timerWrap="_timerWrap_1ilvi_1",timerTop="_timerTop_1ilvi_8",timerTopPane="_timerTopPane_1ilvi_19",timerTopPaneActive="_timerTopPaneActive_1ilvi_25",timerItemInfo="_timerItemInfo_1ilvi_30",timerItemInset="_timerItemInset_1ilvi_38",timerItemInfoTop="_timerItemInfoTop_1ilvi_43",dot="_dot_1ilvi_50",dotTop="_dotTop_1ilvi_58",timerItemTopCore="_timerItemTopCore_1ilvi_62",nowTimerWrap="_nowTimerWrap_1ilvi_74",btnGroupModal$1="_btnGroupModal_1ilvi_86",palyIcon="_palyIcon_1ilvi_93",playText="_playText_1ilvi_97",countInput="_countInput_1ilvi_100",dotBtm="_dotBtm_1ilvi_120",chioseWrap="_chioseWrap_1ilvi_124",add$1="_add_1ilvi_144",minus$1="_minus_1ilvi_149",chioseHidden="_chioseHidden_1ilvi_154",numberWrap="_numberWrap_1ilvi_157",styles$7={timerWrap:timerWrap,timerTop:timerTop,timerTopPane:timerTopPane,timerTopPaneActive:timerTopPaneActive,timerItemInfo:timerItemInfo,timerItemInset:timerItemInset,timerItemInfoTop:timerItemInfoTop,dot:dot,dotTop:dotTop,timerItemTopCore:timerItemTopCore,nowTimerWrap:nowTimerWrap,btnGroupModal:btnGroupModal$1,palyIcon:palyIcon,playText:playText,countInput:countInput,dotBtm:dotBtm,chioseWrap:chioseWrap,add:add$1,minus:minus$1,chioseHidden:chioseHidden,numberWrap:numberWrap},flipper_vue_vue_type_style_index_0_lang="",_export_sfc$1=(t,e)=>{const r=t.__vccOpts||t;for(const[i,n]of e)r[i]=n;return r},_sfc_main$1={name:"FlipClock",data:()=>({isFlipping:!1,flipType:"down",frontTextFromData:0,backTextFromData:1}),props:{frontText:{type:[Number,String],default:0},backText:{type:[Number,String],default:1},duration:{type:Number,default:600}},methods:{_textClass:t=>"number"+t,_flip(t,e,r){console.log(t,e,r,"=====>"),this.frontTextFromData=e,this.backTextFromData=r,this.flipType=t,this.isFlipping=!0,setTimeout((()=>{this.isFlipping=!1,this.frontTextFromData=r}),this.duration)},flipDown(t,e){this._flip("down",t,e)},flipUp(t,e){this._flip("up",t,e)},setFront(t){this.frontTextFromData=t},setBack(t){this.backTextFromData=t}},created(){this.frontTextFromData=this.frontText,this.backTextFromData=this.backText}};function _sfc_render$1(t,e,r,i,n,a){return openBlock(),createElementBlock("div",{class:normalizeClass(["M-Flipper",[n.flipType,{go:n.isFlipping}]])},[createBaseVNode("div",{class:normalizeClass(["digital front",a._textClass(n.frontTextFromData)])},null,2),createBaseVNode("div",{class:normalizeClass(["digital back",a._textClass(n.backTextFromData)])},null,2)],2)}const Flipper=_export_sfc$1(_sfc_main$1,[["render",_sfc_render$1]]),playIcon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAcCAYAAABlL09dAAAAAXNSR0IArs4c6QAAAR1JREFUSEvV1rFOwlAYxfH/eQx2VgcfBJ+AOMqCE5uB6OITyAPwCPogKBMOOhITQuLkaq45iU1KKL2X9nbgWzq0/X03/dpzKzoqhRAE3AAD4BNYSFq17Wf4HngoQb/AEzCT9NO0geEvoFcBbICxpJcmuOEQufEZuJXkRsmVAhvzI5kCc0l+VNFKhQtoCYwk+Vhbp8LGkobbBC5WWjvcNnDRoHK4OeDK4eaCy8O9lrTODbvBN3DRBWx8clbwDrjMveJXYCjpPRfsLJk5bossyQE7Vh2ve+nXBjbkOPWXd1BNYIfQ3DFat8OcCmePzYPh5MjjyuGkwB9A/8hmenQ4KfAd8Fi6MGmHiMK+IIQwAq6A7f9L/ha7MXbef0Gd1B+5cJ8q7osJlgAAAABJRU5ErkJggg==",suspend="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAcCAYAAAB75n/uAAAAAXNSR0IArs4c6QAAAMlJREFUSEvtlj0OwUEQxX+voXARtZBwAgWVA2hVOgfQ6FQ0DkLCBSioxRncgObJikr+X4msaqfaZF/ey8zO7BsRORT4bQ+AOdAEbuEsaVdV23YDWAAjoA4cgJmkuz7k2wyyYVUR23ug/8VxBVpB4Ay0MwQukjplWdjuAccc3DgIPIBaBuApKaRbGLYnwCYHtAwCzmOQ9H6jorA9BVY5mHUSCC2eSpS6KA1amoP0m/7FD6Jb5q+m3wVORaYfdqJ4a0v0xausz3+9fwE+w+v3NO9E8gAAAABJRU5ErkJggg==",add="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAJhJREFUWEftlzEOQEAURPffgwOhRkPrUFoa1NaBuMeXLyTqsQmS2X7mT95uMvvFgaeffOLUtYdcXFPl6YJYCSIyTT/6VVWjY77IVhVpjHjBAbph1vvAuswgL0hkgxmABEiABEggGIGr1a5iQQoF0ViBWYvKvdUQoycaC/GBAOfH4rUrQBEGe4QMQAIkQAIk8FsCry+nodbzHQqVmosCTFkgAAAAAElFTkSuQmCC",minus="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAECAYAAADvRz3UAAAAAXNSR0IArs4c6QAAADNJREFUKFNjXLJ6myfDf4ZZ////l2GgI2BkZHzCwMiQxrhk1bbH9LYc5k+QIwaBAwY4CgCYmB5vQGvODAAAAABJRU5ErkJggg==",soundWav=""+new URL("timer-ee5a21d4.wav",module.meta.url).href,Countdown=defineComponent({name:"timer-countdown",setup(){ref$1("positive"),useRoute();const t=ref$1(),e=ref$1(),r=ref$1(),i=ref$1(),n=ref$1(null),a=ref$1(null),o=ref$1(new Date);a.value=setInterval((()=>{o.value=new Date}),1e3);const s=ref$1(0),l=ref$1(0),p=ref$1(0),c=ref$1(!1),h=ref$1([t,e,r,i]),u=()=>{l.value=0,p.value=0;for(let t=0;t<h.value.length;t++)h.value[t].value.setFront("0000"[t])},d=new Audio(soundWav),f=()=>{c.value=!1,d.currentTime=0,d.pause(),n.value&&(clearInterval(n.value),n.value=null)},g=()=>{f(),s.value=0,d.currentTime=0,d.pause(),setTimeout((()=>{u()}),600)};onMounted((()=>{nextTick((()=>{u()}))})),onUnmounted((()=>{d.pause()}));const m=t=>{const e=getSecond(s.value);s.value+=t,s.value>3599?s.value=3599:s.value;const r=getSecond(s.value);for(let i=0;i<h.value.length;i++)e[i]!==r[i]&&h.value[i].value.flipDown(e[i],r[i]);l.value=Math.floor(s.value/60),p.value=Math.floor(s.value%60)},v=t=>{const e=getSecond(s.value);s.value-=t,s.value<0?s.value=0:s.value;const r=getSecond(s.value);for(let i=0;i<h.value.length;i++)e[i]!==r[i]&&h.value[i].value.flipUp(e[i],r[i]);l.value=Math.floor(s.value/60),p.value=Math.floor(s.value%60)},y=()=>{console.log(l.value,s.value);const t=getSecond(s.value);s.value=60*l.value+p.value;const e=getSecond(s.value);console.log(e,t);for(let r=0;r<h.value.length;r++)t[r]!==e[r]&&h.value[r].value.flipUp(t[r],e[r])},b=()=>{console.log(l.value);const t=getSecond(s.value);s.value=60*l.value+p.value;const e=getSecond(s.value);for(let r=0;r<h.value.length;r++)t[r]!==e[r]&&h.value[r].value.flipUp(t[r],e[r])};return watch((()=>s.value),(t=>{l.value=Math.floor(t/60),p.value=Math.floor(t%60)})),()=>createVNode("div",{class:styles$7.timerItemWrap},[createVNode("div",{class:styles$7.timerItemInfo},[createVNode("div",{class:styles$7.timerItemInset},[createVNode("div",{class:styles$7.timerItemInfoTop},[createVNode("div",{class:styles$7.timerItemTopCore},[createVNode("h4",null,[createTextVNode(" 分")]),createVNode("div",{class:styles$7.FlipClock},[createVNode("div",{class:styles$7.numberWrap},[createVNode(Flipper,{ref:t},null),createVNode(Flipper,{ref:e},null)]),createVNode("div",{class:[styles$7.chioseWrap,c.value?styles$7.chioseHidden:""]},[createVNode("img",{src:add,class:styles$7.add,alt:"",onClick:()=>m(60)},null),createVNode(NInputNumber,{class:styles$7.countInput,min:0,max:59,"show-button":!1,onInput:y,value:l.value,"onUpdate:value":t=>l.value=t},null),createVNode("img",{src:minus,class:styles$7.minus,alt:"",onClick:()=>v(60)},null)])])]),createVNode("div",{class:styles$7.timerItemTopCore},[createVNode("div",{class:styles$7.dot},null),createVNode("div",{class:styles$7.dot},null),createVNode("h4",{class:styles$7.dotBtm},null)]),createVNode("div",{class:styles$7.timerItemTopCore},[createVNode("h4",null,[createTextVNode(" 秒 ")]),createVNode("div",{class:styles$7.FlipClock},[createVNode("div",{class:styles$7.numberWrap},[createVNode(Flipper,{ref:r},null),createVNode(Flipper,{ref:i},null)]),createVNode("div",{class:[styles$7.chioseWrap,c.value?styles$7.chioseHidden:""]},[createVNode("img",{src:add,class:styles$7.add,alt:"",onClick:()=>m(1)},null),createVNode(NInputNumber,{class:styles$7.countInput,min:0,max:59,"show-button":!1,value:p.value,"onUpdate:value":t=>p.value=t,onInput:b},null),createVNode("img",{src:minus,class:styles$7.minus,alt:"",onClick:()=>v(1)},null)])])])])])]),createVNode(NSpace,{class:styles$7.btnGroupModal,justify:"center"},{default:()=>[createVNode(NButton,{round:!0,onClick:()=>g()},{default:()=>[createTextVNode("重置")]}),c.value?createVNode(NButton,{round:!0,type:"primary","icon-placement":"right",onClick:()=>f()},{default:()=>createVNode("p",{class:styles$7.playText},[createTextVNode("暂停")]),icon:()=>createVNode(NImage,{previewDisabled:!0,class:styles$7.palyIcon,src:suspend},null)}):createVNode(NButton,{round:!0,type:"primary",disabled:0===s.value,"icon-placement":"right",onClick:()=>(c.value=!0,void(n.value=setInterval((()=>{const t=getSecond(s.value);if(4==s.value&&d.play(),s.value<=0)return void g();s.value--;const e=getSecond(s.value);for(let r=0;r<h.value.length;r++)t[r]!==e[r]&&h.value[r].value.flipDown(t[r],e[r])}),1e3)))},{default:()=>createVNode("p",{class:styles$7.playText},[createTextVNode("开始")]),icon:()=>createVNode(NImage,{previewDisabled:!0,class:styles$7.palyIcon,src:playIcon},null)})]})])}}),Positive=defineComponent({name:"timer-positive",setup(){ref$1("positive"),useRoute();const t=ref$1(),e=ref$1(),r=ref$1(),i=ref$1(),n=ref$1(null),a=ref$1(null),o=ref$1(new Date);a.value=setInterval((()=>{o.value=new Date}),1e3);const s=ref$1(0),l=ref$1(!1),p=ref$1([t,e,r,i]),c=()=>{for(let t=0;t<p.value.length;t++)p.value[t].value.setFront("0000"[t])},h=()=>{l.value=!1,n.value&&(clearInterval(n.value),n.value=null)};return onMounted((()=>{nextTick((()=>{c()}))})),()=>createVNode("div",{class:styles$7.timerItemWrap},[createVNode("div",{class:styles$7.timerItemInfo},[createVNode("div",{class:styles$7.timerItemInset},[createVNode("div",{class:styles$7.timerItemInfoTop},[createVNode("div",{class:styles$7.timerItemTopCore},[createVNode("h4",null,[createTextVNode(" 分")]),createVNode("div",{class:styles$7.FlipClock},[createVNode("div",{class:styles$7.numberWrap},[createVNode(Flipper,{ref:t},null),createVNode(Flipper,{ref:e},null)])])]),createVNode("div",{class:styles$7.timerItemTopCore},[createVNode("h4",{class:styles$7.dotTop},null),createVNode("div",{class:styles$7.dot},null),createVNode("div",{class:styles$7.dot},null)]),createVNode("div",{class:styles$7.timerItemTopCore},[createVNode("h4",null,[createTextVNode(" 秒")]),createVNode("div",{class:styles$7.FlipClock},[createVNode("div",{class:styles$7.numberWrap},[createVNode(Flipper,{ref:r},null),createVNode(Flipper,{ref:i},null)])])])]),createVNode("div",{class:styles$7.nowTimerWrap},[dayjs(o.value).format("YYYY年MM月DD日 HH:mm:ss")])])]),createVNode(NSpace,{class:styles$7.btnGroupModal,justify:"center"},{default:()=>[createVNode(NButton,{round:!0,onClick:()=>(h(),s.value=0,void setTimeout((()=>{c()}),600))},{default:()=>[createTextVNode("重置")]}),l.value?createVNode(NButton,{round:!0,type:"primary","icon-placement":"right",onClick:()=>h()},{default:()=>createVNode("p",{class:styles$7.playText},[createTextVNode("暂停")]),icon:()=>createVNode(NImage,{previewDisabled:!0,class:styles$7.palyIcon,src:suspend},null)}):createVNode(NButton,{round:!0,type:"primary","icon-placement":"right",onClick:()=>(l.value=!0,void(n.value=setInterval((()=>{const t=getSecond(s.value);s.value++;const e=getSecond(s.value);for(let r=0;r<p.value.length;r++)t[r]!==e[r]&&p.value[r].value.flipDown(t[r],e[r])}),1e3)))},{default:()=>createVNode("p",{class:styles$7.playText},[createTextVNode("开始")]),icon:()=>createVNode(NImage,{previewDisabled:!0,class:styles$7.palyIcon,src:playIcon},null)})]})])}}),TimerMeter=exports("T",defineComponent({name:"data-module",setup(){const t=ref$1("positive");useRoute();const e=e=>{t.value=e};return()=>createVNode("div",null,[createVNode("div",{class:styles$7.timerWrap},[createVNode("div",{class:styles$7.timerTop},[createVNode("div",{class:[styles$7.timerTopPane,"positive"==t.value?styles$7.timerTopPaneActive:""],onClick:()=>{e("positive")}},[createTextVNode("正计时")]),createVNode("div",{class:[styles$7.timerTopPane,"countdown"==t.value?styles$7.timerTopPaneActive:""],onClick:()=>{e("countdown")}},[createTextVNode("倒计时")])]),"positive"==t.value?createVNode(Positive,null,null):createVNode(Countdown,null,null)])])}})),downMove="_downMove_137wx_1",downMoveBg="_downMoveBg_137wx_9",dingPng="_dingPng_137wx_16",closeAble="_closeAble_137wx_25",submitAppBtn="_submitAppBtn_137wx_53",styles$6={downMove:downMove,downMoveBg:downMoveBg,dingPng:dingPng,closeAble:closeAble,submitAppBtn:submitAppBtn},PlaceholderTone=exports("c",defineComponent({props:["item"],emits:["close"],name:"placeholderTone",setup:(t,{emit:e})=>()=>createVNode(Fragment,null,[createVNode("div",{class:styles$6.downMove},[createVNode("img",{src:dingPng$1,class:styles$6.dingPng,alt:""},null),createVNode("img",{src:moveTop,class:styles$6.downMoveBg,alt:""},null),createVNode("h2",null,[createTextVNode("温馨提示")]),createVNode("p",null,[createTextVNode("调音器功能暂未开放,敬请期待!")]),createVNode(NSpace,{style:{padding:"25px 0 0 0"},justify:"center"},{default:()=>[createVNode(NButton,mergeProps({id:"submitBtn"},{class:styles$6.submitAppBtn,round:!0,type:"primary",onClick:()=>{e("close")}}),{default:()=>[createTextVNode("我知道了")]})]})])])})),playContent="_playContent_bvkpz_1",assignHomeworkClose="_assignHomeworkClose_bvkpz_10",assignHomework="_assignHomework_bvkpz_10",isClose="_isClose_bvkpz_32",sectionAnimateUp="_sectionAnimateUp_bvkpz_39",coursewarePlay="_coursewarePlay_bvkpz_45",playModel="_playModel_bvkpz_51",headerContainer="_headerContainer_bvkpz_60",backBtn="_backBtn_bvkpz_79",headRight="_headRight_bvkpz_91",rightBtn="_rightBtn_bvkpz_100",menu="_menu_bvkpz_112",tabsContent="_tabsContent_bvkpz_123",wraps="_wraps_bvkpz_134",itemDiv="_itemDiv_bvkpz_141",itemActive="_itemActive_bvkpz_154",acitveAnimation="_acitveAnimation_bvkpz_157",show="_show_bvkpz_160",hide$1="_hide_bvkpz_163",rightFixedBtns="_rightFixedBtns_bvkpz_176",fullBtn="_fullBtn_bvkpz_183",point="_point_bvkpz_188",iconUp$1="_iconUp_bvkpz_198",iconDown$1="_iconDown_bvkpz_199",btnsDisabled="_btnsDisabled_bvkpz_202",loadWrap="_loadWrap_bvkpz_232",drawerContainer="_drawerContainer_bvkpz_243",cardContainer="_cardContainer_bvkpz_246",sectionAnimate$2="_sectionAnimate_bvkpz_39",switchDisplaySection="_switchDisplaySection_bvkpz_288",displayBtn="_displayBtn_bvkpz_296",attendClassModal="_attendClassModal_bvkpz_308",modelAttendContent="_modelAttendContent_bvkpz_332",modelAttendBtnGroup="_modelAttendBtnGroup_bvkpz_338",trainClassModal="_trainClassModal_bvkpz_346",workContainer="_workContainer_bvkpz_352",toolboxImg="_toolboxImg_bvkpz_359",isDragIng="_isDragIng_bvkpz_368",toolClassImg="_toolClassImg_bvkpz_372",booxToolWrap="_booxToolWrap_bvkpz_387",booxToolItem="_booxToolItem_bvkpz_398",setTimeImage="_setTimeImage_bvkpz_415",beatImage="_beatImage_bvkpz_421",changePwdModal="_changePwdModal_bvkpz_427",imChatModal="_imChatModal_bvkpz_430",modeWrap="_modeWrap_bvkpz_433",showModalTone="_showModalTone_bvkpz_438",studentRemove="_studentRemove_bvkpz_441",removeVisiable="_removeVisiable_bvkpz_453",btnGroupModal="_btnGroupModal_bvkpz_471",styles$5={playContent:playContent,assignHomeworkClose:assignHomeworkClose,assignHomework:assignHomework,isClose:isClose,sectionAnimateUp:sectionAnimateUp,coursewarePlay:coursewarePlay,playModel:playModel,headerContainer:headerContainer,backBtn:backBtn,headRight:headRight,rightBtn:rightBtn,menu:menu,tabsContent:tabsContent,wraps:wraps,itemDiv:itemDiv,itemActive:itemActive,acitveAnimation:acitveAnimation,show:show,hide:hide$1,rightFixedBtns:rightFixedBtns,fullBtn:fullBtn,point:point,iconUp:iconUp$1,iconDown:iconDown$1,btnsDisabled:btnsDisabled,loadWrap:loadWrap,drawerContainer:drawerContainer,cardContainer:cardContainer,sectionAnimate:sectionAnimate$2,switchDisplaySection:switchDisplaySection,displayBtn:displayBtn,attendClassModal:attendClassModal,modelAttendContent:modelAttendContent,modelAttendBtnGroup:modelAttendBtnGroup,trainClassModal:trainClassModal,workContainer:workContainer,toolboxImg:toolboxImg,isDragIng:isDragIng,toolClassImg:toolClassImg,booxToolWrap:booxToolWrap,booxToolItem:booxToolItem,setTimeImage:setTimeImage,beatImage:beatImage,changePwdModal:changePwdModal,imChatModal:imChatModal,modeWrap:modeWrap,showModalTone:showModalTone,studentRemove:studentRemove,removeVisiable:removeVisiable,btnGroupModal:btnGroupModal},plyr="",musicScore="_musicScore_10wpn_1",container="_container_10wpn_8",musicModel="_musicModel_10wpn_16",errorModel="_errorModel_10wpn_23",startBtn="_startBtn_10wpn_35",loading="_loading_10wpn_45",skeletonWrap="_skeletonWrap_10wpn_51",skeleton="_skeleton_10wpn_51",styles$4={musicScore:musicScore,container:container,musicModel:musicModel,errorModel:errorModel,startBtn:startBtn,loading:loading,skeletonWrap:skeletonWrap,skeleton:skeleton};var inBrowser="undefined"!=typeof window,visibility;function usePageVisibility(){if(!visibility&&(visibility=ref$1("visible"),inBrowser)){const t=()=>{visibility.value=document.hidden?"hidden":"visible"};t(),window.addEventListener("visibilitychange",t)}return visibility}const MusicScore=defineComponent({name:"musicScore",props:{music:{type:Object,default:()=>({})},activeModel:{type:Boolean}},emits:["setIframe"],setup(t,{emit:e}){const r=useUserStore(),i=ref$1(!1),n=usePageVisibility();watch(n,(t=>{console.log("🚀 ~ value:",t),"hidden"==t&&(i.value=!1)}));const a=ref$1(),o=ref$1(!1),s=ref$1(!1),l=ref$1(!1),p=`${/(localhost|192)/.test(location.host)?"https://test.lexiaoya.cn":location.origin}/instrument?showGuide=true&platform=pc&zoom=1.2&modelType=practise&id=${t.music.content}&Authorization=${r.getToken}`;return watch(t.music,(()=>{l.value||(s.value=!1,t.music.display&&fetch(p).then((()=>{l.value=!0,s.value=!1})).catch((()=>{s.value=!0})))})),()=>createVNode("div",{class:styles$4.musicScore},[createVNode("iframe",{ref:a,onLoad:()=>{e("setIframe",a.value),o.value=!0},class:[styles$4.container,"musicIframe"],frameborder:"0",src:p},null),o.value&&createVNode("div",{class:styles$4.skeletonWrap},[createVNode("div",null,[createVNode(NSkeleton,{text:!0,repeat:8},null)])])])}}),iconChange="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAAApVBMVEUAAAAAAADFxcVlZWXx8fGfn5/e3t4AAAAAAAAAAAAAAAD6+vrIyMjExMT9/f38/PxEREQpKSn////w8PDb29u+vr6bm5uRkZEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADU1NS0tLSmpqZeXl46OjoNDQ3s7Ozp6enl5eXe3t7Y2NjQ0NC4uLh+fn5ycnL29vb19fXz8/Pm5uatra2JiYn///8UC+gVAAAANnRSTlNNAKZq4YjDSUYcB/KopPn1Xlb83r+fhH9DPjg1LCYfGBG3loxnW0/Z08zEu7GbdG/r6OXPknuiRdZjAAACjElEQVRo3u3b13baQBSF4W3kRL0iEL03U13P+z9aSCKEg4TIyGJGXmu+64GfuZkL1jl4SBn2Oi0VpVFbnd4wXbkIG3pXxR2oXd3IC/dV3I3avxoeaLgrbZAZNtq4u7aRDo80cKCNLsM6ONFPYX7dc/kcHoGj0TlsaOBIM5JwG1y1T+EBOBvEYQ2caX/DfXDX/x02VHCnGsewDgH0Y7gLAbrHsAoB1AcMIcQQPQjRQwdCdNCCEC2oEEKF9C+vObFrl+xJc4bE7MoRD8VNl3TNqzXH0dx6pWuWUxSj1CmPay8Wtkt56goKiFy6YbWiG9wIzA4OlcA5gJH/TKV49sHGopJYYOK7VBLXB4smlaYJFmM6ebJql6y1SZ+Y64wjT3QyBovkc1tk8VaUWHnIsk1+OVgkb8ce2WUzuW92F/vkFQGLR4opyLam2BrZFIo9lhu2KGZxDtcoVpNhGZZhGZZhGZZhGZZhGZZhGa58uEGxBudwRLGIc9g36Q/T5xxG5NCRE4F3GLNNvb6ZgW/4TIZl+NuE6xQ7oKBDsT/Y3s5PMZv0Y/4GFhuKBdvpj5S9j0/8ffrEdBtQbAMWU8rlNpBouJRrChbzgPLZiNmUL5iDyZjyOfH3zR3KNwYbz7115f+7sOuBUZPymQqOFJPyNcFsEtwo7xRld6MbTFBAZNIXmREK8S3zS1nLR1GLD3v884JDGZzLU2P7Y4Fy7SjDDhyElBKCh0WY6i7AR8OhT5wGuJmFwSkbhDPw5L2Hy5eXZfjuQar27IsqbMhI2FiVsEEyYaNzooYFhY1HChsIFTYCK2roV9SYs+DBbv6j7OKH9zmvK1RhQYNjWa/KEg6vtaMqLVrdf7Wsist0HNcHfwER0OmIlXZIUwAAAABJRU5ErkJggg==",iconMenu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAAAM1BMVEUAAAAAAAD39/fi4uKDg4PBwcEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///+Tuw5aAAAAEHRSTlNNAO3Jd6JIHQdGNilDPhgRTgnLQQAAAU5JREFUaN7s1usKgzAMhuFvtiZp62H3f7VzG1rQbVDRFEeen4HwgodS3DaGFDvCYaiLadhWVmHhSDgBRZYfYUmE01CSb2EOOFXgj2HpcbpetuExQEEY12GGEs5hrW4u5/AIRWMOS4CiIEu4h6p+DjOU8TssAcqCvMIJ6tIzLAR1JFOYUQFP4YgK4hQmVEA3DKhiQEIVCRFVRHSoogOhCoIxxvwT75rG+dXkXiBvF2nf2+1qUqZFMT/v+jzZwaOUm1ddnuzgUKpZ3lSe7NBcJ3zUo77Ox3XQ73SlA8QYY8wF2C3Tbpl2y3y0b8ZEAAAxDOr2/h2/i5BewUDWDODL9GWKiMiML9OXueTs+TJ9mb5METkIpdxgkhGmVWEiGabOUbIgpkdiQiimwFLSL6Y5U2I3pbLz8n44V2gINILLryXCSWVHTaFVIC3ri+mS+eAHK2VyZZZWHUwAAAAASUVORK5CYII=",iconUp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAAAwFBMVEUAAAAAAAAAAAAAAAAaGhoAAAAAAAD///8qKir+/v5CQkIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD7+/tXV1f9/f38/Pz5+fn29vbp6enh4eGkpKT09PTv7+/s7Ozk5OSzs7Oqqqqbm5uGhoZ+fn52dnb39/fx8fHt7e3m5uba2trQ0NDMzMzExMS6urpsbGxjY2NOTk42Njbe3t7V1dW/v7+VlZWOjo6vr6+fn5/Hx8f///9yT3GqAAAAP3RSTlNNAB0EUkpG/lb7XUxLSEM+ODUsJhgRCfNl+fbw6tPHiuXd1sqVj4R4dXDt4trPvrGtpZxtaWFaw7eggn6Sh6kexAm8AAAChUlEQVRo3u3b2VIiMRiG4c/eRPZddmRfZJVNdJzc/12Nw9TYnRZ6IHTyM1V5Dq3St5Ak3Qd/cOdn5rPpZCKGkMQSyXQ2b37LwFc1MjYksDOGGRA2czaksXPmqbDhQCrHOBoupiBdqvg9XHCggFPwh404lIgbfNiAMoY3XIhDmXjBDRcdKOQUv8IpKJX6GzagmPEnbDpQzDEP4RyUy/0OmzaUs83PsAECxmc4AwKZO5g2CNgm8iCRRxYkskiDRBpJkEgiARIJxEAiBk3TNE3T/mulYQQE+mPG7htRqLZgB9URVOC7B48rqLRkX6prqLNnHuMSVHlhnJqqcpf51DZQ4cc983uKQr6e23U9yy833a5Xawu5+g/suFYEMr1xXe7DT2SW38vMozF6ZB5tC7IMuG7HAl+uyyoPK8xjah37kQz+j3f8nxC+le8LPf61I3SrKr+ETyz0HUK2rvKb9uTWniFUpTF3QG4DDrNXhGhT4w/mwON7jtBEn3yPouAH1kJOt7b55yP6J0Kxfea6pTNeSpahdFtnvWDtufIeV4tMGDvrlXLJlV+u7raZK/glesGVu7iKVee6IwSZc8/q3lXdKfOoDBHslSs3r+h2uO4AuKT88AFRM+ZRHlz6Gw8DiOlzf+Ud59hxZ5wFIXVv9w1nsRrMow8hVc9K+RBaF0sIqQmtUGt69TGyc/ek4N4fQsi67J5CQqddB4KalcP+7eFCkcahO4lC1GZeb89LuFxz1mp0oWmapmnajaMaQCEbuSEbMiIbqyIbJCMbnSMbFqQajyQbCCUbgaUa+iUbc6Ya7KYaZacf3ld8XeEWLmiovJJyK5dwVF07uqWLVgqult3eZTqV1wd/AVGf4NFKttXvAAAAAElFTkSuQmCC",iconDown="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAAAwFBMVEUAAAAAAAAAAAAAAAAAAAAAAAD///8SEhIJCQn9/f37+/twcHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2NjYoKCj5+fllZWVNTU1CQkIdHR3+/v78/Pzz8/Pu7u7s7Ozm5uba2trX19fIyMi0tLSCgoL19fXp6enj4+Pg4ODd3d3U1NTAwMCgoKCamppaWlr39/f29vbx8fHx8fHQ0NDNzc3FxcW6urqtra2np6eVlZWOjo6JiYl6enr///+ajIlGAAAAP3RSTlNNAEpGHAf9UE75825DPjg1LCYfGBFZVvBqYV5T+/bk3NfPvbqplnbn08rGwbahiIRm7eri37KvppySjYF9enONpdnhAAACkklEQVRo3uzNtxUCMRAFwM+aTF7qv1aOh78DIrSbaBoYnA56SYHxNxxS6cdlF6tkwgSURX/FlTAN1a9xY0zF7WOsEdNFPcaDYYDHPhaCCZL3WGBGXuNBMEPjGSvDEOsjjjAV73GDsXaLGcb4GleYq5dYCeZIt1jgQLY4w0HeYoIDOqHDRUeBi4IEFwkBLgIYLhjLsixn9uckOUEojKLwHaHAGAVMEEIjaWwxoibx7n9XqcRSfyyw4MGQbwOnTq/X61UYmOYAKqzEbZPNdVKPmqdtn2SWQFXAf/4IzXzp/KMtoSYmlcrfOs/GFpSkvEgnqO9H58UCSgxeBQPUlTzzKoISjzevdcsn0WUMJSGFtyHqMA3eaCaUuAaF9zple0whhKLlE4WXYcPudARVC63RwGpNYWtB3bFQ/sRDzoZCZqGNQ6G8e9idUfBctBNTilDJ9SjMHLS1p5RXdjMKGwftzSnNUcraUliv0IWc0h4lRlMKYxvdiCjFJV2/w660o6AdcGeSUjBMdOejUD7edYNC94QuhYXyL/t1s4IwDAQBeG6p7VkUqxXiD0RtFaEi2Jr3fysPQkkYesvuKd8xlwlsssl2CJgod3dGUoX1ge09yHU+sBiRWHGNkj/T+iXKHZAWJ4wz+xFgHNcSVAEJdXyKvnTaO8jg+9rTLRPAHaq01FdS457MThC1nEt+QwC9f6yFuE3j2REy+G8Ve0EDJ/dQ8nj60A0a+OduoWi9oplKSVXSFKmkav71NdBWt25/GJBlWZZlv/btoAgAGIZh2GP8OQ9Fo/SuxiFf1xr78hgyYqyKQTJG5xQWZDySgVBGYBX6VcyZwW5F2T3eD+8KDYNGcklpmXBS21HTaDW/ljXOdMF98AOVv+Aqo6KdoQAAAABJRU5ErkJggg==",iconNote=""+new URL("icon-note-e717c676.png",module.meta.url).href,iconWhiteboard=""+new URL("icon-whiteboard-c1022e62.png",module.meta.url).href,iconAssignHomework=""+new URL("icon-assignHomework-c779237a.png",module.meta.url).href,iconClose=""+new URL("icon-close-c1d38f6a.png",module.meta.url).href,iconOverPreivew=""+new URL("icon-over-preview-791959ba.png",module.meta.url).href;var lottie={exports:{}};(function(module,exports){var factory;"undefined"!=typeof navigator&&(factory=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(t){return document.createElement(t)}function extendPrototype(t,e){var r,i,n=t.length;for(r=0;r<n;r+=1)for(var a in i=t[r].prototype)Object.prototype.hasOwnProperty.call(i,a)&&(e.prototype[a]=i[a])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,r=this.audios.length;for(e=0;e<r;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(t,e){var r,i=0,n=[];switch(t){case"int16":case"uint8c":r=1;break;default:r=1.1}for(i=0;i<e;i+=1)n.push(r);return n}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,r){return"float32"===e?new Float32Array(r):"int16"===e?new Int16Array(r):"uint8c"===e?new Uint8ClampedArray(r):t(e,r)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return _typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$6(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};!function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){var e,r=createSizedArray(t.length),i=t.length;for(e=0;e<i;e+=1)r[e]=Math.abs(t[e]);return r}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,r,i){this.type=t,this.currentTime=e,this.totalTime=r,this.direction=i<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,r,i){this.type=t,this.currentLoop=r,this.totalLoops=e,this.direction=i<0?-1:1}function BMSegmentStartEvent(t,e,r){this.type=t,this.firstFrame=e,this.totalFrames=r}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(t,e,r){var i,n,a,o,s,l,p,c;switch(l=r*(1-e),p=r*(1-(s=6*t-(o=Math.floor(6*t)))*e),c=r*(1-(1-s)*e),o%6){case 0:i=r,n=c,a=l;break;case 1:i=p,n=r,a=l;break;case 2:i=l,n=r,a=c;break;case 3:i=l,n=p,a=r;break;case 4:i=c,n=l,a=r;break;case 5:i=r,n=l,a=p}return[i,n,a]}function RGBtoHSV(t,e,r){var i,n=Math.max(t,e,r),a=Math.min(t,e,r),o=n-a,s=0===n?0:o/n,l=n/255;switch(n){case a:i=0;break;case t:i=e-r+o*(e<r?6:0),i/=6*o;break;case e:i=r-t+2*o,i/=6*o;break;case r:i=t-e+4*o,i/=6*o}return[i,s,l]}function addSaturationToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[1]+=e,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var t,e,r=[];for(t=0;t<256;t+=1)e=t.toString(16),r[t]=1===e.length?"0"+e:e;return function(t,e,i){return t<0&&(t=0),e<0&&(e=0),i<0&&(i=0),"#"+r[t]+r[e]+r[i]}}(),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(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$5(t)}var dataManager=function(){var t,e,r=1,i=[],n={onmessage:function(){},postMessage:function(e){t({data:e})}},a={postMessage:function(t){n.onmessage({data:t})}};function o(){e||(e=function(e){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),i=URL.createObjectURL(r);return new Worker(i)}return t=e,n}((function(t){if(a.dataManager||(a.dataManager=function(){function t(n,a){var o,s,l,p,c,u,d=n.length;for(s=0;s<d;s+=1)if("ks"in(o=n[s])&&!o.completed){if(o.completed=!0,o.hasMask){var f=o.masksProperties;for(p=f.length,l=0;l<p;l+=1)if(f[l].pt.k.i)i(f[l].pt.k);else for(u=f[l].pt.k.length,c=0;c<u;c+=1)f[l].pt.k[c].s&&i(f[l].pt.k[c].s[0]),f[l].pt.k[c].e&&i(f[l].pt.k[c].e[0])}0===o.ty?(o.layers=e(o.refId,a),t(o.layers,a)):4===o.ty?r(o.shapes):5===o.ty&&h(o)}}function e(t,e){var r=function(t,e){for(var r=0,i=e.length;r<i;){if(e[r].id===t)return e[r];r+=1}return null}(t,e);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(t){var e,n,a;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)i(t[e].ks.k);else for(a=t[e].ks.k.length,n=0;n<a;n+=1)t[e].ks.k[n].s&&i(t[e].ks.k[n].s[0]),t[e].ks.k[n].e&&i(t[e].ks.k[n].e[0]);else"gr"===t[e].ty&&r(t[e].it)}function i(t){var e,r=t.i.length;for(e=0;e<r;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function n(t,e){var r=e?e.split("."):[100,100,100];return t[0]>r[0]||!(r[0]>t[0])&&(t[1]>r[1]||!(r[1]>t[1])&&(t[2]>r[2]||!(r[2]>t[2])&&null))}var a,o=function(){var t=[4,4,14];function e(t){var e,r,i,n=t.length;for(e=0;e<n;e+=1)5===t[e].ty&&(i=void 0,i=(r=t[e]).t.d,r.t.d={k:[{s:i,t:0}]})}return function(r){if(n(t,r.v)&&(e(r.layers),r.assets)){var i,a=r.assets.length;for(i=0;i<a;i+=1)r.assets[i].layers&&e(r.assets[i].layers)}}}(),s=(a=[4,7,99],function(t){if(t.chars&&!n(a,t.v)){var e,i=t.chars.length;for(e=0;e<i;e+=1){var o=t.chars[e];o.data&&o.data.shapes&&(r(o.data.shapes),o.data.ip=0,o.data.op=99999,o.data.st=0,o.data.sr=1,o.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[e].t||(o.data.shapes.push({ty:"no"}),o.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var t=[5,7,15];function e(t){var e,r,i=t.length;for(e=0;e<i;e+=1)5===t[e].ty&&(r=void 0,"number"==typeof(r=t[e].t.p).a&&(r.a={a:0,k:r.a}),"number"==typeof r.p&&(r.p={a:0,k:r.p}),"number"==typeof r.r&&(r.r={a:0,k:r.r}))}return function(r){if(n(t,r.v)&&(e(r.layers),r.assets)){var i,a=r.assets.length;for(i=0;i<a;i+=1)r.assets[i].layers&&e(r.assets[i].layers)}}}(),p=function(){var t=[4,1,9];function e(t){var r,i,n,a=t.length;for(r=0;r<a;r+=1)if("gr"===t[r].ty)e(t[r].it);else if("fl"===t[r].ty||"st"===t[r].ty)if(t[r].c.k&&t[r].c.k[0].i)for(n=t[r].c.k.length,i=0;i<n;i+=1)t[r].c.k[i].s&&(t[r].c.k[i].s[0]/=255,t[r].c.k[i].s[1]/=255,t[r].c.k[i].s[2]/=255,t[r].c.k[i].s[3]/=255),t[r].c.k[i].e&&(t[r].c.k[i].e[0]/=255,t[r].c.k[i].e[1]/=255,t[r].c.k[i].e[2]/=255,t[r].c.k[i].e[3]/=255);else t[r].c.k[0]/=255,t[r].c.k[1]/=255,t[r].c.k[2]/=255,t[r].c.k[3]/=255}function r(t){var r,i=t.length;for(r=0;r<i;r+=1)4===t[r].ty&&e(t[r].shapes)}return function(e){if(n(t,e.v)&&(r(e.layers),e.assets)){var i,a=e.assets.length;for(i=0;i<a;i+=1)e.assets[i].layers&&r(e.assets[i].layers)}}}(),c=function(){var t=[4,4,18];function e(t){var r,i,n;for(r=t.length-1;r>=0;r-=1)if("sh"===t[r].ty)if(t[r].ks.k.i)t[r].ks.k.c=t[r].closed;else for(n=t[r].ks.k.length,i=0;i<n;i+=1)t[r].ks.k[i].s&&(t[r].ks.k[i].s[0].c=t[r].closed),t[r].ks.k[i].e&&(t[r].ks.k[i].e[0].c=t[r].closed);else"gr"===t[r].ty&&e(t[r].it)}function r(t){var r,i,n,a,o,s,l=t.length;for(i=0;i<l;i+=1){if((r=t[i]).hasMask){var p=r.masksProperties;for(a=p.length,n=0;n<a;n+=1)if(p[n].pt.k.i)p[n].pt.k.c=p[n].cl;else for(s=p[n].pt.k.length,o=0;o<s;o+=1)p[n].pt.k[o].s&&(p[n].pt.k[o].s[0].c=p[n].cl),p[n].pt.k[o].e&&(p[n].pt.k[o].e[0].c=p[n].cl)}4===r.ty&&e(r.shapes)}}return function(e){if(n(t,e.v)&&(r(e.layers),e.assets)){var i,a=e.assets.length;for(i=0;i<a;i+=1)e.assets[i].layers&&r(e.assets[i].layers)}}}();function h(t){0===t.t.a.length&&t.t.p}var u={completeData:function(r){r.__complete||(p(r),o(r),s(r),l(r),c(r),t(r.layers,r.assets),function(r,i){if(r){var n=0,a=r.length;for(n=0;n<a;n+=1)1===r[n].t&&(r[n].data.layers=e(r[n].data.refId,i),t(r[n].data.layers,i))}}(r.chars,r.assets),r.__complete=!0)}};return u.checkColors=p,u.checkChars=s,u.checkPathProperties=l,u.checkShapes=c,u.completeLayers=t,u}()),a.assetLoader||(a.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===_typeof$5(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,r,i,n){var a,o=new XMLHttpRequest;try{o.responseType="json"}catch(s){}o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status)a=t(o),i(a);else try{a=t(o),i(a)}catch(s){n&&n(s)}};try{o.open(["G","E","T"].join(""),e,!0)}catch(l){o.open(["G","E","T"].join(""),r+"/"+e,!0)}o.send()}}}()),"loadAnimation"===t.data.type)a.assetLoader.load(t.data.path,t.data.fullPath,(function(e){a.dataManager.completeData(e),a.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){a.postMessage({id:t.data.id,status:"error"})}));else if("complete"===t.data.type){var e=t.data.animation;a.dataManager.completeData(e),a.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&a.assetLoader.load(t.data.path,t.data.fullPath,(function(e){a.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){a.postMessage({id:t.data.id,status:"error"})}))})),e.onmessage=function(t){var e=t.data,r=e.id,n=i[r];i[r]=null,"success"===e.status?n.onComplete(e.payload):n.onError&&n.onError()})}function s(t,e){var n="processId_"+(r+=1);return i[n]={onComplete:t,onError:e},n}return{loadAnimation:function(t,r,i){o();var n=s(r,i);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},loadData:function(t,r,i){o();var n=s(r,i);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},completeAnimation:function(t,r,i){o();var n=s(r,i);e.postMessage({type:"complete",animation:t,id:n})}}}(),ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(t,e,r){var i="";if(t.e)i=t.p;else if(e){var n=t.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),i=e+n}else i=r,i+=t.u?t.u:"",i+=t.p;return i}function n(t){var e=0,r=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(r)),e+=1}.bind(this),50)}function a(t){var e={assetData:t},r=i(t,this.assetsPath,this.path);return dataManager.loadData(r,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function o(){this._imageLoaded=e.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=n.bind(this),this.createFootageData=a.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return o.prototype={loadAssets:function(t,e){var r;this.imagesLoadedCb=e;var i=t.length;for(r=0;r<i;r+=1)t[r].layers||(t[r].t&&"seq"!==t[r].t?3===t[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[r]))):(this.totalImages+=1,this.images.push(this._createImageData(t[r]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,r=this.images.length;e<r;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var r=i(e,this.assetsPath,this.path),n=createTag("img");n.crossOrigin="anonymous",n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){a.img=t,this._imageLoaded()}.bind(this),!1),n.src=r;var a={img:n,assetData:e};return a},createImageData:function(e){var r=i(e,this.assetsPath,this.path),n=createNS("image");isSafari?this.testImageLoaded(n):n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){a.img=t,this._imageLoaded()}.bind(this),!1),n.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(n):this._elementHelper.appendChild(n);var a={img:n,assetData:e};return a},imageLoaded:e,footageLoaded:r,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},o}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var r=this._cbs[t],i=0;i<r.length;i+=1)r[i](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var r=0,i=this._cbs[t].length;r<i;)this._cbs[t][r]===e&&(this._cbs[t].splice(r,1),r-=1,i-=1),r+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(t){for(var e,r=t.split("\r\n"),i={},n=0,a=0;a<r.length;a+=1)2===(e=r[a].split(":")).length&&(i[e[0]]=e[1].trim(),n+=1);if(0===n)throw new Error;return i}return function(e){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],a={time:n.tm,duration:n.dr};try{a.payload=JSON.parse(e[i].cm)}catch(o){try{a.payload=t(e[i].cm)}catch(s){a.payload={name:e[i].cm}}}r.push(a)}return r}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,r=this.compositions.length;e<r;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var t in renderers)if(renderers[t])return t;return""}function _typeof$4(t){return _typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$4(t)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var r=getRenderer(e);this.renderer=new r(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&"object"!==_typeof$4(e)&&(e=JSON.parse(e));var r={wrapper:t,animationData:e},i=t.attributes;r.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",r.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var n=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";"false"===n?r.loop=!1:"true"===n?r.loop=!0:""!==n&&(r.loop=parseInt(n,10));var a=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:!i.getNamedItem("bm-autoplay")||i.getNamedItem("bm-autoplay").value;r.autoplay="false"!==a,r.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"","false"===(i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,r,i=this.animationData.layers,n=i.length,a=t.layers,o=a.length;for(r=0;r<o;r+=1)for(e=0;e<n;){if(i[e].id===a[r].id){i[e]=a[r];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(n=t.assets.length,e=0;e<n;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var r="number"==typeof t?t:void 0,i="number"==typeof e?e:void 0;this.renderer.updateContainerSize(r,i)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,r=0;r<this.markers.length;r+=1)if((e=this.markers[r]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,r){if(!r||this.name===r){var i=Number(t);if(isNaN(i)){var n=this.getMarkerData(t);n&&this.goToAndStop(n.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,r){if(!r||this.name===r){var i=Number(t);if(isNaN(i)){var n=this.getMarkerData(t);n&&(n.duration?this.playSegments([n.time,n.time+n.duration],!0):this.goToAndStop(n.time,!0))}else this.goToAndStop(i,e,r);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,r=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(r=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),r&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?r=t:this.currentRawFrame+this.firstFrame>e&&(r=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0])){var r,i=t.length;for(r=0;r<i;r+=1)this.segments.push(t[r])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(t){this.loop=t},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var r=t.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),e=this.assetsPath+r}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,r=this.assets.length;e<r;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,r){try{this.renderer.getElementByPath(t).updateDocumentData(e,r)}catch(i){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],r=0,i=0,n=0,a=!0,o=!1;function s(t){for(var r=0,n=t.target;r<i;)e[r].animation===n&&(e.splice(r,1),r-=1,i-=1,n.isPaused||c()),r+=1}function l(t,r){if(!t)return null;for(var n=0;n<i;){if(e[n].elem===t&&null!==e[n].elem)return e[n].animation;n+=1}var a=new AnimationItem;return h(a,t),a.setData(t,r),a}function p(){n+=1,f()}function c(){n-=1}function h(t,r){t.addEventListener("destroy",s),t.addEventListener("_active",p),t.addEventListener("_idle",c),e.push({elem:r,animation:t}),i+=1}function u(t){var s,l=t-r;for(s=0;s<i;s+=1)e[s].animation.advanceTime(l);r=t,n&&!o?window.requestAnimationFrame(u):a=!0}function d(t){r=t,window.requestAnimationFrame(u)}function f(){!o&&n&&a&&(window.requestAnimationFrame(d),a=!1)}return t.registerAnimation=l,t.loadAnimation=function(t){var e=new AnimationItem;return h(e,null),e.setParams(t),e},t.setSpeed=function(t,r){var n;for(n=0;n<i;n+=1)e[n].animation.setSpeed(t,r)},t.setDirection=function(t,r){var n;for(n=0;n<i;n+=1)e[n].animation.setDirection(t,r)},t.play=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.play(t)},t.pause=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.pause(t)},t.stop=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.stop(t)},t.togglePause=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.togglePause(t)},t.searchAnimations=function(t,e,r){var i,n=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),a=n.length;for(i=0;i<a;i+=1)r&&n[i].setAttribute("data-bm-type",r),l(n[i],t);if(e&&0===a){r||(r="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",r),o.appendChild(s),l(s,t)}},t.resize=function(){var t;for(t=0;t<i;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,r,n){var a;for(a=0;a<i;a+=1)e[a].animation.goToAndStop(t,r,n)},t.destroy=function(t){var r;for(r=i-1;r>=0;r-=1)e[r].animation.destroy(t)},t.freeze=function(){o=!0},t.unfreeze=function(){o=!1,f()},t.setVolume=function(t,r){var n;for(n=0;n<i;n+=1)e[n].animation.setVolume(t,r)},t.mute=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.mute(t)},t.unmute=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,r=e.length,i=[];for(t=0;t<r;t+=1)i.push(e[t].animation);return i},t}(),BezierFactory=function(){var t={getBezierEasing:function(t,r,i,n,a){var o=a||("bez_"+t+"_"+r+"_"+i+"_"+n).replace(/\./g,"p");if(e[o])return e[o];var s=new c([t,r,i,n]);return e[o]=s,s}},e={},r=11,i=1/(r-1),n="function"==typeof Float32Array;function a(t,e){return 1-3*e+3*t}function o(t,e){return 3*e-6*t}function s(t){return 3*t}function l(t,e,r){return((a(e,r)*t+o(e,r))*t+s(e))*t}function p(t,e,r){return 3*a(e,r)*t*t+2*o(e,r)*t+s(e)}function c(t){this._p=t,this._mSampleValues=n?new Float32Array(r):new Array(r),this._precomputed=!1,this.get=this.get.bind(this)}return c.prototype={get:function(t){var e=this._p[0],r=this._p[1],i=this._p[2],n=this._p[3];return this._precomputed||this._precompute(),e===r&&i===n?t:0===t?0:1===t?1:l(this._getTForX(t),r,n)},_precompute:function(){var t=this._p[0],e=this._p[1],r=this._p[2],i=this._p[3];this._precomputed=!0,t===e&&r===i||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],n=0;n<r;++n)this._mSampleValues[n]=l(n*i,t,e)},_getTForX:function(t){for(var e=this._p[0],n=this._p[2],a=this._mSampleValues,o=0,s=1,c=r-1;s!==c&&a[s]<=t;++s)o+=i;var h=o+(t-a[--s])/(a[s+1]-a[s])*i,u=p(h,e,n);return u>=.001?function(t,e,r,i){for(var n=0;n<4;++n){var a=p(e,r,i);if(0===a)return e;e-=(l(e,r,i)-t)/a}return e}(t,h,e,n):0===u?h:function(t,e,r,i,n){var a,o,s=0;do{(a=l(o=e+(r-e)/2,i,n)-t)>0?r=o:e=o}while(Math.abs(a)>1e-7&&++s<10);return o}(t,o,o+i,e,n)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,r){var i=0,n=t,a=createSizedArray(n);return{newElement:function(){return i?a[i-=1]:e()},release:function(t){i===n&&(a=pooling.double(a),n*=2),r&&r(t),a[i]=t,i+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(t){var e,r=t.lengths.length;for(e=0;e<r;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0}));function bezFunction(){var t=Math;function e(t,e,r,i,n,a){var o=t*i+e*n+r*a-n*i-a*t-r*e;return o>-.001&&o<.001}var r=function(t,e,r,i){var n,a,o,s,l,p,c=getDefaultCurveSegments(),h=0,u=[],d=[],f=bezierLengthPool.newElement();for(o=r.length,n=0;n<c;n+=1){for(l=n/(c-1),p=0,a=0;a<o;a+=1)s=bmPow(1-l,3)*t[a]+3*bmPow(1-l,2)*l*r[a]+3*(1-l)*bmPow(l,2)*i[a]+bmPow(l,3)*e[a],u[a]=s,null!==d[a]&&(p+=bmPow(u[a]-d[a],2)),d[a]=u[a];p&&(h+=p=bmSqrt(p)),f.percents[n]=l,f.lengths[n]=h}return f.addedLength=h,f};function i(t){this.segmentLength=0,this.points=new Array(t)}function n(t,e){this.partialLength=t,this.point=e}var a,o=(a={},function(t,r,o,s){var l=(t[0]+"_"+t[1]+"_"+r[0]+"_"+r[1]+"_"+o[0]+"_"+o[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!a[l]){var p,c,h,u,d,f,g,m=getDefaultCurveSegments(),v=0,y=null;2===t.length&&(t[0]!==r[0]||t[1]!==r[1])&&e(t[0],t[1],r[0],r[1],t[0]+o[0],t[1]+o[1])&&e(t[0],t[1],r[0],r[1],r[0]+s[0],r[1]+s[1])&&(m=2);var b=new i(m);for(h=o.length,p=0;p<m;p+=1){for(g=createSizedArray(h),d=p/(m-1),f=0,c=0;c<h;c+=1)u=bmPow(1-d,3)*t[c]+3*bmPow(1-d,2)*d*(t[c]+o[c])+3*(1-d)*bmPow(d,2)*(r[c]+s[c])+bmPow(d,3)*r[c],g[c]=u,null!==y&&(f+=bmPow(g[c]-y[c],2));v+=f=bmSqrt(f),b.points[p]=new n(f,g),y=g}b.segmentLength=v,a[l]=b}return a[l]});function s(t,e){var r=e.percents,i=e.lengths,n=r.length,a=bmFloor((n-1)*t),o=t*e.addedLength,s=0;if(a===n-1||0===a||o===i[a])return r[a];for(var l=i[a]>o?-1:1,p=!0;p;)if(i[a]<=o&&i[a+1]>o?(s=(o-i[a])/(i[a+1]-i[a]),p=!1):a+=l,a<0||a>=n-1){if(a===n-1)return r[a];p=!1}return r[a]+(r[a+1]-r[a])*s}var l=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,i=segmentsLengthPool.newElement(),n=t.c,a=t.v,o=t.o,s=t.i,l=t._length,p=i.lengths,c=0;for(e=0;e<l-1;e+=1)p[e]=r(a[e],a[e+1],o[e],s[e+1]),c+=p[e].addedLength;return n&&l&&(p[e]=r(a[e],a[0],o[e],s[0]),c+=p[e].addedLength),i.totalLength=c,i},getNewSegment:function(e,r,i,n,a,o,p){a<0?a=0:a>1&&(a=1);var c,h=s(a,p),u=s(o=o>1?1:o,p),d=e.length,f=1-h,g=1-u,m=f*f*f,v=h*f*f*3,y=h*h*f*3,b=h*h*h,_=f*f*g,x=h*f*g+f*h*g+f*f*u,S=h*h*g+f*h*u+h*f*u,w=h*h*u,A=f*g*g,E=h*g*g+f*u*g+f*g*u,C=h*u*g+f*u*u+h*g*u,P=h*u*u,T=g*g*g,D=u*g*g+g*u*g+g*g*u,M=u*u*g+g*u*u+u*g*u,k=u*u*u;for(c=0;c<d;c+=1)l[4*c]=t.round(1e3*(m*e[c]+v*i[c]+y*n[c]+b*r[c]))/1e3,l[4*c+1]=t.round(1e3*(_*e[c]+x*i[c]+S*n[c]+w*r[c]))/1e3,l[4*c+2]=t.round(1e3*(A*e[c]+E*i[c]+C*n[c]+P*r[c]))/1e3,l[4*c+3]=t.round(1e3*(T*e[c]+D*i[c]+M*n[c]+k*r[c]))/1e3;return l},getPointInSegment:function(e,r,i,n,a,o){var l=s(a,o),p=1-l;return[t.round(1e3*(p*p*p*e[0]+(l*p*p+p*l*p+p*p*l)*i[0]+(l*l*p+p*l*l+l*p*l)*n[0]+l*l*l*r[0]))/1e3,t.round(1e3*(p*p*p*e[1]+(l*p*p+p*l*p+p*p*l)*i[1]+(l*l*p+p*l*l+l*p*l)*n[1]+l*l*l*r[1]))/1e3]},buildBezierData:o,pointOnLine2D:e,pointOnLine3D:function(r,i,n,a,o,s,l,p,c){if(0===n&&0===s&&0===c)return e(r,i,a,o,l,p);var h,u=t.sqrt(t.pow(a-r,2)+t.pow(o-i,2)+t.pow(s-n,2)),d=t.sqrt(t.pow(l-r,2)+t.pow(p-i,2)+t.pow(c-n,2)),f=t.sqrt(t.pow(l-a,2)+t.pow(p-o,2)+t.pow(c-s,2));return(h=u>d?u>f?u-d-f:f-d-u:f>d?f-d-u:d-u-f)>-1e-4&&h<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,e){var r,i=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var n,a,o,s,l,p,c,h,u,d=e.lastIndex,f=d,g=this.keyframes.length-1,m=!0;m;){if(n=this.keyframes[f],a=this.keyframes[f+1],f===g-1&&t>=a.t-i){n.h&&(n=a),d=0;break}if(a.t-i>t){d=f;break}f<g-1?f+=1:(d=0,m=!1)}o=this.keyframesMetadata[f]||{};var v,y=a.t-i,b=n.t-i;if(n.to){o.bezierData||(o.bezierData=bez.buildBezierData(n.s,a.s||n.e,n.to,n.ti));var _=o.bezierData;if(t>=y||t<b){var x=t>=y?_.points.length-1:0;for(l=_.points[x].point.length,s=0;s<l;s+=1)r[s]=_.points[x].point[s]}else{o.__fnct?u=o.__fnct:(u=BezierFactory.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,o.__fnct=u),p=u((t-b)/(y-b));var S,w=_.segmentLength*p,A=e.lastFrame<t&&e._lastKeyframeIndex===f?e._lastAddedLength:0;for(h=e.lastFrame<t&&e._lastKeyframeIndex===f?e._lastPoint:0,m=!0,c=_.points.length;m;){if(A+=_.points[h].partialLength,0===w||0===p||h===_.points.length-1){for(l=_.points[h].point.length,s=0;s<l;s+=1)r[s]=_.points[h].point[s];break}if(w>=A&&w<A+_.points[h+1].partialLength){for(S=(w-A)/_.points[h+1].partialLength,l=_.points[h].point.length,s=0;s<l;s+=1)r[s]=_.points[h].point[s]+(_.points[h+1].point[s]-_.points[h].point[s])*S;break}h<c-1?h+=1:m=!1}e._lastPoint=h,e._lastAddedLength=A-_.points[h].partialLength,e._lastKeyframeIndex=f}}else{var E,C,P,T,D;if(g=n.s.length,v=a.s||n.e,this.sh&&1!==n.h)t>=y?(r[0]=v[0],r[1]=v[1],r[2]=v[2]):t<=b?(r[0]=n.s[0],r[1]=n.s[1],r[2]=n.s[2]):quaternionToEuler(r,slerp(createQuaternion(n.s),createQuaternion(v),(t-b)/(y-b)));else for(f=0;f<g;f+=1)1!==n.h&&(t>=y?p=1:t<b?p=0:(n.o.x.constructor===Array?(o.__fnct||(o.__fnct=[]),o.__fnct[f]?u=o.__fnct[f]:(E=void 0===n.o.x[f]?n.o.x[0]:n.o.x[f],C=void 0===n.o.y[f]?n.o.y[0]:n.o.y[f],P=void 0===n.i.x[f]?n.i.x[0]:n.i.x[f],T=void 0===n.i.y[f]?n.i.y[0]:n.i.y[f],u=BezierFactory.getBezierEasing(E,C,P,T).get,o.__fnct[f]=u)):o.__fnct?u=o.__fnct:(E=n.o.x,C=n.o.y,P=n.i.x,T=n.i.y,u=BezierFactory.getBezierEasing(E,C,P,T).get,n.keyframeMetadata=u),p=u((t-b)/(y-b)))),v=a.s||n.e,D=1===n.h?n.s[f]:n.s[f]+(v[f]-n.s[f])*p,"multidimensional"===this.propType?r[f]=D:r=D}return e.lastIndex=d,r}function slerp(t,e,r){var i,n,a,o,s,l=[],p=t[0],c=t[1],h=t[2],u=t[3],d=e[0],f=e[1],g=e[2],m=e[3];return(n=p*d+c*f+h*g+u*m)<0&&(n=-n,d=-d,f=-f,g=-g,m=-m),1-n>1e-6?(i=Math.acos(n),a=Math.sin(i),o=Math.sin((1-r)*i)/a,s=Math.sin(r*i)/a):(o=1-r,s=r),l[0]=o*p+s*d,l[1]=o*c+s*f,l[2]=o*h+s*g,l[3]=o*u+s*m,l}function quaternionToEuler(t,e){var r=e[0],i=e[1],n=e[2],a=e[3],o=Math.atan2(2*i*a-2*r*n,1-2*i*i-2*n*n),s=Math.asin(2*r*i+2*n*a),l=Math.atan2(2*r*a-2*i*n,1-2*r*r-2*n*n);t[0]=o/degToRads,t[1]=s/degToRads,t[2]=l/degToRads}function createQuaternion(t){var e=t[0]*degToRads,r=t[1]*degToRads,i=t[2]*degToRads,n=Math.cos(e/2),a=Math.cos(r/2),o=Math.cos(i/2),s=Math.sin(e/2),l=Math.sin(r/2),p=Math.sin(i/2);return[s*l*o+n*a*p,s*a*o+n*l*p,n*l*o-s*a*p,n*a*o-s*l*p]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&t>=r||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(t,this._caching);this.pv=i}return this._caching.lastFrame=t,this.pv}function setVValue(t){var e;if("unidimensional"===this.propType)e=t*this.mult,mathAbs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)e=t[r]*this.mult,mathAbs(this.v[r]-e)>1e-5&&(this.v[r]=e,this._mdf=!0),r+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)r=this.effectsSequence[t](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ValueProperty(t,e,r,i){this.propType="unidimensional",this.mult=r||1,this.data=e,this.v=r?e.k*r:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(t,e,r,i){var n;this.propType="multidimensional",this.mult=r||1,this.data=e,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var a=e.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a),n=0;n<a;n+=1)this.v[n]=e.k[n]*this.mult,this.pv[n]=e.k[n];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(t,e,r,i){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=r||1,this.elem=t,this.container=i,this.comp=t.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(t,e,r,i){var n;this.propType="multidimensional";var a,o,s,l,p=e.k.length;for(n=0;n<p-1;n+=1)e.k[n].to&&e.k[n].s&&e.k[n+1]&&e.k[n+1].s&&(a=e.k[n].s,o=e.k[n+1].s,s=e.k[n].to,l=e.k[n].ti,(2===a.length&&(a[0]!==o[0]||a[1]!==o[1])&&bez.pointOnLine2D(a[0],a[1],o[0],o[1],a[0]+s[0],a[1]+s[1])&&bez.pointOnLine2D(a[0],a[1],o[0],o[1],o[0]+l[0],o[1]+l[1])||3===a.length&&(a[0]!==o[0]||a[1]!==o[1]||a[2]!==o[2])&&bez.pointOnLine3D(a[0],a[1],a[2],o[0],o[1],o[2],a[0]+s[0],a[1]+s[1],a[2]+s[2])&&bez.pointOnLine3D(a[0],a[1],a[2],o[0],o[1],o[2],o[0]+l[0],o[1]+l[1],o[2]+l[2]))&&(e.k[n].to=null,e.k[n].ti=null),a[0]===o[0]&&a[1]===o[1]&&0===s[0]&&0===s[1]&&0===l[0]&&0===l[1]&&(2===a.length||a[2]===o[2]&&0===s[2]&&0===l[2])&&(e.k[n].to=null,e.k[n].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=t,this.container=i,this.comp=t.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var c=e.k[0].s.length;for(this.v=createTypedArray("float32",c),this.pv=createTypedArray("float32",c),n=0;n<c;n+=1)this.v[n]=initFrame,this.pv[n]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",c)},this.addEffect=addEffect}var PropertyFactory=(ob={getProp:function(t,e,r,i,n){var a;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length)if("number"==typeof e.k[0])a=new MultiDimensionalProperty(t,e,i,n);else switch(r){case 0:a=new KeyframedValueProperty(t,e,i,n);break;case 1:a=new KeyframedMultidimensionalProperty(t,e,i,n)}else a=new ValueProperty(t,e,i,n);return a.effectsSequence.length&&n.addDynamicProperty(a),a}},ob),ob;function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var r=0;r<e;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,r,i,n){var a;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}(!a[i]||a[i]&&!n)&&(a[i]=pointPool.newElement()),a[i][0]=t,a[i][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,i,n,a,o,s){this.setXYAt(t,e,"v",o,s),this.setXYAt(r,i,"o",o,s),this.setXYAt(n,a,"i",o,s)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,i=this.i,n=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),n=1);var a,o=this._length-1,s=this._length;for(a=n;a<s;a+=1)t.setTripleAt(e[o][0],e[o][1],i[o][0],i[o][1],r[o][0],r[o][1],a,!1),o-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(t){var e,r=t._length;for(e=0;e<r;e+=1)pointPool.release(t.v[e]),pointPool.release(t.i[e]),pointPool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1})),factory.clone=function(t){var e,r=factory.newElement(),i=void 0===t._length?t.v.length:t._length;for(r.setLength(i),r.c=t.c,e=0;e<i;e+=1)r.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return r},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=function(){var t={newShapeCollection:function(){return e?i[e-=1]:new ShapeCollection},release:function(t){var n,a=t._length;for(n=0;n<a;n+=1)shapePool.release(t.shapes[n]);t._length=0,e===r&&(i=pooling.double(i),r*=2),i[e]=t,e+=1}},e=0,r=4,i=createSizedArray(r);return t}(),ShapePropertyFactory=function(){var t=-999999;function e(t,e,r){var i,n,a,o,s,l,p,c,h,u=r.lastIndex,d=this.keyframes;if(t<d[0].t-this.offsetTime)i=d[0].s[0],a=!0,u=0;else if(t>=d[d.length-1].t-this.offsetTime)i=d[d.length-1].s?d[d.length-1].s[0]:d[d.length-2].e[0],a=!0;else{for(var f,g,m,v=u,y=d.length-1,b=!0;b&&(f=d[v],!((g=d[v+1]).t-this.offsetTime>t));)v<y-1?v+=1:b=!1;if(m=this.keyframesMetadata[v]||{},u=v,!(a=1===f.h)){if(t>=g.t-this.offsetTime)c=1;else if(t<f.t-this.offsetTime)c=0;else{var _;m.__fnct?_=m.__fnct:(_=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,m.__fnct=_),c=_((t-(f.t-this.offsetTime))/(g.t-this.offsetTime-(f.t-this.offsetTime)))}n=g.s?g.s[0]:f.e[0]}i=f.s[0]}for(l=e._length,p=i.i[0].length,r.lastIndex=u,o=0;o<l;o+=1)for(s=0;s<p;s+=1)h=a?i.i[o][s]:i.i[o][s]+(n.i[o][s]-i.i[o][s])*c,e.i[o][s]=h,h=a?i.o[o][s]:i.o[o][s]+(n.o[o][s]-i.o[o][s])*c,e.o[o][s]=h,h=a?i.v[o][s]:i.v[o][s]+(n.v[o][s]-i.v[o][s])*c,e.v[o][s]=h}function r(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime,n=this._caching.lastFrame;return n!==t&&(n<r&&e<r||n>i&&e>i)||(this._caching.lastIndex=n<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function i(){this.paths=this.localShapeCollection}function n(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var r,i=t._length;for(r=0;r<i;r+=1)if(t.v[r][0]!==e.v[r][0]||t.v[r][1]!==e.v[r][1]||t.o[r][0]!==e.o[r][0]||t.o[r][1]!==e.o[r][1]||t.i[r][0]!==e.i[r][0]||t.i[r][1]!==e.i[r][1])return!1;return!0})(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var r=this.effectsSequence.length;for(e=0;e<r;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function o(t,e,r){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var n=3===r?e.pt.k:e.ks.k;this.v=shapePool.clone(n),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function s(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(e,n,a){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===a?n.pt.k:n.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var o=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,o),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=i,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[r.bind(this)]}o.prototype.interpolateShape=e,o.prototype.getValue=a,o.prototype.setVValue=n,o.prototype.addEffect=s,l.prototype.getValue=a,l.prototype.interpolateShape=e,l.prototype.setVValue=n,l.prototype.addEffect=s;var p=function(){var t=roundCorner;function e(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],r=this.p.v[1],i=this.s.v[0]/2,n=this.s.v[1]/2,a=3!==this.d,o=this.v;o.v[0][0]=e,o.v[0][1]=r-n,o.v[1][0]=a?e+i:e-i,o.v[1][1]=r,o.v[2][0]=e,o.v[2][1]=r+n,o.v[3][0]=a?e-i:e+i,o.v[3][1]=r,o.i[0][0]=a?e-i*t:e+i*t,o.i[0][1]=r-n,o.i[1][0]=a?e+i:e-i,o.i[1][1]=r-n*t,o.i[2][0]=a?e+i*t:e-i*t,o.i[2][1]=r+n,o.i[3][0]=a?e-i:e+i,o.i[3][1]=r+n*t,o.o[0][0]=a?e+i*t:e-i*t,o.o[0][1]=r-n,o.o[1][0]=a?e+i:e-i,o.o[1][1]=r+n*t,o.o[2][0]=a?e-i*t:e+i*t,o.o[2][1]=r+n,o.o[3][0]=a?e-i:e+i,o.o[3][1]=r-n*t}},extendPrototype([DynamicPropertyContainer],e),e}(),c=function(){function t(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,r,i,n=2*Math.floor(this.pt.v),a=2*Math.PI/n,o=!0,s=this.or.v,l=this.ir.v,p=this.os.v,c=this.is.v,h=2*Math.PI*s/(2*n),u=2*Math.PI*l/(2*n),d=-Math.PI/2;d+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<n;t+=1){r=o?p:c,i=o?h:u;var g=(e=o?s:l)*Math.cos(d),m=e*Math.sin(d),v=0===g&&0===m?0:m/Math.sqrt(g*g+m*m),y=0===g&&0===m?0:-g/Math.sqrt(g*g+m*m);g+=+this.p.v[0],m+=+this.p.v[1],this.v.setTripleAt(g,m,g-v*i*r*f,m-y*i*r*f,g+v*i*r*f,m+y*i*r*f,t,!0),o=!o,d+=a*f}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),r=2*Math.PI/e,i=this.or.v,n=this.os.v,a=2*Math.PI*i/(4*e),o=.5*-Math.PI,s=3===this.data.d?-1:1;for(o+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var l=i*Math.cos(o),p=i*Math.sin(o),c=0===l&&0===p?0:p/Math.sqrt(l*l+p*p),h=0===l&&0===p?0:-l/Math.sqrt(l*l+p*p);l+=+this.p.v[0],p+=+this.p.v[1],this.v.setTripleAt(l,p,l-c*a*n*s,p-h*a*n*s,l+c*a*n*s,p+h*a*n*s,t,!0),o+=r*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),h=function(){function t(t,e){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,n=bmMin(r,i,this.r.v),a=n*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+r,e-i+n,t+r,e-i+n,t+r,e-i+a,0,!0),this.v.setTripleAt(t+r,e+i-n,t+r,e+i-a,t+r,e+i-n,1,!0),0!==n?(this.v.setTripleAt(t+r-n,e+i,t+r-n,e+i,t+r-a,e+i,2,!0),this.v.setTripleAt(t-r+n,e+i,t-r+a,e+i,t-r+n,e+i,3,!0),this.v.setTripleAt(t-r,e+i-n,t-r,e+i-n,t-r,e+i-a,4,!0),this.v.setTripleAt(t-r,e-i+n,t-r,e-i+a,t-r,e-i+n,5,!0),this.v.setTripleAt(t-r+n,e-i,t-r+n,e-i,t-r+a,e-i,6,!0),this.v.setTripleAt(t+r-n,e-i,t+r-a,e-i,t+r-n,e-i,7,!0)):(this.v.setTripleAt(t-r,e+i,t-r+a,e+i,t-r,e+i,2),this.v.setTripleAt(t-r,e-i,t-r,e-i+a,t-r,e-i,3))):(this.v.setTripleAt(t+r,e-i+n,t+r,e-i+a,t+r,e-i+n,0,!0),0!==n?(this.v.setTripleAt(t+r-n,e-i,t+r-n,e-i,t+r-a,e-i,1,!0),this.v.setTripleAt(t-r+n,e-i,t-r+a,e-i,t-r+n,e-i,2,!0),this.v.setTripleAt(t-r,e-i+n,t-r,e-i+n,t-r,e-i+a,3,!0),this.v.setTripleAt(t-r,e+i-n,t-r,e+i-a,t-r,e+i-n,4,!0),this.v.setTripleAt(t-r+n,e+i,t-r+n,e+i,t-r+a,e+i,5,!0),this.v.setTripleAt(t+r-n,e+i,t+r-a,e+i,t+r-n,e+i,6,!0),this.v.setTripleAt(t+r,e+i-n,t+r,e+i-n,t+r,e+i-a,7,!0)):(this.v.setTripleAt(t-r,e-i,t-r+a,e-i,t-r,e-i,1,!0),this.v.setTripleAt(t-r,e+i,t-r,e+i-a,t-r,e+i,2,!0),this.v.setTripleAt(t+r,e+i,t+r-a,e+i,t+r,e+i,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],t),t}(),u={getShapeProp:function(t,e,r){var i;return 3===r||4===r?i=(3===r?e.pt:e.ks).k.length?new l(t,e,r):new o(t,e,r):5===r?i=new h(t,e):6===r?i=new p(t,e):7===r&&(i=new c(t,e)),i.k&&t.addDynamicProperty(i),i},getConstructorFunction:function(){return o},getKeyframedConstructorFunction:function(){return l}};return u}(),Matrix=function(){var t=Math.cos,e=Math.sin,r=Math.tan,i=Math.round;function n(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(r){if(0===r)return this;var i=t(r),n=e(r);return this._t(i,-n,0,0,n,i,0,0,0,0,1,0,0,0,0,1)}function o(r){if(0===r)return this;var i=t(r),n=e(r);return this._t(1,0,0,0,0,i,-n,0,0,n,i,0,0,0,0,1)}function s(r){if(0===r)return this;var i=t(r),n=e(r);return this._t(i,0,n,0,0,1,0,0,-n,0,i,0,0,0,0,1)}function l(r){if(0===r)return this;var i=t(r),n=e(r);return this._t(i,-n,0,0,n,i,0,0,0,0,1,0,0,0,0,1)}function p(t,e){return this._t(1,e,t,1,0,0)}function c(t,e){return this.shear(r(t),r(e))}function h(i,n){var a=t(n),o=e(n);return this._t(a,o,0,0,-o,a,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(i),1,0,0,0,0,1,0,0,0,0,1)._t(a,-o,0,0,o,a,0,0,0,0,1,0,0,0,0,1)}function u(t,e,r){return r||0===r||(r=1),1===t&&1===e&&1===r?this:this._t(t,0,0,0,0,e,0,0,0,0,r,0,0,0,0,1)}function d(t,e,r,i,n,a,o,s,l,p,c,h,u,d,f,g){return this.props[0]=t,this.props[1]=e,this.props[2]=r,this.props[3]=i,this.props[4]=n,this.props[5]=a,this.props[6]=o,this.props[7]=s,this.props[8]=l,this.props[9]=p,this.props[10]=c,this.props[11]=h,this.props[12]=u,this.props[13]=d,this.props[14]=f,this.props[15]=g,this}function f(t,e,r){return r=r||0,0!==t||0!==e||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,r,1):this}function g(t,e,r,i,n,a,o,s,l,p,c,h,u,d,f,g){var m=this.props;if(1===t&&0===e&&0===r&&0===i&&0===n&&1===a&&0===o&&0===s&&0===l&&0===p&&1===c&&0===h)return m[12]=m[12]*t+m[15]*u,m[13]=m[13]*a+m[15]*d,m[14]=m[14]*c+m[15]*f,m[15]*=g,this._identityCalculated=!1,this;var v=m[0],y=m[1],b=m[2],_=m[3],x=m[4],S=m[5],w=m[6],A=m[7],E=m[8],C=m[9],P=m[10],T=m[11],D=m[12],M=m[13],k=m[14],I=m[15];return m[0]=v*t+y*n+b*l+_*u,m[1]=v*e+y*a+b*p+_*d,m[2]=v*r+y*o+b*c+_*f,m[3]=v*i+y*s+b*h+_*g,m[4]=x*t+S*n+w*l+A*u,m[5]=x*e+S*a+w*p+A*d,m[6]=x*r+S*o+w*c+A*f,m[7]=x*i+S*s+w*h+A*g,m[8]=E*t+C*n+P*l+T*u,m[9]=E*e+C*a+P*p+T*d,m[10]=E*r+C*o+P*c+T*f,m[11]=E*i+C*s+P*h+T*g,m[12]=D*t+M*n+k*l+I*u,m[13]=D*e+M*a+k*p+I*d,m[14]=D*r+M*o+k*c+I*f,m[15]=D*i+M*s+k*h+I*g,this._identityCalculated=!1,this}function m(t){var e=t.props;return this.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function v(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function y(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function b(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function _(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function x(t,e,r){return{x:t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}}function S(t,e,r){return t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12]}function w(t,e,r){return t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13]}function A(t,e,r){return t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}function E(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,r=-this.props[1]/t,i=-this.props[4]/t,n=this.props[0]/t,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,s=new Matrix;return s.props[0]=e,s.props[1]=r,s.props[4]=i,s.props[5]=n,s.props[12]=a,s.props[13]=o,s}function C(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function P(t){var e,r=t.length,i=[];for(e=0;e<r;e+=1)i[e]=C(t[e]);return i}function T(t,e,r){var i=createTypedArray("float32",6);if(this.isIdentity())i[0]=t[0],i[1]=t[1],i[2]=e[0],i[3]=e[1],i[4]=r[0],i[5]=r[1];else{var n=this.props[0],a=this.props[1],o=this.props[4],s=this.props[5],l=this.props[12],p=this.props[13];i[0]=t[0]*n+t[1]*o+l,i[1]=t[0]*a+t[1]*s+p,i[2]=e[0]*n+e[1]*o+l,i[3]=e[0]*a+e[1]*s+p,i[4]=r[0]*n+r[1]*o+l,i[5]=r[0]*a+r[1]*s+p}return i}function D(t,e,r){return this.isIdentity()?[t,e,r]:[t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]]}function M(t,e){if(this.isIdentity())return t+","+e;var r=this.props;return Math.round(100*(t*r[0]+e*r[4]+r[12]))/100+","+Math.round(100*(t*r[1]+e*r[5]+r[13]))/100}function k(){for(var t=0,e=this.props,r="matrix3d(";t<16;)r+=i(1e4*e[t])/1e4,r+=15===t?")":",",t+=1;return r}function I(t){return t<1e-6&&t>0||t>-1e-6&&t<0?i(1e4*t)/1e4:t}function R(){var t=this.props;return"matrix("+I(t[0])+","+I(t[1])+","+I(t[4])+","+I(t[5])+","+I(t[12])+","+I(t[13])+")"}return function(){this.reset=n,this.rotate=a,this.rotateX=o,this.rotateY=s,this.rotateZ=l,this.skew=c,this.skewFromAxis=h,this.shear=p,this.scale=u,this.setTransform=d,this.translate=f,this.transform=g,this.multiply=m,this.applyToPoint=x,this.applyToX=S,this.applyToY=w,this.applyToZ=A,this.applyToPointArray=D,this.applyToTriplePoints=T,this.applyToPointStringified=M,this.toCSS=k,this.to2dCSS=R,this.clone=b,this.cloneFromProps=_,this.equals=y,this.inversePoints=P,this.inversePoint=C,this.getInverseMatrix=E,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$3(t)}var lottie={};function setLocation(t){setLocationHref(t)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),r=0;r<e.length;r+=1){var i=e[r].split("=");if(decodeURIComponent(i[0])==t)return decodeURIComponent(i[1])}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";var queryString="",scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer");var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&(window.bodymovin=lottie)}catch(err){}var ShapeModifiers=function(){var t={},e={};return t.registerModifier=function(t,r){e[t]||(e[t]=r)},t.getModifier=function(t,r,i){return new e[t](r,i)},t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,r,i,n){var a=[];e<=1?a.push({s:t,e:e}):t>=1?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var o,s,l=[],p=a.length;for(o=0;o<p;o+=1){var c,h;(s=a[o]).e*n<i||s.s*n>i+r||(c=s.s*n<=i?0:(s.s*n-i)/r,h=s.e*n>=i+r?1:(s.e*n-i)/r,l.push([c,h]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;e<r;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,r,i,n;if(this._mdf||t){var a=this.o.v%360/360;if(a<0&&(a+=1),(e=this.s.v>1?1+a:this.s.v<0?0+a:this.s.v+a)>(r=this.e.v>1?1+a:this.e.v<0?0+a:this.e.v+a)){var o=e;e=r,r=o}e=1e-4*Math.round(1e4*e),r=1e-4*Math.round(1e4*r),this.sValue=e,this.eValue=r}else e=this.sValue,r=this.eValue;var s,l,p,c,h,u=this.shapes.length,d=0;if(r===e)for(n=0;n<u;n+=1)this.shapes[n].localShapeCollection.releaseShapes(),this.shapes[n].shape._mdf=!0,this.shapes[n].shape.paths=this.shapes[n].localShapeCollection,this._mdf&&(this.shapes[n].pathsData.length=0);else if(1===r&&0===e||0===r&&1===e){if(this._mdf)for(n=0;n<u;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0}else{var f,g,m=[];for(n=0;n<u;n+=1)if((f=this.shapes[n]).shape._mdf||this._mdf||t||2===this.m){if(l=(i=f.shape.paths)._length,h=0,!f.shape._mdf&&f.pathsData.length)h=f.totalShapeLength;else{for(p=this.releasePathsData(f.pathsData),s=0;s<l;s+=1)c=bez.getSegmentsLength(i.shapes[s]),p.push(c),h+=c.totalLength;f.totalShapeLength=h,f.pathsData=p}d+=h,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var v,y=e,b=r,_=0;for(n=u-1;n>=0;n-=1)if((f=this.shapes[n]).shape._mdf){for((g=f.localShapeCollection).releaseShapes(),2===this.m&&u>1?(v=this.calculateShapeEdges(e,r,f.totalShapeLength,_,d),_+=f.totalShapeLength):v=[[y,b]],l=v.length,s=0;s<l;s+=1){y=v[s][0],b=v[s][1],m.length=0,b<=1?m.push({s:f.totalShapeLength*y,e:f.totalShapeLength*b}):y>=1?m.push({s:f.totalShapeLength*(y-1),e:f.totalShapeLength*(b-1)}):(m.push({s:f.totalShapeLength*y,e:f.totalShapeLength}),m.push({s:0,e:f.totalShapeLength*(b-1)}));var x=this.addShapes(f,m[0]);if(m[0].s!==m[0].e){if(m.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var S=x.pop();this.addPaths(x,g),x=this.addShapes(f,m[1],S)}else this.addPaths(x,g),x=this.addShapes(f,m[1]);this.addPaths(x,g)}}f.shape.paths=g}}},TrimModifier.prototype.addPaths=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)e.addShape(t[r])},TrimModifier.prototype.addSegment=function(t,e,r,i,n,a,o){n.setXYAt(e[0],e[1],"o",a),n.setXYAt(r[0],r[1],"i",a+1),o&&n.setXYAt(t[0],t[1],"v",a),n.setXYAt(i[0],i[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,r,i){e.setXYAt(t[1],t[5],"o",r),e.setXYAt(t[2],t[6],"i",r+1),i&&e.setXYAt(t[0],t[4],"v",r),e.setXYAt(t[3],t[7],"v",r+1)},TrimModifier.prototype.addShapes=function(t,e,r){var i,n,a,o,s,l,p,c,h=t.pathsData,u=t.shape.paths.shapes,d=t.shape.paths._length,f=0,g=[],m=!0;for(r?(s=r._length,c=r._length):(r=shapePool.newElement(),s=0,c=0),g.push(r),i=0;i<d;i+=1){for(l=h[i].lengths,r.c=u[i].c,a=u[i].c?l.length:l.length+1,n=1;n<a;n+=1)if(f+(o=l[n-1]).addedLength<e.s)f+=o.addedLength,r.c=!1;else{if(f>e.e){r.c=!1;break}e.s<=f&&e.e>=f+o.addedLength?(this.addSegment(u[i].v[n-1],u[i].o[n-1],u[i].i[n],u[i].v[n],r,s,m),m=!1):(p=bez.getNewSegment(u[i].v[n-1],u[i].v[n],u[i].o[n-1],u[i].i[n],(e.s-f)/o.addedLength,(e.e-f)/o.addedLength,l[n-1]),this.addSegmentFromArray(p,r,s,m),m=!1,r.c=!1),f+=o.addedLength,s+=1}if(u[i].c&&l.length){if(o=l[n-1],f<=e.e){var v=l[n-1].addedLength;e.s<=f&&e.e>=f+v?(this.addSegment(u[i].v[n-1],u[i].o[n-1],u[i].i[0],u[i].v[0],r,s,m),m=!1):(p=bez.getNewSegment(u[i].v[n-1],u[i].v[0],u[i].o[n-1],u[i].i[0],(e.s-f)/v,(e.e-f)/v,l[n-1]),this.addSegmentFromArray(p,r,s,m),m=!1,r.c=!1)}else r.c=!1;f+=o.addedLength,s+=1}if(r._length&&(r.setXYAt(r.v[c][0],r.v[c][1],"i",c),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),f>e.e)break;i<d-1&&(r=shapePool.newElement(),m=!0,g.push(r),s=0)}return g},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var r=e/100,i=[0,0],n=t._length,a=0;for(a=0;a<n;a+=1)i[0]+=t.v[a][0],i[1]+=t.v[a][1];i[0]/=n,i[1]/=n;var o,s,l,p,c,h,u=shapePool.newElement();for(u.c=t.c,a=0;a<n;a+=1)o=t.v[a][0]+(i[0]-t.v[a][0])*r,s=t.v[a][1]+(i[1]-t.v[a][1])*r,l=t.o[a][0]+(i[0]-t.o[a][0])*-r,p=t.o[a][1]+(i[1]-t.o[a][1])*-r,c=t.i[a][0]+(i[0]-t.i[a][0])*-r,h=t.i[a][1]+(i[1]-t.i[a][1])*-r,u.setTripleAt(o,s,l,p,c,h,a);return u},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,r,i,n,a,o,s=this.shapes.length,l=this.amount.v;if(0!==l)for(r=0;r<s;r+=1){if(o=(a=this.shapes[r]).localShapeCollection,a.shape._mdf||this._mdf||t)for(o.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,n=a.shape.paths._length,i=0;i<n;i+=1)o.addShape(this.processPath(e[i],l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(t,e,r){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var i,n=e.or.k.length;for(i=0;i<n;i+=1)e.or.k[i].to=null,e.or.k[i].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var r;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var i,n;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(i=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),n=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(i=this.p.pv,n=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){i=[],n=[];var a=this.px,o=this.py;a._caching.lastFrame+a.offsetTime<=a.keyframes[0].t?(i[0]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),i[1]=o.getValueAtTime((o.keyframes[0].t+.01)/r,0),n[0]=a.getValueAtTime(a.keyframes[0].t/r,0),n[1]=o.getValueAtTime(o.keyframes[0].t/r,0)):a._caching.lastFrame+a.offsetTime>=a.keyframes[a.keyframes.length-1].t?(i[0]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),i[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/r,0),n[0]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0),n[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/r,0)):(i=[a.pv,o.pv],n[0]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime),n[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/r,o.offsetTime))}else i=n=t;this.v.rotate(-Math.atan2(i[1]-n[1],i[0]-n[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}},precalculateMatrix:function(){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,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}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)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,r,i){return new e(t,r,i)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,r){return t*(1-r)+e*r}function lerpPoint(t,e,r){return[lerp(t[0],e[0],r),lerp(t[1],e[1],r)]}function quadRoots(t,e,r){if(0===t)return[];var i=e*e-4*t*r;if(i<0)return[];var n=-e/(2*t);if(0===i)return[n];var a=Math.sqrt(i)/(2*t);return[n-a,n+a]}function polynomialCoefficients(t,e,r,i){return[3*e-t-3*r+i,3*t-6*e+3*r,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,r,i,n){n&&pointEqual(t,e)&&(e=lerpPoint(t,i,1/3)),n&&pointEqual(r,i)&&(r=lerpPoint(t,i,2/3));var a=polynomialCoefficients(t[0],e[0],r[0],i[0]),o=polynomialCoefficients(t[1],e[1],r[1],i[1]);this.a=[a[0],o[0]],this.b=[a[1],o[1]],this.c=[a[2],o[2]],this.d=[a[3],o[3]],this.points=[t,e,r,i]}function extrema(t,e){var r=t.points[0][e],i=t.points[t.points.length-1][e];if(r>i){var n=i;i=r,r=n}for(var a=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),o=0;o<a.length;o+=1)if(a[o]>0&&a[o]<1){var s=t.point(a[o])[e];s<r?r=s:s>i&&(i=s)}return{min:r,max:i}}function intersectData(t,e,r){var i=t.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:t,t:(e+r)/2,t1:e,t2:r}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,r,i,n,a){if(boxIntersect(t,e))if(r>=a||t.width<=i&&t.height<=i&&e.width<=i&&e.height<=i)n.push([t.t,e.t]);else{var o=splitData(t),s=splitData(e);intersectsImpl(o[0],s[0],r+1,i,n,a),intersectsImpl(o[0],s[1],r+1,i,n,a),intersectsImpl(o[1],s[0],r+1,i,n,a),intersectsImpl(o[1],s[1],r+1,i,n,a)}}function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,r,i){var n=[t[0],t[1],1],a=[e[0],e[1],1],o=[r[0],r[1],1],s=[i[0],i[1],1],l=crossProduct(crossProduct(n,a),crossProduct(o,s));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(t,e,r){return[t[0]+Math.cos(e)*r,t[1]-Math.sin(e)*r]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,r,i,n,a,o){var s=r-Math.PI/2,l=r+Math.PI/2,p=e[0]+Math.cos(r)*i*n,c=e[1]-Math.sin(r)*i*n;t.setTripleAt(p,c,p+Math.cos(s)*a,c-Math.sin(s)*a,p+Math.cos(l)*o,c-Math.sin(l)*o,t.length())}function getPerpendicularVector(t,e){var r=[e[0]-t[0],e[1]-t[1]],i=.5*-Math.PI;return[Math.cos(i)*r[0]-Math.sin(i)*r[1],Math.sin(i)*r[0]+Math.cos(i)*r[1]]}function getProjectingAngle(t,e){var r=0===e?t.length()-1:e-1,i=(e+1)%t.length(),n=getPerpendicularVector(t.v[r],t.v[i]);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(t,e,r,i,n,a,o){var s=getProjectingAngle(e,r),l=e.v[r%e._length],p=e.v[0===r?e._length-1:r-1],c=e.v[(r+1)%e._length],h=2===a?Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)):0,u=2===a?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0;setPoint(t,e.v[r%e._length],s,o,i,u/(2*(n+1)),h/(2*(n+1)))}function zigZagSegment(t,e,r,i,n,a){for(var o=0;o<i;o+=1){var s=(o+1)/(i+1),l=2===n?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,p=e.normalAngle(s);setPoint(t,e.point(s),p,a,r,l/(2*(i+1)),l/(2*(i+1))),a=-a}return a}function linearOffset(t,e,r){var i=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,i,r),polarOffset(e,i,r)]}function offsetSegment(t,e){var r,i,n,a,o,s,l;r=(l=linearOffset(t.points[0],t.points[1],e))[0],i=l[1],n=(l=linearOffset(t.points[1],t.points[2],e))[0],a=l[1],o=(l=linearOffset(t.points[2],t.points[3],e))[0],s=l[1];var p=lineIntersection(r,i,n,a);null===p&&(p=i);var c=lineIntersection(o,s,n,a);return null===c&&(c=o),new PolynomialBezier(r,p,c,s)}function joinLines(t,e,r,i,n){var a=e.points[3],o=r.points[0];if(3===i)return a;if(pointEqual(a,o))return a;if(2===i){var s=-e.tangentAngle(1),l=-r.tangentAngle(0)+Math.PI,p=lineIntersection(a,polarOffset(a,s+Math.PI/2,100),o,polarOffset(o,s+Math.PI/2,100)),c=p?pointDistance(p,a):pointDistance(a,o)/2,h=polarOffset(a,s,2*c*roundCorner);return t.setXYAt(h[0],h[1],"o",t.length()-1),h=polarOffset(o,l,2*c*roundCorner),t.setTripleAt(o[0],o[1],o[0],o[1],h[0],h[1],t.length()),o}var u=lineIntersection(pointEqual(a,e.points[2])?e.points[0]:e.points[2],a,o,pointEqual(o,r.points[1])?r.points[3]:r.points[1]);return u&&pointDistance(u,a)<n?(t.setTripleAt(u[0],u[1],u[0],u[1],u[0],u[1],t.length()),u):a}function getIntersection(t,e){var r=t.intersections(e);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(t,e){var r=t.slice(),i=e.slice(),n=getIntersection(t[t.length-1],e[0]);return n&&(r[t.length-1]=t[t.length-1].split(n[0])[0],i[0]=e[0].split(n[1])[1]),t.length>1&&e.length>1&&(n=getIntersection(t[0],e[e.length-1]))?[[t[0].split(n[0])[0]],[e[e.length-1].split(n[1])[1]]]:[r,i]}function pruneIntersections(t){for(var e,r=1;r<t.length;r+=1)e=pruneSegmentIntersection(t[r-1],t[r]),t[r-1]=e[0],t[r]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var r,i,n,a,o=t.inflectionPoints();if(0===o.length)return[offsetSegment(t,e)];if(1===o.length||floatEqual(o[1],1))return r=(n=t.split(o[0]))[0],i=n[1],[offsetSegment(r,e),offsetSegment(i,e)];r=(n=t.split(o[0]))[0];var s=(o[1]-o[0])/(1-o[0]);return a=(n=n[1].split(s))[0],i=n[1],[offsetSegment(r,e),offsetSegment(a,e),offsetSegment(i,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],r="normal",i="normal",n=e.length,a=0;a<n;a+=1)switch(e[a].toLowerCase()){case"italic":i="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:i,weight:t.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,r,i,n,a){var o=a?-1:1,s=i.s.v[0]+(1-i.s.v[0])*(1-n),l=i.s.v[1]+(1-i.s.v[1])*(1-n);t.translate(i.p.v[0]*o*n,i.p.v[1]*o*n,i.p.v[2]),e.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),e.rotate(-i.r.v*o*n),e.translate(i.a.v[0],i.a.v[1],i.a.v[2]),r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),r.scale(a?1/s:s,a?1/l:l),r.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(t,e,r,i){for(this.elem=t,this.arr=e,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[r]);r>0;)r-=1,this._elements.unshift(e[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)t[r]._render=e,"gr"===t[r].ty&&this.changeGroupRender(t[r].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,r,i,n,a,o=!1;if(this._mdf||t){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var p={it:this.cloneElements(this._elements),ty:"gr"};p.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,p),this._groups.splice(0,0,p),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}for(a=0,i=0;i<=this._groups.length-1;i+=1){if(s=a<l,this._groups[i]._render=s,this.changeGroupRender(this._groups[i].it,s),!s){var c=this.elemsData[i].it,h=c[c.length-1];0!==h.transform.op.v?(h.transform.op._mdf=!0,h.transform.op.v=0):h.transform.op._mdf=!1}a+=1}this._currentCopies=l;var u=this.o.v,d=u%1,f=u>0?Math.floor(u):Math.ceil(u),g=this.pMatrix.props,m=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,b,_=0;if(u>0){for(;_<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,d,!1),_+=d)}else if(u<0){for(;_>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-d,!0),_-=d)}for(i=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,a=this._currentCopies;a;){if(b=(r=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),0!==_){for((0!==i&&1===n||i!==this._currentCopies-1&&-1===n)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),y=0;y<b;y+=1)r[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<b;y+=1)r[y]=this.matrix.props[y];_+=1,a-=1,i+=n}}else for(a=this._currentCopies,i=0,n=1;a;)r=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,a-=1,i+=n;return o},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var r,i=shapePool.newElement();i.c=t.c;var n,a,o,s,l,p,c,h,u,d,f,g,m=t._length,v=0;for(r=0;r<m;r+=1)n=t.v[r],o=t.o[r],a=t.i[r],n[0]===o[0]&&n[1]===o[1]&&n[0]===a[0]&&n[1]===a[1]?0!==r&&r!==m-1||t.c?(s=0===r?t.v[m-1]:t.v[r-1],p=(l=Math.sqrt(Math.pow(n[0]-s[0],2)+Math.pow(n[1]-s[1],2)))?Math.min(l/2,e)/l:0,c=f=n[0]+(s[0]-n[0])*p,h=g=n[1]-(n[1]-s[1])*p,u=c-(c-n[0])*roundCorner,d=h-(h-n[1])*roundCorner,i.setTripleAt(c,h,u,d,f,g,v),v+=1,s=r===m-1?t.v[0]:t.v[r+1],p=(l=Math.sqrt(Math.pow(n[0]-s[0],2)+Math.pow(n[1]-s[1],2)))?Math.min(l/2,e)/l:0,c=u=n[0]+(s[0]-n[0])*p,h=d=n[1]+(s[1]-n[1])*p,f=c-(c-n[0])*roundCorner,g=h-(h-n[1])*roundCorner,i.setTripleAt(c,h,u,d,f,g,v),v+=1):(i.setTripleAt(n[0],n[1],o[0],o[1],a[0],a[1],v),v+=1):(i.setTripleAt(t.v[r][0],t.v[r][1],t.o[r][0],t.o[r][1],t.i[r][0],t.i[r][1],v),v+=1);return i},RoundCornersModifier.prototype.processShapes=function(t){var e,r,i,n,a,o,s=this.shapes.length,l=this.rd.v;if(0!==l)for(r=0;r<s;r+=1){if(o=(a=this.shapes[r]).localShapeCollection,a.shape._mdf||this._mdf||t)for(o.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,n=a.shape.paths._length,i=0;i<n;i+=1)o.addShape(this.processPath(e[i],l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,r=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(r<0)return[];var i=Math.sqrt(r);return floatZero(i)?i>0&&i<1?[e]:[]:[e-i,e+i].filter((function(t){return t>0&&t<1}))},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),r=lerpPoint(this.points[1],this.points[2],t),i=lerpPoint(this.points[2],this.points[3],t),n=lerpPoint(e,r,t),a=lerpPoint(r,i,t),o=lerpPoint(n,a,t);return[new PolynomialBezier(this.points[0],e,n,o,!0),new PolynomialBezier(o,a,i,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},PolynomialBezier.prototype.intersections=function(t,e,r){void 0===e&&(e=2),void 0===r&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,i,r),i},PolynomialBezier.shapeSegment=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[r],t.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[r],t.i[r],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(t,e,r,i){var n=t._length,a=shapePool.newElement();if(a.c=t.c,t.c||(n-=1),0===n)return a;var o=-1,s=PolynomialBezier.shapeSegment(t,0);zigZagCorner(a,t,0,e,r,i,o);for(var l=0;l<n;l+=1)o=zigZagSegment(a,s,e,r,i,-o),s=l!==n-1||t.c?PolynomialBezier.shapeSegment(t,(l+1)%n):null,zigZagCorner(a,t,l+1,e,r,i,o);return a},ZigZagModifier.prototype.processShapes=function(t){var e,r,i,n,a,o,s=this.shapes.length,l=this.amplitude.v,p=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(0!==l)for(r=0;r<s;r+=1){if(o=(a=this.shapes[r]).localShapeCollection,a.shape._mdf||this._mdf||t)for(o.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,n=a.shape.paths._length,i=0;i<n;i+=1)o.addShape(this.processPath(e[i],l,p,c));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(t,e,r,i){var n=shapePool.newElement();n.c=t.c;var a,o,s,l=t.length();t.c||(l-=1);var p=[];for(a=0;a<l;a+=1)s=PolynomialBezier.shapeSegment(t,a),p.push(offsetSegmentSplit(s,e));if(!t.c)for(a=l-1;a>=0;a-=1)s=PolynomialBezier.shapeSegmentInverted(t,a),p.push(offsetSegmentSplit(s,e));p=pruneIntersections(p);var c=null,h=null;for(a=0;a<p.length;a+=1){var u=p[a];for(h&&(c=joinLines(n,h,u[0],r,i)),h=u[u.length-1],o=0;o<u.length;o+=1)s=u[o],c&&pointEqual(s.points[0],c)?n.setXYAt(s.points[1][0],s.points[1][1],"o",n.length()-1):n.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],n.length()),n.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],n.length()),c=s.points[3]}return p.length&&joinLines(n,h,p[0][0],r,i),n},OffsetPathModifier.prototype.processShapes=function(t){var e,r,i,n,a,o,s=this.shapes.length,l=this.amount.v,p=this.miterLimit.v,c=this.lineJoin;if(0!==l)for(r=0;r<s;r+=1){if(o=(a=this.shapes[r]).localShapeCollection,a.shape._mdf||this._mdf||t)for(o.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,n=a.shape.paths._length,i=0;i<n;i+=1)o.addShape(this.processPath(e[i],l,c,p));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=127988,i=127462,n=127487,a=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function o(t,e){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=e;var i=createTag("span");i.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(i),document.body.appendChild(r);var n=i.offsetWidth;return i.style.fontFamily=function(t){var e,r=t.split(","),i=r.length,n=[];for(e=0;e<i;e+=1)"sans-serif"!==r[e]&&"monospace"!==r[e]&&n.push(r[e]);return n.join(",")}(t)+", "+e,{node:i,w:n,parent:r}}function s(t,e){var r,i=document.body&&e?"svg":"canvas",n=getFontProperties(t);if("svg"===i){var a=createNS("text");a.style.fontSize="100px",a.setAttribute("font-family",t.fFamily),a.setAttribute("font-style",n.style),a.setAttribute("font-weight",n.weight),a.textContent="1",t.fClass?(a.style.fontFamily="inherit",a.setAttribute("class",t.fClass)):a.style.fontFamily=t.fFamily,e.appendChild(a),r=a}else{var o=new OffscreenCanvas(500,500).getContext("2d");o.font=n.style+" "+n.weight+" 100px "+t.fFamily,r=o}return{measureText:function(t){return"svg"===i?(r.textContent=t,r.getComputedTextLength()):r.measureText(t).width}}}function l(t){var e=0,r=t.charCodeAt(0);if(r>=55296&&r<=56319){var i=t.charCodeAt(1);i>=56320&&i<=57343&&(e=1024*(r-55296)+i-56320+65536)}return e}function p(t){var e=l(t);return e>=i&&e<=n}var c=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)};c.isModifier=function(t,e){var r=t.toString(16)+e.toString(16);return-1!==a.indexOf(r)},c.isZeroWidthJoiner=function(t){return 8205===t},c.isFlagEmoji=function(t){return p(t.substr(0,2))&&p(t.substr(2,2))},c.isRegionalCode=p,c.isCombinedCharacter=function(t){return-1!==e.indexOf(t)},c.isRegionalFlag=function(t,e){var i=l(t.substr(e,2));if(i!==r)return!1;var n=0;for(e+=2;n<5;){if((i=l(t.substr(e,2)))<917601||i>917626)return!1;n+=1,e+=2}return 917631===l(t.substr(e,2))},c.isVariationSelector=function(t){return 65039===t},c.BLACK_FLAG_CODE_POINT=r;var h={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var r,i,n=t.length,a=this.chars.length;for(e=0;e<n;e+=1){for(r=0,i=!1;r<a;)this.chars[r].style===t[e].style&&this.chars[r].fFamily===t[e].fFamily&&this.chars[r].ch===t[e].ch&&(i=!0),r+=1;i||(this.chars.push(t[e]),a+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach((function(t){t.helper=s(t),t.cache={}})),void(this.fonts=t.list);var r,i=t.list,n=i.length,a=n;for(r=0;r<n;r+=1){var l,p,c=!0;if(i[r].loaded=!1,i[r].monoCase=o(i[r].fFamily,"monospace"),i[r].sansCase=o(i[r].fFamily,"sans-serif"),i[r].fPath){if("p"===i[r].fOrigin||3===i[r].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+i[r].fFamily+'"], style[f-origin="3"][f-family="'+i[r].fFamily+'"]')).length>0&&(c=!1),c){var h=createTag("style");h.setAttribute("f-forigin",i[r].fOrigin),h.setAttribute("f-origin",i[r].origin),h.setAttribute("f-family",i[r].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+i[r].fFamily+"; font-style: normal; src: url('"+i[r].fPath+"');}",e.appendChild(h)}}else if("g"===i[r].fOrigin||1===i[r].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),p=0;p<l.length;p+=1)-1!==l[p].href.indexOf(i[r].fPath)&&(c=!1);if(c){var u=createTag("link");u.setAttribute("f-forigin",i[r].fOrigin),u.setAttribute("f-origin",i[r].origin),u.type="text/css",u.rel="stylesheet",u.href=i[r].fPath,document.body.appendChild(u)}}else if("t"===i[r].fOrigin||2===i[r].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),p=0;p<l.length;p+=1)i[r].fPath===l[p].src&&(c=!1);if(c){var d=createTag("link");d.setAttribute("f-forigin",i[r].fOrigin),d.setAttribute("f-origin",i[r].origin),d.setAttribute("rel","stylesheet"),d.setAttribute("href",i[r].fPath),e.appendChild(d)}}}else i[r].loaded=!0,a-=1;i[r].helper=s(i[r],e),i[r].cache={},this.fonts.push(i[r])}0===a?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,r,i){for(var n=0,a=this.chars.length;n<a;){if(this.chars[n].ch===e&&this.chars[n].style===r&&this.chars[n].fFamily===i)return this.chars[n];n+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,r,i)),t},getFontByName:function(t){for(var e=0,r=this.fonts.length;e<r;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,r){var i=this.getFontByName(e),n=t;if(!i.cache[n]){var a=i.helper;if(" "===t){var o=a.measureText("|"+t+"|"),s=a.measureText("||");i.cache[n]=(o-s)/100}else i.cache[n]=a.measureText(t)/100}return i.cache[n]*r},checkLoadedFonts:function(){var t,e,r,i=this.fonts.length,n=i;for(t=0;t<i;t+=1)this.fonts[t].loaded?n-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,r=this.fonts[t].monoCase.w,e.offsetWidth!==r?(n-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,r=this.fonts[t].sansCase.w,e.offsetWidth!==r&&(n-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==n&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return c.prototype=h,c}();function SlotManager(t){this.animationData=t}function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&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?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return blendModeEnums[t]||""}),blendModeEnums;function SliderEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function AngleEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function ColorEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function PointEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function LayerIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function MaskIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function CheckboxEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var r,i=t.ef||[];this.effectElements=[];var n,a=i.length;for(r=0;r<a;r+=1)n=new GroupEffect(i[r],e),this.effectElements.push(n)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,r)}function AudioElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,r),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){var r;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var i,n=this.data.ef.length,a=this.data.ef;for(r=0;r<n;r+=1){switch(i=null,a[r].ty){case 0:i=new SliderEffect(a[r],e,this);break;case 1:i=new AngleEffect(a[r],e,this);break;case 2:i=new ColorEffect(a[r],e,this);break;case 3:i=new PointEffect(a[r],e,this);break;case 4:case 7:i=new CheckboxEffect(a[r],e,this);break;case 10:i=new LayerIndexEffect(a[r],e,this);break;case 11:i=new MaskIndexEffect(a[r],e,this);break;case 5:i=new EffectsManager(a[r],e);break;default:i=new NoValueEffect(a[r])}i&&this.effectElements.push(i)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t("layer"),r=t("effects"),i=t("shape"),n=t("text"),a=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var o=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(o),0===this.data.ty||this.data.xt?this.compInterface=a(this):4===this.data.ty?(this.layerInterface.shapeInterface=i(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=n(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,r){this.globalData=e,this.comp=r,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var r,i=this.dynamicProperties.length;for(r=0;r<i;r+=1)(e||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();if(t){var e=t("footage");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*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(){},BaseRenderer.prototype.checkLayers=function(t){var e,r,i=this.layers.length;for(this.completeLayers=!0,e=i-1;e>=0;e-=1)this.elements[e]||(r=this.layers[e]).ip-r.st<=t-this.layers[e].st&&r.op-r.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var r,i=t.length,n=this.layers.length;for(e=0;e<i;e+=1)for(r=0;r<n;){if(this.layers[r].id===t[e].id){this.layers[r]=t[e];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,r){for(var i=this.elements,n=this.layers,a=0,o=n.length;a<o;)n[a].ind==e&&(i[a]&&!0!==i[a]?(r.push(i[a]),i[a].setAsParent(),void 0!==n[a].parent?this.buildElementParenting(t,n[a].parent,r):t.setHierarchy(r)):(this.buildItem(a),this.addPendingElement(t))),a+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,r=t.length;for(e=0;e<r;e+=1)if(t[e].xt){var i=this.createComp(t[e]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(t){var e,r=this.elements.length;for(e=0;e<r;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},BaseRenderer.prototype.getElementByPath=function(t){var e,r=t.shift();if("number"==typeof r)e=this.elements[r];else{var i,n=this.elements.length;for(i=0;i<n;i+=1)if(this.elements[i].data.nm===r){e=this.elements[i];break}}return 0===t.length?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(t,e,r){this.data=t,this.element=e,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,n,a=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var s,l,p,c,h,u,d=this.masksProperties,f=0,g=[],m=createElementID(),v="clipPath",y="clip-path";for(i=0;i<o;i+=1)if(("a"!==d[i].mode&&"n"!==d[i].mode||d[i].inv||100!==d[i].o.k||d[i].o.x)&&(v="mask",y="mask"),"s"!==d[i].mode&&"i"!==d[i].mode||0!==f?p=null:((p=createNS("rect")).setAttribute("fill","#ffffff"),p.setAttribute("width",this.element.comp.data.w||0),p.setAttribute("height",this.element.comp.data.h||0),g.push(p)),n=createNS("path"),"n"===d[i].mode)this.viewData[i]={op:PropertyFactory.getProp(this.element,d[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,d[i],3),elem:n,lastPath:""},a.appendChild(n);else{var b;if(f+=1,n.setAttribute("fill","s"===d[i].mode?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero"),0!==d[i].x.k?(v="mask",y="mask",u=PropertyFactory.getProp(this.element,d[i].x,0,null,this.element),b=createElementID(),(c=createNS("filter")).setAttribute("id",b),(h=createNS("feMorphology")).setAttribute("operator","erode"),h.setAttribute("in","SourceGraphic"),h.setAttribute("radius","0"),c.appendChild(h),a.appendChild(c),n.setAttribute("stroke","s"===d[i].mode?"#000000":"#ffffff")):(h=null,u=null),this.storedData[i]={elem:n,x:u,expan:h,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===d[i].mode){l=g.length;var _=createNS("g");for(s=0;s<l;s+=1)_.appendChild(g[s]);var x=createNS("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",m+"_"+f),x.appendChild(n),a.appendChild(x),_.setAttribute("mask","url("+getLocationHref()+"#"+m+"_"+f+")"),g.length=0,g.push(_)}else g.push(n);d[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:n,lastPath:"",op:PropertyFactory.getProp(this.element,d[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,d[i],3),invRect:p},this.viewData[i].prop.k||this.drawPath(d[i],this.viewData[i].prop.v,this.viewData[i])}for(this.maskElement=createNS(v),o=g.length,i=0;i<o;i+=1)this.maskElement.appendChild(g[i]);f>0&&(this.maskElement.setAttribute("id",m),this.element.maskedElement.setAttribute(y,"url("+getLocationHref()+"#"+m+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,r=0,i=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<i;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),r=0;r<i;r+=1)e.multiply(this.hierarchy[r].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,e=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<e;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var r=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(r),t=1;t<e;t+=1){var i=this.localTransforms[t].matrix;r.multiply(i)}r.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var n=this.finalTransform.localOpacity;for(t=0;t<e;t+=1)n*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=n}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var e=0,r=t.length;for(e=0;e<r;e+=1)this.localTransforms.push(t[e])}}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var r,i=!0,n=this.comp;i;)n.finalTransform?(n.data.hasMask&&e.splice(0,0,n.finalTransform),n=n.comp):i=!1;var a,o=e.length;for(r=0;r<o;r+=1)a=e[r].mat.applyToPointArray(0,0,0),t=[t[0]-a[0],t[1]-a[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,r=this.element.finalTransform.mat,i=this.masksProperties.length;for(e=0;e<i;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var n=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[e].filterId+")")),n.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,r){var i,n,a=" M"+e.v[0][0]+","+e.v[0][1];for(n=e._length,i=1;i<n;i+=1)a+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[i][0]+","+e.i[i][1]+" "+e.v[i][0]+","+e.v[i][1];if(e.c&&n>1&&(a+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),r.lastPath!==a){var o="";r.elem&&(e.c&&(o=t.inv?this.solidPath+a:a),r.elem.setAttribute("d",o)),r.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={createFilter:function(t,e){var r=createNS("filter");return r.setAttribute("id",t),!0!==e&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},createAlphaToLuminanceFilter:function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}};return t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};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))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(t){var e,r,i="SourceGraphic",n=t.data.ef?t.data.ef.length:0,a=createElementID(),o=filtersFactory.createFilter(a,!0),s=0;for(this.filters=[],e=0;e<n;e+=1){r=null;var l=t.data.ef[e].ty;registeredEffects$1[l]&&(r=new(0,registeredEffects$1[l].effect)(o,t.effectsManager.effectElements[e],t,idPrefix+s,i),i=idPrefix+s,registeredEffects$1[l].countsAsEffect&&(s+=1)),r&&this.filters.push(r)}s&&(t.globalData.defs.appendChild(o),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+a+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect$1(t,e,r){registeredEffects$1[t]={effect:e,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var e,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e].renderFrame(t)},SVGEffects.prototype.getEffects=function(t){var e,r=this.filters.length,i=[];for(e=0;e<r;e+=1)this.filters[e].type===t&&i.push(this.filters[e]);return i},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=createNS("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var r=createNS("clipPath"),i=createNS("path");i.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var n=createElementID();if(r.setAttribute("id",n),r.appendChild(i),this.globalData.defs.appendChild(r),this.checkMasks()){var a=createNS("g");a.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),a.appendChild(this.layerElement),this.transformedElement=a,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,r,i,n,a=this.layerId+"_"+t;if(1===t||3===t){var o=createNS("mask");o.setAttribute("id",a),o.setAttribute("mask-type",3===t?"luminance":"alpha"),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(i),this.globalData.defs.appendChild(o),featureSupport.maskType||1!==t||(o.setAttribute("mask-type","luminance"),e=createElementID(),r=filtersFactory.createFilter(e),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(n=createNS("g")).appendChild(i),o.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2===t){var s=createNS("mask");s.setAttribute("id",a),s.setAttribute("mask-type","alpha");var l=createNS("g");s.appendChild(l),e=createElementID(),r=filtersFactory.createFilter(e);var p=createNS("feComponentTransfer");p.setAttribute("in","SourceGraphic"),r.appendChild(p);var c=createNS("feFuncA");c.setAttribute("type","table"),c.setAttribute("tableValues","1.0 0.0"),p.appendChild(c),this.globalData.defs.appendChild(r);var h=createNS("rect");h.setAttribute("width",this.comp.data.w),h.setAttribute("height",this.comp.data.h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("fill","#ffffff"),h.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),l.appendChild(h),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(i),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),l.appendChild(h),n.appendChild(this.layerElement),l.appendChild(n)),this.globalData.defs.appendChild(s)}this.matteMasks[t]=a}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){var e,r=this.shapeModifiers.length;for(e=0;e<r;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,r=0,i=e.length;r<i;){if(e[r].elem===t)return e[r].pos;r+=1}return 0},addProcessedElement:function(t,e){for(var r=this.processedElements,i=r.length;i;)if(r[i-=1].elem===t)return void(r[i].pos=e);r.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,r){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=r,this.lvl=e,this._isAnimated=!!r.k;for(var i=0,n=t.length;i<n;){if(t[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,r,i){var n;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var a,o=e.length||0;for(n=0;n<o;n+=1)a=PropertyFactory.getProp(t,e[n].v,0,0,this),this.k=a.k||this.k,this.dataProps[n]={n:e[n].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r}function SVGNoStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(t,e,r){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var i=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,r)}function SVGGradientStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,r){this.transform={mProps:t,op:e,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<r;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var r=0,i=this.o.length/2;r<i;){if(Math.abs(t[4*r]-t[4*e+2*r])>.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 t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,r,i,n=4*this.data.p;for(e=0;e<n;e+=1)r=e%4==0?100:255,i=Math.round(this.prop.v[e]*r),this.c[e]!==i&&(this.c[e]=i,this._cmdf=!t);if(this.o.length)for(n=this.prop.v.length,e=4*this.data.p;e<n;e+=1)r=e%2==0?100:1,i=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==i&&(this.o[e-4*this.data.p]=i,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,r){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,e),this.setGradientOpacity(e,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var r=createElementID(),i=createNS(1===e.t?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var n,a,o,s=[];for(o=4*e.g.p,a=0;a<o;a+=4)n=createNS("stop"),i.appendChild(n),s.push(n);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=i,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var r,i,n,a=createNS("mask"),o=createNS("path");a.appendChild(o);var s=createElementID(),l=createElementID();a.setAttribute("id",l);var p=createNS(1===t.t?"linearGradient":"radialGradient");p.setAttribute("id",s),p.setAttribute("spreadMethod","pad"),p.setAttribute("gradientUnits","userSpaceOnUse"),n=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var c=this.stops;for(i=4*t.g.p;i<n;i+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),p.appendChild(r),c.push(r);o.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===t.ty&&(o.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&o.setAttribute("stroke-miterlimit",t.ml)),this.of=p,this.ms=a,this.ost=c,this.maskId=l,e.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,r,i){if(0===e)return"";var n,a=t.o,o=t.i,s=t.v,l=" M"+i.applyToPointStringified(s[0][0],s[0][1]);for(n=1;n<e;n+=1)l+=" C"+i.applyToPointStringified(a[n-1][0],a[n-1][1])+" "+i.applyToPointStringified(o[n][0],o[n][1])+" "+i.applyToPointStringified(s[n][0],s[n][1]);return r&&e&&(l+=" C"+i.applyToPointStringified(a[n-1][0],a[n-1][1])+" "+i.applyToPointStringified(o[0][0],o[0][1])+" "+i.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function r(t,e,r){(r||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(r||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function i(){}function n(r,i,n){var a,o,s,l,p,c,h,u,d,f,g=i.styles.length,m=i.lvl;for(c=0;c<g;c+=1){if(l=i.sh._mdf||n,i.styles[c].lvl<m){for(u=e.reset(),d=m-i.styles[c].lvl,f=i.transformers.length-1;!l&&d>0;)l=i.transformers[f].mProps._mdf||l,d-=1,f-=1;if(l)for(d=m-i.styles[c].lvl,f=i.transformers.length-1;d>0;)u.multiply(i.transformers[f].mProps.v),d-=1,f-=1}else u=t;if(o=(h=i.sh.paths)._length,l){for(s="",a=0;a<o;a+=1)(p=h.shapes[a])&&p._length&&(s+=buildShapeString(p,p._length,p.c,u));i.caches[c]=s}else s=i.caches[c];i.styles[c].d+=!0===r.hd?"":s,i.styles[c]._mdf=l||i.styles[c]._mdf}}function a(t,e,r){var i=e.style;(e.c._mdf||r)&&i.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r)&&i.pElem.setAttribute("fill-opacity",e.o.v)}function o(t,e,r){s(t,e,r),l(0,e,r)}function s(t,e,r){var i,n,a,o,s,l=e.gf,p=e.g._hasOpacity,c=e.s.v,h=e.e.v;if(e.o._mdf||r){var u="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(u,e.o.v)}if(e.s._mdf||r){var d=1===t.t?"x1":"cx",f="x1"===d?"y1":"cy";l.setAttribute(d,c[0]),l.setAttribute(f,c[1]),p&&!e.g._collapsable&&(e.of.setAttribute(d,c[0]),e.of.setAttribute(f,c[1]))}if(e.g._cmdf||r){i=e.cst;var g=e.g.c;for(a=i.length,n=0;n<a;n+=1)(o=i[n]).setAttribute("offset",g[4*n]+"%"),o.setAttribute("stop-color","rgb("+g[4*n+1]+","+g[4*n+2]+","+g[4*n+3]+")")}if(p&&(e.g._omdf||r)){var m=e.g.o;for(a=(i=e.g._collapsable?e.cst:e.ost).length,n=0;n<a;n+=1)o=i[n],e.g._collapsable||o.setAttribute("offset",m[2*n]+"%"),o.setAttribute("stop-opacity",m[2*n+1])}if(1===t.t)(e.e._mdf||r)&&(l.setAttribute("x2",h[0]),l.setAttribute("y2",h[1]),p&&!e.g._collapsable&&(e.of.setAttribute("x2",h[0]),e.of.setAttribute("y2",h[1])));else if((e.s._mdf||e.e._mdf||r)&&(s=Math.sqrt(Math.pow(c[0]-h[0],2)+Math.pow(c[1]-h[1],2)),l.setAttribute("r",s),p&&!e.g._collapsable&&e.of.setAttribute("r",s)),e.e._mdf||e.h._mdf||e.a._mdf||r){s||(s=Math.sqrt(Math.pow(c[0]-h[0],2)+Math.pow(c[1]-h[1],2)));var v=Math.atan2(h[1]-c[1],h[0]-c[0]),y=e.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var b=s*y,_=Math.cos(v+e.a.v)*b+c[0],x=Math.sin(v+e.a.v)*b+c[1];l.setAttribute("fx",_),l.setAttribute("fy",x),p&&!e.g._collapsable&&(e.of.setAttribute("fx",_),e.of.setAttribute("fy",x))}}function l(t,e,r){var i=e.style,n=e.d;n&&(n._mdf||r)&&n.dashStr&&(i.pElem.setAttribute("stroke-dasharray",n.dashStr),i.pElem.setAttribute("stroke-dashoffset",n.dashoffset[0])),e.c&&(e.c._mdf||r)&&i.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r)&&i.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||r)&&(i.pElem.setAttribute("stroke-width",e.w.v),i.msElem&&i.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return a;case"gf":return s;case"gs":return o;case"st":return l;case"sh":case"el":case"rc":case"sr":return n;case"tr":return r;case"no":return i;default:return null}}}}();function SVGShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,r),this.prevViewData=[]}function LetterProps(t,e,r,i,n,a){this.o=t,this.sw=e,this.sc=r,this.fc=i,this.m=n,this.p=a,this._mdf={o:!0,sw:!!e,sc:!!r,fc:!!i,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}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 t,e,r,i,n=this.shapes.length,a=this.stylesList.length,o=[],s=!1;for(r=0;r<a;r+=1){for(i=this.stylesList[r],s=!1,o.length=0,t=0;t<n;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(i)&&(o.push(e),s=e._isAnimated||s);o.length>1&&s&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var r,i=new SVGStyleData(t,e),n=i.pElem;return"st"===t.ty?r=new SVGStrokeStyleData(this,t,i):"fl"===t.ty?r=new SVGFillStyleData(this,t,i):"gf"===t.ty||"gs"===t.ty?(r=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),n.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):"no"===t.ty&&(r=new SVGNoStyleData(this,t,i)),"st"!==t.ty&&"gs"!==t.ty||(n.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),n.setAttribute("fill-opacity","0"),1===t.lj&&n.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&n.setAttribute("fill-rule","evenodd"),t.ln&&n.setAttribute("id",t.ln),t.cl&&n.setAttribute("class",t.cl),t.bm&&(n.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(i),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var r=TransformPropertyFactory.getTransformProperty(this,t,this),i=new SVGTransformData(r,r.o,e);return this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createShapeElement=function(t,e,r){var i=4;"rc"===t.ty?i=5:"el"===t.ty?i=6:"sr"===t.ty&&(i=7);var n=new SVGShapeData(e,r,ShapePropertyFactory.getShapeProp(this,t,i,this));return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var r=0,i=this.animatedContents.length;r<i;){if(this.animatedContents[r].element===e)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,r=t.styles,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||r.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,r,i,n,a,o){var s,l,p,c,h,u,d=[].concat(a),f=t.length-1,g=[],m=[];for(s=f;s>=0;s-=1){if((u=this.searchProcessedElement(t[s]))?e[s]=r[u-1]:t[s]._render=o,"fl"===t[s].ty||"st"===t[s].ty||"gf"===t[s].ty||"gs"===t[s].ty||"no"===t[s].ty)u?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],n),t[s]._render&&e[s].style.pElem.parentNode!==i&&i.appendChild(e[s].style.pElem),g.push(e[s].style);else if("gr"===t[s].ty){if(u)for(p=e[s].it.length,l=0;l<p;l+=1)e[s].prevViewData[l]=e[s].it[l];else e[s]=this.createGroupElement(t[s]);this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,e[s].gr,n+1,d,o),t[s]._render&&e[s].gr.parentNode!==i&&i.appendChild(e[s].gr)}else"tr"===t[s].ty?(u||(e[s]=this.createTransformElement(t[s],i)),c=e[s].transform,d.push(c)):"sh"===t[s].ty||"rc"===t[s].ty||"el"===t[s].ty||"sr"===t[s].ty?(u||(e[s]=this.createShapeElement(t[s],d,n)),this.setElementStyles(e[s])):"tm"===t[s].ty||"rd"===t[s].ty||"ms"===t[s].ty||"pb"===t[s].ty||"zz"===t[s].ty||"op"===t[s].ty?(u?(h=e[s]).closed=!1:((h=ShapeModifiers.getModifier(t[s].ty)).init(this,t[s]),e[s]=h,this.shapeModifiers.push(h)),m.push(h)):"rp"===t[s].ty&&(u?(h=e[s]).closed=!0:(h=ShapeModifiers.getModifier(t[s].ty),e[s]=h,h.init(this,t,s,e),this.shapeModifiers.push(h),o=!1),m.push(h));this.addProcessedElement(t[s],s+1)}for(f=g.length,s=0;s<f;s+=1)g[s].closed=!0;for(f=m.length,s=0;s<f;s+=1)m[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e,r=this.animatedContents.length;for(t=0;t<r;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,r,i,n,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var o=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,o=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,o=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,o=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,o=!0),this.m!==n&&(this.m=n,this._mdf.m=!0,o=!0),!a.length||this.p[0]===a[0]&&this.p[1]===a[1]&&this.p[4]===a[4]&&this.p[5]===a[5]&&this.p[12]===a[12]&&this.p[13]===a[13]||(this.p=a,this._mdf.p=!0,o=!0),o},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock=!0,this._mdf=!1;var n=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(i=0;i<n;i+=1)a=r!==this.keysIndex?this.effectsSequence[i](a,a.t):this.effectsSequence[i](this.currentData,a.t);e!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,r=0,i=t.length;r<=i-1&&!(r===i-1||t[r+1].t>e);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,r,i=[],n=0,a=t.length,o=!1,s=!1,l="";n<a;)o=s,s=!1,e=t.charCodeAt(n),l=t.charAt(n),FontManager.isCombinedCharacter(e)?o=!0:e>=55296&&e<=56319?FontManager.isRegionalFlag(t,n)?l=t.substr(n,14):(r=t.charCodeAt(n+1))>=56320&&r<=57343&&(FontManager.isModifier(e,r)?(l=t.substr(n,2),o=!0):l=FontManager.isFlagEmoji(t.substr(n,4))?t.substr(n,4):t.substr(n,2)):e>56319?(r=t.charCodeAt(n+1),FontManager.isVariationSelector(e)&&(o=!0)):FontManager.isZeroWidthJoiner(e)&&(o=!0,s=!0),o?(i[i.length-1]+=l,o=!1):i.push(l),n+=l.length;return i},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,r,i,n,a,o,s,l=this.elem.globalData.fontManager,p=this.data,c=[],h=0,u=p.m.g,d=0,f=0,g=0,m=[],v=0,y=0,b=l.getFontByName(t.f),_=0,x=getFontProperties(b);t.fWeight=x.weight,t.fStyle=x.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),r=t.finalText.length,t.finalLineHeight=t.lh;var S,w=t.tr/1e3*t.finalSize;if(t.sz)for(var A,E,C=!0,P=t.sz[0],T=t.sz[1];C;){A=0,v=0,r=(E=this.buildFinalText(t.t)).length,w=t.tr/1e3*t.finalSize;var D=-1;for(e=0;e<r;e+=1)S=E[e].charCodeAt(0),i=!1," "===E[e]?D=e:13!==S&&3!==S||(v=0,i=!0,A+=t.finalLineHeight||1.2*t.finalSize),l.chars?(s=l.getCharData(E[e],b.fStyle,b.fFamily),_=i?0:s.w*t.finalSize/100):_=l.measureText(E[e],t.f,t.finalSize),v+_>P&&" "!==E[e]?(-1===D?r+=1:e=D,A+=t.finalLineHeight||1.2*t.finalSize,E.splice(e,D===e?1:0,"\r"),D=-1,v=0):(v+=_,v+=w);A+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&T<A?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=E,r=t.finalText.length,C=!1)}v=-w,_=0;var M,k=0;for(e=0;e<r;e+=1)if(i=!1,13===(S=(M=t.finalText[e]).charCodeAt(0))||3===S?(k=0,m.push(v),y=v>y?v:y,v=-2*w,n="",i=!0,g+=1):n=M,l.chars?(s=l.getCharData(M,b.fStyle,l.getFontByName(t.f).fFamily),_=i?0:s.w*t.finalSize/100):_=l.measureText(n,t.f,t.finalSize)," "===M?k+=_+w:(v+=_+w+k,k=0),c.push({l:_,an:_,add:d,n:i,anIndexes:[],val:n,line:g,animatorJustifyOffset:0}),2==u){if(d+=_,""===n||" "===n||e===r-1){for(""!==n&&" "!==n||(d-=_);f<=e;)c[f].an=d,c[f].ind=h,c[f].extra=_,f+=1;h+=1,d=0}}else if(3==u){if(d+=_,""===n||e===r-1){for(""===n&&(d-=_);f<=e;)c[f].an=d,c[f].ind=h,c[f].extra=_,f+=1;d=0,h+=1}}else c[h].ind=h,c[h].extra=0,h+=1;if(t.l=c,y=v>y?v:y,m.push(v),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=y,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=m;var I,R,F,B,N=p.a;o=N.length;var O=[];for(a=0;a<o;a+=1){for((I=N[a]).a.sc&&(t.strokeColorAnim=!0),I.a.sw&&(t.strokeWidthAnim=!0),(I.a.fc||I.a.fh||I.a.fs||I.a.fb)&&(t.fillColorAnim=!0),B=0,F=I.s.b,e=0;e<r;e+=1)(R=c[e]).anIndexes[a]=B,(1==F&&""!==R.val||2==F&&""!==R.val&&" "!==R.val||3==F&&(R.n||" "==R.val||e==r-1)||4==F&&(R.n||e==r-1))&&(1===I.s.rn&&O.push(B),B+=1);p.a[a].s.totalChars=B;var V,z=-1;if(1===I.s.rn)for(e=0;e<r;e+=1)z!=(R=c[e]).anIndexes[a]&&(z=R.anIndexes[a],V=O.splice(Math.floor(Math.random()*O.length),1)[0]),R.anIndexes[a]=V}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var r=this.copyData({},this.data.d.k[e].s);r=this.copyData(r,t),this.data.d.k[e].s=r,this.recalculate(e),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,r=Math.floor;function i(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?PropertyFactory.getProp(t,e.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return i.prototype={getMult:function(i){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var n=0,a=0,o=1,s=1;this.ne.v>0?n=this.ne.v/100:a=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(n,a,o,s).get,p=0,c=this.finalS,h=this.finalE,u=this.data.sh;if(2===u)p=l(p=h===c?i>=h?1:0:t(0,e(.5/(h-c)+(i-c)/(h-c),1)));else if(3===u)p=l(p=h===c?i>=h?0:1:1-t(0,e(.5/(h-c)+(i-c)/(h-c),1)));else if(4===u)h===c?p=0:(p=t(0,e(.5/(h-c)+(i-c)/(h-c),1)))<.5?p*=2:p=1-2*(p-.5),p=l(p);else if(5===u){if(h===c)p=0;else{var d=h-c,f=-d/2+(i=e(t(0,i+.5-c),h-c)),g=d/2;p=Math.sqrt(1-f*f/(g*g))}p=l(p)}else 6===u?(h===c?p=0:(i=e(t(0,i+.5-c),h-c),p=(1+Math.cos(Math.PI+2*Math.PI*i/(h-c)))/2),p=l(p)):(i>=r(c)&&(p=t(0,e(i-c<0?e(h,1)-(c-i):h-i,1))),p=l(p));if(100!==this.sm.v){var m=.01*this.sm.v;0===m&&(m=1e-8);var v=.5-.5*m;p<v?p=0:(p=(p-v)/m)>1&&(p=1)}return p*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/e,i=this.s.v/e+r,n=this.e.v/e+r;if(i>n){var a=i;i=n,n=a}this.finalS=i,this.finalE=n}},extendPrototype([DynamicPropertyContainer],i),{getTextSelectorProp:function(t,e,r){return new i(t,e)}}}();function TextAnimatorDataProperty(t,e,r){var i={propType:!1},n=PropertyFactory.getProp,a=e.a;this.a={r:a.r?n(t,a.r,0,degToRads,r):i,rx:a.rx?n(t,a.rx,0,degToRads,r):i,ry:a.ry?n(t,a.ry,0,degToRads,r):i,sk:a.sk?n(t,a.sk,0,degToRads,r):i,sa:a.sa?n(t,a.sa,0,degToRads,r):i,s:a.s?n(t,a.s,1,.01,r):i,a:a.a?n(t,a.a,1,0,r):i,o:a.o?n(t,a.o,0,.01,r):i,p:a.p?n(t,a.p,1,0,r):i,sw:a.sw?n(t,a.sw,0,0,r):i,sc:a.sc?n(t,a.sc,1,0,r):i,fc:a.fc?n(t,a.fc,1,0,r):i,fh:a.fh?n(t,a.fh,0,0,r):i,fs:a.fs?n(t,a.fs,0,.01,r):i,fb:a.fb?n(t,a.fb,0,.01,r):i,t:a.t?n(t,a.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.t=e.s.t}function TextAnimatorProperty(t,e,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,r=this._textData.a.length,i=PropertyFactory.getProp;for(t=0;t<r;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,i,n,a,o,s,l,p,c,h,u,d,f,g,m,v,y,b,_,x=this._moreOptions.alignment.v,S=this._animatorsData,w=this._textData,A=this.mHelper,E=this._renderType,C=this.renderedLetters.length,P=t.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var T,D=_.v;for(this._pathData.r.v&&(D=D.reverse()),o={tLength:0,segments:[]},a=D._length-1,v=0,n=0;n<a;n+=1)T=bez.buildBezierData(D.v[n],D.v[n+1],[D.o[n][0]-D.v[n][0],D.o[n][1]-D.v[n][1]],[D.i[n+1][0]-D.v[n+1][0],D.i[n+1][1]-D.v[n+1][1]]),o.tLength+=T.segmentLength,o.segments.push(T),v+=T.segmentLength;n=a,_.v.c&&(T=bez.buildBezierData(D.v[n],D.v[0],[D.o[n][0]-D.v[n][0],D.o[n][1]-D.v[n][1]],[D.i[0][0]-D.v[0][0],D.i[0][1]-D.v[0][1]]),o.tLength+=T.segmentLength,o.segments.push(T),v+=T.segmentLength),this._pathData.pi=o}if(o=this._pathData.pi,s=this._pathData.f.v,u=0,h=1,p=0,c=!0,g=o.segments,s<0&&_.v.c)for(o.tLength<Math.abs(s)&&(s=-Math.abs(s)%o.tLength),h=(f=g[u=g.length-1].points).length-1;s<0;)s+=f[h].partialLength,(h-=1)<0&&(h=(f=g[u-=1].points).length-1);d=(f=g[u].points)[h-1],m=(l=f[h]).partialLength}a=P.length,r=0,i=0;var M,k,I,R,F,B=1.2*t.finalSize*.714,N=!0;I=S.length;var O,V,z,L,G,$,j,H,W,U,Y,q,X=-1,K=s,Z=u,J=h,Q=-1,tt="",et=this.defaultPropsArray;if(2===t.j||1===t.j){var rt=0,it=0,nt=2===t.j?-.5:-1,at=0,ot=!0;for(n=0;n<a;n+=1)if(P[n].n){for(rt&&(rt+=it);at<n;)P[at].animatorJustifyOffset=rt,at+=1;rt=0,ot=!0}else{for(k=0;k<I;k+=1)(M=S[k].a).t.propType&&(ot&&2===t.j&&(it+=M.t.v*nt),(F=S[k].s.getMult(P[n].anIndexes[k],w.a[k].s.totalChars)).length?rt+=M.t.v*F[0]*nt:rt+=M.t.v*F*nt);ot=!1}for(rt&&(rt+=it);at<n;)P[at].animatorJustifyOffset=rt,at+=1}for(n=0;n<a;n+=1){if(A.reset(),L=1,P[n].n)r=0,i+=t.yOffset,i+=N?1:0,s=K,N=!1,this._hasMaskedPath&&(h=J,d=(f=g[u=Z].points)[h-1],m=(l=f[h]).partialLength,p=0),tt="",Y="",W="",q="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==P[n].line){switch(t.j){case 1:s+=v-t.lineWidths[P[n].line];break;case 2:s+=(v-t.lineWidths[P[n].line])/2}Q=P[n].line}X!==P[n].ind&&(P[X]&&(s+=P[X].extra),s+=P[n].an/2,X=P[n].ind),s+=x[0]*P[n].an*.005;var st=0;for(k=0;k<I;k+=1)(M=S[k].a).p.propType&&((F=S[k].s.getMult(P[n].anIndexes[k],w.a[k].s.totalChars)).length?st+=M.p.v[0]*F[0]:st+=M.p.v[0]*F),M.a.propType&&((F=S[k].s.getMult(P[n].anIndexes[k],w.a[k].s.totalChars)).length?st+=M.a.v[0]*F[0]:st+=M.a.v[0]*F);for(c=!0,this._pathData.a.v&&(s=.5*P[0].an+(v-this._pathData.f.v-.5*P[0].an-.5*P[P.length-1].an)*X/(a-1),s+=this._pathData.f.v);c;)p+m>=s+st||!f?(y=(s+st-p)/l.partialLength,V=d.point[0]+(l.point[0]-d.point[0])*y,z=d.point[1]+(l.point[1]-d.point[1])*y,A.translate(-x[0]*P[n].an*.005,-x[1]*B*.01),c=!1):f&&(p+=l.partialLength,(h+=1)>=f.length&&(h=0,g[u+=1]?f=g[u].points:_.v.c?(h=0,f=g[u=0].points):(p-=l.partialLength,f=null)),f&&(d=l,m=(l=f[h]).partialLength));O=P[n].an/2-P[n].add,A.translate(-O,0,0)}else O=P[n].an/2-P[n].add,A.translate(-O,0,0),A.translate(-x[0]*P[n].an*.005,-x[1]*B*.01,0);for(k=0;k<I;k+=1)(M=S[k].a).t.propType&&(F=S[k].s.getMult(P[n].anIndexes[k],w.a[k].s.totalChars),0===r&&0===t.j||(this._hasMaskedPath?F.length?s+=M.t.v*F[0]:s+=M.t.v*F:F.length?r+=M.t.v*F[0]:r+=M.t.v*F));for(t.strokeWidthAnim&&($=t.sw||0),t.strokeColorAnim&&(G=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(j=[t.fc[0],t.fc[1],t.fc[2]]),k=0;k<I;k+=1)(M=S[k].a).a.propType&&((F=S[k].s.getMult(P[n].anIndexes[k],w.a[k].s.totalChars)).length?A.translate(-M.a.v[0]*F[0],-M.a.v[1]*F[1],M.a.v[2]*F[2]):A.translate(-M.a.v[0]*F,-M.a.v[1]*F,M.a.v[2]*F));for(k=0;k<I;k+=1)(M=S[k].a).s.propType&&((F=S[k].s.getMult(P[n].anIndexes[k],w.a[k].s.totalChars)).length?A.scale(1+(M.s.v[0]-1)*F[0],1+(M.s.v[1]-1)*F[1],1):A.scale(1+(M.s.v[0]-1)*F,1+(M.s.v[1]-1)*F,1));for(k=0;k<I;k+=1){if(M=S[k].a,F=S[k].s.getMult(P[n].anIndexes[k],w.a[k].s.totalChars),M.sk.propType&&(F.length?A.skewFromAxis(-M.sk.v*F[0],M.sa.v*F[1]):A.skewFromAxis(-M.sk.v*F,M.sa.v*F)),M.r.propType&&(F.length?A.rotateZ(-M.r.v*F[2]):A.rotateZ(-M.r.v*F)),M.ry.propType&&(F.length?A.rotateY(M.ry.v*F[1]):A.rotateY(M.ry.v*F)),M.rx.propType&&(F.length?A.rotateX(M.rx.v*F[0]):A.rotateX(M.rx.v*F)),M.o.propType&&(F.length?L+=(M.o.v*F[0]-L)*F[0]:L+=(M.o.v*F-L)*F),t.strokeWidthAnim&&M.sw.propType&&(F.length?$+=M.sw.v*F[0]:$+=M.sw.v*F),t.strokeColorAnim&&M.sc.propType)for(H=0;H<3;H+=1)F.length?G[H]+=(M.sc.v[H]-G[H])*F[0]:G[H]+=(M.sc.v[H]-G[H])*F;if(t.fillColorAnim&&t.fc){if(M.fc.propType)for(H=0;H<3;H+=1)F.length?j[H]+=(M.fc.v[H]-j[H])*F[0]:j[H]+=(M.fc.v[H]-j[H])*F;M.fh.propType&&(j=F.length?addHueToRGB(j,M.fh.v*F[0]):addHueToRGB(j,M.fh.v*F)),M.fs.propType&&(j=F.length?addSaturationToRGB(j,M.fs.v*F[0]):addSaturationToRGB(j,M.fs.v*F)),M.fb.propType&&(j=F.length?addBrightnessToRGB(j,M.fb.v*F[0]):addBrightnessToRGB(j,M.fb.v*F))}}for(k=0;k<I;k+=1)(M=S[k].a).p.propType&&(F=S[k].s.getMult(P[n].anIndexes[k],w.a[k].s.totalChars),this._hasMaskedPath?F.length?A.translate(0,M.p.v[1]*F[0],-M.p.v[2]*F[1]):A.translate(0,M.p.v[1]*F,-M.p.v[2]*F):F.length?A.translate(M.p.v[0]*F[0],M.p.v[1]*F[1],-M.p.v[2]*F[2]):A.translate(M.p.v[0]*F,M.p.v[1]*F,-M.p.v[2]*F));if(t.strokeWidthAnim&&(W=$<0?0:$),t.strokeColorAnim&&(U="rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"),t.fillColorAnim&&t.fc&&(Y="rgb("+Math.round(255*j[0])+","+Math.round(255*j[1])+","+Math.round(255*j[2])+")"),this._hasMaskedPath){if(A.translate(0,-t.ls),A.translate(0,x[1]*B*.01+i,0),this._pathData.p.v){b=(l.point[1]-d.point[1])/(l.point[0]-d.point[0]);var lt=180*Math.atan(b)/Math.PI;l.point[0]<d.point[0]&&(lt+=180),A.rotate(-lt*Math.PI/180)}A.translate(V,z,0),s-=x[0]*P[n].an*.005,P[n+1]&&X!==P[n+1].ind&&(s+=P[n].an/2,s+=.001*t.tr*t.finalSize)}else{switch(A.translate(r,i,0),t.ps&&A.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:A.translate(P[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[P[n].line]),0,0);break;case 2:A.translate(P[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[P[n].line])/2,0,0)}A.translate(0,-t.ls),A.translate(O,0,0),A.translate(x[0]*P[n].an*.005,x[1]*B*.01,0),r+=P[n].l+.001*t.tr*t.finalSize}"html"===E?tt=A.toCSS():"svg"===E?tt=A.to2dCSS():et=[A.props[0],A.props[1],A.props[2],A.props[3],A.props[4],A.props[5],A.props[6],A.props[7],A.props[8],A.props[9],A.props[10],A.props[11],A.props[12],A.props[13],A.props[14],A.props[15]],q=L}C<=n?(R=new LetterProps(q,W,U,Y,tt,et),this.renderedLetters.push(R),C+=1,this.lettersChangedFlag=!0):(R=this.renderedLetters[n],this.lettersChangedFlag=R.update(q,W,U,Y,tt,et)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(t,e,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,r),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},ITextElement.prototype.createPathShape=function(t,e){var r,i,n=e.length,a="";for(r=0;r<n;r+=1)"sh"===e[r].ty&&(i=e[r].ks.k,a+=buildShapeString(i,i.i.length,!0,t));return a},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,r,i,n){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r])/2,0,0)}e.translate(i,n,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,r){this.textSpans=[],this.renderType="svg",this.initElement(t,e,r)}function ISolidElement(t,e,r){this.initElement(t,e,r)}function NullElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initFrame(),this.initTransform(t,e,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,r){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(e&&e.title){var i=createNS("title"),n=createElementID();i.setAttribute("id",n),i.textContent=e.title,this.svgElement.appendChild(i),r+=n}if(e&&e.description){var a=createNS("desc"),o=createElementID();a.setAttribute("id",o),a.textContent=e.description,this.svgElement.appendChild(a),r+=" "+o}r&&this.svgElement.setAttribute("aria-labelledby",r);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,r=t.length,i=[],n="";e<r;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(i.push(n),n=""):n+=t[e],e+=1;return i.push(n),i},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var r=t.shapes[0];if(r.it){var i=r.it[r.it.length-1];i.s&&(i.s.k[0]=e,i.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var i=this.globalData.fontManager.getFontByName(r.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var n=r.fWeight,a=r.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",r.t);var o,s=r.l||[],l=!!this.globalData.fontManager.chars;e=s.length;var p=this.mHelper,c=this.data.singleShape,h=0,u=0,d=!0,f=.001*r.tr*r.finalSize;if(!c||l||r.sz){var g,m=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!l||!c||0===t){if(o=m>t?this.textSpans[t].span:createNS(l?"g":"text"),m<=t){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=o,l){var v=createNS("g");o.appendChild(v),this.textSpans[t].childSpan=v}this.textSpans[t].span=o,this.layerElement.appendChild(o)}o.style.display="inherit"}if(p.reset(),c&&(s[t].n&&(h=-f,u+=r.yOffset,u+=d?1:0,d=!1),this.applyTextPropertiesToMatrix(r,p,s[t].line,h,u),h+=s[t].l||0,h+=f),l){var y;if(1===(g=this.globalData.fontManager.getCharData(r.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)y=new SVGCompElement(g.data,this.globalData,this);else{var b=emptyShapeData;g.data&&g.data.shapes&&(b=this.buildShapeData(g.data,r.finalSize)),y=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[t].glyph){var _=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[t].glyph=y,y._debug=!0,y.prepareFrame(0),y.renderFrame(),this.textSpans[t].childSpan.appendChild(y.layerElement),1===g.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else c&&o.setAttribute("transform","translate("+p.props[12]+","+p.props[13]+")"),o.textContent=s[t].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}c&&o&&o.setAttribute("d","")}else{var x=this.textContainer,S="start";switch(r.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}x.setAttribute("text-anchor",S),x.setAttribute("letter-spacing",f);var w=this.buildTextContents(r.finalText);for(e=w.length,u=r.ps?r.ps[1]+r.ascent:0,t=0;t<e;t+=1)(o=this.textSpans[t].span||createNS("tspan")).textContent=w[t],o.setAttribute("x",0),o.setAttribute("y",u),o.style.display="inherit",x.appendChild(o),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=o,u+=r.finalLineHeight;this.layerElement.appendChild(x)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<r;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var r,i,n,a=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(e=o.length,t=0;t<e;t+=1)o[t].n||(r=a[t],i=this.textSpans[t].span,(n=this.textSpans[t].glyph)&&n.renderFrame(),r._mdf.m&&i.setAttribute("transform",r.m),r._mdf.o&&i.setAttribute("opacity",r.o),r._mdf.sw&&i.setAttribute("stroke-width",r.sw),r._mdf.sc&&i.setAttribute("stroke",r.sc),r._mdf.fc&&i.setAttribute("fill",r.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var r=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",t.w),i.setAttribute("height",t.h),i.setAttribute("x",0),i.setAttribute("y",0);var n=createElementID();r.setAttribute("id",n),r.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),e.appendChild(r),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,r=this.layers.length;for(e=0;e<r;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var r=this.createItem(this.layers[t]);if(e[t]=r,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,t),this.layers[t].tt){var i="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===i)return;if(this.elements[i]&&!0!==this.elements[i]){var n=e[i].getMatte(this.layers[t].tt);r.setMatte(n)}else this.buildItem(i),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,r=this.elements.length;e<r;){if(this.elements[e]===t){var i="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,n=this.elements[i].getMatte(this.layers[e].tt);t.setMatte(n);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=r-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){for(var i,n=0;n<e;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement()&&(i=this.elements[n].getBaseElement()),n+=1;i?this.layerElement.insertBefore(r,i):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var r,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(t){var e,r=t.length,i="_";for(e=0;e<r;e+=1)i+=t[e].transform.key+"_";var n=this.sequences[i];return n||(n={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=n,this.sequenceList.push(n)),n},processSequence:function(t,e){for(var r=0,i=t.transforms.length,n=e;r<i&&!e;){if(t.transforms[r].transform.mProps._mdf){n=!0;break}r+=1}if(n)for(t.finalTransform.reset(),r=i-1;r>=0;r-=1)t.finalTransform.multiply(t.transforms[r].transform.mProps.v);t._mdf=n},processSequences:function(t){var e,r=this.sequenceList.length;for(e=0;e<r;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",e=null,r=null,i=null;function n(){var n,a,o;e||(n=createNS("svg"),a=createNS("filter"),o=createNS("feColorMatrix"),a.setAttribute("id",t),o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),a.appendChild(o),n.appendChild(a),n.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(n.style.display="none"),i=n,document.body.appendChild(i),e=createTag("canvas"),(r=e.getContext("2d")).filter="url(#"+t+")",r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1))}return{load:n,get:function(i){return e||n(),e.width=i.width,e.height=i.height,r.filter="url(#"+t+")",e}}};function createCanvas(t,e){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(t,e);var r=createTag("canvas");return r.width=t,r.height=e,r}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas:createCanvas},registeredEffects={};function CVEffects(t){var e,r,i=t.data.ef?t.data.ef.length:0;for(this.filters=[],e=0;e<i;e+=1){r=null;var n=t.data.ef[e].ty;registeredEffects[n]&&(r=new(0,registeredEffects[n].effect)(t.effectsManager.effectElements[e],t)),r&&this.filters.push(r)}this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e){registeredEffects[t]={effect:e}}function CVMaskElement(t,e){var r;this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i=this.masksProperties.length,n=!1;for(r=0;r<i;r+=1)"n"!==this.masksProperties[r].mode&&(n=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=n,n&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(t){var e,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e].renderFrame(t)},CVEffects.prototype.getEffects=function(t){var e,r=this.filters.length,i=[];for(e=0;e<r;e+=1)this.filters[e].type===t&&i.push(this.filters[e]);return i},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,r,i,n=this.element.finalTransform.mat,a=this.element.canvasContext,o=this.masksProperties.length;for(a.beginPath(),t=0;t<o;t+=1)if("n"!==this.masksProperties[t].mode){var s;this.masksProperties[t].inv&&(a.moveTo(0,0),a.lineTo(this.element.globalData.compSize.w,0),a.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),a.lineTo(0,this.element.globalData.compSize.h),a.lineTo(0,0)),i=this.viewData[t].v,e=n.applyToPointArray(i.v[0][0],i.v[0][1],0),a.moveTo(e[0],e[1]);var l=i._length;for(s=1;s<l;s+=1)r=n.applyToTriplePoints(i.o[s-1],i.i[s],i.v[s]),a.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=n.applyToTriplePoints(i.o[s-1],i.i[0],i.v[0]),a.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),a.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(t,e,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var n,a=4;"rc"===e.ty?a=5:"el"===e.ty?a=6:"sr"===e.ty&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,a,t);var o,s=r.length;for(n=0;n<s;n+=1)r[n].closed||(o={transforms:i.addTransformSequence(r[n].transforms),trNodes:[]},this.styledShapes.push(o),r[n].elements.push(o))}function CVShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,r)}function CVTextElement(t,e,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,r)}function CVImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,r)}function CVSolidElement(t,e,r){this.initElement(t,e,r)}function CanvasRendererBase(){}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(){var t;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,t=0;t<15;t+=1){var e=new CanvasContext;this.stack[t]=e}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(t,e,r){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.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))}function HBaseElement(){}function HSolidElement(t,e,r){this.initElement(t,e,r)}function HShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,r)}function HCameraElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,t.pe,0,0,this),t.ks.p.s?(this.px=i(this,t.ks.p.x,1,0,this),this.py=i(this,t.ks.p.y,1,0,this),this.pz=i(this,t.ks.p.z,1,0,this)):this.p=i(this,t.ks.p,1,0,this),t.ks.a&&(this.a=i(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var n,a=t.ks.or.k.length;for(n=0;n<a;n+=1)t.ks.or.k[n].to=null,t.ks.or.k[n].ti=null}this.or=i(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,t.ks.rx,0,degToRads,this),this.ry=i(this,t.ks.ry,0,degToRads,this),this.rz=i(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(t,e,r){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"},runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,e=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(e);var r=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(r),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 e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},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].getContext("2d");this.clearCanvas(t),t.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],e=t.getContext("2d");if(this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas);r.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,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&&(1!==this.data.td||t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var e=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(e),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,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var r={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},i={};if("fl"===t.ty||"st"===t.ty?(i.c=PropertyFactory.getProp(this,t.c,1,255,this),i.c.k||(r.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(i.s=PropertyFactory.getProp(this,t.s,1,null,this),i.e=PropertyFactory.getProp(this,t.e,1,null,this),i.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,t.g,this)),i.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"===t.ty||"gs"===t.ty){if(r.lc=lineCapEnum[t.lc||2],r.lj=lineJoinEnum[t.lj||2],1==t.lj&&(r.ml=t.ml),i.w=PropertyFactory.getProp(this,t.w,0,null,this),i.w.k||(r.wi=i.w.v),t.d){var n=new DashProperty(this,t.d,"canvas",this);i.d=n,i.d.k||(r.da=i.d.dashArray,r.do=i.d.dashoffset[0])}}else r.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(r),i.style=r,i},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,r,i,n){var a,o,s,l,p,c,h=t.length-1,u=[],d=[],f=[].concat(n);for(a=h;a>=0;a-=1){if((l=this.searchProcessedElement(t[a]))?e[a]=r[l-1]:t[a]._shouldRender=i,"fl"===t[a].ty||"st"===t[a].ty||"gf"===t[a].ty||"gs"===t[a].ty)l?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],f),u.push(e[a].style);else if("gr"===t[a].ty){if(l)for(s=e[a].it.length,o=0;o<s;o+=1)e[a].prevViewData[o]=e[a].it[o];else e[a]=this.createGroupElement(t[a]);this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,i,f)}else"tr"===t[a].ty?(l||(c=this.createTransformElement(t[a]),e[a]=c),f.push(e[a]),this.addTransformToStyleList(e[a])):"sh"===t[a].ty||"rc"===t[a].ty||"el"===t[a].ty||"sr"===t[a].ty?l||(e[a]=this.createShapeElement(t[a])):"tm"===t[a].ty||"rd"===t[a].ty||"pb"===t[a].ty||"zz"===t[a].ty||"op"===t[a].ty?(l?(p=e[a]).closed=!1:((p=ShapeModifiers.getModifier(t[a].ty)).init(this,t[a]),e[a]=p,this.shapeModifiers.push(p)),d.push(p)):"rp"===t[a].ty&&(l?(p=e[a]).closed=!0:(p=ShapeModifiers.getModifier(t[a].ty),e[a]=p,p.init(this,t,a,e),this.shapeModifiers.push(p),i=!1),d.push(p));this.addProcessedElement(t[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),h=d.length,a=0;a<h;a+=1)d[a].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,r,i,n,a,o,s,l,p=this.stylesList.length,c=this.globalData.renderer,h=this.globalData.canvasContext;for(t=0;t<p;t+=1)if(("st"!==(s=(l=this.stylesList[t]).type)&&"gs"!==s||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(c.save(),a=l.elements,"st"===s||"gs"===s?(c.ctxStrokeStyle("st"===s?l.co:l.grd),c.ctxLineWidth(l.wi),c.ctxLineCap(l.lc),c.ctxLineJoin(l.lj),c.ctxMiterLimit(l.ml||0)):c.ctxFillStyle("fl"===s?l.co:l.grd),c.ctxOpacity(l.coOp),"st"!==s&&"gs"!==s&&h.beginPath(),c.ctxTransform(l.preTransforms.finalTransform.props),r=a.length,e=0;e<r;e+=1){for("st"!==s&&"gs"!==s||(h.beginPath(),l.da&&(h.setLineDash(l.da),h.lineDashOffset=l.do)),n=(o=a[e].trNodes).length,i=0;i<n;i+=1)"m"===o[i].t?h.moveTo(o[i].p[0],o[i].p[1]):"c"===o[i].t?h.bezierCurveTo(o[i].pts[0],o[i].pts[1],o[i].pts[2],o[i].pts[3],o[i].pts[4],o[i].pts[5]):h.closePath();"st"!==s&&"gs"!==s||(c.ctxStroke(),l.da&&h.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(l.r),c.restore()}},CVShapeElement.prototype.renderShape=function(t,e,r,i){var n,a;for(a=t,n=e.length-1;n>=0;n-=1)"tr"===e[n].ty?(a=r[n].transform,this.renderShapeTransform(t,a)):"sh"===e[n].ty||"el"===e[n].ty||"rc"===e[n].ty||"sr"===e[n].ty?this.renderPath(e[n],r[n]):"fl"===e[n].ty?this.renderFill(e[n],r[n],a):"st"===e[n].ty?this.renderStroke(e[n],r[n],a):"gf"===e[n].ty||"gs"===e[n].ty?this.renderGradientFill(e[n],r[n],a):"gr"===e[n].ty?this.renderShape(a,e[n].it,r[n].it):e[n].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var r,i,n,a=t.trNodes,o=e.paths,s=o._length;a.length=0;var l=t.transforms.finalTransform;for(n=0;n<s;n+=1){var p=o.shapes[n];if(p&&p.v){for(i=p._length,r=1;r<i;r+=1)1===r&&a.push({t:"m",p:l.applyToPointArray(p.v[0][0],p.v[0][1],0)}),a.push({t:"c",pts:l.applyToTriplePoints(p.o[r-1],p.i[r],p.v[r])});1===i&&a.push({t:"m",p:l.applyToPointArray(p.v[0][0],p.v[0][1],0)}),p.c&&i&&(a.push({t:"c",pts:l.applyToTriplePoints(p.o[r-1],p.i[0],p.v[0])}),a.push({t:"z"}))}}t.trNodes=a}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var r,i=e.styledShapes.length;for(r=0;r<i;r+=1)this.renderStyledShape(e.styledShapes[r],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,r){var i=e.style;(e.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,r){var i,n=e.style;if(!n.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var a,o=this.globalData.canvasContext,s=e.s.v,l=e.e.v;if(1===t.t)i=o.createLinearGradient(s[0],s[1],l[0],l[1]);else{var p=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),c=Math.atan2(l[1]-s[1],l[0]-s[0]),h=e.h.v;h>=1?h=.99:h<=-1&&(h=-.99);var u=p*h,d=Math.cos(c+e.a.v)*u+s[0],f=Math.sin(c+e.a.v)*u+s[1];i=o.createRadialGradient(d,f,0,s[0],s[1],p)}var g=t.g.p,m=e.g.c,v=1;for(a=0;a<g;a+=1)e.g._hasOpacity&&e.g._collapsable&&(v=e.g.o[2*a+1]),i.addColorStop(m[4*a]/100,"rgba("+m[4*a+1]+","+m[4*a+2]+","+m[4*a+3]+","+v+")");n.grd=i}n.coOp=e.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(t,e,r){var i=e.style,n=e.d;n&&(n._mdf||this._isFirstFrame)&&(i.da=n.dashArray,i.do=n.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*r.opacity),(e.w._mdf||this._isFirstFrame)&&(i.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var r=!1;t.sc&&(r=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var i,n,a,o,s,l,p,c,h,u,d,f,g=this.globalData.fontManager.getFontByName(t.f),m=t.l,v=this.mHelper;this.stroke=r,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,n=t.finalText.length;var y=this.data.singleShape,b=.001*t.tr*t.finalSize,_=0,x=0,S=!0,w=0;for(i=0;i<n;i+=1){o=(a=this.globalData.fontManager.getCharData(t.finalText[i],g.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&a.data||{},v.reset(),y&&m[i].n&&(_=-b,x+=t.yOffset,x+=S?1:0,S=!1),h=(p=o.shapes?o.shapes[0].it:[]).length,v.scale(t.finalSize/100,t.finalSize/100),y&&this.applyTextPropertiesToMatrix(t,v,m[i].line,_,x),d=createSizedArray(h-1);var A=0;for(c=0;c<h;c+=1)if("sh"===p[c].ty){for(l=p[c].ks.k.i.length,u=p[c].ks.k,f=[],s=1;s<l;s+=1)1===s&&f.push(v.applyToX(u.v[0][0],u.v[0][1],0),v.applyToY(u.v[0][0],u.v[0][1],0)),f.push(v.applyToX(u.o[s-1][0],u.o[s-1][1],0),v.applyToY(u.o[s-1][0],u.o[s-1][1],0),v.applyToX(u.i[s][0],u.i[s][1],0),v.applyToY(u.i[s][0],u.i[s][1],0),v.applyToX(u.v[s][0],u.v[s][1],0),v.applyToY(u.v[s][0],u.v[s][1],0));f.push(v.applyToX(u.o[s-1][0],u.o[s-1][1],0),v.applyToY(u.o[s-1][0],u.o[s-1][1],0),v.applyToX(u.i[0][0],u.i[0][1],0),v.applyToY(u.i[0][0],u.i[0][1],0),v.applyToX(u.v[0][0],u.v[0][1],0),v.applyToY(u.v[0][0],u.v[0][1],0)),d[A]=f,A+=1}y&&(_+=m[i].l,_+=b),this.textSpans[w]?this.textSpans[w].elem=d:this.textSpans[w]={elem:d},w+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,r,i,n,a;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var o,s=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;e=l.length;var p,c,h=null,u=null,d=null,f=this.globalData.renderer;for(t=0;t<e;t+=1)if(!l[t].n){if((o=s[t])&&(f.save(),f.ctxTransform(o.p),f.ctxOpacity(o.o)),this.fill){for(o&&o.fc?h!==o.fc&&(f.ctxFillStyle(o.fc),h=o.fc):h!==this.values.fill&&(h=this.values.fill,f.ctxFillStyle(this.values.fill)),i=(p=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(a=(c=p[r]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),n=2;n<a;n+=6)this.globalData.canvasContext.bezierCurveTo(c[n],c[n+1],c[n+2],c[n+3],c[n+4],c[n+5]);this.globalData.canvasContext.closePath(),f.ctxFill()}if(this.stroke){for(o&&o.sw?d!==o.sw&&(d=o.sw,f.ctxLineWidth(o.sw)):d!==this.values.sWidth&&(d=this.values.sWidth,f.ctxLineWidth(this.values.sWidth)),o&&o.sc?u!==o.sc&&(u=o.sc,f.ctxStrokeStyle(o.sc)):u!==this.values.stroke&&(u=this.values.stroke,f.ctxStrokeStyle(this.values.stroke)),i=(p=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(a=(c=p[r]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),n=2;n<a;n+=6)this.globalData.canvasContext.bezierCurveTo(c[n],c[n+1],c[n+2],c[n+3],c[n+4],c[n+5]);this.globalData.canvasContext.closePath(),f.ctxStroke()}o&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,r,i=t.getContext("2d"),n=this.img.width,a=this.img.height,o=n/a,s=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;o>s&&"xMidYMid slice"===l||o<s&&"xMidYMid slice"!==l?e=(r=a)*s:r=(e=n)/s,i.drawImage(this.img,(n-e)/2,(a-r)/2,e,r,0,0,this.assetData.w,this.assetData.h),this.img=t}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){1===t[0]&&0===t[1]&&0===t[4]&&1===t[5]&&0===t[12]&&0===t[13]||this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){this.canvasContext.globalAlpha*=t<0?0:t},CanvasRendererBase.prototype.ctxFillStyle=function(t){this.canvasContext.fillStyle=t},CanvasRendererBase.prototype.ctxStrokeStyle=function(t){this.canvasContext.strokeStyle=t},CanvasRendererBase.prototype.ctxLineWidth=function(t){this.canvasContext.lineWidth=t},CanvasRendererBase.prototype.ctxLineCap=function(t){this.canvasContext.lineCap=t},CanvasRendererBase.prototype.ctxLineJoin=function(t){this.canvasContext.lineJoin=t},CanvasRendererBase.prototype.ctxMiterLimit=function(t){this.canvasContext.miterLimit=t},CanvasRendererBase.prototype.ctxFill=function(t){this.canvasContext.fill(t)},CanvasRendererBase.prototype.ctxFillRect=function(t,e,r,i){this.canvasContext.fillRect(t,e,r,i)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){this.renderConfig.clearCanvas?(t&&(this.globalData.blendMode="source-over"),this.contextData.restore(t)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var r="0px 0px 0px";e.transformOrigin=r,e.mozTransformOrigin=r,e.webkitTransformOrigin=r,e["-webkit-transform"]=r,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){var r,i,n,a;if(this.reset(),t?(r=t,i=e,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=i*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var o=this.renderConfig.preserveAspectRatio.split(" "),s=o[1]||"meet",l=o[0]||"xMidYMid",p=l.substr(0,4),c=l.substr(4);n=r/i,(a=this.transformCanvas.w/this.transformCanvas.h)>n&&"meet"===s||a<n&&"slice"===s?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===p&&(a<n&&"meet"===s||a>n&&"slice"===s)?(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===p&&(a<n&&"meet"===s||a>n&&"slice"===s)?(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===c&&(a>n&&"meet"===s||a<n&&"slice"===s)?(i-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===c&&(a>n&&"meet"===s||a<n&&"slice"===s)?(i-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),t=(this.layers?this.layers.length:0)-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){var r;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(t-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?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();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var r=this.createItem(this.layers[t],this,this.globalData);e[t]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=0;for(e=this._length;e<t;e+=1)this.stack[e]=new CanvasContext;this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(t){this.cArrPos-=1;var e,r=this.stack[this.cArrPos],i=r.transform,n=this.cTr.props;for(e=0;e<16;e+=1)n[e]=i[e];if(t){this.nativeContext.restore();var a=this.stack[this.cArrPos+1];this.appliedFillStyle=a.fillStyle,this.appliedStrokeStyle=a.strokeStyle,this.appliedLineWidth=a.lineWidth,this.appliedLineCap=a.lineCap,this.appliedLineJoin=a.lineJoin,this.appliedMiterLimit=a.miterLimit}this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13]),(t||-1!==r.opacity&&this.currentOpacity!==r.opacity)&&(this.nativeContext.globalAlpha=r.opacity,this.currentOpacity=r.opacity),this.currentFillStyle=r.fillStyle,this.currentStrokeStyle=r.strokeStyle,this.currentLineWidth=r.lineWidth,this.currentLineCap=r.lineCap,this.currentLineJoin=r.lineJoin,this.currentMiterLimit=r.miterLimit},CVContextData.prototype.save=function(t){t&&this.nativeContext.save();var e=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r,i=this.stack[this.cArrPos];for(r=0;r<16;r+=1)i.transform[r]=e[r];this.cArrPos+=1;var n=this.stack[this.cArrPos];n.opacity=i.opacity,n.fillStyle=i.fillStyle,n.strokeStyle=i.strokeStyle,n.lineWidth=i.lineWidth,n.lineCap=i.lineCap,n.lineJoin=i.lineJoin,n.miterLimit=i.miterLimit},CVContextData.prototype.setOpacity=function(t){this.stack[this.cArrPos].opacity=t},CVContextData.prototype.setContext=function(t){this.nativeContext=t},CVContextData.prototype.fillStyle=function(t){this.stack[this.cArrPos].fillStyle!==t&&(this.currentFillStyle=t,this.stack[this.cArrPos].fillStyle=t)},CVContextData.prototype.strokeStyle=function(t){this.stack[this.cArrPos].strokeStyle!==t&&(this.currentStrokeStyle=t,this.stack[this.cArrPos].strokeStyle=t)},CVContextData.prototype.lineWidth=function(t){this.stack[this.cArrPos].lineWidth!==t&&(this.currentLineWidth=t,this.stack[this.cArrPos].lineWidth=t)},CVContextData.prototype.lineCap=function(t){this.stack[this.cArrPos].lineCap!==t&&(this.currentLineCap=t,this.stack[this.cArrPos].lineCap=t)},CVContextData.prototype.lineJoin=function(t){this.stack[this.cArrPos].lineJoin!==t&&(this.currentLineJoin=t,this.stack[this.cArrPos].lineJoin=t)},CVContextData.prototype.miterLimit=function(t){this.stack[this.cArrPos].miterLimit!==t&&(this.currentMiterLimit=t,this.stack[this.cArrPos].miterLimit=t)},CVContextData.prototype.transform=function(t){this.transformMat.cloneFromProps(t);var e=this.cTr;this.transformMat.multiply(e),e.cloneFromProps(this.transformMat.props);var r=e.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(t){var e=this.stack[this.cArrPos].opacity;e*=t<0?0:t,this.stack[this.cArrPos].opacity!==e&&(this.currentOpacity!==t&&(this.nativeContext.globalAlpha=t,this.currentOpacity=t),this.stack[this.cArrPos].opacity=e)},CVContextData.prototype.fill=function(t){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(t)},CVContextData.prototype.fillRect=function(t,e,r,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(t,e,r,i)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},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),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e}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,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)e=t[r].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var r,i,n,a,o,s=t.sh.v,l=t.transformers,p=s._length;if(!(p<=1)){for(r=0;r<p-1;r+=1)i=this.getTransformedPoint(l,s.v[r]),n=this.getTransformedPoint(l,s.o[r]),a=this.getTransformedPoint(l,s.i[r+1]),o=this.getTransformedPoint(l,s.v[r+1]),this.checkBounds(i,n,a,o,e);s.c&&(i=this.getTransformedPoint(l,s.v[r]),n=this.getTransformedPoint(l,s.o[r]),a=this.getTransformedPoint(l,s.i[0]),o=this.getTransformedPoint(l,s.v[0]),this.checkBounds(i,n,a,o,e))}},HShapeElement.prototype.checkBounds=function(t,e,r,i,n){this.getBoundsOfCurve(t,e,r,i);var a=this.shapeBoundingBox;n.x=bmMin(a.left,n.x),n.xMax=bmMax(a.right,n.xMax),n.y=bmMin(a.top,n.y),n.yMax=bmMax(a.bottom,n.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,r,i){for(var n,a,o,s,l,p,c,h=[[t[0],i[0]],[t[1],i[1]]],u=0;u<2;++u)a=6*t[u]-12*e[u]+6*r[u],n=-3*t[u]+9*e[u]-9*r[u]+3*i[u],o=3*e[u]-3*t[u],a|=0,o|=0,0==(n|=0)&&0===a||(0===n?(s=-o/a)>0&&s<1&&h[u].push(this.calculateF(s,t,e,r,i,u)):(l=a*a-4*o*n)>=0&&((p=(-a+bmSqrt(l))/(2*n))>0&&p<1&&h[u].push(this.calculateF(p,t,e,r,i,u)),(c=(-a-bmSqrt(l))/(2*n))>0&&c<1&&h[u].push(this.calculateF(c,t,e,r,i,u))));this.shapeBoundingBox.left=bmMin.apply(null,h[0]),this.shapeBoundingBox.top=bmMin.apply(null,h[1]),this.shapeBoundingBox.right=bmMax.apply(null,h[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,h[1])},HShapeElement.prototype.calculateF=function(t,e,r,i,n,a){return bmPow(1-t,3)*e[a]+3*bmPow(1-t,2)*t*r[a]+3*(1-t)*bmPow(t,2)*i[a]+bmPow(t,3)*n[a]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)t[r]&&t[r].sh?this.calculateShapeBoundingBox(t[r],e):t[r]&&t[r].it?this.calculateBoundingBox(t[r].it,e):t[r]&&t[r].style&&t[r].w&&this.expandStrokeBoundingBox(t[r].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var r=0;if(t.keyframes){for(var i=0;i<t.keyframes.length;i+=1){var n=t.keyframes[i].s;n>r&&(r=n)}r*=t.mult}else r=t.v*t.mult;e.x-=r,e.xMax+=r,e.y-=r,e.yMax+=r},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var r=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),r=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),r=!0),r||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,n="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=n,i.webkitTransform=n}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,r=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=r,e.color=r,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var i,n,a=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",a.fClass)this.innerElem.className=a.fClass;else{e.fontFamily=a.fFamily;var o=t.fWeight,s=t.fStyle;e.fontStyle=s,e.fontWeight=o}var l,p,c,h=t.l;n=h.length;var u,d=this.mHelper,f="",g=0;for(i=0;i<n;i+=1){if(this.globalData.fontManager.chars?(this.textPaths[g]?l=this.textPaths[g]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[g]?c=(p=this.textSpans[g]).children[0]:((p=createTag("div")).style.lineHeight=0,(c=createNS("svg")).appendChild(l),styleDiv(p)))):this.isMasked?l=this.textPaths[g]?this.textPaths[g]:createNS("text"):this.textSpans[g]?(p=this.textSpans[g],l=this.textPaths[g]):(styleDiv(p=createTag("span")),styleDiv(l=createTag("span")),p.appendChild(l)),this.globalData.fontManager.chars){var m,v=this.globalData.fontManager.getCharData(t.finalText[i],a.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(m=v?v.data:null,d.reset(),m&&m.shapes&&m.shapes.length&&(u=m.shapes[0].it,d.scale(t.finalSize/100,t.finalSize/100),f=this.createPathShape(d,u),l.setAttribute("d",f)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(p),m&&m.shapes){document.body.appendChild(c);var y=c.getBBox();c.setAttribute("width",y.width+2),c.setAttribute("height",y.height+2),c.setAttribute("viewBox",y.x-1+" "+(y.y-1)+" "+(y.width+2)+" "+(y.height+2));var b=c.style,_="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";b.transform=_,b.webkitTransform=_,h[i].yOffset=y.y-1}else c.setAttribute("width",1),c.setAttribute("height",1);p.appendChild(c)}}else if(l.textContent=h[i].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(p);var x=l.style,S="translate3d(0,"+-t.finalSize/1.2+"px,0)";x.transform=S,x.webkitTransform=S}this.isMasked?this.textSpans[g]=l:this.textSpans[g]=p,this.textSpans[g].style.display="block",this.textPaths[g]=l,g+=1}for(;g<this.textSpans.length;)this.textSpans[g].style.display="none",g+=1},HTextElement.prototype.renderInnerContent=function(){var t;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),t=this.svgElement.style;var e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e,t.webkitTransform=e}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,i,n,a,o,s=0,l=this.textAnimator.renderedLetters,p=this.textProperty.currentData.l;for(i=p.length,r=0;r<i;r+=1)p[r].n?s+=1:(a=this.textSpans[r],o=this.textPaths[r],n=l[s],s+=1,n._mdf.m&&(this.isMasked?a.setAttribute("transform",n.m):(a.style.webkitTransform=n.m,a.style.transform=n.m)),a.style.opacity=n.o,n.sw&&n._mdf.sw&&o.setAttribute("stroke-width",n.sw),n.sc&&n._mdf.sc&&o.setAttribute("stroke",n.sc),n.fc&&n._mdf.fc&&(o.setAttribute("fill",n.fc),o.style.color=n.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.innerElem.getBBox();if(this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.svgElement.setAttribute("width",c.width)),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.svgElement.setAttribute("height",c.height)),this.currentBBox.w!==c.width+2||this.currentBBox.h!==c.height+2||this.currentBBox.x!==c.x-1||this.currentBBox.y!==c.y-1){this.currentBBox.w=c.width+2,this.currentBBox.h=c.height+2,this.currentBBox.x=c.x-1,this.currentBBox.y=c.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var h="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=h,t.webkitTransform=h}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,r,i,n=this.comp.threeDElements.length;for(t=0;t<n;t+=1)if("3d"===(e=this.comp.threeDElements[t]).type){r=e.perspectiveElem.style,i=e.container.style;var a=this.pe.v+"px",o="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=a,r.webkitPerspective=a,i.transformOrigin=o,i.mozTransformOrigin=o,i.webkitTransformOrigin=o,r.transform=s,r.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,r=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)r=this.hierarchy[t].finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(t=e=this.hierarchy.length-1;t>=0;t-=1){var i=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var n;n=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[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(n[0],2)+Math.pow(n[1],2)+Math.pow(n[2],2)),o=[n[0]/a,n[1]/a,n[2]/a],s=Math.sqrt(o[2]*o[2]+o[0]*o[0]),l=Math.atan2(o[1],s),p=Math.atan2(o[0],-o[2]);this.mat.rotateY(p).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var c=!this._prevMat.equals(this.mat);if((c||this.pe._mdf)&&this.comp.threeDElements){var h,u,d;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)if("3d"===(h=this.comp.threeDElements[t]).type){if(c){var f=this.mat.toCSS();(d=h.container.style).transform=f,d.webkitTransform=f}this.pe._mdf&&((u=h.perspectiveElem.style).perspective=this.pe.v+"px",u.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){var i=this.layers[e];if(i.ddd&&this.supports3d)this.addTo3dContainer(r,e);else if(this.threeDElements)this.addTo3dContainer(r,e);else{for(var n,a,o=0;o<e;)this.elements[o]&&!0!==this.elements[o]&&this.elements[o].getBaseElement&&(a=this.elements[o],n=(this.layers[o].ddd?this.getThreeDContainerByPos(o):a.getBaseElement())||n),o+=1;n?i.ddd&&this.supports3d||this.layerElement.insertBefore(r,n):i.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,r=this.threeDElements.length;e<r;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var r,i,n=createTag("div");styleDiv(n);var a=createTag("div");if(styleDiv(a),"3d"===e){(r=n.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var o="50% 50%";r.webkitTransformOrigin=o,r.mozTransformOrigin=o,r.transformOrigin=o;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(i=a.style).transform=s,i.webkitTransform=s}n.appendChild(a);var l={container:a,perspectiveElem:n,startPos:t,endPos:t,type:e};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var t,e,r=this.layers.length,i="";for(t=0;t<r;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?("3d"!==i&&(i="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):("2d"!==i&&(i="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t));for(t=(r=this.threeDElements.length)-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var r=0,i=this.threeDElements.length;r<i;){if(e<=this.threeDElements[r].endPos){for(var n,a=this.threeDElements[r].startPos;a<e;)this.elements[a]&&this.elements[a].getBaseElement&&(n=this.elements[a].getBaseElement()),a+=1;n?this.threeDElements[r].container.insertBefore(t,n):this.threeDElements[r].container.appendChild(t);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),r=this.animationItem.wrapper,i=e.style;i.width=t.w+"px",i.height=t.h+"px",this.resizerElem=e,styleDiv(e),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),r.appendChild(e),i.overflow="hidden";var n=createNS("svg");n.setAttribute("width","1"),n.setAttribute("height","1"),styleDiv(n),this.resizerElem.appendChild(n);var a=createNS("defs");n.appendChild(a),this.data=t,this.setupGlobalData(t,n),this.globalData.defs=a,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,r,i,n=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight,o=n/a;this.globalData.compSize.w/this.globalData.compSize.h>o?(t=n/this.globalData.compSize.w,e=n/this.globalData.compSize.w,r=0,i=(a-this.globalData.compSize.h*(n/this.globalData.compSize.w))/2):(t=a/this.globalData.compSize.h,e=a/this.globalData.compSize.h,r=(n-this.globalData.compSize.w*(a/this.globalData.compSize.h))/2,i=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+r+","+i+",0,1)",s.transform=s.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 t,e=this.globalData.compSize.w,r=this.globalData.compSize.h,i=this.threeDElements.length;for(t=0;t<i;t+=1){var n=this.threeDElements[t].perspectiveElem.style;n.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(r,2))+"px",n.perspective=n.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,r=t.length,i=createTag("div");for(e=0;e<r;e+=1)if(t[e].xt){var n=this.createComp(t[e],i,this.globalData.comp,null);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var r,i=0;i<e;)this.elements[i]&&this.elements[i].getBaseElement&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(t,r):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=function(t){function e(e){for(var r=0,i=t.layers.length;r<i;){if(t.layers[r].nm===e||t.layers[r].ind===e)return t.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e};function _typeof$2(t){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$2(t)}function seedRandom(t,e){var r=this,i=256,n="random",a=e.pow(i,6),o=e.pow(2,52),s=2*o,l=i-1;function p(t){var e,r=t.length,n=this,a=0,o=n.i=n.j=0,s=n.S=[];for(r||(t=[r++]);a<i;)s[a]=a++;for(a=0;a<i;a++)s[a]=s[o=l&o+t[a%r]+(e=s[a])],s[o]=e;n.g=function(t){for(var e,r=0,a=n.i,o=n.j,s=n.S;t--;)e=s[a=l&a+1],r=r*i+s[l&(s[a]=s[o=l&o+e])+(s[o]=e)];return n.i=a,n.j=o,r}}function c(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function h(t,e){var r,i=[],n=_typeof$2(t);if(e&&"object"==n)for(r in t)try{i.push(h(t[r],e-1))}catch(a){}return i.length?i:"string"==n?t:t+"\0"}function u(t,e){for(var r,i=t+"",n=0;n<i.length;)e[l&n]=l&(r^=19*e[l&n])+i.charCodeAt(n++);return d(e)}function d(t){return String.fromCharCode.apply(0,t)}e["seed"+n]=function(l,f,g){var m=[],v=u(h((f=!0===f?{entropy:!0}:f||{}).entropy?[l,d(t)]:null===l?function(){try{var e=new Uint8Array(i);return(r.crypto||r.msCrypto).getRandomValues(e),d(e)}catch(o){var n=r.navigator,a=n&&n.plugins;return[+new Date,r,a,r.screen,d(t)]}}():l,3),m),y=new p(m),b=function(){for(var t=y.g(6),e=a,r=0;t<o;)t=(t+r)*i,e*=i,r=y.g(1);for(;t>=s;)t/=2,e/=2,r>>>=1;return(t+r)/e};return b.int32=function(){return 0|y.g(4)},b.quick=function(){return y.g(4)/4294967296},b.double=b,u(d(y.S),t),(f.pass||g||function(t,r,i,a){return a&&(a.S&&c(a,y),t.state=function(){return c(y,{})}),i?(e[n]=t,r):t})(b,v,"global"in f?f.global:this==e,f.state)},u(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof$1(t){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$1(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||e instanceof Number||"boolean"===t||"string"===t}function $bm_neg(t){var e=_typeof$1(t);if("number"===e||t instanceof Number||"boolean"===e)return-t;if($bm_isInstanceOfArray(t)){var r,i=t.length,n=[];for(r=0;r<i;r+=1)n[r]=-t[r];return n}return t.propType?t.v:-t}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var r=_typeof$1(t),i=_typeof$1(e);if(isNumerable(r,t)&&isNumerable(i,e)||"string"===r||"string"===i)return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var n=0,a=t.length,o=e.length,s=[];n<a||n<o;)("number"==typeof t[n]||t[n]instanceof Number)&&("number"==typeof e[n]||e[n]instanceof Number)?s[n]=t[n]+e[n]:s[n]=void 0===e[n]?t[n]:t[n]||e[n],n+=1;return s}return 0}var add=sum;function sub(t,e){var r=_typeof$1(t),i=_typeof$1(e);if(isNumerable(r,t)&&isNumerable(i,e))return"string"===r&&(t=parseInt(t,10)),"string"===i&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var n=0,a=t.length,o=e.length,s=[];n<a||n<o;)("number"==typeof t[n]||t[n]instanceof Number)&&("number"==typeof e[n]||e[n]instanceof Number)?s[n]=t[n]-e[n]:s[n]=void 0===e[n]?t[n]:t[n]||e[n],n+=1;return s}return 0}function mul(t,e){var r,i,n,a=_typeof$1(t),o=_typeof$1(e);if(isNumerable(a,t)&&isNumerable(o,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(o,e)){for(n=t.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t[i]*e;return r}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t*e[i];return r}return 0}function div(t,e){var r,i,n,a=_typeof$1(t),o=_typeof$1(e);if(isNumerable(a,t)&&isNumerable(o,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(o,e)){for(n=t.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t[i]/e;return r}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t/e[i];return r}return 0}function mod(t,e){return"string"==typeof t&&(t=parseInt(t,10)),"string"==typeof e&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,r){if(e>r){var i=r;r=e,e=i}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);var r;e||(e=helperLengthArray);var i=Math.min(t.length,e.length),n=0;for(r=0;r<i;r+=1)n+=Math.pow(e[r]-t[r],2);return Math.sqrt(n)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,r,i=t[0],n=t[1],a=t[2],o=Math.max(i,n,a),s=Math.min(i,n,a),l=(o+s)/2;if(o===s)e=0,r=0;else{var p=o-s;switch(r=l>.5?p/(2-o-s):p/(o+s),o){case i:e=(n-a)/p+(n<a?6:0);break;case n:e=(a-i)/p+2;break;case a:e=(i-n)/p+4}e/=6}return[e,r,l,t[3]]}function hue2rgb(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function hslToRgb(t){var e,r,i,n=t[0],a=t[1],o=t[2];if(0===a)e=o,i=o,r=o;else{var s=o<.5?o*(1+a):o+a-o*a,l=2*o-s;e=hue2rgb(l,s,n+1/3),r=hue2rgb(l,s,n),i=hue2rgb(l,s,n-1/3)}return[e,r,i,t[3]]}function linear(t,e,r,i,n){if(void 0!==i&&void 0!==n||(i=e,n=r,e=0,r=1),r<e){var a=r;r=e,e=a}if(t<=e)return i;if(t>=r)return n;var o,s=r===e?0:(t-e)/(r-e);if(!i.length)return i+(n-i)*s;var l=i.length,p=createTypedArray("float32",l);for(o=0;o<l;o+=1)p[o]=i[o]+(n[o]-i[o])*s;return p}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var r,i=e.length;t||(t=createTypedArray("float32",i));var n=createTypedArray("float32",i),a=BMMath.random();for(r=0;r<i;r+=1)n[r]=t[r]+a*(e[r]-t[r]);return n}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,r,i){var n,a=t.length,o=shapePool.newElement();o.setPathData(!!i,a);var s,l,p=[0,0];for(n=0;n<a;n+=1)s=e&&e[n]?e[n]:p,l=r&&r[n]?r[n]:p,o.setTripleAt(t[n][0],t[n][1],l[0]+t[n][0],l[1]+t[n][1],s[0]+t[n][0],s[1]+t[n][1],n,!0);return o}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){var r,i,n=this.pv.length?this.pv.length:1,a=createTypedArray("float32",n),o=Math.floor(5*time);for(r=0,i=0;r<o;){for(i=0;i<n;i+=1)a[i]+=-e+2*e*BMMath.random();r+=1}var s=5*time,l=s-Math.floor(s),p=createTypedArray("float32",n);if(n>1){for(i=0;i<n;i+=1)p[i]=this.pv[i]+a[i]+(-e+2*e*BMMath.random())*l;return p}return this.pv+a[0]+(-e+2*e*BMMath.random())*l}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){var r=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],i=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,i,0]}function easeOut(t,e,r,i,n){return applyEase(easeOutBez,t,e,r,i,n)}function easeIn(t,e,r,i,n){return applyEase(easeInBez,t,e,r,i,n)}function ease(t,e,r,i,n){return applyEase(easeInOutBez,t,e,r,i,n)}function applyEase(t,e,r,i,n,a){void 0===n?(n=r,a=i):e=(e-r)/(i-r),e>1?e=1:e<0&&(e=0);var o=t(e);if($bm_isInstanceOfArray(n)){var s,l=n.length,p=createTypedArray("float32",l);for(s=0;s<l;s+=1)p[s]=(a[s]-n[s])*o+n[s];return p}return(a-n)*o+n}function nearestKey(t){var e,r,i,n=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,i=data.k[0].t;else{for(e=0;e<n-1;e+=1){if(t===data.k[e].t){r=e+1,i=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(r=e+2,i=data.k[e+1].t):(r=e+1,i=data.k[e].t);break}}-1===r&&(r=e+1,i=data.k[e].t)}else r=0,i=0;var a={};return a.index=r,a.time=i/elem.comp.globalData.frameRate,a}function key(t){var e,r,i;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var n=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(i=n.length,r=0;r<i;r+=1)e[r]=n[r],e.value[r]=n[r];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var t={initExpressions:function(t){var e=0,r=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e+=1},t.renderer.globalData.popExpression=function(){0==(e-=1)&&function(){var t,e=r.length;for(t=0;t<e;t+=1)r[t].release();r.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===r.indexOf(t)&&r.push(t)}}};return t.resetFrame=ExpressionManager.resetFrame,t}(),MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var r,i=createSizedArray(e.viewData.length),n=e.viewData.length;for(r=0;r<n;r+=1)i[r]=new t(e.viewData[r],e.masksProperties[r]);return function(t){for(r=0;r<n;){if(e.masksProperties[r].nm===t)return i[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function r(t,e,r){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(i){if(!t.numKeys)return 0;var n="";n="s"in e.keyframes[i-1]?e.keyframes[i-1].s:"e"in e.keyframes[i-2]?e.keyframes[i-2].e:e.keyframes[i-2].s;var a="unidimensional"===r?new Number(n):Object.assign({},n);return a.time=e.keyframes[i-1].t/e.elem.comp.globalData.frameRate,a.value="unidimensional"===r?n[0]:n,a},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function i(){return t}return function(n){return n?"unidimensional"===n.propType?function(e){e&&"pv"in e||(e=t);var i=1/e.mult,n=e.pv*i,a=new Number(n);return a.value=n,r(a,e,"unidimensional"),function(){return e.k&&e.getValue(),n=e.v*i,a.value!==n&&((a=new Number(n)).value=n,r(a,e,"unidimensional")),a}}(n):function(t){t&&"pv"in t||(t=e);var i=1/t.mult,n=t.data&&t.data.l||t.pv.length,a=createTypedArray("float32",n),o=createTypedArray("float32",n);return a.value=o,r(a,t,"multidimensional"),function(){t.k&&t.getValue();for(var e=0;e<n;e+=1)o[e]=t.v[e]*i,a[e]=o[e];return a}}(n):i}}(),TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var r,i,n,a;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?a=ExpressionPropertyInterface(t.p):(r=ExpressionPropertyInterface(t.px),i=ExpressionPropertyInterface(t.py),t.pz&&(n=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?a():[r(),i(),n?n():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=function(){function t(t){var e=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function e(t,e){var r=this.getMatrix(e);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.applyPoint(r,t)}function r(t,e){var r=this.getMatrix(e);return this.applyPoint(r,t)}function i(t,e){var r=this.getMatrix(e);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.invertPoint(r,t)}function n(t,e){var r=this.getMatrix(e);return this.invertPoint(r,t)}function a(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,i=this._elem.hierarchy.length;for(r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}function o(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,i=this._elem.hierarchy.length;for(r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function s(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var r,i=this._elem.hierarchy.length;for(r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function l(){return[1,1,1,1]}return function(p){var c;function h(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return h.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return c;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return h.effect;case"ADBE Text Properties":return h.textInterface;default:return null}}h.getMatrix=t,h.invertPoint=o,h.applyPoint=a,h.toWorld=r,h.toWorldVec=e,h.fromWorld=n,h.fromWorldVec=i,h.toComp=r,h.fromComp=s,h.sampleImage=l,h.sourceRectAtTime=p.sourceRectAtTime.bind(p),h._elem=p;var u=getDescriptor(c=TransformExpressionInterface(p.finalTransform.mProp),"anchorPoint");return Object.defineProperties(h,{hasParent:{get:function(){return p.hierarchy.length}},parent:{get:function(){return p.hierarchy[0].layerInterface}},rotation:getDescriptor(c,"rotation"),scale:getDescriptor(c,"scale"),position:getDescriptor(c,"position"),opacity:getDescriptor(c,"opacity"),anchorPoint:u,anchor_point:u,transform:{get:function(){return c}},active:{get:function(){return p.isInRange}}}),h.startTime=p.data.st,h.index=p.data.ind,h.source=p.data.refId,h.height=0===p.data.ty?p.data.h:100,h.width=0===p.data.ty?p.data.w:100,h.inPoint=p.data.ip/p.comp.globalData.frameRate,h.outPoint=p.data.op/p.comp.globalData.frameRate,h._name=p.data.nm,h.registerMaskInterface=function(t){h.mask=new MaskManagerInterface(t,p)},h.registerEffectsInterface=function(t){h.effect=t},h}}(),propertyGroupFactory=function(t,e){return function(r){return(r=void 0===r?1:r)<=0?t:e(r-1)}},PropertyInterface=function(t,e){var r={_name:t};return function(t){return(t=void 0===t?1:t)<=0?r:e(t-1)}},EffectsExpressionInterface=function(){function t(r,i,n,a){function o(t){for(var e=r.ef,i=0,n=e.length;i<n;){if(t===e[i].nm||t===e[i].mn||t===e[i].ix)return 5===e[i].ty?p[i]:p[i]();i+=1}throw new Error}var s,l=propertyGroupFactory(o,n),p=[],c=r.ef.length;for(s=0;s<c;s+=1)5===r.ef[s].ty?p.push(t(r.ef[s],i.effectElements[s],i.effectElements[s].propertyGroup,a)):p.push(e(i.effectElements[s],r.ef[s].ty,a,l));return"ADBE Color Control"===r.mn&&Object.defineProperty(o,"color",{get:function(){return p[0]()}}),Object.defineProperties(o,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:l}}),o.enabled=0!==r.en,o.active=o.enabled,o}function e(t,e,r,i){var n=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",i)),function(){return 10===e?r.comp.compInterface(t.p.v):n()}}return{createEffectsInterface:function(e,r){if(e.effectsManager){var i,n=[],a=e.data.ef,o=e.effectsManager.effectElements.length;for(i=0;i<o;i+=1)n.push(t(a[i],e.effectsManager.effectElements[i],r,e));var s=e.data.ef||[],l=function(t){for(i=0,o=s.length;i<o;){if(t===s[i].nm||t===s[i].mn||t===s[i].ix)return n[i];i+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return s.length}}),l}return null}}}(),ShapePathInterface=function(t,e,r){var i=e.sh;function n(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?n.path:null}var a=propertyGroupFactory(n,r);return i.setGroupProperty(PropertyInterface("Path",a)),Object.defineProperties(n,{path:{get:function(){return i.k&&i.getValue(),i}},shape:{get:function(){return i.k&&i.getValue(),i}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:r}}),n},ShapeExpressionInterface=function(){function t(t,o,u){var d,f=[],g=t?t.length:0;for(d=0;d<g;d+=1)"gr"===t[d].ty?f.push(e(t[d],o[d],u)):"fl"===t[d].ty?f.push(r(t[d],o[d],u)):"st"===t[d].ty?f.push(n(t[d],o[d],u)):"tm"===t[d].ty?f.push(a(t[d],o[d],u)):"tr"===t[d].ty||("el"===t[d].ty?f.push(s(t[d],o[d],u)):"sr"===t[d].ty?f.push(l(t[d],o[d],u)):"sh"===t[d].ty?f.push(ShapePathInterface(t[d],o[d],u)):"rc"===t[d].ty?f.push(p(t[d],o[d],u)):"rd"===t[d].ty?f.push(c(t[d],o[d],u)):"rp"===t[d].ty?f.push(h(t[d],o[d],u)):"gf"===t[d].ty?f.push(i(t[d],o[d],u)):f.push((t[d],o[d],function(){return null})));return f}function e(e,r,i){var n=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return n.content;default:return n.transform}};n.propertyGroup=propertyGroupFactory(n,i);var a=function(e,r,i){var n,a=function(t){for(var e=0,r=n.length;e<r;){if(n[e]._name===t||n[e].mn===t||n[e].propertyIndex===t||n[e].ix===t||n[e].ind===t)return n[e];e+=1}return"number"==typeof t?n[t-1]:null};a.propertyGroup=propertyGroupFactory(a,i),n=t(e.it,r.it,a.propertyGroup),a.numProperties=n.length;var s=o(e.it[e.it.length-1],r.it[r.it.length-1],a.propertyGroup);return a.transform=s,a.propertyIndex=e.cix,a._name=e.nm,a}(e,r,n.propertyGroup),s=o(e.it[e.it.length-1],r.it[r.it.length-1],n.propertyGroup);return n.content=a,n.transform=s,Object.defineProperty(n,"_name",{get:function(){return e.nm}}),n.numProperties=e.np,n.propertyIndex=e.ix,n.nm=e.nm,n.mn=e.mn,n}function r(t,e,r){function i(t){return"Color"===t||"color"===t?i.color:"Opacity"===t||"opacity"===t?i.opacity:null}return Object.defineProperties(i,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",r)),e.o.setGroupProperty(PropertyInterface("Opacity",r)),i}function i(t,e,r){function i(t){return"Start Point"===t||"start point"===t?i.startPoint:"End Point"===t||"end point"===t?i.endPoint:"Opacity"===t||"opacity"===t?i.opacity:null}return Object.defineProperties(i,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface("Start Point",r)),e.e.setGroupProperty(PropertyInterface("End Point",r)),e.o.setGroupProperty(PropertyInterface("Opacity",r)),i}function n(t,e,r){var i,n=propertyGroupFactory(p,r),a=propertyGroupFactory(l,n);function o(r){Object.defineProperty(l,t.d[r].nm,{get:ExpressionPropertyInterface(e.d.dataProps[r].p)})}var s=t.d?t.d.length:0,l={};for(i=0;i<s;i+=1)o(i),e.d.dataProps[i].p.setGroupProperty(a);function p(t){return"Color"===t||"color"===t?p.color:"Opacity"===t||"opacity"===t?p.opacity:"Stroke Width"===t||"stroke width"===t?p.strokeWidth:null}return Object.defineProperties(p,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return l}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",n)),e.o.setGroupProperty(PropertyInterface("Opacity",n)),e.w.setGroupProperty(PropertyInterface("Stroke Width",n)),p}function a(t,e,r){function i(e){return e===t.e.ix||"End"===e||"end"===e?i.end:e===t.s.ix?i.start:e===t.o.ix?i.offset:null}var n=propertyGroupFactory(i,r);return i.propertyIndex=t.ix,e.s.setGroupProperty(PropertyInterface("Start",n)),e.e.setGroupProperty(PropertyInterface("End",n)),e.o.setGroupProperty(PropertyInterface("Offset",n)),i.propertyIndex=t.ix,i.propertyGroup=r,Object.defineProperties(i,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),i.mn=t.mn,i}function o(t,e,r){function i(e){return t.a.ix===e||"Anchor Point"===e?i.anchorPoint:t.o.ix===e||"Opacity"===e?i.opacity:t.p.ix===e||"Position"===e?i.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?i.rotation:t.s.ix===e||"Scale"===e?i.scale:t.sk&&t.sk.ix===e||"Skew"===e?i.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?i.skewAxis:null}var n=propertyGroupFactory(i,r);return e.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",n)),e.transform.mProps.p.setGroupProperty(PropertyInterface("Position",n)),e.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",n)),e.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",n)),e.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",n)),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",n)),e.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",n))),e.transform.op.setGroupProperty(PropertyInterface("Opacity",n)),Object.defineProperties(i,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),i.ty="tr",i.mn=t.mn,i.propertyGroup=r,i}function s(t,e,r){function i(e){return t.p.ix===e?i.position:t.s.ix===e?i.size:null}var n=propertyGroupFactory(i,r);i.propertyIndex=t.ix;var a="tm"===e.sh.ty?e.sh.prop:e.sh;return a.s.setGroupProperty(PropertyInterface("Size",n)),a.p.setGroupProperty(PropertyInterface("Position",n)),Object.defineProperties(i,{size:{get:ExpressionPropertyInterface(a.s)},position:{get:ExpressionPropertyInterface(a.p)},_name:{value:t.nm}}),i.mn=t.mn,i}function l(t,e,r){function i(e){return t.p.ix===e?i.position:t.r.ix===e?i.rotation:t.pt.ix===e?i.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?i.outerRadius:t.os.ix===e?i.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?i.innerRoundness:null:i.innerRadius}var n=propertyGroupFactory(i,r),a="tm"===e.sh.ty?e.sh.prop:e.sh;return i.propertyIndex=t.ix,a.or.setGroupProperty(PropertyInterface("Outer Radius",n)),a.os.setGroupProperty(PropertyInterface("Outer Roundness",n)),a.pt.setGroupProperty(PropertyInterface("Points",n)),a.p.setGroupProperty(PropertyInterface("Position",n)),a.r.setGroupProperty(PropertyInterface("Rotation",n)),t.ir&&(a.ir.setGroupProperty(PropertyInterface("Inner Radius",n)),a.is.setGroupProperty(PropertyInterface("Inner Roundness",n))),Object.defineProperties(i,{position:{get:ExpressionPropertyInterface(a.p)},rotation:{get:ExpressionPropertyInterface(a.r)},points:{get:ExpressionPropertyInterface(a.pt)},outerRadius:{get:ExpressionPropertyInterface(a.or)},outerRoundness:{get:ExpressionPropertyInterface(a.os)},innerRadius:{get:ExpressionPropertyInterface(a.ir)},innerRoundness:{get:ExpressionPropertyInterface(a.is)},_name:{value:t.nm}}),i.mn=t.mn,i}function p(t,e,r){function i(e){return t.p.ix===e?i.position:t.r.ix===e?i.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?i.size:null}var n=propertyGroupFactory(i,r),a="tm"===e.sh.ty?e.sh.prop:e.sh;return i.propertyIndex=t.ix,a.p.setGroupProperty(PropertyInterface("Position",n)),a.s.setGroupProperty(PropertyInterface("Size",n)),a.r.setGroupProperty(PropertyInterface("Rotation",n)),Object.defineProperties(i,{position:{get:ExpressionPropertyInterface(a.p)},roundness:{get:ExpressionPropertyInterface(a.r)},size:{get:ExpressionPropertyInterface(a.s)},_name:{value:t.nm}}),i.mn=t.mn,i}function c(t,e,r){function i(e){return t.r.ix===e||"Round Corners 1"===e?i.radius:null}var n=propertyGroupFactory(i,r),a=e;return i.propertyIndex=t.ix,a.rd.setGroupProperty(PropertyInterface("Radius",n)),Object.defineProperties(i,{radius:{get:ExpressionPropertyInterface(a.rd)},_name:{value:t.nm}}),i.mn=t.mn,i}function h(t,e,r){function i(e){return t.c.ix===e||"Copies"===e?i.copies:t.o.ix===e||"Offset"===e?i.offset:null}var n=propertyGroupFactory(i,r),a=e;return i.propertyIndex=t.ix,a.c.setGroupProperty(PropertyInterface("Copies",n)),a.o.setGroupProperty(PropertyInterface("Offset",n)),Object.defineProperties(i,{copies:{get:ExpressionPropertyInterface(a.c)},offset:{get:ExpressionPropertyInterface(a.o)},_name:{value:t.nm}}),i.mn=t.mn,i}return function(e,r,i){var n;function a(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?i:n[t-1];for(var e=0,r=n.length;e<r;){if(n[e]._name===t)return n[e];e+=1}return null}return a.propertyGroup=propertyGroupFactory(a,(function(){return i})),n=t(e,r,a.propertyGroup),a.numProperties=n.length,a._name="Contents",a}}(),TextExpressionInterface=function(t){var e;function r(t){return"ADBE Text Document"===t?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){t.textProperty.getValue();var r=t.textProperty.currentData.t;return e&&r===e.value||((e=new String(r)).value=r||new String(r),Object.defineProperty(e,"style",{get:function(){return{fillColor:t.textProperty.currentData.fc}}})),e}}),r};function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}var FootageInterface=(dataInterfaceFactory=function(t){function e(t){return"Outline"===t?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(t){var e="",r=t.getFootageData();function i(t){if(r[t])return e=t,"object"===_typeof(r=r[t])?i:r;var n=t.indexOf(e);if(-1!==n){var a=parseInt(t.substr(n+e.length),10);return"object"===_typeof(r=r[a])?i:r}return""}return function(){return e="",r=t.getFootageData(),i}}(t),e},function(t){function e(t){return"Data"===t?e.dataInterface:null}return e._name="Data",e.dataInterface=dataInterfaceFactory(t),e}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}var expressionHelpers={searchExpressions:function(t,e,r){e.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(t,e,r).bind(r)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),r=this.getValueAtTime(t+-.01),i=0;if(e.length){var n;for(n=0;n<e.length;n+=1)i+=Math.pow(r[n]-e[n],2);i=100*Math.sqrt(i)}else i=0;return i},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,r,i=-.001,n=this.getValueAtTime(t),a=this.getValueAtTime(t+i);if(n.length)for(e=createTypedArray("float32",n.length),r=0;r<n.length;r+=1)e[r]=(a[r]-n[r])/i;else e=(a-n)/i;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function t(t,e,r){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var i,n,a,o,s,l=this.comp.renderedFrame,p=this.keyframes,c=p[p.length-1].t;if(l<=c)return this.pv;if(r?n=c-(i=e?Math.abs(c-this.elem.comp.globalData.frameRate*e):Math.max(0,c-this.elem.data.ip)):((!e||e>p.length-1)&&(e=p.length-1),i=c-(n=p[p.length-1-e].t)),"pingpong"===t){if(Math.floor((l-n)/i)%2!=0)return this.getValueAtTime((i-(l-n)%i+n)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var h=this.getValueAtTime(n/this.comp.globalData.frameRate,0),u=this.getValueAtTime(c/this.comp.globalData.frameRate,0),d=this.getValueAtTime(((l-n)%i+n)/this.comp.globalData.frameRate,0),f=Math.floor((l-n)/i);if(this.pv.length){for(o=(s=new Array(h.length)).length,a=0;a<o;a+=1)s[a]=(u[a]-h[a])*f+d[a];return s}return(u-h)*f+d}if("continue"===t){var g=this.getValueAtTime(c/this.comp.globalData.frameRate,0),m=this.getValueAtTime((c-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(g.length)).length,a=0;a<o;a+=1)s[a]=g[a]+(g[a]-m[a])*((l-c)/this.comp.globalData.frameRate)/5e-4;return s}return g+(l-c)/.001*(g-m)}}return this.getValueAtTime(((l-n)%i+n)/this.comp.globalData.frameRate,0)}function e(t,e,r){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var i,n,a,o,s,l=this.comp.renderedFrame,p=this.keyframes,c=p[0].t;if(l>=c)return this.pv;if(r?n=c+(i=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-c)):((!e||e>p.length-1)&&(e=p.length-1),i=(n=p[e].t)-c),"pingpong"===t){if(Math.floor((c-l)/i)%2==0)return this.getValueAtTime(((c-l)%i+c)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var h=this.getValueAtTime(c/this.comp.globalData.frameRate,0),u=this.getValueAtTime(n/this.comp.globalData.frameRate,0),d=this.getValueAtTime((i-(c-l)%i+c)/this.comp.globalData.frameRate,0),f=Math.floor((c-l)/i)+1;if(this.pv.length){for(o=(s=new Array(h.length)).length,a=0;a<o;a+=1)s[a]=d[a]-(u[a]-h[a])*f;return s}return d-(u-h)*f}if("continue"===t){var g=this.getValueAtTime(c/this.comp.globalData.frameRate,0),m=this.getValueAtTime((c+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(g.length)).length,a=0;a<o;a+=1)s[a]=g[a]+(g[a]-m[a])*(c-l)/.001;return s}return g+(g-m)*(c-l)/.001}}return this.getValueAtTime((i-((c-l)%i+c))/this.comp.globalData.frameRate,0)}function r(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;var r,i,n=this.comp.renderedFrame/this.comp.globalData.frameRate,a=n-t,o=e>1?(n+t-a)/(e-1):1,s=0,l=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;s<e;){if(i=this.getValueAtTime(a+s*o),this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]+=i[l];else r+=i;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]/=e;else r/=e;return r}function i(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e=this._transformCachingAtTime.v;if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){var r=this.a.getValueAtTime(t);e.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var i=this.s.getValueAtTime(t);e.scale(i[0]*this.s.mult,i[1]*this.s.mult,i[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var n=this.sk.getValueAtTime(t),a=this.sa.getValueAtTime(t);e.skewFromAxis(-n*this.sk.mult,a*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var o=this.r.getValueAtTime(t);e.rotate(-o*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(t),l=this.ry.getValueAtTime(t),p=this.rx.getValueAtTime(t),c=this.or.getValueAtTime(t);e.rotateZ(-s*this.rz.mult).rotateY(l*this.ry.mult).rotateX(p*this.rx.mult).rotateZ(-c[2]*this.or.mult).rotateY(c[1]*this.or.mult).rotateX(c[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var h=this.px.getValueAtTime(t),u=this.py.getValueAtTime(t);if(this.data.p.z){var d=this.pz.getValueAtTime(t);e.translate(h*this.px.mult,u*this.py.mult,-d*this.pz.mult)}else e.translate(h*this.px.mult,u*this.py.mult,0)}else{var f=this.p.getValueAtTime(t);e.translate(f[0]*this.p.mult,f[1]*this.p.mult,-f[2]*this.p.mult)}return e}function n(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,r){var o=a(t,e,r);return o.dynamicProperties.length?o.getValueAtTime=i.bind(o):o.getValueAtTime=n.bind(o),o.setGroupProperty=expressionHelpers.setGroupProperty,o};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(i,n,a,s,l){var p=o(i,n,a,s,l);p.kf?p.getValueAtTime=expressionHelpers.getValueAtTime.bind(p):p.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(p),p.setGroupProperty=expressionHelpers.setGroupProperty,p.loopOut=t,p.loopIn=e,p.smooth=r,p.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(p),p.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(p),p.numKeys=1===n.a?n.k.length:0,p.propertyIndex=n.ix;var c=0;return 0!==a&&(c=createTypedArray("float32",1===n.a?n.k[0].s.length:n.k.length)),p._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:c},expressionHelpers.searchExpressions(i,n,p),p.k&&l.addDynamicProperty(p),p};var s=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function p(){}p.prototype={vertices:function(t,e){this.k&&this.getValue();var r,i=this.v;void 0!==e&&(i=this.getValueAtTime(e,0));var n=i._length,a=i[t],o=i.v,s=createSizedArray(n);for(r=0;r<n;r+=1)s[r]="i"===t||"o"===t?[a[r][0]-o[r][0],a[r][1]-o[r][1]]:[a[r][0],a[r][1]];return s},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var r=this.v;void 0!==e&&(r=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var i,n=this._segmentsLength,a=n.lengths,o=n.totalLength*t,s=0,l=a.length,p=0;s<l;){if(p+a[s].addedLength>o){var c=s,h=r.c&&s===l-1?0:s+1,u=(o-p)/a[s].addedLength;i=bez.getPointInSegment(r.v[c],r.v[h],r.o[c],r.i[h],u,a[s]);break}p+=a[s].addedLength,s+=1}return i||(i=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),i},vectorOnPath:function(t,e,r){1==t?t=this.v.c:0==t&&(t=.999);var i=this.pointOnPath(t,e),n=this.pointOnPath(t+.001,e),a=n[0]-i[0],o=n[1]-i[1],s=Math.sqrt(Math.pow(a,2)+Math.pow(o,2));return 0===s?[0,0]:"tangent"===r?[a/s,o/s]:[-o/s,a/s]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([p],s),extendPrototype([p],l),l.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var c=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,r,i,n){var a=c(t,e,r,i,n);return a.propertyIndex=e.ix,a.lock=!1,3===r?expressionHelpers.searchExpressions(t,e.pt,a):4===r&&expressionHelpers.searchExpressions(t,e.ks,a),a.k&&t.addDynamicProperty(a),a}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var r=this.calculateExpression(e);if(t.t!==r){var i={};return this.copyData(i,t),i.t=r.toString(),i.__complete=!1,i}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){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}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(t,e){var r,i,n=createNS("feMerge");for(n.setAttribute("result",t),i=0;i<e.length;i+=1)(r=createNS("feMergeNode")).setAttribute("in",e[i]),n.appendChild(r),n.appendChild(r);return n}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(t,e,r,i,n){this.filterManager=e;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=a,a.setAttribute("result",i+"_tint_1"),t.appendChild(a),(a=createNS("feColorMatrix")).setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",i+"_tint_2"),t.appendChild(a),this.matrixFilter=a;var o=this.createMergeNode(i,[n,i+"_tint_1",i+"_tint_2"]);t.appendChild(o)}function SVGFillFilter(t,e,r,i){this.filterManager=e;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",i),t.appendChild(n),this.matrixFilter=n}function SVGStrokeEffect(t,e,r){this.initialized=!1,this.filterManager=e,this.elem=r,this.paths=[]}function SVGTritoneFilter(t,e,r,i){this.filterManager=e;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(n);var a=createNS("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",i),this.matrixFilter=a;var o=createNS("feFuncR");o.setAttribute("type","table"),a.appendChild(o),this.feFuncR=o;var s=createNS("feFuncG");s.setAttribute("type","table"),a.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),a.appendChild(l),this.feFuncB=l,t.appendChild(a)}function SVGProLevelsFilter(t,e,r,i){this.filterManager=e;var n=this.filterManager.effectElements,a=createNS("feComponentTransfer");(n[10].p.k||0!==n[10].p.v||n[11].p.k||1!==n[11].p.v||n[12].p.k||1!==n[12].p.v||n[13].p.k||0!==n[13].p.v||n[14].p.k||1!==n[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(n[17].p.k||0!==n[17].p.v||n[18].p.k||1!==n[18].p.v||n[19].p.k||1!==n[19].p.v||n[20].p.k||0!==n[20].p.v||n[21].p.k||1!==n[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(n[24].p.k||0!==n[24].p.v||n[25].p.k||1!==n[25].p.v||n[26].p.k||1!==n[26].p.v||n[27].p.k||0!==n[27].p.v||n[28].p.k||1!==n[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(n[31].p.k||0!==n[31].p.v||n[32].p.k||1!==n[32].p.v||n[33].p.k||1!==n[33].p.v||n[34].p.k||0!==n[34].p.v||n[35].p.k||1!==n[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(a)),(n[3].p.k||0!==n[3].p.v||n[4].p.k||1!==n[4].p.v||n[5].p.k||1!==n[5].p.v||n[6].p.k||0!==n[6].p.v||n[7].p.k||1!==n[7].p.v)&&((a=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",i),t.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}function SVGDropShadowEffect(t,e,r,i,n){var a=e.container.globalData.renderConfig.filterSize,o=e.data.fs||a;t.setAttribute("x",o.x||a.x),t.setAttribute("y",o.y||a.y),t.setAttribute("width",o.width||a.width),t.setAttribute("height",o.height||a.height),this.filterManager=e;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",i+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,t.appendChild(s);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,t.appendChild(l);var p=createNS("feFlood");p.setAttribute("flood-color","#00ff00"),p.setAttribute("flood-opacity","1"),p.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=p,t.appendChild(p);var c=createNS("feComposite");c.setAttribute("in",i+"_drop_shadow_3"),c.setAttribute("in2",i+"_drop_shadow_2"),c.setAttribute("operator","in"),c.setAttribute("result",i+"_drop_shadow_4"),t.appendChild(c);var h=this.createMergeNode(i,[i+"_drop_shadow_4",n]);t.appendChild(h)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",r[0]-e[0]+" 0 0 0 "+e[0]+" "+(r[1]-e[1])+" 0 0 0 "+e[1]+" "+(r[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,r,i,n=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(i=this.elem.maskManager.masksProperties.length,r=0):i=1+(r=this.filterManager.effectElements[0].p.v-1),(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);r<i;r+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:r});if(3===this.filterManager.effectElements[10].p.v){var a=createNS("mask"),o=createElementID();a.setAttribute("id",o),a.setAttribute("mask-type","alpha"),a.appendChild(e),this.elem.globalData.defs.appendChild(a);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+o+")");n[0];)s.appendChild(n[0]);this.elem.layerElement.appendChild(s),this.masker=a,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(n=this.elem.layerElement.children||this.elem.layerElement.childNodes;n.length;)this.elem.layerElement.removeChild(n[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){var e;this.initialized||this.initialize();var r,i,n=this.paths.length;for(e=0;e<n;e+=1)if(-1!==this.paths[e].m&&(r=this.elem.maskManager.viewData[this.paths[e].m],i=this.paths[e].p,(t||this.filterManager._mdf||r.prop._mdf)&&i.setAttribute("d",r.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var a;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var o=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=i.getTotalLength();a="0 0 0 "+l*o+" ";var p,c=l*(s-o),h=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,u=Math.floor(c/h);for(p=0;p<u;p+=1)a+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";a+="0 "+10*l+" 0 0"}else a="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;i.setAttribute("stroke-dasharray",a)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var d=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*d[0])+","+bmFloor(255*d[1])+","+bmFloor(255*d[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,n=i[0]+" "+r[0]+" "+e[0],a=i[1]+" "+r[1]+" "+e[1],o=i[2]+" "+r[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",n),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",o)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var r=createNS(t);return r.setAttribute("type","table"),e.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(t,e,r,i,n){for(var a,o,s=0,l=Math.min(t,e),p=Math.max(t,e),c=Array.call(null,{length:256}),h=0,u=n-i,d=e-t;s<=256;)o=(a=s/256)<=l?d<0?n:i:a>=p?d<0?i:n:i+u*Math.pow((a-t)/d,1/r),c[h]=o,h+=1,s+=256/255;return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,r=this.filterManager.effectElements;this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(e=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",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(e=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",e)),this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(e=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",e)),this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(e=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",e)),this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(e=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",e))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||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,n=r*Math.cos(i),a=r*Math.sin(i);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,r){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(t,e,r,i){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var n=createNS("feGaussianBlur");n.setAttribute("result",i),t.appendChild(n),this.feGaussianBlur=n}function TransformEffect(){}function SVGTransformEffect(t,e){this.init(e)}function CVTransformEffect(t){this.init(t)}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,r=_svgMatteSymbols.length;e<r;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var r=t.layerElement.parentNode;if(r){for(var i,n=r.children,a=0,o=n.length;a<o&&n[a]!==t.layerElement;)a+=1;a<=o-2&&(i=n[a+1]);var s=createNS("use");s.setAttribute("href","#"+e),i?r.insertBefore(s,i):r.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var r=createElementID(),i=createNS("mask");i.setAttribute("id",e.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var n=t.globalData.defs;n.appendChild(i);var a=createNS("symbol");a.setAttribute("id",r),this.replaceInParent(e,r),a.appendChild(e.layerElement),n.appendChild(a);var o=createNS("use");o.setAttribute("href","#"+r),i.appendChild(o),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,r=0,i=e.length;r<i;)e[r]&&e[r].data.ind===t&&this.setElementAsMask(this.elem,e[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=3==r?0:e,n=2==r?0:e;this.feGaussianBlur.setAttribute("stdDeviation",i+" "+n);var a=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}},TransformEffect.prototype.init=function(t){this.effectsManager=t,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(t){if(this._opMdf=!1,this._mdf=!1,t||this.effectsManager._mdf){var e=this.effectsManager.effectElements,r=e[0].p.v,i=e[1].p.v,n=1===e[2].p.v,a=e[3].p.v,o=n?a:e[4].p.v,s=e[5].p.v,l=e[6].p.v,p=e[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(.01*o,.01*a,1),this.matrix.rotate(-p*degToRads),this.matrix.skewFromAxis(-s*degToRads,(l+90)*degToRads),this.matrix.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==e[8].p.v&&(this.opacity=e[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())})(lottie,lottie.exports);var lottieExports=lottie.exports;const Lottie=getDefaultExportFromCjs(lottieExports);var freeGlobal="object"==typeof global&&global&&global.Object===Object&&global,freeGlobal$1=freeGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")(),root$1=root,Symbol$1=root$1.Symbol,Symbol$2=Symbol$1,objectProto$e=Object.prototype,hasOwnProperty$b=objectProto$e.hasOwnProperty,nativeObjectToString$1=objectProto$e.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(t){var e=hasOwnProperty$b.call(t,symToStringTag$1),r=t[symToStringTag$1];try{t[symToStringTag$1]=void 0;var i=!0}catch(a){}var n=nativeObjectToString$1.call(t);return i&&(e?t[symToStringTag$1]=r:delete t[symToStringTag$1]),n}var objectProto$d=Object.prototype,nativeObjectToString=objectProto$d.toString;function objectToString(t){return nativeObjectToString.call(t)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(t){return null==t?void 0===t?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(t)?getRawTag(t):objectToString(t)}function isObjectLike(t){return null!=t&&"object"==typeof t}var isArray=Array.isArray,isArray$1=isArray;function isObject(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(t){if(!isObject(t))return!1;var e=baseGetTag(t);return e==funcTag$2||e==genTag$1||e==asyncTag||e==proxyTag}var coreJsData=root$1["__core-js_shared__"],coreJsData$1=coreJsData,maskSrcKey=(uid=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||""),uid?"Symbol(src)_1."+uid:""),uid;function isMasked(t){return!!maskSrcKey&&maskSrcKey in t}var funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource(t){if(null!=t){try{return funcToString$1.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$c=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$a=objectProto$c.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$a).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(t){return!(!isObject(t)||isMasked(t))&&(isFunction(t)?reIsNative:reIsHostCtor).test(toSource(t))}function getValue(t,e){return null==t?void 0:t[e]}function getNative(t,e){var r=getValue(t,e);return baseIsNative(r)?r:void 0}var WeakMap=getNative(root$1,"WeakMap"),WeakMap$1=WeakMap,objectCreate=Object.create,baseCreate=function(){function t(){}return function(e){if(!isObject(e))return{};if(objectCreate)return objectCreate(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),baseCreate$1=baseCreate;function copyArray(t,e){var r=-1,i=t.length;for(e||(e=Array(i));++r<i;)e[r]=t[r];return e}var defineProperty=function(){try{var t=getNative(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),defineProperty$1=defineProperty;function arrayEach(t,e){for(var r=-1,i=null==t?0:t.length;++r<i&&!1!==e(t[r],r,t););return t}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(t,e){var r=typeof t;return!!(e=null==e?MAX_SAFE_INTEGER$1:e)&&("number"==r||"symbol"!=r&&reIsUint.test(t))&&t>-1&&t%1==0&&t<e}function baseAssignValue(t,e,r){"__proto__"==e&&defineProperty$1?defineProperty$1(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function eq(t,e){return t===e||t!=t&&e!=e}var objectProto$b=Object.prototype,hasOwnProperty$9=objectProto$b.hasOwnProperty;function assignValue(t,e,r){var i=t[e];hasOwnProperty$9.call(t,e)&&eq(i,r)&&(void 0!==r||e in t)||baseAssignValue(t,e,r)}function copyObject(t,e,r,i){var n=!r;r||(r={});for(var a=-1,o=e.length;++a<o;){var s=e[a],l=i?i(r[s],t[s],s,r,t):void 0;void 0===l&&(l=t[s]),n?baseAssignValue(r,s,l):assignValue(r,s,l)}return r}var MAX_SAFE_INTEGER=9007199254740991;function isLength(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=MAX_SAFE_INTEGER}function isArrayLike(t){return null!=t&&isLength(t.length)&&!isFunction(t)}var objectProto$a=Object.prototype;function isPrototype(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||objectProto$a)}function baseTimes(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}var argsTag$3="[object Arguments]";function baseIsArguments(t){return isObjectLike(t)&&baseGetTag(t)==argsTag$3}var objectProto$9=Object.prototype,hasOwnProperty$8=objectProto$9.hasOwnProperty,propertyIsEnumerable$1=objectProto$9.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(t){return isObjectLike(t)&&hasOwnProperty$8.call(t,"callee")&&!propertyIsEnumerable$1.call(t,"callee")},isArguments$1=isArguments;function stubFalse(){return!1}var freeExports$2="object"==typeof exports&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&"object"==typeof module&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$1=moduleExports$2?root$1.Buffer:void 0,nativeIsBuffer=Buffer$1?Buffer$1.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse,isBuffer$1=isBuffer,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$1="[object Function]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$3="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};function baseIsTypedArray(t){return isObjectLike(t)&&isLength(t.length)&&!!typedArrayTags[baseGetTag(t)]}function baseUnary(t){return function(e){return t(e)}}typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0,typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=!1;var freeExports$1="object"==typeof exports&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&"object"==typeof module&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal$1.process,nodeUtil=function(){try{var t=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return t||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}(),nodeUtil$1=nodeUtil,nodeIsTypedArray=nodeUtil$1&&nodeUtil$1.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray$1=isTypedArray,objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty;function arrayLikeKeys(t,e){var r=isArray$1(t),i=!r&&isArguments$1(t),n=!r&&!i&&isBuffer$1(t),a=!r&&!i&&!n&&isTypedArray$1(t),o=r||i||n||a,s=o?baseTimes(t.length,String):[],l=s.length;for(var p in t)!e&&!hasOwnProperty$7.call(t,p)||o&&("length"==p||n&&("offset"==p||"parent"==p)||a&&("buffer"==p||"byteLength"==p||"byteOffset"==p)||isIndex(p,l))||s.push(p);return s}function overArg(t,e){return function(r){return t(e(r))}}var nativeKeys=overArg(Object.keys,Object),nativeKeys$1=nativeKeys,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function baseKeys(t){if(!isPrototype(t))return nativeKeys$1(t);var e=[];for(var r in Object(t))hasOwnProperty$6.call(t,r)&&"constructor"!=r&&e.push(r);return e}function keys(t){return isArrayLike(t)?arrayLikeKeys(t):baseKeys(t)}function nativeKeysIn(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}var objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty;function baseKeysIn(t){if(!isObject(t))return nativeKeysIn(t);var e=isPrototype(t),r=[];for(var i in t)("constructor"!=i||!e&&hasOwnProperty$5.call(t,i))&&r.push(i);return r}function keysIn(t){return isArrayLike(t)?arrayLikeKeys(t,!0):baseKeysIn(t)}var nativeCreate=getNative(Object,"create"),nativeCreate$1=nativeCreate;function hashClear(){this.__data__=nativeCreate$1?nativeCreate$1(null):{},this.size=0}function hashDelete(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty;function hashGet(t){var e=this.__data__;if(nativeCreate$1){var r=e[t];return r===HASH_UNDEFINED$2?void 0:r}return hasOwnProperty$4.call(e,t)?e[t]:void 0}var objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function hashHas(t){var e=this.__data__;return nativeCreate$1?void 0!==e[t]:hasOwnProperty$3.call(e,t)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=nativeCreate$1&&void 0===e?HASH_UNDEFINED$1:e,this}function Hash(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf(t,e){for(var r=t.length;r--;)if(eq(t[r][0],e))return r;return-1}Hash.prototype.clear=hashClear,Hash.prototype.delete=hashDelete,Hash.prototype.get=hashGet,Hash.prototype.has=hashHas,Hash.prototype.set=hashSet;var arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(t){var e=this.__data__,r=assocIndexOf(e,t);return!(r<0)&&(r==e.length-1?e.pop():splice.call(e,r,1),--this.size,!0)}function listCacheGet(t){var e=this.__data__,r=assocIndexOf(e,t);return r<0?void 0:e[r][1]}function listCacheHas(t){return assocIndexOf(this.__data__,t)>-1}function listCacheSet(t,e){var r=this.__data__,i=assocIndexOf(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}function ListCache(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}ListCache.prototype.clear=listCacheClear,ListCache.prototype.delete=listCacheDelete,ListCache.prototype.get=listCacheGet,ListCache.prototype.has=listCacheHas,ListCache.prototype.set=listCacheSet;var Map$1=getNative(root$1,"Map"),Map$1$1=Map$1;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$1$1||ListCache),string:new Hash}}function isKeyable(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function getMapData(t,e){var r=t.__data__;return isKeyable(e)?r["string"==typeof e?"string":"hash"]:r.map}function mapCacheDelete(t){var e=getMapData(this,t).delete(t);return this.size-=e?1:0,e}function mapCacheGet(t){return getMapData(this,t).get(t)}function mapCacheHas(t){return getMapData(this,t).has(t)}function mapCacheSet(t,e){var r=getMapData(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}function MapCache(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function arrayPush(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}MapCache.prototype.clear=mapCacheClear,MapCache.prototype.delete=mapCacheDelete,MapCache.prototype.get=mapCacheGet,MapCache.prototype.has=mapCacheHas,MapCache.prototype.set=mapCacheSet;var getPrototype=overArg(Object.getPrototypeOf,Object),getPrototype$1=getPrototype;function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function stackGet(t){return this.__data__.get(t)}function stackHas(t){return this.__data__.has(t)}var LARGE_ARRAY_SIZE=200;function stackSet(t,e){var r=this.__data__;if(r instanceof ListCache){var i=r.__data__;if(!Map$1$1||i.length<LARGE_ARRAY_SIZE-1)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new MapCache(i)}return r.set(t,e),this.size=r.size,this}function Stack(t){var e=this.__data__=new ListCache(t);this.size=e.size}function baseAssign(t,e){return t&©Object(e,keys(e),t)}function baseAssignIn(t,e){return t&©Object(e,keysIn(e),t)}Stack.prototype.clear=stackClear,Stack.prototype.delete=stackDelete,Stack.prototype.get=stackGet,Stack.prototype.has=stackHas,Stack.prototype.set=stackSet;var freeExports="object"==typeof exports&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&"object"==typeof module&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer=moduleExports?root$1.Buffer:void 0,allocUnsafe=Buffer?Buffer.allocUnsafe:void 0;function cloneBuffer(t,e){if(e)return t.slice();var r=t.length,i=allocUnsafe?allocUnsafe(r):new t.constructor(r);return t.copy(i),i}function arrayFilter(t,e){for(var r=-1,i=null==t?0:t.length,n=0,a=[];++r<i;){var o=t[r];e(o,r,t)&&(a[n++]=o)}return a}function stubArray(){return[]}var objectProto$3=Object.prototype,propertyIsEnumerable=objectProto$3.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols$1?function(t){return null==t?[]:(t=Object(t),arrayFilter(nativeGetSymbols$1(t),(function(e){return propertyIsEnumerable.call(t,e)})))}:stubArray,getSymbols$1=getSymbols;function copySymbols(t,e){return copyObject(t,getSymbols$1(t),e)}var nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function(t){for(var e=[];t;)arrayPush(e,getSymbols$1(t)),t=getPrototype$1(t);return e}:stubArray,getSymbolsIn$1=getSymbolsIn;function copySymbolsIn(t,e){return copyObject(t,getSymbolsIn$1(t),e)}function baseGetAllKeys(t,e,r){var i=e(t);return isArray$1(t)?i:arrayPush(i,r(t))}function getAllKeys(t){return baseGetAllKeys(t,keys,getSymbols$1)}function getAllKeysIn(t){return baseGetAllKeys(t,keysIn,getSymbolsIn$1)}var DataView=getNative(root$1,"DataView"),DataView$1=DataView,Promise$1=getNative(root$1,"Promise"),Promise$2=Promise$1,Set=getNative(root$1,"Set"),Set$1=Set,mapTag$4="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$4="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$1$1),promiseCtorString=toSource(Promise$2),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag=baseGetTag;(DataView$1&&getTag(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$3||Map$1$1&&getTag(new Map$1$1)!=mapTag$4||Promise$2&&getTag(Promise$2.resolve())!=promiseTag||Set$1&&getTag(new Set$1)!=setTag$4||WeakMap$1&&getTag(new WeakMap$1)!=weakMapTag$1)&&(getTag=function(t){var e=baseGetTag(t),r=e==objectTag$2?t.constructor:void 0,i=r?toSource(r):"";if(i)switch(i){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$4;case promiseCtorString:return promiseTag;case setCtorString:return setTag$4;case weakMapCtorString:return weakMapTag$1}return e});var getTag$1=getTag,objectProto$2=Object.prototype,hasOwnProperty$2=objectProto$2.hasOwnProperty;function initCloneArray(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&hasOwnProperty$2.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var Uint8Array$1=root$1.Uint8Array,Uint8Array$1$1=Uint8Array$1;function cloneArrayBuffer(t){var e=new t.constructor(t.byteLength);return new Uint8Array$1$1(e).set(new Uint8Array$1$1(t)),e}function cloneDataView(t,e){var r=e?cloneArrayBuffer(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var reFlags=/\w*$/;function cloneRegExp(t){var e=new t.constructor(t.source,reFlags.exec(t));return e.lastIndex=t.lastIndex,e}var symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf$1=symbolProto$1?symbolProto$1.valueOf:void 0;function cloneSymbol(t){return symbolValueOf$1?Object(symbolValueOf$1.call(t)):{}}function cloneTypedArray(t,e){var r=e?cloneArrayBuffer(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var boolTag$2="[object Boolean]",dateTag$2="[object Date]",mapTag$3="[object Map]",numberTag$2="[object Number]",regexpTag$2="[object RegExp]",setTag$3="[object Set]",stringTag$2="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag(t,e,r){var i=t.constructor;switch(e){case arrayBufferTag$2:return cloneArrayBuffer(t);case boolTag$2:case dateTag$2:return new i(+t);case dataViewTag$2:return cloneDataView(t,r);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(t,r);case mapTag$3:return new i;case numberTag$2:case stringTag$2:return new i(t);case regexpTag$2:return cloneRegExp(t);case setTag$3:return new i;case symbolTag$2:return cloneSymbol(t)}}function initCloneObject(t){return"function"!=typeof t.constructor||isPrototype(t)?{}:baseCreate$1(getPrototype$1(t))}var mapTag$2="[object Map]";function baseIsMap(t){return isObjectLike(t)&&getTag$1(t)==mapTag$2}var nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap,isMap=nodeIsMap?baseUnary(nodeIsMap):baseIsMap,isMap$1=isMap,setTag$2="[object Set]";function baseIsSet(t){return isObjectLike(t)&&getTag$1(t)==setTag$2}var nodeIsSet=nodeUtil$1&&nodeUtil$1.isSet,isSet=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,isSet$1=isSet,CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$1=4,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag$1="[object Map]",numberTag$1="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$1="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};function baseClone(t,e,r,i,n,a){var o,s=e&CLONE_DEEP_FLAG$1,l=e&CLONE_FLAT_FLAG,p=e&CLONE_SYMBOLS_FLAG$1;if(r&&(o=n?r(t,i,n,a):r(t)),void 0!==o)return o;if(!isObject(t))return t;var c=isArray$1(t);if(c){if(o=initCloneArray(t),!s)return copyArray(t,o)}else{var h=getTag$1(t),u=h==funcTag||h==genTag;if(isBuffer$1(t))return cloneBuffer(t,s);if(h==objectTag$1||h==argsTag$1||u&&!n){if(o=l||u?{}:initCloneObject(t),!s)return l?copySymbolsIn(t,baseAssignIn(o,t)):copySymbols(t,baseAssign(o,t))}else{if(!cloneableTags[h])return n?t:{};o=initCloneByTag(t,h,s)}}a||(a=new Stack);var d=a.get(t);if(d)return d;a.set(t,o),isSet$1(t)?t.forEach((function(i){o.add(baseClone(i,e,r,i,t,a))})):isMap$1(t)&&t.forEach((function(i,n){o.set(n,baseClone(i,e,r,n,t,a))}));var f=c?void 0:(p?l?getAllKeysIn:getAllKeys:l?keysIn:keys)(t);return arrayEach(f||t,(function(i,n){f&&(i=t[n=i]),assignValue(o,n,baseClone(i,e,r,n,t,a))})),o}cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$1]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$1]=cloneableTags[dateTag$1]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$1]=cloneableTags[numberTag$1]=cloneableTags[objectTag$1]=cloneableTags[regexpTag$1]=cloneableTags[setTag$1]=cloneableTags[stringTag$1]=cloneableTags[symbolTag$1]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag$1]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;var CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;function cloneDeep(t){return baseClone(t,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(t){return this.__data__.set(t,HASH_UNDEFINED),this}function setCacheHas(t){return this.__data__.has(t)}function SetCache(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new MapCache;++e<r;)this.add(t[e])}function arraySome(t,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(e(t[r],r,t))return!0;return!1}function cacheHas(t,e){return t.has(e)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd,SetCache.prototype.has=setCacheHas;var COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;function equalArrays(t,e,r,i,n,a){var o=r&COMPARE_PARTIAL_FLAG$3,s=t.length,l=e.length;if(s!=l&&!(o&&l>s))return!1;var p=a.get(t),c=a.get(e);if(p&&c)return p==e&&c==t;var h=-1,u=!0,d=r&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(a.set(t,e),a.set(e,t);++h<s;){var f=t[h],g=e[h];if(i)var m=o?i(g,f,h,e,t,a):i(f,g,h,t,e,a);if(void 0!==m){if(m)continue;u=!1;break}if(d){if(!arraySome(e,(function(t,e){if(!cacheHas(d,e)&&(f===t||n(f,t,r,i,a)))return d.push(e)}))){u=!1;break}}else if(f!==g&&!n(f,g,r,i,a)){u=!1;break}}return a.delete(t),a.delete(e),u}function mapToArray(t){var e=-1,r=Array(t.size);return t.forEach((function(t,i){r[++e]=[i,t]})),r}function setToArray(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(t,e,r,i,n,a,o){switch(r){case dataViewTag:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case arrayBufferTag:return!(t.byteLength!=e.byteLength||!a(new Uint8Array$1$1(t),new Uint8Array$1$1(e)));case boolTag:case dateTag:case numberTag:return eq(+t,+e);case errorTag:return t.name==e.name&&t.message==e.message;case regexpTag:case stringTag:return t==e+"";case mapTag:var s=mapToArray;case setTag:var l=i&COMPARE_PARTIAL_FLAG$2;if(s||(s=setToArray),t.size!=e.size&&!l)return!1;var p=o.get(t);if(p)return p==e;i|=COMPARE_UNORDERED_FLAG,o.set(t,e);var c=equalArrays(s(t),s(e),i,n,a,o);return o.delete(t),c;case symbolTag:if(symbolValueOf)return symbolValueOf.call(t)==symbolValueOf.call(e)}return!1}var COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function equalObjects(t,e,r,i,n,a){var o=r&COMPARE_PARTIAL_FLAG$1,s=getAllKeys(t),l=s.length;if(l!=getAllKeys(e).length&&!o)return!1;for(var p=l;p--;){var c=s[p];if(!(o?c in e:hasOwnProperty$1.call(e,c)))return!1}var h=a.get(t),u=a.get(e);if(h&&u)return h==e&&u==t;var d=!0;a.set(t,e),a.set(e,t);for(var f=o;++p<l;){var g=t[c=s[p]],m=e[c];if(i)var v=o?i(m,g,c,e,t,a):i(g,m,c,t,e,a);if(!(void 0===v?g===m||n(g,m,r,i,a):v)){d=!1;break}f||(f="constructor"==c)}if(d&&!f){var y=t.constructor,b=e.constructor;y==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(d=!1)}return a.delete(t),a.delete(e),d}var COMPARE_PARTIAL_FLAG=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep(t,e,r,i,n,a){var o=isArray$1(t),s=isArray$1(e),l=o?arrayTag:getTag$1(t),p=s?arrayTag:getTag$1(e),c=(l=l==argsTag?objectTag:l)==objectTag,h=(p=p==argsTag?objectTag:p)==objectTag,u=l==p;if(u&&isBuffer$1(t)){if(!isBuffer$1(e))return!1;o=!0,c=!1}if(u&&!c)return a||(a=new Stack),o||isTypedArray$1(t)?equalArrays(t,e,r,i,n,a):equalByTag(t,e,l,r,i,n,a);if(!(r&COMPARE_PARTIAL_FLAG)){var d=c&&hasOwnProperty.call(t,"__wrapped__"),f=h&&hasOwnProperty.call(e,"__wrapped__");if(d||f){var g=d?t.value():t,m=f?e.value():e;return a||(a=new Stack),n(g,m,r,i,a)}}return!!u&&(a||(a=new Stack),equalObjects(t,e,r,i,n,a))}function baseIsEqual(t,e,r,i,n){return t===e||(null==t||null==e||!isObjectLike(t)&&!isObjectLike(e)?t!=t&&e!=e:baseIsEqualDeep(t,e,r,i,baseIsEqual,n))}function isEqual(t,e){return baseIsEqual(t,e)}var _export_sfc=(t,e)=>{const r=t.__vccOpts||t;for(const[i,n]of e)r[i]=n;return r};const _sfc_main=defineComponent({props:{animationData:{type:Object,default:()=>({})},animationLink:{type:String,default:""},loop:{type:[Boolean,Number],default:!0},autoPlay:{type:Boolean,default:!0},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"},speed:{type:Number,default:1},delay:{type:Number,default:0},direction:{type:String,default:"forward"},pauseOnHover:{type:Boolean,default:!1},playOnHover:{type:Boolean,default:!1},backgroundColor:{type:String,default:"transparent"},pauseAnimation:{type:Boolean,default:!1},renderer:{type:String,default:"svg"},rendererSettings:{type:Object,default:()=>({})},assetsPath:{type:String,default:""}},emits:{onComplete:null,onLoopComplete:null,onEnterFrame:null,onSegmentStart:null,onAnimationLoaded:null},setup(t,{emit:e}){let r=ref$1(null);const i=ref$1("");let n=1;const a=computed((()=>{let e=t.width,r=t.height;return"number"==typeof t.width&&(e=`${t.width}px`),"number"==typeof t.height&&(r=`${t.height}px`),{"--lottie-animation-container-width":e,"--lottie-animation-container-height":r,"--lottie-animation-container-background-color":t.backgroundColor}}));watch((()=>t.pauseAnimation),(()=>{(t.pauseOnHover||t.playOnHover)&&t.pauseAnimation?console.error("If you are using pauseAnimation prop for Vue3-Lottie, please remove the props pauseOnHover and playOnHover"):r&&(t.pauseAnimation?r.pause():r.play())}));const o=i=>{if(t.pauseOnHover&&t.playOnHover)throw new Error("You cannot set pauseOnHover and playOnHover for Vue3-Lottie at the same time.");if(""===t.animationLink&&isEqual(t.animationData,{}))throw new Error("You must provide either animationLink or animationData");const a=setInterval((()=>{if((t=>null!==document.querySelector(`[data-id="${t}"]`))(i)){clearInterval(a);const o=document.querySelector(`[data-id="${i}" ]`);o&&(async i=>{let a=t.autoPlay;t.playOnHover&&(a=!1);let o={};if(!1===isEqual(t.animationData,{})&&(o=cloneDeep(t.animationData)),""!=t.animationLink)try{const e=await fetch(t.animationLink);o=await e.json()}catch(p){return void console.error(p)}let s=t.loop;"number"==typeof s&&s>0&&(s-=1),t.delay>0&&(a=!1);const l={container:i,renderer:t.renderer,loop:s,autoplay:a,animationData:o,assetsPath:t.assetsPath};!1===isEqual(t.rendererSettings,{})&&(l.rendererSettings=t.rendererSettings),r=Lottie.loadAnimation(l),setTimeout((()=>{a=t.autoPlay,t.playOnHover?r.pause():a?r.play():r.pause(),e("onAnimationLoaded")}),t.delay),r.setSpeed(t.speed),"reverse"===t.direction&&r.setDirection(-1),"normal"===t.direction&&r.setDirection(1),(t.pauseAnimation||t.playOnHover)&&r.pause(),r.addEventListener("loopComplete",(()=>{"alternate"===t.direction&&(r.stop(),n*=-1,r.setDirection(n),r.play()),e("onLoopComplete")})),r.addEventListener("complete",(()=>{e("onComplete")})),r.addEventListener("enterFrame",(()=>{e("onEnterFrame")})),r.addEventListener("segmentStart",(()=>{e("onSegmentStart")}))})(o)}}),0)};return onMounted((async()=>{i.value=(t=>{for(var e="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=0;i<t;i++)e+=r.charAt(Math.floor(62*Math.random()));return e})(20),o(i.value)})),{elementid:i,hoverEnded:()=>{r&&t.pauseOnHover&&r.play(),r&&t.playOnHover&&r.pause()},hoverStarted:()=>{r&&t.pauseOnHover&&r.pause(),r&&t.playOnHover&&r.play()},getCurrentStyle:a,play:()=>{r&&r.play()},pause:()=>{r&&r.pause()},stop:()=>{r&&r.stop()},destroy:()=>{r&&r.destroy()},setSpeed:(t=1)=>{if(t<=0)throw new Error("Speed must be greater than 0");r&&r.setSpeed(t)},setDirection:t=>{r&&("forward"===t?r.setDirection(1):"reverse"===t&&r.setDirection(-1))},goToAndStop:(t,e=!0)=>{r&&r.goToAndStop(t,e)},goToAndPlay:(t,e=!0)=>{r&&r.goToAndPlay(t,e)},playSegments:(t,e=!1)=>{r&&r.playSegments(t,e)},setSubFrame:(t=!0)=>{r&&r.setSubframe(t)},getDuration:(t=!0)=>{if(r)return r.getDuration(t)},updateDocumentData:(t,e=0)=>{r&&r.renderer.elements[e].updateDocumentData(t)}}}}),_hoisted_1=["data-id"];function _sfc_render(t,e,r,i,n,a){return openBlock(),createElementBlock("div",{"data-id":t.elementid,class:"lottie-animation-container",style:normalizeStyle(t.getCurrentStyle),onMouseenter:e[0]||(e[0]=(...e)=>t.hoverStarted&&t.hoverStarted(...e)),onMouseleave:e[1]||(e[1]=(...e)=>t.hoverEnded&&t.hoverEnded(...e))},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+KA9A9FoYSA7uvXHV36Hha0jGZ0qjlZEYCqg1JFQtF0xh3Z7KrTB1Ev18v9DMlqnQwcTI9WKbNPdzHRbFIFkA2/S72syC1KZPU6+ir1cIyEBukin+7i6PftUlrQewxNBbYSA5dd/qVR9vmuYFACptnUppWWAEQ6s/39K2hnFSOXO9m9HbblVyY6p+FfSL/pdCVGvwFk3pErQ8ztpaJcEFYjxhi7cVh5B3NAMcu/tj//h7WMIYLHYHhuG+67/5wabhC0SykU9KGQTZGOZkDCBhGMG4IsosypjJpVDtGVyb2HJ8bwQkauGsXwNjMpMJdZJqkSQPIllzQ10aAGxKbW8Z1o5ZwgCUTCpENmDR/9xWsmDqglk6af7ynBDcZUA5f8MlH9l74gf0AEQvheG+6y94CgWvslpSH3jW2qVRSwyfHGuJz9q4R1Yb1zBuB1AKh7YZGCtbjczxtdXKFsPGBDmWSA1UXcj+fym0+Vq2GtX4C7cv98mOu7AuguKVbB684b6NH0vu6BJE74SB5KDB9JmdPJutf+vhZsVoNL7RuLF665MVDm1P/9quDyGmXijfJA2c6CczZoJXy9haTobQb/U19yG5fKjGb01L6gOGj19drMbQJ5545/f+4RmdpJcAeicM969e9WSCDy0UZx3UqpUoilRPHkhlWgKjnyrhqu7aBjKd2B9RsYjuEdnkivGvyBKJmKxSdmUK+qaDkv6xoiHJAtbJgi6Lp6ndYvwqLJLL2PoN+MethpYIeicMDfkiMDM9gOyGWLfEal4biCavIufgRdckigxOTrGqK5EagaEfGmhpasuU1j3SekE5s6JvGzArA7TjYNEOTJn258pdM+9UCEVymTLTlgXABvkgnnzXZWftiiWI3gkDIY/KcaiqNiRNHPzueBslk9qHqgo6+832ThV3GAHSEkVEa1yyIgtj1hMQ4wmtK8aNyf2yMQ3ytfgh6//abc+JAFPdLPYNGX/sH+P8xQk0bdZxB0FSNq/ffBCWIHonDALsnzS2ai7VakU8AHMtfJIoAS2NV/nrNigtV5CrBTvTj9Lft+1Y+mLoR+GwgXgqafR3R2BMNrGd1M12vKF1qgC7mLfW+I3VsePXPkUrMuDmh2MJonfCQDYPjm9aWn50Nig1ED+2Y4iy3bbjY7VuQT/6+9kqFKq9oFtbmYwcYHfkkQx9w9ySa4rmuYp2peyDukz1POkEVu3W0bW231C2a3VxCWDZYnegBdKY8rb2VyeiuB59eyFvIHDOsoF8FVNYvd203HE/sHIzmodLw+Ma4rkAVsLEEEXa0bTVzdRd7hGyBbBtitHySU6sIFRpV5Rt5uko4xzlf40ZYPqf6YveKuYpp45jWePKjVQ0SwT9E4aIFHzqBQFAzc6g1GoDWSeQkx904O7/KPKYTVVT6wBcB+B83rrqTetvX/9GkG9CNXaaf/WdqOtVeUidmaeakVKALIBkF8gyYR5X6UYBmcELK6IxQGWZugxgu0WjRlTf5CClIwRfeuinMDBrypRC1X+SylMG4/XLttnmuG33f/IV45qVPY5eD+Btd1/5pVVsNp8LYNfWYlSin42UdV0i0coqGQtQaNh0IX1K7lDy6xvkVeLch2SxxNyjbbMpLZi1AMx0bQq6a5tJaRW05PS4qXxAoncxQ7bipQtjbiEH0rhtsHzqSZMIgsVOBx+3ClNTzxBgY2LMFJgY+lDPJFyss0/xInT/j8YVRUxi3L6WpgdgV7XtXVqFkEnp3fJFrYiJbdSlKhb17D2NU4oyXT1cOuifMESXIQWPkrVe6coIZEpesv3+T71hNmRWHHT8RSJ4sy6IRf8n+92BROF324xM6Ir1+7U6UbB2lCgNvMtUqxFEmyVj9u1tfFAo72IvFVK7VJdLDH2TQco7rCTTT3PfjlmWEnonDDaoY8WYthSE39zhgGO/PBdaOxx84BkYyOrEmDCuielD4d9bB9v0qbAG2h4zE2btnkvWFi/RE2Xa/LkgRJtUsO22BbVFP1K3cUs9/vkCL3nPDrdd8N59eM0Z285bowuI3sUMlmlSvr4jozRo8ME505JHblx3xXkfIZtT1ZdXTZrWHqwboerfaPvk5kg7y5THk4NWm9fPYYf68pGokoDSByyTJ/qmzVDU7JCNbRVBu1pdlIF4XkQsuj4r3Hbh6Yc0wpcBPGHNXc2+kAZrfr4Jv7jgb34iIp9aubN8QH7tL+6ZG5WFQe8sA1BpZMsoESK4f/udB1+bD1qybPB5JMbMbkqbfr4fLuTsTKyUBYG5nmW07KpkN8WO2dZJlsMwei4cr1TWsgj0bTCtgmpK1ptm6+0eMwH56am1337fM9dc+J5vTKO5jGxeT3Lf1C4AAR9FTp966x2bL7v1gtMOmxWhBUbvhCGv2jI/NGaXARCwwQ2y11PnRbvs+PDjr4RgWqJZCNpWEk/nsw3Gv1cXxLCX2eVQuU9S8Fi2FA3UrUljluwmpnjEzIWNL2iFD9WuWeMyJSGMf7oto1yRL923SXH3D85Yufai009ee9FNNxDTn6XgmDTKZKDseQ5ABPsRPP+2C967zwxIbRH0Thjyfv7qoSWXoAHQ3Dx/9GRaiDVAdmFAI4TqK6E8j9B5niAJi3a5Y2GPiUtaYy4zRyqEWduX5znKcSRX0vh3KsDapTx/1uXMFqiS46FY+5/vO2Ltd07/+L33bPofEqcS3IdpEmK7JqjP5zlUMLFyMza+ZQJSWxS9ixkK/7jQU8YPH8j280oT3D47PcbVKAsVfahXbQUAparHkmmLFo0bkzJXlcbu6GhJHxX91K6xWHaUHY3ZY6HaXr2BDwB4zRnb3rZm03NJvIYNHxvkPlun5IaxQ9DiR5YDOHb4QBcHvRMGRWAuqR5uAIlfni86vOX8He6+bf3ORdYIVTCcVKYAbIyWLYWjVqt1mSRsLMtofZu1snJV3GMQuuLUnKVftC3ZRZL6tgmw1SXtsAu3X/yBfZv7mlet/cWmlwPYvRQ+pnnJFi+3L+pKUsckYNNoDNM7N6mHwmACvwQpNBjIfe67+ksP2+4Rx10/V2obbr/3t4sVY6qJz31Rk68xdGsfj2HE5FSpxlS2IVEeqGxng+wUFEwkdvwd+5iMK9llsVrbOGKdlFkqLDHRkLL2Pz/wRDTTr27ub36Xwikr61morVumY7IbHrPVs+svAMCmmcQj26LooTDUGkx9ZDETTWyGPBvAe+ZKa5rTJySatcuRyGe6dntD6zwBCN0iJ+ZaWTZLjU1lFvSz258ItM9RV4wsAJtyp2s3/TSonMrV9uNpPSHfSzQ7hqJN0b8ybrGC1Hb5kLpfbhOfUZS+BdG7ABrIJt/un2lpYvL/8tZVO86Fzn3XfO4AsHmRugm6X8HS1cRIrVXTfRvgAkgugxjvijZ1a7JCxo+umap4hXE3oO0Y7RwvWZdLX21mqm7fBu05UQCQQRA0pG7Pv2knWaj6PEcWntb4eioNvRQGAABLLad/ZqL33HDHPe+effMcbNrYfIjANimDBBQMZ7dEDD1PEF9qS1aUExhV3T7PYN0v6/okLatNSMWUdjyt8Nj4NeXAh2SMquupOuOep47x2+SAEcr8uYjCxtBffPRPGKqHrb4mkTW1ZjuapvnTe67+0itmQ+buKz5zesPmqTaDUq8eJ1+Xdp0jM4m6EFa7FulR7XP8SxbBWIWW+9E1/vSn7WbGCj0ZQ9+0FW7kOCanfc1Kf8Xkdg5y9dzXEDpISV9QjakW5P5Zh/4JQ0SYv7ynP2hGQINEIFxsmub/3X3FF/6K5ERj4Q2rtlt32Wc+jgavSxcr3zfQZ6av2tlsjst1TWCZI/yS+dN9dUMqoUNLBqAqQOmmHactpioDW9NAu1zlRrXptT+rRSiNWwd9IwQ6oDrD1Dl/PUJPhcEEqoKklbszKATAt62/6vPfv+eqLzxtmFDwmn/f9q7LP/PidRtuvxLgi5OvXrhHpYuSy2AMfXtf+912BlS721Xp7FcbrayammU9m2HK0mPopyuVi2Qsk7UixfiL+KMqo//R9NHOg8ZVVayTy6CiX6aF+4LeuW/rr/4KkwmHPnsaHqiY0Zh7AIDIGpBfB5rVgsEdIFcSPJDAk0DuZF0L1G2iahMo6FoBsarcugZQpuxo09ZLLl9BPzVYujBi5ESdxlSldI3S2GqXpBKi7PK1LVhJP9PtnqtKoPRfNkqwmq9Mf69j3tYr/utharXL743Xgfx0DOOVC2RcCeAFoYaePzYPtxIC80gTw6j2DuWyRcjGgylXWfr72pRxD1QromCN7GNbl8HGAMm1yG23VrjTXKm6aAtqHhqLFe50BiJ/SPXJbNiSAKa5KvvLoowhWAYeRpjC/a5V7sVG79ykFMwC2TQXSQm1yalGulw2hPQQAOtXZx2mDyS5uYVFsK6ZljIBQqffXrkRJm4o/HojRK0uG6bJ9FsNoGBKMa6e5eQu+iluMdmi2K6tXtK3tCWTtvurzAjSaEx9jTxGxS2Ljd4JQxGM6QU7cYbZyiyOlZn8ITFfvKzMZh9UHSymera95J603TPVsDnLk1tIQb+yuhGCwuWL1zPTFhOQykCFgyjHb6yJtUx512+mmcJY6zKpwY1zK3YiUj/N/LOaf6BT2+cumfHnSeoVeicMQNTKhmkBlBNoTH1ZK5ZhZtqcji1KtB4cqzpZwRr6xfOrdvIUWrR0ObS09aKG7jpN9Ief51DOrYZfCpfxzbX/efxV5seUU4Zt08909UKtsErhNuNCjj90drr2QS02eicMaaLU45D8GK3LZPPuydSnBjLjpW+XiH/ZKtTnCbR6zu6oP67ucJGvUReM+rClkBjSMIGxKolOYxnGuG+kGbPZSg51+bJVMMMvhcuMudiyUVsl7RbsdeNKoXSrsryE+esal1qOJASQjudUuV89Qe+EIfmxhiE1qi3OE9SaHShMeHafqn1FRQxg3lkXClkTpjSlaSfft/Qtt2QhLLJSiT6N4JQMovuFOs9zwJ6nqOgXvJWF0KYyi5SmiZCtK1O4qZW1KzcA1pbVzn+2REVWDGY8/TMM/csmtV0Nye9ZlrOTm0rZeAPlnJe6qO1GFA9Li7S4DlE2K/rSRd9aLJb0VYPSCmC9Cm4Yx85LFLRwuTF1bXuqsROrt+kDrc19Valy3EX1WjgAVuOpLVYX/T6hd5YBQPTxE3tm6wAkl8HGAOFy249O2rEVdxi3Ad1MkHxqq50TrSx82oAVCr2Wv0KGJpgtOle4R5a6pMa66FsrFYi1LYakXaWMOf8UAyR3syOYt+OP85XcU2MtSyuLDvpqCTvusS7ZD/TOMqgFsG6P3b4NdGnwzNx2sShp5vjgas2U7U5bS2V3Jm9QSy4cyv6hYIqyTWVqxkNBxrQkt2xU4BvaGDZ+wgwWiVFN/4JwSjl+0blCi6mt5dO+WDdn6PxLUT3HTEbYmVzDfqKXliFpcGW0lt9flYsf9OGqFswOlvXRDZ3sQbRcLiNFSYNTX2Ml/eIARWIYKd2uwrKZAVi/u14QNK1CNXhmdGVSbSsL0CjNXJq0HBcpzczANfmafjV/9fih44+WKQ/QjK5/QtFLYVCdrUyUGJq5BOprqgWNy9AKP1JRpuvqAnSZfBomy5qSqeHav1cXqcjfJ4Yz7Zs6rb6aem36xfBh08FgqYWHWs9i/DkjlxSGVPMnSR5abVFviNLv7n9yzTqsXp/QS2EAkCdXspZpmfRQEIGpcj11F+oYItxuPwgpXi1zxevR32+5VKbxQvAMneH0rRsUPtffjZT7ZX4fojSLxj0pKrTpF7nT8prKa4opjDXS+9bSdYHVu5aVTeSbzvp9QP9iBvuwVMtXDJSYMlkOG9DlvTqFb43Sjal95qJN4/60sztS0Ert6jWtbpmX0NaR2a9K+3bSKq1YiqFSu9mq2cP/2v3ijIKho0xfpF2LMUlJv4qNir1YHfOnma32/CNnt3poHXprGYpV6KSZsxtgkTVrro3atUB+EF3arW1vzKIXsnWyrk1BX2XYuMSFFhezL6fDurToGx40TZT9N32zlsyOoOynGX8RXFR9QrUKrdZ5yPxVRioJbqYTVYDktvuI/lkGID1YZtVtwoVSS9XZo/RvKqNaPnngsIffuzSY+t+WaYhMs5u+akq7Mm76bHpg3Y1O/95aOrVilr7pOJktYRnLaBmr5au2h8xfsm7GSNk4JxAePn/sasD0a5S7tZjon2Uw2k/Mwza3CjVq3RyBVGUiI0guK3UDMEyXC1T0c/14M7ZRlrHWq3B3kgbv3pHTaamSkOQ2Wxvh4r3i9yFsH61CsMOz5MTSF3Mtu6PWOpZjy4ytliPPP8vX4j5RP4M+oH+WIWrBlCLVQ/Cs89Rtv9u20dlmVp6Fj201fSjesSrLwu5AOabO66Mo01HOasciRrG+tXFPkrtlrIM6/mmu7MmxNMD4ml3GMn3b9e3mZvx2lmlGnoYvZbs04y8sqOknDP1asHuA3lmGNGkEyKblHxeLA4qk8aqHa+KGsnrpD+uNei9Ne41Am46Ma55nqTWTeUnuWCajurH28XP369+HKP17MYpVisvFnJCAmb8s3KPol8qlldJNJO082/Eb5WLnXy2CeU5Dt30sInonDDqppeJgYgDr61p/WzVk3VhSTvpv0nrmQUcu1BQmbFtWa2dujW8tfdtn60aYH2VEqXUL+rG+QPtiJqQrVgCTexTmwrpoKORX76vvnxiysgrDz3NoGbMuUisOmNSwEdTiRF+yJNJHL6mHblJiHBtEIzFFoWErJqF5b59LfCyFuRcIKDTV2/t0rIuQhCJqvXKfUQf9PJqkFS0j2eo6ZjF1WvRTz5GNUtGJmr5xuapxtV2rbiEtp1jK+VcfztC042m1Wyzm1cquH+idZVAXGsgPzfBAKtTeT2/cJ2U8o7lVsxXpPY1FkOsnzQWr7a3LJclC5f4YSxI6XclJZtiWVbBjliyoagyttcseW+3ClLtjkacs5fx1qrJV6Ph9iDjqliuZYhYjeDRzqPOXXDXzFZgap+jzGJHeXmz0ThhKBVy6MpaxOn/5xronkrdxFAtrrRgku2YpTRlfrVuW2ixikFIDJjNU+N25XnmeoByz0tJ6otbGMryxLqPPc1j3qN7XZcXUvEuuTimEzI1VAXBBPjN8LNV9nqOfXxGj6J2bVGQuhsG6HJVJt+YelTku2tT6DY1A6MPOaxJ1eet+hH5ogBzcLhuTZE1o2yw7kzVoKXytAJNlf1rjVyp2/Ch9/7LFdv2iXR3zEHemc/4T/W6LZZw0M5/9Qe8sg0LSP3Xmga0HDrQfKlAKiGkuuTJaRrVom4mMSZf0sXLftEyZNQJM8Fhbk0rbF1vUI53iUI7V5smt056Y8UvH+FtzYyyoGVadXUp9qayjdj8nGLRbxmLoGDDsPIf6hf1Cb4Uh+6PmC2/rwNYEtKleelUXBbAxgFHJLe2m1/O17JJYL0yq+8k9MjSsi2JjAEMoyUSR1dE4xo5X/W5U46/6bOWsoN9yuZCESntdQ9dWVDAzfbaeh9Xy6i7mDBOM1bME3DJMhNKbLc2w/ZaJIpmCDu0umSlydJrdluIXRNFtXXLgl7VnuXCUTE2ndaEKSGTI2Kjpf5vBC60bVGvl99fzhKSdrcItzxPYXun8dI9/IFhnLkb6+ccfhy2cFdbNtFkIezEP/UIvhSH741lLM/nMWcWQyBNrGLEVLFsthrrd7MnWJj/1A22tmu4X9LNblZkm+Sp19aQ9A/1kXkDz7d551Na0mDqWvuR22+M3LXWNv2TQNw4GchSAc0WwuWRoHUBpvYDsIhX0C99Ue+/CMCHaD9e4ofVDK/z4NPHWh7UNwD4gFO0nYTIMNxH9WKB+wJl+pNeRUpT0ymK8afwxCFBXq8wG2RZKVgv/shVDDKdvX8P9lUeefMGeR735OYPl2F8GeKeI/KI1ftN4Frx6/N30Tfa5N+hlNsmmTUvfPD9gtQoyELJprhkAl5DcAAQJp+Sf7pP4ABpR6RegARp1bwAMRNCgKSNHxBfGik3s20CAJh5SEUEDYiCD0F7DSB+7gzic5F7F2LL5ylZB3Q/182smq90rlJYiuW9Un15/TKucv8KNYWmBk0uXDRQAYPfHv+VnAN7Gyz79rltvvfo5Ar4akN9otSvmmQja5zkMnUjg550MsIjonTCodqpThuEhVl/WK/J9kcFLVvzqiZctRl8nwR3fO/NZDfkPAPawv+1stXHgoVKTFqvQquGZ909Zhq3bCg20nRFdtbfVbdQTPlfSoNcfeeJGAGcDOHvNhac+enrz5tcAeD6I7bJBZv4RRxpraS1xvD4gzhsxbYuCHrpJAUUQiZJhwrTLj1cM8PidHnlCbwUBAHY54lWf3QZTvwXw3mIRjKVWjR+S2bMui83ORDOSNH62LlX8US+wpDbQpp+JTDSmlUe++Qd7HfP2P3zQDsv3JnESBrI6WRXY52TGFccekwCXL1ux/OTJZnDLobfCYJlGH1bOrRPbYPCyqK16jxW//oqrReQdaceChV2Vlayv1V20wpIzNe0t1imu0HbrDI5Y+aD5Q0l/Bvn/Fb9+8m0PedIpf7vn0ThABoNnDAbytYGgDr5SmyHukR8OZPnxuz3ulHUTE9pC6J2bBFgBqLQYwjMeiKzZ4dATLl6s/s0Kg8GXsXnzaXY7Q86QxVcbA5hFwZS7l2w8UuRg/P2EDs2cnB99b6xL9q80tprZoX2RUxoAXwDwhTXffOdB4KaXNoJnCvFwggMBbqHwsoFMfWyPJ77jbBGZzARtYfROGHIwVgbNsMqTzZWL1b/ZYped97n69ttuSNo+Zb8sD9s4oQqaS7+7nVGzP0SSMgxUwULaYJrXXtBqQwPgqTmMc+Uxb70KwF8C+Evy01Nrv3PDg1Y+4aS7c4l3zqH1hUXvhCEHY5LSg1ZrRWF5xOL1cHa4484bDwQqYU/8rtZCzPuK55N1rDcsmveq7VXSxG4OrNYetE0jXNkNmx+InDgN4O6xBXuCXsYMumpbup7GOSD2vOeycw9bnN7NDpxujq1TqcV9k0FTza1uDQDjd+vH4b8P0ZVOtSv3qZ0ixs4BeNPfrzZaUPROGAjdPm1z7jFzYnKCmzZv+ih58TaL2NWJced/f/hhEJySkzwE2ahfksacgmEto7FDlTmymRnNAtmNfe3vUGqXSxYkLQNk+oPeccWWQe+GrcFg6xAITTAZ/ODD1l16zYXrrvjXXrtMt3/3w0+fnua3Se4AMeMxatmurXSe5zDp1tEruznOsOeobZiRDvVkf9TQD0KxVC1D72KGYq9QYdhZfIzlHoeNvPzOH599+YD4UUPcG+52PU0WL1omPPgGAwzCCrQt3yCrixaHNGV7kePYxHPJkN0AHt6Q+9eZxjgAWOFQt6Uc/xDYclWMYTNxxepa3aLWbxojEMYyL0H0ThhEhARj0qRMHwKAphjzQXNMgTi0IQ/NUWdO06TtDFJnaZC0LRC2YrQCUyHQ0DBIvTJu2mpyJiexs7o3sUshEcaU94cZV7IKQG5ftJlyN6xqcEs/9yuPPf8+gw2200Qbt0nnuIcbhrYgeucmAbxZGcBmWbr385v0a3xNK7PMQjRsP325YxRITrQykAqRlIyXBKHKBqW3sf8pFlCrwZJ5ad4n8vZanTFKWaGyf7aiHVMxfhtzVP0p0riBxj1YguihMMjqasUtatC4a6ZwLewCBIoAW5GyJAXTZCFT5m9ZDTFFjb9eaO+aEVUSbJamzulLLmK7mgNdtAsDKQYY9/sQdXUmpo9lbSrVHAgpxr8Ml2IJon/CIPwOKo2VGDo961L76aXWEU5jMVraG5ZRkBnGFLCp0EJ7VylQvdE6wpmaLIUwa2+grZ2RNH6x76jrPqvxY8j4K7PY1S4RKw/k3j12PfgKLEH0TxiWDf4JQPanJT/kcj9/1mjhk2Fm5IcrRamS6aR4rc5VMweSyuStOMHk+nO3jJtVUB5HP/ejGL8Zu6ASCqTlB2P90A7MzRs7f+3zHAIh/mVr2fM13+idMKw46IQrIfJV/aza12qx/M1tWdOmbQ6tYDPHFtmHNlYlMU739mhtM+f1kbdEmBNp9oipHspJbRsBSdobVisPsQB6LcVASDFMbaFK+qa+WtQUw0RXy1i7MGYByGbZsmUfmMnzeiChd8IAAMsFr6TI3WkV2mhmoO0bD9Ps2fbHckY71lq5y9Kw0p4jfx/CWLLklmg5bUPXTkxf602idoy5n5KE2FodmL5VoUoxJi1l2x6yE/a03Y48+fJWM0sEvRSG7R954k1TkJeLJvOtZi60eaVVrU+efPXMmDTasStWyP537XMbTd7hz2tsmtusBqSamerMmfMIhqbNapXnOZjbN/FO8Yocv7SzU5mWtSK2rIAXrRwcecqQR7Ik0EthAICdDj3xnCnI74OYznwhLfVnGaxBs5gAABImSURBVLvI0FiOTNuh27ozcHKTi1nrIZUVyWajuJYXvsRoWrQK55igkpbC/cuCWQTDRf9LobULb10HhVDXLw0GQKwaLN/+d+Toozd3TNCSQRd39ArrL/3Xp2xm81E03BsVcwLMz9wyGYHiiXdYhNbhehNYqgtt65bxCRDNU263I9uV3ieL0EE/DyDVS2OMzFyvT9R9yzxfJheK8VcWIbZPkGftIfv+mRz90vuwxNF7YQAAXvfpndet3/TXEHkpyW0Ds9jgUUqmSQFuZMJKQ5Y+vxWCwNB2D5Th4sS0liGzcNbBL+P/VSxTl6vaBczh+uQWiul/GSTb9nOyQMvbHFtWFFFxXD4lg1evPPqt3xo190sJW4UwKNZf+sk9N7H5kwHlhU3THICklQMk+c2lhrTasLXa2j44kF6tP5/udmhYjRvK9lEwJKp6Zbtd11LN1E6m331GQWwd05Zx4+4F+XVM4UN7HPmWr/f1xNliYasSBosNl3xi703EURAe0FBWCqdXArIcaMAGkBgNsbFatEl8Z4UoMH7TzdC652iAGM7nDXtNukzA/r5xsafP8lu12S/RaVL1FkMPrRPoDgA0rU2EQfwEuIvk2oHg5kbwX3vs/oiLl+oagsPhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOB4okHEFSK4EsFZEuAX64+g5SA4A7Bg/bhSR+xapH8v0vYhsXmhizyP5XZINyScuKLE5gOSxJK+Nf89b7P4oSP4ZyVXx71GL3Z9hILmc5Mb4d94E5Q9hxt9V7Zy4sL0t+nFX7MNd89XmshH31gE4Ir7/YwDfGNGxnQAcNce+XCIiN82i3g4ADojvV3QVILkzgCNn27EK/yEi905Q7kDkOdl5nmgvFLaJr1MTlJ0276cAgORhAM4G8CskHyoifzPP/dsiGCUMXwHwEwCPAvAMkg8RkZuHlN0fwBfm2JdXAPjIHNsYhodj7v1TPBTA6nlqa2tESxgA3AJgp/j+NJJXi8jntmy35o6hwiAiJPkeAP8cy70cwDu2VMdqRB9RzfhFIvLXi9WXrQ0kXwdgmKs7MO+PIPmlIeUuE5GT0CEMInIzyeMBfBshnvgEyceLyCVz7PoWxSjLAACfAvAuAPsAeDnJU0VkekydCwD8y4T0nwJgUj9TADw9vh/mphxM8pjq2m0AbgDwghFtvwyZWd4D4Icjyq4Z088+4v8gz90o7DGinLp6XZYBIvIjki9AUFgPAvCvJA8XkQ2z6O+iIAkDyUcCeHRHmUsQhGEdgD8iqYPbKCLndJS/QkQ+Ognx6MvPZ9D1uvhn8WUROQ5BsIf1wwbe54jI9+exTzMCySkEZpoJNorI/SPur0FQCF0QBDcXCErmliHlfh5fbfZo26IhkS9Gb+IkAAcD+ACCR7FVwFqG4wCMcj0OAXCm+XwngC5h2Bqxn3n/00XrRcARAP5zhnX+GsCbht0UkTcAeEPXPZLLAaggfUNEjh9Dy1rlLqF9K4AnIyhWkhyISDOmzV5gnJs0Z5A8DsH1AICTFziw+hcAF1bXJslQ7RtfNwG4dV579MCDdXtawiAim0i+EMBBIvL5cY2RvBnAXnPozwqSs1kDWyciRZbPCsPnAFw7poEdAZwV6/3XhERXIJhMYOFTjBeJyFnDbpJ8GoDdqsvbANglvl8P4IVD5vbnIvLNjja/DOBXOspbOv9GctTi1NNF5IqO6z8EcNmQOrsBeNqINhcEIjJNciOA5RjizonIlQCu3KIdmwfYVbyrAVw9qjDJk0yd94wq21O8E8DhI+7vguHB/9cAtIQBwC8jpFtH4SFj7i8fcv2cYTl7kodjjDBEDf1rY2jbtYVDSP7tmPIWB05Y/mIR+fSYMhvRtuqjcDRC36cBrJpBvd8EsH3XjYndpLiw9hfx4w+7tOQSxU+RtydYrEReBPwZysCzvr9QW12OB/DcGZR/GPIzngQPmbD8xwCME4bbReTJkxKOK88rANwzw3rXIYyzhZnEDG9ANv1bzCrEAG9n5FVSANg27pkCStdrJ3Pd4vYqJbwWwHMmIC/otga5QMhUtUDynwC8NH58ep1zJ/lhhJX9hQSxMIJm97RN0v4DJ4COJlmzFZcC+LcF61EbxyCshlscj+5A9/T4V+NQhNV0xf0i8q1xhEmO3cg4AruY97d33LfuyYJYBhF5PoDnd92LG+5WisgvZtouya8DeBKCi7J8a8kWjcNgXAGSDwLwCQTNPA3gDxd8l+AWBskjSL4q/u0xT83uat53CYOd+8VgpicCuIXkzST/ZIZ1dc1hCuU4AcxZiSwaJrEMpyNng04XkYtnSMM+9NlowJ8D+OQs6lncOeb+7wJ4c3z/A8xPelUtw0YRuafj/oJbhjH4/fi6F0avuHfB7lHbE8HtBACQfDiAz5N8L4CzxywG9gojhYHkq5H92isBnDILGtaHXzfTyiLyYwAvnAXdxYYKQ5dVAEphWDDLQHJvhB0EFssAPDO+vzWW+40xTU2LyPfi+5+b63ugTP8+DWGB9qMInsQ/z6Lbi4KhwkDyWQDOMJc+O8uDHDateMcs6o9E3EP/9vjxlSJy0XzTmCXGCcOWcpNeitEbLPfAZCveGxC2ywOlMOxZlfud+DoNYNimv16iUxhIPgFhf7p9YCeT3BXAn4vIxhnQWFBhQGC6Q+L7IsVJcmqCjYXzjpgBU8a5bUgxaxm2thjMLs6mNCXJ7ZHPcFwoIsPG3ku0hIHkbwL4IoDtOsq/CsCjSZ4gIv8zIQ0rDMO05EQgeSiA0xDOPXx5VCBPci8A15H8EYBTReTf50J7hphkzHbuF1Jgz0a5W+DpAP48vj8TwGcnbMf28Yr4eQrAI8z1o5D5Zus+z0DyWACfQV5m32De/whhK/ARAH5A8vki8h8T0Pil+Ho/SvM6GzwT4WE+HSEbMmoN4NkIfX88ZhGrzBF2lXvYtgS7brJgwiAi1wO4HgBIbgPgQ/HWzwC8YUhwP67N+0leC+AglMJgdyBvvcJA8rkIWxH0IZ2FsFfntfHzqwG8BOFE2u4Azif5VhF59xgaqiWvmgeX5ffi61qEcxOjoA/mFxjvE1vG3DSLftU4wrz/7pAyVhHNB81J8AqE46gA8JcqCDGdrJb+cyIyyVnynyAIw8Gxjd0AaL3/FpGZ7v5dSfKaGZRXl3jHGdarkwkJy4CQZ0dIX2qM8H4ReX1MjymmReSVJO8E8MZY9gmjqJLcE8CD48eujWgTg+S+AA6LH88bJVgkH2L6dt4Ei0J7m/eTun+j8FjzfpgwzLcAjgTJ/QCcGj/+F4L7pBDk/VG2X6PwPQTruwvJAxEUlbpIk7peFlMIx3NnisEs67Wg2ula5Fz3X4nIKcMqiMhJUSBOQtA0o/BM8/7S2XYy4sXm/WfGlH02smBPYq51o916EVk7suQYxAWnx8SPPxWRYa6hZbqZJCRm06cphIXTnRGe85/Pw1f/2C+IeDxyCn4DglcxU0xjZopoPwQhJoAbZ1BvbwxJHC0DABG5neT/RzCR7xvXmoicRvJTxhTegLA8DwRfVPFs837bGMwCwFtE5EsAzkU4SQeMsBxxv9Eb48c7MPqbOrZDcOkA4C6M2VsUocKweoKy43AQ8ga8YVYBKIVhoRemHobSin+12qZuV4yPJ9kV9H9cRF5rPv8QITmwK8JWHZ3Df5ylQlkjIuN2/yaYjXp3z7DeRBv1niciP+sq1AURWW3er0fFoDENe1T8uBbAdcjbiXeJ9W7CZIdvTkFmsPeLyCi34lTkFfNPjimrwqO58mFHI2eCx5n3o4RBtxE34/o4V4jINSTXICyACsp9UzW2GXJ/B/tBRBqS3wLwLAQFAASh3hq39gMozzNMLAgT4hmm/fMxy4wJyd2Rz9H+FN0b8RRHIQf8tyBvsRiFY5A143wIg10tH3UASv3rLfWNdK9BGRtZ7IS8u+BShC3XNbrc3G8gCIPiYyPcwmF4OcJcbMl52AEdazsLeezTMsVHMCKKHwURWRsPqXwcwJs7vsDrPxB2Zu4E4O+RY4U/FZFJFvnsNupxGaqRiIGkfsvGjQC+M6K4Wob1c6E5KUYdromJjlPix2smcZUjbJZuM4DiIBLJhwE4JLrEw/q1RVepRaTeAZ2wIMIQmVeZ4ocicgHJF42psw2Ah4nIVfU9Efk3klcD+HHHvetI/g9CWli/reE8ETm3g8xzELTQ5khzP+TtAzcC+Hy8/iwA3xeRG0nq6vYk+fhXIluZM8dksdTt2CLCMFfUq/kxKD/NFLlWRGrL+miEI68XAThhNtvFtyTmXRgig/29uTTpVw3uDeBKklei44sDhn0hVUyjnouQ0QBC0Ny5JbnjYb0e2ZJ8MJ7vfRmAf0TY3vy0uFFwLEhuC+AP4sf7MT6jon75uB21WwI2HtiP5OsRviRhH/N6FYDfNuXeC+BY8/lgko8TEesaaqD6BCxwxmw+MK/CENcCvon8oD875LuVuqDnCA7GhHljko9DSLPqKvcGAC8a8TWYtu7bAfxZ/HgPgLNiWvRYBAH5JQAXkvy9SQ4CIVgdPQn46VEZFZIrkK3Ygu7fIflQBDdy1/i3W8d7m9k6HN3nxNPCFslXIG/pAIK/vx1CvGYX7B4ZX6+d0GXtL0i+lxm/PqbsISRvMOV/Flcl9f6LzL0Xd9R/lrk/css2yQHDQZz7TZ2bST52VL1YV0i+jyXeYe5Pkfxnc+++6DaNanMnktfNYK6eZsr+U3XvN8y9huT0iD/FaSNoHcHZ4R6Sl5P8CskzSb4ktvdUhm/sVrye5NtMf3/b0L4sXj97WP9mCy7At3CPIzhWGBiY609J3mvK3sLsa2s5Kwz1t96B5PvN/cfU92OZFSRfy5LxSPJSBqs0bjyHkvx8VbeVCoxj+rAps5Hha2aGtfsxU/bbE/TjfFP+ZdU9KwyTYpQw7GbKbWJQGj8m+Q2SnyJ5Bsm/MWW+xpDBq9uZIvl2kptN2XfFezsyPHOSvIrk9iT3ZRAOMgrSfIJ9EwaSjyf5rerB3Eyy9T1CDBpFcTXJPyB5XPw7lUETkUHbP6iqewDJD5Bc18EIX2VwO0aN4zEkzzMPR/HOGYx/A8nf6ijzHFPmLoYMit7bPzLFrgzW4zCS55jy0wyHb2x7VhiuIPnFIX8XmnJDhSG2eVDsQ+dxTJJ7mrZaq/skf5nt5/yhqszx5t6VzAJ/77jnMxuwL8LAoG2+wja+wrB1uqutvVhaj2FobbVm0GI1LmZgxJHnuFlqPcVdJF87ql6sKyQ/WdU7zNzfm+Tt5v4Lq/pnjRnrX3XQtMJw0oi+HW7KjRSGCcY5VBhI/hLJteb+NMl3d807ydM6xrggJ93YI2EQlprpDpKvmaC9l3O0QFzKyr2K9Q5i8N1J8uskn9TV/hCahzL7uLczmPoHj6+Z6m9L8jux/mqS+5t7R5JcH+99vKPuiUPGuYHDGapXwhDvnxvv3cBw8GtUW+9kdqVuYYfLNR/gAgjDyG8xIPk2hAM9AHCciPzA3DsEYZHqQwhbJCbqVGTEX0H+cQsgrE7fCOD6Ybl5hi3m187mG7JJvhEhc/ZBEZnx2QaGvVHnIHwzyOrq3mMQvm36WBG5u7q3M8LB+50RthzfgbAt5SIR6fy2a4ZtLPorQ5eJSOf25DiPR8WPV4vI5TMdV0VTLfIqEXlTdX8lwhcKv7ke45D2DkZYY/h3EVmQ1DHz3qTWd6bOFnP6Sg+Sy2d4BNThmBcwxKVTCEcL5nQ8wOFwOBwOh8PhcDgcDofD4XA4HLPG/wL++QhYbLqZPgAAAABJRU5ErkJggg==",e:1},{id:"image_1",w:1080,h:3,u:"",p:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDgAAAAECAYAAABr549KAAAACXBIWXMAAAABAAAAAQBPJcTWAAAAJHpUWHRDcmVhdG9yAAAImXNMyU9KVXBMK0ktUnBNS0tNLikGAEF6Bs5qehXFAAAQPklEQVR4nO2bW44cx5WGvz8yq9gtkbQ1tmDIkAFiYMwDX7UBbcLrEbgebYIb0CsfBoJBwMIIguwZXXjprs44vx/ikpFZ1RQHMPykAJuVGXHucT0n44hfy7+12FZ/efZMfAE8gy+fPtVfAOp/z58/1+fAc+BzgEePxGfw4sVf9bSif318qD/X55fztXj5kidPnvDNt9/r0z/Bt99dF15/hPT9UQBp/lGaHnQZfj8dBPB/P74SH33ER8APP70SgKaD+A3o1Rs95jE/pzcFLxUcpbfl/c1c36faPgteI63vb4APlfT25iSA6wp7k05qcFdccaPSLk3idCeugNtU6Sehu9qedAROWsSptJ+U9IATpKTTXdLxAHdKOgBaFqGkOy2CIwctEgXvThJL1uFw4G7JkhbBAZRFhWFZxOGAliwkwQJKWiouwEFJzMAicSi/C0sxtKoOWWJemBeJQ1JrXlRokFPvG5HXsSIV2jlq3QytPQOEYEZacRYNtHIWU5UjF6ZT001SLkQKrUkrXsQqA6U+k5k0D7KFyBmYakXDmQjFKuM0jP1oPHLRbYe35QvQcBNZ1jQ2KdTEH+VkggivfACYReQzOHKls6GSBLn9Y6p2yVE1TcCG/gQRWgnWMklEVAQIvNONitfgmzxWkzGAFBWU0tZl6DLtbcZg51irCJImFdxo/1Z7jODyyn/TFNq8d/064k6W2DxO07Y9iI6dBrk71frQnyev/OPcnnH2UMvk0hcp3YPQGGZt9OmCJPZEpQv9+c4yzpX6HgHMWtvG310ZO6NVRWyrJG37fOy/Up/OaralaRqBOsC5+gOH9ywRVZhhBL0P+jjgEqSE3w34S/TSSs/2vn4cj+W3zd8YbLcRqeI3Wr8gx2iDcUxWW9ipyxQ7cc8oJ/kyv60GWPfY7HxKkOQiS9raZ6dCdP4rnR1XcrYvdeBa8k7+xGasJbvPmZxhqtCevdJs/M91DNutV7d9Je8tmil2nxLkyExMZMvjbElddnu1zSB/an23zuPETtZLfTHqCUCByVWeor49AUxTlSC8GZONd186qnxpqs/r+tNtlTNUvRvdsz7vsNHlal3ktI7VKdkZIKdhTo02Ks/TiLfh38Qe8G33+rzayGmVcaLwnRpgssvenVZchwHM1PHmFG62siczr3CVsqGcuDyF89JsM8MM3tgpDDPz1OgvcBde5vJuT4YFnDx3AWzugHmVyZ1/5VPEKHV3VUZgJlzFMY12k9dh5tk4fFd1Pxxm+1Rp2z558rHy9xzGs0+cOB5nc4LbQ/joMLfA8eCjZ5+4xT642/IYvnL4BiAOhfYt+Jh95aNvBn2uIpuro4nsjZ7xwPAaX1+ZN0AspT2uDK/hg8X8/BB/mE3cGeDRww/MT8DDxT/+CH5U6vkB/PihAT6qsH/P5df5seF7YvmNAeLjk/kf+OQPbw2f8s3fvmH55GMDPFneGuBr4M+nVwZ4ATx9+p/mK+Dnn/2c4p89Bz7//PvC/0vgxQvzRXXu+KL3q3T/+vtr+dcXbRzu9ynNKecLePYMvgC+fKp3OubAi+tzx/zlXBzwJwDzA3373T/0yR8/Ab6FdNR330Gaj9L0k2B1xouD/RE//PQ36T9+r98AP6XX0qtZpLeChyi91cOH8Or1JL2dxMNJenvbHPf0Nt3qmmvQSVLSjZK4PenqCm5vk0iTkHSlOxXnNOl0V54fqDjap1MSWsTxgFIk7iSUJak4xpJYFqGsRVM6QD14Zi06Fsf4kMUyI0UiSwtZM3N3rtWcP0UihzLSBGRJSJpz1jKHlGdR9+AJCYUySCFBVKc8isMkJ5iIcJpEqYtQdcQUFb/UF7xpmhThCudETGIKRRSchBQVHyRJStR2ORW+CCzZqTqHKSQlrAgEk1DlkSRZCSxkhZVSCkVYiUkoJCRcaRsVx1FClkIJWSSKDnIiJMsSStgiWW48HCJNRTaKnFiVJpJJCGEnqejiQIiKj0SFwbTASLgGHGpYBoNAzXEs9i3nyCRqnbGKh+jqKAqwcnE0Gq0yg1fnowcKAIdAuDrTogbXJGTjDlzajSksXbwGq/IPcBGZ5k80OdsbBg+Onlu9CHuArw1e8aNpg6Uib33tQrcgTDsXrbR6AKcdGJv9ql3UzmhlkHslusrZeseuJt3Yo/x6o+8eflV/ALBdTe069HfBTRqXLe1qaMImla4aAdTYVrm6bbfiuFkMrzoOtryg+14ul5Wnnd2q+dexdO5bNvac02tcPfLd8KvmbgRKN6jbcdV95a0N/oao+1joLdUYG3NUoLO+azpshnzlawmZrfoNSBdtuQ7ZLc0R5lyDOv629t/y25Bwnf8b2XQOWzgNdj3rlta3q601ot7Tv71xJ9Zm0Jzp1/n1cc34X1ejtY1khoW1tI0KDW3b50GfJpjHFa4Pm27zcbk9L7r4uFZcGvDrktbKao21B8UawelzW7buo3suY+8+1SV1lKrb1aA0LkV7+2mltVZXGQe6g/1dN7jNMrNyhbqc6EyVXuFB0DK1Rr0Y4UvdufrawfZ6b0EqPhsedTpXew/bzzjLBQSUg1eR0WO8ZJ2AG+HWBawu5tZ+W60TtEEONh8E3Om2Bg86n23/d75thRx4DjZJW7p9saj9MoowMBydtygzmjQ4/5Y2u1lqpyFc5U5NkK0OUgukbGypYROycNdl7MZy1Km7R5vPVQ411LbjVEQNNnSB3Q6/QQ65bUdmDblXvYbFUrJXeQ01vteDXB7w3bYaY4OTazSP1Ow/9r1to0Bysh3C2FHnUBQr2KQpJEdkSHJgmSRbDhY7TSmiHD6dqJE7K0hF9hK3VAlsJBkrqrBGKnFOO0pg1A4li4hwMtgp4TCRUnJyRJAM2SWQK5NwsYejjJvkEqSycxlPTlKAC2wZAU6O6LAk55xNarjJCZd3R2TsKSXnjFOFn5KCbJPsnGFKKRbK+0RypgSPphbMnMGOKAG4yfjOCzAzFZPZxor5avKyLODJnm3uCixzePZkKt0727Pr56spooRja8BqzuEWxLXNYQo7Sh+c4OiDbw9LlObwlY92ZN84fPUg/NZHXzmMj+bqle0HNYAU9vUD8yrb19kPP8x+9Qoc1z349Ojh4h/jQzsW88MP/PbxQ/PbO/O/8Pff3pl//A7XwFEsp/LbA0a/M8utX9Yh+mR56zFQRAsSwSZQxOefG74sQSKAv7xwiRF9wT5Y9D7lPT91/Fr+lWXRfiuuTvC8NIgRGoav8gAcpBYoAUm5BiEAhq+426/gLbhRv4xG6OLXwQtlmiYufmL7BfQS3NjIMLQWOdpXlXJAsAhKcEP1C63rF8ROZQZFCdyMDqMqsVTf2m9ADF+he0mWAkHlkyZB5V/4KlLZpVTCGGo7Yz2zq3ogdSeT1i/uSeGscFanULZ/9W21C9T3yvGktnNMAjZfibWeuO4JbmxWgdDKwZdcgaZDYd6OinYJ3Aw21iBn1d3IBWmQTUG9qTDoJaMWLAjQGty46Imcl0ZLTfbCpb6cnyAvELiv5QzSlKDVemwWa99X83f77OQf9E4l+Gb1MVnItpNTUUttcg5E+mmNzcPofN4v/vbV53VtLFwgYu/H34Z/HeOsf97pr2F+NHusWg14rn/a2Q+VwJylfhrtvoA4Wz9pzVt5KqV7dBn/9gZoqu7gLtrlMs02LqxhjKhMlTpHmo4Xcdv4O5PVbZyk9c/teQPX1bmgWnNsL8ei9vYYNOyRtPfD2TmmA6kSZPF+4p5JvI70zr4tvbyjN96ll3Yw2veBi01NUjnFFtu6fxBqI+vd/df6f9fe+tSuNHyx/R69Gr0N3Xv07/v9Fu7SyBjGnM9CBT2WcWGeXphLdVtounijV9dusJ13MqoQ8a6trBcbDQYdtjK/e1xfXD/Oagb3e0d4Azv2l0BK6z7hqGeG8dZeQiTVerZrYueyrhsedRz3m7b/nE2hy+v6RtOu2KUNIHT5SpVgF6Tf2Wa1Q3PXJUVdr2VJXs+DYRQezw11nd/OgX7OS/Q1sY0Q9aiGh/HZbTIouhnTQ4yw/mzm3AjbDqEtKjfA9n7RVndIIs7tWmejUhUs2tlUVgn3WDg6ZF08tufKQNFh+8cfqaxZVYaoUhWYcNszo35IXD8sdQUShK31xme9QTXsteVmlol2G3n0HquvEf3cszqXqWnP4HAOH1zVfIR6XfDecuat1ruk0/tsSCPPpnSn0z/uThOUU3vWFFLOIXJoUvG1yo1tyk1soEBLMJdLNXP9k7Qsud/Q1tJ8uJlfy7+vvN/A+LX8S0r/gltvwTx7VgJTX365pqc8f/7x5gbMV4/+W5/xGXwGvPhrwX8KX399np4yP/hQn/6p1H373bX4Y3ke01PgY9qNGLg/RUW1XlNJT+HxT/z8qqYltBSV12/FI85SVN6kWR98AHp7ozc39fnmVlxf8/bmpDE9BUCadAXcKIkb0PWd4Iqr0125WQMo3QkegO6k9uX+tIgH0NM/Tqm83y2CpLsl6XAALYtODUZJl9JTOMBhSVq0aObAUusgq6ScHJBygV2SOMwlrWTJXZ6ZrBKA+YXUlFaUtNTGXldTVC6mp0BNUanpKT3A1OqgpagsGupaegr0jailp2SVwFiu2J1lSGsES1tZOtt9SsSF1BRgs/lfTE3Z4hb+F1JUpjSkbtClRtrZYuqktukLVacYYSlXctsGTZT0m1wJTlKO4XpwwLRPMRl1amXcdINdWkr9HhUD/8ovZKVdqsc+PWWq+jduU8nbuLyWlxtY27qpBzmHS+NV3iGVprAvn2nq5XyV7IIyYlpay/hW6NNvQU8b/tv8hijRx67vHqoFPc/rU8VdbRpwzmbyZZtskBq8z+WMy1f+pQs2hWEc3MdoKBrn1yV5GG707xOEUhkQ7TCYUn++lL5wAbs+t1SVcUqsAK0+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:v,fr:fr,ip:ip,op:op,w:w,h:h,nm:nm,ddd:ddd,assets:assets,layers:layers,markers:markers},videoWrap="_videoWrap_1gczm_1",controls$1="_controls_1gczm_5",time$1="_time_1gczm_19",line$1="_line_1gczm_31",actions$1="_actions_1gczm_38",actionWrap$1="_actionWrap_1gczm_46",actionBtn$1="_actionBtn_1gczm_49",iconReplay$1="_iconReplay_1gczm_60",slider$1="_slider_1gczm_69",sectionAnimate$1="_sectionAnimate_1gczm_77",styles$3={videoWrap:videoWrap,controls:controls$1,time:time$1,line:line$1,actions:actions$1,actionWrap:actionWrap$1,actionBtn:actionBtn$1,iconReplay:iconReplay$1,slider:slider$1,sectionAnimate:sectionAnimate$1},VideoPlay=defineComponent({name:"video-play",props:{item:{type:Object,default:()=>({})},isEmtry:{type:Boolean,default:!1}},emits:["loadedmetadata","togglePlay","ended","reset","error"],setup(t,{emit:e,expose:r}){const{item:i,isEmtry:n}=toRefs(t),a=reactive({paused:!0,currentTimeNum:0,currentTime:"00:00",durationNum:0,duration:"00:00",showBar:!0}),o=ref$1(),s=ref$1(),l="video"+Date.now()+Math.floor(100*Math.random()),p=t=>{if(t>0){const e=Math.floor(t/60),r=t%60;return(e<10?"0"+e:e)+":"+(r<10?"0"+r:r)}return"00:00"},c=()=>{s.value&&s.value.currentTime(0)},h=t=>{t?.stopPropagation(),a.paused?(s.value.play(),a.paused=!1):(s.value.pause(),a.paused=!0),e("togglePlay",a.paused)};onMounted((()=>{s.value=TCPlayer(l,{appID:"",controls:!1}),s.value&&(s.value.src(n.value?"":i.value.content),s.value.one("loadedmetadata",(()=>{console.log(" Loading metadata"),a.duration=p(Math.round(s.value.duration())),a.durationNum=s.value.duration(),e("loadedmetadata",s.value)})),s.value.on("timeupdate",(()=>{a.currentTime=p(Math.round(s.value?.currentTime()||0)),a.currentTimeNum=s.value.currentTime()})),s.value.on("ended",(()=>{a.paused=!0,e("ended")})),s.value.on("pause",(()=>{a.paused=!0})),s.value.on("playing",(()=>{a.paused=!1})),s.value.on("error",(t=>{e("error"),console.log(t,"error")})))}));return r({onPlay:()=>{s.value&&(s.value.src(i.value.content),e("reset"))},stop:()=>{s.value.currentTime(0),s.value.pause()},toggleHideControl:t=>{a.showBar=t}}),()=>createVNode("div",{class:styles$3.videoWrap},[createVNode("video",{style:{width:"100%",height:"100%"},src:n.value?"":i.value.content,ref:o,id:l,preload:"auto",playsinline:!0,"webkit-playsinline":!0},null),createVNode("div",{class:[styles$3.controls,a.showBar?"":styles$3.sectionAnimate],onClick:t=>{t.stopPropagation(),e("reset")}},[createVNode("div",{class:styles$3.actions},[createVNode("div",{class:styles$3.actionWrap},[createVNode("button",{class:styles$3.actionBtn,onClick:h},[a.paused?createVNode("img",{class:styles$3.playIcon,src:iconplay},null):createVNode("img",{class:styles$3.playIcon,src:iconpause},null)])]),createVNode("div",{class:styles$3.time},[createVNode("div",{class:"plyr__time plyr__time--current","aria-label":"Current time"},[a.currentTime]),createVNode("span",{class:styles$3.line},[createTextVNode("/")]),createVNode("div",{class:"plyr__time plyr__time--duration","aria-label":"Duration"},[a.duration])])]),createVNode("div",{class:styles$3.slider},[createVNode(NSlider,{value:a.currentTimeNum,step:.01,max:a.durationNum,tooltip:!1,"onUpdate:value":t=>{s.value.currentTime(t),a.currentTimeNum=t,a.currentTime=p(Math.round(t||0))}},null)]),createVNode("div",{class:styles$3.actions},[createVNode("div",{class:styles$3.actionWrap},[createVNode("button",{class:styles$3.iconReplay,onClick:c},[createVNode("img",{src:iconReplay$2},null)])])])])])}}),pen="_pen_1gl80_1",open="_open_1gl80_9",whiteboard="_whiteboard_1gl80_12",hide="_hide_1gl80_15",iframe="_iframe_1gl80_18",dely="_dely_1gl80_24",rightItem="_rightItem_1gl80_27",img="_img_1gl80_52",styles$2={pen:pen,open:open,whiteboard:whiteboard,hide:hide,iframe:iframe,dely:dely,rightItem:rightItem,img:img},exit1=""+new URL("exit1-726052ec.png",module.meta.url).href,exit2=""+new URL("exit2-31417114.png",module.meta.url).href,Pen=exports("P",defineComponent({name:"pen-page",props:{show:{type:Boolean,default:!1},type:{type:String,default:"pen"},close:{type:Function,default:()=>({})}},setup(t){const{show:e,type:r}=toRefs(t),i=ref$1(!0),n=`${/(localhost|192)/.test(location.host)?"https://test.lexiaoya.cn/":location.origin}/classroom-whiteboard?type=${t.type}`;return()=>createVNode("div",{class:[styles$2.pen,"whiteboard"===r.value?styles$2.whiteboard:"",i.value?styles$2.dely:"",e.value?styles$2.open:styles$2.hide]},[createVNode("iframe",{class:styles$2.iframe,frameborder:"0",width:"100vw",height:"100vh",src:n,onLoad:()=>{i.value=!1}},null),createVNode("div",{class:styles$2.rightItem,onClick:()=>t.close()},[createVNode("img",{src:"pen"===t.type?exit2:exit1},null)])])}})),audioWrap="_audioWrap_1s1t3_1",audioContainer="_audioContainer_1s1t3_6",audio="_audio_1s1t3_1",tempVudio="_tempVudio_1s1t3_22",controls="_controls_1s1t3_34",time="_time_1s1t3_48",line="_line_1s1t3_60",actions="_actions_1s1t3_67",actionWrap="_actionWrap_1s1t3_75",actionBtn="_actionBtn_1s1t3_78",iconReplay="_iconReplay_1s1t3_89",slider="_slider_1s1t3_98",sectionAnimate="_sectionAnimate_1s1t3_106",styles$1={audioWrap:audioWrap,audioContainer:audioContainer,audio:audio,tempVudio:tempVudio,controls:controls,time:time,line:line,actions:actions,actionWrap:actionWrap,actionBtn:actionBtn,iconReplay:iconReplay,slider:slider,sectionAnimate:sectionAnimate},AudioPay=defineComponent({name:"audio-play",props:{item:{type:Object,default:()=>({})},isEmtry:{type:Boolean,default:!1}},emits:["loadedmetadata","togglePlay","ended","reset"],setup(t,{emit:e,expose:r}){const i=reactive({paused:!0,currentTimeNum:0,currentTime:"00:00",durationNum:0,duration:"00:00",showBar:!0,afterMa3:!0}),n=ref$1(),a=ref$1();let o=null;const s=t=>{t?.stopPropagation(),a.value.paused?(l(a.value,n.value),a.value.play(),i.afterMa3=!1):a.value?.pause(),i.paused=a.value?.paused,e("togglePlay",i.paused)},l=(t,e)=>{o||(o=new Vudio(t,e,{effect:"waveform",accuracy:256,width:1024,height:600,waveform:{maxHeight:200,color:[[0,"#44D1FF"],[.5,"#44D1FF"],[.5,"#198CFE"],[1,"#198CFE"]],prettify:!1}}),o.dance())},p=t=>{if(t>0){const e=Math.floor(t/60),r=t%60;return(e<10?"0"+e:e)+":"+(r<10?"0"+r:r)}return"00:00"},c=()=>{a.value&&(a.value.currentTime=0)};let h=null;const u=ref$1(),d=ref$1();return nextTick((()=>{h=new Vudio(d.value,u.value,{effect:"waveform",accuracy:256,width:1024,height:600,waveform:{maxHeight:200,color:[[0,"#44D1FF"],[.5,"#44D1FF"],[.5,"#198CFE"],[1,"#198CFE"]],prettify:!1}}),h.dance()})),r({toggleHideControl:t=>{i.showBar=t}}),()=>createVNode("div",{class:styles$1.audioWrap},[createVNode("div",{class:styles$1.audioContainer},[createVNode("audio",{ref:a,crossorigin:"anonymous",src:t.item.content+"?time=1",onEnded:()=>{i.paused=!0,e("ended")},onTimeupdate:()=>{i.currentTime=p(Math.round(a.value?.currentTime||0)),i.currentTimeNum=a.value?.currentTime||0},onLoadedmetadata:()=>{i.duration=p(Math.round(a.value?.duration)),i.durationNum=a.value?.duration,t.item.autoPlay&&a.value&&a.value.play(),a.value.stop=()=>{a.value?.pause(),i.paused=!0,e("togglePlay",i.paused)},a.value.onPlay=()=>{a.value?.play(),i.paused=!1,l(a.value,n.value),e("togglePlay",i.paused)},e("loadedmetadata",a.value)}},null),createVNode("canvas",{ref:n},null),i.afterMa3&&createVNode("div",{class:styles$1.tempVudio},[createVNode("audio",{ref:d,src:tickMp3},null),createVNode("canvas",{ref:u},null)])]),createVNode("div",{class:[styles$1.controls,i.showBar?"":styles$1.sectionAnimate],onClick:t=>{t.stopPropagation(),e("reset")}},[createVNode("div",{class:styles$1.actions},[createVNode("div",{class:styles$1.actionWrap},[createVNode("button",{class:styles$1.actionBtn,onClick:s},[i.paused?createVNode("img",{class:styles$1.playIcon,src:iconplay},null):createVNode("img",{class:styles$1.playIcon,src:iconpause},null)])]),createVNode("div",{class:styles$1.time},[createVNode("div",{class:"plyr__time plyr__time--current","aria-label":"Current time"},[i.currentTime]),createVNode("span",{class:styles$1.line},[createTextVNode("/")]),createVNode("div",{class:"plyr__time plyr__time--duration","aria-label":"Duration"},[i.duration])])]),createVNode("div",{class:styles$1.slider},[createVNode(NSlider,{value:i.currentTimeNum,step:.01,max:i.durationNum,tooltip:!1,"onUpdate:value":t=>{a.value.currentTime=t,i.currentTimeNum=t,i.currentTime=p(Math.round(t||0))}},null)]),createVNode("div",{class:styles$1.actions},[createVNode("div",{class:styles$1.actionWrap},[createVNode("button",{class:styles$1.iconReplay,onClick:c},[createVNode("img",{src:iconReplay$2},null)])])])])])}}),Attentguide=defineComponent({name:"attent-guide",props:{type:{type:String,default:""}},emits:["close"],setup(t,{emit:e}){const r=useRoute(),i=toRef(t.type);console.log(r.query);const n=reactive({box:{height:"0px"},show:!1,steps:[{ele:"",eleRect:{},img:getImage("attent1.png"),handStyle:{top:"0.91rem"},imgStyle:{width:px2vw(647),height:px2vw(223),left:px2vw(-647),top:px2vw(-150)},btnsStyle:{bottom:px2vw(180),left:px2vw(-490)},eleRectPadding:{left:7,top:7,width:14,height:14},type:"left"},{ele:"",img:getImage("attent2.png"),imgStyle:{left:px2vw(-290),top:px2vw(20),width:px2vw(477),height:px2vw(277)},btnsStyle:{bottom:px2vw(70),left:px2vw(-135)},boxStyle:{borderRadius:"50%"},eleRectPadding:{left:7,top:7,width:14,height:14},type:"bottom"},{ele:"",img:getImage("attent3.png"),imgStyle:{left:px2vw(-290),top:px2vw(20),width:px2vw(382),height:px2vw(277)},btnsStyle:{bottom:px2vw(70),left:px2vw(-135)},boxStyle:{borderRadius:"50%"},eleRectPadding:{left:7,top:7,width:14,height:14},type:"bottom"},{ele:"",img:"preview"==i.value||"preview"==r.query.type?getImage("attent5.png"):getImage("attent4.png"),imgStyle:{top:"100%",left:px2vw(-2),width:px2vw(515),height:px2vw(227)},btnsStyle:{bottom:px2vw(30),left:px2vw(-20)},boxStyle:{borderRadius:"50px"},eleRectPadding:{left:7,top:7,width:14,height:14}}],step:0}),a=ref$1(!1),o=ref$1({});(async()=>{try{const t=await getGuidance({guideTag:"teacher-guideInfo"});t.data?o.value=JSON.parse(t.data?.guideValue)||null:o.value={},o.value&&o.value.attentGuide?a.value=!1:a.value=!0}catch(t){console.log(t)}})();const s=()=>{const t=document.getElementById(`attent-${n.step}`);if(t){const e=t.getBoundingClientRect(),r=n.steps[n.step].eleRectPadding?.left||0,i=n.steps[n.step].eleRectPadding?.top||0,a=n.steps[n.step].eleRectPadding?.width||0,o=n.steps[n.step].eleRectPadding?.height||0;n.box={left:e.x-r+"px",top:e.y-i+"px",width:e.width+a+"px",height:e.height+o+"px"}}else c()},l=async t=>{try{if("attend-class"!==t)return;o.value?o.value.attentGuide=!1:o.value={attentGuide:!1};try{await setGuidance({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(o.value)})}catch(e){console.log(e)}n.step=0,s(),a.value=!0}catch{}};onMounted((()=>{s(),window.addEventListener("resize",p),eventGlobal.on("teacher-guideInfo-attend-class",(t=>l(t)))}));const p=()=>{s()};onUnmounted((()=>{window.removeEventListener("resize",p),eventGlobal.off("teacher-guideInfo-attend-class",l)}));const c=()=>{n.step>=4?h():(n.step=n.step+1,s())},h=async()=>{o.value?o.value.attentGuide=!0:o.value={attentGuide:!0},a.value=!1;try{await setGuidance({guideTag:"teacher-guideInfo",guideValue:JSON.stringify(o.value)})}catch(t){console.log(t)}};return()=>createVNode(Fragment,null,[a.value?withDirectives(createVNode("div",{"onUpdate:show":t=>a.value=t,class:["n-modal-mask","n-modal-mask-guide"]},[createVNode("div",{class:styles$8.content,onClick:()=>c()},[createVNode("div",{class:styles$8.backBtn,onClick:t=>{t.stopPropagation(),h()}},[createTextVNode("跳过")]),createVNode("div",{class:styles$8.box,style:{...n.box,...n.steps[n.step].boxStyle},id:`modeType-${n.step}`},[n.steps.map(((t,e)=>createVNode("div",{onClick:t=>t.stopPropagation(),class:styles$8.item,style:"bottom"==t.type?{display:e===n.step?"":"none",left:`${t.eleRect?.left}px`,top:`-${t.imgStyle?.height}`}:"left"==t.type?{display:e===n.step?"":"none",left:`${t.eleRect?.left}px`,top:parseFloat(n.box?.height)/2-parseFloat(t.imgStyle?.height)/20+14+"px"}:{display:e===n.step?"":"none",left:`${t.eleRect?.left}px`,top:`${n.box?.height}`}},[createVNode("img",{class:styles$8.img,style:t.imgStyle,src:t.img},null),createVNode("div",{class:styles$8.btns,style:t.btnsStyle},[n.step+1==n.steps.length?createVNode(Fragment,null,[createVNode("div",{class:[styles$8.endBtn],onClick:()=>h()},[createTextVNode("完成")]),createVNode("div",{class:styles$8.nextBtn,onClick:()=>{n.step=0,s()}},[createTextVNode("再看一遍")])]):createVNode("div",{class:styles$8.btn,onClick:()=>c()},[createTextVNode("下一步 ("),n.step+1,createTextVNode("/"),n.steps.length,createTextVNode(")")])])])))])])]),[[vModelText,a.value,"show"]]):null])}}),scrollBar="_scrollBar_ds6lg_1",treeParent="_treeParent_ds6lg_5",treeChild="_treeChild_ds6lg_8",treeItem="_treeItem_ds6lg_11",title="_title_ds6lg_23",dir="_dir_ds6lg_33",titleSelect="_titleSelect_ds6lg_42",arrow="_arrow_ds6lg_50",arrowSelect="_arrowSelect_ds6lg_57",childArrow="_childArrow_ds6lg_61",childItem="_childItem_ds6lg_64",childSelect="_childSelect_ds6lg_71",styles={scrollBar:scrollBar,treeParent:treeParent,treeChild:treeChild,treeItem:treeItem,title:title,dir:dir,titleSelect:titleSelect,arrow:arrow,arrowSelect:arrowSelect,childArrow:childArrow,childItem:childItem,childSelect:childSelect},Chapter=defineComponent({name:"chapter-modal",props:{treeList:{type:Array,default:()=>[]},itemActive:{type:String,default:""}},emits:["handleSelect"],setup(t,{emit:e}){const r=useMessage(),{treeList:i,itemActive:n}=toRefs(t),a=(t,e,r=[])=>{for(const i of e){if(i.knowledgeList&&i.knowledgeList.length>0){const e=a(t,i.knowledgeList,[...r,i.id]);if(e.includes(t))return e}if(i.id===t)return[...r,t]}return r};return watch((()=>t.itemActive),(()=>{const t=a(n.value,i.value);t.length>0&&i.value.forEach((e=>{e.id==t[0]?e.selected=!0:e.selected=!1}))})),onMounted((()=>{const t=a(n.value,i.value);t.length>0&&i.value.forEach((e=>{e.id==t[0]&&(e.selected=!0)}))})),()=>createVNode(NScrollbar,{class:styles.scrollBar},{default:()=>[createVNode("div",{class:[styles.listSection]},[i.value.map(((t,a)=>createVNode("div",{class:styles.treeParent,key:"parent"+a},[createVNode("div",{class:[styles.treeItem,styles.parentItem],onClick:()=>{i.value.forEach((e=>{t.id!==e.id&&(e.selected=!1)})),t.selected=!t.selected}},[t.knowledgeList&&t.knowledgeList.length>0&&createVNode("span",{class:[styles.arrow,t.selected?styles.arrowSelect:""]},null),createVNode("p",{class:[styles.title,t.selected?styles.titleSelect:""]},[createVNode("span",{class:[styles.dir,t.selected?styles.dirSelect:""]},null),t.name])]),t.selected&&t.knowledgeList&&t.knowledgeList.map(((t,i)=>createVNode("div",{key:"child"+i,class:[styles.treeItem,styles.childItem,styles.animation,n.value===t.id?styles.childSelect:""],onClick:()=>{n.value!=t.id&&(t.containMaterial?e("handleSelect",{itemActive:t.id,itemName:t.name}):r.error("该章节暂无课件"))}},[createVNode("span",{class:styles.childArrow},null),createVNode("p",{class:styles.title},[t.name])])))])))])]})}});function _isSlot(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!isVNode(t)}const AttendClass=exports("A",defineComponent({name:"CoursewarePlay",props:{type:{type:String,default:""},subjectId:{type:[String,Number],default:""},lessonCourseId:{type:[String,Number],default:""},detailId:{type:String,default:""},classGroupId:{type:String,default:""},classId:{type:String,defaault:""}},emits:["close"],setup(t,{emit:e}){const r=useMessage(),i=useRoute(),n=reactive({width:"100vw"}),a=ref$1(),o=reactive({isBoundary:!1,isBoundaryType:"",mainWidth:"",mainHeight:"",subWidth:"",subHeight:""});onUnmounted((()=>{window.removeEventListener("resize",v)}));const s=reactive({type:"class",subjectId:"",lessonCourseId:"",lessonCoursewareDetailId:"",detailId:"",classGroupId:"",classId:"",knowledgePointList:[],itemList:[],videoRefs:{},audioRefs:{},modelAttendStatus:!1,modalAttendMessage:"本节课未设置课后作业,是否继续?",modelTrainStatus:!1,homeworkStatus:!0,removeVisiable:!1,removeTitle:"",removeContent:""}),l=reactive({nowTime:0,model:!0,isAnimation:!0,timer:null,item:null}),p=ref$1(!1),c=async()=>{try{const t=(await queryCourseware({coursewareDetailKnowledgeId:s.detailId,subjectId:s.subjectId,pag:1,rows:99})).data.rows||[],e=[];t.forEach((t=>{t.removeFlag||e.push({id:t.id,materialId:t.materialId,coverImg:t.coverImg,type:t.materialType,title:t.materialName,isCollect:!!t.favoriteFlag,isSelected:"PLATFORM"===t.source,content:t.content})})),s.knowledgePointList=e,s.itemList=s.knowledgePointList.map((t=>({...t,iframeRef:null,videoEle:null,audioEle:null,autoPlay:!1,isprepare:!1,isRender:!1}))),setTimeout((()=>{p.value=!0}),500)}catch{}},h=ref$1("left"),u=ref$1(!1),d=ref$1(!1),f=ref$1(!1),g=ref$1(!1),m=t=>{"headerTogge"===t.data?.api&&(l.model=t.data.show||"play"!=t.data.playState),"api_fingerPreView"===t.data?.api&&(clearInterval(l.timer),l.model=!t.data.state)};onMounted((()=>{(async()=>{if(document.querySelector(".wrap")){const t=new Moveable(document.querySelector(".wrap"),{target:document.querySelector("#moveNPopoverA"),container:document.querySelector(".wrap"),draggable:!0,resizable:!1,scalable:!1,rotatable:!1,warpable:!1,pinchable:!1,origin:!1,keepRatio:!1,edge:!1,throttleDrag:0,throttleResize:0,throttleScale:0,throttleRotate:0});console.log("initMoveable完毕",t),t.on("dragStart",(({target:t,clientX:e,clientY:r})=>{console.log("dragStart")})).on("drag",(({target:t,left:e,top:r,right:i,bottom:n})=>{g.value=!0,a.value&&a.value.setShow(!1);const s=document.getElementById("moveNPopoverA"),l=getComputedStyle(s,null),p={left:Number(l.left.replace("px","")),top:Number(l.top.replace("px","")),width:Number(l.width.replace("px","")),height:Number(l.height.replace("px",""))},c=parseInt(window.getComputedStyle(document.querySelector(".wrap")).width)-p.width,h=parseInt(window.getComputedStyle(document.querySelector(".wrap")).height)-p.height;s.style.transition="",o.isBoundary=!1,o.isBoundaryType="",o.mainHeight=h,o.mainWidth=c,o.subWidth=p.width,o.subHeight=p.height,e<0&&(e=2,o.isBoundary=!0,o.isBoundaryType="left"),r<0&&(r=2,o.isBoundary=!0,o.isBoundaryType="top"),i<0&&(i=2),n<0&&(n=2),e>c-2&&(e=c-2,o.isBoundary=!0,o.isBoundaryType="right"),r>h-2&&(r=h-2,o.isBoundary=!0,o.isBoundaryType="bottom"),t.style.left=`${e}px`,t.style.top=`${r}px`})).on("dragEnd",(async({target:t,clientX:e})=>{document.body.clientWidth/2-e>0?h.value="right":h.value="left",console.log(t.style.left),g.value=!1,o.isBoundary&&(t.style.transition=".3s",_(t,o.isBoundaryType))}))}})();const e=i.query;s.type=t.type||e.type,s.subjectId=t.subjectId||e.subjectId,s.detailId=t.detailId||e.detailId,s.lessonCourseId=t.lessonCourseId||e.lessonCourseId,s.classGroupId=t.classGroupId||e.classGroupId,s.classId=t.classId||e.classId;const r=document.getElementById("moveNPopoverA");y(r,o),x(r,o),window.addEventListener("message",m),c(),A(),window.addEventListener("resize",v)}));const v=()=>{const t=document.getElementById("moveNPopoverA");t.style.display="none",o.isBoundary=!0,o.isBoundaryType="right",a.value&&a.value.setShow(!1),setTimeout((()=>{t.style.transition="",x(t,o),y(t,o),t.style.display="block"}),100)},y=(t,e)=>{t.addEventListener("mouseenter",(()=>{e.isBoundary&&("left"==e.isBoundaryType?t.style.left="2px":"right"==e.isBoundaryType?t.style.left=e.mainWidth-2+"px":"top"==e.isBoundaryType?t.style.top="2px":"bottom"==e.isBoundaryType&&(t.style.top=e.mainHeight-2+"px")),b(t,0)})),t.addEventListener("mouseleave",(()=>{console.log("mouseleave",e.isBoundary),e.isBoundary&&("left"==e.isBoundaryType?_(t,"left"):"right"==e.isBoundaryType?_(t,"right"):"top"==e.isBoundaryType?_(t,"top"):"bottom"==e.isBoundaryType&&_(t,"bottom"))}))},b=(t,e)=>{t.style.transform=" rotate("+e+")"},_=(t,e)=>{switch(e){case"left":b(t,"90deg"),t.style.left=2-o.subWidth/2+"px",t.style.top=`${top}px`;break;case"right":b(t,"-90deg"),t.style.left=o.mainWidth-2+o.subWidth/2+"px",t.style.top=`${top}px`;break;case"top":t.style.top=2-o.subHeight/2+"px",b(t,"-180deg");break;case"bottom":t.style.top=o.mainHeight-2+o.subHeight/2+"px";break;default:b(t,"-0")}},x=(t,e)=>{const r=getComputedStyle(t,null),i={left:Number(r.left.replace("px","")),top:Number(r.top.replace("px","")),width:Number(r.width.replace("px","")),height:Number(r.height.replace("px",""))},n=parseInt(window.getComputedStyle(document.querySelector(".wrap")).width)-i.width,a=parseInt(window.getComputedStyle(document.querySelector(".wrap")).height)-i.height;e.mainHeight=a,e.mainWidth=n,e.subWidth=i.width,e.subHeight=i.height,t.style.transition=".3s"},S=reactive({open:!1,activeIndex:0,toolOpen:!1,chapterOpen:!1,chapterDetails:[],chapterLoading:!1}),w=(t,e,r=[])=>{for(const i of e){if(i.knowledgeList&&i.knowledgeList.length>0){const e=w(t,i.knowledgeList,[...r,i.id]);if(e.includes(t))return e}if(i.id===t)return[...r,t]}return r},A=async()=>{try{const t=await lessonCoursewareDetail({id:s.lessonCourseId,subjectId:s.subjectId});S.chapterDetails=t.data.lessonList||[];const e=w(s.detailId,S.chapterDetails);s.lessonCoursewareDetailId=e[0]}catch{}},E=async()=>{try{if(!s.classId)return;await courseScheduleUpdate({lessonCoursewareKnowledgeDetailId:s.detailId,id:s.classId})}catch{}},C=computed((()=>{let t="";return s.knowledgePointList.forEach(((e,r)=>{S.activeIndex===r&&(t=e.title)})),t})),P=()=>{for(let t=0;t<s.itemList.length;t++){const e=s.itemList[t];"VIDEO"===e.type&&e.videoEle&&(e.videoEle.currentTime(0),e.videoEle.pause()),"SONG"===e.type&&e.audioEle&&e.audioEle?.stop(),"MUSIC"===e.type&&e.iframeRef?.contentWindow?.postMessage({api:"setPlayState"},"*")}},T=()=>{clearTimeout(l.timer),r.destroyAll(),l.timer=setTimeout((()=>{l.model=!1,Object.values(s.videoRefs).map((t=>t?.toggleHideControl(!1))),Object.values(s.audioRefs).map((t=>t?.toggleHideControl(!1)))}),4e3)},D=ref$1(3),M=[{prev:{transform:"translate3d(0, 0, -800px) rotateX(180deg)"},next:{transform:"translate3d(0, 0, -800px) rotateX(-180deg)"}},{prev:{transform:"translate3d(-100%, 0, -800px)"},next:{transform:"translate3d(100%, 0, -800px)"}},{prev:{transform:"translate3d(-50%, 0, -800px) rotateY(80deg)"},next:{transform:"translate3d(50%, 0, -800px) rotateY(-80deg)"}},{prev:{transform:"translate3d(-100%, 0, -800px) rotateY(-120deg)"},next:{transform:"translate3d(100%, 0, -800px) rotateY(120deg)"}},{prev:{transform:"translate3d(-50%, 50%, -800px) rotateZ(-14deg)",opacity:0},next:{transform:"translate3d(50%, 50%, -800px) rotateZ(14deg)",opacity:0}},{prev:{transform:"translateZ(-800px) rotate3d(0, -1, 0, 90deg)",opacity:0},next:{transform:"translateZ(-800px) rotate3d(0, 1, 0, 90deg)",opacity:0},current:{transitionDelay:"700ms"}}],k=ref$1(),I=t=>{S.activeIndex!=t&&(P(),clearTimeout(k.value),R(S.activeIndex,t),S.activeIndex=t,k.value=setTimeout((()=>{const e=s.itemList[t];e&&("MUSIC"==e.type&&(l.model=!0),"SONG"===e.type&&(clearTimeout(l.timer),r.destroyAll()),"VIDEO"===e.type&&(clearTimeout(l.timer),r.destroyAll(),nextTick((()=>{e.error&&(console.log(e,"item error"),e.videoEle?.src(e.content),e.error=!1)}))))}),l.isAnimation?800:0))},R=(t,e)=>{const r=s.itemList[t],i=s.itemList[e];if(i){if(i.knowledgePointId!=r.knowledgePointId)return void(l.isAnimation=!0);const n=r.videoEle,a=i.videoEle;n&&n.duration<8&&t<e||a&&a.duration<8&&t>e?l.isAnimation=!1:l.isAnimation=!0}else l.isAnimation=!(r?.adviseStudyTimeSecond<8)},F=async t=>{if("up"===t){if(S.activeIndex>0)return void I(S.activeIndex-1);let t=S.chapterDetails.findIndex((t=>t.id==s.lessonCoursewareDetailId));const e=S.chapterDetails[t]?.knowledgeList||[];let r=e.findIndex((t=>t.id==s.detailId)),i=!1,n="",a="";for(;r>=0&&(r--,r>=0&&e[r].containMaterial&&(i=!0,n=e[r].lessonCoursewareDetailId,a=e[r].id),!i););if(i)return S.chapterLoading=!0,s.detailId=a,s.lessonCoursewareDetailId=n,"preview"!==s.type&&await E(),await c(),S.activeIndex=s.itemList.length-1||0,S.chapterOpen=!1,void(S.chapterLoading=!1);let o=!1;for(;t>=0;){t--;const e=S.chapterDetails[t]?.knowledgeList||[];let r=e.length;for(;r>0&&(e[r-1].containMaterial&&(o=!0,n=e[r-1].lessonCoursewareDetailId,a=e[r-1].id),r--,!o););if(o)break}if(o)return S.chapterLoading=!0,s.detailId=a,s.lessonCoursewareDetailId=n,await c(),S.activeIndex=s.itemList.length-1||0,void(S.chapterLoading=!1)}else{if(S.activeIndex<s.itemList.length-1)return void I(S.activeIndex+1);let t=S.chapterDetails.findIndex((t=>t.id==s.lessonCoursewareDetailId));const e=S.chapterDetails[t]?.knowledgeList||[];let r=e.findIndex((t=>t.id==s.detailId)),i=!1,n="",a="";for(;r<e.length-1&&(r++,r>=0&&e[r].containMaterial&&(i=!0,n=e[r].lessonCoursewareDetailId,a=e[r].id),!i););if(i)return S.chapterLoading=!0,s.detailId=a,s.lessonCoursewareDetailId=n,"preview"!==s.type&&await E(),await c(),S.activeIndex=0,S.chapterOpen=!1,void(S.chapterLoading=!1);let o=!1;for(;t<=S.chapterDetails.length-1;){t++;const e=S.chapterDetails[t]?.knowledgeList||[];let r=0;for(;r<=e.length-1&&(e[r].containMaterial&&(o=!0,n=e[r].lessonCoursewareDetailId,a=e[r].id),r++,!o););if(o)break}if(o)return S.chapterLoading=!0,s.detailId=a,s.lessonCoursewareDetailId=n,"preview"!==s.type&&await E(),await c(),S.activeIndex=0,S.chapterOpen=!1,void(S.chapterLoading=!1)}},B=()=>{const t=s.itemList[S.activeIndex];"VIDEO"!=t?.type||t.videoEle?.paused||T(),"SONG"!=t?.type||t.audioEle?.paused||T()};document.body.addEventListener("keyup",(t=>{"ArrowUp"===t.code?(N(),F("up")):"ArrowDown"===t.code&&(N(),F("down"))}));const N=(t=!0)=>{clearTimeout(l.timer),l.model=t,Object.values(s.videoRefs).map((e=>e?.toggleHideControl(t))),Object.values(s.audioRefs).map((e=>e?.toggleHideControl(t)))},O=reactive({type:"",penShow:!1,whiteboardShow:!1}),V=t=>{const e=s.itemList[S.activeIndex];switch("VIDEO"===e.type&&e.videoEle&&e.videoEle.pause(),"SONG"===e.type&&e.audioEle&&e.audioEle?.stop(),"MUSIC"===e.type&&e.iframeRef?.contentWindow?.postMessage({api:"setPlayState"},"*"),clearTimeout(l.timer),r.destroyAll(),l.model=!1,Object.values(s.videoRefs).map((t=>t?.toggleHideControl(!1))),Object.values(s.audioRefs).map((t=>t?.toggleHideControl(!1))),S.toolOpen=!1,O.type=t.type,t.type){case"pen":O.penShow=!0;break;case"whiteboard":O.whiteboardShow=!0}},z=()=>{O.type="init",((t=!0)=>{l.model=t,Object.values(s.videoRefs).map((e=>e?.toggleHideControl(t))),Object.values(s.audioRefs).map((e=>e?.toggleHideControl(t)))})()},L=t=>{"setTimeIcon"==t&&(f.value=!0),"beatIcon"==t&&(u.value=!0),"toneIcon"==t&&(d.value=!0),"iconNote2"==t&&(a.value&&a.value.setShow(!1),eventGlobal.emit("teacher-guideInfo-attend-class","attend-class"))},G=computed((()=>{if(S.activeIndex>0)return!0;let t=S.chapterDetails.findIndex((t=>t.id==s.lessonCoursewareDetailId));const e=S.chapterDetails[t]?.knowledgeList||[];let r=e.findIndex((t=>t.id==s.detailId));if(t<=0&&r<=0)return!1;let i=!1;for(;r>=0;)r--,r>=0&&e[r].containMaterial&&(i=!0);if(i)return!0;if(t<=0)return!1;let n=!1;for(;t>=0;){t--;const e=S.chapterDetails[t]?.knowledgeList||[];let r=e.length;for(;r>0;)e[r-1].containMaterial&&(n=!0),r--;if(n)return!0}return!1})),$=computed((()=>{if(S.activeIndex<s.itemList.length-1)return!0;let t=S.chapterDetails.findIndex((t=>t.id==s.lessonCoursewareDetailId));const e=S.chapterDetails[t]?.knowledgeList||[];let r=e.findIndex((t=>t.id==s.detailId));if(t>=S.chapterDetails.length-1&&r>=e.length-1)return!1;let i=!1;for(;r<e.length-1;)r++,r>=0&&e[r].containMaterial&&(i=!0);if(i)return!0;if(t>=S.chapterDetails.length-1)return!1;let n=!1;for(;t<S.chapterDetails.length-1;){t++;const e=S.chapterDetails[t]?.knowledgeList||[];let r=0;for(;r<=e.length-1;)e[r].containMaterial&&(n=!0),r++;if(n)return!0}return!1}));return()=>{let t;return createVNode("div",{id:"playContent",class:[styles$5.playContent,"wrap"]},[createVNode("div",{onClick:()=>{clearTimeout(l.timer),l.model=!l.model,Object.values(s.videoRefs).map((t=>t.toggleHideControl(l.model))),Object.values(s.audioRefs).map((t=>t.toggleHideControl(l.model)))}},[createVNode("div",{class:styles$5.coursewarePlay,style:{width:n.width},onClick:t=>{t.stopPropagation(),T()}},[S.chapterLoading?"":createVNode("div",{class:styles$5.wraps},[s.itemList.map(((t,e)=>{const i=t.isRender||Math.abs(S.activeIndex-e)<2,n=Math.abs(S.activeIndex-e)>4;return i&&(t.isRender=!0),i?createVNode("div",{key:"index"+e,class:[styles$5.itemDiv,S.activeIndex===e&&styles$5.itemActive,l.isAnimation&&styles$5.acitveAnimation,Math.abs(S.activeIndex-e)<2?styles$5.show:styles$5.hide],style:e<S.activeIndex?M[D.value].prev:e>S.activeIndex?M[D.value].next:{},onClick:e=>{e.stopPropagation(),clearTimeout(l.timer),Date.now()-l.nowTime<300?(t=>{if(t&&"VIDEO"===t.type){const e=t.videoEle;e&&(e.paused?(r.destroyAll(),e.play()):(r.warning("已暂停"),e.pause()))}})(t):(l.nowTime=Date.now(),l.timer=setTimeout((()=>{l.model=!l.model,Object.values(s.videoRefs).map((t=>t.toggleHideControl(l.model))),Object.values(s.audioRefs).map((t=>t.toggleHideControl(l.model))),l.model&&T()}),300))}},["VIDEO"===t.type?createVNode(Fragment,null,[createVNode(VideoPlay,{ref:t=>s.videoRefs[e]=t,item:t,isEmtry:n,onLoadedmetadata:e=>{t.videoEle=e,t.isprepare=!0},onTogglePlay:e=>{t.autoPlay=!1,e||S.open?clearTimeout(l.timer):T()},onReset:()=>{t.videoEle?.paused||T()},onError:()=>{console.log("video error"),t.error=!0}},null),createVNode(Transition,{name:"van-fade"},{default:()=>[!t.isprepare&&createVNode("div",{class:styles$5.loadWrap},[createVNode(Vue3Lottie,{animationData:playLoadData},null)])]})]):"IMG"===t.type?createVNode("img",{src:t.content},null):"SONG"===t.type?createVNode(AudioPay,{item:t,ref:t=>s.audioRefs[e]=t,onLoadedmetadata:e=>{t.audioEle=e,t.isprepare=!0},onTogglePlay:e=>{t.autoPlay=!1,e||S.open?clearTimeout(l.timer):T()},onEnded:()=>{const t=S.activeIndex+1;t<s.itemList.length&&I(t)},onReset:()=>{t.audioEle?.paused||T()}},null):createVNode(MusicScore,{activeModel:l.model,"data-vid":t.id,music:t,onSetIframe:e=>{t.iframeRef=e}},null)]):null}))]),createVNode(Transition,{name:"right"},{default:()=>[l.model&&createVNode("div",{class:styles$5.rightFixedBtns,onClick:t=>{t.stopPropagation(),clearTimeout(l.timer)}},[createVNode("div",{class:[styles$5.fullBtn],onClick:()=>S.chapterOpen=!0},[createVNode("img",{src:iconChange},null)]),createVNode("div",{class:[styles$5.fullBtn,styles$5.iconUp,G.value?"":styles$5.btnsDisabled],onClick:()=>{G.value&&F("up")}},[createVNode("img",{src:iconUp},null)]),createVNode("div",{id:"attent-0"},[createVNode("div",{class:[styles$5.fullBtn,styles$5.point],onClick:()=>S.open=!0},[createVNode("img",{src:iconMenu},null)]),createVNode("div",{class:[styles$5.fullBtn,styles$5.iconDown,$.value?"":styles$5.btnsDisabled],onClick:()=>{$.value&&F("down")}},[createVNode("img",{src:iconDown},null)])])])]})])]),createVNode("div",{style:{transform:l.model?"":"translateY(-100%)"},class:styles$5.headerContainer},[createVNode("div",{class:styles$5.menu},[C.value])]),"preview"!==s.type?createVNode("div",{class:[styles$5.assignHomeworkClose,l.model?"":styles$5.sectionAnimateUp],onClick:async()=>{s.removeVisiable=!0,s.removeTitle="结束课程",s.removeContent="请确认是否结束课程?"}},[createVNode("img",{src:iconClose},null)]):"",createVNode("div",{id:"attent-3",class:[styles$5.assignHomework,"preview"!==s.type?styles$5.isClose:"",l.model?"":styles$5.sectionAnimateUp],onClick:async()=>{if("preview"===s.type)P(),s.removeVisiable=!0,s.removeTitle="结束预览",s.removeContent="请确认是否结束预览?";else{const t=await lessonPreTrainingPage({coursewareKnowledgeDetailId:s.detailId,subjectId:s.subjectId,page:1,rows:99});console.log(t,"res"),t.data.rows&&t.data.rows.length&&(s.modalAttendMessage="本节课已设置课后训练,是否布置?"),s.modelAttendStatus=!0}}},[createVNode("img",{src:"preview"===s.type?iconOverPreivew:iconAssignHomework},null)]),createVNode("div",{class:[styles$5.switchDisplaySection,l.model?"":styles$5.sectionAnimate]},[createVNode(NTooltip,{trigger:"hover"},{trigger:()=>createVNode("div",{id:"attent-1",class:styles$5.displayBtn,onClick:()=>V({type:"pen",icon:iconNote,name:"批注"})},[createVNode("img",{src:iconNote},null)]),default:()=>"批注"}),createVNode(NTooltip,{trigger:"hover"},{trigger:()=>createVNode("div",{id:"attent-2",class:styles$5.displayBtn,onClick:()=>V({type:"whiteboard",icon:iconWhiteboard,name:"白板"})},[createVNode("img",{src:iconWhiteboard},null)]),default:()=>"白板"})]),createVNode(NDrawer,{show:S.open,"onUpdate:show":t=>S.open=t,class:styles$5.drawerContainer,onAfterLeave:B,showMask:!1},{default:()=>[createVNode(NDrawerContent,{title:"资源列表",closable:!0},_isSlot(t=s.knowledgePointList.map(((t,e)=>createVNode("div",{class:styles$5.cardContainer},[createVNode(CardType,{item:t,isActive:S.activeIndex===e,isCollect:!1,isShowCollect:!1,onClick:t=>{S.open=!1,(t=>{const e=s.itemList.findIndex((e=>e.id==t));e>-1&&I(e)})(t.id)}},null)]))))?t:{default:()=>[t]})]}),createVNode(NDrawer,{show:S.chapterOpen,"onUpdate:show":t=>S.chapterOpen=t,class:styles$5.drawerContainer,onAfterLeave:B,showMask:!1,displayDirective:"show"},{default:()=>[createVNode(NDrawerContent,{title:"切换章节",closable:!0},{default:()=>[createVNode(Chapter,{treeList:S.chapterDetails,itemActive:s.detailId,onHandleSelect:async t=>{S.chapterLoading=!0;try{s.detailId=t.itemActive;const e=w(t.itemActive,S.chapterDetails);s.lessonCoursewareDetailId=e[0],"preview"!==s.type&&await E(),await c(),S.activeIndex=0,S.chapterOpen=!1}catch{}S.chapterLoading=!1}},null)]})]}),O.penShow&&createVNode(Pen,{show:"pen"===O.type,type:O.type,close:()=>z()},null),O.whiteboardShow&&createVNode(Pen,{show:"whiteboard"===O.type,type:O.type,close:()=>z()},null),createVNode(NModal,{transformOrigin:"center",show:s.modelAttendStatus,"onUpdate:show":t=>s.modelAttendStatus=t,preset:"card",title:"课后作业",class:["modalTitle",styles$5.removeVisiable]},{default:()=>[createVNode("div",{class:styles$5.studentRemove},[createVNode("p",null,[s.modalAttendMessage]),createVNode(NSpace,{class:styles$5.btnGroupModal},{default:()=>[createVNode(NButton,{type:"default",round:!0,onClick:()=>{s.modelAttendStatus=!1,P(),s.modelAttendStatus=!1}},{default:()=>[createTextVNode("暂不布置")]}),createVNode(NButton,{type:"primary",round:!0,onClick:()=>{s.modelTrainStatus=!0,s.modelAttendStatus=!1}},{default:()=>[createTextVNode("布置")]})]})])]}),createVNode(NModal,{transformOrigin:"center",show:s.modelTrainStatus,"onUpdate:show":t=>s.modelTrainStatus=t,preset:"card",class:[styles$5.attendClassModal,styles$5.trainClassModal],title:"作业设置"},{default:()=>[createVNode(TrainSettings,{detailId:s.detailId,subjectId:s.subjectId,classGroupId:s.classGroupId,onClose:()=>s.modelTrainStatus=!1,onConfirm:()=>{s.modelTrainStatus=!1}},null)]}),p.value?createVNode(Attentguide,{type:s.type},null):null,createVNode(NPopover,{raw:!0,trigger:"click","show-arrow":!1,ref:a,style:"--n-box-shadow: none;",placement:h.value},{default:()=>[createVNode("div",{class:styles$5.booxToolWrap},[createVNode("div",{class:styles$5.booxToolItem,onClick:()=>L("beatIcon")},[createVNode("img",{src:beatIcon,alt:""},null),createTextVNode("节拍器")]),createVNode("div",{class:styles$5.booxToolItem,onClick:()=>L("toneIcon")},[createVNode("img",{src:toneIcon,alt:""},null),createTextVNode("调音器")]),createVNode("div",{class:styles$5.booxToolItem,onClick:()=>L("setTimeIcon")},[createVNode("img",{src:setTimeIcon,alt:""},null),createTextVNode("计时器")]),createVNode("div",{class:styles$5.booxToolItem,onClick:()=>L("iconNote2")},[createVNode("img",{src:iconNote$1,alt:""},null),createTextVNode("帮助指引")])])],trigger:()=>createVNode("img",{src:toolbox,id:"moveNPopoverA",style:{display:["/","/home"].includes(i.path)?"none":"block"},class:[styles$5.toolboxImg,"moveNPopoverA",g.value?styles$5.isDragIng:""],alt:""},null)}),createVNode(NModal,{transformOrigin:"center",class:["modalTitle background"],title:"节拍器",preset:"card",show:u.value,"onUpdate:show":t=>u.value=t,style:{width:"687px"}},{default:()=>[createVNode("div",{class:styles$5.modeWrap},[createVNode("iframe",{src:`${vaildUrl()}/metronome/?id=${(new Date).getTime()}`,scrolling:"no",frameborder:"0",width:"100%",height:"650px"},null)])]}),createVNode(NModal,{transformOrigin:"center",class:["background"],show:d.value,"onUpdate:show":t=>d.value=t},{default:()=>[createVNode("div",null,[createVNode(PlaceholderTone,{onClose:()=>{d.value=!1}},null)])]}),createVNode(NModal,{transformOrigin:"center",show:f.value,"onUpdate:show":t=>f.value=t,class:["modalTitle background"],title:"计时器",preset:"card",style:{width:px2vw(772)}},{default:()=>[createVNode("div",null,[createVNode(TimerMeter,null,null)])]}),createVNode(NModal,{transformOrigin:"center",show:s.removeVisiable,"onUpdate:show":t=>s.removeVisiable=t,preset:"card",class:["modalTitle",styles$5.removeVisiable],title:s.removeTitle},{default:()=>[createVNode("div",{class:styles$5.studentRemove},[createVNode("p",null,[s.removeContent]),createVNode(NSpace,{class:styles$5.btnGroupModal,justify:"center"},{default:()=>[createVNode(NButton,{round:!0,onClick:()=>s.removeVisiable=!1},{default:()=>[createTextVNode("取消")]}),createVNode(NButton,{round:!0,type:"primary",onClick:()=>{state.application?(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen(),e("close")):window.close()}},{default:()=>[createTextVNode("确定")]})]})])]})])}}})),index=Object.freeze(Object.defineProperty({__proto__:null,default:AttendClass},Symbol.toStringTag,{value:"Module"}));exports("d",index)}}}))})();
|