@sjcrh/proteinpaint-client 2.187.0 → 2.188.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.
Files changed (963) hide show
  1. package/dist/2dmaf-6YIEXAIG.js +1372 -0
  2. package/dist/AIProjectAdmin-5K5NIQNT.js +828 -0
  3. package/dist/AppHeader-4SN5M6SZ.js +834 -0
  4. package/dist/BoxPlot-DBJA6TQF.js +1218 -0
  5. package/dist/CorrelationVolcano-MDMTMTT5.js +618 -0
  6. package/dist/DE-S5AFNI4I.js +94 -0
  7. package/dist/DEinput-XVBBA74N.js +300 -0
  8. package/dist/DifferentialAnalysis-TUBGPAB2.js +244 -0
  9. package/dist/DifferentialAnalysis-TUBGPAB2.js.map +7 -0
  10. package/dist/Disco-VV7FQ7WW.js +3236 -0
  11. package/dist/Disco.UI-JDJFJFEY.js +244 -0
  12. package/dist/DmrPlot-XOG67W74.js +641 -0
  13. package/dist/GB-K3AWZQFF.js +1129 -0
  14. package/dist/GeneExpInput-Y7MDS2CA.js +365 -0
  15. package/dist/HicApp-53OTZ3YU.js +2249 -0
  16. package/dist/NumBinaryEditor-SB4YR3JM.js +269 -0
  17. package/dist/NumBinaryEditor.unit.spec-V2W2OZYP.js +285 -0
  18. package/dist/NumContEditor-RZZBM7PR.js +106 -0
  19. package/dist/NumContEditor.unit.spec-GAAW3ZZN.js +168 -0
  20. package/dist/NumCustomBinEditor-GFCGPRPI.js +37 -0
  21. package/dist/NumCustomBinEditor.unit.spec-24MXSO3L.js +283 -0
  22. package/dist/NumDiscreteEditor-HAHIOFNC.js +178 -0
  23. package/dist/NumDiscreteEditor.unit.spec-JYN2CWSI.js +201 -0
  24. package/dist/NumRegularBinEditor-7DOE64RB.js +37 -0
  25. package/dist/NumRegularBinEditor.unit.spec-2WU4GGNT.js +226 -0
  26. package/dist/NumSplineEditor-JLRD5TVX.js +191 -0
  27. package/dist/NumSplineEditor.unit.spec-LOG7CECJ.js +198 -0
  28. package/dist/NumericDensity-IDOP7I34.js +37 -0
  29. package/dist/NumericDensity.unit.spec-HTJQRPVH.js +220 -0
  30. package/dist/NumericHandler-DWVVGLLB.js +38 -0
  31. package/dist/NumericHandler.unit.spec-BDDFTHOF.js +218 -0
  32. package/dist/ProteomeInput-PK4ZM3SZ.js +395 -0
  33. package/dist/ProteomeInput-PK4ZM3SZ.js.map +7 -0
  34. package/dist/RunChart2-PBJ56YX3.js +757 -0
  35. package/dist/SC-UC3HP2MY.js +830 -0
  36. package/dist/SC-UC3HP2MY.js.map +7 -0
  37. package/dist/Volcano-BZJCA53R.js +1314 -0
  38. package/dist/Volcano-BZJCA53R.js.map +7 -0
  39. package/dist/WSIViewer-OHOP2DZT.js +48475 -0
  40. package/dist/WSIViewer-OHOP2DZT.js.map +7 -0
  41. package/dist/WsiSamplesPlot-FOMPMEXK.js +164 -0
  42. package/dist/adSandbox-SRPPCYYR.js +37 -0
  43. package/dist/alphaGenome-IS2WAJCK.js +174 -0
  44. package/dist/app-GTHYSGWI.js +36 -0
  45. package/dist/app-XEKETNLG.js +48 -0
  46. package/dist/app.js +20 -20
  47. package/dist/bam-GQBFL6A7.js +859 -0
  48. package/dist/barchart-AESC4JSX.js +46 -0
  49. package/dist/barchart.data-RE34IC4G.js +22 -0
  50. package/dist/barchart.events-KM4J5ISO.js +46 -0
  51. package/dist/barchart.integration.spec-DFVSBGO3.js +1676 -0
  52. package/dist/barchart2-NNTL4RQZ.js +310 -0
  53. package/dist/block-EHZM3FUX.js +6201 -0
  54. package/dist/block.init-EAEFNNF6.js +37 -0
  55. package/dist/block.mds.expressionrank-ZBHA2CFE.js +358 -0
  56. package/dist/block.mds.geneboxplot-4ZU3QUAK.js +827 -0
  57. package/dist/block.mds.junction-PDH55JXO.js +1544 -0
  58. package/dist/block.mds.svcnv-QWBU54XQ.js +6800 -0
  59. package/dist/block.svg-HUGBYWXU.js +163 -0
  60. package/dist/block.tk.aicheck-SDCWXQZF.js +282 -0
  61. package/dist/block.tk.ase-HMUTHCJS.js +364 -0
  62. package/dist/block.tk.bam-Q7B2YQLI.js +1905 -0
  63. package/dist/block.tk.bedgraphdot-QBGBSVHN.js +383 -0
  64. package/dist/block.tk.bigwig.ui-767A3MUH.js +211 -0
  65. package/dist/block.tk.hicstraw-LEZUZHLF.js +822 -0
  66. package/dist/block.tk.junction-GQHCZOYR.js +2363 -0
  67. package/dist/block.tk.junction.textmatrixui-D5QUO7KQ.js +198 -0
  68. package/dist/block.tk.ld-E3MHZOG5.js +98 -0
  69. package/dist/block.tk.menu-XE7PFYGR.js +1028 -0
  70. package/dist/block.tk.pgv-MPPMPDED.js +943 -0
  71. package/dist/brainImaging-YQ443NOL.js +422 -0
  72. package/dist/chunk-26WXJBSR.js +228 -0
  73. package/dist/chunk-2P6Z7JFC.js +119 -0
  74. package/dist/chunk-2QQO4RRD.js +2681 -0
  75. package/dist/chunk-2T7VYQLY.js +281 -0
  76. package/dist/chunk-2T7VYQLY.js.map +7 -0
  77. package/dist/chunk-2XPDA6NL.js +20652 -0
  78. package/dist/chunk-2XPDA6NL.js.map +7 -0
  79. package/dist/chunk-37ARSZOI.js +2815 -0
  80. package/dist/chunk-42Q53PXE.js +381 -0
  81. package/dist/chunk-46ASPS5Y.js +386 -0
  82. package/dist/chunk-4KPI7PB5.js +142 -0
  83. package/dist/chunk-4MDNMCGZ.js +102 -0
  84. package/dist/chunk-5IG3E4DT.js +272 -0
  85. package/dist/chunk-5MIR7IHI.js +52 -0
  86. package/dist/chunk-5MZVXJVA.js +55 -0
  87. package/dist/chunk-66D5GRS5.js +263 -0
  88. package/dist/chunk-6ATE2TRC.js +534 -0
  89. package/dist/chunk-6BFR6MK3.js +158 -0
  90. package/dist/chunk-6NJMCO4X.js +335 -0
  91. package/dist/chunk-6ON5KAMO.js +54 -0
  92. package/dist/chunk-76GPYMHZ.js +102 -0
  93. package/dist/chunk-7AAFBFOH.js +147 -0
  94. package/dist/chunk-7OOZHEUC.js +302 -0
  95. package/dist/chunk-A4VLWLYF.js +226 -0
  96. package/dist/chunk-A6EFWGWD.js +444 -0
  97. package/dist/chunk-ALW5XXVW.js +170 -0
  98. package/dist/chunk-ANCT2BGO.js +34 -0
  99. package/dist/chunk-AROMXWCY.js +291 -0
  100. package/dist/chunk-AY4UBGLC.js +815 -0
  101. package/dist/chunk-B43MTEYB.js +84 -0
  102. package/dist/chunk-B43MTEYB.js.map +7 -0
  103. package/dist/chunk-BMVLR3TM.js +1210 -0
  104. package/dist/chunk-BR7JA2EO.js +621 -0
  105. package/dist/chunk-C3SYSMNE.js +42 -0
  106. package/dist/chunk-C3SYSMNE.js.map +7 -0
  107. package/dist/chunk-D3HJXMTH.js +17 -0
  108. package/dist/chunk-DKUEZ4XD.js +205 -0
  109. package/dist/chunk-DT3MMC5U.js +31 -0
  110. package/dist/chunk-DYVKN7EE.js +5000 -0
  111. package/dist/chunk-EF37UZY6.js +37 -0
  112. package/dist/chunk-ESXMS7FW.js +229 -0
  113. package/dist/chunk-FDK4UJMN.js +263 -0
  114. package/dist/chunk-FDK4UJMN.js.map +7 -0
  115. package/dist/chunk-FUSVXQ6C.js +368 -0
  116. package/dist/chunk-G7JRRTS5.js +170 -0
  117. package/dist/chunk-G7JRRTS5.js.map +7 -0
  118. package/dist/chunk-GHWHLSUX.js +192 -0
  119. package/dist/chunk-GHWHLSUX.js.map +7 -0
  120. package/dist/chunk-GXKVAPGP.js +2786 -0
  121. package/dist/chunk-H4JIENLQ.js +39 -0
  122. package/dist/chunk-H7YJG4YM.js +470 -0
  123. package/dist/chunk-I24KPIDD.js +148 -0
  124. package/dist/chunk-IENFDUWD.js +203 -0
  125. package/dist/chunk-IKHIY6IZ.js +2327 -0
  126. package/dist/chunk-IKHIY6IZ.js.map +7 -0
  127. package/dist/chunk-J7BISJTL.js +50 -0
  128. package/dist/chunk-J7KYOSEK.js +824 -0
  129. package/dist/chunk-JGPZ5254.js +371 -0
  130. package/dist/chunk-JUIPCWAM.js +194 -0
  131. package/dist/chunk-LO4NMQ7W.js +293 -0
  132. package/dist/chunk-LSSLS5HV.js +95 -0
  133. package/dist/chunk-MDLRB3MR.js +407 -0
  134. package/dist/chunk-MJLKGZ27.js +129 -0
  135. package/dist/chunk-MYWJQRTD.js +1849 -0
  136. package/dist/chunk-MYWJQRTD.js.map +7 -0
  137. package/dist/chunk-NL5T3SBK.js +4209 -0
  138. package/dist/chunk-NMBIT4IK.js +46 -0
  139. package/dist/chunk-NMBIT4IK.js.map +7 -0
  140. package/dist/chunk-ONAYJVN2.js +217 -0
  141. package/dist/chunk-PP7K4R2E.js +141 -0
  142. package/dist/chunk-PP7K4R2E.js.map +7 -0
  143. package/dist/chunk-PSMFOARZ.js +14 -0
  144. package/dist/chunk-QX3GF2IA.js +514 -0
  145. package/dist/chunk-QZ2U4BOS.js +1159 -0
  146. package/dist/chunk-RBZBBNLL.js +1087 -0
  147. package/dist/chunk-RQ2ZJ66W.js +276 -0
  148. package/dist/chunk-RQ2ZJ66W.js.map +7 -0
  149. package/dist/chunk-RZTFQXWV.js +117 -0
  150. package/dist/chunk-SJC2C77V.js +177 -0
  151. package/dist/chunk-THUXB7EE.js +698 -0
  152. package/dist/chunk-THUXB7EE.js.map +7 -0
  153. package/dist/chunk-TVXVP4M6.js +215 -0
  154. package/dist/chunk-UTDPKDIY.js +482 -0
  155. package/dist/chunk-UVIUB7QI.js +280 -0
  156. package/dist/chunk-VAUSRBL5.js +6364 -0
  157. package/dist/chunk-VP3IZVQA.js +54 -0
  158. package/dist/chunk-VP3IZVQA.js.map +7 -0
  159. package/dist/chunk-WP22GYZ2.js +446 -0
  160. package/dist/chunk-WUNX3VST.js +1271 -0
  161. package/dist/chunk-X7GDCYND.js +1561 -0
  162. package/dist/chunk-X7GDCYND.js.map +7 -0
  163. package/dist/chunk-XB3V6S2X.js +1230 -0
  164. package/dist/chunk-XB3V6S2X.js.map +7 -0
  165. package/dist/chunk-XD4TBJK2.js +455 -0
  166. package/dist/chunk-Y6DSXMPB.js +121 -0
  167. package/dist/chunk-YBIZRASR.js +252 -0
  168. package/dist/chunk-YI2YH7ZK.js +158 -0
  169. package/dist/chunk-YLDE3PVC.js +1943 -0
  170. package/dist/chunk-Z736NYXL.js +26 -0
  171. package/dist/chunk-ZEJB7CPC.js +95 -0
  172. package/dist/chunk-ZGWEBKZ4.js +100 -0
  173. package/dist/condition-FSF6ROJV.js +331 -0
  174. package/dist/controls-OPSBFDFZ.js +40 -0
  175. package/dist/controls.config-3QRV5363.js +38 -0
  176. package/dist/correlation-WLOI7Z35.js +97 -0
  177. package/dist/cuminc-G2UGJUUA.js +1148 -0
  178. package/dist/cuminc.integration.spec-X5NEZ6S5.js +677 -0
  179. package/dist/customdata.inputui-RNW3AO3Z.js +288 -0
  180. package/dist/dataDownload-4U3TGDMH.js +329 -0
  181. package/dist/dataDownload.integration.spec-6FUI2SJ4.js +192 -0
  182. package/dist/databrowser.ui-4GVJVJWG.js +432 -0
  183. package/dist/dictionary-NSDS7Z4K.js +110 -0
  184. package/dist/dnaMethylation-OYQB75LD.js +37 -0
  185. package/dist/dnaMethylation.integration.spec-6TTLV34N.js +202 -0
  186. package/dist/dofetch-4TO3QMT6.js +50 -0
  187. package/dist/e2pca-NYBVR6PL.js +349 -0
  188. package/dist/ep-RTDVEA4D.js +1255 -0
  189. package/dist/expclust.gdc.spec-JVIRESTP.js +306 -0
  190. package/dist/facet-OVBF2QMO.js +520 -0
  191. package/dist/forms2-HTLS54CX.js +533 -0
  192. package/dist/gb-Y3546HMZ.js +87 -0
  193. package/dist/geneExpClustering-PH3PWH3K.js +248 -0
  194. package/dist/geneExpression-2Z2EV3XM.js +37 -0
  195. package/dist/geneExpression-6CFXOCGW.js +312 -0
  196. package/dist/geneExpression.unit.spec-WKUTHRHC.js +101 -0
  197. package/dist/geneORA-SHLZESLB.js +277 -0
  198. package/dist/geneVariant-FHZUIFPM.js +38 -0
  199. package/dist/geneVariant-Y7ZUBEOX.js +40 -0
  200. package/dist/geneVariant.integration.spec-N7TZUOY3.js +197 -0
  201. package/dist/genefusion.ui-7PDVZPZ2.js +308 -0
  202. package/dist/geneset-HLVOGYUI.js +202 -0
  203. package/dist/genomeBrowser.spec-7IVIMUR5.js +280 -0
  204. package/dist/grin2-2GNWIYFU.js +845 -0
  205. package/dist/grin2-2GNWIYFU.js.map +7 -0
  206. package/dist/grin2-Z5O7254R.js +1555 -0
  207. package/dist/gsea-TFC3MBRW.js +46 -0
  208. package/dist/hierCluster-ERSE5I4I.js +62 -0
  209. package/dist/hierCluster-QQZQU5ZG.js +58 -0
  210. package/dist/hierCluster.config-WPINWW37.js +39 -0
  211. package/dist/hierCluster.integration.spec-Y6OHSKPW.js +394 -0
  212. package/dist/hierCluster.interactivity-HS3G5QC5.js +53 -0
  213. package/dist/hierCluster.renderers-W63ZKZTT.js +21 -0
  214. package/dist/imagePlot-QFVN25PM.js +162 -0
  215. package/dist/importPlot-MIDM5APH.js +8 -0
  216. package/dist/isoformExpression-L4TRNT4A.js +39 -0
  217. package/dist/isoformExpression.unit.spec-QQG323LA.js +207 -0
  218. package/dist/launch.adhoc-4NQ6GGGL.js +41 -0
  219. package/dist/leftlabel.sample-JU7AIPZL.js +259 -0
  220. package/dist/legacyDataset-TT4CHF23.js +119 -0
  221. package/dist/lollipop-JG74M6PJ.js +170 -0
  222. package/dist/maf-PDL2EGHI.js +451 -0
  223. package/dist/maftimeline-V43NQEEE.js +592 -0
  224. package/dist/matrix-EB2EFP4S.js +57 -0
  225. package/dist/matrix-Q57FU5FE.js +62 -0
  226. package/dist/matrix.cells-NJIMPD32.js +28 -0
  227. package/dist/matrix.config-GLDEQD3H.js +40 -0
  228. package/dist/matrix.data-6SHAKOQU.js +25 -0
  229. package/dist/matrix.groups-MTDEANQA.js +26 -0
  230. package/dist/matrix.integration.spec-JCZ5VQJU.js +3071 -0
  231. package/dist/matrix.interactivity-SVRNWL6V.js +41 -0
  232. package/dist/matrix.layout-2HREO42N.js +43 -0
  233. package/dist/matrix.legend-QHVKT3MP.js +22 -0
  234. package/dist/matrix.renderers-IYR3ZY6V.js +37 -0
  235. package/dist/matrix.serieses-2VMTQXL2.js +21 -0
  236. package/dist/matrix.sort-PWA2RQQR.js +27 -0
  237. package/dist/matrix.sort.unit.spec-3OYIPTFY.js +471 -0
  238. package/dist/matrix.sorterUi-Y5QLO75X.js +18 -0
  239. package/dist/matrix.sorterUi.unit.spec-BNEXQHLP.js +341 -0
  240. package/dist/mavb-IZDDU4KK.js +731 -0
  241. package/dist/mds.fimo-FWBL7JE6.js +517 -0
  242. package/dist/mds.samplescatterplot-T47C7DJB.js +1549 -0
  243. package/dist/mds.survivalplot-MFZJCGS6.js +482 -0
  244. package/dist/numericDictTermCluster-I2W67RGA.js +72 -0
  245. package/dist/oncomatrix-6W7IBAED.js +294 -0
  246. package/dist/oncomatrix.spec-CEFH5IGH.js +447 -0
  247. package/dist/plot.2dvaf-BN6CFLNU.js +376 -0
  248. package/dist/plot.app-7EYWUCZV.js +40 -0
  249. package/dist/plot.barplot-MDIARSQD.js +101 -0
  250. package/dist/plot.boxplot-RUHGXC54.js +151 -0
  251. package/dist/plot.brainImaging-JEE32ZBV.js +51 -0
  252. package/dist/plot.disco-2RPNPX6E.js +101 -0
  253. package/dist/plot.dzi-7VTYYGGW.js +33 -0
  254. package/dist/plot.ssgq-FHE5KU5C.js +138 -0
  255. package/dist/plot.vaf2cov-WDJJM5Q4.js +258 -0
  256. package/dist/plot.wsi-FQZWHNSF.js +36 -0
  257. package/dist/polar-M7EGINN4.js +185 -0
  258. package/dist/polar2-JFYY43K2.js +227 -0
  259. package/dist/profile.spec-SIOHASOX.js +79 -0
  260. package/dist/profileBarchart-6JLEKVJV.js +266 -0
  261. package/dist/profileForms-G6CH73RV.js +440 -0
  262. package/dist/profilePlot-NQYJOBVV.js +53 -0
  263. package/dist/profileRadar-4TNWIXDB.js +262 -0
  264. package/dist/profileRadarFacility-XPH3LCBQ.js +262 -0
  265. package/dist/proteinView-OZLHO45J.js +1222 -0
  266. package/dist/proteinView-OZLHO45J.js.map +7 -0
  267. package/dist/proteomeAbundance-NQ4635NL.js +12 -0
  268. package/dist/proteomeAbundance-OV24UTZN.js +59 -0
  269. package/dist/proteomeAbundance-OV24UTZN.js.map +7 -0
  270. package/dist/qualitative-DL4WJG3O.js +42 -0
  271. package/dist/radar2-YNOQWHBT.js +315 -0
  272. package/dist/radarFacility2-24UPSI7S.js +324 -0
  273. package/dist/regression-URAUTLTD.js +55 -0
  274. package/dist/regression.inputs-UDVOU7FB.js +47 -0
  275. package/dist/regression.inputs.term-BWW6W34R.js +47 -0
  276. package/dist/regression.inputs.values.table-UKGIZTXG.js +44 -0
  277. package/dist/regression.integration.spec-EBHQTNA3.js +783 -0
  278. package/dist/regression.results-XTOSWIP6.js +39 -0
  279. package/dist/regression.spec-KG2I53VR.js +707 -0
  280. package/dist/report-KH7SNPVF.js +221 -0
  281. package/dist/sampleScatter.spec-PIXGS3LG.js +201 -0
  282. package/dist/sampleView-TWS6VT55.js +47 -0
  283. package/dist/samplelst-6AB5Y4WR.js +110 -0
  284. package/dist/samplematrix-AJAF555E.js +2197 -0
  285. package/dist/sc-PMNYZKXA.js +85 -0
  286. package/dist/scatter-Q2GH3ZJD.js +801 -0
  287. package/dist/scatter.integration.spec-SMMYKWH3.js +1195 -0
  288. package/dist/selectGenomeWithTklst-VE4SDYY7.js +133 -0
  289. package/dist/singleCellCellType-S324GCKW.js +37 -0
  290. package/dist/singleCellCellType.unit.spec-NXC2GELH.js +159 -0
  291. package/dist/singleCellGeneExpression-6H4HRKIA.js +37 -0
  292. package/dist/singleCellGeneExpression.unit.spec-HIJXVUWJ.js +152 -0
  293. package/dist/singleCellPlot-H7PCZ2DP.js +52 -0
  294. package/dist/singlecell-4LH3MQVL.js +85 -0
  295. package/dist/singlecell-MOSYT3RI.js +1571 -0
  296. package/dist/snp-IKLGTD4Q.js +37 -0
  297. package/dist/snp.unit.spec-GC74MUVM.js +175 -0
  298. package/dist/snplocus-RIABFSBQ.js +207 -0
  299. package/dist/spliceevent.a53ss.diagram-4E2IYYHL.js +150 -0
  300. package/dist/spliceevent.exonskip.diagram-C56R6XLQ.js +276 -0
  301. package/dist/spliceevent.noeventdiagram-SIPMAKXI.js +459 -0
  302. package/dist/ssGSEA-5QNHLSOI.js +37 -0
  303. package/dist/ssGSEA.unit.spec-KVPN553B.js +87 -0
  304. package/dist/summarizeCnvGeneexp-K4VGJSW6.js +162 -0
  305. package/dist/summarizeGeneexpSurvival-HGHX65FN.js +107 -0
  306. package/dist/summarizeMutationCnv-3K4Z6R2X.js +163 -0
  307. package/dist/summarizeMutationDiagnosis-M2MHUPRT.js +39 -0
  308. package/dist/summarizeMutationSurvival-WVBUP3GA.js +98 -0
  309. package/dist/summary-RZHZXCU5.js +48 -0
  310. package/dist/summary.integration.spec-FGZP7DY7.js +413 -0
  311. package/dist/summaryInput-UGM7MMCR.js +234 -0
  312. package/dist/sunburst-L27U7LV7.js +283 -0
  313. package/dist/survival-5ZMEBV6O.js +57 -0
  314. package/dist/survival-JWRRGTJT.js +45 -0
  315. package/dist/survival.integration.spec-Z5542I4V.js +801 -0
  316. package/dist/svgraph-O6ZVLNNN.js +1386 -0
  317. package/dist/svmr-ULFV7OSH.js +3841 -0
  318. package/dist/table-CHRQH2GH.js +199 -0
  319. package/dist/termCollection-FAO6ZA6F.js +178 -0
  320. package/dist/termCollection-GBXS3GOY.js +37 -0
  321. package/dist/termCollection.unit.spec-4WRTOV6E.js +207 -0
  322. package/dist/tk-KNUBWRNK.js +45 -0
  323. package/dist/tp.ui-2PPYOQYL.js +1458 -0
  324. package/dist/tvs.density-BZ5SKDQS.js +18 -0
  325. package/dist/tvs.dt-TDNSTGQR.js +38 -0
  326. package/dist/tvs.dtcnv.categorical-P2IGIE4I.js +39 -0
  327. package/dist/tvs.dtcnv.continuous-2XUCRBDR.js +71 -0
  328. package/dist/tvs.dtfusion-PRHZVMOG.js +39 -0
  329. package/dist/tvs.dtsnvindel-KGKBW5JS.js +39 -0
  330. package/dist/tvs.dtsv-M3CY5TZF.js +39 -0
  331. package/dist/tvs.numeric-W74JCC5P.js +21 -0
  332. package/dist/tvs.samplelst-BTWFBBAN.js +103 -0
  333. package/dist/tvs.termCollection-Y64QIKOA.js +158 -0
  334. package/dist/violin-3LLHHV3L.js +45 -0
  335. package/dist/violin.integration.spec-6NF5FDLQ.js +1424 -0
  336. package/dist/violin.interactivity-W2AKZ24D.js +37 -0
  337. package/dist/violin.renderer-CRFYYZRI.js +39 -0
  338. package/dist/vocabulary-AUJOAVYS.js +40 -0
  339. package/package.json +4 -3
  340. package/dist/2dmaf-DTWWXOZC.js +0 -1372
  341. package/dist/AIProjectAdmin-BCYIWOXD.js +0 -828
  342. package/dist/AppHeader-H3L2MRWP.js +0 -834
  343. package/dist/BoxPlot-INZ6IN3V.js +0 -1218
  344. package/dist/CorrelationVolcano-AK3XW4ZH.js +0 -618
  345. package/dist/DE-IBSFUKNG.js +0 -94
  346. package/dist/DEinput-H4GMQWDY.js +0 -300
  347. package/dist/DifferentialAnalysis-3DSL5LQC.js +0 -243
  348. package/dist/DifferentialAnalysis-3DSL5LQC.js.map +0 -7
  349. package/dist/Disco-5PXXMGGQ.js +0 -3236
  350. package/dist/Disco.UI-23LOT2U6.js +0 -244
  351. package/dist/DmrPlot-PBCU2XNF.js +0 -641
  352. package/dist/GB-HIEPWNPV.js +0 -1129
  353. package/dist/GeneExpInput-A4JNX7PU.js +0 -365
  354. package/dist/HicApp-IDH2A4BC.js +0 -2249
  355. package/dist/NumBinaryEditor-CZ54X7J3.js +0 -269
  356. package/dist/NumBinaryEditor.unit.spec-QLBRM7MJ.js +0 -285
  357. package/dist/NumContEditor-Z5MGLQ2I.js +0 -106
  358. package/dist/NumContEditor.unit.spec-TR7D7ULV.js +0 -168
  359. package/dist/NumCustomBinEditor-B7JID42Y.js +0 -37
  360. package/dist/NumCustomBinEditor.unit.spec-GZJIVY4K.js +0 -283
  361. package/dist/NumDiscreteEditor-LWHZ36T6.js +0 -178
  362. package/dist/NumDiscreteEditor.unit.spec-QCQCMEWO.js +0 -201
  363. package/dist/NumRegularBinEditor-IATRIUKD.js +0 -37
  364. package/dist/NumRegularBinEditor.unit.spec-J6UTQO76.js +0 -226
  365. package/dist/NumSplineEditor-2KMU6SRO.js +0 -191
  366. package/dist/NumSplineEditor.unit.spec-MX7Y4MTD.js +0 -198
  367. package/dist/NumericDensity-JCH7F5FV.js +0 -37
  368. package/dist/NumericDensity.unit.spec-4TKKRKHF.js +0 -220
  369. package/dist/NumericHandler-7FB3RJM7.js +0 -38
  370. package/dist/NumericHandler.unit.spec-U6DCADZY.js +0 -218
  371. package/dist/RunChart2-VQTIVMKM.js +0 -757
  372. package/dist/SC-XW272KAP.js +0 -827
  373. package/dist/SC-XW272KAP.js.map +0 -7
  374. package/dist/Volcano-Y4U3L6D2.js +0 -1352
  375. package/dist/Volcano-Y4U3L6D2.js.map +0 -7
  376. package/dist/WSIViewer-UFB7TI2D.js +0 -47972
  377. package/dist/WSIViewer-UFB7TI2D.js.map +0 -7
  378. package/dist/WsiSamplesPlot-2OAR57YB.js +0 -164
  379. package/dist/adSandbox-IKKFYRF7.js +0 -37
  380. package/dist/alphaGenome-WJNFQGGK.js +0 -174
  381. package/dist/app-UHGTFH6D.js +0 -48
  382. package/dist/app-YETYAR45.js +0 -36
  383. package/dist/bam-S6U7VNJP.js +0 -859
  384. package/dist/barchart-3NJDGHXU.js +0 -46
  385. package/dist/barchart.data-MVVKPDLE.js +0 -22
  386. package/dist/barchart.events-WQGA4CGB.js +0 -46
  387. package/dist/barchart.integration.spec-E6CJTWRN.js +0 -1676
  388. package/dist/barchart2-UNHFOYKB.js +0 -310
  389. package/dist/block-2XHZLY26.js +0 -6201
  390. package/dist/block.init-CMG4V6RB.js +0 -37
  391. package/dist/block.mds.expressionrank-QX2JOEMV.js +0 -358
  392. package/dist/block.mds.geneboxplot-USVQSDBT.js +0 -827
  393. package/dist/block.mds.junction-R6GJO75N.js +0 -1544
  394. package/dist/block.mds.svcnv-MRISSDAX.js +0 -6800
  395. package/dist/block.svg-Z5KKZTDB.js +0 -163
  396. package/dist/block.tk.aicheck-SOFJYYZX.js +0 -282
  397. package/dist/block.tk.ase-EHX5FV2Y.js +0 -364
  398. package/dist/block.tk.bam-DJS6LODM.js +0 -1905
  399. package/dist/block.tk.bedgraphdot-R2YHPXZA.js +0 -383
  400. package/dist/block.tk.bigwig.ui-VPEEQJLS.js +0 -211
  401. package/dist/block.tk.hicstraw-BDYN573B.js +0 -822
  402. package/dist/block.tk.junction-BONB4BXU.js +0 -2363
  403. package/dist/block.tk.junction.textmatrixui-Y5R6KY4N.js +0 -198
  404. package/dist/block.tk.ld-EGVVSXCB.js +0 -98
  405. package/dist/block.tk.menu-4YBMB5JT.js +0 -1028
  406. package/dist/block.tk.pgv-SBHGL6UH.js +0 -943
  407. package/dist/brainImaging-G3WZDYG6.js +0 -422
  408. package/dist/chunk-2K5DSRBJ.js +0 -84
  409. package/dist/chunk-2K5DSRBJ.js.map +0 -7
  410. package/dist/chunk-2O6JF76T.js +0 -121
  411. package/dist/chunk-2QULGYVE.js +0 -368
  412. package/dist/chunk-2VLGHVOL.js +0 -215
  413. package/dist/chunk-32TTOWY6.js +0 -1210
  414. package/dist/chunk-43PMSEMV.js +0 -50
  415. package/dist/chunk-4KSU6NBP.js +0 -194
  416. package/dist/chunk-4SFX42S7.js +0 -1271
  417. package/dist/chunk-4Y444IRJ.js +0 -272
  418. package/dist/chunk-56AN5PPQ.js +0 -679
  419. package/dist/chunk-56AN5PPQ.js.map +0 -7
  420. package/dist/chunk-5FO3NKA4.js +0 -155
  421. package/dist/chunk-5FO3NKA4.js.map +0 -7
  422. package/dist/chunk-5HOR6JQ2.js +0 -100
  423. package/dist/chunk-5LZKQFLO.js +0 -180
  424. package/dist/chunk-5LZKQFLO.js.map +0 -7
  425. package/dist/chunk-5RE3J6HK.js +0 -293
  426. package/dist/chunk-5SMOOFRW.js +0 -386
  427. package/dist/chunk-64Z22QAH.js +0 -14
  428. package/dist/chunk-6NMH6WPB.js +0 -446
  429. package/dist/chunk-7FKIAQ4K.js +0 -17
  430. package/dist/chunk-7NOKTEHK.js +0 -407
  431. package/dist/chunk-7UHUOC6F.js +0 -119
  432. package/dist/chunk-AMYSEKPF.js +0 -1658
  433. package/dist/chunk-AMYSEKPF.js.map +0 -7
  434. package/dist/chunk-ANGDY7VC.js +0 -170
  435. package/dist/chunk-AQ4OP4GR.js +0 -39
  436. package/dist/chunk-AQVOYTLS.js +0 -177
  437. package/dist/chunk-ARINZFQG.js +0 -276
  438. package/dist/chunk-ARINZFQG.js.map +0 -7
  439. package/dist/chunk-BQJVLXEL.js +0 -55
  440. package/dist/chunk-BRMASRRS.js +0 -455
  441. package/dist/chunk-BT4OOYPT.js +0 -280
  442. package/dist/chunk-BTJFVY3R.js +0 -190
  443. package/dist/chunk-BTJFVY3R.js.map +0 -7
  444. package/dist/chunk-C62CSWMV.js +0 -335
  445. package/dist/chunk-CAWDQURD.js +0 -6364
  446. package/dist/chunk-DMAHNBGN.js +0 -1230
  447. package/dist/chunk-DMAHNBGN.js.map +0 -7
  448. package/dist/chunk-EGWVYY7K.js +0 -264
  449. package/dist/chunk-EGWVYY7K.js.map +0 -7
  450. package/dist/chunk-ENWVV6EU.js +0 -2681
  451. package/dist/chunk-EPOELG75.js +0 -56
  452. package/dist/chunk-EPOELG75.js.map +0 -7
  453. package/dist/chunk-FA44G3GZ.js +0 -470
  454. package/dist/chunk-GD7FKXOA.js +0 -148
  455. package/dist/chunk-GF4OSOYW.js +0 -2815
  456. package/dist/chunk-GQOBT2W7.js +0 -203
  457. package/dist/chunk-GTBL7UHX.js +0 -2786
  458. package/dist/chunk-HE7CD7BD.js +0 -482
  459. package/dist/chunk-I7JDV4ZC.js +0 -226
  460. package/dist/chunk-IABWKPRK.js +0 -534
  461. package/dist/chunk-IPDH4FHY.js +0 -54
  462. package/dist/chunk-JNOOLCYB.js +0 -1159
  463. package/dist/chunk-JPKYHLNI.js +0 -158
  464. package/dist/chunk-KMQ6GQ3I.js +0 -1943
  465. package/dist/chunk-KTCW3JA6.js +0 -4209
  466. package/dist/chunk-L4QG7XZE.js +0 -46
  467. package/dist/chunk-L4QG7XZE.js.map +0 -7
  468. package/dist/chunk-LGUE54VX.js +0 -302
  469. package/dist/chunk-LJ4AUJXC.js +0 -95
  470. package/dist/chunk-LN3QYBGI.js +0 -20495
  471. package/dist/chunk-LN3QYBGI.js.map +0 -7
  472. package/dist/chunk-LQQSRNR5.js +0 -228
  473. package/dist/chunk-LSV4Z473.js +0 -31
  474. package/dist/chunk-LTSR7SLO.js +0 -514
  475. package/dist/chunk-LY7GD74F.js +0 -381
  476. package/dist/chunk-MHCTLVGE.js +0 -26
  477. package/dist/chunk-MSAMGAQF.js +0 -2370
  478. package/dist/chunk-MSAMGAQF.js.map +0 -7
  479. package/dist/chunk-NYX4B5CO.js +0 -291
  480. package/dist/chunk-OPPNZXYG.js +0 -129
  481. package/dist/chunk-P6TPXUMP.js +0 -117
  482. package/dist/chunk-PL2CM7RY.js +0 -621
  483. package/dist/chunk-PSGQWZN4.js +0 -147
  484. package/dist/chunk-PZLYNNST.js +0 -371
  485. package/dist/chunk-RA4RQYXQ.js +0 -142
  486. package/dist/chunk-RAJZYWFN.js +0 -95
  487. package/dist/chunk-ROLVOPVR.js +0 -252
  488. package/dist/chunk-RQZJIBIH.js +0 -34
  489. package/dist/chunk-RSE2FOKW.js +0 -217
  490. package/dist/chunk-SDLRTORS.js +0 -263
  491. package/dist/chunk-TF4EDNQO.js +0 -158
  492. package/dist/chunk-TV74I3Y5.js +0 -43
  493. package/dist/chunk-TV74I3Y5.js.map +0 -7
  494. package/dist/chunk-UPPBAFUK.js +0 -5000
  495. package/dist/chunk-UVPAZM3G.js +0 -52
  496. package/dist/chunk-UWYCEYML.js +0 -815
  497. package/dist/chunk-VB3SRNBK.js +0 -37
  498. package/dist/chunk-W6XQR5UL.js +0 -444
  499. package/dist/chunk-XBBUQW52.js +0 -824
  500. package/dist/chunk-XSA3VIEQ.js +0 -205
  501. package/dist/chunk-XZ6MGJQ3.js +0 -102
  502. package/dist/chunk-YC6ZJ7RP.js +0 -1842
  503. package/dist/chunk-YC6ZJ7RP.js.map +0 -7
  504. package/dist/chunk-YEMIL6QU.js +0 -1087
  505. package/dist/chunk-ZD47FENE.js +0 -229
  506. package/dist/chunk-ZYBM24FU.js +0 -102
  507. package/dist/chunk-ZYY54HBU.js +0 -330
  508. package/dist/chunk-ZYY54HBU.js.map +0 -7
  509. package/dist/condition-ARCN26MF.js +0 -331
  510. package/dist/controls-PKWN2JGN.js +0 -40
  511. package/dist/controls.config-NFRPXFUJ.js +0 -38
  512. package/dist/correlation-DPT6XL2U.js +0 -97
  513. package/dist/cuminc-M4U7LQD5.js +0 -1148
  514. package/dist/cuminc.integration.spec-MH4OFYDJ.js +0 -677
  515. package/dist/customdata.inputui-6TAHAMSV.js +0 -288
  516. package/dist/dataDownload-7GZEYSUT.js +0 -329
  517. package/dist/dataDownload.integration.spec-NAIJRFTV.js +0 -192
  518. package/dist/databrowser.ui-LLXHZ5O6.js +0 -432
  519. package/dist/dictionary-MUAURMYE.js +0 -110
  520. package/dist/dnaMethylation-AU5D3U3E.js +0 -37
  521. package/dist/dnaMethylation.integration.spec-JIDBRA6P.js +0 -202
  522. package/dist/dofetch-WSYK5OTB.js +0 -50
  523. package/dist/e2pca-ICG35YR5.js +0 -349
  524. package/dist/ep-CSSSQOUP.js +0 -1255
  525. package/dist/expclust.gdc.spec-4WPQUXH4.js +0 -306
  526. package/dist/facet-JAGILNY6.js +0 -520
  527. package/dist/forms2-IMVDB6AT.js +0 -533
  528. package/dist/gb-36LTYICV.js +0 -87
  529. package/dist/geneExpClustering-CGMENTHI.js +0 -248
  530. package/dist/geneExpression-AD2L46J4.js +0 -37
  531. package/dist/geneExpression-G2FHBDUQ.js +0 -312
  532. package/dist/geneExpression.unit.spec-XWCB7K5L.js +0 -101
  533. package/dist/geneORA-GVHQF7DF.js +0 -277
  534. package/dist/geneVariant-HE22CH76.js +0 -40
  535. package/dist/geneVariant-SQD5QUFH.js +0 -38
  536. package/dist/geneVariant.integration.spec-66XFLDNN.js +0 -197
  537. package/dist/genefusion.ui-TD32NWD4.js +0 -308
  538. package/dist/geneset-NSYPDXS3.js +0 -202
  539. package/dist/genomeBrowser.spec-CYFONLNQ.js +0 -280
  540. package/dist/grin2-3QB57OPH.js +0 -1555
  541. package/dist/grin2-FLQNWPMZ.js +0 -851
  542. package/dist/grin2-FLQNWPMZ.js.map +0 -7
  543. package/dist/gsea-RMTU5I3U.js +0 -46
  544. package/dist/hierCluster-LSQL6PGC.js +0 -58
  545. package/dist/hierCluster-XTEBDEVO.js +0 -62
  546. package/dist/hierCluster.config-SHXFSPOH.js +0 -39
  547. package/dist/hierCluster.integration.spec-KNMIYWV3.js +0 -394
  548. package/dist/hierCluster.interactivity-6NAKTUR5.js +0 -53
  549. package/dist/hierCluster.renderers-FWOV4Q47.js +0 -21
  550. package/dist/imagePlot-3IVG4SFN.js +0 -162
  551. package/dist/importPlot-HEMDRIVF.js +0 -8
  552. package/dist/isoformExpression-FJ3GEU6D.js +0 -39
  553. package/dist/isoformExpression.unit.spec-L7D22UDB.js +0 -207
  554. package/dist/launch.adhoc-PDGQF2UP.js +0 -41
  555. package/dist/leftlabel.sample-ZBI4NHCV.js +0 -259
  556. package/dist/legacyDataset-PBCPC5I7.js +0 -119
  557. package/dist/lollipop-K7S6ASFE.js +0 -170
  558. package/dist/maf-JEW6PPJB.js +0 -451
  559. package/dist/maftimeline-7URL27MC.js +0 -592
  560. package/dist/matrix-6EK5WGIG.js +0 -57
  561. package/dist/matrix-DKBD5RIL.js +0 -62
  562. package/dist/matrix.cells-KEIOXJQ7.js +0 -28
  563. package/dist/matrix.config-FGJB4VVM.js +0 -40
  564. package/dist/matrix.data-QGCGFLD7.js +0 -25
  565. package/dist/matrix.groups-HBPLZ2QX.js +0 -26
  566. package/dist/matrix.integration.spec-R4PF67KF.js +0 -3071
  567. package/dist/matrix.interactivity-M3SY33ET.js +0 -41
  568. package/dist/matrix.layout-H6WQ3ZMW.js +0 -43
  569. package/dist/matrix.legend-UCL7HM26.js +0 -22
  570. package/dist/matrix.renderers-3PPFSS7Z.js +0 -37
  571. package/dist/matrix.serieses-S2TJ3E6P.js +0 -21
  572. package/dist/matrix.sort-CFA4UWBJ.js +0 -27
  573. package/dist/matrix.sort.unit.spec-562VIWDS.js +0 -471
  574. package/dist/matrix.sorterUi-FT7K5664.js +0 -18
  575. package/dist/matrix.sorterUi.unit.spec-GAHHUN3K.js +0 -341
  576. package/dist/mavb-HPW5X55U.js +0 -731
  577. package/dist/mds.fimo-HSBKLIOX.js +0 -517
  578. package/dist/mds.samplescatterplot-DE27OMJE.js +0 -1549
  579. package/dist/mds.survivalplot-IW22UGCE.js +0 -482
  580. package/dist/numericDictTermCluster-DOD66G3A.js +0 -72
  581. package/dist/oncomatrix-BZCVCPR4.js +0 -294
  582. package/dist/oncomatrix.spec-IHYCIAP4.js +0 -447
  583. package/dist/plot.2dvaf-QLOZ54VC.js +0 -376
  584. package/dist/plot.app-XDVDR23J.js +0 -40
  585. package/dist/plot.barplot-XOESF7OQ.js +0 -101
  586. package/dist/plot.boxplot-VNOC2CHT.js +0 -151
  587. package/dist/plot.brainImaging-7ZEOY4UR.js +0 -51
  588. package/dist/plot.disco-6GVDYK7A.js +0 -101
  589. package/dist/plot.dzi-TEFPPPL6.js +0 -33
  590. package/dist/plot.ssgq-OG4TODLO.js +0 -138
  591. package/dist/plot.vaf2cov-VMZRJULA.js +0 -258
  592. package/dist/plot.wsi-2CHZZ7AC.js +0 -36
  593. package/dist/polar-QUYQRQOQ.js +0 -185
  594. package/dist/polar2-OXXLAXJC.js +0 -227
  595. package/dist/profile.spec-TI6PRHNJ.js +0 -79
  596. package/dist/profileBarchart-GEK77XEB.js +0 -266
  597. package/dist/profileForms-NR3VNHKM.js +0 -440
  598. package/dist/profilePlot-GGKO3IW5.js +0 -53
  599. package/dist/profileRadar-MN3LX5ER.js +0 -262
  600. package/dist/profileRadarFacility-3G2HWB2L.js +0 -262
  601. package/dist/proteinView-TZ5BGOTA.js +0 -1188
  602. package/dist/proteinView-TZ5BGOTA.js.map +0 -7
  603. package/dist/proteomeAbundance-JXNECXF7.js +0 -68
  604. package/dist/proteomeAbundance-JXNECXF7.js.map +0 -7
  605. package/dist/proteomeAbundance-O4BB55O3.js +0 -21
  606. package/dist/qualitative-Q3TT73O7.js +0 -42
  607. package/dist/radar2-LSD3VPZT.js +0 -315
  608. package/dist/radarFacility2-LZGIXY7A.js +0 -324
  609. package/dist/regression-J3XDAPAZ.js +0 -55
  610. package/dist/regression.inputs-BBZYI5OI.js +0 -47
  611. package/dist/regression.inputs.term-7BW6XGLG.js +0 -47
  612. package/dist/regression.inputs.values.table-DYX2YU4H.js +0 -44
  613. package/dist/regression.integration.spec-WLXZYKWW.js +0 -783
  614. package/dist/regression.results-K5Q2N2KW.js +0 -39
  615. package/dist/regression.spec-VT7T6KBY.js +0 -707
  616. package/dist/report-3D3L573D.js +0 -221
  617. package/dist/sampleScatter.spec-6IPJQLM2.js +0 -201
  618. package/dist/sampleView-5JMFI4HF.js +0 -47
  619. package/dist/samplelst-SUCB5WOZ.js +0 -110
  620. package/dist/samplematrix-A5SZBKO6.js +0 -2197
  621. package/dist/sc-NAA6ESO6.js +0 -85
  622. package/dist/scatter-EQCN2HYE.js +0 -801
  623. package/dist/scatter.integration.spec-7NXIYS67.js +0 -1195
  624. package/dist/selectGenomeWithTklst-KXODNCY6.js +0 -133
  625. package/dist/singleCellCellType-HMIW76YB.js +0 -37
  626. package/dist/singleCellCellType.unit.spec-ZCZET56X.js +0 -159
  627. package/dist/singleCellGeneExpression-IUCUHF6R.js +0 -37
  628. package/dist/singleCellGeneExpression.unit.spec-J4D6F2N3.js +0 -152
  629. package/dist/singleCellPlot-L6W3MDGG.js +0 -52
  630. package/dist/singlecell-A6ECAAPI.js +0 -85
  631. package/dist/singlecell-KBABNXC5.js +0 -1571
  632. package/dist/snp-RO7ATG6E.js +0 -37
  633. package/dist/snp.unit.spec-ZJLRGJD4.js +0 -175
  634. package/dist/snplocus-N3CU6NRP.js +0 -207
  635. package/dist/spliceevent.a53ss.diagram-7PHT4COB.js +0 -150
  636. package/dist/spliceevent.exonskip.diagram-3CZTY6QD.js +0 -276
  637. package/dist/spliceevent.noeventdiagram-GQE256DT.js +0 -459
  638. package/dist/ssGSEA-4I3L5MX2.js +0 -37
  639. package/dist/ssGSEA.unit.spec-PZCC5YU7.js +0 -87
  640. package/dist/summarizeCnvGeneexp-ASXUQW56.js +0 -162
  641. package/dist/summarizeGeneexpSurvival-ULGUOW5V.js +0 -107
  642. package/dist/summarizeMutationCnv-VDUCIUGM.js +0 -163
  643. package/dist/summarizeMutationDiagnosis-FMAAMCZC.js +0 -39
  644. package/dist/summarizeMutationSurvival-GZ4NGDJT.js +0 -98
  645. package/dist/summary-2WNZ6JSB.js +0 -48
  646. package/dist/summary.integration.spec-XPMYB6GM.js +0 -413
  647. package/dist/summaryInput-2UGXEA5C.js +0 -234
  648. package/dist/sunburst-76WCQLTT.js +0 -283
  649. package/dist/survival-23IZM4ML.js +0 -45
  650. package/dist/survival-3EAMPHSX.js +0 -57
  651. package/dist/survival.integration.spec-YNVAKBV3.js +0 -801
  652. package/dist/svgraph-G2M5LXEP.js +0 -1386
  653. package/dist/svmr-BUDBVU34.js +0 -3841
  654. package/dist/table-QJSZ6YFK.js +0 -199
  655. package/dist/termCollection-2YAY3RLZ.js +0 -178
  656. package/dist/termCollection-MAMDMEDD.js +0 -37
  657. package/dist/termCollection.unit.spec-UY7G2BHG.js +0 -207
  658. package/dist/tk-GFGP3F76.js +0 -45
  659. package/dist/tp.ui-OQ757UIE.js +0 -1458
  660. package/dist/tvs.density-BJK23JYJ.js +0 -18
  661. package/dist/tvs.dt-TOYEFKNT.js +0 -38
  662. package/dist/tvs.dtcnv.categorical-EO2VLFL2.js +0 -39
  663. package/dist/tvs.dtcnv.continuous-ZAHTKZ4Y.js +0 -71
  664. package/dist/tvs.dtfusion-BY3AHBL3.js +0 -39
  665. package/dist/tvs.dtsnvindel-UM5LQ4FR.js +0 -39
  666. package/dist/tvs.dtsv-H7ZVHLS5.js +0 -39
  667. package/dist/tvs.numeric-66FP6RRH.js +0 -21
  668. package/dist/tvs.samplelst-Q5ECTZOY.js +0 -103
  669. package/dist/tvs.termCollection-FYNMKZTR.js +0 -158
  670. package/dist/violin-EGWLAJVM.js +0 -45
  671. package/dist/violin.integration.spec-3P4TYHBR.js +0 -1424
  672. package/dist/violin.interactivity-VWDR4LYB.js +0 -37
  673. package/dist/violin.renderer-WWTU6J7X.js +0 -39
  674. package/dist/vocabulary-JG4ZITOH.js +0 -40
  675. /package/dist/{2dmaf-DTWWXOZC.js.map → 2dmaf-6YIEXAIG.js.map} +0 -0
  676. /package/dist/{AIProjectAdmin-BCYIWOXD.js.map → AIProjectAdmin-5K5NIQNT.js.map} +0 -0
  677. /package/dist/{AppHeader-H3L2MRWP.js.map → AppHeader-4SN5M6SZ.js.map} +0 -0
  678. /package/dist/{BoxPlot-INZ6IN3V.js.map → BoxPlot-DBJA6TQF.js.map} +0 -0
  679. /package/dist/{CorrelationVolcano-AK3XW4ZH.js.map → CorrelationVolcano-MDMTMTT5.js.map} +0 -0
  680. /package/dist/{DE-IBSFUKNG.js.map → DE-S5AFNI4I.js.map} +0 -0
  681. /package/dist/{DEinput-H4GMQWDY.js.map → DEinput-XVBBA74N.js.map} +0 -0
  682. /package/dist/{Disco-5PXXMGGQ.js.map → Disco-VV7FQ7WW.js.map} +0 -0
  683. /package/dist/{Disco.UI-23LOT2U6.js.map → Disco.UI-JDJFJFEY.js.map} +0 -0
  684. /package/dist/{DmrPlot-PBCU2XNF.js.map → DmrPlot-XOG67W74.js.map} +0 -0
  685. /package/dist/{GB-HIEPWNPV.js.map → GB-K3AWZQFF.js.map} +0 -0
  686. /package/dist/{GeneExpInput-A4JNX7PU.js.map → GeneExpInput-Y7MDS2CA.js.map} +0 -0
  687. /package/dist/{HicApp-IDH2A4BC.js.map → HicApp-53OTZ3YU.js.map} +0 -0
  688. /package/dist/{NumBinaryEditor-CZ54X7J3.js.map → NumBinaryEditor-SB4YR3JM.js.map} +0 -0
  689. /package/dist/{NumBinaryEditor.unit.spec-QLBRM7MJ.js.map → NumBinaryEditor.unit.spec-V2W2OZYP.js.map} +0 -0
  690. /package/dist/{NumContEditor-Z5MGLQ2I.js.map → NumContEditor-RZZBM7PR.js.map} +0 -0
  691. /package/dist/{NumContEditor.unit.spec-TR7D7ULV.js.map → NumContEditor.unit.spec-GAAW3ZZN.js.map} +0 -0
  692. /package/dist/{NumCustomBinEditor-B7JID42Y.js.map → NumCustomBinEditor-GFCGPRPI.js.map} +0 -0
  693. /package/dist/{NumCustomBinEditor.unit.spec-GZJIVY4K.js.map → NumCustomBinEditor.unit.spec-24MXSO3L.js.map} +0 -0
  694. /package/dist/{NumDiscreteEditor-LWHZ36T6.js.map → NumDiscreteEditor-HAHIOFNC.js.map} +0 -0
  695. /package/dist/{NumDiscreteEditor.unit.spec-QCQCMEWO.js.map → NumDiscreteEditor.unit.spec-JYN2CWSI.js.map} +0 -0
  696. /package/dist/{NumRegularBinEditor-IATRIUKD.js.map → NumRegularBinEditor-7DOE64RB.js.map} +0 -0
  697. /package/dist/{NumRegularBinEditor.unit.spec-J6UTQO76.js.map → NumRegularBinEditor.unit.spec-2WU4GGNT.js.map} +0 -0
  698. /package/dist/{NumSplineEditor-2KMU6SRO.js.map → NumSplineEditor-JLRD5TVX.js.map} +0 -0
  699. /package/dist/{NumSplineEditor.unit.spec-MX7Y4MTD.js.map → NumSplineEditor.unit.spec-LOG7CECJ.js.map} +0 -0
  700. /package/dist/{NumericDensity-JCH7F5FV.js.map → NumericDensity-IDOP7I34.js.map} +0 -0
  701. /package/dist/{NumericDensity.unit.spec-4TKKRKHF.js.map → NumericDensity.unit.spec-HTJQRPVH.js.map} +0 -0
  702. /package/dist/{NumericHandler-7FB3RJM7.js.map → NumericHandler-DWVVGLLB.js.map} +0 -0
  703. /package/dist/{NumericHandler.unit.spec-U6DCADZY.js.map → NumericHandler.unit.spec-BDDFTHOF.js.map} +0 -0
  704. /package/dist/{RunChart2-VQTIVMKM.js.map → RunChart2-PBJ56YX3.js.map} +0 -0
  705. /package/dist/{WsiSamplesPlot-2OAR57YB.js.map → WsiSamplesPlot-FOMPMEXK.js.map} +0 -0
  706. /package/dist/{adSandbox-IKKFYRF7.js.map → adSandbox-SRPPCYYR.js.map} +0 -0
  707. /package/dist/{alphaGenome-WJNFQGGK.js.map → alphaGenome-IS2WAJCK.js.map} +0 -0
  708. /package/dist/{app-UHGTFH6D.js.map → app-GTHYSGWI.js.map} +0 -0
  709. /package/dist/{app-YETYAR45.js.map → app-XEKETNLG.js.map} +0 -0
  710. /package/dist/{bam-S6U7VNJP.js.map → bam-GQBFL6A7.js.map} +0 -0
  711. /package/dist/{barchart-3NJDGHXU.js.map → barchart-AESC4JSX.js.map} +0 -0
  712. /package/dist/{barchart.data-MVVKPDLE.js.map → barchart.data-RE34IC4G.js.map} +0 -0
  713. /package/dist/{barchart.events-WQGA4CGB.js.map → barchart.events-KM4J5ISO.js.map} +0 -0
  714. /package/dist/{barchart.integration.spec-E6CJTWRN.js.map → barchart.integration.spec-DFVSBGO3.js.map} +0 -0
  715. /package/dist/{barchart2-UNHFOYKB.js.map → barchart2-NNTL4RQZ.js.map} +0 -0
  716. /package/dist/{block-2XHZLY26.js.map → block-EHZM3FUX.js.map} +0 -0
  717. /package/dist/{block.init-CMG4V6RB.js.map → block.init-EAEFNNF6.js.map} +0 -0
  718. /package/dist/{block.mds.expressionrank-QX2JOEMV.js.map → block.mds.expressionrank-ZBHA2CFE.js.map} +0 -0
  719. /package/dist/{block.mds.geneboxplot-USVQSDBT.js.map → block.mds.geneboxplot-4ZU3QUAK.js.map} +0 -0
  720. /package/dist/{block.mds.junction-R6GJO75N.js.map → block.mds.junction-PDH55JXO.js.map} +0 -0
  721. /package/dist/{block.mds.svcnv-MRISSDAX.js.map → block.mds.svcnv-QWBU54XQ.js.map} +0 -0
  722. /package/dist/{block.svg-Z5KKZTDB.js.map → block.svg-HUGBYWXU.js.map} +0 -0
  723. /package/dist/{block.tk.aicheck-SOFJYYZX.js.map → block.tk.aicheck-SDCWXQZF.js.map} +0 -0
  724. /package/dist/{block.tk.ase-EHX5FV2Y.js.map → block.tk.ase-HMUTHCJS.js.map} +0 -0
  725. /package/dist/{block.tk.bam-DJS6LODM.js.map → block.tk.bam-Q7B2YQLI.js.map} +0 -0
  726. /package/dist/{block.tk.bedgraphdot-R2YHPXZA.js.map → block.tk.bedgraphdot-QBGBSVHN.js.map} +0 -0
  727. /package/dist/{block.tk.bigwig.ui-VPEEQJLS.js.map → block.tk.bigwig.ui-767A3MUH.js.map} +0 -0
  728. /package/dist/{block.tk.hicstraw-BDYN573B.js.map → block.tk.hicstraw-LEZUZHLF.js.map} +0 -0
  729. /package/dist/{block.tk.junction-BONB4BXU.js.map → block.tk.junction-GQHCZOYR.js.map} +0 -0
  730. /package/dist/{block.tk.junction.textmatrixui-Y5R6KY4N.js.map → block.tk.junction.textmatrixui-D5QUO7KQ.js.map} +0 -0
  731. /package/dist/{block.tk.ld-EGVVSXCB.js.map → block.tk.ld-E3MHZOG5.js.map} +0 -0
  732. /package/dist/{block.tk.menu-4YBMB5JT.js.map → block.tk.menu-XE7PFYGR.js.map} +0 -0
  733. /package/dist/{block.tk.pgv-SBHGL6UH.js.map → block.tk.pgv-MPPMPDED.js.map} +0 -0
  734. /package/dist/{brainImaging-G3WZDYG6.js.map → brainImaging-YQ443NOL.js.map} +0 -0
  735. /package/dist/{chunk-LQQSRNR5.js.map → chunk-26WXJBSR.js.map} +0 -0
  736. /package/dist/{chunk-7UHUOC6F.js.map → chunk-2P6Z7JFC.js.map} +0 -0
  737. /package/dist/{chunk-ENWVV6EU.js.map → chunk-2QQO4RRD.js.map} +0 -0
  738. /package/dist/{chunk-GF4OSOYW.js.map → chunk-37ARSZOI.js.map} +0 -0
  739. /package/dist/{chunk-LY7GD74F.js.map → chunk-42Q53PXE.js.map} +0 -0
  740. /package/dist/{chunk-5SMOOFRW.js.map → chunk-46ASPS5Y.js.map} +0 -0
  741. /package/dist/{chunk-RA4RQYXQ.js.map → chunk-4KPI7PB5.js.map} +0 -0
  742. /package/dist/{chunk-XZ6MGJQ3.js.map → chunk-4MDNMCGZ.js.map} +0 -0
  743. /package/dist/{chunk-4Y444IRJ.js.map → chunk-5IG3E4DT.js.map} +0 -0
  744. /package/dist/{chunk-UVPAZM3G.js.map → chunk-5MIR7IHI.js.map} +0 -0
  745. /package/dist/{chunk-BQJVLXEL.js.map → chunk-5MZVXJVA.js.map} +0 -0
  746. /package/dist/{chunk-SDLRTORS.js.map → chunk-66D5GRS5.js.map} +0 -0
  747. /package/dist/{chunk-IABWKPRK.js.map → chunk-6ATE2TRC.js.map} +0 -0
  748. /package/dist/{chunk-JPKYHLNI.js.map → chunk-6BFR6MK3.js.map} +0 -0
  749. /package/dist/{chunk-C62CSWMV.js.map → chunk-6NJMCO4X.js.map} +0 -0
  750. /package/dist/{chunk-IPDH4FHY.js.map → chunk-6ON5KAMO.js.map} +0 -0
  751. /package/dist/{chunk-ZYBM24FU.js.map → chunk-76GPYMHZ.js.map} +0 -0
  752. /package/dist/{chunk-PSGQWZN4.js.map → chunk-7AAFBFOH.js.map} +0 -0
  753. /package/dist/{chunk-LGUE54VX.js.map → chunk-7OOZHEUC.js.map} +0 -0
  754. /package/dist/{chunk-I7JDV4ZC.js.map → chunk-A4VLWLYF.js.map} +0 -0
  755. /package/dist/{chunk-W6XQR5UL.js.map → chunk-A6EFWGWD.js.map} +0 -0
  756. /package/dist/{chunk-ANGDY7VC.js.map → chunk-ALW5XXVW.js.map} +0 -0
  757. /package/dist/{chunk-RQZJIBIH.js.map → chunk-ANCT2BGO.js.map} +0 -0
  758. /package/dist/{chunk-NYX4B5CO.js.map → chunk-AROMXWCY.js.map} +0 -0
  759. /package/dist/{chunk-UWYCEYML.js.map → chunk-AY4UBGLC.js.map} +0 -0
  760. /package/dist/{chunk-32TTOWY6.js.map → chunk-BMVLR3TM.js.map} +0 -0
  761. /package/dist/{chunk-PL2CM7RY.js.map → chunk-BR7JA2EO.js.map} +0 -0
  762. /package/dist/{chunk-7FKIAQ4K.js.map → chunk-D3HJXMTH.js.map} +0 -0
  763. /package/dist/{chunk-XSA3VIEQ.js.map → chunk-DKUEZ4XD.js.map} +0 -0
  764. /package/dist/{chunk-LSV4Z473.js.map → chunk-DT3MMC5U.js.map} +0 -0
  765. /package/dist/{chunk-UPPBAFUK.js.map → chunk-DYVKN7EE.js.map} +0 -0
  766. /package/dist/{chunk-VB3SRNBK.js.map → chunk-EF37UZY6.js.map} +0 -0
  767. /package/dist/{chunk-ZD47FENE.js.map → chunk-ESXMS7FW.js.map} +0 -0
  768. /package/dist/{chunk-2QULGYVE.js.map → chunk-FUSVXQ6C.js.map} +0 -0
  769. /package/dist/{chunk-GTBL7UHX.js.map → chunk-GXKVAPGP.js.map} +0 -0
  770. /package/dist/{chunk-AQ4OP4GR.js.map → chunk-H4JIENLQ.js.map} +0 -0
  771. /package/dist/{chunk-FA44G3GZ.js.map → chunk-H7YJG4YM.js.map} +0 -0
  772. /package/dist/{chunk-GD7FKXOA.js.map → chunk-I24KPIDD.js.map} +0 -0
  773. /package/dist/{chunk-GQOBT2W7.js.map → chunk-IENFDUWD.js.map} +0 -0
  774. /package/dist/{chunk-43PMSEMV.js.map → chunk-J7BISJTL.js.map} +0 -0
  775. /package/dist/{chunk-XBBUQW52.js.map → chunk-J7KYOSEK.js.map} +0 -0
  776. /package/dist/{chunk-PZLYNNST.js.map → chunk-JGPZ5254.js.map} +0 -0
  777. /package/dist/{chunk-4KSU6NBP.js.map → chunk-JUIPCWAM.js.map} +0 -0
  778. /package/dist/{chunk-5RE3J6HK.js.map → chunk-LO4NMQ7W.js.map} +0 -0
  779. /package/dist/{chunk-RAJZYWFN.js.map → chunk-LSSLS5HV.js.map} +0 -0
  780. /package/dist/{chunk-7NOKTEHK.js.map → chunk-MDLRB3MR.js.map} +0 -0
  781. /package/dist/{chunk-OPPNZXYG.js.map → chunk-MJLKGZ27.js.map} +0 -0
  782. /package/dist/{chunk-KTCW3JA6.js.map → chunk-NL5T3SBK.js.map} +0 -0
  783. /package/dist/{chunk-RSE2FOKW.js.map → chunk-ONAYJVN2.js.map} +0 -0
  784. /package/dist/{chunk-64Z22QAH.js.map → chunk-PSMFOARZ.js.map} +0 -0
  785. /package/dist/{chunk-LTSR7SLO.js.map → chunk-QX3GF2IA.js.map} +0 -0
  786. /package/dist/{chunk-JNOOLCYB.js.map → chunk-QZ2U4BOS.js.map} +0 -0
  787. /package/dist/{chunk-YEMIL6QU.js.map → chunk-RBZBBNLL.js.map} +0 -0
  788. /package/dist/{chunk-P6TPXUMP.js.map → chunk-RZTFQXWV.js.map} +0 -0
  789. /package/dist/{chunk-AQVOYTLS.js.map → chunk-SJC2C77V.js.map} +0 -0
  790. /package/dist/{chunk-2VLGHVOL.js.map → chunk-TVXVP4M6.js.map} +0 -0
  791. /package/dist/{chunk-HE7CD7BD.js.map → chunk-UTDPKDIY.js.map} +0 -0
  792. /package/dist/{chunk-BT4OOYPT.js.map → chunk-UVIUB7QI.js.map} +0 -0
  793. /package/dist/{chunk-CAWDQURD.js.map → chunk-VAUSRBL5.js.map} +0 -0
  794. /package/dist/{chunk-6NMH6WPB.js.map → chunk-WP22GYZ2.js.map} +0 -0
  795. /package/dist/{chunk-4SFX42S7.js.map → chunk-WUNX3VST.js.map} +0 -0
  796. /package/dist/{chunk-BRMASRRS.js.map → chunk-XD4TBJK2.js.map} +0 -0
  797. /package/dist/{chunk-2O6JF76T.js.map → chunk-Y6DSXMPB.js.map} +0 -0
  798. /package/dist/{chunk-ROLVOPVR.js.map → chunk-YBIZRASR.js.map} +0 -0
  799. /package/dist/{chunk-TF4EDNQO.js.map → chunk-YI2YH7ZK.js.map} +0 -0
  800. /package/dist/{chunk-KMQ6GQ3I.js.map → chunk-YLDE3PVC.js.map} +0 -0
  801. /package/dist/{chunk-MHCTLVGE.js.map → chunk-Z736NYXL.js.map} +0 -0
  802. /package/dist/{chunk-LJ4AUJXC.js.map → chunk-ZEJB7CPC.js.map} +0 -0
  803. /package/dist/{chunk-5HOR6JQ2.js.map → chunk-ZGWEBKZ4.js.map} +0 -0
  804. /package/dist/{condition-ARCN26MF.js.map → condition-FSF6ROJV.js.map} +0 -0
  805. /package/dist/{controls-PKWN2JGN.js.map → controls-OPSBFDFZ.js.map} +0 -0
  806. /package/dist/{controls.config-NFRPXFUJ.js.map → controls.config-3QRV5363.js.map} +0 -0
  807. /package/dist/{correlation-DPT6XL2U.js.map → correlation-WLOI7Z35.js.map} +0 -0
  808. /package/dist/{cuminc-M4U7LQD5.js.map → cuminc-G2UGJUUA.js.map} +0 -0
  809. /package/dist/{cuminc.integration.spec-MH4OFYDJ.js.map → cuminc.integration.spec-X5NEZ6S5.js.map} +0 -0
  810. /package/dist/{customdata.inputui-6TAHAMSV.js.map → customdata.inputui-RNW3AO3Z.js.map} +0 -0
  811. /package/dist/{dataDownload-7GZEYSUT.js.map → dataDownload-4U3TGDMH.js.map} +0 -0
  812. /package/dist/{dataDownload.integration.spec-NAIJRFTV.js.map → dataDownload.integration.spec-6FUI2SJ4.js.map} +0 -0
  813. /package/dist/{databrowser.ui-LLXHZ5O6.js.map → databrowser.ui-4GVJVJWG.js.map} +0 -0
  814. /package/dist/{dictionary-MUAURMYE.js.map → dictionary-NSDS7Z4K.js.map} +0 -0
  815. /package/dist/{dnaMethylation-AU5D3U3E.js.map → dnaMethylation-OYQB75LD.js.map} +0 -0
  816. /package/dist/{dnaMethylation.integration.spec-JIDBRA6P.js.map → dnaMethylation.integration.spec-6TTLV34N.js.map} +0 -0
  817. /package/dist/{dofetch-WSYK5OTB.js.map → dofetch-4TO3QMT6.js.map} +0 -0
  818. /package/dist/{e2pca-ICG35YR5.js.map → e2pca-NYBVR6PL.js.map} +0 -0
  819. /package/dist/{ep-CSSSQOUP.js.map → ep-RTDVEA4D.js.map} +0 -0
  820. /package/dist/{expclust.gdc.spec-4WPQUXH4.js.map → expclust.gdc.spec-JVIRESTP.js.map} +0 -0
  821. /package/dist/{facet-JAGILNY6.js.map → facet-OVBF2QMO.js.map} +0 -0
  822. /package/dist/{forms2-IMVDB6AT.js.map → forms2-HTLS54CX.js.map} +0 -0
  823. /package/dist/{gb-36LTYICV.js.map → gb-Y3546HMZ.js.map} +0 -0
  824. /package/dist/{geneExpClustering-CGMENTHI.js.map → geneExpClustering-PH3PWH3K.js.map} +0 -0
  825. /package/dist/{geneExpression-AD2L46J4.js.map → geneExpression-2Z2EV3XM.js.map} +0 -0
  826. /package/dist/{geneExpression-G2FHBDUQ.js.map → geneExpression-6CFXOCGW.js.map} +0 -0
  827. /package/dist/{geneExpression.unit.spec-XWCB7K5L.js.map → geneExpression.unit.spec-WKUTHRHC.js.map} +0 -0
  828. /package/dist/{geneORA-GVHQF7DF.js.map → geneORA-SHLZESLB.js.map} +0 -0
  829. /package/dist/{geneVariant-HE22CH76.js.map → geneVariant-FHZUIFPM.js.map} +0 -0
  830. /package/dist/{geneVariant-SQD5QUFH.js.map → geneVariant-Y7ZUBEOX.js.map} +0 -0
  831. /package/dist/{geneVariant.integration.spec-66XFLDNN.js.map → geneVariant.integration.spec-N7TZUOY3.js.map} +0 -0
  832. /package/dist/{genefusion.ui-TD32NWD4.js.map → genefusion.ui-7PDVZPZ2.js.map} +0 -0
  833. /package/dist/{geneset-NSYPDXS3.js.map → geneset-HLVOGYUI.js.map} +0 -0
  834. /package/dist/{genomeBrowser.spec-CYFONLNQ.js.map → genomeBrowser.spec-7IVIMUR5.js.map} +0 -0
  835. /package/dist/{grin2-3QB57OPH.js.map → grin2-Z5O7254R.js.map} +0 -0
  836. /package/dist/{gsea-RMTU5I3U.js.map → gsea-TFC3MBRW.js.map} +0 -0
  837. /package/dist/{hierCluster-LSQL6PGC.js.map → hierCluster-ERSE5I4I.js.map} +0 -0
  838. /package/dist/{hierCluster-XTEBDEVO.js.map → hierCluster-QQZQU5ZG.js.map} +0 -0
  839. /package/dist/{hierCluster.config-SHXFSPOH.js.map → hierCluster.config-WPINWW37.js.map} +0 -0
  840. /package/dist/{hierCluster.integration.spec-KNMIYWV3.js.map → hierCluster.integration.spec-Y6OHSKPW.js.map} +0 -0
  841. /package/dist/{hierCluster.interactivity-6NAKTUR5.js.map → hierCluster.interactivity-HS3G5QC5.js.map} +0 -0
  842. /package/dist/{hierCluster.renderers-FWOV4Q47.js.map → hierCluster.renderers-W63ZKZTT.js.map} +0 -0
  843. /package/dist/{imagePlot-3IVG4SFN.js.map → imagePlot-QFVN25PM.js.map} +0 -0
  844. /package/dist/{importPlot-HEMDRIVF.js.map → importPlot-MIDM5APH.js.map} +0 -0
  845. /package/dist/{isoformExpression-FJ3GEU6D.js.map → isoformExpression-L4TRNT4A.js.map} +0 -0
  846. /package/dist/{isoformExpression.unit.spec-L7D22UDB.js.map → isoformExpression.unit.spec-QQG323LA.js.map} +0 -0
  847. /package/dist/{launch.adhoc-PDGQF2UP.js.map → launch.adhoc-4NQ6GGGL.js.map} +0 -0
  848. /package/dist/{leftlabel.sample-ZBI4NHCV.js.map → leftlabel.sample-JU7AIPZL.js.map} +0 -0
  849. /package/dist/{legacyDataset-PBCPC5I7.js.map → legacyDataset-TT4CHF23.js.map} +0 -0
  850. /package/dist/{lollipop-K7S6ASFE.js.map → lollipop-JG74M6PJ.js.map} +0 -0
  851. /package/dist/{maf-JEW6PPJB.js.map → maf-PDL2EGHI.js.map} +0 -0
  852. /package/dist/{maftimeline-7URL27MC.js.map → maftimeline-V43NQEEE.js.map} +0 -0
  853. /package/dist/{matrix-6EK5WGIG.js.map → matrix-EB2EFP4S.js.map} +0 -0
  854. /package/dist/{matrix-DKBD5RIL.js.map → matrix-Q57FU5FE.js.map} +0 -0
  855. /package/dist/{matrix.cells-KEIOXJQ7.js.map → matrix.cells-NJIMPD32.js.map} +0 -0
  856. /package/dist/{matrix.config-FGJB4VVM.js.map → matrix.config-GLDEQD3H.js.map} +0 -0
  857. /package/dist/{matrix.data-QGCGFLD7.js.map → matrix.data-6SHAKOQU.js.map} +0 -0
  858. /package/dist/{matrix.groups-HBPLZ2QX.js.map → matrix.groups-MTDEANQA.js.map} +0 -0
  859. /package/dist/{matrix.integration.spec-R4PF67KF.js.map → matrix.integration.spec-JCZ5VQJU.js.map} +0 -0
  860. /package/dist/{matrix.interactivity-M3SY33ET.js.map → matrix.interactivity-SVRNWL6V.js.map} +0 -0
  861. /package/dist/{matrix.layout-H6WQ3ZMW.js.map → matrix.layout-2HREO42N.js.map} +0 -0
  862. /package/dist/{matrix.legend-UCL7HM26.js.map → matrix.legend-QHVKT3MP.js.map} +0 -0
  863. /package/dist/{matrix.renderers-3PPFSS7Z.js.map → matrix.renderers-IYR3ZY6V.js.map} +0 -0
  864. /package/dist/{matrix.serieses-S2TJ3E6P.js.map → matrix.serieses-2VMTQXL2.js.map} +0 -0
  865. /package/dist/{matrix.sort-CFA4UWBJ.js.map → matrix.sort-PWA2RQQR.js.map} +0 -0
  866. /package/dist/{matrix.sort.unit.spec-562VIWDS.js.map → matrix.sort.unit.spec-3OYIPTFY.js.map} +0 -0
  867. /package/dist/{matrix.sorterUi-FT7K5664.js.map → matrix.sorterUi-Y5QLO75X.js.map} +0 -0
  868. /package/dist/{matrix.sorterUi.unit.spec-GAHHUN3K.js.map → matrix.sorterUi.unit.spec-BNEXQHLP.js.map} +0 -0
  869. /package/dist/{mavb-HPW5X55U.js.map → mavb-IZDDU4KK.js.map} +0 -0
  870. /package/dist/{mds.fimo-HSBKLIOX.js.map → mds.fimo-FWBL7JE6.js.map} +0 -0
  871. /package/dist/{mds.samplescatterplot-DE27OMJE.js.map → mds.samplescatterplot-T47C7DJB.js.map} +0 -0
  872. /package/dist/{mds.survivalplot-IW22UGCE.js.map → mds.survivalplot-MFZJCGS6.js.map} +0 -0
  873. /package/dist/{numericDictTermCluster-DOD66G3A.js.map → numericDictTermCluster-I2W67RGA.js.map} +0 -0
  874. /package/dist/{oncomatrix-BZCVCPR4.js.map → oncomatrix-6W7IBAED.js.map} +0 -0
  875. /package/dist/{oncomatrix.spec-IHYCIAP4.js.map → oncomatrix.spec-CEFH5IGH.js.map} +0 -0
  876. /package/dist/{plot.2dvaf-QLOZ54VC.js.map → plot.2dvaf-BN6CFLNU.js.map} +0 -0
  877. /package/dist/{plot.app-XDVDR23J.js.map → plot.app-7EYWUCZV.js.map} +0 -0
  878. /package/dist/{plot.barplot-XOESF7OQ.js.map → plot.barplot-MDIARSQD.js.map} +0 -0
  879. /package/dist/{plot.boxplot-VNOC2CHT.js.map → plot.boxplot-RUHGXC54.js.map} +0 -0
  880. /package/dist/{plot.brainImaging-7ZEOY4UR.js.map → plot.brainImaging-JEE32ZBV.js.map} +0 -0
  881. /package/dist/{plot.disco-6GVDYK7A.js.map → plot.disco-2RPNPX6E.js.map} +0 -0
  882. /package/dist/{plot.dzi-TEFPPPL6.js.map → plot.dzi-7VTYYGGW.js.map} +0 -0
  883. /package/dist/{plot.ssgq-OG4TODLO.js.map → plot.ssgq-FHE5KU5C.js.map} +0 -0
  884. /package/dist/{plot.vaf2cov-VMZRJULA.js.map → plot.vaf2cov-WDJJM5Q4.js.map} +0 -0
  885. /package/dist/{plot.wsi-2CHZZ7AC.js.map → plot.wsi-FQZWHNSF.js.map} +0 -0
  886. /package/dist/{polar-QUYQRQOQ.js.map → polar-M7EGINN4.js.map} +0 -0
  887. /package/dist/{polar2-OXXLAXJC.js.map → polar2-JFYY43K2.js.map} +0 -0
  888. /package/dist/{profile.spec-TI6PRHNJ.js.map → profile.spec-SIOHASOX.js.map} +0 -0
  889. /package/dist/{profileBarchart-GEK77XEB.js.map → profileBarchart-6JLEKVJV.js.map} +0 -0
  890. /package/dist/{profileForms-NR3VNHKM.js.map → profileForms-G6CH73RV.js.map} +0 -0
  891. /package/dist/{profilePlot-GGKO3IW5.js.map → profilePlot-NQYJOBVV.js.map} +0 -0
  892. /package/dist/{profileRadar-MN3LX5ER.js.map → profileRadar-4TNWIXDB.js.map} +0 -0
  893. /package/dist/{profileRadarFacility-3G2HWB2L.js.map → profileRadarFacility-XPH3LCBQ.js.map} +0 -0
  894. /package/dist/{proteomeAbundance-O4BB55O3.js.map → proteomeAbundance-NQ4635NL.js.map} +0 -0
  895. /package/dist/{qualitative-Q3TT73O7.js.map → qualitative-DL4WJG3O.js.map} +0 -0
  896. /package/dist/{radar2-LSD3VPZT.js.map → radar2-YNOQWHBT.js.map} +0 -0
  897. /package/dist/{radarFacility2-LZGIXY7A.js.map → radarFacility2-24UPSI7S.js.map} +0 -0
  898. /package/dist/{regression-J3XDAPAZ.js.map → regression-URAUTLTD.js.map} +0 -0
  899. /package/dist/{regression.inputs-BBZYI5OI.js.map → regression.inputs-UDVOU7FB.js.map} +0 -0
  900. /package/dist/{regression.inputs.term-7BW6XGLG.js.map → regression.inputs.term-BWW6W34R.js.map} +0 -0
  901. /package/dist/{regression.inputs.values.table-DYX2YU4H.js.map → regression.inputs.values.table-UKGIZTXG.js.map} +0 -0
  902. /package/dist/{regression.integration.spec-WLXZYKWW.js.map → regression.integration.spec-EBHQTNA3.js.map} +0 -0
  903. /package/dist/{regression.results-K5Q2N2KW.js.map → regression.results-XTOSWIP6.js.map} +0 -0
  904. /package/dist/{regression.spec-VT7T6KBY.js.map → regression.spec-KG2I53VR.js.map} +0 -0
  905. /package/dist/{report-3D3L573D.js.map → report-KH7SNPVF.js.map} +0 -0
  906. /package/dist/{sampleScatter.spec-6IPJQLM2.js.map → sampleScatter.spec-PIXGS3LG.js.map} +0 -0
  907. /package/dist/{sampleView-5JMFI4HF.js.map → sampleView-TWS6VT55.js.map} +0 -0
  908. /package/dist/{samplelst-SUCB5WOZ.js.map → samplelst-6AB5Y4WR.js.map} +0 -0
  909. /package/dist/{samplematrix-A5SZBKO6.js.map → samplematrix-AJAF555E.js.map} +0 -0
  910. /package/dist/{sc-NAA6ESO6.js.map → sc-PMNYZKXA.js.map} +0 -0
  911. /package/dist/{scatter-EQCN2HYE.js.map → scatter-Q2GH3ZJD.js.map} +0 -0
  912. /package/dist/{scatter.integration.spec-7NXIYS67.js.map → scatter.integration.spec-SMMYKWH3.js.map} +0 -0
  913. /package/dist/{selectGenomeWithTklst-KXODNCY6.js.map → selectGenomeWithTklst-VE4SDYY7.js.map} +0 -0
  914. /package/dist/{singleCellCellType-HMIW76YB.js.map → singleCellCellType-S324GCKW.js.map} +0 -0
  915. /package/dist/{singleCellCellType.unit.spec-ZCZET56X.js.map → singleCellCellType.unit.spec-NXC2GELH.js.map} +0 -0
  916. /package/dist/{singleCellGeneExpression-IUCUHF6R.js.map → singleCellGeneExpression-6H4HRKIA.js.map} +0 -0
  917. /package/dist/{singleCellGeneExpression.unit.spec-J4D6F2N3.js.map → singleCellGeneExpression.unit.spec-HIJXVUWJ.js.map} +0 -0
  918. /package/dist/{singleCellPlot-L6W3MDGG.js.map → singleCellPlot-H7PCZ2DP.js.map} +0 -0
  919. /package/dist/{singlecell-A6ECAAPI.js.map → singlecell-4LH3MQVL.js.map} +0 -0
  920. /package/dist/{singlecell-KBABNXC5.js.map → singlecell-MOSYT3RI.js.map} +0 -0
  921. /package/dist/{snp-RO7ATG6E.js.map → snp-IKLGTD4Q.js.map} +0 -0
  922. /package/dist/{snp.unit.spec-ZJLRGJD4.js.map → snp.unit.spec-GC74MUVM.js.map} +0 -0
  923. /package/dist/{snplocus-N3CU6NRP.js.map → snplocus-RIABFSBQ.js.map} +0 -0
  924. /package/dist/{spliceevent.a53ss.diagram-7PHT4COB.js.map → spliceevent.a53ss.diagram-4E2IYYHL.js.map} +0 -0
  925. /package/dist/{spliceevent.exonskip.diagram-3CZTY6QD.js.map → spliceevent.exonskip.diagram-C56R6XLQ.js.map} +0 -0
  926. /package/dist/{spliceevent.noeventdiagram-GQE256DT.js.map → spliceevent.noeventdiagram-SIPMAKXI.js.map} +0 -0
  927. /package/dist/{ssGSEA-4I3L5MX2.js.map → ssGSEA-5QNHLSOI.js.map} +0 -0
  928. /package/dist/{ssGSEA.unit.spec-PZCC5YU7.js.map → ssGSEA.unit.spec-KVPN553B.js.map} +0 -0
  929. /package/dist/{summarizeCnvGeneexp-ASXUQW56.js.map → summarizeCnvGeneexp-K4VGJSW6.js.map} +0 -0
  930. /package/dist/{summarizeGeneexpSurvival-ULGUOW5V.js.map → summarizeGeneexpSurvival-HGHX65FN.js.map} +0 -0
  931. /package/dist/{summarizeMutationCnv-VDUCIUGM.js.map → summarizeMutationCnv-3K4Z6R2X.js.map} +0 -0
  932. /package/dist/{summarizeMutationDiagnosis-FMAAMCZC.js.map → summarizeMutationDiagnosis-M2MHUPRT.js.map} +0 -0
  933. /package/dist/{summarizeMutationSurvival-GZ4NGDJT.js.map → summarizeMutationSurvival-WVBUP3GA.js.map} +0 -0
  934. /package/dist/{summary-2WNZ6JSB.js.map → summary-RZHZXCU5.js.map} +0 -0
  935. /package/dist/{summary.integration.spec-XPMYB6GM.js.map → summary.integration.spec-FGZP7DY7.js.map} +0 -0
  936. /package/dist/{summaryInput-2UGXEA5C.js.map → summaryInput-UGM7MMCR.js.map} +0 -0
  937. /package/dist/{sunburst-76WCQLTT.js.map → sunburst-L27U7LV7.js.map} +0 -0
  938. /package/dist/{survival-3EAMPHSX.js.map → survival-5ZMEBV6O.js.map} +0 -0
  939. /package/dist/{survival-23IZM4ML.js.map → survival-JWRRGTJT.js.map} +0 -0
  940. /package/dist/{survival.integration.spec-YNVAKBV3.js.map → survival.integration.spec-Z5542I4V.js.map} +0 -0
  941. /package/dist/{svgraph-G2M5LXEP.js.map → svgraph-O6ZVLNNN.js.map} +0 -0
  942. /package/dist/{svmr-BUDBVU34.js.map → svmr-ULFV7OSH.js.map} +0 -0
  943. /package/dist/{table-QJSZ6YFK.js.map → table-CHRQH2GH.js.map} +0 -0
  944. /package/dist/{termCollection-2YAY3RLZ.js.map → termCollection-FAO6ZA6F.js.map} +0 -0
  945. /package/dist/{termCollection-MAMDMEDD.js.map → termCollection-GBXS3GOY.js.map} +0 -0
  946. /package/dist/{termCollection.unit.spec-UY7G2BHG.js.map → termCollection.unit.spec-4WRTOV6E.js.map} +0 -0
  947. /package/dist/{tk-GFGP3F76.js.map → tk-KNUBWRNK.js.map} +0 -0
  948. /package/dist/{tp.ui-OQ757UIE.js.map → tp.ui-2PPYOQYL.js.map} +0 -0
  949. /package/dist/{tvs.density-BJK23JYJ.js.map → tvs.density-BZ5SKDQS.js.map} +0 -0
  950. /package/dist/{tvs.dt-TOYEFKNT.js.map → tvs.dt-TDNSTGQR.js.map} +0 -0
  951. /package/dist/{tvs.dtcnv.categorical-EO2VLFL2.js.map → tvs.dtcnv.categorical-P2IGIE4I.js.map} +0 -0
  952. /package/dist/{tvs.dtcnv.continuous-ZAHTKZ4Y.js.map → tvs.dtcnv.continuous-2XUCRBDR.js.map} +0 -0
  953. /package/dist/{tvs.dtfusion-BY3AHBL3.js.map → tvs.dtfusion-PRHZVMOG.js.map} +0 -0
  954. /package/dist/{tvs.dtsnvindel-UM5LQ4FR.js.map → tvs.dtsnvindel-KGKBW5JS.js.map} +0 -0
  955. /package/dist/{tvs.dtsv-H7ZVHLS5.js.map → tvs.dtsv-M3CY5TZF.js.map} +0 -0
  956. /package/dist/{tvs.numeric-66FP6RRH.js.map → tvs.numeric-W74JCC5P.js.map} +0 -0
  957. /package/dist/{tvs.samplelst-Q5ECTZOY.js.map → tvs.samplelst-BTWFBBAN.js.map} +0 -0
  958. /package/dist/{tvs.termCollection-FYNMKZTR.js.map → tvs.termCollection-Y64QIKOA.js.map} +0 -0
  959. /package/dist/{violin-EGWLAJVM.js.map → violin-3LLHHV3L.js.map} +0 -0
  960. /package/dist/{violin.integration.spec-3P4TYHBR.js.map → violin.integration.spec-6NF5FDLQ.js.map} +0 -0
  961. /package/dist/{violin.interactivity-VWDR4LYB.js.map → violin.interactivity-W2AKZ24D.js.map} +0 -0
  962. /package/dist/{violin.renderer-WWTU6J7X.js.map → violin.renderer-CRFYYZRI.js.map} +0 -0
  963. /package/dist/{vocabulary-JG4ZITOH.js.map → vocabulary-AUJOAVYS.js.map} +0 -0
@@ -0,0 +1,2786 @@
1
+ import {
2
+ addGeneSearchbox,
3
+ appear2 as appear,
4
+ newSandboxDiv,
5
+ sayerror,
6
+ tab_wait
7
+ } from "./chunk-2XPDA6NL.js";
8
+ import {
9
+ Menu
10
+ } from "./chunk-HYOEWQ5P.js";
11
+ import {
12
+ Tabs
13
+ } from "./chunk-HBW42TDT.js";
14
+ import {
15
+ dofetch,
16
+ dofetch3
17
+ } from "./chunk-MYWJQRTD.js";
18
+ import {
19
+ select_default
20
+ } from "./chunk-I6Y4O3RR.js";
21
+ import {
22
+ __commonJS,
23
+ __toESM
24
+ } from "./chunk-HFNDKYVF.js";
25
+
26
+ // ../node_modules/highlight.js/lib/core.js
27
+ var require_core = __commonJS({
28
+ "../node_modules/highlight.js/lib/core.js"(exports, module) {
29
+ var deepFreezeEs6 = { exports: {} };
30
+ function deepFreeze(obj) {
31
+ if (obj instanceof Map) {
32
+ obj.clear = obj.delete = obj.set = function() {
33
+ throw new Error("map is read-only");
34
+ };
35
+ } else if (obj instanceof Set) {
36
+ obj.add = obj.clear = obj.delete = function() {
37
+ throw new Error("set is read-only");
38
+ };
39
+ }
40
+ Object.freeze(obj);
41
+ Object.getOwnPropertyNames(obj).forEach(function(name) {
42
+ var prop = obj[name];
43
+ if (typeof prop == "object" && !Object.isFrozen(prop)) {
44
+ deepFreeze(prop);
45
+ }
46
+ });
47
+ return obj;
48
+ }
49
+ deepFreezeEs6.exports = deepFreeze;
50
+ deepFreezeEs6.exports.default = deepFreeze;
51
+ var deepFreeze$1 = deepFreezeEs6.exports;
52
+ var Response = class {
53
+ /**
54
+ * @param {CompiledMode} mode
55
+ */
56
+ constructor(mode) {
57
+ if (mode.data === void 0) mode.data = {};
58
+ this.data = mode.data;
59
+ this.isMatchIgnored = false;
60
+ }
61
+ ignoreMatch() {
62
+ this.isMatchIgnored = true;
63
+ }
64
+ };
65
+ function escapeHTML(value) {
66
+ return value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
67
+ }
68
+ function inherit$1(original, ...objects) {
69
+ const result = /* @__PURE__ */ Object.create(null);
70
+ for (const key in original) {
71
+ result[key] = original[key];
72
+ }
73
+ objects.forEach(function(obj) {
74
+ for (const key in obj) {
75
+ result[key] = obj[key];
76
+ }
77
+ });
78
+ return (
79
+ /** @type {T} */
80
+ result
81
+ );
82
+ }
83
+ var SPAN_CLOSE = "</span>";
84
+ var emitsWrappingTags = (node) => {
85
+ return !!node.kind;
86
+ };
87
+ var expandScopeName = (name, { prefix }) => {
88
+ if (name.includes(".")) {
89
+ const pieces = name.split(".");
90
+ return [
91
+ `${prefix}${pieces.shift()}`,
92
+ ...pieces.map((x, i) => `${x}${"_".repeat(i + 1)}`)
93
+ ].join(" ");
94
+ }
95
+ return `${prefix}${name}`;
96
+ };
97
+ var HTMLRenderer = class {
98
+ /**
99
+ * Creates a new HTMLRenderer
100
+ *
101
+ * @param {Tree} parseTree - the parse tree (must support `walk` API)
102
+ * @param {{classPrefix: string}} options
103
+ */
104
+ constructor(parseTree, options) {
105
+ this.buffer = "";
106
+ this.classPrefix = options.classPrefix;
107
+ parseTree.walk(this);
108
+ }
109
+ /**
110
+ * Adds texts to the output stream
111
+ *
112
+ * @param {string} text */
113
+ addText(text) {
114
+ this.buffer += escapeHTML(text);
115
+ }
116
+ /**
117
+ * Adds a node open to the output stream (if needed)
118
+ *
119
+ * @param {Node} node */
120
+ openNode(node) {
121
+ if (!emitsWrappingTags(node)) return;
122
+ let scope = node.kind;
123
+ if (node.sublanguage) {
124
+ scope = `language-${scope}`;
125
+ } else {
126
+ scope = expandScopeName(scope, { prefix: this.classPrefix });
127
+ }
128
+ this.span(scope);
129
+ }
130
+ /**
131
+ * Adds a node close to the output stream (if needed)
132
+ *
133
+ * @param {Node} node */
134
+ closeNode(node) {
135
+ if (!emitsWrappingTags(node)) return;
136
+ this.buffer += SPAN_CLOSE;
137
+ }
138
+ /**
139
+ * returns the accumulated buffer
140
+ */
141
+ value() {
142
+ return this.buffer;
143
+ }
144
+ // helpers
145
+ /**
146
+ * Builds a span element
147
+ *
148
+ * @param {string} className */
149
+ span(className) {
150
+ this.buffer += `<span class="${className}">`;
151
+ }
152
+ };
153
+ var TokenTree = class _TokenTree {
154
+ constructor() {
155
+ this.rootNode = { children: [] };
156
+ this.stack = [this.rootNode];
157
+ }
158
+ get top() {
159
+ return this.stack[this.stack.length - 1];
160
+ }
161
+ get root() {
162
+ return this.rootNode;
163
+ }
164
+ /** @param {Node} node */
165
+ add(node) {
166
+ this.top.children.push(node);
167
+ }
168
+ /** @param {string} kind */
169
+ openNode(kind) {
170
+ const node = { kind, children: [] };
171
+ this.add(node);
172
+ this.stack.push(node);
173
+ }
174
+ closeNode() {
175
+ if (this.stack.length > 1) {
176
+ return this.stack.pop();
177
+ }
178
+ return void 0;
179
+ }
180
+ closeAllNodes() {
181
+ while (this.closeNode()) ;
182
+ }
183
+ toJSON() {
184
+ return JSON.stringify(this.rootNode, null, 4);
185
+ }
186
+ /**
187
+ * @typedef { import("./html_renderer").Renderer } Renderer
188
+ * @param {Renderer} builder
189
+ */
190
+ walk(builder) {
191
+ return this.constructor._walk(builder, this.rootNode);
192
+ }
193
+ /**
194
+ * @param {Renderer} builder
195
+ * @param {Node} node
196
+ */
197
+ static _walk(builder, node) {
198
+ if (typeof node === "string") {
199
+ builder.addText(node);
200
+ } else if (node.children) {
201
+ builder.openNode(node);
202
+ node.children.forEach((child) => this._walk(builder, child));
203
+ builder.closeNode(node);
204
+ }
205
+ return builder;
206
+ }
207
+ /**
208
+ * @param {Node} node
209
+ */
210
+ static _collapse(node) {
211
+ if (typeof node === "string") return;
212
+ if (!node.children) return;
213
+ if (node.children.every((el) => typeof el === "string")) {
214
+ node.children = [node.children.join("")];
215
+ } else {
216
+ node.children.forEach((child) => {
217
+ _TokenTree._collapse(child);
218
+ });
219
+ }
220
+ }
221
+ };
222
+ var TokenTreeEmitter = class extends TokenTree {
223
+ /**
224
+ * @param {*} options
225
+ */
226
+ constructor(options) {
227
+ super();
228
+ this.options = options;
229
+ }
230
+ /**
231
+ * @param {string} text
232
+ * @param {string} kind
233
+ */
234
+ addKeyword(text, kind) {
235
+ if (text === "") {
236
+ return;
237
+ }
238
+ this.openNode(kind);
239
+ this.addText(text);
240
+ this.closeNode();
241
+ }
242
+ /**
243
+ * @param {string} text
244
+ */
245
+ addText(text) {
246
+ if (text === "") {
247
+ return;
248
+ }
249
+ this.add(text);
250
+ }
251
+ /**
252
+ * @param {Emitter & {root: DataNode}} emitter
253
+ * @param {string} name
254
+ */
255
+ addSublanguage(emitter, name) {
256
+ const node = emitter.root;
257
+ node.kind = name;
258
+ node.sublanguage = true;
259
+ this.add(node);
260
+ }
261
+ toHTML() {
262
+ const renderer = new HTMLRenderer(this, this.options);
263
+ return renderer.value();
264
+ }
265
+ finalize() {
266
+ return true;
267
+ }
268
+ };
269
+ function source2(re) {
270
+ if (!re) return null;
271
+ if (typeof re === "string") return re;
272
+ return re.source;
273
+ }
274
+ function lookahead2(re) {
275
+ return concat2("(?=", re, ")");
276
+ }
277
+ function concat2(...args) {
278
+ const joined = args.map((x) => source2(x)).join("");
279
+ return joined;
280
+ }
281
+ function stripOptionsFromArgs(args) {
282
+ const opts = args[args.length - 1];
283
+ if (typeof opts === "object" && opts.constructor === Object) {
284
+ args.splice(args.length - 1, 1);
285
+ return opts;
286
+ } else {
287
+ return {};
288
+ }
289
+ }
290
+ function either(...args) {
291
+ const opts = stripOptionsFromArgs(args);
292
+ const joined = "(" + (opts.capture ? "" : "?:") + args.map((x) => source2(x)).join("|") + ")";
293
+ return joined;
294
+ }
295
+ function countMatchGroups(re) {
296
+ return new RegExp(re.toString() + "|").exec("").length - 1;
297
+ }
298
+ function startsWith(re, lexeme) {
299
+ const match = re && re.exec(lexeme);
300
+ return match && match.index === 0;
301
+ }
302
+ var BACKREF_RE = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
303
+ function _rewriteBackreferences(regexps, { joinWith }) {
304
+ let numCaptures = 0;
305
+ return regexps.map((regex) => {
306
+ numCaptures += 1;
307
+ const offset = numCaptures;
308
+ let re = source2(regex);
309
+ let out = "";
310
+ while (re.length > 0) {
311
+ const match = BACKREF_RE.exec(re);
312
+ if (!match) {
313
+ out += re;
314
+ break;
315
+ }
316
+ out += re.substring(0, match.index);
317
+ re = re.substring(match.index + match[0].length);
318
+ if (match[0][0] === "\\" && match[1]) {
319
+ out += "\\" + String(Number(match[1]) + offset);
320
+ } else {
321
+ out += match[0];
322
+ if (match[0] === "(") {
323
+ numCaptures++;
324
+ }
325
+ }
326
+ }
327
+ return out;
328
+ }).map((re) => `(${re})`).join(joinWith);
329
+ }
330
+ var MATCH_NOTHING_RE = /\b\B/;
331
+ var IDENT_RE2 = "[a-zA-Z]\\w*";
332
+ var UNDERSCORE_IDENT_RE = "[a-zA-Z_]\\w*";
333
+ var NUMBER_RE = "\\b\\d+(\\.\\d+)?";
334
+ var C_NUMBER_RE = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)";
335
+ var BINARY_NUMBER_RE = "\\b(0b[01]+)";
336
+ var RE_STARTERS_RE = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~";
337
+ var SHEBANG = (opts = {}) => {
338
+ const beginShebang = /^#![ ]*\//;
339
+ if (opts.binary) {
340
+ opts.begin = concat2(
341
+ beginShebang,
342
+ /.*\b/,
343
+ opts.binary,
344
+ /\b.*/
345
+ );
346
+ }
347
+ return inherit$1({
348
+ scope: "meta",
349
+ begin: beginShebang,
350
+ end: /$/,
351
+ relevance: 0,
352
+ /** @type {ModeCallback} */
353
+ "on:begin": (m, resp) => {
354
+ if (m.index !== 0) resp.ignoreMatch();
355
+ }
356
+ }, opts);
357
+ };
358
+ var BACKSLASH_ESCAPE = {
359
+ begin: "\\\\[\\s\\S]",
360
+ relevance: 0
361
+ };
362
+ var APOS_STRING_MODE = {
363
+ scope: "string",
364
+ begin: "'",
365
+ end: "'",
366
+ illegal: "\\n",
367
+ contains: [BACKSLASH_ESCAPE]
368
+ };
369
+ var QUOTE_STRING_MODE = {
370
+ scope: "string",
371
+ begin: '"',
372
+ end: '"',
373
+ illegal: "\\n",
374
+ contains: [BACKSLASH_ESCAPE]
375
+ };
376
+ var PHRASAL_WORDS_MODE = {
377
+ begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
378
+ };
379
+ var COMMENT = function(begin, end, modeOptions = {}) {
380
+ const mode = inherit$1(
381
+ {
382
+ scope: "comment",
383
+ begin,
384
+ end,
385
+ contains: []
386
+ },
387
+ modeOptions
388
+ );
389
+ mode.contains.push({
390
+ scope: "doctag",
391
+ // hack to avoid the space from being included. the space is necessary to
392
+ // match here to prevent the plain text rule below from gobbling up doctags
393
+ begin: "[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",
394
+ end: /(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,
395
+ excludeBegin: true,
396
+ relevance: 0
397
+ });
398
+ const ENGLISH_WORD = either(
399
+ // list of common 1 and 2 letter words in English
400
+ "I",
401
+ "a",
402
+ "is",
403
+ "so",
404
+ "us",
405
+ "to",
406
+ "at",
407
+ "if",
408
+ "in",
409
+ "it",
410
+ "on",
411
+ // note: this is not an exhaustive list of contractions, just popular ones
412
+ /[A-Za-z]+['](d|ve|re|ll|t|s|n)/,
413
+ // contractions - can't we'd they're let's, etc
414
+ /[A-Za-z]+[-][a-z]+/,
415
+ // `no-way`, etc.
416
+ /[A-Za-z][a-z]{2,}/
417
+ // allow capitalized words at beginning of sentences
418
+ );
419
+ mode.contains.push(
420
+ {
421
+ // TODO: how to include ", (, ) without breaking grammars that use these for
422
+ // comment delimiters?
423
+ // begin: /[ ]+([()"]?([A-Za-z'-]{3,}|is|a|I|so|us|[tT][oO]|at|if|in|it|on)[.]?[()":]?([.][ ]|[ ]|\))){3}/
424
+ // ---
425
+ // this tries to find sequences of 3 english words in a row (without any
426
+ // "programming" type syntax) this gives us a strong signal that we've
427
+ // TRULY found a comment - vs perhaps scanning with the wrong language.
428
+ // It's possible to find something that LOOKS like the start of the
429
+ // comment - but then if there is no readable text - good chance it is a
430
+ // false match and not a comment.
431
+ //
432
+ // for a visual example please see:
433
+ // https://github.com/highlightjs/highlight.js/issues/2827
434
+ begin: concat2(
435
+ /[ ]+/,
436
+ // necessary to prevent us gobbling up doctags like /* @author Bob Mcgill */
437
+ "(",
438
+ ENGLISH_WORD,
439
+ /[.]?[:]?([.][ ]|[ ])/,
440
+ "){3}"
441
+ )
442
+ // look for 3 words in a row
443
+ }
444
+ );
445
+ return mode;
446
+ };
447
+ var C_LINE_COMMENT_MODE = COMMENT("//", "$");
448
+ var C_BLOCK_COMMENT_MODE = COMMENT("/\\*", "\\*/");
449
+ var HASH_COMMENT_MODE = COMMENT("#", "$");
450
+ var NUMBER_MODE = {
451
+ scope: "number",
452
+ begin: NUMBER_RE,
453
+ relevance: 0
454
+ };
455
+ var C_NUMBER_MODE = {
456
+ scope: "number",
457
+ begin: C_NUMBER_RE,
458
+ relevance: 0
459
+ };
460
+ var BINARY_NUMBER_MODE = {
461
+ scope: "number",
462
+ begin: BINARY_NUMBER_RE,
463
+ relevance: 0
464
+ };
465
+ var REGEXP_MODE = {
466
+ // this outer rule makes sure we actually have a WHOLE regex and not simply
467
+ // an expression such as:
468
+ //
469
+ // 3 / something
470
+ //
471
+ // (which will then blow up when regex's `illegal` sees the newline)
472
+ begin: /(?=\/[^/\n]*\/)/,
473
+ contains: [{
474
+ scope: "regexp",
475
+ begin: /\//,
476
+ end: /\/[gimuy]*/,
477
+ illegal: /\n/,
478
+ contains: [
479
+ BACKSLASH_ESCAPE,
480
+ {
481
+ begin: /\[/,
482
+ end: /\]/,
483
+ relevance: 0,
484
+ contains: [BACKSLASH_ESCAPE]
485
+ }
486
+ ]
487
+ }]
488
+ };
489
+ var TITLE_MODE = {
490
+ scope: "title",
491
+ begin: IDENT_RE2,
492
+ relevance: 0
493
+ };
494
+ var UNDERSCORE_TITLE_MODE = {
495
+ scope: "title",
496
+ begin: UNDERSCORE_IDENT_RE,
497
+ relevance: 0
498
+ };
499
+ var METHOD_GUARD = {
500
+ // excludes method names from keyword processing
501
+ begin: "\\.\\s*" + UNDERSCORE_IDENT_RE,
502
+ relevance: 0
503
+ };
504
+ var END_SAME_AS_BEGIN = function(mode) {
505
+ return Object.assign(
506
+ mode,
507
+ {
508
+ /** @type {ModeCallback} */
509
+ "on:begin": (m, resp) => {
510
+ resp.data._beginMatch = m[1];
511
+ },
512
+ /** @type {ModeCallback} */
513
+ "on:end": (m, resp) => {
514
+ if (resp.data._beginMatch !== m[1]) resp.ignoreMatch();
515
+ }
516
+ }
517
+ );
518
+ };
519
+ var MODES = /* @__PURE__ */ Object.freeze({
520
+ __proto__: null,
521
+ MATCH_NOTHING_RE,
522
+ IDENT_RE: IDENT_RE2,
523
+ UNDERSCORE_IDENT_RE,
524
+ NUMBER_RE,
525
+ C_NUMBER_RE,
526
+ BINARY_NUMBER_RE,
527
+ RE_STARTERS_RE,
528
+ SHEBANG,
529
+ BACKSLASH_ESCAPE,
530
+ APOS_STRING_MODE,
531
+ QUOTE_STRING_MODE,
532
+ PHRASAL_WORDS_MODE,
533
+ COMMENT,
534
+ C_LINE_COMMENT_MODE,
535
+ C_BLOCK_COMMENT_MODE,
536
+ HASH_COMMENT_MODE,
537
+ NUMBER_MODE,
538
+ C_NUMBER_MODE,
539
+ BINARY_NUMBER_MODE,
540
+ REGEXP_MODE,
541
+ TITLE_MODE,
542
+ UNDERSCORE_TITLE_MODE,
543
+ METHOD_GUARD,
544
+ END_SAME_AS_BEGIN
545
+ });
546
+ function skipIfHasPrecedingDot(match, response) {
547
+ const before = match.input[match.index - 1];
548
+ if (before === ".") {
549
+ response.ignoreMatch();
550
+ }
551
+ }
552
+ function scopeClassName(mode, _parent) {
553
+ if (mode.className !== void 0) {
554
+ mode.scope = mode.className;
555
+ delete mode.className;
556
+ }
557
+ }
558
+ function beginKeywords(mode, parent) {
559
+ if (!parent) return;
560
+ if (!mode.beginKeywords) return;
561
+ mode.begin = "\\b(" + mode.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)";
562
+ mode.__beforeBegin = skipIfHasPrecedingDot;
563
+ mode.keywords = mode.keywords || mode.beginKeywords;
564
+ delete mode.beginKeywords;
565
+ if (mode.relevance === void 0) mode.relevance = 0;
566
+ }
567
+ function compileIllegal(mode, _parent) {
568
+ if (!Array.isArray(mode.illegal)) return;
569
+ mode.illegal = either(...mode.illegal);
570
+ }
571
+ function compileMatch(mode, _parent) {
572
+ if (!mode.match) return;
573
+ if (mode.begin || mode.end) throw new Error("begin & end are not supported with match");
574
+ mode.begin = mode.match;
575
+ delete mode.match;
576
+ }
577
+ function compileRelevance(mode, _parent) {
578
+ if (mode.relevance === void 0) mode.relevance = 1;
579
+ }
580
+ var beforeMatchExt = (mode, parent) => {
581
+ if (!mode.beforeMatch) return;
582
+ if (mode.starts) throw new Error("beforeMatch cannot be used with starts");
583
+ const originalMode = Object.assign({}, mode);
584
+ Object.keys(mode).forEach((key) => {
585
+ delete mode[key];
586
+ });
587
+ mode.keywords = originalMode.keywords;
588
+ mode.begin = concat2(originalMode.beforeMatch, lookahead2(originalMode.begin));
589
+ mode.starts = {
590
+ relevance: 0,
591
+ contains: [
592
+ Object.assign(originalMode, { endsParent: true })
593
+ ]
594
+ };
595
+ mode.relevance = 0;
596
+ delete originalMode.beforeMatch;
597
+ };
598
+ var COMMON_KEYWORDS = [
599
+ "of",
600
+ "and",
601
+ "for",
602
+ "in",
603
+ "not",
604
+ "or",
605
+ "if",
606
+ "then",
607
+ "parent",
608
+ // common variable name
609
+ "list",
610
+ // common variable name
611
+ "value"
612
+ // common variable name
613
+ ];
614
+ var DEFAULT_KEYWORD_SCOPE = "keyword";
615
+ function compileKeywords(rawKeywords, caseInsensitive, scopeName = DEFAULT_KEYWORD_SCOPE) {
616
+ const compiledKeywords = /* @__PURE__ */ Object.create(null);
617
+ if (typeof rawKeywords === "string") {
618
+ compileList(scopeName, rawKeywords.split(" "));
619
+ } else if (Array.isArray(rawKeywords)) {
620
+ compileList(scopeName, rawKeywords);
621
+ } else {
622
+ Object.keys(rawKeywords).forEach(function(scopeName2) {
623
+ Object.assign(
624
+ compiledKeywords,
625
+ compileKeywords(rawKeywords[scopeName2], caseInsensitive, scopeName2)
626
+ );
627
+ });
628
+ }
629
+ return compiledKeywords;
630
+ function compileList(scopeName2, keywordList) {
631
+ if (caseInsensitive) {
632
+ keywordList = keywordList.map((x) => x.toLowerCase());
633
+ }
634
+ keywordList.forEach(function(keyword) {
635
+ const pair = keyword.split("|");
636
+ compiledKeywords[pair[0]] = [scopeName2, scoreForKeyword(pair[0], pair[1])];
637
+ });
638
+ }
639
+ }
640
+ function scoreForKeyword(keyword, providedScore) {
641
+ if (providedScore) {
642
+ return Number(providedScore);
643
+ }
644
+ return commonKeyword(keyword) ? 0 : 1;
645
+ }
646
+ function commonKeyword(keyword) {
647
+ return COMMON_KEYWORDS.includes(keyword.toLowerCase());
648
+ }
649
+ var seenDeprecations = {};
650
+ var error = (message) => {
651
+ console.error(message);
652
+ };
653
+ var warn = (message, ...args) => {
654
+ console.log(`WARN: ${message}`, ...args);
655
+ };
656
+ var deprecated = (version2, message) => {
657
+ if (seenDeprecations[`${version2}/${message}`]) return;
658
+ console.log(`Deprecated as of ${version2}. ${message}`);
659
+ seenDeprecations[`${version2}/${message}`] = true;
660
+ };
661
+ var MultiClassError = new Error();
662
+ function remapScopeNames(mode, regexes, { key }) {
663
+ let offset = 0;
664
+ const scopeNames = mode[key];
665
+ const emit = {};
666
+ const positions = {};
667
+ for (let i = 1; i <= regexes.length; i++) {
668
+ positions[i + offset] = scopeNames[i];
669
+ emit[i + offset] = true;
670
+ offset += countMatchGroups(regexes[i - 1]);
671
+ }
672
+ mode[key] = positions;
673
+ mode[key]._emit = emit;
674
+ mode[key]._multi = true;
675
+ }
676
+ function beginMultiClass(mode) {
677
+ if (!Array.isArray(mode.begin)) return;
678
+ if (mode.skip || mode.excludeBegin || mode.returnBegin) {
679
+ error("skip, excludeBegin, returnBegin not compatible with beginScope: {}");
680
+ throw MultiClassError;
681
+ }
682
+ if (typeof mode.beginScope !== "object" || mode.beginScope === null) {
683
+ error("beginScope must be object");
684
+ throw MultiClassError;
685
+ }
686
+ remapScopeNames(mode, mode.begin, { key: "beginScope" });
687
+ mode.begin = _rewriteBackreferences(mode.begin, { joinWith: "" });
688
+ }
689
+ function endMultiClass(mode) {
690
+ if (!Array.isArray(mode.end)) return;
691
+ if (mode.skip || mode.excludeEnd || mode.returnEnd) {
692
+ error("skip, excludeEnd, returnEnd not compatible with endScope: {}");
693
+ throw MultiClassError;
694
+ }
695
+ if (typeof mode.endScope !== "object" || mode.endScope === null) {
696
+ error("endScope must be object");
697
+ throw MultiClassError;
698
+ }
699
+ remapScopeNames(mode, mode.end, { key: "endScope" });
700
+ mode.end = _rewriteBackreferences(mode.end, { joinWith: "" });
701
+ }
702
+ function scopeSugar(mode) {
703
+ if (mode.scope && typeof mode.scope === "object" && mode.scope !== null) {
704
+ mode.beginScope = mode.scope;
705
+ delete mode.scope;
706
+ }
707
+ }
708
+ function MultiClass(mode) {
709
+ scopeSugar(mode);
710
+ if (typeof mode.beginScope === "string") {
711
+ mode.beginScope = { _wrap: mode.beginScope };
712
+ }
713
+ if (typeof mode.endScope === "string") {
714
+ mode.endScope = { _wrap: mode.endScope };
715
+ }
716
+ beginMultiClass(mode);
717
+ endMultiClass(mode);
718
+ }
719
+ function compileLanguage(language) {
720
+ function langRe(value, global) {
721
+ return new RegExp(
722
+ source2(value),
723
+ "m" + (language.case_insensitive ? "i" : "") + (global ? "g" : "")
724
+ );
725
+ }
726
+ class MultiRegex {
727
+ constructor() {
728
+ this.matchIndexes = {};
729
+ this.regexes = [];
730
+ this.matchAt = 1;
731
+ this.position = 0;
732
+ }
733
+ // @ts-ignore
734
+ addRule(re, opts) {
735
+ opts.position = this.position++;
736
+ this.matchIndexes[this.matchAt] = opts;
737
+ this.regexes.push([opts, re]);
738
+ this.matchAt += countMatchGroups(re) + 1;
739
+ }
740
+ compile() {
741
+ if (this.regexes.length === 0) {
742
+ this.exec = () => null;
743
+ }
744
+ const terminators = this.regexes.map((el) => el[1]);
745
+ this.matcherRe = langRe(_rewriteBackreferences(terminators, { joinWith: "|" }), true);
746
+ this.lastIndex = 0;
747
+ }
748
+ /** @param {string} s */
749
+ exec(s) {
750
+ this.matcherRe.lastIndex = this.lastIndex;
751
+ const match = this.matcherRe.exec(s);
752
+ if (!match) {
753
+ return null;
754
+ }
755
+ const i = match.findIndex((el, i2) => i2 > 0 && el !== void 0);
756
+ const matchData = this.matchIndexes[i];
757
+ match.splice(0, i);
758
+ return Object.assign(match, matchData);
759
+ }
760
+ }
761
+ class ResumableMultiRegex {
762
+ constructor() {
763
+ this.rules = [];
764
+ this.multiRegexes = [];
765
+ this.count = 0;
766
+ this.lastIndex = 0;
767
+ this.regexIndex = 0;
768
+ }
769
+ // @ts-ignore
770
+ getMatcher(index) {
771
+ if (this.multiRegexes[index]) return this.multiRegexes[index];
772
+ const matcher = new MultiRegex();
773
+ this.rules.slice(index).forEach(([re, opts]) => matcher.addRule(re, opts));
774
+ matcher.compile();
775
+ this.multiRegexes[index] = matcher;
776
+ return matcher;
777
+ }
778
+ resumingScanAtSamePosition() {
779
+ return this.regexIndex !== 0;
780
+ }
781
+ considerAll() {
782
+ this.regexIndex = 0;
783
+ }
784
+ // @ts-ignore
785
+ addRule(re, opts) {
786
+ this.rules.push([re, opts]);
787
+ if (opts.type === "begin") this.count++;
788
+ }
789
+ /** @param {string} s */
790
+ exec(s) {
791
+ const m = this.getMatcher(this.regexIndex);
792
+ m.lastIndex = this.lastIndex;
793
+ let result = m.exec(s);
794
+ if (this.resumingScanAtSamePosition()) {
795
+ if (result && result.index === this.lastIndex) ;
796
+ else {
797
+ const m2 = this.getMatcher(0);
798
+ m2.lastIndex = this.lastIndex + 1;
799
+ result = m2.exec(s);
800
+ }
801
+ }
802
+ if (result) {
803
+ this.regexIndex += result.position + 1;
804
+ if (this.regexIndex === this.count) {
805
+ this.considerAll();
806
+ }
807
+ }
808
+ return result;
809
+ }
810
+ }
811
+ function buildModeRegex(mode) {
812
+ const mm = new ResumableMultiRegex();
813
+ mode.contains.forEach((term) => mm.addRule(term.begin, { rule: term, type: "begin" }));
814
+ if (mode.terminatorEnd) {
815
+ mm.addRule(mode.terminatorEnd, { type: "end" });
816
+ }
817
+ if (mode.illegal) {
818
+ mm.addRule(mode.illegal, { type: "illegal" });
819
+ }
820
+ return mm;
821
+ }
822
+ function compileMode(mode, parent) {
823
+ const cmode = (
824
+ /** @type CompiledMode */
825
+ mode
826
+ );
827
+ if (mode.isCompiled) return cmode;
828
+ [
829
+ scopeClassName,
830
+ // do this early so compiler extensions generally don't have to worry about
831
+ // the distinction between match/begin
832
+ compileMatch,
833
+ MultiClass,
834
+ beforeMatchExt
835
+ ].forEach((ext) => ext(mode, parent));
836
+ language.compilerExtensions.forEach((ext) => ext(mode, parent));
837
+ mode.__beforeBegin = null;
838
+ [
839
+ beginKeywords,
840
+ // do this later so compiler extensions that come earlier have access to the
841
+ // raw array if they wanted to perhaps manipulate it, etc.
842
+ compileIllegal,
843
+ // default to 1 relevance if not specified
844
+ compileRelevance
845
+ ].forEach((ext) => ext(mode, parent));
846
+ mode.isCompiled = true;
847
+ let keywordPattern = null;
848
+ if (typeof mode.keywords === "object" && mode.keywords.$pattern) {
849
+ mode.keywords = Object.assign({}, mode.keywords);
850
+ keywordPattern = mode.keywords.$pattern;
851
+ delete mode.keywords.$pattern;
852
+ }
853
+ keywordPattern = keywordPattern || /\w+/;
854
+ if (mode.keywords) {
855
+ mode.keywords = compileKeywords(mode.keywords, language.case_insensitive);
856
+ }
857
+ cmode.keywordPatternRe = langRe(keywordPattern, true);
858
+ if (parent) {
859
+ if (!mode.begin) mode.begin = /\B|\b/;
860
+ cmode.beginRe = langRe(mode.begin);
861
+ if (!mode.end && !mode.endsWithParent) mode.end = /\B|\b/;
862
+ if (mode.end) cmode.endRe = langRe(mode.end);
863
+ cmode.terminatorEnd = source2(mode.end) || "";
864
+ if (mode.endsWithParent && parent.terminatorEnd) {
865
+ cmode.terminatorEnd += (mode.end ? "|" : "") + parent.terminatorEnd;
866
+ }
867
+ }
868
+ if (mode.illegal) cmode.illegalRe = langRe(
869
+ /** @type {RegExp | string} */
870
+ mode.illegal
871
+ );
872
+ if (!mode.contains) mode.contains = [];
873
+ mode.contains = [].concat(...mode.contains.map(function(c) {
874
+ return expandOrCloneMode(c === "self" ? mode : c);
875
+ }));
876
+ mode.contains.forEach(function(c) {
877
+ compileMode(
878
+ /** @type Mode */
879
+ c,
880
+ cmode
881
+ );
882
+ });
883
+ if (mode.starts) {
884
+ compileMode(mode.starts, parent);
885
+ }
886
+ cmode.matcher = buildModeRegex(cmode);
887
+ return cmode;
888
+ }
889
+ if (!language.compilerExtensions) language.compilerExtensions = [];
890
+ if (language.contains && language.contains.includes("self")) {
891
+ throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
892
+ }
893
+ language.classNameAliases = inherit$1(language.classNameAliases || {});
894
+ return compileMode(
895
+ /** @type Mode */
896
+ language
897
+ );
898
+ }
899
+ function dependencyOnParent(mode) {
900
+ if (!mode) return false;
901
+ return mode.endsWithParent || dependencyOnParent(mode.starts);
902
+ }
903
+ function expandOrCloneMode(mode) {
904
+ if (mode.variants && !mode.cachedVariants) {
905
+ mode.cachedVariants = mode.variants.map(function(variant) {
906
+ return inherit$1(mode, { variants: null }, variant);
907
+ });
908
+ }
909
+ if (mode.cachedVariants) {
910
+ return mode.cachedVariants;
911
+ }
912
+ if (dependencyOnParent(mode)) {
913
+ return inherit$1(mode, { starts: mode.starts ? inherit$1(mode.starts) : null });
914
+ }
915
+ if (Object.isFrozen(mode)) {
916
+ return inherit$1(mode);
917
+ }
918
+ return mode;
919
+ }
920
+ var version = "11.2.0";
921
+ var escape = escapeHTML;
922
+ var inherit = inherit$1;
923
+ var NO_MATCH = Symbol("nomatch");
924
+ var MAX_KEYWORD_HITS = 7;
925
+ var HLJS = function(hljs2) {
926
+ const languages = /* @__PURE__ */ Object.create(null);
927
+ const aliases = /* @__PURE__ */ Object.create(null);
928
+ const plugins = [];
929
+ let SAFE_MODE = true;
930
+ const LANGUAGE_NOT_FOUND = "Could not find the language '{}', did you forget to load/include a language module?";
931
+ const PLAINTEXT_LANGUAGE = { disableAutodetect: true, name: "Plain text", contains: [] };
932
+ let options = {
933
+ ignoreUnescapedHTML: false,
934
+ noHighlightRe: /^(no-?highlight)$/i,
935
+ languageDetectRe: /\blang(?:uage)?-([\w-]+)\b/i,
936
+ classPrefix: "hljs-",
937
+ cssSelector: "pre code",
938
+ languages: null,
939
+ // beta configuration options, subject to change, welcome to discuss
940
+ // https://github.com/highlightjs/highlight.js/issues/1086
941
+ __emitter: TokenTreeEmitter
942
+ };
943
+ function shouldNotHighlight(languageName) {
944
+ return options.noHighlightRe.test(languageName);
945
+ }
946
+ function blockLanguage(block) {
947
+ let classes = block.className + " ";
948
+ classes += block.parentNode ? block.parentNode.className : "";
949
+ const match = options.languageDetectRe.exec(classes);
950
+ if (match) {
951
+ const language = getLanguage(match[1]);
952
+ if (!language) {
953
+ warn(LANGUAGE_NOT_FOUND.replace("{}", match[1]));
954
+ warn("Falling back to no-highlight mode for this block.", block);
955
+ }
956
+ return language ? match[1] : "no-highlight";
957
+ }
958
+ return classes.split(/\s+/).find((_class) => shouldNotHighlight(_class) || getLanguage(_class));
959
+ }
960
+ function highlight2(codeOrLanguageName, optionsOrCode, ignoreIllegals) {
961
+ let code = "";
962
+ let languageName = "";
963
+ if (typeof optionsOrCode === "object") {
964
+ code = codeOrLanguageName;
965
+ ignoreIllegals = optionsOrCode.ignoreIllegals;
966
+ languageName = optionsOrCode.language;
967
+ } else {
968
+ deprecated("10.7.0", "highlight(lang, code, ...args) has been deprecated.");
969
+ deprecated("10.7.0", "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277");
970
+ languageName = codeOrLanguageName;
971
+ code = optionsOrCode;
972
+ }
973
+ if (ignoreIllegals === void 0) {
974
+ ignoreIllegals = true;
975
+ }
976
+ const context = {
977
+ code,
978
+ language: languageName
979
+ };
980
+ fire("before:highlight", context);
981
+ const result = context.result ? context.result : _highlight(context.language, context.code, ignoreIllegals);
982
+ result.code = context.code;
983
+ fire("after:highlight", result);
984
+ return result;
985
+ }
986
+ function _highlight(languageName, codeToHighlight, ignoreIllegals, continuation) {
987
+ const keywordHits = /* @__PURE__ */ Object.create(null);
988
+ function keywordData(mode, matchText) {
989
+ return mode.keywords[matchText];
990
+ }
991
+ function processKeywords() {
992
+ if (!top.keywords) {
993
+ emitter.addText(modeBuffer);
994
+ return;
995
+ }
996
+ let lastIndex = 0;
997
+ top.keywordPatternRe.lastIndex = 0;
998
+ let match = top.keywordPatternRe.exec(modeBuffer);
999
+ let buf = "";
1000
+ while (match) {
1001
+ buf += modeBuffer.substring(lastIndex, match.index);
1002
+ const word = language.case_insensitive ? match[0].toLowerCase() : match[0];
1003
+ const data = keywordData(top, word);
1004
+ if (data) {
1005
+ const [kind, keywordRelevance] = data;
1006
+ emitter.addText(buf);
1007
+ buf = "";
1008
+ keywordHits[word] = (keywordHits[word] || 0) + 1;
1009
+ if (keywordHits[word] <= MAX_KEYWORD_HITS) relevance += keywordRelevance;
1010
+ if (kind.startsWith("_")) {
1011
+ buf += match[0];
1012
+ } else {
1013
+ const cssClass = language.classNameAliases[kind] || kind;
1014
+ emitter.addKeyword(match[0], cssClass);
1015
+ }
1016
+ } else {
1017
+ buf += match[0];
1018
+ }
1019
+ lastIndex = top.keywordPatternRe.lastIndex;
1020
+ match = top.keywordPatternRe.exec(modeBuffer);
1021
+ }
1022
+ buf += modeBuffer.substr(lastIndex);
1023
+ emitter.addText(buf);
1024
+ }
1025
+ function processSubLanguage() {
1026
+ if (modeBuffer === "") return;
1027
+ let result2 = null;
1028
+ if (typeof top.subLanguage === "string") {
1029
+ if (!languages[top.subLanguage]) {
1030
+ emitter.addText(modeBuffer);
1031
+ return;
1032
+ }
1033
+ result2 = _highlight(top.subLanguage, modeBuffer, true, continuations[top.subLanguage]);
1034
+ continuations[top.subLanguage] = /** @type {CompiledMode} */
1035
+ result2._top;
1036
+ } else {
1037
+ result2 = highlightAuto(modeBuffer, top.subLanguage.length ? top.subLanguage : null);
1038
+ }
1039
+ if (top.relevance > 0) {
1040
+ relevance += result2.relevance;
1041
+ }
1042
+ emitter.addSublanguage(result2._emitter, result2.language);
1043
+ }
1044
+ function processBuffer() {
1045
+ if (top.subLanguage != null) {
1046
+ processSubLanguage();
1047
+ } else {
1048
+ processKeywords();
1049
+ }
1050
+ modeBuffer = "";
1051
+ }
1052
+ function emitMultiClass(scope, match) {
1053
+ let i = 1;
1054
+ while (match[i] !== void 0) {
1055
+ if (!scope._emit[i]) {
1056
+ i++;
1057
+ continue;
1058
+ }
1059
+ const klass = language.classNameAliases[scope[i]] || scope[i];
1060
+ const text = match[i];
1061
+ if (klass) {
1062
+ emitter.addKeyword(text, klass);
1063
+ } else {
1064
+ modeBuffer = text;
1065
+ processKeywords();
1066
+ modeBuffer = "";
1067
+ }
1068
+ i++;
1069
+ }
1070
+ }
1071
+ function startNewMode(mode, match) {
1072
+ if (mode.scope && typeof mode.scope === "string") {
1073
+ emitter.openNode(language.classNameAliases[mode.scope] || mode.scope);
1074
+ }
1075
+ if (mode.beginScope) {
1076
+ if (mode.beginScope._wrap) {
1077
+ emitter.addKeyword(modeBuffer, language.classNameAliases[mode.beginScope._wrap] || mode.beginScope._wrap);
1078
+ modeBuffer = "";
1079
+ } else if (mode.beginScope._multi) {
1080
+ emitMultiClass(mode.beginScope, match);
1081
+ modeBuffer = "";
1082
+ }
1083
+ }
1084
+ top = Object.create(mode, { parent: { value: top } });
1085
+ return top;
1086
+ }
1087
+ function endOfMode(mode, match, matchPlusRemainder) {
1088
+ let matched = startsWith(mode.endRe, matchPlusRemainder);
1089
+ if (matched) {
1090
+ if (mode["on:end"]) {
1091
+ const resp = new Response(mode);
1092
+ mode["on:end"](match, resp);
1093
+ if (resp.isMatchIgnored) matched = false;
1094
+ }
1095
+ if (matched) {
1096
+ while (mode.endsParent && mode.parent) {
1097
+ mode = mode.parent;
1098
+ }
1099
+ return mode;
1100
+ }
1101
+ }
1102
+ if (mode.endsWithParent) {
1103
+ return endOfMode(mode.parent, match, matchPlusRemainder);
1104
+ }
1105
+ }
1106
+ function doIgnore(lexeme) {
1107
+ if (top.matcher.regexIndex === 0) {
1108
+ modeBuffer += lexeme[0];
1109
+ return 1;
1110
+ } else {
1111
+ resumeScanAtSamePosition = true;
1112
+ return 0;
1113
+ }
1114
+ }
1115
+ function doBeginMatch(match) {
1116
+ const lexeme = match[0];
1117
+ const newMode = match.rule;
1118
+ const resp = new Response(newMode);
1119
+ const beforeCallbacks = [newMode.__beforeBegin, newMode["on:begin"]];
1120
+ for (const cb of beforeCallbacks) {
1121
+ if (!cb) continue;
1122
+ cb(match, resp);
1123
+ if (resp.isMatchIgnored) return doIgnore(lexeme);
1124
+ }
1125
+ if (newMode.skip) {
1126
+ modeBuffer += lexeme;
1127
+ } else {
1128
+ if (newMode.excludeBegin) {
1129
+ modeBuffer += lexeme;
1130
+ }
1131
+ processBuffer();
1132
+ if (!newMode.returnBegin && !newMode.excludeBegin) {
1133
+ modeBuffer = lexeme;
1134
+ }
1135
+ }
1136
+ startNewMode(newMode, match);
1137
+ return newMode.returnBegin ? 0 : lexeme.length;
1138
+ }
1139
+ function doEndMatch(match) {
1140
+ const lexeme = match[0];
1141
+ const matchPlusRemainder = codeToHighlight.substr(match.index);
1142
+ const endMode = endOfMode(top, match, matchPlusRemainder);
1143
+ if (!endMode) {
1144
+ return NO_MATCH;
1145
+ }
1146
+ const origin = top;
1147
+ if (top.endScope && top.endScope._wrap) {
1148
+ processBuffer();
1149
+ emitter.addKeyword(lexeme, top.endScope._wrap);
1150
+ } else if (top.endScope && top.endScope._multi) {
1151
+ processBuffer();
1152
+ emitMultiClass(top.endScope, match);
1153
+ } else if (origin.skip) {
1154
+ modeBuffer += lexeme;
1155
+ } else {
1156
+ if (!(origin.returnEnd || origin.excludeEnd)) {
1157
+ modeBuffer += lexeme;
1158
+ }
1159
+ processBuffer();
1160
+ if (origin.excludeEnd) {
1161
+ modeBuffer = lexeme;
1162
+ }
1163
+ }
1164
+ do {
1165
+ if (top.scope) {
1166
+ emitter.closeNode();
1167
+ }
1168
+ if (!top.skip && !top.subLanguage) {
1169
+ relevance += top.relevance;
1170
+ }
1171
+ top = top.parent;
1172
+ } while (top !== endMode.parent);
1173
+ if (endMode.starts) {
1174
+ startNewMode(endMode.starts, match);
1175
+ }
1176
+ return origin.returnEnd ? 0 : lexeme.length;
1177
+ }
1178
+ function processContinuations() {
1179
+ const list = [];
1180
+ for (let current = top; current !== language; current = current.parent) {
1181
+ if (current.scope) {
1182
+ list.unshift(current.scope);
1183
+ }
1184
+ }
1185
+ list.forEach((item) => emitter.openNode(item));
1186
+ }
1187
+ let lastMatch = {};
1188
+ function processLexeme(textBeforeMatch, match) {
1189
+ const lexeme = match && match[0];
1190
+ modeBuffer += textBeforeMatch;
1191
+ if (lexeme == null) {
1192
+ processBuffer();
1193
+ return 0;
1194
+ }
1195
+ if (lastMatch.type === "begin" && match.type === "end" && lastMatch.index === match.index && lexeme === "") {
1196
+ modeBuffer += codeToHighlight.slice(match.index, match.index + 1);
1197
+ if (!SAFE_MODE) {
1198
+ const err = new Error(`0 width match regex (${languageName})`);
1199
+ err.languageName = languageName;
1200
+ err.badRule = lastMatch.rule;
1201
+ throw err;
1202
+ }
1203
+ return 1;
1204
+ }
1205
+ lastMatch = match;
1206
+ if (match.type === "begin") {
1207
+ return doBeginMatch(match);
1208
+ } else if (match.type === "illegal" && !ignoreIllegals) {
1209
+ const err = new Error('Illegal lexeme "' + lexeme + '" for mode "' + (top.scope || "<unnamed>") + '"');
1210
+ err.mode = top;
1211
+ throw err;
1212
+ } else if (match.type === "end") {
1213
+ const processed = doEndMatch(match);
1214
+ if (processed !== NO_MATCH) {
1215
+ return processed;
1216
+ }
1217
+ }
1218
+ if (match.type === "illegal" && lexeme === "") {
1219
+ return 1;
1220
+ }
1221
+ if (iterations > 1e5 && iterations > match.index * 3) {
1222
+ const err = new Error("potential infinite loop, way more iterations than matches");
1223
+ throw err;
1224
+ }
1225
+ modeBuffer += lexeme;
1226
+ return lexeme.length;
1227
+ }
1228
+ const language = getLanguage(languageName);
1229
+ if (!language) {
1230
+ error(LANGUAGE_NOT_FOUND.replace("{}", languageName));
1231
+ throw new Error('Unknown language: "' + languageName + '"');
1232
+ }
1233
+ const md = compileLanguage(language);
1234
+ let result = "";
1235
+ let top = continuation || md;
1236
+ const continuations = {};
1237
+ const emitter = new options.__emitter(options);
1238
+ processContinuations();
1239
+ let modeBuffer = "";
1240
+ let relevance = 0;
1241
+ let index = 0;
1242
+ let iterations = 0;
1243
+ let resumeScanAtSamePosition = false;
1244
+ try {
1245
+ top.matcher.considerAll();
1246
+ for (; ; ) {
1247
+ iterations++;
1248
+ if (resumeScanAtSamePosition) {
1249
+ resumeScanAtSamePosition = false;
1250
+ } else {
1251
+ top.matcher.considerAll();
1252
+ }
1253
+ top.matcher.lastIndex = index;
1254
+ const match = top.matcher.exec(codeToHighlight);
1255
+ if (!match) break;
1256
+ const beforeMatch = codeToHighlight.substring(index, match.index);
1257
+ const processedCount = processLexeme(beforeMatch, match);
1258
+ index = match.index + processedCount;
1259
+ }
1260
+ processLexeme(codeToHighlight.substr(index));
1261
+ emitter.closeAllNodes();
1262
+ emitter.finalize();
1263
+ result = emitter.toHTML();
1264
+ return {
1265
+ language: languageName,
1266
+ value: result,
1267
+ relevance,
1268
+ illegal: false,
1269
+ _emitter: emitter,
1270
+ _top: top
1271
+ };
1272
+ } catch (err) {
1273
+ if (err.message && err.message.includes("Illegal")) {
1274
+ return {
1275
+ language: languageName,
1276
+ value: escape(codeToHighlight),
1277
+ illegal: true,
1278
+ relevance: 0,
1279
+ _illegalBy: {
1280
+ message: err.message,
1281
+ index,
1282
+ context: codeToHighlight.slice(index - 100, index + 100),
1283
+ mode: err.mode,
1284
+ resultSoFar: result
1285
+ },
1286
+ _emitter: emitter
1287
+ };
1288
+ } else if (SAFE_MODE) {
1289
+ return {
1290
+ language: languageName,
1291
+ value: escape(codeToHighlight),
1292
+ illegal: false,
1293
+ relevance: 0,
1294
+ errorRaised: err,
1295
+ _emitter: emitter,
1296
+ _top: top
1297
+ };
1298
+ } else {
1299
+ throw err;
1300
+ }
1301
+ }
1302
+ }
1303
+ function justTextHighlightResult(code) {
1304
+ const result = {
1305
+ value: escape(code),
1306
+ illegal: false,
1307
+ relevance: 0,
1308
+ _top: PLAINTEXT_LANGUAGE,
1309
+ _emitter: new options.__emitter(options)
1310
+ };
1311
+ result._emitter.addText(code);
1312
+ return result;
1313
+ }
1314
+ function highlightAuto(code, languageSubset) {
1315
+ languageSubset = languageSubset || options.languages || Object.keys(languages);
1316
+ const plaintext = justTextHighlightResult(code);
1317
+ const results = languageSubset.filter(getLanguage).filter(autoDetection).map(
1318
+ (name) => _highlight(name, code, false)
1319
+ );
1320
+ results.unshift(plaintext);
1321
+ const sorted = results.sort((a, b) => {
1322
+ if (a.relevance !== b.relevance) return b.relevance - a.relevance;
1323
+ if (a.language && b.language) {
1324
+ if (getLanguage(a.language).supersetOf === b.language) {
1325
+ return 1;
1326
+ } else if (getLanguage(b.language).supersetOf === a.language) {
1327
+ return -1;
1328
+ }
1329
+ }
1330
+ return 0;
1331
+ });
1332
+ const [best, secondBest] = sorted;
1333
+ const result = best;
1334
+ result.secondBest = secondBest;
1335
+ return result;
1336
+ }
1337
+ function updateClassName(element, currentLang, resultLang) {
1338
+ const language = currentLang && aliases[currentLang] || resultLang;
1339
+ element.classList.add("hljs");
1340
+ element.classList.add(`language-${language}`);
1341
+ }
1342
+ function highlightElement(element) {
1343
+ let node = null;
1344
+ const language = blockLanguage(element);
1345
+ if (shouldNotHighlight(language)) return;
1346
+ fire(
1347
+ "before:highlightElement",
1348
+ { el: element, language }
1349
+ );
1350
+ if (!options.ignoreUnescapedHTML && element.children.length > 0) {
1351
+ console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk.");
1352
+ console.warn("https://github.com/highlightjs/highlight.js/issues/2886");
1353
+ console.warn(element);
1354
+ }
1355
+ node = element;
1356
+ const text = node.textContent;
1357
+ const result = language ? highlight2(text, { language, ignoreIllegals: true }) : highlightAuto(text);
1358
+ element.innerHTML = result.value;
1359
+ updateClassName(element, language, result.language);
1360
+ element.result = {
1361
+ language: result.language,
1362
+ // TODO: remove with version 11.0
1363
+ re: result.relevance,
1364
+ relevance: result.relevance
1365
+ };
1366
+ if (result.secondBest) {
1367
+ element.secondBest = {
1368
+ language: result.secondBest.language,
1369
+ relevance: result.secondBest.relevance
1370
+ };
1371
+ }
1372
+ fire("after:highlightElement", { el: element, result, text });
1373
+ }
1374
+ function configure(userOptions) {
1375
+ options = inherit(options, userOptions);
1376
+ }
1377
+ const initHighlighting = () => {
1378
+ highlightAll();
1379
+ deprecated("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
1380
+ };
1381
+ function initHighlightingOnLoad() {
1382
+ highlightAll();
1383
+ deprecated("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
1384
+ }
1385
+ let wantsHighlight = false;
1386
+ function highlightAll() {
1387
+ if (document.readyState === "loading") {
1388
+ wantsHighlight = true;
1389
+ return;
1390
+ }
1391
+ const blocks = document.querySelectorAll(options.cssSelector);
1392
+ blocks.forEach(highlightElement);
1393
+ }
1394
+ function boot() {
1395
+ if (wantsHighlight) highlightAll();
1396
+ }
1397
+ if (typeof window !== "undefined" && window.addEventListener) {
1398
+ window.addEventListener("DOMContentLoaded", boot, false);
1399
+ }
1400
+ function registerLanguage(languageName, languageDefinition) {
1401
+ let lang = null;
1402
+ try {
1403
+ lang = languageDefinition(hljs2);
1404
+ } catch (error$1) {
1405
+ error("Language definition for '{}' could not be registered.".replace("{}", languageName));
1406
+ if (!SAFE_MODE) {
1407
+ throw error$1;
1408
+ } else {
1409
+ error(error$1);
1410
+ }
1411
+ lang = PLAINTEXT_LANGUAGE;
1412
+ }
1413
+ if (!lang.name) lang.name = languageName;
1414
+ languages[languageName] = lang;
1415
+ lang.rawDefinition = languageDefinition.bind(null, hljs2);
1416
+ if (lang.aliases) {
1417
+ registerAliases(lang.aliases, { languageName });
1418
+ }
1419
+ }
1420
+ function unregisterLanguage(languageName) {
1421
+ delete languages[languageName];
1422
+ for (const alias of Object.keys(aliases)) {
1423
+ if (aliases[alias] === languageName) {
1424
+ delete aliases[alias];
1425
+ }
1426
+ }
1427
+ }
1428
+ function listLanguages() {
1429
+ return Object.keys(languages);
1430
+ }
1431
+ function getLanguage(name) {
1432
+ name = (name || "").toLowerCase();
1433
+ return languages[name] || languages[aliases[name]];
1434
+ }
1435
+ function registerAliases(aliasList, { languageName }) {
1436
+ if (typeof aliasList === "string") {
1437
+ aliasList = [aliasList];
1438
+ }
1439
+ aliasList.forEach((alias) => {
1440
+ aliases[alias.toLowerCase()] = languageName;
1441
+ });
1442
+ }
1443
+ function autoDetection(name) {
1444
+ const lang = getLanguage(name);
1445
+ return lang && !lang.disableAutodetect;
1446
+ }
1447
+ function upgradePluginAPI(plugin) {
1448
+ if (plugin["before:highlightBlock"] && !plugin["before:highlightElement"]) {
1449
+ plugin["before:highlightElement"] = (data) => {
1450
+ plugin["before:highlightBlock"](
1451
+ Object.assign({ block: data.el }, data)
1452
+ );
1453
+ };
1454
+ }
1455
+ if (plugin["after:highlightBlock"] && !plugin["after:highlightElement"]) {
1456
+ plugin["after:highlightElement"] = (data) => {
1457
+ plugin["after:highlightBlock"](
1458
+ Object.assign({ block: data.el }, data)
1459
+ );
1460
+ };
1461
+ }
1462
+ }
1463
+ function addPlugin(plugin) {
1464
+ upgradePluginAPI(plugin);
1465
+ plugins.push(plugin);
1466
+ }
1467
+ function fire(event, args) {
1468
+ const cb = event;
1469
+ plugins.forEach(function(plugin) {
1470
+ if (plugin[cb]) {
1471
+ plugin[cb](args);
1472
+ }
1473
+ });
1474
+ }
1475
+ function deprecateHighlightBlock(el) {
1476
+ deprecated("10.7.0", "highlightBlock will be removed entirely in v12.0");
1477
+ deprecated("10.7.0", "Please use highlightElement now.");
1478
+ return highlightElement(el);
1479
+ }
1480
+ Object.assign(hljs2, {
1481
+ highlight: highlight2,
1482
+ highlightAuto,
1483
+ highlightAll,
1484
+ highlightElement,
1485
+ // TODO: Remove with v12 API
1486
+ highlightBlock: deprecateHighlightBlock,
1487
+ configure,
1488
+ initHighlighting,
1489
+ initHighlightingOnLoad,
1490
+ registerLanguage,
1491
+ unregisterLanguage,
1492
+ listLanguages,
1493
+ getLanguage,
1494
+ registerAliases,
1495
+ autoDetection,
1496
+ inherit,
1497
+ addPlugin
1498
+ });
1499
+ hljs2.debugMode = function() {
1500
+ SAFE_MODE = false;
1501
+ };
1502
+ hljs2.safeMode = function() {
1503
+ SAFE_MODE = true;
1504
+ };
1505
+ hljs2.versionString = version;
1506
+ for (const key in MODES) {
1507
+ if (typeof MODES[key] === "object") {
1508
+ deepFreeze$1(MODES[key]);
1509
+ }
1510
+ }
1511
+ Object.assign(hljs2, MODES);
1512
+ return hljs2;
1513
+ };
1514
+ var highlight = HLJS({});
1515
+ module.exports = highlight;
1516
+ }
1517
+ });
1518
+
1519
+ // appdrawer/utils.js
1520
+ function makeButton(arg) {
1521
+ const button = arg.div.append("button").attr("type", "submit").style("background-color", arg.backgroundColor ? arg.backgroundColor : "#cfe2f3").style("margin", arg.margin ? arg.margin : "20px 20px 0px 20px").style("padding", "8px").style("border", "none").style("border-radius", "3px").style("display", "inline-block").text(arg.text);
1522
+ return button;
1523
+ }
1524
+
1525
+ // dom/breadcrumbs.js
1526
+ var BreadcrumbTrail = class {
1527
+ constructor(opts) {
1528
+ this.opts = opts;
1529
+ this.dom = {
1530
+ holder: opts.holder,
1531
+ trailDiv: opts.trailDiv || opts.holder.append("div")
1532
+ };
1533
+ setRenderers(this);
1534
+ }
1535
+ async main(opts = {}) {
1536
+ try {
1537
+ return await this.render();
1538
+ } catch (e) {
1539
+ if (e.stack) console.log(e.stack);
1540
+ else throw e;
1541
+ }
1542
+ }
1543
+ };
1544
+ function setRenderers(self) {
1545
+ self.render = async () => {
1546
+ self.crumbs = self.opts.crumbs;
1547
+ for (const crumb of self.crumbs) {
1548
+ crumb.label = crumb.label || crumb.name;
1549
+ if (!crumb.inTrail) crumb.inTrail = false;
1550
+ }
1551
+ const has_active_crumb = self.crumbs.find((crumb) => crumb.inTrail);
1552
+ if (!has_active_crumb) self.crumbs[0].inTrail = true;
1553
+ await self.dom.trailDiv.style("margin-left", "5px").style("font-size", ".75em").style("display", "inline-block").classed("sjpp-breadcrumb-trail", true).selectAll("span").data(self.crumbs).enter().append("span").classed("sjpp-breadcrumb", true).html((crumb) => crumb.link ? `&nbsp> <a href="${crumb.link}">${crumb.label}</a>` : `&nbsp> ${crumb.label}`).style("display", (crumb) => crumb.inTrail ? "inline-block" : "none").each(async function(crumb) {
1554
+ crumb.div = select_default(this);
1555
+ });
1556
+ const activeCrumbIndex = self.crumbs.findIndex((c) => c.inTrail);
1557
+ self.update(activeCrumbIndex);
1558
+ };
1559
+ self.update = (crumbIndex = 0) => {
1560
+ self.crumbs.forEach((crumb, i) => {
1561
+ crumb.inTrail = crumbIndex === i;
1562
+ });
1563
+ self.dom.trailDiv.selectAll("span").data(self.crumbs).each(async (crumb) => {
1564
+ crumb.div.style("display", crumb.inTrail ? "inline-block" : "none");
1565
+ });
1566
+ };
1567
+ }
1568
+
1569
+ // ../node_modules/highlight.js/es/core.js
1570
+ var import_core = __toESM(require_core(), 1);
1571
+ var core_default = import_core.default;
1572
+
1573
+ // ../node_modules/highlight.js/es/languages/javascript.js
1574
+ var IDENT_RE = "[A-Za-z$_][0-9A-Za-z$_]*";
1575
+ var KEYWORDS = [
1576
+ "as",
1577
+ // for exports
1578
+ "in",
1579
+ "of",
1580
+ "if",
1581
+ "for",
1582
+ "while",
1583
+ "finally",
1584
+ "var",
1585
+ "new",
1586
+ "function",
1587
+ "do",
1588
+ "return",
1589
+ "void",
1590
+ "else",
1591
+ "break",
1592
+ "catch",
1593
+ "instanceof",
1594
+ "with",
1595
+ "throw",
1596
+ "case",
1597
+ "default",
1598
+ "try",
1599
+ "switch",
1600
+ "continue",
1601
+ "typeof",
1602
+ "delete",
1603
+ "let",
1604
+ "yield",
1605
+ "const",
1606
+ "class",
1607
+ // JS handles these with a special rule
1608
+ // "get",
1609
+ // "set",
1610
+ "debugger",
1611
+ "async",
1612
+ "await",
1613
+ "static",
1614
+ "import",
1615
+ "from",
1616
+ "export",
1617
+ "extends"
1618
+ ];
1619
+ var LITERALS = [
1620
+ "true",
1621
+ "false",
1622
+ "null",
1623
+ "undefined",
1624
+ "NaN",
1625
+ "Infinity"
1626
+ ];
1627
+ var TYPES = [
1628
+ "Intl",
1629
+ "DataView",
1630
+ "Number",
1631
+ "Math",
1632
+ "Date",
1633
+ "String",
1634
+ "RegExp",
1635
+ "Object",
1636
+ "Function",
1637
+ "Boolean",
1638
+ "Error",
1639
+ "Symbol",
1640
+ "Set",
1641
+ "Map",
1642
+ "WeakSet",
1643
+ "WeakMap",
1644
+ "Proxy",
1645
+ "Reflect",
1646
+ "JSON",
1647
+ "Promise",
1648
+ "Float64Array",
1649
+ "Int16Array",
1650
+ "Int32Array",
1651
+ "Int8Array",
1652
+ "Uint16Array",
1653
+ "Uint32Array",
1654
+ "Float32Array",
1655
+ "Array",
1656
+ "Uint8Array",
1657
+ "Uint8ClampedArray",
1658
+ "ArrayBuffer",
1659
+ "BigInt64Array",
1660
+ "BigUint64Array",
1661
+ "BigInt"
1662
+ ];
1663
+ var ERROR_TYPES = [
1664
+ "EvalError",
1665
+ "InternalError",
1666
+ "RangeError",
1667
+ "ReferenceError",
1668
+ "SyntaxError",
1669
+ "TypeError",
1670
+ "URIError"
1671
+ ];
1672
+ var BUILT_IN_GLOBALS = [
1673
+ "setInterval",
1674
+ "setTimeout",
1675
+ "clearInterval",
1676
+ "clearTimeout",
1677
+ "require",
1678
+ "exports",
1679
+ "eval",
1680
+ "isFinite",
1681
+ "isNaN",
1682
+ "parseFloat",
1683
+ "parseInt",
1684
+ "decodeURI",
1685
+ "decodeURIComponent",
1686
+ "encodeURI",
1687
+ "encodeURIComponent",
1688
+ "escape",
1689
+ "unescape"
1690
+ ];
1691
+ var BUILT_IN_VARIABLES = [
1692
+ "arguments",
1693
+ "this",
1694
+ "super",
1695
+ "console",
1696
+ "window",
1697
+ "document",
1698
+ "localStorage",
1699
+ "module",
1700
+ "global"
1701
+ // Node.js
1702
+ ];
1703
+ var BUILT_INS = [].concat(
1704
+ BUILT_IN_GLOBALS,
1705
+ TYPES,
1706
+ ERROR_TYPES
1707
+ );
1708
+ function source(re) {
1709
+ if (!re) return null;
1710
+ if (typeof re === "string") return re;
1711
+ return re.source;
1712
+ }
1713
+ function lookahead(re) {
1714
+ return concat("(?=", re, ")");
1715
+ }
1716
+ function concat(...args) {
1717
+ const joined = args.map((x) => source(x)).join("");
1718
+ return joined;
1719
+ }
1720
+ function javascript(hljs2) {
1721
+ const hasClosingTag = (match, { after }) => {
1722
+ const tag = "</" + match[0].slice(1);
1723
+ const pos = match.input.indexOf(tag, after);
1724
+ return pos !== -1;
1725
+ };
1726
+ const IDENT_RE$1 = IDENT_RE;
1727
+ const FRAGMENT = {
1728
+ begin: "<>",
1729
+ end: "</>"
1730
+ };
1731
+ const XML_TAG = {
1732
+ begin: /<[A-Za-z0-9\\._:-]+/,
1733
+ end: /\/[A-Za-z0-9\\._:-]+>|\/>/,
1734
+ /**
1735
+ * @param {RegExpMatchArray} match
1736
+ * @param {CallbackResponse} response
1737
+ */
1738
+ isTrulyOpeningTag: (match, response) => {
1739
+ const afterMatchIndex = match[0].length + match.index;
1740
+ const nextChar = match.input[afterMatchIndex];
1741
+ if (nextChar === "<") {
1742
+ response.ignoreMatch();
1743
+ return;
1744
+ }
1745
+ if (nextChar === ">") {
1746
+ if (!hasClosingTag(match, { after: afterMatchIndex })) {
1747
+ response.ignoreMatch();
1748
+ }
1749
+ }
1750
+ }
1751
+ };
1752
+ const KEYWORDS$1 = {
1753
+ $pattern: IDENT_RE,
1754
+ keyword: KEYWORDS,
1755
+ literal: LITERALS,
1756
+ built_in: BUILT_INS,
1757
+ "variable.language": BUILT_IN_VARIABLES
1758
+ };
1759
+ const decimalDigits = "[0-9](_?[0-9])*";
1760
+ const frac = `\\.(${decimalDigits})`;
1761
+ const decimalInteger = `0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`;
1762
+ const NUMBER = {
1763
+ className: "number",
1764
+ variants: [
1765
+ // DecimalLiteral
1766
+ { begin: `(\\b(${decimalInteger})((${frac})|\\.)?|(${frac}))[eE][+-]?(${decimalDigits})\\b` },
1767
+ { begin: `\\b(${decimalInteger})\\b((${frac})\\b|\\.)?|(${frac})\\b` },
1768
+ // DecimalBigIntegerLiteral
1769
+ { begin: `\\b(0|[1-9](_?[0-9])*)n\\b` },
1770
+ // NonDecimalIntegerLiteral
1771
+ { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" },
1772
+ { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" },
1773
+ { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" },
1774
+ // LegacyOctalIntegerLiteral (does not include underscore separators)
1775
+ // https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals
1776
+ { begin: "\\b0[0-7]+n?\\b" }
1777
+ ],
1778
+ relevance: 0
1779
+ };
1780
+ const SUBST = {
1781
+ className: "subst",
1782
+ begin: "\\$\\{",
1783
+ end: "\\}",
1784
+ keywords: KEYWORDS$1,
1785
+ contains: []
1786
+ // defined later
1787
+ };
1788
+ const HTML_TEMPLATE = {
1789
+ begin: "html`",
1790
+ end: "",
1791
+ starts: {
1792
+ end: "`",
1793
+ returnEnd: false,
1794
+ contains: [
1795
+ hljs2.BACKSLASH_ESCAPE,
1796
+ SUBST
1797
+ ],
1798
+ subLanguage: "xml"
1799
+ }
1800
+ };
1801
+ const CSS_TEMPLATE = {
1802
+ begin: "css`",
1803
+ end: "",
1804
+ starts: {
1805
+ end: "`",
1806
+ returnEnd: false,
1807
+ contains: [
1808
+ hljs2.BACKSLASH_ESCAPE,
1809
+ SUBST
1810
+ ],
1811
+ subLanguage: "css"
1812
+ }
1813
+ };
1814
+ const TEMPLATE_STRING = {
1815
+ className: "string",
1816
+ begin: "`",
1817
+ end: "`",
1818
+ contains: [
1819
+ hljs2.BACKSLASH_ESCAPE,
1820
+ SUBST
1821
+ ]
1822
+ };
1823
+ const JSDOC_COMMENT = hljs2.COMMENT(
1824
+ /\/\*\*(?!\/)/,
1825
+ "\\*/",
1826
+ {
1827
+ relevance: 0,
1828
+ contains: [
1829
+ {
1830
+ begin: "(?=@[A-Za-z]+)",
1831
+ relevance: 0,
1832
+ contains: [
1833
+ {
1834
+ className: "doctag",
1835
+ begin: "@[A-Za-z]+"
1836
+ },
1837
+ {
1838
+ className: "type",
1839
+ begin: "\\{",
1840
+ end: "\\}",
1841
+ excludeEnd: true,
1842
+ excludeBegin: true,
1843
+ relevance: 0
1844
+ },
1845
+ {
1846
+ className: "variable",
1847
+ begin: IDENT_RE$1 + "(?=\\s*(-)|$)",
1848
+ endsParent: true,
1849
+ relevance: 0
1850
+ },
1851
+ // eat spaces (not newlines) so we can find
1852
+ // types or variables
1853
+ {
1854
+ begin: /(?=[^\n])\s/,
1855
+ relevance: 0
1856
+ }
1857
+ ]
1858
+ }
1859
+ ]
1860
+ }
1861
+ );
1862
+ const COMMENT = {
1863
+ className: "comment",
1864
+ variants: [
1865
+ JSDOC_COMMENT,
1866
+ hljs2.C_BLOCK_COMMENT_MODE,
1867
+ hljs2.C_LINE_COMMENT_MODE
1868
+ ]
1869
+ };
1870
+ const SUBST_INTERNALS = [
1871
+ hljs2.APOS_STRING_MODE,
1872
+ hljs2.QUOTE_STRING_MODE,
1873
+ HTML_TEMPLATE,
1874
+ CSS_TEMPLATE,
1875
+ TEMPLATE_STRING,
1876
+ NUMBER,
1877
+ hljs2.REGEXP_MODE
1878
+ ];
1879
+ SUBST.contains = SUBST_INTERNALS.concat({
1880
+ // we need to pair up {} inside our subst to prevent
1881
+ // it from ending too early by matching another }
1882
+ begin: /\{/,
1883
+ end: /\}/,
1884
+ keywords: KEYWORDS$1,
1885
+ contains: [
1886
+ "self"
1887
+ ].concat(SUBST_INTERNALS)
1888
+ });
1889
+ const SUBST_AND_COMMENTS = [].concat(COMMENT, SUBST.contains);
1890
+ const PARAMS_CONTAINS = SUBST_AND_COMMENTS.concat([
1891
+ // eat recursive parens in sub expressions
1892
+ {
1893
+ begin: /\(/,
1894
+ end: /\)/,
1895
+ keywords: KEYWORDS$1,
1896
+ contains: ["self"].concat(SUBST_AND_COMMENTS)
1897
+ }
1898
+ ]);
1899
+ const PARAMS = {
1900
+ className: "params",
1901
+ begin: /\(/,
1902
+ end: /\)/,
1903
+ excludeBegin: true,
1904
+ excludeEnd: true,
1905
+ keywords: KEYWORDS$1,
1906
+ contains: PARAMS_CONTAINS
1907
+ };
1908
+ const CLASS_OR_EXTENDS = {
1909
+ variants: [
1910
+ {
1911
+ match: [
1912
+ /class/,
1913
+ /\s+/,
1914
+ IDENT_RE$1
1915
+ ],
1916
+ scope: {
1917
+ 1: "keyword",
1918
+ 3: "title.class"
1919
+ }
1920
+ },
1921
+ {
1922
+ match: [
1923
+ /extends/,
1924
+ /\s+/,
1925
+ concat(IDENT_RE$1, "(", concat(/\./, IDENT_RE$1), ")*")
1926
+ ],
1927
+ scope: {
1928
+ 1: "keyword",
1929
+ 3: "title.class.inherited"
1930
+ }
1931
+ }
1932
+ ]
1933
+ };
1934
+ const CLASS_REFERENCE = {
1935
+ relevance: 0,
1936
+ match: /\b[A-Z][a-z]+([A-Z][a-z]+)*/,
1937
+ className: "title.class",
1938
+ keywords: {
1939
+ _: [
1940
+ // se we still get relevance credit for JS library classes
1941
+ ...TYPES,
1942
+ ...ERROR_TYPES
1943
+ ]
1944
+ }
1945
+ };
1946
+ const USE_STRICT = {
1947
+ label: "use_strict",
1948
+ className: "meta",
1949
+ relevance: 10,
1950
+ begin: /^\s*['"]use (strict|asm)['"]/
1951
+ };
1952
+ const FUNCTION_DEFINITION = {
1953
+ variants: [
1954
+ {
1955
+ match: [
1956
+ /function/,
1957
+ /\s+/,
1958
+ IDENT_RE$1,
1959
+ /(?=\s*\()/
1960
+ ]
1961
+ },
1962
+ // anonymous function
1963
+ {
1964
+ match: [
1965
+ /function/,
1966
+ /\s*(?=\()/
1967
+ ]
1968
+ }
1969
+ ],
1970
+ className: {
1971
+ 1: "keyword",
1972
+ 3: "title.function"
1973
+ },
1974
+ label: "func.def",
1975
+ contains: [PARAMS],
1976
+ illegal: /%/
1977
+ };
1978
+ const UPPER_CASE_CONSTANT = {
1979
+ relevance: 0,
1980
+ match: /\b[A-Z][A-Z_0-9]+\b/,
1981
+ className: "variable.constant"
1982
+ };
1983
+ function noneOf(list) {
1984
+ return concat("(?!", list.join("|"), ")");
1985
+ }
1986
+ const FUNCTION_CALL = {
1987
+ match: concat(
1988
+ /\b/,
1989
+ noneOf([
1990
+ ...BUILT_IN_GLOBALS,
1991
+ "super"
1992
+ ]),
1993
+ IDENT_RE$1,
1994
+ lookahead(/\(/)
1995
+ ),
1996
+ className: "title.function",
1997
+ relevance: 0
1998
+ };
1999
+ const PROPERTY_ACCESS = {
2000
+ begin: concat(/\./, lookahead(
2001
+ concat(IDENT_RE$1, /(?![0-9A-Za-z$_(])/)
2002
+ )),
2003
+ end: IDENT_RE$1,
2004
+ excludeBegin: true,
2005
+ keywords: "prototype",
2006
+ className: "property",
2007
+ relevance: 0
2008
+ };
2009
+ const GETTER_OR_SETTER = {
2010
+ match: [
2011
+ /get|set/,
2012
+ /\s+/,
2013
+ IDENT_RE$1,
2014
+ /(?=\()/
2015
+ ],
2016
+ className: {
2017
+ 1: "keyword",
2018
+ 3: "title.function"
2019
+ },
2020
+ contains: [
2021
+ {
2022
+ // eat to avoid empty params
2023
+ begin: /\(\)/
2024
+ },
2025
+ PARAMS
2026
+ ]
2027
+ };
2028
+ const FUNC_LEAD_IN_RE = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + hljs2.UNDERSCORE_IDENT_RE + ")\\s*=>";
2029
+ const FUNCTION_VARIABLE = {
2030
+ match: [
2031
+ /const|var|let/,
2032
+ /\s+/,
2033
+ IDENT_RE$1,
2034
+ /\s*/,
2035
+ /=\s*/,
2036
+ lookahead(FUNC_LEAD_IN_RE)
2037
+ ],
2038
+ className: {
2039
+ 1: "keyword",
2040
+ 3: "title.function"
2041
+ },
2042
+ contains: [
2043
+ PARAMS
2044
+ ]
2045
+ };
2046
+ return {
2047
+ name: "Javascript",
2048
+ aliases: ["js", "jsx", "mjs", "cjs"],
2049
+ keywords: KEYWORDS$1,
2050
+ // this will be extended by TypeScript
2051
+ exports: { PARAMS_CONTAINS },
2052
+ illegal: /#(?![$_A-z])/,
2053
+ contains: [
2054
+ hljs2.SHEBANG({
2055
+ label: "shebang",
2056
+ binary: "node",
2057
+ relevance: 5
2058
+ }),
2059
+ USE_STRICT,
2060
+ hljs2.APOS_STRING_MODE,
2061
+ hljs2.QUOTE_STRING_MODE,
2062
+ HTML_TEMPLATE,
2063
+ CSS_TEMPLATE,
2064
+ TEMPLATE_STRING,
2065
+ COMMENT,
2066
+ NUMBER,
2067
+ CLASS_REFERENCE,
2068
+ {
2069
+ className: "attr",
2070
+ begin: IDENT_RE$1 + lookahead(":"),
2071
+ relevance: 0
2072
+ },
2073
+ FUNCTION_VARIABLE,
2074
+ {
2075
+ // "value" container
2076
+ begin: "(" + hljs2.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
2077
+ keywords: "return throw case",
2078
+ relevance: 0,
2079
+ contains: [
2080
+ COMMENT,
2081
+ hljs2.REGEXP_MODE,
2082
+ {
2083
+ className: "function",
2084
+ // we have to count the parens to make sure we actually have the
2085
+ // correct bounding ( ) before the =>. There could be any number of
2086
+ // sub-expressions inside also surrounded by parens.
2087
+ begin: FUNC_LEAD_IN_RE,
2088
+ returnBegin: true,
2089
+ end: "\\s*=>",
2090
+ contains: [
2091
+ {
2092
+ className: "params",
2093
+ variants: [
2094
+ {
2095
+ begin: hljs2.UNDERSCORE_IDENT_RE,
2096
+ relevance: 0
2097
+ },
2098
+ {
2099
+ className: null,
2100
+ begin: /\(\s*\)/,
2101
+ skip: true
2102
+ },
2103
+ {
2104
+ begin: /\(/,
2105
+ end: /\)/,
2106
+ excludeBegin: true,
2107
+ excludeEnd: true,
2108
+ keywords: KEYWORDS$1,
2109
+ contains: PARAMS_CONTAINS
2110
+ }
2111
+ ]
2112
+ }
2113
+ ]
2114
+ },
2115
+ {
2116
+ // could be a comma delimited list of params to a function call
2117
+ begin: /,/,
2118
+ relevance: 0
2119
+ },
2120
+ {
2121
+ match: /\s+/,
2122
+ relevance: 0
2123
+ },
2124
+ {
2125
+ // JSX
2126
+ variants: [
2127
+ { begin: FRAGMENT.begin, end: FRAGMENT.end },
2128
+ {
2129
+ begin: XML_TAG.begin,
2130
+ // we carefully check the opening tag to see if it truly
2131
+ // is a tag and not a false positive
2132
+ "on:begin": XML_TAG.isTrulyOpeningTag,
2133
+ end: XML_TAG.end
2134
+ }
2135
+ ],
2136
+ subLanguage: "xml",
2137
+ contains: [
2138
+ {
2139
+ begin: XML_TAG.begin,
2140
+ end: XML_TAG.end,
2141
+ skip: true,
2142
+ contains: ["self"]
2143
+ }
2144
+ ]
2145
+ }
2146
+ ]
2147
+ },
2148
+ FUNCTION_DEFINITION,
2149
+ {
2150
+ // prevent this from getting swallowed up by function
2151
+ // since they appear "function like"
2152
+ beginKeywords: "while if switch catch for"
2153
+ },
2154
+ {
2155
+ // we have to count the parens to make sure we actually have the correct
2156
+ // bounding ( ). There could be any number of sub-expressions inside
2157
+ // also surrounded by parens.
2158
+ begin: "\\b(?!function)" + hljs2.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
2159
+ // end parens
2160
+ returnBegin: true,
2161
+ label: "func.def",
2162
+ contains: [
2163
+ PARAMS,
2164
+ hljs2.inherit(hljs2.TITLE_MODE, { begin: IDENT_RE$1, className: "title.function" })
2165
+ ]
2166
+ },
2167
+ // catch ... so it won't trigger the property rule below
2168
+ {
2169
+ match: /\.\.\./,
2170
+ relevance: 0
2171
+ },
2172
+ PROPERTY_ACCESS,
2173
+ // hack: prevents detection of keywords in some circumstances
2174
+ // .keyword()
2175
+ // $keyword = x
2176
+ {
2177
+ match: "\\$" + IDENT_RE$1,
2178
+ relevance: 0
2179
+ },
2180
+ {
2181
+ match: [/\bconstructor(?=\s*\()/],
2182
+ className: { 1: "title.function" },
2183
+ contains: [PARAMS]
2184
+ },
2185
+ FUNCTION_CALL,
2186
+ UPPER_CASE_CONSTANT,
2187
+ CLASS_OR_EXTENDS,
2188
+ GETTER_OR_SETTER,
2189
+ {
2190
+ match: /\$[(.]/
2191
+ // relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
2192
+ }
2193
+ ]
2194
+ };
2195
+ }
2196
+ var javascript_default = javascript;
2197
+
2198
+ // ../node_modules/highlight.js/es/languages/json.js
2199
+ function json(hljs2) {
2200
+ const ATTRIBUTE = {
2201
+ className: "attr",
2202
+ begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/,
2203
+ relevance: 1.01
2204
+ };
2205
+ const PUNCTUATION = {
2206
+ match: /[{}[\],:]/,
2207
+ className: "punctuation",
2208
+ relevance: 0
2209
+ };
2210
+ const LITERALS2 = {
2211
+ beginKeywords: [
2212
+ "true",
2213
+ "false",
2214
+ "null"
2215
+ ].join(" ")
2216
+ };
2217
+ return {
2218
+ name: "JSON",
2219
+ contains: [
2220
+ ATTRIBUTE,
2221
+ PUNCTUATION,
2222
+ hljs2.QUOTE_STRING_MODE,
2223
+ LITERALS2,
2224
+ hljs2.C_NUMBER_MODE,
2225
+ hljs2.C_LINE_COMMENT_MODE,
2226
+ hljs2.C_BLOCK_COMMENT_MODE
2227
+ ],
2228
+ illegal: "\\S"
2229
+ };
2230
+ }
2231
+ var json_default = json;
2232
+
2233
+ // appdrawer/adSandbox.js
2234
+ core_default.registerLanguage("javascript", javascript_default);
2235
+ core_default.registerLanguage("json", json_default);
2236
+ async function openSandbox(element, pageArgs) {
2237
+ const sandboxDiv = newSandboxDiv(pageArgs.sandboxDiv);
2238
+ sandboxDiv.header_row;
2239
+ sandboxDiv.header.append("span").html(
2240
+ element.type != "nestedCard" ? `<a href="${sessionStorage.getItem("hostURL")}/?appcard=${element.sandboxJson || element.sandboxHtml}">${element.name}</a>` : element.name
2241
+ );
2242
+ sandboxDiv.body.style("overflow", "hidden").style("background-color", "white");
2243
+ if (element.type == "nestedCard") return openNestedCardSandbox(element, sandboxDiv, pageArgs);
2244
+ const res = element.sandboxJson ? await dofetch3(`${pageArgs.app.cardsPath}/${element.sandboxJson}.json`) : await dofetch3(`${pageArgs.app.cardsPath}/${element.sandboxHtml}.txt`);
2245
+ if (res.error) {
2246
+ sayerror(sandboxDiv.body.insert("div", "div"), res.error);
2247
+ return;
2248
+ }
2249
+ if (element.type == "card") return openCardSandbox(element, res, sandboxDiv, pageArgs);
2250
+ if (element.type == "dsButton") return openDatasetButtonSandbox(element, pageArgs, res, sandboxDiv);
2251
+ }
2252
+ async function openNestedCardSandbox(nestedCard, sandboxDiv, pageArgs) {
2253
+ sandboxDiv.body.style("justify-content", "center").style("background-color", "#f2ebdc");
2254
+ const ucList = sandboxDiv.body.append("ul").style("list-style", "none").style("display", "grid").style("grid-template-columns", "40vw 40vw").style("grid-template-rows", "repeat(1, auto)").style("gap", "5px");
2255
+ const filteredChildren = nestedCard.children.filter((e) => !e.hidden);
2256
+ sandboxDiv.header.trail = new BreadcrumbTrail({
2257
+ holder: sandboxDiv.header,
2258
+ crumbs: filteredChildren
2259
+ });
2260
+ filteredChildren.forEach((child) => {
2261
+ const uc = ucList.append("li");
2262
+ uc.attr("class", "sjpp-app-drawer-card").style("padding", "10px").style("margin", "5px").html(
2263
+ `<p style="margin-left: 12px; font-size:14.5px;font-weight:500; display: block;">${child.name}</p>
2264
+ <p style="display: block; font-size: 13px; font-weight: 300; margin-left: 20px; justify-content: center; font-style:oblique; color: #403f3f;">${child.description}</p>`
2265
+ ).on("click", async (event) => {
2266
+ event.stopPropagation();
2267
+ ucList.selectAll("*").remove();
2268
+ const res = child.sandboxJson ? await dofetch3(`${pageArgs.app.cardsPath}/${child.sandboxJson}.json`) : await dofetch3(`${pageArgs.app.cardsPath}/${child.sandboxHtml}.txt`);
2269
+ if (res.error) {
2270
+ sayerror(sandboxDiv.body.insert("div", "div"), res.error);
2271
+ return;
2272
+ }
2273
+ if (child.type == "card") {
2274
+ sandboxDiv.header.trail.main();
2275
+ openCardSandbox(child, res, sandboxDiv, pageArgs);
2276
+ const crumbIndex = filteredChildren.findIndex((c) => c == child);
2277
+ sandboxDiv.header.trail.update(crumbIndex);
2278
+ }
2279
+ if (child.type == "dsButton") return openDatasetButtonSandbox(child, pageArgs.app.opts, res, sandboxDiv);
2280
+ });
2281
+ return JSON.stringify(uc);
2282
+ });
2283
+ }
2284
+ async function openCardSandbox(card, res, sandboxDiv, pageArgs) {
2285
+ if (card.sandboxHtml) {
2286
+ const renderHtml = await res.text();
2287
+ return sandboxDiv.body.append("div").style("padding", "0vw 0vw 2vw 0vw").append("div").style("background-color", "white").style("margin", "0vw 10vw").style("padding", "10px").append("div").style("margin", "0vw 5vw").html(renderHtml);
2288
+ }
2289
+ sandboxDiv.body.style("background-color", "white");
2290
+ const sandboxArgs = {
2291
+ intro: res.intro,
2292
+ ppcalls: res.ppcalls.filter((e) => !e.hidden),
2293
+ buttons: res.buttons,
2294
+ arrowButtons: res.arrowButtons,
2295
+ ribbonMessage: res.ribbonMessage,
2296
+ citation: res.citation_id
2297
+ };
2298
+ addHtmlText(sandboxArgs.intro, sandboxDiv.body);
2299
+ if (card.ribbon) addHtmlText(sandboxArgs.ribbonMessage, sandboxDiv.body, card.ribbon);
2300
+ const mainButtonsDiv = sandboxDiv.body.append("div");
2301
+ const mainButtonsContentDiv = sandboxDiv.body.append("div");
2302
+ addButtons(sandboxArgs.buttons, mainButtonsDiv);
2303
+ addArrowBtns(sandboxArgs, "main", mainButtonsDiv, mainButtonsContentDiv, pageArgs);
2304
+ if (card.disableTopTabs) renderContent(sandboxArgs.ppcalls[0], sandboxDiv.body, card, pageArgs);
2305
+ else {
2306
+ const topTabsDiv = sandboxDiv.body.append("div").style("display", "flex").style("align-content", "end").style("justify-content", "center").style("border", "none").style("border-bottom", "1px solid lightgray").style("width", "100%").style("font-size", "20px");
2307
+ const tabsContentDiv = sandboxDiv.body.append("div");
2308
+ makeParentTabsMenu(sandboxArgs.ppcalls, card, topTabsDiv, tabsContentDiv, sandboxDiv, pageArgs);
2309
+ }
2310
+ }
2311
+ function renderContent(ppcalls, div, card, pageArgs) {
2312
+ addHtmlText(ppcalls.message, div);
2313
+ const buttonsDiv = div.append("div").style("margin-bottom", "20px");
2314
+ const buttonsContentDiv = div.append("div");
2315
+ addButtons(ppcalls.buttons, buttonsDiv);
2316
+ makeDataDownload(ppcalls.download, buttonsDiv, card.section);
2317
+ showURLLaunch(ppcalls.urlparam, buttonsDiv, card.section);
2318
+ addArrowBtns(ppcalls, "call", buttonsDiv, buttonsContentDiv, pageArgs);
2319
+ if (!card.disableTopTabs) {
2320
+ div.append("hr").style("border", "0").style("border-top", "1px dashed #e3e3e6").style("width", "100%");
2321
+ }
2322
+ const runpp_arg = {
2323
+ holder: div.append("div").style("margin", "20px").node(),
2324
+ /* Do not use window.location.origin
2325
+ Will break the embedder (/genomes will be requested from https:/embedder.site.org/genomes,
2326
+ for example). It's very rare for an embedder to want to show this default "portal" header
2327
+ because external portals usually have their own headers, but it will affect simple html
2328
+ pages that embed a runpp() call where the app header is not hidden. */
2329
+ host: ppcalls.runargs.host || sessionStorage.getItem("hostURL")
2330
+ };
2331
+ const callpp = JSON.parse(JSON.stringify(ppcalls.runargs));
2332
+ runproteinpaint(Object.assign(runpp_arg, callpp));
2333
+ }
2334
+ function makeTopTabs(ppcalls, card, sandboxDiv, pageArgs) {
2335
+ const tabs = [];
2336
+ const ui = ppcalls.findIndex((t) => t.isUi == true);
2337
+ const notui = ppcalls.findIndex((t) => t.isUi == void 0);
2338
+ const uiPresent = ui != -1 ? true : false;
2339
+ if (uiPresent == true) {
2340
+ tabs.push({
2341
+ label: "Add Your Data",
2342
+ active: false,
2343
+ callback: async (event, tab) => {
2344
+ try {
2345
+ const runpp_arg = {
2346
+ holder: tab.contentHolder.append("div").style("margin", "20px").node(),
2347
+ sandbox_header: tab.contentHolder,
2348
+ host: sessionStorage.getItem("hostURL")
2349
+ };
2350
+ const callpp = JSON.parse(JSON.stringify(ppcalls[ui].runargs));
2351
+ runproteinpaint(Object.assign(runpp_arg, callpp));
2352
+ delete tab.callback;
2353
+ } catch (e) {
2354
+ if (e.stack) console.error(e.stack);
2355
+ else throw e;
2356
+ }
2357
+ }
2358
+ });
2359
+ }
2360
+ if (ppcalls.length == 1 && uiPresent != true || ppcalls.length == 2 && uiPresent == true) {
2361
+ tabs.push({
2362
+ label: "Example",
2363
+ active: false,
2364
+ callback: async (event, tab) => {
2365
+ try {
2366
+ renderContent(ppcalls[notui], tab.contentHolder, card, pageArgs);
2367
+ delete tab.callback;
2368
+ } catch (e) {
2369
+ if (e.stack) console.error(e.stack);
2370
+ else throw e;
2371
+ }
2372
+ }
2373
+ });
2374
+ }
2375
+ if (ppcalls.length > 1 && uiPresent == false || ppcalls.length > 2 && uiPresent == true) {
2376
+ tabs.push({
2377
+ label: "Examples",
2378
+ active: pageArgs?.example ? true : false,
2379
+ callback: async (event, tab) => {
2380
+ try {
2381
+ const examplesOnly = ppcalls.filter((p) => p.isUi != true);
2382
+ makeLeftsideTabMenu(card, tab.contentHolder, examplesOnly, sandboxDiv, pageArgs);
2383
+ delete tab.callback;
2384
+ } catch (e) {
2385
+ if (e.stack) console.error(e.stack);
2386
+ else throw e;
2387
+ }
2388
+ }
2389
+ });
2390
+ }
2391
+ return tabs;
2392
+ }
2393
+ function makeParentTabsMenu(ppcalls, card, topTabsDiv, tabsContentDiv, sandboxDiv, pageArgs) {
2394
+ const tabs = makeTopTabs(ppcalls, card, sandboxDiv, pageArgs);
2395
+ new Tabs({ holder: topTabsDiv, contentHolder: tabsContentDiv, tabs }).main();
2396
+ }
2397
+ async function makeLeftsideTabMenu(card, contentHolder, examplesOnly, sandboxDiv, pageArgs) {
2398
+ const tabs = examplesOnly.map((p, index) => getTabData(p, index, card.section));
2399
+ sandboxDiv.header.trail = await new BreadcrumbTrail({
2400
+ holder: sandboxDiv.header,
2401
+ crumbs: tabs
2402
+ });
2403
+ function getTabData(ppcalls, i, section) {
2404
+ const active = pageArgs?.example ? pageArgs.example.toUpperCase() == ppcalls.label.toUpperCase() : i === 0;
2405
+ return {
2406
+ active,
2407
+ inTrail: active,
2408
+ link: `${sessionStorage.getItem("hostURL")}/?appcard=${card.sandboxJson || card.sandboxHtml}&example=${ppcalls.label}`,
2409
+ label: ppcalls.label,
2410
+ callback: async (event, tab) => {
2411
+ const wait = tab_wait(tab.contentHolder);
2412
+ try {
2413
+ if (!tab.rendered) {
2414
+ appear(tab.contentHolder);
2415
+ renderContent(ppcalls, tab.contentHolder, section, pageArgs);
2416
+ wait.remove();
2417
+ }
2418
+ tab.rendered = true;
2419
+ const crumbIndex = tabs.findIndex((t) => t == tab);
2420
+ sandboxDiv.header.trail.update(crumbIndex);
2421
+ wait.remove();
2422
+ } catch (e) {
2423
+ wait.text("Error: " + (e.message || e));
2424
+ }
2425
+ }
2426
+ };
2427
+ }
2428
+ sandboxDiv.header.trail.main();
2429
+ const wrapper = contentHolder.append("div").style("display", "grid").style("grid-template-columns", "minmax(min-content, 10vw) minmax(60vw, 1fr)").classed("sjpp-vertical-tab-menu", true).style("word-break", "break-word");
2430
+ const tabsDiv = wrapper.append("div").classed("sjpp-tabs-div", true).style("border-right", "1px solid lightgray");
2431
+ const tabsContentDiv = wrapper.append("div").classed("sjpp-content-div", true);
2432
+ new Tabs({
2433
+ holder: tabsDiv,
2434
+ contentHolder: tabsContentDiv,
2435
+ tabs,
2436
+ linePosition: "right",
2437
+ tabsPosition: "vertical",
2438
+ gap: "10px"
2439
+ }).main();
2440
+ }
2441
+ function addHtmlText(text, div, ribbon) {
2442
+ if (ribbon && ribbon.expireDate) {
2443
+ const today = /* @__PURE__ */ new Date();
2444
+ const expire = new Date(ribbon.expireDate);
2445
+ if (expire > today && text != void 0 && text) {
2446
+ let boldedText2 = function() {
2447
+ const str = ribbon.text.toLowerCase();
2448
+ return str[0].toUpperCase() + str.slice(1);
2449
+ };
2450
+ var boldedText = boldedText2;
2451
+ div.append("div").style("margin", "20px").html(`<p style="display:inline-block;font-weight:bold">${boldedText2()}: &nbsp</p>${text}`);
2452
+ }
2453
+ } else if (text != void 0 && text) {
2454
+ div.append("div").style("margin", "20px").html(text);
2455
+ }
2456
+ }
2457
+ function addButtons(buttons, div) {
2458
+ if (buttons) {
2459
+ buttons.forEach((button) => {
2460
+ const sandboxButton = makeButton({ div, text: button.name });
2461
+ sandboxButton.on("click", (event) => {
2462
+ event.stopPropagation();
2463
+ if (button.download) window.open(`${button.download}`, "_self", "download");
2464
+ else window.open(`${button.link}`, `${button.name}`);
2465
+ });
2466
+ });
2467
+ }
2468
+ }
2469
+ function makeArrowButtons(arrows, btns) {
2470
+ if (arrows) {
2471
+ arrows.forEach((arrow) => {
2472
+ const contents = `<div style="margin:10px;" class="sjpp-arrow-content">
2473
+ ${arrow.message ? `<div style="margin: 1vw;">${arrow.message}</div>` : ""}
2474
+ ${arrow.links ? arrow.links.map((hyperlink) => {
2475
+ if (!hyperlink) return "";
2476
+ if (hyperlink.download) {
2477
+ return `<a style="cursor:pointer; margin-left:20px;" onclick="event.stopPropagation();" href="${hyperlink.download}", target="_self" download>${hyperlink.name}</a>`;
2478
+ }
2479
+ if (hyperlink.link) {
2480
+ return `<a style="cursor:pointer; margin-left:20px;" onclick="event.stopPropagation();" href="${hyperlink.link}", target="_blank">${hyperlink.name}</a>`;
2481
+ }
2482
+ }).join("") : ""}</div>`;
2483
+ btns.push({
2484
+ name: arrow.name,
2485
+ callback: async (rdiv) => {
2486
+ try {
2487
+ rdiv.append("div").html(contents);
2488
+ } catch (e) {
2489
+ alert("Error: " + e);
2490
+ }
2491
+ }
2492
+ });
2493
+ });
2494
+ }
2495
+ }
2496
+ async function addArrowBtns(args, type, bdiv, rdiv, pageArgs) {
2497
+ let btns = [];
2498
+ if (type == "call") showCode(args, btns);
2499
+ const genome = args?.runargs?.genome;
2500
+ if (args.datapreview && genome) showViewData(btns, args.datapreview, genome);
2501
+ if (args.citation || args.data_source) {
2502
+ const res = await dofetch3(`/${pageArgs.app.cardsPath}/citations.json`);
2503
+ if (res.error) {
2504
+ console.error(`Error: ${res.error}`);
2505
+ return;
2506
+ }
2507
+ for (const pub of res.publications) {
2508
+ if (args.citation == pub.id || args.data_source == pub.id) {
2509
+ const label = args.data_source ? "Data Source" : "Citation";
2510
+ showCitation(btns, pub, label);
2511
+ }
2512
+ }
2513
+ }
2514
+ makeArrowButtons(args.arrowButtons, btns);
2515
+ const active_btn = btns.findIndex((b) => b.active) == -1 ? false : true;
2516
+ for (let i = 0; i < btns.length; i++) {
2517
+ const btn = btns[i];
2518
+ btn.btn = makeButton({ div: bdiv, text: btn.name + " \u25BC" });
2519
+ btn.c = rdiv.append("div").style("margin", "20px 0px 10px 20px").style("display", active_btn && i == 0 || btn.active ? "block" : "none");
2520
+ if (active_btn && i == 0 && btn.callback || btn.active) {
2521
+ btn.callback(btn.c);
2522
+ delete btn.callback;
2523
+ }
2524
+ btn.btn.on("click", () => {
2525
+ if (btn.c.style("display") != "none") {
2526
+ btn.btn.text(btn.name + " \u25BC").style("color", "black").style("background-color", "#cfe2f3");
2527
+ btn.c.style("display", "none");
2528
+ } else {
2529
+ btn.btn.text(btn.name + " \u25B2").style("color", "whitesmoke").style("background-color", "#487ba8");
2530
+ appear(btn.c);
2531
+ for (let j = 0; j < btns.length; j++) {
2532
+ if (i != j) {
2533
+ btns[j].btn.text(btns[j].name + " \u25BC").style("color", "black").style("background-color", "#cfe2f3");
2534
+ btns[j].c.style("display", "none");
2535
+ }
2536
+ }
2537
+ }
2538
+ if (btn.callback) {
2539
+ btn.callback(btn.c);
2540
+ delete btn.callback;
2541
+ }
2542
+ });
2543
+ }
2544
+ }
2545
+ function showURLLaunch(urlparam, div, section) {
2546
+ if (!urlparam) return;
2547
+ const URLbtn = makeButton({ div, text: section == "apps" ? "Run app from URL" : "Run track from URL" });
2548
+ URLbtn.on("click", (event) => {
2549
+ const hostURL = getHostURL();
2550
+ event.stopPropagation();
2551
+ window.open(`${hostURL}${urlparam}`, "_blank");
2552
+ });
2553
+ }
2554
+ function makeDataDownload(download, div, section) {
2555
+ if (!download) return;
2556
+ const dataBtn = makeButton({
2557
+ div,
2558
+ text: section == "apps" ? "Download App File(s)" : "Download Track File(s)"
2559
+ });
2560
+ dataBtn.on("click", (event) => {
2561
+ event.stopPropagation();
2562
+ window.open(`${download}`, "_self", "download");
2563
+ });
2564
+ }
2565
+ async function showCode(ppcalls, btns) {
2566
+ if (ppcalls.isUi == true) return;
2567
+ const runppCode = core_default.highlight(
2568
+ `runproteinpaint({
2569
+ host: "${sessionStorage.getItem("hostURL")}",
2570
+ holder: document.getElementById('a'),
2571
+ ` + // Fix for first argument not properly appearing underneath holder
2572
+ JSON.stringify(ppcalls.runargs, "", 4).replaceAll(/"(.+)"\s*:/g, "$1:").replaceAll(/\\t/g, " ").replaceAll(/\\n/g, "\r ").slice(1, -1).trim() + `\r})`,
2573
+ { language: "javascript" }
2574
+ ).value;
2575
+ const runppContents = `<pre style="border: 1px solid #d7d7d9; align-items: center; justify-content: center; margin: 0px 10px 5px 30px; overflow:auto; max-height:400px; ${ppcalls.jsonpath ? `min-height:400px;` : `min-height: auto;`}">
2576
+ <code style="font-size:14px; display:block;">${runppCode}</code></pre>`;
2577
+ btns.push({
2578
+ name: "Code",
2579
+ callback: async (rdiv) => {
2580
+ try {
2581
+ if (ppcalls.jsonpath) {
2582
+ const includeJson = await showJsonCode(ppcalls);
2583
+ const runppHeader = "<p style='margin:20px 5px 20px 25px;'>ProteinPaint JS code</p>";
2584
+ const grid = rdiv.append("div").style("display", "grid").style("grid-template-columns", "repeat(auto-fit, minmax(100px, 1fr))").style("gap", "5px");
2585
+ grid.append("div").style("display", "block").html(runppHeader + runppContents);
2586
+ grid.append("div").style("display", "block").html(includeJson);
2587
+ } else {
2588
+ rdiv.append("div").html(runppContents);
2589
+ }
2590
+ } catch (e) {
2591
+ alert("Error: " + e);
2592
+ }
2593
+ }
2594
+ });
2595
+ }
2596
+ async function showJsonCode(ppcalls) {
2597
+ const jsondata = await dofetch("textfile", { file: ppcalls.jsonpath });
2598
+ const json_code = JSON.parse(jsondata.text);
2599
+ const splitpath = ppcalls.jsonpath.split("/");
2600
+ const filename = splitpath[splitpath.length - 1];
2601
+ let lines = JSON.stringify(json_code, "", 4).split("\n");
2602
+ let slicedjson;
2603
+ if (lines.length > 120) {
2604
+ lines = lines.slice(0, 100);
2605
+ slicedjson = true;
2606
+ }
2607
+ const code = core_default.highlight(lines.join("\n"), { language: "json" }).value;
2608
+ const json_contents = `<div>
2609
+ <p style="margin: 20px 5px 20px 25px; display: inline-block;">JSON code </p>
2610
+ <p style="display: inline-block; color: #696969; font-style:oblique;"> (contents of ${filename})</p>
2611
+ </div>
2612
+ <pre style="border: 1px solid #d7d7d9; align-items: center; justify-content: center; margin: 0px 10px 5px 10px; max-height:400px; min-height:400px; overflow:auto;">
2613
+ <code class="sjpp-json-code" style="font-size:14px; display:block;">${slicedjson == true ? `${code} ...<br><p style='margin:20px 25px; justify-content:center;'>Showing first 100 lines. To see the entire JSON, download ${filename} from the button above.</p>` : `${code}`}
2614
+ </code>
2615
+ </pre>`;
2616
+ return json_contents;
2617
+ }
2618
+ function showCitation(btns, pub, label) {
2619
+ btns.push({
2620
+ name: label,
2621
+ callback: async (rdiv) => {
2622
+ try {
2623
+ rdiv.append("div").style("margin-left", "5w").html(
2624
+ `<span style="display: inline-block;">${pub.title}. <em>${pub.journal}</em>, ${pub.year}.
2625
+ ${pub.pmid ? ` PMID: <a href="${pub.pmidURL}" target="${pub.pmid}">${pub.pmid}</a>` : ` doi: <a href="${pub.doi}" target="${pub.doi}">${pub.doi}</a>`}</span>`
2626
+ );
2627
+ } catch (e) {
2628
+ alert("Error: " + e);
2629
+ }
2630
+ }
2631
+ });
2632
+ }
2633
+ function makeDataPreviewDiv(content, contLength, div, filename, message) {
2634
+ div.append("div").html(`
2635
+ ${message ? `<p style="display:block;">${message}<p>` : ""}
2636
+ <p style="display: inline-block;">Data preview <span style="color: #696969; font-style:oblique;">
2637
+ ${contLength > 10 ? `(first ${content.length} rows of ${filename})</span></p>` : `(content of ${filename})</span></p>`}
2638
+ `);
2639
+ const bedjContent_div = div.append("div").style("display", "grid").style("grid-template-columns", "1fr").style("max-width", "80%").style("margin-left", "10px").style("border", "1px solid rgb(227, 227, 230)").style("white-space", "pre").style("overflow-x", "scroll").style("opacity", "0.65").style("padding", "1vw");
2640
+ content.forEach((c) => {
2641
+ bedjContent_div.append("code").html(c);
2642
+ });
2643
+ }
2644
+ async function showViewData(btns, data, genome) {
2645
+ btns.push({
2646
+ name: "View Data",
2647
+ callback: async (rdiv) => {
2648
+ try {
2649
+ for (const file of data) {
2650
+ const res = await dofetch3("cardsjson", {
2651
+ body: { datafile: file.file, genome, tabixCoord: file.tabixQueryCoord }
2652
+ });
2653
+ if (res.error) {
2654
+ console.error(`Error: ${res.error}`);
2655
+ rdiv.text(`Error retrieving example data: ${res.error}`);
2656
+ return;
2657
+ }
2658
+ const returnedContent = res.file;
2659
+ const contLength = returnedContent.length;
2660
+ const content = returnedContent.slice(0, 10);
2661
+ const splitpath = file.file.split("/");
2662
+ const filename = splitpath[splitpath.length - 1];
2663
+ makeDataPreviewDiv(content, contLength, rdiv, filename, file.message);
2664
+ }
2665
+ } catch (e) {
2666
+ alert("Error: " + e);
2667
+ }
2668
+ }
2669
+ });
2670
+ }
2671
+ async function openDatasetButtonSandbox(elem, pageArgs, res, sandboxDiv) {
2672
+ if (elem.sandboxHtml) {
2673
+ const renderHtml = await res.text();
2674
+ return sandboxDiv.body.append("div").style("line-height", "1.5em").style("padding", "1.5em 1.5em 2em 1.5em").html(renderHtml);
2675
+ }
2676
+ const genome = pageArgs?.fromApp ? pageArgs.genomes[res.button.availableGenomes[0]] : pageArgs.app.opts.genomes[res.button.availableGenomes[0]];
2677
+ let genomes;
2678
+ if (res.button.runargs.host) {
2679
+ genomes = await getGenomes(res.button.runargs.host);
2680
+ } else genomes = pageArgs?.fromApp ? pageArgs.genomes : pageArgs.app.opts.genomes;
2681
+ const par = {
2682
+ // First genome in .availableGenomes is the default
2683
+ availableGenomes: res.button.availableGenomes,
2684
+ genome,
2685
+ intro: res.button.intro,
2686
+ name: res.button.name,
2687
+ runargs: res.button.runargs,
2688
+ searchBar: res.button.searchBar,
2689
+ dsURLparam: res.button.dsURLparam,
2690
+ citation: res.citation_id
2691
+ };
2692
+ const mainDiv = sandboxDiv.body.append("div").style("padding", "1em").style("border-bottom", "1px solid #d0e3ff");
2693
+ if (par.citation) {
2694
+ const buttonsDiv = mainDiv.append("div").style("margin-bottom", "20px");
2695
+ const buttonsContentDiv = mainDiv.append("div");
2696
+ await addArrowBtns(par, "main", buttonsDiv, buttonsContentDiv, pageArgs);
2697
+ }
2698
+ if (par.intro) {
2699
+ mainDiv.append("div").style("line-height", "1.5em").style("padding", "0.5em 0.5em 1em 0.5em").html(par.intro);
2700
+ }
2701
+ if (par.searchBar == "none") {
2702
+ const originalURL = sessionStorage.getItem("hostURL");
2703
+ const runppArg = {
2704
+ holder: sandboxDiv.body.append("div").style("margin", "20px").style("overflow-x", "auto").node(),
2705
+ host: par.runargs.host || originalURL
2706
+ };
2707
+ const callpp = JSON.parse(JSON.stringify(par.runargs));
2708
+ await runproteinpaint(Object.assign(runppArg, callpp));
2709
+ if (originalURL != sessionStorage.getItem("hostURL")) sessionStorage.setItem("hostURL", originalURL);
2710
+ return;
2711
+ }
2712
+ if (par.availableGenomes.length > 1) addDatasetGenomeBtns(mainDiv, genomes);
2713
+ else {
2714
+ mainDiv.append("div").style("display", "inline-block").style("margin-left", "20px").style("color", "rgb(117, 115, 115)").text(par.availableGenomes[0]);
2715
+ }
2716
+ const searchBarDiv = mainDiv.append("div").style("display", "inline-block").style("padding", "0.5em");
2717
+ const allResultsDiv = sandboxDiv.body.append("div").style("max-width", "90vw");
2718
+ const coords = addGeneSearchbox({
2719
+ genome: par.genome,
2720
+ tip: new Menu({ padding: "" }),
2721
+ row: searchBarDiv,
2722
+ searchOnly: par.searchBar == "gene" ? "gene" : "",
2723
+ focusOff: true,
2724
+ callback: async (div) => {
2725
+ const resultDiv = allResultsDiv.insert("div", ":first-child").style("max-width", "90vw").style("margin", "1vw");
2726
+ resultDiv.append("div").style("display", "inline-block").style("cursor", "default").style("margin", "0px").style("font-size", "1.5em").html("&times;").on("click", () => {
2727
+ resultDiv.selectAll("*").remove();
2728
+ });
2729
+ makeURLbutton(resultDiv, coords, par);
2730
+ const runppArg = {
2731
+ holder: resultDiv.append("div").style("margin", "20px").node(),
2732
+ host: sessionStorage.getItem("hostURL"),
2733
+ genome: par.genome.name
2734
+ };
2735
+ par.runargs.block == true ? (runppArg.position = `${coords.chr}:${coords.start}-${coords.stop}`) && (runppArg.nativetracks = "Refgene") : runppArg.gene = coords.geneSymbol;
2736
+ const callpp = JSON.parse(JSON.stringify(par.runargs));
2737
+ runproteinpaint(Object.assign(runppArg, callpp));
2738
+ }
2739
+ });
2740
+ function addDatasetGenomeBtns(div, genomes2) {
2741
+ div.append("div").style("display", "inline-block").style("padding", "10px 10px 0px 20px");
2742
+ const btns = [];
2743
+ par.availableGenomes.forEach((genome2) => {
2744
+ btns.push({
2745
+ label: genome2,
2746
+ callback: (event, tab) => {
2747
+ par.genome = genomes2[genome2];
2748
+ }
2749
+ });
2750
+ });
2751
+ new Tabs({ holder: div, tabs: btns, noContent: true }).main();
2752
+ }
2753
+ }
2754
+ function makeURLbutton(div, coords, par) {
2755
+ const URLbtn = makeButton({ div, text: "Run Result from URL" });
2756
+ const blockOn = par.runargs.block == true ? `position=${coords.chr}:${coords.start}-${coords.stop}` : `gene=${coords.geneSymbol}`;
2757
+ URLbtn.on("click", (event) => {
2758
+ event.stopPropagation();
2759
+ const hostURL = getHostURL();
2760
+ window.open(`${hostURL}/?genome=${par.genome.name}&${blockOn}&${par.dsURLparam}`, "_blank");
2761
+ });
2762
+ }
2763
+ function getHostURL() {
2764
+ const hostURL = sessionStorage.getItem("hostURL");
2765
+ if (hostURL.startsWith("http://localhost") || hostURL.startsWith("https://pp")) {
2766
+ return hostURL;
2767
+ } else return "https://proteinpaint.stjude.org";
2768
+ }
2769
+ async function getGenomes(host) {
2770
+ const genomeURL = `${host}/genomes?embedder=${sessionStorage.getItem("hostURL").replace(/^https?:\/\//, "")}`;
2771
+ try {
2772
+ const response = await fetch(genomeURL);
2773
+ if (!response.ok) throw new Error(`HTTP Response error for genomes url ${response.status}`);
2774
+ const data = await response.json();
2775
+ return data;
2776
+ } catch (e) {
2777
+ console.error(`Error fetching genomes: ${e} from ${genomeURL}`);
2778
+ return null;
2779
+ }
2780
+ }
2781
+
2782
+ export {
2783
+ makeButton,
2784
+ openSandbox
2785
+ };
2786
+ //# sourceMappingURL=chunk-GXKVAPGP.js.map