(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;rdiv{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-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 nh||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 ri&&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;ro&&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;i0}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-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;ri-a?(s[1]>o.top||is[1])&&(l[1]=1),o.left>r-a?(s[0]>o.left||rs[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;ei))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)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=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=-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=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')}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.indexl&&(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;s0,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?sc&&(v.pos=a,v.offset=c-a);else if(0===d)g?op&&(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&&(_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.1||t[0]>e.right&&abs(t[0]-e.right)>.1||t[1].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)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||ro||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)TINY_NUM$1&&abs(y)177,f=u>87&&u<93;return p.dist0&&(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:a270&&--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]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]g||e[c.end]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(vr)return}else{if(!(vr)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?_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;e9),"".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;i0?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=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*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-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=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]r&&(y[0]=t,v[0]=r),v[1]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=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{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{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{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{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{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;rs.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;rcreateVNode("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{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;rcreateVNode("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+vr6bm5uRkZEAAAAAAAAAAAAAAAAAAA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h2GP8OQ9Fo/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;r1?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=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;nr[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=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;i500)&&(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;rthis.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;rthis.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.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]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.firstFramee&&(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=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=.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-.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;no?-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;e1&&(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;cd?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=y||t=y?_.points.length-1:0;for(l=_.points[x].point.length,s=0;s=A&&w=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=y?p=1:t1e-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=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;r1e-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=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=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=g.t-this.offsetTime)c=1;else if(ti&&e>i)||(this._caching.lastIndex=n0||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=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;oi+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;e1?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=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=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;re.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=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;o0&&a[o]<1){var s=t.point(a[o])[e];si&&(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)=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;o1&&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;r1&&(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;a0;)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;e0?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,!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;y0&&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=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=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;e0&&(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;pt?!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.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;t0&&(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(;r1&&(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=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,r=0,i=e.length;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;t0;)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=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;r1&&s&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,r=t.length;for(e=0;e=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;l1,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;ie);)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=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;eP&&" "!==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&&Ty?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;a0?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;p1&&(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=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;kt?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=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=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=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=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=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=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=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;as&&"xMidYMid slice"===l||on&&"meet"===s||an&&"slice"===s)?(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===p&&(an&&"slice"===s)?(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===c&&(a>n&&"meet"===s||an&&"meet"===s||a=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=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;r0&&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;rr&&(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=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=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=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var r=0,i=this.threeDElements.length;ro?(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=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;rr){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.5?p/(2-o-s):p/(o+s),o){case i:e=(n-a)/p+(n1&&(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=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;o1){for(i=0;i1?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;sdata.k[e].t&&tdata.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;rp.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=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;a1?(n+t-a)/(e-1):1,s=0,l=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;so){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=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-1&&t%1==0&&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-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();++es))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{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{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+U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[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{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&&te?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.activeIndext.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&&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.activeIndext.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=0&&e[r].containMaterial&&(i=!0);if(i)return!0;if(t>=S.chapterDetails.length-1)return!1;let n=!1;for(;t{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:eS.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{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)}}}))})();