@burakboduroglu/nors 0.1.2 → 0.1.4

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 (92) hide show
  1. package/README.md +7 -4
  2. package/bin/nors.js +4 -1
  3. package/package.json +1 -1
  4. package/pb_hooks/nors.pb.js +4 -1
  5. package/pb_public/nors/assets/{abnfDiagram-VCTEODGH-BjNTd20L.js → abnfDiagram-VCTEODGH-DNndQzWL.js} +1 -1
  6. package/pb_public/nors/assets/architecture-7GRP2DOG-CRalLC6q.js +1 -0
  7. package/pb_public/nors/assets/{architectureDiagram-5GKGNRK7-DFNV5SNP.js → architectureDiagram-5GKGNRK7-DvzC6fQm.js} +1 -1
  8. package/pb_public/nors/assets/{blockDiagram-I7D4REHJ-DNijD6G8.js → blockDiagram-I7D4REHJ-BFaVhNuD.js} +1 -1
  9. package/pb_public/nors/assets/{c4Diagram-7LVT6UL2-DLW_Vk73.js → c4Diagram-7LVT6UL2-DTMycEah.js} +1 -1
  10. package/pb_public/nors/assets/channel-Cd0UXp2x.js +1 -0
  11. package/pb_public/nors/assets/{chunk-4HAMMTFA-CQW8auRW.js → chunk-4HAMMTFA-Cvo56g-z.js} +1 -1
  12. package/pb_public/nors/assets/{chunk-75Z2AOVW-OUM6F-Z2.js → chunk-75Z2AOVW-LW4FaixB.js} +1 -1
  13. package/pb_public/nors/assets/{chunk-DU6HZSFF-DdkkHC2K.js → chunk-DU6HZSFF-DryrSPb1.js} +1 -1
  14. package/pb_public/nors/assets/{chunk-F27PBJKO-D4tBKW95.js → chunk-F27PBJKO-C_xYca_6.js} +1 -1
  15. package/pb_public/nors/assets/{chunk-GMAD6QVW-CZU7s-_u.js → chunk-GMAD6QVW-Cp7hNYJZ.js} +1 -1
  16. package/pb_public/nors/assets/{chunk-GVQU2GXP-BQGI6BgU.js → chunk-GVQU2GXP-C_cC2nJk.js} +1 -1
  17. package/pb_public/nors/assets/{chunk-IMKFNOWR-BRvu8wxF.js → chunk-IMKFNOWR-qof_NoSn.js} +1 -1
  18. package/pb_public/nors/assets/{chunk-L3NEJ4N5-OjXnRmPt.js → chunk-L3NEJ4N5-C5_1i29s.js} +1 -1
  19. package/pb_public/nors/assets/{chunk-OSK3NFVY-puWVIqFn.js → chunk-OSK3NFVY-X_U_SaBm.js} +1 -1
  20. package/pb_public/nors/assets/{chunk-P2QGCYS3-BH6JrbP_.js → chunk-P2QGCYS3-VWs361To.js} +1 -1
  21. package/pb_public/nors/assets/{chunk-POPQ4Y6H-XJIxFdlK.js → chunk-POPQ4Y6H-D8oFfj_L.js} +1 -1
  22. package/pb_public/nors/assets/{chunk-PWAF6VOD-B__l-VgZ.js → chunk-PWAF6VOD-DQEgoOPv.js} +1 -1
  23. package/pb_public/nors/assets/{chunk-SHT3W25Y-B8vLWnR_.js → chunk-SHT3W25Y-tCDON2-U.js} +1 -1
  24. package/pb_public/nors/assets/{chunk-SVP7TREG-Cjv1tk7U.js → chunk-SVP7TREG-C31OP90L.js} +1 -1
  25. package/pb_public/nors/assets/{chunk-TICWLB2K-B5znima5.js → chunk-TICWLB2K-DXTAHHwe.js} +1 -1
  26. package/pb_public/nors/assets/classDiagram-ZZMXUADV-DaK4uxjZ.js +1 -0
  27. package/pb_public/nors/assets/classDiagram-v2-VYDZK3BY-DaK4uxjZ.js +1 -0
  28. package/pb_public/nors/assets/{cynefin-OW5HDTMX-CG0jDjpt.js → cynefin-OW5HDTMX-CNJq1lyc.js} +1 -1
  29. package/pb_public/nors/assets/{cynefinDiagram-5FMLGOSQ-C_Ir6oea.js → cynefinDiagram-5FMLGOSQ-CRHccJD4.js} +1 -1
  30. package/pb_public/nors/assets/{dagre-GXQ25YYZ-D8QhYxWu.js → dagre-GXQ25YYZ-BL5fkZKb.js} +1 -1
  31. package/pb_public/nors/assets/{diagram-S7CK7UJ4-BpLSV2IE.js → diagram-S7CK7UJ4-DZHxwPG5.js} +1 -1
  32. package/pb_public/nors/assets/{diagram-UQ7AKVKN-CZdWRYnI.js → diagram-UQ7AKVKN-Z0HadPCT.js} +1 -1
  33. package/pb_public/nors/assets/{diagram-VSXAHHWV-DumOz0aB.js → diagram-VSXAHHWV-CylZhSqd.js} +1 -1
  34. package/pb_public/nors/assets/{diagram-VX7I27RA-FEvMg4vC.js → diagram-VX7I27RA-BANNUIaD.js} +1 -1
  35. package/pb_public/nors/assets/{diagram-Z3DM3KII-B0wSI-7M.js → diagram-Z3DM3KII-DCZptWai.js} +1 -1
  36. package/pb_public/nors/assets/{ebnfDiagram-PWID7BFC-DnVv0Jr0.js → ebnfDiagram-PWID7BFC-C1mpuM8s.js} +1 -1
  37. package/pb_public/nors/assets/{erDiagram-RLTQ6QDP-DRrBeVO-.js → erDiagram-RLTQ6QDP-Z_Ata3eY.js} +1 -1
  38. package/pb_public/nors/assets/eventmodeling-NTZA5JFV-C5A3kkE1.js +1 -0
  39. package/pb_public/nors/assets/flowDiagram-HODETNUW-_tgNpani.js +1 -0
  40. package/pb_public/nors/assets/{ganttDiagram-EL5Y4UJY-Boo75Thn.js → ganttDiagram-EL5Y4UJY-DKK8_Wf4.js} +1 -1
  41. package/pb_public/nors/assets/{gitGraph-4MIJSDKK-DkHL0Vmb.js → gitGraph-4MIJSDKK-BhUCE0ML.js} +1 -1
  42. package/pb_public/nors/assets/{gitGraphDiagram-WWUBYQGX-BxbzXOHt.js → gitGraphDiagram-WWUBYQGX-D48svfM6.js} +1 -1
  43. package/pb_public/nors/assets/index-BoqKEmPH.css +1 -0
  44. package/pb_public/nors/assets/index-DvF8sdFd.js +82 -0
  45. package/pb_public/nors/assets/{info-A6RAGUB7-Dm0lTq1F.js → info-A6RAGUB7-DnYeGjcU.js} +1 -1
  46. package/pb_public/nors/assets/{infoDiagram-27XIBGKW-DqVr5vns.js → infoDiagram-27XIBGKW-7hyugKrX.js} +1 -1
  47. package/pb_public/nors/assets/{ishikawaDiagram-5VMMS53U-D9UPVhhC.js → ishikawaDiagram-5VMMS53U-C9SEgyFD.js} +1 -1
  48. package/pb_public/nors/assets/{journeyDiagram-3NMN7TZE-B_TT0UBS.js → journeyDiagram-3NMN7TZE-DInvra38.js} +1 -1
  49. package/pb_public/nors/assets/{kanban-definition-UXKFOSKX-CYxipC8k.js → kanban-definition-UXKFOSKX-DVg-vBIX.js} +1 -1
  50. package/pb_public/nors/assets/{line-CeGn86Ww.js → line-yFFq1TcN.js} +1 -1
  51. package/pb_public/nors/assets/{mermaid-parser.core-Bh2pMn-f.js → mermaid-parser.core-cDotXjEj.js} +3 -3
  52. package/pb_public/nors/assets/{mermaid.core-CL8sN1KK.js → mermaid.core-Cjiz9dvF.js} +4 -4
  53. package/pb_public/nors/assets/{mindmap-definition-YA3MSWOX-DACQFk4_.js → mindmap-definition-YA3MSWOX-zyjedg88.js} +1 -1
  54. package/pb_public/nors/assets/{packet-AYTQ26CC-6s6XRIHO.js → packet-AYTQ26CC-C_-vJgPl.js} +1 -1
  55. package/pb_public/nors/assets/{pegDiagram-XKGWAZYB-3cpO6gJW.js → pegDiagram-XKGWAZYB-BntIuEmE.js} +1 -1
  56. package/pb_public/nors/assets/{pie-WAS4IAKB-BNoU8wOh.js → pie-WAS4IAKB-B5QJCFjh.js} +1 -1
  57. package/pb_public/nors/assets/{pieDiagram-E7YTZNPT-BCVRuVsN.js → pieDiagram-E7YTZNPT-dYkNcl9u.js} +1 -1
  58. package/pb_public/nors/assets/{quadrantDiagram-AXDQQJYC-B5ib9c-g.js → quadrantDiagram-AXDQQJYC-CDkWdw25.js} +1 -1
  59. package/pb_public/nors/assets/{radar-RG4KPBEZ-7fT-y4bj.js → radar-RG4KPBEZ-CH7LBkdl.js} +1 -1
  60. package/pb_public/nors/assets/{railroad-74A4TZTK-DfD5x0yO.js → railroad-74A4TZTK-DTc6Dm-U.js} +1 -1
  61. package/pb_public/nors/assets/railroad-abnf-HS5TGJTU-CANOerR9.js +1 -0
  62. package/pb_public/nors/assets/railroad-ebnf-LZEXJU2U-B61JFSxw.js +1 -0
  63. package/pb_public/nors/assets/railroad-peg-WCYAUIDC-lb0eaawO.js +1 -0
  64. package/pb_public/nors/assets/{railroadDiagram-O6MQD6OU-JtCr1lo_.js → railroadDiagram-O6MQD6OU-CUpL471x.js} +1 -1
  65. package/pb_public/nors/assets/{requirementDiagram-BXWQKSXE-BqStJCDF.js → requirementDiagram-BXWQKSXE-BiaNiOAt.js} +1 -1
  66. package/pb_public/nors/assets/{sankeyDiagram-P5KCCOFB-CX_LZnAD.js → sankeyDiagram-P5KCCOFB-B-o3klA-.js} +1 -1
  67. package/pb_public/nors/assets/{sequenceDiagram-WJ2MYXX4-BCudH1Kz.js → sequenceDiagram-WJ2MYXX4-38rNDJ8n.js} +1 -1
  68. package/pb_public/nors/assets/{stateDiagram-D77RDMKH-rGlSUlYz.js → stateDiagram-D77RDMKH-D0jikw7s.js} +1 -1
  69. package/pb_public/nors/assets/stateDiagram-v2-MP3YSRHH-B4oJB7Xx.js +1 -0
  70. package/pb_public/nors/assets/{swimlanes-42K2YHIH-DKvSloZp.js → swimlanes-42K2YHIH-Df5twpLQ.js} +1 -1
  71. package/pb_public/nors/assets/swimlanesDiagram-VR7AAH4N-GIWyLX6a.js +8 -0
  72. package/pb_public/nors/assets/{timeline-definition-24CTP7MA-CELuFcfA.js → timeline-definition-24CTP7MA-GVU127eA.js} +1 -1
  73. package/pb_public/nors/assets/{treeView-Q6P3EWNA-D5E6rNip.js → treeView-Q6P3EWNA-BRGYhv4N.js} +1 -1
  74. package/pb_public/nors/assets/{treemap-WGGIJYW6-CdXHwdKK.js → treemap-WGGIJYW6-BadhmEqA.js} +1 -1
  75. package/pb_public/nors/assets/{vennDiagram-4TSXK5OY-ByJmWaze.js → vennDiagram-4TSXK5OY-ovFvZB1s.js} +1 -1
  76. package/pb_public/nors/assets/{wardley-WFR3VGLG-Bb28LKxc.js → wardley-WFR3VGLG-_TLVxueV.js} +1 -1
  77. package/pb_public/nors/assets/{wardleyDiagram-VM6X3IG4-CZbfB95E.js → wardleyDiagram-VM6X3IG4-k-pgEIG4.js} +1 -1
  78. package/pb_public/nors/assets/{xychartDiagram-S5SC5T6Z-BzhKhU_k.js → xychartDiagram-S5SC5T6Z-CrZyCR-2.js} +1 -1
  79. package/pb_public/nors/index.html +2 -2
  80. package/pb_public/nors/assets/architecture-7GRP2DOG-CszbBaLG.js +0 -1
  81. package/pb_public/nors/assets/channel-BBJC6jlq.js +0 -1
  82. package/pb_public/nors/assets/classDiagram-ZZMXUADV-CflNlJhy.js +0 -1
  83. package/pb_public/nors/assets/classDiagram-v2-VYDZK3BY-CflNlJhy.js +0 -1
  84. package/pb_public/nors/assets/eventmodeling-NTZA5JFV-CHTuxREV.js +0 -1
  85. package/pb_public/nors/assets/flowDiagram-HODETNUW-GyQBSUMm.js +0 -1
  86. package/pb_public/nors/assets/index-B1thqj8h.css +0 -1
  87. package/pb_public/nors/assets/index-CHyIcFAa.js +0 -71
  88. package/pb_public/nors/assets/railroad-abnf-HS5TGJTU-b8Cz753z.js +0 -1
  89. package/pb_public/nors/assets/railroad-ebnf-LZEXJU2U-B_O77J7F.js +0 -1
  90. package/pb_public/nors/assets/railroad-peg-WCYAUIDC-DY-15zgB.js +0 -1
  91. package/pb_public/nors/assets/stateDiagram-v2-MP3YSRHH-BYqH8M1b.js +0 -1
  92. package/pb_public/nors/assets/swimlanesDiagram-VR7AAH4N-XbCiub0l.js +0 -8
@@ -0,0 +1 @@
1
+ html,body,#root{height:100%}.mermaid-frame{border:1px solid color-mix(in srgb, var(--accent) 20%, var(--line));background:radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 52%), var(--panel);border-radius:10px;max-width:100%;margin:1.5rem 0;overflow:hidden}.mermaid-bar{border-bottom:1px solid var(--line);min-height:38px;color:var(--muted);letter-spacing:.065em;text-transform:uppercase;justify-content:space-between;align-items:center;gap:1rem;padding:0 .85rem;font-size:.68rem;font-weight:650;display:flex}.mermaid-label{color:var(--tint)}.mermaid-zoom{font:inherit;letter-spacing:.03em;text-transform:none;color:var(--muted);border:1px solid var(--line);cursor:pointer;background:0 0;border-radius:6px;min-width:0;height:auto;min-height:0;padding:.25rem .6rem;font-size:.72rem;font-weight:600}.mermaid-zoom:hover{color:var(--accent);border-color:color-mix(in srgb, var(--accent) 45%, var(--line));background:0 0}.mermaid-zoom[aria-pressed=true]{color:var(--accent);border-color:color-mix(in srgb, var(--accent) 45%, var(--line))}.mermaid-viewport{max-width:100%;padding:1rem;overflow:hidden}.mermaid-viewport:focus-visible{outline-offset:-3px}.mermaid-viewport svg{margin:0 auto;display:block;width:100%!important;max-width:100%!important;height:auto!important}.mermaid-frame.zoomed .mermaid-viewport{overscroll-behavior-inline:contain;scrollbar-width:thin;overflow-x:auto}.mermaid-frame.zoomed .mermaid-viewport svg{width:1400px!important;max-width:none!important}.mermaid-viewport .nodeLabel,.mermaid-viewport .edgeLabel,.mermaid-viewport .label,.mermaid-viewport text{font-family:IBM Plex Sans,Segoe UI,system-ui,sans-serif!important}.mermaid-viewport .edgeLabel{color:var(--ink)!important;background:var(--panel)!important}.mermaid-frame.is-loading .mermaid-zoom,.mermaid-frame.has-error .mermaid-zoom{display:none}.mermaid-error{margin:0 0 .75rem;font-size:.85rem;color:var(--danger)!important}.mermaid-frame.has-error pre{background:var(--bg);margin:0}:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0b0d10;--panel:#12151a;--ink:#e8eef5;--muted:#8b98a8;--accent:#6ec8ff;--tint:#b9e4ff;--line:#1e2430;--danger:#ff7b7b;background:var(--bg);color:var(--ink);font-family:IBM Plex Sans,Segoe UI,system-ui,sans-serif;line-height:1.45}*{box-sizing:border-box}body{background:var(--bg);min-height:100vh;margin:0}.shell{max-width:960px;margin:0 auto;padding:1.25rem 1rem 3rem}.top{justify-content:space-between;align-items:center;margin-bottom:1.5rem;display:flex}.brand{color:inherit;align-items:center;gap:.7rem;text-decoration:none;display:flex}.brand img{border-radius:7px;flex:none;width:30px;height:30px}.brand h1{letter-spacing:-.01em;margin:0;font-size:1.2rem;font-weight:650}.center-page{justify-content:center;align-items:center;min-height:70vh;display:flex}.login{background:var(--panel);border:1px solid var(--line);border-radius:8px;gap:.75rem;width:100%;max-width:360px;margin:0 auto;padding:1.25rem;display:grid}.login h2{margin:0}.login label{color:var(--muted);gap:.35rem;font-size:.85rem;display:grid}.login input{border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:6px;padding:.55rem .65rem}button,.button-link,.view-link{border:1px solid color-mix(in srgb, var(--accent) 48%, var(--line));background:var(--panel);height:40px;min-height:40px;color:var(--tint);white-space:nowrap;cursor:pointer;border-radius:6px;justify-content:center;align-items:center;gap:8px;padding:0 14px;font-family:inherit;font-size:14px;font-weight:600;line-height:1;text-decoration:none;display:inline-flex}button:hover,.button-link:hover,.view-link:hover{background:color-mix(in srgb, var(--panel) 82%, var(--accent))}button>svg,.button-link>svg,.view-link>svg{flex:none;width:16px;height:16px}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}.spin{animation-duration:1.6s!important}}button:disabled{opacity:.6;cursor:wait}button.ghost{background:var(--panel);color:var(--ink);border:1px solid var(--line)}button.icononly{justify-content:center;align-items:center;width:36px;height:36px;min-height:36px;padding:0;display:inline-flex}button.muted{background:var(--panel);color:var(--ink);border:1px solid var(--line);font-weight:550}.tabs{flex-wrap:wrap;gap:.5rem;margin:0 0 1rem;display:flex}.tabs button{background:var(--panel);height:34px;min-height:34px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:0 13px;font-size:13px;font-weight:500}.tabs button.on{color:var(--tint);border-color:var(--accent)}.hint,.empty{color:var(--muted);font-size:.9rem}.error{color:var(--danger);margin:0;font-size:.85rem}.toast-region{z-index:200;pointer-events:none;width:min(380px,100vw - 2rem);position:fixed;top:1rem;right:1rem}.toast{border:1px solid var(--line);background:color-mix(in srgb, var(--panel) 94%, black);min-height:52px;color:var(--ink);pointer-events:auto;border-radius:9px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.7rem;padding:.65rem .65rem .65rem .85rem;font-size:.88rem;line-height:1.4;animation:.16s ease-out toast-in;display:grid;box-shadow:0 14px 38px #000a}.toast-error{border-color:color-mix(in srgb, var(--danger) 42%, var(--line))}.toast-error>svg{color:var(--danger);flex:none}button.toast-close{width:32px;height:32px;min-height:32px;color:var(--muted);background:0 0;border-color:#0000;padding:0}button.toast-close:hover{border-color:var(--line);background:var(--bg);color:var(--ink)}@keyframes toast-in{0%{opacity:0;transform:translateY(-6px)}}.dash-head{justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex}.dash-head h2{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin:0;font-size:1rem;font-weight:500}.cards{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.75rem;margin:0;padding:0;list-style:none;display:grid}.card{background:var(--panel);border:1px solid var(--line);border-radius:8px;min-height:140px;padding:.9rem 1rem;display:flex}.card.pinned{border-color:color-mix(in srgb, var(--accent) 45%, var(--line))}.card.draft{opacity:.85}.card-top{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);justify-content:space-between;gap:.5rem;margin-bottom:.4rem;font-size:.7rem;display:flex}.card h3{margin:0 0 .35rem;font-size:1.05rem}.card p{color:var(--muted);margin:0 0 .75rem;font-size:.9rem}.slug{border-top:1px solid var(--line);width:100%;color:var(--accent);margin-top:auto;padding-top:.7rem;font-size:.75rem;display:block}.card-flags{align-items:center;gap:.45rem;display:inline-flex}.card-pin{color:var(--accent);display:inline-flex}.card-pin svg{width:14px;height:14px}.row{align-items:center;gap:.5rem;display:flex}.card-link{height:100%;color:inherit;flex-direction:column;flex:1;text-decoration:none;display:flex}.crumbs{flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:1rem;display:flex}.crumbs a{color:var(--accent);text-decoration:none}.crumbs .spacer{flex:1}.editor-nav{gap:.4rem}.view-link{border:1px solid color-mix(in srgb, var(--accent) 32%, var(--line));background:var(--panel);color:var(--tint)!important}.view-link:hover{border-color:color-mix(in srgb, var(--accent) 45%, var(--line));background:var(--panel)}.pinbtn{width:40px;height:40px;min-height:40px;color:var(--muted);background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;padding:0;display:flex}.pinbtn:hover{color:var(--tint);background:var(--bg)}.pinbtn.on{color:var(--accent)}.pinbtn svg{width:17px;height:17px}.editor h2{margin:0 0 1rem}.reader-nav{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:2.5rem;display:flex}.back-link{color:var(--muted);align-items:center;gap:.3rem;font-size:.9rem;font-weight:550;text-decoration:none;display:inline-flex}.back-link:hover{color:var(--tint)}.reader-actions{align-items:center;gap:.5rem;display:flex}.button-link,button.danger-ghost{min-width:112px}.button-link{background:var(--panel);color:var(--tint);border:1px solid color-mix(in srgb, var(--accent) 48%, var(--line))}.button-link:hover{background:color-mix(in srgb, var(--panel) 82%, var(--accent));border-color:var(--accent)}button.danger-ghost{background:var(--panel);color:var(--muted);border:1px solid var(--line)}button.danger-ghost:hover{color:var(--danger);border-color:color-mix(in srgb, var(--danger) 30%, transparent);background:color-mix(in srgb, var(--danger) 8%, transparent)}.dialog-backdrop{z-index:100;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#030508b8;place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.confirm-dialog{border:1px solid var(--line);background:var(--panel);border-radius:12px;grid-template-columns:auto 1fr;gap:.9rem;width:min(100%,430px);padding:1.25rem;display:grid;box-shadow:0 24px 80px #000b}.dialog-icon{border:1px solid color-mix(in srgb, var(--danger) 32%, var(--line));background:color-mix(in srgb, var(--danger) 8%, var(--panel));width:42px;height:42px;color:var(--danger);border-radius:10px;place-items:center;display:grid}.dialog-copy h2{margin:0 0 .35rem;font-size:1.05rem}.dialog-copy p{color:var(--muted);margin:0;font-size:.9rem;line-height:1.55}.dialog-copy strong{color:var(--ink);font-weight:600}.dialog-actions{grid-column:1/-1;justify-content:flex-end;gap:.5rem;margin-top:.35rem;display:flex}.dialog-actions button{min-width:112px}button.danger-confirm{color:#ffd5d5;border-color:color-mix(in srgb, var(--danger) 58%, var(--line));background:color-mix(in srgb, var(--danger) 10%, var(--panel))}button.danger-confirm:hover{border-color:var(--danger);background:color-mix(in srgb, var(--danger) 16%, var(--panel))}.reader-document{max-width:76ch;margin:0 auto}.reader-head{border-bottom:1px solid var(--line);padding-bottom:1.75rem}.reader-badges{align-items:center;gap:.45rem;margin-bottom:.8rem;display:flex}.badge{border:1px solid var(--line);min-height:24px;color:var(--muted);letter-spacing:.055em;text-transform:uppercase;border-radius:999px;align-items:center;padding:.15rem .55rem;font-size:.68rem;font-weight:650;display:inline-flex}.badge.kind{color:var(--tint);border-color:color-mix(in srgb, var(--accent) 35%, var(--line));background:color-mix(in srgb, var(--accent) 7%, transparent)}.badge.status.draft{color:#f2c97d;border-color:color-mix(in srgb, #f2c97d 32%, var(--line))}.reader-head h1{letter-spacing:-.035em;max-width:22ch;margin:0;font-size:clamp(2rem,5vw,3rem);line-height:1.08}.reader-summary{color:#b3bfcc;max-width:60ch;margin:.85rem 0 0;font-size:1.05rem;line-height:1.55}.reader-details{color:var(--muted);flex-wrap:wrap;align-items:center;gap:.45rem;margin-top:1.1rem;font-size:.78rem;display:flex}.reader-tags{flex-wrap:wrap;gap:.4rem;display:flex}.tag{color:var(--accent)}.draft-notice{background:color-mix(in srgb, #f2c97d 7%, var(--panel));color:#d6bd8d;border-left:3px solid #f2c97d;border-radius:0 6px 6px 0;margin-top:1.5rem;padding:.7rem .85rem;font-size:.88rem}.reader-prose{margin-top:2rem}.prose{max-width:72ch}.prose>:first-child{margin-top:0}.prose h1,.prose h2,.prose h3{letter-spacing:-.015em;margin-top:1.8em;margin-bottom:.55em;line-height:1.25}.prose p,.prose li{color:#d3dbe4;line-height:1.72}.prose a{color:var(--accent)}.prose blockquote{border-left:3px solid var(--line);color:var(--muted);margin-left:0;padding-left:1rem}.prose pre{background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:.75rem 1rem;overflow-x:auto}.prose code{font-size:.85em}.prose table{border-collapse:collapse}.prose th,.prose td{border:1px solid var(--line);padding:.25rem .75rem}.editor label{gap:.25rem;margin-bottom:.75rem;display:grid}.editor input,.editor select,.editor textarea{background:var(--panel);border:1px solid var(--line);color:var(--ink);font:inherit;border-radius:6px;padding:.5rem .75rem}.editor input,.editor select{height:2.5rem}.editor textarea{resize:vertical;font-family:ui-monospace,monospace}.card.dragging{opacity:.4}.card.drop{border-color:var(--accent)}.avatar-wrap{position:relative}.avatar{background:var(--panel);width:44px;min-width:44px;height:44px;color:var(--ink);border:1px solid var(--line);border-radius:50%;padding:0;font-weight:650}.avatar[aria-expanded=true]{border-color:var(--accent)}.menu{z-index:20;background:var(--panel);border:1px solid var(--line);border-radius:10px;min-width:210px;padding:6px;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 14px 34px #000a}.menu button{width:100%;min-height:0;color:var(--ink);text-align:left;background:0 0;border-radius:6px;padding:.5rem .75rem;font-weight:500;display:flex}.menu button:hover{background:var(--bg)}.menu button.out{color:var(--danger)}.menu-sep{background:var(--line);height:1px;margin:6px 4px}.menu-mail{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin:0;padding:.5rem .75rem;font-size:.8rem;overflow:hidden}.editor input.doctitle{letter-spacing:-.02em;width:100%;color:var(--ink);background:0 0;border:0;border-radius:0;height:auto;margin:0 0 .75rem;padding:.25rem 0;font-size:1.75rem;font-weight:700}.editor input.doctitle:focus{outline:none}.editor input.doctitle::placeholder{color:var(--muted);opacity:.55}.kindpills{margin-bottom:1rem}.note-meta-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-bottom:1rem;display:grid}.note-meta-fields label{margin:0}.note-meta-fields label>span{color:var(--muted);letter-spacing:.04em;text-transform:uppercase;font-size:.78rem;font-weight:600}.note-meta-fields input{width:100%}.note-meta-fields small{color:var(--muted);font-size:.72rem}@media (max-width:620px){.note-meta-fields{grid-template-columns:1fr}}.iconbar{z-index:10;background:var(--bg);border-top:1px solid var(--line);border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem .75rem;margin-bottom:1rem;padding:.35rem 0;display:flex;position:sticky;top:0}.icons{align-items:center;gap:.3rem;display:flex}.icons button{width:36px;height:36px;min-height:36px;color:var(--muted);background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;padding:0;font-size:.95rem;font-weight:700;display:flex}.icons button:hover{color:var(--tint);background:var(--bg)}.icons button svg{width:16px;height:16px}.icons .glyph{font-size:.9rem}.minitabs{gap:.25rem;display:flex}.minitabs button{height:32px;min-height:32px;color:var(--muted);background:0 0;border:0;border-radius:6px;padding:0 10px;font-size:.85rem;font-weight:600}.minitabs button.on{color:var(--tint);background:var(--bg)}.edit-foot{z-index:10;border-top:1px solid var(--line);background:var(--bg);justify-content:flex-end;align-items:center;gap:.5rem;margin-top:1rem;padding:.75rem 0;display:flex;position:sticky;bottom:0}.edit-foot button{min-width:132px}.edit-shortcut{color:var(--muted);margin-right:auto;font-size:.78rem}.edit-shortcut kbd{border:1px solid var(--line);background:var(--panel);text-align:center;border-radius:4px;min-width:1.4em;padding:.05rem .35rem;font-family:inherit;font-size:.72rem;display:inline-block}@media (max-width:600px){.edit-shortcut{display:none}.edit-foot button{flex:1;min-width:0}}.editor textarea.doctext{width:100%;min-height:max(55vh,320px);color:var(--ink);resize:none;background:0 0;border:0;border-radius:0;padding:.25rem 0;font-family:ui-monospace,monospace;font-size:.95rem;line-height:1.65;display:block;overflow:hidden}.editor textarea.doctext:focus{outline:none}.editor textarea.doctext::placeholder{color:var(--muted);opacity:.55}.prose.preview{background:var(--panel);border:1px solid var(--line);border-radius:6px;max-width:none;min-height:max(55vh,320px);padding:1rem 1.25rem}.empty-wrap{text-align:center;color:var(--muted);padding:3rem 1rem}.empty-wrap svg{color:var(--muted);opacity:.7;margin:0 auto 1rem;display:block}.spin-wrap{justify-content:center;padding:2.5rem 0;display:flex}.spin{border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;width:28px;height:28px;animation:.8s linear infinite spin}.spin.sm{border-width:2px;border-color:color-mix(in srgb, currentColor 25%, transparent);border-top-color:currentColor;flex:none;width:14px;height:14px}.inline-status{align-items:center;gap:.5rem;display:inline-flex}button.icononly.spinning svg{animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.empty-wrap p{margin:0 0 1rem}@media (max-width:600px){.shell{padding-inline:.9rem}.reader-nav{flex-wrap:wrap;align-items:stretch;margin-bottom:2rem}.reader-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:.25rem;width:100%;display:grid}.button-link,button.danger-ghost{width:100%;min-width:0}.reader-head h1{font-size:2rem}.detail-separator{display:none}.reader-tags{flex-basis:100%}}.editor>.draft-notice{margin:0 0 1rem}
@@ -0,0 +1,82 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-Cjiz9dvF.js","assets/src-BH-TyZbA.js","assets/chunk-Y2CYZVJY-DsF7k-Jl.js","assets/chunk-DU6HZSFF-DryrSPb1.js","assets/chunk-75Z2AOVW-LW4FaixB.js","assets/dist-DTg6UBE_.js","assets/chunk-PWAF6VOD-DQEgoOPv.js","assets/chunk-GMAD6QVW-Cp7hNYJZ.js","assets/chunk-P2QGCYS3-VWs361To.js","assets/chunk-4HAMMTFA-Cvo56g-z.js","assets/rough.esm-Dy-Kn_BL.js","assets/chunk-GVQU2GXP-C_cC2nJk.js","assets/chunk-OSK3NFVY-X_U_SaBm.js","assets/line-yFFq1TcN.js","assets/path-fybaL0A-.js","assets/array-BifhSqXX.js","assets/graphlib-DS17s2tU.js","assets/chunk-L3NEJ4N5-C5_1i29s.js"])))=>i.map(i=>d[i]);
2
+ (function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var e={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return t(this.context.count)},getNextContextId(){return t(this.context.count++)}};function t(t){let n=String(t),r=n.length-1;return e.context.id+(r?String.fromCharCode(96+r):``)+n}function n(t){e.context=t}var r=(e,t)=>e===t,i=Symbol(`solid-track`),a={equals:r},o=null,s=pe,c=1,l=2,u={owned:null,cleanups:null,context:null,owner:null},d={},f=null,p=null,m=null,h=null,g=null,_=0;function v(e,t){let n=m,r=f,i=e.length===0,a=t===void 0?r:t,o=i?u:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>w(()=>_e(o)));f=o,m=null;try{return k(s,!0)}finally{m=n,f=r}}function y(e,t){t=t?Object.assign({},a,t):a;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[le.bind(n),e=>(typeof e==`function`&&(e=p&&p.running&&p.sources.has(n)?e(n.tValue):e(n.value)),E(n,e))]}function b(e,t,n){D(de(e,t,!0,c))}function x(e,t,n){D(de(e,t,!1,c))}function ee(e,t,n){s=me;let r=de(e,t,!1,c),i=ce&&se(ce);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),g?g.push(r):D(r)}function S(e,t,n){n=n?Object.assign({},a,n):a;let r=de(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,D(r),le.bind(r)}function te(e){return e&&typeof e==`object`&&`then`in e}function C(t,n,r){let i,a,o;typeof n==`function`?(i=t,a=n,o=r||{}):(i=!0,a=t,o=n||{});let s=null,c=d,l=null,u=!1,h=!1,g=`initialValue`in o,_=typeof i==`function`&&S(i),v=new Set,[x,ee]=(o.storage||y)(o.initialValue),[C,ne]=y(void 0),[re,oe]=y(void 0,{equals:!1}),[T,le]=y(g?`ready`:`unresolved`);f&&ie(()=>{for(let e of v.keys())e.decrement();v.clear(),p&&s&&p.promises.delete(s),s=null}),e.context&&(l=e.getNextContextId(),o.ssrLoadFrom===`initial`?c=o.initialValue:e.load&&e.has(l)&&(c=e.load(l)));function E(e,t,n,r){return s===e&&(s=null,r!==void 0&&(g=!0),(e===c||t===c)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(r,{value:t})),c=d,p&&e&&u?(p.promises.delete(e),u=!1,k(()=>{p.running=!0,D(t,n)},!1)):D(t,n)),t}function D(e,t){k(()=>{t===void 0&&ee(()=>e),le(t===void 0?g?`ready`:`unresolved`:`errored`),ne(t);for(let e of v.keys())e.decrement();v.clear()},!1)}function ue(){let e=ce&&se(ce),t=x(),n=C();if(n!==void 0&&!s)throw n;return m&&!m.user&&e&&b(()=>{re(),s&&(e.resolved&&p&&u?p.promises.add(s):v.has(e)||(e.increment(),v.add(e)))}),t}function de(e=!0){if(e!==!1&&h)return;h=!1;let t=_?_():i;if(u=p&&p.running,t==null||t===!1){E(s,w(x));return}p&&s&&p.promises.delete(s);let n,r=c===d?w(()=>{try{return a(t,{value:x(),refetching:e})}catch(e){n=e}}):c;if(n!==void 0){E(s,void 0,ye(n),t);return}return te(r)?(s=r,`v`in r?(r.s===1?E(s,r.v,void 0,t):E(s,void 0,ye(r.v),t),r):(h=!0,queueMicrotask(()=>h=!1),k(()=>{le(g?`refreshing`:`pending`),oe()},!1),r.then(e=>E(r,e,void 0,t),e=>E(r,void 0,ye(e),t)))):(E(s,r,void 0,t),r)}Object.defineProperties(ue,{state:{get:()=>T()},error:{get:()=>C()},loading:{get(){let e=T();return e===`pending`||e===`refreshing`}},latest:{get(){if(!g)return ue();let e=C();if(e&&!s)throw e;return x()}}});let O=f;return _?b(()=>(O=f,de(!1))):de(!1),[ue,{refetch:e=>ae(O,()=>de(e)),mutate:ee}]}function w(e){if(m===null)return e();let t=m;m=null;try{return e()}finally{m=t}}function ne(e,t,n){let r=Array.isArray(e),i,a=n&&n.defer;return n=>{let o;if(r){o=Array(e.length);for(let t=0;t<e.length;t++)o[t]=e[t]()}else o=e();if(a)return a=!1,n;let s=w(()=>t(o,i,n));return i=o,s}}function re(e){ee(()=>w(e))}function ie(e){return f===null||(f.cleanups===null?f.cleanups=[e]:f.cleanups.push(e)),e}function ae(e,t){let n=f,r=m;f=e,m=null;try{return k(t,!0)}catch(e){be(e)}finally{f=n,m=r}}var[oe,T]=y(!1);function se(e){let t;return f&&f.context&&(t=f.context[e.id])!==void 0?t:e.defaultValue}var ce;function le(){let e=p&&p.running;if(this.sources&&(e?this.tState:this.state)){if((e?this.tState:this.state)===c)D(this);else{let e=h;h=null,k(()=>he(this),!1),h=e}}if(m){let e=this.observers;if(!e||e[e.length-1]!==m){let t=e?e.length:0;m.sources?(m.sources.push(this),m.sourceSlots.push(t)):(m.sources=[this],m.sourceSlots=[t]),e?(e.push(m),this.observerSlots.push(m.sources.length-1)):(this.observers=[m],this.observerSlots=[m.sources.length-1])}}return e&&p.sources.has(this)?this.tValue:this.value}function E(e,t,n){let r=p&&p.running&&p.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(p){let r=p.running;(r||!n&&p.sources.has(e))&&(p.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&k(()=>{for(let t=0;t<e.observers.length;t+=1){let n=e.observers[t],r=p&&p.running;r&&p.disposed.has(n)||((r?!n.tState:!n.state)&&(n.pure?h.push(n):g.push(n),n.observers&&ge(n)),r?n.tState=c:n.state=c)}if(h.length>1e6)throw h=[],Error()},!1)}return t}function D(e){if(!e.fn)return;_e(e);let t=_;ue(e,p&&p.running&&p.sources.has(e)?e.tValue:e.value,t),p&&!p.running&&p.sources.has(e)&&queueMicrotask(()=>{k(()=>{p&&(p.running=!0),m=f=e,ue(e,e.tValue,t),m=f=null},!1)})}function ue(e,t,n){let r,i=f,a=m;m=f=e;try{r=e.fn(t)}catch(t){return e.pure&&(p&&p.running?(e.tState=c,e.tOwned&&e.tOwned.forEach(_e),e.tOwned=void 0):(e.state=c,e.owned&&e.owned.forEach(_e),e.owned=null)),e.updatedAt=n+1,be(t)}finally{m=a,f=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?E(e,r,!0):p&&p.running&&e.pure?(p.sources.has(e)||(e.value=r),p.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function de(e,t,n,r=c,i){let a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:f,context:f?f.context:null,pure:n};return p&&p.running&&(a.state=0,a.tState=r),f===null||f!==u&&(p&&p.running&&f.pure?f.tOwned?f.tOwned.push(a):f.tOwned=[a]:f.owned?f.owned.push(a):f.owned=[a]),a}function O(e){let t=p&&p.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===l)return he(e);if(e.suspense&&w(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<_);){if(t&&p.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let t=e,i=n[r+1];for(;(t=t.owner)&&t!==i;)if(p.disposed.has(t))return}if((t?e.tState:e.state)===c)D(e);else if((t?e.tState:e.state)===l){let t=h;h=null,k(()=>he(e,n[0]),!1),h=t}}}function k(e,t){if(h)return e();let n=!1;t||(h=[]),g?n=!0:g=[],_++;try{let t=e();return fe(n),t}catch(e){n||(g=null),h=null,be(e)}}function fe(e){if(h&&=(pe(h),null),e)return;let t;if(p){if(!p.promises.size&&!p.queue.size){let e=p.sources,n=p.disposed;g.push.apply(g,p.effects),t=p.resolve;for(let e of g)`tState`in e&&(e.state=e.tState),delete e.tState;p=null,k(()=>{for(let e of n)_e(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;e<n;e++)_e(t.owned[e]);t.tOwned&&(t.owned=t.tOwned),delete t.tValue,delete t.tOwned,t.tState=0}T(!1)},!1)}else if(p.running){p.running=!1,p.effects.push.apply(p.effects,g),g=null,T(!0);return}}let n=g;g=null,n.length&&k(()=>s(n),!1),t&&t()}function pe(e){for(let t=0;t<e.length;t++)O(e[t])}function me(t){let r,i=0;for(r=0;r<t.length;r++){let e=t[r];e.user?t[i++]=e:O(e)}if(e.context){if(e.count){e.effects||=[],e.effects.push(...t.slice(0,i));return}n()}for(e.effects&&(e.done||!e.count)&&(t=[...e.effects,...t],i+=e.effects.length,delete e.effects),r=0;r<i;r++)O(t[r])}function he(e,t){let n=p&&p.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let e=n?i.tState:i.state;e===c?i!==t&&(!i.updatedAt||i.updatedAt<_)&&O(i):e===l&&he(i,t)}}}function ge(e){let t=p&&p.running;for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=l:r.state=l,r.pure?h.push(r):g.push(r),r.observers&&ge(r))}}function _e(e){let t;if(e.sources)for(;e.sources.length;){let t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){let e=r.pop(),i=t.observerSlots.pop();n<r.length&&(e.sourceSlots[i]=n,r[n]=e,t.observerSlots[n]=i)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)_e(e.tOwned[t]);delete e.tOwned}if(p&&p.running&&e.pure)ve(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)_e(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}p&&p.running?e.tState=0:e.state=0}function ve(e,t){if(t||(e.tState=0,p.disposed.add(e)),e.owned)for(let t=0;t<e.owned.length;t++)ve(e.owned[t])}function ye(e){return e instanceof Error?e:Error(typeof e==`string`?e:`Unknown error`,{cause:e})}function A(e,t,n){try{for(let n of t)n(e)}catch(e){be(e,n&&n.owner||null)}}function be(e,t=f){let n=o&&t&&t.context&&t.context[o],r=ye(e);if(!n)throw r;g?g.push({fn(){A(r,n,t)},state:c}):A(r,n,t)}var j=Symbol(`fallback`);function xe(e){for(let t=0;t<e.length;t++)e[t]()}function Se(e,t,n={}){let r=[],a=[],o=[],s=0,c=t.length>1?[]:null;return ie(()=>xe(o)),()=>{let l=e()||[],u=l.length,d,f;return l[i],w(()=>{let e,t,i,m,h,g,_,y,b;if(u===0)s!==0&&(xe(o),o=[],r=[],a=[],s=0,c&&=[]),n.fallback&&(r=[j],a[0]=v(e=>(o[0]=e,n.fallback())),s=1);else if(s===0){for(a=Array(u),f=0;f<u;f++)r[f]=l[f],a[f]=v(p);s=u}else{for(i=Array(u),m=Array(u),c&&(h=Array(u)),g=0,_=Math.min(s,u);g<_&&r[g]===l[g];g++);for(_=s-1,y=u-1;_>=g&&y>=g&&r[_]===l[y];_--,y--)i[y]=a[_],m[y]=o[_],c&&(h[y]=c[_]);for(e=new Map,t=Array(y+1),f=y;f>=g;f--)b=l[f],d=e.get(b),t[f]=d===void 0?-1:d,e.set(b,f);for(d=g;d<=_;d++)b=r[d],f=e.get(b),f!==void 0&&f!==-1?(i[f]=a[d],m[f]=o[d],c&&(h[f]=c[d]),f=t[f],e.set(b,f)):o[d]();for(f=g;f<u;f++)f in i?(a[f]=i[f],o[f]=m[f],c&&(c[f]=h[f],c[f](f))):a[f]=v(p);a=a.slice(0,s=u),r=l.slice(0)}return a});function p(e){if(o[f]=e,c){let[e,n]=y(f);return c[f]=n,t(l[f],e)}return t(l[f])}}}function M(e,t){return w(()=>e(t||{}))}var Ce=e=>`Stale read from <${e}>.`;function we(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return S(Se(()=>e.each,e.children,t||void 0))}function N(e){let t=e.keyed,n=S(()=>e.when,void 0,void 0),r=t?n:S(n,void 0,{equals:(e,t)=>!e==!t});return S(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?w(()=>a(t?i:()=>{if(!w(r))throw Ce(`Show`);return n()})):a}return e.fallback},void 0,void 0)}var Te=e=>S(()=>e());function Ee(e,t,n){let r=n.length,i=t.length,a=r,o=0,s=0,c=t[i-1].nextSibling,l=null;for(;o<i||s<a;){if(t[o]===n[s]){o++,s++;continue}for(;t[i-1]===n[a-1];)i--,a--;if(i===o){let t=a<r?s?n[s-1].nextSibling:n[a-s]:c;for(;s<a;)e.insertBefore(n[s++],t)}else if(a===s)for(;o<i;)(!l||!l.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[a-1]&&n[s]===t[i-1]){let r=t[--i].nextSibling;e.insertBefore(n[s++],t[o++].nextSibling),e.insertBefore(n[--a],r),t[i]=n[a]}else{if(!l){l=new Map;let e=s;for(;e<a;)l.set(n[e],e++)}let r=l.get(t[o]);if(r!=null){if(s<r&&r<a){let c=o,u=1,d;for(;++c<i&&c<a&&(d=l.get(t[c]))!=null&&d===r+u;)u++;if(u>r-s){let i=t[o];for(;s<r;)e.insertBefore(n[s++],i)}else e.replaceChild(n[s++],t[o++])}else o++}else t[o++].remove()}}}var De=`_$DX_DELEGATE`;function Oe(e,t,n,r={}){let i;return v(r=>{i=r,t===document?e():L(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=``}}function P(e,t,n,r){let i,a=()=>{let t=r?document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`template`):document.createElement(`template`);return t.innerHTML=e,n?t.content.firstChild.firstChild:r?t.firstChild:t.content.firstChild},o=t?()=>w(()=>document.importNode(i||=a(),!0)):()=>(i||=a()).cloneNode(!0);return o.cloneNode=o,o}function F(e,t=window.document){let n=t[De]||(t[De]=new Set);for(let r=0,i=e.length;r<i;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,Me))}}function I(e,t,n){je(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function ke(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){let r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,typeof n!=`function`&&n)}function Ae(e,t,n){return w(()=>e(t,n))}function L(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return Ne(e,t,r,n);x(r=>Ne(e,t(),r,n),r)}function je(t){return!!e.context&&!e.done&&(!t||t.isConnected)}function Me(t){if(e.registry&&e.events&&e.events.find(([e,n])=>n===t))return;let n=t.target,r=`$$${t.type}`,i=t.target,a=t.currentTarget,o=e=>Object.defineProperty(t,"target",{configurable:!0,value:e}),s=()=>{let e=n[r];if(e&&!n.disabled){let i=n[`${r}Data`];if(i===void 0?e.call(n,t):e.call(n,i,t),t.cancelBubble)return}return n.host&&typeof n.host!=`string`&&!n.host._$host&&n.contains(t.target)&&o(n.host),!0},c=()=>{for(;s()&&(n=n._$host||n.parentNode||n.host););};if(Object.defineProperty(t,"currentTarget",{configurable:!0,get(){return n||document}}),e.registry&&!e.done&&(e.done=_$HY.done=!0),t.composedPath){let e=t.composedPath();o(e[0]);for(let t=0;t<e.length-2&&(n=e[t],s());t++){if(n._$host){n=n._$host,c();break}if(n.parentNode===a)break}}else c();o(i)}function Ne(e,t,n,r,i){let a=je(e);if(a){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){let r=n[e];r.nodeType===8&&r.data.slice(0,2)===`!$`?r.remove():t.push(r)}n=t}for(;typeof n==`function`;)n=n();if(t===n)return n;let o=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,o===`string`||o===`number`){if(a||o===`number`&&(t=t.toString(),t===n))return n;if(s){let i=n[0];i&&i.nodeType===3?i.data!==t&&(i.data=t):i=document.createTextNode(t),n=Ie(e,n,r,i)}else n=n!==``&&typeof n==`string`?e.firstChild.data=t:e.textContent=t}else if(t==null||o===`boolean`){if(a)return n;n=Ie(e,n,r)}else if(o===`function`)return x(()=>{let i=t();for(;typeof i==`function`;)i=i();n=Ne(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(Pe(o,t,n,i))return x(()=>n=Ne(e,o,n,r,!0)),()=>n;if(a){if(!o.length)return n;if(r===void 0)return n=[...e.childNodes];let t=o[0];if(t.parentNode!==e)return n;let i=[t];for(;(t=t.nextSibling)!==r;)i.push(t);return n=i}if(o.length===0){if(n=Ie(e,n,r),s)return n}else c?n.length===0?Fe(e,o,r):Ee(e,n,o):(n&&Ie(e),Fe(e,o));n=o}else if(t.nodeType){if(a&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=Ie(e,n,r,t);Ie(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function Pe(e,t,n,r){let i=!1;for(let a=0,o=t.length;a<o;a++){let o=t[a],s=n&&n[e.length],c;if(o!=null&&o!==!0&&o!==!1){if((c=typeof o)==`object`&&o.nodeType)e.push(o);else if(Array.isArray(o))i=Pe(e,o,s)||i;else if(c===`function`){if(r){for(;typeof o==`function`;)o=o();i=Pe(e,Array.isArray(o)?o:[o],Array.isArray(s)?s:[s])||i}else e.push(o),i=!0}else{let t=String(o);s&&s.nodeType===3&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}}return i}function Fe(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function Ie(e,t,n,r){if(n===void 0)return e.textContent=``;let i=r||document.createTextNode(``);if(t.length){let r=!1;for(let a=t.length-1;a>=0;a--){let o=t[a];if(i!==o){let t=o.parentNode===e;!r&&!a?t?e.replaceChild(i,o):e.insertBefore(i,n):t&&o.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}var Le=`nors_pb_token`,Re=`nors_pb_user`,ze=[`diagram`,`runbook`,`reference`,`scratch`],Be={diagram:`Diagram`,runbook:`Runbook`,reference:`Reference`,scratch:`Scratch`};function Ve(){return``}function He(){return localStorage.getItem(Le)}function Ue(){localStorage.removeItem(Le),localStorage.removeItem(Re)}var We=`nors:session-expired`,Ge=`nors_access_reload`;async function Ke(e,t){let n=await fetch(`${Ve()}${e}`,{...t,redirect:`manual`});if(n.type===`opaqueredirect`){let e=Number(sessionStorage.getItem(Ge)||0);if(Date.now()-e<3e4)throw Error(`Cloudflare Access session expired. Reload the page to sign in again.`);return sessionStorage.setItem(Ge,String(Date.now())),location.reload(),new Promise(()=>{})}return n}async function qe(e,t={}){let n=He();if(!n)return R();let r=await Ke(e,{...t,headers:{Authorization:n,"Content-Type":`application/json`}});return r.status===401||r.status===403?R():r}function R(){throw Ue(),window.dispatchEvent(new Event(We)),Error(`session expired`)}async function Je(e,t){let n=await Ke(`/api/collections/_superusers/auth-with-password`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({identity:e,password:t})});if(!n.ok){let e=await n.text();throw Error(e||`login failed (${n.status})`)}let r=await n.json();localStorage.setItem(Le,r.token),localStorage.setItem(Re,JSON.stringify(r.record))}async function Ye(e){let t=e?.includeDrafts?`status != "archived"`:`status = "published"`,n=await qe(`/api/collections/nors_notes/records?${new URLSearchParams({filter:t,sort:`-pinned,sort,updated`,perPage:`200`})}`);if(!n.ok)throw Error(`list failed (${n.status})`);return(await n.json()).items.map($e)}async function Xe(e){if(!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(e))throw Error(`no note: ${e}`);let t=await qe(`/api/collections/nors_notes/records?${new URLSearchParams({filter:`slug = "${e}"`})}`);if(!t.ok)throw Error(`get failed (${t.status})`);let n=await t.json();if(n.items.length===0)throw Error(`no note: ${e}`);return $e(n.items[0])}async function Ze(e,t){let n=await qe(`/api/collections/nors_notes/records${t?`/${t}`:``}`,{method:t?`PATCH`:`POST`,body:JSON.stringify(e)});if(!n.ok){let e=await n.text();throw Error(e||`save failed (${n.status})`)}return $e(await n.json())}async function Qe(e){let t=await qe(`/api/collections/nors_notes/records/${e}`,{method:`DELETE`});if(!t.ok){let e=await t.text();throw Error(e||`delete failed (${t.status})`)}}function $e(e){let t=e.tags;return{id:String(e.id),title:String(e.title??``),slug:String(e.slug??``),summary:String(e.summary??``),body:String(e.body??``),kind:e.kind||`scratch`,tags:Array.isArray(t)?t:[],pinned:!!e.pinned,status:e.status||`draft`,sort:Number(e.sort??0),updated:String(e.updated??``)}}var et=`$new`;function tt(e){let t=e.replace(/^#\/?/,``).split(`/`);return t[0]===`n`&&t[1]?{name:`read`,slug:decodeURIComponent(t[1])}:t[0]===`edit`&&t[1]?{name:`edit`,slug:decodeURIComponent(t[1])}:{name:`dash`}}function nt(e){location.hash=e}function rt(){let[e,t]=y(tt(location.hash));return re(()=>{let e=()=>t(tt(location.hash));window.addEventListener(`hashchange`,e),ie(()=>window.removeEventListener(`hashchange`,e))}),e}var it=P(`<div class=toast-region aria-live=assertive aria-atomic=true><div class="toast toast-error"role=alert><svg width=18 height=18 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round aria-hidden=true><circle cx=12 cy=12 r=10></circle><path d="M12 8v4M12 16h.01"></path></svg><span></span><button type=button class=toast-close aria-label="Dismiss notification"><svg width=16 height=16 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round aria-hidden=true><path d="m18 6-12 12M6 6l12 12">`),z=e=>(ee(()=>{if(!e.message)return;let t=window.setTimeout(e.onDismiss,4500);ie(()=>window.clearTimeout(t))}),M(N,{get when(){return e.message},get children(){var t=it(),n=t.firstChild.firstChild.nextSibling,r=n.nextSibling;return L(n,()=>e.message),ke(r,`click`,e.onDismiss,!0),t}}));F([`click`]);var at=P(`<span class="spin sm">`),ot=P(`<div class=spin-wrap role=status><span class=spin>`),st=e=>(()=>{var t=at();return x(n=>{var r=e.label?`status`:void 0,i=e.label,a=e.label?void 0:`true`;return r!==n.e&&I(t,`role`,n.e=r),i!==n.t&&I(t,`aria-label`,n.t=i),a!==n.a&&I(t,`aria-hidden`,n.a=a),n},{e:void 0,t:void 0,a:void 0}),t})(),ct=e=>(()=>{var t=ot();return x(()=>I(t,`aria-label`,e.label??`Loading`)),t})(),lt=P(`<p class="hint inline-status">Saving order…`),ut=P(`<div class=empty-wrap><svg width=72 height=56 viewBox="0 0 72 56"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round aria-hidden=true><ellipse cx=36 cy=46 rx=22 ry=5></ellipse><ellipse cx=36 cy=36 rx=15 ry=6></ellipse><ellipse cx=36 cy=26 rx=10 ry=5></ellipse><ellipse cx=36 cy=17 rx=5 ry=4></ellipse></svg><p>No notes yet</p><button type=button class=ghost>Write the first one`),dt=P(`<main class=dash><div class=dash-head><h2>Notes</h2><button type=button class="ghost icononly"title=Refresh aria-label=Refresh><svg width=16 height=16 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><polyline points="23 4 23 10 17 10"></polyline><polyline points="1 20 1 14 7 14"></polyline><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path></svg></button></div><nav class=tabs><button type=button>All</button></nav><ul class=cards>`),ft=P(`<button type=button>`),pt=P(`<span class=card-pin title=Pinned aria-label=Pinned><svg viewBox="0 0 24 24"fill=currentColor stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round aria-hidden=true><path d="M8 3h8l-1 8 3 3v2H6v-2l3-3z"></path><line x1=12 y1=16 x2=12 y2=21>`),mt=P(`<li class=card><a class=card-link><div class=card-top><span class=kind></span><span class=card-flags><span class=status></span></span></div><h3></h3><p></p><code class=slug>`),ht=10,gt=e=>{let[t,n]=y(``),[r,i]=y(!1),[a,o]=y(null),[s,c]=y(null),[l,u]=y([]),[d,f]=y(`all`),[p,{refetch:m}]=C(async()=>{try{return await Ye({includeDrafts:!0})}catch(t){return t instanceof Error&&t.message===`session expired`?e.onExpired():n(t instanceof Error?t.message:String(t)),[]}});ee(()=>{let e=p();e&&u(e)});let h=()=>l().find(e=>e.id===a())??null,g=()=>{let e=d();return e===`all`?l():l().filter(t=>t.kind===e)};async function _(t){i(!0),n(``);try{let e=0,n=0;await Promise.all(t.map(t=>{let r=t.pinned?e+=ht:n+=ht;return r===t.sort?Promise.resolve():Ze({title:t.title,slug:t.slug,summary:t.summary,body:t.body,kind:t.kind,tags:t.tags,pinned:t.pinned,status:t.status,sort:r},t.id)})),await m()}catch(t){if(t instanceof Error&&t.message===`session expired`)return e.onExpired();n(t instanceof Error?t.message:String(t)),await m()}finally{i(!1)}}function v(e,t){t.preventDefault();let n=h();if(o(null),c(null),!n||n.id===e.id||n.pinned!==e.pinned)return;let r=l().filter(e=>e.id!==n.id),i=r.findIndex(t=>t.id===e.id),a=[...r.slice(0,i),n,...r.slice(i)];u(a),_(a)}return(()=>{var e=dt(),i=e.firstChild,u=i.firstChild.nextSibling,_=i.nextSibling,y=_.firstChild,b=_.nextSibling;return L(e,M(z,{get message(){return t()},onDismiss:()=>n(``)}),i),u.$$click=()=>m(),y.$$click=()=>f(`all`),L(_,M(we,{each:ze,children:e=>(()=>{var t=ft();return t.$$click=()=>f(e),L(t,()=>Be[e]),x(()=>t.classList.toggle(`on`,d()===e)),t})()}),null),L(e,M(N,{get when(){return Te(()=>!!p.loading)()&&l().length===0},get children(){return M(ct,{label:`Loading notes`})}}),b),L(e,M(N,{get when(){return r()},get children(){var e=lt(),t=e.firstChild;return L(e,M(st,{}),t),e}}),b),L(e,M(N,{get when(){return Te(()=>!p.loading)()&&(p()||[]).length===0},get children(){var e=ut(),t=e.firstChild.nextSibling.nextSibling;return t.$$click=()=>nt(`/edit/$new`),e}}),b),L(b,M(we,{get each(){return g()},children:e=>(()=>{var t=mt(),n=t.firstChild,i=n.firstChild,l=i.firstChild,u=l.nextSibling,f=u.firstChild,p=i.nextSibling,m=p.nextSibling,g=m.nextSibling;return t.addEventListener(`dragend`,()=>{o(null),c(null)}),t.addEventListener(`drop`,t=>v(e,t)),t.addEventListener(`dragleave`,()=>{s()===e.id&&c(null)}),t.addEventListener(`dragover`,t=>{let n=h();n&&n.id!==e.id&&n.pinned===e.pinned&&(t.preventDefault(),c(e.id))}),t.addEventListener(`dragstart`,t=>{o(e.id),t.dataTransfer&&(t.dataTransfer.setData(`text/plain`,e.id),t.dataTransfer.effectAllowed=`move`)}),I(n,`draggable`,!1),L(l,()=>Be[e.kind]),L(f,()=>e.status),L(u,M(N,{get when(){return e.pinned},get children(){return pt()}}),null),L(p,()=>e.title),L(m,()=>e.summary||`—`),L(g,()=>e.slug),x(i=>{var o=!!e.pinned,c=e.status===`draft`,l=a()===e.id,u=s()===e.id,f=d()===`all`&&!r(),p=`#/n/${encodeURIComponent(e.slug)}`;return o!==i.e&&t.classList.toggle(`pinned`,i.e=o),c!==i.t&&t.classList.toggle(`draft`,i.t=c),l!==i.a&&t.classList.toggle(`dragging`,i.a=l),u!==i.o&&t.classList.toggle(`drop`,i.o=u),f!==i.i&&I(t,`draggable`,i.i=f),p!==i.n&&I(n,`href`,i.n=p),i},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0}),t})()})),x(e=>{var t=!!p.loading,n=p.loading||r(),i=d()===`all`;return t!==e.e&&u.classList.toggle(`spinning`,e.e=t),n!==e.t&&(u.disabled=e.t=n),i!==e.a&&y.classList.toggle(`on`,e.a=i),e},{e:void 0,t:void 0,a:void 0}),e})()};F([`click`]);function _t(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var B=_t();function vt(e){B=e}var yt={exec:()=>null};function bt(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function V(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(H.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var xt=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),H={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:bt(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:bt(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:bt(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:bt(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:bt(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,`i`)),blockquoteBeginRegex:bt(e=>RegExp(`^ {0,${e}}>`))},St=/^(?:[ \t]*(?:\n|$))+/,Ct=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,wt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Tt=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Et=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,U=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Dt=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ot=V(Dt).replace(/bull/g,U).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),kt=V(Dt).replace(/bull/g,U).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),At=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,jt=/^[^\n]+/,Mt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Nt=V(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Mt).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Pt=V(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,U).getRegex(),Ft=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,It=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Lt=V(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,It).replace(`tag`,Ft).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Rt=e=>V(At).replace(`hr`,Tt).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,e).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Ft).getRegex(),zt=Rt(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Bt=Rt(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Vt={blockquote:V(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Bt).getRegex(),code:Ct,def:Nt,fences:wt,heading:Et,hr:Tt,html:Lt,lheading:Ot,list:Pt,newline:St,paragraph:zt,table:yt,text:jt},Ht=V(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,Tt).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Ft).getRegex(),Ut={...Vt,lheading:kt,table:Ht,paragraph:V(At).replace(`hr`,Tt).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Ht).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Ft).getRegex()},Wt={...Vt,html:V(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,It).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:yt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:V(At).replace(`hr`,Tt).replace(`heading`,` *#{1,6} *[^
3
+ ]`).replace(`lheading`,Ot).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},Gt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Kt=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,qt=/^( {2,}|\\)\n(?!\s*$)/,Jt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Yt=/[\p{P}\p{S}]/u,Xt=/[\s\p{P}\p{S}]/u,Zt=/[^\s\p{P}\p{S}]/u,Qt=V(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,Xt).getRegex(),$t=/[\p{Pi}\p{Ps}"']/u,en=/(?!~)[\p{P}\p{S}]/u,tn=/(?!~)[\s\p{P}\p{S}]/u,nn=/(?:[^\s\p{P}\p{S}]|~)/u,rn=V(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,xt?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),an=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,on=V(an,`u`).replace(/punct/g,Yt).getRegex(),sn=V(an,`u`).replace(/punct/g,en).getRegex(),cn=V(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,`u`).replace(/openQuote/g,$t).replace(/punct/g,Yt).getRegex(),ln=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,un=V(ln,`gu`).replace(/notPunctSpace/g,Zt).replace(/punctSpace/g,Xt).replace(/punct/g,Yt).getRegex(),dn=V(ln,`gu`).replace(/notPunctSpace/g,nn).replace(/punctSpace/g,tn).replace(/punct/g,en).getRegex(),fn=V(`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Zt).replace(/punctSpace/g,Xt).replace(/punct/g,Yt).getRegex(),pn=V(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,Zt).replace(/punctSpace/g,Xt).replace(/punct/g,Yt).getRegex(),mn=V(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Zt).replace(/punctSpace/g,Xt).replace(/punct/g,Yt).getRegex(),hn=V(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,Yt).getRegex(),gn=V(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Zt).replace(/punctSpace/g,Xt).replace(/punct/g,Yt).getRegex(),_n=V(/\\(punct)/,`gu`).replace(/punct/g,Yt).getRegex(),vn=V(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),yn=V(It).replace(`(?:-->|$)`,`-->`).getRegex(),bn=V(`^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,yn).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),xn=V(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace(`brackets`,/\[(?:\\[\s\S]|[^\[\]\\])*\]/).getRegex(),Sn=V(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,xn).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Cn=V(/^!?\[(label)\]\[(ref)\]/).replace(`label`,xn).replace(`ref`,Mt).getRegex(),wn=V(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Mt).getRegex(),Tn=V(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,Cn).replace(`nolink`,wn).getRegex(),En=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Dn={_backpedal:yt,anyPunctuation:_n,autolink:vn,blockSkip:rn,br:qt,code:Kt,del:yt,delLDelim:yt,delRDelim:yt,emStrongLDelim:on,emStrongRDelimAst:un,emStrongRDelimUnd:pn,escape:Gt,link:Sn,nolink:wn,punctuation:Qt,reflink:Cn,reflinkSearch:Tn,tag:bn,text:Jt,url:yt},On={...Dn,emStrongLDelim:cn,emStrongRDelimAst:fn,emStrongRDelimUnd:mn,link:V(/^!?\[(label)\]\((.*?)\)/).replace(`label`,xn).getRegex(),reflink:V(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,xn).getRegex()},kn={...Dn,emStrongRDelimAst:dn,emStrongLDelim:sn,delLDelim:hn,delRDelim:gn,url:V(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,En).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:V(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,En).getRegex()},An={...kn,br:V(qt).replace(`{2,}`,`*`).getRegex(),text:V(kn.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},jn={normal:Vt,gfm:Ut,pedantic:Wt},Mn={normal:Dn,gfm:kn,breaks:An,pedantic:On},Nn={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Pn=e=>Nn[e];function W(e,t){if(t){if(H.escapeTest.test(e))return e.replace(H.escapeReplace,Pn)}else if(H.escapeTestNoEncode.test(e))return e.replace(H.escapeReplaceNoEncode,Pn);return e}function Fn(e){try{e=encodeURI(e).replace(H.percentDecode,`%`)}catch{return null}return e}function In(e,t){let n=e.replace(H.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(H.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``)}for(;r<n.length;r++)n[r]=n[r].trim().replace(H.slashPipe,`|`);return n}function Ln(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function Rn(e){let t=e.split(`
4
+ `),n=t.length-1;for(;n>=0&&H.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
5
+ `)}function zn(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Bn(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function Vn(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`),c=e[0].charAt(0)===`!`;r.state.inLink=!0;let l=r.state.linkEmitted,u=r.state.inRawBlock;r.state.linkEmitted=!1;let d=r.inlineTokens(s),f=r.state.linkEmitted;if(r.state.linkEmitted=l,r.state.inLink=!1,!c){if(f){r.state.inRawBlock=u;return}r.state.linkEmitted=!0}return{type:c?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:d}}function Hn(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
6
+ `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return e.slice(Math.min(r.length,i.length))}).join(`
7
+ `)}var Un=class{options;rules;lexer;constructor(e){this.options=e||B}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:Rn(t[0]);return{type:`code`,raw:e,codeBlockStyle:`indented`,text:e.replace(this.rules.other.codeRemoveIndent,``)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=Hn(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=Ln(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceTabChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:Ln(t[0],`
8
+ `),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:Ln(t[0],`
9
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=Ln(t[0],`
10
+ `).split(`
11
+ `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o=0;for(;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
12
+ `),c=s.replace(this.rules.other.blockquoteSetextReplace,`
13
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
14
+ ${s}`:s,r=r?`${r}
15
+ ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=e.join(`
16
+ `),o=t.raw+`
17
+ `+a.replace(this.rules.other.blockquoteSetextReplace2,``),s=this.blockquote(o);i[i.length-1]=s,n=`${n}
18
+ ${a}`,r=r.substring(0,r.length-t.text.length)+s.text;break}if(u?.type===`list`){let t=u,a=t.raw+`
19
+ `+e.join(`
20
+ `),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
21
+ `);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=Bn(t[2].split(`
22
+ `,1)[0],t[1].length),l=e.split(`
23
+ `,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
24
+ `,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(`
25
+ `,1)[0],m;if(l=p,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),m=l):m=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||f.test(l)||t.test(l)||n.test(l))break;if(m.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
26
+ `+m.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
27
+ `+l}u=!l.trim(),r+=p+`
28
+ `,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items)if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}for(let e of i.items){let t=e.tokens[0];if(e.task&&(t?.type===`text`||t?.type===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&=!1}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=Rn(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:Ln(t[0],`
29
+ `),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=In(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
30
+ `):[],a={type:`table`,raw:Ln(t[0],`
31
+ `),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(In(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:Ln(t[0],`
32
+ `),depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
33
+ `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=Ln(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=zn(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),Vn(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return Vn(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,o,s=i,c=0,l=r[0][0],u=n===l,d=l===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(r=d.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(o=[...a].length,r[3]||r[4]){s+=o;continue}if(r[5]||r[6]){if(i%3&&!((i+o)%3)){c+=o;continue}if(u)break}if(s-=o,s>0)continue;o=Math.min(o,o+s+c);let t=[...r[0]][0].length,n=e.slice(0,i+r.index+t+o);if(Math.min(i,o)%2){let e=n.slice(1,-1);return{type:`em`,raw:n,text:e,tokens:this.lexer.inlineTokens(e)}}let l=n.slice(2,-2);return{type:`strong`,raw:n,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},Wn=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||B,this.options.tokenizer=this.options.tokenizer||new Un,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let t={other:H,block:jn.normal,inline:Mn.normal};this.options.pedantic?(t.block=jn.pedantic,t.inline=Mn.pedantic):this.options.gfm&&(t.block=jn.gfm,t.inline=this.options.breaks?Mn.breaks:Mn.gfm),this.tokenizer.rules=t}static get rules(){return{block:jn,inline:Mn}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(H.carriageReturn,`
34
+ `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(H.tabCharGlobal,` `).replace(H.spaceLine,``));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(n=>(i=n.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);i.raw.length===1&&n!==void 0?n.raw+=`
35
+ `:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
36
+ `)?``:`
37
+ `)+i.raw,n.text+=`
38
+ `+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
39
+ `)?``:`
40
+ `)+i.raw,n.text+=`
41
+ `+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type===`paragraph`?(r.raw+=(r.raw.endsWith(`
42
+ `)?``:`
43
+ `)+i.raw,r.text+=`
44
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
45
+ `)?``:`
46
+ `)+i.raw,n.text+=`
47
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}linkInText(e){if(!e.includes(`[`))return!1;let t=this.tokenizer.rules.inline.link;for(let n of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(t.test(n[0])&&e.charAt(n.index-1)!==`!`)return!0;for(let t of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let e=t[0],n=e.lastIndexOf(`[`);if(e.charAt(0)!==`!`&&Object.hasOwn(this.tokens.links,e.slice(n+1,-1))&&!(n>1&&this.linkInText(e.slice(1,n-1))))return!0}return!1}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e;if(this.tokens.links&&e.includes(`[`)){let e=this.tokenizer.rules.inline.reflinkSearch,t=n=>{let r=n.lastIndexOf(`[`);if(!Object.hasOwn(this.tokens.links,n.slice(r+1,-1)))return n;if(r>1&&n.charAt(0)!==`!`){let i=n.slice(1,r-1);if(this.linkInText(i))return`[`+i.replace(e,t)+`][`+`a`.repeat(n.length-r-2)+`]`}return`[`+`a`.repeat(n.length-2)+`]`};n=n.replace(e,t)}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,e=>`+`.repeat(e.length)),n=n.replace(this.tokenizer.rules.inline.blockSkip,(e,t,n)=>{let r=n?n.length:0;return e.slice(0,r)+`[`+`a`.repeat(e.length-r-2)+`]`}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let r=!1,i=``,a=1/0;for(;e;){if(e.length<a)a=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}r||(i=``),r=!1;let o;if(this.options.extensions?.inline?.some(n=>(o=n.call({lexer:this},e,t))?(e=e.substring(o.raw.length),t.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let n=t.at(-1);o.type===`text`&&n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(o=this.tokenizer.emStrong(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.del(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),t.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(o=this.tokenizer.inlineText(s)){e=e.substring(o.raw.length),o.raw.slice(-1)!==`_`&&(i=o.raw.slice(-1)),r=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},Gn=class{options;parser;constructor(e){this.options=e||B}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(H.notSpaceStart)?.[0],i=e?e.replace(H.endingNewline,``)+`
48
+ `:``;return r?`<pre><code class="language-`+W(r)+`">`+(n?i:W(i,!0))+`</code></pre>
49
+ `:`<pre><code>`+(n?i:W(i,!0))+`</code></pre>
50
+ `}blockquote({tokens:e}){return`<blockquote>
51
+ ${this.parser.parse(e)}</blockquote>
52
+ `}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
53
+ `}hr(e){return`<hr>
54
+ `}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
55
+ `+r+`</`+i+`>
56
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
57
+ `}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
58
+ `}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
59
+ <thead>
60
+ `+t+`</thead>
61
+ `+r+`</table>
62
+ `}tablerow({text:e}){return`<tr>
63
+ ${e}</tr>
64
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
65
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${W(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,text:n,tokens:r,autolink:i}){let a=i?W(n,!0):this.parser.parseInline(r),o=Fn(e);if(o===null)return a;e=W(o,i);let s=`<a href="`+e+`"`;return t&&(s+=` title="`+W(t)+`"`),s+=`>`+a+`</a>`,s}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Fn(e);if(i===null)return W(n);e=i;let a=`<img src="${W(e)}" alt="${W(n)}"`;return t&&(a+=` title="${W(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:W(e.text)}},Kn=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},qn=class e{options;renderer;textRenderer;constructor(e){this.options=e||B,this.options.renderer=this.options.renderer||new Gn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Kn}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`checkbox`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`checkbox`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},Jn=class{options;block;constructor(e){this.options=e||B}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?Wn.lex:Wn.lexInline}provideParser(e=this.block){return e?qn.parse:qn.parseInline}},Yn=new class{defaults=_t();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=qn;Renderer=Gn;TextRenderer=Kn;Lexer=Wn;Tokenizer=Un;Hooks=Jn;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Gn(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new Un(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new Jn;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=Jn.passThroughHooks.has(n)?e=>{if(this.defaults.async&&Jn.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Wn.lex(e,t??this.defaults)}parser(e,t){return qn.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?Wn.lex:Wn.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?qn.parse:qn.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?Wn.lex:Wn.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?qn.parse:qn.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
66
+ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+W(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function G(e,t){return Yn.parse(e,t)}G.options=G.setOptions=function(e){return Yn.setOptions(e),G.defaults=Yn.defaults,vt(G.defaults),G},G.getDefaults=_t,G.defaults=B;function Xn(...e){return Yn.use(...e),G.defaults=Yn.defaults,vt(G.defaults),G}G.use=Xn,G.walkTokens=function(e,t){return Yn.walkTokens(e,t)},G.parseInline=Yn.parseInline,G.Parser=qn,G.parser=qn.parse,G.Renderer=Gn,G.TextRenderer=Kn,G.Lexer=Wn,G.lexer=Wn.lex,G.Tokenizer=Un,G.Hooks=Jn,G.parse=G,G.options,G.setOptions,G.walkTokens,G.parseInline,qn.parse,Wn.lex;function Zn(e,t){this.v=e,this.k=t}function Qn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $n(e){if(Array.isArray(e))return e}function er(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function tr(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
67
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nr(e,t){return $n(e)||er(e,t)||rr(e,t)||tr()}function rr(e,t){if(e){if(typeof e==`string`)return Qn(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qn(e,t):void 0}}function ir(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof Zn;Promise.resolve(s?o.v:o).then(function(n){if(s){var c=t===`return`&&o.k?t:`next`;if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(!!a.done,n)},function(e){r(`throw`,e)})}catch(e){i(2,e)}}function i(e,i){e===2?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},typeof e.return!=`function`&&(this.return=void 0)}ir.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},ir.prototype.next=function(e){return this._invoke(`next`,e)},ir.prototype.throw=function(e){return this._invoke(`throw`,e)},ir.prototype.return=function(e){return this._invoke(`return`,e)};var ar=Object.entries,or=Object.setPrototypeOf,sr=Object.isFrozen,cr=Object.getPrototypeOf,lr=Object.getOwnPropertyDescriptor,K=Object.freeze,q=Object.seal,ur=Object.create,dr=typeof Reflect<`u`&&Reflect,fr=dr.apply,pr=dr.construct;K||=function(e){return e},q||=function(e){return e},fr||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},pr||=function(e){return new e(...[...arguments].slice(1))};var mr=X(Array.prototype.forEach);Array.prototype.indexOf;var hr=X(Array.prototype.lastIndexOf),gr=X(Array.prototype.pop),_r=X(Array.prototype.push);Array.prototype.slice;var vr=X(Array.prototype.splice),yr=Array.isArray,br=X(String.prototype.toLowerCase),xr=X(String.prototype.toString),Sr=X(String.prototype.match),Cr=X(String.prototype.replace),wr=X(String.prototype.indexOf),Tr=X(String.prototype.trim),Er=X(Number.prototype.toString),Dr=X(Boolean.prototype.toString),Or=typeof BigInt>`u`?null:X(BigInt.prototype.toString),kr=typeof Symbol>`u`?null:X(Symbol.prototype.toString),J=X(Object.prototype.hasOwnProperty),Ar=X(Object.prototype.toString),Y=X(RegExp.prototype.test),jr=Mr(TypeError);function X(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return fr(e,t,n)}}function Mr(e){return function(){return pr(e,[...arguments])}}function Z(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:br;if(or&&or(e,null),!yr(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(sr(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Nr(e){for(let t=0;t<e.length;t++)J(e,t)||(e[t]=null);return e}function Q(e){let t=ur(null);for(let r of ar(e)){var n=nr(r,2);let i=n[0],a=n[1];J(e,i)&&(t[i]=yr(a)?Nr(a):a&&typeof a==`object`&&a.constructor===Object?Q(a):a)}return t}function Pr(e){switch(typeof e){case`string`:return e;case`number`:return Er(e);case`boolean`:return Dr(e);case`bigint`:return Or?Or(e):`0`;case`symbol`:return kr?kr(e):`Symbol()`;case`undefined`:return Ar(e);case`function`:case`object`:{if(e===null)return Ar(e);let t=e,n=Fr(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Ar(e)}return Ar(e)}default:return Ar(e)}}function Fr(e,t){for(;e!==null;){let n=lr(e,t);if(n){if(n.get)return X(n.get);if(typeof n.value==`function`)return X(n.value)}e=cr(e)}function n(){return null}return n}function Ir(e){try{return Y(e,``),!0}catch{return!1}}var Lr=K(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Rr=K(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),zr=K([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Br=K([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Vr=K(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Hr=K([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Ur=K([`#text`]),Wr=K(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),Gr=K(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Kr=K(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),qr=K([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Jr=q(/{{[\w\W]*|^[\w\W]*}}/g),Yr=q(/<%[\w\W]*|^[\w\W]*%>/g),Xr=q(/\${[\w\W]*/g),Zr=q(/^data-[\-\w.\u00B7-\uFFFF]+$/),Qr=q(/^aria-[\-\w]+$/),$r=q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ei=q(/^(?:\w+script|data):/i),ti=q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ni=q(/^html$/i),ri=q(/^[a-z][.\w]*(-[.\w]+)+$/i),ii=q(/<[/\w!]/g),ai=q(/<[/\w]/g),oi=q(/<\/no(script|embed|frames)/i),si=q(/\/>/i),$={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ci=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],li=K(Z({},ci)),ui=function(){let e={};return mr(ci,t=>{e[t]=q(RegExp(`</`+t+`(?=[\\t\\n\\f\\r />])`,`i`))}),K(e)}(),di=function(){return typeof window>`u`?null:window},fi=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},pi=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},mi=function(e,t,n,r){return J(e,t)&&yr(e[t])?Z(r.base?Q(r.base):{},e[t],r.transform):n},hi=function(e,t,n){let r=J(e,t)?e[t]:void 0;return r&&typeof r==`object`?Q(r):n()};function gi(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:di(),t=e=>gi(e);if(t.version=`3.4.16`,t.removed=[],!e||!e.document||e.document.nodeType!==$.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=Fr(d,`cloneNode`),p=Fr(d,`remove`),m=Fr(d,`removeAttributeNode`),h=Fr(d,`nextSibling`),g=Fr(d,`childNodes`),_=Fr(d,`parentNode`),v=Fr(d,`shadowRoot`),y=Fr(d,`attributes`),b=o&&o.prototype?Fr(o.prototype,`nodeType`):null,x=o&&o.prototype?Fr(o.prototype,`nodeName`):null,ee=o&&o.prototype?Fr(o.prototype,`ownerDocument`):null,S=function(e){return b?b(e):e.nodeType},te=function(e){return x?x(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let C,w=``,ne,re=!1,ie=0,ae=function(){if(ie>0)throw jr(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},oe=function(e){ae(),ie++;try{return C.createHTML(e)}finally{ie--}},T=function(e){ae(),ie++;try{return C.createScriptURL(e)}finally{ie--}},se=function(){return re||=(ne=fi(u,i),!0),ne},ce=n,le=ce.implementation,E=ce.createNodeIterator,D=ce.createDocumentFragment,ue=ce.getElementsByTagName,de=r.importNode,O=pi();t.isSupported=typeof ar==`function`&&typeof _==`function`&&le&&le.createHTMLDocument!==void 0;let k=Jr,fe=Yr,pe=Xr,me=Zr,he=Qr,ge=ei,_e=ti,ve=ri,ye=$r,A=null,be=Z({},[...Lr,...Rr,...zr,...Vr,...Ur]),j=null,xe=Z({},[...Wr,...Gr,...Kr,...qr]),Se=Object.seal(ur(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),M=null,Ce=null,we=Object.seal(ur(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),N=!0,Te=!0,Ee=!1,De=!0,Oe=!1,P=!0,F=!1,I=!1,ke=null,Ae=null,L=!1,je=!1,Me=!1,Ne=!1,Pe=!0,Fe=!1,Ie=`user-content-`,Le=!0,Re=!1,ze={},Be=null,Ve=Z({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),He=null,Ue=Z({},[`audio`,`video`,`img`,`source`,`image`,`track`]),We=null,Ge=Z({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Ke=`http://www.w3.org/1998/Math/MathML`,qe=`http://www.w3.org/2000/svg`,R=`http://www.w3.org/1999/xhtml`,Je=R,Ye=!1,Xe=null,Ze=Z({},[Ke,qe,R],xr),Qe=K([`mi`,`mo`,`mn`,`ms`,`mtext`]),$e=Z({},Qe),et=K([`annotation-xml`]),tt=Z({},et),nt=Z({},[`title`,`style`,`font`,`a`,`script`]),rt=null,it=[`application/xhtml+xml`,`text/html`],z=null,at=null,ot=n.createElement(`form`),st=function(e){return e instanceof RegExp||e instanceof Function},ct=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(at&&at===e)return;(!e||typeof e!=`object`)&&(e={}),e=Q(e),rt=it.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,z=rt===`application/xhtml+xml`?xr:br,A=mi(e,`ALLOWED_TAGS`,be,{transform:z}),j=mi(e,`ALLOWED_ATTR`,xe,{transform:z}),Xe=mi(e,`ALLOWED_NAMESPACES`,Ze,{transform:xr}),We=mi(e,`ADD_URI_SAFE_ATTR`,Ge,{transform:z,base:Ge}),He=mi(e,`ADD_DATA_URI_TAGS`,Ue,{transform:z,base:Ue}),Be=mi(e,`FORBID_CONTENTS`,Ve,{transform:z}),M=mi(e,`FORBID_TAGS`,Q({}),{transform:z}),Ce=mi(e,`FORBID_ATTR`,Q({}),{transform:z}),ze=J(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Q(e.USE_PROFILES):e.USE_PROFILES:!1,N=e.ALLOW_ARIA_ATTR!==!1,Te=e.ALLOW_DATA_ATTR!==!1,Ee=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Oe=e.SAFE_FOR_TEMPLATES||!1,P=e.SAFE_FOR_XML!==!1,F=e.WHOLE_DOCUMENT||!1,je=e.RETURN_DOM||!1,Me=e.RETURN_DOM_FRAGMENT||!1,Ne=e.RETURN_TRUSTED_TYPE||!1,L=e.FORCE_BODY||!1,Pe=e.SANITIZE_DOM!==!1,Fe=e.SANITIZE_NAMED_PROPS||!1,Le=e.KEEP_CONTENT!==!1,Re=e.IN_PLACE||!1,ye=Ir(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:$r,Je=typeof e.NAMESPACE==`string`?e.NAMESPACE:R,$e=hi(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>Z({},Qe)),tt=hi(e,`HTML_INTEGRATION_POINTS`,()=>Z({},et));let t=hi(e,`CUSTOM_ELEMENT_HANDLING`,()=>ur(null));if(Se=ur(null),J(t,`tagNameCheck`)&&st(t.tagNameCheck)&&(Se.tagNameCheck=t.tagNameCheck),J(t,`attributeNameCheck`)&&st(t.attributeNameCheck)&&(Se.attributeNameCheck=t.attributeNameCheck),J(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(Se.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),q(Se),Oe&&(Te=!1),Me&&(je=!0),ze&&(A=Z({},Ur),j=ur(null),ze.html===!0&&(Z(A,Lr),Z(j,Wr)),ze.svg===!0&&(Z(A,Rr),Z(j,Gr),Z(j,qr)),ze.svgFilters===!0&&(Z(A,zr),Z(j,Gr),Z(j,qr)),ze.mathMl===!0&&(Z(A,Vr),Z(j,Kr),Z(j,qr))),we.tagCheck=null,we.attributeCheck=null,J(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?we.tagCheck=e.ADD_TAGS:yr(e.ADD_TAGS)&&(A===be&&(A=Q(A)),Z(A,e.ADD_TAGS,z))),J(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?we.attributeCheck=e.ADD_ATTR:yr(e.ADD_ATTR)&&(j===xe&&(j=Q(j)),Z(j,e.ADD_ATTR,z))),J(e,`ADD_FORBID_CONTENTS`)&&yr(e.ADD_FORBID_CONTENTS)&&(Be===Ve&&(Be=Q(Be)),Z(Be,e.ADD_FORBID_CONTENTS,z)),Le&&(A[`#text`]=!0),F&&Z(A,[`html`,`head`,`body`]),A.table&&(Z(A,[`tbody`]),delete M.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw jr(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw jr(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=C;C=e.TRUSTED_TYPES_POLICY;try{w=oe(``)}catch(e){throw C=t,e}}else e.TRUSTED_TYPES_POLICY===null?(C=void 0,w=``):(C===void 0&&(C=se()),C&&typeof w==`string`&&(w=oe(``)));K&&K(e),at=e},lt=Z({},[...Rr,...zr,...Br]),ut=Z({},[...Vr,...Hr]),dt=function(e,t,n){return t.namespaceURI===R?e===`svg`:t.namespaceURI===Ke?e===`svg`&&(n===`annotation-xml`||$e[n]):!!lt[e]},ft=function(e,t,n){return t.namespaceURI===R?e===`math`:t.namespaceURI===qe?e===`math`&&tt[n]:!!ut[e]},pt=function(e,t,n){return t.namespaceURI===qe&&!tt[n]||t.namespaceURI===Ke&&!$e[n]?!1:!ut[e]&&(nt[e]||!lt[e])},mt=function(e){let t=_(e);(!t||!t.tagName)&&(t={namespaceURI:Je,tagName:`template`});let n=br(e.tagName),r=br(t.tagName);return Xe[e.namespaceURI]?e.namespaceURI===qe?dt(n,t,r):e.namespaceURI===Ke?ft(n,t,r):e.namespaceURI===R?pt(n,t,r):!!(rt===`application/xhtml+xml`&&Xe[e.namespaceURI]):!1},ht=function(e){_r(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(p(e),!_(e))throw jr(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},gt=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},_t=function(e){yt(e);let t=g(e);if(t){let e=[];mr(t,t=>{_r(e,t)}),mr(e,e=>{try{p(e)}catch{}})}let n=y(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&gt(e,r,i)}},B=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}_r(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(je||Me)try{ht(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},vt=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||j[z(i)]||gt(e,r,i)}},yt=function(e){let t=[e];for(;t.length>0;){let e=t.pop();S(e)===$.element&&vt(e);let n=g(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},bt=function(e,t){return P?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},V=function(e){if(!P)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=S(e);if(n===$.processingInstruction||n===$.comment&&Y(ai,e.data)){try{p(e)}catch{}continue}if(n===$.element){let t=e,n=z(te(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&bt(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=g(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},xt=function(e){let t=null,r=null;if(L)e=`<remove></remove>`+e;else{let t=Sr(e,/^[\r\n\t ]+/);r=t&&t[0]}rt===`application/xhtml+xml`&&Je===R&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=C?oe(e):e;if(Je===R)try{t=new l().parseFromString(i,rt)}catch{}if(!t||!t.documentElement){t=le.createDocument(Je,`template`,null);try{t.documentElement.innerHTML=Ye?w:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Je===R?ue.call(t,F?`html`:`body`)[0]:F?t.documentElement:a},H=function(e){let t=ee?ee(e):e.ownerDocument;return E.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},St=function(e){return e=Cr(e,k,` `),e=Cr(e,fe,` `),e=Cr(e,pe,` `),e},Ct=function(e){e.normalize();let t=ee?ee(e):e.ownerDocument,n=E.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=St(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&mr(i,e=>{Tt(e.content)&&Ct(e.content)})},wt=function(e){let t=x?x(e):null;return typeof t!=`string`||z(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},Tt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===$.documentFragment}catch{return!1}},Et=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function U(e,n,r){e.length!==0&&mr(e,e=>{e.call(t,n,r,at)})}let Dt=function(e,t){return!!(P&&e.hasChildNodes()&&!Et(e.firstElementChild)&&Y(ii,e.textContent)&&Y(ii,e.innerHTML)||P&&e.namespaceURI===R&&li[t]&&(Et(e.firstElementChild)||typeof e.textContent==`string`&&Y(ui[t],e.textContent))||e.nodeType===$.processingInstruction||P&&e.nodeType===$.comment&&Y(ai,e.data))},Ot=function(e,t){return e instanceof RegExp?Y(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},kt=function(e,t,n){if(!M[t]&&Ft(t)&&Ot(Se.tagNameCheck,t))return!1;if(Le&&!Be[t]){let t=_(e),r=g(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,h(e))}}}return ht(e),!0},At=function(e,t,n,r){return e.length===0?t:t===n||t===r?Q(t):t},jt=function(e,t){return e===t||_(e)!==null?!1:(Re&&yt(e),!0)},Mt=function(e,n){if(U(O.beforeSanitizeElements,e,null),jt(e,n))return!0;if(wt(e))return ht(e),!0;let r=z(te(e));if(A=At(O.uponSanitizeElement,A,be,ke),U(O.uponSanitizeElement,e,{tagName:r,allowedTags:A}),jt(e,n))return!0;if(Dt(e,r))return ht(e),!0;if(M[r]||!(we.tagCheck instanceof Function&&we.tagCheck(r))&&!A[r]){let t=kt(e,r,n);return t===!1&&(U(O.afterSanitizeElements,e,null),jt(e,n))?!0:t}if(S(e)===$.element&&!mt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Y(oi,e.innerHTML))return ht(e),!0;if(Oe&&e.nodeType===$.text){let n=St(e.textContent);e.textContent!==n&&(_r(t.removed,{element:e.cloneNode()}),e.textContent=n)}return U(O.afterSanitizeElements,e,null),jt(e,n)},Nt=function(e,t,r){if(Ce[t]||bt(t,e)||Pe&&(t===`id`||t===`name`)&&(r in n||r in ot))return!1;let i=j[t]||we.attributeCheck instanceof Function&&we.attributeCheck(t,e);return Te&&Y(me,t)||N&&Y(he,t)?!0:i?We[t]||Y(ye,Cr(r,_e,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&wr(r,`data:`)===0&&He[e]||Ee&&!Y(ge,Cr(r,_e,``))?!0:!r:Ft(e)&&Ot(Se.tagNameCheck,e)&&Ot(Se.attributeNameCheck,t,e)||t===`is`&&Se.allowCustomizedBuiltInElements&&Ot(Se.tagNameCheck,r)},Pt=Z({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Ft=function(e){return!Pt[br(e)]&&Y(ve,e)},It=function(e,t,n,r){if(C&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return oe(r);case`TrustedScriptURL`:return T(r)}return r},Lt=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!wt(e)||(ht(e),!1)}catch{return B(t,e),!1}},Rt=function(e,n){if(U(O.beforeSanitizeAttributes,e,null),jt(e,n))return;let r=e.attributes;if(!r||wt(e))return;j=At(O.uponSanitizeAttribute,j,xe,Ae);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0},a=r.length,o=z(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=z(s),d=l,f=s===`value`?d:Tr(d),p=!1;if(i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,U(O.uponSanitizeAttribute,e,i),f=i.attrValue,Fe&&(u===`id`||u===`name`)&&wr(f,Ie)!==0&&(B(s,e,n),f=Ie+f,p=!0),P&&Y(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){B(s,e,n);continue}if(u===`attributename`&&Sr(f,`href`)){B(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){B(s,e,n);continue}if(!De&&Y(si,f)){B(s,e,n);continue}if(Oe&&(f=St(f)),!Nt(o,u,f)){B(s,e,n);continue}f=It(o,u,c,f),f!==d&&Lt(e,s,c,f)&&p&&gr(t.removed)}}U(O.afterSanitizeAttributes,e,null),jt(e,n)},zt=function(e){let t=null,n=H(e);for(U(O.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(U(O.uponSanitizeShadowNode,t,null),Mt(t,e),Rt(t,e),Tt(t.content)&&zt(t.content),S(t)===$.element){let e=v(t);Tt(e)&&(Bt(e),zt(e))}U(O.afterSanitizeShadowDOM,e,null)},Bt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){zt(e.shadow);continue}let n=e.node,r=S(n)===$.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=x?x(n):null;if(typeof e==`string`&&z(e)===`template`){let e=n.content;Tt(e)&&t.push({node:e,shadow:null})}}if(r){let e=v(n);Tt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Ye=!e,Ye&&(e=`<!-->`),typeof e!=`string`&&!Et(e)&&(e=Pr(e),typeof e!=`string`))throw jr(`dirty is not a string, aborting`);if(!t.isSupported)return e;I?(A=ke,j=Ae):ct(n),(O.uponSanitizeElement.length>0||O.uponSanitizeAttribute.length>0)&&(A=Q(A)),O.uponSanitizeAttribute.length>0&&(j=Q(j)),t.removed=[];let c=Re&&typeof e!=`string`&&Et(e);if(c){V(e);let t=te(e);if(typeof t==`string`){let n=z(t);if(!A[n]||M[n])throw _t(e),jr(`root node is forbidden and cannot be sanitized in-place`)}if(wt(e))throw _t(e),jr(`root node is clobbered and cannot be sanitized in-place`);try{Bt(e)}catch(t){throw _t(e),t}}else if(Et(e))i=xt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===$.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Bt(i);else{if(!je&&!Oe&&!F&&e.indexOf(`<`)===-1)return C&&Ne?oe(e):e;if(i=xt(e),!i)return je?null:Ne?w:``}i&&L&&ht(i.firstChild);let l=c?e:i;try{let e=H(l);for(;o=e.nextNode();)Mt(o,l),Rt(o,l),Tt(o.content)&&zt(o.content)}catch(n){throw c&&(_t(e),mr(t.removed,e=>{e.element&&yt(e.element)})),n}if(c){let n=!1;if(mr(t.removed,t=>{t.element&&(t.element===e&&(n=!0),yt(t.element))}),n)throw jr(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return Oe&&Ct(e),e}if(je){if(Oe&&Ct(i),Me)for(s=D.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(j.shadowroot||j.shadowrootmode)&&(s=de.call(r,s,!0)),s}let u=F?i.outerHTML:i.innerHTML;return F&&A[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Y(ni,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
68
+ `+u),Oe&&(u=St(u)),C&&Ne?oe(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ct(e),I=!0,ke=A,Ae=j},t.clearConfig=function(){at=null,I=!1,ke=null,Ae=null,C=ne,w=``},t.isValidAttribute=function(e,t,n){at||ct({});let r=z(e),i=z(t);return Nt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&J(O,e)&&_r(O[e],t)},t.removeHook=function(e,t){if(J(O,e)){if(t!==void 0){let n=hr(O[e],t);return n===-1?void 0:vr(O[e],n,1)[0]}return gr(O[e])}},t.removeHooks=function(e){J(O,e)&&(O[e]=[])},t.removeAllHooks=function(){O=pi()},t}var _i=gi(),vi=`modulepreload`,yi=function(e){return`/nors/`+e},bi={},xi=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=yi(t,n),t=s(t),t in bi)return;bi[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:vi,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Si=0;async function Ci(e){let t=_i.sanitize(String(await G.parse(e??``)));return{html:t,mermaid:t.includes(`class="language-mermaid"`)}}async function wi(e){if(!e)return;let t=[...e.querySelectorAll(`pre code.language-mermaid`)];if(t.length===0)return;let n=[];for(let e of t){let t=e.textContent??``,r=e.closest(`pre`);if(!r)continue;let i=document.createElement(`figure`);i.className=`mermaid-frame is-loading`,i.innerHTML=`
69
+ <figcaption class="mermaid-bar">
70
+ <span class="mermaid-label">Diagram</span>
71
+ <button type="button" class="mermaid-zoom" aria-pressed="false">Expand</button>
72
+ </figcaption>
73
+ <div class="mermaid-viewport" tabindex="0" aria-label="Diagram">
74
+ <div class="spin-wrap" role="status" aria-label="Loading diagram"><span class="spin"></span></div>
75
+ </div>
76
+ `,r.replaceWith(i);let a=i.querySelector(`.mermaid-viewport`);a&&(i.querySelector(`.mermaid-zoom`)?.addEventListener(`click`,e=>{let t=i.classList.toggle(`zoomed`),n=e.currentTarget;n.setAttribute(`aria-pressed`,String(t)),n.textContent=t?`Fit`:`Expand`}),n.push({frame:i,viewport:a,source:t}))}let r;try{r=(await xi(async()=>{let{default:e}=await import(`./mermaid.core-Cjiz9dvF.js`);return{default:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]))).default}catch{for(let e of n)Ti(e.frame,e.viewport,e.source);return}r.initialize({startOnLoad:!1,securityLevel:`strict`,suppressErrorRendering:!0,theme:`base`,fontFamily:`'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif`,flowchart:{curve:`basis`,nodeSpacing:42,rankSpacing:52,padding:14,useMaxWidth:!1},themeVariables:{background:`#12151a`,primaryColor:`#172431`,primaryTextColor:`#edf6ff`,primaryBorderColor:`#6ec8ff`,secondaryColor:`#20242e`,secondaryTextColor:`#edf6ff`,secondaryBorderColor:`#718095`,tertiaryColor:`#101820`,tertiaryTextColor:`#edf6ff`,tertiaryBorderColor:`#526273`,lineColor:`#91a9bd`,textColor:`#edf6ff`,mainBkg:`#172431`,nodeBorder:`#6ec8ff`,clusterBkg:`#101820`,clusterBorder:`#526273`,edgeLabelBackground:`#12151a`,noteBkgColor:`#20242e`,noteTextColor:`#edf6ff`,noteBorderColor:`#718095`,actorBkg:`#172431`,actorBorder:`#6ec8ff`,actorTextColor:`#edf6ff`,actorLineColor:`#718095`,signalColor:`#b9e4ff`,signalTextColor:`#edf6ff`,labelBoxBkgColor:`#172431`,labelBoxBorderColor:`#718095`,labelTextColor:`#edf6ff`,loopTextColor:`#edf6ff`,activationBkgColor:`#20242e`,activationBorderColor:`#6ec8ff`,sequenceNumberColor:`#0b0d10`,fontSize:`15px`}});for(let{frame:e,viewport:t,source:i}of n)try{if(!await r.parse(i,{suppressErrors:!0}))throw Error(`Invalid Mermaid syntax`);let n=await r.render(`nors-diagram-${++Si}`,i);t.innerHTML=n.svg,n.bindFunctions?.(t);let a=t.querySelector(`svg`);if(!a)throw Error(`Mermaid returned no diagram`);a.setAttribute(`role`,`img`),a.setAttribute(`aria-label`,`Mermaid diagram`),a.removeAttribute(`height`),a.removeAttribute(`width`),e.classList.remove(`is-loading`)}catch{Ti(e,t,i)}}function Ti(e,t,n){e.classList.remove(`is-loading`),e.classList.add(`has-error`),t.removeAttribute(`tabindex`),t.removeAttribute(`aria-label`);let r=document.createElement(`p`);r.className=`mermaid-error`,r.textContent=`This diagram could not be rendered.`;let i=document.createElement(`pre`),a=document.createElement(`code`);a.textContent=n,i.append(a),t.replaceChildren(r,i)}var Ei=P(`<main class=reader>`),Di=P(`<nav class=reader-nav aria-label="Note navigation"><a class=back-link href=#/><svg width=18 height=18 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round aria-hidden=true><path d="m15 18-6-6 6-6"></path></svg>All notes</a><div class=reader-actions><button type=button class=danger-ghost></button><a class=button-link><svg width=17 height=17 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round aria-hidden=true><path d="M12 20h9"></path><path d="M16.5 3.5a2.1 2.1 0 0 1 3 3L8 18l-4 1 1-4Z"></path></svg>Edit note`),Oi=P(`<p class=reader-summary>`),ki=P(`<span class=detail-separator aria-hidden=true>·`),Ai=P(`<div class=reader-tags aria-label=Tags>`),ji=P(`<div class=draft-notice>This note is still a draft.`),Mi=P(`<article class=reader-document><header class=reader-head><div class=reader-badges><span class="kind badge"></span><span class="status badge"></span></div><h1></h1><div class=reader-details><span>Updated </span></div></header><div class="prose reader-prose">`),Ni=P(`<div class=dialog-backdrop role=presentation><section class=confirm-dialog role=alertdialog aria-modal=true aria-labelledby=delete-title aria-describedby=delete-description><div class=dialog-icon aria-hidden=true><svg width=22 height=22 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M3 6h18"></path><path d="M8 6V4h8v2"></path><path d="m19 6-1 14H6L5 6"></path><path d="M10 11v5M14 11v5"></path></svg></div><div class=dialog-copy><h2 id=delete-title>Delete this note?</h2><p id=delete-description><strong></strong> will be permanently deleted. This action cannot be undone.</p></div><div class=dialog-actions><button type=button class=ghost autofocus>Cancel</button><button type=button class=danger-confirm>`),Pi=P(`<svg width=17 height=17 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round aria-hidden=true><path d="M3 6h18"></path><path d="M8 6V4h8v2"></path><path d="m19 6-1 14H6L5 6"></path><path d="M10 11v5M14 11v5">`),Fi=P(`<span class=tag>#`),Ii=e=>{let[t,n]=y(``),[r,i]=y(!1),[a,o]=y(!1),s,[c]=C(()=>e.slug,async t=>{try{return await Xe(t)}catch(t){return t instanceof Error&&t.message===`session expired`?e.onExpired():n(t instanceof Error?t.message:String(t)),null}}),[l]=C(c,async e=>e?Ci(e.body):{html:``,mermaid:!1});ee(async()=>{l()?.mermaid&&await wi(s)});function u(e){let t=new Date(e);return Number.isNaN(t.getTime())?e.slice(0,10):new Intl.DateTimeFormat(void 0,{day:`numeric`,month:`short`,year:`numeric`}).format(t)}async function d(t){i(!0),n(``);try{await Qe(t.id),nt(`/`)}catch(t){t instanceof Error&&t.message===`session expired`?e.onExpired():n(t instanceof Error?t.message:String(t))}finally{i(!1),o(!1)}}return(()=>{var e=Ei();return L(e,M(z,{get message(){return t()},onDismiss:()=>n(``)}),null),L(e,M(N,{get when(){return c.loading||l.loading},get children(){return M(ct,{label:`Loading note`})}}),null),L(e,M(N,{get when(){return Te(()=>!c.loading)()&&c()},children:e=>[(()=>{var t=Di(),n=t.firstChild.nextSibling.firstChild,i=n.nextSibling;return n.$$click=()=>o(!0),L(n,M(N,{get when(){return r()},get fallback(){return Pi()},get children(){return M(st,{})}}),null),L(n,()=>r()?`Deleting…`:`Delete`,null),x(t=>{var a=r(),o=`#/edit/${encodeURIComponent(e().slug)}`;return a!==t.e&&(n.disabled=t.e=a),o!==t.t&&I(i,`href`,t.t=o),t},{e:void 0,t:void 0}),t})(),(()=>{var t=Mi(),n=t.firstChild,r=n.firstChild,i=r.firstChild,a=i.nextSibling,o=r.nextSibling,c=o.nextSibling,d=c.firstChild;d.firstChild;var f=n.nextSibling;L(i,()=>Be[e().kind]),L(a,(()=>{var t=Te(()=>e().status===`draft`);return()=>t()?`Draft`:e().status===`archived`?`Archived`:`Published`})()),L(o,()=>e().title),L(n,M(N,{get when(){return e().summary},get children(){var t=Oi();return L(t,()=>e().summary),t}}),c),L(d,()=>u(e().updated),null),L(c,M(N,{get when(){return e().tags.length>0},get children(){return[ki(),(()=>{var t=Ai();return L(t,()=>e().tags.map(e=>(()=>{var t=Fi();return t.firstChild,L(t,e,null),t})())),t})()]}}),null),L(t,M(N,{get when(){return e().status===`draft`},get children(){return ji()}}),f);var p=s;return typeof p==`function`?Ae(p,f):s=f,x(t=>{var n=e().status===`draft`,r=l()?.html??``;return n!==t.e&&a.classList.toggle(`draft`,t.e=n),r!==t.t&&(f.innerHTML=t.t=r),t},{e:void 0,t:void 0}),t})(),M(N,{get when(){return a()},get children(){var t=Ni(),n=t.firstChild.firstChild.nextSibling,i=n.firstChild.nextSibling.firstChild,a=n.nextSibling.firstChild,s=a.nextSibling;return t.$$keydown=e=>{e.key===`Escape`&&!r()&&o(!1)},t.$$click=e=>{e.target===e.currentTarget&&!r()&&o(!1)},L(i,()=>e().title),a.$$click=()=>o(!1),s.$$click=()=>d(e()),L(s,M(N,{get when(){return r()},get children(){return M(st,{})}}),null),L(s,()=>r()?`Deleting…`:`Delete note`,null),x(e=>{var t=r(),n=r();return t!==e.e&&(a.disabled=e.e=t),n!==e.t&&(s.disabled=e.t=n),e},{e:void 0,t:void 0}),t}})]}),null),e})()};F([`click`,`keydown`]);var Li=P(`<main class=editor>`),Ri=P(`<a class=view-link><svg width=17 height=17 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round aria-hidden=true><path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z"></path><circle cx=12 cy=12 r=3></circle></svg>View note`),zi=P(`<nav class="crumbs editor-nav"><a class=back-link href=#/><svg width=18 height=18 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round aria-hidden=true><path d="m15 18-6-6 6-6"></path></svg>All notes</a><span class=spacer></span><button type=button class=pinbtn><svg width=17 height=17 viewBox="0 0 24 24"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M8 3h8l-1 8 3 3v2H6v-2l3-3z"></path><line x1=12 y1=16 x2=12 y2=21>`),Bi=P(`<div class=draft-notice>Restored your unsaved changes from before you were signed out.`),Vi=P(`<input class=doctitle placeholder="New note title…"maxlength=160 required>`),Hi=P(`<div class=note-meta-fields><label><span>Slug</span><input placeholder=note-url maxlength=80 required><small>Used in the note URL and on its dashboard card.</small></label><label><span>Tags</span><input placeholder="server, cli, mac"><small>Separate tags with commas.`),Ui=P(`<div class="tabs kindpills">`),Wi=P(`<div class=iconbar><div class=icons><button type=button title=Bold aria-label=Bold>B</button><button type=button title=Italic aria-label=Italic>I</button><button type=button title=Link aria-label=Link><svg width=18 height=18 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg></button><button type=button title=List aria-label=List><svg width=18 height=18 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><line x1=8 y1=6 x2=21 y2=6></line><line x1=8 y1=12 x2=21 y2=12></line><line x1=8 y1=18 x2=21 y2=18></line><line x1=3 y1=6 x2=3.01 y2=6></line><line x1=3 y1=12 x2=3.01 y2=12></line><line x1=3 y1=18 x2=3.01 y2=18></line></svg></button><button type=button title="Numbered list"aria-label="Numbered list"><span class=glyph>1.</span></button><button type=button title=Heading aria-label=Heading>H</button><button type=button title=Quote aria-label=Quote><span class=glyph>❝</span></button><button type=button title=Code aria-label=Code><svg width=18 height=18 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline></svg></button><button type=button title="Mermaid diagram"aria-label="Mermaid diagram"><svg width=18 height=18 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon></svg></button></div><div class=minitabs><button type=button>Write</button><button type=button>Preview`),Gi=P(`<textarea class=doctext placeholder="Write your note here…">`),Ki=P(`<div class=edit-foot><span class=edit-shortcut><kbd></kbd><kbd>S</kbd> to save</span><button type=button class=ghost></button><button type=button>`),qi=P(`<button type=button>`),Ji=P(`<div class="prose preview">`);function Yi(e){let t={ç:`c`,ğ:`g`,ı:`i`,ö:`o`,ş:`s`,ü:`u`};return e.toLowerCase().replace(/[çğıöşü]/g,e=>t[e]).replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``).slice(0,80)}var Xi=/Mac|iPhone|iPad/.test(navigator.userAgent)?`⌘`:`Ctrl`,Zi=`nors_unsaved:`;function Qi(e,t){let n=Zi+e,r=sessionStorage.getItem(n);if(sessionStorage.removeItem(n),!r)return null;try{let e=JSON.parse(r);return e.id===t?e:null}catch{return null}}function $i(){return{id:``,title:``,slug:``,summary:``,body:``,kind:`scratch`,tags:[],pinned:!1,status:`draft`,sort:0,updated:``}}var ea=e=>{let[t,n]=y(``),[r]=C(()=>e.slug,async t=>{if(t===`$new`)return $i();try{return await Xe(t)}catch(t){return t instanceof Error&&t.message===`session expired`?e.onExpired():n(t instanceof Error?t.message:String(t)),null}});return(()=>{var i=Li();return L(i,M(z,{get message(){return t()},onDismiss:()=>n(``)}),null),L(i,M(N,{get when(){return r.loading},get children(){return M(ct,{label:`Loading note`})}}),null),L(i,M(N,{get when(){return r()},children:t=>M(ta,{get route(){return e.slug},get initial(){return t()},get onExpired(){return e.onExpired}})}),null),i})()},ta=e=>{let t=()=>e.initial,n=Qi(e.route,t().id),[r,i]=y(n?.title??t().title),[a,o]=y(n?.slug??t().slug),[s,c]=y(n?.tags??t().tags.join(`, `)),[l,u]=y(n?.body??t().body),[d,f]=y(n?.kind??t().kind),[p,m]=y(n?.pinned??t().pinned),[h,g]=y(`write`),_=()=>JSON.stringify([r(),a(),s(),l(),d(),p()]),v=JSON.stringify([t().title,t().slug,t().tags.join(`, `),t().body,t().kind,t().pinned]),b=!0,S=location.hash,te=!!t().id||!!n;ie(()=>{if(He()||_()===v)return;let n={id:t().id,title:r(),slug:a(),tags:s(),body:l(),kind:d(),pinned:p()};sessionStorage.setItem(Zi+e.route,JSON.stringify(n))}),re(()=>{let e=()=>{if(!b){b=!0;return}if(_()===v||confirm(`Discard unsaved changes?`)){S=location.hash;return}b=!1,location.hash===S?b=!0:location.hash=S},n=e=>{_()!==v&&e.preventDefault()},r=e=>{!(e.metaKey||e.ctrlKey)||e.altKey||e.shiftKey||e.key.toLowerCase()!==`s`||(e.preventDefault(),fe()||ye(t().status===`published`?`published`:`draft`))},i=()=>ce();window.addEventListener(`hashchange`,e),window.addEventListener(`beforeunload`,n),window.addEventListener(`keydown`,r),window.addEventListener(`resize`,i),ie(()=>{window.removeEventListener(`hashchange`,e),window.removeEventListener(`beforeunload`,n),window.removeEventListener(`keydown`,r),window.removeEventListener(`resize`,i)})});let[C,w]=y(``),[ae,oe]=y(!1),T,se;function ce(){let e=T;if(!e)return;let t=window.scrollY;e.style.height=`auto`,e.style.height=`${e.scrollHeight}px`,window.scrollTo({top:t}),document.activeElement===e&&le(e)}function le(e){let t=getComputedStyle(e),n=parseFloat(t.lineHeight)||24,r=e.value.slice(e.selectionEnd).split(`
77
+ `).length-1,i=e.getBoundingClientRect().bottom-parseFloat(t.paddingBottom)-r*n-((document.querySelector(`.edit-foot`)?.getBoundingClientRect().top??window.innerHeight)-12);i>0&&window.scrollBy({top:i})}ee(ne([l,h],()=>queueMicrotask(ce)));function E(e,t){queueMicrotask(()=>{T?.focus(),T?.setSelectionRange(e,t)})}function D(e,t,n){let r=T;if(!r)return;let i=l(),a=r.selectionStart??i.length,o=r.selectionEnd??i.length,s=i.slice(a,o)||n;u(i.slice(0,a)+e+s+t+i.slice(o)),g(`write`),E(a+e.length,a+e.length+s.length)}function ue(e){let t=T;if(!t)return;let n=l(),r=t.selectionStart??0,i=t.selectionEnd??0,a=n.lastIndexOf(`
78
+ `,r-1)+1,o=n.indexOf(`
79
+ `,i),s=o<0?n.length:o,c=n.slice(a,s).split(`
80
+ `).map(t=>t.startsWith(e)?t:e+t).join(`
81
+ `);u(n.slice(0,a)+c+n.slice(s)),g(`write`),E(a,a+c.length)}function de(){let e="\n```mermaid\ngraph TD\n A --> B\n```\n",t=T;if(!t)return u(l()+e);let n=l(),r=t.selectionStart??n.length;u(n.slice(0,r)+e+n.slice(t.selectionEnd??r)),g(`write`),E(r+35,r+35)}function O(e){if(!(e.metaKey||e.ctrlKey)||e.altKey||e.shiftKey)return;let t=e.key.toLowerCase();if(t===`b`)D(`**`,`**`,`text`);else if(t===`i`)D(`*`,`*`,`text`);else if(t===`k`)D(`[`,`](https://)`,`text`);else return;e.preventDefault()}async function k(){if(h()===`preview`)return;g(`preview`),oe(!0);let e=await Ci(l()).finally(()=>oe(!1));h()===`preview`&&(w(e.html),e.mermaid&&requestAnimationFrame(()=>wi(se)))}let[fe,pe]=y(null),[me,he]=y(``);function ge(e){return(e.split(`
82
+ `).map(e=>e.trim()).find(e=>e!==``&&!e.startsWith(`#`)&&!e.startsWith("```"))??``).replace(/!\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/[*_`>#\-[\]()]/g,``).trim().slice(0,160)}function _e(e){return[...new Set(e.split(`,`).map(e=>e.trim().replace(/^#+/,``)).filter(Boolean))]}function ve(e){let n=!t().id;return{title:r().trim(),slug:a().trim(),summary:n?ge(l()):t().summary,body:l(),kind:d(),tags:_e(s()),pinned:p(),status:e,sort:t().sort}}async function ye(n){if(!r().trim())return he(`Title is required.`);if(!a().trim())return he(`Slug is required.`);if(!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(a().trim()))return he(`Slug can only contain lowercase letters, numbers, and single hyphens.`);let i=ve(n);pe(n),he(``);try{let e=await Ze(i,t().id||void 0);v=_(),nt(`/n/${encodeURIComponent(e.slug)}`)}catch(t){t instanceof Error&&t.message===`session expired`?e.onExpired():he(t instanceof Error?t.message:String(t))}finally{pe(null)}}return[M(z,{get message(){return me()},onDismiss:()=>he(``)}),(()=>{var e=zi(),n=e.firstChild.nextSibling.nextSibling,r=n.firstChild;return L(e,M(N,{get when(){return t().slug},get children(){var e=Ri();return x(()=>I(e,`href`,`#/n/${encodeURIComponent(t().slug)}`)),e}}),n),n.$$click=()=>m(!p()),x(e=>{var t=!!p(),i=p()?`Unpin`:`Pin to top`,a=p(),o=p()?`currentColor`:`none`;return t!==e.e&&n.classList.toggle(`on`,e.e=t),i!==e.t&&I(n,`title`,e.t=i),a!==e.a&&I(n,`aria-pressed`,e.a=a),o!==e.o&&I(r,`fill`,e.o=o),e},{e:void 0,t:void 0,a:void 0,o:void 0}),e})(),M(N,{when:n,get children(){return Bi()}}),(()=>{var e=Vi();return e.$$input=e=>{let t=e.currentTarget.value;i(t),te||o(Yi(t))},x(()=>e.value=r()),e})(),(()=>{var e=Hi(),t=e.firstChild,n=t.firstChild.nextSibling,r=t.nextSibling.firstChild.nextSibling;return n.$$input=e=>{te=!0,o(e.currentTarget.value.toLowerCase())},I(n,`spellcheck`,!1),r.$$input=e=>c(e.currentTarget.value),I(r,`spellcheck`,!1),x(()=>n.value=a()),x(()=>r.value=s()),e})(),(()=>{var e=Ui();return L(e,M(we,{each:ze,children:e=>(()=>{var t=qi();return t.$$click=()=>f(e),L(t,()=>Be[e]),x(()=>t.classList.toggle(`on`,d()===e)),t})()})),e})(),(()=>{var e=Wi(),t=e.firstChild,n=t.firstChild,r=n.nextSibling,i=r.nextSibling,a=i.nextSibling,o=a.nextSibling,s=o.nextSibling,c=s.nextSibling,l=c.nextSibling,u=l.nextSibling,d=t.nextSibling.firstChild,f=d.nextSibling;return n.$$click=()=>D(`**`,`**`,`text`),r.$$click=()=>D(`*`,`*`,`text`),i.$$click=()=>D(`[`,`](https://)`,`text`),a.$$click=()=>ue(`- `),o.$$click=()=>ue(`1. `),s.$$click=()=>ue(`## `),c.$$click=()=>ue(`> `),l.$$click=()=>D("`","`",`code`),u.$$click=de,d.$$click=()=>g(`write`),f.$$click=k,x(e=>{var t=h()===`write`,n=h()===`preview`;return t!==e.e&&d.classList.toggle(`on`,e.e=t),n!==e.t&&f.classList.toggle(`on`,e.t=n),e},{e:void 0,t:void 0}),e})(),M(N,{get when(){return h()===`write`},get fallback(){return M(N,{get when(){return!ae()},get fallback(){return(()=>{var e=Ji();return L(e,M(ct,{label:`Rendering preview`})),e})()},get children(){var e=Ji(),t=se;return typeof t==`function`?Ae(t,e):se=e,x(()=>e.innerHTML=C()),e}})},get children(){var e=Gi();e.$$keydown=O,e.$$input=e=>u(e.currentTarget.value);var t=T;return typeof t==`function`?Ae(t,e):T=e,x(()=>e.value=l()),e}}),(()=>{var e=Ki(),n=e.firstChild,r=n.firstChild,i=n.nextSibling,a=i.nextSibling;return L(r,Xi),i.$$click=()=>ye(`draft`),L(i,M(N,{get when(){return fe()===`draft`},get children(){return M(st,{})}}),null),L(i,()=>t().status===`published`?`Move to drafts`:`Save draft`,null),a.$$click=()=>ye(`published`),L(a,M(N,{get when(){return fe()===`published`},get children(){return M(st,{})}}),null),L(a,()=>t().status===`published`?`Save changes`:`Publish`,null),x(e=>{var t=fe()!==null,n=fe()!==null;return t!==e.e&&(i.disabled=e.e=t),n!==e.t&&(a.disabled=e.t=n),e},{e:void 0,t:void 0}),e})()]};F([`click`,`input`,`keydown`]);var na=P(`<p class=menu-mail>`),ra=P(`<div class=menu><button type=button class=out>Sign out`),ia=P(`<nav class=row><button type=button class=muted>+ New</button><div class=avatar-wrap><button type=button class=avatar aria-label=Account>`),aa=P(`<div class=shell><header class=top><a class=brand href=#/><img alt width=30 height=30><h1>Nors`),oa=P(`<p class=menu-mail>superuser`),sa=P(`<div class=center-page><form class=login><h2>Superuser</h2><p class=hint>Same PocketBase account as Skadi. Token stays in this browser.</p><label>Email<input type=email autocomplete=username required></label><label>Password<input type=password autocomplete=current-password required></label><button type=submit>`),ca=()=>{new URLSearchParams(location.search).get(`new`)===`1`&&history.replaceState(null,``,`${location.pathname}#/edit/${et}`);let[e,t]=y(He()),[n,r]=y(``),[i,a]=y(``),[o,s]=y(``),[c,l]=y(!1),u=rt(),[d,f]=y(!1),p;re(()=>{let e=e=>{p&&!p.contains(e.target)&&f(!1)},t=e=>{e.key===`Escape`&&f(!1)};document.addEventListener(`click`,e),document.addEventListener(`keydown`,t),window.addEventListener(We,_),ie(()=>{document.removeEventListener(`click`,e),document.removeEventListener(`keydown`,t),window.removeEventListener(We,_)})});let m=()=>{e();try{let e=JSON.parse(localStorage.getItem(`nors_pb_user`)||`{}`);return e&&typeof e==`object`&&`email`in e&&typeof e.email==`string`?e.email:``}catch{return``}},h=()=>(m()[0]??`N`).toUpperCase();async function g(e){e.preventDefault(),l(!0),s(``);try{await Je(n(),i()),t(He()),a(``)}catch(e){s(e instanceof Error?e.message:String(e))}finally{l(!1)}}function _(){Ue(),t(null)}return(()=>{var t=aa(),l=t.firstChild,v=l.firstChild.firstChild;return L(t,M(z,{get message(){return o()},onDismiss:()=>s(``)}),l),L(l,M(N,{get when(){return e()},get children(){var e=ia(),t=e.firstChild,n=t.nextSibling,r=n.firstChild;t.$$click=()=>nt(`/edit/$new`);var i=p;return typeof i==`function`?Ae(i,n):p=n,r.$$click=()=>f(!d()),L(r,h),L(n,M(N,{get when(){return d()},get children(){var e=ra(),t=e.firstChild;return L(e,M(N,{get when(){return m()},get fallback(){return oa()},get children(){var e=na();return L(e,m),e}}),t),t.$$click=_,e}}),null),x(()=>I(r,`aria-expanded`,d())),e}}),null),L(t,M(N,{get when(){return e()},get fallback(){return(()=>{var e=sa(),t=e.firstChild,o=t.firstChild.nextSibling.nextSibling,s=o.firstChild.nextSibling,l=o.nextSibling,u=l.firstChild.nextSibling,d=l.nextSibling;return t.addEventListener(`submit`,g),s.$$input=e=>r(e.currentTarget.value),u.$$input=e=>a(e.currentTarget.value),L(d,M(N,{get when(){return c()},get children(){return M(st,{})}}),null),L(d,()=>c()?`Signing in…`:`Enter`,null),x(()=>d.disabled=c()),x(()=>s.value=n()),x(()=>u.value=i()),e})()},get children(){return(()=>{let e=u();return e.name===`read`?M(Ii,{get slug(){return e.slug},onExpired:_}):e.name===`edit`?M(ea,{get slug(){return e.slug},onExpired:_}):M(gt,{onExpired:_})})()}}),null),x(()=>I(v,`src`,`/nors/nors-mark.svg`)),t})()};F([`click`,`input`]);var la=document.getElementById(`root`);if(!la)throw Error(`#root missing`);Oe(()=>M(ca,{}),la);export{xi as t};
@@ -1 +1 @@
1
- import"./chunk-FOHPRMQF-DzxwRta7.js";import{w as e}from"./mermaid-parser.core-Bh2pMn-f.js";export{e as createInfoServices};
1
+ import"./chunk-FOHPRMQF-DzxwRta7.js";import{w as e}from"./mermaid-parser.core-cDotXjEj.js";export{e as createInfoServices};
@@ -1,2 +1,2 @@
1
- import{m as e}from"./src-BH-TyZbA.js";import{n as t}from"./mermaid-parser.core-Bh2pMn-f.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{c as r}from"./chunk-DU6HZSFF-DdkkHC2K.js";import{f as i}from"./mermaid.core-CL8sN1KK.js";var a={parse:n(async n=>{let r=await t(`info`,n);e.debug(r)},`parse`)},o={version:`11.17.2`},s={parser:a,db:{getVersion:n(()=>o.version,`getVersion`)},renderer:{draw:n((t,n,a)=>{e.debug(`rendering info diagram
1
+ import{m as e}from"./src-BH-TyZbA.js";import{n as t}from"./mermaid-parser.core-cDotXjEj.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{c as r}from"./chunk-DU6HZSFF-DryrSPb1.js";import{f as i}from"./mermaid.core-Cjiz9dvF.js";var a={parse:n(async n=>{let r=await t(`info`,n);e.debug(r)},`parse`)},o={version:`11.17.2`},s={parser:a,db:{getVersion:n(()=>o.version,`getVersion`)},renderer:{draw:n((t,n,a)=>{e.debug(`rendering info diagram
2
2
  `+t);let o=i(n);r(o,100,400,!0),o.append(`g`).append(`text`).attr(`x`,100).attr(`y`,40).attr(`class`,`version`).attr(`font-size`,32).style(`text-anchor`,`middle`).text(`v${a}`)},`draw`)}};export{s as diagram};
@@ -1,4 +1,4 @@
1
- import"./src-BH-TyZbA.js";import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{H as t,K as n,U as r,a as i,c as a,s as o,v as s,w as c,x as l,y as u}from"./chunk-DU6HZSFF-DdkkHC2K.js";import{p as d}from"./chunk-75Z2AOVW-OUM6F-Z2.js";import{t as f}from"./rough.esm-Dy-Kn_BL.js";import{f as p}from"./mermaid.core-CL8sN1KK.js";var m=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,14],i=[1,12],a=[1,13],o=[6,7,8],s=[1,20],c=[1,18],l=[1,19],u=[6,7,11],d=[1,6,13,14],f=[1,23],p=[1,24],m=[1,6,7,11,13,14],h={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`ISHIKAWA`,11:`EOF`,13:`SPACELIST`,14:`TEXT`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 15:r.addNode(a[s-1].length,a[s].trim());break;case 16:r.addNode(0,a[s].trim())}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:a},t(o,[2,3]),{1:[2,2]},t(o,[2,4]),t(o,[2,5]),{1:[2,6],6:r,12:15,13:i,14:a},{6:r,9:16,12:11,13:i,14:a},{6:s,7:c,10:17,11:l},t(u,[2,18],{14:[1,21]}),t(u,[2,16]),t(u,[2,17]),{6:s,7:c,10:22,11:l},{1:[2,7],6:r,12:15,13:i,14:a},t(d,[2,14],{7:f,11:p}),t(m,[2,8]),t(m,[2,9]),t(m,[2,10]),t(u,[2,15]),t(d,[2,13],{7:f,11:p}),t(m,[2,11]),t(m,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import"./src-BH-TyZbA.js";import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{H as t,K as n,U as r,a as i,c as a,s as o,v as s,w as c,x as l,y as u}from"./chunk-DU6HZSFF-DryrSPb1.js";import{p as d}from"./chunk-75Z2AOVW-LW4FaixB.js";import{t as f}from"./rough.esm-Dy-Kn_BL.js";import{f as p}from"./mermaid.core-Cjiz9dvF.js";var m=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,14],i=[1,12],a=[1,13],o=[6,7,8],s=[1,20],c=[1,18],l=[1,19],u=[6,7,11],d=[1,6,13,14],f=[1,23],p=[1,24],m=[1,6,7,11,13,14],h={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`ISHIKAWA`,11:`EOF`,13:`SPACELIST`,14:`TEXT`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 15:r.addNode(a[s-1].length,a[s].trim());break;case 16:r.addNode(0,a[s].trim())}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:a},t(o,[2,3]),{1:[2,2]},t(o,[2,4]),t(o,[2,5]),{1:[2,6],6:r,12:15,13:i,14:a},{6:r,9:16,12:11,13:i,14:a},{6:s,7:c,10:17,11:l},t(u,[2,18],{14:[1,21]}),t(u,[2,16]),t(u,[2,17]),{6:s,7:c,10:22,11:l},{1:[2,7],6:r,12:15,13:i,14:a},t(d,[2,14],{7:f,11:p}),t(m,[2,8]),t(m,[2,9]),t(m,[2,10]),t(u,[2,15]),t(d,[2,13],{7:f,11:p}),t(m,[2,11]),t(m,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};h.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{p as e}from"./src-BH-TyZbA.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{H as n,K as r,U as i,a,c as o,v as s,w as c,x as l,y as u}from"./chunk-DU6HZSFF-DdkkHC2K.js";import{t as d}from"./arc-BEvzHx4o.js";import{t as f}from"./chunk-5VM5RSS4-ZNzvKenW.js";import{a as p,n as m,o as h,s as g}from"./chunk-F27PBJKO-D4tBKW95.js";var _=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,8,10,11,12,14,16,17,18],r=[1,9],i=[1,10],a=[1,11],o=[1,12],s=[1,13],c=[1,14],l={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:`error`,4:`journey`,6:`EOF`,8:`SPACE`,10:`NEWLINE`,11:`title`,12:`acc_title`,13:`acc_title_value`,14:`acc_descr`,15:`acc_descr_value`,16:`acc_descr_multiline_value`,17:`section`,18:`taskName`,19:`taskData`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 10:case 11:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$=`task`}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:i,14:a,16:o,17:s,18:c},e(n,[2,7],{1:[2,1]}),e(n,[2,3]),{9:15,11:r,12:i,14:a,16:o,17:s,18:c},e(n,[2,5]),e(n,[2,6]),e(n,[2,8]),{13:[1,16]},{15:[1,17]},e(n,[2,11]),e(n,[2,12]),{19:[1,18]},e(n,[2,4]),e(n,[2,9]),e(n,[2,10]),e(n,[2,13])],defaultActions:{},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{p as e}from"./src-BH-TyZbA.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{H as n,K as r,U as i,a,c as o,v as s,w as c,x as l,y as u}from"./chunk-DU6HZSFF-DryrSPb1.js";import{t as d}from"./arc-BEvzHx4o.js";import{t as f}from"./chunk-5VM5RSS4-ZNzvKenW.js";import{a as p,n as m,o as h,s as g}from"./chunk-F27PBJKO-C_xYca_6.js";var _=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,8,10,11,12,14,16,17,18],r=[1,9],i=[1,10],a=[1,11],o=[1,12],s=[1,13],c=[1,14],l={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:`error`,4:`journey`,6:`EOF`,8:`SPACE`,10:`NEWLINE`,11:`title`,12:`acc_title`,13:`acc_title_value`,14:`acc_descr`,15:`acc_descr_value`,16:`acc_descr_multiline_value`,17:`section`,18:`taskName`,19:`taskData`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 10:case 11:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$=`task`}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:i,14:a,16:o,17:s,18:c},e(n,[2,7],{1:[2,1]}),e(n,[2,3]),{9:15,11:r,12:i,14:a,16:o,17:s,18:c},e(n,[2,5]),e(n,[2,6]),e(n,[2,8]),{13:[1,16]},{15:[1,17]},e(n,[2,11]),e(n,[2,12]),{19:[1,18]},e(n,[2,4]),e(n,[2,9]),e(n,[2,10]),e(n,[2,13])],defaultActions:{},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};l.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{m as e}from"./src-BH-TyZbA.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{J as n,et as r,f as i,rt as a,tt as o,x as s,z as c}from"./chunk-DU6HZSFF-DdkkHC2K.js";import"./chunk-75Z2AOVW-OUM6F-Z2.js";import"./chunk-PWAF6VOD-B__l-VgZ.js";import"./chunk-GMAD6QVW-CZU7s-_u.js";import{t as l}from"./chunk-5VM5RSS4-ZNzvKenW.js";import"./chunk-P2QGCYS3-BH6JrbP_.js";import"./chunk-4HAMMTFA-CQW8auRW.js";import{i as u,r as d}from"./chunk-GVQU2GXP-BQGI6BgU.js";import{n as f}from"./chunk-L3NEJ4N5-OjXnRmPt.js";import{f as p,n as m,t as h}from"./mermaid.core-CL8sN1KK.js";var g=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],h=[6,7,11,24],g=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],x={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`KANBAN`,11:`EOF`,13:`SPACELIST`,16:`ICON`,17:`CLASS`,20:`NODE_DSTART`,21:`NODE_DESCR`,22:`NODE_DEND`,23:`NODE_ID`,24:`SHAPE_DATA`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s-1].id),r.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 18:case 23:r.decorateNode({class:a[s]});break;case 19:r.getLogger().trace(`SPACELIST`);break;case 20:r.getLogger().trace(`Node: `,a[s-1].id),r.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:r.decorateNode({icon:a[s]});break;case 27:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:r,9:22,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:u,7:d,10:23,11:f},e(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:c}),e(p,[2,19]),e(p,[2,21],{15:30,24:m}),e(p,[2,22]),e(p,[2,23]),e(h,[2,25]),e(h,[2,26]),e(h,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:f},{1:[2,7],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},e(g,[2,14],{7:_,11:v}),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(p,[2,16],{15:37,24:m}),e(p,[2,17]),e(p,[2,18]),e(p,[2,20],{24:b}),e(h,[2,31]),{21:[1,39]},{22:[1,40]},e(g,[2,13],{7:_,11:v}),e(y,[2,11]),e(y,[2,12]),e(p,[2,15],{24:b}),e(h,[2,30]),{22:[1,41]},e(h,[2,27]),e(h,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{m as e}from"./src-BH-TyZbA.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{J as n,et as r,f as i,rt as a,tt as o,x as s,z as c}from"./chunk-DU6HZSFF-DryrSPb1.js";import"./chunk-75Z2AOVW-LW4FaixB.js";import"./chunk-PWAF6VOD-DQEgoOPv.js";import"./chunk-GMAD6QVW-Cp7hNYJZ.js";import{t as l}from"./chunk-5VM5RSS4-ZNzvKenW.js";import"./chunk-P2QGCYS3-VWs361To.js";import"./chunk-4HAMMTFA-Cvo56g-z.js";import{i as u,r as d}from"./chunk-GVQU2GXP-C_cC2nJk.js";import{n as f}from"./chunk-L3NEJ4N5-C5_1i29s.js";import{f as p,n as m,t as h}from"./mermaid.core-Cjiz9dvF.js";var g=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],h=[6,7,11,24],g=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],x={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`KANBAN`,11:`EOF`,13:`SPACELIST`,16:`ICON`,17:`CLASS`,20:`NODE_DSTART`,21:`NODE_DESCR`,22:`NODE_DEND`,23:`NODE_ID`,24:`SHAPE_DATA`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s-1].id),r.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 18:case 23:r.decorateNode({class:a[s]});break;case 19:r.getLogger().trace(`SPACELIST`);break;case 20:r.getLogger().trace(`Node: `,a[s-1].id),r.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:r.decorateNode({icon:a[s]});break;case 27:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:r,9:22,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:u,7:d,10:23,11:f},e(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:c}),e(p,[2,19]),e(p,[2,21],{15:30,24:m}),e(p,[2,22]),e(p,[2,23]),e(h,[2,25]),e(h,[2,26]),e(h,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:f},{1:[2,7],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},e(g,[2,14],{7:_,11:v}),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(p,[2,16],{15:37,24:m}),e(p,[2,17]),e(p,[2,18]),e(p,[2,20],{24:b}),e(h,[2,31]),{21:[1,39]},{22:[1,40]},e(g,[2,13],{7:_,11:v}),e(y,[2,11]),e(y,[2,12]),e(p,[2,15],{24:b}),e(h,[2,30]),{22:[1,41]},e(h,[2,27]),e(h,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};x.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{n as e,t}from"./path-fybaL0A-.js";import{t as n}from"./array-BifhSqXX.js";import{rt as r}from"./chunk-75Z2AOVW-OUM6F-Z2.js";function i(e){return e[0]}function a(e){return e[1]}function o(o,s){var c=e(!0),l=null,u=r,d=null,f=t(p);o=typeof o==`function`?o:o===void 0?i:e(o),s=typeof s==`function`?s:s===void 0?a:e(s);function p(e){var t,r=(e=n(e)).length,i,a=!1,p;for(l??(d=u(p=f())),t=0;t<=r;++t)!(t<r&&c(i=e[t],t,e))===a&&((a=!a)?d.lineStart():d.lineEnd()),a&&d.point(+o(i,t,e),+s(i,t,e));if(p)return d=null,p+``||null}return p.x=function(t){return arguments.length?(o=typeof t==`function`?t:e(+t),p):o},p.y=function(t){return arguments.length?(s=typeof t==`function`?t:e(+t),p):s},p.defined=function(t){return arguments.length?(c=typeof t==`function`?t:e(!!t),p):c},p.curve=function(e){return arguments.length?(u=e,l!=null&&(d=u(l)),p):u},p.context=function(e){return arguments.length?(e==null?l=d=null:d=u(l=e),p):l},p}export{o as t};
1
+ import{n as e,t}from"./path-fybaL0A-.js";import{t as n}from"./array-BifhSqXX.js";import{rt as r}from"./chunk-75Z2AOVW-LW4FaixB.js";function i(e){return e[0]}function a(e){return e[1]}function o(o,s){var c=e(!0),l=null,u=r,d=null,f=t(p);o=typeof o==`function`?o:o===void 0?i:e(o),s=typeof s==`function`?s:s===void 0?a:e(s);function p(e){var t,r=(e=n(e)).length,i,a=!1,p;for(l??(d=u(p=f())),t=0;t<=r;++t)!(t<r&&c(i=e[t],t,e))===a&&((a=!a)?d.lineStart():d.lineEnd()),a&&d.point(+o(i,t,e),+s(i,t,e));if(p)return d=null,p+``||null}return p.x=function(t){return arguments.length?(o=typeof t==`function`?t:e(+t),p):o},p.y=function(t){return arguments.length?(s=typeof t==`function`?t:e(+t),p):s},p.defined=function(t){return arguments.length?(c=typeof t==`function`?t:e(!!t),p):c},p.curve=function(e){return arguments.length?(u=e,l!=null&&(d=u(l)),p):u},p.context=function(e){return arguments.length?(e==null?l=d=null:d=u(l=e),p):l},p}export{o as t};