storybook 9.0.0-alpha.1 → 9.0.0-alpha.10

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 (259) hide show
  1. package/README.md +31 -29
  2. package/assets/browser/favicon.svg +1 -0
  3. package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
  4. package/assets/browser/nunito-sans-bold.woff2 +0 -0
  5. package/assets/browser/nunito-sans-italic.woff2 +0 -0
  6. package/assets/browser/nunito-sans-regular.woff2 +0 -0
  7. package/assets/docs/addon-controls-args-annotated.png +0 -0
  8. package/assets/docs/addon-controls-args-background-color.png +0 -0
  9. package/assets/docs/addon-controls-args-background-string.png +0 -0
  10. package/assets/docs/addon-controls-args-docs.png +0 -0
  11. package/assets/docs/addon-controls-args-logging.png +0 -0
  12. package/assets/docs/addon-controls-args-no-annotation.png +0 -0
  13. package/assets/docs/addon-controls-args-reflow-slider.png +0 -0
  14. package/assets/docs/addon-controls-args-reflow.png +0 -0
  15. package/assets/docs/addon-controls-args-template.png +0 -0
  16. package/assets/docs/addon-controls-expanded.png +0 -0
  17. package/assets/docs/addon-controls-hero.gif +0 -0
  18. package/assets/docs/addon-controls-install.png +0 -0
  19. package/assets/docs/hero.gif +0 -0
  20. package/assets/docs/message-reference.png +0 -0
  21. package/assets/docs/viewport.png +0 -0
  22. package/assets/server/addon.tsconfig.json +6 -0
  23. package/assets/server/base-preview-body.html +119 -0
  24. package/assets/server/base-preview-head.html +451 -0
  25. package/assets/server/template.ejs +87 -0
  26. package/bin/index.cjs +1 -1
  27. package/dist/actions/decorator.d.ts +6 -0
  28. package/dist/actions/decorator.js +139 -0
  29. package/dist/actions/index.cjs +127 -0
  30. package/dist/actions/index.d.ts +105 -0
  31. package/dist/actions/index.js +112 -0
  32. package/dist/actions/manager.js +1196 -0
  33. package/dist/actions/preview.cjs +165 -0
  34. package/dist/actions/preview.d.ts +55 -0
  35. package/dist/actions/preview.js +156 -0
  36. package/dist/babel/index.cjs +54034 -0
  37. package/dist/babel/index.d.ts +7488 -0
  38. package/dist/babel/index.js +54044 -0
  39. package/dist/bin/index.cjs +119 -0
  40. package/dist/bin/index.js +113 -0
  41. package/dist/builder-manager/index.cjs +2140 -0
  42. package/dist/builder-manager/index.d.ts +19 -0
  43. package/dist/builder-manager/index.js +2162 -0
  44. package/dist/channels/index.cjs +1913 -0
  45. package/dist/channels/index.d.ts +108 -0
  46. package/dist/channels/index.js +1881 -0
  47. package/dist/cli/bin/index.cjs +2687 -0
  48. package/dist/cli/bin/index.d.ts +2 -0
  49. package/dist/cli/bin/index.js +2707 -0
  50. package/dist/cli/index.cjs +17327 -0
  51. package/dist/cli/index.d.ts +209 -0
  52. package/dist/cli/index.js +17349 -0
  53. package/dist/client-logger/index.cjs +80 -0
  54. package/dist/client-logger/index.d.ts +29 -0
  55. package/dist/client-logger/index.js +64 -0
  56. package/dist/common/index.cjs +20569 -0
  57. package/dist/common/index.d.ts +949 -0
  58. package/dist/common/index.js +20654 -0
  59. package/dist/components/index.cjs +27924 -0
  60. package/dist/components/index.d.ts +1423 -0
  61. package/dist/components/index.js +24673 -0
  62. package/dist/controls/decorator.d.ts +5 -0
  63. package/dist/controls/decorator.js +8 -0
  64. package/dist/controls/index.cjs +26 -0
  65. package/dist/controls/index.d.ts +39 -0
  66. package/dist/controls/index.js +6 -0
  67. package/dist/controls/manager.js +5545 -0
  68. package/dist/controls/preview.cjs +26 -0
  69. package/dist/controls/preview.d.ts +55 -0
  70. package/dist/controls/preview.js +9 -0
  71. package/dist/core-events/index.cjs +167 -0
  72. package/dist/core-events/index.d.ts +426 -0
  73. package/dist/core-events/index.js +149 -0
  74. package/dist/core-server/index.cjs +38183 -0
  75. package/dist/core-server/index.d.ts +720 -0
  76. package/dist/core-server/index.js +38272 -0
  77. package/dist/core-server/presets/common-manager.js +20 -0
  78. package/dist/core-server/presets/common-override-preset.cjs +4824 -0
  79. package/dist/core-server/presets/common-override-preset.js +4829 -0
  80. package/dist/core-server/presets/common-preset.cjs +10231 -0
  81. package/dist/core-server/presets/common-preset.js +10309 -0
  82. package/dist/csf/index.cjs +179 -0
  83. package/dist/csf/index.d.ts +750 -0
  84. package/dist/csf/index.js +172 -0
  85. package/dist/csf-tools/index.cjs +1422 -0
  86. package/dist/csf-tools/index.d.ts +250 -0
  87. package/dist/csf-tools/index.js +1439 -0
  88. package/dist/docs-tools/index.cjs +2891 -0
  89. package/dist/docs-tools/index.d.ts +162 -0
  90. package/dist/docs-tools/index.js +2876 -0
  91. package/dist/index.cjs +17 -1
  92. package/dist/index.d.ts +1 -1
  93. package/dist/index.js +2 -7
  94. package/dist/instrumenter/index.cjs +3485 -0
  95. package/dist/instrumenter/index.d.ts +104 -0
  96. package/dist/instrumenter/index.js +4965 -0
  97. package/dist/manager/globals-module-info.cjs +817 -0
  98. package/dist/manager/globals-module-info.d.ts +36 -0
  99. package/dist/manager/globals-module-info.js +804 -0
  100. package/dist/manager/globals-runtime.js +77536 -0
  101. package/dist/manager/globals.cjs +47 -0
  102. package/dist/manager/globals.d.ts +24 -0
  103. package/dist/manager/globals.js +34 -0
  104. package/dist/manager/runtime.js +12323 -0
  105. package/dist/manager-api/index.cjs +11074 -0
  106. package/dist/manager-api/index.d.ts +1512 -0
  107. package/dist/manager-api/index.js +4835 -0
  108. package/dist/manager-errors.d.ts +89 -0
  109. package/dist/manager-errors.js +99 -0
  110. package/dist/node-logger/index.cjs +1642 -0
  111. package/dist/node-logger/index.d.ts +117 -0
  112. package/dist/node-logger/index.js +1652 -0
  113. package/dist/preview/globals.cjs +38 -0
  114. package/dist/preview/globals.d.ts +15 -0
  115. package/dist/preview/globals.js +25 -0
  116. package/dist/preview/runtime.js +43629 -0
  117. package/dist/preview-api/index.cjs +5224 -0
  118. package/dist/preview-api/index.d.ts +1093 -0
  119. package/dist/preview-api/index.js +5292 -0
  120. package/dist/preview-errors.cjs +503 -0
  121. package/dist/preview-errors.d.ts +212 -0
  122. package/dist/preview-errors.js +449 -0
  123. package/dist/router/index.cjs +3296 -0
  124. package/dist/router/index.d.ts +385 -0
  125. package/dist/router/index.js +1843 -0
  126. package/dist/server-errors.cjs +727 -0
  127. package/dist/server-errors.d.ts +296 -0
  128. package/dist/server-errors.js +728 -0
  129. package/dist/telemetry/index.cjs +2756 -0
  130. package/dist/telemetry/index.d.ts +133 -0
  131. package/dist/telemetry/index.js +2797 -0
  132. package/dist/test/index.cjs +35685 -0
  133. package/dist/test/index.d.ts +186 -0
  134. package/dist/test/index.js +33751 -0
  135. package/dist/test/preview.cjs +15869 -0
  136. package/dist/test/preview.d.ts +54 -0
  137. package/dist/test/preview.js +14440 -0
  138. package/dist/test/spy.cjs +257 -0
  139. package/dist/test/spy.d.ts +66 -0
  140. package/dist/test/spy.js +239 -0
  141. package/dist/theming/create.cjs +232 -0
  142. package/dist/theming/create.d.ts +50 -0
  143. package/dist/theming/create.js +216 -0
  144. package/dist/theming/index.cjs +2665 -0
  145. package/dist/theming/index.d.ts +11939 -0
  146. package/dist/theming/index.js +2485 -0
  147. package/dist/types/index.cjs +27 -0
  148. package/dist/types/index.d.ts +2795 -0
  149. package/dist/types/index.js +7 -0
  150. package/dist/viewport/index.cjs +310 -0
  151. package/dist/viewport/index.d.ts +320 -0
  152. package/dist/viewport/index.js +290 -0
  153. package/dist/viewport/manager.js +400 -0
  154. package/dist/viewport/preview.cjs +35 -0
  155. package/dist/viewport/preview.d.ts +69 -0
  156. package/dist/viewport/preview.js +19 -0
  157. package/package.json +518 -209
  158. package/.eslintrc.cjs +0 -31
  159. package/__mocks__/@aw-web-design/x-default-browser.js +0 -2
  160. package/core/babel/index.cjs +0 -1
  161. package/core/babel/index.d.ts +0 -2
  162. package/core/babel/index.js +0 -1
  163. package/core/builder-manager/index.cjs +0 -1
  164. package/core/builder-manager/index.d.ts +0 -2
  165. package/core/builder-manager/index.js +0 -1
  166. package/core/channels/index.cjs +0 -1
  167. package/core/channels/index.d.ts +0 -2
  168. package/core/channels/index.js +0 -1
  169. package/core/cli/bin/index.cjs +0 -1
  170. package/core/cli/bin/index.d.ts +0 -2
  171. package/core/cli/bin/index.js +0 -1
  172. package/core/cli/index.cjs +0 -1
  173. package/core/cli/index.d.ts +0 -2
  174. package/core/cli/index.js +0 -1
  175. package/core/client-logger/index.cjs +0 -1
  176. package/core/client-logger/index.d.ts +0 -2
  177. package/core/client-logger/index.js +0 -1
  178. package/core/common/index.cjs +0 -1
  179. package/core/common/index.d.ts +0 -2
  180. package/core/common/index.js +0 -1
  181. package/core/components/index.cjs +0 -1
  182. package/core/components/index.d.ts +0 -2
  183. package/core/components/index.js +0 -1
  184. package/core/core-events/index.cjs +0 -1
  185. package/core/core-events/index.d.ts +0 -2
  186. package/core/core-events/index.js +0 -1
  187. package/core/core-server/index.cjs +0 -1
  188. package/core/core-server/index.d.ts +0 -2
  189. package/core/core-server/index.js +0 -1
  190. package/core/core-server/presets/common-manager.js +0 -1
  191. package/core/core-server/presets/common-override-preset.cjs +0 -1
  192. package/core/core-server/presets/common-override-preset.js +0 -1
  193. package/core/core-server/presets/common-preset.cjs +0 -1
  194. package/core/core-server/presets/common-preset.js +0 -1
  195. package/core/csf/index.cjs +0 -1
  196. package/core/csf/index.d.ts +0 -2
  197. package/core/csf/index.js +0 -1
  198. package/core/csf-tools/index.cjs +0 -1
  199. package/core/csf-tools/index.d.ts +0 -2
  200. package/core/csf-tools/index.js +0 -1
  201. package/core/docs-tools/index.cjs +0 -1
  202. package/core/docs-tools/index.d.ts +0 -2
  203. package/core/docs-tools/index.js +0 -1
  204. package/core/index.cjs +0 -1
  205. package/core/index.d.ts +0 -2
  206. package/core/index.js +0 -1
  207. package/core/manager/globals-module-info.cjs +0 -1
  208. package/core/manager/globals-module-info.d.ts +0 -2
  209. package/core/manager/globals-module-info.js +0 -1
  210. package/core/manager/globals-runtime.js +0 -1
  211. package/core/manager/globals.cjs +0 -1
  212. package/core/manager/globals.d.ts +0 -2
  213. package/core/manager/globals.js +0 -1
  214. package/core/manager-api/index.cjs +0 -1
  215. package/core/manager-api/index.d.ts +0 -2
  216. package/core/manager-api/index.js +0 -1
  217. package/core/manager-errors.d.ts +0 -2
  218. package/core/manager-errors.js +0 -1
  219. package/core/node-logger/index.cjs +0 -1
  220. package/core/node-logger/index.d.ts +0 -2
  221. package/core/node-logger/index.js +0 -1
  222. package/core/preview/globals.cjs +0 -1
  223. package/core/preview/globals.d.ts +0 -2
  224. package/core/preview/globals.js +0 -1
  225. package/core/preview/runtime.js +0 -1
  226. package/core/preview-api/index.cjs +0 -1
  227. package/core/preview-api/index.d.ts +0 -2
  228. package/core/preview-api/index.js +0 -1
  229. package/core/preview-errors.cjs +0 -1
  230. package/core/preview-errors.d.ts +0 -2
  231. package/core/preview-errors.js +0 -1
  232. package/core/router/index.cjs +0 -1
  233. package/core/router/index.d.ts +0 -2
  234. package/core/router/index.js +0 -1
  235. package/core/server-errors.cjs +0 -1
  236. package/core/server-errors.d.ts +0 -2
  237. package/core/server-errors.js +0 -1
  238. package/core/telemetry/index.cjs +0 -1
  239. package/core/telemetry/index.d.ts +0 -2
  240. package/core/telemetry/index.js +0 -1
  241. package/core/theming/create.cjs +0 -1
  242. package/core/theming/create.d.ts +0 -2
  243. package/core/theming/create.js +0 -1
  244. package/core/theming/index.cjs +0 -1
  245. package/core/theming/index.d.ts +0 -2
  246. package/core/theming/index.js +0 -1
  247. package/core/types/index.cjs +0 -1
  248. package/core/types/index.d.ts +0 -2
  249. package/core/types/index.js +0 -1
  250. package/core.cjs +0 -0
  251. package/core.d.ts +0 -0
  252. package/core.js +0 -1
  253. package/dist/chunk-OWLSIX54.js +0 -8
  254. package/dist/core-path.cjs +0 -1
  255. package/dist/core-path.d.ts +0 -3
  256. package/dist/core-path.js +0 -9
  257. package/dist/proxy.cjs +0 -1
  258. package/dist/proxy.d.ts +0 -2
  259. package/dist/proxy.js +0 -9
@@ -0,0 +1,4965 @@
1
+ var wc = Object.defineProperty;
2
+ var i = (e, t) => wc(e, "name", { value: t, configurable: !0 });
3
+ var _ = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
4
+
5
+ // ../node_modules/has-symbols/shams.js
6
+ var br = _((Wy, no) => {
7
+ "use strict";
8
+ no.exports = /* @__PURE__ */ i(function() {
9
+ if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
10
+ return !1;
11
+ if (typeof Symbol.iterator == "symbol")
12
+ return !0;
13
+ var t = {}, r = Symbol("test"), n = Object(r);
14
+ if (typeof r == "string" || Object.prototype.toString.call(r) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Sy\
15
+ mbol]")
16
+ return !1;
17
+ var o = 42;
18
+ t[r] = o;
19
+ for (var s in t)
20
+ return !1;
21
+ if (typeof Object.keys == "function" && Object.keys(t).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(
22
+ t).length !== 0)
23
+ return !1;
24
+ var c = Object.getOwnPropertySymbols(t);
25
+ if (c.length !== 1 || c[0] !== r || !Object.prototype.propertyIsEnumerable.call(t, r))
26
+ return !1;
27
+ if (typeof Object.getOwnPropertyDescriptor == "function") {
28
+ var u = (
29
+ /** @type {PropertyDescriptor} */
30
+ Object.getOwnPropertyDescriptor(t, r)
31
+ );
32
+ if (u.value !== o || u.enumerable !== !0)
33
+ return !1;
34
+ }
35
+ return !0;
36
+ }, "hasSymbols");
37
+ });
38
+
39
+ // ../node_modules/has-tostringtag/shams.js
40
+ var mt = _((Yy, oo) => {
41
+ "use strict";
42
+ var nu = br();
43
+ oo.exports = /* @__PURE__ */ i(function() {
44
+ return nu() && !!Symbol.toStringTag;
45
+ }, "hasToStringTagShams");
46
+ });
47
+
48
+ // ../node_modules/es-object-atoms/index.js
49
+ var Sr = _((Hy, io) => {
50
+ "use strict";
51
+ io.exports = Object;
52
+ });
53
+
54
+ // ../node_modules/es-errors/index.js
55
+ var co = _((Jy, so) => {
56
+ "use strict";
57
+ so.exports = Error;
58
+ });
59
+
60
+ // ../node_modules/es-errors/eval.js
61
+ var uo = _((Ky, ao) => {
62
+ "use strict";
63
+ ao.exports = EvalError;
64
+ });
65
+
66
+ // ../node_modules/es-errors/range.js
67
+ var fo = _((Xy, lo) => {
68
+ "use strict";
69
+ lo.exports = RangeError;
70
+ });
71
+
72
+ // ../node_modules/es-errors/ref.js
73
+ var yo = _((Zy, po) => {
74
+ "use strict";
75
+ po.exports = ReferenceError;
76
+ });
77
+
78
+ // ../node_modules/es-errors/syntax.js
79
+ var Er = _((Qy, go) => {
80
+ "use strict";
81
+ go.exports = SyntaxError;
82
+ });
83
+
84
+ // ../node_modules/es-errors/type.js
85
+ var We = _((eg, mo) => {
86
+ "use strict";
87
+ mo.exports = TypeError;
88
+ });
89
+
90
+ // ../node_modules/es-errors/uri.js
91
+ var bo = _((tg, ho) => {
92
+ "use strict";
93
+ ho.exports = URIError;
94
+ });
95
+
96
+ // ../node_modules/math-intrinsics/abs.js
97
+ var Eo = _((rg, So) => {
98
+ "use strict";
99
+ So.exports = Math.abs;
100
+ });
101
+
102
+ // ../node_modules/math-intrinsics/floor.js
103
+ var Oo = _((ng, Ao) => {
104
+ "use strict";
105
+ Ao.exports = Math.floor;
106
+ });
107
+
108
+ // ../node_modules/math-intrinsics/max.js
109
+ var wo = _((og, _o) => {
110
+ "use strict";
111
+ _o.exports = Math.max;
112
+ });
113
+
114
+ // ../node_modules/math-intrinsics/min.js
115
+ var Po = _((ig, To) => {
116
+ "use strict";
117
+ To.exports = Math.min;
118
+ });
119
+
120
+ // ../node_modules/math-intrinsics/pow.js
121
+ var $o = _((sg, Co) => {
122
+ "use strict";
123
+ Co.exports = Math.pow;
124
+ });
125
+
126
+ // ../node_modules/math-intrinsics/round.js
127
+ var Io = _((cg, Ro) => {
128
+ "use strict";
129
+ Ro.exports = Math.round;
130
+ });
131
+
132
+ // ../node_modules/math-intrinsics/isNaN.js
133
+ var jo = _((ag, No) => {
134
+ "use strict";
135
+ No.exports = Number.isNaN || /* @__PURE__ */ i(function(t) {
136
+ return t !== t;
137
+ }, "isNaN");
138
+ });
139
+
140
+ // ../node_modules/math-intrinsics/sign.js
141
+ var xo = _((lg, Mo) => {
142
+ "use strict";
143
+ var ou = jo();
144
+ Mo.exports = /* @__PURE__ */ i(function(t) {
145
+ return ou(t) || t === 0 ? t : t < 0 ? -1 : 1;
146
+ }, "sign");
147
+ });
148
+
149
+ // ../node_modules/gopd/gOPD.js
150
+ var Fo = _((pg, vo) => {
151
+ "use strict";
152
+ vo.exports = Object.getOwnPropertyDescriptor;
153
+ });
154
+
155
+ // ../node_modules/gopd/index.js
156
+ var Ce = _((yg, Lo) => {
157
+ "use strict";
158
+ var ht = Fo();
159
+ if (ht)
160
+ try {
161
+ ht([], "length");
162
+ } catch {
163
+ ht = null;
164
+ }
165
+ Lo.exports = ht;
166
+ });
167
+
168
+ // ../node_modules/es-define-property/index.js
169
+ var Ge = _((gg, Do) => {
170
+ "use strict";
171
+ var dt = Object.defineProperty || !1;
172
+ if (dt)
173
+ try {
174
+ dt({}, "a", { value: 1 });
175
+ } catch {
176
+ dt = !1;
177
+ }
178
+ Do.exports = dt;
179
+ });
180
+
181
+ // ../node_modules/has-symbols/index.js
182
+ var Uo = _((mg, ko) => {
183
+ "use strict";
184
+ var Bo = typeof Symbol < "u" && Symbol, iu = br();
185
+ ko.exports = /* @__PURE__ */ i(function() {
186
+ return typeof Bo != "function" || typeof Symbol != "function" || typeof Bo("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 :
187
+ iu();
188
+ }, "hasNativeSymbols");
189
+ });
190
+
191
+ // ../node_modules/get-proto/Reflect.getPrototypeOf.js
192
+ var Ar = _((dg, qo) => {
193
+ "use strict";
194
+ qo.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
195
+ });
196
+
197
+ // ../node_modules/get-proto/Object.getPrototypeOf.js
198
+ var Or = _((bg, zo) => {
199
+ "use strict";
200
+ var su = Sr();
201
+ zo.exports = su.getPrototypeOf || null;
202
+ });
203
+
204
+ // ../node_modules/function-bind/implementation.js
205
+ var Yo = _((Sg, Go) => {
206
+ "use strict";
207
+ var cu = "Function.prototype.bind called on incompatible ", au = Object.prototype.toString, uu = Math.max, lu = "[object Function]", Wo = /* @__PURE__ */ i(
208
+ function(t, r) {
209
+ for (var n = [], o = 0; o < t.length; o += 1)
210
+ n[o] = t[o];
211
+ for (var s = 0; s < r.length; s += 1)
212
+ n[s + t.length] = r[s];
213
+ return n;
214
+ }, "concatty"), fu = /* @__PURE__ */ i(function(t, r) {
215
+ for (var n = [], o = r || 0, s = 0; o < t.length; o += 1, s += 1)
216
+ n[s] = t[o];
217
+ return n;
218
+ }, "slicy"), pu = /* @__PURE__ */ i(function(e, t) {
219
+ for (var r = "", n = 0; n < e.length; n += 1)
220
+ r += e[n], n + 1 < e.length && (r += t);
221
+ return r;
222
+ }, "joiny");
223
+ Go.exports = /* @__PURE__ */ i(function(t) {
224
+ var r = this;
225
+ if (typeof r != "function" || au.apply(r) !== lu)
226
+ throw new TypeError(cu + r);
227
+ for (var n = fu(arguments, 1), o, s = /* @__PURE__ */ i(function() {
228
+ if (this instanceof o) {
229
+ var y = r.apply(
230
+ this,
231
+ Wo(n, arguments)
232
+ );
233
+ return Object(y) === y ? y : this;
234
+ }
235
+ return r.apply(
236
+ t,
237
+ Wo(n, arguments)
238
+ );
239
+ }, "binder"), c = uu(0, r.length - n.length), u = [], a = 0; a < c; a++)
240
+ u[a] = "$" + a;
241
+ if (o = Function("binder", "return function (" + pu(u, ",") + "){ return binder.apply(this,arguments); }")(s), r.prototype) {
242
+ var f = /* @__PURE__ */ i(function() {
243
+ }, "Empty");
244
+ f.prototype = r.prototype, o.prototype = new f(), f.prototype = null;
245
+ }
246
+ return o;
247
+ }, "bind");
248
+ });
249
+
250
+ // ../node_modules/function-bind/index.js
251
+ var $e = _((Ag, Vo) => {
252
+ "use strict";
253
+ var yu = Yo();
254
+ Vo.exports = Function.prototype.bind || yu;
255
+ });
256
+
257
+ // ../node_modules/call-bind-apply-helpers/functionCall.js
258
+ var bt = _((Og, Ho) => {
259
+ "use strict";
260
+ Ho.exports = Function.prototype.call;
261
+ });
262
+
263
+ // ../node_modules/call-bind-apply-helpers/functionApply.js
264
+ var St = _((_g, Jo) => {
265
+ "use strict";
266
+ Jo.exports = Function.prototype.apply;
267
+ });
268
+
269
+ // ../node_modules/call-bind-apply-helpers/reflectApply.js
270
+ var Xo = _((wg, Ko) => {
271
+ "use strict";
272
+ Ko.exports = typeof Reflect < "u" && Reflect && Reflect.apply;
273
+ });
274
+
275
+ // ../node_modules/call-bind-apply-helpers/actualApply.js
276
+ var _r = _((Tg, Zo) => {
277
+ "use strict";
278
+ var gu = $e(), mu = St(), hu = bt(), du = Xo();
279
+ Zo.exports = du || gu.call(hu, mu);
280
+ });
281
+
282
+ // ../node_modules/call-bind-apply-helpers/index.js
283
+ var Et = _((Pg, Qo) => {
284
+ "use strict";
285
+ var bu = $e(), Su = We(), Eu = bt(), Au = _r();
286
+ Qo.exports = /* @__PURE__ */ i(function(t) {
287
+ if (t.length < 1 || typeof t[0] != "function")
288
+ throw new Su("a function is required");
289
+ return Au(bu, Eu, t);
290
+ }, "callBindBasic");
291
+ });
292
+
293
+ // ../node_modules/dunder-proto/get.js
294
+ var ii = _(($g, oi) => {
295
+ "use strict";
296
+ var Ou = Et(), ei = Ce(), ri;
297
+ try {
298
+ ri = /** @type {{ __proto__?: typeof Array.prototype }} */
299
+ [].__proto__ === Array.prototype;
300
+ } catch (e) {
301
+ if (!e || typeof e != "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS")
302
+ throw e;
303
+ }
304
+ var wr = !!ri && ei && ei(
305
+ Object.prototype,
306
+ /** @type {keyof typeof Object.prototype} */
307
+ "__proto__"
308
+ ), ni = Object, ti = ni.getPrototypeOf;
309
+ oi.exports = wr && typeof wr.get == "function" ? Ou([wr.get]) : typeof ti == "function" ? (
310
+ /** @type {import('./get')} */
311
+ /* @__PURE__ */ i(function(t) {
312
+ return ti(t == null ? t : ni(t));
313
+ }, "getDunder")
314
+ ) : !1;
315
+ });
316
+
317
+ // ../node_modules/get-proto/index.js
318
+ var li = _((Ig, ui) => {
319
+ "use strict";
320
+ var si = Ar(), ci = Or(), ai = ii();
321
+ ui.exports = si ? /* @__PURE__ */ i(function(t) {
322
+ return si(t);
323
+ }, "getProto") : ci ? /* @__PURE__ */ i(function(t) {
324
+ if (!t || typeof t != "object" && typeof t != "function")
325
+ throw new TypeError("getProto: not an object");
326
+ return ci(t);
327
+ }, "getProto") : ai ? /* @__PURE__ */ i(function(t) {
328
+ return ai(t);
329
+ }, "getProto") : null;
330
+ });
331
+
332
+ // ../node_modules/hasown/index.js
333
+ var pi = _((jg, fi) => {
334
+ "use strict";
335
+ var _u = Function.prototype.call, wu = Object.prototype.hasOwnProperty, Tu = $e();
336
+ fi.exports = Tu.call(_u, wu);
337
+ });
338
+
339
+ // ../node_modules/get-intrinsic/index.js
340
+ var _t = _((Mg, bi) => {
341
+ "use strict";
342
+ var R, Pu = Sr(), Cu = co(), $u = uo(), Ru = fo(), Iu = yo(), je = Er(), Ne = We(), Nu = bo(), ju = Eo(), Mu = Oo(), xu = wo(), vu = Po(),
343
+ Fu = $o(), Lu = Io(), Du = xo(), hi = Function, Tr = /* @__PURE__ */ i(function(e) {
344
+ try {
345
+ return hi('"use strict"; return (' + e + ").constructor;")();
346
+ } catch {
347
+ }
348
+ }, "getEvalledConstructor"), Ye = Ce(), Bu = Ge(), Pr = /* @__PURE__ */ i(function() {
349
+ throw new Ne();
350
+ }, "throwTypeError"), ku = Ye ? function() {
351
+ try {
352
+ return arguments.callee, Pr;
353
+ } catch {
354
+ try {
355
+ return Ye(arguments, "callee").get;
356
+ } catch {
357
+ return Pr;
358
+ }
359
+ }
360
+ }() : Pr, Re = Uo()(), U = li(), Uu = Or(), qu = Ar(), di = St(), Ve = bt(), Ie = {}, zu = typeof Uint8Array > "u" || !U ? R : U(Uint8Array),
361
+ Ee = {
362
+ __proto__: null,
363
+ "%AggregateError%": typeof AggregateError > "u" ? R : AggregateError,
364
+ "%Array%": Array,
365
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? R : ArrayBuffer,
366
+ "%ArrayIteratorPrototype%": Re && U ? U([][Symbol.iterator]()) : R,
367
+ "%AsyncFromSyncIteratorPrototype%": R,
368
+ "%AsyncFunction%": Ie,
369
+ "%AsyncGenerator%": Ie,
370
+ "%AsyncGeneratorFunction%": Ie,
371
+ "%AsyncIteratorPrototype%": Ie,
372
+ "%Atomics%": typeof Atomics > "u" ? R : Atomics,
373
+ "%BigInt%": typeof BigInt > "u" ? R : BigInt,
374
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? R : BigInt64Array,
375
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? R : BigUint64Array,
376
+ "%Boolean%": Boolean,
377
+ "%DataView%": typeof DataView > "u" ? R : DataView,
378
+ "%Date%": Date,
379
+ "%decodeURI%": decodeURI,
380
+ "%decodeURIComponent%": decodeURIComponent,
381
+ "%encodeURI%": encodeURI,
382
+ "%encodeURIComponent%": encodeURIComponent,
383
+ "%Error%": Cu,
384
+ "%eval%": eval,
385
+ // eslint-disable-line no-eval
386
+ "%EvalError%": $u,
387
+ "%Float32Array%": typeof Float32Array > "u" ? R : Float32Array,
388
+ "%Float64Array%": typeof Float64Array > "u" ? R : Float64Array,
389
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? R : FinalizationRegistry,
390
+ "%Function%": hi,
391
+ "%GeneratorFunction%": Ie,
392
+ "%Int8Array%": typeof Int8Array > "u" ? R : Int8Array,
393
+ "%Int16Array%": typeof Int16Array > "u" ? R : Int16Array,
394
+ "%Int32Array%": typeof Int32Array > "u" ? R : Int32Array,
395
+ "%isFinite%": isFinite,
396
+ "%isNaN%": isNaN,
397
+ "%IteratorPrototype%": Re && U ? U(U([][Symbol.iterator]())) : R,
398
+ "%JSON%": typeof JSON == "object" ? JSON : R,
399
+ "%Map%": typeof Map > "u" ? R : Map,
400
+ "%MapIteratorPrototype%": typeof Map > "u" || !Re || !U ? R : U((/* @__PURE__ */ new Map())[Symbol.iterator]()),
401
+ "%Math%": Math,
402
+ "%Number%": Number,
403
+ "%Object%": Pu,
404
+ "%Object.getOwnPropertyDescriptor%": Ye,
405
+ "%parseFloat%": parseFloat,
406
+ "%parseInt%": parseInt,
407
+ "%Promise%": typeof Promise > "u" ? R : Promise,
408
+ "%Proxy%": typeof Proxy > "u" ? R : Proxy,
409
+ "%RangeError%": Ru,
410
+ "%ReferenceError%": Iu,
411
+ "%Reflect%": typeof Reflect > "u" ? R : Reflect,
412
+ "%RegExp%": RegExp,
413
+ "%Set%": typeof Set > "u" ? R : Set,
414
+ "%SetIteratorPrototype%": typeof Set > "u" || !Re || !U ? R : U((/* @__PURE__ */ new Set())[Symbol.iterator]()),
415
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? R : SharedArrayBuffer,
416
+ "%String%": String,
417
+ "%StringIteratorPrototype%": Re && U ? U(""[Symbol.iterator]()) : R,
418
+ "%Symbol%": Re ? Symbol : R,
419
+ "%SyntaxError%": je,
420
+ "%ThrowTypeError%": ku,
421
+ "%TypedArray%": zu,
422
+ "%TypeError%": Ne,
423
+ "%Uint8Array%": typeof Uint8Array > "u" ? R : Uint8Array,
424
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? R : Uint8ClampedArray,
425
+ "%Uint16Array%": typeof Uint16Array > "u" ? R : Uint16Array,
426
+ "%Uint32Array%": typeof Uint32Array > "u" ? R : Uint32Array,
427
+ "%URIError%": Nu,
428
+ "%WeakMap%": typeof WeakMap > "u" ? R : WeakMap,
429
+ "%WeakRef%": typeof WeakRef > "u" ? R : WeakRef,
430
+ "%WeakSet%": typeof WeakSet > "u" ? R : WeakSet,
431
+ "%Function.prototype.call%": Ve,
432
+ "%Function.prototype.apply%": di,
433
+ "%Object.defineProperty%": Bu,
434
+ "%Object.getPrototypeOf%": Uu,
435
+ "%Math.abs%": ju,
436
+ "%Math.floor%": Mu,
437
+ "%Math.max%": xu,
438
+ "%Math.min%": vu,
439
+ "%Math.pow%": Fu,
440
+ "%Math.round%": Lu,
441
+ "%Math.sign%": Du,
442
+ "%Reflect.getPrototypeOf%": qu
443
+ };
444
+ if (U)
445
+ try {
446
+ null.error;
447
+ } catch (e) {
448
+ yi = U(U(e)), Ee["%Error.prototype%"] = yi;
449
+ }
450
+ var yi, Wu = /* @__PURE__ */ i(function e(t) {
451
+ var r;
452
+ if (t === "%AsyncFunction%")
453
+ r = Tr("async function () {}");
454
+ else if (t === "%GeneratorFunction%")
455
+ r = Tr("function* () {}");
456
+ else if (t === "%AsyncGeneratorFunction%")
457
+ r = Tr("async function* () {}");
458
+ else if (t === "%AsyncGenerator%") {
459
+ var n = e("%AsyncGeneratorFunction%");
460
+ n && (r = n.prototype);
461
+ } else if (t === "%AsyncIteratorPrototype%") {
462
+ var o = e("%AsyncGenerator%");
463
+ o && U && (r = U(o.prototype));
464
+ }
465
+ return Ee[t] = r, r;
466
+ }, "doEval"), gi = {
467
+ __proto__: null,
468
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
469
+ "%ArrayPrototype%": ["Array", "prototype"],
470
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
471
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
472
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
473
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
474
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
475
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
476
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
477
+ "%BooleanPrototype%": ["Boolean", "prototype"],
478
+ "%DataViewPrototype%": ["DataView", "prototype"],
479
+ "%DatePrototype%": ["Date", "prototype"],
480
+ "%ErrorPrototype%": ["Error", "prototype"],
481
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
482
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
483
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
484
+ "%FunctionPrototype%": ["Function", "prototype"],
485
+ "%Generator%": ["GeneratorFunction", "prototype"],
486
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
487
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
488
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
489
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
490
+ "%JSONParse%": ["JSON", "parse"],
491
+ "%JSONStringify%": ["JSON", "stringify"],
492
+ "%MapPrototype%": ["Map", "prototype"],
493
+ "%NumberPrototype%": ["Number", "prototype"],
494
+ "%ObjectPrototype%": ["Object", "prototype"],
495
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
496
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
497
+ "%PromisePrototype%": ["Promise", "prototype"],
498
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
499
+ "%Promise_all%": ["Promise", "all"],
500
+ "%Promise_reject%": ["Promise", "reject"],
501
+ "%Promise_resolve%": ["Promise", "resolve"],
502
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
503
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
504
+ "%RegExpPrototype%": ["RegExp", "prototype"],
505
+ "%SetPrototype%": ["Set", "prototype"],
506
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
507
+ "%StringPrototype%": ["String", "prototype"],
508
+ "%SymbolPrototype%": ["Symbol", "prototype"],
509
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
510
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
511
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
512
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
513
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
514
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
515
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
516
+ "%URIErrorPrototype%": ["URIError", "prototype"],
517
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
518
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
519
+ }, He = $e(), At = pi(), Gu = He.call(Ve, Array.prototype.concat), Yu = He.call(di, Array.prototype.splice), mi = He.call(Ve, String.prototype.
520
+ replace), Ot = He.call(Ve, String.prototype.slice), Vu = He.call(Ve, RegExp.prototype.exec), Hu = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
521
+ Ju = /\\(\\)?/g, Ku = /* @__PURE__ */ i(function(t) {
522
+ var r = Ot(t, 0, 1), n = Ot(t, -1);
523
+ if (r === "%" && n !== "%")
524
+ throw new je("invalid intrinsic syntax, expected closing `%`");
525
+ if (n === "%" && r !== "%")
526
+ throw new je("invalid intrinsic syntax, expected opening `%`");
527
+ var o = [];
528
+ return mi(t, Hu, function(s, c, u, a) {
529
+ o[o.length] = u ? mi(a, Ju, "$1") : c || s;
530
+ }), o;
531
+ }, "stringToPath"), Xu = /* @__PURE__ */ i(function(t, r) {
532
+ var n = t, o;
533
+ if (At(gi, n) && (o = gi[n], n = "%" + o[0] + "%"), At(Ee, n)) {
534
+ var s = Ee[n];
535
+ if (s === Ie && (s = Wu(n)), typeof s > "u" && !r)
536
+ throw new Ne("intrinsic " + t + " exists, but is not available. Please file an issue!");
537
+ return {
538
+ alias: o,
539
+ name: n,
540
+ value: s
541
+ };
542
+ }
543
+ throw new je("intrinsic " + t + " does not exist!");
544
+ }, "getBaseIntrinsic");
545
+ bi.exports = /* @__PURE__ */ i(function(t, r) {
546
+ if (typeof t != "string" || t.length === 0)
547
+ throw new Ne("intrinsic name must be a non-empty string");
548
+ if (arguments.length > 1 && typeof r != "boolean")
549
+ throw new Ne('"allowMissing" argument must be a boolean');
550
+ if (Vu(/^%?[^%]*%?$/, t) === null)
551
+ throw new je("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
552
+ var n = Ku(t), o = n.length > 0 ? n[0] : "", s = Xu("%" + o + "%", r), c = s.name, u = s.value, a = !1, f = s.alias;
553
+ f && (o = f[0], Yu(n, Gu([0, 1], f)));
554
+ for (var y = 1, l = !0; y < n.length; y += 1) {
555
+ var h = n[y], g = Ot(h, 0, 1), m = Ot(h, -1);
556
+ if ((g === '"' || g === "'" || g === "`" || m === '"' || m === "'" || m === "`") && g !== m)
557
+ throw new je("property names with quotes must have matching quotes");
558
+ if ((h === "constructor" || !l) && (a = !0), o += "." + h, c = "%" + o + "%", At(Ee, c))
559
+ u = Ee[c];
560
+ else if (u != null) {
561
+ if (!(h in u)) {
562
+ if (!r)
563
+ throw new Ne("base intrinsic for " + t + " exists, but the property is not available.");
564
+ return;
565
+ }
566
+ if (Ye && y + 1 >= n.length) {
567
+ var p = Ye(u, h);
568
+ l = !!p, l && "get" in p && !("originalValue" in p.get) ? u = p.get : u = u[h];
569
+ } else
570
+ l = At(u, h), u = u[h];
571
+ l && !a && (Ee[c] = u);
572
+ }
573
+ }
574
+ return u;
575
+ }, "GetIntrinsic");
576
+ });
577
+
578
+ // ../node_modules/define-data-property/index.js
579
+ var Oi = _((vg, Ai) => {
580
+ "use strict";
581
+ var Si = Ge(), Zu = Er(), Me = We(), Ei = Ce();
582
+ Ai.exports = /* @__PURE__ */ i(function(t, r, n) {
583
+ if (!t || typeof t != "object" && typeof t != "function")
584
+ throw new Me("`obj` must be an object or a function`");
585
+ if (typeof r != "string" && typeof r != "symbol")
586
+ throw new Me("`property` must be a string or a symbol`");
587
+ if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
588
+ throw new Me("`nonEnumerable`, if provided, must be a boolean or null");
589
+ if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
590
+ throw new Me("`nonWritable`, if provided, must be a boolean or null");
591
+ if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
592
+ throw new Me("`nonConfigurable`, if provided, must be a boolean or null");
593
+ if (arguments.length > 6 && typeof arguments[6] != "boolean")
594
+ throw new Me("`loose`, if provided, must be a boolean");
595
+ var o = arguments.length > 3 ? arguments[3] : null, s = arguments.length > 4 ? arguments[4] : null, c = arguments.length > 5 ? arguments[5] :
596
+ null, u = arguments.length > 6 ? arguments[6] : !1, a = !!Ei && Ei(t, r);
597
+ if (Si)
598
+ Si(t, r, {
599
+ configurable: c === null && a ? a.configurable : !c,
600
+ enumerable: o === null && a ? a.enumerable : !o,
601
+ value: n,
602
+ writable: s === null && a ? a.writable : !s
603
+ });
604
+ else if (u || !o && !s && !c)
605
+ t[r] = n;
606
+ else
607
+ throw new Zu("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
608
+ }, "defineDataProperty");
609
+ });
610
+
611
+ // ../node_modules/has-property-descriptors/index.js
612
+ var Ti = _((Lg, wi) => {
613
+ "use strict";
614
+ var Cr = Ge(), _i = /* @__PURE__ */ i(function() {
615
+ return !!Cr;
616
+ }, "hasPropertyDescriptors");
617
+ _i.hasArrayLengthDefineBug = /* @__PURE__ */ i(function() {
618
+ if (!Cr)
619
+ return null;
620
+ try {
621
+ return Cr([], "length", { value: 1 }).length !== 1;
622
+ } catch {
623
+ return !0;
624
+ }
625
+ }, "hasArrayLengthDefineBug");
626
+ wi.exports = _i;
627
+ });
628
+
629
+ // ../node_modules/set-function-length/index.js
630
+ var Ii = _((Bg, Ri) => {
631
+ "use strict";
632
+ var Qu = _t(), Pi = Oi(), el = Ti()(), Ci = Ce(), $i = We(), tl = Qu("%Math.floor%");
633
+ Ri.exports = /* @__PURE__ */ i(function(t, r) {
634
+ if (typeof t != "function")
635
+ throw new $i("`fn` is not a function");
636
+ if (typeof r != "number" || r < 0 || r > 4294967295 || tl(r) !== r)
637
+ throw new $i("`length` must be a positive 32-bit integer");
638
+ var n = arguments.length > 2 && !!arguments[2], o = !0, s = !0;
639
+ if ("length" in t && Ci) {
640
+ var c = Ci(t, "length");
641
+ c && !c.configurable && (o = !1), c && !c.writable && (s = !1);
642
+ }
643
+ return (o || s || !n) && (el ? Pi(
644
+ /** @type {Parameters<define>[0]} */
645
+ t,
646
+ "length",
647
+ r,
648
+ !0,
649
+ !0
650
+ ) : Pi(
651
+ /** @type {Parameters<define>[0]} */
652
+ t,
653
+ "length",
654
+ r
655
+ )), t;
656
+ }, "setFunctionLength");
657
+ });
658
+
659
+ // ../node_modules/call-bind-apply-helpers/applyBind.js
660
+ var ji = _((Ug, Ni) => {
661
+ "use strict";
662
+ var rl = $e(), nl = St(), ol = _r();
663
+ Ni.exports = /* @__PURE__ */ i(function() {
664
+ return ol(rl, nl, arguments);
665
+ }, "applyBind");
666
+ });
667
+
668
+ // ../node_modules/call-bind/index.js
669
+ var $r = _((zg, wt) => {
670
+ "use strict";
671
+ var il = Ii(), Mi = Ge(), sl = Et(), xi = ji();
672
+ wt.exports = /* @__PURE__ */ i(function(t) {
673
+ var r = sl(arguments), n = t.length - (arguments.length - 1);
674
+ return il(
675
+ r,
676
+ 1 + (n > 0 ? n : 0),
677
+ !0
678
+ );
679
+ }, "callBind");
680
+ Mi ? Mi(wt.exports, "apply", { value: xi }) : wt.exports.apply = xi;
681
+ });
682
+
683
+ // ../node_modules/call-bind/callBound.js
684
+ var Di = _((Gg, Li) => {
685
+ "use strict";
686
+ var vi = _t(), Fi = $r(), cl = Fi(vi("String.prototype.indexOf"));
687
+ Li.exports = /* @__PURE__ */ i(function(t, r) {
688
+ var n = vi(t, !!r);
689
+ return typeof n == "function" && cl(t, ".prototype.") > -1 ? Fi(n) : n;
690
+ }, "callBoundIntrinsic");
691
+ });
692
+
693
+ // ../node_modules/is-arguments/index.js
694
+ var Ui = _((Vg, ki) => {
695
+ "use strict";
696
+ var al = mt()(), ul = Di(), Rr = ul("Object.prototype.toString"), Tt = /* @__PURE__ */ i(function(t) {
697
+ return al && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : Rr(t) === "[object Arguments]";
698
+ }, "isArguments"), Bi = /* @__PURE__ */ i(function(t) {
699
+ return Tt(t) ? !0 : t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && Rr(t) !== "[object Array]" && Rr(
700
+ t.callee) === "[object Function]";
701
+ }, "isArguments"), ll = function() {
702
+ return Tt(arguments);
703
+ }();
704
+ Tt.isLegacyArguments = Bi;
705
+ ki.exports = ll ? Tt : Bi;
706
+ });
707
+
708
+ // ../node_modules/is-generator-function/index.js
709
+ var Wi = _((Jg, zi) => {
710
+ "use strict";
711
+ var fl = Object.prototype.toString, pl = Function.prototype.toString, yl = /^\s*(?:function)?\*/, qi = mt()(), Ir = Object.getPrototypeOf,
712
+ gl = /* @__PURE__ */ i(function() {
713
+ if (!qi)
714
+ return !1;
715
+ try {
716
+ return Function("return function*() {}")();
717
+ } catch {
718
+ }
719
+ }, "getGeneratorFunc"), Nr;
720
+ zi.exports = /* @__PURE__ */ i(function(t) {
721
+ if (typeof t != "function")
722
+ return !1;
723
+ if (yl.test(pl.call(t)))
724
+ return !0;
725
+ if (!qi) {
726
+ var r = fl.call(t);
727
+ return r === "[object GeneratorFunction]";
728
+ }
729
+ if (!Ir)
730
+ return !1;
731
+ if (typeof Nr > "u") {
732
+ var n = gl();
733
+ Nr = n ? Ir(n) : !1;
734
+ }
735
+ return Ir(t) === Nr;
736
+ }, "isGeneratorFunction");
737
+ });
738
+
739
+ // ../node_modules/is-callable/index.js
740
+ var Hi = _((Xg, Vi) => {
741
+ "use strict";
742
+ var Yi = Function.prototype.toString, xe = typeof Reflect == "object" && Reflect !== null && Reflect.apply, Mr, Pt;
743
+ if (typeof xe == "function" && typeof Object.defineProperty == "function")
744
+ try {
745
+ Mr = Object.defineProperty({}, "length", {
746
+ get: /* @__PURE__ */ i(function() {
747
+ throw Pt;
748
+ }, "get")
749
+ }), Pt = {}, xe(function() {
750
+ throw 42;
751
+ }, null, Mr);
752
+ } catch (e) {
753
+ e !== Pt && (xe = null);
754
+ }
755
+ else
756
+ xe = null;
757
+ var ml = /^\s*class\b/, xr = /* @__PURE__ */ i(function(t) {
758
+ try {
759
+ var r = Yi.call(t);
760
+ return ml.test(r);
761
+ } catch {
762
+ return !1;
763
+ }
764
+ }, "isES6ClassFunction"), jr = /* @__PURE__ */ i(function(t) {
765
+ try {
766
+ return xr(t) ? !1 : (Yi.call(t), !0);
767
+ } catch {
768
+ return !1;
769
+ }
770
+ }, "tryFunctionToStr"), Ct = Object.prototype.toString, hl = "[object Object]", dl = "[object Function]", bl = "[object GeneratorFunction]",
771
+ Sl = "[object HTMLAllCollection]", El = "[object HTML document.all class]", Al = "[object HTMLCollection]", Ol = typeof Symbol == "functio\
772
+ n" && !!Symbol.toStringTag, _l = !(0 in [,]), vr = /* @__PURE__ */ i(function() {
773
+ return !1;
774
+ }, "isDocumentDotAll");
775
+ typeof document == "object" && (Gi = document.all, Ct.call(Gi) === Ct.call(document.all) && (vr = /* @__PURE__ */ i(function(t) {
776
+ if ((_l || !t) && (typeof t > "u" || typeof t == "object"))
777
+ try {
778
+ var r = Ct.call(t);
779
+ return (r === Sl || r === El || r === Al || r === hl) && t("") == null;
780
+ } catch {
781
+ }
782
+ return !1;
783
+ }, "isDocumentDotAll")));
784
+ var Gi;
785
+ Vi.exports = /* @__PURE__ */ i(xe ? function(t) {
786
+ if (vr(t))
787
+ return !0;
788
+ if (!t || typeof t != "function" && typeof t != "object")
789
+ return !1;
790
+ try {
791
+ xe(t, null, Mr);
792
+ } catch (r) {
793
+ if (r !== Pt)
794
+ return !1;
795
+ }
796
+ return !xr(t) && jr(t);
797
+ } : function(t) {
798
+ if (vr(t))
799
+ return !0;
800
+ if (!t || typeof t != "function" && typeof t != "object")
801
+ return !1;
802
+ if (Ol)
803
+ return jr(t);
804
+ if (xr(t))
805
+ return !1;
806
+ var r = Ct.call(t);
807
+ return r !== dl && r !== bl && !/^\[object HTML/.test(r) ? !1 : jr(t);
808
+ }, "isCallable");
809
+ });
810
+
811
+ // ../node_modules/for-each/index.js
812
+ var Xi = _((Qg, Ki) => {
813
+ "use strict";
814
+ var wl = Hi(), Tl = Object.prototype.toString, Ji = Object.prototype.hasOwnProperty, Pl = /* @__PURE__ */ i(function(t, r, n) {
815
+ for (var o = 0, s = t.length; o < s; o++)
816
+ Ji.call(t, o) && (n == null ? r(t[o], o, t) : r.call(n, t[o], o, t));
817
+ }, "forEachArray"), Cl = /* @__PURE__ */ i(function(t, r, n) {
818
+ for (var o = 0, s = t.length; o < s; o++)
819
+ n == null ? r(t.charAt(o), o, t) : r.call(n, t.charAt(o), o, t);
820
+ }, "forEachString"), $l = /* @__PURE__ */ i(function(t, r, n) {
821
+ for (var o in t)
822
+ Ji.call(t, o) && (n == null ? r(t[o], o, t) : r.call(n, t[o], o, t));
823
+ }, "forEachObject"), Rl = /* @__PURE__ */ i(function(t, r, n) {
824
+ if (!wl(r))
825
+ throw new TypeError("iterator must be a function");
826
+ var o;
827
+ arguments.length >= 3 && (o = n), Tl.call(t) === "[object Array]" ? Pl(t, r, o) : typeof t == "string" ? Cl(t, r, o) : $l(t, r, o);
828
+ }, "forEach");
829
+ Ki.exports = Rl;
830
+ });
831
+
832
+ // ../node_modules/possible-typed-array-names/index.js
833
+ var Qi = _((tm, Zi) => {
834
+ "use strict";
835
+ Zi.exports = [
836
+ "Float32Array",
837
+ "Float64Array",
838
+ "Int8Array",
839
+ "Int16Array",
840
+ "Int32Array",
841
+ "Uint8Array",
842
+ "Uint8ClampedArray",
843
+ "Uint16Array",
844
+ "Uint32Array",
845
+ "BigInt64Array",
846
+ "BigUint64Array"
847
+ ];
848
+ });
849
+
850
+ // ../node_modules/available-typed-arrays/index.js
851
+ var ts = _((rm, es) => {
852
+ "use strict";
853
+ var Fr = Qi(), Il = typeof globalThis > "u" ? global : globalThis;
854
+ es.exports = /* @__PURE__ */ i(function() {
855
+ for (var t = [], r = 0; r < Fr.length; r++)
856
+ typeof Il[Fr[r]] == "function" && (t[t.length] = Fr[r]);
857
+ return t;
858
+ }, "availableTypedArrays");
859
+ });
860
+
861
+ // ../node_modules/call-bound/index.js
862
+ var is = _((om, os) => {
863
+ "use strict";
864
+ var rs = _t(), ns = Et(), Nl = ns([rs("%String.prototype.indexOf%")]);
865
+ os.exports = /* @__PURE__ */ i(function(t, r) {
866
+ var n = (
867
+ /** @type {Parameters<typeof callBindBasic>[0][0]} */
868
+ rs(t, !!r)
869
+ );
870
+ return typeof n == "function" && Nl(t, ".prototype.") > -1 ? ns([n]) : n;
871
+ }, "callBoundIntrinsic");
872
+ });
873
+
874
+ // ../node_modules/which-typed-array/index.js
875
+ var Ur = _((sm, us) => {
876
+ "use strict";
877
+ var Rt = Xi(), jl = ts(), ss = $r(), Br = is(), $t = Ce(), Ml = Br("Object.prototype.toString"), as = mt()(), cs = typeof globalThis > "u" ?
878
+ global : globalThis, Dr = jl(), kr = Br("String.prototype.slice"), Lr = Object.getPrototypeOf, xl = Br("Array.prototype.indexOf", !0) || /* @__PURE__ */ i(
879
+ function(t, r) {
880
+ for (var n = 0; n < t.length; n += 1)
881
+ if (t[n] === r)
882
+ return n;
883
+ return -1;
884
+ }, "indexOf"), It = { __proto__: null };
885
+ as && $t && Lr ? Rt(Dr, function(e) {
886
+ var t = new cs[e]();
887
+ if (Symbol.toStringTag in t) {
888
+ var r = Lr(t), n = $t(r, Symbol.toStringTag);
889
+ if (!n) {
890
+ var o = Lr(r);
891
+ n = $t(o, Symbol.toStringTag);
892
+ }
893
+ It["$" + e] = ss(n.get);
894
+ }
895
+ }) : Rt(Dr, function(e) {
896
+ var t = new cs[e](), r = t.slice || t.set;
897
+ r && (It["$" + e] = ss(r));
898
+ });
899
+ var vl = /* @__PURE__ */ i(function(t) {
900
+ var r = !1;
901
+ return Rt(
902
+ // eslint-disable-next-line no-extra-parens
903
+ /** @type {Record<`\$${TypedArrayName}`, Getter>} */
904
+ /** @type {any} */
905
+ It,
906
+ /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
907
+ function(n, o) {
908
+ if (!r)
909
+ try {
910
+ "$" + n(t) === o && (r = kr(o, 1));
911
+ } catch {
912
+ }
913
+ }
914
+ ), r;
915
+ }, "tryAllTypedArrays"), Fl = /* @__PURE__ */ i(function(t) {
916
+ var r = !1;
917
+ return Rt(
918
+ // eslint-disable-next-line no-extra-parens
919
+ /** @type {Record<`\$${TypedArrayName}`, Getter>} */
920
+ /** @type {any} */
921
+ It,
922
+ /** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */
923
+ function(n, o) {
924
+ if (!r)
925
+ try {
926
+ n(t), r = kr(o, 1);
927
+ } catch {
928
+ }
929
+ }
930
+ ), r;
931
+ }, "tryAllSlices");
932
+ us.exports = /* @__PURE__ */ i(function(t) {
933
+ if (!t || typeof t != "object")
934
+ return !1;
935
+ if (!as) {
936
+ var r = kr(Ml(t), 8, -1);
937
+ return xl(Dr, r) > -1 ? r : r !== "Object" ? !1 : Fl(t);
938
+ }
939
+ return $t ? vl(t) : null;
940
+ }, "whichTypedArray");
941
+ });
942
+
943
+ // ../node_modules/is-typed-array/index.js
944
+ var fs = _((am, ls) => {
945
+ "use strict";
946
+ var Ll = Ur();
947
+ ls.exports = /* @__PURE__ */ i(function(t) {
948
+ return !!Ll(t);
949
+ }, "isTypedArray");
950
+ });
951
+
952
+ // ../node_modules/util/support/types.js
953
+ var Ts = _((C) => {
954
+ "use strict";
955
+ var Dl = Ui(), Bl = Wi(), ae = Ur(), ps = fs();
956
+ function ve(e) {
957
+ return e.call.bind(e);
958
+ }
959
+ i(ve, "uncurryThis");
960
+ var ys = typeof BigInt < "u", gs = typeof Symbol < "u", ne = ve(Object.prototype.toString), kl = ve(Number.prototype.valueOf), Ul = ve(String.
961
+ prototype.valueOf), ql = ve(Boolean.prototype.valueOf);
962
+ ys && (ms = ve(BigInt.prototype.valueOf));
963
+ var ms;
964
+ gs && (hs = ve(Symbol.prototype.valueOf));
965
+ var hs;
966
+ function Ke(e, t) {
967
+ if (typeof e != "object")
968
+ return !1;
969
+ try {
970
+ return t(e), !0;
971
+ } catch {
972
+ return !1;
973
+ }
974
+ }
975
+ i(Ke, "checkBoxedPrimitive");
976
+ C.isArgumentsObject = Dl;
977
+ C.isGeneratorFunction = Bl;
978
+ C.isTypedArray = ps;
979
+ function zl(e) {
980
+ return typeof Promise < "u" && e instanceof Promise || e !== null && typeof e == "object" && typeof e.then == "function" && typeof e.catch ==
981
+ "function";
982
+ }
983
+ i(zl, "isPromise");
984
+ C.isPromise = zl;
985
+ function Wl(e) {
986
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : ps(e) || bs(e);
987
+ }
988
+ i(Wl, "isArrayBufferView");
989
+ C.isArrayBufferView = Wl;
990
+ function Gl(e) {
991
+ return ae(e) === "Uint8Array";
992
+ }
993
+ i(Gl, "isUint8Array");
994
+ C.isUint8Array = Gl;
995
+ function Yl(e) {
996
+ return ae(e) === "Uint8ClampedArray";
997
+ }
998
+ i(Yl, "isUint8ClampedArray");
999
+ C.isUint8ClampedArray = Yl;
1000
+ function Vl(e) {
1001
+ return ae(e) === "Uint16Array";
1002
+ }
1003
+ i(Vl, "isUint16Array");
1004
+ C.isUint16Array = Vl;
1005
+ function Hl(e) {
1006
+ return ae(e) === "Uint32Array";
1007
+ }
1008
+ i(Hl, "isUint32Array");
1009
+ C.isUint32Array = Hl;
1010
+ function Jl(e) {
1011
+ return ae(e) === "Int8Array";
1012
+ }
1013
+ i(Jl, "isInt8Array");
1014
+ C.isInt8Array = Jl;
1015
+ function Kl(e) {
1016
+ return ae(e) === "Int16Array";
1017
+ }
1018
+ i(Kl, "isInt16Array");
1019
+ C.isInt16Array = Kl;
1020
+ function Xl(e) {
1021
+ return ae(e) === "Int32Array";
1022
+ }
1023
+ i(Xl, "isInt32Array");
1024
+ C.isInt32Array = Xl;
1025
+ function Zl(e) {
1026
+ return ae(e) === "Float32Array";
1027
+ }
1028
+ i(Zl, "isFloat32Array");
1029
+ C.isFloat32Array = Zl;
1030
+ function Ql(e) {
1031
+ return ae(e) === "Float64Array";
1032
+ }
1033
+ i(Ql, "isFloat64Array");
1034
+ C.isFloat64Array = Ql;
1035
+ function ef(e) {
1036
+ return ae(e) === "BigInt64Array";
1037
+ }
1038
+ i(ef, "isBigInt64Array");
1039
+ C.isBigInt64Array = ef;
1040
+ function tf(e) {
1041
+ return ae(e) === "BigUint64Array";
1042
+ }
1043
+ i(tf, "isBigUint64Array");
1044
+ C.isBigUint64Array = tf;
1045
+ function Nt(e) {
1046
+ return ne(e) === "[object Map]";
1047
+ }
1048
+ i(Nt, "isMapToString");
1049
+ Nt.working = typeof Map < "u" && Nt(/* @__PURE__ */ new Map());
1050
+ function rf(e) {
1051
+ return typeof Map > "u" ? !1 : Nt.working ? Nt(e) : e instanceof Map;
1052
+ }
1053
+ i(rf, "isMap");
1054
+ C.isMap = rf;
1055
+ function jt(e) {
1056
+ return ne(e) === "[object Set]";
1057
+ }
1058
+ i(jt, "isSetToString");
1059
+ jt.working = typeof Set < "u" && jt(/* @__PURE__ */ new Set());
1060
+ function nf(e) {
1061
+ return typeof Set > "u" ? !1 : jt.working ? jt(e) : e instanceof Set;
1062
+ }
1063
+ i(nf, "isSet");
1064
+ C.isSet = nf;
1065
+ function Mt(e) {
1066
+ return ne(e) === "[object WeakMap]";
1067
+ }
1068
+ i(Mt, "isWeakMapToString");
1069
+ Mt.working = typeof WeakMap < "u" && Mt(/* @__PURE__ */ new WeakMap());
1070
+ function of(e) {
1071
+ return typeof WeakMap > "u" ? !1 : Mt.working ? Mt(e) : e instanceof WeakMap;
1072
+ }
1073
+ i(of, "isWeakMap");
1074
+ C.isWeakMap = of;
1075
+ function zr(e) {
1076
+ return ne(e) === "[object WeakSet]";
1077
+ }
1078
+ i(zr, "isWeakSetToString");
1079
+ zr.working = typeof WeakSet < "u" && zr(/* @__PURE__ */ new WeakSet());
1080
+ function sf(e) {
1081
+ return zr(e);
1082
+ }
1083
+ i(sf, "isWeakSet");
1084
+ C.isWeakSet = sf;
1085
+ function xt(e) {
1086
+ return ne(e) === "[object ArrayBuffer]";
1087
+ }
1088
+ i(xt, "isArrayBufferToString");
1089
+ xt.working = typeof ArrayBuffer < "u" && xt(new ArrayBuffer());
1090
+ function ds(e) {
1091
+ return typeof ArrayBuffer > "u" ? !1 : xt.working ? xt(e) : e instanceof ArrayBuffer;
1092
+ }
1093
+ i(ds, "isArrayBuffer");
1094
+ C.isArrayBuffer = ds;
1095
+ function vt(e) {
1096
+ return ne(e) === "[object DataView]";
1097
+ }
1098
+ i(vt, "isDataViewToString");
1099
+ vt.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && vt(new DataView(new ArrayBuffer(1), 0, 1));
1100
+ function bs(e) {
1101
+ return typeof DataView > "u" ? !1 : vt.working ? vt(e) : e instanceof DataView;
1102
+ }
1103
+ i(bs, "isDataView");
1104
+ C.isDataView = bs;
1105
+ var qr = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
1106
+ function Je(e) {
1107
+ return ne(e) === "[object SharedArrayBuffer]";
1108
+ }
1109
+ i(Je, "isSharedArrayBufferToString");
1110
+ function Ss(e) {
1111
+ return typeof qr > "u" ? !1 : (typeof Je.working > "u" && (Je.working = Je(new qr())), Je.working ? Je(e) : e instanceof qr);
1112
+ }
1113
+ i(Ss, "isSharedArrayBuffer");
1114
+ C.isSharedArrayBuffer = Ss;
1115
+ function cf(e) {
1116
+ return ne(e) === "[object AsyncFunction]";
1117
+ }
1118
+ i(cf, "isAsyncFunction");
1119
+ C.isAsyncFunction = cf;
1120
+ function af(e) {
1121
+ return ne(e) === "[object Map Iterator]";
1122
+ }
1123
+ i(af, "isMapIterator");
1124
+ C.isMapIterator = af;
1125
+ function uf(e) {
1126
+ return ne(e) === "[object Set Iterator]";
1127
+ }
1128
+ i(uf, "isSetIterator");
1129
+ C.isSetIterator = uf;
1130
+ function lf(e) {
1131
+ return ne(e) === "[object Generator]";
1132
+ }
1133
+ i(lf, "isGeneratorObject");
1134
+ C.isGeneratorObject = lf;
1135
+ function ff(e) {
1136
+ return ne(e) === "[object WebAssembly.Module]";
1137
+ }
1138
+ i(ff, "isWebAssemblyCompiledModule");
1139
+ C.isWebAssemblyCompiledModule = ff;
1140
+ function Es(e) {
1141
+ return Ke(e, kl);
1142
+ }
1143
+ i(Es, "isNumberObject");
1144
+ C.isNumberObject = Es;
1145
+ function As(e) {
1146
+ return Ke(e, Ul);
1147
+ }
1148
+ i(As, "isStringObject");
1149
+ C.isStringObject = As;
1150
+ function Os(e) {
1151
+ return Ke(e, ql);
1152
+ }
1153
+ i(Os, "isBooleanObject");
1154
+ C.isBooleanObject = Os;
1155
+ function _s(e) {
1156
+ return ys && Ke(e, ms);
1157
+ }
1158
+ i(_s, "isBigIntObject");
1159
+ C.isBigIntObject = _s;
1160
+ function ws(e) {
1161
+ return gs && Ke(e, hs);
1162
+ }
1163
+ i(ws, "isSymbolObject");
1164
+ C.isSymbolObject = ws;
1165
+ function pf(e) {
1166
+ return Es(e) || As(e) || Os(e) || _s(e) || ws(e);
1167
+ }
1168
+ i(pf, "isBoxedPrimitive");
1169
+ C.isBoxedPrimitive = pf;
1170
+ function yf(e) {
1171
+ return typeof Uint8Array < "u" && (ds(e) || Ss(e));
1172
+ }
1173
+ i(yf, "isAnyArrayBuffer");
1174
+ C.isAnyArrayBuffer = yf;
1175
+ ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(e) {
1176
+ Object.defineProperty(C, e, {
1177
+ enumerable: !1,
1178
+ value: /* @__PURE__ */ i(function() {
1179
+ throw new Error(e + " is not supported in userland");
1180
+ }, "value")
1181
+ });
1182
+ });
1183
+ });
1184
+
1185
+ // ../node_modules/util/support/isBufferBrowser.js
1186
+ var Cs = _((pm, Ps) => {
1187
+ Ps.exports = /* @__PURE__ */ i(function(t) {
1188
+ return t && typeof t == "object" && typeof t.copy == "function" && typeof t.fill == "function" && typeof t.readUInt8 == "function";
1189
+ }, "isBuffer");
1190
+ });
1191
+
1192
+ // ../node_modules/inherits/inherits_browser.js
1193
+ var $s = _((gm, Wr) => {
1194
+ typeof Object.create == "function" ? Wr.exports = /* @__PURE__ */ i(function(t, r) {
1195
+ r && (t.super_ = r, t.prototype = Object.create(r.prototype, {
1196
+ constructor: {
1197
+ value: t,
1198
+ enumerable: !1,
1199
+ writable: !0,
1200
+ configurable: !0
1201
+ }
1202
+ }));
1203
+ }, "inherits") : Wr.exports = /* @__PURE__ */ i(function(t, r) {
1204
+ if (r) {
1205
+ t.super_ = r;
1206
+ var n = /* @__PURE__ */ i(function() {
1207
+ }, "TempCtor");
1208
+ n.prototype = r.prototype, t.prototype = new n(), t.prototype.constructor = t;
1209
+ }
1210
+ }, "inherits");
1211
+ });
1212
+
1213
+ // ../node_modules/util/util.js
1214
+ var xs = _(($) => {
1215
+ var Rs = Object.getOwnPropertyDescriptors || /* @__PURE__ */ i(function(t) {
1216
+ for (var r = Object.keys(t), n = {}, o = 0; o < r.length; o++)
1217
+ n[r[o]] = Object.getOwnPropertyDescriptor(t, r[o]);
1218
+ return n;
1219
+ }, "getOwnPropertyDescriptors"), gf = /%[sdj%]/g;
1220
+ $.format = function(e) {
1221
+ if (!qt(e)) {
1222
+ for (var t = [], r = 0; r < arguments.length; r++)
1223
+ t.push(de(arguments[r]));
1224
+ return t.join(" ");
1225
+ }
1226
+ for (var r = 1, n = arguments, o = n.length, s = String(e).replace(gf, function(u) {
1227
+ if (u === "%%") return "%";
1228
+ if (r >= o) return u;
1229
+ switch (u) {
1230
+ case "%s":
1231
+ return String(n[r++]);
1232
+ case "%d":
1233
+ return Number(n[r++]);
1234
+ case "%j":
1235
+ try {
1236
+ return JSON.stringify(n[r++]);
1237
+ } catch {
1238
+ return "[Circular]";
1239
+ }
1240
+ default:
1241
+ return u;
1242
+ }
1243
+ }), c = n[r]; r < o; c = n[++r])
1244
+ Ut(c) || !Fe(c) ? s += " " + c : s += " " + de(c);
1245
+ return s;
1246
+ };
1247
+ $.deprecate = function(e, t) {
1248
+ if (typeof process < "u" && process.noDeprecation === !0)
1249
+ return e;
1250
+ if (typeof process > "u")
1251
+ return function() {
1252
+ return $.deprecate(e, t).apply(this, arguments);
1253
+ };
1254
+ var r = !1;
1255
+ function n() {
1256
+ if (!r) {
1257
+ if (process.throwDeprecation)
1258
+ throw new Error(t);
1259
+ process.traceDeprecation ? console.trace(t) : console.error(t), r = !0;
1260
+ }
1261
+ return e.apply(this, arguments);
1262
+ }
1263
+ return i(n, "deprecated"), n;
1264
+ };
1265
+ var Ft = {}, Is = /^$/;
1266
+ process.env.NODE_DEBUG && (Lt = process.env.NODE_DEBUG, Lt = Lt.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "\
1267
+ $|^").toUpperCase(), Is = new RegExp("^" + Lt + "$", "i"));
1268
+ var Lt;
1269
+ $.debuglog = function(e) {
1270
+ if (e = e.toUpperCase(), !Ft[e])
1271
+ if (Is.test(e)) {
1272
+ var t = process.pid;
1273
+ Ft[e] = function() {
1274
+ var r = $.format.apply($, arguments);
1275
+ console.error("%s %d: %s", e, t, r);
1276
+ };
1277
+ } else
1278
+ Ft[e] = function() {
1279
+ };
1280
+ return Ft[e];
1281
+ };
1282
+ function de(e, t) {
1283
+ var r = {
1284
+ seen: [],
1285
+ stylize: hf
1286
+ };
1287
+ return arguments.length >= 3 && (r.depth = arguments[2]), arguments.length >= 4 && (r.colors = arguments[3]), Hr(t) ? r.showHidden = t :
1288
+ t && $._extend(r, t), Oe(r.showHidden) && (r.showHidden = !1), Oe(r.depth) && (r.depth = 2), Oe(r.colors) && (r.colors = !1), Oe(r.customInspect) &&
1289
+ (r.customInspect = !0), r.colors && (r.stylize = mf), Bt(r, e, r.depth);
1290
+ }
1291
+ i(de, "inspect");
1292
+ $.inspect = de;
1293
+ de.colors = {
1294
+ bold: [1, 22],
1295
+ italic: [3, 23],
1296
+ underline: [4, 24],
1297
+ inverse: [7, 27],
1298
+ white: [37, 39],
1299
+ grey: [90, 39],
1300
+ black: [30, 39],
1301
+ blue: [34, 39],
1302
+ cyan: [36, 39],
1303
+ green: [32, 39],
1304
+ magenta: [35, 39],
1305
+ red: [31, 39],
1306
+ yellow: [33, 39]
1307
+ };
1308
+ de.styles = {
1309
+ special: "cyan",
1310
+ number: "yellow",
1311
+ boolean: "yellow",
1312
+ undefined: "grey",
1313
+ null: "bold",
1314
+ string: "green",
1315
+ date: "magenta",
1316
+ // "name": intentionally not styling
1317
+ regexp: "red"
1318
+ };
1319
+ function mf(e, t) {
1320
+ var r = de.styles[t];
1321
+ return r ? "\x1B[" + de.colors[r][0] + "m" + e + "\x1B[" + de.colors[r][1] + "m" : e;
1322
+ }
1323
+ i(mf, "stylizeWithColor");
1324
+ function hf(e, t) {
1325
+ return e;
1326
+ }
1327
+ i(hf, "stylizeNoColor");
1328
+ function df(e) {
1329
+ var t = {};
1330
+ return e.forEach(function(r, n) {
1331
+ t[r] = !0;
1332
+ }), t;
1333
+ }
1334
+ i(df, "arrayToHash");
1335
+ function Bt(e, t, r) {
1336
+ if (e.customInspect && t && Dt(t.inspect) && // Filter out the util module, it's inspect function is special
1337
+ t.inspect !== $.inspect && // Also filter out any prototype objects using the circular check.
1338
+ !(t.constructor && t.constructor.prototype === t)) {
1339
+ var n = t.inspect(r, e);
1340
+ return qt(n) || (n = Bt(e, n, r)), n;
1341
+ }
1342
+ var o = bf(e, t);
1343
+ if (o)
1344
+ return o;
1345
+ var s = Object.keys(t), c = df(s);
1346
+ if (e.showHidden && (s = Object.getOwnPropertyNames(t)), Ze(t) && (s.indexOf("message") >= 0 || s.indexOf("description") >= 0))
1347
+ return Gr(t);
1348
+ if (s.length === 0) {
1349
+ if (Dt(t)) {
1350
+ var u = t.name ? ": " + t.name : "";
1351
+ return e.stylize("[Function" + u + "]", "special");
1352
+ }
1353
+ if (Xe(t))
1354
+ return e.stylize(RegExp.prototype.toString.call(t), "regexp");
1355
+ if (kt(t))
1356
+ return e.stylize(Date.prototype.toString.call(t), "date");
1357
+ if (Ze(t))
1358
+ return Gr(t);
1359
+ }
1360
+ var a = "", f = !1, y = ["{", "}"];
1361
+ if (Ns(t) && (f = !0, y = ["[", "]"]), Dt(t)) {
1362
+ var l = t.name ? ": " + t.name : "";
1363
+ a = " [Function" + l + "]";
1364
+ }
1365
+ if (Xe(t) && (a = " " + RegExp.prototype.toString.call(t)), kt(t) && (a = " " + Date.prototype.toUTCString.call(t)), Ze(t) && (a = " " +
1366
+ Gr(t)), s.length === 0 && (!f || t.length == 0))
1367
+ return y[0] + a + y[1];
1368
+ if (r < 0)
1369
+ return Xe(t) ? e.stylize(RegExp.prototype.toString.call(t), "regexp") : e.stylize("[Object]", "special");
1370
+ e.seen.push(t);
1371
+ var h;
1372
+ return f ? h = Sf(e, t, r, c, s) : h = s.map(function(g) {
1373
+ return Vr(e, t, r, c, g, f);
1374
+ }), e.seen.pop(), Ef(h, a, y);
1375
+ }
1376
+ i(Bt, "formatValue");
1377
+ function bf(e, t) {
1378
+ if (Oe(t))
1379
+ return e.stylize("undefined", "undefined");
1380
+ if (qt(t)) {
1381
+ var r = "'" + JSON.stringify(t).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
1382
+ return e.stylize(r, "string");
1383
+ }
1384
+ if (js(t))
1385
+ return e.stylize("" + t, "number");
1386
+ if (Hr(t))
1387
+ return e.stylize("" + t, "boolean");
1388
+ if (Ut(t))
1389
+ return e.stylize("null", "null");
1390
+ }
1391
+ i(bf, "formatPrimitive");
1392
+ function Gr(e) {
1393
+ return "[" + Error.prototype.toString.call(e) + "]";
1394
+ }
1395
+ i(Gr, "formatError");
1396
+ function Sf(e, t, r, n, o) {
1397
+ for (var s = [], c = 0, u = t.length; c < u; ++c)
1398
+ Ms(t, String(c)) ? s.push(Vr(
1399
+ e,
1400
+ t,
1401
+ r,
1402
+ n,
1403
+ String(c),
1404
+ !0
1405
+ )) : s.push("");
1406
+ return o.forEach(function(a) {
1407
+ a.match(/^\d+$/) || s.push(Vr(
1408
+ e,
1409
+ t,
1410
+ r,
1411
+ n,
1412
+ a,
1413
+ !0
1414
+ ));
1415
+ }), s;
1416
+ }
1417
+ i(Sf, "formatArray");
1418
+ function Vr(e, t, r, n, o, s) {
1419
+ var c, u, a;
1420
+ if (a = Object.getOwnPropertyDescriptor(t, o) || { value: t[o] }, a.get ? a.set ? u = e.stylize("[Getter/Setter]", "special") : u = e.stylize(
1421
+ "[Getter]", "special") : a.set && (u = e.stylize("[Setter]", "special")), Ms(n, o) || (c = "[" + o + "]"), u || (e.seen.indexOf(a.value) <
1422
+ 0 ? (Ut(r) ? u = Bt(e, a.value, null) : u = Bt(e, a.value, r - 1), u.indexOf(`
1423
+ `) > -1 && (s ? u = u.split(`
1424
+ `).map(function(f) {
1425
+ return " " + f;
1426
+ }).join(`
1427
+ `).slice(2) : u = `
1428
+ ` + u.split(`
1429
+ `).map(function(f) {
1430
+ return " " + f;
1431
+ }).join(`
1432
+ `))) : u = e.stylize("[Circular]", "special")), Oe(c)) {
1433
+ if (s && o.match(/^\d+$/))
1434
+ return u;
1435
+ c = JSON.stringify("" + o), c.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (c = c.slice(1, -1), c = e.stylize(c, "name")) : (c = c.replace(
1436
+ /'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), c = e.stylize(c, "string"));
1437
+ }
1438
+ return c + ": " + u;
1439
+ }
1440
+ i(Vr, "formatProperty");
1441
+ function Ef(e, t, r) {
1442
+ var n = 0, o = e.reduce(function(s, c) {
1443
+ return n++, c.indexOf(`
1444
+ `) >= 0 && n++, s + c.replace(/\u001b\[\d\d?m/g, "").length + 1;
1445
+ }, 0);
1446
+ return o > 60 ? r[0] + (t === "" ? "" : t + `
1447
+ `) + " " + e.join(`,
1448
+ `) + " " + r[1] : r[0] + t + " " + e.join(", ") + " " + r[1];
1449
+ }
1450
+ i(Ef, "reduceToSingleString");
1451
+ $.types = Ts();
1452
+ function Ns(e) {
1453
+ return Array.isArray(e);
1454
+ }
1455
+ i(Ns, "isArray");
1456
+ $.isArray = Ns;
1457
+ function Hr(e) {
1458
+ return typeof e == "boolean";
1459
+ }
1460
+ i(Hr, "isBoolean");
1461
+ $.isBoolean = Hr;
1462
+ function Ut(e) {
1463
+ return e === null;
1464
+ }
1465
+ i(Ut, "isNull");
1466
+ $.isNull = Ut;
1467
+ function Af(e) {
1468
+ return e == null;
1469
+ }
1470
+ i(Af, "isNullOrUndefined");
1471
+ $.isNullOrUndefined = Af;
1472
+ function js(e) {
1473
+ return typeof e == "number";
1474
+ }
1475
+ i(js, "isNumber");
1476
+ $.isNumber = js;
1477
+ function qt(e) {
1478
+ return typeof e == "string";
1479
+ }
1480
+ i(qt, "isString");
1481
+ $.isString = qt;
1482
+ function Of(e) {
1483
+ return typeof e == "symbol";
1484
+ }
1485
+ i(Of, "isSymbol");
1486
+ $.isSymbol = Of;
1487
+ function Oe(e) {
1488
+ return e === void 0;
1489
+ }
1490
+ i(Oe, "isUndefined");
1491
+ $.isUndefined = Oe;
1492
+ function Xe(e) {
1493
+ return Fe(e) && Jr(e) === "[object RegExp]";
1494
+ }
1495
+ i(Xe, "isRegExp");
1496
+ $.isRegExp = Xe;
1497
+ $.types.isRegExp = Xe;
1498
+ function Fe(e) {
1499
+ return typeof e == "object" && e !== null;
1500
+ }
1501
+ i(Fe, "isObject");
1502
+ $.isObject = Fe;
1503
+ function kt(e) {
1504
+ return Fe(e) && Jr(e) === "[object Date]";
1505
+ }
1506
+ i(kt, "isDate");
1507
+ $.isDate = kt;
1508
+ $.types.isDate = kt;
1509
+ function Ze(e) {
1510
+ return Fe(e) && (Jr(e) === "[object Error]" || e instanceof Error);
1511
+ }
1512
+ i(Ze, "isError");
1513
+ $.isError = Ze;
1514
+ $.types.isNativeError = Ze;
1515
+ function Dt(e) {
1516
+ return typeof e == "function";
1517
+ }
1518
+ i(Dt, "isFunction");
1519
+ $.isFunction = Dt;
1520
+ function _f(e) {
1521
+ return e === null || typeof e == "boolean" || typeof e == "number" || typeof e == "string" || typeof e == "symbol" || // ES6 symbol
1522
+ typeof e > "u";
1523
+ }
1524
+ i(_f, "isPrimitive");
1525
+ $.isPrimitive = _f;
1526
+ $.isBuffer = Cs();
1527
+ function Jr(e) {
1528
+ return Object.prototype.toString.call(e);
1529
+ }
1530
+ i(Jr, "objectToString");
1531
+ function Yr(e) {
1532
+ return e < 10 ? "0" + e.toString(10) : e.toString(10);
1533
+ }
1534
+ i(Yr, "pad");
1535
+ var wf = [
1536
+ "Jan",
1537
+ "Feb",
1538
+ "Mar",
1539
+ "Apr",
1540
+ "May",
1541
+ "Jun",
1542
+ "Jul",
1543
+ "Aug",
1544
+ "Sep",
1545
+ "Oct",
1546
+ "Nov",
1547
+ "Dec"
1548
+ ];
1549
+ function Tf() {
1550
+ var e = /* @__PURE__ */ new Date(), t = [
1551
+ Yr(e.getHours()),
1552
+ Yr(e.getMinutes()),
1553
+ Yr(e.getSeconds())
1554
+ ].join(":");
1555
+ return [e.getDate(), wf[e.getMonth()], t].join(" ");
1556
+ }
1557
+ i(Tf, "timestamp");
1558
+ $.log = function() {
1559
+ console.log("%s - %s", Tf(), $.format.apply($, arguments));
1560
+ };
1561
+ $.inherits = $s();
1562
+ $._extend = function(e, t) {
1563
+ if (!t || !Fe(t)) return e;
1564
+ for (var r = Object.keys(t), n = r.length; n--; )
1565
+ e[r[n]] = t[r[n]];
1566
+ return e;
1567
+ };
1568
+ function Ms(e, t) {
1569
+ return Object.prototype.hasOwnProperty.call(e, t);
1570
+ }
1571
+ i(Ms, "hasOwnProperty");
1572
+ var Ae = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
1573
+ $.promisify = /* @__PURE__ */ i(function(t) {
1574
+ if (typeof t != "function")
1575
+ throw new TypeError('The "original" argument must be of type Function');
1576
+ if (Ae && t[Ae]) {
1577
+ var r = t[Ae];
1578
+ if (typeof r != "function")
1579
+ throw new TypeError('The "util.promisify.custom" argument must be of type Function');
1580
+ return Object.defineProperty(r, Ae, {
1581
+ value: r,
1582
+ enumerable: !1,
1583
+ writable: !1,
1584
+ configurable: !0
1585
+ }), r;
1586
+ }
1587
+ function r() {
1588
+ for (var n, o, s = new Promise(function(a, f) {
1589
+ n = a, o = f;
1590
+ }), c = [], u = 0; u < arguments.length; u++)
1591
+ c.push(arguments[u]);
1592
+ c.push(function(a, f) {
1593
+ a ? o(a) : n(f);
1594
+ });
1595
+ try {
1596
+ t.apply(this, c);
1597
+ } catch (a) {
1598
+ o(a);
1599
+ }
1600
+ return s;
1601
+ }
1602
+ return i(r, "fn"), Object.setPrototypeOf(r, Object.getPrototypeOf(t)), Ae && Object.defineProperty(r, Ae, {
1603
+ value: r,
1604
+ enumerable: !1,
1605
+ writable: !1,
1606
+ configurable: !0
1607
+ }), Object.defineProperties(
1608
+ r,
1609
+ Rs(t)
1610
+ );
1611
+ }, "promisify");
1612
+ $.promisify.custom = Ae;
1613
+ function Pf(e, t) {
1614
+ if (!e) {
1615
+ var r = new Error("Promise was rejected with a falsy value");
1616
+ r.reason = e, e = r;
1617
+ }
1618
+ return t(e);
1619
+ }
1620
+ i(Pf, "callbackifyOnRejected");
1621
+ function Cf(e) {
1622
+ if (typeof e != "function")
1623
+ throw new TypeError('The "original" argument must be of type Function');
1624
+ function t() {
1625
+ for (var r = [], n = 0; n < arguments.length; n++)
1626
+ r.push(arguments[n]);
1627
+ var o = r.pop();
1628
+ if (typeof o != "function")
1629
+ throw new TypeError("The last argument must be of type Function");
1630
+ var s = this, c = /* @__PURE__ */ i(function() {
1631
+ return o.apply(s, arguments);
1632
+ }, "cb");
1633
+ e.apply(this, r).then(
1634
+ function(u) {
1635
+ process.nextTick(c.bind(null, null, u));
1636
+ },
1637
+ function(u) {
1638
+ process.nextTick(Pf.bind(null, u, c));
1639
+ }
1640
+ );
1641
+ }
1642
+ return i(t, "callbackified"), Object.setPrototypeOf(t, Object.getPrototypeOf(e)), Object.defineProperties(
1643
+ t,
1644
+ Rs(e)
1645
+ ), t;
1646
+ }
1647
+ i(Cf, "callbackify");
1648
+ $.callbackify = Cf;
1649
+ });
1650
+
1651
+ // src/instrumenter/instrumenter.ts
1652
+ import { once as $p } from "storybook/internal/client-logger";
1653
+ import {
1654
+ FORCE_REMOUNT as Sc,
1655
+ SET_CURRENT_STORY as Rp,
1656
+ STORY_RENDER_PHASE_CHANGED as Ip
1657
+ } from "storybook/internal/core-events";
1658
+ import { global as V } from "@storybook/global";
1659
+
1660
+ // ../node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
1661
+ var Tc = {
1662
+ reset: [0, 0],
1663
+ bold: [1, 22, "\x1B[22m\x1B[1m"],
1664
+ dim: [2, 22, "\x1B[22m\x1B[2m"],
1665
+ italic: [3, 23],
1666
+ underline: [4, 24],
1667
+ inverse: [7, 27],
1668
+ hidden: [8, 28],
1669
+ strikethrough: [9, 29],
1670
+ black: [30, 39],
1671
+ red: [31, 39],
1672
+ green: [32, 39],
1673
+ yellow: [33, 39],
1674
+ blue: [34, 39],
1675
+ magenta: [35, 39],
1676
+ cyan: [36, 39],
1677
+ white: [37, 39],
1678
+ gray: [90, 39],
1679
+ bgBlack: [40, 49],
1680
+ bgRed: [41, 49],
1681
+ bgGreen: [42, 49],
1682
+ bgYellow: [43, 49],
1683
+ bgBlue: [44, 49],
1684
+ bgMagenta: [45, 49],
1685
+ bgCyan: [46, 49],
1686
+ bgWhite: [47, 49],
1687
+ blackBright: [90, 39],
1688
+ redBright: [91, 39],
1689
+ greenBright: [92, 39],
1690
+ yellowBright: [93, 39],
1691
+ blueBright: [94, 39],
1692
+ magentaBright: [95, 39],
1693
+ cyanBright: [96, 39],
1694
+ whiteBright: [97, 39],
1695
+ bgBlackBright: [100, 49],
1696
+ bgRedBright: [101, 49],
1697
+ bgGreenBright: [102, 49],
1698
+ bgYellowBright: [103, 49],
1699
+ bgBlueBright: [104, 49],
1700
+ bgMagentaBright: [105, 49],
1701
+ bgCyanBright: [106, 49],
1702
+ bgWhiteBright: [107, 49]
1703
+ }, Pc = Object.entries(Tc);
1704
+ function Kt(e) {
1705
+ return String(e);
1706
+ }
1707
+ i(Kt, "a");
1708
+ Kt.open = "";
1709
+ Kt.close = "";
1710
+ function bn(e = !1) {
1711
+ let t = typeof process < "u" ? process : void 0, r = t?.env || {}, n = t?.argv || [];
1712
+ return !("NO_COLOR" in r || n.includes("--no-color")) && ("FORCE_COLOR" in r || n.includes("--color") || t?.platform === "win32" || e && r.
1713
+ TERM !== "dumb" || "CI" in r) || typeof window < "u" && !!window.chrome;
1714
+ }
1715
+ i(bn, "C");
1716
+ function Sn(e = !1) {
1717
+ let t = bn(e), r = /* @__PURE__ */ i((c, u, a, f) => {
1718
+ let y = "", l = 0;
1719
+ do
1720
+ y += c.substring(l, f) + a, l = f + u.length, f = c.indexOf(u, l);
1721
+ while (~f);
1722
+ return y + c.substring(l);
1723
+ }, "i"), n = /* @__PURE__ */ i((c, u, a = c) => {
1724
+ let f = /* @__PURE__ */ i((y) => {
1725
+ let l = String(y), h = l.indexOf(u, c.length);
1726
+ return ~h ? c + r(l, u, a, h) + u : c + l + u;
1727
+ }, "o");
1728
+ return f.open = c, f.close = u, f;
1729
+ }, "g"), o = {
1730
+ isColorSupported: t
1731
+ }, s = /* @__PURE__ */ i((c) => `\x1B[${c}m`, "d");
1732
+ for (let [c, u] of Pc)
1733
+ o[c] = t ? n(
1734
+ s(u[0]),
1735
+ s(u[1]),
1736
+ u[2]
1737
+ ) : Kt;
1738
+ return o;
1739
+ }
1740
+ i(Sn, "p");
1741
+
1742
+ // ../node_modules/tinyrainbow/dist/browser.js
1743
+ var ie = Sn();
1744
+
1745
+ // ../node_modules/@vitest/pretty-format/dist/index.js
1746
+ function jn(e, t) {
1747
+ return t.forEach(function(r) {
1748
+ r && typeof r != "string" && !Array.isArray(r) && Object.keys(r).forEach(function(n) {
1749
+ if (n !== "default" && !(n in e)) {
1750
+ var o = Object.getOwnPropertyDescriptor(r, n);
1751
+ Object.defineProperty(e, n, o.get ? o : {
1752
+ enumerable: !0,
1753
+ get: /* @__PURE__ */ i(function() {
1754
+ return r[n];
1755
+ }, "get")
1756
+ });
1757
+ }
1758
+ });
1759
+ }), Object.freeze(e);
1760
+ }
1761
+ i(jn, "_mergeNamespaces");
1762
+ function Cc(e, t) {
1763
+ let r = Object.keys(e), n = t === null ? r : r.sort(t);
1764
+ if (Object.getOwnPropertySymbols)
1765
+ for (let o of Object.getOwnPropertySymbols(e))
1766
+ Object.getOwnPropertyDescriptor(e, o).enumerable && n.push(o);
1767
+ return n;
1768
+ }
1769
+ i(Cc, "getKeysOfEnumerableProperties");
1770
+ function qe(e, t, r, n, o, s, c = ": ") {
1771
+ let u = "", a = 0, f = e.next();
1772
+ if (!f.done) {
1773
+ u += t.spacingOuter;
1774
+ let y = r + t.indent;
1775
+ for (; !f.done; ) {
1776
+ if (u += y, a++ === t.maxWidth) {
1777
+ u += "\u2026";
1778
+ break;
1779
+ }
1780
+ let l = s(
1781
+ f.value[0],
1782
+ t,
1783
+ y,
1784
+ n,
1785
+ o
1786
+ ), h = s(
1787
+ f.value[1],
1788
+ t,
1789
+ y,
1790
+ n,
1791
+ o
1792
+ );
1793
+ u += l + c + h, f = e.next(), f.done ? t.min || (u += ",") : u += `,${t.spacingInner}`;
1794
+ }
1795
+ u += t.spacingOuter + r;
1796
+ }
1797
+ return u;
1798
+ }
1799
+ i(qe, "printIteratorEntries");
1800
+ function tr(e, t, r, n, o, s) {
1801
+ let c = "", u = 0, a = e.next();
1802
+ if (!a.done) {
1803
+ c += t.spacingOuter;
1804
+ let f = r + t.indent;
1805
+ for (; !a.done; ) {
1806
+ if (c += f, u++ === t.maxWidth) {
1807
+ c += "\u2026";
1808
+ break;
1809
+ }
1810
+ c += s(a.value, t, f, n, o), a = e.next(), a.done ? t.min || (c += ",") : c += `,${t.spacingInner}`;
1811
+ }
1812
+ c += t.spacingOuter + r;
1813
+ }
1814
+ return c;
1815
+ }
1816
+ i(tr, "printIteratorValues");
1817
+ function it(e, t, r, n, o, s) {
1818
+ let c = "";
1819
+ e = e instanceof ArrayBuffer ? new DataView(e) : e;
1820
+ let u = /* @__PURE__ */ i((f) => f instanceof DataView, "isDataView"), a = u(e) ? e.byteLength : e.length;
1821
+ if (a > 0) {
1822
+ c += t.spacingOuter;
1823
+ let f = r + t.indent;
1824
+ for (let y = 0; y < a; y++) {
1825
+ if (c += f, y === t.maxWidth) {
1826
+ c += "\u2026";
1827
+ break;
1828
+ }
1829
+ (u(e) || y in e) && (c += s(
1830
+ u(e) ? e.getInt8(y) : e[y],
1831
+ t,
1832
+ f,
1833
+ n,
1834
+ o
1835
+ )), y < a - 1 ? c += `,${t.spacingInner}` : t.min || (c += ",");
1836
+ }
1837
+ c += t.spacingOuter + r;
1838
+ }
1839
+ return c;
1840
+ }
1841
+ i(it, "printListItems");
1842
+ function rr(e, t, r, n, o, s) {
1843
+ let c = "", u = Cc(e, t.compareKeys);
1844
+ if (u.length > 0) {
1845
+ c += t.spacingOuter;
1846
+ let a = r + t.indent;
1847
+ for (let f = 0; f < u.length; f++) {
1848
+ let y = u[f], l = s(y, t, a, n, o), h = s(e[y], t, a, n, o);
1849
+ c += `${a + l}: ${h}`, f < u.length - 1 ? c += `,${t.spacingInner}` : t.min || (c += ",");
1850
+ }
1851
+ c += t.spacingOuter + r;
1852
+ }
1853
+ return c;
1854
+ }
1855
+ i(rr, "printObjectProperties");
1856
+ var $c = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621, nt = " ", Rc = /* @__PURE__ */ i((e, t, r, n, o, s) => {
1857
+ let c = e.toString();
1858
+ if (c === "ArrayContaining" || c === "ArrayNotContaining")
1859
+ return ++n > t.maxDepth ? `[${c}]` : `${c + nt}[${it(
1860
+ e.sample,
1861
+ t,
1862
+ r,
1863
+ n,
1864
+ o,
1865
+ s
1866
+ )}]`;
1867
+ if (c === "ObjectContaining" || c === "ObjectNotContaining")
1868
+ return ++n > t.maxDepth ? `[${c}]` : `${c + nt}{${rr(
1869
+ e.sample,
1870
+ t,
1871
+ r,
1872
+ n,
1873
+ o,
1874
+ s
1875
+ )}}`;
1876
+ if (c === "StringMatching" || c === "StringNotMatching" || c === "StringContaining" || c === "StringNotContaining")
1877
+ return c + nt + s(e.sample, t, r, n, o);
1878
+ if (typeof e.toAsymmetricMatcher != "function")
1879
+ throw new TypeError(
1880
+ `Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`
1881
+ );
1882
+ return e.toAsymmetricMatcher();
1883
+ }, "serialize$5"), Ic = /* @__PURE__ */ i((e) => e && e.$$typeof === $c, "test$5"), Nc = { serialize: Rc, test: Ic }, jc = " ", Mn = /* @__PURE__ */ new Set(
1884
+ ["DOMStringMap", "NamedNodeMap"]), Mc = /^(?:HTML\w*Collection|NodeList)$/;
1885
+ function xc(e) {
1886
+ return Mn.has(e) || Mc.test(e);
1887
+ }
1888
+ i(xc, "testName");
1889
+ var vc = /* @__PURE__ */ i((e) => e && e.constructor && !!e.constructor.name && xc(e.constructor.name), "test$4");
1890
+ function Fc(e) {
1891
+ return e.constructor.name === "NamedNodeMap";
1892
+ }
1893
+ i(Fc, "isNamedNodeMap");
1894
+ var Lc = /* @__PURE__ */ i((e, t, r, n, o, s) => {
1895
+ let c = e.constructor.name;
1896
+ return ++n > t.maxDepth ? `[${c}]` : (t.min ? "" : c + jc) + (Mn.has(c) ? `{${rr(
1897
+ Fc(e) ? [...e].reduce(
1898
+ (u, a) => (u[a.name] = a.value, u),
1899
+ {}
1900
+ ) : { ...e },
1901
+ t,
1902
+ r,
1903
+ n,
1904
+ o,
1905
+ s
1906
+ )}}` : `[${it(
1907
+ [...e],
1908
+ t,
1909
+ r,
1910
+ n,
1911
+ o,
1912
+ s
1913
+ )}]`);
1914
+ }, "serialize$4"), Dc = { serialize: Lc, test: vc };
1915
+ function xn(e) {
1916
+ return e.replaceAll("<", "&lt;").replaceAll(">", "&gt;");
1917
+ }
1918
+ i(xn, "escapeHTML");
1919
+ function nr(e, t, r, n, o, s, c) {
1920
+ let u = n + r.indent, a = r.colors;
1921
+ return e.map((f) => {
1922
+ let y = t[f], l = c(y, r, u, o, s);
1923
+ return typeof y != "string" && (l.includes(`
1924
+ `) && (l = r.spacingOuter + u + l + r.spacingOuter + n), l = `{${l}}`), `${r.spacingInner + n + a.prop.open + f + a.prop.close}=${a.value.open}${l}${a.
1925
+ value.close}`;
1926
+ }).join("");
1927
+ }
1928
+ i(nr, "printProps");
1929
+ function or(e, t, r, n, o, s) {
1930
+ return e.map(
1931
+ (c) => t.spacingOuter + r + (typeof c == "string" ? vn(c, t) : s(c, t, r, n, o))
1932
+ ).join("");
1933
+ }
1934
+ i(or, "printChildren");
1935
+ function vn(e, t) {
1936
+ let r = t.colors.content;
1937
+ return r.open + xn(e) + r.close;
1938
+ }
1939
+ i(vn, "printText");
1940
+ function Bc(e, t) {
1941
+ let r = t.colors.comment;
1942
+ return `${r.open}<!--${xn(e)}-->${r.close}`;
1943
+ }
1944
+ i(Bc, "printComment");
1945
+ function ir(e, t, r, n, o) {
1946
+ let s = n.colors.tag;
1947
+ return `${s.open}<${e}${t && s.close + t + n.spacingOuter + o + s.open}${r ? `>${s.close}${r}${n.spacingOuter}${o}${s.open}</${e}` : `${t &&
1948
+ !n.min ? "" : " "}/`}>${s.close}`;
1949
+ }
1950
+ i(ir, "printElement");
1951
+ function sr(e, t) {
1952
+ let r = t.colors.tag;
1953
+ return `${r.open}<${e}${r.close} \u2026${r.open} />${r.close}`;
1954
+ }
1955
+ i(sr, "printElementAsLeaf");
1956
+ var kc = 1, Fn = 3, Ln = 8, Dn = 11, Uc = /^(?:(?:HTML|SVG)\w*)?Element$/;
1957
+ function qc(e) {
1958
+ try {
1959
+ return typeof e.hasAttribute == "function" && e.hasAttribute("is");
1960
+ } catch {
1961
+ return !1;
1962
+ }
1963
+ }
1964
+ i(qc, "testHasAttribute");
1965
+ function zc(e) {
1966
+ let t = e.constructor.name, { nodeType: r, tagName: n } = e, o = typeof n == "string" && n.includes("-") || qc(e);
1967
+ return r === kc && (Uc.test(t) || o) || r === Fn && t === "Text" || r === Ln && t === "Comment" || r === Dn && t === "DocumentFragment";
1968
+ }
1969
+ i(zc, "testNode");
1970
+ var Wc = /* @__PURE__ */ i((e) => {
1971
+ var t;
1972
+ return ((t = e?.constructor) == null ? void 0 : t.name) && zc(e);
1973
+ }, "test$3");
1974
+ function Gc(e) {
1975
+ return e.nodeType === Fn;
1976
+ }
1977
+ i(Gc, "nodeIsText");
1978
+ function Yc(e) {
1979
+ return e.nodeType === Ln;
1980
+ }
1981
+ i(Yc, "nodeIsComment");
1982
+ function Xt(e) {
1983
+ return e.nodeType === Dn;
1984
+ }
1985
+ i(Xt, "nodeIsFragment");
1986
+ var Vc = /* @__PURE__ */ i((e, t, r, n, o, s) => {
1987
+ if (Gc(e))
1988
+ return vn(e.data, t);
1989
+ if (Yc(e))
1990
+ return Bc(e.data, t);
1991
+ let c = Xt(e) ? "DocumentFragment" : e.tagName.toLowerCase();
1992
+ return ++n > t.maxDepth ? sr(c, t) : ir(
1993
+ c,
1994
+ nr(
1995
+ Xt(e) ? [] : Array.from(e.attributes, (u) => u.name).sort(),
1996
+ Xt(e) ? {} : [...e.attributes].reduce(
1997
+ (u, a) => (u[a.name] = a.value, u),
1998
+ {}
1999
+ ),
2000
+ t,
2001
+ r + t.indent,
2002
+ n,
2003
+ o,
2004
+ s
2005
+ ),
2006
+ or(
2007
+ Array.prototype.slice.call(e.childNodes || e.children),
2008
+ t,
2009
+ r + t.indent,
2010
+ n,
2011
+ o,
2012
+ s
2013
+ ),
2014
+ t,
2015
+ r
2016
+ );
2017
+ }, "serialize$3"), Hc = { serialize: Vc, test: Wc }, Jc = "@@__IMMUTABLE_ITERABLE__@@", Kc = "@@__IMMUTABLE_LIST__@@", Xc = "@@__IMMUTABLE_K\
2018
+ EYED__@@", Zc = "@@__IMMUTABLE_MAP__@@", En = "@@__IMMUTABLE_ORDERED__@@", Qc = "@@__IMMUTABLE_RECORD__@@", ea = "@@__IMMUTABLE_SEQ__@@", ta = "\
2019
+ @@__IMMUTABLE_SET__@@", ra = "@@__IMMUTABLE_STACK__@@", Pe = /* @__PURE__ */ i((e) => `Immutable.${e}`, "getImmutableName"), ct = /* @__PURE__ */ i(
2020
+ (e) => `[${e}]`, "printAsLeaf"), Ue = " ", An = "\u2026";
2021
+ function na(e, t, r, n, o, s, c) {
2022
+ return ++n > t.maxDepth ? ct(Pe(c)) : `${Pe(c) + Ue}{${qe(
2023
+ e.entries(),
2024
+ t,
2025
+ r,
2026
+ n,
2027
+ o,
2028
+ s
2029
+ )}}`;
2030
+ }
2031
+ i(na, "printImmutableEntries");
2032
+ function oa(e) {
2033
+ let t = 0;
2034
+ return {
2035
+ next() {
2036
+ if (t < e._keys.length) {
2037
+ let r = e._keys[t++];
2038
+ return { done: !1, value: [r, e.get(r)] };
2039
+ }
2040
+ return { done: !0, value: void 0 };
2041
+ }
2042
+ };
2043
+ }
2044
+ i(oa, "getRecordEntries");
2045
+ function ia(e, t, r, n, o, s) {
2046
+ let c = Pe(e._name || "Record");
2047
+ return ++n > t.maxDepth ? ct(c) : `${c + Ue}{${qe(
2048
+ oa(e),
2049
+ t,
2050
+ r,
2051
+ n,
2052
+ o,
2053
+ s
2054
+ )}}`;
2055
+ }
2056
+ i(ia, "printImmutableRecord");
2057
+ function sa(e, t, r, n, o, s) {
2058
+ let c = Pe("Seq");
2059
+ return ++n > t.maxDepth ? ct(c) : e[Xc] ? `${c + Ue}{${// from Immutable collection of entries or from ECMAScript object
2060
+ e._iter || e._object ? qe(
2061
+ e.entries(),
2062
+ t,
2063
+ r,
2064
+ n,
2065
+ o,
2066
+ s
2067
+ ) : An}}` : `${c + Ue}[${e._iter || e._array || e._collection || e._iterable ? tr(
2068
+ e.values(),
2069
+ t,
2070
+ r,
2071
+ n,
2072
+ o,
2073
+ s
2074
+ ) : An}]`;
2075
+ }
2076
+ i(sa, "printImmutableSeq");
2077
+ function Zt(e, t, r, n, o, s, c) {
2078
+ return ++n > t.maxDepth ? ct(Pe(c)) : `${Pe(c) + Ue}[${tr(
2079
+ e.values(),
2080
+ t,
2081
+ r,
2082
+ n,
2083
+ o,
2084
+ s
2085
+ )}]`;
2086
+ }
2087
+ i(Zt, "printImmutableValues");
2088
+ var ca = /* @__PURE__ */ i((e, t, r, n, o, s) => e[Zc] ? na(
2089
+ e,
2090
+ t,
2091
+ r,
2092
+ n,
2093
+ o,
2094
+ s,
2095
+ e[En] ? "OrderedMap" : "Map"
2096
+ ) : e[Kc] ? Zt(
2097
+ e,
2098
+ t,
2099
+ r,
2100
+ n,
2101
+ o,
2102
+ s,
2103
+ "List"
2104
+ ) : e[ta] ? Zt(
2105
+ e,
2106
+ t,
2107
+ r,
2108
+ n,
2109
+ o,
2110
+ s,
2111
+ e[En] ? "OrderedSet" : "Set"
2112
+ ) : e[ra] ? Zt(
2113
+ e,
2114
+ t,
2115
+ r,
2116
+ n,
2117
+ o,
2118
+ s,
2119
+ "Stack"
2120
+ ) : e[ea] ? sa(e, t, r, n, o, s) : ia(e, t, r, n, o, s), "serialize$2"), aa = /* @__PURE__ */ i((e) => e && (e[Jc] === !0 || e[Qc] === !0), "\
2121
+ test$2"), ua = { serialize: ca, test: aa };
2122
+ function Bn(e) {
2123
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2124
+ }
2125
+ i(Bn, "getDefaultExportFromCjs");
2126
+ var Qt = { exports: {} };
2127
+ var j = {};
2128
+ var On;
2129
+ function la() {
2130
+ return On || (On = 1, function() {
2131
+ function e(p) {
2132
+ if (typeof p == "object" && p !== null) {
2133
+ var d = p.$$typeof;
2134
+ switch (d) {
2135
+ case t:
2136
+ switch (p = p.type, p) {
2137
+ case n:
2138
+ case s:
2139
+ case o:
2140
+ case f:
2141
+ case y:
2142
+ return p;
2143
+ default:
2144
+ switch (p = p && p.$$typeof, p) {
2145
+ case u:
2146
+ case a:
2147
+ case h:
2148
+ case l:
2149
+ return p;
2150
+ case c:
2151
+ return p;
2152
+ default:
2153
+ return d;
2154
+ }
2155
+ }
2156
+ case r:
2157
+ return d;
2158
+ }
2159
+ }
2160
+ }
2161
+ i(e, "typeOf");
2162
+ var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("reac\
2163
+ t.strict_mode"), s = Symbol.for("react.profiler"), c = Symbol.for("react.consumer"), u = Symbol.for("react.context"), a = Symbol.for("react.\
2164
+ forward_ref"), f = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), h = Symbol.for("react.\
2165
+ lazy"), g = Symbol.for("react.offscreen"), m = Symbol.for("react.client.reference");
2166
+ j.ContextConsumer = c, j.ContextProvider = u, j.Element = t, j.ForwardRef = a, j.Fragment = n, j.Lazy = h, j.Memo = l, j.Portal = r, j.Profiler =
2167
+ s, j.StrictMode = o, j.Suspense = f, j.SuspenseList = y, j.isContextConsumer = function(p) {
2168
+ return e(p) === c;
2169
+ }, j.isContextProvider = function(p) {
2170
+ return e(p) === u;
2171
+ }, j.isElement = function(p) {
2172
+ return typeof p == "object" && p !== null && p.$$typeof === t;
2173
+ }, j.isForwardRef = function(p) {
2174
+ return e(p) === a;
2175
+ }, j.isFragment = function(p) {
2176
+ return e(p) === n;
2177
+ }, j.isLazy = function(p) {
2178
+ return e(p) === h;
2179
+ }, j.isMemo = function(p) {
2180
+ return e(p) === l;
2181
+ }, j.isPortal = function(p) {
2182
+ return e(p) === r;
2183
+ }, j.isProfiler = function(p) {
2184
+ return e(p) === s;
2185
+ }, j.isStrictMode = function(p) {
2186
+ return e(p) === o;
2187
+ }, j.isSuspense = function(p) {
2188
+ return e(p) === f;
2189
+ }, j.isSuspenseList = function(p) {
2190
+ return e(p) === y;
2191
+ }, j.isValidElementType = function(p) {
2192
+ return typeof p == "string" || typeof p == "function" || p === n || p === s || p === o || p === f || p === y || p === g || typeof p ==
2193
+ "object" && p !== null && (p.$$typeof === h || p.$$typeof === l || p.$$typeof === u || p.$$typeof === c || p.$$typeof === a || p.$$typeof ===
2194
+ m || p.getModuleId !== void 0);
2195
+ }, j.typeOf = e;
2196
+ }()), j;
2197
+ }
2198
+ i(la, "requireReactIs_development$1");
2199
+ var _n;
2200
+ function fa() {
2201
+ return _n || (_n = 1, Qt.exports = la()), Qt.exports;
2202
+ }
2203
+ i(fa, "requireReactIs$1");
2204
+ var kn = /* @__PURE__ */ fa(), pa = /* @__PURE__ */ Bn(kn), ya = /* @__PURE__ */ jn({
2205
+ __proto__: null,
2206
+ default: pa
2207
+ }, [kn]), er = { exports: {} };
2208
+ var I = {};
2209
+ var wn;
2210
+ function ga() {
2211
+ return wn || (wn = 1, function() {
2212
+ var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"),
2213
+ o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.server_contex\
2214
+ t"), a = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), l = Symbol.for("react.mem\
2215
+ o"), h = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), m = !1, p = !1, d = !1, S = !1, A = !1, T;
2216
+ T = Symbol.for("react.module.reference");
2217
+ function b(w) {
2218
+ return !!(typeof w == "string" || typeof w == "function" || w === r || w === o || A || w === n || w === f || w === y || S || w === g ||
2219
+ m || p || d || typeof w == "object" && w !== null && (w.$$typeof === h || w.$$typeof === l || w.$$typeof === s || w.$$typeof === c || w.
2220
+ $$typeof === a || // This needs to include all possible module reference object
2221
+ // types supported by any Flight configuration anywhere since
2222
+ // we don't know which Flight build this will end up being used
2223
+ // with.
2224
+ w.$$typeof === T || w.getModuleId !== void 0));
2225
+ }
2226
+ i(b, "isValidElementType");
2227
+ function E(w) {
2228
+ if (typeof w == "object" && w !== null) {
2229
+ var Jt = w.$$typeof;
2230
+ switch (Jt) {
2231
+ case e:
2232
+ var rt = w.type;
2233
+ switch (rt) {
2234
+ case r:
2235
+ case o:
2236
+ case n:
2237
+ case f:
2238
+ case y:
2239
+ return rt;
2240
+ default:
2241
+ var dn = rt && rt.$$typeof;
2242
+ switch (dn) {
2243
+ case u:
2244
+ case c:
2245
+ case a:
2246
+ case h:
2247
+ case l:
2248
+ case s:
2249
+ return dn;
2250
+ default:
2251
+ return Jt;
2252
+ }
2253
+ }
2254
+ case t:
2255
+ return Jt;
2256
+ }
2257
+ }
2258
+ }
2259
+ i(E, "typeOf");
2260
+ var P = c, O = s, N = e, Z = a, oe = r, v = h, z = l, Q = t, Y = o, x = n, L = f, D = y, ee = !1, k = !1;
2261
+ function J(w) {
2262
+ return ee || (ee = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
2263
+ }
2264
+ i(J, "isAsyncMode");
2265
+ function ue(w) {
2266
+ return k || (k = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
2267
+ }
2268
+ i(ue, "isConcurrentMode");
2269
+ function K(w) {
2270
+ return E(w) === c;
2271
+ }
2272
+ i(K, "isContextConsumer");
2273
+ function X(w) {
2274
+ return E(w) === s;
2275
+ }
2276
+ i(X, "isContextProvider");
2277
+ function pe(w) {
2278
+ return typeof w == "object" && w !== null && w.$$typeof === e;
2279
+ }
2280
+ i(pe, "isElement");
2281
+ function te(w) {
2282
+ return E(w) === a;
2283
+ }
2284
+ i(te, "isForwardRef");
2285
+ function H(w) {
2286
+ return E(w) === r;
2287
+ }
2288
+ i(H, "isFragment");
2289
+ function le(w) {
2290
+ return E(w) === h;
2291
+ }
2292
+ i(le, "isLazy");
2293
+ function Te(w) {
2294
+ return E(w) === l;
2295
+ }
2296
+ i(Te, "isMemo");
2297
+ function me(w) {
2298
+ return E(w) === t;
2299
+ }
2300
+ i(me, "isPortal");
2301
+ function ke(w) {
2302
+ return E(w) === o;
2303
+ }
2304
+ i(ke, "isProfiler");
2305
+ function et(w) {
2306
+ return E(w) === n;
2307
+ }
2308
+ i(et, "isStrictMode");
2309
+ function tt(w) {
2310
+ return E(w) === f;
2311
+ }
2312
+ i(tt, "isSuspense");
2313
+ function _c(w) {
2314
+ return E(w) === y;
2315
+ }
2316
+ i(_c, "isSuspenseList"), I.ContextConsumer = P, I.ContextProvider = O, I.Element = N, I.ForwardRef = Z, I.Fragment = oe, I.Lazy = v, I.Memo =
2317
+ z, I.Portal = Q, I.Profiler = Y, I.StrictMode = x, I.Suspense = L, I.SuspenseList = D, I.isAsyncMode = J, I.isConcurrentMode = ue, I.isContextConsumer =
2318
+ K, I.isContextProvider = X, I.isElement = pe, I.isForwardRef = te, I.isFragment = H, I.isLazy = le, I.isMemo = Te, I.isPortal = me, I.isProfiler =
2319
+ ke, I.isStrictMode = et, I.isSuspense = tt, I.isSuspenseList = _c, I.isValidElementType = b, I.typeOf = E;
2320
+ }()), I;
2321
+ }
2322
+ i(ga, "requireReactIs_development");
2323
+ var Tn;
2324
+ function ma() {
2325
+ return Tn || (Tn = 1, er.exports = ga()), er.exports;
2326
+ }
2327
+ i(ma, "requireReactIs");
2328
+ var Un = ma(), ha = /* @__PURE__ */ Bn(Un), da = /* @__PURE__ */ jn({
2329
+ __proto__: null,
2330
+ default: ha
2331
+ }, [Un]), ba = [
2332
+ "isAsyncMode",
2333
+ "isConcurrentMode",
2334
+ "isContextConsumer",
2335
+ "isContextProvider",
2336
+ "isElement",
2337
+ "isForwardRef",
2338
+ "isFragment",
2339
+ "isLazy",
2340
+ "isMemo",
2341
+ "isPortal",
2342
+ "isProfiler",
2343
+ "isStrictMode",
2344
+ "isSuspense",
2345
+ "isSuspenseList",
2346
+ "isValidElementType"
2347
+ ], be = Object.fromEntries(
2348
+ ba.map((e) => [e, (t) => da[e](t) || ya[e](t)])
2349
+ );
2350
+ function qn(e, t = []) {
2351
+ if (Array.isArray(e))
2352
+ for (let r of e)
2353
+ qn(r, t);
2354
+ else e != null && e !== !1 && e !== "" && t.push(e);
2355
+ return t;
2356
+ }
2357
+ i(qn, "getChildren");
2358
+ function Pn(e) {
2359
+ let t = e.type;
2360
+ if (typeof t == "string")
2361
+ return t;
2362
+ if (typeof t == "function")
2363
+ return t.displayName || t.name || "Unknown";
2364
+ if (be.isFragment(e))
2365
+ return "React.Fragment";
2366
+ if (be.isSuspense(e))
2367
+ return "React.Suspense";
2368
+ if (typeof t == "object" && t !== null) {
2369
+ if (be.isContextProvider(e))
2370
+ return "Context.Provider";
2371
+ if (be.isContextConsumer(e))
2372
+ return "Context.Consumer";
2373
+ if (be.isForwardRef(e)) {
2374
+ if (t.displayName)
2375
+ return t.displayName;
2376
+ let r = t.render.displayName || t.render.name || "";
2377
+ return r === "" ? "ForwardRef" : `ForwardRef(${r})`;
2378
+ }
2379
+ if (be.isMemo(e)) {
2380
+ let r = t.displayName || t.type.displayName || t.type.name || "";
2381
+ return r === "" ? "Memo" : `Memo(${r})`;
2382
+ }
2383
+ }
2384
+ return "UNDEFINED";
2385
+ }
2386
+ i(Pn, "getType");
2387
+ function Sa(e) {
2388
+ let { props: t } = e;
2389
+ return Object.keys(t).filter((r) => r !== "children" && t[r] !== void 0).sort();
2390
+ }
2391
+ i(Sa, "getPropKeys$1");
2392
+ var Ea = /* @__PURE__ */ i((e, t, r, n, o, s) => ++n > t.maxDepth ? sr(Pn(e), t) : ir(
2393
+ Pn(e),
2394
+ nr(
2395
+ Sa(e),
2396
+ e.props,
2397
+ t,
2398
+ r + t.indent,
2399
+ n,
2400
+ o,
2401
+ s
2402
+ ),
2403
+ or(
2404
+ qn(e.props.children),
2405
+ t,
2406
+ r + t.indent,
2407
+ n,
2408
+ o,
2409
+ s
2410
+ ),
2411
+ t,
2412
+ r
2413
+ ), "serialize$1"), Aa = /* @__PURE__ */ i((e) => e != null && be.isElement(e), "test$1"), Oa = { serialize: Ea, test: Aa }, _a = typeof Symbol ==
2414
+ "function" && Symbol.for ? Symbol.for("react.test.json") : 245830487;
2415
+ function wa(e) {
2416
+ let { props: t } = e;
2417
+ return t ? Object.keys(t).filter((r) => t[r] !== void 0).sort() : [];
2418
+ }
2419
+ i(wa, "getPropKeys");
2420
+ var Ta = /* @__PURE__ */ i((e, t, r, n, o, s) => ++n > t.maxDepth ? sr(e.type, t) : ir(
2421
+ e.type,
2422
+ e.props ? nr(
2423
+ wa(e),
2424
+ e.props,
2425
+ t,
2426
+ r + t.indent,
2427
+ n,
2428
+ o,
2429
+ s
2430
+ ) : "",
2431
+ e.children ? or(
2432
+ e.children,
2433
+ t,
2434
+ r + t.indent,
2435
+ n,
2436
+ o,
2437
+ s
2438
+ ) : "",
2439
+ t,
2440
+ r
2441
+ ), "serialize"), Pa = /* @__PURE__ */ i((e) => e && e.$$typeof === _a, "test"), Ca = { serialize: Ta, test: Pa }, zn = Object.prototype.toString,
2442
+ $a = Date.prototype.toISOString, Ra = Error.prototype.toString, Cn = RegExp.prototype.toString;
2443
+ function ot(e) {
2444
+ return typeof e.constructor == "function" && e.constructor.name || "Object";
2445
+ }
2446
+ i(ot, "getConstructorName");
2447
+ function Ia(e) {
2448
+ return typeof window < "u" && e === window;
2449
+ }
2450
+ i(Ia, "isWindow");
2451
+ var Na = /^Symbol\((.*)\)(.*)$/, ja = /\n/g, ar = class ar extends Error {
2452
+ constructor(t, r) {
2453
+ super(t), this.stack = r, this.name = this.constructor.name;
2454
+ }
2455
+ };
2456
+ i(ar, "PrettyFormatPluginError");
2457
+ var st = ar;
2458
+ function Ma(e) {
2459
+ return e === "[object Array]" || e === "[object ArrayBuffer]" || e === "[object DataView]" || e === "[object Float32Array]" || e === "[obj\
2460
+ ect Float64Array]" || e === "[object Int8Array]" || e === "[object Int16Array]" || e === "[object Int32Array]" || e === "[object Uint8Array]" ||
2461
+ e === "[object Uint8ClampedArray]" || e === "[object Uint16Array]" || e === "[object Uint32Array]";
2462
+ }
2463
+ i(Ma, "isToStringedArrayType");
2464
+ function xa(e) {
2465
+ return Object.is(e, -0) ? "-0" : String(e);
2466
+ }
2467
+ i(xa, "printNumber");
2468
+ function va(e) {
2469
+ return `${e}n`;
2470
+ }
2471
+ i(va, "printBigInt");
2472
+ function $n(e, t) {
2473
+ return t ? `[Function ${e.name || "anonymous"}]` : "[Function]";
2474
+ }
2475
+ i($n, "printFunction");
2476
+ function Rn(e) {
2477
+ return String(e).replace(Na, "Symbol($1)");
2478
+ }
2479
+ i(Rn, "printSymbol");
2480
+ function In(e) {
2481
+ return `[${Ra.call(e)}]`;
2482
+ }
2483
+ i(In, "printError");
2484
+ function Wn(e, t, r, n) {
2485
+ if (e === !0 || e === !1)
2486
+ return `${e}`;
2487
+ if (e === void 0)
2488
+ return "undefined";
2489
+ if (e === null)
2490
+ return "null";
2491
+ let o = typeof e;
2492
+ if (o === "number")
2493
+ return xa(e);
2494
+ if (o === "bigint")
2495
+ return va(e);
2496
+ if (o === "string")
2497
+ return n ? `"${e.replaceAll(/"|\\/g, "\\$&")}"` : `"${e}"`;
2498
+ if (o === "function")
2499
+ return $n(e, t);
2500
+ if (o === "symbol")
2501
+ return Rn(e);
2502
+ let s = zn.call(e);
2503
+ return s === "[object WeakMap]" ? "WeakMap {}" : s === "[object WeakSet]" ? "WeakSet {}" : s === "[object Function]" || s === "[object Gen\
2504
+ eratorFunction]" ? $n(e, t) : s === "[object Symbol]" ? Rn(e) : s === "[object Date]" ? Number.isNaN(+e) ? "Date { NaN }" : $a.call(e) : s ===
2505
+ "[object Error]" ? In(e) : s === "[object RegExp]" ? r ? Cn.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&") : Cn.call(e) : e instanceof Error ?
2506
+ In(e) : null;
2507
+ }
2508
+ i(Wn, "printBasicValue");
2509
+ function Gn(e, t, r, n, o, s) {
2510
+ if (o.includes(e))
2511
+ return "[Circular]";
2512
+ o = [...o], o.push(e);
2513
+ let c = ++n > t.maxDepth, u = t.min;
2514
+ if (t.callToJSON && !c && e.toJSON && typeof e.toJSON == "function" && !s)
2515
+ return he(e.toJSON(), t, r, n, o, !0);
2516
+ let a = zn.call(e);
2517
+ return a === "[object Arguments]" ? c ? "[Arguments]" : `${u ? "" : "Arguments "}[${it(
2518
+ e,
2519
+ t,
2520
+ r,
2521
+ n,
2522
+ o,
2523
+ he
2524
+ )}]` : Ma(a) ? c ? `[${e.constructor.name}]` : `${u || !t.printBasicPrototype && e.constructor.name === "Array" ? "" : `${e.constructor.name}\
2525
+ `}[${it(e, t, r, n, o, he)}]` : a === "[object Map]" ? c ? "[Map]" : `Map {${qe(
2526
+ e.entries(),
2527
+ t,
2528
+ r,
2529
+ n,
2530
+ o,
2531
+ he,
2532
+ " => "
2533
+ )}}` : a === "[object Set]" ? c ? "[Set]" : `Set {${tr(
2534
+ e.values(),
2535
+ t,
2536
+ r,
2537
+ n,
2538
+ o,
2539
+ he
2540
+ )}}` : c || Ia(e) ? `[${ot(e)}]` : `${u || !t.printBasicPrototype && ot(e) === "Object" ? "" : `${ot(e)} `}{${rr(
2541
+ e,
2542
+ t,
2543
+ r,
2544
+ n,
2545
+ o,
2546
+ he
2547
+ )}}`;
2548
+ }
2549
+ i(Gn, "printComplexValue");
2550
+ var Fa = {
2551
+ test: /* @__PURE__ */ i((e) => e && e instanceof Error, "test"),
2552
+ serialize(e, t, r, n, o, s) {
2553
+ if (o.includes(e))
2554
+ return "[Circular]";
2555
+ o = [...o, e];
2556
+ let c = ++n > t.maxDepth, { message: u, cause: a, ...f } = e, y = {
2557
+ message: u,
2558
+ ...typeof a < "u" ? { cause: a } : {},
2559
+ ...e instanceof AggregateError ? { errors: e.errors } : {},
2560
+ ...f
2561
+ }, l = e.name !== "Error" ? e.name : ot(e);
2562
+ return c ? `[${l}]` : `${l} {${qe(
2563
+ Object.entries(y).values(),
2564
+ t,
2565
+ r,
2566
+ n,
2567
+ o,
2568
+ s
2569
+ )}}`;
2570
+ }
2571
+ };
2572
+ function La(e) {
2573
+ return e.serialize != null;
2574
+ }
2575
+ i(La, "isNewPlugin");
2576
+ function Yn(e, t, r, n, o, s) {
2577
+ let c;
2578
+ try {
2579
+ c = La(e) ? e.serialize(t, r, n, o, s, he) : e.print(
2580
+ t,
2581
+ (u) => he(u, r, n, o, s),
2582
+ (u) => {
2583
+ let a = n + r.indent;
2584
+ return a + u.replaceAll(ja, `
2585
+ ${a}`);
2586
+ },
2587
+ {
2588
+ edgeSpacing: r.spacingOuter,
2589
+ min: r.min,
2590
+ spacing: r.spacingInner
2591
+ },
2592
+ r.colors
2593
+ );
2594
+ } catch (u) {
2595
+ throw new st(u.message, u.stack);
2596
+ }
2597
+ if (typeof c != "string")
2598
+ throw new TypeError(
2599
+ `pretty-format: Plugin must return type "string" but instead returned "${typeof c}".`
2600
+ );
2601
+ return c;
2602
+ }
2603
+ i(Yn, "printPlugin");
2604
+ function Vn(e, t) {
2605
+ for (let r of e)
2606
+ try {
2607
+ if (r.test(t))
2608
+ return r;
2609
+ } catch (n) {
2610
+ throw new st(n.message, n.stack);
2611
+ }
2612
+ return null;
2613
+ }
2614
+ i(Vn, "findPlugin");
2615
+ function he(e, t, r, n, o, s) {
2616
+ let c = Vn(t.plugins, e);
2617
+ if (c !== null)
2618
+ return Yn(c, e, t, r, n, o);
2619
+ let u = Wn(
2620
+ e,
2621
+ t.printFunctionName,
2622
+ t.escapeRegex,
2623
+ t.escapeString
2624
+ );
2625
+ return u !== null ? u : Gn(
2626
+ e,
2627
+ t,
2628
+ r,
2629
+ n,
2630
+ o,
2631
+ s
2632
+ );
2633
+ }
2634
+ i(he, "printer");
2635
+ var cr = {
2636
+ comment: "gray",
2637
+ content: "reset",
2638
+ prop: "yellow",
2639
+ tag: "cyan",
2640
+ value: "green"
2641
+ }, Hn = Object.keys(cr), se = {
2642
+ callToJSON: !0,
2643
+ compareKeys: void 0,
2644
+ escapeRegex: !1,
2645
+ escapeString: !0,
2646
+ highlight: !1,
2647
+ indent: 2,
2648
+ maxDepth: Number.POSITIVE_INFINITY,
2649
+ maxWidth: Number.POSITIVE_INFINITY,
2650
+ min: !1,
2651
+ plugins: [],
2652
+ printBasicPrototype: !0,
2653
+ printFunctionName: !0,
2654
+ theme: cr
2655
+ };
2656
+ function Da(e) {
2657
+ for (let t of Object.keys(e))
2658
+ if (!Object.prototype.hasOwnProperty.call(se, t))
2659
+ throw new Error(`pretty-format: Unknown option "${t}".`);
2660
+ if (e.min && e.indent !== void 0 && e.indent !== 0)
2661
+ throw new Error(
2662
+ 'pretty-format: Options "min" and "indent" cannot be used together.'
2663
+ );
2664
+ }
2665
+ i(Da, "validateOptions");
2666
+ function Ba() {
2667
+ return Hn.reduce((e, t) => {
2668
+ let r = cr[t], n = r && ie[r];
2669
+ if (n && typeof n.close == "string" && typeof n.open == "string")
2670
+ e[t] = n;
2671
+ else
2672
+ throw new Error(
2673
+ `pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`
2674
+ );
2675
+ return e;
2676
+ }, /* @__PURE__ */ Object.create(null));
2677
+ }
2678
+ i(Ba, "getColorsHighlight");
2679
+ function ka() {
2680
+ return Hn.reduce((e, t) => (e[t] = { close: "", open: "" }, e), /* @__PURE__ */ Object.create(null));
2681
+ }
2682
+ i(ka, "getColorsEmpty");
2683
+ function Jn(e) {
2684
+ return e?.printFunctionName ?? se.printFunctionName;
2685
+ }
2686
+ i(Jn, "getPrintFunctionName");
2687
+ function Kn(e) {
2688
+ return e?.escapeRegex ?? se.escapeRegex;
2689
+ }
2690
+ i(Kn, "getEscapeRegex");
2691
+ function Xn(e) {
2692
+ return e?.escapeString ?? se.escapeString;
2693
+ }
2694
+ i(Xn, "getEscapeString");
2695
+ function Nn(e) {
2696
+ return {
2697
+ callToJSON: e?.callToJSON ?? se.callToJSON,
2698
+ colors: e?.highlight ? Ba() : ka(),
2699
+ compareKeys: typeof e?.compareKeys == "function" || e?.compareKeys === null ? e.compareKeys : se.compareKeys,
2700
+ escapeRegex: Kn(e),
2701
+ escapeString: Xn(e),
2702
+ indent: e?.min ? "" : Ua(e?.indent ?? se.indent),
2703
+ maxDepth: e?.maxDepth ?? se.maxDepth,
2704
+ maxWidth: e?.maxWidth ?? se.maxWidth,
2705
+ min: e?.min ?? se.min,
2706
+ plugins: e?.plugins ?? se.plugins,
2707
+ printBasicPrototype: e?.printBasicPrototype ?? !0,
2708
+ printFunctionName: Jn(e),
2709
+ spacingInner: e?.min ? " " : `
2710
+ `,
2711
+ spacingOuter: e?.min ? "" : `
2712
+ `
2713
+ };
2714
+ }
2715
+ i(Nn, "getConfig");
2716
+ function Ua(e) {
2717
+ return Array.from({ length: e + 1 }).join(" ");
2718
+ }
2719
+ i(Ua, "createIndent");
2720
+ function re(e, t) {
2721
+ if (t && (Da(t), t.plugins)) {
2722
+ let n = Vn(t.plugins, e);
2723
+ if (n !== null)
2724
+ return Yn(n, e, Nn(t), "", 0, []);
2725
+ }
2726
+ let r = Wn(
2727
+ e,
2728
+ Jn(t),
2729
+ Kn(t),
2730
+ Xn(t)
2731
+ );
2732
+ return r !== null ? r : Gn(e, Nn(t), "", 0, []);
2733
+ }
2734
+ i(re, "format");
2735
+ var ze = {
2736
+ AsymmetricMatcher: Nc,
2737
+ DOMCollection: Dc,
2738
+ DOMElement: Hc,
2739
+ Immutable: ua,
2740
+ ReactElement: Oa,
2741
+ ReactTestComponent: Ca,
2742
+ Error: Fa
2743
+ };
2744
+
2745
+ // ../node_modules/loupe/lib/helpers.js
2746
+ var Zn = {
2747
+ bold: ["1", "22"],
2748
+ dim: ["2", "22"],
2749
+ italic: ["3", "23"],
2750
+ underline: ["4", "24"],
2751
+ // 5 & 6 are blinking
2752
+ inverse: ["7", "27"],
2753
+ hidden: ["8", "28"],
2754
+ strike: ["9", "29"],
2755
+ // 10-20 are fonts
2756
+ // 21-29 are resets for 1-9
2757
+ black: ["30", "39"],
2758
+ red: ["31", "39"],
2759
+ green: ["32", "39"],
2760
+ yellow: ["33", "39"],
2761
+ blue: ["34", "39"],
2762
+ magenta: ["35", "39"],
2763
+ cyan: ["36", "39"],
2764
+ white: ["37", "39"],
2765
+ brightblack: ["30;1", "39"],
2766
+ brightred: ["31;1", "39"],
2767
+ brightgreen: ["32;1", "39"],
2768
+ brightyellow: ["33;1", "39"],
2769
+ brightblue: ["34;1", "39"],
2770
+ brightmagenta: ["35;1", "39"],
2771
+ brightcyan: ["36;1", "39"],
2772
+ brightwhite: ["37;1", "39"],
2773
+ grey: ["90", "39"]
2774
+ }, qa = {
2775
+ special: "cyan",
2776
+ number: "yellow",
2777
+ bigint: "yellow",
2778
+ boolean: "yellow",
2779
+ undefined: "grey",
2780
+ null: "bold",
2781
+ string: "green",
2782
+ symbol: "green",
2783
+ date: "magenta",
2784
+ regexp: "red"
2785
+ }, ye = "\u2026";
2786
+ function za(e, t) {
2787
+ let r = Zn[qa[t]] || Zn[t] || "";
2788
+ return r ? `\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m` : String(e);
2789
+ }
2790
+ i(za, "colorise");
2791
+ function Qn({
2792
+ showHidden: e = !1,
2793
+ depth: t = 2,
2794
+ colors: r = !1,
2795
+ customInspect: n = !0,
2796
+ showProxy: o = !1,
2797
+ maxArrayLength: s = 1 / 0,
2798
+ breakLength: c = 1 / 0,
2799
+ seen: u = [],
2800
+ // eslint-disable-next-line no-shadow
2801
+ truncate: a = 1 / 0,
2802
+ stylize: f = String
2803
+ } = {}, y) {
2804
+ let l = {
2805
+ showHidden: !!e,
2806
+ depth: Number(t),
2807
+ colors: !!r,
2808
+ customInspect: !!n,
2809
+ showProxy: !!o,
2810
+ maxArrayLength: Number(s),
2811
+ breakLength: Number(c),
2812
+ truncate: Number(a),
2813
+ seen: u,
2814
+ inspect: y,
2815
+ stylize: f
2816
+ };
2817
+ return l.colors && (l.stylize = za), l;
2818
+ }
2819
+ i(Qn, "normaliseOptions");
2820
+ function Wa(e) {
2821
+ return e >= "\uD800" && e <= "\uDBFF";
2822
+ }
2823
+ i(Wa, "isHighSurrogate");
2824
+ function W(e, t, r = ye) {
2825
+ e = String(e);
2826
+ let n = r.length, o = e.length;
2827
+ if (n > t && o > n)
2828
+ return r;
2829
+ if (o > t && o > n) {
2830
+ let s = t - n;
2831
+ return s > 0 && Wa(e[s - 1]) && (s = s - 1), `${e.slice(0, s)}${r}`;
2832
+ }
2833
+ return e;
2834
+ }
2835
+ i(W, "truncate");
2836
+ function B(e, t, r, n = ", ") {
2837
+ r = r || t.inspect;
2838
+ let o = e.length;
2839
+ if (o === 0)
2840
+ return "";
2841
+ let s = t.truncate, c = "", u = "", a = "";
2842
+ for (let f = 0; f < o; f += 1) {
2843
+ let y = f + 1 === e.length, l = f + 2 === e.length;
2844
+ a = `${ye}(${e.length - f})`;
2845
+ let h = e[f];
2846
+ t.truncate = s - c.length - (y ? 0 : n.length);
2847
+ let g = u || r(h, t) + (y ? "" : n), m = c.length + g.length, p = m + a.length;
2848
+ if (y && m > s && c.length + a.length <= s || !y && !l && p > s || (u = y ? "" : r(e[f + 1], t) + (l ? "" : n), !y && l && p > s && m + u.
2849
+ length > s))
2850
+ break;
2851
+ if (c += g, !y && !l && m + u.length >= s) {
2852
+ a = `${ye}(${e.length - f - 1})`;
2853
+ break;
2854
+ }
2855
+ a = "";
2856
+ }
2857
+ return `${c}${a}`;
2858
+ }
2859
+ i(B, "inspectList");
2860
+ function Ga(e) {
2861
+ return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/) ? e : JSON.stringify(e).replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
2862
+ }
2863
+ i(Ga, "quoteComplexKey");
2864
+ function ge([e, t], r) {
2865
+ return r.truncate -= 2, typeof e == "string" ? e = Ga(e) : typeof e != "number" && (e = `[${r.inspect(e, r)}]`), r.truncate -= e.length, t =
2866
+ r.inspect(t, r), `${e}: ${t}`;
2867
+ }
2868
+ i(ge, "inspectProperty");
2869
+
2870
+ // ../node_modules/loupe/lib/array.js
2871
+ function ur(e, t) {
2872
+ let r = Object.keys(e).slice(e.length);
2873
+ if (!e.length && !r.length)
2874
+ return "[]";
2875
+ t.truncate -= 4;
2876
+ let n = B(e, t);
2877
+ t.truncate -= n.length;
2878
+ let o = "";
2879
+ return r.length && (o = B(r.map((s) => [s, e[s]]), t, ge)), `[ ${n}${o ? `, ${o}` : ""} ]`;
2880
+ }
2881
+ i(ur, "inspectArray");
2882
+
2883
+ // ../node_modules/loupe/lib/typedarray.js
2884
+ var Ya = /* @__PURE__ */ i((e) => typeof Buffer == "function" && e instanceof Buffer ? "Buffer" : e[Symbol.toStringTag] ? e[Symbol.toStringTag] :
2885
+ e.constructor.name, "getArrayName");
2886
+ function ce(e, t) {
2887
+ let r = Ya(e);
2888
+ t.truncate -= r.length + 4;
2889
+ let n = Object.keys(e).slice(e.length);
2890
+ if (!e.length && !n.length)
2891
+ return `${r}[]`;
2892
+ let o = "";
2893
+ for (let c = 0; c < e.length; c++) {
2894
+ let u = `${t.stylize(W(e[c], t.truncate), "number")}${c === e.length - 1 ? "" : ", "}`;
2895
+ if (t.truncate -= u.length, e[c] !== e.length && t.truncate <= 3) {
2896
+ o += `${ye}(${e.length - e[c] + 1})`;
2897
+ break;
2898
+ }
2899
+ o += u;
2900
+ }
2901
+ let s = "";
2902
+ return n.length && (s = B(n.map((c) => [c, e[c]]), t, ge)), `${r}[ ${o}${s ? `, ${s}` : ""} ]`;
2903
+ }
2904
+ i(ce, "inspectTypedArray");
2905
+
2906
+ // ../node_modules/loupe/lib/date.js
2907
+ function lr(e, t) {
2908
+ let r = e.toJSON();
2909
+ if (r === null)
2910
+ return "Invalid Date";
2911
+ let n = r.split("T"), o = n[0];
2912
+ return t.stylize(`${o}T${W(n[1], t.truncate - o.length - 1)}`, "date");
2913
+ }
2914
+ i(lr, "inspectDate");
2915
+
2916
+ // ../node_modules/loupe/lib/function.js
2917
+ function at(e, t) {
2918
+ let r = e[Symbol.toStringTag] || "Function", n = e.name;
2919
+ return n ? t.stylize(`[${r} ${W(n, t.truncate - 11)}]`, "special") : t.stylize(`[${r}]`, "special");
2920
+ }
2921
+ i(at, "inspectFunction");
2922
+
2923
+ // ../node_modules/loupe/lib/map.js
2924
+ function Va([e, t], r) {
2925
+ return r.truncate -= 4, e = r.inspect(e, r), r.truncate -= e.length, t = r.inspect(t, r), `${e} => ${t}`;
2926
+ }
2927
+ i(Va, "inspectMapEntry");
2928
+ function Ha(e) {
2929
+ let t = [];
2930
+ return e.forEach((r, n) => {
2931
+ t.push([n, r]);
2932
+ }), t;
2933
+ }
2934
+ i(Ha, "mapToEntries");
2935
+ function fr(e, t) {
2936
+ return e.size === 0 ? "Map{}" : (t.truncate -= 7, `Map{ ${B(Ha(e), t, Va)} }`);
2937
+ }
2938
+ i(fr, "inspectMap");
2939
+
2940
+ // ../node_modules/loupe/lib/number.js
2941
+ var Ja = Number.isNaN || ((e) => e !== e);
2942
+ function ut(e, t) {
2943
+ return Ja(e) ? t.stylize("NaN", "number") : e === 1 / 0 ? t.stylize("Infinity", "number") : e === -1 / 0 ? t.stylize("-Infinity", "number") :
2944
+ e === 0 ? t.stylize(1 / e === 1 / 0 ? "+0" : "-0", "number") : t.stylize(W(String(e), t.truncate), "number");
2945
+ }
2946
+ i(ut, "inspectNumber");
2947
+
2948
+ // ../node_modules/loupe/lib/bigint.js
2949
+ function lt(e, t) {
2950
+ let r = W(e.toString(), t.truncate - 1);
2951
+ return r !== ye && (r += "n"), t.stylize(r, "bigint");
2952
+ }
2953
+ i(lt, "inspectBigInt");
2954
+
2955
+ // ../node_modules/loupe/lib/regexp.js
2956
+ function pr(e, t) {
2957
+ let r = e.toString().split("/")[2], n = t.truncate - (2 + r.length), o = e.source;
2958
+ return t.stylize(`/${W(o, n)}/${r}`, "regexp");
2959
+ }
2960
+ i(pr, "inspectRegExp");
2961
+
2962
+ // ../node_modules/loupe/lib/set.js
2963
+ function Ka(e) {
2964
+ let t = [];
2965
+ return e.forEach((r) => {
2966
+ t.push(r);
2967
+ }), t;
2968
+ }
2969
+ i(Ka, "arrayFromSet");
2970
+ function yr(e, t) {
2971
+ return e.size === 0 ? "Set{}" : (t.truncate -= 7, `Set{ ${B(Ka(e), t)} }`);
2972
+ }
2973
+ i(yr, "inspectSet");
2974
+
2975
+ // ../node_modules/loupe/lib/string.js
2976
+ var eo = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\u\
2977
+ ffff]", "g"), Xa = {
2978
+ "\b": "\\b",
2979
+ " ": "\\t",
2980
+ "\n": "\\n",
2981
+ "\f": "\\f",
2982
+ "\r": "\\r",
2983
+ "'": "\\'",
2984
+ "\\": "\\\\"
2985
+ }, Za = 16, Qa = 4;
2986
+ function eu(e) {
2987
+ return Xa[e] || `\\u${`0000${e.charCodeAt(0).toString(Za)}`.slice(-Qa)}`;
2988
+ }
2989
+ i(eu, "escape");
2990
+ function ft(e, t) {
2991
+ return eo.test(e) && (e = e.replace(eo, eu)), t.stylize(`'${W(e, t.truncate - 2)}'`, "string");
2992
+ }
2993
+ i(ft, "inspectString");
2994
+
2995
+ // ../node_modules/loupe/lib/symbol.js
2996
+ function pt(e) {
2997
+ return "description" in Symbol.prototype ? e.description ? `Symbol(${e.description})` : "Symbol()" : e.toString();
2998
+ }
2999
+ i(pt, "inspectSymbol");
3000
+
3001
+ // ../node_modules/loupe/lib/promise.js
3002
+ var to = /* @__PURE__ */ i(() => "Promise{\u2026}", "getPromiseValue");
3003
+ try {
3004
+ let { getPromiseDetails: e, kPending: t, kRejected: r } = process.binding("util");
3005
+ Array.isArray(e(Promise.resolve())) && (to = /* @__PURE__ */ i((n, o) => {
3006
+ let [s, c] = e(n);
3007
+ return s === t ? "Promise{<pending>}" : `Promise${s === r ? "!" : ""}{${o.inspect(c, o)}}`;
3008
+ }, "getPromiseValue"));
3009
+ } catch {
3010
+ }
3011
+ var ro = to;
3012
+
3013
+ // ../node_modules/loupe/lib/object.js
3014
+ function Se(e, t) {
3015
+ let r = Object.getOwnPropertyNames(e), n = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e) : [];
3016
+ if (r.length === 0 && n.length === 0)
3017
+ return "{}";
3018
+ if (t.truncate -= 4, t.seen = t.seen || [], t.seen.includes(e))
3019
+ return "[Circular]";
3020
+ t.seen.push(e);
3021
+ let o = B(r.map((u) => [u, e[u]]), t, ge), s = B(n.map((u) => [u, e[u]]), t, ge);
3022
+ t.seen.pop();
3023
+ let c = "";
3024
+ return o && s && (c = ", "), `{ ${o}${c}${s} }`;
3025
+ }
3026
+ i(Se, "inspectObject");
3027
+
3028
+ // ../node_modules/loupe/lib/class.js
3029
+ var gr = typeof Symbol < "u" && Symbol.toStringTag ? Symbol.toStringTag : !1;
3030
+ function mr(e, t) {
3031
+ let r = "";
3032
+ return gr && gr in e && (r = e[gr]), r = r || e.constructor.name, (!r || r === "_class") && (r = "<Anonymous Class>"), t.truncate -= r.length,
3033
+ `${r}${Se(e, t)}`;
3034
+ }
3035
+ i(mr, "inspectClass");
3036
+
3037
+ // ../node_modules/loupe/lib/arguments.js
3038
+ function hr(e, t) {
3039
+ return e.length === 0 ? "Arguments[]" : (t.truncate -= 13, `Arguments[ ${B(e, t)} ]`);
3040
+ }
3041
+ i(hr, "inspectArguments");
3042
+
3043
+ // ../node_modules/loupe/lib/error.js
3044
+ var tu = [
3045
+ "stack",
3046
+ "line",
3047
+ "column",
3048
+ "name",
3049
+ "message",
3050
+ "fileName",
3051
+ "lineNumber",
3052
+ "columnNumber",
3053
+ "number",
3054
+ "description",
3055
+ "cause"
3056
+ ];
3057
+ function dr(e, t) {
3058
+ let r = Object.getOwnPropertyNames(e).filter((c) => tu.indexOf(c) === -1), n = e.name;
3059
+ t.truncate -= n.length;
3060
+ let o = "";
3061
+ if (typeof e.message == "string" ? o = W(e.message, t.truncate) : r.unshift("message"), o = o ? `: ${o}` : "", t.truncate -= o.length + 5,
3062
+ t.seen = t.seen || [], t.seen.includes(e))
3063
+ return "[Circular]";
3064
+ t.seen.push(e);
3065
+ let s = B(r.map((c) => [c, e[c]]), t, ge);
3066
+ return `${n}${o}${s ? ` { ${s} }` : ""}`;
3067
+ }
3068
+ i(dr, "inspectObject");
3069
+
3070
+ // ../node_modules/loupe/lib/html.js
3071
+ function ru([e, t], r) {
3072
+ return r.truncate -= 3, t ? `${r.stylize(String(e), "yellow")}=${r.stylize(`"${t}"`, "string")}` : `${r.stylize(String(e), "yellow")}`;
3073
+ }
3074
+ i(ru, "inspectAttribute");
3075
+ function yt(e, t) {
3076
+ return B(e, t, gt, `
3077
+ `);
3078
+ }
3079
+ i(yt, "inspectHTMLCollection");
3080
+ function gt(e, t) {
3081
+ let r = e.getAttributeNames(), n = e.tagName.toLowerCase(), o = t.stylize(`<${n}`, "special"), s = t.stylize(">", "special"), c = t.stylize(
3082
+ `</${n}>`, "special");
3083
+ t.truncate -= n.length * 2 + 5;
3084
+ let u = "";
3085
+ r.length > 0 && (u += " ", u += B(r.map((y) => [y, e.getAttribute(y)]), t, ru, " ")), t.truncate -= u.length;
3086
+ let a = t.truncate, f = yt(e.children, t);
3087
+ return f && f.length > a && (f = `${ye}(${e.children.length})`), `${o}${u}${s}${f}${c}`;
3088
+ }
3089
+ i(gt, "inspectHTML");
3090
+
3091
+ // ../node_modules/loupe/lib/index.js
3092
+ var $f = typeof Symbol == "function" && typeof Symbol.for == "function", Kr = $f ? Symbol.for("chai/inspect") : "@@chai/inspect", Le = !1;
3093
+ try {
3094
+ let e = xs();
3095
+ Le = e.inspect ? e.inspect.custom : !1;
3096
+ } catch {
3097
+ Le = !1;
3098
+ }
3099
+ var vs = /* @__PURE__ */ new WeakMap(), Fs = {}, Ls = {
3100
+ undefined: /* @__PURE__ */ i((e, t) => t.stylize("undefined", "undefined"), "undefined"),
3101
+ null: /* @__PURE__ */ i((e, t) => t.stylize("null", "null"), "null"),
3102
+ boolean: /* @__PURE__ */ i((e, t) => t.stylize(String(e), "boolean"), "boolean"),
3103
+ Boolean: /* @__PURE__ */ i((e, t) => t.stylize(String(e), "boolean"), "Boolean"),
3104
+ number: ut,
3105
+ Number: ut,
3106
+ bigint: lt,
3107
+ BigInt: lt,
3108
+ string: ft,
3109
+ String: ft,
3110
+ function: at,
3111
+ Function: at,
3112
+ symbol: pt,
3113
+ // A Symbol polyfill will return `Symbol` not `symbol` from typedetect
3114
+ Symbol: pt,
3115
+ Array: ur,
3116
+ Date: lr,
3117
+ Map: fr,
3118
+ Set: yr,
3119
+ RegExp: pr,
3120
+ Promise: ro,
3121
+ // WeakSet, WeakMap are totally opaque to us
3122
+ WeakSet: /* @__PURE__ */ i((e, t) => t.stylize("WeakSet{\u2026}", "special"), "WeakSet"),
3123
+ WeakMap: /* @__PURE__ */ i((e, t) => t.stylize("WeakMap{\u2026}", "special"), "WeakMap"),
3124
+ Arguments: hr,
3125
+ Int8Array: ce,
3126
+ Uint8Array: ce,
3127
+ Uint8ClampedArray: ce,
3128
+ Int16Array: ce,
3129
+ Uint16Array: ce,
3130
+ Int32Array: ce,
3131
+ Uint32Array: ce,
3132
+ Float32Array: ce,
3133
+ Float64Array: ce,
3134
+ Generator: /* @__PURE__ */ i(() => "", "Generator"),
3135
+ DataView: /* @__PURE__ */ i(() => "", "DataView"),
3136
+ ArrayBuffer: /* @__PURE__ */ i(() => "", "ArrayBuffer"),
3137
+ Error: dr,
3138
+ HTMLCollection: yt,
3139
+ NodeList: yt
3140
+ }, Rf = /* @__PURE__ */ i((e, t, r) => Kr in e && typeof e[Kr] == "function" ? e[Kr](t) : Le && Le in e && typeof e[Le] == "function" ? e[Le](
3141
+ t.depth, t) : "inspect" in e && typeof e.inspect == "function" ? e.inspect(t.depth, t) : "constructor" in e && vs.has(e.constructor) ? vs.get(
3142
+ e.constructor)(e, t) : Fs[r] ? Fs[r](e, t) : "", "inspectCustom"), If = Object.prototype.toString;
3143
+ function zt(e, t = {}) {
3144
+ let r = Qn(t, zt), { customInspect: n } = r, o = e === null ? "null" : typeof e;
3145
+ if (o === "object" && (o = If.call(e).slice(8, -1)), o in Ls)
3146
+ return Ls[o](e, r);
3147
+ if (n && e) {
3148
+ let c = Rf(e, r, o);
3149
+ if (c)
3150
+ return typeof c == "string" ? c : zt(c, r);
3151
+ }
3152
+ let s = e ? Object.getPrototypeOf(e) : !1;
3153
+ return s === Object.prototype || s === null ? Se(e, r) : e && typeof HTMLElement == "function" && e instanceof HTMLElement ? gt(e, r) : "c\
3154
+ onstructor" in e ? e.constructor !== Object ? mr(e, r) : Se(e, r) : e === Object(e) ? Se(e, r) : r.stylize(String(e), o);
3155
+ }
3156
+ i(zt, "inspect");
3157
+
3158
+ // ../node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
3159
+ var {
3160
+ AsymmetricMatcher: jf,
3161
+ DOMCollection: Mf,
3162
+ DOMElement: xf,
3163
+ Immutable: vf,
3164
+ ReactElement: Ff,
3165
+ ReactTestComponent: Lf
3166
+ } = ze, Ds = [
3167
+ Lf,
3168
+ Ff,
3169
+ xf,
3170
+ Mf,
3171
+ vf,
3172
+ jf
3173
+ ];
3174
+ function _e(e, t = 10, { maxLength: r, ...n } = {}) {
3175
+ let o = r ?? 1e4, s;
3176
+ try {
3177
+ s = re(e, {
3178
+ maxDepth: t,
3179
+ escapeString: !1,
3180
+ // min: true,
3181
+ plugins: Ds,
3182
+ ...n
3183
+ });
3184
+ } catch {
3185
+ s = re(e, {
3186
+ callToJSON: !1,
3187
+ maxDepth: t,
3188
+ escapeString: !1,
3189
+ // min: true,
3190
+ plugins: Ds,
3191
+ ...n
3192
+ });
3193
+ }
3194
+ return s.length >= o && t > 1 ? _e(e, Math.floor(Math.min(t, Number.MAX_SAFE_INTEGER) / 2), { maxLength: r, ...n }) : s;
3195
+ }
3196
+ i(_e, "stringify");
3197
+ var Df = /%[sdjifoOc%]/g;
3198
+ function Bs(...e) {
3199
+ if (typeof e[0] != "string") {
3200
+ let s = [];
3201
+ for (let c = 0; c < e.length; c++)
3202
+ s.push(Qe(e[c], { depth: 0, colors: !1 }));
3203
+ return s.join(" ");
3204
+ }
3205
+ let t = e.length, r = 1, n = e[0], o = String(n).replace(Df, (s) => {
3206
+ if (s === "%%")
3207
+ return "%";
3208
+ if (r >= t)
3209
+ return s;
3210
+ switch (s) {
3211
+ case "%s": {
3212
+ let c = e[r++];
3213
+ return typeof c == "bigint" ? `${c.toString()}n` : typeof c == "number" && c === 0 && 1 / c < 0 ? "-0" : typeof c == "object" && c !==
3214
+ null ? typeof c.toString == "function" && c.toString !== Object.prototype.toString ? c.toString() : Qe(c, { depth: 0, colors: !1 }) :
3215
+ String(c);
3216
+ }
3217
+ case "%d": {
3218
+ let c = e[r++];
3219
+ return typeof c == "bigint" ? `${c.toString()}n` : Number(c).toString();
3220
+ }
3221
+ case "%i": {
3222
+ let c = e[r++];
3223
+ return typeof c == "bigint" ? `${c.toString()}n` : Number.parseInt(String(c)).toString();
3224
+ }
3225
+ case "%f":
3226
+ return Number.parseFloat(String(e[r++])).toString();
3227
+ case "%o":
3228
+ return Qe(e[r++], { showHidden: !0, showProxy: !0 });
3229
+ case "%O":
3230
+ return Qe(e[r++]);
3231
+ case "%c":
3232
+ return r++, "";
3233
+ case "%j":
3234
+ try {
3235
+ return JSON.stringify(e[r++]);
3236
+ } catch (c) {
3237
+ let u = c.message;
3238
+ if (
3239
+ // chromium
3240
+ u.includes("circular structure") || u.includes("cyclic structures") || u.includes("cyclic object")
3241
+ )
3242
+ return "[Circular]";
3243
+ throw c;
3244
+ }
3245
+ default:
3246
+ return s;
3247
+ }
3248
+ });
3249
+ for (let s = e[r]; r < t; s = e[++r])
3250
+ s === null || typeof s != "object" ? o += ` ${s}` : o += ` ${Qe(s)}`;
3251
+ return o;
3252
+ }
3253
+ i(Bs, "format");
3254
+ function Qe(e, t = {}) {
3255
+ return t.truncate === 0 && (t.truncate = Number.POSITIVE_INFINITY), zt(e, t);
3256
+ }
3257
+ i(Qe, "inspect");
3258
+ function ks(e) {
3259
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3260
+ }
3261
+ i(ks, "getDefaultExportFromCjs");
3262
+
3263
+ // ../node_modules/@vitest/utils/dist/helpers.js
3264
+ function Bf(e) {
3265
+ return e === Object.prototype || e === Function.prototype || e === RegExp.prototype;
3266
+ }
3267
+ i(Bf, "isFinalObj");
3268
+ function Wt(e) {
3269
+ return Object.prototype.toString.apply(e).slice(8, -1);
3270
+ }
3271
+ i(Wt, "getType");
3272
+ function kf(e, t) {
3273
+ let r = typeof t == "function" ? t : (n) => t.add(n);
3274
+ Object.getOwnPropertyNames(e).forEach(r), Object.getOwnPropertySymbols(e).forEach(r);
3275
+ }
3276
+ i(kf, "collectOwnProperties");
3277
+ function Zr(e) {
3278
+ let t = /* @__PURE__ */ new Set();
3279
+ return Bf(e) ? [] : (kf(e, t), Array.from(t));
3280
+ }
3281
+ i(Zr, "getOwnProperties");
3282
+ var Us = { forceWritable: !1 };
3283
+ function Qr(e, t = Us) {
3284
+ return Xr(e, /* @__PURE__ */ new WeakMap(), t);
3285
+ }
3286
+ i(Qr, "deepClone");
3287
+ function Xr(e, t, r = Us) {
3288
+ let n, o;
3289
+ if (t.has(e))
3290
+ return t.get(e);
3291
+ if (Array.isArray(e)) {
3292
+ for (o = Array.from({ length: n = e.length }), t.set(e, o); n--; )
3293
+ o[n] = Xr(e[n], t, r);
3294
+ return o;
3295
+ }
3296
+ if (Object.prototype.toString.call(e) === "[object Object]") {
3297
+ o = Object.create(Object.getPrototypeOf(e)), t.set(e, o);
3298
+ let s = Zr(e);
3299
+ for (let c of s) {
3300
+ let u = Object.getOwnPropertyDescriptor(e, c);
3301
+ if (!u)
3302
+ continue;
3303
+ let a = Xr(e[c], t, r);
3304
+ r.forceWritable ? Object.defineProperty(o, c, {
3305
+ enumerable: u.enumerable,
3306
+ configurable: !0,
3307
+ writable: !0,
3308
+ value: a
3309
+ }) : "get" in u ? Object.defineProperty(o, c, {
3310
+ ...u,
3311
+ get() {
3312
+ return a;
3313
+ }
3314
+ }) : Object.defineProperty(o, c, {
3315
+ ...u,
3316
+ value: a
3317
+ });
3318
+ }
3319
+ return o;
3320
+ }
3321
+ return e;
3322
+ }
3323
+ i(Xr, "clone");
3324
+
3325
+ // ../node_modules/@vitest/utils/dist/diff.js
3326
+ var G = -1, q = 1, F = 0, un = class un {
3327
+ 0;
3328
+ 1;
3329
+ constructor(t, r) {
3330
+ this[0] = t, this[1] = r;
3331
+ }
3332
+ };
3333
+ i(un, "Diff");
3334
+ var M = un;
3335
+ function Uf(e, t) {
3336
+ if (!e || !t || e.charAt(0) !== t.charAt(0))
3337
+ return 0;
3338
+ let r = 0, n = Math.min(e.length, t.length), o = n, s = 0;
3339
+ for (; r < o; )
3340
+ e.substring(s, o) === t.substring(s, o) ? (r = o, s = r) : n = o, o = Math.floor((n - r) / 2 + r);
3341
+ return o;
3342
+ }
3343
+ i(Uf, "diff_commonPrefix");
3344
+ function nc(e, t) {
3345
+ if (!e || !t || e.charAt(e.length - 1) !== t.charAt(t.length - 1))
3346
+ return 0;
3347
+ let r = 0, n = Math.min(e.length, t.length), o = n, s = 0;
3348
+ for (; r < o; )
3349
+ e.substring(e.length - o, e.length - s) === t.substring(t.length - o, t.length - s) ? (r = o, s = r) : n = o, o = Math.floor((n - r) / 2 +
3350
+ r);
3351
+ return o;
3352
+ }
3353
+ i(nc, "diff_commonSuffix");
3354
+ function qs(e, t) {
3355
+ let r = e.length, n = t.length;
3356
+ if (r === 0 || n === 0)
3357
+ return 0;
3358
+ r > n ? e = e.substring(r - n) : r < n && (t = t.substring(0, r));
3359
+ let o = Math.min(r, n);
3360
+ if (e === t)
3361
+ return o;
3362
+ let s = 0, c = 1;
3363
+ for (; ; ) {
3364
+ let u = e.substring(o - c), a = t.indexOf(u);
3365
+ if (a === -1)
3366
+ return s;
3367
+ c += a, (a === 0 || e.substring(o - c) === t.substring(0, c)) && (s = c, c++);
3368
+ }
3369
+ }
3370
+ i(qs, "diff_commonOverlap_");
3371
+ function qf(e) {
3372
+ let t = !1, r = [], n = 0, o = null, s = 0, c = 0, u = 0, a = 0, f = 0;
3373
+ for (; s < e.length; )
3374
+ e[s][0] === F ? (r[n++] = s, c = a, u = f, a = 0, f = 0, o = e[s][1]) : (e[s][0] === q ? a += e[s][1].length : f += e[s][1].length, o &&
3375
+ o.length <= Math.max(c, u) && o.length <= Math.max(a, f) && (e.splice(
3376
+ r[n - 1],
3377
+ 0,
3378
+ new M(G, o)
3379
+ ), e[r[n - 1] + 1][0] = q, n--, n--, s = n > 0 ? r[n - 1] : -1, c = 0, u = 0, a = 0, f = 0, o = null, t = !0)), s++;
3380
+ for (t && oc(e), Gf(e), s = 1; s < e.length; ) {
3381
+ if (e[s - 1][0] === G && e[s][0] === q) {
3382
+ let y = e[s - 1][1], l = e[s][1], h = qs(y, l), g = qs(l, y);
3383
+ h >= g ? (h >= y.length / 2 || h >= l.length / 2) && (e.splice(
3384
+ s,
3385
+ 0,
3386
+ new M(F, l.substring(0, h))
3387
+ ), e[s - 1][1] = y.substring(
3388
+ 0,
3389
+ y.length - h
3390
+ ), e[s + 1][1] = l.substring(h), s++) : (g >= y.length / 2 || g >= l.length / 2) && (e.splice(
3391
+ s,
3392
+ 0,
3393
+ new M(F, y.substring(0, g))
3394
+ ), e[s - 1][0] = q, e[s - 1][1] = l.substring(
3395
+ 0,
3396
+ l.length - g
3397
+ ), e[s + 1][0] = G, e[s + 1][1] = y.substring(g), s++), s++;
3398
+ }
3399
+ s++;
3400
+ }
3401
+ }
3402
+ i(qf, "diff_cleanupSemantic");
3403
+ var zs = /[^a-z0-9]/i, Ws = /\s/, Gs = /[\r\n]/, zf = /\n\r?\n$/, Wf = /^\r?\n\r?\n/;
3404
+ function Gf(e) {
3405
+ let t = 1;
3406
+ for (; t < e.length - 1; ) {
3407
+ if (e[t - 1][0] === F && e[t + 1][0] === F) {
3408
+ let r = e[t - 1][1], n = e[t][1], o = e[t + 1][1], s = nc(r, n);
3409
+ if (s) {
3410
+ let y = n.substring(n.length - s);
3411
+ r = r.substring(0, r.length - s), n = y + n.substring(0, n.length - s), o = y + o;
3412
+ }
3413
+ let c = r, u = n, a = o, f = Gt(r, n) + Gt(n, o);
3414
+ for (; n.charAt(0) === o.charAt(0); ) {
3415
+ r += n.charAt(0), n = n.substring(1) + o.charAt(0), o = o.substring(1);
3416
+ let y = Gt(r, n) + Gt(n, o);
3417
+ y >= f && (f = y, c = r, u = n, a = o);
3418
+ }
3419
+ e[t - 1][1] !== c && (c ? e[t - 1][1] = c : (e.splice(t - 1, 1), t--), e[t][1] = u, a ? e[t + 1][1] = a : (e.splice(t + 1, 1), t--));
3420
+ }
3421
+ t++;
3422
+ }
3423
+ }
3424
+ i(Gf, "diff_cleanupSemanticLossless");
3425
+ function oc(e) {
3426
+ e.push(new M(F, ""));
3427
+ let t = 0, r = 0, n = 0, o = "", s = "", c;
3428
+ for (; t < e.length; )
3429
+ switch (e[t][0]) {
3430
+ case q:
3431
+ n++, s += e[t][1], t++;
3432
+ break;
3433
+ case G:
3434
+ r++, o += e[t][1], t++;
3435
+ break;
3436
+ case F:
3437
+ r + n > 1 ? (r !== 0 && n !== 0 && (c = Uf(s, o), c !== 0 && (t - r - n > 0 && e[t - r - n - 1][0] === F ? e[t - r - n - 1][1] += s.
3438
+ substring(0, c) : (e.splice(
3439
+ 0,
3440
+ 0,
3441
+ new M(F, s.substring(0, c))
3442
+ ), t++), s = s.substring(c), o = o.substring(c)), c = nc(s, o), c !== 0 && (e[t][1] = s.substring(s.length - c) + e[t][1], s = s.substring(
3443
+ 0,
3444
+ s.length - c
3445
+ ), o = o.substring(
3446
+ 0,
3447
+ o.length - c
3448
+ ))), t -= r + n, e.splice(t, r + n), o.length && (e.splice(t, 0, new M(G, o)), t++), s.length && (e.splice(t, 0, new M(q, s)), t++),
3449
+ t++) : t !== 0 && e[t - 1][0] === F ? (e[t - 1][1] += e[t][1], e.splice(t, 1)) : t++, n = 0, r = 0, o = "", s = "";
3450
+ break;
3451
+ }
3452
+ e[e.length - 1][1] === "" && e.pop();
3453
+ let u = !1;
3454
+ for (t = 1; t < e.length - 1; )
3455
+ e[t - 1][0] === F && e[t + 1][0] === F && (e[t][1].substring(
3456
+ e[t][1].length - e[t - 1][1].length
3457
+ ) === e[t - 1][1] ? (e[t][1] = e[t - 1][1] + e[t][1].substring(
3458
+ 0,
3459
+ e[t][1].length - e[t - 1][1].length
3460
+ ), e[t + 1][1] = e[t - 1][1] + e[t + 1][1], e.splice(t - 1, 1), u = !0) : e[t][1].substring(0, e[t + 1][1].length) === e[t + 1][1] && (e[t -
3461
+ 1][1] += e[t + 1][1], e[t][1] = e[t][1].substring(e[t + 1][1].length) + e[t + 1][1], e.splice(t + 1, 1), u = !0)), t++;
3462
+ u && oc(e);
3463
+ }
3464
+ i(oc, "diff_cleanupMerge");
3465
+ function Gt(e, t) {
3466
+ if (!e || !t)
3467
+ return 6;
3468
+ let r = e.charAt(e.length - 1), n = t.charAt(0), o = r.match(zs), s = n.match(zs), c = o && r.match(Ws), u = s && n.match(Ws), a = c && r.
3469
+ match(Gs), f = u && n.match(Gs), y = a && e.match(zf), l = f && t.match(Wf);
3470
+ return y || l ? 5 : a || f ? 4 : o && !c && u ? 3 : c || u ? 2 : o || s ? 1 : 0;
3471
+ }
3472
+ i(Gt, "diff_cleanupSemanticScore_");
3473
+ var ic = "Compared values have no visual difference.", Yf = "Compared values serialize to the same structure.\nPrinting internal object struc\
3474
+ ture without calling `toJSON` instead.", Yt = {}, Ys;
3475
+ function Vf() {
3476
+ if (Ys) return Yt;
3477
+ Ys = 1, Object.defineProperty(Yt, "__esModule", {
3478
+ value: !0
3479
+ }), Yt.default = h;
3480
+ let e = "diff-sequences", t = 0, r = /* @__PURE__ */ i((g, m, p, d, S) => {
3481
+ let A = 0;
3482
+ for (; g < m && p < d && S(g, p); )
3483
+ g += 1, p += 1, A += 1;
3484
+ return A;
3485
+ }, "countCommonItemsF"), n = /* @__PURE__ */ i((g, m, p, d, S) => {
3486
+ let A = 0;
3487
+ for (; g <= m && p <= d && S(m, d); )
3488
+ m -= 1, d -= 1, A += 1;
3489
+ return A;
3490
+ }, "countCommonItemsR"), o = /* @__PURE__ */ i((g, m, p, d, S, A, T) => {
3491
+ let b = 0, E = -g, P = A[b], O = P;
3492
+ A[b] += r(
3493
+ P + 1,
3494
+ m,
3495
+ d + P - E + 1,
3496
+ p,
3497
+ S
3498
+ );
3499
+ let N = g < T ? g : T;
3500
+ for (b += 1, E += 2; b <= N; b += 1, E += 2) {
3501
+ if (b !== g && O < A[b])
3502
+ P = A[b];
3503
+ else if (P = O + 1, m <= P)
3504
+ return b - 1;
3505
+ O = A[b], A[b] = P + r(P + 1, m, d + P - E + 1, p, S);
3506
+ }
3507
+ return T;
3508
+ }, "extendPathsF"), s = /* @__PURE__ */ i((g, m, p, d, S, A, T) => {
3509
+ let b = 0, E = g, P = A[b], O = P;
3510
+ A[b] -= n(
3511
+ m,
3512
+ P - 1,
3513
+ p,
3514
+ d + P - E - 1,
3515
+ S
3516
+ );
3517
+ let N = g < T ? g : T;
3518
+ for (b += 1, E -= 2; b <= N; b += 1, E -= 2) {
3519
+ if (b !== g && A[b] < O)
3520
+ P = A[b];
3521
+ else if (P = O - 1, P < m)
3522
+ return b - 1;
3523
+ O = A[b], A[b] = P - n(
3524
+ m,
3525
+ P - 1,
3526
+ p,
3527
+ d + P - E - 1,
3528
+ S
3529
+ );
3530
+ }
3531
+ return T;
3532
+ }, "extendPathsR"), c = /* @__PURE__ */ i((g, m, p, d, S, A, T, b, E, P, O) => {
3533
+ let N = d - m, Z = p - m, v = S - d - Z, z = -v - (g - 1), Q = -v + (g - 1), Y = t, x = g < b ? g : b;
3534
+ for (let L = 0, D = -g; L <= x; L += 1, D += 2) {
3535
+ let ee = L === 0 || L !== g && Y < T[L], k = ee ? T[L] : Y, J = ee ? k : k + 1, ue = N + J - D, K = r(
3536
+ J + 1,
3537
+ p,
3538
+ ue + 1,
3539
+ S,
3540
+ A
3541
+ ), X = J + K;
3542
+ if (Y = T[L], T[L] = X, z <= D && D <= Q) {
3543
+ let pe = (g - 1 - (D + v)) / 2;
3544
+ if (pe <= P && E[pe] - 1 <= X) {
3545
+ let te = N + k - (ee ? D + 1 : D - 1), H = n(
3546
+ m,
3547
+ k,
3548
+ d,
3549
+ te,
3550
+ A
3551
+ ), le = k - H, Te = te - H, me = le + 1, ke = Te + 1;
3552
+ O.nChangePreceding = g - 1, g - 1 === me + ke - m - d ? (O.aEndPreceding = m, O.bEndPreceding = d) : (O.aEndPreceding = me, O.bEndPreceding =
3553
+ ke), O.nCommonPreceding = H, H !== 0 && (O.aCommonPreceding = me, O.bCommonPreceding = ke), O.nCommonFollowing = K, K !== 0 && (O.
3554
+ aCommonFollowing = J + 1, O.bCommonFollowing = ue + 1);
3555
+ let et = X + 1, tt = ue + K + 1;
3556
+ return O.nChangeFollowing = g - 1, g - 1 === p + S - et - tt ? (O.aStartFollowing = p, O.bStartFollowing = S) : (O.aStartFollowing =
3557
+ et, O.bStartFollowing = tt), !0;
3558
+ }
3559
+ }
3560
+ }
3561
+ return !1;
3562
+ }, "extendOverlappablePathsF"), u = /* @__PURE__ */ i((g, m, p, d, S, A, T, b, E, P, O) => {
3563
+ let N = S - p, Z = p - m, v = S - d - Z, z = v - g, Q = v + g, Y = t, x = g < P ? g : P;
3564
+ for (let L = 0, D = g; L <= x; L += 1, D -= 2) {
3565
+ let ee = L === 0 || L !== g && E[L] < Y, k = ee ? E[L] : Y, J = ee ? k : k - 1, ue = N + J - D, K = n(
3566
+ m,
3567
+ J - 1,
3568
+ d,
3569
+ ue - 1,
3570
+ A
3571
+ ), X = J - K;
3572
+ if (Y = E[L], E[L] = X, z <= D && D <= Q) {
3573
+ let pe = (g + (D - v)) / 2;
3574
+ if (pe <= b && X - 1 <= T[pe]) {
3575
+ let te = ue - K;
3576
+ if (O.nChangePreceding = g, g === X + te - m - d ? (O.aEndPreceding = m, O.bEndPreceding = d) : (O.aEndPreceding = X, O.bEndPreceding =
3577
+ te), O.nCommonPreceding = K, K !== 0 && (O.aCommonPreceding = X, O.bCommonPreceding = te), O.nChangeFollowing = g - 1, g === 1)
3578
+ O.nCommonFollowing = 0, O.aStartFollowing = p, O.bStartFollowing = S;
3579
+ else {
3580
+ let H = N + k - (ee ? D - 1 : D + 1), le = r(
3581
+ k,
3582
+ p,
3583
+ H,
3584
+ S,
3585
+ A
3586
+ );
3587
+ O.nCommonFollowing = le, le !== 0 && (O.aCommonFollowing = k, O.bCommonFollowing = H);
3588
+ let Te = k + le, me = H + le;
3589
+ g - 1 === p + S - Te - me ? (O.aStartFollowing = p, O.bStartFollowing = S) : (O.aStartFollowing = Te, O.bStartFollowing = me);
3590
+ }
3591
+ return !0;
3592
+ }
3593
+ }
3594
+ }
3595
+ return !1;
3596
+ }, "extendOverlappablePathsR"), a = /* @__PURE__ */ i((g, m, p, d, S, A, T, b, E) => {
3597
+ let P = d - m, O = S - p, N = p - m, Z = S - d, oe = Z - N, v = N, z = N;
3598
+ if (T[0] = m - 1, b[0] = p, oe % 2 === 0) {
3599
+ let Q = (g || oe) / 2, Y = (N + Z) / 2;
3600
+ for (let x = 1; x <= Y; x += 1)
3601
+ if (v = o(x, p, S, P, A, T, v), x < Q)
3602
+ z = s(x, m, d, O, A, b, z);
3603
+ else if (
3604
+ // If a reverse path overlaps a forward path in the same diagonal,
3605
+ // return a division of the index intervals at the middle change.
3606
+ u(
3607
+ x,
3608
+ m,
3609
+ p,
3610
+ d,
3611
+ S,
3612
+ A,
3613
+ T,
3614
+ v,
3615
+ b,
3616
+ z,
3617
+ E
3618
+ )
3619
+ )
3620
+ return;
3621
+ } else {
3622
+ let Q = ((g || oe) + 1) / 2, Y = (N + Z + 1) / 2, x = 1;
3623
+ for (v = o(x, p, S, P, A, T, v), x += 1; x <= Y; x += 1)
3624
+ if (z = s(
3625
+ x - 1,
3626
+ m,
3627
+ d,
3628
+ O,
3629
+ A,
3630
+ b,
3631
+ z
3632
+ ), x < Q)
3633
+ v = o(x, p, S, P, A, T, v);
3634
+ else if (
3635
+ // If a forward path overlaps a reverse path in the same diagonal,
3636
+ // return a division of the index intervals at the middle change.
3637
+ c(
3638
+ x,
3639
+ m,
3640
+ p,
3641
+ d,
3642
+ S,
3643
+ A,
3644
+ T,
3645
+ v,
3646
+ b,
3647
+ z,
3648
+ E
3649
+ )
3650
+ )
3651
+ return;
3652
+ }
3653
+ throw new Error(
3654
+ `${e}: no overlap aStart=${m} aEnd=${p} bStart=${d} bEnd=${S}`
3655
+ );
3656
+ }, "divide"), f = /* @__PURE__ */ i((g, m, p, d, S, A, T, b, E, P) => {
3657
+ if (S - d < p - m) {
3658
+ if (A = !A, A && T.length === 1) {
3659
+ let { foundSubsequence: X, isCommon: pe } = T[0];
3660
+ T[1] = {
3661
+ foundSubsequence: /* @__PURE__ */ i((te, H, le) => {
3662
+ X(te, le, H);
3663
+ }, "foundSubsequence"),
3664
+ isCommon: /* @__PURE__ */ i((te, H) => pe(H, te), "isCommon")
3665
+ };
3666
+ }
3667
+ let ue = m, K = p;
3668
+ m = d, p = S, d = ue, S = K;
3669
+ }
3670
+ let { foundSubsequence: O, isCommon: N } = T[A ? 1 : 0];
3671
+ a(
3672
+ g,
3673
+ m,
3674
+ p,
3675
+ d,
3676
+ S,
3677
+ N,
3678
+ b,
3679
+ E,
3680
+ P
3681
+ );
3682
+ let {
3683
+ nChangePreceding: Z,
3684
+ aEndPreceding: oe,
3685
+ bEndPreceding: v,
3686
+ nCommonPreceding: z,
3687
+ aCommonPreceding: Q,
3688
+ bCommonPreceding: Y,
3689
+ nCommonFollowing: x,
3690
+ aCommonFollowing: L,
3691
+ bCommonFollowing: D,
3692
+ nChangeFollowing: ee,
3693
+ aStartFollowing: k,
3694
+ bStartFollowing: J
3695
+ } = P;
3696
+ m < oe && d < v && f(
3697
+ Z,
3698
+ m,
3699
+ oe,
3700
+ d,
3701
+ v,
3702
+ A,
3703
+ T,
3704
+ b,
3705
+ E,
3706
+ P
3707
+ ), z !== 0 && O(z, Q, Y), x !== 0 && O(x, L, D), k < p && J < S && f(
3708
+ ee,
3709
+ k,
3710
+ p,
3711
+ J,
3712
+ S,
3713
+ A,
3714
+ T,
3715
+ b,
3716
+ E,
3717
+ P
3718
+ );
3719
+ }, "findSubsequences"), y = /* @__PURE__ */ i((g, m) => {
3720
+ if (typeof m != "number")
3721
+ throw new TypeError(`${e}: ${g} typeof ${typeof m} is not a number`);
3722
+ if (!Number.isSafeInteger(m))
3723
+ throw new RangeError(`${e}: ${g} value ${m} is not a safe integer`);
3724
+ if (m < 0)
3725
+ throw new RangeError(`${e}: ${g} value ${m} is a negative integer`);
3726
+ }, "validateLength"), l = /* @__PURE__ */ i((g, m) => {
3727
+ let p = typeof m;
3728
+ if (p !== "function")
3729
+ throw new TypeError(`${e}: ${g} typeof ${p} is not a function`);
3730
+ }, "validateCallback");
3731
+ function h(g, m, p, d) {
3732
+ y("aLength", g), y("bLength", m), l("isCommon", p), l("foundSubsequence", d);
3733
+ let S = r(0, g, 0, m, p);
3734
+ if (S !== 0 && d(S, 0, 0), g !== S || m !== S) {
3735
+ let A = S, T = S, b = n(
3736
+ A,
3737
+ g - 1,
3738
+ T,
3739
+ m - 1,
3740
+ p
3741
+ ), E = g - b, P = m - b, O = S + b;
3742
+ g !== O && m !== O && f(
3743
+ 0,
3744
+ A,
3745
+ E,
3746
+ T,
3747
+ P,
3748
+ !1,
3749
+ [
3750
+ {
3751
+ foundSubsequence: d,
3752
+ isCommon: p
3753
+ }
3754
+ ],
3755
+ [t],
3756
+ [t],
3757
+ {
3758
+ aCommonFollowing: t,
3759
+ aCommonPreceding: t,
3760
+ aEndPreceding: t,
3761
+ aStartFollowing: t,
3762
+ bCommonFollowing: t,
3763
+ bCommonPreceding: t,
3764
+ bEndPreceding: t,
3765
+ bStartFollowing: t,
3766
+ nChangeFollowing: t,
3767
+ nChangePreceding: t,
3768
+ nCommonFollowing: t,
3769
+ nCommonPreceding: t
3770
+ }
3771
+ ), b !== 0 && d(b, E, P);
3772
+ }
3773
+ }
3774
+ return i(h, "diffSequence"), Yt;
3775
+ }
3776
+ i(Vf, "requireBuild");
3777
+ var Hf = Vf(), sc = /* @__PURE__ */ ks(Hf);
3778
+ function Jf(e, t) {
3779
+ return e.replace(/\s+$/, (r) => t(r));
3780
+ }
3781
+ i(Jf, "formatTrailingSpaces");
3782
+ function cn(e, t, r, n, o, s) {
3783
+ return e.length !== 0 ? r(
3784
+ `${n} ${Jf(e, o)}`
3785
+ ) : n !== " " ? r(n) : t && s.length !== 0 ? r(`${n} ${s}`) : "";
3786
+ }
3787
+ i(cn, "printDiffLine");
3788
+ function cc(e, t, {
3789
+ aColor: r,
3790
+ aIndicator: n,
3791
+ changeLineTrailingSpaceColor: o,
3792
+ emptyFirstOrLastLinePlaceholder: s
3793
+ }) {
3794
+ return cn(
3795
+ e,
3796
+ t,
3797
+ r,
3798
+ n,
3799
+ o,
3800
+ s
3801
+ );
3802
+ }
3803
+ i(cc, "printDeleteLine");
3804
+ function ac(e, t, {
3805
+ bColor: r,
3806
+ bIndicator: n,
3807
+ changeLineTrailingSpaceColor: o,
3808
+ emptyFirstOrLastLinePlaceholder: s
3809
+ }) {
3810
+ return cn(
3811
+ e,
3812
+ t,
3813
+ r,
3814
+ n,
3815
+ o,
3816
+ s
3817
+ );
3818
+ }
3819
+ i(ac, "printInsertLine");
3820
+ function uc(e, t, {
3821
+ commonColor: r,
3822
+ commonIndicator: n,
3823
+ commonLineTrailingSpaceColor: o,
3824
+ emptyFirstOrLastLinePlaceholder: s
3825
+ }) {
3826
+ return cn(
3827
+ e,
3828
+ t,
3829
+ r,
3830
+ n,
3831
+ o,
3832
+ s
3833
+ );
3834
+ }
3835
+ i(uc, "printCommonLine");
3836
+ function Vs(e, t, r, n, { patchColor: o }) {
3837
+ return o(
3838
+ `@@ -${e + 1},${t - e} +${r + 1},${n - r} @@`
3839
+ );
3840
+ }
3841
+ i(Vs, "createPatchMark");
3842
+ function Kf(e, t) {
3843
+ let r = e.length, n = t.contextLines, o = n + n, s = r, c = !1, u = 0, a = 0;
3844
+ for (; a !== r; ) {
3845
+ let b = a;
3846
+ for (; a !== r && e[a][0] === F; )
3847
+ a += 1;
3848
+ if (b !== a)
3849
+ if (b === 0)
3850
+ a > n && (s -= a - n, c = !0);
3851
+ else if (a === r) {
3852
+ let E = a - b;
3853
+ E > n && (s -= E - n, c = !0);
3854
+ } else {
3855
+ let E = a - b;
3856
+ E > o && (s -= E - o, u += 1);
3857
+ }
3858
+ for (; a !== r && e[a][0] !== F; )
3859
+ a += 1;
3860
+ }
3861
+ let f = u !== 0 || c;
3862
+ u !== 0 ? s += u + 1 : c && (s += 1);
3863
+ let y = s - 1, l = [], h = 0;
3864
+ f && l.push("");
3865
+ let g = 0, m = 0, p = 0, d = 0, S = /* @__PURE__ */ i((b) => {
3866
+ let E = l.length;
3867
+ l.push(uc(b, E === 0 || E === y, t)), p += 1, d += 1;
3868
+ }, "pushCommonLine"), A = /* @__PURE__ */ i((b) => {
3869
+ let E = l.length;
3870
+ l.push(cc(b, E === 0 || E === y, t)), p += 1;
3871
+ }, "pushDeleteLine"), T = /* @__PURE__ */ i((b) => {
3872
+ let E = l.length;
3873
+ l.push(ac(b, E === 0 || E === y, t)), d += 1;
3874
+ }, "pushInsertLine");
3875
+ for (a = 0; a !== r; ) {
3876
+ let b = a;
3877
+ for (; a !== r && e[a][0] === F; )
3878
+ a += 1;
3879
+ if (b !== a)
3880
+ if (b === 0) {
3881
+ a > n && (b = a - n, g = b, m = b, p = g, d = m);
3882
+ for (let E = b; E !== a; E += 1)
3883
+ S(e[E][1]);
3884
+ } else if (a === r) {
3885
+ let E = a - b > n ? b + n : a;
3886
+ for (let P = b; P !== E; P += 1)
3887
+ S(e[P][1]);
3888
+ } else {
3889
+ let E = a - b;
3890
+ if (E > o) {
3891
+ let P = b + n;
3892
+ for (let N = b; N !== P; N += 1)
3893
+ S(e[N][1]);
3894
+ l[h] = Vs(
3895
+ g,
3896
+ p,
3897
+ m,
3898
+ d,
3899
+ t
3900
+ ), h = l.length, l.push("");
3901
+ let O = E - o;
3902
+ g = p + O, m = d + O, p = g, d = m;
3903
+ for (let N = a - n; N !== a; N += 1)
3904
+ S(e[N][1]);
3905
+ } else
3906
+ for (let P = b; P !== a; P += 1)
3907
+ S(e[P][1]);
3908
+ }
3909
+ for (; a !== r && e[a][0] === G; )
3910
+ A(e[a][1]), a += 1;
3911
+ for (; a !== r && e[a][0] === q; )
3912
+ T(e[a][1]), a += 1;
3913
+ }
3914
+ return f && (l[h] = Vs(g, p, m, d, t)), l.join(`
3915
+ `);
3916
+ }
3917
+ i(Kf, "joinAlignedDiffsNoExpand");
3918
+ function Xf(e, t) {
3919
+ return e.map((r, n, o) => {
3920
+ let s = r[1], c = n === 0 || n === o.length - 1;
3921
+ switch (r[0]) {
3922
+ case G:
3923
+ return cc(s, c, t);
3924
+ case q:
3925
+ return ac(s, c, t);
3926
+ default:
3927
+ return uc(s, c, t);
3928
+ }
3929
+ }).join(`
3930
+ `);
3931
+ }
3932
+ i(Xf, "joinAlignedDiffsExpand");
3933
+ var en = /* @__PURE__ */ i((e) => e, "noColor"), lc = 5, Zf = 0;
3934
+ function Qf() {
3935
+ return {
3936
+ aAnnotation: "Expected",
3937
+ aColor: ie.green,
3938
+ aIndicator: "-",
3939
+ bAnnotation: "Received",
3940
+ bColor: ie.red,
3941
+ bIndicator: "+",
3942
+ changeColor: ie.inverse,
3943
+ changeLineTrailingSpaceColor: en,
3944
+ commonColor: ie.dim,
3945
+ commonIndicator: " ",
3946
+ commonLineTrailingSpaceColor: en,
3947
+ compareKeys: void 0,
3948
+ contextLines: lc,
3949
+ emptyFirstOrLastLinePlaceholder: "",
3950
+ expand: !0,
3951
+ includeChangeCounts: !1,
3952
+ omitAnnotationLines: !1,
3953
+ patchColor: ie.yellow,
3954
+ printBasicPrototype: !1,
3955
+ truncateThreshold: Zf,
3956
+ truncateAnnotation: "... Diff result is truncated",
3957
+ truncateAnnotationColor: en
3958
+ };
3959
+ }
3960
+ i(Qf, "getDefaultOptions");
3961
+ function ep(e) {
3962
+ return e && typeof e == "function" ? e : void 0;
3963
+ }
3964
+ i(ep, "getCompareKeys");
3965
+ function tp(e) {
3966
+ return typeof e == "number" && Number.isSafeInteger(e) && e >= 0 ? e : lc;
3967
+ }
3968
+ i(tp, "getContextLines");
3969
+ function we(e = {}) {
3970
+ return {
3971
+ ...Qf(),
3972
+ ...e,
3973
+ compareKeys: ep(e.compareKeys),
3974
+ contextLines: tp(e.contextLines)
3975
+ };
3976
+ }
3977
+ i(we, "normalizeDiffOptions");
3978
+ function De(e) {
3979
+ return e.length === 1 && e[0].length === 0;
3980
+ }
3981
+ i(De, "isEmptyString");
3982
+ function rp(e) {
3983
+ let t = 0, r = 0;
3984
+ return e.forEach((n) => {
3985
+ switch (n[0]) {
3986
+ case G:
3987
+ t += 1;
3988
+ break;
3989
+ case q:
3990
+ r += 1;
3991
+ break;
3992
+ }
3993
+ }), { a: t, b: r };
3994
+ }
3995
+ i(rp, "countChanges");
3996
+ function np({
3997
+ aAnnotation: e,
3998
+ aColor: t,
3999
+ aIndicator: r,
4000
+ bAnnotation: n,
4001
+ bColor: o,
4002
+ bIndicator: s,
4003
+ includeChangeCounts: c,
4004
+ omitAnnotationLines: u
4005
+ }, a) {
4006
+ if (u)
4007
+ return "";
4008
+ let f = "", y = "";
4009
+ if (c) {
4010
+ let g = String(a.a), m = String(a.b), p = n.length - e.length, d = " ".repeat(Math.max(0, p)), S = " ".repeat(Math.max(0, -p)), A = m.length -
4011
+ g.length, T = " ".repeat(Math.max(0, A)), b = " ".repeat(Math.max(0, -A));
4012
+ f = `${d} ${r} ${T}${g}`, y = `${S} ${s} ${b}${m}`;
4013
+ }
4014
+ let l = `${r} ${e}${f}`, h = `${s} ${n}${y}`;
4015
+ return `${t(l)}
4016
+ ${o(h)}
4017
+
4018
+ `;
4019
+ }
4020
+ i(np, "printAnnotation");
4021
+ function an(e, t, r) {
4022
+ return np(r, rp(e)) + (r.expand ? Xf(e, r) : Kf(e, r)) + (t ? r.truncateAnnotationColor(`
4023
+ ${r.truncateAnnotation}`) : "");
4024
+ }
4025
+ i(an, "printDiffLines");
4026
+ function Ht(e, t, r) {
4027
+ let n = we(r), [o, s] = fc(
4028
+ De(e) ? [] : e,
4029
+ De(t) ? [] : t,
4030
+ n
4031
+ );
4032
+ return an(o, s, n);
4033
+ }
4034
+ i(Ht, "diffLinesUnified");
4035
+ function op(e, t, r, n, o) {
4036
+ if (De(e) && De(r) && (e = [], r = []), De(t) && De(n) && (t = [], n = []), e.length !== r.length || t.length !== n.length)
4037
+ return Ht(e, t, o);
4038
+ let [s, c] = fc(
4039
+ r,
4040
+ n,
4041
+ o
4042
+ ), u = 0, a = 0;
4043
+ return s.forEach((f) => {
4044
+ switch (f[0]) {
4045
+ case G:
4046
+ f[1] = e[u], u += 1;
4047
+ break;
4048
+ case q:
4049
+ f[1] = t[a], a += 1;
4050
+ break;
4051
+ default:
4052
+ f[1] = t[a], u += 1, a += 1;
4053
+ }
4054
+ }), an(s, c, we(o));
4055
+ }
4056
+ i(op, "diffLinesUnified2");
4057
+ function fc(e, t, r) {
4058
+ let n = r?.truncateThreshold ?? !1, o = Math.max(
4059
+ Math.floor(r?.truncateThreshold ?? 0),
4060
+ 0
4061
+ ), s = n ? Math.min(e.length, o) : e.length, c = n ? Math.min(t.length, o) : t.length, u = s !== e.length || c !== t.length, a = /* @__PURE__ */ i(
4062
+ (g, m) => e[g] === t[m], "isCommon"), f = [], y = 0, l = 0;
4063
+ for (sc(s, c, a, /* @__PURE__ */ i((g, m, p) => {
4064
+ for (; y !== m; y += 1)
4065
+ f.push(new M(G, e[y]));
4066
+ for (; l !== p; l += 1)
4067
+ f.push(new M(q, t[l]));
4068
+ for (; g !== 0; g -= 1, y += 1, l += 1)
4069
+ f.push(new M(F, t[l]));
4070
+ }, "foundSubsequence")); y !== s; y += 1)
4071
+ f.push(new M(G, e[y]));
4072
+ for (; l !== c; l += 1)
4073
+ f.push(new M(q, t[l]));
4074
+ return [f, u];
4075
+ }
4076
+ i(fc, "diffLinesRaw");
4077
+ function Hs(e) {
4078
+ if (e === void 0)
4079
+ return "undefined";
4080
+ if (e === null)
4081
+ return "null";
4082
+ if (Array.isArray(e))
4083
+ return "array";
4084
+ if (typeof e == "boolean")
4085
+ return "boolean";
4086
+ if (typeof e == "function")
4087
+ return "function";
4088
+ if (typeof e == "number")
4089
+ return "number";
4090
+ if (typeof e == "string")
4091
+ return "string";
4092
+ if (typeof e == "bigint")
4093
+ return "bigint";
4094
+ if (typeof e == "object") {
4095
+ if (e != null) {
4096
+ if (e.constructor === RegExp)
4097
+ return "regexp";
4098
+ if (e.constructor === Map)
4099
+ return "map";
4100
+ if (e.constructor === Set)
4101
+ return "set";
4102
+ if (e.constructor === Date)
4103
+ return "date";
4104
+ }
4105
+ return "object";
4106
+ } else if (typeof e == "symbol")
4107
+ return "symbol";
4108
+ throw new Error(`value of unknown type: ${e}`);
4109
+ }
4110
+ i(Hs, "getType");
4111
+ function Js(e) {
4112
+ return e.includes(`\r
4113
+ `) ? `\r
4114
+ ` : `
4115
+ `;
4116
+ }
4117
+ i(Js, "getNewLineSymbol");
4118
+ function ip(e, t, r) {
4119
+ let n = r?.truncateThreshold ?? !1, o = Math.max(
4120
+ Math.floor(r?.truncateThreshold ?? 0),
4121
+ 0
4122
+ ), s = e.length, c = t.length;
4123
+ if (n) {
4124
+ let g = e.includes(`
4125
+ `), m = t.includes(`
4126
+ `), p = Js(e), d = Js(t), S = g ? `${e.split(p, o).join(p)}
4127
+ ` : e, A = m ? `${t.split(d, o).join(d)}
4128
+ ` : t;
4129
+ s = S.length, c = A.length;
4130
+ }
4131
+ let u = s !== e.length || c !== t.length, a = /* @__PURE__ */ i((g, m) => e[g] === t[m], "isCommon"), f = 0, y = 0, l = [];
4132
+ return sc(s, c, a, /* @__PURE__ */ i((g, m, p) => {
4133
+ f !== m && l.push(new M(G, e.slice(f, m))), y !== p && l.push(new M(q, t.slice(y, p))), f = m + g, y = p + g, l.push(new M(F, t.slice(p,
4134
+ y)));
4135
+ }, "foundSubsequence")), f !== s && l.push(new M(G, e.slice(f))), y !== c && l.push(new M(q, t.slice(y))), [l, u];
4136
+ }
4137
+ i(ip, "diffStrings");
4138
+ function sp(e, t, r) {
4139
+ return t.reduce(
4140
+ (n, o) => n + (o[0] === F ? o[1] : o[0] === e && o[1].length !== 0 ? r(o[1]) : ""),
4141
+ ""
4142
+ );
4143
+ }
4144
+ i(sp, "concatenateRelevantDiffs");
4145
+ var ln = class ln {
4146
+ op;
4147
+ line;
4148
+ // incomplete line
4149
+ lines;
4150
+ // complete lines
4151
+ changeColor;
4152
+ constructor(t, r) {
4153
+ this.op = t, this.line = [], this.lines = [], this.changeColor = r;
4154
+ }
4155
+ pushSubstring(t) {
4156
+ this.pushDiff(new M(this.op, t));
4157
+ }
4158
+ pushLine() {
4159
+ this.lines.push(
4160
+ this.line.length !== 1 ? new M(
4161
+ this.op,
4162
+ sp(this.op, this.line, this.changeColor)
4163
+ ) : this.line[0][0] === this.op ? this.line[0] : new M(this.op, this.line[0][1])
4164
+ // was common diff
4165
+ ), this.line.length = 0;
4166
+ }
4167
+ isLineEmpty() {
4168
+ return this.line.length === 0;
4169
+ }
4170
+ // Minor input to buffer.
4171
+ pushDiff(t) {
4172
+ this.line.push(t);
4173
+ }
4174
+ // Main input to buffer.
4175
+ align(t) {
4176
+ let r = t[1];
4177
+ if (r.includes(`
4178
+ `)) {
4179
+ let n = r.split(`
4180
+ `), o = n.length - 1;
4181
+ n.forEach((s, c) => {
4182
+ c < o ? (this.pushSubstring(s), this.pushLine()) : s.length !== 0 && this.pushSubstring(s);
4183
+ });
4184
+ } else
4185
+ this.pushDiff(t);
4186
+ }
4187
+ // Output from buffer.
4188
+ moveLinesTo(t) {
4189
+ this.isLineEmpty() || this.pushLine(), t.push(...this.lines), this.lines.length = 0;
4190
+ }
4191
+ };
4192
+ i(ln, "ChangeBuffer");
4193
+ var Vt = ln, fn = class fn {
4194
+ deleteBuffer;
4195
+ insertBuffer;
4196
+ lines;
4197
+ constructor(t, r) {
4198
+ this.deleteBuffer = t, this.insertBuffer = r, this.lines = [];
4199
+ }
4200
+ pushDiffCommonLine(t) {
4201
+ this.lines.push(t);
4202
+ }
4203
+ pushDiffChangeLines(t) {
4204
+ let r = t[1].length === 0;
4205
+ (!r || this.deleteBuffer.isLineEmpty()) && this.deleteBuffer.pushDiff(t), (!r || this.insertBuffer.isLineEmpty()) && this.insertBuffer.pushDiff(
4206
+ t);
4207
+ }
4208
+ flushChangeLines() {
4209
+ this.deleteBuffer.moveLinesTo(this.lines), this.insertBuffer.moveLinesTo(this.lines);
4210
+ }
4211
+ // Input to buffer.
4212
+ align(t) {
4213
+ let r = t[0], n = t[1];
4214
+ if (n.includes(`
4215
+ `)) {
4216
+ let o = n.split(`
4217
+ `), s = o.length - 1;
4218
+ o.forEach((c, u) => {
4219
+ if (u === 0) {
4220
+ let a = new M(r, c);
4221
+ this.deleteBuffer.isLineEmpty() && this.insertBuffer.isLineEmpty() ? (this.flushChangeLines(), this.pushDiffCommonLine(a)) : (this.
4222
+ pushDiffChangeLines(a), this.flushChangeLines());
4223
+ } else u < s ? this.pushDiffCommonLine(new M(r, c)) : c.length !== 0 && this.pushDiffChangeLines(new M(r, c));
4224
+ });
4225
+ } else
4226
+ this.pushDiffChangeLines(t);
4227
+ }
4228
+ // Output from buffer.
4229
+ getLines() {
4230
+ return this.flushChangeLines(), this.lines;
4231
+ }
4232
+ };
4233
+ i(fn, "CommonBuffer");
4234
+ var rn = fn;
4235
+ function cp(e, t) {
4236
+ let r = new Vt(G, t), n = new Vt(q, t), o = new rn(r, n);
4237
+ return e.forEach((s) => {
4238
+ switch (s[0]) {
4239
+ case G:
4240
+ r.align(s);
4241
+ break;
4242
+ case q:
4243
+ n.align(s);
4244
+ break;
4245
+ default:
4246
+ o.align(s);
4247
+ }
4248
+ }), o.getLines();
4249
+ }
4250
+ i(cp, "getAlignedDiffs");
4251
+ function ap(e, t) {
4252
+ if (t) {
4253
+ let r = e.length - 1;
4254
+ return e.some(
4255
+ (n, o) => n[0] === F && (o !== r || n[1] !== `
4256
+ `)
4257
+ );
4258
+ }
4259
+ return e.some((r) => r[0] === F);
4260
+ }
4261
+ i(ap, "hasCommonDiff");
4262
+ function up(e, t, r) {
4263
+ if (e !== t && e.length !== 0 && t.length !== 0) {
4264
+ let n = e.includes(`
4265
+ `) || t.includes(`
4266
+ `), [o, s] = pc(
4267
+ n ? `${e}
4268
+ ` : e,
4269
+ n ? `${t}
4270
+ ` : t,
4271
+ !0,
4272
+ // cleanupSemantic
4273
+ r
4274
+ );
4275
+ if (ap(o, n)) {
4276
+ let c = we(r), u = cp(o, c.changeColor);
4277
+ return an(u, s, c);
4278
+ }
4279
+ }
4280
+ return Ht(e.split(`
4281
+ `), t.split(`
4282
+ `), r);
4283
+ }
4284
+ i(up, "diffStringsUnified");
4285
+ function pc(e, t, r, n) {
4286
+ let [o, s] = ip(e, t, n);
4287
+ return r && qf(o), [o, s];
4288
+ }
4289
+ i(pc, "diffStringsRaw");
4290
+ function nn(e, t) {
4291
+ let { commonColor: r } = we(t);
4292
+ return r(e);
4293
+ }
4294
+ i(nn, "getCommonMessage");
4295
+ var {
4296
+ AsymmetricMatcher: lp,
4297
+ DOMCollection: fp,
4298
+ DOMElement: pp,
4299
+ Immutable: yp,
4300
+ ReactElement: gp,
4301
+ ReactTestComponent: mp
4302
+ } = ze, yc = [
4303
+ mp,
4304
+ gp,
4305
+ pp,
4306
+ fp,
4307
+ yp,
4308
+ lp,
4309
+ ze.Error
4310
+ ], on = {
4311
+ plugins: yc
4312
+ }, gc = {
4313
+ callToJSON: !1,
4314
+ maxDepth: 8,
4315
+ plugins: yc
4316
+ };
4317
+ function hp(e, t, r) {
4318
+ if (Object.is(e, t))
4319
+ return "";
4320
+ let n = Hs(e), o = n, s = !1;
4321
+ if (n === "object" && typeof e.asymmetricMatch == "function") {
4322
+ if (e.$$typeof !== Symbol.for("jest.asymmetricMatcher") || typeof e.getExpectedType != "function")
4323
+ return;
4324
+ o = e.getExpectedType(), s = o === "string";
4325
+ }
4326
+ if (o !== Hs(t)) {
4327
+ let c = /* @__PURE__ */ i(function(T) {
4328
+ return T.length <= d ? T : `${T.slice(0, d)}...`;
4329
+ }, "truncate2"), { aAnnotation: u, aColor: a, aIndicator: f, bAnnotation: y, bColor: l, bIndicator: h } = we(r), g = sn(gc, r), m = re(e,
4330
+ g), p = re(t, g), d = 1e5;
4331
+ m = c(m), p = c(p);
4332
+ let S = `${a(`${f} ${u}:`)}
4333
+ ${m}`, A = `${l(`${h} ${y}:`)}
4334
+ ${p}`;
4335
+ return `${S}
4336
+
4337
+ ${A}`;
4338
+ }
4339
+ if (!s)
4340
+ switch (n) {
4341
+ case "string":
4342
+ return Ht(e.split(`
4343
+ `), t.split(`
4344
+ `), r);
4345
+ case "boolean":
4346
+ case "number":
4347
+ return dp(e, t, r);
4348
+ case "map":
4349
+ return tn(Ks(e), Ks(t), r);
4350
+ case "set":
4351
+ return tn(Xs(e), Xs(t), r);
4352
+ default:
4353
+ return tn(e, t, r);
4354
+ }
4355
+ }
4356
+ i(hp, "diff");
4357
+ function dp(e, t, r) {
4358
+ let n = re(e, on), o = re(t, on);
4359
+ return n === o ? "" : Ht(n.split(`
4360
+ `), o.split(`
4361
+ `), r);
4362
+ }
4363
+ i(dp, "comparePrimitive");
4364
+ function Ks(e) {
4365
+ return new Map(Array.from(e.entries()).sort());
4366
+ }
4367
+ i(Ks, "sortMap");
4368
+ function Xs(e) {
4369
+ return new Set(Array.from(e.values()).sort());
4370
+ }
4371
+ i(Xs, "sortSet");
4372
+ function tn(e, t, r) {
4373
+ let n, o = !1;
4374
+ try {
4375
+ let c = sn(on, r);
4376
+ n = Zs(e, t, c, r);
4377
+ } catch {
4378
+ o = !0;
4379
+ }
4380
+ let s = nn(ic, r);
4381
+ if (n === void 0 || n === s) {
4382
+ let c = sn(gc, r);
4383
+ n = Zs(e, t, c, r), n !== s && !o && (n = `${nn(
4384
+ Yf,
4385
+ r
4386
+ )}
4387
+
4388
+ ${n}`);
4389
+ }
4390
+ return n;
4391
+ }
4392
+ i(tn, "compareObjects");
4393
+ function sn(e, t) {
4394
+ let { compareKeys: r, printBasicPrototype: n } = we(t);
4395
+ return {
4396
+ ...e,
4397
+ compareKeys: r,
4398
+ printBasicPrototype: n
4399
+ };
4400
+ }
4401
+ i(sn, "getFormatOptions");
4402
+ function Zs(e, t, r, n) {
4403
+ let o = { ...r, indent: 0 }, s = re(e, o), c = re(t, o);
4404
+ if (s === c)
4405
+ return nn(ic, n);
4406
+ {
4407
+ let u = re(e, r), a = re(t, r);
4408
+ return op(
4409
+ u.split(`
4410
+ `),
4411
+ a.split(`
4412
+ `),
4413
+ s.split(`
4414
+ `),
4415
+ c.split(`
4416
+ `),
4417
+ n
4418
+ );
4419
+ }
4420
+ }
4421
+ i(Zs, "getObjectsDifference");
4422
+ var Qs = 2e4;
4423
+ function ec(e) {
4424
+ return Wt(e) === "Object" && typeof e.asymmetricMatch == "function";
4425
+ }
4426
+ i(ec, "isAsymmetricMatcher");
4427
+ function tc(e, t) {
4428
+ let r = Wt(e), n = Wt(t);
4429
+ return r === n && (r === "Object" || r === "Array");
4430
+ }
4431
+ i(tc, "isReplaceable");
4432
+ function mc(e, t, r) {
4433
+ let { aAnnotation: n, bAnnotation: o } = we(r);
4434
+ if (typeof t == "string" && typeof e == "string" && t.length > 0 && e.length > 0 && t.length <= Qs && e.length <= Qs && t !== e) {
4435
+ if (t.includes(`
4436
+ `) || e.includes(`
4437
+ `))
4438
+ return up(t, e, r);
4439
+ let [y] = pc(t, e, !0), l = y.some((p) => p[0] === F), h = bp(n, o), g = h(n) + Ap(
4440
+ rc(y, G, l)
4441
+ ), m = h(o) + Ep(
4442
+ rc(y, q, l)
4443
+ );
4444
+ return `${g}
4445
+ ${m}`;
4446
+ }
4447
+ let s = Qr(t, { forceWritable: !0 }), c = Qr(e, { forceWritable: !0 }), { replacedExpected: u, replacedActual: a } = hc(c, s);
4448
+ return hp(u, a, r);
4449
+ }
4450
+ i(mc, "printDiffOrStringify");
4451
+ function hc(e, t, r = /* @__PURE__ */ new WeakSet(), n = /* @__PURE__ */ new WeakSet()) {
4452
+ return e instanceof Error && t instanceof Error && typeof e.cause < "u" && typeof t.cause > "u" ? (delete e.cause, {
4453
+ replacedActual: e,
4454
+ replacedExpected: t
4455
+ }) : tc(e, t) ? r.has(e) || n.has(t) ? { replacedActual: e, replacedExpected: t } : (r.add(e), n.add(t), Zr(t).forEach((o) => {
4456
+ let s = t[o], c = e[o];
4457
+ if (ec(s))
4458
+ s.asymmetricMatch(c) && (e[o] = s);
4459
+ else if (ec(c))
4460
+ c.asymmetricMatch(s) && (t[o] = c);
4461
+ else if (tc(c, s)) {
4462
+ let u = hc(
4463
+ c,
4464
+ s,
4465
+ r,
4466
+ n
4467
+ );
4468
+ e[o] = u.replacedActual, t[o] = u.replacedExpected;
4469
+ }
4470
+ }), {
4471
+ replacedActual: e,
4472
+ replacedExpected: t
4473
+ }) : { replacedActual: e, replacedExpected: t };
4474
+ }
4475
+ i(hc, "replaceAsymmetricMatcher");
4476
+ function bp(...e) {
4477
+ let t = e.reduce(
4478
+ (r, n) => n.length > r ? n.length : r,
4479
+ 0
4480
+ );
4481
+ return (r) => `${r}: ${" ".repeat(t - r.length)}`;
4482
+ }
4483
+ i(bp, "getLabelPrinter");
4484
+ var Sp = "\xB7";
4485
+ function dc(e) {
4486
+ return e.replace(/\s+$/gm, (t) => Sp.repeat(t.length));
4487
+ }
4488
+ i(dc, "replaceTrailingSpaces");
4489
+ function Ep(e) {
4490
+ return ie.red(dc(_e(e)));
4491
+ }
4492
+ i(Ep, "printReceived");
4493
+ function Ap(e) {
4494
+ return ie.green(dc(_e(e)));
4495
+ }
4496
+ i(Ap, "printExpected");
4497
+ function rc(e, t, r) {
4498
+ return e.reduce(
4499
+ (n, o) => n + (o[0] === F ? o[1] : o[0] === t ? r ? ie.inverse(o[1]) : o[1] : ""),
4500
+ ""
4501
+ );
4502
+ }
4503
+ i(rc, "getCommonAndChangedSubstrings");
4504
+
4505
+ // ../node_modules/@vitest/utils/dist/error.js
4506
+ var Op = "@@__IMMUTABLE_RECORD__@@", _p = "@@__IMMUTABLE_ITERABLE__@@";
4507
+ function wp(e) {
4508
+ return e && (e[_p] || e[Op]);
4509
+ }
4510
+ i(wp, "isImmutable");
4511
+ var Tp = Object.getPrototypeOf({});
4512
+ function bc(e) {
4513
+ return e instanceof Error ? `<unserializable>: ${e.message}` : typeof e == "string" ? `<unserializable>: ${e}` : "<unserializable>";
4514
+ }
4515
+ i(bc, "getUnserializableMessage");
4516
+ function Be(e, t = /* @__PURE__ */ new WeakMap()) {
4517
+ if (!e || typeof e == "string")
4518
+ return e;
4519
+ if (typeof e == "function")
4520
+ return `Function<${e.name || "anonymous"}>`;
4521
+ if (typeof e == "symbol")
4522
+ return e.toString();
4523
+ if (typeof e != "object")
4524
+ return e;
4525
+ if (wp(e))
4526
+ return Be(e.toJSON(), t);
4527
+ if (e instanceof Promise || e.constructor && e.constructor.prototype === "AsyncFunction")
4528
+ return "Promise";
4529
+ if (typeof Element < "u" && e instanceof Element)
4530
+ return e.tagName;
4531
+ if (typeof e.asymmetricMatch == "function")
4532
+ return `${e.toString()} ${Bs(e.sample)}`;
4533
+ if (typeof e.toJSON == "function")
4534
+ return Be(e.toJSON(), t);
4535
+ if (t.has(e))
4536
+ return t.get(e);
4537
+ if (Array.isArray(e)) {
4538
+ let r = new Array(e.length);
4539
+ return t.set(e, r), e.forEach((n, o) => {
4540
+ try {
4541
+ r[o] = Be(n, t);
4542
+ } catch (s) {
4543
+ r[o] = bc(s);
4544
+ }
4545
+ }), r;
4546
+ } else {
4547
+ let r = /* @__PURE__ */ Object.create(null);
4548
+ t.set(e, r);
4549
+ let n = e;
4550
+ for (; n && n !== Tp; )
4551
+ Object.getOwnPropertyNames(n).forEach((o) => {
4552
+ if (!(o in r))
4553
+ try {
4554
+ r[o] = Be(e[o], t);
4555
+ } catch (s) {
4556
+ delete r[o], r[o] = bc(s);
4557
+ }
4558
+ }), n = Object.getPrototypeOf(n);
4559
+ return r;
4560
+ }
4561
+ }
4562
+ i(Be, "serializeValue");
4563
+ function Pp(e) {
4564
+ return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g, "");
4565
+ }
4566
+ i(Pp, "normalizeErrorMessage");
4567
+ function pn(e, t, r = /* @__PURE__ */ new WeakSet()) {
4568
+ if (!e || typeof e != "object")
4569
+ return { message: String(e) };
4570
+ let n = e;
4571
+ n.stack && (n.stackStr = String(n.stack)), n.name && (n.nameStr = String(n.name)), (n.showDiff || n.showDiff === void 0 && n.expected !== void 0 &&
4572
+ n.actual !== void 0) && (n.diff = mc(n.actual, n.expected, {
4573
+ ...t,
4574
+ ...n.diffOptions
4575
+ })), typeof n.expected != "string" && (n.expected = _e(n.expected, 10)), typeof n.actual != "string" && (n.actual = _e(n.actual, 10));
4576
+ try {
4577
+ typeof n.message == "string" && (n.message = Pp(n.message));
4578
+ } catch {
4579
+ }
4580
+ try {
4581
+ !r.has(n) && typeof n.cause == "object" && (r.add(n), n.cause = pn(n.cause, t, r));
4582
+ } catch {
4583
+ }
4584
+ try {
4585
+ return Be(n);
4586
+ } catch (o) {
4587
+ return Be(
4588
+ new Error(
4589
+ `Failed to fully serialize error: ${o?.message}
4590
+ Inner error message: ${n?.message}`
4591
+ )
4592
+ );
4593
+ }
4594
+ }
4595
+ i(pn, "processError");
4596
+
4597
+ // src/instrumenter/instrumenter.ts
4598
+ import { addons as yn } from "storybook/preview-api";
4599
+
4600
+ // src/instrumenter/types.ts
4601
+ var Cp = /* @__PURE__ */ ((o) => (o.DONE = "done", o.ERROR = "error", o.ACTIVE = "active", o.WAITING = "waiting", o))(Cp || {});
4602
+
4603
+ // src/instrumenter/instrumenter.ts
4604
+ var fe = {
4605
+ CALL: "storybook/instrumenter/call",
4606
+ SYNC: "storybook/instrumenter/sync",
4607
+ START: "storybook/instrumenter/start",
4608
+ BACK: "storybook/instrumenter/back",
4609
+ GOTO: "storybook/instrumenter/goto",
4610
+ NEXT: "storybook/instrumenter/next",
4611
+ END: "storybook/instrumenter/end"
4612
+ }, Ec = {
4613
+ start: !1,
4614
+ back: !1,
4615
+ goto: !1,
4616
+ next: !1,
4617
+ end: !1
4618
+ }, Np = new Error(
4619
+ "This function ran after the play function completed. Did you forget to `await` it?"
4620
+ ), Ac = /* @__PURE__ */ i((e) => Object.prototype.toString.call(e) === "[object Object]", "isObject"), jp = /* @__PURE__ */ i((e) => Object.
4621
+ prototype.toString.call(e) === "[object Module]", "isModule"), Mp = /* @__PURE__ */ i((e) => {
4622
+ if (!Ac(e) && !jp(e))
4623
+ return !1;
4624
+ if (e.constructor === void 0)
4625
+ return !0;
4626
+ let t = e.constructor.prototype;
4627
+ return !!Ac(t);
4628
+ }, "isInstrumentable"), xp = /* @__PURE__ */ i((e) => {
4629
+ try {
4630
+ return new e.constructor();
4631
+ } catch {
4632
+ return {};
4633
+ }
4634
+ }, "construct"), gn = /* @__PURE__ */ i(() => ({
4635
+ renderPhase: void 0,
4636
+ isDebugging: !1,
4637
+ isPlaying: !1,
4638
+ isLocked: !1,
4639
+ cursor: 0,
4640
+ calls: [],
4641
+ shadowCalls: [],
4642
+ callRefsByResult: /* @__PURE__ */ new Map(),
4643
+ chainedCallIds: /* @__PURE__ */ new Set(),
4644
+ ancestors: [],
4645
+ playUntil: void 0,
4646
+ resolvers: {},
4647
+ syncTimeout: void 0
4648
+ }), "getInitialState"), Oc = /* @__PURE__ */ i((e, t = !1) => {
4649
+ let r = (t ? e.shadowCalls : e.calls).filter((o) => o.retain);
4650
+ if (!r.length)
4651
+ return;
4652
+ let n = new Map(
4653
+ Array.from(e.callRefsByResult.entries()).filter(([, o]) => o.retain)
4654
+ );
4655
+ return { cursor: r.length, calls: r, callRefsByResult: n };
4656
+ }, "getRetainedState"), hn = class hn {
4657
+ constructor() {
4658
+ this.initialized = !1;
4659
+ this.state = V.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ || {};
4660
+ let t = /* @__PURE__ */ i(({
4661
+ storyId: a,
4662
+ isPlaying: f = !0,
4663
+ isDebugging: y = !1
4664
+ }) => {
4665
+ let l = this.getState(a);
4666
+ this.setState(a, {
4667
+ ...gn(),
4668
+ ...Oc(l, y),
4669
+ shadowCalls: y ? l.shadowCalls : [],
4670
+ chainedCallIds: y ? l.chainedCallIds : /* @__PURE__ */ new Set(),
4671
+ playUntil: y ? l.playUntil : void 0,
4672
+ isPlaying: f,
4673
+ isDebugging: y
4674
+ }), this.sync(a);
4675
+ }, "resetState"), r = /* @__PURE__ */ i((a) => ({ storyId: f, playUntil: y }) => {
4676
+ this.getState(f).isDebugging || this.setState(f, ({ calls: h }) => ({
4677
+ calls: [],
4678
+ shadowCalls: h.map((g) => ({ ...g, status: "waiting" })),
4679
+ isDebugging: !0
4680
+ }));
4681
+ let l = this.getLog(f);
4682
+ this.setState(f, ({ shadowCalls: h }) => {
4683
+ if (y || !l.length)
4684
+ return { playUntil: y };
4685
+ let g = h.findIndex((m) => m.id === l[0].callId);
4686
+ return {
4687
+ playUntil: h.slice(0, g).filter((m) => m.interceptable && !m.ancestors?.length).slice(-1)[0]?.id
4688
+ };
4689
+ }), a.emit(Sc, { storyId: f, isDebugging: !0 });
4690
+ }, "start"), n = /* @__PURE__ */ i((a) => ({ storyId: f }) => {
4691
+ let y = this.getLog(f).filter((h) => !h.ancestors?.length), l = y.reduceRight((h, g, m) => h >= 0 || g.status === "waiting" ? h : m, -1);
4692
+ r(a)({ storyId: f, playUntil: y[l - 1]?.callId });
4693
+ }, "back"), o = /* @__PURE__ */ i((a) => ({ storyId: f, callId: y }) => {
4694
+ let { calls: l, shadowCalls: h, resolvers: g } = this.getState(f), m = l.find(({ id: d }) => d === y), p = h.find(({ id: d }) => d ===
4695
+ y);
4696
+ if (!m && p && Object.values(g).length > 0) {
4697
+ let d = this.getLog(f).find((S) => S.status === "waiting")?.callId;
4698
+ p.id !== d && this.setState(f, { playUntil: p.id }), Object.values(g).forEach((S) => S());
4699
+ } else
4700
+ r(a)({ storyId: f, playUntil: y });
4701
+ }, "goto"), s = /* @__PURE__ */ i((a) => ({ storyId: f }) => {
4702
+ let { resolvers: y } = this.getState(f);
4703
+ if (Object.values(y).length > 0)
4704
+ Object.values(y).forEach((l) => l());
4705
+ else {
4706
+ let l = this.getLog(f).find((h) => h.status === "waiting")?.callId;
4707
+ l ? r(a)({ storyId: f, playUntil: l }) : c({ storyId: f });
4708
+ }
4709
+ }, "next"), c = /* @__PURE__ */ i(({ storyId: a }) => {
4710
+ this.setState(a, { playUntil: void 0, isDebugging: !1 }), Object.values(this.getState(a).resolvers).forEach((f) => f());
4711
+ }, "end"), u = /* @__PURE__ */ i(({ storyId: a, newPhase: f }) => {
4712
+ let { isDebugging: y } = this.getState(a);
4713
+ this.setState(a, { renderPhase: f }), f === "preparing" && y && t({ storyId: a }), f === "playing" && t({ storyId: a, isDebugging: y }),
4714
+ f === "played" && this.setState(a, {
4715
+ isLocked: !1,
4716
+ isPlaying: !1,
4717
+ isDebugging: !1
4718
+ }), f === "errored" && this.setState(a, {
4719
+ isLocked: !1,
4720
+ isPlaying: !1
4721
+ });
4722
+ }, "renderPhaseChanged");
4723
+ (yn ? yn.ready() : Promise.resolve()).then(() => {
4724
+ this.channel = yn.getChannel(), this.channel.on(Sc, t), this.channel.on(Ip, u), this.channel.on(Rp, () => {
4725
+ this.initialized ? this.cleanup() : this.initialized = !0;
4726
+ }), this.channel.on(fe.START, r(this.channel)), this.channel.on(fe.BACK, n(this.channel)), this.channel.on(fe.GOTO, o(this.channel)), this.
4727
+ channel.on(fe.NEXT, s(this.channel)), this.channel.on(fe.END, c);
4728
+ });
4729
+ }
4730
+ getState(t) {
4731
+ return this.state[t] || gn();
4732
+ }
4733
+ setState(t, r) {
4734
+ let n = this.getState(t), o = typeof r == "function" ? r(n) : r;
4735
+ this.state = { ...this.state, [t]: { ...n, ...o } }, V.window?.parent && (V.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ =
4736
+ this.state);
4737
+ }
4738
+ cleanup() {
4739
+ this.state = Object.entries(this.state).reduce(
4740
+ (r, [n, o]) => {
4741
+ let s = Oc(o);
4742
+ return s && (r[n] = Object.assign(gn(), s)), r;
4743
+ },
4744
+ {}
4745
+ );
4746
+ let t = { controlStates: Ec, logItems: [] };
4747
+ this.channel?.emit(fe.SYNC, t), V.window?.parent && (V.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ = this.state);
4748
+ }
4749
+ getLog(t) {
4750
+ let { calls: r, shadowCalls: n } = this.getState(t), o = [...n];
4751
+ r.forEach((c, u) => {
4752
+ o[u] = c;
4753
+ });
4754
+ let s = /* @__PURE__ */ new Set();
4755
+ return o.reduceRight((c, u) => (u.args.forEach((a) => {
4756
+ a?.__callId__ && s.add(a.__callId__);
4757
+ }), u.path.forEach((a) => {
4758
+ a.__callId__ && s.add(a.__callId__);
4759
+ }), (u.interceptable || u.exception) && !s.has(u.id) && (c.unshift({ callId: u.id, status: u.status, ancestors: u.ancestors }), s.add(u.
4760
+ id)), c), []);
4761
+ }
4762
+ // Traverses the object structure to recursively patch all function properties.
4763
+ // Returns the original object, or a new object with the same constructor,
4764
+ // depending on whether it should mutate.
4765
+ instrument(t, r, n = 0) {
4766
+ if (!Mp(t))
4767
+ return t;
4768
+ let { mutate: o = !1, path: s = [] } = r, c = r.getKeys ? r.getKeys(t, n) : Object.keys(t);
4769
+ return n += 1, c.reduce(
4770
+ (u, a) => {
4771
+ let f = Fp(t, a);
4772
+ if (typeof f?.get == "function") {
4773
+ if (f.configurable) {
4774
+ let l = /* @__PURE__ */ i(() => f?.get?.bind(t)?.(), "getter");
4775
+ Object.defineProperty(u, a, {
4776
+ get: /* @__PURE__ */ i(() => this.instrument(l(), { ...r, path: s.concat(a) }, n), "get")
4777
+ });
4778
+ }
4779
+ return u;
4780
+ }
4781
+ let y = t[a];
4782
+ return typeof y != "function" ? (u[a] = this.instrument(y, { ...r, path: s.concat(a) }, n), u) : "__originalFn__" in y && typeof y.__originalFn__ ==
4783
+ "function" ? (u[a] = y, u) : (u[a] = (...l) => this.track(a, y, t, l, r), u[a].__originalFn__ = y, Object.defineProperty(u[a], "name",
4784
+ { value: a, writable: !1 }), Object.keys(y).length > 0 && Object.assign(
4785
+ u[a],
4786
+ this.instrument({ ...y }, { ...r, path: s.concat(a) }, n)
4787
+ ), u);
4788
+ },
4789
+ o ? t : xp(t)
4790
+ );
4791
+ }
4792
+ // Monkey patch an object method to record calls.
4793
+ // Returns a function that invokes the original function, records the invocation ("call") and
4794
+ // returns the original result.
4795
+ track(t, r, n, o, s) {
4796
+ let c = o?.[0]?.__storyId__ || V.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId, { cursor: u, ancestors: a } = this.getState(
4797
+ c);
4798
+ this.setState(c, { cursor: u + 1 });
4799
+ let f = `${a.slice(-1)[0] || c} [${u}] ${t}`, { path: y = [], intercept: l = !1, retain: h = !1 } = s, g = typeof l == "function" ? l(t,
4800
+ y) : l, m = { id: f, cursor: u, storyId: c, ancestors: a, path: y, method: t, args: o, interceptable: g, retain: h }, d = (g && !a.length ?
4801
+ this.intercept : this.invoke).call(this, r, n, m, s);
4802
+ return this.instrument(d, { ...s, mutate: !0, path: [{ __callId__: m.id }] });
4803
+ }
4804
+ intercept(t, r, n, o) {
4805
+ let { chainedCallIds: s, isDebugging: c, playUntil: u } = this.getState(n.storyId), a = s.has(n.id);
4806
+ return !c || a || u ? (u === n.id && this.setState(n.storyId, { playUntil: void 0 }), this.invoke(t, r, n, o)) : new Promise((f) => {
4807
+ this.setState(n.storyId, ({ resolvers: y }) => ({
4808
+ isLocked: !1,
4809
+ resolvers: { ...y, [n.id]: f }
4810
+ }));
4811
+ }).then(() => (this.setState(n.storyId, (f) => {
4812
+ let { [n.id]: y, ...l } = f.resolvers;
4813
+ return { isLocked: !0, resolvers: l };
4814
+ }), this.invoke(t, r, n, o)));
4815
+ }
4816
+ invoke(t, r, n, o) {
4817
+ let { callRefsByResult: s, renderPhase: c } = this.getState(n.storyId), u = 25, a = /* @__PURE__ */ i((l, h, g) => {
4818
+ if (g.includes(l))
4819
+ return "[Circular]";
4820
+ if (g = [...g, l], h > u)
4821
+ return "...";
4822
+ if (s.has(l))
4823
+ return s.get(l);
4824
+ if (l instanceof Array)
4825
+ return l.map((m) => a(m, ++h, g));
4826
+ if (l instanceof Date)
4827
+ return { __date__: { value: l.toISOString() } };
4828
+ if (l instanceof Error) {
4829
+ let { name: m, message: p, stack: d } = l;
4830
+ return { __error__: { name: m, message: p, stack: d } };
4831
+ }
4832
+ if (l instanceof RegExp) {
4833
+ let { flags: m, source: p } = l;
4834
+ return { __regexp__: { flags: m, source: p } };
4835
+ }
4836
+ if (l instanceof V.window?.HTMLElement) {
4837
+ let { prefix: m, localName: p, id: d, classList: S, innerText: A } = l, T = Array.from(S);
4838
+ return { __element__: { prefix: m, localName: p, id: d, classNames: T, innerText: A } };
4839
+ }
4840
+ return typeof l == "function" ? {
4841
+ __function__: { name: "getMockName" in l ? l.getMockName() : l.name }
4842
+ } : typeof l == "symbol" ? { __symbol__: { description: l.description } } : typeof l == "object" && l?.constructor?.name && l?.constructor?.
4843
+ name !== "Object" ? { __class__: { name: l.constructor.name } } : Object.prototype.toString.call(l) === "[object Object]" ? Object.fromEntries(
4844
+ Object.entries(l).map(([m, p]) => [m, a(p, ++h, g)])
4845
+ ) : l;
4846
+ }, "serializeValues"), f = {
4847
+ ...n,
4848
+ args: n.args.map((l) => a(l, 0, []))
4849
+ };
4850
+ n.path.forEach((l) => {
4851
+ l?.__callId__ && this.setState(n.storyId, ({ chainedCallIds: h }) => ({
4852
+ chainedCallIds: new Set(Array.from(h).concat(l.__callId__))
4853
+ }));
4854
+ });
4855
+ let y = /* @__PURE__ */ i((l) => {
4856
+ if (l instanceof Error) {
4857
+ let { name: h, message: g, stack: m, callId: p = n.id } = l, {
4858
+ showDiff: d = void 0,
4859
+ diff: S = void 0,
4860
+ actual: A = void 0,
4861
+ expected: T = void 0
4862
+ } = l.name === "AssertionError" ? pn(l) : l, b = { name: h, message: g, stack: m, callId: p, showDiff: d, diff: S, actual: A, expected: T };
4863
+ if (this.update({ ...f, status: "error", exception: b }), this.setState(n.storyId, (E) => ({
4864
+ callRefsByResult: new Map([
4865
+ ...Array.from(E.callRefsByResult.entries()),
4866
+ [l, { __callId__: n.id, retain: n.retain }]
4867
+ ])
4868
+ })), n.ancestors?.length)
4869
+ throw Object.prototype.hasOwnProperty.call(l, "callId") || Object.defineProperty(l, "callId", { value: n.id }), l;
4870
+ }
4871
+ throw l;
4872
+ }, "handleException");
4873
+ try {
4874
+ if (c === "played" && !n.retain)
4875
+ throw Np;
4876
+ let h = (o.getArgs ? o.getArgs(n, this.getState(n.storyId)) : n.args).map((m) => typeof m != "function" || Object.keys(m).length ? m :
4877
+ (...p) => {
4878
+ let { cursor: d, ancestors: S } = this.getState(n.storyId);
4879
+ this.setState(n.storyId, { cursor: 0, ancestors: [...S, n.id] });
4880
+ let A = /* @__PURE__ */ i(() => this.setState(n.storyId, { cursor: d, ancestors: S }), "restore"), T = !1;
4881
+ try {
4882
+ let b = m(...p);
4883
+ return b instanceof Promise ? (T = !0, b.finally(A)) : b;
4884
+ } finally {
4885
+ T || A();
4886
+ }
4887
+ }), g = t.apply(r, h);
4888
+ return g && ["object", "function", "symbol"].includes(typeof g) && this.setState(n.storyId, (m) => ({
4889
+ callRefsByResult: new Map([
4890
+ ...Array.from(m.callRefsByResult.entries()),
4891
+ [g, { __callId__: n.id, retain: n.retain }]
4892
+ ])
4893
+ })), this.update({
4894
+ ...f,
4895
+ status: g instanceof Promise ? "active" : "done"
4896
+ }), g instanceof Promise ? g.then((m) => (this.update({ ...f, status: "done" }), m), y) : g;
4897
+ } catch (l) {
4898
+ return y(l);
4899
+ }
4900
+ }
4901
+ // Sends the call info to the manager and synchronizes the log.
4902
+ update(t) {
4903
+ this.channel?.emit(fe.CALL, t), this.setState(t.storyId, ({ calls: r }) => {
4904
+ let n = r.concat(t).reduce((o, s) => Object.assign(o, { [s.id]: s }), {});
4905
+ return {
4906
+ // Calls are sorted to ensure parent calls always come before calls in their callback.
4907
+ calls: Object.values(n).sort(
4908
+ (o, s) => o.id.localeCompare(s.id, void 0, { numeric: !0 })
4909
+ )
4910
+ };
4911
+ }), this.sync(t.storyId);
4912
+ }
4913
+ // Builds a log of interceptable calls and control states and sends it to the manager.
4914
+ // Uses a 0ms debounce because this might get called many times in one tick.
4915
+ sync(t) {
4916
+ let r = /* @__PURE__ */ i(() => {
4917
+ let { isLocked: n, isPlaying: o } = this.getState(t), s = this.getLog(t), c = s.filter(({ ancestors: l }) => !l.length).find((l) => l.
4918
+ status === "waiting")?.callId, u = s.some((l) => l.status === "active");
4919
+ if (n || u || s.length === 0) {
4920
+ let l = { controlStates: Ec, logItems: s };
4921
+ this.channel?.emit(fe.SYNC, l);
4922
+ return;
4923
+ }
4924
+ let a = s.some(
4925
+ (l) => l.status === "done" || l.status === "error"
4926
+ ), y = { controlStates: {
4927
+ start: a,
4928
+ back: a,
4929
+ goto: !0,
4930
+ next: o,
4931
+ end: o
4932
+ }, logItems: s, pausedAt: c };
4933
+ this.channel?.emit(fe.SYNC, y);
4934
+ }, "synchronize");
4935
+ this.setState(t, ({ syncTimeout: n }) => (clearTimeout(n), { syncTimeout: setTimeout(r, 0) }));
4936
+ }
4937
+ };
4938
+ i(hn, "Instrumenter");
4939
+ var mn = hn;
4940
+ function vp(e, t = {}) {
4941
+ try {
4942
+ let r = !1, n = !1;
4943
+ return V.window?.location?.search?.includes("instrument=true") ? r = !0 : V.window?.location?.search?.includes("instrument=false") && (n =
4944
+ !0), V.window?.parent === V.window && !r || n ? e : (V.window && !V.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ && (V.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ =
4945
+ new mn()), (V.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e, t));
4946
+ } catch (r) {
4947
+ return $p.warn(r), e;
4948
+ }
4949
+ }
4950
+ i(vp, "instrument");
4951
+ function Fp(e, t) {
4952
+ let r = e;
4953
+ for (; r != null; ) {
4954
+ let n = Object.getOwnPropertyDescriptor(r, t);
4955
+ if (n)
4956
+ return n;
4957
+ r = Object.getPrototypeOf(r);
4958
+ }
4959
+ }
4960
+ i(Fp, "getPropertyDescriptor");
4961
+ export {
4962
+ Cp as CallStates,
4963
+ fe as EVENTS,
4964
+ vp as instrument
4965
+ };