storybook 9.0.0-alpha.2 → 9.0.0-alpha.20
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 +1 -1
- package/assets/docs/addon-backgrounds.gif +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/highlight.png +0 -0
- package/assets/docs/viewport.png +0 -0
- package/bin/index.cjs +2 -2
- package/dist/actions/decorator.d.ts +6 -0
- package/dist/actions/decorator.js +138 -0
- package/dist/actions/index.cjs +126 -0
- package/dist/actions/index.d.ts +102 -0
- package/dist/actions/index.js +111 -0
- package/dist/actions/preview.cjs +164 -0
- package/dist/actions/preview.d.ts +54 -0
- package/dist/actions/preview.js +155 -0
- package/dist/backgrounds/index.cjs +148 -0
- package/dist/backgrounds/index.d.ts +91 -0
- package/dist/backgrounds/index.js +130 -0
- package/dist/backgrounds/preview.cjs +143 -0
- package/dist/backgrounds/preview.d.ts +54 -0
- package/dist/backgrounds/preview.js +127 -0
- package/dist/bin/index.cjs +66 -89
- package/dist/bin/index.js +62 -85
- package/dist/builder-manager/index.cjs +523 -540
- package/dist/builder-manager/index.js +544 -561
- package/dist/channels/index.cjs +1026 -981
- package/dist/channels/index.js +1194 -1165
- package/dist/cli/bin/index.cjs +483 -483
- package/dist/cli/bin/index.js +495 -495
- package/dist/cli/index.cjs +2279 -2295
- package/dist/cli/index.d.ts +4 -8
- package/dist/cli/index.js +740 -756
- package/dist/client-logger/index.cjs +56 -88
- package/dist/client-logger/index.js +41 -47
- package/dist/common/index.cjs +2496 -2480
- package/dist/common/index.d.ts +5 -29
- package/dist/common/index.js +2679 -2663
- 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/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 +11709 -20418
- package/dist/components/index.d.ts +94 -346
- package/dist/components/index.js +5827 -19157
- 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/preview.cjs +26 -0
- package/dist/controls/preview.d.ts +54 -0
- package/dist/controls/preview.js +9 -0
- package/dist/core-events/index.cjs +91 -106
- package/dist/core-events/index.d.ts +139 -104
- package/dist/core-events/index.js +79 -94
- package/dist/core-server/index.cjs +14413 -13924
- package/dist/core-server/index.d.ts +270 -3
- package/dist/core-server/index.js +14003 -13519
- package/dist/core-server/presets/common-manager.css +170 -0
- package/dist/core-server/presets/common-manager.js +12099 -17
- package/dist/core-server/presets/common-preset.cjs +2760 -2914
- package/dist/core-server/presets/common-preset.js +2852 -3007
- package/dist/csf/index.cjs +76 -120
- package/dist/csf/index.d.ts +2 -6
- package/dist/csf/index.js +69 -113
- package/dist/csf-tools/index.cjs +412 -403
- package/dist/csf-tools/index.d.ts +0 -4
- package/dist/csf-tools/index.js +410 -401
- package/dist/docs-tools/index.cjs +2569 -575
- package/dist/docs-tools/index.d.ts +2 -2
- package/dist/docs-tools/index.js +2557 -564
- package/dist/highlight/index.cjs +27 -0
- package/dist/highlight/index.d.ts +17 -0
- package/dist/highlight/index.js +7 -0
- package/dist/highlight/preview.cjs +81 -0
- package/dist/highlight/preview.d.ts +54 -0
- package/dist/highlight/preview.js +67 -0
- package/dist/instrumenter/index.cjs +2207 -2342
- package/dist/instrumenter/index.d.ts +8 -7
- package/dist/instrumenter/index.js +2438 -2620
- package/dist/manager/globals-module-info.cjs +290 -151
- package/dist/manager/globals-module-info.d.ts +1 -1
- package/dist/manager/globals-module-info.js +274 -135
- package/dist/manager/globals-runtime.js +60016 -28331
- package/dist/manager/globals.cjs +23 -19
- package/dist/manager/globals.d.ts +8 -5
- package/dist/manager/globals.js +10 -6
- package/dist/manager/runtime.js +4645 -3946
- package/dist/manager-api/index.cjs +4228 -3833
- package/dist/manager-api/index.d.ts +398 -102
- package/dist/manager-api/index.js +3676 -3291
- package/dist/manager-errors.d.ts +25 -1
- package/dist/manager-errors.js +42 -26
- package/dist/measure/index.cjs +474 -0
- package/dist/measure/index.d.ts +66 -0
- package/dist/measure/index.js +462 -0
- package/dist/measure/preview.cjs +464 -0
- package/dist/measure/preview.d.ts +59 -0
- package/dist/measure/preview.js +448 -0
- package/dist/outline/index.cjs +528 -0
- package/dist/outline/index.d.ts +66 -0
- package/dist/outline/index.js +500 -0
- package/dist/outline/preview.cjs +518 -0
- package/dist/outline/preview.d.ts +59 -0
- package/dist/outline/preview.js +486 -0
- package/dist/preview/globals.cjs +21 -17
- package/dist/preview/globals.d.ts +4 -1
- package/dist/preview/globals.js +6 -2
- package/dist/preview/runtime.js +45697 -6618
- package/dist/preview-api/index.cjs +1363 -1898
- package/dist/preview-api/index.d.ts +449 -498
- package/dist/preview-api/index.js +1622 -2095
- package/dist/preview-errors.cjs +99 -82
- package/dist/preview-errors.d.ts +25 -1
- package/dist/preview-errors.js +110 -94
- package/dist/router/index.cjs +847 -871
- package/dist/router/index.js +193 -199
- package/dist/server-errors.cjs +156 -125
- package/dist/server-errors.d.ts +28 -2
- package/dist/server-errors.js +150 -119
- package/dist/telemetry/index.cjs +1050 -1977
- package/dist/telemetry/index.d.ts +26 -5
- package/dist/telemetry/index.js +1085 -2008
- package/dist/test/index.cjs +35686 -0
- package/dist/test/index.d.ts +186 -0
- package/dist/test/index.js +33752 -0
- package/dist/test/preview.cjs +15870 -0
- package/dist/test/preview.d.ts +54 -0
- package/dist/test/preview.js +14441 -0
- package/dist/test/spy.cjs +258 -0
- package/dist/test/spy.d.ts +66 -0
- package/dist/test/spy.js +240 -0
- package/dist/theming/create.cjs +79 -2269
- package/dist/theming/create.js +67 -841
- package/dist/theming/index.cjs +1065 -3232
- package/dist/theming/index.js +951 -1719
- package/dist/types/index.cjs +11 -12
- package/dist/types/index.d.ts +612 -157
- package/dist/types/index.js +1 -2
- 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/preview.cjs +35 -0
- package/dist/viewport/preview.d.ts +68 -0
- package/dist/viewport/preview.js +19 -0
- package/package.json +359 -12
package/dist/channels/index.cjs
CHANGED
|
@@ -1,348 +1,420 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
2
|
+
var Mt = Object.create;
|
|
3
|
+
var Z = Object.defineProperty;
|
|
4
|
+
var Ut = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var Gt = Object.getOwnPropertyNames;
|
|
6
|
+
var kt = Object.getPrototypeOf, Wt = Object.prototype.hasOwnProperty;
|
|
7
|
+
var s = (t, e) => Z(t, "name", { value: e, configurable: !0 });
|
|
8
|
+
var ke = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports), qt = (t, e) => {
|
|
9
9
|
for (var r in e)
|
|
10
|
-
|
|
11
|
-
},
|
|
10
|
+
Z(t, r, { get: e[r], enumerable: !0 });
|
|
11
|
+
}, We = (t, e, r, n) => {
|
|
12
12
|
if (e && typeof e == "object" || typeof e == "function")
|
|
13
|
-
for (let
|
|
14
|
-
|
|
13
|
+
for (let o of Gt(e))
|
|
14
|
+
!Wt.call(t, o) && o !== r && Z(t, o, { get: () => e[o], enumerable: !(n = Ut(e, o)) || n.enumerable });
|
|
15
15
|
return t;
|
|
16
16
|
};
|
|
17
|
-
var
|
|
17
|
+
var ee = (t, e, r) => (r = t != null ? Mt(kt(t)) : {}, We(
|
|
18
18
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
19
19
|
// file that has been converted to a CommonJS file using a Babel-
|
|
20
20
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
21
21
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
22
|
-
e || !t || !t.__esModule ?
|
|
22
|
+
e || !t || !t.__esModule ? Z(r, "default", { value: t, enumerable: !0 }) : r,
|
|
23
23
|
t
|
|
24
|
-
)),
|
|
25
|
-
|
|
26
|
-
// ../node_modules/@storybook/global/dist/index.js
|
|
27
|
-
var te = F((pt, de) => {
|
|
28
|
-
"use strict";
|
|
29
|
-
var ne = Object.defineProperty, He = Object.getOwnPropertyDescriptor, We = Object.getOwnPropertyNames, qe = Object.prototype.hasOwnProperty,
|
|
30
|
-
Je = /* @__PURE__ */ o((t, e) => {
|
|
31
|
-
for (var r in e)
|
|
32
|
-
ne(t, r, { get: e[r], enumerable: !0 });
|
|
33
|
-
}, "__export"), ze = /* @__PURE__ */ o((t, e, r, n) => {
|
|
34
|
-
if (e && typeof e == "object" || typeof e == "function")
|
|
35
|
-
for (let a of We(e))
|
|
36
|
-
!qe.call(t, a) && a !== r && ne(t, a, { get: /* @__PURE__ */ o(() => e[a], "get"), enumerable: !(n = He(e, a)) || n.enumerable });
|
|
37
|
-
return t;
|
|
38
|
-
}, "__copyProps"), Be = /* @__PURE__ */ o((t) => ze(ne({}, "__esModule", { value: !0 }), t), "__toCommonJS"), ye = {};
|
|
39
|
-
Je(ye, {
|
|
40
|
-
global: /* @__PURE__ */ o(() => Ve, "global")
|
|
41
|
-
});
|
|
42
|
-
de.exports = Be(ye);
|
|
43
|
-
var Ve = (() => {
|
|
44
|
-
let t;
|
|
45
|
-
return typeof window < "u" ? t = window : typeof globalThis < "u" ? t = globalThis : typeof global < "u" ? t = global : typeof self < "u" ?
|
|
46
|
-
t = self : t = {}, t;
|
|
47
|
-
})();
|
|
48
|
-
});
|
|
24
|
+
)), Bt = (t) => We(Z({}, "__esModule", { value: !0 }), t);
|
|
49
25
|
|
|
50
26
|
// ../node_modules/ts-dedent/dist/index.js
|
|
51
|
-
var
|
|
27
|
+
var Be = ke((te) => {
|
|
52
28
|
"use strict";
|
|
53
|
-
Object.defineProperty(
|
|
54
|
-
|
|
55
|
-
function
|
|
29
|
+
Object.defineProperty(te, "__esModule", { value: !0 });
|
|
30
|
+
te.dedent = void 0;
|
|
31
|
+
function qe(t) {
|
|
56
32
|
for (var e = [], r = 1; r < arguments.length; r++)
|
|
57
33
|
e[r - 1] = arguments[r];
|
|
58
34
|
var n = Array.from(typeof t == "string" ? [t] : t);
|
|
59
35
|
n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, "");
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
return
|
|
63
|
-
var
|
|
64
|
-
return (y = (
|
|
36
|
+
var o = n.reduce(function(c, i) {
|
|
37
|
+
var l = i.match(/\n([\t ]+|(?!\s).)/g);
|
|
38
|
+
return l ? c.concat(l.map(function(d) {
|
|
39
|
+
var u, y;
|
|
40
|
+
return (y = (u = d.match(/[\t ]/g)) === null || u === void 0 ? void 0 : u.length) !== null && y !== void 0 ? y : 0;
|
|
65
41
|
})) : c;
|
|
66
42
|
}, []);
|
|
67
|
-
if (
|
|
68
|
-
var
|
|
69
|
-
[ ]{` + Math.min.apply(Math,
|
|
43
|
+
if (o.length) {
|
|
44
|
+
var p = new RegExp(`
|
|
45
|
+
[ ]{` + Math.min.apply(Math, o) + "}", "g");
|
|
70
46
|
n = n.map(function(c) {
|
|
71
|
-
return c.replace(
|
|
47
|
+
return c.replace(p, `
|
|
72
48
|
`);
|
|
73
49
|
});
|
|
74
50
|
}
|
|
75
51
|
n[0] = n[0].replace(/^\r?\n/, "");
|
|
76
|
-
var
|
|
52
|
+
var a = n[0];
|
|
77
53
|
return e.forEach(function(c, i) {
|
|
78
|
-
var
|
|
54
|
+
var l = a.match(/(?:^|\n)( *)$/), d = l ? l[1] : "", u = c;
|
|
79
55
|
typeof c == "string" && c.includes(`
|
|
80
|
-
`) && (
|
|
81
|
-
`).map(function(y,
|
|
82
|
-
return
|
|
56
|
+
`) && (u = String(c).split(`
|
|
57
|
+
`).map(function(y, g) {
|
|
58
|
+
return g === 0 ? y : "" + d + y;
|
|
83
59
|
}).join(`
|
|
84
|
-
`)),
|
|
85
|
-
}),
|
|
86
|
-
}
|
|
87
|
-
o(ge, "dedent");
|
|
88
|
-
B.dedent = ge;
|
|
89
|
-
B.default = ge;
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
// ../node_modules/map-or-similar/src/similar.js
|
|
93
|
-
var _e = F((bt, ve) => {
|
|
94
|
-
function x() {
|
|
95
|
-
return this.list = [], this.lastItem = void 0, this.size = 0, this;
|
|
96
|
-
}
|
|
97
|
-
o(x, "Similar");
|
|
98
|
-
x.prototype.get = function(t) {
|
|
99
|
-
var e;
|
|
100
|
-
if (this.lastItem && this.isEqual(this.lastItem.key, t))
|
|
101
|
-
return this.lastItem.val;
|
|
102
|
-
if (e = this.indexOf(t), e >= 0)
|
|
103
|
-
return this.lastItem = this.list[e], this.list[e].val;
|
|
104
|
-
};
|
|
105
|
-
x.prototype.set = function(t, e) {
|
|
106
|
-
var r;
|
|
107
|
-
return this.lastItem && this.isEqual(this.lastItem.key, t) ? (this.lastItem.val = e, this) : (r = this.indexOf(t), r >= 0 ? (this.lastItem =
|
|
108
|
-
this.list[r], this.list[r].val = e, this) : (this.lastItem = { key: t, val: e }, this.list.push(this.lastItem), this.size++, this));
|
|
109
|
-
};
|
|
110
|
-
x.prototype.delete = function(t) {
|
|
111
|
-
var e;
|
|
112
|
-
if (this.lastItem && this.isEqual(this.lastItem.key, t) && (this.lastItem = void 0), e = this.indexOf(t), e >= 0)
|
|
113
|
-
return this.size--, this.list.splice(e, 1)[0];
|
|
114
|
-
};
|
|
115
|
-
x.prototype.has = function(t) {
|
|
116
|
-
var e;
|
|
117
|
-
return this.lastItem && this.isEqual(this.lastItem.key, t) ? !0 : (e = this.indexOf(t), e >= 0 ? (this.lastItem = this.list[e], !0) : !1);
|
|
118
|
-
};
|
|
119
|
-
x.prototype.forEach = function(t, e) {
|
|
120
|
-
var r;
|
|
121
|
-
for (r = 0; r < this.size; r++)
|
|
122
|
-
t.call(e || this, this.list[r].val, this.list[r].key, this);
|
|
123
|
-
};
|
|
124
|
-
x.prototype.indexOf = function(t) {
|
|
125
|
-
var e;
|
|
126
|
-
for (e = 0; e < this.size; e++)
|
|
127
|
-
if (this.isEqual(this.list[e].key, t))
|
|
128
|
-
return e;
|
|
129
|
-
return -1;
|
|
130
|
-
};
|
|
131
|
-
x.prototype.isEqual = function(t, e) {
|
|
132
|
-
return t === e || t !== t && e !== e;
|
|
133
|
-
};
|
|
134
|
-
ve.exports = x;
|
|
135
|
-
});
|
|
136
|
-
|
|
137
|
-
// ../node_modules/map-or-similar/src/map-or-similar.js
|
|
138
|
-
var Ee = F((St, be) => {
|
|
139
|
-
be.exports = function(t) {
|
|
140
|
-
if (typeof Map != "function" || t) {
|
|
141
|
-
var e = _e();
|
|
142
|
-
return new e();
|
|
143
|
-
} else
|
|
144
|
-
return /* @__PURE__ */ new Map();
|
|
145
|
-
};
|
|
146
|
-
});
|
|
147
|
-
|
|
148
|
-
// ../node_modules/memoizerific/src/memoizerific.js
|
|
149
|
-
var Ce = F((Tt, Te) => {
|
|
150
|
-
var Se = Ee();
|
|
151
|
-
Te.exports = function(t) {
|
|
152
|
-
var e = new Se(process.env.FORCE_SIMILAR_INSTEAD_OF_MAP === "true"), r = [];
|
|
153
|
-
return function(n) {
|
|
154
|
-
var a = /* @__PURE__ */ o(function() {
|
|
155
|
-
var s = e, l, c, i = arguments.length - 1, h = Array(i + 1), u = !0, p;
|
|
156
|
-
if ((a.numArgs || a.numArgs === 0) && a.numArgs !== i + 1)
|
|
157
|
-
throw new Error("Memoizerific functions should always be called with the same number of arguments");
|
|
158
|
-
for (p = 0; p < i; p++) {
|
|
159
|
-
if (h[p] = {
|
|
160
|
-
cacheItem: s,
|
|
161
|
-
arg: arguments[p]
|
|
162
|
-
}, s.has(arguments[p])) {
|
|
163
|
-
s = s.get(arguments[p]);
|
|
164
|
-
continue;
|
|
165
|
-
}
|
|
166
|
-
u = !1, l = new Se(process.env.FORCE_SIMILAR_INSTEAD_OF_MAP === "true"), s.set(arguments[p], l), s = l;
|
|
167
|
-
}
|
|
168
|
-
return u && (s.has(arguments[i]) ? c = s.get(arguments[i]) : u = !1), u || (c = n.apply(null, arguments), s.set(arguments[i], c)), t >
|
|
169
|
-
0 && (h[i] = {
|
|
170
|
-
cacheItem: s,
|
|
171
|
-
arg: arguments[i]
|
|
172
|
-
}, u ? Ze(r, h) : r.push(h), r.length > t && Qe(r.shift())), a.wasMemoized = u, a.numArgs = i + 1, c;
|
|
173
|
-
}, "memoizerific");
|
|
174
|
-
return a.limit = t, a.wasMemoized = !1, a.cache = e, a.lru = r, a;
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
function Ze(t, e) {
|
|
178
|
-
var r = t.length, n = e.length, a, s, l;
|
|
179
|
-
for (s = 0; s < r; s++) {
|
|
180
|
-
for (a = !0, l = 0; l < n; l++)
|
|
181
|
-
if (!et(t[s][l].arg, e[l].arg)) {
|
|
182
|
-
a = !1;
|
|
183
|
-
break;
|
|
184
|
-
}
|
|
185
|
-
if (a)
|
|
186
|
-
break;
|
|
187
|
-
}
|
|
188
|
-
t.push(t.splice(s, 1)[0]);
|
|
189
|
-
}
|
|
190
|
-
o(Ze, "moveToMostRecentLru");
|
|
191
|
-
function Qe(t) {
|
|
192
|
-
var e = t.length, r = t[e - 1], n, a;
|
|
193
|
-
for (r.cacheItem.delete(r.arg), a = e - 2; a >= 0 && (r = t[a], n = r.cacheItem.get(r.arg), !n || !n.size); a--)
|
|
194
|
-
r.cacheItem.delete(r.arg);
|
|
60
|
+
`)), a += u + n[i + 1];
|
|
61
|
+
}), a;
|
|
195
62
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
o(et, "isEqual");
|
|
63
|
+
s(qe, "dedent");
|
|
64
|
+
te.dedent = qe;
|
|
65
|
+
te.default = qe;
|
|
201
66
|
});
|
|
202
67
|
|
|
203
68
|
// ../node_modules/telejson/dist/index.js
|
|
204
|
-
var
|
|
69
|
+
var Ne = ke((ms, Et) => {
|
|
205
70
|
"use strict";
|
|
206
|
-
var
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
}, "__require"), "__commonJS"), __export = /* @__PURE__ */ o((t, e) => {
|
|
71
|
+
var zt = Object.create, fe = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, Ke = Object.getOwnPropertyNames, Kt = Object.getPrototypeOf,
|
|
72
|
+
Xt = Object.prototype.hasOwnProperty, f = /* @__PURE__ */ s((t, e) => /* @__PURE__ */ s(function() {
|
|
73
|
+
return e || (0, t[Ke(t)[0]])((e = { exports: {} }).exports, e), e.exports;
|
|
74
|
+
}, "__require"), "__commonJS"), Qt = /* @__PURE__ */ s((t, e) => {
|
|
211
75
|
for (var r in e)
|
|
212
|
-
|
|
213
|
-
}, "__export"),
|
|
76
|
+
fe(t, r, { get: e[r], enumerable: !0 });
|
|
77
|
+
}, "__export"), Xe = /* @__PURE__ */ s((t, e, r, n) => {
|
|
214
78
|
if (e && typeof e == "object" || typeof e == "function")
|
|
215
|
-
for (let
|
|
216
|
-
!
|
|
217
|
-
e, a)) || n.enumerable });
|
|
79
|
+
for (let o of Ke(e))
|
|
80
|
+
!Xt.call(t, o) && o !== r && fe(t, o, { get: /* @__PURE__ */ s(() => e[o], "get"), enumerable: !(n = Yt(e, o)) || n.enumerable });
|
|
218
81
|
return t;
|
|
219
|
-
}, "__copyProps"),
|
|
220
|
-
|
|
82
|
+
}, "__copyProps"), _e = /* @__PURE__ */ s((t, e, r) => (r = t != null ? zt(Kt(t)) : {}, Xe(
|
|
83
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
84
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
85
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
86
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
87
|
+
e || !t || !t.__esModule ? fe(r, "default", { value: t, enumerable: !0 }) : r,
|
|
221
88
|
t
|
|
222
|
-
)), "__toESM"),
|
|
223
|
-
|
|
224
|
-
|
|
89
|
+
)), "__toESM"), Zt = /* @__PURE__ */ s((t) => Xe(fe({}, "__esModule", { value: !0 }), t), "__toCommonJS"), Qe = f({
|
|
90
|
+
"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(t, e) {
|
|
91
|
+
"use strict";
|
|
92
|
+
e.exports = Object;
|
|
93
|
+
}
|
|
94
|
+
}), er = f({
|
|
95
|
+
"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(t, e) {
|
|
96
|
+
"use strict";
|
|
97
|
+
e.exports = Error;
|
|
98
|
+
}
|
|
99
|
+
}), tr = f({
|
|
100
|
+
"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(t, e) {
|
|
101
|
+
"use strict";
|
|
102
|
+
e.exports = EvalError;
|
|
103
|
+
}
|
|
104
|
+
}), rr = f({
|
|
105
|
+
"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(t, e) {
|
|
225
106
|
"use strict";
|
|
226
|
-
e.exports =
|
|
107
|
+
e.exports = RangeError;
|
|
108
|
+
}
|
|
109
|
+
}), nr = f({
|
|
110
|
+
"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(t, e) {
|
|
111
|
+
"use strict";
|
|
112
|
+
e.exports = ReferenceError;
|
|
113
|
+
}
|
|
114
|
+
}), or = f({
|
|
115
|
+
"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(t, e) {
|
|
116
|
+
"use strict";
|
|
117
|
+
e.exports = SyntaxError;
|
|
118
|
+
}
|
|
119
|
+
}), be = f({
|
|
120
|
+
"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(t, e) {
|
|
121
|
+
"use strict";
|
|
122
|
+
e.exports = TypeError;
|
|
123
|
+
}
|
|
124
|
+
}), sr = f({
|
|
125
|
+
"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(t, e) {
|
|
126
|
+
"use strict";
|
|
127
|
+
e.exports = URIError;
|
|
128
|
+
}
|
|
129
|
+
}), ir = f({
|
|
130
|
+
"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(t, e) {
|
|
131
|
+
"use strict";
|
|
132
|
+
e.exports = Math.abs;
|
|
133
|
+
}
|
|
134
|
+
}), ar = f({
|
|
135
|
+
"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(t, e) {
|
|
136
|
+
"use strict";
|
|
137
|
+
e.exports = Math.floor;
|
|
138
|
+
}
|
|
139
|
+
}), pr = f({
|
|
140
|
+
"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(t, e) {
|
|
141
|
+
"use strict";
|
|
142
|
+
e.exports = Math.max;
|
|
143
|
+
}
|
|
144
|
+
}), cr = f({
|
|
145
|
+
"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(t, e) {
|
|
146
|
+
"use strict";
|
|
147
|
+
e.exports = Math.min;
|
|
148
|
+
}
|
|
149
|
+
}), lr = f({
|
|
150
|
+
"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(t, e) {
|
|
151
|
+
"use strict";
|
|
152
|
+
e.exports = Math.pow;
|
|
153
|
+
}
|
|
154
|
+
}), ur = f({
|
|
155
|
+
"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(t, e) {
|
|
156
|
+
"use strict";
|
|
157
|
+
e.exports = Math.round;
|
|
158
|
+
}
|
|
159
|
+
}), fr = f({
|
|
160
|
+
"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(t, e) {
|
|
161
|
+
"use strict";
|
|
162
|
+
e.exports = Number.isNaN || /* @__PURE__ */ s(function(n) {
|
|
163
|
+
return n !== n;
|
|
164
|
+
}, "isNaN2");
|
|
165
|
+
}
|
|
166
|
+
}), dr = f({
|
|
167
|
+
"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(t, e) {
|
|
168
|
+
"use strict";
|
|
169
|
+
var r = fr();
|
|
170
|
+
e.exports = /* @__PURE__ */ s(function(o) {
|
|
171
|
+
return r(o) || o === 0 ? o : o < 0 ? -1 : 1;
|
|
172
|
+
}, "sign");
|
|
173
|
+
}
|
|
174
|
+
}), yr = f({
|
|
175
|
+
"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(t, e) {
|
|
176
|
+
"use strict";
|
|
177
|
+
e.exports = Object.getOwnPropertyDescriptor;
|
|
178
|
+
}
|
|
179
|
+
}), Se = f({
|
|
180
|
+
"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(t, e) {
|
|
181
|
+
"use strict";
|
|
182
|
+
var r = yr();
|
|
183
|
+
if (r)
|
|
184
|
+
try {
|
|
185
|
+
r([], "length");
|
|
186
|
+
} catch {
|
|
187
|
+
r = null;
|
|
188
|
+
}
|
|
189
|
+
e.exports = r;
|
|
190
|
+
}
|
|
191
|
+
}), hr = f({
|
|
192
|
+
"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(t, e) {
|
|
193
|
+
"use strict";
|
|
194
|
+
var r = Object.defineProperty || !1;
|
|
195
|
+
if (r)
|
|
196
|
+
try {
|
|
197
|
+
r({}, "a", { value: 1 });
|
|
198
|
+
} catch {
|
|
199
|
+
r = !1;
|
|
200
|
+
}
|
|
201
|
+
e.exports = r;
|
|
202
|
+
}
|
|
203
|
+
}), Ze = f({
|
|
204
|
+
"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(t, e) {
|
|
205
|
+
"use strict";
|
|
206
|
+
e.exports = /* @__PURE__ */ s(function() {
|
|
227
207
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
228
208
|
return !1;
|
|
229
209
|
if (typeof Symbol.iterator == "symbol")
|
|
230
210
|
return !0;
|
|
231
|
-
var n = {},
|
|
232
|
-
if (typeof
|
|
211
|
+
var n = {}, o = Symbol("test"), p = Object(o);
|
|
212
|
+
if (typeof o == "string" || Object.prototype.toString.call(o) !== "[object Symbol]" || Object.prototype.toString.call(p) !== "[objec\
|
|
233
213
|
t Symbol]")
|
|
234
214
|
return !1;
|
|
235
|
-
var
|
|
236
|
-
n[
|
|
237
|
-
for (
|
|
215
|
+
var a = 42;
|
|
216
|
+
n[o] = a;
|
|
217
|
+
for (var c in n)
|
|
238
218
|
return !1;
|
|
239
219
|
if (typeof Object.keys == "function" && Object.keys(n).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(
|
|
240
220
|
n).length !== 0)
|
|
241
221
|
return !1;
|
|
242
|
-
var
|
|
243
|
-
if (
|
|
222
|
+
var i = Object.getOwnPropertySymbols(n);
|
|
223
|
+
if (i.length !== 1 || i[0] !== o || !Object.prototype.propertyIsEnumerable.call(n, o))
|
|
244
224
|
return !1;
|
|
245
225
|
if (typeof Object.getOwnPropertyDescriptor == "function") {
|
|
246
|
-
var
|
|
247
|
-
|
|
226
|
+
var l = (
|
|
227
|
+
/** @type {PropertyDescriptor} */
|
|
228
|
+
Object.getOwnPropertyDescriptor(n, o)
|
|
229
|
+
);
|
|
230
|
+
if (l.value !== a || l.enumerable !== !0)
|
|
248
231
|
return !1;
|
|
249
232
|
}
|
|
250
233
|
return !0;
|
|
251
234
|
}, "hasSymbols");
|
|
252
235
|
}
|
|
253
|
-
}),
|
|
254
|
-
"node_modules/has-symbols/index.js"(t, e) {
|
|
236
|
+
}), et = f({
|
|
237
|
+
"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(t, e) {
|
|
255
238
|
"use strict";
|
|
256
|
-
var r = typeof Symbol < "u" && Symbol, n =
|
|
257
|
-
e.exports = /* @__PURE__ */
|
|
239
|
+
var r = typeof Symbol < "u" && Symbol, n = Ze();
|
|
240
|
+
e.exports = /* @__PURE__ */ s(function() {
|
|
258
241
|
return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 :
|
|
259
242
|
n();
|
|
260
243
|
}, "hasNativeSymbols");
|
|
261
244
|
}
|
|
262
|
-
}),
|
|
263
|
-
"node_modules/
|
|
245
|
+
}), tt = f({
|
|
246
|
+
"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(t, e) {
|
|
247
|
+
"use strict";
|
|
248
|
+
e.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
|
|
249
|
+
}
|
|
250
|
+
}), rt = f({
|
|
251
|
+
"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(t, e) {
|
|
252
|
+
"use strict";
|
|
253
|
+
var r = Qe();
|
|
254
|
+
e.exports = r.getPrototypeOf || null;
|
|
255
|
+
}
|
|
256
|
+
}), gr = f({
|
|
257
|
+
"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(t, e) {
|
|
264
258
|
"use strict";
|
|
265
|
-
var r = "Function.prototype.bind called on incompatible ", n =
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
259
|
+
var r = "Function.prototype.bind called on incompatible ", n = Object.prototype.toString, o = Math.max, p = "[object Function]", a = /* @__PURE__ */ s(
|
|
260
|
+
function(d, u) {
|
|
261
|
+
for (var y = [], g = 0; g < d.length; g += 1)
|
|
262
|
+
y[g] = d[g];
|
|
263
|
+
for (var h = 0; h < u.length; h += 1)
|
|
264
|
+
y[h + d.length] = u[h];
|
|
265
|
+
return y;
|
|
266
|
+
}, "concatty2"), c = /* @__PURE__ */ s(function(d, u) {
|
|
267
|
+
for (var y = [], g = u || 0, h = 0; g < d.length; g += 1, h += 1)
|
|
268
|
+
y[h] = d[g];
|
|
269
|
+
return y;
|
|
270
|
+
}, "slicy2"), i = /* @__PURE__ */ s(function(l, d) {
|
|
271
|
+
for (var u = "", y = 0; y < l.length; y += 1)
|
|
272
|
+
u += l[y], y + 1 < l.length && (u += d);
|
|
273
|
+
return u;
|
|
274
|
+
}, "joiny");
|
|
275
|
+
e.exports = /* @__PURE__ */ s(function(d) {
|
|
276
|
+
var u = this;
|
|
277
|
+
if (typeof u != "function" || n.apply(u) !== p)
|
|
278
|
+
throw new TypeError(r + u);
|
|
279
|
+
for (var y = c(arguments, 1), g, h = /* @__PURE__ */ s(function() {
|
|
280
|
+
if (this instanceof g) {
|
|
281
|
+
var I = u.apply(
|
|
274
282
|
this,
|
|
275
|
-
|
|
283
|
+
a(y, arguments)
|
|
276
284
|
);
|
|
277
|
-
return Object(
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
}, "binder"),
|
|
284
|
-
|
|
285
|
-
if (
|
|
286
|
-
var
|
|
285
|
+
return Object(I) === I ? I : this;
|
|
286
|
+
}
|
|
287
|
+
return u.apply(
|
|
288
|
+
d,
|
|
289
|
+
a(y, arguments)
|
|
290
|
+
);
|
|
291
|
+
}, "binder"), C = o(0, u.length - y.length), w = [], A = 0; A < C; A++)
|
|
292
|
+
w[A] = "$" + A;
|
|
293
|
+
if (g = Function("binder", "return function (" + i(w, ",") + "){ return binder.apply(this,arguments); }")(h), u.prototype) {
|
|
294
|
+
var L = /* @__PURE__ */ s(function() {
|
|
287
295
|
}, "Empty2");
|
|
288
|
-
|
|
296
|
+
L.prototype = u.prototype, g.prototype = new L(), L.prototype = null;
|
|
289
297
|
}
|
|
290
|
-
return
|
|
298
|
+
return g;
|
|
291
299
|
}, "bind");
|
|
292
300
|
}
|
|
293
|
-
}),
|
|
294
|
-
"node_modules/function-bind/index.js"(t, e) {
|
|
301
|
+
}), de = f({
|
|
302
|
+
"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(t, e) {
|
|
295
303
|
"use strict";
|
|
296
|
-
var r =
|
|
304
|
+
var r = gr();
|
|
297
305
|
e.exports = Function.prototype.bind || r;
|
|
298
306
|
}
|
|
299
|
-
}),
|
|
300
|
-
"node_modules/
|
|
307
|
+
}), Te = f({
|
|
308
|
+
"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(t, e) {
|
|
301
309
|
"use strict";
|
|
302
|
-
|
|
303
|
-
e.exports = r.call(Function.call, Object.prototype.hasOwnProperty);
|
|
310
|
+
e.exports = Function.prototype.call;
|
|
304
311
|
}
|
|
305
|
-
}),
|
|
306
|
-
"node_modules/
|
|
312
|
+
}), nt = f({
|
|
313
|
+
"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(t, e) {
|
|
307
314
|
"use strict";
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
+
e.exports = Function.prototype.apply;
|
|
316
|
+
}
|
|
317
|
+
}), mr = f({
|
|
318
|
+
"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(t, e) {
|
|
319
|
+
"use strict";
|
|
320
|
+
e.exports = typeof Reflect < "u" && Reflect && Reflect.apply;
|
|
321
|
+
}
|
|
322
|
+
}), vr = f({
|
|
323
|
+
"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(t, e) {
|
|
324
|
+
"use strict";
|
|
325
|
+
var r = de(), n = nt(), o = Te(), p = mr();
|
|
326
|
+
e.exports = p || r.call(o, n);
|
|
327
|
+
}
|
|
328
|
+
}), ot = f({
|
|
329
|
+
"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(t, e) {
|
|
330
|
+
"use strict";
|
|
331
|
+
var r = de(), n = be(), o = Te(), p = vr();
|
|
332
|
+
e.exports = /* @__PURE__ */ s(function(c) {
|
|
333
|
+
if (c.length < 1 || typeof c[0] != "function")
|
|
334
|
+
throw new n("a function is required");
|
|
335
|
+
return p(r, o, c);
|
|
336
|
+
}, "callBindBasic");
|
|
337
|
+
}
|
|
338
|
+
}), Er = f({
|
|
339
|
+
"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(t, e) {
|
|
340
|
+
"use strict";
|
|
341
|
+
var r = ot(), n = Se(), o;
|
|
342
|
+
try {
|
|
343
|
+
o = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
344
|
+
[].__proto__ === Array.prototype;
|
|
345
|
+
} catch (i) {
|
|
346
|
+
if (!i || typeof i != "object" || !("code" in i) || i.code !== "ERR_PROTO_ACCESS")
|
|
347
|
+
throw i;
|
|
348
|
+
}
|
|
349
|
+
var p = !!o && n && n(
|
|
350
|
+
Object.prototype,
|
|
351
|
+
/** @type {keyof typeof Object.prototype} */
|
|
352
|
+
"__proto__"
|
|
353
|
+
), a = Object, c = a.getPrototypeOf;
|
|
354
|
+
e.exports = p && typeof p.get == "function" ? r([p.get]) : typeof c == "function" ? (
|
|
355
|
+
/** @type {import('./get')} */
|
|
356
|
+
/* @__PURE__ */ s(function(l) {
|
|
357
|
+
return c(l == null ? l : a(l));
|
|
358
|
+
}, "getDunder")
|
|
359
|
+
) : !1;
|
|
360
|
+
}
|
|
361
|
+
}), _r = f({
|
|
362
|
+
"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(t, e) {
|
|
363
|
+
"use strict";
|
|
364
|
+
var r = tt(), n = rt(), o = Er();
|
|
365
|
+
e.exports = r ? /* @__PURE__ */ s(function(a) {
|
|
366
|
+
return r(a);
|
|
367
|
+
}, "getProto") : n ? /* @__PURE__ */ s(function(a) {
|
|
368
|
+
if (!a || typeof a != "object" && typeof a != "function")
|
|
369
|
+
throw new TypeError("getProto: not an object");
|
|
370
|
+
return n(a);
|
|
371
|
+
}, "getProto") : o ? /* @__PURE__ */ s(function(a) {
|
|
372
|
+
return o(a);
|
|
373
|
+
}, "getProto") : null;
|
|
374
|
+
}
|
|
375
|
+
}), st = f({
|
|
376
|
+
"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(t, e) {
|
|
377
|
+
"use strict";
|
|
378
|
+
var r = Function.prototype.call, n = Object.prototype.hasOwnProperty, o = de();
|
|
379
|
+
e.exports = o.call(r, n);
|
|
380
|
+
}
|
|
381
|
+
}), br = f({
|
|
382
|
+
"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(t, e) {
|
|
383
|
+
"use strict";
|
|
384
|
+
var r, n = Qe(), o = er(), p = tr(), a = rr(), c = nr(), i = or(), l = be(), d = sr(), u = ir(), y = ar(), g = pr(), h = cr(), C = lr(),
|
|
385
|
+
w = ur(), A = dr(), L = Function, I = /* @__PURE__ */ s(function(P) {
|
|
315
386
|
try {
|
|
316
|
-
|
|
387
|
+
return L('"use strict"; return (' + P + ").constructor;")();
|
|
317
388
|
} catch {
|
|
318
|
-
c = null;
|
|
319
389
|
}
|
|
320
|
-
|
|
321
|
-
throw new
|
|
322
|
-
}, "throwTypeError"),
|
|
390
|
+
}, "getEvalledConstructor"), Y = Se(), xt = hr(), ge = /* @__PURE__ */ s(function() {
|
|
391
|
+
throw new l();
|
|
392
|
+
}, "throwTypeError"), wt = Y ? function() {
|
|
323
393
|
try {
|
|
324
|
-
return arguments.callee,
|
|
394
|
+
return arguments.callee, ge;
|
|
325
395
|
} catch {
|
|
326
396
|
try {
|
|
327
|
-
return
|
|
397
|
+
return Y(arguments, "callee").get;
|
|
328
398
|
} catch {
|
|
329
|
-
return
|
|
399
|
+
return ge;
|
|
330
400
|
}
|
|
331
401
|
}
|
|
332
|
-
}() :
|
|
333
|
-
|
|
334
|
-
|
|
402
|
+
}() : ge, D = et()(), E = _r(), Pt = rt(), Ot = tt(), Fe = nt(), K = Te(), $ = {}, Ct = typeof Uint8Array > "u" || !E ? r : E(Uint8Array),
|
|
403
|
+
R = {
|
|
404
|
+
__proto__: null,
|
|
335
405
|
"%AggregateError%": typeof AggregateError > "u" ? r : AggregateError,
|
|
336
406
|
"%Array%": Array,
|
|
337
407
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? r : ArrayBuffer,
|
|
338
|
-
"%ArrayIteratorPrototype%":
|
|
408
|
+
"%ArrayIteratorPrototype%": D && E ? E([][Symbol.iterator]()) : r,
|
|
339
409
|
"%AsyncFromSyncIteratorPrototype%": r,
|
|
340
|
-
"%AsyncFunction%":
|
|
341
|
-
"%AsyncGenerator%":
|
|
342
|
-
"%AsyncGeneratorFunction%":
|
|
343
|
-
"%AsyncIteratorPrototype%":
|
|
410
|
+
"%AsyncFunction%": $,
|
|
411
|
+
"%AsyncGenerator%": $,
|
|
412
|
+
"%AsyncGeneratorFunction%": $,
|
|
413
|
+
"%AsyncIteratorPrototype%": $,
|
|
344
414
|
"%Atomics%": typeof Atomics > "u" ? r : Atomics,
|
|
345
415
|
"%BigInt%": typeof BigInt > "u" ? r : BigInt,
|
|
416
|
+
"%BigInt64Array%": typeof BigInt64Array > "u" ? r : BigInt64Array,
|
|
417
|
+
"%BigUint64Array%": typeof BigUint64Array > "u" ? r : BigUint64Array,
|
|
346
418
|
"%Boolean%": Boolean,
|
|
347
419
|
"%DataView%": typeof DataView > "u" ? r : DataView,
|
|
348
420
|
"%Date%": Date,
|
|
@@ -350,69 +422,92 @@ tion]";
|
|
|
350
422
|
"%decodeURIComponent%": decodeURIComponent,
|
|
351
423
|
"%encodeURI%": encodeURI,
|
|
352
424
|
"%encodeURIComponent%": encodeURIComponent,
|
|
353
|
-
"%Error%":
|
|
425
|
+
"%Error%": o,
|
|
354
426
|
"%eval%": eval,
|
|
355
|
-
|
|
427
|
+
// eslint-disable-line no-eval
|
|
428
|
+
"%EvalError%": p,
|
|
429
|
+
"%Float16Array%": typeof Float16Array > "u" ? r : Float16Array,
|
|
356
430
|
"%Float32Array%": typeof Float32Array > "u" ? r : Float32Array,
|
|
357
431
|
"%Float64Array%": typeof Float64Array > "u" ? r : Float64Array,
|
|
358
432
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? r : FinalizationRegistry,
|
|
359
|
-
"%Function%":
|
|
360
|
-
"%GeneratorFunction%":
|
|
433
|
+
"%Function%": L,
|
|
434
|
+
"%GeneratorFunction%": $,
|
|
361
435
|
"%Int8Array%": typeof Int8Array > "u" ? r : Int8Array,
|
|
362
436
|
"%Int16Array%": typeof Int16Array > "u" ? r : Int16Array,
|
|
363
437
|
"%Int32Array%": typeof Int32Array > "u" ? r : Int32Array,
|
|
364
438
|
"%isFinite%": isFinite,
|
|
365
439
|
"%isNaN%": isNaN,
|
|
366
|
-
"%IteratorPrototype%":
|
|
440
|
+
"%IteratorPrototype%": D && E ? E(E([][Symbol.iterator]())) : r,
|
|
367
441
|
"%JSON%": typeof JSON == "object" ? JSON : r,
|
|
368
442
|
"%Map%": typeof Map > "u" ? r : Map,
|
|
369
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !
|
|
443
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !D || !E ? r : E((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
370
444
|
"%Math%": Math,
|
|
371
445
|
"%Number%": Number,
|
|
372
|
-
"%Object%":
|
|
446
|
+
"%Object%": n,
|
|
447
|
+
"%Object.getOwnPropertyDescriptor%": Y,
|
|
373
448
|
"%parseFloat%": parseFloat,
|
|
374
449
|
"%parseInt%": parseInt,
|
|
375
450
|
"%Promise%": typeof Promise > "u" ? r : Promise,
|
|
376
451
|
"%Proxy%": typeof Proxy > "u" ? r : Proxy,
|
|
377
|
-
"%RangeError%":
|
|
378
|
-
"%ReferenceError%":
|
|
452
|
+
"%RangeError%": a,
|
|
453
|
+
"%ReferenceError%": c,
|
|
379
454
|
"%Reflect%": typeof Reflect > "u" ? r : Reflect,
|
|
380
455
|
"%RegExp%": RegExp,
|
|
381
456
|
"%Set%": typeof Set > "u" ? r : Set,
|
|
382
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !
|
|
457
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !D || !E ? r : E((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
383
458
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? r : SharedArrayBuffer,
|
|
384
459
|
"%String%": String,
|
|
385
|
-
"%StringIteratorPrototype%":
|
|
386
|
-
"%Symbol%":
|
|
387
|
-
"%SyntaxError%":
|
|
388
|
-
"%ThrowTypeError%":
|
|
389
|
-
"%TypedArray%":
|
|
390
|
-
"%TypeError%":
|
|
460
|
+
"%StringIteratorPrototype%": D && E ? E(""[Symbol.iterator]()) : r,
|
|
461
|
+
"%Symbol%": D ? Symbol : r,
|
|
462
|
+
"%SyntaxError%": i,
|
|
463
|
+
"%ThrowTypeError%": wt,
|
|
464
|
+
"%TypedArray%": Ct,
|
|
465
|
+
"%TypeError%": l,
|
|
391
466
|
"%Uint8Array%": typeof Uint8Array > "u" ? r : Uint8Array,
|
|
392
467
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? r : Uint8ClampedArray,
|
|
393
468
|
"%Uint16Array%": typeof Uint16Array > "u" ? r : Uint16Array,
|
|
394
469
|
"%Uint32Array%": typeof Uint32Array > "u" ? r : Uint32Array,
|
|
395
|
-
"%URIError%":
|
|
470
|
+
"%URIError%": d,
|
|
396
471
|
"%WeakMap%": typeof WeakMap > "u" ? r : WeakMap,
|
|
397
472
|
"%WeakRef%": typeof WeakRef > "u" ? r : WeakRef,
|
|
398
|
-
"%WeakSet%": typeof WeakSet > "u" ? r : WeakSet
|
|
399
|
-
|
|
473
|
+
"%WeakSet%": typeof WeakSet > "u" ? r : WeakSet,
|
|
474
|
+
"%Function.prototype.call%": K,
|
|
475
|
+
"%Function.prototype.apply%": Fe,
|
|
476
|
+
"%Object.defineProperty%": xt,
|
|
477
|
+
"%Object.getPrototypeOf%": Pt,
|
|
478
|
+
"%Math.abs%": u,
|
|
479
|
+
"%Math.floor%": y,
|
|
480
|
+
"%Math.max%": g,
|
|
481
|
+
"%Math.min%": h,
|
|
482
|
+
"%Math.pow%": C,
|
|
483
|
+
"%Math.round%": w,
|
|
484
|
+
"%Math.sign%": A,
|
|
485
|
+
"%Reflect.getPrototypeOf%": Ot
|
|
486
|
+
};
|
|
487
|
+
if (E)
|
|
488
|
+
try {
|
|
489
|
+
null.error;
|
|
490
|
+
} catch (P) {
|
|
491
|
+
Me = E(E(P)), R["%Error.prototype%"] = Me;
|
|
492
|
+
}
|
|
493
|
+
var Me, Nt = /* @__PURE__ */ s(function P(m) {
|
|
400
494
|
var b;
|
|
401
|
-
if (
|
|
402
|
-
b =
|
|
403
|
-
else if (
|
|
404
|
-
b =
|
|
405
|
-
else if (
|
|
406
|
-
b =
|
|
407
|
-
else if (
|
|
408
|
-
var
|
|
409
|
-
|
|
410
|
-
} else if (
|
|
411
|
-
var
|
|
412
|
-
E && (b =
|
|
495
|
+
if (m === "%AsyncFunction%")
|
|
496
|
+
b = I("async function () {}");
|
|
497
|
+
else if (m === "%GeneratorFunction%")
|
|
498
|
+
b = I("function* () {}");
|
|
499
|
+
else if (m === "%AsyncGeneratorFunction%")
|
|
500
|
+
b = I("async function* () {}");
|
|
501
|
+
else if (m === "%AsyncGenerator%") {
|
|
502
|
+
var v = P("%AsyncGeneratorFunction%");
|
|
503
|
+
v && (b = v.prototype);
|
|
504
|
+
} else if (m === "%AsyncIteratorPrototype%") {
|
|
505
|
+
var S = P("%AsyncGenerator%");
|
|
506
|
+
S && E && (b = E(S.prototype));
|
|
413
507
|
}
|
|
414
|
-
return
|
|
415
|
-
}, "doEval2"),
|
|
508
|
+
return R[m] = b, b;
|
|
509
|
+
}, "doEval2"), Ue = {
|
|
510
|
+
__proto__: null,
|
|
416
511
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
417
512
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
418
513
|
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
@@ -464,270 +559,265 @@ tion]";
|
|
|
464
559
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
465
560
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
466
561
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
467
|
-
},
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
throw new s("intrinsic " + g + " exists, but is not available. Please file an issue!");
|
|
562
|
+
}, X = de(), se = st(), It = X.call(K, Array.prototype.concat), Rt = X.call(Fe, Array.prototype.splice), Ge = X.call(K, String.prototype.
|
|
563
|
+
replace), ie = X.call(K, String.prototype.slice), jt = X.call(K, RegExp.prototype.exec), Lt = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
|
|
564
|
+
Dt = /\\(\\)?/g, $t = /* @__PURE__ */ s(function(m) {
|
|
565
|
+
var b = ie(m, 0, 1), v = ie(m, -1);
|
|
566
|
+
if (b === "%" && v !== "%")
|
|
567
|
+
throw new i("invalid intrinsic syntax, expected closing `%`");
|
|
568
|
+
if (v === "%" && b !== "%")
|
|
569
|
+
throw new i("invalid intrinsic syntax, expected opening `%`");
|
|
570
|
+
var S = [];
|
|
571
|
+
return Ge(m, Lt, function(O, F, T, ae) {
|
|
572
|
+
S[S.length] = T ? Ge(ae, Dt, "$1") : F || O;
|
|
573
|
+
}), S;
|
|
574
|
+
}, "stringToPath3"), Ft = /* @__PURE__ */ s(function(m, b) {
|
|
575
|
+
var v = m, S;
|
|
576
|
+
if (se(Ue, v) && (S = Ue[v], v = "%" + S[0] + "%"), se(R, v)) {
|
|
577
|
+
var O = R[v];
|
|
578
|
+
if (O === $ && (O = Nt(v)), typeof O > "u" && !b)
|
|
579
|
+
throw new l("intrinsic " + m + " exists, but is not available. Please file an issue!");
|
|
486
580
|
return {
|
|
487
|
-
alias:
|
|
488
|
-
name:
|
|
581
|
+
alias: S,
|
|
582
|
+
name: v,
|
|
489
583
|
value: O
|
|
490
584
|
};
|
|
491
585
|
}
|
|
492
|
-
throw new
|
|
586
|
+
throw new i("intrinsic " + m + " does not exist!");
|
|
493
587
|
}, "getBaseIntrinsic2");
|
|
494
|
-
e.exports = /* @__PURE__ */
|
|
495
|
-
if (typeof
|
|
496
|
-
throw new
|
|
588
|
+
e.exports = /* @__PURE__ */ s(function(m, b) {
|
|
589
|
+
if (typeof m != "string" || m.length === 0)
|
|
590
|
+
throw new l("intrinsic name must be a non-empty string");
|
|
497
591
|
if (arguments.length > 1 && typeof b != "boolean")
|
|
498
|
-
throw new
|
|
499
|
-
if (
|
|
500
|
-
throw new
|
|
501
|
-
var
|
|
502
|
-
|
|
503
|
-
for (var
|
|
504
|
-
var
|
|
505
|
-
if ((
|
|
506
|
-
throw new
|
|
507
|
-
if ((
|
|
508
|
-
|
|
509
|
-
else if (
|
|
510
|
-
if (!(
|
|
592
|
+
throw new l('"allowMissing" argument must be a boolean');
|
|
593
|
+
if (jt(/^%?[^%]*%?$/, m) === null)
|
|
594
|
+
throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
595
|
+
var v = $t(m), S = v.length > 0 ? v[0] : "", O = Ft("%" + S + "%", b), F = O.name, T = O.value, ae = !1, me = O.alias;
|
|
596
|
+
me && (S = me[0], Rt(v, It([0, 1], me)));
|
|
597
|
+
for (var pe = 1, Q = !0; pe < v.length; pe += 1) {
|
|
598
|
+
var N = v[pe], ce = ie(N, 0, 1), le = ie(N, -1);
|
|
599
|
+
if ((ce === '"' || ce === "'" || ce === "`" || le === '"' || le === "'" || le === "`") && ce !== le)
|
|
600
|
+
throw new i("property names with quotes must have matching quotes");
|
|
601
|
+
if ((N === "constructor" || !Q) && (ae = !0), S += "." + N, F = "%" + S + "%", se(R, F))
|
|
602
|
+
T = R[F];
|
|
603
|
+
else if (T != null) {
|
|
604
|
+
if (!(N in T)) {
|
|
511
605
|
if (!b)
|
|
512
|
-
throw new
|
|
606
|
+
throw new l("base intrinsic for " + m + " exists, but the property is not available.");
|
|
513
607
|
return;
|
|
514
608
|
}
|
|
515
|
-
if (
|
|
516
|
-
var
|
|
517
|
-
|
|
609
|
+
if (Y && pe + 1 >= v.length) {
|
|
610
|
+
var ue = Y(T, N);
|
|
611
|
+
Q = !!ue, Q && "get" in ue && !("originalValue" in ue.get) ? T = ue.get : T = T[N];
|
|
518
612
|
} else
|
|
519
|
-
|
|
520
|
-
|
|
613
|
+
Q = se(T, N), T = T[N];
|
|
614
|
+
Q && !ae && (R[F] = T);
|
|
521
615
|
}
|
|
522
616
|
}
|
|
523
|
-
return
|
|
617
|
+
return T;
|
|
524
618
|
}, "GetIntrinsic");
|
|
525
619
|
}
|
|
526
|
-
}),
|
|
527
|
-
"node_modules/call-
|
|
528
|
-
"use strict";
|
|
529
|
-
var r = require_function_bind(), n = require_get_intrinsic(), a = n("%Function.prototype.apply%"), s = n("%Function.prototype.call%"),
|
|
530
|
-
l = n("%Reflect.apply%", !0) || r.call(s, a), c = n("%Object.getOwnPropertyDescriptor%", !0), i = n("%Object.defineProperty%", !0), h = n(
|
|
531
|
-
"%Math.max%");
|
|
532
|
-
if (i)
|
|
533
|
-
try {
|
|
534
|
-
i({}, "a", { value: 1 });
|
|
535
|
-
} catch {
|
|
536
|
-
i = null;
|
|
537
|
-
}
|
|
538
|
-
e.exports = /* @__PURE__ */ o(function(y) {
|
|
539
|
-
var d = l(r, s, arguments);
|
|
540
|
-
if (c && i) {
|
|
541
|
-
var v = c(d, "length");
|
|
542
|
-
v.configurable && i(
|
|
543
|
-
d,
|
|
544
|
-
"length",
|
|
545
|
-
{ value: 1 + h(0, y.length - (arguments.length - 1)) }
|
|
546
|
-
);
|
|
547
|
-
}
|
|
548
|
-
return d;
|
|
549
|
-
}, "callBind");
|
|
550
|
-
var u = /* @__PURE__ */ o(function() {
|
|
551
|
-
return l(r, a, arguments);
|
|
552
|
-
}, "applyBind2");
|
|
553
|
-
i ? i(e.exports, "apply", { value: u }) : e.exports.apply = u;
|
|
554
|
-
}
|
|
555
|
-
}), require_callBound = __commonJS({
|
|
556
|
-
"node_modules/call-bind/callBound.js"(t, e) {
|
|
620
|
+
}), Ae = f({
|
|
621
|
+
"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(t, e) {
|
|
557
622
|
"use strict";
|
|
558
|
-
var r =
|
|
559
|
-
e.exports = /* @__PURE__ */
|
|
560
|
-
var i =
|
|
561
|
-
|
|
623
|
+
var r = br(), n = ot(), o = n([r("%String.prototype.indexOf%")]);
|
|
624
|
+
e.exports = /* @__PURE__ */ s(function(a, c) {
|
|
625
|
+
var i = (
|
|
626
|
+
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
627
|
+
r(a, !!c)
|
|
628
|
+
);
|
|
629
|
+
return typeof i == "function" && o(a, ".prototype.") > -1 ? n(
|
|
630
|
+
/** @type {const} */
|
|
631
|
+
[i]
|
|
632
|
+
) : i;
|
|
562
633
|
}, "callBoundIntrinsic");
|
|
563
634
|
}
|
|
564
|
-
}),
|
|
565
|
-
"node_modules/has-tostringtag/shams.js"(t, e) {
|
|
635
|
+
}), Sr = f({
|
|
636
|
+
"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(t, e) {
|
|
566
637
|
"use strict";
|
|
567
|
-
var r =
|
|
568
|
-
e.exports = /* @__PURE__ */
|
|
638
|
+
var r = Ze();
|
|
639
|
+
e.exports = /* @__PURE__ */ s(function() {
|
|
569
640
|
return r() && !!Symbol.toStringTag;
|
|
570
641
|
}, "hasToStringTagShams");
|
|
571
642
|
}
|
|
572
|
-
}),
|
|
573
|
-
"node_modules/is-regex/index.js"(t, e) {
|
|
643
|
+
}), it = f({
|
|
644
|
+
"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(t, e) {
|
|
574
645
|
"use strict";
|
|
575
|
-
var r =
|
|
576
|
-
n
|
|
577
|
-
throw
|
|
578
|
-
}, "throwRegexMarker"),
|
|
579
|
-
toString:
|
|
580
|
-
valueOf:
|
|
581
|
-
}, typeof Symbol.toPrimitive == "symbol" && (
|
|
582
|
-
|
|
583
|
-
e.exports = /* @__PURE__ */ o(n ? function(d) {
|
|
584
|
-
if (!d || typeof d != "object")
|
|
646
|
+
var r = Ae(), n = Sr()(), o = st(), p = Se(), a;
|
|
647
|
+
n ? (c = r("RegExp.prototype.exec"), i = {}, l = /* @__PURE__ */ s(function() {
|
|
648
|
+
throw i;
|
|
649
|
+
}, "throwRegexMarker"), d = {
|
|
650
|
+
toString: l,
|
|
651
|
+
valueOf: l
|
|
652
|
+
}, typeof Symbol.toPrimitive == "symbol" && (d[Symbol.toPrimitive] = l), a = /* @__PURE__ */ s(function(h) {
|
|
653
|
+
if (!h || typeof h != "object")
|
|
585
654
|
return !1;
|
|
586
|
-
var
|
|
655
|
+
var C = (
|
|
656
|
+
/** @type {NonNullable<typeof gOPD>} */
|
|
657
|
+
p(
|
|
658
|
+
/** @type {{ lastIndex?: unknown }} */
|
|
659
|
+
h,
|
|
660
|
+
"lastIndex"
|
|
661
|
+
)
|
|
662
|
+
), w = C && o(C, "value");
|
|
587
663
|
if (!w)
|
|
588
664
|
return !1;
|
|
589
665
|
try {
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
666
|
+
c(
|
|
667
|
+
h,
|
|
668
|
+
/** @type {string} */
|
|
669
|
+
/** @type {unknown} */
|
|
670
|
+
d
|
|
671
|
+
);
|
|
672
|
+
} catch (A) {
|
|
673
|
+
return A === i;
|
|
593
674
|
}
|
|
594
|
-
} : function(
|
|
595
|
-
return !
|
|
596
|
-
}, "isRegex");
|
|
675
|
+
}, "isRegex")) : (u = r("Object.prototype.toString"), y = "[object RegExp]", a = /* @__PURE__ */ s(function(h) {
|
|
676
|
+
return !h || typeof h != "object" && typeof h != "function" ? !1 : u(h) === y;
|
|
677
|
+
}, "isRegex"));
|
|
678
|
+
var c, i, l, d, u, y;
|
|
679
|
+
e.exports = a;
|
|
597
680
|
}
|
|
598
|
-
}),
|
|
599
|
-
"node_modules/is-function/index.js"(t, e) {
|
|
681
|
+
}), Tr = f({
|
|
682
|
+
"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(t, e) {
|
|
600
683
|
e.exports = n;
|
|
601
684
|
var r = Object.prototype.toString;
|
|
602
|
-
function n(
|
|
603
|
-
if (!
|
|
685
|
+
function n(o) {
|
|
686
|
+
if (!o)
|
|
604
687
|
return !1;
|
|
605
|
-
var
|
|
606
|
-
return
|
|
607
|
-
|
|
688
|
+
var p = r.call(o);
|
|
689
|
+
return p === "[object Function]" || typeof o == "function" && p !== "[object RegExp]" || typeof window < "u" && // IE8 and below
|
|
690
|
+
(o === window.setTimeout || o === window.alert || o === window.confirm || o === window.prompt);
|
|
608
691
|
}
|
|
609
|
-
|
|
692
|
+
s(n, "isFunction3");
|
|
693
|
+
}
|
|
694
|
+
}), Ar = f({
|
|
695
|
+
"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(t, e) {
|
|
696
|
+
"use strict";
|
|
697
|
+
var r = Ae(), n = it(), o = r("RegExp.prototype.exec"), p = be();
|
|
698
|
+
e.exports = /* @__PURE__ */ s(function(c) {
|
|
699
|
+
if (!n(c))
|
|
700
|
+
throw new p("`regex` must be a RegExp");
|
|
701
|
+
return /* @__PURE__ */ s(function(l) {
|
|
702
|
+
return o(c, l) !== null;
|
|
703
|
+
}, "test");
|
|
704
|
+
}, "regexTester");
|
|
610
705
|
}
|
|
611
|
-
}),
|
|
612
|
-
"node_modules/is-symbol/index.js"(t, e) {
|
|
706
|
+
}), xr = f({
|
|
707
|
+
"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(t, e) {
|
|
613
708
|
"use strict";
|
|
614
|
-
var r = Object.prototype.toString,
|
|
615
|
-
|
|
616
|
-
return typeof
|
|
617
|
-
}, "isRealSymbolObject"), e.exports = /* @__PURE__ */
|
|
618
|
-
if (typeof
|
|
709
|
+
var r = Ae(), n = r("Object.prototype.toString"), o = et()(), p = Ar();
|
|
710
|
+
o ? (a = r("Symbol.prototype.toString"), c = p(/^Symbol\(.*\)$/), i = /* @__PURE__ */ s(function(d) {
|
|
711
|
+
return typeof d.valueOf() != "symbol" ? !1 : c(a(d));
|
|
712
|
+
}, "isRealSymbolObject"), e.exports = /* @__PURE__ */ s(function(d) {
|
|
713
|
+
if (typeof d == "symbol")
|
|
619
714
|
return !0;
|
|
620
|
-
if (
|
|
715
|
+
if (!d || typeof d != "object" || n(d) !== "[object Symbol]")
|
|
621
716
|
return !1;
|
|
622
717
|
try {
|
|
623
|
-
return
|
|
718
|
+
return i(d);
|
|
624
719
|
} catch {
|
|
625
720
|
return !1;
|
|
626
721
|
}
|
|
627
|
-
}, "isSymbol3")) : e.exports = /* @__PURE__ */
|
|
722
|
+
}, "isSymbol3")) : e.exports = /* @__PURE__ */ s(function(d) {
|
|
628
723
|
return !1;
|
|
629
724
|
}, "isSymbol3");
|
|
630
|
-
var a,
|
|
725
|
+
var a, c, i;
|
|
631
726
|
}
|
|
632
|
-
}),
|
|
633
|
-
|
|
634
|
-
isJSON: /* @__PURE__ */
|
|
635
|
-
parse: /* @__PURE__ */
|
|
636
|
-
replacer: /* @__PURE__ */
|
|
637
|
-
reviver: /* @__PURE__ */
|
|
638
|
-
stringify: /* @__PURE__ */
|
|
727
|
+
}), at = {};
|
|
728
|
+
Qt(at, {
|
|
729
|
+
isJSON: /* @__PURE__ */ s(() => yt, "isJSON"),
|
|
730
|
+
parse: /* @__PURE__ */ s(() => Zo, "parse"),
|
|
731
|
+
replacer: /* @__PURE__ */ s(() => gt, "replacer"),
|
|
732
|
+
reviver: /* @__PURE__ */ s(() => mt, "reviver"),
|
|
733
|
+
stringify: /* @__PURE__ */ s(() => Xo, "stringify")
|
|
639
734
|
});
|
|
640
|
-
|
|
641
|
-
var
|
|
642
|
-
function
|
|
735
|
+
Et.exports = Zt(at);
|
|
736
|
+
var wr = _e(it()), Pr = _e(Tr()), Or = _e(xr());
|
|
737
|
+
function Cr(t) {
|
|
643
738
|
return t != null && typeof t == "object" && Array.isArray(t) === !1;
|
|
644
739
|
}
|
|
645
|
-
|
|
646
|
-
var
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
var e = hasOwnProperty.call(t, symToStringTag), r = t[symToStringTag];
|
|
740
|
+
s(Cr, "isObject");
|
|
741
|
+
var Nr = typeof global == "object" && global && global.Object === Object && global, Ir = Nr, Rr = typeof self == "object" && self && self.
|
|
742
|
+
Object === Object && self, jr = Ir || Rr || Function("return this")(), xe = jr, Lr = xe.Symbol, G = Lr, pt = Object.prototype, Dr = pt.hasOwnProperty,
|
|
743
|
+
$r = pt.toString, re = G ? G.toStringTag : void 0;
|
|
744
|
+
function Fr(t) {
|
|
745
|
+
var e = Dr.call(t, re), r = t[re];
|
|
652
746
|
try {
|
|
653
|
-
t[
|
|
747
|
+
t[re] = void 0;
|
|
654
748
|
var n = !0;
|
|
655
749
|
} catch {
|
|
656
750
|
}
|
|
657
|
-
var
|
|
658
|
-
return n && (e ? t[
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
var
|
|
662
|
-
function
|
|
663
|
-
return
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
var
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
var baseGetTag_default = baseGetTag;
|
|
674
|
-
function isObjectLike(t) {
|
|
751
|
+
var o = $r.call(t);
|
|
752
|
+
return n && (e ? t[re] = r : delete t[re]), o;
|
|
753
|
+
}
|
|
754
|
+
s(Fr, "getRawTag");
|
|
755
|
+
var Mr = Fr, Ur = Object.prototype, Gr = Ur.toString;
|
|
756
|
+
function kr(t) {
|
|
757
|
+
return Gr.call(t);
|
|
758
|
+
}
|
|
759
|
+
s(kr, "objectToString");
|
|
760
|
+
var Wr = kr, qr = "[object Null]", Br = "[object Undefined]", He = G ? G.toStringTag : void 0;
|
|
761
|
+
function Hr(t) {
|
|
762
|
+
return t == null ? t === void 0 ? Br : qr : He && He in Object(t) ? Mr(t) : Wr(t);
|
|
763
|
+
}
|
|
764
|
+
s(Hr, "baseGetTag");
|
|
765
|
+
var ct = Hr;
|
|
766
|
+
function Vr(t) {
|
|
675
767
|
return t != null && typeof t == "object";
|
|
676
768
|
}
|
|
677
|
-
|
|
678
|
-
var
|
|
679
|
-
function
|
|
680
|
-
return typeof t == "symbol" ||
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
var
|
|
684
|
-
function
|
|
685
|
-
for (var r = -1, n = t == null ? 0 : t.length,
|
|
686
|
-
|
|
687
|
-
return
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
var
|
|
691
|
-
|
|
692
|
-
function baseToString(t) {
|
|
769
|
+
s(Vr, "isObjectLike");
|
|
770
|
+
var Jr = Vr, zr = "[object Symbol]";
|
|
771
|
+
function Yr(t) {
|
|
772
|
+
return typeof t == "symbol" || Jr(t) && ct(t) == zr;
|
|
773
|
+
}
|
|
774
|
+
s(Yr, "isSymbol");
|
|
775
|
+
var we = Yr;
|
|
776
|
+
function Kr(t, e) {
|
|
777
|
+
for (var r = -1, n = t == null ? 0 : t.length, o = Array(n); ++r < n; )
|
|
778
|
+
o[r] = e(t[r], r, t);
|
|
779
|
+
return o;
|
|
780
|
+
}
|
|
781
|
+
s(Kr, "arrayMap");
|
|
782
|
+
var Xr = Kr, Qr = Array.isArray, Pe = Qr, Zr = 1 / 0, Ve = G ? G.prototype : void 0, Je = Ve ? Ve.toString : void 0;
|
|
783
|
+
function lt(t) {
|
|
693
784
|
if (typeof t == "string")
|
|
694
785
|
return t;
|
|
695
|
-
if (
|
|
696
|
-
return
|
|
697
|
-
if (
|
|
698
|
-
return
|
|
786
|
+
if (Pe(t))
|
|
787
|
+
return Xr(t, lt) + "";
|
|
788
|
+
if (we(t))
|
|
789
|
+
return Je ? Je.call(t) : "";
|
|
699
790
|
var e = t + "";
|
|
700
|
-
return e == "0" && 1 / t == -
|
|
791
|
+
return e == "0" && 1 / t == -Zr ? "-0" : e;
|
|
701
792
|
}
|
|
702
|
-
|
|
703
|
-
var
|
|
704
|
-
function
|
|
793
|
+
s(lt, "baseToString");
|
|
794
|
+
var en = lt;
|
|
795
|
+
function tn(t) {
|
|
705
796
|
var e = typeof t;
|
|
706
797
|
return t != null && (e == "object" || e == "function");
|
|
707
798
|
}
|
|
708
|
-
|
|
709
|
-
var
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
if (!isObject_default(t))
|
|
799
|
+
s(tn, "isObject2");
|
|
800
|
+
var ut = tn, rn = "[object AsyncFunction]", nn = "[object Function]", on = "[object GeneratorFunction]", sn = "[object Proxy]";
|
|
801
|
+
function an(t) {
|
|
802
|
+
if (!ut(t))
|
|
713
803
|
return !1;
|
|
714
|
-
var e =
|
|
715
|
-
return e ==
|
|
804
|
+
var e = ct(t);
|
|
805
|
+
return e == nn || e == on || e == rn || e == sn;
|
|
716
806
|
}
|
|
717
|
-
|
|
718
|
-
var
|
|
719
|
-
var t = /[^.]+$/.exec(
|
|
807
|
+
s(an, "isFunction");
|
|
808
|
+
var pn = an, cn = xe["__core-js_shared__"], Ee = cn, ze = function() {
|
|
809
|
+
var t = /[^.]+$/.exec(Ee && Ee.keys && Ee.keys.IE_PROTO || "");
|
|
720
810
|
return t ? "Symbol(src)_1." + t : "";
|
|
721
811
|
}();
|
|
722
|
-
function
|
|
723
|
-
return !!
|
|
812
|
+
function ln(t) {
|
|
813
|
+
return !!ze && ze in t;
|
|
724
814
|
}
|
|
725
|
-
|
|
726
|
-
var
|
|
727
|
-
function
|
|
815
|
+
s(ln, "isMasked");
|
|
816
|
+
var un = ln, fn = Function.prototype, dn = fn.toString;
|
|
817
|
+
function yn(t) {
|
|
728
818
|
if (t != null) {
|
|
729
819
|
try {
|
|
730
|
-
return
|
|
820
|
+
return dn.call(t);
|
|
731
821
|
} catch {
|
|
732
822
|
}
|
|
733
823
|
try {
|
|
@@ -737,264 +827,262 @@ tion]";
|
|
|
737
827
|
}
|
|
738
828
|
return "";
|
|
739
829
|
}
|
|
740
|
-
|
|
741
|
-
var
|
|
742
|
-
|
|
743
|
-
"^" +
|
|
744
|
-
"$1.*?") + "$"
|
|
830
|
+
s(yn, "toSource");
|
|
831
|
+
var hn = yn, gn = /[\\^$.*+?()[\]{}|]/g, mn = /^\[object .+?Constructor\]$/, vn = Function.prototype, En = Object.prototype, _n = vn.toString,
|
|
832
|
+
bn = En.hasOwnProperty, Sn = RegExp(
|
|
833
|
+
"^" + _n.call(bn).replace(gn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
745
834
|
);
|
|
746
|
-
function
|
|
747
|
-
if (!
|
|
835
|
+
function Tn(t) {
|
|
836
|
+
if (!ut(t) || un(t))
|
|
748
837
|
return !1;
|
|
749
|
-
var e =
|
|
750
|
-
return e.test(
|
|
838
|
+
var e = pn(t) ? Sn : mn;
|
|
839
|
+
return e.test(hn(t));
|
|
751
840
|
}
|
|
752
|
-
|
|
753
|
-
var
|
|
754
|
-
function
|
|
841
|
+
s(Tn, "baseIsNative");
|
|
842
|
+
var An = Tn;
|
|
843
|
+
function xn(t, e) {
|
|
755
844
|
return t?.[e];
|
|
756
845
|
}
|
|
757
|
-
|
|
758
|
-
var
|
|
759
|
-
function
|
|
760
|
-
var r =
|
|
761
|
-
return
|
|
846
|
+
s(xn, "getValue");
|
|
847
|
+
var wn = xn;
|
|
848
|
+
function Pn(t, e) {
|
|
849
|
+
var r = wn(t, e);
|
|
850
|
+
return An(r) ? r : void 0;
|
|
762
851
|
}
|
|
763
|
-
|
|
764
|
-
var
|
|
765
|
-
function
|
|
852
|
+
s(Pn, "getNative");
|
|
853
|
+
var ft = Pn;
|
|
854
|
+
function On(t, e) {
|
|
766
855
|
return t === e || t !== t && e !== e;
|
|
767
856
|
}
|
|
768
|
-
|
|
769
|
-
var
|
|
770
|
-
function
|
|
771
|
-
if (
|
|
857
|
+
s(On, "eq");
|
|
858
|
+
var Cn = On, Nn = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, In = /^\w*$/;
|
|
859
|
+
function Rn(t, e) {
|
|
860
|
+
if (Pe(t))
|
|
772
861
|
return !1;
|
|
773
862
|
var r = typeof t;
|
|
774
|
-
return r == "number" || r == "symbol" || r == "boolean" || t == null ||
|
|
775
|
-
|
|
863
|
+
return r == "number" || r == "symbol" || r == "boolean" || t == null || we(t) ? !0 : In.test(t) || !Nn.test(t) || e != null && t in Object(
|
|
864
|
+
e);
|
|
776
865
|
}
|
|
777
|
-
|
|
778
|
-
var
|
|
779
|
-
function
|
|
780
|
-
this.__data__ =
|
|
866
|
+
s(Rn, "isKey");
|
|
867
|
+
var jn = Rn, Ln = ft(Object, "create"), ne = Ln;
|
|
868
|
+
function Dn() {
|
|
869
|
+
this.__data__ = ne ? ne(null) : {}, this.size = 0;
|
|
781
870
|
}
|
|
782
|
-
|
|
783
|
-
var
|
|
784
|
-
function
|
|
871
|
+
s(Dn, "hashClear");
|
|
872
|
+
var $n = Dn;
|
|
873
|
+
function Fn(t) {
|
|
785
874
|
var e = this.has(t) && delete this.__data__[t];
|
|
786
875
|
return this.size -= e ? 1 : 0, e;
|
|
787
876
|
}
|
|
788
|
-
|
|
789
|
-
var
|
|
790
|
-
|
|
791
|
-
function hashGet(t) {
|
|
877
|
+
s(Fn, "hashDelete");
|
|
878
|
+
var Mn = Fn, Un = "__lodash_hash_undefined__", Gn = Object.prototype, kn = Gn.hasOwnProperty;
|
|
879
|
+
function Wn(t) {
|
|
792
880
|
var e = this.__data__;
|
|
793
|
-
if (
|
|
881
|
+
if (ne) {
|
|
794
882
|
var r = e[t];
|
|
795
|
-
return r ===
|
|
883
|
+
return r === Un ? void 0 : r;
|
|
796
884
|
}
|
|
797
|
-
return
|
|
885
|
+
return kn.call(e, t) ? e[t] : void 0;
|
|
798
886
|
}
|
|
799
|
-
|
|
800
|
-
var
|
|
801
|
-
function
|
|
887
|
+
s(Wn, "hashGet");
|
|
888
|
+
var qn = Wn, Bn = Object.prototype, Hn = Bn.hasOwnProperty;
|
|
889
|
+
function Vn(t) {
|
|
802
890
|
var e = this.__data__;
|
|
803
|
-
return
|
|
891
|
+
return ne ? e[t] !== void 0 : Hn.call(e, t);
|
|
804
892
|
}
|
|
805
|
-
|
|
806
|
-
var
|
|
807
|
-
function
|
|
893
|
+
s(Vn, "hashHas");
|
|
894
|
+
var Jn = Vn, zn = "__lodash_hash_undefined__";
|
|
895
|
+
function Yn(t, e) {
|
|
808
896
|
var r = this.__data__;
|
|
809
|
-
return this.size += this.has(t) ? 0 : 1, r[t] =
|
|
897
|
+
return this.size += this.has(t) ? 0 : 1, r[t] = ne && e === void 0 ? zn : e, this;
|
|
810
898
|
}
|
|
811
|
-
|
|
812
|
-
var
|
|
813
|
-
function
|
|
899
|
+
s(Yn, "hashSet");
|
|
900
|
+
var Kn = Yn;
|
|
901
|
+
function k(t) {
|
|
814
902
|
var e = -1, r = t == null ? 0 : t.length;
|
|
815
903
|
for (this.clear(); ++e < r; ) {
|
|
816
904
|
var n = t[e];
|
|
817
905
|
this.set(n[0], n[1]);
|
|
818
906
|
}
|
|
819
907
|
}
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
var
|
|
827
|
-
function
|
|
908
|
+
s(k, "Hash");
|
|
909
|
+
k.prototype.clear = $n;
|
|
910
|
+
k.prototype.delete = Mn;
|
|
911
|
+
k.prototype.get = qn;
|
|
912
|
+
k.prototype.has = Jn;
|
|
913
|
+
k.prototype.set = Kn;
|
|
914
|
+
var Ye = k;
|
|
915
|
+
function Xn() {
|
|
828
916
|
this.__data__ = [], this.size = 0;
|
|
829
917
|
}
|
|
830
|
-
|
|
831
|
-
var
|
|
832
|
-
function
|
|
918
|
+
s(Xn, "listCacheClear");
|
|
919
|
+
var Qn = Xn;
|
|
920
|
+
function Zn(t, e) {
|
|
833
921
|
for (var r = t.length; r--; )
|
|
834
|
-
if (
|
|
922
|
+
if (Cn(t[r][0], e))
|
|
835
923
|
return r;
|
|
836
924
|
return -1;
|
|
837
925
|
}
|
|
838
|
-
|
|
839
|
-
var
|
|
840
|
-
function
|
|
841
|
-
var e = this.__data__, r =
|
|
926
|
+
s(Zn, "assocIndexOf");
|
|
927
|
+
var ye = Zn, eo = Array.prototype, to = eo.splice;
|
|
928
|
+
function ro(t) {
|
|
929
|
+
var e = this.__data__, r = ye(e, t);
|
|
842
930
|
if (r < 0)
|
|
843
931
|
return !1;
|
|
844
932
|
var n = e.length - 1;
|
|
845
|
-
return r == n ? e.pop() :
|
|
933
|
+
return r == n ? e.pop() : to.call(e, r, 1), --this.size, !0;
|
|
846
934
|
}
|
|
847
|
-
|
|
848
|
-
var
|
|
849
|
-
function
|
|
850
|
-
var e = this.__data__, r =
|
|
935
|
+
s(ro, "listCacheDelete");
|
|
936
|
+
var no = ro;
|
|
937
|
+
function oo(t) {
|
|
938
|
+
var e = this.__data__, r = ye(e, t);
|
|
851
939
|
return r < 0 ? void 0 : e[r][1];
|
|
852
940
|
}
|
|
853
|
-
|
|
854
|
-
var
|
|
855
|
-
function
|
|
856
|
-
return
|
|
941
|
+
s(oo, "listCacheGet");
|
|
942
|
+
var so = oo;
|
|
943
|
+
function io(t) {
|
|
944
|
+
return ye(this.__data__, t) > -1;
|
|
857
945
|
}
|
|
858
|
-
|
|
859
|
-
var
|
|
860
|
-
function
|
|
861
|
-
var r = this.__data__, n =
|
|
946
|
+
s(io, "listCacheHas");
|
|
947
|
+
var ao = io;
|
|
948
|
+
function po(t, e) {
|
|
949
|
+
var r = this.__data__, n = ye(r, t);
|
|
862
950
|
return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this;
|
|
863
951
|
}
|
|
864
|
-
|
|
865
|
-
var
|
|
866
|
-
function
|
|
952
|
+
s(po, "listCacheSet");
|
|
953
|
+
var co = po;
|
|
954
|
+
function W(t) {
|
|
867
955
|
var e = -1, r = t == null ? 0 : t.length;
|
|
868
956
|
for (this.clear(); ++e < r; ) {
|
|
869
957
|
var n = t[e];
|
|
870
958
|
this.set(n[0], n[1]);
|
|
871
959
|
}
|
|
872
960
|
}
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
var
|
|
880
|
-
function
|
|
961
|
+
s(W, "ListCache");
|
|
962
|
+
W.prototype.clear = Qn;
|
|
963
|
+
W.prototype.delete = no;
|
|
964
|
+
W.prototype.get = so;
|
|
965
|
+
W.prototype.has = ao;
|
|
966
|
+
W.prototype.set = co;
|
|
967
|
+
var lo = W, uo = ft(xe, "Map"), fo = uo;
|
|
968
|
+
function yo() {
|
|
881
969
|
this.size = 0, this.__data__ = {
|
|
882
|
-
hash: new
|
|
883
|
-
map: new (
|
|
884
|
-
string: new
|
|
970
|
+
hash: new Ye(),
|
|
971
|
+
map: new (fo || lo)(),
|
|
972
|
+
string: new Ye()
|
|
885
973
|
};
|
|
886
974
|
}
|
|
887
|
-
|
|
888
|
-
var
|
|
889
|
-
function
|
|
975
|
+
s(yo, "mapCacheClear");
|
|
976
|
+
var ho = yo;
|
|
977
|
+
function go(t) {
|
|
890
978
|
var e = typeof t;
|
|
891
979
|
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
|
|
892
980
|
}
|
|
893
|
-
|
|
894
|
-
var
|
|
895
|
-
function
|
|
981
|
+
s(go, "isKeyable");
|
|
982
|
+
var mo = go;
|
|
983
|
+
function vo(t, e) {
|
|
896
984
|
var r = t.__data__;
|
|
897
|
-
return
|
|
985
|
+
return mo(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
|
|
898
986
|
}
|
|
899
|
-
|
|
900
|
-
var
|
|
901
|
-
function
|
|
902
|
-
var e =
|
|
987
|
+
s(vo, "getMapData");
|
|
988
|
+
var he = vo;
|
|
989
|
+
function Eo(t) {
|
|
990
|
+
var e = he(this, t).delete(t);
|
|
903
991
|
return this.size -= e ? 1 : 0, e;
|
|
904
992
|
}
|
|
905
|
-
|
|
906
|
-
var
|
|
907
|
-
function
|
|
908
|
-
return
|
|
993
|
+
s(Eo, "mapCacheDelete");
|
|
994
|
+
var _o = Eo;
|
|
995
|
+
function bo(t) {
|
|
996
|
+
return he(this, t).get(t);
|
|
909
997
|
}
|
|
910
|
-
|
|
911
|
-
var
|
|
912
|
-
function
|
|
913
|
-
return
|
|
998
|
+
s(bo, "mapCacheGet");
|
|
999
|
+
var So = bo;
|
|
1000
|
+
function To(t) {
|
|
1001
|
+
return he(this, t).has(t);
|
|
914
1002
|
}
|
|
915
|
-
|
|
916
|
-
var
|
|
917
|
-
function
|
|
918
|
-
var r =
|
|
1003
|
+
s(To, "mapCacheHas");
|
|
1004
|
+
var Ao = To;
|
|
1005
|
+
function xo(t, e) {
|
|
1006
|
+
var r = he(this, t), n = r.size;
|
|
919
1007
|
return r.set(t, e), this.size += r.size == n ? 0 : 1, this;
|
|
920
1008
|
}
|
|
921
|
-
|
|
922
|
-
var
|
|
923
|
-
function
|
|
1009
|
+
s(xo, "mapCacheSet");
|
|
1010
|
+
var wo = xo;
|
|
1011
|
+
function q(t) {
|
|
924
1012
|
var e = -1, r = t == null ? 0 : t.length;
|
|
925
1013
|
for (this.clear(); ++e < r; ) {
|
|
926
1014
|
var n = t[e];
|
|
927
1015
|
this.set(n[0], n[1]);
|
|
928
1016
|
}
|
|
929
1017
|
}
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
var
|
|
937
|
-
function
|
|
1018
|
+
s(q, "MapCache");
|
|
1019
|
+
q.prototype.clear = ho;
|
|
1020
|
+
q.prototype.delete = _o;
|
|
1021
|
+
q.prototype.get = So;
|
|
1022
|
+
q.prototype.has = Ao;
|
|
1023
|
+
q.prototype.set = wo;
|
|
1024
|
+
var dt = q, Po = "Expected a function";
|
|
1025
|
+
function Oe(t, e) {
|
|
938
1026
|
if (typeof t != "function" || e != null && typeof e != "function")
|
|
939
|
-
throw new TypeError(
|
|
940
|
-
var r = /* @__PURE__ */
|
|
941
|
-
var n = arguments,
|
|
942
|
-
if (
|
|
943
|
-
return
|
|
944
|
-
var
|
|
945
|
-
return r.cache =
|
|
1027
|
+
throw new TypeError(Po);
|
|
1028
|
+
var r = /* @__PURE__ */ s(function() {
|
|
1029
|
+
var n = arguments, o = e ? e.apply(this, n) : n[0], p = r.cache;
|
|
1030
|
+
if (p.has(o))
|
|
1031
|
+
return p.get(o);
|
|
1032
|
+
var a = t.apply(this, n);
|
|
1033
|
+
return r.cache = p.set(o, a) || p, a;
|
|
946
1034
|
}, "memoized");
|
|
947
|
-
return r.cache = new (
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
var
|
|
952
|
-
function
|
|
953
|
-
var e =
|
|
954
|
-
return r.size ===
|
|
1035
|
+
return r.cache = new (Oe.Cache || dt)(), r;
|
|
1036
|
+
}
|
|
1037
|
+
s(Oe, "memoize");
|
|
1038
|
+
Oe.Cache = dt;
|
|
1039
|
+
var Oo = Oe, Co = 500;
|
|
1040
|
+
function No(t) {
|
|
1041
|
+
var e = Oo(t, function(n) {
|
|
1042
|
+
return r.size === Co && r.clear(), n;
|
|
955
1043
|
}), r = e.cache;
|
|
956
1044
|
return e;
|
|
957
1045
|
}
|
|
958
|
-
|
|
959
|
-
var
|
|
960
|
-
|
|
1046
|
+
s(No, "memoizeCapped");
|
|
1047
|
+
var Io = No, Ro = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, jo = /\\(\\)?/g, Lo = Io(
|
|
1048
|
+
function(t) {
|
|
961
1049
|
var e = [];
|
|
962
|
-
return t.charCodeAt(0) === 46 && e.push(""), t.replace(
|
|
963
|
-
e.push(
|
|
1050
|
+
return t.charCodeAt(0) === 46 && e.push(""), t.replace(Ro, function(r, n, o, p) {
|
|
1051
|
+
e.push(o ? p.replace(jo, "$1") : n || r);
|
|
964
1052
|
}), e;
|
|
965
|
-
}),
|
|
966
|
-
function
|
|
967
|
-
return t == null ? "" :
|
|
968
|
-
}
|
|
969
|
-
o
|
|
970
|
-
var
|
|
971
|
-
function
|
|
972
|
-
return
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
var
|
|
976
|
-
function
|
|
977
|
-
if (typeof t == "string" ||
|
|
1053
|
+
}), Do = Lo;
|
|
1054
|
+
function $o(t) {
|
|
1055
|
+
return t == null ? "" : en(t);
|
|
1056
|
+
}
|
|
1057
|
+
s($o, "toString");
|
|
1058
|
+
var Fo = $o;
|
|
1059
|
+
function Mo(t, e) {
|
|
1060
|
+
return Pe(t) ? t : jn(t, e) ? [t] : Do(Fo(t));
|
|
1061
|
+
}
|
|
1062
|
+
s(Mo, "castPath");
|
|
1063
|
+
var Uo = Mo, Go = 1 / 0;
|
|
1064
|
+
function ko(t) {
|
|
1065
|
+
if (typeof t == "string" || we(t))
|
|
978
1066
|
return t;
|
|
979
1067
|
var e = t + "";
|
|
980
|
-
return e == "0" && 1 / t == -
|
|
1068
|
+
return e == "0" && 1 / t == -Go ? "-0" : e;
|
|
981
1069
|
}
|
|
982
|
-
|
|
983
|
-
var
|
|
984
|
-
function
|
|
985
|
-
e =
|
|
1070
|
+
s(ko, "toKey");
|
|
1071
|
+
var Wo = ko;
|
|
1072
|
+
function qo(t, e) {
|
|
1073
|
+
e = Uo(e, t);
|
|
986
1074
|
for (var r = 0, n = e.length; t != null && r < n; )
|
|
987
|
-
t = t[
|
|
1075
|
+
t = t[Wo(e[r++])];
|
|
988
1076
|
return r && r == n ? t : void 0;
|
|
989
1077
|
}
|
|
990
|
-
|
|
991
|
-
var
|
|
992
|
-
function
|
|
993
|
-
var n = t == null ? void 0 :
|
|
1078
|
+
s(qo, "baseGet");
|
|
1079
|
+
var Bo = qo;
|
|
1080
|
+
function Ho(t, e, r) {
|
|
1081
|
+
var n = t == null ? void 0 : Bo(t, e);
|
|
994
1082
|
return n === void 0 ? r : n;
|
|
995
1083
|
}
|
|
996
|
-
|
|
997
|
-
var
|
|
1084
|
+
s(Ho, "get");
|
|
1085
|
+
var Vo = Ho, Jo = [
|
|
998
1086
|
"bubbles",
|
|
999
1087
|
"cancelBubble",
|
|
1000
1088
|
"cancelable",
|
|
@@ -1008,60 +1096,42 @@ tion]";
|
|
|
1008
1096
|
"target",
|
|
1009
1097
|
"timeStamp",
|
|
1010
1098
|
"type"
|
|
1011
|
-
],
|
|
1012
|
-
function
|
|
1013
|
-
let e =
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1099
|
+
], zo = ["detail"];
|
|
1100
|
+
function Yo(t) {
|
|
1101
|
+
let e = Jo.filter((r) => t[r] !== void 0).reduce((r, n) => (r[n] = t[n], r), {});
|
|
1102
|
+
if (t instanceof CustomEvent)
|
|
1103
|
+
for (let r of zo.filter(
|
|
1104
|
+
(n) => t[n] !== void 0
|
|
1105
|
+
))
|
|
1106
|
+
e[r] = t[r];
|
|
1107
|
+
return e;
|
|
1017
1108
|
}
|
|
1018
|
-
|
|
1019
|
-
var
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
!e && !r && !n && !a ? t[l] === '"' || t[l] === "'" || t[l] === "`" ? e = t[l] : t[l] === "/" && t[l + 1] === "*" ? r = !0 : t[l] ===
|
|
1024
|
-
"/" && t[l + 1] === "/" ? n = !0 : t[l] === "/" && t[l + 1] !== "/" && (a = !0) : (e && (t[l] === e && t[l - 1] !== "\\" || t[l] ===
|
|
1025
|
-
`
|
|
1026
|
-
` && e !== "`") && (e = null), a && (t[l] === "/" && t[l - 1] !== "\\" || t[l] === `
|
|
1027
|
-
`) && (a = !1), r && t[l - 1] === "/" && t[l - 2] === "*" && (r = !1), n && t[l] === `
|
|
1028
|
-
` && (n = !1)), !r && !n && (s += t[l]);
|
|
1029
|
-
else
|
|
1030
|
-
s = t;
|
|
1031
|
-
return s;
|
|
1032
|
-
}, "removeCodeComments"), cleanCode = (0, import_memoizerific.default)(1e4)(
|
|
1033
|
-
(t) => removeCodeComments(t).replace(/\n\s*/g, "").trim()
|
|
1034
|
-
), convertShorthandMethods = /* @__PURE__ */ o(function(e, r) {
|
|
1035
|
-
let n = r.slice(0, r.indexOf("{")), a = r.slice(r.indexOf("{"));
|
|
1036
|
-
if (n.includes("=>") || n.includes("function"))
|
|
1037
|
-
return r;
|
|
1038
|
-
let s = n;
|
|
1039
|
-
return s = s.replace(e, "function"), s + a;
|
|
1040
|
-
}, "convertShorthandMethods2"), dateFormat = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/, isJSON = /* @__PURE__ */ o((t) => t.match(
|
|
1041
|
-
/^[\[\{\"\}].*[\]\}\"]$/), "isJSON");
|
|
1042
|
-
function convertUnconventionalData(t) {
|
|
1043
|
-
if (!isObject3(t))
|
|
1109
|
+
s(Yo, "extractEventHiddenProperties");
|
|
1110
|
+
var Ce = Cr, Ko = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/, yt = /* @__PURE__ */ s((t) => t.match(/^[\[\{\"\}].*[\]\}\"]$/), "is\
|
|
1111
|
+
JSON");
|
|
1112
|
+
function ht(t) {
|
|
1113
|
+
if (!Ce(t))
|
|
1044
1114
|
return t;
|
|
1045
1115
|
let e = t, r = !1;
|
|
1046
|
-
return typeof Event < "u" && t instanceof Event && (e =
|
|
1116
|
+
return typeof Event < "u" && t instanceof Event && (e = Yo(e), r = !0), e = Object.keys(e).reduce((n, o) => {
|
|
1047
1117
|
try {
|
|
1048
|
-
e[
|
|
1118
|
+
e[o] && e[o].toJSON, n[o] = e[o];
|
|
1049
1119
|
} catch {
|
|
1050
1120
|
r = !0;
|
|
1051
1121
|
}
|
|
1052
1122
|
return n;
|
|
1053
1123
|
}, {}), r ? e : t;
|
|
1054
1124
|
}
|
|
1055
|
-
|
|
1056
|
-
var
|
|
1057
|
-
let r, n,
|
|
1058
|
-
return /* @__PURE__ */
|
|
1125
|
+
s(ht, "convertUnconventionalData");
|
|
1126
|
+
var gt = /* @__PURE__ */ s(function(e) {
|
|
1127
|
+
let r, n, o, p;
|
|
1128
|
+
return /* @__PURE__ */ s(function(c, i) {
|
|
1059
1129
|
try {
|
|
1060
1130
|
if (c === "")
|
|
1061
|
-
return
|
|
1062
|
-
let
|
|
1063
|
-
for (;
|
|
1064
|
-
|
|
1131
|
+
return p = [], r = /* @__PURE__ */ new Map([[i, "[]"]]), n = /* @__PURE__ */ new Map(), o = [], i;
|
|
1132
|
+
let l = n.get(this) || this;
|
|
1133
|
+
for (; o.length && l !== o[0]; )
|
|
1134
|
+
o.shift(), p.pop();
|
|
1065
1135
|
if (typeof i == "boolean")
|
|
1066
1136
|
return i;
|
|
1067
1137
|
if (i === void 0)
|
|
@@ -1069,36 +1139,31 @@ tion]";
|
|
|
1069
1139
|
if (i === null)
|
|
1070
1140
|
return null;
|
|
1071
1141
|
if (typeof i == "number")
|
|
1072
|
-
return i ===
|
|
1142
|
+
return i === Number.NEGATIVE_INFINITY ? "_-Infinity_" : i === Number.POSITIVE_INFINITY ? "_Infinity_" : Number.isNaN(i) ? "_NaN_" :
|
|
1143
|
+
i;
|
|
1073
1144
|
if (typeof i == "bigint")
|
|
1074
1145
|
return `_bigint_${i.toString()}`;
|
|
1075
1146
|
if (typeof i == "string")
|
|
1076
|
-
return
|
|
1077
|
-
if ((0,
|
|
1147
|
+
return Ko.test(i) ? e.allowDate ? `_date_${i}` : void 0 : i;
|
|
1148
|
+
if ((0, wr.default)(i))
|
|
1078
1149
|
return e.allowRegExp ? `_regexp_${i.flags}|${i.source}` : void 0;
|
|
1079
|
-
if ((0,
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
let { name: p } = i, y = i.toString();
|
|
1083
|
-
return y.match(
|
|
1084
|
-
/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/
|
|
1085
|
-
) ? `_function_${p}|${(() => {
|
|
1086
|
-
}).toString()}` : `_function_${p}|${cleanCode(convertShorthandMethods(c, y))}`;
|
|
1087
|
-
}
|
|
1088
|
-
if ((0, import_is_symbol.default)(i)) {
|
|
1150
|
+
if ((0, Pr.default)(i))
|
|
1151
|
+
return;
|
|
1152
|
+
if ((0, Or.default)(i)) {
|
|
1089
1153
|
if (!e.allowSymbol)
|
|
1090
1154
|
return;
|
|
1091
|
-
let
|
|
1092
|
-
return
|
|
1155
|
+
let u = Symbol.keyFor(i);
|
|
1156
|
+
return u !== void 0 ? `_gsymbol_${u}` : `_symbol_${i.toString().slice(7, -1)}`;
|
|
1093
1157
|
}
|
|
1094
|
-
if (
|
|
1158
|
+
if (o.length >= e.maxDepth)
|
|
1095
1159
|
return Array.isArray(i) ? `[Array(${i.length})]` : "[Object]";
|
|
1096
1160
|
if (i === this)
|
|
1097
|
-
return `_duplicate_${JSON.stringify(
|
|
1161
|
+
return `_duplicate_${JSON.stringify(p)}`;
|
|
1098
1162
|
if (i instanceof Error && e.allowError)
|
|
1099
1163
|
return {
|
|
1100
1164
|
__isConvertedError__: !0,
|
|
1101
1165
|
errorProperties: {
|
|
1166
|
+
// @ts-expect-error cause is not defined in the current tsconfig target(es2020)
|
|
1102
1167
|
...i.cause ? { cause: i.cause } : {},
|
|
1103
1168
|
...i,
|
|
1104
1169
|
name: i.name,
|
|
@@ -1107,152 +1172,140 @@ tion]";
|
|
|
1107
1172
|
"_constructor-name_": i.constructor.name
|
|
1108
1173
|
}
|
|
1109
1174
|
};
|
|
1110
|
-
if (i
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1175
|
+
if (i?.constructor?.name && i.constructor.name !== "Object" && !Array.isArray(i)) {
|
|
1176
|
+
let u = r.get(i);
|
|
1177
|
+
if (!u) {
|
|
1178
|
+
let y = {
|
|
1179
|
+
__isClassInstance__: !0,
|
|
1180
|
+
__className__: i.constructor.name,
|
|
1181
|
+
...Object.getOwnPropertyNames(i).reduce(
|
|
1182
|
+
(g, h) => {
|
|
1183
|
+
try {
|
|
1184
|
+
g[h] = i[h];
|
|
1185
|
+
} catch {
|
|
1186
|
+
}
|
|
1187
|
+
return g;
|
|
1188
|
+
},
|
|
1189
|
+
{}
|
|
1190
|
+
)
|
|
1191
|
+
};
|
|
1192
|
+
return p.push(c), o.unshift(y), r.set(i, JSON.stringify(p)), i !== y && n.set(i, y), y;
|
|
1193
|
+
}
|
|
1194
|
+
return `_duplicate_${u}`;
|
|
1195
|
+
}
|
|
1196
|
+
let d = r.get(i);
|
|
1197
|
+
if (!d) {
|
|
1198
|
+
let u = Array.isArray(i) ? i : ht(i);
|
|
1199
|
+
return p.push(c), o.unshift(u), r.set(i, JSON.stringify(p)), i !== u && n.set(i, u), u;
|
|
1121
1200
|
}
|
|
1122
|
-
return `_duplicate_${
|
|
1201
|
+
return `_duplicate_${d}`;
|
|
1123
1202
|
} catch {
|
|
1124
1203
|
return;
|
|
1125
1204
|
}
|
|
1126
1205
|
}, "replace");
|
|
1127
|
-
}, "replacer2"),
|
|
1128
|
-
let
|
|
1129
|
-
return /* @__PURE__ */
|
|
1130
|
-
if (
|
|
1131
|
-
let
|
|
1132
|
-
|
|
1133
|
-
})),
|
|
1134
|
-
return
|
|
1135
|
-
if (
|
|
1136
|
-
let { message:
|
|
1137
|
-
return Object.assign(
|
|
1138
|
-
}
|
|
1139
|
-
if (isObject3(value) && value["_constructor-name_"] && options.allowFunction) {
|
|
1140
|
-
let t = value["_constructor-name_"];
|
|
1141
|
-
if (t !== "Object") {
|
|
1142
|
-
let e = new Function(`return function ${t.replace(/[^a-zA-Z0-9$_]+/g, "")}(){}`)();
|
|
1143
|
-
Object.setPrototypeOf(value, new e());
|
|
1144
|
-
}
|
|
1145
|
-
return delete value["_constructor-name_"], value;
|
|
1146
|
-
}
|
|
1147
|
-
if (typeof value == "string" && value.startsWith("_function_") && options.allowFunction) {
|
|
1148
|
-
let [, name, source] = value.match(/_function_([^|]*)\|(.*)/) || [], sourceSanitized = source.replace(/[(\(\))|\\| |\]|`]*$/, "");
|
|
1149
|
-
if (!options.lazyEval)
|
|
1150
|
-
return eval(`(${sourceSanitized})`);
|
|
1151
|
-
let result = /* @__PURE__ */ o((...args) => {
|
|
1152
|
-
let f = eval(`(${sourceSanitized})`);
|
|
1153
|
-
return f(...args);
|
|
1154
|
-
}, "result");
|
|
1155
|
-
return Object.defineProperty(result, "toString", {
|
|
1156
|
-
value: /* @__PURE__ */ o(() => sourceSanitized, "value")
|
|
1157
|
-
}), Object.defineProperty(result, "name", {
|
|
1158
|
-
value: name
|
|
1159
|
-
}), result;
|
|
1206
|
+
}, "replacer2"), mt = /* @__PURE__ */ s(function(e) {
|
|
1207
|
+
let r = [], n;
|
|
1208
|
+
return /* @__PURE__ */ s(function(p, a) {
|
|
1209
|
+
if (p === "" && (n = a, r.forEach(({ target: c, container: i, replacement: l }) => {
|
|
1210
|
+
let d = yt(l) ? JSON.parse(l) : l.split(".");
|
|
1211
|
+
d.length === 0 ? i[c] = n : i[c] = Vo(n, d);
|
|
1212
|
+
})), p === "_constructor-name_")
|
|
1213
|
+
return a;
|
|
1214
|
+
if (Ce(a) && a.__isConvertedError__) {
|
|
1215
|
+
let { message: c, ...i } = a.errorProperties, l = new Error(c);
|
|
1216
|
+
return Object.assign(l, i), l;
|
|
1160
1217
|
}
|
|
1161
|
-
if (typeof
|
|
1162
|
-
let [,
|
|
1163
|
-
return new RegExp(
|
|
1218
|
+
if (typeof a == "string" && a.startsWith("_regexp_") && e.allowRegExp) {
|
|
1219
|
+
let [, c, i] = a.match(/_regexp_([^|]*)\|(.*)/) || [];
|
|
1220
|
+
return new RegExp(i, c);
|
|
1164
1221
|
}
|
|
1165
|
-
return typeof
|
|
1166
|
-
"
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
value;
|
|
1222
|
+
return typeof a == "string" && a.startsWith("_date_") && e.allowDate ? new Date(a.replace("_date_", "")) : typeof a == "string" && a.startsWith(
|
|
1223
|
+
"_duplicate_") ? (r.push({ target: p, container: this, replacement: a.replace(/^_duplicate_/, "") }), null) : typeof a == "string" && a.
|
|
1224
|
+
startsWith("_symbol_") && e.allowSymbol ? Symbol(a.replace("_symbol_", "")) : typeof a == "string" && a.startsWith("_gsymbol_") && e.allowSymbol ?
|
|
1225
|
+
Symbol.for(a.replace("_gsymbol_", "")) : typeof a == "string" && a === "_-Infinity_" ? Number.NEGATIVE_INFINITY : typeof a == "string" &&
|
|
1226
|
+
a === "_Infinity_" ? Number.POSITIVE_INFINITY : typeof a == "string" && a === "_NaN_" ? Number.NaN : typeof a == "string" && a.startsWith(
|
|
1227
|
+
"_bigint_") && typeof BigInt == "function" ? BigInt(a.replace("_bigint_", "")) : a;
|
|
1172
1228
|
}, "revive");
|
|
1173
|
-
}, "
|
|
1229
|
+
}, "reviver2"), vt = {
|
|
1174
1230
|
maxDepth: 10,
|
|
1175
1231
|
space: void 0,
|
|
1176
|
-
allowFunction: !0,
|
|
1177
1232
|
allowRegExp: !0,
|
|
1178
1233
|
allowDate: !0,
|
|
1179
|
-
allowClass: !0,
|
|
1180
1234
|
allowError: !0,
|
|
1181
1235
|
allowUndefined: !0,
|
|
1182
|
-
allowSymbol: !0
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
}, "stringify"), mutator = /* @__PURE__ */ o(() => {
|
|
1236
|
+
allowSymbol: !0
|
|
1237
|
+
}, Xo = /* @__PURE__ */ s((t, e = {}) => {
|
|
1238
|
+
let r = { ...vt, ...e };
|
|
1239
|
+
return JSON.stringify(ht(t), gt(r), e.space);
|
|
1240
|
+
}, "stringify"), Qo = /* @__PURE__ */ s(() => {
|
|
1188
1241
|
let t = /* @__PURE__ */ new Map();
|
|
1189
|
-
return /* @__PURE__ */
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
}), Array.isArray(r) && r.forEach((n,
|
|
1193
|
-
n === "_undefined_" ? (t.set(n, !0), r[
|
|
1242
|
+
return /* @__PURE__ */ s(function e(r) {
|
|
1243
|
+
Ce(r) && Object.entries(r).forEach(([n, o]) => {
|
|
1244
|
+
o === "_undefined_" ? r[n] = void 0 : t.get(o) || (t.set(o, !0), e(o));
|
|
1245
|
+
}), Array.isArray(r) && r.forEach((n, o) => {
|
|
1246
|
+
n === "_undefined_" ? (t.set(n, !0), r[o] = void 0) : t.get(n) || (t.set(n, !0), e(n));
|
|
1194
1247
|
});
|
|
1195
1248
|
}, "mutateUndefined");
|
|
1196
|
-
}, "mutator"),
|
|
1197
|
-
let r = { ...
|
|
1198
|
-
return
|
|
1249
|
+
}, "mutator"), Zo = /* @__PURE__ */ s((t, e = {}) => {
|
|
1250
|
+
let r = { ...vt, ...e }, n = JSON.parse(t, mt(r));
|
|
1251
|
+
return Qo()(n), n;
|
|
1199
1252
|
}, "parse");
|
|
1200
1253
|
});
|
|
1201
1254
|
|
|
1202
1255
|
// src/channels/index.ts
|
|
1203
|
-
var
|
|
1204
|
-
|
|
1205
|
-
Channel: () =>
|
|
1206
|
-
HEARTBEAT_INTERVAL: () =>
|
|
1207
|
-
HEARTBEAT_MAX_LATENCY: () =>
|
|
1208
|
-
PostMessageTransport: () =>
|
|
1209
|
-
WebsocketTransport: () =>
|
|
1210
|
-
createBrowserChannel: () =>
|
|
1211
|
-
default: () =>
|
|
1256
|
+
var as = {};
|
|
1257
|
+
qt(as, {
|
|
1258
|
+
Channel: () => U,
|
|
1259
|
+
HEARTBEAT_INTERVAL: () => De,
|
|
1260
|
+
HEARTBEAT_MAX_LATENCY: () => $e,
|
|
1261
|
+
PostMessageTransport: () => H,
|
|
1262
|
+
WebsocketTransport: () => J,
|
|
1263
|
+
createBrowserChannel: () => is,
|
|
1264
|
+
default: () => ss
|
|
1212
1265
|
});
|
|
1213
|
-
module.exports =
|
|
1214
|
-
var
|
|
1266
|
+
module.exports = Bt(as);
|
|
1267
|
+
var At = require("@storybook/global");
|
|
1215
1268
|
|
|
1216
1269
|
// src/shared/universal-store/index.ts
|
|
1217
|
-
var
|
|
1270
|
+
var j = ee(Be(), 1);
|
|
1218
1271
|
|
|
1219
1272
|
// src/shared/universal-store/instances.ts
|
|
1220
|
-
var
|
|
1273
|
+
var ve = /* @__PURE__ */ new Map();
|
|
1221
1274
|
|
|
1222
1275
|
// src/shared/universal-store/index.ts
|
|
1223
|
-
var
|
|
1276
|
+
var Ht = "UNIVERSAL_STORE:", x = {
|
|
1224
1277
|
PENDING: "PENDING",
|
|
1225
1278
|
RESOLVED: "RESOLVED",
|
|
1226
1279
|
REJECTED: "REJECTED"
|
|
1227
|
-
},
|
|
1280
|
+
}, M = class t {
|
|
1228
1281
|
constructor(e, r) {
|
|
1229
1282
|
/** Enable debug logs for this store */
|
|
1230
1283
|
this.debugging = !1;
|
|
1231
1284
|
// TODO: narrow type of listeners based on event type
|
|
1232
1285
|
this.listeners = /* @__PURE__ */ new Map([["*", /* @__PURE__ */ new Set()]]);
|
|
1233
1286
|
/** Gets the current state */
|
|
1234
|
-
this.getState = /* @__PURE__ */
|
|
1287
|
+
this.getState = /* @__PURE__ */ s(() => (this.debug("getState", { state: this.state }), this.state), "getState");
|
|
1235
1288
|
/**
|
|
1236
1289
|
* Subscribes to store events
|
|
1237
1290
|
*
|
|
1238
1291
|
* @returns A function to unsubscribe
|
|
1239
1292
|
*/
|
|
1240
|
-
this.subscribe = /* @__PURE__ */
|
|
1241
|
-
let n = typeof e == "function",
|
|
1242
|
-
if (this.debug("subscribe", { eventType:
|
|
1293
|
+
this.subscribe = /* @__PURE__ */ s((e, r) => {
|
|
1294
|
+
let n = typeof e == "function", o = n ? "*" : e, p = n ? e : r;
|
|
1295
|
+
if (this.debug("subscribe", { eventType: o, listener: p }), !p)
|
|
1243
1296
|
throw new TypeError(
|
|
1244
1297
|
`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`
|
|
1245
1298
|
);
|
|
1246
|
-
return this.listeners.has(
|
|
1247
|
-
this.debug("unsubscribe", { eventType:
|
|
1248
|
-
get(
|
|
1299
|
+
return this.listeners.has(o) || this.listeners.set(o, /* @__PURE__ */ new Set()), this.listeners.get(o).add(p), () => {
|
|
1300
|
+
this.debug("unsubscribe", { eventType: o, listener: p }), this.listeners.has(o) && (this.listeners.get(o).delete(p), this.listeners.
|
|
1301
|
+
get(o)?.size === 0 && this.listeners.delete(o));
|
|
1249
1302
|
};
|
|
1250
1303
|
}, "subscribe");
|
|
1251
1304
|
/** Sends a custom event to the other stores */
|
|
1252
|
-
this.send = /* @__PURE__ */
|
|
1305
|
+
this.send = /* @__PURE__ */ s((e) => {
|
|
1253
1306
|
if (this.debug("send", { event: e }), this.status !== t.Status.READY)
|
|
1254
1307
|
throw new TypeError(
|
|
1255
|
-
|
|
1308
|
+
j.dedent`Cannot send event before store is ready. You can get the current status with store.status,
|
|
1256
1309
|
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
1257
1310
|
${JSON.stringify(
|
|
1258
1311
|
{
|
|
@@ -1271,43 +1324,41 @@ var Ke = "UNIVERSAL_STORE:", C = {
|
|
|
1271
1324
|
throw new TypeError(
|
|
1272
1325
|
"UniversalStore is not constructable - use UniversalStore.create() instead"
|
|
1273
1326
|
);
|
|
1274
|
-
if (t.isInternalConstructing = !1, this.id = e.id, this.actorId =
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
), this.actorType = e.leader ? t.ActorType.LEADER : t.ActorType.FOLLOWER, this.state = e.initialState, this.channelEventName = `${Ke}${this.
|
|
1278
|
-
id}`, this.debug("constructor", {
|
|
1327
|
+
if (t.isInternalConstructing = !1, this.id = e.id, this.actorId = Date.now().toString(36) + Math.random().toString(36).substring(2), this.
|
|
1328
|
+
actorType = e.leader ? t.ActorType.LEADER : t.ActorType.FOLLOWER, this.state = e.initialState, this.channelEventName = `${Ht}${this.id}`,
|
|
1329
|
+
this.debug("constructor", {
|
|
1279
1330
|
options: e,
|
|
1280
1331
|
environmentOverrides: r,
|
|
1281
1332
|
channelEventName: this.channelEventName
|
|
1282
1333
|
}), this.actor.type === t.ActorType.LEADER)
|
|
1283
1334
|
this.syncing = {
|
|
1284
|
-
state:
|
|
1335
|
+
state: x.RESOLVED,
|
|
1285
1336
|
promise: Promise.resolve()
|
|
1286
1337
|
};
|
|
1287
1338
|
else {
|
|
1288
|
-
let n,
|
|
1289
|
-
n = /* @__PURE__ */
|
|
1290
|
-
this.syncing.state ===
|
|
1291
|
-
}, "syncingResolve"),
|
|
1292
|
-
this.syncing.state ===
|
|
1339
|
+
let n, o, p = new Promise((a, c) => {
|
|
1340
|
+
n = /* @__PURE__ */ s(() => {
|
|
1341
|
+
this.syncing.state === x.PENDING && (this.syncing.state = x.RESOLVED, a());
|
|
1342
|
+
}, "syncingResolve"), o = /* @__PURE__ */ s((i) => {
|
|
1343
|
+
this.syncing.state === x.PENDING && (this.syncing.state = x.REJECTED, c(i));
|
|
1293
1344
|
}, "syncingReject");
|
|
1294
1345
|
});
|
|
1295
1346
|
this.syncing = {
|
|
1296
|
-
state:
|
|
1297
|
-
promise:
|
|
1347
|
+
state: x.PENDING,
|
|
1348
|
+
promise: p,
|
|
1298
1349
|
resolve: n,
|
|
1299
|
-
reject:
|
|
1350
|
+
reject: o
|
|
1300
1351
|
};
|
|
1301
1352
|
}
|
|
1302
1353
|
this.getState = this.getState.bind(this), this.setState = this.setState.bind(this), this.subscribe = this.subscribe.bind(this), this.onStateChange =
|
|
1303
1354
|
this.onStateChange.bind(this), this.send = this.send.bind(this), this.emitToChannel = this.emitToChannel.bind(this), this.prepareThis = this.
|
|
1304
1355
|
prepareThis.bind(this), this.emitToListeners = this.emitToListeners.bind(this), this.handleChannelEvents = this.handleChannelEvents.bind(
|
|
1305
1356
|
this), this.debug = this.debug.bind(this), this.channel = r?.channel ?? t.preparation.channel, this.environment = r?.environment ?? t.preparation.
|
|
1306
|
-
environment, this.channel && this.environment ?
|
|
1307
|
-
promise.then(this.prepareThis);
|
|
1357
|
+
environment, this.channel && this.environment ? (t.preparation.resolve({ channel: this.channel, environment: this.environment }), this.prepareThis(
|
|
1358
|
+
{ channel: this.channel, environment: this.environment })) : t.preparation.promise.then(this.prepareThis);
|
|
1308
1359
|
}
|
|
1309
1360
|
static {
|
|
1310
|
-
|
|
1361
|
+
s(this, "UniversalStore");
|
|
1311
1362
|
}
|
|
1312
1363
|
static {
|
|
1313
1364
|
/**
|
|
@@ -1365,11 +1416,11 @@ var Ke = "UNIVERSAL_STORE:", C = {
|
|
|
1365
1416
|
}
|
|
1366
1417
|
static setupPreparationPromise() {
|
|
1367
1418
|
let e, r, n = new Promise(
|
|
1368
|
-
(
|
|
1369
|
-
e = /* @__PURE__ */
|
|
1370
|
-
a
|
|
1371
|
-
}, "resolveRef"), r = /* @__PURE__ */
|
|
1372
|
-
|
|
1419
|
+
(o, p) => {
|
|
1420
|
+
e = /* @__PURE__ */ s((a) => {
|
|
1421
|
+
o(a);
|
|
1422
|
+
}, "resolveRef"), r = /* @__PURE__ */ s((...a) => {
|
|
1423
|
+
p(a);
|
|
1373
1424
|
}, "rejectRef");
|
|
1374
1425
|
}
|
|
1375
1426
|
);
|
|
@@ -1395,12 +1446,12 @@ var Ke = "UNIVERSAL_STORE:", C = {
|
|
|
1395
1446
|
if (!this.channel || !this.environment)
|
|
1396
1447
|
return t.Status.UNPREPARED;
|
|
1397
1448
|
switch (this.syncing?.state) {
|
|
1398
|
-
case
|
|
1449
|
+
case x.PENDING:
|
|
1399
1450
|
case void 0:
|
|
1400
1451
|
return t.Status.SYNCING;
|
|
1401
|
-
case
|
|
1452
|
+
case x.REJECTED:
|
|
1402
1453
|
return t.Status.ERROR;
|
|
1403
|
-
case
|
|
1454
|
+
case x.RESOLVED:
|
|
1404
1455
|
default:
|
|
1405
1456
|
return t.Status.READY;
|
|
1406
1457
|
}
|
|
@@ -1420,17 +1471,17 @@ var Ke = "UNIVERSAL_STORE:", C = {
|
|
|
1420
1471
|
if (!e || typeof e?.id != "string")
|
|
1421
1472
|
throw new TypeError("id is required and must be a string, when creating a UniversalStore");
|
|
1422
1473
|
e.debug && console.debug(
|
|
1423
|
-
|
|
1474
|
+
j.dedent`[UniversalStore]
|
|
1424
1475
|
create`,
|
|
1425
1476
|
{ options: e }
|
|
1426
1477
|
);
|
|
1427
|
-
let r =
|
|
1478
|
+
let r = ve.get(e.id);
|
|
1428
1479
|
if (r)
|
|
1429
|
-
return console.warn(
|
|
1480
|
+
return console.warn(j.dedent`UniversalStore with id "${e.id}" already exists in this environment, re-using existing.
|
|
1430
1481
|
You should reuse the existing instance instead of trying to create a new one.`), r;
|
|
1431
1482
|
t.isInternalConstructing = !0;
|
|
1432
1483
|
let n = new t(e);
|
|
1433
|
-
return
|
|
1484
|
+
return ve.set(e.id, n), n;
|
|
1434
1485
|
}
|
|
1435
1486
|
/**
|
|
1436
1487
|
* Used by Storybook to set the channel for all instances of UniversalStore in the given
|
|
@@ -1450,7 +1501,7 @@ var Ke = "UNIVERSAL_STORE:", C = {
|
|
|
1450
1501
|
let r = this.state, n = typeof e == "function" ? e(r) : e;
|
|
1451
1502
|
if (this.debug("setState", { newState: n, previousState: r, updater: e }), this.status !== t.Status.READY)
|
|
1452
1503
|
throw new TypeError(
|
|
1453
|
-
|
|
1504
|
+
j.dedent`Cannot set state before store is ready. You can get the current status with store.status,
|
|
1454
1505
|
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
1455
1506
|
${JSON.stringify(
|
|
1456
1507
|
{
|
|
@@ -1464,14 +1515,14 @@ var Ke = "UNIVERSAL_STORE:", C = {
|
|
|
1464
1515
|
)}`
|
|
1465
1516
|
);
|
|
1466
1517
|
this.state = n;
|
|
1467
|
-
let
|
|
1518
|
+
let o = {
|
|
1468
1519
|
type: t.InternalEventType.SET_STATE,
|
|
1469
1520
|
payload: {
|
|
1470
1521
|
state: n,
|
|
1471
1522
|
previousState: r
|
|
1472
1523
|
}
|
|
1473
1524
|
};
|
|
1474
|
-
this.emitToChannel(
|
|
1525
|
+
this.emitToChannel(o, { actor: this.actor }), this.emitToListeners(o, { actor: this.actor });
|
|
1475
1526
|
}
|
|
1476
1527
|
/**
|
|
1477
1528
|
* Subscribes to state changes
|
|
@@ -1516,14 +1567,14 @@ var Ke = "UNIVERSAL_STORE:", C = {
|
|
|
1516
1567
|
}, 1e3));
|
|
1517
1568
|
}
|
|
1518
1569
|
emitToListeners(e, r) {
|
|
1519
|
-
let n = this.listeners.get(e.type),
|
|
1570
|
+
let n = this.listeners.get(e.type), o = this.listeners.get("*");
|
|
1520
1571
|
this.debug("emitToListeners", {
|
|
1521
1572
|
event: e,
|
|
1522
1573
|
eventInfo: r,
|
|
1523
1574
|
eventTypeListeners: n,
|
|
1524
|
-
everythingListeners:
|
|
1525
|
-
}), [...n ?? [], ...
|
|
1526
|
-
(
|
|
1575
|
+
everythingListeners: o
|
|
1576
|
+
}), [...n ?? [], ...o ?? []].forEach(
|
|
1577
|
+
(p) => p(e, r)
|
|
1527
1578
|
);
|
|
1528
1579
|
}
|
|
1529
1580
|
handleChannelEvents(e) {
|
|
@@ -1531,28 +1582,28 @@ var Ke = "UNIVERSAL_STORE:", C = {
|
|
|
1531
1582
|
if ([n.actor.id, n.forwardingActor?.id].includes(this.actor.id)) {
|
|
1532
1583
|
this.debug("handleChannelEvents: Ignoring event from self", { channelEvent: e });
|
|
1533
1584
|
return;
|
|
1534
|
-
} else if (this.syncing?.state ===
|
|
1585
|
+
} else if (this.syncing?.state === x.PENDING && r.type !== t.InternalEventType.EXISTING_STATE_RESPONSE) {
|
|
1535
1586
|
this.debug("handleChannelEvents: Ignoring event while syncing", { channelEvent: e });
|
|
1536
1587
|
return;
|
|
1537
1588
|
}
|
|
1538
1589
|
if (this.debug("handleChannelEvents", { channelEvent: e }), this.actor.type === t.ActorType.LEADER) {
|
|
1539
|
-
let
|
|
1590
|
+
let o = !0;
|
|
1540
1591
|
switch (r.type) {
|
|
1541
1592
|
case t.InternalEventType.EXISTING_STATE_REQUEST:
|
|
1542
|
-
|
|
1543
|
-
let
|
|
1593
|
+
o = !1;
|
|
1594
|
+
let p = {
|
|
1544
1595
|
type: t.InternalEventType.EXISTING_STATE_RESPONSE,
|
|
1545
1596
|
payload: this.state
|
|
1546
1597
|
};
|
|
1547
1598
|
this.debug("handleChannelEvents: responding to existing state request", {
|
|
1548
|
-
responseEvent:
|
|
1549
|
-
}), this.emitToChannel(
|
|
1599
|
+
responseEvent: p
|
|
1600
|
+
}), this.emitToChannel(p, { actor: this.actor }), this.emitToListeners(p, { actor: this.actor });
|
|
1550
1601
|
break;
|
|
1551
1602
|
case t.InternalEventType.LEADER_CREATED:
|
|
1552
|
-
|
|
1603
|
+
o = !1, this.syncing.state = x.REJECTED, this.debug("handleChannelEvents: erroring due to second leader being created", {
|
|
1553
1604
|
event: r
|
|
1554
1605
|
}), console.error(
|
|
1555
|
-
|
|
1606
|
+
j.dedent`Detected multiple UniversalStore leaders created with the same id "${this.id}".
|
|
1556
1607
|
Only one leader can exists at a time, your stores are now in an invalid state.
|
|
1557
1608
|
Leaders detected:
|
|
1558
1609
|
this: ${JSON.stringify(this.actor, null, 2)}
|
|
@@ -1560,7 +1611,7 @@ var Ke = "UNIVERSAL_STORE:", C = {
|
|
|
1560
1611
|
);
|
|
1561
1612
|
break;
|
|
1562
1613
|
}
|
|
1563
|
-
|
|
1614
|
+
o && (this.debug("handleChannelEvents: forwarding event", { channelEvent: e }), this.emitToChannel(r, { actor: n.actor, forwardingActor: this.
|
|
1564
1615
|
actor }));
|
|
1565
1616
|
}
|
|
1566
1617
|
if (this.actor.type === t.ActorType.FOLLOWER)
|
|
@@ -1568,17 +1619,17 @@ var Ke = "UNIVERSAL_STORE:", C = {
|
|
|
1568
1619
|
case t.InternalEventType.EXISTING_STATE_RESPONSE:
|
|
1569
1620
|
if (this.debug("handleChannelEvents: Setting state from leader's existing state response", {
|
|
1570
1621
|
event: r
|
|
1571
|
-
}), this.syncing?.state !==
|
|
1622
|
+
}), this.syncing?.state !== x.PENDING)
|
|
1572
1623
|
break;
|
|
1573
1624
|
this.syncing.resolve?.();
|
|
1574
|
-
let
|
|
1625
|
+
let o = {
|
|
1575
1626
|
type: t.InternalEventType.SET_STATE,
|
|
1576
1627
|
payload: {
|
|
1577
1628
|
state: r.payload,
|
|
1578
1629
|
previousState: this.state
|
|
1579
1630
|
}
|
|
1580
1631
|
};
|
|
1581
|
-
this.state = r.payload, this.emitToListeners(
|
|
1632
|
+
this.state = r.payload, this.emitToListeners(o, n);
|
|
1582
1633
|
break;
|
|
1583
1634
|
}
|
|
1584
1635
|
switch (r.type) {
|
|
@@ -1590,7 +1641,7 @@ var Ke = "UNIVERSAL_STORE:", C = {
|
|
|
1590
1641
|
}
|
|
1591
1642
|
debug(e, r) {
|
|
1592
1643
|
this.debugging && console.debug(
|
|
1593
|
-
|
|
1644
|
+
j.dedent`[UniversalStore::${this.id}::${this.environment ?? t.Environment.UNKNOWN}]
|
|
1594
1645
|
${e}`,
|
|
1595
1646
|
JSON.stringify(
|
|
1596
1647
|
{
|
|
@@ -1615,21 +1666,21 @@ var Ke = "UNIVERSAL_STORE:", C = {
|
|
|
1615
1666
|
};
|
|
1616
1667
|
|
|
1617
1668
|
// src/channels/main.ts
|
|
1618
|
-
var
|
|
1619
|
-
nerateRandomId"),
|
|
1669
|
+
var Vt = /* @__PURE__ */ s((t) => t.transports !== void 0, "isMulti"), Jt = /* @__PURE__ */ s(() => Math.random().toString(16).slice(2), "ge\
|
|
1670
|
+
nerateRandomId"), U = class {
|
|
1620
1671
|
constructor(e = {}) {
|
|
1621
|
-
this.sender =
|
|
1672
|
+
this.sender = Jt();
|
|
1622
1673
|
this.events = {};
|
|
1623
1674
|
this.data = {};
|
|
1624
1675
|
this.transports = [];
|
|
1625
|
-
this.isAsync = e.async || !1,
|
|
1676
|
+
this.isAsync = e.async || !1, Vt(e) ? (this.transports = e.transports || [], this.transports.forEach((r) => {
|
|
1626
1677
|
r.setHandler((n) => this.handleEvent(n));
|
|
1627
1678
|
})) : this.transports = e.transport ? [e.transport] : [], this.transports.forEach((r) => {
|
|
1628
1679
|
r.setHandler((n) => this.handleEvent(n));
|
|
1629
1680
|
});
|
|
1630
1681
|
}
|
|
1631
1682
|
static {
|
|
1632
|
-
|
|
1683
|
+
s(this, "Channel");
|
|
1633
1684
|
}
|
|
1634
1685
|
get hasTransport() {
|
|
1635
1686
|
return this.transports.length > 0;
|
|
@@ -1638,14 +1689,14 @@ nerateRandomId"), $ = class {
|
|
|
1638
1689
|
this.events[e] = this.events[e] || [], this.events[e].push(r);
|
|
1639
1690
|
}
|
|
1640
1691
|
emit(e, ...r) {
|
|
1641
|
-
let n = { type: e, args: r, from: this.sender },
|
|
1642
|
-
r.length >= 1 && r[0] && r[0].options && (
|
|
1643
|
-
let
|
|
1644
|
-
this.transports.forEach((
|
|
1645
|
-
|
|
1692
|
+
let n = { type: e, args: r, from: this.sender }, o = {};
|
|
1693
|
+
r.length >= 1 && r[0] && r[0].options && (o = r[0].options);
|
|
1694
|
+
let p = /* @__PURE__ */ s(() => {
|
|
1695
|
+
this.transports.forEach((a) => {
|
|
1696
|
+
a.send(n, o);
|
|
1646
1697
|
}), this.handleEvent(n);
|
|
1647
1698
|
}, "handler");
|
|
1648
|
-
this.isAsync ? setImmediate(
|
|
1699
|
+
this.isAsync ? setImmediate(p) : p();
|
|
1649
1700
|
}
|
|
1650
1701
|
last(e) {
|
|
1651
1702
|
return this.data[e];
|
|
@@ -1669,7 +1720,7 @@ nerateRandomId"), $ = class {
|
|
|
1669
1720
|
}
|
|
1670
1721
|
removeListener(e, r) {
|
|
1671
1722
|
let n = this.listeners(e);
|
|
1672
|
-
n && (this.events[e] = n.filter((
|
|
1723
|
+
n && (this.events[e] = n.filter((o) => o !== r));
|
|
1673
1724
|
}
|
|
1674
1725
|
on(e, r) {
|
|
1675
1726
|
this.addListener(e, r);
|
|
@@ -1684,59 +1735,60 @@ nerateRandomId"), $ = class {
|
|
|
1684
1735
|
}), this.data[e.type] = e.args;
|
|
1685
1736
|
}
|
|
1686
1737
|
onceListener(e, r) {
|
|
1687
|
-
let n = /* @__PURE__ */
|
|
1738
|
+
let n = /* @__PURE__ */ s((...o) => (this.removeListener(e, n), r(...o)), "onceListener");
|
|
1688
1739
|
return n;
|
|
1689
1740
|
}
|
|
1690
1741
|
};
|
|
1691
1742
|
|
|
1692
1743
|
// src/channels/postmessage/index.ts
|
|
1693
|
-
var
|
|
1744
|
+
var B = require("storybook/internal/client-logger"), ts = ee(require("storybook/internal/core-events"), 1), _ = require("@storybook/global"),
|
|
1745
|
+
V = ee(Ne(), 1);
|
|
1694
1746
|
|
|
1695
1747
|
// ../node_modules/tiny-invariant/dist/esm/tiny-invariant.js
|
|
1696
|
-
var
|
|
1697
|
-
function
|
|
1748
|
+
var es = process.env.NODE_ENV === "production", Ie = "Invariant failed";
|
|
1749
|
+
function oe(t, e) {
|
|
1698
1750
|
if (!t) {
|
|
1699
|
-
if (
|
|
1700
|
-
throw new Error(
|
|
1701
|
-
var r = typeof e == "function" ? e() : e, n = r ? "".concat(
|
|
1751
|
+
if (es)
|
|
1752
|
+
throw new Error(Ie);
|
|
1753
|
+
var r = typeof e == "function" ? e() : e, n = r ? "".concat(Ie, ": ").concat(r) : Ie;
|
|
1702
1754
|
throw new Error(n);
|
|
1703
1755
|
}
|
|
1704
1756
|
}
|
|
1705
|
-
|
|
1757
|
+
s(oe, "invariant");
|
|
1706
1758
|
|
|
1707
1759
|
// src/channels/postmessage/getEventSourceUrl.ts
|
|
1708
|
-
var
|
|
1709
|
-
var
|
|
1760
|
+
var _t = require("storybook/internal/client-logger");
|
|
1761
|
+
var bt = /* @__PURE__ */ s((t) => {
|
|
1710
1762
|
let e = Array.from(
|
|
1711
1763
|
document.querySelectorAll("iframe[data-is-storybook]")
|
|
1712
|
-
), [r, ...n] = e.filter((
|
|
1764
|
+
), [r, ...n] = e.filter((p) => {
|
|
1713
1765
|
try {
|
|
1714
|
-
return
|
|
1766
|
+
return p.contentWindow?.location.origin === t.source.location.origin && p.contentWindow?.location.pathname === t.source.location.pathname;
|
|
1715
1767
|
} catch {
|
|
1716
1768
|
}
|
|
1717
1769
|
try {
|
|
1718
|
-
return
|
|
1770
|
+
return p.contentWindow === t.source;
|
|
1719
1771
|
} catch {
|
|
1720
1772
|
}
|
|
1721
|
-
let
|
|
1773
|
+
let a = p.getAttribute("src"), c;
|
|
1722
1774
|
try {
|
|
1723
|
-
if (!
|
|
1775
|
+
if (!a)
|
|
1724
1776
|
return !1;
|
|
1725
|
-
({ origin: c } = new URL(
|
|
1777
|
+
({ origin: c } = new URL(a, document.location.toString()));
|
|
1726
1778
|
} catch {
|
|
1727
1779
|
return !1;
|
|
1728
1780
|
}
|
|
1729
1781
|
return c === t.origin;
|
|
1730
|
-
}),
|
|
1731
|
-
if (
|
|
1732
|
-
let { protocol:
|
|
1733
|
-
return `${
|
|
1782
|
+
}), o = r?.getAttribute("src");
|
|
1783
|
+
if (o && n.length === 0) {
|
|
1784
|
+
let { protocol: p, host: a, pathname: c } = new URL(o, document.location.toString());
|
|
1785
|
+
return `${p}//${a}${c}`;
|
|
1734
1786
|
}
|
|
1735
|
-
return n.length > 0 &&
|
|
1787
|
+
return n.length > 0 && _t.logger.error("found multiple candidates for event source"), null;
|
|
1736
1788
|
}, "getEventSourceUrl");
|
|
1737
1789
|
|
|
1738
1790
|
// src/channels/postmessage/index.ts
|
|
1739
|
-
var { document:
|
|
1791
|
+
var { document: Re, location: je } = _.global, St = "storybook-channel", rs = { maxDepth: 25 }, H = class {
|
|
1740
1792
|
constructor(e) {
|
|
1741
1793
|
this.config = e;
|
|
1742
1794
|
this.connected = !1;
|
|
@@ -1745,7 +1797,7 @@ var { document: se, location: le } = _.global, we = "storybook-channel", nt = {
|
|
|
1745
1797
|
throw new Error(`postmsg-channel: "config.page" cannot be "${e.page}"`);
|
|
1746
1798
|
}
|
|
1747
1799
|
static {
|
|
1748
|
-
|
|
1800
|
+
s(this, "PostMessageTransport");
|
|
1749
1801
|
}
|
|
1750
1802
|
setHandler(e) {
|
|
1751
1803
|
this.handler = (...r) => {
|
|
@@ -1762,49 +1814,43 @@ var { document: se, location: le } = _.global, we = "storybook-channel", nt = {
|
|
|
1762
1814
|
let {
|
|
1763
1815
|
target: n,
|
|
1764
1816
|
// telejson options
|
|
1765
|
-
allowRegExp:
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
space: y,
|
|
1774
|
-
lazyEval: d
|
|
1775
|
-
} = r || {}, v = Object.fromEntries(
|
|
1817
|
+
allowRegExp: o,
|
|
1818
|
+
allowSymbol: p,
|
|
1819
|
+
allowDate: a,
|
|
1820
|
+
allowError: c,
|
|
1821
|
+
allowUndefined: i,
|
|
1822
|
+
maxDepth: l,
|
|
1823
|
+
space: d
|
|
1824
|
+
} = r || {}, u = Object.fromEntries(
|
|
1776
1825
|
Object.entries({
|
|
1777
|
-
allowRegExp:
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
}).filter(([D, L]) => typeof L < "u")
|
|
1788
|
-
), w = {
|
|
1789
|
-
...nt,
|
|
1826
|
+
allowRegExp: o,
|
|
1827
|
+
allowSymbol: p,
|
|
1828
|
+
allowDate: a,
|
|
1829
|
+
allowError: c,
|
|
1830
|
+
allowUndefined: i,
|
|
1831
|
+
maxDepth: l,
|
|
1832
|
+
space: d
|
|
1833
|
+
}).filter(([w, A]) => typeof A < "u")
|
|
1834
|
+
), y = {
|
|
1835
|
+
...rs,
|
|
1790
1836
|
..._.global.CHANNEL_OPTIONS || {},
|
|
1791
|
-
...
|
|
1792
|
-
},
|
|
1837
|
+
...u
|
|
1838
|
+
}, g = this.getFrames(n), h = new URLSearchParams(je?.search || ""), C = (0, V.stringify)(
|
|
1793
1839
|
{
|
|
1794
|
-
key:
|
|
1840
|
+
key: St,
|
|
1795
1841
|
event: e,
|
|
1796
|
-
refId:
|
|
1842
|
+
refId: h.get("refId")
|
|
1797
1843
|
},
|
|
1798
|
-
|
|
1844
|
+
y
|
|
1799
1845
|
);
|
|
1800
|
-
return
|
|
1846
|
+
return g.length ? (this.buffer.length && this.flush(), g.forEach((w) => {
|
|
1801
1847
|
try {
|
|
1802
|
-
|
|
1848
|
+
w.postMessage(C, "*");
|
|
1803
1849
|
} catch {
|
|
1804
|
-
|
|
1850
|
+
B.logger.error("sending over postmessage fail");
|
|
1805
1851
|
}
|
|
1806
|
-
}), Promise.resolve(null)) : new Promise((
|
|
1807
|
-
this.buffer.push({ event: e, resolve:
|
|
1852
|
+
}), Promise.resolve(null)) : new Promise((w, A) => {
|
|
1853
|
+
this.buffer.push({ event: e, resolve: w, reject: A });
|
|
1808
1854
|
});
|
|
1809
1855
|
}
|
|
1810
1856
|
flush() {
|
|
@@ -1816,10 +1862,10 @@ var { document: se, location: le } = _.global, we = "storybook-channel", nt = {
|
|
|
1816
1862
|
getFrames(e) {
|
|
1817
1863
|
if (this.config.page === "manager") {
|
|
1818
1864
|
let n = Array.from(
|
|
1819
|
-
|
|
1820
|
-
).flatMap((
|
|
1865
|
+
Re.querySelectorAll("iframe[data-is-storybook][data-is-loaded]")
|
|
1866
|
+
).flatMap((o) => {
|
|
1821
1867
|
try {
|
|
1822
|
-
return
|
|
1868
|
+
return o.contentWindow && o.dataset.isStorybook !== void 0 && o.id === e ? [o.contentWindow] : [];
|
|
1823
1869
|
} catch {
|
|
1824
1870
|
return [];
|
|
1825
1871
|
}
|
|
@@ -1830,71 +1876,71 @@ var { document: se, location: le } = _.global, we = "storybook-channel", nt = {
|
|
|
1830
1876
|
}
|
|
1831
1877
|
getCurrentFrames() {
|
|
1832
1878
|
return this.config.page === "manager" ? Array.from(
|
|
1833
|
-
|
|
1879
|
+
Re.querySelectorAll('[data-is-storybook="true"]')
|
|
1834
1880
|
).flatMap((r) => r.contentWindow ? [r.contentWindow] : []) : _.global && _.global.parent ? [_.global.parent] : [];
|
|
1835
1881
|
}
|
|
1836
1882
|
getLocalFrame() {
|
|
1837
1883
|
return this.config.page === "manager" ? Array.from(
|
|
1838
|
-
|
|
1884
|
+
Re.querySelectorAll("#storybook-preview-iframe")
|
|
1839
1885
|
).flatMap((r) => r.contentWindow ? [r.contentWindow] : []) : _.global && _.global.parent ? [_.global.parent] : [];
|
|
1840
1886
|
}
|
|
1841
1887
|
handleEvent(e) {
|
|
1842
1888
|
try {
|
|
1843
|
-
let { data: r } = e, { key: n, event:
|
|
1889
|
+
let { data: r } = e, { key: n, event: o, refId: p } = typeof r == "string" && (0, V.isJSON)(r) ? (0, V.parse)(r, _.global.CHANNEL_OPTIONS ||
|
|
1844
1890
|
{}) : r;
|
|
1845
|
-
if (n ===
|
|
1846
|
-
let
|
|
1847
|
-
1EA7FD; background: black"> preview </span>', c = Object.values(
|
|
1848
|
-
pan style="color: #FFAE00">${
|
|
1849
|
-
if (
|
|
1850
|
-
|
|
1851
|
-
`${
|
|
1891
|
+
if (n === St) {
|
|
1892
|
+
let a = this.config.page === "manager" ? '<span style="color: #37D5D3; background: black"> manager </span>' : '<span style="color: #\
|
|
1893
|
+
1EA7FD; background: black"> preview </span>', c = Object.values(ts).includes(o.type) ? `<span style="color: #FF4785">${o.type}</span>` : `<s\
|
|
1894
|
+
pan style="color: #FFAE00">${o.type}</span>`;
|
|
1895
|
+
if (p && (o.refId = p), o.source = this.config.page === "preview" ? e.origin : bt(e), !o.source) {
|
|
1896
|
+
B.pretty.error(
|
|
1897
|
+
`${a} received ${c} but was unable to determine the source of the event`
|
|
1852
1898
|
);
|
|
1853
1899
|
return;
|
|
1854
1900
|
}
|
|
1855
|
-
let i = `${
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
...
|
|
1859
|
-
),
|
|
1901
|
+
let i = `${a} received ${c} (${r.length})`;
|
|
1902
|
+
B.pretty.debug(
|
|
1903
|
+
je.origin !== o.source ? i : `${i} <span style="color: gray">(on ${je.origin} from ${o.source})</span>`,
|
|
1904
|
+
...o.args
|
|
1905
|
+
), oe(this.handler, "ChannelHandler should be set"), this.handler(o);
|
|
1860
1906
|
}
|
|
1861
1907
|
} catch (r) {
|
|
1862
|
-
|
|
1908
|
+
B.logger.error(r);
|
|
1863
1909
|
}
|
|
1864
1910
|
}
|
|
1865
1911
|
};
|
|
1866
1912
|
|
|
1867
1913
|
// src/channels/websocket/index.ts
|
|
1868
|
-
var
|
|
1869
|
-
var { WebSocket:
|
|
1914
|
+
var Tt = ee(require("storybook/internal/core-events"), 1), Le = require("@storybook/global"), z = ee(Ne(), 1);
|
|
1915
|
+
var { WebSocket: ns } = Le.global, De = 15e3, $e = 5e3, J = class {
|
|
1870
1916
|
constructor({ url: e, onError: r, page: n }) {
|
|
1871
1917
|
this.buffer = [];
|
|
1872
1918
|
this.isReady = !1;
|
|
1873
1919
|
this.isClosed = !1;
|
|
1874
1920
|
this.pingTimeout = 0;
|
|
1875
|
-
this.socket = new
|
|
1921
|
+
this.socket = new ns(e), this.socket.onopen = () => {
|
|
1876
1922
|
this.isReady = !0, this.heartbeat(), this.flush();
|
|
1877
|
-
}, this.socket.onmessage = ({ data:
|
|
1878
|
-
let
|
|
1879
|
-
|
|
1923
|
+
}, this.socket.onmessage = ({ data: o }) => {
|
|
1924
|
+
let p = typeof o == "string" && (0, z.isJSON)(o) ? (0, z.parse)(o) : o;
|
|
1925
|
+
oe(this.handler, "WebsocketTransport handler should be set"), this.handler(p), p.type === "ping" && (this.heartbeat(), this.send({ type: "\
|
|
1880
1926
|
pong" }));
|
|
1881
|
-
}, this.socket.onerror = (
|
|
1882
|
-
r && r(
|
|
1883
|
-
}, this.socket.onclose = (
|
|
1884
|
-
|
|
1885
|
-
type:
|
|
1886
|
-
args: [{ reason:
|
|
1927
|
+
}, this.socket.onerror = (o) => {
|
|
1928
|
+
r && r(o);
|
|
1929
|
+
}, this.socket.onclose = (o) => {
|
|
1930
|
+
oe(this.handler, "WebsocketTransport handler should be set"), this.handler({
|
|
1931
|
+
type: Tt.CHANNEL_WS_DISCONNECT,
|
|
1932
|
+
args: [{ reason: o.reason, code: o.code }],
|
|
1887
1933
|
from: n || "preview"
|
|
1888
1934
|
}), this.isClosed = !0, clearTimeout(this.pingTimeout);
|
|
1889
1935
|
};
|
|
1890
1936
|
}
|
|
1891
1937
|
static {
|
|
1892
|
-
|
|
1938
|
+
s(this, "WebsocketTransport");
|
|
1893
1939
|
}
|
|
1894
1940
|
heartbeat() {
|
|
1895
1941
|
clearTimeout(this.pingTimeout), this.pingTimeout = setTimeout(() => {
|
|
1896
1942
|
this.socket.close(3008, "timeout");
|
|
1897
|
-
},
|
|
1943
|
+
}, De + $e);
|
|
1898
1944
|
}
|
|
1899
1945
|
setHandler(e) {
|
|
1900
1946
|
this.handler = e;
|
|
@@ -1906,10 +1952,9 @@ pong" }));
|
|
|
1906
1952
|
this.buffer.push(e);
|
|
1907
1953
|
}
|
|
1908
1954
|
sendNow(e) {
|
|
1909
|
-
let r = (0,
|
|
1955
|
+
let r = (0, z.stringify)(e, {
|
|
1910
1956
|
maxDepth: 15,
|
|
1911
|
-
|
|
1912
|
-
...ce.global.CHANNEL_OPTIONS
|
|
1957
|
+
...Le.global.CHANNEL_OPTIONS
|
|
1913
1958
|
});
|
|
1914
1959
|
this.socket.send(r);
|
|
1915
1960
|
}
|
|
@@ -1920,19 +1965,19 @@ pong" }));
|
|
|
1920
1965
|
};
|
|
1921
1966
|
|
|
1922
1967
|
// src/channels/index.ts
|
|
1923
|
-
var { CONFIG_TYPE:
|
|
1924
|
-
function
|
|
1925
|
-
let r = [new
|
|
1926
|
-
if (
|
|
1927
|
-
let
|
|
1968
|
+
var { CONFIG_TYPE: os } = At.global, ss = U;
|
|
1969
|
+
function is({ page: t, extraTransports: e = [] }) {
|
|
1970
|
+
let r = [new H({ page: t }), ...e];
|
|
1971
|
+
if (os === "DEVELOPMENT") {
|
|
1972
|
+
let o = window.location.protocol === "http:" ? "ws" : "wss", { hostname: p, port: a } = window.location, c = `${o}://${p}:${a}/storybook\
|
|
1928
1973
|
-server-channel`;
|
|
1929
|
-
r.push(new
|
|
1974
|
+
r.push(new J({ url: c, onError: /* @__PURE__ */ s(() => {
|
|
1930
1975
|
}, "onError"), page: t }));
|
|
1931
1976
|
}
|
|
1932
|
-
let n = new
|
|
1933
|
-
return
|
|
1977
|
+
let n = new U({ transports: r });
|
|
1978
|
+
return M.__prepare(
|
|
1934
1979
|
n,
|
|
1935
|
-
t === "manager" ?
|
|
1980
|
+
t === "manager" ? M.Environment.MANAGER : M.Environment.PREVIEW
|
|
1936
1981
|
), n;
|
|
1937
1982
|
}
|
|
1938
|
-
|
|
1983
|
+
s(is, "createBrowserChannel");
|