@supersoniks/concorde 3.2.2 → 3.2.4

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.
@@ -55,7 +55,7 @@ let J = class Lt {
55
55
  const h = Lt.getAncestorAttributeValue(
56
56
  t,
57
57
  "credentials"
58
- ) || void 0, f = t.getAttribute("cache"), d = t.hasAttribute("blockUntilDone");
58
+ ) || void 0, u = t.getAttribute("cache"), d = t.hasAttribute("blockUntilDone");
59
59
  return {
60
60
  serviceURL: e,
61
61
  token: i,
@@ -65,7 +65,7 @@ let J = class Lt {
65
65
  tokenProvider: l,
66
66
  addHTTPResponse: s,
67
67
  credentials: h,
68
- cache: f,
68
+ cache: u,
69
69
  blockUntilDone: d
70
70
  };
71
71
  }
@@ -127,9 +127,9 @@ let us = class {
127
127
  }
128
128
  static minutesDuration(t, i = "", s = "long") {
129
129
  i || (i = J.getLanguage());
130
- const e = (h, f) => [Math.floor(h / f), h % f];
131
- function o(h, f, d) {
132
- return new Intl.NumberFormat(h, { style: "unit", unit: f, unitDisplay: d }).format;
130
+ const e = (h, u) => [Math.floor(h / u), h % u];
131
+ function o(h, u, d) {
132
+ return new Intl.NumberFormat(h, { style: "unit", unit: u, unitDisplay: d }).format;
133
133
  }
134
134
  const [n, l] = e(t, 60), c = [];
135
135
  return n && c.push(o(i, "hour", s)(n)), l && c.push(o(i, "minute", s)(l)), new Intl.ListFormat(i, {
@@ -171,9 +171,9 @@ function ls(r) {
171
171
  function Ve(r) {
172
172
  return typeof r == "object" && r != null;
173
173
  }
174
- let xe = "sonic";
175
- typeof __SONIC_PREFIX__ > "u" && (xe = "sonic");
176
- const js = xe == "sonic" ? "publisher-proxies-data" : xe + "-publisher-proxies-data";
174
+ let Pe = "sonic";
175
+ typeof __SONIC_PREFIX__ > "u" && (Pe = "sonic");
176
+ const js = Pe == "sonic" ? "publisher-proxies-data" : Pe + "-publisher-proxies-data";
177
177
  var At;
178
178
  let di = (At = class {
179
179
  constructor(t, i, s) {
@@ -386,7 +386,7 @@ let di = (At = class {
386
386
  * retourner le webcomponent auquel le proxy est associé
387
387
  */
388
388
  get $tag() {
389
- return this._instanceCounter_ || (At.instancesCounter++, this._instanceCounter_ = At.instancesCounter), At.instances.set(this._instanceCounter_, this), "<" + xe + '-publisher-proxy publisher="' + this._instanceCounter_ + '"></' + xe + "-publisher-proxy>";
389
+ return this._instanceCounter_ || (At.instancesCounter++, this._instanceCounter_ = At.instancesCounter), At.instances.set(this._instanceCounter_, this), "<" + Pe + '-publisher-proxy publisher="' + this._instanceCounter_ + '"></' + Pe + "-publisher-proxy>";
390
390
  }
391
391
  }, At.instances = /* @__PURE__ */ new Map(), At.instancesCounter = 0, At);
392
392
  var D;
@@ -543,20 +543,20 @@ let T = (D = class {
543
543
  n.write(s), n.close();
544
544
  const l = await new Response(o.readable).arrayBuffer(), c = new Uint8Array(l);
545
545
  let h = "";
546
- for (let f = 0; f < c.length; f++)
547
- h += String.fromCharCode(c[f]);
546
+ for (let u = 0; u < c.length; u++)
547
+ h += String.fromCharCode(c[u]);
548
548
  return btoa(h);
549
549
  }
550
550
  async decompress(t, i) {
551
551
  const s = atob(t), o = Uint8Array.from(
552
552
  s,
553
- (f) => f.charCodeAt(0)
553
+ (u) => u.charCodeAt(0)
554
554
  ).buffer, n = window, l = new n.DecompressionStream(i), c = l.writable.getWriter();
555
555
  c.write(o), c.close();
556
556
  const h = await new Response(l.readable).arrayBuffer();
557
557
  return new TextDecoder().decode(h);
558
558
  }
559
- }, D.buildDate = "Tue Oct 07 2025 12:59:57 GMT+0200 (heure d’été d’Europe centrale)", D.changed = !1, D.saving = !1, D.saveId = 0, D.instance = null, D.instances = /* @__PURE__ */ new Map(), D.modifiedCollectore = [], D);
559
+ }, D.buildDate = "Mon Oct 13 2025 14:17:18 GMT+0200 (Central European Summer Time)", D.changed = !1, D.saving = !1, D.saveId = 0, D.instance = null, D.instances = /* @__PURE__ */ new Map(), D.modifiedCollectore = [], D);
560
560
  if (typeof window < "u") {
561
561
  const r = window;
562
562
  r[fs + "PublisherManager"] = r[fs + "PublisherManager"] || T;
@@ -699,7 +699,7 @@ class Vr extends HTMLElement {
699
699
  }
700
700
  try {
701
701
  customElements.define(
702
- xe + "-publisher-proxy",
702
+ Pe + "-publisher-proxy",
703
703
  Vr
704
704
  );
705
705
  } catch {
@@ -822,35 +822,35 @@ let As = (N = class {
822
822
  e.forEach((n) => {
823
823
  const l = n.bindedVariablesDescriptor, c = n.propertyToUpdate;
824
824
  for (const h of l.variables) {
825
- const f = h;
825
+ const u = h;
826
826
  let d = s;
827
- d = N.getSubPublisher(s, f);
828
- const m = t, v = {
827
+ d = N.getSubPublisher(s, u);
828
+ const g = t, v = {
829
829
  publisher: d,
830
830
  onAssign: () => {
831
831
  const b = l.variables.map((E) => N.getSubPublisher(s, E)?.get());
832
832
  let x = l.expression, C = !1;
833
833
  if (b.length == 1 && l.variables[0].join(".") == x.substring(1)) {
834
834
  let E = b[0];
835
- E === null && (E = ""), m[c] = E;
835
+ E === null && (E = ""), g[c] = E;
836
836
  return;
837
837
  }
838
838
  for (let E = 0; E < b.length; E++) {
839
839
  let p = b[E];
840
- const u = l.variables[E];
841
- p === null && (C = !0, p = void 0), x = x.replace("$" + u.join("."), p);
840
+ const f = l.variables[E];
841
+ p === null && (C = !0, p = void 0), x = x.replace("$" + f.join("."), p);
842
842
  }
843
843
  if (x.indexOf("|") != -1) {
844
844
  const E = x.indexOf("|");
845
845
  if (E == 0)
846
846
  x = us.js(x.substring(1));
847
847
  else {
848
- const p = x.substring(0, E), u = x.substring(E + 1), y = us[p];
849
- x = C ? "" : y ? y(u) : x;
848
+ const p = x.substring(0, E), f = x.substring(E + 1), y = us[p];
849
+ x = C ? "" : y ? y(f) : x;
850
850
  }
851
851
  } else
852
852
  x = C ? "" : x;
853
- m[c] = x;
853
+ g[c] = x;
854
854
  }
855
855
  };
856
856
  d?.onAssign(v.onAssign), o.push(v);
@@ -860,7 +860,7 @@ let As = (N = class {
860
860
  }, N.observedElements = /* @__PURE__ */ new Map(), N.enabled = !0, N.publisherListeners = /* @__PURE__ */ new Map(), N);
861
861
  As.observe(document.documentElement);
862
862
  window.SonicDataBindObserver || (window.SonicDataBindObserver = As);
863
- let tt = class Vt {
863
+ let tt = class Bt {
864
864
  /**
865
865
  * Effectue une comparaison d'égalité non profonde entre deux objets.
866
866
  */
@@ -886,8 +886,8 @@ let tt = class Vt {
886
886
  if (e.length !== o.length && s)
887
887
  return !1;
888
888
  for (const n of e) {
889
- const l = t[n], c = i[n], h = Vt.isObject(l) && Vt.isObject(c), f = s ? l !== c : l != c;
890
- if (h && !Vt.deepEqual(l, c) || !h && f)
889
+ const l = t[n], c = i[n], h = Bt.isObject(l) && Bt.isObject(c), u = s ? l !== c : l != c;
890
+ if (h && !Bt.deepEqual(l, c) || !h && u)
891
891
  return !1;
892
892
  }
893
893
  return !0;
@@ -906,7 +906,7 @@ let tt = class Vt {
906
906
  return t == null;
907
907
  }
908
908
  static isEmpty(t) {
909
- return Vt.isUndefindOrNull(t) ? !0 : Object.keys(t).length === 0;
909
+ return Bt.isUndefindOrNull(t) ? !0 : Object.keys(t).length === 0;
910
910
  }
911
911
  /**
912
912
  * traverse l'objet pour obtenir la valeur a l'adresse donnée via le tableau de clés pathArray.
@@ -918,19 +918,19 @@ let tt = class Vt {
918
918
  const o = t[e];
919
919
  if (o === void 0)
920
920
  return;
921
- s && Vt.isObject(o) ? t = Object.assign(Array.isArray(o) ? [] : {}, t, o) : t = t[e];
921
+ s && Bt.isObject(o) ? t = Object.assign(Array.isArray(o) ? [] : {}, t, o) : t = t[e];
922
922
  }
923
923
  return t;
924
924
  }
925
925
  static traverseDotNotation(t, i, s = !1) {
926
- return Vt.traverse(t, i.split("."), s);
926
+ return Bt.traverse(t, i.split("."), s);
927
927
  }
928
928
  /*eslint-enable @typescript-eslint/no-explicit-any*/
929
929
  static getURLSearchArray(t, i = "") {
930
930
  let s = [];
931
931
  for (let e in t) {
932
932
  const o = t[e];
933
- i && (e = i + "[" + e + "]"), Vt.isObject(o) ? s = [
933
+ i && (e = i + "[" + e + "]"), Bt.isObject(o) ? s = [
934
934
  ...s,
935
935
  ...this.getURLSearchArray(o, e)
936
936
  ] : s.push(`${e}=${o}`);
@@ -938,10 +938,10 @@ let tt = class Vt {
938
938
  return s;
939
939
  }
940
940
  static getURLSearchString(t) {
941
- return Vt.getURLSearchArray(t, "").join("&");
941
+ return Bt.getURLSearchArray(t, "").join("&");
942
942
  }
943
943
  };
944
- const dt = tt.traverseDotNotation;
944
+ const pt = tt.traverseDotNotation;
945
945
  /**
946
946
  * @license
947
947
  * Copyright 2017 Google LLC
@@ -999,7 +999,7 @@ const Br = (r) => new pr(typeof r == "string" ? r : r + "", void 0, ui), P = (r,
999
999
  * Copyright 2017 Google LLC
1000
1000
  * SPDX-License-Identifier: BSD-3-Clause
1001
1001
  */
1002
- const { is: Hr, defineProperty: Wr, getOwnPropertyDescriptor: Kr, getOwnPropertyNames: Yr, getOwnPropertySymbols: Xr, getPrototypeOf: Zr } = Object, ks = globalThis, ji = ks.trustedTypes, Gr = ji ? ji.emptyScript : "", Qr = ks.reactiveElementPolyfillSupport, Be = (r, t) => r, gs = { toAttribute(r, t) {
1002
+ const { is: Hr, defineProperty: Wr, getOwnPropertyDescriptor: Kr, getOwnPropertyNames: Yr, getOwnPropertySymbols: Xr, getPrototypeOf: Zr } = Object, ks = globalThis, ji = ks.trustedTypes, Gr = ji ? ji.emptyScript : "", Qr = ks.reactiveElementPolyfillSupport, Be = (r, t) => r, ms = { toAttribute(r, t) {
1003
1003
  switch (t) {
1004
1004
  case Boolean:
1005
1005
  r = r ? Gr : null;
@@ -1027,9 +1027,9 @@ const { is: Hr, defineProperty: Wr, getOwnPropertyDescriptor: Kr, getOwnProperty
1027
1027
  }
1028
1028
  }
1029
1029
  return i;
1030
- } }, fi = (r, t) => !Hr(r, t), Fi = { attribute: !0, type: String, converter: gs, reflect: !1, useDefault: !1, hasChanged: fi };
1030
+ } }, fi = (r, t) => !Hr(r, t), Fi = { attribute: !0, type: String, converter: ms, reflect: !1, useDefault: !1, hasChanged: fi };
1031
1031
  Symbol.metadata ??= Symbol("metadata"), ks.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
1032
- let we = class extends HTMLElement {
1032
+ let _e = class extends HTMLElement {
1033
1033
  static addInitializer(t) {
1034
1034
  this._$Ei(), (this.l ??= []).push(t);
1035
1035
  }
@@ -1126,14 +1126,14 @@ let we = class extends HTMLElement {
1126
1126
  _$ET(t, i) {
1127
1127
  const s = this.constructor.elementProperties.get(t), e = this.constructor._$Eu(t, s);
1128
1128
  if (e !== void 0 && s.reflect === !0) {
1129
- const o = (s.converter?.toAttribute !== void 0 ? s.converter : gs).toAttribute(i, s.type);
1129
+ const o = (s.converter?.toAttribute !== void 0 ? s.converter : ms).toAttribute(i, s.type);
1130
1130
  this._$Em = t, o == null ? this.removeAttribute(e) : this.setAttribute(e, o), this._$Em = null;
1131
1131
  }
1132
1132
  }
1133
1133
  _$AK(t, i) {
1134
1134
  const s = this.constructor, e = s._$Eh.get(t);
1135
1135
  if (e !== void 0 && this._$Em !== e) {
1136
- const o = s.getPropertyOptions(e), n = typeof o.converter == "function" ? { fromAttribute: o.converter } : o.converter?.fromAttribute !== void 0 ? o.converter : gs;
1136
+ const o = s.getPropertyOptions(e), n = typeof o.converter == "function" ? { fromAttribute: o.converter } : o.converter?.fromAttribute !== void 0 ? o.converter : ms;
1137
1137
  this._$Em = e;
1138
1138
  const l = n.fromAttribute(i, o.type);
1139
1139
  this[e] = l ?? this._$Ej?.get(e) ?? l, this._$Em = null;
@@ -1210,13 +1210,13 @@ let we = class extends HTMLElement {
1210
1210
  firstUpdated(t) {
1211
1211
  }
1212
1212
  };
1213
- we.elementStyles = [], we.shadowRootOptions = { mode: "open" }, we[Be("elementProperties")] = /* @__PURE__ */ new Map(), we[Be("finalized")] = /* @__PURE__ */ new Map(), Qr?.({ ReactiveElement: we }), (ks.reactiveElementVersions ??= []).push("2.1.1");
1213
+ _e.elementStyles = [], _e.shadowRootOptions = { mode: "open" }, _e[Be("elementProperties")] = /* @__PURE__ */ new Map(), _e[Be("finalized")] = /* @__PURE__ */ new Map(), Qr?.({ ReactiveElement: _e }), (ks.reactiveElementVersions ??= []).push("2.1.1");
1214
1214
  /**
1215
1215
  * @license
1216
1216
  * Copyright 2017 Google LLC
1217
1217
  * SPDX-License-Identifier: BSD-3-Clause
1218
1218
  */
1219
- const Jr = { attribute: !0, type: String, converter: gs, reflect: !1, hasChanged: fi }, to = (r = Jr, t, i) => {
1219
+ const Jr = { attribute: !0, type: String, converter: ms, reflect: !1, hasChanged: fi }, to = (r = Jr, t, i) => {
1220
1220
  const { kind: s, metadata: e } = i;
1221
1221
  let o = globalThis.litPropertyMetadata.get(e);
1222
1222
  if (o === void 0 && globalThis.litPropertyMetadata.set(e, o = /* @__PURE__ */ new Map()), s === "setter" && ((r = Object.create(r)).wrapped = !0), o.set(i.name, r), s === "accessor") {
@@ -1256,16 +1256,16 @@ function L(r) {
1256
1256
  * Copyright 2017 Google LLC
1257
1257
  * SPDX-License-Identifier: BSD-3-Clause
1258
1258
  */
1259
- const gi = (r, t, i) => (i.configurable = !0, i.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(r, t, i), i);
1259
+ const mi = (r, t, i) => (i.configurable = !0, i.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(r, t, i), i);
1260
1260
  /**
1261
1261
  * @license
1262
1262
  * Copyright 2017 Google LLC
1263
1263
  * SPDX-License-Identifier: BSD-3-Clause
1264
1264
  */
1265
- function Ae(r, t) {
1265
+ function ge(r, t) {
1266
1266
  return (i, s, e) => {
1267
1267
  const o = (n) => n.renderRoot?.querySelector(r) ?? null;
1268
- return gi(i, s, { get() {
1268
+ return mi(i, s, { get() {
1269
1269
  return o(this);
1270
1270
  } });
1271
1271
  };
@@ -1278,7 +1278,7 @@ function Ae(r, t) {
1278
1278
  function ke(r) {
1279
1279
  return (t, i) => {
1280
1280
  const { slot: s, selector: e } = r ?? {}, o = "slot" + (s ? `[name=${s}]` : ":not([name])");
1281
- return gi(t, i, { get() {
1281
+ return mi(t, i, { get() {
1282
1282
  const n = this.renderRoot?.querySelector(o), l = n?.assignedElements(r) ?? [];
1283
1283
  return e === void 0 ? l : l.filter(((c) => c.matches(e)));
1284
1284
  } });
@@ -1289,10 +1289,10 @@ function ke(r) {
1289
1289
  * Copyright 2017 Google LLC
1290
1290
  * SPDX-License-Identifier: BSD-3-Clause
1291
1291
  */
1292
- function ht(r) {
1292
+ function dt(r) {
1293
1293
  return (t, i) => {
1294
1294
  const { slot: s } = r ?? {}, e = "slot" + (s ? `[name=${s}]` : ":not([name])");
1295
- return gi(t, i, { get() {
1295
+ return mi(t, i, { get() {
1296
1296
  return this.renderRoot?.querySelector(e)?.assignedNodes(r) ?? [];
1297
1297
  } });
1298
1298
  };
@@ -1302,10 +1302,10 @@ function ht(r) {
1302
1302
  * Copyright 2017 Google LLC
1303
1303
  * SPDX-License-Identifier: BSD-3-Clause
1304
1304
  */
1305
- const mi = globalThis, ms = mi.trustedTypes, zi = ms ? ms.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, ur = "$lit$", Yt = `lit$${Math.random().toFixed(9).slice(2)}$`, fr = "?" + Yt, eo = `<${fr}>`, he = document, We = () => he.createComment(""), Ke = (r) => r === null || typeof r != "object" && typeof r != "function", bi = Array.isArray, so = (r) => bi(r) || typeof r?.[Symbol.iterator] == "function", Fs = `[
1305
+ const gi = globalThis, gs = gi.trustedTypes, zi = gs ? gs.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, ur = "$lit$", Yt = `lit$${Math.random().toFixed(9).slice(2)}$`, fr = "?" + Yt, eo = `<${fr}>`, he = document, We = () => he.createComment(""), Ke = (r) => r === null || typeof r != "object" && typeof r != "function", bi = Array.isArray, so = (r) => bi(r) || typeof r?.[Symbol.iterator] == "function", Fs = `[
1306
1306
  \f\r]`, je = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ri = /-->/g, Ui = />/g, oe = RegExp(`>|${Fs}(?:([^\\s"'>=/]+)(${Fs}*=${Fs}*(?:[^
1307
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Vi = /'/g, Bi = /"/g, gr = /^(?:script|style|textarea|title)$/i, io = (r) => (t, ...i) => ({ _$litType$: r, strings: t, values: i }), g = io(1), yt = Symbol.for("lit-noChange"), S = Symbol.for("lit-nothing"), qi = /* @__PURE__ */ new WeakMap(), ce = he.createTreeWalker(he, 129);
1308
- function mr(r, t) {
1307
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Vi = /'/g, Bi = /"/g, mr = /^(?:script|style|textarea|title)$/i, io = (r) => (t, ...i) => ({ _$litType$: r, strings: t, values: i }), m = io(1), wt = Symbol.for("lit-noChange"), S = Symbol.for("lit-nothing"), qi = /* @__PURE__ */ new WeakMap(), ce = he.createTreeWalker(he, 129);
1308
+ function gr(r, t) {
1309
1309
  if (!bi(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
1310
1310
  return zi !== void 0 ? zi.createHTML(t) : t;
1311
1311
  }
@@ -1314,19 +1314,19 @@ const ro = (r, t) => {
1314
1314
  let e, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = je;
1315
1315
  for (let l = 0; l < i; l++) {
1316
1316
  const c = r[l];
1317
- let h, f, d = -1, m = 0;
1318
- for (; m < c.length && (n.lastIndex = m, f = n.exec(c), f !== null); ) m = n.lastIndex, n === je ? f[1] === "!--" ? n = Ri : f[1] !== void 0 ? n = Ui : f[2] !== void 0 ? (gr.test(f[2]) && (e = RegExp("</" + f[2], "g")), n = oe) : f[3] !== void 0 && (n = oe) : n === oe ? f[0] === ">" ? (n = e ?? je, d = -1) : f[1] === void 0 ? d = -2 : (d = n.lastIndex - f[2].length, h = f[1], n = f[3] === void 0 ? oe : f[3] === '"' ? Bi : Vi) : n === Bi || n === Vi ? n = oe : n === Ri || n === Ui ? n = je : (n = oe, e = void 0);
1317
+ let h, u, d = -1, g = 0;
1318
+ for (; g < c.length && (n.lastIndex = g, u = n.exec(c), u !== null); ) g = n.lastIndex, n === je ? u[1] === "!--" ? n = Ri : u[1] !== void 0 ? n = Ui : u[2] !== void 0 ? (mr.test(u[2]) && (e = RegExp("</" + u[2], "g")), n = oe) : u[3] !== void 0 && (n = oe) : n === oe ? u[0] === ">" ? (n = e ?? je, d = -1) : u[1] === void 0 ? d = -2 : (d = n.lastIndex - u[2].length, h = u[1], n = u[3] === void 0 ? oe : u[3] === '"' ? Bi : Vi) : n === Bi || n === Vi ? n = oe : n === Ri || n === Ui ? n = je : (n = oe, e = void 0);
1319
1319
  const v = n === oe && r[l + 1].startsWith("/>") ? " " : "";
1320
1320
  o += n === je ? c + eo : d >= 0 ? (s.push(h), c.slice(0, d) + ur + c.slice(d) + Yt + v) : c + Yt + (d === -2 ? l : v);
1321
1321
  }
1322
- return [mr(r, o + (r[i] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
1322
+ return [gr(r, o + (r[i] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
1323
1323
  };
1324
1324
  let qs = class br {
1325
1325
  constructor({ strings: t, _$litType$: i }, s) {
1326
1326
  let e;
1327
1327
  this.parts = [];
1328
1328
  let o = 0, n = 0;
1329
- const l = t.length - 1, c = this.parts, [h, f] = ro(t, i);
1329
+ const l = t.length - 1, c = this.parts, [h, u] = ro(t, i);
1330
1330
  if (this.el = br.createElement(h, s), ce.currentNode = this.el.content, i === 2 || i === 3) {
1331
1331
  const d = this.el.content.firstChild;
1332
1332
  d.replaceWith(...d.childNodes);
@@ -1334,15 +1334,15 @@ let qs = class br {
1334
1334
  for (; (e = ce.nextNode()) !== null && c.length < l; ) {
1335
1335
  if (e.nodeType === 1) {
1336
1336
  if (e.hasAttributes()) for (const d of e.getAttributeNames()) if (d.endsWith(ur)) {
1337
- const m = f[n++], v = e.getAttribute(d).split(Yt), b = /([.?@])?(.*)/.exec(m);
1337
+ const g = u[n++], v = e.getAttribute(d).split(Yt), b = /([.?@])?(.*)/.exec(g);
1338
1338
  c.push({ type: 1, index: o, name: b[2], strings: v, ctor: b[1] === "." ? no : b[1] === "?" ? ao : b[1] === "@" ? lo : Os }), e.removeAttribute(d);
1339
1339
  } else d.startsWith(Yt) && (c.push({ type: 6, index: o }), e.removeAttribute(d));
1340
- if (gr.test(e.tagName)) {
1341
- const d = e.textContent.split(Yt), m = d.length - 1;
1342
- if (m > 0) {
1343
- e.textContent = ms ? ms.emptyScript : "";
1344
- for (let v = 0; v < m; v++) e.append(d[v], We()), ce.nextNode(), c.push({ type: 2, index: ++o });
1345
- e.append(d[m], We());
1340
+ if (mr.test(e.tagName)) {
1341
+ const d = e.textContent.split(Yt), g = d.length - 1;
1342
+ if (g > 0) {
1343
+ e.textContent = gs ? gs.emptyScript : "";
1344
+ for (let v = 0; v < g; v++) e.append(d[v], We()), ce.nextNode(), c.push({ type: 2, index: ++o });
1345
+ e.append(d[g], We());
1346
1346
  }
1347
1347
  }
1348
1348
  } else if (e.nodeType === 8) if (e.data === fr) c.push({ type: 2, index: o });
@@ -1358,11 +1358,11 @@ let qs = class br {
1358
1358
  return s.innerHTML = t, s;
1359
1359
  }
1360
1360
  };
1361
- function Pe(r, t, i = r, s) {
1362
- if (t === yt) return t;
1361
+ function $e(r, t, i = r, s) {
1362
+ if (t === wt) return t;
1363
1363
  let e = s !== void 0 ? i._$Co?.[s] : i._$Cl;
1364
1364
  const o = Ke(t) ? void 0 : t._$litDirective$;
1365
- return e?.constructor !== o && (e?._$AO?.(!1), o === void 0 ? e = void 0 : (e = new o(r), e._$AT(r, i, s)), s !== void 0 ? (i._$Co ??= [])[s] = e : i._$Cl = e), e !== void 0 && (t = Pe(r, e._$AS(r, t.values), e, s)), t;
1365
+ return e?.constructor !== o && (e?._$AO?.(!1), o === void 0 ? e = void 0 : (e = new o(r), e._$AT(r, i, s)), s !== void 0 ? (i._$Co ??= [])[s] = e : i._$Cl = e), e !== void 0 && (t = $e(r, e._$AS(r, t.values), e, s)), t;
1366
1366
  }
1367
1367
  let oo = class {
1368
1368
  constructor(t, i) {
@@ -1411,7 +1411,7 @@ class Oe {
1411
1411
  return this._$AB;
1412
1412
  }
1413
1413
  _$AI(t, i = this) {
1414
- t = Pe(this, t, i), Ke(t) ? t === S || t == null || t === "" ? (this._$AH !== S && this._$AR(), this._$AH = S) : t !== this._$AH && t !== yt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : so(t) ? this.k(t) : this._(t);
1414
+ t = $e(this, t, i), Ke(t) ? t === S || t == null || t === "" ? (this._$AH !== S && this._$AR(), this._$AH = S) : t !== this._$AH && t !== wt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : so(t) ? this.k(t) : this._(t);
1415
1415
  }
1416
1416
  O(t) {
1417
1417
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -1423,7 +1423,7 @@ class Oe {
1423
1423
  this._$AH !== S && Ke(this._$AH) ? this._$AA.nextSibling.data = t : this.T(he.createTextNode(t)), this._$AH = t;
1424
1424
  }
1425
1425
  $(t) {
1426
- const { values: i, _$litType$: s } = t, e = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = qs.createElement(mr(s.h, s.h[0]), this.options)), s);
1426
+ const { values: i, _$litType$: s } = t, e = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = qs.createElement(gr(s.h, s.h[0]), this.options)), s);
1427
1427
  if (this._$AH?._$AD === e) this._$AH.p(i);
1428
1428
  else {
1429
1429
  const o = new oo(e, this), n = o.u(this.options);
@@ -1464,11 +1464,11 @@ class Os {
1464
1464
  _$AI(t, i = this, s, e) {
1465
1465
  const o = this.strings;
1466
1466
  let n = !1;
1467
- if (o === void 0) t = Pe(this, t, i, 0), n = !Ke(t) || t !== this._$AH && t !== yt, n && (this._$AH = t);
1467
+ if (o === void 0) t = $e(this, t, i, 0), n = !Ke(t) || t !== this._$AH && t !== wt, n && (this._$AH = t);
1468
1468
  else {
1469
1469
  const l = t;
1470
1470
  let c, h;
1471
- for (t = o[0], c = 0; c < o.length - 1; c++) h = Pe(this, l[s + c], i, c), h === yt && (h = this._$AH[c]), n ||= !Ke(h) || h !== this._$AH[c], h === S ? t = S : t !== S && (t += (h ?? "") + o[c + 1]), this._$AH[c] = h;
1471
+ for (t = o[0], c = 0; c < o.length - 1; c++) h = $e(this, l[s + c], i, c), h === wt && (h = this._$AH[c]), n ||= !Ke(h) || h !== this._$AH[c], h === S ? t = S : t !== S && (t += (h ?? "") + o[c + 1]), this._$AH[c] = h;
1472
1472
  }
1473
1473
  n && !e && this.j(t);
1474
1474
  }
@@ -1497,7 +1497,7 @@ class lo extends Os {
1497
1497
  super(t, i, s, e, o), this.type = 5;
1498
1498
  }
1499
1499
  _$AI(t, i = this) {
1500
- if ((t = Pe(this, t, i, 0) ?? S) === yt) return;
1500
+ if ((t = $e(this, t, i, 0) ?? S) === wt) return;
1501
1501
  const s = this._$AH, e = t === S && s !== S || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== S && (s === S || e);
1502
1502
  e && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
1503
1503
  }
@@ -1513,11 +1513,11 @@ class co {
1513
1513
  return this._$AM._$AU;
1514
1514
  }
1515
1515
  _$AI(t) {
1516
- Pe(this, t);
1516
+ $e(this, t);
1517
1517
  }
1518
1518
  }
1519
- const ho = { I: Oe }, po = mi.litHtmlPolyfillSupport;
1520
- po?.(qs, Oe), (mi.litHtmlVersions ??= []).push("3.3.1");
1519
+ const ho = { I: Oe }, po = gi.litHtmlPolyfillSupport;
1520
+ po?.(qs, Oe), (gi.litHtmlVersions ??= []).push("3.3.1");
1521
1521
  const uo = (r, t, i) => {
1522
1522
  const s = i?.renderBefore ?? t;
1523
1523
  let e = s._$litPart$;
@@ -1532,7 +1532,7 @@ const uo = (r, t, i) => {
1532
1532
  * Copyright 2020 Google LLC
1533
1533
  * SPDX-License-Identifier: BSD-3-Clause
1534
1534
  */
1535
- const { I: fo } = ho, go = (r) => r.strings === void 0, Hi = () => document.createComment(""), Fe = (r, t, i) => {
1535
+ const { I: fo } = ho, mo = (r) => r.strings === void 0, Hi = () => document.createComment(""), Fe = (r, t, i) => {
1536
1536
  const s = r._$AA.parentNode, e = t === void 0 ? r._$AB : t._$AA;
1537
1537
  if (i === void 0) {
1538
1538
  const o = s.insertBefore(Hi(), e), n = s.insertBefore(Hi(), e);
@@ -1552,7 +1552,7 @@ const { I: fo } = ho, go = (r) => r.strings === void 0, Hi = () => document.crea
1552
1552
  }
1553
1553
  }
1554
1554
  return i;
1555
- }, ne = (r, t, i = r) => (r._$AI(t, i), r), mo = {}, bo = (r, t = mo) => r._$AH = t, vo = (r) => r._$AH, zs = (r) => {
1555
+ }, ne = (r, t, i = r) => (r._$AI(t, i), r), go = {}, bo = (r, t = go) => r._$AH = t, vo = (r) => r._$AH, zs = (r) => {
1556
1556
  r._$AR(), r._$AA.remove();
1557
1557
  };
1558
1558
  /**
@@ -1560,7 +1560,7 @@ const { I: fo } = ho, go = (r) => r.strings === void 0, Hi = () => document.crea
1560
1560
  * Copyright 2017 Google LLC
1561
1561
  * SPDX-License-Identifier: BSD-3-Clause
1562
1562
  */
1563
- const me = { ATTRIBUTE: 1, CHILD: 2 }, ee = (r) => (...t) => ({ _$litDirective$: r, values: t });
1563
+ const be = { ATTRIBUTE: 1, CHILD: 2 }, ee = (r) => (...t) => ({ _$litDirective$: r, values: t });
1564
1564
  let De = class {
1565
1565
  constructor(t) {
1566
1566
  }
@@ -1611,7 +1611,7 @@ function wo(r, t = !1, i = 0) {
1611
1611
  else qe(this, r);
1612
1612
  }
1613
1613
  const _o = (r) => {
1614
- r.type == me.CHILD && (r._$AP ??= wo, r._$AQ ??= yo);
1614
+ r.type == be.CHILD && (r._$AP ??= wo, r._$AQ ??= yo);
1615
1615
  };
1616
1616
  class vi extends De {
1617
1617
  constructor() {
@@ -1624,7 +1624,7 @@ class vi extends De {
1624
1624
  t !== this.isConnected && (this.isConnected = t, t ? this.reconnected?.() : this.disconnected?.()), i && (qe(this, t), bs(this));
1625
1625
  }
1626
1626
  setValue(t) {
1627
- if (go(this._$Ct)) this._$Ct._$AI(t, this);
1627
+ if (mo(this._$Ct)) this._$Ct._$AI(t, this);
1628
1628
  else {
1629
1629
  const i = [...this._$Ct._$AH];
1630
1630
  i[this._$Ci] = t, this._$Ct._$AI(i, this, 0);
@@ -1641,7 +1641,7 @@ class vi extends De {
1641
1641
  * SPDX-License-Identifier: BSD-3-Clause
1642
1642
  */
1643
1643
  const yi = globalThis;
1644
- let w = class extends we {
1644
+ let w = class extends _e {
1645
1645
  constructor() {
1646
1646
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
1647
1647
  }
@@ -1660,7 +1660,7 @@ let w = class extends we {
1660
1660
  super.disconnectedCallback(), this._$Do?.setConnected(!1);
1661
1661
  }
1662
1662
  render() {
1663
- return yt;
1663
+ return wt;
1664
1664
  }
1665
1665
  };
1666
1666
  w._$litElement$ = !0, w.finalized = !0, yi.litElementHydrateSupport?.({ LitElement: w });
@@ -1695,7 +1695,7 @@ class Po extends vi {
1695
1695
  }
1696
1696
  /* eslint-enable @typescript-eslint/no-explicit-any*/
1697
1697
  render(t) {
1698
- return this.observable !== t && (this.observable = t, this.isConnected && this.subscribe(t)), yt;
1698
+ return this.observable !== t && (this.observable = t, this.isConnected && this.subscribe(t)), wt;
1699
1699
  }
1700
1700
  // Subscribes to the observable, calling the directive's asynchronous
1701
1701
  // setValue API each time the value changes
@@ -1819,15 +1819,15 @@ const yr = ee(Po), $o = yr, Co = yr, So = (r) => Ds(r).values().next().value?.ge
1819
1819
  let n = [];
1820
1820
  Array.isArray(o) ? n = o : n = [o];
1821
1821
  const l = [];
1822
- let c = Number.POSITIVE_INFINITY, h = 0, f = 0;
1823
- if (e.has("limit") && (c = parseInt(e.get("limit") || "0"), f++), e.has("offset") && (h = parseInt(e.get("offset") || "0"), f++), f > 0 && (e.delete("limit"), e.delete("offset")), e.size === 0)
1822
+ let c = Number.POSITIVE_INFINITY, h = 0, u = 0;
1823
+ if (e.has("limit") && (c = parseInt(e.get("limit") || "0"), u++), e.has("offset") && (h = parseInt(e.get("offset") || "0"), u++), u > 0 && (e.delete("limit"), e.delete("offset")), e.size === 0)
1824
1824
  return n.slice(h, h + c);
1825
- for (const [d, m] of e.entries()) {
1826
- const v = m.split(",").map((b) => b.trim());
1825
+ for (const [d, g] of e.entries()) {
1826
+ const v = g.split(",").map((b) => b.trim());
1827
1827
  for (const b of v)
1828
1828
  for (const x of n)
1829
1829
  if (typeof x != "object")
1830
- isNaN(+x) ? x.toString().toLowerCase().includes(m.toLowerCase()) && l.push(x) : x === m && l.push(x);
1830
+ isNaN(+x) ? x.toString().toLowerCase().includes(g.toLowerCase()) && l.push(x) : x === g && l.push(x);
1831
1831
  else {
1832
1832
  const C = x;
1833
1833
  if (!C[d]) continue;
@@ -1870,16 +1870,16 @@ const yr = ee(Po), $o = yr, Co = yr, So = (r) => Ds(r).values().next().value?.ge
1870
1870
  headers: o
1871
1871
  });
1872
1872
  if (!F.loadingGetPromises.has(l)) {
1873
- const h = new Promise(async (f) => {
1873
+ const h = new Promise(async (u) => {
1874
1874
  try {
1875
1875
  const d = await fetch(n, {
1876
1876
  headers: o,
1877
1877
  credentials: this.credentials,
1878
1878
  cache: this.cache
1879
- }), m = await this.handleResult(d, e);
1880
- f(m);
1879
+ }), g = await this.handleResult(d, e);
1880
+ u(g);
1881
1881
  } catch {
1882
- f(null);
1882
+ u(null);
1883
1883
  }
1884
1884
  });
1885
1885
  F.loadingGetPromises.set(l, h);
@@ -1940,7 +1940,7 @@ const yr = ee(Po), $o = yr, Co = yr, So = (r) => Ds(r).values().next().value?.ge
1940
1940
  }, n = await this.createHeaders(e);
1941
1941
  n.Accept = "application/json";
1942
1942
  const l = new FormData(), c = i;
1943
- for (const f in c) l.set(f, c[f]);
1943
+ for (const u in c) l.set(u, c[u]);
1944
1944
  const h = await fetch(this.computeURL(t), {
1945
1945
  headers: n,
1946
1946
  credentials: this.credentials,
@@ -1975,7 +1975,7 @@ const yr = ee(Po), $o = yr, Co = yr, So = (r) => Ds(r).values().next().value?.ge
1975
1975
  }
1976
1976
  };
1977
1977
  F.loadingGetPromises = /* @__PURE__ */ new Map(), F.tokens = /* @__PURE__ */ new Map(), F.invalidTokens = [], F.failledTokenUpdates = /* @__PURE__ */ new Map(), F.firstCallDoneFlags = /* @__PURE__ */ new Map();
1978
- let $e = F;
1978
+ let Ce = F;
1979
1979
  J.getApiConfiguration(
1980
1980
  document.body || document.documentElement
1981
1981
  );
@@ -1988,11 +1988,11 @@ const Oo = async (r, t) => {
1988
1988
  */
1989
1989
  let Hs = class extends De {
1990
1990
  constructor(t) {
1991
- if (super(t), this.it = S, t.type !== me.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
1991
+ if (super(t), this.it = S, t.type !== be.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
1992
1992
  }
1993
1993
  render(t) {
1994
1994
  if (t === S || t == null) return this._t = void 0, this.it = t;
1995
- if (t === yt) return t;
1995
+ if (t === wt) return t;
1996
1996
  if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
1997
1997
  if (t === this.it) return this._t;
1998
1998
  this.it = t;
@@ -2021,7 +2021,7 @@ const z = ee(Hs), Ws = /* @__PURE__ */ new Map(), Wi = (r) => {
2021
2021
  break;
2022
2022
  }
2023
2023
  return o || (o = {
2024
- api: new $e(t),
2024
+ api: new Ce(t),
2025
2025
  keysToTranslate: /* @__PURE__ */ new Set(),
2026
2026
  translatedKeys: /* @__PURE__ */ new Set(),
2027
2027
  wordingProvider: i,
@@ -2042,21 +2042,21 @@ const z = ee(Hs), Ws = /* @__PURE__ */ new Map(), Wi = (r) => {
2042
2042
  }
2043
2043
  /* eslint-enable @typescript-eslint/no-explicit-any*/
2044
2044
  render(t, i = !1) {
2045
- return this.useUnsafeHTML = i, this.key !== t && (this.key = t, this.isConnected && this.subscribe(t)), yt;
2045
+ return this.useUnsafeHTML = i, this.key !== t && (this.key = t, this.isConnected && this.subscribe(t)), wt;
2046
2046
  }
2047
2047
  static async callApi(t, i, s = !0, e) {
2048
2048
  if (await T.getInstance().isLocalStrorageReady, V.firstCall) {
2049
2049
  V.firstCall = !1, hi(V.reloadWordings);
2050
- const f = Object.keys(V.publisher.get());
2051
- for (const d of f)
2050
+ const u = Object.keys(V.publisher.get());
2051
+ for (const d of u)
2052
2052
  V.publisher.get()[d] === Ki && delete V.publisher[d];
2053
2053
  }
2054
2054
  if (t) {
2055
- const f = J.getAncestorAttributeValue(
2055
+ const u = J.getAncestorAttributeValue(
2056
2056
  t,
2057
2057
  "wordingVersionProvider"
2058
2058
  );
2059
- f && _r(f).onAssign(
2059
+ u && _r(u).onAssign(
2060
2060
  V.handleVersionProvider(t)
2061
2061
  );
2062
2062
  }
@@ -2078,9 +2078,9 @@ const z = ee(Hs), Ws = /* @__PURE__ */ new Map(), Wi = (r) => {
2078
2078
  const h = n.api;
2079
2079
  window.queueMicrotask(async () => {
2080
2080
  if (o = V.publisher["wording_" + i].get() != null, !o && i !== "" && (n.keysToTranslate.add(i), V.publisher["wording_" + i] = Ki), l !== n.callIndex) return;
2081
- const f = Array.from(n.keysToTranslate);
2082
- if (!f.length) return;
2083
- const d = c.split("?"), m = d.shift(), v = (d.length > 0 ? d.join("?") + "&" : "") + "labels[]=" + f.join("&labels[]="), b = m + "?" + v;
2081
+ const u = Array.from(n.keysToTranslate);
2082
+ if (!u.length) return;
2083
+ const d = c.split("?"), g = d.shift(), v = (d.length > 0 ? d.join("?") + "&" : "") + "labels[]=" + u.join("&labels[]="), b = g + "?" + v;
2084
2084
  n.translatedKeys = /* @__PURE__ */ new Set([
2085
2085
  ...n.translatedKeys,
2086
2086
  ...n.keysToTranslate
@@ -2137,8 +2137,8 @@ const z = ee(Hs), Ws = /* @__PURE__ */ new Map(), Wi = (r) => {
2137
2137
  V.publisher = T.get("sonic-wording", {
2138
2138
  localStorageMode: "enabled"
2139
2139
  }), V.firstCall = !0, V.versionProviderHandlers = /* @__PURE__ */ new Map();
2140
- let _e = V;
2141
- const Do = ee(_e), Lo = Do;
2140
+ let xe = V;
2141
+ const Do = ee(xe), Lo = Do;
2142
2142
  var Eo = Object.defineProperty, No = Object.getOwnPropertyDescriptor, Ot = (r, t, i, s) => {
2143
2143
  for (var e = s > 1 ? void 0 : s ? No(t, i) : t, o = r.length - 1, n; o >= 0; o--)
2144
2144
  (n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
@@ -2178,7 +2178,7 @@ const Z = (r, t) => {
2178
2178
  updated(n) {
2179
2179
  super.updated(n);
2180
2180
  const c = [...(this.shadowRoot || this).children].filter(
2181
- (f) => f.tagName != "STYLE"
2181
+ (u) => u.tagName != "STYLE"
2182
2182
  ), h = this.displayContents ? "contents" : c.length == 0 ? "none" : null;
2183
2183
  h ? this.style.display = h : this.style.removeProperty("display");
2184
2184
  }
@@ -2191,8 +2191,8 @@ const Z = (r, t) => {
2191
2191
  };
2192
2192
  let l = !0;
2193
2193
  const c = new IntersectionObserver((h) => {
2194
- for (const f of h)
2195
- if (l && f.isIntersecting) {
2194
+ for (const u of h)
2195
+ if (l && u.isIntersecting) {
2196
2196
  l = !1, c.disconnect(), this.initWording(), this.shouldRenderLazy = !1, this.startPublisher();
2197
2197
  break;
2198
2198
  }
@@ -2203,7 +2203,7 @@ const Z = (r, t) => {
2203
2203
  this.initPublisher(), this.addDebugger(), super.connectedCallback();
2204
2204
  }
2205
2205
  disconnectedCallback() {
2206
- this.removeDebugger(), super.disconnectedCallback(), this.publisher && (this.publisher.stopTemplateFilling(this), this.publisher.offInternalMutation(this.requestUpdate)), _e.publisher.stopTemplateFilling(this), this.onAssign && this.publisher?.offAssign(this.onAssign);
2206
+ this.removeDebugger(), super.disconnectedCallback(), this.publisher && (this.publisher.stopTemplateFilling(this), this.publisher.offInternalMutation(this.requestUpdate)), xe.publisher.stopTemplateFilling(this), this.onAssign && this.publisher?.offAssign(this.onAssign);
2207
2207
  }
2208
2208
  addDebugger() {
2209
2209
  if (this.hasAttribute("debug") && !this.defferedDebug) {
@@ -2254,8 +2254,8 @@ const Z = (r, t) => {
2254
2254
  async initWording() {
2255
2255
  const n = Object.getOwnPropertyNames(this.constructor.prototype);
2256
2256
  for (const l of n)
2257
- l.indexOf("wording_") == 0 && _e.callApi(this, l.substring(8));
2258
- _e.publisher.startTemplateFilling(this);
2257
+ l.indexOf("wording_") == 0 && xe.callApi(this, l.substring(8));
2258
+ xe.publisher.startTemplateFilling(this);
2259
2259
  }
2260
2260
  /**
2261
2261
  *
@@ -2539,10 +2539,10 @@ let et = (H = class {
2539
2539
  static changeFromComponent(t) {
2540
2540
  const i = t.goBack, s = document.referrer;
2541
2541
  if (i != null) {
2542
- const h = document.location.origin, f = (i || h).toString(), m = s.indexOf("http") == 0 ? new URL(s).origin != h : !1, v = s == "", b = history.length < 3, x = v && b, C = f != document.location.href;
2543
- if (m && C || x) {
2542
+ const h = document.location.origin, u = (i || h).toString(), g = s.indexOf("http") == 0 ? new URL(s).origin != h : !1, v = s == "", b = history.length < 3, x = v && b, C = u != document.location.href;
2543
+ if (g && C || x) {
2544
2544
  const p = history.state || {};
2545
- p.concorde = p.concorde || {}, p.concorde.hasDoneHistoryBack = !0, history.pushState(p, document.title), history.back(), document.location.replace(f);
2545
+ p.concorde = p.concorde || {}, p.concorde.hasDoneHistoryBack = !0, history.pushState(p, document.title), history.back(), document.location.replace(u);
2546
2546
  } else
2547
2547
  history.back();
2548
2548
  return;
@@ -2583,9 +2583,9 @@ let et = (H = class {
2583
2583
  * Copyright 2018 Google LLC
2584
2584
  * SPDX-License-Identifier: BSD-3-Clause
2585
2585
  */
2586
- const xr = "important", zo = " !" + xr, mt = ee(class extends De {
2586
+ const xr = "important", zo = " !" + xr, ut = ee(class extends De {
2587
2587
  constructor(r) {
2588
- if (super(r), r.type !== me.ATTRIBUTE || r.name !== "style" || r.strings?.length > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
2588
+ if (super(r), r.type !== be.ATTRIBUTE || r.name !== "style" || r.strings?.length > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
2589
2589
  }
2590
2590
  render(r) {
2591
2591
  return Object.keys(r).reduce(((t, i) => {
@@ -2605,7 +2605,7 @@ const xr = "important", zo = " !" + xr, mt = ee(class extends De {
2605
2605
  s.includes("-") || o ? i.setProperty(s, o ? e.slice(0, -11) : e, o ? xr : "") : i[s] = e;
2606
2606
  }
2607
2607
  }
2608
- return yt;
2608
+ return wt;
2609
2609
  }
2610
2610
  });
2611
2611
  var Ro = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, Dt = (r, t, i, s) => {
@@ -2644,11 +2644,11 @@ const hs = /* @__PURE__ */ new Map(), Le = (r) => {
2644
2644
  }
2645
2645
  setFormPublisherValue(s) {
2646
2646
  const e = this.getFormPublisher();
2647
- e && dt(e, this.name).set(s);
2647
+ e && pt(e, this.name).set(s);
2648
2648
  }
2649
2649
  getFormPublisherValue() {
2650
2650
  const s = this.getFormPublisher();
2651
- return s ? dt(s, this.name).get() : null;
2651
+ return s ? pt(s, this.name).get() : null;
2652
2652
  }
2653
2653
  /**
2654
2654
  * Mise en forme de la valeur fournie au formPublisher associé au composant
@@ -2680,13 +2680,13 @@ const hs = /* @__PURE__ */ new Map(), Le = (r) => {
2680
2680
  initPublisher() {
2681
2681
  let s = this.getFormPublisher();
2682
2682
  const e = this.hasAncestorAttribute("initFromPublisher") && this._name && this.getFormPublisherValue() ? this.getFormPublisherValue() : this.getAttribute("value");
2683
- this._name && this.publisher && dt(this.publisher, this._name).offAssign(
2683
+ this._name && this.publisher && pt(this.publisher, this._name).offAssign(
2684
2684
  this.onValueAssign
2685
- ), this._name && s && dt(s, this._name).offAssign(
2685
+ ), this._name && s && pt(s, this._name).offAssign(
2686
2686
  this.onFormValueAssign
2687
- ), super.initPublisher(), this.name || (this._name = this.getAttribute("name")), this.value || (this._value = this.getAttribute("value")), this.publisher && this._name && dt(this.publisher, this._name).onAssign(
2687
+ ), super.initPublisher(), this.name || (this._name = this.getAttribute("name")), this.value || (this._value = this.getAttribute("value")), this.publisher && this._name && pt(this.publisher, this._name).onAssign(
2688
2688
  this.onValueAssign
2689
- ), s = this.getFormPublisher(), this._name && s && (dt(s, this._name).onAssign(
2689
+ ), s = this.getFormPublisher(), this._name && s && (pt(s, this._name).onAssign(
2690
2690
  this.onFormValueAssign
2691
2691
  ), s.onFormInvalidate(this.onFormDataInValidate)), this.updateDataValue(), e && (this.value = e);
2692
2692
  }
@@ -2719,24 +2719,24 @@ const hs = /* @__PURE__ */ new Map(), Le = (r) => {
2719
2719
  this.addEventListener("keydown", (l) => {
2720
2720
  const c = l;
2721
2721
  if (!["ArrowDown", "ArrowUp"].includes(c.key)) return;
2722
- const h = "input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])", f = n?.filter((v) => {
2722
+ const h = "input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])", u = n?.filter((v) => {
2723
2723
  const b = v.shadowRoot?.querySelector(h);
2724
2724
  if (!b) return !1;
2725
2725
  const x = window.getComputedStyle(b);
2726
2726
  return x.display !== "none" && x.display !== "" && x.pointerEvents != "none" && x.visibility !== "hidden" && b.getBoundingClientRect().width > 0;
2727
2727
  });
2728
2728
  let d = null;
2729
- if (c.key == "ArrowDown" && f) {
2730
- const v = f.indexOf(this);
2731
- v == f.length - 1 ? d = f[0] : d = f[v + 1];
2732
- } else if (c.key == "ArrowUp" && f) {
2733
- const v = f.indexOf(this);
2734
- v == 0 ? d = f[f.length - 1] : d = f[v - 1];
2729
+ if (c.key == "ArrowDown" && u) {
2730
+ const v = u.indexOf(this);
2731
+ v == u.length - 1 ? d = u[0] : d = u[v + 1];
2732
+ } else if (c.key == "ArrowUp" && u) {
2733
+ const v = u.indexOf(this);
2734
+ v == 0 ? d = u[u.length - 1] : d = u[v - 1];
2735
2735
  }
2736
- const m = d?.shadowRoot?.querySelector(
2736
+ const g = d?.shadowRoot?.querySelector(
2737
2737
  h
2738
2738
  );
2739
- m && m.focus && (m.focus(), l.preventDefault(), l.stopPropagation());
2739
+ g && g.focus && (g.focus(), l.preventDefault(), l.stopPropagation());
2740
2740
  });
2741
2741
  }
2742
2742
  focus() {
@@ -2753,11 +2753,11 @@ const hs = /* @__PURE__ */ new Map(), Le = (r) => {
2753
2753
  this.value = null;
2754
2754
  }
2755
2755
  disconnectedCallback() {
2756
- this.unsetOnDisconnect() && this.unset(), super.disconnectedCallback(), this._name && this.publisher && dt(this.publisher, this._name).offAssign(
2756
+ this.unsetOnDisconnect() && this.unset(), super.disconnectedCallback(), this._name && this.publisher && pt(this.publisher, this._name).offAssign(
2757
2757
  this.onValueAssign
2758
2758
  );
2759
2759
  const s = this.getFormPublisher();
2760
- this._name && s && (dt(s, this._name).offAssign(
2760
+ this._name && s && (pt(s, this._name).offAssign(
2761
2761
  this.onFormValueAssign
2762
2762
  ), s.offFormInvalidate(this.onFormDataInValidate));
2763
2763
  }
@@ -2904,47 +2904,47 @@ function Ho() {
2904
2904
  (function(s, e) {
2905
2905
  return t !== null ? r.exports = e() : s.UrlPattern = e();
2906
2906
  })(qo, function() {
2907
- var s, e, o, n, l, c, h, f, d, m, v, b, x, C, E;
2907
+ var s, e, o, n, l, c, h, u, d, g, v, b, x, C, E;
2908
2908
  return d = function(p) {
2909
2909
  return p.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
2910
- }, h = function(p, u) {
2910
+ }, h = function(p, f) {
2911
2911
  var y, A, k;
2912
2912
  for (k = [], y = -1, A = p.length; ++y < A; )
2913
- k = k.concat(u(p[y]));
2913
+ k = k.concat(f(p[y]));
2914
2914
  return k;
2915
- }, C = function(p, u) {
2915
+ }, C = function(p, f) {
2916
2916
  var y, A, k;
2917
2917
  for (k = "", y = -1, A = p.length; ++y < A; )
2918
- k += u(p[y]);
2918
+ k += f(p[y]);
2919
2919
  return k;
2920
2920
  }, x = function(p) {
2921
2921
  return new RegExp(p.toString() + "|").exec("").length - 1;
2922
- }, v = function(p, u) {
2922
+ }, v = function(p, f) {
2923
2923
  var y, A, k, q, Y;
2924
2924
  for (q = {}, y = -1, k = p.length; ++y < k; )
2925
- A = p[y], Y = u[y], Y != null && (q[A] != null ? (Array.isArray(q[A]) || (q[A] = [q[A]]), q[A].push(Y)) : q[A] = Y);
2925
+ A = p[y], Y = f[y], Y != null && (q[A] != null ? (Array.isArray(q[A]) || (q[A] = [q[A]]), q[A].push(Y)) : q[A] = Y);
2926
2926
  return q;
2927
- }, s = {}, s.Result = function(p, u) {
2928
- this.value = p, this.rest = u;
2929
- }, s.Tagged = function(p, u) {
2930
- this.tag = p, this.value = u;
2931
- }, s.tag = function(p, u) {
2927
+ }, s = {}, s.Result = function(p, f) {
2928
+ this.value = p, this.rest = f;
2929
+ }, s.Tagged = function(p, f) {
2930
+ this.tag = p, this.value = f;
2931
+ }, s.tag = function(p, f) {
2932
2932
  return function(y) {
2933
2933
  var A, k;
2934
- if (A = u(y), A != null)
2934
+ if (A = f(y), A != null)
2935
2935
  return k = new s.Tagged(p, A.value), new s.Result(k, A.rest);
2936
2936
  };
2937
2937
  }, s.regex = function(p) {
2938
- return function(u) {
2938
+ return function(f) {
2939
2939
  var y, A;
2940
- if (y = p.exec(u), y != null)
2941
- return A = y[0], new s.Result(A, u.slice(A.length));
2940
+ if (y = p.exec(f), y != null)
2941
+ return A = y[0], new s.Result(A, f.slice(A.length));
2942
2942
  };
2943
2943
  }, s.sequence = function() {
2944
2944
  var p;
2945
- return p = 1 <= arguments.length ? i.call(arguments, 0) : [], function(u) {
2945
+ return p = 1 <= arguments.length ? i.call(arguments, 0) : [], function(f) {
2946
2946
  var y, A, k, q, Y, ot;
2947
- for (y = -1, A = p.length, ot = [], q = u; ++y < A; ) {
2947
+ for (y = -1, A = p.length, ot = [], q = f; ++y < A; ) {
2948
2948
  if (k = p[y], Y = k(q), Y == null)
2949
2949
  return;
2950
2950
  ot.push(Y.value), q = Y.rest;
@@ -2952,59 +2952,59 @@ function Ho() {
2952
2952
  return new s.Result(ot, q);
2953
2953
  };
2954
2954
  }, s.pick = function() {
2955
- var p, u;
2956
- return p = arguments[0], u = 2 <= arguments.length ? i.call(arguments, 1) : [], function(y) {
2955
+ var p, f;
2956
+ return p = arguments[0], f = 2 <= arguments.length ? i.call(arguments, 1) : [], function(y) {
2957
2957
  var A, k;
2958
- if (k = s.sequence.apply(s, u)(y), k != null)
2958
+ if (k = s.sequence.apply(s, f)(y), k != null)
2959
2959
  return A = k.value, k.value = A[p], k;
2960
2960
  };
2961
2961
  }, s.string = function(p) {
2962
- var u;
2963
- return u = p.length, function(y) {
2964
- if (y.slice(0, u) === p)
2965
- return new s.Result(p, y.slice(u));
2962
+ var f;
2963
+ return f = p.length, function(y) {
2964
+ if (y.slice(0, f) === p)
2965
+ return new s.Result(p, y.slice(f));
2966
2966
  };
2967
2967
  }, s.lazy = function(p) {
2968
- var u;
2969
- return u = null, function(y) {
2970
- return u == null && (u = p()), u(y);
2968
+ var f;
2969
+ return f = null, function(y) {
2970
+ return f == null && (f = p()), f(y);
2971
2971
  };
2972
- }, s.baseMany = function(p, u, y, A, k) {
2972
+ }, s.baseMany = function(p, f, y, A, k) {
2973
2973
  var q, Y, ot, Ie;
2974
- for (ot = k, Ie = y ? "" : []; !(u != null && (q = u(ot), q != null) || (Y = p(ot), Y == null)); )
2974
+ for (ot = k, Ie = y ? "" : []; !(f != null && (q = f(ot), q != null) || (Y = p(ot), Y == null)); )
2975
2975
  y ? Ie += Y.value : Ie.push(Y.value), ot = Y.rest;
2976
2976
  if (!(A && Ie.length === 0))
2977
2977
  return new s.Result(Ie, ot);
2978
2978
  }, s.many1 = function(p) {
2979
- return function(u) {
2980
- return s.baseMany(p, null, !1, !0, u);
2979
+ return function(f) {
2980
+ return s.baseMany(p, null, !1, !0, f);
2981
2981
  };
2982
- }, s.concatMany1Till = function(p, u) {
2982
+ }, s.concatMany1Till = function(p, f) {
2983
2983
  return function(y) {
2984
- return s.baseMany(p, u, !0, !0, y);
2984
+ return s.baseMany(p, f, !0, !0, y);
2985
2985
  };
2986
2986
  }, s.firstChoice = function() {
2987
2987
  var p;
2988
- return p = 1 <= arguments.length ? i.call(arguments, 0) : [], function(u) {
2988
+ return p = 1 <= arguments.length ? i.call(arguments, 0) : [], function(f) {
2989
2989
  var y, A, k, q;
2990
2990
  for (y = -1, A = p.length; ++y < A; )
2991
- if (k = p[y], q = k(u), q != null)
2991
+ if (k = p[y], q = k(f), q != null)
2992
2992
  return q;
2993
2993
  };
2994
2994
  }, b = function(p) {
2995
- var u;
2996
- return u = {}, u.wildcard = s.tag("wildcard", s.string(p.wildcardChar)), u.optional = s.tag("optional", s.pick(1, s.string(p.optionalSegmentStartChar), s.lazy(function() {
2997
- return u.pattern;
2998
- }), s.string(p.optionalSegmentEndChar))), u.name = s.regex(new RegExp("^[" + p.segmentNameCharset + "]+")), u.named = s.tag("named", s.pick(1, s.string(p.segmentNameStartChar), s.lazy(function() {
2999
- return u.name;
3000
- }))), u.escapedChar = s.pick(1, s.string(p.escapeChar), s.regex(/^./)), u.static = s.tag("static", s.concatMany1Till(s.firstChoice(s.lazy(function() {
3001
- return u.escapedChar;
3002
- }), s.regex(/^./)), s.firstChoice(s.string(p.segmentNameStartChar), s.string(p.optionalSegmentStartChar), s.string(p.optionalSegmentEndChar), u.wildcard))), u.token = s.lazy(function() {
3003
- return s.firstChoice(u.wildcard, u.optional, u.named, u.static);
3004
- }), u.pattern = s.many1(s.lazy(function() {
3005
- return u.token;
3006
- })), u;
3007
- }, f = {
2995
+ var f;
2996
+ return f = {}, f.wildcard = s.tag("wildcard", s.string(p.wildcardChar)), f.optional = s.tag("optional", s.pick(1, s.string(p.optionalSegmentStartChar), s.lazy(function() {
2997
+ return f.pattern;
2998
+ }), s.string(p.optionalSegmentEndChar))), f.name = s.regex(new RegExp("^[" + p.segmentNameCharset + "]+")), f.named = s.tag("named", s.pick(1, s.string(p.segmentNameStartChar), s.lazy(function() {
2999
+ return f.name;
3000
+ }))), f.escapedChar = s.pick(1, s.string(p.escapeChar), s.regex(/^./)), f.static = s.tag("static", s.concatMany1Till(s.firstChoice(s.lazy(function() {
3001
+ return f.escapedChar;
3002
+ }), s.regex(/^./)), s.firstChoice(s.string(p.segmentNameStartChar), s.string(p.optionalSegmentStartChar), s.string(p.optionalSegmentEndChar), f.wildcard))), f.token = s.lazy(function() {
3003
+ return s.firstChoice(f.wildcard, f.optional, f.named, f.static);
3004
+ }), f.pattern = s.many1(s.lazy(function() {
3005
+ return f.token;
3006
+ })), f;
3007
+ }, u = {
3008
3008
  escapeChar: "\\",
3009
3009
  segmentNameStartChar: ":",
3010
3010
  segmentValueCharset: "a-zA-Z0-9-_~ %",
@@ -3012,23 +3012,23 @@ function Ho() {
3012
3012
  optionalSegmentStartChar: "(",
3013
3013
  optionalSegmentEndChar: ")",
3014
3014
  wildcardChar: "*"
3015
- }, c = function(p, u) {
3015
+ }, c = function(p, f) {
3016
3016
  if (Array.isArray(p))
3017
3017
  return C(p, function(y) {
3018
- return c(y, u);
3018
+ return c(y, f);
3019
3019
  });
3020
3020
  switch (p.tag) {
3021
3021
  case "wildcard":
3022
3022
  return "(.*?)";
3023
3023
  case "named":
3024
- return "([" + u + "]+)";
3024
+ return "([" + f + "]+)";
3025
3025
  case "static":
3026
3026
  return d(p.value);
3027
3027
  case "optional":
3028
- return "(?:" + c(p.value, u) + ")?";
3028
+ return "(?:" + c(p.value, f) + ")?";
3029
3029
  }
3030
- }, l = function(p, u) {
3031
- return u == null && (u = f.segmentValueCharset), "^" + c(p, u) + "$";
3030
+ }, l = function(p, f) {
3031
+ return f == null && (f = u.segmentValueCharset), "^" + c(p, f) + "$";
3032
3032
  }, n = function(p) {
3033
3033
  if (Array.isArray(p))
3034
3034
  return h(p, n);
@@ -3042,53 +3042,53 @@ function Ho() {
3042
3042
  case "optional":
3043
3043
  return n(p.value);
3044
3044
  }
3045
- }, m = function(p, u, y, A) {
3045
+ }, g = function(p, f, y, A) {
3046
3046
  var k, q, Y, ot;
3047
- if (A == null && (A = !1), ot = p[u], ot == null) {
3047
+ if (A == null && (A = !1), ot = p[f], ot == null) {
3048
3048
  if (A)
3049
- throw new Error("no values provided for key `" + u + "`");
3049
+ throw new Error("no values provided for key `" + f + "`");
3050
3050
  return;
3051
3051
  }
3052
- if (k = y[u] || 0, q = Array.isArray(ot) ? ot.length - 1 : 0, k > q) {
3052
+ if (k = y[f] || 0, q = Array.isArray(ot) ? ot.length - 1 : 0, k > q) {
3053
3053
  if (A)
3054
- throw new Error("too few values provided for key `" + u + "`");
3054
+ throw new Error("too few values provided for key `" + f + "`");
3055
3055
  return;
3056
3056
  }
3057
- return Y = Array.isArray(ot) ? ot[k] : ot, A && (y[u] = k + 1), Y;
3058
- }, o = function(p, u, y) {
3057
+ return Y = Array.isArray(ot) ? ot[k] : ot, A && (y[f] = k + 1), Y;
3058
+ }, o = function(p, f, y) {
3059
3059
  var A, k;
3060
3060
  if (Array.isArray(p)) {
3061
3061
  for (A = -1, k = p.length; ++A < k; )
3062
- if (o(p[A], u, y))
3062
+ if (o(p[A], f, y))
3063
3063
  return !0;
3064
3064
  return !1;
3065
3065
  }
3066
3066
  switch (p.tag) {
3067
3067
  case "wildcard":
3068
- return m(u, "_", y, !1) != null;
3068
+ return g(f, "_", y, !1) != null;
3069
3069
  case "named":
3070
- return m(u, p.value, y, !1) != null;
3070
+ return g(f, p.value, y, !1) != null;
3071
3071
  case "static":
3072
3072
  return !1;
3073
3073
  case "optional":
3074
- return o(p.value, u, y);
3074
+ return o(p.value, f, y);
3075
3075
  }
3076
- }, E = function(p, u, y) {
3076
+ }, E = function(p, f, y) {
3077
3077
  if (Array.isArray(p))
3078
3078
  return C(p, function(A) {
3079
- return E(A, u, y);
3079
+ return E(A, f, y);
3080
3080
  });
3081
3081
  switch (p.tag) {
3082
3082
  case "wildcard":
3083
- return m(u, "_", y, !0);
3083
+ return g(f, "_", y, !0);
3084
3084
  case "named":
3085
- return m(u, p.value, y, !0);
3085
+ return g(f, p.value, y, !0);
3086
3086
  case "static":
3087
3087
  return p.value;
3088
3088
  case "optional":
3089
- return o(p.value, u, y) ? E(p.value, u, y) : "";
3089
+ return o(p.value, f, y) ? E(p.value, f, y) : "";
3090
3090
  }
3091
- }, e = function(p, u) {
3091
+ }, e = function(p, f) {
3092
3092
  var y, A, k, q, Y;
3093
3093
  if (p instanceof e) {
3094
3094
  this.isRegex = p.isRegex, this.regex = p.regex, this.ast = p.ast, this.names = p.names;
@@ -3097,12 +3097,12 @@ function Ho() {
3097
3097
  if (this.isRegex = p instanceof RegExp, !(typeof p == "string" || this.isRegex))
3098
3098
  throw new TypeError("argument must be a regex or a string");
3099
3099
  if (this.isRegex) {
3100
- if (this.regex = p, u != null) {
3101
- if (!Array.isArray(u))
3100
+ if (this.regex = p, f != null) {
3101
+ if (!Array.isArray(f))
3102
3102
  throw new Error("if first argument is a regex the second argument may be an array of group names but you provided something else");
3103
- if (y = x(this.regex), u.length !== y)
3104
- throw new Error("regex contains " + y + " groups but array of group names contains " + u.length);
3105
- this.names = u;
3103
+ if (y = x(this.regex), f.length !== y)
3104
+ throw new Error("regex contains " + y + " groups but array of group names contains " + f.length);
3105
+ this.names = f;
3106
3106
  }
3107
3107
  return;
3108
3108
  }
@@ -3111,33 +3111,33 @@ function Ho() {
3111
3111
  if (Y = p.replace(/\s+/g, ""), Y !== p)
3112
3112
  throw new Error("argument must not contain whitespace");
3113
3113
  if (A = {
3114
- escapeChar: u?.escapeChar || f.escapeChar,
3115
- segmentNameStartChar: u?.segmentNameStartChar || f.segmentNameStartChar,
3116
- segmentNameCharset: u?.segmentNameCharset || f.segmentNameCharset,
3117
- segmentValueCharset: u?.segmentValueCharset || f.segmentValueCharset,
3118
- optionalSegmentStartChar: u?.optionalSegmentStartChar || f.optionalSegmentStartChar,
3119
- optionalSegmentEndChar: u?.optionalSegmentEndChar || f.optionalSegmentEndChar,
3120
- wildcardChar: u?.wildcardChar || f.wildcardChar
3114
+ escapeChar: f?.escapeChar || u.escapeChar,
3115
+ segmentNameStartChar: f?.segmentNameStartChar || u.segmentNameStartChar,
3116
+ segmentNameCharset: f?.segmentNameCharset || u.segmentNameCharset,
3117
+ segmentValueCharset: f?.segmentValueCharset || u.segmentValueCharset,
3118
+ optionalSegmentStartChar: f?.optionalSegmentStartChar || u.optionalSegmentStartChar,
3119
+ optionalSegmentEndChar: f?.optionalSegmentEndChar || u.optionalSegmentEndChar,
3120
+ wildcardChar: f?.wildcardChar || u.wildcardChar
3121
3121
  }, q = b(A), k = q.pattern(p), k == null)
3122
3122
  throw new Error("couldn't parse pattern");
3123
3123
  if (k.rest !== "")
3124
3124
  throw new Error("could only partially parse pattern");
3125
3125
  this.ast = k.value, this.regex = new RegExp(l(this.ast, A.segmentValueCharset)), this.names = n(this.ast);
3126
3126
  }, e.prototype.match = function(p) {
3127
- var u, y;
3128
- return y = this.regex.exec(p), y == null ? null : (u = y.slice(1), this.names ? v(this.names, u) : u);
3127
+ var f, y;
3128
+ return y = this.regex.exec(p), y == null ? null : (f = y.slice(1), this.names ? v(this.names, f) : f);
3129
3129
  }, e.prototype.stringify = function(p) {
3130
3130
  if (p == null && (p = {}), this.isRegex)
3131
3131
  throw new Error("can't stringify patterns generated from a regex");
3132
3132
  if (p !== Object(p))
3133
3133
  throw new Error("argument must be an object or undefined");
3134
3134
  return E(this.ast, p, {});
3135
- }, e.escapeForRegex = d, e.concatMap = h, e.stringConcatMap = C, e.regexGroupCount = x, e.keysAndValuesToObject = v, e.P = s, e.newParser = b, e.defaultOptions = f, e.astNodeToRegexString = l, e.astNodeToNames = n, e.getParam = m, e.astNodeContainsSegmentsForProvidedParams = o, e.stringify = E, e;
3135
+ }, e.escapeForRegex = d, e.concatMap = h, e.stringConcatMap = C, e.regexGroupCount = x, e.keysAndValuesToObject = v, e.P = s, e.newParser = b, e.defaultOptions = u, e.astNodeToRegexString = l, e.astNodeToNames = n, e.getParam = g, e.astNodeContainsSegmentsForProvidedParams = o, e.stringify = E, e;
3136
3136
  });
3137
3137
  })(Ue, Ue.exports)), Ue.exports;
3138
3138
  }
3139
3139
  var Wo = Ho();
3140
- const Bt = /* @__PURE__ */ Bo(Wo), Ko = Rr, Yo = Vo, Xo = As, Zo = us, Xt = J, Go = et, Je = tt, Qo = He, st = T, Jo = $e, tn = Bt;
3140
+ const qt = /* @__PURE__ */ Bo(Wo), Ko = Rr, Yo = Vo, Xo = As, Zo = us, Xt = J, Go = et, Je = tt, Qo = He, st = T, Jo = Ce, tn = qt;
3141
3141
  window["concorde-utils"] = window["concorde-utils"] || {};
3142
3142
  window["concorde-utils"] = {
3143
3143
  Utils: Ko,
@@ -3399,11 +3399,11 @@ let I = class extends wi(Le(Z(w))) {
3399
3399
  justifyContent: this.justify,
3400
3400
  align: this.align,
3401
3401
  minWidth: this.minWidth
3402
- }, t = g`
3402
+ }, t = m`
3403
3403
  <button
3404
3404
  part="button"
3405
3405
  class=${this.hasPrefix || this.hasSuffix ? "has-prefix-or-suffix" : ""}
3406
- style=${mt(r)}
3406
+ style=${ut(r)}
3407
3407
  aria-controls=${$(this.ariaControls)}
3408
3408
  aria-expanded=${$(this.sonicAriaExpanded)}
3409
3409
  aria-label=${$(this.ariaLabel)}
@@ -3423,10 +3423,10 @@ let I = class extends wi(Le(Z(w))) {
3423
3423
  part="suffix"
3424
3424
  name="suffix"
3425
3425
  ></slot>
3426
- ${this.loading == !0 ? g`<sonic-icon name="loader" class="loader"></sonic-icon>` : ""}
3426
+ ${this.loading == !0 ? m`<sonic-icon name="loader" class="loader"></sonic-icon>` : ""}
3427
3427
  </button>
3428
3428
  `;
3429
- return this.href ? g`<a
3429
+ return this.href ? m`<a
3430
3430
  href="${this.href}"
3431
3431
  download=${$(this.download)}
3432
3432
  target=${$(this.target)}
@@ -3434,7 +3434,7 @@ let I = class extends wi(Le(Z(w))) {
3434
3434
  aria-labelledby=${$(this.ariaLabelledby)}
3435
3435
  @click=${this.pushState || this.goBack !== null ? this.handleNavigation : null}
3436
3436
  >${t}</a
3437
- >` : g`${t}`;
3437
+ >` : m`${t}`;
3438
3438
  }
3439
3439
  onSlotChange() {
3440
3440
  this.hasPrefix = !!this.prefixes?.length, this.hasSuffix = !!this.suffixes?.length;
@@ -3902,7 +3902,7 @@ const Xi = (r, t, i) => {
3902
3902
  return s;
3903
3903
  }, Ls = ee(class extends De {
3904
3904
  constructor(r) {
3905
- if (super(r), r.type !== me.CHILD) throw Error("repeat() can only be used in text expressions");
3905
+ if (super(r), r.type !== be.CHILD) throw Error("repeat() can only be used in text expressions");
3906
3906
  }
3907
3907
  dt(r, t, i) {
3908
3908
  let s;
@@ -3919,31 +3919,31 @@ const Xi = (r, t, i) => {
3919
3919
  const e = vo(r), { values: o, keys: n } = this.dt(t, i, s);
3920
3920
  if (!Array.isArray(e)) return this.ut = n, o;
3921
3921
  const l = this.ut ??= [], c = [];
3922
- let h, f, d = 0, m = e.length - 1, v = 0, b = o.length - 1;
3923
- for (; d <= m && v <= b; ) if (e[d] === null) d++;
3924
- else if (e[m] === null) m--;
3922
+ let h, u, d = 0, g = e.length - 1, v = 0, b = o.length - 1;
3923
+ for (; d <= g && v <= b; ) if (e[d] === null) d++;
3924
+ else if (e[g] === null) g--;
3925
3925
  else if (l[d] === n[v]) c[v] = ne(e[d], o[v]), d++, v++;
3926
- else if (l[m] === n[b]) c[b] = ne(e[m], o[b]), m--, b--;
3926
+ else if (l[g] === n[b]) c[b] = ne(e[g], o[b]), g--, b--;
3927
3927
  else if (l[d] === n[b]) c[b] = ne(e[d], o[b]), Fe(r, c[b + 1], e[d]), d++, b--;
3928
- else if (l[m] === n[v]) c[v] = ne(e[m], o[v]), Fe(r, e[d], e[m]), m--, v++;
3929
- else if (h === void 0 && (h = Xi(n, v, b), f = Xi(l, d, m)), h.has(l[d])) if (h.has(l[m])) {
3930
- const x = f.get(n[v]), C = x !== void 0 ? e[x] : null;
3928
+ else if (l[g] === n[v]) c[v] = ne(e[g], o[v]), Fe(r, e[d], e[g]), g--, v++;
3929
+ else if (h === void 0 && (h = Xi(n, v, b), u = Xi(l, d, g)), h.has(l[d])) if (h.has(l[g])) {
3930
+ const x = u.get(n[v]), C = x !== void 0 ? e[x] : null;
3931
3931
  if (C === null) {
3932
3932
  const E = Fe(r, e[d]);
3933
3933
  ne(E, o[v]), c[v] = E;
3934
3934
  } else c[v] = ne(C, o[v]), Fe(r, e[d], C), e[x] = null;
3935
3935
  v++;
3936
- } else zs(e[m]), m--;
3936
+ } else zs(e[g]), g--;
3937
3937
  else zs(e[d]), d++;
3938
3938
  for (; v <= b; ) {
3939
3939
  const x = Fe(r, c[b + 1]);
3940
3940
  ne(x, o[v]), c[v++] = x;
3941
3941
  }
3942
- for (; d <= m; ) {
3942
+ for (; d <= g; ) {
3943
3943
  const x = e[d++];
3944
3944
  x !== null && zs(x);
3945
3945
  }
3946
- return this.ut = n, bo(r, c), yt;
3946
+ return this.ut = n, bo(r, c), wt;
3947
3947
  }
3948
3948
  }), an = /* @__PURE__ */ new WeakMap();
3949
3949
  let Zi = 0;
@@ -3972,7 +3972,7 @@ const Us = /* @__PURE__ */ new Map(), Gi = /* @__PURE__ */ new WeakSet(), Qi = (
3972
3972
  } }, ln = { duration: 333, easing: "ease-in-out" }, cn = ["left", "top", "width", "height", "opacity", "color", "background"], er = /* @__PURE__ */ new WeakMap();
3973
3973
  class hn extends vi {
3974
3974
  constructor(t) {
3975
- if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === me.CHILD) throw Error("The `animate` directive must be used in attribute position.");
3975
+ if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === be.CHILD) throw Error("The `animate` directive must be used in attribute position.");
3976
3976
  this.createFinished();
3977
3977
  }
3978
3978
  createFinished() {
@@ -4100,13 +4100,13 @@ class hn extends vi {
4100
4100
  let n = !1;
4101
4101
  const l = {};
4102
4102
  for (const c in i) {
4103
- const h = t[c], f = i[c];
4103
+ const h = t[c], u = i[c];
4104
4104
  if (c in Vs) {
4105
4105
  const d = Vs[c];
4106
- if (h === void 0 || f === void 0) continue;
4107
- const m = d(h, f);
4108
- m.transform !== void 0 && (l[c] = m.value, n = !0, e.transform = `${e.transform ?? ""} ${m.transform}`, m.overrideFrom !== void 0 && Object.assign(e, m.overrideFrom));
4109
- } else h !== f && h !== void 0 && f !== void 0 && (n = !0, e[c] = h, o[c] = f);
4106
+ if (h === void 0 || u === void 0) continue;
4107
+ const g = d(h, u);
4108
+ g.transform !== void 0 && (l[c] = g.value, n = !0, e.transform = `${e.transform ?? ""} ${g.transform}`, g.overrideFrom !== void 0 && Object.assign(e, g.overrideFrom));
4109
+ } else h !== u && h !== void 0 && u !== void 0 && (n = !0, e[c] = h, o[c] = u);
4110
4110
  }
4111
4111
  return e.transformOrigin = o.transformOrigin = s ? "center center" : "top left", this.animatingProperties = l, n ? [e, o] : void 0;
4112
4112
  }
@@ -4198,7 +4198,7 @@ let sr = !1;
4198
4198
  function fn() {
4199
4199
  sr || (sr = !0, vs.custom.url = document.querySelector("[customIconLibraryPath]")?.getAttribute("customIconLibraryPath") || "", vs.custom.defaultPrefix = document.querySelector("[customIconDefaultPrefix]")?.getAttribute("customIconDefaultPrefix") || "");
4200
4200
  }
4201
- const ir = sessionStorage.getItem("sonicIconsCache"), Kt = ir ? JSON.parse(ir) : { icons: {}, names: [] }, gn = 100, Ni = class Ni {
4201
+ const ir = sessionStorage.getItem("sonicIconsCache"), Vt = ir ? JSON.parse(ir) : { icons: {}, names: [] }, mn = 100, Ni = class Ni {
4202
4202
  };
4203
4203
  Ni.default = {
4204
4204
  get: async (t) => {
@@ -4211,48 +4211,52 @@ Ni.default = {
4211
4211
  const c = n + "-" + s;
4212
4212
  if (l[c]) return z(l[c]);
4213
4213
  const h = (o.url || "").replace("$prefix", n).replace("$name", s);
4214
- if (Kt.icons[h])
4215
- return l[c] = Kt.icons[h], z(Kt.icons[h]);
4214
+ if (Vt.icons[h]) {
4215
+ const d = Vt.icons[h];
4216
+ if (/^\s*<svg[\s>]/i.test(d || ""))
4217
+ return l[c] = d, z(d);
4218
+ delete Vt.icons[h];
4219
+ }
4216
4220
  if (!ds.has(h)) {
4217
- const d = new Promise(async (m) => {
4221
+ const d = new Promise(async (g) => {
4218
4222
  try {
4219
4223
  const v = await fetch(h);
4220
4224
  if (!v.ok) {
4221
- m("");
4225
+ g("");
4222
4226
  return;
4223
4227
  }
4224
4228
  try {
4225
4229
  const b = v.headers.get("content-type") || "";
4226
4230
  if (!b.includes("image/svg+xml") && !b.includes("svg")) {
4227
- m("");
4231
+ g("");
4228
4232
  return;
4229
4233
  }
4230
4234
  const x = await v.text(), C = /^\s*<svg[\s>]/i.test(x);
4231
- m(C ? x : "");
4235
+ g(C ? x : "");
4232
4236
  } catch {
4233
- m(null);
4237
+ g("");
4234
4238
  }
4235
4239
  } catch {
4236
- Oo(), m(null);
4240
+ Oo(), g("");
4237
4241
  }
4238
4242
  });
4239
4243
  ds.set(h, d);
4240
4244
  }
4241
- const f = await ds.get(h);
4242
- if (ds.delete(h), l[c] = f || "", Kt.icons[h] = f || "", Kt.names.length > gn) {
4243
- const d = Kt.names.shift();
4244
- delete Kt.icons[d];
4245
+ const u = await ds.get(h);
4246
+ if (ds.delete(h), l[c] = u || "", u && /^\s*<svg[\s>]/i.test(u) && (Vt.icons[h] = u, Vt.names.push(h)), Vt.names.length > mn) {
4247
+ const d = Vt.names.shift();
4248
+ delete Vt.icons[d];
4245
4249
  }
4246
- return sessionStorage.setItem("sonicIconsCache", JSON.stringify(Kt)), z(f);
4250
+ return sessionStorage.setItem("sonicIconsCache", JSON.stringify(Vt)), u ? z(u) : "";
4247
4251
  }
4248
4252
  return z(e.core[t.name] || "");
4249
4253
  }
4250
4254
  };
4251
4255
  let Ks = Ni;
4252
- var mn = Object.defineProperty, bn = Object.getOwnPropertyDescriptor, ts = (r, t, i, s) => {
4256
+ var gn = Object.defineProperty, bn = Object.getOwnPropertyDescriptor, ts = (r, t, i, s) => {
4253
4257
  for (var e = s > 1 ? void 0 : s ? bn(t, i) : t, o = r.length - 1, n; o >= 0; o--)
4254
4258
  (n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
4255
- return s && e && mn(t, i, e), e;
4259
+ return s && e && gn(t, i, e), e;
4256
4260
  };
4257
4261
  const vn = "sonic-icon";
4258
4262
  let de = class extends w {
@@ -4388,7 +4392,7 @@ let _t = class extends w {
4388
4392
  if (JSON.parse(r)[this.id])
4389
4393
  return S;
4390
4394
  }
4391
- return this.visible ? g`<div
4395
+ return this.visible ? m`<div
4392
4396
  class="sonic-toast ${this.status} ${this.ghost ? "ghost" : ""}"
4393
4397
  >
4394
4398
  <button
@@ -4402,14 +4406,14 @@ let _t = class extends w {
4402
4406
  class="sonic-toast-content custom-scroll"
4403
4407
  style="max-height: ${this.maxHeight} ;"
4404
4408
  >
4405
- ${this.status && g`<sonic-icon
4409
+ ${this.status && m`<sonic-icon
4406
4410
  name=${_n[this.status]}
4407
4411
  class="sonic-toast-icon"
4408
4412
  size="2xl"
4409
4413
  ></sonic-icon>`}
4410
4414
 
4411
4415
  <div class="sonic-toast-text">
4412
- ${this.title ? g`<div class="sonic-toast-title">${this.title}</div>` : ""}
4416
+ ${this.title ? m`<div class="sonic-toast-title">${this.title}</div>` : ""}
4413
4417
  ${this.text ? z(this.text) : ""}
4414
4418
  <slot></slot>
4415
4419
  </div>
@@ -4793,15 +4797,15 @@ var Sn = Object.defineProperty, An = Object.getOwnPropertyDescriptor, ss = (r, t
4793
4797
  return s && e && Sn(t, i, e), e;
4794
4798
  };
4795
4799
  const kn = "sonic-theme";
4796
- let vt = class extends w {
4800
+ let yt = class extends w {
4797
4801
  constructor() {
4798
- super(), this.background = !1, this.color = !1, this.font = !1, vt.instance = this;
4802
+ super(), this.background = !1, this.color = !1, this.font = !1, yt.instance = this;
4799
4803
  }
4800
4804
  /**
4801
4805
  * retourne le conteneur de tout ce qui pop : popups / modale / tooltip? / dropdown / ...
4802
4806
  */
4803
4807
  static getPopContainer() {
4804
- return vt.instance || document.body;
4808
+ return yt.instance || document.body;
4805
4809
  }
4806
4810
  connectedCallback() {
4807
4811
  super.connectedCallback(), window.addEventListener("message", (r) => this.receiveMessage(r), !1), window.dispatchEvent(new CustomEvent("SonicThemeReady")), this.postCSSVars();
@@ -4832,7 +4836,7 @@ let vt = class extends w {
4832
4836
  }
4833
4837
  getCssVariables() {
4834
4838
  const r = [], t = [
4835
- ...vt.styles.map((e) => e.styleSheet),
4839
+ ...yt.styles.map((e) => e.styleSheet),
4836
4840
  ...Array.from(document.styleSheets)
4837
4841
  ];
4838
4842
  for (const e of t)
@@ -4852,10 +4856,10 @@ let vt = class extends w {
4852
4856
  return r.forEach((e) => s[e] = i.getPropertyValue(e)), s;
4853
4857
  }
4854
4858
  render() {
4855
- return g`<slot></slot>`;
4859
+ return m`<slot></slot>`;
4856
4860
  }
4857
4861
  };
4858
- vt.styles = [
4862
+ yt.styles = [
4859
4863
  $n,
4860
4864
  Cn,
4861
4865
  Pn,
@@ -4895,19 +4899,19 @@ vt.styles = [
4895
4899
  ];
4896
4900
  ss([
4897
4901
  a({ type: String, reflect: !0 })
4898
- ], vt.prototype, "theme", 2);
4902
+ ], yt.prototype, "theme", 2);
4899
4903
  ss([
4900
4904
  a({ type: Boolean, reflect: !0 })
4901
- ], vt.prototype, "background", 2);
4905
+ ], yt.prototype, "background", 2);
4902
4906
  ss([
4903
4907
  a({ type: Boolean, reflect: !0 })
4904
- ], vt.prototype, "color", 2);
4908
+ ], yt.prototype, "color", 2);
4905
4909
  ss([
4906
4910
  a({ type: Boolean, reflect: !0 })
4907
- ], vt.prototype, "font", 2);
4908
- vt = ss([
4911
+ ], yt.prototype, "font", 2);
4912
+ yt = ss([
4909
4913
  _(kn)
4910
- ], vt);
4914
+ ], yt);
4911
4915
  var On = Object.defineProperty, Dn = Object.getOwnPropertyDescriptor, Pr = (r, t, i, s) => {
4912
4916
  for (var e = s > 1 ? void 0 : s ? Dn(t, i) : t, o = r.length - 1, n; o >= 0; o--)
4913
4917
  (n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
@@ -4939,11 +4943,11 @@ let O = class extends w {
4939
4943
  zIndex: "10000",
4940
4944
  maxWidth: "64ch",
4941
4945
  flexDirection: "column-reverse"
4942
- }), O.handleExistingToastDelegation(), this.toasts ? g`<div aria-live="polite" style=${mt(i)}>
4946
+ }), O.handleExistingToastDelegation(), this.toasts ? m`<div aria-live="polite" style=${ut(i)}>
4943
4947
  ${Ls(
4944
4948
  this.toasts,
4945
4949
  (s) => s.id,
4946
- (s) => g`
4950
+ (s) => m`
4947
4951
  <sonic-toast-item
4948
4952
  maxHeight=${t ? "none" : "10rem"}
4949
4953
  status=${$(s.status)}
@@ -5013,7 +5017,7 @@ let O = class extends w {
5013
5017
  ));
5014
5018
  }
5015
5019
  static getInstance() {
5016
- return O.instance || (O.instance = document.createElement("sonic-toast"), vt.getPopContainer().prepend(O.instance)), O.instance;
5020
+ return O.instance || (O.instance = document.createElement("sonic-toast"), yt.getPopContainer().prepend(O.instance)), O.instance;
5017
5021
  }
5018
5022
  static add(t) {
5019
5023
  if (O.delegateToasts) {
@@ -5134,7 +5138,7 @@ const _i = (r, t) => {
5134
5138
  * Un Toast est affiché si le chargement échoue
5135
5139
  */
5136
5140
  async _fetchData() {
5137
- if (this.requestUpdate(), !this.isFetchEnabled || (this.api = new $e(this.getApiConfiguration()), !this.api) || (this.dispatchEvent(new CustomEvent("loading", { detail: this })), this.getAttribute("localStorage") === "enabled" && await st.getInstance().isLocalStrorageReady, !this.isConnected)) return;
5141
+ if (this.requestUpdate(), !this.isFetchEnabled || (this.api = new Ce(this.getApiConfiguration()), !this.api) || (this.dispatchEvent(new CustomEvent("loading", { detail: this })), this.getAttribute("localStorage") === "enabled" && await st.getInstance().isLocalStrorageReady, !this.isConnected)) return;
5138
5142
  const e = st.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();
5139
5143
  this.isLoading = !0, tt.isObject(this.props) && Object.keys(this.props || {}).length > 0 && this.isFirstLoad && window.requestAnimationFrame(() => {
5140
5144
  this.dispatchEvent(new CustomEvent("load", { detail: this })), this.isFirstLoad = !1, this.isLoading = !1;
@@ -5289,10 +5293,10 @@ window["concorde-mixins"] = {
5289
5293
  */
5290
5294
  const Et = ee(class extends De {
5291
5295
  constructor(r) {
5292
- if (super(r), r.type !== me.CHILD) throw Error("templateContent can only be used in child bindings");
5296
+ if (super(r), r.type !== be.CHILD) throw Error("templateContent can only be used in child bindings");
5293
5297
  }
5294
5298
  render(r) {
5295
- return this.vt === r ? yt : (this.vt = r, document.importNode(r.content, !0));
5299
+ return this.vt === r ? wt : (this.vt = r, document.importNode(r.content, !0));
5296
5300
  }
5297
5301
  });
5298
5302
  var Un = Object.defineProperty, Vn = Object.getOwnPropertyDescriptor, Ar = (r, t, i, s) => {
@@ -5305,16 +5309,16 @@ let ys = class extends _i(Z(xi(w))) {
5305
5309
  renderLoader() {
5306
5310
  if (!(this.isLoading && this.loader !== void 0)) return S;
5307
5311
  const r = this.loader === !0 || this.loader === "" ? "fixed" : this.loader;
5308
- return g`<sonic-loader mode=${r}></sonic-loader>`;
5312
+ return m`<sonic-loader mode=${r}></sonic-loader>`;
5309
5313
  }
5310
5314
  renderSkeleton() {
5311
5315
  const r = this.templateParts.skeleton;
5312
5316
  return this.isLoading && r ? Et(r) : S;
5313
5317
  }
5314
5318
  render() {
5315
- return g`
5319
+ return m`
5316
5320
  ${this.renderSkeleton()} ${this.renderLoader()}
5317
- ${this.isLoading ? S : g`<slot></slot>`}
5321
+ ${this.isLoading ? S : m`<slot></slot>`}
5318
5322
  `;
5319
5323
  }
5320
5324
  };
@@ -5342,7 +5346,7 @@ let ws = class extends w {
5342
5346
  super(...arguments), this.condition = !1;
5343
5347
  }
5344
5348
  render() {
5345
- return this.condition ? g` <slot></slot> ` : S;
5349
+ return this.condition ? m` <slot></slot> ` : S;
5346
5350
  }
5347
5351
  };
5348
5352
  ws.styles = P`
@@ -5490,13 +5494,13 @@ let nt = class extends w {
5490
5494
  static show(r) {
5491
5495
  nt.loader || (nt.loader = document.createElement("sonic-loader"));
5492
5496
  const t = nt.loader;
5493
- r || (r = {}), r.mode && t.setAttribute("mode", r.mode), r.noDelay && t.setAttribute("noDelay", ""), r.container || (r.container = vt.getPopContainer(), r.mode = "fixed"), r.container.appendChild(t), nt.callCounter++;
5497
+ r || (r = {}), r.mode && t.setAttribute("mode", r.mode), r.noDelay && t.setAttribute("noDelay", ""), r.container || (r.container = yt.getPopContainer(), r.mode = "fixed"), r.container.appendChild(t), nt.callCounter++;
5494
5498
  }
5495
5499
  static hide() {
5496
5500
  nt.callCounter--, !(nt.callCounter > 0) && nt.loader && nt.loader.remove();
5497
5501
  }
5498
5502
  render() {
5499
- return g`<div
5503
+ return m`<div
5500
5504
  class="sonic-loader sonic-loader--${this.mode} ${this.noDelay ? "sonic-loader--nodelay" : ""} "
5501
5505
  >
5502
5506
  <div></div>
@@ -5566,7 +5570,7 @@ let or = class extends Z(w) {
5566
5570
  super.updated(r), this.children.length == 0 ? this.style.display = "none" : this.style.display = "contents";
5567
5571
  }
5568
5572
  render() {
5569
- return g`<slot></slot> `;
5573
+ return m`<slot></slot> `;
5570
5574
  }
5571
5575
  };
5572
5576
  or = Jn([
@@ -5598,7 +5602,7 @@ let xt = class extends _i(Z(Qe(w))) {
5598
5602
  renderLoader() {
5599
5603
  if (!(this.isLoading && this.loader !== void 0) || this.templateParts.skeleton) return S;
5600
5604
  const t = this.loader === !0 || this.loader === "" ? "fixed" : this.loader;
5601
- return g`<sonic-loader mode=${t}></sonic-loader>`;
5605
+ return m`<sonic-loader mode=${t}></sonic-loader>`;
5602
5606
  }
5603
5607
  renderSkeleton() {
5604
5608
  if (this.skeleton)
@@ -5613,10 +5617,10 @@ let xt = class extends _i(Z(Qe(w))) {
5613
5617
  return r ? Et(r) : S;
5614
5618
  }
5615
5619
  renderLoadingState() {
5616
- return g`${this.renderSkeleton()} ${this.renderLoader()} `;
5620
+ return m`${this.renderSkeleton()} ${this.renderLoader()} `;
5617
5621
  }
5618
5622
  renderNoResultState() {
5619
- return g` <div
5623
+ return m` <div
5620
5624
  style="color: var(--sc-base-400);
5621
5625
  font-size: 1.5em;
5622
5626
  margin: 4rem 0;
@@ -5662,7 +5666,7 @@ let xt = class extends _i(Z(Qe(w))) {
5662
5666
  return { width: e - s, height: n - o };
5663
5667
  }
5664
5668
  render() {
5665
- return g`
5669
+ return m`
5666
5670
  ${this.renderContent()}
5667
5671
  <div
5668
5672
  style="grid-column: 1 / -1;min-height:${this.isLoading ? 0 : this.loadingSize.height}px; width:0;float:left;display: var(--list-loader-height-display);"
@@ -5670,7 +5674,7 @@ let xt = class extends _i(Z(Qe(w))) {
5670
5674
  `;
5671
5675
  }
5672
5676
  handleProgrammaticTemplates(r, t, i) {
5673
- return this.items ? g`<sonic-subscriber
5677
+ return this.items ? m`<sonic-subscriber
5674
5678
  ?debug=${this.defferedDebug === !0}
5675
5679
  .bindPublisher=${() => this.publisher[i]}
5676
5680
  .propertyMap?=${this.itemPropertyMap}
@@ -5682,7 +5686,7 @@ let xt = class extends _i(Z(Qe(w))) {
5682
5686
  renderContent() {
5683
5687
  if (this.isLoading && !Array.isArray(this.props)) return this.renderLoadingState();
5684
5688
  if (typeof this.props == "string") return this.renderNoResultState();
5685
- if (!tt.isObject(this.props)) return g`<div></div>`;
5689
+ if (!tt.isObject(this.props)) return m`<div></div>`;
5686
5690
  const s = this.formatProps();
5687
5691
  if ((s?.length || 0) == 0) {
5688
5692
  if (this.noItems)
@@ -5693,41 +5697,41 @@ let xt = class extends _i(Z(Qe(w))) {
5693
5697
  const e = this.templateList.length;
5694
5698
  let o = -1;
5695
5699
  const n = this.hasAttribute("extractValues"), l = this.renderSeparator(), c = s?.length || 0, h = s?.slice(this.offset, this.offset + this.limit);
5696
- return g`
5697
- ${h?.map((f, d) => {
5698
- if (f == null) return S;
5699
- let m = d, v = null;
5700
- if (typeof f == "object" && !Array.isArray(f)) {
5701
- n && (m = f?.key);
5702
- const u = f[this.templateKey];
5703
- u && typeof u == "string" && (v = this.templateParts[u]);
5704
- }
5705
- if (m == "_sonic_http_response_" || typeof m != "string" && typeof m != "number") return S;
5706
- const b = d >= c - 1, x = d % 2, C = this.publisher[m], E = {
5707
- key: m,
5700
+ return m`
5701
+ ${h?.map((u, d) => {
5702
+ if (u == null) return S;
5703
+ let g = d, v = null;
5704
+ if (typeof u == "object" && !Array.isArray(u)) {
5705
+ n && (g = u?.key);
5706
+ const f = u[this.templateKey];
5707
+ f && typeof f == "string" && (v = this.templateParts[f]);
5708
+ }
5709
+ if (g == "_sonic_http_response_" || typeof g != "string" && typeof g != "number") return S;
5710
+ const b = d >= c - 1, x = d % 2, C = this.publisher[g], E = {
5711
+ key: g,
5708
5712
  even: x == 0,
5709
5713
  odd: x == 1,
5710
5714
  onlyChild: c == 1,
5711
5715
  firstChild: d == 0,
5712
5716
  lastChild: b
5713
5717
  };
5714
- C._key_ = m + "", C._metadata_ = {
5718
+ C._key_ = g + "", C._metadata_ = {
5715
5719
  ...C._metadata_.get(),
5716
5720
  ...E
5717
5721
  };
5718
5722
  const p = this.handleProgrammaticTemplates(
5719
- f,
5723
+ u,
5720
5724
  E,
5721
- m
5725
+ g
5722
5726
  );
5723
- return p ? g`${p}${b ? S : l}` : (o++, v && (o = -1), g`
5727
+ return p ? m`${p}${b ? S : l}` : (o++, v && (o = -1), m`
5724
5728
  <sonic-subscriber
5725
5729
  ?debug=${this.defferedDebug === !0}
5726
5730
  .bindPublisher=${function() {
5727
5731
  return C;
5728
5732
  }}
5729
5733
  .propertyMap?=${this.itemPropertyMap}
5730
- dataProvider="${this.dataProvider}/list-item/${m}"
5734
+ dataProvider="${this.dataProvider}/list-item/${g}"
5731
5735
  >
5732
5736
  ${Et(v || this.templateList[o % e])}
5733
5737
  </sonic-subscriber>
@@ -5859,8 +5863,8 @@ let X = class extends Z(w) {
5859
5863
  }
5860
5864
  }
5861
5865
  if (Array.isArray(this.props)) {
5862
- const d = this.props, m = d[d.length - 1];
5863
- t = parseInt(m.offset.toString()) + parseInt(m.limit.toString());
5866
+ const d = this.props, g = d[d.length - 1];
5867
+ t = parseInt(g.offset.toString()) + parseInt(g.limit.toString());
5864
5868
  } else {
5865
5869
  const d = [];
5866
5870
  d.resultCount = this.resultCount, d.lastFetchedData = r?.detail.fetchedData || {}, this.props = d;
@@ -5875,7 +5879,7 @@ let X = class extends Z(w) {
5875
5879
  for (const d in c)
5876
5880
  this.filteredFields && h.includes(d) || c[d] == null || c[d] == "" || l.set(d, c[d]);
5877
5881
  this.searchHash || (this.searchHash = l.toString()), n = n + "?" + l.toString(), e = e + "_item_from_queue_" + this.instanceId, this.listDataProviders.push(e);
5878
- const f = [
5882
+ const u = [
5879
5883
  ...this.props,
5880
5884
  {
5881
5885
  id: l.toString() + "/" + this.props.length,
@@ -5885,18 +5889,18 @@ let X = class extends Z(w) {
5885
5889
  limit: this.limit
5886
5890
  }
5887
5891
  ];
5888
- f.resultCount = this.resultCount, f.lastFetchedData = r?.detail.fetchedData || {}, this.props = f, this.lastRequestTime = (/* @__PURE__ */ new Date()).getTime();
5892
+ u.resultCount = this.resultCount, u.lastFetchedData = r?.detail.fetchedData || {}, this.props = u, this.lastRequestTime = (/* @__PURE__ */ new Date()).getTime();
5889
5893
  }
5890
5894
  render() {
5891
5895
  if (this.storeScrollPosition(), !Array.isArray(this.props))
5892
5896
  return S;
5893
5897
  let r = !this.noLazyload;
5894
- return this.props.length == 1 && (r = !1), this.style.display = "block", g`
5898
+ return this.props.length == 1 && (r = !1), this.style.display = "block", m`
5895
5899
  ${Or(this.props, (t, i) => {
5896
5900
  const s = i == 0 ? this.templates : this.templates?.filter(
5897
5901
  (e) => e.getAttribute("data-value") != "no-item"
5898
5902
  );
5899
- return g`
5903
+ return m`
5900
5904
  <sonic-list
5901
5905
  fetch
5902
5906
  loader="${this.loader}"
@@ -6008,7 +6012,7 @@ let Zt = class extends Z(w) {
6008
6012
  let c = {};
6009
6013
  l && (c = l.get());
6010
6014
  let h = null;
6011
- const f = this.getAncestorAttributeValue("dataProvider"), d = this.endPoint || f, m = async () => {
6015
+ const u = this.getAncestorAttributeValue("dataProvider"), d = this.endPoint || u, g = async () => {
6012
6016
  const b = { ...o };
6013
6017
  if (delete b.needsCaptchaValidation, delete c.needsCaptchaValidation, e)
6014
6018
  h = await this.api?.submitFormData(
@@ -6029,11 +6033,11 @@ let Zt = class extends Z(w) {
6029
6033
  h = await this.api?.delete(d, b, c);
6030
6034
  break;
6031
6035
  case "get":
6032
- const u = new URLSearchParams();
6036
+ const f = new URLSearchParams();
6033
6037
  if (b)
6034
6038
  for (const A in b)
6035
- u.append(A, b[A]);
6036
- const y = "?" + u.toString();
6039
+ f.append(A, b[A]);
6040
+ const y = "?" + f.toString();
6037
6041
  h = await this.api?.get(d + y, c);
6038
6042
  break;
6039
6043
  default:
@@ -6047,7 +6051,7 @@ let Zt = class extends Z(w) {
6047
6051
  "clearedDataOnSuccess"
6048
6052
  );
6049
6053
  x && x.split(" ").forEach(
6050
- (u) => T.get(u).set({})
6054
+ (f) => T.get(f).set({})
6051
6055
  );
6052
6056
  const C = this.hasAttribute("usernameKey") ? this.getAttribute("usernameKey") : "username", E = this.hasAttribute("passwordKey") ? this.getAttribute("passwordKey") : "password";
6053
6057
  this.api?.lastResult?.ok && b[C] && b[E] && this.saveCredentials(
@@ -6075,15 +6079,15 @@ let Zt = class extends Z(w) {
6075
6079
  if (v) {
6076
6080
  v.captchaToken = "request_token";
6077
6081
  const b = (x) => {
6078
- x != "request_token" ? (m(), v.captchaToken.offAssign(b)) : (nt.hide(), this.disabled = !1);
6082
+ x != "request_token" ? (g(), v.captchaToken.offAssign(b)) : (nt.hide(), this.disabled = !1);
6079
6083
  };
6080
6084
  v.captchaToken.onAssign(b);
6081
6085
  } else
6082
- m();
6086
+ g();
6083
6087
  };
6084
6088
  }
6085
6089
  connectedCallback() {
6086
- this.hasAttribute("onClick") && this.addEventListener("click", this.submit), this.hasAttribute("onEnterKey") && this.addEventListener("keydown", this.submit), super.connectedCallback(), this.api = new $e(this.getApiConfiguration());
6090
+ this.hasAttribute("onClick") && this.addEventListener("click", this.submit), this.hasAttribute("onEnterKey") && this.addEventListener("keydown", this.submit), super.connectedCallback(), this.api = new Ce(this.getApiConfiguration());
6087
6091
  }
6088
6092
  submitNativeForm() {
6089
6093
  const r = Xt.getClosestForm(this);
@@ -6113,7 +6117,7 @@ let Zt = class extends Z(w) {
6113
6117
  }
6114
6118
  }
6115
6119
  render() {
6116
- return g`<div ?data-disabled=${this.disabled}><slot></slot></div>`;
6120
+ return m`<div ?data-disabled=${this.disabled}><slot></slot></div>`;
6117
6121
  }
6118
6122
  };
6119
6123
  Zt.styles = P`
@@ -6147,7 +6151,7 @@ var ha = Object.defineProperty, da = Object.getOwnPropertyDescriptor, is = (r, t
6147
6151
  return s && e && ha(t, i, e), e;
6148
6152
  };
6149
6153
  const pa = "sonic-router";
6150
- let Ce = class extends Qe(w) {
6154
+ let Se = class extends Qe(w) {
6151
6155
  constructor() {
6152
6156
  super(...arguments), this.templateValueAttribute = "data-route", this._location = document.location.href.replace(
6153
6157
  document.location.origin,
@@ -6190,7 +6194,7 @@ let Ce = class extends Qe(w) {
6190
6194
  e.shift(), r.push(i([...e]));
6191
6195
  } else
6192
6196
  try {
6193
- const o = new Bt(this.patternBasePath + t).match(this.cleanLocation);
6197
+ const o = new qt(this.patternBasePath + t).match(this.cleanLocation);
6194
6198
  if (o) {
6195
6199
  const n = o || {};
6196
6200
  r.push(i(n));
@@ -6206,7 +6210,7 @@ let Ce = class extends Qe(w) {
6206
6210
  render() {
6207
6211
  const r = this.handleroutes();
6208
6212
  if (r.length > 0)
6209
- return g`${r}`;
6213
+ return m`${r}`;
6210
6214
  const t = [];
6211
6215
  for (const i of this.templatePartsList) {
6212
6216
  const s = i.getAttribute(this.templateValueAttribute) || "";
@@ -6214,7 +6218,7 @@ let Ce = class extends Qe(w) {
6214
6218
  t.push(i);
6215
6219
  else
6216
6220
  try {
6217
- new Bt(this.patternBasePath + s + "(/*)").match(
6221
+ new qt(this.patternBasePath + s + "(/*)").match(
6218
6222
  this.cleanLocation
6219
6223
  ) && (i.setAttribute("mode", "patternMatching"), t.push(i));
6220
6224
  } catch {
@@ -6230,7 +6234,7 @@ let Ce = class extends Qe(w) {
6230
6234
  );
6231
6235
  i && t.push(i);
6232
6236
  }
6233
- return g`${Ls(
6237
+ return m`${Ls(
6234
6238
  t,
6235
6239
  (i, s) => s + (/* @__PURE__ */ new Date()).getTime(),
6236
6240
  (i) => {
@@ -6238,17 +6242,17 @@ let Ce = class extends Qe(w) {
6238
6242
  let s = "";
6239
6243
  const e = i.getAttribute("dataProviderExpression") || "";
6240
6244
  if (i.getAttribute("mode") == "patternMatching") {
6241
- const o = new Bt(
6245
+ const o = new qt(
6242
6246
  "(/)*" + (i.getAttribute(this.templateValueAttribute) || "") + "*"
6243
6247
  );
6244
- s = new Bt(e).stringify(o.match(this.cleanLocation));
6248
+ s = new qt(e).stringify(o.match(this.cleanLocation));
6245
6249
  } else {
6246
6250
  const o = new RegExp(
6247
6251
  i.getAttribute(this.templateValueAttribute) || ""
6248
6252
  ), n = (this.cleanLocation + "").match(o);
6249
6253
  n && (s = n.shift()?.replace(o, e) || "");
6250
6254
  }
6251
- return g`<div
6255
+ return m`<div
6252
6256
  style="display:contents"
6253
6257
  dataProvider="${s}"
6254
6258
  >
@@ -6262,25 +6266,25 @@ let Ce = class extends Qe(w) {
6262
6266
  };
6263
6267
  is([
6264
6268
  a({ type: String })
6265
- ], Ce.prototype, "fallBackRoute", 2);
6269
+ ], Se.prototype, "fallBackRoute", 2);
6266
6270
  is([
6267
6271
  a({ type: Object })
6268
- ], Ce.prototype, "routes", 2);
6272
+ ], Se.prototype, "routes", 2);
6269
6273
  is([
6270
6274
  a({ type: String })
6271
- ], Ce.prototype, "basePath", 2);
6275
+ ], Se.prototype, "basePath", 2);
6272
6276
  is([
6273
6277
  a()
6274
- ], Ce.prototype, "location", 1);
6275
- Ce = is([
6278
+ ], Se.prototype, "location", 1);
6279
+ Se = is([
6276
6280
  _(pa)
6277
- ], Ce);
6281
+ ], Se);
6278
6282
  var ua = Object.getOwnPropertyDescriptor, fa = (r, t, i, s) => {
6279
6283
  for (var e = s > 1 ? void 0 : s ? ua(t, i) : t, o = r.length - 1, n; o >= 0; o--)
6280
6284
  (n = r[o]) && (e = n(e) || e);
6281
6285
  return e;
6282
6286
  };
6283
- const ga = "sonic-redirect";
6287
+ const ma = "sonic-redirect";
6284
6288
  let nr = class extends Z(w) {
6285
6289
  connectedCallback() {
6286
6290
  this.noShadowDom = "", this.style.display = "none", super.connectedCallback(), this.udpateCallBack = () => this.update(), this.publisher && this.publisher.onInternalMutation(this.udpateCallBack);
@@ -6299,12 +6303,12 @@ let nr = class extends Z(w) {
6299
6303
  }
6300
6304
  };
6301
6305
  nr = fa([
6302
- _(ga)
6306
+ _(ma)
6303
6307
  ], nr);
6304
- var ma = Object.defineProperty, ba = Object.getOwnPropertyDescriptor, Ns = (r, t, i, s) => {
6308
+ var ga = Object.defineProperty, ba = Object.getOwnPropertyDescriptor, Ns = (r, t, i, s) => {
6305
6309
  for (var e = s > 1 ? void 0 : s ? ba(t, i) : t, o = r.length - 1, n; o >= 0; o--)
6306
6310
  (n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
6307
- return s && e && ma(t, i, e), e;
6311
+ return s && e && ga(t, i, e), e;
6308
6312
  };
6309
6313
  const va = "sonic-states";
6310
6314
  let Ye = class extends Z(Qe(w)) {
@@ -6336,7 +6340,7 @@ let Ye = class extends Z(Qe(w)) {
6336
6340
  o.shift(), t.push(s([...o]));
6337
6341
  } else
6338
6342
  try {
6339
- const o = new Bt("(/)*" + i + "*");
6343
+ const o = new qt("(/)*" + i + "*");
6340
6344
  if (o.match(r)) {
6341
6345
  const n = o.match(r) || {};
6342
6346
  t.push(s(n));
@@ -6354,18 +6358,18 @@ let Ye = class extends Z(Qe(w)) {
6354
6358
  (!Array.isArray(r) && tt.isObject(r) || r === void 0) && (r = "");
6355
6359
  const t = this.handleStates(r);
6356
6360
  if (t.length > 0)
6357
- return g`${t}`;
6361
+ return m`${t}`;
6358
6362
  const i = [];
6359
6363
  for (const s of this.templatePartsList) {
6360
6364
  let e = s.getAttribute(this.templateValueAttribute), o = r;
6361
6365
  if (this.inverted && (o = e, e = r), e == "" && (e = this.inverted ? ".*?" : "^$"), new RegExp(e).test(o + ""))
6362
6366
  i.push(s), s.removeAttribute("mode");
6363
6367
  else {
6364
- const l = new Bt(e);
6368
+ const l = new qt(e);
6365
6369
  l.names.length > 0 && l.match(o) && (s.setAttribute("mode", "patternMatching"), i.push(s));
6366
6370
  }
6367
6371
  }
6368
- return g`${Ls(
6372
+ return m`${Ls(
6369
6373
  i,
6370
6374
  (s, e) => e + (/* @__PURE__ */ new Date()).getTime(),
6371
6375
  (s) => {
@@ -6377,13 +6381,13 @@ let Ye = class extends Z(Qe(w)) {
6377
6381
  this.templateValueAttribute
6378
6382
  );
6379
6383
  if (this.inverted && (n = l, l = r), l == "" && (l = this.inverted ? "*" : "^$"), s.getAttribute("mode") == "patternMatching") {
6380
- const c = new Bt(l);
6381
- o = new Bt(e).stringify(c.match(n));
6384
+ const c = new qt(l);
6385
+ o = new qt(e).stringify(c.match(n));
6382
6386
  } else {
6383
6387
  const c = new RegExp(l), h = (n + "").match(c);
6384
6388
  h && (o = h.shift()?.replace(c, e));
6385
6389
  }
6386
- return g`<div
6390
+ return m`<div
6387
6391
  style="display:contents"
6388
6392
  dataProvider="${o}"
6389
6393
  >
@@ -6418,7 +6422,7 @@ let ar = class extends w {
6418
6422
  return this;
6419
6423
  }
6420
6424
  render() {
6421
- return g`<slot></slot>`;
6425
+ return m`<slot></slot>`;
6422
6426
  }
6423
6427
  };
6424
6428
  ar = wa([
@@ -6435,7 +6439,7 @@ let Xs = class extends Z(w) {
6435
6439
  super(...arguments), this.text = "Example";
6436
6440
  }
6437
6441
  render() {
6438
- return g`<div>${this.text}</div>`;
6442
+ return m`<div>${this.text}</div>`;
6439
6443
  }
6440
6444
  };
6441
6445
  Dr([
@@ -6587,8 +6591,8 @@ class Wa {
6587
6591
  if (h)
6588
6592
  for (const d of h)
6589
6593
  e.nodes.push(d);
6590
- const f = s.parent.nodes?.indexOf(s.child) || -1;
6591
- f != -1 && (s.parent.nodes?.splice(f, 1), s.parent.nodes?.splice(f, 0, e));
6594
+ const u = s.parent.nodes?.indexOf(s.child) || -1;
6595
+ u != -1 && (s.parent.nodes?.splice(u, 1), s.parent.nodes?.splice(u, 0, e));
6592
6596
  }
6593
6597
  }
6594
6598
  /**
@@ -6834,7 +6838,7 @@ let xs = class extends se(w) {
6834
6838
  }
6835
6839
  }
6836
6840
  render() {
6837
- return g`<slot></slot>`;
6841
+ return m`<slot></slot>`;
6838
6842
  }
6839
6843
  };
6840
6844
  xs.styles = [
@@ -6861,7 +6865,7 @@ let lr = class extends se(w) {
6861
6865
  this.setAttribute("subDataProvider", this.getAttribute("key")), super.connectedCallback();
6862
6866
  }
6863
6867
  render() {
6864
- return typeof this.props == "object" || this.props === void 0 ? g`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>` : g`${z(this.props.toString())}<slot name="prefix"></slot><slot></slot
6868
+ return typeof this.props == "object" || this.props === void 0 ? m`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>` : m`${z(this.props.toString())}<slot name="prefix"></slot><slot></slot
6865
6869
  ><slot name="suffix"></slot>`;
6866
6870
  }
6867
6871
  };
@@ -6876,7 +6880,7 @@ var el = Object.defineProperty, sl = Object.getOwnPropertyDescriptor, Ci = (r, t
6876
6880
  const il = "sonic-t";
6877
6881
  let Ps = class extends w {
6878
6882
  render() {
6879
- return this.key ? g`${Lo(this.key, this.unsafeHTML)}` : S;
6883
+ return this.key ? m`${Lo(this.key, this.unsafeHTML)}` : S;
6880
6884
  }
6881
6885
  };
6882
6886
  Ci([
@@ -6899,7 +6903,7 @@ let pe = class extends w {
6899
6903
  super(...arguments), this.type = "default", this.variant = "default", this.ellipsis = !1;
6900
6904
  }
6901
6905
  render() {
6902
- return g`
6906
+ return m`
6903
6907
  <slot name="prefix"></slot>
6904
6908
  <slot></slot>
6905
6909
  <slot name="suffix"></slot>
@@ -7113,7 +7117,7 @@ let Gt = class extends w {
7113
7117
  r.has("href") && this.setFocusable();
7114
7118
  }
7115
7119
  render() {
7116
- return this.href ? g`
7120
+ return this.href ? m`
7117
7121
  <a
7118
7122
  href="${this.href}"
7119
7123
  aria-label=${this.ariaLabel || S}
@@ -7122,7 +7126,7 @@ let Gt = class extends w {
7122
7126
  >
7123
7127
  <slot></slot>
7124
7128
  </a>
7125
- ` : g`<slot></slot>`;
7129
+ ` : m`<slot></slot>`;
7126
7130
  }
7127
7131
  };
7128
7132
  Gt.styles = [
@@ -7163,7 +7167,7 @@ let Qt = class extends w {
7163
7167
  super(...arguments), this.max = 100, this.invert = !1, this.type = "default";
7164
7168
  }
7165
7169
  render() {
7166
- return g`
7170
+ return m`
7167
7171
  <progress value=${$(this.value)} max=${this.max}></progress>
7168
7172
  <div class="slot-container">
7169
7173
  <slot></slot>
@@ -7701,7 +7705,7 @@ const fl = P`
7701
7705
  */
7702
7706
  const Ai = ee(class extends De {
7703
7707
  constructor(r) {
7704
- if (super(r), r.type !== me.ATTRIBUTE || r.name !== "class" || r.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
7708
+ if (super(r), r.type !== be.ATTRIBUTE || r.name !== "class" || r.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
7705
7709
  }
7706
7710
  render(r) {
7707
7711
  return " " + Object.keys(r).filter(((t) => r[t])).join(" ") + " ";
@@ -7718,13 +7722,13 @@ const Ai = ee(class extends De {
7718
7722
  const e = !!t[s];
7719
7723
  e === this.st.has(s) || this.nt?.has(s) || (e ? (i.add(s), this.st.add(s)) : (i.remove(s), this.st.delete(s)));
7720
7724
  }
7721
- return yt;
7725
+ return wt;
7722
7726
  }
7723
7727
  });
7724
- var gl = Object.defineProperty, ml = Object.getOwnPropertyDescriptor, U = (r, t, i, s) => {
7725
- for (var e = s > 1 ? void 0 : s ? ml(t, i) : t, o = r.length - 1, n; o >= 0; o--)
7728
+ var ml = Object.defineProperty, gl = Object.getOwnPropertyDescriptor, U = (r, t, i, s) => {
7729
+ for (var e = s > 1 ? void 0 : s ? gl(t, i) : t, o = r.length - 1, n; o >= 0; o--)
7726
7730
  (n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
7727
- return s && e && gl(t, i, e), e;
7731
+ return s && e && ml(t, i, e), e;
7728
7732
  };
7729
7733
  const bl = "sonic-input";
7730
7734
  let j = class extends Es(Le(Z(w))) {
@@ -7808,7 +7812,7 @@ let j = class extends Es(Le(Z(w))) {
7808
7812
  "no-suffix": !this.hasSuffix,
7809
7813
  "no-prefix": !this.hasPrefix
7810
7814
  };
7811
- return g`
7815
+ return m`
7812
7816
  <label for="${this.id || "form-element"}" class="${this.hasLabel ? "form-label" : "hidden"}"
7813
7817
  >${this.label ? z(
7814
7818
  this.label
@@ -7854,7 +7858,7 @@ let j = class extends Es(Le(Z(w))) {
7854
7858
  .name=${this.name}
7855
7859
  .value=${this.value}
7856
7860
  />
7857
- ${this.showPasswordToggle ? g`<sonic-button
7861
+ ${this.showPasswordToggle ? m`<sonic-button
7858
7862
  shape="circle"
7859
7863
  class="password-toggle"
7860
7864
  @click=${this.togglePasswordVisibility}
@@ -7875,7 +7879,7 @@ let j = class extends Es(Le(Z(w))) {
7875
7879
  name="description"
7876
7880
  @slotchange=${this.hasSlotOrProps}
7877
7881
  class="${this.hasDescription ? "form-description" : "hidden"}"
7878
- >${this.description ? g`${z(this.description)}` : S}</slot>
7882
+ >${this.description ? m`${z(this.description)}` : S}</slot>
7879
7883
  <slot name="list"></slot>
7880
7884
  </div>
7881
7885
  `;
@@ -7949,19 +7953,19 @@ U([
7949
7953
  a({ type: Boolean, reflect: !0 })
7950
7954
  ], j.prototype, "active", 2);
7951
7955
  U([
7952
- ht({ slot: "label", flatten: !0 })
7956
+ dt({ slot: "label", flatten: !0 })
7953
7957
  ], j.prototype, "slotLabelNodes", 2);
7954
7958
  U([
7955
- ht({ slot: "description", flatten: !0 })
7959
+ dt({ slot: "description", flatten: !0 })
7956
7960
  ], j.prototype, "slotDescriptionNodes", 2);
7957
7961
  U([
7958
- ht({ slot: "suffix", flatten: !0 })
7962
+ dt({ slot: "suffix", flatten: !0 })
7959
7963
  ], j.prototype, "slotSuffixNodes", 2);
7960
7964
  U([
7961
- ht({ slot: "prefix", flatten: !0 })
7965
+ dt({ slot: "prefix", flatten: !0 })
7962
7966
  ], j.prototype, "slotPrefixNodes", 2);
7963
7967
  U([
7964
- Ae("input")
7968
+ ge("input")
7965
7969
  ], j.prototype, "input", 2);
7966
7970
  U([
7967
7971
  L()
@@ -8076,15 +8080,15 @@ let it = class extends w {
8076
8080
  let s = t[1];
8077
8081
  const e = 5, o = this.getBoundingClientRect(), l = J.getScrollableAncestor(
8078
8082
  this.popContent
8079
- )?.getBoundingClientRect(), c = Math.max(0, l?.left || 0) + e, h = Math.max(0, l?.top || 0) + e, f = Math.min(
8083
+ )?.getBoundingClientRect(), c = Math.max(0, l?.left || 0) + e, h = Math.max(0, l?.top || 0) + e, u = Math.min(
8080
8084
  window.innerWidth,
8081
8085
  l?.right || window.innerWidth
8082
8086
  ) - e, d = Math.min(
8083
8087
  window.innerHeight,
8084
8088
  l?.bottom || window.innerHeight
8085
- ) - e, m = o.left, v = o.top;
8086
- let b = m, x = v, C = this.popContent?.getBoundingClientRect();
8087
- const E = v - C.height, p = m - C.width, u = m + o.width, y = v + o.height, A = m + (o.width - C.width) * 0.5, k = v + (o.height - C.height) * 0.5;
8089
+ ) - e, g = o.left, v = o.top;
8090
+ let b = g, x = v, C = this.popContent?.getBoundingClientRect();
8091
+ const E = v - C.height, p = g - C.width, f = g + o.width, y = v + o.height, A = g + (o.width - C.width) * 0.5, k = v + (o.height - C.height) * 0.5;
8088
8092
  switch (i) {
8089
8093
  case "bottom":
8090
8094
  x = y, s == "center" && (b = A);
@@ -8096,25 +8100,25 @@ let it = class extends w {
8096
8100
  b = p, s == "center" && (x = k);
8097
8101
  break;
8098
8102
  case "right":
8099
- b = u, s == "center" && (x = k);
8103
+ b = f, s == "center" && (x = k);
8100
8104
  break;
8101
8105
  }
8102
8106
  this.lastContentX += b - C.x, this.lastContentY += x - C.y, Object.assign(this.popContent.style, {
8103
8107
  left: `${this.lastContentX}px`,
8104
8108
  top: `${this.lastContentY}px`
8105
- }), C = this.popContent?.getBoundingClientRect(), C.x < c && i == "left" && (b = u), C.y < h && i == "top" && (x = y), C.x + C.width > f && i == "right" && (b = p), C.y + C.height > d && i == "bottom" && (x = E), this.lastContentX += b - C.x, this.lastContentY += x - C.y, Object.assign(this.popContent.style, {
8109
+ }), C = this.popContent?.getBoundingClientRect(), C.x < c && i == "left" && (b = f), C.y < h && i == "top" && (x = y), C.x + C.width > u && i == "right" && (b = p), C.y + C.height > d && i == "bottom" && (x = E), this.lastContentX += b - C.x, this.lastContentY += x - C.y, Object.assign(this.popContent.style, {
8106
8110
  left: `${this.lastContentX}px`,
8107
8111
  top: `${this.lastContentY}px`
8108
8112
  }), C = this.popContent?.getBoundingClientRect(), C.x < c && (this.lastContentX += c - C.x), C.y < h && (this.lastContentY += h - C.y), Object.assign(this.popContent.style, {
8109
8113
  left: `${this.lastContentX}px`,
8110
8114
  top: `${this.lastContentY}px`
8111
- }), C = this.popContent?.getBoundingClientRect(), C.x + C.width > f && (this.lastContentX += f - (C.x + C.width)), C.y + C.height > d && (this.lastContentY += d - (C.y + C.height)), Object.assign(this.popContent.style, {
8115
+ }), C = this.popContent?.getBoundingClientRect(), C.x + C.width > u && (this.lastContentX += u - (C.x + C.width)), C.y + C.height > d && (this.lastContentY += d - (C.y + C.height)), Object.assign(this.popContent.style, {
8112
8116
  left: `${this.lastContentX}px`,
8113
8117
  top: `${this.lastContentY}px`
8114
8118
  });
8115
8119
  }
8116
8120
  render() {
8117
- return g`
8121
+ return m`
8118
8122
  <slot
8119
8123
  @click=${this.manual ? () => {
8120
8124
  } : this.toggle}
@@ -8174,10 +8178,10 @@ jt([
8174
8178
  L()
8175
8179
  ], it.prototype, "open", 2);
8176
8180
  jt([
8177
- Ae("slot:not([name=content])")
8181
+ ge("slot:not([name=content])")
8178
8182
  ], it.prototype, "popBtn", 2);
8179
8183
  jt([
8180
- Ae("slot[name=content]")
8184
+ ge("slot[name=content]")
8181
8185
  ], it.prototype, "popContent", 2);
8182
8186
  jt([
8183
8187
  a({ type: Boolean })
@@ -8252,7 +8256,7 @@ class Nr {
8252
8256
  this.u.disconnect();
8253
8257
  }
8254
8258
  }
8255
- var $l = Object.defineProperty, Cl = Object.getOwnPropertyDescriptor, ft = (r, t, i, s) => {
8259
+ var $l = Object.defineProperty, Cl = Object.getOwnPropertyDescriptor, mt = (r, t, i, s) => {
8256
8260
  for (var e = s > 1 ? void 0 : s ? Cl(t, i) : t, o = r.length - 1, n; o >= 0; o--)
8257
8261
  (n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
8258
8262
  return s && e && $l(t, i, e), e;
@@ -8306,7 +8310,7 @@ let at = class extends xi(
8306
8310
  const r = this.searchParameter || this.name, t = this.getAncestorAttributeValue("formDataProvider"), i = t + "__" + this.name + "__autocomplete";
8307
8311
  this.initSearchDataProvider = `${i}_init_search__`, this.initQueueDataProvider = `${i}_init_queue__`, this.searchDataProvider = `${i}_search__`, this.queueDataProvider = `${i}_queue__`;
8308
8312
  const s = st.get;
8309
- this.searchPublisher = s(this.searchDataProvider)[r], this.formValuePublisher = dt(
8313
+ this.searchPublisher = s(this.searchDataProvider)[r], this.formValuePublisher = pt(
8310
8314
  s(t),
8311
8315
  this.name
8312
8316
  ), this.countPublisher = s(this.queueDataProvider).resultCount, this.initCountPublisher = s(
@@ -8352,7 +8356,7 @@ let at = class extends xi(
8352
8356
  return this.isSearchParameter() ? this.searchPublisher?.get() : this.lastValidSearch;
8353
8357
  }
8354
8358
  render() {
8355
- return g`
8359
+ return m`
8356
8360
  <sonic-pop noToggle style="display:block;" @hide=${this.handleHide}>
8357
8361
  <sonic-input
8358
8362
  class="form-element"
@@ -8379,7 +8383,7 @@ let at = class extends xi(
8379
8383
  @slotchange=${this.hasSlotOrProps}
8380
8384
  ></slot>
8381
8385
 
8382
- ${this.select ? g`
8386
+ ${this.select ? m`
8383
8387
  <sonic-icon
8384
8388
  slot="suffix"
8385
8389
  class="select-chevron"
@@ -8444,49 +8448,49 @@ at.styles = [
8444
8448
  }
8445
8449
  `
8446
8450
  ];
8447
- ft([
8451
+ mt([
8448
8452
  a({ type: String })
8449
8453
  ], at.prototype, "size", 2);
8450
- ft([
8454
+ mt([
8451
8455
  a({ type: String })
8452
8456
  ], at.prototype, "placeholder", 2);
8453
- ft([
8457
+ mt([
8454
8458
  a()
8455
8459
  ], at.prototype, "filteredFields", 2);
8456
- ft([
8460
+ mt([
8457
8461
  a({ type: Boolean, reflect: !0 })
8458
8462
  ], at.prototype, "readonly", 2);
8459
- ft([
8463
+ mt([
8460
8464
  a({ type: String })
8461
8465
  ], at.prototype, "dataProviderExpression", 2);
8462
- ft([
8466
+ mt([
8463
8467
  a({ type: Number })
8464
8468
  ], at.prototype, "minSearchLength", 2);
8465
- ft([
8469
+ mt([
8466
8470
  a({ type: Boolean })
8467
8471
  ], at.prototype, "select", 2);
8468
- ft([
8472
+ mt([
8469
8473
  a({ type: String })
8470
8474
  ], at.prototype, "key", 2);
8471
- ft([
8475
+ mt([
8472
8476
  a({ type: String })
8473
8477
  ], at.prototype, "searchParameter", 2);
8474
- ft([
8478
+ mt([
8475
8479
  a({ type: String })
8476
8480
  ], at.prototype, "propertyName", 2);
8477
- ft([
8478
- ht({ slot: "prefix", flatten: !0 })
8481
+ mt([
8482
+ dt({ slot: "prefix", flatten: !0 })
8479
8483
  ], at.prototype, "slotInputPrefixNodes", 2);
8480
- ft([
8484
+ mt([
8481
8485
  L()
8482
8486
  ], at.prototype, "hasInputPrefix", 2);
8483
- ft([
8487
+ mt([
8484
8488
  L()
8485
8489
  ], at.prototype, "isPopVisible", 2);
8486
- ft([
8490
+ mt([
8487
8491
  L()
8488
8492
  ], at.prototype, "lastValidSearch", 2);
8489
- at = ft([
8493
+ at = mt([
8490
8494
  _("sonic-input-autocomplete")
8491
8495
  ], at);
8492
8496
  var Sl = Object.defineProperty, Al = Object.getOwnPropertyDescriptor, gt = (r, t, i, s) => {
@@ -8508,10 +8512,10 @@ let lt = class extends se(w) {
8508
8512
  this.checkValue && this.name && st.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue), super.disconnectedCallback();
8509
8513
  }
8510
8514
  getIcon(t) {
8511
- return t ? g`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>` : g`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`;
8515
+ return t ? m`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>` : m`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`;
8512
8516
  }
8513
8517
  render() {
8514
- return this.hasNoChar ? S : g`
8518
+ return this.hasNoChar ? S : m`
8515
8519
  <div>${this.wording_password_helper_decription}</div>
8516
8520
  <div>
8517
8521
  ${this.getIcon(this.hasEnoughChars)}
@@ -8580,7 +8584,7 @@ gt([
8580
8584
  lt = gt([
8581
8585
  _(kl)
8582
8586
  ], lt);
8583
- var Ol = Object.defineProperty, Dl = Object.getOwnPropertyDescriptor, be = (r, t, i, s) => {
8587
+ var Ol = Object.defineProperty, Dl = Object.getOwnPropertyDescriptor, ve = (r, t, i, s) => {
8584
8588
  for (var e = s > 1 ? void 0 : s ? Dl(t, i) : t, o = r.length - 1, n; o >= 0; o--)
8585
8589
  (n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
8586
8590
  return s && e && Ol(t, i, e), e;
@@ -8596,10 +8600,10 @@ let Jt = class extends se(w) {
8596
8600
  this.getAncestorAttributeValue("formDataProvider")
8597
8601
  );
8598
8602
  this.name && this.sameValueAs && (this.checkValue = (t) => {
8599
- t ? this.hasNoChar = t.length == 0 : this.hasNoChar = !0, this.name && this.sameValueAs && (this.areEqual = dt(r, this.name).get() == dt(r, this.sameValueAs).get());
8600
- }, dt(r, this.name).onAssign(
8603
+ t ? this.hasNoChar = t.length == 0 : this.hasNoChar = !0, this.name && this.sameValueAs && (this.areEqual = pt(r, this.name).get() == pt(r, this.sameValueAs).get());
8604
+ }, pt(r, this.name).onAssign(
8601
8605
  this.checkValue
8602
- ), dt(r, this.sameValueAs).onAssign(
8606
+ ), pt(r, this.sameValueAs).onAssign(
8603
8607
  this.checkValue
8604
8608
  ));
8605
8609
  }
@@ -8608,9 +8612,9 @@ let Jt = class extends se(w) {
8608
8612
  const r = st.get(
8609
8613
  this.getAncestorAttributeValue("formDataProvider")
8610
8614
  );
8611
- dt(r, this.name).offAssign(
8615
+ pt(r, this.name).offAssign(
8612
8616
  this.checkValue
8613
- ), dt(r, this.sameValueAs).offAssign(
8617
+ ), pt(r, this.sameValueAs).offAssign(
8614
8618
  this.checkValue
8615
8619
  );
8616
8620
  }
@@ -8618,41 +8622,41 @@ let Jt = class extends se(w) {
8618
8622
  }
8619
8623
  //TODO Multilangue
8620
8624
  render() {
8621
- return this.hasNoChar ? S : g`
8625
+ return this.hasNoChar ? S : m`
8622
8626
  <span>
8623
8627
  ${this.areEqual ? z(this.descriptionWhenEqual) : z(this.descriptionWhenNotEqual)}
8624
8628
  </span>
8625
8629
  `;
8626
8630
  }
8627
8631
  };
8628
- be([
8632
+ ve([
8629
8633
  a()
8630
8634
  ], Jt.prototype, "name", 2);
8631
- be([
8635
+ ve([
8632
8636
  a()
8633
8637
  ], Jt.prototype, "sameValueAs", 2);
8634
- be([
8638
+ ve([
8635
8639
  a()
8636
8640
  ], Jt.prototype, "descriptionWhenEqual", 2);
8637
- be([
8641
+ ve([
8638
8642
  a()
8639
8643
  ], Jt.prototype, "descriptionWhenNotEqual", 2);
8640
- be([
8644
+ ve([
8641
8645
  L()
8642
8646
  ], Jt.prototype, "areEqual", 2);
8643
- be([
8647
+ ve([
8644
8648
  L()
8645
8649
  ], Jt.prototype, "hasNoChar", 2);
8646
- Jt = be([
8650
+ Jt = ve([
8647
8651
  _(Ll)
8648
8652
  ], Jt);
8649
- var El = Object.defineProperty, Nl = Object.getOwnPropertyDescriptor, Wt = (r, t, i, s) => {
8653
+ var El = Object.defineProperty, Nl = Object.getOwnPropertyDescriptor, Kt = (r, t, i, s) => {
8650
8654
  for (var e = s > 1 ? void 0 : s ? Nl(t, i) : t, o = r.length - 1, n; o >= 0; o--)
8651
8655
  (n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
8652
8656
  return s && e && El(t, i, e), e;
8653
8657
  };
8654
8658
  const Tl = "sonic-checkbox";
8655
- let pt = class extends wi(
8659
+ let ft = class extends wi(
8656
8660
  Es(Le(Z(w)))
8657
8661
  ) {
8658
8662
  constructor() {
@@ -8668,7 +8672,7 @@ let pt = class extends wi(
8668
8672
  this.hasLabel = !!(this.label || this.slotLabelNodes?.length), this.hasDescription = !!(this.description || this.slotDescriptionNodes?.length);
8669
8673
  }
8670
8674
  render() {
8671
- return g`
8675
+ return m`
8672
8676
  <label class="checkbox-container ${this.disabled ? "disabled" : ""}">
8673
8677
 
8674
8678
  <span class="icon-container">
@@ -8695,14 +8699,14 @@ let pt = class extends wi(
8695
8699
  /*+ labelStarSuffix*/
8696
8700
  ) : ""}
8697
8701
  <slot @slotchange=${this.hasSlotOrProps}></slot>
8698
- <slot @slotchange=${this.hasSlotOrProps} name="description" class="${this.hasDescription ? "description" : "hidden"} ">${this.description ? g`${z(this.description)}` : ""}</slot>
8702
+ <slot @slotchange=${this.hasSlotOrProps} name="description" class="${this.hasDescription ? "description" : "hidden"} ">${this.description ? m`${z(this.description)}` : ""}</slot>
8699
8703
  </div>
8700
8704
  </label>
8701
8705
  </label>
8702
8706
  `;
8703
8707
  }
8704
8708
  };
8705
- pt.styles = [
8709
+ ft.styles = [
8706
8710
  Mt,
8707
8711
  P`
8708
8712
  :host {
@@ -8828,40 +8832,40 @@ pt.styles = [
8828
8832
  }
8829
8833
  `
8830
8834
  ];
8831
- Wt([
8835
+ Kt([
8832
8836
  a({ type: Boolean, reflect: !0 })
8833
- ], pt.prototype, "touched", 2);
8834
- Wt([
8837
+ ], ft.prototype, "touched", 2);
8838
+ Kt([
8835
8839
  a({ type: String })
8836
- ], pt.prototype, "iconName", 2);
8837
- Wt([
8840
+ ], ft.prototype, "iconName", 2);
8841
+ Kt([
8838
8842
  a({ type: String })
8839
- ], pt.prototype, "indeterminateIconName", 2);
8840
- Wt([
8843
+ ], ft.prototype, "indeterminateIconName", 2);
8844
+ Kt([
8841
8845
  a({ type: Boolean })
8842
- ], pt.prototype, "showAsIndeterminate", 2);
8843
- Wt([
8846
+ ], ft.prototype, "showAsIndeterminate", 2);
8847
+ Kt([
8844
8848
  a({ type: Boolean })
8845
- ], pt.prototype, "hasDescription", 2);
8846
- Wt([
8849
+ ], ft.prototype, "hasDescription", 2);
8850
+ Kt([
8847
8851
  a({ type: Boolean })
8848
- ], pt.prototype, "hasLabel", 2);
8849
- Wt([
8850
- ht({ flatten: !0 })
8851
- ], pt.prototype, "slotLabelNodes", 2);
8852
- Wt([
8853
- ht({ slot: "description", flatten: !0 })
8854
- ], pt.prototype, "slotDescriptionNodes", 2);
8855
- pt = Wt([
8852
+ ], ft.prototype, "hasLabel", 2);
8853
+ Kt([
8854
+ dt({ flatten: !0 })
8855
+ ], ft.prototype, "slotLabelNodes", 2);
8856
+ Kt([
8857
+ dt({ slot: "description", flatten: !0 })
8858
+ ], ft.prototype, "slotDescriptionNodes", 2);
8859
+ ft = Kt([
8856
8860
  _(Tl)
8857
- ], pt);
8861
+ ], ft);
8858
8862
  var Ml = Object.getOwnPropertyDescriptor, Il = (r, t, i, s) => {
8859
8863
  for (var e = s > 1 ? void 0 : s ? Ml(t, i) : t, o = r.length - 1, n; o >= 0; o--)
8860
8864
  (n = r[o]) && (e = n(e) || e);
8861
8865
  return e;
8862
8866
  };
8863
8867
  const jl = "sonic-radio";
8864
- let Zs = class extends pt {
8868
+ let Zs = class extends ft {
8865
8869
  constructor() {
8866
8870
  super(), this.radio = !0;
8867
8871
  }
@@ -8870,7 +8874,7 @@ let Zs = class extends pt {
8870
8874
  }
8871
8875
  };
8872
8876
  Zs.styles = [
8873
- pt.styles,
8877
+ ft.styles,
8874
8878
  P`
8875
8879
  :host input {
8876
8880
  border-radius: 50%;
@@ -8898,13 +8902,13 @@ var Fl = Object.getOwnPropertyDescriptor, zl = (r, t, i, s) => {
8898
8902
  return e;
8899
8903
  };
8900
8904
  const Rl = "sonic-switch";
8901
- let Gs = class extends pt {
8905
+ let Gs = class extends ft {
8902
8906
  constructor() {
8903
8907
  super(), this.unique = !0;
8904
8908
  }
8905
8909
  };
8906
8910
  Gs.styles = [
8907
- pt.styles,
8911
+ ft.styles,
8908
8912
  P`
8909
8913
  sonic-icon {
8910
8914
  display: none;
@@ -9049,7 +9053,7 @@ let W = class extends Le(Z(w)) {
9049
9053
  "has-prefix": this.hasPrefix,
9050
9054
  "has-suffix": this.hasSuffix
9051
9055
  };
9052
- return g`
9056
+ return m`
9053
9057
  <label
9054
9058
  for="form-element"
9055
9059
  class="${this.hasLabel ? "form-label" : "hidden"}"
@@ -9085,7 +9089,7 @@ let W = class extends Le(Z(w)) {
9085
9089
  (t) => t[this.valueKey],
9086
9090
  (t) => {
9087
9091
  const i = this.value == t[this.valueKey];
9088
- return g`<option
9092
+ return m`<option
9089
9093
  ?selected=${i}
9090
9094
  value="${t[this.valueKey]}"
9091
9095
  >
@@ -9108,7 +9112,7 @@ let W = class extends Le(Z(w)) {
9108
9112
  name="description"
9109
9113
  @slotchange=${this.hasSlotOrProps}
9110
9114
  class="${this.hasDescription ? "form-description" : "hidden"}"
9111
- >${this.description ? g`${z(this.description)}` : ""}</slot
9115
+ >${this.description ? m`${z(this.description)}` : ""}</slot
9112
9116
  >
9113
9117
  `;
9114
9118
  }
@@ -9207,16 +9211,16 @@ Q([
9207
9211
  a()
9208
9212
  ], W.prototype, "label", 1);
9209
9213
  Q([
9210
- ht({ slot: "label", flatten: !0 })
9214
+ dt({ slot: "label", flatten: !0 })
9211
9215
  ], W.prototype, "slotLabelNodes", 2);
9212
9216
  Q([
9213
- ht({ slot: "description", flatten: !0 })
9217
+ dt({ slot: "description", flatten: !0 })
9214
9218
  ], W.prototype, "slotDescriptionNodes", 2);
9215
9219
  Q([
9216
- ht({ slot: "suffix", flatten: !0 })
9220
+ dt({ slot: "suffix", flatten: !0 })
9217
9221
  ], W.prototype, "slotSuffixNodes", 2);
9218
9222
  Q([
9219
- ht({ slot: "prefix", flatten: !0 })
9223
+ dt({ slot: "prefix", flatten: !0 })
9220
9224
  ], W.prototype, "slotPrefixNodes", 2);
9221
9225
  Q([
9222
9226
  L()
@@ -9264,7 +9268,7 @@ let ct = class extends Es(Le(Z(w))) {
9264
9268
  const r = {
9265
9269
  resize: this.resize
9266
9270
  };
9267
- return g`
9271
+ return m`
9268
9272
  <label
9269
9273
  for="${this.id || "form-element"}"
9270
9274
  class="${this.hasLabel ? "form-label" : "hidden"}"
@@ -9299,7 +9303,7 @@ let ct = class extends Es(Le(Z(w))) {
9299
9303
  class="form-element textarea custom-scroll"
9300
9304
  aria-label=${$(this.ariaLabel)}
9301
9305
  aria-labelledby=${$(this.ariaLabelledby)}
9302
- style=${mt(r)}
9306
+ style=${ut(r)}
9303
9307
  >
9304
9308
  ${this.value}</textarea
9305
9309
  >
@@ -9309,7 +9313,7 @@ ${this.value}</textarea
9309
9313
  name="description"
9310
9314
  @slotchange=${this.hasSlotOrProps}
9311
9315
  class="${this.hasDescription ? "form-description" : "hidden"}"
9312
- >${this.description ? g`${z(this.description)}` : ""}</slot
9316
+ >${this.description ? m`${z(this.description)}` : ""}</slot
9313
9317
  >
9314
9318
  `;
9315
9319
  }
@@ -9355,10 +9359,10 @@ bt([
9355
9359
  a({ type: String })
9356
9360
  ], ct.prototype, "resize", 2);
9357
9361
  bt([
9358
- ht({ slot: "label", flatten: !0 })
9362
+ dt({ slot: "label", flatten: !0 })
9359
9363
  ], ct.prototype, "slotLabelNodes", 2);
9360
9364
  bt([
9361
- ht({ slot: "description", flatten: !0 })
9365
+ dt({ slot: "description", flatten: !0 })
9362
9366
  ], ct.prototype, "slotDescriptionNodes", 2);
9363
9367
  bt([
9364
9368
  L()
@@ -9376,7 +9380,7 @@ var Kl = Object.getOwnPropertyDescriptor, Yl = (r, t, i, s) => {
9376
9380
  };
9377
9381
  let Qs = class extends w {
9378
9382
  render() {
9379
- return g`<slot></slot>`;
9383
+ return m`<slot></slot>`;
9380
9384
  }
9381
9385
  };
9382
9386
  Qs.styles = [
@@ -9402,13 +9406,13 @@ Qs.styles = [
9402
9406
  Qs = Yl([
9403
9407
  _("sonic-legend-description")
9404
9408
  ], Qs);
9405
- var Xl = Object.defineProperty, Zl = Object.getOwnPropertyDescriptor, ve = (r, t, i, s) => {
9409
+ var Xl = Object.defineProperty, Zl = Object.getOwnPropertyDescriptor, ye = (r, t, i, s) => {
9406
9410
  for (var e = s > 1 ? void 0 : s ? Zl(t, i) : t, o = r.length - 1, n; o >= 0; o--)
9407
9411
  (n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
9408
9412
  return s && e && Xl(t, i, e), e;
9409
9413
  };
9410
9414
  const Gl = "sonic-legend";
9411
- let qt = class extends w {
9415
+ let Ht = class extends w {
9412
9416
  constructor() {
9413
9417
  super(...arguments), this.forceAutoFill = !1;
9414
9418
  }
@@ -9425,8 +9429,8 @@ let qt = class extends w {
9425
9429
  this.hasAttribute("label") && !this.forceAutoFill && (r = this.getAttribute("label")), this._label = r, this.requestUpdate();
9426
9430
  }
9427
9431
  render() {
9428
- return g`<legend part="legend">
9429
- ${this.iconName ? g`<div class="icon">
9432
+ return m`<legend part="legend">
9433
+ ${this.iconName ? m`<div class="icon">
9430
9434
  <sonic-icon
9431
9435
  name=${this.iconName}
9432
9436
  prefix=${$(this.iconPrefix)}
@@ -9436,7 +9440,7 @@ let qt = class extends w {
9436
9440
 
9437
9441
  <div class="legend-content">
9438
9442
  ${z(this.label ? this.label : "")}
9439
- ${this.description ? g`<sonic-legend-description
9443
+ ${this.description ? m`<sonic-legend-description
9440
9444
  >${z(this.description)}</sonic-legend-description
9441
9445
  >` : ""}
9442
9446
  <slot></slot>
@@ -9445,7 +9449,7 @@ let qt = class extends w {
9445
9449
  </legend>`;
9446
9450
  }
9447
9451
  };
9448
- qt.styles = [
9452
+ Ht.styles = [
9449
9453
  P`
9450
9454
  :host {
9451
9455
  --sc-legend-font-size: 1.5rem;
@@ -9492,27 +9496,27 @@ qt.styles = [
9492
9496
  }
9493
9497
  `
9494
9498
  ];
9495
- ve([
9499
+ ye([
9496
9500
  a({ type: Boolean })
9497
- ], qt.prototype, "forceAutoFill", 2);
9498
- ve([
9501
+ ], Ht.prototype, "forceAutoFill", 2);
9502
+ ye([
9499
9503
  a()
9500
- ], qt.prototype, "description", 1);
9501
- ve([
9504
+ ], Ht.prototype, "description", 1);
9505
+ ye([
9502
9506
  a()
9503
- ], qt.prototype, "label", 1);
9504
- ve([
9507
+ ], Ht.prototype, "label", 1);
9508
+ ye([
9505
9509
  a({ type: String })
9506
- ], qt.prototype, "iconName", 2);
9507
- ve([
9510
+ ], Ht.prototype, "iconName", 2);
9511
+ ye([
9508
9512
  a({ type: String })
9509
- ], qt.prototype, "iconLibrary", 2);
9510
- ve([
9513
+ ], Ht.prototype, "iconLibrary", 2);
9514
+ ye([
9511
9515
  a({ type: String })
9512
- ], qt.prototype, "iconPrefix", 2);
9513
- qt = ve([
9516
+ ], Ht.prototype, "iconPrefix", 2);
9517
+ Ht = ye([
9514
9518
  _(Gl)
9515
- ], qt);
9519
+ ], Ht);
9516
9520
  var Ql = Object.defineProperty, Jl = Object.getOwnPropertyDescriptor, Ft = (r, t, i, s) => {
9517
9521
  for (var e = s > 1 ? void 0 : s ? Jl(t, i) : t, o = r.length - 1, n; o >= 0; o--)
9518
9522
  (n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
@@ -9524,11 +9528,11 @@ let Pt = class extends Z(w) {
9524
9528
  super(...arguments), this.disabled = !1, this.variant = "default";
9525
9529
  }
9526
9530
  render() {
9527
- return g`<fieldset
9531
+ return m`<fieldset
9528
9532
  form="${$(this.form)}"
9529
9533
  ?disabled="${this.disabled}"
9530
9534
  >
9531
- ${this.label ? g` <sonic-legend
9535
+ ${this.label ? m` <sonic-legend
9532
9536
  label=${$(this.label)}
9533
9537
  description=${$(this.description)}
9534
9538
  iconName=${$(this.iconName)}
@@ -9641,7 +9645,7 @@ let Xe = class extends Z(w) {
9641
9645
  "cq--md": this.offsetWidth > 440,
9642
9646
  "one-form-element": this.oneFormElement
9643
9647
  };
9644
- return g`<div class=${Ai(r)}>
9648
+ return m`<div class=${Ai(r)}>
9645
9649
  <slot @slotchange=${this.onSlotChange}></slot>
9646
9650
  </div>`;
9647
9651
  }
@@ -9708,7 +9712,7 @@ let Ze = class extends w {
9708
9712
  flexDirection: this.direction,
9709
9713
  justifyContent: this.justify
9710
9714
  };
9711
- return g`<slot style=${mt(r)}></slot>`;
9715
+ return m`<slot style=${ut(r)}></slot>`;
9712
9716
  }
9713
9717
  };
9714
9718
  Ze.styles = [
@@ -9764,7 +9768,7 @@ let Nt = class extends w {
9764
9768
  const r = {
9765
9769
  alignItems: this.alignItems
9766
9770
  };
9767
- return g`<span class="${this.hasLabel ? "form-label" : "hidden"}"
9771
+ return m`<span class="${this.hasLabel ? "form-label" : "hidden"}"
9768
9772
  >${this.label ? z(
9769
9773
  this.label
9770
9774
  /*+ labelStarSuffix*/
@@ -9773,13 +9777,13 @@ let Nt = class extends w {
9773
9777
  @slotchange=${this.hasSlotOrProps}
9774
9778
  ></slot
9775
9779
  ></span>
9776
- <slot class="main-slot" style=${mt(r)}></slot>
9780
+ <slot class="main-slot" style=${ut(r)}></slot>
9777
9781
  <slot
9778
9782
  name="description"
9779
9783
  @slotchange=${this.hasSlotOrProps}
9780
9784
  class="${this.hasDescription ? "form-description" : "hidden"}"
9781
9785
  >
9782
- ${this.description ? g`${z(this.description)}` : ""}
9786
+ ${this.description ? m`${z(this.description)}` : ""}
9783
9787
  </slot>`;
9784
9788
  }
9785
9789
  };
@@ -9819,10 +9823,10 @@ ie([
9819
9823
  a({ type: String })
9820
9824
  ], Nt.prototype, "description", 2);
9821
9825
  ie([
9822
- ht({ slot: "label", flatten: !0 })
9826
+ dt({ slot: "label", flatten: !0 })
9823
9827
  ], Nt.prototype, "slotLabelNodes", 2);
9824
9828
  ie([
9825
- ht({ slot: "description", flatten: !0 })
9829
+ dt({ slot: "description", flatten: !0 })
9826
9830
  ], Nt.prototype, "slotDescriptionNodes", 2);
9827
9831
  ie([
9828
9832
  L()
@@ -9859,14 +9863,14 @@ let $t = class extends w {
9859
9863
  imageRendering: this.imageRendering,
9860
9864
  objectPosition: this.objectPosition
9861
9865
  };
9862
- return g`<div part="image">
9866
+ return m`<div part="image">
9863
9867
  <picture part="picture"
9864
9868
  ><img
9865
9869
  part="img"
9866
9870
  src="${this.src}"
9867
9871
  loading="${this.loading}"
9868
9872
  alt="${this.alt}"
9869
- style=${mt(r)}
9873
+ style=${ut(r)}
9870
9874
  /></picture>
9871
9875
  </div>`;
9872
9876
  }
@@ -9978,40 +9982,75 @@ zt([
9978
9982
  $t = zt([
9979
9983
  _(pc)
9980
9984
  ], $t);
9981
- var uc = Object.defineProperty, fc = Object.getOwnPropertyDescriptor, wt = (r, t, i, s) => {
9985
+ var uc = Object.defineProperty, fc = Object.getOwnPropertyDescriptor, vt = (r, t, i, s) => {
9982
9986
  for (var e = s > 1 ? void 0 : s ? fc(t, i) : t, o = r.length - 1, n; o >= 0; o--)
9983
9987
  (n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
9984
9988
  return s && e && uc(t, i, e), e;
9985
9989
  };
9986
- const gc = "sonic-menu";
9987
- let ut = class extends w {
9990
+ const mc = "sonic-menu";
9991
+ let ht = class extends w {
9988
9992
  constructor() {
9989
- super(...arguments), this.direction = "column", this.gap = "var(--sc-menu-gap)", this.align = "left", this.shadow = null, this.moreShape = "circle", this.scrollable = !1, this.observer = null, this.minWidth = "0", this.hasMoreElements = !1, this.updateIsScollable = () => {
9990
- this.scrollable && (this.initScrollable(), this.setScrollShadow(this, this.direction));
9993
+ super(...arguments), this.direction = "column", this.gap = "var(--sc-menu-gap)", this.align = "left", this.shadow = null, this.moreShape = "circle", this.scrollable = !1, this.observer = null, this.attributeObserver = null, this.minWidth = "0", this.hasMoreElements = !1, this.handleScrollEnd = () => {
9994
+ this.setScrollShadow(this.menuContent, this.direction);
9995
+ }, this.updateIsScollable = () => {
9996
+ this.scrollable && (this.initScrollable(), this.setScrollShadow(this.menuContent, this.direction));
9991
9997
  };
9992
9998
  }
9993
9999
  checkIfMore() {
9994
10000
  this.hasMoreElements = !!this.moreElements?.length;
9995
10001
  }
10002
+ moreSlotChange() {
10003
+ this.checkIfMore(), this.updateIsScollable();
10004
+ }
9996
10005
  updated(r) {
9997
10006
  const t = this.querySelector(".more-btn");
9998
- this.size && t && t.setAttribute("size", this.size), this.querySelectorAll("sonic-divider").forEach((s) => {
9999
- s.hasAttribute("size") || s.setAttribute("size", "xs");
10000
- }), super.updated(r);
10007
+ this.size && t && t.setAttribute("size", this.size), super.updated(r);
10008
+ }
10009
+ setDividersSize(r) {
10010
+ r.forEach((t) => {
10011
+ t.setAttribute("size", "sm"), this.direction == "row" ? t.style.setProperty("margin", "0 .1rem ") : t.style.setProperty("margin", " 0.1rem 0");
10012
+ });
10001
10013
  }
10002
10014
  mainSlotChange() {
10003
- this.setChildrenSize(this.menuChildren), this.updateIsScollable();
10015
+ this.setChildrenSize(this.menuChildren), this.setDividersSize(this.menuChildren), this.updateIsScollable(), this.updateScrollPosition(), this.observeMenuItemsAttributes();
10016
+ }
10017
+ observeMenuItemsAttributes() {
10018
+ this.attributeObserver?.disconnect(), this.attributeObserver = new MutationObserver(() => {
10019
+ this.updateScrollPosition();
10020
+ }), this.menuChildren.forEach((r) => {
10021
+ this.attributeObserver.observe(r, {
10022
+ attributes: !0,
10023
+ attributeFilter: ["active"]
10024
+ });
10025
+ });
10026
+ }
10027
+ updateScrollPosition() {
10028
+ if (this.scrollable) {
10029
+ const r = this.menuChildren.filter(
10030
+ (t) => t.hasAttribute("active") && t.getAttribute("active") !== "false"
10031
+ );
10032
+ r.length === 1 && requestAnimationFrame(() => {
10033
+ r[0].scrollIntoView({
10034
+ behavior: "smooth",
10035
+ block: "nearest",
10036
+ inline: "center"
10037
+ });
10038
+ });
10039
+ }
10004
10040
  }
10005
10041
  connectedCallback() {
10006
10042
  this.observer = new ResizeObserver(this.updateIsScollable), this.observer.observe(this), super.connectedCallback();
10007
10043
  }
10044
+ firstUpdated(r) {
10045
+ this.menuContent.addEventListener("scrollend", this.handleScrollEnd);
10046
+ }
10008
10047
  disconnectedCallback() {
10009
- this.observer?.disconnect(), super.disconnectedCallback();
10048
+ this.observer?.disconnect(), this.attributeObserver?.disconnect(), this.menuContent.removeEventListener("scrollend", this.handleScrollEnd), super.disconnectedCallback();
10010
10049
  }
10011
10050
  initScrollable() {
10012
10051
  let r = !1, t, i;
10013
10052
  this.scrollable && (this.addEventListener("mousedown", (s) => {
10014
- r = !0, this.classList.add("active"), t = s.pageX - this.offsetLeft, i = this.scrollLeft;
10053
+ r = !0, this.classList.add("active"), t = s.pageX - this.menuContent.offsetLeft, i = this.menuContent.scrollLeft;
10015
10054
  }), this.addEventListener("mouseleave", () => {
10016
10055
  r = !1, this.classList.remove("active");
10017
10056
  }), this.addEventListener("mouseup", () => {
@@ -10019,10 +10058,10 @@ let ut = class extends w {
10019
10058
  }), this.addEventListener("mousemove", (s) => {
10020
10059
  if (!r) return;
10021
10060
  s.preventDefault();
10022
- const o = (s.pageX - this.offsetLeft - t) * 1.5;
10023
- this.scrollLeft = i - o, this.setScrollShadow(this, this.direction);
10061
+ const o = (s.pageX - this.menuContent.offsetLeft - t) * 1.5;
10062
+ this.menuContent.scrollLeft = i - o, this.setScrollShadow(this.menuContent, this.direction);
10024
10063
  }), this.addEventListener("scroll", (s) => {
10025
- s.preventDefault(), this.setScrollShadow(this, this.direction);
10064
+ s.preventDefault(), this.setScrollShadow(this.menuContent, this.direction);
10026
10065
  }));
10027
10066
  }
10028
10067
  setScrollShadow(r, t) {
@@ -10036,28 +10075,34 @@ let ut = class extends w {
10036
10075
  render() {
10037
10076
  const r = {
10038
10077
  minWidth: this.minWidth,
10039
- flexDirection: this.direction,
10040
- gap: this.gap
10078
+ flexDirection: this.direction
10041
10079
  }, t = this.direction == "row", i = {
10080
+ gap: this.gap,
10081
+ flexDirection: this.direction
10082
+ }, s = {
10042
10083
  display: "block",
10043
10084
  alignSelf: t ? "center" : "flex-start",
10044
10085
  justifySelf: "center",
10045
10086
  flexDirection: this.direction
10046
- }, s = {
10087
+ }, e = {
10047
10088
  marginLeft: t ? "" : ".55em"
10048
10089
  };
10049
- return g`<menu
10090
+ return m`<menu
10050
10091
  part="menu"
10051
10092
  class="shadowable"
10052
- style=${mt(r)}
10093
+ style=${ut(r)}
10053
10094
  >
10054
- <slot @slotchange=${this.mainSlotChange}></slot>
10095
+ <slot
10096
+ @slotchange=${this.mainSlotChange}
10097
+ id="menu-content"
10098
+ style=${ut(i)}
10099
+ ></slot>
10055
10100
  <sonic-pop
10056
- style=${mt(i)}
10101
+ style=${ut(s)}
10057
10102
  class=${this.hasMoreElements ? "" : "hidden"}
10058
10103
  >
10059
10104
  <sonic-menu-item
10060
- style=${mt(s)}
10105
+ style=${ut(e)}
10061
10106
  class="more-btn"
10062
10107
  shape=${this.moreShape}
10063
10108
  align="center"
@@ -10067,12 +10112,16 @@ let ut = class extends w {
10067
10112
  name=${t ? "more-vert" : "more-horiz"}
10068
10113
  ></sonic-icon>
10069
10114
  </sonic-menu-item>
10070
- <slot name="more" @slotchange=${this.checkIfMore} slot="content"></slot>
10115
+ <slot
10116
+ name="more"
10117
+ @slotchange=${this.moreSlotChange}
10118
+ slot="content"
10119
+ ></slot>
10071
10120
  </sonic-pop>
10072
10121
  </menu>`;
10073
10122
  }
10074
10123
  };
10075
- ut.styles = [
10124
+ ht.styles = [
10076
10125
  P`
10077
10126
  :host {
10078
10127
  display: block;
@@ -10081,9 +10130,8 @@ ut.styles = [
10081
10130
 
10082
10131
  :host > menu {
10083
10132
  display: flex;
10084
- border-radius: min(calc(var(--sc-btn-rounded) * 2), 0.4em);
10133
+ padding: 0;
10085
10134
  margin: 0;
10086
- padding: 0.35em;
10087
10135
  }
10088
10136
 
10089
10137
  .hidden {
@@ -10091,26 +10139,36 @@ ut.styles = [
10091
10139
  }
10092
10140
 
10093
10141
  /* SCROLLABLE*/
10094
- :host([scrollable]) {
10142
+ #menu-content {
10143
+ display: flex;
10144
+ padding: 0.35em;
10145
+ margin: 0;
10146
+ }
10147
+
10148
+ :host([scrollable]) #menu-content {
10095
10149
  scrollbar-width: none;
10150
+ max-width: 100%;
10096
10151
  -ms-overflow-style: none;
10097
- }
10098
- :host([scrollable]) menu > * {
10099
10152
  scroll-snap-align: start;
10100
10153
  white-space: nowrap;
10154
+ border-radius: min(calc(var(--sc-btn-rounded) * 2), 0.4em);
10155
+ transition: mask-image 0.15s linear;
10101
10156
  }
10102
- :host([scrollable][direction="row"]) {
10157
+
10158
+ :host([scrollable][direction="row"]) #menu-content {
10103
10159
  overflow-x: scroll;
10160
+ scroll-snap-align: start;
10104
10161
  scroll-snap-type: x mandatory;
10105
10162
  }
10106
- :host([scrollable][direction="column"]) {
10163
+ :host([scrollable][direction="column"]) #menu-content {
10107
10164
  overflow-y: scroll;
10165
+ scroll-snap-align: start;
10108
10166
  scroll-snap-type: y mandatory;
10109
10167
  }
10110
10168
  :host([scrollable])::-webkit-scrollbar {
10111
10169
  display: none !important;
10112
10170
  }
10113
- :host([scrollable][direction="row"].shadow-right) {
10171
+ :host([scrollable][direction="row"].shadow-right) #menu-content {
10114
10172
  -webkit-mask-image: linear-gradient(
10115
10173
  to left,
10116
10174
  rgba(0, 0, 0, 0),
@@ -10122,7 +10180,7 @@ ut.styles = [
10122
10180
  rgba(0, 0, 0, 1) 10%
10123
10181
  );
10124
10182
  }
10125
- :host([scrollable][direction="row"].shadow-left) {
10183
+ :host([scrollable][direction="row"].shadow-left) #menu-content {
10126
10184
  -webkit-mask-image: linear-gradient(
10127
10185
  to right,
10128
10186
  rgba(0, 0, 0, 0),
@@ -10134,7 +10192,8 @@ ut.styles = [
10134
10192
  rgba(0, 0, 0, 1) 10%
10135
10193
  );
10136
10194
  }
10137
- :host([scrollable][direction="row"].shadow-left.shadow-right) {
10195
+ :host([scrollable][direction="row"].shadow-left.shadow-right)
10196
+ #menu-content {
10138
10197
  -webkit-mask-image: linear-gradient(
10139
10198
  to right,
10140
10199
  rgba(0, 0, 0, 0) 0%,
@@ -10150,7 +10209,7 @@ ut.styles = [
10150
10209
  rgba(0, 0, 0, 0) 100%
10151
10210
  );
10152
10211
  }
10153
- :host([scrollable][direction="column"].shadow-top) {
10212
+ :host([scrollable][direction="column"].shadow-top) #menu-content {
10154
10213
  -webkit-mask-image: linear-gradient(
10155
10214
  to bottom,
10156
10215
  rgba(0, 0, 0, 0),
@@ -10162,7 +10221,7 @@ ut.styles = [
10162
10221
  rgba(0, 0, 0, 1) 10%
10163
10222
  );
10164
10223
  }
10165
- :host([scrollable][direction="column"].shadow-bottom) {
10224
+ :host([scrollable][direction="column"].shadow-bottom) #menu-content {
10166
10225
  -webkit-mask-image: linear-gradient(
10167
10226
  to top,
10168
10227
  rgba(0, 0, 0, 0),
@@ -10174,7 +10233,8 @@ ut.styles = [
10174
10233
  rgba(0, 0, 0, 1) 10%
10175
10234
  );
10176
10235
  }
10177
- :host([scrollable][direction="column"].shadow-top.shadow-bottom) {
10236
+ :host([scrollable][direction="column"].shadow-top.shadow-bottom)
10237
+ #menu-content {
10178
10238
  -webkit-mask-image: linear-gradient(
10179
10239
  to top,
10180
10240
  rgba(0, 0, 0, 0) 0%,
@@ -10193,49 +10253,52 @@ ut.styles = [
10193
10253
  `,
10194
10254
  Er
10195
10255
  ];
10196
- wt([
10256
+ vt([
10197
10257
  a({ type: String, reflect: !0 })
10198
- ], ut.prototype, "size", 2);
10199
- wt([
10258
+ ], ht.prototype, "size", 2);
10259
+ vt([
10200
10260
  a({ type: String, reflect: !0 })
10201
- ], ut.prototype, "direction", 2);
10202
- wt([
10261
+ ], ht.prototype, "direction", 2);
10262
+ vt([
10203
10263
  a({ type: String })
10204
- ], ut.prototype, "gap", 2);
10205
- wt([
10264
+ ], ht.prototype, "gap", 2);
10265
+ vt([
10206
10266
  a({ type: String, reflect: !0 })
10207
- ], ut.prototype, "align", 2);
10208
- wt([
10267
+ ], ht.prototype, "align", 2);
10268
+ vt([
10209
10269
  a({ type: String, reflect: !0 })
10210
- ], ut.prototype, "shadow", 2);
10211
- wt([
10270
+ ], ht.prototype, "shadow", 2);
10271
+ vt([
10212
10272
  a({ type: String })
10213
- ], ut.prototype, "moreShape", 2);
10214
- wt([
10273
+ ], ht.prototype, "moreShape", 2);
10274
+ vt([
10215
10275
  a({ type: Boolean })
10216
- ], ut.prototype, "scrollable", 2);
10217
- wt([
10276
+ ], ht.prototype, "scrollable", 2);
10277
+ vt([
10218
10278
  a({ type: String })
10219
- ], ut.prototype, "minWidth", 2);
10220
- wt([
10221
- Ae("menu")
10222
- ], ut.prototype, "menu", 2);
10223
- wt([
10224
- ke({ selector: "sonic-menu-item" })
10225
- ], ut.prototype, "menuChildren", 2);
10226
- wt([
10279
+ ], ht.prototype, "minWidth", 2);
10280
+ vt([
10281
+ ge("menu")
10282
+ ], ht.prototype, "menu", 2);
10283
+ vt([
10284
+ ge("#menu-content")
10285
+ ], ht.prototype, "menuContent", 2);
10286
+ vt([
10287
+ ke({ selector: "*" })
10288
+ ], ht.prototype, "menuChildren", 2);
10289
+ vt([
10227
10290
  ke({ slot: "more", selector: "*" })
10228
- ], ut.prototype, "moreElements", 2);
10229
- wt([
10291
+ ], ht.prototype, "moreElements", 2);
10292
+ vt([
10230
10293
  L()
10231
- ], ut.prototype, "hasMoreElements", 2);
10232
- ut = wt([
10233
- _(gc)
10234
- ], ut);
10235
- var mc = Object.defineProperty, bc = Object.getOwnPropertyDescriptor, Tr = (r, t, i, s) => {
10294
+ ], ht.prototype, "hasMoreElements", 2);
10295
+ ht = vt([
10296
+ _(mc)
10297
+ ], ht);
10298
+ var gc = Object.defineProperty, bc = Object.getOwnPropertyDescriptor, Tr = (r, t, i, s) => {
10236
10299
  for (var e = s > 1 ? void 0 : s ? bc(t, i) : t, o = r.length - 1, n; o >= 0; o--)
10237
10300
  (n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
10238
- return s && e && mc(t, i, e), e;
10301
+ return s && e && gc(t, i, e), e;
10239
10302
  };
10240
10303
  const vc = "sonic-modal-actions";
10241
10304
  let $s = class extends w {
@@ -10250,7 +10313,7 @@ let $s = class extends w {
10250
10313
  }), super.firstUpdated(r);
10251
10314
  }
10252
10315
  render() {
10253
- return g`<slot></slot>`;
10316
+ return m`<slot></slot>`;
10254
10317
  }
10255
10318
  };
10256
10319
  $s.styles = [
@@ -10289,7 +10352,7 @@ let Cs = class extends w {
10289
10352
  super.connectedCallback(), this.lang = document.documentElement.lang?.split("-")[0] ?? "fr";
10290
10353
  }
10291
10354
  render() {
10292
- return g`<sonic-button
10355
+ return m`<sonic-button
10293
10356
  aria-label=${this.translation[this.lang]}
10294
10357
  reset=${$(this.reset)}
10295
10358
  shape="circle"
@@ -10318,7 +10381,7 @@ var xc = Object.getOwnPropertyDescriptor, Pc = (r, t, i, s) => {
10318
10381
  const $c = "sonic-modal-content";
10319
10382
  let Js = class extends w {
10320
10383
  render() {
10321
- return g`<slot></slot>`;
10384
+ return m`<slot></slot>`;
10322
10385
  }
10323
10386
  };
10324
10387
  Js.styles = [
@@ -10340,7 +10403,7 @@ var Cc = Object.getOwnPropertyDescriptor, Sc = (r, t, i, s) => {
10340
10403
  const Ac = "sonic-modal-subtitle";
10341
10404
  let ti = class extends w {
10342
10405
  render() {
10343
- return g`<slot></slot>`;
10406
+ return m`<slot></slot>`;
10344
10407
  }
10345
10408
  };
10346
10409
  ti.styles = [
@@ -10369,7 +10432,7 @@ var kc = Object.getOwnPropertyDescriptor, Oc = (r, t, i, s) => {
10369
10432
  const Dc = "sonic-modal-title";
10370
10433
  let ei = class extends w {
10371
10434
  render() {
10372
- return g`<slot></slot>`;
10435
+ return m`<slot></slot>`;
10373
10436
  }
10374
10437
  };
10375
10438
  ei.styles = [
@@ -10410,7 +10473,7 @@ let M = class extends Z(w) {
10410
10473
  }
10411
10474
  static create(r) {
10412
10475
  const t = document.createElement(Mr);
10413
- return t.options = r, r.removeHashOnHide === !0 && t.setAttribute("removeHashOnHide", "true"), r.removeOnHide === !0 && t.setAttribute("removeOnHide", "true"), r.closeOnLocationChange === !0 && t.setAttribute("closeOnLocationChange", "true"), r.maxWidth && (t.maxWidth = r?.maxWidth), r.width && (t.width = r?.width), r.maxHeight && (t.maxHeight = r?.maxHeight), r.height && (t.height = r?.height), r.forceAction && (t.forceAction = !0), r.fullScreen && (t.fullScreen = r?.fullScreen), r.effect && (t.effect = r?.effect), r.noCloseButton && (t.noCloseButton = !0), r.paddingX && (t.paddingX = r?.paddingX), r.paddingY && (t.paddingY = r?.paddingY), r.zIndex && (t.zIndex = r?.zIndex), vt.getPopContainer().appendChild(t), t.updateComplete.then(() => {
10476
+ return t.options = r, r.removeHashOnHide === !0 && t.setAttribute("removeHashOnHide", "true"), r.removeOnHide === !0 && t.setAttribute("removeOnHide", "true"), r.closeOnLocationChange === !0 && t.setAttribute("closeOnLocationChange", "true"), r.maxWidth && (t.maxWidth = r?.maxWidth), r.width && (t.width = r?.width), r.maxHeight && (t.maxHeight = r?.maxHeight), r.height && (t.height = r?.height), r.forceAction && (t.forceAction = !0), r.fullScreen && (t.fullScreen = r?.fullScreen), r.effect && (t.effect = r?.effect), r.noCloseButton && (t.noCloseButton = !0), r.paddingX && (t.paddingX = r?.paddingX), r.paddingY && (t.paddingY = r?.paddingY), r.zIndex && (t.zIndex = r?.zIndex), yt.getPopContainer().appendChild(t), t.updateComplete.then(() => {
10414
10477
  t.show();
10415
10478
  }), t;
10416
10479
  }
@@ -10456,26 +10519,26 @@ let M = class extends Z(w) {
10456
10519
  maxHeight: this.maxHeight,
10457
10520
  width: this.width,
10458
10521
  height: this.height,
10459
- pointerEvents: this._animationState === "visible" ? "auto" : "none"
10522
+ pointerEvents: this._animationState !== "hidden" ? "auto" : "none"
10460
10523
  }, t = {
10461
10524
  display: this.fullScreen ? "none" : "block",
10462
10525
  pointerEvents: this._animationState === "visible" ? "auto" : "none"
10463
10526
  };
10464
- return g`
10527
+ return m`
10465
10528
  <div
10466
10529
  id="backdrop"
10467
10530
  @click=${this.handleOverlayClick}
10468
- style=${mt(t)}
10531
+ style=${ut(t)}
10469
10532
  ></div>
10470
10533
  <dialog
10471
10534
  id="modal"
10472
10535
  part="modal"
10473
10536
  class="custom-scroll"
10474
10537
  aria-modal="true"
10475
- style=${mt(r)}
10538
+ style=${ut(r)}
10476
10539
  >
10477
- ${this._animationState !== "hidden" ? g`<div id="modal-content">
10478
- ${!this.forceAction && !this.noCloseButton ? g`<sonic-modal-close></sonic-modal-close>` : S}
10540
+ ${this._animationState !== "hidden" ? m`<div id="modal-content">
10541
+ ${!this.forceAction && !this.noCloseButton ? m`<sonic-modal-close></sonic-modal-close>` : S}
10479
10542
  ${this.modalFragment("title")} ${this.modalFragment("subtitle")}
10480
10543
  ${this.modalFragment("content")} ${this.modalFragment("actions")}
10481
10544
  <slot></slot>
@@ -10489,13 +10552,13 @@ let M = class extends Z(w) {
10489
10552
  let i;
10490
10553
  switch (t instanceof Object ? i = t : i = z(t), r) {
10491
10554
  case "title":
10492
- return g`<sonic-modal-title>${i}</sonic-modal-title>`;
10555
+ return m`<sonic-modal-title>${i}</sonic-modal-title>`;
10493
10556
  case "subtitle":
10494
- return g`<sonic-modal-subtitle>${i}</sonic-modal-subtitle>`;
10557
+ return m`<sonic-modal-subtitle>${i}</sonic-modal-subtitle>`;
10495
10558
  case "content":
10496
- return g`<sonic-modal-content>${i}</sonic-modal-content>`;
10559
+ return m`<sonic-modal-content>${i}</sonic-modal-content>`;
10497
10560
  case "actions":
10498
- return g`<sonic-modal-actions>${i}</sonic-modal-actions>`;
10561
+ return m`<sonic-modal-actions>${i}</sonic-modal-actions>`;
10499
10562
  default:
10500
10563
  return S;
10501
10564
  }
@@ -10537,35 +10600,35 @@ let M = class extends Z(w) {
10537
10600
  return new Promise((t) => {
10538
10601
  const { quartOut: i, linear: s, translateY: e, durationIn: o, durationOut: n, quadOut: l } = this._animationConfig, c = this._modalElement;
10539
10602
  if (!c) return t();
10540
- const h = r === "in", f = h ? o : n, d = !this.fullScreen && h ? 100 : 0;
10603
+ const h = r === "in", u = h ? o : n, d = !this.fullScreen && h ? 100 : 0;
10541
10604
  this.fullScreen || (h ? this.style.setProperty("--sc_backdrop-opacity", "0.8") : setTimeout(() => {
10542
10605
  this.style.setProperty("--sc_backdrop-opacity", "0");
10543
10606
  }, 150));
10544
- const m = [];
10545
- this.effect === "slide" && (m.push(
10607
+ const g = [];
10608
+ this.effect === "slide" && (g.push(
10546
10609
  c.animate(
10547
10610
  [
10548
10611
  { transform: h ? e : "translateY(0)" },
10549
10612
  { transform: h ? "translateY(0)" : e }
10550
10613
  ],
10551
10614
  {
10552
- duration: f,
10615
+ duration: u,
10553
10616
  easing: h ? i : l,
10554
10617
  fill: "both",
10555
10618
  delay: d
10556
10619
  }
10557
10620
  )
10558
- ), m.push(
10621
+ ), g.push(
10559
10622
  c.animate(
10560
10623
  [{ opacity: h ? 0 : 1 }, { opacity: h ? 1 : 0 }],
10561
10624
  {
10562
- duration: f,
10625
+ duration: u,
10563
10626
  easing: s,
10564
10627
  fill: "both",
10565
10628
  delay: d
10566
10629
  }
10567
10630
  )
10568
- )), Promise.all(m.map((v) => v.finished)).then(
10631
+ )), Promise.all(g.map((v) => v.finished)).then(
10569
10632
  () => t()
10570
10633
  );
10571
10634
  });
@@ -10650,12 +10713,12 @@ M.styles = [
10650
10713
  /* Layout des éléments slottés */
10651
10714
  ::slotted(sonic-modal-title),
10652
10715
  sonic-modal-title {
10653
- margin-bottom: 1.75rem;
10716
+ margin-bottom: 1.2rem;
10654
10717
  }
10655
10718
  ::slotted(sonic-modal-subtitle),
10656
10719
  sonic-modal-subtitle {
10657
- margin-bottom: 1.75rem;
10658
- margin-top: -1.25rem;
10720
+ margin-bottom: 1.2rem;
10721
+ margin-top: -1rem;
10659
10722
  }
10660
10723
 
10661
10724
  :host([align="left"]) ::slotted(sonic-modal-title),
@@ -10759,7 +10822,7 @@ G([
10759
10822
  a({ type: Boolean, reflect: !0 })
10760
10823
  ], M.prototype, "visible", 2);
10761
10824
  G([
10762
- Ae("#modal")
10825
+ ge("#modal")
10763
10826
  ], M.prototype, "_modalElement", 2);
10764
10827
  G([
10765
10828
  a({ type: Boolean })
@@ -10798,17 +10861,17 @@ let Ct = class extends w {
10798
10861
  super.connectedCallback();
10799
10862
  }
10800
10863
  render() {
10801
- return g`
10864
+ return m`
10802
10865
  <slot name="icon" class="${this.noIcon ? "hidden" : ""}"
10803
- >${this.noIcon ? S : g`<div>
10804
- ${this.status && g`<sonic-icon name=${Mc[this.status]}></sonic-icon>`}
10866
+ >${this.noIcon ? S : m`<div>
10867
+ ${this.status && m`<sonic-icon name=${Mc[this.status]}></sonic-icon>`}
10805
10868
  </div>`}</slot
10806
10869
  >
10807
10870
  <div class="content">
10808
- ${this.label ? g`<span class="label">${z(this.label)}</span>` : S}
10871
+ ${this.label ? m`<span class="label">${z(this.label)}</span>` : S}
10809
10872
  <div>${this.text}<slot></slot></div>
10810
10873
  </div>
10811
- ${this.dismissible ? g`<sonic-button
10874
+ ${this.dismissible ? m`<sonic-button
10812
10875
  @click=${this.close}
10813
10876
  class="close-btn"
10814
10877
  variant="unstyled"
@@ -10961,8 +11024,8 @@ let ue = class extends Z(w) {
10961
11024
  super(...arguments), this.size = "md", this.background = !1, this.noIcon = !1, this.messages = [];
10962
11025
  }
10963
11026
  render() {
10964
- return this.messages?.length ? g`<div class="container">
10965
- ${Or(this.messages, (r) => r.type == "public" ? g`<sonic-alert
11027
+ return this.messages?.length ? m`<div class="container">
11028
+ ${Or(this.messages, (r) => r.type == "public" ? m`<sonic-alert
10966
11029
  status=${r.status || "default"}
10967
11030
  text=${$(r.content)}
10968
11031
  size=${this.size}
@@ -11044,7 +11107,7 @@ let fe = class extends w {
11044
11107
  }
11045
11108
  render() {
11046
11109
  const r = this.disabled || this.label == "" ? "disabled" : "";
11047
- return g`<div
11110
+ return m`<div
11048
11111
  data-tooltip-text="${this.label.trim().replace("&nbsp;", " ")}"
11049
11112
  class="tooltip ${r}"
11050
11113
  >
@@ -11191,7 +11254,7 @@ let St = class extends w {
11191
11254
  super.firstUpdated(r), (this.label || this.slotNodes?.length) && this.divider?.classList.add("has-text");
11192
11255
  }
11193
11256
  render() {
11194
- return g`<div part="divider">
11257
+ return m`<div part="divider">
11195
11258
  <span class="text"
11196
11259
  >${z(this.label ? this.label : "")}<slot></slot
11197
11260
  ></span>
@@ -11333,10 +11396,10 @@ St.styles = [
11333
11396
  `
11334
11397
  ];
11335
11398
  Ut([
11336
- ht({ flatten: !0 })
11399
+ dt({ flatten: !0 })
11337
11400
  ], St.prototype, "slotNodes", 2);
11338
11401
  Ut([
11339
- Ae("div")
11402
+ ge("div")
11340
11403
  ], St.prototype, "divider", 2);
11341
11404
  Ut([
11342
11405
  a({ type: String })
@@ -11370,7 +11433,7 @@ var Xc = Object.getOwnPropertyDescriptor, Zc = (r, t, i, s) => {
11370
11433
  const Gc = "sonic-card-header-description";
11371
11434
  let ii = class extends w {
11372
11435
  render() {
11373
- return g`<slot></slot>`;
11436
+ return m`<slot></slot>`;
11374
11437
  }
11375
11438
  };
11376
11439
  ii.styles = [
@@ -11395,10 +11458,10 @@ var Qc = Object.defineProperty, Jc = Object.getOwnPropertyDescriptor, Li = (r, t
11395
11458
  const th = "sonic-card-header";
11396
11459
  let Ge = class extends w {
11397
11460
  render() {
11398
- return g`
11461
+ return m`
11399
11462
  <div class="header-content">
11400
11463
  ${z(this.label)}
11401
- ${this.description ? g`<sonic-card-header-description
11464
+ ${this.description ? m`<sonic-card-header-description
11402
11465
  >${z(this.description)}</sonic-card-header-description
11403
11466
  >` : S}
11404
11467
  <slot></slot>
@@ -11465,7 +11528,7 @@ var eh = Object.getOwnPropertyDescriptor, sh = (r, t, i, s) => {
11465
11528
  const ih = "sonic-card-main";
11466
11529
  let ri = class extends w {
11467
11530
  render() {
11468
- return g`<slot></slot>`;
11531
+ return m`<slot></slot>`;
11469
11532
  }
11470
11533
  };
11471
11534
  ri.styles = [
@@ -11486,7 +11549,7 @@ var rh = Object.getOwnPropertyDescriptor, oh = (r, t, i, s) => {
11486
11549
  const nh = "sonic-card-footer";
11487
11550
  let oi = class extends w {
11488
11551
  render() {
11489
- return g` <slot></slot> `;
11552
+ return m` <slot></slot> `;
11490
11553
  }
11491
11554
  };
11492
11555
  oi.styles = [
@@ -11599,7 +11662,7 @@ let Ss = class extends w {
11599
11662
  super(...arguments), this.type = "base";
11600
11663
  }
11601
11664
  render() {
11602
- return g`<slot></slot> `;
11665
+ return m`<slot></slot> `;
11603
11666
  }
11604
11667
  };
11605
11668
  Ss.styles = [
@@ -11648,7 +11711,7 @@ var dh = Object.defineProperty, ph = Object.getOwnPropertyDescriptor, as = (r, t
11648
11711
  return s && e && dh(t, i, e), e;
11649
11712
  };
11650
11713
  const uh = "sonic-tr";
11651
- let ge = class extends Z(w) {
11714
+ let me = class extends Z(w) {
11652
11715
  constructor() {
11653
11716
  super(...arguments), this._metadata_ = {};
11654
11717
  }
@@ -11656,10 +11719,10 @@ let ge = class extends Z(w) {
11656
11719
  r.has("_metadata_") && (this.even = !!this._metadata_.even, this.odd = !!this._metadata_.odd, this.last = !!this._metadata_.lastChild), super.willUpdate(r);
11657
11720
  }
11658
11721
  render() {
11659
- return g`<slot></slot>`;
11722
+ return m`<slot></slot>`;
11660
11723
  }
11661
11724
  };
11662
- ge.styles = [
11725
+ me.styles = [
11663
11726
  Ei,
11664
11727
  P`
11665
11728
  :host {
@@ -11683,26 +11746,26 @@ ge.styles = [
11683
11746
  ];
11684
11747
  as([
11685
11748
  a({ type: Object })
11686
- ], ge.prototype, "_metadata_", 2);
11749
+ ], me.prototype, "_metadata_", 2);
11687
11750
  as([
11688
11751
  a({ type: Boolean, reflect: !0 })
11689
- ], ge.prototype, "even", 2);
11752
+ ], me.prototype, "even", 2);
11690
11753
  as([
11691
11754
  a({ type: Boolean, reflect: !0 })
11692
- ], ge.prototype, "odd", 2);
11755
+ ], me.prototype, "odd", 2);
11693
11756
  as([
11694
11757
  a({ type: Boolean, reflect: !0 })
11695
- ], ge.prototype, "last", 2);
11696
- ge = as([
11758
+ ], me.prototype, "last", 2);
11759
+ me = as([
11697
11760
  _(uh)
11698
- ], ge);
11699
- var fh = Object.defineProperty, gh = Object.getOwnPropertyDescriptor, ye = (r, t, i, s) => {
11700
- for (var e = s > 1 ? void 0 : s ? gh(t, i) : t, o = r.length - 1, n; o >= 0; o--)
11761
+ ], me);
11762
+ var fh = Object.defineProperty, mh = Object.getOwnPropertyDescriptor, we = (r, t, i, s) => {
11763
+ for (var e = s > 1 ? void 0 : s ? mh(t, i) : t, o = r.length - 1, n; o >= 0; o--)
11701
11764
  (n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
11702
11765
  return s && e && fh(t, i, e), e;
11703
11766
  };
11704
- const mh = "sonic-th";
11705
- let Ht = class extends w {
11767
+ const gh = "sonic-th";
11768
+ let Wt = class extends w {
11706
11769
  render() {
11707
11770
  const r = {
11708
11771
  textAlign: this.align,
@@ -11710,9 +11773,9 @@ let Ht = class extends w {
11710
11773
  maxWidth: this.maxWidth,
11711
11774
  width: this.width
11712
11775
  };
11713
- return g`<th
11776
+ return m`<th
11714
11777
  part="th"
11715
- style=${mt(r)}
11778
+ style=${ut(r)}
11716
11779
  colspan=${$(this.colSpan)}
11717
11780
  rowspan=${$(this.rowSpan)}
11718
11781
  >
@@ -11720,7 +11783,7 @@ let Ht = class extends w {
11720
11783
  </th> `;
11721
11784
  }
11722
11785
  };
11723
- Ht.styles = [
11786
+ Wt.styles = [
11724
11787
  Ei,
11725
11788
  P`
11726
11789
  :host {
@@ -11747,27 +11810,27 @@ Ht.styles = [
11747
11810
  }
11748
11811
  `
11749
11812
  ];
11750
- ye([
11813
+ we([
11751
11814
  a({ type: Number })
11752
- ], Ht.prototype, "colSpan", 2);
11753
- ye([
11815
+ ], Wt.prototype, "colSpan", 2);
11816
+ we([
11754
11817
  a({ type: Number })
11755
- ], Ht.prototype, "rowSpan", 2);
11756
- ye([
11818
+ ], Wt.prototype, "rowSpan", 2);
11819
+ we([
11757
11820
  a({ type: String })
11758
- ], Ht.prototype, "align", 2);
11759
- ye([
11821
+ ], Wt.prototype, "align", 2);
11822
+ we([
11760
11823
  a({ type: String })
11761
- ], Ht.prototype, "minWidth", 2);
11762
- ye([
11824
+ ], Wt.prototype, "minWidth", 2);
11825
+ we([
11763
11826
  a({ type: String })
11764
- ], Ht.prototype, "maxWidth", 2);
11765
- ye([
11827
+ ], Wt.prototype, "maxWidth", 2);
11828
+ we([
11766
11829
  a({ type: String })
11767
- ], Ht.prototype, "width", 2);
11768
- Ht = ye([
11769
- _(mh)
11770
- ], Ht);
11830
+ ], Wt.prototype, "width", 2);
11831
+ Wt = we([
11832
+ _(gh)
11833
+ ], Wt);
11771
11834
  var bh = Object.defineProperty, vh = Object.getOwnPropertyDescriptor, re = (r, t, i, s) => {
11772
11835
  for (var e = s > 1 ? void 0 : s ? vh(t, i) : t, o = r.length - 1, n; o >= 0; o--)
11773
11836
  (n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
@@ -11783,7 +11846,7 @@ let Tt = class extends w {
11783
11846
  maxWidth: this.maxWidth,
11784
11847
  width: this.width
11785
11848
  };
11786
- return g`<td part="td" style=${mt(r)} colspan=${$(this.colSpan)} rowspan=${$(this.rowSpan)}>
11849
+ return m`<td part="td" style=${ut(r)} colspan=${$(this.colSpan)} rowspan=${$(this.rowSpan)}>
11787
11850
  <slot></slot>
11788
11851
  </td>`;
11789
11852
  }
@@ -11837,7 +11900,7 @@ var wh = Object.getOwnPropertyDescriptor, _h = (r, t, i, s) => {
11837
11900
  const xh = "sonic-thead";
11838
11901
  let ni = class extends w {
11839
11902
  render() {
11840
- return g`<slot></slot>`;
11903
+ return m`<slot></slot>`;
11841
11904
  }
11842
11905
  };
11843
11906
  ni.styles = [
@@ -11858,7 +11921,7 @@ var Ph = Object.getOwnPropertyDescriptor, $h = (r, t, i, s) => {
11858
11921
  const Ch = "sonic-tbody";
11859
11922
  let ai = class extends w {
11860
11923
  render() {
11861
- return g`<tbody part="tbody">
11924
+ return m`<tbody part="tbody">
11862
11925
  <slot></slot>
11863
11926
  </tbody>`;
11864
11927
  }
@@ -11894,7 +11957,7 @@ var Sh = Object.getOwnPropertyDescriptor, Ah = (r, t, i, s) => {
11894
11957
  const kh = "sonic-tfoot";
11895
11958
  let li = class extends w {
11896
11959
  render() {
11897
- return g`<tfoot>
11960
+ return m`<tfoot>
11898
11961
  <slot></slot>
11899
11962
  </tfoot>`;
11900
11963
  }
@@ -11917,7 +11980,7 @@ var Oh = Object.getOwnPropertyDescriptor, Dh = (r, t, i, s) => {
11917
11980
  const Lh = "sonic-caption";
11918
11981
  let ci = class extends w {
11919
11982
  render() {
11920
- return g`<slot></slot>`;
11983
+ return m`<slot></slot>`;
11921
11984
  }
11922
11985
  };
11923
11986
  ci.styles = [
@@ -11944,10 +12007,10 @@ let te = class extends w {
11944
12007
  const r = {
11945
12008
  maxHeight: this.maxHeight
11946
12009
  };
11947
- return g`
12010
+ return m`
11948
12011
  <div
11949
12012
  class="table-container ${this.noCustomScroll ? "" : "custom-scroll"}"
11950
- style=${mt(r)}
12013
+ style=${ut(r)}
11951
12014
  >
11952
12015
  <div class="table">
11953
12016
  <slot></slot>
@@ -12282,7 +12345,7 @@ var Rh = Object.defineProperty, Uh = Object.getOwnPropertyDescriptor, Is = (r, t
12282
12345
  const Vh = "supersoniks_altcha", Bh = "Si2\\]X8M4!n9DCLd";
12283
12346
  let hr = !1;
12284
12347
  const qh = "sonic-captcha";
12285
- let Se = class extends se(w) {
12348
+ let Ae = class extends se(w) {
12286
12349
  constructor() {
12287
12350
  super(...arguments), this.key = "", this.action = null, this.zIndex = 9999, this.onCaptchaTokenChanged = (r) => {
12288
12351
  r == "request_token" && (this.formPublisher && (this.formPublisher.captchaToken = ""), this.requestToken());
@@ -12340,7 +12403,7 @@ let Se = class extends se(w) {
12340
12403
  verifying: "Verifying...",
12341
12404
  wait: "Verifying... Please wait."
12342
12405
  };
12343
- return g`
12406
+ return m`
12344
12407
  <form>
12345
12408
  <altcha-widget
12346
12409
  challengeurl="${this.chalengeUrl}?key=${this.key}&maxNumber=${this.maxNumber}"
@@ -12355,7 +12418,7 @@ let Se = class extends se(w) {
12355
12418
  `;
12356
12419
  }
12357
12420
  };
12358
- Se.styles = [
12421
+ Ae.styles = [
12359
12422
  zh,
12360
12423
  P`
12361
12424
  :host {
@@ -12380,16 +12443,16 @@ Se.styles = [
12380
12443
  ];
12381
12444
  Is([
12382
12445
  a()
12383
- ], Se.prototype, "key", 2);
12446
+ ], Ae.prototype, "key", 2);
12384
12447
  Is([
12385
12448
  a()
12386
- ], Se.prototype, "action", 2);
12449
+ ], Ae.prototype, "action", 2);
12387
12450
  Is([
12388
12451
  a({ type: Number })
12389
- ], Se.prototype, "zIndex", 2);
12390
- Se = Is([
12452
+ ], Ae.prototype, "zIndex", 2);
12453
+ Ae = Is([
12391
12454
  _(qh)
12392
- ], Se);
12455
+ ], Ae);
12393
12456
  window.queueMicrotask = window.queueMicrotask || function(r) {
12394
12457
  Promise.resolve().then(r).catch(
12395
12458
  (t) => setTimeout(() => {
@@ -12443,8 +12506,8 @@ function Yh(...r) {
12443
12506
  const n = o.shift() || "";
12444
12507
  let l = T.get(n);
12445
12508
  l = Je.traverse(l, o);
12446
- const c = /* @__PURE__ */ new Set(), h = (f) => {
12447
- t[s] = f, t.filter((d) => d !== null).length == r.length && c.forEach((d) => d(...t));
12509
+ const c = /* @__PURE__ */ new Set(), h = (u) => {
12510
+ t[s] = u, t.filter((d) => d !== null).length == r.length && c.forEach((d) => d(...t));
12448
12511
  };
12449
12512
  i.push({ publisher: l, onAssign: h, callbacks: c });
12450
12513
  }