!function(){var e=document.createElement("style");e.innerHTML="._search_152bw_1{--van-cell-background-color: transparent;--van-cell-font-size: .42667rem;--van-cell-text-color: #333;--van-cell-value-color: #999;--van-cell-icon-size: .26667rem;--base-bg: #f6f8f9}._search_152bw_1 ._sticky_152bw_9>div{background-color:var(--base-bg)}._search_152bw_1 ._title_152bw_12{padding-top:.42667rem}._search_152bw_1 ._title_152bw_12 .van-cell__value{font-size:.32rem}._search_152bw_1 ._keywords_152bw_18{margin-top:.26667rem;padding:0 .37333rem .26667rem;display:flex;align-items:center}._search_152bw_1 ._keywords_152bw_18 ._content_152bw_25::-webkit-scrollbar{display:none}._search_152bw_1 ._keywords_152bw_18 ._content_152bw_25{flex:1;overflow:hidden;overflow-x:auto;display:flex}._search_152bw_1 ._keywords_152bw_18 ._content_152bw_25 ._searchKeyword_152bw_35{--van-tag-default-color: white;--van-tag-text-color: #333;font-size:.37333rem;padding:.10667rem .26667rem;margin-right:.13333rem;word-break:keep-all}._search_152bw_1 ._keywords_152bw_18 ._remove_152bw_43{font-size:.42667rem}._search_152bw_1 ._label_152bw_46{margin-right:.21333rem;font-size:.37333rem}._search_152bw_1 ._label_152bw_46 .van-list__loading,._search_152bw_1 ._label_152bw_46 .van-list__finished-text,._search_152bw_1 ._label_152bw_46 .van-list__error-text{width:100%}._search_152bw_1 ._label_152bw_46 .iconfont-down{margin-left:.10667rem}\n",document.head.appendChild(e),System.register(["./ResizeObserver.es-legacy.9ef5ac8c.js","./index-legacy.31c9aada.js","./index-legacy.49dc34f1.js","./index-legacy.68eb7f39.js","./index-legacy.75e14135.js","./index-legacy.46228add.js","./index-legacy.91eef022.js","./index-legacy.6e10cd37.js","./select-tag-legacy.27bb95b8.js","./music-legacy.bce575bd.js","./select-subject-legacy.269d1651.js","./hooks-legacy.b4b15558.js","./index-legacy.402479d8.js","./index-legacy.3c7372ae.js"],(function(e){"use strict";var n,t,a,o,r,c,l,i,s,u,_,d,f,b,m,v,h,w,g,y,p,k,j,x,S,C,O;return{setters:[function(e){n=e.d,t=e.g,a=e.U,o=e.Q,r=e.P,c=e.bF,l=e.a3,i=e.V,s=e.S,u=e.j,_=e.N,d=e.R,f=e.aS,b=e.$},function(e){m=e.T},function(){},function(){},function(e){v=e.T,h=e.a},function(e){w=e.S},function(e){g=e.d},function(e){y=e.c},function(e){p=e.S},function(e){k=e.g},function(e){j=e.S},function(e){x=e.a,S=e.S},function(e){C=e.C},function(e){O=e.T}],execute:function(){var z=e("s",{search:"_search_152bw_1",sticky:"_sticky_152bw_9",title:"_title_152bw_12",keywords:"_keywords_152bw_18",content:"_content_152bw_25",searchKeyword:"_searchKeyword_152bw_35",remove:"_remove_152bw_43",label:"_label_152bw_46"});var H,R=e("m",{all:H=H||new Map,on:function(e,n){var t=H.get(e);t?t.push(n):H.set(e,[n])},off:function(e,n){var t=H.get(e);t&&(n?t.splice(t.indexOf(n)>>>0,1):H.set(e,[]))},emit:function(e,n){var t=H.get(e);t&&t.slice().map((function(e){e(n)})),(t=H.get("*"))&&t.slice().map((function(t){t(e,n)}))}}),T=a(),E=n({name:"MusicSearchHeader",setup:function(){if(!x(S.SEARCH).id){var e=t.user.data,n=e.subjectId?Number(e.subjectId.split(",")[0]):"",H=e.subjectName?e.subjectName.split(",")[0]:"";n&&x(S.SEARCH,JSON.stringify({id:n,name:H}),"set")}var E=a();localStorage.setItem("behaviorId",k());var N=o(),A=r(),M=a(""),I=a(""),K=a(!1),P=g("music-search",[]),U=a("songe");c((function(){var e=x(S.SEARCH);if(L.name=e.name||"全部声部",L.id=e.id,"/music-songbook/search"===A.path){M.value="",I.value="",U.value="songe";try{var n,t;null===(n=T.value)||void 0===n||null===(t=n.resetTags)||void 0===t||t.call(n)}catch(a){console.log(a)}}return!0})),l(U,(function(e){R.emit("changeTab",e)}));var J=function(e){M.value=e;var n=P.value.indexOf(e);n>-1&&P.value.splice(n,1),e&&(P.value.unshift(e),P.value.length=Math.min(P.value.length,5)),R.emit("search",e)},V=function(e){var n=Object.values(e).flat().filter(Boolean).join(",");I.value=n,R.emit("confirm",e),K.value=!1},B=function(e){L.name=e.name,L.id=e.id,x(S.SEARCH,JSON.stringify({id:e.id,name:e.name}),"set"),R.emit("confirmSubject",L),L.show=!1};i((function(){}));var F=x(S.SEARCH),L=s({show:!1,name:F.name||"全部声部",id:F.id||""});return function(){return u("div",{class:z.search},[u(O,{class:z.sticky},{default:function(){return[u(C,{border:!1},null),u(w,{modelValue:M.value,ref:E,onSearch:J,onClick:function(){"/music-songbook"===A.path&&N.push({path:"/music-songbook/search"})}},{left:function(){return u("div",{class:z.label,onClick:function(){return L.show=!0}},[L.name,u(_,{classPrefix:"iconfont",name:"down",size:12,color:"#333"},null)])}}),"/music-songbook/search"===A.path&&u(v,{color:"var(--van-primary)",background:"transparent",lineWidth:20,shrink:!0,active:U.value,"onUpdate:active":function(e){return U.value=e},onChange:function(e){return U.value=e}},{default:function(){return[u(h,{title:"单曲",name:"songe"},null),u(h,{title:"专辑",name:"album"},null)]}})]}}),P.value.length>0&&"/music-songbook/search"===A.path&&u("div",{class:y(z.keywords,"van-hairline--bottom")},[u("div",{class:z.content},[P.value.map((function(e){return u(m,{round:!0,class:z.searchKeyword,key:e,onClick:function(){return J(e)}},"function"==typeof(n=e)||"[object Object]"===Object.prototype.toString.call(n)&&!b(n)?e:{default:function(){return[e]}});var n}))]),u(_,{class:z.remove,name:"delete-o",onClick:function(){return P.value=[]}},null)]),u(d,null,null),u(f,{show:K.value,round:!0,closeable:!0,position:"bottom",style:{height:"60%"},teleport:"body","onUpdate:show":function(e){return K.value=e}},{default:function(){return[u(p,{ref:T,onConfirm:V,onCancel:function(){}},null)]}}),u(f,{show:L.show,position:"bottom",round:!0,closeable:!0,"safe-area-inset-bottom":!0,onClose:function(){return L.show=!1},onClosed:function(){return L.show=!1}},{default:function(){return[u(j,{searchParams:L,onComfirm:B},null)]}})])}}}),N=Object.freeze(Object.defineProperty({__proto__:null,mitter:R,default:E},Symbol.toStringTag,{value:"Module"}));e("h",N)}}}))}();