1/** 2 * @license 3 * Copyright 2019 Google LLC 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6const t = globalThis, 7 s = 8 t.ShadowRoot && 9 (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && 10 "adoptedStyleSheets" in Document.prototype && 11 "replace" in CSSStyleSheet.prototype, 12 i = Symbol(), 13 e = new WeakMap(); 14class n { 15 constructor(t, s, e) { 16 if (((this._$cssResult$ = !0), e !== i)) 17 throw Error( 18 "CSSResult is not constructable. Use `unsafeCSS` or `css` instead.", 19 ); 20 (this.cssText = t), (this.t = s); 21 } 22 get styleSheet() { 23 let t = this.i; 24 const i = this.t; 25 if (s && void 0 === t) { 26 const s = void 0 !== i && 1 === i.length; 27 s && (t = e.get(i)), 28 void 0 === t && 29 ((this.i = t = new CSSStyleSheet()).replaceSync(this.cssText), 30 s && e.set(i, t)); 31 } 32 return t; 33 } 34 toString() { 35 return this.cssText; 36 } 37} 38const r = (t) => new n("string" == typeof t ? t : t + "", void 0, i), 39 o = (t, ...s) => { 40 const e = 41 1 === t.length 42 ? t[0] 43 : s.reduce( 44 (s, i, e) => 45 s + 46 ((t) => { 47 if (!0 === t._$cssResult$) return t.cssText; 48 if ("number" == typeof t) return t; 49 throw Error( 50 "Value passed to 'css' function must be a 'css' function result: " + 51 t + 52 ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.", 53 ); 54 })(i) + 55 t[e + 1], 56 t[0], 57 ); 58 return new n(e, t, i); 59 }, 60 h = (i, e) => { 61 if (s) 62 i.adoptedStyleSheets = e.map((t) => 63 t instanceof CSSStyleSheet ? t : t.styleSheet, 64 ); 65 else 66 for (const s of e) { 67 const e = document.createElement("style"), 68 n = t.litNonce; 69 void 0 !== n && e.setAttribute("nonce", n), 70 (e.textContent = s.cssText), 71 i.appendChild(e); 72 } 73 }, 74 c = s 75 ? (t) => t 76 : (t) => 77 t instanceof CSSStyleSheet 78 ? ((t) => { 79 let s = ""; 80 for (const i of t.cssRules) s += i.cssText; 81 return r(s); 82 })(t) 83 : t, 84 /** 85 * @license 86 * Copyright 2017 Google LLC 87 * SPDX-License-Identifier: BSD-3-Clause 88 */ { 89 is: l, 90 defineProperty: a, 91 getOwnPropertyDescriptor: u, 92 getOwnPropertyNames: d, 93 getOwnPropertySymbols: f, 94 getPrototypeOf: p, 95 } = Object, 96 v = globalThis, 97 y = v.trustedTypes, 98 m = y ? y.emptyScript : "", 99 b = v.reactiveElementPolyfillSupport, 100 g = (t, s) => t, 101 w = { 102 toAttribute(t, s) { 103 switch (s) { 104 case Boolean: 105 t = t ? m : null; 106 break; 107 case Object: 108 case Array: 109 t = null == t ? t : JSON.stringify(t); 110 } 111 return t; 112 }, 113 fromAttribute(t, s) { 114 let i = t; 115 switch (s) { 116 case Boolean: 117 i = null !== t; 118 break; 119 case Number: 120 i = null === t ? null : Number(t); 121 break; 122 case Object: 123 case Array: 124 try { 125 i = JSON.parse(t); 126 } catch (t) { 127 i = null; 128 } 129 } 130 return i; 131 }, 132 }, 133 _ = (t, s) => !l(t, s), 134 S = { attribute: !0, type: String, converter: w, reflect: !1, hasChanged: _ }; 135(Symbol.metadata ??= Symbol("metadata")), 136 (v.litPropertyMetadata ??= new WeakMap()); 137class $ extends HTMLElement { 138 static addInitializer(t) { 139 this.o(), (this.l ??= []).push(t); 140 } 141 static get observedAttributes() { 142 return this.finalize(), this.u && [...this.u.keys()]; 143 } 144 static createProperty(t, s = S) { 145 if ( 146 (s.state && (s.attribute = !1), 147 this.o(), 148 this.elementProperties.set(t, s), 149 !s.noAccessor) 150 ) { 151 const i = Symbol(), 152 e = this.getPropertyDescriptor(t, i, s); 153 void 0 !== e && a(this.prototype, t, e); 154 } 155 } 156 static getPropertyDescriptor(t, s, i) { 157 const { get: e, set: n } = u(this.prototype, t) ?? { 158 get() { 159 return this[s]; 160 }, 161 set(t) { 162 this[s] = t; 163 }, 164 }; 165 return { 166 get() { 167 return e?.call(this); 168 }, 169 set(s) { 170 const r = e?.call(this); 171 n.call(this, s), this.requestUpdate(t, r, i); 172 }, 173 configurable: !0, 174 enumerable: !0, 175 }; 176 } 177 static getPropertyOptions(t) { 178 return this.elementProperties.get(t) ?? S; 179 } 180 static o() { 181 if (this.hasOwnProperty(g("elementProperties"))) return; 182 const t = p(this); 183 t.finalize(), 184 void 0 !== t.l && (this.l = [...t.l]), 185 (this.elementProperties = new Map(t.elementProperties)); 186 } 187 static finalize() { 188 if (this.hasOwnProperty(g("finalized"))) return; 189 if ( 190 ((this.finalized = !0), this.o(), this.hasOwnProperty(g("properties"))) 191 ) { 192 const t = this.properties, 193 s = [...d(t), ...f(t)]; 194 for (const i of s) this.createProperty(i, t[i]); 195 } 196 const t = this[Symbol.metadata]; 197 if (null !== t) { 198 const s = litPropertyMetadata.get(t); 199 if (void 0 !== s) 200 for (const [t, i] of s) this.elementProperties.set(t, i); 201 } 202 this.u = new Map(); 203 for (const [t, s] of this.elementProperties) { 204 const i = this.p(t, s); 205 void 0 !== i && this.u.set(i, t); 206 } 207 this.elementStyles = this.finalizeStyles(this.styles); 208 } 209 static finalizeStyles(t) { 210 const s = []; 211 if (Array.isArray(t)) { 212 const i = new Set(t.flat(1 / 0).reverse()); 213 for (const t of i) s.unshift(c(t)); 214 } else void 0 !== t && s.push(c(t)); 215 return s; 216 } 217 static p(t, s) { 218 const i = s.attribute; 219 return !1 === i 220 ? void 0 221 : "string" == typeof i 222 ? i 223 : "string" == typeof t 224 ? t.toLowerCase() 225 : void 0; 226 } 227 constructor() { 228 super(), 229 (this.v = void 0), 230 (this.isUpdatePending = !1), 231 (this.hasUpdated = !1), 232 (this.m = null),
233 this.g(); 234 } 235 g() { 236 (this._ = new Promise((t) => (this.enableUpdating = t))), 237 (this._$AL = new Map()), 238 this.S(), 239 this.requestUpdate(), 240 this.constructor.l?.forEach((t) => t(this)); 241 } 242 addController(t) { 243 (this.$ ??= new Set()).add(t), 244 void 0 !== this.renderRoot && this.isConnected && t.hostConnected?.(); 245 } 246 removeController(t) { 247 this.$?.delete(t); 248 } 249 S() { 250 const t = new Map(), 251 s = this.constructor.elementProperties; 252 for (const i of s.keys()) 253 this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]); 254 t.size > 0 && (this.v = t); 255 } 256 createRenderRoot() { 257 const t = 258 this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions); 259 return h(t, this.constructor.elementStyles), t; 260 } 261 connectedCallback() { 262 (this.renderRoot ??= this.createRenderRoot()), 263 this.enableUpdating(!0), 264 this.$?.forEach((t) => t.hostConnected?.()); 265 } 266 enableUpdating(t) {} 267 disconnectedCallback() { 268 this.$?.forEach((t) => t.hostDisconnected?.()); 269 } 270 attributeChangedCallback(t, s, i) { 271 this._$AK(t, i); 272 } 273 P(t, s) { 274 const i = this.constructor.elementProperties.get(t), 275 e = this.constructor.p(t, i); 276 if (void 0 !== e && !0 === i.reflect) { 277 const n = ( 278 void 0 !== i.converter?.toAttribute ? i.converter : w 279 ).toAttribute(s, i.type); 280 (this.m = t), 281 null == n ? this.removeAttribute(e) : this.setAttribute(e, n), 282 (this.m = null); 283 } 284 } 285 _$AK(t, s) { 286 const i = this.constructor, 287 e = i.u.get(t); 288 if (void 0 !== e && this.m !== e) { 289 const t = i.getPropertyOptions(e), 290 n = 291 "function" == typeof t.converter 292 ? { fromAttribute: t.converter } 293 : void 0 !== t.converter?.fromAttribute 294 ? t.converter 295 : w; 296 (this.m = e), (this[e] = n.fromAttribute(s, t.type)), (this.m = null); 297 } 298 } 299 requestUpdate(t, s, i, e = !1, n) { 300 if (void 0 !== t) { 301 if ( 302 ((i ??= this.constructor.getPropertyOptions(t)), 303 !(i.hasChanged ?? _)(e ? n : this[t], s)) 304 ) 305 return; 306 this.C(t, s, i); 307 } 308 !1 === this.isUpdatePending && (this._ = this.T()); 309 } 310 C(t, s, i) { 311 this._$AL.has(t) || this._$AL.set(t, s), 312 !0 === i.reflect && this.m !== t && (this.A ??= new Set()).add(t); 313 } 314 async T() { 315 this.isUpdatePending = !0; 316 try { 317 await this._; 318 } catch (t) { 319 Promise.reject(t); 320 } 321 const t = this.scheduleUpdate(); 322 return null != t && (await t), !this.isUpdatePending; 323 } 324 scheduleUpdate() { 325 return this.performUpdate(); 326 } 327 performUpdate() { 328 if (!this.isUpdatePending) return; 329 if (!this.hasUpdated) { 330 if (((this.renderRoot ??= this.createRenderRoot()), this.v)) { 331 for (const [t, s] of this.v) this[t] = s; 332 this.v = void 0; 333 } 334 const t = this.constructor.elementProperties; 335 if (t.size > 0) 336 for (const [s, i] of t) 337 !0 !== i.wrapped || 338 this._$AL.has(s) || 339 void 0 === this[s] || 340 this.C(s, this[s], i); 341 } 342 let t = !1; 343 const s = this._$AL; 344 try { 345 (t = this.shouldUpdate(s)), 346 t 347 ? (this.willUpdate(s), 348 this.$?.forEach((t) => t.hostUpdate?.()), 349 this.update(s)) 350 : this.M(); 351 } catch (s) { 352 throw ((t = !1), this.M(), s); 353 } 354 t && this._$AE(s); 355 } 356 willUpdate(t) {} 357 _$AE(t) { 358 this.$?.forEach((t) => t.hostUpdated?.()), 359 this.hasUpdated || ((this.hasUpdated = !0), this.firstUpdated(t)), 360 this.updated(t); 361 } 362 M() { 363 (this._$AL = new Map()), (this.isUpdatePending = !1); 364 } 365 get updateComplete() { 366 return this.getUpdateComplete(); 367 } 368 getUpdateComplete() { 369 return this._; 370 } 371 shouldUpdate(t) { 372 return !0; 373 } 374 update(t) { 375 (this.A &&= this.A.forEach((t) => this.P(t, this[t]))), this.M(); 376 } 377 updated(t) {} 378 firstUpdated(t) {} 379} 380($.elementStyles = []), 381 ($.shadowRootOptions = { mode: "open" }), 382 ($[g("elementProperties")] = new Map()), 383 ($[g("finalized")] = new Map()), 384 b?.({ ReactiveElement: $ }), 385 (v.reactiveElementVersions ??= []).push("2.0.2"); 386/** 387 * @license 388 * Copyright 2017 Google LLC 389 * SPDX-License-Identifier: BSD-3-Clause 390 */ 391const T = globalThis, 392 x = T.trustedTypes, 393 E = x ? x.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, 394 C = "$lit$", 395 P = `lit$${(Math.random() + "").slice(9)}$`, 396 A = "?" + P, 397 k = `<${A}>`, 398 M = document, 399 U = () => M.createComment(""), 400 V = (t) => null === t || ("object" != typeof t && "function" != typeof t), 401 O = Array.isArray, 402 R = (t) => O(t) || "function" == typeof t?.[Symbol.iterator], 403 N = "[ \t\n\f\r]", 404 z = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, 405 L = /-->/g, 406 j = />/g, 407 H = RegExp( 408 `>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}
408*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, 409 "g", 410 ), 411 I = /'/g, 412 D = /"/g, 413 B = /^(?:script|style|textarea|title)$/i, 414 W = 415 (t) => 416 (s, ...i) => ({ _$litType$: t, strings: s, values: i }), 417 Z = W(1), 418 q = W(2), 419 F = Symbol.for("lit-noChange"), 420 G = Symbol.for("lit-nothing"), 421 J = new WeakMap(), 422 K = M.createTreeWalker(M, 129); 423function Y(t, s) { 424 if (!Array.isArray(t) || !t.hasOwnProperty("raw")) 425 throw Error("invalid template strings array"); 426 return void 0 !== E ? E.createHTML(s) : s; 427} 428const Q = (t, s) => { 429 const i = t.length - 1, 430 e = []; 431 let n, 432 r = 2 === s ? "<svg>" : "", 433 o = z; 434 for (let s = 0; s < i; s++) { 435 const i = t[s]; 436 let h, 437 c, 438 l = -1, 439 a = 0; 440 for (; a < i.length && ((o.lastIndex = a), (c = o.exec(i)), null !== c); ) 441 (a = o.lastIndex), 442 o === z 443 ? "!--" === c[1] 444 ? (o = L) 445 : void 0 !== c[1] 446 ? (o = j) 447 : void 0 !== c[2] 448 ? (B.test(c[2]) && (n = RegExp("</" + c[2], "g")), (o = H)) 449 : void 0 !== c[3] && (o = H) 450 : o === H 451 ? ">" === c[0] 452 ? ((o = n ?? z), (l = -1)) 453 : void 0 === c[1] 454 ? (l = -2) 455 : ((l = o.lastIndex - c[2].length), 456 (h = c[1]), 457 (o = void 0 === c[3] ? H : '"' === c[3] ? D : I)) 458 : o === D || o === I
459 ? (o = H) 460 : o === L || o === j 461 ? (o = z) 462 : ((o = H), (n = void 0)); 463 const u = o === H && t[s + 1].startsWith("/>") ? " " : ""; 464 r += 465 o === z 466 ? i + k 467 : l >= 0 468 ? (e.push(h), i.slice(0, l) + C + i.slice(l) + P + u) 469 : i + P + (-2 === l ? s : u); 470 } 471 return [Y(t, r + (t[i] || "<?>") + (2 === s ? "</svg>" : "")), e]; 472}; 473class X { 474 constructor({ strings: t, _$litType$: s }, i) { 475 let e; 476 this.parts = []; 477 let n = 0, 478 r = 0; 479 const o = t.length - 1, 480 h = this.parts, 481 [c, l] = Q(t, s); 482 if ( 483 ((this.el = X.createElement(c, i)), 484 (K.currentNode = this.el.content), 485 2 === s) 486 ) { 487 const t = this.el.content.firstChild; 488 t.replaceWith(...t.childNodes); 489 } 490 for (; null !== (e = K.nextNode()) && h.length < o; ) { 491 if (1 === e.nodeType) { 492 if (e.hasAttributes()) 493 for (const t of e.getAttributeNames()) 494 if (t.endsWith(C)) { 495 const s = l[r++], 496 i = e.getAttribute(t).split(P), 497 o = /([.?@])?(.*)/.exec(s); 498 h.push({ 499 type: 1, 500 index: n, 501 name: o[2], 502 strings: i, 503 ctor: 504 "." === o[1] 505 ? nt 506 : "?" === o[1] 507 ? rt 508 : "@" === o[1] 509 ? ot 510 : et, 511 }), 512 e.removeAttribute(t); 513 } else 514 t.startsWith(P) && 515 (h.push({ type: 6, index: n }), e.removeAttribute(t)); 516 if (B.test(e.tagName)) { 517 const t = e.textContent.split(P), 518 s = t.length - 1; 519 if (s > 0) { 520 e.textContent = x ? x.emptyScript : ""; 521 for (let i = 0; i < s; i++) 522 e.append(t[i], U()), 523 K.nextNode(), 524 h.push({ type: 2, index: ++n }); 525 e.append(t[s], U()); 526 } 527 } 528 } else if (8 === e.nodeType) 529 if (e.data === A) h.push({ type: 2, index: n }); 530 else { 531 let t = -1; 532 for (; -1 !== (t = e.data.indexOf(P, t + 1)); ) 533 h.push({ type: 7, index: n }), (t += P.length - 1); 534 } 535 n++; 536 } 537 } 538 static createElement(t, s) { 539 const i = M.createElement("template"); 540 return (i.innerHTML = t), i; 541 } 542} 543function tt(t, s, i = t, e) { 544 if (s === F) return s; 545 let n = void 0 !== e ? i.k?.[e] : i.U; 546 const r = V(s) ? void 0 : s._$litDirective$; 547 return ( 548 n?.constructor !== r && 549 (n?._$AO?.(!1), 550 void 0 === r ? (n = void 0) : ((n = new r(t)), n._$AT(t, i, e)), 551 void 0 !== e ? ((i.k ??= [])[e] = n) : (i.U = n)), 552 void 0 !== n && (s = tt(t, n._$AS(t, s.values), n, e)), 553 s 554 ); 555} 556class st { 557 constructor(t, s) { 558 (this._$AV = []), (this._$AN = void 0), (this._$AD = t), (this._$AM = s); 559 } 560 get parentNode() { 561 return this._$AM.parentNode; 562 } 563 get _$AU() { 564 return this._$AM._$AU; 565 } 566 N(t) { 567 const { 568 el: { content: s }, 569 parts: i, 570 } = this._$AD, 571 e = (t?.creationScope ?? M).importNode(s, !0); 572 K.currentNode = e; 573 let n = K.nextNode(), 574 r = 0, 575 o = 0, 576 h = i[0]; 577 for (; void 0 !== h; ) { 578 if (r === h.index) { 579 let s; 580 2 === h.type 581 ? (s = new it(n, n.nextSibling, this, t)) 582 : 1 === h.type 583 ? (s = new h.ctor(n, h.name, h.strings, this, t)) 584 : 6 === h.type && (s = new ht(n, this, t)), 585 this._$AV.push(s), 586 (h = i[++o]); 587 } 588 r !== h?.index && ((n = K.nextNode()), r++); 589 } 590 return (K.currentNode = M), e; 591 } 592 O(t) { 593 let s = 0; 594 for (const i of this._$AV) 595 void 0 !== i && 596 (void 0 !== i.strings 597 ? (i._$AI(t, i, s), (s += i.strings.length - 2)) 598 : i._$AI(t[s])), 599 s++; 600 } 601} 602class it { 603 get _$AU() { 604 return this._$AM?._$AU ?? this.R; 605 } 606 constructor(t, s, i, e) { 607 (this.type = 2), 608 (this._$AH = G), 609 (this._$AN = void 0), 610 (this._$AA = t), 611 (this._$AB = s), 612 (this._$AM = i), 613 (this.options = e), 614 (this.R = e?.isConnected ?? !0); 615 } 616 get parentNode() { 617 let t = this._$AA.parentNode; 618 const s = this._$AM; 619 return void 0 !== s && 11 === t?.nodeType && (t = s.parentNode), t; 620 } 621 get startNode() { 622 return this._$AA; 623 } 624 get endNode() { 625 return this._$AB; 626 } 627 _$AI(t, s = this) { 628 (t = tt(this, t, s)), 629 V(t) 630 ? t === G || null == t || "" === t 631 ? (this._$AH !== G && this._$AR(), (this._$AH = G)) 632 : t !== this._$AH && t !== F && this.V(t) 633 : void 0 !== t._$litType$ 634 ? this.L(t) 635 : void 0 !== t.nodeType 636 ? this.I(t) 637 : R(t) 638 ? this.j(t) 639 : this.V(t); 640 } 641 D(t) { 642 return this._$AA.parentNode.insertBefore(t, this._$AB); 643 } 644 I(t) { 645 this._$AH !== t && (this._$AR(), (this._$AH = this.D(t))); 646 } 647 V(t) { 648 this._$AH !== G && V(this._$AH) 649 ? (this._$AA.nextSibling.data = t) 650 : this.I(M.createTextNode(t)), 651 (this._$AH = t); 652 } 653 L(t) { 654 const { values: s, _$litType$: i } = t, 655 e = 656 "number" == typeof i 657 ? this._$AC(t) 658 : (void 0 === i.el && 659 (i.el = X.createElement(Y(i.h, i.h[0]), this.options)), 660 i); 661 if (this._$AH?._$AD === e) this._$AH.O(s); 662 else {
663 const t = new st(e, this), 664 i = t.N(this.options); 665 t.O(s), this.I(i), (this._$AH = t); 666 } 667 } 668 _$AC(t) { 669 let s = J.get(t.strings); 670 return void 0 === s && J.set(t.strings, (s = new X(t))), s; 671 } 672 j(t) { 673 O(this._$AH) || ((this._$AH = []), this._$AR()); 674 const s = this._$AH; 675 let i, 676 e = 0; 677 for (const n of t) 678 e === s.length 679 ? s.push((i = new it(this.D(U()), this.D(U()), this, this.options))) 680 : (i = s[e]), 681 i._$AI(n), 682 e++; 683 e < s.length && (this._$AR(i && i._$AB.nextSibling, e), (s.length = e)); 684 } 685 _$AR(t = this._$AA.nextSibling, s) { 686 for (this._$AP?.(!1, !0, s); t && t !== this._$AB; ) { 687 const s = t.nextSibling; 688 t.remove(), (t = s); 689 } 690 } 691 setConnected(t) { 692 void 0 === this._$AM && ((this.R = t), this._$AP?.(t)); 693 } 694} 695class et { 696 get tagName() { 697 return this.element.tagName; 698 } 699 get _$AU() { 700 return this._$AM._$AU; 701 } 702 constructor(t, s, i, e, n) { 703 (this.type = 1), 704 (this._$AH = G), 705 (this._$AN = void 0), 706 (this.element = t), 707 (this.name = s), 708 (this._$AM = e), 709 (this.options = n), 710 i.length > 2 || "" !== i[0] || "" !== i[1] 711 ? ((this._$AH = Array(i.length - 1).fill(new String())), 712 (this.strings = i)) 713 : (this._$AH = G); 714 } 715 _$AI(t, s = this, i, e) { 716 const n = this.strings; 717 let r = !1; 718 if (void 0 === n) 719 (t = tt(this, t, s, 0)), 720 (r = !V(t) || (t !== this._$AH && t !== F)), 721 r && (this._$AH = t); 722 else { 723 const e = t; 724 let o, h; 725 for (t = n[0], o = 0; o < n.length - 1; o++) 726 (h = tt(this, e[i + o], s, o)), 727 h === F && (h = this._$AH[o]), 728 (r ||= !V(h) || h !== this._$AH[o]), 729 h === G ? (t = G) : t !== G && (t += (h ?? "") + n[o + 1]), 730 (this._$AH[o] = h); 731 } 732 r && !e && this.H(t); 733 } 734 H(t) { 735 t === G 736 ? this.element.removeAttribute(this.name) 737 : this.element.setAttribute(this.name, t ?? ""); 738 } 739} 740class nt extends et { 741 constructor() { 742 super(...arguments), (this.type = 3); 743 } 744 H(t) { 745 this.element[this.name] = t === G ? void 0 : t; 746 } 747} 748class rt extends et { 749 constructor() { 750 super(...arguments), (this.type = 4); 751 } 752 H(t) { 753 this.element.toggleAttribute(this.name, !!t && t !== G); 754 } 755} 756class ot extends et { 757 constructor(t, s, i, e, n) { 758 super(t, s, i, e, n), (this.type = 5); 759 } 760 _$AI(t, s = this) { 761 if ((t = tt(this, t, s, 0) ?? G) === F) return; 762 const i = this._$AH, 763 e = 764 (t === G && i !== G) || 765 t.capture !== i.capture || 766 t.once !== i.once || 767 t.passive !== i.passive, 768 n = t !== G && (i === G || e); 769 e && this.element.removeEventListener(this.name, this, i), 770 n && this.element.addEventListener(this.name, this, t), 771 (this._$AH = t); 772 } 773 handleEvent(t) { 774 "function" == typeof this._$AH 775 ? this._$AH.call(this.options?.host ?? this.element, t) 776 : this._$AH.handleEvent(t); 777 } 778} 779class ht { 780 constructor(t, s, i) { 781 (this.element = t), 782 (this.type = 6), 783 (this._$AN = void 0), 784 (this._$AM = s), 785 (this.options = i); 786 } 787 get _$AU() { 788 return this._$AM._$AU; 789 } 790 _$AI(t) { 791 tt(this, t); 792 } 793} 794const ct = { 795 B: C, 796 W: P, 797 q: A, 798 J: 1, 799 Z: Q, 800 F: st, 801 G: R, 802 K: tt, 803 X: it, 804 Y: et, 805 tt: rt, 806 st: ot, 807 it: nt, 808 et: ht, 809 }, 810 lt = T.litHtmlPolyfillSupport; 811lt?.(X, it), (T.litHtmlVersions ??= []).push("3.1.0"); 812const at = (t, s, i) => { 813 const e = i?.renderBefore ?? s; 814 let n = e._$litPart$; 815 if (void 0 === n) { 816 const t = i?.renderBefore ?? null; 817 e._$litPart$ = n = new it(s.insertBefore(U(), t), t, void 0, i ?? {}); 818 } 819 return n._$AI(t), n; 820}; 821/** 822 * @license 823 * Copyright 2017 Google LLC 824 * SPDX-License-Identifier: BSD-3-Clause 825 */ class ut extends $ { 826 constructor() { 827 super(...arguments), 828 (this.renderOptions = { host: this }), 829 (this.ot = void 0); 830 } 831 createRenderRoot() { 832 const t = super.createRenderRoot(); 833 return (this.renderOptions.renderBefore ??= t.firstChild), t; 834 } 835 update(t) { 836 const s = this.render(); 837 this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), 838 super.update(t), 839 (this.ot = at(s, this.renderRoot, this.renderOptions)); 840 } 841 connectedCallback() { 842 super.connectedCallback(), this.ot?.setConnected(!0); 843 } 844 disconnectedCallback() { 845 super.disconnectedCallback(), this.ot?.setConnected(!1); 846 } 847 render() { 848 return F; 849 } 850} 851(ut._$litElement$ = !0), 852 (ut[("finalized", "finalized")] = !0), 853 globalThis.litElementHydrateSupport?.({ LitElement: ut }); 854const dt = globalThis.litElementPolyfillSupport; 855dt?.({ LitElement: ut }); 856const ft = { 857 _$AK: (t, s, i) => { 858 t._$AK(s, i); 859 }, 860 _$AL: (t) => t._$AL, 861}; 862(globalThis.litElementVersions ??= []).push("4.0.2"); 863/** 864 * @license 865 * Copyright 2022 Google LLC 866 * SPDX-License-Identifier: BSD-3-Clause 867 */ 868const pt = !1, 869 { X: vt } = ct, 870 yt = (t) => null === t || ("object" != typeof t && "function" != typeof t), 871 mt = { HTML: 1, SVG: 2 }, 872 bt = (t, s) => 873 void 0 === s ? void 0 !== t?._$litType$ : t?._$litType$ === s, 874 gt = (t) => null != t?._$litType$?.h, 875 wt = (t) => void 0 !== t?._$litDirective$, 876 _t = (t) => t?._$litDirective$, 877 St = (t) => void 0 === t.strings, 878 $t = () => document.createComment(""), 879 Tt = (t, s, i) => { 880 const e = t._$AA.parentNode, 881 n = void 0 === s ? t._$AB : s._$AA; 882 if (void 0 === i) { 883 const s = e.insertBefore($t(), n), 884 r = e.insertBefore($t(), n); 885 i = new vt(s, r, t, t.options); 886 } else {
887 const s = i._$AB.nextSibling, 888 r = i._$AM, 889 o = r !== t; 890 if (o) { 891 let s; 892 i._$AQ?.(t), 893 (i._$AM = t), 894 void 0 !== i._$AP && (s = t._$AU) !== r._$AU && i._$AP(s); 895 } 896 if (s !== n || o) { 897 let t = i._$AA; 898 for (; t !== s; ) { 899 const s = t.nextSibling; 900 e.insertBefore(t, n), (t = s); 901 } 902 } 903 } 904 return i; 905 }, 906 xt = (t, s, i = t) => (t._$AI(s, i), t), 907 Et = {}, 908 Ct = (t, s = Et) => (t._$AH = s), 909 Pt = (t) => t._$AH, 910 At = (t) => { 911 t._$AP?.(!1, !0); 912 let s = t._$AA; 913 const i = t._$AB.nextSibling; 914 for (; s !== i; ) { 915 const t = s.nextSibling; 916 s.remove(), (s = t); 917 } 918 }, 919 kt = (t) => { 920 t._$AR(); 921 }, 922 Mt = { 923 ATTRIBUTE: 1, 924 CHILD: 2, 925 PROPERTY: 3, 926 BOOLEAN_ATTRIBUTE: 4, 927 EVENT: 5, 928 ELEMENT: 6, 929 }, 930 Ut = 931 (t) => 932 (...s) => ({ _$litDirective$: t, values: s }); 933class Vt { 934 constructor(t) {} 935 get _$AU() { 936 return this._$AM._$AU; 937 } 938 _$AT(t, s, i) { 939 (this.nt = t), (this._$AM = s), (this.rt = i); 940 } 941 _$AS(t, s) { 942 return this.update(t, s); 943 } 944 update(t, s) { 945 return this.render(...s); 946 } 947} 948/** 949 * @license 950 * Copyright 2017 Google LLC 951 * SPDX-License-Identifier: BSD-3-Clause 952 */ const Ot = (t, s) => { 953 const i = t._$AN; 954 if (void 0 === i) return !1; 955 for (const t of i) t._$AO?.(s, !1), Ot(t, s); 956 return !0; 957 }, 958 Rt = (t) => { 959 let s, i; 960 do { 961 if (void 0 === (s = t._$AM)) break; 962 (i = s._$AN), i.delete(t), (t = s); 963 } while (0 === i?.size); 964 }, 965 Nt = (t) => { 966 for (let s; (s = t._$AM); t = s) { 967 let i = s._$AN; 968 if (void 0 === i) s._$AN = i = new Set(); 969 else if (i.has(t)) break; 970 i.add(t), jt(s); 971 } 972 }; 973function zt(t) { 974 void 0 !== this._$AN 975 ? (Rt(this), (this._$AM = t), Nt(this)) 976 : (this._$AM = t); 977} 978function Lt(t, s = !1, i = 0) { 979 const e = this._$AH, 980 n = this._$AN; 981 if (void 0 !== n && 0 !== n.size) 982 if (s) 983 if (Array.isArray(e)) 984 for (let t = i; t < e.length; t++) Ot(e[t], !1), Rt(e[t]); 985 else null != e && (Ot(e, !1), Rt(e)); 986 else Ot(this, t); 987} 988const jt = (t) => { 989 2 == t.type && ((t._$AP ??= Lt), (t._$AQ ??= zt)); 990}; 991class Ht extends Vt { 992 constructor() { 993 super(...arguments), (this._$AN = void 0); 994 } 995 _$AT(t, s, i) { 996 super._$AT(t, s, i), Nt(this), (this.isConnected = t._$AU); 997 } 998 _$AO(t, s = !0) { 999 t !== this.isConnected && 1000 ((this.isConnected = t), 1001 t ? this.reconnected?.() : this.disconnected?.()), 1002 s && (Ot(this, t), Rt(this)); 1003 } 1004 setValue(t) { 1005 if (St(this.nt)) this.nt._$AI(t, this); 1006 else { 1007 const s = [...this.nt._$AH]; 1008 (s[this.rt] = t), this.nt._$AI(s, this, 0); 1009 } 1010 } 1011 disconnected() {} 1012 reconnected() {} 1013} 1014/** 1015 * @license 1016 * Copyright 2021 Google LLC 1017 * SPDX-License-Identifier: BSD-3-Clause 1018 */ class It { 1019 constructor(t) { 1020 this.ht = t; 1021 } 1022 disconnect() { 1023 this.ht = void 0; 1024 } 1025 reconnect(t) { 1026 this.ht = t; 1027 } 1028 deref() { 1029 return this.ht; 1030 } 1031} 1032class Dt { 1033 constructor() { 1034 (this.ct = void 0), (this.lt = void 0); 1035 } 1036 get() { 1037 return this.ct; 1038 } 1039 pause() { 1040 this.ct ??= new Promise((t) => (this.lt = t)); 1041 } 1042 resume() { 1043 this.lt?.(), (this.ct = this.lt = void 0); 1044 } 1045} 1046/** 1047 * @license 1048 * Copyright 2017 Google LLC 1049 * SPDX-License-Identifier: BSD-3-Clause 1050 */ class Bt extends Ht { 1051 constructor() { 1052 super(...arguments), (this.ut = new It(this)), (this.dt = new Dt()); 1053 } 1054 render(t, s) { 1055 return F; 1056 } 1057 update(t, [s, i]) { 1058 if ((this.isConnected || this.disconnected(), s === this.ft)) return; 1059 this.ft = s; 1060 let e = 0; 1061 const { ut: n, dt: r } = this; 1062 return ( 1063 (async (t, s) => { 1064 for await (const i of t) if (!1 === (await s(i))) return; 1065 })(s, async (t) => { 1066 for (; r.get(); ) await r.get(); 1067 const o = n.deref(); 1068 if (void 0 !== o) { 1069 if (o.ft !== s) return !1; 1070 void 0 !== i && (t = i(t, e)), o.commitValue(t, e), e++; 1071 } 1072 return !0; 1073 }), 1074 F 1075 ); 1076 } 1077 commitValue(t, s) { 1078 this.setValue(t); 1079 } 1080 disconnected() { 1081 this.ut.disconnect(), this.dt.pause(); 1082 } 1083 reconnected() { 1084 this.ut.reconnect(this), this.dt.resume(); 1085 } 1086} 1087const Wt = Ut(Bt), 1088 Zt = Ut( 1089 /** 1090 * @license 1091 * Copyright 2017 Google LLC 1092 * SPDX-License-Identifier: BSD-3-Clause 1093 */ 1094 class extends Bt { 1095 constructor(t) { 1096 if ((super(t), 2 !== t.type)) 1097 throw Error("asyncAppend can only be used in child expressions"); 1098 } 1099 update(t, s) { 1100 return (this.ot = t), super.update(t, s); 1101 } 1102 commitValue(t, s) { 1103 0 === s && kt(this.ot); 1104 const i = Tt(this.ot); 1105 xt(i, t); 1106 } 1107 }, 1108 ), 1109 qt = (t) => (gt(t) ? t._$litType$.h : t.strings), 1110 Ft = Ut( 1111 class extends Vt {
1112 constructor(t) { 1113 super(t), (this.vt = new WeakMap()); 1114 } 1115 render(t) { 1116 return [t]; 1117 } 1118 update(t, [s]) { 1119 const i = bt(this.yt) ? qt(this.yt) : null, 1120 e = bt(s) ? qt(s) : null; 1121 if (null !== i && (null === e || i !== e)) { 1122 const s = Pt(t).pop(); 1123 let e = this.vt.get(i); 1124 if (void 0 === e) { 1125 const t = document.createDocumentFragment(); 1126 (e = at(G, t)), e.setConnected(!1), this.vt.set(i, e); 1127 } 1128 Ct(e, [s]), Tt(e, void 0, s); 1129 } 1130 if (null !== e) { 1131 if (null === i || i !== e) { 1132 const s = this.vt.get(e); 1133 if (void 0 !== s) { 1134 const i = Pt(s).pop(); 1135 kt(t), Tt(t, void 0, i), Ct(t, [i]); 1136 } 1137 } 1138 this.yt = s; 1139 } else this.yt = void 0; 1140 return this.render(s); 1141 } 1142 }, 1143 ), 1144 Gt = (t, s, i) => { 1145 for (const i of s) if (i[0] === t) return (0, i[1])(); 1146 return i?.(); 1147 }, 1148 Jt = Ut( 1149 /** 1150 * @license 1151 * Copyright 2018 Google LLC 1152 * SPDX-License-Identifier: BSD-3-Clause 1153 */ 1154 class extends Vt { 1155 constructor(t) { 1156 if ( 1157 (super(t), 1158 1 !== t.type || "class" !== t.name || t.strings?.length > 2) 1159 ) 1160 throw Error(
1161 "`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.", 1162 ); 1163 } 1164 render(t) { 1165 return ( 1166 " " + 1167 Object.keys(t) 1168 .filter((s) => t[s]) 1169 .join(" ") + 1170 " " 1171 ); 1172 } 1173 update(t, [s]) { 1174 if (void 0 === this.bt) { 1175 (this.bt = new Set()), 1176 void 0 !== t.strings && 1177 (this.gt = new Set( 1178 t.strings 1179 .join(" ") 1180 .split(/\s/) 1181 .filter((t) => "" !== t), 1182 )); 1183 for (const t in s) s[t] && !this.gt?.has(t) && this.bt.add(t); 1184 return this.render(s); 1185 } 1186 const i = t.element.classList; 1187 for (const t of this.bt) t in s || (i.remove(t), this.bt.delete(t)); 1188 for (const t in s) { 1189 const e = !!s[t]; 1190 e === this.bt.has(t) || 1191 this.gt?.has(t) || 1192 (e ? (i.add(t), this.bt.add(t)) : (i.remove(t), this.bt.delete(t))); 1193 } 1194 return F; 1195 } 1196 }, 1197 ), 1198 Kt = {}, 1199 Yt = Ut( 1200 class extends Vt { 1201 constructor() { 1202 super(...arguments), (this.wt = Kt); 1203 } 1204 render(t, s) { 1205 return s(); 1206 } 1207 update(t, [s, i]) { 1208 if (Array.isArray(s)) { 1209 if ( 1210 Array.isArray(this.wt) && 1211 this.wt.length === s.length && 1212 s.every((t, s) => t === this.wt[s]) 1213 ) 1214 return F; 1215 } else if (this.wt === s) return F; 1216 return ( 1217 (this.wt = Array.isArray(s) ? Array.from(s) : s), this.render(s, i) 1218 ); 1219 } 1220 }, 1221 ), 1222 Qt = (t) => t ?? G; 1223/** 1224 * @license 1225 * Copyright 2021 Google LLC 1226 * SPDX-License-Identifier: BSD-3-Clause 1227 */ function* Xt(t, s) { 1228 const i = "function" == typeof s; 1229 if (void 0 !== t) { 1230 let e = -1; 1231 for (const n of t) e > -1 && (yield i ? s(e) : s), e++, yield n; 1232 } 1233} 1234/** 1235 * @license 1236 * Copyright 2021 Google LLC 1237 * SPDX-License-Identifier: BSD-3-Clause 1238 */ const ts = Ut( 1239 class extends Vt { 1240 constructor() { 1241 super(...arguments), (this.key = G); 1242 } 1243 render(t, s) { 1244 return (this.key = t), s; 1245 } 1246 update(t, [s, i]) { 1247 return s !== this.key && (Ct(t), (this.key = s)), i; 1248 } 1249 }, 1250 ), 1251 ss = Ut( 1252 /** 1253 * @license 1254 * Copyright 2020 Google LLC 1255 * SPDX-License-Identifier: BSD-3-Clause 1256 */ 1257 class extends Vt { 1258 constructor(t) { 1259 if ((super(t), 3 !== t.type && 1 !== t.type && 4 !== t.type)) 1260 throw Error( 1261 "The `live` directive is not allowed on child or event bindings", 1262 ); 1263 if (!St(t)) 1264 throw Error("`live` bindings can only contain a single expression"); 1265 } 1266 render(t) { 1267 return t; 1268 } 1269 update(t, [s]) { 1270 if (s === F || s === G) return s; 1271 const i = t.element, 1272 e = t.name; 1273 if (3 === t.type) { 1274 if (s === i[e]) return F; 1275 } else if (4 === t.type) { 1276 if (!!s === i.hasAttribute(e)) return F; 1277 } else if (1 === t.type && i.getAttribute(e) === s + "") return F; 1278 return Ct(t), s; 1279 } 1280 }, 1281 ); 1282/** 1283 * @license 1284 * Copyright 2021 Google LLC 1285 * SPDX-License-Identifier: BSD-3-Clause 1286 */ 1287function* is(t, s) { 1288 if (void 0 !== t) { 1289 let i = 0; 1290 for (const e of t) yield s(e, i++); 1291 } 1292} 1293/** 1294 * @license 1295 * Copyright 2021 Google LLC 1296 * SPDX-License-Identifier: BSD-3-Clause 1297 */ function* es(t, s, i = 1) { 1298 const e = void 0 === s ? 0 : t; 1299 s ??= t; 1300 for (let t = e; i > 0 ? t < s : s < t; t += i) yield t; 1301} 1302/** 1303 * @license 1304 * Copyright 2020 Google LLC 1305 * SPDX-License-Identifier: BSD-3-Clause 1306 */ const ns = () => new rs(); 1307class rs {} 1308const os = new WeakMap(), 1309 hs = Ut( 1310 class extends Ht { 1311 render(t) { 1312 return G; 1313 } 1314 update(t, [s]) { 1315 const i = s !== this.ht; 1316 return ( 1317 i && void 0 !== this.ht && this._t(void 0), 1318 (i || this.St !== this.$t) && 1319 ((this.ht = s), 1320 (this.Tt = t.options?.host), 1321 this._t((this.$t = t.element))), 1322 G 1323 ); 1324 } 1325 _t(t) { 1326 if ("function" == typeof this.ht) { 1327 const s = this.Tt ?? globalThis; 1328 let i = os.get(s); 1329 void 0 === i && ((i = new WeakMap()), os.set(s, i)), 1330 void 0 !== i.get(this.ht) && this.ht.call(this.Tt, void 0), 1331 i.set(this.ht, t), 1332 void 0 !== t && this.ht.call(this.Tt, t); 1333 } else this.ht.value = t; 1334 } 1335 get St() { 1336 return "function" == typeof this.ht 1337 ? os.get(this.Tt ?? globalThis)?.get(this.ht) 1338 : this.ht?.value; 1339 } 1340 disconnected() { 1341 this.St === this.$t && this._t(void 0); 1342 } 1343 reconnected() { 1344 this._t(this.$t); 1345 } 1346 }, 1347 ), 1348 cs = (t, s, i) => { 1349 const e = new Map(); 1350 for (let n = s;
1350 n <= i; n++) e.set(t[n], n); 1351 return e; 1352 }, 1353 ls = Ut( 1354 class extends Vt { 1355 constructor(t) { 1356 if ((super(t), 2 !== t.type)) 1357 throw Error("repeat() can only be used in text expressions"); 1358 } 1359 xt(t, s, i) { 1360 let e; 1361 void 0 === i ? (i = s) : void 0 !== s && (e = s); 1362 const n = [], 1363 r = []; 1364 let o = 0; 1365 for (const s of t) (n[o] = e ? e(s, o) : o), (r[o] = i(s, o)), o++; 1366 return { values: r, keys: n }; 1367 } 1368 render(t, s, i) { 1369 return this.xt(t, s, i).values; 1370 } 1371 update(t, [s, i, e]) { 1372 const n = Pt(t), 1373 { values: r, keys: o } = this.xt(s, i, e); 1374 if (!Array.isArray(n)) return (this.Et = o), r; 1375 const h = (this.Et ??= []), 1376 c = []; 1377 let l, 1378 a, 1379 u = 0, 1380 d = n.length - 1, 1381 f = 0, 1382 p = r.length - 1; 1383 for (; u <= d && f <= p; ) 1384 if (null === n[u]) u++; 1385 else if (null === n[d]) d--; 1386 else if (h[u] === o[f]) (c[f] = xt(n[u], r[f])), u++, f++; 1387 else if (h[d] === o[p]) (c[p] = xt(n[d], r[p])), d--, p--; 1388 else if (h[u] === o[p]) 1389 (c[p] = xt(n[u], r[p])), Tt(t, c[p + 1], n[u]), u++, p--; 1390 else if (h[d] === o[f]) 1391 (c[f] = xt(n[d], r[f])), Tt(t, n[u], n[d]), d--, f++; 1392 else if ( 1393 (void 0 === l && ((l = cs(o, f, p)), (a = cs(h, u, d))), 1394 l.has(h[u])) 1395 ) 1396 if (l.has(h[d])) { 1397 const s = a.get(o[f]), 1398 i = void 0 !== s ? n[s] : null; 1399 if (null === i) { 1400 const s = Tt(t, n[u]); 1401 xt(s, r[f]), (c[f] = s); 1402 } else (c[f] = xt(i, r[f])), Tt(t, n[u], i), (n[s] = null); 1403 f++; 1404 } else At(n[d]), d--; 1405 else At(n[u]), u++; 1406 for (; f <= p; ) { 1407 const s = Tt(t, c[p + 1]); 1408 xt(s, r[f]), (c[f++] = s); 1409 } 1410 for (; u <= d; ) { 1411 const t = n[u++]; 1412 null !== t && At(t); 1413 } 1414 return (this.Et = o), Ct(t, c), F; 1415 } 1416 }, 1417 ), 1418 as = "important", 1419 us = " !" + as, 1420 ds = Ut( 1421 class extends Vt { 1422 constructor(t) { 1423 if ( 1424 (super(t), 1425 1 !== t.type || "style" !== t.name || t.strings?.length > 2) 1426 ) 1427 throw Error( 1428 "The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.", 1429 ); 1430 } 1431 render(t) { 1432 return Object.keys(t).reduce((s, i) => { 1433 const e = t[i]; 1434 return null == e 1435 ? s 1436 : s + 1437 `${(i = i.includes("-") ? i : i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase())}:${e};`; 1438 }, ""); 1439 } 1440 update(t, [s]) { 1441 const { style: i } = t.element; 1442 if (void 0 === this.Ct) 1443 return (this.Ct = new Set(Object.keys(s))), this.render(s); 1444 for (const t of this.Ct) 1445 null == s[t] && 1446 (this.Ct.delete(t), 1447 t.includes("-") ? i.removeProperty(t) : (i[t] = null)); 1448 for (const t in s) { 1449 const e = s[t]; 1450 if (null != e) { 1451 this.Ct.add(t); 1452 const s = "string" == typeof e && e.endsWith(us); 1453 t.includes("-") || s 1454 ? i.setProperty(t, s ? e.slice(0, -11) : e, s ? as : "") 1455 : (i[t] = e); 1456 } 1457 } 1458 return F; 1459 } 1460 }, 1461 ), 1462 fs = Ut( 1463 /** 1464 * @license 1465 * Copyright 2020 Google LLC 1466 * SPDX-License-Identifier: BSD-3-Clause 1467 */ 1468 class extends Vt { 1469 constructor(t) { 1470 if ((super(t), 2 !== t.type)) 1471 throw Error("templateContent can only be used in child bindings"); 1472 } 1473 render(t) { 1474 return this.Pt === t 1475 ? F 1476 : ((this.Pt = t), document.importNode(t.content, !0)); 1477 } 1478 }, 1479 ); 1480class ps extends Vt { 1481 constructor(t) { 1482 if ((super(t), (this.yt = G), 2 !== t.type)) 1483 throw Error( 1484 this.constructor.directiveName + 1485 "() can only be used in child bindings", 1486 ); 1487 } 1488 render(t) { 1489 if (t === G || null == t) return (this.At = void 0), (this.yt = t); 1490 if (t === F) return t; 1491 if ("string" != typeof t) 1492 throw Error( 1493 this.constructor.directiveName + "() called with a non-string value", 1494 ); 1495 if (t === this.yt) return this.At; 1496 this.yt = t; 1497 const s = [t]; 1498 return ( 1499 (s.raw = s), 1500 (this.At = { 1501 _$litType$: this.constructor.resultType, 1502 strings: s, 1503 values: [], 1504 }) 1505 ); 1506 } 1507} 1508(ps.directiveName = "unsafeHTML"), (ps.resultType = 1); 1509const vs = Ut(ps); 1510/** 1511 * @license 1512 * Copyright 2017 Google LLC 1513 * SPDX-License-Identifier: BSD-3-Clause 1514 */ class ys extends ps {} 1515(ys.directiveName = "unsafeSVG"), (ys.resultType = 2); 1516const ms = Ut(ys), 1517 bs = (t) => !yt(t) && "function" == typeof t.then, 1518 gs = 1073741823; 1519/** 1520 * @license 1521 * Copyright 2017 Google LLC 1522 * SPDX-License-Identifier: BSD-3-Clause 1523 */ class ws extends Ht { 1524 constructor() { 1525 super(...arguments), 1526 (this.kt = gs), 1527 (this.Mt = []), 1528 (this.ut = new It(this)), 1529 (this.dt = new Dt()); 1530 } 1531 render(...t) { 1532 return t.find((t) => !bs(t)) ?? F; 1533 } 1534 update(t, s) { 1535 const i = this.Mt; 1536 let e = i.length; 1537 this.Mt = s; 1538 const n = this.ut, 1539 r = this.dt; 1540 this.isConnected || this.disconnected(); 1541 for (let t = 0; t < s.length && !(t > this.kt); t++) { 1542 const o = s[t]; 1543 if (!bs(o)) return (this.kt = t), o; 1544 (t < e && o === i[t]) || 1545 ((this.kt = gs), 1546 (e = 0), 1547 Promise.resolve(o).then(async (t) => { 1548 for (; r.get(); ) await r.get(); 1549 const s = n.deref(); 1550 if (void 0 !== s) {
1551 const i = s.Mt.indexOf(o); 1552 i > -1 && i < s.kt && ((s.kt = i), s.setValue(t)); 1553 } 1554 })); 1555 } 1556 return F; 1557 } 1558 disconnected() { 1559 this.ut.disconnect(), this.dt.pause(); 1560 } 1561 reconnected() { 1562 this.ut.reconnect(this), this.dt.resume(); 1563 } 1564} 1565const _s = Ut(ws); 1566/** 1567 * @license 1568 * Copyright 2021 Google LLC 1569 * SPDX-License-Identifier: BSD-3-Clause 1570 */ function Ss(t, s, i) { 1571 return t ? s(t) : i?.(t); 1572} 1573/** 1574 * @license 1575 * Copyright 2020 Google LLC 1576 * SPDX-License-Identifier: BSD-3-Clause 1577 */ const $s = Symbol.for(""), 1578 Ts = (t) => { 1579 if (t?.r === $s) return t?._$litStatic$; 1580 }, 1581 xs = (t) => ({ _$litStatic$: t, r: $s }), 1582 Es = (t, ...s) => ({ 1583 _$litStatic$: s.reduce( 1584 (s, i, e) => 1585 s + 1586 ((t) => { 1587 if (void 0 !== t._$litStatic$) return t._$litStatic$; 1588 throw Error( 1589 `Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`, 1590 ); 1591 })(i) + 1592 t[e + 1], 1593 t[0], 1594 ), 1595 r: $s, 1596 }), 1597 Cs = new Map(), 1598 Ps = 1599 (t) => 1600 (s, ...i) => { 1601 const e = i.length; 1602 let n, r; 1603 const o = [], 1604 h = []; 1605 let c, 1606 l = 0, 1607 a = !1; 1608 for (; l < e; ) { 1609 for (c = s[l]; l < e && void 0 !== ((r = i[l]), (n = Ts(r))); ) 1610 (c += n + s[++l]), (a = !0); 1611 l !== e && h.push(r), o.push(c), l++; 1612 } 1613 if ((l === e && o.push(s[e]), a)) { 1614 const t = o.join("$$lit$$"); 1615 void 0 === (s = Cs.get(t)) && ((o.raw = o), Cs.set(t, (s = o))), 1616 (i = h); 1617 } 1618 return t(s, ...i); 1619 }, 1620 As = Ps(Z), 1621 ks = Ps(q); 1622/** 1623 * @license 1624 * Copyright 2021 Google LLC 1625 * SPDX-License-Identifier: BSD-3-Clause 1626 */ 1627window.litDisableBundleWarning || 1628 console.warn( 1629 "Lit has been loaded from a bundle that combines all core features into a single file. To reduce transfer size and parsing cost, consider using the `lit` npm package directly in your project.", 1630 ); 1631export { 1632 Ht as AsyncDirective, 1633 Bt as AsyncReplaceDirective, 1634 n as CSSResult, 1635 Vt as Directive, 1636 ut as LitElement, 1637 Mt as PartType, 1638 $ as ReactiveElement, 1639 mt as TemplateResultType, 1640 ps as UnsafeHTMLDirective, 1641 ws as UntilDirective, 1642 ft as _$LE, 1643 ct as _$LH, 1644 h as adoptStyles, 1645 Zt as asyncAppend, 1646 Wt as asyncReplace, 1647 Ft as cache, 1648 Gt as choose, 1649 Jt as classMap, 1650 kt as clearPart, 1651 ns as createRef, 1652 o as css, 1653 w as defaultConverter, 1654 Ut as directive, 1655 Pt as getCommittedValue, 1656 c as getCompatibleStyle, 1657 _t as getDirectiveClass, 1658 Yt as guard, 1659 Z as html, 1660 Qt as ifDefined, 1661 Tt as insertPart, 1662 gt as isCompiledTemplateResult, 1663 wt as isDirectiveResult, 1664 yt as isPrimitive, 1665 pt as isServer, 1666 St as isSingleExpression, 1667 bt as isTemplateResult, 1668 Xt as join, 1669 ts as keyed, 1670 Es as literal, 1671 ss as live, 1672 is as map, 1673 F as noChange, 1674 _ as notEqual, 1675 G as nothing, 1676 es as range, 1677 hs as ref, 1678 At as removePart, 1679 at as render, 1680 ls as repeat, 1681 xt as setChildPartValue, 1682 Ct as setCommittedValue, 1683 As as staticHtml, 1684 ks as staticSvg, 1685 ds as styleMap, 1686 s as supportsAdoptingStyleSheets, 1687 q as svg, 1688 fs as templateContent, 1689 r as unsafeCSS, 1690 vs as unsafeHTML, 1691 ms as unsafeSVG, 1692 xs as unsafeStatic, 1693 _s as until, 1694 Ss as when, 1695 Ps as withStatic, 1696}; 1697//# sourceMappingURL=lit-all.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.