@uxland/primary-shell 1.1.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/README.md +231 -0
  2. package/dist/UI/components/clinical-monitoring/clinical-monitoring.d.ts +11 -0
  3. package/dist/UI/components/clinical-monitoring/template.d.ts +3 -0
  4. package/dist/UI/components/index.d.ts +1 -0
  5. package/dist/UI/components/primaria-breadcumbs/primaria-breadcumbs.d.ts +9 -0
  6. package/dist/UI/components/primaria-breadcumbs/template.d.ts +3 -0
  7. package/dist/UI/components/primaria-shell/primaria-shell.d.ts +14 -0
  8. package/dist/UI/components/primaria-shell/template.d.ts +3 -0
  9. package/dist/UI/components/title-view/template.d.ts +3 -0
  10. package/dist/UI/components/title-view/title-view.d.ts +9 -0
  11. package/dist/UI/index.d.ts +2 -0
  12. package/dist/UI/shared-components/dss-container/dss-container.d.ts +7 -0
  13. package/dist/UI/shared-components/index.d.ts +2 -0
  14. package/dist/UI/shared-components/primaria-content-switcher/primaria-content-switcher.d.ts +14 -0
  15. package/dist/UI/shared-components/primaria-interaction/components/dialog-component.d.ts +20 -0
  16. package/dist/UI/shared-components/primaria-interaction/components/notifier-component.d.ts +12 -0
  17. package/dist/UI/shared-components/primaria-interaction/confirm-mixin.d.ts +16 -0
  18. package/dist/UI/shared-components/primaria-interaction/confirm.d.ts +3 -0
  19. package/dist/UI/shared-components/primaria-interaction/index.d.ts +4 -0
  20. package/dist/UI/shared-components/primaria-interaction/notify.d.ts +4 -0
  21. package/dist/UI/shared-components/primaria-interaction/typings.d.ts +28 -0
  22. package/dist/UI/shared-components/primaria-menu-item/primaria-menu-item.d.ts +10 -0
  23. package/dist/UI/shared-components/primaria-menu-item/template.d.ts +3 -0
  24. package/dist/UI/shared-components/primaria-text-editor/primaria-rich-text-editor.d.ts +57 -0
  25. package/dist/UI/shared-components/primaria-text-editor/template.d.ts +1 -0
  26. package/dist/UI/shared-components/primaria-text-editor/utils.d.ts +1 -0
  27. package/dist/UI/styles/theme/apply-theme.d.ts +1 -0
  28. package/dist/api/api.d.ts +27 -0
  29. package/dist/api/broker/factory.d.ts +3 -0
  30. package/dist/api/broker/factory.test.d.ts +1 -0
  31. package/dist/api/broker/primaria-broker.d.ts +5 -0
  32. package/dist/api/global-state/global-state.d.ts +35 -0
  33. package/dist/api/global-state/global-state.test.d.ts +1 -0
  34. package/dist/api/interaction-manager/interaction.d.ts +8 -0
  35. package/dist/api/localization/localization.test.d.ts +1 -0
  36. package/dist/constants.d.ts +2 -0
  37. package/dist/index.d.ts +8 -0
  38. package/dist/index.js +26335 -239
  39. package/dist/index.js.map +1 -0
  40. package/dist/index.umd.cjs +8647 -0
  41. package/dist/index.umd.cjs.map +1 -0
  42. package/dist/initializer.d.ts +1 -0
  43. package/dist/locales.d.ts +15 -0
  44. package/dist/plugin.d.ts +6 -0
  45. package/dist/region-manager.d.ts +16 -0
  46. package/dist/regions.d.ts +14 -0
  47. package/dist/style.css +3 -0
  48. package/package.json +23 -15
  49. package/src/UI/components/clinical-monitoring/clinical-monitoring.ts +28 -0
  50. package/src/UI/components/clinical-monitoring/styles.scss +29 -0
  51. package/src/UI/components/clinical-monitoring/template.ts +12 -0
  52. package/src/UI/components/index.ts +5 -0
  53. package/src/UI/components/primaria-breadcumbs/primaria-breadcumbs.ts +27 -0
  54. package/src/UI/components/primaria-breadcumbs/styles.scss +25 -0
  55. package/src/UI/components/primaria-breadcumbs/template.ts +15 -0
  56. package/src/UI/components/primaria-shell/primaria-shell.ts +37 -0
  57. package/src/UI/components/primaria-shell/styles.scss +68 -0
  58. package/src/UI/components/primaria-shell/template.ts +94 -0
  59. package/src/UI/components/title-view/styles.scss +5 -0
  60. package/src/UI/components/title-view/template.ts +6 -0
  61. package/src/UI/components/title-view/title-view.ts +23 -0
  62. package/src/UI/images/Gencat_Logotip.svg +70 -0
  63. package/src/UI/images/Salut_Logotip.svg +8 -0
  64. package/src/UI/index.ts +2 -0
  65. package/src/UI/shared-components/design-system.css +1 -0
  66. package/src/UI/shared-components/dss-container/dss-container.ts +32 -0
  67. package/src/UI/shared-components/dss-container/styles.scss +23 -0
  68. package/src/UI/shared-components/index.ts +5 -0
  69. package/src/UI/shared-components/primaria-content-switcher/primaria-content-switcher.ts +79 -0
  70. package/src/UI/shared-components/primaria-interaction/components/dialog-component-styles.scss +155 -0
  71. package/src/UI/shared-components/primaria-interaction/components/dialog-component.ts +120 -0
  72. package/src/UI/shared-components/primaria-interaction/components/notifier-component-styles.scss +128 -0
  73. package/src/UI/shared-components/primaria-interaction/components/notifier-component.ts +73 -0
  74. package/src/UI/shared-components/primaria-interaction/confirm-mixin.ts +39 -0
  75. package/src/UI/shared-components/primaria-interaction/confirm.ts +30 -0
  76. package/src/UI/shared-components/primaria-interaction/index.ts +4 -0
  77. package/src/UI/shared-components/primaria-interaction/notify.ts +153 -0
  78. package/src/UI/shared-components/primaria-interaction/typings.ts +32 -0
  79. package/src/UI/shared-components/primaria-menu-item/primaria-menu-item.ts +25 -0
  80. package/src/UI/shared-components/primaria-menu-item/styles.scss +10 -0
  81. package/src/UI/shared-components/primaria-menu-item/template.ts +8 -0
  82. package/src/UI/shared-components/primaria-text-editor/primaria-rich-text-editor.ts +230 -0
  83. package/src/UI/shared-components/primaria-text-editor/styles.scss +972 -0
  84. package/src/UI/shared-components/primaria-text-editor/template.ts +8 -0
  85. package/src/UI/shared-components/primaria-text-editor/utils.ts +39 -0
  86. package/src/UI/styles/_flex-layout.scss +203 -0
  87. package/src/UI/styles/_normalize.scss +3 -0
  88. package/src/UI/styles/_variables.scss +40 -0
  89. package/src/UI/styles/styles.scss +3 -0
  90. package/src/UI/styles/theme/apply-theme.ts +11 -0
  91. package/src/api/api.ts +63 -0
  92. package/src/api/broker/factory.test.ts +124 -0
  93. package/src/api/broker/factory.ts +122 -0
  94. package/src/api/broker/primaria-broker.ts +11 -0
  95. package/src/api/global-state/global-state.test.ts +53 -0
  96. package/src/api/global-state/global-state.ts +49 -0
  97. package/src/api/interaction-manager/interaction.ts +21 -0
  98. package/src/api/localization/localization.test.ts +61 -0
  99. package/src/api/localization/localization.ts +54 -0
  100. package/src/constants.ts +2 -0
  101. package/src/index.ts +12 -0
  102. package/src/initializer.ts +39 -4
  103. package/src/locales.ts +24 -0
  104. package/src/plugin.ts +9 -0
  105. package/src/region-manager.ts +155 -0
  106. package/src/regions.ts +17 -6
  107. package/dist/index.mjs +0 -3209
  108. package/index.ts +0 -3
  109. package/src/primary-shell.ts +0 -78
package/dist/index.mjs DELETED
@@ -1,3209 +0,0 @@
1
- /*
2
- * @license
3
- * BSD License
4
- *
5
- * Copyright (c) 2020, UXLand
6
- *
7
- * All rights reserved.
8
- * Redistribution and use in source and binary forms, with or without
9
- * modification, are permitted provided that the following conditions are met:
10
- * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
11
- * 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
12
- * 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the <copyright holder>.
13
- * 4. Neither the name of the <copyright holder> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
14
- *
15
- * THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
16
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
17
- */
18
- const Ur = () => {
19
- };
20
- function f(r) {
21
- return r != null && typeof r == "object" && r["@@functional/placeholder"] === !0;
22
- }
23
- function $(r) {
24
- return function t(e) {
25
- return arguments.length === 0 || f(e) ? t : r.apply(this, arguments);
26
- };
27
- }
28
- function g(r) {
29
- return function t(e, i) {
30
- switch (arguments.length) {
31
- case 0:
32
- return t;
33
- case 1:
34
- return f(e) ? t : $(function(s) {
35
- return r(e, s);
36
- });
37
- default:
38
- return f(e) && f(i) ? t : f(e) ? $(function(s) {
39
- return r(s, i);
40
- }) : f(i) ? $(function(s) {
41
- return r(e, s);
42
- }) : r(e, i);
43
- }
44
- };
45
- }
46
- function Hr(r) {
47
- var t = Object.prototype.toString.call(r);
48
- return t === "[object Function]" || t === "[object AsyncFunction]" || t === "[object GeneratorFunction]" || t === "[object AsyncGeneratorFunction]";
49
- }
50
- function me(r) {
51
- for (var t = [], e; !(e = r.next()).done; )
52
- t.push(e.value);
53
- return t;
54
- }
55
- function ye(r, t, e) {
56
- for (var i = 0, s = e.length; i < s; ) {
57
- if (r(t, e[i]))
58
- return !0;
59
- i += 1;
60
- }
61
- return !1;
62
- }
63
- function jr(r) {
64
- var t = String(r).match(/^function (\w*)/);
65
- return t == null ? "" : t[1];
66
- }
67
- function yt(r, t) {
68
- return Object.prototype.hasOwnProperty.call(t, r);
69
- }
70
- function Lr(r, t) {
71
- return r === t ? r !== 0 || 1 / r === 1 / t : r !== r && t !== t;
72
- }
73
- const Tt = typeof Object.is == "function" ? Object.is : Lr;
74
- var $e = Object.prototype.toString, Vr = /* @__PURE__ */ function() {
75
- return $e.call(arguments) === "[object Arguments]" ? function(t) {
76
- return $e.call(t) === "[object Arguments]";
77
- } : function(t) {
78
- return yt("callee", t);
79
- };
80
- }(), Dr = !/* @__PURE__ */ {
81
- toString: null
82
- }.propertyIsEnumerable("toString"), _e = ["constructor", "valueOf", "isPrototypeOf", "toString", "propertyIsEnumerable", "hasOwnProperty", "toLocaleString"], be = /* @__PURE__ */ function() {
83
- return arguments.propertyIsEnumerable("length");
84
- }(), zr = function(t, e) {
85
- for (var i = 0; i < t.length; ) {
86
- if (t[i] === e)
87
- return !0;
88
- i += 1;
89
- }
90
- return !1;
91
- }, k = /* @__PURE__ */ $(typeof Object.keys == "function" && !be ? function(t) {
92
- return Object(t) !== t ? [] : Object.keys(t);
93
- } : function(t) {
94
- if (Object(t) !== t)
95
- return [];
96
- var e, i, s = [], n = be && Vr(t);
97
- for (e in t)
98
- yt(e, t) && (!n || e !== "length") && (s[s.length] = e);
99
- if (Dr)
100
- for (i = _e.length - 1; i >= 0; )
101
- e = _e[i], yt(e, t) && !zr(s, e) && (s[s.length] = e), i -= 1;
102
- return s;
103
- }), we = /* @__PURE__ */ $(function(t) {
104
- return t === null ? "Null" : t === void 0 ? "Undefined" : Object.prototype.toString.call(t).slice(8, -1);
105
- });
106
- function Ae(r, t, e, i) {
107
- var s = me(r), n = me(t);
108
- function o(a, c) {
109
- return ee(a, c, e.slice(), i.slice());
110
- }
111
- return !ye(function(a, c) {
112
- return !ye(o, c, a);
113
- }, n, s);
114
- }
115
- function ee(r, t, e, i) {
116
- if (Tt(r, t))
117
- return !0;
118
- var s = we(r);
119
- if (s !== we(t) || r == null || t == null)
120
- return !1;
121
- if (typeof r["fantasy-land/equals"] == "function" || typeof t["fantasy-land/equals"] == "function")
122
- return typeof r["fantasy-land/equals"] == "function" && r["fantasy-land/equals"](t) && typeof t["fantasy-land/equals"] == "function" && t["fantasy-land/equals"](r);
123
- if (typeof r.equals == "function" || typeof t.equals == "function")
124
- return typeof r.equals == "function" && r.equals(t) && typeof t.equals == "function" && t.equals(r);
125
- switch (s) {
126
- case "Arguments":
127
- case "Array":
128
- case "Object":
129
- if (typeof r.constructor == "function" && jr(r.constructor) === "Promise")
130
- return r === t;
131
- break;
132
- case "Boolean":
133
- case "Number":
134
- case "String":
135
- if (!(typeof r == typeof t && Tt(r.valueOf(), t.valueOf())))
136
- return !1;
137
- break;
138
- case "Date":
139
- if (!Tt(r.valueOf(), t.valueOf()))
140
- return !1;
141
- break;
142
- case "Error":
143
- return r.name === t.name && r.message === t.message;
144
- case "RegExp":
145
- if (!(r.source === t.source && r.global === t.global && r.ignoreCase === t.ignoreCase && r.multiline === t.multiline && r.sticky === t.sticky && r.unicode === t.unicode))
146
- return !1;
147
- break;
148
- }
149
- for (var n = e.length - 1; n >= 0; ) {
150
- if (e[n] === r)
151
- return i[n] === t;
152
- n -= 1;
153
- }
154
- switch (s) {
155
- case "Map":
156
- return r.size !== t.size ? !1 : Ae(r.entries(), t.entries(), e.concat([r]), i.concat([t]));
157
- case "Set":
158
- return r.size !== t.size ? !1 : Ae(r.values(), t.values(), e.concat([r]), i.concat([t]));
159
- case "Arguments":
160
- case "Array":
161
- case "Object":
162
- case "Boolean":
163
- case "Number":
164
- case "String":
165
- case "Date":
166
- case "Error":
167
- case "RegExp":
168
- case "Int8Array":
169
- case "Uint8Array":
170
- case "Uint8ClampedArray":
171
- case "Int16Array":
172
- case "Uint16Array":
173
- case "Int32Array":
174
- case "Uint32Array":
175
- case "Float32Array":
176
- case "Float64Array":
177
- case "ArrayBuffer":
178
- break;
179
- default:
180
- return !1;
181
- }
182
- var o = k(r);
183
- if (o.length !== k(t).length)
184
- return !1;
185
- var a = e.concat([r]), c = i.concat([t]);
186
- for (n = o.length - 1; n >= 0; ) {
187
- var l = o[n];
188
- if (!(yt(l, t) && ee(t[l], r[l], a, c)))
189
- return !1;
190
- n -= 1;
191
- }
192
- return !0;
193
- }
194
- var Br = /* @__PURE__ */ g(function(t, e) {
195
- return ee(t, e, [], []);
196
- });
197
- function Fr(r, t, e) {
198
- var i, s;
199
- if (typeof r.indexOf == "function")
200
- switch (typeof t) {
201
- case "number":
202
- if (t === 0) {
203
- for (i = 1 / t; e < r.length; ) {
204
- if (s = r[e], s === 0 && 1 / s === i)
205
- return e;
206
- e += 1;
207
- }
208
- return -1;
209
- } else if (t !== t) {
210
- for (; e < r.length; ) {
211
- if (s = r[e], typeof s == "number" && s !== s)
212
- return e;
213
- e += 1;
214
- }
215
- return -1;
216
- }
217
- return r.indexOf(t, e);
218
- case "string":
219
- case "boolean":
220
- case "function":
221
- case "undefined":
222
- return r.indexOf(t, e);
223
- case "object":
224
- if (t === null)
225
- return r.indexOf(t, e);
226
- }
227
- for (; e < r.length; ) {
228
- if (Br(r[e], t))
229
- return e;
230
- e += 1;
231
- }
232
- return -1;
233
- }
234
- function qr(r, t) {
235
- return Fr(t, r, 0) >= 0;
236
- }
237
- function pt(r, t) {
238
- for (var e = 0, i = t.length, s = Array(i); e < i; )
239
- s[e] = r(t[e]), e += 1;
240
- return s;
241
- }
242
- function Ot(r) {
243
- var t = r.replace(/\\/g, "\\\\").replace(/[\b]/g, "\\b").replace(/\f/g, "\\f").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t").replace(/\v/g, "\\v").replace(/\0/g, "\\0");
244
- return '"' + t.replace(/"/g, '\\"') + '"';
245
- }
246
- var X = function(t) {
247
- return (t < 10 ? "0" : "") + t;
248
- }, Wr = typeof Date.prototype.toISOString == "function" ? function(t) {
249
- return t.toISOString();
250
- } : function(t) {
251
- return t.getUTCFullYear() + "-" + X(t.getUTCMonth() + 1) + "-" + X(t.getUTCDate()) + "T" + X(t.getUTCHours()) + ":" + X(t.getUTCMinutes()) + ":" + X(t.getUTCSeconds()) + "." + (t.getUTCMilliseconds() / 1e3).toFixed(3).slice(2, 5) + "Z";
252
- };
253
- function Gr(r) {
254
- return function() {
255
- return !r.apply(this, arguments);
256
- };
257
- }
258
- const re = Array.isArray || function(t) {
259
- return t != null && t.length >= 0 && Object.prototype.toString.call(t) === "[object Array]";
260
- };
261
- function Kr(r) {
262
- return r != null && typeof r["@@transducer/step"] == "function";
263
- }
264
- function or(r, t, e) {
265
- return function() {
266
- if (arguments.length === 0)
267
- return e();
268
- var i = Array.prototype.slice.call(arguments, 0), s = i.pop();
269
- if (!re(s)) {
270
- for (var n = 0; n < r.length; ) {
271
- if (typeof s[r[n]] == "function")
272
- return s[r[n]].apply(s, i);
273
- n += 1;
274
- }
275
- if (Kr(s)) {
276
- var o = t.apply(null, i);
277
- return o(s);
278
- }
279
- }
280
- return e.apply(this, arguments);
281
- };
282
- }
283
- function Yr(r, t) {
284
- for (var e = 0, i = t.length, s = []; e < i; )
285
- r(t[e]) && (s[s.length] = t[e]), e += 1;
286
- return s;
287
- }
288
- function Xr(r) {
289
- return Object.prototype.toString.call(r) === "[object Object]";
290
- }
291
- function ar(r) {
292
- return Object.prototype.toString.call(r) === "[object String]";
293
- }
294
- var Zr = /* @__PURE__ */ $(function(t) {
295
- return re(t) ? !0 : !t || typeof t != "object" || ar(t) ? !1 : t.nodeType === 1 ? !!t.length : t.length === 0 ? !0 : t.length > 0 ? t.hasOwnProperty(0) && t.hasOwnProperty(t.length - 1) : !1;
296
- }), Qr = /* @__PURE__ */ function() {
297
- function r(t) {
298
- this.f = t;
299
- }
300
- return r.prototype["@@transducer/init"] = function() {
301
- throw new Error("init not implemented on XWrap");
302
- }, r.prototype["@@transducer/result"] = function(t) {
303
- return t;
304
- }, r.prototype["@@transducer/step"] = function(t, e) {
305
- return this.f(t, e);
306
- }, r;
307
- }();
308
- function Jr(r) {
309
- return new Qr(r);
310
- }
311
- function at(r, t) {
312
- switch (r) {
313
- case 0:
314
- return function() {
315
- return t.apply(this, arguments);
316
- };
317
- case 1:
318
- return function(e) {
319
- return t.apply(this, arguments);
320
- };
321
- case 2:
322
- return function(e, i) {
323
- return t.apply(this, arguments);
324
- };
325
- case 3:
326
- return function(e, i, s) {
327
- return t.apply(this, arguments);
328
- };
329
- case 4:
330
- return function(e, i, s, n) {
331
- return t.apply(this, arguments);
332
- };
333
- case 5:
334
- return function(e, i, s, n, o) {
335
- return t.apply(this, arguments);
336
- };
337
- case 6:
338
- return function(e, i, s, n, o, a) {
339
- return t.apply(this, arguments);
340
- };
341
- case 7:
342
- return function(e, i, s, n, o, a, c) {
343
- return t.apply(this, arguments);
344
- };
345
- case 8:
346
- return function(e, i, s, n, o, a, c, l) {
347
- return t.apply(this, arguments);
348
- };
349
- case 9:
350
- return function(e, i, s, n, o, a, c, l, u) {
351
- return t.apply(this, arguments);
352
- };
353
- case 10:
354
- return function(e, i, s, n, o, a, c, l, u, h) {
355
- return t.apply(this, arguments);
356
- };
357
- default:
358
- throw new Error("First argument to _arity must be a non-negative integer no greater than ten");
359
- }
360
- }
361
- var B = /* @__PURE__ */ g(function(t, e) {
362
- return at(t.length, function() {
363
- return t.apply(e, arguments);
364
- });
365
- });
366
- function ti(r, t, e) {
367
- for (var i = 0, s = e.length; i < s; ) {
368
- if (t = r["@@transducer/step"](t, e[i]), t && t["@@transducer/reduced"]) {
369
- t = t["@@transducer/value"];
370
- break;
371
- }
372
- i += 1;
373
- }
374
- return r["@@transducer/result"](t);
375
- }
376
- function Ee(r, t, e) {
377
- for (var i = e.next(); !i.done; ) {
378
- if (t = r["@@transducer/step"](t, i.value), t && t["@@transducer/reduced"]) {
379
- t = t["@@transducer/value"];
380
- break;
381
- }
382
- i = e.next();
383
- }
384
- return r["@@transducer/result"](t);
385
- }
386
- function Se(r, t, e, i) {
387
- return r["@@transducer/result"](e[i](B(r["@@transducer/step"], r), t));
388
- }
389
- var Ce = typeof Symbol < "u" ? Symbol.iterator : "@@iterator";
390
- function ie(r, t, e) {
391
- if (typeof r == "function" && (r = Jr(r)), Zr(e))
392
- return ti(r, t, e);
393
- if (typeof e["fantasy-land/reduce"] == "function")
394
- return Se(r, t, e, "fantasy-land/reduce");
395
- if (e[Ce] != null)
396
- return Ee(r, t, e[Ce]());
397
- if (typeof e.next == "function")
398
- return Ee(r, t, e);
399
- if (typeof e.reduce == "function")
400
- return Se(r, t, e, "reduce");
401
- throw new TypeError("reduce: list must be array or iterable");
402
- }
403
- const $t = {
404
- init: function() {
405
- return this.xf["@@transducer/init"]();
406
- },
407
- result: function(r) {
408
- return this.xf["@@transducer/result"](r);
409
- }
410
- };
411
- var ei = /* @__PURE__ */ function() {
412
- function r(t, e) {
413
- this.xf = e, this.f = t;
414
- }
415
- return r.prototype["@@transducer/init"] = $t.init, r.prototype["@@transducer/result"] = $t.result, r.prototype["@@transducer/step"] = function(t, e) {
416
- return this.f(e) ? this.xf["@@transducer/step"](t, e) : t;
417
- }, r;
418
- }(), ri = /* @__PURE__ */ g(function(t, e) {
419
- return new ei(t, e);
420
- });
421
- const ii = ri;
422
- var si = /* @__PURE__ */ g(
423
- /* @__PURE__ */ or(["filter"], ii, function(r, t) {
424
- return Xr(t) ? ie(function(e, i) {
425
- return r(t[i]) && (e[i] = t[i]), e;
426
- }, {}, k(t)) : (
427
- // else
428
- Yr(r, t)
429
- );
430
- })
431
- ), ni = /* @__PURE__ */ g(function(t, e) {
432
- return si(Gr(t), e);
433
- });
434
- const cr = ni;
435
- function lr(r, t) {
436
- var e = function(o) {
437
- var a = t.concat([r]);
438
- return qr(o, a) ? "<Circular>" : lr(o, a);
439
- }, i = function(n, o) {
440
- return pt(function(a) {
441
- return Ot(a) + ": " + e(n[a]);
442
- }, o.slice().sort());
443
- };
444
- switch (Object.prototype.toString.call(r)) {
445
- case "[object Arguments]":
446
- return "(function() { return arguments; }(" + pt(e, r).join(", ") + "))";
447
- case "[object Array]":
448
- return "[" + pt(e, r).concat(i(r, cr(function(n) {
449
- return /^\d+$/.test(n);
450
- }, k(r)))).join(", ") + "]";
451
- case "[object Boolean]":
452
- return typeof r == "object" ? "new Boolean(" + e(r.valueOf()) + ")" : r.toString();
453
- case "[object Date]":
454
- return "new Date(" + (isNaN(r.valueOf()) ? e(NaN) : Ot(Wr(r))) + ")";
455
- case "[object Null]":
456
- return "null";
457
- case "[object Number]":
458
- return typeof r == "object" ? "new Number(" + e(r.valueOf()) + ")" : 1 / r === -1 / 0 ? "-0" : r.toString(10);
459
- case "[object String]":
460
- return typeof r == "object" ? "new String(" + e(r.valueOf()) + ")" : Ot(r);
461
- case "[object Undefined]":
462
- return "undefined";
463
- default:
464
- if (typeof r.toString == "function") {
465
- var s = r.toString();
466
- if (s !== "[object Object]")
467
- return s;
468
- }
469
- return "{" + i(r, k(r)).join(", ") + "}";
470
- }
471
- }
472
- function oi(r, t) {
473
- if (t == null || !Hr(t.then))
474
- throw new TypeError("`" + r + "` expected a Promise, received " + lr(t, []));
475
- }
476
- var F = /* @__PURE__ */ g(function(t, e) {
477
- return oi("andThen", e), e.then(t);
478
- }), ai = /* @__PURE__ */ function() {
479
- function r(t, e) {
480
- this.xf = e, this.f = t;
481
- }
482
- return r.prototype["@@transducer/init"] = $t.init, r.prototype["@@transducer/result"] = $t.result, r.prototype["@@transducer/step"] = function(t, e) {
483
- return this.xf["@@transducer/step"](t, this.f(e));
484
- }, r;
485
- }(), ci = /* @__PURE__ */ g(function(t, e) {
486
- return new ai(t, e);
487
- });
488
- const li = ci;
489
- function hr(r, t, e) {
490
- return function() {
491
- for (var i = [], s = 0, n = r, o = 0; o < t.length || s < arguments.length; ) {
492
- var a;
493
- o < t.length && (!f(t[o]) || s >= arguments.length) ? a = t[o] : (a = arguments[s], s += 1), i[o] = a, f(a) || (n -= 1), o += 1;
494
- }
495
- return n <= 0 ? e.apply(this, i) : at(n, hr(r, i, e));
496
- };
497
- }
498
- var hi = /* @__PURE__ */ g(function(t, e) {
499
- return t === 1 ? $(e) : at(t, hr(t, [], e));
500
- }), ct = /* @__PURE__ */ g(
501
- /* @__PURE__ */ or(["fantasy-land/map", "map"], li, function(t, e) {
502
- switch (Object.prototype.toString.call(e)) {
503
- case "[object Function]":
504
- return hi(e.length, function() {
505
- return t.call(this, e.apply(this, arguments));
506
- });
507
- case "[object Object]":
508
- return ie(function(i, s) {
509
- return i[s] = t(e[s]), i;
510
- }, {}, k(e));
511
- default:
512
- return pt(t, e);
513
- }
514
- })
515
- );
516
- function ui(r, t) {
517
- return function() {
518
- return t.call(this, r.apply(this, arguments));
519
- };
520
- }
521
- function ur(r) {
522
- return function t(e, i, s) {
523
- switch (arguments.length) {
524
- case 0:
525
- return t;
526
- case 1:
527
- return f(e) ? t : g(function(n, o) {
528
- return r(e, n, o);
529
- });
530
- case 2:
531
- return f(e) && f(i) ? t : f(e) ? g(function(n, o) {
532
- return r(n, i, o);
533
- }) : f(i) ? g(function(n, o) {
534
- return r(e, n, o);
535
- }) : $(function(n) {
536
- return r(e, i, n);
537
- });
538
- default:
539
- return f(e) && f(i) && f(s) ? t : f(e) && f(i) ? g(function(n, o) {
540
- return r(n, o, s);
541
- }) : f(e) && f(s) ? g(function(n, o) {
542
- return r(n, i, o);
543
- }) : f(i) && f(s) ? g(function(n, o) {
544
- return r(e, n, o);
545
- }) : f(e) ? $(function(n) {
546
- return r(n, i, s);
547
- }) : f(i) ? $(function(n) {
548
- return r(e, n, s);
549
- }) : f(s) ? $(function(n) {
550
- return r(e, i, n);
551
- }) : r(e, i, s);
552
- }
553
- };
554
- }
555
- var dr = /* @__PURE__ */ ur(ie);
556
- function se(r, t) {
557
- return function() {
558
- var e = arguments.length;
559
- if (e === 0)
560
- return t();
561
- var i = arguments[e - 1];
562
- return re(i) || typeof i[r] != "function" ? t.apply(this, arguments) : i[r].apply(i, Array.prototype.slice.call(arguments, 0, e - 1));
563
- };
564
- }
565
- var di = /* @__PURE__ */ ur(
566
- /* @__PURE__ */ se("slice", function(t, e, i) {
567
- return Array.prototype.slice.call(i, t, e);
568
- })
569
- ), pi = /* @__PURE__ */ $(
570
- /* @__PURE__ */ se(
571
- "tail",
572
- /* @__PURE__ */ di(1, 1 / 0)
573
- )
574
- );
575
- function j() {
576
- if (arguments.length === 0)
577
- throw new Error("pipe requires at least one argument");
578
- return at(arguments[0].length, dr(ui, arguments[0], pi(arguments)));
579
- }
580
- let fi = class {
581
- constructor(t) {
582
- this.targetRegion = t;
583
- }
584
- async attach() {
585
- const t = this.targetRegion.regionManager.getRegisteredViews(this.targetRegion.name);
586
- return j(ct((e) => this.targetRegion.addView(e.key, e.view)), B(Promise.all, Promise), F(Ur))(t);
587
- }
588
- detach() {
589
- return Promise.resolve();
590
- }
591
- }, gi = class {
592
- constructor() {
593
- this.registry = [];
594
- }
595
- get behaviors() {
596
- return [...this.registry];
597
- }
598
- register(t) {
599
- this.behaviors.some((e) => e === t) || this.registry.push(t);
600
- }
601
- };
602
- const pr = new gi();
603
- pr.register(fi);
604
- const vi = pr;
605
- let mi = class {
606
- constructor(t) {
607
- this.host = t;
608
- }
609
- get behaviors() {
610
- return vi.behaviors.map((t) => new t(this.host.uxlRegion));
611
- }
612
- activateView(t) {
613
- return this.host.contains(t) || this.addViewToHost(t), t.hidden = !1, Promise.resolve(void 0);
614
- }
615
- deactivateView(t) {
616
- return t.view && t.view.removeFromDomWhenDeactivated ? this.removeViewFromHost(t) : t.hidden = !0, Promise.resolve(null);
617
- }
618
- removeView(t) {
619
- this.removeViewFromHost(t);
620
- }
621
- viewAdded(t) {
622
- }
623
- addViewToHost(t) {
624
- this.host.appendChild(t);
625
- }
626
- removeViewFromHost(t) {
627
- this.host.removeChild(t), this.host.uxlRegion.viewRemovedFromDom(t.view);
628
- }
629
- };
630
- const yi = (r, t) => !r.sortHint && !t.sortHint || !t.sortHint ? -1 : r.sortHint ? r.sortHint.localeCompare(t.sortHint) : 1;
631
- let $i = class extends mi {
632
- async viewAdded(t) {
633
- await this.host.uxlRegion.activate(t);
634
- }
635
- addViewToHost(t) {
636
- const e = this.host.uxlRegion.currentActiveViews.sort(yi).indexOf(t.view);
637
- e >= this.host.children.length ? super.addViewToHost(t) : this.host.insertBefore(t, this.host.children[e]);
638
- }
639
- };
640
- const _i = (r, t) => new $i(t), x = (r, t) => {
641
- if (r = typeof r == "function" ? r() : r, !r)
642
- throw new Error(t);
643
- }, bi = (r) => typeof HTMLElement == "object" ? r instanceof HTMLElement : r && typeof r == "object" && r != null && r.nodeType === 1 && typeof r.nodeName == "string", wi = (r) => {
644
- if (!r.htmlTag && !r.element && !r.factory)
645
- throw new Error("One of properties htmlTag, factory or element must be set");
646
- return r.htmlTag && x(typeof r.htmlTag == "string", "htmlTag property must be an string"), r.factory && x(typeof r.factory == "function", "factory property must be a function"), r.element && x(bi(r.element), "element property must be an HTMLElement"), !0;
647
- }, Ai = async (r, t, e) => {
648
- let i;
649
- return r.element ? i = r.element : r.factory ? i = await r.factory() : r.htmlTag && (r.htmlUrl && await import(r.htmlUrl), i = window.document.createElement(r.htmlTag)), i.view = r, i.region = t, i.viewKey = e, i;
650
- };
651
- let Ei = class {
652
- constructor(t, e, i, s, n) {
653
- this.name = t, this.regionManager = e, this.host = i, this.adapter = s, this.definition = n, this.views = {}, this.activeViews = [], this.components = /* @__PURE__ */ new WeakMap(), this.host.uxlRegion = this;
654
- }
655
- async addView(t, e) {
656
- return wi(e), x(typeof this.getView(t) > "u", `Already exists a view with key ${t}`), this.views[t] = e, await this.adapter.viewAdded(e), this;
657
- }
658
- async removeView(t) {
659
- await this.deactivate(t), this.remove(t), delete this.views[t];
660
- }
661
- async removeViews() {
662
- Object.keys(this.views).forEach((t) => this.removeView(t));
663
- }
664
- get context() {
665
- return this._context;
666
- }
667
- set context(t) {
668
- this._context = t, Object.keys(this.views).forEach((e) => {
669
- const i = this.views[e];
670
- if (this.components.has(i)) {
671
- const s = this.components.get(i);
672
- s && (s.regionContext = this._context);
673
- }
674
- });
675
- }
676
- async activate(t) {
677
- let e = t;
678
- if (typeof t == "string" ? (e = this.getView(t), x(e, `Region does not contain a view with key ${t}`)) : x(Object.keys(this.views).some((i) => typeof this.views[i] < "u"), "Region does not contain this view"), !this.activeViews.some((i) => i === e)) {
679
- if (!this.components.has(e)) {
680
- const s = await Ai(e, this, typeof t == "string" ? t : this.getKey(e));
681
- s.regionContext = this.context, this.components.set(e, s);
682
- }
683
- const i = this.components.get(e);
684
- this.activeViews.push(e), i.active = !0, await this.adapter.activateView(i);
685
- }
686
- return this;
687
- }
688
- viewRemovedFromDom(t) {
689
- this.components.delete(t);
690
- }
691
- remove(t) {
692
- const e = typeof t == "string" ? this.getView(t) : t, i = this.components.get(e);
693
- i && this.adapter.removeView(i);
694
- }
695
- async deactivate(t) {
696
- const e = typeof t == "string" ? this.getView(t) : t, i = this.activeViews.indexOf(e);
697
- i !== -1 && this.activeViews.splice(i, 1);
698
- const s = this.components.get(e);
699
- s && (s.active = !1, await this.adapter.deactivateView(s));
700
- }
701
- getView(t) {
702
- return this.views[t];
703
- }
704
- get currentViews() {
705
- return Object.keys(this.views).map((t) => this.views[t]);
706
- }
707
- get currentActiveViews() {
708
- return [...this.activeViews];
709
- }
710
- getKey(t) {
711
- return Object.keys(this.views).find((e) => this.views[e] == t);
712
- }
713
- containsView(t) {
714
- return typeof t == "string" ? this.getView(t) !== void 0 : Object.keys(this.views).some((e) => this.views[e] == t);
715
- }
716
- isViewActive(t) {
717
- if (this.containsView(t)) {
718
- const e = typeof t == "string" ? this.getView(t) : t;
719
- return this.activeViews.indexOf(e) !== -1;
720
- }
721
- throw new Error(`region ${this.name} doest not contain this view`);
722
- }
723
- async toggleViewActive(t) {
724
- if (this.containsView(t))
725
- return this.isViewActive(t) ? (await this.deactivate(t), !1) : (await this.activate(t), !0);
726
- throw new Error(`region ${this.name} doest not contain this view`);
727
- }
728
- };
729
- const It = "default", xe = "dynamic";
730
- let Si = class {
731
- constructor() {
732
- this.adapterRegistry = /* @__PURE__ */ new Map(), this.adapterRegistry.set(xe, []);
733
- }
734
- registerAdapterFactory(t, e) {
735
- this.adapterRegistry.set(t, e);
736
- }
737
- get dynamicFactories() {
738
- return this.adapterRegistry.get(xe);
739
- }
740
- registerDynamicAdapterFactory(t) {
741
- this.dynamicFactories.indexOf(t) === -1 && this.dynamicFactories.push(t);
742
- }
743
- getDynamicFactory(t) {
744
- return this.dynamicFactories.reduce((e, i) => e || i(t), null);
745
- }
746
- getAdapterFactory(t) {
747
- return this.getDynamicFactory(t) || (this.adapterRegistry.has(t.constructor) ? this.adapterRegistry.get(t.constructor) : this.adapterRegistry.has(t.localName) ? this.adapterRegistry.get(t.localName) : this.adapterRegistry.has(t.tagName) ? this.adapterRegistry.get(t.tagName) : this.adapterRegistry.has(It) ? this.adapterRegistry.get(It) : null);
748
- }
749
- registerDefaultAdapterFactory(t) {
750
- this.adapterRegistry.set(It, t);
751
- }
752
- };
753
- const fr = new Si(), Wt = "__uxl_regions__", Ct = (r) => (t, e) => {
754
- t.constructor[Wt] = { ...t.constructor[Wt], [e]: r };
755
- }, Ci = (r, t, e) => {
756
- const i = e.getAdapterFactory(t);
757
- return x(typeof i == "function", "No region adapter factory found for the host"), i(r, t);
758
- }, xi = async (r, t, e, i) => {
759
- await t._updatePromise;
760
- const s = t.shadowRoot.querySelector(`#${r.targetId}`);
761
- if (s) {
762
- const n = r.adapterFactory ? r.adapterFactory(r, s) : Ci(r, s, i);
763
- x(n, "No region adapter found for the host");
764
- const o = r.scoped ? e.createRegionManager() : e, a = new Ei(r.name, o, s, n, r);
765
- return o.add(r.name, a), a;
766
- } else
767
- console.warn(`region host with id ${r.targetId} not found for region named ${r.name}`);
768
- };
769
- /*
770
- * @license
771
- * BSD License
772
- *
773
- * Copyright (c) 2020, UXLand
774
- *
775
- * All rights reserved.
776
- * Redistribution and use in source and binary forms, with or without
777
- * modification, are permitted provided that the following conditions are met:
778
- * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
779
- * 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
780
- * 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the <copyright holder>.
781
- * 4. Neither the name of the <copyright holder> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
782
- *
783
- * THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
784
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
785
- */
786
- let Ri = class {
787
- constructor(t) {
788
- this._ownQueue = [], this.isProcessing = !1, this.executor = t;
789
- }
790
- enqueueItem(...t) {
791
- this._ownQueue.push([...t]), this.tryProcessQueue();
792
- }
793
- async tryProcessQueue() {
794
- if (!this.isProcessing && this._ownQueue.length) {
795
- this.isProcessing = !0;
796
- const t = this._ownQueue.pop();
797
- await this.executor.apply(void 0, [...t]), this.isProcessing = !1, this.tryProcessQueue();
798
- }
799
- }
800
- };
801
- const gr = /* @__PURE__ */ new WeakMap();
802
- function Pi(r, t) {
803
- let e = t;
804
- for (; e; ) {
805
- if (gr.get(e) === r)
806
- return !0;
807
- e = Object.getPrototypeOf(e);
808
- }
809
- return !1;
810
- }
811
- function ne(r) {
812
- return (t) => {
813
- if (Pi(r, t))
814
- return t;
815
- const e = r(t);
816
- return gr.set(e, r), e;
817
- };
818
- }
819
- /**
820
- * @license
821
- * Copyright 2019 Google LLC
822
- * SPDX-License-Identifier: BSD-3-Clause
823
- */
824
- const ft = window, oe = ft.ShadowRoot && (ft.ShadyCSS === void 0 || ft.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, vr = Symbol(), Re = /* @__PURE__ */ new WeakMap();
825
- let Ti = class {
826
- constructor(t, e, i) {
827
- if (this._$cssResult$ = !0, i !== vr)
828
- throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
829
- this.cssText = t, this.t = e;
830
- }
831
- get styleSheet() {
832
- let t = this.o;
833
- const e = this.t;
834
- if (oe && t === void 0) {
835
- const i = e !== void 0 && e.length === 1;
836
- i && (t = Re.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Re.set(e, t));
837
- }
838
- return t;
839
- }
840
- toString() {
841
- return this.cssText;
842
- }
843
- };
844
- const Oi = (r) => new Ti(typeof r == "string" ? r : r + "", void 0, vr), Ii = (r, t) => {
845
- oe ? r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
846
- const i = document.createElement("style"), s = ft.litNonce;
847
- s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, r.appendChild(i);
848
- });
849
- }, Pe = oe ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
850
- let e = "";
851
- for (const i of t.cssRules)
852
- e += i.cssText;
853
- return Oi(e);
854
- })(r) : r;
855
- /**
856
- * @license
857
- * Copyright 2017 Google LLC
858
- * SPDX-License-Identifier: BSD-3-Clause
859
- */
860
- var Nt;
861
- const _t = window, Te = _t.trustedTypes, Ni = Te ? Te.emptyScript : "", Oe = _t.reactiveElementPolyfillSupport, Gt = { toAttribute(r, t) {
862
- switch (t) {
863
- case Boolean:
864
- r = r ? Ni : null;
865
- break;
866
- case Object:
867
- case Array:
868
- r = r == null ? r : JSON.stringify(r);
869
- }
870
- return r;
871
- }, fromAttribute(r, t) {
872
- let e = r;
873
- switch (t) {
874
- case Boolean:
875
- e = r !== null;
876
- break;
877
- case Number:
878
- e = r === null ? null : Number(r);
879
- break;
880
- case Object:
881
- case Array:
882
- try {
883
- e = JSON.parse(r);
884
- } catch {
885
- e = null;
886
- }
887
- }
888
- return e;
889
- } }, ae = (r, t) => t !== r && (t == t || r == r), kt = { attribute: !0, type: String, converter: Gt, reflect: !1, hasChanged: ae }, Kt = "finalized";
890
- let D = class extends HTMLElement {
891
- constructor() {
892
- super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this._$Eu();
893
- }
894
- static addInitializer(t) {
895
- var e;
896
- this.finalize(), ((e = this.h) !== null && e !== void 0 ? e : this.h = []).push(t);
897
- }
898
- static get observedAttributes() {
899
- this.finalize();
900
- const t = [];
901
- return this.elementProperties.forEach((e, i) => {
902
- const s = this._$Ep(i, e);
903
- s !== void 0 && (this._$Ev.set(s, i), t.push(s));
904
- }), t;
905
- }
906
- static createProperty(t, e = kt) {
907
- if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
908
- const i = typeof t == "symbol" ? Symbol() : "__" + t, s = this.getPropertyDescriptor(t, i, e);
909
- s !== void 0 && Object.defineProperty(this.prototype, t, s);
910
- }
911
- }
912
- static getPropertyDescriptor(t, e, i) {
913
- return { get() {
914
- return this[e];
915
- }, set(s) {
916
- const n = this[t];
917
- this[e] = s, this.requestUpdate(t, n, i);
918
- }, configurable: !0, enumerable: !0 };
919
- }
920
- static getPropertyOptions(t) {
921
- return this.elementProperties.get(t) || kt;
922
- }
923
- static finalize() {
924
- if (this.hasOwnProperty(Kt))
925
- return !1;
926
- this[Kt] = !0;
927
- const t = Object.getPrototypeOf(this);
928
- if (t.finalize(), t.h !== void 0 && (this.h = [...t.h]), this.elementProperties = new Map(t.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
929
- const e = this.properties, i = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];
930
- for (const s of i)
931
- this.createProperty(s, e[s]);
932
- }
933
- return this.elementStyles = this.finalizeStyles(this.styles), !0;
934
- }
935
- static finalizeStyles(t) {
936
- const e = [];
937
- if (Array.isArray(t)) {
938
- const i = new Set(t.flat(1 / 0).reverse());
939
- for (const s of i)
940
- e.unshift(Pe(s));
941
- } else
942
- t !== void 0 && e.push(Pe(t));
943
- return e;
944
- }
945
- static _$Ep(t, e) {
946
- const i = e.attribute;
947
- return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
948
- }
949
- _$Eu() {
950
- var t;
951
- this._$E_ = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$Eg(), this.requestUpdate(), (t = this.constructor.h) === null || t === void 0 || t.forEach((e) => e(this));
952
- }
953
- addController(t) {
954
- var e, i;
955
- ((e = this._$ES) !== null && e !== void 0 ? e : this._$ES = []).push(t), this.renderRoot !== void 0 && this.isConnected && ((i = t.hostConnected) === null || i === void 0 || i.call(t));
956
- }
957
- removeController(t) {
958
- var e;
959
- (e = this._$ES) === null || e === void 0 || e.splice(this._$ES.indexOf(t) >>> 0, 1);
960
- }
961
- _$Eg() {
962
- this.constructor.elementProperties.forEach((t, e) => {
963
- this.hasOwnProperty(e) && (this._$Ei.set(e, this[e]), delete this[e]);
964
- });
965
- }
966
- createRenderRoot() {
967
- var t;
968
- const e = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
969
- return Ii(e, this.constructor.elementStyles), e;
970
- }
971
- connectedCallback() {
972
- var t;
973
- this.renderRoot === void 0 && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) === null || t === void 0 || t.forEach((e) => {
974
- var i;
975
- return (i = e.hostConnected) === null || i === void 0 ? void 0 : i.call(e);
976
- });
977
- }
978
- enableUpdating(t) {
979
- }
980
- disconnectedCallback() {
981
- var t;
982
- (t = this._$ES) === null || t === void 0 || t.forEach((e) => {
983
- var i;
984
- return (i = e.hostDisconnected) === null || i === void 0 ? void 0 : i.call(e);
985
- });
986
- }
987
- attributeChangedCallback(t, e, i) {
988
- this._$AK(t, i);
989
- }
990
- _$EO(t, e, i = kt) {
991
- var s;
992
- const n = this.constructor._$Ep(t, i);
993
- if (n !== void 0 && i.reflect === !0) {
994
- const o = (((s = i.converter) === null || s === void 0 ? void 0 : s.toAttribute) !== void 0 ? i.converter : Gt).toAttribute(e, i.type);
995
- this._$El = t, o == null ? this.removeAttribute(n) : this.setAttribute(n, o), this._$El = null;
996
- }
997
- }
998
- _$AK(t, e) {
999
- var i;
1000
- const s = this.constructor, n = s._$Ev.get(t);
1001
- if (n !== void 0 && this._$El !== n) {
1002
- const o = s.getPropertyOptions(n), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((i = o.converter) === null || i === void 0 ? void 0 : i.fromAttribute) !== void 0 ? o.converter : Gt;
1003
- this._$El = n, this[n] = a.fromAttribute(e, o.type), this._$El = null;
1004
- }
1005
- }
1006
- requestUpdate(t, e, i) {
1007
- let s = !0;
1008
- t !== void 0 && (((i = i || this.constructor.getPropertyOptions(t)).hasChanged || ae)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, i))) : s = !1), !this.isUpdatePending && s && (this._$E_ = this._$Ej());
1009
- }
1010
- async _$Ej() {
1011
- this.isUpdatePending = !0;
1012
- try {
1013
- await this._$E_;
1014
- } catch (e) {
1015
- Promise.reject(e);
1016
- }
1017
- const t = this.scheduleUpdate();
1018
- return t != null && await t, !this.isUpdatePending;
1019
- }
1020
- scheduleUpdate() {
1021
- return this.performUpdate();
1022
- }
1023
- performUpdate() {
1024
- var t;
1025
- if (!this.isUpdatePending)
1026
- return;
1027
- this.hasUpdated, this._$Ei && (this._$Ei.forEach((s, n) => this[n] = s), this._$Ei = void 0);
1028
- let e = !1;
1029
- const i = this._$AL;
1030
- try {
1031
- e = this.shouldUpdate(i), e ? (this.willUpdate(i), (t = this._$ES) === null || t === void 0 || t.forEach((s) => {
1032
- var n;
1033
- return (n = s.hostUpdate) === null || n === void 0 ? void 0 : n.call(s);
1034
- }), this.update(i)) : this._$Ek();
1035
- } catch (s) {
1036
- throw e = !1, this._$Ek(), s;
1037
- }
1038
- e && this._$AE(i);
1039
- }
1040
- willUpdate(t) {
1041
- }
1042
- _$AE(t) {
1043
- var e;
1044
- (e = this._$ES) === null || e === void 0 || e.forEach((i) => {
1045
- var s;
1046
- return (s = i.hostUpdated) === null || s === void 0 ? void 0 : s.call(i);
1047
- }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
1048
- }
1049
- _$Ek() {
1050
- this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
1051
- }
1052
- get updateComplete() {
1053
- return this.getUpdateComplete();
1054
- }
1055
- getUpdateComplete() {
1056
- return this._$E_;
1057
- }
1058
- shouldUpdate(t) {
1059
- return !0;
1060
- }
1061
- update(t) {
1062
- this._$EC !== void 0 && (this._$EC.forEach((e, i) => this._$EO(i, this[i], e)), this._$EC = void 0), this._$Ek();
1063
- }
1064
- updated(t) {
1065
- }
1066
- firstUpdated(t) {
1067
- }
1068
- };
1069
- D[Kt] = !0, D.elementProperties = /* @__PURE__ */ new Map(), D.elementStyles = [], D.shadowRootOptions = { mode: "open" }, Oe == null || Oe({ ReactiveElement: D }), ((Nt = _t.reactiveElementVersions) !== null && Nt !== void 0 ? Nt : _t.reactiveElementVersions = []).push("1.6.3");
1070
- /**
1071
- * @license
1072
- * Copyright 2017 Google LLC
1073
- * SPDX-License-Identifier: BSD-3-Clause
1074
- */
1075
- var Mt;
1076
- const bt = window, q = bt.trustedTypes, Ie = q ? q.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Yt = "$lit$", S = `lit$${(Math.random() + "").slice(9)}$`, mr = "?" + S, ki = `<${mr}>`, M = document, et = () => M.createComment(""), rt = (r) => r === null || typeof r != "object" && typeof r != "function", yr = Array.isArray, Mi = (r) => yr(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", Ut = `[
1077
- \f\r]`, Z = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ne = /-->/g, ke = />/g, T = RegExp(`>|${Ut}(?:([^\\s"'>=/]+)(${Ut}*=${Ut}*(?:[^
1078
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Me = /'/g, Ue = /"/g, $r = /^(?:script|style|textarea|title)$/i, W = Symbol.for("lit-noChange"), y = Symbol.for("lit-nothing"), He = /* @__PURE__ */ new WeakMap(), I = M.createTreeWalker(M, 129, null, !1);
1079
- function _r(r, t) {
1080
- if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
1081
- throw Error("invalid template strings array");
1082
- return Ie !== void 0 ? Ie.createHTML(t) : t;
1083
- }
1084
- const Ui = (r, t) => {
1085
- const e = r.length - 1, i = [];
1086
- let s, n = t === 2 ? "<svg>" : "", o = Z;
1087
- for (let a = 0; a < e; a++) {
1088
- const c = r[a];
1089
- let l, u, h = -1, p = 0;
1090
- for (; p < c.length && (o.lastIndex = p, u = o.exec(c), u !== null); )
1091
- p = o.lastIndex, o === Z ? u[1] === "!--" ? o = Ne : u[1] !== void 0 ? o = ke : u[2] !== void 0 ? ($r.test(u[2]) && (s = RegExp("</" + u[2], "g")), o = T) : u[3] !== void 0 && (o = T) : o === T ? u[0] === ">" ? (o = s ?? Z, h = -1) : u[1] === void 0 ? h = -2 : (h = o.lastIndex - u[2].length, l = u[1], o = u[3] === void 0 ? T : u[3] === '"' ? Ue : Me) : o === Ue || o === Me ? o = T : o === Ne || o === ke ? o = Z : (o = T, s = void 0);
1092
- const m = o === T && r[a + 1].startsWith("/>") ? " " : "";
1093
- n += o === Z ? c + ki : h >= 0 ? (i.push(l), c.slice(0, h) + Yt + c.slice(h) + S + m) : c + S + (h === -2 ? (i.push(void 0), a) : m);
1094
- }
1095
- return [_r(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
1096
- };
1097
- let Xt = class br {
1098
- constructor({ strings: t, _$litType$: e }, i) {
1099
- let s;
1100
- this.parts = [];
1101
- let n = 0, o = 0;
1102
- const a = t.length - 1, c = this.parts, [l, u] = Ui(t, e);
1103
- if (this.el = br.createElement(l, i), I.currentNode = this.el.content, e === 2) {
1104
- const h = this.el.content, p = h.firstChild;
1105
- p.remove(), h.append(...p.childNodes);
1106
- }
1107
- for (; (s = I.nextNode()) !== null && c.length < a; ) {
1108
- if (s.nodeType === 1) {
1109
- if (s.hasAttributes()) {
1110
- const h = [];
1111
- for (const p of s.getAttributeNames())
1112
- if (p.endsWith(Yt) || p.startsWith(S)) {
1113
- const m = u[o++];
1114
- if (h.push(p), m !== void 0) {
1115
- const V = s.getAttribute(m.toLowerCase() + Yt).split(S), dt = /([.?@])?(.*)/.exec(m);
1116
- c.push({ type: 1, index: n, name: dt[2], strings: V, ctor: dt[1] === "." ? ji : dt[1] === "?" ? Vi : dt[1] === "@" ? Di : xt });
1117
- } else
1118
- c.push({ type: 6, index: n });
1119
- }
1120
- for (const p of h)
1121
- s.removeAttribute(p);
1122
- }
1123
- if ($r.test(s.tagName)) {
1124
- const h = s.textContent.split(S), p = h.length - 1;
1125
- if (p > 0) {
1126
- s.textContent = q ? q.emptyScript : "";
1127
- for (let m = 0; m < p; m++)
1128
- s.append(h[m], et()), I.nextNode(), c.push({ type: 2, index: ++n });
1129
- s.append(h[p], et());
1130
- }
1131
- }
1132
- } else if (s.nodeType === 8)
1133
- if (s.data === mr)
1134
- c.push({ type: 2, index: n });
1135
- else {
1136
- let h = -1;
1137
- for (; (h = s.data.indexOf(S, h + 1)) !== -1; )
1138
- c.push({ type: 7, index: n }), h += S.length - 1;
1139
- }
1140
- n++;
1141
- }
1142
- }
1143
- static createElement(t, e) {
1144
- const i = M.createElement("template");
1145
- return i.innerHTML = t, i;
1146
- }
1147
- };
1148
- function G(r, t, e = r, i) {
1149
- var s, n, o, a;
1150
- if (t === W)
1151
- return t;
1152
- let c = i !== void 0 ? (s = e._$Co) === null || s === void 0 ? void 0 : s[i] : e._$Cl;
1153
- const l = rt(t) ? void 0 : t._$litDirective$;
1154
- return (c == null ? void 0 : c.constructor) !== l && ((n = c == null ? void 0 : c._$AO) === null || n === void 0 || n.call(c, !1), l === void 0 ? c = void 0 : (c = new l(r), c._$AT(r, e, i)), i !== void 0 ? ((o = (a = e)._$Co) !== null && o !== void 0 ? o : a._$Co = [])[i] = c : e._$Cl = c), c !== void 0 && (t = G(r, c._$AS(r, t.values), c, i)), t;
1155
- }
1156
- let Hi = class {
1157
- constructor(t, e) {
1158
- this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
1159
- }
1160
- get parentNode() {
1161
- return this._$AM.parentNode;
1162
- }
1163
- get _$AU() {
1164
- return this._$AM._$AU;
1165
- }
1166
- u(t) {
1167
- var e;
1168
- const { el: { content: i }, parts: s } = this._$AD, n = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : M).importNode(i, !0);
1169
- I.currentNode = n;
1170
- let o = I.nextNode(), a = 0, c = 0, l = s[0];
1171
- for (; l !== void 0; ) {
1172
- if (a === l.index) {
1173
- let u;
1174
- l.type === 2 ? u = new ce(o, o.nextSibling, this, t) : l.type === 1 ? u = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && (u = new zi(o, this, t)), this._$AV.push(u), l = s[++c];
1175
- }
1176
- a !== (l == null ? void 0 : l.index) && (o = I.nextNode(), a++);
1177
- }
1178
- return I.currentNode = M, n;
1179
- }
1180
- v(t) {
1181
- let e = 0;
1182
- for (const i of this._$AV)
1183
- i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
1184
- }
1185
- }, ce = class wr {
1186
- constructor(t, e, i, s) {
1187
- var n;
1188
- this.type = 2, this._$AH = y, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = s, this._$Cp = (n = s == null ? void 0 : s.isConnected) === null || n === void 0 || n;
1189
- }
1190
- get _$AU() {
1191
- var t, e;
1192
- return (e = (t = this._$AM) === null || t === void 0 ? void 0 : t._$AU) !== null && e !== void 0 ? e : this._$Cp;
1193
- }
1194
- get parentNode() {
1195
- let t = this._$AA.parentNode;
1196
- const e = this._$AM;
1197
- return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
1198
- }
1199
- get startNode() {
1200
- return this._$AA;
1201
- }
1202
- get endNode() {
1203
- return this._$AB;
1204
- }
1205
- _$AI(t, e = this) {
1206
- t = G(this, t, e), rt(t) ? t === y || t == null || t === "" ? (this._$AH !== y && this._$AR(), this._$AH = y) : t !== this._$AH && t !== W && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Mi(t) ? this.T(t) : this._(t);
1207
- }
1208
- k(t) {
1209
- return this._$AA.parentNode.insertBefore(t, this._$AB);
1210
- }
1211
- $(t) {
1212
- this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
1213
- }
1214
- _(t) {
1215
- this._$AH !== y && rt(this._$AH) ? this._$AA.nextSibling.data = t : this.$(M.createTextNode(t)), this._$AH = t;
1216
- }
1217
- g(t) {
1218
- var e;
1219
- const { values: i, _$litType$: s } = t, n = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = Xt.createElement(_r(s.h, s.h[0]), this.options)), s);
1220
- if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === n)
1221
- this._$AH.v(i);
1222
- else {
1223
- const o = new Hi(n, this), a = o.u(this.options);
1224
- o.v(i), this.$(a), this._$AH = o;
1225
- }
1226
- }
1227
- _$AC(t) {
1228
- let e = He.get(t.strings);
1229
- return e === void 0 && He.set(t.strings, e = new Xt(t)), e;
1230
- }
1231
- T(t) {
1232
- yr(this._$AH) || (this._$AH = [], this._$AR());
1233
- const e = this._$AH;
1234
- let i, s = 0;
1235
- for (const n of t)
1236
- s === e.length ? e.push(i = new wr(this.k(et()), this.k(et()), this, this.options)) : i = e[s], i._$AI(n), s++;
1237
- s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
1238
- }
1239
- _$AR(t = this._$AA.nextSibling, e) {
1240
- var i;
1241
- for ((i = this._$AP) === null || i === void 0 || i.call(this, !1, !0, e); t && t !== this._$AB; ) {
1242
- const s = t.nextSibling;
1243
- t.remove(), t = s;
1244
- }
1245
- }
1246
- setConnected(t) {
1247
- var e;
1248
- this._$AM === void 0 && (this._$Cp = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));
1249
- }
1250
- }, xt = class {
1251
- constructor(t, e, i, s, n) {
1252
- this.type = 1, this._$AH = y, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = y;
1253
- }
1254
- get tagName() {
1255
- return this.element.tagName;
1256
- }
1257
- get _$AU() {
1258
- return this._$AM._$AU;
1259
- }
1260
- _$AI(t, e = this, i, s) {
1261
- const n = this.strings;
1262
- let o = !1;
1263
- if (n === void 0)
1264
- t = G(this, t, e, 0), o = !rt(t) || t !== this._$AH && t !== W, o && (this._$AH = t);
1265
- else {
1266
- const a = t;
1267
- let c, l;
1268
- for (t = n[0], c = 0; c < n.length - 1; c++)
1269
- l = G(this, a[i + c], e, c), l === W && (l = this._$AH[c]), o || (o = !rt(l) || l !== this._$AH[c]), l === y ? t = y : t !== y && (t += (l ?? "") + n[c + 1]), this._$AH[c] = l;
1270
- }
1271
- o && !s && this.j(t);
1272
- }
1273
- j(t) {
1274
- t === y ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
1275
- }
1276
- }, ji = class extends xt {
1277
- constructor() {
1278
- super(...arguments), this.type = 3;
1279
- }
1280
- j(t) {
1281
- this.element[this.name] = t === y ? void 0 : t;
1282
- }
1283
- };
1284
- const Li = q ? q.emptyScript : "";
1285
- let Vi = class extends xt {
1286
- constructor() {
1287
- super(...arguments), this.type = 4;
1288
- }
1289
- j(t) {
1290
- t && t !== y ? this.element.setAttribute(this.name, Li) : this.element.removeAttribute(this.name);
1291
- }
1292
- };
1293
- class Di extends xt {
1294
- constructor(t, e, i, s, n) {
1295
- super(t, e, i, s, n), this.type = 5;
1296
- }
1297
- _$AI(t, e = this) {
1298
- var i;
1299
- if ((t = (i = G(this, t, e, 0)) !== null && i !== void 0 ? i : y) === W)
1300
- return;
1301
- const s = this._$AH, n = t === y && s !== y || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== y && (s === y || n);
1302
- n && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
1303
- }
1304
- handleEvent(t) {
1305
- var e, i;
1306
- typeof this._$AH == "function" ? this._$AH.call((i = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && i !== void 0 ? i : this.element, t) : this._$AH.handleEvent(t);
1307
- }
1308
- }
1309
- let zi = class {
1310
- constructor(t, e, i) {
1311
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
1312
- }
1313
- get _$AU() {
1314
- return this._$AM._$AU;
1315
- }
1316
- _$AI(t) {
1317
- G(this, t);
1318
- }
1319
- };
1320
- const je = bt.litHtmlPolyfillSupport;
1321
- je == null || je(Xt, ce), ((Mt = bt.litHtmlVersions) !== null && Mt !== void 0 ? Mt : bt.litHtmlVersions = []).push("2.8.0");
1322
- const Bi = (r, t, e) => {
1323
- var i, s;
1324
- const n = (i = e == null ? void 0 : e.renderBefore) !== null && i !== void 0 ? i : t;
1325
- let o = n._$litPart$;
1326
- if (o === void 0) {
1327
- const a = (s = e == null ? void 0 : e.renderBefore) !== null && s !== void 0 ? s : null;
1328
- n._$litPart$ = o = new ce(t.insertBefore(et(), a), a, void 0, e ?? {});
1329
- }
1330
- return o._$AI(r), o;
1331
- };
1332
- /**
1333
- * @license
1334
- * Copyright 2017 Google LLC
1335
- * SPDX-License-Identifier: BSD-3-Clause
1336
- */
1337
- var Ht, jt;
1338
- let gt = class extends D {
1339
- constructor() {
1340
- super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
1341
- }
1342
- createRenderRoot() {
1343
- var t, e;
1344
- const i = super.createRenderRoot();
1345
- return (t = (e = this.renderOptions).renderBefore) !== null && t !== void 0 || (e.renderBefore = i.firstChild), i;
1346
- }
1347
- update(t) {
1348
- const e = this.render();
1349
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Bi(e, this.renderRoot, this.renderOptions);
1350
- }
1351
- connectedCallback() {
1352
- var t;
1353
- super.connectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!0);
1354
- }
1355
- disconnectedCallback() {
1356
- var t;
1357
- super.disconnectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!1);
1358
- }
1359
- render() {
1360
- return W;
1361
- }
1362
- };
1363
- gt.finalized = !0, gt._$litElement$ = !0, (Ht = globalThis.litElementHydrateSupport) === null || Ht === void 0 || Ht.call(globalThis, { LitElement: gt });
1364
- const Le = globalThis.litElementPolyfillSupport;
1365
- Le == null || Le({ LitElement: gt });
1366
- ((jt = globalThis.litElementVersions) !== null && jt !== void 0 ? jt : globalThis.litElementVersions = []).push("3.3.3");
1367
- var Fi = /* @__PURE__ */ g(function(t, e) {
1368
- return e == null || e !== e ? t : e;
1369
- });
1370
- const qi = (r, t) => t.constructor._classProperties ? t.constructor._classProperties.get(r).hasChanged : void 0, Wi = j(qi, Fi(ae)), Gi = ne((r) => {
1371
- class t extends r {
1372
- requestUpdate(i, s) {
1373
- const n = super.requestUpdate ? super.requestUpdate(i, s) : Promise.resolve(null);
1374
- return Wi(i, this)(this[i], s) && this[`${String(i)}Changed`] && this[`${String(i)}Changed`](this[i], s), n;
1375
- }
1376
- }
1377
- return t;
1378
- });
1379
- var Ki = function() {
1380
- return !0;
1381
- };
1382
- const Yi = Ki;
1383
- var wt = /* @__PURE__ */ $(function(t) {
1384
- return function() {
1385
- return t;
1386
- };
1387
- }), Xi = /* @__PURE__ */ g(function(t, e) {
1388
- return e > t ? e : t;
1389
- });
1390
- const Zi = Xi;
1391
- var Qi = /* @__PURE__ */ $(function(t) {
1392
- var e = dr(Zi, 0, ct(function(i) {
1393
- return i[0].length;
1394
- }, t));
1395
- return at(e, function() {
1396
- for (var i = 0; i < t.length; ) {
1397
- if (t[i][0].apply(this, arguments))
1398
- return t[i][1].apply(this, arguments);
1399
- i += 1;
1400
- }
1401
- });
1402
- }), Ji = /* @__PURE__ */ g(
1403
- /* @__PURE__ */ se("forEach", function(t, e) {
1404
- for (var i = e.length, s = 0; s < i; )
1405
- t(e[s]), s += 1;
1406
- return e;
1407
- })
1408
- ), le = /* @__PURE__ */ $(function(t) {
1409
- return t == null;
1410
- });
1411
- const ts = Number.isInteger || function(t) {
1412
- return t << 0 === t;
1413
- };
1414
- var es = /* @__PURE__ */ g(function(t, e) {
1415
- var i = t < 0 ? e.length + t : t;
1416
- return ar(e) ? e.charAt(i) : e[i];
1417
- }), rs = /* @__PURE__ */ g(function(t, e) {
1418
- return t.map(function(i) {
1419
- for (var s = e, n = 0, o; n < i.length; ) {
1420
- if (s == null)
1421
- return;
1422
- o = i[n], s = ts(o) ? es(o, s) : s[o], n += 1;
1423
- }
1424
- return s;
1425
- });
1426
- }), is = /* @__PURE__ */ g(function(t, e) {
1427
- return rs([t], e)[0];
1428
- }), ss = /* @__PURE__ */ g(function(t, e) {
1429
- return is([t], e);
1430
- });
1431
- const Ar = (r) => (t) => j(ss(t.key), le)(r), ns = (r) => (t) => !Ar(r)(t) && le(r.shadowRoot.querySelector(`#${t.definition.targetId}`)), os = (r) => (t) => {
1432
- const e = r[t.key];
1433
- e.regionManager.remove(e);
1434
- const i = e.adapter ? e.adapter.behaviors || [] : [];
1435
- return delete r[t.key], j(ct((s) => s.detach), B(Promise.all, Promise), F(() => delete r[t.key]), F(wt(void 0)))(i);
1436
- }, as = (r, t, e) => (i) => xi(i.definition, r, t, e).then((s) => {
1437
- if (s) {
1438
- r[i.key] = s;
1439
- const n = s.adapter ? s.adapter.behaviors || [] : [];
1440
- return j(ct((o) => o.attach()), B(Promise.all, Promise), F(wt(s)))(n);
1441
- } else
1442
- return;
1443
- }).catch(wt(void 0)), cs = (r) => j(k, ct((t) => ({ key: t, definition: r[t] })))(r), Ve = (r) => r.constructor[Wt] || {}, ls = (r, t, e) => {
1444
- const i = Ar(r), s = ns(r), n = os(r), o = as(r, t, e);
1445
- return (a) => Qi([[i, o], [s, n], [Yi, wt(Promise.resolve(void 0))]])(a);
1446
- }, hs = (r, t) => ne((e) => {
1447
- class i extends e {
1448
- constructor(...n) {
1449
- super(), this.enqueuer = new Ri(this.runRegionCreation.bind(this));
1450
- }
1451
- updated(n) {
1452
- super.updated(n), this.create();
1453
- }
1454
- createRegions() {
1455
- const n = Ve(this), o = ls(this, r, t);
1456
- return j(cs, Ji(o), B(Promise.all, Promise), F(cr(le)), F(B(this.regionsCreated, this)))(n);
1457
- }
1458
- create() {
1459
- this.enqueuer.enqueueItem();
1460
- }
1461
- runRegionCreation() {
1462
- return new Promise((n) => {
1463
- this.createRegions().then(n).catch(n);
1464
- });
1465
- }
1466
- regionsCreated(n) {
1467
- }
1468
- disconnectedCallback() {
1469
- super.disconnectedCallback();
1470
- const n = Ve(this);
1471
- Object.keys(n).forEach((o) => {
1472
- const a = this[o];
1473
- a && (a.regionManager.remove(a), (a.adapter ? a.adapter.behaviors || [] : []).forEach((c) => c.detach()));
1474
- });
1475
- }
1476
- }
1477
- return i;
1478
- });
1479
- fr.registerDefaultAdapterFactory(_i);
1480
- /**
1481
- * @license
1482
- * Copyright 2017 Google LLC
1483
- * SPDX-License-Identifier: BSD-3-Clause
1484
- */
1485
- const us = (r, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? { ...t, finisher(e) {
1486
- e.createProperty(t.key, r);
1487
- } } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
1488
- typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
1489
- }, finisher(e) {
1490
- e.createProperty(t.key, r);
1491
- } }, ds = (r, t, e) => {
1492
- t.constructor.createProperty(e, r);
1493
- };
1494
- function De(r) {
1495
- return (t, e) => e !== void 0 ? ds(r, t, e) : us(r, t);
1496
- }
1497
- /**
1498
- * @license
1499
- * Copyright 2021 Google LLC
1500
- * SPDX-License-Identifier: BSD-3-Clause
1501
- */
1502
- var Lt;
1503
- ((Lt = window.HTMLSlotElement) === null || Lt === void 0 ? void 0 : Lt.prototype.assignedElements) != null;
1504
- var ps = Object.defineProperty, fs = Object.getOwnPropertyDescriptor, ze = (r, t, e, i) => {
1505
- for (var s = i > 1 ? void 0 : i ? fs(t, e) : t, n = r.length - 1, o; n >= 0; n--)
1506
- (o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
1507
- return i && s && ps(t, e, s), s;
1508
- };
1509
- const gs = ne((r) => {
1510
- class t extends Gi(r) {
1511
- activeChanged(i, s) {
1512
- }
1513
- regionContextChanged(i, s) {
1514
- }
1515
- }
1516
- return ze([De({ type: Boolean })], t.prototype, "active", 2), ze([De()], t.prototype, "regionContext", 2), t;
1517
- });
1518
- function vs(r) {
1519
- return gs(r);
1520
- }
1521
- const ms = (r) => hs(r, fr);
1522
- class ys {
1523
- constructor() {
1524
- this.viewsByRegion = {}, this.regions = {};
1525
- }
1526
- registerRegion(t, e) {
1527
- this.regions[t] = [...this.regions[t] || [], e];
1528
- }
1529
- unregisterRegion(t, e) {
1530
- this.regions[t] = this.getRegionsByName(t).filter((i) => i !== e);
1531
- }
1532
- registerView(t, e, i) {
1533
- this.viewsByRegion[t] = [
1534
- ...this.viewsByRegion[t] || [],
1535
- { key: e, view: i }
1536
- ];
1537
- }
1538
- getRegisteredViews(t) {
1539
- return this.viewsByRegion[t] || [];
1540
- }
1541
- getRegionsByName(t) {
1542
- return this.regions[t] || [];
1543
- }
1544
- destroy() {
1545
- this.viewsByRegion = {}, this.regions = {};
1546
- }
1547
- clear() {
1548
- this.viewsByRegion = {};
1549
- }
1550
- }
1551
- class he {
1552
- constructor(t) {
1553
- this._viewRegistry = t, this._regions = {};
1554
- }
1555
- add(t, e) {
1556
- if (this.getRegion(t))
1557
- throw new Error("A region with the same name already exists");
1558
- return this._regions[t] = e, this._viewRegistry.registerRegion(t, e), this;
1559
- }
1560
- getRegion(t) {
1561
- return this._regions[t];
1562
- }
1563
- remove(t) {
1564
- let e, i = "";
1565
- return typeof t == "string" ? (e = this.getRegion(t), i = t, delete this._regions[t]) : typeof t == "object" && (i = Object.keys(this._regions).find((s) => this._regions[s] === t), i && (e = t, delete this._regions[i])), i && e && this._viewRegistry.unregisterRegion(i, e), e;
1566
- }
1567
- addViewToRegion(t, e, i) {
1568
- const s = this.getRegion(t);
1569
- if (!s)
1570
- throw new Error(`Couldn't find a region with name: ${t}`);
1571
- return s.addView(e, i), this;
1572
- }
1573
- registerViewWithRegion(t, e, i) {
1574
- return this._viewRegistry.registerView(t, e, i), this._viewRegistry.getRegionsByName(t).forEach((s) => s.addView(e, i)), this;
1575
- }
1576
- getRegisteredViews(t) {
1577
- return this._viewRegistry.getRegisteredViews(t);
1578
- }
1579
- clear() {
1580
- return Object.values(this._viewRegistry.regions).forEach((t) => {
1581
- t != null && t.length && Object.keys(t[0].views).forEach((e) => {
1582
- var i;
1583
- return (i = t[0]) == null ? void 0 : i.removeView(e);
1584
- });
1585
- }), this;
1586
- }
1587
- destroy() {
1588
- return this.clear(), Object.values(this._viewRegistry.regions).forEach(
1589
- (t) => this.remove(t[0])
1590
- ), this._regions = {}, this;
1591
- }
1592
- createRegionManager() {
1593
- return new he(this._viewRegistry);
1594
- }
1595
- }
1596
- class $s extends he {
1597
- constructor(t) {
1598
- const e = new ys();
1599
- super(e), this._name = t;
1600
- }
1601
- clear() {
1602
- return super.clear(), this._viewRegistry.clear(), this;
1603
- }
1604
- destroy() {
1605
- return super.destroy(), this._viewRegistry.destroy(), this;
1606
- }
1607
- }
1608
- const _s = (r) => new $s(r), bs = _s("SHELL-LIT"), ws = ms(bs);
1609
- /**
1610
- * @license
1611
- * Copyright 2019 Google LLC
1612
- * SPDX-License-Identifier: BSD-3-Clause
1613
- */
1614
- const vt = globalThis, ue = vt.ShadowRoot && (vt.ShadyCSS === void 0 || vt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, de = Symbol(), Be = /* @__PURE__ */ new WeakMap();
1615
- let Er = class {
1616
- constructor(t, e, i) {
1617
- if (this._$cssResult$ = !0, i !== de)
1618
- throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
1619
- this.cssText = t, this.t = e;
1620
- }
1621
- get styleSheet() {
1622
- let t = this.o;
1623
- const e = this.t;
1624
- if (ue && t === void 0) {
1625
- const i = e !== void 0 && e.length === 1;
1626
- i && (t = Be.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Be.set(e, t));
1627
- }
1628
- return t;
1629
- }
1630
- toString() {
1631
- return this.cssText;
1632
- }
1633
- };
1634
- const As = (r) => new Er(typeof r == "string" ? r : r + "", void 0, de), L = (r, ...t) => {
1635
- const e = r.length === 1 ? r[0] : t.reduce((i, s, n) => i + ((o) => {
1636
- if (o._$cssResult$ === !0)
1637
- return o.cssText;
1638
- if (typeof o == "number")
1639
- return o;
1640
- throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
1641
- })(s) + r[n + 1], r[0]);
1642
- return new Er(e, r, de);
1643
- }, Es = (r, t) => {
1644
- if (ue)
1645
- r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
1646
- else
1647
- for (const e of t) {
1648
- const i = document.createElement("style"), s = vt.litNonce;
1649
- s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, r.appendChild(i);
1650
- }
1651
- }, Fe = ue ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
1652
- let e = "";
1653
- for (const i of t.cssRules)
1654
- e += i.cssText;
1655
- return As(e);
1656
- })(r) : r;
1657
- /**
1658
- * @license
1659
- * Copyright 2017 Google LLC
1660
- * SPDX-License-Identifier: BSD-3-Clause
1661
- */
1662
- const { is: Ss, defineProperty: Cs, getOwnPropertyDescriptor: xs, getOwnPropertyNames: Rs, getOwnPropertySymbols: Ps, getPrototypeOf: Ts } = Object, R = globalThis, qe = R.trustedTypes, Os = qe ? qe.emptyScript : "", Vt = R.reactiveElementPolyfillSupport, J = (r, t) => r, At = { toAttribute(r, t) {
1663
- switch (t) {
1664
- case Boolean:
1665
- r = r ? Os : null;
1666
- break;
1667
- case Object:
1668
- case Array:
1669
- r = r == null ? r : JSON.stringify(r);
1670
- }
1671
- return r;
1672
- }, fromAttribute(r, t) {
1673
- let e = r;
1674
- switch (t) {
1675
- case Boolean:
1676
- e = r !== null;
1677
- break;
1678
- case Number:
1679
- e = r === null ? null : Number(r);
1680
- break;
1681
- case Object:
1682
- case Array:
1683
- try {
1684
- e = JSON.parse(r);
1685
- } catch {
1686
- e = null;
1687
- }
1688
- }
1689
- return e;
1690
- } }, pe = (r, t) => !Ss(r, t), We = { attribute: !0, type: String, converter: At, reflect: !1, hasChanged: pe };
1691
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), R.litPropertyMetadata ?? (R.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
1692
- class z extends HTMLElement {
1693
- static addInitializer(t) {
1694
- this._$Ei(), (this.l ?? (this.l = [])).push(t);
1695
- }
1696
- static get observedAttributes() {
1697
- return this.finalize(), this._$Eh && [...this._$Eh.keys()];
1698
- }
1699
- static createProperty(t, e = We) {
1700
- if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
1701
- const i = Symbol(), s = this.getPropertyDescriptor(t, i, e);
1702
- s !== void 0 && Cs(this.prototype, t, s);
1703
- }
1704
- }
1705
- static getPropertyDescriptor(t, e, i) {
1706
- const { get: s, set: n } = xs(this.prototype, t) ?? { get() {
1707
- return this[e];
1708
- }, set(o) {
1709
- this[e] = o;
1710
- } };
1711
- return { get() {
1712
- return s == null ? void 0 : s.call(this);
1713
- }, set(o) {
1714
- const a = s == null ? void 0 : s.call(this);
1715
- n.call(this, o), this.requestUpdate(t, a, i);
1716
- }, configurable: !0, enumerable: !0 };
1717
- }
1718
- static getPropertyOptions(t) {
1719
- return this.elementProperties.get(t) ?? We;
1720
- }
1721
- static _$Ei() {
1722
- if (this.hasOwnProperty(J("elementProperties")))
1723
- return;
1724
- const t = Ts(this);
1725
- t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
1726
- }
1727
- static finalize() {
1728
- if (this.hasOwnProperty(J("finalized")))
1729
- return;
1730
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(J("properties"))) {
1731
- const e = this.properties, i = [...Rs(e), ...Ps(e)];
1732
- for (const s of i)
1733
- this.createProperty(s, e[s]);
1734
- }
1735
- const t = this[Symbol.metadata];
1736
- if (t !== null) {
1737
- const e = litPropertyMetadata.get(t);
1738
- if (e !== void 0)
1739
- for (const [i, s] of e)
1740
- this.elementProperties.set(i, s);
1741
- }
1742
- this._$Eh = /* @__PURE__ */ new Map();
1743
- for (const [e, i] of this.elementProperties) {
1744
- const s = this._$Eu(e, i);
1745
- s !== void 0 && this._$Eh.set(s, e);
1746
- }
1747
- this.elementStyles = this.finalizeStyles(this.styles);
1748
- }
1749
- static finalizeStyles(t) {
1750
- const e = [];
1751
- if (Array.isArray(t)) {
1752
- const i = new Set(t.flat(1 / 0).reverse());
1753
- for (const s of i)
1754
- e.unshift(Fe(s));
1755
- } else
1756
- t !== void 0 && e.push(Fe(t));
1757
- return e;
1758
- }
1759
- static _$Eu(t, e) {
1760
- const i = e.attribute;
1761
- return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
1762
- }
1763
- constructor() {
1764
- super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
1765
- }
1766
- _$Ev() {
1767
- var t;
1768
- this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
1769
- }
1770
- addController(t) {
1771
- var e;
1772
- (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
1773
- }
1774
- removeController(t) {
1775
- var e;
1776
- (e = this._$EO) == null || e.delete(t);
1777
- }
1778
- _$E_() {
1779
- const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
1780
- for (const i of e.keys())
1781
- this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
1782
- t.size > 0 && (this._$Ep = t);
1783
- }
1784
- createRenderRoot() {
1785
- const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
1786
- return Es(t, this.constructor.elementStyles), t;
1787
- }
1788
- connectedCallback() {
1789
- var t;
1790
- this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
1791
- var i;
1792
- return (i = e.hostConnected) == null ? void 0 : i.call(e);
1793
- });
1794
- }
1795
- enableUpdating(t) {
1796
- }
1797
- disconnectedCallback() {
1798
- var t;
1799
- (t = this._$EO) == null || t.forEach((e) => {
1800
- var i;
1801
- return (i = e.hostDisconnected) == null ? void 0 : i.call(e);
1802
- });
1803
- }
1804
- attributeChangedCallback(t, e, i) {
1805
- this._$AK(t, i);
1806
- }
1807
- _$EC(t, e) {
1808
- var n;
1809
- const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
1810
- if (s !== void 0 && i.reflect === !0) {
1811
- const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : At).toAttribute(e, i.type);
1812
- this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
1813
- }
1814
- }
1815
- _$AK(t, e) {
1816
- var n;
1817
- const i = this.constructor, s = i._$Eh.get(t);
1818
- if (s !== void 0 && this._$Em !== s) {
1819
- const o = i.getPropertyOptions(s), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : At;
1820
- this._$Em = s, this[s] = a.fromAttribute(e, o.type), this._$Em = null;
1821
- }
1822
- }
1823
- requestUpdate(t, e, i) {
1824
- if (t !== void 0) {
1825
- if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? pe)(this[t], e))
1826
- return;
1827
- this.P(t, e, i);
1828
- }
1829
- this.isUpdatePending === !1 && (this._$ES = this._$ET());
1830
- }
1831
- P(t, e, i) {
1832
- this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
1833
- }
1834
- async _$ET() {
1835
- this.isUpdatePending = !0;
1836
- try {
1837
- await this._$ES;
1838
- } catch (e) {
1839
- Promise.reject(e);
1840
- }
1841
- const t = this.scheduleUpdate();
1842
- return t != null && await t, !this.isUpdatePending;
1843
- }
1844
- scheduleUpdate() {
1845
- return this.performUpdate();
1846
- }
1847
- performUpdate() {
1848
- var i;
1849
- if (!this.isUpdatePending)
1850
- return;
1851
- if (!this.hasUpdated) {
1852
- if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
1853
- for (const [n, o] of this._$Ep)
1854
- this[n] = o;
1855
- this._$Ep = void 0;
1856
- }
1857
- const s = this.constructor.elementProperties;
1858
- if (s.size > 0)
1859
- for (const [n, o] of s)
1860
- o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], o);
1861
- }
1862
- let t = !1;
1863
- const e = this._$AL;
1864
- try {
1865
- t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((s) => {
1866
- var n;
1867
- return (n = s.hostUpdate) == null ? void 0 : n.call(s);
1868
- }), this.update(e)) : this._$EU();
1869
- } catch (s) {
1870
- throw t = !1, this._$EU(), s;
1871
- }
1872
- t && this._$AE(e);
1873
- }
1874
- willUpdate(t) {
1875
- }
1876
- _$AE(t) {
1877
- var e;
1878
- (e = this._$EO) == null || e.forEach((i) => {
1879
- var s;
1880
- return (s = i.hostUpdated) == null ? void 0 : s.call(i);
1881
- }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
1882
- }
1883
- _$EU() {
1884
- this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
1885
- }
1886
- get updateComplete() {
1887
- return this.getUpdateComplete();
1888
- }
1889
- getUpdateComplete() {
1890
- return this._$ES;
1891
- }
1892
- shouldUpdate(t) {
1893
- return !0;
1894
- }
1895
- update(t) {
1896
- this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
1897
- }
1898
- updated(t) {
1899
- }
1900
- firstUpdated(t) {
1901
- }
1902
- }
1903
- z.elementStyles = [], z.shadowRootOptions = { mode: "open" }, z[J("elementProperties")] = /* @__PURE__ */ new Map(), z[J("finalized")] = /* @__PURE__ */ new Map(), Vt == null || Vt({ ReactiveElement: z }), (R.reactiveElementVersions ?? (R.reactiveElementVersions = [])).push("2.0.4");
1904
- /**
1905
- * @license
1906
- * Copyright 2017 Google LLC
1907
- * SPDX-License-Identifier: BSD-3-Clause
1908
- */
1909
- const tt = globalThis, Et = tt.trustedTypes, Ge = Et ? Et.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Sr = "$lit$", C = `lit$${(Math.random() + "").slice(9)}$`, Cr = "?" + C, Is = `<${Cr}>`, U = document, it = () => U.createComment(""), st = (r) => r === null || typeof r != "object" && typeof r != "function", xr = Array.isArray, Ns = (r) => xr(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", Dt = `[
1910
- \f\r]`, Q = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ke = /-->/g, Ye = />/g, O = RegExp(`>|${Dt}(?:([^\\s"'>=/]+)(${Dt}*=${Dt}*(?:[^
1911
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Xe = /'/g, Ze = /"/g, Rr = /^(?:script|style|textarea|title)$/i, ks = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), A = ks(1), H = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Qe = /* @__PURE__ */ new WeakMap(), N = U.createTreeWalker(U, 129);
1912
- function Pr(r, t) {
1913
- if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
1914
- throw Error("invalid template strings array");
1915
- return Ge !== void 0 ? Ge.createHTML(t) : t;
1916
- }
1917
- const Ms = (r, t) => {
1918
- const e = r.length - 1, i = [];
1919
- let s, n = t === 2 ? "<svg>" : "", o = Q;
1920
- for (let a = 0; a < e; a++) {
1921
- const c = r[a];
1922
- let l, u, h = -1, p = 0;
1923
- for (; p < c.length && (o.lastIndex = p, u = o.exec(c), u !== null); )
1924
- p = o.lastIndex, o === Q ? u[1] === "!--" ? o = Ke : u[1] !== void 0 ? o = Ye : u[2] !== void 0 ? (Rr.test(u[2]) && (s = RegExp("</" + u[2], "g")), o = O) : u[3] !== void 0 && (o = O) : o === O ? u[0] === ">" ? (o = s ?? Q, h = -1) : u[1] === void 0 ? h = -2 : (h = o.lastIndex - u[2].length, l = u[1], o = u[3] === void 0 ? O : u[3] === '"' ? Ze : Xe) : o === Ze || o === Xe ? o = O : o === Ke || o === Ye ? o = Q : (o = O, s = void 0);
1925
- const m = o === O && r[a + 1].startsWith("/>") ? " " : "";
1926
- n += o === Q ? c + Is : h >= 0 ? (i.push(l), c.slice(0, h) + Sr + c.slice(h) + C + m) : c + C + (h === -2 ? a : m);
1927
- }
1928
- return [Pr(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
1929
- };
1930
- class nt {
1931
- constructor({ strings: t, _$litType$: e }, i) {
1932
- let s;
1933
- this.parts = [];
1934
- let n = 0, o = 0;
1935
- const a = t.length - 1, c = this.parts, [l, u] = Ms(t, e);
1936
- if (this.el = nt.createElement(l, i), N.currentNode = this.el.content, e === 2) {
1937
- const h = this.el.content.firstChild;
1938
- h.replaceWith(...h.childNodes);
1939
- }
1940
- for (; (s = N.nextNode()) !== null && c.length < a; ) {
1941
- if (s.nodeType === 1) {
1942
- if (s.hasAttributes())
1943
- for (const h of s.getAttributeNames())
1944
- if (h.endsWith(Sr)) {
1945
- const p = u[o++], m = s.getAttribute(h).split(C), V = /([.?@])?(.*)/.exec(p);
1946
- c.push({ type: 1, index: n, name: V[2], strings: m, ctor: V[1] === "." ? Hs : V[1] === "?" ? js : V[1] === "@" ? Ls : Rt }), s.removeAttribute(h);
1947
- } else
1948
- h.startsWith(C) && (c.push({ type: 6, index: n }), s.removeAttribute(h));
1949
- if (Rr.test(s.tagName)) {
1950
- const h = s.textContent.split(C), p = h.length - 1;
1951
- if (p > 0) {
1952
- s.textContent = Et ? Et.emptyScript : "";
1953
- for (let m = 0; m < p; m++)
1954
- s.append(h[m], it()), N.nextNode(), c.push({ type: 2, index: ++n });
1955
- s.append(h[p], it());
1956
- }
1957
- }
1958
- } else if (s.nodeType === 8)
1959
- if (s.data === Cr)
1960
- c.push({ type: 2, index: n });
1961
- else {
1962
- let h = -1;
1963
- for (; (h = s.data.indexOf(C, h + 1)) !== -1; )
1964
- c.push({ type: 7, index: n }), h += C.length - 1;
1965
- }
1966
- n++;
1967
- }
1968
- }
1969
- static createElement(t, e) {
1970
- const i = U.createElement("template");
1971
- return i.innerHTML = t, i;
1972
- }
1973
- }
1974
- function K(r, t, e = r, i) {
1975
- var o, a;
1976
- if (t === H)
1977
- return t;
1978
- let s = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
1979
- const n = st(t) ? void 0 : t._$litDirective$;
1980
- return (s == null ? void 0 : s.constructor) !== n && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), n === void 0 ? s = void 0 : (s = new n(r), s._$AT(r, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t = K(r, s._$AS(r, t.values), s, i)), t;
1981
- }
1982
- class Us {
1983
- constructor(t, e) {
1984
- this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
1985
- }
1986
- get parentNode() {
1987
- return this._$AM.parentNode;
1988
- }
1989
- get _$AU() {
1990
- return this._$AM._$AU;
1991
- }
1992
- u(t) {
1993
- const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? U).importNode(e, !0);
1994
- N.currentNode = s;
1995
- let n = N.nextNode(), o = 0, a = 0, c = i[0];
1996
- for (; c !== void 0; ) {
1997
- if (o === c.index) {
1998
- let l;
1999
- c.type === 2 ? l = new lt(n, n.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (l = new Vs(n, this, t)), this._$AV.push(l), c = i[++a];
2000
- }
2001
- o !== (c == null ? void 0 : c.index) && (n = N.nextNode(), o++);
2002
- }
2003
- return N.currentNode = U, s;
2004
- }
2005
- p(t) {
2006
- let e = 0;
2007
- for (const i of this._$AV)
2008
- i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
2009
- }
2010
- }
2011
- class lt {
2012
- get _$AU() {
2013
- var t;
2014
- return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
2015
- }
2016
- constructor(t, e, i, s) {
2017
- this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = s, this._$Cv = (s == null ? void 0 : s.isConnected) ?? !0;
2018
- }
2019
- get parentNode() {
2020
- let t = this._$AA.parentNode;
2021
- const e = this._$AM;
2022
- return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
2023
- }
2024
- get startNode() {
2025
- return this._$AA;
2026
- }
2027
- get endNode() {
2028
- return this._$AB;
2029
- }
2030
- _$AI(t, e = this) {
2031
- t = K(this, t, e), st(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== H && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ns(t) ? this.k(t) : this._(t);
2032
- }
2033
- S(t) {
2034
- return this._$AA.parentNode.insertBefore(t, this._$AB);
2035
- }
2036
- T(t) {
2037
- this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
2038
- }
2039
- _(t) {
2040
- this._$AH !== d && st(this._$AH) ? this._$AA.nextSibling.data = t : this.T(U.createTextNode(t)), this._$AH = t;
2041
- }
2042
- $(t) {
2043
- var n;
2044
- const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = nt.createElement(Pr(i.h, i.h[0]), this.options)), i);
2045
- if (((n = this._$AH) == null ? void 0 : n._$AD) === s)
2046
- this._$AH.p(e);
2047
- else {
2048
- const o = new Us(s, this), a = o.u(this.options);
2049
- o.p(e), this.T(a), this._$AH = o;
2050
- }
2051
- }
2052
- _$AC(t) {
2053
- let e = Qe.get(t.strings);
2054
- return e === void 0 && Qe.set(t.strings, e = new nt(t)), e;
2055
- }
2056
- k(t) {
2057
- xr(this._$AH) || (this._$AH = [], this._$AR());
2058
- const e = this._$AH;
2059
- let i, s = 0;
2060
- for (const n of t)
2061
- s === e.length ? e.push(i = new lt(this.S(it()), this.S(it()), this, this.options)) : i = e[s], i._$AI(n), s++;
2062
- s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
2063
- }
2064
- _$AR(t = this._$AA.nextSibling, e) {
2065
- var i;
2066
- for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
2067
- const s = t.nextSibling;
2068
- t.remove(), t = s;
2069
- }
2070
- }
2071
- setConnected(t) {
2072
- var e;
2073
- this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
2074
- }
2075
- }
2076
- class Rt {
2077
- get tagName() {
2078
- return this.element.tagName;
2079
- }
2080
- get _$AU() {
2081
- return this._$AM._$AU;
2082
- }
2083
- constructor(t, e, i, s, n) {
2084
- this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = d;
2085
- }
2086
- _$AI(t, e = this, i, s) {
2087
- const n = this.strings;
2088
- let o = !1;
2089
- if (n === void 0)
2090
- t = K(this, t, e, 0), o = !st(t) || t !== this._$AH && t !== H, o && (this._$AH = t);
2091
- else {
2092
- const a = t;
2093
- let c, l;
2094
- for (t = n[0], c = 0; c < n.length - 1; c++)
2095
- l = K(this, a[i + c], e, c), l === H && (l = this._$AH[c]), o || (o = !st(l) || l !== this._$AH[c]), l === d ? t = d : t !== d && (t += (l ?? "") + n[c + 1]), this._$AH[c] = l;
2096
- }
2097
- o && !s && this.j(t);
2098
- }
2099
- j(t) {
2100
- t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
2101
- }
2102
- }
2103
- class Hs extends Rt {
2104
- constructor() {
2105
- super(...arguments), this.type = 3;
2106
- }
2107
- j(t) {
2108
- this.element[this.name] = t === d ? void 0 : t;
2109
- }
2110
- }
2111
- class js extends Rt {
2112
- constructor() {
2113
- super(...arguments), this.type = 4;
2114
- }
2115
- j(t) {
2116
- this.element.toggleAttribute(this.name, !!t && t !== d);
2117
- }
2118
- }
2119
- class Ls extends Rt {
2120
- constructor(t, e, i, s, n) {
2121
- super(t, e, i, s, n), this.type = 5;
2122
- }
2123
- _$AI(t, e = this) {
2124
- if ((t = K(this, t, e, 0) ?? d) === H)
2125
- return;
2126
- const i = this._$AH, s = t === d && i !== d || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== d && (i === d || s);
2127
- s && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
2128
- }
2129
- handleEvent(t) {
2130
- var e;
2131
- typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
2132
- }
2133
- }
2134
- class Vs {
2135
- constructor(t, e, i) {
2136
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
2137
- }
2138
- get _$AU() {
2139
- return this._$AM._$AU;
2140
- }
2141
- _$AI(t) {
2142
- K(this, t);
2143
- }
2144
- }
2145
- const zt = tt.litHtmlPolyfillSupport;
2146
- zt == null || zt(nt, lt), (tt.litHtmlVersions ?? (tt.litHtmlVersions = [])).push("3.1.2");
2147
- const Ds = (r, t, e) => {
2148
- const i = (e == null ? void 0 : e.renderBefore) ?? t;
2149
- let s = i._$litPart$;
2150
- if (s === void 0) {
2151
- const n = (e == null ? void 0 : e.renderBefore) ?? null;
2152
- i._$litPart$ = s = new lt(t.insertBefore(it(), n), n, void 0, e ?? {});
2153
- }
2154
- return s._$AI(r), s;
2155
- };
2156
- /**
2157
- * @license
2158
- * Copyright 2017 Google LLC
2159
- * SPDX-License-Identifier: BSD-3-Clause
2160
- */
2161
- let E = class extends z {
2162
- constructor() {
2163
- super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
2164
- }
2165
- createRenderRoot() {
2166
- var e;
2167
- const t = super.createRenderRoot();
2168
- return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
2169
- }
2170
- update(t) {
2171
- const e = this.render();
2172
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Ds(e, this.renderRoot, this.renderOptions);
2173
- }
2174
- connectedCallback() {
2175
- var t;
2176
- super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
2177
- }
2178
- disconnectedCallback() {
2179
- var t;
2180
- super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
2181
- }
2182
- render() {
2183
- return H;
2184
- }
2185
- };
2186
- var nr;
2187
- E._$litElement$ = !0, E.finalized = !0, (nr = globalThis.litElementHydrateSupport) == null || nr.call(globalThis, { LitElement: E });
2188
- const Bt = globalThis.litElementPolyfillSupport;
2189
- Bt == null || Bt({ LitElement: E });
2190
- (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
2191
- /**
2192
- * @license
2193
- * Copyright 2017 Google LLC
2194
- * SPDX-License-Identifier: BSD-3-Clause
2195
- */
2196
- const Y = (r) => (t, e) => {
2197
- e !== void 0 ? e.addInitializer(() => {
2198
- customElements.define(r, t);
2199
- }) : customElements.define(r, t);
2200
- };
2201
- /**
2202
- * @license
2203
- * Copyright 2017 Google LLC
2204
- * SPDX-License-Identifier: BSD-3-Clause
2205
- */
2206
- const zs = { attribute: !0, type: String, converter: At, reflect: !1, hasChanged: pe }, Bs = (r = zs, t, e) => {
2207
- const { kind: i, metadata: s } = e;
2208
- let n = globalThis.litPropertyMetadata.get(s);
2209
- if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), n.set(e.name, r), i === "accessor") {
2210
- const { name: o } = e;
2211
- return { set(a) {
2212
- const c = t.get.call(this);
2213
- t.set.call(this, a), this.requestUpdate(o, c, r);
2214
- }, init(a) {
2215
- return a !== void 0 && this.P(o, void 0, r), a;
2216
- } };
2217
- }
2218
- if (i === "setter") {
2219
- const { name: o } = e;
2220
- return function(a) {
2221
- const c = this[o];
2222
- t.call(this, a), this.requestUpdate(o, c, r);
2223
- };
2224
- }
2225
- throw Error("Unsupported decorator location: " + i);
2226
- };
2227
- function w(r) {
2228
- return (t, e) => typeof e == "object" ? Bs(r, t, e) : ((i, s, n) => {
2229
- const o = s.hasOwnProperty(n);
2230
- return s.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(s, n) : void 0;
2231
- })(r, t, e);
2232
- }
2233
- /**
2234
- * @license
2235
- * Copyright 2017 Google LLC
2236
- * SPDX-License-Identifier: BSD-3-Clause
2237
- */
2238
- function fe(r) {
2239
- return w({ ...r, state: !0, attribute: !1 });
2240
- }
2241
- /**
2242
- * @license
2243
- * Copyright 2017 Google LLC
2244
- * SPDX-License-Identifier: BSD-3-Clause
2245
- */
2246
- const Je = (r, t, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(r, t, e), e);
2247
- /**
2248
- * @license
2249
- * Copyright 2017 Google LLC
2250
- * SPDX-License-Identifier: BSD-3-Clause
2251
- */
2252
- function Fs(r, t) {
2253
- return (e, i, s) => {
2254
- const n = (o) => {
2255
- var a;
2256
- return ((a = o.renderRoot) == null ? void 0 : a.querySelector(r)) ?? null;
2257
- };
2258
- if (t) {
2259
- const { get: o, set: a } = typeof i == "object" ? e : s ?? (() => {
2260
- const c = Symbol();
2261
- return { get() {
2262
- return this[c];
2263
- }, set(l) {
2264
- this[c] = l;
2265
- } };
2266
- })();
2267
- return Je(e, i, { get() {
2268
- let c = o.call(this);
2269
- return c === void 0 && (c = n(this), (c !== null || this.hasUpdated) && a.call(this, c)), c;
2270
- } });
2271
- }
2272
- return Je(e, i, { get() {
2273
- return n(this);
2274
- } });
2275
- };
2276
- }
2277
- const Pt = {
2278
- header: "header-region",
2279
- actionsToolbar: "actions-toolbar-region",
2280
- main: "main-region",
2281
- sidebar: "asidebar-region",
2282
- footer: "footer-region"
2283
- };
2284
- function v(r, t, e, i) {
2285
- var s = arguments.length, n = s < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, e) : i, o;
2286
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
2287
- n = Reflect.decorate(r, t, e, i);
2288
- else
2289
- for (var a = r.length - 1; a >= 0; a--)
2290
- (o = r[a]) && (n = (s < 3 ? o(n) : s > 3 ? o(t, e, n) : o(t, e)) || n);
2291
- return s > 3 && n && Object.defineProperty(t, e, n), n;
2292
- }
2293
- /**
2294
- * @license
2295
- * Copyright 2022 Google LLC
2296
- * SPDX-License-Identifier: Apache-2.0
2297
- */
2298
- class qs extends E {
2299
- render() {
2300
- return A`<slot></slot>`;
2301
- }
2302
- connectedCallback() {
2303
- if (super.connectedCallback(), this.getAttribute("aria-hidden") === "false") {
2304
- this.removeAttribute("aria-hidden");
2305
- return;
2306
- }
2307
- this.setAttribute("aria-hidden", "true");
2308
- }
2309
- }
2310
- /**
2311
- * @license
2312
- * Copyright 2024 Google LLC
2313
- * SPDX-License-Identifier: Apache-2.0
2314
- */
2315
- const Ws = L`:host{font-size:var(--md-icon-size, 24px);width:var(--md-icon-size, 24px);height:var(--md-icon-size, 24px);color:inherit;font-variation-settings:inherit;font-weight:400;font-family:var(--md-icon-font, Material Symbols Outlined);display:inline-flex;font-style:normal;place-items:center;place-content:center;line-height:1;overflow:hidden;letter-spacing:normal;text-transform:none;user-select:none;white-space:nowrap;word-wrap:normal;flex-shrink:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}::slotted(svg){fill:currentColor}::slotted(*){height:100%;width:100%}
2316
- `;
2317
- /**
2318
- * @license
2319
- * Copyright 2022 Google LLC
2320
- * SPDX-License-Identifier: Apache-2.0
2321
- */
2322
- let Zt = class extends qs {
2323
- };
2324
- Zt.styles = [Ws];
2325
- Zt = v([
2326
- Y("md-icon")
2327
- ], Zt);
2328
- /**
2329
- * @license
2330
- * Copyright 2023 Google LLC
2331
- * SPDX-License-Identifier: Apache-2.0
2332
- */
2333
- const Tr = Symbol("attachableController");
2334
- let mt;
2335
- mt = new MutationObserver((r) => {
2336
- var t;
2337
- for (const e of r)
2338
- (t = e.target[Tr]) == null || t.hostConnected();
2339
- });
2340
- class Or {
2341
- get htmlFor() {
2342
- return this.host.getAttribute("for");
2343
- }
2344
- set htmlFor(t) {
2345
- t === null ? this.host.removeAttribute("for") : this.host.setAttribute("for", t);
2346
- }
2347
- get control() {
2348
- return this.host.hasAttribute("for") ? !this.htmlFor || !this.host.isConnected ? null : this.host.getRootNode().querySelector(`#${this.htmlFor}`) : this.currentControl || this.host.parentElement;
2349
- }
2350
- set control(t) {
2351
- t ? this.attach(t) : this.detach();
2352
- }
2353
- /**
2354
- * Creates a new controller for an `Attachable` element.
2355
- *
2356
- * @param host The `Attachable` element.
2357
- * @param onControlChange A callback with two parameters for the previous and
2358
- * next control. An `Attachable` element may perform setup or teardown
2359
- * logic whenever the control changes.
2360
- */
2361
- constructor(t, e) {
2362
- this.host = t, this.onControlChange = e, this.currentControl = null, t.addController(this), t[Tr] = this, mt == null || mt.observe(t, { attributeFilter: ["for"] });
2363
- }
2364
- attach(t) {
2365
- t !== this.currentControl && (this.setCurrentControl(t), this.host.removeAttribute("for"));
2366
- }
2367
- detach() {
2368
- this.setCurrentControl(null), this.host.setAttribute("for", "");
2369
- }
2370
- /** @private */
2371
- hostConnected() {
2372
- this.setCurrentControl(this.control);
2373
- }
2374
- /** @private */
2375
- hostDisconnected() {
2376
- this.setCurrentControl(null);
2377
- }
2378
- setCurrentControl(t) {
2379
- this.onControlChange(this.currentControl, t), this.currentControl = t;
2380
- }
2381
- }
2382
- /**
2383
- * @license
2384
- * Copyright 2021 Google LLC
2385
- * SPDX-License-Identifier: Apache-2.0
2386
- */
2387
- const Gs = ["focusin", "focusout", "pointerdown"];
2388
- class ge extends E {
2389
- constructor() {
2390
- super(...arguments), this.visible = !1, this.inward = !1, this.attachableController = new Or(this, this.onControlChange.bind(this));
2391
- }
2392
- get htmlFor() {
2393
- return this.attachableController.htmlFor;
2394
- }
2395
- set htmlFor(t) {
2396
- this.attachableController.htmlFor = t;
2397
- }
2398
- get control() {
2399
- return this.attachableController.control;
2400
- }
2401
- set control(t) {
2402
- this.attachableController.control = t;
2403
- }
2404
- attach(t) {
2405
- this.attachableController.attach(t);
2406
- }
2407
- detach() {
2408
- this.attachableController.detach();
2409
- }
2410
- connectedCallback() {
2411
- super.connectedCallback(), this.setAttribute("aria-hidden", "true");
2412
- }
2413
- /** @private */
2414
- handleEvent(t) {
2415
- var e;
2416
- if (!t[tr]) {
2417
- switch (t.type) {
2418
- default:
2419
- return;
2420
- case "focusin":
2421
- this.visible = ((e = this.control) == null ? void 0 : e.matches(":focus-visible")) ?? !1;
2422
- break;
2423
- case "focusout":
2424
- case "pointerdown":
2425
- this.visible = !1;
2426
- break;
2427
- }
2428
- t[tr] = !0;
2429
- }
2430
- }
2431
- onControlChange(t, e) {
2432
- for (const i of Gs)
2433
- t == null || t.removeEventListener(i, this), e == null || e.addEventListener(i, this);
2434
- }
2435
- update(t) {
2436
- t.has("visible") && this.dispatchEvent(new Event("visibility-changed")), super.update(t);
2437
- }
2438
- }
2439
- v([
2440
- w({ type: Boolean, reflect: !0 })
2441
- ], ge.prototype, "visible", void 0);
2442
- v([
2443
- w({ type: Boolean, reflect: !0 })
2444
- ], ge.prototype, "inward", void 0);
2445
- const tr = Symbol("handledByFocusRing");
2446
- /**
2447
- * @license
2448
- * Copyright 2024 Google LLC
2449
- * SPDX-License-Identifier: Apache-2.0
2450
- */
2451
- const Ks = L`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}
2452
- `;
2453
- /**
2454
- * @license
2455
- * Copyright 2021 Google LLC
2456
- * SPDX-License-Identifier: Apache-2.0
2457
- */
2458
- let Qt = class extends ge {
2459
- };
2460
- Qt.styles = [Ks];
2461
- Qt = v([
2462
- Y("md-focus-ring")
2463
- ], Qt);
2464
- /**
2465
- * @license
2466
- * Copyright 2017 Google LLC
2467
- * SPDX-License-Identifier: BSD-3-Clause
2468
- */
2469
- const Ys = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Xs = (r) => (...t) => ({ _$litDirective$: r, values: t });
2470
- class Zs {
2471
- constructor(t) {
2472
- }
2473
- get _$AU() {
2474
- return this._$AM._$AU;
2475
- }
2476
- _$AT(t, e, i) {
2477
- this._$Ct = t, this._$AM = e, this._$Ci = i;
2478
- }
2479
- _$AS(t, e) {
2480
- return this.update(t, e);
2481
- }
2482
- update(t, e) {
2483
- return this.render(...e);
2484
- }
2485
- }
2486
- /**
2487
- * @license
2488
- * Copyright 2018 Google LLC
2489
- * SPDX-License-Identifier: BSD-3-Clause
2490
- */
2491
- const Ir = Xs(class extends Zs {
2492
- constructor(r) {
2493
- var t;
2494
- if (super(r), r.type !== Ys.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2)
2495
- throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
2496
- }
2497
- render(r) {
2498
- return " " + Object.keys(r).filter((t) => r[t]).join(" ") + " ";
2499
- }
2500
- update(r, [t]) {
2501
- var i, s;
2502
- if (this.st === void 0) {
2503
- this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter((n) => n !== "")));
2504
- for (const n in t)
2505
- t[n] && !((i = this.nt) != null && i.has(n)) && this.st.add(n);
2506
- return this.render(t);
2507
- }
2508
- const e = r.element.classList;
2509
- for (const n of this.st)
2510
- n in t || (e.remove(n), this.st.delete(n));
2511
- for (const n in t) {
2512
- const o = !!t[n];
2513
- o === this.st.has(n) || (s = this.nt) != null && s.has(n) || (o ? (e.add(n), this.st.add(n)) : (e.remove(n), this.st.delete(n)));
2514
- }
2515
- return H;
2516
- }
2517
- });
2518
- /**
2519
- * @license
2520
- * Copyright 2021 Google LLC
2521
- * SPDX-License-Identifier: Apache-2.0
2522
- */
2523
- const Qs = {
2524
- STANDARD: "cubic-bezier(0.2, 0, 0, 1)",
2525
- STANDARD_ACCELERATE: "cubic-bezier(.3,0,1,1)",
2526
- STANDARD_DECELERATE: "cubic-bezier(0,0,0,1)",
2527
- EMPHASIZED: "cubic-bezier(.3,0,0,1)",
2528
- EMPHASIZED_ACCELERATE: "cubic-bezier(.3,0,.8,.15)",
2529
- EMPHASIZED_DECELERATE: "cubic-bezier(.05,.7,.1,1)"
2530
- };
2531
- /**
2532
- * @license
2533
- * Copyright 2022 Google LLC
2534
- * SPDX-License-Identifier: Apache-2.0
2535
- */
2536
- const Js = 450, er = 225, tn = 0.2, en = 10, rn = 75, sn = 0.35, nn = "::after", on = "forwards";
2537
- var _;
2538
- (function(r) {
2539
- r[r.INACTIVE = 0] = "INACTIVE", r[r.TOUCH_DELAY = 1] = "TOUCH_DELAY", r[r.HOLDING = 2] = "HOLDING", r[r.WAITING_FOR_CLICK = 3] = "WAITING_FOR_CLICK";
2540
- })(_ || (_ = {}));
2541
- const an = [
2542
- "click",
2543
- "contextmenu",
2544
- "pointercancel",
2545
- "pointerdown",
2546
- "pointerenter",
2547
- "pointerleave",
2548
- "pointerup"
2549
- ], cn = 150, Ft = window.matchMedia("(forced-colors: active)");
2550
- class ht extends E {
2551
- constructor() {
2552
- super(...arguments), this.disabled = !1, this.hovered = !1, this.pressed = !1, this.rippleSize = "", this.rippleScale = "", this.initialSize = 0, this.state = _.INACTIVE, this.checkBoundsAfterContextMenu = !1, this.attachableController = new Or(this, this.onControlChange.bind(this));
2553
- }
2554
- get htmlFor() {
2555
- return this.attachableController.htmlFor;
2556
- }
2557
- set htmlFor(t) {
2558
- this.attachableController.htmlFor = t;
2559
- }
2560
- get control() {
2561
- return this.attachableController.control;
2562
- }
2563
- set control(t) {
2564
- this.attachableController.control = t;
2565
- }
2566
- attach(t) {
2567
- this.attachableController.attach(t);
2568
- }
2569
- detach() {
2570
- this.attachableController.detach();
2571
- }
2572
- connectedCallback() {
2573
- super.connectedCallback(), this.setAttribute("aria-hidden", "true");
2574
- }
2575
- render() {
2576
- const t = {
2577
- hovered: this.hovered,
2578
- pressed: this.pressed
2579
- };
2580
- return A`<div class="surface ${Ir(t)}"></div>`;
2581
- }
2582
- update(t) {
2583
- t.has("disabled") && this.disabled && (this.hovered = !1, this.pressed = !1), super.update(t);
2584
- }
2585
- /**
2586
- * TODO(b/269799771): make private
2587
- * @private only public for slider
2588
- */
2589
- handlePointerenter(t) {
2590
- this.shouldReactToEvent(t) && (this.hovered = !0);
2591
- }
2592
- /**
2593
- * TODO(b/269799771): make private
2594
- * @private only public for slider
2595
- */
2596
- handlePointerleave(t) {
2597
- this.shouldReactToEvent(t) && (this.hovered = !1, this.state !== _.INACTIVE && this.endPressAnimation());
2598
- }
2599
- handlePointerup(t) {
2600
- if (this.shouldReactToEvent(t)) {
2601
- if (this.state === _.HOLDING) {
2602
- this.state = _.WAITING_FOR_CLICK;
2603
- return;
2604
- }
2605
- if (this.state === _.TOUCH_DELAY) {
2606
- this.state = _.WAITING_FOR_CLICK, this.startPressAnimation(this.rippleStartEvent);
2607
- return;
2608
- }
2609
- }
2610
- }
2611
- async handlePointerdown(t) {
2612
- if (this.shouldReactToEvent(t)) {
2613
- if (this.rippleStartEvent = t, !this.isTouch(t)) {
2614
- this.state = _.WAITING_FOR_CLICK, this.startPressAnimation(t);
2615
- return;
2616
- }
2617
- this.checkBoundsAfterContextMenu && !this.inBounds(t) || (this.checkBoundsAfterContextMenu = !1, this.state = _.TOUCH_DELAY, await new Promise((e) => {
2618
- setTimeout(e, cn);
2619
- }), this.state === _.TOUCH_DELAY && (this.state = _.HOLDING, this.startPressAnimation(t)));
2620
- }
2621
- }
2622
- handleClick() {
2623
- if (!this.disabled) {
2624
- if (this.state === _.WAITING_FOR_CLICK) {
2625
- this.endPressAnimation();
2626
- return;
2627
- }
2628
- this.state === _.INACTIVE && (this.startPressAnimation(), this.endPressAnimation());
2629
- }
2630
- }
2631
- handlePointercancel(t) {
2632
- this.shouldReactToEvent(t) && this.endPressAnimation();
2633
- }
2634
- handleContextmenu() {
2635
- this.disabled || (this.checkBoundsAfterContextMenu = !0, this.endPressAnimation());
2636
- }
2637
- determineRippleSize() {
2638
- const { height: t, width: e } = this.getBoundingClientRect(), i = Math.max(t, e), s = Math.max(sn * i, rn), n = Math.floor(i * tn), a = Math.sqrt(e ** 2 + t ** 2) + en;
2639
- this.initialSize = n, this.rippleScale = `${(a + s) / n}`, this.rippleSize = `${n}px`;
2640
- }
2641
- getNormalizedPointerEventCoords(t) {
2642
- const { scrollX: e, scrollY: i } = window, { left: s, top: n } = this.getBoundingClientRect(), o = e + s, a = i + n, { pageX: c, pageY: l } = t;
2643
- return { x: c - o, y: l - a };
2644
- }
2645
- getTranslationCoordinates(t) {
2646
- const { height: e, width: i } = this.getBoundingClientRect(), s = {
2647
- x: (i - this.initialSize) / 2,
2648
- y: (e - this.initialSize) / 2
2649
- };
2650
- let n;
2651
- return t instanceof PointerEvent ? n = this.getNormalizedPointerEventCoords(t) : n = {
2652
- x: i / 2,
2653
- y: e / 2
2654
- }, n = {
2655
- x: n.x - this.initialSize / 2,
2656
- y: n.y - this.initialSize / 2
2657
- }, { startPoint: n, endPoint: s };
2658
- }
2659
- startPressAnimation(t) {
2660
- var o;
2661
- if (!this.mdRoot)
2662
- return;
2663
- this.pressed = !0, (o = this.growAnimation) == null || o.cancel(), this.determineRippleSize();
2664
- const { startPoint: e, endPoint: i } = this.getTranslationCoordinates(t), s = `${e.x}px, ${e.y}px`, n = `${i.x}px, ${i.y}px`;
2665
- this.growAnimation = this.mdRoot.animate({
2666
- top: [0, 0],
2667
- left: [0, 0],
2668
- height: [this.rippleSize, this.rippleSize],
2669
- width: [this.rippleSize, this.rippleSize],
2670
- transform: [
2671
- `translate(${s}) scale(1)`,
2672
- `translate(${n}) scale(${this.rippleScale})`
2673
- ]
2674
- }, {
2675
- pseudoElement: nn,
2676
- duration: Js,
2677
- easing: Qs.STANDARD,
2678
- fill: on
2679
- });
2680
- }
2681
- async endPressAnimation() {
2682
- this.rippleStartEvent = void 0, this.state = _.INACTIVE;
2683
- const t = this.growAnimation;
2684
- let e = 1 / 0;
2685
- if (typeof (t == null ? void 0 : t.currentTime) == "number" ? e = t.currentTime : t != null && t.currentTime && (e = t.currentTime.to("ms").value), e >= er) {
2686
- this.pressed = !1;
2687
- return;
2688
- }
2689
- await new Promise((i) => {
2690
- setTimeout(i, er - e);
2691
- }), this.growAnimation === t && (this.pressed = !1);
2692
- }
2693
- /**
2694
- * Returns `true` if
2695
- * - the ripple element is enabled
2696
- * - the pointer is primary for the input type
2697
- * - the pointer is the pointer that started the interaction, or will start
2698
- * the interaction
2699
- * - the pointer is a touch, or the pointer state has the primary button
2700
- * held, or the pointer is hovering
2701
- */
2702
- shouldReactToEvent(t) {
2703
- if (this.disabled || !t.isPrimary || this.rippleStartEvent && this.rippleStartEvent.pointerId !== t.pointerId)
2704
- return !1;
2705
- if (t.type === "pointerenter" || t.type === "pointerleave")
2706
- return !this.isTouch(t);
2707
- const e = t.buttons === 1;
2708
- return this.isTouch(t) || e;
2709
- }
2710
- /**
2711
- * Check if the event is within the bounds of the element.
2712
- *
2713
- * This is only needed for the "stuck" contextmenu longpress on Chrome.
2714
- */
2715
- inBounds({ x: t, y: e }) {
2716
- const { top: i, left: s, bottom: n, right: o } = this.getBoundingClientRect();
2717
- return t >= s && t <= o && e >= i && e <= n;
2718
- }
2719
- isTouch({ pointerType: t }) {
2720
- return t === "touch";
2721
- }
2722
- /** @private */
2723
- async handleEvent(t) {
2724
- if (!(Ft != null && Ft.matches))
2725
- switch (t.type) {
2726
- case "click":
2727
- this.handleClick();
2728
- break;
2729
- case "contextmenu":
2730
- this.handleContextmenu();
2731
- break;
2732
- case "pointercancel":
2733
- this.handlePointercancel(t);
2734
- break;
2735
- case "pointerdown":
2736
- await this.handlePointerdown(t);
2737
- break;
2738
- case "pointerenter":
2739
- this.handlePointerenter(t);
2740
- break;
2741
- case "pointerleave":
2742
- this.handlePointerleave(t);
2743
- break;
2744
- case "pointerup":
2745
- this.handlePointerup(t);
2746
- break;
2747
- }
2748
- }
2749
- onControlChange(t, e) {
2750
- for (const i of an)
2751
- t == null || t.removeEventListener(i, this), e == null || e.addEventListener(i, this);
2752
- }
2753
- }
2754
- v([
2755
- w({ type: Boolean, reflect: !0 })
2756
- ], ht.prototype, "disabled", void 0);
2757
- v([
2758
- fe()
2759
- ], ht.prototype, "hovered", void 0);
2760
- v([
2761
- fe()
2762
- ], ht.prototype, "pressed", void 0);
2763
- v([
2764
- Fs(".surface")
2765
- ], ht.prototype, "mdRoot", void 0);
2766
- /**
2767
- * @license
2768
- * Copyright 2024 Google LLC
2769
- * SPDX-License-Identifier: Apache-2.0
2770
- */
2771
- const ln = L`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms}
2772
- `;
2773
- /**
2774
- * @license
2775
- * Copyright 2022 Google LLC
2776
- * SPDX-License-Identifier: Apache-2.0
2777
- */
2778
- let Jt = class extends ht {
2779
- };
2780
- Jt.styles = [ln];
2781
- Jt = v([
2782
- Y("md-ripple")
2783
- ], Jt);
2784
- /**
2785
- * @license
2786
- * Copyright 2020 Google LLC
2787
- * SPDX-License-Identifier: BSD-3-Clause
2788
- */
2789
- const Nr = Symbol.for(""), hn = (r) => {
2790
- if ((r == null ? void 0 : r.r) === Nr)
2791
- return r == null ? void 0 : r._$litStatic$;
2792
- }, rr = (r, ...t) => ({ _$litStatic$: t.reduce((e, i, s) => e + ((n) => {
2793
- if (n._$litStatic$ !== void 0)
2794
- return n._$litStatic$;
2795
- throw Error(`Value passed to 'literal' function must be a 'literal' result: ${n}. Use 'unsafeStatic' to pass non-literal values, but
2796
- take care to ensure page security.`);
2797
- })(i) + r[s + 1], r[0]), r: Nr }), ir = /* @__PURE__ */ new Map(), un = (r) => (t, ...e) => {
2798
- const i = e.length;
2799
- let s, n;
2800
- const o = [], a = [];
2801
- let c, l = 0, u = !1;
2802
- for (; l < i; ) {
2803
- for (c = t[l]; l < i && (n = e[l], (s = hn(n)) !== void 0); )
2804
- c += s + t[++l], u = !0;
2805
- l !== i && a.push(n), o.push(c), l++;
2806
- }
2807
- if (l === i && o.push(t[i]), u) {
2808
- const h = o.join("$$lit$$");
2809
- (t = ir.get(h)) === void 0 && (o.raw = o, ir.set(h, t = o)), e = a;
2810
- }
2811
- return r(t, ...e);
2812
- }, dn = un(A);
2813
- /**
2814
- * @license
2815
- * Copyright 2023 Google LLC
2816
- * SPDX-License-Identifier: Apache-2.0
2817
- */
2818
- const kr = [
2819
- "ariaAtomic",
2820
- "ariaAutoComplete",
2821
- "ariaBusy",
2822
- "ariaChecked",
2823
- "ariaColCount",
2824
- "ariaColIndex",
2825
- "ariaColSpan",
2826
- "ariaCurrent",
2827
- "ariaDisabled",
2828
- "ariaExpanded",
2829
- "ariaHasPopup",
2830
- "ariaHidden",
2831
- "ariaInvalid",
2832
- "ariaKeyShortcuts",
2833
- "ariaLabel",
2834
- "ariaLevel",
2835
- "ariaLive",
2836
- "ariaModal",
2837
- "ariaMultiLine",
2838
- "ariaMultiSelectable",
2839
- "ariaOrientation",
2840
- "ariaPlaceholder",
2841
- "ariaPosInSet",
2842
- "ariaPressed",
2843
- "ariaReadOnly",
2844
- "ariaRequired",
2845
- "ariaRoleDescription",
2846
- "ariaRowCount",
2847
- "ariaRowIndex",
2848
- "ariaRowSpan",
2849
- "ariaSelected",
2850
- "ariaSetSize",
2851
- "ariaSort",
2852
- "ariaValueMax",
2853
- "ariaValueMin",
2854
- "ariaValueNow",
2855
- "ariaValueText"
2856
- ];
2857
- kr.map(Mr);
2858
- function Mr(r) {
2859
- return r.replace("aria", "aria-").replace(/Elements?/g, "").toLowerCase();
2860
- }
2861
- /**
2862
- * @license
2863
- * Copyright 2023 Google LLC
2864
- * SPDX-License-Identifier: Apache-2.0
2865
- */
2866
- function pn(r) {
2867
- for (const t of kr)
2868
- r.createProperty(t, {
2869
- attribute: Mr(t),
2870
- reflect: !0
2871
- });
2872
- r.addInitializer((t) => {
2873
- const e = {
2874
- hostConnected() {
2875
- t.setAttribute("role", "presentation");
2876
- }
2877
- };
2878
- t.addController(e);
2879
- });
2880
- }
2881
- /**
2882
- * @license
2883
- * Copyright 2023 Google LLC
2884
- * SPDX-License-Identifier: Apache-2.0
2885
- */
2886
- const St = Symbol("internals"), qt = Symbol("privateInternals");
2887
- function fn(r) {
2888
- class t extends r {
2889
- get [St]() {
2890
- return this[qt] || (this[qt] = this.attachInternals()), this[qt];
2891
- }
2892
- }
2893
- return t;
2894
- }
2895
- /**
2896
- * @license
2897
- * Copyright 2023 Google LLC
2898
- * SPDX-License-Identifier: Apache-2.0
2899
- */
2900
- function gn(r) {
2901
- r.addInitializer((t) => {
2902
- const e = t;
2903
- e.addEventListener("click", async (i) => {
2904
- const { type: s, [St]: n } = e, { form: o } = n;
2905
- if (!(!o || s === "button") && (await new Promise((a) => {
2906
- setTimeout(a);
2907
- }), !i.defaultPrevented)) {
2908
- if (s === "reset") {
2909
- o.reset();
2910
- return;
2911
- }
2912
- o.addEventListener("submit", (a) => {
2913
- Object.defineProperty(a, "submitter", {
2914
- configurable: !0,
2915
- enumerable: !0,
2916
- get: () => e
2917
- });
2918
- }, { capture: !0, once: !0 }), n.setFormValue(e.value), o.requestSubmit();
2919
- }
2920
- });
2921
- });
2922
- }
2923
- /**
2924
- * @license
2925
- * Copyright 2022 Google LLC
2926
- * SPDX-License-Identifier: Apache-2.0
2927
- */
2928
- function sr(r, t = !0) {
2929
- return t && getComputedStyle(r).getPropertyValue("direction").trim() === "rtl";
2930
- }
2931
- /**
2932
- * @license
2933
- * Copyright 2018 Google LLC
2934
- * SPDX-License-Identifier: Apache-2.0
2935
- */
2936
- const vn = fn(E);
2937
- class b extends vn {
2938
- constructor() {
2939
- super(...arguments), this.disabled = !1, this.flipIconInRtl = !1, this.href = "", this.target = "", this.ariaLabelSelected = "", this.toggle = !1, this.selected = !1, this.type = "submit", this.value = "", this.flipIcon = sr(this, this.flipIconInRtl);
2940
- }
2941
- get name() {
2942
- return this.getAttribute("name") ?? "";
2943
- }
2944
- set name(t) {
2945
- this.setAttribute("name", t);
2946
- }
2947
- /**
2948
- * The associated form element with which this element's value will submit.
2949
- */
2950
- get form() {
2951
- return this[St].form;
2952
- }
2953
- /**
2954
- * The labels this element is associated with.
2955
- */
2956
- get labels() {
2957
- return this[St].labels;
2958
- }
2959
- /**
2960
- * Link buttons cannot be disabled.
2961
- */
2962
- willUpdate() {
2963
- this.href && (this.disabled = !1);
2964
- }
2965
- render() {
2966
- const t = this.href ? rr`div` : rr`button`, { ariaLabel: e, ariaHasPopup: i, ariaExpanded: s } = this, n = e && this.ariaLabelSelected, o = this.toggle ? this.selected : d;
2967
- let a = d;
2968
- return this.href || (a = n && this.selected ? this.ariaLabelSelected : e), dn`<${t}
2969
- class="icon-button ${Ir(this.getRenderClasses())}"
2970
- id="button"
2971
- aria-label="${a || d}"
2972
- aria-haspopup="${!this.href && i || d}"
2973
- aria-expanded="${!this.href && s || d}"
2974
- aria-pressed="${o}"
2975
- ?disabled="${!this.href && this.disabled}"
2976
- @click="${this.handleClick}">
2977
- ${this.renderFocusRing()}
2978
- ${this.renderRipple()}
2979
- ${this.selected ? d : this.renderIcon()}
2980
- ${this.selected ? this.renderSelectedIcon() : d}
2981
- ${this.renderTouchTarget()}
2982
- ${this.href && this.renderLink()}
2983
- </${t}>`;
2984
- }
2985
- renderLink() {
2986
- const { ariaLabel: t } = this;
2987
- return A`
2988
- <a
2989
- class="link"
2990
- id="link"
2991
- href="${this.href}"
2992
- target="${this.target || d}"
2993
- aria-label="${t || d}"></a>
2994
- `;
2995
- }
2996
- getRenderClasses() {
2997
- return {
2998
- "flip-icon": this.flipIcon,
2999
- selected: this.toggle && this.selected
3000
- };
3001
- }
3002
- renderIcon() {
3003
- return A`<span class="icon"><slot></slot></span>`;
3004
- }
3005
- renderSelectedIcon() {
3006
- return A`<span class="icon icon--selected"
3007
- ><slot name="selected"><slot></slot></slot
3008
- ></span>`;
3009
- }
3010
- renderTouchTarget() {
3011
- return A`<span class="touch"></span>`;
3012
- }
3013
- renderFocusRing() {
3014
- return A`<md-focus-ring
3015
- part="focus-ring"
3016
- for=${this.href ? "link" : "button"}></md-focus-ring>`;
3017
- }
3018
- renderRipple() {
3019
- return A`<md-ripple
3020
- for=${this.href ? "link" : d}
3021
- ?disabled="${!this.href && this.disabled}"></md-ripple>`;
3022
- }
3023
- connectedCallback() {
3024
- this.flipIcon = sr(this, this.flipIconInRtl), super.connectedCallback();
3025
- }
3026
- async handleClick(t) {
3027
- await 0, !(!this.toggle || this.disabled || t.defaultPrevented) && (this.selected = !this.selected, this.dispatchEvent(new InputEvent("input", { bubbles: !0, composed: !0 })), this.dispatchEvent(new Event("change", { bubbles: !0 })));
3028
- }
3029
- }
3030
- pn(b), gn(b);
3031
- b.formAssociated = !0;
3032
- b.shadowRootOptions = {
3033
- mode: "open",
3034
- delegatesFocus: !0
3035
- };
3036
- v([
3037
- w({ type: Boolean, reflect: !0 })
3038
- ], b.prototype, "disabled", void 0);
3039
- v([
3040
- w({ type: Boolean, attribute: "flip-icon-in-rtl" })
3041
- ], b.prototype, "flipIconInRtl", void 0);
3042
- v([
3043
- w()
3044
- ], b.prototype, "href", void 0);
3045
- v([
3046
- w()
3047
- ], b.prototype, "target", void 0);
3048
- v([
3049
- w({ attribute: "aria-label-selected" })
3050
- ], b.prototype, "ariaLabelSelected", void 0);
3051
- v([
3052
- w({ type: Boolean })
3053
- ], b.prototype, "toggle", void 0);
3054
- v([
3055
- w({ type: Boolean, reflect: !0 })
3056
- ], b.prototype, "selected", void 0);
3057
- v([
3058
- w()
3059
- ], b.prototype, "type", void 0);
3060
- v([
3061
- w({ reflect: !0 })
3062
- ], b.prototype, "value", void 0);
3063
- v([
3064
- fe()
3065
- ], b.prototype, "flipIcon", void 0);
3066
- /**
3067
- * @license
3068
- * Copyright 2024 Google LLC
3069
- * SPDX-License-Identifier: Apache-2.0
3070
- */
3071
- const mn = L`:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);height:var(--_container-height);width:var(--_container-width);justify-content:center}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) max(0px,(48px - var(--_container-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}:host([disabled]){pointer-events:none}.icon-button{place-items:center;background:none;border:none;box-sizing:border-box;cursor:pointer;display:flex;place-content:center;outline:none;padding:0;position:relative;text-decoration:none;user-select:none;z-index:0;flex:1;border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.icon ::slotted(*){font-size:var(--_icon-size);height:var(--_icon-size);width:var(--_icon-size);font-weight:inherit}md-ripple{z-index:-1;border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.flip-icon .icon{transform:scaleX(-1)}.icon{display:inline-flex}.link{height:100%;outline:none;position:absolute;width:100%}.touch{position:absolute;height:max(48px,100%);width:max(48px,100%)}:host([touch-target=none]) .touch{display:none}@media(forced-colors: active){:host([disabled]){--_disabled-icon-opacity: 1}}
3072
- `;
3073
- /**
3074
- * @license
3075
- * Copyright 2024 Google LLC
3076
- * SPDX-License-Identifier: Apache-2.0
3077
- */
3078
- const yn = L`:host{--_disabled-icon-color: var(--md-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-icon-button-disabled-icon-opacity, 0.38);--_icon-size: var(--md-icon-button-icon-size, 24px);--_selected-focus-icon-color: var(--md-icon-button-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-icon-color: var(--md-icon-button-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-color: var(--md-icon-button-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-opacity: var(--md-icon-button-selected-hover-state-layer-opacity, 0.08);--_selected-icon-color: var(--md-icon-button-selected-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-icon-color: var(--md-icon-button-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-color: var(--md-icon-button-selected-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-opacity: var(--md-icon-button-selected-pressed-state-layer-opacity, 0.12);--_state-layer-height: var(--md-icon-button-state-layer-height, 40px);--_state-layer-shape: var(--md-icon-button-state-layer-shape, var(--md-sys-shape-corner-full, 9999px));--_state-layer-width: var(--md-icon-button-state-layer-width, 40px);--_focus-icon-color: var(--md-icon-button-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-icon-color: var(--md-icon-button-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-icon-button-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--md-icon-button-pressed-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-icon-button-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-icon-button-pressed-state-layer-opacity, 0.12);--_container-shape-start-start: 0;--_container-shape-start-end: 0;--_container-shape-end-end: 0;--_container-shape-end-start: 0;--_container-height: 0;--_container-width: 0;height:var(--_state-layer-height);width:var(--_state-layer-width)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_state-layer-height))/2) max(0px,(48px - var(--_state-layer-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_state-layer-shape);--md-focus-ring-shape-start-end: var(--_state-layer-shape);--md-focus-ring-shape-end-end: var(--_state-layer-shape);--md-focus-ring-shape-end-start: var(--_state-layer-shape)}.standard{background-color:rgba(0,0,0,0);color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.standard:hover{color:var(--_hover-icon-color)}.standard:focus{color:var(--_focus-icon-color)}.standard:active{color:var(--_pressed-icon-color)}.standard:disabled{color:var(--_disabled-icon-color)}md-ripple{border-radius:var(--_state-layer-shape)}.standard:disabled .icon{opacity:var(--_disabled-icon-opacity)}.selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_selected-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_selected-pressed-state-layer-opacity)}.selected:not(:disabled){color:var(--_selected-icon-color)}.selected:not(:disabled):hover{color:var(--_selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_selected-pressed-icon-color)}
3079
- `;
3080
- /**
3081
- * @license
3082
- * Copyright 2021 Google LLC
3083
- * SPDX-License-Identifier: Apache-2.0
3084
- */
3085
- let te = class extends b {
3086
- getRenderClasses() {
3087
- return {
3088
- ...super.getRenderClasses(),
3089
- standard: !0
3090
- };
3091
- }
3092
- };
3093
- te.styles = [mn, yn];
3094
- te = v([
3095
- Y("md-icon-button")
3096
- ], te);
3097
- var $n = Object.defineProperty, _n = Object.getOwnPropertyDescriptor, ve = (r, t, e, i) => {
3098
- for (var s = i > 1 ? void 0 : i ? _n(t, e) : t, n = r.length - 1, o; n >= 0; n--)
3099
- (o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
3100
- return i && s && $n(t, e, s), s;
3101
- };
3102
- let ot = class extends vs(E) {
3103
- render() {
3104
- return A`
3105
- <div class="container">
3106
- <md-icon-button aria-label="${this.description}">
3107
- <md-icon>${this.icon}</md-icon>
3108
- </md-icon-button>
3109
- </div>
3110
- `;
3111
- }
3112
- };
3113
- ot.styles = L`
3114
- :host {
3115
- color: red;
3116
- }
3117
- `;
3118
- ve([
3119
- w()
3120
- ], ot.prototype, "icon", 2);
3121
- ve([
3122
- w()
3123
- ], ot.prototype, "description", 2);
3124
- ot = ve([
3125
- Y("action-toolbar-item")
3126
- ], ot);
3127
- var bn = Object.defineProperty, wn = Object.getOwnPropertyDescriptor, ut = (r, t, e, i) => {
3128
- for (var s = i > 1 ? void 0 : i ? wn(t, e) : t, n = r.length - 1, o; n >= 0; n--)
3129
- (o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
3130
- return i && s && bn(t, e, s), s;
3131
- };
3132
- let P = class extends ws(E) {
3133
- render() {
3134
- return A` <div class="container">
3135
- <div class="header">
3136
- <div id="header-region-container"></div>
3137
- <div id="actions-toolbar-region-container"></div>
3138
- </div>
3139
-
3140
- <div class="main-container">
3141
- <div id="sidebar-region-region-container"></div>
3142
- <div id="main-region-region-container"></div>
3143
- </div>
3144
- </div>`;
3145
- }
3146
- };
3147
- P.styles = L`
3148
- :host {
3149
- width: 100%;
3150
- overflow: hidden;
3151
- }
3152
- .container {
3153
- width: 100%;
3154
- height: 100%;
3155
- display: flex;
3156
- flex-direction: column;
3157
- background: aliceblue;
3158
- }
3159
- .header {
3160
- display: flex;
3161
- flex-direction: row;
3162
- justify-content: space-between;
3163
- background-color: blue;
3164
- height: 60px;
3165
- background-color: white;
3166
- color: black;
3167
- box-shadow: rgba(0, 0, 0, 0.12) 0px 4px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
3168
- z-index: 1;
3169
-
3170
- #actions-toolbar-region-container{
3171
- display: flex;
3172
- flex-direction:row;
3173
- }
3174
- }
3175
- .main-container {
3176
- min-height: 1px;
3177
- height: 100%;
3178
- display: flex;
3179
- flex-direction: row;
3180
- #sidebar-region-region-container {
3181
- background: white;
3182
- width: 15vw;
3183
- box-shadow: rgba(0, 0, 0, 0.12) 4px -1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
3184
- }
3185
- }
3186
- `;
3187
- ut([
3188
- Ct({ targetId: "header-region-container", name: Pt.header })
3189
- ], P.prototype, "headerRegion", 2);
3190
- ut([
3191
- Ct({ targetId: "actions-toolbar-region-container", name: Pt.actionsToolbar })
3192
- ], P.prototype, "actionsToolbarRegion", 2);
3193
- ut([
3194
- Ct({ targetId: "sidebar-region-region-container", name: Pt.sidebar })
3195
- ], P.prototype, "sidebarRegion", 2);
3196
- ut([
3197
- Ct({ targetId: "main-region-region-container", name: Pt.main })
3198
- ], P.prototype, "mainRegion", 2);
3199
- P = ut([
3200
- Y("primary-shell")
3201
- ], P);
3202
- const Fn = (r) => {
3203
- r.appendChild(new P());
3204
- };
3205
- export {
3206
- P as PrimaryShell,
3207
- Fn as initializeShell,
3208
- Pt as regions
3209
- };