123456789101112131415161718192021222324252627282930 |
- !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(c){u=!0,r=c}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}System.register(["./index-legacy-ed52ea6c.js","./index-legacy-d860c2d7.js","./index-legacy-744aa716.js","./index-legacy-f33089f7.js","./index-legacy-f7a2262a.js"],(function(o,r){"use strict";var i,a,s,l,u,c,d,f,p,h,_,m,g,v,y,w,b,A,x,S,T,E,I,O,C,D,k,P,M,L,R,B,j,N,F,z,H,q,Y,U,G,V=document.createElement("style");return V.textContent="._unitSubjectTitle_1x5pg_1{font-size:.42667rem;font-weight:500;color:#333;line-height:.69333rem}._unitSubjectTitle_1x5pg_1 ._unitScore_1x5pg_7{color:#777}._unitSubjectTitle_1x5pg_1 .van-tag{vertical-align:middle;margin-top:-.08rem}._unitDetail_1x5pg_14{padding-top:.53333rem;padding-bottom:.26667rem;font-size:.37333rem}._unitDetail_1x5pg_14 img,._unitDetail_1x5pg_14 video{width:100%}._unitTitleImg_1x5pg_23{width:100%}._unitTitleRate_1x5pg_26{display:flex;align-items:center;justify-content:flex-end;padding-top:.4rem;padding-bottom:.4rem;font-size:.42667rem;font-weight:500;color:#333;line-height:.69333rem}._unitTitleRate_1x5pg_26 ._icon_1x5pg_37{font-size:.42667rem;margin-right:.16rem}._unitTitleRate_1x5pg_26 ._rate_1x5pg_41{color:#4991eb}._unitAudio_1g6zx_1{position:relative;display:flex}._nativeAudio_1g6zx_5{width:100%;height:1.06667rem}._htmlAudio_1g6zx_9{width:100%;height:1.06667rem;box-sizing:border-box;background:rgba(28,172,241,.11);border:.02667rem solid #1CACF1;border-radius:.53333rem;padding:0 .32rem;z-index:9;display:flex;align-items:center;justify-content:space-between;color:#1cacf1}._htmlAudio_1g6zx_9 ._htmlTimes_1g6zx_23{display:flex;align-items:center;color:#1cacf1;font-size:.42667rem;font-weight:500;line-height:.58667rem}._htmlAudio_1g6zx_9 ._iconAudio_1g6zx_31{margin-right:.16rem;font-size:.48rem}._htmlAudio_1g6zx_9 ._audioStatus_1g6zx_35{font-size:.37333rem}._answerAnalysis_1w1fm_1{margin:.32rem;background:#FFF6D7;border-radius:.26667rem;border:.18667rem solid #FFFAE5;padding:.4rem .34667rem}._answerAnalysis_1w1fm_1 ._analysisResult_1w1fm_8{display:flex;align-items:center;font-size:.42667rem;font-weight:600;color:#333;padding-bottom:.32rem}._answerAnalysis_1w1fm_1 ._analysisResult_1w1fm_8 ._aImg_1w1fm_16{font-size:.48rem;margin-right:.16rem}._answerAnalysis_1w1fm_1 ._success_1w1fm_20{color:#3b8df3}._answerAnalysis_1w1fm_1 ._error_1w1fm_23{color:#f44541}._answerAnalysis_1w1fm_1 ._analysisTitle_1w1fm_26{padding-bottom:.26667rem;color:#743e17}._answerAnalysis_1w1fm_1 ._analysisMessage_1w1fm_30{font-size:.34667rem;color:#333;line-height:.56rem;text-align:justify;padding-bottom:.13333rem}._unitSubject_94r0n_1{padding:.4rem;margin:0 .34667rem;background-color:#fff;overflow:hidden;border-radius:.26667rem}._unitSubject_94r0n_1+._unitSubject_94r0n_1{margin-top:.32rem}._unitAnswers_94r0n_11 ._unitAnswer_94r0n_11{margin-top:.4rem;background:#f6f6f6;border-radius:.21333rem;padding:.4rem .32rem;display:flex;align-items:center;justify-content:space-between;font-size:.42667rem;font-weight:500;color:#333}._unitAnswers_94r0n_11 ._unitAnswer_94r0n_11 ._option_94r0n_23{margin-right:.26667rem}._unitAnswers_94r0n_11 ._unitAnswer_94r0n_11 ._value_94r0n_26{word-break:break-all}._unitAnswers_94r0n_11 ._unitAnswer_94r0n_11 ._value_94r0n_26 .van-image{height:1.01333rem}._unitAnswers_94r0n_11 ._unitAnswer_94r0n_11 ._value_94r0n_26 .van-image__img{width:auto}._unitAnswers_94r0n_11 ._unitAnswer_94r0n_11 ._valueAudio_94r0n_35{width:4.26667rem}._unitAnswers_94r0n_11 ._active_94r0n_38{background:#ABE8FF;color:#0f77c4}._unitAnswers_94r0n_11 ._answerContent_94r0n_42{display:flex;align-items:center}._unitAnswers_94r0n_11 ._answerChoice_94r0n_46{font-size:.42667rem;font-weight:500;line-height:.69333rem}._anserList_nlm1h_1{min-height:20vh;padding:.53333rem 0}._anserList_nlm1h_1 ._status_nlm1h_5{display:flex;align-items:center;padding:0 .53333rem .8rem}._anserList_nlm1h_1 ._status_nlm1h_5 span{display:flex;align-items:center;font-size:.42667rem;font-weight:500;color:#333}._anserList_nlm1h_1 ._status_nlm1h_5 span+span{margin-left:.8rem}._anserList_nlm1h_1 ._status_nlm1h_5 i{display:inline-block;width:.48rem;height:.48rem;background-color:#eaeaea;border-radius:50%;margin-right:.21333rem}._anserList_nlm1h_1 ._aList_nlm1h_28{margin:0 .26667rem}._anserList_nlm1h_1 ._aList_nlm1h_28 .van-grid-item__content{padding:0 0 .34667rem}._anserList_nlm1h_1 ._aList_nlm1h_28 span{display:inline-flex;align-items:center;justify-content:center;width:1.2rem;height:1.2rem;background:#eaeaea;font-size:.48rem;font-weight:500;color:#777;border-radius:50%}._anserList_nlm1h_1 ._aList_nlm1h_28 ._answered_nlm1h_46{background:#1CACF1;color:#fff}._anserList_nlm1h_1 ._aList_nlm1h_28 ._yes_nlm1h_50{background-color:#71b0ff;color:#fff}._anserList_nlm1h_1 ._aList_nlm1h_28 ._no_nlm1h_54{background-color:#ff8486;color:#fff}._unitSubject_1igih_1{padding:.4rem;margin:0 .34667rem;background-color:#fff;border-radius:.26667rem}._unitSubject_1igih_1+._unitSubject_1igih_1{margin-top:.32rem}._unitAnswers_1igih_10 ._unitAnswer_1igih_10{margin-top:.4rem;background:#f6f6f6;border-radius:.21333rem;padding:.4rem .32rem;display:flex;align-items:center;justify-content:space-between;font-size:.42667rem;font-weight:500;color:#333}._unitAnswers_1igih_10 ._unitAnswer_1igih_10 ._option_1igih_22{margin-right:.26667rem}._unitAnswers_1igih_10 ._unitAnswer_1igih_10 ._value_1igih_25{word-break:break-all}._unitAnswers_1igih_10 ._unitAnswer_1igih_10 ._value_1igih_25 .van-image{height:1.01333rem}._unitAnswers_1igih_10 ._unitAnswer_1igih_10 ._value_1igih_25 .van-image__img{width:auto}._unitAnswers_1igih_10 ._unitAnswer_1igih_10 ._valueAudio_1igih_34{width:4.53333rem}._unitAnswers_1igih_10 ._active_1igih_37{background:#ABE8FF;color:#0f77c4}._unitAnswers_1igih_10 ._answerContent_1igih_41{display:flex;align-items:center}._unitAnswers_1igih_10 ._answerChoice_1igih_45{font-size:.42667rem;font-weight:500;line-height:.69333rem}._unitAnswers_1igih_10 .sortable-ghost{opacity:.5;background:#c8ebfb}._unitAnswers_1igih_10 ._sortReset_1igih_54{display:flex;align-items:center;justify-content:space-between;margin-top:.66667rem;padding-top:.8rem;padding-bottom:.8rem}._unitAnswers_1igih_10 ._sortReset_1igih_54 ._tips_1igih_62{font-size:.42667rem;font-weight:500;color:#333;line-height:.69333rem}._unitAnswers_1igih_10 ._sortReset_1igih_54 .van-button{min-width:2.24rem;height:.82667rem;line-height:.82667rem;font-size:.4rem;font-weight:500}._unitAnswers_1igih_10 ._itemsContainer_1igih_75{display:inline-block;margin-right:.26667rem;margin-bottom:.21333rem}._unitAnswers_1igih_10 ._items_1igih_75,._unitAnswers_1igih_10 ._imgs_1igih_81{min-width:1.49333rem;height:.96rem;font-size:.42667rem;font-weight:500;border-radius:.10667rem;background:#E3F6FF;color:#1cacf1;justify-content:center}._unitAnswers_1igih_10 ._imgs_1igih_81{height:1.49333rem;width:auto}._unitAnswers_1igih_10 ._imgs_1igih_81 .van-image__img{width:auto}._unitSubject_1w9f3_1{padding:.4rem;margin:0 .34667rem;background-color:#fff;border-radius:.26667rem}._unitSubject_1w9f3_1+._unitSubject_1w9f3_1{margin-top:.32rem}._unitAnswers_1w9f3_10{position:relative;padding-top:.53333rem;padding-bottom:.53333rem}._unitAnswers_1w9f3_10 ._answerItem_1w9f3_15{position:relative;z-index:2;margin-bottom:.4rem;display:flex;align-items:center;justify-content:space-between}._unitAnswers_1w9f3_10 ._answerItem_1w9f3_15:last-child{margin-bottom:0}._unitAnswers_1w9f3_10 ._img_1w9f3_26{width:2.53333rem}._unitAnswers_1w9f3_10 ._unitItem_1w9f3_29{display:flex;align-items:center;justify-content:center;background:#ffffff;border-radius:.16rem;border:.05333rem solid #d5d5d5;overflow:hidden;height:1.44rem;width:2.53333rem;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;text-align:center}._unitAnswers_1w9f3_10 ._active_1w9f3_45{border:.05333rem solid #1CACF1;color:#1cacf1}._canvasSection_1w9f3_49{position:absolute;top:0;left:0}._resetBtnGroup_1w9f3_54{text-align:right;padding-bottom:.42667rem}._resetBtnGroup_1w9f3_54 .van-button{min-width:2.24rem;line-height:.82667rem;height:.82667rem;font-size:.4rem;font-weight:500}._unitSubject_1j7w8_1{padding:.4rem;margin:0 .34667rem;background-color:#fff;border-radius:.26667rem}._unitSubject_1j7w8_1+._unitSubject_1j7w8_1{margin-top:.32rem}._unitAnswers_1j7w8_10{padding-top:.53333rem;padding-bottom:.53333rem}._playSection_1j7w8_14{padding:.4rem .32rem;background:#ffebdd;border-radius:.26667rem}._playSection_1j7w8_14 ._img_1j7w8_19{width:1.2rem;height:1.2rem;margin-right:.32rem}._playSection_1j7w8_14 ._playTitle_1j7w8_24{font-size:.42667rem;font-weight:500;color:#333}._playSection_1j7w8_14 ._playBtn_1j7w8_29{flex-shrink:0;font-size:.4rem;font-weight:500;color:#fff;height:.82667rem;line-height:.82667rem}._unitScoreNum_1j7w8_37{margin-top:.66667rem;padding-top:.53333rem;text-align:center}._unitScoreNum_1j7w8_37 ._score_1j7w8_42{font-size:.85333rem;font-weight:700;color:#0f77c4}._unitScoreNum_1j7w8_37 ._scoreTitle_1j7w8_47{font-size:.42667rem;font-weight:500;color:#333;padding:.10667rem 0 .26667rem}._unitScoreNum_1j7w8_37 ._scoreTips_1j7w8_53{font-size:.32rem;color:#aaa}._popupResult_1smys_1{padding:.53333rem .53333rem .66667rem;color:#333;font-size:.4rem}._popupResult_1smys_1 ._resultTitle_1smys_6{display:flex;align-items:center;justify-content:center;text-align:center;font-size:.48rem;font-weight:600;color:#333}._popupResult_1smys_1 ._resultTitle_1smys_6 ._titleImg_1smys_15{width:.48rem;height:.48rem;margin-right:.16rem}._popupResult_1smys_1 ._result_1smys_6{margin-top:.53333rem;padding:.32rem;background:#f6f6f6;border-radius:.10667rem;font-size:.42667rem;font-weight:500;color:#333}._popupResult_1smys_1 ._result_1smys_6 ._yes_1smys_29{color:#4593f4;margin-right:.53333rem}._popupResult_1smys_1 ._result_1smys_6 ._no_1smys_33{color:#f44541}._popupResult_1smys_1 ._resultContent_1smys_36{padding:.53333rem 0 .8rem;font-size:.4rem;color:#333;line-height:.61333rem}._popupResult_1smys_1 ._resultContent_1smys_36 span{font-weight:600}._finishResult_v13hc_1{color:#333;font-size:.4rem}._finishResult_v13hc_1 ._finishContainer_v13hc_5{position:relative;background:url("+new URL("exam-default-bg-3f0c8a58.png",r.meta.url).href+') no-repeat top center;background-size:contain;height:6.4rem;margin:0 1.12rem}._finishTitle_v13hc_12{padding-top:1.97333rem;padding-left:.69333rem;font-size:.48rem;font-family:AlimamaShuHeiTi-Bold,AlimamaShuHeiTi;font-weight:700;color:#0f75bb;line-height:.64rem}._finishTitle_v13hc_12 span{position:relative;z-index:1}._finishTitle_v13hc_12 span:after{content:" ";display:inline-block;position:absolute;left:0;bottom:0;width:100%;height:.24rem;background:linear-gradient(270deg,rgba(119,255,239,.59) 0%,#42CDFF 100%);opacity:.5;z-index:-1}._scoreResult_v13hc_37{display:flex;align-items:center;min-height:2.02667rem;padding:.4rem .85333rem 0;font-size:.37333rem;color:#333;line-height:.53333rem}._finishFail_v13hc_46 ._finishContainer_v13hc_5{background:url('+new URL("exam-fail-bg-a8a4480a.png",r.meta.url).href+") no-repeat top center;background-size:contain}._finishPass_v13hc_50 ._finishContainer_v13hc_5{background:url("+new URL("exam-pass-bg-4dd48f6b.png",r.meta.url).href+") no-repeat top center;background-size:contain}._finishGood_v13hc_54 ._finishContainer_v13hc_5{background:url("+new URL("exam-good-bg-4be21c05.png",r.meta.url).href+") no-repeat top center;background-size:contain}._finishCountdown_v13hc_58 ._finishContainer_v13hc_5{background:url("+new URL("exam-countdown-bg-998ad2a7.png",r.meta.url).href+") no-repeat top center;background-size:contain}._finishBtnGroup_v13hc_62{display:flex;align-items:center;justify-content:center;position:absolute;bottom:0;left:0;padding:0 .64rem .56rem;width:100%}._finishBtnGroup_v13hc_62 ._finishLeft_v13hc_72,._finishBtnGroup_v13hc_62 ._finishRight_v13hc_73{text-align:center;height:1.04rem;line-height:1.01333rem;min-width:2.96rem;width:2.96rem;font-size:.34667rem;font-family:STYuanti-SC-Bold,STYuanti-SC;font-weight:700}._finishBtnGroup_v13hc_62 ._finishLeft_v13hc_72{color:#587c98;text-shadow:0 .02667rem .02667rem rgba(255,255,255,.5);background:url(data:image/png;base64,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) no-repeat center center;background-size:contain;margin-right:.42667rem}._finishBtnGroup_v13hc_62 ._finishRight_v13hc_73{color:#fff;text-shadow:0 .02667rem .02667rem #218CD7;background:url("+new URL("exam-right-btn-b0cce6c0.png",r.meta.url).href+") no-repeat center center;background-size:contain}\n",document.head.appendChild(V),{setters:[function(e){i=e.c,a=e.a9,s=e.ah,l=e.t,u=e.ai,c=e.m,d=e.aj,f=e.d,p=e.a,h=e.h,_=e.ae,m=e.U,g=e.I,v=e.H,y=e.L,w=e.y,b=e.k,A=e.ak,x=e.q,S=e.ag,T=e.z,E=e.e,I=e.F,O=e.a1,C=e.al,D=e.am,k=e.w,P=e.x,M=e.A,L=e.r,R=e.Z,B=e.a4,j=e.an,N=e.R,F=e.ao,z=e.ap},function(e){H=e.I},function(e){q=e.G,Y=e.a},function(e){U=e.T},function(e){G=e.C}],execute:function(){var V=n(i("action-sheet"),2),X=V[0],Q=V[1],W=a({},s,{title:String,round:l,actions:u(),closeIcon:c("cross"),closeable:l,cancelText:String,description:String,closeOnPopstate:l,closeOnClickAction:Boolean,safeAreaInsetBottom:l}),Z=[].concat(t(d),["round","closeOnPopstate","safeAreaInsetBottom"]),K=f({name:X,props:W,emits:["select","cancel","update:show"],setup:function(e,t){var n=t.slots,o=t.emit,r=function(e){return o("update:show",e)},i=function(){r(!1),o("cancel")},a=function(){if(e.title)return p("div",{class:Q("header")},[e.title,e.closeable&&p(g,{name:e.closeIcon,class:[Q("close"),v],onClick:i},null)])},s=function(){if(n.cancel||e.cancelText)return[p("div",{class:Q("gap")},null),p("button",{type:"button",class:Q("cancel"),onClick:i},[n.cancel?n.cancel():e.cancelText])]},l=function(e,t){return e.loading?p(y,{class:Q("loading-icon")},null):n.action?n.action({action:e,index:t}):[p("span",{class:Q("name")},[e.name]),e.subname&&p("div",{class:Q("subname")},[e.subname])]},u=function(t,n){var i=t.color,a=t.loading,s=t.callback,u=t.disabled,c=t.className;return p("button",{type:"button",style:{color:i},class:[Q("item",{loading:a,disabled:u}),c],onClick:function(){u||a||(s&&s(t),e.closeOnClickAction&&r(!1),w((function(){return o("select",t,n)})))}},[l(t,n)])},c=function(){if(e.description||n.description){var t=n.description?n.description():e.description;return p("div",{class:Q("description")},[t])}};return function(){return p(m,h({class:Q(),position:"bottom","onUpdate:show":r},_(e,Z)),{default:function(){var t;return[a(),c(),p("div",{class:Q("content")},[e.actions.map(u),null==(t=n.default)?void 0:t.call(n)]),s()]}})}}}),J=(o("A",b(K)),o("i","data:image/png;base64,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"),{});!function(e){var t=Object.prototype.hasOwnProperty,n="~";function o(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,o,i,a){if("function"!=typeof o)throw new TypeError("The listener must be a function");var s=new r(o,i||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function s(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,o,r=[];if(0===this._eventsCount)return r;for(o in e=this._events)t.call(e,o)&&r.push(n?o.slice(1):o);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},s.prototype.listeners=function(e){var t=n?n+e:e,o=this._events[t];if(!o)return[];if(o.fn)return[o.fn];for(var r=0,i=o.length,a=new Array(i);r<i;r++)a[r]=o[r].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,o=this._events[t];return o?o.fn?1:o.length:0},s.prototype.emit=function(e,t,o,r,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,o),!0;case 4:return c.fn.call(c.context,t,o,r),!0;case 5:return c.fn.call(c.context,t,o,r,i),!0;case 6:return c.fn.call(c.context,t,o,r,i,a),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var f,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,o);break;case 4:c[u].fn.call(c[u].context,t,o,r);break;default:if(!l)for(f=1,l=new Array(d-1);f<d;f++)l[f-1]=arguments[f];c[u].fn.apply(c[u].context,l)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,o,r){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||r&&!s.once||o&&s.context!==o||a(this,i);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||r&&!s[l].once||o&&s[l].context!==o)&&u.push(s[l]);u.length?this._events[i]=1===u.length?u[0]:u:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new o,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}({get exports(){return J},set exports(e){J=e}});var $=o("e",new J),ee={1:"A",2:"B",3:"C",4:"D",5:"E",6:"F",7:"G",8:"H",9:"I",10:"J"},te=o("Q",{RADIO:"RADIO",CHECKBOX:"CHECKBOX",LINK:"LINK",SORT:"SORT",PLAY:"PLAY"}),ne="单选题",oe="多选题",re="连线题",ie="排序题",ae="演奏题",se="IMAGE",le="TXT",ue="AUDIO",ce={unitSubjectTitle:"_unitSubjectTitle_1x5pg_1",unitScore:"_unitScore_1x5pg_7",unitDetail:"_unitDetail_1x5pg_14",unitTitleImg:"_unitTitleImg_1x5pg_23",unitTitleRate:"_unitTitleRate_1x5pg_26",icon:"_icon_1x5pg_37",rate:"_rate_1x5pg_41"},de="_unitAudio_1g6zx_1",fe="_htmlAudio_1g6zx_9",pe="_htmlTimes_1g6zx_23",he="_iconAudio_1g6zx_31",_e="_audioStatus_1g6zx_35",me={};
- /*!
- * howler.js v2.2.3
- * howlerjs.com
- *
- * (c) 2013-2020, James Simpson of GoldFire Studios
- * goldfirestudios.com
- *
- * MIT License
- */
- !function(t){!function(){var e=function(){this.init()};e.prototype={init:function(){var e=this||n;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var t=this||n;if(e=parseFloat(e),t.ctx||c(),void 0!==e&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,n.ctx.currentTime);for(var o=0;o<t._howls.length;o++)if(!t._howls[o]._webAudio)for(var r=t._howls[o]._getSoundIds(),i=0;i<r.length;i++){var a=t._howls[o]._soundById(r[i]);a&&a._node&&(a._node.volume=a._volume*e)}return t}return t._volume},mute:function(e){var t=this||n;t.ctx||c(),t._muted=e,t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e?0:t._volume,n.ctx.currentTime);for(var o=0;o<t._howls.length;o++)if(!t._howls[o]._webAudio)for(var r=t._howls[o]._getSoundIds(),i=0;i<r.length;i++){var a=t._howls[o]._soundById(r[i]);a&&a._node&&(a._node.muted=!!e||a._muted)}return t},stop:function(){for(var e=this||n,t=0;t<e._howls.length;t++)e._howls[t].stop();return e},unload:function(){for(var e=this||n,t=e._howls.length-1;t>=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,c()),e},codecs:function(e){return(this||n)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||n;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0;try{(new Audio).muted&&(e.noAudio=!0)}catch(t){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||n,t=null;try{t="undefined"!=typeof Audio?new Audio:null}catch(c){return e}if(!t||"function"!=typeof t.canPlayType)return e;var o=t.canPlayType("audio/mpeg;").replace(/^no$/,""),r=e._navigator?e._navigator.userAgent:"",i=r.match(/OPR\/([0-6].)/g),a=i&&parseInt(i[0].split("/")[1],10)<33,s=-1!==r.indexOf("Safari")&&-1===r.indexOf("Chrome"),l=r.match(/Version\/(.*?) /),u=s&&l&&parseInt(l[1],10)<15;return e._codecs={mp3:!(a||!o&&!t.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!o,opus:!!t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(t.canPlayType('audio/wav; codecs="1"')||t.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!t.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!t.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(t.canPlayType("audio/x-m4b;")||t.canPlayType("audio/m4b;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(t.canPlayType("audio/x-mp4;")||t.canPlayType("audio/mp4;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(u||!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(u||!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!t.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(t.canPlayType("audio/x-flac;")||t.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||n;if(!e._audioUnlocked&&e.ctx){e._audioUnlocked=!1,e.autoUnlock=!1,e._mobileUnloaded||44100===e.ctx.sampleRate||(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var t=function t(n){for(;e._html5AudioPool.length<e.html5PoolSize;)try{var o=new Audio;o._unlocked=!0,e._releaseHtml5Audio(o)}catch(n){e.noAudio=!0;break}for(var r=0;r<e._howls.length;r++)if(!e._howls[r]._webAudio)for(var i=e._howls[r]._getSoundIds(),a=0;a<i.length;a++){var s=e._howls[r]._soundById(i[a]);s&&s._node&&!s._node._unlocked&&(s._node._unlocked=!0,s._node.load())}e._autoResume();var l=e.ctx.createBufferSource();l.buffer=e._scratchBuffer,l.connect(e.ctx.destination),void 0===l.start?l.noteOn(0):l.start(0),"function"==typeof e.ctx.resume&&e.ctx.resume(),l.onended=function(){l.disconnect(0),e._audioUnlocked=!0,document.removeEventListener("touchstart",t,!0),document.removeEventListener("touchend",t,!0),document.removeEventListener("click",t,!0),document.removeEventListener("keydown",t,!0);for(var n=0;n<e._howls.length;n++)e._howls[n]._emit("unlock")}};return document.addEventListener("touchstart",t,!0),document.addEventListener("touchend",t,!0),document.addEventListener("click",t,!0),document.addEventListener("keydown",t,!0),e}},_obtainHtml5Audio:function(){var e=this||n;if(e._html5AudioPool.length)return e._html5AudioPool.pop();var t=(new Audio).play();return t&&"undefined"!=typeof Promise&&(t instanceof Promise||"function"==typeof t.then)&&t.catch((function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")})),new Audio},_releaseHtml5Audio:function(e){var t=this||n;return e._unlocked&&t._html5AudioPool.push(e),t},_autoSuspend:function(){var e=this;if(e.autoSuspend&&e.ctx&&void 0!==e.ctx.suspend&&n.usingWebAudio){for(var t=0;t<e._howls.length;t++)if(e._howls[t]._webAudio)for(var o=0;o<e._howls[t]._sounds.length;o++)if(!e._howls[t]._sounds[o]._paused)return e;return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout((function(){if(e.autoSuspend){e._suspendTimer=null,e.state="suspending";var t=function(){e.state="suspended",e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())};e.ctx.suspend().then(t,t)}}),3e4),e}},_autoResume:function(){var e=this;if(e.ctx&&void 0!==e.ctx.resume&&n.usingWebAudio)return"running"===e.state&&"interrupted"!==e.ctx.state&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):"suspended"===e.state||"running"===e.state&&"interrupted"===e.ctx.state?(e.ctx.resume().then((function(){e.state="running";for(var t=0;t<e._howls.length;t++)e._howls[t]._emit("resume")})),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):"suspending"===e.state&&(e._resumeAfterSuspend=!0),e}};var n=new e,o=function(e){e.src&&0!==e.src.length?this.init(e):console.error("An array of source files must be passed with any new Howl.")};o.prototype={init:function(e){var t=this;return n.ctx||c(),t._autoplay=e.autoplay||!1,t._format="string"!=typeof e.format?e.format:[e.format],t._html5=e.html5||!1,t._muted=e.mute||!1,t._loop=e.loop||!1,t._pool=e.pool||5,t._preload="boolean"!=typeof e.preload&&"metadata"!==e.preload||e.preload,t._rate=e.rate||1,t._sprite=e.sprite||{},t._src="string"!=typeof e.src?e.src:[e.src],t._volume=void 0!==e.volume?e.volume:1,t._xhr={method:e.xhr&&e.xhr.method?e.xhr.method:"GET",headers:e.xhr&&e.xhr.headers?e.xhr.headers:null,withCredentials:!(!e.xhr||!e.xhr.withCredentials)&&e.xhr.withCredentials},t._duration=0,t._state="unloaded",t._sounds=[],t._endTimers={},t._queue=[],t._playLock=!1,t._onend=e.onend?[{fn:e.onend}]:[],t._onfade=e.onfade?[{fn:e.onfade}]:[],t._onload=e.onload?[{fn:e.onload}]:[],t._onloaderror=e.onloaderror?[{fn:e.onloaderror}]:[],t._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],t._onpause=e.onpause?[{fn:e.onpause}]:[],t._onplay=e.onplay?[{fn:e.onplay}]:[],t._onstop=e.onstop?[{fn:e.onstop}]:[],t._onmute=e.onmute?[{fn:e.onmute}]:[],t._onvolume=e.onvolume?[{fn:e.onvolume}]:[],t._onrate=e.onrate?[{fn:e.onrate}]:[],t._onseek=e.onseek?[{fn:e.onseek}]:[],t._onunlock=e.onunlock?[{fn:e.onunlock}]:[],t._onresume=[],t._webAudio=n.usingWebAudio&&!t._html5,void 0!==n.ctx&&n.ctx&&n.autoUnlock&&n._unlockAudio(),n._howls.push(t),t._autoplay&&t._queue.push({event:"play",action:function(){t.play()}}),t._preload&&"none"!==t._preload&&t.load(),t},load:function(){var e=this,t=null;if(n.noAudio)e._emit("loaderror",null,"No audio support.");else{"string"==typeof e._src&&(e._src=[e._src]);for(var o=0;o<e._src.length;o++){var i,s;if(e._format&&e._format[o])i=e._format[o];else{if("string"!=typeof(s=e._src[o])){e._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}(i=/^data:audio\/([^;,]+);/i.exec(s))||(i=/\.([^.]+)$/.exec(s.split("?",1)[0])),i&&(i=i[1].toLowerCase())}if(i||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),i&&n.codecs(i)){t=e._src[o];break}}if(t)return e._src=t,e._state="loading","https:"===window.location.protocol&&"http:"===t.slice(0,5)&&(e._html5=!0,e._webAudio=!1),new r(e),e._webAudio&&a(e),e;e._emit("loaderror",null,"No codec support for selected audio sources.")}},play:function(e,t){var o=this,r=null;if("number"==typeof e)r=e,e=null;else{if("string"==typeof e&&"loaded"===o._state&&!o._sprite[e])return null;if(void 0===e&&(e="__default",!o._playLock)){for(var i=0,a=0;a<o._sounds.length;a++)o._sounds[a]._paused&&!o._sounds[a]._ended&&(i++,r=o._sounds[a]._id);1===i?e=null:r=null}}var s=r?o._soundById(r):o._inactiveSound();if(!s)return null;if(r&&!e&&(e=s._sprite||"__default"),"loaded"!==o._state){s._sprite=e,s._ended=!1;var l=s._id;return o._queue.push({event:"play",action:function(){o.play(l)}}),l}if(r&&!s._paused)return t||o._loadQueue("play"),s._id;o._webAudio&&n._autoResume();var u=Math.max(0,s._seek>0?s._seek:o._sprite[e][0]/1e3),c=Math.max(0,(o._sprite[e][0]+o._sprite[e][1])/1e3-u),d=1e3*c/Math.abs(s._rate),f=o._sprite[e][0]/1e3,p=(o._sprite[e][0]+o._sprite[e][1])/1e3;s._sprite=e,s._ended=!1;var h=function(){s._paused=!1,s._seek=u,s._start=f,s._stop=p,s._loop=!(!s._loop&&!o._sprite[e][2])};if(!(u>=p)){var _=s._node;if(o._webAudio){var m=function(){o._playLock=!1,h(),o._refreshBuffer(s);var e=s._muted||o._muted?0:s._volume;_.gain.setValueAtTime(e,n.ctx.currentTime),s._playStart=n.ctx.currentTime,void 0===_.bufferSource.start?s._loop?_.bufferSource.noteGrainOn(0,u,86400):_.bufferSource.noteGrainOn(0,u,c):s._loop?_.bufferSource.start(0,u,86400):_.bufferSource.start(0,u,c),d!==1/0&&(o._endTimers[s._id]=setTimeout(o._ended.bind(o,s),d)),t||setTimeout((function(){o._emit("play",s._id),o._loadQueue()}),0)};"running"===n.state&&"interrupted"!==n.ctx.state?m():(o._playLock=!0,o.once("resume",m),o._clearTimer(s._id))}else{var g=function(){_.currentTime=u,_.muted=s._muted||o._muted||n._muted||_.muted,_.volume=s._volume*n.volume(),_.playbackRate=s._rate;try{var r=_.play();if(r&&"undefined"!=typeof Promise&&(r instanceof Promise||"function"==typeof r.then)?(o._playLock=!0,h(),r.then((function(){o._playLock=!1,_._unlocked=!0,t?o._loadQueue():o._emit("play",s._id)})).catch((function(){o._playLock=!1,o._emit("playerror",s._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."),s._ended=!0,s._paused=!0}))):t||(o._playLock=!1,h(),o._emit("play",s._id)),_.playbackRate=s._rate,_.paused)return void o._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==e||s._loop?o._endTimers[s._id]=setTimeout(o._ended.bind(o,s),d):(o._endTimers[s._id]=function(){o._ended(s),_.removeEventListener("ended",o._endTimers[s._id],!1)},_.addEventListener("ended",o._endTimers[s._id],!1))}catch(i){o._emit("playerror",s._id,i)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===_.src&&(_.src=o._src,_.load());var v=window&&window.ejecta||!_.readyState&&n._navigator.isCocoonJS;if(_.readyState>=3||v)g();else{o._playLock=!0,o._state="loading";_.addEventListener(n._canPlayEvent,(function e(){o._state="loaded",g(),_.removeEventListener(n._canPlayEvent,e,!1)}),!1),o._clearTimer(s._id)}}return s._id}o._ended(s)},pause:function(e){var t=this;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"pause",action:function(){t.pause(e)}}),t;for(var n=t._getSoundIds(e),o=0;o<n.length;o++){t._clearTimer(n[o]);var r=t._soundById(n[o]);if(r&&!r._paused&&(r._seek=t.seek(n[o]),r._rateSeek=0,r._paused=!0,t._stopFade(n[o]),r._node))if(t._webAudio){if(!r._node.bufferSource)continue;void 0===r._node.bufferSource.stop?r._node.bufferSource.noteOff(0):r._node.bufferSource.stop(0),t._cleanBuffer(r._node)}else isNaN(r._node.duration)&&r._node.duration!==1/0||r._node.pause();arguments[1]||t._emit("pause",r?r._id:null)}return t},stop:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"stop",action:function(){n.stop(e)}}),n;for(var o=n._getSoundIds(e),r=0;r<o.length;r++){n._clearTimer(o[r]);var i=n._soundById(o[r]);i&&(i._seek=i._start||0,i._rateSeek=0,i._paused=!0,i._ended=!0,n._stopFade(o[r]),i._node&&(n._webAudio?i._node.bufferSource&&(void 0===i._node.bufferSource.stop?i._node.bufferSource.noteOff(0):i._node.bufferSource.stop(0),n._cleanBuffer(i._node)):isNaN(i._node.duration)&&i._node.duration!==1/0||(i._node.currentTime=i._start||0,i._node.pause(),i._node.duration===1/0&&n._clearSound(i._node))),t||n._emit("stop",i._id))}return n},mute:function(e,t){var o=this;if("loaded"!==o._state||o._playLock)return o._queue.push({event:"mute",action:function(){o.mute(e,t)}}),o;if(void 0===t){if("boolean"!=typeof e)return o._muted;o._muted=e}for(var r=o._getSoundIds(t),i=0;i<r.length;i++){var a=o._soundById(r[i]);a&&(a._muted=e,a._interval&&o._stopFade(a._id),o._webAudio&&a._node?a._node.gain.setValueAtTime(e?0:a._volume,n.ctx.currentTime):a._node&&(a._node.muted=!!n._muted||e),o._emit("mute",a._id))}return o},volume:function(){var e,t,o,r=this,i=arguments;if(0===i.length)return r._volume;if(1===i.length||2===i.length&&void 0===i[1]?r._getSoundIds().indexOf(i[0])>=0?t=parseInt(i[0],10):e=parseFloat(i[0]):i.length>=2&&(e=parseFloat(i[0]),t=parseInt(i[1],10)),!(void 0!==e&&e>=0&&e<=1))return(o=t?r._soundById(t):r._sounds[0])?o._volume:0;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"volume",action:function(){r.volume.apply(r,i)}}),r;void 0===t&&(r._volume=e),t=r._getSoundIds(t);for(var a=0;a<t.length;a++)(o=r._soundById(t[a]))&&(o._volume=e,i[2]||r._stopFade(t[a]),r._webAudio&&o._node&&!o._muted?o._node.gain.setValueAtTime(e,n.ctx.currentTime):o._node&&!o._muted&&(o._node.volume=e*n.volume()),r._emit("volume",o._id));return r},fade:function(e,t,o,r){var i=this;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"fade",action:function(){i.fade(e,t,o,r)}}),i;e=Math.min(Math.max(0,parseFloat(e)),1),t=Math.min(Math.max(0,parseFloat(t)),1),o=parseFloat(o),i.volume(e,r);for(var a=i._getSoundIds(r),s=0;s<a.length;s++){var l=i._soundById(a[s]);if(l){if(r||i._stopFade(a[s]),i._webAudio&&!l._muted){var u=n.ctx.currentTime,c=u+o/1e3;l._volume=e,l._node.gain.setValueAtTime(e,u),l._node.gain.linearRampToValueAtTime(t,c)}i._startFadeInterval(l,e,t,o,a[s],void 0===r)}}return i},_startFadeInterval:function(e,t,n,o,r,i){var a=this,s=t,l=n-t,u=Math.abs(l/.01),c=Math.max(4,u>0?o/u:o),d=Date.now();e._fadeTo=n,e._interval=setInterval((function(){var r=(Date.now()-d)/o;d=Date.now(),s+=l*r,s=Math.round(100*s)/100,s=l<0?Math.max(n,s):Math.min(n,s),a._webAudio?e._volume=s:a.volume(s,e._id,!0),i&&(a._volume=s),(n<t&&s<=n||n>t&&s>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,a.volume(n,e._id),a._emit("fade",e._id))}),c)},_stopFade:function(e){var t=this,o=t._soundById(e);return o&&o._interval&&(t._webAudio&&o._node.gain.cancelScheduledValues(n.ctx.currentTime),clearInterval(o._interval),o._interval=null,t.volume(o._fadeTo,e),o._fadeTo=null,t._emit("fade",e)),t},loop:function(){var e,t,n,o=this,r=arguments;if(0===r.length)return o._loop;if(1===r.length){if("boolean"!=typeof r[0])return!!(n=o._soundById(parseInt(r[0],10)))&&n._loop;e=r[0],o._loop=e}else 2===r.length&&(e=r[0],t=parseInt(r[1],10));for(var i=o._getSoundIds(t),a=0;a<i.length;a++)(n=o._soundById(i[a]))&&(n._loop=e,o._webAudio&&n._node&&n._node.bufferSource&&(n._node.bufferSource.loop=e,e&&(n._node.bufferSource.loopStart=n._start||0,n._node.bufferSource.loopEnd=n._stop,o.playing(i[a])&&(o.pause(i[a],!0),o.play(i[a],!0)))));return o},rate:function(){var e,t,o,r=this,i=arguments;if(0===i.length)t=r._sounds[0]._id;else if(1===i.length){r._getSoundIds().indexOf(i[0])>=0?t=parseInt(i[0],10):e=parseFloat(i[0])}else 2===i.length&&(e=parseFloat(i[0]),t=parseInt(i[1],10));if("number"!=typeof e)return(o=r._soundById(t))?o._rate:r._rate;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"rate",action:function(){r.rate.apply(r,i)}}),r;void 0===t&&(r._rate=e),t=r._getSoundIds(t);for(var a=0;a<t.length;a++)if(o=r._soundById(t[a])){r.playing(t[a])&&(o._rateSeek=r.seek(t[a]),o._playStart=r._webAudio?n.ctx.currentTime:o._playStart),o._rate=e,r._webAudio&&o._node&&o._node.bufferSource?o._node.bufferSource.playbackRate.setValueAtTime(e,n.ctx.currentTime):o._node&&(o._node.playbackRate=e);var s=r.seek(t[a]),l=1e3*((r._sprite[o._sprite][0]+r._sprite[o._sprite][1])/1e3-s)/Math.abs(o._rate);!r._endTimers[t[a]]&&o._paused||(r._clearTimer(t[a]),r._endTimers[t[a]]=setTimeout(r._ended.bind(r,o),l)),r._emit("rate",o._id)}return r},seek:function(){var e,t,o=this,r=arguments;if(0===r.length)o._sounds.length&&(t=o._sounds[0]._id);else if(1===r.length){o._getSoundIds().indexOf(r[0])>=0?t=parseInt(r[0],10):o._sounds.length&&(t=o._sounds[0]._id,e=parseFloat(r[0]))}else 2===r.length&&(e=parseFloat(r[0]),t=parseInt(r[1],10));if(void 0===t)return 0;if("number"==typeof e&&("loaded"!==o._state||o._playLock))return o._queue.push({event:"seek",action:function(){o.seek.apply(o,r)}}),o;var i=o._soundById(t);if(i){if(!("number"==typeof e&&e>=0)){if(o._webAudio){var a=o.playing(t)?n.ctx.currentTime-i._playStart:0,s=i._rateSeek?i._rateSeek-i._seek:0;return i._seek+(s+a*Math.abs(i._rate))}return i._node.currentTime}var l=o.playing(t);l&&o.pause(t,!0),i._seek=e,i._ended=!1,o._clearTimer(t),o._webAudio||!i._node||isNaN(i._node.duration)||(i._node.currentTime=e);var u=function(){l&&o.play(t,!0),o._emit("seek",t)};if(l&&!o._webAudio){setTimeout((function e(){o._playLock?setTimeout(e,0):u()}),0)}else u()}return o},playing:function(e){var t=this;if("number"==typeof e){var n=t._soundById(e);return!!n&&!n._paused}for(var o=0;o<t._sounds.length;o++)if(!t._sounds[o]._paused)return!0;return!1},duration:function(e){var t=this,n=t._duration,o=t._soundById(e);return o&&(n=t._sprite[o._sprite][1]/1e3),n},state:function(){return this._state},unload:function(){for(var e=this,t=e._sounds,o=0;o<t.length;o++)t[o]._paused||e.stop(t[o]._id),e._webAudio||(e._clearSound(t[o]._node),t[o]._node.removeEventListener("error",t[o]._errorFn,!1),t[o]._node.removeEventListener(n._canPlayEvent,t[o]._loadFn,!1),t[o]._node.removeEventListener("ended",t[o]._endFn,!1),n._releaseHtml5Audio(t[o]._node)),delete t[o]._node,e._clearTimer(t[o]._id);var r=n._howls.indexOf(e);r>=0&&n._howls.splice(r,1);var a=!0;for(o=0;o<n._howls.length;o++)if(n._howls[o]._src===e._src||e._src.indexOf(n._howls[o]._src)>=0){a=!1;break}return i&&a&&delete i[e._src],n.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,t,n,o){var r=this["_on"+e];return"function"==typeof t&&r.push(o?{id:n,fn:t,once:o}:{id:n,fn:t}),this},off:function(e,t,n){var o=this,r=o["_on"+e],i=0;if("number"==typeof t&&(n=t,t=null),t||n)for(i=0;i<r.length;i++){var a=n===r[i].id;if(t===r[i].fn&&a||!t&&a){r.splice(i,1);break}}else if(e)o["_on"+e]=[];else{var s=Object.keys(o);for(i=0;i<s.length;i++)0===s[i].indexOf("_on")&&Array.isArray(o[s[i]])&&(o[s[i]]=[])}return o},once:function(e,t,n){return this.on(e,t,n,1),this},_emit:function(e,t,n){for(var o=this,r=o["_on"+e],i=r.length-1;i>=0;i--)r[i].id&&r[i].id!==t&&"load"!==e||(setTimeout(function(e){e.call(this,t,n)}.bind(o,r[i].fn),0),r[i].once&&o.off(e,r[i].fn,r[i].id));return o._loadQueue(e),o},_loadQueue:function(e){var t=this;if(t._queue.length>0){var n=t._queue[0];n.event===e&&(t._queue.shift(),t._loadQueue()),e||n.action()}return t},_ended:function(e){var t=this,o=e._sprite;if(!t._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop)return setTimeout(t._ended.bind(t,e),100),t;var r=!(!e._loop&&!t._sprite[o][2]);if(t._emit("end",e._id),!t._webAudio&&r&&t.stop(e._id,!0).play(e._id),t._webAudio&&r){t._emit("play",e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=n.ctx.currentTime;var i=1e3*(e._stop-e._start)/Math.abs(e._rate);t._endTimers[e._id]=setTimeout(t._ended.bind(t,e),i)}return t._webAudio&&!r&&(e._paused=!0,e._ended=!0,e._seek=e._start||0,e._rateSeek=0,t._clearTimer(e._id),t._cleanBuffer(e._node),n._autoSuspend()),t._webAudio||r||t.stop(e._id,!0),t},_clearTimer:function(e){var t=this;if(t._endTimers[e]){if("function"!=typeof t._endTimers[e])clearTimeout(t._endTimers[e]);else{var n=t._soundById(e);n&&n._node&&n._node.removeEventListener("ended",t._endTimers[e],!1)}delete t._endTimers[e]}return t},_soundById:function(e){for(var t=this,n=0;n<t._sounds.length;n++)if(e===t._sounds[n]._id)return t._sounds[n];return null},_inactiveSound:function(){var e=this;e._drain();for(var t=0;t<e._sounds.length;t++)if(e._sounds[t]._ended)return e._sounds[t].reset();return new r(e)},_drain:function(){var e=this,t=e._pool,n=0,o=0;if(!(e._sounds.length<t)){for(o=0;o<e._sounds.length;o++)e._sounds[o]._ended&&n++;for(o=e._sounds.length-1;o>=0;o--){if(n<=t)return;e._sounds[o]._ended&&(e._webAudio&&e._sounds[o]._node&&e._sounds[o]._node.disconnect(0),e._sounds.splice(o,1),n--)}}},_getSoundIds:function(e){if(void 0===e){for(var t=[],n=0;n<this._sounds.length;n++)t.push(this._sounds[n]._id);return t}return[e]},_refreshBuffer:function(e){return e._node.bufferSource=n.ctx.createBufferSource(),e._node.bufferSource.buffer=i[this._src],e._panner?e._node.bufferSource.connect(e._panner):e._node.bufferSource.connect(e._node),e._node.bufferSource.loop=e._loop,e._loop&&(e._node.bufferSource.loopStart=e._start||0,e._node.bufferSource.loopEnd=e._stop||0),e._node.bufferSource.playbackRate.setValueAtTime(e._rate,n.ctx.currentTime),this},_cleanBuffer:function(e){var t=n._navigator&&n._navigator.vendor.indexOf("Apple")>=0;if(n._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),t))try{e.bufferSource.buffer=n._scratchBuffer}catch(o){}return e.bufferSource=null,this},_clearSound:function(e){/MSIE |Trident\//.test(n._navigator&&n._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var r=function(e){this._parent=e,this.init()};r.prototype={init:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++n._counter,t._sounds.push(e),e.create(),e},create:function(){var e=this,t=e._parent,o=n._muted||e._muted||e._parent._muted?0:e._volume;return t._webAudio?(e._node=void 0===n.ctx.createGain?n.ctx.createGainNode():n.ctx.createGain(),e._node.gain.setValueAtTime(o,n.ctx.currentTime),e._node.paused=!0,e._node.connect(n.masterGain)):n.noAudio||(e._node=n._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(n._canPlayEvent,e._loadFn,!1),e._endFn=e._endListener.bind(e),e._node.addEventListener("ended",e._endFn,!1),e._node.src=t._src,e._node.preload=!0===t._preload?"auto":t._preload,e._node.volume=o*n.volume(),e._node.load()),e},reset:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++n._counter,e},_errorListener:function(){var e=this;e._parent._emit("loaderror",e._id,e._node.error?e._node.error.code:0),e._node.removeEventListener("error",e._errorFn,!1)},_loadListener:function(){var e=this,t=e._parent;t._duration=Math.ceil(10*e._node.duration)/10,0===Object.keys(t._sprite).length&&(t._sprite={__default:[0,1e3*t._duration]}),"loaded"!==t._state&&(t._state="loaded",t._emit("load"),t._loadQueue()),e._node.removeEventListener(n._canPlayEvent,e._loadFn,!1)},_endListener:function(){var e=this,t=e._parent;t._duration===1/0&&(t._duration=Math.ceil(10*e._node.duration)/10,t._sprite.__default[1]===1/0&&(t._sprite.__default[1]=1e3*t._duration),t._ended(e)),e._node.removeEventListener("ended",e._endFn,!1)}};var i={},a=function(e){var t=e._src;if(i[t])return e._duration=i[t].duration,void u(e);if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(",")[1]),o=new Uint8Array(n.length),r=0;r<n.length;++r)o[r]=n.charCodeAt(r);l(o.buffer,e)}else{var a=new XMLHttpRequest;a.open(e._xhr.method,t,!0),a.withCredentials=e._xhr.withCredentials,a.responseType="arraybuffer",e._xhr.headers&&Object.keys(e._xhr.headers).forEach((function(t){a.setRequestHeader(t,e._xhr.headers[t])})),a.onload=function(){var t=(a.status+"")[0];"0"===t||"2"===t||"3"===t?l(a.response,e):e._emit("loaderror",null,"Failed loading audio file with status: "+a.status+".")},a.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete i[t],e.load())},s(a)}},s=function(e){try{e.send()}catch(t){e.onerror()}},l=function(e,t){var o=function(){t._emit("loaderror",null,"Decoding audio data failed.")},r=function(e){e&&t._sounds.length>0?(i[t._src]=e,u(t,e)):o()};"undefined"!=typeof Promise&&1===n.ctx.decodeAudioData.length?n.ctx.decodeAudioData(e).then(r).catch(o):n.ctx.decodeAudioData(e,r,o)},u=function(e,t){t&&!e._duration&&(e._duration=t.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},c=function(){if(n.usingWebAudio){try{"undefined"!=typeof AudioContext?n.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?n.ctx=new webkitAudioContext:n.usingWebAudio=!1}catch(i){n.usingWebAudio=!1}n.ctx||(n.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(n._navigator&&n._navigator.platform),t=n._navigator&&n._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),o=t?parseInt(t[1],10):null;if(e&&o&&o<9){var r=/safari/.test(n._navigator&&n._navigator.userAgent.toLowerCase());n._navigator&&!r&&(n.usingWebAudio=!1)}n.usingWebAudio&&(n.masterGain=void 0===n.ctx.createGain?n.ctx.createGainNode():n.ctx.createGain(),n.masterGain.gain.setValueAtTime(n._muted?0:n._volume,n.ctx.currentTime),n.masterGain.connect(n.ctx.destination)),n._setup()}};t.Howler=n,t.Howl=o,void 0!==A?(A.HowlerGlobal=e,A.Howler=n,A.Howl=o,A.Sound=r):"undefined"!=typeof window&&(window.HowlerGlobal=e,window.Howler=n,window.Howl=o,window.Sound=r)}(),
- /*!
- * Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
- *
- * howler.js v2.2.3
- * howlerjs.com
- *
- * (c) 2013-2020, James Simpson of GoldFire Studios
- * goldfirestudios.com
- *
- * MIT License
- */
- function(){var t;HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){var t=this;if(!t.ctx||!t.ctx.listener)return t;for(var n=t._howls.length-1;n>=0;n--)t._howls[n].stereo(e);return t},HowlerGlobal.prototype.pos=function(e,t,n){var o=this;return o.ctx&&o.ctx.listener?(t="number"!=typeof t?o._pos[1]:t,n="number"!=typeof n?o._pos[2]:n,"number"!=typeof e?o._pos:(o._pos=[e,t,n],void 0!==o.ctx.listener.positionX?(o.ctx.listener.positionX.setTargetAtTime(o._pos[0],Howler.ctx.currentTime,.1),o.ctx.listener.positionY.setTargetAtTime(o._pos[1],Howler.ctx.currentTime,.1),o.ctx.listener.positionZ.setTargetAtTime(o._pos[2],Howler.ctx.currentTime,.1)):o.ctx.listener.setPosition(o._pos[0],o._pos[1],o._pos[2]),o)):o},HowlerGlobal.prototype.orientation=function(e,t,n,o,r,i){var a=this;if(!a.ctx||!a.ctx.listener)return a;var s=a._orientation;return t="number"!=typeof t?s[1]:t,n="number"!=typeof n?s[2]:n,o="number"!=typeof o?s[3]:o,r="number"!=typeof r?s[4]:r,i="number"!=typeof i?s[5]:i,"number"!=typeof e?s:(a._orientation=[e,t,n,o,r,i],void 0!==a.ctx.listener.forwardX?(a.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),a.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),a.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),a.ctx.listener.upX.setTargetAtTime(o,Howler.ctx.currentTime,.1),a.ctx.listener.upY.setTargetAtTime(r,Howler.ctx.currentTime,.1),a.ctx.listener.upZ.setTargetAtTime(i,Howler.ctx.currentTime,.1)):a.ctx.listener.setOrientation(e,t,n,o,r,i),a)},Howl.prototype.init=(t=Howl.prototype.init,function(e){var n=this;return n._orientation=e.orientation||[1,0,0],n._stereo=e.stereo||null,n._pos=e.pos||null,n._pannerAttr={coneInnerAngle:void 0!==e.coneInnerAngle?e.coneInnerAngle:360,coneOuterAngle:void 0!==e.coneOuterAngle?e.coneOuterAngle:360,coneOuterGain:void 0!==e.coneOuterGain?e.coneOuterGain:0,distanceModel:void 0!==e.distanceModel?e.distanceModel:"inverse",maxDistance:void 0!==e.maxDistance?e.maxDistance:1e4,panningModel:void 0!==e.panningModel?e.panningModel:"HRTF",refDistance:void 0!==e.refDistance?e.refDistance:1,rolloffFactor:void 0!==e.rolloffFactor?e.rolloffFactor:1},n._onstereo=e.onstereo?[{fn:e.onstereo}]:[],n._onpos=e.onpos?[{fn:e.onpos}]:[],n._onorientation=e.onorientation?[{fn:e.onorientation}]:[],t.call(this,e)}),Howl.prototype.stereo=function(e,t){var o=this;if(!o._webAudio)return o;if("loaded"!==o._state)return o._queue.push({event:"stereo",action:function(){o.stereo(e,t)}}),o;var r=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===t){if("number"!=typeof e)return o._stereo;o._stereo=e,o._pos=[e,0,0]}for(var i=o._getSoundIds(t),a=0;a<i.length;a++){var s=o._soundById(i[a]);if(s){if("number"!=typeof e)return s._stereo;s._stereo=e,s._pos=[e,0,0],s._node&&(s._pannerAttr.panningModel="equalpower",s._panner&&s._panner.pan||n(s,r),"spatial"===r?void 0!==s._panner.positionX?(s._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),s._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),s._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):s._panner.setPosition(e,0,0):s._panner.pan.setValueAtTime(e,Howler.ctx.currentTime)),o._emit("stereo",s._id)}}return o},Howl.prototype.pos=function(e,t,o,r){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"pos",action:function(){i.pos(e,t,o,r)}}),i;if(t="number"!=typeof t?0:t,o="number"!=typeof o?-.5:o,void 0===r){if("number"!=typeof e)return i._pos;i._pos=[e,t,o]}for(var a=i._getSoundIds(r),s=0;s<a.length;s++){var l=i._soundById(a[s]);if(l){if("number"!=typeof e)return l._pos;l._pos=[e,t,o],l._node&&(l._panner&&!l._panner.pan||n(l,"spatial"),void 0!==l._panner.positionX?(l._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),l._panner.positionY.setValueAtTime(t,Howler.ctx.currentTime),l._panner.positionZ.setValueAtTime(o,Howler.ctx.currentTime)):l._panner.setPosition(e,t,o)),i._emit("pos",l._id)}}return i},Howl.prototype.orientation=function(e,t,o,r){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"orientation",action:function(){i.orientation(e,t,o,r)}}),i;if(t="number"!=typeof t?i._orientation[1]:t,o="number"!=typeof o?i._orientation[2]:o,void 0===r){if("number"!=typeof e)return i._orientation;i._orientation=[e,t,o]}for(var a=i._getSoundIds(r),s=0;s<a.length;s++){var l=i._soundById(a[s]);if(l){if("number"!=typeof e)return l._orientation;l._orientation=[e,t,o],l._node&&(l._panner||(l._pos||(l._pos=i._pos||[0,0,-.5]),n(l,"spatial")),void 0!==l._panner.orientationX?(l._panner.orientationX.setValueAtTime(e,Howler.ctx.currentTime),l._panner.orientationY.setValueAtTime(t,Howler.ctx.currentTime),l._panner.orientationZ.setValueAtTime(o,Howler.ctx.currentTime)):l._panner.setOrientation(e,t,o)),i._emit("orientation",l._id)}}return i},Howl.prototype.pannerAttr=function(){var t,o,r,i=this,a=arguments;if(!i._webAudio)return i;if(0===a.length)return i._pannerAttr;if(1===a.length){if("object"!==e(a[0]))return(r=i._soundById(parseInt(a[0],10)))?r._pannerAttr:i._pannerAttr;t=a[0],void 0===o&&(t.pannerAttr||(t.pannerAttr={coneInnerAngle:t.coneInnerAngle,coneOuterAngle:t.coneOuterAngle,coneOuterGain:t.coneOuterGain,distanceModel:t.distanceModel,maxDistance:t.maxDistance,refDistance:t.refDistance,rolloffFactor:t.rolloffFactor,panningModel:t.panningModel}),i._pannerAttr={coneInnerAngle:void 0!==t.pannerAttr.coneInnerAngle?t.pannerAttr.coneInnerAngle:i._coneInnerAngle,coneOuterAngle:void 0!==t.pannerAttr.coneOuterAngle?t.pannerAttr.coneOuterAngle:i._coneOuterAngle,coneOuterGain:void 0!==t.pannerAttr.coneOuterGain?t.pannerAttr.coneOuterGain:i._coneOuterGain,distanceModel:void 0!==t.pannerAttr.distanceModel?t.pannerAttr.distanceModel:i._distanceModel,maxDistance:void 0!==t.pannerAttr.maxDistance?t.pannerAttr.maxDistance:i._maxDistance,refDistance:void 0!==t.pannerAttr.refDistance?t.pannerAttr.refDistance:i._refDistance,rolloffFactor:void 0!==t.pannerAttr.rolloffFactor?t.pannerAttr.rolloffFactor:i._rolloffFactor,panningModel:void 0!==t.pannerAttr.panningModel?t.pannerAttr.panningModel:i._panningModel})}else 2===a.length&&(t=a[0],o=parseInt(a[1],10));for(var s=i._getSoundIds(o),l=0;l<s.length;l++)if(r=i._soundById(s[l])){var u=r._pannerAttr;u={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:u.coneInnerAngle,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:u.coneOuterAngle,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:u.coneOuterGain,distanceModel:void 0!==t.distanceModel?t.distanceModel:u.distanceModel,maxDistance:void 0!==t.maxDistance?t.maxDistance:u.maxDistance,refDistance:void 0!==t.refDistance?t.refDistance:u.refDistance,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:u.rolloffFactor,panningModel:void 0!==t.panningModel?t.panningModel:u.panningModel};var c=r._panner;c?(c.coneInnerAngle=u.coneInnerAngle,c.coneOuterAngle=u.coneOuterAngle,c.coneOuterGain=u.coneOuterGain,c.distanceModel=u.distanceModel,c.maxDistance=u.maxDistance,c.refDistance=u.refDistance,c.rolloffFactor=u.rolloffFactor,c.panningModel=u.panningModel):(r._pos||(r._pos=i._pos||[0,0,-.5]),n(r,"spatial"))}return i},Sound.prototype.init=function(e){return function(){var t=this,n=t._parent;t._orientation=n._orientation,t._stereo=n._stereo,t._pos=n._pos,t._pannerAttr=n._pannerAttr,e.call(this),t._stereo?n.stereo(t._stereo):t._pos&&n.pos(t._pos[0],t._pos[1],t._pos[2],t._id)}}(Sound.prototype.init),Sound.prototype.reset=function(e){return function(){var t=this,n=t._parent;return t._orientation=n._orientation,t._stereo=n._stereo,t._pos=n._pos,t._pannerAttr=n._pannerAttr,t._stereo?n.stereo(t._stereo):t._pos?n.pos(t._pos[0],t._pos[1],t._pos[2],t._id):t._panner&&(t._panner.disconnect(0),t._panner=void 0,n._refreshBuffer(t)),e.call(this)}}(Sound.prototype.reset);var n=function(e,t){"spatial"===(t=t||"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,void 0!==e._panner.positionX?(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]),void 0!==e._panner.orientationX?(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)}}()}(me);var ge=f({name:"unit-audio",props:{src:{type:String,default:""}},setup:function(e){var t=x({audioStatus:"stopped",duration:0}),n=new me.Howl({src:e.src+"?t="+ +new Date,format:["mp3"]});return n.on("load",(function(e){console.log(n.duration()),t.duration=Math.ceil(n.duration())})),n.on("end",(function(e){t.audioStatus="stopped"})),$.on("unitAudioStop",(function(){n.stop(),t.audioStatus="stopped"})),S((function(){n.off("load")})),function(){return p("div",{class:de},[p("div",{class:fe,onClick:function(e){e.stopPropagation(),"stopped"===t.audioStatus?($.emit("unitAudioStop"),n.play(),t.audioStatus="paused"):"paused"===t.audioStatus&&(n.pause(),t.audioStatus="stopped")}},[p("div",{class:pe},[p(g,{class:he,name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABLNJREFUWEfNmF1oHFUUx///u2laJDsbsLbQnVhFiiKlRUkFpcEHsWq11Wa2kdYHWz8Q1IpS9UHRREWlVlGsCuJH64MVm5mUtlYtfVFpFTSILSIqiB+ZDdbWkp0ETDa798id7MTddDc7iW3JPOzDzr33/O45/3PuuUPMsIdT5ZnfMzivQWQlgKspshiCC6CYDNfRMgjiNyG/B/B5gfz4WHvyr6nYiA10fk+wvKjlUQA3EGiIY0SAAoBPEoov/NFuHYozpy7Qwr0DFxZH1TaI3Di2IPMCHCDloJC9BfCXcwtNA+bN3w1DzQ2QiyjSKsJrCVwHSOPYNO5PzNKbfl/d/OtkYJMCtbhD6zSKbxIwIRkA8Yoe4ev9660TcXa7YGcwV82W+yB4EECzAIMKiXv6Mk0f1JpfE8h2c0+C7IIIQXaPkvdPVQ+RUaO7WSKvQWQtSIFIl59JPV0NqipQCAM8FcqUfCLrWM/F8Ui9MWkveIwizwBQADqrQZ0CZMIk1O9DREhZ3+c0f1jNkO3mFpGJ1Vr0YkIWADzqZ6xH6kG1eAO3inAnSFLUbRPDVwFkBFzI84jRjJCPV/NMuie4klq2AGirNM6sn7HsekDmfclTzxpNNTTK0nKhVwDZXvBRmE1kt+9YHRWLiyjby20BuNnkDICTAuwD+ZlQZfUc+e7PlcnjcYDMGNsLdpU0td93rJuieeNALd0n24SJL0w2jSp1cYWADYybc0GuATkC8PmR4j8vHe+YNxQXYOK4UOha/2SyTym2RXVqHCjt5vYSWAWoTj+TrMgA2x3YCvBhCE5oxVv6HevwdEHK59lerhOCLuPpbCa1OixX5ic8DrTOEtA6z3R5nSlp5jDIvAauqYQRtnhBq4BLxxaTI32O1QtQ4gCHdaoRWYGoglJpE5UQKO0FGyiyXcB92YwVkkaP7eZMGNtA1eU7SVMKwsd2h5YIitsJXF4+XoBvicRGP9N0NA5U2g32ErJKyI1Zx9oRAW2nyAYQD/hOalsZzCIAPxsBj+iRhZFm7D1DS2S0eCis4GQ/RH8azqG6HiILTPYQieVxoGwvtwmCV4XckXWsjSGQ7ea+AdAqildl262vIqAWb2izSPHFaPDY/8K0G/SGnhHuHm5M3n7iZg6aN3P3SHJOfvA9UNYYT2UzVmu98JUk8SWAXj+TWjYG1J07DmLuqFLzy7Mr7QWh5yJ3mrEtXm6ZCL42nhluSF4SwUSbCKEKgz8aT5G4os9Jmc3WfErZdswkjL82dd4YkBcMQ2S2pa3ZP3QwXxayAwBWaJVY0d/edLA09i6IvAXIu36m+c5qlmx34B2Ad4C823estycDunSXNAYqGDHlxHesOXWAgq0A1hXO4WVR0bO94CwA1QhZtZ2dnZDVEHV1V58FUUfinZj2tWJ/xtN+ssJYE+pMFsb/jg5qnUfF0TF5tT1DR4cxOn64El2+kxo/IuKU/+mOqXm4hgVvsvZjuhbrF8Ta7Uep6NVu0E4zVN0GzdiL08KeDq7YLWwYuphN/nTBptTkl51hM+caVAE1Uy6KEdQpV2mol3Ve3pjSVbqR9wL6of99lY6gZtTHhnLhzpjPMROzacZ8sJpumk913r+lkkFS3TnE+gAAAABJRU5ErkJggg=="},null),p("span",null,[t.duration,T('"')])]),p(g,{name:"stopped"===t.audioStatus?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAZ5JREFUSEvN1rtOAlEQBuD5F9gE5WYDhagvYnwEja5uY+UTSKJETbT1knhJLKy0MlhhYWNlIbFRK30CibBEQgNIsRF2x4ABxcR1uZwNW0/Od2bPzDkDcviDwx4NFhi+yEdk2bsKsPvDIx/np70vvf4RywyjyXKKiKe+EOgAHeqGvlNQw5VuYUtwNFmqgcjVtjgjxy7e0GYD5wRwp/A/GZYsFsQDg2OaErzvBO0BbDD1DSXgca9lZoZzduBewaZRYZJ2Pe++g/QSdCu4X2Az3TSB45oSSv6F9hX8RnDLkhTT5nzPv2FBYONwDQk4rRrYelP9hSYsDPyRWZGIFrPzwetGN1sdcDRp1RZ2arIV85qdD044B4IyWSU47hRYNMELOSV0IxSsFw0IZzUTm+KLBpxig2OaOvIktC0YlCaS4priF974FYD2XOXAvuirjYmQINO9nlWHNDuN0n0fgh6ZaLnfz5NBRFLbzoEcQ9ADPHZZvmPmydaIwXSks3+7oELMiBG+qkTkqrlSvwKrsudE+BBlpwg6jRmsubTT3duJ/wQ5K7UdkvYC+QAAAABJRU5ErkJggg==":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAYCAYAAADzoH0MAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAEKADAAQAAAABAAAAGAAAAAAEJTozAAAAe0lEQVQ4EWNgoBAwyq//6Pn3H+MskDnMTP/THgbyb8dnJrp6FrDm//9lQJqgBsniMwBdPRMDVDNYEzIblynIaoBsJlzqiBUfNYCBYTQMRsMAlF9G0wEoDBgZn8ALD2Q2XBCNgawGyGYCFaRgQ4AcMBtNPTqXVPXo+jH4AI3tMh8eTmkRAAAAAElFTkSuQmCC",class:_e},null)])])}}}),ve=f({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:function(){return{}}},showRate:{type:Boolean,default:!1}},setup:function(e){var t=E((function(){return e.answerType===te.CHECKBOX?oe:e.answerType===te.LINK?re:e.answerType===te.SORT?ie:e.answerType===te.PLAY?ae:ne})),n=E((function(){return e.extra.mediaUrls?e.extra.mediaUrls.split(","):""}));return function(){return p(I,null,[p("div",{class:ce.unitSubjectTitle},[e.index,T("、"),e.name,T(" "),p("span",{class:ce.unitScore},[T("("),e.score||0,T("分)")]),p(U,{type:"primary",style:{lineHeight:"20px"}},{default:function(){return[t.value]}})]),e.showRate&&p("div",{class:ce.unitTitleRate},[p(g,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAmVJREFUWEftl81LVFEYxn9nNBtzZpyJhhlEgxaKIIJQSaLQEC1qE9TKTQSh9AFtrE1/QZvoi6KgbVIWRhQERZBjZW2UMgaZakKiZKjMtA9KHU8cz1zuOB/NHWPmQvhuLpz33PM8z3ve89x7BED3NdkgHZwQku0SPGqsWCFgRgoeiAWOX+4Ur8QiuOAZ4CsWaI51p4Rki+i6LvuR7CkxuIYT3BTdfXK62GXPJU5th+jqk9IW9UnQFQL/fwXcq2FXEwgBt17C99mlHVfUClQ74VgIgklrG3gDvSMlIuCrhKMhCLhNwHAMrgyXgMDaNVq532WCTUzDyQH49tsCAWe5nvRrvnCHWFellaunEe+/wqlwJviiGaYbUXMQDrWDcqfeYRgat05CKVbKVQWMeDcFp8OZzWfkMwgcbIONdTqtPPLqCDyM5ScRcGnlvhTw8S9wZhB+pHV+6moZBDo2wL7N5hRFon8U7kVzkwi6Nbi30pzzdhLODsLPub+Tz3oMdzbC7mZ9do24E4HbkczFajwa3OM0c7HPWrmVHsrpA9vqobNlKYn7UbjxwgSqrYaeECizMeL1Jzj3yBp41iZM1ai2Y+8mcKRUIpw0k1ov9GwFVwp49KMGn03k75mcTZj+aut62N8KZQ4z8/wD1PuhqsIcG4vD+SeFgeetgLF8Sw0caIPysuzKInG48BjmFqwrt1wBY2JTAA63Q0XSpIzx0Qm4OATzywC3XAEDrMEPRzrAuUqPqK249BQSywQvmIB6oc4LOxohPgN3xyDxjz90Rf0cW+mIFQL2V8D+i4ntVzO7L6fqqNh5Pf8DS9v7/ahSKSsAAAAASUVORK5CYII=",class:ce.icon},null),T("正确率:"),p("span",{class:ce.rate},[e.extra.rightRate||0,T("%")])]),e.extra.questionDetail||n.value?p("div",{class:ce.unitDetail},[p("div",{innerHTML:e.extra.questionDetail},null),n.value&&n.value.map((function(e){return e&&p(I,null,["mp3"===e.substr(-3)?p(ge,{src:e,class:ce.valueAudio},null):p(H,{class:[ce.unitTitleImg,"answerTitleImg"],src:e},null)])}))]):""])}}}),ye="_answerAnalysis_1w1fm_1",we="_analysisResult_1w1fm_8",be="_aImg_1w1fm_16",Ae="_success_1w1fm_20",xe="_error_1w1fm_23",Se="_analysisTitle_1w1fm_26",Te="_analysisMessage_1w1fm_30",Ee="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==",Ie=f({name:"answer-analysis",props:{topic:{type:Boolean,default:!0},userResult:{tyep:Boolean,default:!1},answerAnalysis:{type:String,default:""},rightFlagText:{type:String,default:"回答正确"},errorFlagText:{type:String,default:"回答错误"}},setup:function(e){return function(){return p("div",{class:ye},[e.topic?p(I,null,[e.userResult?p("div",{class:[we,Ae]},[p(g,{name:"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==",class:be},null),e.rightFlagText]):p("div",{class:[we,xe]},[p(g,{name:Ee,class:be},null),e.errorFlagText])]):"",e.answerAnalysis&&p(I,null,[p("div",{class:[we,Se]},[p(g,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAACJVBMVEUAAAD/zLO9sc7/nYfJrsKQv/6ys9fYqa//nYaNvv+2tNbXqbL/nIe4s9T/nIaNvv//nYeNwP/Uq7aOwP/PrL/9nYv+nYiNv/+Mvv+8sM6/sMvMrL3RqriOvv+Nvv/SqrbXqLLCsMj///+vtNvpo562stSMvv+eue3JrMD/nIaptuKxs9i4sdDNq7vjpaXqopycuu+guOmiuOi8sM3Ar8nPqrnUqbSlt+XHrcLepqnkpKOXu/SauvGnt+SttN2+r8vCrsfRqrfYqLDaqK7sopvzoJOqtuCrtd/LrL3cpqvgpqfno6DxoZX2n5D6nouTvPmkt+eQvfu0s9ezsta6sdDErsXuoZiOvv24sdLFrcPWqLLuopn0n5L4n4+VvPeVu/WZu/OutNzKrL7SqrbhpqblpKLwoZf9nYm7sM/5no36+/3+/Pz8+fn69PWytNnt0dTGrsTnpKH5+PuSvfrh4/L17fDb3u+guOvp4em+sMzWqbPvoZj2+Pzx8/v46+vAyOj04+PGt87nxMfJrcHOq7rjs7bdsLbirK7oq6j1oJL39vn29Pjj6Pfc5ffx7fKfvfHn4+316eutvefr3OLe0t+ttd7w2Nrr1tnKvdPlyMzSu8rjv8TgtrrPq7r08vbr7PamxPOov+3w5+zFzuvKzufg2OWzveK6wOGst+DPxtvz2trjz9jcy9i4s9PfyNLAsszGscfcu8TXtsLNsMHnvb3cqK38nouwO82lAAAAInRSTlMABVNTivPz89zZ2dnZpaWKilVVUVHz89zc3Nzc3KWlpaWKqIUxFAAAAs1JREFUOMtt1Pdb0lEUBvALrpyl2d4XB4JbRFwgzlQsUzGRzIVlIGIqKOEeaO6tqe29d39f546vQHmeh98+z3kPvPcBsYm8EBxwo+92c0teanxaenW+rFQtCQwJF4vQwRw/HRd3E0wuM1n5sjK1RF4T25B4RiyYo3HEXPc13bVgMpyKK4eahQW6h5hOjaJA70+zfEx1ltlc1kr31HU6wRik0YBOUdOcC4Rmmc38ngwNNW3nRCiS73m2HD8Ae2Sy/n5uvu5QkzQVhS4ys4yHn4PJL4UsMIl1GeNP8DfVZFtSpvYSCuZZi3gY9niMcx4PqqTEtIeigD4wLanxA4tDa7LSzVa5vJYYzXgvNY+1SmUQIiYPTDrZs/nWMWy2zK28JzerpFfBtD8oLELMpFGjdmA+S+M9LEsJphzRugZoXe+eMtE7D59d2MNNNsr1VNrP17xWbGBs/XlgKpDHjApZlg3DJ4y3wTRSY0LErI2OvlFLYJEwg9IXuEurdO/tubMrknMQqWII4yFJdy/2zO4XjL83dkEqmPuI1PXS4Xglr8Fe8/EHxo8KJ7a2JsDEIOH51MR6I/s6xhPkHmJSEBj+fOaw7+wT01EZk1KMoFI1q2vF13T9zjYl5xDjQqTSblrXji+y8SxjvQ6B4ZUqBr2NdcZEs4wuXQmipqGTPsMlr7Bpbu7oSqoQvYeaHtXkumBGmCmuJ6YJ0SxmoFI7lGKxYDxjyqHGpbtV1XQNBX72Mpl2+AmL3ICogSxiTqAQlmWgRmvH1rGxEYxnO2JSIKuEmD9hKJzdw4xyFdv2p38BAmNk5m5CBBI7NQo92TMFptGGV222D3jE2yT4IdHZAj3LaifPZ9sKX39slmfdI+aICCGx3jDZxg2rtJLco+OGLILxJ1n/m4fcHANC1L97jGwPN3yiz3Nj8uxpYvdAljCiqMuhQeVC7S5mToZF+LG/w7/6gUVUgZrEfwAAAABJRU5ErkJggg==",class:be},null),T("答案解析")]),p("div",{class:Te},[e.answerAnalysis])])])}}}),Oe="_unitSubject_94r0n_1",Ce="_unitAnswers_94r0n_11",De="_unitAnswer_94r0n_11",ke="_option_94r0n_23",Pe="_value_94r0n_26",Me="_valueAudio_94r0n_35",Le="_active_94r0n_38",Re="_answerContent_94r0n_42",Be="_answerChoice_94r0n_46",je=(o("C",f({name:"choice-question",props:{value:{type:Array,default:function(){return[]}},type:{type:String,default:"radio"},index:{type:Number,default:1},data:{type:Object,default:function(){return{}}},readOnly:{type:Boolean,default:!1},showRate:{tyep:Boolean,default:!1},showAnalysis:{type:Boolean,default:!1},analysis:{type:Object,default:function(){return{message:"",topic:!1,userResult:!0}}}},emits:["update:value"],setup:function(e,n){var o=n.emit,r=n.slots,i=E((function(){var t=e.data.answers||[],n=e.value||[];return t.forEach((function(e){var t=n.findIndex((function(t){return t.answerId===e.examinationQuestionAnswerId}));e.checked=-1!==t})),t}));return function(){return p(I,null,[p("div",{class:Oe},[r.title&&r.title(),p(ve,{index:e.index,name:e.data.name,showRate:e.showRate,score:e.data.totalScore,answerType:"radio"===e.type?te.RADIO:te.CHECKBOX,extra:{questionDetail:e.data.questionDetail,mediaUrls:e.data.mediaUrls,rightRate:e.data.rightRate}},null),p("div",{class:Ce},[i.value.map((function(n,r){return p("div",{class:[De,n.checked&&Le],onClick:function(){return function(n){if(!e.readOnly){var r=e.value||[],i={answerId:n.examinationQuestionAnswerId,answer:n.questionAnswer,answerExtra:n.questionExtra};if("checkbox"===e.type){var a=r.findIndex((function(e){return e.answerId===n.examinationQuestionAnswerId}));a>=0?(r.splice(a,1),o("update:value",t(r))):o("update:value",[].concat(t(r),[i]))}else o("update:value",[i])}}(n)}},[p("div",{class:Re},[p("span",{class:ke},[ee[r+1],T(".")]),n.questionAnswerTypeCode===se&&p("div",{class:Pe},[p(H,{src:n.questionAnswer,fit:"contain",class:"answerTitleImg"},null)]),n.questionAnswerTypeCode===le&&p("div",{class:Pe},[n.questionAnswer]),n.questionAnswerTypeCode===ue&&p("div",{class:Pe},[p(ge,{src:n.questionAnswer,class:Me},null)])]),e.showRate&&p("div",{class:Be},[n.selectRate||0,T("%人选择")])])}))])]),e.showAnalysis&&p(Ie,{answerAnalysis:e.analysis.message,topic:e.analysis.topic,userResult:e.analysis.userResult},null)])}}})),"_anserList_nlm1h_1"),Ne="_status_nlm1h_5",Fe="_aList_nlm1h_28",ze="_answered_nlm1h_46",He="_yes_nlm1h_50",qe="_no_nlm1h_54";o("a",f({name:"answer-list",props:{value:{type:Array,default:function(){return[]}},index:{type:Number,default:0},lookType:{type:String,default:"ANSWER"},statusList:{type:Array,default:function(){return[{text:"已答",color:"#1CACF1"},{text:"未答",color:"#EAEAEA"}]}},answerResult:{type:Array,default:function(){return[]}}},emits:["select"],setup:function(e,t){var n=t.emit,o=function(t){var n=!1;return e.answerResult.forEach((function(e){e.questionId===t&&(n=e.rightFlag)})),n};return function(){var t,r;return p("div",{class:je},[e.statusList.length>0&&p("div",{class:Ne},[e.statusList.map((function(e){return p("span",null,[p("i",{style:{backgroundColor:e.color}},null),e.text])}))]),p("div",{style:{maxHeight:"40vh",minHeight:"20vh",overflowX:"auto"}},[p(q,{class:Fe,columnNum:6,border:!1},(r=t=e.value.map((function(t,r){return p(Y,{onClick:function(){return n("select",r)}},{default:function(){return[p("span",{class:["ANSWER"===e.lookType&&t.userAnswer&&t.userAnswer.length>0&&ze,"RESULT"===e.lookType&&(o(t.id)?He:qe),"CLICK"===e.lookType&&r===e.index&&ze,"PRACTICE"===e.lookType&&t.showAnalysis?t.analysis.userResult?He:qe:""]},[r+1])]}})})),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!O(r)?t:{default:function(){return[t]}}))])])}}}));var Ye={},Ue={get exports(){return Ye},set exports(e){Ye=e}};
- /**!
- * Sortable 1.10.2
- * @author RubaXa <trash@rubaxa.org>
- * @author owenm <owen23355@gmail.com>
- * @license MIT
- */
- function Ge(t){return Ge="function"==typeof Symbol&&"symbol"===e(Symbol.iterator)?function(t){return e(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":e(t)},Ge(t)}function Ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xe(){return Xe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Xe.apply(this,arguments)}function Qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Ve(e,t,n[t])}))}return e}function We(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ze(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Ke(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var Je=Ke(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),$e=Ke(/Edge/i),et=Ke(/firefox/i),tt=Ke(/safari/i)&&!Ke(/chrome/i)&&!Ke(/android/i),nt=Ke(/iP(ad|od|hone)/i),ot=Ke(/chrome/i)&&Ke(/android/i),rt={capture:!1,passive:!1};function it(e,t,n){e.addEventListener(t,n,!Je&&rt)}function at(e,t,n){e.removeEventListener(t,n,!Je&&rt)}function st(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function lt(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ut(e,t,n,o){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&st(e,t):st(e,t))||o&&e===n)return e;if(e===n)break}while(e=lt(e))}return null}var ct,dt=/\s+/g;function ft(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(dt," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(dt," ")}}function pt(e,t,n){var o=e&&e.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in o||-1!==t.indexOf("webkit")||(t="-webkit-"+t),o[t]=n+("string"==typeof n?"":"px")}}function ht(e,t){var n="";if("string"==typeof e)n=e;else do{var o=pt(e,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function _t(e,t,n){if(e){var o=e.getElementsByTagName(t),r=0,i=o.length;if(n)for(;r<i;r++)n(o[r],r);return o}return[]}function mt(){var e=document.scrollingElement;return e||document.documentElement}function gt(e,t,n,o,r){if(e.getBoundingClientRect||e===window){var i,a,s,l,u,c,d;if(e!==window&&e!==mt()?(a=(i=e.getBoundingClientRect()).top,s=i.left,l=i.bottom,u=i.right,c=i.height,d=i.width):(a=0,s=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(r=r||e.parentNode,!Je))do{if(r&&r.getBoundingClientRect&&("none"!==pt(r,"transform")||n&&"static"!==pt(r,"position"))){var f=r.getBoundingClientRect();a-=f.top+parseInt(pt(r,"border-top-width")),s-=f.left+parseInt(pt(r,"border-left-width")),l=a+i.height,u=s+i.width;break}}while(r=r.parentNode);if(o&&e!==window){var p=ht(r||e),h=p&&p.a,_=p&&p.d;p&&(l=(a/=_)+(c/=_),u=(s/=h)+(d/=h))}return{top:a,left:s,bottom:l,right:u,width:d,height:c}}}function vt(e,t,n){for(var o=xt(e,!0),r=gt(e)[t];o;){var i=gt(o)[n];if(!("top"===n||"left"===n?r>=i:r<=i))return o;if(o===mt())break;o=xt(o,!1)}return!1}function yt(e,t,n){for(var o=0,r=0,i=e.children;r<i.length;){if("none"!==i[r].style.display&&i[r]!==Cn.ghost&&i[r]!==Cn.dragged&&ut(i[r],n.draggable,e,!1)){if(o===t)return i[r];o++}r++}return null}function wt(e,t){for(var n=e.lastElementChild;n&&(n===Cn.ghost||"none"===pt(n,"display")||t&&!st(n,t));)n=n.previousElementSibling;return n||null}function bt(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Cn.clone||t&&!st(e,t)||n++;return n}function At(e){var t=0,n=0,o=mt();if(e)do{var r=ht(e),i=r.a,a=r.d;t+=e.scrollLeft*i,n+=e.scrollTop*a}while(e!==o&&(e=e.parentNode));return[t,n]}function xt(e,t){if(!e||!e.getBoundingClientRect)return mt();var n=e,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=pt(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return mt();if(o||t)return n;o=!0}}}while(n=n.parentNode);return mt()}function St(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function Tt(e,t){return function(){if(!ct){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),ct=setTimeout((function(){ct=void 0}),t)}}}function Et(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function It(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Ot(e,t){pt(e,"position","absolute"),pt(e,"top",t.top),pt(e,"left",t.left),pt(e,"width",t.width),pt(e,"height",t.height)}function Ct(e){pt(e,"position",""),pt(e,"top",""),pt(e,"left",""),pt(e,"width",""),pt(e,"height","")}var Dt="Sortable"+(new Date).getTime();function kt(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==pt(e,"display")&&e!==Cn.ghost){t.push({target:e,rect:gt(e)});var n=Qe({},t[t.length-1].rect);if(e.thisAnimationDuration){var o=ht(e,!0);o&&(n.top-=o.f,n.left-=o.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[n][o])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var r=!1,i=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,s=gt(n),l=n.prevFromRect,u=n.prevToRect,c=e.rect,d=ht(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&St(l,s)&&!St(a,s)&&(c.top-s.top)/(c.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(t=function(e,t,n,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*o.animation}(c,l,u,o.options)),St(s,a)||(n.prevFromRect=a,n.prevToRect=s,t||(t=o.options.animation),o.animate(n,c,s,t)),t&&(r=!0,i=Math.max(i,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),r?e=setTimeout((function(){"function"==typeof n&&n()}),i):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,o){if(o){pt(e,"transition",""),pt(e,"transform","");var r=ht(this.el),i=r&&r.a,a=r&&r.d,s=(t.left-n.left)/(i||1),l=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!l,pt(e,"transform","translate3d("+s+"px,"+l+"px,0)"),function(e){e.offsetWidth}(e),pt(e,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),pt(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){pt(e,"transition",""),pt(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),o)}}}}var Pt=[],Mt={initializeByDefault:!0},Lt={mount:function(e){for(var t in Mt)Mt.hasOwnProperty(t)&&!(t in e)&&(e[t]=Mt[t]);Pt.push(e)},pluginEvent:function(e,t,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=e+"Global";Pt.forEach((function(o){t[o.pluginName]&&(t[o.pluginName][r]&&t[o.pluginName][r](Qe({sortable:t},n)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](Qe({sortable:t},n)))}))},initializePlugins:function(e,t,n,o){for(var r in Pt.forEach((function(o){var r=o.pluginName;if(e.options[r]||o.initializeByDefault){var i=new o(e,t,e.options);i.sortable=e,i.options=e.options,e[r]=i,Xe(n,i.defaults)}})),e.options)if(e.options.hasOwnProperty(r)){var i=this.modifyOption(e,r,e.options[r]);void 0!==i&&(e.options[r]=i)}},getEventProperties:function(e,t){var n={};return Pt.forEach((function(o){"function"==typeof o.eventProperties&&Xe(n,o.eventProperties.call(t[o.pluginName],e))})),n},modifyOption:function(e,t,n){var o;return Pt.forEach((function(r){e[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[t]&&(o=r.optionListeners[t].call(e[r.pluginName],n))})),o}};function Rt(e){var t=e.sortable,n=e.rootEl,o=e.name,r=e.targetEl,i=e.cloneEl,a=e.toEl,s=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,h=e.extraEventProperties;if(t=t||n&&n[Dt]){var _,m=t.options,g="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||Je||$e?(_=document.createEvent("Event")).initEvent(o,!0,!0):_=new CustomEvent(o,{bubbles:!0,cancelable:!0}),_.to=a||n,_.from=s||n,_.item=r||n,_.clone=i,_.oldIndex=l,_.newIndex=u,_.oldDraggableIndex=c,_.newDraggableIndex=d,_.originalEvent=f,_.pullMode=p?p.lastPutMode:void 0;var v=Qe({},h,Lt.getEventProperties(o,t));for(var y in v)_[y]=v[y];n&&n.dispatchEvent(_),m[g]&&m[g].call(t,_)}}var Bt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,r=We(n,["evt"]);Lt.pluginEvent.bind(Cn)(e,t,Qe({dragEl:Nt,parentEl:Ft,ghostEl:zt,rootEl:Ht,nextEl:qt,lastDownEl:Yt,cloneEl:Ut,cloneHidden:Gt,dragStarted:rn,putSortable:Kt,activeSortable:Cn.active,originalEvent:o,oldIndex:Vt,oldDraggableIndex:Qt,newIndex:Xt,newDraggableIndex:Wt,hideGhostForTarget:Tn,unhideGhostForTarget:En,cloneNowHidden:function(){Gt=!0},cloneNowShown:function(){Gt=!1},dispatchSortableEvent:function(e){jt({sortable:t,name:e,originalEvent:o})}},r))};function jt(e){Rt(Qe({putSortable:Kt,cloneEl:Ut,targetEl:Nt,rootEl:Ht,oldIndex:Vt,oldDraggableIndex:Qt,newIndex:Xt,newDraggableIndex:Wt},e))}var Nt,Ft,zt,Ht,qt,Yt,Ut,Gt,Vt,Xt,Qt,Wt,Zt,Kt,Jt,$t,en,tn,nn,on,rn,an,sn,ln,un,cn=!1,dn=!1,fn=[],pn=!1,hn=!1,_n=[],mn=!1,gn=[],vn="undefined"!=typeof document,yn=nt,wn=$e||Je?"cssFloat":"float",bn=vn&&!ot&&!nt&&"draggable"in document.createElement("div"),An=function(){if(vn){if(Je)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),xn=function(e,t){var n=pt(e),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=yt(e,0,t),i=yt(e,1,t),a=r&&pt(r),s=i&&pt(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+gt(r).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+gt(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&"none"!==a.float){var c="left"===a.float?"left":"right";return!i||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=o&&"none"===n[wn]||i&&"none"===n[wn]&&l+u>o)?"vertical":"horizontal"},Sn=function(e){function t(e,n){return function(o,r,i,a){var s=o.options.group.name&&r.options.group.name&&o.options.group.name===r.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(o,r,i,a),n)(o,r,i,a);var l=(n?o:r).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},o=e.group;o&&"object"==Ge(o)||(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n},Tn=function(){!An&&zt&&pt(zt,"display","none")},En=function(){!An&&zt&&pt(zt,"display","")};vn&&document.addEventListener("click",(function(e){if(dn)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),dn=!1,!1}),!0);var In=function(e){if(Nt){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,i=e.clientY,fn.some((function(e){if(!wt(e)){var t=gt(e),n=e[Dt].options.emptyInsertThreshold,o=r>=t.left-n&&r<=t.right+n,s=i>=t.top-n&&i<=t.bottom+n;return n&&o&&s?a=e:void 0}})),a);if(t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Dt]._onDragOver(n)}}var r,i,a},On=function(e){Nt&&Nt.parentNode[Dt]._isOutsideThisEl(e.target)};function Cn(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Xe({},t),e[Dt]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return xn(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Cn.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var o in Lt.initializePlugins(this,e,n),n)!(o in t)&&(t[o]=n[o]);for(var r in Sn(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&bn,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?it(e,"pointerdown",this._onTapStart):(it(e,"mousedown",this._onTapStart),it(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(it(e,"dragover",this),it(e,"dragenter",this)),fn.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Xe(this,kt())}function Dn(e,t,n,o,r,i,a,s){var l,u,c=e[Dt],d=c.options.onMove;return!window.CustomEvent||Je||$e?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=o,l.related=r||t,l.relatedRect=i||gt(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),d&&(u=d.call(c,l,a)),u}function kn(e){e.draggable=!1}function Pn(){mn=!1}function Mn(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function Ln(e){return setTimeout(e,0)}function Rn(e){return clearTimeout(e)}Cn.prototype={constructor:Cn,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(an=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Nt):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,o=this.options,r=o.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=o.filter;if(function(e){gn.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var o=t[n];o.checked&&gn.push(o)}}(n),!Nt&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||o.disabled||l.isContentEditable||(s=ut(s,o.draggable,n,!1))&&s.animated||Yt===s)){if(Vt=bt(s),Qt=bt(s,o.draggable),"function"==typeof u){if(u.call(this,e,s,this))return jt({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),Bt("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(o){if(o=ut(l,o.trim(),n,!1))return jt({sortable:t,rootEl:o,name:"filter",targetEl:s,fromEl:n,toEl:n}),Bt("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());o.handle&&!ut(l,o.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var o,r=this,i=r.el,a=r.options,s=i.ownerDocument;if(n&&!Nt&&n.parentNode===i){var l=gt(n);if(Ht=i,Ft=(Nt=n).parentNode,qt=Nt.nextSibling,Yt=n,Zt=a.group,Cn.dragged=Nt,Jt={target:Nt,clientX:(t||e).clientX,clientY:(t||e).clientY},nn=Jt.clientX-l.left,on=Jt.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Nt.style["will-change"]="all",o=function(){Bt("delayEnded",r,{evt:e}),Cn.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!et&&r.nativeDraggable&&(Nt.draggable=!0),r._triggerDragStart(e,t),jt({sortable:r,name:"choose",originalEvent:e}),ft(Nt,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){_t(Nt,e.trim(),kn)})),it(s,"dragover",In),it(s,"mousemove",In),it(s,"touchmove",In),it(s,"mouseup",r._onDrop),it(s,"touchend",r._onDrop),it(s,"touchcancel",r._onDrop),et&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Nt.draggable=!0),Bt("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&($e||Je))o();else{if(Cn.eventCanceled)return void this._onDrop();it(s,"mouseup",r._disableDelayedDrag),it(s,"touchend",r._disableDelayedDrag),it(s,"touchcancel",r._disableDelayedDrag),it(s,"mousemove",r._delayedDragTouchMoveHandler),it(s,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&it(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(o,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Nt&&kn(Nt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;at(e,"mouseup",this._disableDelayedDrag),at(e,"touchend",this._disableDelayedDrag),at(e,"touchcancel",this._disableDelayedDrag),at(e,"mousemove",this._delayedDragTouchMoveHandler),at(e,"touchmove",this._delayedDragTouchMoveHandler),at(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?it(document,"pointermove",this._onTouchMove):it(document,t?"touchmove":"mousemove",this._onTouchMove):(it(Nt,"dragend",this),it(Ht,"dragstart",this._onDragStart));try{document.selection?Ln((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(cn=!1,Ht&&Nt){Bt("dragStarted",this,{evt:t}),this.nativeDraggable&&it(document,"dragover",On);var n=this.options;!e&&ft(Nt,n.dragClass,!1),ft(Nt,n.ghostClass,!0),Cn.active=this,e&&this._appendGhost(),jt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if($t){this._lastX=$t.clientX,this._lastY=$t.clientY,Tn();for(var e=document.elementFromPoint($t.clientX,$t.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint($t.clientX,$t.clientY))!==t;)t=e;if(Nt.parentNode[Dt]._isOutsideThisEl(e),t)do{if(t[Dt]){if(t[Dt]._onDragOver({clientX:$t.clientX,clientY:$t.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);En()}},_onTouchMove:function(e){if(Jt){var t=this.options,n=t.fallbackTolerance,o=t.fallbackOffset,r=e.touches?e.touches[0]:e,i=zt&&ht(zt,!0),a=zt&&i&&i.a,s=zt&&i&&i.d,l=yn&&un&&At(un),u=(r.clientX-Jt.clientX+o.x)/(a||1)+(l?l[0]-_n[0]:0)/(a||1),c=(r.clientY-Jt.clientY+o.y)/(s||1)+(l?l[1]-_n[1]:0)/(s||1);if(!Cn.active&&!cn){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(zt){i?(i.e+=u-(en||0),i.f+=c-(tn||0)):i={a:1,b:0,c:0,d:1,e:u,f:c};var d="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");pt(zt,"webkitTransform",d),pt(zt,"mozTransform",d),pt(zt,"msTransform",d),pt(zt,"transform",d),en=u,tn=c,$t=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!zt){var e=this.options.fallbackOnBody?document.body:Ht,t=gt(Nt,!0,yn,!0,e),n=this.options;if(yn){for(un=e;"static"===pt(un,"position")&&"none"===pt(un,"transform")&&un!==document;)un=un.parentNode;un!==document.body&&un!==document.documentElement?(un===document&&(un=mt()),t.top+=un.scrollTop,t.left+=un.scrollLeft):un=mt(),_n=At(un)}ft(zt=Nt.cloneNode(!0),n.ghostClass,!1),ft(zt,n.fallbackClass,!0),ft(zt,n.dragClass,!0),pt(zt,"transition",""),pt(zt,"transform",""),pt(zt,"box-sizing","border-box"),pt(zt,"margin",0),pt(zt,"top",t.top),pt(zt,"left",t.left),pt(zt,"width",t.width),pt(zt,"height",t.height),pt(zt,"opacity","0.8"),pt(zt,"position",yn?"absolute":"fixed"),pt(zt,"zIndex","100000"),pt(zt,"pointerEvents","none"),Cn.ghost=zt,e.appendChild(zt),pt(zt,"transform-origin",nn/parseInt(zt.style.width)*100+"% "+on/parseInt(zt.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,o=e.dataTransfer,r=n.options;Bt("dragStart",this,{evt:e}),Cn.eventCanceled?this._onDrop():(Bt("setupClone",this),Cn.eventCanceled||((Ut=It(Nt)).draggable=!1,Ut.style["will-change"]="",this._hideClone(),ft(Ut,this.options.chosenClass,!1),Cn.clone=Ut),n.cloneId=Ln((function(){Bt("clone",n),Cn.eventCanceled||(n.options.removeCloneOnHide||Ht.insertBefore(Ut,Nt),n._hideClone(),jt({sortable:n,name:"clone"}))})),!t&&ft(Nt,r.dragClass,!0),t?(dn=!0,n._loopId=setInterval(n._emulateDragOver,50)):(at(document,"mouseup",n._onDrop),at(document,"touchend",n._onDrop),at(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,Nt)),it(document,"drop",n),pt(Nt,"transform","translateZ(0)")),cn=!0,n._dragStartId=Ln(n._dragStarted.bind(n,t,e)),it(document,"selectstart",n),rn=!0,tt&&pt(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,o,r,i=this.el,a=e.target,s=this.options,l=s.group,u=Cn.active,c=Zt===l,d=s.sort,f=Kt||u,p=this,h=!1;if(!mn){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=ut(a,s.draggable,i,!0),O("dragOver"),Cn.eventCanceled)return h;if(Nt.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return D(!1);if(dn=!1,u&&!s.disabled&&(c?d||(o=!Ht.contains(Nt)):Kt===this||(this.lastPutMode=Zt.checkPull(this,u,Nt,e))&&l.checkPut(this,u,Nt,e))){if(r="vertical"===this._getDirection(e,a),t=gt(Nt),O("dragOverValid"),Cn.eventCanceled)return h;if(o)return Ft=Ht,C(),this._hideClone(),O("revert"),Cn.eventCanceled||(qt?Ht.insertBefore(Nt,qt):Ht.appendChild(Nt)),D(!0);var _=wt(i,s.draggable);if(!_||function(e,t,n){var o=gt(wt(n.el,n.options.draggable)),r=10;return t?e.clientX>o.right+r||e.clientX<=o.right&&e.clientY>o.bottom&&e.clientX>=o.left:e.clientX>o.right&&e.clientY>o.top||e.clientX<=o.right&&e.clientY>o.bottom+r}(e,r,this)&&!_.animated){if(_===Nt)return D(!1);if(_&&i===e.target&&(a=_),a&&(n=gt(a)),!1!==Dn(Ht,i,Nt,t,a,n,e,!!a))return C(),i.appendChild(Nt),Ft=i,k(),D(!0)}else if(a.parentNode===i){n=gt(a);var m,g,v,y=Nt.parentNode!==i,w=!function(e,t,n){var o=n?e.left:e.top,r=n?e.right:e.bottom,i=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return o===a||r===s||o+i/2===a+l/2}(Nt.animated&&Nt.toRect||t,a.animated&&a.toRect||n,r),b=r?"top":"left",A=vt(a,"top","top")||vt(Nt,"top","top"),x=A?A.scrollTop:void 0;if(an!==a&&(g=n[b],pn=!1,hn=!w&&s.invertSwap||y),m=function(e,t,n,o,r,i,a,s){var l=o?e.clientY:e.clientX,u=o?n.height:n.width,c=o?n.top:n.left,d=o?n.bottom:n.right,f=!1;if(!a)if(s&&ln<u*r){if(!pn&&(1===sn?l>c+u*i/2:l<d-u*i/2)&&(pn=!0),pn)f=!0;else if(1===sn?l<c+ln:l>d-ln)return-sn}else if(l>c+u*(1-r)/2&&l<d-u*(1-r)/2)return function(e){return bt(Nt)<bt(e)?1:-1}(t);if((f=f||a)&&(l<c+u*i/2||l>d-u*i/2))return l>c+u/2?1:-1;return 0}(e,a,n,r,w?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,hn,an===a),0!==m){var S=bt(Nt);do{S-=m,v=Ft.children[S]}while(v&&("none"===pt(v,"display")||v===zt))}if(0===m||v===a)return D(!1);an=a,sn=m;var T=a.nextElementSibling,E=!1,I=Dn(Ht,i,Nt,t,a,n,e,E=1===m);if(!1!==I)return 1!==I&&-1!==I||(E=1===I),mn=!0,setTimeout(Pn,30),C(),E&&!T?i.appendChild(Nt):a.parentNode.insertBefore(Nt,E?T:a),A&&Et(A,0,x-A.scrollTop),Ft=Nt.parentNode,void 0===g||hn||(ln=Math.abs(g-gt(a)[b])),k(),D(!0)}if(i.contains(Nt))return D(!1)}return!1}function O(s,l){Bt(s,p,Qe({evt:e,isOwner:c,axis:r?"vertical":"horizontal",revert:o,dragRect:t,targetRect:n,canSort:d,fromSortable:f,target:a,completed:D,onMove:function(n,o){return Dn(Ht,i,Nt,t,n,gt(n),e,o)},changed:k},l))}function C(){O("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function D(t){return O("dragOverCompleted",{insertion:t}),t&&(c?u._hideClone():u._showClone(p),p!==f&&(ft(Nt,Kt?Kt.options.ghostClass:u.options.ghostClass,!1),ft(Nt,s.ghostClass,!0)),Kt!==p&&p!==Cn.active?Kt=p:p===Cn.active&&Kt&&(Kt=null),f===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){O("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===Nt&&!Nt.animated||a===i&&!a.animated)&&(an=null),s.dragoverBubble||e.rootEl||a===document||(Nt.parentNode[Dt]._isOutsideThisEl(e.target),!t&&In(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function k(){Xt=bt(Nt),Wt=bt(Nt,s.draggable),jt({sortable:p,name:"change",toEl:i,newIndex:Xt,newDraggableIndex:Wt,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){at(document,"mousemove",this._onTouchMove),at(document,"touchmove",this._onTouchMove),at(document,"pointermove",this._onTouchMove),at(document,"dragover",In),at(document,"mousemove",In),at(document,"touchmove",In)},_offUpEvents:function(){var e=this.el.ownerDocument;at(e,"mouseup",this._onDrop),at(e,"touchend",this._onDrop),at(e,"pointerup",this._onDrop),at(e,"touchcancel",this._onDrop),at(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;Xt=bt(Nt),Wt=bt(Nt,n.draggable),Bt("drop",this,{evt:e}),Ft=Nt&&Nt.parentNode,Xt=bt(Nt),Wt=bt(Nt,n.draggable),Cn.eventCanceled||(cn=!1,hn=!1,pn=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Rn(this.cloneId),Rn(this._dragStartId),this.nativeDraggable&&(at(document,"drop",this),at(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),tt&&pt(document.body,"user-select",""),pt(Nt,"transform",""),e&&(rn&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),zt&&zt.parentNode&&zt.parentNode.removeChild(zt),(Ht===Ft||Kt&&"clone"!==Kt.lastPutMode)&&Ut&&Ut.parentNode&&Ut.parentNode.removeChild(Ut),Nt&&(this.nativeDraggable&&at(Nt,"dragend",this),kn(Nt),Nt.style["will-change"]="",rn&&!cn&&ft(Nt,Kt?Kt.options.ghostClass:this.options.ghostClass,!1),ft(Nt,this.options.chosenClass,!1),jt({sortable:this,name:"unchoose",toEl:Ft,newIndex:null,newDraggableIndex:null,originalEvent:e}),Ht!==Ft?(Xt>=0&&(jt({rootEl:Ft,name:"add",toEl:Ft,fromEl:Ht,originalEvent:e}),jt({sortable:this,name:"remove",toEl:Ft,originalEvent:e}),jt({rootEl:Ft,name:"sort",toEl:Ft,fromEl:Ht,originalEvent:e}),jt({sortable:this,name:"sort",toEl:Ft,originalEvent:e})),Kt&&Kt.save()):Xt!==Vt&&Xt>=0&&(jt({sortable:this,name:"update",toEl:Ft,originalEvent:e}),jt({sortable:this,name:"sort",toEl:Ft,originalEvent:e})),Cn.active&&(null!=Xt&&-1!==Xt||(Xt=Vt,Wt=Qt),jt({sortable:this,name:"end",toEl:Ft,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Bt("nulling",this),Ht=Nt=Ft=zt=qt=Ut=Yt=Gt=Jt=$t=rn=Xt=Wt=Vt=Qt=an=sn=Kt=Zt=Cn.dragged=Cn.ghost=Cn.clone=Cn.active=null,gn.forEach((function(e){e.checked=!0})),gn.length=en=tn=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Nt&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,o=0,r=n.length,i=this.options;o<r;o++)ut(e=n[o],i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||Mn(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,o){var r=n.children[o];ut(r,this.options.draggable,n,!1)&&(t[e]=r)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return ut(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var o=Lt.modifyOption(this,e,t);n[e]=void 0!==o?o:t,"group"===e&&Sn(n)},destroy:function(){Bt("destroy",this);var e=this.el;e[Dt]=null,at(e,"mousedown",this._onTapStart),at(e,"touchstart",this._onTapStart),at(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(at(e,"dragover",this),at(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),fn.splice(fn.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Gt){if(Bt("hideClone",this),Cn.eventCanceled)return;pt(Ut,"display","none"),this.options.removeCloneOnHide&&Ut.parentNode&&Ut.parentNode.removeChild(Ut),Gt=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(Gt){if(Bt("showClone",this),Cn.eventCanceled)return;Ht.contains(Nt)&&!this.options.group.revertClone?Ht.insertBefore(Ut,Nt):qt?Ht.insertBefore(Ut,qt):Ht.appendChild(Ut),this.options.group.revertClone&&this.animate(Nt,Ut),pt(Ut,"display",""),Gt=!1}}else this._hideClone()}},vn&&it(document,"touchmove",(function(e){(Cn.active||cn)&&e.cancelable&&e.preventDefault()})),Cn.utils={on:it,off:at,css:pt,find:_t,is:function(e,t){return!!ut(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:Tt,closest:ut,toggleClass:ft,clone:It,index:bt,nextTick:Ln,cancelNextTick:Rn,detectDirection:xn,getChild:yt},Cn.get=function(e){return e[Dt]},Cn.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Cn.utils=Qe({},Cn.utils,e.utils)),Lt.mount(e)}))},Cn.create=function(e,t){return new Cn(e,t)},Cn.version="1.10.2";var Bn,jn,Nn,Fn,zn,Hn,qn=[],Yn=!1;function Un(){qn.forEach((function(e){clearInterval(e.pid)})),qn=[]}function Gn(){clearInterval(Hn)}var Vn,Xn=Tt((function(e,t,n,o){if(t.scroll){var r,i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,u=mt(),c=!1;jn!==n&&(jn=n,Un(),Bn=t.scroll,r=t.scrollFn,!0===Bn&&(Bn=xt(n,!0)));var d=0,f=Bn;do{var p=f,h=gt(p),_=h.top,m=h.bottom,g=h.left,v=h.right,y=h.width,w=h.height,b=void 0,A=void 0,x=p.scrollWidth,S=p.scrollHeight,T=pt(p),E=p.scrollLeft,I=p.scrollTop;p===u?(b=y<x&&("auto"===T.overflowX||"scroll"===T.overflowX||"visible"===T.overflowX),A=w<S&&("auto"===T.overflowY||"scroll"===T.overflowY||"visible"===T.overflowY)):(b=y<x&&("auto"===T.overflowX||"scroll"===T.overflowX),A=w<S&&("auto"===T.overflowY||"scroll"===T.overflowY));var O=b&&(Math.abs(v-i)<=s&&E+y<x)-(Math.abs(g-i)<=s&&!!E),C=A&&(Math.abs(m-a)<=s&&I+w<S)-(Math.abs(_-a)<=s&&!!I);if(!qn[d])for(var D=0;D<=d;D++)qn[D]||(qn[D]={});qn[d].vx==O&&qn[d].vy==C&&qn[d].el===p||(qn[d].el=p,qn[d].vx=O,qn[d].vy=C,clearInterval(qn[d].pid),0==O&&0==C||(c=!0,qn[d].pid=setInterval(function(){o&&0===this.layer&&Cn.active._onTouchMove(zn);var t=qn[this.layer].vy?qn[this.layer].vy*l:0,n=qn[this.layer].vx?qn[this.layer].vx*l:0;"function"==typeof r&&"continue"!==r.call(Cn.dragged.parentNode[Dt],n,t,e,zn,qn[this.layer].el)||Et(qn[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==u&&(f=xt(f,!1)));Yn=c}}),30),Qn=function(e){var t=e.originalEvent,n=e.putSortable,o=e.dragEl,r=e.activeSortable,i=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||r;a();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(u.clientX,u.clientY);s(),l&&!l.el.contains(c)&&(i("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function Wn(){}function Zn(){}Wn.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=yt(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(t,o):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Qn},Xe(Wn,{pluginName:"revertOnSpill"}),Zn.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:Qn},Xe(Zn,{pluginName:"removeOnSpill"});var Kn,Jn,$n,eo,to,no=[],oo=[],ro=!1,io=!1,ao=!1;function so(e,t){oo.forEach((function(n,o){var r=t.children[n.sortableIndex+(e?Number(o):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}function lo(){no.forEach((function(e){e!==$n&&e.parentNode&&e.parentNode.removeChild(e)}))}Cn.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?it(document,"dragover",this._handleAutoScroll):this.options.supportPointer?it(document,"pointermove",this._handleFallbackAutoScroll):t.touches?it(document,"touchmove",this._handleFallbackAutoScroll):it(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?at(document,"dragover",this._handleAutoScroll):(at(document,"pointermove",this._handleFallbackAutoScroll),at(document,"touchmove",this._handleFallbackAutoScroll),at(document,"mousemove",this._handleFallbackAutoScroll)),Gn(),Un(),clearTimeout(ct),ct=void 0},nulling:function(){zn=jn=Bn=Yn=Hn=Nn=Fn=null,qn.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,o=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(o,r);if(zn=e,t||$e||Je||tt){Xn(e,this.options,i,t);var a=xt(i,!0);!Yn||Hn&&o===Nn&&r===Fn||(Hn&&Gn(),Hn=setInterval((function(){var i=xt(document.elementFromPoint(o,r),!0);i!==a&&(a=i,Un()),Xn(e,n.options,i,t)}),10),Nn=o,Fn=r)}else{if(!this.options.bubbleScroll||xt(i,!0)===mt())return void Un();Xn(e,this.options,xt(i,!1),!1)}}},Xe(e,{pluginName:"scroll",initializeByDefault:!0})}),Cn.mount(Zn,Wn);var uo=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:function(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?it(document,"pointerup",this._deselectMultiDrag):(it(document,"mouseup",this._deselectMultiDrag),it(document,"touchend",this._deselectMultiDrag)),it(document,"keydown",this._checkKeyDown),it(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var o="";no.length&&Jn===e?no.forEach((function(e,t){o+=(t?", ":"")+e.textContent})):o=n.textContent,t.setData("Text",o)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;$n=t},delayEnded:function(){this.isMultiDrag=~no.indexOf($n)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var o=0;o<no.length;o++)oo.push(It(no[o])),oo[o].sortableIndex=no[o].sortableIndex,oo[o].draggable=!1,oo[o].style["will-change"]="",ft(oo[o],this.options.selectedClass,!1),no[o]===$n&&ft(oo[o],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,o=e.dispatchSortableEvent,r=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||no.length&&Jn===t&&(so(!0,n),o("clone"),r()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,o=e.cancel;this.isMultiDrag&&(so(!1,n),oo.forEach((function(e){pt(e,"display","")})),t(),to=!1,o())},hideClone:function(e){var t=this;e.sortable;var n=e.cloneNowHidden,o=e.cancel;this.isMultiDrag&&(oo.forEach((function(e){pt(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),to=!0,o())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&Jn&&Jn.multiDrag._deselectMultiDrag(),no.forEach((function(e){e.sortableIndex=bt(e)})),no=no.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),ao=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){no.forEach((function(e){e!==$n&&pt(e,"position","absolute")}));var o=gt($n,!1,!0,!0);no.forEach((function(e){e!==$n&&Ot(e,o)})),io=!0,ro=!0}n.animateAll((function(){io=!1,ro=!1,t.options.animation&&no.forEach((function(e){Ct(e)})),t.options.sort&&lo()}))}},dragOver:function(e){var t=e.target,n=e.completed,o=e.cancel;io&&~no.indexOf(t)&&(n(!1),o())},revert:function(e){var t=e.fromSortable,n=e.rootEl,o=e.sortable,r=e.dragRect;no.length>1&&(no.forEach((function(e){o.addAnimationState({target:e,rect:io?gt(e):r}),Ct(e),e.fromRect=r,t.removeAnimationState(e)})),io=!1,function(e,t){no.forEach((function(n,o){var r=t.children[n.sortableIndex+(e?Number(o):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,o=e.insertion,r=e.activeSortable,i=e.parentEl,a=e.putSortable,s=this.options;if(o){if(n&&r._hideClone(),ro=!1,s.animation&&no.length>1&&(io||!n&&!r.options.sort&&!a)){var l=gt($n,!1,!0,!0);no.forEach((function(e){e!==$n&&(Ot(e,l),i.appendChild(e))})),io=!0}if(!n)if(io||lo(),no.length>1){var u=to;r._showClone(t),r.options.animation&&!to&&u&&oo.forEach((function(e){r.addAnimationState({target:e,rect:eo}),e.fromRect=eo,e.thisAnimationDuration=null}))}else r._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,o=e.activeSortable;if(no.forEach((function(e){e.thisAnimationDuration=null})),o.options.animation&&!n&&o.multiDrag.isMultiDrag){eo=Xe({},t);var r=ht($n,!0);eo.top-=r.f,eo.left-=r.e}},dragOverAnimationComplete:function(){io&&(io=!1,lo())},drop:function(e){var t=e.originalEvent,n=e.rootEl,o=e.parentEl,r=e.sortable,i=e.dispatchSortableEvent,a=e.oldIndex,s=e.putSortable,l=s||this.sortable;if(t){var u=this.options,c=o.children;if(!ao)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),ft($n,u.selectedClass,!~no.indexOf($n)),~no.indexOf($n))no.splice(no.indexOf($n),1),Kn=null,Rt({sortable:r,rootEl:n,name:"deselect",targetEl:$n,originalEvt:t});else{if(no.push($n),Rt({sortable:r,rootEl:n,name:"select",targetEl:$n,originalEvt:t}),t.shiftKey&&Kn&&r.el.contains(Kn)){var d,f,p=bt(Kn),h=bt($n);if(~p&&~h&&p!==h)for(h>p?(f=p,d=h):(f=h,d=p+1);f<d;f++)~no.indexOf(c[f])||(ft(c[f],u.selectedClass,!0),no.push(c[f]),Rt({sortable:r,rootEl:n,name:"select",targetEl:c[f],originalEvt:t}))}else Kn=$n;Jn=l}if(ao&&this.isMultiDrag){if((o[Dt].options.sort||o!==n)&&no.length>1){var _=gt($n),m=bt($n,":not(."+this.options.selectedClass+")");if(!ro&&u.animation&&($n.thisAnimationDuration=null),l.captureAnimationState(),!ro&&(u.animation&&($n.fromRect=_,no.forEach((function(e){if(e.thisAnimationDuration=null,e!==$n){var t=io?gt(e):_;e.fromRect=t,l.addAnimationState({target:e,rect:t})}}))),lo(),no.forEach((function(e){c[m]?o.insertBefore(e,c[m]):o.appendChild(e),m++})),a===bt($n))){var g=!1;no.forEach((function(e){e.sortableIndex===bt(e)||(g=!0)})),g&&i("update")}no.forEach((function(e){Ct(e)})),l.animateAll()}Jn=l}(n===o||s&&"clone"!==s.lastPutMode)&&oo.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=ao=!1,oo.length=0},destroyGlobal:function(){this._deselectMultiDrag(),at(document,"pointerup",this._deselectMultiDrag),at(document,"mouseup",this._deselectMultiDrag),at(document,"touchend",this._deselectMultiDrag),at(document,"keydown",this._checkKeyDown),at(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==ao&&ao||Jn!==this.sortable||e&&ut(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;no.length;){var t=no[0];ft(t,this.options.selectedClass,!1),no.shift(),Rt({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Xe(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[Dt];t&&t.options.multiDrag&&!~no.indexOf(e)&&(Jn&&Jn!==t&&(Jn.multiDrag._deselectMultiDrag(),Jn=t),ft(e,t.options.selectedClass,!0),no.push(e))},deselect:function(e){var t=e.parentNode[Dt],n=no.indexOf(e);t&&t.options.multiDrag&&~n&&(ft(e,t.options.selectedClass,!1),no.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return no.forEach((function(o){var r;t.push({multiDragElement:o,index:o.sortableIndex}),r=io&&o!==$n?-1:io?bt(o,":not(."+e.options.selectedClass+")"):bt(o),n.push({multiDragElement:o,index:r})})),{items:Ze(no),clones:[].concat(oo),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})},Sortable:Cn,Swap:function(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;Vn=t},dragOverValid:function(e){var t=e.completed,n=e.target,o=e.onMove,r=e.activeSortable,i=e.changed,a=e.cancel;if(r.options.swap){var s=this.sortable.el,l=this.options;if(n&&n!==s){var u=Vn;!1!==o(n)?(ft(n,l.swapClass,!0),Vn=n):Vn=null,u&&u!==Vn&&ft(u,l.swapClass,!1)}i(),t(!0),a()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,o=e.dragEl,r=n||this.sortable,i=this.options;Vn&&ft(Vn,i.swapClass,!1),Vn&&(i.swap||n&&n.options.swap)&&o!==Vn&&(r.captureAnimationState(),r!==t&&t.captureAnimationState(),function(e,t){var n,o,r=e.parentNode,i=t.parentNode;if(!r||!i||r.isEqualNode(t)||i.isEqualNode(e))return;n=bt(e),o=bt(t),r.isEqualNode(i)&&n<o&&o++;r.insertBefore(t,r.children[n]),i.insertBefore(e,i.children[o])}(o,Vn),r.animateAll(),r!==t&&t.animateAll())},nulling:function(){Vn=null}},Xe(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Vn}}})},default:Cn},Symbol.toStringTag,{value:"Module"})),co=C(uo);!function(t,n){var o;"undefined"!=typeof self&&self,o=function(t){return function(t){var n={};function o(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=t,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,n){if(1&n&&(t=o(t)),8&n)return t;if(4&n&&"object"===e(t)&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)o.d(r,i,function(e){return t[e]}.bind(null,i));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s="fb15")}({"01f9":function(e,t,n){var o=n("2d00"),r=n("5ca1"),i=n("2aba"),a=n("32e9"),s=n("84f2"),l=n("41a0"),u=n("7f20"),c=n("38fd"),d=n("2b4c")("iterator"),f=!([].keys&&"next"in[].keys()),p="keys",h="values",_=function(){return this};e.exports=function(e,t,n,m,g,v,y){l(n,t,m);var w,b,A,x=function(e){if(!f&&e in I)return I[e];switch(e){case p:case h:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",T=g==h,E=!1,I=e.prototype,O=I[d]||I["@@iterator"]||g&&I[g],C=O||x(g),D=g?T?x("entries"):C:void 0,k="Array"==t&&I.entries||O;if(k&&(A=c(k.call(new e)))!==Object.prototype&&A.next&&(u(A,S,!0),o||"function"==typeof A[d]||a(A,d,_)),T&&O&&O.name!==h&&(E=!0,C=function(){return O.call(this)}),o&&!y||!f&&!E&&I[d]||a(I,d,C),s[t]=C,s[S]=_,g)if(w={values:T?C:x(h),keys:v?C:x(p),entries:D},y)for(b in w)b in I||i(I,b,w[b]);else r(r.P+r.F*(f||E),t,w);return w}},"02f4":function(e,t,n){var o=n("4588"),r=n("be13");e.exports=function(e){return function(t,n){var i,a,s=String(r(t)),l=o(n),u=s.length;return l<0||l>=u?e?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):i:e?s.slice(l,l+2):a-56320+(i-55296<<10)+65536}}},"0390":function(e,t,n){var o=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},"0bfb":function(e,t,n){var o=n("cb7c");e.exports=function(){var e=o(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var o=n("ce10"),r=n("e11e");e.exports=Object.keys||function(e){return o(e,r)}},1495:function(e,t,n){var o=n("86cc"),r=n("cb7c"),i=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),s=a.length,l=0;s>l;)o.f(e,n=a[l++],t[n]);return e}},"214f":function(e,t,n){n("b0c5");var o=n("2aba"),r=n("32e9"),i=n("79e5"),a=n("be13"),s=n("2b4c"),l=n("520a"),u=s("species"),c=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var f=s(e),p=!i((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),h=p?!i((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[u]=function(){return n}),n[f](""),!t})):void 0;if(!p||!h||"replace"===e&&!c||"split"===e&&!d){var _=/./[f],m=n(a,f,""[e],(function(e,t,n,o,r){return t.exec===l?p&&!r?{done:!0,value:_.call(t,n,o)}:{done:!0,value:e.call(n,t,o)}:{done:!1}})),g=m[0],v=m[1];o(String.prototype,e,g),r(RegExp.prototype,f,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}}},"230e":function(e,t,n){var o=n("d3f4"),r=n("7726").document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},"23c6":function(e,t,n){var o=n("2d95"),r=n("2b4c")("toStringTag"),i="Arguments"==o(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),r))?n:i?o(t):"Object"==(a=o(t))&&"function"==typeof t.callee?"Arguments":a}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var o=n("7726"),r=n("32e9"),i=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),l="toString",u=(""+s).split(l);n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(i(n,"name")||r(n,"name",t)),e[t]!==n&&(l&&(i(n,a)||r(n,a,e[t]?""+e[t]:u.join(String(t)))),e===o?e[t]=n:s?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2aeb":function(e,t,n){var o=n("cb7c"),r=n("1495"),i=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},l="prototype",u=function(){var e,t=n("230e")("iframe"),o=i.length;for(t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;o--;)delete u[l][i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=o(e),n=new s,s[l]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},"2b4c":function(e,t,n){var o=n("5537")("wks"),r=n("ca5a"),i=n("7726").Symbol,a="function"==typeof i,s=e.exports=function(e){return o[e]||(o[e]=a&&i[e]||(a?i:r)("Symbol."+e))};s.store=o},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){var o=n("5ca1"),r=n("d2c8"),i="includes";o(o.P+o.F*n("5147")(i),"String",{includes:function(e){return!!~r(this,e,i).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(e,t,n){var o=n("86cc"),r=n("4630");e.exports=n("9e1e")?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var o=n("69a8"),r=n("4bf8"),i=n("613b")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"41a0":function(e,t,n){var o=n("2aeb"),r=n("4630"),i=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},"456d":function(e,t,n){var o=n("4bf8"),r=n("0d58");n("5eda")("keys",(function(){return function(e){return r(o(e))}}))},4588:function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4bf8":function(e,t,n){var o=n("be13");e.exports=function(e){return Object(o(e))}},5147:function(e,t,n){var o=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,!"/./"[e](t)}catch(r){}}return!0}},"520a":function(e,t,n){var o,r,i=n("0bfb"),a=RegExp.prototype.exec,s=String.prototype.replace,l=a,u="lastIndex",c=(o=/a/,r=/b*/g,a.call(o,"a"),a.call(r,"a"),0!==o[u]||0!==r[u]),d=void 0!==/()??/.exec("")[1];(c||d)&&(l=function(e){var t,n,o,r,l=this;return d&&(n=new RegExp("^"+l.source+"$(?!\\s)",i.call(l))),c&&(t=l[u]),o=a.call(l,e),c&&o&&(l[u]=l.global?o.index+o[0].length:t),d&&o&&o.length>1&&s.call(o[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(o[r]=void 0)})),o}),e.exports=l},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var o=n("8378"),r=n("7726"),i="__core-js_shared__",a=r[i]||(r[i]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,n){var o=n("7726"),r=n("8378"),i=n("32e9"),a=n("2aba"),s=n("9b43"),l="prototype",u=function e(t,n,u){var c,d,f,p,h=t&e.F,_=t&e.G,m=t&e.P,g=t&e.B,v=_?o:t&e.S?o[n]||(o[n]={}):(o[n]||{})[l],y=_?r:r[n]||(r[n]={}),w=y[l]||(y[l]={});for(c in _&&(u=n),u)f=((d=!h&&v&&void 0!==v[c])?v:u)[c],p=g&&d?s(f,o):m&&"function"==typeof f?s(Function.call,f):f,v&&a(v,c,f,t&e.U),y[c]!=f&&i(y,c,p),m&&w[c]!=f&&(w[c]=f)};o.core=r,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},"5eda":function(e,t,n){var o=n("5ca1"),r=n("8378"),i=n("79e5");e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i((function(){n(1)})),"Object",a)}},"5f1b":function(t,n,o){var r=o("23c6"),i=RegExp.prototype.exec;t.exports=function(t,n){var o=t.exec;if("function"==typeof o){var a=o.call(t,n);if("object"!==e(a))throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,n)}},"613b":function(e,t,n){var o=n("5537")("keys"),r=n("ca5a");e.exports=function(e){return o[e]||(o[e]=r(e))}},"626a":function(e,t,n){var o=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},6762:function(e,t,n){var o=n("5ca1"),r=n("c366")(!0);o(o.P,"Array",{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var o=n("626a"),r=n("be13");e.exports=function(e){return o(r(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var o=n("d3f4");e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,n){var o=n("0d58"),r=n("2621"),i=n("52a7"),a=n("4bf8"),s=n("626a"),l=Object.assign;e.exports=!l||n("79e5")((function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=o}))?function(e,t){for(var n=a(e),l=arguments.length,u=1,c=r.f,d=i.f;l>u;)for(var f,p=s(arguments[u++]),h=c?o(p).concat(c(p)):o(p),_=h.length,m=0;_>m;)d.call(p,f=h[m++])&&(n[f]=p[f]);return n}:l},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var o=n("4588"),r=Math.max,i=Math.min;e.exports=function(e,t){return(e=o(e))<0?r(e+t,0):i(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7f20":function(e,t,n){var o=n("86cc").f,r=n("69a8"),i=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var o=n("cb7c"),r=n("c69a"),i=n("6a99"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),r)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"9b43":function(e,t,n){var o=n("d8e8");e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var o=n("2b4c")("unscopables"),r=Array.prototype;null==r[o]&&n("32e9")(r,o,{}),e.exports=function(e){r[o][e]=!0}},"9def":function(e,t,n){var o=n("4588"),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(e,n){e.exports=t},a481:function(e,t,n){var o=n("cb7c"),r=n("4bf8"),i=n("9def"),a=n("4588"),s=n("0390"),l=n("5f1b"),u=Math.max,c=Math.min,d=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n("214f")("replace",2,(function(e,t,n,h){return[function(o,r){var i=e(this),a=null==o?void 0:o[t];return void 0!==a?a.call(o,i,r):n.call(String(i),o,r)},function(e,t){var r=h(n,e,this,t);if(r.done)return r.value;var d=o(e),f=String(this),p="function"==typeof t;p||(t=String(t));var m=d.global;if(m){var g=d.unicode;d.lastIndex=0}for(var v=[];;){var y=l(d,f);if(null===y)break;if(v.push(y),!m)break;""===String(y[0])&&(d.lastIndex=s(f,i(d.lastIndex),g))}for(var w,b="",A=0,x=0;x<v.length;x++){y=v[x];for(var S=String(y[0]),T=u(c(a(y.index),f.length),0),E=[],I=1;I<y.length;I++)E.push(void 0===(w=y[I])?w:String(w));var O=y.groups;if(p){var C=[S].concat(E,T,f);void 0!==O&&C.push(O);var D=String(t.apply(void 0,C))}else D=_(S,f,T,E,O,t);T>=A&&(b+=f.slice(A,T)+D,A=T+S.length)}return b+f.slice(A)}];function _(e,t,o,i,a,s){var l=o+e.length,u=i.length,c=p;return void 0!==a&&(a=r(a),c=f),n.call(s,c,(function(n,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,o);case"'":return t.slice(l);case"<":s=a[r.slice(1,-1)];break;default:var c=+r;if(0===c)return n;if(c>u){var f=d(c/10);return 0===f?n:f<=u?void 0===i[f-1]?r.charAt(1):i[f-1]+r.charAt(1):n}s=i[c-1]}return void 0===s?"":s}))}}))},aae3:function(e,t,n){var o=n("d3f4"),r=n("2d95"),i=n("2b4c")("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==r(e))}},ac6a:function(e,t,n){for(var o=n("cadf"),r=n("0d58"),i=n("2aba"),a=n("7726"),s=n("32e9"),l=n("84f2"),u=n("2b4c"),c=u("iterator"),d=u("toStringTag"),f=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=r(p),_=0;_<h.length;_++){var m,g=h[_],v=p[g],y=a[g],w=y&&y.prototype;if(w&&(w[c]||s(w,c,f),w[d]||s(w,d,g),l[g]=f,v))for(m in o)w[m]||i(w,m,o[m],!0)}},b0c5:function(e,t,n){var o=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:o!==/./.exec},{exec:o})},be13:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var o=n("6821"),r=n("9def"),i=n("77f1");e.exports=function(e){return function(t,n,a){var s,l=o(t),u=r(l.length),c=i(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},c649:function(e,t,n){(function(e){n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return l})),n("a481");var o,r,i="undefined"!=typeof window?window.console:e.console,a=/-(\w)/g,s=(o=function(e){return e.replace(a,(function(e,t){return t?t.toUpperCase():""}))},r=Object.create(null),function(e){return r[e]||(r[e]=o(e))});function l(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function u(e,t,n){var o=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,o)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(t,n){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(r){"object"===("undefined"==typeof window?"undefined":e(window))&&(o=window)}t.exports=o},ca5a:function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},cadf:function(e,t,n){var o=n("9c6c"),r=n("d53b"),i=n("84f2"),a=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},cb7c:function(e,t,n){var o=n("d3f4");e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},ce10:function(e,t,n){var o=n("69a8"),r=n("6821"),i=n("c366")(!1),a=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=r(e),l=0,u=[];for(n in s)n!=a&&o(s,n)&&u.push(n);for(;t.length>l;)o(s,n=t[l++])&&(~i(u,n)||u.push(n));return u}},d2c8:function(e,t,n){var o=n("aae3"),r=n("be13");e.exports=function(e,t,n){if(o(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(e))}},d3f4:function(t,n){t.exports=function(t){return"object"===e(t)?null!==t:"function"==typeof t}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(e,t,n){var o=n("5ca1"),r=n("9def"),i=n("d2c8"),a="startsWith",s=""[a];o(o.P+o.F*n("5147")(a),"String",{startsWith:function(e){var t=i(this,e,a),n=r(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),o=String(e);return s?s.call(t,o,n):t.slice(n,n+o.length)===o}})},f6fd:function(e,t){!function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(o){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(o.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})}(document)},f751:function(e,t,n){var o=n("5ca1");o(o.S+o.F,"Object",{assign:n("7333")})},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){var o=n("7726").document;e.exports=o&&o.documentElement},fb15:function(e,t,n){var o;function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function i(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(l){r=!0,i=l}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.r(t),"undefined"!=typeof window&&(n("f6fd"),(o=window.document.currentScript)&&(o=o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=o[1])),n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d"),n("6762"),n("2fdb");var l=n("a352"),u=n.n(l),c=n("c649");function d(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function f(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),d.call(t,e,n)}}function p(e){return["transition-group","TransitionGroup"].includes(e)}function h(e,t,n){return e[n]||(t[n]?t[n]():void 0)}var _=["Start","Add","Remove","Update","End"],m=["Choose","Unchoose","Sort","Filter","Clone"],g=["Move"].concat(_,m).map((function(e){return"on"+e})),v=null,y={name:"draggable",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=function(e){if(!e||1!==e.length)return!1;var t=a(e,1)[0].componentOptions;return!!t&&p(t.tag)}(t);var n=function(e,t,n){var o=0,r=0,i=h(t,n,"header");i&&(o=i.length,e=e?[].concat(s(i),s(e)):s(i));var a=h(t,n,"footer");return a&&(r=a.length,e=e?[].concat(s(e),s(a)):s(a)),{children:e,headerOffset:o,footerOffset:r}}(t,this.$slots,this.$scopedSlots),o=n.children,r=n.headerOffset,i=n.footerOffset;this.headerOffset=r,this.footerOffset=i;var l=function(e,t){var n=null,o=function(e,t){n=function(e,t,n){return void 0===n||((e=e||{})[t]=n),e}(n,e,t)};if(o("attrs",Object.keys(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{})),!t)return n;var r=t.on,i=t.props,a=t.attrs;return o("on",r),o("props",i),Object.assign(n.attrs,a),n}(this.$attrs,this.componentData);return e(this.getTag(),l,o)},created:function(){null!==this.list&&null!==this.value&&c.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&c.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&c.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};_.forEach((function(n){t["on"+n]=f.call(e,n)})),m.forEach((function(n){t["on"+n]=d.bind(e,n)}));var n=Object.keys(this.$attrs).reduce((function(t,n){return t[Object(c.a)(n)]=e.$attrs[n],t}),{}),o=Object.assign({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in o)&&(o.draggable=">*"),this._sortable=new u.a(this.rootContainer,o),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var e=this._vnode.fnOptions;return e&&e.functional},getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(c.a)(t);-1===g.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=function(e,t,n,o){if(!e)return[];var r=e.map((function(e){return e.elm})),i=t.length-o,a=s(t).map((function(e,t){return t>=i?r.length:r.indexOf(e)}));return n?a.filter((function(e){return-1!==e})):a}(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=function(e,t){return e.map((function(e){return e.elm})).indexOf(t)}(this.getChildrenNodes()||[],e);return-1===t?null:{index:t,element:this.realList[t]}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&p(t.$options._componentTag)?t.$parent:!("realList"in t)&&1===t.$children.length&&"realList"in t.$children[0]?t.$children[0]:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=s(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,s(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,o=this.getUnderlyingPotencialDraggableComponent(t);if(!o)return{component:o};var r=o.realList,i={list:r,component:o};if(t!==n&&r&&o.getUnderlyingVm){var a=o.getUnderlyingVm(n);if(a)return Object.assign(a,i)}return i},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[e].data=null;var t=this.getComponent();t.children=[],t.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),v=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(c.d)(e.item);var n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();var o={element:t,newIndex:n};this.emitChanges({added:o})}},onDragRemove:function(e){if(Object(c.c)(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(c.d)(e.clone)},onDragUpdate:function(e){Object(c.d)(e.item),Object(c.c)(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var o={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:o})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=s(t.to.children).filter((function(e){return"none"!==e.style.display})),o=n.indexOf(t.related),r=e.component.getVmIndex(o);return-1===n.indexOf(v)&&t.willInsertAfter?r+1:r},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var o=this.getRelatedContextFromMoveEvent(e),r=this.context,i=this.computeFutureIndex(o,e);return Object.assign(r,{futureIndex:i}),n(Object.assign({},e,{relatedContext:o,draggedContext:r}),t)},onDragEnd:function(){this.computeIndexes(),v=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",y);var w=y;t.default=w}}).default},t.exports=o(co)}(Ue);var fo=D(Ye),po="_unitSubject_1igih_1",ho="_unitAnswers_1igih_10",_o="_unitAnswer_1igih_10",mo="_option_1igih_22",go="_value_1igih_25",vo="_active_1igih_37",yo="_answerContent_1igih_41",wo="_sortReset_1igih_54",bo="_tips_1igih_62",Ao="_itemsContainer_1igih_75",xo="_items_1igih_75",So="_imgs_1igih_81",To=(o("D",f({name:"choice-question",props:{value:{type:Array,default:function(){return[]}},index:{type:Number,default:1},data:{type:Object,default:function(){return{}}},readOnly:{type:Boolean,default:!1},showRate:{type:Boolean,default:!1},showAnalysis:{type:Boolean,default:!1},analysis:{type:Object,default:function(){return{message:"",topic:!1,userResult:!0}}}},emits:["update:value"],setup:function(e,t){var n=t.emit,o=t.slots,r=x({domId:"draggableContainer"+ +new Date,drag:!1,sortable:null,list:[],options:[],alst:[]}),i=E((function(){var t=e.data.answers||[],n=e.value||[];return t.forEach((function(e){var t=n.findIndex((function(t){return t.answerId===e.examinationQuestionAnswerId}));e.checked=-1!==t})),t})),a=function(){var t=e.data.answers||[],n=e.data.userAnswer||[];w((function(){if(n.length>0){var e=[];n.forEach((function(n,o){var r=t.find((function(e){return n.answerId===e.examinationQuestionAnswerId})),i=t.find((function(e){return n.answerExtra==e.questionExtra})),a={itemIndex:o,index:n.answerId,leftValue:n.answer,rightValue:n.answerExtra,leftType:r&&r.questionAnswerTypeCode||"TXT",rightType:r&&r.questionExtraTypeCode||"TXT",rightIndex:i?i.examinationQuestionAnswerId:""};e.push(a)})),r.options=e}}))};return k((function(){return r.options}),(function(){var e=r.options||[],t=[];e.forEach((function(e,n){t.push({answerId:e.index,answer:e.leftValue,answerExtra:n+1})})),n("update:value",t)})),P((function(){a()})),function(){return p(I,null,[p("div",{class:po},[o.title&&o.title(),p(ve,{index:e.index,name:e.data.name,showRate:e.showRate,score:e.data.totalScore,answerType:te.SORT,extra:{rightRate:e.data.rightRate,questionDetail:e.data.questionDetail,mediaUrls:e.data.mediaUrls}},null),p("div",{class:[ho]},[i.value.map((function(t,o){return p("div",{class:[_o,t.checked&&vo],onClick:function(){return function(t){if(!t.checked&&!e.readOnly){var o=[];r.options.forEach((function(e,t){o.push({answerId:e.index,answer:e.leftValue,answerExtra:t+1})})),o.push({answerId:t.examinationQuestionAnswerId,answer:t.questionAnswer,answerExtra:r.list.length+1}),r.list.push({answerId:t.examinationQuestionAnswerId,answer:t.questionAnswer,answerExtra:r.list.length+1}),n("update:value",o),w((function(){a()}))}}(t)}},[p("div",{class:yo},[p("span",{class:mo},[ee[o+1],T(".")]),t.questionAnswerTypeCode===se&&p("div",{class:go},[p(H,{src:t.questionAnswer},null)]),t.questionAnswerTypeCode===le&&p("div",{class:go},[t.questionAnswer])])])})),p("div",{class:[wo,"van-hairline--top"]},[p("span",{class:bo},[T("请长按拖拽答案进行排序")]),p(M,{type:"primary",round:!0,disabled:e.readOnly,onClick:function(){r.options=[],r.list=[],function(){var e=r.list||[],t=[];e.forEach((function(e,n){t.push({answerId:e.answerId,answer:e.answer,answerExtra:n+1})})),n("update:value",t)}(),a()}},{default:function(){return[T("重置")]}})]),e.readOnly?r.options.map((function(e){return p("div",{class:Ao},[e.leftType===le&&p(U,{class:[xo],"data-id":e.itemIndex},{default:function(){return[e.leftValue]}}),e.leftType===se&&p(H,{src:e.leftValue,"data-id":e.itemIndex,class:[So,"van-hairline--surround"],fit:"cover"},null)])})):p(fo,{modelValue:r.options,"onUpdate:modelValue":function(e){return r.options=e},itemKey:"itemIndex",componentData:{itemKey:"id",tag:"div",animation:200,group:"description"}},{item:function(e){var t=e.element;return p("div",{class:Ao},[t.leftType===le&&p(U,{class:[xo],"data-id":t.itemIndex},{default:function(){return[t.leftValue]}}),t.leftType===se&&p(H,{src:t.leftValue,"data-id":t.itemIndex,class:[So,"van-hairline--surround"],fit:"cover"},null)])}})])]),e.showAnalysis&&p(Ie,{answerAnalysis:e.analysis.message,topic:e.analysis.topic,userResult:e.analysis.userResult},null)])}}})),"_unitSubject_1w9f3_1"),Eo="_unitAnswers_1w9f3_10",Io="_answerItem_1w9f3_15",Oo="_img_1w9f3_26",Co="_unitItem_1w9f3_29",Do="_active_1w9f3_45",ko="_canvasSection_1w9f3_49",Po="_resetBtnGroup_1w9f3_54",Mo=(o("K",f({name:"keep-look-question",props:{value:{type:Array,default:function(){return[]}},index:{type:Number,default:1},data:{type:Object,default:function(){return{}}},readOnly:{type:Boolean,default:!1},showRate:{type:Boolean,default:!1},showAnalysis:{type:Boolean,default:!1},analysis:{type:Object,default:function(){return{message:"",topic:!1,userResult:!0}}}},emits:["update:value"],setup:function(e,t){var n=t.emit,o=t.slots,r=L(),i=x({answerDomId:"answer"+ +new Date,answerRect:{},dpr:1,sortable:null,list:[],options:[],drawLineList:[],selectItem:[]}),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"left",n=i.drawLineList||[],o=!1,r=0,a={};return n.forEach((function(n,i){(n.leftIndex===e&&"left"===t||n.rightIndex===e&&"right"===t)&&(a=n,o=!0,r=i)})),{status:o,selectIndex:r,selectOption:a}},s=function(){var e=R(r.value),t=i.selectItem[0],n=R(document.getElementById(t.index+"-left"));n.index=t.index;var o=i.selectItem[1],a=R(document.getElementById(o.index+"-right"));a.index=o.index,console.log(i.selectItem,n,a);var s={x:n.width,y:n.top+n.height/2-e.top},l={x:a.left-e.left,y:a.top+a.height/2-e.top};return i.options.forEach((function(e){e.index===n.index&&(e.leftLocked=!0),e.index===a.index&&(e.rightLocked=!0)})),{startPoint:s,endPoint:l,leftIndex:n.index,rightIndex:a.index}},l=function(e){if(e.getContext){var t=e.getContext("2d");t.clearRect(0,0,i.answerRect.width*i.dpr||0,i.answerRect.height*i.dpr||0),i.drawLineList.forEach((function(e){u(t,e.startPoint,e.endPoint)}))}},u=function(e,t,n){e.beginPath(),e.moveTo(Math.floor(t.x-1)*i.dpr,Math.ceil(t.y)*i.dpr),e.lineTo(Math.ceil(n.x+1)*i.dpr,Math.ceil(n.y)*i.dpr),e.lineWidth=2*i.dpr,e.strokeStyle="#1CACF1",e.stroke()},c=function(){var e=i.options||[],t=i.drawLineList||[],o=[];t.forEach((function(t){var n=e.find((function(e){return e.index===t.leftIndex})),r=e.find((function(e){return e.index===t.rightIndex}));o.push({answerId:n.index,answer:n.leftValue,answerExtra:r.rightValue})})),n("update:value",o)};return P((function(){var t,n;t=e.data.answers||[],n=e.data.userAnswer||[],t.forEach((function(e){var t={index:e.examinationQuestionAnswerId,leftValue:e.questionAnswer,rightValue:e.questionExtra,leftType:e.questionAnswerTypeCode||"TXT",rightType:e.questionExtraTypeCode||"TXT",left:!1,right:!1,leftLocked:!1,rightLocked:!1};i.options.push(t)})),n.forEach((function(e){var t={startPoint:{x:0,y:0},endPoint:{x:0,y:0},leftIndex:0,rightIndex:0};i.options.forEach((function(n){n.index===e.answerId&&(n.left=!0,n.leftLocked=!0,t.leftIndex=n.index),n.rightValue===e.answerExtra&&(n.right=!0,n.leftLocked=!0,t.rightIndex=n.index)})),i.drawLineList.push(t)})),w((function(){i.drawLineList.forEach((function(e){i.selectItem=[];var t=R(document.getElementById(e.leftIndex+"-left"));t.index=e.leftIndex,i.selectItem[0]=t;var n=R(document.getElementById(e.rightIndex+"-right"));n.index=e.rightIndex,i.selectItem[1]=n;var o=s();e.endPoint=o.endPoint,e.startPoint=o.startPoint,i.selectItem=[]})),setTimeout((function(){l(r.value)}),100)})),w((function(){var e=document.getElementById(i.answerDomId),t=R(e);i.answerRect=t;var n=window.devicePixelRatio;i.dpr=n}))})),function(){return p(I,null,[p("div",{class:To},[o.title&&o.title(),p(ve,{index:e.index,name:e.data.name,score:e.data.totalScore,showRate:e.showRate,answerType:te.LINK,extra:{questionDetail:e.data.questionDetail,mediaUrls:e.data.mediaUrls,rightRate:e.data.rightRate}},null),p("div",{class:[Eo],id:i.answerDomId},[p("canvas",{ref:r,class:ko,width:i.answerRect.width*i.dpr||0,height:i.answerRect.height*i.dpr||0,style:{width:(i.answerRect.width||0)+"px",height:(i.answerRect.height||0)+"px"}},null),i.options.map((function(t){return p("div",{class:Io},[p("div",{class:[Co,t.left&&Do],id:t.index+"-left",onClick:function(n){return function(t,n){if(!e.readOnly){i.options.forEach((function(e){e.leftLocked||n.index===e.index||(e.left=!1)}));var o=a(n.index,"left");if(o.status)i.options.forEach((function(e){e.rightLocked||(e.right=!1)})),i.selectItem=[],i.drawLineList.splice(o.selectIndex,1),l(r.value),i.options.forEach((function(e){o.selectOption.leftIndex===e.index&&(e.left=!1,e.leftLocked=!1),o.selectOption.rightIndex===e.index&&(e.right=!1,e.rightLocked=!1)}));else if(n.left=!n.left,n.left?i.selectItem[0]={index:n.index}:i.selectItem[0]=null,i.selectItem[0]&&i.selectItem[1]){var u=s();i.drawLineList.push(u),i.selectItem=[],l(r.value)}c()}}(0,t)}},[t.leftType===le&&t.leftValue,t.leftType===se&&p(H,{src:t.leftValue,class:Oo},null)]),p("div",{class:[Co,t.right&&Do],id:t.index+"-right",onClick:function(n){return function(t,n){if(!e.readOnly){i.options.forEach((function(e){e.rightLocked||n.index===e.index||(e.right=!1)}));var o=a(n.index,"right");if(o.status)i.options.forEach((function(e){e.leftLocked||(e.left=!1)})),i.selectItem=[],i.drawLineList.splice(o.selectIndex,1),l(r.value),i.options.forEach((function(e){o.selectOption.leftIndex===e.index&&(e.left=!1,e.leftLocked=!1),o.selectOption.rightIndex===e.index&&(e.right=!1,e.rightLocked=!1)}));else if(n.right=!n.right,n.right?i.selectItem[1]={index:n.index}:i.selectItem[1]=null,i.selectItem[0]&&i.selectItem[1]){var u=s();i.drawLineList.push(u),i.selectItem=[],l(r.value)}c()}}(0,t)}},[t.rightType===le&&t.rightValue,t.rightType===se&&p(H,{src:t.rightValue,class:Oo},null)])])}))]),p("div",{class:Po},[p(M,{round:!0,type:"primary",disabled:e.readOnly,onClick:function(){i.drawLineList=[],l(r.value),i.options.forEach((function(e){e.left=!1,e.right=!1,e.leftLocked=!1,e.rightLocked=!1})),i.selectItem=[],c()}},{default:function(){return[T("重置")]}})])]),e.showAnalysis&&p(Ie,{answerAnalysis:e.analysis.message,topic:e.analysis.topic,userResult:e.analysis.userResult},null)])}}})),"_unitSubject_1j7w8_1"),Lo="_unitAnswers_1j7w8_10",Ro="_playSection_1j7w8_14",Bo="_img_1j7w8_19",jo="_playTitle_1j7w8_24",No="_playBtn_1j7w8_29",Fo="_unitScoreNum_1j7w8_37",zo="_score_1j7w8_42",Ho="_scoreTitle_1j7w8_47",qo="_scoreTips_1j7w8_53",Yo=""+new URL("icon-song-c2cb716c.png",r.meta.url).href,Uo=(o("P",f({name:"choice-question",props:{value:{type:Array,default:function(){return[]}},index:{type:Number,default:1},data:{type:Object,default:function(){return{}}},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:function(){return{message:"",topic:!1,userResult:!0,score:0}}}},emits:["update:value"],setup:function(e,t){var n=t.emit,o=t.slots;console.log(e,"props");var r=x({list:[],score:0}),i=E((function(){return e.data.questionExtendsInfo?JSON.parse(e.data.questionExtendsInfo):""})),a=function(){var t=i.value;t&&(console.log(e.unitId),B({api:"openAccompanyWebView",content:{url:"".concat(location.origin,"/orchestra-music-score/?id=").concat(t.musicSheetId,"&modelType=evaluation&unitId=").concat(e.unitId,"&questionId=").concat(e.data.id),orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}}),j("webViewOnResume",(function(){if(N().android){var t,o,i=window.ORCHESTRA||(null===(t=window.webkit)||void 0===t||null===(o=t.messageHandlers)||void 0===o?void 0:o.ORCHESTRA);console.log(i,"-------------");var a=i.getCache2("h5-orchestra-unit");console.log("🚀 ~ listenerMessage ~ result",a);var s=a?JSON.parse(a):{};if(s.questionId===e.data.id){var l=s.score||0;r.score<l&&(r.score=s.score||0),F({api:"setCache",content:{key:"h5-orchestra-unit",value:""}})}n("update:value",[{answerId:"",answer:r.score,answerExtra:""}]),z("webViewOnResume",(function(){}))}else F({api:"getCache",content:{key:"h5-orchestra-unit"}}).then((function(t){var o=t.content;if(o.value){console.log("🚀 ~ listenerMessage ~ content.value",o.value,"---------------");var i=o.value?JSON.parse(o.value):{};if(console.log("🚀 ~ listenerMessage ~ result",i,e.data.questionId),i.questionId===e.data.id){var a=i.score||0;r.score<a&&(r.score=i.score||0)}n("update:value",[{answerId:"",answer:r.score,answerExtra:""}]),F({api:"setCache",content:{key:"h5-orchestra-unit",value:""}})}z("webViewOnResume",(function(){}))}))})))};return P((function(){var t=e.value||[];t.length>0&&(r.score=t[0].answer)})),function(){return p(I,null,[p("div",{class:Mo},[o.title&&o.title(),p(ve,{index:e.index,name:e.data.name,score:e.data.totalScore,showRate:e.showRate,answerType:te.PLAY,extra:{questionDetail:e.data.questionDetail,mediaUrls:"",rightRate:e.data.rightRate}},null),p("div",{class:[Lo]},[i.value&&p(G,{class:Ro,center:!0,titleClass:["van-ellipsis",jo]},{icon:function(){return p(H,{class:Bo,src:Yo},null)},title:function(){return p(I,null,[i.value.musicName])},value:function(){return p(M,{round:!0,class:No,type:"primary",onClick:a,disabled:e.readOnly},{default:function(){return[T("点击评测"),p(g,{name:"play"},null)]}})}}),(!e.readOnly||e.showScore)&&p("div",{class:["van-hairline--top",Fo]},[p("div",{class:zo},[r.score]),p("div",{class:Ho},[T("评测分数")]),!e.showScore&&p("div",{class:qo},[T("多次评测取完整评测的最高分数")])])])]),e.showAnalysis&&p(Ie,{answerAnalysis:e.analysis.message,topic:e.analysis.topic,userResult:e.analysis.userResult,rightFlagText:"合格",errorFlagText:"不合格"},null)])}}})),{popupResult:"_popupResult_1smys_1",resultTitle:"_resultTitle_1smys_6",titleImg:"_titleImg_1smys_15",result:"_result_1smys_6",yes:"_yes_1smys_29",no:"_no_1smys_33",resultContent:"_resultContent_1smys_36"}),Go=(o("E",f({name:"result-mode",props:{confirmButtonText:{type:String,default:"我知道了"},answerAnalysis:{type:String,default:""},questionTypeCode:{type:String,default:""}},emits:["close","conform"],setup:function(e,t){var n=t.emit;return function(){return p("div",{class:Uo.popupResult},[p("div",{class:Uo.resultTitle},[p(H,{src:Ee,class:Uo.titleImg},null),"PLAY"===e.questionTypeCode?"不合格!":"回答错误!"]),p("div",{class:Uo.resultContent},[p("span",null,[T("答案解析:")]),e.answerAnalysis]),p(M,{type:"primary",round:!0,class:Uo.btn,block:!0,onClick:function(){n("conform"),n("close")}},{default:function(){return[e.confirmButtonText]}})])}}})),{finishResult:"_finishResult_v13hc_1",finishContainer:"_finishContainer_v13hc_5",finishTitle:"_finishTitle_v13hc_12",scoreResult:"_scoreResult_v13hc_37",finishFail:"_finishFail_v13hc_46",finishPass:"_finishPass_v13hc_50",finishGood:"_finishGood_v13hc_54",finishCountdown:"_finishCountdown_v13hc_58",finishBtnGroup:"_finishBtnGroup_v13hc_62",finishLeft:"_finishLeft_v13hc_72",finishRight:"_finishRight_v13hc_73"});o("R",f({name:"result-mode",props:{showConfirmButton:{type:Boolean,default:!0},confirmButtonText:{type:String,default:"确认"},showCancelButton:{type:Boolean,default:!1},cancelButtonText:{type:String,default:"取消"},status:{type:String,default:"DEFAULT"},title:{type:String,default:"确认退出吗?"},contentHtml:{type:Boolean,default:!1},content:{type:String,default:""},textAlign:{type:String,default:"flex-start"}},emits:["close","conform"],setup:function(e,t){var n=t.slots,o=t.emit;return function(){return p("div",{class:[Go.finishResult,"FAIL"===e.status&&Go.finishFail,"PASS"===e.status&&Go.finishPass,"GOOD"===e.status&&Go.finishGood,"COUNTDOWN"===e.status&&Go.finishCountdown]},[p("div",{class:Go.finishContainer},[p("div",{class:Go.finishContent},[p("div",{class:Go.finishTitle},[p("span",null,[e.title])]),n.content?n.content():p(I,null,[e.contentHtml?p("div",{class:Go.scoreResult,style:{justifyContent:e.textAlign},innerHTML:e.content},null):p("div",{class:Go.scoreResult},[e.content])])]),p("div",{class:Go.finishBtnGroup},[e.showCancelButton&&p("div",{class:Go.finishLeft,onClick:function(){return o("close")}},[e.cancelButtonText]),e.showConfirmButton&&p("div",{class:Go.finishRight,onClick:function(){return o("conform")}},[e.confirmButtonText])])])])}}}))}}}))}();
|