@wral/hsot-data 0.1.11 → 0.1.12

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.
@@ -17,53 +17,53 @@ let Nt = class {
17
17
  return this.cssText;
18
18
  }
19
19
  };
20
- const re = (r) => new Nt(typeof r == "string" ? r : r + "", void 0, lt), b = (r, ...t) => {
21
- const e = r.length === 1 ? r[0] : t.reduce((s, a, o) => s + ((i) => {
20
+ const ae = (a) => new Nt(typeof a == "string" ? a : a + "", void 0, lt), b = (a, ...t) => {
21
+ const e = a.length === 1 ? a[0] : t.reduce((s, r, o) => s + ((i) => {
22
22
  if (i._$cssResult$ === !0) return i.cssText;
23
23
  if (typeof i == "number") return i;
24
24
  throw Error("Value passed to 'css' function must be a 'css' function result: " + i + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
25
- })(a) + r[o + 1], r[0]);
26
- return new Nt(e, r, lt);
27
- }, ae = (r, t) => {
28
- if (nt) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
25
+ })(r) + a[o + 1], a[0]);
26
+ return new Nt(e, a, lt);
27
+ }, re = (a, t) => {
28
+ if (nt) a.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
29
29
  else for (const e of t) {
30
- const s = document.createElement("style"), a = V.litNonce;
31
- a !== void 0 && s.setAttribute("nonce", a), s.textContent = e.cssText, r.appendChild(s);
30
+ const s = document.createElement("style"), r = V.litNonce;
31
+ r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, a.appendChild(s);
32
32
  }
33
- }, xt = nt ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
33
+ }, xt = nt ? (a) => a : (a) => a instanceof CSSStyleSheet ? ((t) => {
34
34
  let e = "";
35
35
  for (const s of t.cssRules) e += s.cssText;
36
- return re(e);
37
- })(r) : r;
38
- const { is: oe, defineProperty: ie, getOwnPropertyDescriptor: ne, getOwnPropertyNames: le, getOwnPropertySymbols: ce, getPrototypeOf: he } = Object, X = globalThis, kt = X.trustedTypes, de = kt ? kt.emptyScript : "", pe = X.reactiveElementPolyfillSupport, B = (r, t) => r, it = { toAttribute(r, t) {
36
+ return ae(e);
37
+ })(a) : a;
38
+ const { is: oe, defineProperty: ie, getOwnPropertyDescriptor: ne, getOwnPropertyNames: le, getOwnPropertySymbols: ce, getPrototypeOf: he } = Object, X = globalThis, kt = X.trustedTypes, de = kt ? kt.emptyScript : "", pe = X.reactiveElementPolyfillSupport, B = (a, t) => a, it = { toAttribute(a, t) {
39
39
  switch (t) {
40
40
  case Boolean:
41
- r = r ? de : null;
41
+ a = a ? de : null;
42
42
  break;
43
43
  case Object:
44
44
  case Array:
45
- r = r == null ? r : JSON.stringify(r);
45
+ a = a == null ? a : JSON.stringify(a);
46
46
  }
47
- return r;
48
- }, fromAttribute(r, t) {
49
- let e = r;
47
+ return a;
48
+ }, fromAttribute(a, t) {
49
+ let e = a;
50
50
  switch (t) {
51
51
  case Boolean:
52
- e = r !== null;
52
+ e = a !== null;
53
53
  break;
54
54
  case Number:
55
- e = r === null ? null : Number(r);
55
+ e = a === null ? null : Number(a);
56
56
  break;
57
57
  case Object:
58
58
  case Array:
59
59
  try {
60
- e = JSON.parse(r);
60
+ e = JSON.parse(a);
61
61
  } catch {
62
62
  e = null;
63
63
  }
64
64
  }
65
65
  return e;
66
- } }, Ut = (r, t) => !oe(r, t), _t = { attribute: !0, type: String, converter: it, reflect: !1, useDefault: !1, hasChanged: Ut };
66
+ } }, Ut = (a, t) => !oe(a, t), _t = { attribute: !0, type: String, converter: it, reflect: !1, useDefault: !1, hasChanged: Ut };
67
67
  Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), X.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
68
68
  let I = class extends HTMLElement {
69
69
  static addInitializer(t) {
@@ -74,18 +74,18 @@ let I = class extends HTMLElement {
74
74
  }
75
75
  static createProperty(t, e = _t) {
76
76
  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) {
77
- const s = /* @__PURE__ */ Symbol(), a = this.getPropertyDescriptor(t, s, e);
78
- a !== void 0 && ie(this.prototype, t, a);
77
+ const s = /* @__PURE__ */ Symbol(), r = this.getPropertyDescriptor(t, s, e);
78
+ r !== void 0 && ie(this.prototype, t, r);
79
79
  }
80
80
  }
81
81
  static getPropertyDescriptor(t, e, s) {
82
- const { get: a, set: o } = ne(this.prototype, t) ?? { get() {
82
+ const { get: r, set: o } = ne(this.prototype, t) ?? { get() {
83
83
  return this[e];
84
84
  }, set(i) {
85
85
  this[e] = i;
86
86
  } };
87
- return { get: a, set(i) {
88
- const n = a?.call(this);
87
+ return { get: r, set(i) {
88
+ const n = r?.call(this);
89
89
  o?.call(this, i), this.requestUpdate(t, n, s);
90
90
  }, configurable: !0, enumerable: !0 };
91
91
  }
@@ -101,17 +101,17 @@ let I = class extends HTMLElement {
101
101
  if (this.hasOwnProperty(B("finalized"))) return;
102
102
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(B("properties"))) {
103
103
  const e = this.properties, s = [...le(e), ...ce(e)];
104
- for (const a of s) this.createProperty(a, e[a]);
104
+ for (const r of s) this.createProperty(r, e[r]);
105
105
  }
106
106
  const t = this[Symbol.metadata];
107
107
  if (t !== null) {
108
108
  const e = litPropertyMetadata.get(t);
109
- if (e !== void 0) for (const [s, a] of e) this.elementProperties.set(s, a);
109
+ if (e !== void 0) for (const [s, r] of e) this.elementProperties.set(s, r);
110
110
  }
111
111
  this._$Eh = /* @__PURE__ */ new Map();
112
112
  for (const [e, s] of this.elementProperties) {
113
- const a = this._$Eu(e, s);
114
- a !== void 0 && this._$Eh.set(a, e);
113
+ const r = this._$Eu(e, s);
114
+ r !== void 0 && this._$Eh.set(r, e);
115
115
  }
116
116
  this.elementStyles = this.finalizeStyles(this.styles);
117
117
  }
@@ -119,7 +119,7 @@ let I = class extends HTMLElement {
119
119
  const e = [];
120
120
  if (Array.isArray(t)) {
121
121
  const s = new Set(t.flat(1 / 0).reverse());
122
- for (const a of s) e.unshift(xt(a));
122
+ for (const r of s) e.unshift(xt(r));
123
123
  } else t !== void 0 && e.push(xt(t));
124
124
  return e;
125
125
  }
@@ -146,7 +146,7 @@ let I = class extends HTMLElement {
146
146
  }
147
147
  createRenderRoot() {
148
148
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
149
- return ae(t, this.constructor.elementStyles), t;
149
+ return re(t, this.constructor.elementStyles), t;
150
150
  }
151
151
  connectedCallback() {
152
152
  this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((t) => t.hostConnected?.());
@@ -160,31 +160,31 @@ let I = class extends HTMLElement {
160
160
  this._$AK(t, s);
161
161
  }
162
162
  _$ET(t, e) {
163
- const s = this.constructor.elementProperties.get(t), a = this.constructor._$Eu(t, s);
164
- if (a !== void 0 && s.reflect === !0) {
163
+ const s = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, s);
164
+ if (r !== void 0 && s.reflect === !0) {
165
165
  const o = (s.converter?.toAttribute !== void 0 ? s.converter : it).toAttribute(e, s.type);
166
- this._$Em = t, o == null ? this.removeAttribute(a) : this.setAttribute(a, o), this._$Em = null;
166
+ this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
167
167
  }
168
168
  }
169
169
  _$AK(t, e) {
170
- const s = this.constructor, a = s._$Eh.get(t);
171
- if (a !== void 0 && this._$Em !== a) {
172
- const o = s.getPropertyOptions(a), i = typeof o.converter == "function" ? { fromAttribute: o.converter } : o.converter?.fromAttribute !== void 0 ? o.converter : it;
173
- this._$Em = a;
170
+ const s = this.constructor, r = s._$Eh.get(t);
171
+ if (r !== void 0 && this._$Em !== r) {
172
+ const o = s.getPropertyOptions(r), i = typeof o.converter == "function" ? { fromAttribute: o.converter } : o.converter?.fromAttribute !== void 0 ? o.converter : it;
173
+ this._$Em = r;
174
174
  const n = i.fromAttribute(e, o.type);
175
- this[a] = n ?? this._$Ej?.get(a) ?? n, this._$Em = null;
175
+ this[r] = n ?? this._$Ej?.get(r) ?? n, this._$Em = null;
176
176
  }
177
177
  }
178
- requestUpdate(t, e, s, a = !1, o) {
178
+ requestUpdate(t, e, s, r = !1, o) {
179
179
  if (t !== void 0) {
180
180
  const i = this.constructor;
181
- if (a === !1 && (o = this[t]), s ??= i.getPropertyOptions(t), !((s.hasChanged ?? Ut)(o, e) || s.useDefault && s.reflect && o === this._$Ej?.get(t) && !this.hasAttribute(i._$Eu(t, s)))) return;
181
+ if (r === !1 && (o = this[t]), s ??= i.getPropertyOptions(t), !((s.hasChanged ?? Ut)(o, e) || s.useDefault && s.reflect && o === this._$Ej?.get(t) && !this.hasAttribute(i._$Eu(t, s)))) return;
182
182
  this.C(t, e, s);
183
183
  }
184
184
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
185
185
  }
186
- C(t, e, { useDefault: s, reflect: a, wrapped: o }, i) {
187
- s && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, i ?? e ?? this[t]), o !== !0 || i !== void 0) || (this._$AL.has(t) || (this.hasUpdated || s || (e = void 0), this._$AL.set(t, e)), a === !0 && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t));
186
+ C(t, e, { useDefault: s, reflect: r, wrapped: o }, i) {
187
+ s && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, i ?? e ?? this[t]), o !== !0 || i !== void 0) || (this._$AL.has(t) || (this.hasUpdated || s || (e = void 0), this._$AL.set(t, e)), r === !0 && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t));
188
188
  }
189
189
  async _$EP() {
190
190
  this.isUpdatePending = !0;
@@ -203,13 +203,13 @@ let I = class extends HTMLElement {
203
203
  if (!this.isUpdatePending) return;
204
204
  if (!this.hasUpdated) {
205
205
  if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
206
- for (const [a, o] of this._$Ep) this[a] = o;
206
+ for (const [r, o] of this._$Ep) this[r] = o;
207
207
  this._$Ep = void 0;
208
208
  }
209
209
  const s = this.constructor.elementProperties;
210
- if (s.size > 0) for (const [a, o] of s) {
211
- const { wrapped: i } = o, n = this[a];
212
- i !== !0 || this._$AL.has(a) || n === void 0 || this.C(a, void 0, o, n);
210
+ if (s.size > 0) for (const [r, o] of s) {
211
+ const { wrapped: i } = o, n = this[r];
212
+ i !== !0 || this._$AL.has(r) || n === void 0 || this.C(r, void 0, o, n);
213
213
  }
214
214
  }
215
215
  let t = !1;
@@ -247,28 +247,28 @@ let I = class extends HTMLElement {
247
247
  }
248
248
  };
249
249
  I.elementStyles = [], I.shadowRootOptions = { mode: "open" }, I[B("elementProperties")] = /* @__PURE__ */ new Map(), I[B("finalized")] = /* @__PURE__ */ new Map(), pe?.({ ReactiveElement: I }), (X.reactiveElementVersions ??= []).push("2.1.2");
250
- const ct = globalThis, St = (r) => r, Y = ct.trustedTypes, At = Y ? Y.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Ot = "$lit$", k = `lit$${Math.random().toFixed(9).slice(2)}$`, Ht = "?" + k, me = `<${Ht}>`, T = document, F = () => T.createComment(""), N = (r) => r === null || typeof r != "object" && typeof r != "function", ht = Array.isArray, fe = (r) => ht(r) || typeof r?.[Symbol.iterator] == "function", at = `[
251
- \f\r]`, R = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Tt = /-->/g, It = />/g, S = RegExp(`>|${at}(?:([^\\s"'>=/]+)(${at}*=${at}*(?:[^
252
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Ct = /'/g, Et = /"/g, Mt = /^(?:script|style|textarea|title)$/i, Lt = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), c = Lt(1), Pt = Lt(2), P = /* @__PURE__ */ Symbol.for("lit-noChange"), m = /* @__PURE__ */ Symbol.for("lit-nothing"), Dt = /* @__PURE__ */ new WeakMap(), A = T.createTreeWalker(T, 129);
253
- function jt(r, t) {
254
- if (!ht(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
250
+ const ct = globalThis, St = (a) => a, Y = ct.trustedTypes, At = Y ? Y.createPolicy("lit-html", { createHTML: (a) => a }) : void 0, Ot = "$lit$", k = `lit$${Math.random().toFixed(9).slice(2)}$`, Ht = "?" + k, me = `<${Ht}>`, T = document, F = () => T.createComment(""), N = (a) => a === null || typeof a != "object" && typeof a != "function", ht = Array.isArray, fe = (a) => ht(a) || typeof a?.[Symbol.iterator] == "function", rt = `[
251
+ \f\r]`, R = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Tt = /-->/g, It = />/g, S = RegExp(`>|${rt}(?:([^\\s"'>=/]+)(${rt}*=${rt}*(?:[^
252
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Ct = /'/g, Et = /"/g, Mt = /^(?:script|style|textarea|title)$/i, Lt = (a) => (t, ...e) => ({ _$litType$: a, strings: t, values: e }), c = Lt(1), Pt = Lt(2), P = /* @__PURE__ */ Symbol.for("lit-noChange"), m = /* @__PURE__ */ Symbol.for("lit-nothing"), Dt = /* @__PURE__ */ new WeakMap(), A = T.createTreeWalker(T, 129);
253
+ function jt(a, t) {
254
+ if (!ht(a) || !a.hasOwnProperty("raw")) throw Error("invalid template strings array");
255
255
  return At !== void 0 ? At.createHTML(t) : t;
256
256
  }
257
- const ue = (r, t) => {
258
- const e = r.length - 1, s = [];
259
- let a, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", i = R;
257
+ const ue = (a, t) => {
258
+ const e = a.length - 1, s = [];
259
+ let r, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", i = R;
260
260
  for (let n = 0; n < e; n++) {
261
- const d = r[n];
261
+ const d = a[n];
262
262
  let l, h, p = -1, f = 0;
263
- for (; f < d.length && (i.lastIndex = f, h = i.exec(d), h !== null); ) f = i.lastIndex, i === R ? h[1] === "!--" ? i = Tt : h[1] !== void 0 ? i = It : h[2] !== void 0 ? (Mt.test(h[2]) && (a = RegExp("</" + h[2], "g")), i = S) : h[3] !== void 0 && (i = S) : i === S ? h[0] === ">" ? (i = a ?? R, p = -1) : h[1] === void 0 ? p = -2 : (p = i.lastIndex - h[2].length, l = h[1], i = h[3] === void 0 ? S : h[3] === '"' ? Et : Ct) : i === Et || i === Ct ? i = S : i === Tt || i === It ? i = R : (i = S, a = void 0);
264
- const u = i === S && r[n + 1].startsWith("/>") ? " " : "";
263
+ for (; f < d.length && (i.lastIndex = f, h = i.exec(d), h !== null); ) f = i.lastIndex, i === R ? h[1] === "!--" ? i = Tt : h[1] !== void 0 ? i = It : h[2] !== void 0 ? (Mt.test(h[2]) && (r = RegExp("</" + h[2], "g")), i = S) : h[3] !== void 0 && (i = S) : i === S ? h[0] === ">" ? (i = r ?? R, p = -1) : h[1] === void 0 ? p = -2 : (p = i.lastIndex - h[2].length, l = h[1], i = h[3] === void 0 ? S : h[3] === '"' ? Et : Ct) : i === Et || i === Ct ? i = S : i === Tt || i === It ? i = R : (i = S, r = void 0);
264
+ const u = i === S && a[n + 1].startsWith("/>") ? " " : "";
265
265
  o += i === R ? d + me : p >= 0 ? (s.push(l), d.slice(0, p) + Ot + d.slice(p) + k + u) : d + k + (p === -2 ? n : u);
266
266
  }
267
- return [jt(r, o + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
267
+ return [jt(a, o + (a[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
268
268
  };
269
269
  class U {
270
270
  constructor({ strings: t, _$litType$: e }, s) {
271
- let a;
271
+ let r;
272
272
  this.parts = [];
273
273
  let o = 0, i = 0;
274
274
  const n = t.length - 1, d = this.parts, [l, h] = ue(t, e);
@@ -276,24 +276,24 @@ class U {
276
276
  const p = this.el.content.firstChild;
277
277
  p.replaceWith(...p.childNodes);
278
278
  }
279
- for (; (a = A.nextNode()) !== null && d.length < n; ) {
280
- if (a.nodeType === 1) {
281
- if (a.hasAttributes()) for (const p of a.getAttributeNames()) if (p.endsWith(Ot)) {
282
- const f = h[i++], u = a.getAttribute(p).split(k), $ = /([.?@])?(.*)/.exec(f);
283
- d.push({ type: 1, index: o, name: $[2], strings: u, ctor: $[1] === "." ? ve : $[1] === "?" ? $e : $[1] === "@" ? be : tt }), a.removeAttribute(p);
284
- } else p.startsWith(k) && (d.push({ type: 6, index: o }), a.removeAttribute(p));
285
- if (Mt.test(a.tagName)) {
286
- const p = a.textContent.split(k), f = p.length - 1;
279
+ for (; (r = A.nextNode()) !== null && d.length < n; ) {
280
+ if (r.nodeType === 1) {
281
+ if (r.hasAttributes()) for (const p of r.getAttributeNames()) if (p.endsWith(Ot)) {
282
+ const f = h[i++], u = r.getAttribute(p).split(k), $ = /([.?@])?(.*)/.exec(f);
283
+ d.push({ type: 1, index: o, name: $[2], strings: u, ctor: $[1] === "." ? ve : $[1] === "?" ? $e : $[1] === "@" ? be : tt }), r.removeAttribute(p);
284
+ } else p.startsWith(k) && (d.push({ type: 6, index: o }), r.removeAttribute(p));
285
+ if (Mt.test(r.tagName)) {
286
+ const p = r.textContent.split(k), f = p.length - 1;
287
287
  if (f > 0) {
288
- a.textContent = Y ? Y.emptyScript : "";
289
- for (let u = 0; u < f; u++) a.append(p[u], F()), A.nextNode(), d.push({ type: 2, index: ++o });
290
- a.append(p[f], F());
288
+ r.textContent = Y ? Y.emptyScript : "";
289
+ for (let u = 0; u < f; u++) r.append(p[u], F()), A.nextNode(), d.push({ type: 2, index: ++o });
290
+ r.append(p[f], F());
291
291
  }
292
292
  }
293
- } else if (a.nodeType === 8) if (a.data === Ht) d.push({ type: 2, index: o });
293
+ } else if (r.nodeType === 8) if (r.data === Ht) d.push({ type: 2, index: o });
294
294
  else {
295
295
  let p = -1;
296
- for (; (p = a.data.indexOf(k, p + 1)) !== -1; ) d.push({ type: 7, index: o }), p += k.length - 1;
296
+ for (; (p = r.data.indexOf(k, p + 1)) !== -1; ) d.push({ type: 7, index: o }), p += k.length - 1;
297
297
  }
298
298
  o++;
299
299
  }
@@ -303,11 +303,11 @@ class U {
303
303
  return s.innerHTML = t, s;
304
304
  }
305
305
  }
306
- function D(r, t, e = r, s) {
306
+ function D(a, t, e = a, s) {
307
307
  if (t === P) return t;
308
- let a = s !== void 0 ? e._$Co?.[s] : e._$Cl;
308
+ let r = s !== void 0 ? e._$Co?.[s] : e._$Cl;
309
309
  const o = N(t) ? void 0 : t._$litDirective$;
310
- return a?.constructor !== o && (a?._$AO?.(!1), o === void 0 ? a = void 0 : (a = new o(r), a._$AT(r, e, s)), s !== void 0 ? (e._$Co ??= [])[s] = a : e._$Cl = a), a !== void 0 && (t = D(r, a._$AS(r, t.values), a, s)), t;
310
+ return r?.constructor !== o && (r?._$AO?.(!1), o === void 0 ? r = void 0 : (r = new o(a), r._$AT(a, e, s)), s !== void 0 ? (e._$Co ??= [])[s] = r : e._$Cl = r), r !== void 0 && (t = D(a, r._$AS(a, t.values), r, s)), t;
311
311
  }
312
312
  class ge {
313
313
  constructor(t, e) {
@@ -320,8 +320,8 @@ class ge {
320
320
  return this._$AM._$AU;
321
321
  }
322
322
  u(t) {
323
- const { el: { content: e }, parts: s } = this._$AD, a = (t?.creationScope ?? T).importNode(e, !0);
324
- A.currentNode = a;
323
+ const { el: { content: e }, parts: s } = this._$AD, r = (t?.creationScope ?? T).importNode(e, !0);
324
+ A.currentNode = r;
325
325
  let o = A.nextNode(), i = 0, n = 0, d = s[0];
326
326
  for (; d !== void 0; ) {
327
327
  if (i === d.index) {
@@ -330,7 +330,7 @@ class ge {
330
330
  }
331
331
  i !== d?.index && (o = A.nextNode(), i++);
332
332
  }
333
- return A.currentNode = T, a;
333
+ return A.currentNode = T, r;
334
334
  }
335
335
  p(t) {
336
336
  let e = 0;
@@ -341,8 +341,8 @@ class M {
341
341
  get _$AU() {
342
342
  return this._$AM?._$AU ?? this._$Cv;
343
343
  }
344
- constructor(t, e, s, a) {
345
- this.type = 2, this._$AH = m, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = a, this._$Cv = a?.isConnected ?? !0;
344
+ constructor(t, e, s, r) {
345
+ this.type = 2, this._$AH = m, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = r, this._$Cv = r?.isConnected ?? !0;
346
346
  }
347
347
  get parentNode() {
348
348
  let t = this._$AA.parentNode;
@@ -368,10 +368,10 @@ class M {
368
368
  this._$AH !== m && N(this._$AH) ? this._$AA.nextSibling.data = t : this.T(T.createTextNode(t)), this._$AH = t;
369
369
  }
370
370
  $(t) {
371
- const { values: e, _$litType$: s } = t, a = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = U.createElement(jt(s.h, s.h[0]), this.options)), s);
372
- if (this._$AH?._$AD === a) this._$AH.p(e);
371
+ const { values: e, _$litType$: s } = t, r = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = U.createElement(jt(s.h, s.h[0]), this.options)), s);
372
+ if (this._$AH?._$AD === r) this._$AH.p(e);
373
373
  else {
374
- const o = new ge(a, this), i = o.u(this.options);
374
+ const o = new ge(r, this), i = o.u(this.options);
375
375
  o.p(e), this.T(i), this._$AH = o;
376
376
  }
377
377
  }
@@ -382,9 +382,9 @@ class M {
382
382
  k(t) {
383
383
  ht(this._$AH) || (this._$AH = [], this._$AR());
384
384
  const e = this._$AH;
385
- let s, a = 0;
386
- for (const o of t) a === e.length ? e.push(s = new M(this.O(F()), this.O(F()), this, this.options)) : s = e[a], s._$AI(o), a++;
387
- a < e.length && (this._$AR(s && s._$AB.nextSibling, a), e.length = a);
385
+ let s, r = 0;
386
+ for (const o of t) r === e.length ? e.push(s = new M(this.O(F()), this.O(F()), this, this.options)) : s = e[r], s._$AI(o), r++;
387
+ r < e.length && (this._$AR(s && s._$AB.nextSibling, r), e.length = r);
388
388
  }
389
389
  _$AR(t = this._$AA.nextSibling, e) {
390
390
  for (this._$AP?.(!1, !0, e); t !== this._$AB; ) {
@@ -403,10 +403,10 @@ class tt {
403
403
  get _$AU() {
404
404
  return this._$AM._$AU;
405
405
  }
406
- constructor(t, e, s, a, o) {
407
- this.type = 1, this._$AH = m, this._$AN = void 0, this.element = t, this.name = e, this._$AM = a, this.options = o, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = m;
406
+ constructor(t, e, s, r, o) {
407
+ this.type = 1, this._$AH = m, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = o, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = m;
408
408
  }
409
- _$AI(t, e = this, s, a) {
409
+ _$AI(t, e = this, s, r) {
410
410
  const o = this.strings;
411
411
  let i = !1;
412
412
  if (o === void 0) t = D(this, t, e, 0), i = !N(t) || t !== this._$AH && t !== P, i && (this._$AH = t);
@@ -415,7 +415,7 @@ class tt {
415
415
  let d, l;
416
416
  for (t = o[0], d = 0; d < o.length - 1; d++) l = D(this, n[s + d], e, d), l === P && (l = this._$AH[d]), i ||= !N(l) || l !== this._$AH[d], l === m ? t = m : t !== m && (t += (l ?? "") + o[d + 1]), this._$AH[d] = l;
417
417
  }
418
- i && !a && this.j(t);
418
+ i && !r && this.j(t);
419
419
  }
420
420
  j(t) {
421
421
  t === m ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
@@ -438,13 +438,13 @@ class $e extends tt {
438
438
  }
439
439
  }
440
440
  class be extends tt {
441
- constructor(t, e, s, a, o) {
442
- super(t, e, s, a, o), this.type = 5;
441
+ constructor(t, e, s, r, o) {
442
+ super(t, e, s, r, o), this.type = 5;
443
443
  }
444
444
  _$AI(t, e = this) {
445
445
  if ((t = D(this, t, e, 0) ?? m) === P) return;
446
- const s = this._$AH, a = t === m && s !== m || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== m && (s === m || a);
447
- a && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
446
+ const s = this._$AH, r = t === m && s !== m || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== m && (s === m || r);
447
+ r && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
448
448
  }
449
449
  handleEvent(t) {
450
450
  typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
@@ -463,14 +463,14 @@ class ye {
463
463
  }
464
464
  const we = ct.litHtmlPolyfillSupport;
465
465
  we?.(U, M), (ct.litHtmlVersions ??= []).push("3.3.3");
466
- const xe = (r, t, e) => {
466
+ const xe = (a, t, e) => {
467
467
  const s = e?.renderBefore ?? t;
468
- let a = s._$litPart$;
469
- if (a === void 0) {
468
+ let r = s._$litPart$;
469
+ if (r === void 0) {
470
470
  const o = e?.renderBefore ?? null;
471
- s._$litPart$ = a = new M(t.insertBefore(F(), o), o, void 0, e ?? {});
471
+ s._$litPart$ = r = new M(t.insertBefore(F(), o), o, void 0, e ?? {});
472
472
  }
473
- return a._$AI(r), a;
473
+ return r._$AI(a), r;
474
474
  };
475
475
  const dt = globalThis;
476
476
  class E extends I {
@@ -500,19 +500,19 @@ const ke = dt.litElementPolyfillSupport;
500
500
  ke?.({ LitElement: E });
501
501
  (dt.litElementVersions ??= []).push("4.2.2");
502
502
  const _e = 50;
503
- function Se(r = {}) {
504
- const t = Object.entries(r).filter(([, s]) => s != null && s !== "");
503
+ function Se(a = {}) {
504
+ const t = Object.entries(a).filter(([, s]) => s != null && s !== "");
505
505
  if (!t.length) return "";
506
506
  const e = new URLSearchParams();
507
- return t.forEach(([s, a]) => e.set(s, String(a))), `?${e.toString()}`;
507
+ return t.forEach(([s, r]) => e.set(s, String(r))), `?${e.toString()}`;
508
508
  }
509
- function Ae({ baseUrl: r, token: t = "", fetchFn: e } = {}) {
510
- if (!r) throw new Error("createClient requires a baseUrl");
511
- const s = r.replace(/\/+$/, ""), a = e || ((...n) => fetch(...n));
509
+ function Ae({ baseUrl: a, token: t = "", fetchFn: e } = {}) {
510
+ if (!a) throw new Error("createClient requires a baseUrl");
511
+ const s = a.replace(/\/+$/, ""), r = e || ((...n) => fetch(...n));
512
512
  async function o(n) {
513
513
  const d = { Accept: "application/json" };
514
514
  t && (d.Authorization = `Bearer ${t}`);
515
- const l = await a(`${s}${n}`, { headers: d });
515
+ const l = await r(`${s}${n}`, { headers: d });
516
516
  if (!l.ok) {
517
517
  const h = new Error(`api-hsot ${l.status} on ${n}`);
518
518
  throw h.status = l.status, h;
@@ -549,120 +549,120 @@ const ot = {
549
549
  school: "/school/{id}/",
550
550
  section: "/{sport}/{view}/"
551
551
  };
552
- function g(r, t) {
553
- return String(r).replace(/\{(\w+)\}/g, (e, s) => t[s] !== void 0 && t[s] !== null ? String(t[s]) : e);
552
+ function g(a, t) {
553
+ return String(a).replace(/\{(\w+)\}/g, (e, s) => t[s] !== void 0 && t[s] !== null ? String(t[s]) : e);
554
554
  }
555
- function L(r) {
555
+ function L(a) {
556
556
  return {
557
- game: r.getAttribute("game-href") || ot.game,
558
- school: r.getAttribute("school-href") || ot.school,
559
- section: r.getAttribute("section-href") || ot.section
557
+ game: a.getAttribute("game-href") || ot.game,
558
+ school: a.getAttribute("school-href") || ot.school,
559
+ section: a.getAttribute("section-href") || ot.section
560
560
  };
561
561
  }
562
- const z = (r) => r ? r.charAt(0).toUpperCase() + r.slice(1) : "";
563
- function y(r, t) {
564
- if (!r) return "TBD";
565
- const [e, s, a] = String(r).split("-").map(Number);
566
- return !e || !s || !a ? "TBD" : new Date(e, s - 1, a).toLocaleDateString("en-US", t || { weekday: "short", month: "short", day: "numeric" });
562
+ const z = (a) => a ? a.charAt(0).toUpperCase() + a.slice(1) : "";
563
+ function y(a, t) {
564
+ if (!a) return "TBD";
565
+ const [e, s, r] = String(a).split("-").map(Number);
566
+ return !e || !s || !r ? "TBD" : new Date(e, s - 1, r).toLocaleDateString("en-US", t || { weekday: "short", month: "short", day: "numeric" });
567
567
  }
568
- function pt(r) {
569
- if (!r) return "";
570
- const [t, e] = String(r).split(":").map(Number);
568
+ function pt(a) {
569
+ if (!a) return "";
570
+ const [t, e] = String(a).split(":").map(Number);
571
571
  if (Number.isNaN(t)) return "";
572
572
  const s = t >= 12 ? "PM" : "AM";
573
573
  return `${(t + 11) % 12 + 1}:${String(e || 0).padStart(2, "0")} ${s}`;
574
574
  }
575
- function Te(r) {
576
- return r ? `${Math.floor(r / 12)}-${r % 12}` : "·";
575
+ function Te(a) {
576
+ return a ? `${Math.floor(a / 12)}-${a % 12}` : "·";
577
577
  }
578
- function et(r = /* @__PURE__ */ new Date()) {
579
- const t = r.getFullYear();
580
- return r.getMonth() >= 6 ? `${t}-${t + 1}` : `${t - 1}-${t}`;
578
+ function et(a = /* @__PURE__ */ new Date()) {
579
+ const t = a.getFullYear();
580
+ return a.getMonth() >= 6 ? `${t}-${t + 1}` : `${t - 1}-${t}`;
581
581
  }
582
- function mt(r = /* @__PURE__ */ new Date()) {
582
+ function mt(a = /* @__PURE__ */ new Date()) {
583
583
  const t = (e) => String(e).padStart(2, "0");
584
- return `${r.getFullYear()}-${t(r.getMonth() + 1)}-${t(r.getDate())}`;
584
+ return `${a.getFullYear()}-${t(a.getMonth() + 1)}-${t(a.getDate())}`;
585
585
  }
586
- function Ie(r, t = mt()) {
587
- const e = [...new Set((r || []).filter(Boolean))].sort();
586
+ function Ie(a, t = mt()) {
587
+ const e = [...new Set((a || []).filter(Boolean))].sort();
588
588
  if (!e.length || e.includes(t)) return t;
589
- const s = e.filter((a) => a < t);
589
+ const s = e.filter((r) => r < t);
590
590
  return s.length ? s[s.length - 1] : e[0];
591
591
  }
592
- function ft(r) {
593
- return r ? (r.abbr || r.name || "?").slice(0, 4).toUpperCase() : "?";
592
+ function ft(a) {
593
+ return a ? (a.abbr || a.name || "?").slice(0, 4).toUpperCase() : "?";
594
594
  }
595
- function K(r) {
596
- if (!r || !/^#[0-9a-fA-F]{6}$/.test(r)) return "#FFFFFF";
597
- const t = parseInt(r.slice(1), 16), e = t >> 16 & 255, s = t >> 8 & 255, a = t & 255;
598
- return 0.299 * e + 0.587 * s + 0.114 * a > 150 ? "#0F1B33" : "#FFFFFF";
595
+ function K(a) {
596
+ if (!a || !/^#[0-9a-fA-F]{6}$/.test(a)) return "#FFFFFF";
597
+ const t = parseInt(a.slice(1), 16), e = t >> 16 & 255, s = t >> 8 & 255, r = t & 255;
598
+ return 0.299 * e + 0.587 * s + 0.114 * r > 150 ? "#0F1B33" : "#FFFFFF";
599
599
  }
600
- const Ce = (r) => {
601
- const t = ["th", "st", "nd", "rd"], e = r % 100;
602
- return r + (t[(e - 20) % 10] || t[e] || t[0]);
600
+ const Ce = (a) => {
601
+ const t = ["th", "st", "nd", "rd"], e = a % 100;
602
+ return a + (t[(e - 20) % 10] || t[e] || t[0]);
603
603
  };
604
- function zt(r, t) {
604
+ function zt(a, t) {
605
605
  const e = (o) => {
606
606
  const i = /^\d+/.exec(String(o ?? ""));
607
607
  return i ? Number(i[0]) : null;
608
- }, s = e(r), a = e(t);
609
- return s !== null && a !== null && s !== a ? a - s : s !== null && a === null ? -1 : s === null && a !== null ? 1 : String(r ?? "").localeCompare(String(t ?? ""), "en", { sensitivity: "base" });
608
+ }, s = e(a), r = e(t);
609
+ return s !== null && r !== null && s !== r ? r - s : s !== null && r === null ? -1 : s === null && r !== null ? 1 : String(a ?? "").localeCompare(String(t ?? ""), "en", { sensitivity: "base" });
610
610
  }
611
- function Ee(r, t) {
611
+ function Ee(a, t) {
612
612
  const e = (s) => String(s?.name ?? s ?? "");
613
- return e(r).localeCompare(e(t), "en", { numeric: !0, sensitivity: "base" });
613
+ return e(a).localeCompare(e(t), "en", { numeric: !0, sensitivity: "base" });
614
614
  }
615
- function Wt(r) {
616
- if (r.state === "live") return { kind: "live", label: `Live · ${r.period || ""}`.replace(/ · $/, "") };
617
- if (r.state === "final") {
615
+ function Wt(a) {
616
+ if (a.state === "live") return { kind: "live", label: `Live · ${a.period || ""}`.replace(/ · $/, "") };
617
+ if (a.state === "final") {
618
618
  const t = [];
619
- return r.finish === "overtime" && t.push("OT"), r.finish === "shootout" && t.push("PK-SO"), r.forfeit && r.forfeit !== "none" && t.push("Forfeit"), { kind: "final", label: `Final${t.length ? ` · ${t.join(" · ")}` : ""}` };
619
+ return a.finish === "overtime" && t.push("OT"), a.finish === "shootout" && t.push("PK-SO"), a.forfeit && a.forfeit !== "none" && t.push("Forfeit"), { kind: "final", label: `Final${t.length ? ` · ${t.join(" · ")}` : ""}` };
620
620
  }
621
- return r.state === "postponed" ? { kind: "warn", label: "Postponed" } : r.state === "canceled" ? { kind: "warn", label: "Canceled" } : { kind: "sched", label: `${y(r.date, { month: "short", day: "numeric" })} · ${pt(r.time)}`.replace(/ · $/, "") };
621
+ return a.state === "postponed" ? { kind: "warn", label: "Postponed" } : a.state === "canceled" ? { kind: "warn", label: "Canceled" } : { kind: "sched", label: `${y(a.date, { month: "short", day: "numeric" })} · ${pt(a.time)}`.replace(/ · $/, "") };
622
622
  }
623
623
  const Pe = /* @__PURE__ */ new Set(["game", "story", "page", "forum", "video", "gallery"]);
624
- function _(r) {
625
- let t = String(r || "").replace(/^[a-z][a-z0-9+.-]*:\/\/[^/#?]*/i, "");
624
+ function _(a) {
625
+ let t = String(a || "").replace(/^[a-z][a-z0-9+.-]*:\/\/[^/#?]*/i, "");
626
626
  const e = t.indexOf("#");
627
627
  let s = "";
628
628
  e !== -1 && (s = t.slice(e).split("?")[0], t = t.slice(0, e));
629
- let a = t.split("?")[0] + s;
630
- return a = a.replace(/([^:])\/{2,}/g, "$1/").replace(/^\/{2,}/, "/"), a = a.replace(/^\/(?=#)/, ""), a.length > 1 && (a = a.replace(/\/+$/, "")), a.toLowerCase();
629
+ let r = t.split("?")[0] + s;
630
+ return r = r.replace(/([^:])\/{2,}/g, "$1/").replace(/^\/{2,}/, "/"), r = r.replace(/^\/(?=#)/, ""), r.length > 1 && (r = r.replace(/\/+$/, "")), r.toLowerCase();
631
631
  }
632
632
  function qt() {
633
- const r = globalThis.location;
634
- if (!r) return "";
635
- const t = (r.hash || "").startsWith("#/") ? r.hash : "";
636
- return _((r.pathname || "") + t);
633
+ const a = globalThis.location;
634
+ if (!a) return "";
635
+ const t = (a.hash || "").startsWith("#/") ? a.hash : "";
636
+ return _((a.pathname || "") + t);
637
637
  }
638
- function De(r, t, e) {
638
+ function De(a, t, e) {
639
639
  if (!e) return null;
640
- const s = _(r);
640
+ const s = _(a);
641
641
  if (!s) return null;
642
- const a = _(g(t.game, { sport: e, id: "" })), o = _(g(t.school, { id: "" }));
643
- if (s === a || s.startsWith(`${a}/`) || s === o || s.startsWith(`${o}/`)) return null;
642
+ const r = _(g(t.game, { sport: e, id: "" })), o = _(g(t.school, { id: "" }));
643
+ if (s === r || s.startsWith(`${r}/`) || s === o || s.startsWith(`${o}/`)) return null;
644
644
  const i = _(g(t.section, { sport: e, view: "" }));
645
645
  if (s === i) return "";
646
646
  if (!s.startsWith(`${i}/`)) return null;
647
647
  const n = s.slice(i.length + 1), d = n.split("/");
648
648
  return d.length > 2 || d.some((l) => !/^[a-z][a-z-]*$/.test(l)) || Pe.has(d[0]) ? null : n;
649
649
  }
650
- function ze(r, t, e) {
651
- const s = (i) => g(e.section, { sport: r, view: i }).replace(/([^:])\/{2,}/g, "$1/"), o = new Set((t || []).map((i) => i && i.gender).filter((i) => i === "boys" || i === "girls")).size === 2 ? [
650
+ function ze(a, t, e) {
651
+ const s = (i) => g(e.section, { sport: a, view: i }).replace(/([^:])\/{2,}/g, "$1/"), o = new Set((t || []).map((i) => i && i.gender).filter((i) => i === "boys" || i === "girls")).size === 2 ? [
652
652
  { label: "Boys Standings", href: s("boys/standings") },
653
653
  { label: "Girls Standings", href: s("girls/standings") }
654
654
  ] : [{ label: "Standings", href: s("standings") }];
655
655
  return [
656
- { label: `${z(r)} Home`, href: s("") },
656
+ { label: `${z(a)} Home`, href: s("") },
657
657
  { label: "Scores/Schedule", href: s("scores") },
658
658
  { label: "Playoff Brackets", href: s("brackets") },
659
659
  ...o,
660
660
  { label: "Polls & Rankings", href: s("rankings") }
661
661
  ];
662
662
  }
663
- function Re(r, t = qt()) {
663
+ function Re(a, t = qt()) {
664
664
  const e = _(t);
665
- for (const s of r.querySelectorAll(':scope > a[slot="nav"]'))
665
+ for (const s of a.querySelectorAll(':scope > a[slot="nav"]'))
666
666
  e && _(s.getAttribute("href")) === e ? s.setAttribute("aria-current", "page") : s.removeAttribute("aria-current");
667
667
  }
668
668
  class w extends E {
@@ -731,7 +731,7 @@ class w extends E {
731
731
  return c``;
732
732
  }
733
733
  }
734
- const v = (r) => Object.fromEntries((r || []).map((t) => [t.id, t])), Be = b`
734
+ const v = (a) => Object.fromEntries((a || []).map((t) => [t.id, t])), Be = b`
735
735
  :host {
736
736
  --hsot-red: var(--color-red, #D1232A);
737
737
  --hsot-red-deep: var(--color-red-dark, #951C21);
@@ -990,15 +990,15 @@ const v = (r) => Object.fromEntries((r || []).map((t) => [t.id, t])), Be = b`
990
990
  .gamelist .where { color: var(--hsot-gray-5); font-size: 0.78rem; }
991
991
  .gamelist a.box { font-size: 0.78rem; }
992
992
  `, j = [Be, Fe, Ne, Ue, Oe, He, Me];
993
- function ut(r) {
994
- return r.state !== "final" ? null : r.forfeit === "home" ? "away" : r.forfeit === "away" || r.homeScore > r.awayScore ? "home" : r.awayScore > r.homeScore ? "away" : r.tiebreakWinner && r.tiebreakWinner !== "none" ? r.tiebreakWinner : "tie";
993
+ function ut(a) {
994
+ return a.state !== "final" ? null : a.forfeit === "home" ? "away" : a.forfeit === "away" || a.homeScore > a.awayScore ? "home" : a.awayScore > a.homeScore ? "away" : a.tiebreakWinner && a.tiebreakWinner !== "none" ? a.tiebreakWinner : "tie";
995
995
  }
996
- function Le(r) {
997
- return r && (r.forfeit === "home" || r.forfeit === "away") ? r.forfeit : null;
996
+ function Le(a) {
997
+ return a && (a.forfeit === "home" || a.forfeit === "away") ? a.forfeit : null;
998
998
  }
999
- function W(r, t) {
1000
- const e = {}, s = (o) => (e[o] = e[o] || { w: 0, l: 0, t: 0, cw: 0, cl: 0, ct: 0, pf: 0, pa: 0, results: [] }, e[o]), a = r.filter((o) => o.state === "final" && o.gameType !== "scrimmage" && !0).sort((o, i) => String(o.date).localeCompare(String(i.date)));
1001
- for (const o of a) {
999
+ function W(a, t) {
1000
+ const e = {}, s = (o) => (e[o] = e[o] || { w: 0, l: 0, t: 0, cw: 0, cl: 0, ct: 0, pf: 0, pa: 0, results: [] }, e[o]), r = a.filter((o) => o.state === "final" && o.gameType !== "scrimmage" && !0).sort((o, i) => String(o.date).localeCompare(String(i.date)));
1001
+ for (const o of r) {
1002
1002
  const i = ut(o), n = o.gameType === "conference";
1003
1003
  for (const d of ["home", "away"]) {
1004
1004
  const l = d === "home" ? o.homeTeamId : o.awayTeamId;
@@ -1011,41 +1011,41 @@ function W(r, t) {
1011
1011
  }
1012
1012
  return e;
1013
1013
  }
1014
- function st(r) {
1015
- if (!r || !r.length) return "";
1016
- const t = r[r.length - 1].mark;
1014
+ function st(a) {
1015
+ if (!a || !a.length) return "";
1016
+ const t = a[a.length - 1].mark;
1017
1017
  let e = 0;
1018
- for (let s = r.length - 1; s >= 0 && r[s].mark === t; s -= 1) e += 1;
1018
+ for (let s = a.length - 1; s >= 0 && a[s].mark === t; s -= 1) e += 1;
1019
1019
  return t + e;
1020
1020
  }
1021
- const Rt = (r, t, e) => {
1022
- const s = r + t + e;
1023
- return s ? (r + e / 2) / s : 0;
1024
- }, Bt = (r) => r.toFixed(3).replace("0.", ".");
1025
- function x(r, t = !1) {
1026
- if (!r) return "0-0";
1027
- const e = t ? r.cw : r.w, s = t ? r.cl : r.l, a = t ? r.ct : r.t;
1028
- return `${e}-${s}${a ? `-${a}` : ""}`;
1029
- }
1030
- function Gt(r, t) {
1031
- return r.map((e) => {
1021
+ const Rt = (a, t, e) => {
1022
+ const s = a + t + e;
1023
+ return s ? (a + e / 2) / s : 0;
1024
+ }, Bt = (a) => a.toFixed(3).replace("0.", ".");
1025
+ function x(a, t = !1) {
1026
+ if (!a) return "0-0";
1027
+ const e = t ? a.cw : a.w, s = t ? a.cl : a.l, r = t ? a.ct : a.t;
1028
+ return `${e}-${s}${r ? `-${r}` : ""}`;
1029
+ }
1030
+ function Gt(a, t) {
1031
+ return a.map((e) => {
1032
1032
  const s = t[e.id] || { w: 0, l: 0, t: 0, cw: 0, cl: 0, ct: 0, pf: 0, pa: 0, results: [] };
1033
1033
  return { team: e, rec: s, confPct: Rt(s.cw, s.cl, s.ct), overallPct: Rt(s.w, s.l, s.t) };
1034
1034
  }).sort((e, s) => s.confPct - e.confPct || s.overallPct - e.overallPct || s.rec.pf - s.rec.pa - (e.rec.pf - e.rec.pa));
1035
1035
  }
1036
- function gt(r, t) {
1037
- return r.filter((e) => (e.homeTeamId === t || e.awayTeamId === t) && (e.state === "scheduled" || e.state === "live") && e.gameType !== "scrimmage").sort((e, s) => String(e.date).localeCompare(String(s.date)))[0] || null;
1036
+ function gt(a, t) {
1037
+ return a.filter((e) => (e.homeTeamId === t || e.awayTeamId === t) && (e.state === "scheduled" || e.state === "live") && e.gameType !== "scrimmage").sort((e, s) => String(e.date).localeCompare(String(s.date)))[0] || null;
1038
1038
  }
1039
- function Ft(r, t) {
1040
- const e = r[t];
1039
+ function Ft(a, t) {
1040
+ const e = a[t];
1041
1041
  return e && e.results.length ? e.results[e.results.length - 1] : null;
1042
1042
  }
1043
- function vt(r, t, e, s, a) {
1043
+ function vt(a, t, e, s, r) {
1044
1044
  const o = t[e];
1045
1045
  if (!o) return null;
1046
1046
  const i = /* @__PURE__ */ new Map();
1047
- for (const d of r || []) {
1048
- if (d.sport !== s || a && d.effectiveDate > a || d.gender && o.gender !== d.gender && o.gender !== "coed") continue;
1047
+ for (const d of a || []) {
1048
+ if (d.sport !== s || r && d.effectiveDate > r || d.gender && o.gender !== d.gender && o.gender !== "coed") continue;
1049
1049
  const l = d.gender || "", h = i.get(l);
1050
1050
  (!h || d.effectiveDate > h.effectiveDate) && i.set(l, d);
1051
1051
  }
@@ -1056,35 +1056,35 @@ function vt(r, t, e, s, a) {
1056
1056
  }
1057
1057
  return n ? n.rank : null;
1058
1058
  }
1059
- function je(r, t, e) {
1060
- if (!r) return { kind: "none", delta: 0 };
1061
- const s = (r.teamIds || []).indexOf(e) + 1;
1059
+ function je(a, t, e) {
1060
+ if (!a) return { kind: "none", delta: 0 };
1061
+ const s = (a.teamIds || []).indexOf(e) + 1;
1062
1062
  if (!s) return { kind: "none", delta: 0 };
1063
1063
  if (!t) return { kind: "same", delta: 0 };
1064
- const a = (t.teamIds || []).indexOf(e) + 1;
1065
- if (!a) return { kind: "new", delta: 0 };
1066
- const o = a - s;
1064
+ const r = (t.teamIds || []).indexOf(e) + 1;
1065
+ if (!r) return { kind: "new", delta: 0 };
1066
+ const o = r - s;
1067
1067
  return o > 0 ? { kind: "up", delta: o } : o < 0 ? { kind: "down", delta: -o } : { kind: "same", delta: 0 };
1068
1068
  }
1069
- function We(r) {
1070
- return /^https?:\/\//i.test(String(r || ""));
1069
+ function We(a) {
1070
+ return /^https?:\/\//i.test(String(a || ""));
1071
1071
  }
1072
- function Vt(r, { w: t, h: e } = {}) {
1073
- if (!We(r)) return "";
1072
+ function Vt(a, { w: t, h: e } = {}) {
1073
+ if (!We(a)) return "";
1074
1074
  const s = [];
1075
1075
  t && s.push(`w=${Math.max(1, Math.round(t))}`), e && s.push(`h=${Math.max(1, Math.round(e))}`), s.push("f=webp");
1076
- const a = r.includes("?") ? "&" : "?";
1077
- return `${r}${a}${s.join("&")}`;
1076
+ const r = a.includes("?") ? "&" : "?";
1077
+ return `${a}${r}${s.join("&")}`;
1078
1078
  }
1079
- function Q(r, t) {
1079
+ function Q(a, t) {
1080
1080
  const e = t * 2;
1081
- return Vt(r?.logoAssetId, { w: e, h: e });
1081
+ return Vt(a?.logoAssetId, { w: e, h: e });
1082
1082
  }
1083
- function qe(r, t) {
1084
- return Vt(r?.photoAssetId, { w: t * 2 });
1083
+ function qe(a, t) {
1084
+ return Vt(a?.photoAssetId, { w: t * 2 });
1085
1085
  }
1086
- function $t(r, t, { title: e, sub: s, teams: a }) {
1087
- const o = qt(), n = !!r.querySelector(':scope > a[slot="nav"]') || De(o, t.hrefs, t.sport) !== null;
1086
+ function $t(a, t, { title: e, sub: s, teams: r }) {
1087
+ const o = qt(), n = !!a.querySelector(':scope > a[slot="nav"]') || De(o, t.hrefs, t.sport) !== null;
1088
1088
  return c`
1089
1089
  <div class="band section">
1090
1090
  <div class="inner">
@@ -1095,7 +1095,7 @@ function $t(r, t, { title: e, sub: s, teams: a }) {
1095
1095
  <nav class="sectionnav" aria-label="${z(t.sport)} section">
1096
1096
  <div class="navrow">
1097
1097
  <slot name="nav">
1098
- ${ze(t.sport, a, t.hrefs).map((d) => c`<a href=${d.href}
1098
+ ${ze(t.sport, r, t.hrefs).map((d) => c`<a href=${d.href}
1099
1099
  aria-current=${o && _(d.href) === o ? "page" : m}>${d.label}</a>`)}
1100
1100
  </slot>
1101
1101
  </div>
@@ -1103,58 +1103,58 @@ function $t(r, t, { title: e, sub: s, teams: a }) {
1103
1103
  </div>
1104
1104
  `;
1105
1105
  }
1106
- const O = (r, t) => {
1107
- const e = r.teamsById[t];
1108
- return e ? r.schoolsById[e.schoolId] : null;
1109
- }, C = (r, t) => O(r, t)?.name || "TBD", Z = (r, t) => O(r, t)?.abbr || "TBD";
1110
- function H(r, t = 26) {
1111
- if (!r) return m;
1112
- const e = Q(r, t);
1106
+ const O = (a, t) => {
1107
+ const e = a.teamsById[t];
1108
+ return e ? a.schoolsById[e.schoolId] : null;
1109
+ }, C = (a, t) => O(a, t)?.name || "TBD", Z = (a, t) => O(a, t)?.abbr || "TBD";
1110
+ function H(a, t = 26) {
1111
+ if (!a) return m;
1112
+ const e = Q(a, t);
1113
1113
  if (e)
1114
1114
  return c`<img class="swatch logo" aria-hidden="true" alt="" loading="lazy"
1115
1115
  src=${e} style="width:${t}px;height:${t}px" />`;
1116
- const s = r.colorPrimary || "#030711", a = K(s);
1116
+ const s = a.colorPrimary || "#030711", r = K(s);
1117
1117
  return c`<span class="swatch" aria-hidden="true"
1118
- style="width:${t}px;height:${t}px;background:${s};color:${a};font-size:${Math.max(8, t * 0.28)}px"
1119
- >${ft(r)}</span>`;
1118
+ style="width:${t}px;height:${t}px;background:${s};color:${r};font-size:${Math.max(8, t * 0.28)}px"
1119
+ >${ft(a)}</span>`;
1120
1120
  }
1121
- function bt(r, t, e) {
1122
- const s = vt(r.rankings, r.teamsById, t, r.sport, e);
1121
+ function bt(a, t, e) {
1122
+ const s = vt(a.rankings, a.teamsById, t, a.sport, e);
1123
1123
  return s ? c`<span class="rankbadge">#${s}</span>` : m;
1124
1124
  }
1125
- function Yt(r, t, e) {
1126
- const s = O(r, t);
1127
- return s ? c`${bt(r, t, e)}<a href=${g(r.hrefs.school, { id: s.id })}>${s.name}</a>` : c`<span class="mut">TBD</span>`;
1125
+ function Yt(a, t, e) {
1126
+ const s = O(a, t);
1127
+ return s ? c`${bt(a, t, e)}<a href=${g(a.hrefs.school, { id: s.id })}>${s.name}</a>` : c`<span class="mut">TBD</span>`;
1128
1128
  }
1129
- function yt(r, t, e = 5) {
1130
- const s = r.records[t];
1129
+ function yt(a, t, e = 5) {
1130
+ const s = a.records[t];
1131
1131
  if (!s || !s.results.length) return c`<span class="mut">·</span>`;
1132
- const a = s.results.slice(-1 * e);
1133
- return c`<span class="dots" role="img" aria-label="last ${a.length} results">
1134
- ${a.map((o) => c`<a class="dot ${o.mark}"
1135
- title="${o.mark} ${o.my}-${o.their} vs ${C(r, o.opp)}"
1136
- href=${g(r.hrefs.game, { sport: r.sport, id: o.gameId })}>${o.mark}</a>`)}
1132
+ const r = s.results.slice(-1 * e);
1133
+ return c`<span class="dots" role="img" aria-label="last ${r.length} results">
1134
+ ${r.map((o) => c`<a class="dot ${o.mark}"
1135
+ title="${o.mark} ${o.my}-${o.their} vs ${C(a, o.opp)}"
1136
+ href=${g(a.hrefs.game, { sport: a.sport, id: o.gameId })}>${o.mark}</a>`)}
1137
1137
  </span>`;
1138
1138
  }
1139
- function q(r, t) {
1140
- return r.querySelector(':scope > [slot="rail"]') ? c`<div class="view withrail">
1139
+ function q(a, t) {
1140
+ return a.querySelector(':scope > [slot="rail"]') ? c`<div class="view withrail">
1141
1141
  <div class="viewmain">${t}</div>
1142
1142
  <aside class="viewrail"><slot name="rail"></slot></aside>
1143
1143
  </div>` : c`<div class="view">${t}</div>`;
1144
1144
  }
1145
- function G(r) {
1146
- if (!r.promoImage) return m;
1147
- const t = c`<img src=${r.promoImage} alt=${r.promoAlt || "Sponsor"}>`;
1148
- return c`<div class="promo">${r.promoHref ? c`<a href=${r.promoHref} target="_blank" rel="sponsored noopener">${t}</a>` : t}</div>`;
1145
+ function G(a) {
1146
+ if (!a.promoImage) return m;
1147
+ const t = c`<img src=${a.promoImage} alt=${a.promoAlt || "Sponsor"}>`;
1148
+ return c`<div class="promo">${a.promoHref ? c`<a href=${a.promoHref} target="_blank" rel="sponsored noopener">${t}</a>` : t}</div>`;
1149
1149
  }
1150
- function J(r) {
1151
- const t = Wt(r);
1150
+ function J(a) {
1151
+ const t = Wt(a);
1152
1152
  return c`<span class="pill ${t.kind}">${t.label}</span>`;
1153
1153
  }
1154
- function Kt(r, t, e) {
1154
+ function Kt(a, t, e) {
1155
1155
  if (!t) return c`<span class="mut">·</span>`;
1156
- const s = t.homeTeamId === e ? t.awayTeamId : t.homeTeamId, a = t.homeTeamId === e ? "vs" : "at";
1157
- return c`${t.state === "live" ? c`<span class="pill live">Live</span> ` : c`${y(t.date, { month: "numeric", day: "numeric" })} `}${a} ${Z(r, s)}`;
1156
+ const s = t.homeTeamId === e ? t.awayTeamId : t.homeTeamId, r = t.homeTeamId === e ? "vs" : "at";
1157
+ return c`${t.state === "live" ? c`<span class="pill live">Live</span> ` : c`${y(t.date, { month: "numeric", day: "numeric" })} `}${r} ${Z(a, s)}`;
1158
1158
  }
1159
1159
  class Qt extends w {
1160
1160
  static styles = j;
@@ -1175,7 +1175,7 @@ class Qt extends w {
1175
1175
  this._datePinned = !!this.date;
1176
1176
  }
1177
1177
  async fetchData(t) {
1178
- const e = this.season || et(), [s, a, o, i, n] = await Promise.all([
1178
+ const e = this.season || et(), [s, r, o, i, n] = await Promise.all([
1179
1179
  t.listSchools(),
1180
1180
  t.listTeams({ sport: this.sport }),
1181
1181
  t.listConferences(),
@@ -1185,7 +1185,7 @@ class Qt extends w {
1185
1185
  return this._datePinned || (this.date = Ie(i.items.map((d) => d.date)), this._datePinned = !0), {
1186
1186
  season: e,
1187
1187
  schools: s.items,
1188
- teams: a.items,
1188
+ teams: r.items,
1189
1189
  conferences: o.items,
1190
1190
  games: i.items,
1191
1191
  rankings: n.items
@@ -1202,9 +1202,9 @@ class Qt extends w {
1202
1202
  }, this._ctxData = this.data), this._ctx;
1203
1203
  }
1204
1204
  renderView() {
1205
- const t = this.ctx, e = v(this.data.conferences), s = [...new Set(this.data.games.map((l) => l.date).filter(Boolean))].sort(), a = Number.MAX_SAFE_INTEGER, o = (l) => {
1205
+ const t = this.ctx, e = v(this.data.conferences), s = [...new Set(this.data.games.map((l) => l.date).filter(Boolean))].sort(), r = Number.MAX_SAFE_INTEGER, o = (l) => {
1206
1206
  const h = [l.awayTeamId, l.homeTeamId].map((p) => vt(t.rankings, t.teamsById, p, this.sport, l.date)).filter(Boolean);
1207
- return h.length ? Math.min(...h) : a;
1207
+ return h.length ? Math.min(...h) : r;
1208
1208
  }, i = this.data.games.filter((l) => l.date === this.date), n = new Map(i.map((l) => [l, o(l)]));
1209
1209
  i.sort((l, h) => (l.state === "live" ? 0 : 1) - (h.state === "live" ? 0 : 1) || n.get(l) - n.get(h));
1210
1210
  const d = /* @__PURE__ */ new Map();
@@ -1253,11 +1253,11 @@ class Qt extends w {
1253
1253
  // a lone score column on the far right read as detached from the teams).
1254
1254
  // Scheduled games carry their start time on the status pill alone.
1255
1255
  renderGame(t, e) {
1256
- const s = e.state === "final" || e.state === "live", a = (i, n, d = m) => c`<span class="side">${Yt(t, i, e.date)}${s ? c`<span class="score">${n}</span>` : m}${d}</span>`, o = Le(e);
1256
+ const s = e.state === "final" || e.state === "live", r = (i, n, d = m) => c`<span class="side">${Yt(t, i, e.date)}${s ? c`<span class="score">${n}</span>` : m}${d}</span>`, o = Le(e);
1257
1257
  return c`
1258
1258
  <li>
1259
1259
  ${J(e)}
1260
- <span class="opp matchup">${a(e.awayTeamId, e.awayScore, c`<span class="at">at</span>`)}${a(e.homeTeamId, e.homeScore)}</span>
1260
+ <span class="opp matchup">${r(e.awayTeamId, e.awayScore, c`<span class="at">at</span>`)}${r(e.homeTeamId, e.homeScore)}</span>
1261
1261
  ${o ? c`<span class="ff">${C(t, o === "home" ? e.homeTeamId : e.awayTeamId)} forfeited</span>` : m}
1262
1262
  <span class="where">${e.venue || ""}</span>
1263
1263
  ${e.broadcast ? c`<span class="pill class">${e.broadcast}</span>` : m}
@@ -1280,7 +1280,7 @@ class Zt extends w {
1280
1280
  super(), this.sport = "football", this.season = "", this.classFilter = "All", this.query = "";
1281
1281
  }
1282
1282
  async fetchData(t) {
1283
- const e = this.season || et(), [s, a, o, i, n] = await Promise.all([
1283
+ const e = this.season || et(), [s, r, o, i, n] = await Promise.all([
1284
1284
  t.listConferences({ active: !0 }),
1285
1285
  t.listSchools(),
1286
1286
  t.listTeams({ sport: this.sport }),
@@ -1290,7 +1290,7 @@ class Zt extends w {
1290
1290
  return {
1291
1291
  season: e,
1292
1292
  conferences: s.items,
1293
- schools: a.items,
1293
+ schools: r.items,
1294
1294
  teams: o.items,
1295
1295
  games: i.items,
1296
1296
  rankings: n.items
@@ -1307,7 +1307,7 @@ class Zt extends w {
1307
1307
  }, this._ctxData = this.data), this._ctx;
1308
1308
  }
1309
1309
  renderView() {
1310
- const t = this.ctx, e = ["All", ...[...new Set(this.data.conferences.flatMap((a) => a.classifications || []))].sort(zt)].slice(0, 9), s = this.data.conferences.filter((a) => a.active !== !1).filter((a) => this.classFilter === "All" || (a.classifications || []).includes(this.classFilter)).sort(Ee);
1310
+ const t = this.ctx, e = ["All", ...[...new Set(this.data.conferences.flatMap((r) => r.classifications || []))].sort(zt)].slice(0, 9), s = this.data.conferences.filter((r) => r.active !== !1).filter((r) => this.classFilter === "All" || (r.classifications || []).includes(this.classFilter)).sort(Ee);
1311
1311
  return c`
1312
1312
  ${$t(this, t, {
1313
1313
  title: c`${z(this.sport)} standings`,
@@ -1318,26 +1318,26 @@ class Zt extends w {
1318
1318
  ${G(this)}
1319
1319
  <div class="toolbar">
1320
1320
  <div role="group" aria-label="Classification filter">
1321
- ${e.map((a) => c`<button class="chip ${this.classFilter === a ? "on" : ""}"
1321
+ ${e.map((r) => c`<button class="chip ${this.classFilter === r ? "on" : ""}"
1322
1322
  @click=${() => {
1323
- this.classFilter = a;
1324
- }}>${a}</button>`)}
1323
+ this.classFilter = r;
1324
+ }}>${r}</button>`)}
1325
1325
  </div>
1326
1326
  <input type="search" placeholder="Find a school…" aria-label="Find a school"
1327
- .value=${this.query} @input=${(a) => {
1328
- this.query = a.target.value;
1327
+ .value=${this.query} @input=${(r) => {
1328
+ this.query = r.target.value;
1329
1329
  }}>
1330
1330
  <span class="spacer"></span>
1331
1331
  <span class="asof">Records through ${y(mt(), { month: "long", day: "numeric" })} · conference games count toward both records · scrimmages toward neither</span>
1332
1332
  </div>
1333
- ${s.map((a) => this.renderConference(t, a))}
1333
+ ${s.map((r) => this.renderConference(t, r))}
1334
1334
  `)}
1335
1335
  `;
1336
1336
  }
1337
1337
  renderConference(t, e) {
1338
1338
  const s = this.data.teams.filter((i) => i.conferenceId === e.id);
1339
1339
  if (!s.length) return m;
1340
- const a = this.query.trim().toLowerCase(), o = Gt(s, t.records);
1340
+ const r = this.query.trim().toLowerCase(), o = Gt(s, t.records);
1341
1341
  return c`
1342
1342
  <div class="card">
1343
1343
  <div class="card-head">
@@ -1352,15 +1352,15 @@ class Zt extends w {
1352
1352
  <th>Streak</th><th>Last 5</th><th>Next</th>
1353
1353
  </tr></thead>
1354
1354
  <tbody>
1355
- ${o.map((i, n) => this.renderRow(t, i, n, a))}
1355
+ ${o.map((i, n) => this.renderRow(t, i, n, r))}
1356
1356
  </tbody>
1357
1357
  </table></div>
1358
1358
  </div>
1359
1359
  `;
1360
1360
  }
1361
- renderRow(t, e, s, a) {
1361
+ renderRow(t, e, s, r) {
1362
1362
  const o = t.schoolsById[e.team.schoolId], i = o?.name || e.team.name || "TBD";
1363
- if (a && !i.toLowerCase().includes(a)) return m;
1363
+ if (r && !i.toLowerCase().includes(r)) return m;
1364
1364
  const n = e.rec.pf - e.rec.pa, d = gt(this.data.games, e.team.id), l = () => {
1365
1365
  location.href = g(t.hrefs.school, { id: e.team.schoolId });
1366
1366
  };
@@ -1423,7 +1423,7 @@ class Jt extends w {
1423
1423
  t && (this.pollDate = t);
1424
1424
  }
1425
1425
  async fetchData(t) {
1426
- const e = this.season || et(), [s, a, o, i, n] = await Promise.all([
1426
+ const e = this.season || et(), [s, r, o, i, n] = await Promise.all([
1427
1427
  t.listRankings({ sport: this.sport, ...this.gender ? { gender: this.gender } : {} }),
1428
1428
  t.listSchools(),
1429
1429
  t.listTeams({ sport: this.sport }),
@@ -1433,7 +1433,7 @@ class Jt extends w {
1433
1433
  return {
1434
1434
  season: e,
1435
1435
  polls: d,
1436
- schools: a.items,
1436
+ schools: r.items,
1437
1437
  teams: o.items,
1438
1438
  conferences: i.items,
1439
1439
  games: n.items
@@ -1453,8 +1453,8 @@ class Jt extends w {
1453
1453
  const n = e.map((p, f) => {
1454
1454
  const u = (p.teamIds || []).indexOf(t);
1455
1455
  if (u === -1) return null;
1456
- const $ = e.length === 1 ? 96 / 2 : f / (e.length - 1) * 90 + 3, rt = 3 + u / 24 * 20;
1457
- return { x: $, y: rt };
1456
+ const $ = e.length === 1 ? 96 / 2 : f / (e.length - 1) * 90 + 3, at = 3 + u / 24 * 20;
1457
+ return { x: $, y: at };
1458
1458
  }), d = [];
1459
1459
  let l = [];
1460
1460
  if (n.forEach((p) => {
@@ -1468,13 +1468,13 @@ class Jt extends w {
1468
1468
  </svg>`;
1469
1469
  }
1470
1470
  movement(t, e, s) {
1471
- const a = je(t, e, s);
1472
- return a.kind === "up" ? c`<span class="delta up">▲ ${a.delta}</span>` : a.kind === "down" ? c`<span class="delta down">▼ ${a.delta}</span>` : a.kind === "new" ? c`<span class="delta new">NEW</span>` : a.kind === "same" ? c`<span class="delta same">—</span>` : c`<span class="delta same">·</span>`;
1471
+ const r = je(t, e, s);
1472
+ return r.kind === "up" ? c`<span class="delta up">▲ ${r.delta}</span>` : r.kind === "down" ? c`<span class="delta down">▼ ${r.delta}</span>` : r.kind === "new" ? c`<span class="delta new">NEW</span>` : r.kind === "same" ? c`<span class="delta same">—</span>` : c`<span class="delta same">·</span>`;
1473
1473
  }
1474
1474
  renderView() {
1475
1475
  const t = this.ctx, e = this.data.polls;
1476
1476
  if (!e.length) return c`<div class="view"><p class="empty">No ${this.sport} polls published yet this season.</p></div>`;
1477
- const s = Math.max(0, e.findIndex((p) => p.effectiveDate === this.pollDate)), a = e[s] || e[0], o = e[s + 1] || null, i = e.slice().reverse(), n = i.indexOf(a), d = v(this.data.conferences), l = (a.teamIds || [])[0], h = l ? O(t, l) : null;
1477
+ const s = Math.max(0, e.findIndex((p) => p.effectiveDate === this.pollDate)), r = e[s] || e[0], o = e[s + 1] || null, i = e.slice().reverse(), n = i.indexOf(r), d = v(this.data.conferences), l = (r.teamIds || [])[0], h = l ? O(t, l) : null;
1478
1478
  return c`
1479
1479
  ${$t(this, t, {
1480
1480
  title: c`${z(this.sport)} Top 25`,
@@ -1488,7 +1488,7 @@ class Jt extends w {
1488
1488
  <select id="pollsel" @change=${(p) => {
1489
1489
  this.pollDate = p.target.value;
1490
1490
  }}>
1491
- ${e.map((p, f) => c`<option value=${p.effectiveDate} ?selected=${p === a}>
1491
+ ${e.map((p, f) => c`<option value=${p.effectiveDate} ?selected=${p === r}>
1492
1492
  ${y(p.effectiveDate, { month: "long", day: "numeric", year: "numeric" })}${f === 0 ? " · current" : ""}
1493
1493
  </option>`)}
1494
1494
  </select>
@@ -1503,22 +1503,22 @@ class Jt extends w {
1503
1503
  <span class="spacer"></span>
1504
1504
  <span class="asof">Movement vs. the previous poll · sparkline = season rank history</span>
1505
1505
  </div>
1506
- ${h ? this.renderHero(t, a, o, l, h, d) : m}
1506
+ ${h ? this.renderHero(t, r, o, l, h, d) : m}
1507
1507
  <div class="card"><div class="tablewrap"><table class="data">
1508
1508
  <thead><tr>
1509
1509
  <th class="num">Rk</th><th>Mvmt</th><th>Team</th><th class="num">Record</th>
1510
1510
  <th>Conference</th><th>Last result</th><th>Next</th><th>Season</th>
1511
1511
  </tr></thead>
1512
1512
  <tbody>
1513
- ${(a.teamIds || []).map((p, f) => f === 0 || !p ? m : this.renderRow(t, a, o, i, n, d, p, f + 1))}
1513
+ ${(r.teamIds || []).map((p, f) => f === 0 || !p ? m : this.renderRow(t, r, o, i, n, d, p, f + 1))}
1514
1514
  </tbody>
1515
1515
  </table></div></div>
1516
1516
  <p class="note">Ranks elsewhere on the site resolve the poll in effect on the game date, so past box scores keep the ranks they were played under.</p>
1517
1517
  `)}
1518
1518
  `;
1519
1519
  }
1520
- renderHero(t, e, s, a, o, i) {
1521
- const n = t.records[a], d = Ft(t.records, a), l = i[t.teamsById[a]?.conferenceId], h = `linear-gradient(120deg, ${o.colorPrimary || "#030711"} 0%, var(--hsot-black) 85%)`;
1520
+ renderHero(t, e, s, r, o, i) {
1521
+ const n = t.records[r], d = Ft(t.records, r), l = i[t.teamsById[r]?.conferenceId], h = `linear-gradient(120deg, ${o.colorPrimary || "#030711"} 0%, var(--hsot-black) 85%)`;
1522
1522
  return c`
1523
1523
  <div class="hero1" style="background:${h}">
1524
1524
  <div class="bigrank">#1</div>
@@ -1529,21 +1529,21 @@ class Jt extends w {
1529
1529
  ${x(n)} overall${l ? c` · ${x(n, !0)} ${l.name}` : m}
1530
1530
  · streak ${st(n?.results) || "·"}
1531
1531
  ${d ? c` · last: ${d.mark} ${d.my}-${d.their} vs ${Z(t, d.opp)}` : m}
1532
- &nbsp;${this.movement(e, s, a)}
1532
+ &nbsp;${this.movement(e, s, r)}
1533
1533
  </div>
1534
1534
  </div>
1535
1535
  </div>
1536
1536
  `;
1537
1537
  }
1538
- renderRow(t, e, s, a, o, i, n, d) {
1538
+ renderRow(t, e, s, r, o, i, n, d) {
1539
1539
  const l = O(t, n);
1540
1540
  if (!l) return m;
1541
1541
  const h = t.records[n], p = Ft(t.records, n), f = gt(this.data.games, n), u = i[t.teamsById[n]?.conferenceId], $ = () => {
1542
1542
  location.href = g(t.hrefs.school, { id: l.id });
1543
1543
  };
1544
1544
  return c`
1545
- <tr class="rowlink" @click=${(rt) => {
1546
- rt.target.closest("a") || $();
1545
+ <tr class="rowlink" @click=${(at) => {
1546
+ at.target.closest("a") || $();
1547
1547
  }}>
1548
1548
  <td class="num" style="font-weight:700">${d}</td>
1549
1549
  <td>${this.movement(e, s, n)}</td>
@@ -1555,7 +1555,7 @@ class Jt extends w {
1555
1555
  <b style="color:${p.mark === "W" ? "var(--hsot-win)" : p.mark === "L" ? "var(--hsot-loss)" : "var(--hsot-tie)"}">${p.mark}</b>
1556
1556
  ${p.my}-${p.their} vs ${Z(t, p.opp)}</a>` : c`<span class="mut">·</span>`}</td>
1557
1557
  <td>${Kt(t, f, n)}</td>
1558
- <td>${this.sparkline(n, a, o)}</td>
1558
+ <td>${this.sparkline(n, r, o)}</td>
1559
1559
  </tr>
1560
1560
  `;
1561
1561
  }
@@ -1583,12 +1583,37 @@ const Ve = b`
1583
1583
  .tile .k { font-family: var(--hsot-heading-font); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.08em; font-weight: 700; color: var(--hsot-red-deep); }
1584
1584
  .tile .v { font-family: var(--hsot-heading-font); font-weight: 700; font-size: 1.7rem; line-height: 1.15; color: var(--hsot-black); }
1585
1585
  .tile .s { font-size: 0.78rem; color: var(--hsot-gray-5); }
1586
- .cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.25rem; }
1586
+ /* Schedule and roster split the width evenly. The roster used to get
1587
+ 5/12 (~393px beside the rail), which held six columns; the season
1588
+ photo and the College column (2026-09) took its table to ~480px and
1589
+ gave the card a horizontal scrollbar on desktop while the schedule
1590
+ sat in white space. Both tracks are minmax(0, …) so a table that is
1591
+ still too wide scrolls inside its card instead of stretching the
1592
+ grid — and the page — past the viewport. */
1593
+ .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
1587
1594
  /* The season roster photo heads the roster card, above the table. Natural
1588
1595
  height: a team photo is never cropped to a box — the card's overflow
1589
1596
  rounds its top corners. */
1590
1597
  .rosterphoto { display: block; width: 100%; height: auto; background: var(--hsot-gray-1); border-bottom: 1px solid var(--hsot-gray-2); }
1591
- @media (max-width: 900px) { .cols { grid-template-columns: 1fr; } .schoolhero h1 { font-size: 1.9rem; } }
1598
+ /* Roster table: a little less side padding than the shared table so all
1599
+ seven columns fit the card beside the rail. */
1600
+ table.data.roster th, table.data.roster td { padding-left: 10px; padding-right: 10px; }
1601
+ table.data.roster .sub { display: none; }
1602
+ /* A bare 1fr here was the mobile bug: its implicit minimum is the
1603
+ content's width, so the nowrap roster table widened the single column
1604
+ past the phone and the whole page scrolled sideways. */
1605
+ @media (max-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr); } .schoolhero h1 { font-size: 1.9rem; } }
1606
+ @media (max-width: 720px) {
1607
+ /* Phone: the roster fits the screen instead of scrolling. Position
1608
+ and class fold under the player's name, names and colleges may
1609
+ wrap, and cells tighten. Five columns come to ~330px, inside a
1610
+ 360px phone's view padding. */
1611
+ table.data.roster { font-size: 13px; }
1612
+ table.data.roster th, table.data.roster td { padding: 7px 8px; }
1613
+ table.data.roster .pos, table.data.roster .cls { display: none; }
1614
+ table.data.roster td.player, table.data.roster td.college { white-space: normal; }
1615
+ table.data.roster .sub { display: block; font-weight: 400; font-size: 0.78rem; color: var(--hsot-gray-5); }
1616
+ }
1592
1617
  `;
1593
1618
  class Xt extends w {
1594
1619
  static styles = [...j, Ve];
@@ -1647,7 +1672,7 @@ class Xt extends w {
1647
1672
  this.sport = t, this.load();
1648
1673
  }
1649
1674
  renderView() {
1650
- const { school: t, teams: e, active: s, season: a } = this.data;
1675
+ const { school: t, teams: e, active: s, season: r } = this.data;
1651
1676
  if (!t) return c`<div class="view"><p class="empty">School not found.</p></div>`;
1652
1677
  const o = this.ctx, i = K(t.colorPrimary || "#030711"), n = (t.adm || [])[0], d = v(this.data.conferences), l = s ? d[s.conferenceId] : null;
1653
1678
  return c`
@@ -1676,11 +1701,11 @@ class Xt extends w {
1676
1701
  </div>
1677
1702
  ${q(this, c`
1678
1703
  ${G(this)}
1679
- ${s ? this.renderTeam(o, s, l, a) : c`<p class="empty">No teams recorded for this school yet.</p>`}
1704
+ ${s ? this.renderTeam(o, s, l, r) : c`<p class="empty">No teams recorded for this school yet.</p>`}
1680
1705
  `)}
1681
1706
  `;
1682
1707
  }
1683
- renderTeam(t, e, s, a) {
1708
+ renderTeam(t, e, s, r) {
1684
1709
  const o = t.records[e.id] || { w: 0, l: 0, t: 0, cw: 0, cl: 0, ct: 0, pf: 0, pa: 0, results: [] }, i = o.w + o.l + o.t, n = s ? this.data.allTeams.filter((p) => p.conferenceId === s.id) : [], d = s ? Gt(n, t.records).findIndex((p) => p.team.id === e.id) + 1 : 0, l = vt(t.rankings, t.teamsById, e.id, e.sport, null), h = this.data.games.filter((p) => p.homeTeamId === e.id || p.awayTeamId === e.id).sort((p, f) => String(p.date).localeCompare(String(f.date)));
1685
1710
  return c`
1686
1711
  <div class="tiles">
@@ -1702,21 +1727,21 @@ class Xt extends w {
1702
1727
  <div>
1703
1728
  <div class="section-title">Schedule &amp; results</div>
1704
1729
  <div class="card">
1705
- ${h.length ? c`<ul class="gamelist">${h.map((p) => this.renderGameRow(t, e, p))}</ul>` : c`<p class="empty">No ${e.sport} games recorded for ${a}.</p>`}
1730
+ ${h.length ? c`<ul class="gamelist">${h.map((p) => this.renderGameRow(t, e, p))}</ul>` : c`<p class="empty">No ${e.sport} games recorded for ${r}.</p>`}
1706
1731
  </div>
1707
1732
  </div>
1708
1733
  <div>
1709
- <div class="section-title">Roster · ${a}</div>
1710
- <div class="card">${this.renderRoster(e, a)}</div>
1734
+ <div class="section-title">Roster · ${r}</div>
1735
+ <div class="card">${this.renderRoster(e, r)}</div>
1711
1736
  </div>
1712
1737
  </div>
1713
1738
  `;
1714
1739
  }
1715
1740
  renderGameRow(t, e, s) {
1716
- const a = s.homeTeamId === e.id, o = a ? s.awayTeamId : s.homeTeamId, i = a ? s.homeScore : s.awayScore, n = a ? s.awayScore : s.homeScore;
1741
+ const r = s.homeTeamId === e.id, o = r ? s.awayTeamId : s.homeTeamId, i = r ? s.homeScore : s.awayScore, n = r ? s.awayScore : s.homeScore;
1717
1742
  let d = c`<span class="mut">${pt(s.time)}</span>`;
1718
1743
  if (s.state === "final") {
1719
- const h = ut(s), p = h === "tie" ? "T" : h === (a ? "home" : "away") ? "W" : "L";
1744
+ const h = ut(s), p = h === "tie" ? "T" : h === (r ? "home" : "away") ? "W" : "L";
1720
1745
  d = c`<span class=${p}>${p}</span> ${i}-${n}${s.finish === "overtime" ? c` <span class="mut">OT</span>` : m}${s.forfeit && s.forfeit !== "none" ? c` <span class="mut">FF</span>` : m}`;
1721
1746
  } else s.state === "live" && (d = c`<span style="color:var(--hsot-red)">${i}-${n}</span>`);
1722
1747
  const l = s.gameType === "conference" ? "Conf" : s.gameType === "nonconference" ? "Non-conf" : s.gameType === "playoff" ? `Playoff${s.label ? ` · ${s.label}` : ""}` : "Scrimmage";
@@ -1725,7 +1750,7 @@ class Xt extends w {
1725
1750
  <span class="d">${y(s.date)}</span>
1726
1751
  ${Wt(s).kind === "sched" ? m : J(s)}
1727
1752
  <span class="res">${d}</span>
1728
- <span class="opp">${a ? "vs" : "at"} ${Yt(t, o, s.date)}
1753
+ <span class="opp">${r ? "vs" : "at"} ${Yt(t, o, s.date)}
1729
1754
  <span class="pill type">${l}</span>
1730
1755
  ${s.broadcast ? c`<span class="pill class">${s.broadcast}</span>` : m}
1731
1756
  </span>
@@ -1738,24 +1763,26 @@ class Xt extends w {
1738
1763
  const s = this.data.roster;
1739
1764
  if (!s)
1740
1765
  return c`<p class="empty">Roster not published for ${e}.</p>`;
1741
- const a = qe(s, 560), o = this.data.school?.name || "", i = v(this.data.players), n = s.entries.slice().sort((l, h) => (l.number || 0) - (h.number || 0)), d = n.some((l) => i[l.playerId]?.college);
1766
+ const r = qe(s, 560), o = this.data.school?.name || "", i = v(this.data.players), n = s.entries.slice().sort((l, h) => (l.number || 0) - (h.number || 0)), d = n.some((l) => i[l.playerId]?.college);
1742
1767
  return c`
1743
- ${a ? c`<img class="rosterphoto" src=${a} loading="lazy" decoding="async"
1768
+ ${r ? c`<img class="rosterphoto" src=${r} loading="lazy" decoding="async"
1744
1769
  alt="${o} ${t.name} ${e} team photo" />` : m}
1745
- <div class="tablewrap"><table class="data">
1746
- <thead><tr><th class="num">No.</th><th>Player</th><th>Pos</th><th>Class</th><th class="num">Ht</th><th class="num">Wt</th>${d ? c`<th>College</th>` : m}</tr></thead>
1770
+ <div class="tablewrap"><table class="data roster">
1771
+ <thead><tr><th class="num">No.</th><th>Player</th><th class="pos">Pos</th><th class="cls">Class</th><th class="num">Ht</th><th class="num">Wt</th>${d ? c`<th>College</th>` : m}</tr></thead>
1747
1772
  <tbody>
1748
1773
  ${n.map((l) => {
1749
1774
  const h = i[l.playerId];
1750
- return h ? c`<tr>
1775
+ if (!h) return m;
1776
+ const p = [l.position, h.classOf].filter(Boolean).join(" · ") || "·";
1777
+ return c`<tr>
1751
1778
  <td class="num mut">${l.number ?? "·"}</td>
1752
- <td style="font-weight:500">${h.firstName} ${h.lastName}</td>
1753
- <td>${l.position || "·"}</td>
1754
- <td class="mut">${h.classOf || "·"}</td>
1779
+ <td class="player" style="font-weight:500">${h.firstName} ${h.lastName}<span class="sub">${p}</span></td>
1780
+ <td class="pos">${l.position || "·"}</td>
1781
+ <td class="cls mut">${h.classOf || "·"}</td>
1755
1782
  <td class="num">${Te(h.heightIn)}</td>
1756
1783
  <td class="num">${h.weightLb || "·"}</td>
1757
- ${d ? c`<td>${h.college || "·"}</td>` : m}
1758
- </tr>` : m;
1784
+ ${d ? c`<td class="college">${h.college || "·"}</td>` : m}
1785
+ </tr>`;
1759
1786
  })}
1760
1787
  </tbody>
1761
1788
  </table></div>
@@ -1764,32 +1791,32 @@ class Xt extends w {
1764
1791
  }
1765
1792
  globalThis?.customElements && !globalThis.customElements.get("hsot-school") && globalThis.customElements.define("hsot-school", Xt);
1766
1793
  const Ye = "https://api.wral.com/search";
1767
- function Ke(r) {
1768
- return r.map((t) => `uri:"${t}"`).join(" OR ");
1794
+ function Ke(a) {
1795
+ return a.map((t) => `uri:"${t}"`).join(" OR ");
1769
1796
  }
1770
- function Qe(r, t) {
1771
- const e = String(r || Ye).replace(/\/+$/, ""), s = new URLSearchParams({ query: Ke(t), sort: "score", lang: "en" });
1797
+ function Qe(a, t) {
1798
+ const e = String(a || Ye).replace(/\/+$/, ""), s = new URLSearchParams({ query: Ke(t), sort: "score", lang: "en" });
1772
1799
  return `${e}/v1/query?${s}`;
1773
1800
  }
1774
- function te(r) {
1801
+ function te(a) {
1775
1802
  try {
1776
- const t = new URL(r);
1803
+ const t = new URL(a);
1777
1804
  if (/(^|\.)smugmug\.com$/i.test(t.hostname)) {
1778
1805
  const e = t.pathname.split("/").filter(Boolean).pop() || "", s = !e || /^[ni]-[A-Za-z0-9]+$/.test(e);
1779
1806
  return {
1780
- uri: r,
1781
- title: s ? r : decodeURIComponent(e).replace(/-/g, " "),
1807
+ uri: a,
1808
+ title: s ? a : decodeURIComponent(e).replace(/-/g, " "),
1782
1809
  photos: !0
1783
1810
  };
1784
1811
  }
1785
1812
  } catch {
1786
1813
  }
1787
- return { uri: r, title: r };
1814
+ return { uri: a, title: a };
1788
1815
  }
1789
- async function Ze(r, t, e) {
1790
- const a = await ((...n) => fetch(...n))(Qe(r, t));
1791
- if (!a.ok) throw new Error(`search answered ${a.status}`);
1792
- const o = await a.json(), i = new Map((o.items || []).map((n) => [n.uri, n]));
1816
+ async function Ze(a, t, e) {
1817
+ const r = await ((...n) => fetch(...n))(Qe(a, t));
1818
+ if (!r.ok) throw new Error(`search answered ${r.status}`);
1819
+ const o = await r.json(), i = new Map((o.items || []).map((n) => [n.uri, n]));
1793
1820
  return t.map((n) => i.get(n) || te(n));
1794
1821
  }
1795
1822
  const Je = b`
@@ -1846,7 +1873,7 @@ class ee extends w {
1846
1873
  super(), this.gameId = "", this.searchApi = "";
1847
1874
  }
1848
1875
  async fetchData(t) {
1849
- const e = await t.getGame(this.gameId), s = Array.isArray(e.coverageUrls) ? e.coverageUrls : [], [a, o, i, n, d, l] = await Promise.all([
1876
+ const e = await t.getGame(this.gameId), s = Array.isArray(e.coverageUrls) ? e.coverageUrls : [], [r, o, i, n, d, l] = await Promise.all([
1850
1877
  t.listSchools(),
1851
1878
  t.listTeams({ sport: e.sport }),
1852
1879
  t.listConferences(),
@@ -1858,7 +1885,7 @@ class ee extends w {
1858
1885
  ]);
1859
1886
  return {
1860
1887
  game: e,
1861
- schools: a.items,
1888
+ schools: r.items,
1862
1889
  teams: o.items,
1863
1890
  conferences: i.items,
1864
1891
  rankings: n.items,
@@ -1879,7 +1906,7 @@ class ee extends w {
1879
1906
  renderView() {
1880
1907
  const t = this.data.game;
1881
1908
  if (!t) return c`<div class="view"><p class="empty">Game not found.</p></div>`;
1882
- const e = this.ctx, s = v(this.data.conferences), a = e.teamsById[t.awayTeamId] ? e.schoolsById[e.teamsById[t.awayTeamId].schoolId] : null, o = e.teamsById[t.homeTeamId] ? e.schoolsById[e.teamsById[t.homeTeamId].schoolId] : null, i = ut(t), n = (h) => t.state === "final" && i !== h && i !== "tie" ? "opacity:0.45" : "", d = t.conferenceId ? s[t.conferenceId] : null, l = this.data.games.filter((h) => h.id !== t.id && h.state === "final" && h.gameType !== "scrimmage" && (h.homeTeamId === t.homeTeamId && h.awayTeamId === t.awayTeamId || h.homeTeamId === t.awayTeamId && h.awayTeamId === t.homeTeamId));
1909
+ const e = this.ctx, s = v(this.data.conferences), r = e.teamsById[t.awayTeamId] ? e.schoolsById[e.teamsById[t.awayTeamId].schoolId] : null, o = e.teamsById[t.homeTeamId] ? e.schoolsById[e.teamsById[t.homeTeamId].schoolId] : null, i = ut(t), n = (h) => t.state === "final" && i !== h && i !== "tie" ? "opacity:0.45" : "", d = t.conferenceId ? s[t.conferenceId] : null, l = this.data.games.filter((h) => h.id !== t.id && h.state === "final" && h.gameType !== "scrimmage" && (h.homeTeamId === t.homeTeamId && h.awayTeamId === t.awayTeamId || h.homeTeamId === t.awayTeamId && h.awayTeamId === t.homeTeamId));
1883
1910
  return c`
1884
1911
  ${q(this, c`
1885
1912
  ${G(this)}
@@ -1890,7 +1917,7 @@ class ee extends w {
1890
1917
  </p>
1891
1918
  <div class="card">
1892
1919
  <div class="scorehead">
1893
- ${this.teamBlock(e, t, t.awayTeamId, a, !1)}
1920
+ ${this.teamBlock(e, t, t.awayTeamId, r, !1)}
1894
1921
  <div class="mid">
1895
1922
  <div class="bigscore">
1896
1923
  <span style=${n("away")}>${t.awayScore}</span>
@@ -1908,7 +1935,7 @@ class ee extends w {
1908
1935
  </div>
1909
1936
  ${this.teamBlock(e, t, t.homeTeamId, o, !0)}
1910
1937
  </div>
1911
- ${this.renderLineScore(t, a, o)}
1938
+ ${this.renderLineScore(t, r, o)}
1912
1939
  ${t.notes ? c`<p class="note" style="padding:0 1rem 0.9rem;text-align:center">${t.notes}</p>` : m}
1913
1940
  </div>
1914
1941
  ${(this.data.coverage || []).length ? c`
@@ -1929,7 +1956,7 @@ class ee extends w {
1929
1956
  </div>` : m}
1930
1957
  <div class="section-title">Season context</div>
1931
1958
  <div class="cols">
1932
- ${[[t.awayTeamId, a], [t.homeTeamId, o]].map(([h, p]) => this.renderContext(e, h, p))}
1959
+ ${[[t.awayTeamId, r], [t.homeTeamId, o]].map(([h, p]) => this.renderContext(e, h, p))}
1933
1960
  </div>
1934
1961
  ${l.length ? c`
1935
1962
  <div class="section-title">Head to head this season</div>
@@ -1943,25 +1970,25 @@ class ee extends w {
1943
1970
  `)}
1944
1971
  `;
1945
1972
  }
1946
- teamBlock(t, e, s, a, o) {
1947
- if (!a) return c`<div class="teamblock ${o ? "right" : ""}"><div class="tname">TBD</div></div>`;
1948
- const i = t.teamsById[s], n = t.records[s], d = Q(a, 58);
1973
+ teamBlock(t, e, s, r, o) {
1974
+ if (!r) return c`<div class="teamblock ${o ? "right" : ""}"><div class="tname">TBD</div></div>`;
1975
+ const i = t.teamsById[s], n = t.records[s], d = Q(r, 58);
1949
1976
  return c`
1950
1977
  <div class="teamblock ${o ? "right" : ""}">
1951
- ${d ? c`<img class="crest logo" alt="" loading="lazy" src=${d} />` : c`<span class="crest" style="background:${a.colorPrimary || "#030711"};color:${K(a.colorPrimary || "#030711")}">${ft(a)}</span>`}
1978
+ ${d ? c`<img class="crest logo" alt="" loading="lazy" src=${d} />` : c`<span class="crest" style="background:${r.colorPrimary || "#030711"};color:${K(r.colorPrimary || "#030711")}">${ft(r)}</span>`}
1952
1979
  <div>
1953
- <div class="tname">${bt(t, s, e.date)}<a href=${g(t.hrefs.school, { id: a.id })}>${a.name}</a></div>
1954
- <div class="trec">${a.mascot || ""} · ${x(n)}${i?.conferenceId ? c` · ${x(n, !0)} conf` : m}</div>
1980
+ <div class="tname">${bt(t, s, e.date)}<a href=${g(t.hrefs.school, { id: r.id })}>${r.name}</a></div>
1981
+ <div class="trec">${r.mascot || ""} · ${x(n)}${i?.conferenceId ? c` · ${x(n, !0)} conf` : m}</div>
1955
1982
  </div>
1956
1983
  </div>
1957
1984
  `;
1958
1985
  }
1959
1986
  renderLineScore(t, e, s) {
1960
- const a = t.periodScores || [];
1961
- if (!a.length)
1987
+ const r = t.periodScores || [];
1988
+ if (!r.length)
1962
1989
  return c`<p class="empty" style="text-align:center">Period scoring will appear once the game starts.</p>`;
1963
- const o = Math.max(4, ...a.map((l) => l.period)), i = (l) => l <= 4 ? String(l) : `OT${l > 5 ? l - 4 : ""}`, n = (l, h) => {
1964
- const p = a.find((f) => f.period === h);
1990
+ const o = Math.max(4, ...r.map((l) => l.period)), i = (l) => l <= 4 ? String(l) : `OT${l > 5 ? l - 4 : ""}`, n = (l, h) => {
1991
+ const p = r.find((f) => f.period === h);
1965
1992
  return p ? p[l] : t.state === "final" ? 0 : "·";
1966
1993
  }, d = (l, h, p) => c`
1967
1994
  <tr>
@@ -1983,14 +2010,14 @@ class ee extends w {
1983
2010
  }
1984
2011
  renderContext(t, e, s) {
1985
2012
  if (!s) return m;
1986
- const a = t.records[e], o = gt(this.data.games, e);
2013
+ const r = t.records[e], o = gt(this.data.games, e);
1987
2014
  return c`
1988
2015
  <div class="card ctxcard">
1989
2016
  <div class="who">${H(s)}${s.name}</div>
1990
2017
  <div class="row">
1991
2018
  <span>Last 5: ${yt(t, e)}</span>
1992
- <span>Streak: <b>${a ? st(a.results) : "·"}</b></span>
1993
- <span>PF/PA: <b>${a ? `${a.pf} / ${a.pa}` : "·"}</b></span>
2019
+ <span>Streak: <b>${r ? st(r.results) : "·"}</b></span>
2020
+ <span>PF/PA: <b>${r ? `${r.pf} / ${r.pa}` : "·"}</b></span>
1994
2021
  <span>Next: ${o ? c`${y(o.date, { month: "numeric", day: "numeric" })}
1995
2022
  ${o.homeTeamId === e ? "vs" : "at"} ${Z(t, o.homeTeamId === e ? o.awayTeamId : o.homeTeamId)}` : "·"}</span>
1996
2023
  </div>
@@ -2094,8 +2121,8 @@ class se extends E {
2094
2121
  });
2095
2122
  if (!s.ok)
2096
2123
  return;
2097
- const a = await s.json();
2098
- this.results = a.items || [], this.activeIndex = -1, this.searched = !0, this.open = !0;
2124
+ const r = await s.json();
2125
+ this.results = r.items || [], this.activeIndex = -1, this.searched = !0, this.open = !0;
2099
2126
  } catch (e) {
2100
2127
  e.name !== "AbortError" && console.warn("school search failed", e);
2101
2128
  }
@@ -2129,7 +2156,7 @@ class se extends E {
2129
2156
  return [t.location, t.county && `${t.county} County`].filter(Boolean).join(" — ");
2130
2157
  }
2131
2158
  renderOption(t, e) {
2132
- const s = this.where(t), a = (o) => {
2159
+ const s = this.where(t), r = (o) => {
2133
2160
  o.preventDefault(), this.go(t);
2134
2161
  };
2135
2162
  return c`
@@ -2137,7 +2164,7 @@ class se extends E {
2137
2164
  id="school-option-${e}"
2138
2165
  role="option"
2139
2166
  aria-selected="${e === this.activeIndex ? "true" : "false"}"
2140
- @pointerdown="${a}"
2167
+ @pointerdown="${r}"
2141
2168
  @mousemove="${() => {
2142
2169
  this.activeIndex = e;
2143
2170
  }}"
@@ -2151,7 +2178,7 @@ class se extends E {
2151
2178
  const t = this.searched && !this.results.length, e = c`<li class="empty">No schools found</li>`;
2152
2179
  return c`
2153
2180
  <ul id="school-search-listbox" role="listbox" aria-label="Schools">
2154
- ${this.results.map((s, a) => this.renderOption(s, a))}
2181
+ ${this.results.map((s, r) => this.renderOption(s, r))}
2155
2182
  ${t ? e : m}
2156
2183
  </ul>
2157
2184
  `;
@@ -2187,10 +2214,10 @@ const es = {
2187
2214
  "hsot-school-search": se
2188
2215
  };
2189
2216
  function ss() {
2190
- const r = globalThis?.customElements;
2191
- if (r)
2217
+ const a = globalThis?.customElements;
2218
+ if (a)
2192
2219
  for (const [t, e] of Object.entries(es))
2193
- r.get(t) || r.define(t, e);
2220
+ a.get(t) || a.define(t, e);
2194
2221
  }
2195
2222
  typeof window < "u" && globalThis.customElements && ss();
2196
2223
  export {