@machinemetrics/mm-react-embeddable 1.0.7 → 1.0.8
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/dist/mm-react-embeddable.cjs.js +12 -12
- package/dist/mm-react-embeddable.es.js +413 -440
- package/dist/mm-react-embeddable.umd.js +12 -12
- package/package.json +6 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
var
|
|
1
|
+
import Je, { createContext as Er, useState as z, useRef as X, useCallback as Y, useEffect as A, useMemo as Rr, useContext as Ke } from "react";
|
|
2
|
+
import H from "prop-types";
|
|
3
|
+
import Ve from "styled-components";
|
|
4
|
+
var ye = { exports: {} }, N = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
7
7
|
* react-jsx-runtime.production.min.js
|
|
@@ -11,21 +11,21 @@ var Ee = { exports: {} }, G = {};
|
|
|
11
11
|
* This source code is licensed under the MIT license found in the
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
|
-
var
|
|
15
|
-
function
|
|
16
|
-
if (
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
function
|
|
20
|
-
var b,
|
|
21
|
-
w !== void 0 && (j = "" + w),
|
|
22
|
-
for (b in
|
|
23
|
-
if (
|
|
24
|
-
return { $$typeof:
|
|
14
|
+
var qe;
|
|
15
|
+
function _r() {
|
|
16
|
+
if (qe) return N;
|
|
17
|
+
qe = 1;
|
|
18
|
+
var f = Je, g = Symbol.for("react.element"), T = Symbol.for("react.fragment"), p = Object.prototype.hasOwnProperty, _ = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
19
|
+
function k(S, h, w) {
|
|
20
|
+
var b, O = {}, j = null, I = null;
|
|
21
|
+
w !== void 0 && (j = "" + w), h.key !== void 0 && (j = "" + h.key), h.ref !== void 0 && (I = h.ref);
|
|
22
|
+
for (b in h) p.call(h, b) && !y.hasOwnProperty(b) && (O[b] = h[b]);
|
|
23
|
+
if (S && S.defaultProps) for (b in h = S.defaultProps, h) O[b] === void 0 && (O[b] = h[b]);
|
|
24
|
+
return { $$typeof: g, type: S, key: j, ref: I, props: O, _owner: _.current };
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return N.Fragment = T, N.jsx = k, N.jsxs = k, N;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
28
|
+
var G = {};
|
|
29
29
|
/**
|
|
30
30
|
* @license React
|
|
31
31
|
* react-jsx-runtime.development.js
|
|
@@ -35,68 +35,68 @@ var H = {};
|
|
|
35
35
|
* This source code is licensed under the MIT license found in the
|
|
36
36
|
* LICENSE file in the root directory of this source tree.
|
|
37
37
|
*/
|
|
38
|
-
var
|
|
39
|
-
function
|
|
40
|
-
return
|
|
41
|
-
var
|
|
42
|
-
function
|
|
38
|
+
var Be;
|
|
39
|
+
function wr() {
|
|
40
|
+
return Be || (Be = 1, process.env.NODE_ENV !== "production" && function() {
|
|
41
|
+
var f = Je, g = Symbol.for("react.element"), T = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), S = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), a = Symbol.iterator, v = "@@iterator";
|
|
42
|
+
function s(e) {
|
|
43
43
|
if (e === null || typeof e != "object")
|
|
44
44
|
return null;
|
|
45
|
-
var r =
|
|
45
|
+
var r = a && e[a] || e[v];
|
|
46
46
|
return typeof r == "function" ? r : null;
|
|
47
47
|
}
|
|
48
|
-
var
|
|
49
|
-
function
|
|
48
|
+
var u = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
49
|
+
function c(e) {
|
|
50
50
|
{
|
|
51
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0),
|
|
52
|
-
t[
|
|
53
|
-
|
|
51
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
52
|
+
t[n - 1] = arguments[n];
|
|
53
|
+
R("error", e, t);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function R(e, r, t) {
|
|
57
57
|
{
|
|
58
|
-
var
|
|
59
|
-
|
|
60
|
-
var
|
|
61
|
-
return String(
|
|
58
|
+
var n = u.ReactDebugCurrentFrame, l = n.getStackAddendum();
|
|
59
|
+
l !== "" && (r += "%s", t = t.concat([l]));
|
|
60
|
+
var d = t.map(function(i) {
|
|
61
|
+
return String(i);
|
|
62
62
|
});
|
|
63
|
-
|
|
63
|
+
d.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, d);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
var
|
|
67
|
-
|
|
68
|
-
function
|
|
69
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
66
|
+
var M = !1, U = !1, D = !1, Q = !1, ee = !1, $;
|
|
67
|
+
$ = Symbol.for("react.module.reference");
|
|
68
|
+
function se(e) {
|
|
69
|
+
return !!(typeof e == "string" || typeof e == "function" || e === p || e === y || ee || e === _ || e === w || e === b || Q || e === I || M || U || D || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === O || e.$$typeof === k || e.$$typeof === S || e.$$typeof === h || // This needs to include all possible module reference object
|
|
70
70
|
// types supported by any Flight configuration anywhere since
|
|
71
71
|
// we don't know which Flight build this will end up being used
|
|
72
72
|
// with.
|
|
73
|
-
e.$$typeof ===
|
|
73
|
+
e.$$typeof === $ || e.getModuleId !== void 0));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
var
|
|
77
|
-
if (
|
|
78
|
-
return
|
|
79
|
-
var
|
|
80
|
-
return
|
|
75
|
+
function ue(e, r, t) {
|
|
76
|
+
var n = e.displayName;
|
|
77
|
+
if (n)
|
|
78
|
+
return n;
|
|
79
|
+
var l = r.displayName || r.name || "";
|
|
80
|
+
return l !== "" ? t + "(" + l + ")" : t;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function B(e) {
|
|
83
83
|
return e.displayName || "Context";
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function F(e) {
|
|
86
86
|
if (e == null)
|
|
87
87
|
return null;
|
|
88
|
-
if (typeof e.tag == "number" &&
|
|
88
|
+
if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
89
89
|
return e.displayName || e.name || null;
|
|
90
90
|
if (typeof e == "string")
|
|
91
91
|
return e;
|
|
92
92
|
switch (e) {
|
|
93
|
-
case
|
|
93
|
+
case p:
|
|
94
94
|
return "Fragment";
|
|
95
|
-
case
|
|
95
|
+
case T:
|
|
96
96
|
return "Portal";
|
|
97
|
-
case h:
|
|
98
|
-
return "Profiler";
|
|
99
97
|
case y:
|
|
98
|
+
return "Profiler";
|
|
99
|
+
case _:
|
|
100
100
|
return "StrictMode";
|
|
101
101
|
case w:
|
|
102
102
|
return "Suspense";
|
|
@@ -105,21 +105,21 @@ function Cr() {
|
|
|
105
105
|
}
|
|
106
106
|
if (typeof e == "object")
|
|
107
107
|
switch (e.$$typeof) {
|
|
108
|
-
case
|
|
108
|
+
case S:
|
|
109
109
|
var r = e;
|
|
110
|
-
return
|
|
111
|
-
case
|
|
110
|
+
return B(r) + ".Consumer";
|
|
111
|
+
case k:
|
|
112
112
|
var t = e;
|
|
113
|
-
return
|
|
114
|
-
case
|
|
115
|
-
return
|
|
116
|
-
case
|
|
117
|
-
var
|
|
118
|
-
return
|
|
113
|
+
return B(t._context) + ".Provider";
|
|
114
|
+
case h:
|
|
115
|
+
return ue(e, e.render, "ForwardRef");
|
|
116
|
+
case O:
|
|
117
|
+
var n = e.displayName || null;
|
|
118
|
+
return n !== null ? n : F(e.type) || "Memo";
|
|
119
119
|
case j: {
|
|
120
|
-
var
|
|
120
|
+
var l = e, d = l._payload, i = l._init;
|
|
121
121
|
try {
|
|
122
|
-
return
|
|
122
|
+
return F(i(d));
|
|
123
123
|
} catch {
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
@@ -127,18 +127,18 @@ function Cr() {
|
|
|
127
127
|
}
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
130
|
-
var W = Object.assign,
|
|
131
|
-
function
|
|
130
|
+
var W = Object.assign, J = 0, Ee, Re, _e, we, Te, Se, Ce;
|
|
131
|
+
function Oe() {
|
|
132
132
|
}
|
|
133
|
-
|
|
134
|
-
function
|
|
133
|
+
Oe.__reactDisabledLog = !0;
|
|
134
|
+
function Ze() {
|
|
135
135
|
{
|
|
136
|
-
if (
|
|
137
|
-
|
|
136
|
+
if (J === 0) {
|
|
137
|
+
Ee = console.log, Re = console.info, _e = console.warn, we = console.error, Te = console.group, Se = console.groupCollapsed, Ce = console.groupEnd;
|
|
138
138
|
var e = {
|
|
139
139
|
configurable: !0,
|
|
140
140
|
enumerable: !0,
|
|
141
|
-
value:
|
|
141
|
+
value: Oe,
|
|
142
142
|
writable: !0
|
|
143
143
|
};
|
|
144
144
|
Object.defineProperties(console, {
|
|
@@ -151,12 +151,12 @@ function Cr() {
|
|
|
151
151
|
groupEnd: e
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
|
|
154
|
+
J++;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function Ne() {
|
|
158
158
|
{
|
|
159
|
-
if (
|
|
159
|
+
if (J--, J === 0) {
|
|
160
160
|
var e = {
|
|
161
161
|
configurable: !0,
|
|
162
162
|
enumerable: !0,
|
|
@@ -164,241 +164,241 @@ function Cr() {
|
|
|
164
164
|
};
|
|
165
165
|
Object.defineProperties(console, {
|
|
166
166
|
log: W({}, e, {
|
|
167
|
-
value:
|
|
167
|
+
value: Ee
|
|
168
168
|
}),
|
|
169
169
|
info: W({}, e, {
|
|
170
|
-
value:
|
|
170
|
+
value: Re
|
|
171
171
|
}),
|
|
172
172
|
warn: W({}, e, {
|
|
173
|
-
value:
|
|
173
|
+
value: _e
|
|
174
174
|
}),
|
|
175
175
|
error: W({}, e, {
|
|
176
|
-
value:
|
|
176
|
+
value: we
|
|
177
177
|
}),
|
|
178
178
|
group: W({}, e, {
|
|
179
|
-
value:
|
|
179
|
+
value: Te
|
|
180
180
|
}),
|
|
181
181
|
groupCollapsed: W({}, e, {
|
|
182
|
-
value:
|
|
182
|
+
value: Se
|
|
183
183
|
}),
|
|
184
184
|
groupEnd: W({}, e, {
|
|
185
|
-
value:
|
|
185
|
+
value: Ce
|
|
186
186
|
})
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
|
-
|
|
189
|
+
J < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
var
|
|
193
|
-
function
|
|
192
|
+
var ce = u.ReactCurrentDispatcher, le;
|
|
193
|
+
function re(e, r, t) {
|
|
194
194
|
{
|
|
195
|
-
if (
|
|
195
|
+
if (le === void 0)
|
|
196
196
|
try {
|
|
197
197
|
throw Error();
|
|
198
|
-
} catch (
|
|
199
|
-
var
|
|
200
|
-
|
|
198
|
+
} catch (l) {
|
|
199
|
+
var n = l.stack.trim().match(/\n( *(at )?)/);
|
|
200
|
+
le = n && n[1] || "";
|
|
201
201
|
}
|
|
202
202
|
return `
|
|
203
|
-
` +
|
|
203
|
+
` + le + e;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
var
|
|
206
|
+
var fe = !1, te;
|
|
207
207
|
{
|
|
208
|
-
var
|
|
209
|
-
|
|
208
|
+
var Ge = typeof WeakMap == "function" ? WeakMap : Map;
|
|
209
|
+
te = new Ge();
|
|
210
210
|
}
|
|
211
|
-
function
|
|
212
|
-
if (!e ||
|
|
211
|
+
function Pe(e, r) {
|
|
212
|
+
if (!e || fe)
|
|
213
213
|
return "";
|
|
214
214
|
{
|
|
215
|
-
var t =
|
|
215
|
+
var t = te.get(e);
|
|
216
216
|
if (t !== void 0)
|
|
217
217
|
return t;
|
|
218
218
|
}
|
|
219
|
-
var
|
|
220
|
-
|
|
221
|
-
var
|
|
219
|
+
var n;
|
|
220
|
+
fe = !0;
|
|
221
|
+
var l = Error.prepareStackTrace;
|
|
222
222
|
Error.prepareStackTrace = void 0;
|
|
223
|
-
var
|
|
224
|
-
|
|
223
|
+
var d;
|
|
224
|
+
d = ce.current, ce.current = null, Ze();
|
|
225
225
|
try {
|
|
226
226
|
if (r) {
|
|
227
|
-
var
|
|
227
|
+
var i = function() {
|
|
228
228
|
throw Error();
|
|
229
229
|
};
|
|
230
|
-
if (Object.defineProperty(
|
|
230
|
+
if (Object.defineProperty(i.prototype, "props", {
|
|
231
231
|
set: function() {
|
|
232
232
|
throw Error();
|
|
233
233
|
}
|
|
234
234
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
235
235
|
try {
|
|
236
|
-
Reflect.construct(
|
|
236
|
+
Reflect.construct(i, []);
|
|
237
237
|
} catch (P) {
|
|
238
|
-
|
|
238
|
+
n = P;
|
|
239
239
|
}
|
|
240
|
-
Reflect.construct(e, [],
|
|
240
|
+
Reflect.construct(e, [], i);
|
|
241
241
|
} else {
|
|
242
242
|
try {
|
|
243
|
-
|
|
243
|
+
i.call();
|
|
244
244
|
} catch (P) {
|
|
245
|
-
|
|
245
|
+
n = P;
|
|
246
246
|
}
|
|
247
|
-
e.call(
|
|
247
|
+
e.call(i.prototype);
|
|
248
248
|
}
|
|
249
249
|
} else {
|
|
250
250
|
try {
|
|
251
251
|
throw Error();
|
|
252
252
|
} catch (P) {
|
|
253
|
-
|
|
253
|
+
n = P;
|
|
254
254
|
}
|
|
255
255
|
e();
|
|
256
256
|
}
|
|
257
257
|
} catch (P) {
|
|
258
|
-
if (P &&
|
|
259
|
-
for (var
|
|
260
|
-
`),
|
|
261
|
-
`), m =
|
|
262
|
-
|
|
263
|
-
for (; m >= 1 &&
|
|
264
|
-
if (
|
|
265
|
-
if (m !== 1 ||
|
|
258
|
+
if (P && n && typeof P.stack == "string") {
|
|
259
|
+
for (var o = P.stack.split(`
|
|
260
|
+
`), C = n.stack.split(`
|
|
261
|
+
`), m = o.length - 1, E = C.length - 1; m >= 1 && E >= 0 && o[m] !== C[E]; )
|
|
262
|
+
E--;
|
|
263
|
+
for (; m >= 1 && E >= 0; m--, E--)
|
|
264
|
+
if (o[m] !== C[E]) {
|
|
265
|
+
if (m !== 1 || E !== 1)
|
|
266
266
|
do
|
|
267
|
-
if (m--,
|
|
268
|
-
var
|
|
269
|
-
` +
|
|
270
|
-
return e.displayName &&
|
|
267
|
+
if (m--, E--, E < 0 || o[m] !== C[E]) {
|
|
268
|
+
var x = `
|
|
269
|
+
` + o[m].replace(" at new ", " at ");
|
|
270
|
+
return e.displayName && x.includes("<anonymous>") && (x = x.replace("<anonymous>", e.displayName)), typeof e == "function" && te.set(e, x), x;
|
|
271
271
|
}
|
|
272
|
-
while (m >= 1 &&
|
|
272
|
+
while (m >= 1 && E >= 0);
|
|
273
273
|
break;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
} finally {
|
|
277
|
-
|
|
277
|
+
fe = !1, ce.current = d, Ne(), Error.prepareStackTrace = l;
|
|
278
278
|
}
|
|
279
|
-
var
|
|
280
|
-
return typeof e == "function" &&
|
|
279
|
+
var q = e ? e.displayName || e.name : "", L = q ? re(q) : "";
|
|
280
|
+
return typeof e == "function" && te.set(e, L), L;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
283
|
-
return
|
|
282
|
+
function ze(e, r, t) {
|
|
283
|
+
return Pe(e, !1);
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function He(e) {
|
|
286
286
|
var r = e.prototype;
|
|
287
287
|
return !!(r && r.isReactComponent);
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function ne(e, r, t) {
|
|
290
290
|
if (e == null)
|
|
291
291
|
return "";
|
|
292
292
|
if (typeof e == "function")
|
|
293
|
-
return
|
|
293
|
+
return Pe(e, He(e));
|
|
294
294
|
if (typeof e == "string")
|
|
295
|
-
return
|
|
295
|
+
return re(e);
|
|
296
296
|
switch (e) {
|
|
297
297
|
case w:
|
|
298
|
-
return
|
|
298
|
+
return re("Suspense");
|
|
299
299
|
case b:
|
|
300
|
-
return
|
|
300
|
+
return re("SuspenseList");
|
|
301
301
|
}
|
|
302
302
|
if (typeof e == "object")
|
|
303
303
|
switch (e.$$typeof) {
|
|
304
|
-
case
|
|
305
|
-
return
|
|
306
|
-
case
|
|
307
|
-
return
|
|
304
|
+
case h:
|
|
305
|
+
return ze(e.render);
|
|
306
|
+
case O:
|
|
307
|
+
return ne(e.type, r, t);
|
|
308
308
|
case j: {
|
|
309
|
-
var
|
|
309
|
+
var n = e, l = n._payload, d = n._init;
|
|
310
310
|
try {
|
|
311
|
-
return
|
|
311
|
+
return ne(d(l), r, t);
|
|
312
312
|
} catch {
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
return "";
|
|
317
317
|
}
|
|
318
|
-
var
|
|
319
|
-
function
|
|
318
|
+
var K = Object.prototype.hasOwnProperty, je = {}, xe = u.ReactDebugCurrentFrame;
|
|
319
|
+
function ae(e) {
|
|
320
320
|
if (e) {
|
|
321
|
-
var r = e._owner, t =
|
|
322
|
-
|
|
321
|
+
var r = e._owner, t = ne(e.type, e._source, r ? r.type : null);
|
|
322
|
+
xe.setExtraStackFrame(t);
|
|
323
323
|
} else
|
|
324
|
-
|
|
324
|
+
xe.setExtraStackFrame(null);
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function Xe(e, r, t, n, l) {
|
|
327
327
|
{
|
|
328
|
-
var
|
|
329
|
-
for (var
|
|
330
|
-
if (
|
|
331
|
-
var
|
|
328
|
+
var d = Function.call.bind(K);
|
|
329
|
+
for (var i in e)
|
|
330
|
+
if (d(e, i)) {
|
|
331
|
+
var o = void 0;
|
|
332
332
|
try {
|
|
333
|
-
if (typeof e[
|
|
334
|
-
var
|
|
335
|
-
throw
|
|
333
|
+
if (typeof e[i] != "function") {
|
|
334
|
+
var C = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
335
|
+
throw C.name = "Invariant Violation", C;
|
|
336
336
|
}
|
|
337
|
-
|
|
337
|
+
o = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
338
338
|
} catch (m) {
|
|
339
|
-
|
|
339
|
+
o = m;
|
|
340
340
|
}
|
|
341
|
-
|
|
341
|
+
o && !(o instanceof Error) && (ae(l), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof o), ae(null)), o instanceof Error && !(o.message in je) && (je[o.message] = !0, ae(l), c("Failed %s type: %s", t, o.message), ae(null));
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
var
|
|
346
|
-
function
|
|
347
|
-
return
|
|
345
|
+
var Qe = Array.isArray;
|
|
346
|
+
function de(e) {
|
|
347
|
+
return Qe(e);
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function er(e) {
|
|
350
350
|
{
|
|
351
351
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
352
352
|
return t;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function rr(e) {
|
|
356
356
|
try {
|
|
357
|
-
return
|
|
357
|
+
return ke(e), !1;
|
|
358
358
|
} catch {
|
|
359
359
|
return !0;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function ke(e) {
|
|
363
363
|
return "" + e;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
366
|
-
if (
|
|
367
|
-
return
|
|
365
|
+
function Fe(e) {
|
|
366
|
+
if (rr(e))
|
|
367
|
+
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", er(e)), ke(e);
|
|
368
368
|
}
|
|
369
|
-
var
|
|
369
|
+
var Z = u.ReactCurrentOwner, tr = {
|
|
370
370
|
key: !0,
|
|
371
371
|
ref: !0,
|
|
372
372
|
__self: !0,
|
|
373
373
|
__source: !0
|
|
374
|
-
}, Me,
|
|
375
|
-
|
|
376
|
-
function
|
|
377
|
-
if (
|
|
374
|
+
}, Me, Ie, ve;
|
|
375
|
+
ve = {};
|
|
376
|
+
function nr(e) {
|
|
377
|
+
if (K.call(e, "ref")) {
|
|
378
378
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
379
379
|
if (r && r.isReactWarning)
|
|
380
380
|
return !1;
|
|
381
381
|
}
|
|
382
382
|
return e.ref !== void 0;
|
|
383
383
|
}
|
|
384
|
-
function
|
|
385
|
-
if (
|
|
384
|
+
function ar(e) {
|
|
385
|
+
if (K.call(e, "key")) {
|
|
386
386
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
387
387
|
if (r && r.isReactWarning)
|
|
388
388
|
return !1;
|
|
389
389
|
}
|
|
390
390
|
return e.key !== void 0;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
393
|
-
if (typeof e.ref == "string" &&
|
|
394
|
-
var t =
|
|
395
|
-
|
|
392
|
+
function or(e, r) {
|
|
393
|
+
if (typeof e.ref == "string" && Z.current && r && Z.current.stateNode !== r) {
|
|
394
|
+
var t = F(Z.current.type);
|
|
395
|
+
ve[t] || (c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(Z.current.type), e.ref), ve[t] = !0);
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function ir(e, r) {
|
|
399
399
|
{
|
|
400
400
|
var t = function() {
|
|
401
|
-
Me || (Me = !0,
|
|
401
|
+
Me || (Me = !0, c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
402
402
|
};
|
|
403
403
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
404
404
|
get: t,
|
|
@@ -406,10 +406,10 @@ function Cr() {
|
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function sr(e, r) {
|
|
410
410
|
{
|
|
411
411
|
var t = function() {
|
|
412
|
-
|
|
412
|
+
Ie || (Ie = !0, c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
413
413
|
};
|
|
414
414
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
415
415
|
get: t,
|
|
@@ -417,70 +417,70 @@ function Cr() {
|
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
var
|
|
421
|
-
var
|
|
420
|
+
var ur = function(e, r, t, n, l, d, i) {
|
|
421
|
+
var o = {
|
|
422
422
|
// This tag allows us to uniquely identify this as a React Element
|
|
423
|
-
$$typeof:
|
|
423
|
+
$$typeof: g,
|
|
424
424
|
// Built-in properties that belong on the element
|
|
425
425
|
type: e,
|
|
426
426
|
key: r,
|
|
427
427
|
ref: t,
|
|
428
|
-
props:
|
|
428
|
+
props: i,
|
|
429
429
|
// Record the component responsible for creating this element.
|
|
430
|
-
_owner:
|
|
430
|
+
_owner: d
|
|
431
431
|
};
|
|
432
|
-
return
|
|
432
|
+
return o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
433
433
|
configurable: !1,
|
|
434
434
|
enumerable: !1,
|
|
435
435
|
writable: !0,
|
|
436
436
|
value: !1
|
|
437
|
-
}), Object.defineProperty(
|
|
437
|
+
}), Object.defineProperty(o, "_self", {
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !1,
|
|
441
|
-
value:
|
|
442
|
-
}), Object.defineProperty(
|
|
441
|
+
value: n
|
|
442
|
+
}), Object.defineProperty(o, "_source", {
|
|
443
443
|
configurable: !1,
|
|
444
444
|
enumerable: !1,
|
|
445
445
|
writable: !1,
|
|
446
|
-
value:
|
|
447
|
-
}), Object.freeze && (Object.freeze(
|
|
446
|
+
value: l
|
|
447
|
+
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
448
448
|
};
|
|
449
|
-
function
|
|
449
|
+
function cr(e, r, t, n, l) {
|
|
450
450
|
{
|
|
451
|
-
var
|
|
452
|
-
t !== void 0 && (
|
|
453
|
-
for (
|
|
454
|
-
|
|
451
|
+
var d, i = {}, o = null, C = null;
|
|
452
|
+
t !== void 0 && (Fe(t), o = "" + t), ar(r) && (Fe(r.key), o = "" + r.key), nr(r) && (C = r.ref, or(r, l));
|
|
453
|
+
for (d in r)
|
|
454
|
+
K.call(r, d) && !tr.hasOwnProperty(d) && (i[d] = r[d]);
|
|
455
455
|
if (e && e.defaultProps) {
|
|
456
456
|
var m = e.defaultProps;
|
|
457
|
-
for (
|
|
458
|
-
|
|
457
|
+
for (d in m)
|
|
458
|
+
i[d] === void 0 && (i[d] = m[d]);
|
|
459
459
|
}
|
|
460
|
-
if (
|
|
461
|
-
var
|
|
462
|
-
|
|
460
|
+
if (o || C) {
|
|
461
|
+
var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
462
|
+
o && ir(i, E), C && sr(i, E);
|
|
463
463
|
}
|
|
464
|
-
return
|
|
464
|
+
return ur(e, o, C, l, n, Z.current, i);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
var
|
|
468
|
-
function
|
|
467
|
+
var pe = u.ReactCurrentOwner, Ae = u.ReactDebugCurrentFrame;
|
|
468
|
+
function V(e) {
|
|
469
469
|
if (e) {
|
|
470
|
-
var r = e._owner, t =
|
|
471
|
-
|
|
470
|
+
var r = e._owner, t = ne(e.type, e._source, r ? r.type : null);
|
|
471
|
+
Ae.setExtraStackFrame(t);
|
|
472
472
|
} else
|
|
473
|
-
|
|
473
|
+
Ae.setExtraStackFrame(null);
|
|
474
474
|
}
|
|
475
|
-
var
|
|
476
|
-
|
|
477
|
-
function
|
|
478
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
475
|
+
var ge;
|
|
476
|
+
ge = !1;
|
|
477
|
+
function be(e) {
|
|
478
|
+
return typeof e == "object" && e !== null && e.$$typeof === g;
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function De() {
|
|
481
481
|
{
|
|
482
|
-
if (
|
|
483
|
-
var e =
|
|
482
|
+
if (pe.current) {
|
|
483
|
+
var e = F(pe.current.type);
|
|
484
484
|
if (e)
|
|
485
485
|
return `
|
|
486
486
|
|
|
@@ -489,13 +489,13 @@ Check the render method of \`` + e + "`.";
|
|
|
489
489
|
return "";
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function lr(e) {
|
|
493
493
|
return "";
|
|
494
494
|
}
|
|
495
|
-
var
|
|
496
|
-
function
|
|
495
|
+
var $e = {};
|
|
496
|
+
function fr(e) {
|
|
497
497
|
{
|
|
498
|
-
var r =
|
|
498
|
+
var r = De();
|
|
499
499
|
if (!r) {
|
|
500
500
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
501
501
|
t && (r = `
|
|
@@ -505,39 +505,39 @@ Check the top-level render call using <` + t + ">.");
|
|
|
505
505
|
return r;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function We(e, r) {
|
|
509
509
|
{
|
|
510
510
|
if (!e._store || e._store.validated || e.key != null)
|
|
511
511
|
return;
|
|
512
512
|
e._store.validated = !0;
|
|
513
|
-
var t =
|
|
514
|
-
if (
|
|
513
|
+
var t = fr(r);
|
|
514
|
+
if ($e[t])
|
|
515
515
|
return;
|
|
516
|
-
|
|
517
|
-
var
|
|
518
|
-
e && e._owner && e._owner !==
|
|
516
|
+
$e[t] = !0;
|
|
517
|
+
var n = "";
|
|
518
|
+
e && e._owner && e._owner !== pe.current && (n = " It was passed a child from " + F(e._owner.type) + "."), V(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), V(null);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function Le(e, r) {
|
|
522
522
|
{
|
|
523
523
|
if (typeof e != "object")
|
|
524
524
|
return;
|
|
525
|
-
if (
|
|
525
|
+
if (de(e))
|
|
526
526
|
for (var t = 0; t < e.length; t++) {
|
|
527
|
-
var
|
|
528
|
-
|
|
527
|
+
var n = e[t];
|
|
528
|
+
be(n) && We(n, r);
|
|
529
529
|
}
|
|
530
|
-
else if (
|
|
530
|
+
else if (be(e))
|
|
531
531
|
e._store && (e._store.validated = !0);
|
|
532
532
|
else if (e) {
|
|
533
|
-
var
|
|
534
|
-
if (typeof
|
|
535
|
-
for (var
|
|
536
|
-
|
|
533
|
+
var l = s(e);
|
|
534
|
+
if (typeof l == "function" && l !== e.entries)
|
|
535
|
+
for (var d = l.call(e), i; !(i = d.next()).done; )
|
|
536
|
+
be(i.value) && We(i.value, r);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function dr(e) {
|
|
541
541
|
{
|
|
542
542
|
var r = e.type;
|
|
543
543
|
if (r == null || typeof r == "string")
|
|
@@ -545,304 +545,277 @@ Check the top-level render call using <` + t + ">.");
|
|
|
545
545
|
var t;
|
|
546
546
|
if (typeof r == "function")
|
|
547
547
|
t = r.propTypes;
|
|
548
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
548
|
+
else if (typeof r == "object" && (r.$$typeof === h || // Note: Memo only checks outer props here.
|
|
549
549
|
// Inner props are checked in the reconciler.
|
|
550
|
-
r.$$typeof ===
|
|
550
|
+
r.$$typeof === O))
|
|
551
551
|
t = r.propTypes;
|
|
552
552
|
else
|
|
553
553
|
return;
|
|
554
554
|
if (t) {
|
|
555
|
-
var
|
|
556
|
-
|
|
557
|
-
} else if (r.PropTypes !== void 0 && !
|
|
558
|
-
|
|
559
|
-
var
|
|
560
|
-
|
|
555
|
+
var n = F(r);
|
|
556
|
+
Xe(t, e.props, "prop", n, e);
|
|
557
|
+
} else if (r.PropTypes !== void 0 && !ge) {
|
|
558
|
+
ge = !0;
|
|
559
|
+
var l = F(r);
|
|
560
|
+
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", l || "Unknown");
|
|
561
561
|
}
|
|
562
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
562
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function vr(e) {
|
|
566
566
|
{
|
|
567
567
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
568
|
-
var
|
|
569
|
-
if (
|
|
570
|
-
|
|
568
|
+
var n = r[t];
|
|
569
|
+
if (n !== "children" && n !== "key") {
|
|
570
|
+
V(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), V(null);
|
|
571
571
|
break;
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
e.ref !== null && (
|
|
574
|
+
e.ref !== null && (V(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), V(null));
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
var
|
|
578
|
-
function
|
|
577
|
+
var Ye = {};
|
|
578
|
+
function Ue(e, r, t, n, l, d) {
|
|
579
579
|
{
|
|
580
|
-
var
|
|
581
|
-
if (!
|
|
582
|
-
var
|
|
583
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
584
|
-
var
|
|
585
|
-
|
|
580
|
+
var i = se(e);
|
|
581
|
+
if (!i) {
|
|
582
|
+
var o = "";
|
|
583
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
584
|
+
var C = lr();
|
|
585
|
+
C ? o += C : o += De();
|
|
586
586
|
var m;
|
|
587
|
-
e === null ? m = "null" :
|
|
587
|
+
e === null ? m = "null" : de(e) ? m = "array" : e !== void 0 && e.$$typeof === g ? (m = "<" + (F(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : m = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", m, o);
|
|
588
588
|
}
|
|
589
|
-
var
|
|
590
|
-
if (
|
|
591
|
-
return
|
|
592
|
-
if (
|
|
593
|
-
var
|
|
594
|
-
if (
|
|
595
|
-
if (
|
|
596
|
-
if (
|
|
597
|
-
for (var
|
|
598
|
-
|
|
599
|
-
Object.freeze && Object.freeze(
|
|
589
|
+
var E = cr(e, r, t, l, d);
|
|
590
|
+
if (E == null)
|
|
591
|
+
return E;
|
|
592
|
+
if (i) {
|
|
593
|
+
var x = r.children;
|
|
594
|
+
if (x !== void 0)
|
|
595
|
+
if (n)
|
|
596
|
+
if (de(x)) {
|
|
597
|
+
for (var q = 0; q < x.length; q++)
|
|
598
|
+
Le(x[q], e);
|
|
599
|
+
Object.freeze && Object.freeze(x);
|
|
600
600
|
} else
|
|
601
|
-
|
|
601
|
+
c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
602
602
|
else
|
|
603
|
-
|
|
603
|
+
Le(x, e);
|
|
604
604
|
}
|
|
605
|
-
if (
|
|
606
|
-
var L =
|
|
607
|
-
return
|
|
608
|
-
}),
|
|
609
|
-
if (!
|
|
610
|
-
var
|
|
611
|
-
|
|
605
|
+
if (K.call(r, "key")) {
|
|
606
|
+
var L = F(e), P = Object.keys(r).filter(function(hr) {
|
|
607
|
+
return hr !== "key";
|
|
608
|
+
}), me = P.length > 0 ? "{key: someKey, " + P.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
609
|
+
if (!Ye[L + me]) {
|
|
610
|
+
var yr = P.length > 0 ? "{" + P.join(": ..., ") + ": ...}" : "{}";
|
|
611
|
+
c(`A props object containing a "key" prop is being spread into JSX:
|
|
612
612
|
let props = %s;
|
|
613
613
|
<%s {...props} />
|
|
614
614
|
React keys must be passed directly to JSX without using spread:
|
|
615
615
|
let props = %s;
|
|
616
|
-
<%s key={someKey} {...props} />`,
|
|
616
|
+
<%s key={someKey} {...props} />`, me, L, yr, L), Ye[L + me] = !0;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
return e ===
|
|
619
|
+
return e === p ? vr(E) : dr(E), E;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
return
|
|
622
|
+
function pr(e, r, t) {
|
|
623
|
+
return Ue(e, r, t, !0);
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
return
|
|
625
|
+
function gr(e, r, t) {
|
|
626
|
+
return Ue(e, r, t, !1);
|
|
627
627
|
}
|
|
628
|
-
var
|
|
629
|
-
|
|
630
|
-
}()),
|
|
631
|
-
}
|
|
632
|
-
process.env.NODE_ENV === "production" ? Ee.exports = Sr() : Ee.exports = Cr();
|
|
633
|
-
var se = Ee.exports;
|
|
634
|
-
const T = [];
|
|
635
|
-
for (let n = 0; n < 256; ++n)
|
|
636
|
-
T.push((n + 256).toString(16).slice(1));
|
|
637
|
-
function Or(n, o = 0) {
|
|
638
|
-
return (T[n[o + 0]] + T[n[o + 1]] + T[n[o + 2]] + T[n[o + 3]] + "-" + T[n[o + 4]] + T[n[o + 5]] + "-" + T[n[o + 6]] + T[n[o + 7]] + "-" + T[n[o + 8]] + T[n[o + 9]] + "-" + T[n[o + 10]] + T[n[o + 11]] + T[n[o + 12]] + T[n[o + 13]] + T[n[o + 14]] + T[n[o + 15]]).toLowerCase();
|
|
639
|
-
}
|
|
640
|
-
let he;
|
|
641
|
-
const xr = new Uint8Array(16);
|
|
642
|
-
function Pr() {
|
|
643
|
-
if (!he) {
|
|
644
|
-
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
645
|
-
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
646
|
-
he = crypto.getRandomValues.bind(crypto);
|
|
647
|
-
}
|
|
648
|
-
return he(xr);
|
|
649
|
-
}
|
|
650
|
-
const jr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ze = { randomUUID: jr };
|
|
651
|
-
function kr(n, o, S) {
|
|
652
|
-
var y;
|
|
653
|
-
if (Ze.randomUUID && !o && !n)
|
|
654
|
-
return Ze.randomUUID();
|
|
655
|
-
n = n || {};
|
|
656
|
-
const c = n.random ?? ((y = n.rng) == null ? void 0 : y.call(n)) ?? Pr();
|
|
657
|
-
if (c.length < 16)
|
|
658
|
-
throw new Error("Random bytes length must be >= 16");
|
|
659
|
-
return c[6] = c[6] & 15 | 64, c[8] = c[8] & 63 | 128, Or(c);
|
|
628
|
+
var br = gr, mr = pr;
|
|
629
|
+
G.Fragment = p, G.jsx = br, G.jsxs = mr;
|
|
630
|
+
}()), G;
|
|
660
631
|
}
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
}, []),
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
632
|
+
process.env.NODE_ENV === "production" ? ye.exports = _r() : ye.exports = wr();
|
|
633
|
+
var ie = ye.exports;
|
|
634
|
+
const he = Er(null), Tr = ({ children: f }) => {
|
|
635
|
+
const [g, T] = z({}), p = X({}), _ = X({}), y = X({}), k = Y((a, v) => {
|
|
636
|
+
var s;
|
|
637
|
+
return !!((s = y.current[a]) != null && s.has(v));
|
|
638
|
+
}, []), S = Y((a, v, s) => {
|
|
639
|
+
T((u) => ({ ...u, [a]: { origin: v, frameRef: s } }));
|
|
640
|
+
}, []), h = Y((a) => {
|
|
641
|
+
T((v) => {
|
|
642
|
+
const s = { ...v };
|
|
643
|
+
return delete s[a], s;
|
|
644
|
+
}), delete y.current[a];
|
|
672
645
|
}, []);
|
|
673
646
|
A(() => {
|
|
674
|
-
const
|
|
675
|
-
|
|
676
|
-
},
|
|
677
|
-
var
|
|
678
|
-
if (!((
|
|
647
|
+
const a = (s = [], u) => {
|
|
648
|
+
s.forEach((c) => c(u));
|
|
649
|
+
}, v = (s) => {
|
|
650
|
+
var M, U, D, Q, ee;
|
|
651
|
+
if (!((M = s == null ? void 0 : s.data) != null && M.instanceId))
|
|
679
652
|
return;
|
|
680
|
-
const { instanceId:
|
|
681
|
-
if (
|
|
682
|
-
const { callbackId:
|
|
683
|
-
|
|
653
|
+
const { instanceId: u, type: c } = s.data, R = p.current;
|
|
654
|
+
if (c === "response") {
|
|
655
|
+
const { callbackId: $, response: se, error: ue } = s.data, B = _.current[$];
|
|
656
|
+
B && (B(se, ue), delete _.current[$]);
|
|
684
657
|
return;
|
|
685
658
|
}
|
|
686
|
-
if (
|
|
687
|
-
const { requestType:
|
|
688
|
-
|
|
659
|
+
if (c === "mark-registered") {
|
|
660
|
+
const { requestType: $ } = s.data;
|
|
661
|
+
y.current[u] || (y.current[u] = /* @__PURE__ */ new Set()), y.current[u].add($);
|
|
689
662
|
return;
|
|
690
663
|
}
|
|
691
|
-
|
|
664
|
+
a((U = R[u]) == null ? void 0 : U[c], s.data), a((D = R["*"]) == null ? void 0 : D[c], s.data), a((Q = R[u]) == null ? void 0 : Q["*"], s.data), a((ee = R["*"]) == null ? void 0 : ee["*"], s.data);
|
|
692
665
|
};
|
|
693
|
-
return window.addEventListener("message",
|
|
694
|
-
window.removeEventListener("message",
|
|
666
|
+
return window.addEventListener("message", v), () => {
|
|
667
|
+
window.removeEventListener("message", v);
|
|
695
668
|
};
|
|
696
|
-
}, [
|
|
669
|
+
}, [g]);
|
|
697
670
|
const w = Y(
|
|
698
|
-
(
|
|
699
|
-
var
|
|
700
|
-
const
|
|
701
|
-
if (!
|
|
702
|
-
console.warn(`Origin not set for id: ${
|
|
671
|
+
(a, v, s) => {
|
|
672
|
+
var c, R;
|
|
673
|
+
const u = g[a];
|
|
674
|
+
if (!u) {
|
|
675
|
+
console.warn(`Origin not set for id: ${a}. Unable to send message.`);
|
|
703
676
|
return;
|
|
704
677
|
}
|
|
705
|
-
(
|
|
706
|
-
{ type:
|
|
707
|
-
|
|
678
|
+
(R = (c = u == null ? void 0 : u.frameRef) == null ? void 0 : c.current) != null && R.contentWindow && u.frameRef.current.contentWindow.postMessage(
|
|
679
|
+
{ type: v, ...s, instanceId: a },
|
|
680
|
+
u.origin
|
|
708
681
|
);
|
|
709
682
|
},
|
|
710
|
-
[
|
|
683
|
+
[g]
|
|
711
684
|
), b = Y(
|
|
712
|
-
async (
|
|
713
|
-
const
|
|
714
|
-
delete
|
|
685
|
+
async (a, v, s = {}) => new Promise((u, c) => {
|
|
686
|
+
const R = crypto.randomUUID(), M = (U, D) => {
|
|
687
|
+
delete _.current[R], D ? c(D) : u(U);
|
|
715
688
|
};
|
|
716
|
-
|
|
689
|
+
_.current[R] = M, w(a, "request", { callbackId: R, requestType: v, data: s });
|
|
717
690
|
}),
|
|
718
691
|
[w]
|
|
719
|
-
),
|
|
720
|
-
(
|
|
721
|
-
w(
|
|
692
|
+
), O = Y(
|
|
693
|
+
(a, v) => {
|
|
694
|
+
w(a, "load-options", v);
|
|
722
695
|
},
|
|
723
696
|
[w]
|
|
724
697
|
), j = Y(
|
|
725
|
-
(
|
|
726
|
-
w(
|
|
698
|
+
(a, v) => {
|
|
699
|
+
w(a, "validate", v);
|
|
727
700
|
},
|
|
728
701
|
[w]
|
|
729
|
-
),
|
|
702
|
+
), I = Rr(
|
|
730
703
|
() => ({
|
|
731
|
-
registerFrame:
|
|
732
|
-
unregisterFrame:
|
|
704
|
+
registerFrame: S,
|
|
705
|
+
unregisterFrame: h,
|
|
733
706
|
sendMessage: w,
|
|
734
707
|
sendRequest: b,
|
|
735
|
-
loadOptions:
|
|
708
|
+
loadOptions: O,
|
|
736
709
|
validate: j,
|
|
737
|
-
hasHandler:
|
|
738
|
-
addListener: (
|
|
739
|
-
|
|
710
|
+
hasHandler: k,
|
|
711
|
+
addListener: (a, v, s) => (p.current[a] || (p.current[a] = {}), p.current[a][v] || (p.current[a][v] = []), p.current[a][v].push(s), () => {
|
|
712
|
+
p.current[a][v] = p.current[a][v].filter((u) => u !== s);
|
|
740
713
|
})
|
|
741
714
|
}),
|
|
742
715
|
[
|
|
743
|
-
|
|
744
|
-
|
|
716
|
+
S,
|
|
717
|
+
h,
|
|
745
718
|
w,
|
|
746
719
|
b,
|
|
747
|
-
|
|
720
|
+
O,
|
|
748
721
|
j,
|
|
749
|
-
|
|
722
|
+
k
|
|
750
723
|
]
|
|
751
724
|
);
|
|
752
|
-
return /* @__PURE__ */
|
|
753
|
-
},
|
|
725
|
+
return /* @__PURE__ */ ie.jsx(he.Provider, { value: I, children: f });
|
|
726
|
+
}, oe = {}, Sr = async (f) => {
|
|
754
727
|
try {
|
|
755
|
-
const
|
|
756
|
-
if (
|
|
757
|
-
return
|
|
758
|
-
const
|
|
759
|
-
if (!
|
|
728
|
+
const g = new URL(f).origin;
|
|
729
|
+
if (oe[g] !== void 0)
|
|
730
|
+
return oe[g];
|
|
731
|
+
const p = await (await fetch(`${g}/mm-app-manifest.json`)).json();
|
|
732
|
+
if (!p.version)
|
|
760
733
|
throw new Error("Invalid manifest");
|
|
761
|
-
return
|
|
734
|
+
return oe[g] = p, p;
|
|
762
735
|
} catch {
|
|
763
736
|
}
|
|
764
|
-
return
|
|
765
|
-
},
|
|
766
|
-
const
|
|
767
|
-
if (
|
|
737
|
+
return oe[origin] = !1, !1;
|
|
738
|
+
}, Cr = async (f) => !!await Sr(f), Or = (f, g, T) => {
|
|
739
|
+
const p = Ke(he);
|
|
740
|
+
if (p === null)
|
|
768
741
|
throw new Error(
|
|
769
742
|
"useEmbeddedEffect must be used within a MMEmbeddableZoneProvider"
|
|
770
743
|
);
|
|
771
|
-
const
|
|
744
|
+
const _ = X(T);
|
|
772
745
|
A(() => {
|
|
773
|
-
|
|
774
|
-
}, [
|
|
775
|
-
if (!(!
|
|
776
|
-
return
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
(...
|
|
746
|
+
_.current = T;
|
|
747
|
+
}, [T]), A(() => {
|
|
748
|
+
if (!(!f || !g))
|
|
749
|
+
return p.addListener(
|
|
750
|
+
f,
|
|
751
|
+
g,
|
|
752
|
+
(...y) => _.current(...y)
|
|
780
753
|
);
|
|
781
|
-
}, [
|
|
754
|
+
}, [p, f, g]);
|
|
782
755
|
};
|
|
783
|
-
|
|
784
|
-
children:
|
|
756
|
+
Tr.propTypes = {
|
|
757
|
+
children: H.node.isRequired
|
|
785
758
|
};
|
|
786
|
-
const
|
|
759
|
+
const Pr = Ve.default || Ve, jr = Pr.iframe`
|
|
787
760
|
width: 100%;
|
|
788
761
|
height: 100%;
|
|
789
762
|
border: none;
|
|
790
|
-
visibility: ${(
|
|
791
|
-
`,
|
|
792
|
-
id:
|
|
793
|
-
src:
|
|
794
|
-
path:
|
|
795
|
-
onInit:
|
|
763
|
+
visibility: ${(f) => f.$isReady ? "visible" : "hidden"};
|
|
764
|
+
`, xr = ({
|
|
765
|
+
id: f,
|
|
766
|
+
src: g,
|
|
767
|
+
path: T,
|
|
768
|
+
onInit: p = () => {
|
|
796
769
|
},
|
|
797
|
-
context:
|
|
798
|
-
params:
|
|
799
|
-
...
|
|
770
|
+
context: _ = {},
|
|
771
|
+
params: y = {},
|
|
772
|
+
...k
|
|
800
773
|
}) => {
|
|
801
|
-
if ("isConfiguring" in
|
|
774
|
+
if ("isConfiguring" in k)
|
|
802
775
|
return console.error(
|
|
803
776
|
"isConfiguring must be passed via the params prop to MMEmbeddableZone"
|
|
804
777
|
), null;
|
|
805
|
-
if ("colorMode" in
|
|
778
|
+
if ("colorMode" in _)
|
|
806
779
|
return console.error(
|
|
807
780
|
"colorMode must be passed via the params prop to MMEmbeddableZone"
|
|
808
781
|
), null;
|
|
809
|
-
if ("isFullScreen" in
|
|
782
|
+
if ("isFullScreen" in _)
|
|
810
783
|
return console.error(
|
|
811
784
|
"isFullScreen must be passed via the params prop to MMEmbeddableZone"
|
|
812
785
|
), null;
|
|
813
|
-
const
|
|
814
|
-
|
|
815
|
-
), [
|
|
786
|
+
const S = X(), [h, w] = z(), [b, O] = z(0), { registerFrame: j, unregisterFrame: I, sendMessage: a } = Ke(
|
|
787
|
+
he
|
|
788
|
+
), [v, s] = z(!0), [u, c] = z();
|
|
816
789
|
return A(() => {
|
|
817
|
-
b &&
|
|
790
|
+
b && a(f, "set-context", {
|
|
818
791
|
context: {
|
|
819
|
-
...
|
|
792
|
+
..._,
|
|
820
793
|
// TODO: Remove this once everything is migrated to params
|
|
821
|
-
colorMode:
|
|
822
|
-
isFullScreen:
|
|
794
|
+
colorMode: y.colorMode,
|
|
795
|
+
isFullScreen: y.isFullScreen
|
|
823
796
|
}
|
|
824
797
|
});
|
|
825
|
-
}, [
|
|
826
|
-
b && (
|
|
827
|
-
}, [
|
|
828
|
-
|
|
829
|
-
}, [
|
|
830
|
-
|
|
831
|
-
}, [
|
|
832
|
-
if (!(!
|
|
798
|
+
}, [_, y.colorMode, y.isFullScreen, f, b]), A(() => {
|
|
799
|
+
b && (a(f, "set-params", { params: y }), a(f, "set-configuring", { isConfiguring: y.isConfiguring }));
|
|
800
|
+
}, [y, f, b]), A(() => {
|
|
801
|
+
T !== void 0 && c(T || "/");
|
|
802
|
+
}, [T]), A(() => {
|
|
803
|
+
u === void 0 || !b || a(f, "navigate", { path: u });
|
|
804
|
+
}, [u, b, f, a]), A(() => {
|
|
805
|
+
if (!(!g || !f || !S))
|
|
833
806
|
return (async () => {
|
|
834
|
-
const
|
|
835
|
-
if (
|
|
836
|
-
const
|
|
837
|
-
j(
|
|
838
|
-
`${
|
|
807
|
+
const R = await Cr(g);
|
|
808
|
+
if (s(R), R) {
|
|
809
|
+
const M = new URL(g);
|
|
810
|
+
j(f, M.origin, S), p(), w(
|
|
811
|
+
`${M.origin}/mm-embedded-interop?id=${f}&origin=${window.location.origin}`
|
|
839
812
|
);
|
|
840
813
|
return;
|
|
841
814
|
}
|
|
842
815
|
})(), () => {
|
|
843
|
-
|
|
816
|
+
I(f);
|
|
844
817
|
};
|
|
845
|
-
}, [
|
|
818
|
+
}, [g, f, j, S]), Or(f, "ready", () => O((R) => R + 1)), v ? /* @__PURE__ */ ie.jsx(jr, { $isReady: b, ref: S, src: h, ...k }) : /* @__PURE__ */ ie.jsx(
|
|
846
819
|
"div",
|
|
847
820
|
{
|
|
848
821
|
style: {
|
|
@@ -852,21 +825,21 @@ const Ar = Be.default || Be, $r = Ar.iframe`
|
|
|
852
825
|
alignItems: "center",
|
|
853
826
|
justifyContent: "center"
|
|
854
827
|
},
|
|
855
|
-
children: /* @__PURE__ */
|
|
828
|
+
children: /* @__PURE__ */ ie.jsx("div", { style: { textAlign: "center" }, children: "Application must adhere to the MM App Manifest specification to be embedded." })
|
|
856
829
|
}
|
|
857
830
|
);
|
|
858
831
|
};
|
|
859
|
-
|
|
860
|
-
id:
|
|
861
|
-
src:
|
|
862
|
-
path:
|
|
863
|
-
onInit:
|
|
832
|
+
xr.propTypes = {
|
|
833
|
+
id: H.string,
|
|
834
|
+
src: H.string.isRequired,
|
|
835
|
+
path: H.string,
|
|
836
|
+
onInit: H.func
|
|
864
837
|
};
|
|
865
838
|
export {
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
839
|
+
xr as MMEmbeddableZone,
|
|
840
|
+
he as MMEmbeddableZoneContext,
|
|
841
|
+
Tr as MMEmbeddableZoneProvider,
|
|
842
|
+
Sr as getAppInfo,
|
|
843
|
+
Cr as testIsEmbeddable,
|
|
844
|
+
Or as useEmbeddedEffect
|
|
872
845
|
};
|