!function(){function e(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 t(t){for(var r=1;r=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,l=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){u=!0,i=e},f:function(){try{l||null==n.return||n.return()}finally{if(u)throw i}}}}function a(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)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(u){l=!0,a=u}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(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 i(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)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ndiv._info_15pat_20{height:1.92rem;box-sizing:border-box;padding:.13333rem .32rem;padding-top:calc(var(--header-padding-top) + .13333rem);overflow:hidden;display:flex;justify-content:space-between}._header_15pat_1>div._demos_15pat_29{right:.26667rem;height:initial;display:flex;margin-top:.26667rem;position:absolute;padding:0 .16rem;float:right;background-color:rgba(255,255,255,.6);height:1.01333rem;border-radius:.48rem;top:1.92rem}._header_15pat_1>div._demos_15pat_29>div{display:flex;align-items:center}._header_15pat_1>div._demos_15pat_29>div>span{display:inline-block;margin:0 .21333rem;font-size:.37333rem;color:#1a1a1a}._header_15pat_1 ._maininfo_15pat_52{flex:1;flex-direction:column;font-size:.64rem;color:#000}._header_15pat_1 .van-grid:after{display:none;border:none}._header_15pat_1 .van-grid-item__content{width:1.49333rem;padding:0;color:#333;display:flex;justify-content:space-between}._header_15pat_1 .van-grid-item__content:after{border-color:#e5e5e5}._header_15pat_1 .van-grid-item__content>div>span{font-size:.42667rem;font-weight:700}._header_15pat_1 .van-grid-item__content>span{color:#999;font-size:.32rem;display:block;height:.64rem;line-height:.64rem;text-align:center}._header_15pat_1 .van-grid-item__content>span.switch{width:1.12rem;border-radius:.32rem}._header_15pat_1 .van-grid-item__content>span.active{background-color:#defff9;color:#009b7e}._header_15pat_1 .van-grid-item__content{background-color:transparent}._header_15pat_1 .van-grid-item__content>span{width:initial;height:initial}._header_15pat_1 .van-grid-item__content:after{display:none;border:none}._line_15pat_103{position:relative}._line_15pat_103:before{width:100%;height:.21333rem;background:#fcd660;border-radius:.10667rem;opacity:.26;content:"";display:block;position:absolute;bottom:-.10667rem}._back_15pat_117{z-index:9;padding:0;height:auto;background-color:transparent;border:none}._btns_15pat_124 .van-grid-item__content>span{margin-top:0;font-size:.26667rem;width:initial;height:initial}._pop_15pat_130{padding:.42667rem .8rem;border-radius:.48rem}._pop_15pat_130 h2{font-size:.42667rem;color:#333;font-weight:400;text-align:center}._pop_15pat_130>div{margin-left:0}._pop_15pat_130 .van-badge__wrapper{width:.37333rem;height:.64rem;display:block;text-align:center}._pop_15pat_130 .van-grid-item__content{display:flex;flex-direction:row;align-items:start;justify-content:flex-start;padding-left:0;padding-right:0}._pop_15pat_130 .van-grid-item__content>span{display:inline-block;margin-left:.16rem;flex:1;color:#1a1a1a;font-size:.32rem;width:4.53333rem;height:.48rem}._close_15pat_166{position:absolute;right:-.32rem;top:-.32rem;width:.64rem;height:.64rem;border-radius:100%;border:.10667rem solid #ffffff;background-color:#2dc7aa;display:flex}._close_15pat_166 img{display:block;margin:auto}._try_15pat_181{position:fixed;left:50%;transform:translate(-50%);bottom:.53333rem}._try_15pat_181 ._trybtn_15pat_187{width:4.37333rem;height:1.17333rem;background:linear-gradient(180deg,#59e5d5 0%,#2dc7aa 100%);box-shadow:0 .10667rem .37333rem rgba(45,199,170,.25);border-radius:.64rem;font-size:.48rem;color:#fff;margin:auto;border:none}\n',document.head.appendChild(c),System.register(["./App-legacy.a7c1546c.js","./lib-flexible-legacy.e8ca3d6a.js","./index-legacy.f25f109a.js","./index-legacy.b6353a14.js","./state-legacy.6b988acb.js","./wx_bg-legacy.dbd1cf29.js","./index-legacy.5052b623.js","./music-legacy.996cf9b7.js","./index-legacy.baf8f8e7.js","./index-legacy.640d8697.js"],(function(){"use strict";var e,o,i,l,c,s,d,p,f,v,m,_,h,g,y,A,b,x,w,S,C,O,N,I,E,k,F,T,j,R,L,D,P,z,B,H,M,G,W,q;return{setters:[function(t){e=t.b,o=t.u,i=t.r,l=t.d,c=t.t,s=t.a,d=t.G,p=t.e,f=t.g,v=t.B,m=t.F,_=t.P,h=t.T,g=t.w,y=t.h,A=t.i,b=t.j,x=t.S,w=t.E,S=t.M,C=t.k,O=t.o,N=t.l,I=t.m,E=t.n,k=t.p,F=t.q,T=t.v,j=t.x,R=t.y,L=t.z,D=t.C,P=t.f,z=t.D,B=t.c},function(){},function(){},function(e){H=e.h,M=e.N,G=e.c},function(e){W=e.s},function(e){q=e.w},function(){},function(){},function(){},function(){}],execute:function(){var U="_musicSheet_18na6_1",Y={header:"_header_15pat_1",center:"_center_15pat_4",info:"_info_15pat_20",demos:"_demos_15pat_29",maininfo:"_maininfo_15pat_52",line:"_line_15pat_103",back:"_back_15pat_117",btns:"_btns_15pat_124",pop:"_pop_15pat_130",close:"_close_15pat_166",try:"_try_15pat_181",trybtn:"_trybtn_15pat_187"},Q=e(),X=o(),K=i("pitch"),V=i(!1),J=i(!1),Z=l({name:"ColexiuReportHeader",props:{detail:{type:Object},record:{type:Object},className:{type:String}},emits:["activeChange"],setup:function(e,t){var n=t.emit;return(0,t.expose)({autoShow:function(){"1"!=localStorage.getItem("explain-view")&&(V.value=!0,setTimeout((function(){V.value=!1,localStorage.setItem("explain-view","1")}),5e3))}}),function(){var t,r,a=c(e),o=(a.detail,a.record);return s("header",{class:[Y.header,Y.className]},[s("div",{class:Y.info},[o.value&&null!==(t=o.value)&&void 0!==t&&t.heardLevel?s(d,{class:Y.center,columnNum:5},{default:function(){return[s(p,{class:"van-hairline--right"},{text:function(){return s("span",null,[f("难度")])},icon:function(){var e;return s("span",null,[H[null===(e=o.value)||void 0===e?void 0:e.heardLevel]])}}),s(p,{class:"van-hairline--right"},{text:function(){return s("span",null,[f("评测分数")])},icon:function(){var e;return s("span",null,[null===(e=o.value)||void 0===e?void 0:e.score,f("分")])}}),s(p,{class:"van-hairline--right",onClick:function(){K.value="pitch",n("activeChange","pitch")}},{text:function(){return s("span",{class:["switch",{active:"pitch"===K.value}]},[f("音准")])},icon:function(){var e;return s("span",{style:{color:"#2DC7AA"}},[null===(e=o.value)||void 0===e?void 0:e.intonation,f("分")])}}),s(p,{class:"van-hairline--right",onClick:function(){K.value="rhythm",n("activeChange","rhythm")}},{text:function(){return s("span",{class:["switch",{active:"rhythm"===K.value}]},[f("节奏")])},icon:function(){var e;return s("span",{style:{color:"#FF4E19"}},[null===(e=o.value)||void 0===e?void 0:e.cadence,f("分")])}}),s(p,{onClick:function(){K.value="completion",n("activeChange","completion")}},{text:function(){return s("span",{class:["switch",{active:"completion"===K.value}]},[f("时值")])},icon:function(){var e;return s("span",{style:{color:"#FFC459"}},[null===(e=o.value)||void 0===e?void 0:e.integrity,f("分")])}})]}}):null,s(d,{columnNum:3,class:Y.btns},{default:function(){return[s(p,{onClick:function(){return V.value=!0}},{text:function(){return s("span",null,[f("释义")])},icon:function(){return s("img",{src:"/orchestra-music-score/assets/explain.9e197a0a.svg"},null)}})]}})]),null!==(r=o.value)&&void 0!==r&&r.score?s("div",{class:Y.try},[s(v,{class:Y.trybtn,onClick:function(){var e,t,n,r,a;Q.weixin?J.value=!0:(n=location.origin+"/student/#/music-detail",r={url:n+="?id=".concat(null===(e=o.value)||void 0===e||null===(t=e.musicalNotesPlayStats)||void 0===t?void 0:t.examSongId),action:X.action||"h5",pageTag:X.pageTag||1},a=encodeURIComponent(JSON.stringify(r)),/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href="ColexiuStudent://linkUrl=".concat(a):/(Android)/i.test(navigator.userAgent)?(r.url=encodeURIComponent(r.url),window.location.href="colexiustudent://html:8888/SplashActivity?url=".concat(encodeURIComponent(JSON.stringify(r)))):h("请用手机或移动设备打开"),Q.isApp||setTimeout((function(){location.href=location.origin+"/student/#/download"}),3e3))}},{default:function(){return[f("我来试一试")]}})]):null,o.value?s("div",{class:Y.demos},["pitch"===K.value&&s(m,null,[s("div",null,[s(M,{fill:"#FFAB25",shadow:!0,x:-3,y:0},null),s("span",null,[f("音高了")])]),s("div",null,[s(M,{fill:"#FFAB25",shadow:!0,x:-1,y:-2},null),s("span",null,[f("音低了")])])]),W.isPercussion?null:s(m,null,["rhythm"===K.value&&s(m,null,[s("div",null,[s(M,{fill:"#FF4444",shadow:!0,x:0},null),s("span",null,[f("节奏快了")])]),s("div",null,[s(M,{fill:"#FF4444",shadow:!0,x:-3,y:-2},null),s("span",null,[f("节奏慢了")])])]),"completion"===K.value&&s("div",null,[s(M,{fill:"#CC75FF"},null),s("span",null,[f("时值不足")])])])]):null,s(_,{show:J.value,position:"top",style:{background:"none"}},{default:function(){return[s("img",{src:q,style:{width:"80%",display:"block",margin:"auto"}},null)]}}),s(_,{teleport:"body",show:V.value,class:Y.pop,style:{width:"60vw"},onClickOverlay:function(){return V.value=!1}},{default:function(){return[s("div",{class:Y.close,onClick:function(){return V.value=!1}},[s("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAAHeq0ewAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAC6ADAAQAAAABAAAACwAAAACBvloGAAABH0lEQVQYGW1Ru0oDURA9s27EQrETEbv8g3+RSgub7IoELASF7CYGbbYQFHLjB4gI2WAT8LPEWjCd7Hjm3t1VwWnmdeacmXsFo3SMSi9iqF4CuodgRRGLj7K+YqvbAbLkru4hYrAD69CY6Ckgz1gu1wR5ck+qK1/wDUJmC4ngyonBA9o8J/410vg2qd4wne9DRDFKrqFYl0aVxQfqDIl8FAYmXHk6wSvc4ijC+GTa8isODRShqjJ4RGlHgOd/whZvkXVgfO8c2Q05d3XzQdgkdZ7FGoIVDnrb9QLp089xNU3jTHKze4yi+ArPao08mdUnNDD6X0qWIe/f8PDbFmFMKh9/lOwtXJnFxHcguuLACz/t3OT8oOqAlzoOnTHfsNo35fxqh9SRnu4AAAAASUVORK5CYII="},null)]),s("h2",null,[f("图标释义")]),s(d,{columnNum:2,class:Y.btns,border:!1},{default:function(){return[s(p,null,{text:function(){return s("span",null,[f("绿色音符:演奏正确")])},icon:function(){return s(M,{fill:"#01C1B5"},null)}}),s(p,null,{text:function(){return s("span",null,[f("红色音符:错音")])},icon:function(){return s(M,{fill:"#FF4444"},null)}}),s(p,null,{text:function(){return s("span",null,[f("音符重影(红色在前):节奏过快")])},icon:function(){return s(M,{fill:"#FF4444",shadow:!0,x:0},null)}}),s(p,null,{text:function(){return s("span",null,[f("音符重影(红色在后):节奏慢了")])},icon:function(){return s(M,{fill:"#FF4444",shadow:!0,x:-3,y:-2},null)}}),s(p,null,{text:function(){return s("span",null,[f("音符重影(黄色在上):音高了")])},icon:function(){return s(M,{fill:"#FFAB25",shadow:!0,x:-3,y:0},null)}}),s(p,null,{text:function(){return s("span",null,[f("音符重影(黄色在下):音低了")])},icon:function(){return s(M,{fill:"#FFAB25",shadow:!0,x:-1,y:-2},null)}}),s(p,null,{text:function(){return s("span",null,[f("紫色音符:完整度不足")])},icon:function(){return s(M,{fill:"#CC75FF"},null)}}),s(p,null,{text:function(){return s("span",null,[f("灰色音符:未演奏")])},icon:function(){return s(M,{fill:"#AEAEAE"},null)}})]}})]}})])}}}),$=o(),ee=function(){var e=u(regeneratorRuntime.mark((function e(t,n){var r,a,o,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,F(t);case 2:return r=e.sent,a=i(""),o=T(r),a.value=j(o.parsedXML,{title:n.musicSheetName}),l=Number($["part-index"])||0,a.value=R(a.value,l),e.abrupt("return",a);case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),te=l({name:"Colexiu",setup:function(){var e=i(),o=i(!0),l=i(!1),c=i(""),d=i([]),p=i([]),f=function(e){var t=i("loading"),n=i({}),r=i({});return O(u(regeneratorRuntime.mark((function e(){var a,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.value="loading",e.prev=1,e.next=4,N.get("/sysMusicRecord/getLastEvaluationMusicalNotesPlayStats",{params:{recordId:$.id}});case 4:if((o=e.sent).data){e.next=8;break}return t.value="error",e.abrupt("return");case 8:return r.value=o.data,console.log(r.value),e.next=12,N.get("/music/sheet/detail/".concat(null===(a=r.value)||void 0===a?void 0:a.musicalNotesPlayStats.examSongId));case 12:i=e.sent,n.value=i.data,b.partIndex=o.data.partIndex||0,t.value="success",e.next=22;break;case 18:e.prev=18,e.t0=e.catch(1),t.value="error",console.log(e.t0);case 22:case"end":return e.stop()}}),e,null,[[1,18]])})))),[t,n,r]}($.id),v=a(f,3),_=v[0],h=v[1],F=v[2];g(_,u(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("success"!==_.value||!h.value.xmlFileUrl){e.next=5;break}return e.next=3,ee(h.value.xmlFileUrl,h.value);case 3:t=e.sent,c.value=t.value;case 5:case"end":return e.stop()}}),e)})))),y();var T=function(){R(),o.value=!1;var e,t,n=r((t=["RIGHT","WRONG","CADENCE_WRONG"],"pitch"===K.value?t.push.apply(t,["CADENCE_FAST","CADENCE_SLOW"]):"rhythm"===K.value?t.push.apply(t,["INTONATION_HIGH","INTONATION_LOW"]):"completion"===K.value&&t.push.apply(t,["INTEGRITY_WRONG"]),F.value.musicalNotesPlayStats.notesData.filter((function(e){return t.includes(e.musicalErrorType)}))));try{var a=function(){var t=e.value,n=p.value[t.musicalNotesIndex];setTimeout((function(){if(!d.value.includes(n.id)){d.value.push(n.id);var e=document.getElementById("vf-"+n.id),r=document.getElementById("vf-"+n.id+"-stem"),a=t.musicalErrorType,o=["INTONATION_HIGH","INTONATION_LOW","CADENCE_FAST","CADENCE_SLOW"].includes(a);if(null==r||r.classList.add(G[a]),null==e||e.classList.add(G[a]),e&&o){var i;null==r||r.classList.remove(G[a]),null==r||r.classList.add(G.RIGHT),null==e||e.classList.remove(G[a]),null==e||e.classList.add(G.RIGHT);var l=e.querySelector(".vf-notehead").cloneNode(!0);l.style.transform=function(e){switch(e){case"CADENCE_FAST":return"translateX(2px)";case"CADENCE_SLOW":return"translateX(-2px)";case"INTONATION_HIGH":return"translateY(-2px)";case"INTONATION_LOW":return"translateY(2px)";default:return""}}(a),e.style.opacity=".7",r&&(r.style.opacity=".7"),l.id="vf-"+n.id+"-copy",null==l||l.classList.add(G[a]),null===(i=osmd)||void 0===i||i.container.querySelector("svg").insertAdjacentElement("afterbegin",l)}}}),300)};for(n.s();!(e=n.n()).done;)a()}catch(i){n.e(i)}finally{n.f()}},j=function(e){if(e){var t,n=r(e.classList.values());try{for(n.s();!(t=n.n()).done;){var a=t.value;0!==(null==a?void 0:a.indexOf("vf-"))&&e.classList.remove(a)}}catch(o){n.e(o)}finally{n.f()}}},R=function(){var e,t=r(d.value);try{for(t.s();!(e=t.n()).done;){var n=e.value;j(document.getElementById("vf-"+n)),j(document.getElementById("vf-"+n+"-stem"));var a="vf-"+n+"-copy",o=document.getElementById(a);o&&o.remove()}}catch(i){t.e(i)}finally{t.f()}d.value=[]},P=function(a){var i;o.value=!1,null===(i=e.value)||void 0===i||i.autoShow(),setTimeout((function(){for(var e=0,t=Array.from(document.querySelectorAll(".vf-beam"));e2&&void 0!==arguments[2])||arguments[2],o=L(e);b.evaluatings=t(t({},b.evaluatings),{},n({},o.measureIndex,t(t(t({},o),D(r.score)),{},{score:r.score,dontTransition:a})))};if(F.value.userMeasureScore)for(var u in F.value.userMeasureScore)if(Object.prototype.hasOwnProperty.call(F.value.userMeasureScore,u)){var c,s=F.value.userMeasureScore[u],d=r(p.value);try{for(d.s();!(c=d.n()).done;){var f=c.value;if(s.measureRenderIndex==f.noteElement.sourceMeasure.MeasureNumberXML-1)if(f.noteElement.tie){var v,m=r(f.noteElement.tie.notes);try{for(m.s();!(v=m.n()).done;){var _=v.value,h=k(_);h&&l(h,s,_!==f.noteElement.tie.StartNote)}}catch(g){m.e(g)}finally{m.f()}}else l(f,s)}}catch(g){d.e(g)}finally{d.f()}}},z=function(){l.value=!0,o.value=!1};return function(){var t=o.value||"loading"===_.value,n=l.value||"error"===_.value;return s("div",{class:[A.container,C.sett.eyeProtection&&"eyeProtection",C.sett.camera&&"openCamera"]},[s(Z,{className:A.header,detail:h.value,record:F,ref:e,style:{paddingLeft:b.isSpecialShapedScreen?b.notchHeight/2+"px":"auto"},onActiveChange:function(){return T()}},null),s("div",{id:"colexiu-detail-music-sheet",class:[A.musicSheet,U],style:{paddingLeft:b.isSpecialShapedScreen?b.notchHeight/2+"px":"auto"}},[t&&!n&&s(x,{class:A.skeleton,rowWidth:"80%",title:!0,row:3},null),n&&s(w,null,null),c.value&&s(m,null,[s("h3",{style:{fontSize:"24px",fontWeight:"normal",textAlign:"center",padding:"0 10px",marginTop:"36px",marginBottom:"0px",marginLeft:"auto"},class:"van-ellipsis"},[h.value.musicSheetName]),s(S,{score:c.value,showSection:!0,opotions:{drawTitle:!1,drawComposer:!1,drawLyricist:!1,drawMetronomeMarks:!0,drawMeasureNumbers:!0,autoResize:!1},EngravingRules:{DefaultColorNotehead:"#aeaeae",DefaultColorRest:"#aeaeae",DefaultColorMusic:"#aeaeae",DefaultColorStem:"#aeaeae",DefaultColorChordSymbol:"#aeaeae",DefaultColorLabel:"#aeaeae",DYMusicScoreType:C.sett.type},onRerender:P,onRenderError:z},null)])])])}}});document.body.style.setProperty("--osdm-zoom",""+P()),z(),B(te).mount("#app")}}}))}();