@aiquants/markdown 5.0.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/README.md +93 -14
  2. package/dist/{abnfDiagram-VRR7QNED-DeHJ63Vu.js → abnfDiagram-VRR7QNED-D7Rp9EaV.js} +3 -3
  3. package/dist/{abnfDiagram-VRR7QNED-CfVjEUzG.cjs → abnfDiagram-VRR7QNED-KTGT9TWM.cjs} +1 -1
  4. package/dist/{arc-XFFLkHkK.cjs → arc-D5T_urCC.cjs} +1 -1
  5. package/dist/arc-DzZml7Bc.js +83 -0
  6. package/dist/{architectureDiagram-ZJ3FMSHR-7xJ6YYGu.cjs → architectureDiagram-ZJ3FMSHR-BOo3y9aD.cjs} +1 -1
  7. package/dist/{architectureDiagram-ZJ3FMSHR-CQ1m3MUB.js → architectureDiagram-ZJ3FMSHR-DLrGYTYy.js} +123 -123
  8. package/dist/{blockDiagram-677ZJIJ3-BPC3se0e.js → blockDiagram-677ZJIJ3-B60l5Fpl.js} +166 -166
  9. package/dist/{blockDiagram-677ZJIJ3-CJOFqwiW.cjs → blockDiagram-677ZJIJ3-DnjCjo0a.cjs} +1 -1
  10. package/dist/{c4Diagram-LMCZKHZV-BEIrp4t6.js → c4Diagram-LMCZKHZV-BmbplKCu.js} +2 -2
  11. package/dist/{c4Diagram-LMCZKHZV-D8ytYGhR.cjs → c4Diagram-LMCZKHZV-bd8fWQ1F.cjs} +1 -1
  12. package/dist/channel-B3oXm84X.js +5 -0
  13. package/dist/{channel-CJQcZr8o.cjs → channel-DJ_PyD9w.cjs} +1 -1
  14. package/dist/{chunk-2Q5K7J3B-l8ly7Yjr.js → chunk-2Q5K7J3B-C0hbxO3D.js} +1 -1
  15. package/dist/{chunk-2Q5K7J3B-BbMQR3Sm.cjs → chunk-2Q5K7J3B-CWLCO342.cjs} +1 -1
  16. package/dist/{chunk-32BRIVSS-BwDfmprN.cjs → chunk-32BRIVSS-Cb9nTxqN.cjs} +1 -1
  17. package/dist/{chunk-32BRIVSS-BhQJBlVw.js → chunk-32BRIVSS-DUWtkDEY.js} +1 -1
  18. package/dist/{chunk-5VM5RSS4-Bfis-x7E.js → chunk-5VM5RSS4-C3mSh-gE.js} +1 -1
  19. package/dist/{chunk-5VM5RSS4-CqDQlS7v.cjs → chunk-5VM5RSS4-DHA5n_Ls.cjs} +1 -1
  20. package/dist/{chunk-EX3LRPZG-9aDULZwJ.cjs → chunk-EX3LRPZG-ByY6_kep.cjs} +1 -1
  21. package/dist/{chunk-EX3LRPZG-DUTbzwDM.js → chunk-EX3LRPZG-DCF1zjtT.js} +50 -50
  22. package/dist/{chunk-JWPE2WC7-DpcSSOP5.js → chunk-JWPE2WC7-CPLOunIL.js} +1 -1
  23. package/dist/{chunk-JWPE2WC7-5cM5nFf6.cjs → chunk-JWPE2WC7-CUBzYD4G.cjs} +1 -1
  24. package/dist/{chunk-MOJQB5TN-D_h6bolU.js → chunk-MOJQB5TN-CmOhW6SK.js} +9 -9
  25. package/dist/{chunk-MOJQB5TN-Cw864mUL.cjs → chunk-MOJQB5TN-P8-yb3-j.cjs} +1 -1
  26. package/dist/{chunk-PUDLZKDR-B0wZjmzv.js → chunk-PUDLZKDR-DH7B7ZTK.js} +22 -22
  27. package/dist/{chunk-PUDLZKDR-yLvT3c9x.cjs → chunk-PUDLZKDR-pKdIELvz.cjs} +1 -1
  28. package/dist/{chunk-RYQCIY6F-DTKYsCgk.js → chunk-RYQCIY6F-C7ytn_QX.js} +6 -6
  29. package/dist/{chunk-RYQCIY6F-hj9dRWMT.cjs → chunk-RYQCIY6F-DcvQCEoc.cjs} +1 -1
  30. package/dist/{chunk-V7JOEXUC-COa9uddv.js → chunk-V7JOEXUC-BgLcssUF.js} +5 -5
  31. package/dist/{chunk-V7JOEXUC-DIQ8n1AN.cjs → chunk-V7JOEXUC-CtXgqODy.cjs} +1 -1
  32. package/dist/{chunk-VR4S4FIN-B72PxPVm.js → chunk-VR4S4FIN-BK6xeIQk.js} +3 -3
  33. package/dist/{chunk-VR4S4FIN-Cy-2mZJB.cjs → chunk-VR4S4FIN-Cc4GDi2Z.cjs} +1 -1
  34. package/dist/{chunk-XXDRQBXY-D2Sgptl-.js → chunk-XXDRQBXY-COtZ25Ez.js} +1 -1
  35. package/dist/{chunk-XXDRQBXY-DmoUE7-y.cjs → chunk-XXDRQBXY-D1OixGzR.cjs} +1 -1
  36. package/dist/{classDiagram-OUVF2IWQ-GjsCEuKI.cjs → classDiagram-OUVF2IWQ-DDLmqaG6.cjs} +1 -1
  37. package/dist/{classDiagram-v2-EOCWNBFH-Dah4_VL7.js → classDiagram-OUVF2IWQ-Jc-IwOm0.js} +2 -2
  38. package/dist/{classDiagram-v2-EOCWNBFH-GjsCEuKI.cjs → classDiagram-v2-EOCWNBFH-DDLmqaG6.cjs} +1 -1
  39. package/dist/{classDiagram-OUVF2IWQ-Dah4_VL7.js → classDiagram-v2-EOCWNBFH-Jc-IwOm0.js} +2 -2
  40. package/dist/components/MarkdownRenderer.d.ts +5 -2
  41. package/dist/components/MarkdownViewer.d.ts +3 -2
  42. package/dist/components/NodesRenderer.d.ts +1 -5
  43. package/dist/components/embeds/ClientFrame.d.ts +13 -0
  44. package/dist/components/embeds/LinkCard.d.ts +9 -0
  45. package/dist/components/embeds/ProviderEmbed.d.ts +11 -0
  46. package/dist/components/embeds/embedLabels.d.ts +12 -0
  47. package/dist/components/embeds/frameMessages.d.ts +7 -0
  48. package/dist/components/embeds/markdownEmbeds.d.ts +2 -0
  49. package/dist/components/embeds/requestQueue.d.ts +16 -0
  50. package/dist/components/embeds.d.ts +0 -8
  51. package/dist/components/htmlSanitizer.d.ts +4 -0
  52. package/dist/components/mdastNodes/HTMLBlockContainerNode.d.ts +1 -2
  53. package/dist/components/rawHtml.d.ts +6 -3
  54. package/dist/components/viewerLabels.d.ts +3 -1
  55. package/dist/{cose-bilkent-JH36ORCC-Pi0l3C5o.js → cose-bilkent-JH36ORCC-DaucPocG.js} +1 -1
  56. package/dist/{cose-bilkent-JH36ORCC-Vi9pHFwc.cjs → cose-bilkent-JH36ORCC-OwiXHdQY.cjs} +1 -1
  57. package/dist/css/zenn-content.css +0 -40
  58. package/dist/{cynefinDiagram-TSTJHNR4-BQ2k9Z6b.cjs → cynefinDiagram-TSTJHNR4-Ag-HcuUm.cjs} +1 -1
  59. package/dist/{cynefinDiagram-TSTJHNR4-CIh03JTU.js → cynefinDiagram-TSTJHNR4-Dkmz7gDw.js} +47 -47
  60. package/dist/{dagre-VKFMJZFB-cINcPwV3.js → dagre-VKFMJZFB-BHGdcjt3.js} +27 -27
  61. package/dist/{dagre-VKFMJZFB-DI2wSrAy.cjs → dagre-VKFMJZFB-Q4CcAQ09.cjs} +1 -1
  62. package/dist/{diagram-FQU43EPY-BonrBTG_.js → diagram-FQU43EPY-DBASKnKu.js} +42 -42
  63. package/dist/{diagram-FQU43EPY-B6iUH2l5.cjs → diagram-FQU43EPY-jWCrN_AW.cjs} +1 -1
  64. package/dist/{diagram-G47NLZAW-CY6mWS2R.cjs → diagram-G47NLZAW-B4XMStX7.cjs} +1 -1
  65. package/dist/{diagram-G47NLZAW-5N876QQA.js → diagram-G47NLZAW-BY1mmnYA.js} +83 -83
  66. package/dist/{diagram-NH7WQ7WH-x3SaRfd6.cjs → diagram-NH7WQ7WH-BS1eEa9R.cjs} +1 -1
  67. package/dist/{diagram-NH7WQ7WH-LFuTbHxY.js → diagram-NH7WQ7WH-BXFvYRtm.js} +18 -18
  68. package/dist/{diagram-OA4YK3LP-B9mVw8cB.cjs → diagram-OA4YK3LP-CTaL_2Nc.cjs} +1 -1
  69. package/dist/{diagram-OA4YK3LP-Cinpbl0B.js → diagram-OA4YK3LP-DgGrzezu.js} +61 -61
  70. package/dist/{diagram-WEI45ONY-HPCHpafe.js → diagram-WEI45ONY-BHxWKH3v.js} +21 -21
  71. package/dist/{diagram-WEI45ONY-BRYVUhRr.cjs → diagram-WEI45ONY-DX7BGSMI.cjs} +1 -1
  72. package/dist/{ebnfDiagram-CCIWWBDH-oLOdtH39.js → ebnfDiagram-CCIWWBDH-BUK_anpV.js} +5 -5
  73. package/dist/{ebnfDiagram-CCIWWBDH-DhFlIi0a.cjs → ebnfDiagram-CCIWWBDH-BpDmVVJY.cjs} +1 -1
  74. package/dist/embeds/frames.d.ts +4 -0
  75. package/dist/embeds/linkCards.d.ts +16 -0
  76. package/dist/embeds/placeholder.d.ts +15 -0
  77. package/dist/embeds/providers.d.ts +73 -0
  78. package/dist/embeds/testing.cjs +1 -0
  79. package/dist/embeds/testing.d.ts +7 -0
  80. package/dist/embeds/testing.js +67 -0
  81. package/dist/embeds.cjs +1 -0
  82. package/dist/embeds.d.ts +4 -0
  83. package/dist/embeds.js +94 -0
  84. package/dist/{erDiagram-Q63AITRT-DCCFR1Ai.cjs → erDiagram-Q63AITRT-Cd9H9BtP.cjs} +1 -1
  85. package/dist/{erDiagram-Q63AITRT-CCtzpK78.js → erDiagram-Q63AITRT-Qb2bmkNp.js} +9 -9
  86. package/dist/{extractHeadings-CGJexznE.js → extractHeadings-B2pUyEPa.js} +5603 -5517
  87. package/dist/extractHeadings-DgefF9l1.cjs +311 -0
  88. package/dist/flowDiagram-23GEKE2U-BOmNlv7X.cjs +1 -0
  89. package/dist/flowDiagram-23GEKE2U-DMZnRz-6.js +7 -0
  90. package/dist/{ganttDiagram-NO4QXBWP-Dfi3nINO.js → ganttDiagram-NO4QXBWP-BVISsrzr.js} +69 -69
  91. package/dist/{ganttDiagram-NO4QXBWP-C9RPyo4r.cjs → ganttDiagram-NO4QXBWP-C6-ExcDz.cjs} +1 -1
  92. package/dist/{gitGraphDiagram-IHSO6WYX-CjAqPhww.js → gitGraphDiagram-IHSO6WYX-BDVA2TFP.js} +38 -38
  93. package/dist/{gitGraphDiagram-IHSO6WYX-mT3NNT7T.cjs → gitGraphDiagram-IHSO6WYX-DLzPc702.cjs} +1 -1
  94. package/dist/index.cjs +1 -1
  95. package/dist/index.client.cjs +1 -1
  96. package/dist/index.client.d.ts +1 -10
  97. package/dist/index.client.js +41 -49
  98. package/dist/index.js +41 -49
  99. package/dist/index.server.cjs +1 -1
  100. package/dist/index.server.d.ts +0 -2
  101. package/dist/index.server.js +116 -161
  102. package/dist/{infoDiagram-FWYZ7A6U-BXWQ9Vy4.js → infoDiagram-FWYZ7A6U-D31UwqjR.js} +1 -1
  103. package/dist/{infoDiagram-FWYZ7A6U-0Co9BitR.cjs → infoDiagram-FWYZ7A6U-DMF_wb2h.cjs} +1 -1
  104. package/dist/{ishikawaDiagram-FXEZZL3T-BKqUBw1i.cjs → ishikawaDiagram-FXEZZL3T-DUlnwraq.cjs} +1 -1
  105. package/dist/{ishikawaDiagram-FXEZZL3T-CZp5P1WE.js → ishikawaDiagram-FXEZZL3T-XA6-gyHY.js} +35 -35
  106. package/dist/{journeyDiagram-5HDEW3XC-DYVTgOOE.js → journeyDiagram-5HDEW3XC-B8sfsWpu.js} +39 -39
  107. package/dist/{journeyDiagram-5HDEW3XC-CeumPQ1I.cjs → journeyDiagram-5HDEW3XC-CwQyFcYa.cjs} +1 -1
  108. package/dist/{kanban-definition-HUTT4EX6-Cg5KnsE9.cjs → kanban-definition-HUTT4EX6-BjPlt2-E.cjs} +1 -1
  109. package/dist/{kanban-definition-HUTT4EX6-CnleRy80.js → kanban-definition-HUTT4EX6-FTrTBare.js} +123 -123
  110. package/dist/{linear-qqwu6T0F.cjs → linear-D3AJM3sY.cjs} +1 -1
  111. package/dist/{linear-Cf8i6Rsk.js → linear-DI9P_z72.js} +32 -32
  112. package/dist/markdown.css +1 -1
  113. package/dist/{mindmap-definition-LN4V7U3C-DfFWeFph.cjs → mindmap-definition-LN4V7U3C-CxgWZidl.cjs} +1 -1
  114. package/dist/{mindmap-definition-LN4V7U3C-lBin9VOm.js → mindmap-definition-LN4V7U3C-YW4YcL9x.js} +33 -33
  115. package/dist/{pegDiagram-2B236MQR-Cf1f-3yi.cjs → pegDiagram-2B236MQR-CUo7q5bl.cjs} +1 -1
  116. package/dist/{pegDiagram-2B236MQR-BiD21lOj.js → pegDiagram-2B236MQR-sJjLKeF3.js} +5 -5
  117. package/dist/{pieDiagram-ENE6RG2P-jwhVsZgX.cjs → pieDiagram-ENE6RG2P-Cy_sUuLQ.cjs} +1 -1
  118. package/dist/{pieDiagram-ENE6RG2P-BqZb6gaV.js → pieDiagram-ENE6RG2P-D4VanIOv.js} +58 -58
  119. package/dist/providers-Bxr2Wb-j.cjs +1 -0
  120. package/dist/providers-Drq7MT_K.js +209 -0
  121. package/dist/{quadrantDiagram-ABIIQ3AL-sO_sIA7b.cjs → quadrantDiagram-ABIIQ3AL-D3c8xLpt.cjs} +1 -1
  122. package/dist/{quadrantDiagram-ABIIQ3AL-CNe9fRLO.js → quadrantDiagram-ABIIQ3AL-ubxphjb_.js} +48 -48
  123. package/dist/{railroadDiagram-RFXS5EU6-53YTkJrs.js → railroadDiagram-RFXS5EU6-DvpD4C_A.js} +3 -3
  124. package/dist/{railroadDiagram-RFXS5EU6-Dkc8k3e9.cjs → railroadDiagram-RFXS5EU6-_Q4W5hB-.cjs} +1 -1
  125. package/dist/{requirementDiagram-TGXJPOKE-C0GMlJO4.cjs → requirementDiagram-TGXJPOKE-DdYIO-wU.cjs} +1 -1
  126. package/dist/{requirementDiagram-TGXJPOKE-D8Gz7jzA.js → requirementDiagram-TGXJPOKE-Dk_6BuX9.js} +3 -3
  127. package/dist/{sankeyDiagram-HTMAVEWB-CEC0GaCg.js → sankeyDiagram-HTMAVEWB-s3Kd7T8n.js} +67 -67
  128. package/dist/{sankeyDiagram-HTMAVEWB-Bw9J2Ay2.cjs → sankeyDiagram-HTMAVEWB-zuYg6LTg.cjs} +1 -1
  129. package/dist/{sequenceDiagram-DBY2YBRQ-BuqPCreB.cjs → sequenceDiagram-DBY2YBRQ-BvNPCevg.cjs} +1 -1
  130. package/dist/{sequenceDiagram-DBY2YBRQ-CKb4m3I0.js → sequenceDiagram-DBY2YBRQ-YQic4wxL.js} +47 -47
  131. package/dist/{sizeCapture-X5ZJPWSS-Dm3rsxXw.cjs → sizeCapture-X5ZJPWSS-BqrdzzsI.cjs} +1 -1
  132. package/dist/{sizeCapture-X5ZJPWSS-CotnTNAA.js → sizeCapture-X5ZJPWSS-qMsWGfjy.js} +1 -1
  133. package/dist/{stateDiagram-2N3HPSRC-GWEIP-C9.js → stateDiagram-2N3HPSRC-D1Ub8LYq.js} +22 -22
  134. package/dist/{stateDiagram-2N3HPSRC-5Y-OlePe.cjs → stateDiagram-2N3HPSRC-Ds8f-scd.cjs} +1 -1
  135. package/dist/{stateDiagram-v2-6OUMAXLB-BZFV8swJ.js → stateDiagram-v2-6OUMAXLB-DW8wjtk3.js} +2 -2
  136. package/dist/{stateDiagram-v2-6OUMAXLB-v77D3Qyf.cjs → stateDiagram-v2-6OUMAXLB-PmrsPXuZ.cjs} +1 -1
  137. package/dist/styles/markdown.css +1 -1
  138. package/dist/{swimlanes-5IMT3BWC-DujAOwAt.js → swimlanes-5IMT3BWC-C8P8vU0w.js} +313 -313
  139. package/dist/{swimlanes-5IMT3BWC-B1hLl8Ph.cjs → swimlanes-5IMT3BWC-jZhcesRT.cjs} +1 -1
  140. package/dist/{swimlanesDiagram-G3AALYLV-B-5z3jDg.js → swimlanesDiagram-G3AALYLV-B9FKeJRf.js} +2 -2
  141. package/dist/{swimlanesDiagram-G3AALYLV-Cklgsxbg.cjs → swimlanesDiagram-G3AALYLV-M5Cg2MHU.cjs} +1 -1
  142. package/dist/{timeline-definition-FHXFAJF6-Fmzt_lvR.js → timeline-definition-FHXFAJF6-Ch-He--D.js} +34 -34
  143. package/dist/{timeline-definition-FHXFAJF6-B2m-aQLI.cjs → timeline-definition-FHXFAJF6-DZm1-KlQ.cjs} +1 -1
  144. package/dist/{vennDiagram-L72KCM5P-zIXK42Cx.js → vennDiagram-L72KCM5P-CaoPscCM.js} +92 -92
  145. package/dist/{vennDiagram-L72KCM5P-rL7UDYbl.cjs → vennDiagram-L72KCM5P-mUSI238J.cjs} +1 -1
  146. package/dist/{wardleyDiagram-EHGQE667-pTeeZ0uM.js → wardleyDiagram-EHGQE667-CSAqF366.js} +11 -11
  147. package/dist/{wardleyDiagram-EHGQE667-CNLieFen.cjs → wardleyDiagram-EHGQE667-CkKP97H-.cjs} +1 -1
  148. package/dist/{xychartDiagram-FW5EYKEG-CD5ik4HK.cjs → xychartDiagram-FW5EYKEG-BivGpkVk.cjs} +1 -1
  149. package/dist/{xychartDiagram-FW5EYKEG-B6UdSSVZ.js → xychartDiagram-FW5EYKEG-OEsTD_k4.js} +37 -37
  150. package/package.json +21 -8
  151. package/dist/arc-DH6k2JIR.js +0 -83
  152. package/dist/channel-DoH_tsOQ.js +0 -5
  153. package/dist/components/mdastNodes/BlockLinkNode.d.ts +0 -5
  154. package/dist/components/mdastNodes/RichLinkCard.d.ts +0 -8
  155. package/dist/components/mdastNodes/TwitterEmbedNode.d.ts +0 -25
  156. package/dist/components/mdastNodes/YouTubeEmbedNode.d.ts +0 -6
  157. package/dist/extractHeadings-lDHB2sBb.cjs +0 -310
  158. package/dist/flowDiagram-23GEKE2U-ORytlvmX.js +0 -7
  159. package/dist/flowDiagram-23GEKE2U-h2WZTCCn.cjs +0 -1
  160. package/dist/plugins/createIntentTweetLink.d.ts +0 -10
  161. package/dist/plugins/extractYouTubeVideoId.d.ts +0 -5
  162. package/dist/plugins/fetchSiteMetadata.d.ts +0 -9
  163. package/dist/plugins/remark-auto-heading-id.d.ts +0 -2
  164. package/dist/plugins/remark-block-link-metadata.d.ts +0 -23
  165. package/dist/plugins/remark-block-link.d.ts +0 -12
  166. package/dist/plugins/remark-twitter-embed.d.ts +0 -20
  167. package/dist/plugins/remark-youtube-embed.d.ts +0 -14
  168. package/dist/simple-logger-DZxBpX7v.cjs +0 -1
  169. package/dist/simple-logger-i94ikRyH.js +0 -101
  170. package/dist/utils/getFaviconUrl.d.ts +0 -1
@@ -0,0 +1,67 @@
1
+ import { E as o } from "../providers-Drq7MT_K.js";
2
+ const n = (e) => {
3
+ if (e !== null && typeof e == "object") {
4
+ for (const t of Object.values(e)) n(t);
5
+ Object.freeze(e);
6
+ }
7
+ return e;
8
+ }, p = n({
9
+ x: {
10
+ src: "https://platform.twitter.com/embed/Tweet.html?id=20&theme=dark&lang=ja&dnt=true",
11
+ messages: [
12
+ { "twttr.embed": { jsonrpc: "2.0", method: "twttr.private.initialized", id: "embed-0", params: [{ iframe_version: "3f8c13b4620b8:1779816981886", data: { tweet_id: "20" } }] } },
13
+ { "twttr.embed": { jsonrpc: "2.0", method: "twttr.private.results", id: "embed-0", params: [{ data: { tweet_id: "20" } }] } },
14
+ { "twttr.embed": { jsonrpc: "2.0", method: "twttr.private.resize", id: "embed-0", params: [{ width: 550, height: 225, data: { tweet_id: "20" } }] } },
15
+ { "twttr.embed": { jsonrpc: "2.0", method: "twttr.private.rendered", id: "embed-0", params: [{ data: { tweet_id: "20" } }] } }
16
+ ]
17
+ },
18
+ instagram: {
19
+ src: "https://www.instagram.com/p/BsOGulcndj-/embed/",
20
+ messages: [
21
+ '{"details":{},"type":"LOADING"}',
22
+ '{"details":{"height":748},"type":"MEASURE"}',
23
+ '{"details":{"styles":[["boxShadow","none"],["border","1px solid #dbdbdb"],["margin","0px 0px 12px"]]},"type":"MOUNTED"}',
24
+ '{"details":{"height":748},"type":"MEASURE"}',
25
+ '{"details":{"height":748},"type":"MEASURE"}'
26
+ ]
27
+ },
28
+ threads: {
29
+ src: "https://www.threads.com/@zuck/post/CuP48CiS5sx/embed/",
30
+ messages: [177]
31
+ },
32
+ bluesky: {
33
+ src: "https://embed.bsky.app/embed/did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3mx5e63uvns2d",
34
+ messages: [
35
+ { height: 366.75, id: null },
36
+ { height: 1116.359375, id: null }
37
+ ]
38
+ },
39
+ reddit: {
40
+ src: "https://embed.reddit.com/r/announcements/comments/t93ec3/this_subreddit_is_closed_for_new_posts_and/?embed=true",
41
+ messages: ['{"type":"resize.embed","data":240}']
42
+ },
43
+ note: {
44
+ src: "https://note.com/embed/notes/nea1b96233fbf",
45
+ messages: ["height::https://note.com/embed/notes/nea1b96233fbf::208"]
46
+ }
47
+ }), m = (e, t, s) => {
48
+ if (e === "note" && typeof t == "string")
49
+ return `height::${s.href}::${t.slice(t.lastIndexOf("::") + 2)}`;
50
+ if (e === "x") {
51
+ const d = s.searchParams.get("id");
52
+ if (d === null) throw new RangeError(`[embeds/testing] an X frame URL needs an id parameter: ${s.href}`);
53
+ const a = JSON.parse(JSON.stringify(t));
54
+ for (const r of a["twttr.embed"].params) r.data.tweet_id = d;
55
+ return a;
56
+ }
57
+ return t;
58
+ }, i = (e) => e.replace(/&/gu, "&amp;").replace(/</gu, "&lt;").replace(/>/gu, "&gt;").replace(/"/gu, "&quot;"), h = (e) => {
59
+ const t = Object.values(o).find((r) => r.frameOrigin === e.origin);
60
+ if (t === void 0) throw new RangeError(`[embeds/testing] no embed provider frames ${e.origin}`);
61
+ const s = p[t.id], d = s === void 0 ? [] : s.messages.map((r) => m(t.id, r, e)), a = d.length === 0 ? "" : `<script>for (const data of ${JSON.stringify(d).replace(/</gu, "\\u003c")}) parent.postMessage(data, "*")<\/script>`;
62
+ return `<!doctype html><html lang="en"><head><meta charset="utf-8"><title>${i(t.name)} stub</title></head><body><p data-embed-stub="${t.id}">${i(t.name)} stub: ${i(e.href)}</p>${a}</body></html>`;
63
+ };
64
+ export {
65
+ p as EMBED_PROVIDER_MESSAGE_SAMPLES,
66
+ h as embedProviderStubPage
67
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./providers-Bxr2Wb-j.cjs"),u=new Set(["autoplay","clipboard-write","encrypted-media","fullscreen","picture-in-picture","web-share"]),d=new Set(["no-referrer","origin","same-origin","strict-origin","strict-origin-when-cross-origin"]),f=(t,e)=>{if(t===void 0)return null;let r;try{r=new URL(t)}catch{return null}return r.protocol==="https:"&&r.username===""&&r.password===""&&r.port===""&&e.includes(r.hostname)?r:null},p=t=>{const e=new Set;for(const r of t.split(";")){const[n]=r.trim().toLowerCase().split(/\s+/u);n!==void 0&&u.has(n)&&e.add(n)}return e.size===0?null:[...e].join("; ")},_=Object.freeze({providers:Object.freeze([]),linkCardEndpoint:null}),m=/^\/(?:[A-Za-z0-9._~-]+\/)*[A-Za-z0-9._~-]+$/u,R=t=>typeof t=="string"&&m.test(t)&&!t.split("/").some(e=>e==="."||e===".."),O=(t,e,r)=>{const n=new URL(t,r);return n.searchParams.set("url",e.href),n},s=Object.freeze({title:300,description:1e3,siteName:200}),o=(t,e)=>{if(typeof t!="string")return null;const r=t.trim();if(r==="")return null;const n=Array.from(r);return n.length>e?n.slice(0,e).join(""):r},l=t=>{if(typeof t!="string")return null;let e;try{e=new URL(t.trim())}catch{return null}return(e.protocol==="http:"||e.protocol==="https:")&&e.username===""&&e.password===""?e.href:null},M=t=>{if(t===null||typeof t!="object"||Array.isArray(t))return null;const e=t;return Object.freeze({title:o(e.title,s.title),description:o(e.description,s.description),siteName:o(e.site_name,s.siteName),image:l(e.image),icon:l(e.icon)})},I="data-embed-url",E=/^[\t\n\f\r \u00a0\u3000]*$/u,a=t=>{let e;try{e=new URL(t)}catch{return null}return(e.protocol==="http:"||e.protocol==="https:")&&e.username===""&&e.password===""?e:null},h=(t,e)=>{if(t===null)return null;let r;for(const n of e)switch(n.kind){case"link":if(r!==void 0)return null;r=n.href;break;case"element":return null;case"text":if(!E.test(n.text))return null;break}return r===t?a(t):null},c=t=>t.endsWith("/")?t.slice(0,-1):t,D=(t,e)=>{const r=a(t.trim());return r!==null&&c(r.href)===c(e.href)};exports.EMBED_FRAME_HEIGHT_LIMITS=i.EMBED_FRAME_HEIGHT_LIMITS;exports.EMBED_PROVIDERS=i.EMBED_PROVIDERS;exports.EMBED_PROVIDER_IDS=i.EMBED_PROVIDER_IDS;exports.embedConnectOriginsOf=i.embedConnectOriginsOf;exports.embedFrameHostsOf=i.embedFrameHostsOf;exports.isEmbedProviderId=i.isEmbedProviderId;exports.resolveEmbed=i.resolveEmbed;exports.EMBED_FRAME_FEATURES=u;exports.EMBED_FRAME_REFERRER_POLICIES=d;exports.EMBED_LINK_ATTRIBUTE=I;exports.EMBED_LINK_SPACE=E;exports.NO_EMBEDS=_;exports.allowedFrameUrlOf=f;exports.isBareLink=D;exports.isLinkCardEndpoint=R;exports.linkCardMetadataOf=M;exports.linkCardRequestOf=O;exports.placeholderLinkOf=h;exports.reduceFrameFeatures=p;
@@ -0,0 +1,4 @@
1
+ export { allowedFrameUrlOf, EMBED_FRAME_FEATURES, EMBED_FRAME_REFERRER_POLICIES, reduceFrameFeatures } from "./embeds/frames.ts";
2
+ export { isLinkCardEndpoint, type LinkCardMetadata, linkCardMetadataOf, linkCardRequestOf, type MarkdownEmbeds, NO_EMBEDS } from "./embeds/linkCards.ts";
3
+ export { EMBED_LINK_ATTRIBUTE, EMBED_LINK_SPACE, isBareLink, type PlaceholderChild, placeholderLinkOf } from "./embeds/placeholder.ts";
4
+ export { EMBED_FRAME_HEIGHT_LIMITS, EMBED_PROVIDER_IDS, EMBED_PROVIDERS, type EmbedContext, type EmbedFrameAttributes, type EmbedLayout, type EmbedProvider, type EmbedProviderId, type EmbedResolution, embedConnectOriginsOf, embedFrameHostsOf, isEmbedProviderId, resolveEmbed, } from "./embeds/providers.ts";
package/dist/embeds.js ADDED
@@ -0,0 +1,94 @@
1
+ import { b as g, E as L, a as y, e as A, c as D, i as S, r as T } from "./providers-Drq7MT_K.js";
2
+ const u = /* @__PURE__ */ new Set(["autoplay", "clipboard-write", "encrypted-media", "fullscreen", "picture-in-picture", "web-share"]), d = /* @__PURE__ */ new Set(["no-referrer", "origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin"]), E = (t, e) => {
3
+ if (t === void 0) return null;
4
+ let r;
5
+ try {
6
+ r = new URL(t);
7
+ } catch {
8
+ return null;
9
+ }
10
+ return r.protocol === "https:" && r.username === "" && r.password === "" && r.port === "" && e.includes(r.hostname) ? r : null;
11
+ }, p = (t) => {
12
+ const e = /* @__PURE__ */ new Set();
13
+ for (const r of t.split(";")) {
14
+ const [n] = r.trim().toLowerCase().split(/\s+/u);
15
+ n !== void 0 && u.has(n) && e.add(n);
16
+ }
17
+ return e.size === 0 ? null : [...e].join("; ");
18
+ }, m = Object.freeze({ providers: Object.freeze([]), linkCardEndpoint: null }), a = /^\/(?:[A-Za-z0-9._~-]+\/)*[A-Za-z0-9._~-]+$/u, h = (t) => typeof t == "string" && a.test(t) && !t.split("/").some((e) => e === "." || e === ".."), _ = (t, e, r) => {
19
+ const n = new URL(t, r);
20
+ return n.searchParams.set("url", e.href), n;
21
+ }, s = Object.freeze({ title: 300, description: 1e3, siteName: 200 }), i = (t, e) => {
22
+ if (typeof t != "string") return null;
23
+ const r = t.trim();
24
+ if (r === "") return null;
25
+ const n = Array.from(r);
26
+ return n.length > e ? n.slice(0, e).join("") : r;
27
+ }, o = (t) => {
28
+ if (typeof t != "string") return null;
29
+ let e;
30
+ try {
31
+ e = new URL(t.trim());
32
+ } catch {
33
+ return null;
34
+ }
35
+ return (e.protocol === "http:" || e.protocol === "https:") && e.username === "" && e.password === "" ? e.href : null;
36
+ }, O = (t) => {
37
+ if (t === null || typeof t != "object" || Array.isArray(t)) return null;
38
+ const e = t;
39
+ return Object.freeze({
40
+ title: i(e.title, s.title),
41
+ description: i(e.description, s.description),
42
+ siteName: i(e.site_name, s.siteName),
43
+ image: o(e.image),
44
+ icon: o(e.icon)
45
+ });
46
+ }, w = "data-embed-url", f = /^[\t\n\f\r \u00a0\u3000]*$/u, c = (t) => {
47
+ let e;
48
+ try {
49
+ e = new URL(t);
50
+ } catch {
51
+ return null;
52
+ }
53
+ return (e.protocol === "http:" || e.protocol === "https:") && e.username === "" && e.password === "" ? e : null;
54
+ }, R = (t, e) => {
55
+ if (t === null) return null;
56
+ let r;
57
+ for (const n of e)
58
+ switch (n.kind) {
59
+ case "link":
60
+ if (r !== void 0) return null;
61
+ r = n.href;
62
+ break;
63
+ case "element":
64
+ return null;
65
+ case "text":
66
+ if (!f.test(n.text)) return null;
67
+ break;
68
+ }
69
+ return r === t ? c(t) : null;
70
+ }, l = (t) => t.endsWith("/") ? t.slice(0, -1) : t, b = (t, e) => {
71
+ const r = c(t.trim());
72
+ return r !== null && l(r.href) === l(e.href);
73
+ };
74
+ export {
75
+ u as EMBED_FRAME_FEATURES,
76
+ g as EMBED_FRAME_HEIGHT_LIMITS,
77
+ d as EMBED_FRAME_REFERRER_POLICIES,
78
+ w as EMBED_LINK_ATTRIBUTE,
79
+ f as EMBED_LINK_SPACE,
80
+ L as EMBED_PROVIDERS,
81
+ y as EMBED_PROVIDER_IDS,
82
+ m as NO_EMBEDS,
83
+ E as allowedFrameUrlOf,
84
+ A as embedConnectOriginsOf,
85
+ D as embedFrameHostsOf,
86
+ b as isBareLink,
87
+ S as isEmbedProviderId,
88
+ h as isLinkCardEndpoint,
89
+ O as linkCardMetadataOf,
90
+ _ as linkCardRequestOf,
91
+ R as placeholderLinkOf,
92
+ p as reduceFrameFeatures,
93
+ T as resolveEmbed
94
+ };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ve=require("./chunk-XXDRQBXY-DmoUE7-y.cjs"),Me=require("./chunk-VR4S4FIN-Cy-2mZJB.cjs"),n=require("./extractHeadings-lDHB2sBb.cjs"),Be=require("./channel-CJQcZr8o.cjs");var ge=(function(){var s=n.__name(function(C,a,c,l){for(c=c||{},l=C.length;l--;c[C[l]]=a);return c},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],o=[1,10],u=[1,11],h=[1,12],_=[1,13],g=[1,23],d=[1,24],k=[1,25],j=[1,26],W=[1,27],S=[1,19],q=[1,28],M=[1,29],D=[1,20],R=[1,18],T=[1,21],I=[1,22],re=[1,36],ne=[1,37],ae=[1,38],ce=[1,39],oe=[1,40],B=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,66,67,68,69,70],O=[1,45],N=[1,46],F=[1,55],Y=[40,48,50,51,52,71,72],P=[1,66],z=[1,64],A=[1,61],G=[1,65],K=[1,67],X=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,66,67,68,69,70],pe=[66,67,68,69,70],ye=[1,85],be=[1,84],me=[1,82],ke=[1,83],Ee=[6,10,42,47],L=[6,10,13,41,42,47,48,49],Q=[1,93],H=[1,92],J=[1,91],U=[19,58],Se=[1,102],Te=[1,101],le=[19,58,61,63],he={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,"?":59,attributeKeyType:60,",":61,ATTRIBUTE_KEY:62,COMMENT:63,cardinality:64,relType:65,ZERO_OR_ONE:66,ZERO_OR_MORE:67,ONE_OR_MORE:68,ONLY_ONE:69,MD_PARENT:70,NON_IDENTIFYING:71,IDENTIFYING:72,WORD:73,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",59:"?",61:",",62:"ATTRIBUTE_KEY",63:"COMMENT",66:"ZERO_OR_ONE",67:"ZERO_OR_MORE",68:"ONE_OR_MORE",69:"ONLY_ONE",70:"MD_PARENT",71:"NON_IDENTIFYING",72:"IDENTIFYING",73:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[54,2],[55,1],[56,1],[56,3],[60,1],[57,1],[12,3],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[14,1],[14,1],[14,1]],performAction:n.__name(function(a,c,l,r,f,e,Z){var t=e.length-1;switch(f){case 1:break;case 2:this.$=[];break;case 3:e[t-1].push(e[t]),this.$=e[t-1];break;case 4:case 5:this.$=e[t];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(e[t-4]),r.addEntity(e[t-2]),r.addRelationship(e[t-4],e[t],e[t-2],e[t-3]);break;case 9:r.addEntity(e[t-8]),r.addEntity(e[t-4]),r.addRelationship(e[t-8],e[t],e[t-4],e[t-5]),r.setClass([e[t-8]],e[t-6]),r.setClass([e[t-4]],e[t-2]);break;case 10:r.addEntity(e[t-6]),r.addEntity(e[t-2]),r.addRelationship(e[t-6],e[t],e[t-2],e[t-3]),r.setClass([e[t-6]],e[t-4]);break;case 11:r.addEntity(e[t-6]),r.addEntity(e[t-4]),r.addRelationship(e[t-6],e[t],e[t-4],e[t-5]),r.setClass([e[t-4]],e[t-2]);break;case 12:r.addEntity(e[t-3]),r.addAttributes(e[t-3],e[t-1]);break;case 13:r.addEntity(e[t-5]),r.addAttributes(e[t-5],e[t-1]),r.setClass([e[t-5]],e[t-3]);break;case 14:r.addEntity(e[t-2]);break;case 15:r.addEntity(e[t-4]),r.setClass([e[t-4]],e[t-2]);break;case 16:r.addEntity(e[t]);break;case 17:r.addEntity(e[t-2]),r.setClass([e[t-2]],e[t]);break;case 18:r.addEntity(e[t-6],e[t-4]),r.addAttributes(e[t-6],e[t-1]);break;case 19:r.addEntity(e[t-8],e[t-6]),r.addAttributes(e[t-8],e[t-1]),r.setClass([e[t-8]],e[t-3]);break;case 20:r.addEntity(e[t-5],e[t-3]);break;case 21:r.addEntity(e[t-7],e[t-5]),r.setClass([e[t-7]],e[t-2]);break;case 22:r.addEntity(e[t-3],e[t-1]);break;case 23:r.addEntity(e[t-5],e[t-3]),r.setClass([e[t-5]],e[t]);break;case 24:case 25:this.$=e[t].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=e[t].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=e[t-3],r.addClass(e[t-2],e[t-1]);break;case 37:case 38:case 59:case 68:this.$=[e[t]];break;case 39:case 40:this.$=e[t-2].concat([e[t]]);break;case 41:this.$=e[t-2],r.setClass(e[t-1],e[t]);break;case 42:this.$=e[t-3],r.addCssStyles(e[t-2],e[t-1]);break;case 43:this.$=[e[t]];break;case 44:e[t-2].push(e[t]),this.$=e[t-2];break;case 46:this.$=e[t-1]+e[t];break;case 54:case 80:case 81:this.$=e[t].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 82:this.$=e[t];break;case 60:e[t].push(e[t-1]),this.$=e[t];break;case 61:this.$={type:e[t-1],name:e[t]};break;case 62:this.$={type:e[t-2],name:e[t-1],keys:e[t]};break;case 63:this.$={type:e[t-2],name:e[t-1],comment:e[t]};break;case 64:this.$={type:e[t-3],name:e[t-2],keys:e[t-1],comment:e[t]};break;case 65:case 67:case 70:this.$=e[t];break;case 66:this.$=e[t-1]+e[t];break;case 69:e[t-2].push(e[t]),this.$=e[t-2];break;case 71:this.$=e[t].replace(/"/g,"");break;case 72:this.$={cardA:e[t],relType:e[t-1],cardB:e[t-2]};break;case 73:this.$=r.Cardinality.ZERO_OR_ONE;break;case 74:this.$=r.Cardinality.ZERO_OR_MORE;break;case 75:this.$=r.Cardinality.ONE_OR_MORE;break;case 76:this.$=r.Cardinality.ONLY_ONE;break;case 77:this.$=r.Cardinality.MD_PARENT;break;case 78:this.$=r.Identification.NON_IDENTIFYING;break;case 79:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:o,24:u,26:h,28:_,29:14,30:15,31:16,32:17,33:g,34:d,35:k,36:j,37:W,40:S,43:q,44:M,48:D,50:R,51:T,52:I},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:30,11:9,22:o,24:u,26:h,28:_,29:14,30:15,31:16,32:17,33:g,34:d,35:k,36:j,37:W,40:S,43:q,44:M,48:D,50:R,51:T,52:I},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:31,64:35,15:[1,32],17:[1,33],20:[1,34],66:re,67:ne,68:ae,69:ce,70:oe}),{23:[1,41]},{25:[1,42]},{27:[1,43]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(B,[2,54]),s(B,[2,55]),s(B,[2,56]),s(B,[2,57]),s(B,[2,58]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:44,40:O,41:N},{16:47,40:O,41:N},{16:48,40:O,41:N},s(i,[2,4]),{11:49,40:S,48:D,50:R,51:T,52:I},{16:50,40:O,41:N},{18:51,19:[1,52],53:53,54:54,58:F},{11:56,40:S,48:D,50:R,51:T,52:I},{65:57,71:[1,58],72:[1,59]},s(Y,[2,73]),s(Y,[2,74]),s(Y,[2,75]),s(Y,[2,76]),s(Y,[2,77]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:P,38:60,41:z,42:A,45:62,46:63,48:G,49:K},s(X,[2,37]),s(X,[2,38]),{16:68,40:O,41:N,42:A},{13:P,38:69,41:z,42:A,45:62,46:63,48:G,49:K},{13:[1,70],15:[1,71]},s(i,[2,17],{64:35,12:72,17:[1,73],42:A,66:re,67:ne,68:ae,69:ce,70:oe}),{19:[1,74]},s(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:F},{55:76,58:[1,77]},{58:[2,65],59:[1,78]},{21:[1,79]},{64:80,66:re,67:ne,68:ae,69:ce,70:oe},s(pe,[2,78]),s(pe,[2,79]),{6:ye,10:be,39:81,42:me,47:ke},{40:[1,86],41:[1,87]},s(Ee,[2,43],{46:88,13:P,41:z,48:G,49:K}),s(L,[2,45]),s(L,[2,50]),s(L,[2,51]),s(L,[2,52]),s(L,[2,53]),s(i,[2,41],{42:A}),{6:ye,10:be,39:89,42:me,47:ke},{14:90,40:Q,50:H,73:J},{16:94,40:O,41:N},{11:95,40:S,48:D,50:R,51:T,52:I},{18:96,19:[1,97],53:53,54:54,58:F},s(i,[2,12]),{19:[2,60]},s(U,[2,61],{56:98,57:99,60:100,62:Se,63:Te}),s([19,58,62,63],[2,67]),{58:[2,66]},s(i,[2,22],{15:[1,104],17:[1,103]}),s([40,48,50,51,52],[2,72]),s(i,[2,36]),{13:P,41:z,45:105,46:63,48:G,49:K},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(X,[2,39]),s(X,[2,40]),s(L,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,80]),s(i,[2,81]),s(i,[2,82]),{13:[1,106],42:A},{13:[1,108],15:[1,107]},{19:[1,109]},s(i,[2,15]),s(U,[2,62],{57:110,61:[1,111],63:Te}),s(U,[2,63]),s(le,[2,68]),s(U,[2,71]),s(le,[2,70]),{18:112,19:[1,113],53:53,54:54,58:F},{16:114,40:O,41:N},s(Ee,[2,44],{46:88,13:P,41:z,48:G,49:K}),{14:115,40:Q,50:H,73:J},{16:116,40:O,41:N},{14:117,40:Q,50:H,73:J},s(i,[2,13]),s(U,[2,64]),{60:118,62:Se},{19:[1,119]},s(i,[2,20]),s(i,[2,23],{17:[1,120],42:A}),s(i,[2,11]),{13:[1,121],42:A},s(i,[2,10]),s(le,[2,69]),s(i,[2,18]),{18:122,19:[1,123],53:53,54:54,58:F},{14:124,40:Q,50:H,73:J},{19:[1,125]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{75:[2,60],78:[2,66]},parseError:n.__name(function(a,c){if(c.recoverable)this.trace(a);else{var l=new Error(a);throw l.hash=c,l}},"parseError"),parse:n.__name(function(a){var c=this,l=[0],r=[],f=[null],e=[],Z=this.table,t="",ee=0,Oe=0,ve=2,Ne=1,De=e.slice.call(arguments,1),p=Object.create(this.lexer),x={yy:{}};for(var ue in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ue)&&(x.yy[ue]=this.yy[ue]);p.setInput(a,x.yy),x.yy.lexer=p,x.yy.parser=this,typeof p.yylloc>"u"&&(p.yylloc={});var de=p.yylloc;e.push(de);var Le=p.options&&p.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function we(b){l.length=l.length-2*b,f.length=f.length-b,e.length=e.length-b}n.__name(we,"popStack");function Ae(){var b;return b=r.pop()||p.lex()||Ne,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=c.symbols_[b]||b),b}n.__name(Ae,"lex");for(var y,v,m,_e,w={},te,E,Ce,se;;){if(v=l[l.length-1],this.defaultActions[v]?m=this.defaultActions[v]:((y===null||typeof y>"u")&&(y=Ae()),m=Z[v]&&Z[v][y]),typeof m>"u"||!m.length||!m[0]){var fe="";se=[];for(te in Z[v])this.terminals_[te]&&te>ve&&se.push("'"+this.terminals_[te]+"'");p.showPosition?fe="Parse error on line "+(ee+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ve=require("./chunk-XXDRQBXY-D1OixGzR.cjs"),Me=require("./chunk-VR4S4FIN-Cc4GDi2Z.cjs"),n=require("./extractHeadings-DgefF9l1.cjs"),Be=require("./channel-DJ_PyD9w.cjs");var ge=(function(){var s=n.__name(function(C,a,c,l){for(c=c||{},l=C.length;l--;c[C[l]]=a);return c},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],o=[1,10],u=[1,11],h=[1,12],_=[1,13],g=[1,23],d=[1,24],k=[1,25],j=[1,26],W=[1,27],S=[1,19],q=[1,28],M=[1,29],D=[1,20],R=[1,18],T=[1,21],I=[1,22],re=[1,36],ne=[1,37],ae=[1,38],ce=[1,39],oe=[1,40],B=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,66,67,68,69,70],O=[1,45],N=[1,46],F=[1,55],Y=[40,48,50,51,52,71,72],P=[1,66],z=[1,64],A=[1,61],G=[1,65],K=[1,67],X=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,66,67,68,69,70],pe=[66,67,68,69,70],ye=[1,85],be=[1,84],me=[1,82],ke=[1,83],Ee=[6,10,42,47],L=[6,10,13,41,42,47,48,49],Q=[1,93],H=[1,92],J=[1,91],U=[19,58],Se=[1,102],Te=[1,101],le=[19,58,61,63],he={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,"?":59,attributeKeyType:60,",":61,ATTRIBUTE_KEY:62,COMMENT:63,cardinality:64,relType:65,ZERO_OR_ONE:66,ZERO_OR_MORE:67,ONE_OR_MORE:68,ONLY_ONE:69,MD_PARENT:70,NON_IDENTIFYING:71,IDENTIFYING:72,WORD:73,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",59:"?",61:",",62:"ATTRIBUTE_KEY",63:"COMMENT",66:"ZERO_OR_ONE",67:"ZERO_OR_MORE",68:"ONE_OR_MORE",69:"ONLY_ONE",70:"MD_PARENT",71:"NON_IDENTIFYING",72:"IDENTIFYING",73:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[54,2],[55,1],[56,1],[56,3],[60,1],[57,1],[12,3],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[14,1],[14,1],[14,1]],performAction:n.__name(function(a,c,l,r,f,e,Z){var t=e.length-1;switch(f){case 1:break;case 2:this.$=[];break;case 3:e[t-1].push(e[t]),this.$=e[t-1];break;case 4:case 5:this.$=e[t];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(e[t-4]),r.addEntity(e[t-2]),r.addRelationship(e[t-4],e[t],e[t-2],e[t-3]);break;case 9:r.addEntity(e[t-8]),r.addEntity(e[t-4]),r.addRelationship(e[t-8],e[t],e[t-4],e[t-5]),r.setClass([e[t-8]],e[t-6]),r.setClass([e[t-4]],e[t-2]);break;case 10:r.addEntity(e[t-6]),r.addEntity(e[t-2]),r.addRelationship(e[t-6],e[t],e[t-2],e[t-3]),r.setClass([e[t-6]],e[t-4]);break;case 11:r.addEntity(e[t-6]),r.addEntity(e[t-4]),r.addRelationship(e[t-6],e[t],e[t-4],e[t-5]),r.setClass([e[t-4]],e[t-2]);break;case 12:r.addEntity(e[t-3]),r.addAttributes(e[t-3],e[t-1]);break;case 13:r.addEntity(e[t-5]),r.addAttributes(e[t-5],e[t-1]),r.setClass([e[t-5]],e[t-3]);break;case 14:r.addEntity(e[t-2]);break;case 15:r.addEntity(e[t-4]),r.setClass([e[t-4]],e[t-2]);break;case 16:r.addEntity(e[t]);break;case 17:r.addEntity(e[t-2]),r.setClass([e[t-2]],e[t]);break;case 18:r.addEntity(e[t-6],e[t-4]),r.addAttributes(e[t-6],e[t-1]);break;case 19:r.addEntity(e[t-8],e[t-6]),r.addAttributes(e[t-8],e[t-1]),r.setClass([e[t-8]],e[t-3]);break;case 20:r.addEntity(e[t-5],e[t-3]);break;case 21:r.addEntity(e[t-7],e[t-5]),r.setClass([e[t-7]],e[t-2]);break;case 22:r.addEntity(e[t-3],e[t-1]);break;case 23:r.addEntity(e[t-5],e[t-3]),r.setClass([e[t-5]],e[t]);break;case 24:case 25:this.$=e[t].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=e[t].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=e[t-3],r.addClass(e[t-2],e[t-1]);break;case 37:case 38:case 59:case 68:this.$=[e[t]];break;case 39:case 40:this.$=e[t-2].concat([e[t]]);break;case 41:this.$=e[t-2],r.setClass(e[t-1],e[t]);break;case 42:this.$=e[t-3],r.addCssStyles(e[t-2],e[t-1]);break;case 43:this.$=[e[t]];break;case 44:e[t-2].push(e[t]),this.$=e[t-2];break;case 46:this.$=e[t-1]+e[t];break;case 54:case 80:case 81:this.$=e[t].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 82:this.$=e[t];break;case 60:e[t].push(e[t-1]),this.$=e[t];break;case 61:this.$={type:e[t-1],name:e[t]};break;case 62:this.$={type:e[t-2],name:e[t-1],keys:e[t]};break;case 63:this.$={type:e[t-2],name:e[t-1],comment:e[t]};break;case 64:this.$={type:e[t-3],name:e[t-2],keys:e[t-1],comment:e[t]};break;case 65:case 67:case 70:this.$=e[t];break;case 66:this.$=e[t-1]+e[t];break;case 69:e[t-2].push(e[t]),this.$=e[t-2];break;case 71:this.$=e[t].replace(/"/g,"");break;case 72:this.$={cardA:e[t],relType:e[t-1],cardB:e[t-2]};break;case 73:this.$=r.Cardinality.ZERO_OR_ONE;break;case 74:this.$=r.Cardinality.ZERO_OR_MORE;break;case 75:this.$=r.Cardinality.ONE_OR_MORE;break;case 76:this.$=r.Cardinality.ONLY_ONE;break;case 77:this.$=r.Cardinality.MD_PARENT;break;case 78:this.$=r.Identification.NON_IDENTIFYING;break;case 79:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:o,24:u,26:h,28:_,29:14,30:15,31:16,32:17,33:g,34:d,35:k,36:j,37:W,40:S,43:q,44:M,48:D,50:R,51:T,52:I},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:30,11:9,22:o,24:u,26:h,28:_,29:14,30:15,31:16,32:17,33:g,34:d,35:k,36:j,37:W,40:S,43:q,44:M,48:D,50:R,51:T,52:I},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:31,64:35,15:[1,32],17:[1,33],20:[1,34],66:re,67:ne,68:ae,69:ce,70:oe}),{23:[1,41]},{25:[1,42]},{27:[1,43]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(B,[2,54]),s(B,[2,55]),s(B,[2,56]),s(B,[2,57]),s(B,[2,58]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:44,40:O,41:N},{16:47,40:O,41:N},{16:48,40:O,41:N},s(i,[2,4]),{11:49,40:S,48:D,50:R,51:T,52:I},{16:50,40:O,41:N},{18:51,19:[1,52],53:53,54:54,58:F},{11:56,40:S,48:D,50:R,51:T,52:I},{65:57,71:[1,58],72:[1,59]},s(Y,[2,73]),s(Y,[2,74]),s(Y,[2,75]),s(Y,[2,76]),s(Y,[2,77]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:P,38:60,41:z,42:A,45:62,46:63,48:G,49:K},s(X,[2,37]),s(X,[2,38]),{16:68,40:O,41:N,42:A},{13:P,38:69,41:z,42:A,45:62,46:63,48:G,49:K},{13:[1,70],15:[1,71]},s(i,[2,17],{64:35,12:72,17:[1,73],42:A,66:re,67:ne,68:ae,69:ce,70:oe}),{19:[1,74]},s(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:F},{55:76,58:[1,77]},{58:[2,65],59:[1,78]},{21:[1,79]},{64:80,66:re,67:ne,68:ae,69:ce,70:oe},s(pe,[2,78]),s(pe,[2,79]),{6:ye,10:be,39:81,42:me,47:ke},{40:[1,86],41:[1,87]},s(Ee,[2,43],{46:88,13:P,41:z,48:G,49:K}),s(L,[2,45]),s(L,[2,50]),s(L,[2,51]),s(L,[2,52]),s(L,[2,53]),s(i,[2,41],{42:A}),{6:ye,10:be,39:89,42:me,47:ke},{14:90,40:Q,50:H,73:J},{16:94,40:O,41:N},{11:95,40:S,48:D,50:R,51:T,52:I},{18:96,19:[1,97],53:53,54:54,58:F},s(i,[2,12]),{19:[2,60]},s(U,[2,61],{56:98,57:99,60:100,62:Se,63:Te}),s([19,58,62,63],[2,67]),{58:[2,66]},s(i,[2,22],{15:[1,104],17:[1,103]}),s([40,48,50,51,52],[2,72]),s(i,[2,36]),{13:P,41:z,45:105,46:63,48:G,49:K},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(X,[2,39]),s(X,[2,40]),s(L,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,80]),s(i,[2,81]),s(i,[2,82]),{13:[1,106],42:A},{13:[1,108],15:[1,107]},{19:[1,109]},s(i,[2,15]),s(U,[2,62],{57:110,61:[1,111],63:Te}),s(U,[2,63]),s(le,[2,68]),s(U,[2,71]),s(le,[2,70]),{18:112,19:[1,113],53:53,54:54,58:F},{16:114,40:O,41:N},s(Ee,[2,44],{46:88,13:P,41:z,48:G,49:K}),{14:115,40:Q,50:H,73:J},{16:116,40:O,41:N},{14:117,40:Q,50:H,73:J},s(i,[2,13]),s(U,[2,64]),{60:118,62:Se},{19:[1,119]},s(i,[2,20]),s(i,[2,23],{17:[1,120],42:A}),s(i,[2,11]),{13:[1,121],42:A},s(i,[2,10]),s(le,[2,69]),s(i,[2,18]),{18:122,19:[1,123],53:53,54:54,58:F},{14:124,40:Q,50:H,73:J},{19:[1,125]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{75:[2,60],78:[2,66]},parseError:n.__name(function(a,c){if(c.recoverable)this.trace(a);else{var l=new Error(a);throw l.hash=c,l}},"parseError"),parse:n.__name(function(a){var c=this,l=[0],r=[],f=[null],e=[],Z=this.table,t="",ee=0,Oe=0,ve=2,Ne=1,De=e.slice.call(arguments,1),p=Object.create(this.lexer),x={yy:{}};for(var ue in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ue)&&(x.yy[ue]=this.yy[ue]);p.setInput(a,x.yy),x.yy.lexer=p,x.yy.parser=this,typeof p.yylloc>"u"&&(p.yylloc={});var de=p.yylloc;e.push(de);var Le=p.options&&p.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function we(b){l.length=l.length-2*b,f.length=f.length-b,e.length=e.length-b}n.__name(we,"popStack");function Ae(){var b;return b=r.pop()||p.lex()||Ne,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=c.symbols_[b]||b),b}n.__name(Ae,"lex");for(var y,v,m,_e,w={},te,E,Ce,se;;){if(v=l[l.length-1],this.defaultActions[v]?m=this.defaultActions[v]:((y===null||typeof y>"u")&&(y=Ae()),m=Z[v]&&Z[v][y]),typeof m>"u"||!m.length||!m[0]){var fe="";se=[];for(te in Z[v])this.terminals_[te]&&te>ve&&se.push("'"+this.terminals_[te]+"'");p.showPosition?fe="Parse error on line "+(ee+1)+`:
2
2
  `+p.showPosition()+`
3
3
  Expecting `+se.join(", ")+", got '"+(this.terminals_[y]||y)+"'":fe="Parse error on line "+(ee+1)+": Unexpected "+(y==Ne?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(fe,{text:p.match,token:this.terminals_[y]||y,line:p.yylineno,loc:de,expected:se})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+y);switch(m[0]){case 1:l.push(y),f.push(p.yytext),e.push(p.yylloc),l.push(m[1]),y=null,Oe=p.yyleng,t=p.yytext,ee=p.yylineno,de=p.yylloc;break;case 2:if(E=this.productions_[m[1]][1],w.$=f[f.length-E],w._$={first_line:e[e.length-(E||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(E||1)].first_column,last_column:e[e.length-1].last_column},Le&&(w._$.range=[e[e.length-(E||1)].range[0],e[e.length-1].range[1]]),_e=this.performAction.apply(w,[t,Oe,ee,x.yy,m[1],f,e].concat(De)),typeof _e<"u")return _e;E&&(l=l.slice(0,-1*E*2),f=f.slice(0,-1*E),e=e.slice(0,-1*E)),l.push(this.productions_[m[1]][0]),f.push(w.$),e.push(w._$),Ce=Z[l[l.length-2]][l[l.length-1]],l.push(Ce);break;case 3:return!0}}return!0},"parse")},xe=(function(){var C={EOF:1,parseError:n.__name(function(c,l){if(this.yy.parser)this.yy.parser.parseError(c,l);else throw new Error(c)},"parseError"),setInput:n.__name(function(a,c){return this.yy=c||this.yy||{},this._input=a,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:n.__name(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var c=a.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:n.__name(function(a){var c=a.length,l=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;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),l.length-1&&(this.yylineno-=l.length-1);var f=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:l?(l.length===r.length?this.yylloc.first_column:0)+r[r.length-l.length].length-l[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:n.__name(function(){return this._more=!0,this},"more"),reject:n.__name(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:n.__name(function(a){this.unput(this.match.slice(a))},"less"),pastInput:n.__name(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n.__name(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n.__name(function(){var a=this.pastInput(),c=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
@@ -1,12 +1,12 @@
1
- import { g as Bt } from "./chunk-XXDRQBXY-D2Sgptl-.js";
2
- import { s as Ft } from "./chunk-VR4S4FIN-B72PxPVm.js";
3
- import { _ as d, V as Yt, U as Pt, O as zt, Q as Gt, ad as Kt, ae as Ut, W as rt, $ as V, aj as Zt, ai as jt, al as Wt, am as Qt, aa as Xt, ab as qt, X as Ht, ac as Jt } from "./extractHeadings-CGJexznE.js";
4
- import { c as $t } from "./channel-DoH_tsOQ.js";
1
+ import { g as Bt } from "./chunk-XXDRQBXY-COtZ25Ez.js";
2
+ import { s as Ft } from "./chunk-VR4S4FIN-BK6xeIQk.js";
3
+ import { _ as d, G as Yt, A as Pt, y as zt, z as Gt, a5 as Kt, a6 as Ut, J as rt, O as V, ab as Zt, aa as jt, ad as Wt, ae as Qt, a2 as Xt, a3 as qt, K as Ht, a4 as Jt } from "./extractHeadings-B2pUyEPa.js";
4
+ import { c as $t } from "./channel-B3oXm84X.js";
5
5
  var gt = (function() {
6
6
  var s = /* @__PURE__ */ d(function(I, n, a, o) {
7
7
  for (a = a || {}, o = I.length; o--; a[I[o]] = n) ;
8
8
  return a;
9
- }, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52], c = [1, 10], h = [1, 11], l = [1, 12], f = [1, 13], y = [1, 23], u = [1, 24], m = [1, 25], W = [1, 26], Q = [1, 27], S = [1, 19], X = [1, 28], B = [1, 29], D = [1, 20], R = [1, 18], T = [1, 21], C = [1, 22], at = [1, 36], ct = [1, 37], ot = [1, 38], lt = [1, 39], ht = [1, 40], F = [6, 8, 10, 13, 15, 17, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52, 66, 67, 68, 69, 70], O = [1, 45], N = [1, 46], Y = [1, 55], P = [40, 48, 50, 51, 52, 71, 72], z = [1, 66], G = [1, 64], A = [1, 61], K = [1, 65], U = [1, 67], q = [6, 8, 10, 13, 17, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 51, 52, 66, 67, 68, 69, 70], bt = [66, 67, 68, 69, 70], kt = [1, 85], mt = [1, 84], Et = [1, 82], St = [1, 83], Tt = [6, 10, 42, 47], L = [6, 10, 13, 41, 42, 47, 48, 49], H = [1, 93], J = [1, 92], $ = [1, 91], Z = [19, 58], Ot = [1, 102], Nt = [1, 101], ut = [19, 58, 61, 63], dt = {
9
+ }, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52], c = [1, 10], h = [1, 11], l = [1, 12], f = [1, 13], y = [1, 23], u = [1, 24], m = [1, 25], W = [1, 26], Q = [1, 27], S = [1, 19], X = [1, 28], B = [1, 29], D = [1, 20], R = [1, 18], T = [1, 21], C = [1, 22], at = [1, 36], ct = [1, 37], ot = [1, 38], lt = [1, 39], ht = [1, 40], F = [6, 8, 10, 13, 15, 17, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52, 66, 67, 68, 69, 70], O = [1, 45], A = [1, 46], Y = [1, 55], P = [40, 48, 50, 51, 52, 71, 72], z = [1, 66], G = [1, 64], N = [1, 61], K = [1, 65], U = [1, 67], q = [6, 8, 10, 13, 17, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 51, 52, 66, 67, 68, 69, 70], bt = [66, 67, 68, 69, 70], kt = [1, 85], mt = [1, 84], Et = [1, 82], St = [1, 83], Tt = [6, 10, 42, 47], L = [6, 10, 13, 41, 42, 47, 48, 49], H = [1, 93], J = [1, 92], $ = [1, 91], Z = [19, 58], Ot = [1, 102], At = [1, 101], ut = [19, 58, 61, 63], dt = {
10
10
  trace: /* @__PURE__ */ d(function() {
11
11
  }, "trace"),
12
12
  yy: {},
@@ -195,7 +195,7 @@ var gt = (function() {
195
195
  break;
196
196
  }
197
197
  }, "anonymous"),
198
- table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, s(i, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 22: c, 24: h, 26: l, 28: f, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: u, 35: m, 36: W, 37: Q, 40: S, 43: X, 44: B, 48: D, 50: R, 51: T, 52: C }, s(i, [2, 7], { 1: [2, 1] }), s(i, [2, 3]), { 9: 30, 11: 9, 22: c, 24: h, 26: l, 28: f, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: u, 35: m, 36: W, 37: Q, 40: S, 43: X, 44: B, 48: D, 50: R, 51: T, 52: C }, s(i, [2, 5]), s(i, [2, 6]), s(i, [2, 16], { 12: 31, 64: 35, 15: [1, 32], 17: [1, 33], 20: [1, 34], 66: at, 67: ct, 68: ot, 69: lt, 70: ht }), { 23: [1, 41] }, { 25: [1, 42] }, { 27: [1, 43] }, s(i, [2, 27]), s(i, [2, 28]), s(i, [2, 29]), s(i, [2, 30]), s(i, [2, 31]), s(F, [2, 54]), s(F, [2, 55]), s(F, [2, 56]), s(F, [2, 57]), s(F, [2, 58]), s(i, [2, 32]), s(i, [2, 33]), s(i, [2, 34]), s(i, [2, 35]), { 16: 44, 40: O, 41: N }, { 16: 47, 40: O, 41: N }, { 16: 48, 40: O, 41: N }, s(i, [2, 4]), { 11: 49, 40: S, 48: D, 50: R, 51: T, 52: C }, { 16: 50, 40: O, 41: N }, { 18: 51, 19: [1, 52], 53: 53, 54: 54, 58: Y }, { 11: 56, 40: S, 48: D, 50: R, 51: T, 52: C }, { 65: 57, 71: [1, 58], 72: [1, 59] }, s(P, [2, 73]), s(P, [2, 74]), s(P, [2, 75]), s(P, [2, 76]), s(P, [2, 77]), s(i, [2, 24]), s(i, [2, 25]), s(i, [2, 26]), { 13: z, 38: 60, 41: G, 42: A, 45: 62, 46: 63, 48: K, 49: U }, s(q, [2, 37]), s(q, [2, 38]), { 16: 68, 40: O, 41: N, 42: A }, { 13: z, 38: 69, 41: G, 42: A, 45: 62, 46: 63, 48: K, 49: U }, { 13: [1, 70], 15: [1, 71] }, s(i, [2, 17], { 64: 35, 12: 72, 17: [1, 73], 42: A, 66: at, 67: ct, 68: ot, 69: lt, 70: ht }), { 19: [1, 74] }, s(i, [2, 14]), { 18: 75, 19: [2, 59], 53: 53, 54: 54, 58: Y }, { 55: 76, 58: [1, 77] }, { 58: [2, 65], 59: [1, 78] }, { 21: [1, 79] }, { 64: 80, 66: at, 67: ct, 68: ot, 69: lt, 70: ht }, s(bt, [2, 78]), s(bt, [2, 79]), { 6: kt, 10: mt, 39: 81, 42: Et, 47: St }, { 40: [1, 86], 41: [1, 87] }, s(Tt, [2, 43], { 46: 88, 13: z, 41: G, 48: K, 49: U }), s(L, [2, 45]), s(L, [2, 50]), s(L, [2, 51]), s(L, [2, 52]), s(L, [2, 53]), s(i, [2, 41], { 42: A }), { 6: kt, 10: mt, 39: 89, 42: Et, 47: St }, { 14: 90, 40: H, 50: J, 73: $ }, { 16: 94, 40: O, 41: N }, { 11: 95, 40: S, 48: D, 50: R, 51: T, 52: C }, { 18: 96, 19: [1, 97], 53: 53, 54: 54, 58: Y }, s(i, [2, 12]), { 19: [2, 60] }, s(Z, [2, 61], { 56: 98, 57: 99, 60: 100, 62: Ot, 63: Nt }), s([19, 58, 62, 63], [2, 67]), { 58: [2, 66] }, s(i, [2, 22], { 15: [1, 104], 17: [1, 103] }), s([40, 48, 50, 51, 52], [2, 72]), s(i, [2, 36]), { 13: z, 41: G, 45: 105, 46: 63, 48: K, 49: U }, s(i, [2, 47]), s(i, [2, 48]), s(i, [2, 49]), s(q, [2, 39]), s(q, [2, 40]), s(L, [2, 46]), s(i, [2, 42]), s(i, [2, 8]), s(i, [2, 80]), s(i, [2, 81]), s(i, [2, 82]), { 13: [1, 106], 42: A }, { 13: [1, 108], 15: [1, 107] }, { 19: [1, 109] }, s(i, [2, 15]), s(Z, [2, 62], { 57: 110, 61: [1, 111], 63: Nt }), s(Z, [2, 63]), s(ut, [2, 68]), s(Z, [2, 71]), s(ut, [2, 70]), { 18: 112, 19: [1, 113], 53: 53, 54: 54, 58: Y }, { 16: 114, 40: O, 41: N }, s(Tt, [2, 44], { 46: 88, 13: z, 41: G, 48: K, 49: U }), { 14: 115, 40: H, 50: J, 73: $ }, { 16: 116, 40: O, 41: N }, { 14: 117, 40: H, 50: J, 73: $ }, s(i, [2, 13]), s(Z, [2, 64]), { 60: 118, 62: Ot }, { 19: [1, 119] }, s(i, [2, 20]), s(i, [2, 23], { 17: [1, 120], 42: A }), s(i, [2, 11]), { 13: [1, 121], 42: A }, s(i, [2, 10]), s(ut, [2, 69]), s(i, [2, 18]), { 18: 122, 19: [1, 123], 53: 53, 54: 54, 58: Y }, { 14: 124, 40: H, 50: J, 73: $ }, { 19: [1, 125] }, s(i, [2, 21]), s(i, [2, 9]), s(i, [2, 19])],
198
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, s(i, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 22: c, 24: h, 26: l, 28: f, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: u, 35: m, 36: W, 37: Q, 40: S, 43: X, 44: B, 48: D, 50: R, 51: T, 52: C }, s(i, [2, 7], { 1: [2, 1] }), s(i, [2, 3]), { 9: 30, 11: 9, 22: c, 24: h, 26: l, 28: f, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: u, 35: m, 36: W, 37: Q, 40: S, 43: X, 44: B, 48: D, 50: R, 51: T, 52: C }, s(i, [2, 5]), s(i, [2, 6]), s(i, [2, 16], { 12: 31, 64: 35, 15: [1, 32], 17: [1, 33], 20: [1, 34], 66: at, 67: ct, 68: ot, 69: lt, 70: ht }), { 23: [1, 41] }, { 25: [1, 42] }, { 27: [1, 43] }, s(i, [2, 27]), s(i, [2, 28]), s(i, [2, 29]), s(i, [2, 30]), s(i, [2, 31]), s(F, [2, 54]), s(F, [2, 55]), s(F, [2, 56]), s(F, [2, 57]), s(F, [2, 58]), s(i, [2, 32]), s(i, [2, 33]), s(i, [2, 34]), s(i, [2, 35]), { 16: 44, 40: O, 41: A }, { 16: 47, 40: O, 41: A }, { 16: 48, 40: O, 41: A }, s(i, [2, 4]), { 11: 49, 40: S, 48: D, 50: R, 51: T, 52: C }, { 16: 50, 40: O, 41: A }, { 18: 51, 19: [1, 52], 53: 53, 54: 54, 58: Y }, { 11: 56, 40: S, 48: D, 50: R, 51: T, 52: C }, { 65: 57, 71: [1, 58], 72: [1, 59] }, s(P, [2, 73]), s(P, [2, 74]), s(P, [2, 75]), s(P, [2, 76]), s(P, [2, 77]), s(i, [2, 24]), s(i, [2, 25]), s(i, [2, 26]), { 13: z, 38: 60, 41: G, 42: N, 45: 62, 46: 63, 48: K, 49: U }, s(q, [2, 37]), s(q, [2, 38]), { 16: 68, 40: O, 41: A, 42: N }, { 13: z, 38: 69, 41: G, 42: N, 45: 62, 46: 63, 48: K, 49: U }, { 13: [1, 70], 15: [1, 71] }, s(i, [2, 17], { 64: 35, 12: 72, 17: [1, 73], 42: N, 66: at, 67: ct, 68: ot, 69: lt, 70: ht }), { 19: [1, 74] }, s(i, [2, 14]), { 18: 75, 19: [2, 59], 53: 53, 54: 54, 58: Y }, { 55: 76, 58: [1, 77] }, { 58: [2, 65], 59: [1, 78] }, { 21: [1, 79] }, { 64: 80, 66: at, 67: ct, 68: ot, 69: lt, 70: ht }, s(bt, [2, 78]), s(bt, [2, 79]), { 6: kt, 10: mt, 39: 81, 42: Et, 47: St }, { 40: [1, 86], 41: [1, 87] }, s(Tt, [2, 43], { 46: 88, 13: z, 41: G, 48: K, 49: U }), s(L, [2, 45]), s(L, [2, 50]), s(L, [2, 51]), s(L, [2, 52]), s(L, [2, 53]), s(i, [2, 41], { 42: N }), { 6: kt, 10: mt, 39: 89, 42: Et, 47: St }, { 14: 90, 40: H, 50: J, 73: $ }, { 16: 94, 40: O, 41: A }, { 11: 95, 40: S, 48: D, 50: R, 51: T, 52: C }, { 18: 96, 19: [1, 97], 53: 53, 54: 54, 58: Y }, s(i, [2, 12]), { 19: [2, 60] }, s(Z, [2, 61], { 56: 98, 57: 99, 60: 100, 62: Ot, 63: At }), s([19, 58, 62, 63], [2, 67]), { 58: [2, 66] }, s(i, [2, 22], { 15: [1, 104], 17: [1, 103] }), s([40, 48, 50, 51, 52], [2, 72]), s(i, [2, 36]), { 13: z, 41: G, 45: 105, 46: 63, 48: K, 49: U }, s(i, [2, 47]), s(i, [2, 48]), s(i, [2, 49]), s(q, [2, 39]), s(q, [2, 40]), s(L, [2, 46]), s(i, [2, 42]), s(i, [2, 8]), s(i, [2, 80]), s(i, [2, 81]), s(i, [2, 82]), { 13: [1, 106], 42: N }, { 13: [1, 108], 15: [1, 107] }, { 19: [1, 109] }, s(i, [2, 15]), s(Z, [2, 62], { 57: 110, 61: [1, 111], 63: At }), s(Z, [2, 63]), s(ut, [2, 68]), s(Z, [2, 71]), s(ut, [2, 70]), { 18: 112, 19: [1, 113], 53: 53, 54: 54, 58: Y }, { 16: 114, 40: O, 41: A }, s(Tt, [2, 44], { 46: 88, 13: z, 41: G, 48: K, 49: U }), { 14: 115, 40: H, 50: J, 73: $ }, { 16: 116, 40: O, 41: A }, { 14: 117, 40: H, 50: J, 73: $ }, s(i, [2, 13]), s(Z, [2, 64]), { 60: 118, 62: Ot }, { 19: [1, 119] }, s(i, [2, 20]), s(i, [2, 23], { 17: [1, 120], 42: N }), s(i, [2, 11]), { 13: [1, 121], 42: N }, s(i, [2, 10]), s(ut, [2, 69]), s(i, [2, 18]), { 18: 122, 19: [1, 123], 53: 53, 54: 54, 58: Y }, { 14: 124, 40: H, 50: J, 73: $ }, { 19: [1, 125] }, s(i, [2, 21]), s(i, [2, 9]), s(i, [2, 19])],
199
199
  defaultActions: { 75: [2, 60], 78: [2, 66] },
200
200
  parseError: /* @__PURE__ */ d(function(n, a) {
201
201
  if (a.recoverable)
@@ -206,7 +206,7 @@ var gt = (function() {
206
206
  }
207
207
  }, "parseError"),
208
208
  parse: /* @__PURE__ */ d(function(n) {
209
- var a = this, o = [0], r = [], p = [null], t = [], j = this.table, e = "", et = 0, At = 0, Lt = 2, It = 1, wt = t.slice.call(arguments, 1), _ = Object.create(this.lexer), x = { yy: {} };
209
+ var a = this, o = [0], r = [], p = [null], t = [], j = this.table, e = "", et = 0, Nt = 0, Lt = 2, It = 1, wt = t.slice.call(arguments, 1), _ = Object.create(this.lexer), x = { yy: {} };
210
210
  for (var ft in this.yy)
211
211
  Object.prototype.hasOwnProperty.call(this.yy, ft) && (x.yy[ft] = this.yy[ft]);
212
212
  _.setInput(n, x.yy), x.yy.lexer = _, x.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
@@ -243,7 +243,7 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
243
243
  throw new Error("Parse Error: multiple actions possible at state: " + v + ", token: " + g);
244
244
  switch (k[0]) {
245
245
  case 1:
246
- o.push(g), p.push(_.yytext), t.push(_.yylloc), o.push(k[1]), g = null, At = _.yyleng, e = _.yytext, et = _.yylineno, pt = _.yylloc;
246
+ o.push(g), p.push(_.yytext), t.push(_.yylloc), o.push(k[1]), g = null, Nt = _.yyleng, e = _.yytext, et = _.yylineno, pt = _.yylloc;
247
247
  break;
248
248
  case 2:
249
249
  if (E = this.productions_[k[1]][1], w.$ = p[p.length - E], w._$ = {
@@ -256,7 +256,7 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
256
256
  t[t.length - 1].range[1]
257
257
  ]), yt = this.performAction.apply(w, [
258
258
  e,
259
- At,
259
+ Nt,
260
260
  et,
261
261
  x.yy,
262
262
  k[1],