!function(){function e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function n(n){for(var r=1;r=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return c=e.done,e},e:function(e){s=!0,o=e},f:function(){try{c||null==t.return||t.return()}finally{if(s)throw o}}}}function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);timg._icon_5v2hh_12{width:.53333rem;height:.53333rem}._container_5v2hh_1>img._status_5v2hh_16{width:.26667rem;height:.26667rem}._container_5v2hh_1 ._noticeBar_5v2hh_20{height:calc(.8rem * var(--screen));font-size:calc(.32rem * var(--screen));overflow:hidden;color:#000;font-weight:600;padding-left:calc(.16rem * var(--screen));flex:1}\n",document.head.appendChild(c),System.register(["./music-legacy.996cf9b7.js","./App-legacy.e9a3d8ec.js"],(function(e){"use strict";var t,a,i,c,s,u,l,f,g,d;return{setters:[function(e){t=e.M},function(e){a=e.d,i=e.a,c=e.Q,s=e.r,u=e.f,l=e.R,f=e.U,g=e.j,d=e.V}],execute:function(){var v="_container_5v2hh_1",h="_icon_5v2hh_12",m="_status_5v2hh_16",p="_noticeBar_5v2hh_20",y=(e("T",a({name:"detail-title",props:{title:{type:String,default:""},rightView:{type:Boolean,default:!0},onClick:{type:Function}},render:function(){return i("div",{onClick:this.onClick,class:v},[i("img",{class:h,src:t},null),i(c,{text:this.title,color:"#4a4a4a",class:p,background:"none"},null),this.rightView?i("img",{class:m,src:"/orchestra-music-score/assets/arrow.c0b252e8.svg"},null):null])}})),e("I","/orchestra-music-score/assets/arrow-left.fecfe01d.svg"),s(null)),w=null;e("M",a({name:"music-score",props:{score:{type:String,default:""},showPartNames:{type:Boolean,default:!1},onRerender:{type:Function,default:function(){}},opotions:{type:Object,default:function(){}},EngravingRules:{type:Object,default:function(){}}},data:function(){return{osmd:null,loading:!1}},watch:{score:function(){this.loadRender()}},methods:{loadRender:function(){var e=this;return o(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.loading=!0,!e.score){n.next=15;break}return n.prev=2,n.next=5,w.load(e.score);case 5:return w.zoom=u(),n.next=8,w.render();case 8:e.onRerender(w),n.next=15;break;case 11:n.prev=11,n.t0=n.catch(2),console.log(n.t0),e.onRerender(null);case 15:l.emit("loaded"),e.loading=!1;case 17:case"end":return n.stop()}}),n,null,[[2,11]])})))()},noteClickEvent:function(e){l.emit("container-click",e);var n,t=r(e.path||e.composedPath&&e.composedPath());try{for(t.s();!(n=t.n()).done;){var a=n.value;a.classList&&a.classList.contains("vf-stavenote")&&l.emit("click",e,a)}}catch(i){t.e(i)}finally{t.f()}}},beforeUnmount:function(){y.value.removeEventListener("touchstart",this.noteClickEvent,!1)},mounted:function(){var e=this;return o(regeneratorRuntime.mark((function t(){var r,a,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return y.value.addEventListener("touchstart",e.noteClickEvent,!1),t.next=3,new f(y.value,n({followCursor:!1,autoResize:!0,drawSubtitle:!1,drawTitle:!1,autoBeam:!0,drawMetronomeMarks:!1,drawMeasureNumbers:!1,drawComposer:!1,drawLyricist:!1,drawPartNames:e.showPartNames},e.opotions));case 3:for(a in(w=t.sent).EngravingRules.CompactMode=!0,w.EngravingRules.DYMinNoteWidth=3,w.EngravingRules.VoiceSpacingMultiplierVexflow=.65,w.EngravingRules.VoiceSpacingAddendVexflow=2,w.EngravingRules.MinSkyBottomDistBetweenStaves=2,w.EngravingRules.MinSkyBottomDistBetweenSystems=2,w.EngravingRules.MinimumStaffLineDistance=4,w.EngravingRules.BetweenStaffDistance=2.5,w.EngravingRules.StaffDistance=3.5,w.EngravingRules.MinimumDistanceBetweenSystems=1,w.EngravingRules.PageBottomMargin=0,w.EngravingRules.PageLeftMargin=2,w.EngravingRules.PageRightMargin=2,w.EngravingRules.PageTopMarginNarrow=3,w.EngravingRules.WedgeEndDistanceBetweenTimestampsFactor=1,w.EngravingRules.RehearsalMarkXOffset=-18,w.EngravingRules.RehearsalMarkYOffset=10,w.EngravingRules.DYWorkId=(null===(r=g.activeDetail)||void 0===r?void 0:r.parentCategoriesId)||0,e.EngravingRules)Object.prototype.hasOwnProperty.call(e.EngravingRules,a)&&(i=e.EngravingRules[a],w.EngravingRules[a]=i);e.loadRender();case 24:case"end":return t.stop()}}),t)})))()},render:function(){return i("div",{class:d.container,ref:y},null)}}))}}}))}();