report-share-legacy-d1548d87.js 25 KB

1
  1. !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,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){c=!0,a=e},f:function(){try{l||null==r.return||r.return()}finally{if(c)throw a}}}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(t,n,r){return(n=function(t){var n=function(t,n){if("object"!==e(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===e(n)?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function a(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */a=function(){return t};var t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(L){s=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new E(r||[]);return o(a,"_invoke",{value:A(e,n,l)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(L){return{type:"throw",arg:L}}}t.wrap=d;var h={};function p(){}function v(){}function g(){}var m={};s(m,l,(function(){return this}));var _=Object.getPrototypeOf,y=_&&_(_(S([])));y&&y!==n&&r.call(y,l)&&(m=y);var b=g.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(t,n){function i(o,a,l,c){var u=f(t[o],t,a);if("throw"!==u.type){var s=u.arg,d=s.value;return d&&"object"==e(d)&&r.call(d,"__await")?n.resolve(d.__await).then((function(e){i("next",e,l,c)}),(function(e){i("throw",e,l,c)})):n.resolve(d).then((function(e){s.value=e,l(s)}),(function(e){return i("throw",e,l,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(e,t){function r(){return new n((function(n,r){i(e,t,n,r)}))}return a=a?a.then(r,r):r()}})}function A(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=q(a,n);if(l){if(l===h)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function q(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,q(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function S(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return v.prototype=g,o(b,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:v,configurable:!0}),v.displayName=s(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,s(e,u,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},w(x.prototype),s(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new x(d(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(b),s(b,u,"Generator"),s(b,l,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=S,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function l(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(u){return void n(u)}l.done?t(c):Promise.resolve(c).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){l(i,r,o,a,c,"next",e)}function c(e){l(i,r,o,a,c,"throw",e)}a(void 0)}))}}System.register(["./index-legacy-0440abb2.js","./index-legacy-18679b50.js"],(function(e,n){"use strict";var r,i,l,u,s,d,f,h,p,v,g,m,_,y,b,w,x,A,q,P,k,E,S,C,L,I,O,j,T,N,R,B,F,M,U,D,Q,J,G,H,K,z,W,V,Y=document.createElement("style");return Y.textContent="._skeleton_1lq3l_1{position:fixed;left:0;top:0;width:100vw;height:100vh;padding:.53333rem .8rem;background-color:#fff;z-index:10;--van-skeleton-paragraph-height: .8rem}._detail_1lq3l_12{width:100vw;height:100vh;overflow:hidden;--header-height: 1.65333rem;background:var(--container-background)}._detail_1lq3l_12 ._headHeight_1lq3l_19{position:fixed;left:0;top:0;width:100%;height:var(--header-height);transition:margin .3s;z-index:10}._detail_1lq3l_12 ._headHeight_1lq3l_19._headHide_1lq3l_28{margin-top:calc(0Px - var(--header-height))}._detail_1lq3l_12 ._container_1lq3l_31{position:relative;height:100vh;margin:0 .26667rem;border-radius:.26667rem;padding-top:calc(var(--header-height) + .53333rem);overflow-x:hidden;overflow-y:auto}._detail_1lq3l_12 ._container_1lq3l_31::-webkit-scrollbar{width:0;display:none}._detail_1lq3l_12 ._container_1lq3l_31 #musicAndSelection{overflow:auto}._shareBox_1lq3l_47{background-color:#f8f2e8}._shareBox_1lq3l_47 #cursorImg-0{display:none!important}._shareBox_1lq3l_47 #selectionBox{pointer-events:none}._demos_1lq3l_56{position:fixed;top:var(--header-height);right:.26667rem;display:flex;justify-content:flex-end;align-items:center;padding:.16rem .26667rem;border-radius:.53333rem;background-color:#e2f6f1;z-index:1}._demos_1lq3l_56>div{display:flex;align-items:center;margin-right:.16rem}._demos_1lq3l_56>div>span{margin-left:.10667rem}._right_1lq3l_76 path{fill:#01c1b5;stroke:#01c1b5}._wrong_1lq3l_80 path{fill:#f44;stroke:#f44}._notPlay_1lq3l_84 path{fill:#000;stroke:#000}._cadence_wrong_1lq3l_88 path{fill:#067dd7;stroke:#067dd7}._intonation_wrong_1lq3l_92 path{fill:#ffab25;stroke:#ffab25}._integrity_wrong_1lq3l_96 path{fill:#cc75ff;stroke:#cc75ff}._headerTop_1dcq3_1{display:flex;justify-content:space-between;align-items:center;width:100%;height:100%;flex-shrink:0;padding:.21333rem .26667rem;padding-bottom:0}._back_1dcq3_11{display:flex;align-items:center;height:100%;padding:0 .29333rem 0 .16rem}._back_1dcq3_11 img{display:block;width:.85333rem;height:.85333rem}._left_1dcq3_22,._center_1dcq3_26{display:flex;align-items:center}._center_1dcq3_26 ._cItem_1dcq3_30{text-align:center;padding:0 .32rem;white-space:nowrap}._center_1dcq3_26 ._cItem_1dcq3_30>div:first-child{font-size:.32rem;color:#333;line-height:.37333rem;margin-bottom:.16rem;font-weight:700}._center_1dcq3_26 ._cItem_1dcq3_30>div:last-child{font-size:.32rem;color:#777;line-height:.32rem;padding:.10667rem .21333rem;border-radius:.37333rem}._center_1dcq3_26 ._cItem_1dcq3_30:not(:last-child){border-right:.02667rem solid #EBDABF}._center_1dcq3_26 ._active_1dcq3_52>div:first-child{color:#ff8057!important}._right_1dcq3_55{display:flex;align-items:center}._right_1dcq3_55 ._btn_1dcq3_59{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:.29333rem;line-height:.42667rem;font-weight:400;padding:0 .16rem}._right_1dcq3_55 ._btn_1dcq3_59 ._iconBtn_1dcq3_70{display:block;width:.66667rem;height:.66667rem}._right_1dcq3_55 ._btn_1dcq3_59 span{white-space:nowrap}._right_1dcq3_55 ._btn_1dcq3_59 ._btnWrap_1dcq3_78{position:relative;width:.66667rem;height:.66667rem}._popup_1dcq3_83 .van-popup__close-icon{top:0;right:-.8rem;background-color:#fff;border-radius:50%;padding:.10667rem;font-size:.42667rem;color:var(--van-primary-color)}._container_1g67n_1{width:20vw;height:.82667rem;background:#fff;display:flex;align-items:center;border-radius:.48rem;padding:.16rem}._container_1g67n_1 ._noticeBar_1g67n_10{flex:1;padding:0 .16rem}._icon_1g67n_14{width:.69333rem;height:.69333rem;flex-shrink:0}._status_1g67n_19{margin-left:auto;flex-shrink:0}:root{--van-primary-color: #ff8057;--color-primary: #ff8057;--active-stave-box: rgba(255, 159, 88, .19)}.vf-StaveSection{display:none}\n",document.head.appendChild(Y),{setters:[function(e){r=e.K,i=e.d,l=e.M,u=e.N,s=e.O,d=e.bR,f=e.P,h=e.F,p=e.s,v=e.j,g=e.R,m=e.T,_=e.S,y=e.U,b=e.V,w=e.W,x=e.az,A=e.bg,q=e.r,P=e.ao,k=e.an,E=e.a_,S=e.aY,C=e.ap,L=e.b2,I=e.b3,O=e.b4,j=e.b5,T=e.ah,N=e.b6,R=e.b9,B=e.ba,F=e.bb,M=e.bc,U=e.b1,D=e.bd,Q=e.bh,J=e.bi,G=e.bj,H=e.bk,K=e.bl,z=e.bm,W=e.bn},function(e){V=e.T}],execute:function(){var e,Y=function(){var e=c(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.get("/user/getUserInfo");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),X=i({name:"App",setup:function(){var e=l(),t=function(){var e=c(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("WEB"!==g.platformType){e.next=6;break}return e.next=3,r.get("/user/getUserInfo");case 3:case 9:case 12:return e.abrupt("return",e.sent);case 6:if("TEACHER"!==g.platformType){e.next=10;break}return e.next=9,r.get("/user/getUserInfo");case 10:return e.next=12,Y();case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),n=function(){var e=c(a().mark((function e(){var n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:n=e.sent,r=(null==n?void 0:n.data)||{},b(r);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();u(c(a().mark((function t(){var r,o;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.Authorization){t.next=4;break}s(e.Authorization),t.next=10;break;case 4:return t.next=6,d({api:"getToken"});case 6:r=t.sent,null!=(o=null==r?void 0:r.content)&&o.accessToken&&s(o.tokenType+" "+o.accessToken),console.log(o.tokenType+" "+o.accessToken);case 10:n(),f(w());case 12:case"end":return t.stop()}}),t)})))),h((function(){var e=document.getElementById("loading");e&&document.body.removeChild(e)}));var o=p((function(){return"login"===g.status}));return function(){return v(y,null,["error"===g.status?v(m,null,null):o.value?v(_,null,null):null])}}}),Z="_skeleton_1lq3l_1",$="_detail_1lq3l_12",ee="_headHeight_1lq3l_19",te="_headHide_1lq3l_28",ne="_container_1lq3l_31",re="_shareBox_1lq3l_47",oe="_demos_1lq3l_56",ie="_right_1lq3l_76",ae="_wrong_1lq3l_80",le="_notPlay_1lq3l_84",ce="_cadence_wrong_1lq3l_88",ue="_intonation_wrong_1lq3l_92",se="_integrity_wrong_1lq3l_96",de="_headerTop_1dcq3_1",fe="_back_1dcq3_11",he="_left_1dcq3_22",pe="_center_1dcq3_26",ve="_cItem_1dcq3_30",ge="_active_1dcq3_52",me="_right_1dcq3_55",_e="_btn_1dcq3_59",ye="_iconBtn_1dcq3_70",be="_popup_1dcq3_83",we="_container_1g67n_1",xe="_noticeBar_1g67n_10",Ae="_status_1g67n_19",qe=""+new URL("arrow-c0b252e8.svg",n.meta.url).href,Pe=i({name:"detail-title",props:{text:{type:String,default:""},rightView:{type:Boolean,default:!0},onClick:{type:Function}},render:function(){return v("div",{class:we},[v(x,{text:this.text,color:"#000",class:xe,background:"none"},null),this.rightView?v("img",{class:Ae,src:qe},null):null])}}),ke=""+new URL("icon-back-a96b2fe2.png",n.meta.url).href,Ee=i({name:"header-top",props:{scoreData:{type:Object,default:function(){return{}}}},setup:function(e){var t=A(e).scoreData,n={BEGINNER:"入门级",ADVANCED:"进阶级",PERFORMER:"大师级"},r=q("intonation"),o=q(!1),i=function(){S()};return function(){return v("div",{class:de},[v("div",{class:he},[v("div",{class:fe,onClick:i},[v("img",{src:ke},null)]),v(Pe,{text:P.examSongName,rightView:!1},null)]),v("div",{class:pe},[v("div",{class:ve},[v("div",null,[n[t.value.heardLevel]]),v("div",null,[k("难度")])]),v("div",{class:ve},[v("div",null,[t.value.score,k("分")]),v("div",null,[k("评测分数")])]),P.isPercussion?null:v(y,null,[v("div",{onClick:function(){},class:[ve,"intonation"===r.value&&ge]},[v("div",null,[t.value.intonation,k("分")]),v("div",null,[k("音准")])]),v("div",{onClick:function(){},class:[ve,"cadence"===r.value&&ge]},[v("div",{style:{color:"#FF4E19"}},[t.value.cadence,k("分")]),v("div",null,[k("节奏")])]),v("div",{onClick:function(){},class:[ve,"integrity"===r.value&&ge]},[v("div",{style:{color:"#4EA1FF"}},[t.value.integrity,k("分")]),v("div",null,[k("完成度")])])])]),v("div",{class:me},[v("div",{style:{display:t.value.videoFilePath?"":"none"},class:_e,onClick:function(){return o.value=!0}},[v("img",{class:ye,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCCAMAAADUivDaAAABpFBMVEUAAABlq/+Fu/+JvP9JnP+Cuf+JvP9Jnf9fqP9Hnf96tv9ep/9JnP+BuP9Sof9prP+BuP9Rof+AuP9RoP92tP9cpv9prf9Knf+AuP9RoP+AuP9SoP9prf9TpP+Kuv9Rof9qtf9vr/9orP9gqf+Jvf9ysf+IvP90sv+Kvf9HnP9iqf92tP9bpf9Sov9PoP95tf9YpP9Mnv+Kvf9lqv9Im/+Euv99t/9On/+Jvf9gqf+Jvf92s/9cpv+LvP9JnP+JvP94tf9xsf+Vv/9AoP9Jkv9jqv9trv9rrf9Wo/9Uov9zsf9xsf+Jwv////9hqP9zsf9jqf9vr/9xsP9trv9Tof94tP9rrf9prP9+t/9lqv+Duf+AuP9dpv98tv9nq/9RoP91s/96tf9Pn/9Vov9Nnv9ep/9bpf+Fuv9Xo/9Lnf+Gu/9ZpP9JnP/1+f+JvP9apP/U5/+82v+NwP/5+/+fyv+UxP+/2/+pz/9Im//u9f/s9P+w0//p8//N5P/K4f/E3v/Y6f+11v+r0f+kzf+cyP/7/f/w9/+41/+y1f+ax//m8v/a6v/zkwdoAAAATXRSTlMAHBzj492YlyocB/r6+Pjt6+vNzZmZlIqBgVhYUEMnJAzj4jb6+vn57ezk4+Pf39ra2s3Nzaenp4yMh4eHUFBDQyQMDAf+zc2np4yMNu6nnHEAAAUmSURBVFjDlZd3QxpBEMUXFdGYxBq7MYnpvffe2wGCeFKkiIoFDCBi7D3G5Etnd2crdyh5/9F+vJl9MwuorKq6Ox+0OJtOnGhytjzs7K5C/6lXtc5UKhUKhcLh8MjIyOhoInGr7TWqWFVPq2dmKCBEAEBIBAKBa88cFQFO117EAE4ICwJR/FLbmyMBbx+fnxMEAAhCPB73eC58PXM44UU1BjBC2I7g8fnO9h4COFY7N2fvARAeivANth8r28a7QLD3wAmDWB8dZfpYbU8IqASC8Pv9Z+vsCN8vYwDWER4oYXi4ccDGAxBSlRGGzUaLjyqoomKCaZ5zlJzFXQw4vA8+6CQnRKP39HOppQRLJPM721v7K4V8nBJ8FIBFANFgsF1LlE6gFsKL2YzBlMnuBFgVkhD80KukmmQypVWRKrLPC0ou4acEE4sSvN6rMuuPLR5WAKBDFoUHIHjdT8R5nhdxAA8zm4atsgEMAAJBuN0N/byX4ijAQ36Jf2b+73oxt7EpLC2PqB7c7olTLBIXlQVDCL/Y59cX4h7IQ35jHp77NSIJBNEA4XgKneSNnGEe1lPqWCQ24NlVj+JhIhJ5ThHV+lhAHzIFGUkI1AGUk41CG4AQuU43rR7JFTA8JyLp45EMgb0dRnATwuRkH2mmRkhlqIc5ZgFLBioEr/mgCiD8IA11amNRNIh2mQd9sKIL9MUtt0KYvY3PQ7stwhnaSetoQh42qA2TECaAMDvrQN3aaG7T0wwxD8VMLi7GAivooWd7wD1MYsJUD+rUhjsLJlgVe4axVMAIkUkvrXMNCMTE1NRUF3qgLRj6LQu8D7T0zZAyFjO0Ejf0gRKSn1ELJogNlafviPM2QJr29gdNPhZe2qsEWKCEZCtyqnfejoH1V5ymwbR0ICKZpTYnhYdk8gZqUu9dmqsNcRTKjCZYoHLkUUF6GBpqRiegCkDsG1g5kQdD6g8brN/kwSInEMRJjFA29TZ9Ax8LHQGRBATJA3ggiCb11hxdxjshIcZCKSTOIgmFSA9DsWbk1O7d0e3FhBwLsWkWxFjQduYFIRaL3UQtlvtGDhZbPVumHG56qHHoJCWMtaKHnCABg3xTQw2jbMEQRJgG5wcGcMLYI9QpPOgEwtgjNQS9ynDnaMBVwlgX6g5Ybk0xFbnM1jDLA0ymCQMwJQnj4z2oqvytySMp10OR1hERBIKoR+iWDcHko6kT8gbRCuQBPIzfQQi16X2w90BnOwCLz6t6GHdhxGsrQdxYmofAMixFlTA93YewrlmXXNTGQx4ugTXZSUKoQUTPhAcAWNuAEWaRXUVeaAMjTHdQhOOSDQFLBioSzs2zzeHXCcfrEVUbhBpL90BkFn7n5E+VVT8GYHFC2oVAby5ID/pZTJirhqK1kirSx/sR07dSgpeHuqAAMrtJcRQUkU53IK4zZ0Uc9LOIFCRgxQsE6SFd8w4J9WKC7WlGoZDM2gKkWiOkXyJF7bKTeqCCu4uFvGdWjGZMEn669J+unyyhJgC4sWDBaB7SmHD/PdLkOKcStHtXrCidUFOPSlTXqOaBX5oYQQDaWEAVV+qQRQON4EH9/QEW7DxcGUA2qjsnCBFxc1s9QBXgwSLHPQBwDxphTCXcry/7964dEHofknoVWK73qLx6rwJB74MAQCZfokN15kkDbwMQZKDAw/GOd+go9Z9qgDzIQMXkaLr6USVyPL/Oi9CrqOmoRxWr79Tt0kjecfWh/5Sjp+tL643mkyebb7Y+6uop//3/ACsLqgY2ACuKAAAAAElFTkSuQmCC"},null),v("span",null,[k("回放")])])]),v(E,{class:["popup-custom","van-scale",be],transition:"van-scale",show:o.value,"onUpdate:show":function(e){return o.value=e},closeable:!0},{default:function(){return[v(V,{src:o.value?t.value.videoFilePath:""},null)]}})])}}}),Se=i({name:"NoteSvg",props:{fill:String},render:function(){return v("svg",{width:"7px",height:"23px",viewBox:"0 0 7 23",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[v("g",{transform:"translate(-55.000000, -24.000000)"},[v("g",{transform:"translate(55.000000, 24.000000)",fill:this.fill},[v("path",{d:"M1.95251677,0.68258909 C3.68583115,-0.400505943 5.78379192,-0.169765229 6.63844331,1.1979629 C7.4930947,2.56569103 6.78079761,4.55247575 5.04748323,5.63557079 C3.85503595,6.38069455 2.49000663,6.50399819 1.47594704,6.06306368 L1.47635248,22.0768926 L0.0162402201,22.0768926 L0.0154715991,4.11169688 C-0.117424115,2.8976469 0.612367024,1.52000759 1.95251677,0.68258909 Z",id:"形状结合",transform:"translate(3.500000, 11.038446) scale(-1, -1) translate(-3.500000, -11.038446) "},null)])])])])}}),Ce={RIGHT:ie,WRONG:ae,NOT_PLAY:le,CADENCE_WRONG:ce,INTONATION_WRONG:ue,INTEGRITY_WRONG:se},Le=i({name:"music-list",setup:function(){var e=l(),n=C({videoFilePath:"",cadence:0,integrity:0,intonation:0,score:0,heardLevel:""}),i=C({isLoading:!0,paddingLeft:"",headerHide:!1,musicalNotesPlayStats:[],userMeasureScore:{}}),s=function(){var e=c(a().mark((function e(){var t,n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,R();case 2:null!=(t=e.sent)&&t.content&&(n=t.content,r=n.isSpecialShapedScreen,n.notchHeight,r&&(i.paddingLeft="25px"));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();u((function(){s(),L()}));var d=function(e){var t=P.partIndex,n=o(o({},e.data),e.data.background[t]);f(n,t),p(),i.isLoading=!1},f=function(e,t){if(P.scrollContainer="scrollContainer",P.detailId=e.id,P.xmlUrl=e.xmlFileUrl,P.partIndex=t,P.subjectId=e.musicSubject,P.categoriesId=e.categoriesId,P.categoriesName=e.musicTagNames,P.enableEvaluation=!!e.canEvaluate,P.examSongId=e.id+"",P.examSongName=e.musicSheetName,e.extConfigJson)try{P.extConfigJson=JSON.parse(e.extConfigJson)}catch(n){console.error("解析扩展字段错误:",n)}P.isOpenMetronome="MP3_METRONOME"===e.mp3Type,P.needTick=e.isOpenMetronome,P.isShowFingering=!!e.showFingering,P.music=e.audioFileUrl,P.accompany=e.metronomeUrl||e.metronomeUrl,P.midiUrl=e.midiUrl,P.parentCategoriesId=e.musicTag,P.playMode="MP3"===e.audioType?"mp3":"midi",P.originSpeed=P.speed=e.speed,P.track=e.track,P.enableNotation=!!e.notation,P.subjectId=B(P.subjectId,"ORCHESTRA"),P.isPercussion=23==P.subjectId||113==P.subjectId||121==P.subjectId||F(),P.fingeringInfo=M(P.subjectId)},p=function(){P.extConfigJson.multitrack&&U("multitrack",P.extConfigJson.multitrack)};h(c(a().mark((function t(){var o,l,c,u,s,f,h,p,v;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return window.appName="colexiu",t.next=3,g=e.id,r.get("/musicPracticeRecord/getLastEvaluationMusicalNotesPlayStats",{params:{recordId:g}});case 3:for(p in h=t.sent,P.partIndex=Number(null==h||null===(o=h.data)||void 0===o?void 0:o.partIndex),i.musicalNotesPlayStats=(null==h||null===(l=h.data)||void 0===l||null===(c=l.musicalNotesPlayStats)||void 0===c?void 0:c.notesData)||[],i.userMeasureScore=(null==h||null===(u=h.data)||void 0===u?void 0:u.userMeasureScore)||{},n)n[p]=null==h||null===(v=h.data)||void 0===v?void 0:v[p];Promise.all([(a=null==h||null===(s=h.data)||void 0===s||null===(f=s.musicalNotesPlayStats)||void 0===f?void 0:f.examSongId,r.get("/musicSheet/detail/"+a))]).then((function(e){d(e[0])}));case 9:case"end":return t.stop()}var a,g}),t)}))));var g=function(e){P.musicRendered=!0,P.osmd=e,P.times=D(e),console.log("🚀 ~ state.times:",P.times),function(){var e,n=t(i.musicalNotesPlayStats);try{for(n.s();!(e=n.n()).done;){var r=e.value,o=P.times[r.musicalNotesIndex],a=document.getElementById("vf-"+o.id);null==a||a.classList.add(Ce[r.musicalErrorType])}}catch(l){n.e(l)}finally{n.f()}}(),function(){for(var e in i.userMeasureScore)J(i.userMeasureScore[e],!1)}(),Q()};return h((function(){window.addEventListener("resize",I)})),O((function(){window.removeEventListener("resize",I)})),function(){return v("div",{class:[re,$,P.setting.eyeProtection&&"eyeProtection"],style:{paddingLeft:i.paddingLeft}},[!P.musicRendered&&v("div",{class:Z},[v(j,{class:Z,row:8},null)]),v("div",{class:[ee,i.headerHide&&te],onClick:function(e){return e.stopPropagation()}},[v(T,{name:"van-slide-down"},{default:function(){return[P.musicRendered&&v(Ee,{scoreData:n},null)]}})]),v("div",{id:"scrollContainer",class:[ne,!P.setting.displayCursor&&"hideCursor"]},[v("div",{class:oe},[v("div",null,[v(Se,{fill:"#01C1B5"},null),v("span",null,[k("演奏正确")])]),v("div",null,[v(Se,{fill:"#067DD7"},null),v("span",null,[k("节奏错误")])]),P.isPercussion?null:v(y,null,[v("div",null,[v(Se,{fill:"#FFAB25"},null),v("span",null,[k("音准错误")])]),v("div",null,[v(Se,{fill:"#CC75FF"},null),v("span",null,[k("完成度不足")])])]),v("div",null,[v(Se,{fill:"#000"},null),v("span",null,[k("未演奏")])])]),!i.isLoading&&v(N,{onRendered:g},null)])])}}}),Ie=[{path:"/",component:Le},{path:"/:pathMatch(.*)*",component:K,meta:{title:"404 Not Fund"}}],Oe=G({history:H(),routes:Ie});e=navigator.userAgent,z({isApp:e.includes("ORCHESTRAAPPI")||e.includes("ORCHESTRAAPPA"),platformApi:e.includes("ORCHESTRATEACHER")?"/api-teacher":e.includes("ORCHESTRASTUDENT")?"/api-student":"/api-backend",platformType:"STUDENT",proxy:""}),W(X).use(Oe).mount("#app")}}}))}();