1234567891011121314151617181920212223242526 |
- import{c as $n,a6 as er,ad as tr,t as St,ae as nr,m as rr,af as or,d as be,a as A,h as ar,ab as ir,U as an,I as Ve,H as sr,L as lr,y as nt,k as ur,ag as Ze,q as wt,ah as Ln,z as N,e as rt,F as Be,a1 as Mn,ai as cr,aj as fr,w as dr,x as Ut,A as ot,r as Bn,Z as qe,ak as pr,al as hr,R as vr,am as Wt,an as An,M as gr,S as mr,V as yr,E as Ar,C as wn}from"./index-a1bf1d15.js";import{M as _n}from"./index-f0e68d4e.js";import{T as sn}from"./index-4777b74f.js";import{I as Le}from"./index-58d13ad6.js";import{G as Fn,a as Dt}from"./index-1aa6a7be.js";import{O as qt}from"./index-0e9387ff.js";import{C as wr}from"./index-e0238e8d.js";import{b as _r,u as br,a as xr}from"./index-37ba06a3.js";import{S as Sr,a as Tr}from"./index-32b5aea3.js";const[Ir,xe]=$n("action-sheet"),Er=er({},tr,{title:String,round:St,actions:nr(),closeIcon:rr("cross"),closeable:St,cancelText:String,description:String,closeOnPopstate:St,closeOnClickAction:Boolean,safeAreaInsetBottom:St}),Cr=[...or,"round","closeOnPopstate","safeAreaInsetBottom"];var Or=be({name:Ir,props:Er,emits:["select","cancel","update:show"],setup(s,{slots:i,emit:n}){const t=g=>n("update:show",g),o=()=>{t(!1),n("cancel")},r=()=>{if(s.title)return A("div",{class:xe("header")},[s.title,s.closeable&&A(Ve,{name:s.closeIcon,class:[xe("close"),sr],onClick:o},null)])},u=()=>{if(i.cancel||s.cancelText)return[A("div",{class:xe("gap")},null),A("button",{type:"button",class:xe("cancel"),onClick:o},[i.cancel?i.cancel():s.cancelText])]},d=(g,e)=>g.loading?A(lr,{class:xe("loading-icon")},null):i.action?i.action({action:g,index:e}):[A("span",{class:xe("name")},[g.name]),g.subname&&A("div",{class:xe("subname")},[g.subname])],c=(g,e)=>{const{color:a,loading:l,callback:f,disabled:h,className:v}=g,m=()=>{h||l||(f&&f(g),s.closeOnClickAction&&t(!1),nt(()=>n("select",g,e)))};return A("button",{type:"button",style:{color:a},class:[xe("item",{loading:l,disabled:h}),v],onClick:m},[d(g,e)])},p=()=>{if(s.description||i.description){const g=i.description?i.description():s.description;return A("div",{class:xe("description")},[g])}};return()=>A(an,ar({class:xe(),position:"bottom","onUpdate:show":t},ir(s,Cr)),{default:()=>{var g;return[r(),p(),A("div",{class:xe("content")},[s.actions.map(c),(g=i.default)==null?void 0:g.call(i)]),u()]}})}});const Dr=ur(Or),Rr="_unitDetail_1eas7_1",Pr="_unitSwipe_1eas7_9",Lr="_questionTitle_1eas7_12",Mr="_questionNum_1eas7_21",Br="_questionType_1eas7_24",Fr="_wapList_1eas7_36",Nr="_practiceResult_1eas7_42",jr="_practiceTitle_1eas7_42",Hr="_practiceRate_1eas7_48",kr="_title_1eas7_64",Gr="_name_1eas7_70",Ur="_practiceTips_1eas7_76",Vr="_btnSection_1eas7_89",Yr="_prevBtn_1eas7_94",Xr="_nextBtn_1eas7_95",Wr="_activePrevBtn_1eas7_96",V={unitDetail:Rr,unitSwipe:Pr,questionTitle:Lr,questionNum:Mr,questionType:Br,wapList:Fr,practiceResult:Nr,practiceTitle:jr,practiceRate:Hr,title:kr,name:Gr,practiceTips:Ur,btnSection:Vr,prevBtn:Yr,nextBtn:Xr,activePrevBtn:Wr},qr="data:image/png;base64,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";var ln={},Qr={get exports(){return ln},set exports(s){ln=s}};(function(s){var i=Object.prototype.hasOwnProperty,n="~";function t(){}Object.create&&(t.prototype=Object.create(null),new t().__proto__||(n=!1));function o(c,p,g){this.fn=c,this.context=p,this.once=g||!1}function r(c,p,g,e,a){if(typeof g!="function")throw new TypeError("The listener must be a function");var l=new o(g,e||c,a),f=n?n+p:p;return c._events[f]?c._events[f].fn?c._events[f]=[c._events[f],l]:c._events[f].push(l):(c._events[f]=l,c._eventsCount++),c}function u(c,p){--c._eventsCount===0?c._events=new t:delete c._events[p]}function d(){this._events=new t,this._eventsCount=0}d.prototype.eventNames=function(){var p=[],g,e;if(this._eventsCount===0)return p;for(e in g=this._events)i.call(g,e)&&p.push(n?e.slice(1):e);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(g)):p},d.prototype.listeners=function(p){var g=n?n+p:p,e=this._events[g];if(!e)return[];if(e.fn)return[e.fn];for(var a=0,l=e.length,f=new Array(l);a<l;a++)f[a]=e[a].fn;return f},d.prototype.listenerCount=function(p){var g=n?n+p:p,e=this._events[g];return e?e.fn?1:e.length:0},d.prototype.emit=function(p,g,e,a,l,f){var h=n?n+p:p;if(!this._events[h])return!1;var v=this._events[h],m=arguments.length,y,w;if(v.fn){switch(v.once&&this.removeListener(p,v.fn,void 0,!0),m){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,g),!0;case 3:return v.fn.call(v.context,g,e),!0;case 4:return v.fn.call(v.context,g,e,a),!0;case 5:return v.fn.call(v.context,g,e,a,l),!0;case 6:return v.fn.call(v.context,g,e,a,l,f),!0}for(w=1,y=new Array(m-1);w<m;w++)y[w-1]=arguments[w];v.fn.apply(v.context,y)}else{var S=v.length,I;for(w=0;w<S;w++)switch(v[w].once&&this.removeListener(p,v[w].fn,void 0,!0),m){case 1:v[w].fn.call(v[w].context);break;case 2:v[w].fn.call(v[w].context,g);break;case 3:v[w].fn.call(v[w].context,g,e);break;case 4:v[w].fn.call(v[w].context,g,e,a);break;default:if(!y)for(I=1,y=new Array(m-1);I<m;I++)y[I-1]=arguments[I];v[w].fn.apply(v[w].context,y)}}return!0},d.prototype.on=function(p,g,e){return r(this,p,g,e,!1)},d.prototype.once=function(p,g,e){return r(this,p,g,e,!0)},d.prototype.removeListener=function(p,g,e,a){var l=n?n+p:p;if(!this._events[l])return this;if(!g)return u(this,l),this;var f=this._events[l];if(f.fn)f.fn===g&&(!a||f.once)&&(!e||f.context===e)&&u(this,l);else{for(var h=0,v=[],m=f.length;h<m;h++)(f[h].fn!==g||a&&!f[h].once||e&&f[h].context!==e)&&v.push(f[h]);v.length?this._events[l]=v.length===1?v[0]:v:u(this,l)}return this},d.prototype.removeAllListeners=function(p){var g;return p?(g=n?n+p:p,this._events[g]&&u(this,g)):(this._events=new t,this._eventsCount=0),this},d.prototype.off=d.prototype.removeListener,d.prototype.addListener=d.prototype.on,d.prefixed=n,d.EventEmitter=d,s.exports=d})(Qr);const Kr=ln,et=new Kr,Nn={1:"A",2:"B",3:"C",4:"D",5:"E",6:"F",7:"G",8:"H",9:"I",10:"J"},he={RADIO:"RADIO",CHECKBOX:"CHECKBOX",LINK:"LINK",SORT:"SORT",PLAY:"PLAY"},at={RADIO:"单选题",CHECKBOX:"多选题",LINK:"连线题",SORT:"排序题",PLAY:"演奏题"},Ae={IMAGE:"IMAGE",TXT:"TXT",AUDIO:"AUDIO"},zr="_unitSubjectTitle_1x5pg_1",Jr="_unitScore_1x5pg_7",Zr="_unitDetail_1x5pg_14",$r="_unitTitleImg_1x5pg_23",eo="_unitTitleRate_1x5pg_26",to="_icon_1x5pg_37",no="_rate_1x5pg_41",He={unitSubjectTitle:zr,unitScore:Jr,unitDetail:Zr,unitTitleImg:$r,unitTitleRate:eo,icon:to,rate:no},ro="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAmVJREFUWEftl81LVFEYxn9nNBtzZpyJhhlEgxaKIIJQSaLQEC1qE9TKTQSh9AFtrE1/QZvoi6KgbVIWRhQERZBjZW2UMgaZakKiZKjMtA9KHU8cz1zuOB/NHWPmQvhuLpz33PM8z3ve89x7BED3NdkgHZwQku0SPGqsWCFgRgoeiAWOX+4Ur8QiuOAZ4CsWaI51p4Rki+i6LvuR7CkxuIYT3BTdfXK62GXPJU5th+jqk9IW9UnQFQL/fwXcq2FXEwgBt17C99mlHVfUClQ74VgIgklrG3gDvSMlIuCrhKMhCLhNwHAMrgyXgMDaNVq532WCTUzDyQH49tsCAWe5nvRrvnCHWFellaunEe+/wqlwJviiGaYbUXMQDrWDcqfeYRgat05CKVbKVQWMeDcFp8OZzWfkMwgcbIONdTqtPPLqCDyM5ScRcGnlvhTw8S9wZhB+pHV+6moZBDo2wL7N5hRFon8U7kVzkwi6Nbi30pzzdhLODsLPub+Tz3oMdzbC7mZ9do24E4HbkczFajwa3OM0c7HPWrmVHsrpA9vqobNlKYn7UbjxwgSqrYaeECizMeL1Jzj3yBp41iZM1ai2Y+8mcKRUIpw0k1ov9GwFVwp49KMGn03k75mcTZj+aut62N8KZQ4z8/wD1PuhqsIcG4vD+SeFgeetgLF8Sw0caIPysuzKInG48BjmFqwrt1wBY2JTAA63Q0XSpIzx0Qm4OATzywC3XAEDrMEPRzrAuUqPqK249BQSywQvmIB6oc4LOxohPgN3xyDxjz90Rf0cW+mIFQL2V8D+i4ntVzO7L6fqqNh5Pf8DS9v7/ahSKSsAAAAASUVORK5CYII=",oo="_unitAudio_1g6zx_1",ao="_nativeAudio_1g6zx_5",io="_htmlAudio_1g6zx_9",so="_htmlTimes_1g6zx_23",lo="_iconAudio_1g6zx_31",uo="_audioStatus_1g6zx_35",it={unitAudio:oo,nativeAudio:ao,htmlAudio:io,htmlTimes:so,iconAudio:lo,audioStatus:uo};var jn={};/*!
- * howler.js v2.2.3
- * howlerjs.com
- *
- * (c) 2013-2020, James Simpson of GoldFire Studios
- * goldfirestudios.com
- *
- * MIT License
- */(function(s){(function(){var i=function(){this.init()};i.prototype={init:function(){var e=this||n;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator=typeof window<"u"&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var a=this||n;if(e=parseFloat(e),a.ctx||g(),typeof e<"u"&&e>=0&&e<=1){if(a._volume=e,a._muted)return a;a.usingWebAudio&&a.masterGain.gain.setValueAtTime(e,n.ctx.currentTime);for(var l=0;l<a._howls.length;l++)if(!a._howls[l]._webAudio)for(var f=a._howls[l]._getSoundIds(),h=0;h<f.length;h++){var v=a._howls[l]._soundById(f[h]);v&&v._node&&(v._node.volume=v._volume*e)}return a}return a._volume},mute:function(e){var a=this||n;a.ctx||g(),a._muted=e,a.usingWebAudio&&a.masterGain.gain.setValueAtTime(e?0:a._volume,n.ctx.currentTime);for(var l=0;l<a._howls.length;l++)if(!a._howls[l]._webAudio)for(var f=a._howls[l]._getSoundIds(),h=0;h<f.length;h++){var v=a._howls[l]._soundById(f[h]);v&&v._node&&(v._node.muted=e?!0:v._muted)}return a},stop:function(){for(var e=this||n,a=0;a<e._howls.length;a++)e._howls[a].stop();return e},unload:function(){for(var e=this||n,a=e._howls.length-1;a>=0;a--)e._howls[a].unload();return e.usingWebAudio&&e.ctx&&typeof e.ctx.close<"u"&&(e.ctx.close(),e.ctx=null,g()),e},codecs:function(e){return(this||n)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||n;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if(typeof Audio<"u")try{var a=new Audio;typeof a.oncanplaythrough>"u"&&(e._canPlayEvent="canplay")}catch(l){e.noAudio=!0}else e.noAudio=!0;try{var a=new Audio;a.muted&&(e.noAudio=!0)}catch(l){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||n,a=null;try{a=typeof Audio<"u"?new Audio:null}catch(S){return e}if(!a||typeof a.canPlayType!="function")return e;var l=a.canPlayType("audio/mpeg;").replace(/^no$/,""),f=e._navigator?e._navigator.userAgent:"",h=f.match(/OPR\/([0-6].)/g),v=h&&parseInt(h[0].split("/")[1],10)<33,m=f.indexOf("Safari")!==-1&&f.indexOf("Chrome")===-1,y=f.match(/Version\/(.*?) /),w=m&&y&&parseInt(y[1],10)<15;return e._codecs={mp3:!!(!v&&(l||a.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!l,opus:!!a.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(a.canPlayType('audio/wav; codecs="1"')||a.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!a.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!a.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(a.canPlayType("audio/x-m4b;")||a.canPlayType("audio/m4b;")||a.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(a.canPlayType("audio/x-mp4;")||a.canPlayType("audio/mp4;")||a.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!w&&a.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!w&&a.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!a.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(a.canPlayType("audio/x-flac;")||a.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||n;if(!(e._audioUnlocked||!e.ctx)){e._audioUnlocked=!1,e.autoUnlock=!1,!e._mobileUnloaded&&e.ctx.sampleRate!==44100&&(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var a=function(l){for(;e._html5AudioPool.length<e.html5PoolSize;)try{var f=new Audio;f._unlocked=!0,e._releaseHtml5Audio(f)}catch(S){e.noAudio=!0;break}for(var h=0;h<e._howls.length;h++)if(!e._howls[h]._webAudio)for(var v=e._howls[h]._getSoundIds(),m=0;m<v.length;m++){var y=e._howls[h]._soundById(v[m]);y&&y._node&&!y._node._unlocked&&(y._node._unlocked=!0,y._node.load())}e._autoResume();var w=e.ctx.createBufferSource();w.buffer=e._scratchBuffer,w.connect(e.ctx.destination),typeof w.start>"u"?w.noteOn(0):w.start(0),typeof e.ctx.resume=="function"&&e.ctx.resume(),w.onended=function(){w.disconnect(0),e._audioUnlocked=!0,document.removeEventListener("touchstart",a,!0),document.removeEventListener("touchend",a,!0),document.removeEventListener("click",a,!0),document.removeEventListener("keydown",a,!0);for(var S=0;S<e._howls.length;S++)e._howls[S]._emit("unlock")}};return document.addEventListener("touchstart",a,!0),document.addEventListener("touchend",a,!0),document.addEventListener("click",a,!0),document.addEventListener("keydown",a,!0),e}},_obtainHtml5Audio:function(){var e=this||n;if(e._html5AudioPool.length)return e._html5AudioPool.pop();var a=new Audio().play();return a&&typeof Promise<"u"&&(a instanceof Promise||typeof a.then=="function")&&a.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(e){var a=this||n;return e._unlocked&&a._html5AudioPool.push(e),a},_autoSuspend:function(){var e=this;if(!(!e.autoSuspend||!e.ctx||typeof e.ctx.suspend>"u"||!n.usingWebAudio)){for(var a=0;a<e._howls.length;a++)if(e._howls[a]._webAudio){for(var l=0;l<e._howls[a]._sounds.length;l++)if(!e._howls[a]._sounds[l]._paused)return e}return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout(function(){if(e.autoSuspend){e._suspendTimer=null,e.state="suspending";var f=function(){e.state="suspended",e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())};e.ctx.suspend().then(f,f)}},3e4),e}},_autoResume:function(){var e=this;if(!(!e.ctx||typeof e.ctx.resume>"u"||!n.usingWebAudio))return e.state==="running"&&e.ctx.state!=="interrupted"&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):e.state==="suspended"||e.state==="running"&&e.ctx.state==="interrupted"?(e.ctx.resume().then(function(){e.state="running";for(var a=0;a<e._howls.length;a++)e._howls[a]._emit("resume")}),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):e.state==="suspending"&&(e._resumeAfterSuspend=!0),e}};var n=new i,t=function(e){var a=this;if(!e.src||e.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}a.init(e)};t.prototype={init:function(e){var a=this;return n.ctx||g(),a._autoplay=e.autoplay||!1,a._format=typeof e.format!="string"?e.format:[e.format],a._html5=e.html5||!1,a._muted=e.mute||!1,a._loop=e.loop||!1,a._pool=e.pool||5,a._preload=typeof e.preload=="boolean"||e.preload==="metadata"?e.preload:!0,a._rate=e.rate||1,a._sprite=e.sprite||{},a._src=typeof e.src!="string"?e.src:[e.src],a._volume=e.volume!==void 0?e.volume:1,a._xhr={method:e.xhr&&e.xhr.method?e.xhr.method:"GET",headers:e.xhr&&e.xhr.headers?e.xhr.headers:null,withCredentials:e.xhr&&e.xhr.withCredentials?e.xhr.withCredentials:!1},a._duration=0,a._state="unloaded",a._sounds=[],a._endTimers={},a._queue=[],a._playLock=!1,a._onend=e.onend?[{fn:e.onend}]:[],a._onfade=e.onfade?[{fn:e.onfade}]:[],a._onload=e.onload?[{fn:e.onload}]:[],a._onloaderror=e.onloaderror?[{fn:e.onloaderror}]:[],a._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],a._onpause=e.onpause?[{fn:e.onpause}]:[],a._onplay=e.onplay?[{fn:e.onplay}]:[],a._onstop=e.onstop?[{fn:e.onstop}]:[],a._onmute=e.onmute?[{fn:e.onmute}]:[],a._onvolume=e.onvolume?[{fn:e.onvolume}]:[],a._onrate=e.onrate?[{fn:e.onrate}]:[],a._onseek=e.onseek?[{fn:e.onseek}]:[],a._onunlock=e.onunlock?[{fn:e.onunlock}]:[],a._onresume=[],a._webAudio=n.usingWebAudio&&!a._html5,typeof n.ctx<"u"&&n.ctx&&n.autoUnlock&&n._unlockAudio(),n._howls.push(a),a._autoplay&&a._queue.push({event:"play",action:function(){a.play()}}),a._preload&&a._preload!=="none"&&a.load(),a},load:function(){var e=this,a=null;if(n.noAudio){e._emit("loaderror",null,"No audio support.");return}typeof e._src=="string"&&(e._src=[e._src]);for(var l=0;l<e._src.length;l++){var f,h;if(e._format&&e._format[l])f=e._format[l];else{if(h=e._src[l],typeof h!="string"){e._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}f=/^data:audio\/([^;,]+);/i.exec(h),f||(f=/\.([^.]+)$/.exec(h.split("?",1)[0])),f&&(f=f[1].toLowerCase())}if(f||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),f&&n.codecs(f)){a=e._src[l];break}}if(!a){e._emit("loaderror",null,"No codec support for selected audio sources.");return}return e._src=a,e._state="loading",window.location.protocol==="https:"&&a.slice(0,5)==="http:"&&(e._html5=!0,e._webAudio=!1),new o(e),e._webAudio&&u(e),e},play:function(e,a){var l=this,f=null;if(typeof e=="number")f=e,e=null;else{if(typeof e=="string"&&l._state==="loaded"&&!l._sprite[e])return null;if(typeof e>"u"&&(e="__default",!l._playLock)){for(var h=0,v=0;v<l._sounds.length;v++)l._sounds[v]._paused&&!l._sounds[v]._ended&&(h++,f=l._sounds[v]._id);h===1?e=null:f=null}}var m=f?l._soundById(f):l._inactiveSound();if(!m)return null;if(f&&!e&&(e=m._sprite||"__default"),l._state!=="loaded"){m._sprite=e,m._ended=!1;var y=m._id;return l._queue.push({event:"play",action:function(){l.play(y)}}),y}if(f&&!m._paused)return a||l._loadQueue("play"),m._id;l._webAudio&&n._autoResume();var w=Math.max(0,m._seek>0?m._seek:l._sprite[e][0]/1e3),S=Math.max(0,(l._sprite[e][0]+l._sprite[e][1])/1e3-w),I=S*1e3/Math.abs(m._rate),L=l._sprite[e][0]/1e3,j=(l._sprite[e][0]+l._sprite[e][1])/1e3;m._sprite=e,m._ended=!1;var R=function(){m._paused=!1,m._seek=w,m._start=L,m._stop=j,m._loop=!!(m._loop||l._sprite[e][2])};if(w>=j){l._ended(m);return}var E=m._node;if(l._webAudio){var D=function(){l._playLock=!1,R(),l._refreshBuffer(m);var q=m._muted||l._muted?0:m._volume;E.gain.setValueAtTime(q,n.ctx.currentTime),m._playStart=n.ctx.currentTime,typeof E.bufferSource.start>"u"?m._loop?E.bufferSource.noteGrainOn(0,w,86400):E.bufferSource.noteGrainOn(0,w,S):m._loop?E.bufferSource.start(0,w,86400):E.bufferSource.start(0,w,S),I!==1/0&&(l._endTimers[m._id]=setTimeout(l._ended.bind(l,m),I)),a||setTimeout(function(){l._emit("play",m._id),l._loadQueue()},0)};n.state==="running"&&n.ctx.state!=="interrupted"?D():(l._playLock=!0,l.once("resume",D),l._clearTimer(m._id))}else{var H=function(){E.currentTime=w,E.muted=m._muted||l._muted||n._muted||E.muted,E.volume=m._volume*n.volume(),E.playbackRate=m._rate;try{var q=E.play();if(q&&typeof Promise<"u"&&(q instanceof Promise||typeof q.then=="function")?(l._playLock=!0,R(),q.then(function(){l._playLock=!1,E._unlocked=!0,a?l._loadQueue():l._emit("play",m._id)}).catch(function(){l._playLock=!1,l._emit("playerror",m._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),m._ended=!0,m._paused=!0})):a||(l._playLock=!1,R(),l._emit("play",m._id)),E.playbackRate=m._rate,E.paused){l._emit("playerror",m._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}e!=="__default"||m._loop?l._endTimers[m._id]=setTimeout(l._ended.bind(l,m),I):(l._endTimers[m._id]=function(){l._ended(m),E.removeEventListener("ended",l._endTimers[m._id],!1)},E.addEventListener("ended",l._endTimers[m._id],!1))}catch(Y){l._emit("playerror",m._id,Y)}};E.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(E.src=l._src,E.load());var K=window&&window.ejecta||!E.readyState&&n._navigator.isCocoonJS;if(E.readyState>=3||K)H();else{l._playLock=!0,l._state="loading";var J=function(){l._state="loaded",H(),E.removeEventListener(n._canPlayEvent,J,!1)};E.addEventListener(n._canPlayEvent,J,!1),l._clearTimer(m._id)}}return m._id},pause:function(e){var a=this;if(a._state!=="loaded"||a._playLock)return a._queue.push({event:"pause",action:function(){a.pause(e)}}),a;for(var l=a._getSoundIds(e),f=0;f<l.length;f++){a._clearTimer(l[f]);var h=a._soundById(l[f]);if(h&&!h._paused&&(h._seek=a.seek(l[f]),h._rateSeek=0,h._paused=!0,a._stopFade(l[f]),h._node))if(a._webAudio){if(!h._node.bufferSource)continue;typeof h._node.bufferSource.stop>"u"?h._node.bufferSource.noteOff(0):h._node.bufferSource.stop(0),a._cleanBuffer(h._node)}else(!isNaN(h._node.duration)||h._node.duration===1/0)&&h._node.pause();arguments[1]||a._emit("pause",h?h._id:null)}return a},stop:function(e,a){var l=this;if(l._state!=="loaded"||l._playLock)return l._queue.push({event:"stop",action:function(){l.stop(e)}}),l;for(var f=l._getSoundIds(e),h=0;h<f.length;h++){l._clearTimer(f[h]);var v=l._soundById(f[h]);v&&(v._seek=v._start||0,v._rateSeek=0,v._paused=!0,v._ended=!0,l._stopFade(f[h]),v._node&&(l._webAudio?v._node.bufferSource&&(typeof v._node.bufferSource.stop>"u"?v._node.bufferSource.noteOff(0):v._node.bufferSource.stop(0),l._cleanBuffer(v._node)):(!isNaN(v._node.duration)||v._node.duration===1/0)&&(v._node.currentTime=v._start||0,v._node.pause(),v._node.duration===1/0&&l._clearSound(v._node))),a||l._emit("stop",v._id))}return l},mute:function(e,a){var l=this;if(l._state!=="loaded"||l._playLock)return l._queue.push({event:"mute",action:function(){l.mute(e,a)}}),l;if(typeof a>"u")if(typeof e=="boolean")l._muted=e;else return l._muted;for(var f=l._getSoundIds(a),h=0;h<f.length;h++){var v=l._soundById(f[h]);v&&(v._muted=e,v._interval&&l._stopFade(v._id),l._webAudio&&v._node?v._node.gain.setValueAtTime(e?0:v._volume,n.ctx.currentTime):v._node&&(v._node.muted=n._muted?!0:e),l._emit("mute",v._id))}return l},volume:function(){var e=this,a=arguments,l,f;if(a.length===0)return e._volume;if(a.length===1||a.length===2&&typeof a[1]>"u"){var h=e._getSoundIds(),v=h.indexOf(a[0]);v>=0?f=parseInt(a[0],10):l=parseFloat(a[0])}else a.length>=2&&(l=parseFloat(a[0]),f=parseInt(a[1],10));var m;if(typeof l<"u"&&l>=0&&l<=1){if(e._state!=="loaded"||e._playLock)return e._queue.push({event:"volume",action:function(){e.volume.apply(e,a)}}),e;typeof f>"u"&&(e._volume=l),f=e._getSoundIds(f);for(var y=0;y<f.length;y++)m=e._soundById(f[y]),m&&(m._volume=l,a[2]||e._stopFade(f[y]),e._webAudio&&m._node&&!m._muted?m._node.gain.setValueAtTime(l,n.ctx.currentTime):m._node&&!m._muted&&(m._node.volume=l*n.volume()),e._emit("volume",m._id))}else return m=f?e._soundById(f):e._sounds[0],m?m._volume:0;return e},fade:function(e,a,l,f){var h=this;if(h._state!=="loaded"||h._playLock)return h._queue.push({event:"fade",action:function(){h.fade(e,a,l,f)}}),h;e=Math.min(Math.max(0,parseFloat(e)),1),a=Math.min(Math.max(0,parseFloat(a)),1),l=parseFloat(l),h.volume(e,f);for(var v=h._getSoundIds(f),m=0;m<v.length;m++){var y=h._soundById(v[m]);if(y){if(f||h._stopFade(v[m]),h._webAudio&&!y._muted){var w=n.ctx.currentTime,S=w+l/1e3;y._volume=e,y._node.gain.setValueAtTime(e,w),y._node.gain.linearRampToValueAtTime(a,S)}h._startFadeInterval(y,e,a,l,v[m],typeof f>"u")}}return h},_startFadeInterval:function(e,a,l,f,h,v){var m=this,y=a,w=l-a,S=Math.abs(w/.01),I=Math.max(4,S>0?f/S:f),L=Date.now();e._fadeTo=l,e._interval=setInterval(function(){var j=(Date.now()-L)/f;L=Date.now(),y+=w*j,y=Math.round(y*100)/100,w<0?y=Math.max(l,y):y=Math.min(l,y),m._webAudio?e._volume=y:m.volume(y,e._id,!0),v&&(m._volume=y),(l<a&&y<=l||l>a&&y>=l)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,m.volume(l,e._id),m._emit("fade",e._id))},I)},_stopFade:function(e){var a=this,l=a._soundById(e);return l&&l._interval&&(a._webAudio&&l._node.gain.cancelScheduledValues(n.ctx.currentTime),clearInterval(l._interval),l._interval=null,a.volume(l._fadeTo,e),l._fadeTo=null,a._emit("fade",e)),a},loop:function(){var e=this,a=arguments,l,f,h;if(a.length===0)return e._loop;if(a.length===1)if(typeof a[0]=="boolean")l=a[0],e._loop=l;else return h=e._soundById(parseInt(a[0],10)),h?h._loop:!1;else a.length===2&&(l=a[0],f=parseInt(a[1],10));for(var v=e._getSoundIds(f),m=0;m<v.length;m++)h=e._soundById(v[m]),h&&(h._loop=l,e._webAudio&&h._node&&h._node.bufferSource&&(h._node.bufferSource.loop=l,l&&(h._node.bufferSource.loopStart=h._start||0,h._node.bufferSource.loopEnd=h._stop,e.playing(v[m])&&(e.pause(v[m],!0),e.play(v[m],!0)))));return e},rate:function(){var e=this,a=arguments,l,f;if(a.length===0)f=e._sounds[0]._id;else if(a.length===1){var h=e._getSoundIds(),v=h.indexOf(a[0]);v>=0?f=parseInt(a[0],10):l=parseFloat(a[0])}else a.length===2&&(l=parseFloat(a[0]),f=parseInt(a[1],10));var m;if(typeof l=="number"){if(e._state!=="loaded"||e._playLock)return e._queue.push({event:"rate",action:function(){e.rate.apply(e,a)}}),e;typeof f>"u"&&(e._rate=l),f=e._getSoundIds(f);for(var y=0;y<f.length;y++)if(m=e._soundById(f[y]),m){e.playing(f[y])&&(m._rateSeek=e.seek(f[y]),m._playStart=e._webAudio?n.ctx.currentTime:m._playStart),m._rate=l,e._webAudio&&m._node&&m._node.bufferSource?m._node.bufferSource.playbackRate.setValueAtTime(l,n.ctx.currentTime):m._node&&(m._node.playbackRate=l);var w=e.seek(f[y]),S=(e._sprite[m._sprite][0]+e._sprite[m._sprite][1])/1e3-w,I=S*1e3/Math.abs(m._rate);(e._endTimers[f[y]]||!m._paused)&&(e._clearTimer(f[y]),e._endTimers[f[y]]=setTimeout(e._ended.bind(e,m),I)),e._emit("rate",m._id)}}else return m=e._soundById(f),m?m._rate:e._rate;return e},seek:function(){var e=this,a=arguments,l,f;if(a.length===0)e._sounds.length&&(f=e._sounds[0]._id);else if(a.length===1){var h=e._getSoundIds(),v=h.indexOf(a[0]);v>=0?f=parseInt(a[0],10):e._sounds.length&&(f=e._sounds[0]._id,l=parseFloat(a[0]))}else a.length===2&&(l=parseFloat(a[0]),f=parseInt(a[1],10));if(typeof f>"u")return 0;if(typeof l=="number"&&(e._state!=="loaded"||e._playLock))return e._queue.push({event:"seek",action:function(){e.seek.apply(e,a)}}),e;var m=e._soundById(f);if(m)if(typeof l=="number"&&l>=0){var y=e.playing(f);y&&e.pause(f,!0),m._seek=l,m._ended=!1,e._clearTimer(f),!e._webAudio&&m._node&&!isNaN(m._node.duration)&&(m._node.currentTime=l);var w=function(){y&&e.play(f,!0),e._emit("seek",f)};if(y&&!e._webAudio){var S=function(){e._playLock?setTimeout(S,0):w()};setTimeout(S,0)}else w()}else if(e._webAudio){var I=e.playing(f)?n.ctx.currentTime-m._playStart:0,L=m._rateSeek?m._rateSeek-m._seek:0;return m._seek+(L+I*Math.abs(m._rate))}else return m._node.currentTime;return e},playing:function(e){var a=this;if(typeof e=="number"){var l=a._soundById(e);return l?!l._paused:!1}for(var f=0;f<a._sounds.length;f++)if(!a._sounds[f]._paused)return!0;return!1},duration:function(e){var a=this,l=a._duration,f=a._soundById(e);return f&&(l=a._sprite[f._sprite][1]/1e3),l},state:function(){return this._state},unload:function(){for(var e=this,a=e._sounds,l=0;l<a.length;l++)a[l]._paused||e.stop(a[l]._id),e._webAudio||(e._clearSound(a[l]._node),a[l]._node.removeEventListener("error",a[l]._errorFn,!1),a[l]._node.removeEventListener(n._canPlayEvent,a[l]._loadFn,!1),a[l]._node.removeEventListener("ended",a[l]._endFn,!1),n._releaseHtml5Audio(a[l]._node)),delete a[l]._node,e._clearTimer(a[l]._id);var f=n._howls.indexOf(e);f>=0&&n._howls.splice(f,1);var h=!0;for(l=0;l<n._howls.length;l++)if(n._howls[l]._src===e._src||e._src.indexOf(n._howls[l]._src)>=0){h=!1;break}return r&&h&&delete r[e._src],n.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,a,l,f){var h=this,v=h["_on"+e];return typeof a=="function"&&v.push(f?{id:l,fn:a,once:f}:{id:l,fn:a}),h},off:function(e,a,l){var f=this,h=f["_on"+e],v=0;if(typeof a=="number"&&(l=a,a=null),a||l)for(v=0;v<h.length;v++){var m=l===h[v].id;if(a===h[v].fn&&m||!a&&m){h.splice(v,1);break}}else if(e)f["_on"+e]=[];else{var y=Object.keys(f);for(v=0;v<y.length;v++)y[v].indexOf("_on")===0&&Array.isArray(f[y[v]])&&(f[y[v]]=[])}return f},once:function(e,a,l){var f=this;return f.on(e,a,l,1),f},_emit:function(e,a,l){for(var f=this,h=f["_on"+e],v=h.length-1;v>=0;v--)(!h[v].id||h[v].id===a||e==="load")&&(setTimeout(function(m){m.call(this,a,l)}.bind(f,h[v].fn),0),h[v].once&&f.off(e,h[v].fn,h[v].id));return f._loadQueue(e),f},_loadQueue:function(e){var a=this;if(a._queue.length>0){var l=a._queue[0];l.event===e&&(a._queue.shift(),a._loadQueue()),e||l.action()}return a},_ended:function(e){var a=this,l=e._sprite;if(!a._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop)return setTimeout(a._ended.bind(a,e),100),a;var f=!!(e._loop||a._sprite[l][2]);if(a._emit("end",e._id),!a._webAudio&&f&&a.stop(e._id,!0).play(e._id),a._webAudio&&f){a._emit("play",e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=n.ctx.currentTime;var h=(e._stop-e._start)*1e3/Math.abs(e._rate);a._endTimers[e._id]=setTimeout(a._ended.bind(a,e),h)}return a._webAudio&&!f&&(e._paused=!0,e._ended=!0,e._seek=e._start||0,e._rateSeek=0,a._clearTimer(e._id),a._cleanBuffer(e._node),n._autoSuspend()),!a._webAudio&&!f&&a.stop(e._id,!0),a},_clearTimer:function(e){var a=this;if(a._endTimers[e]){if(typeof a._endTimers[e]!="function")clearTimeout(a._endTimers[e]);else{var l=a._soundById(e);l&&l._node&&l._node.removeEventListener("ended",a._endTimers[e],!1)}delete a._endTimers[e]}return a},_soundById:function(e){for(var a=this,l=0;l<a._sounds.length;l++)if(e===a._sounds[l]._id)return a._sounds[l];return null},_inactiveSound:function(){var e=this;e._drain();for(var a=0;a<e._sounds.length;a++)if(e._sounds[a]._ended)return e._sounds[a].reset();return new o(e)},_drain:function(){var e=this,a=e._pool,l=0,f=0;if(!(e._sounds.length<a)){for(f=0;f<e._sounds.length;f++)e._sounds[f]._ended&&l++;for(f=e._sounds.length-1;f>=0;f--){if(l<=a)return;e._sounds[f]._ended&&(e._webAudio&&e._sounds[f]._node&&e._sounds[f]._node.disconnect(0),e._sounds.splice(f,1),l--)}}},_getSoundIds:function(e){var a=this;if(typeof e>"u"){for(var l=[],f=0;f<a._sounds.length;f++)l.push(a._sounds[f]._id);return l}else return[e]},_refreshBuffer:function(e){var a=this;return e._node.bufferSource=n.ctx.createBufferSource(),e._node.bufferSource.buffer=r[a._src],e._panner?e._node.bufferSource.connect(e._panner):e._node.bufferSource.connect(e._node),e._node.bufferSource.loop=e._loop,e._loop&&(e._node.bufferSource.loopStart=e._start||0,e._node.bufferSource.loopEnd=e._stop||0),e._node.bufferSource.playbackRate.setValueAtTime(e._rate,n.ctx.currentTime),a},_cleanBuffer:function(e){var a=this,l=n._navigator&&n._navigator.vendor.indexOf("Apple")>=0;if(n._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),l))try{e.bufferSource.buffer=n._scratchBuffer}catch(f){}return e.bufferSource=null,a},_clearSound:function(e){var a=/MSIE |Trident\//.test(n._navigator&&n._navigator.userAgent);a||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var o=function(e){this._parent=e,this.init()};o.prototype={init:function(){var e=this,a=e._parent;return e._muted=a._muted,e._loop=a._loop,e._volume=a._volume,e._rate=a._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++n._counter,a._sounds.push(e),e.create(),e},create:function(){var e=this,a=e._parent,l=n._muted||e._muted||e._parent._muted?0:e._volume;return a._webAudio?(e._node=typeof n.ctx.createGain>"u"?n.ctx.createGainNode():n.ctx.createGain(),e._node.gain.setValueAtTime(l,n.ctx.currentTime),e._node.paused=!0,e._node.connect(n.masterGain)):n.noAudio||(e._node=n._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(n._canPlayEvent,e._loadFn,!1),e._endFn=e._endListener.bind(e),e._node.addEventListener("ended",e._endFn,!1),e._node.src=a._src,e._node.preload=a._preload===!0?"auto":a._preload,e._node.volume=l*n.volume(),e._node.load()),e},reset:function(){var e=this,a=e._parent;return e._muted=a._muted,e._loop=a._loop,e._volume=a._volume,e._rate=a._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++n._counter,e},_errorListener:function(){var e=this;e._parent._emit("loaderror",e._id,e._node.error?e._node.error.code:0),e._node.removeEventListener("error",e._errorFn,!1)},_loadListener:function(){var e=this,a=e._parent;a._duration=Math.ceil(e._node.duration*10)/10,Object.keys(a._sprite).length===0&&(a._sprite={__default:[0,a._duration*1e3]}),a._state!=="loaded"&&(a._state="loaded",a._emit("load"),a._loadQueue()),e._node.removeEventListener(n._canPlayEvent,e._loadFn,!1)},_endListener:function(){var e=this,a=e._parent;a._duration===1/0&&(a._duration=Math.ceil(e._node.duration*10)/10,a._sprite.__default[1]===1/0&&(a._sprite.__default[1]=a._duration*1e3),a._ended(e)),e._node.removeEventListener("ended",e._endFn,!1)}};var r={},u=function(e){var a=e._src;if(r[a]){e._duration=r[a].duration,p(e);return}if(/^data:[^;]+;base64,/.test(a)){for(var l=atob(a.split(",")[1]),f=new Uint8Array(l.length),h=0;h<l.length;++h)f[h]=l.charCodeAt(h);c(f.buffer,e)}else{var v=new XMLHttpRequest;v.open(e._xhr.method,a,!0),v.withCredentials=e._xhr.withCredentials,v.responseType="arraybuffer",e._xhr.headers&&Object.keys(e._xhr.headers).forEach(function(m){v.setRequestHeader(m,e._xhr.headers[m])}),v.onload=function(){var m=(v.status+"")[0];if(m!=="0"&&m!=="2"&&m!=="3"){e._emit("loaderror",null,"Failed loading audio file with status: "+v.status+".");return}c(v.response,e)},v.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete r[a],e.load())},d(v)}},d=function(e){try{e.send()}catch(a){e.onerror()}},c=function(e,a){var l=function(){a._emit("loaderror",null,"Decoding audio data failed.")},f=function(h){h&&a._sounds.length>0?(r[a._src]=h,p(a,h)):l()};typeof Promise<"u"&&n.ctx.decodeAudioData.length===1?n.ctx.decodeAudioData(e).then(f).catch(l):n.ctx.decodeAudioData(e,f,l)},p=function(e,a){a&&!e._duration&&(e._duration=a.duration),Object.keys(e._sprite).length===0&&(e._sprite={__default:[0,e._duration*1e3]}),e._state!=="loaded"&&(e._state="loaded",e._emit("load"),e._loadQueue())},g=function(){if(n.usingWebAudio){try{typeof AudioContext<"u"?n.ctx=new AudioContext:typeof webkitAudioContext<"u"?n.ctx=new webkitAudioContext:n.usingWebAudio=!1}catch(h){n.usingWebAudio=!1}n.ctx||(n.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(n._navigator&&n._navigator.platform),a=n._navigator&&n._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),l=a?parseInt(a[1],10):null;if(e&&l&&l<9){var f=/safari/.test(n._navigator&&n._navigator.userAgent.toLowerCase());n._navigator&&!f&&(n.usingWebAudio=!1)}n.usingWebAudio&&(n.masterGain=typeof n.ctx.createGain>"u"?n.ctx.createGainNode():n.ctx.createGain(),n.masterGain.gain.setValueAtTime(n._muted?0:n._volume,n.ctx.currentTime),n.masterGain.connect(n.ctx.destination)),n._setup()}};s.Howler=n,s.Howl=t,typeof Ze<"u"?(Ze.HowlerGlobal=i,Ze.Howler=n,Ze.Howl=t,Ze.Sound=o):typeof window<"u"&&(window.HowlerGlobal=i,window.Howler=n,window.Howl=t,window.Sound=o)})();/*!
- * Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
- *
- * howler.js v2.2.3
- * howlerjs.com
- *
- * (c) 2013-2020, James Simpson of GoldFire Studios
- * goldfirestudios.com
- *
- * MIT License
- */(function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(n){var t=this;if(!t.ctx||!t.ctx.listener)return t;for(var o=t._howls.length-1;o>=0;o--)t._howls[o].stereo(n);return t},HowlerGlobal.prototype.pos=function(n,t,o){var r=this;if(!r.ctx||!r.ctx.listener)return r;if(t=typeof t!="number"?r._pos[1]:t,o=typeof o!="number"?r._pos[2]:o,typeof n=="number")r._pos=[n,t,o],typeof r.ctx.listener.positionX<"u"?(r.ctx.listener.positionX.setTargetAtTime(r._pos[0],Howler.ctx.currentTime,.1),r.ctx.listener.positionY.setTargetAtTime(r._pos[1],Howler.ctx.currentTime,.1),r.ctx.listener.positionZ.setTargetAtTime(r._pos[2],Howler.ctx.currentTime,.1)):r.ctx.listener.setPosition(r._pos[0],r._pos[1],r._pos[2]);else return r._pos;return r},HowlerGlobal.prototype.orientation=function(n,t,o,r,u,d){var c=this;if(!c.ctx||!c.ctx.listener)return c;var p=c._orientation;if(t=typeof t!="number"?p[1]:t,o=typeof o!="number"?p[2]:o,r=typeof r!="number"?p[3]:r,u=typeof u!="number"?p[4]:u,d=typeof d!="number"?p[5]:d,typeof n=="number")c._orientation=[n,t,o,r,u,d],typeof c.ctx.listener.forwardX<"u"?(c.ctx.listener.forwardX.setTargetAtTime(n,Howler.ctx.currentTime,.1),c.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),c.ctx.listener.forwardZ.setTargetAtTime(o,Howler.ctx.currentTime,.1),c.ctx.listener.upX.setTargetAtTime(r,Howler.ctx.currentTime,.1),c.ctx.listener.upY.setTargetAtTime(u,Howler.ctx.currentTime,.1),c.ctx.listener.upZ.setTargetAtTime(d,Howler.ctx.currentTime,.1)):c.ctx.listener.setOrientation(n,t,o,r,u,d);else return p;return c},Howl.prototype.init=function(n){return function(t){var o=this;return o._orientation=t.orientation||[1,0,0],o._stereo=t.stereo||null,o._pos=t.pos||null,o._pannerAttr={coneInnerAngle:typeof t.coneInnerAngle<"u"?t.coneInnerAngle:360,coneOuterAngle:typeof t.coneOuterAngle<"u"?t.coneOuterAngle:360,coneOuterGain:typeof t.coneOuterGain<"u"?t.coneOuterGain:0,distanceModel:typeof t.distanceModel<"u"?t.distanceModel:"inverse",maxDistance:typeof t.maxDistance<"u"?t.maxDistance:1e4,panningModel:typeof t.panningModel<"u"?t.panningModel:"HRTF",refDistance:typeof t.refDistance<"u"?t.refDistance:1,rolloffFactor:typeof t.rolloffFactor<"u"?t.rolloffFactor:1},o._onstereo=t.onstereo?[{fn:t.onstereo}]:[],o._onpos=t.onpos?[{fn:t.onpos}]:[],o._onorientation=t.onorientation?[{fn:t.onorientation}]:[],n.call(this,t)}}(Howl.prototype.init),Howl.prototype.stereo=function(n,t){var o=this;if(!o._webAudio)return o;if(o._state!=="loaded")return o._queue.push({event:"stereo",action:function(){o.stereo(n,t)}}),o;var r=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof t>"u")if(typeof n=="number")o._stereo=n,o._pos=[n,0,0];else return o._stereo;for(var u=o._getSoundIds(t),d=0;d<u.length;d++){var c=o._soundById(u[d]);if(c)if(typeof n=="number")c._stereo=n,c._pos=[n,0,0],c._node&&(c._pannerAttr.panningModel="equalpower",(!c._panner||!c._panner.pan)&&i(c,r),r==="spatial"?typeof c._panner.positionX<"u"?(c._panner.positionX.setValueAtTime(n,Howler.ctx.currentTime),c._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),c._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):c._panner.setPosition(n,0,0):c._panner.pan.setValueAtTime(n,Howler.ctx.currentTime)),o._emit("stereo",c._id);else return c._stereo}return o},Howl.prototype.pos=function(n,t,o,r){var u=this;if(!u._webAudio)return u;if(u._state!=="loaded")return u._queue.push({event:"pos",action:function(){u.pos(n,t,o,r)}}),u;if(t=typeof t!="number"?0:t,o=typeof o!="number"?-.5:o,typeof r>"u")if(typeof n=="number")u._pos=[n,t,o];else return u._pos;for(var d=u._getSoundIds(r),c=0;c<d.length;c++){var p=u._soundById(d[c]);if(p)if(typeof n=="number")p._pos=[n,t,o],p._node&&((!p._panner||p._panner.pan)&&i(p,"spatial"),typeof p._panner.positionX<"u"?(p._panner.positionX.setValueAtTime(n,Howler.ctx.currentTime),p._panner.positionY.setValueAtTime(t,Howler.ctx.currentTime),p._panner.positionZ.setValueAtTime(o,Howler.ctx.currentTime)):p._panner.setPosition(n,t,o)),u._emit("pos",p._id);else return p._pos}return u},Howl.prototype.orientation=function(n,t,o,r){var u=this;if(!u._webAudio)return u;if(u._state!=="loaded")return u._queue.push({event:"orientation",action:function(){u.orientation(n,t,o,r)}}),u;if(t=typeof t!="number"?u._orientation[1]:t,o=typeof o!="number"?u._orientation[2]:o,typeof r>"u")if(typeof n=="number")u._orientation=[n,t,o];else return u._orientation;for(var d=u._getSoundIds(r),c=0;c<d.length;c++){var p=u._soundById(d[c]);if(p)if(typeof n=="number")p._orientation=[n,t,o],p._node&&(p._panner||(p._pos||(p._pos=u._pos||[0,0,-.5]),i(p,"spatial")),typeof p._panner.orientationX<"u"?(p._panner.orientationX.setValueAtTime(n,Howler.ctx.currentTime),p._panner.orientationY.setValueAtTime(t,Howler.ctx.currentTime),p._panner.orientationZ.setValueAtTime(o,Howler.ctx.currentTime)):p._panner.setOrientation(n,t,o)),u._emit("orientation",p._id);else return p._orientation}return u},Howl.prototype.pannerAttr=function(){var n=this,t=arguments,o,r,u;if(!n._webAudio)return n;if(t.length===0)return n._pannerAttr;if(t.length===1)if(typeof t[0]=="object")o=t[0],typeof r>"u"&&(o.pannerAttr||(o.pannerAttr={coneInnerAngle:o.coneInnerAngle,coneOuterAngle:o.coneOuterAngle,coneOuterGain:o.coneOuterGain,distanceModel:o.distanceModel,maxDistance:o.maxDistance,refDistance:o.refDistance,rolloffFactor:o.rolloffFactor,panningModel:o.panningModel}),n._pannerAttr={coneInnerAngle:typeof o.pannerAttr.coneInnerAngle<"u"?o.pannerAttr.coneInnerAngle:n._coneInnerAngle,coneOuterAngle:typeof o.pannerAttr.coneOuterAngle<"u"?o.pannerAttr.coneOuterAngle:n._coneOuterAngle,coneOuterGain:typeof o.pannerAttr.coneOuterGain<"u"?o.pannerAttr.coneOuterGain:n._coneOuterGain,distanceModel:typeof o.pannerAttr.distanceModel<"u"?o.pannerAttr.distanceModel:n._distanceModel,maxDistance:typeof o.pannerAttr.maxDistance<"u"?o.pannerAttr.maxDistance:n._maxDistance,refDistance:typeof o.pannerAttr.refDistance<"u"?o.pannerAttr.refDistance:n._refDistance,rolloffFactor:typeof o.pannerAttr.rolloffFactor<"u"?o.pannerAttr.rolloffFactor:n._rolloffFactor,panningModel:typeof o.pannerAttr.panningModel<"u"?o.pannerAttr.panningModel:n._panningModel});else return u=n._soundById(parseInt(t[0],10)),u?u._pannerAttr:n._pannerAttr;else t.length===2&&(o=t[0],r=parseInt(t[1],10));for(var d=n._getSoundIds(r),c=0;c<d.length;c++)if(u=n._soundById(d[c]),u){var p=u._pannerAttr;p={coneInnerAngle:typeof o.coneInnerAngle<"u"?o.coneInnerAngle:p.coneInnerAngle,coneOuterAngle:typeof o.coneOuterAngle<"u"?o.coneOuterAngle:p.coneOuterAngle,coneOuterGain:typeof o.coneOuterGain<"u"?o.coneOuterGain:p.coneOuterGain,distanceModel:typeof o.distanceModel<"u"?o.distanceModel:p.distanceModel,maxDistance:typeof o.maxDistance<"u"?o.maxDistance:p.maxDistance,refDistance:typeof o.refDistance<"u"?o.refDistance:p.refDistance,rolloffFactor:typeof o.rolloffFactor<"u"?o.rolloffFactor:p.rolloffFactor,panningModel:typeof o.panningModel<"u"?o.panningModel:p.panningModel};var g=u._panner;g?(g.coneInnerAngle=p.coneInnerAngle,g.coneOuterAngle=p.coneOuterAngle,g.coneOuterGain=p.coneOuterGain,g.distanceModel=p.distanceModel,g.maxDistance=p.maxDistance,g.refDistance=p.refDistance,g.rolloffFactor=p.rolloffFactor,g.panningModel=p.panningModel):(u._pos||(u._pos=n._pos||[0,0,-.5]),i(u,"spatial"))}return n},Sound.prototype.init=function(n){return function(){var t=this,o=t._parent;t._orientation=o._orientation,t._stereo=o._stereo,t._pos=o._pos,t._pannerAttr=o._pannerAttr,n.call(this),t._stereo?o.stereo(t._stereo):t._pos&&o.pos(t._pos[0],t._pos[1],t._pos[2],t._id)}}(Sound.prototype.init),Sound.prototype.reset=function(n){return function(){var t=this,o=t._parent;return t._orientation=o._orientation,t._stereo=o._stereo,t._pos=o._pos,t._pannerAttr=o._pannerAttr,t._stereo?o.stereo(t._stereo):t._pos?o.pos(t._pos[0],t._pos[1],t._pos[2],t._id):t._panner&&(t._panner.disconnect(0),t._panner=void 0,o._refreshBuffer(t)),n.call(this)}}(Sound.prototype.reset);var i=function(n,t){t=t||"spatial",t==="spatial"?(n._panner=Howler.ctx.createPanner(),n._panner.coneInnerAngle=n._pannerAttr.coneInnerAngle,n._panner.coneOuterAngle=n._pannerAttr.coneOuterAngle,n._panner.coneOuterGain=n._pannerAttr.coneOuterGain,n._panner.distanceModel=n._pannerAttr.distanceModel,n._panner.maxDistance=n._pannerAttr.maxDistance,n._panner.refDistance=n._pannerAttr.refDistance,n._panner.rolloffFactor=n._pannerAttr.rolloffFactor,n._panner.panningModel=n._pannerAttr.panningModel,typeof n._panner.positionX<"u"?(n._panner.positionX.setValueAtTime(n._pos[0],Howler.ctx.currentTime),n._panner.positionY.setValueAtTime(n._pos[1],Howler.ctx.currentTime),n._panner.positionZ.setValueAtTime(n._pos[2],Howler.ctx.currentTime)):n._panner.setPosition(n._pos[0],n._pos[1],n._pos[2]),typeof n._panner.orientationX<"u"?(n._panner.orientationX.setValueAtTime(n._orientation[0],Howler.ctx.currentTime),n._panner.orientationY.setValueAtTime(n._orientation[1],Howler.ctx.currentTime),n._panner.orientationZ.setValueAtTime(n._orientation[2],Howler.ctx.currentTime)):n._panner.setOrientation(n._orientation[0],n._orientation[1],n._orientation[2])):(n._panner=Howler.ctx.createStereoPanner(),n._panner.pan.setValueAtTime(n._stereo,Howler.ctx.currentTime)),n._panner.connect(n._node),n._paused||n._parent.pause(n._id,!0).play(n._id,!0)}})()})(jn);const co="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABLNJREFUWEfNmF1oHFUUx///u2laJDsbsLbQnVhFiiKlRUkFpcEHsWq11Wa2kdYHWz8Q1IpS9UHRREWlVlGsCuJH64MVm5mUtlYtfVFpFTSILSIqiB+ZDdbWkp0ETDa798id7MTddDc7iW3JPOzDzr33/O45/3PuuUPMsIdT5ZnfMzivQWQlgKspshiCC6CYDNfRMgjiNyG/B/B5gfz4WHvyr6nYiA10fk+wvKjlUQA3EGiIY0SAAoBPEoov/NFuHYozpy7Qwr0DFxZH1TaI3Di2IPMCHCDloJC9BfCXcwtNA+bN3w1DzQ2QiyjSKsJrCVwHSOPYNO5PzNKbfl/d/OtkYJMCtbhD6zSKbxIwIRkA8Yoe4ev9660TcXa7YGcwV82W+yB4EECzAIMKiXv6Mk0f1JpfE8h2c0+C7IIIQXaPkvdPVQ+RUaO7WSKvQWQtSIFIl59JPV0NqipQCAM8FcqUfCLrWM/F8Ui9MWkveIwizwBQADqrQZ0CZMIk1O9DREhZ3+c0f1jNkO3mFpGJ1Vr0YkIWADzqZ6xH6kG1eAO3inAnSFLUbRPDVwFkBFzI84jRjJCPV/NMuie4klq2AGirNM6sn7HsekDmfclTzxpNNTTK0nKhVwDZXvBRmE1kt+9YHRWLiyjby20BuNnkDICTAuwD+ZlQZfUc+e7PlcnjcYDMGNsLdpU0td93rJuieeNALd0n24SJL0w2jSp1cYWADYybc0GuATkC8PmR4j8vHe+YNxQXYOK4UOha/2SyTym2RXVqHCjt5vYSWAWoTj+TrMgA2x3YCvBhCE5oxVv6HevwdEHK59lerhOCLuPpbCa1OixX5ic8DrTOEtA6z3R5nSlp5jDIvAauqYQRtnhBq4BLxxaTI32O1QtQ4gCHdaoRWYGoglJpE5UQKO0FGyiyXcB92YwVkkaP7eZMGNtA1eU7SVMKwsd2h5YIitsJXF4+XoBvicRGP9N0NA5U2g32ErJKyI1Zx9oRAW2nyAYQD/hOalsZzCIAPxsBj+iRhZFm7D1DS2S0eCis4GQ/RH8azqG6HiILTPYQieVxoGwvtwmCV4XckXWsjSGQ7ea+AdAqildl262vIqAWb2izSPHFaPDY/8K0G/SGnhHuHm5M3n7iZg6aN3P3SHJOfvA9UNYYT2UzVmu98JUk8SWAXj+TWjYG1J07DmLuqFLzy7Mr7QWh5yJ3mrEtXm6ZCL42nhluSF4SwUSbCKEKgz8aT5G4os9Jmc3WfErZdswkjL82dd4YkBcMQ2S2pa3ZP3QwXxayAwBWaJVY0d/edLA09i6IvAXIu36m+c5qlmx34B2Ad4C823estycDunSXNAYqGDHlxHesOXWAgq0A1hXO4WVR0bO94CwA1QhZtZ2dnZDVEHV1V58FUUfinZj2tWJ/xtN+ssJYE+pMFsb/jg5qnUfF0TF5tT1DR4cxOn64El2+kxo/IuKU/+mOqXm4hgVvsvZjuhbrF8Ta7Uep6NVu0E4zVN0GzdiL08KeDq7YLWwYuphN/nTBptTkl51hM+caVAE1Uy6KEdQpV2mol3Ve3pjSVbqR9wL6of99lY6gZtTHhnLhzpjPMROzacZ8sJpumk913r+lkkFS3TnE+gAAAABJRU5ErkJggg==",fo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAHpJREFUSEvtlrENgDAQA+1BYB8mYSYmYR8YxDRJREP4Jq8UTm3plNNbMpH8mMzDPEBJG4CjGNhJnj0b0fznDyVdAJYCuUmuP8BQvgfUG0Cyq19SKG9gs2qlPpp6DK6Fa9EMuBauBaJHUFVF81NNjNwRNWqvzrNLR/3wAc1tuB3GmZrsAAAAAElFTkSuQmCC",po="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAZ5JREFUSEvN1rtOAlEQBuD5F9gE5WYDhagvYnwEja5uY+UTSKJETbT1knhJLKy0MlhhYWNlIbFRK30CibBEQgNIsRF2x4ABxcR1uZwNW0/Od2bPzDkDcviDwx4NFhi+yEdk2bsKsPvDIx/np70vvf4RywyjyXKKiKe+EOgAHeqGvlNQw5VuYUtwNFmqgcjVtjgjxy7e0GYD5wRwp/A/GZYsFsQDg2OaErzvBO0BbDD1DSXgca9lZoZzduBewaZRYZJ2Pe++g/QSdCu4X2Az3TSB45oSSv6F9hX8RnDLkhTT5nzPv2FBYONwDQk4rRrYelP9hSYsDPyRWZGIFrPzwetGN1sdcDRp1RZ2arIV85qdD044B4IyWSU47hRYNMELOSV0IxSsFw0IZzUTm+KLBpxig2OaOvIktC0YlCaS4priF974FYD2XOXAvuirjYmQINO9nlWHNDuN0n0fgh6ZaLnfz5NBRFLbzoEcQ9ADPHZZvmPmydaIwXSks3+7oELMiBG+qkTkqrlSvwKrsudE+BBlpwg6jRmsubTT3duJ/wQ5K7UdkvYC+QAAAABJRU5ErkJggg==",Hn=be({name:"unit-audio",props:{src:{type:String,default:""}},setup(s){const i=wt({audioStatus:"stopped",duration:0}),n=new jn.Howl({src:s.src+"?t="+ +new Date,format:["mp3"]});return n.on("load",t=>{console.log(n.duration()),i.duration=Math.ceil(n.duration())}),n.on("end",t=>{i.audioStatus="stopped"}),et.on("unitAudioStop",()=>{n.stop(),i.audioStatus="stopped"}),Ln(()=>{n.off("load")}),()=>A("div",{class:it.unitAudio},[A("div",{class:it.htmlAudio,onClick:t=>{t.stopPropagation(),i.audioStatus==="stopped"?(et.emit("unitAudioStop"),n.play(),i.audioStatus="paused"):i.audioStatus==="paused"&&(n.pause(),i.audioStatus="stopped")}},[A("div",{class:it.htmlTimes},[A(Ve,{class:it.iconAudio,name:co},null),A("span",null,[i.duration,N('"')])]),A(Ve,{name:i.audioStatus==="stopped"?po:fo,class:it.audioStatus},null)])])}}),Vt=be({name:"answer-title",props:{index:{type:Number,default:1},name:{type:String,default:""},score:{type:Number,default:0},answerType:{type:String,default:""},extra:{type:Object,default:()=>({})},showRate:{type:Boolean,default:!1}},setup(s){const i=rt(()=>s.answerType===he.CHECKBOX?at.CHECKBOX:s.answerType===he.LINK?at.LINK:s.answerType===he.SORT?at.SORT:s.answerType===he.PLAY?at.PLAY:at.RADIO),n=rt(()=>s.extra.mediaUrls?s.extra.mediaUrls.split(","):"");return()=>A(Be,null,[A("div",{class:He.unitSubjectTitle},[s.index,N("、"),s.name,N(" "),A("span",{class:He.unitScore},[N("("),s.score||0,N("分)")]),A(sn,{type:"primary",style:{lineHeight:"20px"}},{default:()=>[i.value]})]),s.showRate&&A("div",{class:He.unitTitleRate},[A(Ve,{name:ro,class:He.icon},null),N("正确率:"),A("span",{class:He.rate},[s.extra.rightRate||0,N("%")])]),s.extra.questionDetail||n.value?A("div",{class:He.unitDetail},[A("div",{innerHTML:s.extra.questionDetail},null),n.value&&n.value.map(t=>t&&A(Be,null,[t.substr(-3)==="mp3"?A(Hn,{src:t,class:He.valueAudio},null):A(Le,{class:[He.unitTitleImg,"answerTitleImg"],src:t},null)]))]):""])}}),ho="_answerAnalysis_1x634_1",vo="_analysisResult_1x634_8",go="_aImg_1x634_16",mo="_success_1x634_20",yo="_error_1x634_23",Ao="_analysisTitle_1x634_26",wo="_analysisMessage_1x634_29",Se={answerAnalysis:ho,analysisResult:vo,aImg:go,success:mo,error:yo,analysisTitle:Ao,analysisMessage:wo},kn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAApFJREFUWEfNmMtrU0EUh7+TW21R3OnWJ/gAV4JV2lKsSF24DmhNzG0XNhUFd+JfUNwJim1dtKmtKGTtQhErpS1o0ZXgA8HHVneipGByZO4lMUlz7ySawszyzpk53/2dmTNnRmixaTq9B7zTqPaBHALdibAtmEb5AfIV9C0iS1B8LHNzn1pxIc0YazLp0bU1ieploAdoalyACCuI3KbwMy/5fNHmzzqxXhg5hRZvoRy0TRbbL7xDvCtyb/ppnF0kkPp+F7+5CXqxBUVszApylw6uSi5XaGTcEEiTwzvoLD0Cjto8/GP/KmuJM5Kf+VY/fh1QANNVWvzvENlITQgLif56qBqgMEy6uIHK1GOu0iH91eGrBUr5k6Cjtp9rb79MyXwuW56zAhTsplLxSRsXcLPcSsIbLO++ACjMM1vebPi6iUIM1tOvwyZPhUBp/yyqD+LziMDACdi9C5ZX4P2HeAUO7IfeHvj8BRaeg5ocGdNEzslc7mEIlMosAb2xA04OwHAmNCkWYWIKXrxsPOR4N2RHwfPC/plZeLZgC+GyzM/2iQ4N7SWx6aN17Yz4oULlFgV1rBvGqmCMvVFoOmcDUqS0TzTtZ1GdsFljQnD92t+/bqRUIxgDPn7DHmIzn8iYaCozD5y3AhmDKIcmfKbVK2ML7Xqn90VT/ivQI00BRUGVSuHwRMIe0lhH8tooZM6T7U0DRUFVT9C6MuXR30XTmQJKZ0tAZahL2VpVzHej1p3J6B0Y50hYcxDIuZA5uKgd2/bOJUbXjg6zC9t+uNZn9FYO1wDIufLDtQItUMmlEraczdWlIj9QybVrUADl0kWxEjqXrtIVKJceG6pLFmeeY2qgXHqwqi/wgmuTt3lwo570/gATF5asuw6doAAAAABJRU5ErkJggg==",_o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA9tJREFUWEfNmFtsFFUYgL9/uttuqVwqFxWRWDBKE9AE0weFNF6wpeGhLUkJxERDTRQTTHwAjBLvD74awXAx3RpRa9pII0bRhgChF5VLUeRSRNSQQEggIUo0tbTnN2e32+3MbjszW0x2Huf85/+/+a9njhDyafhIywZvmGoDS0WkHGUuMHlYzXWEC6p6xoGuSNT5tu0p+T2MCQki3NCqBYN/04DR9Yo+DATaB6ggPTiyNVJCW9sqGfKz56u4Nq7LULNFYIGfsvHWFfoQ54UvGmXfeHJjAj3SrLFSNe8q8iyqvuCBYEVU0J3XxHnx4Frpz7Ynq6GauM6MoV+pakUgQyGFRORIP7Jib6Nc8W7NABqGOaSqEwqRH6OI9PUjlV4oF1AyTGph/hfPZHhD5Mg1kcrR4XMB1ceHtqvynN/X3cx1EXa0NxasS+kcAbLVJGjHTUvgoNQiqkhVqvoSQLbPDFw3Jyda2kEZvHK2JRROdhbaPpUAqm/W1WpMS64Kg+ybVgw15fDPAOw9AwOeFimOs6Z9rXyWBGoyXYouCaI4F5k7psDbNcL0kmSG7D+nbOlUlypButufcZbKyrjOM2p+DTEOQjHNmQpv1Qilk9L1c/FPZf3nbiA7ZqJRZ77UN+k6xWwLZSWg8NxSeHO5MK3Y3e5ajxtajmcqEXheapuGPhZ4MqCNwGJlt8Iby4UpMTdMx1lle7eS4R/rIvhE6uLmGKqLs1mqnAf3zRJ6/lBOXQ7Mwj0z4PVq4ZYiN8zXp5UPvs+GMqxbpFfqmswV0Blec0vKYMOjTuK1UeX9LmX/OX+oe2fCa9VCSaEbZs9JpfnwODAJ1XLVAvWDFnlNPV0BdYuSQCmoHT1Kx9mxocpvg1erhOKoG2b3CWXXUT+YBNC/YwJZt7+zQogUpJWrJl1u+4j3WXg7bH5CiHlgWn9UWnqDwKSBsobMLlfcBRsfE6IeqA8PK3tOpZEemA0vLxOKIm7PfHrM0PaTf5jTEjZk4yS1FVx8J7z0uFDoMbbrqGH3CXhwDmyy6x5oG6L2n8PA2IhJb6Cyv382vJLFA4fOGx66O9ODzT8oX54OCZMq+6CNcawcGW3W5tjO75Rv+sLDJDLINsYwo2PBrGQVTfKUdKoKt3Ur+37JDWZkdNjtYYZrtj5j+9TWTuWAnYg5PiPDNQEU8vgxf3qy+dmxMDikvNepdP6WI8nwNtfxI5cD2tQY2GQ/fxUu/TUxmIwDmlWXV0fY1Pfl1SHfQuXdb5CFyqsfxVTo8upXOgWVV5cNo4s4b65jRkPl1YWVt+XZ2adKlcH4XOk5XZEooa/0/gN75eEGM2i4wwAAAABJRU5ErkJggg==",bo="data:image/png;base64,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",Yt=be({name:"answer-analysis",props:{topic:{type:Boolean,default:!0},userResult:{tyep:Boolean,default:!1},answerAnalysis:{type:String,default:""},rightFlagText:{type:String,default:"回答正确"},errorFlagText:{type:String,default:"回答错误"}},setup(s){return()=>A("div",{class:Se.answerAnalysis},[s.topic?A(Be,null,[s.userResult?A("div",{class:[Se.analysisResult,Se.success]},[A(Ve,{name:_o,class:Se.aImg},null),s.rightFlagText]):A("div",{class:[Se.analysisResult,Se.error]},[A(Ve,{name:kn,class:Se.aImg},null),s.errorFlagText])]):"",s.answerAnalysis&&A(Be,null,[A("div",{class:[Se.analysisResult,Se.analysisTitle]},[A(Ve,{name:bo,class:Se.aImg},null),N("答案解析")]),A("div",{class:Se.analysisMessage},[s.answerAnalysis])])])}}),xo="_unitSubject_94r0n_1",So="_unitAnswers_94r0n_11",To="_unitAnswer_94r0n_11",Io="_option_94r0n_23",Eo="_value_94r0n_26",Co="_valueAudio_94r0n_35",Oo="_active_94r0n_38",Do="_answerContent_94r0n_42",Ro="_answerChoice_94r0n_46",Te={unitSubject:xo,unitAnswers:So,unitAnswer:To,option:Io,value:Eo,valueAudio:Co,active:Oo,answerContent:Do,answerChoice:Ro},bn=be({name:"choice-question",props:{value:{type:Array,default:()=>[]},type:{type:String,default:"radio"},index:{type:Number,default:1},data:{type:Object,default:()=>({})},readOnly:{type:Boolean,default:!1},showRate:{tyep:Boolean,default:!1},showAnalysis:{type:Boolean,default:!1},analysis:{type:Object,default:()=>({message:"",topic:!1,userResult:!0})}},emits:["update:value"],setup(s,{emit:i,slots:n}){const t=r=>{if(s.readOnly)return;const u=s.value||[],d={answerId:r.examinationQuestionAnswerId,answer:r.questionAnswer,answerExtra:r.questionExtra};if(s.type==="checkbox"){const c=u.findIndex(p=>p.answerId===r.examinationQuestionAnswerId);c>=0?(u.splice(c,1),i("update:value",[...u])):i("update:value",[...u,d])}else i("update:value",[d])},o=rt(()=>{const r=s.data.answers||[],u=s.value||[];return r.forEach(d=>{const c=u.findIndex(p=>p.answerId===d.examinationQuestionAnswerId);d.checked=c!==-1}),r});return()=>A(Be,null,[A("div",{class:Te.unitSubject},[n.title&&n.title(),A(Vt,{index:s.index,name:s.data.name,showRate:s.showRate,score:s.data.totalScore,answerType:s.type==="radio"?he.RADIO:he.CHECKBOX,extra:{questionDetail:s.data.questionDetail,mediaUrls:s.data.mediaUrls,rightRate:s.data.rightRate}},null),A("div",{class:Te.unitAnswers},[o.value.map((r,u)=>A("div",{class:[Te.unitAnswer,r.checked&&Te.active],onClick:()=>t(r)},[A("div",{class:Te.answerContent},[A("span",{class:Te.option},[Nn[u+1],N(".")]),r.questionAnswerTypeCode===Ae.IMAGE&&A("div",{class:Te.value},[A(Le,{src:r.questionAnswer,fit:"contain",class:"answerTitleImg"},null)]),r.questionAnswerTypeCode===Ae.TXT&&A("div",{class:Te.value},[r.questionAnswer]),r.questionAnswerTypeCode===Ae.AUDIO&&A("div",{class:Te.value},[A(Hn,{src:r.questionAnswer,class:Te.valueAudio},null)])]),s.showRate&&A("div",{class:Te.answerChoice},[r.selectRate||0,N("%人选择")])]))])]),s.showAnalysis&&A(Yt,{answerAnalysis:s.analysis.message,topic:s.analysis.topic,userResult:s.analysis.userResult},null)])}}),Po="_anserList_1yzxl_1",Lo="_status_1yzxl_5",Mo="_aList_1yzxl_28",Bo="_answered_1yzxl_46",Fo="_yes_1yzxl_50",No="_no_1yzxl_54",Fe={anserList:Po,status:Lo,aList:Mo,answered:Bo,yes:Fo,no:No};function jo(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!Mn(s)}const Ho=be({name:"answer-list",props:{value:{type:Array,default:()=>[]},index:{type:Number,default:0},lookType:{type:String,default:"ANSWER"},statusList:{type:Array,default:()=>[{text:"已答",color:"#1CACF1"},{text:"未答",color:"#EAEAEA"}]},answerResult:{type:Array,default:()=>[]}},emits:["select"],setup(s,{emit:i}){const n=t=>{let o=!1;return s.answerResult.forEach(r=>{r.questionId===t&&(o=r.rightFlag)}),o};return()=>{let t;return A("div",{class:Fe.anserList},[s.statusList.length>0&&A("div",{class:Fe.status},[s.statusList.map(o=>A("span",null,[A("i",{style:{backgroundColor:o.color}},null),o.text]))]),A("div",{style:{maxHeight:"40vh",minHeight:"20vh",overflowX:"auto"}},[A(Fn,{class:Fe.aList,columnNum:6,border:!1},jo(t=s.value.map((o,r)=>A(Dt,{onClick:()=>i("select",r)},{default:()=>[A("span",{class:[s.lookType==="ANSWER"&&o.userAnswer&&o.userAnswer.length>0&&Fe.answered,s.lookType==="RESULT"&&(n(o.id)?Fe.yes:Fe.no),s.lookType==="CLICK"&&r===s.index&&Fe.answered,s.lookType!=="CLICK"&&o.showAnalysis?o.analysis.userResult?Fe.yes:Fe.no:""]},[r+1])]})))?t:{default:()=>[t]})])])}}});var un={},ko={get exports(){return un},set exports(s){un=s}};/**!
- * Sortable 1.10.2
- * @author RubaXa <trash@rubaxa.org>
- * @author owenm <owen23355@gmail.com>
- * @license MIT
- */function Rt(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rt=function(i){return typeof i}:Rt=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Rt(s)}function Go(s,i,n){return i in s?Object.defineProperty(s,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):s[i]=n,s}function _e(){return _e=Object.assign||function(s){for(var i=1;i<arguments.length;i++){var n=arguments[i];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(s[t]=n[t])}return s},_e.apply(this,arguments)}function Ye(s){for(var i=1;i<arguments.length;i++){var n=arguments[i]!=null?arguments[i]:{},t=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(t=t.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),t.forEach(function(o){Go(s,o,n[o])})}return s}function Uo(s,i){if(s==null)return{};var n={},t=Object.keys(s),o,r;for(r=0;r<t.length;r++)o=t[r],!(i.indexOf(o)>=0)&&(n[o]=s[o]);return n}function Vo(s,i){if(s==null)return{};var n=Uo(s,i),t,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(s);for(o=0;o<r.length;o++)t=r[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(s,t)&&(n[t]=s[t])}return n}function Yo(s){return Xo(s)||Wo(s)||qo()}function Xo(s){if(Array.isArray(s)){for(var i=0,n=new Array(s.length);i<s.length;i++)n[i]=s[i];return n}}function Wo(s){if(Symbol.iterator in Object(s)||Object.prototype.toString.call(s)==="[object Arguments]")return Array.from(s)}function qo(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var Qo="1.10.2";function Ne(s){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(s)}var je=Ne(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),_t=Ne(/Edge/i),xn=Ne(/firefox/i),cn=Ne(/safari/i)&&!Ne(/chrome/i)&&!Ne(/android/i),Gn=Ne(/iP(ad|od|hone)/i),Ko=Ne(/chrome/i)&&Ne(/android/i),Un={capture:!1,passive:!1};function U(s,i,n){s.addEventListener(i,n,!je&&Un)}function G(s,i,n){s.removeEventListener(i,n,!je&&Un)}function Ft(s,i){if(i){if(i[0]===">"&&(i=i.substring(1)),s)try{if(s.matches)return s.matches(i);if(s.msMatchesSelector)return s.msMatchesSelector(i);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(i)}catch(n){return!1}return!1}}function zo(s){return s.host&&s!==document&&s.host.nodeType?s.host:s.parentNode}function De(s,i,n,t){if(s){n=n||document;do{if(i!=null&&(i[0]===">"?s.parentNode===n&&Ft(s,i):Ft(s,i))||t&&s===n)return s;if(s===n)break}while(s=zo(s))}return null}var Sn=/\s+/g;function $(s,i,n){if(s&&i)if(s.classList)s.classList[n?"add":"remove"](i);else{var t=(" "+s.className+" ").replace(Sn," ").replace(" "+i+" "," ");s.className=(t+(n?" "+i:"")).replace(Sn," ")}}function C(s,i,n){var t=s&&s.style;if(t){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(s,""):s.currentStyle&&(n=s.currentStyle),i===void 0?n:n[i];!(i in t)&&i.indexOf("webkit")===-1&&(i="-webkit-"+i),t[i]=n+(typeof n=="string"?"":"px")}}function Ke(s,i){var n="";if(typeof s=="string")n=s;else do{var t=C(s,"transform");t&&t!=="none"&&(n=t+" "+n)}while(!i&&(s=s.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function Vn(s,i,n){if(s){var t=s.getElementsByTagName(i),o=0,r=t.length;if(n)for(;o<r;o++)n(t[o],o);return t}return[]}function Me(){var s=document.scrollingElement;return s||document.documentElement}function ne(s,i,n,t,o){if(!(!s.getBoundingClientRect&&s!==window)){var r,u,d,c,p,g,e;if(s!==window&&s!==Me()?(r=s.getBoundingClientRect(),u=r.top,d=r.left,c=r.bottom,p=r.right,g=r.height,e=r.width):(u=0,d=0,c=window.innerHeight,p=window.innerWidth,g=window.innerHeight,e=window.innerWidth),(i||n)&&s!==window&&(o=o||s.parentNode,!je))do if(o&&o.getBoundingClientRect&&(C(o,"transform")!=="none"||n&&C(o,"position")!=="static")){var a=o.getBoundingClientRect();u-=a.top+parseInt(C(o,"border-top-width")),d-=a.left+parseInt(C(o,"border-left-width")),c=u+r.height,p=d+r.width;break}while(o=o.parentNode);if(t&&s!==window){var l=Ke(o||s),f=l&&l.a,h=l&&l.d;l&&(u/=h,d/=f,e/=f,g/=h,c=u+g,p=d+e)}return{top:u,left:d,bottom:c,right:p,width:e,height:g}}}function Tn(s,i,n){for(var t=Ue(s,!0),o=ne(s)[i];t;){var r=ne(t)[n],u=void 0;if(n==="top"||n==="left"?u=o>=r:u=o<=r,!u)return t;if(t===Me())break;t=Ue(t,!1)}return!1}function Nt(s,i,n){for(var t=0,o=0,r=s.children;o<r.length;){if(r[o].style.display!=="none"&&r[o]!==P.ghost&&r[o]!==P.dragged&&De(r[o],n.draggable,s,!1)){if(t===i)return r[o];t++}o++}return null}function vn(s,i){for(var n=s.lastElementChild;n&&(n===P.ghost||C(n,"display")==="none"||i&&!Ft(n,i));)n=n.previousElementSibling;return n||null}function te(s,i){var n=0;if(!s||!s.parentNode)return-1;for(;s=s.previousElementSibling;)s.nodeName.toUpperCase()!=="TEMPLATE"&&s!==P.clone&&(!i||Ft(s,i))&&n++;return n}function In(s){var i=0,n=0,t=Me();if(s)do{var o=Ke(s),r=o.a,u=o.d;i+=s.scrollLeft*r,n+=s.scrollTop*u}while(s!==t&&(s=s.parentNode));return[i,n]}function Jo(s,i){for(var n in s)if(s.hasOwnProperty(n)){for(var t in i)if(i.hasOwnProperty(t)&&i[t]===s[n][t])return Number(n)}return-1}function Ue(s,i){if(!s||!s.getBoundingClientRect)return Me();var n=s,t=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=C(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Me();if(t||i)return n;t=!0}}while(n=n.parentNode);return Me()}function Zo(s,i){if(s&&i)for(var n in i)i.hasOwnProperty(n)&&(s[n]=i[n]);return s}function Qt(s,i){return Math.round(s.top)===Math.round(i.top)&&Math.round(s.left)===Math.round(i.left)&&Math.round(s.height)===Math.round(i.height)&&Math.round(s.width)===Math.round(i.width)}var gt;function Yn(s,i){return function(){if(!gt){var n=arguments,t=this;n.length===1?s.call(t,n[0]):s.apply(t,n),gt=setTimeout(function(){gt=void 0},i)}}}function $o(){clearTimeout(gt),gt=void 0}function Xn(s,i,n){s.scrollLeft+=i,s.scrollTop+=n}function gn(s){var i=window.Polymer,n=window.jQuery||window.Zepto;return i&&i.dom?i.dom(s).cloneNode(!0):n?n(s).clone(!0)[0]:s.cloneNode(!0)}function En(s,i){C(s,"position","absolute"),C(s,"top",i.top),C(s,"left",i.left),C(s,"width",i.width),C(s,"height",i.height)}function Kt(s){C(s,"position",""),C(s,"top",""),C(s,"left",""),C(s,"width",""),C(s,"height","")}var fe="Sortable"+new Date().getTime();function ea(){var s=[],i;return{captureAnimationState:function(){if(s=[],!!this.options.animation){var t=[].slice.call(this.el.children);t.forEach(function(o){if(!(C(o,"display")==="none"||o===P.ghost)){s.push({target:o,rect:ne(o)});var r=Ye({},s[s.length-1].rect);if(o.thisAnimationDuration){var u=Ke(o,!0);u&&(r.top-=u.f,r.left-=u.e)}o.fromRect=r}})}},addAnimationState:function(t){s.push(t)},removeAnimationState:function(t){s.splice(Jo(s,{target:t}),1)},animateAll:function(t){var o=this;if(!this.options.animation){clearTimeout(i),typeof t=="function"&&t();return}var r=!1,u=0;s.forEach(function(d){var c=0,p=d.target,g=p.fromRect,e=ne(p),a=p.prevFromRect,l=p.prevToRect,f=d.rect,h=Ke(p,!0);h&&(e.top-=h.f,e.left-=h.e),p.toRect=e,p.thisAnimationDuration&&Qt(a,e)&&!Qt(g,e)&&(f.top-e.top)/(f.left-e.left)===(g.top-e.top)/(g.left-e.left)&&(c=na(f,a,l,o.options)),Qt(e,g)||(p.prevFromRect=g,p.prevToRect=e,c||(c=o.options.animation),o.animate(p,f,e,c)),c&&(r=!0,u=Math.max(u,c),clearTimeout(p.animationResetTimer),p.animationResetTimer=setTimeout(function(){p.animationTime=0,p.prevFromRect=null,p.fromRect=null,p.prevToRect=null,p.thisAnimationDuration=null},c),p.thisAnimationDuration=c)}),clearTimeout(i),r?i=setTimeout(function(){typeof t=="function"&&t()},u):typeof t=="function"&&t(),s=[]},animate:function(t,o,r,u){if(u){C(t,"transition",""),C(t,"transform","");var d=Ke(this.el),c=d&&d.a,p=d&&d.d,g=(o.left-r.left)/(c||1),e=(o.top-r.top)/(p||1);t.animatingX=!!g,t.animatingY=!!e,C(t,"transform","translate3d("+g+"px,"+e+"px,0)"),ta(t),C(t,"transition","transform "+u+"ms"+(this.options.easing?" "+this.options.easing:"")),C(t,"transform","translate3d(0,0,0)"),typeof t.animated=="number"&&clearTimeout(t.animated),t.animated=setTimeout(function(){C(t,"transition",""),C(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},u)}}}}function ta(s){return s.offsetWidth}function na(s,i,n,t){return Math.sqrt(Math.pow(i.top-s.top,2)+Math.pow(i.left-s.left,2))/Math.sqrt(Math.pow(i.top-n.top,2)+Math.pow(i.left-n.left,2))*t.animation}var st=[],zt={initializeByDefault:!0},bt={mount:function(i){for(var n in zt)zt.hasOwnProperty(n)&&!(n in i)&&(i[n]=zt[n]);st.push(i)},pluginEvent:function(i,n,t){var o=this;this.eventCanceled=!1,t.cancel=function(){o.eventCanceled=!0};var r=i+"Global";st.forEach(function(u){n[u.pluginName]&&(n[u.pluginName][r]&&n[u.pluginName][r](Ye({sortable:n},t)),n.options[u.pluginName]&&n[u.pluginName][i]&&n[u.pluginName][i](Ye({sortable:n},t)))})},initializePlugins:function(i,n,t,o){st.forEach(function(d){var c=d.pluginName;if(!(!i.options[c]&&!d.initializeByDefault)){var p=new d(i,n,i.options);p.sortable=i,p.options=i.options,i[c]=p,_e(t,p.defaults)}});for(var r in i.options)if(i.options.hasOwnProperty(r)){var u=this.modifyOption(i,r,i.options[r]);typeof u<"u"&&(i.options[r]=u)}},getEventProperties:function(i,n){var t={};return st.forEach(function(o){typeof o.eventProperties=="function"&&_e(t,o.eventProperties.call(n[o.pluginName],i))}),t},modifyOption:function(i,n,t){var o;return st.forEach(function(r){i[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[n]=="function"&&(o=r.optionListeners[n].call(i[r.pluginName],t))}),o}};function dt(s){var i=s.sortable,n=s.rootEl,t=s.name,o=s.targetEl,r=s.cloneEl,u=s.toEl,d=s.fromEl,c=s.oldIndex,p=s.newIndex,g=s.oldDraggableIndex,e=s.newDraggableIndex,a=s.originalEvent,l=s.putSortable,f=s.extraEventProperties;if(i=i||n&&n[fe],!!i){var h,v=i.options,m="on"+t.charAt(0).toUpperCase()+t.substr(1);window.CustomEvent&&!je&&!_t?h=new CustomEvent(t,{bubbles:!0,cancelable:!0}):(h=document.createEvent("Event"),h.initEvent(t,!0,!0)),h.to=u||n,h.from=d||n,h.item=o||n,h.clone=r,h.oldIndex=c,h.newIndex=p,h.oldDraggableIndex=g,h.newDraggableIndex=e,h.originalEvent=a,h.pullMode=l?l.lastPutMode:void 0;var y=Ye({},f,bt.getEventProperties(t,i));for(var w in y)h[w]=y[w];n&&n.dispatchEvent(h),v[m]&&v[m].call(i,h)}}var pe=function(i,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=t.evt,r=Vo(t,["evt"]);bt.pluginEvent.bind(P)(i,n,Ye({dragEl:T,parentEl:oe,ghostEl:B,rootEl:Z,nextEl:Qe,lastDownEl:Pt,cloneEl:ee,cloneHidden:Ge,dragStarted:pt,putSortable:se,activeSortable:P.active,originalEvent:o,oldIndex:tt,oldDraggableIndex:mt,newIndex:ye,newDraggableIndex:ke,hideGhostForTarget:Kn,unhideGhostForTarget:zn,cloneNowHidden:function(){Ge=!0},cloneNowShown:function(){Ge=!1},dispatchSortableEvent:function(d){de({sortable:n,name:d,originalEvent:o})}},r))};function de(s){dt(Ye({putSortable:se,cloneEl:ee,targetEl:T,rootEl:Z,oldIndex:tt,oldDraggableIndex:mt,newIndex:ye,newDraggableIndex:ke},s))}var T,oe,B,Z,Qe,Pt,ee,Ge,tt,ye,mt,ke,Tt,se,$e=!1,jt=!1,Ht=[],Xe,Ie,Jt,Zt,Cn,On,pt,ze,yt,At=!1,It=!1,Lt,ue,$t=[],fn=!1,kt=[],Xt=typeof document<"u",Et=Gn,Dn=_t||je?"cssFloat":"float",ra=Xt&&!Ko&&!Gn&&"draggable"in document.createElement("div"),Wn=function(){if(Xt){if(je)return!1;var s=document.createElement("x");return s.style.cssText="pointer-events:auto",s.style.pointerEvents==="auto"}}(),qn=function(i,n){var t=C(i),o=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),r=Nt(i,0,n),u=Nt(i,1,n),d=r&&C(r),c=u&&C(u),p=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+ne(r).width,g=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+ne(u).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&d.float&&d.float!=="none"){var e=d.float==="left"?"left":"right";return u&&(c.clear==="both"||c.clear===e)?"vertical":"horizontal"}return r&&(d.display==="block"||d.display==="flex"||d.display==="table"||d.display==="grid"||p>=o&&t[Dn]==="none"||u&&t[Dn]==="none"&&p+g>o)?"vertical":"horizontal"},oa=function(i,n,t){var o=t?i.left:i.top,r=t?i.right:i.bottom,u=t?i.width:i.height,d=t?n.left:n.top,c=t?n.right:n.bottom,p=t?n.width:n.height;return o===d||r===c||o+u/2===d+p/2},aa=function(i,n){var t;return Ht.some(function(o){if(!vn(o)){var r=ne(o),u=o[fe].options.emptyInsertThreshold,d=i>=r.left-u&&i<=r.right+u,c=n>=r.top-u&&n<=r.bottom+u;if(u&&d&&c)return t=o}}),t},Qn=function(i){function n(r,u){return function(d,c,p,g){var e=d.options.group.name&&c.options.group.name&&d.options.group.name===c.options.group.name;if(r==null&&(u||e))return!0;if(r==null||r===!1)return!1;if(u&&r==="clone")return r;if(typeof r=="function")return n(r(d,c,p,g),u)(d,c,p,g);var a=(u?d:c).options.group.name;return r===!0||typeof r=="string"&&r===a||r.join&&r.indexOf(a)>-1}}var t={},o=i.group;(!o||Rt(o)!="object")&&(o={name:o}),t.name=o.name,t.checkPull=n(o.pull,!0),t.checkPut=n(o.put),t.revertClone=o.revertClone,i.group=t},Kn=function(){!Wn&&B&&C(B,"display","none")},zn=function(){!Wn&&B&&C(B,"display","")};Xt&&document.addEventListener("click",function(s){if(jt)return s.preventDefault(),s.stopPropagation&&s.stopPropagation(),s.stopImmediatePropagation&&s.stopImmediatePropagation(),jt=!1,!1},!0);var We=function(i){if(T){i=i.touches?i.touches[0]:i;var n=aa(i.clientX,i.clientY);if(n){var t={};for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o]);t.target=t.rootEl=n,t.preventDefault=void 0,t.stopPropagation=void 0,n[fe]._onDragOver(t)}}},ia=function(i){T&&T.parentNode[fe]._isOutsideThisEl(i.target)};function P(s,i){if(!(s&&s.nodeType&&s.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(s));this.el=s,this.options=i=_e({},i),s[fe]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(s.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return qn(s,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(u,d){u.setData("Text",d.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:P.supportPointer!==!1&&"PointerEvent"in window,emptyInsertThreshold:5};bt.initializePlugins(this,s,n);for(var t in n)!(t in i)&&(i[t]=n[t]);Qn(i);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=i.forceFallback?!1:ra,this.nativeDraggable&&(this.options.touchStartThreshold=1),i.supportPointer?U(s,"pointerdown",this._onTapStart):(U(s,"mousedown",this._onTapStart),U(s,"touchstart",this._onTapStart)),this.nativeDraggable&&(U(s,"dragover",this),U(s,"dragenter",this)),Ht.push(this.el),i.store&&i.store.get&&this.sort(i.store.get(this)||[]),_e(this,ea())}P.prototype={constructor:P,_isOutsideThisEl:function(i){!this.el.contains(i)&&i!==this.el&&(ze=null)},_getDirection:function(i,n){return typeof this.options.direction=="function"?this.options.direction.call(this,i,n,T):this.options.direction},_onTapStart:function(i){if(i.cancelable){var n=this,t=this.el,o=this.options,r=o.preventOnFilter,u=i.type,d=i.touches&&i.touches[0]||i.pointerType&&i.pointerType==="touch"&&i,c=(d||i).target,p=i.target.shadowRoot&&(i.path&&i.path[0]||i.composedPath&&i.composedPath()[0])||c,g=o.filter;if(pa(t),!T&&!(/mousedown|pointerdown/.test(u)&&i.button!==0||o.disabled)&&!p.isContentEditable&&(c=De(c,o.draggable,t,!1),!(c&&c.animated)&&Pt!==c)){if(tt=te(c),mt=te(c,o.draggable),typeof g=="function"){if(g.call(this,i,c,this)){de({sortable:n,rootEl:p,name:"filter",targetEl:c,toEl:t,fromEl:t}),pe("filter",n,{evt:i}),r&&i.cancelable&&i.preventDefault();return}}else if(g&&(g=g.split(",").some(function(e){if(e=De(p,e.trim(),t,!1),e)return de({sortable:n,rootEl:e,name:"filter",targetEl:c,fromEl:t,toEl:t}),pe("filter",n,{evt:i}),!0}),g)){r&&i.cancelable&&i.preventDefault();return}o.handle&&!De(p,o.handle,t,!1)||this._prepareDragStart(i,d,c)}}},_prepareDragStart:function(i,n,t){var o=this,r=o.el,u=o.options,d=r.ownerDocument,c;if(t&&!T&&t.parentNode===r){var p=ne(t);if(Z=r,T=t,oe=T.parentNode,Qe=T.nextSibling,Pt=t,Tt=u.group,P.dragged=T,Xe={target:T,clientX:(n||i).clientX,clientY:(n||i).clientY},Cn=Xe.clientX-p.left,On=Xe.clientY-p.top,this._lastX=(n||i).clientX,this._lastY=(n||i).clientY,T.style["will-change"]="all",c=function(){if(pe("delayEnded",o,{evt:i}),P.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!xn&&o.nativeDraggable&&(T.draggable=!0),o._triggerDragStart(i,n),de({sortable:o,name:"choose",originalEvent:i}),$(T,u.chosenClass,!0)},u.ignore.split(",").forEach(function(g){Vn(T,g.trim(),tn)}),U(d,"dragover",We),U(d,"mousemove",We),U(d,"touchmove",We),U(d,"mouseup",o._onDrop),U(d,"touchend",o._onDrop),U(d,"touchcancel",o._onDrop),xn&&this.nativeDraggable&&(this.options.touchStartThreshold=4,T.draggable=!0),pe("delayStart",this,{evt:i}),u.delay&&(!u.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(_t||je))){if(P.eventCanceled){this._onDrop();return}U(d,"mouseup",o._disableDelayedDrag),U(d,"touchend",o._disableDelayedDrag),U(d,"touchcancel",o._disableDelayedDrag),U(d,"mousemove",o._delayedDragTouchMoveHandler),U(d,"touchmove",o._delayedDragTouchMoveHandler),u.supportPointer&&U(d,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(c,u.delay)}else c()}},_delayedDragTouchMoveHandler:function(i){var n=i.touches?i.touches[0]:i;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){T&&tn(T),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var i=this.el.ownerDocument;G(i,"mouseup",this._disableDelayedDrag),G(i,"touchend",this._disableDelayedDrag),G(i,"touchcancel",this._disableDelayedDrag),G(i,"mousemove",this._delayedDragTouchMoveHandler),G(i,"touchmove",this._delayedDragTouchMoveHandler),G(i,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(i,n){n=n||i.pointerType=="touch"&&i,!this.nativeDraggable||n?this.options.supportPointer?U(document,"pointermove",this._onTouchMove):n?U(document,"touchmove",this._onTouchMove):U(document,"mousemove",this._onTouchMove):(U(T,"dragend",this),U(Z,"dragstart",this._onDragStart));try{document.selection?Mt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(i,n){if($e=!1,Z&&T){pe("dragStarted",this,{evt:n}),this.nativeDraggable&&U(document,"dragover",ia);var t=this.options;!i&&$(T,t.dragClass,!1),$(T,t.ghostClass,!0),P.active=this,i&&this._appendGhost(),de({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Ie){this._lastX=Ie.clientX,this._lastY=Ie.clientY,Kn();for(var i=document.elementFromPoint(Ie.clientX,Ie.clientY),n=i;i&&i.shadowRoot&&(i=i.shadowRoot.elementFromPoint(Ie.clientX,Ie.clientY),i!==n);)n=i;if(T.parentNode[fe]._isOutsideThisEl(i),n)do{if(n[fe]){var t=void 0;if(t=n[fe]._onDragOver({clientX:Ie.clientX,clientY:Ie.clientY,target:i,rootEl:n}),t&&!this.options.dragoverBubble)break}i=n}while(n=n.parentNode);zn()}},_onTouchMove:function(i){if(Xe){var n=this.options,t=n.fallbackTolerance,o=n.fallbackOffset,r=i.touches?i.touches[0]:i,u=B&&Ke(B,!0),d=B&&u&&u.a,c=B&&u&&u.d,p=Et&&ue&&In(ue),g=(r.clientX-Xe.clientX+o.x)/(d||1)+(p?p[0]-$t[0]:0)/(d||1),e=(r.clientY-Xe.clientY+o.y)/(c||1)+(p?p[1]-$t[1]:0)/(c||1);if(!P.active&&!$e){if(t&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<t)return;this._onDragStart(i,!0)}if(B){u?(u.e+=g-(Jt||0),u.f+=e-(Zt||0)):u={a:1,b:0,c:0,d:1,e:g,f:e};var a="matrix(".concat(u.a,",").concat(u.b,",").concat(u.c,",").concat(u.d,",").concat(u.e,",").concat(u.f,")");C(B,"webkitTransform",a),C(B,"mozTransform",a),C(B,"msTransform",a),C(B,"transform",a),Jt=g,Zt=e,Ie=r}i.cancelable&&i.preventDefault()}},_appendGhost:function(){if(!B){var i=this.options.fallbackOnBody?document.body:Z,n=ne(T,!0,Et,!0,i),t=this.options;if(Et){for(ue=i;C(ue,"position")==="static"&&C(ue,"transform")==="none"&&ue!==document;)ue=ue.parentNode;ue!==document.body&&ue!==document.documentElement?(ue===document&&(ue=Me()),n.top+=ue.scrollTop,n.left+=ue.scrollLeft):ue=Me(),$t=In(ue)}B=T.cloneNode(!0),$(B,t.ghostClass,!1),$(B,t.fallbackClass,!0),$(B,t.dragClass,!0),C(B,"transition",""),C(B,"transform",""),C(B,"box-sizing","border-box"),C(B,"margin",0),C(B,"top",n.top),C(B,"left",n.left),C(B,"width",n.width),C(B,"height",n.height),C(B,"opacity","0.8"),C(B,"position",Et?"absolute":"fixed"),C(B,"zIndex","100000"),C(B,"pointerEvents","none"),P.ghost=B,i.appendChild(B),C(B,"transform-origin",Cn/parseInt(B.style.width)*100+"% "+On/parseInt(B.style.height)*100+"%")}},_onDragStart:function(i,n){var t=this,o=i.dataTransfer,r=t.options;if(pe("dragStart",this,{evt:i}),P.eventCanceled){this._onDrop();return}pe("setupClone",this),P.eventCanceled||(ee=gn(T),ee.draggable=!1,ee.style["will-change"]="",this._hideClone(),$(ee,this.options.chosenClass,!1),P.clone=ee),t.cloneId=Mt(function(){pe("clone",t),!P.eventCanceled&&(t.options.removeCloneOnHide||Z.insertBefore(ee,T),t._hideClone(),de({sortable:t,name:"clone"}))}),!n&&$(T,r.dragClass,!0),n?(jt=!0,t._loopId=setInterval(t._emulateDragOver,50)):(G(document,"mouseup",t._onDrop),G(document,"touchend",t._onDrop),G(document,"touchcancel",t._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(t,o,T)),U(document,"drop",t),C(T,"transform","translateZ(0)")),$e=!0,t._dragStartId=Mt(t._dragStarted.bind(t,n,i)),U(document,"selectstart",t),pt=!0,cn&&C(document.body,"user-select","none")},_onDragOver:function(i){var n=this.el,t=i.target,o,r,u,d=this.options,c=d.group,p=P.active,g=Tt===c,e=d.sort,a=se||p,l,f=this,h=!1;if(fn)return;function v(z,ve){pe(z,f,Ye({evt:i,isOwner:g,axis:l?"vertical":"horizontal",revert:u,dragRect:o,targetRect:r,canSort:e,fromSortable:a,target:t,completed:y,onMove:function(ie,x){return en(Z,n,T,o,ie,ne(ie),i,x)},changed:w},ve))}function m(){v("dragOverAnimationCapture"),f.captureAnimationState(),f!==a&&a.captureAnimationState()}function y(z){return v("dragOverCompleted",{insertion:z}),z&&(g?p._hideClone():p._showClone(f),f!==a&&($(T,se?se.options.ghostClass:p.options.ghostClass,!1),$(T,d.ghostClass,!0)),se!==f&&f!==P.active?se=f:f===P.active&&se&&(se=null),a===f&&(f._ignoreWhileAnimating=t),f.animateAll(function(){v("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==a&&(a.animateAll(),a._ignoreWhileAnimating=null)),(t===T&&!T.animated||t===n&&!t.animated)&&(ze=null),!d.dragoverBubble&&!i.rootEl&&t!==document&&(T.parentNode[fe]._isOutsideThisEl(i.target),!z&&We(i)),!d.dragoverBubble&&i.stopPropagation&&i.stopPropagation(),h=!0}function w(){ye=te(T),ke=te(T,d.draggable),de({sortable:f,name:"change",toEl:n,newIndex:ye,newDraggableIndex:ke,originalEvent:i})}if(i.preventDefault!==void 0&&i.cancelable&&i.preventDefault(),t=De(t,d.draggable,n,!0),v("dragOver"),P.eventCanceled)return h;if(T.contains(i.target)||t.animated&&t.animatingX&&t.animatingY||f._ignoreWhileAnimating===t)return y(!1);if(jt=!1,p&&!d.disabled&&(g?e||(u=!Z.contains(T)):se===this||(this.lastPutMode=Tt.checkPull(this,p,T,i))&&c.checkPut(this,p,T,i))){if(l=this._getDirection(i,t)==="vertical",o=ne(T),v("dragOverValid"),P.eventCanceled)return h;if(u)return oe=Z,m(),this._hideClone(),v("revert"),P.eventCanceled||(Qe?Z.insertBefore(T,Qe):Z.appendChild(T)),y(!0);var S=vn(n,d.draggable);if(!S||ua(i,l,this)&&!S.animated){if(S===T)return y(!1);if(S&&n===i.target&&(t=S),t&&(r=ne(t)),en(Z,n,T,o,t,r,i,!!t)!==!1)return m(),n.appendChild(T),oe=n,w(),y(!0)}else if(t.parentNode===n){r=ne(t);var I=0,L,j=T.parentNode!==n,R=!oa(T.animated&&T.toRect||o,t.animated&&t.toRect||r,l),E=l?"top":"left",D=Tn(t,"top","top")||Tn(T,"top","top"),H=D?D.scrollTop:void 0;ze!==t&&(L=r[E],At=!1,It=!R&&d.invertSwap||j),I=ca(i,t,r,l,R?1:d.swapThreshold,d.invertedSwapThreshold==null?d.swapThreshold:d.invertedSwapThreshold,It,ze===t);var K;if(I!==0){var J=te(T);do J-=I,K=oe.children[J];while(K&&(C(K,"display")==="none"||K===B))}if(I===0||K===t)return y(!1);ze=t,yt=I;var q=t.nextElementSibling,Y=!1;Y=I===1;var X=en(Z,n,T,o,t,r,i,Y);if(X!==!1)return(X===1||X===-1)&&(Y=X===1),fn=!0,setTimeout(la,30),m(),Y&&!q?n.appendChild(T):t.parentNode.insertBefore(T,Y?q:t),D&&Xn(D,0,H-D.scrollTop),oe=T.parentNode,L!==void 0&&!It&&(Lt=Math.abs(L-ne(t)[E])),w(),y(!0)}if(n.contains(T))return y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){G(document,"mousemove",this._onTouchMove),G(document,"touchmove",this._onTouchMove),G(document,"pointermove",this._onTouchMove),G(document,"dragover",We),G(document,"mousemove",We),G(document,"touchmove",We)},_offUpEvents:function(){var i=this.el.ownerDocument;G(i,"mouseup",this._onDrop),G(i,"touchend",this._onDrop),G(i,"pointerup",this._onDrop),G(i,"touchcancel",this._onDrop),G(document,"selectstart",this)},_onDrop:function(i){var n=this.el,t=this.options;if(ye=te(T),ke=te(T,t.draggable),pe("drop",this,{evt:i}),oe=T&&T.parentNode,ye=te(T),ke=te(T,t.draggable),P.eventCanceled){this._nulling();return}$e=!1,It=!1,At=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),dn(this.cloneId),dn(this._dragStartId),this.nativeDraggable&&(G(document,"drop",this),G(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),cn&&C(document.body,"user-select",""),C(T,"transform",""),i&&(pt&&(i.cancelable&&i.preventDefault(),!t.dropBubble&&i.stopPropagation()),B&&B.parentNode&&B.parentNode.removeChild(B),(Z===oe||se&&se.lastPutMode!=="clone")&&ee&&ee.parentNode&&ee.parentNode.removeChild(ee),T&&(this.nativeDraggable&&G(T,"dragend",this),tn(T),T.style["will-change"]="",pt&&!$e&&$(T,se?se.options.ghostClass:this.options.ghostClass,!1),$(T,this.options.chosenClass,!1),de({sortable:this,name:"unchoose",toEl:oe,newIndex:null,newDraggableIndex:null,originalEvent:i}),Z!==oe?(ye>=0&&(de({rootEl:oe,name:"add",toEl:oe,fromEl:Z,originalEvent:i}),de({sortable:this,name:"remove",toEl:oe,originalEvent:i}),de({rootEl:oe,name:"sort",toEl:oe,fromEl:Z,originalEvent:i}),de({sortable:this,name:"sort",toEl:oe,originalEvent:i})),se&&se.save()):ye!==tt&&ye>=0&&(de({sortable:this,name:"update",toEl:oe,originalEvent:i}),de({sortable:this,name:"sort",toEl:oe,originalEvent:i})),P.active&&((ye==null||ye===-1)&&(ye=tt,ke=mt),de({sortable:this,name:"end",toEl:oe,originalEvent:i}),this.save()))),this._nulling()},_nulling:function(){pe("nulling",this),Z=T=oe=B=Qe=ee=Pt=Ge=Xe=Ie=pt=ye=ke=tt=mt=ze=yt=se=Tt=P.dragged=P.ghost=P.clone=P.active=null,kt.forEach(function(i){i.checked=!0}),kt.length=Jt=Zt=0},handleEvent:function(i){switch(i.type){case"drop":case"dragend":this._onDrop(i);break;case"dragenter":case"dragover":T&&(this._onDragOver(i),sa(i));break;case"selectstart":i.preventDefault();break}},toArray:function(){for(var i=[],n,t=this.el.children,o=0,r=t.length,u=this.options;o<r;o++)n=t[o],De(n,u.draggable,this.el,!1)&&i.push(n.getAttribute(u.dataIdAttr)||da(n));return i},sort:function(i){var n={},t=this.el;this.toArray().forEach(function(o,r){var u=t.children[r];De(u,this.options.draggable,t,!1)&&(n[o]=u)},this),i.forEach(function(o){n[o]&&(t.removeChild(n[o]),t.appendChild(n[o]))})},save:function(){var i=this.options.store;i&&i.set&&i.set(this)},closest:function(i,n){return De(i,n||this.options.draggable,this.el,!1)},option:function(i,n){var t=this.options;if(n===void 0)return t[i];var o=bt.modifyOption(this,i,n);typeof o<"u"?t[i]=o:t[i]=n,i==="group"&&Qn(t)},destroy:function(){pe("destroy",this);var i=this.el;i[fe]=null,G(i,"mousedown",this._onTapStart),G(i,"touchstart",this._onTapStart),G(i,"pointerdown",this._onTapStart),this.nativeDraggable&&(G(i,"dragover",this),G(i,"dragenter",this)),Array.prototype.forEach.call(i.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ht.splice(Ht.indexOf(this.el),1),this.el=i=null},_hideClone:function(){if(!Ge){if(pe("hideClone",this),P.eventCanceled)return;C(ee,"display","none"),this.options.removeCloneOnHide&&ee.parentNode&&ee.parentNode.removeChild(ee),Ge=!0}},_showClone:function(i){if(i.lastPutMode!=="clone"){this._hideClone();return}if(Ge){if(pe("showClone",this),P.eventCanceled)return;Z.contains(T)&&!this.options.group.revertClone?Z.insertBefore(ee,T):Qe?Z.insertBefore(ee,Qe):Z.appendChild(ee),this.options.group.revertClone&&this.animate(T,ee),C(ee,"display",""),Ge=!1}}};function sa(s){s.dataTransfer&&(s.dataTransfer.dropEffect="move"),s.cancelable&&s.preventDefault()}function en(s,i,n,t,o,r,u,d){var c,p=s[fe],g=p.options.onMove,e;return window.CustomEvent&&!je&&!_t?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=i,c.from=s,c.dragged=n,c.draggedRect=t,c.related=o||i,c.relatedRect=r||ne(i),c.willInsertAfter=d,c.originalEvent=u,s.dispatchEvent(c),g&&(e=g.call(p,c,u)),e}function tn(s){s.draggable=!1}function la(){fn=!1}function ua(s,i,n){var t=ne(vn(n.el,n.options.draggable)),o=10;return i?s.clientX>t.right+o||s.clientX<=t.right&&s.clientY>t.bottom&&s.clientX>=t.left:s.clientX>t.right&&s.clientY>t.top||s.clientX<=t.right&&s.clientY>t.bottom+o}function ca(s,i,n,t,o,r,u,d){var c=t?s.clientY:s.clientX,p=t?n.height:n.width,g=t?n.top:n.left,e=t?n.bottom:n.right,a=!1;if(!u){if(d&&Lt<p*o){if(!At&&(yt===1?c>g+p*r/2:c<e-p*r/2)&&(At=!0),At)a=!0;else if(yt===1?c<g+Lt:c>e-Lt)return-yt}else if(c>g+p*(1-o)/2&&c<e-p*(1-o)/2)return fa(i)}return a=a||u,a&&(c<g+p*r/2||c>e-p*r/2)?c>g+p/2?1:-1:0}function fa(s){return te(T)<te(s)?1:-1}function da(s){for(var i=s.tagName+s.className+s.src+s.href+s.textContent,n=i.length,t=0;n--;)t+=i.charCodeAt(n);return t.toString(36)}function pa(s){kt.length=0;for(var i=s.getElementsByTagName("input"),n=i.length;n--;){var t=i[n];t.checked&&kt.push(t)}}function Mt(s){return setTimeout(s,0)}function dn(s){return clearTimeout(s)}Xt&&U(document,"touchmove",function(s){(P.active||$e)&&s.cancelable&&s.preventDefault()});P.utils={on:U,off:G,css:C,find:Vn,is:function(i,n){return!!De(i,n,i,!1)},extend:Zo,throttle:Yn,closest:De,toggleClass:$,clone:gn,index:te,nextTick:Mt,cancelNextTick:dn,detectDirection:qn,getChild:Nt};P.get=function(s){return s[fe]};P.mount=function(){for(var s=arguments.length,i=new Array(s),n=0;n<s;n++)i[n]=arguments[n];i[0].constructor===Array&&(i=i[0]),i.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(P.utils=Ye({},P.utils,t.utils)),bt.mount(t)})};P.create=function(s,i){return new P(s,i)};P.version=Qo;var ae=[],ht,pn,hn=!1,nn,rn,Gt,vt;function ha(){function s(){this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this))}return s.prototype={dragStarted:function(n){var t=n.originalEvent;this.sortable.nativeDraggable?U(document,"dragover",this._handleAutoScroll):this.options.supportPointer?U(document,"pointermove",this._handleFallbackAutoScroll):t.touches?U(document,"touchmove",this._handleFallbackAutoScroll):U(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var t=n.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?G(document,"dragover",this._handleAutoScroll):(G(document,"pointermove",this._handleFallbackAutoScroll),G(document,"touchmove",this._handleFallbackAutoScroll),G(document,"mousemove",this._handleFallbackAutoScroll)),Rn(),Bt(),$o()},nulling:function(){Gt=pn=ht=hn=vt=nn=rn=null,ae.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,t){var o=this,r=(n.touches?n.touches[0]:n).clientX,u=(n.touches?n.touches[0]:n).clientY,d=document.elementFromPoint(r,u);if(Gt=n,t||_t||je||cn){on(n,this.options,d,t);var c=Ue(d,!0);hn&&(!vt||r!==nn||u!==rn)&&(vt&&Rn(),vt=setInterval(function(){var p=Ue(document.elementFromPoint(r,u),!0);p!==c&&(c=p,Bt()),on(n,o.options,p,t)},10),nn=r,rn=u)}else{if(!this.options.bubbleScroll||Ue(d,!0)===Me()){Bt();return}on(n,this.options,Ue(d,!1),!1)}}},_e(s,{pluginName:"scroll",initializeByDefault:!0})}function Bt(){ae.forEach(function(s){clearInterval(s.pid)}),ae=[]}function Rn(){clearInterval(vt)}var on=Yn(function(s,i,n,t){if(i.scroll){var o=(s.touches?s.touches[0]:s).clientX,r=(s.touches?s.touches[0]:s).clientY,u=i.scrollSensitivity,d=i.scrollSpeed,c=Me(),p=!1,g;pn!==n&&(pn=n,Bt(),ht=i.scroll,g=i.scrollFn,ht===!0&&(ht=Ue(n,!0)));var e=0,a=ht;do{var l=a,f=ne(l),h=f.top,v=f.bottom,m=f.left,y=f.right,w=f.width,S=f.height,I=void 0,L=void 0,j=l.scrollWidth,R=l.scrollHeight,E=C(l),D=l.scrollLeft,H=l.scrollTop;l===c?(I=w<j&&(E.overflowX==="auto"||E.overflowX==="scroll"||E.overflowX==="visible"),L=S<R&&(E.overflowY==="auto"||E.overflowY==="scroll"||E.overflowY==="visible")):(I=w<j&&(E.overflowX==="auto"||E.overflowX==="scroll"),L=S<R&&(E.overflowY==="auto"||E.overflowY==="scroll"));var K=I&&(Math.abs(y-o)<=u&&D+w<j)-(Math.abs(m-o)<=u&&!!D),J=L&&(Math.abs(v-r)<=u&&H+S<R)-(Math.abs(h-r)<=u&&!!H);if(!ae[e])for(var q=0;q<=e;q++)ae[q]||(ae[q]={});(ae[e].vx!=K||ae[e].vy!=J||ae[e].el!==l)&&(ae[e].el=l,ae[e].vx=K,ae[e].vy=J,clearInterval(ae[e].pid),(K!=0||J!=0)&&(p=!0,ae[e].pid=setInterval(function(){t&&this.layer===0&&P.active._onTouchMove(Gt);var Y=ae[this.layer].vy?ae[this.layer].vy*d:0,X=ae[this.layer].vx?ae[this.layer].vx*d:0;typeof g=="function"&&g.call(P.dragged.parentNode[fe],X,Y,s,Gt,ae[this.layer].el)!=="continue"||Xn(ae[this.layer].el,X,Y)}.bind({layer:e}),24))),e++}while(i.bubbleScroll&&a!==c&&(a=Ue(a,!1)));hn=p}},30),Jn=function(i){var n=i.originalEvent,t=i.putSortable,o=i.dragEl,r=i.activeSortable,u=i.dispatchSortableEvent,d=i.hideGhostForTarget,c=i.unhideGhostForTarget;if(n){var p=t||r;d();var g=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,e=document.elementFromPoint(g.clientX,g.clientY);c(),p&&!p.el.contains(e)&&(u("spill"),this.onSpill({dragEl:o,putSortable:t}))}};function mn(){}mn.prototype={startIndex:null,dragStart:function(i){var n=i.oldDraggableIndex;this.startIndex=n},onSpill:function(i){var n=i.dragEl,t=i.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var o=Nt(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),t&&t.animateAll()},drop:Jn};_e(mn,{pluginName:"revertOnSpill"});function yn(){}yn.prototype={onSpill:function(i){var n=i.dragEl,t=i.putSortable,o=t||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:Jn};_e(yn,{pluginName:"removeOnSpill"});var we;function va(){function s(){this.defaults={swapClass:"sortable-swap-highlight"}}return s.prototype={dragStart:function(n){var t=n.dragEl;we=t},dragOverValid:function(n){var t=n.completed,o=n.target,r=n.onMove,u=n.activeSortable,d=n.changed,c=n.cancel;if(u.options.swap){var p=this.sortable.el,g=this.options;if(o&&o!==p){var e=we;r(o)!==!1?($(o,g.swapClass,!0),we=o):we=null,e&&e!==we&&$(e,g.swapClass,!1)}d(),t(!0),c()}},drop:function(n){var t=n.activeSortable,o=n.putSortable,r=n.dragEl,u=o||this.sortable,d=this.options;we&&$(we,d.swapClass,!1),we&&(d.swap||o&&o.options.swap)&&r!==we&&(u.captureAnimationState(),u!==t&&t.captureAnimationState(),ga(r,we),u.animateAll(),u!==t&&t.animateAll())},nulling:function(){we=null}},_e(s,{pluginName:"swap",eventProperties:function(){return{swapItem:we}}})}function ga(s,i){var n=s.parentNode,t=i.parentNode,o,r;!n||!t||n.isEqualNode(i)||t.isEqualNode(s)||(o=te(s),r=te(i),n.isEqualNode(t)&&o<r&&r++,n.insertBefore(i,n.children[o]),t.insertBefore(s,t.children[r]))}var M=[],me=[],lt,Ee,ut=!1,ge=!1,Je=!1,Q,ct,Ct;function ma(){function s(i){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));i.options.supportPointer?U(document,"pointerup",this._deselectMultiDrag):(U(document,"mouseup",this._deselectMultiDrag),U(document,"touchend",this._deselectMultiDrag)),U(document,"keydown",this._checkKeyDown),U(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(o,r){var u="";M.length&&Ee===i?M.forEach(function(d,c){u+=(c?", ":"")+d.textContent}):u=r.textContent,o.setData("Text",u)}}}return s.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var t=n.dragEl;Q=t},delayEnded:function(){this.isMultiDrag=~M.indexOf(Q)},setupClone:function(n){var t=n.sortable,o=n.cancel;if(this.isMultiDrag){for(var r=0;r<M.length;r++)me.push(gn(M[r])),me[r].sortableIndex=M[r].sortableIndex,me[r].draggable=!1,me[r].style["will-change"]="",$(me[r],this.options.selectedClass,!1),M[r]===Q&&$(me[r],this.options.chosenClass,!1);t._hideClone(),o()}},clone:function(n){var t=n.sortable,o=n.rootEl,r=n.dispatchSortableEvent,u=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||M.length&&Ee===t&&(Pn(!0,o),r("clone"),u()))},showClone:function(n){var t=n.cloneNowShown,o=n.rootEl,r=n.cancel;this.isMultiDrag&&(Pn(!1,o),me.forEach(function(u){C(u,"display","")}),t(),Ct=!1,r())},hideClone:function(n){var t=this;n.sortable;var o=n.cloneNowHidden,r=n.cancel;this.isMultiDrag&&(me.forEach(function(u){C(u,"display","none"),t.options.removeCloneOnHide&&u.parentNode&&u.parentNode.removeChild(u)}),o(),Ct=!0,r())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Ee&&Ee.multiDrag._deselectMultiDrag(),M.forEach(function(t){t.sortableIndex=te(t)}),M=M.sort(function(t,o){return t.sortableIndex-o.sortableIndex}),Je=!0},dragStarted:function(n){var t=this,o=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(o.captureAnimationState(),this.options.animation)){M.forEach(function(u){u!==Q&&C(u,"position","absolute")});var r=ne(Q,!1,!0,!0);M.forEach(function(u){u!==Q&&En(u,r)}),ge=!0,ut=!0}o.animateAll(function(){ge=!1,ut=!1,t.options.animation&&M.forEach(function(u){Kt(u)}),t.options.sort&&Ot()})}},dragOver:function(n){var t=n.target,o=n.completed,r=n.cancel;ge&&~M.indexOf(t)&&(o(!1),r())},revert:function(n){var t=n.fromSortable,o=n.rootEl,r=n.sortable,u=n.dragRect;M.length>1&&(M.forEach(function(d){r.addAnimationState({target:d,rect:ge?ne(d):u}),Kt(d),d.fromRect=u,t.removeAnimationState(d)}),ge=!1,ya(!this.options.removeCloneOnHide,o))},dragOverCompleted:function(n){var t=n.sortable,o=n.isOwner,r=n.insertion,u=n.activeSortable,d=n.parentEl,c=n.putSortable,p=this.options;if(r){if(o&&u._hideClone(),ut=!1,p.animation&&M.length>1&&(ge||!o&&!u.options.sort&&!c)){var g=ne(Q,!1,!0,!0);M.forEach(function(a){a!==Q&&(En(a,g),d.appendChild(a))}),ge=!0}if(!o)if(ge||Ot(),M.length>1){var e=Ct;u._showClone(t),u.options.animation&&!Ct&&e&&me.forEach(function(a){u.addAnimationState({target:a,rect:ct}),a.fromRect=ct,a.thisAnimationDuration=null})}else u._showClone(t)}},dragOverAnimationCapture:function(n){var t=n.dragRect,o=n.isOwner,r=n.activeSortable;if(M.forEach(function(d){d.thisAnimationDuration=null}),r.options.animation&&!o&&r.multiDrag.isMultiDrag){ct=_e({},t);var u=Ke(Q,!0);ct.top-=u.f,ct.left-=u.e}},dragOverAnimationComplete:function(){ge&&(ge=!1,Ot())},drop:function(n){var t=n.originalEvent,o=n.rootEl,r=n.parentEl,u=n.sortable,d=n.dispatchSortableEvent,c=n.oldIndex,p=n.putSortable,g=p||this.sortable;if(t){var e=this.options,a=r.children;if(!Je)if(e.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),$(Q,e.selectedClass,!~M.indexOf(Q)),~M.indexOf(Q))M.splice(M.indexOf(Q),1),lt=null,dt({sortable:u,rootEl:o,name:"deselect",targetEl:Q,originalEvt:t});else{if(M.push(Q),dt({sortable:u,rootEl:o,name:"select",targetEl:Q,originalEvt:t}),t.shiftKey&<&&u.el.contains(lt)){var l=te(lt),f=te(Q);if(~l&&~f&&l!==f){var h,v;for(f>l?(v=l,h=f):(v=f,h=l+1);v<h;v++)~M.indexOf(a[v])||($(a[v],e.selectedClass,!0),M.push(a[v]),dt({sortable:u,rootEl:o,name:"select",targetEl:a[v],originalEvt:t}))}}else lt=Q;Ee=g}if(Je&&this.isMultiDrag){if((r[fe].options.sort||r!==o)&&M.length>1){var m=ne(Q),y=te(Q,":not(."+this.options.selectedClass+")");if(!ut&&e.animation&&(Q.thisAnimationDuration=null),g.captureAnimationState(),!ut&&(e.animation&&(Q.fromRect=m,M.forEach(function(S){if(S.thisAnimationDuration=null,S!==Q){var I=ge?ne(S):m;S.fromRect=I,g.addAnimationState({target:S,rect:I})}})),Ot(),M.forEach(function(S){a[y]?r.insertBefore(S,a[y]):r.appendChild(S),y++}),c===te(Q))){var w=!1;M.forEach(function(S){if(S.sortableIndex!==te(S)){w=!0;return}}),w&&d("update")}M.forEach(function(S){Kt(S)}),g.animateAll()}Ee=g}(o===r||p&&p.lastPutMode!=="clone")&&me.forEach(function(S){S.parentNode&&S.parentNode.removeChild(S)})}},nullingGlobal:function(){this.isMultiDrag=Je=!1,me.length=0},destroyGlobal:function(){this._deselectMultiDrag(),G(document,"pointerup",this._deselectMultiDrag),G(document,"mouseup",this._deselectMultiDrag),G(document,"touchend",this._deselectMultiDrag),G(document,"keydown",this._checkKeyDown),G(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof Je<"u"&&Je)&&Ee===this.sortable&&!(n&&De(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;M.length;){var t=M[0];$(t,this.options.selectedClass,!1),M.shift(),dt({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},_e(s,{pluginName:"multiDrag",utils:{select:function(n){var t=n.parentNode[fe];!t||!t.options.multiDrag||~M.indexOf(n)||(Ee&&Ee!==t&&(Ee.multiDrag._deselectMultiDrag(),Ee=t),$(n,t.options.selectedClass,!0),M.push(n))},deselect:function(n){var t=n.parentNode[fe],o=M.indexOf(n);!t||!t.options.multiDrag||!~o||($(n,t.options.selectedClass,!1),M.splice(o,1))}},eventProperties:function(){var n=this,t=[],o=[];return M.forEach(function(r){t.push({multiDragElement:r,index:r.sortableIndex});var u;ge&&r!==Q?u=-1:ge?u=te(r,":not(."+n.options.selectedClass+")"):u=te(r),o.push({multiDragElement:r,index:u})}),{items:Yo(M),clones:[].concat(me),oldIndicies:t,newIndicies:o}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function ya(s,i){M.forEach(function(n,t){var o=i.children[n.sortableIndex+(s?Number(t):0)];o?i.insertBefore(n,o):i.appendChild(n)})}function Pn(s,i){me.forEach(function(n,t){var o=i.children[n.sortableIndex+(s?Number(t):0)];o?i.insertBefore(n,o):i.appendChild(n)})}function Ot(){M.forEach(function(s){s!==Q&&s.parentNode&&s.parentNode.removeChild(s)})}P.mount(new ha);P.mount(yn,mn);const Aa=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:ma,Sortable:P,Swap:va,default:P},Symbol.toStringTag,{value:"Module"})),wa=cr(Aa);(function(s,i){(function(t,o){s.exports=o(wa)})(typeof self<"u"?self:Ze,function(n){return function(t){var o={};function r(u){if(o[u])return o[u].exports;var d=o[u]={i:u,l:!1,exports:{}};return t[u].call(d.exports,d,d.exports,r),d.l=!0,d.exports}return r.m=t,r.c=o,r.d=function(u,d,c){r.o(u,d)||Object.defineProperty(u,d,{enumerable:!0,get:c})},r.r=function(u){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})},r.t=function(u,d){if(d&1&&(u=r(u)),d&8||d&4&&typeof u=="object"&&u&&u.__esModule)return u;var c=Object.create(null);if(r.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:u}),d&2&&typeof u!="string")for(var p in u)r.d(c,p,function(g){return u[g]}.bind(null,p));return c},r.n=function(u){var d=u&&u.__esModule?function(){return u.default}:function(){return u};return r.d(d,"a",d),d},r.o=function(u,d){return Object.prototype.hasOwnProperty.call(u,d)},r.p="",r(r.s="fb15")}({"01f9":function(t,o,r){var u=r("2d00"),d=r("5ca1"),c=r("2aba"),p=r("32e9"),g=r("84f2"),e=r("41a0"),a=r("7f20"),l=r("38fd"),f=r("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),v="@@iterator",m="keys",y="values",w=function(){return this};t.exports=function(S,I,L,j,R,E,D){e(L,I,j);var H=function(b){if(!h&&b in Y)return Y[b];switch(b){case m:return function(){return new L(this,b)};case y:return function(){return new L(this,b)}}return function(){return new L(this,b)}},K=I+" Iterator",J=R==y,q=!1,Y=S.prototype,X=Y[f]||Y[v]||R&&Y[R],z=X||H(R),ve=R?J?H("entries"):z:void 0,le=I=="Array"&&Y.entries||X,ie,x,_;if(le&&(_=l(le.call(new S)),_!==Object.prototype&&_.next&&(a(_,K,!0),!u&&typeof _[f]!="function"&&p(_,f,w))),J&&X&&X.name!==y&&(q=!0,z=function(){return X.call(this)}),(!u||D)&&(h||q||!Y[f])&&p(Y,f,z),g[I]=z,g[K]=w,R)if(ie={values:J?z:H(y),keys:E?z:H(m),entries:ve},D)for(x in ie)x in Y||c(Y,x,ie[x]);else d(d.P+d.F*(h||q),I,ie);return ie}},"02f4":function(t,o,r){var u=r("4588"),d=r("be13");t.exports=function(c){return function(p,g){var e=String(d(p)),a=u(g),l=e.length,f,h;return a<0||a>=l?c?"":void 0:(f=e.charCodeAt(a),f<55296||f>56319||a+1===l||(h=e.charCodeAt(a+1))<56320||h>57343?c?e.charAt(a):f:c?e.slice(a,a+2):(f-55296<<10)+(h-56320)+65536)}}},"0390":function(t,o,r){var u=r("02f4")(!0);t.exports=function(d,c,p){return c+(p?u(d,c).length:1)}},"0bfb":function(t,o,r){var u=r("cb7c");t.exports=function(){var d=u(this),c="";return d.global&&(c+="g"),d.ignoreCase&&(c+="i"),d.multiline&&(c+="m"),d.unicode&&(c+="u"),d.sticky&&(c+="y"),c}},"0d58":function(t,o,r){var u=r("ce10"),d=r("e11e");t.exports=Object.keys||function(p){return u(p,d)}},1495:function(t,o,r){var u=r("86cc"),d=r("cb7c"),c=r("0d58");t.exports=r("9e1e")?Object.defineProperties:function(g,e){d(g);for(var a=c(e),l=a.length,f=0,h;l>f;)u.f(g,h=a[f++],e[h]);return g}},"214f":function(t,o,r){r("b0c5");var u=r("2aba"),d=r("32e9"),c=r("79e5"),p=r("be13"),g=r("2b4c"),e=r("520a"),a=g("species"),l=!c(function(){var h=/./;return h.exec=function(){var v=[];return v.groups={a:"7"},v},"".replace(h,"$<a>")!=="7"}),f=function(){var h=/(?:)/,v=h.exec;h.exec=function(){return v.apply(this,arguments)};var m="ab".split(h);return m.length===2&&m[0]==="a"&&m[1]==="b"}();t.exports=function(h,v,m){var y=g(h),w=!c(function(){var E={};return E[y]=function(){return 7},""[h](E)!=7}),S=w?!c(function(){var E=!1,D=/a/;return D.exec=function(){return E=!0,null},h==="split"&&(D.constructor={},D.constructor[a]=function(){return D}),D[y](""),!E}):void 0;if(!w||!S||h==="replace"&&!l||h==="split"&&!f){var I=/./[y],L=m(p,y,""[h],function(D,H,K,J,q){return H.exec===e?w&&!q?{done:!0,value:I.call(H,K,J)}:{done:!0,value:D.call(K,H,J)}:{done:!1}}),j=L[0],R=L[1];u(String.prototype,h,j),d(RegExp.prototype,y,v==2?function(E,D){return R.call(E,this,D)}:function(E){return R.call(E,this)})}}},"230e":function(t,o,r){var u=r("d3f4"),d=r("7726").document,c=u(d)&&u(d.createElement);t.exports=function(p){return c?d.createElement(p):{}}},"23c6":function(t,o,r){var u=r("2d95"),d=r("2b4c")("toStringTag"),c=u(function(){return arguments}())=="Arguments",p=function(g,e){try{return g[e]}catch(a){}};t.exports=function(g){var e,a,l;return g===void 0?"Undefined":g===null?"Null":typeof(a=p(e=Object(g),d))=="string"?a:c?u(e):(l=u(e))=="Object"&&typeof e.callee=="function"?"Arguments":l}},2621:function(t,o){o.f=Object.getOwnPropertySymbols},"2aba":function(t,o,r){var u=r("7726"),d=r("32e9"),c=r("69a8"),p=r("ca5a")("src"),g=r("fa5b"),e="toString",a=(""+g).split(e);r("8378").inspectSource=function(l){return g.call(l)},(t.exports=function(l,f,h,v){var m=typeof h=="function";m&&(c(h,"name")||d(h,"name",f)),l[f]!==h&&(m&&(c(h,p)||d(h,p,l[f]?""+l[f]:a.join(String(f)))),l===u?l[f]=h:v?l[f]?l[f]=h:d(l,f,h):(delete l[f],d(l,f,h)))})(Function.prototype,e,function(){return typeof this=="function"&&this[p]||g.call(this)})},"2aeb":function(t,o,r){var u=r("cb7c"),d=r("1495"),c=r("e11e"),p=r("613b")("IE_PROTO"),g=function(){},e="prototype",a=function(){var l=r("230e")("iframe"),f=c.length,h="<",v=">",m;for(l.style.display="none",r("fab2").appendChild(l),l.src="javascript:",m=l.contentWindow.document,m.open(),m.write(h+"script"+v+"document.F=Object"+h+"/script"+v),m.close(),a=m.F;f--;)delete a[e][c[f]];return a()};t.exports=Object.create||function(f,h){var v;return f!==null?(g[e]=u(f),v=new g,g[e]=null,v[p]=f):v=a(),h===void 0?v:d(v,h)}},"2b4c":function(t,o,r){var u=r("5537")("wks"),d=r("ca5a"),c=r("7726").Symbol,p=typeof c=="function",g=t.exports=function(e){return u[e]||(u[e]=p&&c[e]||(p?c:d)("Symbol."+e))};g.store=u},"2d00":function(t,o){t.exports=!1},"2d95":function(t,o){var r={}.toString;t.exports=function(u){return r.call(u).slice(8,-1)}},"2fdb":function(t,o,r){var u=r("5ca1"),d=r("d2c8"),c="includes";u(u.P+u.F*r("5147")(c),"String",{includes:function(g){return!!~d(this,g,c).indexOf(g,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,o,r){var u=r("86cc"),d=r("4630");t.exports=r("9e1e")?function(c,p,g){return u.f(c,p,d(1,g))}:function(c,p,g){return c[p]=g,c}},"38fd":function(t,o,r){var u=r("69a8"),d=r("4bf8"),c=r("613b")("IE_PROTO"),p=Object.prototype;t.exports=Object.getPrototypeOf||function(g){return g=d(g),u(g,c)?g[c]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?p:null}},"41a0":function(t,o,r){var u=r("2aeb"),d=r("4630"),c=r("7f20"),p={};r("32e9")(p,r("2b4c")("iterator"),function(){return this}),t.exports=function(g,e,a){g.prototype=u(p,{next:d(1,a)}),c(g,e+" Iterator")}},"456d":function(t,o,r){var u=r("4bf8"),d=r("0d58");r("5eda")("keys",function(){return function(p){return d(u(p))}})},4588:function(t,o){var r=Math.ceil,u=Math.floor;t.exports=function(d){return isNaN(d=+d)?0:(d>0?u:r)(d)}},4630:function(t,o){t.exports=function(r,u){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:u}}},"4bf8":function(t,o,r){var u=r("be13");t.exports=function(d){return Object(u(d))}},5147:function(t,o,r){var u=r("2b4c")("match");t.exports=function(d){var c=/./;try{"/./"[d](c)}catch(p){try{return c[u]=!1,!"/./"[d](c)}catch(g){}}return!0}},"520a":function(t,o,r){var u=r("0bfb"),d=RegExp.prototype.exec,c=String.prototype.replace,p=d,g="lastIndex",e=function(){var f=/a/,h=/b*/g;return d.call(f,"a"),d.call(h,"a"),f[g]!==0||h[g]!==0}(),a=/()??/.exec("")[1]!==void 0,l=e||a;l&&(p=function(h){var v=this,m,y,w,S;return a&&(y=new RegExp("^"+v.source+"$(?!\\s)",u.call(v))),e&&(m=v[g]),w=d.call(v,h),e&&w&&(v[g]=v.global?w.index+w[0].length:m),a&&w&&w.length>1&&c.call(w[0],y,function(){for(S=1;S<arguments.length-2;S++)arguments[S]===void 0&&(w[S]=void 0)}),w}),t.exports=p},"52a7":function(t,o){o.f={}.propertyIsEnumerable},5537:function(t,o,r){var u=r("8378"),d=r("7726"),c="__core-js_shared__",p=d[c]||(d[c]={});(t.exports=function(g,e){return p[g]||(p[g]=e!==void 0?e:{})})("versions",[]).push({version:u.version,mode:r("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,o,r){var u=r("7726"),d=r("8378"),c=r("32e9"),p=r("2aba"),g=r("9b43"),e="prototype",a=function(l,f,h){var v=l&a.F,m=l&a.G,y=l&a.S,w=l&a.P,S=l&a.B,I=m?u:y?u[f]||(u[f]={}):(u[f]||{})[e],L=m?d:d[f]||(d[f]={}),j=L[e]||(L[e]={}),R,E,D,H;m&&(h=f);for(R in h)E=!v&&I&&I[R]!==void 0,D=(E?I:h)[R],H=S&&E?g(D,u):w&&typeof D=="function"?g(Function.call,D):D,I&&p(I,R,D,l&a.U),L[R]!=D&&c(L,R,H),w&&j[R]!=D&&(j[R]=D)};u.core=d,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},"5eda":function(t,o,r){var u=r("5ca1"),d=r("8378"),c=r("79e5");t.exports=function(p,g){var e=(d.Object||{})[p]||Object[p],a={};a[p]=g(e),u(u.S+u.F*c(function(){e(1)}),"Object",a)}},"5f1b":function(t,o,r){var u=r("23c6"),d=RegExp.prototype.exec;t.exports=function(c,p){var g=c.exec;if(typeof g=="function"){var e=g.call(c,p);if(typeof e!="object")throw new TypeError("RegExp exec method returned something other than an Object or null");return e}if(u(c)!=="RegExp")throw new TypeError("RegExp#exec called on incompatible receiver");return d.call(c,p)}},"613b":function(t,o,r){var u=r("5537")("keys"),d=r("ca5a");t.exports=function(c){return u[c]||(u[c]=d(c))}},"626a":function(t,o,r){var u=r("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(d){return u(d)=="String"?d.split(""):Object(d)}},6762:function(t,o,r){var u=r("5ca1"),d=r("c366")(!0);u(u.P,"Array",{includes:function(p){return d(this,p,arguments.length>1?arguments[1]:void 0)}}),r("9c6c")("includes")},6821:function(t,o,r){var u=r("626a"),d=r("be13");t.exports=function(c){return u(d(c))}},"69a8":function(t,o){var r={}.hasOwnProperty;t.exports=function(u,d){return r.call(u,d)}},"6a99":function(t,o,r){var u=r("d3f4");t.exports=function(d,c){if(!u(d))return d;var p,g;if(c&&typeof(p=d.toString)=="function"&&!u(g=p.call(d))||typeof(p=d.valueOf)=="function"&&!u(g=p.call(d))||!c&&typeof(p=d.toString)=="function"&&!u(g=p.call(d)))return g;throw TypeError("Can't convert object to primitive value")}},7333:function(t,o,r){var u=r("0d58"),d=r("2621"),c=r("52a7"),p=r("4bf8"),g=r("626a"),e=Object.assign;t.exports=!e||r("79e5")(function(){var a={},l={},f=Symbol(),h="abcdefghijklmnopqrst";return a[f]=7,h.split("").forEach(function(v){l[v]=v}),e({},a)[f]!=7||Object.keys(e({},l)).join("")!=h})?function(l,f){for(var h=p(l),v=arguments.length,m=1,y=d.f,w=c.f;v>m;)for(var S=g(arguments[m++]),I=y?u(S).concat(y(S)):u(S),L=I.length,j=0,R;L>j;)w.call(S,R=I[j++])&&(h[R]=S[R]);return h}:e},7726:function(t,o){var r=t.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=r)},"77f1":function(t,o,r){var u=r("4588"),d=Math.max,c=Math.min;t.exports=function(p,g){return p=u(p),p<0?d(p+g,0):c(p,g)}},"79e5":function(t,o){t.exports=function(r){try{return!!r()}catch(u){return!0}}},"7f20":function(t,o,r){var u=r("86cc").f,d=r("69a8"),c=r("2b4c")("toStringTag");t.exports=function(p,g,e){p&&!d(p=e?p:p.prototype,c)&&u(p,c,{configurable:!0,value:g})}},8378:function(t,o){var r=t.exports={version:"2.6.5"};typeof __e=="number"&&(__e=r)},"84f2":function(t,o){t.exports={}},"86cc":function(t,o,r){var u=r("cb7c"),d=r("c69a"),c=r("6a99"),p=Object.defineProperty;o.f=r("9e1e")?Object.defineProperty:function(e,a,l){if(u(e),a=c(a,!0),u(l),d)try{return p(e,a,l)}catch(f){}if("get"in l||"set"in l)throw TypeError("Accessors not supported!");return"value"in l&&(e[a]=l.value),e}},"9b43":function(t,o,r){var u=r("d8e8");t.exports=function(d,c,p){if(u(d),c===void 0)return d;switch(p){case 1:return function(g){return d.call(c,g)};case 2:return function(g,e){return d.call(c,g,e)};case 3:return function(g,e,a){return d.call(c,g,e,a)}}return function(){return d.apply(c,arguments)}}},"9c6c":function(t,o,r){var u=r("2b4c")("unscopables"),d=Array.prototype;d[u]==null&&r("32e9")(d,u,{}),t.exports=function(c){d[u][c]=!0}},"9def":function(t,o,r){var u=r("4588"),d=Math.min;t.exports=function(c){return c>0?d(u(c),9007199254740991):0}},"9e1e":function(t,o,r){t.exports=!r("79e5")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},a352:function(t,o){t.exports=n},a481:function(t,o,r){var u=r("cb7c"),d=r("4bf8"),c=r("9def"),p=r("4588"),g=r("0390"),e=r("5f1b"),a=Math.max,l=Math.min,f=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,v=/\$([$&`']|\d\d?)/g,m=function(y){return y===void 0?y:String(y)};r("214f")("replace",2,function(y,w,S,I){return[function(R,E){var D=y(this),H=R==null?void 0:R[w];return H!==void 0?H.call(R,D,E):S.call(String(D),R,E)},function(j,R){var E=I(S,j,this,R);if(E.done)return E.value;var D=u(j),H=String(this),K=typeof R=="function";K||(R=String(R));var J=D.global;if(J){var q=D.unicode;D.lastIndex=0}for(var Y=[];;){var X=e(D,H);if(X===null||(Y.push(X),!J))break;var z=String(X[0]);z===""&&(D.lastIndex=g(H,c(D.lastIndex),q))}for(var ve="",le=0,ie=0;ie<Y.length;ie++){X=Y[ie];for(var x=String(X[0]),_=a(l(p(X.index),H.length),0),b=[],O=1;O<X.length;O++)b.push(m(X[O]));var F=X.groups;if(K){var k=[x].concat(b,_,H);F!==void 0&&k.push(F);var W=String(R.apply(void 0,k))}else W=L(x,H,_,b,F,R);_>=le&&(ve+=H.slice(le,_)+W,le=_+x.length)}return ve+H.slice(le)}];function L(j,R,E,D,H,K){var J=E+j.length,q=D.length,Y=v;return H!==void 0&&(H=d(H),Y=h),S.call(K,Y,function(X,z){var ve;switch(z.charAt(0)){case"$":return"$";case"&":return j;case"`":return R.slice(0,E);case"'":return R.slice(J);case"<":ve=H[z.slice(1,-1)];break;default:var le=+z;if(le===0)return X;if(le>q){var ie=f(le/10);return ie===0?X:ie<=q?D[ie-1]===void 0?z.charAt(1):D[ie-1]+z.charAt(1):X}ve=D[le-1]}return ve===void 0?"":ve})}})},aae3:function(t,o,r){var u=r("d3f4"),d=r("2d95"),c=r("2b4c")("match");t.exports=function(p){var g;return u(p)&&((g=p[c])!==void 0?!!g:d(p)=="RegExp")}},ac6a:function(t,o,r){for(var u=r("cadf"),d=r("0d58"),c=r("2aba"),p=r("7726"),g=r("32e9"),e=r("84f2"),a=r("2b4c"),l=a("iterator"),f=a("toStringTag"),h=e.Array,v={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},m=d(v),y=0;y<m.length;y++){var w=m[y],S=v[w],I=p[w],L=I&&I.prototype,j;if(L&&(L[l]||g(L,l,h),L[f]||g(L,f,w),e[w]=h,S))for(j in u)L[j]||c(L,j,u[j],!0)}},b0c5:function(t,o,r){var u=r("520a");r("5ca1")({target:"RegExp",proto:!0,forced:u!==/./.exec},{exec:u})},be13:function(t,o){t.exports=function(r){if(r==null)throw TypeError("Can't call method on "+r);return r}},c366:function(t,o,r){var u=r("6821"),d=r("9def"),c=r("77f1");t.exports=function(p){return function(g,e,a){var l=u(g),f=d(l.length),h=c(a,f),v;if(p&&e!=e){for(;f>h;)if(v=l[h++],v!=v)return!0}else for(;f>h;h++)if((p||h in l)&&l[h]===e)return p||h||0;return!p&&-1}}},c649:function(t,o,r){(function(u){r.d(o,"c",function(){return l}),r.d(o,"a",function(){return e}),r.d(o,"b",function(){return c}),r.d(o,"d",function(){return a}),r("a481");function d(){return typeof window<"u"?window.console:u.console}var c=d();function p(f){var h=Object.create(null);return function(m){var y=h[m];return y||(h[m]=f(m))}}var g=/-(\w)/g,e=p(function(f){return f.replace(g,function(h,v){return v?v.toUpperCase():""})});function a(f){f.parentElement!==null&&f.parentElement.removeChild(f)}function l(f,h,v){var m=v===0?f.children[0]:f.children[v-1].nextSibling;f.insertBefore(h,m)}}).call(this,r("c8ba"))},c69a:function(t,o,r){t.exports=!r("9e1e")&&!r("79e5")(function(){return Object.defineProperty(r("230e")("div"),"a",{get:function(){return 7}}).a!=7})},c8ba:function(t,o){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(u){typeof window=="object"&&(r=window)}t.exports=r},ca5a:function(t,o){var r=0,u=Math.random();t.exports=function(d){return"Symbol(".concat(d===void 0?"":d,")_",(++r+u).toString(36))}},cadf:function(t,o,r){var u=r("9c6c"),d=r("d53b"),c=r("84f2"),p=r("6821");t.exports=r("01f9")(Array,"Array",function(g,e){this._t=p(g),this._i=0,this._k=e},function(){var g=this._t,e=this._k,a=this._i++;return!g||a>=g.length?(this._t=void 0,d(1)):e=="keys"?d(0,a):e=="values"?d(0,g[a]):d(0,[a,g[a]])},"values"),c.Arguments=c.Array,u("keys"),u("values"),u("entries")},cb7c:function(t,o,r){var u=r("d3f4");t.exports=function(d){if(!u(d))throw TypeError(d+" is not an object!");return d}},ce10:function(t,o,r){var u=r("69a8"),d=r("6821"),c=r("c366")(!1),p=r("613b")("IE_PROTO");t.exports=function(g,e){var a=d(g),l=0,f=[],h;for(h in a)h!=p&&u(a,h)&&f.push(h);for(;e.length>l;)u(a,h=e[l++])&&(~c(f,h)||f.push(h));return f}},d2c8:function(t,o,r){var u=r("aae3"),d=r("be13");t.exports=function(c,p,g){if(u(p))throw TypeError("String#"+g+" doesn't accept regex!");return String(d(c))}},d3f4:function(t,o){t.exports=function(r){return typeof r=="object"?r!==null:typeof r=="function"}},d53b:function(t,o){t.exports=function(r,u){return{value:u,done:!!r}}},d8e8:function(t,o){t.exports=function(r){if(typeof r!="function")throw TypeError(r+" is not a function!");return r}},e11e:function(t,o){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,o,r){var u=r("5ca1"),d=r("9def"),c=r("d2c8"),p="startsWith",g=""[p];u(u.P+u.F*r("5147")(p),"String",{startsWith:function(a){var l=c(this,a,p),f=d(Math.min(arguments.length>1?arguments[1]:void 0,l.length)),h=String(a);return g?g.call(l,h,f):l.slice(f,f+h.length)===h}})},f6fd:function(t,o){(function(r){var u="currentScript",d=r.getElementsByTagName("script");u in r||Object.defineProperty(r,u,{get:function(){try{throw new Error}catch(g){var c,p=(/.*at [^\(]*\((.*):.+:.+\)$/ig.exec(g.stack)||[!1])[1];for(c in d)if(d[c].src==p||d[c].readyState=="interactive")return d[c];return null}}})})(document)},f751:function(t,o,r){var u=r("5ca1");u(u.S+u.F,"Object",{assign:r("7333")})},fa5b:function(t,o,r){t.exports=r("5537")("native-function-to-string",Function.toString)},fab2:function(t,o,r){var u=r("7726").document;t.exports=u&&u.documentElement},fb15:function(t,o,r){if(r.r(o),typeof window<"u"){r("f6fd");var u;(u=window.document.currentScript)&&(u=u.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(r.p=u[1])}r("f751"),r("f559"),r("ac6a"),r("cadf"),r("456d");function d(x){if(Array.isArray(x))return x}function c(x,_){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(x)))){var b=[],O=!0,F=!1,k=void 0;try{for(var W=x[Symbol.iterator](),re;!(O=(re=W.next()).done)&&(b.push(re.value),!(_&&b.length===_));O=!0);}catch(Re){F=!0,k=Re}finally{try{!O&&W.return!=null&&W.return()}finally{if(F)throw k}}return b}}function p(x,_){(_==null||_>x.length)&&(_=x.length);for(var b=0,O=new Array(_);b<_;b++)O[b]=x[b];return O}function g(x,_){if(x){if(typeof x=="string")return p(x,_);var b=Object.prototype.toString.call(x).slice(8,-1);if(b==="Object"&&x.constructor&&(b=x.constructor.name),b==="Map"||b==="Set")return Array.from(x);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return p(x,_)}}function e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(x,_){return d(x)||c(x,_)||g(x,_)||e()}r("6762"),r("2fdb");function l(x){if(Array.isArray(x))return p(x)}function f(x){if(typeof Symbol<"u"&&Symbol.iterator in Object(x))return Array.from(x)}function h(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(x){return l(x)||f(x)||g(x)||h()}var m=r("a352"),y=r.n(m),w=r("c649");function S(x,_,b){return b===void 0||(x=x||{},x[_]=b),x}function I(x,_){return x.map(function(b){return b.elm}).indexOf(_)}function L(x,_,b,O){if(!x)return[];var F=x.map(function(re){return re.elm}),k=_.length-O,W=v(_).map(function(re,Re){return Re>=k?F.length:F.indexOf(re)});return b?W.filter(function(re){return re!==-1}):W}function j(x,_){var b=this;this.$nextTick(function(){return b.$emit(x.toLowerCase(),_)})}function R(x){var _=this;return function(b){_.realList!==null&&_["onDrag"+x](b),j.call(_,x,b)}}function E(x){return["transition-group","TransitionGroup"].includes(x)}function D(x){if(!x||x.length!==1)return!1;var _=a(x,1),b=_[0].componentOptions;return b?E(b.tag):!1}function H(x,_,b){return x[b]||(_[b]?_[b]():void 0)}function K(x,_,b){var O=0,F=0,k=H(_,b,"header");k&&(O=k.length,x=x?[].concat(v(k),v(x)):v(k));var W=H(_,b,"footer");return W&&(F=W.length,x=x?[].concat(v(x),v(W)):v(W)),{children:x,headerOffset:O,footerOffset:F}}function J(x,_){var b=null,O=function(xt,Zn){b=S(b,xt,Zn)},F=Object.keys(x).filter(function(Re){return Re==="id"||Re.startsWith("data-")}).reduce(function(Re,xt){return Re[xt]=x[xt],Re},{});if(O("attrs",F),!_)return b;var k=_.on,W=_.props,re=_.attrs;return O("on",k),O("props",W),Object.assign(b.attrs,re),b}var q=["Start","Add","Remove","Update","End"],Y=["Choose","Unchoose","Sort","Filter","Clone"],X=["Move"].concat(q,Y).map(function(x){return"on"+x}),z=null,ve={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(_){return _}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},le={name:"draggable",inheritAttrs:!1,props:ve,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(_){var b=this.$slots.default;this.transitionMode=D(b);var O=K(b,this.$slots,this.$scopedSlots),F=O.children,k=O.headerOffset,W=O.footerOffset;this.headerOffset=k,this.footerOffset=W;var re=J(this.$attrs,this.componentData);return _(this.getTag(),re,F)},created:function(){this.list!==null&&this.value!==null&&w.b.error("Value and list props are mutually exclusive! Please set one or another."),this.element!=="div"&&w.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),this.options!==void 0&&w.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var _=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var b={};q.forEach(function(k){b["on"+k]=R.call(_,k)}),Y.forEach(function(k){b["on"+k]=j.bind(_,k)});var O=Object.keys(this.$attrs).reduce(function(k,W){return k[Object(w.a)(W)]=_.$attrs[W],k},{}),F=Object.assign({},this.options,O,b,{onMove:function(W,re){return _.onDragMove(W,re)}});!("draggable"in F)&&(F.draggable=">*"),this._sortable=new y.a(this.rootContainer,F),this.computeIndexes()},beforeDestroy:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(_){this.updateOptions(_)},deep:!0},$attrs:{handler:function(_){this.updateOptions(_)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var _=this._vnode.fnOptions;return _&&_.functional},getTag:function(){return this.tag||this.element},updateOptions:function(_){for(var b in _){var O=Object(w.a)(b);X.indexOf(O)===-1&&this._sortable.option(O,_[b])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var _=this.$slots.default;return this.transitionMode?_[0].child.$slots.default:_},computeIndexes:function(){var _=this;this.$nextTick(function(){_.visibleIndexes=L(_.getChildrenNodes(),_.rootContainer.children,_.transitionMode,_.footerOffset)})},getUnderlyingVm:function(_){var b=I(this.getChildrenNodes()||[],_);if(b===-1)return null;var O=this.realList[b];return{index:b,element:O}},getUnderlyingPotencialDraggableComponent:function(_){var b=_.__vue__;return!b||!b.$options||!E(b.$options._componentTag)?!("realList"in b)&&b.$children.length===1&&"realList"in b.$children[0]?b.$children[0]:b:b.$parent},emitChanges:function(_){var b=this;this.$nextTick(function(){b.$emit("change",_)})},alterList:function(_){if(this.list){_(this.list);return}var b=v(this.value);_(b),this.$emit("input",b)},spliceList:function(){var _=arguments,b=function(F){return F.splice.apply(F,v(_))};this.alterList(b)},updatePosition:function(_,b){var O=function(k){return k.splice(b,0,k.splice(_,1)[0])};this.alterList(O)},getRelatedContextFromMoveEvent:function(_){var b=_.to,O=_.related,F=this.getUnderlyingPotencialDraggableComponent(b);if(!F)return{component:F};var k=F.realList,W={list:k,component:F};if(b!==O&&k&&F.getUnderlyingVm){var re=F.getUnderlyingVm(O);if(re)return Object.assign(re,W)}return W},getVmIndex:function(_){var b=this.visibleIndexes,O=b.length;return _>O-1?O:b[_]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(_){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var b=this.getChildrenNodes();b[_].data=null;var O=this.getComponent();O.children=[],O.kept=void 0}},onDragStart:function(_){this.context=this.getUnderlyingVm(_.item),_.item._underlying_vm_=this.clone(this.context.element),z=_.item},onDragAdd:function(_){var b=_.item._underlying_vm_;if(b!==void 0){Object(w.d)(_.item);var O=this.getVmIndex(_.newIndex);this.spliceList(O,0,b),this.computeIndexes();var F={element:b,newIndex:O};this.emitChanges({added:F})}},onDragRemove:function(_){if(Object(w.c)(this.rootContainer,_.item,_.oldIndex),_.pullMode==="clone"){Object(w.d)(_.clone);return}var b=this.context.index;this.spliceList(b,1);var O={element:this.context.element,oldIndex:b};this.resetTransitionData(b),this.emitChanges({removed:O})},onDragUpdate:function(_){Object(w.d)(_.item),Object(w.c)(_.from,_.item,_.oldIndex);var b=this.context.index,O=this.getVmIndex(_.newIndex);this.updatePosition(b,O);var F={element:this.context.element,oldIndex:b,newIndex:O};this.emitChanges({moved:F})},updateProperty:function(_,b){_.hasOwnProperty(b)&&(_[b]+=this.headerOffset)},computeFutureIndex:function(_,b){if(!_.element)return 0;var O=v(b.to.children).filter(function(re){return re.style.display!=="none"}),F=O.indexOf(b.related),k=_.component.getVmIndex(F),W=O.indexOf(z)!==-1;return W||!b.willInsertAfter?k:k+1},onDragMove:function(_,b){var O=this.move;if(!O||!this.realList)return!0;var F=this.getRelatedContextFromMoveEvent(_),k=this.context,W=this.computeFutureIndex(F,_);Object.assign(k,{futureIndex:W});var re=Object.assign({},_,{relatedContext:F,draggedContext:k});return O(re,b)},onDragEnd:function(){this.computeIndexes(),z=null}}};typeof window<"u"&&"Vue"in window&&window.Vue.component("draggable",le);var ie=le;o.default=ie}}).default})})(ko);const _a=fr(un),ba="_unitSubject_1igih_1",xa="_unitAnswers_1igih_10",Sa="_unitAnswer_1igih_10",Ta="_option_1igih_22",Ia="_value_1igih_25",Ea="_valueAudio_1igih_34",Ca="_active_1igih_37",Oa="_answerContent_1igih_41",Da="_answerChoice_1igih_45",Ra="_sortReset_1igih_54",Pa="_tips_1igih_62",La="_itemsContainer_1igih_75",Ma="_items_1igih_75",Ba="_imgs_1igih_81",ce={unitSubject:ba,unitAnswers:xa,unitAnswer:Sa,option:Ta,value:Ia,valueAudio:Ea,active:Ca,answerContent:Oa,answerChoice:Da,sortReset:Ra,tips:Pa,itemsContainer:La,items:Ma,imgs:Ba},Fa=be({name:"choice-question",props:{value:{type:Array,default:()=>[]},index:{type:Number,default:1},data:{type:Object,default:()=>({})},readOnly:{type:Boolean,default:!1},showRate:{type:Boolean,default:!1},showAnalysis:{type:Boolean,default:!1},analysis:{type:Object,default:()=>({message:"",topic:!1,userResult:!0})}},emits:["update:value"],setup(s,{emit:i,slots:n}){const t=wt({domId:"draggableContainer"+ +new Date,drag:!1,sortable:null,list:[],options:[],alst:[]}),o=()=>{const c=t.list||[],p=[];c.forEach((g,e)=>{p.push({answerId:g.answerId,answer:g.answer,answerExtra:e+1})}),i("update:value",p)},r=c=>{if(c.checked||s.readOnly)return;const p=[];t.options.forEach((g,e)=>{p.push({answerId:g.index,answer:g.leftValue,answerExtra:e+1})}),p.push({answerId:c.examinationQuestionAnswerId,answer:c.questionAnswer,answerExtra:t.list.length+1}),t.list.push({answerId:c.examinationQuestionAnswerId,answer:c.questionAnswer,answerExtra:t.list.length+1}),i("update:value",p),nt(()=>{d()})},u=rt(()=>{const c=s.data.answers||[],p=s.value||[];return c.forEach(g=>{const e=p.findIndex(a=>a.answerId===g.examinationQuestionAnswerId);g.checked=e!==-1}),c}),d=()=>{const c=s.data.answers||[],p=s.data.userAnswer||[];nt(()=>{if(p.length>0){const g=[];p.forEach((e,a)=>{const l=c.find(v=>e.answerId===v.examinationQuestionAnswerId),f=c.find(v=>e.answerExtra==v.questionExtra),h={itemIndex:a,index:e.answerId,leftValue:e.answer,rightValue:e.answerExtra,leftType:l&&l.questionAnswerTypeCode||"TXT",rightType:l&&l.questionExtraTypeCode||"TXT",rightIndex:f?f.examinationQuestionAnswerId:""};g.push(h)}),t.options=g}console.log(s.data,"data")})};return dr(()=>t.options,()=>{const c=t.options||[],p=[];c.forEach((g,e)=>{p.push({answerId:g.index,answer:g.leftValue,answerExtra:e+1})}),i("update:value",p)}),Ut(()=>{console.log(s.data,"mounted",t.options),d()}),()=>A(Be,null,[A("div",{class:ce.unitSubject},[n.title&&n.title(),A(Vt,{index:s.index,name:s.data.name,showRate:s.showRate,score:s.data.totalScore,answerType:he.SORT,extra:{rightRate:s.data.rightRate,questionDetail:s.data.questionDetail,mediaUrls:s.data.mediaUrls}},null),A("div",{class:[ce.unitAnswers]},[u.value.map((c,p)=>A("div",{class:[ce.unitAnswer,c.checked&&ce.active],onClick:()=>r(c)},[A("div",{class:ce.answerContent},[A("span",{class:ce.option},[Nn[p+1],N(".")]),c.questionAnswerTypeCode===Ae.IMAGE&&A("div",{class:ce.value},[A(Le,{src:c.questionAnswer},null)]),c.questionAnswerTypeCode===Ae.TXT&&A("div",{class:ce.value},[c.questionAnswer])])])),A("div",{class:[ce.sortReset,"van-hairline--top"]},[A("span",{class:ce.tips},[N("请长按拖拽答案进行排序")]),A(ot,{type:"primary",round:!0,disabled:s.readOnly,onClick:()=>{t.options=[],t.list=[],o(),d()}},{default:()=>[N("重置")]})]),s.readOnly?t.options.map(c=>A("div",{class:ce.itemsContainer},[c.leftType===Ae.TXT&&A(sn,{class:[ce.items],"data-id":c.itemIndex},{default:()=>[c.leftValue]}),c.leftType===Ae.IMAGE&&A(Le,{src:c.leftValue,"data-id":c.itemIndex,class:[ce.imgs,"van-hairline--surround"],fit:"cover"},null)])):A(_a,{modelValue:t.options,"onUpdate:modelValue":c=>t.options=c,itemKey:"itemIndex",componentData:{itemKey:"id",tag:"div",animation:200,group:"description"}},{item:c=>{const p=c.element;return A("div",{class:ce.itemsContainer},[p.leftType===Ae.TXT&&A(sn,{class:[ce.items],"data-id":p.itemIndex},{default:()=>[p.leftValue]}),p.leftType===Ae.IMAGE&&A(Le,{src:p.leftValue,"data-id":p.itemIndex,class:[ce.imgs,"van-hairline--surround"],fit:"cover"},null)])}})])]),s.showAnalysis&&A(Yt,{answerAnalysis:s.analysis.message,topic:s.analysis.topic,userResult:s.analysis.userResult},null)])}}),Na="_unitSubject_4o8nc_1",ja="_unitAnswers_4o8nc_10",Ha="_answerItem_4o8nc_15",ka="_img_4o8nc_26",Ga="_unitItem_4o8nc_29",Ua="_active_4o8nc_45",Va="_canvasSection_4o8nc_49",Ya="_resetBtnGroup_4o8nc_54",Ce={unitSubject:Na,unitAnswers:ja,answerItem:Ha,img:ka,unitItem:Ga,active:Ua,canvasSection:Va,resetBtnGroup:Ya},Xa=be({name:"keep-look-question",props:{value:{type:Array,default:()=>[]},index:{type:Number,default:1},data:{type:Object,default:()=>({})},readOnly:{type:Boolean,default:!1},showRate:{type:Boolean,default:!1},showAnalysis:{type:Boolean,default:!1},analysis:{type:Object,default:()=>({message:"",topic:!1,userResult:!0})}},emits:["update:value"],setup(s,{emit:i,slots:n}){const t=Bn(),o=wt({answerDomId:"answer"+ +new Date,answerRect:{},dpr:1,sortable:null,list:[],options:[],drawLineList:[],selectItem:[]}),r=(l,f)=>{if(s.readOnly)return;o.options.forEach(v=>{!v.leftLocked&&f.index!==v.index&&(v.left=!1)});const h=d(f.index,"left");if(h.status)o.options.forEach(v=>{v.rightLocked||(v.right=!1)}),o.selectItem=[],o.drawLineList.splice(h.selectIndex,1),p(t.value),o.options.forEach(v=>{h.selectOption.leftIndex===v.index&&(v.left=!1,v.leftLocked=!1),h.selectOption.rightIndex===v.index&&(v.right=!1,v.rightLocked=!1)});else if(f.left=!f.left,f.left?o.selectItem[0]={index:f.index}:o.selectItem[0]=null,o.selectItem[0]&&o.selectItem[1]){const v=c();o.drawLineList.push(v),o.selectItem=[],p(t.value)}e()},u=(l,f)=>{if(s.readOnly)return;o.options.forEach(v=>{!v.rightLocked&&f.index!==v.index&&(v.right=!1)});const h=d(f.index,"right");if(h.status)o.options.forEach(v=>{v.leftLocked||(v.left=!1)}),o.selectItem=[],o.drawLineList.splice(h.selectIndex,1),p(t.value),o.options.forEach(v=>{h.selectOption.leftIndex===v.index&&(v.left=!1,v.leftLocked=!1),h.selectOption.rightIndex===v.index&&(v.right=!1,v.rightLocked=!1)});else if(f.right=!f.right,f.right?o.selectItem[1]={index:f.index}:o.selectItem[1]=null,o.selectItem[0]&&o.selectItem[1]){const v=c();o.drawLineList.push(v),o.selectItem=[],p(t.value)}e()},d=(l,f="left")=>{const h=o.drawLineList||[];let v=!1,m=0,y={};return h.forEach((w,S)=>{(w.leftIndex===l&&f==="left"||w.rightIndex===l&&f==="right")&&(y=w,v=!0,m=S)}),{status:v,selectIndex:m,selectOption:y}},c=()=>{const l=qe(t.value),f=o.selectItem[0],h=qe(document.getElementById(f.index+"-left"));h.index=f.index;const v=o.selectItem[1],m=qe(document.getElementById(v.index+"-right"));m.index=v.index,console.log(o.selectItem,h,m);const y={x:h.width,y:h.top+h.height/2-l.top},w={x:m.left-l.left,y:m.top+m.height/2-l.top};return o.options.forEach(S=>{S.index===h.index&&(S.leftLocked=!0),S.index===m.index&&(S.rightLocked=!0)}),{startPoint:y,endPoint:w,leftIndex:h.index,rightIndex:m.index}},p=l=>{if(l.getContext){const f=l.getContext("2d");f.clearRect(0,0,o.answerRect.width*o.dpr||0,o.answerRect.height*o.dpr||0),o.drawLineList.forEach(h=>{g(f,h.startPoint,h.endPoint)})}},g=(l,f,h)=>{l.beginPath(),l.moveTo(Math.floor(f.x-1)*o.dpr,Math.ceil(f.y)*o.dpr),l.lineTo(Math.ceil(h.x+1)*o.dpr,Math.ceil(h.y)*o.dpr),l.lineWidth=2*o.dpr,l.strokeStyle="#1CACF1",l.stroke()},e=()=>{const l=o.options||[],f=o.drawLineList||[],h=[];f.forEach(v=>{const m=l.find(w=>w.index===v.leftIndex),y=l.find(w=>w.index===v.rightIndex);h.push({answerId:m.index,answer:m.leftValue,answerExtra:y.rightValue})}),i("update:value",h)},a=()=>{const l=s.data.answers||[],f=s.data.userAnswer||[];l.forEach(h=>{const v={index:h.examinationQuestionAnswerId,leftValue:h.questionAnswer,rightValue:h.questionExtra,leftType:h.questionAnswerTypeCode||"TXT",rightType:h.questionExtraTypeCode||"TXT",left:!1,right:!1,leftLocked:!1,rightLocked:!1};o.options.push(v)}),f.forEach(h=>{const v={startPoint:{x:0,y:0},endPoint:{x:0,y:0},leftIndex:0,rightIndex:0};o.options.forEach(m=>{m.index===h.answerId&&(m.left=!0,m.leftLocked=!0,v.leftIndex=m.index),m.rightValue===h.answerExtra&&(m.right=!0,m.leftLocked=!0,v.rightIndex=m.index)}),o.drawLineList.push(v)}),nt(()=>{o.drawLineList.forEach(h=>{o.selectItem=[];const v=qe(document.getElementById(h.leftIndex+"-left"));v.index=h.leftIndex,o.selectItem[0]=v;const m=qe(document.getElementById(h.rightIndex+"-right"));m.index=h.rightIndex,o.selectItem[1]=m;const y=c();h.endPoint=y.endPoint,h.startPoint=y.startPoint,o.selectItem=[]}),setTimeout(()=>{p(t.value)},100)})};return Ut(()=>{a(),nt(()=>{const l=document.getElementById(o.answerDomId),f=qe(l);o.answerRect=f;const h=window.devicePixelRatio;o.dpr=h})}),()=>A(Be,null,[A("div",{class:Ce.unitSubject},[n.title&&n.title(),A(Vt,{index:s.index,name:s.data.name,score:s.data.totalScore,showRate:s.showRate,answerType:he.LINK,extra:{questionDetail:s.data.questionDetail,mediaUrls:s.data.mediaUrls,rightRate:s.data.rightRate}},null),A("div",{class:[Ce.unitAnswers],id:o.answerDomId},[A("canvas",{ref:t,class:Ce.canvasSection,width:o.answerRect.width*o.dpr||0,height:o.answerRect.height*o.dpr||0,style:{width:(o.answerRect.width||0)+"px",height:(o.answerRect.height||0)+"px"}},null),o.options.map(l=>A("div",{class:Ce.answerItem},[A("div",{class:[Ce.unitItem,l.left&&Ce.active],id:l.index+"-left",onClick:f=>r(f,l)},[l.leftType===Ae.TXT&&l.leftValue,l.leftType===Ae.IMAGE&&A(Le,{src:l.leftValue,class:Ce.img},null)]),A("div",{class:[Ce.unitItem,l.right&&Ce.active],id:l.index+"-right",onClick:f=>u(f,l)},[l.rightType===Ae.TXT&&l.rightValue,l.rightType===Ae.IMAGE&&A(Le,{src:l.rightValue,class:Ce.img},null)])]))]),A("div",{class:Ce.resetBtnGroup},[A(ot,{round:!0,type:"primary",disabled:s.readOnly,onClick:()=>{o.drawLineList=[],p(t.value),o.options.forEach(l=>{l.left=!1,l.right=!1,l.leftLocked=!1,l.rightLocked=!1}),o.selectItem=[],e()}},{default:()=>[N("重置")]})])]),s.showAnalysis&&A(Yt,{answerAnalysis:s.analysis.message,topic:s.analysis.topic,userResult:s.analysis.userResult},null)])}}),Wa="_unitSubject_1j7w8_1",qa="_unitAnswers_1j7w8_10",Qa="_playSection_1j7w8_14",Ka="_img_1j7w8_19",za="_playTitle_1j7w8_24",Ja="_playBtn_1j7w8_29",Za="_unitScoreNum_1j7w8_37",$a="_score_1j7w8_42",ei="_scoreTitle_1j7w8_47",ti="_scoreTips_1j7w8_53",Pe={unitSubject:Wa,unitAnswers:qa,playSection:Qa,img:Ka,playTitle:za,playBtn:Ja,unitScoreNum:Za,score:$a,scoreTitle:ei,scoreTips:ti},ni=""+new URL("icon-song-c2cb716c.png",import.meta.url).href,ri=be({name:"choice-question",props:{value:{type:Array,default:()=>[]},index:{type:Number,default:1},data:{type:Object,default:()=>({})},unitId:{type:String,default:""},readOnly:{type:Boolean,default:!1},showScore:{type:Boolean,default:!1},showRate:{type:Boolean,default:!1},showAnalysis:{type:Boolean,default:!1},analysis:{type:Object,default:()=>({message:"",topic:!1,userResult:!0,score:0})}},emits:["update:value"],setup(s,{emit:i,slots:n}){console.log(s,"props");const t=wt({list:[],score:0}),o=rt(()=>s.data.questionExtendsInfo?JSON.parse(s.data.questionExtendsInfo):""),r=()=>{const u=o.value;u&&(console.log(s.unitId),pr({api:"openAccompanyWebView",content:{url:`${location.origin}/orchestra-music-score/?id=${u.musicSheetId}&modelType=evaluation&unitId=${s.unitId}&questionId=${s.data.id}`,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}}),hr("webViewOnResume",()=>{var d,c;if(vr().android){const p=window.ORCHESTRA||((c=(d=window.webkit)==null?void 0:d.messageHandlers)==null?void 0:c.ORCHESTRA);console.log(p,"-------------");const g=p.getCache2("h5-orchestra-unit");console.log("🚀 ~ listenerMessage ~ result",g);const e=g?JSON.parse(g):{};if(e.questionId===s.data.id){const a=e.score||0;t.score<a&&(t.score=e.score||0),Wt({api:"setCache",content:{key:"h5-orchestra-unit",value:""}})}i("update:value",[{answerId:"",answer:t.score,answerExtra:""}]),An("webViewOnResume",()=>{})}else Wt({api:"getCache",content:{key:"h5-orchestra-unit"}}).then(p=>{const g=p.content;if(g.value){console.log("🚀 ~ listenerMessage ~ content.value",g.value,"---------------");const e=g.value?JSON.parse(g.value):{};if(console.log("🚀 ~ listenerMessage ~ result",e,s.data.questionId),e.questionId===s.data.id){const a=e.score||0;t.score<a&&(t.score=e.score||0)}i("update:value",[{answerId:"",answer:t.score,answerExtra:""}]),Wt({api:"setCache",content:{key:"h5-orchestra-unit",value:""}})}An("webViewOnResume",()=>{})})}))};return Ut(()=>{const u=s.value||[];u.length>0&&(t.score=u[0].answer)}),()=>A(Be,null,[A("div",{class:Pe.unitSubject},[n.title&&n.title(),A(Vt,{index:s.index,name:s.data.name,score:s.data.totalScore,showRate:s.showRate,answerType:he.PLAY,extra:{questionDetail:s.data.questionDetail,mediaUrls:"",rightRate:s.data.rightRate}},null),A("div",{class:[Pe.unitAnswers]},[o.value&&A(wr,{class:Pe.playSection,center:!0,titleClass:["van-ellipsis",Pe.playTitle]},{icon:()=>A(Le,{class:Pe.img,src:ni},null),title:()=>A(Be,null,[o.value.musicName]),value:()=>A(ot,{round:!0,class:Pe.playBtn,type:"primary",onClick:r,disabled:s.readOnly},{default:()=>[N("点击评测"),A(Ve,{name:"play"},null)]})}),(!s.readOnly||s.showScore)&&A("div",{class:["van-hairline--top",Pe.unitScoreNum]},[A("div",{class:Pe.score},[t.score]),A("div",{class:Pe.scoreTitle},[N("评测分数")]),!s.showScore&&A("div",{class:Pe.scoreTips},[N("多次评测取完整评测的最高分数")])])])]),s.showAnalysis&&A(Yt,{answerAnalysis:s.analysis.message,topic:s.analysis.topic,userResult:s.analysis.userResult,rightFlagText:"合格",errorFlagText:"不合格"},null)])}}),oi="_popupResult_1smys_1",ai="_resultTitle_1smys_6",ii="_titleImg_1smys_15",si="_result_1smys_6",li="_yes_1smys_29",ui="_no_1smys_33",ci="_resultContent_1smys_36",ft={popupResult:oi,resultTitle:ai,titleImg:ii,result:si,yes:li,no:ui,resultContent:ci},fi=be({name:"result-mode",props:{confirmButtonText:{type:String,default:"我知道了"},answerAnalysis:{type:String,default:""},questionTypeCode:{type:String,default:""}},emits:["close","conform"],setup(s,{emit:i}){return()=>A("div",{class:ft.popupResult},[A("div",{class:ft.resultTitle},[A(Le,{src:kn,class:ft.titleImg},null),s.questionTypeCode==="PLAY"?"不合格!":"回答错误!"]),A("div",{class:ft.resultContent},[A("span",null,[N("答案解析:")]),s.answerAnalysis]),A(ot,{type:"primary",round:!0,class:ft.btn,block:!0,onClick:()=>{i("conform"),i("close")}},{default:()=>[s.confirmButtonText]})])}}),di="_finishResult_1jfdh_1",pi="_finishContainer_1jfdh_5",hi="_finishContent_1jfdh_10",vi="_scoreNums_1jfdh_14",gi="_scoreName_1jfdh_24",mi="_scoreResult_1jfdh_33",yi="_finishFail_1jfdh_38",Ai="_finishPractice_1jfdh_43",wi="_finishBtnGroup_1jfdh_48",_i="_finishLeft_1jfdh_54",bi="_finishRight_1jfdh_55",Oe={finishResult:di,finishContainer:pi,finishContent:hi,scoreNums:vi,scoreName:gi,scoreResult:mi,finishFail:yi,finishPractice:Ai,finishBtnGroup:wi,finishLeft:_i,finishRight:bi},xi=be({name:"result-mode",props:{confirmButtonText:{type:String,default:"去练习"},cancelButtonText:{type:String,default:"我知道了"},status:{type:String,default:"SUCCESS"},result:{type:Object,default:()=>({tips:"恭喜你,测验通过!",score:0,examName:""})}},emits:["close","conform"],setup(s,{slots:i,emit:n}){return()=>A("div",{class:[Oe.finishResult,s.status==="FAIL"&&Oe.finishFail,s.status==="PRACTICE"&&Oe.finishPractice]},[A("div",{class:Oe.finishContainer},[A("div",{class:Oe.finishContent},[i.content?i.content():A(Be,null,[A("div",{class:Oe.scoreNums},[s.result.score,A("span",null,[N("分")])]),A("div",{class:Oe.scoreName},[s.result.examName]),A("div",{class:Oe.scoreResult},[s.result.tips])])])]),A("div",{class:Oe.finishBtnGroup},[A("div",{class:Oe.finishLeft,onClick:()=>n("close")},[s.cancelButtonText]),A("div",{class:Oe.finishRight,onClick:()=>n("conform")},[s.confirmButtonText])])])}});function Si(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!Mn(s)}const Mi=be({name:"unit-detail",setup(){const s=yr(),i=Ar(),n=Bn(),t=wt({lessonCoursewareId:s.query.lessonCoursewareId,background:"transparent",color:"#fff",visiableError:!1,visiableAnswer:!1,visiableResult:!1,id:s.query.id,currentIndex:0,questionList:[],visiableSure:!1,resultInfo:{},resultStatusType:"SUCCESS",visiableExam:!1,nextStatus:!1,swipeHeight:"auto",answerAnalysis:"",questionTypeCode:"",overResult:{time:"00:00",questionLength:0,errorLength:0,rate:0},quitStatus:!1,dialogMessage:"",dialogStatus:!1}),{counter:o,resume:r,pause:u}=_r(1e3,{controls:!0}),d=async()=>{try{const{data:m}=await wn.post("/edu-app/studentUnitExamination/queryPracticeModeExam",{data:{lessonCoursewareId:t.lessonCoursewareId}}),y=m||[];y.examinationQuestionAdds.forEach(w=>{w.showAnalysis=!1,w.analysis={message:w.answerAnalysis,topic:!0,userResult:!1},w.userAnswer=[]}),t.questionList=y.examinationQuestionAdds||[],console.log(t.questionList)}catch(m){}},c=async()=>{var m;try{const y=t.questionList||[];let w={};y.forEach((I,L)=>{L===t.currentIndex&&(w={questionId:I.id,details:I.userAnswer||[]})});const{data:S}=await wn.post("/edu-app/studentUnitExamination/submitTrainingAnswer",{hideLoading:!0,data:w});if(y.forEach((I,L)=>{L===t.currentIndex&&(t.answerAnalysis=I.answerAnalysis,t.questionTypeCode=I.questionTypeCode,I.showAnalysis=!0,I.analysis.userResult=S)}),t.questionList.length===t.currentIndex+1){et.emit("unitAudioStop"),t.visiableSure=!0;return}S?(m=n.value)==null||m.next():t.visiableError=!0}catch(y){}},p=rt(()=>{const m=t.questionList||[];let y=0,w=0,S=0;return m.forEach(I=>{I.showAnalysis&&(y+=1,I.analysis.userResult?w+=1:S+=1)}),{count:y,passCount:w,noPassCount:S}});let g=0;const e=(m=!0)=>{nt(()=>{m&&window.scrollTo(0,0),setTimeout(()=>{var L;const y=(L=document.querySelectorAll(".van-swipe-item")[t.currentIndex])==null?void 0:L.querySelector(".swipe-item-question"),w=y==null?void 0:y.querySelectorAll(".answerTitleImg img");let S=!0;w==null||w.forEach(j=>{console.log(j.complete),j.complete||(S=!1)}),!S&&g<3&&setTimeout(()=>{g+=1,e(m)},300),S&&(g=0);const I=qe(y);t.swipeHeight=I.height},100)})},a=()=>{const m=p.value;let y=0;m.count>0&&(y=Math.floor(m.passCount/m.count*100));const w=o.value,S=Math.floor(w/60)>=10?Math.floor(w/60):"0"+Math.floor(w/60),I=w%60>=10?w%60:"0"+w%60;t.overResult={time:S+":"+I,questionLength:m.count,errorLength:m.noPassCount,rate:y},u(),o.value=0,t.visiableResult=!0},l=async()=>{t.questionList=[],await d(),setTimeout(async()=>{var m;(m=n.value)==null||m.swipeTo(0,{immediate:!0}),t.swipeHeight="auto",t.answerAnalysis="",t.overResult={time:"00:00",questionLength:0,errorLength:0,rate:0},t.visiableResult=!1,r(),e()},100)},f=()=>{},h=()=>{t.quitStatus=!0,et.emit("unitAudioStop")},v=()=>{window.removeEventListener("popstate",h,!1),i.back()};return Ut(async()=>{if(br(document,"scroll",()=>{const{y:m}=xr();m.value>52?(t.background="#fff",t.color="#323333"):(t.background="transparent",t.color="#fff")}),await d(),e(),!gr.user.data.vipMember){u(),t.dialogStatus=!0,t.dialogMessage="您暂未开通团练宝,请开通后使用";return}}),Ln(()=>{et.emit("unitAudioStop")}),()=>{let m;return A("div",{class:V.unitDetail},[A(_n,{position:"top"},{default:()=>[A(mr,{border:!1,background:t.background,color:t.color},null)]}),A(Sr,{loop:!1,showIndicators:!1,ref:n,duration:300,touchable:!1,class:V.unitSwipe,style:{paddingBottom:"12px"},lazyRender:!0,height:t.swipeHeight,onChange:y=>{et.emit("unitAudioStop"),t.currentIndex=y,e()}},Si(m=t.questionList.map((y,w)=>A(Tr,null,{default:()=>[A("div",{class:"swipe-item-question"},[y.questionTypeCode===he.RADIO&&A(bn,{value:y.userAnswer,"onUpdate:value":S=>y.userAnswer=S,index:w+1,data:y,type:"radio",showAnalysis:y.showAnalysis,analysis:y.analysis},{title:()=>A("div",{class:V.questionTitle},[A("div",{class:V.questionNum},[A("span",null,[t.currentIndex+1]),N("/"),t.questionList.length]),A("div",{class:V.questionType},[A("i",null,null),N("音及音高")])])}),y.questionTypeCode===he.CHECKBOX&&A(bn,{value:y.userAnswer,"onUpdate:value":S=>y.userAnswer=S,index:w+1,data:y,type:"checkbox",showAnalysis:y.showAnalysis,analysis:y.analysis},{title:()=>A("div",{class:V.questionTitle},[A("div",{class:V.questionNum},[A("span",null,[t.currentIndex+1]),N("/"),t.questionList.length]),A("div",{class:V.questionType},[A("i",null,null),N("音及音高")])])}),y.questionTypeCode===he.SORT&&A(Fa,{value:y.userAnswer,"onUpdate:value":[S=>y.userAnswer=S,()=>{const S=!(y.userAnswer&&y.userAnswer.length>0);e(S)}],data:y,index:w+1,showAnalysis:y.showAnalysis,analysis:y.analysis},{title:()=>A("div",{class:V.questionTitle},[A("div",{class:V.questionNum},[A("span",null,[t.currentIndex+1]),N("/"),t.questionList.length]),A("div",{class:V.questionType},[A("i",null,null),N("音及音高")])])}),y.questionTypeCode===he.LINK&&A(Xa,{value:y.userAnswer,"onUpdate:value":S=>y.userAnswer=S,data:y,index:w+1,showAnalysis:y.showAnalysis,analysis:y.analysis},{title:()=>A("div",{class:V.questionTitle},[A("div",{class:V.questionNum},[A("span",null,[t.currentIndex+1]),N("/"),t.questionList.length]),A("div",{class:V.questionType},[A("i",null,null),N("音及音高")])])}),y.questionTypeCode===he.PLAY&&A(ri,{value:y.userAnswer,"onUpdate:value":S=>y.userAnswer=S,data:y,index:w+1,unitId:t.id,showAnalysis:y.showAnalysis,analysis:y.analysis},{title:()=>A("div",{class:V.questionTitle},[A("div",{class:V.questionNum},[A("span",null,[t.currentIndex+1]),N("/"),t.questionList.length]),A("div",{class:V.questionType},[A("i",null,null),N("音及音高")])])})])]})))?m:{default:()=>[m]}),A(_n,{position:"bottom"},{default:()=>[A("div",{class:["btnGroup btnMore",V.btnSection]},[A(ot,{round:!0,block:!0,class:t.currentIndex>0?V.activePrevBtn:V.prevBtn,disabled:!(t.currentIndex>0),onClick:()=>{var y;(y=n.value)==null||y.prev()}},{default:()=>[N("上一题")]}),A(ot,{block:!0,round:!0,class:V.nextBtn,onClick:c,loading:t.nextStatus,disabled:t.nextStatus},{default:()=>[t.questionList.length===t.currentIndex+1?"提交":"下一题"]}),A(Le,{src:qr,class:[V.wapList,"van-haptics-feedback"],onClick:()=>t.visiableAnswer=!0},null)])]}),A(Dr,{show:t.visiableAnswer,"onUpdate:show":y=>t.visiableAnswer=y,title:"题目列表",safeAreaInsetBottom:!0},{default:()=>[A(Ho,{value:t.questionList,lookType:"PRACTICE",onSelect:y=>{var w;(w=n.value)==null||w.swipeTo(y,{immediate:!0}),t.visiableAnswer=!1}},null)]}),A(an,{show:t.visiableError,"onUpdate:show":y=>t.visiableError=y,style:{width:"90%"},round:!0,closeOnClickOverlay:!1},{default:()=>[A(fi,{onClose:()=>t.visiableError=!1,answerAnalysis:t.answerAnalysis,questionTypeCode:t.questionTypeCode,onConform:()=>{var y;(y=n.value)==null||y.next(),t.answerAnalysis=""}},null)]}),A(an,{show:t.visiableResult,"onUpdate:show":y=>t.visiableResult=y,closeOnClickOverlay:!1,style:{background:"transparent",width:"96%"}},{default:()=>[A(xi,{status:"PRACTICE",confirmButtonText:"下一个考点",cancelButtonText:"继续练习本考点",onClose:l,onConform:f},{content:()=>A("div",{class:V.practiceResult},[A("div",{class:V.practiceTitle},[N("本次练习正确率")]),A("div",{class:V.practiceRate},[t.overResult.rate,N("%")]),A(Fn,{border:!1,columnNum:3},{default:()=>[A(Dt,null,{default:()=>[A("p",{class:V.title},[t.overResult.time]),A("p",{class:V.name},[N("练习时长")])]}),A(Dt,null,{default:()=>[A("p",{class:[V.title]},[t.overResult.questionLength|0]),A("p",{class:V.name},[N("答题数")])]}),A(Dt,null,{default:()=>[A("p",{class:V.title},[t.overResult.errorLength|0]),A("p",{class:V.name},[N("错题数")])]})]}),t.overResult.rate>=100?A("div",{class:V.practiceTips},[N("你真棒!"),A("br",null,null),N("本知识点你已经完全掌握啦!")]):A("div",{class:V.practiceTips},[N("继续努力!"),A("br",null,null),N("争取在测验中获得高分!")])])})]}),A(qt,{show:t.visiableSure,"onUpdate:show":y=>t.visiableSure=y,title:"练习完成",message:"确认本次练习的题目都完成了吗?",messageAlign:"left",showCancelButton:!0,cancelButtonText:"再等等",confirmButtonText:"确认完成",onConfirm:a},null),A(qt,{show:t.quitStatus,"onUpdate:show":y=>t.quitStatus=y,title:"提示",message:"您是否退出本次练习?",showCancelButton:!0,cancelButtonText:"取消",onCancel:()=>{window.history.pushState(null,"",document.URL),window.addEventListener("popstate",h,!1)},confirmButtonText:"确认退出",onConfirm:v},null),A(qt,{message:t.dialogMessage,show:t.dialogStatus,"onUpdate:show":y=>t.dialogStatus=y,showCancelButton:!0,cancelButtonText:"返回",onCancel:()=>{i.back()},confirmButtonText:"立即开通",onConfirm:()=>{i.push("/memberCenter")}},null)])}}});export{Mi as default};
|