index-legacy-617daedb.js 52 KB

12
  1. System.register(["./index-legacy-e28491f2.js"],(function(e,t){"use strict";var n,o,r,a,i,l,s,c,u,d,f,p,v,h,m,g,b,y,x,w,k,C,S,O,_,I,j,B,E,A,z,M,V,P,T,$,R,L,D,W,q,H,N,F,X,Y,U,Z,G,K,J,Q,ee,te,ne,oe,re,ae,ie,le,se,ce,ue,de,fe,pe,ve,he,me,ge,be,ye,xe,we,ke,Ce,Se,Oe,_e,Ie,je,Be,Ee,Ae,ze,Me,Ve,Pe,Te,$e,Re,Le,De,We,qe,He,Ne,Fe,Xe=document.createElement("style");return Xe.textContent="._fingeringContainer_xflo8_1{width:100%;height:100%;display:flex;justify-content:space-evenly;align-items:center;padding:0 .26667rem .10667rem;overflow:hidden}._vertical_xflo8_10{position:relative;padding:.26667rem 0;box-shadow:rgba(0,0,0,.05) 0 0 .26667rem}._vertical_xflo8_10 ._imgs_xflo8_15{flex:1}._imgs_xflo8_15{position:relative;width:84%;height:100%}._imgs_xflo8_15>img{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:block;max-width:100%;max-height:100%}._rightContent_xflo8_32{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;height:100%;flex-shrink:0}.saxophone{padding:.26667rem 0}.saxophone ._imgs_xflo8_15{width:100%}.saxophone ._rightContent_xflo8_32{position:absolute;right:.16rem;height:90%}.horn{padding:.26667rem .10667rem}.horn ._imgs_xflo8_15{width:100%}.horn ._rightContent_xflo8_32{position:absolute;right:.26667rem;height:100%}.up-bass-horn,.tuba{padding:.26667rem .10667rem}.up-bass-horn ._imgs_xflo8_15,.tuba ._imgs_xflo8_15{width:100%}.up-bass-horn ._rightContent_xflo8_32,.tuba ._rightContent_xflo8_32{position:absolute;right:.26667rem;height:100%}._yidiao_xflo8_76{width:.8rem;color:var(--van-primary-color);font-size:12Px;text-align:center;opacity:0}._tizhi_xflo8_83{width:.8rem;height:.8rem;text-align:center;line-height:.8rem;border-radius:100%;background-color:var(--van-primary-color);color:#fff;box-shadow:0 0 .26667rem rgba(0,0,0,.05);font-size:12Px;opacity:0;pointer-events:none}._tizhi_xflo8_83:active{opacity:.8}._canDisplay_xflo8_99{opacity:1;pointer-events:initial}@keyframes _activeopacity_xflo8_1{0%{transforopacitym:0}to{opacity:1}}@keyframes _leftrotates_xflo8_1{0%{transform:rotate(0)}50%{transform:rotate(-10deg)}to{transform:rotate(-10deg)}}@keyframes _rightrotates_xflo8_1{0%{transform:rotate(0)}50%{transform:rotate(5deg)}to{transform:rotate(5deg)}}.small-drum img[data-index=active]{animation:_activeopacity_xflo8_1 .2s;animation-delay:.3s;transform-origin:0 0}.small-drum img[data-index=left]{animation:_leftrotates_xflo8_1 .5s;transform-origin:0 0}.small-drum img[data-index=right]{animation:_rightrotates_xflo8_1 .5s;transform-origin:0 0}.piccolo{margin-top:0}\n",document.head.appendChild(Xe),{setters:[e=>{n=e.c1,o=e.c2,r=e.c3,a=e.l,i=e.c4,l=e.bV,s=e.c5,c=e.af,u=e.c6,d=e.aU,f=e.bk,p=e.by,v=e.bw,h=e.d,m=e.bE,g=e.n,b=e.e,y=e.bz,x=e.bi,w=e.c7,k=e.w,C=e.br,S=e.f,O=e.bH,_=e.bG,I=e.aX,j=e.bx,B=e.bh,E=e.a7,A=e.bn,z=e.bu,M=e.bp,V=e.c8,P=e.c9,T=e.b3,$=e.c,R=e.ca,L=e.cb,D=e.as,W=e.bs,q=e.cc,H=e.bj,N=e.bl,F=e.cd,X=e.bI,Y=e.ce,U=e.cf,Z=e.cg,G=e.bC,K=e.bv,J=e.bU,Q=e.ch,ee=e.ci,te=e.bo,ne=e.bK,oe=e.bN,re=e.cj,ae=e.ck,ie=e.cl,le=e.bL,se=e.I,ce=e.cm,ue=e.cn,de=e.co,fe=e.bR,pe=e.cp,ve=e.cq,he=e.cr,me=e.cs,ge=e.k,be=e.ct,ye=e.bY,xe=e.bB,we=e.cu,ke=e.cv,Ce=e.cw,Se=e.bq,Oe=e.J,_e=e.P,Ie=e.F,je=e.bm,Be=e.cx,Ee=e.bA,Ae=e.cy,ze=e.cz,Me=e.cA,Ve=e.cB,Pe=e.cC,Te=e.cD,$e=e.cE,Re=e.cF,Le=e.V,De=e.cG,We=e.ah,qe=e.cH,He=e.o,Ne=e.m,Fe=e.b9}],execute:function(){function t(e,t){if(!l||!window.IntersectionObserver)return;const n=new IntersectionObserver((e=>{t(e[0].intersectionRatio>0)}),{root:document.body}),o=()=>{e.value&&n.unobserve(e.value)};s(o),c(o),u((()=>{e.value&&n.observe(e.value)}))}const[Xe,Ye]=d("sticky"),Ue={zIndex:f,position:p("top"),container:Object,offsetTop:v(0),offsetBottom:v(0)};var Ze=h({name:Xe,props:Ue,emits:["scroll","change"],setup(e,{emit:n,slots:r}){const i=a(),l=m(i),s=g({fixed:!1,width:0,height:0,transform:0}),c=b((()=>y("top"===e.position?e.offsetTop:e.offsetBottom))),u=b((()=>{const{fixed:e,height:t,width:n}=s;if(e)return{width:`${n}px`,height:`${t}px`}})),d=b((()=>{if(!s.fixed)return;const t=x(w(e.zIndex),{width:`${s.width}px`,height:`${s.height}px`,[e.position]:`${c.value}px`});return s.transform&&(t.transform=`translate3d(0, ${s.transform}px, 0)`),t})),f=()=>{if(!i.value||O(i))return;const{container:t,position:r}=e,a=_(i),l=o(window);if(s.width=a.width,s.height=a.height,"top"===r)if(t){const e=_(t),n=e.bottom-c.value-s.height;s.fixed=c.value>a.top&&e.bottom>0,s.transform=n<0?n:0}else s.fixed=c.value>a.top;else{const{clientHeight:e}=document.documentElement;if(t){const n=_(t),o=e-n.top-c.value-s.height;s.fixed=e-c.value<a.bottom&&e>n.top,s.transform=o<0?-o:0}else s.fixed=e-c.value<a.bottom}(e=>{n("scroll",{scrollTop:e,isFixed:s.fixed})})(l)};return k((()=>s.fixed),(e=>n("change",e))),C("scroll",f,{target:l,passive:!0}),t(i,f),()=>{var e;return S("div",{ref:i,style:u.value},[S("div",{class:Ye({fixed:s.fixed}),style:d.value},[null==(e=r.default)?void 0:e.call(r)])])}}});const Ge=I(Ze),[Ke,Je]=d("tab");var Qe=h({name:Ke,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:f,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:j},setup(e,{slots:t}){const n=b((()=>{const t={},{type:n,color:o,disabled:r,isActive:a,activeColor:i,inactiveColor:l}=e;o&&"card"===n&&(t.borderColor=o,r||(a?t.backgroundColor=o:t.color=o));const s=a?i:l;return s&&(t.color=s),t})),o=()=>{const n=S("span",{class:Je("text",{ellipsis:!e.scrollable})},[t.title?t.title():e.title]);return e.dot||B(e.badge)&&""!==e.badge?S(E,{dot:e.dot,content:e.badge,showZero:e.showZeroBadge},{default:()=>[n]}):n};return()=>S("div",{id:e.id,role:"tab",class:[Je([e.type,{grow:e.scrollable&&!e.shrink,shrink:e.shrink,active:e.isActive,disabled:e.disabled}])],style:n.value,tabindex:e.disabled?void 0:e.isActive?0:-1,"aria-selected":e.isActive,"aria-disabled":e.disabled||void 0,"aria-controls":e.controls},[o()])}});const[et,tt]=d("swipe"),nt={loop:j,width:f,height:f,vertical:Boolean,autoplay:v(0),duration:v(500),touchable:j,lazyRender:Boolean,initialSwipe:v(0),indicatorColor:String,showIndicators:j,stopPropagation:j},ot=Symbol(et);var rt=h({name:et,props:nt,emits:["change","dragStart","dragEnd"],setup(e,{emit:t,slots:n}){const o=a(),r=a(),i=g({rect:null,width:0,height:0,offset:0,active:0,swiping:!1});let l=!1;const u=A(),{children:d,linkChildren:f}=z(ot),p=b((()=>d.length)),v=b((()=>i[e.vertical?"height":"width"])),h=b((()=>e.vertical?u.deltaY.value:u.deltaX.value)),m=b((()=>i.rect?(e.vertical?i.rect.height:i.rect.width)-v.value*p.value:0)),y=b((()=>v.value?Math.ceil(Math.abs(m.value)/v.value):p.value)),x=b((()=>p.value*v.value)),w=b((()=>(i.active+p.value)%p.value)),_=b((()=>{const t=e.vertical?"vertical":"horizontal";return u.direction.value===t})),I=b((()=>{const t={transitionDuration:`${i.swiping?0:e.duration}ms`,transform:`translate${e.vertical?"Y":"X"}(${i.offset}px)`};if(v.value){const n=e.vertical?"height":"width",o=e.vertical?"width":"height";t[n]=`${x.value}px`,t[o]=e[o]?`${e[o]}px`:""}return t})),j=(t,n=0)=>{let o=t*v.value;e.loop||(o=Math.min(o,-m.value));let r=n-o;return e.loop||(r=H(r,m.value,0)),r},B=({pace:n=0,offset:o=0,emitChange:r})=>{if(p.value<=1)return;const{active:a}=i,l=(t=>{const{active:n}=i;return t?e.loop?H(n+t,-1,p.value):H(n+t,0,y.value):n})(n),s=j(l,o);if(e.loop){if(d[0]&&s!==m.value){const e=s<m.value;d[0].setOffset(e?x.value:0)}if(d[p.value-1]&&0!==s){const e=s>0;d[p.value-1].setOffset(e?-x.value:0)}}i.active=l,i.offset=s,r&&l!==a&&t("change",w.value)},E=()=>{i.swiping=!0,i.active<=-1?B({pace:p.value}):i.active>=p.value&&B({pace:-p.value})},N=()=>{E(),u.reset(),q((()=>{i.swiping=!1,B({pace:1,emitChange:!0})}))};let F;const X=()=>clearTimeout(F),Y=()=>{X(),+e.autoplay>0&&p.value>1&&(F=setTimeout((()=>{N(),Y()}),+e.autoplay))},U=(t=+e.initialSwipe)=>{if(!o.value)return;const n=()=>{var n,r;if(!O(o)){const t={width:o.value.offsetWidth,height:o.value.offsetHeight};i.rect=t,i.width=+(null!=(n=e.width)?n:t.width),i.height=+(null!=(r=e.height)?r:t.height)}p.value&&-1===(t=Math.min(p.value-1,t))&&(t=p.value-1),i.active=t,i.swiping=!0,i.offset=j(t),d.forEach((e=>{e.setOffset(0)})),Y()};O(o)?D().then(n):n()},Z=()=>U(i.active);let G;const K=t=>{!e.touchable||t.touches.length>1||(u.start(t),l=!1,G=Date.now(),X(),E())},J=()=>{if(!e.touchable||!i.swiping)return;const n=Date.now()-G,o=h.value/n;if((Math.abs(o)>.25||Math.abs(h.value)>v.value/2)&&_.value){const t=e.vertical?u.offsetY.value:u.offsetX.value;let n=0;n=e.loop?t>0?h.value>0?-1:1:0:-Math[h.value>0?"ceil":"floor"](h.value/v.value),B({pace:n,emitChange:!0})}else h.value&&B({pace:0});l=!1,i.swiping=!1,t("dragEnd",{index:w.value}),Y()},Q=(t,n)=>{const o=n===w.value,r=o?{backgroundColor:e.indicatorColor}:void 0;return S("i",{style:r,class:tt("indicator",{active:o})},null)};return M({prev:()=>{E(),u.reset(),q((()=>{i.swiping=!1,B({pace:-1,emitChange:!0})}))},next:N,state:i,resize:Z,swipeTo:(t,n={})=>{E(),u.reset(),q((()=>{let o;o=e.loop&&t===p.value?0===i.active?0:t:t%p.value,n.immediate?q((()=>{i.swiping=!1})):i.swiping=!1,B({pace:o-i.active,emitChange:!0})}))}}),f({size:v,props:e,count:p,activeIndicator:w}),k((()=>e.initialSwipe),(e=>U(+e))),k(p,(()=>U(i.active))),k((()=>e.autoplay),Y),k([V,P],Z),k(T(),(e=>{"visible"===e?Y():X()})),$(U),R((()=>U(i.active))),L((()=>U(i.active))),s(X),c(X),C("touchmove",(n=>{e.touchable&&i.swiping&&(u.move(n),_.value)&&(!e.loop&&(0===i.active&&h.value>0||i.active===p.value-1&&h.value<0)||(W(n,e.stopPropagation),B({offset:h.value}),l||(t("dragStart",{index:w.value}),l=!0)))}),{target:r}),()=>{var t;return S("div",{ref:o,class:tt()},[S("div",{ref:r,style:I.value,class:tt("track",{vertical:e.vertical}),onTouchstartPassive:K,onTouchend:J,onTouchcancel:J},[null==(t=n.default)?void 0:t.call(n)]),n.indicator?n.indicator({active:w.value,total:p.value}):e.showIndicators&&p.value>1?S("div",{class:tt("indicators",{vertical:e.vertical})},[Array(p.value).fill("").map(Q)]):void 0])}}});const at=e("S",I(rt)),[it,lt]=d("tabs");var st=h({name:it,props:{count:N(Number),inited:Boolean,animated:Boolean,duration:N(f),swipeable:Boolean,lazyRender:Boolean,currentIndex:N(Number)},emits:["change"],setup(e,{emit:t,slots:n}){const o=a(),r=e=>t("change",e),i=()=>{var t;const a=null==(t=n.default)?void 0:t.call(n);return e.animated||e.swipeable?S(at,{ref:o,loop:!1,class:lt("track"),duration:1e3*+e.duration,touchable:e.swipeable,lazyRender:e.lazyRender,showIndicators:!1,onChange:r},{default:()=>[a]}):a},l=t=>{const n=o.value;n&&n.state.active!==t&&n.swipeTo(t,{immediate:!e.inited})};return k((()=>e.currentIndex),l),$((()=>{l(e.currentIndex)})),M({swipeRef:o}),()=>S("div",{class:lt("content",{animated:e.animated||e.swipeable})},[i()])}});const[ct,ut]=d("tabs"),dt={type:p("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:v(0),duration:v(.3),animated:Boolean,ellipsis:j,swipeable:Boolean,scrollspy:Boolean,offsetTop:v(0),background:String,lazyRender:j,lineWidth:f,lineHeight:f,beforeChange:Function,swipeThreshold:v(5),titleActiveColor:String,titleInactiveColor:String},ft=Symbol(ct);var pt=h({name:ct,props:dt,emits:["change","scroll","rendered","clickTab","update:active"],setup(e,{emit:l,slots:s}){let c,d,f;const p=a(),v=a(),h=a(),x=a(),w=F(),I=m(p),[j,E]=function(){const e=a([]),t=[];return i((()=>{e.value=[]})),[e,n=>(t[n]||(t[n]=t=>{e.value[n]=t}),t[n])]}(),{children:A,linkChildren:P}=z(ft),T=g({inited:!1,position:"",lineStyle:{},currentIndex:-1}),$=b((()=>A.length>+e.swipeThreshold||!e.ellipsis||e.shrink)),W=b((()=>({borderColor:e.color,background:e.background}))),q=(e,t)=>{var n;return null!=(n=e.name)?n:t},H=b((()=>{const e=A[T.currentIndex];if(e)return q(e,T.currentIndex)})),N=b((()=>y(e.offsetTop))),ee=b((()=>e.sticky?N.value+c:0)),te=t=>{const o=v.value,r=j.value;if(!($.value&&o&&r&&r[T.currentIndex]))return;const a=r[T.currentIndex].$el;!function(e,t,o){let r=0;const a=e.scrollLeft,i=0===o?1:Math.round(1e3*o/16);!function o(){e.scrollLeft+=(t-a)/i,++r<i&&n(o)}()}(o,a.offsetLeft-(o.offsetWidth-a.offsetWidth)/2,t?0:+e.duration)},ne=()=>{const t=T.inited;D((()=>{const n=j.value;if(!n||!n[T.currentIndex]||"line"!==e.type||O(p.value))return;const o=n[T.currentIndex].$el,{lineWidth:r,lineHeight:a}=e,i=o.offsetLeft+o.offsetWidth/2,l={width:X(r),backgroundColor:e.color,transform:`translateX(${i}px) translateX(-50%)`};if(t&&(l.transitionDuration=`${e.duration}s`),B(a)){const e=X(a);l.height=e,l.borderRadius=e}T.lineStyle=l}))},oe=(t,n)=>{const o=(e=>{const t=e<T.currentIndex?-1:1;for(;e>=0&&e<A.length;){if(!A[e].disabled)return e;e+=t}})(t);if(!B(o))return;const r=A[o],a=q(r,o),i=null!==T.currentIndex;T.currentIndex!==o&&(T.currentIndex=o,n||te(),ne()),a!==e.active&&(l("update:active",a),i&&l("change",a,r.title)),f&&!e.scrollspy&&U(Math.ceil(Z(p.value)-N.value))},re=(e,t)=>{const n=A.find(((t,n)=>q(t,n)===e)),o=n?A.indexOf(n):0;oe(o,t)},ae=(t=!1)=>{if(e.scrollspy){const a=A[T.currentIndex].$el;if(a&&I.value){const i=Z(a,I.value)-ee.value;d=!0,function(e,t,a,i){let l=o(e);const s=l<t,c=0===a?1:Math.round(1e3*a/16),u=(t-l)/c;!function o(){l+=u,(s&&l>t||!s&&l<t)&&(l=t),r(e,l),s&&l<t||!s&&l>t?n(o):i&&n(i)}()}(I.value,i,t?0:+e.duration,(()=>{d=!1}))}}},ie=e=>{f=e.isFixed,l("scroll",e)},le=()=>A.map(((t,n)=>S(Qe,G({key:t.id,id:`${w}-${n}`,ref:E(n),type:e.type,color:e.color,style:t.titleStyle,class:t.titleClass,shrink:e.shrink,isActive:n===T.currentIndex,controls:t.id,scrollable:$.value,activeColor:e.titleActiveColor,inactiveColor:e.titleInactiveColor,onClick:o=>((t,n,o)=>{const{title:r,disabled:a}=A[n],i=q(A[n],n);a||(J(e.beforeChange,{args:[i],done:()=>{oe(n),ae()}}),Q(t)),l("clickTab",{name:i,title:r,event:o,disabled:a})})(t,n,o)},K(t,["dot","badge","title","disabled","showZeroBadge"])),{title:t.$slots.title}))),se=()=>{if("line"===e.type&&A.length)return S("div",{class:ut("line"),style:T.lineStyle},null)},ce=()=>{var t,n,o;const{type:r,border:a,sticky:i}=e,l=[S("div",{ref:i?void 0:h,class:[ut("wrap"),{[Y]:"line"===r&&a}]},[S("div",{ref:v,role:"tablist",class:ut("nav",[r,{shrink:e.shrink,complete:$.value}]),style:W.value,"aria-orientation":"horizontal"},[null==(t=s["nav-left"])?void 0:t.call(s),le(),se(),null==(n=s["nav-right"])?void 0:n.call(s)])]),null==(o=s["nav-bottom"])?void 0:o.call(s)];return i?S("div",{ref:h},[l]):l};return k([()=>e.color,V],ne),k((()=>e.active),(e=>{e!==H.value&&re(e)})),k((()=>A.length),(()=>{T.inited&&(re(e.active),ne(),D((()=>{te(!0)})))})),M({resize:()=>{ne(),D((()=>{var e,t;return null==(t=null==(e=x.value)?void 0:e.swipeRef.value)?void 0:t.resize()}))},scrollTo:e=>{D((()=>{re(e),ae(!0)}))}}),R(ne),L(ne),u((()=>{re(e.active,!0),D((()=>{T.inited=!0,h.value&&(c=_(h.value).height),te(!0)}))})),t(p,ne),C("scroll",(()=>{if(e.scrollspy&&!d){const e=(()=>{for(let e=0;e<A.length;e++){const{top:t}=_(A[e].$el);if(t>ee.value)return 0===e?0:e-1}return A.length-1})();oe(e)}}),{target:I,passive:!0}),P({id:w,props:e,setLine:ne,onRendered:(e,t)=>l("rendered",e,t),currentName:H,scrollIntoView:te}),()=>S("div",{ref:p,class:ut([e.type])},[e.sticky?S(Ge,{container:p.value,offsetTop:N.value,onScroll:ie},{default:()=>[ce()]}):ce(),S(st,{ref:x,count:A.length,inited:T.inited,animated:e.animated,duration:e.duration,swipeable:e.swipeable,lazyRender:e.lazyRender,currentIndex:T.currentIndex,onChange:oe},{default:()=>{var e;return[null==(e=s.default)?void 0:e.call(s)]}})])}});const vt=Symbol(),[ht,mt]=(e("u",(()=>ee(vt,null))),d("swipe-item"));var gt=h({name:ht,setup(e,{slots:t}){let n;const o=g({offset:0,inited:!1,mounted:!1}),{parent:r,index:a}=te(ot);if(!r)return;const i=b((()=>{const e={},{vertical:t}=r.props;return r.size.value&&(e[t?"height":"width"]=`${r.size.value}px`),o.offset&&(e.transform=`translate${t?"Y":"X"}(${o.offset}px)`),e})),l=b((()=>{const{loop:e,lazyRender:t}=r.props;if(!t||n)return!0;if(!o.mounted)return!1;const i=r.activeIndicator.value,l=r.count.value-1,s=0===i&&e?l:i-1,c=i===l&&e?0:i+1;return n=a.value===i||a.value===s||a.value===c,n}));return $((()=>{D((()=>{o.mounted=!0}))})),M({setOffset:e=>{o.offset=e}}),()=>{var e;return S("div",{class:mt(),style:i.value},[l.value?null==(e=t.default)?void 0:e.call(t):null])}}});const bt=e("a",I(gt)),[yt,xt]=d("tab"),wt=x({},ne,{dot:Boolean,name:f,badge:f,title:String,disabled:Boolean,titleClass:oe,titleStyle:[String,Object],showZeroBadge:j});var kt=h({name:yt,props:wt,setup(e,{slots:t}){const n=F(),o=a(!1),{parent:r,index:i}=te(ft);if(!r)return;const l=()=>{var t;return null!=(t=e.name)?t:i.value},s=b((()=>{const t=l()===r.currentName.value;return t&&!o.value&&(o.value=!0,r.props.lazyRender&&D((()=>{r.onRendered(l(),e.title)}))),t})),c=a(!s.value);return k(s,(e=>{e?c.value=!1:q((()=>{c.value=!0}))})),k((()=>e.title),(()=>{r.setLine(),r.scrollIntoView()})),re(vt,s),()=>{var e;const a=`${r.id}-${i.value}`,{animated:l,swipeable:u,scrollspy:d,lazyRender:f}=r.props;if(!t.default&&!l)return;const p=d||s.value;if(l||u)return S(bt,{id:n,role:"tabpanel",class:xt("panel-wrapper",{inactive:c.value}),tabindex:s.value?0:-1,"aria-hidden":!s.value,"aria-labelledby":a},{default:()=>{var e;return[S("div",{class:xt("panel")},[null==(e=t.default)?void 0:e.call(t)])]}});const v=o.value||d||!f?null==(e=t.default)?void 0:e.call(t):null;return M({id:n}),ae(S("div",{id:n,role:"tabpanel",class:xt("panel"),tabindex:p?0:-1,"aria-labelledby":a},[v]),[[ie,p]])}}});e("c",I(kt)),e("T",I(pt));const[Ct,St]=d("cell"),Ot={tag:p("div"),icon:String,size:String,title:f,value:f,label:f,center:Boolean,isLink:Boolean,border:j,required:Boolean,iconPrefix:String,valueClass:oe,labelClass:oe,titleClass:oe,titleStyle:null,arrowDirection:String,clickable:{type:Boolean,default:null}},_t=x({},Ot,ne);var It=h({name:Ct,props:_t,setup(e,{slots:t}){const n=le(),o=()=>{if(t.label||B(e.label))return S("div",{class:[St("label"),e.labelClass]},[t.label?t.label():e.label])},r=()=>{var n;if(t.title||B(e.title)){const r=null==(n=t.title)?void 0:n.call(t);if(Array.isArray(r)&&0===r.length)return;return S("div",{class:[St("title"),e.titleClass],style:e.titleStyle},[r||S("span",null,[e.title]),o()])}},a=()=>{const n=t.value||t.default;if(n||B(e.value))return S("div",{class:[St("value"),e.valueClass]},[n?n():S("span",null,[e.value])])},i=()=>{if(t["right-icon"])return t["right-icon"]();if(e.isLink){const t=e.arrowDirection&&"right"!==e.arrowDirection?`arrow-${e.arrowDirection}`:"arrow";return S(se,{name:t,class:St("right-icon")},null)}};return()=>{var o;const{tag:l,size:s,center:c,border:u,isLink:d,required:f}=e,p=null!=(o=e.clickable)?o:d,v={center:c,required:f,clickable:p,borderless:!u};return s&&(v[s]=!!s),S(l,{class:St(v),role:p?"button":void 0,tabindex:p?0:void 0,onClick:n},{default:()=>{var n;return[t.icon?t.icon():e.icon?S(se,{name:e.icon,class:St("left-icon"),classPrefix:e.iconPrefix},null):void 0,r(),a(),i(),null==(n=t.extra)?void 0:n.call(t)]}})}}});const jt=e("C",I(It));function Bt(e){return Array.isArray(e)?!e.length:0!==e&&!e}function Et(e,t){const{message:n}=t;return fe(n)?n(e,t):n||""}function At({target:e}){e.composing=!0}function zt({target:e}){e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}function Mt(e){return[...e].length}function Vt(e,t){return[...e].slice(0,t).join("")}const[Pt,Tt]=d("field"),$t={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:f,formatter:Function,clearIcon:p("clear"),modelValue:v(""),inputAlign:String,placeholder:String,autocomplete:String,errorMessage:String,enterkeyhint:String,clearTrigger:p("focus"),formatTrigger:p("onChange"),error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null}},Rt=x({},Ot,$t,{rows:f,type:p("text"),rules:Array,autosize:[Boolean,Object],labelWidth:f,labelClass:oe,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});var Lt=h({name:Pt,props:Rt,emits:["blur","focus","clear","keypress","clickInput","endValidate","startValidate","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:n}){const o=F(),r=g({status:"unvalidated",focused:!1,validateMessage:""}),i=a(),l=a(),s=a(),{parent:c}=te(pe),u=()=>{var t;return String(null!=(t=e.modelValue)?t:"")},d=t=>B(e[t])?e[t]:c&&B(c.props[t])?c.props[t]:void 0,f=b((()=>{const t=d("readonly");if(e.clearable&&!t){const t=""!==u(),n="always"===e.clearTrigger||"focus"===e.clearTrigger&&r.focused;return t&&n}return!1})),p=b((()=>s.value&&n.input?s.value():e.modelValue)),v=e=>e.reduce(((e,t)=>e.then((()=>{if("failed"===r.status)return;let{value:e}=p;if(t.formatter&&(e=t.formatter(e,t)),!function(e,t){if(Bt(e)){if(t.required)return!1;if(!1===t.validateEmpty)return!0}return!(t.pattern&&!t.pattern.test(String(e)))}(e,t))return r.status="failed",void(r.validateMessage=Et(e,t));if(t.validator){if(Bt(e)&&!1===t.validateEmpty)return;return function(e,t){return new Promise((n=>{const o=t.validator(e,t);de(o)?o.then(n):n(o)}))}(e,t).then((n=>{n&&"string"==typeof n?(r.status="failed",r.validateMessage=n):!1===n&&(r.status="failed",r.validateMessage=Et(e,t))}))}}))),Promise.resolve()),h=()=>{r.status="unvalidated",r.validateMessage=""},m=()=>t("endValidate",{status:r.status,message:r.validateMessage}),y=(n=e.rules)=>new Promise((o=>{h(),n?(t("startValidate"),v(n).then((()=>{"failed"===r.status?(o({name:e.name,message:r.validateMessage}),m()):(r.status="passed",o(),m())}))):o()})),x=t=>{if(c&&e.rules){const{validateTrigger:n}=c.props,o=ve(n).includes(t),r=e.rules.filter((e=>e.trigger?ve(e.trigger).includes(t):o));r.length&&y(r)}},w=(n,o="onChange")=>{const a=n;n=(t=>{var n;const{maxlength:o}=e;if(B(o)&&Mt(t)>+o){const e=u();if(e&&Mt(e)===+o)return e;const a=null==(n=i.value)?void 0:n.selectionEnd;if(r.focused&&a){const e=[...t],n=e.length-+o;return e.splice(a-n,n),e.join("")}return Vt(t,+o)}return t})(n);const l=Mt(a)-Mt(n);if("number"===e.type||"digit"===e.type){const t="number"===e.type;n=he(n,t,t)}let s=0;if(e.formatter&&o===e.formatTrigger){const{formatter:t,maxlength:o}=e;if(n=t(n),B(o)&&Mt(n)>+o&&(n=Vt(n,+o)),i.value&&r.focused){const{selectionEnd:e}=i.value,n=Vt(a,e);s=Mt(t(n))-Mt(n)}}if(i.value&&i.value.value!==n)if(r.focused){let{selectionStart:e,selectionEnd:t}=i.value;if(i.value.value=n,B(e)&&B(t)){const o=Mt(n);l?(e-=l,t-=l):s&&(e+=s,t+=s),i.value.setSelectionRange(Math.min(e,o),Math.min(t,o))}}else i.value.value=n;n!==e.modelValue&&t("update:modelValue",n)},O=e=>{e.target.composing||w(e.target.value)},_=()=>{var e;return null==(e=i.value)?void 0:e.blur()},I=()=>{const t=i.value;"textarea"===e.type&&e.autosize&&t&&function(e,t){const n=ce();e.style.height="auto";let o=e.scrollHeight;if(ue(t)){const{maxHeight:e,minHeight:n}=t;void 0!==e&&(o=Math.min(o,e)),void 0!==n&&(o=Math.max(o,n))}o&&(e.style.height=`${o}px`,U(n))}(t,e.autosize)},j=e=>{r.focused=!0,t("focus",e),D(I),d("readonly")&&_()},E=e=>{r.focused=!1,w(u(),"onBlur"),t("blur",e),d("readonly")||(x("onBlur"),D(I),be())},A=e=>t("clickInput",e),z=e=>t("clickLeftIcon",e),V=e=>t("clickRightIcon",e),P=b((()=>"boolean"==typeof e.error?e.error:!(!c||!c.props.showError||"failed"!==r.status)||void 0)),T=b((()=>{const e=d("labelWidth"),t=d("labelAlign");if(e&&"top"!==t)return{width:X(e)}})),R=n=>{13===n.keyCode&&(c&&c.props.submitOnEnter||"textarea"===e.type||W(n),"search"===e.type&&_()),t("keypress",n)},L=()=>e.id||`${o}-input`,q=()=>{const t=Tt("control",[d("inputAlign"),{error:P.value,custom:!!n.input,"min-height":"textarea"===e.type&&!e.autosize}]);if(n.input)return S("div",{class:t,onClick:A},[n.input()]);const r={id:L(),ref:i,name:e.name,rows:void 0!==e.rows?+e.rows:void 0,class:t,disabled:d("disabled"),readonly:d("readonly"),autofocus:e.autofocus,placeholder:e.placeholder,autocomplete:e.autocomplete,enterkeyhint:e.enterkeyhint,"aria-labelledby":e.label?`${o}-label`:void 0,onBlur:E,onFocus:j,onInput:O,onClick:A,onChange:zt,onKeypress:R,onCompositionend:zt,onCompositionstart:At};return"textarea"===e.type?S("textarea",r,null):S("input",G("number"===(a=e.type)?{type:"text",inputmode:"decimal"}:"digit"===a?{type:"tel",inputmode:"numeric"}:{type:a},r),null);var a},H=()=>{const t=n["right-icon"];if(e.rightIcon||t)return S("div",{class:Tt("right-icon"),onClick:V},[t?t():S(se,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])},N=()=>{if(e.showWordLimit&&e.maxlength){const t=Mt(u());return S("div",{class:Tt("word-limit")},[S("span",{class:Tt("word-num")},[t]),ge("/"),e.maxlength])}},Y=()=>{if(c&&!1===c.props.showErrorMessage)return;const t=e.errorMessage||r.validateMessage;if(t){const e=n["error-message"],o=d("errorMessageAlign");return S("div",{class:Tt("error-message",o)},[e?e({message:t}):t])}},Z=()=>[S("div",{class:Tt("body")},[q(),f.value&&S(se,{ref:l,name:e.clearIcon,class:Tt("clear")},null),H(),n.button&&S("div",{class:Tt("button")},[n.button()])]),N(),Y()];return M({blur:_,focus:()=>{var e;return null==(e=i.value)?void 0:e.focus()},validate:y,formValue:p,resetValidation:h,getValidationStatus:()=>r.status}),re(me,{customValue:s,resetValidation:h,validateWithTrigger:x}),k((()=>e.modelValue),(()=>{w(u()),h(),x("onChange"),D(I)})),$((()=>{w(u(),e.formatTrigger),D(I)})),C("touchstart",(e=>{W(e),t("update:modelValue",""),t("clear",e)}),{target:b((()=>{var e;return null==(e=l.value)?void 0:e.$el}))}),()=>{const t=d("disabled"),r=d("labelAlign"),a=(()=>{const t=n["left-icon"];if(e.leftIcon||t)return S("div",{class:Tt("left-icon"),onClick:z},[t?t():S(se,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])})();return S(jt,{size:e.size,class:Tt({error:P.value,disabled:t,[`label-${r}`]:r}),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:T.value,valueClass:Tt("value"),titleClass:[Tt("label",[r,{required:e.required}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:a&&"top"!==r?()=>a:null,title:()=>{const t=(()=>{const t=d("labelWidth"),r=d("labelAlign"),a=d("colon")?":":"";return n.label?[n.label(),a]:e.label?S("label",{id:`${o}-label`,for:L(),style:"top"===r&&t?{width:X(t)}:void 0},[e.label+a]):void 0})();return"top"===r?[a,t].filter(Boolean):t||[]},value:Z,extra:n.extra})}}});e("F",I(Lt));const[Dt,Wt]=d("switch"),qt={size:f,loading:Boolean,disabled:Boolean,modelValue:oe,activeColor:String,inactiveColor:String,activeValue:{type:oe,default:!0},inactiveValue:{type:oe,default:!1}};var Ht=h({name:Dt,props:qt,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const o=()=>e.modelValue===e.activeValue,r=()=>{if(!e.disabled&&!e.loading){const n=o()?e.inactiveValue:e.activeValue;t("update:modelValue",n),t("change",n)}},a=()=>{if(e.loading){const t=o()?e.activeColor:e.inactiveColor;return S(xe,{class:Wt("loading"),color:t},null)}if(n.node)return n.node()};return ye((()=>e.modelValue)),()=>{var t;const{size:i,loading:l,disabled:s,activeColor:c,inactiveColor:u}=e,d=o(),f={fontSize:X(i),backgroundColor:d?c:u};return S("div",{role:"switch",class:Wt({on:d,loading:l,disabled:s}),style:f,tabindex:s?void 0:0,"aria-checked":d,onClick:r},[S("div",{class:Wt("node")},[a()]),null==(t=n.background)?void 0:t.call(n)])}}});e("d",I(Ht));const[Nt,Ft]=d("circle");let Xt=0;const Yt=e=>Math.min(Math.max(+e,0),100),Ut={text:String,size:f,fill:p("none"),rate:v(100),speed:v(0),color:[String,Object],clockwise:j,layerColor:String,currentRate:we(0),strokeWidth:v(40),strokeLinecap:String,startPosition:p("top")};var Zt=h({name:Nt,props:Ut,emits:["update:currentRate"],setup(e,{emit:t,slots:o}){const r="van-circle-"+Xt++,a=b((()=>+e.strokeWidth+1e3)),i=b((()=>function(e,t){const n=e?1:0;return`M ${t/2} ${t/2} m 0, -500 a 500, 500 0 1, ${n} 0, 1000 a 500, 500 0 1, ${n} 0, -1000`}(e.clockwise,a.value))),l=b((()=>{const t={top:0,right:90,bottom:180,left:270}[e.startPosition];if(t)return{transform:`rotate(${t}deg)`}}));k((()=>e.rate),(o=>{let r;const a=Date.now(),i=e.currentRate,l=Yt(o),s=Math.abs(1e3*(i-l)/+e.speed),c=()=>{const e=Date.now(),o=Math.min((e-a)/s,1)*(l-i)+i;t("update:currentRate",Yt(parseFloat(o.toFixed(1)))),(l>i?o<l:o>l)&&(r=n(c))};e.speed?(r&&ke(r),r=n(c)):t("update:currentRate",l)}),{immediate:!0});const s=()=>{const{strokeWidth:t,currentRate:n,strokeLinecap:o}=e,a=3140*n/100,l=ue(e.color)?`url(#${r})`:e.color,s={stroke:l,strokeWidth:+t+1+"px",strokeLinecap:o,strokeDasharray:`${a}px 3140px`};return S("path",{d:i.value,style:s,class:Ft("hover"),stroke:l},null)},c=()=>{const t={fill:e.fill,stroke:e.layerColor,strokeWidth:`${e.strokeWidth}px`};return S("path",{class:Ft("layer"),style:t,d:i.value},null)},u=()=>{const{color:t}=e;if(!ue(t))return;const n=Object.keys(t).sort(((e,t)=>parseFloat(e)-parseFloat(t))).map(((e,n)=>S("stop",{key:n,offset:e,"stop-color":t[e]},null)));return S("defs",null,[S("linearGradient",{id:r,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[n])])};return()=>S("div",{class:Ft(),style:Ce(e.size)},[S("svg",{viewBox:`0 0 ${a.value} ${a.value}`,style:l.value},[u(),c(),s()]),o.default?o.default():e.text?S("div",{class:Ft("text")},[e.text]):void 0])}});function Gt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Kt(e){return e instanceof Gt(e).Element||e instanceof Element}function Jt(e){return e instanceof Gt(e).HTMLElement||e instanceof HTMLElement}function Qt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Gt(e).ShadowRoot||e instanceof ShadowRoot)}e("f",I(Zt));var en=Math.round;function tn(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function nn(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),r=1,a=1;t&&Jt(e)&&(r=e.offsetWidth>0&&en(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&en(o.height)/e.offsetHeight||1);var i=(Kt(e)?Gt(e):window).visualViewport,l=!!/^((?!chrome|android).)*safari/i.test(tn())&&n,s=(o.left+(l&&i?i.offsetLeft:0))/r,c=(o.top+(l&&i?i.offsetTop:0))/a,u=o.width/r,d=o.height/a;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function on(e){var t=Gt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function rn(e){return e?(e.nodeName||"").toLowerCase():null}function an(e){return((Kt(e)?e.ownerDocument:e.document)||window.document).documentElement}function ln(e){return Gt(e).getComputedStyle(e)}function sn(e){var t=ln(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function cn(e,t,n){void 0===n&&(n=!1);var o,r,a=Jt(t),i=Jt(t)&&function(e){var t=e.getBoundingClientRect(),n=en(t.width)/e.offsetWidth||1,o=en(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),l=an(t),s=nn(e,i,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==rn(t)||sn(l))&&(c=(o=t)!==Gt(o)&&Jt(o)?{scrollLeft:(r=o).scrollLeft,scrollTop:r.scrollTop}:on(o)),Jt(t)?((u=nn(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=function(e){return nn(an(e)).left+on(e).scrollLeft}(l))),{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function un(e){return"html"===rn(e)?e:e.assignedSlot||e.parentNode||(Qt(e)?e.host:null)||an(e)}function dn(e){return["html","body","#document"].indexOf(rn(e))>=0?e.ownerDocument.body:Jt(e)&&sn(e)?e:dn(un(e))}function fn(e,t){var n;void 0===t&&(t=[]);var o=dn(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),a=Gt(o),i=r?[a].concat(a.visualViewport||[],sn(o)?o:[]):o,l=t.concat(i);return r?l:l.concat(fn(un(i)))}function pn(e){return["table","td","th"].indexOf(rn(e))>=0}function vn(e){return Jt(e)&&"fixed"!==ln(e).position?e.offsetParent:null}function hn(e){for(var t=Gt(e),n=vn(e);n&&pn(n)&&"static"===ln(n).position;)n=vn(n);return n&&("html"===rn(n)||"body"===rn(n)&&"static"===ln(n).position)?t:n||function(e){var t=/firefox/i.test(tn());if(/Trident/i.test(tn())&&Jt(e)&&"fixed"===ln(e).position)return null;var n=un(e);for(Qt(n)&&(n=n.host);Jt(n)&&["html","body"].indexOf(rn(n))<0;){var o=ln(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}var mn="top",gn="bottom",bn="right",yn="left",xn="auto",wn="start",kn="end",Cn=[].concat([mn,gn,bn,yn],[xn]).reduce((function(e,t){return e.concat([t,t+"-"+wn,t+"-"+kn])}),[]),Sn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function On(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}function _n(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return[].concat(n).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var In='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',jn='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Bn=["name","enabled","phase","fn","effect","requires","options"];function En(e){return e.split("-")[0]}function An(e){return e.split("-")[1]}var zn="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Mn={placement:"bottom",modifiers:[],strategy:"absolute"};function Vn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Pn(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,r=t.defaultOptions,a=void 0===r?Mn:r;return function(e,t,n){void 0===n&&(n=a);var r,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mn,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:l,setOptions:function(n){var r="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},a,l.options,r),l.scrollParents={reference:Kt(e)?fn(e):e.contextElement?fn(e.contextElement):[],popper:fn(t)};var i=function(e){var t=On(e);return Sn.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(o,l.options.modifiers)));l.orderedModifiers=i.filter((function(e){return e.enabled})),function(e){e.forEach((function(t){[].concat(Object.keys(t),Bn).filter((function(e,t,n){return n.indexOf(e)===t})).forEach((function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(_n(In,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(_n(In,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":Sn.indexOf(t.phase)<0&&console.error(_n(In,t.name,'"phase"',"either "+Sn.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(_n(In,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(_n(In,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(_n(In,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(_n(In,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+Bn.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach((function(n){null==e.find((function(e){return e.name===n}))&&console.error(_n(jn,String(t.name),n,n))}))}))}))}((c=[].concat(i,l.options.modifiers),f=function(e){return e.name},p=new Set,c.filter((function(e){var t=f(e);if(!p.has(t))return p.add(t),!0})))),En(l.options.placement)===xn&&(l.orderedModifiers.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var c,f,p,v=ln(t);return[v.marginTop,v.marginRight,v.marginBottom,v.marginLeft].some((function(e){return parseFloat(e)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" ")),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var a=r({state:l,name:t,instance:u,options:o}),i=function(){};s.push(a||i)}})),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(Vn(t,n)){var o,r,a,i;l.rects={reference:cn(t,hn(n),"fixed"===l.options.strategy),popper:(o=n,r=nn(o),a=o.offsetWidth,i=o.offsetHeight,Math.abs(r.width-a)<=1&&(a=r.width),Math.abs(r.height-i)<=1&&(i=r.height),{x:o.offsetLeft,y:o.offsetTop,width:a,height:i})},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var s=0,d=0;d<l.orderedModifiers.length;d++){if((s+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==l.reset){var f=l.orderedModifiers[d],p=f.fn,v=f.options,h=void 0===v?{}:v,m=f.name;"function"==typeof p&&(l=p({state:l,options:h,name:m,instance:u})||l)}else l.reset=!1,d=-1}}else console.error(zn)}},update:(r=function(){return new Promise((function(e){u.forceUpdate(),e(l)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(r())}))}))),i}),destroy:function(){d(),c=!0}};if(!Vn(e,t))return console.error(zn),u;function d(){s.forEach((function(e){return e()})),s=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var Tn={passive:!0},$n={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,a=void 0===r||r,i=o.resize,l=void 0===i||i,s=Gt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,Tn)})),l&&s.addEventListener("resize",n.update,Tn),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Tn)})),l&&s.removeEventListener("resize",n.update,Tn)}},data:{}},Rn={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=function(e){var t,n=e.reference,o=e.element,r=e.placement,a=r?En(r):null,i=r?An(r):null,l=n.x+n.width/2-o.width/2,s=n.y+n.height/2-o.height/2;switch(a){case mn:t={x:l,y:n.y-o.height};break;case gn:t={x:l,y:n.y+n.height};break;case bn:t={x:n.x+n.width,y:s};break;case yn:t={x:n.x-o.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?function(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case wn:t[c]=t[c]-(n[u]/2-o[u]/2);break;case kn:t[c]=t[c]+(n[u]/2-o[u]/2)}}return t}({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},Ln={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Dn(e){var t,n=e.popper,o=e.popperRect,r=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=i.x,p=void 0===f?0:f,v=i.y,h=void 0===v?0:v,m="function"==typeof u?u({x:p,y:h}):{x:p,y:h};p=m.x,h=m.y;var g=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),y=yn,x=mn,w=window;if(c){var k=hn(n),C="clientHeight",S="clientWidth";k===Gt(n)&&"static"!==ln(k=an(n)).position&&"absolute"===l&&(C="scrollHeight",S="scrollWidth"),(r===mn||(r===yn||r===bn)&&a===kn)&&(x=gn,h-=(d&&k===w&&w.visualViewport?w.visualViewport.height:k[C])-o.height,h*=s?1:-1),r!==yn&&(r!==mn&&r!==gn||a!==kn)||(y=bn,p-=(d&&k===w&&w.visualViewport?w.visualViewport.width:k[S])-o.width,p*=s?1:-1)}var O,_=Object.assign({position:l},c&&Ln),I=!0===u?function(e){var t=e.x,n=e.y,o=window.devicePixelRatio||1;return{x:en(t*o)/o||0,y:en(n*o)/o||0}}({x:p,y:h}):{x:p,y:h};return p=I.x,h=I.y,s?Object.assign({},_,((O={})[x]=b?"0":"",O[y]=g?"0":"",O.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",O)):Object.assign({},_,((t={})[x]=b?h+"px":"",t[y]=g?p+"px":"",t.transform="",t))}var Wn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,c=ln(t.elements.popper).transitionProperty||"";i&&["transform","top","right","bottom","left"].some((function(e){return c.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "));var u={placement:En(t.placement),variation:An(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Dn(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Dn(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},qn={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},r=t.elements[e];Jt(r)&&rn(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],r=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Jt(o)&&rn(o)&&(Object.assign(o.style,a),Object.keys(r).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]},Hn=Pn({defaultModifiers:[$n,Rn,Wn,qn]}),Nn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.offset,a=void 0===r?[0,0]:r,i=Cn.reduce((function(e,n){return e[n]=function(e,t,n){var o=En(e),r=[yn,mn].indexOf(o)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*r,[yn,bn].indexOf(o)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=i}};const[Fn,Xn]=d("popover"),Yn=["overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],Un={show:Boolean,theme:p("light"),overlay:Boolean,actions:je(),trigger:p("click"),duration:f,showArrow:j,placement:p("bottom"),iconPrefix:String,overlayClass:oe,overlayStyle:Object,closeOnClickAction:j,closeOnClickOverlay:j,closeOnClickOutside:j,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"}};var Zn=h({name:Fn,props:Un,emits:["select","touchstart","update:show"],setup(e,{emit:t,slots:n,attrs:o}){let r;const i=a(),s=a(),u=a(),d=((e,t)=>{const n=a(e());return k(e,(e=>{e!==n.value&&(n.value=e)})),k(n,(n=>{n!==e()&&t(n)})),n})((()=>e.show),(e=>t("update:show",e))),f=()=>({placement:e.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},x({},Nn,{options:{offset:e.offset}})]}),p=()=>{D((()=>{d.value&&(r?r.setOptions(f()):(r=s.value&&u.value?Hn(s.value,u.value.popupRef.value,f()):null,l&&(window.addEventListener("animationend",p),window.addEventListener("transitionend",p))))}))},v=e=>{d.value=e},h=()=>{"click"===e.trigger&&(d.value=!d.value)},m=(t,o)=>n.action?n.action({action:t,index:o}):[t.icon&&S(se,{name:t.icon,classPrefix:e.iconPrefix,class:Xn("action-icon")},null),S("div",{class:[Xn("action-text"),Be]},[t.text])],g=(n,o)=>{const{icon:r,color:a,disabled:i,className:l}=n;return S("div",{role:"menuitem",class:[Xn("action",{disabled:i,"with-icon":r}),l],style:{color:a},tabindex:i?void 0:0,"aria-disabled":i||void 0,onClick:()=>((n,o)=>{n.disabled||(t("select",n,o),e.closeOnClickAction&&(d.value=!1))})(n,o)},[m(n,o)])};return $((()=>{p(),Se((()=>{var e;i.value=null==(e=u.value)?void 0:e.popupRef.value}))})),c((()=>{r&&(l&&(window.removeEventListener("animationend",p),window.removeEventListener("transitionend",p)),r.destroy(),r=null)})),k((()=>[d.value,e.offset,e.placement]),p),Oe([s,i],(()=>{d.value&&e.closeOnClickOutside&&(!e.overlay||e.closeOnClickOverlay)&&(d.value=!1)}),{eventName:"touchstart"}),()=>{var t;return S(Ie,null,[S("span",{ref:s,class:Xn("wrapper"),onClick:h},[null==(t=n.reference)?void 0:t.call(n)]),S(_e,G({ref:u,show:d.value,class:Xn([e.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,"onUpdate:show":v},o,K(e,Yn)),{default:()=>[e.showArrow&&S("div",{class:Xn("arrow")},null),S("div",{role:"menu",class:Xn("content")},[n.default?n.default():e.actions.map(g)])]})])}}});e("P",I(Zn));const[Gn,Kn]=d("slider"),Jn={min:v(0),max:v(100),step:v(1),range:Boolean,reverse:Boolean,disabled:Boolean,readonly:Boolean,vertical:Boolean,barHeight:f,buttonSize:f,activeColor:String,inactiveColor:String,modelValue:{type:[Number,Array],default:0}};var Qn=h({name:Gn,props:Jn,emits:["change","dragEnd","dragStart","update:modelValue"],setup(e,{emit:t,slots:n}){let o,r,i;const l=a(),s=[a(),a()],c=a(),u=A(),d=b((()=>Number(e.max)-Number(e.min))),f=b((()=>{const t=e.vertical?"width":"height";return{background:e.inactiveColor,[t]:X(e.barHeight)}})),p=t=>e.range&&Array.isArray(t),v=()=>{const{modelValue:t,min:n}=e;return p(t)?100*(t[1]-t[0])/d.value+"%":100*(t-Number(n))/d.value+"%"},h=b((()=>{const t={[e.vertical?"height":"width"]:v(),background:e.activeColor};return c.value&&(t.transition="none"),t[e.vertical?e.reverse?"bottom":"top":e.reverse?"right":"left"]=(()=>{const{modelValue:t,min:n}=e;return p(t)?100*(t[0]-Number(n))/d.value+"%":"0%"})(),t})),m=t=>{const n=+e.min,o=+e.max,r=+e.step;t=H(t,n,o);const a=Math.round((t-n)/r)*r;return ze(n,a)},g=(n,o)=>{n=p(n)?(t=>{var n,o;const r=null!=(n=t[0])?n:Number(e.min),a=null!=(o=t[1])?o:Number(e.max);return r>a?[a,r]:[r,a]})(n).map(m):m(n),Ee(n,e.modelValue)||t("update:modelValue",n),o&&!Ee(n,i)&&t("change",n)},y=t=>{if(t.stopPropagation(),e.disabled||e.readonly)return;const{min:n,reverse:o,vertical:r,modelValue:a}=e,i=_(l),s=r?i.height:i.width,c=Number(n)+(r?o?i.bottom-t.clientY:t.clientY-i.top:o?i.right-t.clientX:t.clientX-i.left)/s*d.value;if(p(a)){const[e,t]=a;g(c<=(e+t)/2?[c,t]:[e,c],!0)}else g(c,!0)},x=n=>{if(e.disabled||e.readonly)return;"start"===c.value&&t("dragStart",n),W(n,!0),u.move(n),c.value="dragging";const a=_(l);let s=(e.vertical?u.deltaY.value:u.deltaX.value)/(e.vertical?a.height:a.width)*d.value;if(e.reverse&&(s=-s),p(i)){const t=e.reverse?1-o:o;r[t]=i[t]+s}else r=i+s;g(r)},w=n=>{e.disabled||e.readonly||("dragging"===c.value&&(g(r,!0),t("dragEnd",n)),c.value="")},k=t=>Kn("button-wrapper","number"==typeof t?["left","right"][t]:e.reverse?"left":"right"),O=(t,o)=>{if("number"==typeof o){const e=n[0===o?"left-button":"right-button"];if(e)return e({value:t})}return n.button?n.button({value:t}):S("div",{class:Kn("button"),style:Ce(e.buttonSize)},null)},I=t=>{const n="number"==typeof t?e.modelValue[t]:e.modelValue;return S("div",{ref:s[null!=t?t:0],role:"slider",class:k(t),tabindex:e.disabled?void 0:0,"aria-valuemin":e.min,"aria-valuenow":n,"aria-valuemax":e.max,"aria-disabled":e.disabled||void 0,"aria-readonly":e.readonly||void 0,"aria-orientation":e.vertical?"vertical":"horizontal",onTouchstartPassive:n=>{"number"==typeof t&&(o=t),(t=>{e.disabled||e.readonly||(u.start(t),r=e.modelValue,i=p(r)?r.map(m):m(r),c.value="start")})(n)},onTouchend:w,onTouchcancel:w,onClick:Ae},[O(n,t)])};return g(e.modelValue),ye((()=>e.modelValue)),s.forEach((e=>{C("touchmove",x,{target:e})})),()=>S("div",{ref:l,style:f.value,class:Kn({vertical:e.vertical,disabled:e.disabled}),onClick:y},[S("div",{class:Kn("bar"),style:h.value},[e.range?[I(0),I(1)]:I()])])}});e("b",I(Qn));var eo={show:{type:Boolean,default:!1},position:{type:String,default:"center",validator:function(e){return["top","bottom","right","left","center"].includes(e)}},transition:{type:String},overlay:{type:Boolean,default:!0},overlayClass:{type:String},overlayStyle:{type:Object},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},defaultStyle:{type:Boolean,default:!0},teleport:{type:String},onOpen:Me(),onOpened:Me(),onClose:Me(),onClosed:Me(),onClickOverlay:Me(),"onUpdate:show":Me(),onRouteChange:Me()};function to(){return to=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},to.apply(this,arguments)}var{n:no,classes:oo}=qe("popup");const ro=e("e",h({name:"VarPopup",inheritAttrs:!1,props:eo,setup(e,t){var{slots:n,attrs:o}=t,{zIndex:r}=Ve((()=>e.show),3),{disabled:a}=Pe(),i=()=>{var{closeOnClickOverlay:t,onClickOverlay:n}=e;De(n),t&&De(e["onUpdate:show"],!1)};Te((()=>e.show),(()=>e.lockScroll)),k((()=>e.show),(t=>{De(t?e.onOpen:e.onClose)})),$e((()=>De(e.onRouteChange)));var l=()=>{var{overlayClass:t="",overlayStyle:n}=e;return S("div",{class:oo(no("overlay"),t),style:to({zIndex:r.value-1},n),onClick:i},null)},s=()=>{var{onOpened:t,onClosed:a,show:i,overlay:s,transition:c,position:u}=e;return S(We,{name:no("$-fade"),onAfterEnter:t,onAfterLeave:a},{default:()=>[ae(S("div",{class:oo(no("$--box"),no()),style:{zIndex:r.value-2}},[s&&l(),S(We,{name:c||no("$-pop-"+u)},{default:()=>[i&&S("div",G({class:oo(no("content"),no("--"+e.position),[e.defaultStyle,no("--content-background-color")],[e.defaultStyle,no("$-elevation--3")]),style:{zIndex:r.value}},o),[De(n.default)])]})]),[[ie,i]])]})};return()=>{var t,n,{teleport:o}=e;return o?S(Re,{to:o,disabled:a.value},"function"==typeof(n=t=s())||"[object Object]"===Object.prototype.toString.call(n)&&!Le(n)?t:{default:()=>[t]}):s()}}}));ro.install=function(e){e.component(ro.name,ro)};const ao="_fingeringContainer_xflo8_1",io="_vertical_xflo8_10",lo="_imgs_xflo8_15",so="_rightContent_xflo8_32",co="_tizhi_xflo8_83",uo="_canDisplay_xflo8_99";e("g",h({name:"fingering",emits:["open"],setup(e,{emit:t}){const n=g({relationshipIndex:0,subject:null,delay:0});He((()=>{(async()=>{n.subject=await Fe(Ne.fingeringInfo.name),console.log("🚀 ~ fingerData.subject:",n.subject)})()}));const o=b((()=>{var e;return(null===(e=Ne.times[Ne.activeNoteIndex])||void 0===e?void 0:e.realKey)||-1})),r=()=>{const e=Date.now();e-n.delay<300?t("open"):n.delay=e};return()=>{var e,t,a,i,l,s;const c=(null===(e=n.subject)||void 0===e||null===(t=e.relationship)||void 0===t?void 0:t[o.value])||[],u=Array.isArray(c[1])?c[n.relationshipIndex]:c,d=Array.isArray(c[1]);return S(Ie,null,["transverse"===Ne.fingeringInfo.direction?S("div",{onClick:()=>r(),class:[ao]},[S("div",{class:lo},[S("img",{src:null===(a=n.subject)||void 0===a||null===(i=a.json)||void 0===i?void 0:i.full},null),u.map(((e,t)=>{var o,r;const a="string"==typeof e?e.replace("active-",""):String(e);return S("img",{"data-index":a,src:null===(o=n.subject)||void 0===o||null===(r=o.json)||void 0===r?void 0:r[a]},null)}))]),Ne.fingeringInfo.hasTizhi&&S("div",{class:[co,d&&uo],onClick:()=>n.relationshipIndex=0===n.relationshipIndex?1:0},[ge("替指")])]):S("div",{onClick:()=>r(),class:[ao,io,Ne.fingeringInfo.name]},[S("div",{class:lo},[S("img",{src:null===(l=n.subject)||void 0===l||null===(s=l.json)||void 0===s?void 0:s.full},null),u.map(((e,t)=>{var o,r;const a="string"==typeof e?e.replace("active-",""):String(e);return S("img",{"data-index":a,src:null===(o=n.subject)||void 0===o||null===(r=o.json)||void 0===r?void 0:r[a]},null)}))]),Ne.fingeringInfo.hasTizhi&&S("div",{style:{display:Ne.fingeringInfo.disabledFinger?"none":""},class:so},[S("div",{class:[co,d&&uo],onClick:()=>n.relationshipIndex=0===n.relationshipIndex?1:0},[ge("替指")])])])])}}}))}}}));