index.a5f6d9ed.js 197 KB

123456789101112131415161718192021222324252627282930313233
  1. import{bQ as ha,ao as nn,d as Gt,r as wr,b7 as va,c as O,a5 as _t,q as Be,y as Un,F as wt,al as ga,bR as Go,bS as ma,bT as ya,$ as dr,Z as ba,B as so,_ as pr,R as Aa,an as Jt,e as Sa,bJ as Ea,f as xa,p as Rr,bL as go}from"./index.5f7ffb46.js";import{I as jt}from"./index.276a5d68.js";import{G as wa,a as Ta}from"./index.adf0b8fc.js";import{T as Zr}from"./index.ab2541bb.js";import{C as Ia}from"./index.abd668f7.js";var cl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAABYCAYAAABxlTA0AAAAAXNSR0IArs4c6QAABohJREFUeF7tnd1vVEUUwH+nC/qgIBp8IFGjIjZFeOFBo6AofwGE0C1GIGoEv5DEmECi0CnVBBJjguAHGEgAI10Ikb8ABUUjDzwA0lQ+oyY8QARFExW2x9x7t3W73e7euztTtnvnvjQhc8+c+e0w95wzZ84IDfKoMS1kelvJayvS0oryMOhDwCSECSgTwr/Bo1xDuBb+hasgZxB+Qvv7yEgf+bY+Maa/EYYmN1MJXb/4EbR/Hso8YC5wpyV9rgCHEA4iLQdl3Z4fLclNLGbUAWt3dip5WQK6BHgwsca1vXAOZDcZ3S1rc2drE1HbW6MCWPcuynBKFiPyMsoTwKj0WwaJInyH6qdM1z3Svi9fG7b4bzkdqJpFtyCZZaCrUabGV2sUWgpnQTai+Z1i9v3rqkdngNVkl4K+B3KPK+XtyNVfQd4Wk9tlR95QKdYBq8nOAD4CnnKhsEOZh4HXxORO2uzDGmDdunw8F//oBn0TGG9TyVGUdR3kA6ZMXCsrtl230a8VwGo67gdyoI/aUOrmy5CjQFZMz4V6dakbsHZ1LADdjlqzYesdk533hSsgL0pnz5f1CKwLsJr2d0DW30Szq56xx3lXQdeJ2ftunMbl2tQEWA0tkN0EvF5rx2PsvS2QWyWGxO53YsAF23YXqtkxBqk+dUVyaH5pUps5EeBw5krHF6mDO/DThJB7nk0ykxMCzm5O0bIw0ozfIia3Mu5/h9iACx+07riCm7udro374YsFODTFVPc3sbWQdD4oIgvjmHBVAYdOhOixprNzkyItbR/YySqzqjkjFQEX3N9vm8dDq5fqMMpHmTJxTiW3ujJg07EhDDX6pwIB2SimZ81IDUYEXIiKHRvDgZvRmhZBUGjWSFG4SoAPjcGQ42hBLe3nsJhcsKc47CkLOAqWs/NmaTtG+11WLmg/DHDoCiPBdkqD70Q02s8Q7Izo1FJXejjgro6XUN3WaOqPCX1Elktnz2fFug4BHO7+9rb0NdwG5ZigG7phZ2nrby3erR4K2LQ/F+YP+KcOArpEzN7PB+NDxZLUZI9AmLdg95n+GNzXBuPG2ZVbq7QbN+DnXjj1Q60SRn5POCKduTnDAEcZN5y2Hm94ehHMXWh/IDYkHtoPX++zIWnIPCXDtIEMosElQk2HAe203RtvbYXb7rAu1orAv36H91dYETVUiHSJ6THBvxUBzgY5W/ZzxVZthkl3OxiEBZFXL8Gm2KHdJB2eE5MLM5lCwAW3+EQSCbHbzpgN81+FTCb2K6PSMJ+HAx/DyeCz4+SZGbjPEeCu7EqUD510Ewi9awrcOw0yDZKPkr8Ov5yG3y46GzLCG9KZ2zwwg4O9//nuekul5ANicgskzCyn97LF5OdU0iwz6CvQNlm0O9tGnlOeigMCGaaLmvb5IHWlBzlQrUlE6gLRro7VqG5okhE11jBE1oia7A7g+cbSrFm0kR0B4CDx+MlmGVKDjeObAPBxYGaDKdYs6pwIAJ8HggRqd0+aomlDKV4IAF8CJjujm75oWjHKy6Jd2b9RbnUGOJXRtAJN4R/3gNMZTYsIh4BdLxHpjaYFiMMl4hzKA86WiLRG06IZfN6baU5nFse9o+EW8GFR07Ed9AW3/aRVeuAq+2CPu18/Cvb4cKU7wkG40gfc3fGNAu5+y8gR4WjLKBCuJus3Pe1TjjY9Q8Cut+3TGE0r2bYPqpS4STxJazStpWVGUE7MfepUOqNpQ1OnonXYUfJfKqNp5ZL/XKWvpi+apmXTVwsfu29RZlv/oKYpN22kBOxomfBHCOqfXJWOEPhDMPXxrXYIJlom/DGumilXO8YVLRP+IGJtgGMeRCy4zv4obXLK8Y7SDshVk/WHweNDTnYYvDCLA/fZlzOoDrm2cgYF784X5KgKuMaCHCHgqKKqLykzImSpr6RMYRb7okjlANsoijT4wfNlvUoR2yvr9b9VEVZa9YXpQiCWC9MVmW6+tCK4Ka0Yrce+OKjT4qCDrrRkfHnbquZb1KBqacVycnyB5ph0awVc8uHzJcYr8K5pBhfL80XyK8/mugEPOiP+moeypK0ALnKr/UUlJZitAS6ylf1VO0WQrQMuAu0vi6rXiqhmrPjrzmq0g6uBHRYZGbiwD3kFeNz1D1tBPwW+B/2kKS7sK+uk+Csnk87P2tuH5cSEZ5xemqp8ZfuOuCQjdvaRS6JEZEuXXvurrUB07S/hdb+3D7n2F/6EgWt/OYNIXyNe+/sfZeDDVd1yhKYAAAAASUVORK5CYII=";const mo=new ha,Uo={1:"A",2:"B",3:"C",4:"D",5:"E",6:"F",7:"G",8:"H",9:"I",10:"J"},St={RADIO:"RADIO",CHECKBOX:"CHECKBOX",LINK:"LINK",SORT:"SORT",PLAY:"PLAY"},mn={RADIO:"\u5355\u9009\u9898",CHECKBOX:"\u591A\u9009\u9898",LINK:"\u8FDE\u7EBF\u9898",SORT:"\u6392\u5E8F\u9898",PLAY:"\u6F14\u594F\u9898"},ke={IMAGE:"IMAGE",TXT:"TXT",AUDIO:"AUDIO"},Oa="_unitSubjectTitle_1x5pg_1",Da="_unitScore_1x5pg_7",Ca="_unitDetail_1x5pg_14",Pa="_unitTitleImg_1x5pg_23",Ra="_unitTitleRate_1x5pg_26",Na="_icon_1x5pg_37",Ma="_rate_1x5pg_41";var Pt={unitSubjectTitle:Oa,unitScore:Da,unitDetail:Ca,unitTitleImg:Pa,unitTitleRate:Ra,icon:Na,rate:Ma},Fa="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAmVJREFUWEftl81LVFEYxn9nNBtzZpyJhhlEgxaKIIJQSaLQEC1qE9TKTQSh9AFtrE1/QZvoi6KgbVIWRhQERZBjZW2UMgaZakKiZKjMtA9KHU8cz1zuOB/NHWPmQvhuLpz33PM8z3ve89x7BED3NdkgHZwQku0SPGqsWCFgRgoeiAWOX+4Ur8QiuOAZ4CsWaI51p4Rki+i6LvuR7CkxuIYT3BTdfXK62GXPJU5th+jqk9IW9UnQFQL/fwXcq2FXEwgBt17C99mlHVfUClQ74VgIgklrG3gDvSMlIuCrhKMhCLhNwHAMrgyXgMDaNVq532WCTUzDyQH49tsCAWe5nvRrvnCHWFellaunEe+/wqlwJviiGaYbUXMQDrWDcqfeYRgat05CKVbKVQWMeDcFp8OZzWfkMwgcbIONdTqtPPLqCDyM5ScRcGnlvhTw8S9wZhB+pHV+6moZBDo2wL7N5hRFon8U7kVzkwi6Nbi30pzzdhLODsLPub+Tz3oMdzbC7mZ9do24E4HbkczFajwa3OM0c7HPWrmVHsrpA9vqobNlKYn7UbjxwgSqrYaeECizMeL1Jzj3yBp41iZM1ai2Y+8mcKRUIpw0k1ov9GwFVwp49KMGn03k75mcTZj+aut62N8KZQ4z8/wD1PuhqsIcG4vD+SeFgeetgLF8Sw0caIPysuzKInG48BjmFqwrt1wBY2JTAA63Q0XSpIzx0Qm4OATzywC3XAEDrMEPRzrAuUqPqK249BQSywQvmIB6oc4LOxohPgN3xyDxjz90Rf0cW+mIFQL2V8D+i4ntVzO7L6fqqNh5Pf8DS9v7/ahSKSsAAAAASUVORK5CYII=";const La="_unitAudio_ml4u4_1",Ba="_nativeAudio_ml4u4_5",ja="_htmlAudio_ml4u4_9",Ga="_htmlTimes_ml4u4_22",Ua="_iconAudio_ml4u4_31",Ha="_audioStatus_ml4u4_35";var yn={unitAudio:La,nativeAudio:Ba,htmlAudio:ja,htmlTimes:Ga,iconAudio:Ua,audioStatus:Ha},Ho={};/*!
  2. * howler.js v2.2.3
  3. * howlerjs.com
  4. *
  5. * (c) 2013-2020, James Simpson of GoldFire Studios
  6. * goldfirestudios.com
  7. *
  8. * MIT License
  9. */(function(i){(function(){var r=function(){this.init()};r.prototype={init:function(){var t=this||e;return t._counter=1e3,t._html5AudioPool=[],t.html5PoolSize=10,t._codecs={},t._howls=[],t._muted=!1,t._volume=1,t._canPlayEvent="canplaythrough",t._navigator=typeof window!="undefined"&&window.navigator?window.navigator:null,t.masterGain=null,t.noAudio=!1,t.usingWebAudio=!0,t.autoSuspend=!0,t.ctx=null,t.autoUnlock=!0,t._setup(),t},volume:function(t){var s=this||e;if(t=parseFloat(t),s.ctx||h(),typeof t!="undefined"&&t>=0&&t<=1){if(s._volume=t,s._muted)return s;s.usingWebAudio&&s.masterGain.gain.setValueAtTime(t,e.ctx.currentTime);for(var c=0;c<s._howls.length;c++)if(!s._howls[c]._webAudio)for(var p=s._howls[c]._getSoundIds(),v=0;v<p.length;v++){var g=s._howls[c]._soundById(p[v]);g&&g._node&&(g._node.volume=g._volume*t)}return s}return s._volume},mute:function(t){var s=this||e;s.ctx||h(),s._muted=t,s.usingWebAudio&&s.masterGain.gain.setValueAtTime(t?0:s._volume,e.ctx.currentTime);for(var c=0;c<s._howls.length;c++)if(!s._howls[c]._webAudio)for(var p=s._howls[c]._getSoundIds(),v=0;v<p.length;v++){var g=s._howls[c]._soundById(p[v]);g&&g._node&&(g._node.muted=t?!0:g._muted)}return s},stop:function(){for(var t=this||e,s=0;s<t._howls.length;s++)t._howls[s].stop();return t},unload:function(){for(var t=this||e,s=t._howls.length-1;s>=0;s--)t._howls[s].unload();return t.usingWebAudio&&t.ctx&&typeof t.ctx.close!="undefined"&&(t.ctx.close(),t.ctx=null,h()),t},codecs:function(t){return(this||e)._codecs[t.replace(/^x-/,"")]},_setup:function(){var t=this||e;if(t.state=t.ctx&&t.ctx.state||"suspended",t._autoSuspend(),!t.usingWebAudio)if(typeof Audio!="undefined")try{var s=new Audio;typeof s.oncanplaythrough=="undefined"&&(t._canPlayEvent="canplay")}catch{t.noAudio=!0}else t.noAudio=!0;try{var s=new Audio;s.muted&&(t.noAudio=!0)}catch{}return t.noAudio||t._setupCodecs(),t},_setupCodecs:function(){var t=this||e,s=null;try{s=typeof Audio!="undefined"?new Audio:null}catch{return t}if(!s||typeof s.canPlayType!="function")return t;var c=s.canPlayType("audio/mpeg;").replace(/^no$/,""),p=t._navigator?t._navigator.userAgent:"",v=p.match(/OPR\/([0-6].)/g),g=v&&parseInt(v[0].split("/")[1],10)<33,m=p.indexOf("Safari")!==-1&&p.indexOf("Chrome")===-1,y=p.match(/Version\/(.*?) /),b=m&&y&&parseInt(y[1],10)<15;return t._codecs={mp3:!!(!g&&(c||s.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!c,opus:!!s.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!s.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!s.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(s.canPlayType('audio/wav; codecs="1"')||s.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!s.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!s.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(s.canPlayType("audio/x-m4a;")||s.canPlayType("audio/m4a;")||s.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(s.canPlayType("audio/x-m4b;")||s.canPlayType("audio/m4b;")||s.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(s.canPlayType("audio/x-mp4;")||s.canPlayType("audio/mp4;")||s.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!b&&s.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!b&&s.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!s.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(s.canPlayType("audio/x-flac;")||s.canPlayType("audio/flac;")).replace(/^no$/,"")},t},_unlockAudio:function(){var t=this||e;if(!(t._audioUnlocked||!t.ctx)){t._audioUnlocked=!1,t.autoUnlock=!1,!t._mobileUnloaded&&t.ctx.sampleRate!==44100&&(t._mobileUnloaded=!0,t.unload()),t._scratchBuffer=t.ctx.createBuffer(1,1,22050);var s=function(c){for(;t._html5AudioPool.length<t.html5PoolSize;)try{var p=new Audio;p._unlocked=!0,t._releaseHtml5Audio(p)}catch{t.noAudio=!0;break}for(var v=0;v<t._howls.length;v++)if(!t._howls[v]._webAudio)for(var g=t._howls[v]._getSoundIds(),m=0;m<g.length;m++){var y=t._howls[v]._soundById(g[m]);y&&y._node&&!y._node._unlocked&&(y._node._unlocked=!0,y._node.load())}t._autoResume();var b=t.ctx.createBufferSource();b.buffer=t._scratchBuffer,b.connect(t.ctx.destination),typeof b.start=="undefined"?b.noteOn(0):b.start(0),typeof t.ctx.resume=="function"&&t.ctx.resume(),b.onended=function(){b.disconnect(0),t._audioUnlocked=!0,document.removeEventListener("touchstart",s,!0),document.removeEventListener("touchend",s,!0),document.removeEventListener("click",s,!0),document.removeEventListener("keydown",s,!0);for(var A=0;A<t._howls.length;A++)t._howls[A]._emit("unlock")}};return document.addEventListener("touchstart",s,!0),document.addEventListener("touchend",s,!0),document.addEventListener("click",s,!0),document.addEventListener("keydown",s,!0),t}},_obtainHtml5Audio:function(){var t=this||e;if(t._html5AudioPool.length)return t._html5AudioPool.pop();var s=new Audio().play();return s&&typeof Promise!="undefined"&&(s instanceof Promise||typeof s.then=="function")&&s.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(t){var s=this||e;return t._unlocked&&s._html5AudioPool.push(t),s},_autoSuspend:function(){var t=this;if(!(!t.autoSuspend||!t.ctx||typeof t.ctx.suspend=="undefined"||!e.usingWebAudio)){for(var s=0;s<t._howls.length;s++)if(t._howls[s]._webAudio){for(var c=0;c<t._howls[s]._sounds.length;c++)if(!t._howls[s]._sounds[c]._paused)return t}return t._suspendTimer&&clearTimeout(t._suspendTimer),t._suspendTimer=setTimeout(function(){if(!!t.autoSuspend){t._suspendTimer=null,t.state="suspending";var p=function(){t.state="suspended",t._resumeAfterSuspend&&(delete t._resumeAfterSuspend,t._autoResume())};t.ctx.suspend().then(p,p)}},3e4),t}},_autoResume:function(){var t=this;if(!(!t.ctx||typeof t.ctx.resume=="undefined"||!e.usingWebAudio))return t.state==="running"&&t.ctx.state!=="interrupted"&&t._suspendTimer?(clearTimeout(t._suspendTimer),t._suspendTimer=null):t.state==="suspended"||t.state==="running"&&t.ctx.state==="interrupted"?(t.ctx.resume().then(function(){t.state="running";for(var s=0;s<t._howls.length;s++)t._howls[s]._emit("resume")}),t._suspendTimer&&(clearTimeout(t._suspendTimer),t._suspendTimer=null)):t.state==="suspending"&&(t._resumeAfterSuspend=!0),t}};var e=new r,o=function(t){var s=this;if(!t.src||t.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}s.init(t)};o.prototype={init:function(t){var s=this;return e.ctx||h(),s._autoplay=t.autoplay||!1,s._format=typeof t.format!="string"?t.format:[t.format],s._html5=t.html5||!1,s._muted=t.mute||!1,s._loop=t.loop||!1,s._pool=t.pool||5,s._preload=typeof t.preload=="boolean"||t.preload==="metadata"?t.preload:!0,s._rate=t.rate||1,s._sprite=t.sprite||{},s._src=typeof t.src!="string"?t.src:[t.src],s._volume=t.volume!==void 0?t.volume:1,s._xhr={method:t.xhr&&t.xhr.method?t.xhr.method:"GET",headers:t.xhr&&t.xhr.headers?t.xhr.headers:null,withCredentials:t.xhr&&t.xhr.withCredentials?t.xhr.withCredentials:!1},s._duration=0,s._state="unloaded",s._sounds=[],s._endTimers={},s._queue=[],s._playLock=!1,s._onend=t.onend?[{fn:t.onend}]:[],s._onfade=t.onfade?[{fn:t.onfade}]:[],s._onload=t.onload?[{fn:t.onload}]:[],s._onloaderror=t.onloaderror?[{fn:t.onloaderror}]:[],s._onplayerror=t.onplayerror?[{fn:t.onplayerror}]:[],s._onpause=t.onpause?[{fn:t.onpause}]:[],s._onplay=t.onplay?[{fn:t.onplay}]:[],s._onstop=t.onstop?[{fn:t.onstop}]:[],s._onmute=t.onmute?[{fn:t.onmute}]:[],s._onvolume=t.onvolume?[{fn:t.onvolume}]:[],s._onrate=t.onrate?[{fn:t.onrate}]:[],s._onseek=t.onseek?[{fn:t.onseek}]:[],s._onunlock=t.onunlock?[{fn:t.onunlock}]:[],s._onresume=[],s._webAudio=e.usingWebAudio&&!s._html5,typeof e.ctx!="undefined"&&e.ctx&&e.autoUnlock&&e._unlockAudio(),e._howls.push(s),s._autoplay&&s._queue.push({event:"play",action:function(){s.play()}}),s._preload&&s._preload!=="none"&&s.load(),s},load:function(){var t=this,s=null;if(e.noAudio){t._emit("loaderror",null,"No audio support.");return}typeof t._src=="string"&&(t._src=[t._src]);for(var c=0;c<t._src.length;c++){var p,v;if(t._format&&t._format[c])p=t._format[c];else{if(v=t._src[c],typeof v!="string"){t._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}p=/^data:audio\/([^;,]+);/i.exec(v),p||(p=/\.([^.]+)$/.exec(v.split("?",1)[0])),p&&(p=p[1].toLowerCase())}if(p||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),p&&e.codecs(p)){s=t._src[c];break}}if(!s){t._emit("loaderror",null,"No codec support for selected audio sources.");return}return t._src=s,t._state="loading",window.location.protocol==="https:"&&s.slice(0,5)==="http:"&&(t._html5=!0,t._webAudio=!1),new a(t),t._webAudio&&n(t),t},play:function(t,s){var c=this,p=null;if(typeof t=="number")p=t,t=null;else{if(typeof t=="string"&&c._state==="loaded"&&!c._sprite[t])return null;if(typeof t=="undefined"&&(t="__default",!c._playLock)){for(var v=0,g=0;g<c._sounds.length;g++)c._sounds[g]._paused&&!c._sounds[g]._ended&&(v++,p=c._sounds[g]._id);v===1?t=null:p=null}}var m=p?c._soundById(p):c._inactiveSound();if(!m)return null;if(p&&!t&&(t=m._sprite||"__default"),c._state!=="loaded"){m._sprite=t,m._ended=!1;var y=m._id;return c._queue.push({event:"play",action:function(){c.play(y)}}),y}if(p&&!m._paused)return s||c._loadQueue("play"),m._id;c._webAudio&&e._autoResume();var b=Math.max(0,m._seek>0?m._seek:c._sprite[t][0]/1e3),A=Math.max(0,(c._sprite[t][0]+c._sprite[t][1])/1e3-b),I=A*1e3/Math.abs(m._rate),T=c._sprite[t][0]/1e3,B=(c._sprite[t][0]+c._sprite[t][1])/1e3;m._sprite=t,m._ended=!1;var j=function(){m._paused=!1,m._seek=b,m._start=T,m._stop=B,m._loop=!!(m._loop||c._sprite[t][2])};if(b>=B){c._ended(m);return}var x=m._node;if(c._webAudio){var M=function(){c._playLock=!1,j(),c._refreshBuffer(m);var P=m._muted||c._muted?0:m._volume;x.gain.setValueAtTime(P,e.ctx.currentTime),m._playStart=e.ctx.currentTime,typeof x.bufferSource.start=="undefined"?m._loop?x.bufferSource.noteGrainOn(0,b,86400):x.bufferSource.noteGrainOn(0,b,A):m._loop?x.bufferSource.start(0,b,86400):x.bufferSource.start(0,b,A),I!==1/0&&(c._endTimers[m._id]=setTimeout(c._ended.bind(c,m),I)),s||setTimeout(function(){c._emit("play",m._id),c._loadQueue()},0)};e.state==="running"&&e.ctx.state!=="interrupted"?M():(c._playLock=!0,c.once("resume",M),c._clearTimer(m._id))}else{var L=function(){x.currentTime=b,x.muted=m._muted||c._muted||e._muted||x.muted,x.volume=m._volume*e.volume(),x.playbackRate=m._rate;try{var P=x.play();if(P&&typeof Promise!="undefined"&&(P instanceof Promise||typeof P.then=="function")?(c._playLock=!0,j(),P.then(function(){c._playLock=!1,x._unlocked=!0,s?c._loadQueue():c._emit("play",m._id)}).catch(function(){c._playLock=!1,c._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})):s||(c._playLock=!1,j(),c._emit("play",m._id)),x.playbackRate=m._rate,x.paused){c._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}t!=="__default"||m._loop?c._endTimers[m._id]=setTimeout(c._ended.bind(c,m),I):(c._endTimers[m._id]=function(){c._ended(m),x.removeEventListener("ended",c._endTimers[m._id],!1)},x.addEventListener("ended",c._endTimers[m._id],!1))}catch($){c._emit("playerror",m._id,$)}};x.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(x.src=c._src,x.load());var K=window&&window.ejecta||!x.readyState&&e._navigator.isCocoonJS;if(x.readyState>=3||K)L();else{c._playLock=!0,c._state="loading";var D=function(){c._state="loaded",L(),x.removeEventListener(e._canPlayEvent,D,!1)};x.addEventListener(e._canPlayEvent,D,!1),c._clearTimer(m._id)}}return m._id},pause:function(t){var s=this;if(s._state!=="loaded"||s._playLock)return s._queue.push({event:"pause",action:function(){s.pause(t)}}),s;for(var c=s._getSoundIds(t),p=0;p<c.length;p++){s._clearTimer(c[p]);var v=s._soundById(c[p]);if(v&&!v._paused&&(v._seek=s.seek(c[p]),v._rateSeek=0,v._paused=!0,s._stopFade(c[p]),v._node))if(s._webAudio){if(!v._node.bufferSource)continue;typeof v._node.bufferSource.stop=="undefined"?v._node.bufferSource.noteOff(0):v._node.bufferSource.stop(0),s._cleanBuffer(v._node)}else(!isNaN(v._node.duration)||v._node.duration===1/0)&&v._node.pause();arguments[1]||s._emit("pause",v?v._id:null)}return s},stop:function(t,s){var c=this;if(c._state!=="loaded"||c._playLock)return c._queue.push({event:"stop",action:function(){c.stop(t)}}),c;for(var p=c._getSoundIds(t),v=0;v<p.length;v++){c._clearTimer(p[v]);var g=c._soundById(p[v]);g&&(g._seek=g._start||0,g._rateSeek=0,g._paused=!0,g._ended=!0,c._stopFade(p[v]),g._node&&(c._webAudio?g._node.bufferSource&&(typeof g._node.bufferSource.stop=="undefined"?g._node.bufferSource.noteOff(0):g._node.bufferSource.stop(0),c._cleanBuffer(g._node)):(!isNaN(g._node.duration)||g._node.duration===1/0)&&(g._node.currentTime=g._start||0,g._node.pause(),g._node.duration===1/0&&c._clearSound(g._node))),s||c._emit("stop",g._id))}return c},mute:function(t,s){var c=this;if(c._state!=="loaded"||c._playLock)return c._queue.push({event:"mute",action:function(){c.mute(t,s)}}),c;if(typeof s=="undefined")if(typeof t=="boolean")c._muted=t;else return c._muted;for(var p=c._getSoundIds(s),v=0;v<p.length;v++){var g=c._soundById(p[v]);g&&(g._muted=t,g._interval&&c._stopFade(g._id),c._webAudio&&g._node?g._node.gain.setValueAtTime(t?0:g._volume,e.ctx.currentTime):g._node&&(g._node.muted=e._muted?!0:t),c._emit("mute",g._id))}return c},volume:function(){var t=this,s=arguments,c,p;if(s.length===0)return t._volume;if(s.length===1||s.length===2&&typeof s[1]=="undefined"){var v=t._getSoundIds(),g=v.indexOf(s[0]);g>=0?p=parseInt(s[0],10):c=parseFloat(s[0])}else s.length>=2&&(c=parseFloat(s[0]),p=parseInt(s[1],10));var m;if(typeof c!="undefined"&&c>=0&&c<=1){if(t._state!=="loaded"||t._playLock)return t._queue.push({event:"volume",action:function(){t.volume.apply(t,s)}}),t;typeof p=="undefined"&&(t._volume=c),p=t._getSoundIds(p);for(var y=0;y<p.length;y++)m=t._soundById(p[y]),m&&(m._volume=c,s[2]||t._stopFade(p[y]),t._webAudio&&m._node&&!m._muted?m._node.gain.setValueAtTime(c,e.ctx.currentTime):m._node&&!m._muted&&(m._node.volume=c*e.volume()),t._emit("volume",m._id))}else return m=p?t._soundById(p):t._sounds[0],m?m._volume:0;return t},fade:function(t,s,c,p){var v=this;if(v._state!=="loaded"||v._playLock)return v._queue.push({event:"fade",action:function(){v.fade(t,s,c,p)}}),v;t=Math.min(Math.max(0,parseFloat(t)),1),s=Math.min(Math.max(0,parseFloat(s)),1),c=parseFloat(c),v.volume(t,p);for(var g=v._getSoundIds(p),m=0;m<g.length;m++){var y=v._soundById(g[m]);if(y){if(p||v._stopFade(g[m]),v._webAudio&&!y._muted){var b=e.ctx.currentTime,A=b+c/1e3;y._volume=t,y._node.gain.setValueAtTime(t,b),y._node.gain.linearRampToValueAtTime(s,A)}v._startFadeInterval(y,t,s,c,g[m],typeof p=="undefined")}}return v},_startFadeInterval:function(t,s,c,p,v,g){var m=this,y=s,b=c-s,A=Math.abs(b/.01),I=Math.max(4,A>0?p/A:p),T=Date.now();t._fadeTo=c,t._interval=setInterval(function(){var B=(Date.now()-T)/p;T=Date.now(),y+=b*B,y=Math.round(y*100)/100,b<0?y=Math.max(c,y):y=Math.min(c,y),m._webAudio?t._volume=y:m.volume(y,t._id,!0),g&&(m._volume=y),(c<s&&y<=c||c>s&&y>=c)&&(clearInterval(t._interval),t._interval=null,t._fadeTo=null,m.volume(c,t._id),m._emit("fade",t._id))},I)},_stopFade:function(t){var s=this,c=s._soundById(t);return c&&c._interval&&(s._webAudio&&c._node.gain.cancelScheduledValues(e.ctx.currentTime),clearInterval(c._interval),c._interval=null,s.volume(c._fadeTo,t),c._fadeTo=null,s._emit("fade",t)),s},loop:function(){var t=this,s=arguments,c,p,v;if(s.length===0)return t._loop;if(s.length===1)if(typeof s[0]=="boolean")c=s[0],t._loop=c;else return v=t._soundById(parseInt(s[0],10)),v?v._loop:!1;else s.length===2&&(c=s[0],p=parseInt(s[1],10));for(var g=t._getSoundIds(p),m=0;m<g.length;m++)v=t._soundById(g[m]),v&&(v._loop=c,t._webAudio&&v._node&&v._node.bufferSource&&(v._node.bufferSource.loop=c,c&&(v._node.bufferSource.loopStart=v._start||0,v._node.bufferSource.loopEnd=v._stop,t.playing(g[m])&&(t.pause(g[m],!0),t.play(g[m],!0)))));return t},rate:function(){var t=this,s=arguments,c,p;if(s.length===0)p=t._sounds[0]._id;else if(s.length===1){var v=t._getSoundIds(),g=v.indexOf(s[0]);g>=0?p=parseInt(s[0],10):c=parseFloat(s[0])}else s.length===2&&(c=parseFloat(s[0]),p=parseInt(s[1],10));var m;if(typeof c=="number"){if(t._state!=="loaded"||t._playLock)return t._queue.push({event:"rate",action:function(){t.rate.apply(t,s)}}),t;typeof p=="undefined"&&(t._rate=c),p=t._getSoundIds(p);for(var y=0;y<p.length;y++)if(m=t._soundById(p[y]),m){t.playing(p[y])&&(m._rateSeek=t.seek(p[y]),m._playStart=t._webAudio?e.ctx.currentTime:m._playStart),m._rate=c,t._webAudio&&m._node&&m._node.bufferSource?m._node.bufferSource.playbackRate.setValueAtTime(c,e.ctx.currentTime):m._node&&(m._node.playbackRate=c);var b=t.seek(p[y]),A=(t._sprite[m._sprite][0]+t._sprite[m._sprite][1])/1e3-b,I=A*1e3/Math.abs(m._rate);(t._endTimers[p[y]]||!m._paused)&&(t._clearTimer(p[y]),t._endTimers[p[y]]=setTimeout(t._ended.bind(t,m),I)),t._emit("rate",m._id)}}else return m=t._soundById(p),m?m._rate:t._rate;return t},seek:function(){var t=this,s=arguments,c,p;if(s.length===0)t._sounds.length&&(p=t._sounds[0]._id);else if(s.length===1){var v=t._getSoundIds(),g=v.indexOf(s[0]);g>=0?p=parseInt(s[0],10):t._sounds.length&&(p=t._sounds[0]._id,c=parseFloat(s[0]))}else s.length===2&&(c=parseFloat(s[0]),p=parseInt(s[1],10));if(typeof p=="undefined")return 0;if(typeof c=="number"&&(t._state!=="loaded"||t._playLock))return t._queue.push({event:"seek",action:function(){t.seek.apply(t,s)}}),t;var m=t._soundById(p);if(m)if(typeof c=="number"&&c>=0){var y=t.playing(p);y&&t.pause(p,!0),m._seek=c,m._ended=!1,t._clearTimer(p),!t._webAudio&&m._node&&!isNaN(m._node.duration)&&(m._node.currentTime=c);var b=function(){y&&t.play(p,!0),t._emit("seek",p)};if(y&&!t._webAudio){var A=function(){t._playLock?setTimeout(A,0):b()};setTimeout(A,0)}else b()}else if(t._webAudio){var I=t.playing(p)?e.ctx.currentTime-m._playStart:0,T=m._rateSeek?m._rateSeek-m._seek:0;return m._seek+(T+I*Math.abs(m._rate))}else return m._node.currentTime;return t},playing:function(t){var s=this;if(typeof t=="number"){var c=s._soundById(t);return c?!c._paused:!1}for(var p=0;p<s._sounds.length;p++)if(!s._sounds[p]._paused)return!0;return!1},duration:function(t){var s=this,c=s._duration,p=s._soundById(t);return p&&(c=s._sprite[p._sprite][1]/1e3),c},state:function(){return this._state},unload:function(){for(var t=this,s=t._sounds,c=0;c<s.length;c++)s[c]._paused||t.stop(s[c]._id),t._webAudio||(t._clearSound(s[c]._node),s[c]._node.removeEventListener("error",s[c]._errorFn,!1),s[c]._node.removeEventListener(e._canPlayEvent,s[c]._loadFn,!1),s[c]._node.removeEventListener("ended",s[c]._endFn,!1),e._releaseHtml5Audio(s[c]._node)),delete s[c]._node,t._clearTimer(s[c]._id);var p=e._howls.indexOf(t);p>=0&&e._howls.splice(p,1);var v=!0;for(c=0;c<e._howls.length;c++)if(e._howls[c]._src===t._src||t._src.indexOf(e._howls[c]._src)>=0){v=!1;break}return f&&v&&delete f[t._src],e.noAudio=!1,t._state="unloaded",t._sounds=[],t=null,null},on:function(t,s,c,p){var v=this,g=v["_on"+t];return typeof s=="function"&&g.push(p?{id:c,fn:s,once:p}:{id:c,fn:s}),v},off:function(t,s,c){var p=this,v=p["_on"+t],g=0;if(typeof s=="number"&&(c=s,s=null),s||c)for(g=0;g<v.length;g++){var m=c===v[g].id;if(s===v[g].fn&&m||!s&&m){v.splice(g,1);break}}else if(t)p["_on"+t]=[];else{var y=Object.keys(p);for(g=0;g<y.length;g++)y[g].indexOf("_on")===0&&Array.isArray(p[y[g]])&&(p[y[g]]=[])}return p},once:function(t,s,c){var p=this;return p.on(t,s,c,1),p},_emit:function(t,s,c){for(var p=this,v=p["_on"+t],g=v.length-1;g>=0;g--)(!v[g].id||v[g].id===s||t==="load")&&(setTimeout(function(m){m.call(this,s,c)}.bind(p,v[g].fn),0),v[g].once&&p.off(t,v[g].fn,v[g].id));return p._loadQueue(t),p},_loadQueue:function(t){var s=this;if(s._queue.length>0){var c=s._queue[0];c.event===t&&(s._queue.shift(),s._loadQueue()),t||c.action()}return s},_ended:function(t){var s=this,c=t._sprite;if(!s._webAudio&&t._node&&!t._node.paused&&!t._node.ended&&t._node.currentTime<t._stop)return setTimeout(s._ended.bind(s,t),100),s;var p=!!(t._loop||s._sprite[c][2]);if(s._emit("end",t._id),!s._webAudio&&p&&s.stop(t._id,!0).play(t._id),s._webAudio&&p){s._emit("play",t._id),t._seek=t._start||0,t._rateSeek=0,t._playStart=e.ctx.currentTime;var v=(t._stop-t._start)*1e3/Math.abs(t._rate);s._endTimers[t._id]=setTimeout(s._ended.bind(s,t),v)}return s._webAudio&&!p&&(t._paused=!0,t._ended=!0,t._seek=t._start||0,t._rateSeek=0,s._clearTimer(t._id),s._cleanBuffer(t._node),e._autoSuspend()),!s._webAudio&&!p&&s.stop(t._id,!0),s},_clearTimer:function(t){var s=this;if(s._endTimers[t]){if(typeof s._endTimers[t]!="function")clearTimeout(s._endTimers[t]);else{var c=s._soundById(t);c&&c._node&&c._node.removeEventListener("ended",s._endTimers[t],!1)}delete s._endTimers[t]}return s},_soundById:function(t){for(var s=this,c=0;c<s._sounds.length;c++)if(t===s._sounds[c]._id)return s._sounds[c];return null},_inactiveSound:function(){var t=this;t._drain();for(var s=0;s<t._sounds.length;s++)if(t._sounds[s]._ended)return t._sounds[s].reset();return new a(t)},_drain:function(){var t=this,s=t._pool,c=0,p=0;if(!(t._sounds.length<s)){for(p=0;p<t._sounds.length;p++)t._sounds[p]._ended&&c++;for(p=t._sounds.length-1;p>=0;p--){if(c<=s)return;t._sounds[p]._ended&&(t._webAudio&&t._sounds[p]._node&&t._sounds[p]._node.disconnect(0),t._sounds.splice(p,1),c--)}}},_getSoundIds:function(t){var s=this;if(typeof t=="undefined"){for(var c=[],p=0;p<s._sounds.length;p++)c.push(s._sounds[p]._id);return c}else return[t]},_refreshBuffer:function(t){var s=this;return t._node.bufferSource=e.ctx.createBufferSource(),t._node.bufferSource.buffer=f[s._src],t._panner?t._node.bufferSource.connect(t._panner):t._node.bufferSource.connect(t._node),t._node.bufferSource.loop=t._loop,t._loop&&(t._node.bufferSource.loopStart=t._start||0,t._node.bufferSource.loopEnd=t._stop||0),t._node.bufferSource.playbackRate.setValueAtTime(t._rate,e.ctx.currentTime),s},_cleanBuffer:function(t){var s=this,c=e._navigator&&e._navigator.vendor.indexOf("Apple")>=0;if(e._scratchBuffer&&t.bufferSource&&(t.bufferSource.onended=null,t.bufferSource.disconnect(0),c))try{t.bufferSource.buffer=e._scratchBuffer}catch{}return t.bufferSource=null,s},_clearSound:function(t){var s=/MSIE |Trident\//.test(e._navigator&&e._navigator.userAgent);s||(t.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var a=function(t){this._parent=t,this.init()};a.prototype={init:function(){var t=this,s=t._parent;return t._muted=s._muted,t._loop=s._loop,t._volume=s._volume,t._rate=s._rate,t._seek=0,t._paused=!0,t._ended=!0,t._sprite="__default",t._id=++e._counter,s._sounds.push(t),t.create(),t},create:function(){var t=this,s=t._parent,c=e._muted||t._muted||t._parent._muted?0:t._volume;return s._webAudio?(t._node=typeof e.ctx.createGain=="undefined"?e.ctx.createGainNode():e.ctx.createGain(),t._node.gain.setValueAtTime(c,e.ctx.currentTime),t._node.paused=!0,t._node.connect(e.masterGain)):e.noAudio||(t._node=e._obtainHtml5Audio(),t._errorFn=t._errorListener.bind(t),t._node.addEventListener("error",t._errorFn,!1),t._loadFn=t._loadListener.bind(t),t._node.addEventListener(e._canPlayEvent,t._loadFn,!1),t._endFn=t._endListener.bind(t),t._node.addEventListener("ended",t._endFn,!1),t._node.src=s._src,t._node.preload=s._preload===!0?"auto":s._preload,t._node.volume=c*e.volume(),t._node.load()),t},reset:function(){var t=this,s=t._parent;return t._muted=s._muted,t._loop=s._loop,t._volume=s._volume,t._rate=s._rate,t._seek=0,t._rateSeek=0,t._paused=!0,t._ended=!0,t._sprite="__default",t._id=++e._counter,t},_errorListener:function(){var t=this;t._parent._emit("loaderror",t._id,t._node.error?t._node.error.code:0),t._node.removeEventListener("error",t._errorFn,!1)},_loadListener:function(){var t=this,s=t._parent;s._duration=Math.ceil(t._node.duration*10)/10,Object.keys(s._sprite).length===0&&(s._sprite={__default:[0,s._duration*1e3]}),s._state!=="loaded"&&(s._state="loaded",s._emit("load"),s._loadQueue()),t._node.removeEventListener(e._canPlayEvent,t._loadFn,!1)},_endListener:function(){var t=this,s=t._parent;s._duration===1/0&&(s._duration=Math.ceil(t._node.duration*10)/10,s._sprite.__default[1]===1/0&&(s._sprite.__default[1]=s._duration*1e3),s._ended(t)),t._node.removeEventListener("ended",t._endFn,!1)}};var f={},n=function(t){var s=t._src;if(f[s]){t._duration=f[s].duration,d(t);return}if(/^data:[^;]+;base64,/.test(s)){for(var c=atob(s.split(",")[1]),p=new Uint8Array(c.length),v=0;v<c.length;++v)p[v]=c.charCodeAt(v);u(p.buffer,t)}else{var g=new XMLHttpRequest;g.open(t._xhr.method,s,!0),g.withCredentials=t._xhr.withCredentials,g.responseType="arraybuffer",t._xhr.headers&&Object.keys(t._xhr.headers).forEach(function(m){g.setRequestHeader(m,t._xhr.headers[m])}),g.onload=function(){var m=(g.status+"")[0];if(m!=="0"&&m!=="2"&&m!=="3"){t._emit("loaderror",null,"Failed loading audio file with status: "+g.status+".");return}u(g.response,t)},g.onerror=function(){t._webAudio&&(t._html5=!0,t._webAudio=!1,t._sounds=[],delete f[s],t.load())},l(g)}},l=function(t){try{t.send()}catch{t.onerror()}},u=function(t,s){var c=function(){s._emit("loaderror",null,"Decoding audio data failed.")},p=function(v){v&&s._sounds.length>0?(f[s._src]=v,d(s,v)):c()};typeof Promise!="undefined"&&e.ctx.decodeAudioData.length===1?e.ctx.decodeAudioData(t).then(p).catch(c):e.ctx.decodeAudioData(t,p,c)},d=function(t,s){s&&!t._duration&&(t._duration=s.duration),Object.keys(t._sprite).length===0&&(t._sprite={__default:[0,t._duration*1e3]}),t._state!=="loaded"&&(t._state="loaded",t._emit("load"),t._loadQueue())},h=function(){if(!!e.usingWebAudio){try{typeof AudioContext!="undefined"?e.ctx=new AudioContext:typeof webkitAudioContext!="undefined"?e.ctx=new webkitAudioContext:e.usingWebAudio=!1}catch{e.usingWebAudio=!1}e.ctx||(e.usingWebAudio=!1);var t=/iP(hone|od|ad)/.test(e._navigator&&e._navigator.platform),s=e._navigator&&e._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),c=s?parseInt(s[1],10):null;if(t&&c&&c<9){var p=/safari/.test(e._navigator&&e._navigator.userAgent.toLowerCase());e._navigator&&!p&&(e.usingWebAudio=!1)}e.usingWebAudio&&(e.masterGain=typeof e.ctx.createGain=="undefined"?e.ctx.createGainNode():e.ctx.createGain(),e.masterGain.gain.setValueAtTime(e._muted?0:e._volume,e.ctx.currentTime),e.masterGain.connect(e.ctx.destination)),e._setup()}};i.Howler=e,i.Howl=o,typeof nn!="undefined"?(nn.HowlerGlobal=r,nn.Howler=e,nn.Howl=o,nn.Sound=a):typeof window!="undefined"&&(window.HowlerGlobal=r,window.Howler=e,window.Howl=o,window.Sound=a)})();/*!
  10. * Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
  11. *
  12. * howler.js v2.2.3
  13. * howlerjs.com
  14. *
  15. * (c) 2013-2020, James Simpson of GoldFire Studios
  16. * goldfirestudios.com
  17. *
  18. * MIT License
  19. */(function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){var o=this;if(!o.ctx||!o.ctx.listener)return o;for(var a=o._howls.length-1;a>=0;a--)o._howls[a].stereo(e);return o},HowlerGlobal.prototype.pos=function(e,o,a){var f=this;if(!f.ctx||!f.ctx.listener)return f;if(o=typeof o!="number"?f._pos[1]:o,a=typeof a!="number"?f._pos[2]:a,typeof e=="number")f._pos=[e,o,a],typeof f.ctx.listener.positionX!="undefined"?(f.ctx.listener.positionX.setTargetAtTime(f._pos[0],Howler.ctx.currentTime,.1),f.ctx.listener.positionY.setTargetAtTime(f._pos[1],Howler.ctx.currentTime,.1),f.ctx.listener.positionZ.setTargetAtTime(f._pos[2],Howler.ctx.currentTime,.1)):f.ctx.listener.setPosition(f._pos[0],f._pos[1],f._pos[2]);else return f._pos;return f},HowlerGlobal.prototype.orientation=function(e,o,a,f,n,l){var u=this;if(!u.ctx||!u.ctx.listener)return u;var d=u._orientation;if(o=typeof o!="number"?d[1]:o,a=typeof a!="number"?d[2]:a,f=typeof f!="number"?d[3]:f,n=typeof n!="number"?d[4]:n,l=typeof l!="number"?d[5]:l,typeof e=="number")u._orientation=[e,o,a,f,n,l],typeof u.ctx.listener.forwardX!="undefined"?(u.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),u.ctx.listener.forwardY.setTargetAtTime(o,Howler.ctx.currentTime,.1),u.ctx.listener.forwardZ.setTargetAtTime(a,Howler.ctx.currentTime,.1),u.ctx.listener.upX.setTargetAtTime(f,Howler.ctx.currentTime,.1),u.ctx.listener.upY.setTargetAtTime(n,Howler.ctx.currentTime,.1),u.ctx.listener.upZ.setTargetAtTime(l,Howler.ctx.currentTime,.1)):u.ctx.listener.setOrientation(e,o,a,f,n,l);else return d;return u},Howl.prototype.init=function(e){return function(o){var a=this;return a._orientation=o.orientation||[1,0,0],a._stereo=o.stereo||null,a._pos=o.pos||null,a._pannerAttr={coneInnerAngle:typeof o.coneInnerAngle!="undefined"?o.coneInnerAngle:360,coneOuterAngle:typeof o.coneOuterAngle!="undefined"?o.coneOuterAngle:360,coneOuterGain:typeof o.coneOuterGain!="undefined"?o.coneOuterGain:0,distanceModel:typeof o.distanceModel!="undefined"?o.distanceModel:"inverse",maxDistance:typeof o.maxDistance!="undefined"?o.maxDistance:1e4,panningModel:typeof o.panningModel!="undefined"?o.panningModel:"HRTF",refDistance:typeof o.refDistance!="undefined"?o.refDistance:1,rolloffFactor:typeof o.rolloffFactor!="undefined"?o.rolloffFactor:1},a._onstereo=o.onstereo?[{fn:o.onstereo}]:[],a._onpos=o.onpos?[{fn:o.onpos}]:[],a._onorientation=o.onorientation?[{fn:o.onorientation}]:[],e.call(this,o)}}(Howl.prototype.init),Howl.prototype.stereo=function(e,o){var a=this;if(!a._webAudio)return a;if(a._state!=="loaded")return a._queue.push({event:"stereo",action:function(){a.stereo(e,o)}}),a;var f=typeof Howler.ctx.createStereoPanner=="undefined"?"spatial":"stereo";if(typeof o=="undefined")if(typeof e=="number")a._stereo=e,a._pos=[e,0,0];else return a._stereo;for(var n=a._getSoundIds(o),l=0;l<n.length;l++){var u=a._soundById(n[l]);if(u)if(typeof e=="number")u._stereo=e,u._pos=[e,0,0],u._node&&(u._pannerAttr.panningModel="equalpower",(!u._panner||!u._panner.pan)&&r(u,f),f==="spatial"?typeof u._panner.positionX!="undefined"?(u._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),u._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),u._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):u._panner.setPosition(e,0,0):u._panner.pan.setValueAtTime(e,Howler.ctx.currentTime)),a._emit("stereo",u._id);else return u._stereo}return a},Howl.prototype.pos=function(e,o,a,f){var n=this;if(!n._webAudio)return n;if(n._state!=="loaded")return n._queue.push({event:"pos",action:function(){n.pos(e,o,a,f)}}),n;if(o=typeof o!="number"?0:o,a=typeof a!="number"?-.5:a,typeof f=="undefined")if(typeof e=="number")n._pos=[e,o,a];else return n._pos;for(var l=n._getSoundIds(f),u=0;u<l.length;u++){var d=n._soundById(l[u]);if(d)if(typeof e=="number")d._pos=[e,o,a],d._node&&((!d._panner||d._panner.pan)&&r(d,"spatial"),typeof d._panner.positionX!="undefined"?(d._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),d._panner.positionY.setValueAtTime(o,Howler.ctx.currentTime),d._panner.positionZ.setValueAtTime(a,Howler.ctx.currentTime)):d._panner.setPosition(e,o,a)),n._emit("pos",d._id);else return d._pos}return n},Howl.prototype.orientation=function(e,o,a,f){var n=this;if(!n._webAudio)return n;if(n._state!=="loaded")return n._queue.push({event:"orientation",action:function(){n.orientation(e,o,a,f)}}),n;if(o=typeof o!="number"?n._orientation[1]:o,a=typeof a!="number"?n._orientation[2]:a,typeof f=="undefined")if(typeof e=="number")n._orientation=[e,o,a];else return n._orientation;for(var l=n._getSoundIds(f),u=0;u<l.length;u++){var d=n._soundById(l[u]);if(d)if(typeof e=="number")d._orientation=[e,o,a],d._node&&(d._panner||(d._pos||(d._pos=n._pos||[0,0,-.5]),r(d,"spatial")),typeof d._panner.orientationX!="undefined"?(d._panner.orientationX.setValueAtTime(e,Howler.ctx.currentTime),d._panner.orientationY.setValueAtTime(o,Howler.ctx.currentTime),d._panner.orientationZ.setValueAtTime(a,Howler.ctx.currentTime)):d._panner.setOrientation(e,o,a)),n._emit("orientation",d._id);else return d._orientation}return n},Howl.prototype.pannerAttr=function(){var e=this,o=arguments,a,f,n;if(!e._webAudio)return e;if(o.length===0)return e._pannerAttr;if(o.length===1)if(typeof o[0]=="object")a=o[0],typeof f=="undefined"&&(a.pannerAttr||(a.pannerAttr={coneInnerAngle:a.coneInnerAngle,coneOuterAngle:a.coneOuterAngle,coneOuterGain:a.coneOuterGain,distanceModel:a.distanceModel,maxDistance:a.maxDistance,refDistance:a.refDistance,rolloffFactor:a.rolloffFactor,panningModel:a.panningModel}),e._pannerAttr={coneInnerAngle:typeof a.pannerAttr.coneInnerAngle!="undefined"?a.pannerAttr.coneInnerAngle:e._coneInnerAngle,coneOuterAngle:typeof a.pannerAttr.coneOuterAngle!="undefined"?a.pannerAttr.coneOuterAngle:e._coneOuterAngle,coneOuterGain:typeof a.pannerAttr.coneOuterGain!="undefined"?a.pannerAttr.coneOuterGain:e._coneOuterGain,distanceModel:typeof a.pannerAttr.distanceModel!="undefined"?a.pannerAttr.distanceModel:e._distanceModel,maxDistance:typeof a.pannerAttr.maxDistance!="undefined"?a.pannerAttr.maxDistance:e._maxDistance,refDistance:typeof a.pannerAttr.refDistance!="undefined"?a.pannerAttr.refDistance:e._refDistance,rolloffFactor:typeof a.pannerAttr.rolloffFactor!="undefined"?a.pannerAttr.rolloffFactor:e._rolloffFactor,panningModel:typeof a.pannerAttr.panningModel!="undefined"?a.pannerAttr.panningModel:e._panningModel});else return n=e._soundById(parseInt(o[0],10)),n?n._pannerAttr:e._pannerAttr;else o.length===2&&(a=o[0],f=parseInt(o[1],10));for(var l=e._getSoundIds(f),u=0;u<l.length;u++)if(n=e._soundById(l[u]),n){var d=n._pannerAttr;d={coneInnerAngle:typeof a.coneInnerAngle!="undefined"?a.coneInnerAngle:d.coneInnerAngle,coneOuterAngle:typeof a.coneOuterAngle!="undefined"?a.coneOuterAngle:d.coneOuterAngle,coneOuterGain:typeof a.coneOuterGain!="undefined"?a.coneOuterGain:d.coneOuterGain,distanceModel:typeof a.distanceModel!="undefined"?a.distanceModel:d.distanceModel,maxDistance:typeof a.maxDistance!="undefined"?a.maxDistance:d.maxDistance,refDistance:typeof a.refDistance!="undefined"?a.refDistance:d.refDistance,rolloffFactor:typeof a.rolloffFactor!="undefined"?a.rolloffFactor:d.rolloffFactor,panningModel:typeof a.panningModel!="undefined"?a.panningModel:d.panningModel};var h=n._panner;h?(h.coneInnerAngle=d.coneInnerAngle,h.coneOuterAngle=d.coneOuterAngle,h.coneOuterGain=d.coneOuterGain,h.distanceModel=d.distanceModel,h.maxDistance=d.maxDistance,h.refDistance=d.refDistance,h.rolloffFactor=d.rolloffFactor,h.panningModel=d.panningModel):(n._pos||(n._pos=e._pos||[0,0,-.5]),r(n,"spatial"))}return e},Sound.prototype.init=function(e){return function(){var o=this,a=o._parent;o._orientation=a._orientation,o._stereo=a._stereo,o._pos=a._pos,o._pannerAttr=a._pannerAttr,e.call(this),o._stereo?a.stereo(o._stereo):o._pos&&a.pos(o._pos[0],o._pos[1],o._pos[2],o._id)}}(Sound.prototype.init),Sound.prototype.reset=function(e){return function(){var o=this,a=o._parent;return o._orientation=a._orientation,o._stereo=a._stereo,o._pos=a._pos,o._pannerAttr=a._pannerAttr,o._stereo?a.stereo(o._stereo):o._pos?a.pos(o._pos[0],o._pos[1],o._pos[2],o._id):o._panner&&(o._panner.disconnect(0),o._panner=void 0,a._refreshBuffer(o)),e.call(this)}}(Sound.prototype.reset);var r=function(e,o){o=o||"spatial",o==="spatial"?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,typeof e._panner.positionX!="undefined"?(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)):e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]),typeof e._panner.orientationX!="undefined"?(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime)):e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2])):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}})()})(Ho);var Xa="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA5lJREFUWEfNmEvIVlUUhp83wpoEDbpACRURNQil0CBRGkQXu0gONKqBWUZgKUqXQVF2oaIyirJAUrNBRSkImV1oYtEFSqSkgQZREwMvRJADFWnF+7d2HI/n/Od8X/rzHTijs/dez17rXWvtfcSIPRqUJyLOAm4ArgIuBc4HTst1/gJ+A34CvgA+lrR3EBu9gSJiJvAwMBs4uaeRI8AnwAuSvuozpxMoIi4AXgNuzAUPA58BnwPbgF+AP/Pb6cCFwDTgGuA6YFJ+2wIskfTreGDjAkXEbcDqDImNvgK8Lml/n91GxBnAfcAywLAO6b2S3mub3woUEY8DTwAeswG4f1A9FKOpu1XAPCC8rqSnmqAagRLmSeBv4DFJz/bxSNeYiHgEeBo4CVjRBHUMUIbpndzJ7ZLebzIUERcBczLTzgF2SHqoB9StwLvp+Tvq4TsKKAX8Y2rm0SbPRMSVwPPArJrx3ZImdwH5e3rqmdTU1KrQ60AfZTZtkDS/unhE2M0GeSB39wewGdgK7AZ+kLSvD1BCfZCa2iLppjLvP6CI8I6/zBS+uCrghNkIzAUOAc8BL0k60BegPi6Fviuzb1apU1WgD4Gbm8QWES8CDwJO91skfT0sSM3rKzKTN0uyHsdS2jF1O7DbnVXnVutMasYALohXV2EiwvNdBKemIetvmySndueTdcp2LQfb3VuA7gTesiYKaaWGOIwOp2uHS8HYExFTcs7lNcvbgYWSdnQS/btOiYznrC9AhjHUUkluE8WoU/tnwAI+r2gmYdyb3FR/Bz7NKdcDLgGuyDP7QEXEEuBVYL2khQXo+3T9DEnfVoCcUSvL4PSM57iH2TObgAWSDODdGvDtFL89Na0rfCmJbzLU0wuQ09V95+xadhXPjbkzjU4HvkvPXFJgKpsw1M701BWSvNnWJ/W7xwkj6cwCdBA4xa8ki7eEzF39Wr+S3N3thUXAm8A6SXc3WYqItcBdwD2S1nQA+TTgUnJI0qldQE53d/zLStGbKKDGkLXsfkJC1ijqFqAJEXVj2rfFfiLSvrUwdkB5IyekMLa2jo4MOTGtI9O5lPCjWkSf8j/smIhobq4J1Hr8GNZgj4LYfvxIqNYD2vGGiojxD2gJ5DvYuEfY4wHW+wibUK7MnYf8YcEiov8hv9LDfCcbjWtQDWo0LooVqPpV+mXgjQGv0ouB5f/7Kl2BGp2fDVXhjszvmHo2jcwPq2HTfNB5/wC4HxNDoqwBYAAAAABJRU5ErkJggg==",$a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAHpJREFUSEvtlrENgDAQA+1BYB8mYSYmYR8YxDRJREP4Jq8UTm3plNNbMpH8mMzDPEBJG4CjGNhJnj0b0fznDyVdAJYCuUmuP8BQvgfUG0Cyq19SKG9gs2qlPpp6DK6Fa9EMuBauBaJHUFVF81NNjNwRNWqvzrNLR/3wAc1tuB3GmZrsAAAAAElFTkSuQmCC",Ka="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAS1JREFUSEvN1rsuRUEUgOH/xzvoeBHxFioPQYIgoXVJXBKFikp0apWCaFDxBITQaBQKBdmykr0TOck5+2z7zORMOZnMN5c1a5Zkbmb2GC6wKIpxYBEYAw7Ux7Yn0nOHRVFcAdMl8gXsAZvq53/hOvAbGO2Y/A1YBU7UoilcB/aa8BaYV2+aoG3AcGJBp8CyGjuvbW3BCog73QJ21bjrrm1QYAU8AUvqWTdx0GDlXJb3+9AJpwLD+QGOgHX1vYJTgpXxAcyq59GRAwznWZ3MCb6oE7nAONIZ9SI1GEFzDKzlCJpI+pH27lM/i2wPP1LbNrCTOrVVyXtFfa3N3C3f4R0wN+jvKSJtJOcHfA1M/Skx9oGNlCVGFFEL5dEfJi+i+gmCpmOGqy5tuvp+xv8CviiKHYL2qIQAAAAASUVORK5CYII=",Xo=Gt({name:"unit-audio",props:{src:{type:String,default:""}},setup(i){const r=wr({audioStatus:"stopped",duration:0}),e=new Ho.Howl({src:i.src+"?t="+ +new Date,format:["mp3"]});return e.on("load",o=>{console.log(e.duration()),r.duration=Math.ceil(e.duration())}),e.on("end",o=>{r.audioStatus="stopped"}),mo.on("unitAudioStop",()=>{e.stop(),r.audioStatus="stopped"}),va(()=>{e.off("load")}),()=>O("div",{class:yn.unitAudio},[O("div",{class:yn.htmlAudio,onClick:o=>{o.stopPropagation(),r.audioStatus==="stopped"?(mo.emit("unitAudioStop"),e.play(),r.audioStatus="paused"):r.audioStatus==="paused"&&(e.pause(),r.audioStatus="stopped")}},[O("div",{class:yn.htmlTimes},[O(_t,{class:yn.iconAudio,name:Xa},null),O("span",null,[r.duration,Be('"')])]),O(_t,{name:r.audioStatus==="stopped"?Ka:$a,class:yn.audioStatus},null)])])}}),Tr=Gt({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(i){const r=Un(()=>i.answerType===St.CHECKBOX?mn.CHECKBOX:i.answerType===St.LINK?mn.LINK:i.answerType===St.SORT?mn.SORT:i.answerType===St.PLAY?mn.PLAY:mn.RADIO),e=Un(()=>i.extra.mediaUrls?i.extra.mediaUrls.split(","):"");return()=>O(wt,null,[O("div",{class:Pt.unitSubjectTitle},[i.index,Be("\u3001"),i.name,Be(" "),O("span",{class:Pt.unitScore},[Be("\uFF08"),i.score||0,Be("\u5206\uFF09")]),O(Zr,{type:"primary",style:{lineHeight:"20px"}},{default:()=>[r.value]})]),i.showRate&&O("div",{class:Pt.unitTitleRate},[O(_t,{name:Fa,class:Pt.icon},null),Be("\u6B63\u786E\u7387\uFF1A"),O("span",{class:Pt.rate},[i.extra.rightRate||0,Be("%")])]),i.extra.questionDetail||e.value?O("div",{class:Pt.unitDetail},[O("div",{innerHTML:i.extra.questionDetail},null),e.value&&e.value.map(o=>o&&O(wt,null,[o.substr(-3)==="mp3"?O(Xo,{src:o,class:Pt.valueAudio},null):O(jt,{class:[Pt.unitTitleImg,"answerTitleImg"],src:o},null)]))]):""])}});const Ya="_answerAnalysis_1mdns_1",Va="_analysisResult_1mdns_1",Wa="_aImg_1mdns_9",_a="_success_1mdns_13",Qa="_error_1mdns_16",za="_analysisTitle_1mdns_19",Ja="_analysisMessage_1mdns_22";var it={answerAnalysis:Ya,analysisResult:Va,aImg:Wa,success:_a,error:Qa,analysisTitle:za,analysisMessage:Ja},Za="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==",ka="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==",qa="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABllJREFUWEedmHlsFVUUxn+3UAqUVagSFhUQFEUWLYQYIEbkD0wMrQU1kogaARHFqJRVAVkMUuAPJQImGKNgwlqq7CWIkrpgIQRUSqSIRVnCUrpA2TrXnHdn3rsznXkW5p/33syd+777ne9895yrCLlWFOvU6gqySGG41mSiaO/U0lwDjgb51PLpfo/d0+CE3Jfp3XeqtOaUoynWUFDdgU2fZaobwb9XwRtL9uhsxyEP6CrPgn/qgQkCCwPjG2stxH23VCtyP85S+TaGOKDZs3VKs8EsUIpJWqOEhviEFrAYEwGW4mA8Nur+eZxRG7ij0FqzKOMQU2fPVvKIOKBFu/VCINdDeyvMvJhp3vp8XwijHjgbbN3w5i0boSbHAUmYtGZDjBlLB/Vd+fQnDZtzdwYAuXPZjPrYTehLK0XO8hyVr0TAVZUcsTWTLCTxkFmCnjHUMDRnhwHmiTz4PSh8n+40peoSPdTiPXqkdlgbxoxMnNEMLtXA1ZtuJgX1oeH5vgbI1wcSYIJMpDWEVk3g34qQeVwm0TyrFn+nVzkOozxAdpjSG8Gbg+DCZfiyGCqvBhiw0z4s1K5WWqTBhIFwZzN4bxuU1yRsw2YJxWq1aLcu0Zr7w+Isy87qBQ+1M6BW/Ag1LlO2F/kyJ+BFwsykxw3T+0/Cyn2GRTussdDKJIqjKm+3rnQcmsuAuIlZYZF7T/eEB+6CT/ZChbs6m0nPJMOAtWwMM56Eg6fgq/1Q6yQJmaJKfbRLrCCAOInzesLMSIfMTtA9A1o3hQYpJqTHL8D+f+D3M5ajuwyECj7AqFpQ6AKyNRDcFqxnKQqG9YAB94J8j7pKz8MXxSbUPk8LsQI7+9SHAigCQCAtYyy81B+6tAmHceU61NyANunmefU1WPI9nKqMtoKgxaj5Ow0gn6gDW4X3fERveLRTNCs7SmBrCQzuAtk9ISUFzl+GOYVQc93aigKbcjxBRNfzdmgdKtBASndqBeMfA5UkTCLYvcdhw2HI7Aij+xnwW4/AxsOBRVtRsbWl5uzwh0yyQkQqgy5eNisUwM/1gUc6RrNjP9lXZtJ74kBjGRK6twvgpmPSv226mf9MJZytTmhMIqE+2O7PsqlDoGkjM/21mzBru3l55lBIT6sfIBk1txDaNYcxA8w78rv0AizLgSap5l7VNRi33u/uapYAsujr3d5MJNeZKpDVpjaA+U/VH4yMXHMQDp2G+cPMe58Wwc9lMLgzdGhpFnmiHH447he8mrktIWp5MWxjFLedd4uA/i6HY+dhSDcDaPlPUPRXeFXp2UIsZO9vdQElqQ5l4NxhiVDeGleJkJWcC9/D7EJQzdhiNJTM/uX56Ezo0+F2oID40+sb4XptEpN0s1pN32yJOgKYALqvLbwx8PYASdqvOhBen8cl4gGattnyoZBOwu40XukHfeuZ+h708iswZYvJKNtvQitH0dCUb90s8/aYsILeRS/injgI7mldP6ZkG5m/C45d8HtNsnJFTXYBJat77bK1UUN4oS/0vzu5a5eVw9IiOHnJn1mhfZ2Q4JhxKvcbrX3FUtS+Fth/pg+Bzm3MykWscjVMMWWIXK+th0tuhRnaOoW1WRKydwt0pYbmSbPMLUVFBN4KBZDs+it/SZhbi8awNNswN3YdVIhuAtVhcPGBGqlKAJU4UsLahVJEW2zXNVIFdm0D56pBTFAmln1QCja5Xl1nCrY6RpskkzUcVe8U6FW1DqNCW+RAc2dn3PQnoFsG5B+GohMGhHQVM4YYhl5e42ZWRKkR0Z+tVm8V6JG6lrXx1UdVdHb7LHX2g5DTC/44A7+dNYBaN4Gh3eHPczBtW/gBRJ3ay503NoG0QWOLdWpaGUccTVefY0eIzhsj7z/zMAzqAnc0NYDEkQ+fhpW/mtI1WSNgh9JgobRc0yNWbk3YoLM1ppWuk3ERRy8+k3NnjDI7X0cTONKJrUSONjQ5hWNVfrz+G79eL3Q0uaGHDFbXEHYOFFkCh+gnyExsLZq8XeOswwa5Kccxp3uywNFMchxUWKcQBsY+rIrZQtRhVkCDHjPaYdGu00wleBzjbQZj1upsR5MnmgqmrIyJOkgIdeBgf+f18K5mFORKmOyNKLRkH7tCp15vSZaG4Y5Dpta0dyzz/L+Gz7dXJbKoSmOO9JSm4CJs2j+u7pHef31/i4JLMvf4AAAAAElFTkSuQmCC",Ir=Gt({name:"answer-analysis",props:{topic:{type:Boolean,default:!0},userResult:{tyep:Boolean,default:!1},answerAnalysis:{type:String,default:""},rightFlagText:{type:String,default:"\u56DE\u7B54\u6B63\u786E"},errorFlagText:{type:String,default:"\u56DE\u7B54\u9519\u8BEF"}},setup(i){return()=>O("div",{class:it.answerAnalysis},[i.topic?O(wt,null,[i.userResult?O("div",{class:[it.analysisResult,it.success]},[O(_t,{name:ka,class:it.aImg},null),i.rightFlagText]):O("div",{class:[it.analysisResult,it.error]},[O(_t,{name:Za,class:it.aImg},null),i.errorFlagText])]):"",i.answerAnalysis&&O(wt,null,[O("div",{class:[it.analysisResult,it.analysisTitle]},[O(_t,{name:qa,class:it.aImg},null),Be("\u7B54\u6848\u89E3\u6790")]),O("div",{class:it.analysisMessage},[i.answerAnalysis])])])}});const ei="_unitSubject_1pzvj_1",ti="_unitAnswers_1pzvj_11",ni="_unitAnswer_1pzvj_11",ri="_option_1pzvj_23",oi="_value_1pzvj_26",ai="_valueAudio_1pzvj_35",ii="_active_1pzvj_38",si="_answerContent_1pzvj_42",li="_answerChoice_1pzvj_46";var et={unitSubject:ei,unitAnswers:ti,unitAnswer:ni,option:ri,value:oi,valueAudio:ai,active:ii,answerContent:si,answerChoice:li},dl=Gt({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(i,{emit:r}){const e=a=>{if(console.log(a,"onSelect"),i.readOnly)return;const f=i.value||[],n={answerId:a.examinationQuestionAnswerId,answer:a.questionAnswer,answerExtra:a.questionExtra};if(console.log(n,"onSelect"),i.type==="checkbox"){const l=f.findIndex(u=>u.answerId===a.examinationQuestionAnswerId);l>=0?(f.splice(l,1),r("update:value",[...f])):r("update:value",[...f,n])}else r("update:value",[n])},o=Un(()=>{const a=i.data.answers||[],f=i.value||[];return a.forEach(n=>{const l=f.findIndex(u=>u.answerId===n.examinationQuestionAnswerId);n.checked=l!==-1}),a});return()=>O(wt,null,[O("div",{class:et.unitSubject},[O(Tr,{index:i.index,name:i.data.name,showRate:i.showRate,score:i.data.totalScore,answerType:i.type==="radio"?St.RADIO:St.CHECKBOX,extra:{questionDetail:i.data.questionDetail,mediaUrls:i.data.mediaUrls,rightRate:i.data.rightRate}},null),O("div",{class:et.unitAnswers},[o.value.map((a,f)=>O("div",{class:[et.unitAnswer,a.checked&&et.active],onClick:()=>e(a)},[O("div",{class:et.answerContent},[O("span",{class:et.option},[Uo[f+1],Be(".")]),a.questionAnswerTypeCode===ke.IMAGE&&O("div",{class:et.value},[O(jt,{src:a.questionAnswer,fit:"contain",class:"answerTitleImg"},null)]),a.questionAnswerTypeCode===ke.TXT&&O("div",{class:et.value},[a.questionAnswer]),a.questionAnswerTypeCode===ke.AUDIO&&O("div",{class:et.value},[O(Xo,{src:a.questionAnswer,class:et.valueAudio},null)])]),i.showRate&&O("div",{class:et.answerChoice},[a.selectRate||0,Be("%\u4EBA\u9009\u62E9")])]))])]),i.showAnalysis&&O("div",{class:et.unitSubject},[O(Ir,{answerAnalysis:i.analysis.message,topic:i.analysis.topic,userResult:i.analysis.userResult},null)])])}});const ui="_anserList_1yzxl_1",fi="_status_1yzxl_5",ci="_aList_1yzxl_28",di="_answered_1yzxl_46",pi="_yes_1yzxl_50",hi="_no_1yzxl_54";var At={anserList:ui,status:fi,aList:ci,answered:di,yes:pi,no:hi};function vi(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!ga(i)}var pl=Gt({name:"answer-list",props:{value:{type:Array,default:()=>[]},index:{type:Number,default:0},lookType:{type:String,default:"ANSWER"},statusList:{type:Array,default:()=>[{text:"\u5DF2\u7B54",color:"#FF8057"},{text:"\u672A\u7B54",color:"#EAEAEA"}]},answerResult:{type:Array,default:()=>[]}},emits:["select"],setup(i,{emit:r}){console.log(i.lookType,"lookType");const e=o=>{let a=!1;return i.answerResult.forEach(f=>{f.questionId===o&&(a=f.rightFlag)}),a};return()=>{let o;return O("div",{class:At.anserList},[i.statusList.length>0&&O("div",{class:At.status},[i.statusList.map(a=>O("span",null,[O("i",{style:{backgroundColor:a.color}},null),a.text]))]),O("div",{style:{maxHeight:"40vh",minHeight:"20vh",overflowX:"auto"}},[O(wa,{class:At.aList,columnNum:6,border:!1},vi(o=i.value.map((a,f)=>O(Ta,{onClick:()=>r("select",f)},{default:()=>[O("span",{class:[i.lookType==="ANSWER"&&a.userAnswer&&a.userAnswer.length>0&&At.answered,i.lookType==="RESULT"&&(e(a.id)?At.yes:At.no),i.lookType==="CLICK"&&f===i.index&&At.answered,i.lookType!=="CLICK"&&a.showAnalysis?a.analysis.userResult?At.yes:At.no:""]},[f+1])]})))?o:{default:()=>[o]})])])}}}),$o={exports:{}},gi=Go(ma);/**!
  20. * Sortable 1.14.0
  21. * @author RubaXa <trash@rubaxa.org>
  22. * @author owenm <owen23355@gmail.com>
  23. * @license MIT
  24. */function yo(i,r){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),e.push.apply(e,o)}return e}function mt(i){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?yo(Object(e),!0).forEach(function(o){mi(i,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):yo(Object(e)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(e,o))})}return i}function nr(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nr=function(r){return typeof r}:nr=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},nr(i)}function mi(i,r,e){return r in i?Object.defineProperty(i,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[r]=e,i}function ot(){return ot=Object.assign||function(i){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},ot.apply(this,arguments)}function yi(i,r){if(i==null)return{};var e={},o=Object.keys(i),a,f;for(f=0;f<o.length;f++)a=o[f],!(r.indexOf(a)>=0)&&(e[a]=i[a]);return e}function bi(i,r){if(i==null)return{};var e=yi(i,r),o,a;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(i);for(a=0;a<f.length;a++)o=f[a],!(r.indexOf(o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(i,o)||(e[o]=i[o]))}return e}function Ai(i){return Si(i)||Ei(i)||xi(i)||wi()}function Si(i){if(Array.isArray(i))return kr(i)}function Ei(i){if(typeof Symbol!="undefined"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function xi(i,r){if(!!i){if(typeof i=="string")return kr(i,r);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return kr(i,r)}}function kr(i,r){(r==null||r>i.length)&&(r=i.length);for(var e=0,o=new Array(r);e<r;e++)o[e]=i[e];return o}function wi(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  25. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ti="1.14.0";function Et(i){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(i)}var It=Et(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Hn=Et(/Edge/i),bo=Et(/firefox/i),Cn=Et(/safari/i)&&!Et(/chrome/i)&&!Et(/android/i),Ko=Et(/iP(ad|od|hone)/i),Ii=Et(/chrome/i)&&Et(/android/i),Yo={capture:!1,passive:!1};function ne(i,r,e){i.addEventListener(r,e,!It&&Yo)}function te(i,r,e){i.removeEventListener(r,e,!It&&Yo)}function hr(i,r){if(!!r){if(r[0]===">"&&(r=r.substring(1)),i)try{if(i.matches)return i.matches(r);if(i.msMatchesSelector)return i.msMatchesSelector(r);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(r)}catch{return!1}return!1}}function Oi(i){return i.host&&i!==document&&i.host.nodeType?i.host:i.parentNode}function ct(i,r,e,o){if(i){e=e||document;do{if(r!=null&&(r[0]===">"?i.parentNode===e&&hr(i,r):hr(i,r))||o&&i===e)return i;if(i===e)break}while(i=Oi(i))}return null}var Ao=/\s+/g;function ye(i,r,e){if(i&&r)if(i.classList)i.classList[e?"add":"remove"](r);else{var o=(" "+i.className+" ").replace(Ao," ").replace(" "+r+" "," ");i.className=(o+(e?" "+r:"")).replace(Ao," ")}}function U(i,r,e){var o=i&&i.style;if(o){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(i,""):i.currentStyle&&(e=i.currentStyle),r===void 0?e:e[r];!(r in o)&&r.indexOf("webkit")===-1&&(r="-webkit-"+r),o[r]=e+(typeof e=="string"?"":"px")}}function Qt(i,r){var e="";if(typeof i=="string")e=i;else do{var o=U(i,"transform");o&&o!=="none"&&(e=o+" "+e)}while(!r&&(i=i.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(e)}function Vo(i,r,e){if(i){var o=i.getElementsByTagName(r),a=0,f=o.length;if(e)for(;a<f;a++)e(o[a],a);return o}return[]}function vt(){var i=document.scrollingElement;return i||document.documentElement}function ve(i,r,e,o,a){if(!(!i.getBoundingClientRect&&i!==window)){var f,n,l,u,d,h,t;if(i!==window&&i.parentNode&&i!==vt()?(f=i.getBoundingClientRect(),n=f.top,l=f.left,u=f.bottom,d=f.right,h=f.height,t=f.width):(n=0,l=0,u=window.innerHeight,d=window.innerWidth,h=window.innerHeight,t=window.innerWidth),(r||e)&&i!==window&&(a=a||i.parentNode,!It))do if(a&&a.getBoundingClientRect&&(U(a,"transform")!=="none"||e&&U(a,"position")!=="static")){var s=a.getBoundingClientRect();n-=s.top+parseInt(U(a,"border-top-width")),l-=s.left+parseInt(U(a,"border-left-width")),u=n+f.height,d=l+f.width;break}while(a=a.parentNode);if(o&&i!==window){var c=Qt(a||i),p=c&&c.a,v=c&&c.d;c&&(n/=v,l/=p,t/=p,h/=v,u=n+h,d=l+t)}return{top:n,left:l,bottom:u,right:d,width:t,height:h}}}function So(i,r,e){for(var o=Lt(i,!0),a=ve(i)[r];o;){var f=ve(o)[e],n=void 0;if(e==="top"||e==="left"?n=a>=f:n=a<=f,!n)return o;if(o===vt())break;o=Lt(o,!1)}return!1}function un(i,r,e,o){for(var a=0,f=0,n=i.children;f<n.length;){if(n[f].style.display!=="none"&&n[f]!==V.ghost&&(o||n[f]!==V.dragged)&&ct(n[f],e.draggable,i,!1)){if(a===r)return n[f];a++}f++}return null}function lo(i,r){for(var e=i.lastElementChild;e&&(e===V.ghost||U(e,"display")==="none"||r&&!hr(e,r));)e=e.previousElementSibling;return e||null}function Ee(i,r){var e=0;if(!i||!i.parentNode)return-1;for(;i=i.previousElementSibling;)i.nodeName.toUpperCase()!=="TEMPLATE"&&i!==V.clone&&(!r||hr(i,r))&&e++;return e}function Eo(i){var r=0,e=0,o=vt();if(i)do{var a=Qt(i),f=a.a,n=a.d;r+=i.scrollLeft*f,e+=i.scrollTop*n}while(i!==o&&(i=i.parentNode));return[r,e]}function Di(i,r){for(var e in i)if(!!i.hasOwnProperty(e)){for(var o in r)if(r.hasOwnProperty(o)&&r[o]===i[e][o])return Number(e)}return-1}function Lt(i,r){if(!i||!i.getBoundingClientRect)return vt();var e=i,o=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var a=U(e);if(e.clientWidth<e.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return vt();if(o||r)return e;o=!0}}while(e=e.parentNode);return vt()}function Ci(i,r){if(i&&r)for(var e in r)r.hasOwnProperty(e)&&(i[e]=r[e]);return i}function Nr(i,r){return Math.round(i.top)===Math.round(r.top)&&Math.round(i.left)===Math.round(r.left)&&Math.round(i.height)===Math.round(r.height)&&Math.round(i.width)===Math.round(r.width)}var Pn;function Wo(i,r){return function(){if(!Pn){var e=arguments,o=this;e.length===1?i.call(o,e[0]):i.apply(o,e),Pn=setTimeout(function(){Pn=void 0},r)}}}function Pi(){clearTimeout(Pn),Pn=void 0}function _o(i,r,e){i.scrollLeft+=r,i.scrollTop+=e}function uo(i){var r=window.Polymer,e=window.jQuery||window.Zepto;return r&&r.dom?r.dom(i).cloneNode(!0):e?e(i).clone(!0)[0]:i.cloneNode(!0)}function xo(i,r){U(i,"position","absolute"),U(i,"top",r.top),U(i,"left",r.left),U(i,"width",r.width),U(i,"height",r.height)}function Mr(i){U(i,"position",""),U(i,"top",""),U(i,"left",""),U(i,"width",""),U(i,"height","")}var Ue="Sortable"+new Date().getTime();function Ri(){var i=[],r;return{captureAnimationState:function(){if(i=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(a){if(!(U(a,"display")==="none"||a===V.ghost)){i.push({target:a,rect:ve(a)});var f=mt({},i[i.length-1].rect);if(a.thisAnimationDuration){var n=Qt(a,!0);n&&(f.top-=n.f,f.left-=n.e)}a.fromRect=f}})}},addAnimationState:function(o){i.push(o)},removeAnimationState:function(o){i.splice(Di(i,{target:o}),1)},animateAll:function(o){var a=this;if(!this.options.animation){clearTimeout(r),typeof o=="function"&&o();return}var f=!1,n=0;i.forEach(function(l){var u=0,d=l.target,h=d.fromRect,t=ve(d),s=d.prevFromRect,c=d.prevToRect,p=l.rect,v=Qt(d,!0);v&&(t.top-=v.f,t.left-=v.e),d.toRect=t,d.thisAnimationDuration&&Nr(s,t)&&!Nr(h,t)&&(p.top-t.top)/(p.left-t.left)===(h.top-t.top)/(h.left-t.left)&&(u=Mi(p,s,c,a.options)),Nr(t,h)||(d.prevFromRect=h,d.prevToRect=t,u||(u=a.options.animation),a.animate(d,p,t,u)),u&&(f=!0,n=Math.max(n,u),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},u),d.thisAnimationDuration=u)}),clearTimeout(r),f?r=setTimeout(function(){typeof o=="function"&&o()},n):typeof o=="function"&&o(),i=[]},animate:function(o,a,f,n){if(n){U(o,"transition",""),U(o,"transform","");var l=Qt(this.el),u=l&&l.a,d=l&&l.d,h=(a.left-f.left)/(u||1),t=(a.top-f.top)/(d||1);o.animatingX=!!h,o.animatingY=!!t,U(o,"transform","translate3d("+h+"px,"+t+"px,0)"),this.forRepaintDummy=Ni(o),U(o,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),U(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){U(o,"transition",""),U(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},n)}}}}function Ni(i){return i.offsetWidth}function Mi(i,r,e,o){return Math.sqrt(Math.pow(r.top-i.top,2)+Math.pow(r.left-i.left,2))/Math.sqrt(Math.pow(r.top-e.top,2)+Math.pow(r.left-e.left,2))*o.animation}var Zt=[],Fr={initializeByDefault:!0},Xn={mount:function(r){for(var e in Fr)Fr.hasOwnProperty(e)&&!(e in r)&&(r[e]=Fr[e]);Zt.forEach(function(o){if(o.pluginName===r.pluginName)throw"Sortable: Cannot mount plugin ".concat(r.pluginName," more than once")}),Zt.push(r)},pluginEvent:function(r,e,o){var a=this;this.eventCanceled=!1,o.cancel=function(){a.eventCanceled=!0};var f=r+"Global";Zt.forEach(function(n){!e[n.pluginName]||(e[n.pluginName][f]&&e[n.pluginName][f](mt({sortable:e},o)),e.options[n.pluginName]&&e[n.pluginName][r]&&e[n.pluginName][r](mt({sortable:e},o)))})},initializePlugins:function(r,e,o,a){Zt.forEach(function(l){var u=l.pluginName;if(!(!r.options[u]&&!l.initializeByDefault)){var d=new l(r,e,r.options);d.sortable=r,d.options=r.options,r[u]=d,ot(o,d.defaults)}});for(var f in r.options)if(!!r.options.hasOwnProperty(f)){var n=this.modifyOption(r,f,r.options[f]);typeof n!="undefined"&&(r.options[f]=n)}},getEventProperties:function(r,e){var o={};return Zt.forEach(function(a){typeof a.eventProperties=="function"&&ot(o,a.eventProperties.call(e[a.pluginName],r))}),o},modifyOption:function(r,e,o){var a;return Zt.forEach(function(f){!r[f.pluginName]||f.optionListeners&&typeof f.optionListeners[e]=="function"&&(a=f.optionListeners[e].call(r[f.pluginName],o))}),a}};function En(i){var r=i.sortable,e=i.rootEl,o=i.name,a=i.targetEl,f=i.cloneEl,n=i.toEl,l=i.fromEl,u=i.oldIndex,d=i.newIndex,h=i.oldDraggableIndex,t=i.newDraggableIndex,s=i.originalEvent,c=i.putSortable,p=i.extraEventProperties;if(r=r||e&&e[Ue],!!r){var v,g=r.options,m="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!It&&!Hn?v=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(v=document.createEvent("Event"),v.initEvent(o,!0,!0)),v.to=n||e,v.from=l||e,v.item=a||e,v.clone=f,v.oldIndex=u,v.newIndex=d,v.oldDraggableIndex=h,v.newDraggableIndex=t,v.originalEvent=s,v.pullMode=c?c.lastPutMode:void 0;var y=mt(mt({},p),Xn.getEventProperties(o,r));for(var b in y)v[b]=y[b];e&&e.dispatchEvent(v),g[m]&&g[m].call(r,v)}}var Fi=["evt"],Ye=function(r,e){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.evt,f=bi(o,Fi);Xn.pluginEvent.bind(V)(r,e,mt({dragEl:N,parentEl:be,ghostEl:Z,rootEl:pe,nextEl:Vt,lastDownEl:rr,cloneEl:Se,cloneHidden:Mt,dragStarted:xn,putSortable:Fe,activeSortable:V.active,originalEvent:a,oldIndex:an,oldDraggableIndex:Rn,newIndex:Je,newDraggableIndex:Rt,hideGhostForTarget:Zo,unhideGhostForTarget:ko,cloneNowHidden:function(){Mt=!0},cloneNowShown:function(){Mt=!1},dispatchSortableEvent:function(l){Xe({sortable:e,name:l,originalEvent:a})}},f))};function Xe(i){En(mt({putSortable:Fe,cloneEl:Se,targetEl:N,rootEl:pe,oldIndex:an,oldDraggableIndex:Rn,newIndex:Je,newDraggableIndex:Rt},i))}var N,be,Z,pe,Vt,rr,Se,Mt,an,Je,Rn,Rt,Wn,Fe,rn=!1,vr=!1,gr=[],Xt,st,Lr,Br,wo,To,xn,kt,Nn,Mn=!1,_n=!1,or,je,jr=[],qr=!1,mr=[],Or=typeof document!="undefined",Qn=Ko,Io=Hn||It?"cssFloat":"float",Li=Or&&!Ii&&!Ko&&"draggable"in document.createElement("div"),Qo=function(){if(!!Or){if(It)return!1;var i=document.createElement("x");return i.style.cssText="pointer-events:auto",i.style.pointerEvents==="auto"}}(),zo=function(r,e){var o=U(r),a=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),f=un(r,0,e),n=un(r,1,e),l=f&&U(f),u=n&&U(n),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+ve(f).width,h=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+ve(n).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(f&&l.float&&l.float!=="none"){var t=l.float==="left"?"left":"right";return n&&(u.clear==="both"||u.clear===t)?"vertical":"horizontal"}return f&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=a&&o[Io]==="none"||n&&o[Io]==="none"&&d+h>a)?"vertical":"horizontal"},Bi=function(r,e,o){var a=o?r.left:r.top,f=o?r.right:r.bottom,n=o?r.width:r.height,l=o?e.left:e.top,u=o?e.right:e.bottom,d=o?e.width:e.height;return a===l||f===u||a+n/2===l+d/2},ji=function(r,e){var o;return gr.some(function(a){var f=a[Ue].options.emptyInsertThreshold;if(!(!f||lo(a))){var n=ve(a),l=r>=n.left-f&&r<=n.right+f,u=e>=n.top-f&&e<=n.bottom+f;if(l&&u)return o=a}}),o},Jo=function(r){function e(f,n){return function(l,u,d,h){var t=l.options.group.name&&u.options.group.name&&l.options.group.name===u.options.group.name;if(f==null&&(n||t))return!0;if(f==null||f===!1)return!1;if(n&&f==="clone")return f;if(typeof f=="function")return e(f(l,u,d,h),n)(l,u,d,h);var s=(n?l:u).options.group.name;return f===!0||typeof f=="string"&&f===s||f.join&&f.indexOf(s)>-1}}var o={},a=r.group;(!a||nr(a)!="object")&&(a={name:a}),o.name=a.name,o.checkPull=e(a.pull,!0),o.checkPut=e(a.put),o.revertClone=a.revertClone,r.group=o},Zo=function(){!Qo&&Z&&U(Z,"display","none")},ko=function(){!Qo&&Z&&U(Z,"display","")};Or&&document.addEventListener("click",function(i){if(vr)return i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.stopImmediatePropagation&&i.stopImmediatePropagation(),vr=!1,!1},!0);var $t=function(r){if(N){r=r.touches?r.touches[0]:r;var e=ji(r.clientX,r.clientY);if(e){var o={};for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);o.target=o.rootEl=e,o.preventDefault=void 0,o.stopPropagation=void 0,e[Ue]._onDragOver(o)}}},Gi=function(r){N&&N.parentNode[Ue]._isOutsideThisEl(r.target)};function V(i,r){if(!(i&&i.nodeType&&i.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));this.el=i,this.options=r=ot({},r),i[Ue]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(i.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return zo(i,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(n,l){n.setData("Text",l.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:V.supportPointer!==!1&&"PointerEvent"in window&&!Cn,emptyInsertThreshold:5};Xn.initializePlugins(this,i,e);for(var o in e)!(o in r)&&(r[o]=e[o]);Jo(r);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=r.forceFallback?!1:Li,this.nativeDraggable&&(this.options.touchStartThreshold=1),r.supportPointer?ne(i,"pointerdown",this._onTapStart):(ne(i,"mousedown",this._onTapStart),ne(i,"touchstart",this._onTapStart)),this.nativeDraggable&&(ne(i,"dragover",this),ne(i,"dragenter",this)),gr.push(this.el),r.store&&r.store.get&&this.sort(r.store.get(this)||[]),ot(this,Ri())}V.prototype={constructor:V,_isOutsideThisEl:function(r){!this.el.contains(r)&&r!==this.el&&(kt=null)},_getDirection:function(r,e){return typeof this.options.direction=="function"?this.options.direction.call(this,r,e,N):this.options.direction},_onTapStart:function(r){if(!!r.cancelable){var e=this,o=this.el,a=this.options,f=a.preventOnFilter,n=r.type,l=r.touches&&r.touches[0]||r.pointerType&&r.pointerType==="touch"&&r,u=(l||r).target,d=r.target.shadowRoot&&(r.path&&r.path[0]||r.composedPath&&r.composedPath()[0])||u,h=a.filter;if(Wi(o),!N&&!(/mousedown|pointerdown/.test(n)&&r.button!==0||a.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Cn&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=ct(u,a.draggable,o,!1),!(u&&u.animated)&&rr!==u)){if(an=Ee(u),Rn=Ee(u,a.draggable),typeof h=="function"){if(h.call(this,r,u,this)){Xe({sortable:e,rootEl:d,name:"filter",targetEl:u,toEl:o,fromEl:o}),Ye("filter",e,{evt:r}),f&&r.cancelable&&r.preventDefault();return}}else if(h&&(h=h.split(",").some(function(t){if(t=ct(d,t.trim(),o,!1),t)return Xe({sortable:e,rootEl:t,name:"filter",targetEl:u,fromEl:o,toEl:o}),Ye("filter",e,{evt:r}),!0}),h)){f&&r.cancelable&&r.preventDefault();return}a.handle&&!ct(d,a.handle,o,!1)||this._prepareDragStart(r,l,u)}}},_prepareDragStart:function(r,e,o){var a=this,f=a.el,n=a.options,l=f.ownerDocument,u;if(o&&!N&&o.parentNode===f){var d=ve(o);if(pe=f,N=o,be=N.parentNode,Vt=N.nextSibling,rr=o,Wn=n.group,V.dragged=N,Xt={target:N,clientX:(e||r).clientX,clientY:(e||r).clientY},wo=Xt.clientX-d.left,To=Xt.clientY-d.top,this._lastX=(e||r).clientX,this._lastY=(e||r).clientY,N.style["will-change"]="all",u=function(){if(Ye("delayEnded",a,{evt:r}),V.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!bo&&a.nativeDraggable&&(N.draggable=!0),a._triggerDragStart(r,e),Xe({sortable:a,name:"choose",originalEvent:r}),ye(N,n.chosenClass,!0)},n.ignore.split(",").forEach(function(h){Vo(N,h.trim(),Gr)}),ne(l,"dragover",$t),ne(l,"mousemove",$t),ne(l,"touchmove",$t),ne(l,"mouseup",a._onDrop),ne(l,"touchend",a._onDrop),ne(l,"touchcancel",a._onDrop),bo&&this.nativeDraggable&&(this.options.touchStartThreshold=4,N.draggable=!0),Ye("delayStart",this,{evt:r}),n.delay&&(!n.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Hn||It))){if(V.eventCanceled){this._onDrop();return}ne(l,"mouseup",a._disableDelayedDrag),ne(l,"touchend",a._disableDelayedDrag),ne(l,"touchcancel",a._disableDelayedDrag),ne(l,"mousemove",a._delayedDragTouchMoveHandler),ne(l,"touchmove",a._delayedDragTouchMoveHandler),n.supportPointer&&ne(l,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(u,n.delay)}else u()}},_delayedDragTouchMoveHandler:function(r){var e=r.touches?r.touches[0]:r;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){N&&Gr(N),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var r=this.el.ownerDocument;te(r,"mouseup",this._disableDelayedDrag),te(r,"touchend",this._disableDelayedDrag),te(r,"touchcancel",this._disableDelayedDrag),te(r,"mousemove",this._delayedDragTouchMoveHandler),te(r,"touchmove",this._delayedDragTouchMoveHandler),te(r,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(r,e){e=e||r.pointerType=="touch"&&r,!this.nativeDraggable||e?this.options.supportPointer?ne(document,"pointermove",this._onTouchMove):e?ne(document,"touchmove",this._onTouchMove):ne(document,"mousemove",this._onTouchMove):(ne(N,"dragend",this),ne(pe,"dragstart",this._onDragStart));try{document.selection?ar(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(r,e){if(rn=!1,pe&&N){Ye("dragStarted",this,{evt:e}),this.nativeDraggable&&ne(document,"dragover",Gi);var o=this.options;!r&&ye(N,o.dragClass,!1),ye(N,o.ghostClass,!0),V.active=this,r&&this._appendGhost(),Xe({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(st){this._lastX=st.clientX,this._lastY=st.clientY,Zo();for(var r=document.elementFromPoint(st.clientX,st.clientY),e=r;r&&r.shadowRoot&&(r=r.shadowRoot.elementFromPoint(st.clientX,st.clientY),r!==e);)e=r;if(N.parentNode[Ue]._isOutsideThisEl(r),e)do{if(e[Ue]){var o=void 0;if(o=e[Ue]._onDragOver({clientX:st.clientX,clientY:st.clientY,target:r,rootEl:e}),o&&!this.options.dragoverBubble)break}r=e}while(e=e.parentNode);ko()}},_onTouchMove:function(r){if(Xt){var e=this.options,o=e.fallbackTolerance,a=e.fallbackOffset,f=r.touches?r.touches[0]:r,n=Z&&Qt(Z,!0),l=Z&&n&&n.a,u=Z&&n&&n.d,d=Qn&&je&&Eo(je),h=(f.clientX-Xt.clientX+a.x)/(l||1)+(d?d[0]-jr[0]:0)/(l||1),t=(f.clientY-Xt.clientY+a.y)/(u||1)+(d?d[1]-jr[1]:0)/(u||1);if(!V.active&&!rn){if(o&&Math.max(Math.abs(f.clientX-this._lastX),Math.abs(f.clientY-this._lastY))<o)return;this._onDragStart(r,!0)}if(Z){n?(n.e+=h-(Lr||0),n.f+=t-(Br||0)):n={a:1,b:0,c:0,d:1,e:h,f:t};var s="matrix(".concat(n.a,",").concat(n.b,",").concat(n.c,",").concat(n.d,",").concat(n.e,",").concat(n.f,")");U(Z,"webkitTransform",s),U(Z,"mozTransform",s),U(Z,"msTransform",s),U(Z,"transform",s),Lr=h,Br=t,st=f}r.cancelable&&r.preventDefault()}},_appendGhost:function(){if(!Z){var r=this.options.fallbackOnBody?document.body:pe,e=ve(N,!0,Qn,!0,r),o=this.options;if(Qn){for(je=r;U(je,"position")==="static"&&U(je,"transform")==="none"&&je!==document;)je=je.parentNode;je!==document.body&&je!==document.documentElement?(je===document&&(je=vt()),e.top+=je.scrollTop,e.left+=je.scrollLeft):je=vt(),jr=Eo(je)}Z=N.cloneNode(!0),ye(Z,o.ghostClass,!1),ye(Z,o.fallbackClass,!0),ye(Z,o.dragClass,!0),U(Z,"transition",""),U(Z,"transform",""),U(Z,"box-sizing","border-box"),U(Z,"margin",0),U(Z,"top",e.top),U(Z,"left",e.left),U(Z,"width",e.width),U(Z,"height",e.height),U(Z,"opacity","0.8"),U(Z,"position",Qn?"absolute":"fixed"),U(Z,"zIndex","100000"),U(Z,"pointerEvents","none"),V.ghost=Z,r.appendChild(Z),U(Z,"transform-origin",wo/parseInt(Z.style.width)*100+"% "+To/parseInt(Z.style.height)*100+"%")}},_onDragStart:function(r,e){var o=this,a=r.dataTransfer,f=o.options;if(Ye("dragStart",this,{evt:r}),V.eventCanceled){this._onDrop();return}Ye("setupClone",this),V.eventCanceled||(Se=uo(N),Se.draggable=!1,Se.style["will-change"]="",this._hideClone(),ye(Se,this.options.chosenClass,!1),V.clone=Se),o.cloneId=ar(function(){Ye("clone",o),!V.eventCanceled&&(o.options.removeCloneOnHide||pe.insertBefore(Se,N),o._hideClone(),Xe({sortable:o,name:"clone"}))}),!e&&ye(N,f.dragClass,!0),e?(vr=!0,o._loopId=setInterval(o._emulateDragOver,50)):(te(document,"mouseup",o._onDrop),te(document,"touchend",o._onDrop),te(document,"touchcancel",o._onDrop),a&&(a.effectAllowed="move",f.setData&&f.setData.call(o,a,N)),ne(document,"drop",o),U(N,"transform","translateZ(0)")),rn=!0,o._dragStartId=ar(o._dragStarted.bind(o,e,r)),ne(document,"selectstart",o),xn=!0,Cn&&U(document.body,"user-select","none")},_onDragOver:function(r){var e=this.el,o=r.target,a,f,n,l=this.options,u=l.group,d=V.active,h=Wn===u,t=l.sort,s=Fe||d,c,p=this,v=!1;if(qr)return;function g(ee,le){Ye(ee,p,mt({evt:r,isOwner:h,axis:c?"vertical":"horizontal",revert:n,dragRect:a,targetRect:f,canSort:t,fromSortable:s,target:o,completed:y,onMove:function(fe,ce){return zn(pe,e,N,a,fe,ve(fe),r,ce)},changed:b},le))}function m(){g("dragOverAnimationCapture"),p.captureAnimationState(),p!==s&&s.captureAnimationState()}function y(ee){return g("dragOverCompleted",{insertion:ee}),ee&&(h?d._hideClone():d._showClone(p),p!==s&&(ye(N,Fe?Fe.options.ghostClass:d.options.ghostClass,!1),ye(N,l.ghostClass,!0)),Fe!==p&&p!==V.active?Fe=p:p===V.active&&Fe&&(Fe=null),s===p&&(p._ignoreWhileAnimating=o),p.animateAll(function(){g("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==s&&(s.animateAll(),s._ignoreWhileAnimating=null)),(o===N&&!N.animated||o===e&&!o.animated)&&(kt=null),!l.dragoverBubble&&!r.rootEl&&o!==document&&(N.parentNode[Ue]._isOutsideThisEl(r.target),!ee&&$t(r)),!l.dragoverBubble&&r.stopPropagation&&r.stopPropagation(),v=!0}function b(){Je=Ee(N),Rt=Ee(N,l.draggable),Xe({sortable:p,name:"change",toEl:e,newIndex:Je,newDraggableIndex:Rt,originalEvent:r})}if(r.preventDefault!==void 0&&r.cancelable&&r.preventDefault(),o=ct(o,l.draggable,e,!0),g("dragOver"),V.eventCanceled)return v;if(N.contains(r.target)||o.animated&&o.animatingX&&o.animatingY||p._ignoreWhileAnimating===o)return y(!1);if(vr=!1,d&&!l.disabled&&(h?t||(n=be!==pe):Fe===this||(this.lastPutMode=Wn.checkPull(this,d,N,r))&&u.checkPut(this,d,N,r))){if(c=this._getDirection(r,o)==="vertical",a=ve(N),g("dragOverValid"),V.eventCanceled)return v;if(n)return be=pe,m(),this._hideClone(),g("revert"),V.eventCanceled||(Vt?pe.insertBefore(N,Vt):pe.appendChild(N)),y(!0);var A=lo(e,l.draggable);if(!A||$i(r,c,this)&&!A.animated){if(A===N)return y(!1);if(A&&e===r.target&&(o=A),o&&(f=ve(o)),zn(pe,e,N,a,o,f,r,!!o)!==!1)return m(),e.appendChild(N),be=e,b(),y(!0)}else if(A&&Xi(r,c,this)){var I=un(e,0,l,!0);if(I===N)return y(!1);if(o=I,f=ve(o),zn(pe,e,N,a,o,f,r,!1)!==!1)return m(),e.insertBefore(N,I),be=e,b(),y(!0)}else if(o.parentNode===e){f=ve(o);var T=0,B,j=N.parentNode!==e,x=!Bi(N.animated&&N.toRect||a,o.animated&&o.toRect||f,c),M=c?"top":"left",L=So(o,"top","top")||So(N,"top","top"),K=L?L.scrollTop:void 0;kt!==o&&(B=f[M],Mn=!1,_n=!x&&l.invertSwap||j),T=Ki(r,o,f,c,x?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,_n,kt===o);var D;if(T!==0){var P=Ee(N);do P-=T,D=be.children[P];while(D&&(U(D,"display")==="none"||D===Z))}if(T===0||D===o)return y(!1);kt=o,Nn=T;var $=o.nextElementSibling,F=!1;F=T===1;var X=zn(pe,e,N,a,o,f,r,F);if(X!==!1)return(X===1||X===-1)&&(F=X===1),qr=!0,setTimeout(Hi,30),m(),F&&!$?e.appendChild(N):o.parentNode.insertBefore(N,F?$:o),L&&_o(L,0,K-L.scrollTop),be=N.parentNode,B!==void 0&&!_n&&(or=Math.abs(B-ve(o)[M])),b(),y(!0)}if(e.contains(N))return y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){te(document,"mousemove",this._onTouchMove),te(document,"touchmove",this._onTouchMove),te(document,"pointermove",this._onTouchMove),te(document,"dragover",$t),te(document,"mousemove",$t),te(document,"touchmove",$t)},_offUpEvents:function(){var r=this.el.ownerDocument;te(r,"mouseup",this._onDrop),te(r,"touchend",this._onDrop),te(r,"pointerup",this._onDrop),te(r,"touchcancel",this._onDrop),te(document,"selectstart",this)},_onDrop:function(r){var e=this.el,o=this.options;if(Je=Ee(N),Rt=Ee(N,o.draggable),Ye("drop",this,{evt:r}),be=N&&N.parentNode,Je=Ee(N),Rt=Ee(N,o.draggable),V.eventCanceled){this._nulling();return}rn=!1,_n=!1,Mn=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),eo(this.cloneId),eo(this._dragStartId),this.nativeDraggable&&(te(document,"drop",this),te(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Cn&&U(document.body,"user-select",""),U(N,"transform",""),r&&(xn&&(r.cancelable&&r.preventDefault(),!o.dropBubble&&r.stopPropagation()),Z&&Z.parentNode&&Z.parentNode.removeChild(Z),(pe===be||Fe&&Fe.lastPutMode!=="clone")&&Se&&Se.parentNode&&Se.parentNode.removeChild(Se),N&&(this.nativeDraggable&&te(N,"dragend",this),Gr(N),N.style["will-change"]="",xn&&!rn&&ye(N,Fe?Fe.options.ghostClass:this.options.ghostClass,!1),ye(N,this.options.chosenClass,!1),Xe({sortable:this,name:"unchoose",toEl:be,newIndex:null,newDraggableIndex:null,originalEvent:r}),pe!==be?(Je>=0&&(Xe({rootEl:be,name:"add",toEl:be,fromEl:pe,originalEvent:r}),Xe({sortable:this,name:"remove",toEl:be,originalEvent:r}),Xe({rootEl:be,name:"sort",toEl:be,fromEl:pe,originalEvent:r}),Xe({sortable:this,name:"sort",toEl:be,originalEvent:r})),Fe&&Fe.save()):Je!==an&&Je>=0&&(Xe({sortable:this,name:"update",toEl:be,originalEvent:r}),Xe({sortable:this,name:"sort",toEl:be,originalEvent:r})),V.active&&((Je==null||Je===-1)&&(Je=an,Rt=Rn),Xe({sortable:this,name:"end",toEl:be,originalEvent:r}),this.save()))),this._nulling()},_nulling:function(){Ye("nulling",this),pe=N=be=Z=Vt=Se=rr=Mt=Xt=st=xn=Je=Rt=an=Rn=kt=Nn=Fe=Wn=V.dragged=V.ghost=V.clone=V.active=null,mr.forEach(function(r){r.checked=!0}),mr.length=Lr=Br=0},handleEvent:function(r){switch(r.type){case"drop":case"dragend":this._onDrop(r);break;case"dragenter":case"dragover":N&&(this._onDragOver(r),Ui(r));break;case"selectstart":r.preventDefault();break}},toArray:function(){for(var r=[],e,o=this.el.children,a=0,f=o.length,n=this.options;a<f;a++)e=o[a],ct(e,n.draggable,this.el,!1)&&r.push(e.getAttribute(n.dataIdAttr)||Vi(e));return r},sort:function(r,e){var o={},a=this.el;this.toArray().forEach(function(f,n){var l=a.children[n];ct(l,this.options.draggable,a,!1)&&(o[f]=l)},this),e&&this.captureAnimationState(),r.forEach(function(f){o[f]&&(a.removeChild(o[f]),a.appendChild(o[f]))}),e&&this.animateAll()},save:function(){var r=this.options.store;r&&r.set&&r.set(this)},closest:function(r,e){return ct(r,e||this.options.draggable,this.el,!1)},option:function(r,e){var o=this.options;if(e===void 0)return o[r];var a=Xn.modifyOption(this,r,e);typeof a!="undefined"?o[r]=a:o[r]=e,r==="group"&&Jo(o)},destroy:function(){Ye("destroy",this);var r=this.el;r[Ue]=null,te(r,"mousedown",this._onTapStart),te(r,"touchstart",this._onTapStart),te(r,"pointerdown",this._onTapStart),this.nativeDraggable&&(te(r,"dragover",this),te(r,"dragenter",this)),Array.prototype.forEach.call(r.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),gr.splice(gr.indexOf(this.el),1),this.el=r=null},_hideClone:function(){if(!Mt){if(Ye("hideClone",this),V.eventCanceled)return;U(Se,"display","none"),this.options.removeCloneOnHide&&Se.parentNode&&Se.parentNode.removeChild(Se),Mt=!0}},_showClone:function(r){if(r.lastPutMode!=="clone"){this._hideClone();return}if(Mt){if(Ye("showClone",this),V.eventCanceled)return;N.parentNode==pe&&!this.options.group.revertClone?pe.insertBefore(Se,N):Vt?pe.insertBefore(Se,Vt):pe.appendChild(Se),this.options.group.revertClone&&this.animate(N,Se),U(Se,"display",""),Mt=!1}}};function Ui(i){i.dataTransfer&&(i.dataTransfer.dropEffect="move"),i.cancelable&&i.preventDefault()}function zn(i,r,e,o,a,f,n,l){var u,d=i[Ue],h=d.options.onMove,t;return window.CustomEvent&&!It&&!Hn?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=r,u.from=i,u.dragged=e,u.draggedRect=o,u.related=a||r,u.relatedRect=f||ve(r),u.willInsertAfter=l,u.originalEvent=n,i.dispatchEvent(u),h&&(t=h.call(d,u,n)),t}function Gr(i){i.draggable=!1}function Hi(){qr=!1}function Xi(i,r,e){var o=ve(un(e.el,0,e.options,!0)),a=10;return r?i.clientX<o.left-a||i.clientY<o.top&&i.clientX<o.right:i.clientY<o.top-a||i.clientY<o.bottom&&i.clientX<o.left}function $i(i,r,e){var o=ve(lo(e.el,e.options.draggable)),a=10;return r?i.clientX>o.right+a||i.clientX<=o.right&&i.clientY>o.bottom&&i.clientX>=o.left:i.clientX>o.right&&i.clientY>o.top||i.clientX<=o.right&&i.clientY>o.bottom+a}function Ki(i,r,e,o,a,f,n,l){var u=o?i.clientY:i.clientX,d=o?e.height:e.width,h=o?e.top:e.left,t=o?e.bottom:e.right,s=!1;if(!n){if(l&&or<d*a){if(!Mn&&(Nn===1?u>h+d*f/2:u<t-d*f/2)&&(Mn=!0),Mn)s=!0;else if(Nn===1?u<h+or:u>t-or)return-Nn}else if(u>h+d*(1-a)/2&&u<t-d*(1-a)/2)return Yi(r)}return s=s||n,s&&(u<h+d*f/2||u>t-d*f/2)?u>h+d/2?1:-1:0}function Yi(i){return Ee(N)<Ee(i)?1:-1}function Vi(i){for(var r=i.tagName+i.className+i.src+i.href+i.textContent,e=r.length,o=0;e--;)o+=r.charCodeAt(e);return o.toString(36)}function Wi(i){mr.length=0;for(var r=i.getElementsByTagName("input"),e=r.length;e--;){var o=r[e];o.checked&&mr.push(o)}}function ar(i){return setTimeout(i,0)}function eo(i){return clearTimeout(i)}Or&&ne(document,"touchmove",function(i){(V.active||rn)&&i.cancelable&&i.preventDefault()});V.utils={on:ne,off:te,css:U,find:Vo,is:function(r,e){return!!ct(r,e,r,!1)},extend:Ci,throttle:Wo,closest:ct,toggleClass:ye,clone:uo,index:Ee,nextTick:ar,cancelNextTick:eo,detectDirection:zo,getChild:un};V.get=function(i){return i[Ue]};V.mount=function(){for(var i=arguments.length,r=new Array(i),e=0;e<i;e++)r[e]=arguments[e];r[0].constructor===Array&&(r=r[0]),r.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(V.utils=mt(mt({},V.utils),o.utils)),Xn.mount(o)})};V.create=function(i,r){return new V(i,r)};V.version=Ti;var Te=[],wn,to,no=!1,Ur,Hr,yr,Tn;function _i(){function i(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this))}return i.prototype={dragStarted:function(e){var o=e.originalEvent;this.sortable.nativeDraggable?ne(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ne(document,"pointermove",this._handleFallbackAutoScroll):o.touches?ne(document,"touchmove",this._handleFallbackAutoScroll):ne(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var o=e.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?te(document,"dragover",this._handleAutoScroll):(te(document,"pointermove",this._handleFallbackAutoScroll),te(document,"touchmove",this._handleFallbackAutoScroll),te(document,"mousemove",this._handleFallbackAutoScroll)),Oo(),ir(),Pi()},nulling:function(){yr=to=wn=no=Tn=Ur=Hr=null,Te.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,o){var a=this,f=(e.touches?e.touches[0]:e).clientX,n=(e.touches?e.touches[0]:e).clientY,l=document.elementFromPoint(f,n);if(yr=e,o||this.options.forceAutoScrollFallback||Hn||It||Cn){Xr(e,this.options,l,o);var u=Lt(l,!0);no&&(!Tn||f!==Ur||n!==Hr)&&(Tn&&Oo(),Tn=setInterval(function(){var d=Lt(document.elementFromPoint(f,n),!0);d!==u&&(u=d,ir()),Xr(e,a.options,d,o)},10),Ur=f,Hr=n)}else{if(!this.options.bubbleScroll||Lt(l,!0)===vt()){ir();return}Xr(e,this.options,Lt(l,!1),!1)}}},ot(i,{pluginName:"scroll",initializeByDefault:!0})}function ir(){Te.forEach(function(i){clearInterval(i.pid)}),Te=[]}function Oo(){clearInterval(Tn)}var Xr=Wo(function(i,r,e,o){if(!!r.scroll){var a=(i.touches?i.touches[0]:i).clientX,f=(i.touches?i.touches[0]:i).clientY,n=r.scrollSensitivity,l=r.scrollSpeed,u=vt(),d=!1,h;to!==e&&(to=e,ir(),wn=r.scroll,h=r.scrollFn,wn===!0&&(wn=Lt(e,!0)));var t=0,s=wn;do{var c=s,p=ve(c),v=p.top,g=p.bottom,m=p.left,y=p.right,b=p.width,A=p.height,I=void 0,T=void 0,B=c.scrollWidth,j=c.scrollHeight,x=U(c),M=c.scrollLeft,L=c.scrollTop;c===u?(I=b<B&&(x.overflowX==="auto"||x.overflowX==="scroll"||x.overflowX==="visible"),T=A<j&&(x.overflowY==="auto"||x.overflowY==="scroll"||x.overflowY==="visible")):(I=b<B&&(x.overflowX==="auto"||x.overflowX==="scroll"),T=A<j&&(x.overflowY==="auto"||x.overflowY==="scroll"));var K=I&&(Math.abs(y-a)<=n&&M+b<B)-(Math.abs(m-a)<=n&&!!M),D=T&&(Math.abs(g-f)<=n&&L+A<j)-(Math.abs(v-f)<=n&&!!L);if(!Te[t])for(var P=0;P<=t;P++)Te[P]||(Te[P]={});(Te[t].vx!=K||Te[t].vy!=D||Te[t].el!==c)&&(Te[t].el=c,Te[t].vx=K,Te[t].vy=D,clearInterval(Te[t].pid),(K!=0||D!=0)&&(d=!0,Te[t].pid=setInterval(function(){o&&this.layer===0&&V.active._onTouchMove(yr);var $=Te[this.layer].vy?Te[this.layer].vy*l:0,F=Te[this.layer].vx?Te[this.layer].vx*l:0;typeof h=="function"&&h.call(V.dragged.parentNode[Ue],F,$,i,yr,Te[this.layer].el)!=="continue"||_o(Te[this.layer].el,F,$)}.bind({layer:t}),24))),t++}while(r.bubbleScroll&&s!==u&&(s=Lt(s,!1)));no=d}},30),qo=function(r){var e=r.originalEvent,o=r.putSortable,a=r.dragEl,f=r.activeSortable,n=r.dispatchSortableEvent,l=r.hideGhostForTarget,u=r.unhideGhostForTarget;if(!!e){var d=o||f;l();var h=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,t=document.elementFromPoint(h.clientX,h.clientY);u(),d&&!d.el.contains(t)&&(n("spill"),this.onSpill({dragEl:a,putSortable:o}))}};function fo(){}fo.prototype={startIndex:null,dragStart:function(r){var e=r.oldDraggableIndex;this.startIndex=e},onSpill:function(r){var e=r.dragEl,o=r.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var a=un(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(e,a):this.sortable.el.appendChild(e),this.sortable.animateAll(),o&&o.animateAll()},drop:qo};ot(fo,{pluginName:"revertOnSpill"});function co(){}co.prototype={onSpill:function(r){var e=r.dragEl,o=r.putSortable,a=o||this.sortable;a.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),a.animateAll()},drop:qo};ot(co,{pluginName:"removeOnSpill"});var tt;function Qi(){function i(){this.defaults={swapClass:"sortable-swap-highlight"}}return i.prototype={dragStart:function(e){var o=e.dragEl;tt=o},dragOverValid:function(e){var o=e.completed,a=e.target,f=e.onMove,n=e.activeSortable,l=e.changed,u=e.cancel;if(!!n.options.swap){var d=this.sortable.el,h=this.options;if(a&&a!==d){var t=tt;f(a)!==!1?(ye(a,h.swapClass,!0),tt=a):tt=null,t&&t!==tt&&ye(t,h.swapClass,!1)}l(),o(!0),u()}},drop:function(e){var o=e.activeSortable,a=e.putSortable,f=e.dragEl,n=a||this.sortable,l=this.options;tt&&ye(tt,l.swapClass,!1),tt&&(l.swap||a&&a.options.swap)&&f!==tt&&(n.captureAnimationState(),n!==o&&o.captureAnimationState(),zi(f,tt),n.animateAll(),n!==o&&o.animateAll())},nulling:function(){tt=null}},ot(i,{pluginName:"swap",eventProperties:function(){return{swapItem:tt}}})}function zi(i,r){var e=i.parentNode,o=r.parentNode,a,f;!e||!o||e.isEqualNode(r)||o.isEqualNode(i)||(a=Ee(i),f=Ee(r),e.isEqualNode(o)&&a<f&&f++,e.insertBefore(r,e.children[a]),o.insertBefore(i,o.children[f]))}var J=[],Qe=[],bn,lt,An=!1,Ve=!1,qt=!1,ue,Sn,Jn;function Ji(){function i(r){for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this));r.options.supportPointer?ne(document,"pointerup",this._deselectMultiDrag):(ne(document,"mouseup",this._deselectMultiDrag),ne(document,"touchend",this._deselectMultiDrag)),ne(document,"keydown",this._checkKeyDown),ne(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(a,f){var n="";J.length&&lt===r?J.forEach(function(l,u){n+=(u?", ":"")+l.textContent}):n=f.textContent,a.setData("Text",n)}}}return i.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var o=e.dragEl;ue=o},delayEnded:function(){this.isMultiDrag=~J.indexOf(ue)},setupClone:function(e){var o=e.sortable,a=e.cancel;if(!!this.isMultiDrag){for(var f=0;f<J.length;f++)Qe.push(uo(J[f])),Qe[f].sortableIndex=J[f].sortableIndex,Qe[f].draggable=!1,Qe[f].style["will-change"]="",ye(Qe[f],this.options.selectedClass,!1),J[f]===ue&&ye(Qe[f],this.options.chosenClass,!1);o._hideClone(),a()}},clone:function(e){var o=e.sortable,a=e.rootEl,f=e.dispatchSortableEvent,n=e.cancel;!this.isMultiDrag||this.options.removeCloneOnHide||J.length&&lt===o&&(Do(!0,a),f("clone"),n())},showClone:function(e){var o=e.cloneNowShown,a=e.rootEl,f=e.cancel;!this.isMultiDrag||(Do(!1,a),Qe.forEach(function(n){U(n,"display","")}),o(),Jn=!1,f())},hideClone:function(e){var o=this;e.sortable;var a=e.cloneNowHidden,f=e.cancel;!this.isMultiDrag||(Qe.forEach(function(n){U(n,"display","none"),o.options.removeCloneOnHide&&n.parentNode&&n.parentNode.removeChild(n)}),a(),Jn=!0,f())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&lt&&lt.multiDrag._deselectMultiDrag(),J.forEach(function(o){o.sortableIndex=Ee(o)}),J=J.sort(function(o,a){return o.sortableIndex-a.sortableIndex}),qt=!0},dragStarted:function(e){var o=this,a=e.sortable;if(!!this.isMultiDrag){if(this.options.sort&&(a.captureAnimationState(),this.options.animation)){J.forEach(function(n){n!==ue&&U(n,"position","absolute")});var f=ve(ue,!1,!0,!0);J.forEach(function(n){n!==ue&&xo(n,f)}),Ve=!0,An=!0}a.animateAll(function(){Ve=!1,An=!1,o.options.animation&&J.forEach(function(n){Mr(n)}),o.options.sort&&Zn()})}},dragOver:function(e){var o=e.target,a=e.completed,f=e.cancel;Ve&&~J.indexOf(o)&&(a(!1),f())},revert:function(e){var o=e.fromSortable,a=e.rootEl,f=e.sortable,n=e.dragRect;J.length>1&&(J.forEach(function(l){f.addAnimationState({target:l,rect:Ve?ve(l):n}),Mr(l),l.fromRect=n,o.removeAnimationState(l)}),Ve=!1,Zi(!this.options.removeCloneOnHide,a))},dragOverCompleted:function(e){var o=e.sortable,a=e.isOwner,f=e.insertion,n=e.activeSortable,l=e.parentEl,u=e.putSortable,d=this.options;if(f){if(a&&n._hideClone(),An=!1,d.animation&&J.length>1&&(Ve||!a&&!n.options.sort&&!u)){var h=ve(ue,!1,!0,!0);J.forEach(function(s){s!==ue&&(xo(s,h),l.appendChild(s))}),Ve=!0}if(!a)if(Ve||Zn(),J.length>1){var t=Jn;n._showClone(o),n.options.animation&&!Jn&&t&&Qe.forEach(function(s){n.addAnimationState({target:s,rect:Sn}),s.fromRect=Sn,s.thisAnimationDuration=null})}else n._showClone(o)}},dragOverAnimationCapture:function(e){var o=e.dragRect,a=e.isOwner,f=e.activeSortable;if(J.forEach(function(l){l.thisAnimationDuration=null}),f.options.animation&&!a&&f.multiDrag.isMultiDrag){Sn=ot({},o);var n=Qt(ue,!0);Sn.top-=n.f,Sn.left-=n.e}},dragOverAnimationComplete:function(){Ve&&(Ve=!1,Zn())},drop:function(e){var o=e.originalEvent,a=e.rootEl,f=e.parentEl,n=e.sortable,l=e.dispatchSortableEvent,u=e.oldIndex,d=e.putSortable,h=d||this.sortable;if(!!o){var t=this.options,s=f.children;if(!qt)if(t.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),ye(ue,t.selectedClass,!~J.indexOf(ue)),~J.indexOf(ue))J.splice(J.indexOf(ue),1),bn=null,En({sortable:n,rootEl:a,name:"deselect",targetEl:ue,originalEvt:o});else{if(J.push(ue),En({sortable:n,rootEl:a,name:"select",targetEl:ue,originalEvt:o}),o.shiftKey&&bn&&n.el.contains(bn)){var c=Ee(bn),p=Ee(ue);if(~c&&~p&&c!==p){var v,g;for(p>c?(g=c,v=p):(g=p,v=c+1);g<v;g++)~J.indexOf(s[g])||(ye(s[g],t.selectedClass,!0),J.push(s[g]),En({sortable:n,rootEl:a,name:"select",targetEl:s[g],originalEvt:o}))}}else bn=ue;lt=h}if(qt&&this.isMultiDrag){if(Ve=!1,(f[Ue].options.sort||f!==a)&&J.length>1){var m=ve(ue),y=Ee(ue,":not(."+this.options.selectedClass+")");if(!An&&t.animation&&(ue.thisAnimationDuration=null),h.captureAnimationState(),!An&&(t.animation&&(ue.fromRect=m,J.forEach(function(A){if(A.thisAnimationDuration=null,A!==ue){var I=Ve?ve(A):m;A.fromRect=I,h.addAnimationState({target:A,rect:I})}})),Zn(),J.forEach(function(A){s[y]?f.insertBefore(A,s[y]):f.appendChild(A),y++}),u===Ee(ue))){var b=!1;J.forEach(function(A){if(A.sortableIndex!==Ee(A)){b=!0;return}}),b&&l("update")}J.forEach(function(A){Mr(A)}),h.animateAll()}lt=h}(a===f||d&&d.lastPutMode!=="clone")&&Qe.forEach(function(A){A.parentNode&&A.parentNode.removeChild(A)})}},nullingGlobal:function(){this.isMultiDrag=qt=!1,Qe.length=0},destroyGlobal:function(){this._deselectMultiDrag(),te(document,"pointerup",this._deselectMultiDrag),te(document,"mouseup",this._deselectMultiDrag),te(document,"touchend",this._deselectMultiDrag),te(document,"keydown",this._checkKeyDown),te(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(typeof qt!="undefined"&&qt)&&lt===this.sortable&&!(e&&ct(e.target,this.options.draggable,this.sortable.el,!1))&&!(e&&e.button!==0))for(;J.length;){var o=J[0];ye(o,this.options.selectedClass,!1),J.shift(),En({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:o,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},ot(i,{pluginName:"multiDrag",utils:{select:function(e){var o=e.parentNode[Ue];!o||!o.options.multiDrag||~J.indexOf(e)||(lt&&lt!==o&&(lt.multiDrag._deselectMultiDrag(),lt=o),ye(e,o.options.selectedClass,!0),J.push(e))},deselect:function(e){var o=e.parentNode[Ue],a=J.indexOf(e);!o||!o.options.multiDrag||!~a||(ye(e,o.options.selectedClass,!1),J.splice(a,1))}},eventProperties:function(){var e=this,o=[],a=[];return J.forEach(function(f){o.push({multiDragElement:f,index:f.sortableIndex});var n;Ve&&f!==ue?n=-1:Ve?n=Ee(f,":not(."+e.options.selectedClass+")"):n=Ee(f),a.push({multiDragElement:f,index:n})}),{items:Ai(J),clones:[].concat(Qe),oldIndicies:o,newIndicies:a}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),e==="ctrl"?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function Zi(i,r){J.forEach(function(e,o){var a=r.children[e.sortableIndex+(i?Number(o):0)];a?r.insertBefore(e,a):r.appendChild(e)})}function Do(i,r){Qe.forEach(function(e,o){var a=r.children[e.sortableIndex+(i?Number(o):0)];a?r.insertBefore(e,a):r.appendChild(e)})}function Zn(){J.forEach(function(i){i!==ue&&i.parentNode&&i.parentNode.removeChild(i)})}V.mount(new _i);V.mount(co,fo);var ki=Object.freeze(Object.defineProperty({__proto__:null,default:V,MultiDrag:Ji,Sortable:V,Swap:Qi},Symbol.toStringTag,{value:"Module"})),qi=Go(ki);(function(i,r){(function(o,a){i.exports=a(gi,qi)})(typeof self!="undefined"?self:nn,function(e,o){return function(a){var f={};function n(l){if(f[l])return f[l].exports;var u=f[l]={i:l,l:!1,exports:{}};return a[l].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=a,n.c=f,n.d=function(l,u,d){n.o(l,u)||Object.defineProperty(l,u,{enumerable:!0,get:d})},n.r=function(l){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},n.t=function(l,u){if(u&1&&(l=n(l)),u&8||u&4&&typeof l=="object"&&l&&l.__esModule)return l;var d=Object.create(null);if(n.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:l}),u&2&&typeof l!="string")for(var h in l)n.d(d,h,function(t){return l[t]}.bind(null,h));return d},n.n=function(l){var u=l&&l.__esModule?function(){return l.default}:function(){return l};return n.d(u,"a",u),u},n.o=function(l,u){return Object.prototype.hasOwnProperty.call(l,u)},n.p="",n(n.s="fb15")}({"00ee":function(a,f,n){var l=n("b622"),u=l("toStringTag"),d={};d[u]="z",a.exports=String(d)==="[object z]"},"0366":function(a,f,n){var l=n("1c0b");a.exports=function(u,d,h){if(l(u),d===void 0)return u;switch(h){case 0:return function(){return u.call(d)};case 1:return function(t){return u.call(d,t)};case 2:return function(t,s){return u.call(d,t,s)};case 3:return function(t,s,c){return u.call(d,t,s,c)}}return function(){return u.apply(d,arguments)}}},"057f":function(a,f,n){var l=n("fc6a"),u=n("241c").f,d={}.toString,h=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],t=function(s){try{return u(s)}catch{return h.slice()}};a.exports.f=function(c){return h&&d.call(c)=="[object Window]"?t(c):u(l(c))}},"06cf":function(a,f,n){var l=n("83ab"),u=n("d1e7"),d=n("5c6c"),h=n("fc6a"),t=n("c04e"),s=n("5135"),c=n("0cfb"),p=Object.getOwnPropertyDescriptor;f.f=l?p:function(g,m){if(g=h(g),m=t(m,!0),c)try{return p(g,m)}catch{}if(s(g,m))return d(!u.f.call(g,m),g[m])}},"0cfb":function(a,f,n){var l=n("83ab"),u=n("d039"),d=n("cc12");a.exports=!l&&!u(function(){return Object.defineProperty(d("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(a,f,n){var l=n("23e7"),u=n("d58f").left,d=n("a640"),h=n("ae40"),t=d("reduce"),s=h("reduce",{1:0});l({target:"Array",proto:!0,forced:!t||!s},{reduce:function(p){return u(this,p,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(a,f,n){var l=n("c6b6"),u=n("9263");a.exports=function(d,h){var t=d.exec;if(typeof t=="function"){var s=t.call(d,h);if(typeof s!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return s}if(l(d)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return u.call(d,h)}},"159b":function(a,f,n){var l=n("da84"),u=n("fdbc"),d=n("17c2"),h=n("9112");for(var t in u){var s=l[t],c=s&&s.prototype;if(c&&c.forEach!==d)try{h(c,"forEach",d)}catch{c.forEach=d}}},"17c2":function(a,f,n){var l=n("b727").forEach,u=n("a640"),d=n("ae40"),h=u("forEach"),t=d("forEach");a.exports=!h||!t?function(c){return l(this,c,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(a,f,n){var l=n("d066");a.exports=l("document","documentElement")},"1c0b":function(a,f){a.exports=function(n){if(typeof n!="function")throw TypeError(String(n)+" is not a function");return n}},"1c7e":function(a,f,n){var l=n("b622"),u=l("iterator"),d=!1;try{var h=0,t={next:function(){return{done:!!h++}},return:function(){d=!0}};t[u]=function(){return this},Array.from(t,function(){throw 2})}catch{}a.exports=function(s,c){if(!c&&!d)return!1;var p=!1;try{var v={};v[u]=function(){return{next:function(){return{done:p=!0}}}},s(v)}catch{}return p}},"1d80":function(a,f){a.exports=function(n){if(n==null)throw TypeError("Can't call method on "+n);return n}},"1dde":function(a,f,n){var l=n("d039"),u=n("b622"),d=n("2d00"),h=u("species");a.exports=function(t){return d>=51||!l(function(){var s=[],c=s.constructor={};return c[h]=function(){return{foo:1}},s[t](Boolean).foo!==1})}},"23cb":function(a,f,n){var l=n("a691"),u=Math.max,d=Math.min;a.exports=function(h,t){var s=l(h);return s<0?u(s+t,0):d(s,t)}},"23e7":function(a,f,n){var l=n("da84"),u=n("06cf").f,d=n("9112"),h=n("6eeb"),t=n("ce4e"),s=n("e893"),c=n("94ca");a.exports=function(p,v){var g=p.target,m=p.global,y=p.stat,b,A,I,T,B,j;if(m?A=l:y?A=l[g]||t(g,{}):A=(l[g]||{}).prototype,A)for(I in v){if(B=v[I],p.noTargetGet?(j=u(A,I),T=j&&j.value):T=A[I],b=c(m?I:g+(y?".":"#")+I,p.forced),!b&&T!==void 0){if(typeof B==typeof T)continue;s(B,T)}(p.sham||T&&T.sham)&&d(B,"sham",!0),h(A,I,B,p)}}},"241c":function(a,f,n){var l=n("ca84"),u=n("7839"),d=u.concat("length","prototype");f.f=Object.getOwnPropertyNames||function(t){return l(t,d)}},"25f0":function(a,f,n){var l=n("6eeb"),u=n("825a"),d=n("d039"),h=n("ad6d"),t="toString",s=RegExp.prototype,c=s[t],p=d(function(){return c.call({source:"a",flags:"b"})!="/a/b"}),v=c.name!=t;(p||v)&&l(RegExp.prototype,t,function(){var m=u(this),y=String(m.source),b=m.flags,A=String(b===void 0&&m instanceof RegExp&&!("flags"in s)?h.call(m):b);return"/"+y+"/"+A},{unsafe:!0})},"2ca0":function(a,f,n){var l=n("23e7"),u=n("06cf").f,d=n("50c4"),h=n("5a34"),t=n("1d80"),s=n("ab13"),c=n("c430"),p="".startsWith,v=Math.min,g=s("startsWith"),m=!c&&!g&&!!function(){var y=u(String.prototype,"startsWith");return y&&!y.writable}();l({target:"String",proto:!0,forced:!m&&!g},{startsWith:function(b){var A=String(t(this));h(b);var I=d(v(arguments.length>1?arguments[1]:void 0,A.length)),T=String(b);return p?p.call(A,T,I):A.slice(I,I+T.length)===T}})},"2d00":function(a,f,n){var l=n("da84"),u=n("342f"),d=l.process,h=d&&d.versions,t=h&&h.v8,s,c;t?(s=t.split("."),c=s[0]+s[1]):u&&(s=u.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=u.match(/Chrome\/(\d+)/),s&&(c=s[1]))),a.exports=c&&+c},"342f":function(a,f,n){var l=n("d066");a.exports=l("navigator","userAgent")||""},"35a1":function(a,f,n){var l=n("f5df"),u=n("3f8c"),d=n("b622"),h=d("iterator");a.exports=function(t){if(t!=null)return t[h]||t["@@iterator"]||u[l(t)]}},"37e8":function(a,f,n){var l=n("83ab"),u=n("9bf2"),d=n("825a"),h=n("df75");a.exports=l?Object.defineProperties:function(s,c){d(s);for(var p=h(c),v=p.length,g=0,m;v>g;)u.f(s,m=p[g++],c[m]);return s}},"3bbe":function(a,f,n){var l=n("861d");a.exports=function(u){if(!l(u)&&u!==null)throw TypeError("Can't set "+String(u)+" as a prototype");return u}},"3ca3":function(a,f,n){var l=n("6547").charAt,u=n("69f3"),d=n("7dd0"),h="String Iterator",t=u.set,s=u.getterFor(h);d(String,"String",function(c){t(this,{type:h,string:String(c),index:0})},function(){var p=s(this),v=p.string,g=p.index,m;return g>=v.length?{value:void 0,done:!0}:(m=l(v,g),p.index+=m.length,{value:m,done:!1})})},"3f8c":function(a,f){a.exports={}},4160:function(a,f,n){var l=n("23e7"),u=n("17c2");l({target:"Array",proto:!0,forced:[].forEach!=u},{forEach:u})},"428f":function(a,f,n){var l=n("da84");a.exports=l},"44ad":function(a,f,n){var l=n("d039"),u=n("c6b6"),d="".split;a.exports=l(function(){return!Object("z").propertyIsEnumerable(0)})?function(h){return u(h)=="String"?d.call(h,""):Object(h)}:Object},"44d2":function(a,f,n){var l=n("b622"),u=n("7c73"),d=n("9bf2"),h=l("unscopables"),t=Array.prototype;t[h]==null&&d.f(t,h,{configurable:!0,value:u(null)}),a.exports=function(s){t[h][s]=!0}},"44e7":function(a,f,n){var l=n("861d"),u=n("c6b6"),d=n("b622"),h=d("match");a.exports=function(t){var s;return l(t)&&((s=t[h])!==void 0?!!s:u(t)=="RegExp")}},4930:function(a,f,n){var l=n("d039");a.exports=!!Object.getOwnPropertySymbols&&!l(function(){return!String(Symbol())})},"4d64":function(a,f,n){var l=n("fc6a"),u=n("50c4"),d=n("23cb"),h=function(t){return function(s,c,p){var v=l(s),g=u(v.length),m=d(p,g),y;if(t&&c!=c){for(;g>m;)if(y=v[m++],y!=y)return!0}else for(;g>m;m++)if((t||m in v)&&v[m]===c)return t||m||0;return!t&&-1}};a.exports={includes:h(!0),indexOf:h(!1)}},"4de4":function(a,f,n){var l=n("23e7"),u=n("b727").filter,d=n("1dde"),h=n("ae40"),t=d("filter"),s=h("filter");l({target:"Array",proto:!0,forced:!t||!s},{filter:function(p){return u(this,p,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(a,f,n){var l=n("0366"),u=n("7b0b"),d=n("9bdd"),h=n("e95a"),t=n("50c4"),s=n("8418"),c=n("35a1");a.exports=function(v){var g=u(v),m=typeof this=="function"?this:Array,y=arguments.length,b=y>1?arguments[1]:void 0,A=b!==void 0,I=c(g),T=0,B,j,x,M,L,K;if(A&&(b=l(b,y>2?arguments[2]:void 0,2)),I!=null&&!(m==Array&&h(I)))for(M=I.call(g),L=M.next,j=new m;!(x=L.call(M)).done;T++)K=A?d(M,b,[x.value,T],!0):x.value,s(j,T,K);else for(B=t(g.length),j=new m(B);B>T;T++)K=A?b(g[T],T):g[T],s(j,T,K);return j.length=T,j}},"4fad":function(a,f,n){var l=n("23e7"),u=n("6f53").entries;l({target:"Object",stat:!0},{entries:function(h){return u(h)}})},"50c4":function(a,f,n){var l=n("a691"),u=Math.min;a.exports=function(d){return d>0?u(l(d),9007199254740991):0}},5135:function(a,f){var n={}.hasOwnProperty;a.exports=function(l,u){return n.call(l,u)}},5319:function(a,f,n){var l=n("d784"),u=n("825a"),d=n("7b0b"),h=n("50c4"),t=n("a691"),s=n("1d80"),c=n("8aa5"),p=n("14c3"),v=Math.max,g=Math.min,m=Math.floor,y=/\$([$&'`]|\d\d?|<[^>]*>)/g,b=/\$([$&'`]|\d\d?)/g,A=function(I){return I===void 0?I:String(I)};l("replace",2,function(I,T,B,j){var x=j.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,M=j.REPLACE_KEEPS_$0,L=x?"$":"$0";return[function(P,$){var F=s(this),X=P==null?void 0:P[I];return X!==void 0?X.call(P,F,$):T.call(String(F),P,$)},function(D,P){if(!x&&M||typeof P=="string"&&P.indexOf(L)===-1){var $=B(T,D,this,P);if($.done)return $.value}var F=u(D),X=String(this),ee=typeof P=="function";ee||(P=String(P));var le=F.global;if(le){var Ce=F.unicode;F.lastIndex=0}for(var fe=[];;){var ce=p(F,X);if(ce===null||(fe.push(ce),!le))break;var Oe=String(ce[0]);Oe===""&&(F.lastIndex=c(X,h(F.lastIndex),Ce))}for(var Pe="",we=0,de=0;de<fe.length;de++){ce=fe[de];for(var ge=String(ce[0]),_e=v(g(t(ce.index),X.length),0),He=[],bt=1;bt<ce.length;bt++)He.push(A(ce[bt]));var Ut=ce.groups;if(ee){var Dt=[ge].concat(He,_e,X);Ut!==void 0&&Dt.push(Ut);var Re=String(P.apply(void 0,Dt))}else Re=K(ge,X,_e,He,Ut,P);_e>=we&&(Pe+=X.slice(we,_e)+Re,we=_e+ge.length)}return Pe+X.slice(we)}];function K(D,P,$,F,X,ee){var le=$+D.length,Ce=F.length,fe=b;return X!==void 0&&(X=d(X),fe=y),T.call(ee,fe,function(ce,Oe){var Pe;switch(Oe.charAt(0)){case"$":return"$";case"&":return D;case"`":return P.slice(0,$);case"'":return P.slice(le);case"<":Pe=X[Oe.slice(1,-1)];break;default:var we=+Oe;if(we===0)return ce;if(we>Ce){var de=m(we/10);return de===0?ce:de<=Ce?F[de-1]===void 0?Oe.charAt(1):F[de-1]+Oe.charAt(1):ce}Pe=F[we-1]}return Pe===void 0?"":Pe})}})},5692:function(a,f,n){var l=n("c430"),u=n("c6cd");(a.exports=function(d,h){return u[d]||(u[d]=h!==void 0?h:{})})("versions",[]).push({version:"3.6.5",mode:l?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(a,f,n){var l=n("d066"),u=n("241c"),d=n("7418"),h=n("825a");a.exports=l("Reflect","ownKeys")||function(s){var c=u.f(h(s)),p=d.f;return p?c.concat(p(s)):c}},"5a34":function(a,f,n){var l=n("44e7");a.exports=function(u){if(l(u))throw TypeError("The method doesn't accept regular expressions");return u}},"5c6c":function(a,f){a.exports=function(n,l){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:l}}},"5db7":function(a,f,n){var l=n("23e7"),u=n("a2bf"),d=n("7b0b"),h=n("50c4"),t=n("1c0b"),s=n("65f0");l({target:"Array",proto:!0},{flatMap:function(p){var v=d(this),g=h(v.length),m;return t(p),m=s(v,0),m.length=u(m,v,v,g,0,1,p,arguments.length>1?arguments[1]:void 0),m}})},6547:function(a,f,n){var l=n("a691"),u=n("1d80"),d=function(h){return function(t,s){var c=String(u(t)),p=l(s),v=c.length,g,m;return p<0||p>=v?h?"":void 0:(g=c.charCodeAt(p),g<55296||g>56319||p+1===v||(m=c.charCodeAt(p+1))<56320||m>57343?h?c.charAt(p):g:h?c.slice(p,p+2):(g-55296<<10)+(m-56320)+65536)}};a.exports={codeAt:d(!1),charAt:d(!0)}},"65f0":function(a,f,n){var l=n("861d"),u=n("e8b5"),d=n("b622"),h=d("species");a.exports=function(t,s){var c;return u(t)&&(c=t.constructor,typeof c=="function"&&(c===Array||u(c.prototype))?c=void 0:l(c)&&(c=c[h],c===null&&(c=void 0))),new(c===void 0?Array:c)(s===0?0:s)}},"69f3":function(a,f,n){var l=n("7f9a"),u=n("da84"),d=n("861d"),h=n("9112"),t=n("5135"),s=n("f772"),c=n("d012"),p=u.WeakMap,v,g,m,y=function(x){return m(x)?g(x):v(x,{})},b=function(x){return function(M){var L;if(!d(M)||(L=g(M)).type!==x)throw TypeError("Incompatible receiver, "+x+" required");return L}};if(l){var A=new p,I=A.get,T=A.has,B=A.set;v=function(x,M){return B.call(A,x,M),M},g=function(x){return I.call(A,x)||{}},m=function(x){return T.call(A,x)}}else{var j=s("state");c[j]=!0,v=function(x,M){return h(x,j,M),M},g=function(x){return t(x,j)?x[j]:{}},m=function(x){return t(x,j)}}a.exports={set:v,get:g,has:m,enforce:y,getterFor:b}},"6eeb":function(a,f,n){var l=n("da84"),u=n("9112"),d=n("5135"),h=n("ce4e"),t=n("8925"),s=n("69f3"),c=s.get,p=s.enforce,v=String(String).split("String");(a.exports=function(g,m,y,b){var A=b?!!b.unsafe:!1,I=b?!!b.enumerable:!1,T=b?!!b.noTargetGet:!1;if(typeof y=="function"&&(typeof m=="string"&&!d(y,"name")&&u(y,"name",m),p(y).source=v.join(typeof m=="string"?m:"")),g===l){I?g[m]=y:h(m,y);return}else A?!T&&g[m]&&(I=!0):delete g[m];I?g[m]=y:u(g,m,y)})(Function.prototype,"toString",function(){return typeof this=="function"&&c(this).source||t(this)})},"6f53":function(a,f,n){var l=n("83ab"),u=n("df75"),d=n("fc6a"),h=n("d1e7").f,t=function(s){return function(c){for(var p=d(c),v=u(p),g=v.length,m=0,y=[],b;g>m;)b=v[m++],(!l||h.call(p,b))&&y.push(s?[b,p[b]]:p[b]);return y}};a.exports={entries:t(!0),values:t(!1)}},"73d9":function(a,f,n){var l=n("44d2");l("flatMap")},7418:function(a,f){f.f=Object.getOwnPropertySymbols},"746f":function(a,f,n){var l=n("428f"),u=n("5135"),d=n("e538"),h=n("9bf2").f;a.exports=function(t){var s=l.Symbol||(l.Symbol={});u(s,t)||h(s,t,{value:d.f(t)})}},7839:function(a,f){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(a,f,n){var l=n("1d80");a.exports=function(u){return Object(l(u))}},"7c73":function(a,f,n){var l=n("825a"),u=n("37e8"),d=n("7839"),h=n("d012"),t=n("1be4"),s=n("cc12"),c=n("f772"),p=">",v="<",g="prototype",m="script",y=c("IE_PROTO"),b=function(){},A=function(x){return v+m+p+x+v+"/"+m+p},I=function(x){x.write(A("")),x.close();var M=x.parentWindow.Object;return x=null,M},T=function(){var x=s("iframe"),M="java"+m+":",L;return x.style.display="none",t.appendChild(x),x.src=String(M),L=x.contentWindow.document,L.open(),L.write(A("document.F=Object")),L.close(),L.F},B,j=function(){try{B=document.domain&&new ActiveXObject("htmlfile")}catch{}j=B?I(B):T();for(var x=d.length;x--;)delete j[g][d[x]];return j()};h[y]=!0,a.exports=Object.create||function(M,L){var K;return M!==null?(b[g]=l(M),K=new b,b[g]=null,K[y]=M):K=j(),L===void 0?K:u(K,L)}},"7dd0":function(a,f,n){var l=n("23e7"),u=n("9ed3"),d=n("e163"),h=n("d2bb"),t=n("d44e"),s=n("9112"),c=n("6eeb"),p=n("b622"),v=n("c430"),g=n("3f8c"),m=n("ae93"),y=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,A=p("iterator"),I="keys",T="values",B="entries",j=function(){return this};a.exports=function(x,M,L,K,D,P,$){u(L,M,K);var F=function(de){if(de===D&&fe)return fe;if(!b&&de in le)return le[de];switch(de){case I:return function(){return new L(this,de)};case T:return function(){return new L(this,de)};case B:return function(){return new L(this,de)}}return function(){return new L(this)}},X=M+" Iterator",ee=!1,le=x.prototype,Ce=le[A]||le["@@iterator"]||D&&le[D],fe=!b&&Ce||F(D),ce=M=="Array"&&le.entries||Ce,Oe,Pe,we;if(ce&&(Oe=d(ce.call(new x)),y!==Object.prototype&&Oe.next&&(!v&&d(Oe)!==y&&(h?h(Oe,y):typeof Oe[A]!="function"&&s(Oe,A,j)),t(Oe,X,!0,!0),v&&(g[X]=j))),D==T&&Ce&&Ce.name!==T&&(ee=!0,fe=function(){return Ce.call(this)}),(!v||$)&&le[A]!==fe&&s(le,A,fe),g[M]=fe,D)if(Pe={values:F(T),keys:P?fe:F(I),entries:F(B)},$)for(we in Pe)(b||ee||!(we in le))&&c(le,we,Pe[we]);else l({target:M,proto:!0,forced:b||ee},Pe);return Pe}},"7f9a":function(a,f,n){var l=n("da84"),u=n("8925"),d=l.WeakMap;a.exports=typeof d=="function"&&/native code/.test(u(d))},"825a":function(a,f,n){var l=n("861d");a.exports=function(u){if(!l(u))throw TypeError(String(u)+" is not an object");return u}},"83ab":function(a,f,n){var l=n("d039");a.exports=!l(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(a,f,n){var l=n("c04e"),u=n("9bf2"),d=n("5c6c");a.exports=function(h,t,s){var c=l(t);c in h?u.f(h,c,d(0,s)):h[c]=s}},"861d":function(a,f){a.exports=function(n){return typeof n=="object"?n!==null:typeof n=="function"}},8875:function(a,f,n){var l,u,d;(function(h,t){u=[],l=t,d=typeof l=="function"?l.apply(f,u):l,d!==void 0&&(a.exports=d)})(typeof self!="undefined"?self:this,function(){function h(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript||t&&t.get!==h&&document.currentScript)return document.currentScript;try{throw new Error}catch(B){var s=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,c=/@([^@]*):(\d+):(\d+)\s*$/ig,p=s.exec(B.stack)||c.exec(B.stack),v=p&&p[1]||!1,g=p&&p[2]||!1,m=document.location.href.replace(document.location.hash,""),y,b,A,I=document.getElementsByTagName("script");v===m&&(y=document.documentElement.outerHTML,b=new RegExp("(?:[^\\n]+?\\n){0,"+(g-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),A=y.replace(b,"$1").trim());for(var T=0;T<I.length;T++)if(I[T].readyState==="interactive"||I[T].src===v||v===m&&I[T].innerHTML&&I[T].innerHTML.trim()===A)return I[T];return null}}return h})},8925:function(a,f,n){var l=n("c6cd"),u=Function.toString;typeof l.inspectSource!="function"&&(l.inspectSource=function(d){return u.call(d)}),a.exports=l.inspectSource},"8aa5":function(a,f,n){var l=n("6547").charAt;a.exports=function(u,d,h){return d+(h?l(u,d).length:1)}},"8bbf":function(a,f){a.exports=e},"90e3":function(a,f){var n=0,l=Math.random();a.exports=function(u){return"Symbol("+String(u===void 0?"":u)+")_"+(++n+l).toString(36)}},9112:function(a,f,n){var l=n("83ab"),u=n("9bf2"),d=n("5c6c");a.exports=l?function(h,t,s){return u.f(h,t,d(1,s))}:function(h,t,s){return h[t]=s,h}},9263:function(a,f,n){var l=n("ad6d"),u=n("9f7f"),d=RegExp.prototype.exec,h=String.prototype.replace,t=d,s=function(){var g=/a/,m=/b*/g;return d.call(g,"a"),d.call(m,"a"),g.lastIndex!==0||m.lastIndex!==0}(),c=u.UNSUPPORTED_Y||u.BROKEN_CARET,p=/()??/.exec("")[1]!==void 0,v=s||p||c;v&&(t=function(m){var y=this,b,A,I,T,B=c&&y.sticky,j=l.call(y),x=y.source,M=0,L=m;return B&&(j=j.replace("y",""),j.indexOf("g")===-1&&(j+="g"),L=String(m).slice(y.lastIndex),y.lastIndex>0&&(!y.multiline||y.multiline&&m[y.lastIndex-1]!==`
  26. `)&&(x="(?: "+x+")",L=" "+L,M++),A=new RegExp("^(?:"+x+")",j)),p&&(A=new RegExp("^"+x+"$(?!\\s)",j)),s&&(b=y.lastIndex),I=d.call(B?A:y,L),B?I?(I.input=I.input.slice(M),I[0]=I[0].slice(M),I.index=y.lastIndex,y.lastIndex+=I[0].length):y.lastIndex=0:s&&I&&(y.lastIndex=y.global?I.index+I[0].length:b),p&&I&&I.length>1&&h.call(I[0],A,function(){for(T=1;T<arguments.length-2;T++)arguments[T]===void 0&&(I[T]=void 0)}),I}),a.exports=t},"94ca":function(a,f,n){var l=n("d039"),u=/#|\.prototype\./,d=function(p,v){var g=t[h(p)];return g==c?!0:g==s?!1:typeof v=="function"?l(v):!!v},h=d.normalize=function(p){return String(p).replace(u,".").toLowerCase()},t=d.data={},s=d.NATIVE="N",c=d.POLYFILL="P";a.exports=d},"99af":function(a,f,n){var l=n("23e7"),u=n("d039"),d=n("e8b5"),h=n("861d"),t=n("7b0b"),s=n("50c4"),c=n("8418"),p=n("65f0"),v=n("1dde"),g=n("b622"),m=n("2d00"),y=g("isConcatSpreadable"),b=9007199254740991,A="Maximum allowed index exceeded",I=m>=51||!u(function(){var x=[];return x[y]=!1,x.concat()[0]!==x}),T=v("concat"),B=function(x){if(!h(x))return!1;var M=x[y];return M!==void 0?!!M:d(x)},j=!I||!T;l({target:"Array",proto:!0,forced:j},{concat:function(M){var L=t(this),K=p(L,0),D=0,P,$,F,X,ee;for(P=-1,F=arguments.length;P<F;P++)if(ee=P===-1?L:arguments[P],B(ee)){if(X=s(ee.length),D+X>b)throw TypeError(A);for($=0;$<X;$++,D++)$ in ee&&c(K,D,ee[$])}else{if(D>=b)throw TypeError(A);c(K,D++,ee)}return K.length=D,K}})},"9bdd":function(a,f,n){var l=n("825a");a.exports=function(u,d,h,t){try{return t?d(l(h)[0],h[1]):d(h)}catch(c){var s=u.return;throw s!==void 0&&l(s.call(u)),c}}},"9bf2":function(a,f,n){var l=n("83ab"),u=n("0cfb"),d=n("825a"),h=n("c04e"),t=Object.defineProperty;f.f=l?t:function(c,p,v){if(d(c),p=h(p,!0),d(v),u)try{return t(c,p,v)}catch{}if("get"in v||"set"in v)throw TypeError("Accessors not supported");return"value"in v&&(c[p]=v.value),c}},"9ed3":function(a,f,n){var l=n("ae93").IteratorPrototype,u=n("7c73"),d=n("5c6c"),h=n("d44e"),t=n("3f8c"),s=function(){return this};a.exports=function(c,p,v){var g=p+" Iterator";return c.prototype=u(l,{next:d(1,v)}),h(c,g,!1,!0),t[g]=s,c}},"9f7f":function(a,f,n){var l=n("d039");function u(d,h){return RegExp(d,h)}f.UNSUPPORTED_Y=l(function(){var d=u("a","y");return d.lastIndex=2,d.exec("abcd")!=null}),f.BROKEN_CARET=l(function(){var d=u("^r","gy");return d.lastIndex=2,d.exec("str")!=null})},a2bf:function(a,f,n){var l=n("e8b5"),u=n("50c4"),d=n("0366"),h=function(t,s,c,p,v,g,m,y){for(var b=v,A=0,I=m?d(m,y,3):!1,T;A<p;){if(A in c){if(T=I?I(c[A],A,s):c[A],g>0&&l(T))b=h(t,s,T,u(T.length),b,g-1)-1;else{if(b>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[b]=T}b++}A++}return b};a.exports=h},a352:function(a,f){a.exports=o},a434:function(a,f,n){var l=n("23e7"),u=n("23cb"),d=n("a691"),h=n("50c4"),t=n("7b0b"),s=n("65f0"),c=n("8418"),p=n("1dde"),v=n("ae40"),g=p("splice"),m=v("splice",{ACCESSORS:!0,0:0,1:2}),y=Math.max,b=Math.min,A=9007199254740991,I="Maximum allowed length exceeded";l({target:"Array",proto:!0,forced:!g||!m},{splice:function(B,j){var x=t(this),M=h(x.length),L=u(B,M),K=arguments.length,D,P,$,F,X,ee;if(K===0?D=P=0:K===1?(D=0,P=M-L):(D=K-2,P=b(y(d(j),0),M-L)),M+D-P>A)throw TypeError(I);for($=s(x,P),F=0;F<P;F++)X=L+F,X in x&&c($,F,x[X]);if($.length=P,D<P){for(F=L;F<M-P;F++)X=F+P,ee=F+D,X in x?x[ee]=x[X]:delete x[ee];for(F=M;F>M-P+D;F--)delete x[F-1]}else if(D>P)for(F=M-P;F>L;F--)X=F+P-1,ee=F+D-1,X in x?x[ee]=x[X]:delete x[ee];for(F=0;F<D;F++)x[F+L]=arguments[F+2];return x.length=M-P+D,$}})},a4d3:function(a,f,n){var l=n("23e7"),u=n("da84"),d=n("d066"),h=n("c430"),t=n("83ab"),s=n("4930"),c=n("fdbf"),p=n("d039"),v=n("5135"),g=n("e8b5"),m=n("861d"),y=n("825a"),b=n("7b0b"),A=n("fc6a"),I=n("c04e"),T=n("5c6c"),B=n("7c73"),j=n("df75"),x=n("241c"),M=n("057f"),L=n("7418"),K=n("06cf"),D=n("9bf2"),P=n("d1e7"),$=n("9112"),F=n("6eeb"),X=n("5692"),ee=n("f772"),le=n("d012"),Ce=n("90e3"),fe=n("b622"),ce=n("e538"),Oe=n("746f"),Pe=n("d44e"),we=n("69f3"),de=n("b727").forEach,ge=ee("hidden"),_e="Symbol",He="prototype",bt=fe("toPrimitive"),Ut=we.set,Dt=we.getterFor(_e),Re=Object[He],Ne=u.Symbol,Ht=d("JSON","stringify"),dt=K.f,pt=D.f,Yn=M.f,Cr=P.f,at=X("symbols"),Ct=X("op-symbols"),zt=X("string-to-symbol-registry"),cn=X("symbol-to-string-registry"),dn=X("wks"),pn=u.QObject,hn=!pn||!pn[He]||!pn[He].findChild,vn=t&&p(function(){return B(pt({},"a",{get:function(){return pt(this,"a",{value:7}).a}})).a!=7})?function(z,H,Y){var re=dt(Re,H);re&&delete Re[H],pt(z,H,Y),re&&z!==Re&&pt(Re,H,re)}:pt,gn=function(z,H){var Y=at[z]=B(Ne[He]);return Ut(Y,{type:_e,tag:z,description:H}),t||(Y.description=H),Y},E=c?function(z){return typeof z=="symbol"}:function(z){return Object(z)instanceof Ne},S=function(H,Y,re){H===Re&&S(Ct,Y,re),y(H);var oe=I(Y,!0);return y(re),v(at,oe)?(re.enumerable?(v(H,ge)&&H[ge][oe]&&(H[ge][oe]=!1),re=B(re,{enumerable:T(0,!1)})):(v(H,ge)||pt(H,ge,T(1,{})),H[ge][oe]=!0),vn(H,oe,re)):pt(H,oe,re)},w=function(H,Y){y(H);var re=A(Y),oe=j(re).concat(ie(re));return de(oe,function(Ke){(!t||G.call(re,Ke))&&S(H,Ke,re[Ke])}),H},C=function(H,Y){return Y===void 0?B(H):w(B(H),Y)},G=function(H){var Y=I(H,!0),re=Cr.call(this,Y);return this===Re&&v(at,Y)&&!v(Ct,Y)?!1:re||!v(this,Y)||!v(at,Y)||v(this,ge)&&this[ge][Y]?re:!0},_=function(H,Y){var re=A(H),oe=I(Y,!0);if(!(re===Re&&v(at,oe)&&!v(Ct,oe))){var Ke=dt(re,oe);return Ke&&v(at,oe)&&!(v(re,ge)&&re[ge][oe])&&(Ke.enumerable=!0),Ke}},q=function(H){var Y=Yn(A(H)),re=[];return de(Y,function(oe){!v(at,oe)&&!v(le,oe)&&re.push(oe)}),re},ie=function(H){var Y=H===Re,re=Yn(Y?Ct:A(H)),oe=[];return de(re,function(Ke){v(at,Ke)&&(!Y||v(Re,Ke))&&oe.push(at[Ke])}),oe};if(s||(Ne=function(){if(this instanceof Ne)throw TypeError("Symbol is not a constructor");var H=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Y=Ce(H),re=function(oe){this===Re&&re.call(Ct,oe),v(this,ge)&&v(this[ge],Y)&&(this[ge][Y]=!1),vn(this,Y,T(1,oe))};return t&&hn&&vn(Re,Y,{configurable:!0,set:re}),gn(Y,H)},F(Ne[He],"toString",function(){return Dt(this).tag}),F(Ne,"withoutSetter",function(z){return gn(Ce(z),z)}),P.f=G,D.f=S,K.f=_,x.f=M.f=q,L.f=ie,ce.f=function(z){return gn(fe(z),z)},t&&(pt(Ne[He],"description",{configurable:!0,get:function(){return Dt(this).description}}),h||F(Re,"propertyIsEnumerable",G,{unsafe:!0}))),l({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:Ne}),de(j(dn),function(z){Oe(z)}),l({target:_e,stat:!0,forced:!s},{for:function(z){var H=String(z);if(v(zt,H))return zt[H];var Y=Ne(H);return zt[H]=Y,cn[Y]=H,Y},keyFor:function(H){if(!E(H))throw TypeError(H+" is not a symbol");if(v(cn,H))return cn[H]},useSetter:function(){hn=!0},useSimple:function(){hn=!1}}),l({target:"Object",stat:!0,forced:!s,sham:!t},{create:C,defineProperty:S,defineProperties:w,getOwnPropertyDescriptor:_}),l({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:q,getOwnPropertySymbols:ie}),l({target:"Object",stat:!0,forced:p(function(){L.f(1)})},{getOwnPropertySymbols:function(H){return L.f(b(H))}}),Ht){var xe=!s||p(function(){var z=Ne();return Ht([z])!="[null]"||Ht({a:z})!="{}"||Ht(Object(z))!="{}"});l({target:"JSON",stat:!0,forced:xe},{stringify:function(H,Y,re){for(var oe=[H],Ke=1,Pr;arguments.length>Ke;)oe.push(arguments[Ke++]);if(Pr=Y,!(!m(Y)&&H===void 0||E(H)))return g(Y)||(Y=function(pa,Vn){if(typeof Pr=="function"&&(Vn=Pr.call(this,pa,Vn)),!E(Vn))return Vn}),oe[1]=Y,Ht.apply(null,oe)}})}Ne[He][bt]||$(Ne[He],bt,Ne[He].valueOf),Pe(Ne,_e),le[ge]=!0},a630:function(a,f,n){var l=n("23e7"),u=n("4df4"),d=n("1c7e"),h=!d(function(t){Array.from(t)});l({target:"Array",stat:!0,forced:h},{from:u})},a640:function(a,f,n){var l=n("d039");a.exports=function(u,d){var h=[][u];return!!h&&l(function(){h.call(null,d||function(){throw 1},1)})}},a691:function(a,f){var n=Math.ceil,l=Math.floor;a.exports=function(u){return isNaN(u=+u)?0:(u>0?l:n)(u)}},ab13:function(a,f,n){var l=n("b622"),u=l("match");a.exports=function(d){var h=/./;try{"/./"[d](h)}catch{try{return h[u]=!1,"/./"[d](h)}catch{}}return!1}},ac1f:function(a,f,n){var l=n("23e7"),u=n("9263");l({target:"RegExp",proto:!0,forced:/./.exec!==u},{exec:u})},ad6d:function(a,f,n){var l=n("825a");a.exports=function(){var u=l(this),d="";return u.global&&(d+="g"),u.ignoreCase&&(d+="i"),u.multiline&&(d+="m"),u.dotAll&&(d+="s"),u.unicode&&(d+="u"),u.sticky&&(d+="y"),d}},ae40:function(a,f,n){var l=n("83ab"),u=n("d039"),d=n("5135"),h=Object.defineProperty,t={},s=function(c){throw c};a.exports=function(c,p){if(d(t,c))return t[c];p||(p={});var v=[][c],g=d(p,"ACCESSORS")?p.ACCESSORS:!1,m=d(p,0)?p[0]:s,y=d(p,1)?p[1]:void 0;return t[c]=!!v&&!u(function(){if(g&&!l)return!0;var b={length:-1};g?h(b,1,{enumerable:!0,get:s}):b[1]=1,v.call(b,m,y)})}},ae93:function(a,f,n){var l=n("e163"),u=n("9112"),d=n("5135"),h=n("b622"),t=n("c430"),s=h("iterator"),c=!1,p=function(){return this},v,g,m;[].keys&&(m=[].keys(),"next"in m?(g=l(l(m)),g!==Object.prototype&&(v=g)):c=!0),v==null&&(v={}),!t&&!d(v,s)&&u(v,s,p),a.exports={IteratorPrototype:v,BUGGY_SAFARI_ITERATORS:c}},b041:function(a,f,n){var l=n("00ee"),u=n("f5df");a.exports=l?{}.toString:function(){return"[object "+u(this)+"]"}},b0c0:function(a,f,n){var l=n("83ab"),u=n("9bf2").f,d=Function.prototype,h=d.toString,t=/^\s*function ([^ (]*)/,s="name";l&&!(s in d)&&u(d,s,{configurable:!0,get:function(){try{return h.call(this).match(t)[1]}catch{return""}}})},b622:function(a,f,n){var l=n("da84"),u=n("5692"),d=n("5135"),h=n("90e3"),t=n("4930"),s=n("fdbf"),c=u("wks"),p=l.Symbol,v=s?p:p&&p.withoutSetter||h;a.exports=function(g){return d(c,g)||(t&&d(p,g)?c[g]=p[g]:c[g]=v("Symbol."+g)),c[g]}},b64b:function(a,f,n){var l=n("23e7"),u=n("7b0b"),d=n("df75"),h=n("d039"),t=h(function(){d(1)});l({target:"Object",stat:!0,forced:t},{keys:function(c){return d(u(c))}})},b727:function(a,f,n){var l=n("0366"),u=n("44ad"),d=n("7b0b"),h=n("50c4"),t=n("65f0"),s=[].push,c=function(p){var v=p==1,g=p==2,m=p==3,y=p==4,b=p==6,A=p==5||b;return function(I,T,B,j){for(var x=d(I),M=u(x),L=l(T,B,3),K=h(M.length),D=0,P=j||t,$=v?P(I,K):g?P(I,0):void 0,F,X;K>D;D++)if((A||D in M)&&(F=M[D],X=L(F,D,x),p)){if(v)$[D]=X;else if(X)switch(p){case 3:return!0;case 5:return F;case 6:return D;case 2:s.call($,F)}else if(y)return!1}return b?-1:m||y?y:$}};a.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},c04e:function(a,f,n){var l=n("861d");a.exports=function(u,d){if(!l(u))return u;var h,t;if(d&&typeof(h=u.toString)=="function"&&!l(t=h.call(u))||typeof(h=u.valueOf)=="function"&&!l(t=h.call(u))||!d&&typeof(h=u.toString)=="function"&&!l(t=h.call(u)))return t;throw TypeError("Can't convert object to primitive value")}},c430:function(a,f){a.exports=!1},c6b6:function(a,f){var n={}.toString;a.exports=function(l){return n.call(l).slice(8,-1)}},c6cd:function(a,f,n){var l=n("da84"),u=n("ce4e"),d="__core-js_shared__",h=l[d]||u(d,{});a.exports=h},c740:function(a,f,n){var l=n("23e7"),u=n("b727").findIndex,d=n("44d2"),h=n("ae40"),t="findIndex",s=!0,c=h(t);t in[]&&Array(1)[t](function(){s=!1}),l({target:"Array",proto:!0,forced:s||!c},{findIndex:function(v){return u(this,v,arguments.length>1?arguments[1]:void 0)}}),d(t)},c8ba:function(a,f){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch{typeof window=="object"&&(n=window)}a.exports=n},c975:function(a,f,n){var l=n("23e7"),u=n("4d64").indexOf,d=n("a640"),h=n("ae40"),t=[].indexOf,s=!!t&&1/[1].indexOf(1,-0)<0,c=d("indexOf"),p=h("indexOf",{ACCESSORS:!0,1:0});l({target:"Array",proto:!0,forced:s||!c||!p},{indexOf:function(g){return s?t.apply(this,arguments)||0:u(this,g,arguments.length>1?arguments[1]:void 0)}})},ca84:function(a,f,n){var l=n("5135"),u=n("fc6a"),d=n("4d64").indexOf,h=n("d012");a.exports=function(t,s){var c=u(t),p=0,v=[],g;for(g in c)!l(h,g)&&l(c,g)&&v.push(g);for(;s.length>p;)l(c,g=s[p++])&&(~d(v,g)||v.push(g));return v}},caad:function(a,f,n){var l=n("23e7"),u=n("4d64").includes,d=n("44d2"),h=n("ae40"),t=h("indexOf",{ACCESSORS:!0,1:0});l({target:"Array",proto:!0,forced:!t},{includes:function(c){return u(this,c,arguments.length>1?arguments[1]:void 0)}}),d("includes")},cc12:function(a,f,n){var l=n("da84"),u=n("861d"),d=l.document,h=u(d)&&u(d.createElement);a.exports=function(t){return h?d.createElement(t):{}}},ce4e:function(a,f,n){var l=n("da84"),u=n("9112");a.exports=function(d,h){try{u(l,d,h)}catch{l[d]=h}return h}},d012:function(a,f){a.exports={}},d039:function(a,f){a.exports=function(n){try{return!!n()}catch{return!0}}},d066:function(a,f,n){var l=n("428f"),u=n("da84"),d=function(h){return typeof h=="function"?h:void 0};a.exports=function(h,t){return arguments.length<2?d(l[h])||d(u[h]):l[h]&&l[h][t]||u[h]&&u[h][t]}},d1e7:function(a,f,n){var l={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,d=u&&!l.call({1:2},1);f.f=d?function(t){var s=u(this,t);return!!s&&s.enumerable}:l},d28b:function(a,f,n){var l=n("746f");l("iterator")},d2bb:function(a,f,n){var l=n("825a"),u=n("3bbe");a.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var d=!1,h={},t;try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(h,[]),d=h instanceof Array}catch{}return function(c,p){return l(c),u(p),d?t.call(c,p):c.__proto__=p,c}}():void 0)},d3b7:function(a,f,n){var l=n("00ee"),u=n("6eeb"),d=n("b041");l||u(Object.prototype,"toString",d,{unsafe:!0})},d44e:function(a,f,n){var l=n("9bf2").f,u=n("5135"),d=n("b622"),h=d("toStringTag");a.exports=function(t,s,c){t&&!u(t=c?t:t.prototype,h)&&l(t,h,{configurable:!0,value:s})}},d58f:function(a,f,n){var l=n("1c0b"),u=n("7b0b"),d=n("44ad"),h=n("50c4"),t=function(s){return function(c,p,v,g){l(p);var m=u(c),y=d(m),b=h(m.length),A=s?b-1:0,I=s?-1:1;if(v<2)for(;;){if(A in y){g=y[A],A+=I;break}if(A+=I,s?A<0:b<=A)throw TypeError("Reduce of empty array with no initial value")}for(;s?A>=0:b>A;A+=I)A in y&&(g=p(g,y[A],A,m));return g}};a.exports={left:t(!1),right:t(!0)}},d784:function(a,f,n){n("ac1f");var l=n("6eeb"),u=n("d039"),d=n("b622"),h=n("9263"),t=n("9112"),s=d("species"),c=!u(function(){var y=/./;return y.exec=function(){var b=[];return b.groups={a:"7"},b},"".replace(y,"$<a>")!=="7"}),p=function(){return"a".replace(/./,"$0")==="$0"}(),v=d("replace"),g=function(){return/./[v]?/./[v]("a","$0")==="":!1}(),m=!u(function(){var y=/(?:)/,b=y.exec;y.exec=function(){return b.apply(this,arguments)};var A="ab".split(y);return A.length!==2||A[0]!=="a"||A[1]!=="b"});a.exports=function(y,b,A,I){var T=d(y),B=!u(function(){var D={};return D[T]=function(){return 7},""[y](D)!=7}),j=B&&!u(function(){var D=!1,P=/a/;return y==="split"&&(P={},P.constructor={},P.constructor[s]=function(){return P},P.flags="",P[T]=/./[T]),P.exec=function(){return D=!0,null},P[T](""),!D});if(!B||!j||y==="replace"&&!(c&&p&&!g)||y==="split"&&!m){var x=/./[T],M=A(T,""[y],function(D,P,$,F,X){return P.exec===h?B&&!X?{done:!0,value:x.call(P,$,F)}:{done:!0,value:D.call($,P,F)}:{done:!1}},{REPLACE_KEEPS_$0:p,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:g}),L=M[0],K=M[1];l(String.prototype,y,L),l(RegExp.prototype,T,b==2?function(D,P){return K.call(D,this,P)}:function(D){return K.call(D,this)})}I&&t(RegExp.prototype[T],"sham",!0)}},d81d:function(a,f,n){var l=n("23e7"),u=n("b727").map,d=n("1dde"),h=n("ae40"),t=d("map"),s=h("map");l({target:"Array",proto:!0,forced:!t||!s},{map:function(p){return u(this,p,arguments.length>1?arguments[1]:void 0)}})},da84:function(a,f,n){(function(l){var u=function(d){return d&&d.Math==Math&&d};a.exports=u(typeof globalThis=="object"&&globalThis)||u(typeof window=="object"&&window)||u(typeof self=="object"&&self)||u(typeof l=="object"&&l)||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(a,f,n){var l=n("23e7"),u=n("83ab"),d=n("56ef"),h=n("fc6a"),t=n("06cf"),s=n("8418");l({target:"Object",stat:!0,sham:!u},{getOwnPropertyDescriptors:function(p){for(var v=h(p),g=t.f,m=d(v),y={},b=0,A,I;m.length>b;)I=g(v,A=m[b++]),I!==void 0&&s(y,A,I);return y}})},dbf1:function(a,f,n){(function(l){n.d(f,"a",function(){return d});function u(){return typeof window!="undefined"?window.console:l.console}var d=u()}).call(this,n("c8ba"))},ddb0:function(a,f,n){var l=n("da84"),u=n("fdbc"),d=n("e260"),h=n("9112"),t=n("b622"),s=t("iterator"),c=t("toStringTag"),p=d.values;for(var v in u){var g=l[v],m=g&&g.prototype;if(m){if(m[s]!==p)try{h(m,s,p)}catch{m[s]=p}if(m[c]||h(m,c,v),u[v]){for(var y in d)if(m[y]!==d[y])try{h(m,y,d[y])}catch{m[y]=d[y]}}}}},df75:function(a,f,n){var l=n("ca84"),u=n("7839");a.exports=Object.keys||function(h){return l(h,u)}},e01a:function(a,f,n){var l=n("23e7"),u=n("83ab"),d=n("da84"),h=n("5135"),t=n("861d"),s=n("9bf2").f,c=n("e893"),p=d.Symbol;if(u&&typeof p=="function"&&(!("description"in p.prototype)||p().description!==void 0)){var v={},g=function(){var T=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),B=this instanceof g?new p(T):T===void 0?p():p(T);return T===""&&(v[B]=!0),B};c(g,p);var m=g.prototype=p.prototype;m.constructor=g;var y=m.toString,b=String(p("test"))=="Symbol(test)",A=/^Symbol\((.*)\)[^)]+$/;s(m,"description",{configurable:!0,get:function(){var T=t(this)?this.valueOf():this,B=y.call(T);if(h(v,T))return"";var j=b?B.slice(7,-1):B.replace(A,"$1");return j===""?void 0:j}}),l({global:!0,forced:!0},{Symbol:g})}},e163:function(a,f,n){var l=n("5135"),u=n("7b0b"),d=n("f772"),h=n("e177"),t=d("IE_PROTO"),s=Object.prototype;a.exports=h?Object.getPrototypeOf:function(c){return c=u(c),l(c,t)?c[t]:typeof c.constructor=="function"&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?s:null}},e177:function(a,f,n){var l=n("d039");a.exports=!l(function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype})},e260:function(a,f,n){var l=n("fc6a"),u=n("44d2"),d=n("3f8c"),h=n("69f3"),t=n("7dd0"),s="Array Iterator",c=h.set,p=h.getterFor(s);a.exports=t(Array,"Array",function(v,g){c(this,{type:s,target:l(v),index:0,kind:g})},function(){var v=p(this),g=v.target,m=v.kind,y=v.index++;return!g||y>=g.length?(v.target=void 0,{value:void 0,done:!0}):m=="keys"?{value:y,done:!1}:m=="values"?{value:g[y],done:!1}:{value:[y,g[y]],done:!1}},"values"),d.Arguments=d.Array,u("keys"),u("values"),u("entries")},e439:function(a,f,n){var l=n("23e7"),u=n("d039"),d=n("fc6a"),h=n("06cf").f,t=n("83ab"),s=u(function(){h(1)}),c=!t||s;l({target:"Object",stat:!0,forced:c,sham:!t},{getOwnPropertyDescriptor:function(v,g){return h(d(v),g)}})},e538:function(a,f,n){var l=n("b622");f.f=l},e893:function(a,f,n){var l=n("5135"),u=n("56ef"),d=n("06cf"),h=n("9bf2");a.exports=function(t,s){for(var c=u(s),p=h.f,v=d.f,g=0;g<c.length;g++){var m=c[g];l(t,m)||p(t,m,v(s,m))}}},e8b5:function(a,f,n){var l=n("c6b6");a.exports=Array.isArray||function(d){return l(d)=="Array"}},e95a:function(a,f,n){var l=n("b622"),u=n("3f8c"),d=l("iterator"),h=Array.prototype;a.exports=function(t){return t!==void 0&&(u.Array===t||h[d]===t)}},f5df:function(a,f,n){var l=n("00ee"),u=n("c6b6"),d=n("b622"),h=d("toStringTag"),t=u(function(){return arguments}())=="Arguments",s=function(c,p){try{return c[p]}catch{}};a.exports=l?u:function(c){var p,v,g;return c===void 0?"Undefined":c===null?"Null":typeof(v=s(p=Object(c),h))=="string"?v:t?u(p):(g=u(p))=="Object"&&typeof p.callee=="function"?"Arguments":g}},f772:function(a,f,n){var l=n("5692"),u=n("90e3"),d=l("keys");a.exports=function(h){return d[h]||(d[h]=u(h))}},fb15:function(a,f,n){if(n.r(f),typeof window!="undefined"){var l=window.document.currentScript;{var u=n("8875");l=u(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:u})}var d=l&&l.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);d&&(n.p=d[1])}n("99af"),n("4de4"),n("4160"),n("c975"),n("d81d"),n("a434"),n("159b"),n("a4d3"),n("e439"),n("dbb4"),n("b64b");function h(E,S,w){return S in E?Object.defineProperty(E,S,{value:w,enumerable:!0,configurable:!0,writable:!0}):E[S]=w,E}function t(E,S){var w=Object.keys(E);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(E);S&&(C=C.filter(function(G){return Object.getOwnPropertyDescriptor(E,G).enumerable})),w.push.apply(w,C)}return w}function s(E){for(var S=1;S<arguments.length;S++){var w=arguments[S]!=null?arguments[S]:{};S%2?t(Object(w),!0).forEach(function(C){h(E,C,w[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(w)):t(Object(w)).forEach(function(C){Object.defineProperty(E,C,Object.getOwnPropertyDescriptor(w,C))})}return E}function c(E){if(Array.isArray(E))return E}n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0");function p(E,S){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(E)))){var w=[],C=!0,G=!1,_=void 0;try{for(var q=E[Symbol.iterator](),ie;!(C=(ie=q.next()).done)&&(w.push(ie.value),!(S&&w.length===S));C=!0);}catch(xe){G=!0,_=xe}finally{try{!C&&q.return!=null&&q.return()}finally{if(G)throw _}}return w}}n("a630"),n("fb6a"),n("b0c0"),n("25f0");function v(E,S){(S==null||S>E.length)&&(S=E.length);for(var w=0,C=new Array(S);w<S;w++)C[w]=E[w];return C}function g(E,S){if(!!E){if(typeof E=="string")return v(E,S);var w=Object.prototype.toString.call(E).slice(8,-1);if(w==="Object"&&E.constructor&&(w=E.constructor.name),w==="Map"||w==="Set")return Array.from(E);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return v(E,S)}}function m(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  27. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y(E,S){return c(E)||p(E,S)||g(E,S)||m()}function b(E){if(Array.isArray(E))return v(E)}function A(E){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(E))return Array.from(E)}function I(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  28. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T(E){return b(E)||A(E)||g(E)||I()}var B=n("a352"),j=n.n(B);function x(E){E.parentElement!==null&&E.parentElement.removeChild(E)}function M(E,S,w){var C=w===0?E.children[0]:E.children[w-1].nextSibling;E.insertBefore(S,C)}var L=n("dbf1");n("13d5"),n("4fad"),n("ac1f"),n("5319");function K(E){var S=Object.create(null);return function(C){var G=S[C];return G||(S[C]=E(C))}}var D=/-(\w)/g,P=K(function(E){return E.replace(D,function(S,w){return w.toUpperCase()})});n("5db7"),n("73d9");var $=["Start","Add","Remove","Update","End"],F=["Choose","Unchoose","Sort","Filter","Clone"],X=["Move"],ee=[X,$,F].flatMap(function(E){return E}).map(function(E){return"on".concat(E)}),le={manage:X,manageAndEmit:$,emit:F};function Ce(E){return ee.indexOf(E)!==-1}n("caad"),n("2ca0");var fe=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function ce(E){return fe.includes(E)}function Oe(E){return["transition-group","TransitionGroup"].includes(E)}function Pe(E){return["id","class","role","style"].includes(E)||E.startsWith("data-")||E.startsWith("aria-")||E.startsWith("on")}function we(E){return E.reduce(function(S,w){var C=y(w,2),G=C[0],_=C[1];return S[G]=_,S},{})}function de(E){var S=E.$attrs,w=E.componentData,C=w===void 0?{}:w,G=we(Object.entries(S).filter(function(_){var q=y(_,2),ie=q[0];return q[1],Pe(ie)}));return s(s({},G),C)}function ge(E){var S=E.$attrs,w=E.callBackBuilder,C=we(_e(S));Object.entries(w).forEach(function(_){var q=y(_,2),ie=q[0],xe=q[1];le[ie].forEach(function(z){C["on".concat(z)]=xe(z)})});var G="[data-draggable]".concat(C.draggable||"");return s(s({},C),{},{draggable:G})}function _e(E){return Object.entries(E).filter(function(S){var w=y(S,2),C=w[0];return w[1],!Pe(C)}).map(function(S){var w=y(S,2),C=w[0],G=w[1];return[P(C),G]}).filter(function(S){var w=y(S,2),C=w[0];return w[1],!Ce(C)})}n("c740");function He(E,S){if(!(E instanceof S))throw new TypeError("Cannot call a class as a function")}function bt(E,S){for(var w=0;w<S.length;w++){var C=S[w];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(E,C.key,C)}}function Ut(E,S,w){return S&&bt(E.prototype,S),w&&bt(E,w),E}var Dt=function(S){var w=S.el;return w},Re=function(S,w){return S.__draggable_context=w},Ne=function(S){return S.__draggable_context},Ht=function(){function E(S){var w=S.nodes,C=w.header,G=w.default,_=w.footer,q=S.root,ie=S.realList;He(this,E),this.defaultNodes=G,this.children=[].concat(T(C),T(G),T(_)),this.externalComponent=q.externalComponent,this.rootTransition=q.transition,this.tag=q.tag,this.realList=ie}return Ut(E,[{key:"render",value:function(w,C){var G=this.tag,_=this.children,q=this._isRootComponent,ie=q?{default:function(){return _}}:_;return w(G,C,ie)}},{key:"updated",value:function(){var w=this.defaultNodes,C=this.realList;w.forEach(function(G,_){Re(Dt(G),{element:C[_],index:_})})}},{key:"getUnderlyingVm",value:function(w){return Ne(w)}},{key:"getVmIndexFromDomIndex",value:function(w,C){var G=this.defaultNodes,_=G.length,q=C.children,ie=q.item(w);if(ie===null)return _;var xe=Ne(ie);if(xe)return xe.index;if(_===0)return 0;var z=Dt(G[0]),H=T(q).findIndex(function(Y){return Y===z});return w<H?0:_}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),E}(),dt=n("8bbf");function pt(E,S){var w=E[S];return w?w():[]}function Yn(E){var S=E.$slots,w=E.realList,C=E.getKey,G=w||[],_=["header","footer"].map(function(Y){return pt(S,Y)}),q=y(_,2),ie=q[0],xe=q[1],z=S.item;if(!z)throw new Error("draggable element must have an item slot");var H=G.flatMap(function(Y,re){return z({element:Y,index:re}).map(function(oe){return oe.key=C(Y),oe.props=s(s({},oe.props||{}),{},{"data-draggable":!0}),oe})});if(H.length!==G.length)throw new Error("Item slot must have only one child");return{header:ie,footer:xe,default:H}}function Cr(E){var S=Oe(E),w=!ce(E)&&!S;return{transition:S,externalComponent:w,tag:w?Object(dt.resolveComponent)(E):S?dt.TransitionGroup:E}}function at(E){var S=E.$slots,w=E.tag,C=E.realList,G=E.getKey,_=Yn({$slots:S,realList:C,getKey:G}),q=Cr(w);return new Ht({nodes:_,root:q,realList:C})}function Ct(E,S){var w=this;Object(dt.nextTick)(function(){return w.$emit(E.toLowerCase(),S)})}function zt(E){var S=this;return function(w,C){if(S.realList!==null)return S["onDrag".concat(E)](w,C)}}function cn(E){var S=this,w=zt.call(this,E);return function(C,G){w.call(S,C,G),Ct.call(S,E,C)}}var dn=null,pn={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(S){return S}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},hn=["update:modelValue","change"].concat(T([].concat(T(le.manageAndEmit),T(le.emit)).map(function(E){return E.toLowerCase()}))),vn=Object(dt.defineComponent)({name:"draggable",inheritAttrs:!1,props:pn,emits:hn,data:function(){return{error:!1}},render:function(){try{this.error=!1;var S=this.$slots,w=this.$attrs,C=this.tag,G=this.componentData,_=this.realList,q=this.getKey,ie=at({$slots:S,tag:C,realList:_,getKey:q});this.componentStructure=ie;var xe=de({$attrs:w,componentData:G});return ie.render(dt.h,xe)}catch(z){return this.error=!0,Object(dt.h)("pre",{style:{color:"red"}},z.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&L.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var S=this;if(!this.error){var w=this.$attrs,C=this.$el,G=this.componentStructure;G.updated();var _=ge({$attrs:w,callBackBuilder:{manageAndEmit:function(xe){return cn.call(S,xe)},emit:function(xe){return Ct.bind(S,xe)},manage:function(xe){return zt.call(S,xe)}}}),q=C.nodeType===1?C:C.parentElement;this._sortable=new j.a(q,_),this.targetDomElement=q,q.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var S=this.list;return S||this.modelValue},getKey:function(){var S=this.itemKey;return typeof S=="function"?S:function(w){return w[S]}}},watch:{$attrs:{handler:function(S){var w=this._sortable;!w||_e(S).forEach(function(C){var G=y(C,2),_=G[0],q=G[1];w.option(_,q)})},deep:!0}},methods:{getUnderlyingVm:function(S){return this.componentStructure.getUnderlyingVm(S)||null},getUnderlyingPotencialDraggableComponent:function(S){return S.__draggable_component__},emitChanges:function(S){var w=this;Object(dt.nextTick)(function(){return w.$emit("change",S)})},alterList:function(S){if(this.list){S(this.list);return}var w=T(this.modelValue);S(w),this.$emit("update:modelValue",w)},spliceList:function(){var S=arguments,w=function(G){return G.splice.apply(G,T(S))};this.alterList(w)},updatePosition:function(S,w){var C=function(_){return _.splice(w,0,_.splice(S,1)[0])};this.alterList(C)},getRelatedContextFromMoveEvent:function(S){var w=S.to,C=S.related,G=this.getUnderlyingPotencialDraggableComponent(w);if(!G)return{component:G};var _=G.realList,q={list:_,component:G};if(w!==C&&_){var ie=G.getUnderlyingVm(C)||{};return s(s({},ie),q)}return q},getVmIndexFromDomIndex:function(S){return this.componentStructure.getVmIndexFromDomIndex(S,this.targetDomElement)},onDragStart:function(S){this.context=this.getUnderlyingVm(S.item),S.item._underlying_vm_=this.clone(this.context.element),dn=S.item},onDragAdd:function(S){var w=S.item._underlying_vm_;if(w!==void 0){x(S.item);var C=this.getVmIndexFromDomIndex(S.newIndex);this.spliceList(C,0,w);var G={element:w,newIndex:C};this.emitChanges({added:G})}},onDragRemove:function(S){if(M(this.$el,S.item,S.oldIndex),S.pullMode==="clone"){x(S.clone);return}var w=this.context,C=w.index,G=w.element;this.spliceList(C,1);var _={element:G,oldIndex:C};this.emitChanges({removed:_})},onDragUpdate:function(S){x(S.item),M(S.from,S.item,S.oldIndex);var w=this.context.index,C=this.getVmIndexFromDomIndex(S.newIndex);this.updatePosition(w,C);var G={element:this.context.element,oldIndex:w,newIndex:C};this.emitChanges({moved:G})},computeFutureIndex:function(S,w){if(!S.element)return 0;var C=T(w.to.children).filter(function(ie){return ie.style.display!=="none"}),G=C.indexOf(w.related),_=S.component.getVmIndexFromDomIndex(G),q=C.indexOf(dn)!==-1;return q||!w.willInsertAfter?_:_+1},onDragMove:function(S,w){var C=this.move,G=this.realList;if(!C||!G)return!0;var _=this.getRelatedContextFromMoveEvent(S),q=this.computeFutureIndex(_,S),ie=s(s({},this.context),{},{futureIndex:q}),xe=s(s({},S),{},{relatedContext:_,draggedContext:ie});return C(xe,w)},onDragEnd:function(){dn=null}}}),gn=vn;f.default=gn},fb6a:function(a,f,n){var l=n("23e7"),u=n("861d"),d=n("e8b5"),h=n("23cb"),t=n("50c4"),s=n("fc6a"),c=n("8418"),p=n("b622"),v=n("1dde"),g=n("ae40"),m=v("slice"),y=g("slice",{ACCESSORS:!0,0:0,1:2}),b=p("species"),A=[].slice,I=Math.max;l({target:"Array",proto:!0,forced:!m||!y},{slice:function(B,j){var x=s(this),M=t(x.length),L=h(B,M),K=h(j===void 0?M:j,M),D,P,$;if(d(x)&&(D=x.constructor,typeof D=="function"&&(D===Array||d(D.prototype))?D=void 0:u(D)&&(D=D[b],D===null&&(D=void 0)),D===Array||D===void 0))return A.call(x,L,K);for(P=new(D===void 0?Array:D)(I(K-L,0)),$=0;L<K;L++,$++)L in x&&c(P,$,x[L]);return P.length=$,P}})},fc6a:function(a,f,n){var l=n("44ad"),u=n("1d80");a.exports=function(d){return l(u(d))}},fdbc:function(a,f){a.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(a,f,n){var l=n("4930");a.exports=l&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})($o);var es=ya($o.exports);const ts="_unitSubject_1ff9w_1",ns="_unitAnswers_1ff9w_10",rs="_unitAnswer_1ff9w_10",os="_option_1ff9w_22",as="_value_1ff9w_25",is="_valueAudio_1ff9w_34",ss="_active_1ff9w_37",ls="_answerContent_1ff9w_41",us="_answerChoice_1ff9w_45",fs="_sortReset_1ff9w_54",cs="_tips_1ff9w_62",ds="_itemsContainer_1ff9w_75",ps="_items_1ff9w_75",hs="_imgs_1ff9w_81";var Me={unitSubject:ts,unitAnswers:ns,unitAnswer:rs,option:os,value:as,valueAudio:is,active:ss,answerContent:ls,answerChoice:us,sortReset:fs,tips:cs,itemsContainer:ds,items:ps,imgs:hs};/**!
  29. * Sortable 1.15.0
  30. * @author RubaXa <trash@rubaxa.org>
  31. * @author owenm <owen23355@gmail.com>
  32. * @license MIT
  33. */function Co(i,r){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),e.push.apply(e,o)}return e}function yt(i){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?Co(Object(e),!0).forEach(function(o){vs(i,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):Co(Object(e)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(e,o))})}return i}function sr(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sr=function(r){return typeof r}:sr=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},sr(i)}function vs(i,r,e){return r in i?Object.defineProperty(i,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[r]=e,i}function Tt(){return Tt=Object.assign||function(i){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},Tt.apply(this,arguments)}function gs(i,r){if(i==null)return{};var e={},o=Object.keys(i),a,f;for(f=0;f<o.length;f++)a=o[f],!(r.indexOf(a)>=0)&&(e[a]=i[a]);return e}function ms(i,r){if(i==null)return{};var e=gs(i,r),o,a;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(i);for(a=0;a<f.length;a++)o=f[a],!(r.indexOf(o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(i,o)||(e[o]=i[o]))}return e}var ys="1.15.0";function xt(i){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(i)}var Ot=xt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),$n=xt(/Edge/i),Po=xt(/firefox/i),Fn=xt(/safari/i)&&!xt(/chrome/i)&&!xt(/android/i),ea=xt(/iP(ad|od|hone)/i),ta=xt(/chrome/i)&&xt(/android/i),na={capture:!1,passive:!1};function se(i,r,e){i.addEventListener(r,e,!Ot&&na)}function ae(i,r,e){i.removeEventListener(r,e,!Ot&&na)}function br(i,r){if(!!r){if(r[0]===">"&&(r=r.substring(1)),i)try{if(i.matches)return i.matches(r);if(i.msMatchesSelector)return i.msMatchesSelector(r);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(r)}catch{return!1}return!1}}function bs(i){return i.host&&i!==document&&i.host.nodeType?i.host:i.parentNode}function ht(i,r,e,o){if(i){e=e||document;do{if(r!=null&&(r[0]===">"?i.parentNode===e&&br(i,r):br(i,r))||o&&i===e)return i;if(i===e)break}while(i=bs(i))}return null}var Ro=/\s+/g;function ze(i,r,e){if(i&&r)if(i.classList)i.classList[e?"add":"remove"](r);else{var o=(" "+i.className+" ").replace(Ro," ").replace(" "+r+" "," ");i.className=(o+(e?" "+r:"")).replace(Ro," ")}}function W(i,r,e){var o=i&&i.style;if(o){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(i,""):i.currentStyle&&(e=i.currentStyle),r===void 0?e:e[r];!(r in o)&&r.indexOf("webkit")===-1&&(r="-webkit-"+r),o[r]=e+(typeof e=="string"?"":"px")}}function ln(i,r){var e="";if(typeof i=="string")e=i;else do{var o=W(i,"transform");o&&o!=="none"&&(e=o+" "+e)}while(!r&&(i=i.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(e)}function ra(i,r,e){if(i){var o=i.getElementsByTagName(r),a=0,f=o.length;if(e)for(;a<f;a++)e(o[a],a);return o}return[]}function gt(){var i=document.scrollingElement;return i||document.documentElement}function De(i,r,e,o,a){if(!(!i.getBoundingClientRect&&i!==window)){var f,n,l,u,d,h,t;if(i!==window&&i.parentNode&&i!==gt()?(f=i.getBoundingClientRect(),n=f.top,l=f.left,u=f.bottom,d=f.right,h=f.height,t=f.width):(n=0,l=0,u=window.innerHeight,d=window.innerWidth,h=window.innerHeight,t=window.innerWidth),(r||e)&&i!==window&&(a=a||i.parentNode,!Ot))do if(a&&a.getBoundingClientRect&&(W(a,"transform")!=="none"||e&&W(a,"position")!=="static")){var s=a.getBoundingClientRect();n-=s.top+parseInt(W(a,"border-top-width")),l-=s.left+parseInt(W(a,"border-left-width")),u=n+f.height,d=l+f.width;break}while(a=a.parentNode);if(o&&i!==window){var c=ln(a||i),p=c&&c.a,v=c&&c.d;c&&(n/=v,l/=p,t/=p,h/=v,u=n+h,d=l+t)}return{top:n,left:l,bottom:u,right:d,width:t,height:h}}}function No(i,r,e){for(var o=Bt(i,!0),a=De(i)[r];o;){var f=De(o)[e],n=void 0;if(e==="top"||e==="left"?n=a>=f:n=a<=f,!n)return o;if(o===gt())break;o=Bt(o,!1)}return!1}function fn(i,r,e,o){for(var a=0,f=0,n=i.children;f<n.length;){if(n[f].style.display!=="none"&&n[f]!==Q.ghost&&(o||n[f]!==Q.dragged)&&ht(n[f],e.draggable,i,!1)){if(a===r)return n[f];a++}f++}return null}function po(i,r){for(var e=i.lastElementChild;e&&(e===Q.ghost||W(e,"display")==="none"||r&&!br(e,r));)e=e.previousElementSibling;return e||null}function rt(i,r){var e=0;if(!i||!i.parentNode)return-1;for(;i=i.previousElementSibling;)i.nodeName.toUpperCase()!=="TEMPLATE"&&i!==Q.clone&&(!r||br(i,r))&&e++;return e}function Mo(i){var r=0,e=0,o=gt();if(i)do{var a=ln(i),f=a.a,n=a.d;r+=i.scrollLeft*f,e+=i.scrollTop*n}while(i!==o&&(i=i.parentNode));return[r,e]}function As(i,r){for(var e in i)if(!!i.hasOwnProperty(e)){for(var o in r)if(r.hasOwnProperty(o)&&r[o]===i[e][o])return Number(e)}return-1}function Bt(i,r){if(!i||!i.getBoundingClientRect)return gt();var e=i,o=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var a=W(e);if(e.clientWidth<e.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return gt();if(o||r)return e;o=!0}}while(e=e.parentNode);return gt()}function Ss(i,r){if(i&&r)for(var e in r)r.hasOwnProperty(e)&&(i[e]=r[e]);return i}function $r(i,r){return Math.round(i.top)===Math.round(r.top)&&Math.round(i.left)===Math.round(r.left)&&Math.round(i.height)===Math.round(r.height)&&Math.round(i.width)===Math.round(r.width)}var Ln;function oa(i,r){return function(){if(!Ln){var e=arguments,o=this;e.length===1?i.call(o,e[0]):i.apply(o,e),Ln=setTimeout(function(){Ln=void 0},r)}}}function Es(){clearTimeout(Ln),Ln=void 0}function aa(i,r,e){i.scrollLeft+=r,i.scrollTop+=e}function ia(i){var r=window.Polymer,e=window.jQuery||window.Zepto;return r&&r.dom?r.dom(i).cloneNode(!0):e?e(i).clone(!0)[0]:i.cloneNode(!0)}var qe="Sortable"+new Date().getTime();function xs(){var i=[],r;return{captureAnimationState:function(){if(i=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(a){if(!(W(a,"display")==="none"||a===Q.ghost)){i.push({target:a,rect:De(a)});var f=yt({},i[i.length-1].rect);if(a.thisAnimationDuration){var n=ln(a,!0);n&&(f.top-=n.f,f.left-=n.e)}a.fromRect=f}})}},addAnimationState:function(o){i.push(o)},removeAnimationState:function(o){i.splice(As(i,{target:o}),1)},animateAll:function(o){var a=this;if(!this.options.animation){clearTimeout(r),typeof o=="function"&&o();return}var f=!1,n=0;i.forEach(function(l){var u=0,d=l.target,h=d.fromRect,t=De(d),s=d.prevFromRect,c=d.prevToRect,p=l.rect,v=ln(d,!0);v&&(t.top-=v.f,t.left-=v.e),d.toRect=t,d.thisAnimationDuration&&$r(s,t)&&!$r(h,t)&&(p.top-t.top)/(p.left-t.left)===(h.top-t.top)/(h.left-t.left)&&(u=Ts(p,s,c,a.options)),$r(t,h)||(d.prevFromRect=h,d.prevToRect=t,u||(u=a.options.animation),a.animate(d,p,t,u)),u&&(f=!0,n=Math.max(n,u),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},u),d.thisAnimationDuration=u)}),clearTimeout(r),f?r=setTimeout(function(){typeof o=="function"&&o()},n):typeof o=="function"&&o(),i=[]},animate:function(o,a,f,n){if(n){W(o,"transition",""),W(o,"transform","");var l=ln(this.el),u=l&&l.a,d=l&&l.d,h=(a.left-f.left)/(u||1),t=(a.top-f.top)/(d||1);o.animatingX=!!h,o.animatingY=!!t,W(o,"transform","translate3d("+h+"px,"+t+"px,0)"),this.forRepaintDummy=ws(o),W(o,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),W(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){W(o,"transition",""),W(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},n)}}}}function ws(i){return i.offsetWidth}function Ts(i,r,e,o){return Math.sqrt(Math.pow(r.top-i.top,2)+Math.pow(r.left-i.left,2))/Math.sqrt(Math.pow(r.top-e.top,2)+Math.pow(r.left-e.left,2))*o.animation}var en=[],Kr={initializeByDefault:!0},Kn={mount:function(r){for(var e in Kr)Kr.hasOwnProperty(e)&&!(e in r)&&(r[e]=Kr[e]);en.forEach(function(o){if(o.pluginName===r.pluginName)throw"Sortable: Cannot mount plugin ".concat(r.pluginName," more than once")}),en.push(r)},pluginEvent:function(r,e,o){var a=this;this.eventCanceled=!1,o.cancel=function(){a.eventCanceled=!0};var f=r+"Global";en.forEach(function(n){!e[n.pluginName]||(e[n.pluginName][f]&&e[n.pluginName][f](yt({sortable:e},o)),e.options[n.pluginName]&&e[n.pluginName][r]&&e[n.pluginName][r](yt({sortable:e},o)))})},initializePlugins:function(r,e,o,a){en.forEach(function(l){var u=l.pluginName;if(!(!r.options[u]&&!l.initializeByDefault)){var d=new l(r,e,r.options);d.sortable=r,d.options=r.options,r[u]=d,Tt(o,d.defaults)}});for(var f in r.options)if(!!r.options.hasOwnProperty(f)){var n=this.modifyOption(r,f,r.options[f]);typeof n!="undefined"&&(r.options[f]=n)}},getEventProperties:function(r,e){var o={};return en.forEach(function(a){typeof a.eventProperties=="function"&&Tt(o,a.eventProperties.call(e[a.pluginName],r))}),o},modifyOption:function(r,e,o){var a;return en.forEach(function(f){!r[f.pluginName]||f.optionListeners&&typeof f.optionListeners[e]=="function"&&(a=f.optionListeners[e].call(r[f.pluginName],o))}),a}};function Is(i){var r=i.sortable,e=i.rootEl,o=i.name,a=i.targetEl,f=i.cloneEl,n=i.toEl,l=i.fromEl,u=i.oldIndex,d=i.newIndex,h=i.oldDraggableIndex,t=i.newDraggableIndex,s=i.originalEvent,c=i.putSortable,p=i.extraEventProperties;if(r=r||e&&e[qe],!!r){var v,g=r.options,m="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!Ot&&!$n?v=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(v=document.createEvent("Event"),v.initEvent(o,!0,!0)),v.to=n||e,v.from=l||e,v.item=a||e,v.clone=f,v.oldIndex=u,v.newIndex=d,v.oldDraggableIndex=h,v.newDraggableIndex=t,v.originalEvent=s,v.pullMode=c?c.lastPutMode:void 0;var y=yt(yt({},p),Kn.getEventProperties(o,r));for(var b in y)v[b]=y[b];e&&e.dispatchEvent(v),g[m]&&g[m].call(r,v)}}var Os=["evt"],We=function(r,e){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.evt,f=ms(o,Os);Kn.pluginEvent.bind(Q)(r,e,yt({dragEl:R,parentEl:Ae,ghostEl:k,rootEl:he,nextEl:Wt,lastDownEl:lr,cloneEl:me,cloneHidden:Ft,dragStarted:In,putSortable:Le,activeSortable:Q.active,originalEvent:a,oldIndex:sn,oldDraggableIndex:Bn,newIndex:Ze,newDraggableIndex:Nt,hideGhostForTarget:fa,unhideGhostForTarget:ca,cloneNowHidden:function(){Ft=!0},cloneNowShown:function(){Ft=!1},dispatchSortableEvent:function(l){$e({sortable:e,name:l,originalEvent:a})}},f))};function $e(i){Is(yt({putSortable:Le,cloneEl:me,targetEl:R,rootEl:he,oldIndex:sn,oldDraggableIndex:Bn,newIndex:Ze,newDraggableIndex:Nt},i))}var R,Ae,k,he,Wt,lr,me,Ft,sn,Ze,Bn,Nt,kn,Le,on=!1,Ar=!1,Sr=[],Kt,ut,Yr,Vr,Fo,Lo,In,tn,jn,Gn=!1,qn=!1,ur,Ge,Wr=[],ro=!1,Er=[],Dr=typeof document!="undefined",er=ea,Bo=$n||Ot?"cssFloat":"float",Ds=Dr&&!ta&&!ea&&"draggable"in document.createElement("div"),sa=function(){if(!!Dr){if(Ot)return!1;var i=document.createElement("x");return i.style.cssText="pointer-events:auto",i.style.pointerEvents==="auto"}}(),la=function(r,e){var o=W(r),a=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),f=fn(r,0,e),n=fn(r,1,e),l=f&&W(f),u=n&&W(n),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+De(f).width,h=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+De(n).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(f&&l.float&&l.float!=="none"){var t=l.float==="left"?"left":"right";return n&&(u.clear==="both"||u.clear===t)?"vertical":"horizontal"}return f&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=a&&o[Bo]==="none"||n&&o[Bo]==="none"&&d+h>a)?"vertical":"horizontal"},Cs=function(r,e,o){var a=o?r.left:r.top,f=o?r.right:r.bottom,n=o?r.width:r.height,l=o?e.left:e.top,u=o?e.right:e.bottom,d=o?e.width:e.height;return a===l||f===u||a+n/2===l+d/2},Ps=function(r,e){var o;return Sr.some(function(a){var f=a[qe].options.emptyInsertThreshold;if(!(!f||po(a))){var n=De(a),l=r>=n.left-f&&r<=n.right+f,u=e>=n.top-f&&e<=n.bottom+f;if(l&&u)return o=a}}),o},ua=function(r){function e(f,n){return function(l,u,d,h){var t=l.options.group.name&&u.options.group.name&&l.options.group.name===u.options.group.name;if(f==null&&(n||t))return!0;if(f==null||f===!1)return!1;if(n&&f==="clone")return f;if(typeof f=="function")return e(f(l,u,d,h),n)(l,u,d,h);var s=(n?l:u).options.group.name;return f===!0||typeof f=="string"&&f===s||f.join&&f.indexOf(s)>-1}}var o={},a=r.group;(!a||sr(a)!="object")&&(a={name:a}),o.name=a.name,o.checkPull=e(a.pull,!0),o.checkPut=e(a.put),o.revertClone=a.revertClone,r.group=o},fa=function(){!sa&&k&&W(k,"display","none")},ca=function(){!sa&&k&&W(k,"display","")};Dr&&!ta&&document.addEventListener("click",function(i){if(Ar)return i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.stopImmediatePropagation&&i.stopImmediatePropagation(),Ar=!1,!1},!0);var Yt=function(r){if(R){r=r.touches?r.touches[0]:r;var e=Ps(r.clientX,r.clientY);if(e){var o={};for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);o.target=o.rootEl=e,o.preventDefault=void 0,o.stopPropagation=void 0,e[qe]._onDragOver(o)}}},Rs=function(r){R&&R.parentNode[qe]._isOutsideThisEl(r.target)};function Q(i,r){if(!(i&&i.nodeType&&i.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));this.el=i,this.options=r=Tt({},r),i[qe]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(i.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return la(i,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(n,l){n.setData("Text",l.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:Q.supportPointer!==!1&&"PointerEvent"in window&&!Fn,emptyInsertThreshold:5};Kn.initializePlugins(this,i,e);for(var o in e)!(o in r)&&(r[o]=e[o]);ua(r);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=r.forceFallback?!1:Ds,this.nativeDraggable&&(this.options.touchStartThreshold=1),r.supportPointer?se(i,"pointerdown",this._onTapStart):(se(i,"mousedown",this._onTapStart),se(i,"touchstart",this._onTapStart)),this.nativeDraggable&&(se(i,"dragover",this),se(i,"dragenter",this)),Sr.push(this.el),r.store&&r.store.get&&this.sort(r.store.get(this)||[]),Tt(this,xs())}Q.prototype={constructor:Q,_isOutsideThisEl:function(r){!this.el.contains(r)&&r!==this.el&&(tn=null)},_getDirection:function(r,e){return typeof this.options.direction=="function"?this.options.direction.call(this,r,e,R):this.options.direction},_onTapStart:function(r){if(!!r.cancelable){var e=this,o=this.el,a=this.options,f=a.preventOnFilter,n=r.type,l=r.touches&&r.touches[0]||r.pointerType&&r.pointerType==="touch"&&r,u=(l||r).target,d=r.target.shadowRoot&&(r.path&&r.path[0]||r.composedPath&&r.composedPath()[0])||u,h=a.filter;if(Us(o),!R&&!(/mousedown|pointerdown/.test(n)&&r.button!==0||a.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Fn&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=ht(u,a.draggable,o,!1),!(u&&u.animated)&&lr!==u)){if(sn=rt(u),Bn=rt(u,a.draggable),typeof h=="function"){if(h.call(this,r,u,this)){$e({sortable:e,rootEl:d,name:"filter",targetEl:u,toEl:o,fromEl:o}),We("filter",e,{evt:r}),f&&r.cancelable&&r.preventDefault();return}}else if(h&&(h=h.split(",").some(function(t){if(t=ht(d,t.trim(),o,!1),t)return $e({sortable:e,rootEl:t,name:"filter",targetEl:u,fromEl:o,toEl:o}),We("filter",e,{evt:r}),!0}),h)){f&&r.cancelable&&r.preventDefault();return}a.handle&&!ht(d,a.handle,o,!1)||this._prepareDragStart(r,l,u)}}},_prepareDragStart:function(r,e,o){var a=this,f=a.el,n=a.options,l=f.ownerDocument,u;if(o&&!R&&o.parentNode===f){var d=De(o);if(he=f,R=o,Ae=R.parentNode,Wt=R.nextSibling,lr=o,kn=n.group,Q.dragged=R,Kt={target:R,clientX:(e||r).clientX,clientY:(e||r).clientY},Fo=Kt.clientX-d.left,Lo=Kt.clientY-d.top,this._lastX=(e||r).clientX,this._lastY=(e||r).clientY,R.style["will-change"]="all",u=function(){if(We("delayEnded",a,{evt:r}),Q.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!Po&&a.nativeDraggable&&(R.draggable=!0),a._triggerDragStart(r,e),$e({sortable:a,name:"choose",originalEvent:r}),ze(R,n.chosenClass,!0)},n.ignore.split(",").forEach(function(h){ra(R,h.trim(),_r)}),se(l,"dragover",Yt),se(l,"mousemove",Yt),se(l,"touchmove",Yt),se(l,"mouseup",a._onDrop),se(l,"touchend",a._onDrop),se(l,"touchcancel",a._onDrop),Po&&this.nativeDraggable&&(this.options.touchStartThreshold=4,R.draggable=!0),We("delayStart",this,{evt:r}),n.delay&&(!n.delayOnTouchOnly||e)&&(!this.nativeDraggable||!($n||Ot))){if(Q.eventCanceled){this._onDrop();return}se(l,"mouseup",a._disableDelayedDrag),se(l,"touchend",a._disableDelayedDrag),se(l,"touchcancel",a._disableDelayedDrag),se(l,"mousemove",a._delayedDragTouchMoveHandler),se(l,"touchmove",a._delayedDragTouchMoveHandler),n.supportPointer&&se(l,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(u,n.delay)}else u()}},_delayedDragTouchMoveHandler:function(r){var e=r.touches?r.touches[0]:r;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){R&&_r(R),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var r=this.el.ownerDocument;ae(r,"mouseup",this._disableDelayedDrag),ae(r,"touchend",this._disableDelayedDrag),ae(r,"touchcancel",this._disableDelayedDrag),ae(r,"mousemove",this._delayedDragTouchMoveHandler),ae(r,"touchmove",this._delayedDragTouchMoveHandler),ae(r,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(r,e){e=e||r.pointerType=="touch"&&r,!this.nativeDraggable||e?this.options.supportPointer?se(document,"pointermove",this._onTouchMove):e?se(document,"touchmove",this._onTouchMove):se(document,"mousemove",this._onTouchMove):(se(R,"dragend",this),se(he,"dragstart",this._onDragStart));try{document.selection?fr(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(r,e){if(on=!1,he&&R){We("dragStarted",this,{evt:e}),this.nativeDraggable&&se(document,"dragover",Rs);var o=this.options;!r&&ze(R,o.dragClass,!1),ze(R,o.ghostClass,!0),Q.active=this,r&&this._appendGhost(),$e({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(ut){this._lastX=ut.clientX,this._lastY=ut.clientY,fa();for(var r=document.elementFromPoint(ut.clientX,ut.clientY),e=r;r&&r.shadowRoot&&(r=r.shadowRoot.elementFromPoint(ut.clientX,ut.clientY),r!==e);)e=r;if(R.parentNode[qe]._isOutsideThisEl(r),e)do{if(e[qe]){var o=void 0;if(o=e[qe]._onDragOver({clientX:ut.clientX,clientY:ut.clientY,target:r,rootEl:e}),o&&!this.options.dragoverBubble)break}r=e}while(e=e.parentNode);ca()}},_onTouchMove:function(r){if(Kt){var e=this.options,o=e.fallbackTolerance,a=e.fallbackOffset,f=r.touches?r.touches[0]:r,n=k&&ln(k,!0),l=k&&n&&n.a,u=k&&n&&n.d,d=er&&Ge&&Mo(Ge),h=(f.clientX-Kt.clientX+a.x)/(l||1)+(d?d[0]-Wr[0]:0)/(l||1),t=(f.clientY-Kt.clientY+a.y)/(u||1)+(d?d[1]-Wr[1]:0)/(u||1);if(!Q.active&&!on){if(o&&Math.max(Math.abs(f.clientX-this._lastX),Math.abs(f.clientY-this._lastY))<o)return;this._onDragStart(r,!0)}if(k){n?(n.e+=h-(Yr||0),n.f+=t-(Vr||0)):n={a:1,b:0,c:0,d:1,e:h,f:t};var s="matrix(".concat(n.a,",").concat(n.b,",").concat(n.c,",").concat(n.d,",").concat(n.e,",").concat(n.f,")");W(k,"webkitTransform",s),W(k,"mozTransform",s),W(k,"msTransform",s),W(k,"transform",s),Yr=h,Vr=t,ut=f}r.cancelable&&r.preventDefault()}},_appendGhost:function(){if(!k){var r=this.options.fallbackOnBody?document.body:he,e=De(R,!0,er,!0,r),o=this.options;if(er){for(Ge=r;W(Ge,"position")==="static"&&W(Ge,"transform")==="none"&&Ge!==document;)Ge=Ge.parentNode;Ge!==document.body&&Ge!==document.documentElement?(Ge===document&&(Ge=gt()),e.top+=Ge.scrollTop,e.left+=Ge.scrollLeft):Ge=gt(),Wr=Mo(Ge)}k=R.cloneNode(!0),ze(k,o.ghostClass,!1),ze(k,o.fallbackClass,!0),ze(k,o.dragClass,!0),W(k,"transition",""),W(k,"transform",""),W(k,"box-sizing","border-box"),W(k,"margin",0),W(k,"top",e.top),W(k,"left",e.left),W(k,"width",e.width),W(k,"height",e.height),W(k,"opacity","0.8"),W(k,"position",er?"absolute":"fixed"),W(k,"zIndex","100000"),W(k,"pointerEvents","none"),Q.ghost=k,r.appendChild(k),W(k,"transform-origin",Fo/parseInt(k.style.width)*100+"% "+Lo/parseInt(k.style.height)*100+"%")}},_onDragStart:function(r,e){var o=this,a=r.dataTransfer,f=o.options;if(We("dragStart",this,{evt:r}),Q.eventCanceled){this._onDrop();return}We("setupClone",this),Q.eventCanceled||(me=ia(R),me.removeAttribute("id"),me.draggable=!1,me.style["will-change"]="",this._hideClone(),ze(me,this.options.chosenClass,!1),Q.clone=me),o.cloneId=fr(function(){We("clone",o),!Q.eventCanceled&&(o.options.removeCloneOnHide||he.insertBefore(me,R),o._hideClone(),$e({sortable:o,name:"clone"}))}),!e&&ze(R,f.dragClass,!0),e?(Ar=!0,o._loopId=setInterval(o._emulateDragOver,50)):(ae(document,"mouseup",o._onDrop),ae(document,"touchend",o._onDrop),ae(document,"touchcancel",o._onDrop),a&&(a.effectAllowed="move",f.setData&&f.setData.call(o,a,R)),se(document,"drop",o),W(R,"transform","translateZ(0)")),on=!0,o._dragStartId=fr(o._dragStarted.bind(o,e,r)),se(document,"selectstart",o),In=!0,Fn&&W(document.body,"user-select","none")},_onDragOver:function(r){var e=this.el,o=r.target,a,f,n,l=this.options,u=l.group,d=Q.active,h=kn===u,t=l.sort,s=Le||d,c,p=this,v=!1;if(ro)return;function g(ee,le){We(ee,p,yt({evt:r,isOwner:h,axis:c?"vertical":"horizontal",revert:n,dragRect:a,targetRect:f,canSort:t,fromSortable:s,target:o,completed:y,onMove:function(fe,ce){return tr(he,e,R,a,fe,De(fe),r,ce)},changed:b},le))}function m(){g("dragOverAnimationCapture"),p.captureAnimationState(),p!==s&&s.captureAnimationState()}function y(ee){return g("dragOverCompleted",{insertion:ee}),ee&&(h?d._hideClone():d._showClone(p),p!==s&&(ze(R,Le?Le.options.ghostClass:d.options.ghostClass,!1),ze(R,l.ghostClass,!0)),Le!==p&&p!==Q.active?Le=p:p===Q.active&&Le&&(Le=null),s===p&&(p._ignoreWhileAnimating=o),p.animateAll(function(){g("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==s&&(s.animateAll(),s._ignoreWhileAnimating=null)),(o===R&&!R.animated||o===e&&!o.animated)&&(tn=null),!l.dragoverBubble&&!r.rootEl&&o!==document&&(R.parentNode[qe]._isOutsideThisEl(r.target),!ee&&Yt(r)),!l.dragoverBubble&&r.stopPropagation&&r.stopPropagation(),v=!0}function b(){Ze=rt(R),Nt=rt(R,l.draggable),$e({sortable:p,name:"change",toEl:e,newIndex:Ze,newDraggableIndex:Nt,originalEvent:r})}if(r.preventDefault!==void 0&&r.cancelable&&r.preventDefault(),o=ht(o,l.draggable,e,!0),g("dragOver"),Q.eventCanceled)return v;if(R.contains(r.target)||o.animated&&o.animatingX&&o.animatingY||p._ignoreWhileAnimating===o)return y(!1);if(Ar=!1,d&&!l.disabled&&(h?t||(n=Ae!==he):Le===this||(this.lastPutMode=kn.checkPull(this,d,R,r))&&u.checkPut(this,d,R,r))){if(c=this._getDirection(r,o)==="vertical",a=De(R),g("dragOverValid"),Q.eventCanceled)return v;if(n)return Ae=he,m(),this._hideClone(),g("revert"),Q.eventCanceled||(Wt?he.insertBefore(R,Wt):he.appendChild(R)),y(!0);var A=po(e,l.draggable);if(!A||Ls(r,c,this)&&!A.animated){if(A===R)return y(!1);if(A&&e===r.target&&(o=A),o&&(f=De(o)),tr(he,e,R,a,o,f,r,!!o)!==!1)return m(),A&&A.nextSibling?e.insertBefore(R,A.nextSibling):e.appendChild(R),Ae=e,b(),y(!0)}else if(A&&Fs(r,c,this)){var I=fn(e,0,l,!0);if(I===R)return y(!1);if(o=I,f=De(o),tr(he,e,R,a,o,f,r,!1)!==!1)return m(),e.insertBefore(R,I),Ae=e,b(),y(!0)}else if(o.parentNode===e){f=De(o);var T=0,B,j=R.parentNode!==e,x=!Cs(R.animated&&R.toRect||a,o.animated&&o.toRect||f,c),M=c?"top":"left",L=No(o,"top","top")||No(R,"top","top"),K=L?L.scrollTop:void 0;tn!==o&&(B=f[M],Gn=!1,qn=!x&&l.invertSwap||j),T=Bs(r,o,f,c,x?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,qn,tn===o);var D;if(T!==0){var P=rt(R);do P-=T,D=Ae.children[P];while(D&&(W(D,"display")==="none"||D===k))}if(T===0||D===o)return y(!1);tn=o,jn=T;var $=o.nextElementSibling,F=!1;F=T===1;var X=tr(he,e,R,a,o,f,r,F);if(X!==!1)return(X===1||X===-1)&&(F=X===1),ro=!0,setTimeout(Ms,30),m(),F&&!$?e.appendChild(R):o.parentNode.insertBefore(R,F?$:o),L&&aa(L,0,K-L.scrollTop),Ae=R.parentNode,B!==void 0&&!qn&&(ur=Math.abs(B-De(o)[M])),b(),y(!0)}if(e.contains(R))return y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ae(document,"mousemove",this._onTouchMove),ae(document,"touchmove",this._onTouchMove),ae(document,"pointermove",this._onTouchMove),ae(document,"dragover",Yt),ae(document,"mousemove",Yt),ae(document,"touchmove",Yt)},_offUpEvents:function(){var r=this.el.ownerDocument;ae(r,"mouseup",this._onDrop),ae(r,"touchend",this._onDrop),ae(r,"pointerup",this._onDrop),ae(r,"touchcancel",this._onDrop),ae(document,"selectstart",this)},_onDrop:function(r){var e=this.el,o=this.options;if(Ze=rt(R),Nt=rt(R,o.draggable),We("drop",this,{evt:r}),Ae=R&&R.parentNode,Ze=rt(R),Nt=rt(R,o.draggable),Q.eventCanceled){this._nulling();return}on=!1,qn=!1,Gn=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),oo(this.cloneId),oo(this._dragStartId),this.nativeDraggable&&(ae(document,"drop",this),ae(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Fn&&W(document.body,"user-select",""),W(R,"transform",""),r&&(In&&(r.cancelable&&r.preventDefault(),!o.dropBubble&&r.stopPropagation()),k&&k.parentNode&&k.parentNode.removeChild(k),(he===Ae||Le&&Le.lastPutMode!=="clone")&&me&&me.parentNode&&me.parentNode.removeChild(me),R&&(this.nativeDraggable&&ae(R,"dragend",this),_r(R),R.style["will-change"]="",In&&!on&&ze(R,Le?Le.options.ghostClass:this.options.ghostClass,!1),ze(R,this.options.chosenClass,!1),$e({sortable:this,name:"unchoose",toEl:Ae,newIndex:null,newDraggableIndex:null,originalEvent:r}),he!==Ae?(Ze>=0&&($e({rootEl:Ae,name:"add",toEl:Ae,fromEl:he,originalEvent:r}),$e({sortable:this,name:"remove",toEl:Ae,originalEvent:r}),$e({rootEl:Ae,name:"sort",toEl:Ae,fromEl:he,originalEvent:r}),$e({sortable:this,name:"sort",toEl:Ae,originalEvent:r})),Le&&Le.save()):Ze!==sn&&Ze>=0&&($e({sortable:this,name:"update",toEl:Ae,originalEvent:r}),$e({sortable:this,name:"sort",toEl:Ae,originalEvent:r})),Q.active&&((Ze==null||Ze===-1)&&(Ze=sn,Nt=Bn),$e({sortable:this,name:"end",toEl:Ae,originalEvent:r}),this.save()))),this._nulling()},_nulling:function(){We("nulling",this),he=R=Ae=k=Wt=me=lr=Ft=Kt=ut=In=Ze=Nt=sn=Bn=tn=jn=Le=kn=Q.dragged=Q.ghost=Q.clone=Q.active=null,Er.forEach(function(r){r.checked=!0}),Er.length=Yr=Vr=0},handleEvent:function(r){switch(r.type){case"drop":case"dragend":this._onDrop(r);break;case"dragenter":case"dragover":R&&(this._onDragOver(r),Ns(r));break;case"selectstart":r.preventDefault();break}},toArray:function(){for(var r=[],e,o=this.el.children,a=0,f=o.length,n=this.options;a<f;a++)e=o[a],ht(e,n.draggable,this.el,!1)&&r.push(e.getAttribute(n.dataIdAttr)||Gs(e));return r},sort:function(r,e){var o={},a=this.el;this.toArray().forEach(function(f,n){var l=a.children[n];ht(l,this.options.draggable,a,!1)&&(o[f]=l)},this),e&&this.captureAnimationState(),r.forEach(function(f){o[f]&&(a.removeChild(o[f]),a.appendChild(o[f]))}),e&&this.animateAll()},save:function(){var r=this.options.store;r&&r.set&&r.set(this)},closest:function(r,e){return ht(r,e||this.options.draggable,this.el,!1)},option:function(r,e){var o=this.options;if(e===void 0)return o[r];var a=Kn.modifyOption(this,r,e);typeof a!="undefined"?o[r]=a:o[r]=e,r==="group"&&ua(o)},destroy:function(){We("destroy",this);var r=this.el;r[qe]=null,ae(r,"mousedown",this._onTapStart),ae(r,"touchstart",this._onTapStart),ae(r,"pointerdown",this._onTapStart),this.nativeDraggable&&(ae(r,"dragover",this),ae(r,"dragenter",this)),Array.prototype.forEach.call(r.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Sr.splice(Sr.indexOf(this.el),1),this.el=r=null},_hideClone:function(){if(!Ft){if(We("hideClone",this),Q.eventCanceled)return;W(me,"display","none"),this.options.removeCloneOnHide&&me.parentNode&&me.parentNode.removeChild(me),Ft=!0}},_showClone:function(r){if(r.lastPutMode!=="clone"){this._hideClone();return}if(Ft){if(We("showClone",this),Q.eventCanceled)return;R.parentNode==he&&!this.options.group.revertClone?he.insertBefore(me,R):Wt?he.insertBefore(me,Wt):he.appendChild(me),this.options.group.revertClone&&this.animate(R,me),W(me,"display",""),Ft=!1}}};function Ns(i){i.dataTransfer&&(i.dataTransfer.dropEffect="move"),i.cancelable&&i.preventDefault()}function tr(i,r,e,o,a,f,n,l){var u,d=i[qe],h=d.options.onMove,t;return window.CustomEvent&&!Ot&&!$n?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=r,u.from=i,u.dragged=e,u.draggedRect=o,u.related=a||r,u.relatedRect=f||De(r),u.willInsertAfter=l,u.originalEvent=n,i.dispatchEvent(u),h&&(t=h.call(d,u,n)),t}function _r(i){i.draggable=!1}function Ms(){ro=!1}function Fs(i,r,e){var o=De(fn(e.el,0,e.options,!0)),a=10;return r?i.clientX<o.left-a||i.clientY<o.top&&i.clientX<o.right:i.clientY<o.top-a||i.clientY<o.bottom&&i.clientX<o.left}function Ls(i,r,e){var o=De(po(e.el,e.options.draggable)),a=10;return r?i.clientX>o.right+a||i.clientX<=o.right&&i.clientY>o.bottom&&i.clientX>=o.left:i.clientX>o.right&&i.clientY>o.top||i.clientX<=o.right&&i.clientY>o.bottom+a}function Bs(i,r,e,o,a,f,n,l){var u=o?i.clientY:i.clientX,d=o?e.height:e.width,h=o?e.top:e.left,t=o?e.bottom:e.right,s=!1;if(!n){if(l&&ur<d*a){if(!Gn&&(jn===1?u>h+d*f/2:u<t-d*f/2)&&(Gn=!0),Gn)s=!0;else if(jn===1?u<h+ur:u>t-ur)return-jn}else if(u>h+d*(1-a)/2&&u<t-d*(1-a)/2)return js(r)}return s=s||n,s&&(u<h+d*f/2||u>t-d*f/2)?u>h+d/2?1:-1:0}function js(i){return rt(R)<rt(i)?1:-1}function Gs(i){for(var r=i.tagName+i.className+i.src+i.href+i.textContent,e=r.length,o=0;e--;)o+=r.charCodeAt(e);return o.toString(36)}function Us(i){Er.length=0;for(var r=i.getElementsByTagName("input"),e=r.length;e--;){var o=r[e];o.checked&&Er.push(o)}}function fr(i){return setTimeout(i,0)}function oo(i){return clearTimeout(i)}Dr&&se(document,"touchmove",function(i){(Q.active||on)&&i.cancelable&&i.preventDefault()});Q.utils={on:se,off:ae,css:W,find:ra,is:function(r,e){return!!ht(r,e,r,!1)},extend:Ss,throttle:oa,closest:ht,toggleClass:ze,clone:ia,index:rt,nextTick:fr,cancelNextTick:oo,detectDirection:la,getChild:fn};Q.get=function(i){return i[qe]};Q.mount=function(){for(var i=arguments.length,r=new Array(i),e=0;e<i;e++)r[e]=arguments[e];r[0].constructor===Array&&(r=r[0]),r.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(Q.utils=yt(yt({},Q.utils),o.utils)),Kn.mount(o)})};Q.create=function(i,r){return new Q(i,r)};Q.version=ys;var Ie=[],On,ao,io=!1,Qr,zr,xr,Dn;function Hs(){function i(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this))}return i.prototype={dragStarted:function(e){var o=e.originalEvent;this.sortable.nativeDraggable?se(document,"dragover",this._handleAutoScroll):this.options.supportPointer?se(document,"pointermove",this._handleFallbackAutoScroll):o.touches?se(document,"touchmove",this._handleFallbackAutoScroll):se(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var o=e.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?ae(document,"dragover",this._handleAutoScroll):(ae(document,"pointermove",this._handleFallbackAutoScroll),ae(document,"touchmove",this._handleFallbackAutoScroll),ae(document,"mousemove",this._handleFallbackAutoScroll)),jo(),cr(),Es()},nulling:function(){xr=ao=On=io=Dn=Qr=zr=null,Ie.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,o){var a=this,f=(e.touches?e.touches[0]:e).clientX,n=(e.touches?e.touches[0]:e).clientY,l=document.elementFromPoint(f,n);if(xr=e,o||this.options.forceAutoScrollFallback||$n||Ot||Fn){Jr(e,this.options,l,o);var u=Bt(l,!0);io&&(!Dn||f!==Qr||n!==zr)&&(Dn&&jo(),Dn=setInterval(function(){var d=Bt(document.elementFromPoint(f,n),!0);d!==u&&(u=d,cr()),Jr(e,a.options,d,o)},10),Qr=f,zr=n)}else{if(!this.options.bubbleScroll||Bt(l,!0)===gt()){cr();return}Jr(e,this.options,Bt(l,!1),!1)}}},Tt(i,{pluginName:"scroll",initializeByDefault:!0})}function cr(){Ie.forEach(function(i){clearInterval(i.pid)}),Ie=[]}function jo(){clearInterval(Dn)}var Jr=oa(function(i,r,e,o){if(!!r.scroll){var a=(i.touches?i.touches[0]:i).clientX,f=(i.touches?i.touches[0]:i).clientY,n=r.scrollSensitivity,l=r.scrollSpeed,u=gt(),d=!1,h;ao!==e&&(ao=e,cr(),On=r.scroll,h=r.scrollFn,On===!0&&(On=Bt(e,!0)));var t=0,s=On;do{var c=s,p=De(c),v=p.top,g=p.bottom,m=p.left,y=p.right,b=p.width,A=p.height,I=void 0,T=void 0,B=c.scrollWidth,j=c.scrollHeight,x=W(c),M=c.scrollLeft,L=c.scrollTop;c===u?(I=b<B&&(x.overflowX==="auto"||x.overflowX==="scroll"||x.overflowX==="visible"),T=A<j&&(x.overflowY==="auto"||x.overflowY==="scroll"||x.overflowY==="visible")):(I=b<B&&(x.overflowX==="auto"||x.overflowX==="scroll"),T=A<j&&(x.overflowY==="auto"||x.overflowY==="scroll"));var K=I&&(Math.abs(y-a)<=n&&M+b<B)-(Math.abs(m-a)<=n&&!!M),D=T&&(Math.abs(g-f)<=n&&L+A<j)-(Math.abs(v-f)<=n&&!!L);if(!Ie[t])for(var P=0;P<=t;P++)Ie[P]||(Ie[P]={});(Ie[t].vx!=K||Ie[t].vy!=D||Ie[t].el!==c)&&(Ie[t].el=c,Ie[t].vx=K,Ie[t].vy=D,clearInterval(Ie[t].pid),(K!=0||D!=0)&&(d=!0,Ie[t].pid=setInterval(function(){o&&this.layer===0&&Q.active._onTouchMove(xr);var $=Ie[this.layer].vy?Ie[this.layer].vy*l:0,F=Ie[this.layer].vx?Ie[this.layer].vx*l:0;typeof h=="function"&&h.call(Q.dragged.parentNode[qe],F,$,i,xr,Ie[this.layer].el)!=="continue"||aa(Ie[this.layer].el,F,$)}.bind({layer:t}),24))),t++}while(r.bubbleScroll&&s!==u&&(s=Bt(s,!1)));io=d}},30),da=function(r){var e=r.originalEvent,o=r.putSortable,a=r.dragEl,f=r.activeSortable,n=r.dispatchSortableEvent,l=r.hideGhostForTarget,u=r.unhideGhostForTarget;if(!!e){var d=o||f;l();var h=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,t=document.elementFromPoint(h.clientX,h.clientY);u(),d&&!d.el.contains(t)&&(n("spill"),this.onSpill({dragEl:a,putSortable:o}))}};function ho(){}ho.prototype={startIndex:null,dragStart:function(r){var e=r.oldDraggableIndex;this.startIndex=e},onSpill:function(r){var e=r.dragEl,o=r.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var a=fn(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(e,a):this.sortable.el.appendChild(e),this.sortable.animateAll(),o&&o.animateAll()},drop:da};Tt(ho,{pluginName:"revertOnSpill"});function vo(){}vo.prototype={onSpill:function(r){var e=r.dragEl,o=r.putSortable,a=o||this.sortable;a.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),a.animateAll()},drop:da};Tt(vo,{pluginName:"removeOnSpill"});Q.mount(new Hs);Q.mount(vo,ho);var hl=Gt({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(i,{emit:r}){const e=wr({domId:"draggableContainer"+ +new Date,drag:!1,sortable:null,list:[],options:[],alst:[]});dr(()=>{});const o=()=>{const l=e.list||[],u=[];l.forEach((d,h)=>{u.push({answerId:d.answerId,answer:d.answer,answerExtra:h+1})}),r("update:value",u)},a=l=>{if(l.checked||i.readOnly)return;const u=[];e.options.forEach((d,h)=>{u.push({answerId:d.index,answer:d.leftValue,answerExtra:h+1})}),u.push({answerId:l.examinationQuestionAnswerId,answer:l.questionAnswer,answerExtra:e.list.length+1}),e.list.push({answerId:l.examinationQuestionAnswerId,answer:l.questionAnswer,answerExtra:e.list.length+1}),r("update:value",u),pr(()=>{n()})},f=Un(()=>{const l=i.data.answers||[],u=i.value||[];return l.forEach(d=>{const h=u.findIndex(t=>t.answerId===d.examinationQuestionAnswerId);d.checked=h!==-1}),l}),n=()=>{const l=i.data.answers||[],u=i.data.userAnswer||[];pr(()=>{if(u.length>0){const d=[];u.forEach((h,t)=>{const s=l.find(v=>h.answerId===v.examinationQuestionAnswerId),c=l.find(v=>h.answerExtra==v.questionExtra),p={itemIndex:t,index:h.answerId,leftValue:h.answer,rightValue:h.answerExtra,leftType:s&&s.questionAnswerTypeCode||"TXT",rightType:s&&s.questionExtraTypeCode||"TXT",rightIndex:c?c.examinationQuestionAnswerId:""};d.push(p)}),e.options=d}})};return ba(()=>e.options,()=>{const l=e.options||[],u=[];l.forEach((d,h)=>{u.push({answerId:d.index,answer:d.leftValue,answerExtra:h+1})}),r("update:value",u)}),dr(()=>{n()}),()=>O(wt,null,[O("div",{class:Me.unitSubject},[O(Tr,{index:i.index,name:i.data.name,showRate:i.showRate,score:i.data.totalScore,answerType:St.SORT,extra:{rightRate:i.data.rightRate,questionDetail:i.data.questionDetail,mediaUrls:i.data.mediaUrls}},null),O("div",{class:[Me.unitAnswers]},[f.value.map((l,u)=>O("div",{class:[Me.unitAnswer,l.checked&&Me.active],onClick:()=>a(l)},[O("div",{class:Me.answerContent},[O("span",{class:Me.option},[Uo[u+1],Be(".")]),l.questionAnswerTypeCode===ke.IMAGE&&O("div",{class:Me.value},[O(jt,{src:l.questionAnswer},null)]),l.questionAnswerTypeCode===ke.TXT&&O("div",{class:Me.value},[l.questionAnswer])])])),O("div",{class:[Me.sortReset,"van-hairline--top"]},[O("span",{class:Me.tips},[Be("\u6211\u7684\u56DE\u7B54\uFF08\u53EF\u62D6\u62FD\uFF09")]),O(so,{type:"primary",round:!0,disabled:i.readOnly,onClick:()=>{e.options=[],e.list=[],o(),n()}},{default:()=>[Be("\u91CD\u7F6E")]})]),i.readOnly?e.options.map(l=>O("div",{class:Me.itemsContainer},[l.leftType===ke.TXT&&O(Zr,{class:[Me.items],"data-id":l.itemIndex},{default:()=>[l.leftValue]}),l.leftType===ke.IMAGE&&O(jt,{src:l.leftValue,"data-id":l.itemIndex,class:[Me.imgs,"van-hairline--surround"],fit:"cover"},null)])):O(es,{modelValue:e.options,"onUpdate:modelValue":l=>e.options=l,itemKey:"itemIndex"},{item:l=>{const u=l.element;return O("div",{class:Me.itemsContainer},[u.leftType===ke.TXT&&O(Zr,{class:[Me.items],"data-id":u.itemIndex},{default:()=>[u.leftValue]}),u.leftType===ke.IMAGE&&O(jt,{src:u.leftValue,"data-id":u.itemIndex,class:[Me.imgs,"van-hairline--surround"],fit:"cover"},null)])}})])]),i.showAnalysis&&O("div",{class:Me.unitSubject},[O(Ir,{answerAnalysis:i.analysis.message,topic:i.analysis.topic,userResult:i.analysis.userResult},null)])])}});const Xs="_unitSubject_cexcs_1",$s="_unitAnswers_cexcs_10",Ks="_answerItem_cexcs_15",Ys="_img_cexcs_26",Vs="_unitItem_cexcs_29",Ws="_active_cexcs_45",_s="_canvasSection_cexcs_49",Qs="_resetBtnGroup_cexcs_54";var nt={unitSubject:Xs,unitAnswers:$s,answerItem:Ks,img:Ys,unitItem:Vs,active:Ws,canvasSection:_s,resetBtnGroup:Qs},vl=Gt({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(i,{emit:r}){const e=Aa(),o=wr({answerDomId:"answer"+ +new Date,answerRect:{},dpr:1,sortable:null,list:[],options:[],drawLineList:[],selectItem:[]}),a=(s,c)=>{if(i.readOnly)return;o.options.forEach(v=>{!v.leftLocked&&c.index!==v.index&&(v.left=!1)});const p=n(c.index,"left");if(p.status)o.options.forEach(v=>{v.rightLocked||(v.right=!1)}),o.selectItem=[],o.drawLineList.splice(p.selectIndex,1),u(e.value),o.options.forEach(v=>{p.selectOption.leftIndex===v.index&&(v.left=!1,v.leftLocked=!1),p.selectOption.rightIndex===v.index&&(v.right=!1,v.rightLocked=!1)});else if(c.left=!c.left,c.left?o.selectItem[0]={index:c.index}:o.selectItem[0]=null,o.selectItem[0]&&o.selectItem[1]){const v=l();o.drawLineList.push(v),o.selectItem=[],u(e.value)}h()},f=(s,c)=>{if(i.readOnly)return;o.options.forEach(v=>{!v.rightLocked&&c.index!==v.index&&(v.right=!1)});const p=n(c.index,"right");if(p.status)o.options.forEach(v=>{v.leftLocked||(v.left=!1)}),o.selectItem=[],o.drawLineList.splice(p.selectIndex,1),u(e.value),o.options.forEach(v=>{p.selectOption.leftIndex===v.index&&(v.left=!1,v.leftLocked=!1),p.selectOption.rightIndex===v.index&&(v.right=!1,v.rightLocked=!1)});else if(c.right=!c.right,c.right?o.selectItem[1]={index:c.index}:o.selectItem[1]=null,o.selectItem[0]&&o.selectItem[1]){const v=l();o.drawLineList.push(v),o.selectItem=[],u(e.value)}h()},n=(s,c="left")=>{const p=o.drawLineList||[];let v=!1,g=0,m={};return p.forEach((y,b)=>{(y.leftIndex===s&&c==="left"||y.rightIndex===s&&c==="right")&&(m=y,v=!0,g=b)}),{status:v,selectIndex:g,selectOption:m}},l=()=>{const s=Jt(e.value),c=o.selectItem[0],p=Jt(document.getElementById(c.index+"-left"));p.index=c.index;const v=o.selectItem[1],g=Jt(document.getElementById(v.index+"-right"));g.index=v.index,console.log(o.selectItem,p,g);const m={x:p.width,y:p.top+p.height/2-s.top},y={x:g.left-s.left,y:g.top+g.height/2-s.top};return o.options.forEach(b=>{b.index===p.index&&(b.leftLocked=!0),b.index===g.index&&(b.rightLocked=!0)}),{startPoint:m,endPoint:y,leftIndex:p.index,rightIndex:g.index}},u=s=>{if(s.getContext){const c=s.getContext("2d");c.clearRect(0,0,o.answerRect.width*o.dpr||0,o.answerRect.height*o.dpr||0),o.drawLineList.forEach(p=>{d(c,p.startPoint,p.endPoint)})}},d=(s,c,p)=>{s.beginPath(),s.moveTo(Math.floor(c.x-1)*o.dpr,Math.ceil(c.y)*o.dpr),s.lineTo(Math.ceil(p.x+1)*o.dpr,Math.ceil(p.y)*o.dpr),s.lineWidth=2*o.dpr,s.strokeStyle="#FF8057",s.stroke()},h=()=>{const s=o.options||[],c=o.drawLineList||[],p=[];c.forEach(v=>{const g=s.find(y=>y.index===v.leftIndex),m=s.find(y=>y.index===v.rightIndex);p.push({answerId:g.index,answer:g.leftValue,answerExtra:m.rightValue})}),r("update:value",p)},t=()=>{const s=i.data.answers||[],c=i.data.userAnswer||[];s.forEach(p=>{const v={index:p.examinationQuestionAnswerId,leftValue:p.questionAnswer,rightValue:p.questionExtra,leftType:p.questionAnswerTypeCode||"TXT",rightType:p.questionExtraTypeCode||"TXT",left:!1,right:!1,leftLocked:!1,rightLocked:!1};o.options.push(v)}),c.forEach(p=>{const v={startPoint:{x:0,y:0},endPoint:{x:0,y:0},leftIndex:0,rightIndex:0};o.options.forEach(g=>{g.index===p.answerId&&(g.left=!0,g.leftLocked=!0,v.leftIndex=g.index),g.rightValue===p.answerExtra&&(g.right=!0,g.leftLocked=!0,v.rightIndex=g.index)}),o.drawLineList.push(v)}),pr(()=>{o.drawLineList.forEach(p=>{console.log(p,"drawLine"),o.selectItem=[];const v=Jt(document.getElementById(p.leftIndex+"-left"));v.index=p.leftIndex,o.selectItem[0]=v;const g=Jt(document.getElementById(p.rightIndex+"-right"));g.index=p.rightIndex,o.selectItem[1]=g;const m=l();p.endPoint=m.endPoint,p.startPoint=m.startPoint,o.selectItem=[]}),setTimeout(()=>{u(e.value)},100)})};return dr(()=>{t(),pr(()=>{const s=document.getElementById(o.answerDomId),c=Jt(s);o.answerRect=c;const p=window.devicePixelRatio;o.dpr=p})}),()=>O(wt,null,[O("div",{class:nt.unitSubject},[O(Tr,{index:i.index,name:i.data.name,score:i.data.totalScore,showRate:i.showRate,answerType:St.LINK,extra:{questionDetail:i.data.questionDetail,mediaUrls:i.data.mediaUrls,rightRate:i.data.rightRate}},null),O("div",{class:[nt.unitAnswers],id:o.answerDomId},[O("canvas",{ref:e,class:nt.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(s=>O("div",{class:nt.answerItem},[O("div",{class:[nt.unitItem,s.left&&nt.active],id:s.index+"-left",onClick:c=>a(c,s)},[s.leftType===ke.TXT&&s.leftValue,s.leftType===ke.IMAGE&&O(jt,{src:s.leftValue,class:nt.img},null)]),O("div",{class:[nt.unitItem,s.right&&nt.active],id:s.index+"-right",onClick:c=>f(c,s)},[s.rightType===ke.TXT&&s.rightValue,s.rightType===ke.IMAGE&&O(jt,{src:s.rightValue,class:nt.img},null)])]))]),O("div",{class:nt.resetBtnGroup},[O(so,{round:!0,type:"primary",disabled:i.readOnly,onClick:()=>{o.drawLineList=[],u(e.value),o.options.forEach(s=>{s.left=!1,s.right=!1,s.leftLocked=!1,s.rightLocked=!1}),o.selectItem=[],h()}},{default:()=>[Be("\u91CD\u7F6E")]})])]),i.showAnalysis&&O("div",{class:nt.unitSubject},[O(Ir,{answerAnalysis:i.analysis.message,topic:i.analysis.topic,userResult:i.analysis.userResult},null)])])}});const zs="_unitSubject_vaiy0_1",Js="_unitAnswers_vaiy0_10",Zs="_playSection_vaiy0_14",ks="_img_vaiy0_19",qs="_playTitle_vaiy0_24",el="_playBtn_vaiy0_29",tl="_unitScoreNum_vaiy0_37",nl="_score_vaiy0_42",rl="_scoreTitle_vaiy0_47",ol="_scoreTips_vaiy0_53";var ft={unitSubject:zs,unitAnswers:Js,playSection:Zs,img:ks,playTitle:qs,playBtn:el,unitScoreNum:tl,score:nl,scoreTitle:rl,scoreTips:ol},al="./assets/icon-song.c2cb716c.png",gl=Gt({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(i,{emit:r}){console.log(i,"props");const e=wr({list:[],score:0}),o=Un(()=>i.data.questionExtendsInfo?JSON.parse(i.data.questionExtendsInfo):""),a=()=>{const f=o.value;!f||(console.log(i.unitId),Sa({api:"openAccompanyWebView",content:{url:`${location.origin}/orchestra-music-score/?id=${f.musicSheetId}&modelType=evaluation&unitId=${i.unitId}&questionId=${i.data.id}`,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}}),Ea("webViewOnResume",()=>{var n,l;if(xa().android){const u=window.ORCHESTRA||((l=(n=window.webkit)==null?void 0:n.messageHandlers)==null?void 0:l.ORCHESTRA);console.log(u,"-------------");const d=u.getCache2("h5-orchestra-unit");console.log("\u{1F680} ~ listenerMessage ~ result",d);const h=d?JSON.parse(d):{};if(h.questionId===i.data.id){const t=h.score||0;e.score<t&&(e.score=h.score||0),Rr({api:"setCache",content:{key:"h5-orchestra-unit",value:""}})}r("update:value",[{answerId:"",answer:e.score,answerExtra:""}]),go("webViewOnResume",()=>{})}else Rr({api:"getCache",content:{key:"h5-orchestra-unit"}}).then(u=>{const d=u.content;if(d.value){console.log("\u{1F680} ~ listenerMessage ~ content.value",d.value,"---------------");const h=d.value?JSON.parse(d.value):{};if(console.log("\u{1F680} ~ listenerMessage ~ result",h,i.data.questionId),h.questionId===i.data.id){const t=h.score||0;e.score<t&&(e.score=h.score||0)}r("update:value",[{answerId:"",answer:e.score,answerExtra:""}]),Rr({api:"setCache",content:{key:"h5-orchestra-unit",value:""}})}go("webViewOnResume",()=>{})})}))};return dr(()=>{const f=i.value||[];f.length>0&&(e.score=f[0].answer)}),()=>O(wt,null,[O("div",{class:ft.unitSubject},[O(Tr,{index:i.index,name:i.data.name,score:i.data.totalScore,showRate:i.showRate,answerType:St.PLAY,extra:{questionDetail:i.data.questionDetail,mediaUrls:"",rightRate:i.data.rightRate}},null),O("div",{class:[ft.unitAnswers]},[o.value&&O(Ia,{class:ft.playSection,center:!0,titleClass:["van-ellipsis",ft.playTitle]},{icon:()=>O(jt,{class:ft.img,src:al},null),title:()=>O(wt,null,[o.value.musicName]),value:()=>O(so,{round:!0,class:ft.playBtn,type:"primary",onClick:a,disabled:i.readOnly},{default:()=>[Be("\u70B9\u51FB\u8BC4\u6D4B"),O(_t,{name:"play"},null)]})}),(!i.readOnly||i.showScore)&&O("div",{class:["van-hairline--top",ft.unitScoreNum]},[O("div",{class:ft.score},[e.score]),O("div",{class:ft.scoreTitle},[Be("\u8BC4\u6D4B\u5206\u6570")]),!i.showScore&&O("div",{class:ft.scoreTips},[Be("\u591A\u6B21\u8BC4\u6D4B\u53D6\u5B8C\u6574\u8BC4\u6D4B\u7684\u6700\u9AD8\u5206\u6570")])])])]),i.showAnalysis&&O("div",{class:ft.unitSubject},[O(Ir,{answerAnalysis:i.analysis.message,topic:i.analysis.topic,userResult:i.analysis.userResult,rightFlagText:"\u5408\u683C",errorFlagText:"\u4E0D\u5408\u683C"},null)])])}});export{pl as A,dl as C,hl as D,vl as K,gl as P,St as Q,Za as a,mo as e,cl as i};