@zettelgeist/cli 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 (189) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +64 -0
  3. package/dist/bin.js +2211 -0
  4. package/dist/bin.js.map +7 -0
  5. package/dist/templates/export.html +27 -0
  6. package/dist/templates/skill/SKILL.md +220 -0
  7. package/dist/viewer-bundle/architecture-YZFGNWBL-W2K3EQOM.js +14 -0
  8. package/dist/viewer-bundle/architecture-YZFGNWBL-W2K3EQOM.js.map +7 -0
  9. package/dist/viewer-bundle/architectureDiagram-Q4EWVU46-LCGRUEWT.js +8884 -0
  10. package/dist/viewer-bundle/architectureDiagram-Q4EWVU46-LCGRUEWT.js.map +7 -0
  11. package/dist/viewer-bundle/base.css +248 -0
  12. package/dist/viewer-bundle/blockDiagram-DXYQGD6D-KAM7BOAP.js +3777 -0
  13. package/dist/viewer-bundle/blockDiagram-DXYQGD6D-KAM7BOAP.js.map +7 -0
  14. package/dist/viewer-bundle/board.css +370 -0
  15. package/dist/viewer-bundle/c4Diagram-AHTNJAMY-C3FIQYXA.js +2596 -0
  16. package/dist/viewer-bundle/c4Diagram-AHTNJAMY-C3FIQYXA.js.map +7 -0
  17. package/dist/viewer-bundle/chunk-2QXGXAO5.js +68 -0
  18. package/dist/viewer-bundle/chunk-2QXGXAO5.js.map +7 -0
  19. package/dist/viewer-bundle/chunk-5PZT7VUU.js +67 -0
  20. package/dist/viewer-bundle/chunk-5PZT7VUU.js.map +7 -0
  21. package/dist/viewer-bundle/chunk-5YJCJF2C.js +112 -0
  22. package/dist/viewer-bundle/chunk-5YJCJF2C.js.map +7 -0
  23. package/dist/viewer-bundle/chunk-6LYV7PBV.js +1011 -0
  24. package/dist/viewer-bundle/chunk-6LYV7PBV.js.map +7 -0
  25. package/dist/viewer-bundle/chunk-6VW7D5WX.js +48 -0
  26. package/dist/viewer-bundle/chunk-6VW7D5WX.js.map +7 -0
  27. package/dist/viewer-bundle/chunk-76C5OSD4.js +2048 -0
  28. package/dist/viewer-bundle/chunk-76C5OSD4.js.map +7 -0
  29. package/dist/viewer-bundle/chunk-7NZMPQDX.js +6957 -0
  30. package/dist/viewer-bundle/chunk-7NZMPQDX.js.map +7 -0
  31. package/dist/viewer-bundle/chunk-A634GTZN.js +122 -0
  32. package/dist/viewer-bundle/chunk-A634GTZN.js.map +7 -0
  33. package/dist/viewer-bundle/chunk-AJQJUKMU.js +133 -0
  34. package/dist/viewer-bundle/chunk-AJQJUKMU.js.map +7 -0
  35. package/dist/viewer-bundle/chunk-BM2KPNFW.js +5556 -0
  36. package/dist/viewer-bundle/chunk-BM2KPNFW.js.map +7 -0
  37. package/dist/viewer-bundle/chunk-CIDUOCCG.js +25 -0
  38. package/dist/viewer-bundle/chunk-CIDUOCCG.js.map +7 -0
  39. package/dist/viewer-bundle/chunk-CZHJHAOR.js +6397 -0
  40. package/dist/viewer-bundle/chunk-CZHJHAOR.js.map +7 -0
  41. package/dist/viewer-bundle/chunk-D5RLIWY4.js +125 -0
  42. package/dist/viewer-bundle/chunk-D5RLIWY4.js.map +7 -0
  43. package/dist/viewer-bundle/chunk-DI52DQAC.js +44 -0
  44. package/dist/viewer-bundle/chunk-DI52DQAC.js.map +7 -0
  45. package/dist/viewer-bundle/chunk-EXJQLTIV.js +51 -0
  46. package/dist/viewer-bundle/chunk-EXJQLTIV.js.map +7 -0
  47. package/dist/viewer-bundle/chunk-G3PPZWPW.js +96 -0
  48. package/dist/viewer-bundle/chunk-G3PPZWPW.js.map +7 -0
  49. package/dist/viewer-bundle/chunk-GTW4IDD4.js +30297 -0
  50. package/dist/viewer-bundle/chunk-GTW4IDD4.js.map +7 -0
  51. package/dist/viewer-bundle/chunk-GVE7OA3Z.js +59 -0
  52. package/dist/viewer-bundle/chunk-GVE7OA3Z.js.map +7 -0
  53. package/dist/viewer-bundle/chunk-JBUVKVPY.js +2042 -0
  54. package/dist/viewer-bundle/chunk-JBUVKVPY.js.map +7 -0
  55. package/dist/viewer-bundle/chunk-JQLVOAQB.js +20 -0
  56. package/dist/viewer-bundle/chunk-JQLVOAQB.js.map +7 -0
  57. package/dist/viewer-bundle/chunk-LQMQSYLO.js +101 -0
  58. package/dist/viewer-bundle/chunk-LQMQSYLO.js.map +7 -0
  59. package/dist/viewer-bundle/chunk-MBFAQ3IK.js +34 -0
  60. package/dist/viewer-bundle/chunk-MBFAQ3IK.js.map +7 -0
  61. package/dist/viewer-bundle/chunk-N7G7IIKG.js +25 -0
  62. package/dist/viewer-bundle/chunk-N7G7IIKG.js.map +7 -0
  63. package/dist/viewer-bundle/chunk-NW4YG3NS.js +171 -0
  64. package/dist/viewer-bundle/chunk-NW4YG3NS.js.map +7 -0
  65. package/dist/viewer-bundle/chunk-ODEP5TKB.js +61 -0
  66. package/dist/viewer-bundle/chunk-ODEP5TKB.js.map +7 -0
  67. package/dist/viewer-bundle/chunk-OGKINV23.js +1050 -0
  68. package/dist/viewer-bundle/chunk-OGKINV23.js.map +7 -0
  69. package/dist/viewer-bundle/chunk-OGMSNDVH.js +1994 -0
  70. package/dist/viewer-bundle/chunk-OGMSNDVH.js.map +7 -0
  71. package/dist/viewer-bundle/chunk-QJVSDNAW.js +25 -0
  72. package/dist/viewer-bundle/chunk-QJVSDNAW.js.map +7 -0
  73. package/dist/viewer-bundle/chunk-RBTT26R4.js +2721 -0
  74. package/dist/viewer-bundle/chunk-RBTT26R4.js.map +7 -0
  75. package/dist/viewer-bundle/chunk-RQIPIIE2.js +48 -0
  76. package/dist/viewer-bundle/chunk-RQIPIIE2.js.map +7 -0
  77. package/dist/viewer-bundle/chunk-SRTYTXTX.js +22 -0
  78. package/dist/viewer-bundle/chunk-SRTYTXTX.js.map +7 -0
  79. package/dist/viewer-bundle/chunk-TRL7YIZG.js +1663 -0
  80. package/dist/viewer-bundle/chunk-TRL7YIZG.js.map +7 -0
  81. package/dist/viewer-bundle/chunk-U5T7X4BV.js +172 -0
  82. package/dist/viewer-bundle/chunk-U5T7X4BV.js.map +7 -0
  83. package/dist/viewer-bundle/chunk-UCAW6C6C.js +48 -0
  84. package/dist/viewer-bundle/chunk-UCAW6C6C.js.map +7 -0
  85. package/dist/viewer-bundle/chunk-UEAG4BJQ.js +93 -0
  86. package/dist/viewer-bundle/chunk-UEAG4BJQ.js.map +7 -0
  87. package/dist/viewer-bundle/chunk-UVRE3R6A.js +1039 -0
  88. package/dist/viewer-bundle/chunk-UVRE3R6A.js.map +7 -0
  89. package/dist/viewer-bundle/chunk-VODO7SV4.js +25029 -0
  90. package/dist/viewer-bundle/chunk-VODO7SV4.js.map +7 -0
  91. package/dist/viewer-bundle/chunk-YEU62MVS.js +682 -0
  92. package/dist/viewer-bundle/chunk-YEU62MVS.js.map +7 -0
  93. package/dist/viewer-bundle/chunk-YFQT7PPW.js +987 -0
  94. package/dist/viewer-bundle/chunk-YFQT7PPW.js.map +7 -0
  95. package/dist/viewer-bundle/chunk-Z4G7FG27.js +48 -0
  96. package/dist/viewer-bundle/chunk-Z4G7FG27.js.map +7 -0
  97. package/dist/viewer-bundle/chunk-ZW4Y7DIF.js +2044 -0
  98. package/dist/viewer-bundle/chunk-ZW4Y7DIF.js.map +7 -0
  99. package/dist/viewer-bundle/classDiagram-6PBFFD2Q-7VKYXLUX.js +46 -0
  100. package/dist/viewer-bundle/classDiagram-6PBFFD2Q-7VKYXLUX.js.map +7 -0
  101. package/dist/viewer-bundle/classDiagram-v2-HSJHXN6E-ACCNN7EN.js +46 -0
  102. package/dist/viewer-bundle/classDiagram-v2-HSJHXN6E-ACCNN7EN.js.map +7 -0
  103. package/dist/viewer-bundle/cose-bilkent-S5V4N54A-MUJHAA34.js +5009 -0
  104. package/dist/viewer-bundle/cose-bilkent-S5V4N54A-MUJHAA34.js.map +7 -0
  105. package/dist/viewer-bundle/dagre-KV5264BT-YC5VV3WF.js +739 -0
  106. package/dist/viewer-bundle/dagre-KV5264BT-YC5VV3WF.js.map +7 -0
  107. package/dist/viewer-bundle/dark.css +13 -0
  108. package/dist/viewer-bundle/detail.css +539 -0
  109. package/dist/viewer-bundle/diagram-5BDNPKRD-RXFPVFYK.js +214 -0
  110. package/dist/viewer-bundle/diagram-5BDNPKRD-RXFPVFYK.js.map +7 -0
  111. package/dist/viewer-bundle/diagram-G4DWMVQ6-KN7CBNBQ.js +578 -0
  112. package/dist/viewer-bundle/diagram-G4DWMVQ6-KN7CBNBQ.js.map +7 -0
  113. package/dist/viewer-bundle/diagram-MMDJMWI5-ZN6TQ7ZC.js +345 -0
  114. package/dist/viewer-bundle/diagram-MMDJMWI5-ZN6TQ7ZC.js.map +7 -0
  115. package/dist/viewer-bundle/diagram-TYMM5635-MMTUJ4KA.js +255 -0
  116. package/dist/viewer-bundle/diagram-TYMM5635-MMTUJ4KA.js.map +7 -0
  117. package/dist/viewer-bundle/docs.css +88 -0
  118. package/dist/viewer-bundle/edit-modal-BEGC2AO6.js +176 -0
  119. package/dist/viewer-bundle/edit-modal-BEGC2AO6.js.map +7 -0
  120. package/dist/viewer-bundle/erDiagram-SMLLAGMA-TBHMLD2E.js +1349 -0
  121. package/dist/viewer-bundle/erDiagram-SMLLAGMA-TBHMLD2E.js.map +7 -0
  122. package/dist/viewer-bundle/flowDiagram-DWJPFMVM-BZHLK6QB.js +2501 -0
  123. package/dist/viewer-bundle/flowDiagram-DWJPFMVM-BZHLK6QB.js.map +7 -0
  124. package/dist/viewer-bundle/ganttDiagram-T4ZO3ILL-YBARPTQR.js +2654 -0
  125. package/dist/viewer-bundle/ganttDiagram-T4ZO3ILL-YBARPTQR.js.map +7 -0
  126. package/dist/viewer-bundle/gitGraph-7Q5UKJZL-HENKIQDX.js +14 -0
  127. package/dist/viewer-bundle/gitGraph-7Q5UKJZL-HENKIQDX.js.map +7 -0
  128. package/dist/viewer-bundle/gitGraphDiagram-UUTBAWPF-M4VV3YVA.js +1946 -0
  129. package/dist/viewer-bundle/gitGraphDiagram-UUTBAWPF-M4VV3YVA.js.map +7 -0
  130. package/dist/viewer-bundle/index.html +28 -0
  131. package/dist/viewer-bundle/info-OMHHGYJF-E773USRS.js +14 -0
  132. package/dist/viewer-bundle/info-OMHHGYJF-E773USRS.js.map +7 -0
  133. package/dist/viewer-bundle/infoDiagram-42DDH7IO-C7JGUXKK.js +59 -0
  134. package/dist/viewer-bundle/infoDiagram-42DDH7IO-C7JGUXKK.js.map +7 -0
  135. package/dist/viewer-bundle/ishikawaDiagram-UXIWVN3A-YBC4X4VB.js +1012 -0
  136. package/dist/viewer-bundle/ishikawaDiagram-UXIWVN3A-YBC4X4VB.js.map +7 -0
  137. package/dist/viewer-bundle/journeyDiagram-VCZTEJTY-6WKVEOOO.js +1303 -0
  138. package/dist/viewer-bundle/journeyDiagram-VCZTEJTY-6WKVEOOO.js.map +7 -0
  139. package/dist/viewer-bundle/kanban-definition-6JOO6SKY-URTTHHO4.js +1131 -0
  140. package/dist/viewer-bundle/kanban-definition-6JOO6SKY-URTTHHO4.js.map +7 -0
  141. package/dist/viewer-bundle/katex-QN5266ZE.js +14318 -0
  142. package/dist/viewer-bundle/katex-QN5266ZE.js.map +7 -0
  143. package/dist/viewer-bundle/light.css +15 -0
  144. package/dist/viewer-bundle/main.js +4816 -0
  145. package/dist/viewer-bundle/main.js.map +7 -0
  146. package/dist/viewer-bundle/mermaid.core-AEBXU2JK.js +1708 -0
  147. package/dist/viewer-bundle/mermaid.core-AEBXU2JK.js.map +7 -0
  148. package/dist/viewer-bundle/mindmap-definition-QFDTVHPH-KUMAMRSF.js +1277 -0
  149. package/dist/viewer-bundle/mindmap-definition-QFDTVHPH-KUMAMRSF.js.map +7 -0
  150. package/dist/viewer-bundle/packet-4T2RLAQJ-IRYWWA66.js +14 -0
  151. package/dist/viewer-bundle/packet-4T2RLAQJ-IRYWWA66.js.map +7 -0
  152. package/dist/viewer-bundle/pico.classless.min.css +4 -0
  153. package/dist/viewer-bundle/pie-ZZUOXDRM-JYO4VL5N.js +14 -0
  154. package/dist/viewer-bundle/pie-ZZUOXDRM-JYO4VL5N.js.map +7 -0
  155. package/dist/viewer-bundle/pieDiagram-DEJITSTG-QOEHQN3N.js +238 -0
  156. package/dist/viewer-bundle/pieDiagram-DEJITSTG-QOEHQN3N.js.map +7 -0
  157. package/dist/viewer-bundle/prompt-modal-C4LHI7BS.js +12 -0
  158. package/dist/viewer-bundle/prompt-modal-C4LHI7BS.js.map +7 -0
  159. package/dist/viewer-bundle/quadrantDiagram-34T5L4WZ-SJNPUU5N.js +1409 -0
  160. package/dist/viewer-bundle/quadrantDiagram-34T5L4WZ-SJNPUU5N.js.map +7 -0
  161. package/dist/viewer-bundle/radar-PYXPWWZC-45BRYQSB.js +14 -0
  162. package/dist/viewer-bundle/radar-PYXPWWZC-45BRYQSB.js.map +7 -0
  163. package/dist/viewer-bundle/reason-modal-MK34MQ73.js +68 -0
  164. package/dist/viewer-bundle/reason-modal-MK34MQ73.js.map +7 -0
  165. package/dist/viewer-bundle/requirementDiagram-MS252O5E-UOMT3FCC.js +1311 -0
  166. package/dist/viewer-bundle/requirementDiagram-MS252O5E-UOMT3FCC.js.map +7 -0
  167. package/dist/viewer-bundle/sankeyDiagram-XADWPNL6-LAVJ5C6A.js +1263 -0
  168. package/dist/viewer-bundle/sankeyDiagram-XADWPNL6-LAVJ5C6A.js.map +7 -0
  169. package/dist/viewer-bundle/sequenceDiagram-FGHM5R23-3IWTOUNQ.js +4655 -0
  170. package/dist/viewer-bundle/sequenceDiagram-FGHM5R23-3IWTOUNQ.js.map +7 -0
  171. package/dist/viewer-bundle/stateDiagram-FHFEXIEX-S2OVQQON.js +495 -0
  172. package/dist/viewer-bundle/stateDiagram-FHFEXIEX-S2OVQQON.js.map +7 -0
  173. package/dist/viewer-bundle/stateDiagram-v2-QKLJ7IA2-XNZ3XXSV.js +44 -0
  174. package/dist/viewer-bundle/stateDiagram-v2-QKLJ7IA2-XNZ3XXSV.js.map +7 -0
  175. package/dist/viewer-bundle/timeline-definition-GMOUNBTQ-FHVZ7MHE.js +1646 -0
  176. package/dist/viewer-bundle/timeline-definition-GMOUNBTQ-FHVZ7MHE.js.map +7 -0
  177. package/dist/viewer-bundle/treeView-SZITEDCU-RXZXNYAM.js +14 -0
  178. package/dist/viewer-bundle/treeView-SZITEDCU-RXZXNYAM.js.map +7 -0
  179. package/dist/viewer-bundle/treemap-W4RFUUIX-2IGOFSJM.js +14 -0
  180. package/dist/viewer-bundle/treemap-W4RFUUIX-2IGOFSJM.js.map +7 -0
  181. package/dist/viewer-bundle/vennDiagram-DHZGUBPP-HEAOEXEZ.js +2544 -0
  182. package/dist/viewer-bundle/vennDiagram-DHZGUBPP-HEAOEXEZ.js.map +7 -0
  183. package/dist/viewer-bundle/wardley-RL74JXVD-VSPCLOX2.js +14 -0
  184. package/dist/viewer-bundle/wardley-RL74JXVD-VSPCLOX2.js.map +7 -0
  185. package/dist/viewer-bundle/wardleyDiagram-NUSXRM2D-EBY4FG3X.js +938 -0
  186. package/dist/viewer-bundle/wardleyDiagram-NUSXRM2D-EBY4FG3X.js.map +7 -0
  187. package/dist/viewer-bundle/xychartDiagram-5P7HB3ND-SSMUQEXK.js +1952 -0
  188. package/dist/viewer-bundle/xychartDiagram-5P7HB3ND-SSMUQEXK.js.map +7 -0
  189. package/package.json +51 -0
@@ -0,0 +1,1663 @@
1
+ import {
2
+ arrayEach_default,
3
+ arrayMap_default,
4
+ arrayPush_default,
5
+ baseExtremum_default,
6
+ baseFindIndex_default,
7
+ baseFlatten_default,
8
+ baseForOwn_default,
9
+ baseGetAllKeys_default,
10
+ baseGet_default,
11
+ baseIteratee_default,
12
+ baseLt_default,
13
+ baseMap_default,
14
+ baseProperty_default,
15
+ baseUniq_default,
16
+ castFunction_default,
17
+ castPath_default,
18
+ filter_default,
19
+ flatten_default,
20
+ forEach_default,
21
+ getAllKeys_default,
22
+ getSymbols_default,
23
+ hasIn_default,
24
+ hasPath_default,
25
+ isSymbol_default,
26
+ keys_default,
27
+ reduce_default,
28
+ stubArray_default,
29
+ toKey_default,
30
+ toString_default
31
+ } from "./chunk-YFQT7PPW.js";
32
+ import {
33
+ baseKeys_default,
34
+ getTag_default,
35
+ isEmpty_default
36
+ } from "./chunk-A634GTZN.js";
37
+ import {
38
+ assignValue_default,
39
+ baseAssignValue_default,
40
+ baseRest_default,
41
+ cloneArrayBuffer_default,
42
+ cloneBuffer_default,
43
+ cloneTypedArray_default,
44
+ constant_default,
45
+ copyArray_default,
46
+ copyObject_default,
47
+ getPrototype_default,
48
+ initCloneObject_default,
49
+ isArrayLikeObject_default,
50
+ isIterateeCall_default,
51
+ keysIn_default,
52
+ overRest_default,
53
+ setToString_default
54
+ } from "./chunk-UVRE3R6A.js";
55
+ import {
56
+ Stack_default,
57
+ Symbol_default,
58
+ baseFor_default,
59
+ baseGetTag_default,
60
+ baseUnary_default,
61
+ eq_default,
62
+ identity_default,
63
+ isArrayLike_default,
64
+ isArray_default,
65
+ isBuffer_default,
66
+ isFunction_default,
67
+ isIndex_default,
68
+ isObjectLike_default,
69
+ isObject_default,
70
+ nodeUtil_default,
71
+ root_default
72
+ } from "./chunk-YEU62MVS.js";
73
+
74
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js
75
+ function baseAssign(object, source) {
76
+ return object && copyObject_default(source, keys_default(source), object);
77
+ }
78
+ var baseAssign_default = baseAssign;
79
+
80
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js
81
+ function baseAssignIn(object, source) {
82
+ return object && copyObject_default(source, keysIn_default(source), object);
83
+ }
84
+ var baseAssignIn_default = baseAssignIn;
85
+
86
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js
87
+ function copySymbols(source, object) {
88
+ return copyObject_default(source, getSymbols_default(source), object);
89
+ }
90
+ var copySymbols_default = copySymbols;
91
+
92
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js
93
+ var nativeGetSymbols = Object.getOwnPropertySymbols;
94
+ var getSymbolsIn = !nativeGetSymbols ? stubArray_default : function(object) {
95
+ var result = [];
96
+ while (object) {
97
+ arrayPush_default(result, getSymbols_default(object));
98
+ object = getPrototype_default(object);
99
+ }
100
+ return result;
101
+ };
102
+ var getSymbolsIn_default = getSymbolsIn;
103
+
104
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js
105
+ function copySymbolsIn(source, object) {
106
+ return copyObject_default(source, getSymbolsIn_default(source), object);
107
+ }
108
+ var copySymbolsIn_default = copySymbolsIn;
109
+
110
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js
111
+ function getAllKeysIn(object) {
112
+ return baseGetAllKeys_default(object, keysIn_default, getSymbolsIn_default);
113
+ }
114
+ var getAllKeysIn_default = getAllKeysIn;
115
+
116
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js
117
+ var objectProto = Object.prototype;
118
+ var hasOwnProperty = objectProto.hasOwnProperty;
119
+ function initCloneArray(array) {
120
+ var length = array.length, result = new array.constructor(length);
121
+ if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) {
122
+ result.index = array.index;
123
+ result.input = array.input;
124
+ }
125
+ return result;
126
+ }
127
+ var initCloneArray_default = initCloneArray;
128
+
129
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js
130
+ function cloneDataView(dataView, isDeep) {
131
+ var buffer = isDeep ? cloneArrayBuffer_default(dataView.buffer) : dataView.buffer;
132
+ return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
133
+ }
134
+ var cloneDataView_default = cloneDataView;
135
+
136
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js
137
+ var reFlags = /\w*$/;
138
+ function cloneRegExp(regexp) {
139
+ var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
140
+ result.lastIndex = regexp.lastIndex;
141
+ return result;
142
+ }
143
+ var cloneRegExp_default = cloneRegExp;
144
+
145
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js
146
+ var symbolProto = Symbol_default ? Symbol_default.prototype : void 0;
147
+ var symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
148
+ function cloneSymbol(symbol) {
149
+ return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
150
+ }
151
+ var cloneSymbol_default = cloneSymbol;
152
+
153
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js
154
+ var boolTag = "[object Boolean]";
155
+ var dateTag = "[object Date]";
156
+ var mapTag = "[object Map]";
157
+ var numberTag = "[object Number]";
158
+ var regexpTag = "[object RegExp]";
159
+ var setTag = "[object Set]";
160
+ var stringTag = "[object String]";
161
+ var symbolTag = "[object Symbol]";
162
+ var arrayBufferTag = "[object ArrayBuffer]";
163
+ var dataViewTag = "[object DataView]";
164
+ var float32Tag = "[object Float32Array]";
165
+ var float64Tag = "[object Float64Array]";
166
+ var int8Tag = "[object Int8Array]";
167
+ var int16Tag = "[object Int16Array]";
168
+ var int32Tag = "[object Int32Array]";
169
+ var uint8Tag = "[object Uint8Array]";
170
+ var uint8ClampedTag = "[object Uint8ClampedArray]";
171
+ var uint16Tag = "[object Uint16Array]";
172
+ var uint32Tag = "[object Uint32Array]";
173
+ function initCloneByTag(object, tag, isDeep) {
174
+ var Ctor = object.constructor;
175
+ switch (tag) {
176
+ case arrayBufferTag:
177
+ return cloneArrayBuffer_default(object);
178
+ case boolTag:
179
+ case dateTag:
180
+ return new Ctor(+object);
181
+ case dataViewTag:
182
+ return cloneDataView_default(object, isDeep);
183
+ case float32Tag:
184
+ case float64Tag:
185
+ case int8Tag:
186
+ case int16Tag:
187
+ case int32Tag:
188
+ case uint8Tag:
189
+ case uint8ClampedTag:
190
+ case uint16Tag:
191
+ case uint32Tag:
192
+ return cloneTypedArray_default(object, isDeep);
193
+ case mapTag:
194
+ return new Ctor();
195
+ case numberTag:
196
+ case stringTag:
197
+ return new Ctor(object);
198
+ case regexpTag:
199
+ return cloneRegExp_default(object);
200
+ case setTag:
201
+ return new Ctor();
202
+ case symbolTag:
203
+ return cloneSymbol_default(object);
204
+ }
205
+ }
206
+ var initCloneByTag_default = initCloneByTag;
207
+
208
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js
209
+ var mapTag2 = "[object Map]";
210
+ function baseIsMap(value) {
211
+ return isObjectLike_default(value) && getTag_default(value) == mapTag2;
212
+ }
213
+ var baseIsMap_default = baseIsMap;
214
+
215
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isMap.js
216
+ var nodeIsMap = nodeUtil_default && nodeUtil_default.isMap;
217
+ var isMap = nodeIsMap ? baseUnary_default(nodeIsMap) : baseIsMap_default;
218
+ var isMap_default = isMap;
219
+
220
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js
221
+ var setTag2 = "[object Set]";
222
+ function baseIsSet(value) {
223
+ return isObjectLike_default(value) && getTag_default(value) == setTag2;
224
+ }
225
+ var baseIsSet_default = baseIsSet;
226
+
227
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSet.js
228
+ var nodeIsSet = nodeUtil_default && nodeUtil_default.isSet;
229
+ var isSet = nodeIsSet ? baseUnary_default(nodeIsSet) : baseIsSet_default;
230
+ var isSet_default = isSet;
231
+
232
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js
233
+ var CLONE_DEEP_FLAG = 1;
234
+ var CLONE_FLAT_FLAG = 2;
235
+ var CLONE_SYMBOLS_FLAG = 4;
236
+ var argsTag = "[object Arguments]";
237
+ var arrayTag = "[object Array]";
238
+ var boolTag2 = "[object Boolean]";
239
+ var dateTag2 = "[object Date]";
240
+ var errorTag = "[object Error]";
241
+ var funcTag = "[object Function]";
242
+ var genTag = "[object GeneratorFunction]";
243
+ var mapTag3 = "[object Map]";
244
+ var numberTag2 = "[object Number]";
245
+ var objectTag = "[object Object]";
246
+ var regexpTag2 = "[object RegExp]";
247
+ var setTag3 = "[object Set]";
248
+ var stringTag2 = "[object String]";
249
+ var symbolTag2 = "[object Symbol]";
250
+ var weakMapTag = "[object WeakMap]";
251
+ var arrayBufferTag2 = "[object ArrayBuffer]";
252
+ var dataViewTag2 = "[object DataView]";
253
+ var float32Tag2 = "[object Float32Array]";
254
+ var float64Tag2 = "[object Float64Array]";
255
+ var int8Tag2 = "[object Int8Array]";
256
+ var int16Tag2 = "[object Int16Array]";
257
+ var int32Tag2 = "[object Int32Array]";
258
+ var uint8Tag2 = "[object Uint8Array]";
259
+ var uint8ClampedTag2 = "[object Uint8ClampedArray]";
260
+ var uint16Tag2 = "[object Uint16Array]";
261
+ var uint32Tag2 = "[object Uint32Array]";
262
+ var cloneableTags = {};
263
+ cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag2] = cloneableTags[dataViewTag2] = cloneableTags[boolTag2] = cloneableTags[dateTag2] = cloneableTags[float32Tag2] = cloneableTags[float64Tag2] = cloneableTags[int8Tag2] = cloneableTags[int16Tag2] = cloneableTags[int32Tag2] = cloneableTags[mapTag3] = cloneableTags[numberTag2] = cloneableTags[objectTag] = cloneableTags[regexpTag2] = cloneableTags[setTag3] = cloneableTags[stringTag2] = cloneableTags[symbolTag2] = cloneableTags[uint8Tag2] = cloneableTags[uint8ClampedTag2] = cloneableTags[uint16Tag2] = cloneableTags[uint32Tag2] = true;
264
+ cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
265
+ function baseClone(value, bitmask, customizer, key, object, stack) {
266
+ var result, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG;
267
+ if (customizer) {
268
+ result = object ? customizer(value, key, object, stack) : customizer(value);
269
+ }
270
+ if (result !== void 0) {
271
+ return result;
272
+ }
273
+ if (!isObject_default(value)) {
274
+ return value;
275
+ }
276
+ var isArr = isArray_default(value);
277
+ if (isArr) {
278
+ result = initCloneArray_default(value);
279
+ if (!isDeep) {
280
+ return copyArray_default(value, result);
281
+ }
282
+ } else {
283
+ var tag = getTag_default(value), isFunc = tag == funcTag || tag == genTag;
284
+ if (isBuffer_default(value)) {
285
+ return cloneBuffer_default(value, isDeep);
286
+ }
287
+ if (tag == objectTag || tag == argsTag || isFunc && !object) {
288
+ result = isFlat || isFunc ? {} : initCloneObject_default(value);
289
+ if (!isDeep) {
290
+ return isFlat ? copySymbolsIn_default(value, baseAssignIn_default(result, value)) : copySymbols_default(value, baseAssign_default(result, value));
291
+ }
292
+ } else {
293
+ if (!cloneableTags[tag]) {
294
+ return object ? value : {};
295
+ }
296
+ result = initCloneByTag_default(value, tag, isDeep);
297
+ }
298
+ }
299
+ stack || (stack = new Stack_default());
300
+ var stacked = stack.get(value);
301
+ if (stacked) {
302
+ return stacked;
303
+ }
304
+ stack.set(value, result);
305
+ if (isSet_default(value)) {
306
+ value.forEach(function(subValue) {
307
+ result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
308
+ });
309
+ } else if (isMap_default(value)) {
310
+ value.forEach(function(subValue, key2) {
311
+ result.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
312
+ });
313
+ }
314
+ var keysFunc = isFull ? isFlat ? getAllKeysIn_default : getAllKeys_default : isFlat ? keysIn_default : keys_default;
315
+ var props = isArr ? void 0 : keysFunc(value);
316
+ arrayEach_default(props || value, function(subValue, key2) {
317
+ if (props) {
318
+ key2 = subValue;
319
+ subValue = value[key2];
320
+ }
321
+ assignValue_default(result, key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
322
+ });
323
+ return result;
324
+ }
325
+ var baseClone_default = baseClone;
326
+
327
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/clone.js
328
+ var CLONE_SYMBOLS_FLAG2 = 4;
329
+ function clone(value) {
330
+ return baseClone_default(value, CLONE_SYMBOLS_FLAG2);
331
+ }
332
+ var clone_default = clone;
333
+
334
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js
335
+ var reWhitespace = /\s/;
336
+ function trimmedEndIndex(string) {
337
+ var index = string.length;
338
+ while (index-- && reWhitespace.test(string.charAt(index))) {
339
+ }
340
+ return index;
341
+ }
342
+ var trimmedEndIndex_default = trimmedEndIndex;
343
+
344
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js
345
+ var reTrimStart = /^\s+/;
346
+ function baseTrim(string) {
347
+ return string ? string.slice(0, trimmedEndIndex_default(string) + 1).replace(reTrimStart, "") : string;
348
+ }
349
+ var baseTrim_default = baseTrim;
350
+
351
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js
352
+ var NAN = 0 / 0;
353
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
354
+ var reIsBinary = /^0b[01]+$/i;
355
+ var reIsOctal = /^0o[0-7]+$/i;
356
+ var freeParseInt = parseInt;
357
+ function toNumber(value) {
358
+ if (typeof value == "number") {
359
+ return value;
360
+ }
361
+ if (isSymbol_default(value)) {
362
+ return NAN;
363
+ }
364
+ if (isObject_default(value)) {
365
+ var other = typeof value.valueOf == "function" ? value.valueOf() : value;
366
+ value = isObject_default(other) ? other + "" : other;
367
+ }
368
+ if (typeof value != "string") {
369
+ return value === 0 ? value : +value;
370
+ }
371
+ value = baseTrim_default(value);
372
+ var isBinary = reIsBinary.test(value);
373
+ return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
374
+ }
375
+ var toNumber_default = toNumber;
376
+
377
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toFinite.js
378
+ var INFINITY = 1 / 0;
379
+ var MAX_INTEGER = 17976931348623157e292;
380
+ function toFinite(value) {
381
+ if (!value) {
382
+ return value === 0 ? value : 0;
383
+ }
384
+ value = toNumber_default(value);
385
+ if (value === INFINITY || value === -INFINITY) {
386
+ var sign = value < 0 ? -1 : 1;
387
+ return sign * MAX_INTEGER;
388
+ }
389
+ return value === value ? value : 0;
390
+ }
391
+ var toFinite_default = toFinite;
392
+
393
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toInteger.js
394
+ function toInteger(value) {
395
+ var result = toFinite_default(value), remainder = result % 1;
396
+ return result === result ? remainder ? result - remainder : result : 0;
397
+ }
398
+ var toInteger_default = toInteger;
399
+
400
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_flatRest.js
401
+ function flatRest(func) {
402
+ return setToString_default(overRest_default(func, void 0, flatten_default), func + "");
403
+ }
404
+ var flatRest_default = flatRest;
405
+
406
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasUnicode.js
407
+ var rsAstralRange = "\\ud800-\\udfff";
408
+ var rsComboMarksRange = "\\u0300-\\u036f";
409
+ var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
410
+ var rsComboSymbolsRange = "\\u20d0-\\u20ff";
411
+ var rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
412
+ var rsVarRange = "\\ufe0e\\ufe0f";
413
+ var rsZWJ = "\\u200d";
414
+ var reHasUnicode = RegExp("[" + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + "]");
415
+ function hasUnicode(string) {
416
+ return reHasUnicode.test(string);
417
+ }
418
+ var hasUnicode_default = hasUnicode;
419
+
420
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js
421
+ var CLONE_DEEP_FLAG2 = 1;
422
+ var CLONE_SYMBOLS_FLAG3 = 4;
423
+ function cloneDeep(value) {
424
+ return baseClone_default(value, CLONE_DEEP_FLAG2 | CLONE_SYMBOLS_FLAG3);
425
+ }
426
+ var cloneDeep_default = cloneDeep;
427
+
428
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/now.js
429
+ var now = function() {
430
+ return root_default.Date.now();
431
+ };
432
+ var now_default = now;
433
+
434
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/defaults.js
435
+ var objectProto2 = Object.prototype;
436
+ var hasOwnProperty2 = objectProto2.hasOwnProperty;
437
+ var defaults = baseRest_default(function(object, sources) {
438
+ object = Object(object);
439
+ var index = -1;
440
+ var length = sources.length;
441
+ var guard = length > 2 ? sources[2] : void 0;
442
+ if (guard && isIterateeCall_default(sources[0], sources[1], guard)) {
443
+ length = 1;
444
+ }
445
+ while (++index < length) {
446
+ var source = sources[index];
447
+ var props = keysIn_default(source);
448
+ var propsIndex = -1;
449
+ var propsLength = props.length;
450
+ while (++propsIndex < propsLength) {
451
+ var key = props[propsIndex];
452
+ var value = object[key];
453
+ if (value === void 0 || eq_default(value, objectProto2[key]) && !hasOwnProperty2.call(object, key)) {
454
+ object[key] = source[key];
455
+ }
456
+ }
457
+ }
458
+ return object;
459
+ });
460
+ var defaults_default = defaults;
461
+
462
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/last.js
463
+ function last(array) {
464
+ var length = array == null ? 0 : array.length;
465
+ return length ? array[length - 1] : void 0;
466
+ }
467
+ var last_default = last;
468
+
469
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createFind.js
470
+ function createFind(findIndexFunc) {
471
+ return function(collection, predicate, fromIndex) {
472
+ var iterable = Object(collection);
473
+ if (!isArrayLike_default(collection)) {
474
+ var iteratee = baseIteratee_default(predicate, 3);
475
+ collection = keys_default(collection);
476
+ predicate = function(key) {
477
+ return iteratee(iterable[key], key, iterable);
478
+ };
479
+ }
480
+ var index = findIndexFunc(collection, predicate, fromIndex);
481
+ return index > -1 ? iterable[iteratee ? collection[index] : index] : void 0;
482
+ };
483
+ }
484
+ var createFind_default = createFind;
485
+
486
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/findIndex.js
487
+ var nativeMax = Math.max;
488
+ function findIndex(array, predicate, fromIndex) {
489
+ var length = array == null ? 0 : array.length;
490
+ if (!length) {
491
+ return -1;
492
+ }
493
+ var index = fromIndex == null ? 0 : toInteger_default(fromIndex);
494
+ if (index < 0) {
495
+ index = nativeMax(length + index, 0);
496
+ }
497
+ return baseFindIndex_default(array, baseIteratee_default(predicate, 3), index);
498
+ }
499
+ var findIndex_default = findIndex;
500
+
501
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/find.js
502
+ var find = createFind_default(findIndex_default);
503
+ var find_default = find;
504
+
505
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/forIn.js
506
+ function forIn(object, iteratee) {
507
+ return object == null ? object : baseFor_default(object, castFunction_default(iteratee), keysIn_default);
508
+ }
509
+ var forIn_default = forIn;
510
+
511
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/forOwn.js
512
+ function forOwn(object, iteratee) {
513
+ return object && baseForOwn_default(object, castFunction_default(iteratee));
514
+ }
515
+ var forOwn_default = forOwn;
516
+
517
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGt.js
518
+ function baseGt(value, other) {
519
+ return value > other;
520
+ }
521
+ var baseGt_default = baseGt;
522
+
523
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseHas.js
524
+ var objectProto3 = Object.prototype;
525
+ var hasOwnProperty3 = objectProto3.hasOwnProperty;
526
+ function baseHas(object, key) {
527
+ return object != null && hasOwnProperty3.call(object, key);
528
+ }
529
+ var baseHas_default = baseHas;
530
+
531
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/has.js
532
+ function has(object, path) {
533
+ return object != null && hasPath_default(object, path, baseHas_default);
534
+ }
535
+ var has_default = has;
536
+
537
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isString.js
538
+ var stringTag3 = "[object String]";
539
+ function isString(value) {
540
+ return typeof value == "string" || !isArray_default(value) && isObjectLike_default(value) && baseGetTag_default(value) == stringTag3;
541
+ }
542
+ var isString_default = isString;
543
+
544
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseValues.js
545
+ function baseValues(object, props) {
546
+ return arrayMap_default(props, function(key) {
547
+ return object[key];
548
+ });
549
+ }
550
+ var baseValues_default = baseValues;
551
+
552
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/values.js
553
+ function values(object) {
554
+ return object == null ? [] : baseValues_default(object, keys_default(object));
555
+ }
556
+ var values_default = values;
557
+
558
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isUndefined.js
559
+ function isUndefined(value) {
560
+ return value === void 0;
561
+ }
562
+ var isUndefined_default = isUndefined;
563
+
564
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/mapValues.js
565
+ function mapValues(object, iteratee) {
566
+ var result = {};
567
+ iteratee = baseIteratee_default(iteratee, 3);
568
+ baseForOwn_default(object, function(value, key, object2) {
569
+ baseAssignValue_default(result, key, iteratee(value, key, object2));
570
+ });
571
+ return result;
572
+ }
573
+ var mapValues_default = mapValues;
574
+
575
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/max.js
576
+ function max(array) {
577
+ return array && array.length ? baseExtremum_default(array, identity_default, baseGt_default) : void 0;
578
+ }
579
+ var max_default = max;
580
+
581
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/minBy.js
582
+ function minBy(array, iteratee) {
583
+ return array && array.length ? baseExtremum_default(array, baseIteratee_default(iteratee, 2), baseLt_default) : void 0;
584
+ }
585
+ var minBy_default = minBy;
586
+
587
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js
588
+ function baseSet(object, path, value, customizer) {
589
+ if (!isObject_default(object)) {
590
+ return object;
591
+ }
592
+ path = castPath_default(path, object);
593
+ var index = -1, length = path.length, lastIndex = length - 1, nested = object;
594
+ while (nested != null && ++index < length) {
595
+ var key = toKey_default(path[index]), newValue = value;
596
+ if (key === "__proto__" || key === "constructor" || key === "prototype") {
597
+ return object;
598
+ }
599
+ if (index != lastIndex) {
600
+ var objValue = nested[key];
601
+ newValue = customizer ? customizer(objValue, key, nested) : void 0;
602
+ if (newValue === void 0) {
603
+ newValue = isObject_default(objValue) ? objValue : isIndex_default(path[index + 1]) ? [] : {};
604
+ }
605
+ }
606
+ assignValue_default(nested, key, newValue);
607
+ nested = nested[key];
608
+ }
609
+ return object;
610
+ }
611
+ var baseSet_default = baseSet;
612
+
613
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_basePickBy.js
614
+ function basePickBy(object, paths, predicate) {
615
+ var index = -1, length = paths.length, result = {};
616
+ while (++index < length) {
617
+ var path = paths[index], value = baseGet_default(object, path);
618
+ if (predicate(value, path)) {
619
+ baseSet_default(result, castPath_default(path, object), value);
620
+ }
621
+ }
622
+ return result;
623
+ }
624
+ var basePickBy_default = basePickBy;
625
+
626
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSortBy.js
627
+ function baseSortBy(array, comparer) {
628
+ var length = array.length;
629
+ array.sort(comparer);
630
+ while (length--) {
631
+ array[length] = array[length].value;
632
+ }
633
+ return array;
634
+ }
635
+ var baseSortBy_default = baseSortBy;
636
+
637
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_compareAscending.js
638
+ function compareAscending(value, other) {
639
+ if (value !== other) {
640
+ var valIsDefined = value !== void 0, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol_default(value);
641
+ var othIsDefined = other !== void 0, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol_default(other);
642
+ if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) {
643
+ return 1;
644
+ }
645
+ if (!valIsNull && !valIsSymbol && !othIsSymbol && value < other || othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol || othIsNull && valIsDefined && valIsReflexive || !othIsDefined && valIsReflexive || !othIsReflexive) {
646
+ return -1;
647
+ }
648
+ }
649
+ return 0;
650
+ }
651
+ var compareAscending_default = compareAscending;
652
+
653
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_compareMultiple.js
654
+ function compareMultiple(object, other, orders) {
655
+ var index = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length;
656
+ while (++index < length) {
657
+ var result = compareAscending_default(objCriteria[index], othCriteria[index]);
658
+ if (result) {
659
+ if (index >= ordersLength) {
660
+ return result;
661
+ }
662
+ var order = orders[index];
663
+ return result * (order == "desc" ? -1 : 1);
664
+ }
665
+ }
666
+ return object.index - other.index;
667
+ }
668
+ var compareMultiple_default = compareMultiple;
669
+
670
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseOrderBy.js
671
+ function baseOrderBy(collection, iteratees, orders) {
672
+ if (iteratees.length) {
673
+ iteratees = arrayMap_default(iteratees, function(iteratee) {
674
+ if (isArray_default(iteratee)) {
675
+ return function(value) {
676
+ return baseGet_default(value, iteratee.length === 1 ? iteratee[0] : iteratee);
677
+ };
678
+ }
679
+ return iteratee;
680
+ });
681
+ } else {
682
+ iteratees = [identity_default];
683
+ }
684
+ var index = -1;
685
+ iteratees = arrayMap_default(iteratees, baseUnary_default(baseIteratee_default));
686
+ var result = baseMap_default(collection, function(value, key, collection2) {
687
+ var criteria = arrayMap_default(iteratees, function(iteratee) {
688
+ return iteratee(value);
689
+ });
690
+ return { "criteria": criteria, "index": ++index, "value": value };
691
+ });
692
+ return baseSortBy_default(result, function(object, other) {
693
+ return compareMultiple_default(object, other, orders);
694
+ });
695
+ }
696
+ var baseOrderBy_default = baseOrderBy;
697
+
698
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_asciiSize.js
699
+ var asciiSize = baseProperty_default("length");
700
+ var asciiSize_default = asciiSize;
701
+
702
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_unicodeSize.js
703
+ var rsAstralRange2 = "\\ud800-\\udfff";
704
+ var rsComboMarksRange2 = "\\u0300-\\u036f";
705
+ var reComboHalfMarksRange2 = "\\ufe20-\\ufe2f";
706
+ var rsComboSymbolsRange2 = "\\u20d0-\\u20ff";
707
+ var rsComboRange2 = rsComboMarksRange2 + reComboHalfMarksRange2 + rsComboSymbolsRange2;
708
+ var rsVarRange2 = "\\ufe0e\\ufe0f";
709
+ var rsAstral = "[" + rsAstralRange2 + "]";
710
+ var rsCombo = "[" + rsComboRange2 + "]";
711
+ var rsFitz = "\\ud83c[\\udffb-\\udfff]";
712
+ var rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")";
713
+ var rsNonAstral = "[^" + rsAstralRange2 + "]";
714
+ var rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}";
715
+ var rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]";
716
+ var rsZWJ2 = "\\u200d";
717
+ var reOptMod = rsModifier + "?";
718
+ var rsOptVar = "[" + rsVarRange2 + "]?";
719
+ var rsOptJoin = "(?:" + rsZWJ2 + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*";
720
+ var rsSeq = rsOptVar + reOptMod + rsOptJoin;
721
+ var rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")";
722
+ var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g");
723
+ function unicodeSize(string) {
724
+ var result = reUnicode.lastIndex = 0;
725
+ while (reUnicode.test(string)) {
726
+ ++result;
727
+ }
728
+ return result;
729
+ }
730
+ var unicodeSize_default = unicodeSize;
731
+
732
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringSize.js
733
+ function stringSize(string) {
734
+ return hasUnicode_default(string) ? unicodeSize_default(string) : asciiSize_default(string);
735
+ }
736
+ var stringSize_default = stringSize;
737
+
738
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_basePick.js
739
+ function basePick(object, paths) {
740
+ return basePickBy_default(object, paths, function(value, path) {
741
+ return hasIn_default(object, path);
742
+ });
743
+ }
744
+ var basePick_default = basePick;
745
+
746
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/pick.js
747
+ var pick = flatRest_default(function(object, paths) {
748
+ return object == null ? {} : basePick_default(object, paths);
749
+ });
750
+ var pick_default = pick;
751
+
752
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseRange.js
753
+ var nativeCeil = Math.ceil;
754
+ var nativeMax2 = Math.max;
755
+ function baseRange(start, end, step, fromRight) {
756
+ var index = -1, length = nativeMax2(nativeCeil((end - start) / (step || 1)), 0), result = Array(length);
757
+ while (length--) {
758
+ result[fromRight ? length : ++index] = start;
759
+ start += step;
760
+ }
761
+ return result;
762
+ }
763
+ var baseRange_default = baseRange;
764
+
765
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createRange.js
766
+ function createRange(fromRight) {
767
+ return function(start, end, step) {
768
+ if (step && typeof step != "number" && isIterateeCall_default(start, end, step)) {
769
+ end = step = void 0;
770
+ }
771
+ start = toFinite_default(start);
772
+ if (end === void 0) {
773
+ end = start;
774
+ start = 0;
775
+ } else {
776
+ end = toFinite_default(end);
777
+ }
778
+ step = step === void 0 ? start < end ? 1 : -1 : toFinite_default(step);
779
+ return baseRange_default(start, end, step, fromRight);
780
+ };
781
+ }
782
+ var createRange_default = createRange;
783
+
784
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/range.js
785
+ var range = createRange_default();
786
+ var range_default = range;
787
+
788
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/size.js
789
+ var mapTag4 = "[object Map]";
790
+ var setTag4 = "[object Set]";
791
+ function size(collection) {
792
+ if (collection == null) {
793
+ return 0;
794
+ }
795
+ if (isArrayLike_default(collection)) {
796
+ return isString_default(collection) ? stringSize_default(collection) : collection.length;
797
+ }
798
+ var tag = getTag_default(collection);
799
+ if (tag == mapTag4 || tag == setTag4) {
800
+ return collection.size;
801
+ }
802
+ return baseKeys_default(collection).length;
803
+ }
804
+ var size_default = size;
805
+
806
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/sortBy.js
807
+ var sortBy = baseRest_default(function(collection, iteratees) {
808
+ if (collection == null) {
809
+ return [];
810
+ }
811
+ var length = iteratees.length;
812
+ if (length > 1 && isIterateeCall_default(collection, iteratees[0], iteratees[1])) {
813
+ iteratees = [];
814
+ } else if (length > 2 && isIterateeCall_default(iteratees[0], iteratees[1], iteratees[2])) {
815
+ iteratees = [iteratees[0]];
816
+ }
817
+ return baseOrderBy_default(collection, baseFlatten_default(iteratees, 1), []);
818
+ });
819
+ var sortBy_default = sortBy;
820
+
821
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/union.js
822
+ var union = baseRest_default(function(arrays) {
823
+ return baseUniq_default(baseFlatten_default(arrays, 1, isArrayLikeObject_default, true));
824
+ });
825
+ var union_default = union;
826
+
827
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/uniqueId.js
828
+ var idCounter = 0;
829
+ function uniqueId(prefix) {
830
+ var id = ++idCounter;
831
+ return toString_default(prefix) + id;
832
+ }
833
+ var uniqueId_default = uniqueId;
834
+
835
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseZipObject.js
836
+ function baseZipObject(props, values2, assignFunc) {
837
+ var index = -1, length = props.length, valsLength = values2.length, result = {};
838
+ while (++index < length) {
839
+ var value = index < valsLength ? values2[index] : void 0;
840
+ assignFunc(result, props[index], value);
841
+ }
842
+ return result;
843
+ }
844
+ var baseZipObject_default = baseZipObject;
845
+
846
+ // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/zipObject.js
847
+ function zipObject(props, values2) {
848
+ return baseZipObject_default(props || [], values2 || [], assignValue_default);
849
+ }
850
+ var zipObject_default = zipObject;
851
+
852
+ // ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/graphlib/graph.js
853
+ var DEFAULT_EDGE_NAME = "\0";
854
+ var GRAPH_NODE = "\0";
855
+ var EDGE_KEY_DELIM = "";
856
+ var Graph = class {
857
+ /**
858
+ * @param {GraphOptions} [opts] - Graph options.
859
+ */
860
+ constructor(opts = {}) {
861
+ this._isDirected = Object.prototype.hasOwnProperty.call(opts, "directed") ? opts.directed : true;
862
+ this._isMultigraph = Object.prototype.hasOwnProperty.call(opts, "multigraph") ? opts.multigraph : false;
863
+ this._isCompound = Object.prototype.hasOwnProperty.call(opts, "compound") ? opts.compound : false;
864
+ this._label = void 0;
865
+ this._defaultNodeLabelFn = constant_default(void 0);
866
+ this._defaultEdgeLabelFn = constant_default(void 0);
867
+ this._nodes = {};
868
+ if (this._isCompound) {
869
+ this._parent = {};
870
+ this._children = {};
871
+ this._children[GRAPH_NODE] = {};
872
+ }
873
+ this._in = {};
874
+ this._preds = {};
875
+ this._out = {};
876
+ this._sucs = {};
877
+ this._edgeObjs = {};
878
+ this._edgeLabels = {};
879
+ }
880
+ /* === Graph functions ========= */
881
+ /**
882
+ *
883
+ * @returns {boolean} `true` if the graph is [directed](https://en.wikipedia.org/wiki/Directed_graph).
884
+ * A directed graph treats the order of nodes in an edge as significant whereas an
885
+ * [undirected](https://en.wikipedia.org/wiki/Graph_(mathematics)#Undirected_graph)
886
+ * graph does not.
887
+ * This example demonstrates the difference:
888
+ *
889
+ * @example
890
+ *
891
+ * ```js
892
+ * var directed = new Graph({ directed: true });
893
+ * directed.setEdge("a", "b", "my-label");
894
+ * directed.edge("a", "b"); // returns "my-label"
895
+ * directed.edge("b", "a"); // returns undefined
896
+ *
897
+ * var undirected = new Graph({ directed: false });
898
+ * undirected.setEdge("a", "b", "my-label");
899
+ * undirected.edge("a", "b"); // returns "my-label"
900
+ * undirected.edge("b", "a"); // returns "my-label"
901
+ * ```
902
+ */
903
+ isDirected() {
904
+ return this._isDirected;
905
+ }
906
+ /**
907
+ * @returns {boolean} `true` if the graph is a multigraph.
908
+ */
909
+ isMultigraph() {
910
+ return this._isMultigraph;
911
+ }
912
+ /**
913
+ * @returns {boolean} `true` if the graph is compound.
914
+ */
915
+ isCompound() {
916
+ return this._isCompound;
917
+ }
918
+ /**
919
+ * Sets the label for the graph to `label`.
920
+ *
921
+ * @param {GraphLabel} label - Label for the graph.
922
+ * @returns {this}
923
+ */
924
+ setGraph(label) {
925
+ this._label = label;
926
+ return this;
927
+ }
928
+ /**
929
+ * @returns {GraphLabel | undefined} the currently assigned label for the graph.
930
+ * If no label has been assigned, returns `undefined`.
931
+ *
932
+ * @example
933
+ *
934
+ * ```js
935
+ * var g = new Graph();
936
+ * g.graph(); // returns undefined
937
+ * g.setGraph("graph-label");
938
+ * g.graph(); // returns "graph-label"
939
+ * ```
940
+ */
941
+ graph() {
942
+ return this._label;
943
+ }
944
+ /* === Node functions ========== */
945
+ /**
946
+ * Sets a new default value that is assigned to nodes that are created without
947
+ * a label.
948
+ *
949
+ * @param {typeof this._defaultNodeLabelFn | NodeLabel} newDefault - If a function,
950
+ * it is called with the id of the node being created.
951
+ * Otherwise, it is assigned as the label directly.
952
+ * @returns {this}
953
+ */
954
+ setDefaultNodeLabel(newDefault) {
955
+ if (!isFunction_default(newDefault)) {
956
+ newDefault = constant_default(newDefault);
957
+ }
958
+ this._defaultNodeLabelFn = newDefault;
959
+ return this;
960
+ }
961
+ /**
962
+ * @returns {number} the number of nodes in the graph.
963
+ */
964
+ nodeCount() {
965
+ return this._nodeCount;
966
+ }
967
+ /**
968
+ * @returns {NodeID[]} the ids of the nodes in the graph.
969
+ *
970
+ * @remarks
971
+ * Use {@link node()} to get the label for each node.
972
+ * Takes `O(|V|)` time.
973
+ */
974
+ nodes() {
975
+ return keys_default(this._nodes);
976
+ }
977
+ /**
978
+ * @returns {NodeID[]} those nodes in the graph that have no in-edges.
979
+ * @remarks Takes `O(|V|)` time.
980
+ */
981
+ sources() {
982
+ var self = this;
983
+ return filter_default(this.nodes(), function(v) {
984
+ return isEmpty_default(self._in[v]);
985
+ });
986
+ }
987
+ /**
988
+ * @returns {NodeID[]} those nodes in the graph that have no out-edges.
989
+ * @remarks Takes `O(|V|)` time.
990
+ */
991
+ sinks() {
992
+ var self = this;
993
+ return filter_default(this.nodes(), function(v) {
994
+ return isEmpty_default(self._out[v]);
995
+ });
996
+ }
997
+ /**
998
+ * Invokes setNode method for each node in `vs` list.
999
+ *
1000
+ * @param {Collection<NodeID | number>} vs - List of node IDs to create/set.
1001
+ * @param {NodeLabel} [value] - If set, update all nodes with this value.
1002
+ * @returns {this}
1003
+ * @remarks Complexity: O(|names|).
1004
+ */
1005
+ setNodes(vs, value) {
1006
+ var args = arguments;
1007
+ var self = this;
1008
+ forEach_default(vs, function(v) {
1009
+ if (args.length > 1) {
1010
+ self.setNode(v, value);
1011
+ } else {
1012
+ self.setNode(v);
1013
+ }
1014
+ });
1015
+ return this;
1016
+ }
1017
+ /**
1018
+ * Creates or updates the value for the node `v` in the graph.
1019
+ *
1020
+ * @param {NodeID | number} v - ID of the node to create/set.
1021
+ * @param {NodeLabel} [value] - If supplied, it is set as the value for the node.
1022
+ * If not supplied and the node was created by this call then
1023
+ * {@link setDefaultNodeLabel} will be used to set the node's value.
1024
+ * @returns {this} the graph, allowing this to be chained with other functions.
1025
+ * @remarks Takes `O(1)` time.
1026
+ */
1027
+ setNode(v, value) {
1028
+ if (Object.prototype.hasOwnProperty.call(this._nodes, v)) {
1029
+ if (arguments.length > 1) {
1030
+ this._nodes[v] = value;
1031
+ }
1032
+ return this;
1033
+ }
1034
+ this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v);
1035
+ if (this._isCompound) {
1036
+ this._parent[v] = GRAPH_NODE;
1037
+ this._children[v] = {};
1038
+ this._children[GRAPH_NODE][v] = true;
1039
+ }
1040
+ this._in[v] = {};
1041
+ this._preds[v] = {};
1042
+ this._out[v] = {};
1043
+ this._sucs[v] = {};
1044
+ ++this._nodeCount;
1045
+ return this;
1046
+ }
1047
+ /**
1048
+ * Gets the label of node with specified name.
1049
+ *
1050
+ * @param {NodeID | number} v - Node ID.
1051
+ * @returns {NodeLabel | undefined} the label assigned to the node with the id `v`
1052
+ * if it is in the graph.
1053
+ * Otherwise returns `undefined`.
1054
+ * @remarks Takes `O(1)` time.
1055
+ */
1056
+ node(v) {
1057
+ return this._nodes[v];
1058
+ }
1059
+ /**
1060
+ * Detects whether graph has a node with specified name or not.
1061
+ *
1062
+ * @param {NodeID | number} v - Node ID.
1063
+ * @returns {boolean} Returns `true` the graph has a node with the id.
1064
+ * @remarks Takes `O(1)` time.
1065
+ */
1066
+ hasNode(v) {
1067
+ return Object.prototype.hasOwnProperty.call(this._nodes, v);
1068
+ }
1069
+ /**
1070
+ * Remove the node with the id `v` in the graph or do nothing if the node is
1071
+ * not in the graph.
1072
+ *
1073
+ * If the node was removed this function also removes any incident edges.
1074
+ *
1075
+ * @param {NodeID | number} v - Node ID to remove.
1076
+ * @returns {this} the graph, allowing this to be chained with other functions.
1077
+ * @remarks Takes `O(|E|)` time.
1078
+ */
1079
+ removeNode(v) {
1080
+ if (Object.prototype.hasOwnProperty.call(this._nodes, v)) {
1081
+ var removeEdge = (e) => this.removeEdge(this._edgeObjs[e]);
1082
+ delete this._nodes[v];
1083
+ if (this._isCompound) {
1084
+ this._removeFromParentsChildList(v);
1085
+ delete this._parent[v];
1086
+ forEach_default(this.children(v), (child) => {
1087
+ this.setParent(child);
1088
+ });
1089
+ delete this._children[v];
1090
+ }
1091
+ forEach_default(keys_default(this._in[v]), removeEdge);
1092
+ delete this._in[v];
1093
+ delete this._preds[v];
1094
+ forEach_default(keys_default(this._out[v]), removeEdge);
1095
+ delete this._out[v];
1096
+ delete this._sucs[v];
1097
+ --this._nodeCount;
1098
+ }
1099
+ return this;
1100
+ }
1101
+ /**
1102
+ * Sets the parent for `v` to `parent` if it is defined or removes the parent
1103
+ * for `v` if `parent` is undefined.
1104
+ *
1105
+ * @param {NodeID | number} v - Node ID to set the parent for.
1106
+ * @param {NodeID | number} [parent] - Parent node ID. If not defined, removes the parent.
1107
+ * @returns {this} the graph, allowing this to be chained with other functions.
1108
+ * @throws if the graph is not compound.
1109
+ * @throws if setting the parent would create a cycle.
1110
+ * @remarks Takes `O(1)` time.
1111
+ */
1112
+ setParent(v, parent) {
1113
+ if (!this._isCompound) {
1114
+ throw new Error("Cannot set parent in a non-compound graph");
1115
+ }
1116
+ if (isUndefined_default(parent)) {
1117
+ parent = GRAPH_NODE;
1118
+ } else {
1119
+ parent += "";
1120
+ for (var ancestor = parent; !isUndefined_default(ancestor); ancestor = this.parent(ancestor)) {
1121
+ if (ancestor === v) {
1122
+ throw new Error("Setting " + parent + " as parent of " + v + " would create a cycle");
1123
+ }
1124
+ }
1125
+ this.setNode(parent);
1126
+ }
1127
+ this.setNode(v);
1128
+ this._removeFromParentsChildList(v);
1129
+ this._parent[v] = parent;
1130
+ this._children[parent][v] = true;
1131
+ return this;
1132
+ }
1133
+ /**
1134
+ * @private
1135
+ * @param {NodeID | number} v - Node ID.
1136
+ */
1137
+ _removeFromParentsChildList(v) {
1138
+ delete this._children[this._parent[v]][v];
1139
+ }
1140
+ /**
1141
+ * Get parent node for node `v`.
1142
+ *
1143
+ * @param {NodeID | number} v - Node ID.
1144
+ * @returns {NodeID | undefined} the node that is a parent of node `v`
1145
+ * or `undefined` if node `v` does not have a parent or is not a member of
1146
+ * the graph.
1147
+ * Always returns `undefined` for graphs that are not compound.
1148
+ * @remarks Takes `O(1)` time.
1149
+ */
1150
+ parent(v) {
1151
+ if (this._isCompound) {
1152
+ var parent = this._parent[v];
1153
+ if (parent !== GRAPH_NODE) {
1154
+ return parent;
1155
+ }
1156
+ }
1157
+ }
1158
+ /**
1159
+ * Gets list of direct children of node v.
1160
+ *
1161
+ * @param {NodeID | number} [v] - Node ID. If not specified, gets nodes
1162
+ * with no parent (top-level nodes).
1163
+ * @returns {NodeID[] | undefined} all nodes that are children of node `v` or
1164
+ * `undefined` if node `v` is not in the graph.
1165
+ * Always returns `[]` for graphs that are not compound.
1166
+ * @remarks Takes `O(|V|)` time.
1167
+ */
1168
+ children(v) {
1169
+ if (isUndefined_default(v)) {
1170
+ v = GRAPH_NODE;
1171
+ }
1172
+ if (this._isCompound) {
1173
+ var children = this._children[v];
1174
+ if (children) {
1175
+ return keys_default(children);
1176
+ }
1177
+ } else if (v === GRAPH_NODE) {
1178
+ return this.nodes();
1179
+ } else if (this.hasNode(v)) {
1180
+ return [];
1181
+ }
1182
+ }
1183
+ /**
1184
+ * @param {NodeID | number} v - Node ID.
1185
+ * @returns {NodeID[] | undefined} all nodes that are predecessors of the
1186
+ * specified node or `undefined` if node `v` is not in the graph.
1187
+ * @remarks
1188
+ * Behavior is undefined for undirected graphs - use {@link neighbors} instead.
1189
+ * Takes `O(|V|)` time.
1190
+ */
1191
+ predecessors(v) {
1192
+ var predsV = this._preds[v];
1193
+ if (predsV) {
1194
+ return keys_default(predsV);
1195
+ }
1196
+ }
1197
+ /**
1198
+ * @param {NodeID | number} v - Node ID.
1199
+ * @returns {NodeID[] | undefined} all nodes that are successors of the
1200
+ * specified node or `undefined` if node `v` is not in the graph.
1201
+ * @remarks
1202
+ * Behavior is undefined for undirected graphs - use {@link neighbors} instead.
1203
+ * Takes `O(|V|)` time.
1204
+ */
1205
+ successors(v) {
1206
+ var sucsV = this._sucs[v];
1207
+ if (sucsV) {
1208
+ return keys_default(sucsV);
1209
+ }
1210
+ }
1211
+ /**
1212
+ * @param {NodeID | number} v - Node ID.
1213
+ * @returns {NodeID[] | undefined} all nodes that are predecessors or
1214
+ * successors of the specified node
1215
+ * or `undefined` if node `v` is not in the graph.
1216
+ * @remarks Takes `O(|V|)` time.
1217
+ */
1218
+ neighbors(v) {
1219
+ var preds = this.predecessors(v);
1220
+ if (preds) {
1221
+ return union_default(preds, this.successors(v));
1222
+ }
1223
+ }
1224
+ /**
1225
+ * @param {NodeID | number} v - Node ID.
1226
+ * @returns {boolean} True if the node is a leaf (has no successors), false otherwise.
1227
+ */
1228
+ isLeaf(v) {
1229
+ var neighbors;
1230
+ if (this.isDirected()) {
1231
+ neighbors = this.successors(v);
1232
+ } else {
1233
+ neighbors = this.neighbors(v);
1234
+ }
1235
+ return neighbors.length === 0;
1236
+ }
1237
+ /**
1238
+ * Creates new graph with nodes filtered via `filter`.
1239
+ * Edges incident to rejected node
1240
+ * are also removed.
1241
+ *
1242
+ * In case of compound graph, if parent is rejected by `filter`,
1243
+ * than all its children are rejected too.
1244
+
1245
+ * @param {(v: NodeID) => boolean} filter - Function that returns `true` for nodes to keep.
1246
+ * @returns {Graph<GraphLabel, NodeLabel, EdgeLabel>} A new graph containing only the nodes for which `filter` returns `true`.
1247
+ * @remarks Average-case complexity: O(|E|+|V|).
1248
+ */
1249
+ filterNodes(filter) {
1250
+ var copy = new this.constructor({
1251
+ directed: this._isDirected,
1252
+ multigraph: this._isMultigraph,
1253
+ compound: this._isCompound
1254
+ });
1255
+ copy.setGraph(this.graph());
1256
+ var self = this;
1257
+ forEach_default(this._nodes, function(value, v) {
1258
+ if (filter(v)) {
1259
+ copy.setNode(v, value);
1260
+ }
1261
+ });
1262
+ forEach_default(this._edgeObjs, function(e) {
1263
+ if (copy.hasNode(e.v) && copy.hasNode(e.w)) {
1264
+ copy.setEdge(e, self.edge(e));
1265
+ }
1266
+ });
1267
+ var parents = {};
1268
+ function findParent(v) {
1269
+ var parent = self.parent(v);
1270
+ if (parent === void 0 || copy.hasNode(parent)) {
1271
+ parents[v] = parent;
1272
+ return parent;
1273
+ } else if (parent in parents) {
1274
+ return parents[parent];
1275
+ } else {
1276
+ return findParent(parent);
1277
+ }
1278
+ }
1279
+ if (this._isCompound) {
1280
+ forEach_default(copy.nodes(), function(v) {
1281
+ copy.setParent(v, findParent(v));
1282
+ });
1283
+ }
1284
+ return copy;
1285
+ }
1286
+ /* === Edge functions ========== */
1287
+ /**
1288
+ * Sets a new default value that is assigned to edges that are created without
1289
+ * a label.
1290
+ *
1291
+ * @param {typeof this._defaultEdgeLabelFn | EdgeLabel} newDefault - If a function,
1292
+ * it is called with the parameters `(v, w, name)`.
1293
+ * Otherwise, it is assigned as the label directly.
1294
+ * @returns {this}
1295
+ */
1296
+ setDefaultEdgeLabel(newDefault) {
1297
+ if (!isFunction_default(newDefault)) {
1298
+ newDefault = constant_default(newDefault);
1299
+ }
1300
+ this._defaultEdgeLabelFn = newDefault;
1301
+ return this;
1302
+ }
1303
+ /**
1304
+ * @returns {number} the number of edges in the graph.
1305
+ * @remarks Complexity: O(1).
1306
+ */
1307
+ edgeCount() {
1308
+ return this._edgeCount;
1309
+ }
1310
+ /**
1311
+ * Gets edges of the graph.
1312
+ *
1313
+ * @returns {EdgeObj[]} the {@link EdgeObj} for each edge in the graph.
1314
+ *
1315
+ * @remarks
1316
+ * In case of compound graph subgraphs are not considered.
1317
+ * Use {@link edge()} to get the label for each edge.
1318
+ * Takes `O(|E|)` time.
1319
+ */
1320
+ edges() {
1321
+ return values_default(this._edgeObjs);
1322
+ }
1323
+ /**
1324
+ * Establish an edges path over the nodes in nodes list.
1325
+ *
1326
+ * If some edge is already exists, it will update its label, otherwise it will
1327
+ * create an edge between pair of nodes with label provided or default label
1328
+ * if no label provided.
1329
+ *
1330
+ * @param {Collection<NodeID>} vs - List of node IDs to create edges between.
1331
+ * @param {EdgeLabel} [value] - If set, update all edges with this value.
1332
+ * @returns {this}
1333
+ * @remarks Complexity: O(|nodes|).
1334
+ */
1335
+ setPath(vs, value) {
1336
+ var self = this;
1337
+ var args = arguments;
1338
+ reduce_default(vs, function(v, w) {
1339
+ if (args.length > 1) {
1340
+ self.setEdge(v, w, value);
1341
+ } else {
1342
+ self.setEdge(v, w);
1343
+ }
1344
+ return w;
1345
+ });
1346
+ return this;
1347
+ }
1348
+ /**
1349
+ * Creates or updates the label for the edge (`v`, `w`) with the optionally
1350
+ * supplied `name`.
1351
+ *
1352
+ * @overload
1353
+ * @param {EdgeObj} arg0 - Edge object.
1354
+ * @param {EdgeLabel} [value] - If supplied, it is set as the label for the edge.
1355
+ * If not supplied and the edge was created by this call then
1356
+ * {@link setDefaultEdgeLabel} will be used to assign the edge's label.
1357
+ * @returns {this} the graph, allowing this to be chained with other functions.
1358
+ * @remarks Takes `O(1)` time.
1359
+ */
1360
+ /**
1361
+ * Creates or updates the label for the edge (`v`, `w`) with the optionally
1362
+ * supplied `name`.
1363
+ *
1364
+ * @overload
1365
+ * @param {NodeID | number} v - Source node ID. Number values will be coerced to strings.
1366
+ * @param {NodeID | number} w - Target node ID. Number values will be coerced to strings.
1367
+ * @param {EdgeLabel} [value] - If supplied, it is set as the label for the edge.
1368
+ * If not supplied and the edge was created by this call then
1369
+ * {@link setDefaultEdgeLabel} will be used to assign the edge's label.
1370
+ * @param {string | number} [name] - Edge name. Only useful with multigraphs.
1371
+ * @returns {this} the graph, allowing this to be chained with other functions.
1372
+ * @remarks Takes `O(1)` time.
1373
+ */
1374
+ setEdge() {
1375
+ var v, w, name, value;
1376
+ var valueSpecified = false;
1377
+ var arg0 = arguments[0];
1378
+ if (typeof arg0 === "object" && arg0 !== null && "v" in arg0) {
1379
+ v = arg0.v;
1380
+ w = arg0.w;
1381
+ name = arg0.name;
1382
+ if (arguments.length === 2) {
1383
+ value = arguments[1];
1384
+ valueSpecified = true;
1385
+ }
1386
+ } else {
1387
+ v = arg0;
1388
+ w = arguments[1];
1389
+ name = arguments[3];
1390
+ if (arguments.length > 2) {
1391
+ value = arguments[2];
1392
+ valueSpecified = true;
1393
+ }
1394
+ }
1395
+ v = "" + v;
1396
+ w = "" + w;
1397
+ if (!isUndefined_default(name)) {
1398
+ name = "" + name;
1399
+ }
1400
+ var e = edgeArgsToId(this._isDirected, v, w, name);
1401
+ if (Object.prototype.hasOwnProperty.call(this._edgeLabels, e)) {
1402
+ if (valueSpecified) {
1403
+ this._edgeLabels[e] = value;
1404
+ }
1405
+ return this;
1406
+ }
1407
+ if (!isUndefined_default(name) && !this._isMultigraph) {
1408
+ throw new Error("Cannot set a named edge when isMultigraph = false");
1409
+ }
1410
+ this.setNode(v);
1411
+ this.setNode(w);
1412
+ this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name);
1413
+ var edgeObj = edgeArgsToObj(this._isDirected, v, w, name);
1414
+ v = edgeObj.v;
1415
+ w = edgeObj.w;
1416
+ Object.freeze(edgeObj);
1417
+ this._edgeObjs[e] = edgeObj;
1418
+ incrementOrInitEntry(this._preds[w], v);
1419
+ incrementOrInitEntry(this._sucs[v], w);
1420
+ this._in[w][e] = edgeObj;
1421
+ this._out[v][e] = edgeObj;
1422
+ this._edgeCount++;
1423
+ return this;
1424
+ }
1425
+ /**
1426
+ * Gets the label for the specified edge.
1427
+ *
1428
+ * @overload
1429
+ * @param {EdgeObj} v - Edge object.
1430
+ * @returns {EdgeLabel | undefined} the label for the edge (`v`, `w`) if the
1431
+ * graph has an edge between `v` and `w` with the optional `name`.
1432
+ * Returned `undefined` if there is no such edge in the graph.
1433
+ * @remarks
1434
+ * `v` and `w` can be interchanged for undirected graphs.
1435
+ * Takes `O(1)` time.
1436
+ */
1437
+ /**
1438
+ * Gets the label for the specified edge.
1439
+ *
1440
+ * @overload
1441
+ * @param {NodeID | number} v - Source node ID.
1442
+ * @param {NodeID | number} w - Target node ID.
1443
+ * @param {string | number} [name] - Edge name. Only useful with multigraphs.
1444
+ * @returns {EdgeLabel | undefined} the label for the edge (`v`, `w`) if the
1445
+ * graph has an edge between `v` and `w` with the optional `name`.
1446
+ * Returned `undefined` if there is no such edge in the graph.
1447
+ * @remarks
1448
+ * `v` and `w` can be interchanged for undirected graphs.
1449
+ * Takes `O(1)` time.
1450
+ */
1451
+ edge(v, w, name) {
1452
+ var e = arguments.length === 1 ? edgeObjToId(this._isDirected, arguments[0]) : edgeArgsToId(this._isDirected, v, w, name);
1453
+ return this._edgeLabels[e];
1454
+ }
1455
+ /**
1456
+ * Detects whether the graph contains specified edge or not.
1457
+ *
1458
+ * @overload
1459
+ * @param {EdgeObj} v - Edge object.
1460
+ * @returns {boolean} `true` if the graph has an edge between `v` and `w`
1461
+ * with the optional `name`.
1462
+ * @remarks
1463
+ * `v` and `w` can be interchanged for undirected graphs.
1464
+ * No subgraphs are considered.
1465
+ * Takes `O(1)` time.
1466
+ */
1467
+ /**
1468
+ * Detects whether the graph contains specified edge or not.
1469
+ *
1470
+ * @overload
1471
+ * @param {NodeID | number} v - Source node ID.
1472
+ * @param {NodeID | number} w - Target node ID.
1473
+ * @param {string | number} [name] - Edge name. Only useful with multigraphs.
1474
+ * @returns {boolean} `true` if the graph has an edge between `v` and `w`
1475
+ * with the optional `name`.
1476
+ * @remarks
1477
+ * `v` and `w` can be interchanged for undirected graphs.
1478
+ * No subgraphs are considered.
1479
+ * Takes `O(1)` time.
1480
+ */
1481
+ hasEdge(v, w, name) {
1482
+ var e = arguments.length === 1 ? edgeObjToId(this._isDirected, arguments[0]) : edgeArgsToId(this._isDirected, v, w, name);
1483
+ return Object.prototype.hasOwnProperty.call(this._edgeLabels, e);
1484
+ }
1485
+ /**
1486
+ * Removes the edge (`v`, `w`) if the graph has an edge between `v` and `w`
1487
+ * with the optional `name`. If not this function does nothing.
1488
+ *
1489
+ * @overload
1490
+ * @param {EdgeObj} v - Edge object.
1491
+ * @returns {this}
1492
+ * @remarks
1493
+ * `v` and `w` can be interchanged for undirected graphs.
1494
+ * No subgraphs are considered.
1495
+ * Takes `O(1)` time.
1496
+ */
1497
+ /**
1498
+ * Removes the edge (`v`, `w`) if the graph has an edge between `v` and `w`
1499
+ * with the optional `name`. If not this function does nothing.
1500
+ *
1501
+ * @overload
1502
+ * @param {NodeID | number} v - Source node ID.
1503
+ * @param {NodeID | number} w - Target node ID.
1504
+ * @param {string | number} [name] - Edge name. Only useful with multigraphs.
1505
+ * @returns {this}
1506
+ * @remarks
1507
+ * `v` and `w` can be interchanged for undirected graphs.
1508
+ * Takes `O(1)` time.
1509
+ */
1510
+ removeEdge(v, w, name) {
1511
+ var e = arguments.length === 1 ? edgeObjToId(this._isDirected, arguments[0]) : edgeArgsToId(this._isDirected, v, w, name);
1512
+ var edge = this._edgeObjs[e];
1513
+ if (edge) {
1514
+ v = edge.v;
1515
+ w = edge.w;
1516
+ delete this._edgeLabels[e];
1517
+ delete this._edgeObjs[e];
1518
+ decrementOrRemoveEntry(this._preds[w], v);
1519
+ decrementOrRemoveEntry(this._sucs[v], w);
1520
+ delete this._in[w][e];
1521
+ delete this._out[v][e];
1522
+ this._edgeCount--;
1523
+ }
1524
+ return this;
1525
+ }
1526
+ /**
1527
+ * @param {NodeID | number} v - Target node ID.
1528
+ * @param {NodeID | number} [u] - Optionally filters edges down to just those
1529
+ * coming from node `u`.
1530
+ * @returns {EdgeObj[] | undefined} all edges that point to the node `v`.
1531
+ * Returns `undefined` if node `v` is not in the graph.
1532
+ * @remarks
1533
+ * Behavior is undefined for undirected graphs - use {@link nodeEdges} instead.
1534
+ * Takes `O(|E|)` time.
1535
+ */
1536
+ inEdges(v, u) {
1537
+ var inV = this._in[v];
1538
+ if (inV) {
1539
+ var edges = values_default(inV);
1540
+ if (!u) {
1541
+ return edges;
1542
+ }
1543
+ return filter_default(edges, function(edge) {
1544
+ return edge.v === u;
1545
+ });
1546
+ }
1547
+ }
1548
+ /**
1549
+ * @param {NodeID | number} v - Target node ID.
1550
+ * @param {NodeID | number} [w] - Optionally filters edges down to just those
1551
+ * that point to `w`.
1552
+ * @returns {EdgeObj[] | undefined} all edges that point to the node `v`.
1553
+ * Returns `undefined` if node `v` is not in the graph.
1554
+ * @remarks
1555
+ * Behavior is undefined for undirected graphs - use {@link nodeEdges} instead.
1556
+ * Takes `O(|E|)` time.
1557
+ */
1558
+ outEdges(v, w) {
1559
+ var outV = this._out[v];
1560
+ if (outV) {
1561
+ var edges = values_default(outV);
1562
+ if (!w) {
1563
+ return edges;
1564
+ }
1565
+ return filter_default(edges, function(edge) {
1566
+ return edge.w === w;
1567
+ });
1568
+ }
1569
+ }
1570
+ /**
1571
+ * @param {NodeID | number} v - Target Node ID.
1572
+ * @param {NodeID | number} [w] - If set, filters those edges down to just
1573
+ * those between nodes `v` and `w` regardless of direction
1574
+ * @returns {EdgeObj[] | undefined} all edges to or from node `v` regardless
1575
+ * of direction. Returns `undefined` if node `v` is not in the graph.
1576
+ * @remarks Takes `O(|E|)` time.
1577
+ */
1578
+ nodeEdges(v, w) {
1579
+ var inEdges = this.inEdges(v, w);
1580
+ if (inEdges) {
1581
+ return inEdges.concat(this.outEdges(v, w));
1582
+ }
1583
+ }
1584
+ };
1585
+ Graph.prototype._nodeCount = 0;
1586
+ Graph.prototype._edgeCount = 0;
1587
+ function incrementOrInitEntry(map, k) {
1588
+ if (map[k]) {
1589
+ map[k]++;
1590
+ } else {
1591
+ map[k] = 1;
1592
+ }
1593
+ }
1594
+ function decrementOrRemoveEntry(map, k) {
1595
+ if (!--map[k]) {
1596
+ delete map[k];
1597
+ }
1598
+ }
1599
+ function edgeArgsToId(isDirected, v_, w_, name) {
1600
+ var v = "" + v_;
1601
+ var w = "" + w_;
1602
+ if (!isDirected && v > w) {
1603
+ var tmp = v;
1604
+ v = w;
1605
+ w = tmp;
1606
+ }
1607
+ return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM + (isUndefined_default(name) ? DEFAULT_EDGE_NAME : name);
1608
+ }
1609
+ function edgeArgsToObj(isDirected, v_, w_, name) {
1610
+ var v = "" + v_;
1611
+ var w = "" + w_;
1612
+ if (!isDirected && v > w) {
1613
+ var tmp = v;
1614
+ v = w;
1615
+ w = tmp;
1616
+ }
1617
+ var edgeObj = { v, w };
1618
+ if (name) {
1619
+ edgeObj.name = name;
1620
+ }
1621
+ return edgeObj;
1622
+ }
1623
+ function edgeObjToId(isDirected, edgeObj) {
1624
+ return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);
1625
+ }
1626
+
1627
+ export {
1628
+ clone_default,
1629
+ cloneDeep_default,
1630
+ now_default,
1631
+ defaults_default,
1632
+ last_default,
1633
+ find_default,
1634
+ forIn_default,
1635
+ forOwn_default,
1636
+ has_default,
1637
+ values_default,
1638
+ isUndefined_default,
1639
+ mapValues_default,
1640
+ max_default,
1641
+ minBy_default,
1642
+ pick_default,
1643
+ range_default,
1644
+ size_default,
1645
+ sortBy_default,
1646
+ uniqueId_default,
1647
+ zipObject_default,
1648
+ Graph
1649
+ };
1650
+ /*! Bundled license information:
1651
+
1652
+ lodash-es/lodash.js:
1653
+ (**
1654
+ * @license
1655
+ * Lodash (Custom Build) <https://lodash.com/>
1656
+ * Build: `lodash modularize exports="es" --repo lodash/lodash#4.18.1 -o ./`
1657
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
1658
+ * Released under MIT license <https://lodash.com/license>
1659
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
1660
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1661
+ *)
1662
+ */
1663
+ //# sourceMappingURL=chunk-TRL7YIZG.js.map