chrome-devtools-frontend 1.0.1593518 → 1.0.1595090

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 (111) hide show
  1. package/docs/contributing/settings-experiments-features.md +93 -98
  2. package/front_end/core/common/README.md +126 -0
  3. package/front_end/core/host/UserMetrics.ts +1 -2
  4. package/front_end/core/protocol_client/InspectorBackend.ts +4 -0
  5. package/front_end/core/root/ExperimentNames.ts +0 -1
  6. package/front_end/core/sdk/CSSModel.ts +22 -0
  7. package/front_end/core/sdk/CSSNavigation.ts +33 -0
  8. package/front_end/core/sdk/CSSRule.ts +12 -2
  9. package/front_end/core/sdk/EmulationModel.ts +41 -1
  10. package/front_end/core/sdk/sdk-meta.ts +22 -18
  11. package/front_end/core/sdk/sdk.ts +2 -0
  12. package/front_end/design_system_tokens.css +538 -259
  13. package/front_end/entrypoints/main/MainImpl.ts +0 -6
  14. package/front_end/entrypoints/main/main-meta.ts +2 -2
  15. package/front_end/generated/InspectorBackendCommands.ts +6 -4
  16. package/front_end/generated/SupportedCSSProperties.js +12 -0
  17. package/front_end/generated/protocol-mapping.d.ts +7 -0
  18. package/front_end/generated/protocol-proxy-api.d.ts +5 -0
  19. package/front_end/generated/protocol.ts +47 -0
  20. package/front_end/models/ai_code_completion/AiCodeCompletion.ts +1 -0
  21. package/front_end/models/emulation/DeviceModeModel.ts +47 -0
  22. package/front_end/models/issues_manager/Issue.ts +1 -0
  23. package/front_end/models/issues_manager/IssueAggregator.ts +9 -9
  24. package/front_end/models/issues_manager/IssuesManager.ts +5 -5
  25. package/front_end/models/issues_manager/SelectivePermissionsInterventionIssue.ts +65 -0
  26. package/front_end/models/issues_manager/descriptions/selectivePermissionsIntervention.md +7 -0
  27. package/front_end/models/issues_manager/issues_manager.ts +2 -4
  28. package/front_end/models/javascript_metadata/NativeFunctions.js +48 -9
  29. package/front_end/models/lighthouse/lighthouse.ts +9 -0
  30. package/front_end/models/persistence/persistence-meta.ts +4 -4
  31. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +12 -1
  32. package/front_end/panels/ai_assistance/components/ChatInput.ts +37 -30
  33. package/front_end/panels/ai_assistance/components/ChatView.ts +4 -2
  34. package/front_end/panels/ai_assistance/components/chatInput.css +26 -1
  35. package/front_end/panels/application/StorageView.ts +8 -2
  36. package/front_end/panels/application/preloading/PreloadingView.ts +105 -7
  37. package/front_end/panels/application/preloading/preloadingView.css +4 -0
  38. package/front_end/panels/common/AiCodeCompletionDisclaimer.ts +3 -0
  39. package/front_end/panels/common/AiCodeGenerationTeaser.ts +3 -0
  40. package/front_end/panels/console/ConsoleView.ts +2 -2
  41. package/front_end/panels/console/console-meta.ts +18 -14
  42. package/front_end/panels/elements/ComputedStyleWidget.ts +12 -7
  43. package/front_end/panels/elements/ElementsPanel.ts +1 -1
  44. package/front_end/panels/elements/ElementsTreeOutline.ts +4 -6
  45. package/front_end/panels/elements/ImagePreviewPopover.ts +6 -9
  46. package/front_end/panels/elements/StylePropertiesSection.ts +30 -0
  47. package/front_end/panels/elements/StylesAiCodeCompletionProvider.ts +1 -6
  48. package/front_end/panels/elements/StylesSidebarPane.ts +92 -7
  49. package/front_end/panels/elements/elements-meta.ts +12 -8
  50. package/front_end/panels/emulation/DeviceModeToolbar.ts +206 -66
  51. package/front_end/panels/issues/AffectedSelectivePermissionsInterventionView.ts +120 -0
  52. package/front_end/panels/issues/HiddenIssuesRow.ts +1 -1
  53. package/front_end/panels/issues/IssueKindView.ts +2 -1
  54. package/front_end/panels/issues/IssueView.ts +4 -4
  55. package/front_end/panels/issues/IssuesPane.ts +8 -2
  56. package/front_end/panels/issues/issues.ts +2 -0
  57. package/front_end/panels/lighthouse/LighthouseController.ts +3 -3
  58. package/front_end/panels/lighthouse/LighthousePanel.ts +9 -5
  59. package/front_end/panels/lighthouse/LighthouseProtocolService.ts +5 -5
  60. package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +6 -7
  61. package/front_end/panels/lighthouse/LighthouseReportSelector.ts +4 -3
  62. package/front_end/panels/lighthouse/LighthouseStartView.ts +99 -38
  63. package/front_end/panels/lighthouse/LighthouseTimespanView.ts +53 -14
  64. package/front_end/panels/lighthouse/RadioSetting.ts +33 -19
  65. package/front_end/panels/lighthouse/lighthouse.ts +2 -2
  66. package/front_end/panels/media/PlayerMessagesView.ts +62 -49
  67. package/front_end/panels/media/media.ts +2 -0
  68. package/front_end/panels/media/playerMessagesView.css +1 -1
  69. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +49 -24
  70. package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +2 -2
  71. package/front_end/panels/sources/sources-meta.ts +8 -4
  72. package/front_end/panels/utils/utils.ts +11 -5
  73. package/front_end/third_party/chromium/README.chromium +1 -1
  74. package/front_end/third_party/lit/lib/async-directive.d.ts +465 -0
  75. package/front_end/third_party/lit/lib/async-directive.js +23 -0
  76. package/front_end/third_party/lit/lib/async-directive.js.map +1 -0
  77. package/front_end/third_party/lit/lib/decorators.d.ts +7 -1
  78. package/front_end/third_party/lit/lib/decorators.js +2 -2
  79. package/front_end/third_party/lit/lib/decorators.js.map +1 -1
  80. package/front_end/third_party/lit/lib/directive.js.map +1 -1
  81. package/front_end/third_party/lit/lib/directives.d.ts +27 -8
  82. package/front_end/third_party/lit/lib/directives.js +8 -8
  83. package/front_end/third_party/lit/lib/directives.js.map +1 -1
  84. package/front_end/third_party/lit/lib/lit.d.ts +15 -5
  85. package/front_end/third_party/lit/lib/lit.js +4 -4
  86. package/front_end/third_party/lit/lib/lit.js.map +1 -1
  87. package/front_end/third_party/lit/lib/static-html.js +2 -2
  88. package/front_end/third_party/lit/lib/static-html.js.map +1 -1
  89. package/front_end/third_party/lit/lit.ts +2 -1
  90. package/front_end/third_party/lit/rollup.config.mjs +1 -1
  91. package/front_end/third_party/source-map-scopes-codec/package/deno.json +1 -1
  92. package/front_end/third_party/source-map-scopes-codec/package/package.json +1 -1
  93. package/front_end/third_party/source-map-scopes-codec/package/src/decode/decode.js +1 -1
  94. package/front_end/third_party/source-map-scopes-codec/package/src/decode/decode.js.map +1 -1
  95. package/front_end/third_party/source-map-scopes-codec/package/src/decode/decode.ts +1 -1
  96. package/front_end/third_party/source-map-scopes-codec/package/src/encode/encoder.js +1 -1
  97. package/front_end/third_party/source-map-scopes-codec/package/src/encode/encoder.js.map +1 -1
  98. package/front_end/third_party/source-map-scopes-codec/package/src/encode/encoder.ts +2 -2
  99. package/front_end/ui/components/markdown_view/MarkdownLinksMap.ts +5 -0
  100. package/front_end/ui/legacy/SuggestBox.ts +4 -0
  101. package/front_end/ui/legacy/TextPrompt.ts +1 -1
  102. package/front_end/ui/legacy/components/utils/ImagePreview.ts +27 -23
  103. package/front_end/ui/lit/lit.ts +1 -0
  104. package/front_end/ui/visual_logging/Debugging.ts +1 -1
  105. package/front_end/ui/visual_logging/KnownContextValues.ts +19 -0
  106. package/inspector_overlay/highlight_grid_common.ts +11 -8
  107. package/package.json +1 -1
  108. package/front_end/models/issues_manager/ContrastCheckTrigger.ts +0 -78
  109. package/front_end/models/issues_manager/LowTextContrastIssue.ts +0 -63
  110. package/front_end/panels/issues/AffectedElementsWithLowContrastView.ts +0 -91
  111. /package/front_end/{panels → models}/lighthouse/LighthouseReporterTypes.ts +0 -0
@@ -0,0 +1,465 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2017 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+
7
+ interface DirectiveClass {
8
+ new (part: PartInfo): Directive;
9
+ }
10
+ /**
11
+ * This utility type extracts the signature of a directive class's render()
12
+ * method so we can use it for the type of the generated directive function.
13
+ */
14
+ type DirectiveParameters<C extends Directive> = Parameters<C['render']>;
15
+ /**
16
+ * A generated directive function doesn't evaluate the directive, but just
17
+ * returns a DirectiveResult object that captures the arguments.
18
+ */
19
+ interface DirectiveResult<C extends DirectiveClass = DirectiveClass> {
20
+ }
21
+ declare const PartType: {
22
+ readonly ATTRIBUTE: 1;
23
+ readonly CHILD: 2;
24
+ readonly PROPERTY: 3;
25
+ readonly BOOLEAN_ATTRIBUTE: 4;
26
+ readonly EVENT: 5;
27
+ readonly ELEMENT: 6;
28
+ };
29
+ type PartType = (typeof PartType)[keyof typeof PartType];
30
+ interface ChildPartInfo {
31
+ readonly type: typeof PartType.CHILD;
32
+ }
33
+ interface AttributePartInfo {
34
+ readonly type: typeof PartType.ATTRIBUTE | typeof PartType.PROPERTY | typeof PartType.BOOLEAN_ATTRIBUTE | typeof PartType.EVENT;
35
+ readonly strings?: ReadonlyArray<string>;
36
+ readonly name: string;
37
+ readonly tagName: string;
38
+ }
39
+ interface ElementPartInfo {
40
+ readonly type: typeof PartType.ELEMENT;
41
+ }
42
+ /**
43
+ * Information about the part a directive is bound to.
44
+ *
45
+ * This is useful for checking that a directive is attached to a valid part,
46
+ * such as with directive that can only be used on attribute bindings.
47
+ */
48
+ type PartInfo = ChildPartInfo | AttributePartInfo | ElementPartInfo;
49
+ /**
50
+ * Creates a user-facing directive function from a Directive class. This
51
+ * function has the same parameters as the directive's render() method.
52
+ */
53
+ declare const directive: <C extends DirectiveClass>(c: C) => (...values: DirectiveParameters<InstanceType<C>>) => DirectiveResult<C>;
54
+ /**
55
+ * Base class for creating custom directives. Users should extend this class,
56
+ * implement `render` and/or `update`, and then pass their subclass to
57
+ * `directive`.
58
+ */
59
+ declare abstract class Directive implements Disconnectable {
60
+ constructor(_partInfo: PartInfo);
61
+ get _$isConnected(): boolean;
62
+ abstract render(...props: Array<unknown>): unknown;
63
+ update(_part: Part, props: Array<unknown>): unknown;
64
+ }
65
+
66
+ declare class TrustedHTML {
67
+ private constructor(); // To prevent instantiting with 'new'.
68
+ private brand: true; // To prevent structural typing.
69
+ }
70
+
71
+ /**
72
+ * @license
73
+ * Copyright 2017 Google LLC
74
+ * SPDX-License-Identifier: BSD-3-Clause
75
+ */
76
+
77
+ /**
78
+ * A function which can sanitize values that will be written to a specific kind
79
+ * of DOM sink.
80
+ *
81
+ * See SanitizerFactory.
82
+ *
83
+ * @param value The value to sanitize. Will be the actual value passed into
84
+ * the lit-html template literal, so this could be of any type.
85
+ * @return The value to write to the DOM. Usually the same as the input value,
86
+ * unless sanitization is needed.
87
+ */
88
+ type ValueSanitizer = (value: unknown) => unknown;
89
+ /** TemplateResult types */
90
+ declare const HTML_RESULT = 1;
91
+ declare const SVG_RESULT = 2;
92
+ declare const MATHML_RESULT = 3;
93
+ type ResultType = typeof HTML_RESULT | typeof SVG_RESULT | typeof MATHML_RESULT;
94
+ declare const ATTRIBUTE_PART = 1;
95
+ declare const CHILD_PART = 2;
96
+ declare const PROPERTY_PART = 3;
97
+ declare const BOOLEAN_ATTRIBUTE_PART = 4;
98
+ declare const EVENT_PART = 5;
99
+ declare const ELEMENT_PART = 6;
100
+ declare const COMMENT_PART = 7;
101
+ /**
102
+ * The return type of the template tag functions, {@linkcode html} and
103
+ * {@linkcode svg} when it hasn't been compiled by @lit-labs/compiler.
104
+ *
105
+ * A `TemplateResult` object holds all the information about a template
106
+ * expression required to render it: the template strings, expression values,
107
+ * and type of template (html or svg).
108
+ *
109
+ * `TemplateResult` objects do not create any DOM on their own. To create or
110
+ * update DOM you need to render the `TemplateResult`. See
111
+ * [Rendering](https://lit.dev/docs/components/rendering) for more information.
112
+ *
113
+ */
114
+ type UncompiledTemplateResult<T extends ResultType = ResultType> = {
115
+ ['_$litType$']: T;
116
+ strings: TemplateStringsArray;
117
+ values: unknown[];
118
+ };
119
+ /**
120
+ * Object specifying options for controlling lit-html rendering. Note that
121
+ * while `render` may be called multiple times on the same `container` (and
122
+ * `renderBefore` reference node) to efficiently update the rendered content,
123
+ * only the options passed in during the first render are respected during
124
+ * the lifetime of renders to that unique `container` + `renderBefore`
125
+ * combination.
126
+ */
127
+ interface RenderOptions {
128
+ /**
129
+ * An object to use as the `this` value for event listeners. It's often
130
+ * useful to set this to the host component rendering a template.
131
+ */
132
+ host?: object;
133
+ /**
134
+ * A DOM node before which to render content in the container.
135
+ */
136
+ renderBefore?: ChildNode | null;
137
+ /**
138
+ * Node used for cloning the template (`importNode` will be called on this
139
+ * node). This controls the `ownerDocument` of the rendered DOM, along with
140
+ * any inherited context. Defaults to the global `document`.
141
+ */
142
+ creationScope?: {
143
+ importNode(node: Node, deep?: boolean): Node;
144
+ };
145
+ /**
146
+ * The initial connected state for the top-level part being rendered. If no
147
+ * `isConnected` option is set, `AsyncDirective`s will be connected by
148
+ * default. Set to `false` if the initial render occurs in a disconnected tree
149
+ * and `AsyncDirective`s should see `isConnected === false` for their initial
150
+ * render. The `part.setConnected()` method must be used subsequent to initial
151
+ * render to change the connected state of the part.
152
+ */
153
+ isConnected?: boolean;
154
+ }
155
+ interface DirectiveParent {
156
+ _$parent?: DirectiveParent;
157
+ _$isConnected: boolean;
158
+ __directive?: Directive;
159
+ __directives?: Array<Directive | undefined>;
160
+ }
161
+ declare class Template {
162
+ parts: Array<TemplatePart>;
163
+ constructor({ strings, ['_$litType$']: type }: UncompiledTemplateResult, options?: RenderOptions);
164
+ /** @nocollapse */
165
+ static createElement(html: TrustedHTML, _options?: RenderOptions): HTMLTemplateElement;
166
+ }
167
+ interface Disconnectable {
168
+ _$parent?: Disconnectable;
169
+ _$disconnectableChildren?: Set<Disconnectable>;
170
+ _$isConnected: boolean;
171
+ }
172
+ /**
173
+ * An updateable instance of a Template. Holds references to the Parts used to
174
+ * update the template instance.
175
+ */
176
+ declare class TemplateInstance implements Disconnectable {
177
+ _$template: Template;
178
+ _$parts: Array<Part | undefined>;
179
+ constructor(template: Template, parent: ChildPart);
180
+ get parentNode(): Node;
181
+ get _$isConnected(): boolean;
182
+ _clone(options: RenderOptions | undefined): Node;
183
+ _update(values: Array<unknown>): void;
184
+ }
185
+ type AttributeTemplatePart = {
186
+ readonly type: typeof ATTRIBUTE_PART;
187
+ readonly index: number;
188
+ readonly name: string;
189
+ readonly ctor: typeof AttributePart;
190
+ readonly strings: ReadonlyArray<string>;
191
+ };
192
+ type ChildTemplatePart = {
193
+ readonly type: typeof CHILD_PART;
194
+ readonly index: number;
195
+ };
196
+ type ElementTemplatePart = {
197
+ readonly type: typeof ELEMENT_PART;
198
+ readonly index: number;
199
+ };
200
+ type CommentTemplatePart = {
201
+ readonly type: typeof COMMENT_PART;
202
+ readonly index: number;
203
+ };
204
+ /**
205
+ * A TemplatePart represents a dynamic part in a template, before the template
206
+ * is instantiated. When a template is instantiated Parts are created from
207
+ * TemplateParts.
208
+ */
209
+ type TemplatePart = ChildTemplatePart | AttributeTemplatePart | ElementTemplatePart | CommentTemplatePart;
210
+ type Part = ChildPart | AttributePart | PropertyPart | BooleanAttributePart | ElementPart | EventPart;
211
+
212
+ declare class ChildPart implements Disconnectable {
213
+ readonly type = 2;
214
+ readonly options: RenderOptions | undefined;
215
+ _$committedValue: unknown;
216
+ private _textSanitizer;
217
+ get _$isConnected(): boolean;
218
+ constructor(startNode: ChildNode, endNode: ChildNode | null, parent: TemplateInstance | ChildPart | undefined, options: RenderOptions | undefined);
219
+ /**
220
+ * The parent node into which the part renders its content.
221
+ *
222
+ * A ChildPart's content consists of a range of adjacent child nodes of
223
+ * `.parentNode`, possibly bordered by 'marker nodes' (`.startNode` and
224
+ * `.endNode`).
225
+ *
226
+ * - If both `.startNode` and `.endNode` are non-null, then the part's content
227
+ * consists of all siblings between `.startNode` and `.endNode`, exclusively.
228
+ *
229
+ * - If `.startNode` is non-null but `.endNode` is null, then the part's
230
+ * content consists of all siblings following `.startNode`, up to and
231
+ * including the last child of `.parentNode`. If `.endNode` is non-null, then
232
+ * `.startNode` will always be non-null.
233
+ *
234
+ * - If both `.endNode` and `.startNode` are null, then the part's content
235
+ * consists of all child nodes of `.parentNode`.
236
+ */
237
+ get parentNode(): Node;
238
+ /**
239
+ * The part's leading marker node, if any. See `.parentNode` for more
240
+ * information.
241
+ */
242
+ get startNode(): Node | null;
243
+ /**
244
+ * The part's trailing marker node, if any. See `.parentNode` for more
245
+ * information.
246
+ */
247
+ get endNode(): Node | null;
248
+ _$setValue(value: unknown, directiveParent?: DirectiveParent): void;
249
+ private _insert;
250
+ private _commitNode;
251
+ private _commitText;
252
+ private _commitTemplateResult;
253
+ private _commitIterable;
254
+ }
255
+ declare class AttributePart implements Disconnectable {
256
+ readonly type: typeof ATTRIBUTE_PART | typeof PROPERTY_PART | typeof BOOLEAN_ATTRIBUTE_PART | typeof EVENT_PART;
257
+ readonly element: HTMLElement;
258
+ readonly name: string;
259
+ readonly options: RenderOptions | undefined;
260
+ /**
261
+ * If this attribute part represents an interpolation, this contains the
262
+ * static strings of the interpolation. For single-value, complete bindings,
263
+ * this is undefined.
264
+ */
265
+ readonly strings?: ReadonlyArray<string>;
266
+ protected _sanitizer: ValueSanitizer | undefined;
267
+ get tagName(): string;
268
+ get _$isConnected(): boolean;
269
+ constructor(element: HTMLElement, name: string, strings: ReadonlyArray<string>, parent: Disconnectable, options: RenderOptions | undefined);
270
+ }
271
+
272
+ declare class PropertyPart extends AttributePart {
273
+ readonly type = 3;
274
+ }
275
+
276
+ declare class BooleanAttributePart extends AttributePart {
277
+ readonly type = 4;
278
+ }
279
+
280
+ declare class EventPart extends AttributePart {
281
+ readonly type = 5;
282
+ constructor(element: HTMLElement, name: string, strings: ReadonlyArray<string>, parent: Disconnectable, options: RenderOptions | undefined);
283
+ handleEvent(event: Event): void;
284
+ }
285
+
286
+ declare class ElementPart implements Disconnectable {
287
+ element: Element;
288
+ readonly type = 6;
289
+ _$committedValue: undefined;
290
+ options: RenderOptions | undefined;
291
+ constructor(element: Element, parent: Disconnectable, options: RenderOptions | undefined);
292
+ get _$isConnected(): boolean;
293
+ _$setValue(value: unknown): void;
294
+ }
295
+
296
+ /**
297
+ * @license
298
+ * Copyright 2017 Google LLC
299
+ * SPDX-License-Identifier: BSD-3-Clause
300
+ */
301
+ /**
302
+ * Overview:
303
+ *
304
+ * This module is designed to add support for an async `setValue` API and
305
+ * `disconnected` callback to directives with the least impact on the core
306
+ * runtime or payload when that feature is not used.
307
+ *
308
+ * The strategy is to introduce a `AsyncDirective` subclass of
309
+ * `Directive` that climbs the "parent" tree in its constructor to note which
310
+ * branches of lit-html's "logical tree" of data structures contain such
311
+ * directives and thus need to be crawled when a subtree is being cleared (or
312
+ * manually disconnected) in order to run the `disconnected` callback.
313
+ *
314
+ * The "nodes" of the logical tree include Parts, TemplateInstances (for when a
315
+ * TemplateResult is committed to a value of a ChildPart), and Directives; these
316
+ * all implement a common interface called `DisconnectableChild`. Each has a
317
+ * `_$parent` reference which is set during construction in the core code, and a
318
+ * `_$disconnectableChildren` field which is initially undefined.
319
+ *
320
+ * The sparse tree created by means of the `AsyncDirective` constructor
321
+ * crawling up the `_$parent` tree and placing a `_$disconnectableChildren` Set
322
+ * on each parent that includes each child that contains a
323
+ * `AsyncDirective` directly or transitively via its children. In order to
324
+ * notify connection state changes and disconnect (or reconnect) a tree, the
325
+ * `_$notifyConnectionChanged` API is patched onto ChildParts as a directive
326
+ * climbs the parent tree, which is called by the core when clearing a part if
327
+ * it exists. When called, that method iterates over the sparse tree of
328
+ * Set<DisconnectableChildren> built up by AsyncDirectives, and calls
329
+ * `_$notifyDirectiveConnectionChanged` on any directives that are encountered
330
+ * in that tree, running the required callbacks.
331
+ *
332
+ * A given "logical tree" of lit-html data-structures might look like this:
333
+ *
334
+ * ChildPart(N1) _$dC=[D2,T3]
335
+ * ._directive
336
+ * AsyncDirective(D2)
337
+ * ._value // user value was TemplateResult
338
+ * TemplateInstance(T3) _$dC=[A4,A6,N10,N12]
339
+ * ._$parts[]
340
+ * AttributePart(A4) _$dC=[D5]
341
+ * ._directives[]
342
+ * AsyncDirective(D5)
343
+ * AttributePart(A6) _$dC=[D7,D8]
344
+ * ._directives[]
345
+ * AsyncDirective(D7)
346
+ * Directive(D8) _$dC=[D9]
347
+ * ._directive
348
+ * AsyncDirective(D9)
349
+ * ChildPart(N10) _$dC=[D11]
350
+ * ._directive
351
+ * AsyncDirective(D11)
352
+ * ._value
353
+ * string
354
+ * ChildPart(N12) _$dC=[D13,N14,N16]
355
+ * ._directive
356
+ * AsyncDirective(D13)
357
+ * ._value // user value was iterable
358
+ * Array<ChildPart>
359
+ * ChildPart(N14) _$dC=[D15]
360
+ * ._value
361
+ * string
362
+ * ChildPart(N16) _$dC=[D17,T18]
363
+ * ._directive
364
+ * AsyncDirective(D17)
365
+ * ._value // user value was TemplateResult
366
+ * TemplateInstance(T18) _$dC=[A19,A21,N25]
367
+ * ._$parts[]
368
+ * AttributePart(A19) _$dC=[D20]
369
+ * ._directives[]
370
+ * AsyncDirective(D20)
371
+ * AttributePart(A21) _$dC=[22,23]
372
+ * ._directives[]
373
+ * AsyncDirective(D22)
374
+ * Directive(D23) _$dC=[D24]
375
+ * ._directive
376
+ * AsyncDirective(D24)
377
+ * ChildPart(N25) _$dC=[D26]
378
+ * ._directive
379
+ * AsyncDirective(D26)
380
+ * ._value
381
+ * string
382
+ *
383
+ * Example 1: The directive in ChildPart(N12) updates and returns `nothing`. The
384
+ * ChildPart will _clear() itself, and so we need to disconnect the "value" of
385
+ * the ChildPart (but not its directive). In this case, when `_clear()` calls
386
+ * `_$notifyConnectionChanged()`, we don't iterate all of the
387
+ * _$disconnectableChildren, rather we do a value-specific disconnection: i.e.
388
+ * since the _value was an Array<ChildPart> (because an iterable had been
389
+ * committed), we iterate the array of ChildParts (N14, N16) and run
390
+ * `setConnected` on them (which does recurse down the full tree of
391
+ * `_$disconnectableChildren` below it, and also removes N14 and N16 from N12's
392
+ * `_$disconnectableChildren`). Once the values have been disconnected, we then
393
+ * check whether the ChildPart(N12)'s list of `_$disconnectableChildren` is empty
394
+ * (and would remove it from its parent TemplateInstance(T3) if so), but since
395
+ * it would still contain its directive D13, it stays in the disconnectable
396
+ * tree.
397
+ *
398
+ * Example 2: In the course of Example 1, `setConnected` will reach
399
+ * ChildPart(N16); in this case the entire part is being disconnected, so we
400
+ * simply iterate all of N16's `_$disconnectableChildren` (D17,T18) and
401
+ * recursively run `setConnected` on them. Note that we only remove children
402
+ * from `_$disconnectableChildren` for the top-level values being disconnected
403
+ * on a clear; doing this bookkeeping lower in the tree is wasteful since it's
404
+ * all being thrown away.
405
+ *
406
+ * Example 3: If the LitElement containing the entire tree above becomes
407
+ * disconnected, it will run `childPart.setConnected()` (which calls
408
+ * `childPart._$notifyConnectionChanged()` if it exists); in this case, we
409
+ * recursively run `setConnected()` over the entire tree, without removing any
410
+ * children from `_$disconnectableChildren`, since this tree is required to
411
+ * re-connect the tree, which does the same operation, simply passing
412
+ * `isConnected: true` down the tree, signaling which callback to run.
413
+ */
414
+
415
+ /**
416
+ * An abstract `Directive` base class whose `disconnected` method will be
417
+ * called when the part containing the directive is cleared as a result of
418
+ * re-rendering, or when the user calls `part.setConnected(false)` on
419
+ * a part that was previously rendered containing the directive (as happens
420
+ * when e.g. a LitElement disconnects from the DOM).
421
+ *
422
+ * If `part.setConnected(true)` is subsequently called on a
423
+ * containing part, the directive's `reconnected` method will be called prior
424
+ * to its next `update`/`render` callbacks. When implementing `disconnected`,
425
+ * `reconnected` should also be implemented to be compatible with reconnection.
426
+ *
427
+ * Note that updates may occur while the directive is disconnected. As such,
428
+ * directives should generally check the `this.isConnected` flag during
429
+ * render/update to determine whether it is safe to subscribe to resources
430
+ * that may prevent garbage collection.
431
+ */
432
+ declare abstract class AsyncDirective extends Directive {
433
+ /**
434
+ * The connection state for this Directive.
435
+ */
436
+ isConnected: boolean;
437
+ /**
438
+ * Initialize the part with internal fields
439
+ * @param part
440
+ * @param parent
441
+ * @param attributeIndex
442
+ */
443
+ _$initialize(part: Part, parent: Disconnectable, attributeIndex: number | undefined): void;
444
+ /**
445
+ * Sets the value of the directive's Part outside the normal `update`/`render`
446
+ * lifecycle of a directive.
447
+ *
448
+ * This method should not be called synchronously from a directive's `update`
449
+ * or `render`.
450
+ *
451
+ * @param directive The directive to update
452
+ * @param value The value to set
453
+ */
454
+ setValue(value: unknown): void;
455
+ /**
456
+ * User callbacks for implementing logic to release any resources/subscriptions
457
+ * that may have been retained by this directive. Since directives may also be
458
+ * re-connected, `reconnected` should also be implemented to restore the
459
+ * working state of the directive prior to the next render.
460
+ */
461
+ protected disconnected(): void;
462
+ protected reconnected(): void;
463
+ }
464
+
465
+ export { AsyncDirective, AttributePart, type AttributePartInfo, BooleanAttributePart, ChildPart, type ChildPartInfo, Directive, type DirectiveClass, type DirectiveParameters, type DirectiveResult, ElementPart, type ElementPartInfo, EventPart, type Part, type PartInfo, PartType, PropertyPart, directive };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2017 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const t=globalThis,e=t=>t,s=t.trustedTypes,i=s?s.createPolicy("lit-html",{createHTML:t=>t}):void 0,n="$lit$",o=`lit$${Math.random().toFixed(9).slice(2)}$`,h="?"+o,r=`<${h}>`,$=document,l=()=>$.createComment(""),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,_=Array.isArray,c="[ \t\n\f\r]",a=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,d=/-->/g,p=/>/g,u=RegExp(`>|${c}(?:([^\\s"'>=/]+)(${c}*=${c}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,f=/"/g,v=/^(?:script|style|textarea|title)$/i,m=Symbol.for("lit-noChange"),y=Symbol.for("lit-nothing"),H=new WeakMap,N=$.createTreeWalker($,129);function x(t,e){if(!_(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==i?i.createHTML(e):e}const T=(t,e)=>{const s=t.length-1,i=[];let h,$=2===e?"<svg>":3===e?"<math>":"",l=a;for(let e=0;e<s;e++){const s=t[e];let A,_,c=-1,m=0;for(;m<s.length&&(l.lastIndex=m,_=l.exec(s),null!==_);)m=l.lastIndex,l===a?"!--"===_[1]?l=d:void 0!==_[1]?l=p:void 0!==_[2]?(v.test(_[2])&&(h=RegExp("</"+_[2],"g")),l=u):void 0!==_[3]&&(l=u):l===u?">"===_[0]?(l=h??a,c=-1):void 0===_[1]?c=-2:(c=l.lastIndex-_[2].length,A=_[1],l=void 0===_[3]?u:'"'===_[3]?f:g):l===f||l===g?l=u:l===d||l===p?l=a:(l=u,h=void 0);const y=l===u&&t[e+1].startsWith("/>")?" ":"";$+=l===a?s+r:c>=0?(i.push(A),s.slice(0,c)+n+s.slice(c)+o+y):s+o+(-2===c?e:y)}return[x(t,$+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class C{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let $=0,A=0;const _=t.length-1,c=this.parts,[a,d]=T(t,e);if(this.el=C.createElement(a,i),N.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=N.nextNode())&&c.length<_;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(n)){const e=d[A++],s=r.getAttribute(t).split(o),i=/([.?@])?(.*)/.exec(e);c.push({type:1,index:$,name:i[2],strings:s,ctor:"."===i[1]?S:"?"===i[1]?w:"@"===i[1]?U:I}),r.removeAttribute(t)}else t.startsWith(o)&&(c.push({type:6,index:$}),r.removeAttribute(t));if(v.test(r.tagName)){const t=r.textContent.split(o),e=t.length-1;if(e>0){r.textContent=s?s.emptyScript:"";for(let s=0;s<e;s++)r.append(t[s],l()),N.nextNode(),c.push({type:2,index:++$});r.append(t[e],l())}}}else if(8===r.nodeType)if(r.data===h)c.push({type:2,index:$});else{let t=-1;for(;-1!==(t=r.data.indexOf(o,t+1));)c.push({type:7,index:$}),t+=o.length-1}$++}}static createElement(t,e){const s=$.createElement("template");return s.innerHTML=t,s}}function M(t,e,s=t,i){if(e===m)return e;let n=void 0!==i?s._$Co?.[i]:s._$Cl;const o=A(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),void 0===o?n=void 0:(n=new o(t),n._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=n:s._$Cl=n),void 0!==n&&(e=M(t,n._$AS(t,e.values),n,i)),e}class b{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??$).importNode(e,!0);N.currentNode=i;let n=N.nextNode(),o=0,h=0,r=s[0];for(;void 0!==r;){if(o===r.index){let e;2===r.type?e=new E(n,n.nextSibling,this,t):1===r.type?e=new r.ctor(n,r.name,r.strings,this,t):6===r.type&&(e=new O(n,this,t)),this._$AV.push(e),r=s[++h]}o!==r?.index&&(n=N.nextNode(),o++)}return N.currentNode=$,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class E{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=M(this,t,e),A(t)?t===y||null==t||""===t?(this._$AH!==y&&this._$AR(),this._$AH=y):t!==this._$AH&&t!==m&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>_(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==y&&A(this._$AH)?this._$AA.nextSibling.data=t:this.T($.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=C.createElement(x(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new b(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=H.get(t.strings);return void 0===e&&H.set(t.strings,e=new C(t)),e}k(t){_(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new E(this.O(l()),this.O(l()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);t!==this._$AB;){const s=e(t).nextSibling;e(t).remove(),t=s}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class I{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=y}_$AI(t,e=this,s,i){const n=this.strings;let o=!1;if(void 0===n)t=M(this,t,e,0),o=!A(t)||t!==this._$AH&&t!==m,o&&(this._$AH=t);else{const i=t;let h,r;for(t=n[0],h=0;h<n.length-1;h++)r=M(this,i[s+h],e,h),r===m&&(r=this._$AH[h]),o||=!A(r)||r!==this._$AH[h],r===y?t=y:t!==y&&(t+=(r??"")+n[h+1]),this._$AH[h]=r}o&&!i&&this.j(t)}j(t){t===y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class S extends I{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===y?void 0:t}}class w extends I{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==y)}}class U extends I{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=M(this,t,e,0)??y)===m)return;const s=this._$AH,i=t===y&&s!==y||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==y&&(s===y||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class O{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const R=t.litHtmlPolyfillSupport;R?.(C,E),(t.litHtmlVersions??=[]).push("3.3.2");
7
+ /**
8
+ * @license
9
+ * Copyright 2020 Google LLC
10
+ * SPDX-License-Identifier: BSD-3-Clause
11
+ */
12
+ const B={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},D=t=>(...e)=>({_$litDirective$:t,values:e});
13
+ /**
14
+ * @license
15
+ * Copyright 2017 Google LLC
16
+ * SPDX-License-Identifier: BSD-3-Clause
17
+ */class L{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
18
+ /**
19
+ * @license
20
+ * Copyright 2017 Google LLC
21
+ * SPDX-License-Identifier: BSD-3-Clause
22
+ */const P=(t,e)=>{const s=t._$AN;if(void 0===s)return!1;for(const t of s)t._$AO?.(e,!1),P(t,e);return!0},k=t=>{let e,s;do{if(void 0===(e=t._$AM))break;s=e._$AN,s.delete(t),t=e}while(0===s?.size)},V=t=>{for(let e;e=t._$AM;t=e){let s=e._$AN;if(void 0===s)e._$AN=s=new Set;else if(s.has(t))break;s.add(t),z(e)}};function W(t){void 0!==this._$AN?(k(this),this._$AM=t,V(this)):this._$AM=t}function j(t,e=!1,s=0){const i=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(e)if(Array.isArray(i))for(let t=s;t<i.length;t++)P(i[t],!1),k(i[t]);else null!=i&&(P(i,!1),k(i));else P(this,t)}const z=t=>{t.type==B.CHILD&&(t._$AP??=j,t._$AQ??=W)};class Z extends L{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),V(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(P(this,t),k(this))}setValue(t){if((t=>void 0===t.strings)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}export{Z as AsyncDirective,L as Directive,B as PartType,D as directive};
23
+ //# sourceMappingURL=async-directive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"async-directive.js","sources":["../node_modules/lit-html/lit-html.js","../node_modules/lit-html/directive-helpers.js","../node_modules/lit-html/directive.js","../node_modules/lit-html/async-directive.js"],"sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,i=t=>t,s=t.trustedTypes,e=s?s.createPolicy(\"lit-html\",{createHTML:t=>t}):void 0,h=\"$lit$\",o=`lit$${Math.random().toFixed(9).slice(2)}$`,n=\"?\"+o,r=`<${n}>`,l=document,c=()=>l.createComment(\"\"),a=t=>null===t||\"object\"!=typeof t&&\"function\"!=typeof t,u=Array.isArray,d=t=>u(t)||\"function\"==typeof t?.[Symbol.iterator],f=\"[ \\t\\n\\f\\r]\",v=/<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g,_=/-->/g,m=/>/g,p=RegExp(`>|${f}(?:([^\\\\s\"'>=/]+)(${f}*=${f}*(?:[^ \\t\\n\\f\\r\"'\\`<>=]|(\"|')|))|$)`,\"g\"),g=/'/g,$=/\"/g,y=/^(?:script|style|textarea|title)$/i,x=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),b=x(1),w=x(2),T=x(3),E=Symbol.for(\"lit-noChange\"),A=Symbol.for(\"lit-nothing\"),C=new WeakMap,P=l.createTreeWalker(l,129);function V(t,i){if(!u(t)||!t.hasOwnProperty(\"raw\"))throw Error(\"invalid template strings array\");return void 0!==e?e.createHTML(i):i}const N=(t,i)=>{const s=t.length-1,e=[];let n,l=2===i?\"<svg>\":3===i?\"<math>\":\"\",c=v;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,f=0;for(;f<s.length&&(c.lastIndex=f,u=c.exec(s),null!==u);)f=c.lastIndex,c===v?\"!--\"===u[1]?c=_:void 0!==u[1]?c=m:void 0!==u[2]?(y.test(u[2])&&(n=RegExp(\"</\"+u[2],\"g\")),c=p):void 0!==u[3]&&(c=p):c===p?\">\"===u[0]?(c=n??v,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?p:'\"'===u[3]?$:g):c===$||c===g?c=p:c===_||c===m?c=v:(c=p,n=void 0);const x=c===p&&t[i+1].startsWith(\"/>\")?\" \":\"\";l+=c===v?s+r:d>=0?(e.push(a),s.slice(0,d)+h+s.slice(d)+o+x):s+o+(-2===d?i:x)}return[V(t,l+(t[s]||\"<?>\")+(2===i?\"</svg>\":3===i?\"</math>\":\"\")),e]};class S{constructor({strings:t,_$litType$:i},e){let r;this.parts=[];let l=0,a=0;const u=t.length-1,d=this.parts,[f,v]=N(t,i);if(this.el=S.createElement(f,e),P.currentNode=this.el.content,2===i||3===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=P.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(h)){const i=v[a++],s=r.getAttribute(t).split(o),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:l,name:e[2],strings:s,ctor:\".\"===e[1]?I:\"?\"===e[1]?L:\"@\"===e[1]?z:H}),r.removeAttribute(t)}else t.startsWith(o)&&(d.push({type:6,index:l}),r.removeAttribute(t));if(y.test(r.tagName)){const t=r.textContent.split(o),i=t.length-1;if(i>0){r.textContent=s?s.emptyScript:\"\";for(let s=0;s<i;s++)r.append(t[s],c()),P.nextNode(),d.push({type:2,index:++l});r.append(t[i],c())}}}else if(8===r.nodeType)if(r.data===n)d.push({type:2,index:l});else{let t=-1;for(;-1!==(t=r.data.indexOf(o,t+1));)d.push({type:7,index:l}),t+=o.length-1}l++}}static createElement(t,i){const s=l.createElement(\"template\");return s.innerHTML=t,s}}function M(t,i,s=t,e){if(i===E)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=a(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=M(t,h._$AS(t,i.values),h,e)),i}class R{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??l).importNode(i,!0);P.currentNode=e;let h=P.nextNode(),o=0,n=0,r=s[0];for(;void 0!==r;){if(o===r.index){let i;2===r.type?i=new k(h,h.nextSibling,this,t):1===r.type?i=new r.ctor(h,r.name,r.strings,this,t):6===r.type&&(i=new Z(h,this,t)),this._$AV.push(i),r=s[++n]}o!==r?.index&&(h=P.nextNode(),o++)}return P.currentNode=l,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class k{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=M(this,t,i),a(t)?t===A||null==t||\"\"===t?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==E&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):d(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==A&&a(this._$AH)?this._$AA.nextSibling.data=t:this.T(l.createTextNode(t)),this._$AH=t}$(t){const{values:i,_$litType$:s}=t,e=\"number\"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=S.createElement(V(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else{const t=new R(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t}}_$AC(t){let i=C.get(t.strings);return void 0===i&&C.set(t.strings,i=new S(t)),i}k(t){u(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new k(this.O(c()),this.O(c()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);t!==this._$AB;){const s=i(t).nextSibling;i(t).remove(),t=s}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class H{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||\"\"!==s[0]||\"\"!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=A}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=M(this,t,i,0),o=!a(t)||t!==this._$AH&&t!==E,o&&(this._$AH=t);else{const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=M(this,e[s+n],i,n),r===E&&(r=this._$AH[n]),o||=!a(r)||r!==this._$AH[n],r===A?t=A:t!==A&&(t+=(r??\"\")+h[n+1]),this._$AH[n]=r}o&&!e&&this.j(t)}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??\"\")}}class I extends H{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}}class L extends H{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==A)}}class z extends H{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5}_$AI(t,i=this){if((t=M(this,t,i,0)??A)===E)return;const s=this._$AH,e=t===A&&s!==A||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==A&&(s===A||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){\"function\"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const j={M:h,P:o,A:n,C:1,L:N,R,D:d,V:M,I:k,H,N:L,U:z,B:I,F:Z},B=t.litHtmlPolyfillSupport;B?.(S,k),(t.litHtmlVersions??=[]).push(\"3.3.2\");const D=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new k(i.insertBefore(c(),t),t,void 0,s??{})}return h._$AI(t),h};export{j as _$LH,b as html,T as mathml,E as noChange,A as nothing,D as render,w as svg};\n//# sourceMappingURL=lit-html.js.map\n","import{_$LH as o}from\"./lit-html.js\";\n/**\n * @license\n * Copyright 2020 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const{I:t}=o,i=o=>o,n=o=>null===o||\"object\"!=typeof o&&\"function\"!=typeof o,e={HTML:1,SVG:2,MATHML:3},l=(o,t)=>void 0===t?void 0!==o?._$litType$:o?._$litType$===t,d=o=>null!=o?._$litType$?.h,c=o=>void 0!==o?._$litDirective$,f=o=>o?._$litDirective$,r=o=>void 0===o.strings,s=()=>document.createComment(\"\"),v=(o,n,e)=>{const l=o._$AA.parentNode,d=void 0===n?o._$AB:n._$AA;if(void 0===e){const i=l.insertBefore(s(),d),n=l.insertBefore(s(),d);e=new t(i,n,o,o.options)}else{const t=e._$AB.nextSibling,n=e._$AM,c=n!==o;if(c){let t;e._$AQ?.(o),e._$AM=o,void 0!==e._$AP&&(t=o._$AU)!==n._$AU&&e._$AP(t)}if(t!==d||c){let o=e._$AA;for(;o!==t;){const t=i(o).nextSibling;i(l).insertBefore(o,d),o=t}}}return e},u=(o,t,i=o)=>(o._$AI(t,i),o),m={},p=(o,t=m)=>o._$AH=t,M=o=>o._$AH,h=o=>{o._$AR(),o._$AA.remove()},j=o=>{o._$AR()};export{e as TemplateResultType,j as clearPart,M as getCommittedValue,f as getDirectiveClass,v as insertPart,d as isCompiledTemplateResult,c as isDirectiveResult,n as isPrimitive,r as isSingleExpression,l as isTemplateResult,h as removePart,u as setChildPartValue,p as setCommittedValue};\n//# sourceMappingURL=directive-helpers.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}export{i as Directive,t as PartType,e as directive};\n//# sourceMappingURL=directive.js.map\n","import{isSingleExpression as i}from\"./directive-helpers.js\";import{Directive as t,PartType as e}from\"./directive.js\";export{directive}from\"./directive.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const s=(i,t)=>{const e=i._$AN;if(void 0===e)return!1;for(const i of e)i._$AO?.(t,!1),s(i,t);return!0},o=i=>{let t,e;do{if(void 0===(t=i._$AM))break;e=t._$AN,e.delete(i),i=t}while(0===e?.size)},r=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(void 0===e)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),c(t)}};function h(i){void 0!==this._$AN?(o(this),this._$AM=i,r(this)):this._$AM=i}function n(i,t=!1,e=0){const r=this._$AH,h=this._$AN;if(void 0!==h&&0!==h.size)if(t)if(Array.isArray(r))for(let i=e;i<r.length;i++)s(r[i],!1),o(r[i]);else null!=r&&(s(r,!1),o(r));else s(this,i)}const c=i=>{i.type==e.CHILD&&(i._$AP??=n,i._$AQ??=h)};class f extends t{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,t,e){super._$AT(i,t,e),r(this),this.isConnected=i._$AU}_$AO(i,t=!0){i!==this.isConnected&&(this.isConnected=i,i?this.reconnected?.():this.disconnected?.()),t&&(s(this,i),o(this))}setValue(t){if(i(this._$Ct))this._$Ct._$AI(t,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=t,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}export{f as AsyncDirective,t as Directive,e as PartType};\n//# sourceMappingURL=async-directive.js.map\n"],"names":["t","globalThis","i","s","trustedTypes","e","createPolicy","createHTML","h","o","Math","random","toFixed","slice","n","r","l","document","c","createComment","a","u","Array","isArray","f","v","_","m","p","RegExp","g","$","y","E","Symbol","for","A","C","WeakMap","P","createTreeWalker","V","hasOwnProperty","Error","N","length","d","lastIndex","exec","test","x","startsWith","push","S","constructor","strings","_$litType$","this","parts","el","createElement","currentNode","content","firstChild","replaceWith","childNodes","nextNode","nodeType","hasAttributes","getAttributeNames","endsWith","getAttribute","split","type","index","name","ctor","I","L","z","H","removeAttribute","tagName","textContent","emptyScript","append","data","indexOf","innerHTML","M","_$Co","_$Cl","_$litDirective$","_$AO","_$AT","_$AS","values","R","_$AV","_$AN","_$AD","_$AM","parentNode","_$AU","creationScope","importNode","k","nextSibling","Z","_$AI","_$Cv","_$AH","_$AA","_$AB","options","isConnected","startNode","endNode","_$AR","T","iterator","O","insertBefore","createTextNode","_$AC","get","set","_$AP","remove","setConnected","element","fill","String","j","setAttribute","super","arguments","toggleAttribute","capture","once","passive","removeEventListener","addEventListener","handleEvent","call","host","B","litHtmlPolyfillSupport","litHtmlVersions","ATTRIBUTE","CHILD","PROPERTY","BOOLEAN_ATTRIBUTE","EVENT","ELEMENT","_$Ct","_$Ci","update","render","delete","size","Set","has","add","_$AQ","reconnected","disconnected","setValue"],"mappings":";;;;;AAKK,MAACA,EAAEC,WAAWC,EAAEF,GAAGA,EAAEG,EAAEH,EAAEI,aAAaC,EAAEF,EAAEA,EAAEG,aAAa,WAAW,CAACC,WAAWP,GAAGA,SAAI,EAAOQ,EAAE,QAAQC,EAAE,OAAOC,KAAKC,SAASC,QAAQ,GAAGC,MAAM,MAAMC,EAAE,IAAIL,EAAEM,EAAE,IAAID,KAAKE,EAAEC,SAASC,EAAE,IAAIF,EAAEG,cAAc,IAAIC,EAAEpB,GAAG,OAAOA,GAAG,iBAAiBA,GAAG,mBAAmBA,EAAEqB,EAAEC,MAAMC,QAA2DC,EAAE,cAAcC,EAAE,sDAAsDC,EAAE,OAAOC,EAAE,KAAKC,EAAEC,OAAO,KAAKL,sBAAsBA,MAAMA,uCAAuC,KAAKM,EAAE,KAAKC,EAAE,KAAKC,EAAE,qCAA6GC,EAAEC,OAAOC,IAAI,gBAAgBC,EAAEF,OAAOC,IAAI,eAAeE,EAAE,IAAIC,QAAQC,EAAEvB,EAAEwB,iBAAiBxB,EAAE,KAAK,SAASyB,EAAEzC,EAAEE,GAAG,IAAImB,EAAErB,KAAKA,EAAE0C,eAAe,OAAO,MAAMC,MAAM,kCAAkC,YAAO,IAAStC,EAAEA,EAAEE,WAAWL,GAAGA,CAAC,CAAC,MAAM0C,EAAE,CAAC5C,EAAEE,KAAK,MAAMC,EAAEH,EAAE6C,OAAO,EAAExC,EAAE,GAAG,IAAIS,EAAEE,EAAE,IAAId,EAAE,QAAQ,IAAI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AAEb,IAAG,GAAIO,EAAEM,EAAEb,SAAS,MAAMa,IAAIZ,EAAEY,GAAE,GAAIN,EAAEM,SAASZ,EAAEsD,KAAKvD,EAAE,CAAC,MAAMgB,EAAEhB,IAAIA,EAAEuE,MAAMpE,EAAEiJ,QAAQpJ,EAAE6H,OAAOjH,EAAEZ,EAAEkK,OAAO5J,IAAI,MAAMgB,UAAUxB,EAAE,WAAAsD,GAAciF,SAASC,WAAW/E,KAAK0C,UAAK,CAAM,CAAC,IAAAL,CAAK5F,EAAEF,EAAEK,GAAGkI,MAAMzC,KAAK5F,EAAEF,EAAEK,GAAGU,EAAE0C,MAAMA,KAAK0D,YAAYjH,EAAEqG,IAAI,CAAC,IAAAV,CAAK3F,EAAEF,GAAE,GAAIE,IAAIuD,KAAK0D,cAAc1D,KAAK0D,YAAYjH,EAAEA,EAAEuD,KAAK4G,gBAAgB5G,KAAK6G,kBAAkBtK,IAAIG,EAAEsD,KAAKvD,GAAGO,EAAEgD,MAAM,CAAC,QAAA8G,CAASvK,GAAG,GFAvoBS,SAAG,IAASA,EAAE8C,QEA4nBrD,CAAEuD,KAAKkG,MAAMlG,KAAKkG,KAAK9C,KAAK7G,EAAEyD,UAAU,CAAC,MAAMvD,EAAE,IAAIuD,KAAKkG,KAAK5C,MAAM7G,EAAEuD,KAAKmG,MAAM5J,EAAEyD,KAAKkG,KAAK9C,KAAK3G,EAAEuD,KAAK,EAAE,CAAC,CAAC,YAAA6G,GAAgB,CAAA,WAAAD,GAAe","x_google_ignoreList":[0,1,2,3]}
@@ -680,9 +680,15 @@ declare abstract class ReactiveElement extends HTMLElement implements ReactiveCo
680
680
  * @param oldValue old value of requesting property
681
681
  * @param options property options to use instead of the previously
682
682
  * configured options
683
+ * @param useNewValue if true, the newValue argument is used instead of
684
+ * reading the property value. This is important to use if the reactive
685
+ * property is a standard private accessor, as opposed to a plain
686
+ * property, since private members can't be dynamically read by name.
687
+ * @param newValue the new value of the property. This is only used if
688
+ * `useNewValue` is true.
683
689
  * @category updates
684
690
  */
685
- requestUpdate(name?: PropertyKey, oldValue?: unknown, options?: PropertyDeclaration): void;
691
+ requestUpdate(name?: PropertyKey, oldValue?: unknown, options?: PropertyDeclaration, useNewValue?: boolean, newValue?: unknown): void;
686
692
  /**
687
693
  * Sets up the element to asynchronously update.
688
694
  */
@@ -8,13 +8,13 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
8
8
  * @license
9
9
  * Copyright 2017 Google LLC
10
10
  * SPDX-License-Identifier: BSD-3-Clause
11
- */Symbol.metadata??=Symbol("metadata"),p.litPropertyMetadata??=new WeakMap;class S extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=$){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&a(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:r}=h(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const o=i?.call(this);r?.call(this,e),this.requestUpdate(t,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??$}static _$Ei(){if(this.hasOwnProperty(E("elementProperties")))return;const t=d(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(E("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(E("properties"))){const t=this.properties,e=[...c(t),...l(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(o(t))}else void 0!==t&&e.push(o(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const s=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((s,i)=>{if(e)s.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const e of i){const i=document.createElement("style"),r=t.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=e.cssText,s.appendChild(i)}})(s,this.constructor.elementStyles),s}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:m).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:m;this._$Em=i;const o=r.fromAttribute(e,t.type);this[i]=o??this._$Ej?.get(i)??o,this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){const i=this.constructor,r=this[t];if(s??=i.getPropertyOptions(t),!((s.hasChanged??_)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:r},o){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,o??e??this[t]),!0!==r||void 0!==o)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[E("elementProperties")]=new Map,S[E("finalized")]=new Map,y?.({ReactiveElement:S}),(p.reactiveElementVersions??=[]).push("2.1.1");
11
+ */Symbol.metadata??=Symbol("metadata"),p.litPropertyMetadata??=new WeakMap;class S extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=$){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&a(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:r}=h(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const o=i?.call(this);r?.call(this,e),this.requestUpdate(t,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??$}static _$Ei(){if(this.hasOwnProperty(E("elementProperties")))return;const t=d(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(E("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(E("properties"))){const t=this.properties,e=[...c(t),...l(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(o(t))}else void 0!==t&&e.push(o(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const s=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((s,i)=>{if(e)s.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const e of i){const i=document.createElement("style"),r=t.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=e.cssText,s.appendChild(i)}})(s,this.constructor.elementStyles),s}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:m).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:m;this._$Em=i;const o=r.fromAttribute(e,t.type);this[i]=o??this._$Ej?.get(i)??o,this._$Em=null}}requestUpdate(t,e,s,i=!1,r){if(void 0!==t){const o=this.constructor;if(!1===i&&(r=this[t]),s??=o.getPropertyOptions(t),!((s.hasChanged??_)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:r},o){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,o??e??this[t]),!0!==r||void 0!==o)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[E("elementProperties")]=new Map,S[E("finalized")]=new Map,y?.({ReactiveElement:S}),(p.reactiveElementVersions??=[]).push("2.1.2");
12
12
  /**
13
13
  * @license
14
14
  * Copyright 2017 Google LLC
15
15
  * SPDX-License-Identifier: BSD-3-Clause
16
16
  */
17
- const g={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:_},b=(t=g,e,s)=>{const{kind:i,metadata:r}=s;let o=globalThis.litPropertyMetadata.get(r);if(void 0===o&&globalThis.litPropertyMetadata.set(r,o=new Map),"setter"===i&&((t=Object.create(t)).wrapped=!0),o.set(s.name,t),"accessor"===i){const{name:i}=s;return{set(s){const r=e.get.call(this);e.set.call(this,s),this.requestUpdate(i,r,t)},init(e){return void 0!==e&&this.C(i,void 0,t,e),e}}}if("setter"===i){const{name:i}=s;return function(s){const r=this[i];e.call(this,s),this.requestUpdate(i,r,t)}}throw Error("Unsupported decorator location: "+i)};function v(t){return(e,s)=>"object"==typeof s?b(t,e,s):((t,e,s)=>{const i=e.hasOwnProperty(s);return e.constructor.createProperty(s,t),i?Object.getOwnPropertyDescriptor(e,s):void 0})(t,e,s)}
17
+ const g={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:_},b=(t=g,e,s)=>{const{kind:i,metadata:r}=s;let o=globalThis.litPropertyMetadata.get(r);if(void 0===o&&globalThis.litPropertyMetadata.set(r,o=new Map),"setter"===i&&((t=Object.create(t)).wrapped=!0),o.set(s.name,t),"accessor"===i){const{name:i}=s;return{set(s){const r=e.get.call(this);e.set.call(this,s),this.requestUpdate(i,r,t,!0,s)},init(e){return void 0!==e&&this.C(i,void 0,t,e),e}}}if("setter"===i){const{name:i}=s;return function(s){const r=this[i];e.call(this,s),this.requestUpdate(i,r,t,!0,s)}}throw Error("Unsupported decorator location: "+i)};function v(t){return(e,s)=>"object"==typeof s?b(t,e,s):((t,e,s)=>{const i=e.hasOwnProperty(s);return e.constructor.createProperty(s,t),i?Object.getOwnPropertyDescriptor(e,s):void 0})(t,e,s)}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC