@abi-software/mapintegratedvuer 0.7.0-vue3.4 → 0.7.0-vue3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -425,7 +425,7 @@ Please report this to https://github.com/markedjs/marked.`,e){const i="<p>An err
|
|
425
425
|
</g>
|
426
426
|
</svg>`,h0e=(e,t,r,n)=>{const i=["title","desc","defs","style"],o=["width","height"],s=n||[];let l=document.createElement("div");l.innerHTML=e,t&&i.map(u=>{const d=l.querySelector(u);d&&d.remove()}),r&&o.map(u=>{l.querySelector("svg").removeAttribute(u)}),n&&s.map(u=>{Object.values(l.querySelectorAll(`[${u}]`)).map(d=>{d.removeAttribute(u)})});const c=l.innerHTML;return l=null,c},f0e=e=>[[/<\?xml[\s\S]*?>/gi,""],[/<!doctype[\s\S]*?>/gi,""],[/<!--.*-->/gi,""],[/\<([A-Za-z]+)([^\>]*)\/\>/g,"<$1$2></$1>"],[/\s+/g," "],[/\> \</g,"><"]].reduce((t,r)=>"".replace.apply(t,r),e).trim(),Lot=!0,Sot=!0,kot=["fill"],Vj=Object.assign({"/assets/icons/2horpanel.svg":D2e,"/assets/icons/2vertpanel.svg":F2e,"/assets/icons/3panel.svg":z2e,"/assets/icons/4panel.svg":j2e,"/assets/icons/5panel.svg":U2e,"/assets/icons/6panel.svg":G2e,"/assets/icons/6panelVertical.svg":q2e,"/assets/icons/changeBckgd.svg":Z2e,"/assets/icons/close-no-bk.svg":W2e,"/assets/icons/close.svg":K2e,"/assets/icons/closeFullScreen.svg":X2e,"/assets/icons/dock.svg":J2e,"/assets/icons/fitWindow.svg":Y2e,"/assets/icons/fullScreen.svg":$2e,"/assets/icons/help.svg":e0e,"/assets/icons/magnifyingGlass.svg":t0e,"/assets/icons/noun-filter.svg":r0e,"/assets/icons/openMap.svg":n0e,"/assets/icons/pause.svg":i0e,"/assets/icons/permalink.svg":o0e,"/assets/icons/play.svg":a0e,"/assets/icons/resetZoom.svg":s0e,"/assets/icons/singlepanel.svg":l0e,"/assets/icons/tooltips.svg":c0e,"/assets/icons/undock.svg":u0e,"/assets/icons/zoomIn.svg":d0e,"/assets/icons/zoomOut.svg":p0e});Object.keys(Vj).map(e=>{const t=h0e(Vj[e],Lot,Sot,kot),r=e.replace(/^.+\/(\w+).svg$/,"$1");return f0e(t).replace("<svg",`<symbol id="${r}"`).replace("svg>","symbol>")}).join(`
|
427
427
|
`);const Mot=!0,Cot=!0,Ij=Object.assign({"/assets/icons/2horpanel.svg":D2e,"/assets/icons/2vertpanel.svg":F2e,"/assets/icons/3panel.svg":z2e,"/assets/icons/4panel.svg":j2e,"/assets/icons/5panel.svg":U2e,"/assets/icons/6panel.svg":G2e,"/assets/icons/6panelVertical.svg":q2e,"/assets/icons/changeBckgd.svg":Z2e,"/assets/icons/close-no-bk.svg":W2e,"/assets/icons/close.svg":K2e,"/assets/icons/closeFullScreen.svg":X2e,"/assets/icons/dock.svg":J2e,"/assets/icons/fitWindow.svg":Y2e,"/assets/icons/fullScreen.svg":$2e,"/assets/icons/help.svg":e0e,"/assets/icons/magnifyingGlass.svg":t0e,"/assets/icons/noun-filter.svg":r0e,"/assets/icons/openMap.svg":n0e,"/assets/icons/pause.svg":i0e,"/assets/icons/permalink.svg":o0e,"/assets/icons/play.svg":a0e,"/assets/icons/resetZoom.svg":s0e,"/assets/icons/singlepanel.svg":l0e,"/assets/icons/tooltips.svg":c0e,"/assets/icons/undock.svg":u0e,"/assets/icons/zoomIn.svg":d0e,"/assets/icons/zoomOut.svg":p0e}),Eot=Object.keys(Ij).map(e=>{const t=h0e(Ij[e],Mot,Cot),r=e.replace(/^.+\/(\w+).svg$/,"$1");return f0e(t).replace("<svg",`<symbol id="${r}"`).replace("svg>","symbol>")}),Aot={name:"MapSvgSpriteColor",svgContext:Ij,svgSprite:Eot.join(`
|
428
|
-
`)},Oot=["innerHTML"];function Hot(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("svg",{width:"0",height:"0",style:{display:"none"},innerHTML:e.$options.svgSprite},null,8,Oot)}const BC=B2e(Aot,[["render",Hot]]),Pj=()=>({entries:[{resource:"Rat",type:"MultiFlatmap",mode:"main",id:1,state:void 0,label:"",discoverId:void 0}]}),Vot=async(e,t)=>{let r={};if(e==="AC")r={resource:"Rat",type:"MultiFlatmap",mode:"main",state:void 0,label:"",discoverId:void 0};else if(e==="FC")r={resource:"FunctionalConnectivity",type:"Flatmap",mode:"main",state:void 0,label:"Functional",discoverId:void 0};else if(e==="3D"){const n=await Nj(t,"human");r={resource:n.url,type:"Scaffold",mode:"main",state:void 0,label:"Human",discoverId:n.datasetInfo.discoverId,contextCardUrl:n.datasetInfo.contextCardUrl,s3uri:n.datasetInfo.s3uri,version:n.datasetInfo.version,isBodyScaffold:!0}}return r},Iot=async(e,t)=>{const r=Pj();if(e==="FC")r.entries[0].resource="FunctionalConnectivity",r.entries[0].type="Flatmap",r.entries[0].label="Functional";else if(e==="WholeBody"){const n=await Nj(t,"human");r.entries[0].resource=n.url,r.entries[0].contextCardUrl=n.datasetInfo.contextCardUrl,r.entries[0].discoverId=n.datasetInfo.discoverId,r.entries[0].s3uri=n.datasetInfo.s3uri,r.entries[0].version=n.datasetInfo.version,r.entries[0].type="Scaffold",r.entries[0].label="Human",r.entries[0].isBodyScaffold=!0}return r},m0e=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),g0e=()=>({"Human Female":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000383",iconClass:"mapicon-icon_human",displayLatestChanges:!0,displayWarning:!0},"Human Male":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000384",iconClass:"mapicon-icon_human",displayLatestChanges:!0,displayWarning:!0},Rat:{taxo:"NCBITaxon:10114",iconClass:"mapicon-icon_rat",displayLatestChanges:!0,displayWarning:!0},Mouse:{taxo:"NCBITaxon:10090",iconClass:"mapicon-icon_mouse",displayLatestChanges:!0,displayWarning:!0},Pig:{taxo:"NCBITaxon:9823",iconClass:"mapicon-icon_pig",displayLatestChanges:!0,displayWarning:!0},Cat:{taxo:"NCBITaxon:9685",iconClass:"mapicon-icon_cat",displayLatestChanges:!0,displayWarning:!0}}),Pot=e=>{if(e){const t=g0e();for(let r in t)if(e.taxo===t[r].taxo)if(e.biologicalSex&&t[r].biologicalSex){if(e.biologicalSex===t[r].biologicalSex)return r}else return r}return""},Not=e=>{if(e){const t=e.split("//")[1];if(t){const r=t.split("/")[0],n=t.indexOf("/"),i=t.substring(n+1);return{s3Bucket:r,s3Prefix:i}}}},Nj=async(e,t)=>{let r="",n;const i=await fetch(`${e}get_body_scaffold_info/${t}`);if(i.ok){const o=await i.json(),s=Not(o.s3uri);r=`${e}s3-resource/${s.s3Prefix}files/${o.path}?s3BucketName=${s.s3Bucket}`;const l=`${e}s3-resource/${s.s3Prefix}files/${o.contextinfo}?s3BucketName=${s.s3Bucket}`;n={s3uri:o.s3uri,contextCardUrl:l,discoverId:o.id,version:o.version}}else t==="rat"?r="https://mapcore-bucket1.s3.us-west-2.amazonaws.com/WholeBody/31-May-2021/ratBody/ratBody_syncmap_metadata.json":t==="human"&&(r="https://mapcore-bucket1.s3.us-west-2.amazonaws.com/WholeBody/27-4-23-human/human_body_metadata.json");return{url:r,datasetInfo:n}},DC=gl.defineStore("entries",{state:()=>Pj(),getters:{findIndexOfId:e=>t=>{for(let r=0;r<e.entries.length;r++)if(e.entries[r].id==t)return r;return-1}},actions:{addNewEntry(e){this.entries.push(e)},destroyEntry(e){e>-1&&this.entries.splice(e,1)},setAll(e){this.entries=[],Object.assign(this.entries,e)},updateViewForEntry({id:e,viewUrl:t}){const r=this.entries.find(n=>n.id===e);r.viewUrl=t}}}),rg=gl.defineStore("settings",{state:()=>({shareLink:void 0,sparcApi:void 0,algoliaIndex:"k-core_dev_published_time_desc",algoliaKey:void 0,algoliaId:void 0,pennsieveApi:void 0,flatmapAPI:void 0,nlLinkPrefix:void 0,rootUrl:void 0,facets:{species:[],gender:[],organ:[]},facetLabels:[],markers:[],featuredMarkers:[],featuredMarkerIdentifiers:[],featuredMarkerDois:[],featuredMarkerSpecies:[],featuredDatasetIdentifiers:[],helpDelay:0}),getters:{isFeaturedMarkerIdentifier:e=>t=>e.featuredMarkerIdentifiers.includes(t),featuredMarkerDoi:e=>t=>{const r=e.featuredMarkerIdentifiers.findIndex(n=>n==t);return e.featuredMarkerDois[r]}},actions:{updateShareLink(e){this.shareLink=e},updateSparcAPI(e){this.sparcApi=e},updateAlgoliaIndex(e){this.algoliaIndex=e},updateAlgoliaKey(e){this.algoliaKey=e},updateAlgoliaId(e){this.algoliaId=e},updatePennsieveApi(e){this.pennsieveApi=e},updateFlatmapAPI(e){this.flatmapAPI=e},updateNLLinkPrefix(e){this.nlLinkPrefix=e},updateRootUrl(e){this.rootUrl=e},updateMarkers(e){this.markers=e},updateFeatured(e){this.featuredMarkerIdentifiers=new Array(e.length),this.featuredMarkers=new Array(e.length),this.featuredMarkerDois=new Array(e.length),this.featuredMarkerSpecies=new Array(e.length),this.featuredDatasetIdentifiers=e},updateFeaturedMarker(e){const t=this.featuredDatasetIdentifiers.findIndex(r=>r==e.identifier);this.featuredMarkers[t]=e.marker,this.featuredMarkerDois[t]=e.doi,this.featuredMarkerSpecies[t]=e.species},updateFeaturedMarkerIdentifier(e){this.featuredMarkerIdentifiers[e.index]=e.markerIdentifier},resetFeaturedMarkerIdentifier(){this.featuredMarkerIdentifiers=new Array(this.featuredDatasetIdentifiers.length)},updateFacets(e){let t={species:[],gender:[],organ:[]};if(e){e.forEach(r=>{switch(r.term.toLowerCase()){case"species":r.facet.toLowerCase()!=="show all"?(t.species.push(r.facet),this.facets.species.includes(r.facet)||this.facets.species.push(r.facet)):this.facets.species=[];break;case"gender":r.facet.toLowerCase()!=="show all"&&(t.gender.push(r.facet),this.facets.species.includes(r.facet)||this.facets.gender.push(r.facet));break;case"organ":r.facet.toLowerCase()!=="show all"&&(t.organ.push(r.facet),this.facets.species.includes(r.facet)||this.facets.organ.push(r.facet));break}});for(const[r,n]of Object.entries(this.facets)){let i=0;for(i=n.length-1;i>=0;i-=1)t[r].indexOf(n[i])==-1&&n.splice(i,1)}}},updateFacetLabels(e){this.facetLabels=e}}}),y0e=e=>{switch(e){case"2horpanel":return{"split-1":{content:!1,horizontal:!0,children:["pane-1","pane-2"]},"pane-1":{content:!0,id:1},"pane-2":{content:!0,id:2}};case"2vertpanel":return{"split-1":{content:!1,horizontal:!1,children:["pane-1","pane-2"]},"pane-1":{content:!0,id:1},"pane-2":{content:!0,id:2}};case"3panel":return{"split-1":{content:!1,horizontal:!1,children:["pane-1","split-2"]},"split-2":{content:!1,horizontal:!0,children:["pane-2","pane-3"]},"pane-1":{content:!0,id:1},"pane-2":{content:!0,id:2},"pane-3":{content:!0,id:3}};case"4panel":return{"split-1":{content:!1,horizontal:!1,children:["split-3","split-2"]},"split-2":{content:!1,horizontal:!0,children:["pane-2","pane-3"]},"split-3":{content:!1,horizontal:!0,children:["pane-1","pane-4"]},"pane-1":{content:!0,id:1},"pane-2":{content:!0,id:2},"pane-3":{content:!0,id:3},"pane-4":{content:!0,id:4}};case"5panel":return{"split-1":{content:!1,horizontal:!0,children:["split-3","split-2"]},"split-2":{content:!1,horizontal:!1,children:["pane-2","pane-3"]},"split-3":{content:!1,horizontal:!1,children:["pane-1","pane-4","pane-5"]},"pane-1":{content:!0,id:1},"pane-2":{content:!0,id:2},"pane-3":{content:!0,id:3},"pane-4":{content:!0,id:4},"pane-5":{content:!0,id:5}};case"6panel":return{"split-1":{content:!1,horizontal:!0,children:["split-3","split-2"]},"split-2":{content:!1,horizontal:!1,children:["pane-2","pane-3","pane-5"]},"split-3":{content:!1,horizontal:!1,children:["pane-1","pane-4","pane-6"]},"pane-1":{content:!0,id:1},"pane-2":{content:!0,id:2},"pane-3":{content:!0,id:3},"pane-4":{content:!0,id:4},"pane-5":{content:!0,id:5},"pane-6":{content:!0,id:6}};case"6panelVertical":return{"split-1":{content:!1,horizontal:!1,children:["split-3","split-2"]},"split-2":{content:!1,horizontal:!0,children:["pane-2","pane-3","pane-5"]},"split-3":{content:!1,horizontal:!0,children:["pane-1","pane-4","pane-6"]},"pane-1":{content:!0,id:1},"pane-2":{content:!0,id:2},"pane-3":{content:!0,id:3},"pane-4":{content:!0,id:4},"pane-5":{content:!0,id:5},"pane-6":{content:!0,id:6}};case"singlepanel":default:return{"split-1":{content:!1,horizontal:!1,children:["pane-1"]},"pane-1":{content:!0,id:1}}}},Rot=(e,t)=>{const r=[],n=[];for(const[i,o]of Object.entries(t))o.content&&(r.includes(o.id)?n.push(i):r.push(o.id));n.forEach(i=>{let o=!1;for(let s=0;s<e.length&&!o;s++)r.includes(e[s].id)||(t[i].id=e[s].id,r.push(e.id),o=!0)})},Bot=e=>{const t={};for(const[r,n]of Object.entries(e))n.content&&(t[r]=n);return t},FC=(e,t)=>{const r=Bot(e),n=y0e(t);for(const[i,o]of Object.entries(r))n[i]=o;return n},Q8=(e,t)=>Object.keys(e).find(r=>e[r].id===t),b8=gl.defineStore("splitFlow",{state:()=>({activeView:"singlepanel",viewIcons:[{icon:"singlepanel",name:"Single view",min:1},{icon:"2horpanel",name:"Horizontal split",min:2},{icon:"2vertpanel",name:"Vertical split",min:2},{icon:"3panel",name:"Three panes",min:3},{icon:"4panel",name:"Four panes",min:4},{icon:"5panel",name:"Five panes",min:5},{icon:"6panel",name:"Six (horizontal)",min:6},{icon:"6panelVertical",name:"Six (vertical)",min:6}],customLayout:{"split-1":{content:!1,horizontal:!1,children:["pane-1"]},"pane-1":{content:!0,id:1}},splitters:{first:50,second:50,third:50},globalCallback:!1,syncMode:!1}),getters:{getPaneNameById:e=>t=>Q8(e.customLayout,t),getState:e=>()=>({activeView:e.activeView,splitters:e.splitters,globalCallback:e.globalCallback,customLayout:e.customLayout,syncMode:e.syncMode})},actions:{assignOrSwapPaneWithIds(e){let t=Q8(this.customLayout,e.source),r=Q8(this.customLayout,e.target);this.syncMode&&!(r||t)&&(this.syncMode=!1,this.globalCallback=!1),r&&(this.customLayout[r].id=e.source),t&&(this.customLayout[t].id=e.target)},toggleGlobalCallback(e){this.globalCallback=e},updateActiveView(e){if(this.syncMode){const r=this.viewIcons.find(i=>this.activeView===i.icon),n=this.viewIcons.find(i=>e.view===i.icon);r.min==2&&n.min==2||(this.syncMode=!1,this.globalCallback=!1)}this.activeView=e.view;const t=FC(this.customLayout,this.activeView);Rot(e.entries,t);for(const[r,n]of Object.entries(t))this.customLayout[r]=n},setSplitter(e){this.splitters[e.name]&&(this.splitters[e.name]=e.value)},setState(e){if(e){let t;if(e.activeView&&(this.activeView=e.activeView),e.customLayout)t=e.customLayout;else if(t=y0e(this.activeView),console.log(e,t),e.slotInfo)for(let r=0;r<e.slotInfo.length;r++)switch(e.slotInfo[r].name){case"first":t["pane-1"].id=e.slotInfo[r].id;break;case"second":"pane-2"in t&&(t["pane-2"].id=e.slotInfo[r].id);break;case"thrid":"pane-3"in t&&(t["pane-3"].id=e.slotInfo[r].id);break;case"fourth":"pane-4"in t&&(t["pane-4"].id=e.slotInfo[r].id);break;case"fifth":"pane-5"in t&&(t["pane-5"].id=e.slotInfo[r].id);break;case"sixth":"pane-6"in t&&(t["pane-6"].id=e.slotInfo[r].id);break}for(const[r,n]of Object.entries(t))this.customLayout[r]=n;e.globalCallback&&(this.globalCallback=e.globalCallback);for(const[r,n]of Object.entries(e.splitters))this.splitters[r]=n;e.syncMode&&(this.syncMode=e.syncMode)}},setIdToPrimaryPane(e){const t=Q8(this.customLayout,e),r=this.customLayout["pane-1"].id;this.customLayout["pane-1"].id=e,t&&(this.customLayout[t].id=r)},setSyncMode(e){if(e)if(e.flag===!0){this.activeView=e.layout;const t=FC(this.customLayout,this.activeView),r=Q8(t,1),n=t["pane-1"].id;r!=="pane-1"&&(t["pane-1"].id=n),t["pane-1"].id=1,t["pane-2"].id=e.newId;for(const[i,o]of Object.entries(t))this.customLayout[i]=o;this.syncMode=!0,this.globalCallback=!0}else{this.activeView="singlepanel";const t=FC(this.customLayout,this.activeView);for(const[r,n]of Object.entries(t))this.customLayout[r]=n;this.syncMode=!1,this.globalCallback=!1}},closeSlot(e){if(e){this.syncMode=!1,this.globalCallback=!1;let t=0;if(e.id===1)t=1;else if(e.entries)for(let r=0;r<e.entries.length&&t==0;r++)Q8(e.entries[r].id)===void 0&&(t=e.entries[r].id);if(this.activeView!=="customise"){const r=this.activeView;switch(this.activeView){case"2horpanel":case"2vertpanel":this.activeView="singlepanel";break;case"3panel":this.activeView="2vertpanel";break;case"4panel":this.activeView="3panel";break;case"5panel":this.activeView="4panel";break;case"6panelVertical":case"6panel":this.activeView="5panel";break}const n=FC(this.customLayout,this.activeView);switch(Q8(n,e.id)){case"pane-1":switch(r){case"2horpanel":case"2vertpanel":n["pane-1"].id=n["pane-2"].id,n["pane-2"].id=t;break;case"3panel":n["pane-1"].id=n["pane-2"].id,n["pane-2"].id=n["pane-3"].id,n["pane-3"].id=t;break;case"4panel":n["pane-1"].id=n["pane-2"].id,n["pane-2"].id=n["pane-3"].id,n["pane-3"].id=n["pane-4"].id,n["pane-4"].id=t;break;case"5panel":n["pane-1"].id=n["pane-2"].id,n["pane-2"].id=n["pane-3"].id,n["pane-3"].id=n["pane-4"].id,n["pane-4"].id=n["pane-5"].id,n["pane-5"].id=t;break;case"6panelVertical":case"6panel":n["pane-1"].id=n["pane-2"].id,n["pane-2"].id=n["pane-3"].id,n["pane-3"].id=n["pane-4"].id,n["pane-4"].id=n["pane-5"].id,n["pane-5"].id=n["pane-6"].id,n["pane-6"].id=t;break}break;case"pane-2":switch(r){case"2horpanel":case"2vertpanel":n["pane-2"].id=t;break;case"3panel":n["pane-2"].id=n["pane-3"].id,n["pane-3"].id=t;break;case"4panel":n["pane-2"].id=n["pane-3"].id,n["pane-3"].id=n["pane-4"].id,n["pane-4"].id=t;break;case"5panel":n["pane-2"].id=n["pane-3"].id,n["pane-3"].id=n["pane-4"].id,n["pane-4"].id=n["pane-5"].id,n["pane-5"].id=t;break;case"6panelVertical":case"6panel":n["pane-2"].id=n["pane-3"].id,n["pane-3"].id=n["pane-4"].id,n["pane-4"].id=n["pane-5"].id,n["pane-5"].id=n["pane-6"].id,n["pane-6"].id=t;break}break;case"pane-3":switch(r){case"3panel":n["pane-3"].id=t;break;case"4panel":n["pane-3"].id=n["pane-4"].id,n["pane-4"].id=t;break;case"5panel":n["pane-3"].id=n["pane-4"].id,n["pane-4"].id=n["pane-5"].id,n["pane-5"].id=t;break;case"6panelVertical":case"6panel":n["pane-3"].id=n["pane-4"].id,n["pane-4"].id=n["pane-5"].id,n["pane-5"].id=n["pane-6"].id,n["pane-6"].id=t;break}break;case"pane-4":switch(r){case"4panel":n["pane-4"].id=t;break;case"5panel":n["pane-4"].id=n["pane-5"].id,n["pane-5"].id=t;break;case"6panelVertical":case"6panel":n["pane-4"].id=n["pane-5"].id,n["pane-5"].id=n["pane-6"].id,n["pane-6"].id=t;break}break;case"pane-5":switch(r){case"5panel":n["pane-5"].id=t;break;case"6panelVertical":case"6panel":n["pane-5"].id=n["pane-6"].id,n["pane-6"].id=t;break}break;case"pane-6":switch(r){case"6panelVertical":case"6panel":n["pane-6"].id=t;break}break}for(const[o,s]of Object.entries(n))this.customLayout[o]=s}}}}}),Dot={name:"ContentBar",components:{ElIconArrowDown:Gz,ElIconArrowUp:yce,ElIconInfoFilled:Qce,Input:Gb,Option:e2e,Popover:wC,Row:xC,Select:$1e,ContextCard:N2e,FlatmapContextCard:R2e,MapSvgIcon:Wb},props:{entry:Object},data:function(){return{contextCardVisible:!1,slot:{},boundariesElement:null,showDetails:!0,contextCardEntry:void 0}},computed:{...gl.mapStores(DC,rg,b8),helpDelay(){return this.settingsStore.helpDelay},activeView:function(){return this.splitFlowStore.activeView},envVars:function(){return{API_LOCATION:this.settingsStore.sparcApi,ALGOLIA_INDEX:this.settingsStore.algoliaIndex,ALGOLIA_KEY:this.settingsStore.algoliaKey,ALGOLIA_ID:this.settingsStore.algoliaId,PENNSIEVE_API_LOCATION:this.settingsStore.pennsieveApi,NL_LINK_PREFIX:this.settingsStore.nlLinkPrefix,ROOT_URL:this.settingsStore.rootUrl}},popperOptions:function(){return{preventOverflow:{enabled:!0,boundary:this.boundariesElement}}},entries:function(){return this.entriesStore.entries}},methods:{closeAndRemove:function(){this.splitFlowStore.closeSlot({id:this.entry.id,entries:this.entries}),Xo.emit("RemoveEntryRequest",this.entry.id)},getEntryTitle:function(e){if(e){let t=e.label?e.label+" ":"",r=e.type;return r=="Scaffold"&&(r="3D Scaffold"),t+=r,e.datasetId?t+=" ("+e.datasetId+")":e.discoverId&&(t+=" ("+e.discoverId+")"),t}return"Viewer"},viewerChanged:function(e){this.entry.id&&this.entry.id!=e&&(this.splitFlowStore.assignOrSwapPaneWithIds({source:this.entry.id,target:e}),this.$nextTick(()=>{setTimeout(()=>{this.$emit("chooser-changed")},1200)}))},setPopperWidth:function(e){let t=this.entries.find(r=>r.id===e);if(t)return t.type=="Flatmap"||t.type=="MultiFlatmap"?"240px":"440px"},setBoundary:function(e){this.boundariesElement=e},setupFlatmapContextCard:function(e){this.contextCardVisible=!1;let t=Object.assign({mapImpProv:e.prov},this.entry);this.contextCardEntry=t},setupScaffoldContextCard:function(){this.entry.contextCardUrl&&(this.contextCardEntry={...this.entry})}},mounted:function(){this.setupScaffoldContextCard()}},Fot={class:"toolbar-flex-container"},zot={key:1,class:"toolbar-title"};function jot(e,t,r,n,i,o){const s=e2e,l=$1e,c=yce,u=Ks,d=Gz,p=R2e,h=N2e,f=Qce,m=wC,g=a.resolveComponent("map-svg-icon"),T=xC;return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",Fot,[o.entries.length>1?(a.openBlock(),a.createBlock(l,{key:0,teleported:!1,"model-value":r.entry.id,placeholder:"Select",class:"select-box","popper-class":"viewer_dropdown",onChange:t[0]||(t[0]=y=>o.viewerChanged(y))},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.entries,y=>(a.openBlock(),a.createBlock(s,{key:y.id,label:o.getEntryTitle(y),value:y.id},null,8,["label","value"]))),128))]),_:1},8,["model-value"])):(a.openBlock(),a.createElementBlock("div",zot,a.toDisplayString(o.getEntryTitle(r.entry)),1))]),a.createVNode(T,{class:"icon-group"},{default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",{class:"hide",onClick:t[1]||(t[1]=y=>e.contextCardVisible=!1)},[a.createTextVNode(" Hide information "),a.createVNode(u,null,{default:a.withCtx(()=>[a.createVNode(c)]),_:1})],512),[[a.vShow,e.contextCardEntry&&e.contextCardVisible]]),a.withDirectives(a.createElementVNode("div",{class:"hide",onClick:t[2]||(t[2]=y=>e.contextCardVisible=!0)},[a.createTextVNode(" Show information "),a.createVNode(u,null,{default:a.withCtx(()=>[a.createVNode(d)]),_:1})],512),[[a.vShow,e.contextCardEntry&&!e.contextCardVisible]]),a.createVNode(m,{placement:"bottom",teleported:!1,trigger:"manual",width:o.setPopperWidth(e.slot.id),offset:0,"popper-class":"context-card-popover","popper-options":o.popperOptions,visible:e.contextCardVisible},a.createSlots({reference:a.withCtx(()=>[a.withDirectives(a.createVNode(u,{class:"info-icon",onClick:t[5]||(t[5]=y=>e.contextCardVisible=!e.contextCardVisible)},{default:a.withCtx(()=>[a.createVNode(f)]),_:1},512),[[a.vShow,e.contextCardEntry]])]),_:2},[e.contextCardEntry?{name:"default",fn:a.withCtx(()=>[e.contextCardEntry.type=="Flatmap"||e.contextCardEntry.type=="MultiFlatmap"?(a.openBlock(),a.createBlock(p,{key:0,class:"flatmap-context-card",mapImpProv:e.contextCardEntry.mapImpProv},null,8,["mapImpProv"])):a.createCommentVNode("",!0),e.contextCardEntry.type.toLowerCase()=="scaffold"?(a.openBlock(),a.createBlock(h,{key:1,entry:e.contextCardEntry,envVars:o.envVars,class:"context-card",onContextReady:t[3]||(t[3]=y=>e.contextCardVisible=!0),onScaffoldViewClicked:t[4]||(t[4]=y=>e.$emit("scaffold-view-clicked",y))},null,8,["entry","envVars"])):a.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["width","popper-options","visible"]),a.createVNode(m,{class:"tooltip",content:"Close and remove",placement:"bottom-end","show-after":o.helpDelay,teleported:!1,trigger:"hover","popper-class":"header-popper"},{reference:a.withCtx(()=>[a.withDirectives(a.createVNode(g,{icon:"close",class:"header-icon",onClick:t[6]||(t[6]=y=>o.closeAndRemove())},null,512),[[a.vShow,o.activeView!=="singlepanel"&&r.entry.mode!=="main"]])]),_:1},8,["show-after"])]),_:1})])}const T0e=Gl(Dot,[["render",jot],["__scopeId","data-v-702854ca"]]),O4=(e,t,{checkForDefaultPrevented:r=!0}={})=>n=>{const i=e==null?void 0:e(n);if(r===!1||!i)return t==null?void 0:t(n)};var v0e;const Xs=typeof window<"u",Uot=e=>typeof e=="string",Q0e=()=>{},b0e=Xs&&((v0e=window==null?void 0:window.navigator)==null?void 0:v0e.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function x0e(e){return typeof e=="function"?e():a.unref(e)}function Got(e){return e}function Rj(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}function qot(e,t=!0){a.getCurrentInstance()?a.onMounted(e):t?e():a.nextTick(e)}function rh(e){var t;const r=x0e(e);return(t=r==null?void 0:r.$el)!=null?t:r}const Bj=Xs?window:void 0;function nh(...e){let t,r,n,i;if(Uot(e[0])||Array.isArray(e[0])?([r,n,i]=e,t=Bj):[t,r,n,i]=e,!t)return Q0e;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const o=[],s=()=>{o.forEach(d=>d()),o.length=0},l=(d,p,h,f)=>(d.addEventListener(p,h,f),()=>d.removeEventListener(p,h,f)),c=a.watch(()=>[rh(t),x0e(i)],([d,p])=>{s(),d&&o.push(...r.flatMap(h=>n.map(f=>l(d,h,f,p))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return Rj(u),u}let _0e=!1;function Zot(e,t,r={}){const{window:n=Bj,ignore:i=[],capture:o=!0,detectIframe:s=!1}=r;if(!n)return;b0e&&!_0e&&(_0e=!0,Array.from(n.document.body.children).forEach(d=>d.addEventListener("click",Q0e)));let l=!0;const c=d=>i.some(p=>{if(typeof p=="string")return Array.from(n.document.querySelectorAll(p)).some(h=>h===d.target||d.composedPath().includes(h));{const h=rh(p);return h&&(d.target===h||d.composedPath().includes(h))}}),u=[nh(n,"click",d=>{const p=rh(e);if(!(!p||p===d.target||d.composedPath().includes(p))){if(d.detail===0&&(l=!c(d)),!l){l=!0;return}t(d)}},{passive:!0,capture:o}),nh(n,"pointerdown",d=>{const p=rh(e);p&&(l=!d.composedPath().includes(p)&&!c(d))},{passive:!0}),s&&nh(n,"blur",d=>{var p;const h=rh(e);((p=n.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(h!=null&&h.contains(n.document.activeElement))&&t(d)})].filter(Boolean);return()=>u.forEach(d=>d())}function Wot(e,t=!1){const r=a.ref(),n=()=>r.value=!!e();return n(),qot(n,t),r}const w0e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},L0e="__vueuse_ssr_handlers__";w0e[L0e]=w0e[L0e]||{};var S0e=Object.getOwnPropertySymbols,Kot=Object.prototype.hasOwnProperty,Xot=Object.prototype.propertyIsEnumerable,Jot=(e,t)=>{var r={};for(var n in e)Kot.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&S0e)for(var n of S0e(e))t.indexOf(n)<0&&Xot.call(e,n)&&(r[n]=e[n]);return r};function zC(e,t,r={}){const n=r,{window:i=Bj}=n,o=Jot(n,["window"]);let s;const l=Wot(()=>i&&"ResizeObserver"in i),c=()=>{s&&(s.disconnect(),s=void 0)},u=a.watch(()=>rh(e),p=>{c(),l.value&&i&&p&&(s=new ResizeObserver(t),s.observe(p,o))},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return Rj(d),{isSupported:l,stop:d}}var k0e;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(k0e||(k0e={}));var Yot=Object.defineProperty,M0e=Object.getOwnPropertySymbols,$ot=Object.prototype.hasOwnProperty,eat=Object.prototype.propertyIsEnumerable,C0e=(e,t,r)=>t in e?Yot(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tat=(e,t)=>{for(var r in t||(t={}))$ot.call(t,r)&&C0e(e,r,t[r]);if(M0e)for(var r of M0e(t))eat.call(t,r)&&C0e(e,r,t[r]);return e};tat({linear:Got},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const rat=()=>Xs&&/firefox/i.test(window.navigator.userAgent),Dj=e=>{let t,r;return e.type==="touchend"?(r=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(r=e.touches[0].clientY,t=e.touches[0].clientX):(r=e.clientY,t=e.clientX),{clientX:t,clientY:r}};process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Kb=()=>{},nat=Object.prototype.hasOwnProperty,x8=(e,t)=>nat.call(e,t),ng=Array.isArray,g2=e=>typeof e=="function",Js=e=>typeof e=="string",Sc=e=>e!==null&&typeof e=="object",iat=Object.prototype.toString,oat=e=>iat.call(e),Fj=e=>oat(e).slice(8,-1),E0e=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},aat=/-(\w)/g,sat=E0e(e=>e.replace(aat,(t,r)=>r?r.toUpperCase():"")),lat=/\B([A-Z])/g,cat=E0e(e=>e.replace(lat,"-$1").toLowerCase());var A0e=typeof global=="object"&&global&&global.Object===Object&&global,uat=typeof self=="object"&&self&&self.Object===Object&&self,R3=A0e||uat||Function("return this")(),B3=R3.Symbol,O0e=Object.prototype,dat=O0e.hasOwnProperty,pat=O0e.toString,Xb=B3?B3.toStringTag:void 0;function hat(e){var t=dat.call(e,Xb),r=e[Xb];try{e[Xb]=void 0;var n=!0}catch{}var i=pat.call(e);return n&&(t?e[Xb]=r:delete e[Xb]),i}var fat=Object.prototype,mat=fat.toString;function gat(e){return mat.call(e)}var yat="[object Null]",Tat="[object Undefined]",H0e=B3?B3.toStringTag:void 0;function ig(e){return e==null?e===void 0?Tat:yat:H0e&&H0e in Object(e)?hat(e):gat(e)}function og(e){return e!=null&&typeof e=="object"}var vat="[object Symbol]";function jC(e){return typeof e=="symbol"||og(e)&&ig(e)==vat}function Qat(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var D3=Array.isArray,bat=1/0,V0e=B3?B3.prototype:void 0,I0e=V0e?V0e.toString:void 0;function P0e(e){if(typeof e=="string")return e;if(D3(e))return Qat(e,P0e)+"";if(jC(e))return I0e?I0e.call(e):"";var t=e+"";return t=="0"&&1/e==-bat?"-0":t}var xat=/\s/;function _at(e){for(var t=e.length;t--&&xat.test(e.charAt(t)););return t}var wat=/^\s+/;function Lat(e){return e&&e.slice(0,_at(e)+1).replace(wat,"")}function ih(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var N0e=NaN,Sat=/^[-+]0x[0-9a-f]+$/i,kat=/^0b[01]+$/i,Mat=/^0o[0-7]+$/i,Cat=parseInt;function zj(e){if(typeof e=="number")return e;if(jC(e))return N0e;if(ih(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ih(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Lat(e);var r=kat.test(e);return r||Mat.test(e)?Cat(e.slice(2),r?2:8):Sat.test(e)?N0e:+e}var R0e=1/0,Eat=17976931348623157e292;function Aat(e){if(!e)return e===0?e:0;if(e=zj(e),e===R0e||e===-R0e){var t=e<0?-1:1;return t*Eat}return e===e?e:0}function Oat(e){var t=Aat(e),r=t%1;return t===t?r?t-r:t:0}function B0e(e){return e}var Hat="[object AsyncFunction]",Vat="[object Function]",Iat="[object GeneratorFunction]",Pat="[object Proxy]";function D0e(e){if(!ih(e))return!1;var t=ig(e);return t==Vat||t==Iat||t==Hat||t==Pat}var jj=R3["__core-js_shared__"],F0e=function(){var e=/[^.]+$/.exec(jj&&jj.keys&&jj.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Nat(e){return!!F0e&&F0e in e}var Rat=Function.prototype,Bat=Rat.toString;function _8(e){if(e!=null){try{return Bat.call(e)}catch{}try{return e+""}catch{}}return""}var Dat=/[\\^$.*+?()[\]{}|]/g,Fat=/^\[object .+?Constructor\]$/,zat=Function.prototype,jat=Object.prototype,Uat=zat.toString,Gat=jat.hasOwnProperty,qat=RegExp("^"+Uat.call(Gat).replace(Dat,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Zat(e){if(!ih(e)||Nat(e))return!1;var t=D0e(e)?qat:Fat;return t.test(_8(e))}function Wat(e,t){return e==null?void 0:e[t]}function w8(e,t){var r=Wat(e,t);return Zat(r)?r:void 0}var Uj=w8(R3,"WeakMap");function Kat(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Xat=800,Jat=16,Yat=Date.now;function $at(e){var t=0,r=0;return function(){var n=Yat(),i=Jat-(n-r);if(r=n,i>0){if(++t>=Xat)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function est(e){return function(){return e}}var UC=function(){try{var e=w8(Object,"defineProperty");return e({},"",{}),e}catch{}}(),tst=UC?function(e,t){return UC(e,"toString",{configurable:!0,enumerable:!1,value:est(t),writable:!0})}:B0e,rst=$at(tst);function nst(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var ist=9007199254740991,ost=/^(?:0|[1-9]\d*)$/;function Gj(e,t){var r=typeof e;return t=t??ist,!!t&&(r=="number"||r!="symbol"&&ost.test(e))&&e>-1&&e%1==0&&e<t}function ast(e,t,r){t=="__proto__"&&UC?UC(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function qj(e,t){return e===t||e!==e&&t!==t}var sst=Object.prototype,lst=sst.hasOwnProperty;function cst(e,t,r){var n=e[t];(!(lst.call(e,t)&&qj(n,r))||r===void 0&&!(t in e))&&ast(e,t,r)}var z0e=Math.max;function ust(e,t,r){return t=z0e(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=z0e(n.length-t,0),s=Array(o);++i<o;)s[i]=n[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=n[i];return l[t]=r(s),Kat(e,this,l)}}var dst=9007199254740991;function Zj(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=dst}function pst(e){return e!=null&&Zj(e.length)&&!D0e(e)}var hst=Object.prototype;function fst(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||hst;return e===r}function mst(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var gst="[object Arguments]";function j0e(e){return og(e)&&ig(e)==gst}var U0e=Object.prototype,yst=U0e.hasOwnProperty,Tst=U0e.propertyIsEnumerable,Wj=j0e(function(){return arguments}())?j0e:function(e){return og(e)&&yst.call(e,"callee")&&!Tst.call(e,"callee")};function vst(){return!1}var G0e=typeof bn=="object"&&bn&&!bn.nodeType&&bn,q0e=G0e&&typeof module=="object"&&module&&!module.nodeType&&module,Qst=q0e&&q0e.exports===G0e,Z0e=Qst?R3.Buffer:void 0,bst=Z0e?Z0e.isBuffer:void 0,Kj=bst||vst,xst="[object Arguments]",_st="[object Array]",wst="[object Boolean]",Lst="[object Date]",Sst="[object Error]",kst="[object Function]",Mst="[object Map]",Cst="[object Number]",Est="[object Object]",Ast="[object RegExp]",Ost="[object Set]",Hst="[object String]",Vst="[object WeakMap]",Ist="[object ArrayBuffer]",Pst="[object DataView]",Nst="[object Float32Array]",Rst="[object Float64Array]",Bst="[object Int8Array]",Dst="[object Int16Array]",Fst="[object Int32Array]",zst="[object Uint8Array]",jst="[object Uint8ClampedArray]",Ust="[object Uint16Array]",Gst="[object Uint32Array]",da={};da[Nst]=da[Rst]=da[Bst]=da[Dst]=da[Fst]=da[zst]=da[jst]=da[Ust]=da[Gst]=!0,da[xst]=da[_st]=da[Ist]=da[wst]=da[Pst]=da[Lst]=da[Sst]=da[kst]=da[Mst]=da[Cst]=da[Est]=da[Ast]=da[Ost]=da[Hst]=da[Vst]=!1;function qst(e){return og(e)&&Zj(e.length)&&!!da[ig(e)]}function Zst(e){return function(t){return e(t)}}var W0e=typeof bn=="object"&&bn&&!bn.nodeType&&bn,Jb=W0e&&typeof module=="object"&&module&&!module.nodeType&&module,Wst=Jb&&Jb.exports===W0e,Xj=Wst&&A0e.process,K0e=function(){try{var e=Jb&&Jb.require&&Jb.require("util").types;return e||Xj&&Xj.binding&&Xj.binding("util")}catch{}}(),X0e=K0e&&K0e.isTypedArray,J0e=X0e?Zst(X0e):qst,Kst=Object.prototype,Xst=Kst.hasOwnProperty;function Jst(e,t){var r=D3(e),n=!r&&Wj(e),i=!r&&!n&&Kj(e),o=!r&&!n&&!i&&J0e(e),s=r||n||i||o,l=s?mst(e.length,String):[],c=l.length;for(var u in e)(t||Xst.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Gj(u,c)))&&l.push(u);return l}function Yst(e,t){return function(r){return e(t(r))}}var $st=Yst(Object.keys,Object),elt=Object.prototype,tlt=elt.hasOwnProperty;function rlt(e){if(!fst(e))return $st(e);var t=[];for(var r in Object(e))tlt.call(e,r)&&r!="constructor"&&t.push(r);return t}function Y0e(e){return pst(e)?Jst(e):rlt(e)}var nlt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ilt=/^\w*$/;function Jj(e,t){if(D3(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||jC(e)?!0:ilt.test(e)||!nlt.test(e)||t!=null&&e in Object(t)}var Yb=w8(Object,"create");function olt(){this.__data__=Yb?Yb(null):{},this.size=0}function alt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var slt="__lodash_hash_undefined__",llt=Object.prototype,clt=llt.hasOwnProperty;function ult(e){var t=this.__data__;if(Yb){var r=t[e];return r===slt?void 0:r}return clt.call(t,e)?t[e]:void 0}var dlt=Object.prototype,plt=dlt.hasOwnProperty;function hlt(e){var t=this.__data__;return Yb?t[e]!==void 0:plt.call(t,e)}var flt="__lodash_hash_undefined__";function mlt(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Yb&&t===void 0?flt:t,this}function L8(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}L8.prototype.clear=olt,L8.prototype.delete=alt,L8.prototype.get=ult,L8.prototype.has=hlt,L8.prototype.set=mlt;function glt(){this.__data__=[],this.size=0}function GC(e,t){for(var r=e.length;r--;)if(qj(e[r][0],t))return r;return-1}var ylt=Array.prototype,Tlt=ylt.splice;function vlt(e){var t=this.__data__,r=GC(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Tlt.call(t,r,1),--this.size,!0}function Qlt(e){var t=this.__data__,r=GC(t,e);return r<0?void 0:t[r][1]}function blt(e){return GC(this.__data__,e)>-1}function xlt(e,t){var r=this.__data__,n=GC(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function H4(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}H4.prototype.clear=glt,H4.prototype.delete=vlt,H4.prototype.get=Qlt,H4.prototype.has=blt,H4.prototype.set=xlt;var $b=w8(R3,"Map");function _lt(){this.size=0,this.__data__={hash:new L8,map:new($b||H4),string:new L8}}function wlt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function qC(e,t){var r=e.__data__;return wlt(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Llt(e){var t=qC(this,e).delete(e);return this.size-=t?1:0,t}function Slt(e){return qC(this,e).get(e)}function klt(e){return qC(this,e).has(e)}function Mlt(e,t){var r=qC(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function V4(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}V4.prototype.clear=_lt,V4.prototype.delete=Llt,V4.prototype.get=Slt,V4.prototype.has=klt,V4.prototype.set=Mlt;var Clt="Expected a function";function Yj(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Clt);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Yj.Cache||V4),r}Yj.Cache=V4;var Elt=500;function Alt(e){var t=Yj(e,function(n){return r.size===Elt&&r.clear(),n}),r=t.cache;return t}var Olt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hlt=/\\(\\)?/g,Vlt=Alt(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Olt,function(r,n,i,o){t.push(i?o.replace(Hlt,"$1"):n||r)}),t});function Ilt(e){return e==null?"":P0e(e)}function ZC(e,t){return D3(e)?e:Jj(e,t)?[e]:Vlt(Ilt(e))}var Plt=1/0;function ex(e){if(typeof e=="string"||jC(e))return e;var t=e+"";return t=="0"&&1/e==-Plt?"-0":t}function $j(e,t){t=ZC(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[ex(t[r++])];return r&&r==n?e:void 0}function y2(e,t,r){var n=e==null?void 0:$j(e,t);return n===void 0?r:n}function $0e(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var eue=B3?B3.isConcatSpreadable:void 0;function Nlt(e){return D3(e)||Wj(e)||!!(eue&&e&&e[eue])}function tue(e,t,r,n,i){var o=-1,s=e.length;for(r||(r=Nlt),i||(i=[]);++o<s;){var l=e[o];t>0&&r(l)?t>1?tue(l,t-1,r,n,i):$0e(i,l):n||(i[i.length]=l)}return i}function Rlt(e){var t=e==null?0:e.length;return t?tue(e,1):[]}function Blt(e){return rst(ust(e,void 0,Rlt),e+"")}function Dlt(){this.__data__=new H4,this.size=0}function Flt(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function zlt(e){return this.__data__.get(e)}function jlt(e){return this.__data__.has(e)}var Ult=200;function Glt(e,t){var r=this.__data__;if(r instanceof H4){var n=r.__data__;if(!$b||n.length<Ult-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new V4(n)}return r.set(e,t),this.size=r.size,this}function I4(e){var t=this.__data__=new H4(e);this.size=t.size}I4.prototype.clear=Dlt,I4.prototype.delete=Flt,I4.prototype.get=zlt,I4.prototype.has=jlt,I4.prototype.set=Glt;function qlt(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}function Zlt(){return[]}var Wlt=Object.prototype,Klt=Wlt.propertyIsEnumerable,rue=Object.getOwnPropertySymbols,Xlt=rue?function(e){return e==null?[]:(e=Object(e),qlt(rue(e),function(t){return Klt.call(e,t)}))}:Zlt;const Jlt=Xlt;function Ylt(e,t,r){var n=t(e);return D3(e)?n:$0e(n,r(e))}function nue(e){return Ylt(e,Y0e,Jlt)}var eU=w8(R3,"DataView"),tU=w8(R3,"Promise"),rU=w8(R3,"Set"),iue="[object Map]",$lt="[object Object]",oue="[object Promise]",aue="[object Set]",sue="[object WeakMap]",lue="[object DataView]",ect=_8(eU),tct=_8($b),rct=_8(tU),nct=_8(rU),ict=_8(Uj),S8=ig;(eU&&S8(new eU(new ArrayBuffer(1)))!=lue||$b&&S8(new $b)!=iue||tU&&S8(tU.resolve())!=oue||rU&&S8(new rU)!=aue||Uj&&S8(new Uj)!=sue)&&(S8=function(e){var t=ig(e),r=t==$lt?e.constructor:void 0,n=r?_8(r):"";if(n)switch(n){case ect:return lue;case tct:return iue;case rct:return oue;case nct:return aue;case ict:return sue}return t});const cue=S8;var oct=R3.Uint8Array;const uue=oct;var act="__lodash_hash_undefined__";function sct(e){return this.__data__.set(e,act),this}function lct(e){return this.__data__.has(e)}function WC(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new V4;++t<r;)this.add(e[t])}WC.prototype.add=WC.prototype.push=sct,WC.prototype.has=lct;function cct(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function uct(e,t){return e.has(t)}var dct=1,pct=2;function due(e,t,r,n,i,o){var s=r&dct,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var p=-1,h=!0,f=r&pct?new WC:void 0;for(o.set(e,t),o.set(t,e);++p<l;){var m=e[p],g=t[p];if(n)var T=s?n(g,m,p,t,e,o):n(m,g,p,e,t,o);if(T!==void 0){if(T)continue;h=!1;break}if(f){if(!cct(t,function(y,v){if(!uct(f,v)&&(m===y||i(m,y,r,n,o)))return f.push(v)})){h=!1;break}}else if(!(m===g||i(m,g,r,n,o))){h=!1;break}}return o.delete(e),o.delete(t),h}function hct(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function fct(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var mct=1,gct=2,yct="[object Boolean]",Tct="[object Date]",vct="[object Error]",Qct="[object Map]",bct="[object Number]",xct="[object RegExp]",_ct="[object Set]",wct="[object String]",Lct="[object Symbol]",Sct="[object ArrayBuffer]",kct="[object DataView]",pue=B3?B3.prototype:void 0,nU=pue?pue.valueOf:void 0;function Mct(e,t,r,n,i,o,s){switch(r){case kct:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Sct:return!(e.byteLength!=t.byteLength||!o(new uue(e),new uue(t)));case yct:case Tct:case bct:return qj(+e,+t);case vct:return e.name==t.name&&e.message==t.message;case xct:case wct:return e==t+"";case Qct:var l=hct;case _ct:var c=n&mct;if(l||(l=fct),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;n|=gct,s.set(e,t);var d=due(l(e),l(t),n,i,o,s);return s.delete(e),d;case Lct:if(nU)return nU.call(e)==nU.call(t)}return!1}var Cct=1,Ect=Object.prototype,Act=Ect.hasOwnProperty;function Oct(e,t,r,n,i,o){var s=r&Cct,l=nue(e),c=l.length,u=nue(t),d=u.length;if(c!=d&&!s)return!1;for(var p=c;p--;){var h=l[p];if(!(s?h in t:Act.call(t,h)))return!1}var f=o.get(e),m=o.get(t);if(f&&m)return f==t&&m==e;var g=!0;o.set(e,t),o.set(t,e);for(var T=s;++p<c;){h=l[p];var y=e[h],v=t[h];if(n)var _=s?n(v,y,h,t,e,o):n(y,v,h,e,t,o);if(!(_===void 0?y===v||i(y,v,r,n,o):_)){g=!1;break}T||(T=h=="constructor")}if(g&&!T){var b=e.constructor,L=t.constructor;b!=L&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof L=="function"&&L instanceof L)&&(g=!1)}return o.delete(e),o.delete(t),g}var Hct=1,hue="[object Arguments]",fue="[object Array]",KC="[object Object]",Vct=Object.prototype,mue=Vct.hasOwnProperty;function Ict(e,t,r,n,i,o){var s=D3(e),l=D3(t),c=s?fue:cue(e),u=l?fue:cue(t);c=c==hue?KC:c,u=u==hue?KC:u;var d=c==KC,p=u==KC,h=c==u;if(h&&Kj(e)){if(!Kj(t))return!1;s=!0,d=!1}if(h&&!d)return o||(o=new I4),s||J0e(e)?due(e,t,r,n,i,o):Mct(e,t,c,r,n,i,o);if(!(r&Hct)){var f=d&&mue.call(e,"__wrapped__"),m=p&&mue.call(t,"__wrapped__");if(f||m){var g=f?e.value():e,T=m?t.value():t;return o||(o=new I4),i(g,T,r,n,o)}}return h?(o||(o=new I4),Oct(e,t,r,n,i,o)):!1}function XC(e,t,r,n,i){return e===t?!0:e==null||t==null||!og(e)&&!og(t)?e!==e&&t!==t:Ict(e,t,r,n,XC,i)}var Pct=1,Nct=2;function Rct(e,t,r,n){var i=r.length,o=i,s=!n;if(e==null)return!o;for(e=Object(e);i--;){var l=r[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<o;){l=r[i];var c=l[0],u=e[c],d=l[1];if(s&&l[2]){if(u===void 0&&!(c in e))return!1}else{var p=new I4;if(n)var h=n(u,d,c,e,t,p);if(!(h===void 0?XC(d,u,Pct|Nct,n,p):h))return!1}}return!0}function gue(e){return e===e&&!ih(e)}function Bct(e){for(var t=Y0e(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,gue(i)]}return t}function yue(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function Dct(e){var t=Bct(e);return t.length==1&&t[0][2]?yue(t[0][0],t[0][1]):function(r){return r===e||Rct(r,e,t)}}function Fct(e,t){return e!=null&&t in Object(e)}function zct(e,t,r){t=ZC(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var s=ex(t[n]);if(!(o=e!=null&&r(e,s)))break;e=e[s]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&Zj(i)&&Gj(s,i)&&(D3(e)||Wj(e)))}function Tue(e,t){return e!=null&&zct(e,t,Fct)}var jct=1,Uct=2;function Gct(e,t){return Jj(e)&&gue(t)?yue(ex(e),t):function(r){var n=y2(r,e);return n===void 0&&n===t?Tue(r,e):XC(t,n,jct|Uct)}}function qct(e){return function(t){return t==null?void 0:t[e]}}function Zct(e){return function(t){return $j(t,e)}}function Wct(e){return Jj(e)?qct(ex(e)):Zct(e)}function Kct(e){return typeof e=="function"?e:e==null?B0e:typeof e=="object"?D3(e)?Gct(e[0],e[1]):Dct(e):Wct(e)}var iU=function(){return R3.Date.now()},Xct="Expected a function",Jct=Math.max,Yct=Math.min;function oU(e,t,r){var n,i,o,s,l,c,u=0,d=!1,p=!1,h=!0;if(typeof e!="function")throw new TypeError(Xct);t=zj(t)||0,ih(r)&&(d=!!r.leading,p="maxWait"in r,o=p?Jct(zj(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h);function f(w){var k=n,C=i;return n=i=void 0,u=w,s=e.apply(C,k),s}function m(w){return u=w,l=setTimeout(y,t),d?f(w):s}function g(w){var k=w-c,C=w-u,A=t-k;return p?Yct(A,o-C):A}function T(w){var k=w-c,C=w-u;return c===void 0||k>=t||k<0||p&&C>=o}function y(){var w=iU();if(T(w))return v(w);l=setTimeout(y,g(w))}function v(w){return l=void 0,h&&n?f(w):(n=i=void 0,s)}function _(){l!==void 0&&clearTimeout(l),u=0,n=c=i=l=void 0}function b(){return l===void 0?s:v(iU())}function L(){var w=iU(),k=T(w);if(n=arguments,i=this,c=w,k){if(l===void 0)return m(c);if(p)return clearTimeout(l),l=setTimeout(y,t),f(c)}return l===void 0&&(l=setTimeout(y,t)),s}return L.cancel=_,L.flush=b,L}var $ct=Math.max,e1t=Math.min;function t1t(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=n-1;return r!==void 0&&(i=Oat(r),i=r<0?$ct(n+i,0):e1t(i,n-1)),nst(e,Kct(t),i,!0)}function JC(e){for(var t=-1,r=e==null?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n}function aU(e,t){return XC(e,t)}function oh(e){return e==null}function r1t(e){return e===void 0}function n1t(e,t,r,n){if(!ih(e))return e;t=ZC(t,e);for(var i=-1,o=t.length,s=o-1,l=e;l!=null&&++i<o;){var c=ex(t[i]),u=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=s){var d=l[c];u=n?n(d,c,l):void 0,u===void 0&&(u=ih(d)?d:Gj(t[i+1])?[]:{})}cst(l,c,u),l=l[c]}return e}function i1t(e,t,r){for(var n=-1,i=t.length,o={};++n<i;){var s=t[n],l=$j(e,s);r(l,s)&&n1t(o,ZC(s,e),l)}return o}function o1t(e,t){return i1t(e,t,function(r,n){return Tue(e,n)})}var a1t=Blt(function(e,t){return e==null?{}:o1t(e,t)});const tx=e=>e===void 0,ah=e=>typeof e=="boolean",Ys=e=>typeof e=="number",rx=e=>typeof Element>"u"?!1:e instanceof Element,s1t=e=>Js(e)?!Number.isNaN(Number(e)):!1,l1t=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),vue=e=>Object.keys(e);let Que=class extends Error{constructor(t){super(t),this.name="ElementPlusError"}};function c1t(e,t){throw new Que(`[${e}] ${t}`)}function $s(e,t){if(process.env.NODE_ENV!=="production"){const r=Js(e)?new Que(`[${e}] ${t}`):e;console.warn(r)}}const u1t="utils/dom/style",bue=(e="")=>e.split(" ").filter(t=>!!t.trim()),sU=(e,t)=>{!e||!t.trim()||e.classList.add(...bue(t))},k8=(e,t)=>{!e||!t.trim()||e.classList.remove(...bue(t))},nx=(e,t)=>{var r;if(!Xs||!e||!t)return"";let n=sat(t);n==="float"&&(n="cssFloat");try{const i=e.style[n];if(i)return i;const o=(r=document.defaultView)==null?void 0:r.getComputedStyle(e,"");return o?o[n]:""}catch{return e.style[n]}};function ag(e,t="px"){if(!e)return"";if(Ys(e)||s1t(e))return`${e}${t}`;if(Js(e))return e;$s(u1t,"binding value must be a string or number")}function d1t(e,t){if(!Xs)return;if(!t){e.scrollTop=0;return}const r=[];let n=t.offsetParent;for(;n!==null&&e!==n&&e.contains(n);)r.push(n),n=n.offsetParent;const i=t.offsetTop+r.reduce((c,u)=>c+u.offsetTop,0),o=i+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;i<s?e.scrollTop=i:o>l&&(e.scrollTop=o-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var p1t=a.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),sh=p1t,h1t=a.defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),xue=h1t,f1t=a.defineComponent({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),YC=f1t,m1t=a.defineComponent({name:"CaretRight",__name:"caret-right",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),g1t=m1t,y1t=a.defineComponent({name:"CircleCheck",__name:"circle-check",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),a.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),T1t=y1t,v1t=a.defineComponent({name:"CircleClose",__name:"circle-close",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),a.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),lU=v1t,Q1t=a.defineComponent({name:"Close",__name:"close",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),ix=Q1t,b1t=a.defineComponent({name:"Edit",__name:"edit",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),a.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),_ue=b1t,x1t=a.defineComponent({name:"Hide",__name:"hide",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),a.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),_1t=x1t,w1t=a.defineComponent({name:"Loading",__name:"loading",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),cU=w1t,L1t=a.defineComponent({name:"Notebook",__name:"notebook",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),a.createElementVNode("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),S1t=L1t,k1t=a.defineComponent({name:"View",__name:"view",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),M1t=k1t,C1t=a.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),wue=C1t,E1t=a.defineComponent({name:"Warning",__name:"warning",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),Lue=E1t;const Sue="__epPropKey",mi=e=>e,A1t=e=>Sc(e)&&!!e[Sue],$C=(e,t)=>{if(!Sc(e)||A1t(e))return e;const{values:r,required:n,default:i,type:o,validator:s}=e,l={type:o,required:!!n,validator:r||s?c=>{let u=!1,d=[];if(r&&(d=Array.from(r),x8(e,"default")&&d.push(i),u||(u=d.includes(c))),s&&(u||(u=s(c))),!u&&d.length>0){const p=[...new Set(d)].map(h=>JSON.stringify(h)).join(", ");a.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(c)}.`)}return u}:void 0,[Sue]:!0};return x8(e,"default")&&(l.default=i),l},Lo=e=>JC(Object.entries(e).map(([t,r])=>[t,$C(r,t)])),lh=mi([String,Object,Function]),kue={validating:cU,success:T1t,error:lU},Jc=(e,t)=>{if(e.install=r=>{for(const n of[e,...Object.values(t??{})])r.component(n.name,n)},t)for(const[r,n]of Object.entries(t))e[r]=n;return e},O1t=(e,t)=>(e.install=r=>{r.directive(t,e)},e),Qu=e=>(e.install=Kb,e),kc={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},ss="update:modelValue",eE="change",uU=["","default","small","large"],H1t={large:40,default:32,small:24},V1t=e=>H1t[e||"default"],I1t=e=>["",...uU].includes(e),Mue=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),sg=e=>e,P1t=["class","style"],N1t=/^on[A-Z]/,R1t=(e={})=>{const{excludeListeners:t=!1,excludeKeys:r}=e,n=a.computed(()=>((r==null?void 0:r.value)||[]).concat(P1t)),i=a.getCurrentInstance();return i?a.computed(()=>{var o;return JC(Object.entries((o=i.proxy)==null?void 0:o.$attrs).filter(([s])=>!n.value.includes(s)&&!(t&&N1t.test(s))))}):($s("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),a.computed(()=>({})))},Cue=({from:e,replacement:t,scope:r,version:n,ref:i,type:o="API"},s)=>{a.watch(()=>a.unref(s),l=>{l&&$s(r,`[${o}] ${e} is about to be deprecated in version ${n}, please use ${t} instead.
|
428
|
+
`)},Oot=["innerHTML"];function Hot(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("svg",{width:"0",height:"0",style:{display:"none"},innerHTML:e.$options.svgSprite},null,8,Oot)}const BC=B2e(Aot,[["render",Hot]]),Pj=()=>({entries:[{resource:"Rat",type:"MultiFlatmap",mode:"main",id:1,state:void 0,label:"",discoverId:void 0}]}),Vot=async(e,t)=>{let r={};if(e==="AC")r={resource:"Rat",type:"MultiFlatmap",mode:"main",state:void 0,label:"",discoverId:void 0};else if(e==="FC")r={resource:"FunctionalConnectivity",type:"Flatmap",mode:"main",state:void 0,label:"Functional",discoverId:void 0};else if(e==="3D"){const n=await Nj(t,"human");r={resource:n.url,type:"Scaffold",mode:"main",state:void 0,label:"Human",discoverId:n.datasetInfo.discoverId,contextCardUrl:n.datasetInfo.contextCardUrl,s3uri:n.datasetInfo.s3uri,version:n.datasetInfo.version,isBodyScaffold:!0}}return r},Iot=async(e,t)=>{const r=Pj();if(e==="FC")r.entries[0].resource="FunctionalConnectivity",r.entries[0].type="Flatmap",r.entries[0].label="Functional";else if(e==="WholeBody"){const n=await Nj(t,"human");r.entries[0].resource=n.url,r.entries[0].contextCardUrl=n.datasetInfo.contextCardUrl,r.entries[0].discoverId=n.datasetInfo.discoverId,r.entries[0].s3uri=n.datasetInfo.s3uri,r.entries[0].version=n.datasetInfo.version,r.entries[0].type="Scaffold",r.entries[0].label="Human",r.entries[0].isBodyScaffold=!0}return r},m0e=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),g0e=()=>({"Human Female":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000383",iconClass:"mapicon-icon_human",displayLatestChanges:!0,displayWarning:!0},"Human Male":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000384",iconClass:"mapicon-icon_human",displayLatestChanges:!0,displayWarning:!0},Rat:{taxo:"NCBITaxon:10114",iconClass:"mapicon-icon_rat",displayLatestChanges:!0,displayWarning:!0},Mouse:{taxo:"NCBITaxon:10090",iconClass:"mapicon-icon_mouse",displayLatestChanges:!0,displayWarning:!0},Pig:{taxo:"NCBITaxon:9823",iconClass:"mapicon-icon_pig",displayLatestChanges:!0,displayWarning:!0},Cat:{taxo:"NCBITaxon:9685",iconClass:"mapicon-icon_cat",displayLatestChanges:!0,displayWarning:!0}}),Pot=e=>{if(e){const t=g0e();for(let r in t)if(e.taxo===t[r].taxo)if(e.biologicalSex&&t[r].biologicalSex){if(e.biologicalSex===t[r].biologicalSex)return r}else return r}return""},Not=e=>{if(e){const t=e.split("//")[1];if(t){const r=t.split("/")[0],n=t.indexOf("/"),i=t.substring(n+1);return{s3Bucket:r,s3Prefix:i}}}},Nj=async(e,t)=>{let r="",n;const i=await fetch(`${e}get_body_scaffold_info/${t}`);if(i.ok){const o=await i.json(),s=Not(o.s3uri);r=`${e}s3-resource/${s.s3Prefix}files/${o.path}?s3BucketName=${s.s3Bucket}`;const l=`${e}s3-resource/${s.s3Prefix}files/${o.contextinfo}?s3BucketName=${s.s3Bucket}`;n={s3uri:o.s3uri,contextCardUrl:l,discoverId:o.id,version:o.version}}else t==="rat"?r="https://mapcore-bucket1.s3.us-west-2.amazonaws.com/WholeBody/31-May-2021/ratBody/ratBody_syncmap_metadata.json":t==="human"&&(r="https://mapcore-bucket1.s3.us-west-2.amazonaws.com/WholeBody/27-4-23-human/human_body_metadata.json");return{url:r,datasetInfo:n}},DC=gl.defineStore("entries",{state:()=>Pj(),getters:{findIndexOfId:e=>t=>{for(let r=0;r<e.entries.length;r++)if(e.entries[r].id==t)return r;return-1}},actions:{addNewEntry(e){this.entries.push(e)},destroyEntry(e){e>-1&&this.entries.splice(e,1)},setAll(e){this.entries=[],Object.assign(this.entries,e)},updateViewForEntry({id:e,viewUrl:t}){const r=this.entries.find(n=>n.id===e);r.viewUrl=t}}}),rg=gl.defineStore("settings",{state:()=>({shareLink:void 0,sparcApi:void 0,algoliaIndex:"k-core_dev_published_time_desc",algoliaKey:void 0,algoliaId:void 0,pennsieveApi:void 0,flatmapAPI:void 0,nlLinkPrefix:void 0,rootUrl:void 0,facets:{species:[],gender:[],organ:[]},facetLabels:[],markers:[],featuredMarkers:[],featuredMarkerIdentifiers:[],featuredMarkerDois:[],featuredMarkerSpecies:[],featuredDatasetIdentifiers:[],helpDelay:0}),getters:{isFeaturedMarkerIdentifier:e=>t=>e.featuredMarkerIdentifiers.includes(t),featuredMarkerDoi:e=>t=>{const r=e.featuredMarkerIdentifiers.findIndex(n=>n==t);return e.featuredMarkerDois[r]}},actions:{updateShareLink(e){this.shareLink=e},updateSparcAPI(e){this.sparcApi=e},updateAlgoliaIndex(e){this.algoliaIndex=e},updateAlgoliaKey(e){this.algoliaKey=e},updateAlgoliaId(e){this.algoliaId=e},updatePennsieveApi(e){this.pennsieveApi=e},updateFlatmapAPI(e){this.flatmapAPI=e},updateNLLinkPrefix(e){this.nlLinkPrefix=e},updateRootUrl(e){this.rootUrl=e},updateMarkers(e){this.markers=e},updateFeatured(e){this.featuredMarkerIdentifiers=new Array(e.length),this.featuredMarkers=new Array(e.length),this.featuredMarkerDois=new Array(e.length),this.featuredMarkerSpecies=new Array(e.length),this.featuredDatasetIdentifiers=e},updateFeaturedMarker(e){const t=this.featuredDatasetIdentifiers.findIndex(r=>r==e.identifier);this.featuredMarkers[t]=e.marker,this.featuredMarkerDois[t]=e.doi,this.featuredMarkerSpecies[t]=e.species},updateFeaturedMarkerIdentifier(e){this.featuredMarkerIdentifiers[e.index]=e.markerIdentifier},resetFeaturedMarkerIdentifier(){this.featuredMarkerIdentifiers=new Array(this.featuredDatasetIdentifiers.length)},updateFacets(e){let t={species:[],gender:[],organ:[]};if(e){e.forEach(r=>{switch(r.term.toLowerCase()){case"species":r.facet.toLowerCase()!=="show all"?(t.species.push(r.facet),this.facets.species.includes(r.facet)||this.facets.species.push(r.facet)):this.facets.species=[];break;case"gender":r.facet.toLowerCase()!=="show all"&&(t.gender.push(r.facet),this.facets.species.includes(r.facet)||this.facets.gender.push(r.facet));break;case"organ":r.facet.toLowerCase()!=="show all"&&(t.organ.push(r.facet),this.facets.species.includes(r.facet)||this.facets.organ.push(r.facet));break}});for(const[r,n]of Object.entries(this.facets)){let i=0;for(i=n.length-1;i>=0;i-=1)t[r].indexOf(n[i])==-1&&n.splice(i,1)}}},updateFacetLabels(e){this.facetLabels=e}}}),y0e=e=>{switch(e){case"2horpanel":return{"split-1":{content:!1,horizontal:!0,children:["pane-1","pane-2"]},"pane-1":{content:!0,id:1},"pane-2":{content:!0,id:2}};case"2vertpanel":return{"split-1":{content:!1,horizontal:!1,children:["pane-1","pane-2"]},"pane-1":{content:!0,id:1},"pane-2":{content:!0,id:2}};case"3panel":return{"split-1":{content:!1,horizontal:!1,children:["pane-1","split-2"]},"split-2":{content:!1,horizontal:!0,children:["pane-2","pane-3"]},"pane-1":{content:!0,id:1},"pane-2":{content:!0,id:2},"pane-3":{content:!0,id:3}};case"4panel":return{"split-1":{content:!1,horizontal:!1,children:["split-3","split-2"]},"split-2":{content:!1,horizontal:!0,children:["pane-2","pane-3"]},"split-3":{content:!1,horizontal:!0,children:["pane-1","pane-4"]},"pane-1":{content:!0,id:1},"pane-2":{content:!0,id:2},"pane-3":{content:!0,id:3},"pane-4":{content:!0,id:4}};case"5panel":return{"split-1":{content:!1,horizontal:!0,children:["split-3","split-2"]},"split-2":{content:!1,horizontal:!1,children:["pane-2","pane-3"]},"split-3":{content:!1,horizontal:!1,children:["pane-1","pane-4","pane-5"]},"pane-1":{content:!0,id:1},"pane-2":{content:!0,id:2},"pane-3":{content:!0,id:3},"pane-4":{content:!0,id:4},"pane-5":{content:!0,id:5}};case"6panel":return{"split-1":{content:!1,horizontal:!0,children:["split-3","split-2"]},"split-2":{content:!1,horizontal:!1,children:["pane-2","pane-3","pane-5"]},"split-3":{content:!1,horizontal:!1,children:["pane-1","pane-4","pane-6"]},"pane-1":{content:!0,id:1},"pane-2":{content:!0,id:2},"pane-3":{content:!0,id:3},"pane-4":{content:!0,id:4},"pane-5":{content:!0,id:5},"pane-6":{content:!0,id:6}};case"6panelVertical":return{"split-1":{content:!1,horizontal:!1,children:["split-3","split-2"]},"split-2":{content:!1,horizontal:!0,children:["pane-2","pane-3","pane-5"]},"split-3":{content:!1,horizontal:!0,children:["pane-1","pane-4","pane-6"]},"pane-1":{content:!0,id:1},"pane-2":{content:!0,id:2},"pane-3":{content:!0,id:3},"pane-4":{content:!0,id:4},"pane-5":{content:!0,id:5},"pane-6":{content:!0,id:6}};case"singlepanel":default:return{"split-1":{content:!1,horizontal:!1,children:["pane-1"]},"pane-1":{content:!0,id:1}}}},Rot=(e,t)=>{const r=[],n=[];for(const[i,o]of Object.entries(t))o.content&&(r.includes(o.id)?n.push(i):r.push(o.id));n.forEach(i=>{let o=!1;for(let s=0;s<e.length&&!o;s++)r.includes(e[s].id)||(t[i].id=e[s].id,r.push(e.id),o=!0)})},Bot=e=>{const t={};for(const[r,n]of Object.entries(e))n.content&&(t[r]=n);return t},FC=(e,t)=>{const r=Bot(e),n=y0e(t);for(const[i,o]of Object.entries(r))n[i]=o;return n},Q8=(e,t)=>Object.keys(e).find(r=>e[r].id===t),b8=gl.defineStore("splitFlow",{state:()=>({activeView:"singlepanel",viewIcons:[{icon:"singlepanel",name:"Single view",min:1},{icon:"2horpanel",name:"Horizontal split",min:2},{icon:"2vertpanel",name:"Vertical split",min:2},{icon:"3panel",name:"Three panes",min:3},{icon:"4panel",name:"Four panes",min:4},{icon:"5panel",name:"Five panes",min:5},{icon:"6panel",name:"Six (horizontal)",min:6},{icon:"6panelVertical",name:"Six (vertical)",min:6}],customLayout:{"split-1":{content:!1,horizontal:!1,children:["pane-1"]},"pane-1":{content:!0,id:1}},splitters:{first:50,second:50,third:50},globalCallback:!1,syncMode:!1}),getters:{getPaneNameById:e=>t=>Q8(e.customLayout,t),getState:e=>()=>({activeView:e.activeView,splitters:e.splitters,globalCallback:e.globalCallback,customLayout:e.customLayout,syncMode:e.syncMode})},actions:{assignOrSwapPaneWithIds(e){let t=Q8(this.customLayout,e.source),r=Q8(this.customLayout,e.target);this.syncMode&&!(r||t)&&(this.syncMode=!1,this.globalCallback=!1),r&&(this.customLayout[r].id=e.source),t&&(this.customLayout[t].id=e.target)},toggleGlobalCallback(e){this.globalCallback=e},updateActiveView(e){if(this.syncMode){const r=this.viewIcons.find(i=>this.activeView===i.icon),n=this.viewIcons.find(i=>e.view===i.icon);r.min==2&&n.min==2||(this.syncMode=!1,this.globalCallback=!1)}this.activeView=e.view;const t=FC(this.customLayout,this.activeView);Rot(e.entries,t);for(const[r,n]of Object.entries(t))this.customLayout[r]=n},setSplitter(e){this.splitters[e.name]&&(this.splitters[e.name]=e.value)},setState(e){if(e){let t;if(e.activeView&&(this.activeView=e.activeView),e.customLayout)t=e.customLayout;else if(t=y0e(this.activeView),console.log(e,t),e.slotInfo)for(let r=0;r<e.slotInfo.length;r++)switch(e.slotInfo[r].name){case"first":t["pane-1"].id=e.slotInfo[r].id;break;case"second":"pane-2"in t&&(t["pane-2"].id=e.slotInfo[r].id);break;case"thrid":"pane-3"in t&&(t["pane-3"].id=e.slotInfo[r].id);break;case"fourth":"pane-4"in t&&(t["pane-4"].id=e.slotInfo[r].id);break;case"fifth":"pane-5"in t&&(t["pane-5"].id=e.slotInfo[r].id);break;case"sixth":"pane-6"in t&&(t["pane-6"].id=e.slotInfo[r].id);break}for(const[r,n]of Object.entries(t))this.customLayout[r]=n;e.globalCallback&&(this.globalCallback=e.globalCallback);for(const[r,n]of Object.entries(e.splitters))this.splitters[r]=n;e.syncMode&&(this.syncMode=e.syncMode)}},setIdToPrimaryPane(e){const t=Q8(this.customLayout,e),r=this.customLayout["pane-1"].id;this.customLayout["pane-1"].id=e,t&&(this.customLayout[t].id=r)},setSyncMode(e){if(e)if(e.flag===!0){this.activeView=e.layout;const t=FC(this.customLayout,this.activeView),r=Q8(t,1),n=t["pane-1"].id;r!=="pane-1"&&(t["pane-1"].id=n),t["pane-1"].id=1,t["pane-2"].id=e.newId;for(const[i,o]of Object.entries(t))this.customLayout[i]=o;this.syncMode=!0,this.globalCallback=!0}else{this.activeView="singlepanel";const t=FC(this.customLayout,this.activeView);for(const[r,n]of Object.entries(t))this.customLayout[r]=n;this.syncMode=!1,this.globalCallback=!1}},closeSlot(e){if(e){this.syncMode=!1,this.globalCallback=!1;let t=0;if(e.id===1)t=1;else if(e.entries)for(let r=0;r<e.entries.length&&t==0;r++)Q8(e.entries[r].id)===void 0&&(t=e.entries[r].id);if(this.activeView!=="customise"){const r=this.activeView;switch(this.activeView){case"2horpanel":case"2vertpanel":this.activeView="singlepanel";break;case"3panel":this.activeView="2vertpanel";break;case"4panel":this.activeView="3panel";break;case"5panel":this.activeView="4panel";break;case"6panelVertical":case"6panel":this.activeView="5panel";break}const n=FC(this.customLayout,this.activeView);switch(Q8(n,e.id)){case"pane-1":switch(r){case"2horpanel":case"2vertpanel":n["pane-1"].id=n["pane-2"].id,n["pane-2"].id=t;break;case"3panel":n["pane-1"].id=n["pane-2"].id,n["pane-2"].id=n["pane-3"].id,n["pane-3"].id=t;break;case"4panel":n["pane-1"].id=n["pane-2"].id,n["pane-2"].id=n["pane-3"].id,n["pane-3"].id=n["pane-4"].id,n["pane-4"].id=t;break;case"5panel":n["pane-1"].id=n["pane-2"].id,n["pane-2"].id=n["pane-3"].id,n["pane-3"].id=n["pane-4"].id,n["pane-4"].id=n["pane-5"].id,n["pane-5"].id=t;break;case"6panelVertical":case"6panel":n["pane-1"].id=n["pane-2"].id,n["pane-2"].id=n["pane-3"].id,n["pane-3"].id=n["pane-4"].id,n["pane-4"].id=n["pane-5"].id,n["pane-5"].id=n["pane-6"].id,n["pane-6"].id=t;break}break;case"pane-2":switch(r){case"2horpanel":case"2vertpanel":n["pane-2"].id=t;break;case"3panel":n["pane-2"].id=n["pane-3"].id,n["pane-3"].id=t;break;case"4panel":n["pane-2"].id=n["pane-3"].id,n["pane-3"].id=n["pane-4"].id,n["pane-4"].id=t;break;case"5panel":n["pane-2"].id=n["pane-3"].id,n["pane-3"].id=n["pane-4"].id,n["pane-4"].id=n["pane-5"].id,n["pane-5"].id=t;break;case"6panelVertical":case"6panel":n["pane-2"].id=n["pane-3"].id,n["pane-3"].id=n["pane-4"].id,n["pane-4"].id=n["pane-5"].id,n["pane-5"].id=n["pane-6"].id,n["pane-6"].id=t;break}break;case"pane-3":switch(r){case"3panel":n["pane-3"].id=t;break;case"4panel":n["pane-3"].id=n["pane-4"].id,n["pane-4"].id=t;break;case"5panel":n["pane-3"].id=n["pane-4"].id,n["pane-4"].id=n["pane-5"].id,n["pane-5"].id=t;break;case"6panelVertical":case"6panel":n["pane-3"].id=n["pane-4"].id,n["pane-4"].id=n["pane-5"].id,n["pane-5"].id=n["pane-6"].id,n["pane-6"].id=t;break}break;case"pane-4":switch(r){case"4panel":n["pane-4"].id=t;break;case"5panel":n["pane-4"].id=n["pane-5"].id,n["pane-5"].id=t;break;case"6panelVertical":case"6panel":n["pane-4"].id=n["pane-5"].id,n["pane-5"].id=n["pane-6"].id,n["pane-6"].id=t;break}break;case"pane-5":switch(r){case"5panel":n["pane-5"].id=t;break;case"6panelVertical":case"6panel":n["pane-5"].id=n["pane-6"].id,n["pane-6"].id=t;break}break;case"pane-6":switch(r){case"6panelVertical":case"6panel":n["pane-6"].id=t;break}break}for(const[o,s]of Object.entries(n))this.customLayout[o]=s}}}}}),Dot={name:"ContentBar",components:{ElIconArrowDown:Gz,ElIconArrowUp:yce,ElIconInfoFilled:Qce,Input:Gb,Option:e2e,Popover:wC,Row:xC,Select:$1e,ContextCard:N2e,FlatmapContextCard:R2e,MapSvgIcon:Wb},props:{entry:Object},data:function(){return{contextCardVisible:!1,slot:{},boundariesElement:null,showDetails:!0,contextCardEntry:void 0}},computed:{...gl.mapStores(DC,rg,b8),helpDelay(){return this.settingsStore.helpDelay},activeView:function(){return this.splitFlowStore.activeView},envVars:function(){return{API_LOCATION:this.settingsStore.sparcApi,ALGOLIA_INDEX:this.settingsStore.algoliaIndex,ALGOLIA_KEY:this.settingsStore.algoliaKey,ALGOLIA_ID:this.settingsStore.algoliaId,PENNSIEVE_API_LOCATION:this.settingsStore.pennsieveApi,NL_LINK_PREFIX:this.settingsStore.nlLinkPrefix,ROOT_URL:this.settingsStore.rootUrl}},popperOptions:function(){return{preventOverflow:{enabled:!0,boundary:this.boundariesElement}}},entries:function(){return this.entriesStore.entries}},methods:{closeAndRemove:function(){this.splitFlowStore.closeSlot({id:this.entry.id,entries:this.entries}),Xo.emit("RemoveEntryRequest",this.entry.id)},getEntryTitle:function(e){if(e){let t=e.label?e.label+" ":"",r=e.type;return r=="Scaffold"&&(r="3D Scaffold"),t+=r,e.datasetId?t+=" ("+e.datasetId+")":e.discoverId&&(t+=" ("+e.discoverId+")"),t}return"Viewer"},viewerChanged:function(e){this.entry.id&&this.entry.id!=e&&(this.splitFlowStore.assignOrSwapPaneWithIds({source:this.entry.id,target:e}),this.$nextTick(()=>{setTimeout(()=>{this.$emit("chooser-changed")},1200)}))},setPopperWidth:function(e){let t=this.entries.find(r=>r.id===e);if(t)return t.type=="Flatmap"||t.type=="MultiFlatmap"?"240px":"440px"},setBoundary:function(e){this.boundariesElement=e},setupFlatmapContextCard:function(e){this.contextCardVisible=!1;let t=Object.assign({mapImpProv:e.prov},this.entry);this.contextCardEntry=t},setupScaffoldContextCard:function(){this.entry.contextCardUrl&&(this.contextCardEntry={...this.entry})}},mounted:function(){this.setupScaffoldContextCard()}},Fot={class:"toolbar-flex-container"},zot={key:1,class:"toolbar-title"};function jot(e,t,r,n,i,o){const s=e2e,l=$1e,c=yce,u=Ks,d=Gz,p=R2e,h=N2e,f=Qce,m=wC,g=a.resolveComponent("map-svg-icon"),T=xC;return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",Fot,[o.entries.length>1?(a.openBlock(),a.createBlock(l,{key:0,teleported:!1,"model-value":r.entry.id,placeholder:"Select",class:"select-box","popper-class":"viewer_dropdown",onChange:t[0]||(t[0]=y=>o.viewerChanged(y))},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.entries,y=>(a.openBlock(),a.createBlock(s,{key:y.id,label:o.getEntryTitle(y),value:y.id},null,8,["label","value"]))),128))]),_:1},8,["model-value"])):(a.openBlock(),a.createElementBlock("div",zot,a.toDisplayString(o.getEntryTitle(r.entry)),1))]),a.createVNode(T,{class:"icon-group"},{default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",{class:"hide",onClick:t[1]||(t[1]=y=>e.contextCardVisible=!1)},[a.createTextVNode(" Hide information "),a.createVNode(u,null,{default:a.withCtx(()=>[a.createVNode(c)]),_:1})],512),[[a.vShow,e.contextCardEntry&&e.contextCardVisible]]),a.withDirectives(a.createElementVNode("div",{class:"hide",onClick:t[2]||(t[2]=y=>e.contextCardVisible=!0)},[a.createTextVNode(" Show information "),a.createVNode(u,null,{default:a.withCtx(()=>[a.createVNode(d)]),_:1})],512),[[a.vShow,e.contextCardEntry&&!e.contextCardVisible]]),a.createVNode(m,{placement:"bottom",teleported:!1,trigger:"manual",width:o.setPopperWidth(e.slot.id),offset:0,"popper-class":"context-card-popover","popper-options":o.popperOptions,visible:e.contextCardVisible},a.createSlots({reference:a.withCtx(()=>[a.withDirectives(a.createVNode(u,{class:"info-icon",onClick:t[5]||(t[5]=y=>e.contextCardVisible=!e.contextCardVisible)},{default:a.withCtx(()=>[a.createVNode(f)]),_:1},512),[[a.vShow,e.contextCardEntry]])]),_:2},[e.contextCardEntry?{name:"default",fn:a.withCtx(()=>[e.contextCardEntry.type=="Flatmap"||e.contextCardEntry.type=="MultiFlatmap"?(a.openBlock(),a.createBlock(p,{key:0,class:"flatmap-context-card",mapImpProv:e.contextCardEntry.mapImpProv},null,8,["mapImpProv"])):a.createCommentVNode("",!0),e.contextCardEntry.type.toLowerCase()=="scaffold"?(a.openBlock(),a.createBlock(h,{key:1,entry:e.contextCardEntry,envVars:o.envVars,class:"context-card",onContextReady:t[3]||(t[3]=y=>e.contextCardVisible=!0),onScaffoldViewClicked:t[4]||(t[4]=y=>e.$emit("scaffold-view-clicked",y))},null,8,["entry","envVars"])):a.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["width","popper-options","visible"]),a.createVNode(m,{class:"tooltip",content:"Close and remove",placement:"bottom-end","show-after":o.helpDelay,teleported:!1,trigger:"hover","popper-class":"header-popper"},{reference:a.withCtx(()=>[a.withDirectives(a.createVNode(g,{icon:"close",class:"header-icon",onClick:t[6]||(t[6]=y=>o.closeAndRemove())},null,512),[[a.vShow,o.activeView!=="singlepanel"&&r.entry.mode!=="main"]])]),_:1},8,["show-after"])]),_:1})])}const T0e=Gl(Dot,[["render",jot],["__scopeId","data-v-211633bc"]]),O4=(e,t,{checkForDefaultPrevented:r=!0}={})=>n=>{const i=e==null?void 0:e(n);if(r===!1||!i)return t==null?void 0:t(n)};var v0e;const Xs=typeof window<"u",Uot=e=>typeof e=="string",Q0e=()=>{},b0e=Xs&&((v0e=window==null?void 0:window.navigator)==null?void 0:v0e.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function x0e(e){return typeof e=="function"?e():a.unref(e)}function Got(e){return e}function Rj(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}function qot(e,t=!0){a.getCurrentInstance()?a.onMounted(e):t?e():a.nextTick(e)}function rh(e){var t;const r=x0e(e);return(t=r==null?void 0:r.$el)!=null?t:r}const Bj=Xs?window:void 0;function nh(...e){let t,r,n,i;if(Uot(e[0])||Array.isArray(e[0])?([r,n,i]=e,t=Bj):[t,r,n,i]=e,!t)return Q0e;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const o=[],s=()=>{o.forEach(d=>d()),o.length=0},l=(d,p,h,f)=>(d.addEventListener(p,h,f),()=>d.removeEventListener(p,h,f)),c=a.watch(()=>[rh(t),x0e(i)],([d,p])=>{s(),d&&o.push(...r.flatMap(h=>n.map(f=>l(d,h,f,p))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return Rj(u),u}let _0e=!1;function Zot(e,t,r={}){const{window:n=Bj,ignore:i=[],capture:o=!0,detectIframe:s=!1}=r;if(!n)return;b0e&&!_0e&&(_0e=!0,Array.from(n.document.body.children).forEach(d=>d.addEventListener("click",Q0e)));let l=!0;const c=d=>i.some(p=>{if(typeof p=="string")return Array.from(n.document.querySelectorAll(p)).some(h=>h===d.target||d.composedPath().includes(h));{const h=rh(p);return h&&(d.target===h||d.composedPath().includes(h))}}),u=[nh(n,"click",d=>{const p=rh(e);if(!(!p||p===d.target||d.composedPath().includes(p))){if(d.detail===0&&(l=!c(d)),!l){l=!0;return}t(d)}},{passive:!0,capture:o}),nh(n,"pointerdown",d=>{const p=rh(e);p&&(l=!d.composedPath().includes(p)&&!c(d))},{passive:!0}),s&&nh(n,"blur",d=>{var p;const h=rh(e);((p=n.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(h!=null&&h.contains(n.document.activeElement))&&t(d)})].filter(Boolean);return()=>u.forEach(d=>d())}function Wot(e,t=!1){const r=a.ref(),n=()=>r.value=!!e();return n(),qot(n,t),r}const w0e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},L0e="__vueuse_ssr_handlers__";w0e[L0e]=w0e[L0e]||{};var S0e=Object.getOwnPropertySymbols,Kot=Object.prototype.hasOwnProperty,Xot=Object.prototype.propertyIsEnumerable,Jot=(e,t)=>{var r={};for(var n in e)Kot.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&S0e)for(var n of S0e(e))t.indexOf(n)<0&&Xot.call(e,n)&&(r[n]=e[n]);return r};function zC(e,t,r={}){const n=r,{window:i=Bj}=n,o=Jot(n,["window"]);let s;const l=Wot(()=>i&&"ResizeObserver"in i),c=()=>{s&&(s.disconnect(),s=void 0)},u=a.watch(()=>rh(e),p=>{c(),l.value&&i&&p&&(s=new ResizeObserver(t),s.observe(p,o))},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return Rj(d),{isSupported:l,stop:d}}var k0e;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(k0e||(k0e={}));var Yot=Object.defineProperty,M0e=Object.getOwnPropertySymbols,$ot=Object.prototype.hasOwnProperty,eat=Object.prototype.propertyIsEnumerable,C0e=(e,t,r)=>t in e?Yot(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tat=(e,t)=>{for(var r in t||(t={}))$ot.call(t,r)&&C0e(e,r,t[r]);if(M0e)for(var r of M0e(t))eat.call(t,r)&&C0e(e,r,t[r]);return e};tat({linear:Got},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const rat=()=>Xs&&/firefox/i.test(window.navigator.userAgent),Dj=e=>{let t,r;return e.type==="touchend"?(r=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(r=e.touches[0].clientY,t=e.touches[0].clientX):(r=e.clientY,t=e.clientX),{clientX:t,clientY:r}};process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Kb=()=>{},nat=Object.prototype.hasOwnProperty,x8=(e,t)=>nat.call(e,t),ng=Array.isArray,g2=e=>typeof e=="function",Js=e=>typeof e=="string",Sc=e=>e!==null&&typeof e=="object",iat=Object.prototype.toString,oat=e=>iat.call(e),Fj=e=>oat(e).slice(8,-1),E0e=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},aat=/-(\w)/g,sat=E0e(e=>e.replace(aat,(t,r)=>r?r.toUpperCase():"")),lat=/\B([A-Z])/g,cat=E0e(e=>e.replace(lat,"-$1").toLowerCase());var A0e=typeof global=="object"&&global&&global.Object===Object&&global,uat=typeof self=="object"&&self&&self.Object===Object&&self,R3=A0e||uat||Function("return this")(),B3=R3.Symbol,O0e=Object.prototype,dat=O0e.hasOwnProperty,pat=O0e.toString,Xb=B3?B3.toStringTag:void 0;function hat(e){var t=dat.call(e,Xb),r=e[Xb];try{e[Xb]=void 0;var n=!0}catch{}var i=pat.call(e);return n&&(t?e[Xb]=r:delete e[Xb]),i}var fat=Object.prototype,mat=fat.toString;function gat(e){return mat.call(e)}var yat="[object Null]",Tat="[object Undefined]",H0e=B3?B3.toStringTag:void 0;function ig(e){return e==null?e===void 0?Tat:yat:H0e&&H0e in Object(e)?hat(e):gat(e)}function og(e){return e!=null&&typeof e=="object"}var vat="[object Symbol]";function jC(e){return typeof e=="symbol"||og(e)&&ig(e)==vat}function Qat(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var D3=Array.isArray,bat=1/0,V0e=B3?B3.prototype:void 0,I0e=V0e?V0e.toString:void 0;function P0e(e){if(typeof e=="string")return e;if(D3(e))return Qat(e,P0e)+"";if(jC(e))return I0e?I0e.call(e):"";var t=e+"";return t=="0"&&1/e==-bat?"-0":t}var xat=/\s/;function _at(e){for(var t=e.length;t--&&xat.test(e.charAt(t)););return t}var wat=/^\s+/;function Lat(e){return e&&e.slice(0,_at(e)+1).replace(wat,"")}function ih(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var N0e=NaN,Sat=/^[-+]0x[0-9a-f]+$/i,kat=/^0b[01]+$/i,Mat=/^0o[0-7]+$/i,Cat=parseInt;function zj(e){if(typeof e=="number")return e;if(jC(e))return N0e;if(ih(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ih(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Lat(e);var r=kat.test(e);return r||Mat.test(e)?Cat(e.slice(2),r?2:8):Sat.test(e)?N0e:+e}var R0e=1/0,Eat=17976931348623157e292;function Aat(e){if(!e)return e===0?e:0;if(e=zj(e),e===R0e||e===-R0e){var t=e<0?-1:1;return t*Eat}return e===e?e:0}function Oat(e){var t=Aat(e),r=t%1;return t===t?r?t-r:t:0}function B0e(e){return e}var Hat="[object AsyncFunction]",Vat="[object Function]",Iat="[object GeneratorFunction]",Pat="[object Proxy]";function D0e(e){if(!ih(e))return!1;var t=ig(e);return t==Vat||t==Iat||t==Hat||t==Pat}var jj=R3["__core-js_shared__"],F0e=function(){var e=/[^.]+$/.exec(jj&&jj.keys&&jj.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Nat(e){return!!F0e&&F0e in e}var Rat=Function.prototype,Bat=Rat.toString;function _8(e){if(e!=null){try{return Bat.call(e)}catch{}try{return e+""}catch{}}return""}var Dat=/[\\^$.*+?()[\]{}|]/g,Fat=/^\[object .+?Constructor\]$/,zat=Function.prototype,jat=Object.prototype,Uat=zat.toString,Gat=jat.hasOwnProperty,qat=RegExp("^"+Uat.call(Gat).replace(Dat,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Zat(e){if(!ih(e)||Nat(e))return!1;var t=D0e(e)?qat:Fat;return t.test(_8(e))}function Wat(e,t){return e==null?void 0:e[t]}function w8(e,t){var r=Wat(e,t);return Zat(r)?r:void 0}var Uj=w8(R3,"WeakMap");function Kat(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Xat=800,Jat=16,Yat=Date.now;function $at(e){var t=0,r=0;return function(){var n=Yat(),i=Jat-(n-r);if(r=n,i>0){if(++t>=Xat)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function est(e){return function(){return e}}var UC=function(){try{var e=w8(Object,"defineProperty");return e({},"",{}),e}catch{}}(),tst=UC?function(e,t){return UC(e,"toString",{configurable:!0,enumerable:!1,value:est(t),writable:!0})}:B0e,rst=$at(tst);function nst(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var ist=9007199254740991,ost=/^(?:0|[1-9]\d*)$/;function Gj(e,t){var r=typeof e;return t=t??ist,!!t&&(r=="number"||r!="symbol"&&ost.test(e))&&e>-1&&e%1==0&&e<t}function ast(e,t,r){t=="__proto__"&&UC?UC(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function qj(e,t){return e===t||e!==e&&t!==t}var sst=Object.prototype,lst=sst.hasOwnProperty;function cst(e,t,r){var n=e[t];(!(lst.call(e,t)&&qj(n,r))||r===void 0&&!(t in e))&&ast(e,t,r)}var z0e=Math.max;function ust(e,t,r){return t=z0e(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=z0e(n.length-t,0),s=Array(o);++i<o;)s[i]=n[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=n[i];return l[t]=r(s),Kat(e,this,l)}}var dst=9007199254740991;function Zj(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=dst}function pst(e){return e!=null&&Zj(e.length)&&!D0e(e)}var hst=Object.prototype;function fst(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||hst;return e===r}function mst(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var gst="[object Arguments]";function j0e(e){return og(e)&&ig(e)==gst}var U0e=Object.prototype,yst=U0e.hasOwnProperty,Tst=U0e.propertyIsEnumerable,Wj=j0e(function(){return arguments}())?j0e:function(e){return og(e)&&yst.call(e,"callee")&&!Tst.call(e,"callee")};function vst(){return!1}var G0e=typeof bn=="object"&&bn&&!bn.nodeType&&bn,q0e=G0e&&typeof module=="object"&&module&&!module.nodeType&&module,Qst=q0e&&q0e.exports===G0e,Z0e=Qst?R3.Buffer:void 0,bst=Z0e?Z0e.isBuffer:void 0,Kj=bst||vst,xst="[object Arguments]",_st="[object Array]",wst="[object Boolean]",Lst="[object Date]",Sst="[object Error]",kst="[object Function]",Mst="[object Map]",Cst="[object Number]",Est="[object Object]",Ast="[object RegExp]",Ost="[object Set]",Hst="[object String]",Vst="[object WeakMap]",Ist="[object ArrayBuffer]",Pst="[object DataView]",Nst="[object Float32Array]",Rst="[object Float64Array]",Bst="[object Int8Array]",Dst="[object Int16Array]",Fst="[object Int32Array]",zst="[object Uint8Array]",jst="[object Uint8ClampedArray]",Ust="[object Uint16Array]",Gst="[object Uint32Array]",da={};da[Nst]=da[Rst]=da[Bst]=da[Dst]=da[Fst]=da[zst]=da[jst]=da[Ust]=da[Gst]=!0,da[xst]=da[_st]=da[Ist]=da[wst]=da[Pst]=da[Lst]=da[Sst]=da[kst]=da[Mst]=da[Cst]=da[Est]=da[Ast]=da[Ost]=da[Hst]=da[Vst]=!1;function qst(e){return og(e)&&Zj(e.length)&&!!da[ig(e)]}function Zst(e){return function(t){return e(t)}}var W0e=typeof bn=="object"&&bn&&!bn.nodeType&&bn,Jb=W0e&&typeof module=="object"&&module&&!module.nodeType&&module,Wst=Jb&&Jb.exports===W0e,Xj=Wst&&A0e.process,K0e=function(){try{var e=Jb&&Jb.require&&Jb.require("util").types;return e||Xj&&Xj.binding&&Xj.binding("util")}catch{}}(),X0e=K0e&&K0e.isTypedArray,J0e=X0e?Zst(X0e):qst,Kst=Object.prototype,Xst=Kst.hasOwnProperty;function Jst(e,t){var r=D3(e),n=!r&&Wj(e),i=!r&&!n&&Kj(e),o=!r&&!n&&!i&&J0e(e),s=r||n||i||o,l=s?mst(e.length,String):[],c=l.length;for(var u in e)(t||Xst.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Gj(u,c)))&&l.push(u);return l}function Yst(e,t){return function(r){return e(t(r))}}var $st=Yst(Object.keys,Object),elt=Object.prototype,tlt=elt.hasOwnProperty;function rlt(e){if(!fst(e))return $st(e);var t=[];for(var r in Object(e))tlt.call(e,r)&&r!="constructor"&&t.push(r);return t}function Y0e(e){return pst(e)?Jst(e):rlt(e)}var nlt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ilt=/^\w*$/;function Jj(e,t){if(D3(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||jC(e)?!0:ilt.test(e)||!nlt.test(e)||t!=null&&e in Object(t)}var Yb=w8(Object,"create");function olt(){this.__data__=Yb?Yb(null):{},this.size=0}function alt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var slt="__lodash_hash_undefined__",llt=Object.prototype,clt=llt.hasOwnProperty;function ult(e){var t=this.__data__;if(Yb){var r=t[e];return r===slt?void 0:r}return clt.call(t,e)?t[e]:void 0}var dlt=Object.prototype,plt=dlt.hasOwnProperty;function hlt(e){var t=this.__data__;return Yb?t[e]!==void 0:plt.call(t,e)}var flt="__lodash_hash_undefined__";function mlt(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Yb&&t===void 0?flt:t,this}function L8(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}L8.prototype.clear=olt,L8.prototype.delete=alt,L8.prototype.get=ult,L8.prototype.has=hlt,L8.prototype.set=mlt;function glt(){this.__data__=[],this.size=0}function GC(e,t){for(var r=e.length;r--;)if(qj(e[r][0],t))return r;return-1}var ylt=Array.prototype,Tlt=ylt.splice;function vlt(e){var t=this.__data__,r=GC(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Tlt.call(t,r,1),--this.size,!0}function Qlt(e){var t=this.__data__,r=GC(t,e);return r<0?void 0:t[r][1]}function blt(e){return GC(this.__data__,e)>-1}function xlt(e,t){var r=this.__data__,n=GC(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function H4(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}H4.prototype.clear=glt,H4.prototype.delete=vlt,H4.prototype.get=Qlt,H4.prototype.has=blt,H4.prototype.set=xlt;var $b=w8(R3,"Map");function _lt(){this.size=0,this.__data__={hash:new L8,map:new($b||H4),string:new L8}}function wlt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function qC(e,t){var r=e.__data__;return wlt(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Llt(e){var t=qC(this,e).delete(e);return this.size-=t?1:0,t}function Slt(e){return qC(this,e).get(e)}function klt(e){return qC(this,e).has(e)}function Mlt(e,t){var r=qC(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function V4(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}V4.prototype.clear=_lt,V4.prototype.delete=Llt,V4.prototype.get=Slt,V4.prototype.has=klt,V4.prototype.set=Mlt;var Clt="Expected a function";function Yj(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Clt);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Yj.Cache||V4),r}Yj.Cache=V4;var Elt=500;function Alt(e){var t=Yj(e,function(n){return r.size===Elt&&r.clear(),n}),r=t.cache;return t}var Olt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hlt=/\\(\\)?/g,Vlt=Alt(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Olt,function(r,n,i,o){t.push(i?o.replace(Hlt,"$1"):n||r)}),t});function Ilt(e){return e==null?"":P0e(e)}function ZC(e,t){return D3(e)?e:Jj(e,t)?[e]:Vlt(Ilt(e))}var Plt=1/0;function ex(e){if(typeof e=="string"||jC(e))return e;var t=e+"";return t=="0"&&1/e==-Plt?"-0":t}function $j(e,t){t=ZC(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[ex(t[r++])];return r&&r==n?e:void 0}function y2(e,t,r){var n=e==null?void 0:$j(e,t);return n===void 0?r:n}function $0e(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var eue=B3?B3.isConcatSpreadable:void 0;function Nlt(e){return D3(e)||Wj(e)||!!(eue&&e&&e[eue])}function tue(e,t,r,n,i){var o=-1,s=e.length;for(r||(r=Nlt),i||(i=[]);++o<s;){var l=e[o];t>0&&r(l)?t>1?tue(l,t-1,r,n,i):$0e(i,l):n||(i[i.length]=l)}return i}function Rlt(e){var t=e==null?0:e.length;return t?tue(e,1):[]}function Blt(e){return rst(ust(e,void 0,Rlt),e+"")}function Dlt(){this.__data__=new H4,this.size=0}function Flt(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function zlt(e){return this.__data__.get(e)}function jlt(e){return this.__data__.has(e)}var Ult=200;function Glt(e,t){var r=this.__data__;if(r instanceof H4){var n=r.__data__;if(!$b||n.length<Ult-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new V4(n)}return r.set(e,t),this.size=r.size,this}function I4(e){var t=this.__data__=new H4(e);this.size=t.size}I4.prototype.clear=Dlt,I4.prototype.delete=Flt,I4.prototype.get=zlt,I4.prototype.has=jlt,I4.prototype.set=Glt;function qlt(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}function Zlt(){return[]}var Wlt=Object.prototype,Klt=Wlt.propertyIsEnumerable,rue=Object.getOwnPropertySymbols,Xlt=rue?function(e){return e==null?[]:(e=Object(e),qlt(rue(e),function(t){return Klt.call(e,t)}))}:Zlt;const Jlt=Xlt;function Ylt(e,t,r){var n=t(e);return D3(e)?n:$0e(n,r(e))}function nue(e){return Ylt(e,Y0e,Jlt)}var eU=w8(R3,"DataView"),tU=w8(R3,"Promise"),rU=w8(R3,"Set"),iue="[object Map]",$lt="[object Object]",oue="[object Promise]",aue="[object Set]",sue="[object WeakMap]",lue="[object DataView]",ect=_8(eU),tct=_8($b),rct=_8(tU),nct=_8(rU),ict=_8(Uj),S8=ig;(eU&&S8(new eU(new ArrayBuffer(1)))!=lue||$b&&S8(new $b)!=iue||tU&&S8(tU.resolve())!=oue||rU&&S8(new rU)!=aue||Uj&&S8(new Uj)!=sue)&&(S8=function(e){var t=ig(e),r=t==$lt?e.constructor:void 0,n=r?_8(r):"";if(n)switch(n){case ect:return lue;case tct:return iue;case rct:return oue;case nct:return aue;case ict:return sue}return t});const cue=S8;var oct=R3.Uint8Array;const uue=oct;var act="__lodash_hash_undefined__";function sct(e){return this.__data__.set(e,act),this}function lct(e){return this.__data__.has(e)}function WC(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new V4;++t<r;)this.add(e[t])}WC.prototype.add=WC.prototype.push=sct,WC.prototype.has=lct;function cct(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function uct(e,t){return e.has(t)}var dct=1,pct=2;function due(e,t,r,n,i,o){var s=r&dct,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var p=-1,h=!0,f=r&pct?new WC:void 0;for(o.set(e,t),o.set(t,e);++p<l;){var m=e[p],g=t[p];if(n)var T=s?n(g,m,p,t,e,o):n(m,g,p,e,t,o);if(T!==void 0){if(T)continue;h=!1;break}if(f){if(!cct(t,function(y,v){if(!uct(f,v)&&(m===y||i(m,y,r,n,o)))return f.push(v)})){h=!1;break}}else if(!(m===g||i(m,g,r,n,o))){h=!1;break}}return o.delete(e),o.delete(t),h}function hct(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function fct(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var mct=1,gct=2,yct="[object Boolean]",Tct="[object Date]",vct="[object Error]",Qct="[object Map]",bct="[object Number]",xct="[object RegExp]",_ct="[object Set]",wct="[object String]",Lct="[object Symbol]",Sct="[object ArrayBuffer]",kct="[object DataView]",pue=B3?B3.prototype:void 0,nU=pue?pue.valueOf:void 0;function Mct(e,t,r,n,i,o,s){switch(r){case kct:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Sct:return!(e.byteLength!=t.byteLength||!o(new uue(e),new uue(t)));case yct:case Tct:case bct:return qj(+e,+t);case vct:return e.name==t.name&&e.message==t.message;case xct:case wct:return e==t+"";case Qct:var l=hct;case _ct:var c=n&mct;if(l||(l=fct),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;n|=gct,s.set(e,t);var d=due(l(e),l(t),n,i,o,s);return s.delete(e),d;case Lct:if(nU)return nU.call(e)==nU.call(t)}return!1}var Cct=1,Ect=Object.prototype,Act=Ect.hasOwnProperty;function Oct(e,t,r,n,i,o){var s=r&Cct,l=nue(e),c=l.length,u=nue(t),d=u.length;if(c!=d&&!s)return!1;for(var p=c;p--;){var h=l[p];if(!(s?h in t:Act.call(t,h)))return!1}var f=o.get(e),m=o.get(t);if(f&&m)return f==t&&m==e;var g=!0;o.set(e,t),o.set(t,e);for(var T=s;++p<c;){h=l[p];var y=e[h],v=t[h];if(n)var _=s?n(v,y,h,t,e,o):n(y,v,h,e,t,o);if(!(_===void 0?y===v||i(y,v,r,n,o):_)){g=!1;break}T||(T=h=="constructor")}if(g&&!T){var b=e.constructor,L=t.constructor;b!=L&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof L=="function"&&L instanceof L)&&(g=!1)}return o.delete(e),o.delete(t),g}var Hct=1,hue="[object Arguments]",fue="[object Array]",KC="[object Object]",Vct=Object.prototype,mue=Vct.hasOwnProperty;function Ict(e,t,r,n,i,o){var s=D3(e),l=D3(t),c=s?fue:cue(e),u=l?fue:cue(t);c=c==hue?KC:c,u=u==hue?KC:u;var d=c==KC,p=u==KC,h=c==u;if(h&&Kj(e)){if(!Kj(t))return!1;s=!0,d=!1}if(h&&!d)return o||(o=new I4),s||J0e(e)?due(e,t,r,n,i,o):Mct(e,t,c,r,n,i,o);if(!(r&Hct)){var f=d&&mue.call(e,"__wrapped__"),m=p&&mue.call(t,"__wrapped__");if(f||m){var g=f?e.value():e,T=m?t.value():t;return o||(o=new I4),i(g,T,r,n,o)}}return h?(o||(o=new I4),Oct(e,t,r,n,i,o)):!1}function XC(e,t,r,n,i){return e===t?!0:e==null||t==null||!og(e)&&!og(t)?e!==e&&t!==t:Ict(e,t,r,n,XC,i)}var Pct=1,Nct=2;function Rct(e,t,r,n){var i=r.length,o=i,s=!n;if(e==null)return!o;for(e=Object(e);i--;){var l=r[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<o;){l=r[i];var c=l[0],u=e[c],d=l[1];if(s&&l[2]){if(u===void 0&&!(c in e))return!1}else{var p=new I4;if(n)var h=n(u,d,c,e,t,p);if(!(h===void 0?XC(d,u,Pct|Nct,n,p):h))return!1}}return!0}function gue(e){return e===e&&!ih(e)}function Bct(e){for(var t=Y0e(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,gue(i)]}return t}function yue(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function Dct(e){var t=Bct(e);return t.length==1&&t[0][2]?yue(t[0][0],t[0][1]):function(r){return r===e||Rct(r,e,t)}}function Fct(e,t){return e!=null&&t in Object(e)}function zct(e,t,r){t=ZC(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var s=ex(t[n]);if(!(o=e!=null&&r(e,s)))break;e=e[s]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&Zj(i)&&Gj(s,i)&&(D3(e)||Wj(e)))}function Tue(e,t){return e!=null&&zct(e,t,Fct)}var jct=1,Uct=2;function Gct(e,t){return Jj(e)&&gue(t)?yue(ex(e),t):function(r){var n=y2(r,e);return n===void 0&&n===t?Tue(r,e):XC(t,n,jct|Uct)}}function qct(e){return function(t){return t==null?void 0:t[e]}}function Zct(e){return function(t){return $j(t,e)}}function Wct(e){return Jj(e)?qct(ex(e)):Zct(e)}function Kct(e){return typeof e=="function"?e:e==null?B0e:typeof e=="object"?D3(e)?Gct(e[0],e[1]):Dct(e):Wct(e)}var iU=function(){return R3.Date.now()},Xct="Expected a function",Jct=Math.max,Yct=Math.min;function oU(e,t,r){var n,i,o,s,l,c,u=0,d=!1,p=!1,h=!0;if(typeof e!="function")throw new TypeError(Xct);t=zj(t)||0,ih(r)&&(d=!!r.leading,p="maxWait"in r,o=p?Jct(zj(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h);function f(w){var k=n,C=i;return n=i=void 0,u=w,s=e.apply(C,k),s}function m(w){return u=w,l=setTimeout(y,t),d?f(w):s}function g(w){var k=w-c,C=w-u,A=t-k;return p?Yct(A,o-C):A}function T(w){var k=w-c,C=w-u;return c===void 0||k>=t||k<0||p&&C>=o}function y(){var w=iU();if(T(w))return v(w);l=setTimeout(y,g(w))}function v(w){return l=void 0,h&&n?f(w):(n=i=void 0,s)}function _(){l!==void 0&&clearTimeout(l),u=0,n=c=i=l=void 0}function b(){return l===void 0?s:v(iU())}function L(){var w=iU(),k=T(w);if(n=arguments,i=this,c=w,k){if(l===void 0)return m(c);if(p)return clearTimeout(l),l=setTimeout(y,t),f(c)}return l===void 0&&(l=setTimeout(y,t)),s}return L.cancel=_,L.flush=b,L}var $ct=Math.max,e1t=Math.min;function t1t(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=n-1;return r!==void 0&&(i=Oat(r),i=r<0?$ct(n+i,0):e1t(i,n-1)),nst(e,Kct(t),i,!0)}function JC(e){for(var t=-1,r=e==null?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n}function aU(e,t){return XC(e,t)}function oh(e){return e==null}function r1t(e){return e===void 0}function n1t(e,t,r,n){if(!ih(e))return e;t=ZC(t,e);for(var i=-1,o=t.length,s=o-1,l=e;l!=null&&++i<o;){var c=ex(t[i]),u=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=s){var d=l[c];u=n?n(d,c,l):void 0,u===void 0&&(u=ih(d)?d:Gj(t[i+1])?[]:{})}cst(l,c,u),l=l[c]}return e}function i1t(e,t,r){for(var n=-1,i=t.length,o={};++n<i;){var s=t[n],l=$j(e,s);r(l,s)&&n1t(o,ZC(s,e),l)}return o}function o1t(e,t){return i1t(e,t,function(r,n){return Tue(e,n)})}var a1t=Blt(function(e,t){return e==null?{}:o1t(e,t)});const tx=e=>e===void 0,ah=e=>typeof e=="boolean",Ys=e=>typeof e=="number",rx=e=>typeof Element>"u"?!1:e instanceof Element,s1t=e=>Js(e)?!Number.isNaN(Number(e)):!1,l1t=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),vue=e=>Object.keys(e);let Que=class extends Error{constructor(t){super(t),this.name="ElementPlusError"}};function c1t(e,t){throw new Que(`[${e}] ${t}`)}function $s(e,t){if(process.env.NODE_ENV!=="production"){const r=Js(e)?new Que(`[${e}] ${t}`):e;console.warn(r)}}const u1t="utils/dom/style",bue=(e="")=>e.split(" ").filter(t=>!!t.trim()),sU=(e,t)=>{!e||!t.trim()||e.classList.add(...bue(t))},k8=(e,t)=>{!e||!t.trim()||e.classList.remove(...bue(t))},nx=(e,t)=>{var r;if(!Xs||!e||!t)return"";let n=sat(t);n==="float"&&(n="cssFloat");try{const i=e.style[n];if(i)return i;const o=(r=document.defaultView)==null?void 0:r.getComputedStyle(e,"");return o?o[n]:""}catch{return e.style[n]}};function ag(e,t="px"){if(!e)return"";if(Ys(e)||s1t(e))return`${e}${t}`;if(Js(e))return e;$s(u1t,"binding value must be a string or number")}function d1t(e,t){if(!Xs)return;if(!t){e.scrollTop=0;return}const r=[];let n=t.offsetParent;for(;n!==null&&e!==n&&e.contains(n);)r.push(n),n=n.offsetParent;const i=t.offsetTop+r.reduce((c,u)=>c+u.offsetTop,0),o=i+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;i<s?e.scrollTop=i:o>l&&(e.scrollTop=o-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var p1t=a.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),sh=p1t,h1t=a.defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),xue=h1t,f1t=a.defineComponent({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),YC=f1t,m1t=a.defineComponent({name:"CaretRight",__name:"caret-right",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),g1t=m1t,y1t=a.defineComponent({name:"CircleCheck",__name:"circle-check",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),a.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),T1t=y1t,v1t=a.defineComponent({name:"CircleClose",__name:"circle-close",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),a.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),lU=v1t,Q1t=a.defineComponent({name:"Close",__name:"close",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),ix=Q1t,b1t=a.defineComponent({name:"Edit",__name:"edit",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),a.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),_ue=b1t,x1t=a.defineComponent({name:"Hide",__name:"hide",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),a.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),_1t=x1t,w1t=a.defineComponent({name:"Loading",__name:"loading",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),cU=w1t,L1t=a.defineComponent({name:"Notebook",__name:"notebook",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),a.createElementVNode("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),S1t=L1t,k1t=a.defineComponent({name:"View",__name:"view",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),M1t=k1t,C1t=a.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),wue=C1t,E1t=a.defineComponent({name:"Warning",__name:"warning",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),Lue=E1t;const Sue="__epPropKey",mi=e=>e,A1t=e=>Sc(e)&&!!e[Sue],$C=(e,t)=>{if(!Sc(e)||A1t(e))return e;const{values:r,required:n,default:i,type:o,validator:s}=e,l={type:o,required:!!n,validator:r||s?c=>{let u=!1,d=[];if(r&&(d=Array.from(r),x8(e,"default")&&d.push(i),u||(u=d.includes(c))),s&&(u||(u=s(c))),!u&&d.length>0){const p=[...new Set(d)].map(h=>JSON.stringify(h)).join(", ");a.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(c)}.`)}return u}:void 0,[Sue]:!0};return x8(e,"default")&&(l.default=i),l},Lo=e=>JC(Object.entries(e).map(([t,r])=>[t,$C(r,t)])),lh=mi([String,Object,Function]),kue={validating:cU,success:T1t,error:lU},Jc=(e,t)=>{if(e.install=r=>{for(const n of[e,...Object.values(t??{})])r.component(n.name,n)},t)for(const[r,n]of Object.entries(t))e[r]=n;return e},O1t=(e,t)=>(e.install=r=>{r.directive(t,e)},e),Qu=e=>(e.install=Kb,e),kc={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},ss="update:modelValue",eE="change",uU=["","default","small","large"],H1t={large:40,default:32,small:24},V1t=e=>H1t[e||"default"],I1t=e=>["",...uU].includes(e),Mue=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),sg=e=>e,P1t=["class","style"],N1t=/^on[A-Z]/,R1t=(e={})=>{const{excludeListeners:t=!1,excludeKeys:r}=e,n=a.computed(()=>((r==null?void 0:r.value)||[]).concat(P1t)),i=a.getCurrentInstance();return i?a.computed(()=>{var o;return JC(Object.entries((o=i.proxy)==null?void 0:o.$attrs).filter(([s])=>!n.value.includes(s)&&!(t&&N1t.test(s))))}):($s("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),a.computed(()=>({})))},Cue=({from:e,replacement:t,scope:r,version:n,ref:i,type:o="API"},s)=>{a.watch(()=>a.unref(s),l=>{l&&$s(r,`[${o}] ${e} is about to be deprecated in version ${n}, please use ${t} instead.
|
429
429
|
For more detail, please visit: ${i}
|
430
430
|
`)},{immediate:!0})};var B1t={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const D1t=e=>(t,r)=>F1t(t,r,a.unref(e)),F1t=(e,t,r)=>y2(r,e,e).replace(/\{(\w+)\}/g,(n,i)=>{var o;return`${(o=t==null?void 0:t[i])!=null?o:`{${i}}`}`}),z1t=e=>{const t=a.computed(()=>a.unref(e).name),r=a.isRef(e)?e:a.ref(e);return{lang:t,locale:r,t:D1t(e)}},Eue=Symbol("localeContextKey"),lg=e=>{const t=e||a.inject(Eue,a.ref());return z1t(a.computed(()=>t.value||B1t))},tE="el",j1t="is-",M8=(e,t,r,n,i)=>{let o=`${e}-${t}`;return r&&(o+=`-${r}`),n&&(o+=`__${n}`),i&&(o+=`--${i}`),o},Aue=Symbol("namespaceContextKey"),dU=e=>{const t=e||(a.getCurrentInstance()?a.inject(Aue,a.ref(tE)):a.ref(tE));return a.computed(()=>a.unref(t)||tE)},li=(e,t)=>{const r=dU(t);return{namespace:r,b:(n="")=>M8(r.value,e,n,"",""),e:n=>n?M8(r.value,e,"",n,""):"",m:n=>n?M8(r.value,e,"","",n):"",be:(n,i)=>n&&i?M8(r.value,e,n,i,""):"",em:(n,i)=>n&&i?M8(r.value,e,"",n,i):"",bm:(n,i)=>n&&i?M8(r.value,e,n,"",i):"",bem:(n,i,o)=>n&&i&&o?M8(r.value,e,n,i,o):"",is:(n,...i)=>{const o=i.length>=1?i[0]:!0;return n&&o?`${j1t}${n}`:""},cssVar:n=>{const i={};for(const o in n)n[o]&&(i[`--${r.value}-${o}`]=n[o]);return i},cssVarName:n=>`--${r.value}-${n}`,cssVarBlock:n=>{const i={};for(const o in n)n[o]&&(i[`--${r.value}-${e}-${o}`]=n[o]);return i},cssVarBlockName:n=>`--${r.value}-${e}-${n}`}},U1t=$C({type:mi(Boolean),default:null}),G1t=$C({type:mi(Function)}),q1t=e=>{const t=`update:${e}`,r=`onUpdate:${e}`,n=[t],i={[e]:U1t,[r]:G1t};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:c,onShow:u,onHide:d})=>{const p=a.getCurrentInstance(),{emit:h}=p,f=p.props,m=a.computed(()=>g2(f[r])),g=a.computed(()=>f[e]===null),T=w=>{o.value!==!0&&(o.value=!0,s&&(s.value=w),g2(u)&&u(w))},y=w=>{o.value!==!1&&(o.value=!1,s&&(s.value=w),g2(d)&&d(w))},v=w=>{if(f.disabled===!0||g2(c)&&!c())return;const k=m.value&&Xs;k&&h(t,!0),(g.value||!k)&&T(w)},_=w=>{if(f.disabled===!0||!Xs)return;const k=m.value&&Xs;k&&h(t,!1),(g.value||!k)&&y(w)},b=w=>{ah(w)&&(f.disabled&&w?m.value&&h(t,!1):o.value!==w&&(w?T():y()))},L=()=>{o.value?_():v()};return a.watch(()=>f[e],b),l&&p.appContext.config.globalProperties.$route!==void 0&&a.watch(()=>({...p.proxy.$route}),()=>{l.value&&o.value&&_()}),a.onMounted(()=>{b(f[e])}),{hide:_,show:v,toggle:L,hasUpdateHandler:m}},useModelToggleProps:i,useModelToggleEmits:n}},Oue=e=>{const t=a.getCurrentInstance();return a.computed(()=>{var r,n;return(n=(r=t==null?void 0:t.proxy)==null?void 0:r.$props)==null?void 0:n[e]})};var M1="top",n0="bottom",i0="right",C1="left",pU="auto",ox=[M1,n0,i0,C1],cg="start",ax="end",Z1t="clippingParents",Hue="viewport",sx="popper",W1t="reference",Vue=ox.reduce(function(e,t){return e.concat([t+"-"+cg,t+"-"+ax])},[]),rE=[].concat(ox,[pU]).reduce(function(e,t){return e.concat([t,t+"-"+cg,t+"-"+ax])},[]),K1t="beforeRead",X1t="read",J1t="afterRead",Y1t="beforeMain",$1t="main",e2t="afterMain",t2t="beforeWrite",r2t="write",n2t="afterWrite",i2t=[K1t,X1t,J1t,Y1t,$1t,e2t,t2t,r2t,n2t];function F3(e){return e?(e.nodeName||"").toLowerCase():null}function bu(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ug(e){var t=bu(e).Element;return e instanceof t||e instanceof Element}function o0(e){var t=bu(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function hU(e){if(typeof ShadowRoot>"u")return!1;var t=bu(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function o2t(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},o=t.elements[r];!o0(o)||!F3(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(s){var l=i[s];l===!1?o.removeAttribute(s):o.setAttribute(s,l===!0?"":l)}))})}function a2t(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],o=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=s.reduce(function(c,u){return c[u]="",c},{});!o0(i)||!F3(i)||(Object.assign(i.style,l),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}var Iue={name:"applyStyles",enabled:!0,phase:"write",fn:o2t,effect:a2t,requires:["computeStyles"]};function z3(e){return e.split("-")[0]}var C8=Math.max,nE=Math.min,dg=Math.round;function pg(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),n=1,i=1;if(o0(e)&&t){var o=e.offsetHeight,s=e.offsetWidth;s>0&&(n=dg(r.width)/s||1),o>0&&(i=dg(r.height)/o||1)}return{width:r.width/n,height:r.height/i,top:r.top/i,right:r.right/n,bottom:r.bottom/i,left:r.left/n,x:r.left/n,y:r.top/i}}function fU(e){var t=pg(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Pue(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&hU(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function P4(e){return bu(e).getComputedStyle(e)}function s2t(e){return["table","td","th"].indexOf(F3(e))>=0}function ch(e){return((ug(e)?e.ownerDocument:e.document)||window.document).documentElement}function iE(e){return F3(e)==="html"?e:e.assignedSlot||e.parentNode||(hU(e)?e.host:null)||ch(e)}function Nue(e){return!o0(e)||P4(e).position==="fixed"?null:e.offsetParent}function l2t(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&o0(e)){var n=P4(e);if(n.position==="fixed")return null}var i=iE(e);for(hU(i)&&(i=i.host);o0(i)&&["html","body"].indexOf(F3(i))<0;){var o=P4(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function lx(e){for(var t=bu(e),r=Nue(e);r&&s2t(r)&&P4(r).position==="static";)r=Nue(r);return r&&(F3(r)==="html"||F3(r)==="body"&&P4(r).position==="static")?t:r||l2t(e)||t}function mU(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function cx(e,t,r){return C8(e,nE(t,r))}function c2t(e,t,r){var n=cx(e,t,r);return n>r?r:n}function Rue(){return{top:0,right:0,bottom:0,left:0}}function Bue(e){return Object.assign({},Rue(),e)}function Due(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var u2t=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Bue(typeof e!="number"?e:Due(e,ox))};function d2t(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,l=z3(r.placement),c=mU(l),u=[C1,i0].indexOf(l)>=0,d=u?"height":"width";if(!(!o||!s)){var p=u2t(i.padding,r),h=fU(o),f=c==="y"?M1:C1,m=c==="y"?n0:i0,g=r.rects.reference[d]+r.rects.reference[c]-s[c]-r.rects.popper[d],T=s[c]-r.rects.reference[c],y=lx(o),v=y?c==="y"?y.clientHeight||0:y.clientWidth||0:0,_=g/2-T/2,b=p[f],L=v-h[d]-p[m],w=v/2-h[d]/2+_,k=cx(b,w,L),C=c;r.modifiersData[n]=(t={},t[C]=k,t.centerOffset=k-w,t)}}function p2t(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!Pue(t.elements.popper,i)||(t.elements.arrow=i))}var h2t={name:"arrow",enabled:!0,phase:"main",fn:d2t,effect:p2t,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function hg(e){return e.split("-")[1]}var f2t={top:"auto",right:"auto",bottom:"auto",left:"auto"};function m2t(e){var t=e.x,r=e.y,n=window,i=n.devicePixelRatio||1;return{x:dg(t*i)/i||0,y:dg(r*i)/i||0}}function Fue(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,p=e.isFixed,h=s.x,f=h===void 0?0:h,m=s.y,g=m===void 0?0:m,T=typeof d=="function"?d({x:f,y:g}):{x:f,y:g};f=T.x,g=T.y;var y=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),_=C1,b=M1,L=window;if(u){var w=lx(r),k="clientHeight",C="clientWidth";if(w===bu(r)&&(w=ch(r),P4(w).position!=="static"&&l==="absolute"&&(k="scrollHeight",C="scrollWidth")),w=w,i===M1||(i===C1||i===i0)&&o===ax){b=n0;var A=p&&w===L&&L.visualViewport?L.visualViewport.height:w[k];g-=A-n.height,g*=c?1:-1}if(i===C1||(i===M1||i===n0)&&o===ax){_=i0;var O=p&&w===L&&L.visualViewport?L.visualViewport.width:w[C];f-=O-n.width,f*=c?1:-1}}var N=Object.assign({position:l},u&&f2t),I=d===!0?m2t({x:f,y:g}):{x:f,y:g};if(f=I.x,g=I.y,c){var B;return Object.assign({},N,(B={},B[b]=v?"0":"",B[_]=y?"0":"",B.transform=(L.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",B))}return Object.assign({},N,(t={},t[b]=v?g+"px":"",t[_]=y?f+"px":"",t.transform="",t))}function g2t(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,s=o===void 0?!0:o,l=r.roundOffsets,c=l===void 0?!0:l,u={placement:z3(t.placement),variation:hg(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Fue(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Fue(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var zue={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:g2t,data:{}},oE={passive:!0};function y2t(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,s=n.resize,l=s===void 0?!0:s,c=bu(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",r.update,oE)}),l&&c.addEventListener("resize",r.update,oE),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",r.update,oE)}),l&&c.removeEventListener("resize",r.update,oE)}}var jue={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:y2t,data:{}},T2t={left:"right",right:"left",bottom:"top",top:"bottom"};function aE(e){return e.replace(/left|right|bottom|top/g,function(t){return T2t[t]})}var v2t={start:"end",end:"start"};function Uue(e){return e.replace(/start|end/g,function(t){return v2t[t]})}function gU(e){var t=bu(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function yU(e){return pg(ch(e)).left+gU(e).scrollLeft}function Q2t(e){var t=bu(e),r=ch(e),n=t.visualViewport,i=r.clientWidth,o=r.clientHeight,s=0,l=0;return n&&(i=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=n.offsetLeft,l=n.offsetTop)),{width:i,height:o,x:s+yU(e),y:l}}function b2t(e){var t,r=ch(e),n=gU(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=C8(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=C8(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-n.scrollLeft+yU(e),c=-n.scrollTop;return P4(i||r).direction==="rtl"&&(l+=C8(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:l,y:c}}function TU(e){var t=P4(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Gue(e){return["html","body","#document"].indexOf(F3(e))>=0?e.ownerDocument.body:o0(e)&&TU(e)?e:Gue(iE(e))}function ux(e,t){var r;t===void 0&&(t=[]);var n=Gue(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=bu(n),s=i?[o].concat(o.visualViewport||[],TU(n)?n:[]):n,l=t.concat(s);return i?l:l.concat(ux(iE(s)))}function vU(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function x2t(e){var t=pg(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function que(e,t){return t===Hue?vU(Q2t(e)):ug(t)?x2t(t):vU(b2t(ch(e)))}function _2t(e){var t=ux(iE(e)),r=["absolute","fixed"].indexOf(P4(e).position)>=0,n=r&&o0(e)?lx(e):e;return ug(n)?t.filter(function(i){return ug(i)&&Pue(i,n)&&F3(i)!=="body"}):[]}function w2t(e,t,r){var n=t==="clippingParents"?_2t(e):[].concat(t),i=[].concat(n,[r]),o=i[0],s=i.reduce(function(l,c){var u=que(e,c);return l.top=C8(u.top,l.top),l.right=nE(u.right,l.right),l.bottom=nE(u.bottom,l.bottom),l.left=C8(u.left,l.left),l},que(e,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Zue(e){var t=e.reference,r=e.element,n=e.placement,i=n?z3(n):null,o=n?hg(n):null,s=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,c;switch(i){case M1:c={x:s,y:t.y-r.height};break;case n0:c={x:s,y:t.y+t.height};break;case i0:c={x:t.x+t.width,y:l};break;case C1:c={x:t.x-r.width,y:l};break;default:c={x:t.x,y:t.y}}var u=i?mU(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case cg:c[u]=c[u]-(t[d]/2-r[d]/2);break;case ax:c[u]=c[u]+(t[d]/2-r[d]/2);break}}return c}function dx(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.boundary,s=o===void 0?Z1t:o,l=r.rootBoundary,c=l===void 0?Hue:l,u=r.elementContext,d=u===void 0?sx:u,p=r.altBoundary,h=p===void 0?!1:p,f=r.padding,m=f===void 0?0:f,g=Bue(typeof m!="number"?m:Due(m,ox)),T=d===sx?W1t:sx,y=e.rects.popper,v=e.elements[h?T:d],_=w2t(ug(v)?v:v.contextElement||ch(e.elements.popper),s,c),b=pg(e.elements.reference),L=Zue({reference:b,element:y,strategy:"absolute",placement:i}),w=vU(Object.assign({},y,L)),k=d===sx?w:b,C={top:_.top-k.top+g.top,bottom:k.bottom-_.bottom+g.bottom,left:_.left-k.left+g.left,right:k.right-_.right+g.right},A=e.modifiersData.offset;if(d===sx&&A){var O=A[i];Object.keys(C).forEach(function(N){var I=[i0,n0].indexOf(N)>=0?1:-1,B=[M1,n0].indexOf(N)>=0?"y":"x";C[N]+=O[B]*I})}return C}function L2t(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,s=r.padding,l=r.flipVariations,c=r.allowedAutoPlacements,u=c===void 0?rE:c,d=hg(n),p=d?l?Vue:Vue.filter(function(m){return hg(m)===d}):ox,h=p.filter(function(m){return u.indexOf(m)>=0});h.length===0&&(h=p);var f=h.reduce(function(m,g){return m[g]=dx(e,{placement:g,boundary:i,rootBoundary:o,padding:s})[z3(g)],m},{});return Object.keys(f).sort(function(m,g){return f[m]-f[g]})}function S2t(e){if(z3(e)===pU)return[];var t=aE(e);return[Uue(e),t,Uue(t)]}function k2t(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,s=r.altAxis,l=s===void 0?!0:s,c=r.fallbackPlacements,u=r.padding,d=r.boundary,p=r.rootBoundary,h=r.altBoundary,f=r.flipVariations,m=f===void 0?!0:f,g=r.allowedAutoPlacements,T=t.options.placement,y=z3(T),v=y===T,_=c||(v||!m?[aE(T)]:S2t(T)),b=[T].concat(_).reduce(function(he,me){return he.concat(z3(me)===pU?L2t(t,{placement:me,boundary:d,rootBoundary:p,padding:u,flipVariations:m,allowedAutoPlacements:g}):me)},[]),L=t.rects.reference,w=t.rects.popper,k=new Map,C=!0,A=b[0],O=0;O<b.length;O++){var N=b[O],I=z3(N),B=hg(N)===cg,F=[M1,n0].indexOf(I)>=0,j=F?"width":"height",G=dx(t,{placement:N,boundary:d,rootBoundary:p,altBoundary:h,padding:u}),P=F?B?i0:C1:B?n0:M1;L[j]>w[j]&&(P=aE(P));var Z=aE(P),K=[];if(o&&K.push(G[I]<=0),l&&K.push(G[P]<=0,G[Z]<=0),K.every(function(he){return he})){A=N,C=!1;break}k.set(N,K)}if(C)for(var U=m?3:1,X=function(he){var me=b.find(function(ie){var be=k.get(ie);if(be)return be.slice(0,he).every(function(re){return re})});if(me)return A=me,"break"},ee=U;ee>0;ee--){var oe=X(ee);if(oe==="break")break}t.placement!==A&&(t.modifiersData[n]._skip=!0,t.placement=A,t.reset=!0)}}var M2t={name:"flip",enabled:!0,phase:"main",fn:k2t,requiresIfExists:["offset"],data:{_skip:!1}};function Wue(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Kue(e){return[M1,i0,n0,C1].some(function(t){return e[t]>=0})}function C2t(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=dx(t,{elementContext:"reference"}),l=dx(t,{altBoundary:!0}),c=Wue(s,n),u=Wue(l,i,o),d=Kue(c),p=Kue(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}var E2t={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:C2t};function A2t(e,t,r){var n=z3(e),i=[C1,M1].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=o[0],l=o[1];return s=s||0,l=(l||0)*i,[C1,i0].indexOf(n)>=0?{x:l,y:s}:{x:s,y:l}}function O2t(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,s=rE.reduce(function(d,p){return d[p]=A2t(p,t.rects,o),d},{}),l=s[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=s}var H2t={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:O2t};function V2t(e){var t=e.state,r=e.name;t.modifiersData[r]=Zue({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Xue={name:"popperOffsets",enabled:!0,phase:"read",fn:V2t,data:{}};function I2t(e){return e==="x"?"y":"x"}function P2t(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,s=r.altAxis,l=s===void 0?!1:s,c=r.boundary,u=r.rootBoundary,d=r.altBoundary,p=r.padding,h=r.tether,f=h===void 0?!0:h,m=r.tetherOffset,g=m===void 0?0:m,T=dx(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:d}),y=z3(t.placement),v=hg(t.placement),_=!v,b=mU(y),L=I2t(b),w=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,A=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,O=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(w){if(o){var B,F=b==="y"?M1:C1,j=b==="y"?n0:i0,G=b==="y"?"height":"width",P=w[b],Z=P+T[F],K=P-T[j],U=f?-C[G]/2:0,X=v===cg?k[G]:C[G],ee=v===cg?-C[G]:-k[G],oe=t.elements.arrow,he=f&&oe?fU(oe):{width:0,height:0},me=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Rue(),ie=me[F],be=me[j],re=cx(0,k[G],he[G]),ue=_?k[G]/2-U-re-ie-O.mainAxis:X-re-ie-O.mainAxis,ne=_?-k[G]/2+U+re+be+O.mainAxis:ee+re+be+O.mainAxis,ye=t.elements.arrow&&lx(t.elements.arrow),_e=ye?b==="y"?ye.clientTop||0:ye.clientLeft||0:0,Ie=(B=N==null?void 0:N[b])!=null?B:0,qe=P+ue-Ie-_e,Ge=P+ne-Ie,et=cx(f?nE(Z,qe):Z,P,f?C8(K,Ge):K);w[b]=et,I[b]=et-P}if(l){var Ve,Ne=b==="x"?M1:C1,it=b==="x"?n0:i0,Be=w[L],pt=L==="y"?"height":"width",yt=Be+T[Ne],ct=Be-T[it],xe=[M1,C1].indexOf(y)!==-1,Ue=(Ve=N==null?void 0:N[L])!=null?Ve:0,$e=xe?yt:Be-k[pt]-C[pt]-Ue+O.altAxis,at=xe?Be+k[pt]+C[pt]-Ue-O.altAxis:ct,Ht=f&&xe?c2t($e,Be,at):cx(f?$e:yt,Be,f?at:ct);w[L]=Ht,I[L]=Ht-Be}t.modifiersData[n]=I}}var N2t={name:"preventOverflow",enabled:!0,phase:"main",fn:P2t,requiresIfExists:["offset"]};function R2t(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function B2t(e){return e===bu(e)||!o0(e)?gU(e):R2t(e)}function D2t(e){var t=e.getBoundingClientRect(),r=dg(t.width)/e.offsetWidth||1,n=dg(t.height)/e.offsetHeight||1;return r!==1||n!==1}function F2t(e,t,r){r===void 0&&(r=!1);var n=o0(t),i=o0(t)&&D2t(t),o=ch(t),s=pg(e,i),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((F3(t)!=="body"||TU(o))&&(l=B2t(t)),o0(t)?(c=pg(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=yU(o))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function z2t(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(l){if(!r.has(l)){var c=t.get(l);c&&i(c)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function j2t(e){var t=z2t(e);return i2t.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function U2t(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function G2t(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Jue={placement:"bottom",modifiers:[],strategy:"absolute"};function Yue(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function QU(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,o=i===void 0?Jue:i;return function(s,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Jue,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,h={state:u,setOptions:function(g){var T=typeof g=="function"?g(u.options):g;m(),u.options=Object.assign({},o,u.options,T),u.scrollParents={reference:ug(s)?ux(s):s.contextElement?ux(s.contextElement):[],popper:ux(l)};var y=j2t(G2t([].concat(n,u.options.modifiers)));return u.orderedModifiers=y.filter(function(v){return v.enabled}),f(),h.update()},forceUpdate:function(){if(!p){var g=u.elements,T=g.reference,y=g.popper;if(Yue(T,y)){u.rects={reference:F2t(T,lx(y),u.options.strategy==="fixed"),popper:fU(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(C){return u.modifiersData[C.name]=Object.assign({},C.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var _=u.orderedModifiers[v],b=_.fn,L=_.options,w=L===void 0?{}:L,k=_.name;typeof b=="function"&&(u=b({state:u,options:w,name:k,instance:h})||u)}}}},update:U2t(function(){return new Promise(function(g){h.forceUpdate(),g(u)})}),destroy:function(){m(),p=!0}};if(!Yue(s,l))return h;h.setOptions(c).then(function(g){!p&&c.onFirstUpdate&&c.onFirstUpdate(g)});function f(){u.orderedModifiers.forEach(function(g){var T=g.name,y=g.options,v=y===void 0?{}:y,_=g.effect;if(typeof _=="function"){var b=_({state:u,name:T,instance:h,options:v}),L=function(){};d.push(b||L)}})}function m(){d.forEach(function(g){return g()}),d=[]}return h}}QU();var q2t=[jue,Xue,zue,Iue];QU({defaultModifiers:q2t});var Z2t=[jue,Xue,zue,Iue,H2t,M2t,N2t,h2t,E2t],W2t=QU({defaultModifiers:Z2t});const K2t=(e,t,r={})=>{const n={name:"updateState",enabled:!0,phase:"write",fn:({state:c})=>{const u=X2t(c);Object.assign(s.value,u)},requires:["computeStyles"]},i=a.computed(()=>{const{onFirstUpdate:c,placement:u,strategy:d,modifiers:p}=a.unref(r);return{onFirstUpdate:c,placement:u||"bottom",strategy:d||"absolute",modifiers:[...p||[],n,{name:"applyStyles",enabled:!1}]}}),o=a.shallowRef(),s=a.ref({styles:{popper:{position:a.unref(i).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return a.watch(i,c=>{const u=a.unref(o);u&&u.setOptions(c)},{deep:!0}),a.watch([e,t],([c,u])=>{l(),!(!c||!u)&&(o.value=W2t(c,u,a.unref(i)))}),a.onBeforeUnmount(()=>{l()}),{state:a.computed(()=>{var c;return{...((c=a.unref(o))==null?void 0:c.state)||{}}}),styles:a.computed(()=>a.unref(s).styles),attributes:a.computed(()=>a.unref(s).attributes),update:()=>{var c;return(c=a.unref(o))==null?void 0:c.update()},forceUpdate:()=>{var c;return(c=a.unref(o))==null?void 0:c.forceUpdate()},instanceRef:a.computed(()=>a.unref(o))}};function X2t(e){const t=Object.keys(e.elements),r=JC(t.map(i=>[i,e.styles[i]||{}])),n=JC(t.map(i=>[i,e.attributes[i]]));return{styles:r,attributes:n}}function $ue(){let e;const t=(n,i)=>{r(),e=window.setTimeout(n,i)},r=()=>window.clearTimeout(e);return Rj(()=>r()),{registerTimeout:t,cancelTimeout:r}}const bU={prefix:Math.floor(Math.random()*1e4),current:0},J2t=Symbol("elIdInjection"),e3e=()=>a.getCurrentInstance()?a.inject(J2t,bU):bU,px=e=>{const t=e3e();!Xs&&t===bU&&$s("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
431
431
|
usage: app.provide(ID_INJECTION_KEY, {
|
@@ -1486,7 +1486,7 @@ License: MIT
|
|
1486
1486
|
`:"\r"}(ue,_e)),N=!1,C.delimiter)k(C.delimiter)&&(C.delimiter=C.delimiter(ue),ee.meta.delimiter=C.delimiter);else{var Ie=function(Ge,et,Ve,Ne,it){var Be,pt,yt,ct;it=it||[","," ","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var xe=0;xe<it.length;xe++){var Ue=it[xe],$e=0,at=0,Ht=0;yt=void 0;for(var Vt=new y({comments:Ne,delimiter:Ue,newline:et,preview:10}).parse(Ge),Dt=0;Dt<Vt.data.length;Dt++)if(Ve&&he(Vt.data[Dt]))Ht++;else{var Gt=Vt.data[Dt].length;at+=Gt,yt!==void 0?0<Gt&&($e+=Math.abs(Gt-yt),yt=Gt):yt=Gt}0<Vt.data.length&&(at/=Vt.data.length-Ht),(pt===void 0||$e<=pt)&&(ct===void 0||ct<at)&&1.99<at&&(pt=$e,Be=Ue,ct=at)}return{successful:!!(C.delimiter=Be),bestDelimiter:Be}}(ue,C.newline,C.skipEmptyLines,C.comments,C.delimitersToGuess);Ie.successful?C.delimiter=Ie.bestDelimiter:(N=!0,C.delimiter=c.DefaultDelimiter),ee.meta.delimiter=C.delimiter}var qe=L(C);return C.preview&&C.header&&qe.preview++,A=ue,O=new y(qe),ee=O.parse(A,ne,ye),me(),K?{meta:{paused:!0}}:ee||{meta:{paused:!1}}},this.paused=function(){return K},this.pause=function(){K=!0,O.abort(),A=k(C.chunk)?"":A.substring(O.getCharIndex())},this.resume=function(){G.streamer._halted?(K=!1,G.streamer.parseChunk(A,!0)):setTimeout(G.resume,3)},this.aborted=function(){return U},this.abort=function(){U=!0,O.abort(),ee.meta.aborted=!0,k(C.complete)&&C.complete(ee),A=""}}function T(C){return C.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function y(C){var A,O=(C=C||{}).delimiter,N=C.newline,I=C.comments,B=C.step,F=C.preview,j=C.fastMode,G=A=C.quoteChar===void 0||C.quoteChar===null?'"':C.quoteChar;if(C.escapeChar!==void 0&&(G=C.escapeChar),(typeof O!="string"||-1<c.BAD_DELIMITERS.indexOf(O))&&(O=","),I===O)throw new Error("Comment character same as delimiter");I===!0?I="#":(typeof I!="string"||-1<c.BAD_DELIMITERS.indexOf(I))&&(I=!1),N!==`
|
1487
1487
|
`&&N!=="\r"&&N!==`\r
|
1488
1488
|
`&&(N=`
|
1489
|
-
`);var P=0,Z=!1;this.parse=function(K,U,X){if(typeof K!="string")throw new Error("Input must be a string");var ee=K.length,oe=O.length,he=N.length,me=I.length,ie=k(B),be=[],re=[],ue=[],ne=P=0;if(!K)return Je();if(C.header&&!U){var ye=K.split(N)[0].split(O),_e=[],Ie={},qe=!1;for(var Ge in ye){var et=ye[Ge];k(C.transformHeader)&&(et=C.transformHeader(et,Ge));var Ve=et,Ne=Ie[et]||0;for(0<Ne&&(qe=!0,Ve=et+"_"+Ne),Ie[et]=Ne+1;_e.includes(Ve);)Ve=Ve+"_"+Ne;_e.push(Ve)}if(qe){var it=K.split(N);it[0]=_e.join(O),K=it.join(N)}}if(j||j!==!1&&K.indexOf(A)===-1){for(var Be=K.split(N),pt=0;pt<Be.length;pt++){if(ue=Be[pt],P+=ue.length,pt!==Be.length-1)P+=N.length;else if(X)return Je();if(!I||ue.substring(0,me)!==I){if(ie){if(be=[],Ht(ue.split(O)),ft(),Z)return Je()}else Ht(ue.split(O));if(F&&F<=pt)return be=be.slice(0,F),Je(!0)}}return Je()}for(var yt=K.indexOf(O,P),ct=K.indexOf(N,P),xe=new RegExp(T(G)+T(A),"g"),Ue=K.indexOf(A,P);;)if(K[P]!==A)if(I&&ue.length===0&&K.substring(P,P+me)===I){if(ct===-1)return Je();P=ct+he,ct=K.indexOf(N,P),yt=K.indexOf(O,P)}else if(yt!==-1&&(yt<ct||ct===-1))ue.push(K.substring(P,yt)),P=yt+oe,yt=K.indexOf(O,P);else{if(ct===-1)break;if(ue.push(K.substring(P,ct)),Gt(ct+he),ie&&(ft(),Z))return Je();if(F&&be.length>=F)return Je(!0)}else for(Ue=P,P++;;){if((Ue=K.indexOf(A,Ue+1))===-1)return X||re.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:be.length,index:P}),Dt();if(Ue===ee-1)return Dt(K.substring(P,Ue).replace(xe,A));if(A!==G||K[Ue+1]!==G){if(A===G||Ue===0||K[Ue-1]!==G){yt!==-1&&yt<Ue+1&&(yt=K.indexOf(O,Ue+1)),ct!==-1&&ct<Ue+1&&(ct=K.indexOf(N,Ue+1));var $e=Vt(ct===-1?yt:Math.min(yt,ct));if(K.substr(Ue+1+$e,oe)===O){ue.push(K.substring(P,Ue).replace(xe,A)),K[P=Ue+1+$e+oe]!==A&&(Ue=K.indexOf(A,P)),yt=K.indexOf(O,P),ct=K.indexOf(N,P);break}var at=Vt(ct);if(K.substring(Ue+1+at,Ue+1+at+he)===N){if(ue.push(K.substring(P,Ue).replace(xe,A)),Gt(Ue+1+at+he),yt=K.indexOf(O,P),Ue=K.indexOf(A,P),ie&&(ft(),Z))return Je();if(F&&be.length>=F)return Je(!0);break}re.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:be.length,index:P}),Ue++}}else Ue++}return Dt();function Ht(St){be.push(St),ne=P}function Vt(St){var Wt=0;if(St!==-1){var Jt=K.substring(Ue+1,St);Jt&&Jt.trim()===""&&(Wt=Jt.length)}return Wt}function Dt(St){return X||(St===void 0&&(St=K.substring(P)),ue.push(St),P=ee,Ht(ue),ie&&ft()),Je()}function Gt(St){P=St,Ht(ue),ue=[],ct=K.indexOf(N,P)}function Je(St){return{data:be,errors:re,meta:{delimiter:O,linebreak:N,aborted:Z,truncated:!!St,cursor:ne+(U||0)}}}function ft(){B(Je()),be=[],re=[]}},this.abort=function(){Z=!0},this.getCharIndex=function(){return P}}function v(C){var A=C.data,O=s[A.workerId],N=!1;if(A.error)O.userError(A.error,A.file);else if(A.results&&A.results.data){var I={abort:function(){N=!0,_(A.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:b,resume:b};if(k(O.userStep)){for(var B=0;B<A.results.data.length&&(O.userStep({data:A.results.data[B],errors:A.results.errors,meta:A.results.meta},I),!N);B++);delete A.results}else k(O.userChunk)&&(O.userChunk(A.results,I,A.file),delete A.results)}A.finished&&!N&&_(A.workerId,A.results)}function _(C,A){var O=s[C];k(O.userComplete)&&O.userComplete(A),O.terminate(),delete s[C]}function b(){throw new Error("Not implemented.")}function L(C){if(typeof C!="object"||C===null)return C;var A=Array.isArray(C)?[]:{};for(var O in C)A[O]=L(C[O]);return A}function w(C,A){return function(){C.apply(A,arguments)}}function k(C){return typeof C=="function"}return o&&(n.onmessage=function(C){var A=C.data;if(c.WORKER_ID===void 0&&A&&(c.WORKER_ID=A.workerId),typeof A.input=="string")n.postMessage({workerId:c.WORKER_ID,results:c.parse(A.input,A.config),finished:!0});else if(n.File&&A.input instanceof File||A.input instanceof Object){var O=c.parse(A.input,A.config);O&&n.postMessage({workerId:c.WORKER_ID,results:O,finished:!0})}}),(p.prototype=Object.create(d.prototype)).constructor=p,(h.prototype=Object.create(d.prototype)).constructor=h,(f.prototype=Object.create(f.prototype)).constructor=f,(m.prototype=Object.create(d.prototype)).constructor=m,c})})(BSe);var Ier=BSe.exports;const Per=dw(Ier),Ner=(e,t)=>Per.parse(e,{download:!0,complete:t}),x$={loadFile:Ner},DSe={components:{PlotControls:fw},props:{metadata:{type:Object,required:!0},sourceData:{type:Object,required:!0},plotLayout:{type:Object,required:!0},supplementalData:{type:Array,required:!0},version:{type:String,required:!0}},data:function(){return{layout:{paper_bgcolor:"rgba(0,0,0,0)",plot_bgcolor:"rgba(0,0,0,0)"},loading:!1,options:{responsive:!0,scrollZoom:!0}}},computed:{title(){return this.sourceData.url.split("\\").pop().split("/").pop().split(".")[0]}}},Rer={name:"TimeseriesPlot",components:{PlotControls:fw,ElSelect:pw,ElButton:cw,ElOption:hw},mixins:[DSe],data:function(){return{dataValues:[],filterX:[],parsedData:null,time:[],traceData:null,traceNames:[],xAxisLabel:"time"}},computed:{fullMetadata(){let e=JSON.parse(JSON.stringify(this.metadata));return e["y-axes-columns"]||(e["y-axes-columns"]=[]),e["x-axis-column"]||(e["x-axis-column"]=0),e["no-header"]||(e["no-header"]=!1),e["row-major"]||(e["row-major"]=!1),e}},watch:{sourceData:function(){this.loadData(this.sourceData)}},mounted:function(){this.loadData(this.sourceData)},methods:{loadData(e){e.url?(this.loading=!0,x$.loadFile(e.url,this.dataReady)):PL.react(this.$refs.plotlyplot,this.sourceData.data,this.sourceData.layout?this.sourceData.layout:this.layout,this.options)},dataReady(e){this.fullMetadata["no-header"]&&x$.loadFile(this.supplementalData[0].url,this.headerDataReady),this.loading=!1,this.parsedData=e,this.findYaxesCols(),this.populateTime(),this.populateDataValues(),this.fullMetadata["no-header"]||(this.populateXaxisLabel(),this.populateTraceNames()),this.createPlot(this.time,this.xAxisLabel,this.dataValues,this.traceNames)},headerDataReady(e){this.traceData=e,this.populateXaxisLabel(),this.populateTraceNames(),this.loading||this.createPlot(this.time,this.xAxisLabel,this.dataValues,this.traceNames)},filterPlot(){let e=this.filterX;if(e.length===0){this.createPlot(this.time,this.xAxisLabel,this.dataValues,this.traceNames);return}let t=[];for(let i of e)t.push(this.fullMetadata["y-axes-columns"][this.traceNames.indexOf(i)]);let r=[...this.parsedData.data];this.fullMetadata["no-header"]||(r=r.slice(1));let n=[];for(let i of t){const o=r.map(s=>s[i]);n.push(o)}this.createPlot(this.time,this.xAxisLabel,n,e)},createPlot(e,t,r,n){let i=[];for(let s=0;s<r.length;s++)i.push({type:"scatter",mode:"lines",name:n[s],x:e,y:r[s]});const o={title:{text:this.title},xaxis:{title:{text:t}}};PL.react(this.$refs.plotlyplot,i,{...this.layout,...o,...this.plotLayout},this.options)},findYaxesCols(){if(this.fullMetadata["y-axes-columns"].length===0){let e=[...Array(this.parsedData.data[0].length).keys()];e.shift(),e.shift(),console.log("seeting to:",e),this.fullMetadata["y-axes-columns"]=e}},populateXaxisLabel(){this.fullMetadata["no-header"]?this.xAxisLabel=this.traceData.data[0][this.fullMetadata["x-axis-column"]]:this.xAxisLabel=this.parsedData.data[0][this.fullMetadata["x-axis-column"]]},populateTraceNames(){if(this.fullMetadata["no-header"]){window.traceNames=this.traceNames,this.traceNames.splice(0,this.traceNames.length),window.traceData=this.traceData;for(let e of this.fullMetadata["y-axes-columns"])this.traceNames.push(this.traceData.data[0][e]),console.log("pushing:",this.traceData.data[0][e]);this.$set(this.traceNames,0,this.traceNames[0])}else{this.traceNames=[];for(let e of this.fullMetadata["y-axes-columns"])this.traceNames.push(this.parsedData.data[0][e])}},populateTime(){const e=this;let t=[...this.parsedData.data];this.fullMetadata["no-header"]||(t=t.slice(1)),this.time=t.map(function(r){return r[e.fullMetadata["x-axis-column"]]})},populateDataValues(){let e=[...this.parsedData.data];this.fullMetadata["no-header"]||(e=e.slice(1));let t=[];for(let r of this.fullMetadata["y-axes-columns"]){const n=e.map(i=>i[r]);t.push(n)}this.dataValues=t}}},Ber={class:"container"},Der={ref:"plotlyplot",class:"vue-plotly"};function Fer(e,t,r,n,i,o){const s=hw,l=pw,c=cw,u=fw;return a.openBlock(),a.createElementBlock("div",Ber,[a.createElementVNode("div",Der,null,512),a.createElementVNode("div",{class:a.normalizeClass(["chooser-container",{inactive:e.loading}])},[a.createElementVNode("span",null,[a.createVNode(l,{modelValue:e.filterX,"onUpdate:modelValue":t[0]||(t[0]=d=>e.filterX=d),class:"channel-select",size:"large",multiple:"",filterable:"","collapse-tags":"","default-first-option":"",teleported:!1,placeholder:"select"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.traceNames,d=>(a.openBlock(),a.createBlock(s,{key:d,label:d,value:d},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),a.createElementVNode("span",null,[a.createVNode(c,{class:"view-heatmap-button",onClick:o.filterPlot},{default:a.withCtx(()=>[a.createTextVNode("Filter plot")]),_:1},8,["onClick"])])],2),a.createVNode(u,{"parent-element":{element:e.$refs.plotlyplot},"controls-enabled":!e.loading},null,8,["parent-element","controls-enabled"])])}const zer=wV(Rer,[["render",Fer],["__scopeId","data-v-39f6dfd4"]]),jer={name:"HeatmapPlot",components:{PlotControls:fw,ElSelect:pw,ElOption:hw,ElCollapse:cme,ElCollapseItem:ume,ElButton:cw,ElPopover:VW},mixins:[DSe],data:function(){return{columnHeaders:[],rowHeaders:[],dataValues:[],filterX:[],filterY:[],parsedData:null,loading:!1,logScale:!1,logDataValues:[]}},computed:{fullMetadata(){let e=JSON.parse(JSON.stringify(this.metadata));return e.columnHeaderSize||(e.columnHeaderSize=1),e.columnHeaderIndex||(e.columnHeaderIndex=0),e.rowHeaderSize||(e.rowHeaderSize=1),e.rowHeaderIndex||(e.rowHeaderIndex=0),e},logScaleEnabled(){return!!JSON.parse(JSON.stringify(this.metadata)).logScale},plotTitle(){return this.logScale?this.title+" (Log scale)":this.title}},watch:{sourceData:function(){this.loadData(this.sourceData)}},mounted:function(){this.loadData(this.sourceData)},methods:{loadData(e){e.url?(this.loading=!0,x$.loadFile(e.url,this.dataReady)):PL.react(this.$refs.plotlyplot,this.sourceData.data,this.sourceData.layout?this.sourceData.layout:this.layout,this.options)},dataReady(e){this.loading=!1,this.parsedData=e,this.populateColumnHeaders(),this.populateRowHeaders(),this.populateDataValues(),this.logScaleEnabled?(this.logValues(),this.logScale=!0,this.createPlot(this.columnHeaders,this.rowHeaders,this.logDataValues,"heatmap")):this.createPlot(this.columnHeaders,this.rowHeaders,this.dataValues,"heatmap")},logValues(){this.dataValues.forEach((e,t)=>{this.logDataValues.push([]),e.forEach(r=>{this.logDataValues[t].push(Math.log10(r))})})},logToggle(){this.logScale?(this.logScale=!1,this.createPlot(this.columnHeaders,this.rowHeaders,this.dataValues,"heatmap")):(this.logScale=!0,this.createPlot(this.columnHeaders,this.rowHeaders,this.logDataValues,"heatmap"))},filterPlot(){let e=this.filterX,t=this.filterY;if(e.length===0&&t.length===0){this.createPlot(this.columnHeaders,this.rowHeaders,this.dataValues,"heatmap");return}e.length===0&&(e=this.columnHeaders),t.length===0&&(t=this.rowHeaders);let r=[];for(let o of e)r.push(this.columnHeaders.indexOf(o));let n=[];for(let o of t)n.push(this.rowHeaders.indexOf(o));let i=[];for(let o of r){const s=this.dataValues.map(c=>c[o]);let l=[];for(let c of n)l.push(s[c]);i.push(l)}i=i[0].map((o,s)=>i.map(l=>l[s])),this.createPlot(e,t,i,"heatmap")},createPlot(e,t,r,n){var i=[{x:e,y:t,z:r,type:n}];const o={title:{text:this.plotTitle}};PL.react(this.$refs.plotlyplot,i,{...this.layout,...o,...this.plotLayout},this.options)},populateColumnHeaders(){let e=[...[...this.parsedData.data][this.fullMetadata.columnHeaderIndex]];this.columnHeaders=e.slice(this.fullMetadata.rowHeaderSize)},populateRowHeaders(){const e=[...[...this.parsedData.data].map(t=>t[this.fullMetadata.rowHeaderIndex])];this.rowHeaders=e.slice(this.fullMetadata.columnHeaderSize)},populateDataValues(){const e=this,t=[...this.parsedData.data].slice(this.fullMetadata.columnHeaderSize);this.dataValues=t.map(function(r){return r.slice(e.fullMetadata.rowHeaderSize)})}}},Uer={class:"container"},Ger={ref:"plotlyplot",class:"vue-plotly"},qer={key:0};function Zer(e,t,r,n,i,o){const s=hw,l=pw,c=cw,u=fw;return a.openBlock(),a.createElementBlock("div",Uer,[a.createElementVNode("div",Ger,null,512),a.createElementVNode("div",{class:a.normalizeClass(["chooser-container",{inactive:e.loading}])},[a.createElementVNode("span",null,[a.createVNode(l,{modelValue:e.filterX,"onUpdate:modelValue":t[0]||(t[0]=d=>e.filterX=d),class:"channel-select",multiple:"",filterable:"","collapse-tags":"","default-first-option":"",placeholder:"select"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.columnHeaders,d=>(a.openBlock(),a.createBlock(s,{key:d,label:d,value:d},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),a.createElementVNode("span",null,[a.createVNode(l,{modelValue:e.filterY,"onUpdate:modelValue":t[1]||(t[1]=d=>e.filterY=d),class:"channel-select",multiple:"",filterable:"","collapse-tags":"","default-first-option":"",placeholder:"select"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.rowHeaders,d=>(a.openBlock(),a.createBlock(s,{key:d,label:d,value:d},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),a.createElementVNode("span",null,[a.createVNode(c,{class:"view-heatmap-button",onClick:o.filterPlot},{default:a.withCtx(()=>[a.createTextVNode("Filter plot")]),_:1},8,["onClick"])]),o.logScaleEnabled?(a.openBlock(),a.createElementBlock("span",qer,[a.createVNode(c,{class:"view-heatmap-button",onClick:o.logToggle},{default:a.withCtx(()=>[a.createTextVNode("Toggle log")]),_:1},8,["onClick"])])):a.createCommentVNode("",!0)],2),a.createVNode(u,{"parent-element":{element:e.$refs.plotlyplot},"controls-enabled":!e.loading},null,8,["parent-element","controls-enabled"])])}const Wer=wV(jer,[["render",Zer],["__scopeId","data-v-b959c7dc"]]),Ker=["1.2.0","1.1.0"],Xer={name:"PlotVuer",components:{TimeseriesPlot:zer,HeatmapPlot:Wer},props:{dataSource:{type:Object,default:()=>{}},metadata:{type:Object,required:!0,validator:function(e){return Ker.includes(e.version)&&e.type==="plot"}},plotLayout:{type:Object,default:()=>({height:667})},supplementalData:{type:Array,default:()=>[]},helpMode:{type:Boolean,default:!1}},computed:{plotType:function(){return this.metadata.attrs.style+"-plot"},layout:function(){let e=this.metadata?this.metadata.attrs?this.metadata.attrs.layout?this.metadata.attrs.layout:this.plotLayout:this.plotLayout:this.plotLayout;return e.height=e.height?e.height:667,e}}},Jer={class:"plotvuer_parent"};function Yer(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("div",Jer,[o.plotType!="-plot"?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.plotType),{key:0,sourceData:r.dataSource,plotLayout:o.layout,version:r.metadata.version,metadata:r.metadata.attrs,supplementalData:r.supplementalData},null,8,["sourceData","plotLayout","version","metadata","supplementalData"])):a.createCommentVNode("",!0)])}const FSe=wV(Xer,[["render",Yer],["__scopeId","data-v-a5e06718"]]),$er={name:"Plot",mixins:[ay],components:{PlotVuer:FSe}};function etr(e,t,r,n,i,o){const s=a.resolveComponent("PlotVuer");return a.openBlock(),a.createBlock(s,{"data-source":e.entry.resource.dataSource,metadata:e.entry.resource.metadata,"supplemental-data":e.entry.resource.supplementalData,style:{overflow:"hidden"}},null,8,["data-source","metadata","supplemental-data"])}const ttr=Gl($er,[["render",etr]]),_p=(e,t,{checkForDefaultPrevented:r=!0}={})=>n=>{const i=e==null?void 0:e(n);if(r===!1||!i)return t==null?void 0:t(n)};var rtr=Object.defineProperty,ntr=Object.defineProperties,itr=Object.getOwnPropertyDescriptors,zSe=Object.getOwnPropertySymbols,otr=Object.prototype.hasOwnProperty,atr=Object.prototype.propertyIsEnumerable,jSe=(e,t,r)=>t in e?rtr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,str=(e,t)=>{for(var r in t||(t={}))otr.call(t,r)&&jSe(e,r,t[r]);if(zSe)for(var r of zSe(t))atr.call(t,r)&&jSe(e,r,t[r]);return e},ltr=(e,t)=>ntr(e,itr(t));function USe(e,t){var r;const n=a.shallowRef();return a.watchEffect(()=>{n.value=e()},ltr(str({},t),{flush:(r=t==null?void 0:t.flush)!=null?r:"sync"})),a.readonly(n)}var GSe;const Bs=typeof window<"u",ctr=e=>typeof e=="string",qSe=()=>{},utr=Bs&&((GSe=window==null?void 0:window.navigator)==null?void 0:GSe.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ZSe(e){return typeof e=="function"?e():a.unref(e)}function dtr(e){return e}function bN(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}function ptr(e,t=!0){a.getCurrentInstance()?a.onMounted(e):t?e():a.nextTick(e)}function wp(e){var t;const r=ZSe(e);return(t=r==null?void 0:r.$el)!=null?t:r}const FL=Bs?window:void 0,htr=Bs?window.document:void 0;function H0(...e){let t,r,n,i;if(ctr(e[0])||Array.isArray(e[0])?([r,n,i]=e,t=FL):[t,r,n,i]=e,!t)return qSe;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const o=[],s=()=>{o.forEach(d=>d()),o.length=0},l=(d,p,h,f)=>(d.addEventListener(p,h,f),()=>d.removeEventListener(p,h,f)),c=a.watch(()=>[wp(t),ZSe(i)],([d,p])=>{s(),d&&o.push(...r.flatMap(h=>n.map(f=>l(d,h,f,p))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return bN(u),u}let WSe=!1;function ftr(e,t,r={}){const{window:n=FL,ignore:i=[],capture:o=!0,detectIframe:s=!1}=r;if(!n)return;utr&&!WSe&&(WSe=!0,Array.from(n.document.body.children).forEach(d=>d.addEventListener("click",qSe)));let l=!0;const c=d=>i.some(p=>{if(typeof p=="string")return Array.from(n.document.querySelectorAll(p)).some(h=>h===d.target||d.composedPath().includes(h));{const h=wp(p);return h&&(d.target===h||d.composedPath().includes(h))}}),u=[H0(n,"click",d=>{const p=wp(e);if(!(!p||p===d.target||d.composedPath().includes(p))){if(d.detail===0&&(l=!c(d)),!l){l=!0;return}t(d)}},{passive:!0,capture:o}),H0(n,"pointerdown",d=>{const p=wp(e);p&&(l=!d.composedPath().includes(p)&&!c(d))},{passive:!0}),s&&H0(n,"blur",d=>{var p;const h=wp(e);((p=n.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(h!=null&&h.contains(n.document.activeElement))&&t(d)})].filter(Boolean);return()=>u.forEach(d=>d())}function KSe(e,t=!1){const r=a.ref(),n=()=>r.value=!!e();return n(),ptr(n,t),r}const XSe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},JSe="__vueuse_ssr_handlers__";XSe[JSe]=XSe[JSe]||{};function mtr({document:e=htr}={}){if(!e)return a.ref("visible");const t=a.ref(e.visibilityState);return H0(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var YSe=Object.getOwnPropertySymbols,gtr=Object.prototype.hasOwnProperty,ytr=Object.prototype.propertyIsEnumerable,Ttr=(e,t)=>{var r={};for(var n in e)gtr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&YSe)for(var n of YSe(e))t.indexOf(n)<0&&ytr.call(e,n)&&(r[n]=e[n]);return r};function Lp(e,t,r={}){const n=r,{window:i=FL}=n,o=Ttr(n,["window"]);let s;const l=KSe(()=>i&&"ResizeObserver"in i),c=()=>{s&&(s.disconnect(),s=void 0)},u=a.watch(()=>wp(e),p=>{c(),l.value&&i&&p&&(s=new ResizeObserver(t),s.observe(p,o))},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return bN(d),{isSupported:l,stop:d}}var $Se=Object.getOwnPropertySymbols,vtr=Object.prototype.hasOwnProperty,Qtr=Object.prototype.propertyIsEnumerable,btr=(e,t)=>{var r={};for(var n in e)vtr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&$Se)for(var n of $Se(e))t.indexOf(n)<0&&Qtr.call(e,n)&&(r[n]=e[n]);return r};function xtr(e,t,r={}){const n=r,{window:i=FL}=n,o=btr(n,["window"]);let s;const l=KSe(()=>i&&"MutationObserver"in i),c=()=>{s&&(s.disconnect(),s=void 0)},u=a.watch(()=>wp(e),p=>{c(),l.value&&i&&p&&(s=new MutationObserver(t),s.observe(p,o))},{immediate:!0}),d=()=>{c(),u()};return bN(d),{isSupported:l,stop:d}}var eke;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(eke||(eke={}));var _tr=Object.defineProperty,tke=Object.getOwnPropertySymbols,wtr=Object.prototype.hasOwnProperty,Ltr=Object.prototype.propertyIsEnumerable,rke=(e,t,r)=>t in e?_tr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Str=(e,t)=>{for(var r in t||(t={}))wtr.call(t,r)&&rke(e,r,t[r]);if(tke)for(var r of tke(t))Ltr.call(t,r)&&rke(e,r,t[r]);return e};Str({linear:dtr},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function ktr({window:e=FL}={}){if(!e)return a.ref(!1);const t=a.ref(e.document.hasFocus());return H0(e,"blur",()=>{t.value=!1}),H0(e,"focus",()=>{t.value=!0}),t}const Mtr=()=>Bs&&/firefox/i.test(window.navigator.userAgent),_$=e=>{let t,r;return e.type==="touchend"?(r=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(r=e.touches[0].clientY,t=e.touches[0].clientX):(r=e.clientY,t=e.clientX),{clientX:t,clientY:r}};/**
|
1489
|
+
`);var P=0,Z=!1;this.parse=function(K,U,X){if(typeof K!="string")throw new Error("Input must be a string");var ee=K.length,oe=O.length,he=N.length,me=I.length,ie=k(B),be=[],re=[],ue=[],ne=P=0;if(!K)return Je();if(C.header&&!U){var ye=K.split(N)[0].split(O),_e=[],Ie={},qe=!1;for(var Ge in ye){var et=ye[Ge];k(C.transformHeader)&&(et=C.transformHeader(et,Ge));var Ve=et,Ne=Ie[et]||0;for(0<Ne&&(qe=!0,Ve=et+"_"+Ne),Ie[et]=Ne+1;_e.includes(Ve);)Ve=Ve+"_"+Ne;_e.push(Ve)}if(qe){var it=K.split(N);it[0]=_e.join(O),K=it.join(N)}}if(j||j!==!1&&K.indexOf(A)===-1){for(var Be=K.split(N),pt=0;pt<Be.length;pt++){if(ue=Be[pt],P+=ue.length,pt!==Be.length-1)P+=N.length;else if(X)return Je();if(!I||ue.substring(0,me)!==I){if(ie){if(be=[],Ht(ue.split(O)),ft(),Z)return Je()}else Ht(ue.split(O));if(F&&F<=pt)return be=be.slice(0,F),Je(!0)}}return Je()}for(var yt=K.indexOf(O,P),ct=K.indexOf(N,P),xe=new RegExp(T(G)+T(A),"g"),Ue=K.indexOf(A,P);;)if(K[P]!==A)if(I&&ue.length===0&&K.substring(P,P+me)===I){if(ct===-1)return Je();P=ct+he,ct=K.indexOf(N,P),yt=K.indexOf(O,P)}else if(yt!==-1&&(yt<ct||ct===-1))ue.push(K.substring(P,yt)),P=yt+oe,yt=K.indexOf(O,P);else{if(ct===-1)break;if(ue.push(K.substring(P,ct)),Gt(ct+he),ie&&(ft(),Z))return Je();if(F&&be.length>=F)return Je(!0)}else for(Ue=P,P++;;){if((Ue=K.indexOf(A,Ue+1))===-1)return X||re.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:be.length,index:P}),Dt();if(Ue===ee-1)return Dt(K.substring(P,Ue).replace(xe,A));if(A!==G||K[Ue+1]!==G){if(A===G||Ue===0||K[Ue-1]!==G){yt!==-1&&yt<Ue+1&&(yt=K.indexOf(O,Ue+1)),ct!==-1&&ct<Ue+1&&(ct=K.indexOf(N,Ue+1));var $e=Vt(ct===-1?yt:Math.min(yt,ct));if(K.substr(Ue+1+$e,oe)===O){ue.push(K.substring(P,Ue).replace(xe,A)),K[P=Ue+1+$e+oe]!==A&&(Ue=K.indexOf(A,P)),yt=K.indexOf(O,P),ct=K.indexOf(N,P);break}var at=Vt(ct);if(K.substring(Ue+1+at,Ue+1+at+he)===N){if(ue.push(K.substring(P,Ue).replace(xe,A)),Gt(Ue+1+at+he),yt=K.indexOf(O,P),Ue=K.indexOf(A,P),ie&&(ft(),Z))return Je();if(F&&be.length>=F)return Je(!0);break}re.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:be.length,index:P}),Ue++}}else Ue++}return Dt();function Ht(St){be.push(St),ne=P}function Vt(St){var Wt=0;if(St!==-1){var Jt=K.substring(Ue+1,St);Jt&&Jt.trim()===""&&(Wt=Jt.length)}return Wt}function Dt(St){return X||(St===void 0&&(St=K.substring(P)),ue.push(St),P=ee,Ht(ue),ie&&ft()),Je()}function Gt(St){P=St,Ht(ue),ue=[],ct=K.indexOf(N,P)}function Je(St){return{data:be,errors:re,meta:{delimiter:O,linebreak:N,aborted:Z,truncated:!!St,cursor:ne+(U||0)}}}function ft(){B(Je()),be=[],re=[]}},this.abort=function(){Z=!0},this.getCharIndex=function(){return P}}function v(C){var A=C.data,O=s[A.workerId],N=!1;if(A.error)O.userError(A.error,A.file);else if(A.results&&A.results.data){var I={abort:function(){N=!0,_(A.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:b,resume:b};if(k(O.userStep)){for(var B=0;B<A.results.data.length&&(O.userStep({data:A.results.data[B],errors:A.results.errors,meta:A.results.meta},I),!N);B++);delete A.results}else k(O.userChunk)&&(O.userChunk(A.results,I,A.file),delete A.results)}A.finished&&!N&&_(A.workerId,A.results)}function _(C,A){var O=s[C];k(O.userComplete)&&O.userComplete(A),O.terminate(),delete s[C]}function b(){throw new Error("Not implemented.")}function L(C){if(typeof C!="object"||C===null)return C;var A=Array.isArray(C)?[]:{};for(var O in C)A[O]=L(C[O]);return A}function w(C,A){return function(){C.apply(A,arguments)}}function k(C){return typeof C=="function"}return o&&(n.onmessage=function(C){var A=C.data;if(c.WORKER_ID===void 0&&A&&(c.WORKER_ID=A.workerId),typeof A.input=="string")n.postMessage({workerId:c.WORKER_ID,results:c.parse(A.input,A.config),finished:!0});else if(n.File&&A.input instanceof File||A.input instanceof Object){var O=c.parse(A.input,A.config);O&&n.postMessage({workerId:c.WORKER_ID,results:O,finished:!0})}}),(p.prototype=Object.create(d.prototype)).constructor=p,(h.prototype=Object.create(d.prototype)).constructor=h,(f.prototype=Object.create(f.prototype)).constructor=f,(m.prototype=Object.create(d.prototype)).constructor=m,c})})(BSe);var Ier=BSe.exports;const Per=dw(Ier),Ner=(e,t)=>Per.parse(e,{download:!0,complete:t}),x$={loadFile:Ner},DSe={components:{PlotControls:fw},props:{metadata:{type:Object,required:!0},sourceData:{type:Object,required:!0},plotLayout:{type:Object,required:!0},supplementalData:{type:Array,required:!0},version:{type:String,required:!0}},data:function(){return{layout:{paper_bgcolor:"rgba(0,0,0,0)",plot_bgcolor:"rgba(0,0,0,0)",autosize:!0,margin:{t:25,l:55,r:55,b:90,pad:4}},loading:!1,options:{responsive:!0,scrollZoom:!0}}},computed:{title(){return this.sourceData.url.split("\\").pop().split("/").pop().split(".")[0]}}},Rer={name:"TimeseriesPlot",components:{PlotControls:fw,ElSelect:pw,ElButton:cw,ElOption:hw},mixins:[DSe],data:function(){return{dataValues:[],filterX:[],parsedData:null,time:[],traceData:null,traceNames:[],xAxisLabel:"time"}},computed:{fullMetadata(){let e=JSON.parse(JSON.stringify(this.metadata));return e["y-axes-columns"]||(e["y-axes-columns"]=[]),e["x-axis-column"]||(e["x-axis-column"]=0),e["no-header"]||(e["no-header"]=!1),e["row-major"]||(e["row-major"]=!1),e}},watch:{sourceData:function(){this.loadData(this.sourceData)}},mounted:function(){this.loadData(this.sourceData)},methods:{loadData(e){e.url?(this.loading=!0,x$.loadFile(e.url,this.dataReady)):PL.react(this.$refs.plotlyplot,this.sourceData.data,this.sourceData.layout?this.sourceData.layout:this.layout,this.options)},dataReady(e){this.fullMetadata["no-header"]&&x$.loadFile(this.supplementalData[0].url,this.headerDataReady),this.loading=!1,this.parsedData=e,this.findYaxesCols(),this.populateTime(),this.populateDataValues(),this.fullMetadata["no-header"]||(this.populateXaxisLabel(),this.populateTraceNames()),this.createPlot(this.time,this.xAxisLabel,this.dataValues,this.traceNames)},headerDataReady(e){this.traceData=e,this.populateXaxisLabel(),this.populateTraceNames(),this.loading||this.createPlot(this.time,this.xAxisLabel,this.dataValues,this.traceNames)},filterPlot(){let e=this.filterX;if(e.length===0){this.createPlot(this.time,this.xAxisLabel,this.dataValues,this.traceNames);return}let t=[];for(let i of e)t.push(this.fullMetadata["y-axes-columns"][this.traceNames.indexOf(i)]);let r=[...this.parsedData.data];this.fullMetadata["no-header"]||(r=r.slice(1));let n=[];for(let i of t){const o=r.map(s=>s[i]);n.push(o)}this.createPlot(this.time,this.xAxisLabel,n,e)},createPlot(e,t,r,n){let i=[];for(let s=0;s<r.length;s++)i.push({type:"scatter",mode:"lines",name:n[s],x:e,y:r[s]});const o={title:{text:this.title},xaxis:{title:{text:t}}};PL.react(this.$refs.plotlyplot,i,{...this.layout,...o},this.options)},findYaxesCols(){if(this.fullMetadata["y-axes-columns"].length===0){let e=[...Array(this.parsedData.data[0].length).keys()];e.shift(),e.shift(),console.log("seeting to:",e),this.fullMetadata["y-axes-columns"]=e}},populateXaxisLabel(){this.fullMetadata["no-header"]?this.xAxisLabel=this.traceData.data[0][this.fullMetadata["x-axis-column"]]:this.xAxisLabel=this.parsedData.data[0][this.fullMetadata["x-axis-column"]]},populateTraceNames(){if(this.fullMetadata["no-header"]){window.traceNames=this.traceNames,this.traceNames.splice(0,this.traceNames.length),window.traceData=this.traceData;for(let e of this.fullMetadata["y-axes-columns"])this.traceNames.push(this.traceData.data[0][e]),console.log("pushing:",this.traceData.data[0][e]);this.$set(this.traceNames,0,this.traceNames[0])}else{this.traceNames=[];for(let e of this.fullMetadata["y-axes-columns"])this.traceNames.push(this.parsedData.data[0][e])}},populateTime(){const e=this;let t=[...this.parsedData.data];this.fullMetadata["no-header"]||(t=t.slice(1)),this.time=t.map(function(r){return r[e.fullMetadata["x-axis-column"]]})},populateDataValues(){let e=[...this.parsedData.data];this.fullMetadata["no-header"]||(e=e.slice(1));let t=[];for(let r of this.fullMetadata["y-axes-columns"]){const n=e.map(i=>i[r]);t.push(n)}this.dataValues=t}}},Ber={class:"container"},Der={ref:"plotlyplot",class:"vue-plotly"};function Fer(e,t,r,n,i,o){const s=hw,l=pw,c=cw,u=fw;return a.openBlock(),a.createElementBlock("div",Ber,[a.createElementVNode("div",Der,null,512),a.createElementVNode("div",{class:a.normalizeClass(["chooser-container",{inactive:e.loading}])},[a.createElementVNode("span",null,[a.createVNode(l,{ref:"selectBox",modelValue:e.filterX,"onUpdate:modelValue":t[0]||(t[0]=d=>e.filterX=d),class:"channel-select",size:"large",multiple:"",filterable:"","collapse-tags":"","default-first-option":"",teleported:!1,placeholder:"select"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.traceNames,d=>(a.openBlock(),a.createBlock(s,{key:d,label:d,value:d},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),a.createElementVNode("span",null,[a.createVNode(c,{class:"view-heatmap-button",onClick:o.filterPlot},{default:a.withCtx(()=>[a.createTextVNode("Filter plot")]),_:1},8,["onClick"])])],2),a.createVNode(u,{ref:"controls","parent-element":{element:e.$refs.plotlyplot},"controls-enabled":!e.loading},null,8,["parent-element","controls-enabled"])])}const zer=wV(Rer,[["render",Fer],["__scopeId","data-v-61d3eaa9"]]),jer={name:"HeatmapPlot",components:{PlotControls:fw,ElSelect:pw,ElOption:hw,ElCollapse:cme,ElCollapseItem:ume,ElButton:cw,ElPopover:VW},mixins:[DSe],data:function(){return{columnHeaders:[],rowHeaders:[],dataValues:[],filterX:[],filterY:[],parsedData:null,loading:!1,logScale:!1,logDataValues:[]}},computed:{fullMetadata(){let e=JSON.parse(JSON.stringify(this.metadata));return e.columnHeaderSize||(e.columnHeaderSize=1),e.columnHeaderIndex||(e.columnHeaderIndex=0),e.rowHeaderSize||(e.rowHeaderSize=1),e.rowHeaderIndex||(e.rowHeaderIndex=0),e},logScaleEnabled(){return!!JSON.parse(JSON.stringify(this.metadata)).logScale},plotTitle(){return this.logScale?this.title+" (Log scale)":this.title}},watch:{sourceData:function(){this.loadData(this.sourceData)}},mounted:function(){this.loadData(this.sourceData)},methods:{loadData(e){e.url?(this.loading=!0,x$.loadFile(e.url,this.dataReady)):PL.react(this.$refs.plotlyplot,this.sourceData.data,this.sourceData.layout?this.sourceData.layout:this.layout,this.options)},dataReady(e){this.loading=!1,this.parsedData=e,this.populateColumnHeaders(),this.populateRowHeaders(),this.populateDataValues(),this.logScaleEnabled?(this.logValues(),this.logScale=!0,this.createPlot(this.columnHeaders,this.rowHeaders,this.logDataValues,"heatmap")):this.createPlot(this.columnHeaders,this.rowHeaders,this.dataValues,"heatmap")},logValues(){this.dataValues.forEach((e,t)=>{this.logDataValues.push([]),e.forEach(r=>{this.logDataValues[t].push(Math.log10(r))})})},logToggle(){this.logScale?(this.logScale=!1,this.createPlot(this.columnHeaders,this.rowHeaders,this.dataValues,"heatmap")):(this.logScale=!0,this.createPlot(this.columnHeaders,this.rowHeaders,this.logDataValues,"heatmap"))},filterPlot(){let e=this.filterX,t=this.filterY;if(e.length===0&&t.length===0){this.createPlot(this.columnHeaders,this.rowHeaders,this.dataValues,"heatmap");return}e.length===0&&(e=this.columnHeaders),t.length===0&&(t=this.rowHeaders);let r=[];for(let o of e)r.push(this.columnHeaders.indexOf(o));let n=[];for(let o of t)n.push(this.rowHeaders.indexOf(o));let i=[];for(let o of r){const s=this.dataValues.map(c=>c[o]);let l=[];for(let c of n)l.push(s[c]);i.push(l)}i=i[0].map((o,s)=>i.map(l=>l[s])),this.createPlot(e,t,i,"heatmap")},createPlot(e,t,r,n){var i=[{x:e,y:t,z:r,type:n}];const o={title:{text:this.plotTitle}};PL.react(this.$refs.plotlyplot,i,{...this.layout,...o,...this.plotLayout},this.options)},populateColumnHeaders(){let e=[...[...this.parsedData.data][this.fullMetadata.columnHeaderIndex]];this.columnHeaders=e.slice(this.fullMetadata.rowHeaderSize)},populateRowHeaders(){const e=[...[...this.parsedData.data].map(t=>t[this.fullMetadata.rowHeaderIndex])];this.rowHeaders=e.slice(this.fullMetadata.columnHeaderSize)},populateDataValues(){const e=this,t=[...this.parsedData.data].slice(this.fullMetadata.columnHeaderSize);this.dataValues=t.map(function(r){return r.slice(e.fullMetadata.rowHeaderSize)})}}},Uer={class:"container"},Ger={ref:"plotlyplot",class:"vue-plotly"},qer={key:0};function Zer(e,t,r,n,i,o){const s=hw,l=pw,c=cw,u=fw;return a.openBlock(),a.createElementBlock("div",Uer,[a.createElementVNode("div",Ger,null,512),a.createElementVNode("div",{class:a.normalizeClass(["chooser-container",{inactive:e.loading}])},[a.createElementVNode("span",null,[a.createVNode(l,{modelValue:e.filterX,"onUpdate:modelValue":t[0]||(t[0]=d=>e.filterX=d),class:"channel-select",multiple:"",filterable:"","collapse-tags":"","default-first-option":"",placeholder:"select"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.columnHeaders,d=>(a.openBlock(),a.createBlock(s,{key:d,label:d,value:d},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),a.createElementVNode("span",null,[a.createVNode(l,{modelValue:e.filterY,"onUpdate:modelValue":t[1]||(t[1]=d=>e.filterY=d),class:"channel-select",multiple:"",filterable:"","collapse-tags":"","default-first-option":"",placeholder:"select"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.rowHeaders,d=>(a.openBlock(),a.createBlock(s,{key:d,label:d,value:d},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),a.createElementVNode("span",null,[a.createVNode(c,{class:"view-heatmap-button",onClick:o.filterPlot},{default:a.withCtx(()=>[a.createTextVNode("Filter plot")]),_:1},8,["onClick"])]),o.logScaleEnabled?(a.openBlock(),a.createElementBlock("span",qer,[a.createVNode(c,{class:"view-heatmap-button",onClick:o.logToggle},{default:a.withCtx(()=>[a.createTextVNode("Toggle log")]),_:1},8,["onClick"])])):a.createCommentVNode("",!0)],2),a.createVNode(u,{"parent-element":{element:e.$refs.plotlyplot},"controls-enabled":!e.loading},null,8,["parent-element","controls-enabled"])])}const Wer=wV(jer,[["render",Zer],["__scopeId","data-v-b959c7dc"]]),Ker=["1.2.0","1.1.0"],Xer={name:"PlotVuer",components:{TimeseriesPlot:zer,HeatmapPlot:Wer},props:{dataSource:{type:Object,default:()=>{}},metadata:{type:Object,required:!0,validator:function(e){return Ker.includes(e.version)&&e.type==="plot"}},plotLayout:{type:Object,default:()=>({paper_bgcolor:"rgba(0,0,0,0)",plot_bgcolor:"rgba(0,0,0,0)",autosize:!0,margin:{t:25,l:55,r:55,b:90,pad:4},loading:!1,options:{responsive:!0,scrollZoom:!0}})},supplementalData:{type:Array,default:()=>[]},helpMode:{type:Boolean,default:!1}},computed:{plotType:function(){return this.metadata.attrs.style+"-plot"},layout:function(){return this.metadata?this.metadata.attrs?this.metadata.attrs.layout?this.metadata.attrs.layout:this.plotLayout:this.plotLayout:this.plotLayout}}},Jer={class:"plotvuer_parent"};function Yer(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("div",Jer,[o.plotType!="-plot"?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.plotType),{key:0,sourceData:r.dataSource,plotLayout:o.layout,version:r.metadata.version,metadata:r.metadata.attrs,supplementalData:r.supplementalData},null,8,["sourceData","plotLayout","version","metadata","supplementalData"])):a.createCommentVNode("",!0)])}const FSe=wV(Xer,[["render",Yer],["__scopeId","data-v-487f399b"]]),$er={name:"Plot",mixins:[ay],components:{PlotVuer:FSe}};function etr(e,t,r,n,i,o){const s=a.resolveComponent("PlotVuer");return a.openBlock(),a.createBlock(s,{"data-source":e.entry.resource.dataSource,metadata:e.entry.resource.metadata,"supplemental-data":e.entry.resource.supplementalData,style:{overflow:"hidden"}},null,8,["data-source","metadata","supplemental-data"])}const ttr=Gl($er,[["render",etr]]),_p=(e,t,{checkForDefaultPrevented:r=!0}={})=>n=>{const i=e==null?void 0:e(n);if(r===!1||!i)return t==null?void 0:t(n)};var rtr=Object.defineProperty,ntr=Object.defineProperties,itr=Object.getOwnPropertyDescriptors,zSe=Object.getOwnPropertySymbols,otr=Object.prototype.hasOwnProperty,atr=Object.prototype.propertyIsEnumerable,jSe=(e,t,r)=>t in e?rtr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,str=(e,t)=>{for(var r in t||(t={}))otr.call(t,r)&&jSe(e,r,t[r]);if(zSe)for(var r of zSe(t))atr.call(t,r)&&jSe(e,r,t[r]);return e},ltr=(e,t)=>ntr(e,itr(t));function USe(e,t){var r;const n=a.shallowRef();return a.watchEffect(()=>{n.value=e()},ltr(str({},t),{flush:(r=t==null?void 0:t.flush)!=null?r:"sync"})),a.readonly(n)}var GSe;const Bs=typeof window<"u",ctr=e=>typeof e=="string",qSe=()=>{},utr=Bs&&((GSe=window==null?void 0:window.navigator)==null?void 0:GSe.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ZSe(e){return typeof e=="function"?e():a.unref(e)}function dtr(e){return e}function bN(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}function ptr(e,t=!0){a.getCurrentInstance()?a.onMounted(e):t?e():a.nextTick(e)}function wp(e){var t;const r=ZSe(e);return(t=r==null?void 0:r.$el)!=null?t:r}const FL=Bs?window:void 0,htr=Bs?window.document:void 0;function H0(...e){let t,r,n,i;if(ctr(e[0])||Array.isArray(e[0])?([r,n,i]=e,t=FL):[t,r,n,i]=e,!t)return qSe;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const o=[],s=()=>{o.forEach(d=>d()),o.length=0},l=(d,p,h,f)=>(d.addEventListener(p,h,f),()=>d.removeEventListener(p,h,f)),c=a.watch(()=>[wp(t),ZSe(i)],([d,p])=>{s(),d&&o.push(...r.flatMap(h=>n.map(f=>l(d,h,f,p))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return bN(u),u}let WSe=!1;function ftr(e,t,r={}){const{window:n=FL,ignore:i=[],capture:o=!0,detectIframe:s=!1}=r;if(!n)return;utr&&!WSe&&(WSe=!0,Array.from(n.document.body.children).forEach(d=>d.addEventListener("click",qSe)));let l=!0;const c=d=>i.some(p=>{if(typeof p=="string")return Array.from(n.document.querySelectorAll(p)).some(h=>h===d.target||d.composedPath().includes(h));{const h=wp(p);return h&&(d.target===h||d.composedPath().includes(h))}}),u=[H0(n,"click",d=>{const p=wp(e);if(!(!p||p===d.target||d.composedPath().includes(p))){if(d.detail===0&&(l=!c(d)),!l){l=!0;return}t(d)}},{passive:!0,capture:o}),H0(n,"pointerdown",d=>{const p=wp(e);p&&(l=!d.composedPath().includes(p)&&!c(d))},{passive:!0}),s&&H0(n,"blur",d=>{var p;const h=wp(e);((p=n.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(h!=null&&h.contains(n.document.activeElement))&&t(d)})].filter(Boolean);return()=>u.forEach(d=>d())}function KSe(e,t=!1){const r=a.ref(),n=()=>r.value=!!e();return n(),ptr(n,t),r}const XSe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},JSe="__vueuse_ssr_handlers__";XSe[JSe]=XSe[JSe]||{};function mtr({document:e=htr}={}){if(!e)return a.ref("visible");const t=a.ref(e.visibilityState);return H0(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var YSe=Object.getOwnPropertySymbols,gtr=Object.prototype.hasOwnProperty,ytr=Object.prototype.propertyIsEnumerable,Ttr=(e,t)=>{var r={};for(var n in e)gtr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&YSe)for(var n of YSe(e))t.indexOf(n)<0&&ytr.call(e,n)&&(r[n]=e[n]);return r};function Lp(e,t,r={}){const n=r,{window:i=FL}=n,o=Ttr(n,["window"]);let s;const l=KSe(()=>i&&"ResizeObserver"in i),c=()=>{s&&(s.disconnect(),s=void 0)},u=a.watch(()=>wp(e),p=>{c(),l.value&&i&&p&&(s=new ResizeObserver(t),s.observe(p,o))},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return bN(d),{isSupported:l,stop:d}}var $Se=Object.getOwnPropertySymbols,vtr=Object.prototype.hasOwnProperty,Qtr=Object.prototype.propertyIsEnumerable,btr=(e,t)=>{var r={};for(var n in e)vtr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&$Se)for(var n of $Se(e))t.indexOf(n)<0&&Qtr.call(e,n)&&(r[n]=e[n]);return r};function xtr(e,t,r={}){const n=r,{window:i=FL}=n,o=btr(n,["window"]);let s;const l=KSe(()=>i&&"MutationObserver"in i),c=()=>{s&&(s.disconnect(),s=void 0)},u=a.watch(()=>wp(e),p=>{c(),l.value&&i&&p&&(s=new MutationObserver(t),s.observe(p,o))},{immediate:!0}),d=()=>{c(),u()};return bN(d),{isSupported:l,stop:d}}var eke;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(eke||(eke={}));var _tr=Object.defineProperty,tke=Object.getOwnPropertySymbols,wtr=Object.prototype.hasOwnProperty,Ltr=Object.prototype.propertyIsEnumerable,rke=(e,t,r)=>t in e?_tr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Str=(e,t)=>{for(var r in t||(t={}))wtr.call(t,r)&&rke(e,r,t[r]);if(tke)for(var r of tke(t))Ltr.call(t,r)&&rke(e,r,t[r]);return e};Str({linear:dtr},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function ktr({window:e=FL}={}){if(!e)return a.ref(!1);const t=a.ref(e.document.hasFocus());return H0(e,"blur",()=>{t.value=!1}),H0(e,"focus",()=>{t.value=!0}),t}const Mtr=()=>Bs&&/firefox/i.test(window.navigator.userAgent),_$=e=>{let t,r;return e.type==="touchend"?(r=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(r=e.touches[0].clientY,t=e.touches[0].clientX):(r=e.clientY,t=e.clientX),{clientX:t,clientY:r}};/**
|
1490
1490
|
* @vue/shared v3.4.15
|
1491
1491
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
1492
1492
|
* @license MIT
|