storybook 9.0.0-alpha.1 → 9.0.0-alpha.11
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.
- package/README.md +31 -29
- package/assets/browser/favicon.svg +1 -0
- package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-bold.woff2 +0 -0
- package/assets/browser/nunito-sans-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-regular.woff2 +0 -0
- package/assets/docs/addon-controls-args-annotated.png +0 -0
- package/assets/docs/addon-controls-args-background-color.png +0 -0
- package/assets/docs/addon-controls-args-background-string.png +0 -0
- package/assets/docs/addon-controls-args-docs.png +0 -0
- package/assets/docs/addon-controls-args-logging.png +0 -0
- package/assets/docs/addon-controls-args-no-annotation.png +0 -0
- package/assets/docs/addon-controls-args-reflow-slider.png +0 -0
- package/assets/docs/addon-controls-args-reflow.png +0 -0
- package/assets/docs/addon-controls-args-template.png +0 -0
- package/assets/docs/addon-controls-expanded.png +0 -0
- package/assets/docs/addon-controls-hero.gif +0 -0
- package/assets/docs/addon-controls-install.png +0 -0
- package/assets/docs/hero.gif +0 -0
- package/assets/docs/message-reference.png +0 -0
- package/assets/docs/viewport.png +0 -0
- package/assets/server/addon.tsconfig.json +6 -0
- package/assets/server/base-preview-body.html +119 -0
- package/assets/server/base-preview-head.html +451 -0
- package/assets/server/template.ejs +87 -0
- package/bin/index.cjs +1 -1
- package/dist/actions/decorator.d.ts +6 -0
- package/dist/actions/decorator.js +139 -0
- package/dist/actions/index.cjs +127 -0
- package/dist/actions/index.d.ts +105 -0
- package/dist/actions/index.js +112 -0
- package/dist/actions/manager.js +1196 -0
- package/dist/actions/preview.cjs +165 -0
- package/dist/actions/preview.d.ts +55 -0
- package/dist/actions/preview.js +156 -0
- package/dist/babel/index.cjs +54034 -0
- package/dist/babel/index.d.ts +7488 -0
- package/dist/babel/index.js +54044 -0
- package/dist/bin/index.cjs +118 -0
- package/dist/bin/index.js +112 -0
- package/dist/builder-manager/index.cjs +2140 -0
- package/dist/builder-manager/index.d.ts +19 -0
- package/dist/builder-manager/index.js +2162 -0
- package/dist/channels/index.cjs +1913 -0
- package/dist/channels/index.d.ts +108 -0
- package/dist/channels/index.js +1881 -0
- package/dist/cli/bin/index.cjs +2687 -0
- package/dist/cli/bin/index.d.ts +2 -0
- package/dist/cli/bin/index.js +2707 -0
- package/dist/cli/index.cjs +17327 -0
- package/dist/cli/index.d.ts +209 -0
- package/dist/cli/index.js +17349 -0
- package/dist/client-logger/index.cjs +80 -0
- package/dist/client-logger/index.d.ts +29 -0
- package/dist/client-logger/index.js +64 -0
- package/dist/common/index.cjs +20568 -0
- package/dist/common/index.d.ts +948 -0
- package/dist/common/index.js +20653 -0
- package/dist/component-testing/index.cjs +23 -0
- package/dist/component-testing/index.d.ts +3 -0
- package/dist/component-testing/index.js +5 -0
- package/dist/component-testing/manager.css +170 -0
- package/dist/component-testing/manager.js +3099 -0
- package/dist/component-testing/preview.cjs +40 -0
- package/dist/component-testing/preview.d.ts +5 -0
- package/dist/component-testing/preview.js +25 -0
- package/dist/components/index.cjs +27925 -0
- package/dist/components/index.d.ts +1423 -0
- package/dist/components/index.js +24674 -0
- package/dist/controls/decorator.d.ts +5 -0
- package/dist/controls/decorator.js +8 -0
- package/dist/controls/index.cjs +26 -0
- package/dist/controls/index.d.ts +39 -0
- package/dist/controls/index.js +6 -0
- package/dist/controls/manager.js +5545 -0
- package/dist/controls/preview.cjs +26 -0
- package/dist/controls/preview.d.ts +55 -0
- package/dist/controls/preview.js +9 -0
- package/dist/core-events/index.cjs +167 -0
- package/dist/core-events/index.d.ts +426 -0
- package/dist/core-events/index.js +149 -0
- package/dist/core-server/index.cjs +38183 -0
- package/dist/core-server/index.d.ts +720 -0
- package/dist/core-server/index.js +38272 -0
- package/dist/core-server/presets/common-manager.js +20 -0
- package/dist/core-server/presets/common-override-preset.cjs +4824 -0
- package/dist/core-server/presets/common-override-preset.js +4829 -0
- package/dist/core-server/presets/common-preset.cjs +10231 -0
- package/dist/core-server/presets/common-preset.js +10309 -0
- package/dist/csf/index.cjs +179 -0
- package/dist/csf/index.d.ts +750 -0
- package/dist/csf/index.js +172 -0
- package/dist/csf-tools/index.cjs +1422 -0
- package/dist/csf-tools/index.d.ts +250 -0
- package/dist/csf-tools/index.js +1439 -0
- package/dist/docs-tools/index.cjs +2891 -0
- package/dist/docs-tools/index.d.ts +162 -0
- package/dist/docs-tools/index.js +2876 -0
- package/dist/index.cjs +17 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -7
- package/dist/instrumenter/index.cjs +3492 -0
- package/dist/instrumenter/index.d.ts +104 -0
- package/dist/instrumenter/index.js +4964 -0
- package/dist/manager/globals-module-info.cjs +817 -0
- package/dist/manager/globals-module-info.d.ts +36 -0
- package/dist/manager/globals-module-info.js +804 -0
- package/dist/manager/globals-runtime.js +83389 -0
- package/dist/manager/globals.cjs +47 -0
- package/dist/manager/globals.d.ts +24 -0
- package/dist/manager/globals.js +34 -0
- package/dist/manager/runtime.js +12323 -0
- package/dist/manager-api/index.cjs +11074 -0
- package/dist/manager-api/index.d.ts +1512 -0
- package/dist/manager-api/index.js +4835 -0
- package/dist/manager-errors.d.ts +89 -0
- package/dist/manager-errors.js +99 -0
- package/dist/node-logger/index.cjs +1642 -0
- package/dist/node-logger/index.d.ts +117 -0
- package/dist/node-logger/index.js +1652 -0
- package/dist/preview/globals.cjs +38 -0
- package/dist/preview/globals.d.ts +15 -0
- package/dist/preview/globals.js +25 -0
- package/dist/preview/runtime.js +44921 -0
- package/dist/preview-api/index.cjs +5227 -0
- package/dist/preview-api/index.d.ts +1093 -0
- package/dist/preview-api/index.js +5295 -0
- package/dist/preview-errors.cjs +503 -0
- package/dist/preview-errors.d.ts +212 -0
- package/dist/preview-errors.js +449 -0
- package/dist/router/index.cjs +3296 -0
- package/dist/router/index.d.ts +385 -0
- package/dist/router/index.js +1843 -0
- package/dist/server-errors.cjs +727 -0
- package/dist/server-errors.d.ts +296 -0
- package/dist/server-errors.js +728 -0
- package/dist/telemetry/index.cjs +2756 -0
- package/dist/telemetry/index.d.ts +133 -0
- package/dist/telemetry/index.js +2797 -0
- package/dist/test/index.cjs +35685 -0
- package/dist/test/index.d.ts +186 -0
- package/dist/test/index.js +33751 -0
- package/dist/test/preview.cjs +15869 -0
- package/dist/test/preview.d.ts +54 -0
- package/dist/test/preview.js +14440 -0
- package/dist/test/spy.cjs +257 -0
- package/dist/test/spy.d.ts +66 -0
- package/dist/test/spy.js +239 -0
- package/dist/theming/create.cjs +232 -0
- package/dist/theming/create.d.ts +50 -0
- package/dist/theming/create.js +216 -0
- package/dist/theming/index.cjs +2665 -0
- package/dist/theming/index.d.ts +11939 -0
- package/dist/theming/index.js +2485 -0
- package/dist/types/index.cjs +27 -0
- package/dist/types/index.d.ts +2795 -0
- package/dist/types/index.js +7 -0
- package/dist/viewport/index.cjs +310 -0
- package/dist/viewport/index.d.ts +320 -0
- package/dist/viewport/index.js +290 -0
- package/dist/viewport/manager.js +400 -0
- package/dist/viewport/preview.cjs +35 -0
- package/dist/viewport/preview.d.ts +69 -0
- package/dist/viewport/preview.js +19 -0
- package/package.json +539 -209
- package/.eslintrc.cjs +0 -31
- package/__mocks__/@aw-web-design/x-default-browser.js +0 -2
- package/core/babel/index.cjs +0 -1
- package/core/babel/index.d.ts +0 -2
- package/core/babel/index.js +0 -1
- package/core/builder-manager/index.cjs +0 -1
- package/core/builder-manager/index.d.ts +0 -2
- package/core/builder-manager/index.js +0 -1
- package/core/channels/index.cjs +0 -1
- package/core/channels/index.d.ts +0 -2
- package/core/channels/index.js +0 -1
- package/core/cli/bin/index.cjs +0 -1
- package/core/cli/bin/index.d.ts +0 -2
- package/core/cli/bin/index.js +0 -1
- package/core/cli/index.cjs +0 -1
- package/core/cli/index.d.ts +0 -2
- package/core/cli/index.js +0 -1
- package/core/client-logger/index.cjs +0 -1
- package/core/client-logger/index.d.ts +0 -2
- package/core/client-logger/index.js +0 -1
- package/core/common/index.cjs +0 -1
- package/core/common/index.d.ts +0 -2
- package/core/common/index.js +0 -1
- package/core/components/index.cjs +0 -1
- package/core/components/index.d.ts +0 -2
- package/core/components/index.js +0 -1
- package/core/core-events/index.cjs +0 -1
- package/core/core-events/index.d.ts +0 -2
- package/core/core-events/index.js +0 -1
- package/core/core-server/index.cjs +0 -1
- package/core/core-server/index.d.ts +0 -2
- package/core/core-server/index.js +0 -1
- package/core/core-server/presets/common-manager.js +0 -1
- package/core/core-server/presets/common-override-preset.cjs +0 -1
- package/core/core-server/presets/common-override-preset.js +0 -1
- package/core/core-server/presets/common-preset.cjs +0 -1
- package/core/core-server/presets/common-preset.js +0 -1
- package/core/csf/index.cjs +0 -1
- package/core/csf/index.d.ts +0 -2
- package/core/csf/index.js +0 -1
- package/core/csf-tools/index.cjs +0 -1
- package/core/csf-tools/index.d.ts +0 -2
- package/core/csf-tools/index.js +0 -1
- package/core/docs-tools/index.cjs +0 -1
- package/core/docs-tools/index.d.ts +0 -2
- package/core/docs-tools/index.js +0 -1
- package/core/index.cjs +0 -1
- package/core/index.d.ts +0 -2
- package/core/index.js +0 -1
- package/core/manager/globals-module-info.cjs +0 -1
- package/core/manager/globals-module-info.d.ts +0 -2
- package/core/manager/globals-module-info.js +0 -1
- package/core/manager/globals-runtime.js +0 -1
- package/core/manager/globals.cjs +0 -1
- package/core/manager/globals.d.ts +0 -2
- package/core/manager/globals.js +0 -1
- package/core/manager-api/index.cjs +0 -1
- package/core/manager-api/index.d.ts +0 -2
- package/core/manager-api/index.js +0 -1
- package/core/manager-errors.d.ts +0 -2
- package/core/manager-errors.js +0 -1
- package/core/node-logger/index.cjs +0 -1
- package/core/node-logger/index.d.ts +0 -2
- package/core/node-logger/index.js +0 -1
- package/core/preview/globals.cjs +0 -1
- package/core/preview/globals.d.ts +0 -2
- package/core/preview/globals.js +0 -1
- package/core/preview/runtime.js +0 -1
- package/core/preview-api/index.cjs +0 -1
- package/core/preview-api/index.d.ts +0 -2
- package/core/preview-api/index.js +0 -1
- package/core/preview-errors.cjs +0 -1
- package/core/preview-errors.d.ts +0 -2
- package/core/preview-errors.js +0 -1
- package/core/router/index.cjs +0 -1
- package/core/router/index.d.ts +0 -2
- package/core/router/index.js +0 -1
- package/core/server-errors.cjs +0 -1
- package/core/server-errors.d.ts +0 -2
- package/core/server-errors.js +0 -1
- package/core/telemetry/index.cjs +0 -1
- package/core/telemetry/index.d.ts +0 -2
- package/core/telemetry/index.js +0 -1
- package/core/theming/create.cjs +0 -1
- package/core/theming/create.d.ts +0 -2
- package/core/theming/create.js +0 -1
- package/core/theming/index.cjs +0 -1
- package/core/theming/index.d.ts +0 -2
- package/core/theming/index.js +0 -1
- package/core/types/index.cjs +0 -1
- package/core/types/index.d.ts +0 -2
- package/core/types/index.js +0 -1
- package/core.cjs +0 -0
- package/core.d.ts +0 -0
- package/core.js +0 -1
- package/dist/chunk-OWLSIX54.js +0 -8
- package/dist/core-path.cjs +0 -1
- package/dist/core-path.d.ts +0 -3
- package/dist/core-path.js +0 -9
- package/dist/proxy.cjs +0 -1
- package/dist/proxy.d.ts +0 -2
- package/dist/proxy.js +0 -9
|
@@ -0,0 +1,4964 @@
|
|
|
1
|
+
var _c = Object.defineProperty;
|
|
2
|
+
var i = (e, t) => _c(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 = _((zy, ro) => {
|
|
7
|
+
"use strict";
|
|
8
|
+
ro.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 = _((Gy, no) => {
|
|
41
|
+
"use strict";
|
|
42
|
+
var ru = br();
|
|
43
|
+
no.exports = /* @__PURE__ */ i(function() {
|
|
44
|
+
return ru() && !!Symbol.toStringTag;
|
|
45
|
+
}, "hasToStringTagShams");
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
// ../node_modules/es-object-atoms/index.js
|
|
49
|
+
var Sr = _((Vy, oo) => {
|
|
50
|
+
"use strict";
|
|
51
|
+
oo.exports = Object;
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
// ../node_modules/es-errors/index.js
|
|
55
|
+
var so = _((Hy, io) => {
|
|
56
|
+
"use strict";
|
|
57
|
+
io.exports = Error;
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
// ../node_modules/es-errors/eval.js
|
|
61
|
+
var ao = _((Jy, co) => {
|
|
62
|
+
"use strict";
|
|
63
|
+
co.exports = EvalError;
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
// ../node_modules/es-errors/range.js
|
|
67
|
+
var lo = _((Ky, uo) => {
|
|
68
|
+
"use strict";
|
|
69
|
+
uo.exports = RangeError;
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
// ../node_modules/es-errors/ref.js
|
|
73
|
+
var po = _((Xy, fo) => {
|
|
74
|
+
"use strict";
|
|
75
|
+
fo.exports = ReferenceError;
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
// ../node_modules/es-errors/syntax.js
|
|
79
|
+
var Er = _((Zy, yo) => {
|
|
80
|
+
"use strict";
|
|
81
|
+
yo.exports = SyntaxError;
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
// ../node_modules/es-errors/type.js
|
|
85
|
+
var We = _((Qy, go) => {
|
|
86
|
+
"use strict";
|
|
87
|
+
go.exports = TypeError;
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
// ../node_modules/es-errors/uri.js
|
|
91
|
+
var ho = _((eg, mo) => {
|
|
92
|
+
"use strict";
|
|
93
|
+
mo.exports = URIError;
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
// ../node_modules/math-intrinsics/abs.js
|
|
97
|
+
var So = _((tg, bo) => {
|
|
98
|
+
"use strict";
|
|
99
|
+
bo.exports = Math.abs;
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
// ../node_modules/math-intrinsics/floor.js
|
|
103
|
+
var Ao = _((rg, Eo) => {
|
|
104
|
+
"use strict";
|
|
105
|
+
Eo.exports = Math.floor;
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
// ../node_modules/math-intrinsics/max.js
|
|
109
|
+
var _o = _((ng, Oo) => {
|
|
110
|
+
"use strict";
|
|
111
|
+
Oo.exports = Math.max;
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
// ../node_modules/math-intrinsics/min.js
|
|
115
|
+
var To = _((og, wo) => {
|
|
116
|
+
"use strict";
|
|
117
|
+
wo.exports = Math.min;
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
// ../node_modules/math-intrinsics/pow.js
|
|
121
|
+
var Co = _((ig, Po) => {
|
|
122
|
+
"use strict";
|
|
123
|
+
Po.exports = Math.pow;
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
// ../node_modules/math-intrinsics/round.js
|
|
127
|
+
var Ro = _((sg, $o) => {
|
|
128
|
+
"use strict";
|
|
129
|
+
$o.exports = Math.round;
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
// ../node_modules/math-intrinsics/isNaN.js
|
|
133
|
+
var No = _((cg, Io) => {
|
|
134
|
+
"use strict";
|
|
135
|
+
Io.exports = Number.isNaN || /* @__PURE__ */ i(function(t) {
|
|
136
|
+
return t !== t;
|
|
137
|
+
}, "isNaN");
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
// ../node_modules/math-intrinsics/sign.js
|
|
141
|
+
var Mo = _((ug, jo) => {
|
|
142
|
+
"use strict";
|
|
143
|
+
var nu = No();
|
|
144
|
+
jo.exports = /* @__PURE__ */ i(function(t) {
|
|
145
|
+
return nu(t) || t === 0 ? t : t < 0 ? -1 : 1;
|
|
146
|
+
}, "sign");
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
// ../node_modules/gopd/gOPD.js
|
|
150
|
+
var vo = _((fg, xo) => {
|
|
151
|
+
"use strict";
|
|
152
|
+
xo.exports = Object.getOwnPropertyDescriptor;
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
// ../node_modules/gopd/index.js
|
|
156
|
+
var Ce = _((pg, Fo) => {
|
|
157
|
+
"use strict";
|
|
158
|
+
var ht = vo();
|
|
159
|
+
if (ht)
|
|
160
|
+
try {
|
|
161
|
+
ht([], "length");
|
|
162
|
+
} catch {
|
|
163
|
+
ht = null;
|
|
164
|
+
}
|
|
165
|
+
Fo.exports = ht;
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
// ../node_modules/es-define-property/index.js
|
|
169
|
+
var Ge = _((yg, Lo) => {
|
|
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
|
+
Lo.exports = dt;
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
// ../node_modules/has-symbols/index.js
|
|
182
|
+
var ko = _((gg, Bo) => {
|
|
183
|
+
"use strict";
|
|
184
|
+
var Do = typeof Symbol < "u" && Symbol, ou = br();
|
|
185
|
+
Bo.exports = /* @__PURE__ */ i(function() {
|
|
186
|
+
return typeof Do != "function" || typeof Symbol != "function" || typeof Do("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 :
|
|
187
|
+
ou();
|
|
188
|
+
}, "hasNativeSymbols");
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
// ../node_modules/get-proto/Reflect.getPrototypeOf.js
|
|
192
|
+
var Ar = _((hg, Uo) => {
|
|
193
|
+
"use strict";
|
|
194
|
+
Uo.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
// ../node_modules/get-proto/Object.getPrototypeOf.js
|
|
198
|
+
var Or = _((dg, qo) => {
|
|
199
|
+
"use strict";
|
|
200
|
+
var iu = Sr();
|
|
201
|
+
qo.exports = iu.getPrototypeOf || null;
|
|
202
|
+
});
|
|
203
|
+
|
|
204
|
+
// ../node_modules/function-bind/implementation.js
|
|
205
|
+
var Go = _((bg, Wo) => {
|
|
206
|
+
"use strict";
|
|
207
|
+
var su = "Function.prototype.bind called on incompatible ", cu = Object.prototype.toString, au = Math.max, uu = "[object Function]", zo = /* @__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"), lu = /* @__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"), fu = /* @__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
|
+
Wo.exports = /* @__PURE__ */ i(function(t) {
|
|
224
|
+
var r = this;
|
|
225
|
+
if (typeof r != "function" || cu.apply(r) !== uu)
|
|
226
|
+
throw new TypeError(su + r);
|
|
227
|
+
for (var n = lu(arguments, 1), o, s = /* @__PURE__ */ i(function() {
|
|
228
|
+
if (this instanceof o) {
|
|
229
|
+
var y = r.apply(
|
|
230
|
+
this,
|
|
231
|
+
zo(n, arguments)
|
|
232
|
+
);
|
|
233
|
+
return Object(y) === y ? y : this;
|
|
234
|
+
}
|
|
235
|
+
return r.apply(
|
|
236
|
+
t,
|
|
237
|
+
zo(n, arguments)
|
|
238
|
+
);
|
|
239
|
+
}, "binder"), c = au(0, r.length - n.length), u = [], a = 0; a < c; a++)
|
|
240
|
+
u[a] = "$" + a;
|
|
241
|
+
if (o = Function("binder", "return function (" + fu(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 = _((Eg, Yo) => {
|
|
252
|
+
"use strict";
|
|
253
|
+
var pu = Go();
|
|
254
|
+
Yo.exports = Function.prototype.bind || pu;
|
|
255
|
+
});
|
|
256
|
+
|
|
257
|
+
// ../node_modules/call-bind-apply-helpers/functionCall.js
|
|
258
|
+
var bt = _((Ag, Vo) => {
|
|
259
|
+
"use strict";
|
|
260
|
+
Vo.exports = Function.prototype.call;
|
|
261
|
+
});
|
|
262
|
+
|
|
263
|
+
// ../node_modules/call-bind-apply-helpers/functionApply.js
|
|
264
|
+
var St = _((Og, Ho) => {
|
|
265
|
+
"use strict";
|
|
266
|
+
Ho.exports = Function.prototype.apply;
|
|
267
|
+
});
|
|
268
|
+
|
|
269
|
+
// ../node_modules/call-bind-apply-helpers/reflectApply.js
|
|
270
|
+
var Ko = _((_g, Jo) => {
|
|
271
|
+
"use strict";
|
|
272
|
+
Jo.exports = typeof Reflect < "u" && Reflect && Reflect.apply;
|
|
273
|
+
});
|
|
274
|
+
|
|
275
|
+
// ../node_modules/call-bind-apply-helpers/actualApply.js
|
|
276
|
+
var _r = _((wg, Xo) => {
|
|
277
|
+
"use strict";
|
|
278
|
+
var yu = $e(), gu = St(), mu = bt(), hu = Ko();
|
|
279
|
+
Xo.exports = hu || yu.call(mu, gu);
|
|
280
|
+
});
|
|
281
|
+
|
|
282
|
+
// ../node_modules/call-bind-apply-helpers/index.js
|
|
283
|
+
var Et = _((Tg, Zo) => {
|
|
284
|
+
"use strict";
|
|
285
|
+
var du = $e(), bu = We(), Su = bt(), Eu = _r();
|
|
286
|
+
Zo.exports = /* @__PURE__ */ i(function(t) {
|
|
287
|
+
if (t.length < 1 || typeof t[0] != "function")
|
|
288
|
+
throw new bu("a function is required");
|
|
289
|
+
return Eu(du, Su, t);
|
|
290
|
+
}, "callBindBasic");
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
// ../node_modules/dunder-proto/get.js
|
|
294
|
+
var oi = _((Cg, ni) => {
|
|
295
|
+
"use strict";
|
|
296
|
+
var Au = Et(), Qo = Ce(), ti;
|
|
297
|
+
try {
|
|
298
|
+
ti = /** @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 = !!ti && Qo && Qo(
|
|
305
|
+
Object.prototype,
|
|
306
|
+
/** @type {keyof typeof Object.prototype} */
|
|
307
|
+
"__proto__"
|
|
308
|
+
), ri = Object, ei = ri.getPrototypeOf;
|
|
309
|
+
ni.exports = wr && typeof wr.get == "function" ? Au([wr.get]) : typeof ei == "function" ? (
|
|
310
|
+
/** @type {import('./get')} */
|
|
311
|
+
/* @__PURE__ */ i(function(t) {
|
|
312
|
+
return ei(t == null ? t : ri(t));
|
|
313
|
+
}, "getDunder")
|
|
314
|
+
) : !1;
|
|
315
|
+
});
|
|
316
|
+
|
|
317
|
+
// ../node_modules/get-proto/index.js
|
|
318
|
+
var ui = _((Rg, ai) => {
|
|
319
|
+
"use strict";
|
|
320
|
+
var ii = Ar(), si = Or(), ci = oi();
|
|
321
|
+
ai.exports = ii ? /* @__PURE__ */ i(function(t) {
|
|
322
|
+
return ii(t);
|
|
323
|
+
}, "getProto") : si ? /* @__PURE__ */ i(function(t) {
|
|
324
|
+
if (!t || typeof t != "object" && typeof t != "function")
|
|
325
|
+
throw new TypeError("getProto: not an object");
|
|
326
|
+
return si(t);
|
|
327
|
+
}, "getProto") : ci ? /* @__PURE__ */ i(function(t) {
|
|
328
|
+
return ci(t);
|
|
329
|
+
}, "getProto") : null;
|
|
330
|
+
});
|
|
331
|
+
|
|
332
|
+
// ../node_modules/hasown/index.js
|
|
333
|
+
var fi = _((Ng, li) => {
|
|
334
|
+
"use strict";
|
|
335
|
+
var Ou = Function.prototype.call, _u = Object.prototype.hasOwnProperty, wu = $e();
|
|
336
|
+
li.exports = wu.call(Ou, _u);
|
|
337
|
+
});
|
|
338
|
+
|
|
339
|
+
// ../node_modules/get-intrinsic/index.js
|
|
340
|
+
var _t = _((jg, di) => {
|
|
341
|
+
"use strict";
|
|
342
|
+
var R, Tu = Sr(), Pu = so(), Cu = ao(), $u = lo(), Ru = po(), je = Er(), Ne = We(), Iu = ho(), Nu = So(), ju = Ao(), Mu = _o(), xu = To(),
|
|
343
|
+
vu = Co(), Fu = Ro(), Lu = Mo(), mi = Function, Tr = /* @__PURE__ */ i(function(e) {
|
|
344
|
+
try {
|
|
345
|
+
return mi('"use strict"; return (' + e + ").constructor;")();
|
|
346
|
+
} catch {
|
|
347
|
+
}
|
|
348
|
+
}, "getEvalledConstructor"), Ye = Ce(), Du = Ge(), Pr = /* @__PURE__ */ i(function() {
|
|
349
|
+
throw new Ne();
|
|
350
|
+
}, "throwTypeError"), Bu = 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 = ko()(), U = ui(), ku = Or(), Uu = Ar(), hi = St(), Ve = bt(), Ie = {}, qu = 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%": Pu,
|
|
384
|
+
"%eval%": eval,
|
|
385
|
+
// eslint-disable-line no-eval
|
|
386
|
+
"%EvalError%": Cu,
|
|
387
|
+
"%Float32Array%": typeof Float32Array > "u" ? R : Float32Array,
|
|
388
|
+
"%Float64Array%": typeof Float64Array > "u" ? R : Float64Array,
|
|
389
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? R : FinalizationRegistry,
|
|
390
|
+
"%Function%": mi,
|
|
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%": Tu,
|
|
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%": $u,
|
|
410
|
+
"%ReferenceError%": Ru,
|
|
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%": Bu,
|
|
421
|
+
"%TypedArray%": qu,
|
|
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%": Iu,
|
|
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%": hi,
|
|
433
|
+
"%Object.defineProperty%": Du,
|
|
434
|
+
"%Object.getPrototypeOf%": ku,
|
|
435
|
+
"%Math.abs%": Nu,
|
|
436
|
+
"%Math.floor%": ju,
|
|
437
|
+
"%Math.max%": Mu,
|
|
438
|
+
"%Math.min%": xu,
|
|
439
|
+
"%Math.pow%": vu,
|
|
440
|
+
"%Math.round%": Fu,
|
|
441
|
+
"%Math.sign%": Lu,
|
|
442
|
+
"%Reflect.getPrototypeOf%": Uu
|
|
443
|
+
};
|
|
444
|
+
if (U)
|
|
445
|
+
try {
|
|
446
|
+
null.error;
|
|
447
|
+
} catch (e) {
|
|
448
|
+
pi = U(U(e)), Ee["%Error.prototype%"] = pi;
|
|
449
|
+
}
|
|
450
|
+
var pi, zu = /* @__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"), yi = {
|
|
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 = fi(), Wu = He.call(Ve, Array.prototype.concat), Gu = He.call(hi, Array.prototype.splice), gi = He.call(Ve, String.prototype.
|
|
520
|
+
replace), Ot = He.call(Ve, String.prototype.slice), Yu = He.call(Ve, RegExp.prototype.exec), Vu = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
|
|
521
|
+
Hu = /\\(\\)?/g, Ju = /* @__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 gi(t, Vu, function(s, c, u, a) {
|
|
529
|
+
o[o.length] = u ? gi(a, Hu, "$1") : c || s;
|
|
530
|
+
}), o;
|
|
531
|
+
}, "stringToPath"), Ku = /* @__PURE__ */ i(function(t, r) {
|
|
532
|
+
var n = t, o;
|
|
533
|
+
if (At(yi, n) && (o = yi[n], n = "%" + o[0] + "%"), At(Ee, n)) {
|
|
534
|
+
var s = Ee[n];
|
|
535
|
+
if (s === Ie && (s = zu(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
|
+
di.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 (Yu(/^%?[^%]*%?$/, t) === null)
|
|
551
|
+
throw new je("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
552
|
+
var n = Ju(t), o = n.length > 0 ? n[0] : "", s = Ku("%" + o + "%", r), c = s.name, u = s.value, a = !1, f = s.alias;
|
|
553
|
+
f && (o = f[0], Gu(n, Wu([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 Ai = _((xg, Ei) => {
|
|
580
|
+
"use strict";
|
|
581
|
+
var bi = Ge(), Xu = Er(), Me = We(), Si = Ce();
|
|
582
|
+
Ei.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 = !!Si && Si(t, r);
|
|
597
|
+
if (bi)
|
|
598
|
+
bi(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 Xu("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 wi = _((Fg, _i) => {
|
|
613
|
+
"use strict";
|
|
614
|
+
var Cr = Ge(), Oi = /* @__PURE__ */ i(function() {
|
|
615
|
+
return !!Cr;
|
|
616
|
+
}, "hasPropertyDescriptors");
|
|
617
|
+
Oi.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
|
+
_i.exports = Oi;
|
|
627
|
+
});
|
|
628
|
+
|
|
629
|
+
// ../node_modules/set-function-length/index.js
|
|
630
|
+
var Ri = _((Dg, $i) => {
|
|
631
|
+
"use strict";
|
|
632
|
+
var Zu = _t(), Ti = Ai(), Qu = wi()(), Pi = Ce(), Ci = We(), el = Zu("%Math.floor%");
|
|
633
|
+
$i.exports = /* @__PURE__ */ i(function(t, r) {
|
|
634
|
+
if (typeof t != "function")
|
|
635
|
+
throw new Ci("`fn` is not a function");
|
|
636
|
+
if (typeof r != "number" || r < 0 || r > 4294967295 || el(r) !== r)
|
|
637
|
+
throw new Ci("`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 && Pi) {
|
|
640
|
+
var c = Pi(t, "length");
|
|
641
|
+
c && !c.configurable && (o = !1), c && !c.writable && (s = !1);
|
|
642
|
+
}
|
|
643
|
+
return (o || s || !n) && (Qu ? Ti(
|
|
644
|
+
/** @type {Parameters<define>[0]} */
|
|
645
|
+
t,
|
|
646
|
+
"length",
|
|
647
|
+
r,
|
|
648
|
+
!0,
|
|
649
|
+
!0
|
|
650
|
+
) : Ti(
|
|
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 Ni = _((kg, Ii) => {
|
|
661
|
+
"use strict";
|
|
662
|
+
var tl = $e(), rl = St(), nl = _r();
|
|
663
|
+
Ii.exports = /* @__PURE__ */ i(function() {
|
|
664
|
+
return nl(tl, rl, arguments);
|
|
665
|
+
}, "applyBind");
|
|
666
|
+
});
|
|
667
|
+
|
|
668
|
+
// ../node_modules/call-bind/index.js
|
|
669
|
+
var $r = _((qg, wt) => {
|
|
670
|
+
"use strict";
|
|
671
|
+
var ol = Ri(), ji = Ge(), il = Et(), Mi = Ni();
|
|
672
|
+
wt.exports = /* @__PURE__ */ i(function(t) {
|
|
673
|
+
var r = il(arguments), n = t.length - (arguments.length - 1);
|
|
674
|
+
return ol(
|
|
675
|
+
r,
|
|
676
|
+
1 + (n > 0 ? n : 0),
|
|
677
|
+
!0
|
|
678
|
+
);
|
|
679
|
+
}, "callBind");
|
|
680
|
+
ji ? ji(wt.exports, "apply", { value: Mi }) : wt.exports.apply = Mi;
|
|
681
|
+
});
|
|
682
|
+
|
|
683
|
+
// ../node_modules/call-bind/callBound.js
|
|
684
|
+
var Li = _((Wg, Fi) => {
|
|
685
|
+
"use strict";
|
|
686
|
+
var xi = _t(), vi = $r(), sl = vi(xi("String.prototype.indexOf"));
|
|
687
|
+
Fi.exports = /* @__PURE__ */ i(function(t, r) {
|
|
688
|
+
var n = xi(t, !!r);
|
|
689
|
+
return typeof n == "function" && sl(t, ".prototype.") > -1 ? vi(n) : n;
|
|
690
|
+
}, "callBoundIntrinsic");
|
|
691
|
+
});
|
|
692
|
+
|
|
693
|
+
// ../node_modules/is-arguments/index.js
|
|
694
|
+
var ki = _((Yg, Bi) => {
|
|
695
|
+
"use strict";
|
|
696
|
+
var cl = mt()(), al = Li(), Rr = al("Object.prototype.toString"), Tt = /* @__PURE__ */ i(function(t) {
|
|
697
|
+
return cl && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : Rr(t) === "[object Arguments]";
|
|
698
|
+
}, "isArguments"), Di = /* @__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"), ul = function() {
|
|
702
|
+
return Tt(arguments);
|
|
703
|
+
}();
|
|
704
|
+
Tt.isLegacyArguments = Di;
|
|
705
|
+
Bi.exports = ul ? Tt : Di;
|
|
706
|
+
});
|
|
707
|
+
|
|
708
|
+
// ../node_modules/is-generator-function/index.js
|
|
709
|
+
var zi = _((Hg, qi) => {
|
|
710
|
+
"use strict";
|
|
711
|
+
var ll = Object.prototype.toString, fl = Function.prototype.toString, pl = /^\s*(?:function)?\*/, Ui = mt()(), Ir = Object.getPrototypeOf,
|
|
712
|
+
yl = /* @__PURE__ */ i(function() {
|
|
713
|
+
if (!Ui)
|
|
714
|
+
return !1;
|
|
715
|
+
try {
|
|
716
|
+
return Function("return function*() {}")();
|
|
717
|
+
} catch {
|
|
718
|
+
}
|
|
719
|
+
}, "getGeneratorFunc"), Nr;
|
|
720
|
+
qi.exports = /* @__PURE__ */ i(function(t) {
|
|
721
|
+
if (typeof t != "function")
|
|
722
|
+
return !1;
|
|
723
|
+
if (pl.test(fl.call(t)))
|
|
724
|
+
return !0;
|
|
725
|
+
if (!Ui) {
|
|
726
|
+
var r = ll.call(t);
|
|
727
|
+
return r === "[object GeneratorFunction]";
|
|
728
|
+
}
|
|
729
|
+
if (!Ir)
|
|
730
|
+
return !1;
|
|
731
|
+
if (typeof Nr > "u") {
|
|
732
|
+
var n = yl();
|
|
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 Vi = _((Kg, Yi) => {
|
|
741
|
+
"use strict";
|
|
742
|
+
var Gi = 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 gl = /^\s*class\b/, xr = /* @__PURE__ */ i(function(t) {
|
|
758
|
+
try {
|
|
759
|
+
var r = Gi.call(t);
|
|
760
|
+
return gl.test(r);
|
|
761
|
+
} catch {
|
|
762
|
+
return !1;
|
|
763
|
+
}
|
|
764
|
+
}, "isES6ClassFunction"), jr = /* @__PURE__ */ i(function(t) {
|
|
765
|
+
try {
|
|
766
|
+
return xr(t) ? !1 : (Gi.call(t), !0);
|
|
767
|
+
} catch {
|
|
768
|
+
return !1;
|
|
769
|
+
}
|
|
770
|
+
}, "tryFunctionToStr"), Ct = Object.prototype.toString, ml = "[object Object]", hl = "[object Function]", dl = "[object GeneratorFunction]",
|
|
771
|
+
bl = "[object HTMLAllCollection]", Sl = "[object HTML document.all class]", El = "[object HTMLCollection]", Al = typeof Symbol == "functio\
|
|
772
|
+
n" && !!Symbol.toStringTag, Ol = !(0 in [,]), vr = /* @__PURE__ */ i(function() {
|
|
773
|
+
return !1;
|
|
774
|
+
}, "isDocumentDotAll");
|
|
775
|
+
typeof document == "object" && (Wi = document.all, Ct.call(Wi) === Ct.call(document.all) && (vr = /* @__PURE__ */ i(function(t) {
|
|
776
|
+
if ((Ol || !t) && (typeof t > "u" || typeof t == "object"))
|
|
777
|
+
try {
|
|
778
|
+
var r = Ct.call(t);
|
|
779
|
+
return (r === bl || r === Sl || r === El || r === ml) && t("") == null;
|
|
780
|
+
} catch {
|
|
781
|
+
}
|
|
782
|
+
return !1;
|
|
783
|
+
}, "isDocumentDotAll")));
|
|
784
|
+
var Wi;
|
|
785
|
+
Yi.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 (Al)
|
|
803
|
+
return jr(t);
|
|
804
|
+
if (xr(t))
|
|
805
|
+
return !1;
|
|
806
|
+
var r = Ct.call(t);
|
|
807
|
+
return r !== hl && r !== dl && !/^\[object HTML/.test(r) ? !1 : jr(t);
|
|
808
|
+
}, "isCallable");
|
|
809
|
+
});
|
|
810
|
+
|
|
811
|
+
// ../node_modules/for-each/index.js
|
|
812
|
+
var Ki = _((Zg, Ji) => {
|
|
813
|
+
"use strict";
|
|
814
|
+
var _l = Vi(), wl = Object.prototype.toString, Hi = Object.prototype.hasOwnProperty, Tl = /* @__PURE__ */ i(function(t, r, n) {
|
|
815
|
+
for (var o = 0, s = t.length; o < s; o++)
|
|
816
|
+
Hi.call(t, o) && (n == null ? r(t[o], o, t) : r.call(n, t[o], o, t));
|
|
817
|
+
}, "forEachArray"), Pl = /* @__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"), Cl = /* @__PURE__ */ i(function(t, r, n) {
|
|
821
|
+
for (var o in t)
|
|
822
|
+
Hi.call(t, o) && (n == null ? r(t[o], o, t) : r.call(n, t[o], o, t));
|
|
823
|
+
}, "forEachObject"), $l = /* @__PURE__ */ i(function(t, r, n) {
|
|
824
|
+
if (!_l(r))
|
|
825
|
+
throw new TypeError("iterator must be a function");
|
|
826
|
+
var o;
|
|
827
|
+
arguments.length >= 3 && (o = n), wl.call(t) === "[object Array]" ? Tl(t, r, o) : typeof t == "string" ? Pl(t, r, o) : Cl(t, r, o);
|
|
828
|
+
}, "forEach");
|
|
829
|
+
Ji.exports = $l;
|
|
830
|
+
});
|
|
831
|
+
|
|
832
|
+
// ../node_modules/possible-typed-array-names/index.js
|
|
833
|
+
var Zi = _((em, Xi) => {
|
|
834
|
+
"use strict";
|
|
835
|
+
Xi.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 es = _((tm, Qi) => {
|
|
852
|
+
"use strict";
|
|
853
|
+
var Fr = Zi(), Rl = typeof globalThis > "u" ? global : globalThis;
|
|
854
|
+
Qi.exports = /* @__PURE__ */ i(function() {
|
|
855
|
+
for (var t = [], r = 0; r < Fr.length; r++)
|
|
856
|
+
typeof Rl[Fr[r]] == "function" && (t[t.length] = Fr[r]);
|
|
857
|
+
return t;
|
|
858
|
+
}, "availableTypedArrays");
|
|
859
|
+
});
|
|
860
|
+
|
|
861
|
+
// ../node_modules/call-bound/index.js
|
|
862
|
+
var os = _((nm, ns) => {
|
|
863
|
+
"use strict";
|
|
864
|
+
var ts = _t(), rs = Et(), Il = rs([ts("%String.prototype.indexOf%")]);
|
|
865
|
+
ns.exports = /* @__PURE__ */ i(function(t, r) {
|
|
866
|
+
var n = (
|
|
867
|
+
/** @type {Parameters<typeof callBindBasic>[0][0]} */
|
|
868
|
+
ts(t, !!r)
|
|
869
|
+
);
|
|
870
|
+
return typeof n == "function" && Il(t, ".prototype.") > -1 ? rs([n]) : n;
|
|
871
|
+
}, "callBoundIntrinsic");
|
|
872
|
+
});
|
|
873
|
+
|
|
874
|
+
// ../node_modules/which-typed-array/index.js
|
|
875
|
+
var Ur = _((im, as) => {
|
|
876
|
+
"use strict";
|
|
877
|
+
var Rt = Ki(), Nl = es(), is = $r(), Br = os(), $t = Ce(), jl = Br("Object.prototype.toString"), cs = mt()(), ss = typeof globalThis > "u" ?
|
|
878
|
+
global : globalThis, Dr = Nl(), kr = Br("String.prototype.slice"), Lr = Object.getPrototypeOf, Ml = 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
|
+
cs && $t && Lr ? Rt(Dr, function(e) {
|
|
886
|
+
var t = new ss[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] = is(n.get);
|
|
894
|
+
}
|
|
895
|
+
}) : Rt(Dr, function(e) {
|
|
896
|
+
var t = new ss[e](), r = t.slice || t.set;
|
|
897
|
+
r && (It["$" + e] = is(r));
|
|
898
|
+
});
|
|
899
|
+
var xl = /* @__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"), vl = /* @__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
|
+
as.exports = /* @__PURE__ */ i(function(t) {
|
|
933
|
+
if (!t || typeof t != "object")
|
|
934
|
+
return !1;
|
|
935
|
+
if (!cs) {
|
|
936
|
+
var r = kr(jl(t), 8, -1);
|
|
937
|
+
return Ml(Dr, r) > -1 ? r : r !== "Object" ? !1 : vl(t);
|
|
938
|
+
}
|
|
939
|
+
return $t ? xl(t) : null;
|
|
940
|
+
}, "whichTypedArray");
|
|
941
|
+
});
|
|
942
|
+
|
|
943
|
+
// ../node_modules/is-typed-array/index.js
|
|
944
|
+
var ls = _((cm, us) => {
|
|
945
|
+
"use strict";
|
|
946
|
+
var Fl = Ur();
|
|
947
|
+
us.exports = /* @__PURE__ */ i(function(t) {
|
|
948
|
+
return !!Fl(t);
|
|
949
|
+
}, "isTypedArray");
|
|
950
|
+
});
|
|
951
|
+
|
|
952
|
+
// ../node_modules/util/support/types.js
|
|
953
|
+
var ws = _((C) => {
|
|
954
|
+
"use strict";
|
|
955
|
+
var Ll = ki(), Dl = zi(), ae = Ur(), fs = ls();
|
|
956
|
+
function ve(e) {
|
|
957
|
+
return e.call.bind(e);
|
|
958
|
+
}
|
|
959
|
+
i(ve, "uncurryThis");
|
|
960
|
+
var ps = typeof BigInt < "u", ys = typeof Symbol < "u", ne = ve(Object.prototype.toString), Bl = ve(Number.prototype.valueOf), kl = ve(String.
|
|
961
|
+
prototype.valueOf), Ul = ve(Boolean.prototype.valueOf);
|
|
962
|
+
ps && (gs = ve(BigInt.prototype.valueOf));
|
|
963
|
+
var gs;
|
|
964
|
+
ys && (ms = ve(Symbol.prototype.valueOf));
|
|
965
|
+
var ms;
|
|
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 = Ll;
|
|
977
|
+
C.isGeneratorFunction = Dl;
|
|
978
|
+
C.isTypedArray = fs;
|
|
979
|
+
function ql(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(ql, "isPromise");
|
|
984
|
+
C.isPromise = ql;
|
|
985
|
+
function zl(e) {
|
|
986
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : fs(e) || ds(e);
|
|
987
|
+
}
|
|
988
|
+
i(zl, "isArrayBufferView");
|
|
989
|
+
C.isArrayBufferView = zl;
|
|
990
|
+
function Wl(e) {
|
|
991
|
+
return ae(e) === "Uint8Array";
|
|
992
|
+
}
|
|
993
|
+
i(Wl, "isUint8Array");
|
|
994
|
+
C.isUint8Array = Wl;
|
|
995
|
+
function Gl(e) {
|
|
996
|
+
return ae(e) === "Uint8ClampedArray";
|
|
997
|
+
}
|
|
998
|
+
i(Gl, "isUint8ClampedArray");
|
|
999
|
+
C.isUint8ClampedArray = Gl;
|
|
1000
|
+
function Yl(e) {
|
|
1001
|
+
return ae(e) === "Uint16Array";
|
|
1002
|
+
}
|
|
1003
|
+
i(Yl, "isUint16Array");
|
|
1004
|
+
C.isUint16Array = Yl;
|
|
1005
|
+
function Vl(e) {
|
|
1006
|
+
return ae(e) === "Uint32Array";
|
|
1007
|
+
}
|
|
1008
|
+
i(Vl, "isUint32Array");
|
|
1009
|
+
C.isUint32Array = Vl;
|
|
1010
|
+
function Hl(e) {
|
|
1011
|
+
return ae(e) === "Int8Array";
|
|
1012
|
+
}
|
|
1013
|
+
i(Hl, "isInt8Array");
|
|
1014
|
+
C.isInt8Array = Hl;
|
|
1015
|
+
function Jl(e) {
|
|
1016
|
+
return ae(e) === "Int16Array";
|
|
1017
|
+
}
|
|
1018
|
+
i(Jl, "isInt16Array");
|
|
1019
|
+
C.isInt16Array = Jl;
|
|
1020
|
+
function Kl(e) {
|
|
1021
|
+
return ae(e) === "Int32Array";
|
|
1022
|
+
}
|
|
1023
|
+
i(Kl, "isInt32Array");
|
|
1024
|
+
C.isInt32Array = Kl;
|
|
1025
|
+
function Xl(e) {
|
|
1026
|
+
return ae(e) === "Float32Array";
|
|
1027
|
+
}
|
|
1028
|
+
i(Xl, "isFloat32Array");
|
|
1029
|
+
C.isFloat32Array = Xl;
|
|
1030
|
+
function Zl(e) {
|
|
1031
|
+
return ae(e) === "Float64Array";
|
|
1032
|
+
}
|
|
1033
|
+
i(Zl, "isFloat64Array");
|
|
1034
|
+
C.isFloat64Array = Zl;
|
|
1035
|
+
function Ql(e) {
|
|
1036
|
+
return ae(e) === "BigInt64Array";
|
|
1037
|
+
}
|
|
1038
|
+
i(Ql, "isBigInt64Array");
|
|
1039
|
+
C.isBigInt64Array = Ql;
|
|
1040
|
+
function ef(e) {
|
|
1041
|
+
return ae(e) === "BigUint64Array";
|
|
1042
|
+
}
|
|
1043
|
+
i(ef, "isBigUint64Array");
|
|
1044
|
+
C.isBigUint64Array = ef;
|
|
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 tf(e) {
|
|
1051
|
+
return typeof Map > "u" ? !1 : Nt.working ? Nt(e) : e instanceof Map;
|
|
1052
|
+
}
|
|
1053
|
+
i(tf, "isMap");
|
|
1054
|
+
C.isMap = tf;
|
|
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 rf(e) {
|
|
1061
|
+
return typeof Set > "u" ? !1 : jt.working ? jt(e) : e instanceof Set;
|
|
1062
|
+
}
|
|
1063
|
+
i(rf, "isSet");
|
|
1064
|
+
C.isSet = rf;
|
|
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 nf(e) {
|
|
1071
|
+
return typeof WeakMap > "u" ? !1 : Mt.working ? Mt(e) : e instanceof WeakMap;
|
|
1072
|
+
}
|
|
1073
|
+
i(nf, "isWeakMap");
|
|
1074
|
+
C.isWeakMap = nf;
|
|
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 of(e) {
|
|
1081
|
+
return zr(e);
|
|
1082
|
+
}
|
|
1083
|
+
i(of, "isWeakSet");
|
|
1084
|
+
C.isWeakSet = of;
|
|
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 hs(e) {
|
|
1091
|
+
return typeof ArrayBuffer > "u" ? !1 : xt.working ? xt(e) : e instanceof ArrayBuffer;
|
|
1092
|
+
}
|
|
1093
|
+
i(hs, "isArrayBuffer");
|
|
1094
|
+
C.isArrayBuffer = hs;
|
|
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 ds(e) {
|
|
1101
|
+
return typeof DataView > "u" ? !1 : vt.working ? vt(e) : e instanceof DataView;
|
|
1102
|
+
}
|
|
1103
|
+
i(ds, "isDataView");
|
|
1104
|
+
C.isDataView = ds;
|
|
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 bs(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(bs, "isSharedArrayBuffer");
|
|
1114
|
+
C.isSharedArrayBuffer = bs;
|
|
1115
|
+
function sf(e) {
|
|
1116
|
+
return ne(e) === "[object AsyncFunction]";
|
|
1117
|
+
}
|
|
1118
|
+
i(sf, "isAsyncFunction");
|
|
1119
|
+
C.isAsyncFunction = sf;
|
|
1120
|
+
function cf(e) {
|
|
1121
|
+
return ne(e) === "[object Map Iterator]";
|
|
1122
|
+
}
|
|
1123
|
+
i(cf, "isMapIterator");
|
|
1124
|
+
C.isMapIterator = cf;
|
|
1125
|
+
function af(e) {
|
|
1126
|
+
return ne(e) === "[object Set Iterator]";
|
|
1127
|
+
}
|
|
1128
|
+
i(af, "isSetIterator");
|
|
1129
|
+
C.isSetIterator = af;
|
|
1130
|
+
function uf(e) {
|
|
1131
|
+
return ne(e) === "[object Generator]";
|
|
1132
|
+
}
|
|
1133
|
+
i(uf, "isGeneratorObject");
|
|
1134
|
+
C.isGeneratorObject = uf;
|
|
1135
|
+
function lf(e) {
|
|
1136
|
+
return ne(e) === "[object WebAssembly.Module]";
|
|
1137
|
+
}
|
|
1138
|
+
i(lf, "isWebAssemblyCompiledModule");
|
|
1139
|
+
C.isWebAssemblyCompiledModule = lf;
|
|
1140
|
+
function Ss(e) {
|
|
1141
|
+
return Ke(e, Bl);
|
|
1142
|
+
}
|
|
1143
|
+
i(Ss, "isNumberObject");
|
|
1144
|
+
C.isNumberObject = Ss;
|
|
1145
|
+
function Es(e) {
|
|
1146
|
+
return Ke(e, kl);
|
|
1147
|
+
}
|
|
1148
|
+
i(Es, "isStringObject");
|
|
1149
|
+
C.isStringObject = Es;
|
|
1150
|
+
function As(e) {
|
|
1151
|
+
return Ke(e, Ul);
|
|
1152
|
+
}
|
|
1153
|
+
i(As, "isBooleanObject");
|
|
1154
|
+
C.isBooleanObject = As;
|
|
1155
|
+
function Os(e) {
|
|
1156
|
+
return ps && Ke(e, gs);
|
|
1157
|
+
}
|
|
1158
|
+
i(Os, "isBigIntObject");
|
|
1159
|
+
C.isBigIntObject = Os;
|
|
1160
|
+
function _s(e) {
|
|
1161
|
+
return ys && Ke(e, ms);
|
|
1162
|
+
}
|
|
1163
|
+
i(_s, "isSymbolObject");
|
|
1164
|
+
C.isSymbolObject = _s;
|
|
1165
|
+
function ff(e) {
|
|
1166
|
+
return Ss(e) || Es(e) || As(e) || Os(e) || _s(e);
|
|
1167
|
+
}
|
|
1168
|
+
i(ff, "isBoxedPrimitive");
|
|
1169
|
+
C.isBoxedPrimitive = ff;
|
|
1170
|
+
function pf(e) {
|
|
1171
|
+
return typeof Uint8Array < "u" && (hs(e) || bs(e));
|
|
1172
|
+
}
|
|
1173
|
+
i(pf, "isAnyArrayBuffer");
|
|
1174
|
+
C.isAnyArrayBuffer = pf;
|
|
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 Ps = _((fm, Ts) => {
|
|
1187
|
+
Ts.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 Cs = _((ym, 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 Ms = _(($) => {
|
|
1215
|
+
var $s = 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"), yf = /%[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(yf, 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 = {}, Rs = /^$/;
|
|
1266
|
+
process.env.NODE_DEBUG && (Lt = process.env.NODE_DEBUG, Lt = Lt.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "\
|
|
1267
|
+
$|^").toUpperCase(), Rs = new RegExp("^" + Lt + "$", "i"));
|
|
1268
|
+
var Lt;
|
|
1269
|
+
$.debuglog = function(e) {
|
|
1270
|
+
if (e = e.toUpperCase(), !Ft[e])
|
|
1271
|
+
if (Rs.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: mf
|
|
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 = gf), 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 gf(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(gf, "stylizeWithColor");
|
|
1324
|
+
function mf(e, t) {
|
|
1325
|
+
return e;
|
|
1326
|
+
}
|
|
1327
|
+
i(mf, "stylizeNoColor");
|
|
1328
|
+
function hf(e) {
|
|
1329
|
+
var t = {};
|
|
1330
|
+
return e.forEach(function(r, n) {
|
|
1331
|
+
t[r] = !0;
|
|
1332
|
+
}), t;
|
|
1333
|
+
}
|
|
1334
|
+
i(hf, "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 = df(e, t);
|
|
1343
|
+
if (o)
|
|
1344
|
+
return o;
|
|
1345
|
+
var s = Object.keys(t), c = hf(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 (Is(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 = bf(e, t, r, c, s) : h = s.map(function(g) {
|
|
1373
|
+
return Vr(e, t, r, c, g, f);
|
|
1374
|
+
}), e.seen.pop(), Sf(h, a, y);
|
|
1375
|
+
}
|
|
1376
|
+
i(Bt, "formatValue");
|
|
1377
|
+
function df(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 (Ns(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(df, "formatPrimitive");
|
|
1392
|
+
function Gr(e) {
|
|
1393
|
+
return "[" + Error.prototype.toString.call(e) + "]";
|
|
1394
|
+
}
|
|
1395
|
+
i(Gr, "formatError");
|
|
1396
|
+
function bf(e, t, r, n, o) {
|
|
1397
|
+
for (var s = [], c = 0, u = t.length; c < u; ++c)
|
|
1398
|
+
js(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(bf, "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")), js(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 Sf(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(Sf, "reduceToSingleString");
|
|
1451
|
+
$.types = ws();
|
|
1452
|
+
function Is(e) {
|
|
1453
|
+
return Array.isArray(e);
|
|
1454
|
+
}
|
|
1455
|
+
i(Is, "isArray");
|
|
1456
|
+
$.isArray = Is;
|
|
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 Ef(e) {
|
|
1468
|
+
return e == null;
|
|
1469
|
+
}
|
|
1470
|
+
i(Ef, "isNullOrUndefined");
|
|
1471
|
+
$.isNullOrUndefined = Ef;
|
|
1472
|
+
function Ns(e) {
|
|
1473
|
+
return typeof e == "number";
|
|
1474
|
+
}
|
|
1475
|
+
i(Ns, "isNumber");
|
|
1476
|
+
$.isNumber = Ns;
|
|
1477
|
+
function qt(e) {
|
|
1478
|
+
return typeof e == "string";
|
|
1479
|
+
}
|
|
1480
|
+
i(qt, "isString");
|
|
1481
|
+
$.isString = qt;
|
|
1482
|
+
function Af(e) {
|
|
1483
|
+
return typeof e == "symbol";
|
|
1484
|
+
}
|
|
1485
|
+
i(Af, "isSymbol");
|
|
1486
|
+
$.isSymbol = Af;
|
|
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 Of(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(Of, "isPrimitive");
|
|
1525
|
+
$.isPrimitive = Of;
|
|
1526
|
+
$.isBuffer = Ps();
|
|
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 _f = [
|
|
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 wf() {
|
|
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(), _f[e.getMonth()], t].join(" ");
|
|
1556
|
+
}
|
|
1557
|
+
i(wf, "timestamp");
|
|
1558
|
+
$.log = function() {
|
|
1559
|
+
console.log("%s - %s", wf(), $.format.apply($, arguments));
|
|
1560
|
+
};
|
|
1561
|
+
$.inherits = Cs();
|
|
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 js(e, t) {
|
|
1569
|
+
return Object.prototype.hasOwnProperty.call(e, t);
|
|
1570
|
+
}
|
|
1571
|
+
i(js, "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
|
+
$s(t)
|
|
1610
|
+
);
|
|
1611
|
+
}, "promisify");
|
|
1612
|
+
$.promisify.custom = Ae;
|
|
1613
|
+
function Tf(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(Tf, "callbackifyOnRejected");
|
|
1621
|
+
function Pf(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(Tf.bind(null, u, c));
|
|
1639
|
+
}
|
|
1640
|
+
);
|
|
1641
|
+
}
|
|
1642
|
+
return i(t, "callbackified"), Object.setPrototypeOf(t, Object.getPrototypeOf(e)), Object.defineProperties(
|
|
1643
|
+
t,
|
|
1644
|
+
$s(e)
|
|
1645
|
+
), t;
|
|
1646
|
+
}
|
|
1647
|
+
i(Pf, "callbackify");
|
|
1648
|
+
$.callbackify = Pf;
|
|
1649
|
+
});
|
|
1650
|
+
|
|
1651
|
+
// src/instrumenter/instrumenter.ts
|
|
1652
|
+
import { once as Cp } from "storybook/internal/client-logger";
|
|
1653
|
+
import {
|
|
1654
|
+
FORCE_REMOUNT as bc,
|
|
1655
|
+
SET_CURRENT_STORY as $p,
|
|
1656
|
+
STORY_RENDER_PHASE_CHANGED as Rp
|
|
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 wc = {
|
|
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
|
+
}, Tc = Object.entries(wc);
|
|
1704
|
+
function Kt(e) {
|
|
1705
|
+
return String(e);
|
|
1706
|
+
}
|
|
1707
|
+
i(Kt, "a");
|
|
1708
|
+
Kt.open = "";
|
|
1709
|
+
Kt.close = "";
|
|
1710
|
+
function dn(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(dn, "C");
|
|
1716
|
+
function bn(e = !1) {
|
|
1717
|
+
let t = dn(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 Tc)
|
|
1733
|
+
o[c] = t ? n(
|
|
1734
|
+
s(u[0]),
|
|
1735
|
+
s(u[1]),
|
|
1736
|
+
u[2]
|
|
1737
|
+
) : Kt;
|
|
1738
|
+
return o;
|
|
1739
|
+
}
|
|
1740
|
+
i(bn, "p");
|
|
1741
|
+
|
|
1742
|
+
// ../node_modules/tinyrainbow/dist/browser.js
|
|
1743
|
+
var ie = bn();
|
|
1744
|
+
|
|
1745
|
+
// ../node_modules/@vitest/pretty-format/dist/index.js
|
|
1746
|
+
function Nn(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(Nn, "_mergeNamespaces");
|
|
1762
|
+
function Pc(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(Pc, "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 = Pc(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 Cc = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621, nt = " ", $c = /* @__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"), Rc = /* @__PURE__ */ i((e) => e && e.$$typeof === Cc, "test$5"), Ic = { serialize: $c, test: Rc }, Nc = " ", jn = /* @__PURE__ */ new Set(
|
|
1884
|
+
["DOMStringMap", "NamedNodeMap"]), jc = /^(?:HTML\w*Collection|NodeList)$/;
|
|
1885
|
+
function Mc(e) {
|
|
1886
|
+
return jn.has(e) || jc.test(e);
|
|
1887
|
+
}
|
|
1888
|
+
i(Mc, "testName");
|
|
1889
|
+
var xc = /* @__PURE__ */ i((e) => e && e.constructor && !!e.constructor.name && Mc(e.constructor.name), "test$4");
|
|
1890
|
+
function vc(e) {
|
|
1891
|
+
return e.constructor.name === "NamedNodeMap";
|
|
1892
|
+
}
|
|
1893
|
+
i(vc, "isNamedNodeMap");
|
|
1894
|
+
var Fc = /* @__PURE__ */ i((e, t, r, n, o, s) => {
|
|
1895
|
+
let c = e.constructor.name;
|
|
1896
|
+
return ++n > t.maxDepth ? `[${c}]` : (t.min ? "" : c + Nc) + (jn.has(c) ? `{${rr(
|
|
1897
|
+
vc(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"), Lc = { serialize: Fc, test: xc };
|
|
1915
|
+
function Mn(e) {
|
|
1916
|
+
return e.replaceAll("<", "<").replaceAll(">", ">");
|
|
1917
|
+
}
|
|
1918
|
+
i(Mn, "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" ? xn(c, t) : s(c, t, r, n, o))
|
|
1932
|
+
).join("");
|
|
1933
|
+
}
|
|
1934
|
+
i(or, "printChildren");
|
|
1935
|
+
function xn(e, t) {
|
|
1936
|
+
let r = t.colors.content;
|
|
1937
|
+
return r.open + Mn(e) + r.close;
|
|
1938
|
+
}
|
|
1939
|
+
i(xn, "printText");
|
|
1940
|
+
function Dc(e, t) {
|
|
1941
|
+
let r = t.colors.comment;
|
|
1942
|
+
return `${r.open}<!--${Mn(e)}-->${r.close}`;
|
|
1943
|
+
}
|
|
1944
|
+
i(Dc, "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 Bc = 1, vn = 3, Fn = 8, Ln = 11, kc = /^(?:(?:HTML|SVG)\w*)?Element$/;
|
|
1957
|
+
function Uc(e) {
|
|
1958
|
+
try {
|
|
1959
|
+
return typeof e.hasAttribute == "function" && e.hasAttribute("is");
|
|
1960
|
+
} catch {
|
|
1961
|
+
return !1;
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
i(Uc, "testHasAttribute");
|
|
1965
|
+
function qc(e) {
|
|
1966
|
+
let t = e.constructor.name, { nodeType: r, tagName: n } = e, o = typeof n == "string" && n.includes("-") || Uc(e);
|
|
1967
|
+
return r === Bc && (kc.test(t) || o) || r === vn && t === "Text" || r === Fn && t === "Comment" || r === Ln && t === "DocumentFragment";
|
|
1968
|
+
}
|
|
1969
|
+
i(qc, "testNode");
|
|
1970
|
+
var zc = /* @__PURE__ */ i((e) => {
|
|
1971
|
+
var t;
|
|
1972
|
+
return ((t = e?.constructor) == null ? void 0 : t.name) && qc(e);
|
|
1973
|
+
}, "test$3");
|
|
1974
|
+
function Wc(e) {
|
|
1975
|
+
return e.nodeType === vn;
|
|
1976
|
+
}
|
|
1977
|
+
i(Wc, "nodeIsText");
|
|
1978
|
+
function Gc(e) {
|
|
1979
|
+
return e.nodeType === Fn;
|
|
1980
|
+
}
|
|
1981
|
+
i(Gc, "nodeIsComment");
|
|
1982
|
+
function Xt(e) {
|
|
1983
|
+
return e.nodeType === Ln;
|
|
1984
|
+
}
|
|
1985
|
+
i(Xt, "nodeIsFragment");
|
|
1986
|
+
var Yc = /* @__PURE__ */ i((e, t, r, n, o, s) => {
|
|
1987
|
+
if (Wc(e))
|
|
1988
|
+
return xn(e.data, t);
|
|
1989
|
+
if (Gc(e))
|
|
1990
|
+
return Dc(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"), Vc = { serialize: Yc, test: zc }, Hc = "@@__IMMUTABLE_ITERABLE__@@", Jc = "@@__IMMUTABLE_LIST__@@", Kc = "@@__IMMUTABLE_K\
|
|
2018
|
+
EYED__@@", Xc = "@@__IMMUTABLE_MAP__@@", Sn = "@@__IMMUTABLE_ORDERED__@@", Zc = "@@__IMMUTABLE_RECORD__@@", Qc = "@@__IMMUTABLE_SEQ__@@", ea = "\
|
|
2019
|
+
@@__IMMUTABLE_SET__@@", ta = "@@__IMMUTABLE_STACK__@@", Pe = /* @__PURE__ */ i((e) => `Immutable.${e}`, "getImmutableName"), ct = /* @__PURE__ */ i(
|
|
2020
|
+
(e) => `[${e}]`, "printAsLeaf"), Ue = " ", En = "\u2026";
|
|
2021
|
+
function ra(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(ra, "printImmutableEntries");
|
|
2032
|
+
function na(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(na, "getRecordEntries");
|
|
2045
|
+
function oa(e, t, r, n, o, s) {
|
|
2046
|
+
let c = Pe(e._name || "Record");
|
|
2047
|
+
return ++n > t.maxDepth ? ct(c) : `${c + Ue}{${qe(
|
|
2048
|
+
na(e),
|
|
2049
|
+
t,
|
|
2050
|
+
r,
|
|
2051
|
+
n,
|
|
2052
|
+
o,
|
|
2053
|
+
s
|
|
2054
|
+
)}}`;
|
|
2055
|
+
}
|
|
2056
|
+
i(oa, "printImmutableRecord");
|
|
2057
|
+
function ia(e, t, r, n, o, s) {
|
|
2058
|
+
let c = Pe("Seq");
|
|
2059
|
+
return ++n > t.maxDepth ? ct(c) : e[Kc] ? `${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
|
+
) : En}}` : `${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
|
+
) : En}]`;
|
|
2075
|
+
}
|
|
2076
|
+
i(ia, "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 sa = /* @__PURE__ */ i((e, t, r, n, o, s) => e[Xc] ? ra(
|
|
2089
|
+
e,
|
|
2090
|
+
t,
|
|
2091
|
+
r,
|
|
2092
|
+
n,
|
|
2093
|
+
o,
|
|
2094
|
+
s,
|
|
2095
|
+
e[Sn] ? "OrderedMap" : "Map"
|
|
2096
|
+
) : e[Jc] ? Zt(
|
|
2097
|
+
e,
|
|
2098
|
+
t,
|
|
2099
|
+
r,
|
|
2100
|
+
n,
|
|
2101
|
+
o,
|
|
2102
|
+
s,
|
|
2103
|
+
"List"
|
|
2104
|
+
) : e[ea] ? Zt(
|
|
2105
|
+
e,
|
|
2106
|
+
t,
|
|
2107
|
+
r,
|
|
2108
|
+
n,
|
|
2109
|
+
o,
|
|
2110
|
+
s,
|
|
2111
|
+
e[Sn] ? "OrderedSet" : "Set"
|
|
2112
|
+
) : e[ta] ? Zt(
|
|
2113
|
+
e,
|
|
2114
|
+
t,
|
|
2115
|
+
r,
|
|
2116
|
+
n,
|
|
2117
|
+
o,
|
|
2118
|
+
s,
|
|
2119
|
+
"Stack"
|
|
2120
|
+
) : e[Qc] ? ia(e, t, r, n, o, s) : oa(e, t, r, n, o, s), "serialize$2"), ca = /* @__PURE__ */ i((e) => e && (e[Hc] === !0 || e[Zc] === !0), "\
|
|
2121
|
+
test$2"), aa = { serialize: sa, test: ca };
|
|
2122
|
+
function Dn(e) {
|
|
2123
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2124
|
+
}
|
|
2125
|
+
i(Dn, "getDefaultExportFromCjs");
|
|
2126
|
+
var Qt = { exports: {} };
|
|
2127
|
+
var j = {};
|
|
2128
|
+
var An;
|
|
2129
|
+
function ua() {
|
|
2130
|
+
return An || (An = 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(ua, "requireReactIs_development$1");
|
|
2199
|
+
var On;
|
|
2200
|
+
function la() {
|
|
2201
|
+
return On || (On = 1, Qt.exports = ua()), Qt.exports;
|
|
2202
|
+
}
|
|
2203
|
+
i(la, "requireReactIs$1");
|
|
2204
|
+
var Bn = /* @__PURE__ */ la(), fa = /* @__PURE__ */ Dn(Bn), pa = /* @__PURE__ */ Nn({
|
|
2205
|
+
__proto__: null,
|
|
2206
|
+
default: fa
|
|
2207
|
+
}, [Bn]), er = { exports: {} };
|
|
2208
|
+
var I = {};
|
|
2209
|
+
var _n;
|
|
2210
|
+
function ya() {
|
|
2211
|
+
return _n || (_n = 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 hn = rt && rt.$$typeof;
|
|
2242
|
+
switch (hn) {
|
|
2243
|
+
case u:
|
|
2244
|
+
case c:
|
|
2245
|
+
case a:
|
|
2246
|
+
case h:
|
|
2247
|
+
case l:
|
|
2248
|
+
case s:
|
|
2249
|
+
return hn;
|
|
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 Oc(w) {
|
|
2314
|
+
return E(w) === y;
|
|
2315
|
+
}
|
|
2316
|
+
i(Oc, "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 = Oc, I.isValidElementType = b, I.typeOf = E;
|
|
2320
|
+
}()), I;
|
|
2321
|
+
}
|
|
2322
|
+
i(ya, "requireReactIs_development");
|
|
2323
|
+
var wn;
|
|
2324
|
+
function ga() {
|
|
2325
|
+
return wn || (wn = 1, er.exports = ya()), er.exports;
|
|
2326
|
+
}
|
|
2327
|
+
i(ga, "requireReactIs");
|
|
2328
|
+
var kn = ga(), ma = /* @__PURE__ */ Dn(kn), ha = /* @__PURE__ */ Nn({
|
|
2329
|
+
__proto__: null,
|
|
2330
|
+
default: ma
|
|
2331
|
+
}, [kn]), da = [
|
|
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
|
+
da.map((e) => [e, (t) => ha[e](t) || pa[e](t)])
|
|
2349
|
+
);
|
|
2350
|
+
function Un(e, t = []) {
|
|
2351
|
+
if (Array.isArray(e))
|
|
2352
|
+
for (let r of e)
|
|
2353
|
+
Un(r, t);
|
|
2354
|
+
else e != null && e !== !1 && e !== "" && t.push(e);
|
|
2355
|
+
return t;
|
|
2356
|
+
}
|
|
2357
|
+
i(Un, "getChildren");
|
|
2358
|
+
function Tn(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(Tn, "getType");
|
|
2387
|
+
function ba(e) {
|
|
2388
|
+
let { props: t } = e;
|
|
2389
|
+
return Object.keys(t).filter((r) => r !== "children" && t[r] !== void 0).sort();
|
|
2390
|
+
}
|
|
2391
|
+
i(ba, "getPropKeys$1");
|
|
2392
|
+
var Sa = /* @__PURE__ */ i((e, t, r, n, o, s) => ++n > t.maxDepth ? sr(Tn(e), t) : ir(
|
|
2393
|
+
Tn(e),
|
|
2394
|
+
nr(
|
|
2395
|
+
ba(e),
|
|
2396
|
+
e.props,
|
|
2397
|
+
t,
|
|
2398
|
+
r + t.indent,
|
|
2399
|
+
n,
|
|
2400
|
+
o,
|
|
2401
|
+
s
|
|
2402
|
+
),
|
|
2403
|
+
or(
|
|
2404
|
+
Un(e.props.children),
|
|
2405
|
+
t,
|
|
2406
|
+
r + t.indent,
|
|
2407
|
+
n,
|
|
2408
|
+
o,
|
|
2409
|
+
s
|
|
2410
|
+
),
|
|
2411
|
+
t,
|
|
2412
|
+
r
|
|
2413
|
+
), "serialize$1"), Ea = /* @__PURE__ */ i((e) => e != null && be.isElement(e), "test$1"), Aa = { serialize: Sa, test: Ea }, Oa = typeof Symbol ==
|
|
2414
|
+
"function" && Symbol.for ? Symbol.for("react.test.json") : 245830487;
|
|
2415
|
+
function _a(e) {
|
|
2416
|
+
let { props: t } = e;
|
|
2417
|
+
return t ? Object.keys(t).filter((r) => t[r] !== void 0).sort() : [];
|
|
2418
|
+
}
|
|
2419
|
+
i(_a, "getPropKeys");
|
|
2420
|
+
var wa = /* @__PURE__ */ i((e, t, r, n, o, s) => ++n > t.maxDepth ? sr(e.type, t) : ir(
|
|
2421
|
+
e.type,
|
|
2422
|
+
e.props ? nr(
|
|
2423
|
+
_a(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"), Ta = /* @__PURE__ */ i((e) => e && e.$$typeof === Oa, "test"), Pa = { serialize: wa, test: Ta }, qn = Object.prototype.toString,
|
|
2442
|
+
Ca = Date.prototype.toISOString, $a = Error.prototype.toString, Pn = RegExp.prototype.toString;
|
|
2443
|
+
function ot(e) {
|
|
2444
|
+
return typeof e.constructor == "function" && e.constructor.name || "Object";
|
|
2445
|
+
}
|
|
2446
|
+
i(ot, "getConstructorName");
|
|
2447
|
+
function Ra(e) {
|
|
2448
|
+
return typeof window < "u" && e === window;
|
|
2449
|
+
}
|
|
2450
|
+
i(Ra, "isWindow");
|
|
2451
|
+
var Ia = /^Symbol\((.*)\)(.*)$/, Na = /\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 ja(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(ja, "isToStringedArrayType");
|
|
2464
|
+
function Ma(e) {
|
|
2465
|
+
return Object.is(e, -0) ? "-0" : String(e);
|
|
2466
|
+
}
|
|
2467
|
+
i(Ma, "printNumber");
|
|
2468
|
+
function xa(e) {
|
|
2469
|
+
return `${e}n`;
|
|
2470
|
+
}
|
|
2471
|
+
i(xa, "printBigInt");
|
|
2472
|
+
function Cn(e, t) {
|
|
2473
|
+
return t ? `[Function ${e.name || "anonymous"}]` : "[Function]";
|
|
2474
|
+
}
|
|
2475
|
+
i(Cn, "printFunction");
|
|
2476
|
+
function $n(e) {
|
|
2477
|
+
return String(e).replace(Ia, "Symbol($1)");
|
|
2478
|
+
}
|
|
2479
|
+
i($n, "printSymbol");
|
|
2480
|
+
function Rn(e) {
|
|
2481
|
+
return `[${$a.call(e)}]`;
|
|
2482
|
+
}
|
|
2483
|
+
i(Rn, "printError");
|
|
2484
|
+
function zn(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 Ma(e);
|
|
2494
|
+
if (o === "bigint")
|
|
2495
|
+
return xa(e);
|
|
2496
|
+
if (o === "string")
|
|
2497
|
+
return n ? `"${e.replaceAll(/"|\\/g, "\\$&")}"` : `"${e}"`;
|
|
2498
|
+
if (o === "function")
|
|
2499
|
+
return Cn(e, t);
|
|
2500
|
+
if (o === "symbol")
|
|
2501
|
+
return $n(e);
|
|
2502
|
+
let s = qn.call(e);
|
|
2503
|
+
return s === "[object WeakMap]" ? "WeakMap {}" : s === "[object WeakSet]" ? "WeakSet {}" : s === "[object Function]" || s === "[object Gen\
|
|
2504
|
+
eratorFunction]" ? Cn(e, t) : s === "[object Symbol]" ? $n(e) : s === "[object Date]" ? Number.isNaN(+e) ? "Date { NaN }" : Ca.call(e) : s ===
|
|
2505
|
+
"[object Error]" ? Rn(e) : s === "[object RegExp]" ? r ? Pn.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&") : Pn.call(e) : e instanceof Error ?
|
|
2506
|
+
Rn(e) : null;
|
|
2507
|
+
}
|
|
2508
|
+
i(zn, "printBasicValue");
|
|
2509
|
+
function Wn(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 = qn.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
|
+
)}]` : ja(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 || Ra(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(Wn, "printComplexValue");
|
|
2550
|
+
var va = {
|
|
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 Fa(e) {
|
|
2573
|
+
return e.serialize != null;
|
|
2574
|
+
}
|
|
2575
|
+
i(Fa, "isNewPlugin");
|
|
2576
|
+
function Gn(e, t, r, n, o, s) {
|
|
2577
|
+
let c;
|
|
2578
|
+
try {
|
|
2579
|
+
c = Fa(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(Na, `
|
|
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(Gn, "printPlugin");
|
|
2604
|
+
function Yn(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(Yn, "findPlugin");
|
|
2615
|
+
function he(e, t, r, n, o, s) {
|
|
2616
|
+
let c = Yn(t.plugins, e);
|
|
2617
|
+
if (c !== null)
|
|
2618
|
+
return Gn(c, e, t, r, n, o);
|
|
2619
|
+
let u = zn(
|
|
2620
|
+
e,
|
|
2621
|
+
t.printFunctionName,
|
|
2622
|
+
t.escapeRegex,
|
|
2623
|
+
t.escapeString
|
|
2624
|
+
);
|
|
2625
|
+
return u !== null ? u : Wn(
|
|
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
|
+
}, Vn = 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 La(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(La, "validateOptions");
|
|
2666
|
+
function Da() {
|
|
2667
|
+
return Vn.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(Da, "getColorsHighlight");
|
|
2679
|
+
function Ba() {
|
|
2680
|
+
return Vn.reduce((e, t) => (e[t] = { close: "", open: "" }, e), /* @__PURE__ */ Object.create(null));
|
|
2681
|
+
}
|
|
2682
|
+
i(Ba, "getColorsEmpty");
|
|
2683
|
+
function Hn(e) {
|
|
2684
|
+
return e?.printFunctionName ?? se.printFunctionName;
|
|
2685
|
+
}
|
|
2686
|
+
i(Hn, "getPrintFunctionName");
|
|
2687
|
+
function Jn(e) {
|
|
2688
|
+
return e?.escapeRegex ?? se.escapeRegex;
|
|
2689
|
+
}
|
|
2690
|
+
i(Jn, "getEscapeRegex");
|
|
2691
|
+
function Kn(e) {
|
|
2692
|
+
return e?.escapeString ?? se.escapeString;
|
|
2693
|
+
}
|
|
2694
|
+
i(Kn, "getEscapeString");
|
|
2695
|
+
function In(e) {
|
|
2696
|
+
return {
|
|
2697
|
+
callToJSON: e?.callToJSON ?? se.callToJSON,
|
|
2698
|
+
colors: e?.highlight ? Da() : Ba(),
|
|
2699
|
+
compareKeys: typeof e?.compareKeys == "function" || e?.compareKeys === null ? e.compareKeys : se.compareKeys,
|
|
2700
|
+
escapeRegex: Jn(e),
|
|
2701
|
+
escapeString: Kn(e),
|
|
2702
|
+
indent: e?.min ? "" : ka(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: Hn(e),
|
|
2709
|
+
spacingInner: e?.min ? " " : `
|
|
2710
|
+
`,
|
|
2711
|
+
spacingOuter: e?.min ? "" : `
|
|
2712
|
+
`
|
|
2713
|
+
};
|
|
2714
|
+
}
|
|
2715
|
+
i(In, "getConfig");
|
|
2716
|
+
function ka(e) {
|
|
2717
|
+
return Array.from({ length: e + 1 }).join(" ");
|
|
2718
|
+
}
|
|
2719
|
+
i(ka, "createIndent");
|
|
2720
|
+
function re(e, t) {
|
|
2721
|
+
if (t && (La(t), t.plugins)) {
|
|
2722
|
+
let n = Yn(t.plugins, e);
|
|
2723
|
+
if (n !== null)
|
|
2724
|
+
return Gn(n, e, In(t), "", 0, []);
|
|
2725
|
+
}
|
|
2726
|
+
let r = zn(
|
|
2727
|
+
e,
|
|
2728
|
+
Hn(t),
|
|
2729
|
+
Jn(t),
|
|
2730
|
+
Kn(t)
|
|
2731
|
+
);
|
|
2732
|
+
return r !== null ? r : Wn(e, In(t), "", 0, []);
|
|
2733
|
+
}
|
|
2734
|
+
i(re, "format");
|
|
2735
|
+
var ze = {
|
|
2736
|
+
AsymmetricMatcher: Ic,
|
|
2737
|
+
DOMCollection: Lc,
|
|
2738
|
+
DOMElement: Vc,
|
|
2739
|
+
Immutable: aa,
|
|
2740
|
+
ReactElement: Aa,
|
|
2741
|
+
ReactTestComponent: Pa,
|
|
2742
|
+
Error: va
|
|
2743
|
+
};
|
|
2744
|
+
|
|
2745
|
+
// ../node_modules/loupe/lib/helpers.js
|
|
2746
|
+
var Xn = {
|
|
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
|
+
}, Ua = {
|
|
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 qa(e, t) {
|
|
2787
|
+
let r = Xn[Ua[t]] || Xn[t] || "";
|
|
2788
|
+
return r ? `\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m` : String(e);
|
|
2789
|
+
}
|
|
2790
|
+
i(qa, "colorise");
|
|
2791
|
+
function Zn({
|
|
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 = qa), l;
|
|
2818
|
+
}
|
|
2819
|
+
i(Zn, "normaliseOptions");
|
|
2820
|
+
function za(e) {
|
|
2821
|
+
return e >= "\uD800" && e <= "\uDBFF";
|
|
2822
|
+
}
|
|
2823
|
+
i(za, "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 && za(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 Wa(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(Wa, "quoteComplexKey");
|
|
2864
|
+
function ge([e, t], r) {
|
|
2865
|
+
return r.truncate -= 2, typeof e == "string" ? e = Wa(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 Ga = /* @__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 = Ga(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 Ya([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(Ya, "inspectMapEntry");
|
|
2928
|
+
function Va(e) {
|
|
2929
|
+
let t = [];
|
|
2930
|
+
return e.forEach((r, n) => {
|
|
2931
|
+
t.push([n, r]);
|
|
2932
|
+
}), t;
|
|
2933
|
+
}
|
|
2934
|
+
i(Va, "mapToEntries");
|
|
2935
|
+
function fr(e, t) {
|
|
2936
|
+
return e.size === 0 ? "Map{}" : (t.truncate -= 7, `Map{ ${B(Va(e), t, Ya)} }`);
|
|
2937
|
+
}
|
|
2938
|
+
i(fr, "inspectMap");
|
|
2939
|
+
|
|
2940
|
+
// ../node_modules/loupe/lib/number.js
|
|
2941
|
+
var Ha = Number.isNaN || ((e) => e !== e);
|
|
2942
|
+
function ut(e, t) {
|
|
2943
|
+
return Ha(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 Ja(e) {
|
|
2964
|
+
let t = [];
|
|
2965
|
+
return e.forEach((r) => {
|
|
2966
|
+
t.push(r);
|
|
2967
|
+
}), t;
|
|
2968
|
+
}
|
|
2969
|
+
i(Ja, "arrayFromSet");
|
|
2970
|
+
function yr(e, t) {
|
|
2971
|
+
return e.size === 0 ? "Set{}" : (t.truncate -= 7, `Set{ ${B(Ja(e), t)} }`);
|
|
2972
|
+
}
|
|
2973
|
+
i(yr, "inspectSet");
|
|
2974
|
+
|
|
2975
|
+
// ../node_modules/loupe/lib/string.js
|
|
2976
|
+
var Qn = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\u\
|
|
2977
|
+
ffff]", "g"), Ka = {
|
|
2978
|
+
"\b": "\\b",
|
|
2979
|
+
" ": "\\t",
|
|
2980
|
+
"\n": "\\n",
|
|
2981
|
+
"\f": "\\f",
|
|
2982
|
+
"\r": "\\r",
|
|
2983
|
+
"'": "\\'",
|
|
2984
|
+
"\\": "\\\\"
|
|
2985
|
+
}, Xa = 16, Za = 4;
|
|
2986
|
+
function Qa(e) {
|
|
2987
|
+
return Ka[e] || `\\u${`0000${e.charCodeAt(0).toString(Xa)}`.slice(-Za)}`;
|
|
2988
|
+
}
|
|
2989
|
+
i(Qa, "escape");
|
|
2990
|
+
function ft(e, t) {
|
|
2991
|
+
return Qn.test(e) && (e = e.replace(Qn, Qa)), 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 eo = /* @__PURE__ */ i(() => "Promise{\u2026}", "getPromiseValue");
|
|
3003
|
+
try {
|
|
3004
|
+
let { getPromiseDetails: e, kPending: t, kRejected: r } = process.binding("util");
|
|
3005
|
+
Array.isArray(e(Promise.resolve())) && (eo = /* @__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 to = eo;
|
|
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 eu = [
|
|
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) => eu.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 tu([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(tu, "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, tu, " ")), 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 Cf = typeof Symbol == "function" && typeof Symbol.for == "function", Kr = Cf ? Symbol.for("chai/inspect") : "@@chai/inspect", Le = !1;
|
|
3093
|
+
try {
|
|
3094
|
+
let e = Ms();
|
|
3095
|
+
Le = e.inspect ? e.inspect.custom : !1;
|
|
3096
|
+
} catch {
|
|
3097
|
+
Le = !1;
|
|
3098
|
+
}
|
|
3099
|
+
var xs = /* @__PURE__ */ new WeakMap(), vs = {}, Fs = {
|
|
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: to,
|
|
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
|
+
}, $f = /* @__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 && xs.has(e.constructor) ? xs.get(
|
|
3142
|
+
e.constructor)(e, t) : vs[r] ? vs[r](e, t) : "", "inspectCustom"), Rf = Object.prototype.toString;
|
|
3143
|
+
function zt(e, t = {}) {
|
|
3144
|
+
let r = Zn(t, zt), { customInspect: n } = r, o = e === null ? "null" : typeof e;
|
|
3145
|
+
if (o === "object" && (o = Rf.call(e).slice(8, -1)), o in Fs)
|
|
3146
|
+
return Fs[o](e, r);
|
|
3147
|
+
if (n && e) {
|
|
3148
|
+
let c = $f(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: Nf,
|
|
3161
|
+
DOMCollection: jf,
|
|
3162
|
+
DOMElement: Mf,
|
|
3163
|
+
Immutable: xf,
|
|
3164
|
+
ReactElement: vf,
|
|
3165
|
+
ReactTestComponent: Ff
|
|
3166
|
+
} = ze, Ls = [
|
|
3167
|
+
Ff,
|
|
3168
|
+
vf,
|
|
3169
|
+
Mf,
|
|
3170
|
+
jf,
|
|
3171
|
+
xf,
|
|
3172
|
+
Nf
|
|
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: Ls,
|
|
3182
|
+
...n
|
|
3183
|
+
});
|
|
3184
|
+
} catch {
|
|
3185
|
+
s = re(e, {
|
|
3186
|
+
callToJSON: !1,
|
|
3187
|
+
maxDepth: t,
|
|
3188
|
+
escapeString: !1,
|
|
3189
|
+
// min: true,
|
|
3190
|
+
plugins: Ls,
|
|
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 Lf = /%[sdjifoOc%]/g;
|
|
3198
|
+
function Ds(...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(Lf, (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(Ds, "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 Bs(e) {
|
|
3259
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
3260
|
+
}
|
|
3261
|
+
i(Bs, "getDefaultExportFromCjs");
|
|
3262
|
+
|
|
3263
|
+
// ../node_modules/@vitest/utils/dist/helpers.js
|
|
3264
|
+
function Df(e) {
|
|
3265
|
+
return e === Object.prototype || e === Function.prototype || e === RegExp.prototype;
|
|
3266
|
+
}
|
|
3267
|
+
i(Df, "isFinalObj");
|
|
3268
|
+
function Wt(e) {
|
|
3269
|
+
return Object.prototype.toString.apply(e).slice(8, -1);
|
|
3270
|
+
}
|
|
3271
|
+
i(Wt, "getType");
|
|
3272
|
+
function Bf(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(Bf, "collectOwnProperties");
|
|
3277
|
+
function Zr(e) {
|
|
3278
|
+
let t = /* @__PURE__ */ new Set();
|
|
3279
|
+
return Df(e) ? [] : (Bf(e, t), Array.from(t));
|
|
3280
|
+
}
|
|
3281
|
+
i(Zr, "getOwnProperties");
|
|
3282
|
+
var ks = { forceWritable: !1 };
|
|
3283
|
+
function Qr(e, t = ks) {
|
|
3284
|
+
return Xr(e, /* @__PURE__ */ new WeakMap(), t);
|
|
3285
|
+
}
|
|
3286
|
+
i(Qr, "deepClone");
|
|
3287
|
+
function Xr(e, t, r = ks) {
|
|
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 kf(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(kf, "diff_commonPrefix");
|
|
3344
|
+
function rc(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(rc, "diff_commonSuffix");
|
|
3354
|
+
function Us(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(Us, "diff_commonOverlap_");
|
|
3371
|
+
function Uf(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 && nc(e), Wf(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 = Us(y, l), g = Us(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(Uf, "diff_cleanupSemantic");
|
|
3403
|
+
var qs = /[^a-z0-9]/i, zs = /\s/, Ws = /[\r\n]/, qf = /\n\r?\n$/, zf = /^\r?\n\r?\n/;
|
|
3404
|
+
function Wf(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 = rc(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(Wf, "diff_cleanupSemanticLossless");
|
|
3425
|
+
function nc(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 = kf(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 = rc(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 && nc(e);
|
|
3463
|
+
}
|
|
3464
|
+
i(nc, "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(qs), s = n.match(qs), c = o && r.match(zs), u = s && n.match(zs), a = c && r.
|
|
3469
|
+
match(Ws), f = u && n.match(Ws), y = a && e.match(qf), l = f && t.match(zf);
|
|
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 oc = "Compared values have no visual difference.", Gf = "Compared values serialize to the same structure.\nPrinting internal object struc\
|
|
3474
|
+
ture without calling `toJSON` instead.", Yt = {}, Gs;
|
|
3475
|
+
function Yf() {
|
|
3476
|
+
if (Gs) return Yt;
|
|
3477
|
+
Gs = 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(Yf, "requireBuild");
|
|
3777
|
+
var Vf = Yf(), ic = /* @__PURE__ */ Bs(Vf);
|
|
3778
|
+
function Hf(e, t) {
|
|
3779
|
+
return e.replace(/\s+$/, (r) => t(r));
|
|
3780
|
+
}
|
|
3781
|
+
i(Hf, "formatTrailingSpaces");
|
|
3782
|
+
function cn(e, t, r, n, o, s) {
|
|
3783
|
+
return e.length !== 0 ? r(
|
|
3784
|
+
`${n} ${Hf(e, o)}`
|
|
3785
|
+
) : n !== " " ? r(n) : t && s.length !== 0 ? r(`${n} ${s}`) : "";
|
|
3786
|
+
}
|
|
3787
|
+
i(cn, "printDiffLine");
|
|
3788
|
+
function sc(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(sc, "printDeleteLine");
|
|
3804
|
+
function cc(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(cc, "printInsertLine");
|
|
3820
|
+
function ac(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(ac, "printCommonLine");
|
|
3836
|
+
function Ys(e, t, r, n, { patchColor: o }) {
|
|
3837
|
+
return o(
|
|
3838
|
+
`@@ -${e + 1},${t - e} +${r + 1},${n - r} @@`
|
|
3839
|
+
);
|
|
3840
|
+
}
|
|
3841
|
+
i(Ys, "createPatchMark");
|
|
3842
|
+
function Jf(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(ac(b, E === 0 || E === y, t)), p += 1, d += 1;
|
|
3868
|
+
}, "pushCommonLine"), A = /* @__PURE__ */ i((b) => {
|
|
3869
|
+
let E = l.length;
|
|
3870
|
+
l.push(sc(b, E === 0 || E === y, t)), p += 1;
|
|
3871
|
+
}, "pushDeleteLine"), T = /* @__PURE__ */ i((b) => {
|
|
3872
|
+
let E = l.length;
|
|
3873
|
+
l.push(cc(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] = Ys(
|
|
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] = Ys(g, p, m, d, t)), l.join(`
|
|
3915
|
+
`);
|
|
3916
|
+
}
|
|
3917
|
+
i(Jf, "joinAlignedDiffsNoExpand");
|
|
3918
|
+
function Kf(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 sc(s, c, t);
|
|
3924
|
+
case q:
|
|
3925
|
+
return cc(s, c, t);
|
|
3926
|
+
default:
|
|
3927
|
+
return ac(s, c, t);
|
|
3928
|
+
}
|
|
3929
|
+
}).join(`
|
|
3930
|
+
`);
|
|
3931
|
+
}
|
|
3932
|
+
i(Kf, "joinAlignedDiffsExpand");
|
|
3933
|
+
var en = /* @__PURE__ */ i((e) => e, "noColor"), uc = 5, Xf = 0;
|
|
3934
|
+
function Zf() {
|
|
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: uc,
|
|
3949
|
+
emptyFirstOrLastLinePlaceholder: "",
|
|
3950
|
+
expand: !0,
|
|
3951
|
+
includeChangeCounts: !1,
|
|
3952
|
+
omitAnnotationLines: !1,
|
|
3953
|
+
patchColor: ie.yellow,
|
|
3954
|
+
printBasicPrototype: !1,
|
|
3955
|
+
truncateThreshold: Xf,
|
|
3956
|
+
truncateAnnotation: "... Diff result is truncated",
|
|
3957
|
+
truncateAnnotationColor: en
|
|
3958
|
+
};
|
|
3959
|
+
}
|
|
3960
|
+
i(Zf, "getDefaultOptions");
|
|
3961
|
+
function Qf(e) {
|
|
3962
|
+
return e && typeof e == "function" ? e : void 0;
|
|
3963
|
+
}
|
|
3964
|
+
i(Qf, "getCompareKeys");
|
|
3965
|
+
function ep(e) {
|
|
3966
|
+
return typeof e == "number" && Number.isSafeInteger(e) && e >= 0 ? e : uc;
|
|
3967
|
+
}
|
|
3968
|
+
i(ep, "getContextLines");
|
|
3969
|
+
function we(e = {}) {
|
|
3970
|
+
return {
|
|
3971
|
+
...Zf(),
|
|
3972
|
+
...e,
|
|
3973
|
+
compareKeys: Qf(e.compareKeys),
|
|
3974
|
+
contextLines: ep(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 tp(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(tp, "countChanges");
|
|
3996
|
+
function rp({
|
|
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(rp, "printAnnotation");
|
|
4021
|
+
function an(e, t, r) {
|
|
4022
|
+
return rp(r, tp(e)) + (r.expand ? Kf(e, r) : Jf(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] = lc(
|
|
4028
|
+
De(e) ? [] : e,
|
|
4029
|
+
De(t) ? [] : t,
|
|
4030
|
+
n
|
|
4031
|
+
);
|
|
4032
|
+
return an(o, s, n);
|
|
4033
|
+
}
|
|
4034
|
+
i(Ht, "diffLinesUnified");
|
|
4035
|
+
function np(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] = lc(
|
|
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(np, "diffLinesUnified2");
|
|
4057
|
+
function lc(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 (ic(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(lc, "diffLinesRaw");
|
|
4077
|
+
function Vs(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(Vs, "getType");
|
|
4111
|
+
function Hs(e) {
|
|
4112
|
+
return e.includes(`\r
|
|
4113
|
+
`) ? `\r
|
|
4114
|
+
` : `
|
|
4115
|
+
`;
|
|
4116
|
+
}
|
|
4117
|
+
i(Hs, "getNewLineSymbol");
|
|
4118
|
+
function op(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 = Hs(e), d = Hs(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 ic(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(op, "diffStrings");
|
|
4138
|
+
function ip(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(ip, "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
|
+
ip(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 sp(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(sp, "getAlignedDiffs");
|
|
4251
|
+
function cp(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(cp, "hasCommonDiff");
|
|
4262
|
+
function ap(e, t, r) {
|
|
4263
|
+
if (e !== t && e.length !== 0 && t.length !== 0) {
|
|
4264
|
+
let n = e.includes(`
|
|
4265
|
+
`) || t.includes(`
|
|
4266
|
+
`), [o, s] = fc(
|
|
4267
|
+
n ? `${e}
|
|
4268
|
+
` : e,
|
|
4269
|
+
n ? `${t}
|
|
4270
|
+
` : t,
|
|
4271
|
+
!0,
|
|
4272
|
+
// cleanupSemantic
|
|
4273
|
+
r
|
|
4274
|
+
);
|
|
4275
|
+
if (cp(o, n)) {
|
|
4276
|
+
let c = we(r), u = sp(o, c.changeColor);
|
|
4277
|
+
return an(u, s, c);
|
|
4278
|
+
}
|
|
4279
|
+
}
|
|
4280
|
+
return Ht(e.split(`
|
|
4281
|
+
`), t.split(`
|
|
4282
|
+
`), r);
|
|
4283
|
+
}
|
|
4284
|
+
i(ap, "diffStringsUnified");
|
|
4285
|
+
function fc(e, t, r, n) {
|
|
4286
|
+
let [o, s] = op(e, t, n);
|
|
4287
|
+
return r && Uf(o), [o, s];
|
|
4288
|
+
}
|
|
4289
|
+
i(fc, "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: up,
|
|
4297
|
+
DOMCollection: lp,
|
|
4298
|
+
DOMElement: fp,
|
|
4299
|
+
Immutable: pp,
|
|
4300
|
+
ReactElement: yp,
|
|
4301
|
+
ReactTestComponent: gp
|
|
4302
|
+
} = ze, pc = [
|
|
4303
|
+
gp,
|
|
4304
|
+
yp,
|
|
4305
|
+
fp,
|
|
4306
|
+
lp,
|
|
4307
|
+
pp,
|
|
4308
|
+
up,
|
|
4309
|
+
ze.Error
|
|
4310
|
+
], on = {
|
|
4311
|
+
plugins: pc
|
|
4312
|
+
}, yc = {
|
|
4313
|
+
callToJSON: !1,
|
|
4314
|
+
maxDepth: 8,
|
|
4315
|
+
plugins: pc
|
|
4316
|
+
};
|
|
4317
|
+
function mp(e, t, r) {
|
|
4318
|
+
if (Object.is(e, t))
|
|
4319
|
+
return "";
|
|
4320
|
+
let n = Vs(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 !== Vs(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(yc, 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 hp(e, t, r);
|
|
4348
|
+
case "map":
|
|
4349
|
+
return tn(Js(e), Js(t), r);
|
|
4350
|
+
case "set":
|
|
4351
|
+
return tn(Ks(e), Ks(t), r);
|
|
4352
|
+
default:
|
|
4353
|
+
return tn(e, t, r);
|
|
4354
|
+
}
|
|
4355
|
+
}
|
|
4356
|
+
i(mp, "diff");
|
|
4357
|
+
function hp(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(hp, "comparePrimitive");
|
|
4364
|
+
function Js(e) {
|
|
4365
|
+
return new Map(Array.from(e.entries()).sort());
|
|
4366
|
+
}
|
|
4367
|
+
i(Js, "sortMap");
|
|
4368
|
+
function Ks(e) {
|
|
4369
|
+
return new Set(Array.from(e.values()).sort());
|
|
4370
|
+
}
|
|
4371
|
+
i(Ks, "sortSet");
|
|
4372
|
+
function tn(e, t, r) {
|
|
4373
|
+
let n, o = !1;
|
|
4374
|
+
try {
|
|
4375
|
+
let c = sn(on, r);
|
|
4376
|
+
n = Xs(e, t, c, r);
|
|
4377
|
+
} catch {
|
|
4378
|
+
o = !0;
|
|
4379
|
+
}
|
|
4380
|
+
let s = nn(oc, r);
|
|
4381
|
+
if (n === void 0 || n === s) {
|
|
4382
|
+
let c = sn(yc, r);
|
|
4383
|
+
n = Xs(e, t, c, r), n !== s && !o && (n = `${nn(
|
|
4384
|
+
Gf,
|
|
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 Xs(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(oc, n);
|
|
4406
|
+
{
|
|
4407
|
+
let u = re(e, r), a = re(t, r);
|
|
4408
|
+
return np(
|
|
4409
|
+
u.split(`
|
|
4410
|
+
`),
|
|
4411
|
+
a.split(`
|
|
4412
|
+
`),
|
|
4413
|
+
s.split(`
|
|
4414
|
+
`),
|
|
4415
|
+
c.split(`
|
|
4416
|
+
`),
|
|
4417
|
+
n
|
|
4418
|
+
);
|
|
4419
|
+
}
|
|
4420
|
+
}
|
|
4421
|
+
i(Xs, "getObjectsDifference");
|
|
4422
|
+
var Zs = 2e4;
|
|
4423
|
+
function Qs(e) {
|
|
4424
|
+
return Wt(e) === "Object" && typeof e.asymmetricMatch == "function";
|
|
4425
|
+
}
|
|
4426
|
+
i(Qs, "isAsymmetricMatcher");
|
|
4427
|
+
function ec(e, t) {
|
|
4428
|
+
let r = Wt(e), n = Wt(t);
|
|
4429
|
+
return r === n && (r === "Object" || r === "Array");
|
|
4430
|
+
}
|
|
4431
|
+
i(ec, "isReplaceable");
|
|
4432
|
+
function gc(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 <= Zs && e.length <= Zs && t !== e) {
|
|
4435
|
+
if (t.includes(`
|
|
4436
|
+
`) || e.includes(`
|
|
4437
|
+
`))
|
|
4438
|
+
return ap(t, e, r);
|
|
4439
|
+
let [y] = fc(t, e, !0), l = y.some((p) => p[0] === F), h = dp(n, o), g = h(n) + Ep(
|
|
4440
|
+
tc(y, G, l)
|
|
4441
|
+
), m = h(o) + Sp(
|
|
4442
|
+
tc(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 } = mc(c, s);
|
|
4448
|
+
return mp(u, a, r);
|
|
4449
|
+
}
|
|
4450
|
+
i(gc, "printDiffOrStringify");
|
|
4451
|
+
function mc(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
|
+
}) : ec(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 (Qs(s))
|
|
4458
|
+
s.asymmetricMatch(c) && (e[o] = s);
|
|
4459
|
+
else if (Qs(c))
|
|
4460
|
+
c.asymmetricMatch(s) && (t[o] = c);
|
|
4461
|
+
else if (ec(c, s)) {
|
|
4462
|
+
let u = mc(
|
|
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(mc, "replaceAsymmetricMatcher");
|
|
4476
|
+
function dp(...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(dp, "getLabelPrinter");
|
|
4484
|
+
var bp = "\xB7";
|
|
4485
|
+
function hc(e) {
|
|
4486
|
+
return e.replace(/\s+$/gm, (t) => bp.repeat(t.length));
|
|
4487
|
+
}
|
|
4488
|
+
i(hc, "replaceTrailingSpaces");
|
|
4489
|
+
function Sp(e) {
|
|
4490
|
+
return ie.red(hc(_e(e)));
|
|
4491
|
+
}
|
|
4492
|
+
i(Sp, "printReceived");
|
|
4493
|
+
function Ep(e) {
|
|
4494
|
+
return ie.green(hc(_e(e)));
|
|
4495
|
+
}
|
|
4496
|
+
i(Ep, "printExpected");
|
|
4497
|
+
function tc(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(tc, "getCommonAndChangedSubstrings");
|
|
4504
|
+
|
|
4505
|
+
// ../node_modules/@vitest/utils/dist/error.js
|
|
4506
|
+
var Ap = "@@__IMMUTABLE_RECORD__@@", Op = "@@__IMMUTABLE_ITERABLE__@@";
|
|
4507
|
+
function _p(e) {
|
|
4508
|
+
return e && (e[Op] || e[Ap]);
|
|
4509
|
+
}
|
|
4510
|
+
i(_p, "isImmutable");
|
|
4511
|
+
var wp = Object.getPrototypeOf({});
|
|
4512
|
+
function dc(e) {
|
|
4513
|
+
return e instanceof Error ? `<unserializable>: ${e.message}` : typeof e == "string" ? `<unserializable>: ${e}` : "<unserializable>";
|
|
4514
|
+
}
|
|
4515
|
+
i(dc, "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 (_p(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()} ${Ds(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] = dc(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 !== wp; )
|
|
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] = dc(s);
|
|
4557
|
+
}
|
|
4558
|
+
}), n = Object.getPrototypeOf(n);
|
|
4559
|
+
return r;
|
|
4560
|
+
}
|
|
4561
|
+
}
|
|
4562
|
+
i(Be, "serializeValue");
|
|
4563
|
+
function Tp(e) {
|
|
4564
|
+
return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g, "");
|
|
4565
|
+
}
|
|
4566
|
+
i(Tp, "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 = gc(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 = Tp(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/types.ts
|
|
4598
|
+
var Pp = /* @__PURE__ */ ((o) => (o.DONE = "done", o.ERROR = "error", o.ACTIVE = "active", o.WAITING = "waiting", o))(Pp || {});
|
|
4599
|
+
|
|
4600
|
+
// src/instrumenter/instrumenter.ts
|
|
4601
|
+
var fe = {
|
|
4602
|
+
CALL: "storybook/instrumenter/call",
|
|
4603
|
+
SYNC: "storybook/instrumenter/sync",
|
|
4604
|
+
START: "storybook/instrumenter/start",
|
|
4605
|
+
BACK: "storybook/instrumenter/back",
|
|
4606
|
+
GOTO: "storybook/instrumenter/goto",
|
|
4607
|
+
NEXT: "storybook/instrumenter/next",
|
|
4608
|
+
END: "storybook/instrumenter/end"
|
|
4609
|
+
}, Sc = {
|
|
4610
|
+
start: !1,
|
|
4611
|
+
back: !1,
|
|
4612
|
+
goto: !1,
|
|
4613
|
+
next: !1,
|
|
4614
|
+
end: !1
|
|
4615
|
+
}, Ip = new Error(
|
|
4616
|
+
"This function ran after the play function completed. Did you forget to `await` it?"
|
|
4617
|
+
), Ec = /* @__PURE__ */ i((e) => Object.prototype.toString.call(e) === "[object Object]", "isObject"), Np = /* @__PURE__ */ i((e) => Object.
|
|
4618
|
+
prototype.toString.call(e) === "[object Module]", "isModule"), jp = /* @__PURE__ */ i((e) => {
|
|
4619
|
+
if (!Ec(e) && !Np(e))
|
|
4620
|
+
return !1;
|
|
4621
|
+
if (e.constructor === void 0)
|
|
4622
|
+
return !0;
|
|
4623
|
+
let t = e.constructor.prototype;
|
|
4624
|
+
return !!Ec(t);
|
|
4625
|
+
}, "isInstrumentable"), Mp = /* @__PURE__ */ i((e) => {
|
|
4626
|
+
try {
|
|
4627
|
+
return new e.constructor();
|
|
4628
|
+
} catch {
|
|
4629
|
+
return {};
|
|
4630
|
+
}
|
|
4631
|
+
}, "construct"), yn = /* @__PURE__ */ i(() => ({
|
|
4632
|
+
renderPhase: void 0,
|
|
4633
|
+
isDebugging: !1,
|
|
4634
|
+
isPlaying: !1,
|
|
4635
|
+
isLocked: !1,
|
|
4636
|
+
cursor: 0,
|
|
4637
|
+
calls: [],
|
|
4638
|
+
shadowCalls: [],
|
|
4639
|
+
callRefsByResult: /* @__PURE__ */ new Map(),
|
|
4640
|
+
chainedCallIds: /* @__PURE__ */ new Set(),
|
|
4641
|
+
ancestors: [],
|
|
4642
|
+
playUntil: void 0,
|
|
4643
|
+
resolvers: {},
|
|
4644
|
+
syncTimeout: void 0
|
|
4645
|
+
}), "getInitialState"), Ac = /* @__PURE__ */ i((e, t = !1) => {
|
|
4646
|
+
let r = (t ? e.shadowCalls : e.calls).filter((o) => o.retain);
|
|
4647
|
+
if (!r.length)
|
|
4648
|
+
return;
|
|
4649
|
+
let n = new Map(
|
|
4650
|
+
Array.from(e.callRefsByResult.entries()).filter(([, o]) => o.retain)
|
|
4651
|
+
);
|
|
4652
|
+
return { cursor: r.length, calls: r, callRefsByResult: n };
|
|
4653
|
+
}, "getRetainedState"), mn = class mn {
|
|
4654
|
+
constructor() {
|
|
4655
|
+
this.initialized = !1;
|
|
4656
|
+
this.state = V.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ || {};
|
|
4657
|
+
let t = /* @__PURE__ */ i(({
|
|
4658
|
+
storyId: a,
|
|
4659
|
+
isPlaying: f = !0,
|
|
4660
|
+
isDebugging: y = !1
|
|
4661
|
+
}) => {
|
|
4662
|
+
let l = this.getState(a);
|
|
4663
|
+
this.setState(a, {
|
|
4664
|
+
...yn(),
|
|
4665
|
+
...Ac(l, y),
|
|
4666
|
+
shadowCalls: y ? l.shadowCalls : [],
|
|
4667
|
+
chainedCallIds: y ? l.chainedCallIds : /* @__PURE__ */ new Set(),
|
|
4668
|
+
playUntil: y ? l.playUntil : void 0,
|
|
4669
|
+
isPlaying: f,
|
|
4670
|
+
isDebugging: y
|
|
4671
|
+
}), this.sync(a);
|
|
4672
|
+
}, "resetState"), r = /* @__PURE__ */ i((a) => ({ storyId: f, playUntil: y }) => {
|
|
4673
|
+
this.getState(f).isDebugging || this.setState(f, ({ calls: h }) => ({
|
|
4674
|
+
calls: [],
|
|
4675
|
+
shadowCalls: h.map((g) => ({ ...g, status: "waiting" })),
|
|
4676
|
+
isDebugging: !0
|
|
4677
|
+
}));
|
|
4678
|
+
let l = this.getLog(f);
|
|
4679
|
+
this.setState(f, ({ shadowCalls: h }) => {
|
|
4680
|
+
if (y || !l.length)
|
|
4681
|
+
return { playUntil: y };
|
|
4682
|
+
let g = h.findIndex((m) => m.id === l[0].callId);
|
|
4683
|
+
return {
|
|
4684
|
+
playUntil: h.slice(0, g).filter((m) => m.interceptable && !m.ancestors?.length).slice(-1)[0]?.id
|
|
4685
|
+
};
|
|
4686
|
+
}), a.emit(bc, { storyId: f, isDebugging: !0 });
|
|
4687
|
+
}, "start"), n = /* @__PURE__ */ i((a) => ({ storyId: f }) => {
|
|
4688
|
+
let y = this.getLog(f).filter((h) => !h.ancestors?.length), l = y.reduceRight((h, g, m) => h >= 0 || g.status === "waiting" ? h : m, -1);
|
|
4689
|
+
r(a)({ storyId: f, playUntil: y[l - 1]?.callId });
|
|
4690
|
+
}, "back"), o = /* @__PURE__ */ i((a) => ({ storyId: f, callId: y }) => {
|
|
4691
|
+
let { calls: l, shadowCalls: h, resolvers: g } = this.getState(f), m = l.find(({ id: d }) => d === y), p = h.find(({ id: d }) => d ===
|
|
4692
|
+
y);
|
|
4693
|
+
if (!m && p && Object.values(g).length > 0) {
|
|
4694
|
+
let d = this.getLog(f).find((S) => S.status === "waiting")?.callId;
|
|
4695
|
+
p.id !== d && this.setState(f, { playUntil: p.id }), Object.values(g).forEach((S) => S());
|
|
4696
|
+
} else
|
|
4697
|
+
r(a)({ storyId: f, playUntil: y });
|
|
4698
|
+
}, "goto"), s = /* @__PURE__ */ i((a) => ({ storyId: f }) => {
|
|
4699
|
+
let { resolvers: y } = this.getState(f);
|
|
4700
|
+
if (Object.values(y).length > 0)
|
|
4701
|
+
Object.values(y).forEach((l) => l());
|
|
4702
|
+
else {
|
|
4703
|
+
let l = this.getLog(f).find((h) => h.status === "waiting")?.callId;
|
|
4704
|
+
l ? r(a)({ storyId: f, playUntil: l }) : c({ storyId: f });
|
|
4705
|
+
}
|
|
4706
|
+
}, "next"), c = /* @__PURE__ */ i(({ storyId: a }) => {
|
|
4707
|
+
this.setState(a, { playUntil: void 0, isDebugging: !1 }), Object.values(this.getState(a).resolvers).forEach((f) => f());
|
|
4708
|
+
}, "end"), u = /* @__PURE__ */ i(({ storyId: a, newPhase: f }) => {
|
|
4709
|
+
let { isDebugging: y } = this.getState(a);
|
|
4710
|
+
this.setState(a, { renderPhase: f }), f === "preparing" && y && t({ storyId: a }), f === "playing" && t({ storyId: a, isDebugging: y }),
|
|
4711
|
+
f === "played" && this.setState(a, {
|
|
4712
|
+
isLocked: !1,
|
|
4713
|
+
isPlaying: !1,
|
|
4714
|
+
isDebugging: !1
|
|
4715
|
+
}), f === "errored" && this.setState(a, {
|
|
4716
|
+
isLocked: !1,
|
|
4717
|
+
isPlaying: !1
|
|
4718
|
+
});
|
|
4719
|
+
}, "renderPhaseChanged");
|
|
4720
|
+
import("storybook/preview-api").then(({ addons: a }) => {
|
|
4721
|
+
(a ? a.ready() : Promise.resolve()).then(() => {
|
|
4722
|
+
this.channel = a.getChannel(), this.channel.on(bc, t), this.channel.on(Rp, u), this.channel.on($p, () => {
|
|
4723
|
+
this.initialized ? this.cleanup() : this.initialized = !0;
|
|
4724
|
+
}), this.channel.on(fe.START, r(this.channel)), this.channel.on(fe.BACK, n(this.channel)), this.channel.on(fe.GOTO, o(this.channel)),
|
|
4725
|
+
this.channel.on(fe.NEXT, s(this.channel)), this.channel.on(fe.END, c);
|
|
4726
|
+
});
|
|
4727
|
+
});
|
|
4728
|
+
}
|
|
4729
|
+
getState(t) {
|
|
4730
|
+
return this.state[t] || yn();
|
|
4731
|
+
}
|
|
4732
|
+
setState(t, r) {
|
|
4733
|
+
let n = this.getState(t), o = typeof r == "function" ? r(n) : r;
|
|
4734
|
+
this.state = { ...this.state, [t]: { ...n, ...o } }, V.window?.parent && (V.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ =
|
|
4735
|
+
this.state);
|
|
4736
|
+
}
|
|
4737
|
+
cleanup() {
|
|
4738
|
+
this.state = Object.entries(this.state).reduce(
|
|
4739
|
+
(r, [n, o]) => {
|
|
4740
|
+
let s = Ac(o);
|
|
4741
|
+
return s && (r[n] = Object.assign(yn(), s)), r;
|
|
4742
|
+
},
|
|
4743
|
+
{}
|
|
4744
|
+
);
|
|
4745
|
+
let t = { controlStates: Sc, logItems: [] };
|
|
4746
|
+
this.channel?.emit(fe.SYNC, t), V.window?.parent && (V.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ = this.state);
|
|
4747
|
+
}
|
|
4748
|
+
getLog(t) {
|
|
4749
|
+
let { calls: r, shadowCalls: n } = this.getState(t), o = [...n];
|
|
4750
|
+
r.forEach((c, u) => {
|
|
4751
|
+
o[u] = c;
|
|
4752
|
+
});
|
|
4753
|
+
let s = /* @__PURE__ */ new Set();
|
|
4754
|
+
return o.reduceRight((c, u) => (u.args.forEach((a) => {
|
|
4755
|
+
a?.__callId__ && s.add(a.__callId__);
|
|
4756
|
+
}), u.path.forEach((a) => {
|
|
4757
|
+
a.__callId__ && s.add(a.__callId__);
|
|
4758
|
+
}), (u.interceptable || u.exception) && !s.has(u.id) && (c.unshift({ callId: u.id, status: u.status, ancestors: u.ancestors }), s.add(u.
|
|
4759
|
+
id)), c), []);
|
|
4760
|
+
}
|
|
4761
|
+
// Traverses the object structure to recursively patch all function properties.
|
|
4762
|
+
// Returns the original object, or a new object with the same constructor,
|
|
4763
|
+
// depending on whether it should mutate.
|
|
4764
|
+
instrument(t, r, n = 0) {
|
|
4765
|
+
if (!jp(t))
|
|
4766
|
+
return t;
|
|
4767
|
+
let { mutate: o = !1, path: s = [] } = r, c = r.getKeys ? r.getKeys(t, n) : Object.keys(t);
|
|
4768
|
+
return n += 1, c.reduce(
|
|
4769
|
+
(u, a) => {
|
|
4770
|
+
let f = vp(t, a);
|
|
4771
|
+
if (typeof f?.get == "function") {
|
|
4772
|
+
if (f.configurable) {
|
|
4773
|
+
let l = /* @__PURE__ */ i(() => f?.get?.bind(t)?.(), "getter");
|
|
4774
|
+
Object.defineProperty(u, a, {
|
|
4775
|
+
get: /* @__PURE__ */ i(() => this.instrument(l(), { ...r, path: s.concat(a) }, n), "get")
|
|
4776
|
+
});
|
|
4777
|
+
}
|
|
4778
|
+
return u;
|
|
4779
|
+
}
|
|
4780
|
+
let y = t[a];
|
|
4781
|
+
return typeof y != "function" ? (u[a] = this.instrument(y, { ...r, path: s.concat(a) }, n), u) : "__originalFn__" in y && typeof y.__originalFn__ ==
|
|
4782
|
+
"function" ? (u[a] = y, u) : (u[a] = (...l) => this.track(a, y, t, l, r), u[a].__originalFn__ = y, Object.defineProperty(u[a], "name",
|
|
4783
|
+
{ value: a, writable: !1 }), Object.keys(y).length > 0 && Object.assign(
|
|
4784
|
+
u[a],
|
|
4785
|
+
this.instrument({ ...y }, { ...r, path: s.concat(a) }, n)
|
|
4786
|
+
), u);
|
|
4787
|
+
},
|
|
4788
|
+
o ? t : Mp(t)
|
|
4789
|
+
);
|
|
4790
|
+
}
|
|
4791
|
+
// Monkey patch an object method to record calls.
|
|
4792
|
+
// Returns a function that invokes the original function, records the invocation ("call") and
|
|
4793
|
+
// returns the original result.
|
|
4794
|
+
track(t, r, n, o, s) {
|
|
4795
|
+
let c = o?.[0]?.__storyId__ || V.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId, { cursor: u, ancestors: a } = this.getState(
|
|
4796
|
+
c);
|
|
4797
|
+
this.setState(c, { cursor: u + 1 });
|
|
4798
|
+
let f = `${a.slice(-1)[0] || c} [${u}] ${t}`, { path: y = [], intercept: l = !1, retain: h = !1 } = s, g = typeof l == "function" ? l(t,
|
|
4799
|
+
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 ?
|
|
4800
|
+
this.intercept : this.invoke).call(this, r, n, m, s);
|
|
4801
|
+
return this.instrument(d, { ...s, mutate: !0, path: [{ __callId__: m.id }] });
|
|
4802
|
+
}
|
|
4803
|
+
intercept(t, r, n, o) {
|
|
4804
|
+
let { chainedCallIds: s, isDebugging: c, playUntil: u } = this.getState(n.storyId), a = s.has(n.id);
|
|
4805
|
+
return !c || a || u ? (u === n.id && this.setState(n.storyId, { playUntil: void 0 }), this.invoke(t, r, n, o)) : new Promise((f) => {
|
|
4806
|
+
this.setState(n.storyId, ({ resolvers: y }) => ({
|
|
4807
|
+
isLocked: !1,
|
|
4808
|
+
resolvers: { ...y, [n.id]: f }
|
|
4809
|
+
}));
|
|
4810
|
+
}).then(() => (this.setState(n.storyId, (f) => {
|
|
4811
|
+
let { [n.id]: y, ...l } = f.resolvers;
|
|
4812
|
+
return { isLocked: !0, resolvers: l };
|
|
4813
|
+
}), this.invoke(t, r, n, o)));
|
|
4814
|
+
}
|
|
4815
|
+
invoke(t, r, n, o) {
|
|
4816
|
+
let { callRefsByResult: s, renderPhase: c } = this.getState(n.storyId), u = 25, a = /* @__PURE__ */ i((l, h, g) => {
|
|
4817
|
+
if (g.includes(l))
|
|
4818
|
+
return "[Circular]";
|
|
4819
|
+
if (g = [...g, l], h > u)
|
|
4820
|
+
return "...";
|
|
4821
|
+
if (s.has(l))
|
|
4822
|
+
return s.get(l);
|
|
4823
|
+
if (l instanceof Array)
|
|
4824
|
+
return l.map((m) => a(m, ++h, g));
|
|
4825
|
+
if (l instanceof Date)
|
|
4826
|
+
return { __date__: { value: l.toISOString() } };
|
|
4827
|
+
if (l instanceof Error) {
|
|
4828
|
+
let { name: m, message: p, stack: d } = l;
|
|
4829
|
+
return { __error__: { name: m, message: p, stack: d } };
|
|
4830
|
+
}
|
|
4831
|
+
if (l instanceof RegExp) {
|
|
4832
|
+
let { flags: m, source: p } = l;
|
|
4833
|
+
return { __regexp__: { flags: m, source: p } };
|
|
4834
|
+
}
|
|
4835
|
+
if (l instanceof V.window?.HTMLElement) {
|
|
4836
|
+
let { prefix: m, localName: p, id: d, classList: S, innerText: A } = l, T = Array.from(S);
|
|
4837
|
+
return { __element__: { prefix: m, localName: p, id: d, classNames: T, innerText: A } };
|
|
4838
|
+
}
|
|
4839
|
+
return typeof l == "function" ? {
|
|
4840
|
+
__function__: { name: "getMockName" in l ? l.getMockName() : l.name }
|
|
4841
|
+
} : typeof l == "symbol" ? { __symbol__: { description: l.description } } : typeof l == "object" && l?.constructor?.name && l?.constructor?.
|
|
4842
|
+
name !== "Object" ? { __class__: { name: l.constructor.name } } : Object.prototype.toString.call(l) === "[object Object]" ? Object.fromEntries(
|
|
4843
|
+
Object.entries(l).map(([m, p]) => [m, a(p, ++h, g)])
|
|
4844
|
+
) : l;
|
|
4845
|
+
}, "serializeValues"), f = {
|
|
4846
|
+
...n,
|
|
4847
|
+
args: n.args.map((l) => a(l, 0, []))
|
|
4848
|
+
};
|
|
4849
|
+
n.path.forEach((l) => {
|
|
4850
|
+
l?.__callId__ && this.setState(n.storyId, ({ chainedCallIds: h }) => ({
|
|
4851
|
+
chainedCallIds: new Set(Array.from(h).concat(l.__callId__))
|
|
4852
|
+
}));
|
|
4853
|
+
});
|
|
4854
|
+
let y = /* @__PURE__ */ i((l) => {
|
|
4855
|
+
if (l instanceof Error) {
|
|
4856
|
+
let { name: h, message: g, stack: m, callId: p = n.id } = l, {
|
|
4857
|
+
showDiff: d = void 0,
|
|
4858
|
+
diff: S = void 0,
|
|
4859
|
+
actual: A = void 0,
|
|
4860
|
+
expected: T = void 0
|
|
4861
|
+
} = l.name === "AssertionError" ? pn(l) : l, b = { name: h, message: g, stack: m, callId: p, showDiff: d, diff: S, actual: A, expected: T };
|
|
4862
|
+
if (this.update({ ...f, status: "error", exception: b }), this.setState(n.storyId, (E) => ({
|
|
4863
|
+
callRefsByResult: new Map([
|
|
4864
|
+
...Array.from(E.callRefsByResult.entries()),
|
|
4865
|
+
[l, { __callId__: n.id, retain: n.retain }]
|
|
4866
|
+
])
|
|
4867
|
+
})), n.ancestors?.length)
|
|
4868
|
+
throw Object.prototype.hasOwnProperty.call(l, "callId") || Object.defineProperty(l, "callId", { value: n.id }), l;
|
|
4869
|
+
}
|
|
4870
|
+
throw l;
|
|
4871
|
+
}, "handleException");
|
|
4872
|
+
try {
|
|
4873
|
+
if (c === "played" && !n.retain)
|
|
4874
|
+
throw Ip;
|
|
4875
|
+
let h = (o.getArgs ? o.getArgs(n, this.getState(n.storyId)) : n.args).map((m) => typeof m != "function" || Object.keys(m).length ? m :
|
|
4876
|
+
(...p) => {
|
|
4877
|
+
let { cursor: d, ancestors: S } = this.getState(n.storyId);
|
|
4878
|
+
this.setState(n.storyId, { cursor: 0, ancestors: [...S, n.id] });
|
|
4879
|
+
let A = /* @__PURE__ */ i(() => this.setState(n.storyId, { cursor: d, ancestors: S }), "restore"), T = !1;
|
|
4880
|
+
try {
|
|
4881
|
+
let b = m(...p);
|
|
4882
|
+
return b instanceof Promise ? (T = !0, b.finally(A)) : b;
|
|
4883
|
+
} finally {
|
|
4884
|
+
T || A();
|
|
4885
|
+
}
|
|
4886
|
+
}), g = t.apply(r, h);
|
|
4887
|
+
return g && ["object", "function", "symbol"].includes(typeof g) && this.setState(n.storyId, (m) => ({
|
|
4888
|
+
callRefsByResult: new Map([
|
|
4889
|
+
...Array.from(m.callRefsByResult.entries()),
|
|
4890
|
+
[g, { __callId__: n.id, retain: n.retain }]
|
|
4891
|
+
])
|
|
4892
|
+
})), this.update({
|
|
4893
|
+
...f,
|
|
4894
|
+
status: g instanceof Promise ? "active" : "done"
|
|
4895
|
+
}), g instanceof Promise ? g.then((m) => (this.update({ ...f, status: "done" }), m), y) : g;
|
|
4896
|
+
} catch (l) {
|
|
4897
|
+
return y(l);
|
|
4898
|
+
}
|
|
4899
|
+
}
|
|
4900
|
+
// Sends the call info to the manager and synchronizes the log.
|
|
4901
|
+
update(t) {
|
|
4902
|
+
this.channel?.emit(fe.CALL, t), this.setState(t.storyId, ({ calls: r }) => {
|
|
4903
|
+
let n = r.concat(t).reduce((o, s) => Object.assign(o, { [s.id]: s }), {});
|
|
4904
|
+
return {
|
|
4905
|
+
// Calls are sorted to ensure parent calls always come before calls in their callback.
|
|
4906
|
+
calls: Object.values(n).sort(
|
|
4907
|
+
(o, s) => o.id.localeCompare(s.id, void 0, { numeric: !0 })
|
|
4908
|
+
)
|
|
4909
|
+
};
|
|
4910
|
+
}), this.sync(t.storyId);
|
|
4911
|
+
}
|
|
4912
|
+
// Builds a log of interceptable calls and control states and sends it to the manager.
|
|
4913
|
+
// Uses a 0ms debounce because this might get called many times in one tick.
|
|
4914
|
+
sync(t) {
|
|
4915
|
+
let r = /* @__PURE__ */ i(() => {
|
|
4916
|
+
let { isLocked: n, isPlaying: o } = this.getState(t), s = this.getLog(t), c = s.filter(({ ancestors: l }) => !l.length).find((l) => l.
|
|
4917
|
+
status === "waiting")?.callId, u = s.some((l) => l.status === "active");
|
|
4918
|
+
if (n || u || s.length === 0) {
|
|
4919
|
+
let l = { controlStates: Sc, logItems: s };
|
|
4920
|
+
this.channel?.emit(fe.SYNC, l);
|
|
4921
|
+
return;
|
|
4922
|
+
}
|
|
4923
|
+
let a = s.some(
|
|
4924
|
+
(l) => l.status === "done" || l.status === "error"
|
|
4925
|
+
), y = { controlStates: {
|
|
4926
|
+
start: a,
|
|
4927
|
+
back: a,
|
|
4928
|
+
goto: !0,
|
|
4929
|
+
next: o,
|
|
4930
|
+
end: o
|
|
4931
|
+
}, logItems: s, pausedAt: c };
|
|
4932
|
+
this.channel?.emit(fe.SYNC, y);
|
|
4933
|
+
}, "synchronize");
|
|
4934
|
+
this.setState(t, ({ syncTimeout: n }) => (clearTimeout(n), { syncTimeout: setTimeout(r, 0) }));
|
|
4935
|
+
}
|
|
4936
|
+
};
|
|
4937
|
+
i(mn, "Instrumenter");
|
|
4938
|
+
var gn = mn;
|
|
4939
|
+
function xp(e, t = {}) {
|
|
4940
|
+
try {
|
|
4941
|
+
let r = !1, n = !1;
|
|
4942
|
+
return V.window?.location?.search?.includes("instrument=true") ? r = !0 : V.window?.location?.search?.includes("instrument=false") && (n =
|
|
4943
|
+
!0), V.window?.parent === V.window && !r || n ? e : (V.window && !V.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ && (V.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ =
|
|
4944
|
+
new gn()), (V.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e, t));
|
|
4945
|
+
} catch (r) {
|
|
4946
|
+
return Cp.warn(r), e;
|
|
4947
|
+
}
|
|
4948
|
+
}
|
|
4949
|
+
i(xp, "instrument");
|
|
4950
|
+
function vp(e, t) {
|
|
4951
|
+
let r = e;
|
|
4952
|
+
for (; r != null; ) {
|
|
4953
|
+
let n = Object.getOwnPropertyDescriptor(r, t);
|
|
4954
|
+
if (n)
|
|
4955
|
+
return n;
|
|
4956
|
+
r = Object.getPrototypeOf(r);
|
|
4957
|
+
}
|
|
4958
|
+
}
|
|
4959
|
+
i(vp, "getPropertyDescriptor");
|
|
4960
|
+
export {
|
|
4961
|
+
Pp as CallStates,
|
|
4962
|
+
fe as EVENTS,
|
|
4963
|
+
xp as instrument
|
|
4964
|
+
};
|