import{i as w}from"./icon_back-c5ec0a72-1715840129614.js";import{T as u,P as h,i as S,a as T,b as C,c as P}from"./index-f4afcac5-1715840129614.js";import{i as m}from"./icon_default-d1bcaf5f-1715840129614.js";import{i as I}from"./icon_separator-e0f6c575-1715840129614.js";import{i as N,a as A,b as F}from"./icon-plus-t-35f4cdeb-1715840129614.js";import{i as L}from"./icon-pan-16e35a82-1715840129614.js";import{d as z,a as B,u as D,e as d,S as x,p as W,f as a,w as b,aM as R,aN as f,k as l,v as E,j as $,C as q}from"./index-27f38392-1715840129614.js";import{T as G}from"./index-f592738f-1715840129614.js";import{e as M}from"./api-279396c0-1715840129614.js";import{N as U}from"./Slider-17a69cd3-1715840129614.js";const j="_container_1gkpa_1",V="_iconBack_1gkpa_6",H="_separator_1gkpa_36",J="_wrap_1gkpa_41",K="_wrapBottom_1gkpa_47",O="_content_1gkpa_50",Q="_tools_1gkpa_57",X="_contentWrap_1gkpa_71",Y="_musicList_1gkpa_79",Z="_instrumentGroup_1gkpa_93",tt="_instrumentImg_1gkpa_101",at="_instrumentName_1gkpa_107",st="_instrumentTag_1gkpa_115",it="_wrapList_1gkpa_120",nt="_titlec_1gkpa_130",et="_icon2_1gkpa_140",ot="_empty_1gkpa_147",lt="_itemContainer_1gkpa_153",ct="_item_1gkpa_153",rt="_active_1gkpa_175",ut="_arrow_1gkpa_178",pt="_img_1gkpa_181",mt="_title_1gkpa_130",_t="_titleName_1gkpa_210",gt="_titleDes_1gkpa_217",dt="_btn_1gkpa_227",ft="_showPlayLoading_1gkpa_251",kt="_loadingWrap_1gkpa_254",vt="_musicStaff_1gkpa_259",yt="_musicTitle_1gkpa_275",wt="_icon1_1gkpa_284",ht="_musicContent_1gkpa_292",St="_staffImgs_1gkpa_305",Tt="_changeSizeSection_1gkpa_322",Ct="_iconT_1gkpa_335",Pt="_iconAddT_1gkpa_339",It="_iconPlusT_1gkpa_340",Nt="_musicTop_1gkpa_357",At="_musicInfo_1gkpa_358",Ft="_musicImg_1gkpa_368",Lt="_panSection_1gkpa_384",zt="_img2_1gkpa_395",Bt="_iconPan_1gkpa_402",Dt="_info_1gkpa_433",xt="_name_1gkpa_436",Wt="_c_1gkpa_1",s={container:j,iconBack:V,separator:H,wrap:J,wrapBottom:K,content:O,tools:Q,contentWrap:X,musicList:Y,instrumentGroup:Z,instrumentImg:tt,instrumentName:at,instrumentTag:st,wrapList:it,titlec:nt,icon2:et,empty:ot,itemContainer:lt,item:ct,active:rt,arrow:ut,img:pt,title:mt,titleName:_t,titleDes:gt,btn:dt,showPlayLoading:ft,loadingWrap:kt,musicStaff:vt,musicTitle:yt,icon1:wt,musicContent:ht,staffImgs:St,changeSizeSection:Tt,iconT:Ct,iconAddT:Pt,iconPlusT:It,musicTop:Nt,musicInfo:At,musicImg:Ft,panSection:Lt,img2:zt,iconPan:Bt,info:Dt,name:xt,c:Wt},Ht=z({name:"instrument-detail",setup(){const p=B(),_=D();d({page:1,rows:20,status:!0,name:"",type:p.query.type});const t=d({loading:!1,finshed:!1,reshing:!1,details:{},list:[],listActive:0,playState:"pause",showPlayer:!1,showPreivew:!1,previewUrl:"",showCloseBtn:!0,fontSize:18}),k=x(()=>t.list[t.listActive]||{}),r=i=>{const e=t.list.findIndex(n=>n.id===i.id);e>-1&&(t.listActive===e?t.playState=t.playState==="play"?"pause":"play":t.playState="play",t.showPlayer=!0,t.listActive=e)},v=i=>{i==="play"?t.playState="play":i==="pause"?t.playState="pause":i==="pre"?t.list[t.listActive-1]&&r(t.list[t.listActive-1]):i==="next"&&t.list[t.listActive+1]&&r(t.list[t.listActive+1])},y=async()=>{t.loading=!0;let i={};try{i=await M({id:p.query.id})}catch(n){console.log(n)}t.reshing&&(t.list=[],t.reshing=!1),t.finshed=!0,t.list=i.data.knowledgeWikiResources||[],t.list.forEach(n=>{n.audioFileUrl=n.url,n.musicSheetName=n.name});const e=i.data.knowledgeWikiCategories||[];i.data.knowledgeName=e.length>0?e[0].name:"",i.data.intros=i.data.intros.replace(/