1(function() { 2 const d = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new WeakMap(), g = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), b = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap(), v = { 3 ariaAtomic: "aria-atomic", 4 ariaAutoComplete: "aria-autocomplete", 5 ariaBusy: "aria-busy", 6 ariaChecked: "aria-checked", 7 ariaColCount: "aria-colcount", 8 ariaColIndex: "aria-colindex", 9 ariaColIndexText: "aria-colindextext", 10 ariaColSpan: "aria-colspan", 11 ariaCurrent: "aria-current", 12 ariaDisabled: "aria-disabled", 13 ariaExpanded: "aria-expanded", 14 ariaHasPopup: "aria-haspopup", 15 ariaHidden: "aria-hidden", 16 ariaInvalid: "aria-invalid", 17 ariaKeyShortcuts: "aria-keyshortcuts", 18 ariaLabel: "aria-label", 19 ariaLevel: "aria-level", 20 ariaLive: "aria-live", 21 ariaModal: "aria-modal", 22 ariaMultiLine: "aria-multiline", 23 ariaMultiSelectable: "aria-multiselectable", 24 ariaOrientation: "aria-orientation", 25 ariaPlaceholder: "aria-placeholder", 26 ariaPosInSet: "aria-posinset", 27 ariaPressed: "aria-pressed", 28 ariaReadOnly: "aria-readonly", 29 ariaRelevant: "aria-relevant", 30 ariaRequired: "aria-required", 31 ariaRoleDescription: "aria-roledescription", 32 ariaRowCount: "aria-rowcount", 33 ariaRowIndex: "aria-rowindex", 34 ariaRowIndexText: "aria-rowindextext", 35 ariaRowSpan: "aria-rowspan", 36 ariaSelected: "aria-selected", 37 ariaSetSize: "aria-setsize", 38 ariaSort: "aria-sort", 39 ariaValueMax: "aria-valuemax", 40 ariaValueMin: "aria-valuemin", 41 ariaValueNow: "aria-valuenow", 42 ariaValueText: "aria-valuetext", 43 role: "role" 44 }, X = (a, t) => { 45 for (let e in v) { 46 t[e] = null; 47 let i = null; 48 const n = v[e]; 49 Object.defineProperty(t, e, { 50 get() { 51 return i; 52 }, 53 set(o) { 54 i = o, a.isConnected ? a.setAttribute(n, o) : b.set(a, t); 55 } 56 }); 57 } 58 }; 59 function D(a) { 60 const t = c.get(a), { form: e } = t; 61 U(a, e, t), K(a, t.labels); 62 } 63 const W = (a, t = !1) => { 64 const e = document.createTreeWalker(a, NodeFilter.SHOW_ELEMENT, { 65 acceptNode(o) { 66 return c.has(o) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP; 67 } 68 }); 69 let i = e.nextNode(); 70 const n = !t || a.disabled; 71 for (; i; ) 72 i.formDisabledCallback && n && V(i, a.disabled), i = e.nextNode(); 73 }, $ = { attributes: !0, attributeFilter: ["disabled", "name"] }, p = I() ? new MutationObserver((a) => { 74 for (const t of a) { 75 const e = t.target; 76 if (t.attributeName === "disabled" && (e.constructor.formAssociated ? V(e, e.hasAttribute("disabled")) : e.localName === "fieldset" && W(e)), t.attributeName === "name" && e.constructor.formAssociated) { 77 const i = c.get(e), n = N.get(e); 78 i.setFormValue(n); 79 } 80 } 81 }) : {}; 82 function C(a) { 83 a.forEach((t) => { 84 const { addedNodes: e, removedNodes: i } = t, n = Array.from(e), o = Array.from(i); 85 n.forEach((r) => { 86 var l; 87 if (c.has(r) && r.constructor.formAssociated && D(r), b.has(r)) { 88 const s = b.get(r); 89 Object.keys(v).filter((u) => s[u] !== null).forEach((u) => { 90 r.setAttribute(v[u], s[u]); 91 }), b.delete(r); 92 } 93 if (E.has(r)) { 94 const s = E.get(r); 95 r.setAttribute("internals-valid", s.validity.valid.toString()), r.setAttribute("internals-invalid", (!s.validity.valid).toString()), r.setAttribute("aria-invalid", (!s.validity.valid).toString()), E.delete(r); 96 } 97 if (r.localName === "form") { 98 const s = h.get(r), f = document.createTreeWalker(r, NodeFilter.SHOW_ELEMENT, { 99 acceptNode(x) { 100 return c.has(x) && x.constructor.formAssociated && !(s && s.has(x)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP; 101 } 102 }); 103 let u = f.nextNode(); 104 for (; u; ) 105 D(u), u = f.nextNode(); 106 } 107 r.localName === "fieldset" && ((l = p.observe) == null || l.call(p, r, $), W(r, !0)); 108 }), o.forEach((r) => { 109 const l = c.get(r); 110 l && g.get(l) && _(l), k.has(r) && k.get(r).disconnect(); 111 }); 112 }); 113 } 114 function Y(a) { 115 a.forEach((t) => { 116 const { removedNodes: e } = t; 117 e.forEach((i) => { 118 const n = O.get(t.target); 119 c.has(i) && B(i), n.disconnect(); 120 }); 121 }); 122 } 123 const Z = (a) => { 124 var e; 125 const t = new MutationObserver(Y); 126 (e = t.observe) == null || e.call(t, a, { childList: !0 }), O.set(a, t); 127 }; 128 I() && new MutationObserver(C); 129 const T = { 130 childList: !0, 131 subtree: !0 132 }, V = (a, t) => { 133 a.toggleAttribute("internals-disabled", t), t ? a.setAttribute("aria-disabled", "true") : a.removeAttribute("aria-disabled"), a.formDisabledCallback && a.formDisabledCallback.apply(a, [t]); 134 }, _ = (a) => {
135 g.get(a).forEach((e) => { 136 e.remove(); 137 }), g.set(a, []); 138 }, z = (a, t) => { 139 const e = document.createElement("input"); 140 return e.type = "hidden", e.name = a.getAttribute("name"), a.after(e), g.get(t).push(e), e; 141 }, tt = (a, t) => { 142 var e; 143 g.set(t, []), (e = p.observe) == null || e.call(p, a, $); 144 }, K = (a, t) => { 145 if (t.length) { 146 Array.from(t).forEach((i) => i.addEventListener("click", a.click.bind(a))); 147 let e = t[0].id; 148 t[0].id || (e = `${t[0].htmlFor}_Label`, t[0].id = e), a.setAttribute("aria-labelledby", e); 149 } 150 }, M = (a) => { 151 const t = Array.from(a.elements).filter((o) => !o.tagName.includes("-") && o.validity).map((o) => o.validity.valid), e = h.get(a) || [], i = Array.from(e).filter((o) => o.isConnected).map((o) => c.get(o).validity.valid), n = [...t, ...i].includes(!1); 152 a.toggleAttribute("internals-invalid", n), a.toggleAttribute("internals-valid", !n); 153 }, et = (a) => { 154 M(A(a.target)); 155 }, at = (a) => { 156 M(A(a.target)); 157 }, it = (a) => { 158 const t = ["button[type=submit]", "input[type=submit]", "button:not([type])"].map((e) => `${e}:not([disabled])`).map((e) => `${e}:not([form])${a.id ? `,${e}[form='${a.id}']` : ""}`).join(","); 159 a.addEventListener("click", (e) => { 160 if (e.target.closest(t)) { 161 const n = h.get(a); 162 if (a.noValidate) 163 return; 164 n.size && Array.from(n).reverse().map((l) => c.get(l).reportValidity()).includes(!1) && e.preventDefault(); 165 } 166 }); 167 }, nt = (a) => { 168 const t = h.get(a.target); 169 t && t.size && t.forEach((e) => { 170 e.constructor.formAssociated && e.formResetCallback && e.formResetCallback.apply(e); 171 }); 172 }, U = (a, t, e) => { 173 if (t) { 174 const i = h.get(t); 175 if (i) 176 i.add(a); 177 else { 178 const n = /* @__PURE__ */ new Set(); 179 n.add(a), h.set(t, n), it(t), t.addEventListener("reset", nt), t.addEventListener("input", et), t.addEventListener("change", at); 180 } 181 Q.set(t, { ref: a, internals: e }), a.constructor.formAssociated && a.formAssociatedCallback && setTimeout(() => { 182 a.formAssociatedCallback.apply(a, [t]); 183 }, 0), M(t); 184 } 185 }, A = (a) => { 186 let t = a.parentNode; 187 return t && t.tagName !== "FORM" && (t = A(t)), t; 188 }, m = (a, t, e = DOMException) => { 189 if (!a.constructor.formAssociated) 190 throw new e(t); 191 }, q = (a, t, e) => { 192 const i = h.get(a); 193 return i && i.size && i.forEach((n) => { 194 c.get(n)[e]() || (t = !1); 195 }), t; 196 }, B = (a) => { 197 if (a.constructor.formAssociated) { 198 const t = c.get(a), { labels: e, form: i } = t; 199 K(a, e), U(a, i, t); 200 } 201 }; 202 function I() { 203 return typeof MutationObserver < "u"; 204 } 205 class rt { 206 constructor() { 207 this.badInput = !1, this.customError = !1, this.patternMismatch = !1, this.rangeOverflow = !1, this.rangeUnderflow = !1, this.stepMismatch = !1, this.tooLong = !1, this.tooShort = !1, this.typeMismatch = !1, this.valid = !0, this.valueMissing = !1, Object.seal(this); 208 } 209 } 210 const ot = (a) => (a.badInput = !1, a.customError = !1, a.patternMismatch = !1, a.rangeOverflow = !1, a.rangeUnderflow = !1, a.stepMismatch = !1, a.tooLong = !1, a.tooShort = !1, a.typeMismatch = !1, a.valid = !0, a.valueMissing = !1, a), st = (a, t, e) => (a.valid = lt(t), Object.keys(t).forEach((i) => a[i] = t[i]), e && M(e), a), lt = (a) => { 211 let t = !0; 212 for (let e in a) 213 e !== "valid" && a[e] !== !1 && (t = !1); 214 return t; 215 }, S = /* @__PURE__ */ new WeakMap(); 216 function G(a, t) { 217 a.toggleAttribute(t, !0), a.part && a.part.add(t); 218 } 219 class F extends Set { 220 static get isPolyfilled() { 221 return !0; 222 } 223 constructor(t) { 224 if (super(), !t || !t.tagName || t.tagName.indexOf("-") === -1) 225 throw new TypeError("Illegal constructor"); 226 S.set(this, t); 227 } 228 add(t) { 229 if (!/^--/.test(t) || typeof t != "string") 230 throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${t} must start with '--'.`); 231 const e = super.add(t), i = S.get(this), n = `state${t}`; 232 return i.isConnected ? G(i, n) : setTimeout(() => { 233 G(i, n); 234 }), e; 235 } 236 clear() { 237 for (let [t] of this.entries()) 238 this.delete(t); 239 super.clear(); 240 } 241 delete(t) { 242 const e = super.delete(t), i = S.get(this); 243 return i.isConnected ? (i.toggleAttribute(`state${t}`, !1), i.part && i.part.remove(`state${t}`)) : setTimeout(() => { 244 i.toggleAttribute(`state${t}`, !1), i.part && i.part.remove(`state${t}`); 245 }), e; 246 } 247 } 248 function j(a, t, e, i) { 249 if (e === "a" && !i) 250 throw new TypeError("Private accessor was defined without a getter"); 251 if (typeof t == "function" ? a !== t || !i : !t.has(a)) 252 throw new TypeError("Cannot read private member from an object whose class did not declare it"); 253 return e === "m" ? i : e === "a" ? i.call(a) : i ? i.value : t.get(a); 254 } 255 function ct(a, t, e, i, n) { 256 if (i === "m") 257 throw new TypeError("Private method is not writable"); 258 if (i === "a" && !n) 259 throw new TypeError("Private accessor was defined without a setter"); 260 if (typeof t == "function" ? a !== t || !n : !t.has(a)) 261 throw new TypeError("Cannot write private member to an object whose class did not declare it"); 262 return i === "a" ? n.call(a, e) : n ? n.value = e : t.set(a, e), e; 263 } 264 var y; 265 class dt { 266 constructor(t) { 267 y.set(this, void 0), ct(this, y, t, "f"); 268 for (let e = 0; e < t.length; e++) { 269 let i = t[e]; 270 this[e] = i, i.hasAttribute("name") && (this[i.getAttribute("name")] = i); 271 } 272 Object.freeze(this); 273 } 274 get length() { 275 return j(this, y, "f").length; 276 } 277 [(y = /* @__PURE__ */ new WeakMap(), Symbol.iterator)]() { 278 return j(this, y, "f")[Symbol.iterator](); 279 } 280 item(t) { 281 return this[t] == null ? null : this[t]; 282 } 283 namedItem(t) { 284 return this[t] == null ? null : this[t]; 285 } 286 } 287 function ut() { 288 const a = HTMLFormElement.prototype.checkValidity; 289 HTMLFormElement.prototype.checkValidity = e; 290 const t = HTMLFormElement.prototype.reportValidity; 291 HTMLFormElement.prototype.reportValidity = i; 292 function e(...o) { 293 let r = a.apply(this, o); 294 return q(this, r, "checkValidity"); 295 } 296 function i(...o) { 297 let r = t.apply(this, o); 298 return q(this, r, "reportValidity"); 299 } 300 const { get: n } = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, "elements");
301 Object.defineProperty(HTMLFormElement.prototype, "elements", { 302 get(...o) { 303 const r = n.call(this, ...o), l = Array.from(h.get(this) || []); 304 if (l.length === 0) 305 return r; 306 const s = Array.from(r).concat(l).sort((f, u) => f.compareDocumentPosition ? f.compareDocumentPosition(u) & 2 ? 1 : -1 : 0); 307 return new dt(s); 308 } 309 }); 310 } 311 class J { 312 static get isPolyfilled() { 313 return !0; 314 } 315 constructor(t) { 316 if (!t || !t.tagName || t.tagName.indexOf("-") === -1) 317 throw new TypeError("Illegal constructor"); 318 const e = t.getRootNode(), i = new rt(); 319 this.states = new F(t), d.set(this, t), w.set(this, i), c.set(t, this), X(t, this), tt(t, this), Object.seal(this), e instanceof DocumentFragment && Z(e); 320 } 321 checkValidity() { 322 const t = d.get(this); 323 if (m(t, "Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !this.willValidate) 324 return !0; 325 const e = w.get(this); 326 if (!e.valid) { 327 const i = new Event("invalid", { 328 bubbles: !1, 329 cancelable: !0, 330 composed: !1 331 }); 332 t.dispatchEvent(i); 333 } 334 return e.valid; 335 } 336 get form() { 337 const t = d.get(this); 338 m(t, "Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element."); 339 let e; 340 return t.constructor.formAssociated === !0 && (e = A(t)), e; 341 } 342 get labels() { 343 const t = d.get(this); 344 m(t, "Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element."); 345 const e = t.getAttribute("id"), i = t.getRootNode(); 346 return i && e ? i.querySelectorAll(`[for="${e}"]`) : []; 347 } 348 reportValidity() { 349 const t = d.get(this); 350 if (m(t, "Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !this.willValidate) 351 return !0; 352 const e = this.checkValidity(), i = H.get(this); 353 if (i && !t.constructor.formAssociated) 354 throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."); 355 return !e && i && (t.focus(), i.focus()), e; 356 } 357 setFormValue(t) { 358 const e = d.get(this); 359 if (m(e, "Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."), _(this), t != null && !(t instanceof FormData)) { 360 if (e.getAttribute("name")) { 361 const i = z(e, this); 362 i.value = t; 363 } 364 } else 365 t != null && t instanceof FormData && Array.from(t).reverse().forEach(([i, n]) => { 366 if (typeof n == "string") { 367 const o = z(e, this); 368 o.name = i, o.value = n; 369 } 370 }); 371 N.set(e, t); 372 } 373 setValidity(t, e, i) { 374 const n = d.get(this); 375 if (m(n, "Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !t) 376 throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present."); 377 H.set(this, i); 378 const o = w.get(this), r = {}; 379 for (const f in t) 380 r[f] = t[f]; 381 Object.keys(r).length === 0 && ot(o); 382 const l = { ...o, ...r }; 383 delete l.valid; 384 const { valid: s } = st(o, l, this.form); 385 if (!s && !e) 386 throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true."); 387 L.set(this, s ? "" : e), n.isConnected ? (n.toggleAttribute("internals-invalid", !s), n.toggleAttribute("internals-valid", s), n.setAttribute("aria-invalid", `${!s}`)) : E.set(n, this); 388 } 389 get shadowRoot() { 390 const t = d.get(this), e = R.get(t); 391 return e || null; 392 } 393 get validationMessage() { 394 const t = d.get(this); 395 return m(t, "Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."), L.get(this); 396 } 397 get validity() { 398 const t = d.get(this); 399 return m(t, "Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."), w.get(this); 400 } 401 get willValidate() { 402 const t = d.get(this); 403 return m(t, "Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."), !(t.disabled || t.hasAttribute("disabled") || t.hasAttribute("readonly")); 404 } 405 } 406 function mt() { 407 if (typeof window > "u" || !window.ElementInternals || !HTMLElement.prototype.attachInternals) 408 return !1; 409 class a extends HTMLElement { 410 constructor() { 411 super(), this.internals = this.attachInternals(); 412 } 413 } 414 const t = `element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g, "")}`; 415 customElements.define(t, a); 416 const e = new a(); 417 return [ 418 "shadowRoot", 419 "form", 420 "willValidate", 421 "validity", 422 "validationMessage", 423 "labels", 424 "setFormValue", 425 "setValidity", 426 "checkValidity", 427 "reportValidity" 428 ].every((i) => i in e.internals); 429 } 430 if (mt()) { 431 if (typeof window < "u" && !window.CustomStateSet) { 432 window.CustomStateSet = F; 433 const a = HTMLElement.prototype.attachInternals; 434 HTMLElement.prototype.attachInternals = function(...t) { 435 const e = a.call(this, t); 436 return e.states = new F(this), e; 437 }; 438 } 439 } else { 440 if (typeof window < "u" && (window.ElementInternals = J), typeof CustomElementRegistry < "u") { 441 const a = CustomElementRegistry.prototype.define; 442 CustomElementRegistry.prototype.define = function(t, e, i) { 443 if (e.formAssociated) { 444 const n = e.prototype.connectedCallback; 445 e.prototype.connectedCallback = function() { 446 P.has(this) || (P.set(this, !0), this.hasAttribute("disabled") && V(this, !0)), n != null && n.apply(this), B(this); 447 }; 448 } 449 a.call(this, t, e, i); 450 }; 451 } 452 if (typeof HTMLElement < "u" && (HTMLElement.prototype.attachInternals = function() { 453 if (this.tagName) { 454 if (this.tagName.indexOf("-") === -1) 455 throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-cu
455stom elements."); 456 } else 457 return {}; 458 if (c.has(this)) 459 throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached."); 460 return new J(this); 461 }), typeof Element < "u") { 462 let a = function(...e) { 463 const i = t.apply(this, e); 464 if (R.set(this, i), I()) { 465 const n = new MutationObserver(C); 466 window.ShadyDOM ? n.observe(this, T) : n.observe(i, T), k.set(this, n); 467 } 468 return i; 469 }; 470 var ft = a; 471 const t = Element.prototype.attachShadow; 472 Element.prototype.attachShadow = a; 473 } 474 I() && typeof document < "u" && new MutationObserver(C).observe(document.documentElement, T), typeof HTMLFormElement < "u" && ut(), typeof window < "u" && !window.CustomStateSet && (window.CustomStateSet = F); 475 } 476})();
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.