jbrowse-plugin-msaview 5.16.2 → 5.18.0
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.
- package/README.md +1 -1
- package/dist/LaunchMsaView/components/PreLoadedMSA/PreLoadedMSADataPanel.js +1 -1
- package/dist/MsaViewPanel/model.d.ts +173 -72
- package/dist/MsaViewPanel/storedData.test.js +4 -4
- package/dist/chunks/{AboutDialog-UIDZTTTE.js → AboutDialog-QD4L7BYU.js} +2 -2
- package/dist/chunks/{AboutDialog-UIDZTTTE.js.map → AboutDialog-QD4L7BYU.js.map} +1 -1
- package/dist/chunks/AnnotationFileDialog-IDJWWQDB.js +2 -0
- package/dist/chunks/{AnnotationFileDialog-TFIHQACD.js.map → AnnotationFileDialog-IDJWWQDB.js.map} +3 -3
- package/dist/chunks/ExportSVGDialog-R7ANUOII.js +2 -0
- package/dist/chunks/ExportSVGDialog-R7ANUOII.js.map +7 -0
- package/dist/chunks/FeatureDialog-A7LFBVGM.js +2 -0
- package/dist/chunks/FeatureDialog-A7LFBVGM.js.map +7 -0
- package/dist/chunks/{GapThresholdDialog-MNNNXRMM.js → GapThresholdDialog-LP4UN3SB.js} +1 -1
- package/dist/chunks/{GapThresholdDialog-MNNNXRMM.js.map → GapThresholdDialog-LP4UN3SB.js.map} +1 -1
- package/dist/chunks/{GoToDialog-U3TQYXIE.js → GoToDialog-3HM7K5RZ.js} +2 -2
- package/dist/chunks/{GoToDialog-U3TQYXIE.js.map → GoToDialog-3HM7K5RZ.js.map} +1 -1
- package/dist/chunks/{HelpDialog-QS4T2P3K.js → HelpDialog-GJKUU5Z6.js} +2 -2
- package/dist/chunks/{HelpDialog-QS4T2P3K.js.map → HelpDialog-GJKUU5Z6.js.map} +1 -1
- package/dist/chunks/{LaunchMsaViewDialog-CZR76VIV.js → LaunchMsaViewDialog-KQVGEMH7.js} +3 -3
- package/dist/chunks/{LaunchMsaViewDialog-CZR76VIV.js.map → LaunchMsaViewDialog-KQVGEMH7.js.map} +2 -2
- package/dist/chunks/MetadataDialog-4YUN5FJL.js +2 -0
- package/dist/chunks/MetadataDialog-4YUN5FJL.js.map +7 -0
- package/dist/chunks/{MsaViewPanel-6ETJVX27.js → MsaViewPanel-3GZG5IYS.js} +2 -2
- package/dist/chunks/{TrackInfoDialog-UCAJUIKI.js → TrackInfoDialog-D423HM63.js} +2 -2
- package/dist/chunks/{TrackInfoDialog-UCAJUIKI.js.map → TrackInfoDialog-D423HM63.js.map} +1 -1
- package/dist/chunks/TreeNodeInfoDialog-IXNBDQYV.js +2 -0
- package/dist/chunks/{TreeNodeInfoDialog-W6L2FDRH.js.map → TreeNodeInfoDialog-IXNBDQYV.js.map} +2 -2
- package/dist/chunks/{chunk-ECXGXFKO.js → chunk-3MNW5BKS.js} +1 -1
- package/dist/chunks/{chunk-ECXGXFKO.js.map → chunk-3MNW5BKS.js.map} +1 -1
- package/dist/chunks/chunk-7763LQXU.js +2 -0
- package/dist/chunks/chunk-7763LQXU.js.map +7 -0
- package/dist/chunks/chunk-7ZEXFLSY.js +2 -0
- package/dist/chunks/chunk-7ZEXFLSY.js.map +7 -0
- package/dist/chunks/chunk-AISU7SRE.js +2 -0
- package/dist/chunks/{chunk-BKGWP5O6.js.map → chunk-AISU7SRE.js.map} +4 -4
- package/dist/chunks/{chunk-7JFWQZNK.js → chunk-BD6Y2ERQ.js} +2 -2
- package/dist/chunks/{chunk-7JFWQZNK.js.map → chunk-BD6Y2ERQ.js.map} +1 -1
- package/dist/chunks/chunk-CKXVJK5K.js +2 -0
- package/dist/chunks/chunk-CKXVJK5K.js.map +7 -0
- package/dist/chunks/{chunk-CRESEEY4.js → chunk-CREQPIFJ.js} +2 -2
- package/dist/chunks/{chunk-KKFBYJZN.js → chunk-DW5INM5K.js} +1 -1
- package/dist/chunks/{chunk-KKFBYJZN.js.map → chunk-DW5INM5K.js.map} +1 -1
- package/dist/chunks/chunk-FLY25MTG.js +2 -0
- package/dist/chunks/{chunk-TVAJGJXO.js.map → chunk-FLY25MTG.js.map} +2 -2
- package/dist/chunks/chunk-JJ3VMN7J.js +11 -0
- package/dist/chunks/chunk-JJ3VMN7J.js.map +7 -0
- package/dist/chunks/chunk-KHRURQPK.js +2 -0
- package/dist/chunks/chunk-KHRURQPK.js.map +7 -0
- package/dist/chunks/{chunk-FYL5SHOE.js → chunk-LFBMB523.js} +1 -1
- package/dist/chunks/{chunk-FYL5SHOE.js.map → chunk-LFBMB523.js.map} +1 -1
- package/dist/chunks/chunk-LNMEYTCN.js +2 -0
- package/dist/chunks/chunk-LNMEYTCN.js.map +7 -0
- package/dist/chunks/chunk-PWNKL3ZK.js +2 -0
- package/dist/chunks/{chunk-33ER5TMH.js.map → chunk-PWNKL3ZK.js.map} +1 -1
- package/dist/chunks/{chunk-ET6J3BQX.js → chunk-SIKAYSRK.js} +2 -2
- package/dist/chunks/chunk-SM4GL27T.js +164 -0
- package/dist/chunks/chunk-SM4GL27T.js.map +7 -0
- package/dist/chunks/chunk-V47MJ4IY.js +2 -0
- package/dist/chunks/chunk-V47MJ4IY.js.map +7 -0
- package/dist/chunks/chunk-X5QA4AF6.js +2 -0
- package/dist/chunks/chunk-X5QA4AF6.js.map +7 -0
- package/dist/chunks/{chunk-UUDUJ6ZF.js → chunk-XNNIIXGD.js} +1 -1
- package/dist/chunks/{chunk-UUDUJ6ZF.js.map → chunk-XNNIIXGD.js.map} +1 -1
- package/dist/chunks/{chunk-L75R2CI3.js → chunk-ZJGFEUGM.js} +4 -4
- package/dist/chunks/{chunk-L75R2CI3.js.map → chunk-ZJGFEUGM.js.map} +1 -1
- package/dist/chunks/{chunk-MLATYHL2.js → chunk-ZWQTJTRR.js} +2 -2
- package/dist/chunks/dist-AUOG3URS.js +2 -0
- package/dist/chunks/dist-AUOG3URS.js.map +7 -0
- package/dist/chunks/dist-N36EMMBB.js +2 -0
- package/dist/chunks/{model-XMH3QSZV.js → model-M736UK5B.js} +2 -2
- package/dist/chunks/renderToSvg-KUOP36MW.js +2 -0
- package/dist/jbrowse-plugin-msaview.esm.js +2 -2
- package/dist/jbrowse-plugin-msaview.esm.js.map +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/src/LaunchMsaView/components/PreLoadedMSA/PreLoadedMSADataPanel.tsx +1 -1
- package/src/LaunchMsaViewExtensionPoint/index.ts +2 -1
- package/src/MsaViewPanel/storedData.test.ts +4 -4
- package/src/version.ts +1 -1
- package/dist/chunks/AnnotationFileDialog-TFIHQACD.js +0 -2
- package/dist/chunks/ExportSVGDialog-AYE4AXS3.js +0 -2
- package/dist/chunks/ExportSVGDialog-AYE4AXS3.js.map +0 -7
- package/dist/chunks/FeatureDialog-XHNPLPWX.js +0 -2
- package/dist/chunks/FeatureDialog-XHNPLPWX.js.map +0 -7
- package/dist/chunks/MetadataDialog-BC6EUBOJ.js +0 -2
- package/dist/chunks/MetadataDialog-BC6EUBOJ.js.map +0 -7
- package/dist/chunks/TreeNodeInfoDialog-W6L2FDRH.js +0 -2
- package/dist/chunks/chunk-27DJABXI.js +0 -2
- package/dist/chunks/chunk-27DJABXI.js.map +0 -7
- package/dist/chunks/chunk-33ER5TMH.js +0 -2
- package/dist/chunks/chunk-73KAPCJ2.js +0 -2
- package/dist/chunks/chunk-73KAPCJ2.js.map +0 -7
- package/dist/chunks/chunk-7WGSBPHS.js +0 -6
- package/dist/chunks/chunk-7WGSBPHS.js.map +0 -7
- package/dist/chunks/chunk-AOTVWTUV.js +0 -2
- package/dist/chunks/chunk-AOTVWTUV.js.map +0 -7
- package/dist/chunks/chunk-BKGWP5O6.js +0 -2
- package/dist/chunks/chunk-K55ZVN73.js +0 -5
- package/dist/chunks/chunk-K55ZVN73.js.map +0 -7
- package/dist/chunks/chunk-NDUZUXDJ.js +0 -2
- package/dist/chunks/chunk-NDUZUXDJ.js.map +0 -7
- package/dist/chunks/chunk-TEQX6FF3.js +0 -164
- package/dist/chunks/chunk-TEQX6FF3.js.map +0 -7
- package/dist/chunks/chunk-TVAJGJXO.js +0 -2
- package/dist/chunks/chunk-TVOPZHTJ.js +0 -2
- package/dist/chunks/chunk-TVOPZHTJ.js.map +0 -7
- package/dist/chunks/chunk-YXL36I7H.js +0 -8
- package/dist/chunks/chunk-YXL36I7H.js.map +0 -7
- package/dist/chunks/dist-34WACJJR.js +0 -2
- package/dist/chunks/dist-34WACJJR.js.map +0 -7
- package/dist/chunks/dist-NZDQ46PF.js +0 -2
- package/dist/chunks/renderToSvg-VO23YN7B.js +0 -2
- /package/dist/chunks/{MsaViewPanel-6ETJVX27.js.map → MsaViewPanel-3GZG5IYS.js.map} +0 -0
- /package/dist/chunks/{chunk-CRESEEY4.js.map → chunk-CREQPIFJ.js.map} +0 -0
- /package/dist/chunks/{chunk-ET6J3BQX.js.map → chunk-SIKAYSRK.js.map} +0 -0
- /package/dist/chunks/{chunk-MLATYHL2.js.map → chunk-ZWQTJTRR.js.map} +0 -0
- /package/dist/chunks/{dist-NZDQ46PF.js.map → dist-N36EMMBB.js.map} +0 -0
- /package/dist/chunks/{model-XMH3QSZV.js.map → model-M736UK5B.js.map} +0 -0
- /package/dist/chunks/{renderToSvg-VO23YN7B.js.map → renderToSvg-KUOP36MW.js.map} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as i,b as h,c as l,d as g}from"./chunk-ZJGFEUGM.js";import"./chunk-XNNIIXGD.js";import"./chunk-DW5INM5K.js";import"./chunk-JJ3VMN7J.js";import"./chunk-7763LQXU.js";import"./chunk-BD6Y2ERQ.js";import"./chunk-3MNW5BKS.js";import{a as b}from"./chunk-YOLY6H5C.js";import{a as R}from"./chunk-PFO3G4CM.js";import{S as m,n as d}from"./chunk-EXFKF6XR.js";import{r as t}from"./chunk-TEYYBCMF.js";import"./chunk-KVMUXFPB.js";var E={General:"Alignment",Accessions:"Row accessions",Dbxref:"Row cross-references"},C={ID:"Identifier",AC:"Accession",DE:"Description",AU:"Authors",SE:"Source of seed",SS:"Source of structure",BM:"Build method",SM:"Search method",GA:"Gathering threshold",TC:"Trusted cutoff",NC:"Noise cutoff",TP:"Family type",CL:"Clan",MB:"Clan members",PI:"Previous identifiers",DR:"Database references",CC:"Comment",WK:"Wikipedia",NE:"Pfam family nested in this one",NL:"Nesting location",NH:"Tree (Newick)",SQ:"Number of sequences",RC:"Reference comment",RN:"Reference number",RM:"PubMed ID",RT:"Reference title",RA:"Reference authors",RL:"Reference journal",CB:"Curation: build",DC:"Database comment",DW:"Database web link",OS:"Organism",OC:"Organism classification",AM:"Alignment method",FT:"Feature",SO:"Sequence Ontology term"},y={RT:"Title",RA:"Authors",RL:"Journal",RM:"PubMed",RC:"Comment"},A=new Set(["NH"]);var S=["RM","RT","RA","RL","RC"];function O(e){return/^\d+$/.test(e)?t.createElement("a",{href:`https://pubmed.ncbi.nlm.nih.gov/${e}/`,target:"_blank",rel:"noreferrer"},e):e}function D(e){return Array.isArray(e)&&e.every(o=>typeof o=="string")}function N(e){let o=e.RN;if(!D(o)||o.length===0)return e;let s=S.filter(n=>e[n]!=null),c=s.flatMap(n=>{let a=e[n];return D(a)&&a.length===o.length?[{tag:n,values:a}]:[]});if(c.length!==s.length)return e;let f=Object.fromEntries(Object.entries(e).filter(([n])=>n!=="RN"&&!S.includes(n))),r=Object.fromEntries(o.map((n,a)=>[n,Object.fromEntries(c.map(({tag:u,values:T})=>{let p=T[a];return[y[u],u==="RM"?O(p):p]}))]));return{...f,References:r}}function M(e){return i(e)?N(e):{}}var L=R(function({model:e,onClose:o}){let s=Object.entries(e.header).filter(([,r])=>r!=null&&!h(r)),c=Object.fromEntries(s.filter(([,r])=>!i(r))),f=s.filter(r=>i(r[1]));return t.createElement(b,{onClose:()=>{o()},open:!0,title:"Metadata",maxWidth:"xl"},t.createElement(d,null,s.length===0?t.createElement(m,null,"This alignment has no metadata."):t.createElement(t.Fragment,null,Object.keys(c).length>0?t.createElement(l,{record:c}):null,f.map(([r,n])=>t.createElement("div",{key:r},t.createElement(m,{variant:"h6"},E[r]??r),r==="General"?t.createElement(l,{record:M(n),labels:C,monospaceKeys:A}):t.createElement(l,{record:n})))),t.createElement(m,{variant:"h6"},"Sequences"),t.createElement(g,{str:e.rows})))}),H=L;export{H as default};
|
|
2
|
+
//# sourceMappingURL=MetadataDialog-4YUN5FJL.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../node_modules/.pnpm/react-msaview@11.0.0_4d87629ce60f4a70309a0d727f3e914b/node_modules/react-msaview/src/components/dialogs/metadataLabels.ts", "../../node_modules/.pnpm/react-msaview@11.0.0_4d87629ce60f4a70309a0d727f3e914b/node_modules/react-msaview/src/components/dialogs/metadataRecord.tsx", "../../node_modules/.pnpm/react-msaview@11.0.0_4d87629ce60f4a70309a0d727f3e914b/node_modules/react-msaview/src/components/dialogs/MetadataDialog.tsx"],
|
|
4
|
+
"sourcesContent": ["export const sectionLabels: Record<string, string> = {\n General: 'Alignment',\n Accessions: 'Row accessions',\n Dbxref: 'Row cross-references',\n}\n\nexport const gfLabels: Record<string, string> = {\n ID: 'Identifier',\n AC: 'Accession',\n DE: 'Description',\n AU: 'Authors',\n SE: 'Source of seed',\n SS: 'Source of structure',\n BM: 'Build method',\n SM: 'Search method',\n GA: 'Gathering threshold',\n TC: 'Trusted cutoff',\n NC: 'Noise cutoff',\n TP: 'Family type',\n CL: 'Clan',\n MB: 'Clan members',\n PI: 'Previous identifiers',\n DR: 'Database references',\n CC: 'Comment',\n WK: 'Wikipedia',\n NE: 'Pfam family nested in this one',\n NL: 'Nesting location',\n NH: 'Tree (Newick)',\n SQ: 'Number of sequences',\n RC: 'Reference comment',\n RN: 'Reference number',\n RM: 'PubMed ID',\n RT: 'Reference title',\n RA: 'Reference authors',\n RL: 'Reference journal',\n CB: 'Curation: build',\n DC: 'Database comment',\n DW: 'Database web link',\n OS: 'Organism',\n OC: 'Organism classification',\n AM: 'Alignment method',\n FT: 'Feature',\n SO: 'Sequence Ontology term',\n}\n\nexport const referenceFieldLabels: Record<string, string> = {\n RT: 'Title',\n RA: 'Authors',\n RL: 'Journal',\n RM: 'PubMed',\n RC: 'Comment',\n}\n\nexport const monospaceKeys = new Set(['NH'])\n", "import React from 'react'\n\nimport { isRecord } from '../MetadataTable.tsx'\nimport { referenceFieldLabels } from './metadataLabels.ts'\n\nconst referenceTags = ['RM', 'RT', 'RA', 'RL', 'RC'] as const\n\nfunction pubmed(id: string) {\n return /^\\d+$/.test(id) ? (\n <a\n href={`https://pubmed.ncbi.nlm.nih.gov/${id}/`}\n target=\"_blank\"\n rel=\"noreferrer\"\n >\n {id}\n </a>\n ) : (\n id\n )\n}\n\nfunction isStringArray(value: unknown): value is string[] {\n return Array.isArray(value) && value.every(v => typeof v === 'string')\n}\n\nfunction groupReferences(general: Record<string, unknown>) {\n const numbers = general.RN\n if (!isStringArray(numbers) || numbers.length === 0) {\n return general\n }\n const present = referenceTags.filter(tag => general[tag] != null)\n const columns = present.flatMap(tag => {\n const values = general[tag]\n return isStringArray(values) && values.length === numbers.length\n ? [{ tag, values }]\n : []\n })\n if (columns.length !== present.length) {\n return general\n }\n const rest = Object.fromEntries(\n Object.entries(general).filter(\n ([tag]) =>\n tag !== 'RN' && !(referenceTags as readonly string[]).includes(tag),\n ),\n )\n const references = Object.fromEntries(\n numbers.map((number, i) => [\n number,\n Object.fromEntries(\n columns.map(({ tag, values }) => {\n const value = values[i]!\n return [\n referenceFieldLabels[tag],\n tag === 'RM' ? pubmed(value) : value,\n ]\n }),\n ),\n ]),\n )\n return { ...rest, References: references }\n}\n\nexport function groupGeneral(general: unknown) {\n return isRecord(general) ? groupReferences(general) : {}\n}\n", "import React from 'react'\n\nimport { Dialog } from '@jbrowse/core/ui'\nimport { DialogContent, Typography } from '@mui/material'\nimport { observer } from 'mobx-react'\n\nimport MetadataTable, { isEmpty, isRecord } from '../MetadataTable.tsx'\nimport SequenceTextArea from '../SequenceTextArea.tsx'\nimport { gfLabels, monospaceKeys, sectionLabels } from './metadataLabels.ts'\nimport { groupGeneral } from './metadataRecord.tsx'\n\nimport type { MsaViewModel } from '../../model.ts'\n\nconst MetadataDialog = observer(function ({\n model,\n onClose,\n}: {\n model: MsaViewModel\n onClose: () => void\n}) {\n const entries = Object.entries(model.header).filter(\n ([, value]) => value != null && !isEmpty(value),\n )\n const fields = Object.fromEntries(\n entries.filter(([, value]) => !isRecord(value)),\n )\n const sections = entries.filter(\n (entry): entry is [string, Record<string, unknown>] => isRecord(entry[1]),\n )\n return (\n <Dialog\n onClose={() => {\n onClose()\n }}\n open\n title=\"Metadata\"\n maxWidth=\"xl\"\n >\n <DialogContent>\n {entries.length === 0 ? (\n <Typography>This alignment has no metadata.</Typography>\n ) : (\n <>\n {Object.keys(fields).length > 0 ? (\n <MetadataTable record={fields} />\n ) : null}\n {sections.map(([section, value]) => (\n <div key={section}>\n <Typography variant=\"h6\">\n {sectionLabels[section] ?? section}\n </Typography>\n {section === 'General' ? (\n <MetadataTable\n record={groupGeneral(value)}\n labels={gfLabels}\n monospaceKeys={monospaceKeys}\n />\n ) : (\n <MetadataTable record={value} />\n )}\n </div>\n ))}\n </>\n )}\n <Typography variant=\"h6\">Sequences</Typography>\n <SequenceTextArea str={model.rows} />\n </DialogContent>\n </Dialog>\n )\n})\n\nexport default MetadataDialog\n"],
|
|
5
|
+
"mappings": "waAAO,IAAMA,EAAwC,CACnD,QAAS,YACT,WAAY,iBACZ,OAAQ,wBAGGC,EAAmC,CAC9C,GAAI,aACJ,GAAI,YACJ,GAAI,cACJ,GAAI,UACJ,GAAI,iBACJ,GAAI,sBACJ,GAAI,eACJ,GAAI,gBACJ,GAAI,sBACJ,GAAI,iBACJ,GAAI,eACJ,GAAI,cACJ,GAAI,OACJ,GAAI,eACJ,GAAI,uBACJ,GAAI,sBACJ,GAAI,UACJ,GAAI,YACJ,GAAI,iCACJ,GAAI,mBACJ,GAAI,gBACJ,GAAI,sBACJ,GAAI,oBACJ,GAAI,mBACJ,GAAI,YACJ,GAAI,kBACJ,GAAI,oBACJ,GAAI,oBACJ,GAAI,kBACJ,GAAI,mBACJ,GAAI,oBACJ,GAAI,WACJ,GAAI,0BACJ,GAAI,mBACJ,GAAI,UACJ,GAAI,0BAGOC,EAA+C,CAC1D,GAAI,QACJ,GAAI,UACJ,GAAI,UACJ,GAAI,SACJ,GAAI,WAGOC,EAAgB,IAAI,IAAI,CAAC,IAAI,CAAC,EChD3C,IAAMC,EAAgB,CAAC,KAAM,KAAM,KAAM,KAAM,IAAI,EAEnD,SAASC,EAAOC,EAAU,CACxB,MAAO,QAAQ,KAAKA,CAAE,EACpBC,EAAA,cAAA,IAAA,CACE,KAAM,mCAAmCD,CAAE,IAC3C,OAAO,SACP,IAAI,YAAY,EAEfA,CAAE,EAGLA,CAEJ,CAEA,SAASE,EAAcC,EAAc,CACnC,OAAO,MAAM,QAAQA,CAAK,GAAKA,EAAM,MAAMC,GAAK,OAAOA,GAAM,QAAQ,CACvE,CAEA,SAASC,EAAgBC,EAAgC,CACvD,IAAMC,EAAUD,EAAQ,GACxB,GAAI,CAACJ,EAAcK,CAAO,GAAKA,EAAQ,SAAW,EAChD,OAAOD,EAET,IAAME,EAAUV,EAAc,OAAOW,GAAOH,EAAQG,CAAG,GAAK,IAAI,EAC1DC,EAAUF,EAAQ,QAAQC,GAAM,CACpC,IAAME,EAASL,EAAQG,CAAG,EAC1B,OAAOP,EAAcS,CAAM,GAAKA,EAAO,SAAWJ,EAAQ,OACtD,CAAC,CAAE,IAAAE,EAAK,OAAAE,CAAM,CAAE,EAChB,CAAA,CACN,CAAC,EACD,GAAID,EAAQ,SAAWF,EAAQ,OAC7B,OAAOF,EAET,IAAMM,EAAO,OAAO,YAClB,OAAO,QAAQN,CAAO,EAAE,OACtB,CAAC,CAACG,CAAG,IACHA,IAAQ,MAAQ,CAAEX,EAAoC,SAASW,CAAG,CAAC,CACtE,EAEGI,EAAa,OAAO,YACxBN,EAAQ,IAAI,CAACO,EAAQC,IAAM,CACzBD,EACA,OAAO,YACLJ,EAAQ,IAAI,CAAC,CAAE,IAAAD,EAAK,OAAAE,CAAM,IAAM,CAC9B,IAAMR,EAAQQ,EAAOI,CAAC,EACtB,MAAO,CACLC,EAAqBP,CAAG,EACxBA,IAAQ,KAAOV,EAAOI,CAAK,EAAIA,EAEnC,CAAC,CAAC,EAEL,CAAC,EAEJ,MAAO,CAAE,GAAGS,EAAM,WAAYC,CAAU,CAC1C,CAEM,SAAUI,EAAaX,EAAgB,CAC3C,OAAOY,EAASZ,CAAO,EAAID,EAAgBC,CAAO,EAAI,CAAA,CACxD,CCpDA,IAAMa,EAAiBC,EAAS,SAAU,CACxC,MAAAC,EACA,QAAAC,CAAO,EAIR,CACC,IAAMC,EAAU,OAAO,QAAQF,EAAM,MAAM,EAAE,OAC3C,CAAC,CAAC,CAAEG,CAAK,IAAMA,GAAS,MAAQ,CAACC,EAAQD,CAAK,CAAC,EAE3CE,EAAS,OAAO,YACpBH,EAAQ,OAAO,CAAC,CAAC,CAAEC,CAAK,IAAM,CAACG,EAASH,CAAK,CAAC,CAAC,EAE3CI,EAAWL,EAAQ,OACtBM,GAAsDF,EAASE,EAAM,CAAC,CAAC,CAAC,EAE3E,OACEC,EAAA,cAACC,EAAM,CACL,QAAS,IAAK,CACZT,EAAO,CACT,EACA,KAAI,GACJ,MAAM,WACN,SAAS,IAAI,EAEbQ,EAAA,cAACE,EAAa,KACXT,EAAQ,SAAW,EAClBO,EAAA,cAACG,EAAU,KAAA,iCAAA,EAEXH,EAAA,cAAAA,EAAA,SAAA,KACG,OAAO,KAAKJ,CAAM,EAAE,OAAS,EAC5BI,EAAA,cAACI,EAAa,CAAC,OAAQR,CAAM,CAAA,EAC3B,KACHE,EAAS,IAAI,CAAC,CAACO,EAASX,CAAK,IAC5BM,EAAA,cAAA,MAAA,CAAK,IAAKK,CAAO,EACfL,EAAA,cAACG,EAAU,CAAC,QAAQ,IAAI,EACrBG,EAAcD,CAAO,GAAKA,CAAO,EAEnCA,IAAY,UACXL,EAAA,cAACI,EAAa,CACZ,OAAQG,EAAab,CAAK,EAC1B,OAAQc,EACR,cAAeC,CAAa,CAAA,EAG9BT,EAAA,cAACI,EAAa,CAAC,OAAQV,CAAK,CAAA,CAC7B,CAEJ,CAAC,EAGNM,EAAA,cAACG,EAAU,CAAC,QAAQ,IAAI,EAAA,WAAA,EACxBH,EAAA,cAACU,EAAgB,CAAC,IAAKnB,EAAM,IAAI,CAAA,CAAI,CACvB,CAGtB,CAAC,EAEDoB,EAAetB",
|
|
6
|
+
"names": ["sectionLabels", "gfLabels", "referenceFieldLabels", "monospaceKeys", "referenceTags", "pubmed", "id", "react_default", "isStringArray", "value", "v", "groupReferences", "general", "numbers", "present", "tag", "columns", "values", "rest", "references", "number", "i", "referenceFieldLabels", "groupGeneral", "isRecord", "MetadataDialog", "observer", "model", "onClose", "entries", "value", "isEmpty", "fields", "isRecord", "sections", "entry", "react_default", "Dialog", "DialogContent", "Typography", "MetadataTable", "section", "sectionLabels", "groupGeneral", "gfLabels", "monospaceKeys", "SequenceTextArea", "MetadataDialog_default"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as L,b as w,d as B,e as M}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=MsaViewPanel-
|
|
1
|
+
import{a as L,b as w,d as B,e as M}from"./chunk-PWNKL3ZK.js";import{d as y}from"./chunk-SM4GL27T.js";import"./chunk-X5QA4AF6.js";import"./chunk-LFBMB523.js";import"./chunk-XNNIIXGD.js";import"./chunk-FLY25MTG.js";import{a as v}from"./chunk-ZWQTJTRR.js";import"./chunk-KHRURQPK.js";import"./chunk-CREQPIFJ.js";import"./chunk-JJ3VMN7J.js";import{a as t}from"./chunk-3KTCIF2L.js";import"./chunk-7ZEXFLSY.js";import"./chunk-YN7VVNZR.js";import"./chunk-V47MJ4IY.js";import"./chunk-LNMEYTCN.js";import"./chunk-7763LQXU.js";import"./chunk-AISU7SRE.js";import"./chunk-3MNW5BKS.js";import{b as c,d as l}from"./chunk-YOLY6H5C.js";import{a as n}from"./chunk-PFO3G4CM.js";import{S as e,g as m}from"./chunk-EXFKF6XR.js";import{r as o}from"./chunk-TEYYBCMF.js";import"./chunk-KVMUXFPB.js";var k=n(function({jobId:r}){let s=M(r)?B(r):w(r);return o.createElement(e,null,"Job ",r," (",o.createElement(v,{href:s},"see status"),")")}),g=k;var J=t()({margin:{padding:20},progressRow:{display:"flex",alignItems:"center",gap:12}}),S=n(function({model:r}){let{progress:s,rid:i,error:a}=r,{classes:p}=J(),b=!r.launchCompleted,{blastParams:d,orthologParams:f}=r,h=d?`Running EBI ${d.searchProgram==="phmmer"?"phmmer":"BLAST"}`:f?f.source==="uniref"?"Building UniRef homolog alignment":"Building ortholog alignment":"Loading alignment";return o.createElement("div",{className:p.margin},a?o.createElement(o.Fragment,null,o.createElement(e,{variant:"h5"},b?`${h} failed`:"Alignment no longer available"),i?o.createElement(g,{jobId:i}):null,o.createElement(c,{error:a}),o.createElement("div",{className:p.progressRow},o.createElement(m,{variant:"outlined",size:"small",onClick:()=>{r.retryLaunch()}},"Retry"),o.createElement(m,{variant:"outlined",size:"small",onClick:()=>{r.cancelLaunch()}},"Dismiss"))):o.createElement(o.Fragment,null,o.createElement(l,{message:h,variant:"h5"}),i?o.createElement(g,{jobId:i}):null,o.createElement("div",{className:p.progressRow},o.createElement(e,null,s||"Initializing"),o.createElement(m,{variant:"outlined",size:"small",onClick:()=>{r.cancelLaunch()}},"Cancel"))))}),P=S;var C=t()({loadingContainer:{padding:20}}),V=n(function({model:r}){let{classes:s}=C(),{loadingStoredData:i}=r,a=L(r);return o.createElement("div",null,a?o.createElement(P,{model:r}):i&&!r.dataInitialized?o.createElement("div",{className:s.loadingContainer},o.createElement(l,{message:"Loading MSA data",variant:"h6"})):o.createElement(y,{model:r}))}),Z=V;export{Z as default};
|
|
2
|
+
//# sourceMappingURL=MsaViewPanel-3GZG5IYS.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=TrackInfoDialog-
|
|
1
|
+
import{a as u}from"./chunk-BD6Y2ERQ.js";import{a as s}from"./chunk-3MNW5BKS.js";import{a as n}from"./chunk-YOLY6H5C.js";import{a as r}from"./chunk-PFO3G4CM.js";import{S as m,g as l,m as c,n as i}from"./chunk-EXFKF6XR.js";import{r as e}from"./chunk-TEYYBCMF.js";import"./chunk-KVMUXFPB.js";var f=s()(t=>({textArea:{padding:t.spacing(2),overflow:"auto",background:t.palette.action.selected,wordBreak:"break-word"}})),g=r(function({model:t,onClose:a}){let{name:d,data:o}=t,{classes:p}=f();return e.createElement(n,{open:!0,onClose:a,fullWidth:!0,maxWidth:"lg",title:`Track info - ${d}`},e.createElement(i,null,o===void 0?e.createElement(m,null,"This track has no text data."):e.createElement(e.Fragment,null,e.createElement(u,{text:o}),e.createElement("pre",{className:p.textArea},o))),e.createElement(c,null,e.createElement(l,{variant:"contained",onClick:a,color:"secondary"},"Close")))}),D=g;export{D as default};
|
|
2
|
+
//# sourceMappingURL=TrackInfoDialog-D423HM63.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../node_modules/.pnpm/react-msaview@
|
|
3
|
+
"sources": ["../../node_modules/.pnpm/react-msaview@11.0.0_4d87629ce60f4a70309a0d727f3e914b/node_modules/react-msaview/src/components/dialogs/TrackInfoDialog.tsx"],
|
|
4
4
|
"sourcesContent": ["import React from 'react'\n\nimport { Dialog } from '@jbrowse/core/ui'\nimport { makeStyles } from '@jbrowse/core/util/tss-react'\nimport { Button, DialogActions, DialogContent, Typography } from '@mui/material'\nimport { observer } from 'mobx-react'\n\nimport CopyButton from '../CopyButton.tsx'\n\nimport type { BasicTrack } from '../../types.ts'\n\nconst useStyles = makeStyles()(theme => ({\n textArea: {\n padding: theme.spacing(2),\n overflow: 'auto',\n background: theme.palette.action.selected,\n wordBreak: 'break-word',\n },\n}))\n\nconst TrackInfoDialog = observer(function ({\n model,\n onClose,\n}: {\n model: BasicTrack['model']\n onClose: () => void\n}) {\n const { name, data } = model\n const { classes } = useStyles()\n return (\n <Dialog\n open\n onClose={onClose}\n fullWidth\n maxWidth=\"lg\"\n title={`Track info - ${name}`}\n >\n <DialogContent>\n {/* the bar tracks (conservation) are computed per column and carry no\n text of their own, so there is nothing to show or copy for them */}\n {data === undefined ? (\n <Typography>This track has no text data.</Typography>\n ) : (\n <>\n <CopyButton text={data} />\n <pre className={classes.textArea}>{data}</pre>\n </>\n )}\n </DialogContent>\n <DialogActions>\n <Button variant=\"contained\" onClick={onClose} color=\"secondary\">\n Close\n </Button>\n </DialogActions>\n </Dialog>\n )\n})\n\nexport default TrackInfoDialog\n"],
|
|
5
5
|
"mappings": "iSAWA,IAAMA,EAAYC,EAAU,EAAGC,IAAU,CACvC,SAAU,CACR,QAASA,EAAM,QAAQ,CAAC,EACxB,SAAU,OACV,WAAYA,EAAM,QAAQ,OAAO,SACjC,UAAW,eAEb,EAEIC,EAAkBC,EAAS,SAAU,CACzC,MAAAC,EACA,QAAAC,CAAO,EAIR,CACC,GAAM,CAAE,KAAAC,EAAM,KAAAC,CAAI,EAAKH,EACjB,CAAE,QAAAI,CAAO,EAAKT,EAAS,EAC7B,OACEU,EAAA,cAACC,EAAM,CACL,KAAI,GACJ,QAASL,EACT,UAAS,GACT,SAAS,KACT,MAAO,gBAAgBC,CAAI,EAAE,EAE7BG,EAAA,cAACE,EAAa,KAGXJ,IAAS,OACRE,EAAA,cAACG,EAAU,KAAA,8BAAA,EAEXH,EAAA,cAAAA,EAAA,SAAA,KACEA,EAAA,cAACI,EAAU,CAAC,KAAMN,CAAI,CAAA,EACtBE,EAAA,cAAA,MAAA,CAAK,UAAWD,EAAQ,QAAQ,EAAGD,CAAI,CAAO,CAEjD,EAEHE,EAAA,cAACK,EAAa,KACZL,EAAA,cAACM,EAAM,CAAC,QAAQ,YAAY,QAASV,EAAS,MAAM,WAAW,EAAA,OAAA,CAEtD,CACK,CAGtB,CAAC,EAEDW,EAAed",
|
|
6
6
|
"names": ["useStyles", "makeStyles", "theme", "TrackInfoDialog", "observer", "model", "onClose", "name", "data", "classes", "react_default", "Dialog", "DialogContent", "Typography", "CopyButton", "DialogActions", "Button", "TrackInfoDialog_default"]
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{c as a,d as f}from"./chunk-ZJGFEUGM.js";import"./chunk-XNNIIXGD.js";import"./chunk-DW5INM5K.js";import"./chunk-JJ3VMN7J.js";import"./chunk-7763LQXU.js";import"./chunk-BD6Y2ERQ.js";import"./chunk-3MNW5BKS.js";import{a as c}from"./chunk-YOLY6H5C.js";import{a as m}from"./chunk-PFO3G4CM.js";import{S as t,n as i}from"./chunk-EXFKF6XR.js";import{r as e}from"./chunk-TEYYBCMF.js";import"./chunk-KVMUXFPB.js";var d=m(function({info:u,model:n,nodeName:r,onClose:E}){let{rows:p}=n,o=n.rowDataOf(r),l=p.find(s=>s[0]===r);return e.createElement(c,{onClose:()=>{E()},open:!0,title:"Tree node info",maxWidth:"xl"},e.createElement(i,null,e.createElement(t,{variant:"h6"},"Attributes"),e.createElement(a,{record:{nodeName:r,...u}}),e.createElement(t,{variant:"h6"},"Sequence"),l?e.createElement(f,{str:[l]}):e.createElement(t,null,"Sequence not found"),o?e.createElement(e.Fragment,null,e.createElement(t,{variant:"h6"},"Extra metadata"),e.createElement(a,{record:o})):null))}),b=d;export{b as default};
|
|
2
|
+
//# sourceMappingURL=TreeNodeInfoDialog-IXNBDQYV.js.map
|
package/dist/chunks/{TreeNodeInfoDialog-W6L2FDRH.js.map → TreeNodeInfoDialog-IXNBDQYV.js.map}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../node_modules/.pnpm/react-msaview@
|
|
3
|
+
"sources": ["../../node_modules/.pnpm/react-msaview@11.0.0_4d87629ce60f4a70309a0d727f3e914b/node_modules/react-msaview/src/components/tree/dialogs/TreeNodeInfoDialog.tsx"],
|
|
4
4
|
"sourcesContent": ["import React from 'react'\n\nimport { Dialog } from '@jbrowse/core/ui'\nimport { DialogContent, Typography } from '@mui/material'\nimport { observer } from 'mobx-react'\n\nimport MetadataTable from '../../MetadataTable.tsx'\nimport SequenceTextArea from '../../SequenceTextArea.tsx'\n\nimport type { MsaViewModel } from '../../../model.ts'\n\nconst TreeNodeInfoDialog = observer(function ({\n info,\n model,\n nodeName,\n onClose,\n}: {\n info: Record<string, unknown>\n model: MsaViewModel\n nodeName: string\n onClose: () => void\n}) {\n const { rows } = model\n const metadata = model.rowDataOf(nodeName)\n const res = rows.find(f => f[0] === nodeName)\n return (\n <Dialog\n onClose={() => {\n onClose()\n }}\n open\n title=\"Tree node info\"\n maxWidth=\"xl\"\n >\n <DialogContent>\n <Typography variant=\"h6\">Attributes</Typography>\n <MetadataTable record={{ nodeName, ...info }} />\n <Typography variant=\"h6\">Sequence</Typography>\n {res ? (\n <SequenceTextArea str={[res]} />\n ) : (\n <Typography>Sequence not found</Typography>\n )}\n {metadata ? (\n <>\n <Typography variant=\"h6\">Extra metadata</Typography>\n <MetadataTable record={metadata} />\n </>\n ) : null}\n </DialogContent>\n </Dialog>\n )\n})\n\nexport default TreeNodeInfoDialog\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": "0ZAWA,IAAMA,EAAqBC,EAAS,SAAU,CAC5C,KAAAC,EACA,MAAAC,EACA,SAAAC,EACA,QAAAC,CAAO,EAMR,CACC,GAAM,CAAE,KAAAC,CAAI,EAAKH,EACXI,EAAWJ,EAAM,UAAUC,CAAQ,EACnCI,EAAMF,EAAK,KAAKG,GAAKA,EAAE,CAAC,IAAML,CAAQ,EAC5C,OACEM,EAAA,cAACC,EAAM,CACL,QAAS,IAAK,CACZN,EAAO,CACT,EACA,KAAI,GACJ,MAAM,iBACN,SAAS,IAAI,EAEbK,EAAA,cAACE,EAAa,KACZF,EAAA,cAACG,EAAU,CAAC,QAAQ,IAAI,EAAA,YAAA,EACxBH,EAAA,cAACI,EAAa,CAAC,OAAQ,CAAE,SAAAV,EAAU,GAAGF,CAAI,CAAE,CAAA,EAC5CQ,EAAA,cAACG,EAAU,CAAC,QAAQ,IAAI,EAAA,UAAA,EACvBL,EACCE,EAAA,cAACK,EAAgB,CAAC,IAAK,CAACP,CAAG,CAAC,CAAA,EAE5BE,EAAA,cAACG,EAAU,KAAA,oBAAA,EAEZN,EACCG,EAAA,cAAAA,EAAA,SAAA,KACEA,EAAA,cAACG,EAAU,CAAC,QAAQ,IAAI,EAAA,gBAAA,EACxBH,EAAA,cAACI,EAAa,CAAC,OAAQP,CAAQ,CAAA,CAAI,EAEnC,IAAI,CACM,CAGtB,CAAC,EAEDS,EAAehB",
|
|
6
6
|
"names": ["TreeNodeInfoDialog", "observer", "info", "model", "nodeName", "onClose", "rows", "metadata", "res", "f", "react_default", "Dialog", "DialogContent", "Typography", "MetadataTable", "SequenceTextArea", "TreeNodeInfoDialog_default"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
var o=JBrowseExports["@jbrowse/core/util/tss-react"],c=e=>o!=null&&e in Object(o)?o[e]:Object.assign(function(){throw new Error("This JBrowse does not provide '"+e+"' from '@jbrowse/core/util/tss-react' to plugins: MsaView was built for a different JBrowse version, so update the plugin or JBrowse")},{jbrowseHostMissing:e});var n=c("makeStyles"),a=o&&o.__esModule?o.default:o;function i(e){let r=navigator.clipboard;if(r?.writeText){r.writeText(e).catch(s=>{console.error("Failed to copy to clipboard:",s)});return}let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.append(t),t.select(),document.execCommand("copy"),t.remove()}export{n as a,i as b};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-3MNW5BKS.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["jbrowse-host:@jbrowse/core/util/tss-react", "../../node_modules/.pnpm/react-msaview@
|
|
3
|
+
"sources": ["jbrowse-host:@jbrowse/core/util/tss-react", "../../node_modules/.pnpm/react-msaview@11.0.0_4d87629ce60f4a70309a0d727f3e914b/node_modules/react-msaview/src/vendor/copyToClipboard.ts"],
|
|
4
4
|
"sourcesContent": ["const host = JBrowseExports[\"@jbrowse/core/util/tss-react\"]\nconst read = name =>\n host != null && name in Object(host)\n ? host[name]\n : Object.assign(\n function () {\n throw new Error(\"This JBrowse does not provide '\" + name + \"' from '\" + \"@jbrowse/core/util/tss-react\" + \"' to plugins: \" + \"MsaView was built for a different JBrowse version, so update the plugin or JBrowse\")\n },\n { jbrowseHostMissing: name },\n )\nexport const cx = /* @__PURE__ */ read(\"cx\")\nexport const keyframes = /* @__PURE__ */ read(\"keyframes\")\nexport const makeStyles = /* @__PURE__ */ read(\"makeStyles\")\nexport default host && host.__esModule ? host.default : host", "export default function copy(text: string) {\n const clip = navigator.clipboard as Clipboard | undefined\n if (clip?.writeText) {\n clip.writeText(text).catch((e: unknown) => {\n console.error('Failed to copy to clipboard:', e)\n })\n return\n }\n const textarea = document.createElement('textarea')\n textarea.value = text\n textarea.style.position = 'fixed'\n textarea.style.opacity = '0'\n document.body.append(textarea)\n textarea.select()\n document.execCommand('copy')\n textarea.remove()\n}\n"],
|
|
5
5
|
"mappings": "AAAA,IAAMA,EAAO,eAAe,8BAA8B,EACpDC,EAAOC,GACXF,GAAQ,MAAQE,KAAQ,OAAOF,CAAI,EAC/BA,EAAKE,CAAI,EACT,OAAO,OACL,UAAY,CACV,MAAM,IAAI,MAAM,kCAAoCA,EAAO,sIAAqJ,CAClN,EACA,CAAE,mBAAoBA,CAAK,CAC7B,EAGC,IAAMC,EAA6BC,EAAK,YAAY,EACpDC,EAAQC,GAAQA,EAAK,WAAaA,EAAK,QAAUA,ECb1C,SAAPC,EAAsBC,EAAY,CACvC,IAAMC,EAAO,UAAU,UACvB,GAAIA,GAAM,UAAW,CACnBA,EAAK,UAAUD,CAAI,EAAE,MAAOE,GAAc,CACxC,QAAQ,MAAM,+BAAgCA,CAAC,CACjD,CAAC,EACD,MACF,CACA,IAAMC,EAAW,SAAS,cAAc,UAAU,EAClDA,EAAS,MAAQH,EACjBG,EAAS,MAAM,SAAW,QAC1BA,EAAS,MAAM,QAAU,IACzB,SAAS,KAAK,OAAOA,CAAQ,EAC7BA,EAAS,OAAM,EACf,SAAS,YAAY,MAAM,EAC3BA,EAAS,OAAM,CACjB",
|
|
6
6
|
"names": ["host", "read", "name", "makeStyles", "read", "tss_react_default", "host", "copy", "text", "clip", "e", "textarea"]
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function L(t,n){if(n.children)for(let e=n.children.length-1;e>=0;e--)t.push(n.children[e])}function A(t){let n=[];return M(t,e=>{n.push(e)}),n}function M(t,n){let e=[t];for(;e.length>0;){let o=e.pop();n(o),L(e,o)}}function D(t){let n=[];return M(t,e=>{e.children||n.push(e)}),n}function E(t,n){let e=[],o=[t];for(;o.length>0;){let r=o.pop();if(e.push(r),r.children)for(let h of r.children)o.push(h)}for(let r=e.length-1;r>=0;r--)n(e[r])}function R(t){E(t,n=>{let e=0;if(n.children)for(let o of n.children)o.height+1>e&&(e=o.height+1);n.height=e})}function C(t,n){let e={data:t,children:null,parent:null,depth:0,height:0},o=[e];for(;o.length>0;){let r=o.pop(),h=n(r.data);if(h?.length){r.children=h.map(i=>({data:i,children:null,parent:r,depth:r.depth+1,height:0}));for(let i of r.children)o.push(i)}}return R(e),e}function F(t,n){return E(t,e=>{let o=n(e.data);if(e.children)for(let r of e.children)o+=r.value;e.value=o}),t}function I(t,n){let e=[t];for(;e.length>0;){let o=e.pop();if(o.children){o.children.sort(n);for(let r of o.children)e.push(r)}}return t}function j(t,n){let e=[t];for(;e.length>0;){let o=e.pop();if(n(o))return o;L(e,o)}}function v(t,n){let e=[],o=[t];for(;o.length>0;){let r=o.pop();e.push(r);for(let h of r.children??[])n?.set(h,r),o.push(h)}return e}function T(t){return t.some(n=>n.length!==void 0)}function z(t,n){return t.children?.length===2?t.children.find(e=>e!==n):void 0}function q(t,n,e){let o=new Map,r=v(t,o);if(!o.has(n))return t;let h=T(r),i=o.get(n)===t?z(t,n):void 0,c=(n.length??0)+(i?.length??0),s=Math.min(Math.max(e??c/2,0),c),u=l=>h?l:void 0,a=[n];for(let l=o.get(n);l;l=o.get(l))a.push(l);let f;for(let l=a.length-1;l>=1;l--){let x=a[l],g=a[l-1],d=x.children.filter(p=>p!==g);if(f&&d.push(f),d.length===0)f=void 0;else if(l===a.length-1&&d.length===1){let p=d[0];f={...p,length:u((p.length??0)+(g.length??0)-(l===1?s:0))}}else f={...x,name:l===1?void 0:g.name,children:d,length:u((g.length??0)-(l===1?s:0))}}return{children:[{...n,length:u(s)},...f?[f]:[]]}}function H(t){let n=new Map,e=v(t,n),o=e.filter(d=>!d.children?.length);if(o.length<2)return t;let r=T(e),h=d=>r?d.length??0:1;function i(d){let p=new Map([[d,0]]),m=new Map,N=[d];for(;N.length>0;){let k=N.pop(),$=p.get(k),w=n.get(k);w&&!p.has(w)&&(p.set(w,$+h(k)),m.set(w,k),N.push(w));for(let b of k.children??[])p.has(b)||(p.set(b,$+h(b)),m.set(b,k),N.push(b))}return{dist:p,via:m}}function c(d){return o.reduce((p,m)=>d.get(m)>d.get(p)?m:p)}let s=c(i(o[0]).dist),{dist:u,via:a}=i(s),f=c(u);if(f===s)return t;let l=u.get(f)/2,x=f,g=a.get(x);for(;u.get(g)>l;)x=g,g=a.get(x);return n.get(x)===g?q(t,x,u.get(x)-l):q(t,g,l-u.get(g))}var K=/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/;function O(t){let n=[],e="",o="",r=!1;function h(){let i=r?o:e.trim();(i!==""||r)&&n.push({text:i,delim:!1,quoted:r}),e="",o="",r=!1}for(let i=0;i<t.length;i++){let c=t[i];if(c==="'")for(r=!0,i++;i<t.length;i++)if(t[i]!=="'")o+=t[i];else if(t[i+1]==="'")o+="'",i++;else break;else if(c==="[")for(let s=1;i<t.length-1&&s>0;)i++,t[i]==="["?s++:t[i]==="]"&&s--;else c==="("||c===")"||c===","||c===":"||c===";"?(h(),n.push({text:c,delim:!0,quoted:!1})):e+=c}return h(),n}function y(t,n={}){let e=[],o=O(t),{postParenNumeric:r="auto"}=n,h=r==="length"||r==="auto"&&!o.some(c=>c.delim&&c.text===":"),i={};for(let c=0;c<o.length;c++){let s=o[c],u={};if(s.delim){switch(s.text){case"(":i.children=[u],e.push(i),i=u;break;case",":e.at(-1)?.children?.push(u),i=u;break;case")":i=e.pop();break;default:break}continue}let a=c>0?o[c-1]:void 0,f=a?.delim?a.text:void 0;f===":"?i.length=Number.parseFloat(s.text):f===")"?h&&!s.quoted&&K.test(s.text)?i.length=Number.parseFloat(s.text):i.name=s.text:(f==="("||f===","||f===void 0)&&(i.name=s.text)}return i}var P=/[\s(),:;[\]']/;function Q(t){return P.test(t)?`'${t.replaceAll("'","''")}'`:t}function S(t){let n=new Map;for(let e of v(t).reverse()){let o="";if(e.children?.length){o=`(${e.children.map(r=>n.get(r)).join(",")})`;for(let r of e.children)n.delete(r)}o+=Q(e.name??""),e.length!==void 0&&(o+=`:${e.length}`),n.set(e,o)}return`${n.get(t)};`}export{y as a,A as b,M as c,D as d,C as e,F as f,I as g,j as h,v as i,q as j,H as k,S as l};
|
|
2
|
+
//# sourceMappingURL=chunk-7763LQXU.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../node_modules/.pnpm/@gmod+newick@1.1.0/node_modules/@gmod/newick/src/hierarchy.ts", "../../node_modules/.pnpm/@gmod+newick@1.1.0/node_modules/@gmod/newick/src/reroot.ts", "../../node_modules/.pnpm/@gmod+newick@1.1.0/node_modules/@gmod/newick/src/newick.ts", "../../node_modules/.pnpm/@gmod+newick@1.1.0/node_modules/@gmod/newick/src/write.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * The d3-hierarchy traversals a tree viewer actually needs, without the\n * dependency.\n *\n * Every traversal here is iterative (an explicit stack, or a reversed pre-order\n * walk) rather than recursive. That is the whole point of the file: a\n * phylogenetic tree or a single-linkage dendrogram can be a caterpillar, whose\n * depth equals its leaf count, and the recursive form throws\n * `RangeError: Maximum call stack size exceeded` somewhere around 5000 tips.\n */\n\nexport interface HierarchyNode<T> {\n data: T\n children: HierarchyNode<T>[] | null\n parent: HierarchyNode<T> | null\n depth: number\n height: number\n /** set by `sum`, and otherwise absent */\n value?: number\n}\n\nexport interface HierarchyLink<N> {\n source: N\n target: N\n}\n\n/**\n * What a traversal needs of a node, and the whole of it.\n *\n * The traversals are generic over the *node* type rather than over its data \u2014\n * `N extends TreeLike<N>` \u2014 so a caller that extends HierarchyNode with its own\n * layout fields gets its own type back instead of the base one, and a shape\n * that is not a HierarchyNode at all still walks.\n */\nexport interface TreeLike<N> {\n children: N[] | null\n}\n\n/** A node `sum` can write to. */\ninterface Summable<N> extends TreeLike<N> {\n data: unknown\n value?: number\n}\n\nfunction pushChildren<N extends TreeLike<N>>(stack: N[], node: N) {\n if (node.children) {\n for (let i = node.children.length - 1; i >= 0; i--) {\n stack.push(node.children[i]!)\n }\n }\n}\n\n/**\n * Pre-order: every parent precedes all of its descendants. Iterating the result\n * in reverse therefore yields a valid post-order (children before parents),\n * which the accumulation helpers rely on.\n */\nexport function descendants<N extends TreeLike<N>>(node: N): N[] {\n const result: N[] = []\n forEachDescendant(node, n => {\n result.push(n)\n })\n return result\n}\n\nexport function forEachDescendant<N extends TreeLike<N>>(\n node: N,\n cb: (n: N) => void,\n) {\n const stack = [node]\n while (stack.length > 0) {\n const n = stack.pop()!\n cb(n)\n pushChildren(stack, n)\n }\n}\n\nexport function leaves<N extends TreeLike<N>>(node: N): N[] {\n const result: N[] = []\n forEachDescendant(node, n => {\n if (!n.children) {\n result.push(n)\n }\n })\n return result\n}\n\n/**\n * Every parent->child edge, depth-first and left to right, so a link's whole\n * subtree is visited before its next sibling.\n *\n * The parent travels on the stack rather than being read back off the node, so\n * this works for a node type that carries no `parent` pointer.\n */\nexport function forEachLink<N extends TreeLike<N>>(\n node: N,\n cb: (source: N, target: N) => void,\n) {\n const stack: { source: N | null; target: N }[] = [\n { source: null, target: node },\n ]\n while (stack.length > 0) {\n const { source, target } = stack.pop()!\n if (source) {\n cb(source, target)\n }\n if (target.children) {\n for (let i = target.children.length - 1; i >= 0; i--) {\n stack.push({ source: target, target: target.children[i]! })\n }\n }\n }\n}\n\nexport function links<N extends TreeLike<N>>(node: N): HierarchyLink<N>[] {\n const result: HierarchyLink<N>[] = []\n forEachLink(node, (source, target) => {\n result.push({ source, target })\n })\n return result\n}\n\n/**\n * Post-order: a node's children, left to right, then the node.\n *\n * Not `descendants().reverse()`, which also puts children before parents but\n * walks siblings right to left. Reversing a pre-order that pushes children\n * left-to-right (so the rightmost pops first) gives the real thing.\n */\nexport function eachAfter<N extends TreeLike<N>>(node: N, cb: (n: N) => void) {\n const order: N[] = []\n const stack = [node]\n while (stack.length > 0) {\n const n = stack.pop()!\n order.push(n)\n if (n.children) {\n for (const child of n.children) {\n stack.push(child)\n }\n }\n }\n for (let i = order.length - 1; i >= 0; i--) {\n cb(order[i]!)\n }\n}\n\nfunction computeHeight<T>(node: HierarchyNode<T>) {\n eachAfter(node, n => {\n let h = 0\n if (n.children) {\n for (const child of n.children) {\n if (child.height + 1 > h) {\n h = child.height + 1\n }\n }\n }\n n.height = h\n })\n}\n\n/** Wrap plain data in hierarchy nodes, filling in depth, height and parent. */\nexport function hierarchy<T>(\n data: T,\n childrenAccessor: (d: T) => T[] | undefined | null,\n): HierarchyNode<T> {\n const root: HierarchyNode<T> = {\n data,\n children: null,\n parent: null,\n depth: 0,\n height: 0,\n }\n const stack = [root]\n while (stack.length > 0) {\n const node = stack.pop()!\n const kids = childrenAccessor(node.data)\n if (kids?.length) {\n node.children = kids.map(d => ({\n data: d,\n children: null,\n parent: node,\n depth: node.depth + 1,\n height: 0,\n }))\n for (const child of node.children) {\n stack.push(child)\n }\n }\n }\n computeHeight(root)\n return root\n}\n\n/**\n * Accumulate a value up the tree, each node summing its children's.\n *\n * One type parameter, with the datum reached through `N['data']`: a second one\n * for the datum cannot be inferred from the arguments, so callers would have to\n * write both out or get `unknown` in the callback.\n */\nexport function sum<N extends Summable<N>>(\n node: N,\n valueFn: (d: N['data']) => number,\n): N {\n eachAfter(node, n => {\n let s = valueFn(n.data)\n if (n.children) {\n for (const child of n.children) {\n s += child.value!\n }\n }\n n.value = s\n })\n return node\n}\n\n/** Sort every node's children in place. */\nexport function sort<N extends TreeLike<N>>(\n node: N,\n compareFn: (a: N, b: N) => number,\n): N {\n const stack = [node]\n while (stack.length > 0) {\n const n = stack.pop()!\n if (n.children) {\n n.children.sort(compareFn)\n for (const child of n.children) {\n stack.push(child)\n }\n }\n }\n return node\n}\n\n/** First node matching the predicate, in pre-order. */\nexport function find<N extends TreeLike<N>>(\n node: N,\n predicate: (n: N) => boolean,\n): N | undefined {\n const stack = [node]\n while (stack.length > 0) {\n const n = stack.pop()!\n if (predicate(n)) {\n return n\n }\n pushChildren(stack, n)\n }\n return undefined\n}\n", "/**\n * Rerooting over the plain node `parseNewick` produces. Neither function\n * modifies the tree passed in.\n *\n * Every traversal is iterative, like the ones in `hierarchy.ts`: a caterpillar\n * tree is as deep as it has leaves, and recursion overflows the stack past\n * about 5000 of them.\n */\n\nimport type { NewickNode } from './newick.ts'\n\ntype Tree<N> = NewickNode & { children?: N[] }\n\nexport function preorder<N extends Tree<N>>(root: N, parents?: Map<N, N>) {\n const order: N[] = []\n const stack = [root]\n while (stack.length > 0) {\n const node = stack.pop()!\n order.push(node)\n for (const child of node.children ?? []) {\n parents?.set(child, node)\n stack.push(child)\n }\n }\n return order\n}\n\nfunction hasLengths(order: NewickNode[]) {\n return order.some(n => n.length !== undefined)\n}\n\n// the root's two children make one branch of the unrooted tree, which is the\n// branch a rerooting at either of them splits\nfunction mergedSibling<N extends Tree<N>>(root: N, target: N) {\n return root.children?.length === 2\n ? root.children.find(c => c !== target)\n : undefined\n}\n\n/**\n * The tree rooted on the branch above `target`, `offset` up from it, or at the\n * middle of that branch without one. Where the root has two children, their\n * branches are one branch of the unrooted tree, and `offset` runs across both.\n *\n * The nodes between `target` and the old root turn over. A name on one of them\n * labels the branch above it, which is where a support value sits, so the name\n * follows that branch to the node now at its lower end. A two-child root has\n * nothing left to split once one child leaves, so it drops out and its\n * branches join.\n */\nexport function rerootTree<N extends Tree<N>>(\n root: N,\n target: N,\n offset?: number,\n): NewickNode {\n const parents = new Map<N, N>()\n const order = preorder(root, parents)\n if (!parents.has(target)) {\n return root\n }\n const lengths = hasLengths(order)\n const sibling =\n parents.get(target) === root ? mergedSibling(root, target) : undefined\n const branch = (target.length ?? 0) + (sibling?.length ?? 0)\n const at = Math.min(Math.max(offset ?? branch / 2, 0), branch)\n const length = (n: number) => (lengths ? n : undefined)\n\n const path = [target]\n for (let n = parents.get(target); n; n = parents.get(n)) {\n path.push(n)\n }\n // Built from the old root down, so the node each turned node now hangs\n // `above` it already exists. undefined where the old root dropped out.\n let above: NewickNode | undefined\n for (let i = path.length - 1; i >= 1; i--) {\n const node = path[i]!\n const below = path[i - 1]!\n const children = node.children!.filter(c => c !== below)\n if (above) {\n children.push(above)\n }\n if (children.length === 0) {\n above = undefined\n } else if (i === path.length - 1 && children.length === 1) {\n const only = children[0]!\n above = {\n ...only,\n length: length(\n (only.length ?? 0) + (below.length ?? 0) - (i === 1 ? at : 0),\n ),\n }\n } else {\n above = {\n ...node,\n name: i === 1 ? undefined : below.name,\n children,\n length: length((below.length ?? 0) - (i === 1 ? at : 0)),\n }\n }\n }\n return {\n children: [{ ...target, length: length(at) }, ...(above ? [above] : [])],\n }\n}\n\n/**\n * The tree rooted halfway along the longest path between two tips, which is\n * where a clock would put the root: the usual choice for the unrooted tree\n * FastTree, IQ-TREE or neighbor joining writes. A tree with no branch lengths\n * counts branches.\n */\nexport function midpointRoot<N extends Tree<N>>(root: N): NewickNode {\n const parents = new Map<N, N>()\n const order = preorder(root, parents)\n const tips = order.filter(n => !n.children?.length)\n if (tips.length < 2) {\n return root\n }\n const lengths = hasLengths(order)\n const weight = (n: N) => (lengths ? (n.length ?? 0) : 1)\n\n // distance from `from` to every node over the unrooted tree, and the\n // neighbor each was reached through\n function reach(from: N) {\n const dist = new Map<N, number>([[from, 0]])\n const via = new Map<N, N>()\n const stack = [from]\n while (stack.length > 0) {\n const node = stack.pop()!\n const d = dist.get(node)!\n const parent = parents.get(node)\n if (parent && !dist.has(parent)) {\n dist.set(parent, d + weight(node))\n via.set(parent, node)\n stack.push(parent)\n }\n for (const child of node.children ?? []) {\n if (!dist.has(child)) {\n dist.set(child, d + weight(child))\n via.set(child, node)\n stack.push(child)\n }\n }\n }\n return { dist, via }\n }\n function farthest(dist: Map<N, number>) {\n return tips.reduce((best, tip) =>\n dist.get(tip)! > dist.get(best)! ? tip : best,\n )\n }\n\n const a = farthest(reach(tips[0]!).dist)\n const { dist, via } = reach(a)\n const b = farthest(dist)\n if (b === a) {\n return root\n }\n const half = dist.get(b)! / 2\n let node = b\n let next = via.get(node)!\n while (dist.get(next)! > half) {\n node = next\n next = via.get(node)!\n }\n // the midpoint lies on the branch between `node` and `next`, and whichever\n // of them is the child carries that branch\n return parents.get(node) === next\n ? rerootTree(root, node, dist.get(node)! - half)\n : rerootTree(root, next, half - dist.get(next)!)\n}\n", "/**\n * Newick format parser.\n *\n * Originally based on Jason Davies' 2010 implementation (MIT). Rewritten around\n * a hand-rolled scanner so that single-quoted labels are read as labels rather\n * than as grammar.\n *\n * Supported forms:\n *\n * (A:0.1,B:0.2)F \u2014 name and `:` branch length (standard phylo Newick)\n * (A:0.1,B:0.2)F:0.5 \u2014 internal node name + branch length to parent\n * (A,B)Foo \u2014 non-numeric post-paren stored as `name`\n * (A,B)1.5 \u2014 numeric post-paren; see `postParenNumeric` below\n * ('A (x)','B,y')1.5 \u2014 single-quoted labels, `''` for a literal quote\n * (A:0.1[&&NHX:S=human]) \u2014 bracketed comments (NHX, BEAST), dropped\n *\n * The quoted form is not decoration: a leaf name is an arbitrary string out of\n * somebody's data file, and one holding a `(` or a `,` is grammar rather than a\n * label unless it is quoted. A comma inside an unquoted label splits one leaf\n * into two and hands every row below it its neighbour's name, so the tree comes\n * back the wrong shape rather than merely mislabelled.\n */\n\nexport interface NewickNode {\n name?: string\n length?: number\n children?: NewickNode[]\n}\n\n/**\n * How to read a bare number sitting after a `)`.\n *\n * The Newick grammar puts the internal node's *label* there, so `95` in\n * `((A,B)95,(C,D)80);` is a bootstrap support value. `@gmod/hclust` reuses the\n * same slot for a cluster's absolute merge height (`(A,B)1.5`) and never emits a\n * `:`, so for that dialect the number is a length. Nothing in the string\n * distinguishes the two, which is why this is a parameter and not a guess.\n *\n * 'name' \u2014 always a name. Standard Newick.\n * 'length' \u2014 always a length. `@gmod/hclust` output.\n * 'auto' \u2014 length only when the tree contains no `:` branch length at all,\n * which is the shape hclust writes. The default, since reading a\n * real phylogeny's support values as lengths would sum 0-100 into\n * the branch distances and flatten the real ones.\n *\n * A *quoted* post-paren token is always a name under every setting: quoting is\n * the writer saying \"this is a label\", and it is the only way to name a node\n * something that looks like a number.\n */\nexport type PostParenNumeric = 'name' | 'length' | 'auto'\n\nexport interface ParseNewickOptions {\n postParenNumeric?: PostParenNumeric\n}\n\nconst NUMERIC_TOKEN = /^-?\\d+(\\.\\d+)?([eE][+-]?\\d+)?$/\n\ninterface Token {\n text: string\n // a bare grammar character, as opposed to label text that happens to equal one\n delim: boolean\n // arrived single-quoted, so it is a label whatever it looks like\n quoted: boolean\n}\n\n/**\n * Split into grammar characters and labels.\n *\n * A scanner rather than a regex split on the grammar characters, because a\n * split cannot know it is inside a quoted label and so tears the label apart on\n * the very characters quoting exists to protect.\n *\n * Whitespace is consumed around the delimiters and not inside labels: phased\n * haplotype rows are named `NA18536 HP0`, and stripping globally welds them\n * shut. Inside quotes it is kept verbatim.\n */\nfunction tokenize(s: string): Token[] {\n const out: Token[] = []\n // text since the last delimiter, kept apart from the quoted run so a quoted\n // label can own the token: whitespace written around the quotes is layout in\n // a hand-formatted .nh file, not part of the name\n let bare = ''\n let quotedText = ''\n let quoted = false\n function flush() {\n const text = quoted ? quotedText : bare.trim()\n // an empty run between two delimiters is not a label; an explicitly quoted\n // '' is one, so it survives\n if (text !== '' || quoted) {\n out.push({ text, delim: false, quoted })\n }\n bare = ''\n quotedText = ''\n quoted = false\n }\n for (let i = 0; i < s.length; i++) {\n const c = s[i]!\n if (c === \"'\") {\n quoted = true\n for (i++; i < s.length; i++) {\n if (s[i] !== \"'\") {\n quotedText += s[i]!\n } else if (s[i + 1] === \"'\") {\n // '' is an escaped literal quote, not the end of the label\n quotedText += \"'\"\n i++\n } else {\n break\n }\n }\n } else if (c === '[') {\n // a bracketed comment, which is where NHX (`[&&NHX:S=human]`) and BEAST\n // (`[&rate=1.0]`) hang their per-node metadata. Dropping it is what keeps\n // the `:` inside NHX from being read as a branch length, and the metadata\n // itself out of the leaf's name. Nesting is counted rather than assumed\n // away, so a comment holding a `[` does not end early\n for (let depth = 1; i < s.length - 1 && depth > 0;) {\n i++\n if (s[i] === '[') {\n depth++\n } else if (s[i] === ']') {\n depth--\n }\n }\n } else if (c === '(' || c === ')' || c === ',' || c === ':' || c === ';') {\n flush()\n out.push({ text: c, delim: true, quoted: false })\n } else {\n bare += c\n }\n }\n flush()\n return out\n}\n\nexport default function parseNewick(\n s: string,\n options: ParseNewickOptions = {},\n): NewickNode {\n const ancestors: NewickNode[] = []\n const tokens = tokenize(s)\n\n // asked of the delimiters rather than of the raw string: a leaf legitimately\n // named for a region (chr1:1-100) carries a colon of its own, and testing the\n // string flips a whole hclust tree into the phylo reading over it\n const { postParenNumeric = 'auto' } = options\n const numericIsLength =\n postParenNumeric === 'length' ||\n (postParenNumeric === 'auto' &&\n !tokens.some(t => t.delim && t.text === ':'))\n\n let tree: NewickNode = {}\n for (let i = 0; i < tokens.length; i++) {\n const token = tokens[i]!\n const subtree: NewickNode = {}\n if (token.delim) {\n switch (token.text) {\n case '(':\n tree.children = [subtree]\n ancestors.push(tree)\n tree = subtree\n break\n case ',':\n ancestors.at(-1)?.children?.push(subtree)\n tree = subtree\n break\n case ')':\n tree = ancestors.pop()!\n break\n default:\n // ':' and ';' are consumed by the label that follows them\n break\n }\n continue\n }\n const prev = i > 0 ? tokens[i - 1] : undefined\n const prevDelim = prev?.delim ? prev.text : undefined\n if (prevDelim === ':') {\n tree.length = Number.parseFloat(token.text)\n } else if (prevDelim === ')') {\n // the regex rather than a String(n) round-trip, so `1.50` and `1e-3` still\n // read as numbers\n if (numericIsLength && !token.quoted && NUMERIC_TOKEN.test(token.text)) {\n tree.length = Number.parseFloat(token.text)\n } else {\n tree.name = token.text\n }\n } else if (\n prevDelim === '(' ||\n prevDelim === ',' ||\n // nothing before it at all: the whole tree is one bare node (`A;`), which\n // is what a single-row input serializes to. Without this the name is\n // dropped, and a root leaf with no name matches no row.\n prevDelim === undefined\n ) {\n tree.name = token.text\n }\n }\n return tree\n}\n", "import { preorder } from './reroot.ts'\n\nimport type { NewickNode } from './newick.ts'\n\n// a name holding any of these reads back as grammar unless it is quoted\nconst needsQuotes = /[\\s(),:;[\\]']/\n\nfunction quote(name: string) {\n return needsQuotes.test(name) ? `'${name.replaceAll(\"'\", \"''\")}'` : name\n}\n\n/**\n * The tree as a Newick string, which `parseNewick` reads back to the same\n * tree. Each subtree's string is dropped once its parent takes it in, since a\n * caterpillar tree is as deep as it has tips and keeping every one is\n * quadratic.\n */\nexport function writeNewick(root: NewickNode) {\n const written = new Map<NewickNode, string>()\n for (const node of preorder(root).reverse()) {\n let text = ''\n if (node.children?.length) {\n text = `(${node.children.map(c => written.get(c)!).join(',')})`\n for (const child of node.children) {\n written.delete(child)\n }\n }\n text += quote(node.name ?? '')\n if (node.length !== undefined) {\n text += `:${node.length}`\n }\n written.set(node, text)\n }\n return `${written.get(root)!};`\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["pushChildren", "stack", "node", "i", "descendants", "result", "forEachDescendant", "n", "cb", "leaves", "eachAfter", "node", "cb", "order", "stack", "n", "child", "i", "computeHeight", "h", "hierarchy", "data", "childrenAccessor", "root", "kids", "d", "sum", "valueFn", "s", "sort", "compareFn", "find", "predicate", "pushChildren", "preorder", "root", "parents", "order", "stack", "node", "child", "hasLengths", "mergedSibling", "target", "c", "rerootTree", "offset", "lengths", "sibling", "branch", "at", "length", "n", "path", "above", "i", "below", "children", "only", "midpointRoot", "tips", "weight", "reach", "from", "dist", "via", "d", "parent", "farthest", "best", "tip", "a", "b", "half", "next", "NUMERIC_TOKEN", "tokenize", "s", "out", "bare", "quotedText", "quoted", "flush", "text", "depth", "parseNewick", "options", "ancestors", "tokens", "postParenNumeric", "numericIsLength", "t", "tree", "i", "token", "subtree", "prev", "prevDelim", "needsQuotes", "quote", "name", "writeNewick", "root", "written", "node", "preorder", "text", "c", "child"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=JBrowseExports["@mui/material/SvgIcon"],r=o=>e!=null&&o in Object(e)?e[o]:Object.assign(function(){throw new Error("This JBrowse does not provide '"+o+"' from '@mui/material/SvgIcon' to plugins: MsaView was built for a different JBrowse version, so update the plugin or JBrowse")},{jbrowseHostMissing:o}),n=r("createSvgIcon"),i=e&&e.__esModule?e.default:e;var s=JBrowseExports["react/jsx-runtime"],t=o=>s!=null&&o in Object(s)?s[o]:Object.assign(function(){throw new Error("This JBrowse does not provide '"+o+"' from 'react/jsx-runtime' to plugins: MsaView was built for a different JBrowse version, so update the plugin or JBrowse")},{jbrowseHostMissing:o});var l=t("jsx"),w=t("jsxs"),d=s&&s.__esModule?s.default:s;export{n as a,l as b,w as c};
|
|
2
|
+
//# sourceMappingURL=chunk-7ZEXFLSY.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["jbrowse-host:@mui/material/SvgIcon", "jbrowse-host:react/jsx-runtime"],
|
|
4
|
+
"sourcesContent": ["const host = JBrowseExports[\"@mui/material/SvgIcon\"]\nconst read = name =>\n host != null && name in Object(host)\n ? host[name]\n : Object.assign(\n function () {\n throw new Error(\"This JBrowse does not provide '\" + name + \"' from '\" + \"@mui/material/SvgIcon\" + \"' to plugins: \" + \"MsaView was built for a different JBrowse version, so update the plugin or JBrowse\")\n },\n { jbrowseHostMissing: name },\n )\nexport const createSvgIcon = /* @__PURE__ */ read(\"createSvgIcon\")\nexport default host && host.__esModule ? host.default : host", "const host = JBrowseExports[\"react/jsx-runtime\"]\nconst read = name =>\n host != null && name in Object(host)\n ? host[name]\n : Object.assign(\n function () {\n throw new Error(\"This JBrowse does not provide '\" + name + \"' from '\" + \"react/jsx-runtime\" + \"' to plugins: \" + \"MsaView was built for a different JBrowse version, so update the plugin or JBrowse\")\n },\n { jbrowseHostMissing: name },\n )\nexport const Fragment = /* @__PURE__ */ read(\"Fragment\")\nexport const jsx = /* @__PURE__ */ read(\"jsx\")\nexport const jsxs = /* @__PURE__ */ read(\"jsxs\")\nexport default host && host.__esModule ? host.default : host"],
|
|
5
|
+
"mappings": "AAAA,IAAMA,EAAO,eAAe,uBAAuB,EAC7CC,EAAOC,GACXF,GAAQ,MAAQE,KAAQ,OAAOF,CAAI,EAC/BA,EAAKE,CAAI,EACT,OAAO,OACL,UAAY,CACV,MAAM,IAAI,MAAM,kCAAoCA,EAAO,+HAA8I,CAC3M,EACA,CAAE,mBAAoBA,CAAK,CAC7B,EACOC,EAAgCF,EAAK,eAAe,EAC1DG,EAAQJ,GAAQA,EAAK,WAAaA,EAAK,QAAUA,ECXxD,IAAMK,EAAO,eAAe,mBAAmB,EACzCC,EAAOC,GACXF,GAAQ,MAAQE,KAAQ,OAAOF,CAAI,EAC/BA,EAAKE,CAAI,EACT,OAAO,OACL,UAAY,CACV,MAAM,IAAI,MAAM,kCAAoCA,EAAO,2HAA0I,CACvM,EACA,CAAE,mBAAoBA,CAAK,CAC7B,EAEC,IAAMC,EAAsBC,EAAK,KAAK,EAChCC,EAAuBD,EAAK,MAAM,EACxCE,EAAQC,GAAQA,EAAK,WAAaA,EAAK,QAAUA",
|
|
6
|
+
"names": ["host", "read", "name", "createSvgIcon", "SvgIcon_default", "host", "read", "name", "jsx", "read", "jsxs", "jsx_runtime_default", "host"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var t=JBrowseExports["@jbrowse/core/util"],e=o=>t!=null&&o in Object(t)?t[o]:Object.assign(function(){throw new Error("This JBrowse does not provide '"+o+"' from '@jbrowse/core/util' to plugins: MsaView was built for a different JBrowse version, so update the plugin or JBrowse")},{jbrowseHostMissing:o});var s=e("clamp");var r=e("fetchAndMaybeUnzipText");var n=e("getContainingTrack"),a=e("getContainingView");var c=e("getEnv");var i=e("getSession");var p=e("groupBy");var l=e("isAbstractMenuManager");var x=e("isGeneLikeType");var d=e("isSessionWithAddSessionTrack");var g=e("isSessionWithDeleteTrackConf");var S=e("isSessionWithSessionTracks");var m=e("notEmpty");var u=e("shorten2");var h=e("statusProgressLabel");var T=e("sum");var C=t&&t.__esModule?t.default:t;export{s as a,r as b,n as c,a as d,c as e,i as f,p as g,l as h,x as i,d as j,g as k,S as l,m,u as n,h as o,T as p};
|
|
2
|
+
//# sourceMappingURL=chunk-AISU7SRE.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["jbrowse-host:@jbrowse/core/util"
|
|
4
|
-
"sourcesContent": ["const host = JBrowseExports[\"@jbrowse/core/util\"]\nconst read = name =>\n host != null && name in Object(host)\n ? host[name]\n : Object.assign(\n function () {\n throw new Error(\"This JBrowse does not provide '\" + name + \"' from '\" + \"@jbrowse/core/util\" + \"' to plugins: \" + \"MsaView was built for a different JBrowse version, so update the plugin or JBrowse\")\n },\n { jbrowseHostMissing: name },\n )\nexport const AuthNeededError = /* @__PURE__ */ read(\"AuthNeededError\")\nexport const BEZIER_CONNECTOR_MAX_REACH_PX = /* @__PURE__ */ read(\"BEZIER_CONNECTOR_MAX_REACH_PX\")\nexport const CUBIC_APEX_RATIO = /* @__PURE__ */ read(\"CUBIC_APEX_RATIO\")\nexport const ENCODED_PREFIX = /* @__PURE__ */ read(\"ENCODED_PREFIX\")\nexport const IUPAC_MOTIF_REGEX = /* @__PURE__ */ read(\"IUPAC_MOTIF_REGEX\")\nexport const IntervalTree = /* @__PURE__ */ read(\"IntervalTree\")\nexport const JSON_PREFIX = /* @__PURE__ */ read(\"JSON_PREFIX\")\nexport const LOCAL_PREFIX = /* @__PURE__ */ read(\"LOCAL_PREFIX\")\nexport const MAX_GLOB_REGIONS = /* @__PURE__ */ read(\"MAX_GLOB_REGIONS\")\nexport const MAX_ZOOM_RATE_PER_MS = /* @__PURE__ */ read(\"MAX_ZOOM_RATE_PER_MS\")\nexport const MORPH_DURATION_MS = /* @__PURE__ */ read(\"MORPH_DURATION_MS\")\nexport const SCROLL_ZOOM_FACTOR_DIVISOR = /* @__PURE__ */ read(\"SCROLL_ZOOM_FACTOR_DIVISOR\")\nexport const SESSION_PARAM_KINDS = /* @__PURE__ */ read(\"SESSION_PARAM_KINDS\")\nexport const SHARE_PREFIX = /* @__PURE__ */ read(\"SHARE_PREFIX\")\nexport const SPEC_PREFIX = /* @__PURE__ */ read(\"SPEC_PREFIX\")\nexport const SimpleFeature = /* @__PURE__ */ read(\"SimpleFeature\")\nexport const UNKNOWN = /* @__PURE__ */ read(\"UNKNOWN\")\nexport const UNSUPPORTED = /* @__PURE__ */ read(\"UNSUPPORTED\")\nexport const UnknownRefNameError = /* @__PURE__ */ read(\"UnknownRefNameError\")\nexport const ZOOM_ACTIVE_WINDOW_MS = /* @__PURE__ */ read(\"ZOOM_ACTIVE_WINDOW_MS\")\nexport const accumulateScroll = /* @__PURE__ */ read(\"accumulateScroll\")\nexport const adapterConfigFromSpec = /* @__PURE__ */ read(\"adapterConfigFromSpec\")\nexport const adapterNeedsAddTrackComponent = /* @__PURE__ */ read(\"adapterNeedsAddTrackComponent\")\nexport const addAdapterGuesser = /* @__PURE__ */ read(\"addAdapterGuesser\")\nexport const addAddTrackComponent = /* @__PURE__ */ read(\"addAddTrackComponent\")\nexport const addAndShowTrack = /* @__PURE__ */ read(\"addAndShowTrack\")\nexport const addOrReplaceView = /* @__PURE__ */ read(\"addOrReplaceView\")\nexport const addTrackFromWidget = /* @__PURE__ */ read(\"addTrackFromWidget\")\nexport const addTrackTypeGuesser = /* @__PURE__ */ read(\"addTrackTypeGuesser\")\nexport const addTracksFromWidget = /* @__PURE__ */ read(\"addTracksFromWidget\")\nexport const aesDecrypt = /* @__PURE__ */ read(\"aesDecrypt\")\nexport const aesEncrypt = /* @__PURE__ */ read(\"aesEncrypt\")\nexport const animationAllowed = /* @__PURE__ */ read(\"animationAllowed\")\nexport const applyOrderWithin = /* @__PURE__ */ read(\"applyOrderWithin\")\nexport const applyZoomAccum = /* @__PURE__ */ read(\"applyZoomAccum\")\nexport const assembleLocString = /* @__PURE__ */ read(\"assembleLocString\")\nexport const assembleLocStringRaw = /* @__PURE__ */ read(\"assembleLocStringRaw\")\nexport const assembleLocStrings = /* @__PURE__ */ read(\"assembleLocStrings\")\nexport const avg = /* @__PURE__ */ read(\"avg\")\nexport const b64PadSuffix = /* @__PURE__ */ read(\"b64PadSuffix\")\nexport const bezierConnectorPath = /* @__PURE__ */ read(\"bezierConnectorPath\")\nexport const bpSpanPx = /* @__PURE__ */ read(\"bpSpanPx\")\nexport const bpToPx = /* @__PURE__ */ read(\"bpToPx\")\nexport const bytesForRegions = /* @__PURE__ */ read(\"bytesForRegions\")\nexport const calculateRedispatchRange = /* @__PURE__ */ read(\"calculateRedispatchRange\")\nexport const canReplaceView = /* @__PURE__ */ read(\"canReplaceView\")\nexport const canonicalizeViewRefName = /* @__PURE__ */ read(\"canonicalizeViewRefName\")\nexport const capitalizeFirst = /* @__PURE__ */ read(\"capitalizeFirst\")\nexport const checkAbortSignal = /* @__PURE__ */ read(\"checkAbortSignal\")\nexport const clamp = /* @__PURE__ */ read(\"clamp\")\nexport const clampToContig = /* @__PURE__ */ read(\"clampToContig\")\nexport const clampToListedContig = /* @__PURE__ */ read(\"clampToListedContig\")\nexport const clearFileFromCache = /* @__PURE__ */ read(\"clearFileFromCache\")\nexport const cmpStr = /* @__PURE__ */ read(\"cmpStr\")\nexport const coarseStripHTML = /* @__PURE__ */ read(\"coarseStripHTML\")\nexport const codonTable = /* @__PURE__ */ read(\"codonTable\")\nexport const compareLocStrings = /* @__PURE__ */ read(\"compareLocStrings\")\nexport const compareLocs = /* @__PURE__ */ read(\"compareLocs\")\nexport const complement = /* @__PURE__ */ read(\"complement\")\nexport const complementTable = /* @__PURE__ */ read(\"complementTable\")\nexport const containerDisplaysAssembly = /* @__PURE__ */ read(\"containerDisplaysAssembly\")\nexport const createAbortBreakpoint = /* @__PURE__ */ read(\"createAbortBreakpoint\")\nexport const createAbortRotation = /* @__PURE__ */ read(\"createAbortRotation\")\nexport const createProgressReporter = /* @__PURE__ */ read(\"createProgressReporter\")\nexport const createScrollLatch = /* @__PURE__ */ read(\"createScrollLatch\")\nexport const createSharedSetup = /* @__PURE__ */ read(\"createSharedSetup\")\nexport const createStatusChannel = /* @__PURE__ */ read(\"createStatusChannel\")\nexport const createStatusFanOut = /* @__PURE__ */ read(\"createStatusFanOut\")\nexport const createStatusWindow = /* @__PURE__ */ read(\"createStatusWindow\")\nexport const dedupe = /* @__PURE__ */ read(\"dedupe\")\nexport const defaultCodonTable = /* @__PURE__ */ read(\"defaultCodonTable\")\nexport const defaultStarts = /* @__PURE__ */ read(\"defaultStarts\")\nexport const diagonalizeRegions = /* @__PURE__ */ read(\"diagonalizeRegions\")\nexport const diffTrackConfig = /* @__PURE__ */ read(\"diffTrackConfig\")\nexport const doesIntersect2 = /* @__PURE__ */ read(\"doesIntersect2\")\nexport const downloadPhase = /* @__PURE__ */ read(\"downloadPhase\")\nexport const downloadStatus = /* @__PURE__ */ read(\"downloadStatus\")\nexport const drawImageOntoCanvasContext = /* @__PURE__ */ read(\"drawImageOntoCanvasContext\")\nexport const easeInOutCubic = /* @__PURE__ */ read(\"easeInOutCubic\")\nexport const editableConfig = /* @__PURE__ */ read(\"editableConfig\")\nexport const encodeSessionParam = /* @__PURE__ */ read(\"encodeSessionParam\")\nexport const ensureFileHandleReady = /* @__PURE__ */ read(\"ensureFileHandleReady\")\nexport const expandLooseTrackConfig = /* @__PURE__ */ read(\"expandLooseTrackConfig\")\nexport const featureSpanPx = /* @__PURE__ */ read(\"featureSpanPx\")\nexport const fetchAndMaybeUnzip = /* @__PURE__ */ read(\"fetchAndMaybeUnzip\")\nexport const fetchAndMaybeUnzipText = /* @__PURE__ */ read(\"fetchAndMaybeUnzipText\")\nexport const fetchJson = /* @__PURE__ */ read(\"fetchJson\")\nexport const fileToLocation = /* @__PURE__ */ read(\"fileToLocation\")\nexport const findFileHandleIds = /* @__PURE__ */ read(\"findFileHandleIds\")\nexport const findParentThat = /* @__PURE__ */ read(\"findParentThat\")\nexport const findParentThatIs = /* @__PURE__ */ read(\"findParentThatIs\")\nexport const finishAddTrack = /* @__PURE__ */ read(\"finishAddTrack\")\nexport const flattenTrackConfigDelta = /* @__PURE__ */ read(\"flattenTrackConfigDelta\")\nexport const formatBytes = /* @__PURE__ */ read(\"formatBytes\")\nexport const formatRelativeTime = /* @__PURE__ */ read(\"formatRelativeTime\")\nexport const fromUrlSafeB64 = /* @__PURE__ */ read(\"fromUrlSafeB64\")\nexport const gatherOverlaps = /* @__PURE__ */ read(\"gatherOverlaps\")\nexport const generateCodonTable = /* @__PURE__ */ read(\"generateCodonTable\")\nexport const generateUnknownTrackConf = /* @__PURE__ */ read(\"generateUnknownTrackConf\")\nexport const generateUnsupportedTrackConf = /* @__PURE__ */ read(\"generateUnsupportedTrackConf\")\nexport const getAssemblyHost = /* @__PURE__ */ read(\"getAssemblyHost\")\nexport const getBlob = /* @__PURE__ */ read(\"getBlob\")\nexport const getBlobMap = /* @__PURE__ */ read(\"getBlobMap\")\nexport const getBpDisplayStr = /* @__PURE__ */ read(\"getBpDisplayStr\")\nexport const getConfAssemblyNames = /* @__PURE__ */ read(\"getConfAssemblyNames\")\nexport const getContainingDisplay = /* @__PURE__ */ read(\"getContainingDisplay\")\nexport const getContainingTrack = /* @__PURE__ */ read(\"getContainingTrack\")\nexport const getContainingView = /* @__PURE__ */ read(\"getContainingView\")\nexport const getDialogHost = /* @__PURE__ */ read(\"getDialogHost\")\nexport const getDisplayStr = /* @__PURE__ */ read(\"getDisplayStr\")\nexport const getEnv = /* @__PURE__ */ read(\"getEnv\")\nexport const getFileFromCache = /* @__PURE__ */ read(\"getFileFromCache\")\nexport const getFileHandle = /* @__PURE__ */ read(\"getFileHandle\")\nexport const getFileName = /* @__PURE__ */ read(\"getFileName\")\nexport const getFillProps = /* @__PURE__ */ read(\"getFillProps\")\nexport const getFrame = /* @__PURE__ */ read(\"getFrame\")\nexport const getLocationUri = /* @__PURE__ */ read(\"getLocationUri\")\nexport const getNotificationSink = /* @__PURE__ */ read(\"getNotificationSink\")\nexport const getNumberGrouping = /* @__PURE__ */ read(\"getNumberGrouping\")\nexport const getPaletteHost = /* @__PURE__ */ read(\"getPaletteHost\")\nexport const getPluginUpdate = /* @__PURE__ */ read(\"getPluginUpdate\")\nexport const getRenderingServices = /* @__PURE__ */ read(\"getRenderingServices\")\nexport const getRpcHost = /* @__PURE__ */ read(\"getRpcHost\")\nexport const getRpcSessionId = /* @__PURE__ */ read(\"getRpcSessionId\")\nexport const getSession = /* @__PURE__ */ read(\"getSession\")\nexport const getSessionServices = /* @__PURE__ */ read(\"getSessionServices\")\nexport const getStr = /* @__PURE__ */ read(\"getStr\")\nexport const getStrokeProps = /* @__PURE__ */ read(\"getStrokeProps\")\nexport const getTickDisplayStr = /* @__PURE__ */ read(\"getTickDisplayStr\")\nexport const getTrackAssemblyNames = /* @__PURE__ */ read(\"getTrackAssemblyNames\")\nexport const getTrackName = /* @__PURE__ */ read(\"getTrackName\")\nexport const getZoomNormalizer = /* @__PURE__ */ read(\"getZoomNormalizer\")\nexport const groupBy = /* @__PURE__ */ read(\"groupBy\")\nexport const guessAdapter = /* @__PURE__ */ read(\"guessAdapter\")\nexport const guessTrackConf = /* @__PURE__ */ read(\"guessTrackConf\")\nexport const guessTrackType = /* @__PURE__ */ read(\"guessTrackType\")\nexport const handleFetchError = /* @__PURE__ */ read(\"handleFetchError\")\nexport const hasFileHandlesInCache = /* @__PURE__ */ read(\"hasFileHandlesInCache\")\nexport const hashCode = /* @__PURE__ */ read(\"hashCode\")\nexport const hideTrackGeneric = /* @__PURE__ */ read(\"hideTrackGeneric\")\nexport const indexedDBAvailable = /* @__PURE__ */ read(\"indexedDBAvailable\")\nexport const installablePlugins = /* @__PURE__ */ read(\"installablePlugins\")\nexport const installedVersionFromUrl = /* @__PURE__ */ read(\"installedVersionFromUrl\")\nexport const intersection2 = /* @__PURE__ */ read(\"intersection2\")\nexport const isAbortException = /* @__PURE__ */ read(\"isAbortException\")\nexport const isAbstractMenuManager = /* @__PURE__ */ read(\"isAbstractMenuManager\")\nexport const isActivelyZooming = /* @__PURE__ */ read(\"isActivelyZooming\")\nexport const isAppRootModel = /* @__PURE__ */ read(\"isAppRootModel\")\nexport const isAuthNeededException = /* @__PURE__ */ read(\"isAuthNeededException\")\nexport const isBlobLocation = /* @__PURE__ */ read(\"isBlobLocation\")\nexport const isDataCurrent = /* @__PURE__ */ read(\"isDataCurrent\")\nexport const isDisplayModel = /* @__PURE__ */ read(\"isDisplayModel\")\nexport const isEditableJBrowseConfig = /* @__PURE__ */ read(\"isEditableJBrowseConfig\")\nexport const isElectron = /* @__PURE__ */ read(\"isElectron\")\nexport const isFeature = /* @__PURE__ */ read(\"isFeature\")\nexport const isFileHandleLocation = /* @__PURE__ */ read(\"isFileHandleLocation\")\nexport const isFileSystemAccessSupported = /* @__PURE__ */ read(\"isFileSystemAccessSupported\")\nexport const isGeneLikeType = /* @__PURE__ */ read(\"isGeneLikeType\")\nexport const isGzip = /* @__PURE__ */ read(\"isGzip\")\nexport const isLocalPathLocation = /* @__PURE__ */ read(\"isLocalPathLocation\")\nexport const isLooseTrackConfig = /* @__PURE__ */ read(\"isLooseTrackConfig\")\nexport const isNode = /* @__PURE__ */ read(\"isNode\")\nexport const isObject = /* @__PURE__ */ read(\"isObject\")\nexport const isPalindromic = /* @__PURE__ */ read(\"isPalindromic\")\nexport const isPluginInstalled = /* @__PURE__ */ read(\"isPluginInstalled\")\nexport const isRootModelWithInternetAccounts = /* @__PURE__ */ read(\"isRootModelWithInternetAccounts\")\nexport const isRpcResult = /* @__PURE__ */ read(\"isRpcResult\")\nexport const isSelectionContainer = /* @__PURE__ */ read(\"isSelectionContainer\")\nexport const isSequenceMatchType = /* @__PURE__ */ read(\"isSequenceMatchType\")\nexport const isSessionModel = /* @__PURE__ */ read(\"isSessionModel\")\nexport const isSessionModelWithConfigEditing = /* @__PURE__ */ read(\"isSessionModelWithConfigEditing\")\nexport const isSessionModelWithConnectionEditing = /* @__PURE__ */ read(\"isSessionModelWithConnectionEditing\")\nexport const isSessionModelWithConnections = /* @__PURE__ */ read(\"isSessionModelWithConnections\")\nexport const isSessionModelWithWidgets = /* @__PURE__ */ read(\"isSessionModelWithWidgets\")\nexport const isSessionServices = /* @__PURE__ */ read(\"isSessionServices\")\nexport const isSessionWithAddAssembly = /* @__PURE__ */ read(\"isSessionWithAddAssembly\")\nexport const isSessionWithAddSessionTrack = /* @__PURE__ */ read(\"isSessionWithAddSessionTrack\")\nexport const isSessionWithAddTracks = /* @__PURE__ */ read(\"isSessionWithAddTracks\")\nexport const isSessionWithDeleteTrackConf = /* @__PURE__ */ read(\"isSessionWithDeleteTrackConf\")\nexport const isSessionWithMultipleViews = /* @__PURE__ */ read(\"isSessionWithMultipleViews\")\nexport const isSessionWithPermanentPlugins = /* @__PURE__ */ read(\"isSessionWithPermanentPlugins\")\nexport const isSessionWithPublishTrackConf = /* @__PURE__ */ read(\"isSessionWithPublishTrackConf\")\nexport const isSessionWithSessionPlugins = /* @__PURE__ */ read(\"isSessionWithSessionPlugins\")\nexport const isSessionWithSessionTracks = /* @__PURE__ */ read(\"isSessionWithSessionTracks\")\nexport const isSessionWithShareURL = /* @__PURE__ */ read(\"isSessionWithShareURL\")\nexport const isSessionWithViewReplacement = /* @__PURE__ */ read(\"isSessionWithViewReplacement\")\nexport const isSupportedIndexingAdapter = /* @__PURE__ */ read(\"isSupportedIndexingAdapter\")\nexport const isTrackContainer = /* @__PURE__ */ read(\"isTrackContainer\")\nexport const isTrackModel = /* @__PURE__ */ read(\"isTrackModel\")\nexport const isTrackViewModel = /* @__PURE__ */ read(\"isTrackViewModel\")\nexport const isUriLocation = /* @__PURE__ */ read(\"isUriLocation\")\nexport const isValidTag = /* @__PURE__ */ read(\"isValidTag\")\nexport const isViewContainer = /* @__PURE__ */ read(\"isViewContainer\")\nexport const isViewModel = /* @__PURE__ */ read(\"isViewModel\")\nexport const isWebWorker = /* @__PURE__ */ read(\"isWebWorker\")\nexport const iupacToRegex = /* @__PURE__ */ read(\"iupacToRegex\")\nexport const launchOrReplaceView = /* @__PURE__ */ read(\"launchOrReplaceView\")\nexport const linkify = /* @__PURE__ */ read(\"linkify\")\nexport const locStringsToRegions = /* @__PURE__ */ read(\"locStringsToRegions\")\nexport const localStorageAvailable = /* @__PURE__ */ read(\"localStorageAvailable\")\nexport const localStorageGetBoolean = /* @__PURE__ */ read(\"localStorageGetBoolean\")\nexport const localStorageGetItem = /* @__PURE__ */ read(\"localStorageGetItem\")\nexport const localStorageGetJSON = /* @__PURE__ */ read(\"localStorageGetJSON\")\nexport const localStorageGetNumber = /* @__PURE__ */ read(\"localStorageGetNumber\")\nexport const localStorageGetStringArray = /* @__PURE__ */ read(\"localStorageGetStringArray\")\nexport const localStorageRemoveItem = /* @__PURE__ */ read(\"localStorageRemoveItem\")\nexport const localStorageSetBoolean = /* @__PURE__ */ read(\"localStorageSetBoolean\")\nexport const localStorageSetItem = /* @__PURE__ */ read(\"localStorageSetItem\")\nexport const localStorageSetJSON = /* @__PURE__ */ read(\"localStorageSetJSON\")\nexport const localStorageSetNumber = /* @__PURE__ */ read(\"localStorageSetNumber\")\nexport const makeAbortError = /* @__PURE__ */ read(\"makeAbortError\")\nexport const makeIndex = /* @__PURE__ */ read(\"makeIndex\")\nexport const makeIndexType = /* @__PURE__ */ read(\"makeIndexType\")\nexport const makeTrackId = /* @__PURE__ */ read(\"makeTrackId\")\nexport const matchRefNames = /* @__PURE__ */ read(\"matchRefNames\")\nexport const matchTrackId = /* @__PURE__ */ read(\"matchTrackId\")\nexport const max = /* @__PURE__ */ read(\"max\")\nexport const maxFinite = /* @__PURE__ */ read(\"maxFinite\")\nexport const measureGridWidth = /* @__PURE__ */ read(\"measureGridWidth\")\nexport const measureText = /* @__PURE__ */ read(\"measureText\")\nexport const measuredFont = /* @__PURE__ */ read(\"measuredFont\")\nexport const mergeIntervals = /* @__PURE__ */ read(\"mergeIntervals\")\nexport const mergeTrackConfig = /* @__PURE__ */ read(\"mergeTrackConfig\")\nexport const min = /* @__PURE__ */ read(\"min\")\nexport const minmax = /* @__PURE__ */ read(\"minmax\")\nexport const morphClockMs = /* @__PURE__ */ read(\"morphClockMs\")\nexport const namesTemporaryAssembly = /* @__PURE__ */ read(\"namesTemporaryAssembly\")\nexport const normalizeWheelDelta = /* @__PURE__ */ read(\"normalizeWheelDelta\")\nexport const notEmpty = /* @__PURE__ */ read(\"notEmpty\")\nexport const notifyFeatureDetailsMiss = /* @__PURE__ */ read(\"notifyFeatureDetailsMiss\")\nexport const notifyLocalStorageKey = /* @__PURE__ */ read(\"notifyLocalStorageKey\")\nexport const objectHash = /* @__PURE__ */ read(\"objectHash\")\nexport const openFeatureWidget = /* @__PURE__ */ read(\"openFeatureWidget\")\nexport const parseBpString = /* @__PURE__ */ read(\"parseBpString\")\nexport const parseLocString = /* @__PURE__ */ read(\"parseLocString\")\nexport const parseLocStringOneBased = /* @__PURE__ */ read(\"parseLocStringOneBased\")\nexport const parseMotifList = /* @__PURE__ */ read(\"parseMotifList\")\nexport const parseRegionNames = /* @__PURE__ */ read(\"parseRegionNames\")\nexport const persistTrackConfigNow = /* @__PURE__ */ read(\"persistTrackConfigNow\")\nexport const pluralize = /* @__PURE__ */ read(\"pluralize\")\nexport const polarToCartesian = /* @__PURE__ */ read(\"polarToCartesian\")\nexport const progressLabel = /* @__PURE__ */ read(\"progressLabel\")\nexport const rIC = /* @__PURE__ */ read(\"rIC\")\nexport const radToDeg = /* @__PURE__ */ read(\"radToDeg\")\nexport const rankRefNames = /* @__PURE__ */ read(\"rankRefNames\")\nexport const readSessionFromDynamo = /* @__PURE__ */ read(\"readSessionFromDynamo\")\nexport const readSharedSession = /* @__PURE__ */ read(\"readSharedSession\")\nexport const reducePrecision = /* @__PURE__ */ read(\"reducePrecision\")\nexport const renameComparativeRegions = /* @__PURE__ */ read(\"renameComparativeRegions\")\nexport const renameRegionIfNeeded = /* @__PURE__ */ read(\"renameRegionIfNeeded\")\nexport const renameRegionsIfNeeded = /* @__PURE__ */ read(\"renameRegionsIfNeeded\")\nexport const reorder = /* @__PURE__ */ read(\"reorder\")\nexport const reorderWithin = /* @__PURE__ */ read(\"reorderWithin\")\nexport const resolveNamedRegions = /* @__PURE__ */ read(\"resolveNamedRegions\")\nexport const resolvePlugin = /* @__PURE__ */ read(\"resolvePlugin\")\nexport const resolveSelectedIds = /* @__PURE__ */ read(\"resolveSelectedIds\")\nexport const resolveStorePluginRefs = /* @__PURE__ */ read(\"resolveStorePluginRefs\")\nexport const resolveStoreRefs = /* @__PURE__ */ read(\"resolveStoreRefs\")\nexport const resolveUri = /* @__PURE__ */ read(\"resolveUri\")\nexport const restoreFileHandles = /* @__PURE__ */ read(\"restoreFileHandles\")\nexport const restoreFileHandlesFromSnapshot = /* @__PURE__ */ read(\"restoreFileHandlesFromSnapshot\")\nexport const revcom = /* @__PURE__ */ read(\"revcom\")\nexport const reverse = /* @__PURE__ */ read(\"reverse\")\nexport const reverseComplementIupac = /* @__PURE__ */ read(\"reverseComplementIupac\")\nexport const revlist = /* @__PURE__ */ read(\"revlist\")\nexport const saveAs = /* @__PURE__ */ read(\"saveAs\")\nexport const saveSvgAsImage = /* @__PURE__ */ read(\"saveSvgAsImage\")\nexport const scheduleDetachedDestroy = /* @__PURE__ */ read(\"scheduleDetachedDestroy\")\nexport const selectNamedRegions = /* @__PURE__ */ read(\"selectNamedRegions\")\nexport const sessionParamKind = /* @__PURE__ */ read(\"sessionParamKind\")\nexport const sessionParamPayload = /* @__PURE__ */ read(\"sessionParamPayload\")\nexport const sessionStorageAvailable = /* @__PURE__ */ read(\"sessionStorageAvailable\")\nexport const sessionStorageGetItem = /* @__PURE__ */ read(\"sessionStorageGetItem\")\nexport const sessionStorageRemoveItem = /* @__PURE__ */ read(\"sessionStorageRemoveItem\")\nexport const sessionStorageSetItem = /* @__PURE__ */ read(\"sessionStorageSetItem\")\nexport const setBlobMap = /* @__PURE__ */ read(\"setBlobMap\")\nexport const setFileInCache = /* @__PURE__ */ read(\"setFileInCache\")\nexport const setNumberGrouping = /* @__PURE__ */ read(\"setNumberGrouping\")\nexport const sha256 = /* @__PURE__ */ read(\"sha256\")\nexport const sha256Base64 = /* @__PURE__ */ read(\"sha256Base64\")\nexport const sha256Base64Url = /* @__PURE__ */ read(\"sha256Base64Url\")\nexport const shareEndpoint = /* @__PURE__ */ read(\"shareEndpoint\")\nexport const shorten = /* @__PURE__ */ read(\"shorten\")\nexport const shorten2 = /* @__PURE__ */ read(\"shorten2\")\nexport const showTrackGeneric = /* @__PURE__ */ read(\"showTrackGeneric\")\nexport const springAnimate = /* @__PURE__ */ read(\"springAnimate\")\nexport const statusFraction = /* @__PURE__ */ read(\"statusFraction\")\nexport const statusMessageText = /* @__PURE__ */ read(\"statusMessageText\")\nexport const statusProgressLabel = /* @__PURE__ */ read(\"statusProgressLabel\")\nexport const statusReading = /* @__PURE__ */ read(\"statusReading\")\nexport const statusSource = /* @__PURE__ */ read(\"statusSource\")\nexport const stitch = /* @__PURE__ */ read(\"stitch\")\nexport const storeBlobLocation = /* @__PURE__ */ read(\"storeBlobLocation\")\nexport const storeFileHandle = /* @__PURE__ */ read(\"storeFileHandle\")\nexport const storeFileHandleLocation = /* @__PURE__ */ read(\"storeFileHandleLocation\")\nexport const stringify = /* @__PURE__ */ read(\"stringify\")\nexport const stripAlpha = /* @__PURE__ */ read(\"stripAlpha\")\nexport const stripFileExtension = /* @__PURE__ */ read(\"stripFileExtension\")\nexport const stripTrackIds = /* @__PURE__ */ read(\"stripTrackIds\")\nexport const subscribeToLocalStorageKey = /* @__PURE__ */ read(\"subscribeToLocalStorageKey\")\nexport const sum = /* @__PURE__ */ read(\"sum\")\nexport const svgHtmlToPngBlob = /* @__PURE__ */ read(\"svgHtmlToPngBlob\")\nexport const tagRegex = /* @__PURE__ */ read(\"tagRegex\")\nexport const testAdapter = /* @__PURE__ */ read(\"testAdapter\")\nexport const throttleStatusEmits = /* @__PURE__ */ read(\"throttleStatusEmits\")\nexport const toBase64 = /* @__PURE__ */ read(\"toBase64\")\nexport const toBase64Url = /* @__PURE__ */ read(\"toBase64Url\")\nexport const toLocale = /* @__PURE__ */ read(\"toLocale\")\nexport const toUrlSafeB64 = /* @__PURE__ */ read(\"toUrlSafeB64\")\nexport const toggleTrackGeneric = /* @__PURE__ */ read(\"toggleTrackGeneric\")\nexport const truncateMiddle = /* @__PURE__ */ read(\"truncateMiddle\")\nexport const updateStatus = /* @__PURE__ */ read(\"updateStatus\")\nexport const useAddTrackFields = /* @__PURE__ */ read(\"useAddTrackFields\")\nexport const useCreateOnce = /* @__PURE__ */ read(\"useCreateOnce\")\nexport const useDebounce = /* @__PURE__ */ read(\"useDebounce\")\nexport const useFinalUnmount = /* @__PURE__ */ read(\"useFinalUnmount\")\nexport const useLocalStorage = /* @__PURE__ */ read(\"useLocalStorage\")\nexport const useWidthSetter = /* @__PURE__ */ read(\"useWidthSetter\")\nexport const verifyPermission = /* @__PURE__ */ read(\"verifyPermission\")\nexport const wheelFrameElapsedMs = /* @__PURE__ */ read(\"wheelFrameElapsedMs\")\nexport const wheelZoomAccum = /* @__PURE__ */ read(\"wheelZoomAccum\")\nexport const withAbortCheck = /* @__PURE__ */ read(\"withAbortCheck\")\nexport const withFeatureDetails = /* @__PURE__ */ read(\"withFeatureDetails\")\nexport const withProgress = /* @__PURE__ */ read(\"withProgress\")\nexport const workflowForm = /* @__PURE__ */ read(\"workflowForm\")\nexport default host && host.__esModule ? host.default : host", "const host = JBrowseExports[\"@mui/material/SvgIcon\"]\nconst read = name =>\n host != null && name in Object(host)\n ? host[name]\n : Object.assign(\n function () {\n throw new Error(\"This JBrowse does not provide '\" + name + \"' from '\" + \"@mui/material/SvgIcon\" + \"' to plugins: \" + \"MsaView was built for a different JBrowse version, so update the plugin or JBrowse\")\n },\n { jbrowseHostMissing: name },\n )\nexport const createSvgIcon = /* @__PURE__ */ read(\"createSvgIcon\")\nexport default host && host.__esModule ? host.default : host", "const host = JBrowseExports[\"react/jsx-runtime\"]\nconst read = name =>\n host != null && name in Object(host)\n ? host[name]\n : Object.assign(\n function () {\n throw new Error(\"This JBrowse does not provide '\" + name + \"' from '\" + \"react/jsx-runtime\" + \"' to plugins: \" + \"MsaView was built for a different JBrowse version, so update the plugin or JBrowse\")\n },\n { jbrowseHostMissing: name },\n )\nexport const Fragment = /* @__PURE__ */ read(\"Fragment\")\nexport const jsx = /* @__PURE__ */ read(\"jsx\")\nexport const jsxs = /* @__PURE__ */ read(\"jsxs\")\nexport default host && host.__esModule ? host.default : host"],
|
|
5
|
-
"mappings": "AAAA,IAAMA,EAAO,eAAe,oBAAoB,EAC1CC,EAAOC,GACXF,GAAQ,MAAQE,KAAQ,OAAOF,CAAI,EAC/BA,EAAKE,CAAI,EACT,OAAO,OACL,UAAY,CACV,MAAM,IAAI,MAAM,kCAAoCA,EAAO,4HAA2I,CACxM,EACA,CAAE,mBAAoBA,CAAK,CAC7B,EAkDC,IAAMC,EAAwBC,EAAK,OAAO,EAoC1C,IAAMC,EAAyCC,EAAK,wBAAwB,EAqB5E,IAAMC,EAAqCC,EAAK,oBAAoB,EAC9DC,EAAoCD,EAAK,mBAAmB,EAGlE,IAAME,EAAyBC,EAAK,QAAQ,EAc5C,IAAMC,EAA6BC,EAAK,YAAY,EAQpD,IAAMC,EAA0BC,EAAK,SAAS,EAa9C,IAAMC,EAAwCC,EAAK,uBAAuB,EAY1E,IAAMC,EAAiCC,EAAK,gBAAgB,EAmB5D,IAAMC,EAA+CC,EAAK,8BAA8B,EAExF,IAAMC,EAA+CC,EAAK,8BAA8B,EAKxF,IAAMC,EAA6CC,EAAK,4BAA4B,EA6CpF,IAAMC,EAA2BC,EAAK,UAAU,EAuDhD,IAAMC,EAA2BC,EAAK,UAAU,EAKhD,IAAMC,EAAsCC,EAAK,qBAAqB,EAYtE,IAAMC,EAAsBC,EAAK,KAAK,EAyB7C,IAAOC,EAAQC,GAAQA,EAAK,WAAaA,EAAK,QAAUA
|
|
6
|
-
"names": ["host", "read", "name", "clamp", "read", "fetchAndMaybeUnzipText", "read", "getContainingTrack", "read", "getContainingView", "getEnv", "read", "getSession", "read", "groupBy", "read", "isAbstractMenuManager", "read", "isGeneLikeType", "read", "isSessionWithAddSessionTrack", "read", "isSessionWithDeleteTrackConf", "read", "isSessionWithSessionTracks", "read", "notEmpty", "read", "shorten2", "read", "statusProgressLabel", "read", "sum", "read", "util_default", "host"
|
|
3
|
+
"sources": ["jbrowse-host:@jbrowse/core/util"],
|
|
4
|
+
"sourcesContent": ["const host = JBrowseExports[\"@jbrowse/core/util\"]\nconst read = name =>\n host != null && name in Object(host)\n ? host[name]\n : Object.assign(\n function () {\n throw new Error(\"This JBrowse does not provide '\" + name + \"' from '\" + \"@jbrowse/core/util\" + \"' to plugins: \" + \"MsaView was built for a different JBrowse version, so update the plugin or JBrowse\")\n },\n { jbrowseHostMissing: name },\n )\nexport const AuthNeededError = /* @__PURE__ */ read(\"AuthNeededError\")\nexport const BEZIER_CONNECTOR_MAX_REACH_PX = /* @__PURE__ */ read(\"BEZIER_CONNECTOR_MAX_REACH_PX\")\nexport const CUBIC_APEX_RATIO = /* @__PURE__ */ read(\"CUBIC_APEX_RATIO\")\nexport const ENCODED_PREFIX = /* @__PURE__ */ read(\"ENCODED_PREFIX\")\nexport const IUPAC_MOTIF_REGEX = /* @__PURE__ */ read(\"IUPAC_MOTIF_REGEX\")\nexport const IntervalTree = /* @__PURE__ */ read(\"IntervalTree\")\nexport const JSON_PREFIX = /* @__PURE__ */ read(\"JSON_PREFIX\")\nexport const LOCAL_PREFIX = /* @__PURE__ */ read(\"LOCAL_PREFIX\")\nexport const MAX_GLOB_REGIONS = /* @__PURE__ */ read(\"MAX_GLOB_REGIONS\")\nexport const MAX_ZOOM_RATE_PER_MS = /* @__PURE__ */ read(\"MAX_ZOOM_RATE_PER_MS\")\nexport const MORPH_DURATION_MS = /* @__PURE__ */ read(\"MORPH_DURATION_MS\")\nexport const SCROLL_ZOOM_FACTOR_DIVISOR = /* @__PURE__ */ read(\"SCROLL_ZOOM_FACTOR_DIVISOR\")\nexport const SESSION_PARAM_KINDS = /* @__PURE__ */ read(\"SESSION_PARAM_KINDS\")\nexport const SHARE_PREFIX = /* @__PURE__ */ read(\"SHARE_PREFIX\")\nexport const SPEC_PREFIX = /* @__PURE__ */ read(\"SPEC_PREFIX\")\nexport const SimpleFeature = /* @__PURE__ */ read(\"SimpleFeature\")\nexport const UNKNOWN = /* @__PURE__ */ read(\"UNKNOWN\")\nexport const UNSUPPORTED = /* @__PURE__ */ read(\"UNSUPPORTED\")\nexport const UnknownRefNameError = /* @__PURE__ */ read(\"UnknownRefNameError\")\nexport const ZOOM_ACTIVE_WINDOW_MS = /* @__PURE__ */ read(\"ZOOM_ACTIVE_WINDOW_MS\")\nexport const accumulateScroll = /* @__PURE__ */ read(\"accumulateScroll\")\nexport const adapterConfigFromSpec = /* @__PURE__ */ read(\"adapterConfigFromSpec\")\nexport const adapterNeedsAddTrackComponent = /* @__PURE__ */ read(\"adapterNeedsAddTrackComponent\")\nexport const addAdapterGuesser = /* @__PURE__ */ read(\"addAdapterGuesser\")\nexport const addAddTrackComponent = /* @__PURE__ */ read(\"addAddTrackComponent\")\nexport const addAndShowTrack = /* @__PURE__ */ read(\"addAndShowTrack\")\nexport const addOrReplaceView = /* @__PURE__ */ read(\"addOrReplaceView\")\nexport const addTrackFromWidget = /* @__PURE__ */ read(\"addTrackFromWidget\")\nexport const addTrackTypeGuesser = /* @__PURE__ */ read(\"addTrackTypeGuesser\")\nexport const addTracksFromWidget = /* @__PURE__ */ read(\"addTracksFromWidget\")\nexport const aesDecrypt = /* @__PURE__ */ read(\"aesDecrypt\")\nexport const aesEncrypt = /* @__PURE__ */ read(\"aesEncrypt\")\nexport const animationAllowed = /* @__PURE__ */ read(\"animationAllowed\")\nexport const applyOrderWithin = /* @__PURE__ */ read(\"applyOrderWithin\")\nexport const applyZoomAccum = /* @__PURE__ */ read(\"applyZoomAccum\")\nexport const assembleLocString = /* @__PURE__ */ read(\"assembleLocString\")\nexport const assembleLocStringRaw = /* @__PURE__ */ read(\"assembleLocStringRaw\")\nexport const assembleLocStrings = /* @__PURE__ */ read(\"assembleLocStrings\")\nexport const avg = /* @__PURE__ */ read(\"avg\")\nexport const b64PadSuffix = /* @__PURE__ */ read(\"b64PadSuffix\")\nexport const bezierConnectorPath = /* @__PURE__ */ read(\"bezierConnectorPath\")\nexport const bpSpanPx = /* @__PURE__ */ read(\"bpSpanPx\")\nexport const bpToPx = /* @__PURE__ */ read(\"bpToPx\")\nexport const bytesForRegions = /* @__PURE__ */ read(\"bytesForRegions\")\nexport const calculateRedispatchRange = /* @__PURE__ */ read(\"calculateRedispatchRange\")\nexport const canReplaceView = /* @__PURE__ */ read(\"canReplaceView\")\nexport const canonicalizeViewRefName = /* @__PURE__ */ read(\"canonicalizeViewRefName\")\nexport const capitalizeFirst = /* @__PURE__ */ read(\"capitalizeFirst\")\nexport const checkAbortSignal = /* @__PURE__ */ read(\"checkAbortSignal\")\nexport const clamp = /* @__PURE__ */ read(\"clamp\")\nexport const clampToContig = /* @__PURE__ */ read(\"clampToContig\")\nexport const clampToListedContig = /* @__PURE__ */ read(\"clampToListedContig\")\nexport const clearFileFromCache = /* @__PURE__ */ read(\"clearFileFromCache\")\nexport const cmpStr = /* @__PURE__ */ read(\"cmpStr\")\nexport const coarseStripHTML = /* @__PURE__ */ read(\"coarseStripHTML\")\nexport const codonTable = /* @__PURE__ */ read(\"codonTable\")\nexport const compareLocStrings = /* @__PURE__ */ read(\"compareLocStrings\")\nexport const compareLocs = /* @__PURE__ */ read(\"compareLocs\")\nexport const complement = /* @__PURE__ */ read(\"complement\")\nexport const complementTable = /* @__PURE__ */ read(\"complementTable\")\nexport const containerDisplaysAssembly = /* @__PURE__ */ read(\"containerDisplaysAssembly\")\nexport const createAbortBreakpoint = /* @__PURE__ */ read(\"createAbortBreakpoint\")\nexport const createAbortRotation = /* @__PURE__ */ read(\"createAbortRotation\")\nexport const createProgressReporter = /* @__PURE__ */ read(\"createProgressReporter\")\nexport const createScrollLatch = /* @__PURE__ */ read(\"createScrollLatch\")\nexport const createSharedSetup = /* @__PURE__ */ read(\"createSharedSetup\")\nexport const createStatusChannel = /* @__PURE__ */ read(\"createStatusChannel\")\nexport const createStatusFanOut = /* @__PURE__ */ read(\"createStatusFanOut\")\nexport const createStatusWindow = /* @__PURE__ */ read(\"createStatusWindow\")\nexport const dedupe = /* @__PURE__ */ read(\"dedupe\")\nexport const defaultCodonTable = /* @__PURE__ */ read(\"defaultCodonTable\")\nexport const defaultStarts = /* @__PURE__ */ read(\"defaultStarts\")\nexport const diagonalizeRegions = /* @__PURE__ */ read(\"diagonalizeRegions\")\nexport const diffTrackConfig = /* @__PURE__ */ read(\"diffTrackConfig\")\nexport const doesIntersect2 = /* @__PURE__ */ read(\"doesIntersect2\")\nexport const downloadPhase = /* @__PURE__ */ read(\"downloadPhase\")\nexport const downloadStatus = /* @__PURE__ */ read(\"downloadStatus\")\nexport const drawImageOntoCanvasContext = /* @__PURE__ */ read(\"drawImageOntoCanvasContext\")\nexport const easeInOutCubic = /* @__PURE__ */ read(\"easeInOutCubic\")\nexport const editableConfig = /* @__PURE__ */ read(\"editableConfig\")\nexport const encodeSessionParam = /* @__PURE__ */ read(\"encodeSessionParam\")\nexport const ensureFileHandleReady = /* @__PURE__ */ read(\"ensureFileHandleReady\")\nexport const expandLooseTrackConfig = /* @__PURE__ */ read(\"expandLooseTrackConfig\")\nexport const featureSpanPx = /* @__PURE__ */ read(\"featureSpanPx\")\nexport const fetchAndMaybeUnzip = /* @__PURE__ */ read(\"fetchAndMaybeUnzip\")\nexport const fetchAndMaybeUnzipText = /* @__PURE__ */ read(\"fetchAndMaybeUnzipText\")\nexport const fetchJson = /* @__PURE__ */ read(\"fetchJson\")\nexport const fileToLocation = /* @__PURE__ */ read(\"fileToLocation\")\nexport const findFileHandleIds = /* @__PURE__ */ read(\"findFileHandleIds\")\nexport const findParentThat = /* @__PURE__ */ read(\"findParentThat\")\nexport const findParentThatIs = /* @__PURE__ */ read(\"findParentThatIs\")\nexport const finishAddTrack = /* @__PURE__ */ read(\"finishAddTrack\")\nexport const flattenTrackConfigDelta = /* @__PURE__ */ read(\"flattenTrackConfigDelta\")\nexport const formatBytes = /* @__PURE__ */ read(\"formatBytes\")\nexport const formatRelativeTime = /* @__PURE__ */ read(\"formatRelativeTime\")\nexport const fromUrlSafeB64 = /* @__PURE__ */ read(\"fromUrlSafeB64\")\nexport const gatherOverlaps = /* @__PURE__ */ read(\"gatherOverlaps\")\nexport const generateCodonTable = /* @__PURE__ */ read(\"generateCodonTable\")\nexport const generateUnknownTrackConf = /* @__PURE__ */ read(\"generateUnknownTrackConf\")\nexport const generateUnsupportedTrackConf = /* @__PURE__ */ read(\"generateUnsupportedTrackConf\")\nexport const getAssemblyHost = /* @__PURE__ */ read(\"getAssemblyHost\")\nexport const getBlob = /* @__PURE__ */ read(\"getBlob\")\nexport const getBlobMap = /* @__PURE__ */ read(\"getBlobMap\")\nexport const getBpDisplayStr = /* @__PURE__ */ read(\"getBpDisplayStr\")\nexport const getConfAssemblyNames = /* @__PURE__ */ read(\"getConfAssemblyNames\")\nexport const getContainingDisplay = /* @__PURE__ */ read(\"getContainingDisplay\")\nexport const getContainingTrack = /* @__PURE__ */ read(\"getContainingTrack\")\nexport const getContainingView = /* @__PURE__ */ read(\"getContainingView\")\nexport const getDialogHost = /* @__PURE__ */ read(\"getDialogHost\")\nexport const getDisplayStr = /* @__PURE__ */ read(\"getDisplayStr\")\nexport const getEnv = /* @__PURE__ */ read(\"getEnv\")\nexport const getFileFromCache = /* @__PURE__ */ read(\"getFileFromCache\")\nexport const getFileHandle = /* @__PURE__ */ read(\"getFileHandle\")\nexport const getFileName = /* @__PURE__ */ read(\"getFileName\")\nexport const getFillProps = /* @__PURE__ */ read(\"getFillProps\")\nexport const getFrame = /* @__PURE__ */ read(\"getFrame\")\nexport const getLocationUri = /* @__PURE__ */ read(\"getLocationUri\")\nexport const getNotificationSink = /* @__PURE__ */ read(\"getNotificationSink\")\nexport const getNumberGrouping = /* @__PURE__ */ read(\"getNumberGrouping\")\nexport const getPaletteHost = /* @__PURE__ */ read(\"getPaletteHost\")\nexport const getPluginUpdate = /* @__PURE__ */ read(\"getPluginUpdate\")\nexport const getRenderingServices = /* @__PURE__ */ read(\"getRenderingServices\")\nexport const getRpcHost = /* @__PURE__ */ read(\"getRpcHost\")\nexport const getRpcSessionId = /* @__PURE__ */ read(\"getRpcSessionId\")\nexport const getSession = /* @__PURE__ */ read(\"getSession\")\nexport const getSessionServices = /* @__PURE__ */ read(\"getSessionServices\")\nexport const getStr = /* @__PURE__ */ read(\"getStr\")\nexport const getStrokeProps = /* @__PURE__ */ read(\"getStrokeProps\")\nexport const getTickDisplayStr = /* @__PURE__ */ read(\"getTickDisplayStr\")\nexport const getTrackAssemblyNames = /* @__PURE__ */ read(\"getTrackAssemblyNames\")\nexport const getTrackName = /* @__PURE__ */ read(\"getTrackName\")\nexport const getZoomNormalizer = /* @__PURE__ */ read(\"getZoomNormalizer\")\nexport const groupBy = /* @__PURE__ */ read(\"groupBy\")\nexport const guessAdapter = /* @__PURE__ */ read(\"guessAdapter\")\nexport const guessTrackConf = /* @__PURE__ */ read(\"guessTrackConf\")\nexport const guessTrackType = /* @__PURE__ */ read(\"guessTrackType\")\nexport const handleFetchError = /* @__PURE__ */ read(\"handleFetchError\")\nexport const hasFileHandlesInCache = /* @__PURE__ */ read(\"hasFileHandlesInCache\")\nexport const hashCode = /* @__PURE__ */ read(\"hashCode\")\nexport const hideTrackGeneric = /* @__PURE__ */ read(\"hideTrackGeneric\")\nexport const indexedDBAvailable = /* @__PURE__ */ read(\"indexedDBAvailable\")\nexport const installablePlugins = /* @__PURE__ */ read(\"installablePlugins\")\nexport const installedVersionFromUrl = /* @__PURE__ */ read(\"installedVersionFromUrl\")\nexport const intersection2 = /* @__PURE__ */ read(\"intersection2\")\nexport const isAbortException = /* @__PURE__ */ read(\"isAbortException\")\nexport const isAbstractMenuManager = /* @__PURE__ */ read(\"isAbstractMenuManager\")\nexport const isActivelyZooming = /* @__PURE__ */ read(\"isActivelyZooming\")\nexport const isAppRootModel = /* @__PURE__ */ read(\"isAppRootModel\")\nexport const isAuthNeededException = /* @__PURE__ */ read(\"isAuthNeededException\")\nexport const isBlobLocation = /* @__PURE__ */ read(\"isBlobLocation\")\nexport const isDataCurrent = /* @__PURE__ */ read(\"isDataCurrent\")\nexport const isDisplayModel = /* @__PURE__ */ read(\"isDisplayModel\")\nexport const isEditableJBrowseConfig = /* @__PURE__ */ read(\"isEditableJBrowseConfig\")\nexport const isElectron = /* @__PURE__ */ read(\"isElectron\")\nexport const isFeature = /* @__PURE__ */ read(\"isFeature\")\nexport const isFileHandleLocation = /* @__PURE__ */ read(\"isFileHandleLocation\")\nexport const isFileSystemAccessSupported = /* @__PURE__ */ read(\"isFileSystemAccessSupported\")\nexport const isGeneLikeType = /* @__PURE__ */ read(\"isGeneLikeType\")\nexport const isGzip = /* @__PURE__ */ read(\"isGzip\")\nexport const isLocalPathLocation = /* @__PURE__ */ read(\"isLocalPathLocation\")\nexport const isLooseTrackConfig = /* @__PURE__ */ read(\"isLooseTrackConfig\")\nexport const isNode = /* @__PURE__ */ read(\"isNode\")\nexport const isObject = /* @__PURE__ */ read(\"isObject\")\nexport const isPalindromic = /* @__PURE__ */ read(\"isPalindromic\")\nexport const isPluginInstalled = /* @__PURE__ */ read(\"isPluginInstalled\")\nexport const isRootModelWithInternetAccounts = /* @__PURE__ */ read(\"isRootModelWithInternetAccounts\")\nexport const isRpcResult = /* @__PURE__ */ read(\"isRpcResult\")\nexport const isSelectionContainer = /* @__PURE__ */ read(\"isSelectionContainer\")\nexport const isSequenceMatchType = /* @__PURE__ */ read(\"isSequenceMatchType\")\nexport const isSessionModel = /* @__PURE__ */ read(\"isSessionModel\")\nexport const isSessionModelWithConfigEditing = /* @__PURE__ */ read(\"isSessionModelWithConfigEditing\")\nexport const isSessionModelWithConnectionEditing = /* @__PURE__ */ read(\"isSessionModelWithConnectionEditing\")\nexport const isSessionModelWithConnections = /* @__PURE__ */ read(\"isSessionModelWithConnections\")\nexport const isSessionModelWithWidgets = /* @__PURE__ */ read(\"isSessionModelWithWidgets\")\nexport const isSessionServices = /* @__PURE__ */ read(\"isSessionServices\")\nexport const isSessionWithAddAssembly = /* @__PURE__ */ read(\"isSessionWithAddAssembly\")\nexport const isSessionWithAddSessionTrack = /* @__PURE__ */ read(\"isSessionWithAddSessionTrack\")\nexport const isSessionWithAddTracks = /* @__PURE__ */ read(\"isSessionWithAddTracks\")\nexport const isSessionWithDeleteTrackConf = /* @__PURE__ */ read(\"isSessionWithDeleteTrackConf\")\nexport const isSessionWithMultipleViews = /* @__PURE__ */ read(\"isSessionWithMultipleViews\")\nexport const isSessionWithPermanentPlugins = /* @__PURE__ */ read(\"isSessionWithPermanentPlugins\")\nexport const isSessionWithPublishTrackConf = /* @__PURE__ */ read(\"isSessionWithPublishTrackConf\")\nexport const isSessionWithSessionPlugins = /* @__PURE__ */ read(\"isSessionWithSessionPlugins\")\nexport const isSessionWithSessionTracks = /* @__PURE__ */ read(\"isSessionWithSessionTracks\")\nexport const isSessionWithShareURL = /* @__PURE__ */ read(\"isSessionWithShareURL\")\nexport const isSessionWithViewReplacement = /* @__PURE__ */ read(\"isSessionWithViewReplacement\")\nexport const isSupportedIndexingAdapter = /* @__PURE__ */ read(\"isSupportedIndexingAdapter\")\nexport const isTrackContainer = /* @__PURE__ */ read(\"isTrackContainer\")\nexport const isTrackModel = /* @__PURE__ */ read(\"isTrackModel\")\nexport const isTrackViewModel = /* @__PURE__ */ read(\"isTrackViewModel\")\nexport const isUriLocation = /* @__PURE__ */ read(\"isUriLocation\")\nexport const isValidTag = /* @__PURE__ */ read(\"isValidTag\")\nexport const isViewContainer = /* @__PURE__ */ read(\"isViewContainer\")\nexport const isViewModel = /* @__PURE__ */ read(\"isViewModel\")\nexport const isWebWorker = /* @__PURE__ */ read(\"isWebWorker\")\nexport const iupacToRegex = /* @__PURE__ */ read(\"iupacToRegex\")\nexport const launchOrReplaceView = /* @__PURE__ */ read(\"launchOrReplaceView\")\nexport const linkify = /* @__PURE__ */ read(\"linkify\")\nexport const locStringsToRegions = /* @__PURE__ */ read(\"locStringsToRegions\")\nexport const localStorageAvailable = /* @__PURE__ */ read(\"localStorageAvailable\")\nexport const localStorageGetBoolean = /* @__PURE__ */ read(\"localStorageGetBoolean\")\nexport const localStorageGetItem = /* @__PURE__ */ read(\"localStorageGetItem\")\nexport const localStorageGetJSON = /* @__PURE__ */ read(\"localStorageGetJSON\")\nexport const localStorageGetNumber = /* @__PURE__ */ read(\"localStorageGetNumber\")\nexport const localStorageGetStringArray = /* @__PURE__ */ read(\"localStorageGetStringArray\")\nexport const localStorageRemoveItem = /* @__PURE__ */ read(\"localStorageRemoveItem\")\nexport const localStorageSetBoolean = /* @__PURE__ */ read(\"localStorageSetBoolean\")\nexport const localStorageSetItem = /* @__PURE__ */ read(\"localStorageSetItem\")\nexport const localStorageSetJSON = /* @__PURE__ */ read(\"localStorageSetJSON\")\nexport const localStorageSetNumber = /* @__PURE__ */ read(\"localStorageSetNumber\")\nexport const makeAbortError = /* @__PURE__ */ read(\"makeAbortError\")\nexport const makeIndex = /* @__PURE__ */ read(\"makeIndex\")\nexport const makeIndexType = /* @__PURE__ */ read(\"makeIndexType\")\nexport const makeTrackId = /* @__PURE__ */ read(\"makeTrackId\")\nexport const matchRefNames = /* @__PURE__ */ read(\"matchRefNames\")\nexport const matchTrackId = /* @__PURE__ */ read(\"matchTrackId\")\nexport const max = /* @__PURE__ */ read(\"max\")\nexport const maxFinite = /* @__PURE__ */ read(\"maxFinite\")\nexport const measureGridWidth = /* @__PURE__ */ read(\"measureGridWidth\")\nexport const measureText = /* @__PURE__ */ read(\"measureText\")\nexport const measuredFont = /* @__PURE__ */ read(\"measuredFont\")\nexport const mergeIntervals = /* @__PURE__ */ read(\"mergeIntervals\")\nexport const mergeTrackConfig = /* @__PURE__ */ read(\"mergeTrackConfig\")\nexport const min = /* @__PURE__ */ read(\"min\")\nexport const minmax = /* @__PURE__ */ read(\"minmax\")\nexport const morphClockMs = /* @__PURE__ */ read(\"morphClockMs\")\nexport const namesTemporaryAssembly = /* @__PURE__ */ read(\"namesTemporaryAssembly\")\nexport const normalizeWheelDelta = /* @__PURE__ */ read(\"normalizeWheelDelta\")\nexport const notEmpty = /* @__PURE__ */ read(\"notEmpty\")\nexport const notifyFeatureDetailsMiss = /* @__PURE__ */ read(\"notifyFeatureDetailsMiss\")\nexport const notifyLocalStorageKey = /* @__PURE__ */ read(\"notifyLocalStorageKey\")\nexport const objectHash = /* @__PURE__ */ read(\"objectHash\")\nexport const openFeatureWidget = /* @__PURE__ */ read(\"openFeatureWidget\")\nexport const parseBpString = /* @__PURE__ */ read(\"parseBpString\")\nexport const parseLocString = /* @__PURE__ */ read(\"parseLocString\")\nexport const parseLocStringOneBased = /* @__PURE__ */ read(\"parseLocStringOneBased\")\nexport const parseMotifList = /* @__PURE__ */ read(\"parseMotifList\")\nexport const parseRegionNames = /* @__PURE__ */ read(\"parseRegionNames\")\nexport const persistTrackConfigNow = /* @__PURE__ */ read(\"persistTrackConfigNow\")\nexport const pluralize = /* @__PURE__ */ read(\"pluralize\")\nexport const polarToCartesian = /* @__PURE__ */ read(\"polarToCartesian\")\nexport const progressLabel = /* @__PURE__ */ read(\"progressLabel\")\nexport const rIC = /* @__PURE__ */ read(\"rIC\")\nexport const radToDeg = /* @__PURE__ */ read(\"radToDeg\")\nexport const rankRefNames = /* @__PURE__ */ read(\"rankRefNames\")\nexport const readSessionFromDynamo = /* @__PURE__ */ read(\"readSessionFromDynamo\")\nexport const readSharedSession = /* @__PURE__ */ read(\"readSharedSession\")\nexport const reducePrecision = /* @__PURE__ */ read(\"reducePrecision\")\nexport const renameComparativeRegions = /* @__PURE__ */ read(\"renameComparativeRegions\")\nexport const renameRegionIfNeeded = /* @__PURE__ */ read(\"renameRegionIfNeeded\")\nexport const renameRegionsIfNeeded = /* @__PURE__ */ read(\"renameRegionsIfNeeded\")\nexport const reorder = /* @__PURE__ */ read(\"reorder\")\nexport const reorderWithin = /* @__PURE__ */ read(\"reorderWithin\")\nexport const resolveNamedRegions = /* @__PURE__ */ read(\"resolveNamedRegions\")\nexport const resolvePlugin = /* @__PURE__ */ read(\"resolvePlugin\")\nexport const resolveSelectedIds = /* @__PURE__ */ read(\"resolveSelectedIds\")\nexport const resolveStorePluginRefs = /* @__PURE__ */ read(\"resolveStorePluginRefs\")\nexport const resolveStoreRefs = /* @__PURE__ */ read(\"resolveStoreRefs\")\nexport const resolveUri = /* @__PURE__ */ read(\"resolveUri\")\nexport const restoreFileHandles = /* @__PURE__ */ read(\"restoreFileHandles\")\nexport const restoreFileHandlesFromSnapshot = /* @__PURE__ */ read(\"restoreFileHandlesFromSnapshot\")\nexport const revcom = /* @__PURE__ */ read(\"revcom\")\nexport const reverse = /* @__PURE__ */ read(\"reverse\")\nexport const reverseComplementIupac = /* @__PURE__ */ read(\"reverseComplementIupac\")\nexport const revlist = /* @__PURE__ */ read(\"revlist\")\nexport const saveAs = /* @__PURE__ */ read(\"saveAs\")\nexport const saveSvgAsImage = /* @__PURE__ */ read(\"saveSvgAsImage\")\nexport const scheduleDetachedDestroy = /* @__PURE__ */ read(\"scheduleDetachedDestroy\")\nexport const selectNamedRegions = /* @__PURE__ */ read(\"selectNamedRegions\")\nexport const sessionParamKind = /* @__PURE__ */ read(\"sessionParamKind\")\nexport const sessionParamPayload = /* @__PURE__ */ read(\"sessionParamPayload\")\nexport const sessionStorageAvailable = /* @__PURE__ */ read(\"sessionStorageAvailable\")\nexport const sessionStorageGetItem = /* @__PURE__ */ read(\"sessionStorageGetItem\")\nexport const sessionStorageRemoveItem = /* @__PURE__ */ read(\"sessionStorageRemoveItem\")\nexport const sessionStorageSetItem = /* @__PURE__ */ read(\"sessionStorageSetItem\")\nexport const setBlobMap = /* @__PURE__ */ read(\"setBlobMap\")\nexport const setFileInCache = /* @__PURE__ */ read(\"setFileInCache\")\nexport const setNumberGrouping = /* @__PURE__ */ read(\"setNumberGrouping\")\nexport const sha256 = /* @__PURE__ */ read(\"sha256\")\nexport const sha256Base64 = /* @__PURE__ */ read(\"sha256Base64\")\nexport const sha256Base64Url = /* @__PURE__ */ read(\"sha256Base64Url\")\nexport const shareEndpoint = /* @__PURE__ */ read(\"shareEndpoint\")\nexport const shorten = /* @__PURE__ */ read(\"shorten\")\nexport const shorten2 = /* @__PURE__ */ read(\"shorten2\")\nexport const showTrackGeneric = /* @__PURE__ */ read(\"showTrackGeneric\")\nexport const springAnimate = /* @__PURE__ */ read(\"springAnimate\")\nexport const statusFraction = /* @__PURE__ */ read(\"statusFraction\")\nexport const statusMessageText = /* @__PURE__ */ read(\"statusMessageText\")\nexport const statusProgressLabel = /* @__PURE__ */ read(\"statusProgressLabel\")\nexport const statusReading = /* @__PURE__ */ read(\"statusReading\")\nexport const statusSource = /* @__PURE__ */ read(\"statusSource\")\nexport const stitch = /* @__PURE__ */ read(\"stitch\")\nexport const storeBlobLocation = /* @__PURE__ */ read(\"storeBlobLocation\")\nexport const storeFileHandle = /* @__PURE__ */ read(\"storeFileHandle\")\nexport const storeFileHandleLocation = /* @__PURE__ */ read(\"storeFileHandleLocation\")\nexport const stringify = /* @__PURE__ */ read(\"stringify\")\nexport const stripAlpha = /* @__PURE__ */ read(\"stripAlpha\")\nexport const stripFileExtension = /* @__PURE__ */ read(\"stripFileExtension\")\nexport const stripTrackIds = /* @__PURE__ */ read(\"stripTrackIds\")\nexport const subscribeToLocalStorageKey = /* @__PURE__ */ read(\"subscribeToLocalStorageKey\")\nexport const sum = /* @__PURE__ */ read(\"sum\")\nexport const svgHtmlToPngBlob = /* @__PURE__ */ read(\"svgHtmlToPngBlob\")\nexport const tagRegex = /* @__PURE__ */ read(\"tagRegex\")\nexport const testAdapter = /* @__PURE__ */ read(\"testAdapter\")\nexport const throttleStatusEmits = /* @__PURE__ */ read(\"throttleStatusEmits\")\nexport const toBase64 = /* @__PURE__ */ read(\"toBase64\")\nexport const toBase64Url = /* @__PURE__ */ read(\"toBase64Url\")\nexport const toLocale = /* @__PURE__ */ read(\"toLocale\")\nexport const toUrlSafeB64 = /* @__PURE__ */ read(\"toUrlSafeB64\")\nexport const toggleTrackGeneric = /* @__PURE__ */ read(\"toggleTrackGeneric\")\nexport const truncateMiddle = /* @__PURE__ */ read(\"truncateMiddle\")\nexport const updateStatus = /* @__PURE__ */ read(\"updateStatus\")\nexport const useAddTrackFields = /* @__PURE__ */ read(\"useAddTrackFields\")\nexport const useCreateOnce = /* @__PURE__ */ read(\"useCreateOnce\")\nexport const useDebounce = /* @__PURE__ */ read(\"useDebounce\")\nexport const useFinalUnmount = /* @__PURE__ */ read(\"useFinalUnmount\")\nexport const useLocalStorage = /* @__PURE__ */ read(\"useLocalStorage\")\nexport const useWidthSetter = /* @__PURE__ */ read(\"useWidthSetter\")\nexport const verifyPermission = /* @__PURE__ */ read(\"verifyPermission\")\nexport const wheelFrameElapsedMs = /* @__PURE__ */ read(\"wheelFrameElapsedMs\")\nexport const wheelZoomAccum = /* @__PURE__ */ read(\"wheelZoomAccum\")\nexport const withAbortCheck = /* @__PURE__ */ read(\"withAbortCheck\")\nexport const withFeatureDetails = /* @__PURE__ */ read(\"withFeatureDetails\")\nexport const withProgress = /* @__PURE__ */ read(\"withProgress\")\nexport const workflowForm = /* @__PURE__ */ read(\"workflowForm\")\nexport default host && host.__esModule ? host.default : host"],
|
|
5
|
+
"mappings": "AAAA,IAAMA,EAAO,eAAe,oBAAoB,EAC1CC,EAAOC,GACXF,GAAQ,MAAQE,KAAQ,OAAOF,CAAI,EAC/BA,EAAKE,CAAI,EACT,OAAO,OACL,UAAY,CACV,MAAM,IAAI,MAAM,kCAAoCA,EAAO,4HAA2I,CACxM,EACA,CAAE,mBAAoBA,CAAK,CAC7B,EAkDC,IAAMC,EAAwBC,EAAK,OAAO,EAoC1C,IAAMC,EAAyCC,EAAK,wBAAwB,EAqB5E,IAAMC,EAAqCC,EAAK,oBAAoB,EAC9DC,EAAoCD,EAAK,mBAAmB,EAGlE,IAAME,EAAyBC,EAAK,QAAQ,EAc5C,IAAMC,EAA6BC,EAAK,YAAY,EAQpD,IAAMC,EAA0BC,EAAK,SAAS,EAa9C,IAAMC,EAAwCC,EAAK,uBAAuB,EAY1E,IAAMC,EAAiCC,EAAK,gBAAgB,EAmB5D,IAAMC,EAA+CC,EAAK,8BAA8B,EAExF,IAAMC,EAA+CC,EAAK,8BAA8B,EAKxF,IAAMC,EAA6CC,EAAK,4BAA4B,EA6CpF,IAAMC,EAA2BC,EAAK,UAAU,EAuDhD,IAAMC,EAA2BC,EAAK,UAAU,EAKhD,IAAMC,EAAsCC,EAAK,qBAAqB,EAYtE,IAAMC,EAAsBC,EAAK,KAAK,EAyB7C,IAAOC,EAAQC,GAAQA,EAAK,WAAaA,EAAK,QAAUA",
|
|
6
|
+
"names": ["host", "read", "name", "clamp", "read", "fetchAndMaybeUnzipText", "read", "getContainingTrack", "read", "getContainingView", "getEnv", "read", "getSession", "read", "groupBy", "read", "isAbstractMenuManager", "read", "isGeneLikeType", "read", "isSessionWithAddSessionTrack", "read", "isSessionWithDeleteTrackConf", "read", "isSessionWithSessionTracks", "read", "notEmpty", "read", "shorten2", "read", "statusProgressLabel", "read", "sum", "read", "util_default", "host"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as a}from"./chunk-3MNW5BKS.js";import{g as u}from"./chunk-EXFKF6XR.js";import{j as r,o as i,p as n,r as c}from"./chunk-TEYYBCMF.js";function m({text:e,label:p="Copy to clipboard"}){let[f,o]=n(!1),t=i(void 0);return r(()=>()=>{clearTimeout(t.current)},[]),c.createElement(u,{variant:"contained",color:"primary",onClick:()=>{a(typeof e=="string"?e:e()),o(!0),clearTimeout(t.current),t.current=setTimeout(()=>{o(!1)},500)}},f?"Copied!":p)}export{m as a};
|
|
2
|
+
//# sourceMappingURL=chunk-BD6Y2ERQ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../node_modules/.pnpm/react-msaview@
|
|
3
|
+
"sources": ["../../node_modules/.pnpm/react-msaview@11.0.0_4d87629ce60f4a70309a0d727f3e914b/node_modules/react-msaview/src/components/CopyButton.tsx"],
|
|
4
4
|
"sourcesContent": ["import React, { useEffect, useRef, useState } from 'react'\n\nimport { Button } from '@mui/material'\n\nimport copy from '../vendor/copyToClipboard.ts'\n\n/**\n * Copy-to-clipboard button that confirms on the label for a moment. The timer is\n * cleared on unmount, since these live in dialogs the copy itself often closes.\n */\nexport default function CopyButton({\n text,\n label = 'Copy to clipboard',\n}: {\n text: string | (() => string)\n label?: string\n}) {\n const [copied, setCopied] = useState(false)\n const timer = useRef<ReturnType<typeof setTimeout>>(undefined)\n\n useEffect(\n () => () => {\n clearTimeout(timer.current)\n },\n [],\n )\n\n return (\n <Button\n variant=\"contained\"\n color=\"primary\"\n onClick={() => {\n copy(typeof text === 'string' ? text : text())\n setCopied(true)\n clearTimeout(timer.current)\n timer.current = setTimeout(() => {\n setCopied(false)\n }, 500)\n }}\n >\n {copied ? 'Copied!' : label}\n </Button>\n )\n}\n"],
|
|
5
5
|
"mappings": "6IAUc,SAAPA,EAA4B,CACjC,KAAAC,EACA,MAAAC,EAAQ,mBAAmB,EAI5B,CACC,GAAM,CAACC,EAAQC,CAAS,EAAIC,EAAS,EAAK,EACpCC,EAAQC,EAAsC,MAAS,EAE7D,OAAAC,EACE,IAAM,IAAK,CACT,aAAaF,EAAM,OAAO,CAC5B,EACA,CAAA,CAAE,EAIFG,EAAA,cAACC,EAAM,CACL,QAAQ,YACR,MAAM,UACN,QAAS,IAAK,CACZC,EAAK,OAAOV,GAAS,SAAWA,EAAOA,EAAI,CAAE,EAC7CG,EAAU,EAAI,EACd,aAAaE,EAAM,OAAO,EAC1BA,EAAM,QAAU,WAAW,IAAK,CAC9BF,EAAU,EAAK,CACjB,EAAG,GAAG,CACR,CAAC,EAEAD,EAAS,UAAYD,CAAK,CAGjC",
|
|
6
6
|
"names": ["CopyButton", "text", "label", "copied", "setCopied", "useState", "timer", "useRef", "useEffect", "react_default", "Button", "copy"]
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../node_modules/.pnpm/react-msaview@11.0.0_4d87629ce60f4a70309a0d727f3e914b/node_modules/react-msaview/src/version.ts"],
|
|
4
|
+
"sourcesContent": ["export const version = '11.0.0'\n"],
|
|
5
|
+
"mappings": "AAAO,IAAMA,EAAU",
|
|
6
|
+
"names": ["version"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e,b as t}from"./chunk-7ZEXFLSY.js";var s=e(t("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help");var a=e(t("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");export{a,s as b};
|
|
2
|
+
//# sourceMappingURL=chunk-CREQPIFJ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{h as t,r as o}from"./chunk-EXFKF6XR.js";import{r as e}from"./chunk-TEYYBCMF.js";function a({checked:r,label:l,disabled:n,onChange:c}){return e.createElement("div",null,e.createElement(o,{control:e.createElement(t,{disabled:n,checked:r,onChange:()=>{c()}}),label:l}))}export{a};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-DW5INM5K.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../node_modules/.pnpm/react-msaview@
|
|
3
|
+
"sources": ["../../node_modules/.pnpm/react-msaview@11.0.0_4d87629ce60f4a70309a0d727f3e914b/node_modules/react-msaview/src/components/Checkbox2.tsx"],
|
|
4
4
|
"sourcesContent": ["import React from 'react'\n\nimport { Checkbox, FormControlLabel } from '@mui/material'\n\nexport default function Checkbox2({\n checked,\n label,\n disabled,\n onChange,\n}: {\n checked: boolean\n label: string\n disabled?: boolean\n onChange: () => void\n}) {\n return (\n <div>\n <FormControlLabel\n control={\n <Checkbox\n disabled={disabled}\n checked={checked}\n onChange={() => {\n onChange()\n }}\n />\n }\n label={label}\n />\n </div>\n )\n}\n"],
|
|
5
5
|
"mappings": "uFAIc,SAAPA,EAA2B,CAChC,QAAAC,EACA,MAAAC,EACA,SAAAC,EACA,SAAAC,CAAQ,EAMT,CACC,OACEC,EAAA,cAAA,MAAA,KACEA,EAAA,cAACC,EAAgB,CACf,QACED,EAAA,cAACE,EAAQ,CACP,SAAUJ,EACV,QAASF,EACT,SAAU,IAAK,CACbG,EAAQ,CACV,CAAC,CAAA,EAGL,MAAOF,CAAK,CAAA,CACZ,CAGR",
|
|
6
6
|
"names": ["Checkbox2", "checked", "label", "disabled", "onChange", "react_default", "FormControlLabel", "Checkbox"]
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var t=JBrowseExports["@jbrowse/mobx-state-tree"],e=o=>t!=null&&o in Object(t)?t[o]:Object.assign(function(){throw new Error("This JBrowse does not provide '"+o+"' from '@jbrowse/mobx-state-tree' to plugins: MsaView was built for a different JBrowse version, so update the plugin or JBrowse")},{jbrowseHostMissing:o}),s=e("addDisposer");var n=e("applySnapshot");var r=e("cast");var p=e("destroy");var c=e("getSnapshot");var i=e("isAlive");var a=e("isStateTreeNode");var x=e("types");var y=t&&t.__esModule?t.default:t;export{s as a,n as b,r as c,p as d,c as e,i as f,a as g,x as h};
|
|
2
|
+
//# sourceMappingURL=chunk-FLY25MTG.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["jbrowse-host:@jbrowse/mobx-state-tree"],
|
|
4
4
|
"sourcesContent": ["const host = JBrowseExports[\"@jbrowse/mobx-state-tree\"]\nconst read = name =>\n host != null && name in Object(host)\n ? host[name]\n : Object.assign(\n function () {\n throw new Error(\"This JBrowse does not provide '\" + name + \"' from '\" + \"@jbrowse/mobx-state-tree\" + \"' to plugins: \" + \"MsaView was built for a different JBrowse version, so update the plugin or JBrowse\")\n },\n { jbrowseHostMissing: name },\n )\nexport const addDisposer = /* @__PURE__ */ read(\"addDisposer\")\nexport const addMiddleware = /* @__PURE__ */ read(\"addMiddleware\")\nexport const applyAction = /* @__PURE__ */ read(\"applyAction\")\nexport const applyPatch = /* @__PURE__ */ read(\"applyPatch\")\nexport const applySnapshot = /* @__PURE__ */ read(\"applySnapshot\")\nexport const asArrayType = /* @__PURE__ */ read(\"asArrayType\")\nexport const asMapType = /* @__PURE__ */ read(\"asMapType\")\nexport const asModelType = /* @__PURE__ */ read(\"asModelType\")\nexport const cannotDetermineSubtype = /* @__PURE__ */ read(\"cannotDetermineSubtype\")\nexport const cast = /* @__PURE__ */ read(\"cast\")\nexport const castFlowReturn = /* @__PURE__ */ read(\"castFlowReturn\")\nexport const castToReferenceSnapshot = /* @__PURE__ */ read(\"castToReferenceSnapshot\")\nexport const castToSnapshot = /* @__PURE__ */ read(\"castToSnapshot\")\nexport const clone = /* @__PURE__ */ read(\"clone\")\nexport const createActionTrackingMiddleware = /* @__PURE__ */ read(\"createActionTrackingMiddleware\")\nexport const createActionTrackingMiddleware2 = /* @__PURE__ */ read(\"createActionTrackingMiddleware2\")\nexport const decorate = /* @__PURE__ */ read(\"decorate\")\nexport const destroy = /* @__PURE__ */ read(\"destroy\")\nexport const detach = /* @__PURE__ */ read(\"detach\")\nexport const escapeJsonPath = /* @__PURE__ */ read(\"escapeJsonPath\")\nexport const extendInstance = /* @__PURE__ */ read(\"extendInstance\")\nexport const findParent = /* @__PURE__ */ read(\"findParent\")\nexport const flow = /* @__PURE__ */ read(\"flow\")\nexport const getChildType = /* @__PURE__ */ read(\"getChildType\")\nexport const getEnv = /* @__PURE__ */ read(\"getEnv\")\nexport const getIdentifier = /* @__PURE__ */ read(\"getIdentifier\")\nexport const getLivelinessChecking = /* @__PURE__ */ read(\"getLivelinessChecking\")\nexport const getMembers = /* @__PURE__ */ read(\"getMembers\")\nexport const getNodeId = /* @__PURE__ */ read(\"getNodeId\")\nexport const getParent = /* @__PURE__ */ read(\"getParent\")\nexport const getParentOfType = /* @__PURE__ */ read(\"getParentOfType\")\nexport const getPath = /* @__PURE__ */ read(\"getPath\")\nexport const getPathParts = /* @__PURE__ */ read(\"getPathParts\")\nexport const getPropertyMembers = /* @__PURE__ */ read(\"getPropertyMembers\")\nexport const getRelativePath = /* @__PURE__ */ read(\"getRelativePath\")\nexport const getRoot = /* @__PURE__ */ read(\"getRoot\")\nexport const getRunningActionContext = /* @__PURE__ */ read(\"getRunningActionContext\")\nexport const getSnapshot = /* @__PURE__ */ read(\"getSnapshot\")\nexport const getType = /* @__PURE__ */ read(\"getType\")\nexport const getUnionSubtypes = /* @__PURE__ */ read(\"getUnionSubtypes\")\nexport const getWrappedType = /* @__PURE__ */ read(\"getWrappedType\")\nexport const hasParent = /* @__PURE__ */ read(\"hasParent\")\nexport const hasParentOfType = /* @__PURE__ */ read(\"hasParentOfType\")\nexport const isActionContextChildOf = /* @__PURE__ */ read(\"isActionContextChildOf\")\nexport const isActionContextThisOrChildOf = /* @__PURE__ */ read(\"isActionContextThisOrChildOf\")\nexport const isAlive = /* @__PURE__ */ read(\"isAlive\")\nexport const isArrayType = /* @__PURE__ */ read(\"isArrayType\")\nexport const isFrozenType = /* @__PURE__ */ read(\"isFrozenType\")\nexport const isIdentifierType = /* @__PURE__ */ read(\"isIdentifierType\")\nexport const isLateType = /* @__PURE__ */ read(\"isLateType\")\nexport const isLiteralType = /* @__PURE__ */ read(\"isLiteralType\")\nexport const isMapType = /* @__PURE__ */ read(\"isMapType\")\nexport const isModelType = /* @__PURE__ */ read(\"isModelType\")\nexport const isOptionalType = /* @__PURE__ */ read(\"isOptionalType\")\nexport const isPrimitiveType = /* @__PURE__ */ read(\"isPrimitiveType\")\nexport const isProtected = /* @__PURE__ */ read(\"isProtected\")\nexport const isReferenceType = /* @__PURE__ */ read(\"isReferenceType\")\nexport const isRefinementType = /* @__PURE__ */ read(\"isRefinementType\")\nexport const isRoot = /* @__PURE__ */ read(\"isRoot\")\nexport const isStateTreeNode = /* @__PURE__ */ read(\"isStateTreeNode\")\nexport const isType = /* @__PURE__ */ read(\"isType\")\nexport const isUnionType = /* @__PURE__ */ read(\"isUnionType\")\nexport const isValidReference = /* @__PURE__ */ read(\"isValidReference\")\nexport const joinJsonPath = /* @__PURE__ */ read(\"joinJsonPath\")\nexport const onAction = /* @__PURE__ */ read(\"onAction\")\nexport const onPatch = /* @__PURE__ */ read(\"onPatch\")\nexport const onSnapshot = /* @__PURE__ */ read(\"onSnapshot\")\nexport const protect = /* @__PURE__ */ read(\"protect\")\nexport const recordActions = /* @__PURE__ */ read(\"recordActions\")\nexport const recordPatches = /* @__PURE__ */ read(\"recordPatches\")\nexport const resolveIdentifier = /* @__PURE__ */ read(\"resolveIdentifier\")\nexport const resolvePath = /* @__PURE__ */ read(\"resolvePath\")\nexport const setDevMode = /* @__PURE__ */ read(\"setDevMode\")\nexport const setLivelinessChecking = /* @__PURE__ */ read(\"setLivelinessChecking\")\nexport const setLivelynessChecking = /* @__PURE__ */ read(\"setLivelynessChecking\")\nexport const setTypeChecking = /* @__PURE__ */ read(\"setTypeChecking\")\nexport const splitJsonPath = /* @__PURE__ */ read(\"splitJsonPath\")\nexport const t = /* @__PURE__ */ read(\"t\")\nexport const toGenerator = /* @__PURE__ */ read(\"toGenerator\")\nexport const toGeneratorFunction = /* @__PURE__ */ read(\"toGeneratorFunction\")\nexport const tryReference = /* @__PURE__ */ read(\"tryReference\")\nexport const tryResolve = /* @__PURE__ */ read(\"tryResolve\")\nexport const typecheck = /* @__PURE__ */ read(\"typecheck\")\nexport const types = /* @__PURE__ */ read(\"types\")\nexport const unescapeJsonPath = /* @__PURE__ */ read(\"unescapeJsonPath\")\nexport const unprotect = /* @__PURE__ */ read(\"unprotect\")\nexport const unwrapType = /* @__PURE__ */ read(\"unwrapType\")\nexport const walk = /* @__PURE__ */ read(\"walk\")\nexport default host && host.__esModule ? host.default : host"],
|
|
5
|
-
"mappings": "AAAA,IAAMA,EAAO,eAAe,0BAA0B,EAChDC,EAAOC,GACXF,GAAQ,MAAQE,KAAQ,OAAOF,CAAI,EAC/BA,EAAKE,CAAI,EACT,OAAO,OACL,UAAY,CACV,MAAM,IAAI,MAAM,kCAAoCA,EAAO,kIAAiJ,CAC9M,EACA,CAAE,mBAAoBA,CAAK,CAC7B,EACOC,EAA8BF,EAAK,aAAa,EAItD,IAAMG,EAAgCC,EAAK,eAAe,EAK1D,IAAMC,EAAuBC,EAAK,MAAM,EAQxC,IAAMC,EAA0BC,EAAK,SAAS,EAoB9C,IAAMC,EAA8BC,EAAK,aAAa,EAQtD,IAAMC,EAA0BC,EAAK,SAAS,
|
|
6
|
-
"names": ["host", "read", "name", "addDisposer", "applySnapshot", "read", "cast", "read", "destroy", "read", "getSnapshot", "read", "isAlive", "read", "types", "read", "mobx_state_tree_default", "host"]
|
|
5
|
+
"mappings": "AAAA,IAAMA,EAAO,eAAe,0BAA0B,EAChDC,EAAOC,GACXF,GAAQ,MAAQE,KAAQ,OAAOF,CAAI,EAC/BA,EAAKE,CAAI,EACT,OAAO,OACL,UAAY,CACV,MAAM,IAAI,MAAM,kCAAoCA,EAAO,kIAAiJ,CAC9M,EACA,CAAE,mBAAoBA,CAAK,CAC7B,EACOC,EAA8BF,EAAK,aAAa,EAItD,IAAMG,EAAgCC,EAAK,eAAe,EAK1D,IAAMC,EAAuBC,EAAK,MAAM,EAQxC,IAAMC,EAA0BC,EAAK,SAAS,EAoB9C,IAAMC,EAA8BC,EAAK,aAAa,EAQtD,IAAMC,EAA0BC,EAAK,SAAS,EAc9C,IAAMC,EAAkCC,EAAK,iBAAiB,EAwB9D,IAAMC,EAAwBC,EAAK,OAAO,EAKjD,IAAOC,EAAQC,GAAQA,EAAK,WAAaA,EAAK,QAAUA",
|
|
6
|
+
"names": ["host", "read", "name", "addDisposer", "applySnapshot", "read", "cast", "read", "destroy", "read", "getSnapshot", "read", "isAlive", "read", "isStateTreeNode", "read", "types", "read", "mobx_state_tree_default", "host"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{a as j}from"./chunk-7763LQXU.js";function F(n){return Object.fromEntries(n.map(t=>[t.xref[0]?.id,t]).filter(t=>t[0]!==void 0))}function y(n){return Object.entries(n).flatMap(([t,{matches:s}])=>s.flatMap(({signature:e,locations:r})=>{let{entry:o}=e,i=o?.accession??e.accession;if(!i)return[];let c=o?.name??e.name??i;return r.map(({start:a,end:f,strand:u})=>({id:t,accession:i,name:c,description:o?.description??e.description??c,start:a,end:f,strand:u}))}))}function $(n){return y(F(n.results))}function M(n,t=[]){return["##gff-version 3",...t.map(s=>`# ${s}`),...n.map(s=>{let{accession:e,name:r,description:o,featureType:i}=s,{id:c,start:a,end:f,strand:u}=s;return[c.replaceAll(/[%\t\n\r]/g,encodeURIComponent),"InterProScan",i??"protein_match",a,f,".",u===void 0?".":u>0?"+":"-",".",[`Name=${encodeURIComponent(e)}`,`signature_desc=${encodeURIComponent(r)}`,`description=${encodeURIComponent(o)}`].join(";")].join(" ")})].join(`
|
|
2
|
+
`)}function ce(n){return typeof n=="object"&&n!==null&&"results"in n&&Array.isArray(n.results)}function ae(n){let t=n.trimStart();if(!t.startsWith("{"))return n;let s=JSON.parse(t);if(!ce(s))throw new Error('JSON annotation file has no InterProScan "results" list');return M($(s))}function B(n,t){return{...n,id:t,name:n.name===void 0||n.name===""?t:n.name,children:[]}}function _(n,t="node",s=0){let e=B(n,`${t}-${s}`),r=[{src:n,out:e,depth:s}];for(;r.length>0;){let{src:o,out:i,depth:c}=r.pop();if(o.children){i.children=o.children.map((a,f)=>B(a,`${i.id}-${f}-${c+1}`));for(let[a,f]of o.children.entries())r.push({src:f,out:i.children[a],depth:c+1})}}return e}var p=class{rows=new Map;names;width;constructor(t){for(let[s,e]of t)this.rows.has(s)||this.rows.set(s,e);this.names=[...this.rows.keys()]}getRow(t){return this.rows.get(t)??""}getNames(){return this.names}getWidth(){return this.width??=this.getNames().reduce((t,s)=>Math.max(t,this.getRow(s).length),0),this.width}getTree(){return{id:"root",name:"root",noTree:!0,children:this.getNames().map(t=>({id:t,children:[],name:t}))}}getRowData(t){}getStructures(){return{}}getHeader(){return{}}get alignmentNames(){return[]}get seqConsensus(){}get secondaryStructureConsensus(){}get tracks(){return[]}get annotations(){return[]}};function R(n){return/^(#.*\n)*>/.test(n)}function P(n){let t=[],s=new Set,e,r=()=>{e&&!s.has(e.id)&&(s.add(e.id),t.push({id:e.id,seq:e.lines.join("").replaceAll(/\s/g,"")}))},o=0;for(let i of n.split(`
|
|
3
|
+
`))i.startsWith(">")?(r(),o++,e={id:/^>\s*(\S+)/.exec(i)?.[1]??`unnamed_${o}`,lines:[]}):e?.lines.push(i);return r(),t}function C(n){return typeof n=="string"?P(n):n}var fe=65,ue=90,le=97,pe=122,de=45;function D(n){return n>=le&&n<=pe}function U(n){return n>=fe&&n<=ue||n===de}function me(n){let t=[],s=[""];for(let e of n){let r=e.charCodeAt(0);U(r)?(t.push(e),s.push("")):D(r)&&(s[s.length-1]+=e.toUpperCase())}return{matches:t,inserts:s}}var m=class extends p{constructor(t){let s=C(t),e=he(s.map(r=>r.seq));super(s.map((r,o)=>[r.id,e[o]]))}static sniff(t){if(typeof t=="string"&&!R(t))return!1;let s=C(t).map(o=>o.seq).filter(o=>!!o);if(s.length<2||new Set(s.map(o=>o.length)).size===1)return!1;let e=!1,r;for(let o of s){let i=0;for(let c=0;c<o.length;c++){let a=o.charCodeAt(c);U(a)?i++:D(a)&&(e=!0)}if(r!==void 0&&i!==r)return!1;r=i}return e}};function he(n){let t=n.map(me),s=0;for(let{matches:r}of t)s=Math.max(s,r.length);let e=new Array(s+1).fill(0);for(let{inserts:r}of t)for(let[o,i]of r.entries())e[o]=Math.max(e[o],i.length);return t.map(({matches:r,inserts:o})=>{let i=[];for(let c=0;c<=s;c++){let a=o[c]??"";i.push(a,".".repeat(e[c]-a.length)),c<s&&i.push(r[c]??"-")}return i.join("")})}function ge(n){let t=/\(?(\d+(\.\d+)+)\)?/.exec(n);return t&&t.length>1?t[1]:""}function H(n){let t=["CLUSTAL","PROBCONS","MUSCLE","MSAPROBS","Kalign"];t.some(e=>n.startsWith(e))||console.warn(`${n} is not a known CLUSTAL header: ${t.join(",")}, proceeding but could indicate an issue`);let s=ge(n);return{info:n,version:s}}function L(n){let t=n.next();for(;!t.done&&t.value.trim()==="";)t=n.next();return t.value}function Se(n){let t=n.split(/\s+/),s=n.slice(t[0].length),e=t[0].length+s.indexOf(t[1]),r=e+t[1].length;return[e,r]}function W(n){let t=L(n),s=[],e="";if(!t)return;for(;t;)t.startsWith(" ")?e=t:s.push(t),t=n.next().value;let[r,o]=Se(s[0]),c=s.map(l=>l.split(/\s+/)).map(l=>l[0]),a=s.map(l=>l.slice(r,o)),f=e.slice(r,o),u=a[0].length-f.length;return u&&(f+=" ".repeat(u)),{ids:c,seqs:a,consensus:f}}function v(n){let t,s=W(n);if(s!==void 0)for(;t=W(n);){for(let e=0;e<t.seqs.length;e++)s.seqs[e]+=t.seqs[e];s.consensus+=t.consensus}return s}function xe(n){let t=L(n);if(!t)throw new Error("Empty file received");let s=H(t),e=v(n);if(e===void 0)throw new Error("No blocks parsed");let r=e.seqs.map((i,c)=>({id:e.ids[c],seq:i})),{consensus:o}=e;if(o.length!==r[0].seq.length)throw new Error(`Consensus length != sequence length. Con ${o.length} seq ${r[0].seq.length}`);return{consensus:o,alns:r,header:s}}function z(n){let t=n.split(`
|
|
4
|
+
`)[Symbol.iterator]();return xe(t)}var g=class extends p{MSA;constructor(t){let s=z(t);super(s.alns.map(e=>[e.id,e.seq])),this.MSA=s}getHeader(){return this.MSA.header}get seqConsensus(){return this.MSA.consensus}};function K(n){let t=n.split(`
|
|
5
|
+
`).map(o=>o.trim()).filter(o=>!!o),s=[],e=[];for(let o of t)if(o.startsWith("SEQ"))s.push(o);else{if(o.startsWith("DATA"))continue;if(o.startsWith("//"))break;e.push(o)}let r=s.map(o=>{let[,i,c,a,f,u,l,h,k]=o.split(" ");return{species:i,protein:c,chr:a,start:+f,end:+u,strand:+l,geneId:h,unknown:k,seq:""}});for(let o of e)for(let i=0;i<s.length;i++)r[i].seq+=o[i];return r}function Q(n){let t=n.split(`
|
|
6
|
+
`).map(o=>o.trim()).filter(o=>!!o),s=[],e="";for(let o of t)if(o.startsWith("SEQ"))s.push(o);else{if(o.startsWith("DATA"))continue;if(o.startsWith("//"))break;e=o}let r=s.map(o=>{let[,i,c,a,f,u,l,h,k]=o.split(" ");return{species:i,protein:c,chr:a,start:+f,end:+u,strand:+l,geneId:h,unknown:k}});return{tree:e,seqs:r}}function b(n){return n.replace(/^(?:#[^\n]*\n|[^\S\n]*\n)*/,"")}function E(n){return b(n).startsWith("SEQ")}function Z(n){return K(b(n))}function O(n){return Q(b(n))}var S=class extends p{constructor(t){super(Z(t).map(s=>[s.protein,s.seq]))}};var x=class extends p{colonNormalized=new Map;constructor(t){let s=C(t);super(s.map(e=>[e.id,e.seq]));for(let{id:e}of s)e.includes(":")&&this.colonNormalized.set(e.replaceAll(":","_"),e)}getRow(t){return this.rows.get(t)??this.rows.get(this.colonNormalized.get(t)??"")??""}};function w(n){return j(n,{postParenNumeric:"name"})}function q(){let n={};return Object.setPrototypeOf(n,null),n}function X(){return{gf:q(),gc:q(),gs:q(),gr:q(),seqname:[],seqdata:q()}}function T(n,t){if(n)return n;if(t)throw new Error("No format header: # STOCKHOLM 1.0");return X()}var J=/^# STOCKHOLM 1.0/,Ae=/^\/\/\s*$/,we=/^#=GF\s+(\S+)\s+(.*?)\s*$/,Ee=/^#=GC\s+(\S+)\s+(.*?)\s*$/,Me=/^#=GS\s+(\S+)\s+(\S+)\s+(.*?)\s*$/,Ce=/^#=GR\s+(\S+)\s+(\S+)\s+(.*?)\s*$/,be=/^\s*([^#\s]\S*)\s+(\S+)\s*$/,qe=/\S/;function N(n){return J.test(n)}function V(n,t){let s=t??{},e=[],r=null,o=!1,i=n.split(`
|
|
7
|
+
`);for(let c of i){let a;if(J.test(c))r&&e.push(r),r=X(),o=!1;else if(Ae.test(c))r&&e.push(r),r=null;else if(a=we.exec(c)){r=T(r,!!s.strict);let f=a[1],u=r.gf[f]??=[];f==="NH"&&o&&u.length>0?u[u.length-1]+=a[2]:u.push(a[2]),o=f==="NH"}else if(a=Ee.exec(c))r=T(r,!!s.strict),r.gc[a[1]]=(r.gc[a[1]]??"")+a[2];else if(a=Me.exec(c)){r=T(r,!!s.strict);let f=r.gs[a[2]]??=Object.create(null);(f[a[1]]??=[]).push(a[3])}else if(a=Ce.exec(c)){r=T(r,!!s.strict);let f=r.gr[a[2]]??=Object.create(null);f[a[1]]=(f[a[1]]??"")+a[3]}else if(a=be.exec(c)){r=T(r,!!s.strict);let f=a[1],u=a[2];r.seqdata[f]===void 0&&(r.seqdata[f]="",r.seqname.push(f)),r.seqdata[f]+=u}else if(qe.test(c)&&s.strict)throw new Error("Malformed line")}return r&&e.push(r),e}var A=class extends p{data;MSA;constructor(t,s){let e=V(t),r=e[s]??e[0];if(!r)throw new Error("No alignments found in Stockholm file");super(r.seqname.map(o=>[o,r.seqdata[o]??""])),this.data=e,this.MSA=r}getMSA(){return this.MSA}get alignmentNames(){return this.data.map((t,s)=>t.gf.DE?.[0]??`Alignment ${s+1}`)}getHeader(){let t=this.MSA.gs.AC??{},s=this.MSA.gs.DR??{};return{General:this.MSA.gf,Accessions:Object.fromEntries(Object.entries(t).map(([e,r])=>[e,r[0]])),Dbxref:Object.fromEntries(Object.entries(s).map(([e,r])=>[e,r.join("; ")]))}}getRowData(t){return{name:t,accession:this.MSA.gs.AC?.[t]?.[0],dbxref:this.MSA.gs.DR?.[t]?.join("; ")}}getStructures(){let t=/PDB; +(\S+) +([^;\s]+); *(-?[0-9]+)-(-?[0-9]+)/,s=this.MSA.gs.DR??{},e={};for(let[r,o]of Object.entries(s))for(let i of o){let c=t.exec(i);c&&(e[r]??=[]).push({pdb:c[1].toLowerCase(),chain:c[2],startPos:+c[3],endPos:+c[4]})}return e}getTree(){let t=this.MSA.gf.NH?.[0];return t?_(w(t)):super.getTree()}get seqConsensus(){return this.MSA.gc.seq_cons}get secondaryStructureConsensus(){return this.MSA.gc.SS_cons}get tracks(){let{seq_cons:t,SS_cons:s,...e}=this.MSA.gc;return[{id:"seqConsensus",name:"Sequence consensus",data:t,customColorScheme:{}},{id:"secondaryStruct",name:"Secondary-structure",data:s,customColorScheme:ee},...Object.entries(e).map(([r,o])=>({id:`gc-${r}`,name:r,data:o,customColorScheme:Y(r)}))]}get annotations(){return Object.entries(this.MSA.gr).flatMap(([t,s])=>Object.entries(s).flatMap(([e,r])=>ke(r,this.MSA.seqdata[e]??"").flatMap(o=>{let i=Te(o.mark);if(i===null)return[];let c=i?`${t} ${i}`:t;return[{id:e,accession:c,name:c,description:`#=GR ${t}`,start:o.start,end:o.end,color:Y(t)[o.mark]??Ne[i],defaultOff:!0}]})))}};function Te(n){return n==="*"?"":"HGI".includes(n)?"helix":"EB".includes(n)?"strand":"TSC".includes(n)?null:"<>()[]{}".includes(n)?"paired":n}var Ne={helix:"#e53935",strand:"#43a047"},Re=new Set([".","-","_",",",":","~"," "]);function Oe(n){return n==="-"||n==="."}function ke(n,t){let s=[],e=0,r;for(let o=0;o<n.length;o++){if(Oe(t[o]))continue;e++;let i=n[o];r?.mark===i?r.end=e:(r=Re.has(i)?void 0:{mark:i,start:e,end:e},r&&s.push(r))}return s}var ee={"<":"lightblue","(":"lightblue","[":"lightblue","{":"lightblue",">":"pink",")":"pink","]":"pink","}":"pink"};function Y(n){return n==="SS"||n.endsWith("_SS")?ee:{}}function te(n){let t=new Map(n.map(e=>{let r=e.dist===void 0?void 0:Number(e.dist);return[e.id,{id:`${e.id}`,name:e.label===void 0||e.label===""?`${e.id}`:e.label,...r!==void 0&&Number.isFinite(r)?{length:r}:{},children:[]}]})),s;for(let e of n){let r=t.get(e.id),o=e.parent!==void 0?t.get(e.parent):void 0;o?o.children.push(r):s??=r}if(s===void 0)throw new Error("could not build tree from flat node list: no root found (input was empty or contains a parent cycle)");return s}var Fe={$NODE_COLLAPSED:"collapsed",$NODE_COLOR:"color",$LABEL_BG_COLOR:"color","seq-id":"seqId","seq-title":"seqTitle","align-index":"alignIndex","accession-nbr":"accessionNbr","blast-name":"blastName","common-name":"commonName","leaf-count":"leafCount"};function I(n,t){let s=1,e=t+1;for(;e<n.length&&s>0;)n[e]==="{"?s++:n[e]==="}"&&s--,e++;return s===0?e:-1}function G(n){let t=[],s=0;for(;s<n.length;){let e=n.indexOf("{",s);if(e===-1)break;let r=I(n,e);if(r===-1)break;t.push(n.slice(e+1,r-1).trim()),s=r}return t}function ye(n,t){let s=n.indexOf("{",t);if(s===-1)return;let e=I(n,s);return e===-1?void 0:n.slice(s+1,e-1).trim()}function ne(n){let t=n.replace(/\s+/g," ").replace(/\s*{\s*/g,"{").replace(/\s*}\s*/g,"}").replace(/\s*,\s*/g,",").replace(/\s*::\s*=\s*/g,"::=").replace(/^.*?::=/,""),s=$e(t),{fdict:e,nodes:r}=s;if(e===void 0||r===void 0)throw new Error(`invalid BioTreeContainer ASN.1: missing '${e===void 0?"fdict":"nodes"}' section`);let o=new Map(G(e).flatMap(i=>{let c=_e(i);return c?[[c.id,Fe[c.name]??c.name]]:[]}));return G(r).flatMap(i=>{let c=Pe(i);if(!c)return[];let{features:a=[],...f}=c,u=Object.fromEntries(a.flatMap(l=>{let h=o.get(l.featureid);return h===void 0?[]:[[h,l.value]]}));return[{...f,...u}]})}function $e(n){let t={},s=n.trim();s.startsWith("{")&&s.endsWith("}")&&(s=s.slice(1,-1).trim());let e=0;for(;e<s.length;){for(;e<s.length&&/\s/.test(s[e]);)e++;if(e>=s.length)break;let r=e;for(;e<s.length&&/\w/.test(s[e]);)e++;if(e>=s.length||s[e]!==" "&&s[e]!=="{"){e=s.indexOf(",",e),e=e===-1?s.length:e+1;continue}let o=s.slice(r,e).trim();for(;e<s.length&&/\s/.test(s[e]);)e++;if(e>=s.length||s[e]!=="{"){e=s.indexOf(",",e),e=e===-1?s.length:e+1;continue}let i=I(s,e);if(i===-1)break;t[o]=s.slice(e+1,i-1).trim(),e=s.indexOf(",",i),e=e===-1?s.length:e+1}return t}function _e(n){let t=/id\s+(\d+)/.exec(n),s=/name\s+"((?:[^"\\]|\\.)*)"/s.exec(n);return!t||!s?null:{id:parseInt(t[1],10),name:s[1].replace(/\\"/g,'"').replace(/\\\\/g,"\\")}}function Pe(n){let t=/id\s+(\d+)/.exec(n);if(!t)return null;let s=/parent\s+(\d+)/.exec(n),e=n.indexOf("features"),r=e!==-1?ye(n,e):void 0;return{id:parseInt(t[1],10),...s?{parent:parseInt(s[1],10)}:{},features:r?G(r).flatMap(o=>{let i=Le(o);return i?[i]:[]}):[]}}function Le(n){let t=/featureid\s+(\d+)/.exec(n),s=/value\s+"((?:[^"\\]|\\.)*)"/s.exec(n);return!t||!s?null:{featureid:parseInt(t[1],10),value:s[1].replace(/\\"/g,'"').replace(/\\\\/g,"\\")}}function se(n){return n.startsWith("BioTreeContainer")?te(ne(n)):w(E(n)?O(n).tree:n)}var Ge=/^<(!doctype\s+html|html[\s>])/i,Ie=/^(CLUSTAL|MUSCLE|PROBCONS|MSAPROBS|Kalign)/i;function je(n,t=0,s){let e=n.replace(/^\uFEFF/,"").replaceAll(/\r\n?/g,`
|
|
8
|
+
`).trimStart();if(Ge.test(e))throw new Error("Received an HTML page, not an alignment. Check that the URL points at the file itself");if(s==="stockholm")return new A(e,t);if(s==="a3m")return new m(e);if(s==="fasta")return new x(e);if(s==="emf")return new S(e);if(s==="clustal")return new g(e);if(N(e))return new A(e,t);if(R(e)){let o=P(e);return m.sniff(o)?new m(o):new x(o)}if(E(e))return new S(e);if(Ie.test(e))return new g(e);let r=e.split(`
|
|
9
|
+
`,1)[0].slice(0,80);throw new Error(r?`Unrecognized alignment format: expected FASTA, A3M, Stockholm, Clustal or EMF, but the first line reads "${r}"`:"The alignment file is empty")}function Be(n){return n.replaceAll(/[.-]/g,"")}function re(n){try{return decodeURIComponent(n)}catch{return n}}function De(n){return n.replace(/^"(.*)"$/,"$1")}function Ue(n){if(!n)return{};let t={};for(let s of n.split(";")){let e=s.indexOf("="),r=s.slice(0,e).trim(),o=s.slice(e+1);e!==-1&&r&&o&&(t[r]=o.split(",").map(i=>De(re(i).trim())).join(" "))}return t}function oe(n){if(!n)return[];let t=[];for(let s of n.split(`
|
|
10
|
+
`)){let e=s.trim();if(e.startsWith("##FASTA"))break;e&&!e.startsWith("#")&&e.split(" ").length>=8&&t.push(e)}return t.map(s=>{let e=s.split(" "),[r,o,i,c,a,f,u,l]=e,h=e[8];return{...Ue(h),seq_id:re(r??""),source:o??"",type:i??"",start:Number(c)||0,end:Number(a)||0,score:Number(f)||0,strand:u??".",phase:l??"."}})}var We=new Set(["gene","CDS","pseudogene","mRNA","transcript","primary_transcript","ncRNA","tRNA","rRNA","snRNA","snoRNA","miRNA","lnc_RNA"]);function He({type:n,strand:t}){let s=t==="+"?1:t==="-"?-1:void 0;return We.has(n)?s:void 0}var ve=new Set(["seq_id","source","type","start","end","score","strand","phase"]);function ze(n){return!ve.has(n[0])&&typeof n[1]=="string"}function Ke(n){let t=Object.entries(n).filter(ze);return t.length>0?Object.fromEntries(t):void 0}var Qe=/^(\d{1,3})[\s,]+(\d{1,3})[\s,]+(\d{1,3})$/;function d(n,t){let s=n[t];return typeof s=="string"&&s!==""?s:void 0}function Ze(n){let t=d(n,"color")??d(n,"colour")??d(n,"Color")??d(n,"Colour");if(!t)return;let s=Qe.exec(t.trim());return s?`rgb(${s[1]},${s[2]},${s[3]})`:t.trim()}var Xe=new Set(["polypeptide","nucleic_acid"]);function ie(n){return n.filter(t=>!Xe.has(t.type)).map(t=>{let s=d(t,"Name")??d(t,"ID")??`${t.source}_${t.start}_${t.end}`,e=d(t,"signature_desc")??d(t,"Name")??s;return{id:t.seq_id,accession:s,name:e,description:d(t,"description")??d(t,"Note")??d(t,"signature_desc")??e,featureType:t.type,start:t.start,end:t.end,strand:He(t),color:Ze(t),attributes:Ke(t)}})}export{_ as a,A as b,se as c,je as d,Be as e,oe as f,ie as g,ae as h};
|
|
11
|
+
//# sourceMappingURL=chunk-JJ3VMN7J.js.map
|