likec4 1.56.0 → 1.58.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 (207) hide show
  1. package/__app__/codegen/react.mjs +7 -8
  2. package/__app__/codegen/webcomponent.mjs +77 -736
  3. package/__app__/src/aichat/index.mjs +8 -0
  4. package/__app__/src/chunks/AIChat.mjs +959 -0
  5. package/__app__/src/chunks/DiagramActorProvider.mjs +7638 -0
  6. package/__app__/src/chunks/LikeC4Styles.mjs +1866 -0
  7. package/__app__/src/chunks/Markdown.mjs +146 -0
  8. package/__app__/src/chunks/NavigationPanel.mjs +61 -0
  9. package/__app__/src/chunks/ProjectsOverview.mjs +540 -0
  10. package/__app__/src/chunks/adhoc-editor.mjs +3386 -0
  11. package/__app__/src/chunks/es.mjs +439 -0
  12. package/__app__/src/chunks/hooks.mjs +145 -0
  13. package/__app__/src/chunks/libs/@dagrejs/dagre.mjs +1894 -0
  14. package/__app__/src/chunks/libs/@floating-ui.mjs +2218 -0
  15. package/__app__/src/chunks/libs/@mantine.mjs +12070 -0
  16. package/__app__/src/chunks/libs/@tabler/icons-react.mjs +252 -0
  17. package/__app__/src/chunks/libs/@tanstack-ai.mjs +1768 -0
  18. package/__app__/src/chunks/libs/@tanstack.mjs +2718 -0
  19. package/__app__/src/chunks/libs/@xstate/react.mjs +1982 -0
  20. package/__app__/src/chunks/libs/@xyflow/react.mjs +5256 -0
  21. package/__app__/src/chunks/libs/bezier-js.mjs +1003 -0
  22. package/__app__/src/chunks/libs/d3.mjs +2842 -0
  23. package/__app__/src/chunks/libs/fast-equals.mjs +268 -0
  24. package/__app__/src/chunks/libs/framer.mjs +5872 -0
  25. package/__app__/src/chunks/libs/remeda.mjs +642 -0
  26. package/__app__/src/chunks/libs/zod.mjs +3170 -0
  27. package/__app__/src/chunks/rolldown-runtime.mjs +23 -0
  28. package/__app__/src/chunks/styled-system.mjs +1040 -0
  29. package/__app__/src/fonts.css +1 -1
  30. package/__app__/src/main.mjs +14847 -1
  31. package/__app__/src/style.css +1 -1
  32. package/config/schema.json +14 -41
  33. package/dist/chunks/enableServer.mjs +1 -0
  34. package/dist/chunks/filenames.mjs +2 -2
  35. package/dist/chunks/index2.d.mts +2057 -722
  36. package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
  37. package/dist/chunks/libs/@logtape/logtape.mjs +4 -3
  38. package/dist/chunks/libs/@ts-graphviz/ast.mjs +3 -0
  39. package/dist/chunks/libs/@ts-graphviz/common.d.mts +9 -0
  40. package/dist/chunks/libs/@ts-graphviz/core.mjs +1 -0
  41. package/dist/chunks/libs/chevrotain-allstar.mjs +2 -2
  42. package/dist/chunks/libs/chevrotain.mjs +26 -26
  43. package/dist/chunks/libs/langium.d.mts +5 -5
  44. package/dist/chunks/libs/langium.mjs +10 -10
  45. package/dist/chunks/libs/merge-error-cause.mjs +1 -1
  46. package/dist/chunks/libs/pako.mjs +3 -1
  47. package/dist/chunks/libs/pretty-ms.mjs +1 -1
  48. package/dist/chunks/libs/remeda.mjs +1 -1
  49. package/dist/chunks/libs/ufo.mjs +1 -1
  50. package/dist/chunks/libs/unstorage.mjs +1 -1
  51. package/dist/chunks/libs/which.mjs +1 -1
  52. package/dist/chunks/libs/zod.d.mts +60 -25
  53. package/dist/chunks/libs/zod.mjs +65 -0
  54. package/dist/chunks/node.mjs +84 -56
  55. package/dist/chunks/sequence-view.mjs +1 -1
  56. package/dist/chunks/vite-plugin.mjs +593 -0
  57. package/dist/cli/index.mjs +184 -141
  58. package/dist/index.d.mts +2 -131
  59. package/dist/index.mjs +1 -1
  60. package/dist/model/index.d.mts +2 -2
  61. package/dist/vite-plugin/index.d.mts +53 -2
  62. package/dist/vite-plugin/index.mjs +1 -1
  63. package/dist/vite-plugin/internal/index.d.mts +327 -4
  64. package/dist/vite-plugin/internal/index.mjs +946 -1
  65. package/package.json +85 -72
  66. package/react/index.d.mts +174 -73
  67. package/react/index.mjs +42468 -38926
  68. package/vite-plugin-modules.d.ts +4 -0
  69. package/__app__/chunks/ColorSchemeToggle.mjs +0 -1
  70. package/__app__/chunks/DiagramActorProvider.mjs +0 -10
  71. package/__app__/chunks/Fallback.mjs +0 -1
  72. package/__app__/chunks/Header.mjs +0 -13
  73. package/__app__/chunks/IconRenderer.mjs +0 -1
  74. package/__app__/chunks/LikeC4Diagram.mjs +0 -19
  75. package/__app__/chunks/LikeC4ModelContext.mjs +0 -1
  76. package/__app__/chunks/LikeC4ModelContext2.mjs +0 -1
  77. package/__app__/chunks/LikeC4Styles.mjs +0 -48
  78. package/__app__/chunks/NavigationPanel.mjs +0 -1
  79. package/__app__/chunks/StaticLikeC4Diagram.mjs +0 -1
  80. package/__app__/chunks/ViewReact.mjs +0 -1
  81. package/__app__/chunks/__root.mjs +0 -1
  82. package/__app__/chunks/adhoc-editor.mjs +0 -1
  83. package/__app__/chunks/hooks.mjs +0 -1
  84. package/__app__/chunks/libs/@dagrejs/dagre.mjs +0 -1
  85. package/__app__/chunks/libs/@floating-ui/core.mjs +0 -1
  86. package/__app__/chunks/libs/@floating-ui/dom.mjs +0 -1
  87. package/__app__/chunks/libs/@floating-ui/react.mjs +0 -1
  88. package/__app__/chunks/libs/@mantine/core.mjs +0 -41
  89. package/__app__/chunks/libs/@mantine/hooks.mjs +0 -1
  90. package/__app__/chunks/libs/@nanostores/react.mjs +0 -1
  91. package/__app__/chunks/libs/@react-hookz/web.mjs +0 -1
  92. package/__app__/chunks/libs/@tabler/icons-react.mjs +0 -15
  93. package/__app__/chunks/libs/@tanstack/history.mjs +0 -1
  94. package/__app__/chunks/libs/@tanstack/react-router.mjs +0 -3
  95. package/__app__/chunks/libs/@tanstack/router-core.mjs +0 -1
  96. package/__app__/chunks/libs/@xstate/react.mjs +0 -1
  97. package/__app__/chunks/libs/@xstate/store.mjs +0 -1
  98. package/__app__/chunks/libs/@xyflow/react.mjs +0 -7
  99. package/__app__/chunks/libs/@zag-js/anatomy.mjs +0 -1
  100. package/__app__/chunks/libs/@zag-js/collection.mjs +0 -1
  101. package/__app__/chunks/libs/@zag-js/core.mjs +0 -1
  102. package/__app__/chunks/libs/@zag-js/react.mjs +0 -1
  103. package/__app__/chunks/libs/@zag-js/tree-view.mjs +0 -1
  104. package/__app__/chunks/libs/bezier-js.mjs +0 -1
  105. package/__app__/chunks/libs/d3-path.mjs +0 -1
  106. package/__app__/chunks/libs/d3-shape.mjs +0 -1
  107. package/__app__/chunks/libs/fast-equals.mjs +0 -1
  108. package/__app__/chunks/libs/framer-motion.mjs +0 -9
  109. package/__app__/chunks/libs/html-to-image.mjs +0 -2
  110. package/__app__/chunks/libs/motion-dom.mjs +0 -1
  111. package/__app__/chunks/libs/motion.mjs +0 -1
  112. package/__app__/chunks/libs/nanostores.mjs +0 -1
  113. package/__app__/chunks/libs/react-error-boundary.mjs +0 -1
  114. package/__app__/chunks/libs/react-resizable-panels.mjs +0 -1
  115. package/__app__/chunks/libs/remeda.mjs +0 -1
  116. package/__app__/chunks/libs/xstate.mjs +0 -1
  117. package/__app__/chunks/libs/zod.mjs +0 -39
  118. package/__app__/chunks/rolldown-runtime.mjs +0 -1
  119. package/__app__/chunks/safeCtx.mjs +0 -1
  120. package/__app__/chunks/searchParams.mjs +0 -1
  121. package/__app__/chunks/single-index.mjs +0 -1
  122. package/__app__/chunks/styled-system.mjs +0 -1
  123. package/__app__/chunks/styles.css.mjs +0 -1
  124. package/__app__/chunks/useLikeC4Project.mjs +0 -1
  125. package/__app__/chunks/useUpdateEffect.mjs +0 -1
  126. package/__app__/src/pages/AdHocViewEditor.mjs +0 -1
  127. package/__app__/src/pages/EmbedPage.mjs +0 -1
  128. package/__app__/src/pages/ExportPage.mjs +0 -1
  129. package/__app__/src/pages/ProjectsOverview.mjs +0 -1
  130. package/__app__/src/pages/ViewAsD2.mjs +0 -1
  131. package/__app__/src/pages/ViewAsDot.mjs +0 -1
  132. package/__app__/src/pages/ViewAsMmd.mjs +0 -1
  133. package/__app__/src/pages/ViewAsPuml.mjs +0 -1
  134. package/__app__/src/pages/ViewEditor.mjs +0 -1
  135. package/__app__/src/pages/ViewReact.mjs +0 -1
  136. package/__app__/src/routeTree.gen.mjs +0 -1
  137. package/__app__/src/routes/__root.mjs +0 -1
  138. package/__app__/src/routes/_single/adhoc.mjs +0 -1
  139. package/__app__/src/routes/_single/embed._viewId.mjs +0 -1
  140. package/__app__/src/routes/_single/export._viewId.mjs +0 -1
  141. package/__app__/src/routes/_single/route.mjs +0 -1
  142. package/__app__/src/routes/_single/single-index.mjs +0 -1
  143. package/__app__/src/routes/_single/view._viewId.d2.mjs +0 -1
  144. package/__app__/src/routes/_single/view._viewId.dot.mjs +0 -1
  145. package/__app__/src/routes/_single/view._viewId.index.mjs +0 -1
  146. package/__app__/src/routes/_single/view._viewId.mjs +0 -1
  147. package/__app__/src/routes/_single/view._viewId.mmd.mjs +0 -1
  148. package/__app__/src/routes/_single/view._viewId.puml.mjs +0 -1
  149. package/__app__/src/routes/_single/webcomponent._.mjs +0 -33
  150. package/__app__/src/routes/index.mjs +0 -1
  151. package/__app__/src/routes/project._projectId/-components.mjs +0 -1
  152. package/__app__/src/routes/project._projectId/adhoc.mjs +0 -1
  153. package/__app__/src/routes/project._projectId/embed._viewId.mjs +0 -1
  154. package/__app__/src/routes/project._projectId/export._viewId.mjs +0 -1
  155. package/__app__/src/routes/project._projectId/index.mjs +0 -1
  156. package/__app__/src/routes/project._projectId/route.mjs +0 -1
  157. package/__app__/src/routes/project._projectId/view._viewId.d2.mjs +0 -1
  158. package/__app__/src/routes/project._projectId/view._viewId.dot.mjs +0 -1
  159. package/__app__/src/routes/project._projectId/view._viewId.index.mjs +0 -1
  160. package/__app__/src/routes/project._projectId/view._viewId.mjs +0 -1
  161. package/__app__/src/routes/project._projectId/view._viewId.mmd.mjs +0 -1
  162. package/__app__/src/routes/project._projectId/view._viewId.puml.mjs +0 -1
  163. package/__app__/src/routes/projects.mjs +0 -1
  164. package/dist/chunks/libs/@chevrotain/utils.mjs +0 -1
  165. package/dist/chunks/libs/@hono/mcp.mjs +0 -45
  166. package/dist/chunks/libs/@hono/node-server.mjs +0 -1
  167. package/dist/chunks/libs/@logtape/logtape.d.mts +0 -1023
  168. package/dist/chunks/libs/@modelcontextprotocol/sdk.mjs +0 -12
  169. package/dist/chunks/libs/ajv.mjs +0 -1
  170. package/dist/chunks/libs/ansi-align.mjs +0 -2
  171. package/dist/chunks/libs/ansi-regex.mjs +0 -1
  172. package/dist/chunks/libs/ansi-styles.mjs +0 -1
  173. package/dist/chunks/libs/atomically.mjs +0 -1
  174. package/dist/chunks/libs/boxen.mjs +0 -22
  175. package/dist/chunks/libs/conf.mjs +0 -1
  176. package/dist/chunks/libs/defu.mjs +0 -1
  177. package/dist/chunks/libs/destr.mjs +0 -1
  178. package/dist/chunks/libs/find-up-simple.mjs +0 -1
  179. package/dist/chunks/libs/get-port.mjs +0 -1
  180. package/dist/chunks/libs/hono.mjs +0 -1
  181. package/dist/chunks/libs/is-docker.mjs +0 -1
  182. package/dist/chunks/libs/is-error-instance.mjs +0 -1
  183. package/dist/chunks/libs/is-inside-container.mjs +0 -1
  184. package/dist/chunks/libs/is-plain-obj.mjs +0 -1
  185. package/dist/chunks/libs/isexe.mjs +0 -1
  186. package/dist/chunks/libs/ky.mjs +0 -3
  187. package/dist/chunks/libs/p-debounce.mjs +0 -1
  188. package/dist/chunks/libs/p-limit.mjs +0 -1
  189. package/dist/chunks/libs/p-timeout.mjs +0 -1
  190. package/dist/chunks/libs/package-up.mjs +0 -1
  191. package/dist/chunks/libs/parse-ms.mjs +0 -1
  192. package/dist/chunks/libs/safe-stringify.mjs +0 -1
  193. package/dist/chunks/libs/strip-indent.mjs +0 -1
  194. package/dist/chunks/libs/tinyrainbow.mjs +0 -1
  195. package/dist/chunks/libs/ts-graphviz.d.mts +0 -12
  196. package/dist/chunks/libs/ts-graphviz.mjs +0 -4
  197. package/dist/chunks/libs/vscode-languageserver.mjs +0 -1
  198. package/dist/chunks/libs/word-wrap.mjs +0 -12
  199. package/dist/chunks/plugin.mjs +0 -400
  200. package/dist/vite-plugin/internal/chunks/libs/@nanostores/react.d.mts +0 -269
  201. package/dist/vite-plugin/internal/chunks/libs/@nanostores/react.mjs +0 -1
  202. package/dist/vite-plugin/internal/chunks/libs/birpc.mjs +0 -1
  203. package/dist/vite-plugin/internal/chunks/libs/fast-equals.mjs +0 -1
  204. package/dist/vite-plugin/internal/chunks/libs/nanostores.d.mts +0 -59
  205. package/dist/vite-plugin/internal/chunks/libs/nanostores.mjs +0 -1
  206. package/dist/vite-plugin/internal/chunks/libs/remeda.mjs +0 -1
  207. package/dist/vite-plugin/internal/chunks/rolldown-runtime.mjs +0 -1
@@ -0,0 +1,268 @@
1
+ import "../rolldown-runtime.mjs";
2
+ //#region ../../node_modules/.pnpm/fast-equals@6.0.0/node_modules/fast-equals/dist/es/index.mjs
3
+ var { getOwnPropertyNames: e, getOwnPropertySymbols: t } = Object, { hasOwnProperty: n } = Object.prototype;
4
+ function combineComparators(e, t) {
5
+ return function isEqual(n, r, i) {
6
+ return e(n, r, i) && t(n, r, i);
7
+ };
8
+ }
9
+ function createIsCircular(e) {
10
+ return function isCircular(t, n, r) {
11
+ if (!t || !n || typeof t != "object" || typeof n != "object") return e(t, n, r);
12
+ let { cache: i } = r, a = i.get(t), o = i.get(n);
13
+ if (a && o) return a === n && o === t;
14
+ i.set(t, n), i.set(n, t);
15
+ let s = e(t, n, r);
16
+ return i.delete(t), i.delete(n), s;
17
+ };
18
+ }
19
+ function getStrictProperties(n) {
20
+ return e(n).concat(t(n));
21
+ }
22
+ var r = Object.hasOwn || ((e, t) => n.call(e, t)), i = "__v", a = "__o", o = "_owner", { getOwnPropertyDescriptor: s, keys: c } = Object, l = Object.is || function sameValueEqual(e, t) {
23
+ return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
24
+ };
25
+ function strictEqual(e, t) {
26
+ return e === t;
27
+ }
28
+ function areArrayBuffersEqual(e, t) {
29
+ return e.byteLength === t.byteLength && areTypedArraysEqual(new Uint8Array(e), new Uint8Array(t));
30
+ }
31
+ function areArraysEqual(e, t, n) {
32
+ let r = e.length;
33
+ if (t.length !== r) return !1;
34
+ for (; r-- > 0;) if (!n.equals(e[r], t[r], r, r, e, t, n)) return !1;
35
+ return !0;
36
+ }
37
+ function areDataViewsEqual(e, t) {
38
+ return e.byteLength === t.byteLength && areTypedArraysEqual(new Uint8Array(e.buffer, e.byteOffset, e.byteLength), new Uint8Array(t.buffer, t.byteOffset, t.byteLength));
39
+ }
40
+ function areDatesEqual(e, t) {
41
+ return l(e.getTime(), t.getTime());
42
+ }
43
+ function areErrorsEqual(e, t) {
44
+ return e.name === t.name && e.message === t.message && e.cause === t.cause && e.stack === t.stack;
45
+ }
46
+ function areMapsEqual(e, t, n) {
47
+ let r = e.size;
48
+ if (r !== t.size) return !1;
49
+ if (!r) return !0;
50
+ let i = Array(r), a = e.entries(), o, s, c = 0;
51
+ for (; (o = a.next()) && !o.done;) {
52
+ let r = t.entries(), a = !1, l = 0;
53
+ for (; (s = r.next()) && !s.done;) {
54
+ if (i[l]) {
55
+ l++;
56
+ continue;
57
+ }
58
+ let r = o.value, u = s.value;
59
+ if (n.equals(r[0], u[0], c, l, e, t, n) && n.equals(r[1], u[1], r[0], u[0], e, t, n)) {
60
+ a = i[l] = !0;
61
+ break;
62
+ }
63
+ l++;
64
+ }
65
+ if (!a) return !1;
66
+ c++;
67
+ }
68
+ return !0;
69
+ }
70
+ function areObjectsEqual(e, t, n) {
71
+ let r = c(e), i = r.length;
72
+ if (c(t).length !== i) return !1;
73
+ for (; i-- > 0;) if (!isPropertyEqual(e, t, n, r[i])) return !1;
74
+ return !0;
75
+ }
76
+ function areObjectsEqualStrict(e, t, n) {
77
+ let r = getStrictProperties(e), i = r.length;
78
+ if (getStrictProperties(t).length !== i) return !1;
79
+ let a, o, c;
80
+ for (; i-- > 0;) if (a = r[i], !isPropertyEqual(e, t, n, a) || (o = s(e, a), c = s(t, a), (o || c) && (!o || !c || o.configurable !== c.configurable || o.enumerable !== c.enumerable || o.writable !== c.writable))) return !1;
81
+ return !0;
82
+ }
83
+ function arePrimitiveWrappersEqual(e, t) {
84
+ return l(e.valueOf(), t.valueOf());
85
+ }
86
+ function areRegExpsEqual(e, t) {
87
+ return e.source === t.source && e.flags === t.flags;
88
+ }
89
+ function areSetsEqual(e, t, n) {
90
+ let r = e.size;
91
+ if (r !== t.size) return !1;
92
+ if (!r) return !0;
93
+ let i = Array(r), a = e.values(), o, s;
94
+ for (; (o = a.next()) && !o.done;) {
95
+ let r = t.values(), a = !1, c = 0;
96
+ for (; (s = r.next()) && !s.done;) {
97
+ if (!i[c] && n.equals(o.value, s.value, o.value, s.value, e, t, n)) {
98
+ a = i[c] = !0;
99
+ break;
100
+ }
101
+ c++;
102
+ }
103
+ if (!a) return !1;
104
+ }
105
+ return !0;
106
+ }
107
+ function areTypedArraysEqual(e, t) {
108
+ let n = e.byteLength;
109
+ if (t.byteLength !== n || e.byteOffset !== t.byteOffset) return !1;
110
+ for (; n-- > 0;) if (e[n] !== t[n]) return !1;
111
+ return !0;
112
+ }
113
+ function areUrlsEqual(e, t) {
114
+ return e.hostname === t.hostname && e.pathname === t.pathname && e.protocol === t.protocol && e.port === t.port && e.hash === t.hash && e.username === t.username && e.password === t.password;
115
+ }
116
+ function isPropertyEqual(e, t, n, s) {
117
+ return (s === o || s === a || s === i) && (e.$$typeof || t.$$typeof) ? !0 : r(t, s) && n.equals(e[s], t[s], s, s, e, t, n);
118
+ }
119
+ var u = Object.prototype.toString;
120
+ function createEqualityComparator(e) {
121
+ let t = createSupportedComparatorMap(e), { areArraysEqual: n, areDatesEqual: r, areFunctionsEqual: i, areMapsEqual: a, areNumbersEqual: o, areObjectsEqual: s, areRegExpsEqual: c, areSetsEqual: l, getUnsupportedCustomComparator: d } = e;
122
+ return function comparator(e, f, p) {
123
+ if (e === f) return !0;
124
+ if (e == null || f == null) return !1;
125
+ let m = typeof e;
126
+ if (m !== typeof f) return !1;
127
+ if (m !== "object") return m === "number" || m === "bigint" ? o(e, f, p) : m === "function" ? i(e, f, p) : !1;
128
+ let h = e.constructor;
129
+ if (h !== f.constructor) return !1;
130
+ if (h === Object) return s(e, f, p);
131
+ if (h === Array) return n(e, f, p);
132
+ if (h === Date) return r(e, f, p);
133
+ if (h === RegExp) return c(e, f, p);
134
+ if (h === Map) return a(e, f, p);
135
+ if (h === Set) return l(e, f, p);
136
+ if (h === Promise) return !1;
137
+ if (Array.isArray(e)) return n(e, f, p);
138
+ let g = u.call(e), _ = t[g];
139
+ if (_) return _(e, f, p);
140
+ let v = d && d(e, f, p, g);
141
+ return v ? v(e, f, p) : !1;
142
+ };
143
+ }
144
+ function createEqualityComparatorConfig({ circular: e, createCustomConfig: t, strict: n }) {
145
+ let r = {
146
+ areArrayBuffersEqual,
147
+ areArraysEqual: n ? areObjectsEqualStrict : areArraysEqual,
148
+ areDataViewsEqual,
149
+ areDatesEqual,
150
+ areErrorsEqual,
151
+ areFunctionsEqual: strictEqual,
152
+ areMapsEqual: n ? combineComparators(areMapsEqual, areObjectsEqualStrict) : areMapsEqual,
153
+ areNumbersEqual: l,
154
+ areObjectsEqual: n ? areObjectsEqualStrict : areObjectsEqual,
155
+ arePrimitiveWrappersEqual,
156
+ areRegExpsEqual,
157
+ areSetsEqual: n ? combineComparators(areSetsEqual, areObjectsEqualStrict) : areSetsEqual,
158
+ areTypedArraysEqual: n ? combineComparators(areTypedArraysEqual, areObjectsEqualStrict) : areTypedArraysEqual,
159
+ areUrlsEqual,
160
+ getUnsupportedCustomComparator: void 0
161
+ };
162
+ if (t && (r = Object.assign({}, r, t(r))), e) {
163
+ let e = createIsCircular(r.areArraysEqual), t = createIsCircular(r.areMapsEqual), n = createIsCircular(r.areObjectsEqual), i = createIsCircular(r.areSetsEqual);
164
+ r = Object.assign({}, r, {
165
+ areArraysEqual: e,
166
+ areMapsEqual: t,
167
+ areObjectsEqual: n,
168
+ areSetsEqual: i
169
+ });
170
+ }
171
+ return r;
172
+ }
173
+ function createInternalEqualityComparator(e) {
174
+ return function(t, n, r, i, a, o, s) {
175
+ return e(t, n, s);
176
+ };
177
+ }
178
+ function createIsEqual({ circular: e, comparator: t, createState: n, equals: r, strict: i }) {
179
+ if (n) return function isEqual(a, o) {
180
+ let { cache: s = e ? /* @__PURE__ */ new WeakMap() : void 0, meta: c } = n();
181
+ return t(a, o, {
182
+ cache: s,
183
+ equals: r,
184
+ meta: c,
185
+ strict: i
186
+ });
187
+ };
188
+ if (e) return function isEqual(e, n) {
189
+ return t(e, n, {
190
+ cache: /* @__PURE__ */ new WeakMap(),
191
+ equals: r,
192
+ meta: void 0,
193
+ strict: i
194
+ });
195
+ };
196
+ let a = {
197
+ cache: void 0,
198
+ equals: r,
199
+ meta: void 0,
200
+ strict: i
201
+ };
202
+ return function isEqual(e, n) {
203
+ return t(e, n, a);
204
+ };
205
+ }
206
+ function createSupportedComparatorMap({ areArrayBuffersEqual: e, areArraysEqual: t, areDataViewsEqual: n, areDatesEqual: r, areErrorsEqual: i, areFunctionsEqual: a, areMapsEqual: o, areNumbersEqual: s, areObjectsEqual: c, arePrimitiveWrappersEqual: l, areRegExpsEqual: u, areSetsEqual: d, areTypedArraysEqual: f, areUrlsEqual: p }) {
207
+ return {
208
+ "[object Arguments]": c,
209
+ "[object Array]": t,
210
+ "[object ArrayBuffer]": e,
211
+ "[object AsyncGeneratorFunction]": a,
212
+ "[object BigInt]": s,
213
+ "[object BigInt64Array]": f,
214
+ "[object BigUint64Array]": f,
215
+ "[object Boolean]": l,
216
+ "[object DataView]": n,
217
+ "[object Date]": r,
218
+ "[object Error]": i,
219
+ "[object Float16Array]": f,
220
+ "[object Float32Array]": f,
221
+ "[object Float64Array]": f,
222
+ "[object Function]": a,
223
+ "[object GeneratorFunction]": a,
224
+ "[object Int8Array]": f,
225
+ "[object Int16Array]": f,
226
+ "[object Int32Array]": f,
227
+ "[object Map]": o,
228
+ "[object Number]": l,
229
+ "[object Object]": (e, t, n) => typeof e.then != "function" && typeof t.then != "function" && c(e, t, n),
230
+ "[object RegExp]": u,
231
+ "[object Set]": d,
232
+ "[object String]": l,
233
+ "[object URL]": p,
234
+ "[object Uint8Array]": f,
235
+ "[object Uint8ClampedArray]": f,
236
+ "[object Uint16Array]": f,
237
+ "[object Uint32Array]": f
238
+ };
239
+ }
240
+ var d = createCustomEqual();
241
+ createCustomEqual({ strict: !0 }), createCustomEqual({ circular: !0 }), createCustomEqual({
242
+ circular: !0,
243
+ strict: !0
244
+ });
245
+ var f = createCustomEqual({ createInternalComparator: () => l });
246
+ createCustomEqual({
247
+ strict: !0,
248
+ createInternalComparator: () => l
249
+ }), createCustomEqual({
250
+ circular: !0,
251
+ createInternalComparator: () => l
252
+ }), createCustomEqual({
253
+ circular: !0,
254
+ createInternalComparator: () => l,
255
+ strict: !0
256
+ });
257
+ function createCustomEqual(e = {}) {
258
+ let { circular: t = !1, createInternalComparator: n, createState: r, strict: i = !1 } = e, a = createEqualityComparator(createEqualityComparatorConfig(e));
259
+ return createIsEqual({
260
+ circular: t,
261
+ comparator: a,
262
+ createState: r,
263
+ equals: n ? n(a) : createInternalEqualityComparator(a),
264
+ strict: i
265
+ });
266
+ }
267
+ //#endregion
268
+ export { f as n, d as t };