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){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(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){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,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 o(e){return function(){var t=this,n=arguments;return new Promise((function(i,a){var o=e.apply(t,n);function l(e){r(o,i,a,l,c,"next",e)}function c(e){r(o,i,a,l,c,"throw",e)}l(void 0)}))}}function l(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)||c(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 c(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}function u(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}var s=document.createElement("style");s.innerHTML='._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(/orchestra-music-score/assets/no-confirm-btn.5ed39ffd.svg)}._confirmBtn_17c4a_52{background-image:url(/orchestra-music-score/assets/confirm-btn.a36604ec.svg)}._tryoutBtn_17c4a_55{background-image:url(/orchestra-music-score/assets/tryout-btn.891d6395.svg)}._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(/orchestra-music-score/assets/membership-btn.6c4804e5.svg)}._demandBtn_17c4a_77{background-image:url(/orchestra-music-score/assets/demand-btn.56c792ce.svg)}._demandBtnFree_17c4a_80{background-image:url(/orchestra-music-score/assets/demand-btn-free.c8a03b7c.svg)}._earphoneBtn_17c4a_83{background-image:url(/orchestra-music-score/assets/earphone-btn.21b7f499.svg)}._closeBtn_17c4a_86{position:absolute;right:-30Px;top:20Px}._item_6tre7_1{display:flex;align-items:center;margin:0 .18667rem;padding:.18667rem .26667rem .18667rem .21333rem;border-radius:.10667rem}._item_6tre7_1.active{background-color:#edfffc}._item_6tre7_1.active>p{color:#2dc7aa}._item_6tre7_1.active:after{content:"\\5f53\\524d";font-size:.18667rem;color:#2dc7aa;display:inline-block;padding-left:.08rem}._item_6tre7_1 ._tag_6tre7_23{height:.24rem;line-height:.24rem;border-radius:.08rem;text-align:center;display:block;margin-right:.10667rem;--van-tag-plain-background-color: transparent}._item_6tre7_1 ._tag_6tre7_23:after{border-radius:.10667rem}._item_6tre7_1 ._tag_6tre7_23:before{display:none}._item_6tre7_1 ._tag_6tre7_23.VIP{--van-tag-default-color: #cd863e;--van-gray-3: #cd863e}._item_6tre7_1 ._tag_6tre7_23.CHARGE{--van-tag-default-color: #3591ce;--van-gray-3: #3591ce}._item_6tre7_1 ._tag_6tre7_23.FREE{--van-tag-default-color: #01b84f;--van-gray-3: #01b84f}._item_6tre7_1>p{color:#333;font-size:.18667rem;margin:0;line-height:.26667rem;white-space:pre;overflow:hidden;flex:1;text-overflow:ellipsis}._tabs_6tre7_60{height:100vh;display:flex;flex-direction:column;--van-tab-text-color: #999999;--van-tab-active-text-color: #333;--van-tabs-bottom-bar-color: #2dc7aa;--van-tabs-bottom-bar-width: .34667rem;--van-tabs-bottom-bar-height: .05333rem}._tabs_6tre7_60 .van-tabs__line{width:var(--van-tabs-bottom-bar-width);height:var(--van-tabs-bottom-bar-height);background-color:var(--van-tabs-bottom-bar-color);border-radius:var(--van-tabs-bottom-bar-height)}._tabs_6tre7_60 .van-tab>span{color:var(--van-tab-active-text-color)!important}._tabs_6tre7_60 .van-tabs__wrap{height:.88rem!important;position:relative}._tabs_6tre7_60 .van-tabs__wrap:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid #e8e8e8;transform:scale(.5);border-bottom-width:.02667rem}._tabs_6tre7_60 .van-tabs__wrap .van-tabs__line{bottom:.5rem!important}._tabs_6tre7_60 .van-tabs__content{height:calc(100vh - .88rem)}._tabs_6tre7_60 .van-tab__pane{height:100%}._list_6tre7_105{padding:.21333rem 0}._tab_6tre7_60{box-sizing:border-box;overflow:hidden;height:100%;overflow-y:auto}._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(/orchestra-music-score/assets/substituteFinger.5d97109d.svg) 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(s),System.register(["./index-legacy.66f59bc2.js","./native-message-legacy.9bc4e0cc.js","./index-legacy.dc18ac28.js","./index-legacy.533bac10.js","./index-legacy.0c360aea.js","./index-legacy.7fad07f4.js","./index-legacy.3b410d27.js","./index-legacy.f4f9f2a1.js"],(function(n){"use strict";var r,c,u,s,d,p,f,h,v,g,m,b,_,y,w,x,S,k,I,B,P,j,D,T,C,R,F,L,M,O,E,z,N,A,J,W,U,q,K,H,V,G,Y,Z,$,Q,X,ee,te,ne,ie,ae,re,oe,le,ce,ue,se,de,pe,fe,he,ve,ge,me,be,_e,ye,we,xe,Se,ke,Ie,Be,Pe,je,De,Te,Ce,Re,Fe,Le,Me,Oe;return{setters:[function(e){r=e.s,c=e.w,u=e.x,s=e.c,d=e.u,p=e.r,f=e.y,h=e.z,v=e.A,g=e.E,m=e.F,b=e.H,_=e.I,y=e.J,w=e.K,x=e.k,S=e.L,k=e.Q,I=e.R,B=e.U,P=e.P,j=e.V,D=e.W,T=e.X,C=e.Y,R=e.Z,F=e._,L=e.$,M=e.a0,O=e.a1,E=e.a2,z=e.a3,N=e.a4,A=e.T,J=e.e,W=e.a5,U=e.a6,q=e.a7,K=e.b,H=e.a8,V=e.a9,G=e.aa,Y=e.M,Z=e.ab,$=e.ac,Q=e.p,X=e.g,ee=e.ad,te=e.ae,ne=e.af,ie=e.ag,ae=e.ah,re=e.t},function(e){oe=e.d,le=e.c,ce=e.T,ue=e.i,se=e.N,de=e.w,pe=e.k,fe=e.M,he=e.o,ve=e.n,ge=e.j,me=e.F,be=e.I,_e=e.U,ye=e.D,we=e.t,xe=e.v,Se=e.h,ke=e.x,Ie=e.Z,Be=e.u},function(e){Pe=e.t,je=e.c,De=e.I,Te=e.w,Ce=e.B},function(e){Re=e.E,Fe=e.s},function(e){Le=e.L},function(e){Me=e.T},function(e){Oe=e.S},function(){}],execute:function(){var Ee=l(je("tag"),2),ze=Ee[0],Ne=Ee[1],Ae=oe({name:ze,props:{size:String,mark:Boolean,show:Pe,color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean,type:{type:String,default:"default"}},emits:["close"],setup:function(e,t){var n=t.slots,i=t.emit,a=function(e){e.stopPropagation(),i("close",e)},r=function(){var t=e.type,i=e.mark,r=e.plain,o=e.round,l=e.size,c=e.closeable,u={mark:i,plain:r,round:o};l&&(u[l]=l);var s=c&&le(De,{name:"cross",class:Ne("close"),onClick:a},null);return le("span",{style:e.plain?{color:e.textColor||e.color,borderColor:e.color}:{color:e.textColor,background:e.color},class:Ne([u,t])},[null==n.default?void 0:n.default(),s])};return function(){return le(ce,{name:e.closeable?"van-fade":void 0},{default:function(){return[e.show?r():null]}})}}}),Je=Te(Ae),We=function(e,t){var n=ue(!1);return t&&(console.log("曲谱为midi,使用app播放"),n.value=!0,r.midiPlayIniting=!0,se({api:"cloudDestroy"}),se({api:"cloudDetail",content:{midi:t,denominator:u(s.osmd).denominator,numerator:u(s.osmd).numerator,originalSpeed:r.activeDetail.originalSpeed,interval:50,duration:1e3*e}},(function(){r.midiPlayIniting=!1,n.value=!1,t&&c("music")})),s.durationNum=e),{initial:n}},Ue=function(){var e=ue(!0),t=ue(!1),n=ue(!1);try{var i=d().setting||{};"EVALUATING"===i.mode&&(n.value=!0,e.value=!1,t.value=!0),i.difficulty&&(pe.eva.difficulty=i.difficulty),r.setting=i}catch(a){console.error("设置活动配置失败,请检查传入配置是否正确"),console.error(a)}return{showFingering:e,frozenMode:t,compulsionEvaluating:n}},qe=function(){var e=o(regeneratorRuntime.mark((function e(){var t,n,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=ue(.1),n=fe(),e.prev=2,e.next=5,p.get("/sysParamConfig/queryByParamNameList",{prefix:n,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)}}(),Ke=oe({name:"ButtonsPlayer",setup:function(){var e=l(f(),1)[0],t=function(){r.activeTick>-1||(y(0),w(new Event("ended")))},n=Math.floor(2*Math.PI*16),i=function(e){var t;"setPlayState"===(null==e||null===(t=e.data)||void 0===t?void 0:t.api)&&(console.log("父页面的切换事件",e.data,s.playState),"play"==s.playState&&h())};return he((function(){window.addEventListener("message",i)})),ve((function(){window.removeEventListener("message",i)})),function(){var i=s.currentTimeNum/s.durationNum*n;return le(be,{to:"body"},{default:function(){var n;return[le("div",{class:v.player,id:"globalPlayer"},[le(ce,{name:"start",duration:300},{default:function(){var t;return[e.value&&!(null!==(t=g.value)&&void 0!==t&&t.connentLoading)&&m.value&&le(Ce,{style:{backgroundImage:"url(".concat(b,")")},class:[v.button,v.start],onClick:function(){var e,t;m.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&&le(me,null,[("pause"===s.playState||"suspend"===s.playState)&&s.currentTimeNum>0&&!r.sectionStatus&&le(Ce,{class:[v.button,v.fullbtn],onClick:t},{default:function(){return[le(_,{key:"reset",name:"reset"},null)]}}),le(Ce,{class:[v.button,v.fullbtn],style:{marginLeft:"14px"},disabled:(null===(n=r.activeDetail)||void 0===n?void 0:n.isAppPlay)&&r.midiPlayIniting,onClick:function(){h()}},{default:function(){return[le("div",{class:v.schedule},[le("div",{class:v.schedule},["play"===s.playState?le(_,{key:"pause",name:"pause"},null):le(_,{key:"play",name:"play"},null),s.currentTimeNum>0&&!r.sectionStatus&&le("svg",{class:v.ring,width:"40",height:"40",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/200/svg"},[le("circle",{cx:"20",cy:"20",r:"16",fill:"none",stroke:"#D9F5EF","stroke-width":"2","stroke-linecap":"round"},null),le("circle",{class:v.fillring,cx:"20",cy:"20",r:"16",fill:"none",stroke:"#FFC459","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":i+",10000"},null)])])])]}})])])]}})}}}),He={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"},Ve=oe({name:"ColexiuMicrophone",setup:function(e,t){t.expose;return function(){return le("div",null,[le("img",{class:He.image,src:"/orchestra-music-score/assets/microphone.7e50c915.svg"},null),le("div",{class:He.wrap},[le("div",{class:He.des},[le("div",{class:He.title},[ge("开启权限")]),le("div",{class:He.sub},[ge("请开启麦克风访问权限")])]),le("div",{class:He.btnWrap},[le(Ce,{class:x(He.btn,He.cancelBtn)},null),le(Ce,{class:x(He.btn,He.confirmBtn)},null)])])])}}}),Ge=oe({name:"ColexiuMicrophone",setup:function(e,t){t.expose;return function(){return le("div",null,[le("img",{class:He.image,src:"/orchestra-music-score/assets/camera.ad45a2ea.svg"},null),le("div",{class:He.wrap},[le("div",{class:He.des},[le("div",{class:He.title},[ge("开启权限")]),le("div",{class:He.sub},[ge("请开启相机访问权限")])]),le("div",{class:He.btnWrap},[le(Ce,{class:x(He.btn,He.cancelBtn)},null),le(Ce,{class:x(He.btn,He.confirmBtn)},null)])])])}}}),Ye=d(),Ze=oe({name:"ColexiuMember",setup:function(){var e=S(),t=function(){delete Ye.Authorization,se({api:"openWebView",content:{url:location.origin+"/"+e+"/#/memberCenter?"+_e.stringify(i({},Ye)),orientation:1}})},n=function(){k.show=!1,y(0),I(0)};return function(){return le("div",null,[le("img",{class:He.image,src:"/orchestra-music-score/assets/membership.78b7ec9a.png"},null),le("div",{class:He.wrap},[le("div",{class:He.des},[le("div",{class:He.title},[ge("请开通会员")]),le("div",{class:He.sub},[ge("开通会员后可完整使用该曲目")])]),le("div",{class:He.btnWrap},[le(Ce,{class:x(He.btn,He.tryoutBtn),onClick:n},null),le(Ce,{class:x([He.btn,He.membershipBtn,a({},He.discounts,1==Ye.discounts)]),onClick:t},null)])])])}}}),$e="/orchestra-music-score/assets/demand.14944949.svg";ue(!1);var Qe=d(),Xe=oe({name:"ColexiuDemand",setup:function(){var e=S(),t=function(){var t=o(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:delete Qe.Authorization,se({api:"openWebView",content:{url:location.origin+"/"+e+"/#/orderDetail?"+_e.stringify(i({orderType:"MUSIC"},Qe)),orientation:1}});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),n=function(){k.show=!1,y(0),I(0)};return function(){var e;return le("div",{style:{position:"relative"}},[le("img",{class:He.image,src:$e},null),le("div",{class:He.wrap},[le("div",{class:He.des},[le("div",{class:He.title},[ge("该曲目为点播曲目")]),le("div",{class:He.sub},[ge("点播价格 "),le("span",{style:{color:"#FF4E19"}},[ge("¥"),null===(e=r.activeDetail)||void 0===e?void 0:e.musicPrice]),ge(",点播后可永久使用")])]),le("div",{class:He.btnWrap},[le(Ce,{class:x(He.btn,He.tryoutBtn),onClick:n},null),le(Ce,{class:x(He.btn,He.demandBtn),onClick:t},null)])])])}}}),et=oe({name:"ColexiuEarphone",setup:function(){return function(){return le("div",null,[le("img",{class:He.image,src:"/orchestra-music-score/assets/earphone.37a59b5d.svg"},null),le("div",{class:He.wrap},[le("div",{class:He.des},[le("div",{class:He.title},[ge("请佩戴耳机")]),le("div",{class:He.sub},[ge("佩戴耳机可以保证测评准确率哦~")])]),le("div",{class:He.btnWrap},[le(Ce,{class:x(He.btn,He.earphoneBtn),onClick:function(){k.show=!1}},null)])])])}}});ue(!1);var tt=d(),nt=oe({name:"memberAndDemand",setup:function(){var e=S(),t=function(){var t=o(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:delete tt.Authorization,se({api:"openWebView",content:{url:location.origin+"/"+e+"/#/orderDetail?"+_e.stringify(i({orderType:"MUSIC"},tt)),orientation:1}});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),n=function(){delete tt.Authorization,se({api:"openWebView",content:{url:location.origin+"/"+e+"/#/memberCenter",orientation:1}})},a=function(){k.show=!1,y(0),I(0)};return function(){var e;return le("div",{style:{position:"relative"}},[le("img",{class:He.closeBtn,src:B,onClick:a},null),le("img",{class:He.image,src:$e},null),le("div",{class:He.wrap},[le("div",{class:He.des},[le("div",{class:[He.title,He.andTitle]},[ge("该曲目为会员曲目,可以单曲购买哦")]),le("div",{class:[He.sub,He.andSub]},[ge("开通酷乐秀会员海量曲目尽情练习"),le("br",null,null),ge("单曲点播仅需 "),le("span",{style:{color:"#FF4E19"}},[ge("¥"),null===(e=r.activeDetail)||void 0===e?void 0:e.musicPrice]),ge(",点播后可永久使用")])]),le("div",{class:He.btnWrap},[le(Ce,{class:x(He.btn,He.membershipBtn),onClick:n},null),le(Ce,{class:x(He.btn,He.demandBtn),onClick:t},null)])])])}}}),it=oe({name:"ColexiuPermission",setup:function(e,t){return(0,t.expose)({toggle:function(){k.show=!k.show}}),function(){return le(P,{class:He.popup,show:k.show,"onUpdate:show":function(e){return k.show=e},teleport:"body",onClosed:function(){y(0)}},{default:function(){return["microphone"===k.active?le(Ve,null,null):"camera"===k.active?le(Ge,null,null):"member"===k.active?le(Ze,null,null):"demand"===k.active?le(Xe,null,null):"earphone"===k.active?le(et,null,null):"memberAndDemand"===k.active?le(nt,null,null):null]}})}}}),at="_item_6tre7_1",rt="_tag_6tre7_23",ot="_tabs_6tre7_60",lt="_list_6tre7_105",ct="_tab_6tre7_60",ut={VIP:"会员",CHARGE:"点播",FREE:"免费"},st=oe({name:"SwitchTag",props:{type:String},setup:function(e){return function(){return le(Je,{plain:!0,class:[rt,e.type,"van-hairline--surround"]},{default:function(){return[ut[e.type]]}})}}}),dt=oe({name:"MusicList-MusicScore-Item",props:{item:{type:Object}},setup:function(e){var t=d(),n=sessionStorage.getItem("behaviorId")||""+(new Date).valueOf();return function(){var a,r,o;return le("div",{class:[at,{active:(null===(a=e.item)||void 0===a?void 0:a.id)==t.id}],onClick:function(){return j(),se({api:"cloudDestroy"}),se({api:"cloudLoading",content:{show:!0,type:"fullscreen"}}),void(location.href=location.origin+location.pathname+"?"+_e.stringify(i(i({},t),{},{behaviorId:n,id:null===(a=e.item)||void 0===a?void 0:a.id,_t:(new Date).valueOf()})));var a}},[le("div",{style:{display:"flex"}},[((null===(r=e.item)||void 0===r?void 0:r.paymentType)||"").split(",").map((function(e){return le(st,{key:e,type:e},null)}))]),le("p",null,[null===(o=e.item)||void 0===o?void 0:o.musicSheetName])])}}});var pt=oe({name:"MusicList-MusicScore-List",props:{list:{type:Array,default:function(){return[]}},url:{type:String,default:""},moreSearch:{type:Object,default:function(){return{}}}},emits:["refresh"],setup:function(e,n){n.emit;var a=ue(!1),r=ue(!1),l=ue(1),c=ue([]),u=ue(),s=function(){var n=o(regeneratorRuntime.mark((function n(){var o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.url){n.next=2;break}return n.abrupt("return");case 2:return a.value=!0,n.prev=3,n.next=6,p(e.url,{params:i({page:l.value},e.moreSearch)});case 6:o=n.sent,c.value=[].concat(t(c.value),t(o.data.rows)),r.value=o.data.totalPage<l.value,n.next=13;break;case 11:n.prev=11,n.t0=n.catch(3);case 13:a.value=!1;case 14:case"end":return n.stop()}}),n,null,[[3,11]])})));return function(){return n.apply(this,arguments)}}();he(s);var d=function(){a.value||r.value||(l.value=l.value+1,s())};return function(){var e,t;return c.value.length||a.value?le("div",{class:ct},[le(Le,{ref:u,class:lt,loading:a.value,finished:r.value,onLoad:d},(t=e=c.value.map((function(e){return le(dt,{item:e,key:e.id},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!ye(t)?e:{default:function(){return[e]}}))]):le(Re,{description:"暂无曲目"},{default:function(){return[le("span",null,null)]}})}}}),ft=d(),ht=oe({name:"MusicList-MusicScore",setup:function(){return function(){return le(pt,{url:"/music/sheet/queryRelatedList",moreSearch:{albumId:ft.albumId,musicSheetId:ft.id}},null)}}}),vt=oe({name:"MusicList-MusicScore",setup:function(){return function(){return le(pt,{url:"/music/sheet/favorite"},null)}}}),gt=oe({name:"MusicList-Practice",setup:function(){return function(){return le(pt,{url:"/music/sheet/practice"},null)}}}),mt=oe({name:"MusicListContent",setup:function(){return function(){return le(D,{class:ot},{default:function(){return[le(T,{title:"其他曲谱"},{default:function(){return[le(ht,null,null)]}}),le(T,{title:"最近练习"},{default:function(){return[le(gt,null,null)]}}),le(T,{class:ct,title:"我的收藏"},{default:function(){return[le(vt,null,null)]}})]}})}}}),bt=ue(!1),_t=ue(!1),yt=function(){bt.value=!1},wt=function(){_t.value=!1},xt=oe({name:"MusicList",setup:function(e){return function(){return le(P,{show:bt.value,onClickOverlay:yt,onClosed:wt,position:"right",teleport:"body",style:{height:"100vh",width:"55vw",borderRadius:"5px 0 0 5px",overflow:"hidden"}},{default:function(){return[_t.value&&le(mt,e,null)]}})}}}),St="_container_hiwv0_1",kt="_changeIndex_hiwv0_6",It=oe({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,o=we(n),l=ue(null);ue(null);var c=ue(0),u=ue(0);return a({container:l,containerWidth:c}),function(){var i,a,c,s,d,p,f,h,v,g,m,b,_,y,w;if(null===(i=o.viewInfo.value)||void 0===i||!i.activeType)return null;var S,k,I,B,P=(S=null===(a=n.fingeringInfo)||void 0===a?void 0:a.name,k=o.fixedKey.value,"piccolo"===S&&r.times[0]?ue(k+12*(1-r.times[0].octaveOffset)):ue(k)).value,j=function(t,n){var i=t[n]||t[0]||[];return"number"==typeof i[0]||"string"==typeof i[0]?[i]:"object"===e(i[0])?i:[[]]}(null===(c=o.viewInfo.value)||void 0===c||null===(s=c.activeType)||void 0===s?void 0:s.relationship,P||0),D=[];r.activeNote&&(null===(I=r.activeNote)||void 0===I||I.halfTone1.forEach((function(e){var n,i,a,r=(null===(n=o.viewInfo.value)||void 0===n||null===(i=n.activeType)||void 0===i||null===(a=i.relationship)||void 0===a?void 0:a[e])||[];r=r.map((function(e){return"right"+e})),D.push.apply(D,t(r))})),null===(B=r.activeNote)||void 0===B||B.halfTone2.forEach((function(e){var n,i,a,r=(null===(n=o.viewInfo.value)||void 0===n||null===(i=n.activeType)||void 0===i||null===(a=i.relationship)||void 0===a?void 0:a[e])||[];r=r.map((function(e){return"left"+e})),D.push.apply(D,t(r))})));var T=j[u.value]||[];return le("div",{ref:l,class:x(null===(d=n.fingeringInfo)||void 0===d?void 0:d.name,St),style:{width:"vertical"===(null===(p=n.fingeringInfo)||void 0===p?void 0:p.direction)?null===(f=n.fingeringInfo)||void 0===f?void 0:f.width:"",height:"transverse"===(null===(h=n.fingeringInfo)||void 0===h?void 0:h.direction)?(null===(v=n.fingeringInfo)||void 0===v?void 0:v.height)||"":"100%",display:"flex",paddingLeft:"vertical"===(null===(g=n.fingeringInfo)||void 0===g?void 0:g.direction)?null===(m=n.fingeringInfo)||void 0===m?void 0:m.paddingLeft:"",paddingRight:"vertical"===(null===(b=n.fingeringInfo)||void 0===b?void 0:b.direction)?null===(_=n.fingeringInfo)||void 0===_?void 0:_.paddingRight:""}},[T.includes(0)?le("span",{style:{position:"absolute",top:".5vh",right:".5vw",color:"rgb(1, 193, 181)",fontWeight:"bold"}},[ge("转调")]):null,le("div",{style:{width:"100%",height:"100%"},class:D,innerHTML:null===(y=o.viewInfo.value)||void 0===y||null===(w=y.activeType)||void 0===w?void 0:w.json.full2},null),j.length>1?le("div",{role:"button",onClick:function(){var e=u.value===j.length-1?0:u.value+1;u.value=e},class:["substituteFinger",kt]},[ge("替指")]):null])}}}),Bt="_fingering_shnq0_1",Pt=["piano"],jt=ue(0),Dt=ue("hidden"),Tt=function(){var e=o(regeneratorRuntime.mark((function e(t){var n,i,a,o,l,c,u,d,p,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t)){e.next=21;break}return e.next=4,L(n.name);case 4:if(!(i=e.sent)){e.next=19;break}return a=M(n.name,r.fixedKey),o=O(i,n.name,a.value),e.next=10,E(o.value);case 10:return l=e.sent,c=l.width,u=l.height,d=document.getElementById("colexiu-detail-music-sheet").clientHeight||0,p=s.evaluatingStatus?0:c,f=d/u,jt.value=d?f*p:p,c&&(Dt.value="show"),e.abrupt("return",xe({width:c,height:u,scale:f,usedFixedKey:a.value,fullsrc:o.value,activeType:i,detail:n}));case 19:e.next=22;break;case 21:Dt.value="hidden";case 22:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ct=oe({name:"ColexiuFingering",props:{code:{type:String,default:-1}},setup:function(e){var t=we(e).code,n=ue(null),i=ue(-1);return de([t],function(){var e=o(regeneratorRuntime.mark((function e(a,r){var o,c,u,s,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=l(a,1),c=o[0],u=l(r,1),s=u[0],i.value=F(t.value),c===s){e.next=8;break}return e.next=6,Tt(C[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=C[i.value];return le("div",{class:[Bt,e.name,e.direction,"fingering"],style:{left:"vertical"===e.direction?r.notchHeight/2+"px":""}},[Pt.includes(null==e?void 0:e.name)?le(It,{viewInfo:n.value,type:null==e?void 0:e.name,fingeringInfo:e,fixedKey:r.fixedKey},null):le(R,{viewInfo:n.value,type:null==e?void 0:e.name,fingeringInfo:e,fixedKey:r.fixedKey},null)])}}}),Rt="_wrap_1ojzw_1",Ft=oe({name:"productJson",setup:function(e,t){var n=t.expose,i=d();n({autoProduct:function(e){if("json"!==i.modeType){var t,n,a,o;if(console.log(Ot.rended,"渲染是否结束"),!Ot.svg)Ot.svg=(null===(t=document.getElementById("osmdSvgPage1"))||void 0===t?void 0:t.outerHTML)||"";if(Ot.svg)if("staff"===pe.sett.type)null!==(n=r.activeDetail)&&void 0!==n&&n.musicSvg||l(!1);else(!pe.sett.keySignature||null!==(a=r.activeDetail)&&void 0!==a&&a.musicFirstSvg)&&(pe.sett.keySignature||null!==(o=r.activeDetail)&&void 0!==o&&o.musicJianSvg)||l(!1)}}});var a=function(){var e=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c({},!0);case 2:A("清除成功"),setTimeout((function(){history.go(0)}),500);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),l=function(){var e=o(regeneratorRuntime.mark((function e(){var t,n,i,a,o,l,s,d,p=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=!(p.length>0&&void 0!==p[0])||p[0],Ot.json){e.next=4;break}return a&&A("没有生成json数据,联系开发人员"),e.abrupt("return");case 4:if(Ot.svg){e.next=7;break}return a&&A("没有生成svg数据,联系开发人员"),e.abrupt("return");case 7:return o=null,a&&(o=A.loading({message:"上传数据中 1/2",duration:0})),l={svg:"",json:""},e.next=12,u("".concat(null===(t=r.activeDetail)||void 0===t?void 0:t.id,".json"),Ot.json);case 12:return l.json=e.sent,o&&(o.message="上传数据中 2/2"),e.next=16,u("".concat(null===(n=r.activeDetail)||void 0===n?void 0:n.id,".svg"),Ot.svg);case 16:return l.svg=e.sent,s={musicSheetId:null===(i=r.activeDetail)||void 0===i?void 0:i.id,musicSvg:r.activeDetail.musicSvg,musicJianSvg:r.activeDetail.musicJianSvg,musicFirstSvg:r.activeDetail.musicFirstSvg},"staff"===pe.sett.type?s.musicSvg=JSON.stringify(l):pe.sett.keySignature?s.musicFirstSvg=JSON.stringify(l):s.musicJianSvg=JSON.stringify(l),o&&(o.message="保存数据中"),e.next=22,c(s);case 22:200==(null==(d=e.sent)?void 0:d.code)?o&&(o.message="保存成功"):o&&(o.message="保存失败"),setTimeout((function(){o&&o.close()}),300);case 25:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),c=function(){var e=o(regeneratorRuntime.mark((function e(t){var n,i,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a.length>1&&void 0!==a[1]&&a[1]&&(t={id:null===(n=r.activeDetail)||void 0===n?void 0:n.id,musicJSON:"",musicSvg:"",musicJianSvg:"",musicFirstSvg:""}),e.next=4,p.post("/musicSheet/updateRenderFile",{requestType:"json",data:t});case 4:return 200===(i=e.sent).code&&(r.activeDetail.musicJSON=t.musicJSON,r.activeDetail.musicSvg=t.musicSvg,r.activeDetail.musicJianSvg=t.musicJianSvg,r.activeDetail.musicFirstSvg=t.musicFirstSvg),e.abrupt("return",i);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),u=function(){var e=o(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}},e.next=6,p.post("/open/getUploadSign",{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,J.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 le(me,null,["json"===i.modeType&&le("div",{class:Rt},[le(z,null,{default:function(){return[le(N,{center:!0,title:"五线谱"},{"right-icon":function(){var e;return null!==(e=r.activeDetail)&&void 0!==e&&e.musicSvg?le(De,{name:"checked",color:"rgba(103,201,176,1)"},null):""}}),le(N,{center:!0,title:"首调"},{"right-icon":function(){var e;return null!==(e=r.activeDetail)&&void 0!==e&&e.musicJianSvg?le(De,{name:"checked",color:"rgba(103,201,176,1)"},null):""}}),le(N,{center:!0,title:"固定调"},{"right-icon":function(){var e;return null!==(e=r.activeDetail)&&void 0!==e&&e.musicFirstSvg?le(De,{name:"checked",color:"rgba(103,201,176,1)"},null):""}}),le(N,{title:"清除缓存数据",clickable:!0,onClick:a},null),le(N,{title:"保存缓存数据",clickable:!0,onClick:l},null)]}})])])}}}),Lt=d(),Mt=Se(),Ot=n("musicJSON",xe({json:"",svg:"",rended:!1})),Et=n("MusicSheetRef",ue());n("default",oe({name:"Colexiu",setup:function(){Be(),r.midiPlayIniting=!0;var e=ue(!0),t=ue(!1),n=ue(!1),a=ue(""),c=ue("init"),d=ue(""),p=ue({}),f=ue({}),h=l(W(Lt.id),2),v=h[0],g=h[1],m=new Q(650,884);de(v,o(regeneratorRuntime.mark((function i(){var o,u,s,h,m,b,_,y,w,x;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if("success"!==v.value||!g.value.xmlFileUrl){i.next=16;break}return P(g.value),f.value=C[F(g.value.code||"")]||{},o=Ue(),u=o.showFingering,s=o.frozenMode,h=o.compulsionEvaluating,i.next=6,ae(u.value?g.value.code:void 0);case 6:m=i.sent,b=l(m,3),_=b[0],y=b[1],w=b[2],c.value=_.value,d.value=y.value,p.value=w.value,r.frozenMode=s.value,n.value=h.value;case 16:if("success"!==v.value||!g.value.xmlFileUrl){i.next=27;break}return i.next=19,re(g.value.xmlFileUrl,g.value);case 19:if((x=i.sent).value){i.next=26;break}return e.value=!1,t.value=!0,i.abrupt("return");case 26:a.value=x.value;case 27:case"end":return i.stop()}}),i)}))));var b,_,y,w=(b=function(){"vertical"===f.value.direction&&(A("加载中,请稍后..."),setTimeout((function(){Et.value.reRender()}),16))},_=300,y=!0,function(){if(!y)return!1;y=!1,setTimeout((function(){b(),y=!0}),_)});he((function(){window.appName="colexiu",U.on("settingFingeringChange",w),se({api:"setEventTracking",content:{type:"klx_xiaokuAI"}})})),ve((function(){var e,t,n;(U.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())})),q(),K(),H();var x=ue(!1),S=ue(),k=function(){var t=o(regeneratorRuntime.mark((function t(i){var a,o,l,c,d,p,f,h,v,m,b,_,y,w,k,I;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(window.isLoading=!1,console.log("onRerender","渲染结束"),se({api:"cloudLoading",content:{show:!1,type:"fullscreen"}}),console.log("cloudLoading",!1),r.initRendered=!0,console.log(Lt),console.time("获取数据"),s.osmd=i,r.isSpecialBookCategory=!0,"native"===r.renderType&&(r.times=X(i)),x.value="json"===Lt.modeType||!(null!==(a=r.activeDetail)&&void 0!==a&&a.musicSvg)||!(null!==(o=r.activeDetail)&&void 0!==o&&o.musicJianSvg)||!(null!==(l=r.activeDetail)&&void 0!==l&&l.musicFirstSvg),x.value){f=u(i),h=f.numerator,v=f.denominator;try{Ot.json=JSON.stringify({musicId:r.activeDetail.id,musicSheetName:encodeURIComponent(r.activeDetail.musicSheetName),osmd:{product:!0,bpm:(null==i||null===(m=i.Sheet)||void 0===m?void 0:m.userStartTempoInBPM)||(null==i?void 0:i.bpm),numerator:h,denominator:v,scoreSize:pe.sett.scoreSize||"middle"},times:r.times}),console.log("生成缓存数据",S.value),Ot.svg=(null===(b=document.getElementById("osmdSvgPage1"))||void 0===b?void 0:b.outerHTML)||"",ke((function(){var e,t;Ot.svg=(null===(e=document.getElementById("osmdSvgPage1"))||void 0===e?void 0:e.outerHTML)||"",Ot.rended=!0,null===(t=S.value)||void 0===t||t.autoProduct()}))}catch(B){console.log(B)}}return console.timeEnd("获取数据"),console.log("🚀 ~ detailState.times",r.times),_=(Ie.get("speeds")||{})[Lt.id],y=i.bpm||i.Sheet.userStartTempoInBPM,r.activeSpeed=_||y||100,r.baseSpeed=y||100,r.code=(null===(c=g.value)||void 0===c?void 0:c.code)||"",r.activeDetail.originalSpeed=r.baseSpeed,w=(null===(d=r.times[r.times.length-1||0])||void 0===d?void 0:d.endtime)||0,r.isAppPlay&&We(w,g.value.midiUrl),s.durationNum||(s.durationNum=w),t.next=25,qe();case 25:k=t.sent,r.freeRate=k.value,ee(g.value.paymentType||g.value.chargeType,g.value.orderStatus),de((function(){return pe.sett.camera}),(function(e){se(e?{api:"openCamera"}:{api:"closeCamera"})}),{immediate:!0}),te(r.activeSpeed),((null===(p=r.setting)||void 0===p?void 0:p.resets)||[]).includes("SPEED")&&r.activeDetail&&te(null===(I=r.activeDetail)||void 0===I?void 0:I.originalSpeed),ne(),e.value=!1;try{ie(r.times)}catch(B){}n.value&&(s.evaluatingStatus=!0,G.value="evaluation");case 35:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),I=function(){var t=o(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.value=!0,se({api:"cloudLoading",content:{show:!0,type:"fullscreen"}});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),B=function(){window.isLoading=!1,se({api:"cloudLoading",content:{show:!1,type:"fullscreen"}}),t.value=!0,e.value=!1},P=function(e){se({api:"cloudAccompanyMessage",content:{accompanyUrl:e.audioFileUrl||e.metronomeUrl||e.url||""}})};return function(){var n=e.value||"loading"===v.value,o=t.value||"error"===v.value,l=f.value,u=l.width,d=l.paddingRight,p=l.paddingLeft,h=l.direction,b="init"!==c.value,_=u||"0px",y=d||"0px",w=p||"0px",x="vertical"===h,P="vertical"===h?"20px":"0px",j="show"===c.value&&pe.sett.fingering&&!s.evaluatingStatus,D="vertical"===h&&j,T=i(i({},x&&{margin:"auto",marginRight:0}),{},{width:f.value&&D?"calc(100% - ".concat(_," - ").concat(y," - ").concat(w," - ").concat(P,")"):""});return le("div",{class:[Fe.container,pe.sett.eyeProtection&&"eyeProtection",Mt.android&&"android"]},[le(V,{class:Fe.buttons},null),le("div",{id:"colexiu-detail-music-sheet",class:[Fe.musicSheet,{evaluating:s.evaluatingStatus||"follow"===G.value}],style:{paddingLeft:r.isSpecialShapedScreen?r.notchHeight/2+"px":"auto",paddingBottom:j&&f.value.height?f.value.height:"40px",background:pe.sett.camera?"rgba(".concat(pe.sett.eyeProtection?"253,244,229":"255,255,255"," ,").concat(pe.sett.opacity/100,") !important"):""}},[n&&!o&&le(Oe,{class:Fe.skeleton,rowWidth:"80%",title:!0,row:3},null),o&&le(Re,null,null),a.value&&b&&le(me,null,[le("h3",{style:{fontSize:"24px",fontWeight:"normal",textAlign:"center",padding:"0 10px",marginTop:"36px",marginBottom:"0px",marginLeft:"auto",width:T.width},class:"van-ellipsis"},[g.value.musicSheetName]),le(Y,{ref:Et,style:T,score:a.value,EngravingRules:"multiple"===Lt.pageType?{PageFormat:m,DYMusicScoreType:pe.sett.type}:{DYMusicScoreType:pe.sett.type},opotions:{drawTitle:!1,drawComposer:!0,drawLyricist:!1,drawMetronomeMarks:!0,drawMeasureNumbers:!0,autoResize:!1},onStartRender:I,onRenderError:B,onRerender:k,onLoaddingEnd:function(){e.value=!1,window.isLoading=!1,se({api:"cloudLoading",content:{show:!1,type:"fullscreen"}})}},null),j&&le(Ct,{style:{background:pe.sett.camera?"rgba(".concat(pe.sett.eyeProtection?"253,244,229":"255,255,255"," ,").concat(pe.sett.opacity/100,")"):"",boxShadow:pe.sett.camera?"none":""},code:g.value.code},null)])]),!n&&!o&&le(Ke,null,null),le(Me,{score:a.value},null),le(it,null,null),le(Z,null,null),le($,null,null),le(xt,null,null),le(Ft,{ref:S},null)])}}}))}}}))}();
|