@pi-outpost/embed 0.1.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 (250) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +63 -0
  3. package/dist/abnfDiagram-VRR7QNED-BPTALLb_.cjs +1 -0
  4. package/dist/abnfDiagram-VRR7QNED-DlAvVtuC.js +89 -0
  5. package/dist/arc-BBnpgwVQ.js +80 -0
  6. package/dist/arc-DcUn9_NX.cjs +1 -0
  7. package/dist/architecture-TIHT7OUA-D-35jO9Y.cjs +1 -0
  8. package/dist/architecture-TIHT7OUA-DDyMqjR1.js +3 -0
  9. package/dist/architectureDiagram-ZJ3FMSHR-Bh5-VPPg.cjs +36 -0
  10. package/dist/architectureDiagram-ZJ3FMSHR-D7UsY5ua.js +4120 -0
  11. package/dist/array-CApNbSU9.js +6 -0
  12. package/dist/array-DZSRzHA_.cjs +1 -0
  13. package/dist/bash-BLBHkRa_.js +169 -0
  14. package/dist/bash-DHJu-DNv.cjs +1 -0
  15. package/dist/blockDiagram-677ZJIJ3-BrXgigdO.cjs +132 -0
  16. package/dist/blockDiagram-677ZJIJ3-s-fanRPN.js +3160 -0
  17. package/dist/c-4QgYfi8K.cjs +1 -0
  18. package/dist/c-Cw4FsAeJ.js +176 -0
  19. package/dist/c4Diagram-LMCZKHZV-BbZFAi_K.js +2962 -0
  20. package/dist/c4Diagram-LMCZKHZV-DFBVQ9Uo.cjs +10 -0
  21. package/dist/channel-DV0ST12Z.js +5 -0
  22. package/dist/channel-DkMGzfUR.cjs +1 -0
  23. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
  24. package/dist/chunk-2Q5K7J3B-DqJF2oYF.js +15 -0
  25. package/dist/chunk-32BRIVSS-Byu3FrKX.js +61 -0
  26. package/dist/chunk-32BRIVSS-oWSJWk-u.cjs +1 -0
  27. package/dist/chunk-52WLFC77-C9zQbcGs.js +590 -0
  28. package/dist/chunk-52WLFC77-D9PTsiCj.cjs +10 -0
  29. package/dist/chunk-5VM5RSS4-BMfgdMFU.js +5 -0
  30. package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +15 -0
  31. package/dist/chunk-7BUUIJ7U-BFUeQBoS.js +82 -0
  32. package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +1 -0
  33. package/dist/chunk-C7G6YPKG-CDjkH_UW.cjs +1 -0
  34. package/dist/chunk-C7G6YPKG-GTlyrFFt.js +67 -0
  35. package/dist/chunk-EX3LRPZG-BBldDxGh.js +2046 -0
  36. package/dist/chunk-EX3LRPZG-u-BKCEWO.cjs +231 -0
  37. package/dist/chunk-FWX5IMBZ-h3GfgkP2.js +57 -0
  38. package/dist/chunk-FWX5IMBZ-nqBth1J9.cjs +1 -0
  39. package/dist/chunk-HOUHSVGY-CgfXy94u.cjs +1 -0
  40. package/dist/chunk-HOUHSVGY-CtRCnz1G.js +277 -0
  41. package/dist/chunk-ICXQ74PX-BmEfYj-r.cjs +2 -0
  42. package/dist/chunk-ICXQ74PX-CC59NQmW.js +1366 -0
  43. package/dist/chunk-JWPE2WC7-B_J6qwQL.js +8 -0
  44. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
  45. package/dist/chunk-KEIR6QF5-BVnxrdHo.js +21388 -0
  46. package/dist/chunk-KEIR6QF5-Cy_QBNG6.cjs +161 -0
  47. package/dist/chunk-MOJQB5TN-D6YxvkUY.js +490 -0
  48. package/dist/chunk-MOJQB5TN-H2vwz-oQ.cjs +88 -0
  49. package/dist/chunk-OGEWGWER-BGdqgMza.js +32 -0
  50. package/dist/chunk-OGEWGWER-BP4o8A-v.cjs +1 -0
  51. package/dist/chunk-PUDLZKDR-C8jMDFq6.js +4142 -0
  52. package/dist/chunk-PUDLZKDR-DtzwSdxX.cjs +156 -0
  53. package/dist/chunk-Q4XR5HBZ-Bk18cMuk.js +1628 -0
  54. package/dist/chunk-Q4XR5HBZ-COrrWZzi.cjs +70 -0
  55. package/dist/chunk-RYQCIY6F-27FDzaaE.cjs +1 -0
  56. package/dist/chunk-RYQCIY6F-C-YC3QS_.js +239 -0
  57. package/dist/chunk-V7JOEXUC-BROsdKzY.js +3357 -0
  58. package/dist/chunk-V7JOEXUC-Cfrm5GQn.cjs +206 -0
  59. package/dist/chunk-VAUOI2AC-05FwamOA.js +10 -0
  60. package/dist/chunk-VAUOI2AC-CBXi4Di2.cjs +1 -0
  61. package/dist/chunk-VR4S4FIN-CSU_1xTZ.cjs +1 -0
  62. package/dist/chunk-VR4S4FIN-Ci491c8N.js +26 -0
  63. package/dist/chunk-WYO6CB5R-BTvDzbWd.cjs +127 -0
  64. package/dist/chunk-WYO6CB5R-Y9HJHB3Q.js +3739 -0
  65. package/dist/chunk-XXDRQBXY-DsVp5qjg.js +9 -0
  66. package/dist/chunk-XXDRQBXY-gWcN0uCZ.cjs +1 -0
  67. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
  68. package/dist/chunk-Y2CYZVJY-CwsV_8W4.js +12 -0
  69. package/dist/chunk-ZGVPDNZ5-CDTkXY1G.js +3736 -0
  70. package/dist/chunk-ZGVPDNZ5-COEQX4AZ.cjs +62 -0
  71. package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +32 -0
  72. package/dist/chunk-ZIRB5QZD-Cj-y77rH.js +1146 -0
  73. package/dist/classDiagram-OUVF2IWQ-Avsu6OKn.cjs +1 -0
  74. package/dist/classDiagram-OUVF2IWQ-eC72Wwol.js +30 -0
  75. package/dist/classDiagram-v2-EOCWNBFH-Avsu6OKn.cjs +1 -0
  76. package/dist/classDiagram-v2-EOCWNBFH-DsRoQgCt.js +30 -0
  77. package/dist/core-2nR1zkKb.cjs +3 -0
  78. package/dist/core-BO2hTFeF.js +845 -0
  79. package/dist/cose-bilkent-JH36ORCC-AyWV1dUo.cjs +1 -0
  80. package/dist/cose-bilkent-JH36ORCC-BFo5zomD.js +2251 -0
  81. package/dist/cpp-BUtp-HE2.cjs +1 -0
  82. package/dist/cpp-CeyO6lBG.js +225 -0
  83. package/dist/csharp-BJu4kEpt.cjs +1 -0
  84. package/dist/csharp-Ck6Fet_o.js +260 -0
  85. package/dist/css-ClSGJRju.js +140 -0
  86. package/dist/css-DeFr0lev.cjs +1 -0
  87. package/dist/cynefin-VYW2F7L2-DHhUPDgc.cjs +1 -0
  88. package/dist/cynefin-VYW2F7L2-DwiVqvhg.js +3 -0
  89. package/dist/cynefinDiagram-TSTJHNR4-BRUl09PN.js +349 -0
  90. package/dist/cynefinDiagram-TSTJHNR4-rKPqxFde.cjs +62 -0
  91. package/dist/cytoscape.esm-ByjvpCPI.cjs +321 -0
  92. package/dist/cytoscape.esm-asYnbYTy.js +18148 -0
  93. package/dist/dagre-BBlCxSvR.cjs +1 -0
  94. package/dist/dagre-BpqwxFKp.js +1701 -0
  95. package/dist/dagre-VKFMJZFB-BsfMZfPu.cjs +4 -0
  96. package/dist/dagre-VKFMJZFB-ChTkS14y.js +328 -0
  97. package/dist/defaultLocale-u9yUoUmE.cjs +1 -0
  98. package/dist/defaultLocale-up9-vqhM.js +201 -0
  99. package/dist/diagram-FQU43EPY-BnAYoLDy.js +432 -0
  100. package/dist/diagram-FQU43EPY-CdbwLZpm.cjs +3 -0
  101. package/dist/diagram-G47NLZAW-C1ZiELQG.js +525 -0
  102. package/dist/diagram-G47NLZAW-CtWKuxkf.cjs +24 -0
  103. package/dist/diagram-NH7WQ7WH-Be0KXo6w.js +134 -0
  104. package/dist/diagram-NH7WQ7WH-CG6VWVza.cjs +24 -0
  105. package/dist/diagram-OA4YK3LP-B7avlqjG.js +300 -0
  106. package/dist/diagram-OA4YK3LP-Drq_GA6o.cjs +30 -0
  107. package/dist/diagram-WEI45ONY-CoPX6-sx.js +214 -0
  108. package/dist/diagram-WEI45ONY-SJmgVL59.cjs +41 -0
  109. package/dist/dist-D6LMt8nW.js +59 -0
  110. package/dist/dist-DNGlMOWd.cjs +1 -0
  111. package/dist/dockerfile-O4rAswfG.js +34 -0
  112. package/dist/dockerfile-YBgAWga3.cjs +1 -0
  113. package/dist/ebnfDiagram-CCIWWBDH-B-T4_JnX.js +100 -0
  114. package/dist/ebnfDiagram-CCIWWBDH-BY7L3HVQ.cjs +1 -0
  115. package/dist/erDiagram-Q63AITRT-DPgZpeaH.js +1727 -0
  116. package/dist/erDiagram-Q63AITRT-w4C1PxYd.cjs +85 -0
  117. package/dist/eventmodeling-45OFAUF4-COTtdYDJ.js +3 -0
  118. package/dist/eventmodeling-45OFAUF4-CPEyr9kU.cjs +1 -0
  119. package/dist/flowDiagram-23GEKE2U-CQxPdUX4.cjs +1 -0
  120. package/dist/flowDiagram-23GEKE2U-ClCSBl2p.js +17 -0
  121. package/dist/ganttDiagram-NO4QXBWP-BcBp028S.cjs +292 -0
  122. package/dist/ganttDiagram-NO4QXBWP-Cf12fLfa.js +3083 -0
  123. package/dist/gitGraph-TEB2WS4Q-C3qBT0GM.js +3 -0
  124. package/dist/gitGraph-TEB2WS4Q-a8KsoPmR.cjs +1 -0
  125. package/dist/gitGraphDiagram-IHSO6WYX-13ahKewT.js +729 -0
  126. package/dist/gitGraphDiagram-IHSO6WYX-BTtNkGkN.cjs +106 -0
  127. package/dist/go-D-pz-dmd.cjs +1 -0
  128. package/dist/go-rg7jg1mu.js +140 -0
  129. package/dist/graphlib-B0GbLif1.js +1267 -0
  130. package/dist/graphlib-CkkG5MuS.cjs +1 -0
  131. package/dist/info-DKCQHKI2-BEYhR6ip.cjs +1 -0
  132. package/dist/info-DKCQHKI2-BPF6-pOb.js +3 -0
  133. package/dist/infoDiagram-FWYZ7A6U-20rh0VNL.cjs +2 -0
  134. package/dist/infoDiagram-FWYZ7A6U-DcV-eSsb.js +20 -0
  135. package/dist/ini-C1q3_1-Q.js +88 -0
  136. package/dist/ini-nVcUEghj.cjs +1 -0
  137. package/dist/init-07zIhv_j.cjs +1 -0
  138. package/dist/init-CirqLVcp.js +15 -0
  139. package/dist/ishikawaDiagram-FXEZZL3T-BTaBCHIG.js +719 -0
  140. package/dist/ishikawaDiagram-FXEZZL3T-BUq5kcFI.cjs +70 -0
  141. package/dist/java-CUN_usaq.cjs +1 -0
  142. package/dist/java-HguKEfA2.js +169 -0
  143. package/dist/javascript-C8NCH8DE.js +436 -0
  144. package/dist/javascript-UZXSyUuu.cjs +1 -0
  145. package/dist/journeyDiagram-5HDEW3XC-Cl9Z4b58.js +884 -0
  146. package/dist/journeyDiagram-5HDEW3XC-XQa-rhY_.cjs +139 -0
  147. package/dist/json-Cp01TR_B.js +36 -0
  148. package/dist/json-usH_MUzR.cjs +1 -0
  149. package/dist/kanban-definition-HUTT4EX6-CtWnZ0nS.js +975 -0
  150. package/dist/kanban-definition-HUTT4EX6-DVHXUPOt.cjs +89 -0
  151. package/dist/line-Ca8dE_lT.cjs +1 -0
  152. package/dist/line-O2xx2vVQ.js +34 -0
  153. package/dist/linear-CVhyaVzf.js +289 -0
  154. package/dist/linear-Cl2-QuPP.cjs +1 -0
  155. package/dist/map-CwPlMWPw.cjs +1 -0
  156. package/dist/map-DU12fF3s.js +241 -0
  157. package/dist/markdown-CzgRofaE.js +181 -0
  158. package/dist/markdown-qeo95R0i.cjs +1 -0
  159. package/dist/mermaid-parser.core-B8DQcCaz.js +638 -0
  160. package/dist/mermaid-parser.core-Cgsz0CdK.cjs +6 -0
  161. package/dist/mermaid.core-BR-iKb2Q.js +1064 -0
  162. package/dist/mermaid.core-DQrbAA--.cjs +10 -0
  163. package/dist/mindmap-definition-LN4V7U3C-C0I9iWmq.cjs +96 -0
  164. package/dist/mindmap-definition-LN4V7U3C-lkSmRsIC.js +1008 -0
  165. package/dist/mount.d.ts +31 -0
  166. package/dist/ordinal-CCTD6_le.js +65 -0
  167. package/dist/ordinal-CUPR-p0T.cjs +1 -0
  168. package/dist/packet-7NZHBO7P-DqvBYJTR.js +3 -0
  169. package/dist/packet-7NZHBO7P-Dz0O2bgq.cjs +1 -0
  170. package/dist/path-Kklx0M1v.cjs +1 -0
  171. package/dist/path-mKa7UESy.js +85 -0
  172. package/dist/pegDiagram-2B236MQR-BgRCQTZd.js +94 -0
  173. package/dist/pegDiagram-2B236MQR-hlmRl_PA.cjs +1 -0
  174. package/dist/php-C9FOMGEA.js +294 -0
  175. package/dist/php-j6EhDZDE.cjs +2 -0
  176. package/dist/pi-outpost-embed.cjs +305 -0
  177. package/dist/pi-outpost-embed.js +40942 -0
  178. package/dist/pie-RZYD4A2V-Hi9UdoE3.cjs +1 -0
  179. package/dist/pie-RZYD4A2V-qnruo9sH.js +3 -0
  180. package/dist/pieDiagram-ENE6RG2P-BVi7ck2I.js +205 -0
  181. package/dist/pieDiagram-ENE6RG2P-Buuvrs-h.cjs +39 -0
  182. package/dist/plaintext-BYYAHR3Z.js +10 -0
  183. package/dist/plaintext-DmnjizxG.cjs +1 -0
  184. package/dist/python-BYJzTRkK.cjs +1 -0
  185. package/dist/python-DKAazMIE.js +238 -0
  186. package/dist/quadrantDiagram-ABIIQ3AL-DeU97c2B.js +2001 -0
  187. package/dist/quadrantDiagram-ABIIQ3AL-LCbC0LEt.cjs +7 -0
  188. package/dist/radar-I7S5WNFK-Dqdssa34.cjs +1 -0
  189. package/dist/radar-I7S5WNFK-np_pJCO-.js +3 -0
  190. package/dist/railroad-3IZDKUUU-NILjDQft.cjs +1 -0
  191. package/dist/railroad-3IZDKUUU-sjKBeXxB.js +3 -0
  192. package/dist/railroad-abnf-AHOZXSZD-BojH9sxV.cjs +1 -0
  193. package/dist/railroad-abnf-AHOZXSZD-x5cC_e_R.js +3 -0
  194. package/dist/railroad-ebnf-EBAXGLYW-2mlWpz38.js +3 -0
  195. package/dist/railroad-ebnf-EBAXGLYW-BKCSut1M.cjs +1 -0
  196. package/dist/railroad-peg-LSFZ7HO6-CsH-gnsp.cjs +1 -0
  197. package/dist/railroad-peg-LSFZ7HO6-D5vguo03.js +3 -0
  198. package/dist/railroadDiagram-RFXS5EU6-CMTDNjsw.cjs +1 -0
  199. package/dist/railroadDiagram-RFXS5EU6-DNSNpLmQ.js +76 -0
  200. package/dist/requirementDiagram-TGXJPOKE-CdspXMgv.js +2223 -0
  201. package/dist/requirementDiagram-TGXJPOKE-irImpO8w.cjs +84 -0
  202. package/dist/rolldown-runtime-Dqa2HsxW.js +20 -0
  203. package/dist/rolldown-runtime-mLOUI7ql.cjs +1 -0
  204. package/dist/rough.esm-C5XyeDCN.js +1352 -0
  205. package/dist/rough.esm-r0QOSzHM.cjs +1 -0
  206. package/dist/ruby-BAUeZQKZ.js +262 -0
  207. package/dist/ruby-ClR4zp-1.cjs +1 -0
  208. package/dist/rust-DiTjMjP5.js +169 -0
  209. package/dist/rust-ghVvEWhm.cjs +1 -0
  210. package/dist/sankeyDiagram-HTMAVEWB-B0ZJBVpN.cjs +40 -0
  211. package/dist/sankeyDiagram-HTMAVEWB-BQcvUCMA.js +970 -0
  212. package/dist/scss-CKxh5HRg.cjs +1 -0
  213. package/dist/scss-CckAvQOx.js +150 -0
  214. package/dist/sequenceDiagram-DBY2YBRQ-BQFP2DGs.js +4168 -0
  215. package/dist/sequenceDiagram-DBY2YBRQ-C5WukkcA.cjs +162 -0
  216. package/dist/sizeCapture-X5ZJPWSS-DKbHZNyz.js +46 -0
  217. package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +1 -0
  218. package/dist/sql-B-Rnc2C3.js +118 -0
  219. package/dist/sql-B7syKcd8.cjs +1 -0
  220. package/dist/src-CR--T_NF.cjs +1 -0
  221. package/dist/src-DJ4x3y2O.js +2142 -0
  222. package/dist/stateDiagram-2N3HPSRC-4aBQt5dk.js +220 -0
  223. package/dist/stateDiagram-2N3HPSRC-YbRd67eD.cjs +1 -0
  224. package/dist/stateDiagram-v2-6OUMAXLB-D-c6D5za.js +30 -0
  225. package/dist/stateDiagram-v2-6OUMAXLB-ciXN_270.cjs +1 -0
  226. package/dist/swimlanes-5IMT3BWC-C8zkS7yx.cjs +1 -0
  227. package/dist/swimlanes-5IMT3BWC-aKH3Xgob.js +5066 -0
  228. package/dist/swimlanesDiagram-G3AALYLV-BcgsG1in.js +31 -0
  229. package/dist/swimlanesDiagram-G3AALYLV-CBjVJdH0.cjs +8 -0
  230. package/dist/timeline-definition-FHXFAJF6-DS-X0FCl.cjs +120 -0
  231. package/dist/timeline-definition-FHXFAJF6-Lnag6wiw.js +1069 -0
  232. package/dist/treeView-QDETBFTQ-Cpg_YeQ4.cjs +1 -0
  233. package/dist/treeView-QDETBFTQ-DdpEhzZX.js +3 -0
  234. package/dist/treemap-6X3UGDF4-BeCuRpkA.js +3 -0
  235. package/dist/treemap-6X3UGDF4-CFAmnKaf.cjs +1 -0
  236. package/dist/typescript-clWeqIBY.cjs +1 -0
  237. package/dist/typescript-mdYq8uqf.js +521 -0
  238. package/dist/vennDiagram-L72KCM5P-CF7lC7jn.js +1880 -0
  239. package/dist/vennDiagram-L72KCM5P-DYZP8jT_.cjs +34 -0
  240. package/dist/wardley-OPB4EBWU-B0jnKd8x.cjs +1 -0
  241. package/dist/wardley-OPB4EBWU-DlIk2K0J.js +3 -0
  242. package/dist/wardleyDiagram-EHGQE667-CbtWlMOa.js +645 -0
  243. package/dist/wardleyDiagram-EHGQE667-Dxewrpeh.cjs +78 -0
  244. package/dist/xml-BamqaQOf.cjs +1 -0
  245. package/dist/xml-DVYfB8uY.js +166 -0
  246. package/dist/xychartDiagram-FW5EYKEG-BAnVfMdN.cjs +7 -0
  247. package/dist/xychartDiagram-FW5EYKEG-DmdGPSi6.js +2102 -0
  248. package/dist/yaml-_1BORZTQ.js +144 -0
  249. package/dist/yaml-bAgWofBg.cjs +1 -0
  250. package/package.json +72 -0
@@ -0,0 +1,62 @@
1
+ const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-CR--T_NF.cjs"),n=require("./chunk-WYO6CB5R-BTvDzbWd.cjs"),r=require("./chunk-ICXQ74PX-BmEfYj-r.cjs"),i=require("./chunk-HOUHSVGY-CgfXy94u.cjs"),a=require("./chunk-Q4XR5HBZ-COrrWZzi.cjs"),o=require("./chunk-OGEWGWER-BP4o8A-v.cjs"),s=require("./chunk-C7G6YPKG-CDjkH_UW.cjs"),c=require("./rough.esm-r0QOSzHM.cjs");var l=e.n(async(e,i,s)=>{let c,l=i.useHtmlLabels||n.g(n.x()?.htmlLabels);c=s||`node default`;let u=e.insert(`g`).attr(`class`,c).attr(`id`,i.domId||i.id),d=u.insert(`g`).attr(`class`,`label`).attr(`style`,r.u(i.labelStyle)),f;f=i.label===void 0?``:typeof i.label==`string`?i.label:i.label[0];let p=!!i.icon||!!i.img,m=i.labelType===`markdown`,h=await a.n(d,n.z(r.a(f),n.x()),{useHtmlLabels:l,width:i.width||n.x().flowchart?.wrappingWidth,classes:m?`markdown-node-label`:``,style:i.labelStyle,addSvgBackground:p,markdown:m},n.x()),g=h.getBBox(),_=(i?.padding??0)/2;if(l){let e=h.children[0],n=t.p(h);await o.t(e,f),g=e.getBoundingClientRect(),n.attr(`width`,g.width),n.attr(`height`,g.height)}return l?d.attr(`transform`,`translate(`+-g.width/2+`, `+-g.height/2+`)`):d.attr(`transform`,`translate(0, `+-g.height/2+`)`),i.centerLabel&&d.attr(`transform`,`translate(`+-g.width/2+`, `+-g.height/2+`)`),d.insert(`rect`,`:first-child`),{shapeSvg:u,bbox:g,halfPadding:_,label:d}},`labelHelper`),u=e.n(async(e,i,o)=>{let s=o.useHtmlLabels??n.T(n.x()),c=e.insert(`g`).attr(`class`,`label`).attr(`style`,o.labelStyle||``),l=await a.n(c,n.z(r.a(i),n.x()),{useHtmlLabels:s,width:o.width||n.x()?.flowchart?.wrappingWidth,style:o.labelStyle,addSvgBackground:!!o.icon||!!o.img}),u=l.getBBox(),d=o.padding/2;if(n.T(n.x())){let e=l.children[0],n=t.p(l);u=e.getBoundingClientRect(),n.attr(`width`,u.width),n.attr(`height`,u.height)}return s?c.attr(`transform`,`translate(`+-u.width/2+`, `+-u.height/2+`)`):c.attr(`transform`,`translate(0, `+-u.height/2+`)`),o.centerLabel&&c.attr(`transform`,`translate(`+-u.width/2+`, `+-u.height/2+`)`),c.insert(`rect`,`:first-child`),{shapeSvg:e,bbox:u,halfPadding:d,label:c}},`insertLabel`),d=e.n((e,t)=>{let n=t.node().getBBox();e.width=n.width,e.height=n.height},`updateNodeBounds`),f=e.n((e,t)=>(e.look===`handDrawn`?`rough-node`:`node`)+` `+e.cssClasses+` `+(t||``),`getNodeClasses`);function p(e){let t=e.map((e,t)=>`${t===0?`M`:`L`}${e.x},${e.y}`);return t.push(`Z`),t.join(` `)}e.n(p,`createPathFromPoints`);function m(e,t,n,r,i,a){let o=[],s=n-e,c=r-t,l=s/a,u=2*Math.PI/l,d=t+c/2;for(let t=0;t<=50;t++){let n=e+t/50*s,r=d+i*Math.sin(u*(n-e));o.push({x:n,y:r})}return o}e.n(m,`generateFullSineWavePoints`);function h(e,t,n,r,i,a){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}e.n(h,`generateCirclePoints`);function g(t){let n=Array.from(t.childNodes).filter(e=>e.tagName===`path`),r=document.createElementNS(`http://www.w3.org/2000/svg`,`path`),i=n.map(e=>e.getAttribute(`d`)).filter(e=>e!==null).join(` `);r.setAttribute(`d`,i);let a=n.find(e=>e.getAttribute(`fill`)!==`none`),o=n.find(e=>e.getAttribute(`stroke`)!==`none`),s=e.n((e,t)=>e?.getAttribute(t)??void 0,`getAttr`);if(a){let e={fill:s(a,`fill`),"fill-opacity":s(a,`fill-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&r.setAttribute(e,t)})}if(o){let e={stroke:s(o,`stroke`),"stroke-width":s(o,`stroke-width`)??`1`,"stroke-opacity":s(o,`stroke-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&r.setAttribute(e,t)})}let c=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);return c.appendChild(r),c}e.n(g,`mergePaths`);var _=e.n((e,t)=>{var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2,c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=a===0?0:s*i/a,l=s):(i<0&&(o=-o),c=o,l=i===0?0:o*a/i),{x:n+c,y:r+l}},`intersectRect`),v=e.n(async(e,t,r,i=!1,o=!1)=>{let s=t||``;typeof s==`object`&&(s=s[0]);let c=n.x(),l=n.T(c);return await a.n(e,s,{style:r,isTitle:i,useHtmlLabels:l,markdown:!1,isNode:o,width:1/0},c)},`createLabel`),y=e.n((e,t,n,r,i)=>[`M`,e+i,t,`H`,e+n-i,`A`,i,i,0,0,1,e+n,t+i,`V`,t+r-i,`A`,i,i,0,0,1,e+n-i,t+r,`H`,e+i,`A`,i,i,0,0,1,e,t+r-i,`V`,t+i,`A`,i,i,0,0,1,e+i,t,`Z`].join(` `),`createRoundedRectPathD`),b=e.n(async(e,r)=>{let i=n.x(),{themeVariables:o,handDrawnSeed:l}=i,{clusterBkg:u,clusterBorder:d}=o,f=d,{labelStyles:p,nodeStyles:m,borderStyles:h,backgroundStyles:g}=s.i(r),v=e.insert(`g`).attr(`class`,`cluster swimlane `+(r.cssClasses||``)).attr(`id`,r.id).attr(`data-id`,r.id).attr(`data-et`,`cluster`).attr(`data-look`,r.look),y=n.g(i.flowchart.htmlLabels),b=r.direction===`LR`,x=v.insert(`g`).attr(`class`,`cluster-label swimlane-label`),S=await a.n(x,r.label,{style:r.labelStyle,useHtmlLabels:y,isNode:!0,width:r.width}),C=S.getBBox();if(y){let e=S.children[0],n=t.p(S);C=e.getBoundingClientRect(),n.attr(`width`,C.width),n.attr(`height`,C.height)}let w=r.padding??0,T=r.width<=C.width+w?C.width+w:r.width;r.width<=C.width+w?r.diff=(T-r.width)/2-w:r.diff=-w;let E=r.height,D=r.y-E/2,O=r.y+E/2,k=r.x-T/2,A=r.swimlaneContentTop===void 0?D+E/3:r.swimlaneContentTop,j=b?4:0,M=C.height+2*j,N,P;if(b){let e=Math.max(M,C.height+2*j),t=k+e,n=Math.max(0,T-e);if(r.look===`handDrawn`){let i=c.t.svg(v),a=s.a(r,{roughness:.7,fill:u,stroke:f,fillWeight:3,seed:l}),o=s.a(r,{roughness:.7,fill:`none`,stroke:f,seed:l}),d=i.rectangle(k,D,e,E,a);N=v.insert(()=>d,`:first-child`);let p=i.rectangle(t,D,n,E,o);P=v.insert(()=>p,`:first-child`),N.select(`path:nth-child(2)`).attr(`style`,h.join(`;`)),N.select(`path`).attr(`style`,g.join(`;`).replace(`fill`,`stroke`))}else N=v.insert(`rect`,`:first-child`),P=v.insert(`rect`,`:first-child`),N.attr(`class`,`swimlane-title`).attr(`style`,m).attr(`x`,k).attr(`y`,D).attr(`width`,e).attr(`height`,E).attr(`fill`,u).attr(`stroke`,f),P.attr(`class`,`swimlane-body`).attr(`style`,m).attr(`x`,t).attr(`y`,D).attr(`width`,n).attr(`height`,E).attr(`fill`,`none`).attr(`stroke`,f);let i=k+e/2,a=r.y;x.attr(`transform`,`translate(${i}, ${a}) rotate(-90) translate(${-C.width/2}, ${-C.height/2})`)}else{let e=Math.max(0,A-D),t=Math.min(M,e),n=D+t,i=Math.max(0,O-n),a=r.x-T/2;if(r.look===`handDrawn`){let e=c.t.svg(v),o=s.a(r,{roughness:.7,fill:u,stroke:f,fillWeight:3,seed:l}),d=s.a(r,{roughness:.7,fill:`none`,stroke:f,seed:l}),p=e.rectangle(a,D,T,t,o);N=v.insert(()=>p,`:first-child`);let m=e.rectangle(a,n,T,i,d);P=v.insert(()=>m,`:first-child`),N.select(`path:nth-child(2)`).attr(`style`,h.join(`;`)),N.select(`path`).attr(`style`,g.join(`;`).replace(`fill`,`stroke`))}else N=v.insert(`rect`,`:first-child`),P=v.insert(`rect`,`:first-child`),N.attr(`class`,`swimlane-title`).attr(`style`,m).attr(`x`,a).attr(`y`,D).attr(`width`,T).attr(`height`,t).attr(`fill`,u).attr(`stroke`,f),P.attr(`class`,`swimlane-body`).attr(`style`,m).attr(`x`,a).attr(`y`,n).attr(`width`,T).attr(`height`,i).attr(`fill`,`none`).attr(`stroke`,f);let o=r.x-C.width/2,d=D+(t-C.height)/2;x.attr(`transform`,`translate(${o}, ${d})`)}if(t.m.trace(`Swimlane data `,r,JSON.stringify(r)),p){let e=x.select(`span`);e&&e.attr(`style`,p)}return r.offsetX=0,r.width=T,r.height=E,r.offsetY=C.height-w/2,r.intersect=function(e){return _(r,e)},{cluster:v,labelBBox:C}},`swimlane`),x=e.n(async(e,r)=>{t.m.info(`Creating subgraph rect for `,r.id,r);let i=n.x(),{themeVariables:l,handDrawnSeed:u}=i,{clusterBkg:d,clusterBorder:f}=l,{labelStyles:p,nodeStyles:m,borderStyles:h,backgroundStyles:g}=s.i(r),b=e.insert(`g`).attr(`class`,`cluster `+r.cssClasses).attr(`id`,r.domId).attr(`data-look`,r.look),x=n.T(i),S=b.insert(`g`).attr(`class`,`cluster-label `),C;C=r.labelType===`markdown`?await a.n(S,r.label,{style:r.labelStyle,useHtmlLabels:x,isNode:!0,width:r.width}):await v(S,r.label,r.labelStyle||``,!1,!0);let w=C.getBBox();if(n.T(i)){let e=C.children[0],n=t.p(C);w=e.getBoundingClientRect(),n.attr(`width`,w.width),n.attr(`height`,w.height)}let T=r.width<=w.width+r.padding?w.width+r.padding:r.width;r.width<=w.width+r.padding?r.diff=(T-r.width)/2-r.padding:r.diff=-r.padding;let E=r.height,D=r.x-T/2,O=r.y-E/2;t.m.trace(`Data `,r,JSON.stringify(r));let k;if(r.look===`handDrawn`){let e=c.t.svg(b),n=s.a(r,{roughness:.7,fill:d,stroke:f,fillWeight:3,seed:u}),i=e.path(y(D,O,T,E,0),n);k=b.insert(()=>(t.m.debug(`Rough node insert CXC`,i),i),`:first-child`),k.select(`path:nth-child(2)`).attr(`style`,h.join(`;`)),k.select(`path`).attr(`style`,g.join(`;`).replace(`fill`,`stroke`))}else k=b.insert(`rect`,`:first-child`),k.attr(`style`,m).attr(`rx`,r.rx).attr(`ry`,r.ry).attr(`x`,D).attr(`y`,O).attr(`width`,T).attr(`height`,E);let{subGraphTitleTopMargin:A}=o.n(i);if(S.attr(`transform`,`translate(${r.x-w.width/2}, ${r.y-r.height/2+A})`),p){let e=S.select(`span`);e&&e.attr(`style`,p)}let j=k.node().getBBox();return r.offsetX=0,r.width=j.width,r.height=j.height,r.offsetY=w.height-r.padding/2,r.intersect=function(e){return _(r,e)},{cluster:b,labelBBox:w}},`rect`),S={rect:x,squareRect:x,roundedWithTitle:e.n(async(e,r)=>{let i=n.x(),{themeVariables:a,handDrawnSeed:o}=i,{altBackground:s,compositeBackground:l,compositeTitleBackground:u,nodeBorder:d}=a,f=e.insert(`g`).attr(`class`,r.cssClasses).attr(`id`,r.domId).attr(`data-id`,r.id).attr(`data-look`,r.look),p=f.insert(`g`,`:first-child`),m=f.insert(`g`).attr(`class`,`cluster-label`),h=f.append(`rect`),g=await v(m,r.label,r.labelStyle,void 0,!0),b=g.getBBox();if(n.T(i)){let e=g.children[0],n=t.p(g);b=e.getBoundingClientRect(),n.attr(`width`,b.width),n.attr(`height`,b.height)}let x=0*r.padding,S=x/2,C=(r.width<=b.width+r.padding?b.width+r.padding:r.width)+x;r.width<=b.width+r.padding?r.diff=(C-r.width)/2-r.padding:r.diff=-r.padding;let w=r.height+x,T=r.height+x-b.height-6,E=r.x-C/2,D=r.y-w/2;r.width=C;let O=r.y-r.height/2-S+b.height+2,k;if(r.look===`handDrawn`){let e=r.cssClasses.includes(`statediagram-cluster-alt`),t=c.t.svg(f),n=r.rx||r.ry?t.path(y(E,D,C,w,10),{roughness:.7,fill:u,fillStyle:`solid`,stroke:d,seed:o}):t.rectangle(E,D,C,w,{seed:o});k=f.insert(()=>n,`:first-child`);let i=t.rectangle(E,O,C,T,{fill:e?s:l,fillStyle:e?`hachure`:`solid`,stroke:d,seed:o});k=f.insert(()=>n,`:first-child`),h=f.insert(()=>i)}else k=p.insert(`rect`,`:first-child`),k.attr(`class`,`outer`).attr(`x`,E).attr(`y`,D).attr(`width`,C).attr(`height`,w).attr(`data-look`,r.look),h.attr(`class`,`inner`).attr(`x`,E).attr(`y`,O).attr(`width`,C).attr(`height`,T);return m.attr(`transform`,`translate(${r.x-b.width/2}, ${D+1-(n.T(i)?0:3)})`),r.height=k.node().getBBox().height,r.offsetX=0,r.offsetY=b.height-r.padding/2,r.labelBBox=b,r.intersect=function(e){return _(r,e)},{cluster:f,labelBBox:b}},`roundedWithTitle`),noteGroup:e.n((e,t)=>{let n=e.insert(`g`).attr(`class`,`note-cluster`).attr(`id`,t.domId),r=n.insert(`rect`,`:first-child`),i=0*t.padding,a=i/2;r.attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,t.x-t.width/2-a).attr(`y`,t.y-t.height/2-a).attr(`width`,t.width+i).attr(`height`,t.height+i).attr(`fill`,`none`);let o=r.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(e){return _(t,e)},{cluster:n,labelBBox:{width:0,height:0}}},`noteGroup`),divider:e.n((e,t)=>{let{themeVariables:r,handDrawnSeed:i}=n.x(),{nodeBorder:a}=r,o=e.insert(`g`).attr(`class`,t.cssClasses).attr(`id`,t.domId).attr(`data-look`,t.look),s=o.insert(`g`,`:first-child`),l=0*t.padding,u=t.width+l;t.diff=-t.padding;let d=t.height+l,f=t.x-u/2,p=t.y-d/2;t.width=u;let m;if(t.look===`handDrawn`){let e=c.t.svg(o).rectangle(f,p,u,d,{fill:`lightgrey`,roughness:.5,strokeLineDash:[5],stroke:a,seed:i});m=o.insert(()=>e,`:first-child`)}else{m=s.insert(`rect`,`:first-child`);let e=`outer`;e=(t.look,`divider`),m.attr(`class`,e).attr(`x`,f).attr(`y`,p).attr(`width`,u).attr(`height`,d).attr(`data-look`,t.look)}return t.height=m.node().getBBox().height,t.offsetX=0,t.offsetY=0,t.intersect=function(e){return _(t,e)},{cluster:o,labelBBox:{}}},`divider`),kanbanSection:e.n(async(e,r)=>{t.m.info(`Creating subgraph rect for `,r.id,r);let i=n.x(),{themeVariables:l,handDrawnSeed:u}=i,{clusterBkg:d,clusterBorder:f}=l,{labelStyles:p,nodeStyles:m,borderStyles:h,backgroundStyles:g}=s.i(r),v=e.insert(`g`).attr(`class`,`cluster `+r.cssClasses).attr(`id`,r.domId).attr(`data-look`,r.look),b=n.T(i),x=v.insert(`g`).attr(`class`,`cluster-label `),S=await a.n(x,r.label,{style:r.labelStyle,useHtmlLabels:b,isNode:!0,width:r.width}),C=S.getBBox();if(n.T(i)){let e=S.children[0],n=t.p(S);C=e.getBoundingClientRect(),n.attr(`width`,C.width),n.attr(`height`,C.height)}let w=r.width<=C.width+r.padding?C.width+r.padding:r.width;r.width<=C.width+r.padding?r.diff=(w-r.width)/2-r.padding:r.diff=-r.padding;let T=r.height,E=r.x-w/2,D=r.y-T/2;t.m.trace(`Data `,r,JSON.stringify(r));let O;if(r.look===`handDrawn`){let e=c.t.svg(v),n=s.a(r,{roughness:.7,fill:d,stroke:f,fillWeight:4,seed:u}),i=e.path(y(E,D,w,T,r.rx),n);O=v.insert(()=>(t.m.debug(`Rough node insert CXC`,i),i),`:first-child`),O.select(`path:nth-child(2)`).attr(`style`,h.join(`;`)),O.select(`path`).attr(`style`,g.join(`;`).replace(`fill`,`stroke`))}else O=v.insert(`rect`,`:first-child`),O.attr(`style`,m).attr(`rx`,r.rx).attr(`ry`,r.ry).attr(`x`,E).attr(`y`,D).attr(`width`,w).attr(`height`,T);let{subGraphTitleTopMargin:k}=o.n(i);if(x.attr(`transform`,`translate(${r.x-C.width/2}, ${r.y-r.height/2+k})`),p){let e=x.select(`span`);e&&e.attr(`style`,p)}let A=O.node().getBBox();return r.offsetX=0,r.width=A.width,r.height=A.height,r.offsetY=C.height-r.padding/2,r.intersect=function(e){return _(r,e)},{cluster:v,labelBBox:C}},`kanbanSection`),swimlane:b},C=new Map,w=e.n(async(e,t)=>{let n=await S[t.shape||`rect`](e,t);return C.set(t.id,n),n},`insertCluster`),T=e.n(()=>{C=new Map},`clear`);function E(e,t){return e.intersect(t)}e.n(E,`intersectNode`);var D=E;function O(e,t,n,r){var i=e.x,a=e.y,o=i-r.x,s=a-r.y,c=Math.sqrt(t*t*s*s+n*n*o*o),l=Math.abs(t*n*o/c);r.x<i&&(l=-l);var u=Math.abs(t*n*s/c);return r.y<a&&(u=-u),{x:i+l,y:a+u}}e.n(O,`intersectEllipse`);var k=O;function A(e,t,n){return k(e,t,t,n)}e.n(A,`intersectCircle`);var j=A;function M(e,t,n,r){{let i=t.y-e.y,a=e.x-t.x,o=t.x*e.y-e.x*t.y,s=i*n.x+a*n.y+o,c=i*r.x+a*r.y+o,l=1e-6;if(s!==0&&c!==0&&N(s,c))return;let u=r.y-n.y,d=n.x-r.x,f=r.x*n.y-n.x*r.y,p=u*e.x+d*e.y+f,m=u*t.x+d*t.y+f;if(Math.abs(p)<l&&Math.abs(m)<l&&N(p,m))return;let h=i*d-u*a;if(h===0)return;let g=Math.abs(h/2),_=a*f-d*o,v=_<0?(_-g)/h:(_+g)/h;return _=u*o-i*f,{x:v,y:_<0?(_-g)/h:(_+g)/h}}}e.n(M,`intersectLine`);function N(e,t){return e*t>0}e.n(N,`sameSign`);var P=M;function F(e,t,n){let r=e.x,i=e.y,a=[],o=1/0,s=1/0;typeof t.forEach==`function`?t.forEach(function(e){o=Math.min(o,e.x),s=Math.min(s,e.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));let c=r-e.width/2-o,l=i-e.height/2-s;for(let r=0;r<t.length;r++){let i=t[r],o=t[r<t.length-1?r+1:0],s=P(e,n,{x:c+i.x,y:l+i.y},{x:c+o.x,y:l+o.y});s&&a.push(s)}return a.length?(a.length>1&&a.sort(function(e,t){let r=e.x-n.x,i=e.y-n.y,a=Math.sqrt(r*r+i*i),o=t.x-n.x,s=t.y-n.y,c=Math.sqrt(o*o+s*s);return a<c?-1:a===c?0:1}),a[0]):e}e.n(F,`intersectPolygon`);var I={node:D,circle:j,ellipse:k,polygon:F,rect:_};function L(e,n){let{labelStyles:i}=s.i(n);n.labelStyle=i;let a=f(n),o=a;a||(o=`anchor`);let l=e.insert(`g`).attr(`class`,o).attr(`id`,n.domId||n.id),{cssStyles:u}=n,p=c.t.svg(l),m=s.a(n,{fill:`black`,stroke:`none`,fillStyle:`solid`});n.look!==`handDrawn`&&(m.roughness=0);let h=p.circle(0,0,2,m),g=l.insert(()=>h,`:first-child`);return g.attr(`class`,`anchor`).attr(`style`,r.u(u)),d(n,g),n.intersect=function(e){return t.m.info(`Circle intersect`,n,1,e),I.circle(n,1,e)},l}e.n(L,`anchor`);function R(e,t,n,r,i,a,o){let s=(e+n)/2,c=(t+r)/2,l=Math.atan2(r-t,n-e),u=(n-e)/2,d=(r-t)/2,f=u/i,p=d/a,m=Math.sqrt(f**2+p**2);if(m>1)throw Error(`The given radii are too small to create an arc between the points.`);let h=Math.sqrt(1-m**2),g=s+h*a*Math.sin(l)*(o?-1:1),_=c-h*i*Math.cos(l)*(o?-1:1),v=Math.atan2((t-_)/a,(e-g)/i),y=Math.atan2((r-_)/a,(n-g)/i)-v;o&&y<0&&(y+=2*Math.PI),!o&&y>0&&(y-=2*Math.PI);let b=[];for(let e=0;e<20;e++){let t=v+e/19*y,n=g+i*Math.cos(t),r=_+a*Math.sin(t);b.push({x:n,y:r})}return b}e.n(R,`generateArcPoints`);function z(e,t,n){let[r,i]=[t,n].sort((e,t)=>t-e);return i*(1-Math.sqrt(1-(e/r/2)**2))}e.n(z,`calculateArcSagitta`);async function ee(t,n){let{labelStyles:r,nodeStyles:i}=s.i(n);n.labelStyle=r;let a=n.padding??0,o=n.look===`neo`?16:a,u=n.look===`neo`?12:a,m=e.n(e=>e+u,`calcTotalHeight`),h=e.n(e=>{let t=e/2;return[t/(2.5+e/50),t]},`calcEllipseRadius`),{shapeSvg:g,bbox:_}=await l(t,n,f(n)),v=m(n?.height?n?.height:_.height),[y,b]=h(v),x=z(v,y,b),S=(n?.width?n?.width:_.width)+o*2+x-x,C=v,{cssStyles:w}=n,T=[{x:S/2,y:-C/2},{x:-S/2,y:-C/2},...R(-S/2,-C/2,-S/2,C/2,y,b,!1),{x:S/2,y:C/2},...R(S/2,C/2,S/2,-C/2,y,b,!0)],E=c.t.svg(g),D=s.a(n,{});n.look!==`handDrawn`&&(D.roughness=0,D.fillStyle=`solid`);let O=p(T),k=E.path(O,D),A=g.insert(()=>k,`:first-child`);return A.attr(`class`,`basic label-container outer-path`),w&&n.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,w),i&&n.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,i),A.attr(`transform`,`translate(${y/2}, 0)`),d(n,A),n.intersect=function(e){return I.polygon(n,T,e)},g}e.n(ee,`bowTieRect`);function B(e,t,n,r){return e.insert(`polygon`,`:first-child`).attr(`points`,r.map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`label-container`).attr(`transform`,`translate(`+-t/2+`,`+n/2+`)`)}e.n(B,`insertPolygonShape`);var V=12;async function H(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?28:i,o=t.look===`neo`?24:i,{shapeSvg:u,bbox:m}=await l(e,t,f(t)),h=(t?.width??m.width)+(t.look===`neo`?a*2:a+V),g=(t?.height??m.height)+(t.look===`neo`?o*2:o),_=h,v=-g,y=[{x:0+V,y:v},{x:_,y:v},{x:_,y:0},{x:0,y:0},{x:0,y:v+V},{x:0+V,y:v}],b,{cssStyles:x}=t;if(t.look===`handDrawn`){let e=c.t.svg(u),n=s.a(t,{}),r=p(y),i=e.path(r,n);b=u.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-h/2}, ${g/2})`),x&&b.attr(`style`,x)}else b=B(u,h,g,y);return r&&b.attr(`style`,r),d(t,b),t.intersect=function(e){return I.polygon(t,y,e)},u}e.n(H,`card`);function U(e,t){let{nodeStyles:n}=s.i(t);t.label=``;let r=e.insert(`g`).attr(`class`,f(t)).attr(`id`,t.domId??t.id),{cssStyles:i}=t,a=Math.max(28,t.width??0),o=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],l=c.t.svg(r),u=s.a(t,{});t.look!==`handDrawn`&&(u.roughness=0,u.fillStyle=`solid`);let d=p(o),m=l.path(d,u),h=r.insert(()=>m,`:first-child`);return i&&t.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,i),n&&t.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,n),t.width=28,t.height=28,t.intersect=function(e){return I.polygon(t,o,e)},r}e.n(U,`choice`);async function te(e,n,i){let{labelStyles:a,nodeStyles:o}=s.i(n);n.labelStyle=a;let{shapeSvg:u,bbox:p,halfPadding:m}=await l(e,n,f(n)),h=i?.padding??m,g=n.look===`neo`?p.width/2+32:p.width/2+h,_,{cssStyles:v}=n;if(n.look===`handDrawn`){let e=c.t.svg(u),t=s.a(n,{}),i=e.circle(0,0,g*2,t);_=u.insert(()=>i,`:first-child`),_.attr(`class`,`basic label-container`).attr(`style`,r.u(v))}else _=u.insert(`circle`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,o).attr(`r`,g).attr(`cx`,0).attr(`cy`,0);return d(n,_),n.calcIntersect=function(e,t){let n=e.width/2;return I.circle(e,n,t)},n.intersect=function(e){return t.m.info(`Circle intersect`,n,g,e),I.circle(n,g,e)},u}e.n(te,`circle`);function ne(e){let t=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),r=e*2,i={x:r/2*t,y:r/2*n},a={x:-(r/2)*t,y:r/2*n},o={x:-(r/2)*t,y:-(r/2)*n},s={x:r/2*t,y:-(r/2)*n};return`M ${a.x},${a.y} L ${s.x},${s.y}
2
+ M ${i.x},${i.y} L ${o.x},${o.y}`}e.n(ne,`createLine`);function W(e,n){let{labelStyles:r,nodeStyles:i}=s.i(n);n.labelStyle=r,n.label=``;let a=e.insert(`g`).attr(`class`,f(n)).attr(`id`,n.domId??n.id),o=Math.max(30,n?.width??0),{cssStyles:l}=n,u=c.t.svg(a),p=s.a(n,{});n.look!==`handDrawn`&&(p.roughness=0,p.fillStyle=`solid`);let m=u.circle(0,0,o*2,p),h=ne(o),g=u.path(h,p),_=a.insert(()=>m,`:first-child`);return _.insert(()=>g),_.attr(`class`,`outer-path`),l&&n.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,l),i&&n.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,i),d(n,_),n.intersect=function(e){return t.m.info(`crossedCircle intersect`,n,{radius:o,point:e}),I.circle(n,o,e)},a}e.n(W,`crossedCircle`);function G(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}e.n(G,`generateCirclePoints`);async function K(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await l(e,t,f(t)),u=t.look===`neo`?18:t.padding??0,m=t.look===`neo`?12:t.padding??0,h=a.width+u,g=a.height+m,_=Math.max(5,g*.1),{cssStyles:v}=t,y=[...G(h/2,-g/2,_,30,-90,0),{x:-h/2-_,y:_},...G(h/2+_*2,-_,_,20,-180,-270),...G(h/2+_*2,_,_,20,-90,-180),{x:-h/2-_,y:-g/2},...G(h/2,g/2,_,20,0,90)],b=[{x:h/2,y:-g/2-_},{x:-h/2,y:-g/2-_},...G(h/2,-g/2,_,20,-90,0),{x:-h/2-_,y:-_},...G(h/2+h*.1,-_,_,20,-180,-270),...G(h/2+h*.1,_,_,20,-90,-180),{x:-h/2-_,y:g/2},...G(h/2,g/2,_,20,0,90),{x:-h/2,y:g/2+_},{x:h/2,y:g/2+_}],x=c.t.svg(i),S=s.a(t,{fill:`none`});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=p(y).replace(`Z`,``),w=x.path(C,S),T=p(b),E=x.path(T,{...S}),D=i.insert(`g`,`:first-child`);return D.insert(()=>E,`:first-child`).attr(`stroke-opacity`,0),D.insert(()=>w,`:first-child`),D.attr(`class`,`text`),v&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),D.attr(`transform`,`translate(${_}, 0)`),o.attr(`transform`,`translate(${-h/2+_-(a.x-(a.left??0))},${-g/2+(t.padding??0)/2-(a.y-(a.top??0))})`),d(t,D),t.intersect=function(e){return I.polygon(t,b,e)},i}e.n(K,`curlyBraceLeft`);function q(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:a,y:l})}return o}e.n(q,`generateCirclePoints`);async function re(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await l(e,t,f(t)),u=t.look===`neo`?18:t.padding??0,m=t.look===`neo`?12:t.padding??0,h=a.width+(t.look===`neo`?u*2:u),g=a.height+(t.look===`neo`?m*2:m),_=Math.max(5,g*.1),{cssStyles:v}=t,y=[...q(h/2,-g/2,_,20,-90,0),{x:h/2+_,y:-_},...q(h/2+_*2,-_,_,20,-180,-270),...q(h/2+_*2,_,_,20,-90,-180),{x:h/2+_,y:g/2},...q(h/2,g/2,_,20,0,90)],b=[{x:-h/2,y:-g/2-_},{x:h/2,y:-g/2-_},...q(h/2,-g/2,_,20,-90,0),{x:h/2+_,y:-_},...q(h/2+_*2,-_,_,20,-180,-270),...q(h/2+_*2,_,_,20,-90,-180),{x:h/2+_,y:g/2},...q(h/2,g/2,_,20,0,90),{x:h/2,y:g/2+_},{x:-h/2,y:g/2+_}],x=c.t.svg(i),S=s.a(t,{fill:`none`});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=p(y).replace(`Z`,``),w=x.path(C,S),T=p(b),E=x.path(T,{...S}),D=i.insert(`g`,`:first-child`);return D.insert(()=>E,`:first-child`).attr(`stroke-opacity`,0),D.insert(()=>w,`:first-child`),D.attr(`class`,`text`),v&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),D.attr(`transform`,`translate(${-_}, 0)`),o.attr(`transform`,`translate(${-h/2+(t.padding??0)/2-(a.x-(a.left??0))},${-g/2+(t.padding??0)/2-(a.y-(a.top??0))})`),d(t,D),t.intersect=function(e){return I.polygon(t,b,e)},i}e.n(re,`curlyBraceRight`);function J(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}e.n(J,`generateCirclePoints`);async function ie(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await l(e,t,f(t)),u=t.look===`neo`?18:t.padding??0,m=t.look===`neo`?12:t.padding??0,h=a.width+(t.look===`neo`?u*2:u),g=a.height+(t.look===`neo`?m*2:m),_=Math.max(5,g*.1),{cssStyles:v}=t,y=[...J(h/2,-g/2,_,30,-90,0),{x:-h/2-_,y:_},...J(h/2+_*2,-_,_,20,-180,-270),...J(h/2+_*2,_,_,20,-90,-180),{x:-h/2-_,y:-g/2},...J(h/2,g/2,_,20,0,90)],b=[...J(-h/2+_+_/2,-g/2,_,20,-90,-180),{x:h/2-_/2,y:_},...J(-h/2-_/2,-_,_,20,0,90),...J(-h/2-_/2,_,_,20,-90,0),{x:h/2-_/2,y:-_},...J(-h/2+_+_/2,g/2,_,30,-180,-270)],x=[{x:h/2,y:-g/2-_},{x:-h/2,y:-g/2-_},...J(h/2,-g/2,_,20,-90,0),{x:-h/2-_,y:-_},...J(h/2+_*2,-_,_,20,-180,-270),...J(h/2+_*2,_,_,20,-90,-180),{x:-h/2-_,y:g/2},...J(h/2,g/2,_,20,0,90),{x:-h/2,y:g/2+_},{x:h/2-_-_/2,y:g/2+_},...J(-h/2+_+_/2,-g/2,_,20,-90,-180),{x:h/2-_/2,y:_},...J(-h/2-_/2,-_,_,20,0,90),...J(-h/2-_/2,_,_,20,-90,0),{x:h/2-_/2,y:-_},...J(-h/2+_+_/2,g/2,_,30,-180,-270)],S=c.t.svg(i),C=s.a(t,{fill:`none`});t.look!==`handDrawn`&&(C.roughness=0,C.fillStyle=`solid`);let w=p(y).replace(`Z`,``),T=S.path(w,C),E=p(b).replace(`Z`,``),D=S.path(E,C),O=p(x),k=S.path(O,{...C}),A=i.insert(`g`,`:first-child`);return A.insert(()=>k,`:first-child`).attr(`stroke-opacity`,0),A.insert(()=>T,`:first-child`),A.insert(()=>D,`:first-child`),A.attr(`class`,`text`),v&&t.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,r),A.attr(`transform`,`translate(${_-_/4}, 0)`),o.attr(`transform`,`translate(${-h/2+(t.padding??0)/2-(a.x-(a.left??0))},${-g/2+(t.padding??0)/2-(a.y-(a.top??0))})`),d(t,A),t.intersect=function(e){return I.polygon(t,x,e)},i}e.n(ie,`curlyBraces`);async function ae(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,{shapeSvg:u,bbox:m}=await l(e,t,f(t)),g=Math.max(20,(m.width+a*2)*1.25,t?.width??0),_=Math.max(5,m.height+o*2,t?.height??0),v=_/2,{cssStyles:y}=t,b=c.t.svg(u),x=s.a(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=g,C=_,w=S-v,T=C/4,E=[{x:w,y:0},{x:T,y:0},{x:0,y:C/2},{x:T,y:C},{x:w,y:C},...h(-w,-C/2,v,50,270,90)],D=p(E),O=b.path(D,x),k=u.insert(()=>O,`:first-child`);return k.attr(`class`,`basic label-container outer-path`),y&&t.look!==`handDrawn`&&k.selectChildren(`path`).attr(`style`,y),r&&t.look!==`handDrawn`&&k.selectChildren(`path`).attr(`style`,r),k.attr(`transform`,`translate(${-g/2}, ${-_/2})`),d(t,k),t.intersect=function(e){return I.polygon(t,E,e)},u}e.n(ae,`curvedTrapezoid`);var oe=e.n((e,t,n,r,i,a)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createCylinderPathD`),se=e.n((e,t,n,r,i,a)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createOuterCylinderPathD`),ce=e.n((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),le=8,ue=8;async function de(e,t){let{labelStyles:n,nodeStyles:i}=s.i(t);t.labelStyle=n;let a=t.padding??0,o=t.look===`neo`?24:a,u=t.look===`neo`?24:a;if(t.width||t.height){let e=t.width??0;t.width=(t.width??0)-u,t.width<ue&&(t.width=ue);let n=e/2/(2.5+e/50);t.height=(t.height??0)-o-n*3,t.height<le&&(t.height=le)}let{shapeSvg:p,bbox:m,label:h}=await l(e,t,f(t)),g=(t.width?t.width:m.width)+u,_=g/2,v=_/(2.5+g/50),y=(t.height?t.height:m.height)+o+v,b,{cssStyles:x}=t;if(t.look===`handDrawn`){let e=c.t.svg(p),n=se(0,0,g,y,_,v),r=ce(0,v,g,y,_,v),i=s.a(t,{}),a=e.path(n,i),o=e.path(r,s.a(t,{fill:`none`}));b=p.insert(()=>o,`:first-child`),b=p.insert(()=>a,`:first-child`),b.attr(`class`,`basic label-container`),x&&b.attr(`style`,x)}else{let e=oe(0,0,g,y,_,v);b=p.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,r.u(x)).attr(`style`,i)}return b.attr(`label-offset-y`,v),b.attr(`transform`,`translate(${-g/2}, ${-(y/2+v)})`),d(t,b),h.attr(`transform`,`translate(${-(m.width/2)-(m.x-(m.left??0))}, ${-(m.height/2)+(t.padding??0)/1.5-(m.y-(m.top??0))})`),t.intersect=function(e){let n=I.rect(t,e),r=n.x-(t.x??0);if(_!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-v)){let i=v*v*(1-r*r/(_*_));i>0&&(i=Math.sqrt(i)),i=v-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},p}e.n(de,`cylinder`);async function Y(e,t,n){let{labelStyles:i,nodeStyles:a}=s.i(t);t.labelStyle=i;let{shapeSvg:o,bbox:u}=await l(e,t,f(t)),p=Math.max(u.width+n.labelPaddingX*2,t?.width||0),m=Math.max(u.height+n.labelPaddingY*2,t?.height||0),h=-p/2,g=-m/2,_,{rx:v,ry:b}=t,{cssStyles:x}=t;if(n?.rx&&n.ry&&(v=n.rx,b=n.ry),t.look===`handDrawn`){let e=c.t.svg(o),n=s.a(t,{}),i=v||b?e.path(y(h,g,p,m,v||0),n):e.rectangle(h,g,p,m,n);_=o.insert(()=>i,`:first-child`),_.attr(`class`,`basic label-container`).attr(`style`,r.u(x))}else _=o.insert(`rect`,`:first-child`),_.attr(`class`,`basic label-container`).attr(`style`,a).attr(`rx`,r.u(v)).attr(`ry`,r.u(b)).attr(`x`,h).attr(`y`,g).attr(`width`,p).attr(`height`,m);return d(t,_),t.calcIntersect=function(e,t){return I.rect(e,t)},t.intersect=function(e){return I.rect(t,e)},o}e.n(Y,`drawRect`);async function fe(e,t){let{cssClasses:n,labelPaddingX:r,labelPaddingY:i,padding:a,width:o,height:l}=t,u=await Y(e,t,{rx:0,ry:0,classes:n??``,labelPaddingX:r??(a??0)*2,labelPaddingY:i??a??0});if(t.look===`handDrawn`){let e=c.t.svg(u),n=s.a(t,{}),r=u.select(`.basic.label-container > path:nth-child(2)`),i=r.node();if(!i)return u;let a=null;if(i instanceof SVGGraphicsElement)a=i.getBBox();else return u;return u.insert(()=>e.line(a.x,a.y,a.x+a.width,a.y,n),`.basic.label-container g.label`),u.insert(()=>e.line(a.x,a.y+a.height,a.x+a.width,a.y+a.height,n),`.basic.label-container g.label`),r.remove(),u}let d=u.select(`.basic.label-container`),f=(Number(d.attr(`width`))||o)??0,p=(Number(d.attr(`height`))||l)??0;return f>0&&p>0&&d.attr(`stroke-dasharray`,`${f} ${p}`),u}e.n(fe,`datastore`);async function pe(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?16:t.padding??0,{shapeSvg:o,bbox:u,label:p}=await l(e,t,f(t)),m=u.width+i,h=u.height+a,g=h*.2,_=-m/2,v=-h/2-g/2,{cssStyles:y}=t,b=c.t.svg(o),x=s.a(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=[{x:_,y:v+g},{x:-_,y:v+g},{x:-_,y:-v},{x:_,y:-v},{x:_,y:v},{x:-_,y:v},{x:-_,y:v+g}],C=b.polygon(S.map(e=>[e.x,e.y]),x),w=o.insert(()=>C,`:first-child`);return w.attr(`class`,`basic label-container outer-path`),y&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,y),r&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,r),p.attr(`transform`,`translate(${_+(t.padding??0)/2-(u.x-(u.left??0))}, ${v+g+(t.padding??0)/2-(u.y-(u.top??0))})`),d(t,w),t.intersect=function(e){return I.rect(t,e)},o}e.n(pe,`dividedRectangle`);async function me(e,n){let{labelStyles:i,nodeStyles:a}=s.i(n),o=n.look===`neo`?12:5;n.labelStyle=i;let u=n.padding??0,p=n.look===`neo`?16:u,{shapeSvg:m,bbox:h}=await l(e,n,f(n)),g=(n?.width?n?.width/2:h.width/2)+(p??0),_=g-o,v,{cssStyles:y}=n;if(n.look===`handDrawn`){let e=c.t.svg(m),t=s.a(n,{roughness:.2,strokeWidth:2.5}),i=s.a(n,{roughness:.2,strokeWidth:1.5}),a=e.circle(0,0,g*2,t),o=e.circle(0,0,_*2,i);v=m.insert(`g`,`:first-child`),v.attr(`class`,r.u(n.cssClasses)).attr(`style`,r.u(y)),v.node()?.appendChild(a),v.node()?.appendChild(o)}else{v=m.insert(`g`,`:first-child`);let e=v.insert(`circle`,`:first-child`),t=v.insert(`circle`);v.attr(`class`,`basic label-container`).attr(`style`,a),e.attr(`class`,`outer-circle`).attr(`style`,a).attr(`r`,g).attr(`cx`,0).attr(`cy`,0),t.attr(`class`,`inner-circle`).attr(`style`,a).attr(`r`,_).attr(`cx`,0).attr(`cy`,0)}return d(n,v),n.intersect=function(e){return t.m.info(`DoubleCircle intersect`,n,g,e),I.circle(n,g,e)},m}e.n(me,`doublecircle`);function he(e,n,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:a}=s.i(n);n.label=``,n.labelStyle=i;let o=e.insert(`g`).attr(`class`,f(n)).attr(`id`,n.domId??n.id),{cssStyles:l}=n,u=c.t.svg(o),{nodeBorder:p}=r,m=s.a(n,{fillStyle:`solid`});n.look!==`handDrawn`&&(m.roughness=0);let h=u.circle(0,0,14,m),g=o.insert(()=>h,`:first-child`);return g.selectAll(`path`).attr(`style`,`fill: ${p} !important;`),l&&l.length>0&&n.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,l),a&&n.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,a),d(n,g),n.intersect=function(e){return t.m.info(`filledCircle intersect`,n,{radius:7,point:e}),I.circle(n,7,e)},o}e.n(he,`filledCircle`);var ge=10,_e=10;async function ve(e,n){let{labelStyles:r,nodeStyles:i}=s.i(n);n.labelStyle=r;let a=n.padding??0,o=n.look===`neo`?a*2:a;(n.width||n.height)&&(n.height=n?.height??0,n.height<ge&&(n.height=ge),n.width=(n?.width??0)-o-o/2,n.width<_e&&(n.width=_e));let{shapeSvg:u,bbox:m,label:h}=await l(e,n,f(n)),g=(n?.width?n?.width:m.width)+(o??0),_=n?.height?n?.height:g+m.height,v=_,y=[{x:0,y:-_},{x:v,y:-_},{x:v/2,y:0}],{cssStyles:b}=n,x=c.t.svg(u),S=s.a(n,{});n.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=p(y),w=x.path(C,S),T=u.insert(()=>w,`:first-child`).attr(`transform`,`translate(${-_/2}, ${_/2})`).attr(`class`,`outer-path`);return b&&n.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,b),i&&n.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,i),n.width=g,n.height=_,d(n,T),h.attr(`transform`,`translate(${-m.width/2-(m.x-(m.left??0))}, ${-_/2+(n.padding??0)/2+(m.y-(m.top??0))})`),n.intersect=function(e){return t.m.info(`Triangle intersect`,n,y,e),I.polygon(n,y,e)},u}e.n(ve,`flippedTriangle`);function ye(e,t,{dir:n,config:{state:r,themeVariables:i}}){let{nodeStyles:a}=s.i(t);t.label=``;let o=e.insert(`g`).attr(`class`,f(t)).attr(`id`,t.domId??t.id),{cssStyles:l}=t,u=Math.max(70,t?.width??0),p=Math.max(10,t?.height??0);n===`LR`&&(u=Math.max(10,t?.width??0),p=Math.max(70,t?.height??0));let m=-1*u/2,h=-1*p/2,g=c.t.svg(o),_=s.a(t,{stroke:i.lineColor,fill:i.lineColor});t.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let v=g.rectangle(m,h,u,p,_),y=o.insert(()=>v,`:first-child`);l&&t.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,l),a&&t.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,a),d(t,y);let b=r?.padding??0;return t.width&&t.height&&(t.width+=b/2||0,t.height+=b/2||0),t.intersect=function(e){return I.rect(t,e)},o}e.n(ye,`forkJoin`);async function be(e,n){let{labelStyles:r,nodeStyles:i}=s.i(n);n.labelStyle=r;let a=n.look===`neo`?16:n.padding??0,o=n.look===`neo`?12:n.padding??0;(n.width||n.height)&&(n.height=(n?.height??0)-o*2,n.height<10&&(n.height=10),n.width=(n?.width??0)-a*2,n.width<15&&(n.width=15));let{shapeSvg:u,bbox:m}=await l(e,n,f(n)),g=(n?.width?n?.width:Math.max(15,m.width))+a*2,_=(n?.height?n?.height:Math.max(10,m.height))+o*2,v=_/2,{cssStyles:y}=n,b=c.t.svg(u),x=s.a(n,{});n.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=[{x:-g/2,y:-_/2},{x:g/2-v,y:-_/2},...h(-g/2+v,0,v,50,90,270),{x:g/2-v,y:_/2},{x:-g/2,y:_/2}],C=p(S),w=b.path(C,x),T=u.insert(()=>w,`:first-child`);return T.attr(`class`,`basic label-container outer-path`),y&&n.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,y),i&&n.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,i),d(n,T),n.intersect=function(e){return t.m.info(`Pill intersect`,n,{radius:v,point:e}),I.polygon(n,S,e)},u}e.n(be,`halfRoundedRectangle`);var xe=e.n((e,t,n,r,i)=>[`M${e+i},${t}`,`L${e+n-i},${t}`,`L${e+n},${t-r/2}`,`L${e+n-i},${t-r}`,`L${e+i},${t-r}`,`L${e},${t-r/2}`,`Z`].join(` `),`createHexagonPathD`);async function Se(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t),i=t.look===`neo`?3.5:4;t.labelStyle=n;let a=t.padding??0,o=t.look===`neo`?70:a,u=t.look===`neo`?32:a;if(t.width||t.height){let e=(t.height??0)/i;t.width=(t?.width??0)-2*e-u,t.height=(t.height??0)-o}let{shapeSvg:p,bbox:m}=await l(e,t,f(t)),h=(t?.height?t?.height:m.height)+o,g=h/i,_=(t?.width?t?.width:m.width)+2*g+u,v=[{x:g,y:0},{x:_-g,y:0},{x:_,y:-h/2},{x:_-g,y:-h},{x:g,y:-h},{x:0,y:-h/2}],y,{cssStyles:b}=t;if(t.look===`handDrawn`){let e=c.t.svg(p),n=s.a(t,{}),r=xe(0,0,_,h,g),i=e.path(r,n);y=p.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-_/2}, ${h/2})`),b&&y.attr(`style`,b)}else y=B(p,_,h,v);return r&&y.attr(`style`,r),t.width=_,t.height=h,d(t,y),t.intersect=function(e){return I.polygon(t,v,e)},p}e.n(Se,`hexagon`);async function Ce(e,n){let{labelStyles:r,nodeStyles:i}=s.i(n);n.label=``,n.labelStyle=r;let{shapeSvg:a}=await l(e,n,f(n)),o=Math.max(30,n?.width??0),u=Math.max(30,n?.height??0),{cssStyles:m}=n,h=c.t.svg(a),g=s.a(n,{});n.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=[{x:0,y:0},{x:o,y:0},{x:0,y:u},{x:o,y:u}],v=p(_),y=h.path(v,g),b=a.insert(()=>y,`:first-child`);return b.attr(`class`,`basic label-container outer-path`),m&&n.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,m),i&&n.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,i),b.attr(`transform`,`translate(${-o/2}, ${-u/2})`),d(n,b),n.intersect=function(e){return t.m.info(`Pill intersect`,n,{points:_}),I.polygon(n,_,e)},a}e.n(Ce,`hourglass`);async function we(e,n,{config:{themeVariables:r,flowchart:a}}){let{labelStyles:o}=s.i(n);n.labelStyle=o;let u=n.assetHeight??48,f=n.assetWidth??48,p=Math.max(u,f),m=a?.wrappingWidth;n.width=Math.max(p,m??0);let{shapeSvg:h,bbox:g,label:_}=await l(e,n,`icon-shape default`),v=n.pos===`t`,y=p,b=p,{nodeBorder:x}=r,{stylesMap:S}=s.t(n),C=-b/2,w=-y/2,T=n.label?8:0,E=c.t.svg(h),D=s.a(n,{stroke:`none`,fill:`none`});n.look!==`handDrawn`&&(D.roughness=0,D.fillStyle=`solid`);let O=E.rectangle(C,w,b,y,D),k=Math.max(b,g.width),A=y+g.height+T,j=E.rectangle(-k/2,-A/2,k,A,{...D,fill:`transparent`,stroke:`none`}),M=h.insert(()=>O,`:first-child`),N=h.insert(()=>j);if(n.icon){let e=h.append(`g`);e.html(`<g>${await i.t(n.icon,{height:p,width:p,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),r=t.width,a=t.height,o=t.x,s=t.y;e.attr(`transform`,`translate(${-r/2-o},${v?g.height/2+T/2-a/2-s:-g.height/2-T/2-a/2-s})`),e.attr(`style`,`color: ${S.get(`stroke`)??x};`)}return _.attr(`transform`,`translate(${-g.width/2-(g.x-(g.left??0))},${v?-A/2:A/2-g.height})`),M.attr(`transform`,`translate(0,${v?g.height/2+T/2:-g.height/2-T/2})`),d(n,N),n.intersect=function(e){if(t.m.info(`iconSquare intersect`,n,e),!n.label)return I.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=v?[{x:r-g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2+g.height+T},{x:r+b/2,y:i-a/2+g.height+T},{x:r+b/2,y:i+a/2},{x:r-b/2,y:i+a/2},{x:r-b/2,y:i-a/2+g.height+T},{x:r-g.width/2,y:i-a/2+g.height+T}]:[{x:r-b/2,y:i-a/2},{x:r+b/2,y:i-a/2},{x:r+b/2,y:i-a/2+y},{x:r+g.width/2,y:i-a/2+y},{x:r+g.width/2/2,y:i+a/2},{x:r-g.width/2,y:i+a/2},{x:r-g.width/2,y:i-a/2+y},{x:r-b/2,y:i-a/2+y}],I.polygon(n,o,e)},h}e.n(we,`icon`);async function Te(e,n,{config:{themeVariables:r,flowchart:a}}){let{labelStyles:o}=s.i(n);n.labelStyle=o;let u=n.assetHeight??48,f=n.assetWidth??48,p=Math.max(u,f),m=a?.wrappingWidth;n.width=Math.max(p,m??0);let{shapeSvg:h,bbox:g,label:_}=await l(e,n,`icon-shape default`),v=n.label?8:0,y=n.pos===`t`,{nodeBorder:b,mainBkg:x}=r,{stylesMap:S}=s.t(n),C=c.t.svg(h),w=s.a(n,{});n.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`),w.stroke=S.get(`fill`)??x;let T=h.append(`g`);n.icon&&T.html(`<g>${await i.t(n.icon,{height:p,width:p,fallbackPrefix:``})}</g>`);let E=T.node().getBBox(),D=E.width,O=E.height,k=E.x,A=E.y,j=Math.max(D,O)*Math.SQRT2+40,M=C.circle(0,0,j,w),N=Math.max(j,g.width),P=j+g.height+v,F=C.rectangle(-N/2,-P/2,N,P,{...w,fill:`transparent`,stroke:`none`}),L=h.insert(()=>M,`:first-child`),R=h.insert(()=>F);return T.attr(`transform`,`translate(${-D/2-k},${y?g.height/2+v/2-O/2-A:-g.height/2-v/2-O/2-A})`),T.attr(`style`,`color: ${S.get(`stroke`)??b};`),_.attr(`transform`,`translate(${-g.width/2-(g.x-(g.left??0))},${y?-P/2:P/2-g.height})`),L.attr(`transform`,`translate(0,${y?g.height/2+v/2:-g.height/2-v/2})`),d(n,R),n.intersect=function(e){return t.m.info(`iconSquare intersect`,n,e),I.rect(n,e)},h}e.n(Te,`iconCircle`);async function Ee(e,n,{config:{themeVariables:r,flowchart:a}}){let{labelStyles:o}=s.i(n);n.labelStyle=o;let u=n.assetHeight??48,f=n.assetWidth??48,p=Math.max(u,f),m=a?.wrappingWidth;n.width=Math.max(p,m??0);let{shapeSvg:h,bbox:g,halfPadding:_,label:v}=await l(e,n,`icon-shape default`),b=n.pos===`t`,x=p+_*2,S=p+_*2,{nodeBorder:C,mainBkg:w}=r,{stylesMap:T}=s.t(n),E=-S/2,D=-x/2,O=n.label?8:0,k=c.t.svg(h),A=s.a(n,{});n.look!==`handDrawn`&&(A.roughness=0,A.fillStyle=`solid`),A.stroke=T.get(`fill`)??w;let j=k.path(y(E,D,S,x,5),A),M=Math.max(S,g.width),N=x+g.height+O,P=k.rectangle(-M/2,-N/2,M,N,{...A,fill:`transparent`,stroke:`none`}),F=h.insert(()=>j,`:first-child`).attr(`class`,`icon-shape2`),L=h.insert(()=>P);if(n.icon){let e=h.append(`g`);e.html(`<g>${await i.t(n.icon,{height:p,width:p,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),r=t.width,a=t.height,o=t.x,s=t.y;e.attr(`transform`,`translate(${-r/2-o},${b?g.height/2+O/2-a/2-s:-g.height/2-O/2-a/2-s})`),e.attr(`style`,`color: ${T.get(`stroke`)??C};`)}return v.attr(`transform`,`translate(${-g.width/2-(g.x-(g.left??0))},${b?-N/2:N/2-g.height})`),F.attr(`transform`,`translate(0,${b?g.height/2+O/2:-g.height/2-O/2})`),d(n,L),n.intersect=function(e){if(t.m.info(`iconSquare intersect`,n,e),!n.label)return I.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=b?[{x:r-g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2+g.height+O},{x:r+S/2,y:i-a/2+g.height+O},{x:r+S/2,y:i+a/2},{x:r-S/2,y:i+a/2},{x:r-S/2,y:i-a/2+g.height+O},{x:r-g.width/2,y:i-a/2+g.height+O}]:[{x:r-S/2,y:i-a/2},{x:r+S/2,y:i-a/2},{x:r+S/2,y:i-a/2+x},{x:r+g.width/2,y:i-a/2+x},{x:r+g.width/2/2,y:i+a/2},{x:r-g.width/2,y:i+a/2},{x:r-g.width/2,y:i-a/2+x},{x:r-S/2,y:i-a/2+x}],I.polygon(n,o,e)},h}e.n(Ee,`iconRounded`);async function De(e,n,{config:{themeVariables:r,flowchart:a}}){let{labelStyles:o}=s.i(n);n.labelStyle=o;let u=n.assetHeight??48,f=n.assetWidth??48,p=Math.max(u,f),m=a?.wrappingWidth;n.width=Math.max(p,m??0);let{shapeSvg:h,bbox:g,halfPadding:_,label:v}=await l(e,n,`icon-shape default`),b=n.pos===`t`,x=p+_*2,S=p+_*2,{nodeBorder:C,mainBkg:w}=r,{stylesMap:T}=s.t(n),E=-S/2,D=-x/2,O=n.label?8:0,k=c.t.svg(h),A=s.a(n,{});n.look!==`handDrawn`&&(A.roughness=0,A.fillStyle=`solid`),A.stroke=T.get(`fill`)??w;let j=k.path(y(E,D,S,x,.1),A),M=Math.max(S,g.width),N=x+g.height+O,P=k.rectangle(-M/2,-N/2,M,N,{...A,fill:`transparent`,stroke:`none`}),F=h.insert(()=>j,`:first-child`),L=h.insert(()=>P);if(n.icon){let e=h.append(`g`);e.html(`<g>${await i.t(n.icon,{height:p,width:p,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),r=t.width,a=t.height,o=t.x,s=t.y;e.attr(`transform`,`translate(${-r/2-o},${b?g.height/2+O/2-a/2-s:-g.height/2-O/2-a/2-s})`),e.attr(`style`,`color: ${T.get(`stroke`)??C};`)}return v.attr(`transform`,`translate(${-g.width/2-(g.x-(g.left??0))},${b?-N/2:N/2-g.height})`),F.attr(`transform`,`translate(0,${b?g.height/2+O/2:-g.height/2-O/2})`),d(n,L),n.intersect=function(e){if(t.m.info(`iconSquare intersect`,n,e),!n.label)return I.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=b?[{x:r-g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2+g.height+O},{x:r+S/2,y:i-a/2+g.height+O},{x:r+S/2,y:i+a/2},{x:r-S/2,y:i+a/2},{x:r-S/2,y:i-a/2+g.height+O},{x:r-g.width/2,y:i-a/2+g.height+O}]:[{x:r-S/2,y:i-a/2},{x:r+S/2,y:i-a/2},{x:r+S/2,y:i-a/2+x},{x:r+g.width/2,y:i-a/2+x},{x:r+g.width/2/2,y:i+a/2},{x:r-g.width/2,y:i+a/2},{x:r-g.width/2,y:i-a/2+x},{x:r-S/2,y:i-a/2+x}],I.polygon(n,o,e)},h}e.n(De,`iconSquare`);async function Oe(e,n,{config:{flowchart:r}}){let i=new Image;i.src=n?.img??``,await i.decode();let a=Number(i.naturalWidth.toString().replace(`px`,``)),o=Number(i.naturalHeight.toString().replace(`px`,``));n.imageAspectRatio=a/o;let{labelStyles:u}=s.i(n);n.labelStyle=u;let f=r?.wrappingWidth;n.defaultWidth=r?.wrappingWidth;let p=Math.max(n.label?f??0:0,n?.assetWidth??a),m=n.constraint===`on`&&n?.assetHeight?n.assetHeight*n.imageAspectRatio:p,h=n.constraint===`on`?m/n.imageAspectRatio:n?.assetHeight??o;n.width=Math.max(m,f??0);let{shapeSvg:g,bbox:_,label:v}=await l(e,n,`image-shape default`),y=n.pos===`t`,b=-m/2,x=-h/2,S=n.label?8:0,C=c.t.svg(g),w=s.a(n,{});n.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=C.rectangle(b,x,m,h,w),E=Math.max(m,_.width),D=h+_.height+S,O=C.rectangle(-E/2,-D/2,E,D,{...w,fill:`none`,stroke:`none`}),k=g.insert(()=>T,`:first-child`),A=g.insert(()=>O);if(n.img){let e=g.append(`image`);e.attr(`href`,n.img),e.attr(`width`,m),e.attr(`height`,h),e.attr(`preserveAspectRatio`,`none`),e.attr(`transform`,`translate(${-m/2},${y?D/2-h:-D/2})`)}return v.attr(`transform`,`translate(${-_.width/2-(_.x-(_.left??0))},${y?-h/2-_.height/2-S/2:h/2-_.height/2+S/2})`),k.attr(`transform`,`translate(0,${y?_.height/2+S/2:-_.height/2-S/2})`),d(n,A),n.intersect=function(e){if(t.m.info(`iconSquare intersect`,n,e),!n.label)return I.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=y?[{x:r-_.width/2,y:i-a/2},{x:r+_.width/2,y:i-a/2},{x:r+_.width/2,y:i-a/2+_.height+S},{x:r+m/2,y:i-a/2+_.height+S},{x:r+m/2,y:i+a/2},{x:r-m/2,y:i+a/2},{x:r-m/2,y:i-a/2+_.height+S},{x:r-_.width/2,y:i-a/2+_.height+S}]:[{x:r-m/2,y:i-a/2},{x:r+m/2,y:i-a/2},{x:r+m/2,y:i-a/2+h},{x:r+_.width/2,y:i-a/2+h},{x:r+_.width/2/2,y:i+a/2},{x:r-_.width/2,y:i+a/2},{x:r-_.width/2,y:i-a/2+h},{x:r-m/2,y:i-a/2+h}],I.polygon(n,o,e)},g}e.n(Oe,`imageSquare`);async function ke(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:u,bbox:m}=await l(e,t,f(t)),h=Math.max(m.width+(o??0)*2,t?.width??0),g=Math.max(m.height+(a??0)*2,t?.height??0),_=[{x:0,y:0},{x:h,y:0},{x:h+3*g/6,y:-g},{x:-3*g/6,y:-g}],v,{cssStyles:y}=t;if(t.look===`handDrawn`){let e=c.t.svg(u),n=s.a(t,{}),r=p(_),i=e.path(r,n);v=u.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-h/2}, ${g/2})`),y&&v.attr(`style`,y)}else v=B(u,h,g,_);return r&&v.attr(`style`,r),t.width=h,t.height=g,d(t,v),t.intersect=function(e){return I.polygon(t,_,e)},u}e.n(ke,`inv_trapezoid`);async function Ae(e,t){let{shapeSvg:n,bbox:r,label:i}=await l(e,t,`label`),a=n.insert(`rect`,`:first-child`);return a.attr(`width`,.1).attr(`height`,.1),n.attr(`class`,`label edgeLabel`),i.attr(`transform`,`translate(${-(r.width/2)-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),d(t,a),t.intersect=function(e){return I.rect(t,e)},n}e.n(Ae,`labelRect`);async function je(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:u,bbox:m}=await l(e,t,f(t)),h=(t?.height??m.height)+a,g=(t?.width??m.width)+o,_=[{x:0,y:0},{x:g+3*h/6,y:0},{x:g,y:-h},{x:-(3*h)/6,y:-h}],v,{cssStyles:y}=t;if(t.look===`handDrawn`){let e=c.t.svg(u),n=s.a(t,{}),r=p(_),i=e.path(r,n);v=u.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-g/2}, ${h/2})`),y&&v.attr(`style`,y)}else v=B(u,g,h,_);return r&&v.attr(`style`,r),t.width=g,t.height=h,d(t,v),t.intersect=function(e){return I.polygon(t,_,e)},u}e.n(je,`lean_left`);async function Me(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:u,bbox:m}=await l(e,t,f(t)),h=(t?.height??m.height)+a,g=(t?.width??m.width)+o,_=[{x:-3*h/6,y:0},{x:g,y:0},{x:g+3*h/6,y:-h},{x:0,y:-h}],v,{cssStyles:y}=t;if(t.look===`handDrawn`){let e=c.t.svg(u),n=s.a(t,{}),r=p(_),i=e.path(r,n);v=u.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-g/2}, ${h/2})`),y&&v.attr(`style`,y)}else v=B(u,g,h,_);return r&&v.attr(`style`,r),t.width=g,t.height=h,d(t,v),t.intersect=function(e){return I.polygon(t,_,e)},u}e.n(Me,`lean_right`);function Ne(e,n){let{labelStyles:r,nodeStyles:i}=s.i(n);n.label=``,n.labelStyle=r;let a=e.insert(`g`).attr(`class`,f(n)).attr(`id`,n.domId??n.id),{cssStyles:o}=n,l=Math.max(35,n?.width??0),u=Math.max(35,n?.height??0),m=[{x:l,y:0},{x:0,y:u+7/2},{x:l-14,y:u+7/2},{x:0,y:2*u},{x:l,y:u-7/2},{x:14,y:u-7/2}],h=c.t.svg(a),g=s.a(n,{});n.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=p(m),v=h.path(_,g),y=a.insert(()=>v,`:first-child`);return y.attr(`class`,`outer-path`),o&&n.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,o),i&&n.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,i),y.attr(`transform`,`translate(-${l/2},${-u})`),d(n,y),n.intersect=function(e){return t.m.info(`lightningBolt intersect`,n,e),I.polygon(n,m,e)},a}e.n(Ne,`lightningBolt`);var Pe=e.n((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createCylinderPathD`),Fe=e.n((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createOuterCylinderPathD`),Ie=e.n((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),Le=10,Re=10;async function ze(e,t){let{labelStyles:n,nodeStyles:i}=s.i(t);t.labelStyle=n;let a=t.padding??0,o=t.look===`neo`?16:a,u=t.look===`neo`?24:a;if(t.width||t.height){let e=t.width??0;t.width=(t.width??0)-o,t.width<Re&&(t.width=Re);let n=e/2/(2.5+e/50);t.height=(t.height??0)-u-n*3,t.height<Le&&(t.height=Le)}let{shapeSvg:p,bbox:m,label:h}=await l(e,t,f(t)),g=(t?.width?t?.width:m.width)+o*2,_=g/2,v=_/(2.5+g/50),y=(t?.height?t?.height:m.height)+v+u*2,b=y*.1,x,{cssStyles:S}=t;if(t.look===`handDrawn`){let e=c.t.svg(p),n=Fe(0,0,g,y,_,v,b),r=Ie(0,v,g,y,_,v),i=s.a(t,{}),a=e.path(n,i),o=e.path(r,i);p.insert(()=>o,`:first-child`).attr(`class`,`line`),x=p.insert(()=>a,`:first-child`),x.attr(`class`,`basic label-container`),S&&x.attr(`style`,S)}else{let e=Pe(0,0,g,y,_,v,b);x=p.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,r.u(S)).attr(`style`,i)}return x.attr(`label-offset-y`,v),x.attr(`transform`,`translate(${-g/2}, ${-(y/2+v)})`),d(t,x),h.attr(`transform`,`translate(${-(m.width/2)-(m.x-(m.left??0))}, ${-(m.height/2)+v-(m.y-(m.top??0))})`),t.intersect=function(e){let n=I.rect(t,e),r=n.x-(t.x??0);if(_!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-v)){let i=v*v*(1-r*r/(_*_));i>0&&(i=Math.sqrt(i)),i=v-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},p}e.n(ze,`linedCylinder`);async function Be(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.width=(t.width??0)*10/11-a*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-o*2,t.height<10&&(t.height=10));let{shapeSvg:u,bbox:p,label:h}=await l(e,t,f(t)),g=(t?.width?t?.width:p.width)+(a??0)*2,_=(t?.height?t?.height:p.height)+(o??0)*2,v=t.look===`neo`?_/4:_/8,y=_+v,{cssStyles:b}=t,x=c.t.svg(u),S=s.a(t,{});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=[{x:-g/2-g/2*.1,y:-y/2},{x:-g/2-g/2*.1,y:y/2},...m(-g/2-g/2*.1,y/2,g/2+g/2*.1,y/2,v,.8),{x:g/2+g/2*.1,y:-y/2},{x:-g/2-g/2*.1,y:-y/2},{x:-g/2,y:-y/2},{x:-g/2,y:y/2*1.1},{x:-g/2,y:-y/2}],w=x.polygon(C.map(e=>[e.x,e.y]),S),T=u.insert(()=>w,`:first-child`);return T.attr(`class`,`basic label-container outer-path`),b&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,b),r&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,r),T.attr(`transform`,`translate(0,${-v/2})`),h.attr(`transform`,`translate(${-g/2+(t.padding??0)+g/2*.1/2-(p.x-(p.left??0))},${-_/2+(t.padding??0)-v/2-(p.y-(p.top??0))})`),d(t,T),t.intersect=function(e){return I.polygon(t,C,e)},u}e.n(Be,`linedWaveEdgedRect`);async function Ve(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,u=t.look===`neo`?10:5;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2-2*u,10),t.height=Math.max((t?.height??0)-o*2-2*u,10));let{shapeSvg:m,bbox:h,label:_}=await l(e,t,f(t)),v=(t?.width?t?.width:h.width)+a*2+2*u,y=(t?.height?t?.height:h.height)+o*2+2*u,b=v-2*u,x=y-2*u,S=-b/2,C=-x/2,{cssStyles:w}=t,T=c.t.svg(m),E=s.a(t,{}),D=[{x:S-u,y:C+u},{x:S-u,y:C+x+u},{x:S+b-u,y:C+x+u},{x:S+b-u,y:C+x},{x:S+b,y:C+x},{x:S+b,y:C+x-u},{x:S+b+u,y:C+x-u},{x:S+b+u,y:C-u},{x:S+u,y:C-u},{x:S+u,y:C},{x:S,y:C},{x:S,y:C+u}],O=[{x:S,y:C+u},{x:S+b-u,y:C+u},{x:S+b-u,y:C+x},{x:S+b,y:C+x},{x:S+b,y:C},{x:S,y:C}];t.look!==`handDrawn`&&(E.roughness=0,E.fillStyle=`solid`);let k=p(D),A=T.path(k,E),j=p(O),M=T.path(j,E);t.look!==`handDrawn`&&(A=g(A),M=g(M));let N=m.insert(`g`,`:first-child`);return N.insert(()=>A),N.insert(()=>M),N.attr(`class`,`basic label-container outer-path`),w&&t.look!==`handDrawn`&&N.selectAll(`path`).attr(`style`,w),r&&t.look!==`handDrawn`&&N.selectAll(`path`).attr(`style`,r),_.attr(`transform`,`translate(${-(h.width/2)-u-(h.x-(h.left??0))}, ${-(h.height/2)+u-(h.y-(h.top??0))})`),d(t,N),t.intersect=function(e){return I.polygon(t,D,e)},m}e.n(Ve,`multiRect`);async function He(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await l(e,t,f(t)),u=t.padding??0,h=t.look===`neo`?16:u,g=t.look===`neo`?12:u,_=!0;(t.width||t.height)&&(_=!1,t.width=(t?.width??0)-h*2,t.height=(t?.height??0)-g*3);let v=Math.max(a.width,t?.width??0)+h*2,y=Math.max(a.height,t?.height??0)+g*3,b=t.look===`neo`?y/4:y/8,x=y+(_?b/2:-b/2),S=-v/2,C=-x/2,{cssStyles:w}=t,T=m(S-10,C+x+10,S+v-10,C+x+10,b,.8),E=T?.[T.length-1],D=[{x:S-10,y:C+10},{x:S-10,y:C+x+10},...T,{x:S+v-10,y:E.y-10},{x:S+v,y:E.y-10},{x:S+v,y:E.y-20},{x:S+v+10,y:E.y-20},{x:S+v+10,y:C-10},{x:S+10,y:C-10},{x:S+10,y:C},{x:S,y:C},{x:S,y:C+10}],O=[{x:S,y:C+10},{x:S+v-10,y:C+10},{x:S+v-10,y:E.y-10},{x:S+v,y:E.y-10},{x:S+v,y:C},{x:S,y:C}],k=c.t.svg(i),A=s.a(t,{});t.look!==`handDrawn`&&(A.roughness=0,A.fillStyle=`solid`);let j=p(D),M=k.path(j,A),N=p(O),P=k.path(N,A),F=i.insert(()=>M,`:first-child`);return F.insert(()=>P),F.attr(`class`,`basic label-container outer-path`),w&&t.look!==`handDrawn`&&F.selectAll(`path`).attr(`style`,w),r&&t.look!==`handDrawn`&&F.selectAll(`path`).attr(`style`,r),F.attr(`transform`,`translate(0,${-b/2})`),o.attr(`transform`,`translate(${-(a.width/2)-10-(a.x-(a.left??0))}, ${-(a.height/2)+10-b/2-(a.y-(a.top??0))})`),d(t,F),t.intersect=function(e){return I.polygon(t,D,e)},i}e.n(He,`multiWaveEdgedRectangle`);async function Ue(e,t,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:a}=s.i(t);t.labelStyle=i,t.useHtmlLabels||n.T(n.b())||(t.centerLabel=!0);let{shapeSvg:o,bbox:u,label:p}=await l(e,t,f(t)),m=Math.max(u.width+(t.padding??0)*2,t?.width??0),h=Math.max(u.height+(t.padding??0)*2,t?.height??0),g=-m/2,_=-h/2,{cssStyles:v}=t,y=c.t.svg(o),b=s.a(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=y.rectangle(g,_,m,h,b),S=o.insert(()=>x,`:first-child`);return S.attr(`class`,`basic label-container outer-path`),p.attr(`class`,`label noteLabel`),v&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,v),a&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,a),p.attr(`transform`,`translate(${-u.width/2-(u.x-(u.left??0))}, ${-(u.height/2)-(u.y-(u.top??0))})`),d(t,S),t.intersect=function(e){return I.rect(t,e)},o}e.n(Ue,`note`);var We=e.n((e,t,n)=>[`M${e+n/2},${t}`,`L${e+n},${t-n/2}`,`L${e+n/2},${t-n}`,`L${e},${t-n/2}`,`Z`].join(` `),`createDecisionBoxPathD`);async function Ge(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await l(e,t,f(t)),o=a.width+(t.padding??0)+(a.height+(t.padding??0)),u=.5,p=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}],m,{cssStyles:h}=t;if(t.look===`handDrawn`){let e=c.t.svg(i),n=s.a(t,{}),r=We(0,0,o),a=e.path(r,n);m=i.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-o/2+u}, ${o/2})`),h&&m.attr(`style`,h)}else m=B(i,o,o,p),m.attr(`transform`,`translate(${-o/2+u}, ${o/2})`);return r&&m.attr(`style`,r),d(t,m),t.calcIntersect=function(e,t){let n=e.width,r=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}],i=I.polygon(e,r,t);return{x:i.x-.5,y:i.y-.5}},t.intersect=function(e){return this.calcIntersect(t,e)},i}e.n(Ge,`question`);async function Ke(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?21:i??0,o=t.look===`neo`?12:i??0,{shapeSvg:u,bbox:m,label:h}=await l(e,t,f(t)),g=(t?.width??m.width)+(t.look===`neo`?a*2:a),_=(t?.height??m.height)+(t.look===`neo`?o*2:o),v=-g/2,y=-_/2,b=y/2,x=[{x:v+b,y},{x:v,y:0},{x:v+b,y:-y},{x:-v,y:-y},{x:-v,y}],{cssStyles:S}=t,C=c.t.svg(u),w=s.a(t,{});t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=p(x),E=C.path(T,w),D=u.insert(()=>E,`:first-child`);return D.attr(`class`,`basic label-container outer-path`),S&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,S),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),D.attr(`transform`,`translate(${-b/2},0)`),h.attr(`transform`,`translate(${-b/2-m.width/2-(m.x-(m.left??0))}, ${-(m.height/2)-(m.y-(m.top??0))})`),d(t,D),t.intersect=function(e){return I.polygon(t,x,e)},u}e.n(Ke,`rect_left_inv_arrow`);async function qe(e,r){let{labelStyles:i,nodeStyles:a}=s.i(r);r.labelStyle=i;let o;o=r.cssClasses?`node `+r.cssClasses:`node default`;let l=e.insert(`g`).attr(`class`,o).attr(`id`,r.domId||r.id),u=l.insert(`g`),f=l.insert(`g`).attr(`class`,`label`).attr(`style`,a),p=r.description,m=r.label,h=await v(f,m,r.labelStyle,!0,!0),g={width:0,height:0};if(n.T(n.x())){let e=h.children[0],n=t.p(h);g=e.getBoundingClientRect(),n.attr(`width`,g.width),n.attr(`height`,g.height)}t.m.info(`Text 2`,p);let _=p||[],b=h.getBBox(),x=await v(f,Array.isArray(_)?_.join(`<br/>`):_,r.labelStyle,!0,!0),S=x.children[0],C=t.p(x);g=S.getBoundingClientRect(),C.attr(`width`,g.width),C.attr(`height`,g.height);let w=(r.padding||0)/2;t.p(x).attr(`transform`,`translate( `+(g.width>b.width?0:(b.width-g.width)/2)+`, `+(b.height+w+5)+`)`),t.p(h).attr(`transform`,`translate( `+(g.width<b.width?0:-(b.width-g.width)/2)+`, 0)`),g=f.node().getBBox(),f.attr(`transform`,`translate(`+-g.width/2+`, `+(-g.height/2-w+3)+`)`);let T=g.width+(r.padding||0),E=g.height+(r.padding||0),D=-g.width/2-w,O=-g.height/2-w,k,A;if(r.look===`handDrawn`){let e=c.t.svg(l),n=s.a(r,{}),i=e.path(y(D,O,T,E,r.rx||0),n),a=e.line(-g.width/2-w,-g.height/2-w+b.height+w,g.width/2+w,-g.height/2-w+b.height+w,n);A=l.insert(()=>(t.m.debug(`Rough node insert CXC`,i),a),`:first-child`),k=l.insert(()=>(t.m.debug(`Rough node insert CXC`,i),i),`:first-child`)}else k=u.insert(`rect`,`:first-child`),A=u.insert(`line`),k.attr(`class`,`outer title-state`).attr(`style`,a).attr(`x`,-g.width/2-w).attr(`y`,-g.height/2-w).attr(`width`,g.width+(r.padding||0)).attr(`height`,g.height+(r.padding||0)),A.attr(`class`,`divider`).attr(`x1`,-g.width/2-w).attr(`x2`,g.width/2+w).attr(`y1`,-g.height/2-w+b.height+w).attr(`y2`,-g.height/2-w+b.height+w);return d(r,k),r.intersect=function(e){return I.rect(r,e)},l}e.n(qe,`rectWithTitle`);async function Je(e,t,{config:{themeVariables:n}}){let r=n?.radius??5;return Y(e,t,{rx:r,ry:r,classes:``,labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1})}e.n(Je,`roundedRect`);var X=8;async function Ye(e,t){let{labelStyles:n,nodeStyles:i}=s.i(t);t.labelStyle=n;let a=t.look===`neo`?16:t.padding??0,o=t.look===`neo`?12:t.padding??0,{shapeSvg:u,bbox:p,label:m}=await l(e,t,f(t)),h=(t?.width??p.width)+a*2+(t.look===`neo`?X:X*2),g=(t?.height??p.height)+o*2,_=h-X,v=g,y=X-h/2,b=-g/2,{cssStyles:x}=t,S=c.t.svg(u),C=s.a(t,{});t.look!==`handDrawn`&&(C.roughness=0,C.fillStyle=`solid`);let w=[{x:y,y:b},{x:y+_,y:b},{x:y+_,y:b+v},{x:y-X,y:b+v},{x:y-X,y:b},{x:y,y:b},{x:y,y:b+v}],T=S.polygon(w.map(e=>[e.x,e.y]),C),E=u.insert(()=>T,`:first-child`);return E.attr(`class`,`basic label-container outer-path`).attr(`style`,r.u(x)),i&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,i),x&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,i),m.attr(`transform`,`translate(${X/2-p.width/2-(p.x-(p.left??0))}, ${-(p.height/2)-(p.y-(p.top??0))})`),d(t,E),t.intersect=function(e){return I.rect(t,e)},u}e.n(Ye,`shadedProcess`);async function Xe(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2,10),t.height=Math.max((t?.height??0)/1.5-o*2,10));let{shapeSvg:u,bbox:m,label:h}=await l(e,t,f(t)),g=(t?.width?t?.width:m.width)+a*2,_=((t?.height?t?.height:m.height)+o*2)*1.5,v=g,y=_/1.5,b=-v/2,x=-y/2,{cssStyles:S}=t,C=c.t.svg(u),w=s.a(t,{});t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=[{x:b,y:x},{x:b,y:x+y},{x:b+v,y:x+y},{x:b+v,y:x-y/2}],E=p(T),D=C.path(E,w),O=u.insert(()=>D,`:first-child`);return O.attr(`class`,`basic label-container outer-path`),S&&t.look!==`handDrawn`&&O.selectChildren(`path`).attr(`style`,S),r&&t.look!==`handDrawn`&&O.selectChildren(`path`).attr(`style`,r),O.attr(`transform`,`translate(0, ${y/4})`),h.attr(`transform`,`translate(${-v/2+(t.padding??0)-(m.x-(m.left??0))}, ${-y/4+(t.padding??0)-(m.y-(m.top??0))})`),d(t,O),t.intersect=function(e){return I.polygon(t,T,e)},u}e.n(Xe,`slopedRect`);async function Ze(e,t){let n=t.padding??0,r=t.look===`neo`?16:n*2,i=t.look===`neo`?12:n;return Y(e,t,{rx:0,ry:0,classes:``,labelPaddingX:t.labelPaddingX??r,labelPaddingY:i})}e.n(Ze,`squareRect`);async function Qe(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?20:i,o=t.look===`neo`?12:i,{shapeSvg:u,bbox:m}=await l(e,t,f(t)),g=m.height+(t.look===`neo`?o*2:o),_=m.width+g/4+(t.look===`neo`?a*2:a),v=g/2,{cssStyles:y}=t,b=c.t.svg(u),x=s.a(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=[{x:-_/2+v,y:-g/2},{x:_/2-v,y:-g/2},...h(-_/2+v,0,v,50,90,270),{x:_/2-v,y:g/2},...h(_/2-v,0,v,50,270,450)],C=p(S),w=b.path(C,x),T=u.insert(()=>w,`:first-child`);return T.attr(`class`,`basic label-container outer-path`),y&&t.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,y),r&&t.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,r),d(t,T),t.intersect=function(e){return I.polygon(t,S,e)},u}e.n(Qe,`stadium`);async function $e(e,t){return Y(e,t,{rx:t.look===`neo`?3:5,ry:t.look===`neo`?3:5,classes:`flowchart-node`})}e.n($e,`state`);function et(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=s.i(t);t.labelStyle=r;let{cssStyles:a}=t,{lineColor:o,stateBorder:l,nodeBorder:u,nodeShadow:f}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let p=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId??t.id),m=c.t.svg(p),h=s.a(t,{});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=m.circle(0,0,t.width,{...h,stroke:o,strokeWidth:2}),_=l??u,v=(t.width??0)*5/14,y=m.circle(0,0,v,{...h,fill:_,stroke:_,strokeWidth:2,fillStyle:`solid`}),b=p.insert(()=>g,`:first-child`);if(b.insert(()=>y),t.look!==`handDrawn`&&b.attr(`class`,`outer-path`),a&&b.selectAll(`path`).attr(`style`,a),i&&b.selectAll(`path`).attr(`style`,i),t.width<25&&f&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;b.attr(`style`,`filter:url(#${n})`)}return d(t,b),t.intersect=function(e){return I.circle(t,(t.width??0)/2,e)},p}e.n(et,`stateEnd`);function tt(e,t,{config:{themeVariables:n}}){let{lineColor:r,nodeShadow:i}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let a=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),o;if(t.look===`handDrawn`){let e=c.t.svg(a).circle(0,0,t.width,s.r(r));o=a.insert(()=>e),o.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14)}else o=a.insert(`circle`,`:first-child`),o.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14);if(t.width<25&&i&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;o.attr(`style`,`filter:url(#${n})`)}return d(t,o),t.intersect=function(e){return I.circle(t,(t.width??7)/2,e)},a}e.n(tt,`stateStart`);var Z=8;async function nt(e,t){let{labelStyles:n,nodeStyles:i}=s.i(t);t.labelStyle=n;let a=t?.padding??8,o=t.look===`neo`?28:a,u=t.look===`neo`?12:a,{shapeSvg:p,bbox:m}=await l(e,t,f(t)),h=(t?.width??m.width)+2*Z+o,g=(t?.height??m.height)+u,_=h-2*Z,v=g,y=-h/2,b=-g/2,x=[{x:0,y:0},{x:_,y:0},{x:_,y:-v},{x:0,y:-v},{x:0,y:0},{x:-8,y:0},{x:_+8,y:0},{x:_+8,y:-v},{x:-8,y:-v},{x:-8,y:0}];if(t.look===`handDrawn`){let e=c.t.svg(p),n=s.a(t,{}),i=e.rectangle(y,b,_+16,v,n),a=e.line(y+Z,b,y+Z,b+v,n),o=e.line(y+Z+_,b,y+Z+_,b+v,n);p.insert(()=>a,`:first-child`),p.insert(()=>o,`:first-child`);let l=p.insert(()=>i,`:first-child`),{cssStyles:u}=t;l.attr(`class`,`basic label-container`).attr(`style`,r.u(u)),d(t,l)}else{let e=B(p,_,v,x);i&&e.attr(`style`,i),d(t,e)}return t.intersect=function(e){return I.polygon(t,x,e)},p}e.n(nt,`subroutine`);var rt=.2;async function it(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.height=Math.max((t?.height??0)-o*2,10),t.width=Math.max((t?.width??0)-a*2-rt*(t.height+o*2),10));let{shapeSvg:u,bbox:m}=await l(e,t,f(t)),h=(t?.height?t?.height:m.height)+o*2,g=rt*h,_=rt*h,v=(t?.width?t?.width:m.width)+a*2+g-g,y=h,b=-v/2,x=-y/2,{cssStyles:S}=t,C=c.t.svg(u),w=s.a(t,{}),T=[{x:b-g/2,y:x},{x:b+v+g/2,y:x},{x:b+v+g/2,y:x+y},{x:b-g/2,y:x+y}],E=[{x:b+v-g/2,y:x+y},{x:b+v+g/2,y:x+y},{x:b+v+g/2,y:x+y-_}];t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let D=p(T),O=C.path(D,w),k=p(E),A=C.path(k,{...w,fillStyle:`solid`}),j=u.insert(()=>A,`:first-child`);return j.insert(()=>O,`:first-child`),j.attr(`class`,`basic label-container outer-path`),S&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,S),r&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,r),d(t,j),t.intersect=function(e){return I.polygon(t,T,e)},u}e.n(it,`taggedRect`);async function at(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await l(e,t,f(t)),u=Math.max(a.width+(t.padding??0)*2,t?.width??0),h=Math.max(a.height+(t.padding??0)*2,t?.height??0),g=h/8,_=.2*u,v=.2*h,y=h+g,{cssStyles:b}=t,x=c.t.svg(i),S=s.a(t,{});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=[{x:-u/2-u/2*.1,y:y/2},...m(-u/2-u/2*.1,y/2,u/2+u/2*.1,y/2,g,.8),{x:u/2+u/2*.1,y:-y/2},{x:-u/2-u/2*.1,y:-y/2}],w=-u/2+u/2*.1,T=-y/2-v*.4,E=[{x:w+u-_,y:(T+h)*1.3},{x:w+u,y:T+h-v},{x:w+u,y:(T+h)*.9},...m(w+u,(T+h)*1.25,w+u-_,(T+h)*1.3,-h*.02,.5)],D=p(C),O=x.path(D,S),k=p(E),A=x.path(k,{...S,fillStyle:`solid`}),j=i.insert(()=>A,`:first-child`);return j.insert(()=>O,`:first-child`),j.attr(`class`,`basic label-container outer-path`),b&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,b),r&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,r),j.attr(`transform`,`translate(0,${-g/2})`),o.attr(`transform`,`translate(${-u/2+(t.padding??0)-(a.x-(a.left??0))},${-h/2+(t.padding??0)-g/2-(a.y-(a.top??0))})`),d(t,j),t.intersect=function(e){return I.polygon(t,C,e)},i}e.n(at,`taggedWaveEdgedRectangle`);async function ot(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await l(e,t,f(t)),o=Math.max(a.width+(t.padding??0),t?.width||0),c=Math.max(a.height+(t.padding??0),t?.height||0),u=-o/2,p=-c/2,m=i.insert(`rect`,`:first-child`);return m.attr(`class`,`text`).attr(`style`,r).attr(`rx`,0).attr(`ry`,0).attr(`x`,u).attr(`y`,p).attr(`width`,o).attr(`height`,c),d(t,m),t.intersect=function(e){return I.rect(t,e)},i}e.n(ot,`text`);var st=e.n((e,t,n,r,i,a)=>`M${e},${t}
3
+ a${i},${a} 0,0,1 0,${-r}
4
+ l${n},0
5
+ a${i},${a} 0,0,1 0,${r}
6
+ M${n},${-r}
7
+ a${i},${a} 0,0,0 0,${r}
8
+ l${-n},0`,`createCylinderPathD`),ct=e.n((e,t,n,r,i,a)=>[`M${e},${t}`,`M${e+n},${t}`,`a${i},${a} 0,0,0 0,${-r}`,`l${-n},0`,`a${i},${a} 0,0,0 0,${r}`,`l${n},0`].join(` `),`createOuterCylinderPathD`),lt=e.n((e,t,n,r,i,a)=>[`M${e+n/2},${-r/2}`,`a${i},${a} 0,0,0 0,${r}`].join(` `),`createInnerCylinderPathD`),ut=5,dt=10;async function ft(e,t){let{labelStyles:n,nodeStyles:i}=s.i(t);t.labelStyle=n;let a=t.padding??0,o=t.look===`neo`?12:a/2;if(t.width||t.height){let e=t.height??0;t.height=(t.height??0)-o,t.height<ut&&(t.height=ut);let n=e/2/(2.5+e/50);t.width=(t.width??0)-o-n*3,t.width<dt&&(t.width=dt)}let{shapeSvg:u,bbox:p,label:m}=await l(e,t,f(t)),h=(t.height?t.height:p.height)+o,g=h/2,_=g/(2.5+h/50),v=(t.width?t.width:p.width)+_+o,{cssStyles:y}=t,b;if(t.look===`handDrawn`){let e=c.t.svg(u),n=ct(0,0,v,h,_,g),r=lt(0,0,v,h,_,g),i=e.path(n,s.a(t,{})),a=e.path(r,s.a(t,{fill:`none`}));b=u.insert(()=>a,`:first-child`),b=u.insert(()=>i,`:first-child`),b.attr(`class`,`basic label-container`),y&&b.attr(`style`,y)}else{let e=st(0,0,v,h,_,g);b=u.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container`).attr(`style`,r.u(y)).attr(`style`,i),b.attr(`class`,`basic label-container outer-path`),y&&b.selectAll(`path`).attr(`style`,y),i&&b.selectAll(`path`).attr(`style`,i)}return b.attr(`label-offset-x`,_),b.attr(`transform`,`translate(${-v/2}, ${h/2} )`),m.attr(`transform`,`translate(${-(p.width/2)-_-(p.x-(p.left??0))}, ${-(p.height/2)-(p.y-(p.top??0))})`),d(t,b),t.intersect=function(e){let n=I.rect(t,e),r=n.y-(t.y??0);if(g!=0&&(Math.abs(r)<(t.height??0)/2||Math.abs(r)==(t.height??0)/2&&Math.abs(n.x-(t.x??0))>(t.width??0)/2-_)){let i=_*_*(1-r*r/(g*g));i!=0&&(i=Math.sqrt(Math.abs(i))),i=_-i,e.x-(t.x??0)>0&&(i=-i),n.x+=i}return n},u}e.n(ft,`tiltedCylinder`);async function pt(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=(t.look,i),o=t.look===`neo`?i*2:i,{shapeSvg:u,bbox:m}=await l(e,t,f(t)),h=(t?.height??m.height)+a,g=(t?.width??m.width)+o,_=[{x:-3*h/6,y:0},{x:g+3*h/6,y:0},{x:g,y:-h},{x:0,y:-h}],v,{cssStyles:y}=t;if(t.look===`handDrawn`){let e=c.t.svg(u),n=s.a(t,{}),r=p(_),i=e.path(r,n);v=u.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-g/2}, ${h/2})`),y&&v.attr(`style`,y)}else v=B(u,g,h,_);return r&&v.attr(`style`,r),t.width=g,t.height=h,d(t,v),t.intersect=function(e){return I.polygon(t,_,e)},u}e.n(pt,`trapezoid`);async function mt(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.height=(t.height??0)-o*2,t.height<5&&(t.height=5),t.width=(t.width??0)-a*2,t.width<15&&(t.width=15));let{shapeSvg:u,bbox:m}=await l(e,t,f(t)),h=(t?.width?t?.width:m.width)+a*2,g=(t?.height?t?.height:m.height)+o*2,{cssStyles:_}=t,v=c.t.svg(u),y=s.a(t,{});t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let b=[{x:-h/2*.8,y:-g/2},{x:h/2*.8,y:-g/2},{x:h/2,y:-g/2*.6},{x:h/2,y:g/2},{x:-h/2,y:g/2},{x:-h/2,y:-g/2*.6}],x=p(b),S=v.path(x,y),C=u.insert(()=>S,`:first-child`);return C.attr(`class`,`basic label-container outer-path`),_&&t.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,_),r&&t.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,r),d(t,C),t.intersect=function(e){return I.polygon(t,b,e)},u}e.n(mt,`trapezoidalPentagon`);var ht=10,gt=10;async function _t(e,r){let{labelStyles:i,nodeStyles:a}=s.i(r);r.labelStyle=i;let o=r.padding??0,u=r.look===`neo`?o*2:o;(r.width||r.height)&&(r.width=((r?.width??0)-u)/2,r.width<gt&&(r.width=gt),r.height=r?.height??0,r.height<ht&&(r.height=ht));let{shapeSvg:m,bbox:h,label:g}=await l(e,r,f(r)),_=n.g(n.x().flowchart?.htmlLabels),v=(r?.width?r?.width:h.width)+u,y=r?.height?r?.height:v+h.height,b=y,x=[{x:0,y:0},{x:b,y:0},{x:b/2,y:-y}],{cssStyles:S}=r,C=c.t.svg(m),w=s.a(r,{});r.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=p(x),E=C.path(T,w),D=m.insert(()=>E,`:first-child`).attr(`transform`,`translate(${-y/2}, ${y/2})`).attr(`class`,`outer-path`);return S&&r.look!==`handDrawn`&&D.selectChildren(`path`).attr(`style`,S),a&&r.look!==`handDrawn`&&D.selectChildren(`path`).attr(`style`,a),r.width=v,r.height=y,d(r,D),g.attr(`transform`,`translate(${-h.width/2-(h.x-(h.left??0))}, ${y/2-(h.height+(r.padding??0)/(_?2:1)-(h.y-(h.top??0)))})`),r.intersect=function(e){return t.m.info(`Triangle intersect`,r,x,e),I.polygon(r,x,e)},m}e.n(_t,`triangle`);async function vt(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,u=!0;(t.width||t.height)&&(u=!1,t.width=(t?.width??0)-a*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-o*2,t.height<10&&(t.height=10));let{shapeSvg:h,bbox:g,label:_}=await l(e,t,f(t)),v=(t?.width?t?.width:g.width)+(a??0)*2,y=(t?.height?t?.height:g.height)+(o??0)*2,b=t.look===`neo`?y/4:y/8,x=y+(u?b:-b),{cssStyles:S}=t,C=14-v,w=C>0?C/2:0,T=c.t.svg(h),E=s.a(t,{});t.look!==`handDrawn`&&(E.roughness=0,E.fillStyle=`solid`);let D=[{x:-v/2-w,y:x/2},...m(-v/2-w,x/2,v/2+w,x/2,b,.8),{x:v/2+w,y:-x/2},{x:-v/2-w,y:-x/2}],O=p(D),k=T.path(O,E),A=h.insert(()=>k,`:first-child`);return A.attr(`class`,`basic label-container outer-path`),S&&t.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,S),r&&t.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,r),A.attr(`transform`,`translate(0,${-b/2})`),_.attr(`transform`,`translate(${-v/2+(t.padding??0)-(g.x-(g.left??0))},${-y/2+(t.padding??0)-b-(g.y-(g.top??0))})`),d(t,A),t.intersect=function(e){return I.polygon(t,D,e)},h}e.n(vt,`waveEdgedRectangle`);async function yt(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?20:i;if(t.width||t.height){t.width=t?.width??0,t.width<20&&(t.width=20),t.height=t?.height??0,t.height<10&&(t.height=10);let e=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-o-20/9*e),t.width-=a*2}let{shapeSvg:u,bbox:h}=await l(e,t,f(t)),g=(t?.width?t?.width:h.width)+a*2,_=(t?.height?t?.height:h.height)+o,v=_/8,y=_+v*2,{cssStyles:b}=t,x=c.t.svg(u),S=s.a(t,{});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=[{x:-g/2,y:y/2},...m(-g/2,y/2,g/2,y/2,v,1),{x:g/2,y:-y/2},...m(g/2,-y/2,-g/2,-y/2,v,-1)],w=p(C),T=x.path(w,S),E=u.insert(()=>T,`:first-child`);return E.attr(`class`,`basic label-container`),b&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,b),r&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,r),d(t,E),t.intersect=function(e){return I.polygon(t,C,e)},u}e.n(yt,`waveRectangle`);var Q=10;async function bt(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-i*2-Q,10),t.height=Math.max((t?.height??0)-a*2-Q,10));let{shapeSvg:o,bbox:u,label:p}=await l(e,t,f(t)),m=(t?.width?t?.width:u.width)+i*2+Q,h=(t?.height?t?.height:u.height)+a*2+Q,g=m-Q,_=h-Q,v=-g/2,y=-_/2,{cssStyles:b}=t,x=c.t.svg(o),S=s.a(t,{}),C=[{x:v-Q,y:y-Q},{x:v-Q,y:y+_},{x:v+g,y:y+_},{x:v+g,y:y-Q}],w=`M${v-Q},${y-Q} L${v+g},${y-Q} L${v+g},${y+_} L${v-Q},${y+_} L${v-Q},${y-Q}
9
+ M${v-Q},${y} L${v+g},${y}
10
+ M${v},${y-Q} L${v},${y+_}`;t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let T=x.path(w,S),E=o.insert(()=>T,`:first-child`);return E.attr(`transform`,`translate(${Q/2}, ${Q/2})`),E.attr(`class`,`basic label-container outer-path`),b&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,b),r&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,r),p.attr(`transform`,`translate(${-(u.width/2)+Q/2-(u.x-(u.left??0))}, ${-(u.height/2)+Q/2-(u.y-(u.top??0))})`),d(t,E),t.intersect=function(e){return I.polygon(t,C,e)},o}e.n(bt,`windowPane`);var xt=new Set([`redux-color`,`redux-dark-color`]),St=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]);async function Ct(e,i){let a=i;a.alias&&(i.label=a.alias);let{theme:o,themeVariables:l}=n.b(),{rowEven:u,rowOdd:p,nodeBorder:m,borderColorArray:h}=l;if(i.look===`handDrawn`){let{themeVariables:t}=n.b(),{background:r}=t;await Ct(e,{...i,id:i.id+`-background`,domId:(i.domId||i.id)+`-background`,look:`default`,cssStyles:[`stroke: none`,`fill: ${r}`]})}let g=n.b();i.useHtmlLabels=g.htmlLabels;let _=g.er?.diagramPadding??10,v=g.er?.entityPadding??6,{cssStyles:y}=i,{labelStyles:b,nodeStyles:x}=s.i(i);if(a.attributes.length===0&&i.label){let t={rx:0,ry:0,labelPaddingX:_,labelPaddingY:_*1.5,classes:``};r.r(i.label,g)+t.labelPaddingX*2<g.er.minEntityWidth&&(i.width=g.er.minEntityWidth);let s=await Y(e,i,t);if(o!=null&&xt.has(o)){let e=a.colorIndex??0;s.attr(`data-color-id`,`color-${e%h.length}`)}if(!n.g(g.htmlLabels)){let e=s.select(`text`),t=e.node()?.getBBox();e.attr(`transform`,`translate(${-t.width/2}, 0)`)}return s}g.htmlLabels||(_*=1.25,v*=1.25);let S=f(i);S||=`node default`;let C=e.insert(`g`).attr(`class`,S).attr(`id`,i.domId||i.id),w=await wt(C,i.label??``,g,0,0,[`name`],b);w.height+=v;let T=0,E=[],D=[],O=0,k=0,A=0,j=0,M=!0,N=!0;for(let e of a.attributes){let t=await wt(C,e.type,g,0,T,[`attribute-type`],b);O=Math.max(O,t.width+_);let n=await wt(C,e.name,g,0,T,[`attribute-name`],b);k=Math.max(k,n.width+_);let r=await wt(C,e.keys.join(),g,0,T,[`attribute-keys`],b);A=Math.max(A,r.width+_);let i=await wt(C,e.comment,g,0,T,[`attribute-comment`],b);j=Math.max(j,i.width+_);let a=Math.max(t.height,n.height,r.height,i.height)+v;D.push({yOffset:T,rowHeight:a}),T+=a}let P=4;A<=_&&(M=!1,A=0,P--),j<=_&&(N=!1,j=0,P--);let F=C.node().getBBox();if(w.width+_*2-(O+k+A+j)>0){let e=w.width+_*2-(O+k+A+j);O+=e/P,k+=e/P,A>0&&(A+=e/P),j>0&&(j+=e/P)}let L=O+k+A+j,R=c.t.svg(C),z=s.a(i,{});i.look!==`handDrawn`&&(z.roughness=0,z.fillStyle=`solid`);let ee=0;D.length>0&&(ee=D.reduce((e,t)=>e+(t?.rowHeight??0),0));let B=Math.max(F.width+_*2,i?.width||0,L),V=Math.max((ee??0)+w.height,i?.height||0),H=-B/2,U=-V/2;if(C.selectAll(`g:not(:first-child)`).each((e,n,r)=>{let i=t.p(r[n]),a=i.attr(`transform`),o=0,s=0;if(a){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);e&&(o=parseFloat(e[1]),s=parseFloat(e[2]),i.attr(`class`).includes(`attribute-name`)?o+=O:i.attr(`class`).includes(`attribute-keys`)?o+=O+k:i.attr(`class`).includes(`attribute-comment`)&&(o+=O+k+A))}i.attr(`transform`,`translate(${H+_/2+o}, ${s+U+w.height+v/2})`)}),C.select(`.name`).attr(`transform`,`translate(`+-w.width/2+`, `+(U+v/2)+`)`),o!=null&&xt.has(o)){let e=a.colorIndex??0;C.attr(`data-color-id`,`color-${e%h.length}`)}let te=R.rectangle(H,U,B,V,z),ne=C.insert(()=>te,`:first-child`).attr(`class`,`outer-path`).attr(`style`,y.join(``));E.push(0);for(let[e,t]of D.entries()){let n=(e+1)%2==0&&t.yOffset!==0,r=R.rectangle(H,w.height+U+t?.yOffset,B,t?.rowHeight,{...z,fill:n?u:p,stroke:m});C.insert(()=>r,`g.label`).attr(`style`,y.join(``)).attr(`class`,`row-rect-${n?`even`:`odd`}`)}let W=1e-4,G=Tt(H,w.height+U,B+H,w.height+U,W),K=R.polygon(G.map(e=>[e.x,e.y]),z);if(C.insert(()=>K).attr(`class`,`divider`),G=Tt(O+H,w.height+U,O+H,V+U,W),K=R.polygon(G.map(e=>[e.x,e.y]),z),C.insert(()=>K).attr(`class`,`divider`),M){let e=O+k+H;G=Tt(e,w.height+U,e,V+U,W),K=R.polygon(G.map(e=>[e.x,e.y]),z),C.insert(()=>K).attr(`class`,`divider`)}if(N){let e=O+k+A+H;G=Tt(e,w.height+U,e,V+U,W),K=R.polygon(G.map(e=>[e.x,e.y]),z),C.insert(()=>K).attr(`class`,`divider`)}for(let e of E){let t=w.height+U+e;G=Tt(H,t,B+H,t,W),K=R.polygon(G.map(e=>[e.x,e.y]),z),C.insert(()=>K).attr(`class`,`divider`)}if(d(i,ne),x&&i.look!==`handDrawn`)if(o!=null&&St.has(o))C.selectAll(`path`).attr(`style`,x);else{let e=x.split(`;`)?.filter(e=>e.includes(`stroke`))?.map(e=>`${e}`).join(`; `);C.selectAll(`path`).attr(`style`,e??``),C.selectAll(`.row-rect-even path`).attr(`style`,x)}return i.intersect=function(e){return I.rect(i,e)},C}e.n(Ct,`erBox`);async function wt(e,i,o,s=0,c=0,l=[],u=``){let d=e.insert(`g`).attr(`class`,`label ${l.join(` `)}`).attr(`transform`,`translate(${s}, ${c})`).attr(`style`,u);i!==n.M(i)&&(i=n.M(i),i=i.replaceAll(`<`,`&lt;`).replaceAll(`>`,`&gt;`));let f=d.node().appendChild(await a.n(d,i,{width:r.r(i,o)+100,style:u,useHtmlLabels:o.htmlLabels},o));if(i.includes(`&lt;`)||i.includes(`&gt;`)){let e=f.children[0];for(e.textContent=e.textContent.replaceAll(`&lt;`,`<`).replaceAll(`&gt;`,`>`);e.childNodes[0];)e=e.childNodes[0],e.textContent=e.textContent.replaceAll(`&lt;`,`<`).replaceAll(`&gt;`,`>`)}let p=f.getBBox();if(n.g(o.htmlLabels)){let e=f.children[0];e.style.textAlign=`start`;let n=t.p(f);p=e.getBoundingClientRect(),n.attr(`width`,p.width),n.attr(`height`,p.height)}return p}e.n(wt,`addText`);function Tt(e,t,n,r,i){return e===n?[{x:e-i/2,y:t},{x:e+i/2,y:t},{x:n+i/2,y:r},{x:n-i/2,y:r}]:[{x:e,y:t-i/2},{x:e,y:t+i/2},{x:n,y:r+i/2},{x:n,y:r-i/2}]}e.n(Tt,`lineToPolygon`);async function Et(e,t,n,r,i=n.class.padding??12){let a=r?0:3,o=e.insert(`g`).attr(`class`,f(t)).attr(`id`,t.domId||t.id),s=null,c=null,l=null,u=null,d=0,p=0,m=0;if(s=o.insert(`g`).attr(`class`,`annotation-group text`),t.annotations.length>0){let e=t.annotations[0];await Dt(s,{text:`\xAB${e}\xBB`},0),d=s.node().getBBox().height}c=o.insert(`g`).attr(`class`,`label-group text`),await Dt(c,t,0,[`font-weight: bolder`]);let h=c.node().getBBox();p=h.height,l=o.insert(`g`).attr(`class`,`members-group text`);let g=0;for(let e of t.members){let t=await Dt(l,e,g,[e.parseClassifier()]);g+=t+a}m=l.node().getBBox().height,m<=0&&(m=i/2),u=o.insert(`g`).attr(`class`,`methods-group text`);let _=0;for(let e of t.methods){let t=await Dt(u,e,_,[e.parseClassifier()]);_+=t+a}let v=o.node().getBBox();if(s!==null){let e=s.node().getBBox();s.attr(`transform`,`translate(${-e.width/2})`)}return c.attr(`transform`,`translate(${-h.width/2}, ${d})`),v=o.node().getBBox(),l.attr(`transform`,`translate(0, ${d+p+i*2})`),v=o.node().getBBox(),u.attr(`transform`,`translate(0, ${d+p+(m?m+i*4:i*2)})`),v=o.node().getBBox(),{shapeSvg:o,bbox:v}}e.n(Et,`textHelper`);async function Dt(i,o,s,c=[]){let l=i.insert(`g`).attr(`class`,`label`).attr(`style`,c.join(`; `)),u=n.b(),d=`useHtmlLabels`in o?o.useHtmlLabels:n.g(u.htmlLabels)??!0,f=``;f=`text`in o?o.text:o.label,!d&&f.startsWith(`\\`)&&(f=f.substring(1)),n.A(f)&&(d=!0);let p=await a.n(l,n.B(r.a(f)),{width:r.r(f,u)+50,classes:`markdown-node-label`,useHtmlLabels:d},u),m,h=1;if(d){let n=p.children[0],r=t.p(p);h=n.innerHTML.split(`<br>`).length,n.innerHTML.includes(`</math>`)&&(h+=n.innerHTML.split(`<mrow>`).length-1);let i=n.getElementsByTagName(`img`);if(i){let t=f.replace(/<img[^>]*>/g,``).trim()===``;await Promise.all([...i].map(n=>new Promise(r=>{function i(){if(n.style.display=`flex`,n.style.flexDirection=`column`,t){let e=u.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,t=parseInt(e,10)*5+`px`;n.style.minWidth=t,n.style.maxWidth=t}else n.style.width=`100%`;r(n)}e.n(i,`setupImage`),setTimeout(()=>{n.complete&&i()}),n.addEventListener(`error`,i),n.addEventListener(`load`,i)})))}m=n.getBoundingClientRect(),r.attr(`width`,m.width),r.attr(`height`,m.height)}else{c.includes(`font-weight: bolder`)&&t.p(p).selectAll(`tspan`).attr(`font-weight`,``),h=p.children.length;let e=p.children[0];(p.textContent===``||p.textContent.includes(`&gt`))&&(e.textContent=f[0]+f.substring(1).replaceAll(`&gt;`,`>`).replaceAll(`&lt;`,`<`).trim(),f[1]===` `&&(e.textContent=e.textContent[0]+` `+e.textContent.substring(1))),e.textContent===`undefined`&&(e.textContent=``),m=p.getBBox()}return l.attr(`transform`,`translate(0,`+(-m.height/(2*h)+s)+`)`),m.height}e.n(Dt,`addText`);async function Ot(e,r){let i=n.x(),{themeVariables:a}=i,{useGradient:o}=a,l=i.class.padding??12,u=l,f=r.useHtmlLabels??n.g(i.htmlLabels)??!0,p=r;p.annotations=p.annotations??[],p.members=p.members??[],p.methods=p.methods??[];let{shapeSvg:m,bbox:h}=await Et(e,r,i,f,u),{labelStyles:g,nodeStyles:_}=s.i(r);r.labelStyle=g,r.cssStyles=p.styles||``;let v=p.styles?.join(`;`)||_||``;r.cssStyles||=v.replaceAll(`!important`,``).split(`;`);let y=p.members.length===0&&p.methods.length===0&&!i.class?.hideEmptyMembersBox,b=c.t.svg(m),x=s.a(r,{});r.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=Math.max(r.width??0,h.width),C=Math.max(r.height??0,h.height),w=(r.height??0)>h.height;p.members.length===0&&p.methods.length===0?C+=u:p.members.length>0&&p.methods.length===0&&(C+=u*2);let T=-S/2,E=-C/2,D=y?l*2:p.members.length===0&&p.methods.length===0?-l:0;w&&(D=l*2);let O=b.rectangle(T-l,E-l-(y?l:p.members.length===0&&p.methods.length===0?-l/2:0),S+2*l,C+2*l+D,x),k=m.insert(()=>O,`:first-child`);k.attr(`class`,`basic label-container outer-path`);let A=k.node().getBBox(),j=m.select(`.annotation-group`).node().getBBox().height-(y?l/2:0)||0,M=m.select(`.label-group`).node().getBBox().height-(y?l/2:0)||0,N=m.select(`.members-group`).node().getBBox().height-(y?l/2:0)||0,P=(j+M+E+l-(E-l-(y?l:p.members.length===0&&p.methods.length===0?-l/2:0)))/2;if(m.selectAll(`.text`).each((e,n,r)=>{let a=t.p(r[n]),o=a.attr(`transform`),s=0;if(o){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(o);e&&(s=parseFloat(e[2]))}let c=s+E+l-(y?l:p.members.length===0&&p.methods.length===0?-l/2:0);if(a.attr(`class`).includes(`methods-group`)){let e=Math.max(N,u/2);c=w?Math.max(P,j+M+e+E+u*2+l)+u*2:j+M+e+E+u*4+l}p.members.length===0&&p.methods.length===0&&i.class?.hideEmptyMembersBox&&(c=p.annotations.length>0?s-u:s),f||(c-=4);let d=T;(a.attr(`class`).includes(`label-group`)||a.attr(`class`).includes(`annotation-group`))&&(d=-a.node()?.getBBox().width/2||0,m.selectAll(`text`).each(function(e,t,n){window.getComputedStyle(n[t]).textAnchor===`middle`&&(d=0)})),a.attr(`transform`,`translate(${d}, ${c})`)}),p.members.length>0||p.methods.length>0||y){let e=j+M+E+l,t=b.line(A.x,e,A.x+A.width,e+.001,x);m.insert(()=>t).attr(`class`,`divider${r.look===`neo`&&!o?` neo-line`:``}`).attr(`style`,v)}if(y||p.members.length>0||p.methods.length>0){let e=j+M+N+E+u*2+l,t=b.line(A.x,w?Math.max(P,e):e,A.x+A.width,(w?Math.max(P,e):e)+.001,x);m.insert(()=>t).attr(`class`,`divider${r.look===`neo`&&!o?` neo-line`:``}`).attr(`style`,v)}if(p.look!==`handDrawn`&&m.selectAll(`path`).attr(`style`,v),k.select(`:nth-child(2)`).attr(`style`,v),m.selectAll(`.divider`).select(`path`).attr(`style`,v),r.labelStyle?m.selectAll(`span`).attr(`style`,r.labelStyle):m.selectAll(`span`).attr(`style`,v),!f){let e=RegExp(/color\s*:\s*([^;]*)/),t=e.exec(v);if(t){let e=t[0].replace(`color`,`fill`);m.selectAll(`tspan`).attr(`style`,e)}else if(g){let t=e.exec(g);if(t){let e=t[0].replace(`color`,`fill`);m.selectAll(`tspan`).attr(`style`,e)}}}return d(r,k),r.intersect=function(e){return I.rect(r,e)},m}e.n(Ot,`classBox`);async function kt(e,r){let{labelStyles:i,nodeStyles:a}=s.i(r);r.labelStyle=i;let o=r,l=r,u=`verifyMethod`in r,p=f(r),{themeVariables:m}=n.x(),{borderColorArray:h,requirementEdgeLabelBackground:g}=m,_=e.insert(`g`).attr(`class`,p).attr(`id`,r.domId??r.id),v;v=u?await $(_,`&lt;&lt;${o.type}&gt;&gt;`,0,r.labelStyle):await $(_,`&lt;&lt;Element&gt;&gt;`,0,r.labelStyle);let y=v,b=await $(_,o.name,y,r.labelStyle+`; font-weight: bold;`);if(y+=b+20,u){let e=await $(_,`${o.requirementId?`ID: ${o.requirementId}`:``}`,y,r.labelStyle);y+=e;let t=await $(_,`${o.text?`Text: ${o.text}`:``}`,y,r.labelStyle);y+=t;let n=await $(_,`${o.risk?`Risk: ${o.risk}`:``}`,y,r.labelStyle);y+=n,await $(_,`${o.verifyMethod?`Verification: ${o.verifyMethod}`:``}`,y,r.labelStyle)}else{let e=await $(_,`${l.type?`Type: ${l.type}`:``}`,y,r.labelStyle);y+=e,await $(_,`${l.docRef?`Doc Ref: ${l.docRef}`:``}`,y,r.labelStyle)}let x=(_.node()?.getBBox().width??200)+20,S=(_.node()?.getBBox().height??200)+20,C=-x/2,w=-S/2,T=c.t.svg(_),E=s.a(r,{});r.look!==`handDrawn`&&(E.roughness=0,E.fillStyle=`solid`);let D=T.rectangle(C,w,x,S,E),O=_.insert(()=>D,`:first-child`);if(O.attr(`class`,`basic label-container outer-path`).attr(`style`,a),h?.length){let e=r.colorIndex??0;_.attr(`data-color-id`,`color-${e%h.length}`)}if(_.selectAll(`.label`).each((e,n,r)=>{let i=t.p(r[n]),a=i.attr(`transform`),o=0,s=0;if(a){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);e&&(o=parseFloat(e[1]),s=parseFloat(e[2]))}let c=s-S/2,l=C+20/2;(n===0||n===1)&&(l=o),i.attr(`transform`,`translate(${l}, ${c+20})`)}),y>v+b+20){let e=w+v+b+20,t;if(r.look===`neo`){let n=.001,r=[[C,e],[C+x,e],[C+x,e+n],[C,e+n]];t=T.polygon(r,E)}else t=T.line(C,e,C+x,e,E);_.insert(()=>t).attr(`class`,`divider`)}return d(r,O),r.intersect=function(e){return I.rect(r,e)},a&&r.look!==`handDrawn`&&(g||h?.length)&&_.selectAll(`path`).attr(`style`,a),_}e.n(kt,`requirementBox`);async function $(e,i,o,s=``){if(i===``)return 0;let c=e.insert(`g`).attr(`class`,`label`).attr(`style`,s),l=n.x(),u=l.htmlLabels??!0,d=await a.n(c,n.B(r.a(i)),{width:r.r(i,l)+50,classes:`markdown-node-label`,useHtmlLabels:u,style:s},l),f;if(u){let e=d.children[0],n=t.p(d);f=e.getBoundingClientRect(),n.attr(`width`,f.width),n.attr(`height`,f.height)}else{let e=d.children[0];for(let t of e.children)s&&t.setAttribute(`style`,s);f=d.getBBox(),f.height+=6}return c.attr(`transform`,`translate(${-f.width/2},${-f.height/2+o})`),f.height}e.n($,`addText`);var At=e.n(e=>{switch(e){case`Very High`:return`red`;case`High`:return`orange`;case`Medium`:return null;case`Low`:return`blue`;case`Very Low`:return`lightblue`}},`colorFromPriority`);async function jt(e,t,{config:n}){let{labelStyles:r,nodeStyles:i}=s.i(t);t.labelStyle=r||``;let a=t.width;t.width=(t.width??200)-10;let{shapeSvg:o,bbox:p,label:m}=await l(e,t,f(t)),h=t.padding||10,g=``,_;`ticket`in t&&t.ticket&&n?.kanban?.ticketBaseUrl&&(g=n?.kanban?.ticketBaseUrl.replace(`#TICKET#`,t.ticket),_=o.insert(`svg:a`,`:first-child`).attr(`class`,`kanban-ticket-link`).attr(`xlink:href`,g).attr(`target`,`_blank`));let v={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||``,width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1},b,x;_?{label:b,bbox:x}=await u(_,`ticket`in t&&t.ticket||``,v):{label:b,bbox:x}=await u(o,`ticket`in t&&t.ticket||``,v);let{label:S,bbox:C}=await u(o,`assigned`in t&&t.assigned||``,v);t.width=a;let w=t?.width||0,T=Math.max(x.height,C.height)/2,E=Math.max(p.height+20,t?.height||0)+T,D=-w/2,O=-E/2;m.attr(`transform`,`translate(`+(h-w/2)+`, `+(-T-p.height/2)+`)`),b.attr(`transform`,`translate(`+(h-w/2)+`, `+(-T+p.height/2)+`)`),S.attr(`transform`,`translate(`+(h+w/2-C.width-20)+`, `+(-T+p.height/2)+`)`);let k,{rx:A,ry:j}=t,{cssStyles:M}=t;if(t.look===`handDrawn`){let e=c.t.svg(o),n=s.a(t,{}),r=A||j?e.path(y(D,O,w,E,A||0),n):e.rectangle(D,O,w,E,n);k=o.insert(()=>r,`:first-child`),k.attr(`class`,`basic label-container`).attr(`style`,M||null)}else{k=o.insert(`rect`,`:first-child`),k.attr(`class`,`basic label-container __APA__`).attr(`style`,i).attr(`rx`,A??5).attr(`ry`,j??5).attr(`x`,D).attr(`y`,O).attr(`width`,w).attr(`height`,E);let e=`priority`in t&&t.priority;if(e){let t=o.append(`line`),n=D+2,r=O+Math.floor((A??0)/2),i=O+E-Math.floor((A??0)/2);t.attr(`x1`,n).attr(`y1`,r).attr(`x2`,n).attr(`y2`,i).attr(`stroke-width`,`4`).attr(`stroke`,At(e))}}return d(t,k),t.height=E,t.intersect=function(e){return I.rect(t,e)},o}e.n(jt,`kanbanItem`);async function Mt(e,n){let{labelStyles:i,nodeStyles:a}=s.i(n);n.labelStyle=i;let{shapeSvg:o,bbox:u,halfPadding:p,label:m}=await l(e,n,f(n)),h=u.width+10*p,g=u.height+8*p,_=.15*h,{cssStyles:v}=n,y=u.width+20,b=u.height+20,x=Math.max(h,y),S=Math.max(g,b);m.attr(`transform`,`translate(${-u.width/2}, ${-u.height/2})`);let C,w=`M0 0
11
+ a${_},${_} 1 0,0 ${x*.25},${-1*S*.1}
12
+ a${_},${_} 1 0,0 ${x*.25},0
13
+ a${_},${_} 1 0,0 ${x*.25},0
14
+ a${_},${_} 1 0,0 ${x*.25},${S*.1}
15
+
16
+ a${_},${_} 1 0,0 ${x*.15},${S*.33}
17
+ a${_*.8},${_*.8} 1 0,0 0,${S*.34}
18
+ a${_},${_} 1 0,0 ${-1*x*.15},${S*.33}
19
+
20
+ a${_},${_} 1 0,0 ${-1*x*.25},${S*.15}
21
+ a${_},${_} 1 0,0 ${-1*x*.25},0
22
+ a${_},${_} 1 0,0 ${-1*x*.25},0
23
+ a${_},${_} 1 0,0 ${-1*x*.25},${-1*S*.15}
24
+
25
+ a${_},${_} 1 0,0 ${-1*x*.1},${-1*S*.33}
26
+ a${_*.8},${_*.8} 1 0,0 0,${-1*S*.34}
27
+ a${_},${_} 1 0,0 ${x*.1},${-1*S*.33}
28
+ H0 V0 Z`;if(n.look===`handDrawn`){let e=c.t.svg(o),t=s.a(n,{}),i=e.path(w,t);C=o.insert(()=>i,`:first-child`),C.attr(`class`,`basic label-container`).attr(`style`,r.u(v))}else C=o.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,a).attr(`d`,w);return C.attr(`transform`,`translate(${-x/2}, ${-S/2})`),d(n,C),n.calcIntersect=function(e,t){return I.rect(e,t)},n.intersect=function(e){return t.m.info(`Bang intersect`,n,e),I.rect(n,e)},o}e.n(Mt,`bang`);async function Nt(e,n){let{labelStyles:i,nodeStyles:a}=s.i(n);n.labelStyle=i;let{shapeSvg:o,bbox:u,halfPadding:p,label:m}=await l(e,n,f(n)),h=u.width+2*p,g=u.height+2*p,_=.15*h,v=.25*h,y=.35*h,b=.2*h,{cssStyles:x}=n,S,C=`M0 0
29
+ a${_},${_} 0 0,1 ${h*.25},${-1*h*.1}
30
+ a${y},${y} 1 0,1 ${h*.4},${-1*h*.1}
31
+ a${v},${v} 1 0,1 ${h*.35},${h*.2}
32
+
33
+ a${_},${_} 1 0,1 ${h*.15},${g*.35}
34
+ a${b},${b} 1 0,1 ${-1*h*.15},${g*.65}
35
+
36
+ a${v},${_} 1 0,1 ${-1*h*.25},${h*.15}
37
+ a${y},${y} 1 0,1 ${-1*h*.5},0
38
+ a${_},${_} 1 0,1 ${-1*h*.25},${-1*h*.15}
39
+
40
+ a${_},${_} 1 0,1 ${-1*h*.1},${-1*g*.35}
41
+ a${b},${b} 1 0,1 ${h*.1},${-1*g*.65}
42
+ H0 V0 Z`;if(n.look===`handDrawn`){let e=c.t.svg(o),t=s.a(n,{}),i=e.path(C,t);S=o.insert(()=>i,`:first-child`),S.attr(`class`,`basic label-container`).attr(`style`,r.u(x))}else S=o.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,a).attr(`d`,C);return m.attr(`transform`,`translate(${-u.width/2}, ${-u.height/2})`),S.attr(`transform`,`translate(${-h/2}, ${-g/2})`),d(n,S),n.calcIntersect=function(e,t){return I.rect(e,t)},n.intersect=function(e){return t.m.info(`Cloud intersect`,n,e),I.rect(n,e)},o}e.n(Nt,`cloud`);async function Pt(e,t){let{labelStyles:n,nodeStyles:r}=s.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,halfPadding:o,label:c}=await l(e,t,f(t)),u=a.width+8*o,p=a.height+2*o,m=t.look===`neo`?`
43
+ M${-u/2} ${p/2-5}
44
+ v${-p+10}
45
+ q0,-5 5,-5
46
+ h${u-10}
47
+ q5,0 5,5
48
+ v${p-5}
49
+ H${-u/2}
50
+ Z
51
+ `:`
52
+ M${-u/2} ${p/2-5}
53
+ v${-p+10}
54
+ q0,-5 5,-5
55
+ h${u-10}
56
+ q5,0 5,5
57
+ v${p-10}
58
+ q0,5 -5,5
59
+ h${-(u-10)}
60
+ q-5,0 -5,-5
61
+ Z
62
+ `;if(!t.domId)throw Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let h=i.append(`path`).attr(`id`,t.domId).attr(`class`,`node-bkg node-`+t.type).attr(`style`,r).attr(`d`,m);return i.append(`line`).attr(`class`,`node-line-`).attr(`x1`,-u/2).attr(`y1`,p/2).attr(`x2`,u/2).attr(`y2`,p/2),c.attr(`transform`,`translate(${-a.width/2}, ${-a.height/2})`),i.append(()=>c.node()),d(t,h),t.calcIntersect=function(e,t){return I.rect(e,t)},t.intersect=function(e){return I.rect(t,e)},i}e.n(Pt,`defaultMindmapNode`);async function Ft(e,t){return te(e,t,{padding:t.padding??0})}e.n(Ft,`mindmapCircle`);var It=[{semanticName:`Process`,name:`Rectangle`,shortName:`rect`,description:`Standard process shape`,aliases:[`proc`,`process`,`rectangle`],internalAliases:[`squareRect`],handler:Ze},{semanticName:`Event`,name:`Rounded Rectangle`,shortName:`rounded`,description:`Represents an event`,aliases:[`event`],internalAliases:[`roundedRect`],handler:Je},{semanticName:`Terminal Point`,name:`Stadium`,shortName:`stadium`,description:`Terminal point`,aliases:[`terminal`,`pill`],handler:Qe},{semanticName:`Subprocess`,name:`Framed Rectangle`,shortName:`fr-rect`,description:`Subprocess`,aliases:[`subprocess`,`subproc`,`framed-rectangle`,`subroutine`],handler:nt},{semanticName:`Database`,name:`Cylinder`,shortName:`cyl`,description:`Database storage`,aliases:[`db`,`database`,`cylinder`],handler:de},{semanticName:`Data Store`,name:`Data Store`,shortName:`datastore`,description:`Data flow diagram data store`,aliases:[`data-store`],handler:fe},{semanticName:`Start`,name:`Circle`,shortName:`circle`,description:`Starting point`,aliases:[`circ`],handler:te},{semanticName:`Bang`,name:`Bang`,shortName:`bang`,description:`Bang`,aliases:[`bang`],handler:Mt},{semanticName:`Cloud`,name:`Cloud`,shortName:`cloud`,description:`cloud`,aliases:[`cloud`],handler:Nt},{semanticName:`Decision`,name:`Diamond`,shortName:`diam`,description:`Decision-making step`,aliases:[`decision`,`diamond`,`question`],handler:Ge},{semanticName:`Prepare Conditional`,name:`Hexagon`,shortName:`hex`,description:`Preparation or condition step`,aliases:[`hexagon`,`prepare`],handler:Se},{semanticName:`Data Input/Output`,name:`Lean Right`,shortName:`lean-r`,description:`Represents input or output`,aliases:[`lean-right`,`in-out`],internalAliases:[`lean_right`],handler:Me},{semanticName:`Data Input/Output`,name:`Lean Left`,shortName:`lean-l`,description:`Represents output or input`,aliases:[`lean-left`,`out-in`],internalAliases:[`lean_left`],handler:je},{semanticName:`Priority Action`,name:`Trapezoid Base Bottom`,shortName:`trap-b`,description:`Priority action`,aliases:[`priority`,`trapezoid-bottom`,`trapezoid`],handler:pt},{semanticName:`Manual Operation`,name:`Trapezoid Base Top`,shortName:`trap-t`,description:`Represents a manual task`,aliases:[`manual`,`trapezoid-top`,`inv-trapezoid`],internalAliases:[`inv_trapezoid`],handler:ke},{semanticName:`Stop`,name:`Double Circle`,shortName:`dbl-circ`,description:`Represents a stop point`,aliases:[`double-circle`],internalAliases:[`doublecircle`],handler:me},{semanticName:`Text Block`,name:`Text Block`,shortName:`text`,description:`Text block`,handler:ot},{semanticName:`Card`,name:`Notched Rectangle`,shortName:`notch-rect`,description:`Represents a card`,aliases:[`card`,`notched-rectangle`],handler:H},{semanticName:`Lined/Shaded Process`,name:`Lined Rectangle`,shortName:`lin-rect`,description:`Lined process shape`,aliases:[`lined-rectangle`,`lined-process`,`lin-proc`,`shaded-process`],handler:Ye},{semanticName:`Start`,name:`Small Circle`,shortName:`sm-circ`,description:`Small starting point`,aliases:[`start`,`small-circle`],internalAliases:[`stateStart`],handler:tt},{semanticName:`Stop`,name:`Framed Circle`,shortName:`fr-circ`,description:`Stop point`,aliases:[`stop`,`framed-circle`],internalAliases:[`stateEnd`],handler:et},{semanticName:`Fork/Join`,name:`Filled Rectangle`,shortName:`fork`,description:`Fork or join in process flow`,aliases:[`join`],internalAliases:[`forkJoin`],handler:ye},{semanticName:`Collate`,name:`Hourglass`,shortName:`hourglass`,description:`Represents a collate operation`,aliases:[`hourglass`,`collate`],handler:Ce},{semanticName:`Comment`,name:`Curly Brace`,shortName:`brace`,description:`Adds a comment`,aliases:[`comment`,`brace-l`],handler:K},{semanticName:`Comment Right`,name:`Curly Brace`,shortName:`brace-r`,description:`Adds a comment`,handler:re},{semanticName:`Comment with braces on both sides`,name:`Curly Braces`,shortName:`braces`,description:`Adds a comment`,handler:ie},{semanticName:`Com Link`,name:`Lightning Bolt`,shortName:`bolt`,description:`Communication link`,aliases:[`com-link`,`lightning-bolt`],handler:Ne},{semanticName:`Document`,name:`Document`,shortName:`doc`,description:`Represents a document`,aliases:[`doc`,`document`],handler:vt},{semanticName:`Delay`,name:`Half-Rounded Rectangle`,shortName:`delay`,description:`Represents a delay`,aliases:[`half-rounded-rectangle`],handler:be},{semanticName:`Direct Access Storage`,name:`Horizontal Cylinder`,shortName:`h-cyl`,description:`Direct access storage`,aliases:[`das`,`horizontal-cylinder`],handler:ft},{semanticName:`Disk Storage`,name:`Lined Cylinder`,shortName:`lin-cyl`,description:`Disk storage`,aliases:[`disk`,`lined-cylinder`],handler:ze},{semanticName:`Display`,name:`Curved Trapezoid`,shortName:`curv-trap`,description:`Represents a display`,aliases:[`curved-trapezoid`,`display`],handler:ae},{semanticName:`Divided Process`,name:`Divided Rectangle`,shortName:`div-rect`,description:`Divided process shape`,aliases:[`div-proc`,`divided-rectangle`,`divided-process`],handler:pe},{semanticName:`Extract`,name:`Triangle`,shortName:`tri`,description:`Extraction process`,aliases:[`extract`,`triangle`],handler:_t},{semanticName:`Internal Storage`,name:`Window Pane`,shortName:`win-pane`,description:`Internal storage`,aliases:[`internal-storage`,`window-pane`],handler:bt},{semanticName:`Junction`,name:`Filled Circle`,shortName:`f-circ`,description:`Junction point`,aliases:[`junction`,`filled-circle`],handler:he},{semanticName:`Loop Limit`,name:`Trapezoidal Pentagon`,shortName:`notch-pent`,description:`Loop limit step`,aliases:[`loop-limit`,`notched-pentagon`],handler:mt},{semanticName:`Manual File`,name:`Flipped Triangle`,shortName:`flip-tri`,description:`Manual file operation`,aliases:[`manual-file`,`flipped-triangle`],handler:ve},{semanticName:`Manual Input`,name:`Sloped Rectangle`,shortName:`sl-rect`,description:`Manual input step`,aliases:[`manual-input`,`sloped-rectangle`],handler:Xe},{semanticName:`Multi-Document`,name:`Stacked Document`,shortName:`docs`,description:`Multiple documents`,aliases:[`documents`,`st-doc`,`stacked-document`],handler:He},{semanticName:`Multi-Process`,name:`Stacked Rectangle`,shortName:`st-rect`,description:`Multiple processes`,aliases:[`procs`,`processes`,`stacked-rectangle`],handler:Ve},{semanticName:`Stored Data`,name:`Bow Tie Rectangle`,shortName:`bow-rect`,description:`Stored data`,aliases:[`stored-data`,`bow-tie-rectangle`],handler:ee},{semanticName:`Summary`,name:`Crossed Circle`,shortName:`cross-circ`,description:`Summary`,aliases:[`summary`,`crossed-circle`],handler:W},{semanticName:`Tagged Document`,name:`Tagged Document`,shortName:`tag-doc`,description:`Tagged document`,aliases:[`tag-doc`,`tagged-document`],handler:at},{semanticName:`Tagged Process`,name:`Tagged Rectangle`,shortName:`tag-rect`,description:`Tagged process`,aliases:[`tagged-rectangle`,`tag-proc`,`tagged-process`],handler:it},{semanticName:`Paper Tape`,name:`Flag`,shortName:`flag`,description:`Paper tape`,aliases:[`paper-tape`],handler:yt},{semanticName:`Odd`,name:`Odd`,shortName:`odd`,description:`Odd shape`,internalAliases:[`rect_left_inv_arrow`],handler:Ke},{semanticName:`Lined Document`,name:`Lined Document`,shortName:`lin-doc`,description:`Lined document`,aliases:[`lined-document`],handler:Be}],Lt=e.n(()=>{let e=[...Object.entries({state:$e,choice:U,note:Ue,rectWithTitle:qe,labelRect:Ae,iconSquare:De,iconCircle:Te,icon:we,iconRounded:Ee,imageSquare:Oe,anchor:L,kanbanItem:jt,mindmapCircle:Ft,defaultMindmapNode:Pt,classBox:Ot,erBox:Ct,requirementBox:kt}),...It.flatMap(e=>[e.shortName,...`aliases`in e?e.aliases:[],...`internalAliases`in e?e.internalAliases:[]].map(t=>[t,e.handler]))];return Object.fromEntries(e)},`generateShapeMap`)();function Rt(e){return e in Lt}e.n(Rt,`isValidShape`);var zt=new Map;async function Bt(e,t,n){let i,a;t.shape===`rect`&&(t.rx&&t.ry?t.shape=`roundedRect`:t.shape=`squareRect`);let o=t.shape?Lt[t.shape]:void 0;if(!o)throw Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let r;n.config.securityLevel===`sandbox`?r=`_top`:t.linkTarget&&(r=t.linkTarget||`_blank`),i=e.insert(`svg:a`).attr(`xlink:href`,t.link).attr(`target`,r??null),a=await o(i,t,n)}else a=await o(e,t,n),i=a;return i.attr(`data-look`,r.u(t.look)),t.tooltip&&a.attr(`title`,t.tooltip),zt.set(t.id,i),t.haveCallback&&i.attr(`class`,i.attr(`class`)+` clickable`),i}e.n(Bt,`insertNode`);var Vt=e.n((e,t)=>{zt.set(t.id,e)},`setNodeElem`),Ht=e.n(()=>{zt.clear()},`clear`),Ut=e.n(e=>{let n=zt.get(e.id);t.m.trace(`Transforming node`,e.diff,e,`translate(`+(e.x-e.width/2-5)+`, `+e.width/2+`)`);let r=e.diff||0;return e.clusterNode?n.attr(`transform`,`translate(`+(e.x+r-e.width/2)+`, `+(e.y-e.height/2-8)+`)`):n.attr(`transform`,`translate(`+e.x+`, `+e.y+`)`),r},`positionNode`);Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return Bt}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return Ut}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return Vt}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return Ht}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return Rt}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return d}});
@@ -0,0 +1,32 @@
1
+ const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs");function t(e){return e==null}e.n(t,`isNothing`);function n(e){return typeof e==`object`&&!!e}e.n(n,`isObject`);function r(e){return Array.isArray(e)?e:t(e)?[]:[e]}e.n(r,`toArray`);function i(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}e.n(i,`extend`);function a(e,t){var n=``,r;for(r=0;r<t;r+=1)n+=e;return n}e.n(a,`repeat`);function o(e){return e===0&&1/e==-1/0}e.n(o,`isNegativeZero`);var s={isNothing:t,isObject:n,toArray:r,repeat:a,isNegativeZero:o,extend:i};function c(e,t){var n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
2
+
3
+ `+e.mark.snippet),r+` `+n):r}e.n(c,`formatError`);function l(e,t){Error.call(this),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=c(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}e.n(l,`YAMLException$1`),l.prototype=Object.create(Error.prototype),l.prototype.constructor=l,l.prototype.toString=e.n(function(e){return this.name+`: `+c(this,e)},`toString`);var u=l;function d(e,t,n,r,i){var a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}e.n(d,`getLine`);function f(e,t){return s.repeat(` `,t-e.length)+e}e.n(f,`padStart`);function p(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||=79,typeof t.indent!=`number`&&(t.indent=1),typeof t.linesBefore!=`number`&&(t.linesBefore=3),typeof t.linesAfter!=`number`&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,o=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var c=``,l,u,p=Math.min(e.line+t.linesAfter,i.length).toString().length,m=t.maxLength-(t.indent+p+3);for(l=1;l<=t.linesBefore&&!(o-l<0);l++)u=d(e.buffer,r[o-l],i[o-l],e.position-(r[o]-r[o-l]),m),c=s.repeat(` `,t.indent)+f((e.line-l+1).toString(),p)+` | `+u.str+`
4
+ `+c;for(u=d(e.buffer,r[o],i[o],e.position,m),c+=s.repeat(` `,t.indent)+f((e.line+1).toString(),p)+` | `+u.str+`
5
+ `,c+=s.repeat(`-`,t.indent+p+3+u.pos)+`^
6
+ `,l=1;l<=t.linesAfter&&!(o+l>=i.length);l++)u=d(e.buffer,r[o+l],i[o+l],e.position-(r[o]-r[o+l]),m),c+=s.repeat(` `,t.indent)+f((e.line+l+1).toString(),p)+` | `+u.str+`
7
+ `;return c.replace(/\n$/,``)}e.n(p,`makeSnippet`);var m=p,h=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],g=[`scalar`,`sequence`,`mapping`];function _(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}e.n(_,`compileStyleAliases`);function v(e,t){if(t||={},Object.keys(t).forEach(function(t){if(h.indexOf(t)===-1)throw new u(`Unknown option "`+t+`" is met in definition of "`+e+`" YAML type.`)}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=_(t.styleAliases||null),g.indexOf(this.kind)===-1)throw new u(`Unknown kind "`+this.kind+`" is specified for "`+e+`" YAML type.`)}e.n(v,`Type$1`);var y=v;function b(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}e.n(b,`compileList`);function ee(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,r;function i(e){e.multi?(t.multi[e.kind].push(e),t.multi.fallback.push(e)):t[e.kind][e.tag]=t.fallback[e.tag]=e}for(e.n(i,`collectType`),n=0,r=arguments.length;n<r;n+=1)arguments[n].forEach(i);return t}e.n(ee,`compileMap`);function x(e){return this.extend(e)}e.n(x,`Schema$1`),x.prototype.extend=e.n(function(e){var t=[],n=[];if(e instanceof y)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new u(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);t.forEach(function(e){if(!(e instanceof y))throw new u(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(e.loadKind&&e.loadKind!==`scalar`)throw new u(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`);if(e.multi)throw new u(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`)}),n.forEach(function(e){if(!(e instanceof y))throw new u(`Specified list of YAML types (or a single Type object) contains a non-Type object.`)});var r=Object.create(x.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=b(r,`implicit`),r.compiledExplicit=b(r,`explicit`),r.compiledTypeMap=ee(r.compiledImplicit,r.compiledExplicit),r},`extend`);var te=new x({explicit:[new y(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:e.n(function(e){return e===null?``:e},`construct`)}),new y(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:e.n(function(e){return e===null?[]:e},`construct`)}),new y(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:e.n(function(e){return e===null?{}:e},`construct`)})]});function ne(e){if(e===null)return!0;var t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}e.n(ne,`resolveYamlNull`);function re(){return null}e.n(re,`constructYamlNull`);function ie(e){return e===null}e.n(ie,`isNull`);var ae=new y(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:ne,construct:re,predicate:ie,represent:{canonical:e.n(function(){return`~`},`canonical`),lowercase:e.n(function(){return`null`},`lowercase`),uppercase:e.n(function(){return`NULL`},`uppercase`),camelcase:e.n(function(){return`Null`},`camelcase`),empty:e.n(function(){return``},`empty`)},defaultStyle:`lowercase`});function oe(e){if(e===null)return!1;var t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}e.n(oe,`resolveYamlBoolean`);function se(e){return e===`true`||e===`True`||e===`TRUE`}e.n(se,`constructYamlBoolean`);function ce(e){return Object.prototype.toString.call(e)===`[object Boolean]`}e.n(ce,`isBoolean`);var le=new y(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:oe,construct:se,predicate:ce,represent:{lowercase:e.n(function(e){return e?`true`:`false`},`lowercase`),uppercase:e.n(function(e){return e?`TRUE`:`FALSE`},`uppercase`),camelcase:e.n(function(e){return e?`True`:`False`},`camelcase`)},defaultStyle:`lowercase`});function ue(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}e.n(ue,`isHexCode`);function de(e){return 48<=e&&e<=55}e.n(de,`isOctCode`);function fe(e){return 48<=e&&e<=57}e.n(fe,`isDecCode`);function pe(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i===`-`||i===`+`)&&(i=e[++n]),i===`0`){if(n+1===t)return!0;if(i=e[++n],i===`b`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(i!==`0`&&i!==`1`)return!1;r=!0}return r&&i!==`_`}if(i===`x`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!ue(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}if(i===`o`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!de(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}}if(i===`_`)return!1;for(;n<t;n++)if(i=e[n],i!==`_`){if(!fe(e.charCodeAt(n)))return!1;r=!0}return!(!r||i===`_`)}e.n(pe,`resolveYamlInteger`);function me(e){var t=e,n=1,r;if(t.indexOf(`_`)!==-1&&(t=t.replace(/_/g,``)),r=t[0],(r===`-`||r===`+`)&&(r===`-`&&(n=-1),t=t.slice(1),r=t[0]),t===`0`)return 0;if(r===`0`){if(t[1]===`b`)return n*parseInt(t.slice(2),2);if(t[1]===`x`)return n*parseInt(t.slice(2),16);if(t[1]===`o`)return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}e.n(me,`constructYamlInteger`);function he(e){return Object.prototype.toString.call(e)===`[object Number]`&&e%1==0&&!s.isNegativeZero(e)}e.n(he,`isInteger`);var ge=new y(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:pe,construct:me,predicate:he,represent:{binary:e.n(function(e){return e>=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},`binary`),octal:e.n(function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},`octal`),decimal:e.n(function(e){return e.toString(10)},`decimal`),hexadecimal:e.n(function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)},`hexadecimal`)},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}}),_e=RegExp(`^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function ve(e){return!(e===null||!_e.test(e)||e[e.length-1]===`_`)}e.n(ve,`resolveYamlFloat`);function ye(e){var t=e.replace(/_/g,``).toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}e.n(ye,`constructYamlFloat`);var be=/^[-+]?[0-9]+e/;function xe(e,t){var n;if(isNaN(e))switch(t){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(e===1/0)switch(t){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(e===-1/0)switch(t){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(s.isNegativeZero(e))return`-0.0`;return n=e.toString(10),be.test(n)?n.replace(`e`,`.e`):n}e.n(xe,`representYamlFloat`);function Se(e){return Object.prototype.toString.call(e)===`[object Number]`&&(e%1!=0||s.isNegativeZero(e))}e.n(Se,`isFloat`);var Ce=new y(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:ve,construct:ye,predicate:Se,represent:xe,defaultStyle:`lowercase`}),we=te.extend({implicit:[ae,le,ge,Ce]}),Te=we,Ee=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),De=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function Oe(e){return e===null?!1:Ee.exec(e)!==null||De.exec(e)!==null}e.n(Oe,`resolveYamlTimestamp`);function ke(e){var t,n,r,i,a,o,s,c=0,l=null,u,d,f;if(t=Ee.exec(e),t===null&&(t=De.exec(e)),t===null)throw Error(`Date resolve error`);if(n=+t[1],r=t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+=`0`;c=+c}return t[9]&&(u=+t[10],d=+(t[11]||0),l=(u*60+d)*6e4,t[9]===`-`&&(l=-l)),f=new Date(Date.UTC(n,r,i,a,o,s,c)),l&&f.setTime(f.getTime()-l),f}e.n(ke,`constructYamlTimestamp`);function Ae(e){return e.toISOString()}e.n(Ae,`representYamlTimestamp`);var je=new y(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:Oe,construct:ke,instanceOf:Date,represent:Ae});function Me(e){return e===`<<`||e===null}e.n(Me,`resolveYamlMerge`);var Ne=new y(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:Me}),S=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
8
+ \r`;function Pe(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=S;for(n=0;n<i;n++)if(t=a.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8==0}e.n(Pe,`resolveYamlBinary`);function Fe(e){var t,n,r=e.replace(/[\r\n=]/g,``),i=r.length,a=S,o=0,s=[];for(t=0;t<i;t++)t%4==0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(r.charAt(t));return n=i%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}e.n(Fe,`constructYamlBinary`);function Ie(e){var t=``,n=0,r,i,a=e.length,o=S;for(r=0;r<a;r++)r%3==0&&r&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return i=a%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}e.n(Ie,`representYamlBinary`);function Le(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}e.n(Le,`isBinary`);var Re=new y(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:Pe,construct:Fe,predicate:Le,represent:Ie}),ze=Object.prototype.hasOwnProperty,Be=Object.prototype.toString;function Ve(e){if(e===null)return!0;var t=[],n,r,i,a,o,s=e;for(n=0,r=s.length;n<r;n+=1){if(i=s[n],o=!1,Be.call(i)!==`[object Object]`)return!1;for(a in i)if(ze.call(i,a))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}e.n(Ve,`resolveYamlOmap`);function He(e){return e===null?[]:e}e.n(He,`constructYamlOmap`);var Ue=new y(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:Ve,construct:He}),We=Object.prototype.toString;function Ge(e){if(e===null)return!0;var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],We.call(r)!==`[object Object]`||(i=Object.keys(r),i.length!==1))return!1;a[t]=[i[0],r[i[0]]]}return!0}e.n(Ge,`resolveYamlPairs`);function Ke(e){if(e===null)return[];var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],i=Object.keys(r),a[t]=[i[0],r[i[0]]];return a}e.n(Ke,`constructYamlPairs`);var qe=new y(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:Ge,construct:Ke}),Je=Object.prototype.hasOwnProperty;function Ye(e){if(e===null)return!0;var t,n=e;for(t in n)if(Je.call(n,t)&&n[t]!==null)return!1;return!0}e.n(Ye,`resolveYamlSet`);function Xe(e){return e===null?{}:e}e.n(Xe,`constructYamlSet`);var Ze=new y(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:Ye,construct:Xe}),Qe=Te.extend({implicit:[je,Ne],explicit:[Re,Ue,qe,Ze]}),C=Object.prototype.hasOwnProperty,w=1,$e=2,et=3,T=4,E=1,tt=2,nt=3,rt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,it=/[\x85\u2028\u2029]/,at=/[,\[\]\{\}]/,ot=/^(?:!|!!|![a-z\-]+!)$/i,st=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function D(e){return Object.prototype.toString.call(e)}e.n(D,`_class`);function O(e){return e===10||e===13}e.n(O,`is_EOL`);function k(e){return e===9||e===32}e.n(k,`is_WHITE_SPACE`);function A(e){return e===9||e===32||e===10||e===13}e.n(A,`is_WS_OR_EOL`);function j(e){return e===44||e===91||e===93||e===123||e===125}e.n(j,`is_FLOW_INDICATOR`);function ct(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}e.n(ct,`fromHexCode`);function lt(e){return e===120?2:e===117?4:e===85?8:0}e.n(lt,`escapedHexLen`);function ut(e){return 48<=e&&e<=57?e-48:-1}e.n(ut,`fromDecimalCode`);function dt(e){return e===48?`\0`:e===97?`\x07`:e===98?`\b`:e===116||e===9?` `:e===110?`
9
+ `:e===118?`\v`:e===102?`\f`:e===114?`\r`:e===101?`\x1B`:e===32?` `:e===34?`"`:e===47?`/`:e===92?`\\`:e===78?`…`:e===95?`\xA0`:e===76?`\u2028`:e===80?`\u2029`:``}e.n(dt,`simpleEscapeSequence`);function ft(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}e.n(ft,`charFromCodepoint`);function pt(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}e.n(pt,`setProperty`);var mt=Array(256),ht=Array(256);for(M=0;M<256;M++)mt[M]=+!!dt(M),ht[M]=dt(M);var M;function gt(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Qe,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}e.n(gt,`State$1`);function _t(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=m(n),new u(t,n)}e.n(_t,`generateError`);function N(e,t){throw _t(e,t)}e.n(N,`throwError`);function P(e,t){e.onWarning&&e.onWarning.call(null,_t(e,t))}e.n(P,`throwWarning`);var vt={YAML:e.n(function(e,t,n){var r,i,a;e.version!==null&&N(e,`duplication of %YAML directive`),n.length!==1&&N(e,`YAML directive accepts exactly one argument`),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&N(e,`ill-formed argument of the YAML directive`),i=parseInt(r[1],10),a=parseInt(r[2],10),i!==1&&N(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&P(e,`unsupported YAML version of the document`)},`handleYamlDirective`),TAG:e.n(function(e,t,n){var r,i;n.length!==2&&N(e,`TAG directive accepts exactly two arguments`),r=n[0],i=n[1],ot.test(r)||N(e,`ill-formed tag handle (first argument) of the TAG directive`),C.call(e.tagMap,r)&&N(e,`there is a previously declared suffix for "`+r+`" tag handle`),st.test(i)||N(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{i=decodeURIComponent(i)}catch{N(e,`tag prefix is malformed: `+i)}e.tagMap[r]=i},`handleTagDirective`)};function F(e,t,n,r){var i,a,o,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,a=s.length;i<a;i+=1)o=s.charCodeAt(i),o===9||32<=o&&o<=1114111||N(e,`expected valid JSON character`);else rt.test(s)&&N(e,`the stream contains non-printable characters`);e.result+=s}}e.n(F,`captureSegment`);function yt(e,t,n,r){var i,a,o,c;for(s.isObject(n)||N(e,`cannot merge mappings; the provided source object is unacceptable`),i=Object.keys(n),o=0,c=i.length;o<c;o+=1)a=i[o],C.call(t,a)||(pt(t,a,n[a]),r[a]=!0)}e.n(yt,`mergeMappings`);function I(e,t,n,r,i,a,o,s,c){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&N(e,`nested arrays are not supported inside keys`),typeof i==`object`&&D(i[l])===`[object Object]`&&(i[l]=`[object Object]`);if(typeof i==`object`&&D(i)===`[object Object]`&&(i=`[object Object]`),i=String(i),t===null&&(t={}),r===`tag:yaml.org,2002:merge`)if(Array.isArray(a))for(l=0,u=a.length;l<u;l+=1)yt(e,t,a[l],n);else yt(e,t,a,n);else!e.json&&!C.call(n,i)&&C.call(t,i)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=c||e.position,N(e,`duplicated mapping key`)),pt(t,i,a),delete n[i];return t}e.n(I,`storeMappingPair`);function L(e){var t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):N(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}e.n(L,`readLineBreak`);function R(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;k(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(O(i))for(L(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&P(e,`deficient indentation`),r}e.n(R,`skipSeparationSpace`);function z(e){var t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||A(n)))}e.n(z,`testDocumentSeparator`);function B(e,t){t===1?e.result+=` `:t>1&&(e.result+=s.repeat(`
10
+ `,t-1))}e.n(B,`writeFoldedLines`);function bt(e,t,n){var r,i,a,o,s,c,l,u,d=e.kind,f=e.result,p=e.input.charCodeAt(e.position);if(A(p)||j(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),A(i)||n&&j(i)))return!1;for(e.kind=`scalar`,e.result=``,a=o=e.position,s=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),A(i)||n&&j(i))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),A(r))break}else if(e.position===e.lineStart&&z(e)||n&&j(p))break;else if(O(p))if(c=e.line,l=e.lineStart,u=e.lineIndent,R(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=l,e.lineIndent=u;break}s&&=(F(e,a,o,!1),B(e,e.line-c),a=o=e.position,!1),k(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return F(e,a,o,!1),e.result?!0:(e.kind=d,e.result=f,!1)}e.n(bt,`readPlainScalar`);function xt(e,t){var n=e.input.charCodeAt(e.position),r,i;if(n!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(F(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else O(n)?(F(e,r,i,!0),B(e,R(e,!1,t)),r=i=e.position):e.position===e.lineStart&&z(e)?N(e,`unexpected end of the document within a single quoted scalar`):(e.position++,i=e.position);N(e,`unexpected end of the stream within a single quoted scalar`)}e.n(xt,`readSingleQuotedScalar`);function St(e,t){var n,r,i,a,o,s=e.input.charCodeAt(e.position);if(s!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;)if(s===34)return F(e,n,e.position,!0),e.position++,!0;else if(s===92){if(F(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),O(s))R(e,!1,t);else if(s<256&&mt[s])e.result+=ht[s],e.position++;else if((o=lt(s))>0){for(i=o,a=0;i>0;i--)s=e.input.charCodeAt(++e.position),(o=ct(s))>=0?a=(a<<4)+o:N(e,`expected hexadecimal character`);e.result+=ft(a),e.position++}else N(e,`unknown escape sequence`);n=r=e.position}else O(s)?(F(e,n,r,!0),B(e,R(e,!1,t)),n=r=e.position):e.position===e.lineStart&&z(e)?N(e,`unexpected end of the document within a double quoted scalar`):(e.position++,r=e.position);N(e,`unexpected end of the stream within a double quoted scalar`)}e.n(St,`readDoubleQuotedScalar`);function Ct(e,t){var n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,p,m=Object.create(null),h,g,_,v=e.input.charCodeAt(e.position);if(v===91)u=93,p=!1,s=[];else if(v===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(R(e,!0,t),v=e.input.charCodeAt(e.position),v===u)return e.position++,e.tag=o,e.anchor=c,e.kind=p?`mapping`:`sequence`,e.result=s,!0;n?v===44&&N(e,`expected the node content, but found ','`):N(e,`missed comma between flow collection entries`),g=h=_=null,d=f=!1,v===63&&(l=e.input.charCodeAt(e.position+1),A(l)&&(d=f=!0,e.position++,R(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,V(e,t,w,!1,!0),g=e.tag,h=e.result,R(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===r)&&v===58&&(d=!0,v=e.input.charCodeAt(++e.position),R(e,!0,t),V(e,t,w,!1,!0),_=e.result),p?I(e,s,m,g,h,_,r,i,a):d?s.push(I(e,null,m,g,h,_,r,i,a)):s.push(h),R(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}N(e,`unexpected end of the stream within a flow collection`)}e.n(Ct,`readFlowCollection`);function wt(e,t){var n,r,i=E,a=!1,o=!1,c=t,l=0,u=!1,d,f=e.input.charCodeAt(e.position);if(f===124)r=!1;else if(f===62)r=!0;else return!1;for(e.kind=`scalar`,e.result=``;f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)E===i?i=f===43?nt:tt:N(e,`repeat of a chomping mode identifier`);else if((d=ut(f))>=0)d===0?N(e,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?N(e,`repeat of an indentation width identifier`):(c=t+d-1,o=!0);else break;if(k(f)){do f=e.input.charCodeAt(++e.position);while(k(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!O(f)&&f!==0)}for(;f!==0;){for(L(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!o||e.lineIndent<c)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>c&&(c=e.lineIndent),O(f)){l++;continue}if(e.lineIndent<c){i===nt?e.result+=s.repeat(`
11
+ `,a?1+l:l):i===E&&a&&(e.result+=`
12
+ `);break}for(r?k(f)?(u=!0,e.result+=s.repeat(`
13
+ `,a?1+l:l)):u?(u=!1,e.result+=s.repeat(`
14
+ `,l+1)):l===0?a&&(e.result+=` `):e.result+=s.repeat(`
15
+ `,l):e.result+=s.repeat(`
16
+ `,a?1+l:l),a=!0,o=!0,l=0,n=e.position;!O(f)&&f!==0;)f=e.input.charCodeAt(++e.position);F(e,n,e.position,!1)}return!0}e.n(wt,`readBlockScalar`);function Tt(e,t){var n,r=e.tag,i=e.anchor,a=[],o,s=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,N(e,`tab characters must not be used in indentation`)),!(c!==45||(o=e.input.charCodeAt(e.position+1),!A(o))));){if(s=!0,e.position++,R(e,!0,-1)&&e.lineIndent<=t){a.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,V(e,t,et,!1,!0),a.push(e.result),R(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)N(e,`bad indentation of a sequence entry`);else if(e.lineIndent<t)break}return s?(e.tag=r,e.anchor=i,e.kind=`sequence`,e.result=a,!0):!1}e.n(Tt,`readBlockSequence`);function Et(e,t,n){var r,i,a,o,s,c,l=e.tag,u=e.anchor,d={},f=Object.create(null),p=null,m=null,h=null,g=!1,_=!1,v;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=d),v=e.input.charCodeAt(e.position);v!==0;){if(!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,N(e,`tab characters must not be used in indentation`)),r=e.input.charCodeAt(e.position+1),a=e.line,(v===63||v===58)&&A(r))v===63?(g&&(I(e,d,f,p,m,null,o,s,c),p=m=h=null),_=!0,g=!0,i=!0):g?(g=!1,i=!0):N(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,v=r;else{if(o=e.line,s=e.lineStart,c=e.position,!V(e,n,$e,!1,!0))break;if(e.line===a){for(v=e.input.charCodeAt(e.position);k(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),A(v)||N(e,`a whitespace character is expected after the key-value separator within a block mapping`),g&&(I(e,d,f,p,m,null,o,s,c),p=m=h=null),_=!0,g=!1,i=!1,p=e.tag,m=e.result;else if(_)N(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=l,e.anchor=u,!0}else if(_)N(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return e.tag=l,e.anchor=u,!0}if((e.line===a||e.lineIndent>t)&&(g&&(o=e.line,s=e.lineStart,c=e.position),V(e,t,T,!0,i)&&(g?m=e.result:h=e.result),g||(I(e,d,f,p,m,h,o,s,c),p=m=h=null),R(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&v!==0)N(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return g&&I(e,d,f,p,m,null,o,s,c),_&&(e.tag=l,e.anchor=u,e.kind=`mapping`,e.result=d),_}e.n(Et,`readBlockMapping`);function Dt(e){var t,n=!1,r=!1,i,a,o=e.input.charCodeAt(e.position);if(o!==33)return!1;if(e.tag!==null&&N(e,`duplication of a tag property`),o=e.input.charCodeAt(++e.position),o===60?(n=!0,o=e.input.charCodeAt(++e.position)):o===33?(r=!0,i=`!!`,o=e.input.charCodeAt(++e.position)):i=`!`,t=e.position,n){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):N(e,`unexpected end of the stream within a verbatim tag`)}else{for(;o!==0&&!A(o);)o===33&&(r?N(e,`tag suffix cannot contain exclamation marks`):(i=e.input.slice(t-1,e.position+1),ot.test(i)||N(e,`named tag handle cannot contain such characters`),r=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),at.test(a)&&N(e,`tag suffix cannot contain flow indicator characters`)}a&&!st.test(a)&&N(e,`tag name cannot contain such characters: `+a);try{a=decodeURIComponent(a)}catch{N(e,`tag name is malformed: `+a)}return n?e.tag=a:C.call(e.tagMap,i)?e.tag=e.tagMap[i]+a:i===`!`?e.tag=`!`+a:i===`!!`?e.tag=`tag:yaml.org,2002:`+a:N(e,`undeclared tag handle "`+i+`"`),!0}e.n(Dt,`readTagProperty`);function Ot(e){var t,n=e.input.charCodeAt(e.position);if(n!==38)return!1;for(e.anchor!==null&&N(e,`duplication of an anchor property`),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!A(n)&&!j(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&N(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(t,e.position),!0}e.n(Ot,`readAnchorProperty`);function kt(e){var t,n,r=e.input.charCodeAt(e.position);if(r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!A(r)&&!j(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&N(e,`name of an alias node must contain at least one character`),n=e.input.slice(t,e.position),C.call(e.anchorMap,n)||N(e,`unidentified alias "`+n+`"`),e.result=e.anchorMap[n],R(e,!0,-1),!0}e.n(kt,`readAlias`);function V(e,t,n,r,i){var a,o,s,c=1,l=!1,u=!1,d,f,p,m,h,g;if(e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=T===n||et===n,r&&R(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;Dt(e)||Ot(e);)R(e,!0,-1)?(l=!0,s=a,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):s=!1;if(s&&=l||i,(c===1||T===n)&&(h=w===n||$e===n?t:t+1,g=e.position-e.lineStart,c===1?s&&(Tt(e,g)||Et(e,g,h))||Ct(e,h)?u=!0:(o&&wt(e,h)||xt(e,h)||St(e,h)?u=!0:kt(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&N(e,`alias node should not have any properties`)):bt(e,h,w===n)&&(u=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(u=s&&Tt(e,g))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag===`?`){for(e.result!==null&&e.kind!==`scalar`&&N(e,`unacceptable node kind for !<?> tag; it should be "scalar", not "`+e.kind+`"`),d=0,f=e.implicitTypes.length;d<f;d+=1)if(m=e.implicitTypes[d],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!==`!`){if(C.call(e.typeMap[e.kind||`fallback`],e.tag))m=e.typeMap[e.kind||`fallback`][e.tag];else for(m=null,p=e.typeMap.multi[e.kind||`fallback`],d=0,f=p.length;d<f;d+=1)if(e.tag.slice(0,p[d].tag.length)===p[d].tag){m=p[d];break}m||N(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&m.kind!==e.kind&&N(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+m.kind+`", not "`+e.kind+`"`),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):N(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),e.tag!==null||e.anchor!==null||u}e.n(V,`composeNode`);function At(e){var t=e.position,n,r,i,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(R(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!A(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&N(e,`directive name must not be less than one character in length`);o!==0;){for(;k(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!O(o));break}if(O(o))break;for(n=e.position;o!==0&&!A(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&L(e),C.call(vt,r)?vt[r](e,r,i):P(e,`unknown document directive "`+r+`"`)}if(R(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,R(e,!0,-1)):a&&N(e,`directives end mark is expected`),V(e,e.lineIndent-1,T,!1,!0),R(e,!0,-1),e.checkLineBreaks&&it.test(e.input.slice(t,e.position))&&P(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&z(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,R(e,!0,-1));return}if(e.position<e.length-1)N(e,`end of the stream or a document separator is expected`);else return}e.n(At,`readDocument`);function jt(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
17
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new gt(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,N(n,`null byte is not allowed in input`)),n.input+=`\0`;n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)At(n);return n.documents}e.n(jt,`loadDocuments`);function Mt(e,t,n){typeof t==`object`&&t&&n===void 0&&(n=t,t=null);var r=jt(e,n);if(typeof t!=`function`)return r;for(var i=0,a=r.length;i<a;i+=1)t(r[i])}e.n(Mt,`loadAll$1`);function Nt(e,t){var n=jt(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new u(`expected a single document in the stream, but found more`)}}e.n(Nt,`load$1`);var Pt={loadAll:Mt,load:Nt},Ft=Object.prototype.toString,It=Object.prototype.hasOwnProperty,Lt=65279,Rt=9,H=10,zt=13,Bt=32,Vt=33,Ht=34,Ut=35,Wt=37,Gt=38,Kt=39,qt=42,Jt=44,Yt=45,U=58,Xt=61,Zt=62,Qt=63,$t=64,en=91,tn=93,nn=96,rn=123,an=124,on=125,W={};W[0]=`\\0`,W[7]=`\\a`,W[8]=`\\b`,W[9]=`\\t`,W[10]=`\\n`,W[11]=`\\v`,W[12]=`\\f`,W[13]=`\\r`,W[27]=`\\e`,W[34]=`\\"`,W[92]=`\\\\`,W[133]=`\\N`,W[160]=`\\_`,W[8232]=`\\L`,W[8233]=`\\P`;var sn=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],cn=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ln(e,t){var n,r,i,a,o,s,c;if(t===null)return{};for(n={},r=Object.keys(t),i=0,a=r.length;i<a;i+=1)o=r[i],s=String(t[o]),o.slice(0,2)===`!!`&&(o=`tag:yaml.org,2002:`+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&It.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[o]=s;return n}e.n(ln,`compileStyleMap`);function un(e){var t=e.toString(16).toUpperCase(),n,r;if(e<=255)n=`x`,r=2;else if(e<=65535)n=`u`,r=4;else if(e<=4294967295)n=`U`,r=8;else throw new u(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+n+s.repeat(`0`,r-t.length)+t}e.n(un,`encodeHex`);var dn=1,G=2;function fn(e){this.schema=e.schema||Qe,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=s.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=ln(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType===`"`?G:dn,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer==`function`?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result=``,this.duplicates=[],this.usedDuplicates=null}e.n(fn,`State`);function pn(e,t){for(var n=s.repeat(` `,t),r=0,i=-1,a=``,o,c=e.length;r<c;)i=e.indexOf(`
18
+ `,r),i===-1?(o=e.slice(r),r=c):(o=e.slice(r,i+1),r=i+1),o.length&&o!==`
19
+ `&&(a+=n),a+=o;return a}e.n(pn,`indentString`);function K(e,t){return`
20
+ `+s.repeat(` `,e.indent*t)}e.n(K,`generateNextLine`);function mn(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}e.n(mn,`testImplicitResolving`);function q(e){return e===Bt||e===Rt}e.n(q,`isWhitespace`);function J(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Lt||65536<=e&&e<=1114111}e.n(J,`isPrintable`);function hn(e){return J(e)&&e!==Lt&&e!==zt&&e!==H}e.n(hn,`isNsCharOrWhitespace`);function gn(e,t,n){var r=hn(e),i=r&&!q(e);return(n?r:r&&e!==Jt&&e!==en&&e!==tn&&e!==rn&&e!==on)&&e!==Ut&&!(t===U&&!i)||hn(t)&&!q(t)&&e===Ut||t===U&&i}e.n(gn,`isPlainSafe`);function _n(e){return J(e)&&e!==Lt&&!q(e)&&e!==Yt&&e!==Qt&&e!==U&&e!==Jt&&e!==en&&e!==tn&&e!==rn&&e!==on&&e!==Ut&&e!==Gt&&e!==qt&&e!==Vt&&e!==an&&e!==Xt&&e!==Zt&&e!==Kt&&e!==Ht&&e!==Wt&&e!==$t&&e!==nn}e.n(_n,`isPlainSafeFirst`);function vn(e){return!q(e)&&e!==U}e.n(vn,`isPlainSafeLast`);function Y(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}e.n(Y,`codePointAt`);function yn(e){return/^\n* /.test(e)}e.n(yn,`needIndentIndicator`);var bn=1,xn=2,Sn=3,Cn=4,X=5;function wn(e,t,n,r,i,a,o,s){var c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=_n(Y(e,0))&&vn(Y(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=Y(e,c),!J(l))return X;h&&=gn(l,u,s),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=Y(e,c),l===H)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!J(l))return X;h&&=gn(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?bn:a===G?X:xn:n>9&&yn(e)?X:o?a===G?X:xn:f?Cn:Sn}e.n(wn,`chooseScalarStyle`);function Tn(t,n,r,i,a){t.dump=(function(){if(n.length===0)return t.quotingType===G?`""`:`''`;if(!t.noCompatMode&&(sn.indexOf(n)!==-1||cn.test(n)))return t.quotingType===G?`"`+n+`"`:`'`+n+`'`;var o=t.indent*Math.max(1,r),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o),c=i||t.flowLevel>-1&&r>=t.flowLevel;function l(e){return mn(t,e)}switch(e.n(l,`testAmbiguity`),wn(n,c,t.indent,s,l,t.quotingType,t.forceQuotes&&!i,a)){case bn:return n;case xn:return`'`+n.replace(/'/g,`''`)+`'`;case Sn:return`|`+En(n,t.indent)+Dn(pn(n,o));case Cn:return`>`+En(n,t.indent)+Dn(pn(On(n,s),o));case X:return`"`+An(n)+`"`;default:throw new u(`impossible error: invalid scalar style`)}})()}e.n(Tn,`writeScalar`);function En(e,t){var n=yn(e)?String(t):``,r=e[e.length-1]===`
21
+ `;return n+(r&&(e[e.length-2]===`
22
+ `||e===`
23
+ `)?`+`:r?``:`-`)+`
24
+ `}e.n(En,`blockHeader`);function Dn(e){return e[e.length-1]===`
25
+ `?e.slice(0,-1):e}e.n(Dn,`dropEndingNewline`);function On(e,t){for(var n=/(\n+)([^\n]*)/g,r=(function(){var r=e.indexOf(`
26
+ `);return r=r===-1?e.length:r,n.lastIndex=r,kn(e.slice(0,r),t)})(),i=e[0]===`
27
+ `||e[0]===` `,a,o;o=n.exec(e);){var s=o[1],c=o[2];a=c[0]===` `,r+=s+(!i&&!a&&c!==``?`
28
+ `:``)+kn(c,t),i=a}return r}e.n(On,`foldString`);function kn(e,t){if(e===``||e[0]===` `)return e;for(var n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=`
29
+ `+e.slice(i,a),i=a+1),o=s;return c+=`
30
+ `,e.length-i>t&&o>i?c+=e.slice(i,o)+`
31
+ `+e.slice(o+1):c+=e.slice(i),c.slice(1)}e.n(kn,`foldLine`);function An(e){for(var t=``,n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=Y(e,i),r=W[n],!r&&J(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||un(n);return t}e.n(An,`escapeString`);function jn(e,t,n){var r=``,i=e.tag,a,o,s;for(a=0,o=n.length;a<o;a+=1)s=n[a],e.replacer&&(s=e.replacer.call(n,String(a),s)),(Q(e,t,s,!1,!1)||s===void 0&&Q(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump);e.tag=i,e.dump=`[`+r+`]`}e.n(jn,`writeFlowSequence`);function Mn(e,t,n,r){var i=``,a=e.tag,o,s,c;for(o=0,s=n.length;o<s;o+=1)c=n[o],e.replacer&&(c=e.replacer.call(n,String(o),c)),(Q(e,t+1,c,!0,!0,!1,!0)||c===void 0&&Q(e,t+1,null,!0,!0,!1,!0))&&((!r||i!==``)&&(i+=K(e,t)),e.dump&&H===e.dump.charCodeAt(0)?i+=`-`:i+=`- `,i+=e.dump);e.tag=a,e.dump=i||`[]`}e.n(Mn,`writeBlockSequence`);function Nn(e,t,n){var r=``,i=e.tag,a=Object.keys(n),o,s,c,l,u;for(o=0,s=a.length;o<s;o+=1)u=``,r!==``&&(u+=`, `),e.condenseFlow&&(u+=`"`),c=a[o],l=n[c],e.replacer&&(l=e.replacer.call(n,c,l)),Q(e,t,c,!1,!1)&&(e.dump.length>1024&&(u+=`? `),u+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),Q(e,t,l,!1,!1)&&(u+=e.dump,r+=u));e.tag=i,e.dump=`{`+r+`}`}e.n(Nn,`writeFlowMapping`);function Pn(e,t,n,r){var i=``,a=e.tag,o=Object.keys(n),s,c,l,d,f,p;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys==`function`)o.sort(e.sortKeys);else if(e.sortKeys)throw new u(`sortKeys must be a boolean or a function`);for(s=0,c=o.length;s<c;s+=1)p=``,(!r||i!==``)&&(p+=K(e,t)),l=o[s],d=n[l],e.replacer&&(d=e.replacer.call(n,l,d)),Q(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024,f&&(e.dump&&H===e.dump.charCodeAt(0)?p+=`?`:p+=`? `),p+=e.dump,f&&(p+=K(e,t)),Q(e,t+1,d,!0,f)&&(e.dump&&H===e.dump.charCodeAt(0)?p+=`:`:p+=`: `,p+=e.dump,i+=p));e.tag=a,e.dump=i||`{}`}e.n(Pn,`writeBlockMapping`);function Z(e,t,n){var r,i=n?e.explicitTypes:e.implicitTypes,a,o,s,c;for(a=0,o=i.length;a<o;a+=1)if(s=i[a],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t==`object`&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag=`?`,s.represent){if(c=e.styleMap[s.tag]||s.defaultStyle,Ft.call(s.represent)===`[object Function]`)r=s.represent(t,c);else if(It.call(s.represent,c))r=s.represent[c](t,c);else throw new u(`!<`+s.tag+`> tag resolver accepts not "`+c+`" style`);e.dump=r}return!0}return!1}e.n(Z,`detectType`);function Q(e,t,n,r,i,a,o){e.tag=null,e.dump=n,Z(e,n,!1)||Z(e,n,!0);var s=Ft.call(e.dump),c=r,l;r&&=e.flowLevel<0||e.flowLevel>t;var d=s===`[object Object]`||s===`[object Array]`,f,p;if(d&&(f=e.duplicates.indexOf(n),p=f!==-1),(e.tag!==null&&e.tag!==`?`||p||e.indent!==2&&t>0)&&(i=!1),p&&e.usedDuplicates[f])e.dump=`*ref_`+f;else{if(d&&p&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),s===`[object Object]`)r&&Object.keys(e.dump).length!==0?(Pn(e,t,e.dump,i),p&&(e.dump=`&ref_`+f+e.dump)):(Nn(e,t,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(s===`[object Array]`)r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?Mn(e,t-1,e.dump,i):Mn(e,t,e.dump,i),p&&(e.dump=`&ref_`+f+e.dump)):(jn(e,t,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(s===`[object String]`)e.tag!==`?`&&Tn(e,e.dump,t,a,c);else if(s===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new u(`unacceptable kind of an object to dump `+s)}e.tag!==null&&e.tag!==`?`&&(l=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`),l=e.tag[0]===`!`?`!`+l:l.slice(0,18)===`tag:yaml.org,2002:`?`!!`+l.slice(18):`!<`+l+`>`,e.dump=l+` `+e.dump)}return!0}e.n(Q,`writeNode`);function Fn(e,t){var n=[],r=[],i,a;for($(e,n,r),i=0,a=r.length;i<a;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=Array(a)}e.n(Fn,`getDuplicateReferences`);function $(e,t,n){var r,i,a;if(typeof e==`object`&&e)if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)$(e[i],t,n);else for(r=Object.keys(e),i=0,a=r.length;i<a;i+=1)$(e[r[i]],t,n)}e.n($,`inspectNode`);function In(e,t){t||={};var n=new fn(t);n.noRefs||Fn(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),Q(n,0,r,!0,!0)?n.dump+`
32
+ `:``}e.n(In,`dump$1`);var Ln={dump:In};function Rn(e,t){return function(){throw Error(`Function yaml.`+e+` is removed in js-yaml 4. Use yaml.`+t+` instead, which is now safe by default.`)}}e.n(Rn,`renamed`);var zn=we,Bn=Pt.load;Pt.loadAll,Ln.dump,Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return Bn}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return zn}});