@justeattakeaway/pie-modal 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react.js ADDED
@@ -0,0 +1,1606 @@
1
+ import { PieModal as Ir } from "./index.js";
2
+ import "lit";
3
+ import "lit/static-html.js";
4
+ import "lit/decorators.js";
5
+ import "lit/decorators/property.js";
6
+ function Nr(h, c) {
7
+ for (var U = 0; U < c.length; U++) {
8
+ const T = c[U];
9
+ if (typeof T != "string" && !Array.isArray(T)) {
10
+ for (const A in T)
11
+ if (A !== "default" && !(A in h)) {
12
+ const k = Object.getOwnPropertyDescriptor(T, A);
13
+ k && Object.defineProperty(h, A, k.get ? k : {
14
+ enumerable: !0,
15
+ get: () => T[A]
16
+ });
17
+ }
18
+ }
19
+ }
20
+ return Object.freeze(Object.defineProperty(h, Symbol.toStringTag, { value: "Module" }));
21
+ }
22
+ function Fr(h) {
23
+ return h && h.__esModule && Object.prototype.hasOwnProperty.call(h, "default") ? h.default : h;
24
+ }
25
+ var Te = {}, Mr = {
26
+ get exports() {
27
+ return Te;
28
+ },
29
+ set exports(h) {
30
+ Te = h;
31
+ }
32
+ }, p = {};
33
+ /**
34
+ * @license React
35
+ * react.production.min.js
36
+ *
37
+ * Copyright (c) Facebook, Inc. and its affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */
42
+ var Ct;
43
+ function Lr() {
44
+ if (Ct)
45
+ return p;
46
+ Ct = 1;
47
+ var h = Symbol.for("react.element"), c = Symbol.for("react.portal"), U = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), V = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), B = Symbol.for("react.suspense"), F = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), H = Symbol.iterator;
48
+ function J(r) {
49
+ return r === null || typeof r != "object" ? null : (r = H && r[H] || r["@@iterator"], typeof r == "function" ? r : null);
50
+ }
51
+ var D = { isMounted: function() {
52
+ return !1;
53
+ }, enqueueForceUpdate: function() {
54
+ }, enqueueReplaceState: function() {
55
+ }, enqueueSetState: function() {
56
+ } }, P = Object.assign, G = {};
57
+ function Y(r, u, d) {
58
+ this.props = r, this.context = u, this.refs = G, this.updater = d || D;
59
+ }
60
+ Y.prototype.isReactComponent = {}, Y.prototype.setState = function(r, u) {
61
+ if (typeof r != "object" && typeof r != "function" && r != null)
62
+ throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
63
+ this.updater.enqueueSetState(this, r, u, "setState");
64
+ }, Y.prototype.forceUpdate = function(r) {
65
+ this.updater.enqueueForceUpdate(this, r, "forceUpdate");
66
+ };
67
+ function M() {
68
+ }
69
+ M.prototype = Y.prototype;
70
+ function W(r, u, d) {
71
+ this.props = r, this.context = u, this.refs = G, this.updater = d || D;
72
+ }
73
+ var K = W.prototype = new M();
74
+ K.constructor = W, P(K, Y.prototype), K.isPureReactComponent = !0;
75
+ var Q = Array.isArray, j = Object.prototype.hasOwnProperty, z = { current: null }, X = { key: !0, ref: !0, __self: !0, __source: !0 };
76
+ function te(r, u, d) {
77
+ var m, v = {}, _ = null, S = null;
78
+ if (u != null)
79
+ for (m in u.ref !== void 0 && (S = u.ref), u.key !== void 0 && (_ = "" + u.key), u)
80
+ j.call(u, m) && !X.hasOwnProperty(m) && (v[m] = u[m]);
81
+ var b = arguments.length - 2;
82
+ if (b === 1)
83
+ v.children = d;
84
+ else if (1 < b) {
85
+ for (var E = Array(b), L = 0; L < b; L++)
86
+ E[L] = arguments[L + 2];
87
+ v.children = E;
88
+ }
89
+ if (r && r.defaultProps)
90
+ for (m in b = r.defaultProps, b)
91
+ v[m] === void 0 && (v[m] = b[m]);
92
+ return { $$typeof: h, type: r, key: _, ref: S, props: v, _owner: z.current };
93
+ }
94
+ function pe(r, u) {
95
+ return { $$typeof: h, type: r.type, key: u, ref: r.ref, props: r.props, _owner: r._owner };
96
+ }
97
+ function ie(r) {
98
+ return typeof r == "object" && r !== null && r.$$typeof === h;
99
+ }
100
+ function ke(r) {
101
+ var u = { "=": "=0", ":": "=2" };
102
+ return "$" + r.replace(/[=:]/g, function(d) {
103
+ return u[d];
104
+ });
105
+ }
106
+ var ve = /\/+/g;
107
+ function se(r, u) {
108
+ return typeof r == "object" && r !== null && r.key != null ? ke("" + r.key) : u.toString(36);
109
+ }
110
+ function ne(r, u, d, m, v) {
111
+ var _ = typeof r;
112
+ (_ === "undefined" || _ === "boolean") && (r = null);
113
+ var S = !1;
114
+ if (r === null)
115
+ S = !0;
116
+ else
117
+ switch (_) {
118
+ case "string":
119
+ case "number":
120
+ S = !0;
121
+ break;
122
+ case "object":
123
+ switch (r.$$typeof) {
124
+ case h:
125
+ case c:
126
+ S = !0;
127
+ }
128
+ }
129
+ if (S)
130
+ return S = r, v = v(S), r = m === "" ? "." + se(S, 0) : m, Q(v) ? (d = "", r != null && (d = r.replace(ve, "$&/") + "/"), ne(v, u, d, "", function(L) {
131
+ return L;
132
+ })) : v != null && (ie(v) && (v = pe(v, d + (!v.key || S && S.key === v.key ? "" : ("" + v.key).replace(ve, "$&/") + "/") + r)), u.push(v)), 1;
133
+ if (S = 0, m = m === "" ? "." : m + ":", Q(r))
134
+ for (var b = 0; b < r.length; b++) {
135
+ _ = r[b];
136
+ var E = m + se(_, b);
137
+ S += ne(_, u, d, E, v);
138
+ }
139
+ else if (E = J(r), typeof E == "function")
140
+ for (r = E.call(r), b = 0; !(_ = r.next()).done; )
141
+ _ = _.value, E = m + se(_, b++), S += ne(_, u, d, E, v);
142
+ else if (_ === "object")
143
+ throw u = String(r), Error("Objects are not valid as a React child (found: " + (u === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : u) + "). If you meant to render a collection of children, use an array instead.");
144
+ return S;
145
+ }
146
+ function q(r, u, d) {
147
+ if (r == null)
148
+ return r;
149
+ var m = [], v = 0;
150
+ return ne(r, m, "", "", function(_) {
151
+ return u.call(d, _, v++);
152
+ }), m;
153
+ }
154
+ function Z(r) {
155
+ if (r._status === -1) {
156
+ var u = r._result;
157
+ u = u(), u.then(function(d) {
158
+ (r._status === 0 || r._status === -1) && (r._status = 1, r._result = d);
159
+ }, function(d) {
160
+ (r._status === 0 || r._status === -1) && (r._status = 2, r._result = d);
161
+ }), r._status === -1 && (r._status = 0, r._result = u);
162
+ }
163
+ if (r._status === 1)
164
+ return r._result.default;
165
+ throw r._result;
166
+ }
167
+ var l = { current: null }, re = { transition: null }, ye = { ReactCurrentDispatcher: l, ReactCurrentBatchConfig: re, ReactCurrentOwner: z };
168
+ return p.Children = { map: q, forEach: function(r, u, d) {
169
+ q(r, function() {
170
+ u.apply(this, arguments);
171
+ }, d);
172
+ }, count: function(r) {
173
+ var u = 0;
174
+ return q(r, function() {
175
+ u++;
176
+ }), u;
177
+ }, toArray: function(r) {
178
+ return q(r, function(u) {
179
+ return u;
180
+ }) || [];
181
+ }, only: function(r) {
182
+ if (!ie(r))
183
+ throw Error("React.Children.only expected to receive a single React element child.");
184
+ return r;
185
+ } }, p.Component = Y, p.Fragment = U, p.Profiler = A, p.PureComponent = W, p.StrictMode = T, p.Suspense = B, p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ye, p.cloneElement = function(r, u, d) {
186
+ if (r == null)
187
+ throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + r + ".");
188
+ var m = P({}, r.props), v = r.key, _ = r.ref, S = r._owner;
189
+ if (u != null) {
190
+ if (u.ref !== void 0 && (_ = u.ref, S = z.current), u.key !== void 0 && (v = "" + u.key), r.type && r.type.defaultProps)
191
+ var b = r.type.defaultProps;
192
+ for (E in u)
193
+ j.call(u, E) && !X.hasOwnProperty(E) && (m[E] = u[E] === void 0 && b !== void 0 ? b[E] : u[E]);
194
+ }
195
+ var E = arguments.length - 2;
196
+ if (E === 1)
197
+ m.children = d;
198
+ else if (1 < E) {
199
+ b = Array(E);
200
+ for (var L = 0; L < E; L++)
201
+ b[L] = arguments[L + 2];
202
+ m.children = b;
203
+ }
204
+ return { $$typeof: h, type: r.type, key: v, ref: _, props: m, _owner: S };
205
+ }, p.createContext = function(r) {
206
+ return r = { $$typeof: V, _currentValue: r, _currentValue2: r, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, r.Provider = { $$typeof: k, _context: r }, r.Consumer = r;
207
+ }, p.createElement = te, p.createFactory = function(r) {
208
+ var u = te.bind(null, r);
209
+ return u.type = r, u;
210
+ }, p.createRef = function() {
211
+ return { current: null };
212
+ }, p.forwardRef = function(r) {
213
+ return { $$typeof: I, render: r };
214
+ }, p.isValidElement = ie, p.lazy = function(r) {
215
+ return { $$typeof: N, _payload: { _status: -1, _result: r }, _init: Z };
216
+ }, p.memo = function(r, u) {
217
+ return { $$typeof: F, type: r, compare: u === void 0 ? null : u };
218
+ }, p.startTransition = function(r) {
219
+ var u = re.transition;
220
+ re.transition = {};
221
+ try {
222
+ r();
223
+ } finally {
224
+ re.transition = u;
225
+ }
226
+ }, p.unstable_act = function() {
227
+ throw Error("act(...) is not supported in production builds of React.");
228
+ }, p.useCallback = function(r, u) {
229
+ return l.current.useCallback(r, u);
230
+ }, p.useContext = function(r) {
231
+ return l.current.useContext(r);
232
+ }, p.useDebugValue = function() {
233
+ }, p.useDeferredValue = function(r) {
234
+ return l.current.useDeferredValue(r);
235
+ }, p.useEffect = function(r, u) {
236
+ return l.current.useEffect(r, u);
237
+ }, p.useId = function() {
238
+ return l.current.useId();
239
+ }, p.useImperativeHandle = function(r, u, d) {
240
+ return l.current.useImperativeHandle(r, u, d);
241
+ }, p.useInsertionEffect = function(r, u) {
242
+ return l.current.useInsertionEffect(r, u);
243
+ }, p.useLayoutEffect = function(r, u) {
244
+ return l.current.useLayoutEffect(r, u);
245
+ }, p.useMemo = function(r, u) {
246
+ return l.current.useMemo(r, u);
247
+ }, p.useReducer = function(r, u, d) {
248
+ return l.current.useReducer(r, u, d);
249
+ }, p.useRef = function(r) {
250
+ return l.current.useRef(r);
251
+ }, p.useState = function(r) {
252
+ return l.current.useState(r);
253
+ }, p.useSyncExternalStore = function(r, u, d) {
254
+ return l.current.useSyncExternalStore(r, u, d);
255
+ }, p.useTransition = function() {
256
+ return l.current.useTransition();
257
+ }, p.version = "18.2.0", p;
258
+ }
259
+ var de = {}, xr = {
260
+ get exports() {
261
+ return de;
262
+ },
263
+ set exports(h) {
264
+ de = h;
265
+ }
266
+ };
267
+ /**
268
+ * @license React
269
+ * react.development.js
270
+ *
271
+ * Copyright (c) Facebook, Inc. and its affiliates.
272
+ *
273
+ * This source code is licensed under the MIT license found in the
274
+ * LICENSE file in the root directory of this source tree.
275
+ */
276
+ var St;
277
+ function Ur() {
278
+ return St || (St = 1, function(h, c) {
279
+ process.env.NODE_ENV !== "production" && function() {
280
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
281
+ var U = "18.2.0", T = Symbol.for("react.element"), A = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), V = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), B = Symbol.for("react.provider"), F = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), H = Symbol.for("react.suspense"), J = Symbol.for("react.suspense_list"), D = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), G = Symbol.for("react.offscreen"), Y = Symbol.iterator, M = "@@iterator";
282
+ function W(e) {
283
+ if (e === null || typeof e != "object")
284
+ return null;
285
+ var t = Y && e[Y] || e[M];
286
+ return typeof t == "function" ? t : null;
287
+ }
288
+ var K = {
289
+ /**
290
+ * @internal
291
+ * @type {ReactComponent}
292
+ */
293
+ current: null
294
+ }, Q = {
295
+ transition: null
296
+ }, j = {
297
+ current: null,
298
+ // Used to reproduce behavior of `batchedUpdates` in legacy mode.
299
+ isBatchingLegacy: !1,
300
+ didScheduleLegacyUpdate: !1
301
+ }, z = {
302
+ /**
303
+ * @internal
304
+ * @type {ReactComponent}
305
+ */
306
+ current: null
307
+ }, X = {}, te = null;
308
+ function pe(e) {
309
+ te = e;
310
+ }
311
+ X.setExtraStackFrame = function(e) {
312
+ te = e;
313
+ }, X.getCurrentStack = null, X.getStackAddendum = function() {
314
+ var e = "";
315
+ te && (e += te);
316
+ var t = X.getCurrentStack;
317
+ return t && (e += t() || ""), e;
318
+ };
319
+ var ie = !1, ke = !1, ve = !1, se = !1, ne = !1, q = {
320
+ ReactCurrentDispatcher: K,
321
+ ReactCurrentBatchConfig: Q,
322
+ ReactCurrentOwner: z
323
+ };
324
+ q.ReactDebugCurrentFrame = X, q.ReactCurrentActQueue = j;
325
+ function Z(e) {
326
+ {
327
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
328
+ n[a - 1] = arguments[a];
329
+ re("warn", e, n);
330
+ }
331
+ }
332
+ function l(e) {
333
+ {
334
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
335
+ n[a - 1] = arguments[a];
336
+ re("error", e, n);
337
+ }
338
+ }
339
+ function re(e, t, n) {
340
+ {
341
+ var a = q.ReactDebugCurrentFrame, o = a.getStackAddendum();
342
+ o !== "" && (t += "%s", n = n.concat([o]));
343
+ var s = n.map(function(i) {
344
+ return String(i);
345
+ });
346
+ s.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, s);
347
+ }
348
+ }
349
+ var ye = {};
350
+ function r(e, t) {
351
+ {
352
+ var n = e.constructor, a = n && (n.displayName || n.name) || "ReactClass", o = a + "." + t;
353
+ if (ye[o])
354
+ return;
355
+ l("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", t, a), ye[o] = !0;
356
+ }
357
+ }
358
+ var u = {
359
+ /**
360
+ * Checks whether or not this composite component is mounted.
361
+ * @param {ReactClass} publicInstance The instance we want to test.
362
+ * @return {boolean} True if mounted, false otherwise.
363
+ * @protected
364
+ * @final
365
+ */
366
+ isMounted: function(e) {
367
+ return !1;
368
+ },
369
+ /**
370
+ * Forces an update. This should only be invoked when it is known with
371
+ * certainty that we are **not** in a DOM transaction.
372
+ *
373
+ * You may want to call this when you know that some deeper aspect of the
374
+ * component's state has changed but `setState` was not called.
375
+ *
376
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
377
+ * `componentWillUpdate` and `componentDidUpdate`.
378
+ *
379
+ * @param {ReactClass} publicInstance The instance that should rerender.
380
+ * @param {?function} callback Called after component is updated.
381
+ * @param {?string} callerName name of the calling function in the public API.
382
+ * @internal
383
+ */
384
+ enqueueForceUpdate: function(e, t, n) {
385
+ r(e, "forceUpdate");
386
+ },
387
+ /**
388
+ * Replaces all of the state. Always use this or `setState` to mutate state.
389
+ * You should treat `this.state` as immutable.
390
+ *
391
+ * There is no guarantee that `this.state` will be immediately updated, so
392
+ * accessing `this.state` after calling this method may return the old value.
393
+ *
394
+ * @param {ReactClass} publicInstance The instance that should rerender.
395
+ * @param {object} completeState Next state.
396
+ * @param {?function} callback Called after component is updated.
397
+ * @param {?string} callerName name of the calling function in the public API.
398
+ * @internal
399
+ */
400
+ enqueueReplaceState: function(e, t, n, a) {
401
+ r(e, "replaceState");
402
+ },
403
+ /**
404
+ * Sets a subset of the state. This only exists because _pendingState is
405
+ * internal. This provides a merging strategy that is not available to deep
406
+ * properties which is confusing. TODO: Expose pendingState or don't use it
407
+ * during the merge.
408
+ *
409
+ * @param {ReactClass} publicInstance The instance that should rerender.
410
+ * @param {object} partialState Next partial state to be merged with state.
411
+ * @param {?function} callback Called after component is updated.
412
+ * @param {?string} Name of the calling function in the public API.
413
+ * @internal
414
+ */
415
+ enqueueSetState: function(e, t, n, a) {
416
+ r(e, "setState");
417
+ }
418
+ }, d = Object.assign, m = {};
419
+ Object.freeze(m);
420
+ function v(e, t, n) {
421
+ this.props = e, this.context = t, this.refs = m, this.updater = n || u;
422
+ }
423
+ v.prototype.isReactComponent = {}, v.prototype.setState = function(e, t) {
424
+ if (typeof e != "object" && typeof e != "function" && e != null)
425
+ throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
426
+ this.updater.enqueueSetState(this, e, t, "setState");
427
+ }, v.prototype.forceUpdate = function(e) {
428
+ this.updater.enqueueForceUpdate(this, e, "forceUpdate");
429
+ };
430
+ {
431
+ var _ = {
432
+ isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
433
+ replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
434
+ }, S = function(e, t) {
435
+ Object.defineProperty(v.prototype, e, {
436
+ get: function() {
437
+ Z("%s(...) is deprecated in plain JavaScript React classes. %s", t[0], t[1]);
438
+ }
439
+ });
440
+ };
441
+ for (var b in _)
442
+ _.hasOwnProperty(b) && S(b, _[b]);
443
+ }
444
+ function E() {
445
+ }
446
+ E.prototype = v.prototype;
447
+ function L(e, t, n) {
448
+ this.props = e, this.context = t, this.refs = m, this.updater = n || u;
449
+ }
450
+ var Pe = L.prototype = new E();
451
+ Pe.constructor = L, d(Pe, v.prototype), Pe.isPureReactComponent = !0;
452
+ function Tt() {
453
+ var e = {
454
+ current: null
455
+ };
456
+ return Object.seal(e), e;
457
+ }
458
+ var kt = Array.isArray;
459
+ function he(e) {
460
+ return kt(e);
461
+ }
462
+ function Pt(e) {
463
+ {
464
+ var t = typeof Symbol == "function" && Symbol.toStringTag, n = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
465
+ return n;
466
+ }
467
+ }
468
+ function jt(e) {
469
+ try {
470
+ return We(e), !1;
471
+ } catch {
472
+ return !0;
473
+ }
474
+ }
475
+ function We(e) {
476
+ return "" + e;
477
+ }
478
+ function me(e) {
479
+ if (jt(e))
480
+ return l("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Pt(e)), We(e);
481
+ }
482
+ function At(e, t, n) {
483
+ var a = e.displayName;
484
+ if (a)
485
+ return a;
486
+ var o = t.displayName || t.name || "";
487
+ return o !== "" ? n + "(" + o + ")" : n;
488
+ }
489
+ function Ye(e) {
490
+ return e.displayName || "Context";
491
+ }
492
+ function ee(e) {
493
+ if (e == null)
494
+ return null;
495
+ if (typeof e.tag == "number" && l("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
496
+ return e.displayName || e.name || null;
497
+ if (typeof e == "string")
498
+ return e;
499
+ switch (e) {
500
+ case k:
501
+ return "Fragment";
502
+ case A:
503
+ return "Portal";
504
+ case I:
505
+ return "Profiler";
506
+ case V:
507
+ return "StrictMode";
508
+ case H:
509
+ return "Suspense";
510
+ case J:
511
+ return "SuspenseList";
512
+ }
513
+ if (typeof e == "object")
514
+ switch (e.$$typeof) {
515
+ case F:
516
+ var t = e;
517
+ return Ye(t) + ".Consumer";
518
+ case B:
519
+ var n = e;
520
+ return Ye(n._context) + ".Provider";
521
+ case N:
522
+ return At(e, e.render, "ForwardRef");
523
+ case D:
524
+ var a = e.displayName || null;
525
+ return a !== null ? a : ee(e.type) || "Memo";
526
+ case P: {
527
+ var o = e, s = o._payload, i = o._init;
528
+ try {
529
+ return ee(i(s));
530
+ } catch {
531
+ return null;
532
+ }
533
+ }
534
+ }
535
+ return null;
536
+ }
537
+ var ce = Object.prototype.hasOwnProperty, ze = {
538
+ key: !0,
539
+ ref: !0,
540
+ __self: !0,
541
+ __source: !0
542
+ }, Be, He, je;
543
+ je = {};
544
+ function qe(e) {
545
+ if (ce.call(e, "ref")) {
546
+ var t = Object.getOwnPropertyDescriptor(e, "ref").get;
547
+ if (t && t.isReactWarning)
548
+ return !1;
549
+ }
550
+ return e.ref !== void 0;
551
+ }
552
+ function Ge(e) {
553
+ if (ce.call(e, "key")) {
554
+ var t = Object.getOwnPropertyDescriptor(e, "key").get;
555
+ if (t && t.isReactWarning)
556
+ return !1;
557
+ }
558
+ return e.key !== void 0;
559
+ }
560
+ function Dt(e, t) {
561
+ var n = function() {
562
+ Be || (Be = !0, l("%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)", t));
563
+ };
564
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
565
+ get: n,
566
+ configurable: !0
567
+ });
568
+ }
569
+ function $t(e, t) {
570
+ var n = function() {
571
+ He || (He = !0, l("%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)", t));
572
+ };
573
+ n.isReactWarning = !0, Object.defineProperty(e, "ref", {
574
+ get: n,
575
+ configurable: !0
576
+ });
577
+ }
578
+ function It(e) {
579
+ if (typeof e.ref == "string" && z.current && e.__self && z.current.stateNode !== e.__self) {
580
+ var t = ee(z.current.type);
581
+ je[t] || (l('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', t, e.ref), je[t] = !0);
582
+ }
583
+ }
584
+ var Ae = function(e, t, n, a, o, s, i) {
585
+ var f = {
586
+ // This tag allows us to uniquely identify this as a React Element
587
+ $$typeof: T,
588
+ // Built-in properties that belong on the element
589
+ type: e,
590
+ key: t,
591
+ ref: n,
592
+ props: i,
593
+ // Record the component responsible for creating this element.
594
+ _owner: s
595
+ };
596
+ return f._store = {}, Object.defineProperty(f._store, "validated", {
597
+ configurable: !1,
598
+ enumerable: !1,
599
+ writable: !0,
600
+ value: !1
601
+ }), Object.defineProperty(f, "_self", {
602
+ configurable: !1,
603
+ enumerable: !1,
604
+ writable: !1,
605
+ value: a
606
+ }), Object.defineProperty(f, "_source", {
607
+ configurable: !1,
608
+ enumerable: !1,
609
+ writable: !1,
610
+ value: o
611
+ }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
612
+ };
613
+ function Nt(e, t, n) {
614
+ var a, o = {}, s = null, i = null, f = null, y = null;
615
+ if (t != null) {
616
+ qe(t) && (i = t.ref, It(t)), Ge(t) && (me(t.key), s = "" + t.key), f = t.__self === void 0 ? null : t.__self, y = t.__source === void 0 ? null : t.__source;
617
+ for (a in t)
618
+ ce.call(t, a) && !ze.hasOwnProperty(a) && (o[a] = t[a]);
619
+ }
620
+ var g = arguments.length - 2;
621
+ if (g === 1)
622
+ o.children = n;
623
+ else if (g > 1) {
624
+ for (var R = Array(g), w = 0; w < g; w++)
625
+ R[w] = arguments[w + 2];
626
+ Object.freeze && Object.freeze(R), o.children = R;
627
+ }
628
+ if (e && e.defaultProps) {
629
+ var C = e.defaultProps;
630
+ for (a in C)
631
+ o[a] === void 0 && (o[a] = C[a]);
632
+ }
633
+ if (s || i) {
634
+ var O = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
635
+ s && Dt(o, O), i && $t(o, O);
636
+ }
637
+ return Ae(e, s, i, f, y, z.current, o);
638
+ }
639
+ function Ft(e, t) {
640
+ var n = Ae(e.type, t, e.ref, e._self, e._source, e._owner, e.props);
641
+ return n;
642
+ }
643
+ function Mt(e, t, n) {
644
+ if (e == null)
645
+ throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
646
+ var a, o = d({}, e.props), s = e.key, i = e.ref, f = e._self, y = e._source, g = e._owner;
647
+ if (t != null) {
648
+ qe(t) && (i = t.ref, g = z.current), Ge(t) && (me(t.key), s = "" + t.key);
649
+ var R;
650
+ e.type && e.type.defaultProps && (R = e.type.defaultProps);
651
+ for (a in t)
652
+ ce.call(t, a) && !ze.hasOwnProperty(a) && (t[a] === void 0 && R !== void 0 ? o[a] = R[a] : o[a] = t[a]);
653
+ }
654
+ var w = arguments.length - 2;
655
+ if (w === 1)
656
+ o.children = n;
657
+ else if (w > 1) {
658
+ for (var C = Array(w), O = 0; O < w; O++)
659
+ C[O] = arguments[O + 2];
660
+ o.children = C;
661
+ }
662
+ return Ae(e.type, s, i, f, y, g, o);
663
+ }
664
+ function ae(e) {
665
+ return typeof e == "object" && e !== null && e.$$typeof === T;
666
+ }
667
+ var Ke = ".", Lt = ":";
668
+ function xt(e) {
669
+ var t = /[=:]/g, n = {
670
+ "=": "=0",
671
+ ":": "=2"
672
+ }, a = e.replace(t, function(o) {
673
+ return n[o];
674
+ });
675
+ return "$" + a;
676
+ }
677
+ var Qe = !1, Ut = /\/+/g;
678
+ function Je(e) {
679
+ return e.replace(Ut, "$&/");
680
+ }
681
+ function De(e, t) {
682
+ return typeof e == "object" && e !== null && e.key != null ? (me(e.key), xt("" + e.key)) : t.toString(36);
683
+ }
684
+ function ge(e, t, n, a, o) {
685
+ var s = typeof e;
686
+ (s === "undefined" || s === "boolean") && (e = null);
687
+ var i = !1;
688
+ if (e === null)
689
+ i = !0;
690
+ else
691
+ switch (s) {
692
+ case "string":
693
+ case "number":
694
+ i = !0;
695
+ break;
696
+ case "object":
697
+ switch (e.$$typeof) {
698
+ case T:
699
+ case A:
700
+ i = !0;
701
+ }
702
+ }
703
+ if (i) {
704
+ var f = e, y = o(f), g = a === "" ? Ke + De(f, 0) : a;
705
+ if (he(y)) {
706
+ var R = "";
707
+ g != null && (R = Je(g) + "/"), ge(y, t, R, "", function($r) {
708
+ return $r;
709
+ });
710
+ } else
711
+ y != null && (ae(y) && (y.key && (!f || f.key !== y.key) && me(y.key), y = Ft(
712
+ y,
713
+ // Keep both the (mapped) and old keys if they differ, just as
714
+ // traverseAllChildren used to do for objects as children
715
+ n + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
716
+ (y.key && (!f || f.key !== y.key) ? (
717
+ // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
718
+ // eslint-disable-next-line react-internal/safe-string-coercion
719
+ Je("" + y.key) + "/"
720
+ ) : "") + g
721
+ )), t.push(y));
722
+ return 1;
723
+ }
724
+ var w, C, O = 0, $ = a === "" ? Ke : a + Lt;
725
+ if (he(e))
726
+ for (var Oe = 0; Oe < e.length; Oe++)
727
+ w = e[Oe], C = $ + De(w, Oe), O += ge(w, t, n, C, o);
728
+ else {
729
+ var Ve = W(e);
730
+ if (typeof Ve == "function") {
731
+ var Et = e;
732
+ Ve === Et.entries && (Qe || Z("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), Qe = !0);
733
+ for (var Ar = Ve.call(Et), Rt, Dr = 0; !(Rt = Ar.next()).done; )
734
+ w = Rt.value, C = $ + De(w, Dr++), O += ge(w, t, n, C, o);
735
+ } else if (s === "object") {
736
+ var wt = String(e);
737
+ throw new Error("Objects are not valid as a React child (found: " + (wt === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : wt) + "). If you meant to render a collection of children, use an array instead.");
738
+ }
739
+ }
740
+ return O;
741
+ }
742
+ function _e(e, t, n) {
743
+ if (e == null)
744
+ return e;
745
+ var a = [], o = 0;
746
+ return ge(e, a, "", "", function(s) {
747
+ return t.call(n, s, o++);
748
+ }), a;
749
+ }
750
+ function Vt(e) {
751
+ var t = 0;
752
+ return _e(e, function() {
753
+ t++;
754
+ }), t;
755
+ }
756
+ function Wt(e, t, n) {
757
+ _e(e, function() {
758
+ t.apply(this, arguments);
759
+ }, n);
760
+ }
761
+ function Yt(e) {
762
+ return _e(e, function(t) {
763
+ return t;
764
+ }) || [];
765
+ }
766
+ function zt(e) {
767
+ if (!ae(e))
768
+ throw new Error("React.Children.only expected to receive a single React element child.");
769
+ return e;
770
+ }
771
+ function Bt(e) {
772
+ var t = {
773
+ $$typeof: F,
774
+ // As a workaround to support multiple concurrent renderers, we categorize
775
+ // some renderers as primary and others as secondary. We only expect
776
+ // there to be two concurrent renderers at most: React Native (primary) and
777
+ // Fabric (secondary); React DOM (primary) and React ART (secondary).
778
+ // Secondary renderers store their context values on separate fields.
779
+ _currentValue: e,
780
+ _currentValue2: e,
781
+ // Used to track how many concurrent renderers this context currently
782
+ // supports within in a single renderer. Such as parallel server rendering.
783
+ _threadCount: 0,
784
+ // These are circular
785
+ Provider: null,
786
+ Consumer: null,
787
+ // Add these to use same hidden class in VM as ServerContext
788
+ _defaultValue: null,
789
+ _globalName: null
790
+ };
791
+ t.Provider = {
792
+ $$typeof: B,
793
+ _context: t
794
+ };
795
+ var n = !1, a = !1, o = !1;
796
+ {
797
+ var s = {
798
+ $$typeof: F,
799
+ _context: t
800
+ };
801
+ Object.defineProperties(s, {
802
+ Provider: {
803
+ get: function() {
804
+ return a || (a = !0, l("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), t.Provider;
805
+ },
806
+ set: function(i) {
807
+ t.Provider = i;
808
+ }
809
+ },
810
+ _currentValue: {
811
+ get: function() {
812
+ return t._currentValue;
813
+ },
814
+ set: function(i) {
815
+ t._currentValue = i;
816
+ }
817
+ },
818
+ _currentValue2: {
819
+ get: function() {
820
+ return t._currentValue2;
821
+ },
822
+ set: function(i) {
823
+ t._currentValue2 = i;
824
+ }
825
+ },
826
+ _threadCount: {
827
+ get: function() {
828
+ return t._threadCount;
829
+ },
830
+ set: function(i) {
831
+ t._threadCount = i;
832
+ }
833
+ },
834
+ Consumer: {
835
+ get: function() {
836
+ return n || (n = !0, l("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), t.Consumer;
837
+ }
838
+ },
839
+ displayName: {
840
+ get: function() {
841
+ return t.displayName;
842
+ },
843
+ set: function(i) {
844
+ o || (Z("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", i), o = !0);
845
+ }
846
+ }
847
+ }), t.Consumer = s;
848
+ }
849
+ return t._currentRenderer = null, t._currentRenderer2 = null, t;
850
+ }
851
+ var le = -1, $e = 0, Xe = 1, Ht = 2;
852
+ function qt(e) {
853
+ if (e._status === le) {
854
+ var t = e._result, n = t();
855
+ if (n.then(function(s) {
856
+ if (e._status === $e || e._status === le) {
857
+ var i = e;
858
+ i._status = Xe, i._result = s;
859
+ }
860
+ }, function(s) {
861
+ if (e._status === $e || e._status === le) {
862
+ var i = e;
863
+ i._status = Ht, i._result = s;
864
+ }
865
+ }), e._status === le) {
866
+ var a = e;
867
+ a._status = $e, a._result = n;
868
+ }
869
+ }
870
+ if (e._status === Xe) {
871
+ var o = e._result;
872
+ return o === void 0 && l(`lazy: Expected the result of a dynamic import() call. Instead received: %s
873
+
874
+ Your code should look like:
875
+ const MyComponent = lazy(() => import('./MyComponent'))
876
+
877
+ Did you accidentally put curly braces around the import?`, o), "default" in o || l(`lazy: Expected the result of a dynamic import() call. Instead received: %s
878
+
879
+ Your code should look like:
880
+ const MyComponent = lazy(() => import('./MyComponent'))`, o), o.default;
881
+ } else
882
+ throw e._result;
883
+ }
884
+ function Gt(e) {
885
+ var t = {
886
+ // We use these fields to store the result.
887
+ _status: le,
888
+ _result: e
889
+ }, n = {
890
+ $$typeof: P,
891
+ _payload: t,
892
+ _init: qt
893
+ };
894
+ {
895
+ var a, o;
896
+ Object.defineProperties(n, {
897
+ defaultProps: {
898
+ configurable: !0,
899
+ get: function() {
900
+ return a;
901
+ },
902
+ set: function(s) {
903
+ l("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), a = s, Object.defineProperty(n, "defaultProps", {
904
+ enumerable: !0
905
+ });
906
+ }
907
+ },
908
+ propTypes: {
909
+ configurable: !0,
910
+ get: function() {
911
+ return o;
912
+ },
913
+ set: function(s) {
914
+ l("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), o = s, Object.defineProperty(n, "propTypes", {
915
+ enumerable: !0
916
+ });
917
+ }
918
+ }
919
+ });
920
+ }
921
+ return n;
922
+ }
923
+ function Kt(e) {
924
+ e != null && e.$$typeof === D ? l("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? l("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && l("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), e != null && (e.defaultProps != null || e.propTypes != null) && l("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
925
+ var t = {
926
+ $$typeof: N,
927
+ render: e
928
+ };
929
+ {
930
+ var n;
931
+ Object.defineProperty(t, "displayName", {
932
+ enumerable: !1,
933
+ configurable: !0,
934
+ get: function() {
935
+ return n;
936
+ },
937
+ set: function(a) {
938
+ n = a, !e.name && !e.displayName && (e.displayName = a);
939
+ }
940
+ });
941
+ }
942
+ return t;
943
+ }
944
+ var Ze;
945
+ Ze = Symbol.for("react.module.reference");
946
+ function et(e) {
947
+ return !!(typeof e == "string" || typeof e == "function" || e === k || e === I || ne || e === V || e === H || e === J || se || e === G || ie || ke || ve || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === D || e.$$typeof === B || e.$$typeof === F || e.$$typeof === N || // This needs to include all possible module reference object
948
+ // types supported by any Flight configuration anywhere since
949
+ // we don't know which Flight build this will end up being used
950
+ // with.
951
+ e.$$typeof === Ze || e.getModuleId !== void 0));
952
+ }
953
+ function Qt(e, t) {
954
+ et(e) || l("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e);
955
+ var n = {
956
+ $$typeof: D,
957
+ type: e,
958
+ compare: t === void 0 ? null : t
959
+ };
960
+ {
961
+ var a;
962
+ Object.defineProperty(n, "displayName", {
963
+ enumerable: !1,
964
+ configurable: !0,
965
+ get: function() {
966
+ return a;
967
+ },
968
+ set: function(o) {
969
+ a = o, !e.name && !e.displayName && (e.displayName = o);
970
+ }
971
+ });
972
+ }
973
+ return n;
974
+ }
975
+ function x() {
976
+ var e = K.current;
977
+ return e === null && l(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
978
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
979
+ 2. You might be breaking the Rules of Hooks
980
+ 3. You might have more than one copy of React in the same app
981
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`), e;
982
+ }
983
+ function Jt(e) {
984
+ var t = x();
985
+ if (e._context !== void 0) {
986
+ var n = e._context;
987
+ n.Consumer === e ? l("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?") : n.Provider === e && l("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
988
+ }
989
+ return t.useContext(e);
990
+ }
991
+ function Xt(e) {
992
+ var t = x();
993
+ return t.useState(e);
994
+ }
995
+ function Zt(e, t, n) {
996
+ var a = x();
997
+ return a.useReducer(e, t, n);
998
+ }
999
+ function er(e) {
1000
+ var t = x();
1001
+ return t.useRef(e);
1002
+ }
1003
+ function tr(e, t) {
1004
+ var n = x();
1005
+ return n.useEffect(e, t);
1006
+ }
1007
+ function rr(e, t) {
1008
+ var n = x();
1009
+ return n.useInsertionEffect(e, t);
1010
+ }
1011
+ function nr(e, t) {
1012
+ var n = x();
1013
+ return n.useLayoutEffect(e, t);
1014
+ }
1015
+ function ar(e, t) {
1016
+ var n = x();
1017
+ return n.useCallback(e, t);
1018
+ }
1019
+ function or(e, t) {
1020
+ var n = x();
1021
+ return n.useMemo(e, t);
1022
+ }
1023
+ function ur(e, t, n) {
1024
+ var a = x();
1025
+ return a.useImperativeHandle(e, t, n);
1026
+ }
1027
+ function ir(e, t) {
1028
+ {
1029
+ var n = x();
1030
+ return n.useDebugValue(e, t);
1031
+ }
1032
+ }
1033
+ function sr() {
1034
+ var e = x();
1035
+ return e.useTransition();
1036
+ }
1037
+ function cr(e) {
1038
+ var t = x();
1039
+ return t.useDeferredValue(e);
1040
+ }
1041
+ function lr() {
1042
+ var e = x();
1043
+ return e.useId();
1044
+ }
1045
+ function fr(e, t, n) {
1046
+ var a = x();
1047
+ return a.useSyncExternalStore(e, t, n);
1048
+ }
1049
+ var fe = 0, tt, rt, nt, at, ot, ut, it;
1050
+ function st() {
1051
+ }
1052
+ st.__reactDisabledLog = !0;
1053
+ function dr() {
1054
+ {
1055
+ if (fe === 0) {
1056
+ tt = console.log, rt = console.info, nt = console.warn, at = console.error, ot = console.group, ut = console.groupCollapsed, it = console.groupEnd;
1057
+ var e = {
1058
+ configurable: !0,
1059
+ enumerable: !0,
1060
+ value: st,
1061
+ writable: !0
1062
+ };
1063
+ Object.defineProperties(console, {
1064
+ info: e,
1065
+ log: e,
1066
+ warn: e,
1067
+ error: e,
1068
+ group: e,
1069
+ groupCollapsed: e,
1070
+ groupEnd: e
1071
+ });
1072
+ }
1073
+ fe++;
1074
+ }
1075
+ }
1076
+ function pr() {
1077
+ {
1078
+ if (fe--, fe === 0) {
1079
+ var e = {
1080
+ configurable: !0,
1081
+ enumerable: !0,
1082
+ writable: !0
1083
+ };
1084
+ Object.defineProperties(console, {
1085
+ log: d({}, e, {
1086
+ value: tt
1087
+ }),
1088
+ info: d({}, e, {
1089
+ value: rt
1090
+ }),
1091
+ warn: d({}, e, {
1092
+ value: nt
1093
+ }),
1094
+ error: d({}, e, {
1095
+ value: at
1096
+ }),
1097
+ group: d({}, e, {
1098
+ value: ot
1099
+ }),
1100
+ groupCollapsed: d({}, e, {
1101
+ value: ut
1102
+ }),
1103
+ groupEnd: d({}, e, {
1104
+ value: it
1105
+ })
1106
+ });
1107
+ }
1108
+ fe < 0 && l("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1109
+ }
1110
+ }
1111
+ var Ie = q.ReactCurrentDispatcher, Ne;
1112
+ function be(e, t, n) {
1113
+ {
1114
+ if (Ne === void 0)
1115
+ try {
1116
+ throw Error();
1117
+ } catch (o) {
1118
+ var a = o.stack.trim().match(/\n( *(at )?)/);
1119
+ Ne = a && a[1] || "";
1120
+ }
1121
+ return `
1122
+ ` + Ne + e;
1123
+ }
1124
+ }
1125
+ var Fe = !1, Ee;
1126
+ {
1127
+ var vr = typeof WeakMap == "function" ? WeakMap : Map;
1128
+ Ee = new vr();
1129
+ }
1130
+ function ct(e, t) {
1131
+ if (!e || Fe)
1132
+ return "";
1133
+ {
1134
+ var n = Ee.get(e);
1135
+ if (n !== void 0)
1136
+ return n;
1137
+ }
1138
+ var a;
1139
+ Fe = !0;
1140
+ var o = Error.prepareStackTrace;
1141
+ Error.prepareStackTrace = void 0;
1142
+ var s;
1143
+ s = Ie.current, Ie.current = null, dr();
1144
+ try {
1145
+ if (t) {
1146
+ var i = function() {
1147
+ throw Error();
1148
+ };
1149
+ if (Object.defineProperty(i.prototype, "props", {
1150
+ set: function() {
1151
+ throw Error();
1152
+ }
1153
+ }), typeof Reflect == "object" && Reflect.construct) {
1154
+ try {
1155
+ Reflect.construct(i, []);
1156
+ } catch ($) {
1157
+ a = $;
1158
+ }
1159
+ Reflect.construct(e, [], i);
1160
+ } else {
1161
+ try {
1162
+ i.call();
1163
+ } catch ($) {
1164
+ a = $;
1165
+ }
1166
+ e.call(i.prototype);
1167
+ }
1168
+ } else {
1169
+ try {
1170
+ throw Error();
1171
+ } catch ($) {
1172
+ a = $;
1173
+ }
1174
+ e();
1175
+ }
1176
+ } catch ($) {
1177
+ if ($ && a && typeof $.stack == "string") {
1178
+ for (var f = $.stack.split(`
1179
+ `), y = a.stack.split(`
1180
+ `), g = f.length - 1, R = y.length - 1; g >= 1 && R >= 0 && f[g] !== y[R]; )
1181
+ R--;
1182
+ for (; g >= 1 && R >= 0; g--, R--)
1183
+ if (f[g] !== y[R]) {
1184
+ if (g !== 1 || R !== 1)
1185
+ do
1186
+ if (g--, R--, R < 0 || f[g] !== y[R]) {
1187
+ var w = `
1188
+ ` + f[g].replace(" at new ", " at ");
1189
+ return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && Ee.set(e, w), w;
1190
+ }
1191
+ while (g >= 1 && R >= 0);
1192
+ break;
1193
+ }
1194
+ }
1195
+ } finally {
1196
+ Fe = !1, Ie.current = s, pr(), Error.prepareStackTrace = o;
1197
+ }
1198
+ var C = e ? e.displayName || e.name : "", O = C ? be(C) : "";
1199
+ return typeof e == "function" && Ee.set(e, O), O;
1200
+ }
1201
+ function yr(e, t, n) {
1202
+ return ct(e, !1);
1203
+ }
1204
+ function hr(e) {
1205
+ var t = e.prototype;
1206
+ return !!(t && t.isReactComponent);
1207
+ }
1208
+ function Re(e, t, n) {
1209
+ if (e == null)
1210
+ return "";
1211
+ if (typeof e == "function")
1212
+ return ct(e, hr(e));
1213
+ if (typeof e == "string")
1214
+ return be(e);
1215
+ switch (e) {
1216
+ case H:
1217
+ return be("Suspense");
1218
+ case J:
1219
+ return be("SuspenseList");
1220
+ }
1221
+ if (typeof e == "object")
1222
+ switch (e.$$typeof) {
1223
+ case N:
1224
+ return yr(e.render);
1225
+ case D:
1226
+ return Re(e.type, t, n);
1227
+ case P: {
1228
+ var a = e, o = a._payload, s = a._init;
1229
+ try {
1230
+ return Re(s(o), t, n);
1231
+ } catch {
1232
+ }
1233
+ }
1234
+ }
1235
+ return "";
1236
+ }
1237
+ var lt = {}, ft = q.ReactDebugCurrentFrame;
1238
+ function we(e) {
1239
+ if (e) {
1240
+ var t = e._owner, n = Re(e.type, e._source, t ? t.type : null);
1241
+ ft.setExtraStackFrame(n);
1242
+ } else
1243
+ ft.setExtraStackFrame(null);
1244
+ }
1245
+ function mr(e, t, n, a, o) {
1246
+ {
1247
+ var s = Function.call.bind(ce);
1248
+ for (var i in e)
1249
+ if (s(e, i)) {
1250
+ var f = void 0;
1251
+ try {
1252
+ if (typeof e[i] != "function") {
1253
+ var y = Error((a || "React class") + ": " + n + " 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`.");
1254
+ throw y.name = "Invariant Violation", y;
1255
+ }
1256
+ f = e[i](t, i, a, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1257
+ } catch (g) {
1258
+ f = g;
1259
+ }
1260
+ f && !(f instanceof Error) && (we(o), l("%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).", a || "React class", n, i, typeof f), we(null)), f instanceof Error && !(f.message in lt) && (lt[f.message] = !0, we(o), l("Failed %s type: %s", n, f.message), we(null));
1261
+ }
1262
+ }
1263
+ }
1264
+ function oe(e) {
1265
+ if (e) {
1266
+ var t = e._owner, n = Re(e.type, e._source, t ? t.type : null);
1267
+ pe(n);
1268
+ } else
1269
+ pe(null);
1270
+ }
1271
+ var Me;
1272
+ Me = !1;
1273
+ function dt() {
1274
+ if (z.current) {
1275
+ var e = ee(z.current.type);
1276
+ if (e)
1277
+ return `
1278
+
1279
+ Check the render method of \`` + e + "`.";
1280
+ }
1281
+ return "";
1282
+ }
1283
+ function gr(e) {
1284
+ if (e !== void 0) {
1285
+ var t = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
1286
+ return `
1287
+
1288
+ Check your code at ` + t + ":" + n + ".";
1289
+ }
1290
+ return "";
1291
+ }
1292
+ function _r(e) {
1293
+ return e != null ? gr(e.__source) : "";
1294
+ }
1295
+ var pt = {};
1296
+ function br(e) {
1297
+ var t = dt();
1298
+ if (!t) {
1299
+ var n = typeof e == "string" ? e : e.displayName || e.name;
1300
+ n && (t = `
1301
+
1302
+ Check the top-level render call using <` + n + ">.");
1303
+ }
1304
+ return t;
1305
+ }
1306
+ function vt(e, t) {
1307
+ if (!(!e._store || e._store.validated || e.key != null)) {
1308
+ e._store.validated = !0;
1309
+ var n = br(t);
1310
+ if (!pt[n]) {
1311
+ pt[n] = !0;
1312
+ var a = "";
1313
+ e && e._owner && e._owner !== z.current && (a = " It was passed a child from " + ee(e._owner.type) + "."), oe(e), l('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, a), oe(null);
1314
+ }
1315
+ }
1316
+ }
1317
+ function yt(e, t) {
1318
+ if (typeof e == "object") {
1319
+ if (he(e))
1320
+ for (var n = 0; n < e.length; n++) {
1321
+ var a = e[n];
1322
+ ae(a) && vt(a, t);
1323
+ }
1324
+ else if (ae(e))
1325
+ e._store && (e._store.validated = !0);
1326
+ else if (e) {
1327
+ var o = W(e);
1328
+ if (typeof o == "function" && o !== e.entries)
1329
+ for (var s = o.call(e), i; !(i = s.next()).done; )
1330
+ ae(i.value) && vt(i.value, t);
1331
+ }
1332
+ }
1333
+ }
1334
+ function ht(e) {
1335
+ {
1336
+ var t = e.type;
1337
+ if (t == null || typeof t == "string")
1338
+ return;
1339
+ var n;
1340
+ if (typeof t == "function")
1341
+ n = t.propTypes;
1342
+ else if (typeof t == "object" && (t.$$typeof === N || // Note: Memo only checks outer props here.
1343
+ // Inner props are checked in the reconciler.
1344
+ t.$$typeof === D))
1345
+ n = t.propTypes;
1346
+ else
1347
+ return;
1348
+ if (n) {
1349
+ var a = ee(t);
1350
+ mr(n, e.props, "prop", a, e);
1351
+ } else if (t.PropTypes !== void 0 && !Me) {
1352
+ Me = !0;
1353
+ var o = ee(t);
1354
+ l("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
1355
+ }
1356
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && l("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1357
+ }
1358
+ }
1359
+ function Er(e) {
1360
+ {
1361
+ for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
1362
+ var a = t[n];
1363
+ if (a !== "children" && a !== "key") {
1364
+ oe(e), l("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), oe(null);
1365
+ break;
1366
+ }
1367
+ }
1368
+ e.ref !== null && (oe(e), l("Invalid attribute `ref` supplied to `React.Fragment`."), oe(null));
1369
+ }
1370
+ }
1371
+ function mt(e, t, n) {
1372
+ var a = et(e);
1373
+ if (!a) {
1374
+ var o = "";
1375
+ (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.");
1376
+ var s = _r(t);
1377
+ s ? o += s : o += dt();
1378
+ var i;
1379
+ e === null ? i = "null" : he(e) ? i = "array" : e !== void 0 && e.$$typeof === T ? (i = "<" + (ee(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : i = typeof e, l("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", i, o);
1380
+ }
1381
+ var f = Nt.apply(this, arguments);
1382
+ if (f == null)
1383
+ return f;
1384
+ if (a)
1385
+ for (var y = 2; y < arguments.length; y++)
1386
+ yt(arguments[y], e);
1387
+ return e === k ? Er(f) : ht(f), f;
1388
+ }
1389
+ var gt = !1;
1390
+ function Rr(e) {
1391
+ var t = mt.bind(null, e);
1392
+ return t.type = e, gt || (gt = !0, Z("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(t, "type", {
1393
+ enumerable: !1,
1394
+ get: function() {
1395
+ return Z("Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", {
1396
+ value: e
1397
+ }), e;
1398
+ }
1399
+ }), t;
1400
+ }
1401
+ function wr(e, t, n) {
1402
+ for (var a = Mt.apply(this, arguments), o = 2; o < arguments.length; o++)
1403
+ yt(arguments[o], a.type);
1404
+ return ht(a), a;
1405
+ }
1406
+ function Cr(e, t) {
1407
+ var n = Q.transition;
1408
+ Q.transition = {};
1409
+ var a = Q.transition;
1410
+ Q.transition._updatedFibers = /* @__PURE__ */ new Set();
1411
+ try {
1412
+ e();
1413
+ } finally {
1414
+ if (Q.transition = n, n === null && a._updatedFibers) {
1415
+ var o = a._updatedFibers.size;
1416
+ o > 10 && Z("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), a._updatedFibers.clear();
1417
+ }
1418
+ }
1419
+ }
1420
+ var _t = !1, Ce = null;
1421
+ function Sr(e) {
1422
+ if (Ce === null)
1423
+ try {
1424
+ var t = ("require" + Math.random()).slice(0, 7), n = h && h[t];
1425
+ Ce = n.call(h, "timers").setImmediate;
1426
+ } catch {
1427
+ Ce = function(o) {
1428
+ _t === !1 && (_t = !0, typeof MessageChannel > "u" && l("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
1429
+ var s = new MessageChannel();
1430
+ s.port1.onmessage = o, s.port2.postMessage(void 0);
1431
+ };
1432
+ }
1433
+ return Ce(e);
1434
+ }
1435
+ var ue = 0, bt = !1;
1436
+ function Or(e) {
1437
+ {
1438
+ var t = ue;
1439
+ ue++, j.current === null && (j.current = []);
1440
+ var n = j.isBatchingLegacy, a;
1441
+ try {
1442
+ if (j.isBatchingLegacy = !0, a = e(), !n && j.didScheduleLegacyUpdate) {
1443
+ var o = j.current;
1444
+ o !== null && (j.didScheduleLegacyUpdate = !1, Ue(o));
1445
+ }
1446
+ } catch (C) {
1447
+ throw Se(t), C;
1448
+ } finally {
1449
+ j.isBatchingLegacy = n;
1450
+ }
1451
+ if (a !== null && typeof a == "object" && typeof a.then == "function") {
1452
+ var s = a, i = !1, f = {
1453
+ then: function(C, O) {
1454
+ i = !0, s.then(function($) {
1455
+ Se(t), ue === 0 ? Le($, C, O) : C($);
1456
+ }, function($) {
1457
+ Se(t), O($);
1458
+ });
1459
+ }
1460
+ };
1461
+ return !bt && typeof Promise < "u" && Promise.resolve().then(function() {
1462
+ }).then(function() {
1463
+ i || (bt = !0, l("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
1464
+ }), f;
1465
+ } else {
1466
+ var y = a;
1467
+ if (Se(t), ue === 0) {
1468
+ var g = j.current;
1469
+ g !== null && (Ue(g), j.current = null);
1470
+ var R = {
1471
+ then: function(C, O) {
1472
+ j.current === null ? (j.current = [], Le(y, C, O)) : C(y);
1473
+ }
1474
+ };
1475
+ return R;
1476
+ } else {
1477
+ var w = {
1478
+ then: function(C, O) {
1479
+ C(y);
1480
+ }
1481
+ };
1482
+ return w;
1483
+ }
1484
+ }
1485
+ }
1486
+ }
1487
+ function Se(e) {
1488
+ e !== ue - 1 && l("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), ue = e;
1489
+ }
1490
+ function Le(e, t, n) {
1491
+ {
1492
+ var a = j.current;
1493
+ if (a !== null)
1494
+ try {
1495
+ Ue(a), Sr(function() {
1496
+ a.length === 0 ? (j.current = null, t(e)) : Le(e, t, n);
1497
+ });
1498
+ } catch (o) {
1499
+ n(o);
1500
+ }
1501
+ else
1502
+ t(e);
1503
+ }
1504
+ }
1505
+ var xe = !1;
1506
+ function Ue(e) {
1507
+ if (!xe) {
1508
+ xe = !0;
1509
+ var t = 0;
1510
+ try {
1511
+ for (; t < e.length; t++) {
1512
+ var n = e[t];
1513
+ do
1514
+ n = n(!0);
1515
+ while (n !== null);
1516
+ }
1517
+ e.length = 0;
1518
+ } catch (a) {
1519
+ throw e = e.slice(t + 1), a;
1520
+ } finally {
1521
+ xe = !1;
1522
+ }
1523
+ }
1524
+ }
1525
+ var Tr = mt, kr = wr, Pr = Rr, jr = {
1526
+ map: _e,
1527
+ forEach: Wt,
1528
+ count: Vt,
1529
+ toArray: Yt,
1530
+ only: zt
1531
+ };
1532
+ c.Children = jr, c.Component = v, c.Fragment = k, c.Profiler = I, c.PureComponent = L, c.StrictMode = V, c.Suspense = H, c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = q, c.cloneElement = kr, c.createContext = Bt, c.createElement = Tr, c.createFactory = Pr, c.createRef = Tt, c.forwardRef = Kt, c.isValidElement = ae, c.lazy = Gt, c.memo = Qt, c.startTransition = Cr, c.unstable_act = Or, c.useCallback = ar, c.useContext = Jt, c.useDebugValue = ir, c.useDeferredValue = cr, c.useEffect = tr, c.useId = lr, c.useImperativeHandle = ur, c.useInsertionEffect = rr, c.useLayoutEffect = nr, c.useMemo = or, c.useReducer = Zt, c.useRef = er, c.useState = Xt, c.useSyncExternalStore = fr, c.useTransition = sr, c.version = U, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
1533
+ }();
1534
+ }(xr, de)), de;
1535
+ }
1536
+ (function(h) {
1537
+ process.env.NODE_ENV === "production" ? h.exports = Lr() : h.exports = Ur();
1538
+ })(Mr);
1539
+ const Vr = /* @__PURE__ */ Fr(Te), Wr = /* @__PURE__ */ Nr({
1540
+ __proto__: null,
1541
+ default: Vr
1542
+ }, [Te]);
1543
+ /**
1544
+ * @license
1545
+ * Copyright 2018 Google LLC
1546
+ * SPDX-License-Identifier: BSD-3-Clause
1547
+ */
1548
+ const Yr = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), Ot = /* @__PURE__ */ new WeakMap(), zr = (h, c, U, T, A) => {
1549
+ const k = A == null ? void 0 : A[c];
1550
+ k === void 0 || U === T ? U == null && c in HTMLElement.prototype ? h.removeAttribute(c) : h[c] = U : ((V, I, B) => {
1551
+ let F = Ot.get(V);
1552
+ F === void 0 && Ot.set(V, F = /* @__PURE__ */ new Map());
1553
+ let N = F.get(I);
1554
+ B !== void 0 ? N === void 0 ? (F.set(I, N = { handleEvent: B }), V.addEventListener(I, N)) : N.handleEvent = B : N !== void 0 && (F.delete(I), V.removeEventListener(I, N));
1555
+ })(h, k, U);
1556
+ };
1557
+ function Br(h = window.React, c, U, T, A) {
1558
+ let k, V, I;
1559
+ if (c === void 0) {
1560
+ const D = h;
1561
+ ({ tagName: V, elementClass: I, events: T, displayName: A } = D), k = D.react;
1562
+ } else
1563
+ k = h, I = U, V = c;
1564
+ const B = k.Component, F = k.createElement, N = new Set(Object.keys(T ?? {}));
1565
+ class H extends B {
1566
+ constructor() {
1567
+ super(...arguments), this.o = null;
1568
+ }
1569
+ t(P) {
1570
+ if (this.o !== null)
1571
+ for (const G in this.i)
1572
+ zr(this.o, G, this.props[G], P ? P[G] : void 0, T);
1573
+ }
1574
+ componentDidMount() {
1575
+ this.t();
1576
+ }
1577
+ componentDidUpdate(P) {
1578
+ this.t(P);
1579
+ }
1580
+ render() {
1581
+ const { _$Gl: P, ...G } = this.props;
1582
+ this.h !== P && (this.u = (M) => {
1583
+ P !== null && ((W, K) => {
1584
+ typeof W == "function" ? W(K) : W.current = K;
1585
+ })(P, M), this.o = M, this.h = P;
1586
+ }), this.i = {};
1587
+ const Y = { ref: this.u };
1588
+ for (const [M, W] of Object.entries(G))
1589
+ Yr.has(M) ? Y[M === "className" ? "class" : M] = W : N.has(M) || M in I.prototype ? this.i[M] = W : Y[M] = W;
1590
+ return F(V, Y);
1591
+ }
1592
+ }
1593
+ H.displayName = A ?? I.name;
1594
+ const J = k.forwardRef((D, P) => F(H, { ...D, _$Gl: P }, D == null ? void 0 : D.children));
1595
+ return J.displayName = H.displayName, J;
1596
+ }
1597
+ const Jr = Br({
1598
+ displayName: "PieModal",
1599
+ elementClass: Ir,
1600
+ react: Wr,
1601
+ tagName: "pie-modal",
1602
+ events: {}
1603
+ });
1604
+ export {
1605
+ Jr as PieModal
1606
+ };