!function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,n.ctx.currentTime);for(var r=0;r=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,c()),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("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0;try{(new Audio).muted&&(e.noAudio=!0)}catch(t){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||n,t=null;try{t="undefined"!=typeof Audio?new Audio:null}catch(c){return e}if(!t||"function"!=typeof t.canPlayType)return e;var r=t.canPlayType("audio/mpeg;").replace(/^no$/,""),o=e._navigator?e._navigator.userAgent:"",i=o.match(/OPR\/([0-6].)/g),a=i&&parseInt(i[0].split("/")[1],10)<33,l=-1!==o.indexOf("Safari")&&-1===o.indexOf("Chrome"),s=o.match(/Version\/(.*?) /),u=l&&s&&parseInt(s[1],10)<15;return e._codecs={mp3:!(a||!r&&!t.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!r,opus:!!t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(t.canPlayType('audio/wav; codecs="1"')||t.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!t.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!t.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(t.canPlayType("audio/x-m4b;")||t.canPlayType("audio/m4b;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(t.canPlayType("audio/x-mp4;")||t.canPlayType("audio/mp4;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(u||!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(u||!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!t.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(t.canPlayType("audio/x-flac;")||t.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||44100===e.ctx.sampleRate||(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var t=function t(n){for(;e._html5AudioPool.length0?l._seek:r._sprite[e][0]/1e3),c=Math.max(0,(r._sprite[e][0]+r._sprite[e][1])/1e3-u),d=1e3*c/Math.abs(l._rate),f=r._sprite[e][0]/1e3,p=(r._sprite[e][0]+r._sprite[e][1])/1e3;l._sprite=e,l._ended=!1;var h=function(){l._paused=!1,l._seek=u,l._start=f,l._stop=p,l._loop=!(!l._loop&&!r._sprite[e][2])};if(!(u>=p)){var m=l._node;if(r._webAudio){var g=function(){r._playLock=!1,h(),r._refreshBuffer(l);var e=l._muted||r._muted?0:l._volume;m.gain.setValueAtTime(e,n.ctx.currentTime),l._playStart=n.ctx.currentTime,void 0===m.bufferSource.start?l._loop?m.bufferSource.noteGrainOn(0,u,86400):m.bufferSource.noteGrainOn(0,u,c):l._loop?m.bufferSource.start(0,u,86400):m.bufferSource.start(0,u,c),d!==1/0&&(r._endTimers[l._id]=setTimeout(r._ended.bind(r,l),d)),t||setTimeout((function(){r._emit("play",l._id),r._loadQueue()}),0)};"running"===n.state&&"interrupted"!==n.ctx.state?g():(r._playLock=!0,r.once("resume",g),r._clearTimer(l._id))}else{var v=function(){m.currentTime=u,m.muted=l._muted||r._muted||n._muted||m.muted,m.volume=l._volume*n.volume(),m.playbackRate=l._rate;try{var o=m.play();if(o&&"undefined"!=typeof Promise&&(o instanceof Promise||"function"==typeof o.then)?(r._playLock=!0,h(),o.then((function(){r._playLock=!1,m._unlocked=!0,t?r._loadQueue():r._emit("play",l._id)})).catch((function(){r._playLock=!1,r._emit("playerror",l._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."),l._ended=!0,l._paused=!0}))):t||(r._playLock=!1,h(),r._emit("play",l._id)),m.playbackRate=l._rate,m.paused)return void r._emit("playerror",l._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.");"__default"!==e||l._loop?r._endTimers[l._id]=setTimeout(r._ended.bind(r,l),d):(r._endTimers[l._id]=function(){r._ended(l),m.removeEventListener("ended",r._endTimers[l._id],!1)},m.addEventListener("ended",r._endTimers[l._id],!1))}catch(i){r._emit("playerror",l._id,i)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===m.src&&(m.src=r._src,m.load());var _=window&&window.ejecta||!m.readyState&&n._navigator.isCocoonJS;if(m.readyState>=3||_)v();else{r._playLock=!0,r._state="loading";m.addEventListener(n._canPlayEvent,(function e(){r._state="loaded",v(),m.removeEventListener(n._canPlayEvent,e,!1)}),!1),r._clearTimer(l._id)}}return l._id}r._ended(l)},pause:function(e){var t=this;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"pause",action:function(){t.pause(e)}}),t;for(var n=t._getSoundIds(e),r=0;r=0?t=parseInt(i[0],10):e=parseFloat(i[0])}else i.length>=2&&(e=parseFloat(i[0]),t=parseInt(i[1],10));if(!(void 0!==e&&e>=0&&e<=1))return(r=t?o._soundById(t):o._sounds[0])?r._volume:0;if("loaded"!==o._state||o._playLock)return o._queue.push({event:"volume",action:function(){o.volume.apply(o,i)}}),o;void 0===t&&(o._volume=e),t=o._getSoundIds(t);for(var s=0;s0?r/u:r),d=Date.now();e._fadeTo=n,e._interval=setInterval((function(){var o=(Date.now()-d)/r;d=Date.now(),l+=s*o,l=Math.round(100*l)/100,l=s<0?Math.max(n,l):Math.min(n,l),a._webAudio?e._volume=l:a.volume(l,e._id,!0),i&&(a._volume=l),(nt&&l>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,a.volume(n,e._id),a._emit("fade",e._id))}),c)},_stopFade:function(e){var t=this,r=t._soundById(e);return r&&r._interval&&(t._webAudio&&r._node.gain.cancelScheduledValues(n.ctx.currentTime),clearInterval(r._interval),r._interval=null,t.volume(r._fadeTo,e),r._fadeTo=null,t._emit("fade",e)),t},loop:function(){var e,t,n,r=this,o=arguments;if(0===o.length)return r._loop;if(1===o.length){if("boolean"!=typeof o[0])return!!(n=r._soundById(parseInt(o[0],10)))&&n._loop;e=o[0],r._loop=e}else 2===o.length&&(e=o[0],t=parseInt(o[1],10));for(var i=r._getSoundIds(t),a=0;a=0?t=parseInt(i[0],10):e=parseFloat(i[0])}else 2===i.length&&(e=parseFloat(i[0]),t=parseInt(i[1],10));if("number"!=typeof e)return(r=o._soundById(t))?r._rate:o._rate;if("loaded"!==o._state||o._playLock)return o._queue.push({event:"rate",action:function(){o.rate.apply(o,i)}}),o;void 0===t&&(o._rate=e),t=o._getSoundIds(t);for(var s=0;s=0?t=parseInt(o[0],10):r._sounds.length&&(t=r._sounds[0]._id,e=parseFloat(o[0]))}else 2===o.length&&(e=parseFloat(o[0]),t=parseInt(o[1],10));if(void 0===t)return 0;if("number"==typeof e&&("loaded"!==r._state||r._playLock))return r._queue.push({event:"seek",action:function(){r.seek.apply(r,o)}}),r;var l=r._soundById(t);if(l){if(!("number"==typeof e&&e>=0)){if(r._webAudio){var s=r.playing(t)?n.ctx.currentTime-l._playStart:0,u=l._rateSeek?l._rateSeek-l._seek:0;return l._seek+(u+s*Math.abs(l._rate))}return l._node.currentTime}var c=r.playing(t);c&&r.pause(t,!0),l._seek=e,l._ended=!1,r._clearTimer(t),r._webAudio||!l._node||isNaN(l._node.duration)||(l._node.currentTime=e);var d=function(){c&&r.play(t,!0),r._emit("seek",t)};if(c&&!r._webAudio){var f=function e(){r._playLock?setTimeout(e,0):d()};setTimeout(f,0)}else d()}return r},playing:function(e){var t=this;if("number"==typeof e){var n=t._soundById(e);return!!n&&!n._paused}for(var r=0;r=0&&n._howls.splice(o,1);var a=!0;for(r=0;r=0){a=!1;break}return i&&a&&delete i[e._src],n.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,t,n,r){var o=this["_on"+e];return"function"==typeof t&&o.push(r?{id:n,fn:t,once:r}:{id:n,fn:t}),this},off:function(e,t,n){var r=this,o=r["_on"+e],i=0;if("number"==typeof t&&(n=t,t=null),t||n)for(i=0;i=0;i--)o[i].id&&o[i].id!==t&&"load"!==e||(setTimeout(function(e){e.call(this,t,n)}.bind(r,o[i].fn),0),o[i].once&&r.off(e,o[i].fn,o[i].id));return r._loadQueue(e),r},_loadQueue:function(e){var t=this;if(t._queue.length>0){var n=t._queue[0];n.event===e&&(t._queue.shift(),t._loadQueue()),e||n.action()}return t},_ended:function(e){var t=this,r=e._sprite;if(!t._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime=0;r--){if(n<=t)return;e._sounds[r]._ended&&(e._webAudio&&e._sounds[r]._node&&e._sounds[r]._node.disconnect(0),e._sounds.splice(r,1),n--)}}},_getSoundIds:function(e){if(void 0===e){for(var t=[],n=0;n=0;if(n._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),t))try{e.bufferSource.buffer=n._scratchBuffer}catch(r){}return e.bufferSource=null,this},_clearSound:function(e){/MSIE |Trident\//.test(n._navigator&&n._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var o=function(e){this._parent=e,this.init()};o.prototype={init:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++n._counter,t._sounds.push(e),e.create(),e},create:function(){var e=this,t=e._parent,r=n._muted||e._muted||e._parent._muted?0:e._volume;return t._webAudio?(e._node=void 0===n.ctx.createGain?n.ctx.createGainNode():n.ctx.createGain(),e._node.gain.setValueAtTime(r,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=t._src,e._node.preload=!0===t._preload?"auto":t._preload,e._node.volume=r*n.volume(),e._node.load()),e},reset:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._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,t=e._parent;t._duration=Math.ceil(10*e._node.duration)/10,0===Object.keys(t._sprite).length&&(t._sprite={__default:[0,1e3*t._duration]}),"loaded"!==t._state&&(t._state="loaded",t._emit("load"),t._loadQueue()),e._node.removeEventListener(n._canPlayEvent,e._loadFn,!1)},_endListener:function(){var e=this,t=e._parent;t._duration===1/0&&(t._duration=Math.ceil(10*e._node.duration)/10,t._sprite.__default[1]===1/0&&(t._sprite.__default[1]=1e3*t._duration),t._ended(e)),e._node.removeEventListener("ended",e._endFn,!1)}};var i={},a=function(e){var t=e._src;if(i[t])return e._duration=i[t].duration,void u(e);if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(",")[1]),r=new Uint8Array(n.length),o=0;o0?(i[t._src]=e,u(t,e)):r()};"undefined"!=typeof Promise&&1===n.ctx.decodeAudioData.length?n.ctx.decodeAudioData(e).then(o).catch(r):n.ctx.decodeAudioData(e,o,r)},u=function(e,t){t&&!e._duration&&(e._duration=t.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},c=function(){if(n.usingWebAudio){try{"undefined"!=typeof AudioContext?n.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?n.ctx=new webkitAudioContext:n.usingWebAudio=!1}catch(i){n.usingWebAudio=!1}n.ctx||(n.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(n._navigator&&n._navigator.platform),t=n._navigator&&n._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),r=t?parseInt(t[1],10):null;if(e&&r&&r<9){var o=/safari/.test(n._navigator&&n._navigator.userAgent.toLowerCase());n._navigator&&!o&&(n.usingWebAudio=!1)}n.usingWebAudio&&(n.masterGain=void 0===n.ctx.createGain?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()}};e.Howler=n,e.Howl=r,void 0!==Ft?(Ft.HowlerGlobal=t,Ft.Howler=n,Ft.Howl=r,Ft.Sound=o):"undefined"!=typeof window&&(window.HowlerGlobal=t,window.Howler=n,window.Howl=r,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(){var e;HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){var t=this;if(!t.ctx||!t.ctx.listener)return t;for(var n=t._howls.length-1;n>=0;n--)t._howls[n].stereo(e);return t},HowlerGlobal.prototype.pos=function(e,t,n){var r=this;return r.ctx&&r.ctx.listener?(t="number"!=typeof t?r._pos[1]:t,n="number"!=typeof n?r._pos[2]:n,"number"!=typeof e?r._pos:(r._pos=[e,t,n],void 0!==r.ctx.listener.positionX?(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]),r)):r},HowlerGlobal.prototype.orientation=function(e,t,n,r,o,i){var a=this;if(!a.ctx||!a.ctx.listener)return a;var l=a._orientation;return t="number"!=typeof t?l[1]:t,n="number"!=typeof n?l[2]:n,r="number"!=typeof r?l[3]:r,o="number"!=typeof o?l[4]:o,i="number"!=typeof i?l[5]:i,"number"!=typeof e?l:(a._orientation=[e,t,n,r,o,i],void 0!==a.ctx.listener.forwardX?(a.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),a.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),a.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),a.ctx.listener.upX.setTargetAtTime(r,Howler.ctx.currentTime,.1),a.ctx.listener.upY.setTargetAtTime(o,Howler.ctx.currentTime,.1),a.ctx.listener.upZ.setTargetAtTime(i,Howler.ctx.currentTime,.1)):a.ctx.listener.setOrientation(e,t,n,r,o,i),a)},Howl.prototype.init=(e=Howl.prototype.init,function(t){var n=this;return n._orientation=t.orientation||[1,0,0],n._stereo=t.stereo||null,n._pos=t.pos||null,n._pannerAttr={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:360,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:360,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:0,distanceModel:void 0!==t.distanceModel?t.distanceModel:"inverse",maxDistance:void 0!==t.maxDistance?t.maxDistance:1e4,panningModel:void 0!==t.panningModel?t.panningModel:"HRTF",refDistance:void 0!==t.refDistance?t.refDistance:1,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:1},n._onstereo=t.onstereo?[{fn:t.onstereo}]:[],n._onpos=t.onpos?[{fn:t.onpos}]:[],n._onorientation=t.onorientation?[{fn:t.onorientation}]:[],e.call(this,t)}),Howl.prototype.stereo=function(e,n){var r=this;if(!r._webAudio)return r;if("loaded"!==r._state)return r._queue.push({event:"stereo",action:function(){r.stereo(e,n)}}),r;var o=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===n){if("number"!=typeof e)return r._stereo;r._stereo=e,r._pos=[e,0,0]}for(var i=r._getSoundIds(n),a=0;a=0?(o.splice(a,1),r("update:value",e(o))):r("update:value",[].concat(e(o),[i]))}else r("update:value",[i])}}(n)}},[oe("div",{class:Fn},[oe("span",{class:Nn},[rn[o+1],re(".")]),n.questionAnswerTypeCode===dn&&oe("div",{class:jn},[oe(Qt,{src:n.questionAnswer,fit:"contain",class:"answerTitleImg"},null)]),n.questionAnswerTypeCode===fn&&oe("div",{class:jn},[n.questionAnswer]),n.questionAnswerTypeCode===pn&&oe("div",{class:jn},[oe(wn,{src:n.questionAnswer,class:Ln},null)])]),t.showRate&&oe("div",{class:zn},[n.selectRate||0,re("%人选择")])])}))])]),t.showAnalysis&&oe("div",{class:Mn},[oe(kn,{answerAnalysis:t.analysis.message,topic:t.analysis.topic,userResult:t.analysis.userResult},null)])])}}})),"_anserList_1yzxl_1"),Un="_status_1yzxl_5",Xn="_aList_1yzxl_28",Yn="_answered_1yzxl_46",Vn="_yes_1yzxl_50",Gn="_no_1yzxl_54";t("A",ae({name:"answer-list",props:{value:{type:Array,default:function(){return[]}},index:{type:Number,default:0},lookType:{type:String,default:"ANSWER"},statusList:{type:Array,default:function(){return[{text:"已答",color:"#FF8057"},{text:"未答",color:"#EAEAEA"}]}},answerResult:{type:Array,default:function(){return[]}}},emits:["select"],setup:function(e,t){var n=t.emit;console.log(e.lookType,"lookType");return function(){var t,r;return oe("div",{class:Hn},[e.statusList.length>0&&oe("div",{class:Un},[e.statusList.map((function(e){return oe("span",null,[oe("i",{style:{backgroundColor:e.color}},null),e.text])}))]),oe("div",{style:{maxHeight:"40vh",minHeight:"20vh",overflowX:"auto"}},[oe(Jt,{class:Xn,columnNum:6,border:!1},(r=t=e.value.map((function(t,r){return oe(Zt,{onClick:function(){return n("select",r)}},{default:function(){return[oe("span",{class:["ANSWER"===e.lookType&&t.userAnswer&&t.userAnswer.length>0&&Yn,"RESULT"===e.lookType&&(n=t.id,o=!1,e.answerResult.forEach((function(e){e.questionId===n&&(o=e.rightFlag)})),o?Vn:Gn),"CLICK"===e.lookType&&r===e.index&&Yn,"CLICK"!==e.lookType&&t.showAnalysis?t.analysis.userResult?Vn:Gn:""]},[r+1])];var n,o}})})),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!ye(r)?t:{default:function(){return[t]}}))])])}}}));var qn={exports:{}},Wn=Ht(tn); /**! * Sortable 1.14.0 * @author RubaXa * @author owenm * @license MIT */ function Kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qn(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function tr(e){return function(e){if(Array.isArray(e))return nr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return nr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nr(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function hr(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function mr(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&pr(e,t):pr(e,t))||r&&e===n)return e;if(e===n)break}while(e=hr(e))}return null}var gr,vr=/\s+/g;function _r(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(vr," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(vr," ")}}function br(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function yr(e,t){var n="";if("string"==typeof e)n=e;else do{var r=br(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function wr(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o=i:o<=i))return r;if(r===Ar())break;r=Or(r,!1)}return!1}function Er(e,t,n,r){for(var o=0,i=0,a=e.children;i2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=er(n,Ur);zr.pluginEvent.bind(jo)(e,t,Qn({dragEl:Vr,parentEl:Gr,ghostEl:qr,rootEl:Wr,nextEl:Kr,lastDownEl:Qr,cloneEl:Jr,cloneHidden:Zr,dragStarted:fo,putSortable:oo,activeSortable:jo.active,originalEvent:r,oldIndex:$r,oldDraggableIndex:to,newIndex:eo,newDraggableIndex:no,hideGhostForTarget:Mo,unhideGhostForTarget:Ro,cloneNowHidden:function(){Zr=!0},cloneNowShown:function(){Zr=!1},dispatchSortableEvent:function(e){Yr({sortable:t,name:e,originalEvent:r})}},o))};function Yr(e){Hr(Qn({putSortable:oo,cloneEl:Jr,targetEl:Vr,rootEl:Wr,oldIndex:$r,oldDraggableIndex:to,newIndex:eo,newDraggableIndex:no},e))}var Vr,Gr,qr,Wr,Kr,Qr,Jr,Zr,$r,eo,to,no,ro,oo,io,ao,lo,so,uo,co,fo,po,ho,mo,go,vo=!1,_o=!1,bo=[],yo=!1,wo=!1,Ao=[],xo=!1,So=[],Eo="undefined"!=typeof document,To=sr,Do=ir||or?"cssFloat":"float",Io=Eo&&!ur&&!sr&&"draggable"in document.createElement("div"),Oo=function(){if(Eo){if(or)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Co=function(e,t){var n=br(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=Er(e,0,t),i=Er(e,1,t),a=o&&br(o),l=i&&br(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+xr(o).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+xr(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&"none"!==a.float){var c="left"===a.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==c?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=r&&"none"===n[Do]||i&&"none"===n[Do]&&s+u>r)?"vertical":"horizontal"},ko=function(e){function t(e,n){return function(r,o,i,a){var l=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,i,a),n)(r,o,i,a);var s=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},r=e.group;r&&"object"==Jn(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Mo=function(){!Oo&&qr&&br(qr,"display","none")},Ro=function(){!Oo&&qr&&br(qr,"display","")};Eo&&document.addEventListener("click",(function(e){if(_o)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),_o=!1,!1}),!0);var Po=function(e){if(Vr){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,i=e.clientY,bo.some((function(e){var t=e[jr].options.emptyInsertThreshold;if(t&&!Tr(e)){var n=xr(e),r=o>=n.left-t&&o<=n.right+t,l=i>=n.top-t&&i<=n.bottom+t;return r&&l?a=e:void 0}})),a);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[jr]._onDragOver(n)}}var o,i,a},No=function(e){Vr&&Vr.parentNode[jr]._isOutsideThisEl(e.target)};function jo(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=$n({},t),e[jr]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Co(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.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:!1!==jo.supportPointer&&"PointerEvent"in window&&!lr,emptyInsertThreshold:5};for(var r in zr.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var o in ko(t),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&Io,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?dr(e,"pointerdown",this._onTapStart):(dr(e,"mousedown",this._onTapStart),dr(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(dr(e,"dragover",this),dr(e,"dragenter",this)),bo.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),$n(this,Lr())}function Lo(e,t,n,r,o,i,a,l){var s,u,c=e[jr],d=c.options.onMove;return!window.CustomEvent||or||ir?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=r,s.related=o||t,s.relatedRect=i||xr(t),s.willInsertAfter=l,s.originalEvent=a,e.dispatchEvent(s),d&&(u=d.call(c,s,a)),u}function Bo(e){e.draggable=!1}function Fo(){xo=!1}function zo(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Ho(e){return setTimeout(e,0)}function Uo(e){return clearTimeout(e)}jo.prototype={constructor:jo,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(po=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Vr):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,u=r.filter;if(function(e){So.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&So.push(r)}}(n),!Vr&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!lr||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=mr(l,r.draggable,n,!1))&&l.animated||Qr===l)){if($r=Dr(l),to=Dr(l,r.draggable),"function"==typeof u){if(u.call(this,e,l,this))return Yr({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),Xr("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(r){if(r=mr(s,r.trim(),n,!1))return Yr({sortable:t,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),Xr("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());r.handle&&!mr(s,r.handle,n,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,t,n){var r,o=this,i=o.el,a=o.options,l=i.ownerDocument;if(n&&!Vr&&n.parentNode===i){var s=xr(n);if(Wr=i,Gr=(Vr=n).parentNode,Kr=Vr.nextSibling,Qr=n,ro=a.group,jo.dragged=Vr,io={target:Vr,clientX:(t||e).clientX,clientY:(t||e).clientY},uo=io.clientX-s.left,co=io.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Vr.style["will-change"]="all",r=function(){Xr("delayEnded",o,{evt:e}),jo.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!ar&&o.nativeDraggable&&(Vr.draggable=!0),o._triggerDragStart(e,t),Yr({sortable:o,name:"choose",originalEvent:e}),_r(Vr,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){wr(Vr,e.trim(),Bo)})),dr(l,"dragover",Po),dr(l,"mousemove",Po),dr(l,"touchmove",Po),dr(l,"mouseup",o._onDrop),dr(l,"touchend",o._onDrop),dr(l,"touchcancel",o._onDrop),ar&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Vr.draggable=!0),Xr("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(ir||or))r();else{if(jo.eventCanceled)return void this._onDrop();dr(l,"mouseup",o._disableDelayedDrag),dr(l,"touchend",o._disableDelayedDrag),dr(l,"touchcancel",o._disableDelayedDrag),dr(l,"mousemove",o._delayedDragTouchMoveHandler),dr(l,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&dr(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Vr&&Bo(Vr),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;fr(e,"mouseup",this._disableDelayedDrag),fr(e,"touchend",this._disableDelayedDrag),fr(e,"touchcancel",this._disableDelayedDrag),fr(e,"mousemove",this._delayedDragTouchMoveHandler),fr(e,"touchmove",this._delayedDragTouchMoveHandler),fr(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?dr(document,"pointermove",this._onTouchMove):dr(document,t?"touchmove":"mousemove",this._onTouchMove):(dr(Vr,"dragend",this),dr(Wr,"dragstart",this._onDragStart));try{document.selection?Ho((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(vo=!1,Wr&&Vr){Xr("dragStarted",this,{evt:t}),this.nativeDraggable&&dr(document,"dragover",No);var n=this.options;!e&&_r(Vr,n.dragClass,!1),_r(Vr,n.ghostClass,!0),jo.active=this,e&&this._appendGhost(),Yr({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ao){this._lastX=ao.clientX,this._lastY=ao.clientY,Mo();for(var e=document.elementFromPoint(ao.clientX,ao.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ao.clientX,ao.clientY))!==t;)t=e;if(Vr.parentNode[jr]._isOutsideThisEl(e),t)do{if(t[jr]){if(t[jr]._onDragOver({clientX:ao.clientX,clientY:ao.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Ro()}},_onTouchMove:function(e){if(io){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=qr&&yr(qr,!0),a=qr&&i&&i.a,l=qr&&i&&i.d,s=To&&go&&Ir(go),u=(o.clientX-io.clientX+r.x)/(a||1)+(s?s[0]-Ao[0]:0)/(a||1),c=(o.clientY-io.clientY+r.y)/(l||1)+(s?s[1]-Ao[1]:0)/(l||1);if(!jo.active&&!vo){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))r.right+o||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+o}(e,o,this)&&!m.animated){if(m===Vr)return k(!1);if(m&&i===e.target&&(a=m),a&&(n=xr(a)),!1!==Lo(Wr,i,Vr,t,a,n,e,!!a))return C(),i.appendChild(Vr),Gr=i,M(),k(!0)}else if(m&&function(e,t,n){var r=xr(Er(n.el,0,n.options,!0)),o=10;return t?e.clientXc+u*i/2:sd-mo)return-ho}else if(s>c+u*(1-o)/2&&sd-u*i/2))return s>c+u/2?1:-1;return 0}(e,a,n,o,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,wo,po===a),0!==v){var E=Dr(Vr);do{E-=v,b=Gr.children[E]}while(b&&("none"===br(b,"display")||b===qr))}if(0===v||b===a)return k(!1);po=a,ho=v;var T=a.nextElementSibling,D=!1,I=Lo(Wr,i,Vr,t,a,n,e,D=1===v);if(!1!==I)return 1!==I&&-1!==I||(D=1===I),xo=!0,setTimeout(Fo,30),C(),D&&!T?i.appendChild(Vr):a.parentNode.insertBefore(Vr,D?T:a),x&&Mr(x,0,S-x.scrollTop),Gr=Vr.parentNode,void 0===_||wo||(mo=Math.abs(_-xr(a)[A])),M(),k(!0)}if(i.contains(Vr))return k(!1)}return!1}function O(l,s){Xr(l,p,Qn({evt:e,isOwner:c,axis:o?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:d,fromSortable:f,target:a,completed:k,onMove:function(n,r){return Lo(Wr,i,Vr,t,n,xr(n),e,r)},changed:M},s))}function C(){O("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function k(t){return O("dragOverCompleted",{insertion:t}),t&&(c?u._hideClone():u._showClone(p),p!==f&&(_r(Vr,oo?oo.options.ghostClass:u.options.ghostClass,!1),_r(Vr,l.ghostClass,!0)),oo!==p&&p!==jo.active?oo=p:p===jo.active&&oo&&(oo=null),f===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){O("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===Vr&&!Vr.animated||a===i&&!a.animated)&&(po=null),l.dragoverBubble||e.rootEl||a===document||(Vr.parentNode[jr]._isOutsideThisEl(e.target),!t&&Po(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function M(){eo=Dr(Vr),no=Dr(Vr,l.draggable),Yr({sortable:p,name:"change",toEl:i,newIndex:eo,newDraggableIndex:no,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){fr(document,"mousemove",this._onTouchMove),fr(document,"touchmove",this._onTouchMove),fr(document,"pointermove",this._onTouchMove),fr(document,"dragover",Po),fr(document,"mousemove",Po),fr(document,"touchmove",Po)},_offUpEvents:function(){var e=this.el.ownerDocument;fr(e,"mouseup",this._onDrop),fr(e,"touchend",this._onDrop),fr(e,"pointerup",this._onDrop),fr(e,"touchcancel",this._onDrop),fr(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;eo=Dr(Vr),no=Dr(Vr,n.draggable),Xr("drop",this,{evt:e}),Gr=Vr&&Vr.parentNode,eo=Dr(Vr),no=Dr(Vr,n.draggable),jo.eventCanceled||(vo=!1,wo=!1,yo=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Uo(this.cloneId),Uo(this._dragStartId),this.nativeDraggable&&(fr(document,"drop",this),fr(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),lr&&br(document.body,"user-select",""),br(Vr,"transform",""),e&&(fo&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),qr&&qr.parentNode&&qr.parentNode.removeChild(qr),(Wr===Gr||oo&&"clone"!==oo.lastPutMode)&&Jr&&Jr.parentNode&&Jr.parentNode.removeChild(Jr),Vr&&(this.nativeDraggable&&fr(Vr,"dragend",this),Bo(Vr),Vr.style["will-change"]="",fo&&!vo&&_r(Vr,oo?oo.options.ghostClass:this.options.ghostClass,!1),_r(Vr,this.options.chosenClass,!1),Yr({sortable:this,name:"unchoose",toEl:Gr,newIndex:null,newDraggableIndex:null,originalEvent:e}),Wr!==Gr?(eo>=0&&(Yr({rootEl:Gr,name:"add",toEl:Gr,fromEl:Wr,originalEvent:e}),Yr({sortable:this,name:"remove",toEl:Gr,originalEvent:e}),Yr({rootEl:Gr,name:"sort",toEl:Gr,fromEl:Wr,originalEvent:e}),Yr({sortable:this,name:"sort",toEl:Gr,originalEvent:e})),oo&&oo.save()):eo!==$r&&eo>=0&&(Yr({sortable:this,name:"update",toEl:Gr,originalEvent:e}),Yr({sortable:this,name:"sort",toEl:Gr,originalEvent:e})),jo.active&&(null!=eo&&-1!==eo||(eo=$r,no=to),Yr({sortable:this,name:"end",toEl:Gr,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Xr("nulling",this),Wr=Vr=Gr=qr=Kr=Jr=Qr=Zr=io=ao=fo=eo=no=$r=to=po=ho=oo=ro=jo.dragged=jo.ghost=jo.clone=jo.active=null,So.forEach((function(e){e.checked=!0})),So.length=lo=so=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Vr&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,i=this.options;r1&&(ui.forEach((function(e){r.addAnimationState({target:e,rect:fi?xr(e):o}),Nr(e),e.fromRect=o,t.removeAnimationState(e)})),fi=!1,function(e,t){ui.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,o=e.activeSortable,i=e.parentEl,a=e.putSortable,l=this.options;if(r){if(n&&o._hideClone(),di=!1,l.animation&&ui.length>1&&(fi||!n&&!o.options.sort&&!a)){var s=xr(ai,!1,!0,!0);ui.forEach((function(e){e!==ai&&(Pr(e,s),i.appendChild(e))})),fi=!0}if(!n)if(fi||mi(),ui.length>1){var u=si;o._showClone(t),o.options.animation&&!si&&u&&ci.forEach((function(e){o.addAnimationState({target:e,rect:li}),e.fromRect=li,e.thisAnimationDuration=null}))}else o._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(ui.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){li=$n({},t);var o=yr(ai,!0);li.top-=o.f,li.left-=o.e}},dragOverAnimationComplete:function(){fi&&(fi=!1,mi())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,o=e.sortable,i=e.dispatchSortableEvent,a=e.oldIndex,l=e.putSortable,s=l||this.sortable;if(t){var u=this.options,c=r.children;if(!pi)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),_r(ai,u.selectedClass,!~ui.indexOf(ai)),~ui.indexOf(ai))ui.splice(ui.indexOf(ai),1),oi=null,Hr({sortable:o,rootEl:n,name:"deselect",targetEl:ai,originalEvt:t});else{if(ui.push(ai),Hr({sortable:o,rootEl:n,name:"select",targetEl:ai,originalEvt:t}),t.shiftKey&&oi&&o.el.contains(oi)){var d,f,p=Dr(oi),h=Dr(ai);if(~p&&~h&&p!==h)for(h>p?(f=p,d=h):(f=h,d=p+1);f1){var m=xr(ai),g=Dr(ai,":not(."+this.options.selectedClass+")");if(!di&&u.animation&&(ai.thisAnimationDuration=null),s.captureAnimationState(),!di&&(u.animation&&(ai.fromRect=m,ui.forEach((function(e){if(e.thisAnimationDuration=null,e!==ai){var t=fi?xr(e):m;e.fromRect=t,s.addAnimationState({target:e,rect:t})}}))),mi(),ui.forEach((function(e){c[g]?r.insertBefore(e,c[g]):r.appendChild(e),g++})),a===Dr(ai))){var v=!1;ui.forEach((function(e){e.sortableIndex===Dr(e)||(v=!0)})),v&&i("update")}ui.forEach((function(e){Nr(e)})),s.animateAll()}ii=s}(n===r||l&&"clone"!==l.lastPutMode)&&ci.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=pi=!1,ci.length=0},destroyGlobal:function(){this._deselectMultiDrag(),fr(document,"pointerup",this._deselectMultiDrag),fr(document,"mouseup",this._deselectMultiDrag),fr(document,"touchend",this._deselectMultiDrag),fr(document,"keydown",this._checkKeyDown),fr(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==pi&&pi||ii!==this.sortable||e&&mr(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;ui.length;){var t=ui[0];_r(t,this.options.selectedClass,!1),ui.shift(),Hr({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},$n(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[jr];t&&t.options.multiDrag&&!~ui.indexOf(e)&&(ii&&ii!==t&&(ii.multiDrag._deselectMultiDrag(),ii=t),_r(e,t.options.selectedClass,!0),ui.push(e))},deselect:function(e){var t=e.parentNode[jr],n=ui.indexOf(e);t&&t.options.multiDrag&&~n&&(_r(e,t.options.selectedClass,!1),ui.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return ui.forEach((function(r){var o;t.push({multiDragElement:r,index:r.sortableIndex}),o=fi&&r!==ai?-1:fi?Dr(r,":not(."+e.options.selectedClass+")"):Dr(r),n.push({multiDragElement:r,index:o})})),{items:tr(ui),clones:[].concat(ci),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})},Sortable:jo,Swap:function(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;$o=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,o=e.activeSortable,i=e.changed,a=e.cancel;if(o.options.swap){var l=this.sortable.el,s=this.options;if(n&&n!==l){var u=$o;!1!==r(n)?(_r(n,s.swapClass,!0),$o=n):$o=null,u&&u!==$o&&_r(u,s.swapClass,!1)}i(),t(!0),a()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,o=n||this.sortable,i=this.options;$o&&_r($o,i.swapClass,!1),$o&&(i.swap||n&&n.options.swap)&&r!==$o&&(o.captureAnimationState(),o!==t&&t.captureAnimationState(),function(e,t){var n,r,o=e.parentNode,i=t.parentNode;if(!o||!i||o.isEqualNode(t)||i.isEqualNode(e))return;n=Dr(e),r=Dr(t),o.isEqualNode(i)&&n1?arguments[1]:void 0)}})},"14c3":function(e,t,r){var o=r("c6b6"),i=r("9263");e.exports=function(e,t){var r=e.exec;if("function"==typeof r){var a=r.call(e,t);if("object"!==n(a))throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==o(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"159b":function(e,t,n){var r=n("da84"),o=n("fdbc"),i=n("17c2"),a=n("9112");for(var l in o){var s=r[l],u=s&&s.prototype;if(u&&u.forEach!==i)try{a(u,"forEach",i)}catch(c){u.forEach=i}}},"17c2":function(e,t,n){var r=n("b727").forEach,o=n("a640"),i=n("ae40"),a=o("forEach"),l=i("forEach");e.exports=a&&l?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"1be4":function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,n){var r=n("b622")("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(l){}return n}},"1d80":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,n){var r=n("d039"),o=n("b622"),i=n("2d00"),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"23cb":function(e,t,n){var r=n("a691"),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},"23e7":function(e,t,r){var o=r("da84"),i=r("06cf").f,a=r("9112"),l=r("6eeb"),s=r("ce4e"),u=r("e893"),c=r("94ca");e.exports=function(e,t){var r,d,f,p,h,m=e.target,g=e.global,v=e.stat;if(r=g?o:v?o[m]||s(m,{}):(o[m]||{}).prototype)for(d in t){if(p=t[d],f=e.noTargetGet?(h=i(r,d))&&h.value:r[d],!c(g?d:m+(v?".":"#")+d,e.forced)&&void 0!==f){if(n(p)===n(f))continue;u(p,f)}(e.sham||f&&f.sham)&&a(p,"sham",!0),l(r,d,p,e)}}},"241c":function(e,t,n){var r=n("ca84"),o=n("7839").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},"25f0":function(e,t,n){var r=n("6eeb"),o=n("825a"),i=n("d039"),a=n("ad6d"),l="toString",s=RegExp.prototype,u=s.toString,c=i((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),d=u.name!=l;(c||d)&&r(RegExp.prototype,l,(function(){var e=o(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in s)?a.call(e):n)}),{unsafe:!0})},"2ca0":function(e,t,n){var r,o=n("23e7"),i=n("06cf").f,a=n("50c4"),l=n("5a34"),s=n("1d80"),u=n("ab13"),c=n("c430"),d="".startsWith,f=Math.min,p=u("startsWith");o({target:"String",proto:!0,forced:!(!c&&!p&&(r=i(String.prototype,"startsWith"),r&&!r.writable)||p)},{startsWith:function(e){var t=String(s(this));l(e);var n=a(f(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return d?d.call(t,r,n):t.slice(n,n+r.length)===r}})},"2d00":function(e,t,n){var r,o,i=n("da84"),a=n("342f"),l=i.process,s=l&&l.versions,u=s&&s.v8;u?o=(r=u.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},"35a1":function(e,t,n){var r=n("f5df"),o=n("3f8c"),i=n("b622")("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},"37e8":function(e,t,n){var r=n("83ab"),o=n("9bf2"),i=n("825a"),a=n("df75");e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),l=r.length,s=0;l>s;)o.f(e,n=r[s++],t[n]);return e}},"3bbe":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(e,t,n){var r=n("6547").charAt,o=n("69f3"),i=n("7dd0"),a="String Iterator",l=o.set,s=o.getterFor(a);i(String,"String",(function(e){l(this,{type:a,string:String(e),index:0})}),(function(){var e,t=s(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},"3f8c":function(e,t){e.exports={}},4160:function(e,t,n){var r=n("23e7"),o=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},"428f":function(e,t,n){var r=n("da84");e.exports=r},"44ad":function(e,t,n){var r=n("d039"),o=n("c6b6"),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var r=n("b622"),o=n("7c73"),i=n("9bf2"),a=r("unscopables"),l=Array.prototype;null==l[a]&&i.f(l,a,{configurable:!0,value:o(null)}),e.exports=function(e){l[a][e]=!0}},"44e7":function(e,t,n){var r=n("861d"),o=n("c6b6"),i=n("b622")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},4930:function(e,t,n){var r=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"4d64":function(e,t,n){var r=n("fc6a"),o=n("50c4"),i=n("23cb"),a=function(e){return function(t,n,a){var l,s=r(t),u=o(s.length),c=i(a,u);if(e&&n!=n){for(;u>c;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4de4":function(e,t,n){var r=n("23e7"),o=n("b727").filter,i=n("1dde"),a=n("ae40"),l=i("filter"),s=a("filter");r({target:"Array",proto:!0,forced:!l||!s},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){var r=n("0366"),o=n("7b0b"),i=n("9bdd"),a=n("e95a"),l=n("50c4"),s=n("8418"),u=n("35a1");e.exports=function(e){var t,n,c,d,f,p,h=o(e),m="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,_=void 0!==v,b=u(h),y=0;if(_&&(v=r(v,g>2?arguments[2]:void 0,2)),null==b||m==Array&&a(b))for(n=new m(t=l(h.length));t>y;y++)p=_?v(h[y],y):h[y],s(n,y,p);else for(f=(d=b.call(h)).next,n=new m;!(c=f.call(d)).done;y++)p=_?i(d,v,[c.value,y],!0):c.value,s(n,y,p);return n.length=y,n}},"4fad":function(e,t,n){var r=n("23e7"),o=n("6f53").entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},"50c4":function(e,t,n){var r=n("a691"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},5319:function(e,t,n){var r=n("d784"),o=n("825a"),i=n("7b0b"),a=n("50c4"),l=n("a691"),s=n("1d80"),u=n("8aa5"),c=n("14c3"),d=Math.max,f=Math.min,p=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=r.REPLACE_KEEPS_$0,_=g?"$":"$0";return[function(n,r){var o=s(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!g&&v||"string"==typeof r&&-1===r.indexOf(_)){var i=n(t,e,this,r);if(i.done)return i.value}var s=o(e),p=String(this),h="function"==typeof r;h||(r=String(r));var m=s.global;if(m){var y=s.unicode;s.lastIndex=0}for(var w=[];;){var A=c(s,p);if(null===A)break;if(w.push(A),!m)break;""===String(A[0])&&(s.lastIndex=u(p,a(s.lastIndex),y))}for(var x,S="",E=0,T=0;T=E&&(S+=p.slice(E,I)+R,E=I+D.length)}return S+p.slice(E)}];function b(e,n,r,o,a,l){var s=r+e.length,u=o.length,c=m;return void 0!==a&&(a=i(a),c=h),t.call(l,c,(function(t,i){var l;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":l=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return t;if(c>u){var d=p(c/10);return 0===d?t:d<=u?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):t}l=o[c-1]}return void 0===l?"":l}))}}))},5692:function(e,t,n){var r=n("c430"),o=n("c6cd");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var r=n("d066"),o=n("241c"),i=n("7418"),a=n("825a");e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},"5a34":function(e,t,n){var r=n("44e7");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5db7":function(e,t,n){var r=n("23e7"),o=n("a2bf"),i=n("7b0b"),a=n("50c4"),l=n("1c0b"),s=n("65f0");r({target:"Array",proto:!0},{flatMap:function(e){var t,n=i(this),r=a(n.length);return l(e),(t=s(n,0)).length=o(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},6547:function(e,t,n){var r=n("a691"),o=n("1d80"),i=function(e){return function(t,n){var i,a,l=String(o(t)),s=r(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s))<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},"65f0":function(e,t,n){var r=n("861d"),o=n("e8b5"),i=n("b622")("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"69f3":function(e,t,n){var r,o,i,a=n("7f9a"),l=n("da84"),s=n("861d"),u=n("9112"),c=n("5135"),d=n("f772"),f=n("d012"),p=l.WeakMap;if(a){var h=new p,m=h.get,g=h.has,v=h.set;r=function(e,t){return v.call(h,e,t),t},o=function(e){return m.call(h,e)||{}},i=function(e){return g.call(h,e)}}else{var _=d("state");f[_]=!0,r=function(e,t){return u(e,_,t),t},o=function(e){return c(e,_)?e[_]:{}},i=function(e){return c(e,_)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},"6eeb":function(e,t,n){var r=n("da84"),o=n("9112"),i=n("5135"),a=n("ce4e"),l=n("8925"),s=n("69f3"),u=s.get,c=s.enforce,d=String(String).split("String");(e.exports=function(e,t,n,l){var s=!!l&&!!l.unsafe,u=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),c(n).source=d.join("string"==typeof t?t:"")),e!==r?(s?!f&&e[t]&&(u=!0):delete e[t],u?e[t]=n:o(e,t,n)):u?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||l(this)}))},"6f53":function(e,t,n){var r=n("83ab"),o=n("df75"),i=n("fc6a"),a=n("d1e7").f,l=function(e){return function(t){for(var n,l=i(t),s=o(l),u=s.length,c=0,d=[];u>c;)n=s[c++],r&&!a.call(l,n)||d.push(e?[n,l[n]]:l[n]);return d}};e.exports={entries:l(!0),values:l(!1)}},"73d9":function(e,t,n){n("44d2")("flatMap")},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var r=n("428f"),o=n("5135"),i=n("e538"),a=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,n){var r=n("1d80");e.exports=function(e){return Object(r(e))}},"7c73":function(e,t,n){var r,o=n("825a"),i=n("37e8"),a=n("7839"),l=n("d012"),s=n("1be4"),u=n("cc12"),c=n("f772"),d=c("IE_PROTO"),f=function(){},p=function(e){return"