@arcgis/instant-apps-components-react 4.34.0-next.66 → 4.34.0-next.68

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/index.js CHANGED
@@ -1,2991 +1,240 @@
1
- var An = Object.getPrototypeOf;
2
- var Cn = Reflect.get;
3
- var It = (s) => {
4
- throw TypeError(s);
5
- };
6
- var ct = (s, e, t) => e.has(s) || It("Cannot " + t);
7
- var L = (s, e, t) => (ct(s, e, "read from private field"), t ? t.call(s) : e.get(s)), F = (s, e, t) => e.has(s) ? It("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(s) : e.set(s, t), V = (s, e, t, o) => (ct(s, e, "write to private field"), o ? o.call(s, t) : e.set(s, t), t), me = (s, e, t) => (ct(s, e, "access private method"), t);
8
- var Mt = (s, e, t) => Cn(An(s), t, e);
9
- function On(s) {
10
- return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
11
- }
12
- var Qe = { exports: {} }, b = {};
13
- /**
14
- * @license React
15
- * react.production.js
16
- *
17
- * Copyright (c) Meta Platforms, Inc. and affiliates.
18
- *
19
- * This source code is licensed under the MIT license found in the
20
- * LICENSE file in the root directory of this source tree.
21
- */
22
- var jt;
23
- function Sn() {
24
- if (jt) return b;
25
- jt = 1;
26
- var s = Symbol.for("react.transitional.element"), e = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), u = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), g = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), _ = Symbol.iterator;
27
- function D(i) {
28
- return i === null || typeof i != "object" ? null : (i = _ && i[_] || i["@@iterator"], typeof i == "function" ? i : null);
29
- }
30
- var N = {
31
- isMounted: function() {
32
- return !1;
33
- },
34
- enqueueForceUpdate: function() {
35
- },
36
- enqueueReplaceState: function() {
37
- },
38
- enqueueSetState: function() {
39
- }
40
- }, I = Object.assign, Z = {};
41
- function Y(i, l, E) {
42
- this.props = i, this.context = l, this.refs = Z, this.updater = E || N;
43
- }
44
- Y.prototype.isReactComponent = {}, Y.prototype.setState = function(i, l) {
45
- if (typeof i != "object" && typeof i != "function" && i != null)
46
- throw Error(
47
- "takes an object of state variables to update or a function which returns an object of state variables."
48
- );
49
- this.updater.enqueueSetState(this, i, l, "setState");
50
- }, Y.prototype.forceUpdate = function(i) {
51
- this.updater.enqueueForceUpdate(this, i, "forceUpdate");
52
- };
53
- function pe() {
54
- }
55
- pe.prototype = Y.prototype;
56
- function Oe(i, l, E) {
57
- this.props = i, this.context = l, this.refs = Z, this.updater = E || N;
58
- }
59
- var K = Oe.prototype = new pe();
60
- K.constructor = Oe, I(K, Y.prototype), K.isPureReactComponent = !0;
61
- var Ye = Array.isArray, k = { H: null, A: null, T: null, S: null, V: null }, Se = Object.prototype.hasOwnProperty;
62
- function Re(i, l, E, v, S, M) {
63
- return E = M.ref, {
64
- $$typeof: s,
65
- type: i,
66
- key: l,
67
- ref: E !== void 0 ? E : null,
68
- props: M
69
- };
70
- }
71
- function J(i, l) {
72
- return Re(
73
- i.type,
74
- l,
75
- void 0,
76
- void 0,
77
- void 0,
78
- i.props
79
- );
80
- }
81
- function ee(i) {
82
- return typeof i == "object" && i !== null && i.$$typeof === s;
83
- }
84
- function st(i) {
85
- var l = { "=": "=0", ":": "=2" };
86
- return "$" + i.replace(/[=:]/g, function(E) {
87
- return l[E];
88
- });
89
- }
90
- var j = /\/+/g;
91
- function Te(i, l) {
92
- return typeof i == "object" && i !== null && i.key != null ? st("" + i.key) : l.toString(36);
93
- }
94
- function se() {
95
- }
96
- function ie(i) {
97
- switch (i.status) {
98
- case "fulfilled":
99
- return i.value;
100
- case "rejected":
101
- throw i.reason;
102
- default:
103
- switch (typeof i.status == "string" ? i.then(se, se) : (i.status = "pending", i.then(
104
- function(l) {
105
- i.status === "pending" && (i.status = "fulfilled", i.value = l);
106
- },
107
- function(l) {
108
- i.status === "pending" && (i.status = "rejected", i.reason = l);
109
- }
110
- )), i.status) {
111
- case "fulfilled":
112
- return i.value;
113
- case "rejected":
114
- throw i.reason;
115
- }
116
- }
117
- throw i;
118
- }
119
- function B(i, l, E, v, S) {
120
- var M = typeof i;
121
- (M === "undefined" || M === "boolean") && (i = null);
122
- var $ = !1;
123
- if (i === null) $ = !0;
124
- else
125
- switch (M) {
126
- case "bigint":
127
- case "string":
128
- case "number":
129
- $ = !0;
130
- break;
131
- case "object":
132
- switch (i.$$typeof) {
133
- case s:
134
- case e:
135
- $ = !0;
136
- break;
137
- case m:
138
- return $ = i._init, B(
139
- $(i._payload),
140
- l,
141
- E,
142
- v,
143
- S
144
- );
145
- }
146
- }
147
- if ($)
148
- return S = S(i), $ = v === "" ? "." + Te(i, 0) : v, Ye(S) ? (E = "", $ != null && (E = $.replace(j, "$&/") + "/"), B(S, l, E, "", function(ye) {
149
- return ye;
150
- })) : S != null && (ee(S) && (S = J(
151
- S,
152
- E + (S.key == null || i && i.key === S.key ? "" : ("" + S.key).replace(
153
- j,
154
- "$&/"
155
- ) + "/") + $
156
- )), l.push(S)), 1;
157
- $ = 0;
158
- var G = v === "" ? "." : v + ":";
159
- if (Ye(i))
160
- for (var H = 0; H < i.length; H++)
161
- v = i[H], M = G + Te(v, H), $ += B(
162
- v,
163
- l,
164
- E,
165
- M,
166
- S
167
- );
168
- else if (H = D(i), typeof H == "function")
169
- for (i = H.call(i), H = 0; !(v = i.next()).done; )
170
- v = v.value, M = G + Te(v, H++), $ += B(
171
- v,
172
- l,
173
- E,
174
- M,
175
- S
176
- );
177
- else if (M === "object") {
178
- if (typeof i.then == "function")
179
- return B(
180
- ie(i),
181
- l,
182
- E,
183
- v,
184
- S
185
- );
186
- throw l = String(i), Error(
187
- "Objects are not valid as a React child (found: " + (l === "[object Object]" ? "object with keys {" + Object.keys(i).join(", ") + "}" : l) + "). If you meant to render a collection of children, use an array instead."
188
- );
189
- }
190
- return $;
191
- }
192
- function te(i, l, E) {
193
- if (i == null) return i;
194
- var v = [], S = 0;
195
- return B(i, v, "", "", function(M) {
196
- return l.call(E, M, S++);
197
- }), v;
198
- }
199
- function Ne(i) {
200
- if (i._status === -1) {
201
- var l = i._result;
202
- l = l(), l.then(
203
- function(E) {
204
- (i._status === 0 || i._status === -1) && (i._status = 1, i._result = E);
205
- },
206
- function(E) {
207
- (i._status === 0 || i._status === -1) && (i._status = 2, i._result = E);
208
- }
209
- ), i._status === -1 && (i._status = 0, i._result = l);
210
- }
211
- if (i._status === 1) return i._result.default;
212
- throw i._result;
213
- }
214
- var fe = typeof reportError == "function" ? reportError : function(i) {
215
- if (typeof window == "object" && typeof window.ErrorEvent == "function") {
216
- var l = new window.ErrorEvent("error", {
217
- bubbles: !0,
218
- cancelable: !0,
219
- message: typeof i == "object" && i !== null && typeof i.message == "string" ? String(i.message) : String(i),
220
- error: i
221
- });
222
- if (!window.dispatchEvent(l)) return;
223
- } else if (typeof process == "object" && typeof process.emit == "function") {
224
- process.emit("uncaughtException", i);
225
- return;
226
- }
227
- console.error(i);
228
- };
229
- function qe() {
230
- }
231
- return b.Children = {
232
- map: te,
233
- forEach: function(i, l, E) {
234
- te(
235
- i,
236
- function() {
237
- l.apply(this, arguments);
238
- },
239
- E
240
- );
241
- },
242
- count: function(i) {
243
- var l = 0;
244
- return te(i, function() {
245
- l++;
246
- }), l;
247
- },
248
- toArray: function(i) {
249
- return te(i, function(l) {
250
- return l;
251
- }) || [];
252
- },
253
- only: function(i) {
254
- if (!ee(i))
255
- throw Error(
256
- "React.Children.only expected to receive a single React element child."
257
- );
258
- return i;
259
- }
260
- }, b.Component = Y, b.Fragment = t, b.Profiler = r, b.PureComponent = Oe, b.StrictMode = o, b.Suspense = h, b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = k, b.__COMPILER_RUNTIME = {
261
- __proto__: null,
262
- c: function(i) {
263
- return k.H.useMemoCache(i);
264
- }
265
- }, b.cache = function(i) {
266
- return function() {
267
- return i.apply(null, arguments);
268
- };
269
- }, b.cloneElement = function(i, l, E) {
270
- if (i == null)
271
- throw Error(
272
- "The argument must be a React element, but you passed " + i + "."
273
- );
274
- var v = I({}, i.props), S = i.key, M = void 0;
275
- if (l != null)
276
- for ($ in l.ref !== void 0 && (M = void 0), l.key !== void 0 && (S = "" + l.key), l)
277
- !Se.call(l, $) || $ === "key" || $ === "__self" || $ === "__source" || $ === "ref" && l.ref === void 0 || (v[$] = l[$]);
278
- var $ = arguments.length - 2;
279
- if ($ === 1) v.children = E;
280
- else if (1 < $) {
281
- for (var G = Array($), H = 0; H < $; H++)
282
- G[H] = arguments[H + 2];
283
- v.children = G;
284
- }
285
- return Re(i.type, S, void 0, void 0, M, v);
286
- }, b.createContext = function(i) {
287
- return i = {
288
- $$typeof: u,
289
- _currentValue: i,
290
- _currentValue2: i,
291
- _threadCount: 0,
292
- Provider: null,
293
- Consumer: null
294
- }, i.Provider = i, i.Consumer = {
295
- $$typeof: a,
296
- _context: i
297
- }, i;
298
- }, b.createElement = function(i, l, E) {
299
- var v, S = {}, M = null;
300
- if (l != null)
301
- for (v in l.key !== void 0 && (M = "" + l.key), l)
302
- Se.call(l, v) && v !== "key" && v !== "__self" && v !== "__source" && (S[v] = l[v]);
303
- var $ = arguments.length - 2;
304
- if ($ === 1) S.children = E;
305
- else if (1 < $) {
306
- for (var G = Array($), H = 0; H < $; H++)
307
- G[H] = arguments[H + 2];
308
- S.children = G;
309
- }
310
- if (i && i.defaultProps)
311
- for (v in $ = i.defaultProps, $)
312
- S[v] === void 0 && (S[v] = $[v]);
313
- return Re(i, M, void 0, void 0, null, S);
314
- }, b.createRef = function() {
315
- return { current: null };
316
- }, b.forwardRef = function(i) {
317
- return { $$typeof: p, render: i };
318
- }, b.isValidElement = ee, b.lazy = function(i) {
319
- return {
320
- $$typeof: m,
321
- _payload: { _status: -1, _result: i },
322
- _init: Ne
323
- };
324
- }, b.memo = function(i, l) {
325
- return {
326
- $$typeof: g,
327
- type: i,
328
- compare: l === void 0 ? null : l
329
- };
330
- }, b.startTransition = function(i) {
331
- var l = k.T, E = {};
332
- k.T = E;
333
- try {
334
- var v = i(), S = k.S;
335
- S !== null && S(E, v), typeof v == "object" && v !== null && typeof v.then == "function" && v.then(qe, fe);
336
- } catch (M) {
337
- fe(M);
338
- } finally {
339
- k.T = l;
340
- }
341
- }, b.unstable_useCacheRefresh = function() {
342
- return k.H.useCacheRefresh();
343
- }, b.use = function(i) {
344
- return k.H.use(i);
345
- }, b.useActionState = function(i, l, E) {
346
- return k.H.useActionState(i, l, E);
347
- }, b.useCallback = function(i, l) {
348
- return k.H.useCallback(i, l);
349
- }, b.useContext = function(i) {
350
- return k.H.useContext(i);
351
- }, b.useDebugValue = function() {
352
- }, b.useDeferredValue = function(i, l) {
353
- return k.H.useDeferredValue(i, l);
354
- }, b.useEffect = function(i, l, E) {
355
- var v = k.H;
356
- if (typeof E == "function")
357
- throw Error(
358
- "useEffect CRUD overload is not enabled in this build of React."
359
- );
360
- return v.useEffect(i, l);
361
- }, b.useId = function() {
362
- return k.H.useId();
363
- }, b.useImperativeHandle = function(i, l, E) {
364
- return k.H.useImperativeHandle(i, l, E);
365
- }, b.useInsertionEffect = function(i, l) {
366
- return k.H.useInsertionEffect(i, l);
367
- }, b.useLayoutEffect = function(i, l) {
368
- return k.H.useLayoutEffect(i, l);
369
- }, b.useMemo = function(i, l) {
370
- return k.H.useMemo(i, l);
371
- }, b.useOptimistic = function(i, l) {
372
- return k.H.useOptimistic(i, l);
373
- }, b.useReducer = function(i, l, E) {
374
- return k.H.useReducer(i, l, E);
375
- }, b.useRef = function(i) {
376
- return k.H.useRef(i);
377
- }, b.useState = function(i) {
378
- return k.H.useState(i);
379
- }, b.useSyncExternalStore = function(i, l, E) {
380
- return k.H.useSyncExternalStore(
381
- i,
382
- l,
383
- E
384
- );
385
- }, b.useTransition = function() {
386
- return k.H.useTransition();
387
- }, b.version = "19.1.0", b;
388
- }
389
- var Pe = { exports: {} };
390
- /**
391
- * @license React
392
- * react.development.js
393
- *
394
- * Copyright (c) Meta Platforms, Inc. and affiliates.
395
- *
396
- * This source code is licensed under the MIT license found in the
397
- * LICENSE file in the root directory of this source tree.
398
- */
399
- Pe.exports;
400
- var Ht;
401
- function Rn() {
402
- return Ht || (Ht = 1, function(s, e) {
403
- process.env.NODE_ENV !== "production" && function() {
404
- function t(n, c) {
405
- Object.defineProperty(a.prototype, n, {
406
- get: function() {
407
- console.warn(
408
- "%s(...) is deprecated in plain JavaScript React classes. %s",
409
- c[0],
410
- c[1]
411
- );
412
- }
413
- });
414
- }
415
- function o(n) {
416
- return n === null || typeof n != "object" ? null : (n = wt && n[wt] || n["@@iterator"], typeof n == "function" ? n : null);
417
- }
418
- function r(n, c) {
419
- n = (n = n.constructor) && (n.displayName || n.name) || "ReactClass";
420
- var d = n + "." + c;
421
- $t[d] || (console.error(
422
- "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.",
423
- c,
424
- n
425
- ), $t[d] = !0);
426
- }
427
- function a(n, c, d) {
428
- this.props = n, this.context = c, this.refs = it, this.updater = d || At;
429
- }
430
- function u() {
431
- }
432
- function p(n, c, d) {
433
- this.props = n, this.context = c, this.refs = it, this.updater = d || At;
434
- }
435
- function h(n) {
436
- return "" + n;
437
- }
438
- function g(n) {
439
- try {
440
- h(n);
441
- var c = !1;
442
- } catch {
443
- c = !0;
444
- }
445
- if (c) {
446
- c = console;
447
- var d = c.error, f = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
448
- return d.call(
449
- c,
450
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
451
- f
452
- ), h(n);
453
- }
454
- }
455
- function m(n) {
456
- if (n == null) return null;
457
- if (typeof n == "function")
458
- return n.$$typeof === En ? null : n.displayName || n.name || null;
459
- if (typeof n == "string") return n;
460
- switch (n) {
461
- case i:
462
- return "Fragment";
463
- case E:
464
- return "Profiler";
465
- case l:
466
- return "StrictMode";
467
- case $:
468
- return "Suspense";
469
- case G:
470
- return "SuspenseList";
471
- case vn:
472
- return "Activity";
473
- }
474
- if (typeof n == "object")
475
- switch (typeof n.tag == "number" && console.error(
476
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
477
- ), n.$$typeof) {
478
- case qe:
479
- return "Portal";
480
- case S:
481
- return (n.displayName || "Context") + ".Provider";
482
- case v:
483
- return (n._context.displayName || "Context") + ".Consumer";
484
- case M:
485
- var c = n.render;
486
- return n = n.displayName, n || (n = c.displayName || c.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
487
- case H:
488
- return c = n.displayName || null, c !== null ? c : m(n.type) || "Memo";
489
- case ye:
490
- c = n._payload, n = n._init;
491
- try {
492
- return m(n(c));
493
- } catch {
494
- }
495
- }
496
- return null;
497
- }
498
- function _(n) {
499
- if (n === i) return "<>";
500
- if (typeof n == "object" && n !== null && n.$$typeof === ye)
501
- return "<...>";
502
- try {
503
- var c = m(n);
504
- return c ? "<" + c + ">" : "<...>";
505
- } catch {
506
- return "<...>";
507
- }
508
- }
509
- function D() {
510
- var n = C.A;
511
- return n === null ? null : n.getOwner();
512
- }
513
- function N() {
514
- return Error("react-stack-top-frame");
515
- }
516
- function I(n) {
517
- if (Be.call(n, "key")) {
518
- var c = Object.getOwnPropertyDescriptor(n, "key").get;
519
- if (c && c.isReactWarning) return !1;
520
- }
521
- return n.key !== void 0;
522
- }
523
- function Z(n, c) {
524
- function d() {
525
- Rt || (Rt = !0, console.error(
526
- "%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://react.dev/link/special-props)",
527
- c
528
- ));
529
- }
530
- d.isReactWarning = !0, Object.defineProperty(n, "key", {
531
- get: d,
532
- configurable: !0
533
- });
534
- }
535
- function Y() {
536
- var n = m(this.type);
537
- return Nt[n] || (Nt[n] = !0, console.error(
538
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
539
- )), n = this.props.ref, n !== void 0 ? n : null;
540
- }
541
- function pe(n, c, d, f, y, O, w, P) {
542
- return d = O.ref, n = {
543
- $$typeof: fe,
544
- type: n,
545
- key: c,
546
- props: O,
547
- _owner: y
548
- }, (d !== void 0 ? d : null) !== null ? Object.defineProperty(n, "ref", {
549
- enumerable: !1,
550
- get: Y
551
- }) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
552
- configurable: !1,
553
- enumerable: !1,
554
- writable: !0,
555
- value: 0
556
- }), Object.defineProperty(n, "_debugInfo", {
557
- configurable: !1,
558
- enumerable: !1,
559
- writable: !0,
560
- value: null
561
- }), Object.defineProperty(n, "_debugStack", {
562
- configurable: !1,
563
- enumerable: !1,
564
- writable: !0,
565
- value: w
566
- }), Object.defineProperty(n, "_debugTask", {
567
- configurable: !1,
568
- enumerable: !1,
569
- writable: !0,
570
- value: P
571
- }), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
572
- }
573
- function Oe(n, c) {
574
- return c = pe(
575
- n.type,
576
- c,
577
- void 0,
578
- void 0,
579
- n._owner,
580
- n.props,
581
- n._debugStack,
582
- n._debugTask
583
- ), n._store && (c._store.validated = n._store.validated), c;
584
- }
585
- function K(n) {
586
- return typeof n == "object" && n !== null && n.$$typeof === fe;
587
- }
588
- function Ye(n) {
589
- var c = { "=": "=0", ":": "=2" };
590
- return "$" + n.replace(/[=:]/g, function(d) {
591
- return c[d];
592
- });
593
- }
594
- function k(n, c) {
595
- return typeof n == "object" && n !== null && n.key != null ? (g(n.key), Ye("" + n.key)) : c.toString(36);
596
- }
597
- function Se() {
598
- }
599
- function Re(n) {
600
- switch (n.status) {
601
- case "fulfilled":
602
- return n.value;
603
- case "rejected":
604
- throw n.reason;
605
- default:
606
- switch (typeof n.status == "string" ? n.then(Se, Se) : (n.status = "pending", n.then(
607
- function(c) {
608
- n.status === "pending" && (n.status = "fulfilled", n.value = c);
609
- },
610
- function(c) {
611
- n.status === "pending" && (n.status = "rejected", n.reason = c);
612
- }
613
- )), n.status) {
614
- case "fulfilled":
615
- return n.value;
616
- case "rejected":
617
- throw n.reason;
618
- }
619
- }
620
- throw n;
621
- }
622
- function J(n, c, d, f, y) {
623
- var O = typeof n;
624
- (O === "undefined" || O === "boolean") && (n = null);
625
- var w = !1;
626
- if (n === null) w = !0;
627
- else
628
- switch (O) {
629
- case "bigint":
630
- case "string":
631
- case "number":
632
- w = !0;
633
- break;
634
- case "object":
635
- switch (n.$$typeof) {
636
- case fe:
637
- case qe:
638
- w = !0;
639
- break;
640
- case ye:
641
- return w = n._init, J(
642
- w(n._payload),
643
- c,
644
- d,
645
- f,
646
- y
647
- );
648
- }
649
- }
650
- if (w) {
651
- w = n, y = y(w);
652
- var P = f === "" ? "." + k(w, 0) : f;
653
- return Ot(y) ? (d = "", P != null && (d = P.replace(Pt, "$&/") + "/"), J(y, c, d, "", function(ne) {
654
- return ne;
655
- })) : y != null && (K(y) && (y.key != null && (w && w.key === y.key || g(y.key)), d = Oe(
656
- y,
657
- d + (y.key == null || w && w.key === y.key ? "" : ("" + y.key).replace(
658
- Pt,
659
- "$&/"
660
- ) + "/") + P
661
- ), f !== "" && w != null && K(w) && w.key == null && w._store && !w._store.validated && (d._store.validated = 2), y = d), c.push(y)), 1;
662
- }
663
- if (w = 0, P = f === "" ? "." : f + ":", Ot(n))
664
- for (var A = 0; A < n.length; A++)
665
- f = n[A], O = P + k(f, A), w += J(
666
- f,
667
- c,
668
- d,
669
- O,
670
- y
671
- );
672
- else if (A = o(n), typeof A == "function")
673
- for (A === n.entries && (Lt || console.warn(
674
- "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
675
- ), Lt = !0), n = A.call(n), A = 0; !(f = n.next()).done; )
676
- f = f.value, O = P + k(f, A++), w += J(
677
- f,
678
- c,
679
- d,
680
- O,
681
- y
682
- );
683
- else if (O === "object") {
684
- if (typeof n.then == "function")
685
- return J(
686
- Re(n),
687
- c,
688
- d,
689
- f,
690
- y
691
- );
692
- throw c = String(n), Error(
693
- "Objects are not valid as a React child (found: " + (c === "[object Object]" ? "object with keys {" + Object.keys(n).join(", ") + "}" : c) + "). If you meant to render a collection of children, use an array instead."
694
- );
695
- }
696
- return w;
697
- }
698
- function ee(n, c, d) {
699
- if (n == null) return n;
700
- var f = [], y = 0;
701
- return J(n, f, "", "", function(O) {
702
- return c.call(d, O, y++);
703
- }), f;
704
- }
705
- function st(n) {
706
- if (n._status === -1) {
707
- var c = n._result;
708
- c = c(), c.then(
709
- function(d) {
710
- (n._status === 0 || n._status === -1) && (n._status = 1, n._result = d);
711
- },
712
- function(d) {
713
- (n._status === 0 || n._status === -1) && (n._status = 2, n._result = d);
714
- }
715
- ), n._status === -1 && (n._status = 0, n._result = c);
716
- }
717
- if (n._status === 1)
718
- return c = n._result, c === void 0 && console.error(
719
- `lazy: Expected the result of a dynamic import() call. Instead received: %s
720
-
721
- Your code should look like:
722
- const MyComponent = lazy(() => import('./MyComponent'))
723
-
724
- Did you accidentally put curly braces around the import?`,
725
- c
726
- ), "default" in c || console.error(
727
- `lazy: Expected the result of a dynamic import() call. Instead received: %s
728
-
729
- Your code should look like:
730
- const MyComponent = lazy(() => import('./MyComponent'))`,
731
- c
732
- ), c.default;
733
- throw n._result;
734
- }
735
- function j() {
736
- var n = C.H;
737
- return n === null && console.error(
738
- `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:
739
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
740
- 2. You might be breaking the Rules of Hooks
741
- 3. You might have more than one copy of React in the same app
742
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
743
- ), n;
744
- }
745
- function Te() {
746
- }
747
- function se(n) {
748
- if (Fe === null)
749
- try {
750
- var c = ("require" + Math.random()).slice(0, 7);
751
- Fe = (s && s[c]).call(
752
- s,
753
- "timers"
754
- ).setImmediate;
755
- } catch {
756
- Fe = function(f) {
757
- Dt === !1 && (Dt = !0, typeof MessageChannel > "u" && console.error(
758
- "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."
759
- ));
760
- var y = new MessageChannel();
761
- y.port1.onmessage = f, y.port2.postMessage(void 0);
762
- };
763
- }
764
- return Fe(n);
765
- }
766
- function ie(n) {
767
- return 1 < n.length && typeof AggregateError == "function" ? new AggregateError(n) : n[0];
768
- }
769
- function B(n, c) {
770
- c !== Ke - 1 && console.error(
771
- "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
772
- ), Ke = c;
773
- }
774
- function te(n, c, d) {
775
- var f = C.actQueue;
776
- if (f !== null)
777
- if (f.length !== 0)
778
- try {
779
- Ne(f), se(function() {
780
- return te(n, c, d);
781
- });
782
- return;
783
- } catch (y) {
784
- C.thrownErrors.push(y);
785
- }
786
- else C.actQueue = null;
787
- 0 < C.thrownErrors.length ? (f = ie(C.thrownErrors), C.thrownErrors.length = 0, d(f)) : c(n);
788
- }
789
- function Ne(n) {
790
- if (!at) {
791
- at = !0;
792
- var c = 0;
793
- try {
794
- for (; c < n.length; c++) {
795
- var d = n[c];
796
- do {
797
- C.didUsePromise = !1;
798
- var f = d(!1);
799
- if (f !== null) {
800
- if (C.didUsePromise) {
801
- n[c] = d, n.splice(0, c);
802
- return;
803
- }
804
- d = f;
805
- } else break;
806
- } while (!0);
807
- }
808
- n.length = 0;
809
- } catch (y) {
810
- n.splice(0, c + 1), C.thrownErrors.push(y);
811
- } finally {
812
- at = !1;
813
- }
814
- }
815
- }
816
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
817
- var fe = Symbol.for("react.transitional.element"), qe = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), v = Symbol.for("react.consumer"), S = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), $ = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), ye = Symbol.for("react.lazy"), vn = Symbol.for("react.activity"), wt = Symbol.iterator, $t = {}, At = {
818
- isMounted: function() {
819
- return !1;
820
- },
821
- enqueueForceUpdate: function(n) {
822
- r(n, "forceUpdate");
823
- },
824
- enqueueReplaceState: function(n) {
825
- r(n, "replaceState");
826
- },
827
- enqueueSetState: function(n) {
828
- r(n, "setState");
829
- }
830
- }, Ct = Object.assign, it = {};
831
- Object.freeze(it), a.prototype.isReactComponent = {}, a.prototype.setState = function(n, c) {
832
- if (typeof n != "object" && typeof n != "function" && n != null)
833
- throw Error(
834
- "takes an object of state variables to update or a function which returns an object of state variables."
835
- );
836
- this.updater.enqueueSetState(this, n, c, "setState");
837
- }, a.prototype.forceUpdate = function(n) {
838
- this.updater.enqueueForceUpdate(this, n, "forceUpdate");
839
- };
840
- var q = {
841
- isMounted: [
842
- "isMounted",
843
- "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
844
- ],
845
- replaceState: [
846
- "replaceState",
847
- "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
848
- ]
849
- }, Ve;
850
- for (Ve in q)
851
- q.hasOwnProperty(Ve) && t(Ve, q[Ve]);
852
- u.prototype = a.prototype, q = p.prototype = new u(), q.constructor = p, Ct(q, a.prototype), q.isPureReactComponent = !0;
853
- var Ot = Array.isArray, En = Symbol.for("react.client.reference"), C = {
854
- H: null,
855
- A: null,
856
- T: null,
857
- S: null,
858
- V: null,
859
- actQueue: null,
860
- isBatchingLegacy: !1,
861
- didScheduleLegacyUpdate: !1,
862
- didUsePromise: !1,
863
- thrownErrors: [],
864
- getCurrentStack: null,
865
- recentlyCreatedOwnerStacks: 0
866
- }, Be = Object.prototype.hasOwnProperty, St = console.createTask ? console.createTask : function() {
867
- return null;
868
- };
869
- q = {
870
- "react-stack-bottom-frame": function(n) {
871
- return n();
872
- }
873
- };
874
- var Rt, Tt, Nt = {}, _n = q["react-stack-bottom-frame"].bind(q, N)(), bn = St(_(N)), Lt = !1, Pt = /\/+/g, kt = typeof reportError == "function" ? reportError : function(n) {
875
- if (typeof window == "object" && typeof window.ErrorEvent == "function") {
876
- var c = new window.ErrorEvent("error", {
877
- bubbles: !0,
878
- cancelable: !0,
879
- message: typeof n == "object" && n !== null && typeof n.message == "string" ? String(n.message) : String(n),
880
- error: n
881
- });
882
- if (!window.dispatchEvent(c)) return;
883
- } else if (typeof process == "object" && typeof process.emit == "function") {
884
- process.emit("uncaughtException", n);
885
- return;
886
- }
887
- console.error(n);
888
- }, Dt = !1, Fe = null, Ke = 0, Ge = !1, at = !1, Ut = typeof queueMicrotask == "function" ? function(n) {
889
- queueMicrotask(function() {
890
- return queueMicrotask(n);
891
- });
892
- } : se;
893
- q = Object.freeze({
894
- __proto__: null,
895
- c: function(n) {
896
- return j().useMemoCache(n);
897
- }
898
- }), e.Children = {
899
- map: ee,
900
- forEach: function(n, c, d) {
901
- ee(
902
- n,
903
- function() {
904
- c.apply(this, arguments);
905
- },
906
- d
907
- );
908
- },
909
- count: function(n) {
910
- var c = 0;
911
- return ee(n, function() {
912
- c++;
913
- }), c;
914
- },
915
- toArray: function(n) {
916
- return ee(n, function(c) {
917
- return c;
918
- }) || [];
919
- },
920
- only: function(n) {
921
- if (!K(n))
922
- throw Error(
923
- "React.Children.only expected to receive a single React element child."
924
- );
925
- return n;
926
- }
927
- }, e.Component = a, e.Fragment = i, e.Profiler = E, e.PureComponent = p, e.StrictMode = l, e.Suspense = $, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = C, e.__COMPILER_RUNTIME = q, e.act = function(n) {
928
- var c = C.actQueue, d = Ke;
929
- Ke++;
930
- var f = C.actQueue = c !== null ? c : [], y = !1;
931
- try {
932
- var O = n();
933
- } catch (A) {
934
- C.thrownErrors.push(A);
935
- }
936
- if (0 < C.thrownErrors.length)
937
- throw B(c, d), n = ie(C.thrownErrors), C.thrownErrors.length = 0, n;
938
- if (O !== null && typeof O == "object" && typeof O.then == "function") {
939
- var w = O;
940
- return Ut(function() {
941
- y || Ge || (Ge = !0, console.error(
942
- "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 () => ...);"
943
- ));
944
- }), {
945
- then: function(A, ne) {
946
- y = !0, w.then(
947
- function(ge) {
948
- if (B(c, d), d === 0) {
949
- try {
950
- Ne(f), se(function() {
951
- return te(
952
- ge,
953
- A,
954
- ne
955
- );
956
- });
957
- } catch ($n) {
958
- C.thrownErrors.push($n);
959
- }
960
- if (0 < C.thrownErrors.length) {
961
- var wn = ie(
962
- C.thrownErrors
963
- );
964
- C.thrownErrors.length = 0, ne(wn);
965
- }
966
- } else A(ge);
967
- },
968
- function(ge) {
969
- B(c, d), 0 < C.thrownErrors.length && (ge = ie(
970
- C.thrownErrors
971
- ), C.thrownErrors.length = 0), ne(ge);
972
- }
973
- );
974
- }
975
- };
976
- }
977
- var P = O;
978
- if (B(c, d), d === 0 && (Ne(f), f.length !== 0 && Ut(function() {
979
- y || Ge || (Ge = !0, console.error(
980
- "A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
981
- ));
982
- }), C.actQueue = null), 0 < C.thrownErrors.length)
983
- throw n = ie(C.thrownErrors), C.thrownErrors.length = 0, n;
984
- return {
985
- then: function(A, ne) {
986
- y = !0, d === 0 ? (C.actQueue = f, se(function() {
987
- return te(
988
- P,
989
- A,
990
- ne
991
- );
992
- })) : A(P);
993
- }
994
- };
995
- }, e.cache = function(n) {
996
- return function() {
997
- return n.apply(null, arguments);
998
- };
999
- }, e.captureOwnerStack = function() {
1000
- var n = C.getCurrentStack;
1001
- return n === null ? null : n();
1002
- }, e.cloneElement = function(n, c, d) {
1003
- if (n == null)
1004
- throw Error(
1005
- "The argument must be a React element, but you passed " + n + "."
1006
- );
1007
- var f = Ct({}, n.props), y = n.key, O = n._owner;
1008
- if (c != null) {
1009
- var w;
1010
- e: {
1011
- if (Be.call(c, "ref") && (w = Object.getOwnPropertyDescriptor(
1012
- c,
1013
- "ref"
1014
- ).get) && w.isReactWarning) {
1015
- w = !1;
1016
- break e;
1017
- }
1018
- w = c.ref !== void 0;
1019
- }
1020
- w && (O = D()), I(c) && (g(c.key), y = "" + c.key);
1021
- for (P in c)
1022
- !Be.call(c, P) || P === "key" || P === "__self" || P === "__source" || P === "ref" && c.ref === void 0 || (f[P] = c[P]);
1023
- }
1024
- var P = arguments.length - 2;
1025
- if (P === 1) f.children = d;
1026
- else if (1 < P) {
1027
- w = Array(P);
1028
- for (var A = 0; A < P; A++)
1029
- w[A] = arguments[A + 2];
1030
- f.children = w;
1031
- }
1032
- for (f = pe(
1033
- n.type,
1034
- y,
1035
- void 0,
1036
- void 0,
1037
- O,
1038
- f,
1039
- n._debugStack,
1040
- n._debugTask
1041
- ), y = 2; y < arguments.length; y++)
1042
- O = arguments[y], K(O) && O._store && (O._store.validated = 1);
1043
- return f;
1044
- }, e.createContext = function(n) {
1045
- return n = {
1046
- $$typeof: S,
1047
- _currentValue: n,
1048
- _currentValue2: n,
1049
- _threadCount: 0,
1050
- Provider: null,
1051
- Consumer: null
1052
- }, n.Provider = n, n.Consumer = {
1053
- $$typeof: v,
1054
- _context: n
1055
- }, n._currentRenderer = null, n._currentRenderer2 = null, n;
1056
- }, e.createElement = function(n, c, d) {
1057
- for (var f = 2; f < arguments.length; f++) {
1058
- var y = arguments[f];
1059
- K(y) && y._store && (y._store.validated = 1);
1060
- }
1061
- if (f = {}, y = null, c != null)
1062
- for (A in Tt || !("__self" in c) || "key" in c || (Tt = !0, console.warn(
1063
- "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
1064
- )), I(c) && (g(c.key), y = "" + c.key), c)
1065
- Be.call(c, A) && A !== "key" && A !== "__self" && A !== "__source" && (f[A] = c[A]);
1066
- var O = arguments.length - 2;
1067
- if (O === 1) f.children = d;
1068
- else if (1 < O) {
1069
- for (var w = Array(O), P = 0; P < O; P++)
1070
- w[P] = arguments[P + 2];
1071
- Object.freeze && Object.freeze(w), f.children = w;
1072
- }
1073
- if (n && n.defaultProps)
1074
- for (A in O = n.defaultProps, O)
1075
- f[A] === void 0 && (f[A] = O[A]);
1076
- y && Z(
1077
- f,
1078
- typeof n == "function" ? n.displayName || n.name || "Unknown" : n
1079
- );
1080
- var A = 1e4 > C.recentlyCreatedOwnerStacks++;
1081
- return pe(
1082
- n,
1083
- y,
1084
- void 0,
1085
- void 0,
1086
- D(),
1087
- f,
1088
- A ? Error("react-stack-top-frame") : _n,
1089
- A ? St(_(n)) : bn
1090
- );
1091
- }, e.createRef = function() {
1092
- var n = { current: null };
1093
- return Object.seal(n), n;
1094
- }, e.forwardRef = function(n) {
1095
- n != null && n.$$typeof === H ? console.error(
1096
- "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1097
- ) : typeof n != "function" ? console.error(
1098
- "forwardRef requires a render function but was given %s.",
1099
- n === null ? "null" : typeof n
1100
- ) : n.length !== 0 && n.length !== 2 && console.error(
1101
- "forwardRef render functions accept exactly two parameters: props and ref. %s",
1102
- n.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
1103
- ), n != null && n.defaultProps != null && console.error(
1104
- "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1105
- );
1106
- var c = { $$typeof: M, render: n }, d;
1107
- return Object.defineProperty(c, "displayName", {
1108
- enumerable: !1,
1109
- configurable: !0,
1110
- get: function() {
1111
- return d;
1112
- },
1113
- set: function(f) {
1114
- d = f, n.name || n.displayName || (Object.defineProperty(n, "name", { value: f }), n.displayName = f);
1115
- }
1116
- }), c;
1117
- }, e.isValidElement = K, e.lazy = function(n) {
1118
- return {
1119
- $$typeof: ye,
1120
- _payload: { _status: -1, _result: n },
1121
- _init: st
1122
- };
1123
- }, e.memo = function(n, c) {
1124
- n == null && console.error(
1125
- "memo: The first argument must be a component. Instead received: %s",
1126
- n === null ? "null" : typeof n
1127
- ), c = {
1128
- $$typeof: H,
1129
- type: n,
1130
- compare: c === void 0 ? null : c
1131
- };
1132
- var d;
1133
- return Object.defineProperty(c, "displayName", {
1134
- enumerable: !1,
1135
- configurable: !0,
1136
- get: function() {
1137
- return d;
1138
- },
1139
- set: function(f) {
1140
- d = f, n.name || n.displayName || (Object.defineProperty(n, "name", { value: f }), n.displayName = f);
1141
- }
1142
- }), c;
1143
- }, e.startTransition = function(n) {
1144
- var c = C.T, d = {};
1145
- C.T = d, d._updatedFibers = /* @__PURE__ */ new Set();
1146
- try {
1147
- var f = n(), y = C.S;
1148
- y !== null && y(d, f), typeof f == "object" && f !== null && typeof f.then == "function" && f.then(Te, kt);
1149
- } catch (O) {
1150
- kt(O);
1151
- } finally {
1152
- c === null && d._updatedFibers && (n = d._updatedFibers.size, d._updatedFibers.clear(), 10 < n && console.warn(
1153
- "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."
1154
- )), C.T = c;
1155
- }
1156
- }, e.unstable_useCacheRefresh = function() {
1157
- return j().useCacheRefresh();
1158
- }, e.use = function(n) {
1159
- return j().use(n);
1160
- }, e.useActionState = function(n, c, d) {
1161
- return j().useActionState(
1162
- n,
1163
- c,
1164
- d
1165
- );
1166
- }, e.useCallback = function(n, c) {
1167
- return j().useCallback(n, c);
1168
- }, e.useContext = function(n) {
1169
- var c = j();
1170
- return n.$$typeof === v && console.error(
1171
- "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1172
- ), c.useContext(n);
1173
- }, e.useDebugValue = function(n, c) {
1174
- return j().useDebugValue(n, c);
1175
- }, e.useDeferredValue = function(n, c) {
1176
- return j().useDeferredValue(n, c);
1177
- }, e.useEffect = function(n, c, d) {
1178
- n == null && console.warn(
1179
- "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1180
- );
1181
- var f = j();
1182
- if (typeof d == "function")
1183
- throw Error(
1184
- "useEffect CRUD overload is not enabled in this build of React."
1185
- );
1186
- return f.useEffect(n, c);
1187
- }, e.useId = function() {
1188
- return j().useId();
1189
- }, e.useImperativeHandle = function(n, c, d) {
1190
- return j().useImperativeHandle(n, c, d);
1191
- }, e.useInsertionEffect = function(n, c) {
1192
- return n == null && console.warn(
1193
- "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1194
- ), j().useInsertionEffect(n, c);
1195
- }, e.useLayoutEffect = function(n, c) {
1196
- return n == null && console.warn(
1197
- "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1198
- ), j().useLayoutEffect(n, c);
1199
- }, e.useMemo = function(n, c) {
1200
- return j().useMemo(n, c);
1201
- }, e.useOptimistic = function(n, c) {
1202
- return j().useOptimistic(n, c);
1203
- }, e.useReducer = function(n, c, d) {
1204
- return j().useReducer(n, c, d);
1205
- }, e.useRef = function(n) {
1206
- return j().useRef(n);
1207
- }, e.useState = function(n) {
1208
- return j().useState(n);
1209
- }, e.useSyncExternalStore = function(n, c, d) {
1210
- return j().useSyncExternalStore(
1211
- n,
1212
- c,
1213
- d
1214
- );
1215
- }, e.useTransition = function() {
1216
- return j().useTransition();
1217
- }, e.version = "19.1.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1218
- }();
1219
- }(Pe, Pe.exports)), Pe.exports;
1220
- }
1221
- var xt;
1222
- function Tn() {
1223
- return xt || (xt = 1, process.env.NODE_ENV === "production" ? Qe.exports = Sn() : Qe.exports = Rn()), Qe.exports;
1224
- }
1225
- var Nn = Tn();
1226
- const Ln = /* @__PURE__ */ On(Nn);
1227
- /**
1228
- * @license
1229
- * Copyright 2018 Google LLC
1230
- * SPDX-License-Identifier: BSD-3-Clause
1231
- */
1232
- const Pn = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), Wt = /* @__PURE__ */ new WeakMap(), zt = (s, e, t, o, r) => {
1233
- const a = r?.[e];
1234
- a === void 0 ? (s[e] = t, t == null && e in HTMLElement.prototype && s.removeAttribute(e)) : t !== o && ((u, p, h) => {
1235
- let g = Wt.get(u);
1236
- g === void 0 && Wt.set(u, g = /* @__PURE__ */ new Map());
1237
- let m = g.get(p);
1238
- h !== void 0 ? m === void 0 ? (g.set(p, m = { handleEvent: h }), u.addEventListener(p, m)) : m.handleEvent = h : m !== void 0 && (g.delete(p), u.removeEventListener(p, m));
1239
- })(s, a, t);
1240
- }, kn = ({ react: s, tagName: e, elementClass: t, events: o, displayName: r }) => {
1241
- const a = new Set(Object.keys(o ?? {})), u = s.forwardRef((p, h) => {
1242
- const g = s.useRef(/* @__PURE__ */ new Map()), m = s.useRef(null), _ = {}, D = {};
1243
- for (const [N, I] of Object.entries(p)) Pn.has(N) ? _[N === "className" ? "class" : N] = I : a.has(N) || N in t.prototype ? D[N] = I : _[N] = I;
1244
- return s.useLayoutEffect(() => {
1245
- if (m.current === null) return;
1246
- const N = /* @__PURE__ */ new Map();
1247
- for (const I in D) zt(m.current, I, p[I], g.current.get(I), o), g.current.delete(I), N.set(I, p[I]);
1248
- for (const [I, Z] of g.current) zt(m.current, I, void 0, Z, o);
1249
- g.current = N;
1250
- }), s.useLayoutEffect(() => {
1251
- m.current?.removeAttribute("defer-hydration");
1252
- }, []), _.suppressHydrationWarning = !0, s.createElement(e, { ..._, ref: s.useCallback((N) => {
1253
- m.current = N, typeof h == "function" ? h(N) : h !== null && (h.current = N);
1254
- }, [h]) });
1255
- });
1256
- return u.displayName = r ?? t.name, u;
1257
- }, U = () => (
1258
- //#endregion isEsriInternalEnv
1259
- /*
1260
- * `globalThis.` is important here. Some bundlers remove the `typeof process`
1261
- * checks, but don't remove the usages of undefined variables - this can cause
1262
- * runtime error. By adding `globalThis.`, we avoid having `typeof process`
1263
- * check removed by the bundler.
1264
- * This does meant tree-shaking won't happen for the isEsriInternalEnv()
1265
- * check, but this is ok since this check is meant to always be behind the
1266
- * development/test guard.
1267
- * See https://devtopia.esri.com/WebGIS/arcgis-web-components/pull/2087#issuecomment-5152454
1268
- */
1269
- typeof globalThis.process == "object" && !!process.env.ESRI_INTERNAL
1270
- ), x = (s, e, ...t) => {
1271
- try {
1272
- return s?.call(e, ...t);
1273
- } catch (o) {
1274
- console.error(o, s);
1275
- }
1276
- }, lt = async (s, e, ...t) => {
1277
- try {
1278
- return await s?.call(e, ...t);
1279
- } catch (o) {
1280
- console.error(o, s);
1281
- }
1282
- }, ht = Symbol.for("controller"), Dn = (s) => typeof s == "object" && s !== null && (ht in s || "hostConnected" in s || "hostDisconnected" in s || "hostUpdate" in s || "hostUpdated" in s);
1283
- let Ee;
1284
- const ke = (s) => {
1285
- Ee !== s && (Ee = s, queueMicrotask(() => Ee === s ? Ee = void 0 : 0));
1286
- }, nt = (s) => {
1287
- if (process.env.NODE_ENV !== "production" && Ee === void 0)
1288
- throw new Error(
1289
- [
1290
- `Unable to find out which component ${s || "this"} controller `,
1291
- `belongs to. Possible causes:
1292
- `,
1293
- "- You might have multiple versions of ",
1294
- `@arcgis/lumina package installed
1295
- `,
1296
- ...U() ? [
1297
- "- You tried to create controller outside the component (in ",
1298
- "non-component class or in global scope).",
1299
- "- You accidentally defined the controller using const a = ",
1300
- "makeController(...); rather than const a = () => ",
1301
- "makeController(...);",
1302
- "- You tried to create a controller inside an async function. ",
1303
- "This is not allowed without calling controller.use(). Make ",
1304
- "sure you use it like `await controller.use(useController())`."
1305
- ] : []
1306
- ].join("")
1307
- );
1308
- return Ee;
1309
- };
1310
- let ce = [];
1311
- const Un = (s) => {
1312
- if (s === void 0) {
1313
- ce = [];
1314
- return;
1315
- }
1316
- const e = ce.indexOf(s);
1317
- ce = e === -1 ? [...ce, s] : ce.slice(0, e + 1), queueMicrotask(() => ce = []);
1318
- }, In = () => ce;
1319
- let Yt;
1320
- const Mn = () => {
1321
- const s = Yt;
1322
- return Yt = void 0, s;
1323
- }, jn = async (s, e) => {
1324
- const t = pt(s);
1325
- if (t === void 0) {
1326
- if (process.env.NODE_ENV !== "production" && U() && typeof e == "function")
1327
- throw new Error(
1328
- "Unable to resolve a controller from the provided value, so can't watch it's exports. The value you passed is not a controller and not a controller exports. If your controller exports a literal value, try making your controller export an object instead"
1329
- );
1330
- return s;
1331
- }
1332
- if (await t.ready, typeof e == "function") {
1333
- if (process.env.NODE_ENV !== "production" && U() && t.watchExports === void 0)
1334
- throw new Error("The controller must implement watchExports method to support watching exports");
1335
- const o = t.watchExports(
1336
- (r) => e(r, o)
1337
- );
1338
- }
1339
- return t.exports;
1340
- }, Hn = async (s) => {
1341
- const e = pt(s);
1342
- if (process.env.NODE_ENV !== "production" && U() && e === void 0)
1343
- throw new Error(
1344
- "Unable to resolve a controller from the provided value. The value you passed is not a controller and not a controller exports. If your controller exports a literal value, try making your controller export an object instead"
1345
- );
1346
- return await e.ready, e;
1347
- }, pt = (s) => {
1348
- const t = nt().manager.X(s);
1349
- if (t !== void 0)
1350
- return t;
1351
- if (Dn(s))
1352
- return s;
1353
- const o = Mn();
1354
- if (o !== void 0)
1355
- return o;
1356
- };
1357
- /**
1358
- * @license
1359
- * Copyright 2019 Google LLC
1360
- * SPDX-License-Identifier: BSD-3-Clause
1361
- */
1362
- const Xe = globalThis, ft = Xe.ShadowRoot && (Xe.ShadyCSS === void 0 || Xe.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, cn = Symbol(), qt = /* @__PURE__ */ new WeakMap();
1363
- let xn = class {
1364
- constructor(e, t, o) {
1365
- if (this._$cssResult$ = !0, o !== cn) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
1366
- this.cssText = e, this.t = t;
1367
- }
1368
- get styleSheet() {
1369
- let e = this.o;
1370
- const t = this.t;
1371
- if (ft && e === void 0) {
1372
- const o = t !== void 0 && t.length === 1;
1373
- o && (e = qt.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), o && qt.set(t, e));
1374
- }
1375
- return e;
1376
- }
1377
- toString() {
1378
- return this.cssText;
1379
- }
1380
- };
1381
- const Wn = (s) => new xn(typeof s == "string" ? s : s + "", void 0, cn), zn = (s, e) => {
1382
- if (ft) s.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
1383
- else for (const t of e) {
1384
- const o = document.createElement("style"), r = Xe.litNonce;
1385
- r !== void 0 && o.setAttribute("nonce", r), o.textContent = t.cssText, s.appendChild(o);
1386
- }
1387
- }, Vt = ft ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((e) => {
1388
- let t = "";
1389
- for (const o of e.cssRules) t += o.cssText;
1390
- return Wn(t);
1391
- })(s) : s;
1392
- /**
1393
- * @license
1394
- * Copyright 2017 Google LLC
1395
- * SPDX-License-Identifier: BSD-3-Clause
1396
- */
1397
- const { is: Yn, defineProperty: qn, getOwnPropertyDescriptor: Vn, getOwnPropertyNames: Bn, getOwnPropertySymbols: Fn, getPrototypeOf: Kn } = Object, ot = globalThis, Bt = ot.trustedTypes, Gn = Bt ? Bt.emptyScript : "", Qn = ot.reactiveElementPolyfillSupport, De = (s, e) => s, dt = { toAttribute(s, e) {
1398
- switch (e) {
1399
- case Boolean:
1400
- s = s ? Gn : null;
1401
- break;
1402
- case Object:
1403
- case Array:
1404
- s = s == null ? s : JSON.stringify(s);
1405
- }
1406
- return s;
1407
- }, fromAttribute(s, e) {
1408
- let t = s;
1409
- switch (e) {
1410
- case Boolean:
1411
- t = s !== null;
1412
- break;
1413
- case Number:
1414
- t = s === null ? null : Number(s);
1415
- break;
1416
- case Object:
1417
- case Array:
1418
- try {
1419
- t = JSON.parse(s);
1420
- } catch {
1421
- t = null;
1422
- }
1423
- }
1424
- return t;
1425
- } }, yt = (s, e) => !Yn(s, e), Ft = { attribute: !0, type: String, converter: dt, reflect: !1, useDefault: !1, hasChanged: yt };
1426
- Symbol.metadata ??= Symbol("metadata"), ot.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
1427
- class ve extends HTMLElement {
1428
- static addInitializer(e) {
1429
- this._$Ei(), (this.l ??= []).push(e);
1430
- }
1431
- static get observedAttributes() {
1432
- return this.finalize(), this._$Eh && [...this._$Eh.keys()];
1433
- }
1434
- static createProperty(e, t = Ft) {
1435
- if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
1436
- const o = Symbol(), r = this.getPropertyDescriptor(e, o, t);
1437
- r !== void 0 && qn(this.prototype, e, r);
1438
- }
1439
- }
1440
- static getPropertyDescriptor(e, t, o) {
1441
- const { get: r, set: a } = Vn(this.prototype, e) ?? { get() {
1442
- return this[t];
1443
- }, set(u) {
1444
- this[t] = u;
1445
- } };
1446
- return { get: r, set(u) {
1447
- const p = r?.call(this);
1448
- a?.call(this, u), this.requestUpdate(e, p, o);
1449
- }, configurable: !0, enumerable: !0 };
1450
- }
1451
- static getPropertyOptions(e) {
1452
- return this.elementProperties.get(e) ?? Ft;
1453
- }
1454
- static _$Ei() {
1455
- if (this.hasOwnProperty(De("elementProperties"))) return;
1456
- const e = Kn(this);
1457
- e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
1458
- }
1459
- static finalize() {
1460
- if (this.hasOwnProperty(De("finalized"))) return;
1461
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(De("properties"))) {
1462
- const t = this.properties, o = [...Bn(t), ...Fn(t)];
1463
- for (const r of o) this.createProperty(r, t[r]);
1464
- }
1465
- const e = this[Symbol.metadata];
1466
- if (e !== null) {
1467
- const t = litPropertyMetadata.get(e);
1468
- if (t !== void 0) for (const [o, r] of t) this.elementProperties.set(o, r);
1469
- }
1470
- this._$Eh = /* @__PURE__ */ new Map();
1471
- for (const [t, o] of this.elementProperties) {
1472
- const r = this._$Eu(t, o);
1473
- r !== void 0 && this._$Eh.set(r, t);
1474
- }
1475
- this.elementStyles = this.finalizeStyles(this.styles);
1476
- }
1477
- static finalizeStyles(e) {
1478
- const t = [];
1479
- if (Array.isArray(e)) {
1480
- const o = new Set(e.flat(1 / 0).reverse());
1481
- for (const r of o) t.unshift(Vt(r));
1482
- } else e !== void 0 && t.push(Vt(e));
1483
- return t;
1484
- }
1485
- static _$Eu(e, t) {
1486
- const o = t.attribute;
1487
- return o === !1 ? void 0 : typeof o == "string" ? o : typeof e == "string" ? e.toLowerCase() : void 0;
1488
- }
1489
- constructor() {
1490
- super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
1491
- }
1492
- _$Ev() {
1493
- this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((e) => e(this));
1494
- }
1495
- addController(e) {
1496
- (this._$EO ??= /* @__PURE__ */ new Set()).add(e), this.renderRoot !== void 0 && this.isConnected && e.hostConnected?.();
1497
- }
1498
- removeController(e) {
1499
- this._$EO?.delete(e);
1500
- }
1501
- _$E_() {
1502
- const e = /* @__PURE__ */ new Map(), t = this.constructor.elementProperties;
1503
- for (const o of t.keys()) this.hasOwnProperty(o) && (e.set(o, this[o]), delete this[o]);
1504
- e.size > 0 && (this._$Ep = e);
1505
- }
1506
- createRenderRoot() {
1507
- const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
1508
- return zn(e, this.constructor.elementStyles), e;
1509
- }
1510
- connectedCallback() {
1511
- this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((e) => e.hostConnected?.());
1512
- }
1513
- enableUpdating(e) {
1514
- }
1515
- disconnectedCallback() {
1516
- this._$EO?.forEach((e) => e.hostDisconnected?.());
1517
- }
1518
- attributeChangedCallback(e, t, o) {
1519
- this._$AK(e, o);
1520
- }
1521
- _$ET(e, t) {
1522
- const o = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, o);
1523
- if (r !== void 0 && o.reflect === !0) {
1524
- const a = (o.converter?.toAttribute !== void 0 ? o.converter : dt).toAttribute(t, o.type);
1525
- this._$Em = e, a == null ? this.removeAttribute(r) : this.setAttribute(r, a), this._$Em = null;
1526
- }
1527
- }
1528
- _$AK(e, t) {
1529
- const o = this.constructor, r = o._$Eh.get(e);
1530
- if (r !== void 0 && this._$Em !== r) {
1531
- const a = o.getPropertyOptions(r), u = typeof a.converter == "function" ? { fromAttribute: a.converter } : a.converter?.fromAttribute !== void 0 ? a.converter : dt;
1532
- this._$Em = r, this[r] = u.fromAttribute(t, a.type) ?? this._$Ej?.get(r) ?? null, this._$Em = null;
1533
- }
1534
- }
1535
- requestUpdate(e, t, o) {
1536
- if (e !== void 0) {
1537
- const r = this.constructor, a = this[e];
1538
- if (o ??= r.getPropertyOptions(e), !((o.hasChanged ?? yt)(a, t) || o.useDefault && o.reflect && a === this._$Ej?.get(e) && !this.hasAttribute(r._$Eu(e, o)))) return;
1539
- this.C(e, t, o);
1540
- }
1541
- this.isUpdatePending === !1 && (this._$ES = this._$EP());
1542
- }
1543
- C(e, t, { useDefault: o, reflect: r, wrapped: a }, u) {
1544
- o && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(e) && (this._$Ej.set(e, u ?? t ?? this[e]), a !== !0 || u !== void 0) || (this._$AL.has(e) || (this.hasUpdated || o || (t = void 0), this._$AL.set(e, t)), r === !0 && this._$Em !== e && (this._$Eq ??= /* @__PURE__ */ new Set()).add(e));
1545
- }
1546
- async _$EP() {
1547
- this.isUpdatePending = !0;
1548
- try {
1549
- await this._$ES;
1550
- } catch (t) {
1551
- Promise.reject(t);
1552
- }
1553
- const e = this.scheduleUpdate();
1554
- return e != null && await e, !this.isUpdatePending;
1555
- }
1556
- scheduleUpdate() {
1557
- return this.performUpdate();
1558
- }
1559
- performUpdate() {
1560
- if (!this.isUpdatePending) return;
1561
- if (!this.hasUpdated) {
1562
- if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
1563
- for (const [r, a] of this._$Ep) this[r] = a;
1564
- this._$Ep = void 0;
1565
- }
1566
- const o = this.constructor.elementProperties;
1567
- if (o.size > 0) for (const [r, a] of o) {
1568
- const { wrapped: u } = a, p = this[r];
1569
- u !== !0 || this._$AL.has(r) || p === void 0 || this.C(r, void 0, a, p);
1570
- }
1571
- }
1572
- let e = !1;
1573
- const t = this._$AL;
1574
- try {
1575
- e = this.shouldUpdate(t), e ? (this.willUpdate(t), this._$EO?.forEach((o) => o.hostUpdate?.()), this.update(t)) : this._$EM();
1576
- } catch (o) {
1577
- throw e = !1, this._$EM(), o;
1578
- }
1579
- e && this._$AE(t);
1580
- }
1581
- willUpdate(e) {
1582
- }
1583
- _$AE(e) {
1584
- this._$EO?.forEach((t) => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
1585
- }
1586
- _$EM() {
1587
- this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
1588
- }
1589
- get updateComplete() {
1590
- return this.getUpdateComplete();
1591
- }
1592
- getUpdateComplete() {
1593
- return this._$ES;
1594
- }
1595
- shouldUpdate(e) {
1596
- return !0;
1597
- }
1598
- update(e) {
1599
- this._$Eq &&= this._$Eq.forEach((t) => this._$ET(t, this[t])), this._$EM();
1600
- }
1601
- updated(e) {
1602
- }
1603
- firstUpdated(e) {
1604
- }
1605
- }
1606
- ve.elementStyles = [], ve.shadowRootOptions = { mode: "open" }, ve[De("elementProperties")] = /* @__PURE__ */ new Map(), ve[De("finalized")] = /* @__PURE__ */ new Map(), Qn?.({ ReactiveElement: ve }), (ot.reactiveElementVersions ??= []).push("2.1.0");
1607
- /**
1608
- * @license
1609
- * Copyright 2017 Google LLC
1610
- * SPDX-License-Identifier: BSD-3-Clause
1611
- */
1612
- const gt = globalThis, et = gt.trustedTypes, Kt = et ? et.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, un = "$lit$", oe = `lit$${Math.random().toFixed(9).slice(2)}$`, ln = "?" + oe, Xn = `<${ln}>`, he = document, Ie = () => he.createComment(""), Me = (s) => s === null || typeof s != "object" && typeof s != "function", mt = Array.isArray, Zn = (s) => mt(s) || typeof s?.[Symbol.iterator] == "function", ut = `[
1613
- \f\r]`, Le = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Gt = /-->/g, Qt = />/g, ae = RegExp(`>|${ut}(?:([^\\s"'>=/]+)(${ut}*=${ut}*(?:[^
1614
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Xt = /'/g, Zt = /"/g, dn = /^(?:script|style|textarea|title)$/i, $e = Symbol.for("lit-noChange"), W = Symbol.for("lit-nothing"), Jt = /* @__PURE__ */ new WeakMap(), ue = he.createTreeWalker(he, 129);
1615
- function hn(s, e) {
1616
- if (!mt(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
1617
- return Kt !== void 0 ? Kt.createHTML(e) : e;
1618
- }
1619
- const Jn = (s, e) => {
1620
- const t = s.length - 1, o = [];
1621
- let r, a = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", u = Le;
1622
- for (let p = 0; p < t; p++) {
1623
- const h = s[p];
1624
- let g, m, _ = -1, D = 0;
1625
- for (; D < h.length && (u.lastIndex = D, m = u.exec(h), m !== null); ) D = u.lastIndex, u === Le ? m[1] === "!--" ? u = Gt : m[1] !== void 0 ? u = Qt : m[2] !== void 0 ? (dn.test(m[2]) && (r = RegExp("</" + m[2], "g")), u = ae) : m[3] !== void 0 && (u = ae) : u === ae ? m[0] === ">" ? (u = r ?? Le, _ = -1) : m[1] === void 0 ? _ = -2 : (_ = u.lastIndex - m[2].length, g = m[1], u = m[3] === void 0 ? ae : m[3] === '"' ? Zt : Xt) : u === Zt || u === Xt ? u = ae : u === Gt || u === Qt ? u = Le : (u = ae, r = void 0);
1626
- const N = u === ae && s[p + 1].startsWith("/>") ? " " : "";
1627
- a += u === Le ? h + Xn : _ >= 0 ? (o.push(g), h.slice(0, _) + un + h.slice(_) + oe + N) : h + oe + (_ === -2 ? p : N);
1628
- }
1629
- return [hn(s, a + (s[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), o];
1630
- };
1631
- class je {
1632
- constructor({ strings: e, _$litType$: t }, o) {
1633
- let r;
1634
- this.parts = [];
1635
- let a = 0, u = 0;
1636
- const p = e.length - 1, h = this.parts, [g, m] = Jn(e, t);
1637
- if (this.el = je.createElement(g, o), ue.currentNode = this.el.content, t === 2 || t === 3) {
1638
- const _ = this.el.content.firstChild;
1639
- _.replaceWith(..._.childNodes);
1640
- }
1641
- for (; (r = ue.nextNode()) !== null && h.length < p; ) {
1642
- if (r.nodeType === 1) {
1643
- if (r.hasAttributes()) for (const _ of r.getAttributeNames()) if (_.endsWith(un)) {
1644
- const D = m[u++], N = r.getAttribute(_).split(oe), I = /([.?@])?(.*)/.exec(D);
1645
- h.push({ type: 1, index: a, name: I[2], strings: N, ctor: I[1] === "." ? to : I[1] === "?" ? no : I[1] === "@" ? oo : rt }), r.removeAttribute(_);
1646
- } else _.startsWith(oe) && (h.push({ type: 6, index: a }), r.removeAttribute(_));
1647
- if (dn.test(r.tagName)) {
1648
- const _ = r.textContent.split(oe), D = _.length - 1;
1649
- if (D > 0) {
1650
- r.textContent = et ? et.emptyScript : "";
1651
- for (let N = 0; N < D; N++) r.append(_[N], Ie()), ue.nextNode(), h.push({ type: 2, index: ++a });
1652
- r.append(_[D], Ie());
1653
- }
1654
- }
1655
- } else if (r.nodeType === 8) if (r.data === ln) h.push({ type: 2, index: a });
1656
- else {
1657
- let _ = -1;
1658
- for (; (_ = r.data.indexOf(oe, _ + 1)) !== -1; ) h.push({ type: 7, index: a }), _ += oe.length - 1;
1659
- }
1660
- a++;
1661
- }
1662
- }
1663
- static createElement(e, t) {
1664
- const o = he.createElement("template");
1665
- return o.innerHTML = e, o;
1666
- }
1667
- }
1668
- function Ae(s, e, t = s, o) {
1669
- if (e === $e) return e;
1670
- let r = o !== void 0 ? t._$Co?.[o] : t._$Cl;
1671
- const a = Me(e) ? void 0 : e._$litDirective$;
1672
- return r?.constructor !== a && (r?._$AO?.(!1), a === void 0 ? r = void 0 : (r = new a(s), r._$AT(s, t, o)), o !== void 0 ? (t._$Co ??= [])[o] = r : t._$Cl = r), r !== void 0 && (e = Ae(s, r._$AS(s, e.values), r, o)), e;
1673
- }
1674
- class eo {
1675
- constructor(e, t) {
1676
- this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
1677
- }
1678
- get parentNode() {
1679
- return this._$AM.parentNode;
1680
- }
1681
- get _$AU() {
1682
- return this._$AM._$AU;
1683
- }
1684
- u(e) {
1685
- const { el: { content: t }, parts: o } = this._$AD, r = (e?.creationScope ?? he).importNode(t, !0);
1686
- ue.currentNode = r;
1687
- let a = ue.nextNode(), u = 0, p = 0, h = o[0];
1688
- for (; h !== void 0; ) {
1689
- if (u === h.index) {
1690
- let g;
1691
- h.type === 2 ? g = new ze(a, a.nextSibling, this, e) : h.type === 1 ? g = new h.ctor(a, h.name, h.strings, this, e) : h.type === 6 && (g = new ro(a, this, e)), this._$AV.push(g), h = o[++p];
1692
- }
1693
- u !== h?.index && (a = ue.nextNode(), u++);
1694
- }
1695
- return ue.currentNode = he, r;
1696
- }
1697
- p(e) {
1698
- let t = 0;
1699
- for (const o of this._$AV) o !== void 0 && (o.strings !== void 0 ? (o._$AI(e, o, t), t += o.strings.length - 2) : o._$AI(e[t])), t++;
1700
- }
1701
- }
1702
- class ze {
1703
- get _$AU() {
1704
- return this._$AM?._$AU ?? this._$Cv;
1705
- }
1706
- constructor(e, t, o, r) {
1707
- this.type = 2, this._$AH = W, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = o, this.options = r, this._$Cv = r?.isConnected ?? !0;
1708
- }
1709
- get parentNode() {
1710
- let e = this._$AA.parentNode;
1711
- const t = this._$AM;
1712
- return t !== void 0 && e?.nodeType === 11 && (e = t.parentNode), e;
1713
- }
1714
- get startNode() {
1715
- return this._$AA;
1716
- }
1717
- get endNode() {
1718
- return this._$AB;
1719
- }
1720
- _$AI(e, t = this) {
1721
- e = Ae(this, e, t), Me(e) ? e === W || e == null || e === "" ? (this._$AH !== W && this._$AR(), this._$AH = W) : e !== this._$AH && e !== $e && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Zn(e) ? this.k(e) : this._(e);
1722
- }
1723
- O(e) {
1724
- return this._$AA.parentNode.insertBefore(e, this._$AB);
1725
- }
1726
- T(e) {
1727
- this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
1728
- }
1729
- _(e) {
1730
- this._$AH !== W && Me(this._$AH) ? this._$AA.nextSibling.data = e : this.T(he.createTextNode(e)), this._$AH = e;
1731
- }
1732
- $(e) {
1733
- const { values: t, _$litType$: o } = e, r = typeof o == "number" ? this._$AC(e) : (o.el === void 0 && (o.el = je.createElement(hn(o.h, o.h[0]), this.options)), o);
1734
- if (this._$AH?._$AD === r) this._$AH.p(t);
1735
- else {
1736
- const a = new eo(r, this), u = a.u(this.options);
1737
- a.p(t), this.T(u), this._$AH = a;
1738
- }
1739
- }
1740
- _$AC(e) {
1741
- let t = Jt.get(e.strings);
1742
- return t === void 0 && Jt.set(e.strings, t = new je(e)), t;
1743
- }
1744
- k(e) {
1745
- mt(this._$AH) || (this._$AH = [], this._$AR());
1746
- const t = this._$AH;
1747
- let o, r = 0;
1748
- for (const a of e) r === t.length ? t.push(o = new ze(this.O(Ie()), this.O(Ie()), this, this.options)) : o = t[r], o._$AI(a), r++;
1749
- r < t.length && (this._$AR(o && o._$AB.nextSibling, r), t.length = r);
1750
- }
1751
- _$AR(e = this._$AA.nextSibling, t) {
1752
- for (this._$AP?.(!1, !0, t); e && e !== this._$AB; ) {
1753
- const o = e.nextSibling;
1754
- e.remove(), e = o;
1755
- }
1756
- }
1757
- setConnected(e) {
1758
- this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
1759
- }
1760
- }
1761
- class rt {
1762
- get tagName() {
1763
- return this.element.tagName;
1764
- }
1765
- get _$AU() {
1766
- return this._$AM._$AU;
1767
- }
1768
- constructor(e, t, o, r, a) {
1769
- this.type = 1, this._$AH = W, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = a, o.length > 2 || o[0] !== "" || o[1] !== "" ? (this._$AH = Array(o.length - 1).fill(new String()), this.strings = o) : this._$AH = W;
1770
- }
1771
- _$AI(e, t = this, o, r) {
1772
- const a = this.strings;
1773
- let u = !1;
1774
- if (a === void 0) e = Ae(this, e, t, 0), u = !Me(e) || e !== this._$AH && e !== $e, u && (this._$AH = e);
1775
- else {
1776
- const p = e;
1777
- let h, g;
1778
- for (e = a[0], h = 0; h < a.length - 1; h++) g = Ae(this, p[o + h], t, h), g === $e && (g = this._$AH[h]), u ||= !Me(g) || g !== this._$AH[h], g === W ? e = W : e !== W && (e += (g ?? "") + a[h + 1]), this._$AH[h] = g;
1779
- }
1780
- u && !r && this.j(e);
1781
- }
1782
- j(e) {
1783
- e === W ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
1784
- }
1785
- }
1786
- class to extends rt {
1787
- constructor() {
1788
- super(...arguments), this.type = 3;
1789
- }
1790
- j(e) {
1791
- this.element[this.name] = e === W ? void 0 : e;
1792
- }
1793
- }
1794
- class no extends rt {
1795
- constructor() {
1796
- super(...arguments), this.type = 4;
1797
- }
1798
- j(e) {
1799
- this.element.toggleAttribute(this.name, !!e && e !== W);
1800
- }
1801
- }
1802
- class oo extends rt {
1803
- constructor(e, t, o, r, a) {
1804
- super(e, t, o, r, a), this.type = 5;
1805
- }
1806
- _$AI(e, t = this) {
1807
- if ((e = Ae(this, e, t, 0) ?? W) === $e) return;
1808
- const o = this._$AH, r = e === W && o !== W || e.capture !== o.capture || e.once !== o.once || e.passive !== o.passive, a = e !== W && (o === W || r);
1809
- r && this.element.removeEventListener(this.name, this, o), a && this.element.addEventListener(this.name, this, e), this._$AH = e;
1810
- }
1811
- handleEvent(e) {
1812
- typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
1813
- }
1814
- }
1815
- class ro {
1816
- constructor(e, t, o) {
1817
- this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = o;
1818
- }
1819
- get _$AU() {
1820
- return this._$AM._$AU;
1821
- }
1822
- _$AI(e) {
1823
- Ae(this, e);
1824
- }
1825
- }
1826
- const so = gt.litHtmlPolyfillSupport;
1827
- so?.(je, ze), (gt.litHtmlVersions ??= []).push("3.3.0");
1828
- const io = (s, e, t) => {
1829
- const o = t?.renderBefore ?? e;
1830
- let r = o._$litPart$;
1831
- if (r === void 0) {
1832
- const a = t?.renderBefore ?? null;
1833
- o._$litPart$ = r = new ze(e.insertBefore(Ie(), a), a, void 0, t ?? {});
1834
- }
1835
- return r._$AI(s), r;
1836
- };
1837
- /**
1838
- * @license
1839
- * Copyright 2017 Google LLC
1840
- * SPDX-License-Identifier: BSD-3-Clause
1841
- */
1842
- const vt = globalThis;
1843
- class re extends ve {
1844
- constructor() {
1845
- super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
1846
- }
1847
- createRenderRoot() {
1848
- const e = super.createRenderRoot();
1849
- return this.renderOptions.renderBefore ??= e.firstChild, e;
1850
- }
1851
- update(e) {
1852
- const t = this.render();
1853
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = io(t, this.renderRoot, this.renderOptions);
1854
- }
1855
- connectedCallback() {
1856
- super.connectedCallback(), this._$Do?.setConnected(!0);
1857
- }
1858
- disconnectedCallback() {
1859
- super.disconnectedCallback(), this._$Do?.setConnected(!1);
1860
- }
1861
- render() {
1862
- return $e;
1863
- }
1864
- }
1865
- re._$litElement$ = !0, re.finalized = !0, vt.litElementHydrateSupport?.({ LitElement: re });
1866
- const ao = vt.litElementPolyfillSupport;
1867
- ao?.({ LitElement: re });
1868
- (vt.litElementVersions ??= []).push("4.2.0");
1869
- class He {
1870
- /**
1871
- * Creates a new deferred promise.
1872
- */
1873
- constructor() {
1874
- this.promise = new Promise((e, t) => {
1875
- this.resolve = e, this.reject = t;
1876
- });
1877
- }
1878
- }
1879
- const co = (s, e) => {
1880
- const t = e / uo;
1881
- let o = 0;
1882
- const r = setInterval(() => {
1883
- o += t, o >= e && (clearInterval(r), s());
1884
- }, t);
1885
- return r;
1886
- }, uo = 4, lo = (s, e, t) => {
1887
- const o = Object.keys(s), r = o.length;
1888
- _e === void 0 && queueMicrotask(Et), _e ??= /* @__PURE__ */ new Map();
1889
- let a = _e.get(s);
1890
- return a === void 0 && (a = { callbacks: [], keyCount: r }, _e.set(s, a)), a.keyCount !== r && (a.callbacks.forEach((u) => u(o)), a.callbacks = [], a.keyCount = r), a.callbacks.push((u) => {
1891
- const p = (g) => x(e, null, g), h = u[r];
1892
- h === void 0 ? p(void 0) : s[h] === t ? p(h) : p(void 0);
1893
- }), t;
1894
- };
1895
- let _e;
1896
- const Et = () => {
1897
- _e?.forEach(({ callbacks: s }, e) => {
1898
- const t = Object.keys(e);
1899
- s.forEach((o) => o(t));
1900
- }), _e = void 0;
1901
- }, ho = (s, e, t) => {
1902
- const o = s.manager;
1903
- return o.V !== W && o.V !== t && o.S(void 0, void 0), o.T.length === 0 && queueMicrotask(() => o.S(void 0, void 0)), o.V = t, o.T.push((r, a) => x(e, void 0, t === a ? r : void 0)), t;
1904
- }, po = (s = [
1905
- nt(),
1906
- ...In()
1907
- ], e, t) => {
1908
- const o = Array.isArray(s) ? s : [s];
1909
- let r = o.length + 1;
1910
- const a = (u) => {
1911
- r -= 1, u !== void 0 && (r = Math.min(r, 0)), r === 0 && e(u);
1912
- };
1913
- o.forEach(
1914
- (u) => lo(
1915
- u,
1916
- (p) => a(p === void 0 ? void 0 : { key: p, host: u, isReactive: !1 }),
1917
- t
1918
- )
1919
- );
1920
- for (const u of o)
1921
- if ("manager" in u && u.manager.component === u) {
1922
- ho(
1923
- u,
1924
- (p) => a(p === void 0 ? void 0 : { key: p, host: u, isReactive: !0 }),
1925
- t
1926
- );
1927
- break;
1928
- }
1929
- return t;
1930
- }, fo = (s = "", e = {}, t = nt()) => {
1931
- const o = {
1932
- emit: (r) => {
1933
- if (process.env.NODE_ENV !== "production" && U() && !t.el.isConnected && console.warn(`Trying to emit an ${s} event on a disconnected element ${t.el.localName}`), s === "" && (Et(), process.env.NODE_ENV !== "production" && U() && s === ""))
1934
- throw new Error("Unable to resolve event name from property name");
1935
- const a = new CustomEvent(s, {
1936
- detail: r,
1937
- cancelable: !0,
1938
- bubbles: !0,
1939
- composed: !0,
1940
- ...e
1941
- });
1942
- return t.el.dispatchEvent(a), a;
1943
- }
1944
- };
1945
- return s === "" && po(
1946
- void 0,
1947
- process.env.NODE_ENV !== "production" && U() ? (r) => {
1948
- if (r === void 0)
1949
- throw new Error("createEvent must be called in property default value only");
1950
- s = r.key;
1951
- } : (r) => s = r.key,
1952
- o
1953
- ), o;
1954
- };
1955
- fo.bind(null, "");
1956
- var pn;
1957
- pn = ht;
1958
- class yo {
1959
- constructor(e) {
1960
- this.#n = [], this.#t = [], this.#o = [], this.#c = [], this.#u = [], this.#l = [], this.#d = [], this.#h = [], this.#i = [], this.#a = !1, this.P = new He(), this.connectedCalled = !1, this.loadedCalled = !1, this[pn] = !0, this.#s = [];
1961
- const t = this, o = e ?? nt(new.target.name);
1962
- t.#e = o, t.ready = t.P.promise, t.#r = tn(t), process.env.NODE_ENV !== "production" ? (Object.defineProperty(this, "component", {
1963
- writable: !1,
1964
- enumerable: !1,
1965
- configurable: !0,
1966
- value: o
1967
- }), "hostDestroy" in this && t.#e.manager.devOnly$ensureHasDestroy?.()) : t.component = o, t.#e.addController(t), t.#e.manager === void 0 || (Un(t), queueMicrotask(() => t.catchUpLifecycle()));
1968
- }
1969
- #n;
1970
- #t;
1971
- #o;
1972
- #c;
1973
- #u;
1974
- #l;
1975
- #d;
1976
- #h;
1977
- #i;
1978
- #a;
1979
- #e;
1980
- /**
1981
- * If controller is being added dynamically, after the component
1982
- * construction, then trigger connected and load right away
1983
- */
1984
- catchUpLifecycle() {
1985
- const { manager: e } = this.#e;
1986
- e.connectedCalled && !this.connectedCalled && this.triggerConnected(), e.#a && this.triggerLoad().then(
1987
- () => (
1988
- // Call loaded ourself, unless manager is going to do it
1989
- e.loadedCalled && this.triggerLoaded()
1990
- )
1991
- ).catch(console.error);
1992
- }
1993
- #r;
1994
- get exports() {
1995
- return this.#r;
1996
- }
1997
- /**
1998
- * Set controller's exports property (for usage with proxyExports()) and mark
1999
- * controller as ready (for usage in other controllers). Also, triggers
2000
- * re-render of the component
2001
- */
2002
- set exports(e) {
2003
- const t = this.#r;
2004
- t !== e && (this.#r = e, this.#s.forEach(x), this.connectedCalled && this.O !== !1 && this.#e.requestUpdate(this.O, t)), this.P.resolve(e);
2005
- }
2006
- setProvisionalExports(e, t = !0) {
2007
- this.#r = t ? tn(e) : e, this.#s.forEach(x);
2008
- }
2009
- #s;
2010
- watchExports(e) {
2011
- const t = () => e(this.#r);
2012
- return this.#s.push(t), () => void this.#s.splice(this.#s.indexOf(t), 1);
2013
- }
2014
- /**
2015
- * A flexible utility for making sure a controller is loaded before it's used,
2016
- * regardless of how or where a controller was defined:
2017
- *
2018
- * @example
2019
- * makeGenericController(async (component, controller) => {
2020
- * // Await some controller from the component:
2021
- * await controller.use(component.someController);
2022
- * // Initialize new controllers
2023
- * await controller.use(load(importCoreReactiveUtils));
2024
- * await controller.use(new ViewModelController(component,newWidgetsHomeHomeViewModel));
2025
- * await controller.use(someController(component));
2026
- * });
2027
- *
2028
- * @remarks
2029
- * If your controller is not async, and you are not creating it async, then
2030
- * you are not required to use controller.use - you can use it directly.
2031
- * Similarly, accessing controllers after componentWillLoad callback does not
2032
- * require awaiting them as they are guaranteed to be loaded by then.
2033
- */
2034
- get use() {
2035
- return ke(this.#e), jn;
2036
- }
2037
- /**
2038
- * Just like controller.use, but returns the controller itself, rather than it's
2039
- * exports
2040
- *
2041
- * Use cases:
2042
- * - You have a controller and you want to make sure it's loaded before you
2043
- * try to use it
2044
- * - Your controller is not using exports, so you wish to access some props on
2045
- * it directly
2046
- * - You have a controller exports only, and you want to retrieve the
2047
- * controller itself. This is useful if you wish to call .watchExports() or
2048
- * some other method on the controller
2049
- */
2050
- get useRef() {
2051
- return ke(this.#e), Hn;
2052
- }
2053
- /**
2054
- * Like useRef, but doesn't wait for the controller to get ready
2055
- *
2056
- * @private
2057
- */
2058
- get useRefSync() {
2059
- return ke(this.#e), pt;
2060
- }
2061
- controllerRemoved() {
2062
- this.#e.el.isConnected && this.triggerDisconnected(), this.triggerDestroy();
2063
- }
2064
- // Register a lifecycle callback
2065
- onConnected(e) {
2066
- this.#n.push(e);
2067
- }
2068
- onDisconnected(e) {
2069
- this.#t.push(e);
2070
- }
2071
- onLoad(e) {
2072
- this.#o.push(e);
2073
- }
2074
- onLoaded(e) {
2075
- this.#c.push(e);
2076
- }
2077
- onUpdate(e) {
2078
- this.#u.push(e);
2079
- }
2080
- onUpdated(e) {
2081
- this.#l.push(e);
2082
- }
2083
- onDestroy(e) {
2084
- process.env.NODE_ENV !== "production" && U() && this.#e.manager.devOnly$ensureHasDestroy?.(), this.#d.push(e);
2085
- }
2086
- onLifecycle(e) {
2087
- this.#h.push(e), this.connectedCalled && this.#e.el.isConnected && this.#p(e);
2088
- }
2089
- // Call each lifecycle hook
2090
- /** @private */
2091
- triggerConnected() {
2092
- const e = this;
2093
- e.hostConnected && x(e.hostConnected, e), e.#n.forEach(x), e.triggerLifecycle(), e.connectedCalled = !0;
2094
- }
2095
- /** @private */
2096
- triggerDisconnected() {
2097
- const e = this;
2098
- e.hostDisconnected && x(e.hostDisconnected, e), e.#t.forEach(x), e.#i.forEach(x), e.#i = [];
2099
- }
2100
- /** @private */
2101
- async triggerLoad() {
2102
- if (this.#a)
2103
- return;
2104
- this.#a = !0;
2105
- const e = this;
2106
- e.hostLoad && await lt(e.hostLoad, e), this.#o.length > 0 && await Promise.allSettled(this.#o.map(lt)), this.P.resolve(this.#r);
2107
- }
2108
- /** @private */
2109
- triggerLoaded() {
2110
- this.loadedCalled || (this.hostLoaded && x(this.hostLoaded, this), this.#c.forEach(x), this.loadedCalled = !0);
2111
- }
2112
- /** @private */
2113
- triggerUpdate(e) {
2114
- this.hostUpdate && x(this.hostUpdate, this, e), this.#u.forEach(en, e);
2115
- }
2116
- /** @private */
2117
- triggerUpdated(e) {
2118
- this.hostUpdated && x(this.hostUpdated, this, e), this.#l.forEach(en, e);
2119
- }
2120
- /** @private */
2121
- triggerDestroy() {
2122
- this.hostDestroy && x(this.hostDestroy, this), this.#d.forEach(x);
2123
- }
2124
- /** @private */
2125
- triggerLifecycle() {
2126
- this.hostLifecycle && this.#p(() => this.hostLifecycle()), this.#h.forEach(this.#p, this);
2127
- }
2128
- #p(e) {
2129
- ke(this.#e);
2130
- const t = x(e);
2131
- (Array.isArray(t) ? t : [t]).forEach((r) => {
2132
- typeof r == "function" ? this.#i.push(r) : typeof r == "object" && typeof r.remove == "function" && this.#i.push(r.remove);
2133
- });
2134
- }
2135
- }
2136
- function en(s) {
2137
- x(s, void 0, this);
2138
- }
2139
- const go = yo, tn = (s) => {
2140
- if (typeof s != "object" && typeof s != "function" || s === null)
2141
- return s;
2142
- const e = {
2143
- get(o, r, a) {
2144
- if (!((r === "exports" || r === "_exports") && r in o && o[r] === t)) {
2145
- if (r in o || r in Promise.prototype || typeof r == "symbol")
2146
- return typeof o == "function" ? o[r] : Reflect.get(o, r, a);
2147
- if (process.env.NODE_ENV !== "production" && U()) {
2148
- if (process.env.NODE_ENV === "test" && (r.startsWith("$$") || r.startsWith("@@") || r === "nodeType" || r === "tagName" || r === "toJSON" || r === "hasAttribute"))
2149
- return;
2150
- console.error(
2151
- `Trying to access "${r.toString()}" on the controller before it's loaded. ${nn}`
2152
- );
2153
- }
2154
- }
2155
- }
2156
- };
2157
- process.env.NODE_ENV !== "production" && U() && (e.set = (o, r, a, u) => (console.error(`Trying to set "${r.toString()}" on the controller before it's loaded. ${nn}`), Reflect.set(o, r, a, u)));
2158
- const t = new Proxy(s, e);
2159
- return t;
2160
- }, nn = process.env.NODE_ENV !== "production" && U() ? [
2161
- "This might be the case if you are trying to access an async controller in ",
2162
- "connectedCallback(). Or, if you are using it inside of ",
2163
- "componentWillLoad()/another controller without controller.use. Example correct ",
2164
- `usage:
2165
- `,
2166
- "makeController(async (component, controller)=>{ await controller.use(someOtherController); });"
2167
- ].join("") : void 0, mo = (s) => (
2168
- //#endregion camelToKebab
2169
- s.replace(vo, (e, t) => `${t === 0 ? "" : "-"}${e.toLowerCase()}`)
2170
- ), vo = /[A-Z]+(?![a-z])|[A-Z]/gu, Eo = 1, _o = 2, bo = 4, wo = 8, $o = 16, Ao = 32, Co = 64;
2171
- function Oo(s) {
2172
- const e = s.prototype, t = Object.getOwnPropertyDescriptor(e, "innerText");
2173
- if (t !== void 0 && t.set?.name === "setWrapper")
2174
- return;
2175
- const o = /* @__PURE__ */ new Set([
2176
- // We shouldn't be overwriting this property
2177
- "constructor",
2178
- // Called by Lit - we proxy it to this.el in ProxyComponent
2179
- "setAttribute",
2180
- // Called by Lit SSR - we proxy it to this.el in ProxyComponent
2181
- "removeAttribute",
2182
- // Called by Lit - we proxy it to this.el in ProxyComponent
2183
- "isConnected",
2184
- // Called by Lit, but only in dev mode for warnings, so we don't have to proxy.
2185
- "localName",
2186
- // Called by Lit Context - we proxy it to this.el in ProxyComponent.
2187
- // Interestingly, they never call removeEventListener.
2188
- "addEventListener"
2189
- ]), r = {
2190
- addEventListener: "use this.listen() or this.el.addEventListener()"
2191
- };
2192
- Object.entries({
2193
- ...Object.getOwnPropertyDescriptors(HTMLElement.prototype),
2194
- ...Object.getOwnPropertyDescriptors(Element.prototype),
2195
- ...Object.getOwnPropertyDescriptors(Node.prototype),
2196
- ...Object.getOwnPropertyDescriptors(EventTarget.prototype)
2197
- }).forEach(([a, u]) => {
2198
- if (o.has(a))
2199
- return;
2200
- function p(...h) {
2201
- if (this !== this.el) {
2202
- if (a === "hasAttribute" && h[0] === "defer-hydration")
2203
- return !1;
2204
- throw new Error(
2205
- `You should not be trying to access this.${a} directly as it won't work correctly in lazy-builds. Instead, ${r[a] ?? `use this.el.${a}`}`
2206
- );
2207
- }
2208
- }
2209
- if (typeof u.value == "function")
2210
- e[a] = function(...g) {
2211
- return p.call(this, ...g) ?? u.value.call(this, ...g);
2212
- };
2213
- else if (typeof u.get == "function")
2214
- Object.defineProperty(e, a, {
2215
- get() {
2216
- return p.call(this), u.get.call(this);
2217
- },
2218
- set: typeof u.set == "function" ? function(g) {
2219
- p.call(this), u.set.call(this, g);
2220
- } : void 0
2221
- });
2222
- else {
2223
- if (a === a.toUpperCase() && typeof u.value == "number")
2224
- return;
2225
- throw new Error(`Unexpected value type for ${a}: ${u}`);
2226
- }
2227
- });
2228
- }
2229
- const fn = (s) => {
2230
- let e = s;
2231
- for (; e = e.parentNode ?? e.host; )
2232
- if (e?.constructor?.lumina) {
2233
- const t = e;
2234
- return t.manager?.loadedCalled || (t.J ?? t._offspring).push(s), (t.I ?? t._postLoad).promise;
2235
- }
2236
- return !1;
2237
- };
2238
- if (process.env.NODE_ENV !== "production") {
2239
- const s = globalThis;
2240
- s.litIssuedWarnings ??= /* @__PURE__ */ new Set(), s.litIssuedWarnings.add("dev-mode"), s.litIssuedWarnings.add(
2241
- "Overriding ReactiveElement.createProperty() is deprecated. The override will not be called with standard decorators See https://lit.dev/msg/no-override-create-property for more information."
2242
- ), s.litIssuedWarnings.add(
2243
- "Overriding ReactiveElement.getPropertyDescriptor() is deprecated. The override will not be called with standard decorators See https://lit.dev/msg/no-override-get-property-descriptor for more information."
2244
- ), U() && (globalThis.calciteConfig ??= { version: " " });
2245
- }
2246
- const on = {};
2247
- function _t() {
2248
- }
2249
- process.env.NODE_ENV !== "production" && U();
2250
- const Ze = Object.defineProperty, So = globalThis.HTMLElement ?? _t;
2251
- var z, Q, be, we, Je;
2252
- const bt = class bt extends So {
2253
- constructor() {
2254
- var r;
2255
- super();
2256
- F(this, we);
2257
- F(this, z);
2258
- F(this, Q);
2259
- F(this, be);
2260
- V(this, Q, {}), V(this, be, []), this.I = new He(), this.H = new He(), this.J = [], process.env.NODE_ENV !== "production" && U() && (this.devOnly$hmrSetProps = /* @__PURE__ */ new Set(), this.devOnly$hmrSetAttributes = /* @__PURE__ */ new Set(), globalThis.devOnly$createdElements ??= [], globalThis.devOnly$createdElements.push(new WeakRef(this)), this.devOnly$InitializeComponent = me(this, we, Je).bind(this), this.devOnly$hmrResetStore = (a) => {
2261
- V(this, Q, a);
2262
- });
2263
- const t = this, o = t.constructor;
2264
- t._offspring = t.J, t._postLoad = t.I, o.C?.forEach((a) => {
2265
- Object.hasOwn(t, a) && (L(t, Q)[a] = t[a], delete t[a]);
2266
- }), o.A ? me(r = t, we, Je).call(r, { a: o.A }) : o.B.then(async (a) => {
2267
- var u;
2268
- await o.K.p, me(u = t, we, Je).call(
2269
- u,
2270
- /**
2271
- * "$$" is our top-level await polyfill due to broken top-level await
2272
- * support in Safari. Only applies in CDN build.
2273
- * See https://devtopia.esri.com/WebGIS/arcgis-web-components/issues/3933
2274
- * and https://bugs.webkit.org/show_bug.cgi?id=242740
2275
- */
2276
- await (a.default?.then(
2277
- (p) => typeof p == "function" ? { a: p } : p
2278
- ) ?? a)
2279
- );
2280
- }).catch((a) => {
2281
- t.H.reject(a), setTimeout(() => {
2282
- throw a;
2283
- });
2284
- }), process.env.NODE_ENV !== "production" && U() && (o.devOnly$hmrInstances ??= [], o.devOnly$hmrInstances.push(new WeakRef(this)));
2285
- }
2286
- static F() {
2287
- for (const t of this.C ?? [])
2288
- Ze(this.prototype, t, {
2289
- configurable: !0,
2290
- enumerable: !0,
2291
- get() {
2292
- return L(this, Q)[t];
2293
- },
2294
- set(o) {
2295
- L(this, Q)[t] = o, process.env.NODE_ENV !== "production" && U() && this.devOnly$hmrSetProps.add(t);
2296
- }
2297
- });
2298
- for (const t of this.E ?? [])
2299
- Ze(this.prototype, t, {
2300
- async value(...o) {
2301
- return L(this, z) || await this.H.promise, await L(this, z)[t](...o);
2302
- },
2303
- configurable: !0
2304
- });
2305
- for (const t of this.D ?? [])
2306
- Ze(this.prototype, t, {
2307
- value(...o) {
2308
- if (process.env.NODE_ENV !== "production" && !L(this, z)) {
2309
- const a = this.constructor;
2310
- throw new Error(
2311
- `Tried to call method ${t}() on <${a.L}> component before it's fully loaded. Please do 'await component.componentOnReady();' before calling this method.`
2312
- );
2313
- }
2314
- return L(this, z)[t](...o);
2315
- },
2316
- configurable: !0
2317
- });
2318
- }
2319
- get manager() {
2320
- return L(this, z)?.manager;
2321
- }
2322
- /*
2323
- * This method must be statically present rather than added later, or else,
2324
- * browsers won't call it. Same for connected and disconnected callbacks.
2325
- */
2326
- attributeChangedCallback(t, o, r) {
2327
- L(this, z)?.attributeChangedCallback(t, o, r), L(this, z) || L(this, be).push(t), process.env.NODE_ENV !== "production" && U() && (L(this, z)?.__reflectingProperty === t || this.devOnly$hmrSetAttributes.add(t));
2328
- }
2329
- connectedCallback() {
2330
- L(this, z) ? L(this, z).connectedCallback?.() : queueMicrotask(() => this.G = fn(this));
2331
- }
2332
- disconnectedCallback() {
2333
- L(this, z)?.disconnectedCallback?.();
2334
- }
2335
- /**
2336
- * Create a promise that resolves once component is fully loaded
2337
- */
2338
- async componentOnReady() {
2339
- return await this.H.promise, this;
2340
- }
2341
- /**
2342
- * Implemented on the proxy for compatibility with Lit Context.
2343
- */
2344
- addController() {
2345
- }
2346
- /**
2347
- * Implemented on the proxy for compatibility with Lit Context.
2348
- */
2349
- requestUpdate() {
2350
- L(this, z)?.requestUpdate();
2351
- }
2352
- };
2353
- z = new WeakMap(), Q = new WeakMap(), be = new WeakMap(), we = new WeakSet(), Je = function(t) {
2354
- const o = this.constructor, r = o.L, a = L(this, Q), u = Object.values(t).find(
2355
- (D) => D.L === r
2356
- );
2357
- if (process.env.NODE_ENV !== "production" && U() && !u)
2358
- throw new Error(
2359
- `Unable to find the LitElement class for the "${r}" custom element in the lazy-loaded module`
2360
- );
2361
- const p = process.env.NODE_ENV !== "production" && U() ? (o.devOnly$hmrIndex ?? 0) === 0 ? `${r}--lazy` : `${r}--lazy-${o.devOnly$hmrIndex}` : `${r}--lazy`;
2362
- let h = u;
2363
- for (; h && !Object.hasOwn(h, "lumina"); )
2364
- h = Object.getPrototypeOf(h);
2365
- To(h), !o.A && (o.A = u, customElements.define(p, u)), u.N = this;
2366
- const m = document.createElement(p);
2367
- if (u.N = void 0, V(this, z, m), process.env.NODE_ENV !== "production" && U() && Object.defineProperty(this, "$component", { value: m, configurable: !0, enumerable: !1 }), V(this, Q, m), L(this, be).forEach(
2368
- (D) => m.attributeChangedCallback(
2369
- D,
2370
- // Lit doesn't look at this value, thus even if attribute already exists, that's ok
2371
- null,
2372
- this.getAttribute(D)
2373
- )
2374
- ), Object.entries(a).forEach(Ro, m), process.env.NODE_ENV !== "production" && U()) {
2375
- const D = u.observedAttributes ?? [], N = o.observedAttributes ?? [], I = D.filter((Y) => !N.includes(Y)), Z = N.filter((Y) => !D.includes(Y));
2376
- I.length > 0 && console.warn(
2377
- `The following attributes on <${o.L}> are present on the Lit element, but are missing from the lazy proxy component: ${I.join(", ")}. This either indicates a bug in Lumina, or you are creating the attribute dynamically in a way that compiler cannot infer statically. For these attributes, lazy-loading version of your component won't work correctly, thus this must be resolved`
2378
- ), Z.length > 0 && console.warn(
2379
- `The following attributes on <${o.L}> are defined on the lazy proxy component, but not on the actual Lit element: ${Z.join(", ")}. This either indicates a bug in Lumina, or you are creating the attribute dynamically in a way that compiler cannot infer statically. This is a non-critical issue, but does indicate that something is going wrong and should be fixed`
2380
- );
2381
- }
2382
- const _ = this.isConnected;
2383
- (_ || this.G) && (m.connectedCallback?.(), _ || m.disconnectedCallback());
2384
- }, bt.lumina = !0;
2385
- let rn = bt;
2386
- function Ro([s, e]) {
2387
- this[s] = e;
2388
- }
2389
- const To = (s) => {
2390
- const e = s.prototype, t = Element.prototype;
2391
- Object.hasOwn(e, "isConnected") || (e.setAttribute = function(r, a) {
2392
- t.setAttribute.call(this.el, r, a);
2393
- }, e.removeAttribute = function(r) {
2394
- t.removeAttribute.call(this.el, r);
2395
- }, Ze(e, "isConnected", {
2396
- get() {
2397
- return Reflect.get(t, "isConnected", this.el);
2398
- }
2399
- })), process.env.NODE_ENV !== "production" && U() && Oo(s);
2400
- };
2401
- class yn extends go {
2402
- constructor(e) {
2403
- super(e), this.destroyed = !1, this.R = !1, this.V = W, this.T = [], this.#o = /* @__PURE__ */ new WeakMap(), this.#t = e, this.exports = void 0, this.hasDestroy = tt in e && typeof e.destroy == "function", re.prototype.addController.call(e, {
2404
- // Lit will call these callbacks
2405
- // We do not directly implement hostConnected and etc on ControllerManager
2406
- // because ControllerManager is also included in the list of controllers
2407
- // we manage - and for each controller we manage we call hostConnected
2408
- // (from inside of .triggerConnected). So there would be an infinite
2409
- // loop if Lit calls hostConnected which in turn calls
2410
- // triggerConnected which calls hostConnected again.
2411
- hostConnected: () => {
2412
- if (this.destroyed) {
2413
- const t = e.el.localName;
2414
- throw e.el.remove(), new Error(
2415
- `The ${t} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${tt} prop.`
2416
- );
2417
- }
2418
- this.#n !== void 0 && clearTimeout(this.#n), Et();
2419
- for (const t of e.M)
2420
- "triggerConnected" in t ? t.triggerConnected() : x(t.hostConnected, t);
2421
- },
2422
- hostDisconnected: () => {
2423
- for (const t of e.M)
2424
- "triggerDisconnected" in t ? t.triggerDisconnected() : x(t.hostDisconnected, t);
2425
- this.hasDestroy && !this.destroyed && this.U();
2426
- },
2427
- hostUpdate: () => {
2428
- for (const t of e.M)
2429
- "triggerUpdate" in t ? t.triggerUpdate(this.Q) : x(t.hostUpdate, t, this.Q);
2430
- },
2431
- hostUpdated: () => {
2432
- for (const t of e.M)
2433
- "triggerUpdated" in t ? t.triggerUpdated(this.Q) : x(t.hostUpdated, t, this.Q);
2434
- this.Q = void 0;
2435
- }
2436
- }), queueMicrotask(() => this.R = !0), ke(e);
2437
- }
2438
- #n;
2439
- #t;
2440
- // Keep this method async needlessly for now to avoid a breaking change if we
2441
- // would need to make it async in the future
2442
- // eslint-disable-next-line @typescript-eslint/require-await
2443
- async destroy() {
2444
- if (process.env.NODE_ENV !== "production" && U() && this.devOnly$ensureHasDestroy?.(), !this.destroyed) {
2445
- this.#t.el.isConnected && (this.hasDestroy = !1, this.#t.el.remove()), this.#n = void 0, this.destroyed = !0;
2446
- for (const e of this.#t.M)
2447
- "triggerDestroy" in e ? e.triggerDestroy() : x(e.hostDestroy, e);
2448
- this.#t.M.splice(0);
2449
- }
2450
- }
2451
- /** @private */
2452
- U() {
2453
- if (this.#n !== void 0 && clearTimeout(this.#n), !this.#t.el.isConnected && !this.#t.autoDestroyDisabled) {
2454
- const e = () => void this.#t.destroy();
2455
- process.env.NODE_ENV !== "production" && U() && sn === 0 || (this.#n = co(e, sn));
2456
- }
2457
- }
2458
- /** @private */
2459
- S(e, t) {
2460
- const o = this.T;
2461
- this.V = W, this.T = [], o.forEach((r) => r(e, t));
2462
- }
2463
- #o;
2464
- /**
2465
- * Associate an exports object with a controller for reverse lookup in
2466
- * controller.use
2467
- *
2468
- * @private
2469
- */
2470
- W(e, t) {
2471
- (typeof t == "object" && t !== null || typeof t == "function") && this.#o.set(t, e);
2472
- }
2473
- /** @private */
2474
- X(e) {
2475
- if (typeof e == "object" && e !== null || typeof e == "function")
2476
- return this.#o.get(e);
2477
- }
2478
- }
2479
- process.env.NODE_ENV !== "production" && U() && (yn.prototype.devOnly$ensureHasDestroy = function() {
2480
- if (!this.hasDestroy)
2481
- throw new Error(
2482
- `
2483
- If the component uses a controller that uses destroy() method, then the
2484
- component must have the following properties:
2485
- /**
2486
- * If true, the component will not be destroyed automatically when it is
2487
- * disconnected from the document. This is useful when you want to move the
2488
- * component to a different place on the page, or temporarily hide it. If this
2489
- * is set, make sure to call the \`destroy\` method when you are done to prevent
2490
- * memory leaks.
2491
- */
2492
- @property() ${tt} = false;
2493
-
2494
- /** Permanently destroy the component */
2495
- @method()
2496
- async destroy(): Promise<void> {
2497
- await this.manager.destroy();
2498
- }
2499
- `.trim().split(`
2500
- `).map((e) => e.trim()).join(`
2501
- `)
2502
- );
2503
- });
2504
- let sn = 1e3;
2505
- const tt = "autoDestroyDisabled";
2506
- process.env.NODE_ENV !== "production" && U();
2507
- var le, xe, We, de, X, Ce, gn, mn;
2508
- const Ue = class Ue extends re {
2509
- constructor() {
2510
- super();
2511
- F(this, Ce);
2512
- /**
2513
- * The JS API's Accessor observables. This is used to integrate with the JS
2514
- * API's reactivity system.
2515
- *
2516
- * @private
2517
- */
2518
- F(this, le);
2519
- F(this, xe);
2520
- F(this, We);
2521
- F(this, de);
2522
- F(this, X);
2523
- this.M = [], this.manager = new yn(this);
2524
- const t = this, o = t.constructor, r = o.N, a = o.K.o, u = Ue.prototype.shouldUpdate;
2525
- if (V(t, de, r?.H ?? new He()), t.I = r?.I ?? new He(), t.J = r?.J ?? [], t._offspring = t.J, t._postLoad = t.I, t.el = r ?? t, V(t, We, t.enableUpdating), t.enableUpdating = _t, t.shouldUpdate !== u && (V(t, xe, t.shouldUpdate), t.shouldUpdate = u), process.env.NODE_ENV !== "production") {
2526
- const p = globalThis.devOnly$ownTagNames?.has(t.el.localName), h = this.constructor, g = h.enabledWarnings !== re.enabledWarnings;
2527
- !p && !g && h.disableWarning?.("change-in-update"), U() && (globalThis.devOnly$luminaComponentRefCallback?.(this), Object.entries({
2528
- componentDidLoad: "loaded",
2529
- componentDidRender: "updated",
2530
- componentDidUpdate: "updated",
2531
- componentShouldUpdate: "shouldUpdate",
2532
- componentWillLoad: "load",
2533
- componentWillRender: "willUpdate",
2534
- componentWillUpdate: "willUpdate"
2535
- }).forEach(([_, D]) => {
2536
- if (_ in this)
2537
- throw new Error(
2538
- `Unexpected ${_}() in a Lit component ${this.el.localName}. In Lit, you should use ${D}() instead`
2539
- );
2540
- }));
2541
- }
2542
- a && (V(t, le, /* @__PURE__ */ new Map()), o.elementProperties.forEach((p, h) => L(t, le).set(h, a())));
2543
- }
2544
- /**
2545
- * Customize Lit's default style handling to support non-shadow-root styles
2546
- */
2547
- static finalizeStyles(t) {
2548
- process.env.NODE_ENV === "test" && Array.isArray(t) && (t = t.filter(Boolean));
2549
- const o = super.finalizeStyles(t), r = this.shadowRootOptions === on;
2550
- return this.K?.commonStyles === void 0 || r ? o : [this.K.commonStyles, ...o];
2551
- }
2552
- static createProperty(t, o) {
2553
- const r = typeof o == "number" ? o : Array.isArray(o) ? o[0] : 0, a = Array.isArray(o) ? o[1] : void 0, u = a?.hasChanged ?? yt, p = {
2554
- /**
2555
- * By default to infer attribute name from property name, Lit just
2556
- * converts property name to lowercase. That is consistent with
2557
- * native DOM attributes.
2558
- *
2559
- * However, that is not consistent with Stencil and would be a
2560
- * breaking change for us. Also, kebab-case is more common among the
2561
- * web components. But the most important reason is that we have
2562
- * some pretty long attribute names, which would be utterly
2563
- * unreadable in lowercase.
2564
- *
2565
- * Also, if browsers add new attributes, that may cause a conflict
2566
- * with our attributes.
2567
- *
2568
- * Thus, overwriting Lit's default behavior to use kebab-case:
2569
- */
2570
- attribute: r & Eo && typeof t == "string" ? mo(t) : !1,
2571
- reflect: !!(r & _o),
2572
- type: r & bo ? Boolean : r & wo ? Number : void 0,
2573
- /**
2574
- * At the moment in Lit, state:true just means attribute:false, so this
2575
- * line is technically redundant, but let's keep it here just in case Lit
2576
- * will add more meaning to state:true in the future.
2577
- */
2578
- state: !!(r & $o),
2579
- // Controllers add this option to Lit
2580
- readOnly: !!(r & Ao),
2581
- noAccessor: !!(r & Co),
2582
- c: !1,
2583
- ...a,
2584
- hasChanged(h, g) {
2585
- const m = u(h, g);
2586
- return p.c = m, m;
2587
- }
2588
- };
2589
- super.createProperty(t, p);
2590
- }
2591
- static getPropertyDescriptor(t, o, r) {
2592
- const a = this.K, u = super.getPropertyDescriptor(t, o, r);
2593
- return r.d = u, {
2594
- ...u,
2595
- get() {
2596
- return a.t?.(L(this, le).get(t)), u.get?.call(this);
2597
- },
2598
- set(p) {
2599
- const h = this.manager;
2600
- if (r.readOnly && (h.R || h.connectedCalled))
2601
- throw Error(
2602
- `Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${p}"`
2603
- );
2604
- u.set.call(this, p ?? void 0), r.c && L(this, le)?.get(t)?.notify(), h.T.length > 0 && h?.S(t, p);
2605
- }
2606
- };
2607
- }
2608
- connectedCallback() {
2609
- if (this.el.hasAttribute("defer-hydration"))
2610
- return;
2611
- const t = this.constructor.K.c?.(() => this.requestUpdate());
2612
- V(this, X, t);
2613
- const o = !this.manager.connectedCalled;
2614
- super.connectedCallback(), o ? queueMicrotask(
2615
- // eslint-disable-next-line @typescript-eslint/promise-function-async, @typescript-eslint/no-misused-promises
2616
- () => me(this, Ce, mn).call(this).catch((r) => {
2617
- L(this, de).reject(r), setTimeout(() => {
2618
- throw r;
2619
- });
2620
- })
2621
- ) : t && this.requestUpdate();
2622
- }
2623
- disconnectedCallback() {
2624
- super.disconnectedCallback(), L(this, X)?.destroy(), V(this, X, void 0);
2625
- }
2626
- /**
2627
- * Overwrite Lit's default behavior of attaching shadow root to the lit
2628
- * element, and instead use this.el to support lazy builds.
2629
- *
2630
- * Also, support the case when component asked to not use shadow root
2631
- */
2632
- createRenderRoot() {
2633
- const t = this.el.shadowRoot, o = this.constructor, r = o.shadowRootOptions, u = t ?? (r === on ? this.el : this.el.attachShadow(r));
2634
- if (t)
2635
- return re.prototype.createRenderRoot.call(this), t;
2636
- if (this.isConnected) {
2637
- const p = u.getRootNode();
2638
- process.env.NODE_ENV === "test" && (p.adoptedStyleSheets ??= []), p.adoptedStyleSheets = [
2639
- ...p.adoptedStyleSheets,
2640
- ...o.elementStyles.map((h) => "styleSheet" in h ? h.styleSheet : h)
2641
- ];
2642
- }
2643
- return u;
2644
- }
2645
- /**
2646
- * Overwriting default shouldUpdate simply to get access to
2647
- * "changedProperties" so that we can later provide it to ControllerManager
2648
- */
2649
- shouldUpdate(t) {
2650
- var o;
2651
- return this.manager.Q = t, ((o = L(this, xe)) == null ? void 0 : o.call(this, t)) ?? !0;
2652
- }
2653
- update(t) {
2654
- L(this, X) ? me(this, Ce, gn).call(this, t) : super.update(t);
2655
- }
2656
- listen(t, o, r) {
2657
- const a = o?.bind(this) ?? o;
2658
- this.manager.onLifecycle(() => (this.el.addEventListener(t, a, r), () => this.el.removeEventListener(t, a, r)));
2659
- }
2660
- listenOn(t, o, r, a) {
2661
- const u = r?.bind(this) ?? r;
2662
- this.manager.onLifecycle(() => (t.addEventListener(o, u, a), () => t.removeEventListener(o, u, a)));
2663
- }
2664
- /**
2665
- * Create a promise that resolves once component is fully loaded.
2666
- *
2667
- * @example
2668
- * const map = document.createElement('arcgis-map');
2669
- * document.body.append(map);
2670
- * map.componentOnReady().then(() => {
2671
- * console.log('Map is ready to go!');
2672
- * });
2673
- */
2674
- async componentOnReady() {
2675
- return await L(this, de).promise, this;
2676
- }
2677
- /**
2678
- * Adds a controller to the host, which connects the controller's lifecycle
2679
- * methods to the host's lifecycle.
2680
- *
2681
- * @remarks
2682
- * Even though Lit's LitElement already has addController,
2683
- * we overwrite it with a compatible version to have more control over
2684
- * timing, and to add support for load/loaded lifecycle hooks.
2685
- */
2686
- addController(t) {
2687
- this.M.push(t), !(ht in t) && this.renderRoot && this.el.isConnected && t.hostConnected?.();
2688
- }
2689
- /**
2690
- * Removes a controller from the host.
2691
- */
2692
- removeController(t) {
2693
- this.M.splice(this.M.indexOf(t), 1), t.controllerRemoved?.();
2694
- }
2695
- };
2696
- le = new WeakMap(), xe = new WeakMap(), We = new WeakMap(), de = new WeakMap(), X = new WeakMap(), Ce = new WeakSet(), gn = function(t) {
2697
- try {
2698
- L(this, X).clear(), this.constructor.K.r(
2699
- L(this, X),
2700
- () => Mt(Ue.prototype, this, "update").call(this, t)
2701
- );
2702
- } catch (o) {
2703
- throw L(this, X).clear(), o;
2704
- }
2705
- }, mn = async function() {
2706
- const t = this.el.G ?? fn(this.el);
2707
- t && await t;
2708
- const o = [];
2709
- for (const a of this.M)
2710
- "triggerLoad" in a ? o.push(a.triggerLoad()) : o.push(lt(a.hostLoad, a));
2711
- await Promise.all(o), await this.load?.(), this.manager.hasDestroy && this.manager.onUpdate(
2712
- (a) => a.has(tt) && this.manager.U()
2713
- ), L(this, We).call(this, !0), this.performUpdate(), this.I.resolve(), await Promise.resolve();
2714
- const r = this.J.filter((a) => !a.manager?.loadedCalled);
2715
- r.length && await Promise.allSettled(r.map(async (a) => await a.componentOnReady())), this.J.length = 0, this.el.setAttribute(this.constructor.K.hydratedAttribute, "");
2716
- for (const a of this.M)
2717
- "triggerLoaded" in a ? a.triggerLoaded() : x(a.hostLoaded, a);
2718
- this.loaded?.(), L(this, de).resolve();
2719
- }, Ue.lumina = !0;
2720
- let an = Ue;
2721
- const No = {}, Lo = (s, e) => (t) => {
2722
- const o = t.tagName;
2723
- let r = No;
2724
- const a = {
2725
- name: o,
2726
- /**
2727
- * Lit's createComponent tries to access the elementClass.prototype in
2728
- * global scope (in development mode). The elementClass may not be defined
2729
- * yet (because we are in a lazy loading build, or because current app
2730
- * doesn't import a given custom element as it doesn't use it).
2731
- *
2732
- * Thus, we return an empty object as a fake prototype.
2733
- *
2734
- * Right after the call to `createComponent`, we set to
2735
- * customElementPrototype undefined so that the next access of
2736
- * `.prototype` tries to get the real prototype.
2737
- * `createPrototypeProxy()` is called, this small proxy delays retrieving the custom
2738
- * element prototype until it is actually needed, and caches the result for future calls.
2739
- */
2740
- get prototype() {
2741
- if (r === void 0) {
2742
- const p = customElements.get(o);
2743
- if (!p)
2744
- throw new Error(`Custom element "${o}" not found`);
2745
- p.F?.(), p.F = _t, r = p.prototype, Object.defineProperty(a, "prototype", { value: r });
2746
- }
2747
- return r;
2748
- }
2749
- }, u = e({
2750
- ...t,
2751
- react: s,
2752
- elementClass: a
2753
- });
2754
- return r = void 0, u;
2755
- }, R = (s, e) => ({ tagName: s, events: e }), T = /* @__PURE__ */ Lo(Ln, kn), Do = /* @__PURE__ */ T(
2756
- R(
1
+ import e from "react";
2
+ import { createComponent as a } from "@lit/react";
3
+ import { makeReactWrapperFactory as s, getReactWrapperOptions as t } from "@arcgis/lumina";
4
+ const n = /* @__PURE__ */ s(e, a), i = /* @__PURE__ */ n(
5
+ t(
2757
6
  "instant-apps-app-guide",
2758
7
  {}
2759
8
  )
2760
- ), Uo = /* @__PURE__ */ T(
2761
- R(
9
+ ), d = /* @__PURE__ */ n(
10
+ t(
2762
11
  "instant-apps-control-panel",
2763
12
  {}
2764
13
  )
2765
- ), Io = /* @__PURE__ */ T(
2766
- R(
14
+ ), c = /* @__PURE__ */ n(
15
+ t(
2767
16
  "instant-apps-create",
2768
17
  {}
2769
18
  )
2770
- ), Mo = /* @__PURE__ */ T(
2771
- R(
19
+ ), l = /* @__PURE__ */ n(
20
+ t(
2772
21
  "instant-apps-export",
2773
22
  {
2774
23
  onExportOutputUpdated: "exportOutputUpdated"
2775
24
  }
2776
25
  )
2777
- ), jo = /* @__PURE__ */ T(
2778
- R(
26
+ ), g = /* @__PURE__ */ n(
27
+ t(
2779
28
  "instant-apps-export-views",
2780
29
  {
2781
30
  onExportOutputUpdated: "exportOutputUpdated"
2782
31
  }
2783
32
  )
2784
- ), Ho = /* @__PURE__ */ T(
2785
- R(
33
+ ), I = /* @__PURE__ */ n(
34
+ t(
2786
35
  "instant-apps-filter-list",
2787
36
  {
2788
37
  onFilterListReset: "filterListReset",
2789
38
  onFilterUpdate: "filterUpdate"
2790
39
  }
2791
40
  )
2792
- ), xo = /* @__PURE__ */ T(
2793
- R(
41
+ ), u = /* @__PURE__ */ n(
42
+ t(
2794
43
  "instant-apps-header",
2795
44
  {
2796
45
  onInfoIsOpenChanged: "infoIsOpenChanged"
2797
46
  }
2798
47
  )
2799
- ), Wo = /* @__PURE__ */ T(
2800
- R(
48
+ ), m = /* @__PURE__ */ n(
49
+ t(
2801
50
  "instant-apps-interactive-legend",
2802
51
  {}
2803
52
  )
2804
- ), zo = /* @__PURE__ */ T(
2805
- R(
53
+ ), A = /* @__PURE__ */ n(
54
+ t(
2806
55
  "instant-apps-interactive-legend-classic",
2807
56
  {}
2808
57
  )
2809
- ), Yo = /* @__PURE__ */ T(
2810
- R(
58
+ ), L = /* @__PURE__ */ n(
59
+ t(
2811
60
  "instant-apps-interactive-legend-count",
2812
61
  {}
2813
62
  )
2814
- ), qo = /* @__PURE__ */ T(
2815
- R(
63
+ ), v = /* @__PURE__ */ n(
64
+ t(
2816
65
  "instant-apps-interactive-legend-group-legend-element",
2817
66
  {}
2818
67
  )
2819
- ), Vo = /* @__PURE__ */ T(
2820
- R(
68
+ ), h = /* @__PURE__ */ n(
69
+ t(
2821
70
  "instant-apps-interactive-legend-group-legend-element-caption",
2822
71
  {
2823
72
  onGroupLayerCaptionElementExpandUpdated: "groupLayerCaptionElementExpandUpdated"
2824
73
  }
2825
74
  )
2826
- ), Bo = /* @__PURE__ */ T(
2827
- R(
75
+ ), C = /* @__PURE__ */ n(
76
+ t(
2828
77
  "instant-apps-interactive-legend-layer-element",
2829
78
  {}
2830
79
  )
2831
- ), Fo = /* @__PURE__ */ T(
2832
- R(
80
+ ), E = /* @__PURE__ */ n(
81
+ t(
2833
82
  "instant-apps-interactive-legend-layer-element-caption",
2834
83
  {
2835
84
  onLayerCaptionElementExpandUpdated: "layerCaptionElementExpandUpdated"
2836
85
  }
2837
86
  )
2838
- ), Ko = /* @__PURE__ */ T(
2839
- R(
87
+ ), U = /* @__PURE__ */ n(
88
+ t(
2840
89
  "instant-apps-interactive-legend-legend-element",
2841
90
  {}
2842
91
  )
2843
- ), Go = /* @__PURE__ */ T(
2844
- R(
92
+ ), S = /* @__PURE__ */ n(
93
+ t(
2845
94
  "instant-apps-interactive-legend-legend-element-caption",
2846
95
  {
2847
96
  onLegendLayerExpandUpdated: "legendLayerExpandUpdated",
2848
97
  onShowAllSelected: "showAllSelected"
2849
98
  }
2850
99
  )
2851
- ), Qo = /* @__PURE__ */ T(
2852
- R(
100
+ ), x = /* @__PURE__ */ n(
101
+ t(
2853
102
  "instant-apps-interactive-legend-relationship",
2854
103
  {}
2855
104
  )
2856
- ), Xo = /* @__PURE__ */ T(
2857
- R(
105
+ ), y = /* @__PURE__ */ n(
106
+ t(
2858
107
  "instant-apps-keyboard-shortcuts",
2859
108
  {}
2860
109
  )
2861
- ), Zo = /* @__PURE__ */ T(
2862
- R(
110
+ ), f = /* @__PURE__ */ n(
111
+ t(
2863
112
  "instant-apps-landing-page",
2864
113
  {
2865
114
  onLandingPageClose: "landingPageClose",
2866
115
  onLandingPageOpen: "landingPageOpen"
2867
116
  }
2868
117
  )
2869
- ), Jo = /* @__PURE__ */ T(
2870
- R(
118
+ ), O = /* @__PURE__ */ n(
119
+ t(
2871
120
  "instant-apps-language-switcher",
2872
121
  {
2873
122
  onSelectedLanguageUpdated: "selectedLanguageUpdated"
2874
123
  }
2875
124
  )
2876
- ), er = /* @__PURE__ */ T(
2877
- R(
125
+ ), P = /* @__PURE__ */ n(
126
+ t(
2878
127
  "instant-apps-language-translator",
2879
128
  {
2880
129
  onTranslatorDataUpdated: "translatorDataUpdated"
2881
130
  }
2882
131
  )
2883
- ), tr = /* @__PURE__ */ T(
2884
- R(
132
+ ), w = /* @__PURE__ */ n(
133
+ t(
2885
134
  "instant-apps-ckeditor-wrapper",
2886
135
  {
2887
136
  onDataChanged: "dataChanged",
2888
137
  onIsFocused: "isFocused"
2889
138
  }
2890
139
  )
2891
- ), nr = /* @__PURE__ */ T(
2892
- R(
140
+ ), F = /* @__PURE__ */ n(
141
+ t(
2893
142
  "instant-apps-language-translator-item",
2894
143
  {
2895
144
  onTranslatorItemDataUpdated: "translatorItemDataUpdated"
2896
145
  }
2897
146
  )
2898
- ), or = /* @__PURE__ */ T(
2899
- R(
147
+ ), T = /* @__PURE__ */ n(
148
+ t(
2900
149
  "instant-apps-language-translator-search",
2901
150
  {
2902
151
  onSuggestionSelected: "suggestionSelected"
2903
152
  }
2904
153
  )
2905
- ), rr = /* @__PURE__ */ T(
2906
- R(
154
+ ), b = /* @__PURE__ */ n(
155
+ t(
2907
156
  "instant-apps-measurement",
2908
157
  {
2909
158
  onMeasureActive: "measureActive"
2910
159
  }
2911
160
  )
2912
- ), sr = /* @__PURE__ */ T(
2913
- R(
161
+ ), R = /* @__PURE__ */ n(
162
+ t(
2914
163
  "instant-apps-measurement-tool",
2915
164
  {}
2916
165
  )
2917
- ), ir = /* @__PURE__ */ T(
2918
- R(
166
+ ), D = /* @__PURE__ */ n(
167
+ t(
2919
168
  "instant-apps-popover",
2920
169
  {}
2921
170
  )
2922
- ), ar = /* @__PURE__ */ T(
2923
- R(
171
+ ), k = /* @__PURE__ */ n(
172
+ t(
2924
173
  "instant-apps-popovers",
2925
174
  {}
2926
175
  )
2927
- ), cr = /* @__PURE__ */ T(
2928
- R(
176
+ ), G = /* @__PURE__ */ n(
177
+ t(
2929
178
  "instant-apps-scoreboard",
2930
179
  {
2931
180
  onScoreboardItemsUpdated: "scoreboardItemsUpdated"
2932
181
  }
2933
182
  )
2934
- ), ur = /* @__PURE__ */ T(
2935
- R(
183
+ ), W = /* @__PURE__ */ n(
184
+ t(
2936
185
  "instant-apps-sign-in",
2937
186
  {}
2938
187
  )
2939
- ), lr = /* @__PURE__ */ T(
2940
- R(
188
+ ), M = /* @__PURE__ */ n(
189
+ t(
2941
190
  "instant-apps-social-share",
2942
191
  {}
2943
192
  )
2944
- ), dr = /* @__PURE__ */ T(
2945
- R(
193
+ ), H = /* @__PURE__ */ n(
194
+ t(
2946
195
  "instant-apps-splash",
2947
196
  {
2948
197
  onSplashClose: "splashClose"
2949
198
  }
2950
199
  )
2951
- ), hr = /* @__PURE__ */ T(
2952
- R(
200
+ ), K = /* @__PURE__ */ n(
201
+ t(
2953
202
  "instant-apps-time-filter",
2954
203
  {}
2955
204
  )
2956
205
  );
2957
206
  export {
2958
- Do as InstantAppsAppGuide,
2959
- tr as InstantAppsCkeditorWrapper,
2960
- Uo as InstantAppsControlPanel,
2961
- Io as InstantAppsCreate,
2962
- Mo as InstantAppsExport,
2963
- jo as InstantAppsExportViews,
2964
- Ho as InstantAppsFilterList,
2965
- xo as InstantAppsHeader,
2966
- Wo as InstantAppsInteractiveLegend,
2967
- zo as InstantAppsInteractiveLegendClassic,
2968
- Yo as InstantAppsInteractiveLegendCount,
2969
- qo as InstantAppsInteractiveLegendGroupLegendElement,
2970
- Vo as InstantAppsInteractiveLegendGroupLegendElementCaption,
2971
- Bo as InstantAppsInteractiveLegendLayerElement,
2972
- Fo as InstantAppsInteractiveLegendLayerElementCaption,
2973
- Ko as InstantAppsInteractiveLegendLegendElement,
2974
- Go as InstantAppsInteractiveLegendLegendElementCaption,
2975
- Qo as InstantAppsInteractiveLegendRelationship,
2976
- Xo as InstantAppsKeyboardShortcuts,
2977
- Zo as InstantAppsLandingPage,
2978
- Jo as InstantAppsLanguageSwitcher,
2979
- er as InstantAppsLanguageTranslator,
2980
- nr as InstantAppsLanguageTranslatorItem,
2981
- or as InstantAppsLanguageTranslatorSearch,
2982
- rr as InstantAppsMeasurement,
2983
- sr as InstantAppsMeasurementTool,
2984
- ir as InstantAppsPopover,
2985
- ar as InstantAppsPopovers,
2986
- cr as InstantAppsScoreboard,
2987
- ur as InstantAppsSignIn,
2988
- lr as InstantAppsSocialShare,
2989
- dr as InstantAppsSplash,
2990
- hr as InstantAppsTimeFilter
207
+ i as InstantAppsAppGuide,
208
+ w as InstantAppsCkeditorWrapper,
209
+ d as InstantAppsControlPanel,
210
+ c as InstantAppsCreate,
211
+ l as InstantAppsExport,
212
+ g as InstantAppsExportViews,
213
+ I as InstantAppsFilterList,
214
+ u as InstantAppsHeader,
215
+ m as InstantAppsInteractiveLegend,
216
+ A as InstantAppsInteractiveLegendClassic,
217
+ L as InstantAppsInteractiveLegendCount,
218
+ v as InstantAppsInteractiveLegendGroupLegendElement,
219
+ h as InstantAppsInteractiveLegendGroupLegendElementCaption,
220
+ C as InstantAppsInteractiveLegendLayerElement,
221
+ E as InstantAppsInteractiveLegendLayerElementCaption,
222
+ U as InstantAppsInteractiveLegendLegendElement,
223
+ S as InstantAppsInteractiveLegendLegendElementCaption,
224
+ x as InstantAppsInteractiveLegendRelationship,
225
+ y as InstantAppsKeyboardShortcuts,
226
+ f as InstantAppsLandingPage,
227
+ O as InstantAppsLanguageSwitcher,
228
+ P as InstantAppsLanguageTranslator,
229
+ F as InstantAppsLanguageTranslatorItem,
230
+ T as InstantAppsLanguageTranslatorSearch,
231
+ b as InstantAppsMeasurement,
232
+ R as InstantAppsMeasurementTool,
233
+ D as InstantAppsPopover,
234
+ k as InstantAppsPopovers,
235
+ G as InstantAppsScoreboard,
236
+ W as InstantAppsSignIn,
237
+ M as InstantAppsSocialShare,
238
+ H as InstantAppsSplash,
239
+ K as InstantAppsTimeFilter
2991
240
  };