mlform 0.1.16 → 0.1.19

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.
@@ -1,10 +1,10 @@
1
1
  import { LitElement as e, css as t, html as n, nothing as r } from "lit";
2
- import { customElement as i, property as a, state as o } from "lit/decorators.js";
3
- import { repeat as s } from "lit/directives/repeat.js";
4
- import { html as c, unsafeStatic as l } from "lit/static-html.js";
5
- import { ifDefined as u } from "lit/directives/if-defined.js";
2
+ import { customElement as i, property as a, query as o, state as s } from "lit/decorators.js";
3
+ import { repeat as c } from "lit/directives/repeat.js";
4
+ import { html as l, unsafeStatic as u } from "lit/static-html.js";
5
+ import { ifDefined as d } from "lit/directives/if-defined.js";
6
6
  //#region src/primitives/constants.ts
7
- var d = {
7
+ var f = {
8
8
  form: "mlf-form",
9
9
  formErrors: "mlf-form-errors",
10
10
  submitButton: "mlf-submit-button",
@@ -13,6 +13,7 @@ var d = {
13
13
  reportFrame: "mlf-report-frame",
14
14
  declarativeField: "mlf-declarative-field",
15
15
  declarativeReport: "mlf-declarative-report",
16
+ mountedReport: "mlf-mounted-report",
16
17
  textField: "mlf-text-field",
17
18
  numberField: "mlf-number-field",
18
19
  booleanField: "mlf-boolean-field",
@@ -25,19 +26,19 @@ var d = {
25
26
  singleChoiceField: "mlf-single-choice-field",
26
27
  multiChoiceField: "mlf-multi-choice-field",
27
28
  ratingField: "mlf-rating-field"
28
- }, f = {
29
+ }, p = {
29
30
  submitRequest: "mlf-submit-request",
30
31
  submitStart: "mlf-submit-start",
31
32
  submitSuccess: "mlf-submit-success",
32
33
  submitAbort: "mlf-submit-abort",
33
34
  submitError: "mlf-submit-error"
34
- }, p = {
35
+ }, m = {
35
36
  form: "Inputs",
36
37
  reports: "Reports",
37
38
  submit: "Submit",
38
39
  validating: "Validating...",
39
40
  submitting: "Submitting..."
40
- }, m = Object.freeze({
41
+ }, h = Object.freeze({
41
42
  formEyebrow: "Form",
42
43
  reportEyebrow: "Report",
43
44
  formErrorsTitle: "Form errors",
@@ -94,10 +95,10 @@ var d = {
94
95
  },
95
96
  reportsEmptyTitle: "Results",
96
97
  reportsEmptyBody: "Reports will appear here after the form is submitted."
97
- }), h = (e) => e ? Object.freeze({
98
- ...m,
98
+ }), g = (e) => e ? Object.freeze({
99
+ ...h,
99
100
  ...e
100
- }) : m, g = {
101
+ }) : h, _ = {
101
102
  booleanGroup: "mlf-boolean",
102
103
  fieldDescription: "mlf-field-description",
103
104
  fieldErrors: "mlf-field-errors",
@@ -105,8 +106,8 @@ var d = {
105
106
  reportRegion: "mlf-report-region"
106
107
  };
107
108
  //#endregion
108
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js
109
- function _(e, t, n, r) {
109
+ //#region \0@oxc-project+runtime@0.135.0/helpers/esm/decorate.js
110
+ function v(e, t, n, r) {
110
111
  var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
111
112
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
112
113
  else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
@@ -114,7 +115,7 @@ function _(e, t, n, r) {
114
115
  }
115
116
  //#endregion
116
117
  //#region src/primitives/base-field-element.ts
117
- var v = class extends e {
118
+ var y = class extends e {
118
119
  static styles = t`
119
120
  :host {
120
121
  display: block;
@@ -201,7 +202,7 @@ var v = class extends e {
201
202
  set context(e) {
202
203
  this.#n = e;
203
204
  }
204
- #r = m;
205
+ #r = h;
205
206
  get text() {
206
207
  return this.#r;
207
208
  }
@@ -240,10 +241,10 @@ var v = class extends e {
240
241
  };
241
242
  }
242
243
  };
243
- _([a({ attribute: !1 })], v.prototype, "controller", null), _([a({ attribute: !1 })], v.prototype, "descriptor", null), _([a({ attribute: !1 })], v.prototype, "context", null), _([a({ attribute: !1 })], v.prototype, "text", null);
244
+ v([a({ attribute: !1 })], y.prototype, "controller", null), v([a({ attribute: !1 })], y.prototype, "descriptor", null), v([a({ attribute: !1 })], y.prototype, "context", null), v([a({ attribute: !1 })], y.prototype, "text", null);
244
245
  //#endregion
245
246
  //#region src/primitives/base-report-element.ts
246
- var y = class extends e {
247
+ var b = class extends e {
247
248
  static styles = t`
248
249
  :host {
249
250
  display: block;
@@ -281,7 +282,7 @@ var y = class extends e {
281
282
  set context(e) {
282
283
  this.#n = e;
283
284
  }
284
- #r = m;
285
+ #r = h;
285
286
  get text() {
286
287
  return this.#r;
287
288
  }
@@ -309,7 +310,7 @@ var y = class extends e {
309
310
  return this.context;
310
311
  }
311
312
  };
312
- _([a({ attribute: !1 })], y.prototype, "controller", null), _([a({ attribute: !1 })], y.prototype, "descriptor", null), _([a({ attribute: !1 })], y.prototype, "context", null), _([a({ attribute: !1 })], y.prototype, "text", null), _([a({ attribute: !1 })], y.prototype, "transport", null), _([a({ attribute: !1 })], y.prototype, "request", null);
313
+ v([a({ attribute: !1 })], b.prototype, "controller", null), v([a({ attribute: !1 })], b.prototype, "descriptor", null), v([a({ attribute: !1 })], b.prototype, "context", null), v([a({ attribute: !1 })], b.prototype, "text", null), v([a({ attribute: !1 })], b.prototype, "transport", null), v([a({ attribute: !1 })], b.prototype, "request", null);
313
314
  //#endregion
314
315
  //#region src/primitives/request-runner.ts
315
316
  var ee = (e) => e instanceof Error ? e.message : String(e), te = () => {
@@ -344,8 +345,8 @@ var ee = (e) => e instanceof Error ? e.message : String(e), te = () => {
344
345
  } catch {
345
346
  return String(e);
346
347
  }
347
- }, b = class extends y {
348
- static styles = [y.styles, t`
348
+ }, x = class extends b {
349
+ static styles = [b.styles, t`
349
350
  .transport-divider {
350
351
  border: none;
351
352
  border-top: var(--mlf-border-width, 1px) solid
@@ -518,25 +519,25 @@ ${ne(this.transportResult)}</pre
518
519
  }
519
520
  }
520
521
  };
521
- _([o()], b.prototype, "transportStatus", null), _([o()], b.prototype, "transportResultValue", null), _([o()], b.prototype, "transportErrorValue", null);
522
+ v([s()], x.prototype, "transportStatus", null), v([s()], x.prototype, "transportResultValue", null), v([s()], x.prototype, "transportErrorValue", null);
522
523
  //#endregion
523
524
  //#region src/primitives/components/error-focus.ts
524
525
  var re = () => new Promise((e) => {
525
526
  window.setTimeout(e, 0);
526
- }), ie = (e) => e instanceof HTMLElement && (e.matches("input, select, textarea, button, [tabindex]") || e.getAttribute("role") === "textbox"), x = (e) => {
527
+ }), ie = (e) => e instanceof HTMLElement && (e.matches("input, select, textarea, button, [tabindex]") || e.getAttribute("role") === "textbox"), S = (e) => {
527
528
  for (let t of e.querySelectorAll("*")) {
528
529
  if (ie(t)) return t;
529
530
  if (t instanceof HTMLElement && t.shadowRoot) {
530
- let e = x(t.shadowRoot);
531
+ let e = S(t.shadowRoot);
531
532
  if (e) return e;
532
533
  }
533
534
  }
534
535
  return null;
535
- }, S = (e, t) => Array.from(e.querySelectorAll("mlf-field-frame")).find((e) => e.dataset.fieldId === t) ?? null, C = async (e) => e ? (e.scrollIntoView?.({
536
+ }, C = (e, t) => Array.from(e.querySelectorAll("mlf-field-frame")).find((e) => e.dataset.fieldId === t) ?? null, ae = async (e) => e ? (e.scrollIntoView?.({
536
537
  behavior: "smooth",
537
538
  block: "center",
538
539
  inline: "nearest"
539
- }), await re(), x(e.shadowRoot ?? e)?.focus(), !0) : !1, ae = async (e, t) => C(S(e.shadowRoot ?? e, t)), oe = (e) => e.find((e) => e.state.visible && e.state.errors.length > 0) ?? null, se = t`
540
+ }), await re(), S(e.shadowRoot ?? e)?.focus(), !0) : !1, oe = async (e, t) => ae(C(e.shadowRoot ?? e, t)), se = (e) => e.find((e) => e.state.visible && e.state.errors.length > 0) ?? null, ce = t`
540
541
  :host {
541
542
  display: block;
542
543
  flex: 1 1 auto;
@@ -839,14 +840,14 @@ var re = () => new Promise((e) => {
839
840
  }
840
841
  }
841
842
  `}
842
- `, ce = (e) => ({
843
+ `, le = (e) => ({
843
844
  component: "unsupported-field",
844
845
  props: { label: e.config.label ?? e.id }
845
846
  }), w = (e, t) => t?.getField(e.kind)?.describe(e.config, {
846
847
  fieldId: e.id,
847
848
  state: e.state,
848
849
  value: e.state.value
849
- }) ?? ce(e), le = (e, t, n) => {
850
+ }) ?? le(e), ue = (e, t, n) => {
850
851
  let r = n?.getReport(e.kind);
851
852
  return r ? r.describe(e.config, {
852
853
  reportId: e.id,
@@ -854,15 +855,15 @@ var re = () => new Promise((e) => {
854
855
  payload: e.state.payload,
855
856
  result: t.state.lastResult
856
857
  }) : null;
857
- }, ue = (e, t, n) => t.map((t) => e.getField(t)).filter((e) => e !== void 0).map((e) => ({
858
+ }, de = (e, t, n) => t.map((t) => e.getField(t)).filter((e) => e !== void 0).map((e) => ({
858
859
  controller: e,
859
860
  descriptor: w(e, n)
860
- })), de = (e, t, n, r) => (n === "always" ? e.reports : t.map((t) => e.getReport(t)).filter((e) => e !== void 0)).map((t) => ({
861
+ })), fe = (e, t, n, r) => (n === "always" ? e.reports : t.map((t) => e.getReport(t)).filter((e) => e !== void 0)).map((t) => ({
861
862
  controller: t,
862
- descriptor: le(t, e, r)
863
- })).filter((e) => e.descriptor !== null), fe = (e, t, r, i) => n`
863
+ descriptor: ue(t, e, r)
864
+ })).filter((e) => e.descriptor !== null), T = (e, t, r, i) => n`
864
865
  <div class="collection" part="field-list">
865
- ${s(e, (e) => e.controller.id, (e) => n`
866
+ ${c(e, (e) => e.controller.id, (e) => n`
866
867
  <mlf-field-frame
867
868
  data-field-id=${e.controller.id}
868
869
  .controller=${e.controller}
@@ -875,7 +876,7 @@ var re = () => new Promise((e) => {
875
876
  </div>
876
877
  `, pe = (e, t, r, i, a, o) => n`
877
878
  <div class="collection" part="report-list">
878
- ${s(e, (e) => e.controller.id, (e) => n`
879
+ ${c(e, (e) => e.controller.id, (e) => n`
879
880
  <mlf-report-frame
880
881
  .controller=${e.controller}
881
882
  .descriptor=${e.descriptor}
@@ -906,7 +907,7 @@ var re = () => new Promise((e) => {
906
907
  </div>
907
908
 
908
909
  <mlf-form-errors .form=${e.form} .text=${e.text}></mlf-form-errors>
909
- ${fe(e.visibleFields, e.registry, e.descriptorRegistry, e.text)}
910
+ ${T(e.visibleFields, e.registry, e.descriptorRegistry, e.text)}
910
911
  </div>
911
912
 
912
913
  <div class="actions" part="actions">
@@ -958,7 +959,7 @@ var re = () => new Promise((e) => {
958
959
  </div>
959
960
 
960
961
  <mlf-form-errors .form=${e.form} .text=${e.text}></mlf-form-errors>
961
- ${fe(e.visibleFields, e.registry, e.descriptorRegistry, e.text)}
962
+ ${T(e.visibleFields, e.registry, e.descriptorRegistry, e.text)}
962
963
  </div>
963
964
  </div>
964
965
 
@@ -998,7 +999,7 @@ var re = () => new Promise((e) => {
998
999
  ` : r}
999
1000
  </div>
1000
1001
  </div>
1001
- `, T = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]), ge = (e, t) => e.status === t.status && e.submitCount === t.submitCount && e.hasFormErrors === t.hasFormErrors && e.hasLastResult === t.hasLastResult && e.submissionLoaded === t.submissionLoaded && e.submissionTotal === t.submissionTotal && e.submissionMessage === t.submissionMessage && e.submissionSessionMessageCount === t.submissionSessionMessageCount && T(e.visibleFieldIds, t.visibleFieldIds) && T(e.visibleReportIds, t.visibleReportIds) && T(e.reportStateKeys, t.reportStateKeys), E = (e) => {
1002
+ `, E = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]), ge = (e, t) => e.status === t.status && e.submitCount === t.submitCount && e.hasFormErrors === t.hasFormErrors && e.hasLastResult === t.hasLastResult && e.submissionLoaded === t.submissionLoaded && e.submissionTotal === t.submissionTotal && e.submissionMessage === t.submissionMessage && e.submissionSessionMessageCount === t.submissionSessionMessageCount && E(e.visibleFieldIds, t.visibleFieldIds) && E(e.visibleReportIds, t.visibleReportIds) && E(e.reportStateKeys, t.reportStateKeys), D = (e) => {
1002
1003
  let t = e.state;
1003
1004
  return {
1004
1005
  status: t.status,
@@ -1013,8 +1014,8 @@ var re = () => new Promise((e) => {
1013
1014
  visibleReportIds: e.reports.map((e) => e.id),
1014
1015
  reportStateKeys: e.reports.map((e) => `${e.id}:${e.state.status}:${e.state.payload === void 0}:${e.state.error === null}`)
1015
1016
  };
1016
- }, D = class extends e {
1017
- static styles = se;
1017
+ }, O = class extends e {
1018
+ static styles = ce;
1018
1019
  #e;
1019
1020
  get form() {
1020
1021
  return this.#e;
@@ -1043,35 +1044,35 @@ var re = () => new Promise((e) => {
1043
1044
  set layout(e) {
1044
1045
  this.#r = e;
1045
1046
  }
1046
- #i = p.form;
1047
+ #i = m.form;
1047
1048
  get formLabel() {
1048
1049
  return this.#i;
1049
1050
  }
1050
1051
  set formLabel(e) {
1051
1052
  this.#i = e;
1052
1053
  }
1053
- #a = p.reports;
1054
+ #a = m.reports;
1054
1055
  get reportsLabel() {
1055
1056
  return this.#a;
1056
1057
  }
1057
1058
  set reportsLabel(e) {
1058
1059
  this.#a = e;
1059
1060
  }
1060
- #o = p.submit;
1061
+ #o = m.submit;
1061
1062
  get submitLabel() {
1062
1063
  return this.#o;
1063
1064
  }
1064
1065
  set submitLabel(e) {
1065
1066
  this.#o = e;
1066
1067
  }
1067
- #s = p.validating;
1068
+ #s = m.validating;
1068
1069
  get validatingLabel() {
1069
1070
  return this.#s;
1070
1071
  }
1071
1072
  set validatingLabel(e) {
1072
1073
  this.#s = e;
1073
1074
  }
1074
- #c = p.submitting;
1075
+ #c = m.submitting;
1075
1076
  get submittingLabel() {
1076
1077
  return this.#c;
1077
1078
  }
@@ -1085,7 +1086,7 @@ var re = () => new Promise((e) => {
1085
1086
  set reportPane(e) {
1086
1087
  this.#l = e;
1087
1088
  }
1088
- #u = m;
1089
+ #u = h;
1089
1090
  get text() {
1090
1091
  return this.#u;
1091
1092
  }
@@ -1134,7 +1135,7 @@ var re = () => new Promise((e) => {
1134
1135
  render() {
1135
1136
  let e = this.form, t = this.formState;
1136
1137
  if (!e || !t) return n``;
1137
- let r = this.text, i = ue(e, t.visibleFieldIds, this.descriptorRegistry), a = de(e, t.visibleReportIds, this.reportPane, this.descriptorRegistry), o = this.reportPane !== "hidden" && (e.reports.length > 0 || t.hasFormErrors), s = this.layout === "split" ? o : this.reportPane === "always" ? e.reports.length > 0 : this.reportPane === "auto" ? a.length > 0 : !1;
1138
+ let r = this.text, i = de(e, t.visibleFieldIds, this.descriptorRegistry), a = fe(e, t.visibleReportIds, this.reportPane, this.descriptorRegistry), o = this.reportPane !== "hidden" && (e.reports.length > 0 || t.hasFormErrors), s = this.layout === "split" ? o : this.reportPane === "always" ? e.reports.length > 0 : this.reportPane === "auto" ? a.length > 0 : !1;
1138
1139
  return this.layout === "split" ? he({
1139
1140
  form: e,
1140
1141
  state: t,
@@ -1173,7 +1174,7 @@ var re = () => new Promise((e) => {
1173
1174
  }
1174
1175
  #_ = async () => {
1175
1176
  if (this.form) {
1176
- this.dispatchEvent(new CustomEvent(f.submitStart, {
1177
+ this.dispatchEvent(new CustomEvent(p.submitStart, {
1177
1178
  detail: {
1178
1179
  form: this.form,
1179
1180
  state: this.form.state
@@ -1183,7 +1184,7 @@ var re = () => new Promise((e) => {
1183
1184
  }));
1184
1185
  try {
1185
1186
  let e = this.submitHandler ? await this.submitHandler() : { result: await this.form.submit() };
1186
- this.dispatchEvent(new CustomEvent(f.submitSuccess, {
1187
+ this.dispatchEvent(new CustomEvent(p.submitSuccess, {
1187
1188
  detail: {
1188
1189
  form: this.form,
1189
1190
  state: this.form.state,
@@ -1194,8 +1195,8 @@ var re = () => new Promise((e) => {
1194
1195
  composed: !0
1195
1196
  }));
1196
1197
  } catch (e) {
1197
- let t = this.form ? oe(this.form.fields) : null;
1198
- t && await C(S(this.shadowRoot ?? this, t.id)), this.dispatchEvent(new CustomEvent(_e(e) ? f.submitAbort : f.submitError, {
1198
+ let t = this.form ? se(this.form.fields) : null;
1199
+ t && await ae(C(this.shadowRoot ?? this, t.id)), this.dispatchEvent(new CustomEvent(_e(e) ? p.submitAbort : p.submitError, {
1199
1200
  detail: {
1200
1201
  form: this.form,
1201
1202
  state: this.form.state,
@@ -1211,36 +1212,36 @@ var re = () => new Promise((e) => {
1211
1212
  #v() {
1212
1213
  if (!this.isConnected) return;
1213
1214
  if (this.#g === this.form) {
1214
- this.formState = this.form ? E(this.form) : null;
1215
+ this.formState = this.form ? D(this.form) : null;
1215
1216
  return;
1216
1217
  }
1217
- if (this.#h?.(), this.#h = null, this.#g = this.form, this.formState = this.form ? E(this.form) : null, !this.form) return;
1218
+ if (this.#h?.(), this.#h = null, this.#g = this.form, this.formState = this.form ? D(this.form) : null, !this.form) return;
1218
1219
  let e = this.form;
1219
- this.#h = e.subscribeSelector(() => E(e), (e) => {
1220
+ this.#h = e.subscribeSelector(() => D(e), (e) => {
1220
1221
  this.formState = e;
1221
1222
  }, { equality: ge });
1222
1223
  }
1223
1224
  };
1224
- _([a({ attribute: !1 })], D.prototype, "form", null), _([a({ attribute: !1 })], D.prototype, "registry", null), _([a({ attribute: !1 })], D.prototype, "descriptorRegistry", null), _([a({ type: String })], D.prototype, "layout", null), _([a({
1225
+ v([a({ attribute: !1 })], O.prototype, "form", null), v([a({ attribute: !1 })], O.prototype, "registry", null), v([a({ attribute: !1 })], O.prototype, "descriptorRegistry", null), v([a({ type: String })], O.prototype, "layout", null), v([a({
1225
1226
  type: String,
1226
1227
  attribute: "form-label"
1227
- })], D.prototype, "formLabel", null), _([a({
1228
+ })], O.prototype, "formLabel", null), v([a({
1228
1229
  type: String,
1229
1230
  attribute: "reports-label"
1230
- })], D.prototype, "reportsLabel", null), _([a({
1231
+ })], O.prototype, "reportsLabel", null), v([a({
1231
1232
  type: String,
1232
1233
  attribute: "submit-label"
1233
- })], D.prototype, "submitLabel", null), _([a({
1234
+ })], O.prototype, "submitLabel", null), v([a({
1234
1235
  type: String,
1235
1236
  attribute: "validating-label"
1236
- })], D.prototype, "validatingLabel", null), _([a({
1237
+ })], O.prototype, "validatingLabel", null), v([a({
1237
1238
  type: String,
1238
1239
  attribute: "submitting-label"
1239
- })], D.prototype, "submittingLabel", null), _([a({
1240
+ })], O.prototype, "submittingLabel", null), v([a({
1240
1241
  type: String,
1241
1242
  attribute: "report-pane"
1242
- })], D.prototype, "reportPane", null), _([a({ attribute: !1 })], D.prototype, "text", null), _([a({ attribute: !1 })], D.prototype, "reportTransport", null), _([a({ attribute: !1 })], D.prototype, "reportFetchMode", null), _([a({ attribute: !1 })], D.prototype, "submitHandler", null), _([o()], D.prototype, "formState", null), D = _([i(d.form)], D);
1243
- var _e = (e) => e instanceof Error && e.name === "SubmissionAbortedError", O = class e {
1243
+ })], O.prototype, "reportPane", null), v([a({ attribute: !1 })], O.prototype, "text", null), v([a({ attribute: !1 })], O.prototype, "reportTransport", null), v([a({ attribute: !1 })], O.prototype, "reportFetchMode", null), v([a({ attribute: !1 })], O.prototype, "submitHandler", null), v([s()], O.prototype, "formState", null), O = v([i(f.form)], O);
1244
+ var _e = (e) => e instanceof Error && e.name === "SubmissionAbortedError", ve = class e {
1244
1245
  fieldPresenters = /* @__PURE__ */ new Map();
1245
1246
  reportPresenters = /* @__PURE__ */ new Map();
1246
1247
  registerField(e) {
@@ -1263,7 +1264,7 @@ var _e = (e) => e instanceof Error && e.name === "SubmissionAbortedError", O = c
1263
1264
  for (let e of this.reportPresenters.values()) t.registerReport(e);
1264
1265
  return t;
1265
1266
  }
1266
- }, k = () => new O(), ve = (e) => e ? Array.isArray(e) ? e : [e] : [], A = class extends e {
1267
+ }, k = () => new ve(), ye = (e) => e ? Array.isArray(e) ? e : [e] : [], A = class extends e {
1267
1268
  static styles = t`
1268
1269
  :host {
1269
1270
  display: block;
@@ -1304,7 +1305,7 @@ var _e = (e) => e instanceof Error && e.name === "SubmissionAbortedError", O = c
1304
1305
  set form(e) {
1305
1306
  this.#e = e;
1306
1307
  }
1307
- #t = m;
1308
+ #t = h;
1308
1309
  get text() {
1309
1310
  return this.#t;
1310
1311
  }
@@ -1352,7 +1353,7 @@ var _e = (e) => e instanceof Error && e.name === "SubmissionAbortedError", O = c
1352
1353
  }
1353
1354
  }
1354
1355
  };
1355
- _([a({ attribute: !1 })], A.prototype, "form", null), _([a({ attribute: !1 })], A.prototype, "text", null), _([o()], A.prototype, "formErrors", null), A = _([i(d.formErrors)], A);
1356
+ v([a({ attribute: !1 })], A.prototype, "form", null), v([a({ attribute: !1 })], A.prototype, "text", null), v([s()], A.prototype, "formErrors", null), A = v([i(f.formErrors)], A);
1356
1357
  //#endregion
1357
1358
  //#region src/primitives/components/submit-button.ts
1358
1359
  var j = class extends e {
@@ -1406,21 +1407,21 @@ var j = class extends e {
1406
1407
  set status(e) {
1407
1408
  this.#e = e;
1408
1409
  }
1409
- #t = p.submit;
1410
+ #t = m.submit;
1410
1411
  get idleLabel() {
1411
1412
  return this.#t;
1412
1413
  }
1413
1414
  set idleLabel(e) {
1414
1415
  this.#t = e;
1415
1416
  }
1416
- #n = p.validating;
1417
+ #n = m.validating;
1417
1418
  get validatingLabel() {
1418
1419
  return this.#n;
1419
1420
  }
1420
1421
  set validatingLabel(e) {
1421
1422
  this.#n = e;
1422
1423
  }
1423
- #r = p.submitting;
1424
+ #r = m.submitting;
1424
1425
  get submittingLabel() {
1425
1426
  return this.#r;
1426
1427
  }
@@ -1469,13 +1470,13 @@ var j = class extends e {
1469
1470
  `;
1470
1471
  }
1471
1472
  #c = () => {
1472
- this.dispatchEvent(new CustomEvent(f.submitRequest, {
1473
+ this.dispatchEvent(new CustomEvent(p.submitRequest, {
1473
1474
  bubbles: !0,
1474
1475
  composed: !0
1475
1476
  }));
1476
1477
  };
1477
1478
  };
1478
- _([a({ type: String })], j.prototype, "status", null), _([a({ type: String })], j.prototype, "idleLabel", null), _([a({ type: String })], j.prototype, "validatingLabel", null), _([a({ type: String })], j.prototype, "submittingLabel", null), _([a({ type: Number })], j.prototype, "loaded", null), _([a({ type: Number })], j.prototype, "total", null), _([a({ type: String })], j.prototype, "progressMessage", null), _([a({ type: Number })], j.prototype, "sessionMessageCount", null), j = _([i(d.submitButton)], j);
1479
+ v([a({ type: String })], j.prototype, "status", null), v([a({ type: String })], j.prototype, "idleLabel", null), v([a({ type: String })], j.prototype, "validatingLabel", null), v([a({ type: String })], j.prototype, "submittingLabel", null), v([a({ type: Number })], j.prototype, "loaded", null), v([a({ type: Number })], j.prototype, "total", null), v([a({ type: String })], j.prototype, "progressMessage", null), v([a({ type: Number })], j.prototype, "sessionMessageCount", null), j = v([i(f.submitButton)], j);
1479
1480
  //#endregion
1480
1481
  //#region src/primitives/components/unsupported-component.ts
1481
1482
  var M = class extends e {
@@ -1516,7 +1517,7 @@ var M = class extends e {
1516
1517
  set role(e) {
1517
1518
  this.#t = e;
1518
1519
  }
1519
- #n = m;
1520
+ #n = h;
1520
1521
  get text() {
1521
1522
  return this.#n;
1522
1523
  }
@@ -1532,7 +1533,7 @@ var M = class extends e {
1532
1533
  `;
1533
1534
  }
1534
1535
  };
1535
- _([a({ type: String })], M.prototype, "component", null), _([a({ type: String })], M.prototype, "role", null), _([a({ attribute: !1 })], M.prototype, "text", null), M = _([i(d.unsupportedComponent)], M);
1536
+ v([a({ type: String })], M.prototype, "component", null), v([a({ type: String })], M.prototype, "role", null), v([a({ attribute: !1 })], M.prototype, "text", null), M = v([i(f.unsupportedComponent)], M);
1536
1537
  //#endregion
1537
1538
  //#region src/primitives/controller-binding.ts
1538
1539
  var N = class {
@@ -1561,7 +1562,7 @@ var N = class {
1561
1562
  hostDisconnected() {
1562
1563
  this.#r?.(), this.#r = null;
1563
1564
  }
1564
- }, P = (e) => typeof e == "object" && !!e, ye = (e) => e.join(" "), F = (e, t = "") => typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : t, be = t`
1565
+ }, P = (e) => typeof e == "object" && !!e, be = (e) => e.join(" "), F = (e, t = "") => typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : t, xe = t`
1565
1566
  :host {
1566
1567
  display: block;
1567
1568
  }
@@ -1684,7 +1685,7 @@ var N = class {
1684
1685
  .feedback.error {
1685
1686
  color: var(--mlf-field-feedback-error, var(--mlf-color-danger, #dc2626));
1686
1687
  }
1687
- `, xe = (e) => typeof e == "string" ? {
1688
+ `, Se = (e) => typeof e == "string" ? {
1688
1689
  label: e,
1689
1690
  value: e
1690
1691
  } : e, I = (e, t) => {
@@ -1698,7 +1699,7 @@ var N = class {
1698
1699
  case "series": return "series-field";
1699
1700
  default: return e;
1700
1701
  }
1701
- }, L = (e, t) => typeof t != "string" || t.length === 0 ? null : (Array.isArray(e.options) ? e.options : []).map(xe).find((e) => e.value === t) ?? null, Se = (e, t, n, r) => {
1702
+ }, L = (e, t) => typeof t != "string" || t.length === 0 ? null : (Array.isArray(e.options) ? e.options : []).map(Se).find((e) => e.value === t) ?? null, Ce = (e, t, n, r) => {
1702
1703
  switch (I(e, t)) {
1703
1704
  case "text-field": return typeof n.value == "string" && n.value.trim().length > 0;
1704
1705
  case "date-field": return typeof t.value == "string" && t.value.trim().length > 0;
@@ -1708,7 +1709,7 @@ var N = class {
1708
1709
  case "series-field": return Array.isArray(t.value) && t.value.length > 0;
1709
1710
  default: return n.value !== null && n.value !== void 0 && n.value !== "";
1710
1711
  }
1711
- }, Ce = (e, t, n, r) => {
1712
+ }, we = (e, t, n, r) => {
1712
1713
  switch (I(e, t)) {
1713
1714
  case "text-field": {
1714
1715
  let e = typeof t.value == "string" ? t.value : "";
@@ -1736,8 +1737,8 @@ var N = class {
1736
1737
  }
1737
1738
  default: return r.fieldReady;
1738
1739
  }
1739
- }, we = 0, R = class extends e {
1740
- static styles = be;
1740
+ }, Te = 0, R = class extends e {
1741
+ static styles = xe;
1741
1742
  #e;
1742
1743
  get controller() {
1743
1744
  return this.#e;
@@ -1766,7 +1767,7 @@ var N = class {
1766
1767
  set registry(e) {
1767
1768
  this.#r = e;
1768
1769
  }
1769
- #i = m;
1770
+ #i = h;
1770
1771
  get text() {
1771
1772
  return this.#i;
1772
1773
  }
@@ -1794,7 +1795,7 @@ var N = class {
1794
1795
  set descriptionVisibilityOverride(e) {
1795
1796
  this.#s = e;
1796
1797
  }
1797
- #c = ++we;
1798
+ #c = ++Te;
1798
1799
  #l;
1799
1800
  #u = null;
1800
1801
  #d = null;
@@ -1808,15 +1809,15 @@ var N = class {
1808
1809
  }
1809
1810
  render() {
1810
1811
  let e = this.resolvedDescriptor, t = this.fieldState;
1811
- if (!e || !t || !t.visible) return c``;
1812
- let n = e.props, r = this.registry?.resolveField(e.component), i = F(n.label, this.controller?.config.label ?? ""), a = F(n.description), o = this.#b(a), s = Se(e.component, n, t, this.controller?.config.defaultValue), l = ye(t.errors), u = Ce(e.component, n, t, this.text), d = l.length > 0 && (t.touched || s), f = d ? {
1812
+ if (!e || !t || !t.visible) return l``;
1813
+ let n = e.props, r = this.registry?.resolveField(e.component), i = F(n.label, this.controller?.config.label ?? ""), a = F(n.description), o = this.#b(a), s = Ce(e.component, n, t, this.controller?.config.defaultValue), c = be(t.errors), u = we(e.component, n, t, this.text), d = c.length > 0 && (t.touched || s), f = d ? {
1813
1814
  tone: "error",
1814
- message: l
1815
+ message: c
1815
1816
  } : s && t.valid ? {
1816
1817
  tone: "success",
1817
1818
  message: u
1818
- } : null, p = d ? "error" : s && t.valid ? "success" : "", m = `${g.fieldControl}-${this.controller?.id}-${this.#c}`, h = `${g.fieldErrors}-${this.controller?.id}-${this.#c}`, _ = `${g.fieldDescription}-${this.controller?.id}-${this.#c}-details`;
1819
- return c`
1819
+ } : null, p = d ? "error" : s && t.valid ? "success" : "", m = `${_.fieldControl}-${this.controller?.id}-${this.#c}`, h = `${_.fieldErrors}-${this.controller?.id}-${this.#c}`, g = `${_.fieldDescription}-${this.controller?.id}-${this.#c}-details`;
1820
+ return l`
1820
1821
  <section
1821
1822
  class="tile ${p}"
1822
1823
  aria-busy=${String(t.status === "validating")}
@@ -1829,7 +1830,7 @@ var N = class {
1829
1830
  type="button"
1830
1831
  aria-label=${this.text.helpActionLabel}
1831
1832
  aria-expanded=${String(o)}
1832
- aria-controls=${_}
1833
+ aria-controls=${g}
1833
1834
  ?disabled=${a.length === 0}
1834
1835
  @click=${this.#y}
1835
1836
  >
@@ -1837,14 +1838,14 @@ var N = class {
1837
1838
  </button>
1838
1839
  </div>
1839
1840
 
1840
- ${a ? c`
1841
- <div id=${_} class="description ${o ? "show" : ""}">
1841
+ ${a ? l`
1842
+ <div id=${g} class="description ${o ? "show" : ""}">
1842
1843
  ${a}
1843
1844
  </div>
1844
- ` : c``}
1845
+ ` : l``}
1845
1846
 
1846
1847
  <div class="control-slot">
1847
- ${r ? this.#h(r, m, h) : c`
1848
+ ${r ? this.#h(r, m, h) : l`
1848
1849
  <mlf-unsupported-component
1849
1850
  role="field"
1850
1851
  component=${e.component}
@@ -1853,7 +1854,7 @@ var N = class {
1853
1854
  `}
1854
1855
  </div>
1855
1856
 
1856
- ${f ? c`
1857
+ ${f ? l`
1857
1858
  <div
1858
1859
  class="feedback ${f.tone}"
1859
1860
  role=${f.tone === "error" ? "alert" : "status"}
@@ -1861,13 +1862,13 @@ var N = class {
1861
1862
  >
1862
1863
  ${f.message}
1863
1864
  </div>
1864
- ` : c``}
1865
+ ` : l``}
1865
1866
  </section>
1866
1867
  `;
1867
1868
  }
1868
1869
  #h(e, t, n) {
1869
- let r = l(e), i = this.#_(t, n), a = this.resolvedDescriptor;
1870
- return c`
1870
+ let r = u(e), i = this.#_(t, n), a = this.resolvedDescriptor;
1871
+ return l`
1871
1872
  <${r}
1872
1873
  .controller=${this.controller}
1873
1874
  .descriptor=${a}
@@ -1886,7 +1887,7 @@ var N = class {
1886
1887
  }
1887
1888
  #v(e, t, n, r) {
1888
1889
  if (!this.controller || !t) return;
1889
- let i = typeof e.description == "string" && e.description.length > 0 ? e.description : void 0, a = i ? `${g.fieldDescription}-${this.controller.id}-${this.#c}` : void 0, o = [a, r].filter(Boolean).join(" ") || void 0;
1890
+ let i = typeof e.description == "string" && e.description.length > 0 ? e.description : void 0, a = i ? `${_.fieldDescription}-${this.controller.id}-${this.#c}` : void 0, o = [a, r].filter(Boolean).join(" ") || void 0;
1890
1891
  return {
1891
1892
  controlId: n,
1892
1893
  label: F(e.label, this.controller.config.label),
@@ -1908,10 +1909,10 @@ var N = class {
1908
1909
  return e.length === 0 ? !1 : this.descriptionVisibilityOverride ?? this.resolvedDescriptor?.props.showDescriptionInline === !0;
1909
1910
  }
1910
1911
  };
1911
- _([a({ attribute: !1 })], R.prototype, "controller", null), _([a({ attribute: !1 })], R.prototype, "descriptor", null), _([a({ attribute: !1 })], R.prototype, "descriptorRegistry", null), _([a({ attribute: !1 })], R.prototype, "registry", null), _([a({ attribute: !1 })], R.prototype, "text", null), _([o()], R.prototype, "resolvedDescriptor", null), _([o()], R.prototype, "fieldState", null), _([o()], R.prototype, "descriptionVisibilityOverride", null), R = _([i(d.fieldFrame)], R);
1912
+ v([a({ attribute: !1 })], R.prototype, "controller", null), v([a({ attribute: !1 })], R.prototype, "descriptor", null), v([a({ attribute: !1 })], R.prototype, "descriptorRegistry", null), v([a({ attribute: !1 })], R.prototype, "registry", null), v([a({ attribute: !1 })], R.prototype, "text", null), v([s()], R.prototype, "resolvedDescriptor", null), v([s()], R.prototype, "fieldState", null), v([s()], R.prototype, "descriptionVisibilityOverride", null), R = v([i(f.fieldFrame)], R);
1912
1913
  //#endregion
1913
1914
  //#region src/primitives/controller-types.ts
1914
- var Te = (e, t = {}) => ({
1915
+ var Ee = (e, t = {}) => ({
1915
1916
  reportId: t.reportId ?? "",
1916
1917
  backend: e.backend,
1917
1918
  inputs: e.inputs ?? [],
@@ -1927,7 +1928,7 @@ var Te = (e, t = {}) => ({
1927
1928
  meta: e.meta,
1928
1929
  raw: e.raw,
1929
1930
  signal: t.signal
1930
- }), Ee = 0, z = class extends e {
1931
+ }), De = 0, z = class extends e {
1931
1932
  static styles = t`
1932
1933
  :host {
1933
1934
  display: block;
@@ -2011,7 +2012,7 @@ var Te = (e, t = {}) => ({
2011
2012
  set registry(e) {
2012
2013
  this.#t = e;
2013
2014
  }
2014
- #n = m;
2015
+ #n = h;
2015
2016
  get text() {
2016
2017
  return this.#n;
2017
2018
  }
@@ -2060,7 +2061,7 @@ var Te = (e, t = {}) => ({
2060
2061
  set reportState(e) {
2061
2062
  this.#c = e;
2062
2063
  }
2063
- #l = ++Ee;
2064
+ #l = ++De;
2064
2065
  #u;
2065
2066
  #d;
2066
2067
  #f = null;
@@ -2074,19 +2075,19 @@ var Te = (e, t = {}) => ({
2074
2075
  }
2075
2076
  render() {
2076
2077
  let e = this.resolvedDescriptor, t = this.reportState;
2077
- if (!e || !t) return c``;
2078
+ if (!e || !t) return l``;
2078
2079
  let n = e.props, r = this.registry?.resolveReport(e.component);
2079
- return c`
2080
+ return l`
2080
2081
  <section class="report">
2081
2082
  <div class="header">
2082
2083
  <div class="copy">
2083
2084
  <p class="label">${F(n.label, this.controller?.config.label ?? "")}</p>
2084
- ${n.description ? c`<p class="description">${F(n.description)}</p>` : c``}
2085
+ ${n.description ? l`<p class="description">${F(n.description)}</p>` : l``}
2085
2086
  </div>
2086
2087
  <span class="meta">${this.text.reportStatusLabel(t.status)}</span>
2087
2088
  </div>
2088
2089
 
2089
- ${r ? this.#g(r) : c`
2090
+ ${r ? this.#g(r) : l`
2090
2091
  <mlf-unsupported-component
2091
2092
  role="report"
2092
2093
  component=${e.component}
@@ -2097,8 +2098,8 @@ var Te = (e, t = {}) => ({
2097
2098
  `;
2098
2099
  }
2099
2100
  #g(e) {
2100
- let t = l(e), n = this.#_(), r = this.transport, i = this.#y(), a = this.resolvedDescriptor;
2101
- return c`
2101
+ let t = u(e), n = this.#_(), r = this.transport, i = this.#y(), a = this.resolvedDescriptor;
2102
+ return l`
2102
2103
  <${t}
2103
2104
  .controller=${this.controller}
2104
2105
  .descriptor=${a}
@@ -2116,7 +2117,7 @@ var Te = (e, t = {}) => ({
2116
2117
  }
2117
2118
  #v(e) {
2118
2119
  if (this.controller) return {
2119
- regionId: `${g.reportRegion}-${this.controller.id}-${this.#l}`,
2120
+ regionId: `${_.reportRegion}-${this.controller.id}-${this.#l}`,
2120
2121
  label: F(e.label, this.controller.config.label ?? this.controller.id),
2121
2122
  description: typeof e.description == "string" && e.description.length > 0 ? e.description : void 0
2122
2123
  };
@@ -2125,7 +2126,7 @@ var Te = (e, t = {}) => ({
2125
2126
  let e = this.lastResult;
2126
2127
  if (!e || !this.controller) return null;
2127
2128
  if (e === this.#p && this.#m?.reportId === this.controller.id) return this.#m;
2128
- let t = Te(e, { reportId: this.controller.id });
2129
+ let t = Ee(e, { reportId: this.controller.id });
2129
2130
  return this.#p = e, this.#m = t, t;
2130
2131
  }
2131
2132
  #b() {
@@ -2133,36 +2134,36 @@ var Te = (e, t = {}) => ({
2133
2134
  this.fetchMode !== "lazy" || !e?.canFetch || !t || e.state.status !== "idle" || e.fetch(t);
2134
2135
  }
2135
2136
  };
2136
- _([a({ attribute: !1 })], z.prototype, "controller", null), _([a({ attribute: !1 })], z.prototype, "registry", null), _([a({ attribute: !1 })], z.prototype, "text", null), _([a({ attribute: !1 })], z.prototype, "transport", null), _([a({ attribute: !1 })], z.prototype, "fetchMode", null), _([a({ attribute: !1 })], z.prototype, "lastResult", null), _([a({ attribute: !1 })], z.prototype, "descriptor", null), _([o()], z.prototype, "resolvedDescriptor", null), _([o()], z.prototype, "reportState", null), z = _([i(d.reportFrame)], z);
2137
+ v([a({ attribute: !1 })], z.prototype, "controller", null), v([a({ attribute: !1 })], z.prototype, "registry", null), v([a({ attribute: !1 })], z.prototype, "text", null), v([a({ attribute: !1 })], z.prototype, "transport", null), v([a({ attribute: !1 })], z.prototype, "fetchMode", null), v([a({ attribute: !1 })], z.prototype, "lastResult", null), v([a({ attribute: !1 })], z.prototype, "descriptor", null), v([s()], z.prototype, "resolvedDescriptor", null), v([s()], z.prototype, "reportState", null), z = v([i(f.reportFrame)], z);
2137
2138
  //#endregion
2138
2139
  //#region src/primitives/components/declarative-field.ts
2139
2140
  var B = {
2140
2141
  text: {
2141
2142
  component: "text-field",
2142
- tagName: d.textField
2143
+ tagName: f.textField
2143
2144
  },
2144
2145
  number: {
2145
2146
  component: "number-field",
2146
- tagName: d.numberField
2147
+ tagName: f.numberField
2147
2148
  },
2148
2149
  boolean: {
2149
2150
  component: "boolean-field",
2150
- tagName: d.booleanField
2151
+ tagName: f.booleanField
2151
2152
  },
2152
2153
  select: {
2153
2154
  component: "category-field",
2154
- tagName: d.categoryField
2155
+ tagName: f.categoryField
2155
2156
  },
2156
2157
  date: {
2157
2158
  component: "date-field",
2158
- tagName: d.dateField
2159
+ tagName: f.dateField
2159
2160
  },
2160
2161
  series: {
2161
2162
  component: "series-field",
2162
- tagName: d.seriesField
2163
+ tagName: f.seriesField
2163
2164
  }
2164
- }, V = class extends v {
2165
- static styles = [v.styles, t`
2165
+ }, V = class extends y {
2166
+ static styles = [y.styles, t`
2166
2167
  :host {
2167
2168
  display: block;
2168
2169
  }
@@ -2170,11 +2171,11 @@ var B = {
2170
2171
  render() {
2171
2172
  let e = this.#e();
2172
2173
  if (!e) return this.renderAssistiveText();
2173
- let t = B[e], n = l(t.tagName), r = {
2174
+ let t = B[e], n = u(t.tagName), r = {
2174
2175
  component: t.component,
2175
2176
  props: this.#t(e)
2176
2177
  };
2177
- return c`
2178
+ return l`
2178
2179
  <${n}
2179
2180
  .controller=${this.controller}
2180
2181
  .descriptor=${r}
@@ -2192,7 +2193,7 @@ var B = {
2192
2193
  return delete t.widget, e === "boolean" && (t.checked = t.value === !0 ? !0 : t.value === !1 ? !1 : null), t;
2193
2194
  }
2194
2195
  };
2195
- V = _([i(d.declarativeField)], V);
2196
+ V = v([i(f.declarativeField)], V);
2196
2197
  //#endregion
2197
2198
  //#region src/primitives/components/descriptor-content.ts
2198
2199
  var H = (e) => typeof e == "string" && e.length > 0 ? `tone-${e}` : "tone-neutral", U = (e) => {
@@ -2204,10 +2205,10 @@ var H = (e) => typeof e == "string" && e.length > 0 ? `tone-${e}` : "tone-neutra
2204
2205
  } catch {
2205
2206
  return Object.prototype.toString.call(e);
2206
2207
  }
2207
- }, De = (e) => Array.isArray(e) ? e : Object.entries(e).map(([e, t]) => ({
2208
+ }, Oe = (e) => Array.isArray(e) ? e : Object.entries(e).map(([e, t]) => ({
2208
2209
  label: e,
2209
2210
  value: t
2210
- })), Oe = (e) => n`<span>${U(e)}</span>`, ke = (e, t) => {
2211
+ })), ke = (e) => n`<span>${U(e)}</span>`, Ae = (e, t) => {
2211
2212
  switch (e.type) {
2212
2213
  case "text": return typeof e.value == "string" && e.value.includes("\n") ? n`
2213
2214
  <section class="node text ${H(e.tone)}" data-node-index=${t}>
@@ -2231,7 +2232,7 @@ var H = (e) => typeof e == "string" && e.length > 0 ? `tone-${e}` : "tone-neutra
2231
2232
  <section class="node kv" data-node-index=${t}>
2232
2233
  ${e.label ? n`<p class="node-label">${e.label}</p>` : r}
2233
2234
  <dl class="kv-list">
2234
- ${De(e.entries).map((e) => n`
2235
+ ${Oe(e.entries).map((e) => n`
2235
2236
  <div class="kv-row">
2236
2237
  <dt>${e.label}</dt>
2237
2238
  <dd>${U(e.value)}</dd>
@@ -2266,7 +2267,7 @@ var H = (e) => typeof e == "string" && e.length > 0 ? `tone-${e}` : "tone-neutra
2266
2267
  <tbody>
2267
2268
  ${e.rows.map((t) => n`
2268
2269
  <tr>
2269
- ${(Array.isArray(t) ? t : e.columns.map((e) => t[e])).map((e) => n`<td>${Oe(e)}</td>`)}
2270
+ ${(Array.isArray(t) ? t : e.columns.map((e) => t[e])).map((e) => n`<td>${ke(e)}</td>`)}
2270
2271
  </tr>
2271
2272
  `)}
2272
2273
  </tbody>
@@ -2292,7 +2293,7 @@ var H = (e) => typeof e == "string" && e.length > 0 ? `tone-${e}` : "tone-neutra
2292
2293
  </section>
2293
2294
  `;
2294
2295
  }
2295
- }, Ae = (e, t) => {
2296
+ }, je = (e, t) => {
2296
2297
  if (!e && !t) return r;
2297
2298
  let i = F(e?.title, t ?? ""), a = F(e?.description), o = e?.value, s = F(e?.badge);
2298
2299
  return n`
@@ -2307,8 +2308,8 @@ var H = (e) => typeof e == "string" && e.length > 0 ? `tone-${e}` : "tone-neutra
2307
2308
  </div>
2308
2309
  </section>
2309
2310
  `;
2310
- }, je = (e) => e.length === 0 ? r : n`<div class="Descriptor">${e.map((e, t) => ke(e, t))}</div>`, W = class extends y {
2311
- static styles = [y.styles, t`
2311
+ }, Me = (e) => e.length === 0 ? r : n`<div class="Descriptor">${e.map((e, t) => Ae(e, t))}</div>`, W = class extends b {
2312
+ static styles = [b.styles, t`
2312
2313
  :host {
2313
2314
  display: block;
2314
2315
  }
@@ -2456,15 +2457,67 @@ var H = (e) => typeof e == "string" && e.length > 0 ? `tone-${e}` : "tone-neutra
2456
2457
  render() {
2457
2458
  let e = this.props, t = Array.isArray(e.content) ? e.content : [];
2458
2459
  return n`
2459
- ${Ae(e.summary && typeof e.summary == "object" ? e.summary : null, this.reportContext?.label)} ${je(t)}
2460
+ ${je(e.summary && typeof e.summary == "object" ? e.summary : null, this.reportContext?.label)} ${Me(t)}
2460
2461
  `;
2461
2462
  }
2462
2463
  };
2463
- W = _([i(d.declarativeReport)], W);
2464
+ W = v([i(f.declarativeReport)], W);
2465
+ //#endregion
2466
+ //#region src/primitives/components/mounted-report.ts
2467
+ var Ne = (e) => e instanceof Error ? e.message : String(e), G = class extends b {
2468
+ static styles = [b.styles, t`
2469
+ :host {
2470
+ display: block;
2471
+ }
2472
+
2473
+ .mount-host {
2474
+ display: block;
2475
+ min-width: 0;
2476
+ }
2477
+ `];
2478
+ #e;
2479
+ get mountHost() {
2480
+ return this.#e;
2481
+ }
2482
+ set mountHost(e) {
2483
+ this.#e = e;
2484
+ }
2485
+ #t = null;
2486
+ #n = null;
2487
+ #r = null;
2488
+ updated() {
2489
+ if (this.descriptor === this.#n) return;
2490
+ this.#i(), this.#n = this.descriptor, this.mountHost.replaceChildren();
2491
+ let e = this.props.mount, t = this.props.mountContext;
2492
+ if (!(typeof e != "function" || !t)) {
2493
+ this.#r = new AbortController();
2494
+ try {
2495
+ let n = e({
2496
+ ...t,
2497
+ element: this.mountHost,
2498
+ signal: this.#r.signal
2499
+ });
2500
+ this.#t = typeof n == "function" ? n : null;
2501
+ } catch (e) {
2502
+ this.mountHost.textContent = `Report render failed: ${Ne(e)}`;
2503
+ }
2504
+ }
2505
+ }
2506
+ disconnectedCallback() {
2507
+ this.#i(), super.disconnectedCallback();
2508
+ }
2509
+ #i() {
2510
+ this.#r?.abort(), this.#r = null, this.#t?.(), this.#t = null;
2511
+ }
2512
+ render() {
2513
+ return n`<div class="mount-host" part="mount-host"></div>`;
2514
+ }
2515
+ };
2516
+ v([o(".mount-host")], G.prototype, "mountHost", null), G = v([i(f.mountedReport)], G);
2464
2517
  //#endregion
2465
2518
  //#region src/primitives/fields/text-field.ts
2466
- var G = class extends v {
2467
- static styles = [v.styles, t`
2519
+ var K = class extends y {
2520
+ static styles = [y.styles, t`
2468
2521
  input {
2469
2522
  min-height: var(--mlf-control-height, 3rem);
2470
2523
  }
@@ -2478,15 +2531,15 @@ var G = class extends v {
2478
2531
  id=${t?.controlId ?? ""}
2479
2532
  .value=${r}
2480
2533
  aria-label=${t?.label ?? F(e.label)}
2481
- aria-describedby=${u(t?.describedBy)}
2534
+ aria-describedby=${d(t?.describedBy)}
2482
2535
  aria-invalid=${String(t?.invalid ?? !1)}
2483
2536
  placeholder=${F(e.placeholder)}
2484
2537
  ?required=${!!e.required}
2485
2538
  ?disabled=${!!this.fieldContext?.disabled}
2486
2539
  ?readonly=${!!this.fieldContext?.readOnly}
2487
- minlength=${u(typeof e.minLength == "number" ? String(e.minLength) : void 0)}
2488
- maxlength=${u(typeof e.maxLength == "number" ? String(e.maxLength) : void 0)}
2489
- pattern=${u(typeof e.pattern == "string" ? e.pattern : void 0)}
2540
+ minlength=${d(typeof e.minLength == "number" ? String(e.minLength) : void 0)}
2541
+ maxlength=${d(typeof e.maxLength == "number" ? String(e.maxLength) : void 0)}
2542
+ pattern=${d(typeof e.pattern == "string" ? e.pattern : void 0)}
2490
2543
  @input=${this.#e}
2491
2544
  @blur=${this.#t}
2492
2545
  />
@@ -2500,11 +2553,11 @@ var G = class extends v {
2500
2553
  this.commitBlur();
2501
2554
  };
2502
2555
  };
2503
- G = _([i(d.textField)], G);
2556
+ K = v([i(f.textField)], K);
2504
2557
  //#endregion
2505
2558
  //#region src/primitives/fields/number-field.ts
2506
- var K = class extends v {
2507
- static styles = [v.styles, t`
2559
+ var q = class extends y {
2560
+ static styles = [y.styles, t`
2508
2561
  .input-wrapper {
2509
2562
  position: relative;
2510
2563
  min-width: 0;
@@ -2660,7 +2713,7 @@ var K = class extends v {
2660
2713
  this.#t = e;
2661
2714
  }
2662
2715
  render() {
2663
- let e = this.props, t = this.fieldContext, r = e.input === "range" ? "range" : "text", i = typeof e.value == "number" ? String(e.value) : e.value === null || e.value === void 0 ? "" : F(e.value), a = this.focused && this.draftValue !== null ? this.draftValue : i, o = typeof e.unit == "string" ? e.unit : "", s = `${Math.max(o.length * .56 + .8, 2.2)}rem`, c = this.fieldContext?.disabled ? "input-wrapper is-disabled" : this.fieldContext?.readOnly ? "input-wrapper is-readonly" : "input-wrapper", l = typeof e.value == "number" ? e.value : void 0, d = typeof e.min == "number" ? e.min : void 0, f = typeof e.max == "number" ? e.max : void 0, p = a.length > 0 ? a : i;
2716
+ let e = this.props, t = this.fieldContext, r = e.input === "range" ? "range" : "text", i = typeof e.value == "number" ? String(e.value) : e.value === null || e.value === void 0 ? "" : F(e.value), a = this.focused && this.draftValue !== null ? this.draftValue : i, o = typeof e.unit == "string" ? e.unit : "", s = `${Math.max(o.length * .56 + .8, 2.2)}rem`, c = this.fieldContext?.disabled ? "input-wrapper is-disabled" : this.fieldContext?.readOnly ? "input-wrapper is-readonly" : "input-wrapper", l = typeof e.value == "number" ? e.value : void 0, u = typeof e.min == "number" ? e.min : void 0, f = typeof e.max == "number" ? e.max : void 0, p = a.length > 0 ? a : i;
2664
2717
  return r === "range" ? n`
2665
2718
  <div class="range-wrapper">
2666
2719
  <div class="range-header">
@@ -2671,15 +2724,15 @@ var K = class extends v {
2671
2724
  type="range"
2672
2725
  id=${t?.controlId ?? ""}
2673
2726
  .value=${p}
2674
- min=${u(d)}
2675
- max=${u(f)}
2676
- step=${u(typeof e.step == "number" ? String(e.step) : void 0)}
2727
+ min=${d(u)}
2728
+ max=${d(f)}
2729
+ step=${d(typeof e.step == "number" ? String(e.step) : void 0)}
2677
2730
  aria-label=${t?.label ?? F(e.label)}
2678
- aria-describedby=${u(t?.describedBy)}
2731
+ aria-describedby=${d(t?.describedBy)}
2679
2732
  aria-invalid=${String(t?.invalid ?? !1)}
2680
- aria-valuenow=${u(l)}
2681
- aria-valuemin=${u(d)}
2682
- aria-valuemax=${u(f)}
2733
+ aria-valuenow=${d(l)}
2734
+ aria-valuemin=${d(u)}
2735
+ aria-valuemax=${d(f)}
2683
2736
  ?required=${!!e.required}
2684
2737
  ?disabled=${!!this.fieldContext?.disabled}
2685
2738
  ?readonly=${!!this.fieldContext?.readOnly}
@@ -2700,11 +2753,11 @@ var K = class extends v {
2700
2753
  .value=${a}
2701
2754
  placeholder=${F(e.placeholder)}
2702
2755
  aria-label=${t?.label ?? F(e.label)}
2703
- aria-describedby=${u(t?.describedBy)}
2756
+ aria-describedby=${d(t?.describedBy)}
2704
2757
  aria-invalid=${String(t?.invalid ?? !1)}
2705
- aria-valuenow=${u(l)}
2706
- aria-valuemin=${u(d)}
2707
- aria-valuemax=${u(f)}
2758
+ aria-valuenow=${d(l)}
2759
+ aria-valuemin=${d(u)}
2760
+ aria-valuemax=${d(f)}
2708
2761
  ?required=${!!e.required}
2709
2762
  ?disabled=${!!this.fieldContext?.disabled}
2710
2763
  ?readonly=${!!this.fieldContext?.readOnly}
@@ -2741,11 +2794,11 @@ var K = class extends v {
2741
2794
  return e;
2742
2795
  }
2743
2796
  };
2744
- _([o()], K.prototype, "draftValue", null), _([o()], K.prototype, "focused", null), K = _([i(d.numberField)], K);
2797
+ v([s()], q.prototype, "draftValue", null), v([s()], q.prototype, "focused", null), q = v([i(f.numberField)], q);
2745
2798
  //#endregion
2746
2799
  //#region src/primitives/fields/boolean-field.ts
2747
- var q = class extends v {
2748
- static styles = [v.styles, t`
2800
+ var J = class extends y {
2801
+ static styles = [y.styles, t`
2749
2802
  fieldset {
2750
2803
  display: flex;
2751
2804
  width: 100%;
@@ -2812,12 +2865,12 @@ var q = class extends v {
2812
2865
  }
2813
2866
  `];
2814
2867
  render() {
2815
- let e = this.props, t = this.fieldContext, r = e.checked === !0 ? !0 : e.checked === !1 ? !1 : null, i = this.text, a = g.booleanGroup, o = `${t?.controlId ?? a}-true`, s = `${t?.controlId ?? a}-false`, c = F(e.trueLabel, i.booleanTrue), l = F(e.falseLabel, i.booleanFalse), d = !!(this.fieldContext?.disabled || this.fieldContext?.readOnly);
2868
+ let e = this.props, t = this.fieldContext, r = e.checked === !0 ? !0 : e.checked === !1 ? !1 : null, i = this.text, a = _.booleanGroup, o = `${t?.controlId ?? a}-true`, s = `${t?.controlId ?? a}-false`, c = F(e.trueLabel, i.booleanTrue), l = F(e.falseLabel, i.booleanFalse), u = !!(this.fieldContext?.disabled || this.fieldContext?.readOnly);
2816
2869
  return n`
2817
2870
  <fieldset
2818
2871
  role="radiogroup"
2819
2872
  aria-label=${t?.label ?? F(e.label)}
2820
- aria-describedby=${u(t?.describedBy)}
2873
+ aria-describedby=${d(t?.describedBy)}
2821
2874
  aria-invalid=${String(t?.invalid ?? !1)}
2822
2875
  aria-readonly=${String(!!this.fieldContext?.readOnly)}
2823
2876
  >
@@ -2827,7 +2880,7 @@ var q = class extends v {
2827
2880
  name=${t?.controlId ?? a}
2828
2881
  value="true"
2829
2882
  .checked=${r === !0}
2830
- ?disabled=${d}
2883
+ ?disabled=${u}
2831
2884
  @change=${this.#e}
2832
2885
  @blur=${this.#t}
2833
2886
  />
@@ -2839,7 +2892,7 @@ var q = class extends v {
2839
2892
  name=${t?.controlId ?? a}
2840
2893
  value="false"
2841
2894
  .checked=${r === !1}
2842
- ?disabled=${d}
2895
+ ?disabled=${u}
2843
2896
  @change=${this.#e}
2844
2897
  @blur=${this.#t}
2845
2898
  />
@@ -2855,14 +2908,14 @@ var q = class extends v {
2855
2908
  this.commitBlur();
2856
2909
  };
2857
2910
  };
2858
- q = _([i(d.booleanField)], q);
2911
+ J = v([i(f.booleanField)], J);
2859
2912
  //#endregion
2860
2913
  //#region src/primitives/fields/category-field.ts
2861
- var J = (e) => typeof e == "string" ? {
2914
+ var Y = (e) => typeof e == "string" ? {
2862
2915
  label: e,
2863
2916
  value: e
2864
- } : e, Me = (e, t) => typeof e != "string" || e.length === 0 ? "" : t.some((t) => J(t).value === e) ? e : "", Ne = class extends v {
2865
- static styles = [v.styles, t`
2917
+ } : e, Pe = (e, t) => typeof e != "string" || e.length === 0 ? "" : t.some((t) => Y(t).value === e) ? e : "", X = class extends y {
2918
+ static styles = [y.styles, t`
2866
2919
  .select-wrap {
2867
2920
  position: relative;
2868
2921
  min-width: 0;
@@ -2892,14 +2945,14 @@ var J = (e) => typeof e == "string" ? {
2892
2945
  }
2893
2946
  `];
2894
2947
  render() {
2895
- let e = this.props, t = this.fieldContext, r = typeof e.value == "string" ? e.value : "", i = Array.isArray(e.options) ? e.options : [], a = Me(r, i), o = this.text;
2948
+ let e = this.props, t = this.fieldContext, r = typeof e.value == "string" ? e.value : "", i = Array.isArray(e.options) ? e.options : [], a = Pe(r, i), o = this.text;
2896
2949
  return n`
2897
2950
  <div class="select-wrap">
2898
2951
  <select
2899
2952
  class="control"
2900
2953
  id=${t?.controlId ?? ""}
2901
2954
  aria-label=${t?.label ?? F(e.label)}
2902
- aria-describedby=${u(t?.describedBy)}
2955
+ aria-describedby=${d(t?.describedBy)}
2903
2956
  aria-invalid=${String(t?.invalid ?? !1)}
2904
2957
  aria-readonly=${String(!!this.fieldContext?.readOnly)}
2905
2958
  ?required=${!!e.required}
@@ -2911,7 +2964,7 @@ var J = (e) => typeof e == "string" ? {
2911
2964
  &#8212; ${o.categoryPlaceholder} &#8212;
2912
2965
  </option>
2913
2966
  ${i.map((e) => {
2914
- let t = J(e);
2967
+ let t = Y(e);
2915
2968
  return n`
2916
2969
  <option value=${t.value} ?selected=${t.value === a}>
2917
2970
  ${t.label}
@@ -2938,11 +2991,11 @@ var J = (e) => typeof e == "string" ? {
2938
2991
  this.commitBlur();
2939
2992
  };
2940
2993
  };
2941
- Ne = _([i(d.categoryField)], Ne);
2994
+ X = v([i(f.categoryField)], X);
2942
2995
  //#endregion
2943
2996
  //#region src/primitives/fields/date-field.ts
2944
- var Pe = class extends v {
2945
- static styles = [v.styles, t`
2997
+ var Fe = class extends y {
2998
+ static styles = [y.styles, t`
2946
2999
  input {
2947
3000
  min-height: var(--mlf-control-height, 3rem);
2948
3001
  }
@@ -2960,14 +3013,14 @@ var Pe = class extends v {
2960
3013
  id=${t?.controlId ?? ""}
2961
3014
  .value=${r}
2962
3015
  aria-label=${t?.label ?? F(e.label)}
2963
- aria-describedby=${u(t?.describedBy)}
3016
+ aria-describedby=${d(t?.describedBy)}
2964
3017
  aria-invalid=${String(t?.invalid ?? !1)}
2965
3018
  ?required=${!!e.required}
2966
3019
  ?disabled=${!!this.fieldContext?.disabled}
2967
3020
  ?readonly=${!!this.fieldContext?.readOnly}
2968
- min=${u(typeof e.min == "string" ? e.min : void 0)}
2969
- max=${u(typeof e.max == "string" ? e.max : void 0)}
2970
- step=${u(typeof e.step == "number" ? String(e.step) : void 0)}
3021
+ min=${d(typeof e.min == "string" ? e.min : void 0)}
3022
+ max=${d(typeof e.max == "string" ? e.max : void 0)}
3023
+ step=${d(typeof e.step == "number" ? String(e.step) : void 0)}
2971
3024
  @input=${this.#e}
2972
3025
  @blur=${this.#t}
2973
3026
  />
@@ -2982,26 +3035,26 @@ var Pe = class extends v {
2982
3035
  this.commitBlur();
2983
3036
  };
2984
3037
  };
2985
- Pe = _([i(d.dateField)], Pe);
3038
+ Fe = v([i(f.dateField)], Fe);
2986
3039
  //#endregion
2987
3040
  //#region src/primitives/fields/series-field-helpers.ts
2988
- var Fe = 0, Ie = () => `series-row-${++Fe}`, Le = (e) => e === !0 || e === !1 ? e : e === "true" ? !0 : e === "false" ? !1 : "", Re = (e, t) => {
3041
+ var Ie = 0, Le = () => `series-row-${++Ie}`, Re = (e) => e === !0 || e === !1 ? e : e === "true" ? !0 : e === "false" ? !1 : "", ze = (e, t) => {
2989
3042
  switch (e.kind) {
2990
3043
  case "number": return typeof t == "number" ? String(t) : typeof t == "string" ? t : "";
2991
3044
  case "date": return typeof t == "string" ? t : "";
2992
3045
  case "category":
2993
3046
  case "text": return typeof t == "string" ? t : "";
2994
- case "boolean": return Le(t);
3047
+ case "boolean": return Re(t);
2995
3048
  default: return typeof t == "string" ? t : t ?? "";
2996
3049
  }
2997
- }, ze = (e, t, n) => Array.isArray(e) ? e.map((e) => {
3050
+ }, Be = (e, t, n) => Array.isArray(e) ? e.map((e) => {
2998
3051
  let r = e;
2999
3052
  return {
3000
- key: Ie(),
3001
- field1: Re(t, r.field1),
3002
- field2: Re(n, r.field2)
3053
+ key: Le(),
3054
+ field1: ze(t, r.field1),
3055
+ field2: ze(n, r.field2)
3003
3056
  };
3004
- }) : [], Be = (e, t) => {
3057
+ }) : [], Ve = (e, t) => {
3005
3058
  switch (e.kind) {
3006
3059
  case "number":
3007
3060
  case "date":
@@ -3010,7 +3063,7 @@ var Fe = 0, Ie = () => `series-row-${++Fe}`, Le = (e) => e === !0 || e === !1 ?
3010
3063
  case "boolean": return t === "" ? null : t;
3011
3064
  default: return t === "" ? null : t;
3012
3065
  }
3013
- }, Ve = (e) => typeof e.unit == "string" ? e.unit : "", He = (e, t) => {
3066
+ }, He = (e) => typeof e.unit == "string" ? e.unit : "", Ue = (e, t) => {
3014
3067
  let r = typeof e == "string" ? {
3015
3068
  label: e,
3016
3069
  value: e
@@ -3022,7 +3075,7 @@ var Fe = 0, Ie = () => `series-row-${++Fe}`, Le = (e) => e === !0 || e === !1 ?
3022
3075
  ${String(i.label)}
3023
3076
  </option>
3024
3077
  `;
3025
- }, Ue = (e) => typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" || typeof e == "bigint" ? `${e}` : "", We = ({ config: e, value: t, index: r, id: i, disabled: a, readOnly: o, field: s, context: c, text: l, onInput: d, onBlur: f, label: p }) => {
3078
+ }, We = (e) => typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" || typeof e == "bigint" ? `${e}` : "", Ge = ({ config: e, value: t, index: r, id: i, disabled: a, readOnly: o, field: s, context: c, text: l, onInput: u, onBlur: f, label: p }) => {
3026
3079
  let m = !!e.required;
3027
3080
  switch (e.kind) {
3028
3081
  case "date": return n`
@@ -3032,14 +3085,14 @@ var Fe = 0, Ie = () => `series-row-${++Fe}`, Le = (e) => e === !0 || e === !1 ?
3032
3085
  type="date"
3033
3086
  .value=${typeof t == "string" ? t : ""}
3034
3087
  aria-label=${p}
3035
- aria-describedby=${u(c?.describedBy)}
3088
+ aria-describedby=${d(c?.describedBy)}
3036
3089
  aria-invalid=${String(c?.invalid ?? !1)}
3037
3090
  ?required=${m}
3038
3091
  ?disabled=${a}
3039
3092
  ?readonly=${o}
3040
- min=${u(typeof e.min == "string" ? e.min : void 0)}
3041
- max=${u(typeof e.max == "string" ? e.max : void 0)}
3042
- @input=${(e) => d(r, s, e.target.value)}
3093
+ min=${d(typeof e.min == "string" ? e.min : void 0)}
3094
+ max=${d(typeof e.max == "string" ? e.max : void 0)}
3095
+ @input=${(e) => u(r, s, e.target.value)}
3043
3096
  @blur=${f}
3044
3097
  />
3045
3098
  `;
@@ -3050,17 +3103,17 @@ var Fe = 0, Ie = () => `series-row-${++Fe}`, Le = (e) => e === !0 || e === !1 ?
3050
3103
  class="control"
3051
3104
  id=${i}
3052
3105
  aria-label=${p}
3053
- aria-describedby=${u(c?.describedBy)}
3106
+ aria-describedby=${d(c?.describedBy)}
3054
3107
  aria-invalid=${String(c?.invalid ?? !1)}
3055
3108
  ?required=${m}
3056
3109
  ?disabled=${!!(a || o)}
3057
- @change=${(e) => d(r, s, e.target.value)}
3110
+ @change=${(e) => u(r, s, e.target.value)}
3058
3111
  @blur=${f}
3059
3112
  >
3060
3113
  <option value="" ?selected=${g === ""}>
3061
3114
  &#8212; ${l.categoryPlaceholder} &#8212;
3062
3115
  </option>
3063
- ${h.map((e) => He(e, g))}
3116
+ ${h.map((e) => Ue(e, g))}
3064
3117
  </select>
3065
3118
  `;
3066
3119
  }
@@ -3071,13 +3124,13 @@ var Fe = 0, Ie = () => `series-row-${++Fe}`, Le = (e) => e === !0 || e === !1 ?
3071
3124
  class="control"
3072
3125
  id=${i}
3073
3126
  aria-label=${p}
3074
- aria-describedby=${u(c?.describedBy)}
3127
+ aria-describedby=${d(c?.describedBy)}
3075
3128
  aria-invalid=${String(c?.invalid ?? !1)}
3076
3129
  ?required=${m}
3077
3130
  ?disabled=${!!(a || o)}
3078
3131
  @change=${(e) => {
3079
3132
  let t = e.target.value;
3080
- d(r, s, t === "" ? "" : t === "true");
3133
+ u(r, s, t === "" ? "" : t === "true");
3081
3134
  }}
3082
3135
  @blur=${f}
3083
3136
  >
@@ -3088,7 +3141,7 @@ var Fe = 0, Ie = () => `series-row-${++Fe}`, Le = (e) => e === !0 || e === !1 ?
3088
3141
  `;
3089
3142
  }
3090
3143
  case "number": {
3091
- let l = Ve(e);
3144
+ let l = He(e);
3092
3145
  return n`
3093
3146
  <div class="value-wrap">
3094
3147
  <input
@@ -3101,14 +3154,14 @@ var Fe = 0, Ie = () => `series-row-${++Fe}`, Le = (e) => e === !0 || e === !1 ?
3101
3154
  .value=${typeof t == "string" ? t : ""}
3102
3155
  placeholder=${F(e.placeholder)}
3103
3156
  aria-label=${p}
3104
- aria-describedby=${u(c?.describedBy)}
3157
+ aria-describedby=${d(c?.describedBy)}
3105
3158
  aria-invalid=${String(c?.invalid ?? !1)}
3106
- aria-valuemin=${u(typeof e.min == "number" ? e.min : void 0)}
3107
- aria-valuemax=${u(typeof e.max == "number" ? e.max : void 0)}
3159
+ aria-valuemin=${d(typeof e.min == "number" ? e.min : void 0)}
3160
+ aria-valuemax=${d(typeof e.max == "number" ? e.max : void 0)}
3108
3161
  ?required=${m}
3109
3162
  ?disabled=${a}
3110
3163
  ?readonly=${o}
3111
- @input=${(e) => d(r, s, e.target.value)}
3164
+ @input=${(e) => u(r, s, e.target.value)}
3112
3165
  @blur=${f}
3113
3166
  />
3114
3167
  <span class="unit" aria-hidden="true">${l}</span>
@@ -3120,20 +3173,20 @@ var Fe = 0, Ie = () => `series-row-${++Fe}`, Le = (e) => e === !0 || e === !1 ?
3120
3173
  class="control"
3121
3174
  id=${i}
3122
3175
  type="text"
3123
- .value=${Ue(t)}
3176
+ .value=${We(t)}
3124
3177
  placeholder=${F(e.placeholder)}
3125
3178
  aria-label=${p}
3126
- aria-describedby=${u(c?.describedBy)}
3179
+ aria-describedby=${d(c?.describedBy)}
3127
3180
  aria-invalid=${String(c?.invalid ?? !1)}
3128
3181
  ?required=${m}
3129
3182
  ?disabled=${a}
3130
3183
  ?readonly=${o}
3131
- @input=${(e) => d(r, s, e.target.value)}
3184
+ @input=${(e) => u(r, s, e.target.value)}
3132
3185
  @blur=${f}
3133
3186
  />
3134
3187
  `;
3135
3188
  }
3136
- }, Ge = t`
3189
+ }, Ke = t`
3137
3190
  .series {
3138
3191
  display: grid;
3139
3192
  gap: 0.9rem;
@@ -3287,8 +3340,8 @@ var Fe = 0, Ie = () => `series-row-${++Fe}`, Le = (e) => e === !0 || e === !1 ?
3287
3340
  justify-self: end;
3288
3341
  }
3289
3342
  }
3290
- `, Y = class extends v {
3291
- static styles = [v.styles, Ge];
3343
+ `, Z = class extends y {
3344
+ static styles = [y.styles, Ke];
3292
3345
  #e = [];
3293
3346
  get rows() {
3294
3347
  return this.#e;
@@ -3301,7 +3354,7 @@ var Fe = 0, Ie = () => `series-row-${++Fe}`, Le = (e) => e === !0 || e === !1 ?
3301
3354
  super.willUpdate(e), e.has("descriptor") && this.#i();
3302
3355
  }
3303
3356
  render() {
3304
- let e = this.fieldContext, t = !!this.fieldContext?.disabled, r = !!this.fieldContext?.readOnly, i = t || r, a = this.#n, o = this.#r, s = `${Math.max(Ve(o).length * .56 + .8, 2.3)}rem`, c = this.text;
3357
+ let e = this.fieldContext, t = !!this.fieldContext?.disabled, r = !!this.fieldContext?.readOnly, i = t || r, a = this.#n, o = this.#r, s = `${Math.max(He(o).length * .56 + .8, 2.3)}rem`, c = this.text;
3305
3358
  return n`
3306
3359
  <div class="series" style=${`--mlf-series-unit-width: ${s};`}>
3307
3360
  <div class="toolbar">
@@ -3358,11 +3411,11 @@ var Fe = 0, Ie = () => `series-row-${++Fe}`, Le = (e) => e === !0 || e === !1 ?
3358
3411
  return this.props.field2 ?? {};
3359
3412
  }
3360
3413
  #i() {
3361
- this.rows = ze(this.props.value, this.#n, this.#r), this.#t = !1;
3414
+ this.rows = Be(this.props.value, this.#n, this.#r), this.#t = !1;
3362
3415
  }
3363
3416
  #a = () => {
3364
3417
  this.rows = [...this.rows, {
3365
- key: Ie(),
3418
+ key: Le(),
3366
3419
  field1: "",
3367
3420
  field2: ""
3368
3421
  }], this.#t = !0, this.#l();
@@ -3381,13 +3434,13 @@ var Fe = 0, Ie = () => `series-row-${++Fe}`, Le = (e) => e === !0 || e === !1 ?
3381
3434
  };
3382
3435
  #l() {
3383
3436
  this.#t &&= (this.commitValue(this.rows.map((e) => ({
3384
- field1: Be(this.#n, e.field1),
3385
- field2: Be(this.#r, e.field2)
3437
+ field1: Ve(this.#n, e.field1),
3438
+ field2: Ve(this.#r, e.field2)
3386
3439
  }))), !1);
3387
3440
  }
3388
3441
  #u(e, t, n, r, i, a, o) {
3389
3442
  let s = this.fieldContext, c = `${s?.label ?? F(this.props.label)} ${F(e.label, `field${o}`)} ${n + 1}`;
3390
- return We({
3443
+ return Ge({
3391
3444
  config: e,
3392
3445
  value: t,
3393
3446
  index: n,
@@ -3403,11 +3456,11 @@ var Fe = 0, Ie = () => `series-row-${++Fe}`, Le = (e) => e === !0 || e === !1 ?
3403
3456
  });
3404
3457
  }
3405
3458
  };
3406
- _([o()], Y.prototype, "rows", null), Y = _([i(d.seriesField)], Y);
3459
+ v([s()], Z.prototype, "rows", null), Z = v([i(f.seriesField)], Z);
3407
3460
  //#endregion
3408
3461
  //#region src/primitives/fields/long-text-field.ts
3409
- var Ke = class extends v {
3410
- static styles = [v.styles, t`
3462
+ var qe = class extends y {
3463
+ static styles = [y.styles, t`
3411
3464
  textarea.control {
3412
3465
  resize: vertical;
3413
3466
  min-height: 6rem;
@@ -3424,7 +3477,7 @@ var Ke = class extends v {
3424
3477
  placeholder=${F(e.placeholder)}
3425
3478
  rows=${i}
3426
3479
  aria-label=${t?.label ?? F(e.label)}
3427
- aria-describedby=${u(t?.describedBy)}
3480
+ aria-describedby=${d(t?.describedBy)}
3428
3481
  aria-invalid=${String(t?.invalid ?? !1)}
3429
3482
  ?required=${!!e.required}
3430
3483
  ?disabled=${!!t?.disabled}
@@ -3442,14 +3495,14 @@ var Ke = class extends v {
3442
3495
  this.commitBlur();
3443
3496
  };
3444
3497
  };
3445
- Ke = _([i(d.longTextField)], Ke);
3498
+ qe = v([i(f.longTextField)], qe);
3446
3499
  //#endregion
3447
3500
  //#region src/primitives/fields/single-choice-field.ts
3448
- var qe = (e) => typeof e == "string" ? {
3501
+ var Je = (e) => typeof e == "string" ? {
3449
3502
  label: e,
3450
3503
  value: e
3451
- } : e, Je = class extends v {
3452
- static styles = [v.styles, t`
3504
+ } : e, Ye = class extends y {
3505
+ static styles = [y.styles, t`
3453
3506
  fieldset {
3454
3507
  border: none;
3455
3508
  padding: 0;
@@ -3518,12 +3571,12 @@ var qe = (e) => typeof e == "string" ? {
3518
3571
  class="options ${a}"
3519
3572
  role="radiogroup"
3520
3573
  aria-label=${o}
3521
- aria-describedby=${u(t?.describedBy)}
3574
+ aria-describedby=${d(t?.describedBy)}
3522
3575
  aria-invalid=${String(t?.invalid ?? !1)}
3523
3576
  aria-required=${String(!!e.required)}
3524
3577
  >
3525
3578
  ${i.map((e) => {
3526
- let { label: i, value: a } = qe(e), o = `${t?.controlId ?? "sc"}-${a}`;
3579
+ let { label: i, value: a } = Je(e), o = `${t?.controlId ?? "sc"}-${a}`;
3527
3580
  return n`
3528
3581
  <label class=${s ? "disabled" : ""} for=${o}>
3529
3582
  <input
@@ -3552,14 +3605,14 @@ var qe = (e) => typeof e == "string" ? {
3552
3605
  this.commitBlur();
3553
3606
  };
3554
3607
  };
3555
- Je = _([i(d.singleChoiceField)], Je);
3608
+ Ye = v([i(f.singleChoiceField)], Ye);
3556
3609
  //#endregion
3557
3610
  //#region src/primitives/fields/multi-choice-field.ts
3558
- var Ye = (e) => typeof e == "string" ? {
3611
+ var Xe = (e) => typeof e == "string" ? {
3559
3612
  label: e,
3560
3613
  value: e
3561
- } : e, Xe = class extends v {
3562
- static styles = [v.styles, t`
3614
+ } : e, Ze = class extends y {
3615
+ static styles = [y.styles, t`
3563
3616
  fieldset {
3564
3617
  border: none;
3565
3618
  padding: 0;
@@ -3629,12 +3682,12 @@ var Ye = (e) => typeof e == "string" ? {
3629
3682
  class="options ${a}"
3630
3683
  role="group"
3631
3684
  aria-label=${o}
3632
- aria-describedby=${u(t?.describedBy)}
3685
+ aria-describedby=${d(t?.describedBy)}
3633
3686
  aria-invalid=${String(t?.invalid ?? !1)}
3634
3687
  aria-required=${String(!!e.required)}
3635
3688
  >
3636
3689
  ${i.map((e) => {
3637
- let { label: i, value: a } = Ye(e), o = `${t?.controlId ?? "mc"}-${a}`;
3690
+ let { label: i, value: a } = Xe(e), o = `${t?.controlId ?? "mc"}-${a}`;
3638
3691
  return n`
3639
3692
  <label class=${s ? "disabled" : ""} for=${o}>
3640
3693
  <input
@@ -3663,11 +3716,11 @@ var Ye = (e) => typeof e == "string" ? {
3663
3716
  this.commitBlur();
3664
3717
  };
3665
3718
  };
3666
- Xe = _([i(d.multiChoiceField)], Xe);
3719
+ Ze = v([i(f.multiChoiceField)], Ze);
3667
3720
  //#endregion
3668
3721
  //#region src/primitives/fields/rating-field.ts
3669
- var Ze = class extends v {
3670
- static styles = [v.styles, t`
3722
+ var Qe = class extends y {
3723
+ static styles = [y.styles, t`
3671
3724
  .rating-container {
3672
3725
  display: inline-flex;
3673
3726
  gap: 0.25rem;
@@ -3726,12 +3779,12 @@ var Ze = class extends v {
3726
3779
  <div
3727
3780
  role="slider"
3728
3781
  aria-label=${c}
3729
- aria-valuenow=${u(r === null ? void 0 : r)}
3782
+ aria-valuenow=${d(r === null ? void 0 : r)}
3730
3783
  aria-valuemin=${i}
3731
3784
  aria-valuemax=${a}
3732
3785
  aria-invalid=${String(t?.invalid ?? !1)}
3733
3786
  aria-required=${String(!!e.required)}
3734
- aria-describedby=${u(t?.describedBy)}
3787
+ aria-describedby=${d(t?.describedBy)}
3735
3788
  aria-disabled=${String(s)}
3736
3789
  tabindex="-1"
3737
3790
  >
@@ -3774,10 +3827,10 @@ var Ze = class extends v {
3774
3827
  }
3775
3828
  };
3776
3829
  };
3777
- Ze = _([i(d.ratingField)], Ze);
3830
+ Qe = v([i(f.ratingField)], Qe);
3778
3831
  //#endregion
3779
3832
  //#region src/primitives/reports/classifier-report.ts
3780
- var Qe = (e, t, n) => {
3833
+ var $e = (e, t, n) => {
3781
3834
  if (!P(e) || !Array.isArray(e.probabilities)) return [];
3782
3835
  let r = Array.isArray(t) ? t : e.labels, i = Array.isArray(r) ? r : [];
3783
3836
  return e.probabilities.map((e, t) => {
@@ -3787,8 +3840,8 @@ var Qe = (e, t, n) => {
3787
3840
  value: r
3788
3841
  };
3789
3842
  }).filter((e) => e !== null);
3790
- }, $e = class extends b {
3791
- static styles = [b.styles, t`
3843
+ }, et = class extends x {
3844
+ static styles = [x.styles, t`
3792
3845
  .rows {
3793
3846
  display: grid;
3794
3847
  gap: 0.5rem;
@@ -3859,7 +3912,7 @@ var Qe = (e, t, n) => {
3859
3912
  let e = this.props.payload, t = typeof this.props.error == "string" ? this.props.error : null, r = this.reportContext, i = this.props.showClassProbabilities !== !1, a = this.text;
3860
3913
  if (t) return n`<div class="error">${t}</div>`;
3861
3914
  if (e == null) return n`<div class="empty">${a.classifierEmpty}</div>`;
3862
- let o = P(e) ? e.prediction ?? e.className ?? e.label ?? a.classifierUnknownPrediction : e, s = Qe(e, this.props.labels, a.classifierClassLabel);
3915
+ let o = P(e) ? e.prediction ?? e.className ?? e.label ?? a.classifierUnknownPrediction : e, s = $e(e, this.props.labels, a.classifierClassLabel);
3863
3916
  return n`
3864
3917
  <section
3865
3918
  part="classifier-report"
@@ -3887,14 +3940,14 @@ var Qe = (e, t, n) => {
3887
3940
  `;
3888
3941
  }
3889
3942
  };
3890
- $e = _([i(d.classifierReport)], $e);
3943
+ et = v([i(f.classifierReport)], et);
3891
3944
  //#endregion
3892
3945
  //#region src/primitives/reports/regressor-report.ts
3893
- var X = (e, t, n) => {
3946
+ var Q = (e, t, n) => {
3894
3947
  if (typeof e == "number") return `${e.toFixed(t)}${n ? ` ${n}` : ""}`;
3895
3948
  let r = Number(e);
3896
3949
  return Number.isNaN(r) ? String(e) : `${r.toFixed(t)}${n ? ` ${n}` : ""}`;
3897
- }, et = (e) => {
3950
+ }, tt = (e) => {
3898
3951
  if (P(e) && Array.isArray(e.values)) return e.values.map((e) => Number(e)).filter((e) => !Number.isNaN(e));
3899
3952
  if (P(e) && "value" in e) {
3900
3953
  let t = Number(e.value);
@@ -3902,13 +3955,13 @@ var X = (e, t, n) => {
3902
3955
  }
3903
3956
  let t = Number(e);
3904
3957
  return Number.isNaN(t) ? [] : [t];
3905
- }, tt = (e) => {
3958
+ }, nt = (e) => {
3906
3959
  if (P(e) && Array.isArray(e.interval) && e.interval.length === 2) {
3907
3960
  let t = Number(e.interval[0]), n = Number(e.interval[1]);
3908
3961
  if (!Number.isNaN(t) && !Number.isNaN(n)) return [t, n];
3909
3962
  }
3910
3963
  return P(e) && typeof e.min == "number" && typeof e.max == "number" ? [e.min, e.max] : null;
3911
- }, nt = (e, t) => {
3964
+ }, rt = (e, t) => {
3912
3965
  if (t <= e) return "linear-gradient(to right, #ffea00 0%, #00c853 50%, #ffea00 100%)";
3913
3966
  let n = t - e, r = e - n, i = t + n, a = (e) => (e - r) / (i - r) * 100, o = a(e), s = a(t), c = a((e + t) / 2);
3914
3967
  return `linear-gradient(to right,
@@ -3919,12 +3972,12 @@ var X = (e, t, n) => {
3919
3972
  #ffea00 ${s}%,
3920
3973
  #ff6d00 ${Math.min(s + 10, 100)}%,
3921
3974
  #c62828 100%)`;
3922
- }, Z = (e, t, n) => {
3975
+ }, $ = (e, t, n) => {
3923
3976
  if (n <= t) return 49;
3924
3977
  let r = n - t, i = t - r, a = n + r;
3925
3978
  return Math.min(Math.max((e - i) / (a - i) * 100, 0), 98.45);
3926
- }, Q = class extends b {
3927
- static styles = [b.styles, t`
3979
+ }, it = class extends x {
3980
+ static styles = [x.styles, t`
3928
3981
  :host {
3929
3982
  --marker-size: 14px;
3930
3983
  --limit-line-width: 3px;
@@ -4003,7 +4056,7 @@ var X = (e, t, n) => {
4003
4056
  let e = this.props.payload, t = typeof this.props.error == "string" ? this.props.error : null, r = this.reportContext, i = this.text;
4004
4057
  if (t) return n`<div class="error">${t}</div>`;
4005
4058
  if (e == null) return n`<div class="empty">${i.regressorEmpty}</div>`;
4006
- let a = typeof this.props.unit == "string" ? this.props.unit : "", o = typeof this.props.precision == "number" && this.props.precision >= 0 ? this.props.precision : 2, s = et(e), c = tt(e), l = P(e) && typeof e.execution_time == "number" ? `${e.execution_time} ms` : null;
4059
+ let a = typeof this.props.unit == "string" ? this.props.unit : "", o = typeof this.props.precision == "number" && this.props.precision >= 0 ? this.props.precision : 2, s = tt(e), c = nt(e), l = P(e) && typeof e.execution_time == "number" ? `${e.execution_time} ms` : null;
4007
4060
  return n`
4008
4061
  <section
4009
4062
  part="regressor-report"
@@ -4012,51 +4065,51 @@ var X = (e, t, n) => {
4012
4065
  >
4013
4066
  ${s.length > 0 ? s.map((e) => n`
4014
4067
  <div class="item">
4015
- <div class="value">${X(e, o, a)}</div>
4068
+ <div class="value">${Q(e, o, a)}</div>
4016
4069
 
4017
4070
  ${c ? n`
4018
4071
  <div
4019
4072
  class="bar-wrapper"
4020
- style=${`background: ${nt(c[0], c[1])};`}
4073
+ style=${`background: ${rt(c[0], c[1])};`}
4021
4074
  >
4022
4075
  <div
4023
4076
  class="limit-wrapper"
4024
- style=${`left: ${Z(c[0], c[0], c[1])}%;`}
4077
+ style=${`left: ${$(c[0], c[0], c[1])}%;`}
4025
4078
  >
4026
4079
  <div class="limit-line"></div>
4027
4080
  <div class="limit-label">
4028
- ${X(c[0], o, a)}
4081
+ ${Q(c[0], o, a)}
4029
4082
  </div>
4030
4083
  </div>
4031
4084
 
4032
4085
  <div
4033
4086
  class="limit-wrapper"
4034
- style=${`left: ${Z(c[1], c[0], c[1])}%;`}
4087
+ style=${`left: ${$(c[1], c[0], c[1])}%;`}
4035
4088
  >
4036
4089
  <div class="limit-line"></div>
4037
4090
  <div class="limit-label">
4038
- ${X(c[1], o, a)}
4091
+ ${Q(c[1], o, a)}
4039
4092
  </div>
4040
4093
  </div>
4041
4094
 
4042
4095
  <span
4043
4096
  class="value-marker"
4044
- style=${`left: ${Z(e, c[0], c[1])}%;`}
4097
+ style=${`left: ${$(e, c[0], c[1])}%;`}
4045
4098
  ></span>
4046
4099
  </div>
4047
4100
  ` : n``}
4048
4101
  </div>
4049
- `) : n`<div class="value">${X(e, o, a)}</div>`}
4102
+ `) : n`<div class="value">${Q(e, o, a)}</div>`}
4050
4103
  ${l ? n`<div class="meta">${i.regressorExecutionTime(l)}</div>` : n``}
4051
4104
  ${this.renderTransportPanel(i)}
4052
4105
  </section>
4053
4106
  `;
4054
4107
  }
4055
4108
  };
4056
- Q = _([i(d.regressorReport)], Q);
4109
+ it = v([i(f.regressorReport)], it);
4057
4110
  //#endregion
4058
4111
  //#region src/primitives/registry.ts
4059
- var rt = new Set([
4112
+ var at = new Set([
4060
4113
  "annotation-xml",
4061
4114
  "color-profile",
4062
4115
  "font-face",
@@ -4065,19 +4118,19 @@ var rt = new Set([
4065
4118
  "font-face-format",
4066
4119
  "font-face-name",
4067
4120
  "missing-glyph"
4068
- ]), it = (e) => /^[a-z][-.0-9_a-z]*-[-.0-9_a-z]*[a-z0-9]$/.test(e) && !rt.has(e), at = (e) => {
4069
- if (!it(e)) throw TypeError(`Invalid primitive renderer tag name "${e}". Expected a valid custom element name.`);
4070
- }, ot = class e {
4121
+ ]), ot = (e) => /^[a-z][-.0-9_a-z]*-[-.0-9_a-z]*[a-z0-9]$/.test(e) && !at.has(e), st = (e) => {
4122
+ if (!ot(e)) throw TypeError(`Invalid primitive renderer tag name "${e}". Expected a valid custom element name.`);
4123
+ }, ct = class e {
4071
4124
  #e = /* @__PURE__ */ new Map();
4072
4125
  #t = /* @__PURE__ */ new Map();
4073
4126
  registerField(e, t) {
4074
- return at(t), this.#e.set(e, t), this;
4127
+ return st(t), this.#e.set(e, t), this;
4075
4128
  }
4076
4129
  unregisterField(e) {
4077
4130
  return this.#e.delete(e), this;
4078
4131
  }
4079
4132
  registerReport(e, t) {
4080
- return at(t), this.#t.set(e, t), this;
4133
+ return st(t), this.#t.set(e, t), this;
4081
4134
  }
4082
4135
  unregisterReport(e) {
4083
4136
  return this.#t.delete(e), this;
@@ -4094,11 +4147,11 @@ var rt = new Set([
4094
4147
  for (let [e, n] of this.#t) t.registerReport(e, n);
4095
4148
  return t;
4096
4149
  }
4097
- }, st = () => new ot(), $ = () => st().registerField("declarative-field", d.declarativeField).registerField("text-field", d.textField).registerField("number-field", d.numberField).registerField("boolean-field", d.booleanField).registerField("category-field", d.categoryField).registerField("date-field", d.dateField).registerField("series-field", d.seriesField).registerField("long-text-field", d.longTextField).registerField("single-choice-field", d.singleChoiceField).registerField("multi-choice-field", d.multiChoiceField).registerField("rating-field", d.ratingField).registerReport("declarative-report", d.declarativeReport).registerReport("classifier-report", d.classifierReport).registerReport("regressor-report", d.regressorReport), ct = (e, t) => {
4150
+ }, lt = () => new ct(), ut = () => lt().registerField("declarative-field", f.declarativeField).registerField("text-field", f.textField).registerField("number-field", f.numberField).registerField("boolean-field", f.booleanField).registerField("category-field", f.categoryField).registerField("date-field", f.dateField).registerField("series-field", f.seriesField).registerField("long-text-field", f.longTextField).registerField("single-choice-field", f.singleChoiceField).registerField("multi-choice-field", f.multiChoiceField).registerField("rating-field", f.ratingField).registerReport("declarative-report", f.declarativeReport).registerReport("mounted-report", f.mountedReport).registerReport("classifier-report", f.classifierReport).registerReport("regressor-report", f.regressorReport), dt = (e, t) => {
4098
4151
  if (e.childNodes.length > 0 && t !== "replace") throw TypeError("Mount into an empty container or pass `containerStrategy: \"replace\"`.");
4099
- }, lt = (e) => e ? e.clone() : $(), ut = (e) => e?.clone() ?? k(), dt = (e, t, n = {}) => {
4100
- let r = document.createElement(d.form), i = lt(n.registry), a = ut(n.descriptorRegistry), o = h(n.text), s = n.containerStrategy ?? "error", c = s === "replace" ? Array.from(e.childNodes) : [];
4101
- ct(e, s), r.form = t, r.registry = i, r.descriptorRegistry = a, r.layout = n.layout ?? "stacked", r.formLabel = n.formLabel ?? p.form, r.reportsLabel = n.reportsLabel ?? p.reports, r.submitLabel = n.submitLabel ?? p.submit, r.validatingLabel = n.validatingLabel ?? p.validating, r.submittingLabel = n.submittingLabel ?? p.submitting, r.reportPane = n.reportPane ?? "auto", r.text = o, r.reportTransport = n.reportTransport, r.reportFetchMode = n.reportFetchMode ?? "lazy", r.submitHandler = n.submitHandler, e.replaceChildren(r);
4152
+ }, ft = (e) => e ? e.clone() : ut(), pt = (e) => e?.clone() ?? k(), mt = (e, t, n = {}) => {
4153
+ let r = document.createElement(f.form), i = ft(n.registry), a = pt(n.descriptorRegistry), o = g(n.text), s = n.containerStrategy ?? "error", c = s === "replace" ? Array.from(e.childNodes) : [];
4154
+ dt(e, s), r.form = t, r.registry = i, r.descriptorRegistry = a, r.layout = n.layout ?? "stacked", r.formLabel = n.formLabel ?? m.form, r.reportsLabel = n.reportsLabel ?? m.reports, r.submitLabel = n.submitLabel ?? m.submit, r.validatingLabel = n.validatingLabel ?? m.validating, r.submittingLabel = n.submittingLabel ?? m.submitting, r.reportPane = n.reportPane ?? "auto", r.text = o, r.reportTransport = n.reportTransport, r.reportFetchMode = n.reportFetchMode ?? "lazy", r.submitHandler = n.submitHandler, e.replaceChildren(r);
4102
4155
  let l = !1;
4103
4156
  return Object.freeze({
4104
4157
  form: t,
@@ -4110,8 +4163,8 @@ var rt = new Set([
4110
4163
  l || (l = !0, r.parentNode === e ? s === "replace" && c.length > 0 ? e.replaceChildren(...c) : e.removeChild(r) : (r.remove(), s === "replace" && c.length > 0 && e.childNodes.length === 0 && e.replaceChildren(...c)));
4111
4164
  }
4112
4165
  });
4113
- }, ft = (e) => {
4166
+ }, ht = (e) => {
4114
4167
  e.unmount();
4115
4168
  };
4116
4169
  //#endregion
4117
- export { h as _, ve as a, D as c, y as d, v as f, d as g, m as h, st as i, ae as l, p as m, ft as n, O as o, _ as p, $ as r, k as s, dt as t, b as u };
4170
+ export { g as _, ye as a, O as c, b as d, y as f, f as g, h, lt as i, oe as l, m, ht as n, ve as o, v as p, ut as r, k as s, mt as t, x as u };