1 |
- !function(){function e(e){return function(e){if(Array.isArray(e))return l(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 t(e){return(t="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)}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function i(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?n(Object(i),!0).forEach((function(t){a(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(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 i,a,r=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(r.push(i.value),!t||r.length!==t);o=!0);}catch(c){l=!0,a=c}finally{try{o||null==n.return||n.return()}finally{if(l)throw a}}return r}(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 l(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)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function c(e,t,n,i,a,r,o){try{var l=e[r](o),c=l.value}catch(u){return void n(u)}l.done?t(c):Promise.resolve(c).then(i,a)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(i,a){var r=e.apply(t,n);function o(e){c(r,i,a,o,l,"next",e)}function l(e){c(r,i,a,o,l,"throw",e)}o(void 0)}))}}System.register(["./index-legacy.379d0d8b.js","./utils-legacy.1caeb47c.js","./index-legacy.d6989fc2.js","./request-legacy.93a7122e.js","./runtime-core.esm-bundler-legacy.203f7120.js","./index-legacy.187eea19.js","./index.module-legacy.2fb72ca1.js","./index-legacy.8c040e1e.js","./TransposeCalculator-legacy.f07a233b.js","./loading-legacy.80b3ec4f.js","./index-legacy.568f2616.js","./index-legacy.a561dd96.js","./_commonjsHelpers-legacy.1db667c6.js"],(function(n,o){"use strict";var l,c,s,d,p,f,h,g,v,m,b,y,_,w,x,S,k,I,j,R,B,P,T,D,C,F,L,O,z,N,U,E,A,M,q,J,W,K,V,H,Y,G,$,Q,X,Z,ee,te,ne,ie,ae,re,oe,le,ce,ue,se,de,pe,fe,he,ge,ve,me,be,ye,_e,we,xe,Se,ke,Ie,je,Re,Be,Pe,Te=document.createElement("style");return Te.textContent="._popup_17c4a_1{background:transparent;width:3.25333rem;border-radius:.24rem}._wrap_17c4a_6{background:#fff;text-align:center;border-radius:0 0 .24rem .24rem}._image_17c4a_11{width:100%;display:block;margin-bottom:-.10667rem}._title_17c4a_16{font-size:.21333rem;font-weight:500;color:#1a1a1a;line-height:.32rem;padding:.26667rem 0 .08rem}._andTitle_17c4a_23{font-size:13Px}._sub_17c4a_26{font-size:.16rem;font-weight:400;color:gray;margin-bottom:.21333rem}._andSub_17c4a_32{font-size:12Px}._btnWrap_17c4a_35{display:flex;align-items:center;justify-content:space-evenly;padding-bottom:.21333rem}._btn_17c4a_35{width:1.44rem;height:.45333rem;background-color:transparent;border:none;background-size:100% 100%;background-repeat:no-repeat}._cancelBtn_17c4a_49{background-image:url("+new URL("no-confirm-btn-5ed39ffd.svg",o.meta.url).href+")}._confirmBtn_17c4a_52{background-image:url("+new URL("confirm-btn-a36604ec.svg",o.meta.url).href+")}._tryoutBtn_17c4a_55{background-image:url("+new URL("tryout-btn-891d6395.svg",o.meta.url).href+')}._discounts_17c4a_58{position:relative}._discounts_17c4a_58:after{width:.66667rem;height:.21333rem;line-height:.21333rem;background:linear-gradient(180deg,#ffb635 0%,#ff4e18 100%);border-radius:.10667rem .10667rem .10667rem 0;content:"\\4e13\\5c5e\\4f18\\60e0";font-size:.13333rem;color:#fff;top:-.16rem;position:absolute;left:.16rem}._membershipBtn_17c4a_74{background-image:url('+new URL("membership-btn-6c4804e5.svg",o.meta.url).href+")}._demandBtn_17c4a_77{background-image:url("+new URL("demand-btn-56c792ce.svg",o.meta.url).href+")}._demandBtnFree_17c4a_80{background-image:url("+new URL("demand-btn-free-c8a03b7c.svg",o.meta.url).href+")}._earphoneBtn_17c4a_83{background-image:url("+new URL("earphone-btn-21b7f499.svg",o.meta.url).href+")}._closeBtn_17c4a_86{position:absolute;right:-30Px;top:20Px}._container_hiwv0_1 img{width:100%;margin:auto;display:block}._changeIndex_hiwv0_6{font-size:.16rem;position:absolute;left:.64rem;bottom:.53333rem;z-index:10;width:.4rem;height:.4rem;border-radius:100%;background-color:#01c1b5;line-height:.4rem;text-align:center;color:#fff;box-shadow:0 0 .26667rem rgba(0,0,0,.05)}.transverse ._changeIndex_hiwv0_6{bottom:.26667rem;left:.02667rem}.flute ._changeIndex_hiwv0_6{left:.32rem!important}.piccolo ._changeIndex_hiwv0_6{left:1.5vw;bottom:.53333rem}.clarinet ._changeIndex_hiwv0_6{left:0!important}.horn ._changeIndex_hiwv0_6{left:1vw;top:1vh}.up-bass-horn ._changeIndex_hiwv0_6{left:1vw}.tuba ._changeIndex_hiwv0_6{right:inherit;left:1vw;bottom:.53333rem}.saxophone ._changeIndex_hiwv0_6{left:1vw}.trombone ._changeIndex_hiwv0_6{left:.32rem!important}@keyframes _activeopacity_hiwv0_1{0%{transforopacitym:0}to{opacity:1}}@keyframes _leftrotates_hiwv0_1{0%{transform:rotate(0)}50%{transform:rotate(-10deg)}to{transform:rotate(-10deg)}}@keyframes _rightrotates_hiwv0_1{0%{transform:rotate(0)}50%{transform:rotate(5deg)}to{transform:rotate(5deg)}}.small-drum img[data-index=active]{animation:_activeopacity_hiwv0_1 .2s;animation-delay:.3s;transform-origin:0 0}.small-drum img[data-index=left]{animation:_leftrotates_hiwv0_1 .5s;transform-origin:0 0}.small-drum img[data-index=right]{animation:_rightrotates_hiwv0_1 .5s;transform-origin:0 0}.piccolo{margin-top:0}.piano .right101 #b101,.piano .right102 #b102,.piano .right103 #b103,.piano .right103 #b103,.piano .right104 #b104,.piano .right105 #b105,.piano .right106 #b106,.piano .right107 #b107,.piano .right108 #b108,.piano .right109 #b109,.piano .right110 #b110,.piano .right111 #b111,.piano .right112 #b112,.piano .right113 #b113,.piano .right114 #b114,.piano .right115 #b115,.piano .right116 #b116,.piano .right117 #b117,.piano .right118 #b118,.piano .right119 #b119,.piano .right120 #b120,.piano .right121 #b121,.piano .right122 #b122,.piano .right123 #b123,.piano .right124 #b124,.piano .right125 #b125,.piano .right126 #b126,.piano .right127 #b127,.piano .right128 #b128,.piano .right129 #b129,.piano .right130 #b130,.piano .right131 #b131,.piano .right132 #b132,.piano .right133 #b133,.piano .right134 #b134,.piano .right135 #b135,.piano .right136 #b136,.piano .right137 #b137,.piano .right138 #b138,.piano .right139 #b139,.piano .right140 #b140,.piano .right141 #b141,.piano .right142 #b142,.piano .right143 #b143,.piano .right144 #b144,.piano .right145 #b145,.piano .right146 #b146,.piano .right147 #b147,.piano .right148 #b148,.piano .right149 #b149,.piano .right150 #b150,.piano .right151 #b151,.piano .right152 #b152{fill:#9fb9f9;stroke:#3f6ee0}.piano .right1 #h1>path:first-child,.piano .right2 #h2>path:first-child,.piano .right3 #h3>path:first-child,.piano .right3 #h3>path:first-child,.piano .right4 #h4>path:first-child,.piano .right5 #h5>path:first-child,.piano .right6 #h6>path:first-child,.piano .right7 #h7>path:first-child,.piano .right8 #h8>path:first-child,.piano .right9 #h9>path:first-child,.piano .right10 #h10>path:first-child,.piano .right11 #h11>path:first-child,.piano .right12 #h12>path:first-child,.piano .right13 #h13>path:first-child,.piano .right14 #h14>path:first-child,.piano .right15 #h15>path:first-child,.piano .right16 #h16>path:first-child,.piano .right17 #h17>path:first-child,.piano .right18 #h18>path:first-child,.piano .right19 #h19>path:first-child,.piano .right20 #h20>path:first-child,.piano .right21 #h21>path:first-child,.piano .right22 #h22>path:first-child,.piano .right23 #h23>path:first-child,.piano .right24 #h24>path:first-child,.piano .right25 #h25>path:first-child,.piano .right26 #h26>path:first-child,.piano .right27 #h27>path:first-child,.piano .right28 #h28>path:first-child,.piano .right29 #h29>path:first-child,.piano .right30 #h30>path:first-child,.piano .right31 #h31>path:first-child,.piano .right32 #h32>path:first-child,.piano .right33 #h33>path:first-child,.piano .right34 #h34>path:first-child,.piano .right35 #h35>path:first-child,.piano .right36 #h36>path:first-child{fill:url(#linearGradient-2)}.piano .left101 #b101,.piano .left102 #b102,.piano .left103 #b103,.piano .left103 #b103,.piano .left104 #b104,.piano .left105 #b105,.piano .left106 #b106,.piano .left107 #b107,.piano .left108 #b108,.piano .left109 #b109,.piano .left110 #b110,.piano .left111 #b111,.piano .left112 #b112,.piano .left113 #b113,.piano .left114 #b114,.piano .left115 #b115,.piano .left116 #b116,.piano .left117 #b117,.piano .left118 #b118,.piano .left119 #b119,.piano .left120 #b120,.piano .left121 #b121,.piano .left122 #b122,.piano .left123 #b123,.piano .left124 #b124,.piano .left125 #b125,.piano .left126 #b126,.piano .left127 #b127,.piano .left128 #b128,.piano .left129 #b129,.piano .left130 #b130,.piano .left131 #b131,.piano .left132 #b132,.piano .left133 #b133,.piano .left134 #b134,.piano .left135 #b135,.piano .left136 #b136,.piano .left137 #b137,.piano .left138 #b138,.piano .left139 #b139,.piano .left140 #b140,.piano .left141 #b141,.piano .left142 #b142,.piano .left143 #b143,.piano .left144 #b144,.piano .left145 #b145,.piano .left146 #b146,.piano .left147 #b147,.piano .left148 #b148,.piano .left149 #b149,.piano .left150 #b150,.piano .left151 #b151,.piano .left152 #b152{fill:#ffc046;stroke:#ff6f38}.piano .left1 #h1>path:first-child,.piano .left2 #h2>path:first-child,.piano .left3 #h3>path:first-child,.piano .left3 #h3>path:first-child,.piano .left4 #h4>path:first-child,.piano .left5 #h5>path:first-child,.piano .left6 #h6>path:first-child,.piano .left7 #h7>path:first-child,.piano .left8 #h8>path:first-child,.piano .left9 #h9>path:first-child,.piano .left10 #h10>path:first-child,.piano .left11 #h11>path:first-child,.piano .left12 #h12>path:first-child,.piano .left13 #h13>path:first-child,.piano .left14 #h14>path:first-child,.piano .left15 #h15>path:first-child,.piano .left16 #h16>path:first-child,.piano .left17 #h17>path:first-child,.piano .left18 #h18>path:first-child,.piano .left19 #h19>path:first-child,.piano .left20 #h20>path:first-child,.piano .left21 #h21>path:first-child,.piano .left22 #h22>path:first-child,.piano .left23 #h23>path:first-child,.piano .left24 #h24>path:first-child,.piano .left25 #h25>path:first-child,.piano .left26 #h26>path:first-child,.piano .left27 #h27>path:first-child,.piano .left28 #h28>path:first-child,.piano .left29 #h29>path:first-child,.piano .left30 #h30>path:first-child,.piano .left31 #h31>path:first-child,.piano .left32 #h32>path:first-child,.piano .left33 #h33>path:first-child,.piano .left34 #h34>path:first-child,.piano .left35 #h35>path:first-child,.piano .left36 #h36>path:first-child{fill:url(#linearGradient-3)}.evaluating ._fingering_shnq0_1{box-shadow:0 -.26667rem .26667rem #e2f6f1;background:#E2F6F1}.evaluating ._fingering_shnq0_1.vertical{box-shadow:none!important}.eyeProtection .fingering{box-shadow:0 -.26667rem .26667rem var(--eye-background-color);background:var(--eye-background-color)}.eyeProtection .fingering.vertical{box-shadow:none!important}._fingering_shnq0_1{position:fixed;bottom:0;left:0;right:0;padding:.13333rem;box-sizing:border-box;z-index:999;padding-top:0;box-shadow:0 -.26667rem .26667rem #fff;background:#fff}._fingering_shnq0_1.vertical{box-shadow:none!important}._fingering_shnq0_1.vertical{top:.93333rem;left:0;right:initial}._fingering_shnq0_1.vertical:before{display:none}._fingering_shnq0_1.transverse>div{max-width:60%;margin:auto}._fingering_shnq0_1 .substituteFinger{background:url("+new URL("substituteFinger-5d97109d.svg",o.meta.url).href+") no-repeat center;background-size:contain;left:0;color:transparent}._wrap_1ojzw_1{position:fixed;left:0;top:50%;transform:translateY(-50%);z-index:1000}._wrap_1ojzw_1 .van-cell-group{background-color:rgba(255,255,255,.8)}._wrap_1ojzw_1 .van-cell{padding:10Px 16Px;line-height:14Px;background-color:transparent}._wrapBottom_1ojzw_16{background-color:rgba(255,255,255,.8)}\n",document.head.appendChild(Te),{setters:[function(e){l=e.p,c=e.q,s=e.s,d=e.u,p=e.r,f=e.t,h=e.v,g=e.w,v=e.x,m=e.y,b=e.B,y=e.z,_=e.A,w=e.F,x=e.H,S=e.I,k=e.J,I=e.K,j=e.L,R=e.N,B=e.O,P=e.P,T=e.Q,D=e.R,C=e.T,F=e.U,L=e.V,O=e.b,z=e.W,N=e.X,U=e.Y,E=e.E,A=e.M,M=e.Z,q=e._,J=e.$,W=e.g,K=e.a0,V=e.a1,H=e.a2,Y=e.a3,G=e.a4,$=e.m},function(e){Q=e.a,X=e.T,Z=e.q,ee=e.b,te=e.h},function(e){ne=e.s,ie=e.j,ae=e.k,re=e.C},function(e){oe=e.z,le=e.r,ce=e.P,ue=e.T,se=e.a},function(e){de=e.K,pe=e.C,fe=e.d,he=e.c,ge=e.M,ve=e.F,me=e.V,be=e.L,ye=e.A,_e=e.N,we=e.O,xe=e.I},function(e){Se=e.B},function(e){ke=e.s},function(e){Ie=e.T},function(e){je=e.P},function(e){Re=e.u},function(e){Be=e.S},function(e){Pe=e.I},null],execute:function(){var Te=function(e,t){var n=de(!1);return t&&(console.log("曲谱为midi,使用app播放"),n.value=!0,ne.midiPlayIniting=!0,oe({api:"cloudDestroy"}),oe({api:"cloudDetail",content:{midi:t,denominator:c(s.osmd).denominator,numerator:c(s.osmd).numerator,originalSpeed:ne.activeDetail.originalSpeed,interval:50,duration:1e3*e}},(function(){ne.midiPlayIniting=!1,n.value=!1,t&&l("music")})),s.durationNum=e),{initial:n}},De=function(){var e=de(!0),t=de(!1),n=de(!1);try{var i=d().setting||{};"EVALUATING"===i.mode&&(n.value=!0,e.value=!1,t.value=!0),i.difficulty&&(Q.eva.difficulty=i.difficulty),ne.setting=i}catch(a){console.error("设置活动配置失败,请检查传入配置是否正确"),console.error(a)}return{showFingering:e,frozenMode:t,compulsionEvaluating:n}},Ce=function(){var e=u(regeneratorRuntime.mark((function e(){var t,n,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=de(.1),n=p(),e.prev=2,e.next=5,le.get("/sysParamConfig/queryByParamNameList",{prefix:"teacher"===n?"/api-teacher":"/api-student",params:{paramNames:"music_sheet_free_rate"}});case 5:a=e.sent,t.value=parseFloat((null===(i=a.data)||void 0===i?void 0:i[0].paramValue)||"10")/100,e.next=11;break;case 9:e.prev=9,e.t0=e.catch(2);case 11:return e.abrupt("return",t);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(){return e.apply(this,arguments)}}(),Fe=fe({name:"ButtonsPlayer",setup:function(){var e=r(f(),1)[0],t=function(){ne.activeTick>-1||(_(0),w(new Event("ended")))},n=Math.floor(2*Math.PI*16);return function(){var i=s.currentTimeNum/s.durationNum*n;return he(me,{to:"body"},{default:function(){var n;return[he("div",{class:h.player,id:"globalPlayer"},[he(X,{name:"start",duration:300},{default:function(){var t;return[e.value&&!(null!==(t=g.value)&&void 0!==t&&t.connentLoading)&&v.value&&he(Se,{style:{backgroundImage:"url(".concat(m,")")},class:[h.button,h.start],onClick:function(){var e,t;v.value=!1,null===(e=g.value)||void 0===e||null===(t=e.togglePlay)||void 0===t||t.call(e)}},{default:function(){return[ge("开始")]}})]}}),!s.evaluatingStatus&&he(ve,null,[("pause"===s.playState||"suspend"===s.playState)&&s.currentTimeNum>0&&!ne.sectionStatus&&he(Se,{class:[h.button,h.fullbtn],onClick:t},{default:function(){return[he(b,{key:"reset",name:"reset"},null)]}}),he(Se,{class:[h.button,h.fullbtn],style:{marginLeft:"14px"},disabled:(null===(n=ne.activeDetail)||void 0===n?void 0:n.isAppPlay)&&ne.midiPlayIniting,onClick:function(){y()}},{default:function(){return[he("div",{class:h.schedule},[he("div",{class:h.schedule},["play"===s.playState?he(b,{key:"pause",name:"pause"},null):he(b,{key:"play",name:"play"},null),s.currentTimeNum>0&&!ne.sectionStatus&&he("svg",{class:h.ring,width:"40",height:"40",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/200/svg"},[he("circle",{cx:"20",cy:"20",r:"16",fill:"none",stroke:"#D9F5EF","stroke-width":"2","stroke-linecap":"round"},null),he("circle",{class:h.fillring,cx:"20",cy:"20",r:"16",fill:"none",stroke:"#FFC459","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":i+",10000"},null)])])])]}})])])]}})}}}),Le={popup:"_popup_17c4a_1",wrap:"_wrap_17c4a_6",image:"_image_17c4a_11",title:"_title_17c4a_16",andTitle:"_andTitle_17c4a_23",sub:"_sub_17c4a_26",andSub:"_andSub_17c4a_32",btnWrap:"_btnWrap_17c4a_35",btn:"_btn_17c4a_35",cancelBtn:"_cancelBtn_17c4a_49",confirmBtn:"_confirmBtn_17c4a_52",tryoutBtn:"_tryoutBtn_17c4a_55",discounts:"_discounts_17c4a_58",membershipBtn:"_membershipBtn_17c4a_74",demandBtn:"_demandBtn_17c4a_77",demandBtnFree:"_demandBtnFree_17c4a_80",earphoneBtn:"_earphoneBtn_17c4a_83",closeBtn:"_closeBtn_17c4a_86"},Oe=""+new URL("microphone-7e50c915.svg",o.meta.url).href,ze=fe({name:"ColexiuMicrophone",setup:function(e,t){t.expose;return function(){return he("div",null,[he("img",{class:Le.image,src:Oe},null),he("div",{class:Le.wrap},[he("div",{class:Le.des},[he("div",{class:Le.title},[ge("开启权限")]),he("div",{class:Le.sub},[ge("请开启麦克风访问权限")])]),he("div",{class:Le.btnWrap},[he(Se,{class:ie(Le.btn,Le.cancelBtn)},null),he(Se,{class:ie(Le.btn,Le.confirmBtn)},null)])])])}}}),Ne=""+new URL("camera-ad45a2ea.svg",o.meta.url).href,Ue=fe({name:"ColexiuMicrophone",setup:function(e,t){t.expose;return function(){return he("div",null,[he("img",{class:Le.image,src:Ne},null),he("div",{class:Le.wrap},[he("div",{class:Le.des},[he("div",{class:Le.title},[ge("开启权限")]),he("div",{class:Le.sub},[ge("请开启相机访问权限")])]),he("div",{class:Le.btnWrap},[he(Se,{class:ie(Le.btn,Le.cancelBtn)},null),he(Se,{class:ie(Le.btn,Le.confirmBtn)},null)])])])}}}),Ee=""+new URL("membership-78b7ec9a.png",o.meta.url).href,Ae=d(),Me=fe({name:"ColexiuMember",setup:function(){var e=p(),t=function(){delete Ae.Authorization,oe({api:"openWebView",content:{url:location.origin+"/"+e+"/#/memberCenter?"+Z.stringify(i({},Ae)),orientation:1}})},n=function(){x.show=!1,_(0),S(0)};return function(){return he("div",null,[he("img",{class:Le.image,src:Ee},null),he("div",{class:Le.wrap},[he("div",{class:Le.des},[he("div",{class:Le.title},[ge("请开通会员")]),he("div",{class:Le.sub},[ge("开通会员后可完整使用该曲目")])]),he("div",{class:Le.btnWrap},[he(Se,{class:ie(Le.btn,Le.tryoutBtn),onClick:n},null),he(Se,{class:ie([Le.btn,Le.membershipBtn,a({},Le.discounts,1==Ae.discounts)]),onClick:t},null)])])])}}}),qe=""+new URL("demand-14944949.svg",o.meta.url).href;de(!1);var Je=d(),We=fe({name:"ColexiuDemand",setup:function(){var e=p(),t=function(){var t=u(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:delete Je.Authorization,oe({api:"openWebView",content:{url:location.origin+"/"+e+"/#/orderDetail?"+Z.stringify(i({orderType:"MUSIC"},Je)),orientation:1}});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),n=function(){x.show=!1,_(0),S(0)};return function(){var e;return he("div",{style:{position:"relative"}},[he("img",{class:Le.image,src:qe},null),he("div",{class:Le.wrap},[he("div",{class:Le.des},[he("div",{class:Le.title},[ge("该曲目为点播曲目")]),he("div",{class:Le.sub},[ge("点播价格 "),he("span",{style:{color:"#FF4E19"}},[ge("¥"),null===(e=ne.activeDetail)||void 0===e?void 0:e.musicPrice]),ge(",点播后可永久使用")])]),he("div",{class:Le.btnWrap},[he(Se,{class:ie(Le.btn,Le.tryoutBtn),onClick:n},null),he(Se,{class:ie(Le.btn,Le.demandBtn),onClick:t},null)])])])}}}),Ke=""+new URL("earphone-37a59b5d.svg",o.meta.url).href,Ve=fe({name:"ColexiuEarphone",setup:function(){return function(){return he("div",null,[he("img",{class:Le.image,src:Ke},null),he("div",{class:Le.wrap},[he("div",{class:Le.des},[he("div",{class:Le.title},[ge("请佩戴耳机")]),he("div",{class:Le.sub},[ge("佩戴耳机可以保证测评准确率哦~")])]),he("div",{class:Le.btnWrap},[he(Se,{class:ie(Le.btn,Le.earphoneBtn),onClick:function(){x.show=!1}},null)])])])}}});de(!1);var He=d(),Ye=fe({name:"memberAndDemand",setup:function(){var e=p(),t=function(){var t=u(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:delete He.Authorization,oe({api:"openWebView",content:{url:location.origin+"/"+e+"/#/orderDetail?"+Z.stringify(i({orderType:"MUSIC"},He)),orientation:1}});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),n=function(){delete He.Authorization,oe({api:"openWebView",content:{url:location.origin+"/"+e+"/#/memberCenter",orientation:1}})},a=function(){x.show=!1,_(0),S(0)};return function(){var e;return he("div",{style:{position:"relative"}},[he("img",{class:Le.closeBtn,src:k,onClick:a},null),he("img",{class:Le.image,src:qe},null),he("div",{class:Le.wrap},[he("div",{class:Le.des},[he("div",{class:[Le.title,Le.andTitle]},[ge("该曲目为会员曲目,可以单曲购买哦")]),he("div",{class:[Le.sub,Le.andSub]},[ge("开通酷乐秀会员海量曲目尽情练习"),he("br",null,null),ge("单曲点播仅需 "),he("span",{style:{color:"#FF4E19"}},[ge("¥"),null===(e=ne.activeDetail)||void 0===e?void 0:e.musicPrice]),ge(",点播后可永久使用")])]),he("div",{class:Le.btnWrap},[he(Se,{class:ie(Le.btn,Le.membershipBtn),onClick:n},null),he(Se,{class:ie(Le.btn,Le.demandBtn),onClick:t},null)])])])}}}),Ge=fe({name:"ColexiuPermission",setup:function(e,t){return(0,t.expose)({toggle:function(){x.show=!x.show}}),function(){return he(ce,{class:Le.popup,show:x.show,"onUpdate:show":function(e){return x.show=e},teleport:"body",onClosed:function(){_(0)}},{default:function(){return["microphone"===x.active?he(ze,null,null):"camera"===x.active?he(Ue,null,null):"member"===x.active?he(Me,null,null):"demand"===x.active?he(We,null,null):"earphone"===x.active?he(Ve,null,null):"memberAndDemand"===x.active?he(Ye,null,null):null]}})}}}),$e="_container_hiwv0_1",Qe="_changeIndex_hiwv0_6",Xe=fe({name:"fingering",props:{type:{type:String,default:""},fixedKey:{type:Number,default:0},fingeringInfo:{type:Object},loaded:{type:Function,default:function(){}},viewInfo:{type:Object}},setup:function(n,i){var a=i.expose,r=be(n),o=de(null);de(null);var l=de(0),c=de(0);return a({container:o,containerWidth:l}),function(){var i,a,l,u,s,d,p,f,h,g,v,m,b,y,_;if(null===(i=r.viewInfo.value)||void 0===i||!i.activeType)return null;var w,x,S,k,I=(w=null===(a=n.fingeringInfo)||void 0===a?void 0:a.name,x=r.fixedKey.value,"piccolo"===w&&ne.times[0]?de(x+12*(1-ne.times[0].octaveOffset)):de(x)).value,j=function(e,n){var i=e[n]||e[0]||[];return"number"==typeof i[0]||"string"==typeof i[0]?[i]:"object"===t(i[0])?i:[[]]}(null===(l=r.viewInfo.value)||void 0===l||null===(u=l.activeType)||void 0===u?void 0:u.relationship,I||0),R=[];ne.activeNote&&(null===(S=ne.activeNote)||void 0===S||S.halfTone1.forEach((function(t){var n,i,a,o=(null===(n=r.viewInfo.value)||void 0===n||null===(i=n.activeType)||void 0===i||null===(a=i.relationship)||void 0===a?void 0:a[t])||[];o=o.map((function(e){return"right"+e})),R.push.apply(R,e(o))})),null===(k=ne.activeNote)||void 0===k||k.halfTone2.forEach((function(t){var n,i,a,o=(null===(n=r.viewInfo.value)||void 0===n||null===(i=n.activeType)||void 0===i||null===(a=i.relationship)||void 0===a?void 0:a[t])||[];o=o.map((function(e){return"left"+e})),R.push.apply(R,e(o))})));var B=j[c.value]||[];return he("div",{ref:o,class:ie(null===(s=n.fingeringInfo)||void 0===s?void 0:s.name,$e),style:{width:"vertical"===(null===(d=n.fingeringInfo)||void 0===d?void 0:d.direction)?null===(p=n.fingeringInfo)||void 0===p?void 0:p.width:"",height:"transverse"===(null===(f=n.fingeringInfo)||void 0===f?void 0:f.direction)?(null===(h=n.fingeringInfo)||void 0===h?void 0:h.height)||"":"100%",display:"flex",paddingLeft:"vertical"===(null===(g=n.fingeringInfo)||void 0===g?void 0:g.direction)?null===(v=n.fingeringInfo)||void 0===v?void 0:v.paddingLeft:"",paddingRight:"vertical"===(null===(m=n.fingeringInfo)||void 0===m?void 0:m.direction)?null===(b=n.fingeringInfo)||void 0===b?void 0:b.paddingRight:""}},[B.includes(0)?he("span",{style:{position:"absolute",top:".5vh",right:".5vw",color:"rgb(1, 193, 181)",fontWeight:"bold"}},[ge("转调")]):null,he("div",{style:{width:"100%",height:"100%"},class:R,innerHTML:null===(y=r.viewInfo.value)||void 0===y||null===(_=y.activeType)||void 0===_?void 0:_.json.full2},null),j.length>1?he("div",{role:"button",onClick:function(){var e=c.value===j.length-1?0:c.value+1;c.value=e},class:["substituteFinger",Qe]},[ge("替指")]):null])}}}),Ze="_fingering_shnq0_1",et=["piano"],tt=de(0),nt=de("hidden"),it=function(){var e=u(regeneratorRuntime.mark((function e(t){var n,i,a,r,o,l,c,u,d,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t)){e.next=21;break}return e.next=4,B(n.name);case 4:if(!(i=e.sent)){e.next=19;break}return a=P(n.name,ne.fixedKey),r=T(i,n.name,a.value),e.next=10,D(r.value);case 10:return o=e.sent,l=o.width,c=o.height,u=document.getElementById("colexiu-detail-music-sheet").clientHeight||0,d=s.evaluatingStatus?0:l,p=u/c,tt.value=u?p*d:d,l&&(nt.value="show"),e.abrupt("return",ye({width:l,height:c,scale:p,usedFixedKey:a.value,fullsrc:r.value,activeType:i,detail:n}));case 19:e.next=22;break;case 21:nt.value="hidden";case 22:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),at=fe({name:"ColexiuFingering",props:{code:{type:String,default:-1}},setup:function(e){var t=be(e).code,n=de(null),i=de(-1);return pe([t],function(){var e=u(regeneratorRuntime.mark((function e(a,o){var l,c,u,s,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=r(a,1),c=l[0],u=r(o,1),s=u[0],i.value=R(t.value),c===s){e.next=8;break}return e.next=6,it(I[i.value]);case 6:(d=e.sent)&&(n.value=d);case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),{immediate:!0,deep:!0}),function(){if(i.value<0||!n.value)return null;var e=I[i.value];return he("div",{class:[Ze,e.name,e.direction,"fingering"],style:{left:"vertical"===e.direction?ne.notchHeight/2+"px":""}},[et.includes(null==e?void 0:e.name)?he(Xe,{viewInfo:n.value,type:null==e?void 0:e.name,fingeringInfo:e,fixedKey:ne.fixedKey},null):he(j,{viewInfo:n.value,type:null==e?void 0:e.name,fingeringInfo:e,fixedKey:ne.fixedKey},null)])}}}),rt="_wrap_1ojzw_1",ot=fe({name:"productJson",setup:function(e,t){var n=t.expose,i=d();n({autoProduct:function(e){"json"!==i.modeType&&console.log(ut.rended,"渲染是否结束")}});var a=function(){var e=u(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o({},!0);case 2:ue("清除成功"),setTimeout((function(){history.go(0)}),500);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),r=function(){var e=u(regeneratorRuntime.mark((function e(){var t,n,i,a,r,c,u,s,d=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=!(d.length>0&&void 0!==d[0])||d[0],ut.json){e.next=4;break}return a&&ue("没有生成json数据,联系开发人员"),e.abrupt("return");case 4:if(ut.svg){e.next=7;break}return a&&ue("没有生成svg数据,联系开发人员"),e.abrupt("return");case 7:return r=null,a&&(r=ue.loading({message:"上传数据中 1/2",duration:0})),c={svg:"",json:""},e.next=12,l("".concat(null===(t=ne.activeDetail)||void 0===t?void 0:t.id,".json"),ut.json);case 12:return c.json=e.sent,r&&(r.message="上传数据中 2/2"),e.next=16,l("".concat(null===(n=ne.activeDetail)||void 0===n?void 0:n.id,".svg"),ut.svg);case 16:return c.svg=e.sent,u={musicSheetId:null===(i=ne.activeDetail)||void 0===i?void 0:i.id,musicSvg:ne.activeDetail.musicSvg,musicJianSvg:ne.activeDetail.musicJianSvg,musicFirstSvg:ne.activeDetail.musicFirstSvg},"staff"===Q.sett.type?u.musicSvg=JSON.stringify(c):Q.sett.keySignature?u.musicFirstSvg=JSON.stringify(c):u.musicJianSvg=JSON.stringify(c),r&&(r.message="保存数据中"),e.next=22,o(u);case 22:200==(null==(s=e.sent)?void 0:s.code)?r&&(r.message="保存成功"):r&&(r.message="保存失败"),setTimeout((function(){r&&r.close()}),300);case 25:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),o=function(){var e=u(regeneratorRuntime.mark((function e(t){var n,i,a,r=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.length>1&&void 0!==r[1]&&r[1]&&(t={musicSheetId:null===(n=ne.activeDetail)||void 0===n?void 0:n.id,musicJSON:"",musicSvg:"",musicJianSvg:"",musicFirstSvg:""}),i=p(),e.next=5,le.post("/music/sheet/updateRenderFile",{prefix:"teacher"===i?"/api-teacher":"student"===i?"/api-student":"/api-admin",requestType:"json",data:t});case 5:return 200===(a=e.sent).code&&(ne.activeDetail.musicJSON=t.musicJSON,ne.activeDetail.musicSvg=t.musicSvg,ne.activeDetail.musicJianSvg=t.musicJianSvg,ne.activeDetail.musicFirstSvg=t.musicFirstSvg),e.abrupt("return",a);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=u(regeneratorRuntime.mark((function e(t,n){var i,a,r,o,l,c,u,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="https://".concat(i="daya",".ks3-cn-beijing.ksyuncs.com/"),r=Date.now()+"_"+t,o={filename:t,bucketName:i,postData:{filename:t,acl:"public-read",key:r,unknowValueField:[]}},e.next=6,le.post("/getUploadSign",{prefix:"/api-admin",requestType:"json",data:o});case 6:for(s in l=e.sent,c=new FormData,u={policy:l.data.policy,signature:l.data.signature,key:r,KSSAccessKeyId:l.data.kssAccessKeyId,acl:"public-read",name:t})c.append(s,u[s]);return c.append("file",new Blob([n])),e.next=13,se.post(a,{data:c});case 13:return e.abrupt("return",a+r);case 14:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return function(){return he(ve,null,["json"===i.modeType&&he("div",{class:rt},[he(ae,null,{default:function(){return[he(re,{center:!0,title:"五线谱"},{"right-icon":function(){var e;return null!==(e=ne.activeDetail)&&void 0!==e&&e.musicSvg?he(Pe,{name:"checked",color:"rgba(103,201,176,1)"},null):""}}),he(re,{center:!0,title:"首调"},{"right-icon":function(){var e;return null!==(e=ne.activeDetail)&&void 0!==e&&e.musicJianSvg?he(Pe,{name:"checked",color:"rgba(103,201,176,1)"},null):""}}),he(re,{center:!0,title:"固定调"},{"right-icon":function(){var e;return null!==(e=ne.activeDetail)&&void 0!==e&&e.musicFirstSvg?he(Pe,{name:"checked",color:"rgba(103,201,176,1)"},null):""}}),he(re,{title:"清除缓存数据",clickable:!0,onClick:a},null),he(re,{title:"保存缓存数据",clickable:!0,onClick:r},null)]}})])])}}}),lt=d(),ct=ee(),ut=n("musicJSON",ye({json:"",svg:"",rended:!1})),st=n("MusicSheetRef",de());n("default",fe({name:"Colexiu",setup:function(){var e=Re();console.log("🚀 ~ route",e.query,lt),ne.midiPlayIniting=!0;var t=de(!0),n=de(!1),a=de(!1),o=de(""),l=de("init"),d=de(""),p=de({}),f=de({}),h=r(C(e.query.id),2),g=h[0],v=h[1],m=new je(650,884);pe(g,u(regeneratorRuntime.mark((function e(){var i,c,u,s,h,m,b,y,_,w;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("success"!==g.value||!v.value.xmlFileUrl){e.next=16;break}return P(v.value),f.value=I[R(v.value.code||"")]||{},i=De(),c=i.showFingering,u=i.frozenMode,s=i.compulsionEvaluating,e.next=6,G(c.value?v.value.code:void 0);case 6:h=e.sent,m=r(h,3),b=m[0],y=m[1],_=m[2],l.value=b.value,d.value=y.value,p.value=_.value,ne.frozenMode=u.value,a.value=s.value;case 16:if("success"!==g.value||!v.value.xmlFileUrl){e.next=27;break}return e.next=19,$(v.value.xmlFileUrl,v.value);case 19:if((w=e.sent).value){e.next=26;break}return t.value=!1,n.value=!0,e.abrupt("return");case 26:o.value=w.value;case 27:case"end":return e.stop()}}),e)}))));var b,y,_,w=(b=function(){"vertical"===f.value.direction&&(ue("加载中,请稍后..."),setTimeout((function(){st.value.reRender()}),16))},y=300,_=!0,function(){if(!_)return!1;_=!1,setTimeout((function(){b(),_=!0}),y)});_e((function(){window.appName="colexiu",F.on("settingFingeringChange",w),oe({api:"setEventTracking",content:{type:"klx_xiaokuAI"}})})),we((function(){var e,t,n;(F.off("settingFingeringChange",w),"function"==typeof(null===(e=s)||void 0===e||null===(t=e.audiosInstance)||void 0===t?void 0:t.destroy))&&(null===(n=s.audiosInstance)||void 0===n||n.destroy())})),L(),O(),z();var x=de(!1),S=de(),k=function(){var e=u(regeneratorRuntime.mark((function e(n){var i,r,o,l,u,d,p,f,h,g,m,b,y,_,w,k;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.isLoading=!1,oe({api:"cloudLoading",content:{show:!1,type:"fullscreen"}}),ne.initRendered=!0,console.log(lt),console.time("获取数据"),s.osmd=n,ne.isSpecialBookCategory=!0,"native"===ne.renderType&&(ne.times=W(n)),x.value="json"===lt.modeType||!(null!==(i=ne.activeDetail)&&void 0!==i&&i.musicSvg)||!(null!==(r=ne.activeDetail)&&void 0!==r&&r.musicJianSvg)||!(null!==(o=ne.activeDetail)&&void 0!==o&&o.musicFirstSvg),x.value){p=c(n),f=p.numerator,h=p.denominator;try{ut.json=JSON.stringify({musicId:ne.activeDetail.id,musicSheetName:encodeURIComponent(ne.activeDetail.musicSheetName),osmd:{product:!0,bpm:(null==n||null===(g=n.Sheet)||void 0===g?void 0:g.userStartTempoInBPM)||(null==n?void 0:n.bpm),numerator:f,denominator:h,scoreSize:Q.sett.scoreSize||"middle"},times:ne.times}),console.log("生成缓存数据",S.value),ut.svg=(null===(m=document.getElementById("osmdSvgPage1"))||void 0===m?void 0:m.outerHTML)||"",xe((function(){var e,t;ut.svg=(null===(e=document.getElementById("osmdSvgPage1"))||void 0===e?void 0:e.outerHTML)||"",ut.rended=!0,null===(t=S.value)||void 0===t||t.autoProduct()}))}catch(I){console.log(I)}}return console.timeEnd("获取数据"),console.log("🚀 ~ detailState.times",ne.times),b=(te.get("speeds")||{})[lt.id],y=n.bpm||n.Sheet.userStartTempoInBPM,ne.activeSpeed=b||y||100,ne.baseSpeed=y||100,ne.code=(null===(l=v.value)||void 0===l?void 0:l.code)||"",ne.activeDetail.originalSpeed=ne.baseSpeed,_=(null===(u=ne.times[ne.times.length-1||0])||void 0===u?void 0:u.endtime)||0,ne.isAppPlay&&Te(_,v.value.midiUrl),s.durationNum||(s.durationNum=_),e.next=23,Ce();case 23:w=e.sent,ne.freeRate=w.value,K(v.value.paymentType||v.value.chargeType,v.value.orderStatus),pe((function(){return Q.sett.camera}),(function(e){oe(e?{api:"openCamera"}:{api:"closeCamera"})}),{immediate:!0}),V(ne.activeSpeed),((null===(d=ne.setting)||void 0===d?void 0:d.resets)||[]).includes("SPEED")&&ne.activeDetail&&V(null===(k=ne.activeDetail)||void 0===k?void 0:k.originalSpeed),H(),t.value=!1;try{Y(ne.times)}catch(I){}a.value&&(s.evaluatingStatus=!0,U.value="evaluation");case 33:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),j=function(){var e=u(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.value=!0,oe({api:"cloudLoading",content:{show:!0,type:"fullscreen"}});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),B=function(){window.isLoading=!1,oe({api:"cloudLoading",content:{show:!1,type:"fullscreen"}}),n.value=!0,t.value=!1},P=function(e){oe({api:"cloudAccompanyMessage",content:{accompanyUrl:e.audioFileUrl||e.metronomeUrl||e.url||""}})};return function(){var e=t.value||"loading"===g.value,a=n.value||"error"===g.value,r=f.value,c=r.width,u=r.paddingRight,d=r.paddingLeft,p=r.direction,h="init"!==l.value,b=c||"0px",y=u||"0px",_=d||"0px",w="vertical"===p,x="vertical"===p?"20px":"0px",I="show"===l.value&&Q.sett.fingering&&!s.evaluatingStatus,R="vertical"===p&&I,P=i(i({},w&&{margin:"auto",marginRight:0}),{},{width:f.value&&R?"calc(100% - ".concat(b," - ").concat(y," - ").concat(_," - ").concat(x,")"):""});return he("div",{class:[ke.container,Q.sett.eyeProtection&&"eyeProtection",ct.android&&"android"]},[!e&&!a&&he(N,{class:ke.buttons},null),he("div",{id:"colexiu-detail-music-sheet",class:[ke.musicSheet,{evaluating:s.evaluatingStatus||"follow"===U.value}],style:{paddingLeft:ne.isSpecialShapedScreen?ne.notchHeight/2+"px":"auto",paddingBottom:I&&f.value.height?f.value.height:"40px",background:Q.sett.camera?"rgba(".concat(Q.sett.eyeProtection?"253,244,229":"255,255,255"," ,").concat(Q.sett.opacity/100,") !important"):""}},[e&&!a&&he(Be,{class:ke.skeleton,rowWidth:"80%",title:!0,row:3},null),a&&he(E,null,null),o.value&&h&&he(ve,null,[he("h3",{style:{fontSize:"24px",fontWeight:"normal",textAlign:"center",padding:"0 10px",marginTop:"36px",marginBottom:"0px",marginLeft:"auto",width:P.width},class:"van-ellipsis"},[v.value.musicSheetName]),he(A,{ref:st,style:P,score:o.value,EngravingRules:"multiple"===lt.pageType?{PageFormat:m,DYMusicScoreType:Q.sett.type}:{DYMusicScoreType:Q.sett.type},opotions:{drawTitle:!1,drawComposer:!0,drawLyricist:!1,drawMetronomeMarks:!0,drawMeasureNumbers:!0,autoResize:!1},onStartRender:j,onRenderError:B,onRerender:k,onLoaddingEnd:function(){t.value=!1,window.isLoading=!1,oe({api:"cloudLoading",content:{show:!1,type:"fullscreen"}})}},null),I&&he(at,{style:{background:Q.sett.camera?"rgba(".concat(Q.sett.eyeProtection?"253,244,229":"255,255,255"," ,").concat(Q.sett.opacity/100,")"):"",boxShadow:Q.sett.camera?"none":""},code:v.value.code},null)])]),!e&&!a&&he(Fe,null,null),he(Ie,{score:o.value},null),he(Ge,null,null),he(M,null,null),he(q,null,null),he(J,null,null),he(ot,{ref:S},null)])}}}))}}}))}();
|