@ootc/markdown 0.1.0 → 0.2.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 (200) hide show
  1. package/README.md +63 -9
  2. package/dist/CodeBlock-BquZ4WRk.cjs +2 -0
  3. package/dist/CodeBlock-DSwq2gw5.js +74 -0
  4. package/dist/MarkdownPreview-CMvzqhTd.js +7592 -0
  5. package/dist/MarkdownPreview-DfDx-wep.cjs +29 -0
  6. package/dist/code.cjs +1 -1
  7. package/dist/code.js +1 -1
  8. package/dist/components/code-block/CodeBlock.d.ts +7 -1
  9. package/dist/components/markdown/MarkdownPreview.d.ts +8 -2
  10. package/dist/components/markdown-editor/MarkdownEditor.d.ts +4 -1
  11. package/dist/css/MarkdownPreview.css +1 -1
  12. package/dist/css/plugin-mermaid.css +1 -0
  13. package/dist/editor.cjs +1 -1
  14. package/dist/editor.js +24 -22
  15. package/dist/index-BJZhyxD_.cjs +9 -0
  16. package/dist/index-DWVMYNE4.js +800 -0
  17. package/dist/index-HmBYTPyZ.js +1179 -0
  18. package/dist/index-jsnhzgIQ.cjs +1 -0
  19. package/dist/index.cjs +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/jsx-runtime-DXgJBoQh.js +264 -0
  22. package/dist/jsx-runtime-nZSsnGb7.cjs +6 -0
  23. package/dist/plugin-highlight.cjs +1 -0
  24. package/dist/plugin-highlight.js +20 -0
  25. package/dist/plugin-katex.cjs +1 -0
  26. package/dist/plugin-katex.js +12 -0
  27. package/dist/plugin-mermaid.cjs +1 -0
  28. package/dist/plugin-mermaid.css +1 -0
  29. package/dist/plugin-mermaid.js +266 -0
  30. package/dist/plugins/types.d.ts +38 -0
  31. package/dist/preview.cjs +1 -1
  32. package/dist/preview.js +2 -2
  33. package/dist/style.css +1 -0
  34. package/package.json +49 -9
  35. package/dist/CodeBlock-B_Wu_RsD.cjs +0 -15
  36. package/dist/CodeBlock-BdSjKnRY.js +0 -2320
  37. package/dist/MarkdownPreview-CcTDfsgR.js +0 -20425
  38. package/dist/MarkdownPreview-imz9Sn8T.cjs +0 -295
  39. package/dist/_baseUniq-CmzFJAby.js +0 -477
  40. package/dist/_baseUniq-DTl9zLUk.cjs +0 -1
  41. package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
  42. package/dist/_commonjsHelpers-DwGv2jUC.cjs +0 -1
  43. package/dist/arc-CLsgE_FO.cjs +0 -1
  44. package/dist/arc-DN0J6orD.js +0 -83
  45. package/dist/architectureDiagram-VXUJARFQ-C0Ox22_L.cjs +0 -36
  46. package/dist/architectureDiagram-VXUJARFQ-DD1WVkEB.js +0 -4662
  47. package/dist/blockDiagram-VD42YOAC-CXFrXgPY.cjs +0 -122
  48. package/dist/blockDiagram-VD42YOAC-DzX-b-6d.js +0 -2256
  49. package/dist/c4Diagram-YG6GDRKO-8tK3jTST.cjs +0 -10
  50. package/dist/c4Diagram-YG6GDRKO-CBo9Z0K5.js +0 -1580
  51. package/dist/channel-BWUNfmCm.js +0 -5
  52. package/dist/channel-MPm5yYgZ.cjs +0 -1
  53. package/dist/chunk-4BX2VUAB-BC2JrFPv.js +0 -8
  54. package/dist/chunk-4BX2VUAB-CVibkmL0.cjs +0 -1
  55. package/dist/chunk-55IACEB6-CzZUDZ70.js +0 -8
  56. package/dist/chunk-55IACEB6-DZnx2f_C.cjs +0 -1
  57. package/dist/chunk-B4BG7PRW-D0a_-7vE.cjs +0 -165
  58. package/dist/chunk-B4BG7PRW-DU2I6H4s.js +0 -1375
  59. package/dist/chunk-DI55MBZ5-BuXMX149.js +0 -1370
  60. package/dist/chunk-DI55MBZ5-Dr1JJdkm.cjs +0 -220
  61. package/dist/chunk-FMBD7UC4-DekHPa2I.cjs +0 -15
  62. package/dist/chunk-FMBD7UC4-RBUwxloo.js +0 -19
  63. package/dist/chunk-QN33PNHL-B6FGlZxV.js +0 -19
  64. package/dist/chunk-QN33PNHL-C1YRBk0j.cjs +0 -1
  65. package/dist/chunk-QZHKN3VN-BspjB43V.cjs +0 -1
  66. package/dist/chunk-QZHKN3VN-DR_oy1P1.js +0 -15
  67. package/dist/chunk-TZMSLE5B-BRck7Be7.cjs +0 -1
  68. package/dist/chunk-TZMSLE5B-pyixj0XE.js +0 -64
  69. package/dist/classDiagram-2ON5EDUG-Bvw7buPq.cjs +0 -1
  70. package/dist/classDiagram-2ON5EDUG-DK3Yvqrk.js +0 -16
  71. package/dist/classDiagram-v2-WZHVMYZB-Bvw7buPq.cjs +0 -1
  72. package/dist/classDiagram-v2-WZHVMYZB-DK3Yvqrk.js +0 -16
  73. package/dist/clone-D2V_3-x6.cjs +0 -1
  74. package/dist/clone-O816pP2i.js +0 -8
  75. package/dist/cose-bilkent-S5V4N54A-Bu3r2cA0.js +0 -2609
  76. package/dist/cose-bilkent-S5V4N54A-vz9hoE-P.cjs +0 -1
  77. package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
  78. package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
  79. package/dist/dagre-6UL2VRFP-D2UBESo6.cjs +0 -4
  80. package/dist/dagre-6UL2VRFP-DiBRZkX2.js +0 -443
  81. package/dist/defaultLocale-D7EN2tov.js +0 -171
  82. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  83. package/dist/diagram-PSM6KHXK-CUF6rC_5.js +0 -531
  84. package/dist/diagram-PSM6KHXK-uKXJz4r1.cjs +0 -24
  85. package/dist/diagram-QEK2KX5R-Da150Pqe.js +0 -217
  86. package/dist/diagram-QEK2KX5R-kQTDsG_x.cjs +0 -43
  87. package/dist/diagram-S2PKOQOG-C5ATPkHT.cjs +0 -24
  88. package/dist/diagram-S2PKOQOG-DA2RxLrC.js +0 -142
  89. package/dist/erDiagram-Q2GNP2WA-BsCdOw62.cjs +0 -60
  90. package/dist/erDiagram-Q2GNP2WA-YfCaUJjx.js +0 -841
  91. package/dist/flowDiagram-NV44I4VS-BG0KW3ec.cjs +0 -162
  92. package/dist/flowDiagram-NV44I4VS-D7WLCw1w.js +0 -1620
  93. package/dist/fonts/font-00b26ac8.woff2 +0 -0
  94. package/dist/fonts/font-036d4e95.woff2 +0 -0
  95. package/dist/fonts/font-07d8e303.ttf +0 -0
  96. package/dist/fonts/font-08ce98e5.ttf +0 -0
  97. package/dist/fonts/font-0cdd387c.woff2 +0 -0
  98. package/dist/fonts/font-0d85ae7c.ttf +0 -0
  99. package/dist/fonts/font-0f60d1b8.woff2 +0 -0
  100. package/dist/fonts/font-11e4dc8a.woff +0 -0
  101. package/dist/fonts/font-138ac28d.ttf +0 -0
  102. package/dist/fonts/font-1ae6bd74.woff +0 -0
  103. package/dist/fonts/font-1c67f068.ttf +0 -0
  104. package/dist/fonts/font-1e6f9579.ttf +0 -0
  105. package/dist/fonts/font-1ece03f7.ttf +0 -0
  106. package/dist/fonts/font-2014c523.woff +0 -0
  107. package/dist/fonts/font-30da91e8.woff +0 -0
  108. package/dist/fonts/font-3398dd02.woff +0 -0
  109. package/dist/fonts/font-3931dd81.ttf +0 -0
  110. package/dist/fonts/font-500e04d5.ttf +0 -0
  111. package/dist/fonts/font-51814d27.woff2 +0 -0
  112. package/dist/fonts/font-5d53e70a.woff2 +0 -0
  113. package/dist/fonts/font-5e28753b.woff +0 -0
  114. package/dist/fonts/font-68534840.ttf +0 -0
  115. package/dist/fonts/font-68e8c73e.woff2 +0 -0
  116. package/dist/fonts/font-6ab6b62e.woff +0 -0
  117. package/dist/fonts/font-6b47c401.woff2 +0 -0
  118. package/dist/fonts/font-70ee1f64.ttf +0 -0
  119. package/dist/fonts/font-71d517d6.woff2 +0 -0
  120. package/dist/fonts/font-73d59127.woff2 +0 -0
  121. package/dist/fonts/font-74444efd.woff2 +0 -0
  122. package/dist/fonts/font-7af58c5e.woff2 +0 -0
  123. package/dist/fonts/font-850c0af5.woff +0 -0
  124. package/dist/fonts/font-8a8d2445.woff +0 -0
  125. package/dist/fonts/font-9163df9c.ttf +0 -0
  126. package/dist/fonts/font-91ee6750.woff +0 -0
  127. package/dist/fonts/font-95b6d2f1.ttf +0 -0
  128. package/dist/fonts/font-97479ca6.woff2 +0 -0
  129. package/dist/fonts/font-99cd42a3.woff2 +0 -0
  130. package/dist/fonts/font-99f9c675.woff +0 -0
  131. package/dist/fonts/font-9be7ceb8.woff +0 -0
  132. package/dist/fonts/font-a4af7d41.woff2 +0 -0
  133. package/dist/fonts/font-a6b2099f.ttf +0 -0
  134. package/dist/fonts/font-a6f7ec0d.woff +0 -0
  135. package/dist/fonts/font-c2342cd8.woff2 +0 -0
  136. package/dist/fonts/font-c6368d87.woff +0 -0
  137. package/dist/fonts/font-c647367d.ttf +0 -0
  138. package/dist/fonts/font-c76c5d69.woff +0 -0
  139. package/dist/fonts/font-c943cc98.woff +0 -0
  140. package/dist/fonts/font-d0332f52.ttf +0 -0
  141. package/dist/fonts/font-d04c5421.woff2 +0 -0
  142. package/dist/fonts/font-d96cdf2b.woff +0 -0
  143. package/dist/fonts/font-dc47344d.woff2 +0 -0
  144. package/dist/fonts/font-de7701e4.woff2 +0 -0
  145. package/dist/fonts/font-e14fed02.woff +0 -0
  146. package/dist/fonts/font-e99ae511.woff2 +0 -0
  147. package/dist/fonts/font-ece03cfd.woff +0 -0
  148. package/dist/fonts/font-ed0b7437.ttf +0 -0
  149. package/dist/fonts/font-f01f3e87.ttf +0 -0
  150. package/dist/fonts/font-f1d6ef86.woff +0 -0
  151. package/dist/fonts/font-f36ea897.ttf +0 -0
  152. package/dist/fonts/font-f9377ab0.ttf +0 -0
  153. package/dist/ganttDiagram-JELNMOA3-BUA8njzO.cjs +0 -267
  154. package/dist/ganttDiagram-JELNMOA3-DSi9nt2I.js +0 -2671
  155. package/dist/gitGraphDiagram-NY62KEGX-C_9BbRSY.cjs +0 -65
  156. package/dist/gitGraphDiagram-NY62KEGX-Dr7HXTzE.js +0 -699
  157. package/dist/graph-Bd_3fIRG.cjs +0 -1
  158. package/dist/graph-DKQwyqwf.js +0 -381
  159. package/dist/index-BCrgOJjI.js +0 -38514
  160. package/dist/index-CPmaHYSB.cjs +0 -3920
  161. package/dist/infoDiagram-WHAUD3N6-LqpiKtaK.cjs +0 -2
  162. package/dist/infoDiagram-WHAUD3N6-cs5PUkbs.js +0 -24
  163. package/dist/init-CHZsXQcr.cjs +0 -1
  164. package/dist/init-DjUOC4st.js +0 -16
  165. package/dist/journeyDiagram-XKPGCS4Q-Uzzobun-.cjs +0 -139
  166. package/dist/journeyDiagram-XKPGCS4Q-Xh1PuBF3.js +0 -834
  167. package/dist/kanban-definition-3W4ZIXB7-BGNcniUS.cjs +0 -89
  168. package/dist/kanban-definition-3W4ZIXB7-BrCevkcy.js +0 -719
  169. package/dist/layout-C1JPMjBE.cjs +0 -1
  170. package/dist/layout-DCT3c1G0.js +0 -1441
  171. package/dist/linear-1V2v3HAv.js +0 -259
  172. package/dist/linear-BguQgdYO.cjs +0 -1
  173. package/dist/mermaid.core-B7U3vlPn.js +0 -15269
  174. package/dist/mermaid.core-Bi8BVJjR.cjs +0 -249
  175. package/dist/min-DxTpsh5w.js +0 -38
  176. package/dist/min-IWR7y697.cjs +0 -1
  177. package/dist/mindmap-definition-VGOIOE7T-Bo_AaB3S.cjs +0 -68
  178. package/dist/mindmap-definition-VGOIOE7T-y7MJRkKb.js +0 -784
  179. package/dist/ordinal-B6-f3MAq.js +0 -61
  180. package/dist/ordinal-CagbB1m8.cjs +0 -1
  181. package/dist/pieDiagram-ADFJNKIX-B3MwEiQQ.cjs +0 -30
  182. package/dist/pieDiagram-ADFJNKIX-Dat2qDxW.js +0 -161
  183. package/dist/quadrantDiagram-AYHSOK5B-BPI6p5FS.js +0 -1022
  184. package/dist/quadrantDiagram-AYHSOK5B-DJPxR-7E.cjs +0 -7
  185. package/dist/requirementDiagram-UZGBJVZJ-BjJSqttW.js +0 -850
  186. package/dist/requirementDiagram-UZGBJVZJ-CmIwuHrt.cjs +0 -64
  187. package/dist/sankeyDiagram-TZEHDZUN-CLroAHms.cjs +0 -10
  188. package/dist/sankeyDiagram-TZEHDZUN-jMmEhl5n.js +0 -810
  189. package/dist/sequenceDiagram-WL72ISMW-BVZMWdMT.cjs +0 -145
  190. package/dist/sequenceDiagram-WL72ISMW-CqGWWpuM.js +0 -2511
  191. package/dist/stateDiagram-FKZM4ZOC-DYHXgEjX.cjs +0 -1
  192. package/dist/stateDiagram-FKZM4ZOC-h1ovMUWJ.js +0 -263
  193. package/dist/stateDiagram-v2-4FDKWEC3-Di23ehqW.cjs +0 -1
  194. package/dist/stateDiagram-v2-4FDKWEC3-GGpuzcKb.js +0 -16
  195. package/dist/timeline-definition-IT6M3QCI-DC_axTKs.js +0 -795
  196. package/dist/timeline-definition-IT6M3QCI-DYx-RdCk.cjs +0 -61
  197. package/dist/treemap-KMMF4GRG-B-9lqUoG.js +0 -14192
  198. package/dist/treemap-KMMF4GRG-EXqF5Yz1.cjs +0 -128
  199. package/dist/xychartDiagram-PRI3JC2R-CedpkbBs.cjs +0 -7
  200. package/dist/xychartDiagram-PRI3JC2R-gFwsBSHN.js +0 -1340
@@ -1 +0,0 @@
1
- "use strict";const o=require("./mermaid.core-Bi8BVJjR.cjs"),u=require("./_baseUniq-DTl9zLUk.cjs");function B(t,e){return t&&o.copyObject(e,u.keys(e),t)}function x(t,e){return t&&o.copyObject(e,o.keysIn(e),t)}function R(t,e){return o.copyObject(t,u.getSymbols(t),e)}var V=Object.getOwnPropertySymbols,v=V?function(t){for(var e=[];t;)u.arrayPush(e,u.getSymbols(t)),t=o.getPrototype(t);return e}:u.stubArray;function k(t,e){return o.copyObject(t,v(t),e)}function q(t){return u.baseGetAllKeys(t,o.keysIn,v)}var K=Object.prototype,Y=K.hasOwnProperty;function H(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&Y.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function W(t,e){var r=e?o.cloneArrayBuffer(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var J=/\w*$/;function Q(t){var e=new t.constructor(t.source,J.exec(t));return e.lastIndex=t.lastIndex,e}var L=o.Symbol?o.Symbol.prototype:void 0,w=L?L.valueOf:void 0;function X(t){return w?Object(w.call(t)):{}}var Z="[object Boolean]",z="[object Date]",ee="[object Map]",te="[object Number]",re="[object RegExp]",se="[object Set]",ne="[object String]",ie="[object Symbol]",oe="[object ArrayBuffer]",ae="[object DataView]",ue="[object Float32Array]",he="[object Float64Array]",ce="[object Int8Array]",de="[object Int16Array]",fe="[object Int32Array]",le="[object Uint8Array]",ge="[object Uint8ClampedArray]",_e="[object Uint16Array]",be="[object Uint32Array]";function pe(t,e,r){var s=t.constructor;switch(e){case oe:return o.cloneArrayBuffer(t);case Z:case z:return new s(+t);case ae:return W(t,r);case ue:case he:case ce:case de:case fe:case le:case ge:case _e:case be:return o.cloneTypedArray(t,r);case ee:return new s;case te:case ne:return new s(t);case re:return Q(t);case se:return new s;case ie:return X(t)}}var ye="[object Map]";function me(t){return o.isObjectLike(t)&&o.getTag(t)==ye}var N=o.nodeUtil&&o.nodeUtil.isMap,je=N?o.baseUnary(N):me,Te="[object Set]";function Oe(t){return o.isObjectLike(t)&&o.getTag(t)==Te}var F=o.nodeUtil&&o.nodeUtil.isSet,Ee=F?o.baseUnary(F):Oe,Ae=1,Ce=2,Le=4,I="[object Arguments]",we="[object Array]",Ne="[object Boolean]",Fe="[object Date]",Se="[object Error]",D="[object Function]",$e="[object GeneratorFunction]",Pe="[object Map]",ve="[object Number]",M="[object Object]",Ie="[object RegExp]",De="[object Set]",Me="[object String]",Ue="[object Symbol]",Ge="[object WeakMap]",Be="[object ArrayBuffer]",xe="[object DataView]",Re="[object Float32Array]",Ve="[object Float64Array]",ke="[object Int8Array]",qe="[object Int16Array]",Ke="[object Int32Array]",Ye="[object Uint8Array]",He="[object Uint8ClampedArray]",We="[object Uint16Array]",Je="[object Uint32Array]",h={};h[I]=h[we]=h[Be]=h[xe]=h[Ne]=h[Fe]=h[Re]=h[Ve]=h[ke]=h[qe]=h[Ke]=h[Pe]=h[ve]=h[M]=h[Ie]=h[De]=h[Me]=h[Ue]=h[Ye]=h[He]=h[We]=h[Je]=!0;h[Se]=h[D]=h[Ge]=!1;function y(t,e,r,s,n,a){var i,c=e&Ae,d=e&Ce,U=e&Le;if(i!==void 0)return i;if(!o.isObject(t))return t;var O=o.isArray(t);if(O){if(i=H(t),!c)return o.copyArray(t,i)}else{var b=o.getTag(t),E=b==D||b==$e;if(o.isBuffer(t))return o.cloneBuffer(t,c);if(b==M||b==I||E&&!n){if(i=d||E?{}:o.initCloneObject(t),!c)return d?k(t,x(i,t)):R(t,B(i,t))}else{if(!h[b])return n?t:{};i=pe(t,b,c)}}a||(a=new o.Stack);var A=a.get(t);if(A)return A;a.set(t,i),Ee(t)?t.forEach(function(f){i.add(y(f,e,r,f,t,a))}):je(t)&&t.forEach(function(f,l){i.set(l,y(f,e,r,l,t,a))});var G=U?d?q:u.getAllKeys:d?o.keysIn:u.keys,C=O?void 0:G(t);return u.arrayEach(C||t,function(f,l){C&&(l=f,f=t[l]),o.assignValue(i,l,y(f,e,r,l,t,a))}),i}function Qe(t,e){return u.arrayMap(e,function(r){return t[r]})}function m(t){return t==null?[]:Qe(t,u.keys(t))}function _(t){return t===void 0}var Xe=o.baseRest(function(t){return u.baseUniq(u.baseFlatten(t,1,o.isArrayLikeObject,!0))}),Ze="\0",g="\0",S="";class T{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=o.constant$2(void 0),this._defaultEdgeLabelFn=o.constant$2(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[g]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return o.isFunction(e)||(e=o.constant$2(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return u.keys(this._nodes)}sources(){var e=this;return u.filter(this.nodes(),function(r){return o.isEmpty(e._in[r])})}sinks(){var e=this;return u.filter(this.nodes(),function(r){return o.isEmpty(e._out[r])})}setNodes(e,r){var s=arguments,n=this;return u.forEach(e,function(a){s.length>1?n.setNode(a,r):n.setNode(a)}),this}setNode(e,r){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=r),this):(this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=g,this._children[e]={},this._children[g][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var r=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],u.forEach(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),u.forEach(u.keys(this._in[e]),r),delete this._in[e],delete this._preds[e],u.forEach(u.keys(this._out[e]),r),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(_(r))r=g;else{r+="";for(var s=r;!_(s);s=this.parent(s))if(s===e)throw new Error("Setting "+r+" as parent of "+e+" would create a cycle");this.setNode(r)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=r,this._children[r][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var r=this._parent[e];if(r!==g)return r}}children(e){if(_(e)&&(e=g),this._isCompound){var r=this._children[e];if(r)return u.keys(r)}else{if(e===g)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var r=this._preds[e];if(r)return u.keys(r)}successors(e){var r=this._sucs[e];if(r)return u.keys(r)}neighbors(e){var r=this.predecessors(e);if(r)return Xe(r,this.successors(e))}isLeaf(e){var r;return this.isDirected()?r=this.successors(e):r=this.neighbors(e),r.length===0}filterNodes(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var s=this;u.forEach(this._nodes,function(i,c){e(c)&&r.setNode(c,i)}),u.forEach(this._edgeObjs,function(i){r.hasNode(i.v)&&r.hasNode(i.w)&&r.setEdge(i,s.edge(i))});var n={};function a(i){var c=s.parent(i);return c===void 0||r.hasNode(c)?(n[i]=c,c):c in n?n[c]:a(c)}return this._isCompound&&u.forEach(r.nodes(),function(i){r.setParent(i,a(i))}),r}setDefaultEdgeLabel(e){return o.isFunction(e)||(e=o.constant$2(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return m(this._edgeObjs)}setPath(e,r){var s=this,n=arguments;return u.reduce(e,function(a,i){return n.length>1?s.setEdge(a,i,r):s.setEdge(a,i),i}),this}setEdge(){var e,r,s,n,a=!1,i=arguments[0];typeof i=="object"&&i!==null&&"v"in i?(e=i.v,r=i.w,s=i.name,arguments.length===2&&(n=arguments[1],a=!0)):(e=i,r=arguments[1],s=arguments[3],arguments.length>2&&(n=arguments[2],a=!0)),e=""+e,r=""+r,_(s)||(s=""+s);var c=p(this._isDirected,e,r,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,c))return a&&(this._edgeLabels[c]=n),this;if(!_(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[c]=a?n:this._defaultEdgeLabelFn(e,r,s);var d=ze(this._isDirected,e,r,s);return e=d.v,r=d.w,Object.freeze(d),this._edgeObjs[c]=d,$(this._preds[r],e),$(this._sucs[e],r),this._in[r][c]=d,this._out[e][c]=d,this._edgeCount++,this}edge(e,r,s){var n=arguments.length===1?j(this._isDirected,arguments[0]):p(this._isDirected,e,r,s);return this._edgeLabels[n]}hasEdge(e,r,s){var n=arguments.length===1?j(this._isDirected,arguments[0]):p(this._isDirected,e,r,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,n)}removeEdge(e,r,s){var n=arguments.length===1?j(this._isDirected,arguments[0]):p(this._isDirected,e,r,s),a=this._edgeObjs[n];return a&&(e=a.v,r=a.w,delete this._edgeLabels[n],delete this._edgeObjs[n],P(this._preds[r],e),P(this._sucs[e],r),delete this._in[r][n],delete this._out[e][n],this._edgeCount--),this}inEdges(e,r){var s=this._in[e];if(s){var n=m(s);return r?u.filter(n,function(a){return a.v===r}):n}}outEdges(e,r){var s=this._out[e];if(s){var n=m(s);return r?u.filter(n,function(a){return a.w===r}):n}}nodeEdges(e,r){var s=this.inEdges(e,r);if(s)return s.concat(this.outEdges(e,r))}}T.prototype._nodeCount=0;T.prototype._edgeCount=0;function $(t,e){t[e]?t[e]++:t[e]=1}function P(t,e){--t[e]||delete t[e]}function p(t,e,r,s){var n=""+e,a=""+r;if(!t&&n>a){var i=n;n=a,a=i}return n+S+a+S+(_(s)?Ze:s)}function ze(t,e,r,s){var n=""+e,a=""+r;if(!t&&n>a){var i=n;n=a,a=i}var c={v:n,w:a};return s&&(c.name=s),c}function j(t,e){return p(t,e.v,e.w,e.name)}exports.Graph=T;exports.baseClone=y;exports.isUndefined=_;exports.values=m;
@@ -1,381 +0,0 @@
1
- import { aO as T, aP as C, aQ as z, aR as R, aS as S, aT as k, aU as V, aV as L, aW as K, aX as j, aY as ee, aZ as te, a_ as re, a$ as se, b0 as ne, b1 as ie, aE as ae, b2 as oe, b3 as ue, b4 as he, b5 as y, b6 as $, b7 as v } from "./mermaid.core-B7U3vlPn.js";
2
- import { k as d, g as Y, s as de, e as ce, f as fe, h as ge, j as le, c as be, l as _e, b as pe, m, n as g, r as ye } from "./_baseUniq-CmzFJAby.js";
3
- function me(t, e) {
4
- return t && T(e, d(e), t);
5
- }
6
- function je(t, e) {
7
- return t && T(e, C(e), t);
8
- }
9
- function Te(t, e) {
10
- return T(t, Y(t), e);
11
- }
12
- var Oe = Object.getOwnPropertySymbols, W = Oe ? function(t) {
13
- for (var e = []; t; )
14
- ce(e, Y(t)), t = z(t);
15
- return e;
16
- } : de;
17
- function Ee(t, e) {
18
- return T(t, W(t), e);
19
- }
20
- function Ae(t) {
21
- return fe(t, C, W);
22
- }
23
- var Ce = Object.prototype, Le = Ce.hasOwnProperty;
24
- function we(t) {
25
- var e = t.length, r = new t.constructor(e);
26
- return e && typeof t[0] == "string" && Le.call(t, "index") && (r.index = t.index, r.input = t.input), r;
27
- }
28
- function Ne(t, e) {
29
- var r = e ? R(t.buffer) : t.buffer;
30
- return new t.constructor(r, t.byteOffset, t.byteLength);
31
- }
32
- var Pe = /\w*$/;
33
- function Fe(t) {
34
- var e = new t.constructor(t.source, Pe.exec(t));
35
- return e.lastIndex = t.lastIndex, e;
36
- }
37
- var I = S ? S.prototype : void 0, D = I ? I.valueOf : void 0;
38
- function Se(t) {
39
- return D ? Object(D.call(t)) : {};
40
- }
41
- var $e = "[object Boolean]", ve = "[object Date]", Ie = "[object Map]", De = "[object Number]", Me = "[object RegExp]", Ue = "[object Set]", Ge = "[object String]", xe = "[object Symbol]", Be = "[object ArrayBuffer]", Re = "[object DataView]", Ve = "[object Float32Array]", Ke = "[object Float64Array]", Ye = "[object Int8Array]", We = "[object Int16Array]", qe = "[object Int32Array]", He = "[object Uint8Array]", Qe = "[object Uint8ClampedArray]", Xe = "[object Uint16Array]", Ze = "[object Uint32Array]";
42
- function Je(t, e, r) {
43
- var s = t.constructor;
44
- switch (e) {
45
- case Be:
46
- return R(t);
47
- case $e:
48
- case ve:
49
- return new s(+t);
50
- case Re:
51
- return Ne(t, r);
52
- case Ve:
53
- case Ke:
54
- case Ye:
55
- case We:
56
- case qe:
57
- case He:
58
- case Qe:
59
- case Xe:
60
- case Ze:
61
- return k(t, r);
62
- case Ie:
63
- return new s();
64
- case De:
65
- case Ge:
66
- return new s(t);
67
- case Me:
68
- return Fe(t);
69
- case Ue:
70
- return new s();
71
- case xe:
72
- return Se(t);
73
- }
74
- }
75
- var ze = "[object Map]";
76
- function ke(t) {
77
- return V(t) && L(t) == ze;
78
- }
79
- var M = j && j.isMap, et = M ? K(M) : ke, tt = "[object Set]";
80
- function rt(t) {
81
- return V(t) && L(t) == tt;
82
- }
83
- var U = j && j.isSet, st = U ? K(U) : rt, nt = 1, it = 2, at = 4, q = "[object Arguments]", ot = "[object Array]", ut = "[object Boolean]", ht = "[object Date]", dt = "[object Error]", H = "[object Function]", ct = "[object GeneratorFunction]", ft = "[object Map]", gt = "[object Number]", Q = "[object Object]", lt = "[object RegExp]", bt = "[object Set]", _t = "[object String]", pt = "[object Symbol]", yt = "[object WeakMap]", mt = "[object ArrayBuffer]", jt = "[object DataView]", Tt = "[object Float32Array]", Ot = "[object Float64Array]", Et = "[object Int8Array]", At = "[object Int16Array]", Ct = "[object Int32Array]", Lt = "[object Uint8Array]", wt = "[object Uint8ClampedArray]", Nt = "[object Uint16Array]", Pt = "[object Uint32Array]", o = {};
84
- o[q] = o[ot] = o[mt] = o[jt] = o[ut] = o[ht] = o[Tt] = o[Ot] = o[Et] = o[At] = o[Ct] = o[ft] = o[gt] = o[Q] = o[lt] = o[bt] = o[_t] = o[pt] = o[Lt] = o[wt] = o[Nt] = o[Pt] = !0;
85
- o[dt] = o[H] = o[yt] = !1;
86
- function O(t, e, r, s, n, a) {
87
- var i, u = e & nt, h = e & it, Z = e & at;
88
- if (i !== void 0)
89
- return i;
90
- if (!ee(t))
91
- return t;
92
- var w = ae(t);
93
- if (w) {
94
- if (i = we(t), !u)
95
- return te(t, i);
96
- } else {
97
- var b = L(t), N = b == H || b == ct;
98
- if (re(t))
99
- return se(t, u);
100
- if (b == Q || b == q || N && !n) {
101
- if (i = h || N ? {} : ne(t), !u)
102
- return h ? Ee(t, je(i, t)) : Te(t, me(i, t));
103
- } else {
104
- if (!o[b])
105
- return n ? t : {};
106
- i = Je(t, b, u);
107
- }
108
- }
109
- a || (a = new ie());
110
- var P = a.get(t);
111
- if (P)
112
- return P;
113
- a.set(t, i), st(t) ? t.forEach(function(c) {
114
- i.add(O(c, e, r, c, t, a));
115
- }) : et(t) && t.forEach(function(c, f) {
116
- i.set(f, O(c, e, r, f, t, a));
117
- });
118
- var J = Z ? h ? Ae : ge : h ? C : d, F = w ? void 0 : J(t);
119
- return le(F || t, function(c, f) {
120
- F && (f = c, c = t[f]), oe(i, f, O(c, e, r, f, t, a));
121
- }), i;
122
- }
123
- function Ft(t, e) {
124
- return be(e, function(r) {
125
- return t[r];
126
- });
127
- }
128
- function E(t) {
129
- return t == null ? [] : Ft(t, d(t));
130
- }
131
- function _(t) {
132
- return t === void 0;
133
- }
134
- var St = ue(function(t) {
135
- return _e(pe(t, 1, he, !0));
136
- }), $t = "\0", l = "\0", G = "";
137
- class X {
138
- constructor(e = {}) {
139
- this._isDirected = Object.prototype.hasOwnProperty.call(e, "directed") ? e.directed : !0, this._isMultigraph = Object.prototype.hasOwnProperty.call(e, "multigraph") ? e.multigraph : !1, this._isCompound = Object.prototype.hasOwnProperty.call(e, "compound") ? e.compound : !1, this._label = void 0, this._defaultNodeLabelFn = y(void 0), this._defaultEdgeLabelFn = y(void 0), this._nodes = {}, this._isCompound && (this._parent = {}, this._children = {}, this._children[l] = {}), this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {};
140
- }
141
- /* === Graph functions ========= */
142
- isDirected() {
143
- return this._isDirected;
144
- }
145
- isMultigraph() {
146
- return this._isMultigraph;
147
- }
148
- isCompound() {
149
- return this._isCompound;
150
- }
151
- setGraph(e) {
152
- return this._label = e, this;
153
- }
154
- graph() {
155
- return this._label;
156
- }
157
- /* === Node functions ========== */
158
- setDefaultNodeLabel(e) {
159
- return $(e) || (e = y(e)), this._defaultNodeLabelFn = e, this;
160
- }
161
- nodeCount() {
162
- return this._nodeCount;
163
- }
164
- nodes() {
165
- return d(this._nodes);
166
- }
167
- sources() {
168
- var e = this;
169
- return m(this.nodes(), function(r) {
170
- return v(e._in[r]);
171
- });
172
- }
173
- sinks() {
174
- var e = this;
175
- return m(this.nodes(), function(r) {
176
- return v(e._out[r]);
177
- });
178
- }
179
- setNodes(e, r) {
180
- var s = arguments, n = this;
181
- return g(e, function(a) {
182
- s.length > 1 ? n.setNode(a, r) : n.setNode(a);
183
- }), this;
184
- }
185
- setNode(e, r) {
186
- return Object.prototype.hasOwnProperty.call(this._nodes, e) ? (arguments.length > 1 && (this._nodes[e] = r), this) : (this._nodes[e] = arguments.length > 1 ? r : this._defaultNodeLabelFn(e), this._isCompound && (this._parent[e] = l, this._children[e] = {}, this._children[l][e] = !0), this._in[e] = {}, this._preds[e] = {}, this._out[e] = {}, this._sucs[e] = {}, ++this._nodeCount, this);
187
- }
188
- node(e) {
189
- return this._nodes[e];
190
- }
191
- hasNode(e) {
192
- return Object.prototype.hasOwnProperty.call(this._nodes, e);
193
- }
194
- removeNode(e) {
195
- if (Object.prototype.hasOwnProperty.call(this._nodes, e)) {
196
- var r = (s) => this.removeEdge(this._edgeObjs[s]);
197
- delete this._nodes[e], this._isCompound && (this._removeFromParentsChildList(e), delete this._parent[e], g(this.children(e), (s) => {
198
- this.setParent(s);
199
- }), delete this._children[e]), g(d(this._in[e]), r), delete this._in[e], delete this._preds[e], g(d(this._out[e]), r), delete this._out[e], delete this._sucs[e], --this._nodeCount;
200
- }
201
- return this;
202
- }
203
- setParent(e, r) {
204
- if (!this._isCompound)
205
- throw new Error("Cannot set parent in a non-compound graph");
206
- if (_(r))
207
- r = l;
208
- else {
209
- r += "";
210
- for (var s = r; !_(s); s = this.parent(s))
211
- if (s === e)
212
- throw new Error("Setting " + r + " as parent of " + e + " would create a cycle");
213
- this.setNode(r);
214
- }
215
- return this.setNode(e), this._removeFromParentsChildList(e), this._parent[e] = r, this._children[r][e] = !0, this;
216
- }
217
- _removeFromParentsChildList(e) {
218
- delete this._children[this._parent[e]][e];
219
- }
220
- parent(e) {
221
- if (this._isCompound) {
222
- var r = this._parent[e];
223
- if (r !== l)
224
- return r;
225
- }
226
- }
227
- children(e) {
228
- if (_(e) && (e = l), this._isCompound) {
229
- var r = this._children[e];
230
- if (r)
231
- return d(r);
232
- } else {
233
- if (e === l)
234
- return this.nodes();
235
- if (this.hasNode(e))
236
- return [];
237
- }
238
- }
239
- predecessors(e) {
240
- var r = this._preds[e];
241
- if (r)
242
- return d(r);
243
- }
244
- successors(e) {
245
- var r = this._sucs[e];
246
- if (r)
247
- return d(r);
248
- }
249
- neighbors(e) {
250
- var r = this.predecessors(e);
251
- if (r)
252
- return St(r, this.successors(e));
253
- }
254
- isLeaf(e) {
255
- var r;
256
- return this.isDirected() ? r = this.successors(e) : r = this.neighbors(e), r.length === 0;
257
- }
258
- filterNodes(e) {
259
- var r = new this.constructor({
260
- directed: this._isDirected,
261
- multigraph: this._isMultigraph,
262
- compound: this._isCompound
263
- });
264
- r.setGraph(this.graph());
265
- var s = this;
266
- g(this._nodes, function(i, u) {
267
- e(u) && r.setNode(u, i);
268
- }), g(this._edgeObjs, function(i) {
269
- r.hasNode(i.v) && r.hasNode(i.w) && r.setEdge(i, s.edge(i));
270
- });
271
- var n = {};
272
- function a(i) {
273
- var u = s.parent(i);
274
- return u === void 0 || r.hasNode(u) ? (n[i] = u, u) : u in n ? n[u] : a(u);
275
- }
276
- return this._isCompound && g(r.nodes(), function(i) {
277
- r.setParent(i, a(i));
278
- }), r;
279
- }
280
- /* === Edge functions ========== */
281
- setDefaultEdgeLabel(e) {
282
- return $(e) || (e = y(e)), this._defaultEdgeLabelFn = e, this;
283
- }
284
- edgeCount() {
285
- return this._edgeCount;
286
- }
287
- edges() {
288
- return E(this._edgeObjs);
289
- }
290
- setPath(e, r) {
291
- var s = this, n = arguments;
292
- return ye(e, function(a, i) {
293
- return n.length > 1 ? s.setEdge(a, i, r) : s.setEdge(a, i), i;
294
- }), this;
295
- }
296
- /*
297
- * setEdge(v, w, [value, [name]])
298
- * setEdge({ v, w, [name] }, [value])
299
- */
300
- setEdge() {
301
- var e, r, s, n, a = !1, i = arguments[0];
302
- typeof i == "object" && i !== null && "v" in i ? (e = i.v, r = i.w, s = i.name, arguments.length === 2 && (n = arguments[1], a = !0)) : (e = i, r = arguments[1], s = arguments[3], arguments.length > 2 && (n = arguments[2], a = !0)), e = "" + e, r = "" + r, _(s) || (s = "" + s);
303
- var u = p(this._isDirected, e, r, s);
304
- if (Object.prototype.hasOwnProperty.call(this._edgeLabels, u))
305
- return a && (this._edgeLabels[u] = n), this;
306
- if (!_(s) && !this._isMultigraph)
307
- throw new Error("Cannot set a named edge when isMultigraph = false");
308
- this.setNode(e), this.setNode(r), this._edgeLabels[u] = a ? n : this._defaultEdgeLabelFn(e, r, s);
309
- var h = vt(this._isDirected, e, r, s);
310
- return e = h.v, r = h.w, Object.freeze(h), this._edgeObjs[u] = h, x(this._preds[r], e), x(this._sucs[e], r), this._in[r][u] = h, this._out[e][u] = h, this._edgeCount++, this;
311
- }
312
- edge(e, r, s) {
313
- var n = arguments.length === 1 ? A(this._isDirected, arguments[0]) : p(this._isDirected, e, r, s);
314
- return this._edgeLabels[n];
315
- }
316
- hasEdge(e, r, s) {
317
- var n = arguments.length === 1 ? A(this._isDirected, arguments[0]) : p(this._isDirected, e, r, s);
318
- return Object.prototype.hasOwnProperty.call(this._edgeLabels, n);
319
- }
320
- removeEdge(e, r, s) {
321
- var n = arguments.length === 1 ? A(this._isDirected, arguments[0]) : p(this._isDirected, e, r, s), a = this._edgeObjs[n];
322
- return a && (e = a.v, r = a.w, delete this._edgeLabels[n], delete this._edgeObjs[n], B(this._preds[r], e), B(this._sucs[e], r), delete this._in[r][n], delete this._out[e][n], this._edgeCount--), this;
323
- }
324
- inEdges(e, r) {
325
- var s = this._in[e];
326
- if (s) {
327
- var n = E(s);
328
- return r ? m(n, function(a) {
329
- return a.v === r;
330
- }) : n;
331
- }
332
- }
333
- outEdges(e, r) {
334
- var s = this._out[e];
335
- if (s) {
336
- var n = E(s);
337
- return r ? m(n, function(a) {
338
- return a.w === r;
339
- }) : n;
340
- }
341
- }
342
- nodeEdges(e, r) {
343
- var s = this.inEdges(e, r);
344
- if (s)
345
- return s.concat(this.outEdges(e, r));
346
- }
347
- }
348
- X.prototype._nodeCount = 0;
349
- X.prototype._edgeCount = 0;
350
- function x(t, e) {
351
- t[e] ? t[e]++ : t[e] = 1;
352
- }
353
- function B(t, e) {
354
- --t[e] || delete t[e];
355
- }
356
- function p(t, e, r, s) {
357
- var n = "" + e, a = "" + r;
358
- if (!t && n > a) {
359
- var i = n;
360
- n = a, a = i;
361
- }
362
- return n + G + a + G + (_(s) ? $t : s);
363
- }
364
- function vt(t, e, r, s) {
365
- var n = "" + e, a = "" + r;
366
- if (!t && n > a) {
367
- var i = n;
368
- n = a, a = i;
369
- }
370
- var u = { v: n, w: a };
371
- return s && (u.name = s), u;
372
- }
373
- function A(t, e) {
374
- return p(t, e.v, e.w, e.name);
375
- }
376
- export {
377
- X as G,
378
- O as b,
379
- _ as i,
380
- E as v
381
- };