vendor: 6,657 bytes, lines 1-171
1/** 2 * @license 3 * Copyright 2019 Google LLC 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6const L = globalThis, K = L.ShadowRoot && (L.ShadyCSS === void 0 || L.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, F = Symbol(), J = /* @__PURE__ */ new WeakMap(); 7let ht = class { 8 constructor(t, e, i) { 9 if (this._$cssResult$ = !0, i !== F) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead."); 10 this.cssText = t, this.t = e; 11 } 12 get styleSheet() { 13 let t = this.o; 14 const e = this.t; 15 if (K && t === void 0) { 16 const i = e !== void 0 && e.length === 1; 17 i && (t = J.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && J.set(e, t)); 18 } 19 return t; 20 } 21 toString() { 22 return this.cssText; 23 } 24}; 25const ut = (s) => new ht(typeof s == "string" ? s : s + "", void 0, F), $t = (s, ...t) => { 26 const e = s.length === 1 ? s[0] : t.reduce((i, o, r) => i + ((n) => { 27 if (n._$cssResult$ === !0) return n.cssText; 28 if (typeof n == "number") return n; 29 throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security."); 30 })(o) + s[r + 1], s[0]); 31 return new ht(e, s, F); 32}, _t = (s, t) => { 33 if (K) s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet); 34 else for (const e of t) { 35 const i = document.createElement("style"), o = L.litNonce; 36 o !== void 0 && i.setAttribute("nonce", o), i.textContent = e.cssText, s.appendChild(i); 37 } 38}, Y = K ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => { 39 let e = ""; 40 for (const i of t.cssRules) e += i.cssText; 41 return ut(e); 42})(s) : s; 43/** 44 * @license 45 * Copyright 2017 Google LLC 46 * SPDX-License-Identifier: BSD-3-Clause 47 */ 48const { is: ft, defineProperty: gt, getOwnPropertyDescriptor: mt, getOwnPropertyNames: yt, getOwnPropertySymbols: At, getPrototypeOf: vt } = Object, m = globalThis, Z = m.trustedTypes, bt = Z ? Z.emptyScript : "", j = m.reactiveElementPolyfillSupport, P = (s, t) => s, z = { toAttribute(s, t) { 49 switch (t) { 50 case Boolean: 51 s = s ? bt : null; 52 break; 53 case Object: 54 case Array: 55 s = s == null ? s : JSON.stringify(s); 56 } 57 return s; 58}, fromAttribute(s, t) { 59 let e = s; 60 switch (t) { 61 case Boolean: 62 e = s !== null; 63 break; 64 case Number: 65 e = s === null ? null : Number(s); 66 break; 67 case Object: 68 case Array: 69 try { 70 e = JSON.parse(s); 71 } catch { 72 e = null; 73 } 74 } 75 return e; 76} }, X = (s, t) => !ft(s, t), G = { attribute: !0, type: String, converter: z, reflect: !1, hasChanged: X }; 77Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), m.litPropertyMetadata ?? (m.litPropertyMetadata = /* @__PURE__ */ new WeakMap()); 78class w extends HTMLElement { 79 static addInitializer(t) { 80 this._$Ei(), (this.l ?? (this.l = [])).push(t); 81 } 82 static get observedAttributes() { 83 return this.finalize(), this._$Eh && [...this._$Eh.keys()]; 84 } 85 static createProperty(t, e = G) { 86 if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) { 87 const i = Symbol(), o = this.getPropertyDescriptor(t, i, e); 88 o !== void 0 && gt(this.prototype, t, o); 89 } 90 } 91 static getPropertyDescriptor(t, e, i) { 92 const { get: o, set: r } = mt(this.prototype, t) ?? { get() { 93 return this[e]; 94 }, set(n) { 95 this[e] = n; 96 } }; 97 return { get() { 98 return o == null ? void 0 : o.call(this); 99 }, set(n) { 100 const l = o == null ? void 0 : o.call(this); 101 r.call(this, n), this.requestUpdate(t, l, i); 102 }, configurable: !0, enumerable: !0 }; 103 } 104 static getPropertyOptions(t) { 105 return this.elementProperties.get(t) ?? G; 106 } 107 static _$Ei() { 108 if (this.hasOwnProperty(P("elementProperties"))) return; 109 const t = vt(this); 110 t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties); 111 } 112 static finalize() { 113 if (this.hasOwnProperty(P("finalized"))) return; 114 if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(P("properties"))) { 115 const e = this.properties, i = [...yt(e), ...At(e)]; 116 for (const o of i) this.createProperty(o, e[o]); 117 } 118 const t = this[Symbol.metadata]; 119 if (t !== null) { 120 const e = litPropertyMetadata.get(t); 121 if (e !== void 0) for (const [i, o] of e) this.elementProperties.set(i, o); 122 } 123 this._$Eh = /* @__PURE__ */ new Map(); 124 for (const [e, i] of this.elementProperties) { 125 const o = this._$Eu(e, i); 126 o !== void 0 && this._$Eh.set(o, e); 127 } 128 this.elementStyles = this.finalizeStyles(this.styles); 129 } 130 static finalizeStyles(t) { 131 const e = []; 132 if (Array.isArray(t)) { 133 const i = new Set(t.flat(1 / 0).reverse()); 134 for (const o of i) e.unshift(Y(o)); 135 } else t !== void 0 && e.push(Y(t)); 136 return e; 137 } 138 static _$Eu(t, e) { 139 const i = e.attribute; 140 return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0; 141 } 142 constructor() { 143 super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev(); 144 } 145 _$Ev() { 146 var t; 147 this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this)); 148 } 149 addController(t) { 150 var e; 151 (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t)); 152 } 153 removeController(t) { 154 var e; 155 (e = this._$EO) == null || e.delete(t); 156 } 157 _$E_() { 158 const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties; 159 for (const i of e.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]); 160 t.size > 0 && (this._$Ep = t); 161 } 162 createRenderRoot() { 163 const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions); 164 return _t(t, this.constructor.elementStyles), t; 165 } 166 connectedCallback() { 167 var t; 168 this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => { 169 var i; 170 return (i = e.hostConnected) == null ? void 0 : i.call(e); 171 });
172 } 173 enableUpdating(t) { 174 } 175 disconnectedCallback() { 176 var t; 177 (t = this._$EO) == null || t.forEach((e) => { 178 var i; 179 return (i = e.hostDisconnected) == null ? void 0 : i.call(e); 180 }); 181 } 182 attributeChangedCallback(t, e, i) { 183 this._$AK(t, i); 184 } 185 _$EC(t, e) { 186 var r; 187 const i = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, i); 188 if (o !== void 0 && i.reflect === !0) { 189 const n = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : z).toAttribute(e, i.type); 190 this._$Em = t, n == null ? this.removeAttribute(o) : this.setAttribute(o, n), this._$Em = null; 191 } 192 } 193 _$AK(t, e) { 194 var r; 195 const i = this.constructor, o = i._$Eh.get(t); 196 if (o !== void 0 && this._$Em !== o) { 197 const n = i.getPropertyOptions(o), l = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((r = n.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? n.converter : z; 198 this._$Em = o, this[o] = l.fromAttribute(e, n.type), this._$Em = null; 199 } 200 } 201 requestUpdate(t, e, i) { 202 if (t !== void 0) { 203 if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? X)(this[t], e)) return; 204 this.P(t, e, i); 205 } 206 this.isUpdatePending === !1 && (this._$ES = this._$ET()); 207 } 208 P(t, e, i) { 209 this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t); 210 } 211 async _$ET() { 212 this.isUpdatePending = !0; 213 try { 214 await this._$ES; 215 } catch (e) { 216 Promise.reject(e); 217 } 218 const t = this.scheduleUpdate(); 219 return t != null && await t, !this.isUpdatePending; 220 } 221 scheduleUpdate() { 222 return this.performUpdate(); 223 } 224 performUpdate() { 225 var i; 226 if (!this.isUpdatePending) return; 227 if (!this.hasUpdated) { 228 if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) { 229 for (const [r, n] of this._$Ep) this[r] = n; 230 this._$Ep = void 0; 231 } 232 const o = this.constructor.elementProperties; 233 if (o.size > 0) for (const [r, n] of o) n.wrapped !== !0 || this._$AL.has(r) || this[r] === void 0 || this.P(r, this[r], n); 234 } 235 let t = !1; 236 const e = this._$AL; 237 try { 238 t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((o) => { 239 var r; 240 return (r = o.hostUpdate) == null ? void 0 : r.call(o); 241 }), this.update(e)) : this._$EU(); 242 } catch (o) { 243 throw t = !1, this._$EU(), o; 244 } 245 t && this._$AE(e); 246 } 247 willUpdate(t) { 248 } 249 _$AE(t) { 250 var e; 251 (e = this._$EO) == null || e.forEach((i) => { 252 var o; 253 return (o = i.hostUpdated) == null ? void 0 : o.call(i); 254 }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t); 255 } 256 _$EU() { 257 this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1; 258 } 259 get updateComplete() { 260 return this.getUpdateComplete(); 261 } 262 getUpdateComplete() { 263 return this._$ES; 264 } 265 shouldUpdate(t) { 266 return !0; 267 } 268 update(t) { 269 this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU(); 270 } 271 updated(t) { 272 } 273 firstUpdated(t) { 274 } 275} 276w.elementStyles = [], w.shadowRootOptions = { mode: "open" }, w[P("elementProperties")] = /* @__PURE__ */ new Map(), w[P("finalized")] = /* @__PURE__ */ new Map(), j == null || j({ ReactiveElement: w }), (m.reactiveElementVersions ?? (m.reactiveElementVersions = [])).push("2.0.4"); 277/** 278 * @license 279 * Copyright 2017 Google LLC 280 * SPDX-License-Identifier: BSD-3-Clause 281 */ 282const U = globalThis, D = U.trustedTypes, Q = D ? D.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, lt = "$lit$", g = `lit$${Math.random().toFixed(9).slice(2)}$`, at = "?" + g, wt = `<${at}>`, b = document, k = () => b.createComment(""), H = (s) => s === null || typeof s != "object" && typeof s != "function", ct = Array.isArray, St = (s) => ct(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", B = `[ 283\f\r]`, C = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, tt = /-->/g, et = />/g, A = RegExp(`>|${B}
vendor: 9,125 bytes, lines 283-496
283(?:([^\\s"'>=/]+)(${B}*=${B}*(?:[^ 284\f\r"'\`<>=]|("|')|))|$)`, "g"), it = /'/g, st = /"/g, dt = /^(?:script|style|textarea|title)$/i, Et = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), f = Et(1), S = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), ot = /* @__PURE__ */ new WeakMap(), v = b.createTreeWalker(b, 129); 285function pt(s, t) { 286 if (!Array.isArray(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array"); 287 return Q !== void 0 ? Q.createHTML(t) : t; 288} 289const xt = (s, t) => { 290 const e = s.length - 1, i = []; 291 let o, r = t === 2 ? "<svg>" : "", n = C; 292 for (let l = 0; l < e; l++) { 293 const h = s[l]; 294 let c, d, a = -1, $ = 0; 295 for (; $ < h.length && (n.lastIndex = $, d = n.exec(h), d !== null); ) $ = n.lastIndex, n === C ? d[1] === "!--" ? n = tt : d[1] !== void 0 ? n = et : d[2] !== void 0 ? (dt.test(d[2]) && (o = RegExp("</" + d[2], "g")), n = A) : d[3] !== void 0 && (n = A) : n === A ? d[0] === ">" ? (n = o ?? C, a = -1) : d[1] === void 0 ? a = -2 : (a = n.lastIndex - d[2].length, c = d[1], n = d[3] === void 0 ? A : d[3] === '"' ? st : it) : n === st || n === it ? n = A : n === tt || n === et ? n = C : (n = A, o = void 0); 296 const _ = n === A && s[l + 1].startsWith("/>") ? " " : ""; 297 r += n === C ? h + wt : a >= 0 ? (i.push(c), h.slice(0, a) + lt + h.slice(a) + g + _) : h + g + (a === -2 ? l : _); 298 } 299 return [pt(s, r + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i]; 300}; 301class R { 302 constructor({ strings: t, _$litType$: e }, i) { 303 let o; 304 this.parts = []; 305 let r = 0, n = 0; 306 const l = t.length - 1, h = this.parts, [c, d] = xt(t, e); 307 if (this.el = R.createElement(c, i), v.currentNode = this.el.content, e === 2) { 308 const a = this.el.content.firstChild; 309 a.replaceWith(...a.childNodes); 310 } 311 for (; (o = v.nextNode()) !== null && h.length < l; ) { 312 if (o.nodeType === 1) { 313 if (o.hasAttributes()) for (const a of o.getAttributeNames()) if (a.endsWith(lt)) { 314 const $ = d[n++], _ = o.getAttribute(a).split(g), M = /([.?@])?(.*)/.exec($); 315 h.push({ type: 1, index: r, name: M[2], strings: _, ctor: M[1] === "." ? Pt : M[1] === "?" ? Ut : M[1] === "@" ? Tt : I }), o.removeAttribute(a); 316 } else a.startsWith(g) && (h.push({ type: 6, index: r }), o.removeAttribute(a)); 317 if (dt.test(o.tagName)) { 318 const a = o.textContent.split(g), $ = a.length - 1; 319 if ($ > 0) { 320 o.textContent = D ? D.emptyScript : ""; 321 for (let _ = 0; _ < $; _++) o.append(a[_], k()), v.nextNode(), h.push({ type: 2, index: ++r }); 322 o.append(a[$], k()); 323 } 324 } 325 } else if (o.nodeType === 8) if (o.data === at) h.push({ type: 2, index: r }); 326 else { 327 let a = -1; 328 for (; (a = o.data.indexOf(g, a + 1)) !== -1; ) h.push({ type: 7, index: r }), a += g.length - 1; 329 } 330 r++; 331 } 332 } 333 static createElement(t, e) { 334 const i = b.createElement("template"); 335 return i.innerHTML = t, i; 336 } 337} 338function E(s, t, e = s, i) { 339 var n, l; 340 if (t === S) return t; 341 let o = i !== void 0 ? (n = e._$Co) == null ? void 0 : n[i] : e._$Cl; 342 const r = H(t) ? void 0 : t._$litDirective$; 343 return (o == null ? void 0 : o.constructor) !== r && ((l = o == null ? void 0 : o._$AO) == null || l.call(o, !1), r === void 0 ? o = void 0 : (o = new r(s), o._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = o : e._$Cl = o), o !== void 0 && (t = E(s, o._$AS(s, t.values), o, i)), t; 344} 345class Ct { 346 constructor(t, e) { 347 this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e; 348 } 349 get parentNode() { 350 return this._$AM.parentNode; 351 } 352 get _$AU() { 353 return this._$AM._$AU; 354 } 355 u(t) { 356 const { el: { content: e }, parts: i } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? b).importNode(e, !0); 357 v.currentNode = o; 358 let r = v.nextNode(), n = 0, l = 0, h = i[0]; 359 for (; h !== void 0; ) { 360 if (n === h.index) { 361 let c; 362 h.type === 2 ? c = new O(r, r.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(r, h.name, h.strings, this, t) : h.type === 6 && (c = new kt(r, this, t)), this._$AV.push(c), h = i[++l]; 363 } 364 n !== (h == null ? void 0 : h.index) && (r = v.nextNode(), n++); 365 } 366 return v.currentNode = b, o; 367 } 368 p(t) { 369 let e = 0; 370 for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++; 371 } 372} 373class O { 374 get _$AU() { 375 var t; 376 return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv; 377 } 378 constructor(t, e, i, o) { 379 this.type = 2, this._$AH = p, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = o, this._$Cv = (o == null ? void 0 : o.isConnected) ?? !0; 380 } 381 get parentNode() { 382 let t = this._$AA.parentNode; 383 const e = this._$AM; 384 return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t; 385 } 386 get startNode() { 387 return this._$AA; 388 } 389 get endNode() { 390 return this._$AB; 391 } 392 _$AI(t, e = this) { 393 t = E(this, t, e), H(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== S && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : St(t) ? this.k(t) : this._(t); 394 } 395 S(t) { 396 return this._$AA.parentNode.insertBefore(t, this._$AB); 397 } 398 T(t) { 399 this._$AH !== t && (this._$AR(), this._$AH = this.S(t)); 400 } 401 _(t) { 402 this._$AH !== p && H(this._$AH) ? this._$AA.nextSibling.data = t : this.T(b.createTextNode(t)), this._$AH = t; 403 } 404 $(t) { 405 var r; 406 const { values: e, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = R.createElement(pt(i.h, i.h[0]), this.options)), i); 407 if (((r = this._$AH) == null ? void 0 : r._$AD) === o) this._$AH.p(e); 408 else { 409 const n = new Ct(o, this), l = n.u(this.options); 410 n.p(e), this.T(l), this._$AH = n; 411 } 412 } 413 _$AC(t) { 414 let e = ot.get(t.strings); 415 return e === void 0 && ot.set(t.strings, e = new R(t)), e; 416 } 417 k(t) { 418 ct(this._$AH) || (this._$AH = [], this._$AR()); 419 const e = this._$AH; 420 let i, o = 0; 421 for (const r of t) o === e.length ? e.push(i = new O(this.S(k()), this.S(k()), this, this.options)) : i = e[o], i._$AI(r), o++; 422 o < e.length && (this._$AR(i && i._$AB.nextSibling, o), e.length = o); 423 } 424 _$AR(t = this._$AA.nextSibling, e) { 425 var i; 426 for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) { 427 const o = t.nextSibling; 428 t.remove(), t = o; 429 } 430 } 431 setConnected(t) { 432 var e; 433 this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t)); 434 } 435} 436class I { 437 get tagName() { 438 return this.element.tagName; 439 } 440 get _$AU() { 441 return this._$AM._$AU; 442 } 443 constructor(t, e, i, o, r) { 444 this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = o, this.options = r, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = p; 445 } 446 _$AI(t, e = this, i, o) { 447 const r = this.strings; 448 let n = !1; 449 if (r === void 0) t = E(this, t, e, 0), n = !H(t) || t !== this._$AH && t !== S, n && (this._$AH = t); 450 else { 451 const l = t; 452 let h, c; 453 for (t = r[0], h = 0; h < r.length - 1; h++) c = E(this, l[i + h], e, h), c === S && (c = this._$AH[h]), n || (n = !H(c) || c !== this._$AH[h]), c === p ? t = p : t !== p && (t += (c ?? "") + r[h + 1]), this._$AH[h] = c; 454 } 455 n && !o && this.j(t); 456 } 457 j(t) { 458 t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? ""); 459 } 460} 461class Pt extends I { 462 constructor() { 463 super(...arguments), this.type = 3; 464 } 465 j(t) { 466 this.element[this.name] = t === p ? void 0 : t; 467 } 468} 469class Ut extends I { 470 constructor() { 471 super(...arguments), this.type = 4; 472 } 473 j(t) { 474 this.element.toggleAttribute(this.name, !!t && t !== p); 475 } 476} 477class Tt extends I { 478 constructor(t, e, i, o, r) { 479 super(t, e, i, o, r), this.type = 5; 480 } 481 _$AI(t, e = this) { 482 if ((t = E(this, t, e, 0) ?? p) === S) return; 483 const i = this._$AH, o = t === p && i !== p || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, r = t !== p && (i === p || o); 484 o && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, t), this._$AH = t; 485 } 486 handleEvent(t) { 487 var e; 488 typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t); 489 } 490} 491class kt { 492 constructor(t, e, i) { 493 this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i; 494 } 495 get _$AU() { 496 return this._$AM._$AU;
497 } 498 _$AI(t) { 499 E(this, t); 500 } 501} 502const W = U.litHtmlPolyfillSupport; 503W == null || W(R, O), (U.litHtmlVersions ?? (U.litHtmlVersions = [])).push("3.1.4"); 504const Ht = (s, t, e) => { 505 const i = (e == null ? void 0 : e.renderBefore) ?? t; 506 let o = i._$litPart$; 507 if (o === void 0) { 508 const r = (e == null ? void 0 : e.renderBefore) ?? null; 509 i._$litPart$ = o = new O(t.insertBefore(k(), r), r, void 0, e ?? {}); 510 } 511 return o._$AI(s), o; 512}; 513/** 514 * @license 515 * Copyright 2017 Google LLC 516 * SPDX-License-Identifier: BSD-3-Clause 517 */ 518class T extends w { 519 constructor() { 520 super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0; 521 } 522 createRenderRoot() { 523 var e; 524 const t = super.createRenderRoot(); 525 return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t; 526 } 527 update(t) { 528 const e = this.render(); 529 this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Ht(e, this.renderRoot, this.renderOptions); 530 } 531 connectedCallback() { 532 var t; 533 super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0); 534 } 535 disconnectedCallback() { 536 var t; 537 super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1); 538 } 539 render() { 540 return S; 541 } 542} 543var rt; 544T._$litElement$ = !0, T.finalized = !0, (rt = globalThis.litElementHydrateSupport) == null || rt.call(globalThis, { LitElement: T }); 545const V = globalThis.litElementPolyfillSupport; 546V == null || V({ LitElement: T }); 547(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.6"); 548/** 549 * @license 550 * Copyright 2017 Google LLC 551 * SPDX-License-Identifier: BSD-3-Clause 552 */ 553const Rt = (s) => (t, e) => { 554 e !== void 0 ? e.addInitializer(() => { 555 customElements.define(s, t); 556 }) : customElements.define(s, t); 557}; 558/** 559 * @license 560 * Copyright 2017 Google LLC 561 * SPDX-License-Identifier: BSD-3-Clause 562 */ 563const Ot = { attribute: !0, type: String, converter: z, reflect: !1, hasChanged: X }, Nt = (s = Ot, t, e) => { 564 const { kind: i, metadata: o } = e; 565 let r = globalThis.litPropertyMetadata.get(o); 566 if (r === void 0 && globalThis.litPropertyMetadata.set(o, r = /* @__PURE__ */ new Map()), r.set(e.name, s), i === "accessor") { 567 const { name: n } = e; 568 return { set(l) { 569 const h = t.get.call(this); 570 t.set.call(this, l), this.requestUpdate(n, h, s); 571 }, init(l) { 572 return l !== void 0 && this.P(n, void 0, s), l; 573 } }; 574 } 575 if (i === "setter") { 576 const { name: n } = e; 577 return function(l) { 578 const h = this[n]; 579 t.call(this, l), this.requestUpdate(n, h, s); 580 }; 581 } 582 throw Error("Unsupported decorator location: " + i); 583}; 584function N(s) { 585 return (t, e) => typeof e == "object" ? Nt(s, t, e) : ((i, o, r) => { 586 const n = o.hasOwnProperty(r); 587 return o.constructor.createProperty(r, n ? { ...i, wrapped: !0 } : i), n ? Object.getOwnPropertyDescriptor(o, r) : void 0; 588 })(s, t, e); 589} 590/** 591 * @license 592 * Copyright 2017 Google LLC 593 * SPDX-License-Identifier: BSD-3-Clause 594 */ 595function Mt(s) { 596 return N({ ...s, state: !0, attribute: !1 }); 597} 598const u = []; 599for (let s = 0; s < 256; ++s) 600 u.push((s + 256).toString(16).slice(1)); 601function Lt(s, t = 0) { 602 return (u[s[t + 0]] + u[s[t + 1]] + u[s[t + 2]] + u[s[t + 3]] + "-" + u[s[t + 4]] + u[s[t + 5]] + "-" + u[s[t + 6]] + u[s[t + 7]] + "-" + u[s[t + 8]] + u[s[t + 9]] + "-" + u[s[t + 10]] + u[s[t + 11]] + u[s[t + 12]] + u[s[t + 13]] + u[s[t + 14]] + u[s[t + 15]]).toLowerCase(); 603} 604let q; 605const zt = new Uint8Array(16); 606function Dt() { 607 if (!q) { 608 if (typeof crypto > "u" || !crypto.getRandomValues) 609 throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported"); 610 q = crypto.getRandomValues.bind(crypto); 611 } 612 return q(zt); 613} 614const It = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), nt = { randomUUID: It }; 615function jt(s, t, e) { 616 var o; 617 if (nt.randomUUID && !t && !s) 618 return nt.randomUUID(); 619 s = s || {}; 620 const i = s.random ?? ((o = s.rng) == null ? void 0 : o.call(s)) ?? Dt(); 621 if (i.length < 16) 622 throw new Error("Random bytes length must be >= 16"); 623 return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, Lt(i); 624} 625const Bt = $t` 626 @keyframes fadeInFromTop { 627 from { 628 opacity: 0; 629 transform: translate(0, -10px); 630 } 631 } 632 633 .tooltip-container { 634 position: relative; 635 display: inline-block; 636 margin: 0; 637 padding: 0; 638 border: none; 639 font-size: inherit; 640 font-family: inherit; 641 font-weight: inherit; 642 } 643 644 .tooltip { 645 display: inline-block; 646 background-color: transparent; 647 color: var(--tooltip-text-color, inherit); 648 margin: 0; 649 padding: 0; 650 border: none; 651 border-bottom: var(--tooltip-border-bottom, 2px dotted black); 652 cursor: pointer; 653 font-size: inherit; 654 font-family: inherit; 655 font-weight: inherit; 656 appearance: none; 657 -webkit-appearance: none; 658 -moz-appearance: none; 659 660 &.active { 661 outline: var(--tooltip-text-active-outline, 2px dotted #26292a); 662 border-color: transparent; 663 } 664 } 665 666 .tooltiptext { 667 font-size: initial; 668 font-weight: initial; 669 cursor: default; 670 background-color: var(--tooltip-background-color, white); 671 color: var(--tooltip-color, black); 672 text-align: left; 673 padding: 1rem; 674 box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); 675 position: absolute; 676 z-index: 999; 677 animation: fadeInFromTop .2s backwards; 678 overflow-y: auto; 679 margin-top: 5px; 680 width: max-content; 681 max-width: 300px; 682 max-height: 400px; 683 684 h1, h2, h3, h4, h5, h6 { 685 margin: 0; 686 margin-bottom: 0.5rem; 687 } 688 689 * { 690 display: block; 691 text-align: left; 692 margin-bottom: 1rem; 693 } 694 695 .close { 696 position: absolute; 697 top: 5px; 698 right: 5px; 699 background-color: transparent; 700 border: none; 701 cursor: pointer; 702 } 703 } 704`; 705function Wt(s, t) { 706 switch (t) { 707 case 1: 708 return f`<h1>${s}</h1>`; 709 case 2: 710 return f`<h2>${s}</h2>`; 711 case 3: 712 return f`<h3>${s}</h3>`; 713 case 4: 714 return f`<h4>${s}</h4>`; 715 case 5: 716 return f`<h5>${s}</h5>`; 717 case 6: 718 return f`<h6>${s}</h6>`; 719 default: 720 return f`<h2>${s}</h2>`; 721 } 722} 723function Vt(s, t) { 724 if (!s) return; 725 const e = window.innerWidth, i = window.innerHeight, o = window.scrollX, r = window.scrollY, n = s.getBoundingClientRect(), l = t.getBoundingClientRect(); 726 let h = l.height + 5, c = -(n.width / 2) + l.width / 2; 727 const d = l.left + o, a = l.top + r; 728 let $ = d + c, _ = a + h; 729 $ < o ? c = -d + o : $ + n.width > o + e && (c = -(n.width - l.width), $ = d + c, $ + n.width > o + e && (c = o + e - d - n.width)), _ = a + h, _ + n.height > r + i && (h = -n.height - 5, _ = a + h, _ < r && (h = r - a)), s.style.top = `${h}px`, s.style.left = `${c}px`; 730} 731function qt(s, t) { 732 let e; 733 return function(...i) { 734 clearTimeout(e), e = window.setTimeout(() => s.apply(this, i), t); 735 }; 736} 737var Kt = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor, x = (s, t, e, i) => { 738 for (var o = i > 1 ? void 0 : i ? Ft(t, e) : t, r = s.length - 1, n; r >= 0; r--) 739 (n = s[r]) && (o = (i ? n(t, e, o) : n(o)) || o); 740 return i && o && Kt(t, e, o), o; 741}; 742let y = class extends T { 743 constructor() { 744 super(...arguments), this.tooltip = "Hello World!", this["tooltip-title"] = "Hello World!", this.id = jt(), this.headingLevel = 3, this._tooltipActive = !1, this._handleClickOutside = (s) => { 745 !this.contains(s.target) && s.target !== this && (this._tooltipActive = !1);
746 }, this._handleScroll = () => { 747 this._tooltipActive = !1; 748 }, this._debouncedHandleResize = qt(() => { 749 this._updateTooltipPosition(); 750 }, 200), this._handleButtonClick = () => { 751 this._tooltipActive ? this._tooltipActive = !1 : (this._tooltipActive = !0, setTimeout(() => { 752 this._updateTooltipPosition(); 753 }, 10)); 754 }, this._handleKeyDown = (s) => { 755 s.key === "Escape" && (this._tooltipActive = !1); 756 }, this._handleCloseClick = (s) => { 757 s.stopPropagation(), this._tooltipActive = !1; 758 }; 759 } 760 //handle click outside of tooltip text 761 connectedCallback() { 762 super.connectedCallback(), document.addEventListener("click", this._handleClickOutside), window.addEventListener("resize", this._debouncedHandleResize), document.addEventListener("scroll", this._handleScroll); 763 } 764 disconnectedCallback() { 765 super.disconnectedCallback(), document.removeEventListener("click", this._handleClickOutside), window.removeEventListener("resize", this._debouncedHandleResize), document.removeEventListener("scroll", this._handleScroll); 766 } 767 _updateTooltipPosition() { 768 var t; 769 const s = (t = this.shadowRoot) == null ? void 0 : t.querySelector(".tooltiptext"); 770 s && Vt(s, this); 771 } 772 render() { 773 return f` 774 <div class="tooltip-container" role="tooltip" id="${this.id}"> 775 <button 776 class="${"tooltip" + (this._tooltipActive ? " active" : "")}" 777 type="button" 778 aria-expanded="${this._tooltipActive}" 779 @click="${this._handleButtonClick}" 780 @keydown="${this._handleKeyDown}" 781 aria-describedby="${this._tooltipActive ? this.id + "-tooltip" : p}" 782 aria-label="${this["tooltip-title"]} ordforklaring" 783 > 784 <slot></slot> 785 </button> 786 ${this._tooltipActive ? f`<span 787 class="tooltiptext" 788 role="tooltip" 789 id="${this.id + "-tooltip"}" 790 > 791 ${Wt(this["tooltip-title"], this.headingLevel)} 792 ${this.tooltip} 793 <button 794 class="close" 795 type="button" 796 data-type="close" 797 @click="${this._handleCloseClick}" 798 aria-label="Lukk ordforklaring" 799 > 800 <span aria-hidden="true" > 801 X 802 </span> 803 </button> 804 </span>` : ""} 805 </div> 806 `; 807 } 808}; 809y.styles = Bt; 810x([ 811 N({ type: String }) 812], y.prototype, "tooltip", 2); 813x([ 814 N({ type: String }) 815], y.prototype, "tooltip-title", 2); 816x([ 817 N({ type: String }) 818], y.prototype, "id", 2); 819x([ 820 N({ type: Number }) 821], y.prototype, "headingLevel", 2); 822x([ 823 Mt() 824], y.prototype, "_tooltipActive", 2); 825y = x([ 826 Rt("tooltip-component") 827], y);
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.