@hievilmath/browser-formidavim 1.5.8 → 1.5.9

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.
Files changed (4) hide show
  1. package/README.md +5 -0
  2. package/index.js +50 -52
  3. package/index.mjs +473 -477
  4. package/package.json +1 -1
package/index.mjs CHANGED
@@ -56,8 +56,8 @@ function G6() {
56
56
  var We = I && ie[I] || ie[P];
57
57
  return typeof We == "function" ? We : null;
58
58
  }
59
- var W = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
60
- function Y(ie) {
59
+ var Y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
60
+ function W(ie) {
61
61
  {
62
62
  for (var We = arguments.length, ot = new Array(We > 1 ? We - 1 : 0), Lt = 1; Lt < We; Lt++)
63
63
  ot[Lt - 1] = arguments[Lt];
@@ -66,7 +66,7 @@ function G6() {
66
66
  }
67
67
  function k(ie, We, ot) {
68
68
  {
69
- var Lt = W.ReactDebugCurrentFrame, $t = Lt.getStackAddendum();
69
+ var Lt = Y.ReactDebugCurrentFrame, $t = Lt.getStackAddendum();
70
70
  $t !== "" && (We += "%s", ot = ot.concat([$t]));
71
71
  var Wt = ot.map(function(en) {
72
72
  return String(en);
@@ -96,7 +96,7 @@ function G6() {
96
96
  function ce(ie) {
97
97
  if (ie == null)
98
98
  return null;
99
- if (typeof ie.tag == "number" && Y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof ie == "function")
99
+ if (typeof ie.tag == "number" && W("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof ie == "function")
100
100
  return ie.displayName || ie.name || null;
101
101
  if (typeof ie == "string")
102
102
  return ie;
@@ -197,10 +197,10 @@ function G6() {
197
197
  })
198
198
  });
199
199
  }
200
- me < 0 && Y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
200
+ me < 0 && W("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
201
201
  }
202
202
  }
203
- var Ye = W.ReactCurrentDispatcher, ze;
203
+ var Ye = Y.ReactCurrentDispatcher, ze;
204
204
  function Q(ie, We, ot) {
205
205
  {
206
206
  if (ze === void 0)
@@ -326,7 +326,7 @@ function G6() {
326
326
  }
327
327
  return "";
328
328
  }
329
- var nt = Object.prototype.hasOwnProperty, Mt = {}, Nt = W.ReactDebugCurrentFrame;
329
+ var nt = Object.prototype.hasOwnProperty, Mt = {}, Nt = Y.ReactDebugCurrentFrame;
330
330
  function mt(ie) {
331
331
  if (ie) {
332
332
  var We = ie._owner, ot = Fe(ie.type, ie._source, We ? We.type : null);
@@ -349,7 +349,7 @@ function G6() {
349
349
  } catch (er) {
350
350
  tn = er;
351
351
  }
352
- tn && !(tn instanceof Error) && (mt($t), Y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Lt || "React class", ot, en, typeof tn), mt(null)), tn instanceof Error && !(tn.message in Mt) && (Mt[tn.message] = !0, mt($t), Y("Failed %s type: %s", ot, tn.message), mt(null));
352
+ tn && !(tn instanceof Error) && (mt($t), W("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Lt || "React class", ot, en, typeof tn), mt(null)), tn instanceof Error && !(tn.message in Mt) && (Mt[tn.message] = !0, mt($t), W("Failed %s type: %s", ot, tn.message), mt(null));
353
353
  }
354
354
  }
355
355
  }
@@ -375,9 +375,9 @@ function G6() {
375
375
  }
376
376
  function cn(ie) {
377
377
  if (vn(ie))
378
- return Y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", un(ie)), pn(ie);
378
+ return W("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", un(ie)), pn(ie);
379
379
  }
380
- var Rn = W.ReactCurrentOwner, ar = {
380
+ var Rn = Y.ReactCurrentOwner, ar = {
381
381
  key: !0,
382
382
  ref: !0,
383
383
  __self: !0,
@@ -405,7 +405,7 @@ function G6() {
405
405
  function $n(ie, We) {
406
406
  {
407
407
  var ot = function() {
408
- ir || (ir = !0, Y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", We));
408
+ ir || (ir = !0, W("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", We));
409
409
  };
410
410
  ot.isReactWarning = !0, Object.defineProperty(ie, "key", {
411
411
  get: ot,
@@ -416,7 +416,7 @@ function G6() {
416
416
  function In(ie, We) {
417
417
  {
418
418
  var ot = function() {
419
- at || (at = !0, Y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", We));
419
+ at || (at = !0, W("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", We));
420
420
  };
421
421
  ot.isReactWarning = !0, Object.defineProperty(ie, "ref", {
422
422
  get: ot,
@@ -471,7 +471,7 @@ function G6() {
471
471
  return An(ie, tn, Rr, $t, Lt, Rn.current, en);
472
472
  }
473
473
  }
474
- var qe = W.ReactCurrentOwner, B = W.ReactDebugCurrentFrame;
474
+ var qe = Y.ReactCurrentOwner, B = Y.ReactDebugCurrentFrame;
475
475
  function te(ie) {
476
476
  if (ie) {
477
477
  var We = ie._owner, ot = Fe(ie.type, ie._source, We ? We.type : null);
@@ -522,7 +522,7 @@ Check the top-level render call using <` + ot + ">.");
522
522
  return;
523
523
  he[ot] = !0;
524
524
  var Lt = "";
525
- ie && ie._owner && ie._owner !== qe.current && (Lt = " It was passed a child from " + ce(ie._owner.type) + "."), te(ie), Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ot, Lt), te(null);
525
+ ie && ie._owner && ie._owner !== qe.current && (Lt = " It was passed a child from " + ce(ie._owner.type) + "."), te(ie), W('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ot, Lt), te(null);
526
526
  }
527
527
  }
528
528
  function tt(ie, We) {
@@ -564,9 +564,9 @@ Check the top-level render call using <` + ot + ">.");
564
564
  } else if (We.PropTypes !== void 0 && !ue) {
565
565
  ue = !0;
566
566
  var $t = ce(We);
567
- Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", $t || "Unknown");
567
+ W("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", $t || "Unknown");
568
568
  }
569
- typeof We.getDefaultProps == "function" && !We.getDefaultProps.isReactClassApproved && Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
569
+ typeof We.getDefaultProps == "function" && !We.getDefaultProps.isReactClassApproved && W("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
570
570
  }
571
571
  }
572
572
  function Rt(ie) {
@@ -574,11 +574,11 @@ Check the top-level render call using <` + ot + ">.");
574
574
  for (var We = Object.keys(ie.props), ot = 0; ot < We.length; ot++) {
575
575
  var Lt = We[ot];
576
576
  if (Lt !== "children" && Lt !== "key") {
577
- te(ie), Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Lt), te(null);
577
+ te(ie), W("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Lt), te(null);
578
578
  break;
579
579
  }
580
580
  }
581
- ie.ref !== null && (te(ie), Y("Invalid attribute `ref` supplied to `React.Fragment`."), te(null));
581
+ ie.ref !== null && (te(ie), W("Invalid attribute `ref` supplied to `React.Fragment`."), te(null));
582
582
  }
583
583
  }
584
584
  var fn = {};
@@ -591,7 +591,7 @@ Check the top-level render call using <` + ot + ">.");
591
591
  var Rr = q();
592
592
  Rr ? tn += Rr : tn += F();
593
593
  var er;
594
- ie === null ? er = "null" : it(ie) ? er = "array" : ie !== void 0 && ie.$$typeof === r ? (er = "<" + (ce(ie.type) || "Unknown") + " />", tn = " Did you accidentally export a JSX literal instead of a component?") : er = typeof ie, Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", er, tn);
594
+ ie === null ? er = "null" : it(ie) ? er = "array" : ie !== void 0 && ie.$$typeof === r ? (er = "<" + (ce(ie.type) || "Unknown") + " />", tn = " Did you accidentally export a JSX literal instead of a component?") : er = typeof ie, W("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", er, tn);
595
595
  }
596
596
  var lr = _n(ie, We, ot, $t, Wt);
597
597
  if (lr == null)
@@ -605,7 +605,7 @@ Check the top-level render call using <` + ot + ">.");
605
605
  tt(eo[Yt], ie);
606
606
  Object.freeze && Object.freeze(eo);
607
607
  } else
608
- Y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
608
+ W("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
609
609
  else
610
610
  tt(eo, ie);
611
611
  }
@@ -615,7 +615,7 @@ Check the top-level render call using <` + ot + ">.");
615
615
  }), rn = Xt.length > 0 ? "{key: someKey, " + Xt.join(": ..., ") + ": ...}" : "{key: someKey}";
616
616
  if (!fn[tr + rn]) {
617
617
  var Ja = Xt.length > 0 ? "{" + Xt.join(": ..., ") + ": ...}" : "{}";
618
- Y(`A props object containing a "key" prop is being spread into JSX:
618
+ W(`A props object containing a "key" prop is being spread into JSX:
619
619
  let props = %s;
620
620
  <%s {...props} />
621
621
  React keys must be passed directly to JSX without using spread:
@@ -2030,8 +2030,6 @@ const JC = _e.div`
2030
2030
  min-width: 100%;
2031
2031
  line-height: 1.2em;
2032
2032
  transition: all .2s;
2033
- caret-color: transparent;
2034
- cursor: pointer;
2035
2033
  }
2036
2034
  .react-datepicker-wrapper input:focus, .react-datepicker-wrapper input:hover {
2037
2035
  border-color: ${(e) => e.$hasError ? e.theme.colors.danger : e.theme.colors.primary};
@@ -3230,8 +3228,8 @@ function t3(e, r, i) {
3230
3228
  }
3231
3229
  let s = e, c = r, f = /* @__PURE__ */ new Map(), d = f, v = 0, b = !1;
3232
3230
  function S() {
3233
- d === f && (d = /* @__PURE__ */ new Map(), f.forEach((U, W) => {
3234
- d.set(W, U);
3231
+ d === f && (d = /* @__PURE__ */ new Map(), f.forEach((U, Y) => {
3232
+ d.set(Y, U);
3235
3233
  }));
3236
3234
  }
3237
3235
  function E() {
@@ -3244,14 +3242,14 @@ function t3(e, r, i) {
3244
3242
  throw new Error(process.env.NODE_ENV === "production" ? qo(4) : `Expected the listener to be a function. Instead, received: '${zu(U)}'`);
3245
3243
  if (b)
3246
3244
  throw new Error(process.env.NODE_ENV === "production" ? qo(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
3247
- let W = !0;
3245
+ let Y = !0;
3248
3246
  S();
3249
- const Y = v++;
3250
- return d.set(Y, U), function() {
3251
- if (W) {
3247
+ const W = v++;
3248
+ return d.set(W, U), function() {
3249
+ if (Y) {
3252
3250
  if (b)
3253
3251
  throw new Error(process.env.NODE_ENV === "production" ? qo(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
3254
- W = !1, S(), d.delete(Y), f = null;
3252
+ Y = !1, S(), d.delete(W), f = null;
3255
3253
  }
3256
3254
  };
3257
3255
  }
@@ -3269,8 +3267,8 @@ function t3(e, r, i) {
3269
3267
  } finally {
3270
3268
  b = !1;
3271
3269
  }
3272
- return (f = d).forEach((Y) => {
3273
- Y();
3270
+ return (f = d).forEach((W) => {
3271
+ W();
3274
3272
  }), U;
3275
3273
  }
3276
3274
  function A(U) {
@@ -3291,15 +3289,15 @@ function t3(e, r, i) {
3291
3289
  * be used to unsubscribe the observable from the store, and prevent further
3292
3290
  * emission of values from the observable.
3293
3291
  */
3294
- subscribe(W) {
3295
- if (typeof W != "object" || W === null)
3296
- throw new Error(process.env.NODE_ENV === "production" ? qo(11) : `Expected the observer to be an object. Instead, received: '${zu(W)}'`);
3297
- function Y() {
3298
- const j = W;
3292
+ subscribe(Y) {
3293
+ if (typeof Y != "object" || Y === null)
3294
+ throw new Error(process.env.NODE_ENV === "production" ? qo(11) : `Expected the observer to be an object. Instead, received: '${zu(Y)}'`);
3295
+ function W() {
3296
+ const j = Y;
3299
3297
  j.next && j.next(E());
3300
3298
  }
3301
- return Y(), {
3302
- unsubscribe: U(Y)
3299
+ return W(), {
3300
+ unsubscribe: U(W)
3303
3301
  };
3304
3302
  },
3305
3303
  [mR]() {
@@ -4114,22 +4112,22 @@ function a5(e = {}) {
4114
4112
  const U = kC(A, "", r, i, c, E);
4115
4113
  if (U) {
4116
4114
  const {
4117
- keyPath: W,
4118
- value: Y
4115
+ keyPath: Y,
4116
+ value: W
4119
4117
  } = U;
4120
- console.error(`A non-serializable value was detected in an action, in the path: \`${W}\`. Value:`, Y, `
4118
+ console.error(`A non-serializable value was detected in an action, in the path: \`${Y}\`. Value:`, W, `
4121
4119
  Take a look at the logic that dispatched this action: `, A, `
4122
4120
  (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`, `
4123
4121
  (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`);
4124
4122
  }
4125
4123
  }), v || (P.measureTime(() => {
4126
- const U = w.getState(), W = kC(U, "", r, i, f, E);
4127
- if (W) {
4124
+ const U = w.getState(), Y = kC(U, "", r, i, f, E);
4125
+ if (Y) {
4128
4126
  const {
4129
- keyPath: Y,
4127
+ keyPath: W,
4130
4128
  value: k
4131
- } = W;
4132
- console.error(`A non-serializable value was detected in the state, in the path: \`${Y}\`. Value:`, k, `
4129
+ } = Y;
4130
+ console.error(`A non-serializable value was detected in the state, in the path: \`${W}\`. Value:`, k, `
4133
4131
  Take a look at the reducer(s) handling this action type: ${A.type}.
4134
4132
  (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`);
4135
4133
  }
@@ -4396,7 +4394,7 @@ function v5({
4396
4394
  function U() {
4397
4395
  return I || (I = w()), I.getInitialState();
4398
4396
  }
4399
- function W(k, j = !1) {
4397
+ function Y(k, j = !1) {
4400
4398
  function N(ee) {
4401
4399
  let le = ee[k];
4402
4400
  if (typeof le > "u") {
@@ -4429,13 +4427,13 @@ function v5({
4429
4427
  selectSlice: N
4430
4428
  };
4431
4429
  }
4432
- const Y = {
4430
+ const W = {
4433
4431
  name: f,
4434
4432
  reducer: P,
4435
4433
  actions: S.actionCreators,
4436
4434
  caseReducers: S.sliceCaseReducersByName,
4437
4435
  getInitialState: U,
4438
- ...W(d),
4436
+ ...Y(d),
4439
4437
  injectInto(k, {
4440
4438
  reducerPath: j,
4441
4439
  ...N
@@ -4445,12 +4443,12 @@ function v5({
4445
4443
  reducerPath: z,
4446
4444
  reducer: P
4447
4445
  }, N), {
4448
- ...Y,
4449
- ...W(z, !0)
4446
+ ...W,
4447
+ ...Y(z, !0)
4450
4448
  };
4451
4449
  }
4452
4450
  };
4453
- return Y;
4451
+ return W;
4454
4452
  };
4455
4453
  }
4456
4454
  function y5(e, r, i, s) {
@@ -4628,10 +4626,10 @@ const w5 = {
4628
4626
  const r = Number(e);
4629
4627
  return isNaN(r) ? null : r;
4630
4628
  }, G5 = ({ formComponent: e }) => {
4631
- const r = e.props, { propertyId: i, label: s = "Input Label", min: c, max: f, allowLeadingZero: d, required: v } = r || {}, { getFlowValue: b, setFlowAndPatientValue: S, getFlowError: E } = Or(), w = z5(b(i)), O = E(i), A = !!O && O !== "Required", I = 1, P = v === "true", U = (W) => {
4632
- let { value: Y } = W.target;
4633
- d || (Y = Y.replace(/^0+/, ""));
4634
- const k = H5(Y);
4629
+ const r = e.props, { propertyId: i, label: s = "Input Label", min: c, max: f, allowLeadingZero: d, required: v } = r || {}, { getFlowValue: b, setFlowAndPatientValue: S, getFlowError: E } = Or(), w = z5(b(i)), O = E(i), A = !!O && O !== "Required", I = 1, P = v === "true", U = (Y) => {
4630
+ let { value: W } = Y.target;
4631
+ d || (W = W.replace(/^0+/, ""));
4632
+ const k = H5(W);
4635
4633
  S(i, k);
4636
4634
  };
4637
4635
  return /* @__PURE__ */ M.jsxs(
@@ -4679,21 +4677,21 @@ const w5 = {
4679
4677
  const O = (d == null ? void 0 : d.required) === "true";
4680
4678
  gn(() => {
4681
4679
  }, [S]);
4682
- const A = (W) => {
4683
- const { value: Y } = W.target;
4680
+ const A = (Y) => {
4681
+ const { value: W } = Y.target;
4684
4682
  let k = S, j = { ...c };
4685
4683
  if (e.componentId === "radio" || e.componentId === "radio-group")
4686
- TR(S) === Y ? k = null : k = B5(Y);
4687
- else if (Array.isArray(k) || (k = []), k.indexOf(Y) !== -1) {
4688
- let N = k.indexOf(Y);
4684
+ TR(S) === W ? k = null : k = B5(W);
4685
+ else if (Array.isArray(k) || (k = []), k.indexOf(W) !== -1) {
4686
+ let N = k.indexOf(W);
4689
4687
  k.splice(N, 1);
4690
4688
  } else
4691
- k.push(Y);
4689
+ k.push(W);
4692
4690
  i(d.propertyId, k), f(j);
4693
- }, I = (W) => {
4694
- var Y;
4691
+ }, I = (Y) => {
4692
+ var W;
4695
4693
  if (e.componentId === "radio" || e.componentId === "radio-group") {
4696
- const k = (Y = v[W]) == null ? void 0 : Y.value;
4694
+ const k = (W = v[Y]) == null ? void 0 : W.value;
4697
4695
  return TR(S) === k;
4698
4696
  }
4699
4697
  }, P = (v == null ? void 0 : v.length) || 0;
@@ -4705,19 +4703,19 @@ const w5 = {
4705
4703
  children: [
4706
4704
  /* @__PURE__ */ M.jsxs(J0, { children: [
4707
4705
  /* @__PURE__ */ M.jsx(hl, { $margin: "0px 0px 5px 10px", $color: w ? "danger" : void 0, children: (U = e.props) == null ? void 0 : U.label }),
4708
- v && v.map((W, Y) => {
4709
- const k = Y === 0 && Y + 1 != P ? "first" : P === Y + 1 ? "last" : null, j = e.id + "_" + Y, N = e.componentId === "radio-group" ? d.propertyId : e.id;
4706
+ v && v.map((Y, W) => {
4707
+ const k = W === 0 && W + 1 != P ? "first" : P === W + 1 ? "last" : null, j = e.id + "_" + W, N = e.componentId === "radio-group" ? d.propertyId : e.id;
4710
4708
  return /* @__PURE__ */ M.jsx(fv, { $justify: "flex-start", $inputBoundary: k, children: /* @__PURE__ */ M.jsxs("label", { htmlFor: j, children: [
4711
- /* @__PURE__ */ M.jsx(ew, { dangerouslySetInnerHTML: { __html: W.labelText } }),
4709
+ /* @__PURE__ */ M.jsx(ew, { dangerouslySetInnerHTML: { __html: Y.labelText } }),
4712
4710
  /* @__PURE__ */ M.jsx(
4713
4711
  "input",
4714
4712
  {
4715
4713
  type: "checkbox",
4716
4714
  id: j,
4717
4715
  name: N,
4718
- value: W.value,
4716
+ value: Y.value,
4719
4717
  onChange: (z) => A(z),
4720
- checked: I(Y)
4718
+ checked: I(W)
4721
4719
  }
4722
4720
  ),
4723
4721
  /* @__PURE__ */ M.jsx("span", {})
@@ -4791,7 +4789,7 @@ const w5 = {
4791
4789
  ] }) : null
4792
4790
  ] });
4793
4791
  }, X5 = ({ formComponent: e }) => {
4794
- var Y;
4792
+ var W;
4795
4793
  const r = e.props, { required: i, propertyId: s, label: c, options: f, jsonataData: d } = r || {}, v = i === "true";
4796
4794
  let b = [];
4797
4795
  d ? b = (Array.isArray(d) ? d : [d]).map((j) => ({
@@ -4811,7 +4809,7 @@ const w5 = {
4811
4809
  var N;
4812
4810
  const j = (N = b[k]) == null ? void 0 : N.value;
4813
4811
  return Array.isArray(O) && O.includes(j);
4814
- }, W = (b == null ? void 0 : b.length) || 0;
4812
+ }, Y = (b == null ? void 0 : b.length) || 0;
4815
4813
  return /* @__PURE__ */ M.jsxs(
4816
4814
  ZC,
4817
4815
  {
@@ -4819,9 +4817,9 @@ const w5 = {
4819
4817
  $style: "input",
4820
4818
  children: [
4821
4819
  /* @__PURE__ */ M.jsxs(J0, { children: [
4822
- /* @__PURE__ */ M.jsx(hl, { $margin: "0px 0px 5px 10px", $color: I ? "danger" : void 0, children: (Y = e.props) == null ? void 0 : Y.label }),
4820
+ /* @__PURE__ */ M.jsx(hl, { $margin: "0px 0px 5px 10px", $color: I ? "danger" : void 0, children: (W = e.props) == null ? void 0 : W.label }),
4823
4821
  b && b.map((k, j) => {
4824
- const N = j === 0 && j + 1 != W ? "first" : W === j + 1 ? "last" : null, z = e.id + "_" + j, ee = e.componentId === "radio-group" ? r.propertyId : e.id;
4822
+ const N = j === 0 && j + 1 != Y ? "first" : Y === j + 1 ? "last" : null, z = e.id + "_" + j, ee = e.componentId === "radio-group" ? r.propertyId : e.id;
4825
4823
  return /* @__PURE__ */ M.jsx(fv, { $justify: "flex-start", $inputBoundary: N, children: /* @__PURE__ */ M.jsxs("label", { htmlFor: z, children: [
4826
4824
  /* @__PURE__ */ M.jsx(ew, { dangerouslySetInnerHTML: { __html: k.labelText } }),
4827
4825
  /* @__PURE__ */ M.jsx(
@@ -4848,9 +4846,9 @@ const w5 = {
4848
4846
  e.id
4849
4847
  );
4850
4848
  }, K5 = ({ formComponent: e }) => {
4851
- const { getFlowValue: r, setFlowAndPatientValue: i, getFlowError: s } = Or(), c = e.props, { labelText: f, leftText: d, middleText: v, rightText: b, propertyId: S, required: E, colorDirection: w = "green-to-red" } = c || {}, O = r(S), A = s(S), I = !!A && A !== "Required", P = (Y) => {
4852
- i(S, Y);
4853
- }, U = (Y) => {
4849
+ const { getFlowValue: r, setFlowAndPatientValue: i, getFlowError: s } = Or(), c = e.props, { labelText: f, leftText: d, middleText: v, rightText: b, propertyId: S, required: E, colorDirection: w = "green-to-red" } = c || {}, O = r(S), A = s(S), I = !!A && A !== "Required", P = (W) => {
4850
+ i(S, W);
4851
+ }, U = (W) => {
4854
4852
  const k = ["#9AB777", "#949455", "#A07D4B", "#AC6741", "#BD5E46"];
4855
4853
  let j;
4856
4854
  return w === "green-to-red" ? j = {
@@ -4875,8 +4873,8 @@ const w5 = {
4875
4873
  // yellow-green
4876
4874
  5: k[0]
4877
4875
  // green
4878
- }, j[Y] || k[0];
4879
- }, W = (Y) => O === Y;
4876
+ }, j[W] || k[0];
4877
+ }, Y = (W) => O === W;
4880
4878
  return /* @__PURE__ */ M.jsxs(Pa, { $visible: !0, $hasError: I, $type: "symptomSurvey", children: [
4881
4879
  /* @__PURE__ */ M.jsxs(Z5, { children: [
4882
4880
  f && /* @__PURE__ */ M.jsx(Z$, { $color: "primary", $margin: "0px 0px 10px 0px", children: f }),
@@ -4886,17 +4884,17 @@ const w5 = {
4886
4884
  v && /* @__PURE__ */ M.jsx(rC, { children: v }),
4887
4885
  b && /* @__PURE__ */ M.jsx(rC, { children: b })
4888
4886
  ] }),
4889
- /* @__PURE__ */ M.jsx(tI, { children: [1, 2, 3, 4, 5].map((Y) => /* @__PURE__ */ M.jsx(nI, { style: { display: "flex", flexDirection: "column", alignItems: "center" }, children: /* @__PURE__ */ M.jsx(
4887
+ /* @__PURE__ */ M.jsx(tI, { children: [1, 2, 3, 4, 5].map((W) => /* @__PURE__ */ M.jsx(nI, { style: { display: "flex", flexDirection: "column", alignItems: "center" }, children: /* @__PURE__ */ M.jsx(
4890
4888
  rI,
4891
4889
  {
4892
- $severity: Y,
4893
- $color: U(Y),
4894
- $isSelected: W(Y),
4895
- onClick: () => P(Y),
4890
+ $severity: W,
4891
+ $color: U(W),
4892
+ $isSelected: Y(W),
4893
+ onClick: () => P(W),
4896
4894
  type: "button",
4897
- children: Y
4895
+ children: W
4898
4896
  }
4899
- ) }, Y)) })
4897
+ ) }, W)) })
4900
4898
  ] })
4901
4899
  ] }),
4902
4900
  c != null && c.required && !O && !I ? /* @__PURE__ */ M.jsx(so, { $bottom: "-30px", $visible: !0, children: "Required" }) : I ? /* @__PURE__ */ M.jsxs(Xo, { $bottom: "-30px", $visible: !0, children: [
@@ -5014,19 +5012,19 @@ const Z5 = _e.div`
5014
5012
  const r = e.props, { propertyId: i, label: s = "Label", minDate: c, maxDate: f, minAge: d } = r || {}, { getFlowValue: v, setFlowAndPatientValue: b, getFlowError: S, setFlowError: E } = Or(), w = v(r.propertyId), O = S(r.propertyId), A = !!O && O !== "Required";
5015
5013
  gn(() => {
5016
5014
  if (d && w) {
5017
- const W = new Date(w);
5018
- S0(W) && (oC(W) < d ? E(i, `Must be over ${d}`) : E(i, ""));
5015
+ const Y = new Date(w);
5016
+ S0(Y) && (oC(Y) < d ? E(i, `Must be over ${d}`) : E(i, ""));
5019
5017
  }
5020
5018
  }, [d, w, i, E]), gn(() => {
5021
5019
  if (d && w) {
5022
- const W = new Date(w);
5023
- S0(W) && (oC(W) < d ? E(i, `Must be over ${d}`) : E(i, ""));
5020
+ const Y = new Date(w);
5021
+ S0(Y) && (oC(Y) < d ? E(i, `Must be over ${d}`) : E(i, ""));
5024
5022
  }
5025
5023
  }, [d, w, i, E]);
5026
- const I = (W) => (b(i, P(W)), d && W && S0(W) ? oC(W) < d ? E(i, `Must be over ${d}`) : E(i, "") : d && !W && E(i, ""), null), P = (W) => {
5027
- if (!S0(W))
5024
+ const I = (Y) => (b(i, P(Y)), d && Y && S0(Y) ? oC(Y) < d ? E(i, `Must be over ${d}`) : E(i, "") : d && !Y && E(i, ""), null), P = (Y) => {
5025
+ if (!S0(Y))
5028
5026
  return "";
5029
- const Y = new Date(W), k = String(Y.getDate()).padStart(2, "0"), j = String(Y.getMonth() + 1).padStart(2, "0"), N = Y.getFullYear();
5027
+ const W = new Date(Y), k = String(W.getDate()).padStart(2, "0"), j = String(W.getMonth() + 1).padStart(2, "0"), N = W.getFullYear();
5030
5028
  return `${j}/${k}/${N}`;
5031
5029
  }, U = JS.default.default || JS.default || JS;
5032
5030
  return /* @__PURE__ */ M.jsx(oM, { $justify: "start", $margin: "", id: `datepicker_${i}`, children: /* @__PURE__ */ M.jsxs(
@@ -5041,7 +5039,7 @@ const Z5 = _e.div`
5041
5039
  U,
5042
5040
  {
5043
5041
  selected: w,
5044
- onChange: (W) => I(W),
5042
+ onChange: (Y) => I(Y),
5045
5043
  allowSameDay: !0,
5046
5044
  dateFormat: "MM/dd/yyyy",
5047
5045
  showYearDropdown: !0,
@@ -5051,9 +5049,7 @@ const Z5 = _e.div`
5051
5049
  popperClassName: "DPCalendar",
5052
5050
  popperPlacement: "top-end",
5053
5051
  minDate: c ? new Date(c) : null,
5054
- maxDate: f ? new Date(f) : null,
5055
- onFocus: (W) => W.target.blur(),
5056
- onKeyDown: (W) => W.preventDefault()
5052
+ maxDate: f ? new Date(f) : null
5057
5053
  }
5058
5054
  ),
5059
5055
  r != null && r.required && !w && !A ? /* @__PURE__ */ M.jsx(so, { $bottom: "-30px", $visible: !0, children: "Required" }) : A ? /* @__PURE__ */ M.jsxs(Xo, { $bottom: "-30px", $visible: !0, children: [
@@ -5127,8 +5123,8 @@ const Z5 = _e.div`
5127
5123
  return /* @__PURE__ */ M.jsx("p", { children: "Titration options not available for preview" });
5128
5124
  const I = Object.values(w)[0], P = typeof I == "object" && I !== null && "titrations" in I ? I.titrations : [], U = () => {
5129
5125
  O || A(!0);
5130
- }, W = (Y) => {
5131
- const { value: k } = Y.target;
5126
+ }, Y = (W) => {
5127
+ const { value: k } = W.target;
5132
5128
  f(r.propertyId, k);
5133
5129
  };
5134
5130
  return /* @__PURE__ */ M.jsxs(
@@ -5143,13 +5139,13 @@ const Z5 = _e.div`
5143
5139
  {
5144
5140
  id: i,
5145
5141
  name: i,
5146
- onChange: (Y) => W(Y),
5142
+ onChange: (W) => Y(W),
5147
5143
  onBlur: U,
5148
5144
  value: b || "",
5149
5145
  children: [
5150
5146
  /* @__PURE__ */ M.jsx("option", { value: "", disabled: !0, children: "Make a selection" }),
5151
- P && P.map((Y, k) => /* @__PURE__ */ M.jsxs("option", { value: Y, children: [
5152
- Y,
5147
+ P && P.map((W, k) => /* @__PURE__ */ M.jsxs("option", { value: W, children: [
5148
+ W,
5153
5149
  " mg"
5154
5150
  ] }, k))
5155
5151
  ]
@@ -10220,19 +10216,19 @@ const hv = (e) => {
10220
10216
  apiUrl: r.api
10221
10217
  });
10222
10218
  }, vI = ({ formComponent: e, formidavimHost: r }) => {
10223
- const i = e.props, { required: s, maxLength: c, propertyId: f, label: d = "Email", inlineCopy: v } = i || {}, { getFlowValue: b, getFlowError: S, setFlowError: E, setDisableSubmitValue: w, setFlowValue: O } = Or(), A = Op(b(f)), [I, P] = Jt(""), [U, W] = Jt(!1), [Y, k] = Jt(null), j = Xs(!1), N = hv(r), z = hr(async (pe) => {
10219
+ const i = e.props, { required: s, maxLength: c, propertyId: f, label: d = "Email", inlineCopy: v } = i || {}, { getFlowValue: b, getFlowError: S, setFlowError: E, setDisableSubmitValue: w, setFlowValue: O } = Or(), A = Op(b(f)), [I, P] = Jt(""), [U, Y] = Jt(!1), [W, k] = Jt(null), j = Xs(!1), N = hv(r), z = hr(async (pe) => {
10224
10220
  if (!pe || !hp(pe).valid || j.current) {
10225
10221
  k(null);
10226
10222
  return;
10227
10223
  }
10228
- j.current = !0, W(!0), k(null);
10224
+ j.current = !0, Y(!0), k(null);
10229
10225
  try {
10230
10226
  const ce = await N.userControllerGetUser(pe);
10231
10227
  (ce == null ? void 0 : ce.data) && typeof ce.data == "object" && Object.keys(ce.data).length > 0 ? (k("An account with this email already exists"), w(!0)) : (k(null), w(!1));
10232
10228
  } catch (ce) {
10233
10229
  console.warn("Error checking for duplicate user:", ce), k(null);
10234
10230
  } finally {
10235
- W(!1), j.current = !1;
10231
+ Y(!1), j.current = !1;
10236
10232
  }
10237
10233
  }, [N, w]);
10238
10234
  gn(() => {
@@ -10253,7 +10249,7 @@ const hv = (e) => {
10253
10249
  }, le = (pe) => {
10254
10250
  const { value: ce } = pe.target;
10255
10251
  ce && !hp(ce).valid && E(f, "Please enter a valid email address");
10256
- }, J = !!S(f) && S(f) !== "Required" || !!Y;
10252
+ }, J = !!S(f) && S(f) !== "Required" || !!W;
10257
10253
  return /* @__PURE__ */ M.jsxs(Pa, { $visible: !0, $hasError: J, children: [
10258
10254
  /* @__PURE__ */ M.jsx(_i, { $color: J ? "danger" : void 0, children: d }),
10259
10255
  /* @__PURE__ */ M.jsx(
@@ -10274,7 +10270,7 @@ const hv = (e) => {
10274
10270
  U && /* @__PURE__ */ M.jsx(so, { $bottom: "-30px", $visible: !0, children: "Checking availability..." }),
10275
10271
  i != null && i.required && !A && !J ? /* @__PURE__ */ M.jsx(so, { $bottom: "-30px", $visible: !0, children: "Required" }) : J ? /* @__PURE__ */ M.jsxs(Xo, { $bottom: "-30px", $visible: !0, children: [
10276
10272
  /* @__PURE__ */ M.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "15", viewBox: "0 0 14 15", fill: "none", children: /* @__PURE__ */ M.jsx("path", { d: "M0.331707 7.50001C0.331707 11.1819 3.31647 14.1667 6.99837 14.1667C10.6803 14.1667 13.665 11.1819 13.665 7.50001C13.665 3.81811 10.6803 0.833344 6.99837 0.833344C3.31647 0.833344 0.331707 3.81811 0.331707 7.50001ZM3.8603 5.30475L4.80311 4.36194L10.1364 9.69527L9.19363 10.6381L3.8603 5.30475Z", fill: "#B94E36" }) }),
10277
- Y || S(f)
10273
+ W || S(f)
10278
10274
  ] }) : null
10279
10275
  ] });
10280
10276
  }, yI = ({ formComponent: e }) => {
@@ -10293,7 +10289,7 @@ const hv = (e) => {
10293
10289
  setFlowError: O,
10294
10290
  setDisableSubmitValue: A,
10295
10291
  setFlowValue: I
10296
- } = Or(), P = Op(S(c)), U = b ? Op(S(b)) : "", W = w(c), Y = b ? w(b) : null, k = !!W && W !== "Required", j = !!Y && Y !== "Required", [N, z] = Jt(!1), [ee, le] = Jt(!1), [ye, L] = Jt(""), [J, pe] = Jt(""), ce = (se) => {
10292
+ } = Or(), P = Op(S(c)), U = b ? Op(S(b)) : "", Y = w(c), W = b ? w(b) : null, k = !!Y && Y !== "Required", j = !!W && W !== "Required", [N, z] = Jt(!1), [ee, le] = Jt(!1), [ye, L] = Jt(""), [J, pe] = Jt(""), ce = (se) => {
10297
10293
  if (se.length < v) return !1;
10298
10294
  const V = /[a-z]/.test(se), G = /[A-Z]/.test(se), Se = /\d/.test(se), Ve = /[^A-Za-z0-9]/.test(se);
10299
10295
  return V && G && Se && Ve;
@@ -10388,7 +10384,7 @@ const hv = (e) => {
10388
10384
  ] }),
10389
10385
  i && !P && !k ? /* @__PURE__ */ M.jsx(so, { $visible: !0, children: "Required" }) : k ? /* @__PURE__ */ M.jsxs(Xo, { $visible: !0, children: [
10390
10386
  /* @__PURE__ */ M.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "15", viewBox: "0 0 14 15", fill: "none", children: /* @__PURE__ */ M.jsx("path", { d: "M0.331707 7.50001C0.331707 11.1819 3.31647 14.1667 6.99837 14.1667C10.6803 14.1667 13.665 11.1819 13.665 7.50001C13.665 3.81811 10.6803 0.833344 6.99837 0.833344C3.31647 0.833344 0.331707 3.81811 0.331707 7.50001ZM3.8603 5.30475L4.80311 4.36194L10.1364 9.69527L9.19363 10.6381L3.8603 5.30475Z", fill: "#B94E36" }) }),
10391
- W
10387
+ Y
10392
10388
  ] }) : null,
10393
10389
  b && /* @__PURE__ */ M.jsxs(M.Fragment, { children: [
10394
10390
  /* @__PURE__ */ M.jsxs("div", { style: { position: "relative", marginTop: "1rem" }, children: [
@@ -10447,7 +10443,7 @@ const hv = (e) => {
10447
10443
  ] }),
10448
10444
  i && !U && !j ? /* @__PURE__ */ M.jsx(so, { $visible: !0, children: "Required" }) : j ? /* @__PURE__ */ M.jsxs(Xo, { $visible: !0, children: [
10449
10445
  /* @__PURE__ */ M.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "15", viewBox: "0 0 14 15", fill: "none", children: /* @__PURE__ */ M.jsx("path", { d: "M0.331707 7.50001C0.331707 11.1819 3.31647 14.1667 6.99837 14.1667C10.6803 14.1667 13.665 11.1819 13.665 7.50001C13.665 3.81811 10.6803 0.833344 6.99837 0.833344C3.31647 0.833344 0.331707 3.81811 0.331707 7.50001ZM3.8603 5.30475L4.80311 4.36194L10.1364 9.69527L9.19363 10.6381L3.8603 5.30475Z", fill: "#B94E36" }) }),
10450
- Y
10446
+ W
10451
10447
  ] }) : null
10452
10448
  ] }),
10453
10449
  d && /* @__PURE__ */ M.jsxs("div", { style: { display: "flex", alignItems: "flex-start", gap: "0.75rem" }, children: [
@@ -10464,12 +10460,12 @@ const hv = (e) => {
10464
10460
  ] })
10465
10461
  ] });
10466
10462
  }, gI = ({ formComponent: e, formidavimHost: r }) => {
10467
- const i = e.props, { required: s, maxLength: c, propertyId: f, label: d = "Phone Number" } = i || {}, { getFlowValue: v, setFlowAndPatientValue: b, getFlowError: S, setFlowError: E, setDisableSubmitValue: w, setFlowValue: O } = Or(), A = Op(v(f)), [I, P] = Jt(A), [U, W] = Jt(!1), [Y, k] = Jt(null), j = Xs(!1), N = hv(r), z = hr(async (Ee) => {
10463
+ const i = e.props, { required: s, maxLength: c, propertyId: f, label: d = "Phone Number" } = i || {}, { getFlowValue: v, setFlowAndPatientValue: b, getFlowError: S, setFlowError: E, setDisableSubmitValue: w, setFlowValue: O } = Or(), A = Op(v(f)), [I, P] = Jt(A), [U, Y] = Jt(!1), [W, k] = Jt(null), j = Xs(!1), N = hv(r), z = hr(async (Ee) => {
10468
10464
  if (!Ee || !le(Ee) || j.current) {
10469
10465
  k(null);
10470
10466
  return;
10471
10467
  }
10472
- j.current = !0, W(!0), k(null);
10468
+ j.current = !0, Y(!0), k(null);
10473
10469
  try {
10474
10470
  const me = (ge) => {
10475
10471
  const re = ge.replace(/\D/g, "");
@@ -10479,7 +10475,7 @@ const hv = (e) => {
10479
10475
  } catch (me) {
10480
10476
  console.warn("Error checking for duplicate user:", me), k(null), E(f, null);
10481
10477
  } finally {
10482
- W(!1), j.current = !1;
10478
+ Y(!1), j.current = !1;
10483
10479
  }
10484
10480
  }, [N, w]), ee = (Ee) => {
10485
10481
  let me = Ee.replace(/\D/g, "");
@@ -10503,8 +10499,8 @@ const hv = (e) => {
10503
10499
  }, [A]), gn(() => {
10504
10500
  s && (!A || A === "") ? (E(f, "Required"), w(!0)) : A && A.length > 0 && !le(A) ? (E(f, "Please enter a valid phone number"), w(!0)) : A && le(A) && (E(f, null), U && w(!0));
10505
10501
  }, [A, s, f, E, w, U]), gn(() => {
10506
- E(f, Y);
10507
- }, [Y, f, E]), gn(() => {
10502
+ E(f, W);
10503
+ }, [W, f, E]), gn(() => {
10508
10504
  const Ee = setTimeout(() => {
10509
10505
  A && le(A) ? z(A) : (k(null), w(!1));
10510
10506
  }, 500);
@@ -10513,7 +10509,7 @@ const hv = (e) => {
10513
10509
  const L = (Ee) => {
10514
10510
  const { value: me } = Ee.target;
10515
10511
  me && !le(me) && (E(f, "Please enter a valid phone number"), O(f, null));
10516
- }, ce = !!S(f) && S(f) !== "Required" || !!Y;
10512
+ }, ce = !!S(f) && S(f) !== "Required" || !!W;
10517
10513
  return /* @__PURE__ */ M.jsxs(Pa, { $visible: !0, $hasError: ce, children: [
10518
10514
  /* @__PURE__ */ M.jsx(_i, { $color: ce ? "danger" : void 0, children: d }),
10519
10515
  /* @__PURE__ */ M.jsx(
@@ -10534,7 +10530,7 @@ const hv = (e) => {
10534
10530
  U && /* @__PURE__ */ M.jsx(so, { $bottom: "-30px", $visible: !0, children: "Checking availability..." }),
10535
10531
  i != null && i.required && !A && !ce ? /* @__PURE__ */ M.jsx(so, { $bottom: "-30px", $visible: !0, children: "Required" }) : ce ? /* @__PURE__ */ M.jsxs(Xo, { $bottom: "-30px", $visible: !0, children: [
10536
10532
  /* @__PURE__ */ M.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "15", viewBox: "0 0 14 15", fill: "none", children: /* @__PURE__ */ M.jsx("path", { d: "M0.331707 7.50001C0.331707 11.1819 3.31647 14.1667 6.99837 14.1667C10.6803 14.1667 13.665 11.1819 13.665 7.50001C13.665 3.81811 10.6803 0.833344 6.99837 0.833344C3.31647 0.833344 0.331707 3.81811 0.331707 7.50001ZM3.8603 5.30475L4.80475L4.80311 4.36194L10.1364 9.69527L9.19363 10.6381L3.8603 5.30475Z", fill: "#B94E36" }) }),
10537
- Y || S(f)
10533
+ W || S(f)
10538
10534
  ] }) : null
10539
10535
  ] });
10540
10536
  }, lv = {
@@ -10801,19 +10797,19 @@ function LI(e) {
10801
10797
  return O3(_0("", null, null, null, [""], e = T3(e), 0, [0], e));
10802
10798
  }
10803
10799
  function _0(e, r, i, s, c, f, d, v, b) {
10804
- for (var S = 0, E = 0, w = d, O = 0, A = 0, I = 0, P = 1, U = 1, W = 1, Y = 0, k = "", j = c, N = f, z = s, ee = k; U; )
10805
- switch (I = Y, Y = ci()) {
10800
+ for (var S = 0, E = 0, w = d, O = 0, A = 0, I = 0, P = 1, U = 1, Y = 1, W = 0, k = "", j = c, N = f, z = s, ee = k; U; )
10801
+ switch (I = W, W = ci()) {
10806
10802
  // (
10807
10803
  case 40:
10808
10804
  if (I != 108 && Qo(ee, w - 1) == 58) {
10809
- DC(ee += zn(L0(Y), "&", "&\f"), "&\f") != -1 && (W = -1);
10805
+ DC(ee += zn(L0(W), "&", "&\f"), "&\f") != -1 && (Y = -1);
10810
10806
  break;
10811
10807
  }
10812
10808
  // " ' [
10813
10809
  case 34:
10814
10810
  case 39:
10815
10811
  case 91:
10816
- ee += L0(Y);
10812
+ ee += L0(W);
10817
10813
  break;
10818
10814
  // \t \n \r \s
10819
10815
  case 9:
@@ -10839,26 +10835,26 @@ function _0(e, r, i, s, c, f, d, v, b) {
10839
10835
  break;
10840
10836
  // {
10841
10837
  case 123 * P:
10842
- v[S++] = Jl(ee) * W;
10838
+ v[S++] = Jl(ee) * Y;
10843
10839
  // } ; \0
10844
10840
  case 125 * P:
10845
10841
  case 59:
10846
10842
  case 0:
10847
- switch (Y) {
10843
+ switch (W) {
10848
10844
  // \0 }
10849
10845
  case 0:
10850
10846
  case 125:
10851
10847
  U = 0;
10852
10848
  // ;
10853
10849
  case 59 + E:
10854
- W == -1 && (ee = zn(ee, /\f/g, "")), A > 0 && Jl(ee) - w && C0(A > 32 ? $R(ee + ";", s, i, w - 1) : $R(zn(ee, " ", "") + ";", s, i, w - 2), b);
10850
+ Y == -1 && (ee = zn(ee, /\f/g, "")), A > 0 && Jl(ee) - w && C0(A > 32 ? $R(ee + ";", s, i, w - 1) : $R(zn(ee, " ", "") + ";", s, i, w - 2), b);
10855
10851
  break;
10856
10852
  // @ ;
10857
10853
  case 59:
10858
10854
  ee += ";";
10859
10855
  // { rule/at-rule
10860
10856
  default:
10861
- if (C0(z = RR(ee, r, i, S, E, c, v, k, j = [], N = [], w), f), Y === 123)
10857
+ if (C0(z = RR(ee, r, i, S, E, c, v, k, j = [], N = [], w), f), W === 123)
10862
10858
  if (E === 0)
10863
10859
  _0(ee, r, z, z, j, f, w, v, N);
10864
10860
  else
@@ -10874,30 +10870,30 @@ function _0(e, r, i, s, c, f, d, v, b) {
10874
10870
  _0(ee, z, z, z, [""], N, 0, v, N);
10875
10871
  }
10876
10872
  }
10877
- S = E = A = 0, P = W = 1, k = ee = "", w = d;
10873
+ S = E = A = 0, P = Y = 1, k = ee = "", w = d;
10878
10874
  break;
10879
10875
  // :
10880
10876
  case 58:
10881
10877
  w = 1 + Jl(ee), A = I;
10882
10878
  default:
10883
10879
  if (P < 1) {
10884
- if (Y == 123)
10880
+ if (W == 123)
10885
10881
  --P;
10886
- else if (Y == 125 && P++ == 0 && PI() == 125)
10882
+ else if (W == 125 && P++ == 0 && PI() == 125)
10887
10883
  continue;
10888
10884
  }
10889
- switch (ee += ab(Y), Y * P) {
10885
+ switch (ee += ab(W), W * P) {
10890
10886
  // &
10891
10887
  case 38:
10892
- W = E > 0 ? 1 : (ee += "\f", -1);
10888
+ Y = E > 0 ? 1 : (ee += "\f", -1);
10893
10889
  break;
10894
10890
  // ,
10895
10891
  case 44:
10896
- v[S++] = (Jl(ee) - 1) * W, W = 1;
10892
+ v[S++] = (Jl(ee) - 1) * Y, Y = 1;
10897
10893
  break;
10898
10894
  // @
10899
10895
  case 64:
10900
- ns() === 45 && (ee += L0(ci())), O = ns(), E = w = Jl(k = ee += II(I0())), Y++;
10896
+ ns() === 45 && (ee += L0(ci())), O = ns(), E = w = Jl(k = ee += II(I0())), W++;
10901
10897
  break;
10902
10898
  // -
10903
10899
  case 45:
@@ -10908,8 +10904,8 @@ function _0(e, r, i, s, c, f, d, v, b) {
10908
10904
  }
10909
10905
  function RR(e, r, i, s, c, f, d, v, b, S, E) {
10910
10906
  for (var w = c - 1, O = c === 0 ? f : [""], A = aw(O), I = 0, P = 0, U = 0; I < s; ++I)
10911
- for (var W = 0, Y = sv(e, w + 1, w = TI(P = d[I])), k = e; W < A; ++W)
10912
- (k = w3(P > 0 ? O[W] + " " + Y : zn(Y, /&\f/g, O[W]))) && (b[U++] = k);
10907
+ for (var Y = 0, W = sv(e, w + 1, w = TI(P = d[I])), k = e; Y < A; ++Y)
10908
+ (k = w3(P > 0 ? O[Y] + " " + W : zn(W, /&\f/g, O[Y]))) && (b[U++] = k);
10913
10909
  return lb(e, r, i, c === 0 ? rw : v, b, S, E);
10914
10910
  }
10915
10911
  function _I(e, r, i) {
@@ -11194,8 +11190,8 @@ var WI = function(r, i, s, c) {
11194
11190
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
11195
11191
  document.querySelectorAll('style[data-emotion^="' + i + ' "]'),
11196
11192
  function(P) {
11197
- for (var U = P.getAttribute("data-emotion").split(" "), W = 1; W < U.length; W++)
11198
- f[U[W]] = !0;
11193
+ for (var U = P.getAttribute("data-emotion").split(" "), Y = 1; Y < U.length; Y++)
11194
+ f[U[Y]] = !0;
11199
11195
  v.push(P);
11200
11196
  }
11201
11197
  );
@@ -11206,8 +11202,8 @@ var WI = function(r, i, s, c) {
11206
11202
  })], O = VI(S.concat(c, w)), A = function(U) {
11207
11203
  return Cp(LI(U), O);
11208
11204
  };
11209
- b = function(U, W, Y, k) {
11210
- E = Y, A(U ? U + "{" + W.styles + "}" : W.styles), k && (I.inserted[W.name] = !0);
11205
+ b = function(U, Y, W, k) {
11206
+ E = W, A(U ? U + "{" + Y.styles + "}" : Y.styles), k && (I.inserted[Y.name] = !0);
11211
11207
  };
11212
11208
  }
11213
11209
  var I = {
@@ -11239,7 +11235,7 @@ var kR;
11239
11235
  function QI() {
11240
11236
  if (kR) return qn;
11241
11237
  kR = 1;
11242
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, f = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, v = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, S = e ? Symbol.for("react.concurrent_mode") : 60111, E = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, P = e ? Symbol.for("react.block") : 60121, U = e ? Symbol.for("react.fundamental") : 60117, W = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
11238
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, f = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, v = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, S = e ? Symbol.for("react.concurrent_mode") : 60111, E = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, P = e ? Symbol.for("react.block") : 60121, U = e ? Symbol.for("react.fundamental") : 60117, Y = e ? Symbol.for("react.responder") : 60118, W = e ? Symbol.for("react.scope") : 60119;
11243
11239
  function k(N) {
11244
11240
  if (typeof N == "object" && N !== null) {
11245
11241
  var z = N.$$typeof;
@@ -11298,7 +11294,7 @@ function QI() {
11298
11294
  }, qn.isSuspense = function(N) {
11299
11295
  return k(N) === w;
11300
11296
  }, qn.isValidElementType = function(N) {
11301
- return typeof N == "string" || typeof N == "function" || N === s || N === S || N === f || N === c || N === w || N === O || typeof N == "object" && N !== null && (N.$$typeof === I || N.$$typeof === A || N.$$typeof === d || N.$$typeof === v || N.$$typeof === E || N.$$typeof === U || N.$$typeof === W || N.$$typeof === Y || N.$$typeof === P);
11297
+ return typeof N == "string" || typeof N == "function" || N === s || N === S || N === f || N === c || N === w || N === O || typeof N == "object" && N !== null && (N.$$typeof === I || N.$$typeof === A || N.$$typeof === d || N.$$typeof === v || N.$$typeof === E || N.$$typeof === U || N.$$typeof === Y || N.$$typeof === W || N.$$typeof === P);
11302
11298
  }, qn.typeOf = k, qn;
11303
11299
  }
11304
11300
  var Qn = {};
@@ -11313,10 +11309,10 @@ var Qn = {};
11313
11309
  var PR;
11314
11310
  function XI() {
11315
11311
  return PR || (PR = 1, process.env.NODE_ENV !== "production" && function() {
11316
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, f = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, v = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, S = e ? Symbol.for("react.concurrent_mode") : 60111, E = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, P = e ? Symbol.for("react.block") : 60121, U = e ? Symbol.for("react.fundamental") : 60117, W = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
11312
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, f = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, v = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, S = e ? Symbol.for("react.concurrent_mode") : 60111, E = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, P = e ? Symbol.for("react.block") : 60121, U = e ? Symbol.for("react.fundamental") : 60117, Y = e ? Symbol.for("react.responder") : 60118, W = e ? Symbol.for("react.scope") : 60119;
11317
11313
  function k(ne) {
11318
11314
  return typeof ne == "string" || typeof ne == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
11319
- ne === s || ne === S || ne === f || ne === c || ne === w || ne === O || typeof ne == "object" && ne !== null && (ne.$$typeof === I || ne.$$typeof === A || ne.$$typeof === d || ne.$$typeof === v || ne.$$typeof === E || ne.$$typeof === U || ne.$$typeof === W || ne.$$typeof === Y || ne.$$typeof === P);
11315
+ ne === s || ne === S || ne === f || ne === c || ne === w || ne === O || typeof ne == "object" && ne !== null && (ne.$$typeof === I || ne.$$typeof === A || ne.$$typeof === d || ne.$$typeof === v || ne.$$typeof === E || ne.$$typeof === U || ne.$$typeof === Y || ne.$$typeof === W || ne.$$typeof === P);
11320
11316
  }
11321
11317
  function j(ne) {
11322
11318
  if (typeof ne == "object" && ne !== null) {
@@ -11443,13 +11439,13 @@ function ZI() {
11443
11439
  function A(I, P, U) {
11444
11440
  if (typeof P != "string") {
11445
11441
  if (O) {
11446
- var W = w(P);
11447
- W && W !== O && A(I, W, U);
11442
+ var Y = w(P);
11443
+ Y && Y !== O && A(I, Y, U);
11448
11444
  }
11449
- var Y = b(P);
11450
- S && (Y = Y.concat(S(P)));
11451
- for (var k = d(I), j = d(P), N = 0; N < Y.length; ++N) {
11452
- var z = Y[N];
11445
+ var W = b(P);
11446
+ S && (W = W.concat(S(P)));
11447
+ for (var k = d(I), j = d(P), N = 0; N < W.length; ++N) {
11448
+ var z = W[N];
11453
11449
  if (!i[z] && !(U && U[z]) && !(j && j[z]) && !(k && k[z])) {
11454
11450
  var ee = E(P, z);
11455
11451
  try {
@@ -11807,7 +11803,7 @@ var cL = /* @__PURE__ */ sw(function(e, r) {
11807
11803
  for (var A = E.length, I = 1; I < A; I++)
11808
11804
  w.push(E[I], O[I]);
11809
11805
  }
11810
- var P = sw(function(U, W, Y) {
11806
+ var P = sw(function(U, Y, W) {
11811
11807
  var k = S && U.as || c, j = "", N = [], z = U;
11812
11808
  if (U.theme == null) {
11813
11809
  z = {};
@@ -11815,14 +11811,14 @@ var cL = /* @__PURE__ */ sw(function(e, r) {
11815
11811
  z[ee] = U[ee];
11816
11812
  z.theme = Oe.useContext(ub);
11817
11813
  }
11818
- typeof U.className == "string" ? j = A3(W.registered, N, U.className) : U.className != null && (j = U.className + " ");
11819
- var le = sb(w.concat(N), W.registered, z);
11820
- j += W.key + "-" + le.name, d !== void 0 && (j += " " + d);
11814
+ typeof U.className == "string" ? j = A3(Y.registered, N, U.className) : U.className != null && (j = U.className + " ");
11815
+ var le = sb(w.concat(N), Y.registered, z);
11816
+ j += Y.key + "-" + le.name, d !== void 0 && (j += " " + d);
11821
11817
  var ye = S && v === void 0 ? VR(k) : b, L = {};
11822
11818
  for (var J in U)
11823
11819
  S && J === "as" || ye(J) && (L[J] = U[J]);
11824
- return L.className = j, Y && (L.ref = Y), /* @__PURE__ */ Oe.createElement(Oe.Fragment, null, /* @__PURE__ */ Oe.createElement(mL, {
11825
- cache: W,
11820
+ return L.className = j, W && (L.ref = W), /* @__PURE__ */ Oe.createElement(Oe.Fragment, null, /* @__PURE__ */ Oe.createElement(mL, {
11821
+ cache: Y,
11826
11822
  serialized: le,
11827
11823
  isStringTag: typeof k == "string"
11828
11824
  }), /* @__PURE__ */ Oe.createElement(k, L));
@@ -11831,11 +11827,11 @@ var cL = /* @__PURE__ */ sw(function(e, r) {
11831
11827
  value: function() {
11832
11828
  return "." + d;
11833
11829
  }
11834
- }), P.withComponent = function(U, W) {
11835
- var Y = e(U, NC({}, i, W, {
11836
- shouldForwardProp: jR(P, W, !0)
11830
+ }), P.withComponent = function(U, Y) {
11831
+ var W = e(U, NC({}, i, Y, {
11832
+ shouldForwardProp: jR(P, Y, !0)
11837
11833
  }));
11838
- return Y.apply(void 0, w);
11834
+ return W.apply(void 0, w);
11839
11835
  }, P;
11840
11836
  };
11841
11837
  }, yL = [
@@ -11991,7 +11987,7 @@ var UR;
11991
11987
  function gL() {
11992
11988
  if (UR) return Xn;
11993
11989
  UR = 1;
11994
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, f = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, v = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, S = e ? Symbol.for("react.concurrent_mode") : 60111, E = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, P = e ? Symbol.for("react.block") : 60121, U = e ? Symbol.for("react.fundamental") : 60117, W = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
11990
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, f = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, v = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, S = e ? Symbol.for("react.concurrent_mode") : 60111, E = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, P = e ? Symbol.for("react.block") : 60121, U = e ? Symbol.for("react.fundamental") : 60117, Y = e ? Symbol.for("react.responder") : 60118, W = e ? Symbol.for("react.scope") : 60119;
11995
11991
  function k(N) {
11996
11992
  if (typeof N == "object" && N !== null) {
11997
11993
  var z = N.$$typeof;
@@ -12050,7 +12046,7 @@ function gL() {
12050
12046
  }, Xn.isSuspense = function(N) {
12051
12047
  return k(N) === w;
12052
12048
  }, Xn.isValidElementType = function(N) {
12053
- return typeof N == "string" || typeof N == "function" || N === s || N === S || N === f || N === c || N === w || N === O || typeof N == "object" && N !== null && (N.$$typeof === I || N.$$typeof === A || N.$$typeof === d || N.$$typeof === v || N.$$typeof === E || N.$$typeof === U || N.$$typeof === W || N.$$typeof === Y || N.$$typeof === P);
12049
+ return typeof N == "string" || typeof N == "function" || N === s || N === S || N === f || N === c || N === w || N === O || typeof N == "object" && N !== null && (N.$$typeof === I || N.$$typeof === A || N.$$typeof === d || N.$$typeof === v || N.$$typeof === E || N.$$typeof === U || N.$$typeof === Y || N.$$typeof === W || N.$$typeof === P);
12054
12050
  }, Xn.typeOf = k, Xn;
12055
12051
  }
12056
12052
  var Kn = {};
@@ -12065,10 +12061,10 @@ var Kn = {};
12065
12061
  var BR;
12066
12062
  function bL() {
12067
12063
  return BR || (BR = 1, process.env.NODE_ENV !== "production" && function() {
12068
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, f = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, v = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, S = e ? Symbol.for("react.concurrent_mode") : 60111, E = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, P = e ? Symbol.for("react.block") : 60121, U = e ? Symbol.for("react.fundamental") : 60117, W = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
12064
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, f = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, v = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, S = e ? Symbol.for("react.concurrent_mode") : 60111, E = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, P = e ? Symbol.for("react.block") : 60121, U = e ? Symbol.for("react.fundamental") : 60117, Y = e ? Symbol.for("react.responder") : 60118, W = e ? Symbol.for("react.scope") : 60119;
12069
12065
  function k(ne) {
12070
12066
  return typeof ne == "string" || typeof ne == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
12071
- ne === s || ne === S || ne === f || ne === c || ne === w || ne === O || typeof ne == "object" && ne !== null && (ne.$$typeof === I || ne.$$typeof === A || ne.$$typeof === d || ne.$$typeof === v || ne.$$typeof === E || ne.$$typeof === U || ne.$$typeof === W || ne.$$typeof === Y || ne.$$typeof === P);
12067
+ ne === s || ne === S || ne === f || ne === c || ne === w || ne === O || typeof ne == "object" && ne !== null && (ne.$$typeof === I || ne.$$typeof === A || ne.$$typeof === d || ne.$$typeof === v || ne.$$typeof === E || ne.$$typeof === U || ne.$$typeof === Y || ne.$$typeof === W || ne.$$typeof === P);
12072
12068
  }
12073
12069
  function j(ne) {
12074
12070
  if (typeof ne == "object" && ne !== null) {
@@ -12285,15 +12281,15 @@ function CL() {
12285
12281
  return se;
12286
12282
  }
12287
12283
  var O = "<<anonymous>>", A = {
12288
- array: W("array"),
12289
- bigint: W("bigint"),
12290
- bool: W("boolean"),
12291
- func: W("function"),
12292
- number: W("number"),
12293
- object: W("object"),
12294
- string: W("string"),
12295
- symbol: W("symbol"),
12296
- any: Y(),
12284
+ array: Y("array"),
12285
+ bigint: Y("bigint"),
12286
+ bool: Y("boolean"),
12287
+ func: Y("function"),
12288
+ number: Y("number"),
12289
+ object: Y("object"),
12290
+ string: Y("string"),
12291
+ symbol: Y("symbol"),
12292
+ any: W(),
12297
12293
  arrayOf: k,
12298
12294
  element: j(),
12299
12295
  elementType: N(),
@@ -12335,7 +12331,7 @@ function CL() {
12335
12331
  var Se = G.bind(null, !1);
12336
12332
  return Se.isRequired = G.bind(null, !0), Se;
12337
12333
  }
12338
- function W(K) {
12334
+ function Y(K) {
12339
12335
  function se(V, G, Se, Ve, Ye, ze) {
12340
12336
  var Q = V[G], oe = Re(Q);
12341
12337
  if (oe !== K) {
@@ -12349,7 +12345,7 @@ function CL() {
12349
12345
  }
12350
12346
  return U(se);
12351
12347
  }
12352
- function Y() {
12348
+ function W() {
12353
12349
  return U(d);
12354
12350
  }
12355
12351
  function k(K) {
@@ -14001,11 +13997,11 @@ function __(e = {}) {
14001
13997
  // TODO v6: remove `Root` in the next major release
14002
13998
  // For more details: https://github.com/mui/material-ui/pull/37908
14003
13999
  E && E !== "Root" && E !== "root" || !1
14004
- ), W = O || !1;
14005
- let Y = hC;
14006
- E === "Root" || E === "root" ? Y = s : E ? Y = c : U_(v) && (Y = void 0);
14000
+ ), Y = O || !1;
14001
+ let W = hC;
14002
+ E === "Root" || E === "root" ? W = s : E ? W = c : U_(v) && (W = void 0);
14007
14003
  const k = _3(v, {
14008
- shouldForwardProp: Y,
14004
+ shouldForwardProp: W,
14009
14005
  label: V_(S, E),
14010
14006
  ...I
14011
14007
  }), j = (z) => {
@@ -14037,7 +14033,7 @@ function __(e = {}) {
14037
14033
  var Re, Te;
14038
14034
  const Ee = ce.theme, me = (Te = (Re = Ee == null ? void 0 : Ee.components) == null ? void 0 : Re[S]) == null ? void 0 : Te.variants;
14039
14035
  return me ? Y3(ce, me, [], ce.theme.modularCssLayers ? "theme" : void 0) : null;
14040
- }), W || ye.push(gd), Array.isArray(le[0])) {
14036
+ }), Y || ye.push(gd), Array.isArray(le[0])) {
14041
14037
  const pe = le.shift(), ce = new Array(ee.length).fill(""), Ee = new Array(ye.length).fill("");
14042
14038
  let me;
14043
14039
  me = [...ce, ...pe, ...Ee], me.raw = [...ce, ...pe.raw, ...Ee], ee.unshift(me);
@@ -14636,8 +14632,8 @@ function gw(e) {
14636
14632
  function w(P) {
14637
14633
  const U = l$(P, f$.text.primary) >= i ? f$.text.primary : i4.text.primary;
14638
14634
  if (process.env.NODE_ENV !== "production") {
14639
- const W = l$(P, U);
14640
- W < 3 && console.error([`MUI: The contrast ratio of ${W}:1 for ${U} on ${P}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
14635
+ const Y = l$(P, U);
14636
+ Y < 3 && console.error([`MUI: The contrast ratio of ${Y}:1 for ${U} on ${P}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
14641
14637
  `));
14642
14638
  }
14643
14639
  return U;
@@ -14645,15 +14641,15 @@ function gw(e) {
14645
14641
  const O = ({
14646
14642
  color: P,
14647
14643
  name: U,
14648
- mainShade: W = 500,
14649
- lightShade: Y = 300,
14644
+ mainShade: Y = 500,
14645
+ lightShade: W = 300,
14650
14646
  darkShade: k = 700
14651
14647
  }) => {
14652
14648
  if (P = {
14653
14649
  ...P
14654
- }, !P.main && P[W] && (P.main = P[W]), !P.hasOwnProperty("main"))
14650
+ }, !P.main && P[Y] && (P.main = P[Y]), !P.hasOwnProperty("main"))
14655
14651
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${U ? ` (${U})` : ""} provided to augmentColor(color) is invalid.
14656
- The color object needs to have a \`main\` property or a \`${W}\` property.` : rs(11, U ? ` (${U})` : "", W));
14652
+ The color object needs to have a \`main\` property or a \`${Y}\` property.` : rs(11, U ? ` (${U})` : "", Y));
14657
14653
  if (typeof P.main != "string")
14658
14654
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${U ? ` (${U})` : ""} provided to augmentColor(color) is invalid.
14659
14655
  \`color.main\` should be a string, but \`${JSON.stringify(P.main)}\` was provided instead.
@@ -14669,7 +14665,7 @@ const theme1 = createTheme({ palette: {
14669
14665
  const theme2 = createTheme({ palette: {
14670
14666
  primary: { main: green[500] },
14671
14667
  } });` : rs(12, U ? ` (${U})` : "", JSON.stringify(P.main)));
14672
- return p$(P, "light", Y, s), p$(P, "dark", k, s), P.contrastText || (P.contrastText = w(P.main)), P;
14668
+ return p$(P, "light", W, s), p$(P, "dark", k, s), P.contrastText || (P.contrastText = w(P.main)), P;
14673
14669
  };
14674
14670
  let A;
14675
14671
  return r === "light" ? A = Z3() : r === "dark" && (A = J3()), process.env.NODE_ENV !== "production" && (A || console.error(`MUI: The palette mode \`${r}\` is not supported.`)), ba({
@@ -14778,16 +14774,16 @@ function v4(e, r) {
14778
14774
  ...w
14779
14775
  } = typeof r == "function" ? r(e) : r;
14780
14776
  process.env.NODE_ENV !== "production" && (typeof s != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof b != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
14781
- const O = s / 14, A = E || ((U) => `${U / b * O}rem`), I = (U, W, Y, k, j) => ({
14777
+ const O = s / 14, A = E || ((U) => `${U / b * O}rem`), I = (U, Y, W, k, j) => ({
14782
14778
  fontFamily: i,
14783
14779
  fontWeight: U,
14784
- fontSize: A(W),
14780
+ fontSize: A(Y),
14785
14781
  // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
14786
- lineHeight: Y,
14782
+ lineHeight: W,
14787
14783
  // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
14788
14784
  // across font-families can cause issues with the kerning.
14789
14785
  ...i === m$ ? {
14790
- letterSpacing: `${m4(k / W)}em`
14786
+ letterSpacing: `${m4(k / Y)}em`
14791
14787
  } : {},
14792
14788
  ...j,
14793
14789
  ...S
@@ -14958,20 +14954,20 @@ function jC(e = {}, ...r) {
14958
14954
  });
14959
14955
  if (O = ba(O, S), O = r.reduce((A, I) => ba(A, I), O), process.env.NODE_ENV !== "production") {
14960
14956
  const A = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], I = (P, U) => {
14961
- let W;
14962
- for (W in P) {
14963
- const Y = P[W];
14964
- if (A.includes(W) && Object.keys(Y).length > 0) {
14957
+ let Y;
14958
+ for (Y in P) {
14959
+ const W = P[Y];
14960
+ if (A.includes(Y) && Object.keys(W).length > 0) {
14965
14961
  if (process.env.NODE_ENV !== "production") {
14966
- const k = Jr("", W);
14967
- console.error([`MUI: The \`${U}\` component increases the CSS specificity of the \`${W}\` internal state.`, "You can not override it like this: ", JSON.stringify(P, null, 2), "", `Instead, you need to use the '&.${k}' syntax:`, JSON.stringify({
14962
+ const k = Jr("", Y);
14963
+ console.error([`MUI: The \`${U}\` component increases the CSS specificity of the \`${Y}\` internal state.`, "You can not override it like this: ", JSON.stringify(P, null, 2), "", `Instead, you need to use the '&.${k}' syntax:`, JSON.stringify({
14968
14964
  root: {
14969
- [`&.${k}`]: Y
14965
+ [`&.${k}`]: W
14970
14966
  }
14971
14967
  }, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
14972
14968
  `));
14973
14969
  }
14974
- P[W] = {};
14970
+ P[Y] = {};
14975
14971
  }
14976
14972
  }
14977
14973
  };
@@ -15149,14 +15145,14 @@ function I4(e = {}, ...r) {
15149
15145
  light: I,
15150
15146
  dark: P,
15151
15147
  ...U
15152
- } = i, W = {
15148
+ } = i, Y = {
15153
15149
  ...U
15154
15150
  };
15155
- let Y = A;
15156
- if ((w === "dark" && !("dark" in i) || w === "light" && !("light" in i)) && (Y = !0), !Y)
15151
+ let W = A;
15152
+ if ((w === "dark" && !("dark" in i) || w === "light" && !("light" in i)) && (W = !0), !W)
15157
15153
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${w}\` option is either missing or invalid.` : rs(21, w));
15158
- const k = yC(W, Y, S, w);
15159
- I && !W.light && yC(W, I, void 0, "light"), P && !W.dark && yC(W, P, void 0, "dark");
15154
+ const k = yC(Y, W, S, w);
15155
+ I && !Y.light && yC(Y, I, void 0, "light"), P && !Y.dark && yC(Y, P, void 0, "dark");
15160
15156
  let j = {
15161
15157
  defaultColorScheme: w,
15162
15158
  ...k,
@@ -15164,7 +15160,7 @@ function I4(e = {}, ...r) {
15164
15160
  colorSchemeSelector: v,
15165
15161
  rootSelector: b,
15166
15162
  getCssVar: O,
15167
- colorSchemes: W,
15163
+ colorSchemes: Y,
15168
15164
  font: {
15169
15165
  ...p4(k.typography),
15170
15166
  ...k.font
@@ -15404,13 +15400,13 @@ const V4 = (e) => {
15404
15400
  },
15405
15401
  // TODO v5 deprecate color prop, v6 remove for sx
15406
15402
  ...Object.entries((e.vars ?? e).palette).filter(([, P]) => P && P.main).map(([P]) => {
15407
- var U, W;
15403
+ var U, Y;
15408
15404
  return {
15409
15405
  props: {
15410
15406
  color: P
15411
15407
  },
15412
15408
  style: {
15413
- color: (W = (U = (e.vars ?? e).palette) == null ? void 0 : U[P]) == null ? void 0 : W.main
15409
+ color: (Y = (U = (e.vars ?? e).palette) == null ? void 0 : U[P]) == null ? void 0 : Y.main
15414
15410
  }
15415
15411
  };
15416
15412
  }),
@@ -15466,10 +15462,10 @@ const V4 = (e) => {
15466
15462
  hasSvgAsChild: I
15467
15463
  }, U = {};
15468
15464
  E || (U.viewBox = O);
15469
- const W = V4(P);
15465
+ const Y = V4(P);
15470
15466
  return /* @__PURE__ */ M.jsxs(j4, {
15471
15467
  as: v,
15472
- className: xr(W.root, f),
15468
+ className: xr(Y.root, f),
15473
15469
  focusable: "false",
15474
15470
  color: S,
15475
15471
  "aria-hidden": w ? void 0 : !0,
@@ -15782,7 +15778,7 @@ function W4() {
15782
15778
  return d.now() - v;
15783
15779
  };
15784
15780
  }
15785
- var b = [], S = [], E = 1, w = null, O = 3, A = !1, I = !1, P = !1, U = typeof setTimeout == "function" ? setTimeout : null, W = typeof clearTimeout == "function" ? clearTimeout : null, Y = typeof setImmediate < "u" ? setImmediate : null;
15781
+ var b = [], S = [], E = 1, w = null, O = 3, A = !1, I = !1, P = !1, U = typeof setTimeout == "function" ? setTimeout : null, Y = typeof clearTimeout == "function" ? clearTimeout : null, W = typeof setImmediate < "u" ? setImmediate : null;
15786
15782
  typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
15787
15783
  function k(ge) {
15788
15784
  for (var re = i(S); re !== null; ) {
@@ -15800,7 +15796,7 @@ function W4() {
15800
15796
  }
15801
15797
  }
15802
15798
  function N(ge, re) {
15803
- I = !1, P && (P = !1, W(le), le = -1), A = !0;
15799
+ I = !1, P && (P = !1, Y(le), le = -1), A = !0;
15804
15800
  var K = O;
15805
15801
  try {
15806
15802
  for (k(re), w = i(b); w !== null && (!(w.expirationTime > re) || ge && !J()); ) {
@@ -15839,8 +15835,8 @@ function W4() {
15839
15835
  } else z = !1;
15840
15836
  }
15841
15837
  var ce;
15842
- if (typeof Y == "function") ce = function() {
15843
- Y(pe);
15838
+ if (typeof W == "function") ce = function() {
15839
+ W(pe);
15844
15840
  };
15845
15841
  else if (typeof MessageChannel < "u") {
15846
15842
  var Ee = new MessageChannel(), me = Ee.port2;
@@ -15923,7 +15919,7 @@ function W4() {
15923
15919
  default:
15924
15920
  V = 5e3;
15925
15921
  }
15926
- return V = K + V, ge = { id: E++, callback: re, priorityLevel: ge, startTime: K, expirationTime: V, sortIndex: -1 }, K > se ? (ge.sortIndex = K, r(S, ge), i(b) === null && ge === i(S) && (P ? (W(le), le = -1) : P = !0, Te(j, K - se))) : (ge.sortIndex = V, r(b, ge), I || A || (I = !0, Re(N))), ge;
15922
+ return V = K + V, ge = { id: E++, callback: re, priorityLevel: ge, startTime: K, expirationTime: V, sortIndex: -1 }, K > se ? (ge.sortIndex = K, r(S, ge), i(b) === null && ge === i(S) && (P ? (Y(le), le = -1) : P = !0, Te(j, K - se))) : (ge.sortIndex = V, r(b, ge), I || A || (I = !0, Re(N))), ge;
15927
15923
  }, e.unstable_shouldYield = J, e.unstable_wrapCallback = function(ge) {
15928
15924
  var re = O;
15929
15925
  return function() {
@@ -16001,9 +15997,9 @@ function Y4() {
16001
15997
  return U.now();
16002
15998
  };
16003
15999
  } else {
16004
- var W = Date, Y = W.now();
16000
+ var Y = Date, W = Y.now();
16005
16001
  e.unstable_now = function() {
16006
- return W.now() - Y;
16002
+ return Y.now() - W;
16007
16003
  };
16008
16004
  }
16009
16005
  var k = 1073741823, j = -1, N = 250, z = 5e3, ee = 1e4, le = k, ye = [], L = [], J = 1, pe = null, ce = w, Ee = !1, me = !1, Re = !1, Te = typeof setTimeout == "function" ? setTimeout : null, ge = typeof clearTimeout == "function" ? clearTimeout : null, re = typeof setImmediate < "u" ? setImmediate : null;
@@ -16296,21 +16292,21 @@ function q4() {
16296
16292
  }), ["rowSpan", "start"].forEach(function(o) {
16297
16293
  U[o] = new P(o, 5, !1, o.toLowerCase(), null, !1, !1);
16298
16294
  });
16299
- var W = /[\-:]([a-z])/g;
16300
- function Y(o) {
16295
+ var Y = /[\-:]([a-z])/g;
16296
+ function W(o) {
16301
16297
  return o[1].toUpperCase();
16302
16298
  }
16303
16299
  "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(o) {
16304
16300
  var a = o.replace(
16305
- W,
16306
- Y
16301
+ Y,
16302
+ W
16307
16303
  );
16308
16304
  U[a] = new P(a, 1, !1, o, null, !1, !1);
16309
16305
  }), "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o) {
16310
- var a = o.replace(W, Y);
16306
+ var a = o.replace(Y, W);
16311
16307
  U[a] = new P(a, 1, !1, o, "http://www.w3.org/1999/xlink", !1, !1);
16312
16308
  }), ["xml:base", "xml:lang", "xml:space"].forEach(function(o) {
16313
- var a = o.replace(W, Y);
16309
+ var a = o.replace(Y, W);
16314
16310
  U[a] = new P(a, 1, !1, o, "http://www.w3.org/XML/1998/namespace", !1, !1);
16315
16311
  }), ["tabIndex", "crossOrigin"].forEach(function(o) {
16316
16312
  U[o] = new P(o, 1, !1, o.toLowerCase(), null, !1, !1);
@@ -21428,7 +21424,7 @@ function Q4() {
21428
21424
  g.unshift("Warning: " + n), Function.prototype.apply.call(console[t], console, g);
21429
21425
  }
21430
21426
  }
21431
- var b = 0, S = 1, E = 2, w = 3, O = 4, A = 5, I = 6, P = 7, U = 8, W = 9, Y = 10, k = 11, j = 12, N = 13, z = 14, ee = 15, le = 16, ye = 17, L = 18, J = 19, pe = 21, ce = 22, Ee = 23, me = 24, Re = 25, Te = !0, ge = !1, re = !1, K = !1, se = !1, V = !0, G = !0, Se = !0, Ve = !0, Ye = /* @__PURE__ */ new Set(), ze = {}, Q = {};
21427
+ var b = 0, S = 1, E = 2, w = 3, O = 4, A = 5, I = 6, P = 7, U = 8, Y = 9, W = 10, k = 11, j = 12, N = 13, z = 14, ee = 15, le = 16, ye = 17, L = 18, J = 19, pe = 21, ce = 22, Ee = 23, me = 24, Re = 25, Te = !0, ge = !1, re = !1, K = !1, se = !1, V = !0, G = !0, Se = !0, Ve = !0, Ye = /* @__PURE__ */ new Set(), ze = {}, Q = {};
21432
21428
  function oe(t, n) {
21433
21429
  Z(t, n), Z(t + "Capture", n);
21434
21430
  }
@@ -22268,10 +22264,10 @@ Error generating stack: ` + u.message + `
22268
22264
  switch (n) {
22269
22265
  case me:
22270
22266
  return "Cache";
22271
- case W:
22267
+ case Y:
22272
22268
  var u = l;
22273
22269
  return Ip(u) + ".Consumer";
22274
- case Y:
22270
+ case W:
22275
22271
  var h = l;
22276
22272
  return Ip(h._context) + ".Provider";
22277
22273
  case L:
@@ -28368,7 +28364,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
28368
28364
  }
28369
28365
  C = C.next;
28370
28366
  }
28371
- } else if (u.tag === Y)
28367
+ } else if (u.tag === W)
28372
28368
  h = u.type === t.type ? null : u.child;
28373
28369
  else if (u.tag === L) {
28374
28370
  var De = u.return;
@@ -31390,7 +31386,7 @@ Check the render method of \`` + u + "`.");
31390
31386
  case O:
31391
31387
  ax(n, n.stateNode.containerInfo);
31392
31388
  break;
31393
- case Y: {
31389
+ case W: {
31394
31390
  var h = n.memoizedProps.value, g = n.type._context;
31395
31391
  TE(n, g, h);
31396
31392
  break;
@@ -31493,9 +31489,9 @@ Check the render method of \`` + u + "`.");
31493
31489
  return YN(t, n, l);
31494
31490
  case j:
31495
31491
  return qN(t, n, l);
31496
- case Y:
31497
- return v2(t, n, l);
31498
31492
  case W:
31493
+ return v2(t, n, l);
31494
+ case Y:
31499
31495
  return y2(t, n, l);
31500
31496
  case z: {
31501
31497
  var It = n.type, Tn = n.pendingProps, xn = sl(It, Tn);
@@ -31642,7 +31638,7 @@ Check the render method of \`` + u + "`.");
31642
31638
  case P:
31643
31639
  case U:
31644
31640
  case j:
31645
- case W:
31641
+ case Y:
31646
31642
  case z:
31647
31643
  return Bo(n), null;
31648
31644
  case S: {
@@ -31726,7 +31722,7 @@ Check the render method of \`` + u + "`.");
31726
31722
  }
31727
31723
  case O:
31728
31724
  return Kf(n), fS(t, n), t === null && _P(n.stateNode.containerInfo), Bo(n), null;
31729
- case Y:
31725
+ case W:
31730
31726
  var St = n.type._context;
31731
31727
  return Z1(St, n), Bo(n), null;
31732
31728
  case ye: {
@@ -31834,7 +31830,7 @@ Check the render method of \`` + u + "`.");
31834
31830
  return Jf(n), null;
31835
31831
  case O:
31836
31832
  return Kf(n), null;
31837
- case Y:
31833
+ case W:
31838
31834
  var D = n.type._context;
31839
31835
  return Z1(D, n), null;
31840
31836
  case ce:
@@ -31870,7 +31866,7 @@ Check the render method of \`` + u + "`.");
31870
31866
  case J:
31871
31867
  Jf(n);
31872
31868
  break;
31873
- case Y:
31869
+ case W:
31874
31870
  var h = n.type._context;
31875
31871
  Z1(h, n);
31876
31872
  break;
@@ -34158,10 +34154,10 @@ This ensures that you're testing the behavior the user would see in the browser.
34158
34154
  if (typeof t == "object" && t !== null)
34159
34155
  switch (t.$$typeof) {
34160
34156
  case ln:
34161
- C = Y;
34157
+ C = W;
34162
34158
  break e;
34163
34159
  case ie:
34164
- C = W;
34160
+ C = Y;
34165
34161
  break e;
34166
34162
  case We:
34167
34163
  C = k, R = LS(R);
@@ -35529,13 +35525,13 @@ function ga(e, r) {
35529
35525
  component: P,
35530
35526
  ...U
35531
35527
  },
35532
- internalRef: W
35528
+ internalRef: Y
35533
35529
  } = bA({
35534
35530
  className: i,
35535
35531
  ...b,
35536
35532
  externalForwardedProps: e === "root" ? O : void 0,
35537
35533
  externalSlotProps: I
35538
- }), Y = Vi(W, I == null ? void 0 : I.ref, r.ref), k = e === "root" ? P || S : P, j = vA(A, {
35534
+ }), W = Vi(Y, I == null ? void 0 : I.ref, r.ref), k = e === "root" ? P || S : P, j = vA(A, {
35539
35535
  ...e === "root" && !S && !E[e] && d,
35540
35536
  ...e !== "root" && !E[e] && d,
35541
35537
  ...U,
@@ -35545,7 +35541,7 @@ function ga(e, r) {
35545
35541
  ...k && v && {
35546
35542
  component: k
35547
35543
  },
35548
- ref: Y
35544
+ ref: W
35549
35545
  }, c);
35550
35546
  return [A, j];
35551
35547
  }
@@ -35711,11 +35707,11 @@ const pF = {
35711
35707
  paragraph: O,
35712
35708
  variant: A,
35713
35709
  variantMapping: I
35714
- }, W = S || (O ? "p" : I[A] || k$[A]) || "span", Y = mF(U);
35710
+ }, Y = S || (O ? "p" : I[A] || k$[A]) || "span", W = mF(U);
35715
35711
  return /* @__PURE__ */ M.jsx(vF, {
35716
- as: W,
35712
+ as: Y,
35717
35713
  ref: i,
35718
- className: xr(Y.root, b),
35714
+ className: xr(W.root, b),
35719
35715
  ...P,
35720
35716
  ownerState: U,
35721
35717
  style: {
@@ -35966,7 +35962,7 @@ const xA = /* @__PURE__ */ Oe.forwardRef(function(r, i) {
35966
35962
  return;
35967
35963
  const N = j.outerHeightStyle;
35968
35964
  O.current !== N && (O.current = N, k.style.height = `${N}px`), k.style.overflow = j.overflowing ? "hidden" : "";
35969
- }, [I]), W = Oe.useRef(-1);
35965
+ }, [I]), Y = Oe.useRef(-1);
35970
35966
  bd(() => {
35971
35967
  const k = iA(U), j = E == null ? void 0 : E.current;
35972
35968
  if (!j)
@@ -35975,16 +35971,16 @@ const xA = /* @__PURE__ */ Oe.forwardRef(function(r, i) {
35975
35971
  N.addEventListener("resize", k);
35976
35972
  let z;
35977
35973
  return typeof ResizeObserver < "u" && (z = new ResizeObserver(() => {
35978
- P() && (z.unobserve(j), cancelAnimationFrame(W.current), U(), W.current = requestAnimationFrame(() => {
35974
+ P() && (z.unobserve(j), cancelAnimationFrame(Y.current), U(), Y.current = requestAnimationFrame(() => {
35979
35975
  z.observe(j);
35980
35976
  }));
35981
35977
  }), z.observe(j)), () => {
35982
- k.clear(), cancelAnimationFrame(W.current), N.removeEventListener("resize", k), z && z.disconnect();
35978
+ k.clear(), cancelAnimationFrame(Y.current), N.removeEventListener("resize", k), z && z.disconnect();
35983
35979
  };
35984
35980
  }, [I, U, P]), bd(() => {
35985
35981
  U();
35986
35982
  });
35987
- const Y = (k) => {
35983
+ const W = (k) => {
35988
35984
  S || U();
35989
35985
  const j = k.target, N = j.value.length, z = j.value.endsWith(`
35990
35986
  `), ee = j.selectionStart === N;
@@ -35993,7 +35989,7 @@ const xA = /* @__PURE__ */ Oe.forwardRef(function(r, i) {
35993
35989
  return /* @__PURE__ */ M.jsxs(Oe.Fragment, {
35994
35990
  children: [/* @__PURE__ */ M.jsx("textarea", {
35995
35991
  value: v,
35996
- onChange: Y,
35992
+ onChange: W,
35997
35993
  ref: w,
35998
35994
  rows: f,
35999
35995
  style: d,
@@ -36296,8 +36292,8 @@ const Sb = (e, r) => {
36296
36292
  endAdornment: I,
36297
36293
  error: P,
36298
36294
  fullWidth: U = !1,
36299
- id: W,
36300
- inputComponent: Y = "input",
36295
+ id: Y,
36296
+ inputComponent: W = "input",
36301
36297
  inputProps: k = {},
36302
36298
  inputRef: j,
36303
36299
  margin: N,
@@ -36369,7 +36365,7 @@ const Sb = (e, r) => {
36369
36365
  const it = (rt) => {
36370
36366
  oe.current && rt.currentTarget === rt.target && oe.current.focus(), pe && pe(rt);
36371
36367
  };
36372
- let un = Y, vn = k;
36368
+ let un = W, vn = k;
36373
36369
  le && un === "input" && (re ? (process.env.NODE_ENV !== "production" && (ee || z) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), vn = {
36374
36370
  type: void 0,
36375
36371
  minRows: re,
@@ -36431,7 +36427,7 @@ const Sb = (e, r) => {
36431
36427
  autoFocus: d,
36432
36428
  defaultValue: w,
36433
36429
  disabled: Fe.disabled,
36434
- id: W,
36430
+ id: Y,
36435
36431
  onAnimationStart: pn,
36436
36432
  name: ye,
36437
36433
  placeholder: Re,
@@ -36758,9 +36754,9 @@ const AF = {
36758
36754
  onExited: I,
36759
36755
  onExiting: P,
36760
36756
  style: U,
36761
- timeout: W = c,
36757
+ timeout: Y = c,
36762
36758
  // eslint-disable-next-line react/prop-types
36763
- TransitionComponent: Y = as,
36759
+ TransitionComponent: W = as,
36764
36760
  ...k
36765
36761
  } = r, j = Oe.useRef(null), N = Vi(j, Sv(v), i), z = (Ee) => (me) => {
36766
36762
  if (Ee) {
@@ -36771,7 +36767,7 @@ const AF = {
36771
36767
  dA(Ee);
36772
36768
  const Re = q0({
36773
36769
  style: U,
36774
- timeout: W,
36770
+ timeout: Y,
36775
36771
  easing: b
36776
36772
  }, {
36777
36773
  mode: "enter"
@@ -36780,7 +36776,7 @@ const AF = {
36780
36776
  }), ye = z(w), L = z(P), J = z((Ee) => {
36781
36777
  const me = q0({
36782
36778
  style: U,
36783
- timeout: W,
36779
+ timeout: Y,
36784
36780
  easing: b
36785
36781
  }, {
36786
36782
  mode: "exit"
@@ -36789,7 +36785,7 @@ const AF = {
36789
36785
  }), pe = z(I), ce = (Ee) => {
36790
36786
  f && f(j.current, Ee);
36791
36787
  };
36792
- return /* @__PURE__ */ M.jsx(Y, {
36788
+ return /* @__PURE__ */ M.jsx(W, {
36793
36789
  appear: d,
36794
36790
  in: S,
36795
36791
  nodeRef: j,
@@ -36800,7 +36796,7 @@ const AF = {
36800
36796
  onExited: pe,
36801
36797
  onExiting: L,
36802
36798
  addEndListener: ce,
36803
- timeout: W,
36799
+ timeout: Y,
36804
36800
  ...k,
36805
36801
  children: (Ee, {
36806
36802
  ownerState: me,
@@ -36954,7 +36950,7 @@ const PF = (e) => {
36954
36950
  ...s,
36955
36951
  component: d,
36956
36952
  invisible: v
36957
- }, W = PF(U), Y = {
36953
+ }, Y = PF(U), W = {
36958
36954
  transition: A,
36959
36955
  root: S.Root,
36960
36956
  ...O
@@ -36963,12 +36959,12 @@ const PF = (e) => {
36963
36959
  ...w
36964
36960
  }, j = {
36965
36961
  component: d,
36966
- slots: Y,
36962
+ slots: W,
36967
36963
  slotProps: k
36968
36964
  }, [N, z] = ga("root", {
36969
36965
  elementType: NF,
36970
36966
  externalForwardedProps: j,
36971
- className: xr(W.root, f),
36967
+ className: xr(Y.root, f),
36972
36968
  ownerState: U
36973
36969
  }), [ee, le] = ga("transition", {
36974
36970
  elementType: CA,
@@ -36983,7 +36979,7 @@ const PF = (e) => {
36983
36979
  children: /* @__PURE__ */ M.jsx(N, {
36984
36980
  "aria-hidden": !0,
36985
36981
  ...z,
36986
- classes: W,
36982
+ classes: Y,
36987
36983
  ref: i,
36988
36984
  children: c
36989
36985
  })
@@ -37315,25 +37311,25 @@ function K0(e) {
37315
37311
  clearInterval(z), k.removeEventListener("focusin", N), k.removeEventListener("keydown", j, !0);
37316
37312
  };
37317
37313
  }, [i, s, c, d, v, f]);
37318
- const W = (k) => {
37314
+ const Y = (k) => {
37319
37315
  w.current === null && (w.current = k.relatedTarget), A.current = !0, O.current = k.target;
37320
37316
  const j = r.props.onFocus;
37321
37317
  j && j(k);
37322
- }, Y = (k) => {
37318
+ }, W = (k) => {
37323
37319
  w.current === null && (w.current = k.relatedTarget), A.current = !0;
37324
37320
  };
37325
37321
  return /* @__PURE__ */ M.jsxs(Oe.Fragment, {
37326
37322
  children: [/* @__PURE__ */ M.jsx("div", {
37327
37323
  tabIndex: v ? 0 : -1,
37328
- onFocus: Y,
37324
+ onFocus: W,
37329
37325
  ref: S,
37330
37326
  "data-testid": "sentinelStart"
37331
37327
  }), /* @__PURE__ */ Oe.cloneElement(r, {
37332
37328
  ref: P,
37333
- onFocus: W
37329
+ onFocus: Y
37334
37330
  }), /* @__PURE__ */ M.jsx("div", {
37335
37331
  tabIndex: v ? 0 : -1,
37336
- onFocus: Y,
37332
+ onFocus: W,
37337
37333
  ref: E,
37338
37334
  "data-testid": "sentinelEnd"
37339
37335
  })]
@@ -37414,9 +37410,9 @@ function qF(e) {
37414
37410
  onClose: b,
37415
37411
  open: S,
37416
37412
  rootRef: E
37417
- } = e, w = Oe.useRef({}), O = Oe.useRef(null), A = Oe.useRef(null), I = Vi(A, E), [P, U] = Oe.useState(!S), W = YF(v);
37418
- let Y = !0;
37419
- (e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (Y = !1);
37413
+ } = e, w = Oe.useRef({}), O = Oe.useRef(null), A = Oe.useRef(null), I = Vi(A, E), [P, U] = Oe.useState(!S), Y = YF(v);
37414
+ let W = !0;
37415
+ (e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (W = !1);
37420
37416
  const k = () => ml(O.current), j = () => (w.current.modalRef = A.current, w.current.mount = O.current, w.current), N = () => {
37421
37417
  D0.mount(j(), {
37422
37418
  disableScrollLock: s
@@ -37425,15 +37421,15 @@ function qF(e) {
37425
37421
  const me = WF(r) || k().body;
37426
37422
  D0.add(j(), me), A.current && N();
37427
37423
  }), ee = () => D0.isTopModal(j()), le = BC((me) => {
37428
- O.current = me, me && (S && ee() ? N() : A.current && rv(A.current, Y));
37424
+ O.current = me, me && (S && ee() ? N() : A.current && rv(A.current, W));
37429
37425
  }), ye = Oe.useCallback(() => {
37430
- D0.remove(j(), Y);
37431
- }, [Y]);
37426
+ D0.remove(j(), W);
37427
+ }, [W]);
37432
37428
  Oe.useEffect(() => () => {
37433
37429
  ye();
37434
37430
  }, [ye]), Oe.useEffect(() => {
37435
- S ? z() : (!W || !c) && ye();
37436
- }, [S, ye, W, c, z]);
37431
+ S ? z() : (!Y || !c) && ye();
37432
+ }, [S, ye, Y, c, z]);
37437
37433
  const L = (me) => (Re) => {
37438
37434
  var Te;
37439
37435
  (Te = me.onKeyDown) == null || Te.call(me, Re), !(Re.key !== "Escape" || Re.which === 229 || // Wait until IME is settled.
@@ -37487,7 +37483,7 @@ function qF(e) {
37487
37483
  portalRef: le,
37488
37484
  isTopModal: ee,
37489
37485
  exited: P,
37490
- hasTransition: W
37486
+ hasTransition: Y
37491
37487
  };
37492
37488
  }
37493
37489
  function QF(e) {
@@ -37553,8 +37549,8 @@ const XF = (e) => {
37553
37549
  disableAutoFocus: I = !1,
37554
37550
  disableEnforceFocus: P = !1,
37555
37551
  disableEscapeKeyDown: U = !1,
37556
- disablePortal: W = !1,
37557
- disableRestoreFocus: Y = !1,
37552
+ disablePortal: Y = !1,
37553
+ disableRestoreFocus: W = !1,
37558
37554
  disableScrollLock: k = !1,
37559
37555
  hideBackdrop: j = !1,
37560
37556
  keepMounted: N = !1,
@@ -37573,8 +37569,8 @@ const XF = (e) => {
37573
37569
  disableAutoFocus: I,
37574
37570
  disableEnforceFocus: P,
37575
37571
  disableEscapeKeyDown: U,
37576
- disablePortal: W,
37577
- disableRestoreFocus: Y,
37572
+ disablePortal: Y,
37573
+ disableRestoreFocus: W,
37578
37574
  disableScrollLock: k,
37579
37575
  hideBackdrop: j,
37580
37576
  keepMounted: N
@@ -37639,7 +37635,7 @@ const XF = (e) => {
37639
37635
  return !N && !ye && (!se || K) ? null : /* @__PURE__ */ M.jsx(Q0, {
37640
37636
  ref: ge,
37641
37637
  container: E,
37642
- disablePortal: W,
37638
+ disablePortal: Y,
37643
37639
  children: /* @__PURE__ */ M.jsxs(Ye, {
37644
37640
  ...ze,
37645
37641
  children: [!j && c ? /* @__PURE__ */ M.jsx(Q, {
@@ -37647,7 +37643,7 @@ const XF = (e) => {
37647
37643
  }) : null, /* @__PURE__ */ M.jsx(K0, {
37648
37644
  disableEnforceFocus: P,
37649
37645
  disableAutoFocus: I,
37650
- disableRestoreFocus: Y,
37646
+ disableRestoreFocus: W,
37651
37647
  isEnabled: re,
37652
37648
  open: ye,
37653
37649
  children: /* @__PURE__ */ Oe.cloneElement(S, Se)
@@ -38096,20 +38092,20 @@ const JF = (e) => {
38096
38092
  inputComponent: S,
38097
38093
  multiline: E,
38098
38094
  type: A
38099
- }, U = JF(s), W = {
38095
+ }, U = JF(s), Y = {
38100
38096
  root: {
38101
38097
  ownerState: P
38102
38098
  },
38103
38099
  input: {
38104
38100
  ownerState: P
38105
38101
  }
38106
- }, Y = w ?? d ? ba(W, w ?? d) : W, k = O.root ?? f.Root ?? eV, j = O.input ?? f.Input ?? tV;
38102
+ }, W = w ?? d ? ba(Y, w ?? d) : Y, k = O.root ?? f.Root ?? eV, j = O.input ?? f.Input ?? tV;
38107
38103
  return /* @__PURE__ */ M.jsx(Tb, {
38108
38104
  slots: {
38109
38105
  root: k,
38110
38106
  input: j
38111
38107
  },
38112
- slotProps: Y,
38108
+ slotProps: W,
38113
38109
  fullWidth: v,
38114
38110
  inputComponent: S,
38115
38111
  multiline: E,
@@ -38387,8 +38383,8 @@ const rV = (e) => {
38387
38383
  required: I = !1,
38388
38384
  size: P = "medium",
38389
38385
  variant: U = "outlined",
38390
- ...W
38391
- } = s, Y = {
38386
+ ...Y
38387
+ } = s, W = {
38392
38388
  ...s,
38393
38389
  color: d,
38394
38390
  component: v,
@@ -38400,7 +38396,7 @@ const rV = (e) => {
38400
38396
  required: I,
38401
38397
  size: P,
38402
38398
  variant: U
38403
- }, k = rV(Y), [j, N] = Oe.useState(() => {
38399
+ }, k = rV(W), [j, N] = Oe.useState(() => {
38404
38400
  let Re = !1;
38405
38401
  return c && Oe.Children.forEach(c, (Te) => {
38406
38402
  if (!vC(Te, ["Input", "Select"]))
@@ -38453,10 +38449,10 @@ const rV = (e) => {
38453
38449
  value: me,
38454
38450
  children: /* @__PURE__ */ M.jsx(oV, {
38455
38451
  as: v,
38456
- ownerState: Y,
38452
+ ownerState: W,
38457
38453
  className: xr(k.root, f),
38458
38454
  ref: i,
38459
- ...W,
38455
+ ...Y,
38460
38456
  children: c
38461
38457
  })
38462
38458
  });
@@ -38621,7 +38617,7 @@ const iV = (e) => {
38621
38617
  props: s,
38622
38618
  muiFormControl: P,
38623
38619
  states: ["variant", "size", "disabled", "error", "filled", "focused", "required"]
38624
- }), W = {
38620
+ }), Y = {
38625
38621
  ...s,
38626
38622
  component: d,
38627
38623
  contained: U.variant === "filled" || U.variant === "outlined",
@@ -38633,14 +38629,14 @@ const iV = (e) => {
38633
38629
  focused: U.focused,
38634
38630
  required: U.required
38635
38631
  };
38636
- delete W.ownerState;
38637
- const Y = iV(W);
38632
+ delete Y.ownerState;
38633
+ const W = iV(Y);
38638
38634
  return /* @__PURE__ */ M.jsx(lV, {
38639
38635
  as: d,
38640
- className: xr(Y.root, f),
38636
+ className: xr(W.root, f),
38641
38637
  ref: i,
38642
38638
  ...I,
38643
- ownerState: W,
38639
+ ownerState: Y,
38644
38640
  children: c === " " ? (
38645
38641
  // notranslate needed while Google Translate will not fix zero-width space issue
38646
38642
  V$ || (V$ = /* @__PURE__ */ M.jsx("span", {
@@ -38800,17 +38796,17 @@ const ov = uo("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
38800
38796
  filled: P.filled,
38801
38797
  focused: P.focused,
38802
38798
  required: P.required
38803
- }, W = uV(U);
38799
+ }, Y = uV(U);
38804
38800
  return /* @__PURE__ */ M.jsxs(cV, {
38805
38801
  as: v,
38806
38802
  ownerState: U,
38807
- className: xr(W.root, f),
38803
+ className: xr(Y.root, f),
38808
38804
  ref: i,
38809
38805
  ...A,
38810
38806
  children: [c, P.required && /* @__PURE__ */ M.jsxs(dV, {
38811
38807
  ownerState: U,
38812
38808
  "aria-hidden": !0,
38813
- className: W.asterisk,
38809
+ className: Y.asterisk,
38814
38810
  children: [" ", "*"]
38815
38811
  })]
38816
38812
  });
@@ -38897,8 +38893,8 @@ const fV = {
38897
38893
  timeout: P = "auto",
38898
38894
  // eslint-disable-next-line react/prop-types
38899
38895
  TransitionComponent: U = as,
38900
- ...W
38901
- } = r, Y = nF(), k = Oe.useRef(), j = xw(), N = Oe.useRef(null), z = Vi(N, Sv(f), i), ee = (me) => (Re) => {
38896
+ ...Y
38897
+ } = r, W = nF(), k = Oe.useRef(), j = xw(), N = Oe.useRef(null), z = Vi(N, Sv(f), i), ee = (me) => (Re) => {
38902
38898
  if (me) {
38903
38899
  const Te = N.current;
38904
38900
  Re === void 0 ? me(Te) : me(Te, Re);
@@ -38947,7 +38943,7 @@ const fV = {
38947
38943
  easing: ge
38948
38944
  })].join(","), me.style.opacity = 0, me.style.transform = YC(0.75), w && w(me);
38949
38945
  }), ce = ee(O), Ee = (me) => {
38950
- P === "auto" && Y.start(k.current || 0, me), s && s(N.current, me);
38946
+ P === "auto" && W.start(k.current || 0, me), s && s(N.current, me);
38951
38947
  };
38952
38948
  return /* @__PURE__ */ M.jsx(U, {
38953
38949
  appear: c,
@@ -38961,7 +38957,7 @@ const fV = {
38961
38957
  onExiting: J,
38962
38958
  addEndListener: Ee,
38963
38959
  timeout: P === "auto" ? null : P,
38964
- ...W,
38960
+ ...Y,
38965
38961
  children: (me, {
38966
38962
  ownerState: Re,
38967
38963
  ...Te
@@ -39182,13 +39178,13 @@ const pV = (e) => {
39182
39178
  disableUnderline: c
39183
39179
  }
39184
39180
  }
39185
- }, W = E ?? d ? ba(E ?? d, U) : U, Y = w.root ?? f.Root ?? hV, k = w.input ?? f.Input ?? mV;
39181
+ }, Y = E ?? d ? ba(E ?? d, U) : U, W = w.root ?? f.Root ?? hV, k = w.input ?? f.Input ?? mV;
39186
39182
  return /* @__PURE__ */ M.jsx(Tb, {
39187
39183
  slots: {
39188
- root: Y,
39184
+ root: W,
39189
39185
  input: k
39190
39186
  },
39191
- slotProps: W,
39187
+ slotProps: Y,
39192
39188
  fullWidth: v,
39193
39189
  inputComponent: b,
39194
39190
  multiline: S,
@@ -39850,17 +39846,17 @@ const DA = /* @__PURE__ */ Oe.forwardRef(function(r, i) {
39850
39846
  }
39851
39847
  E && E(k);
39852
39848
  }, U = Vi(A, i);
39853
- let W = -1;
39849
+ let Y = -1;
39854
39850
  Oe.Children.forEach(d, (k, j) => {
39855
39851
  if (!/* @__PURE__ */ Oe.isValidElement(k)) {
39856
- W === j && (W += 1, W >= d.length && (W = -1));
39852
+ Y === j && (Y += 1, Y >= d.length && (Y = -1));
39857
39853
  return;
39858
39854
  }
39859
39855
  process.env.NODE_ENV !== "production" && yd.isFragment(k) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
39860
- `)), k.props.disabled || (w === "selectedMenu" && k.props.selected || W === -1) && (W = j), W === j && (k.props.disabled || k.props.muiSkipListHighlight || k.type.muiSkipListHighlight) && (W += 1, W >= d.length && (W = -1));
39856
+ `)), k.props.disabled || (w === "selectedMenu" && k.props.selected || Y === -1) && (Y = j), Y === j && (k.props.disabled || k.props.muiSkipListHighlight || k.type.muiSkipListHighlight) && (Y += 1, Y >= d.length && (Y = -1));
39861
39857
  });
39862
- const Y = Oe.Children.map(d, (k, j) => {
39863
- if (j === W) {
39858
+ const W = Oe.Children.map(d, (k, j) => {
39859
+ if (j === Y) {
39864
39860
  const N = {};
39865
39861
  return f && (N.autoFocus = !0), k.props.tabIndex === void 0 && w === "selectedMenu" && (N.tabIndex = 0), /* @__PURE__ */ Oe.cloneElement(k, N);
39866
39862
  }
@@ -39873,7 +39869,7 @@ const DA = /* @__PURE__ */ Oe.forwardRef(function(r, i) {
39873
39869
  onKeyDown: P,
39874
39870
  tabIndex: c ? 0 : -1,
39875
39871
  ...O,
39876
- children: Y
39872
+ children: W
39877
39873
  });
39878
39874
  });
39879
39875
  process.env.NODE_ENV !== "production" && (DA.propTypes = {
@@ -39987,8 +39983,8 @@ const wV = (e) => {
39987
39983
  PaperProps: P = {},
39988
39984
  // TODO: remove in v7
39989
39985
  slots: U = {},
39990
- slotProps: W = {},
39991
- transformOrigin: Y = {
39986
+ slotProps: Y = {},
39987
+ transformOrigin: W = {
39992
39988
  vertical: "top",
39993
39989
  horizontal: "left"
39994
39990
  },
@@ -40005,7 +40001,7 @@ const wV = (e) => {
40005
40001
  anchorReference: b,
40006
40002
  elevation: O,
40007
40003
  marginThreshold: A,
40008
- transformOrigin: Y,
40004
+ transformOrigin: W,
40009
40005
  TransitionComponent: k,
40010
40006
  transitionDuration: j,
40011
40007
  TransitionProps: N
@@ -40023,9 +40019,9 @@ const wV = (e) => {
40023
40019
  left: ne.left + B$(ne, d.horizontal)
40024
40020
  };
40025
40021
  }, [f, d.horizontal, d.vertical, v, b]), pe = Oe.useCallback((Z) => ({
40026
- vertical: U$(Z, Y.vertical),
40027
- horizontal: B$(Z, Y.horizontal)
40028
- }), [Y.horizontal, Y.vertical]), ce = Oe.useCallback((Z) => {
40022
+ vertical: U$(Z, W.vertical),
40023
+ horizontal: B$(Z, W.horizontal)
40024
+ }), [W.horizontal, W.vertical]), ce = Oe.useCallback((Z) => {
40029
40025
  const we = {
40030
40026
  width: Z.offsetWidth,
40031
40027
  height: Z.offsetHeight
@@ -40097,7 +40093,7 @@ const wV = (e) => {
40097
40093
  slotProps: {
40098
40094
  transition: N,
40099
40095
  paper: P,
40100
- ...W
40096
+ ...Y
40101
40097
  }
40102
40098
  }, [se, V] = ga("transition", {
40103
40099
  elementType: Z0,
@@ -40137,7 +40133,7 @@ const wV = (e) => {
40137
40133
  backdrop: U.backdrop
40138
40134
  },
40139
40135
  slotProps: {
40140
- backdrop: z4(typeof W.backdrop == "function" ? W.backdrop(ye) : W.backdrop, {
40136
+ backdrop: z4(typeof Y.backdrop == "function" ? Y.backdrop(ye) : Y.backdrop, {
40141
40137
  invisible: !0
40142
40138
  })
40143
40139
  },
@@ -40435,8 +40431,8 @@ const OV = {
40435
40431
  ...P
40436
40432
  } = {},
40437
40433
  variant: U = "selectedMenu",
40438
- slots: W = {},
40439
- slotProps: Y = {},
40434
+ slots: Y = {},
40435
+ slotProps: W = {},
40440
40436
  ...k
40441
40437
  } = s, j = q_(), N = {
40442
40438
  ...s,
@@ -40461,16 +40457,16 @@ const OV = {
40461
40457
  `)), re.props.disabled || (U === "selectedMenu" && re.props.selected || J === -1) && (J = K));
40462
40458
  });
40463
40459
  const pe = {
40464
- slots: W,
40460
+ slots: Y,
40465
40461
  slotProps: {
40466
40462
  list: b,
40467
40463
  transition: P,
40468
40464
  paper: w,
40469
- ...Y
40465
+ ...W
40470
40466
  }
40471
40467
  }, ce = yF({
40472
- elementType: W.root,
40473
- externalSlotProps: Y.root,
40468
+ elementType: Y.root,
40469
+ externalSlotProps: W.root,
40474
40470
  ownerState: N,
40475
40471
  className: [z.root, d]
40476
40472
  }), [Ee, me] = ga("paper", {
@@ -40501,18 +40497,18 @@ const OV = {
40501
40497
  },
40502
40498
  transformOrigin: j ? OV : RV,
40503
40499
  slots: {
40504
- root: W.root,
40500
+ root: Y.root,
40505
40501
  paper: Ee,
40506
- backdrop: W.backdrop,
40507
- ...W.transition && {
40502
+ backdrop: Y.backdrop,
40503
+ ...Y.transition && {
40508
40504
  // TODO: pass `slots.transition` directly once `TransitionComponent` is removed from Popover
40509
- transition: W.transition
40505
+ transition: Y.transition
40510
40506
  }
40511
40507
  },
40512
40508
  slotProps: {
40513
40509
  root: ce,
40514
40510
  paper: me,
40515
- backdrop: typeof Y.backdrop == "function" ? Y.backdrop(N) : Y.backdrop,
40511
+ backdrop: typeof W.backdrop == "function" ? W.backdrop(N) : W.backdrop,
40516
40512
  transition: {
40517
40513
  ...ge,
40518
40514
  onEntering: (...re) => {
@@ -41189,7 +41185,7 @@ const FV = (e) => {
41189
41185
  props: s,
41190
41186
  muiFormControl: P,
41191
41187
  states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"]
41192
- }), W = {
41188
+ }), Y = {
41193
41189
  ...s,
41194
41190
  color: U.color || "primary",
41195
41191
  disabled: U.disabled,
@@ -41201,11 +41197,11 @@ const FV = (e) => {
41201
41197
  multiline: b,
41202
41198
  size: U.size,
41203
41199
  type: O
41204
- }, Y = E.root ?? c.Root ?? VV, k = E.input ?? c.Input ?? UV, [j, N] = ga("notchedOutline", {
41200
+ }, W = E.root ?? c.Root ?? VV, k = E.input ?? c.Input ?? UV, [j, N] = ga("notchedOutline", {
41205
41201
  elementType: jV,
41206
41202
  className: I.notchedOutline,
41207
41203
  shouldForwardComponentProp: !0,
41208
- ownerState: W,
41204
+ ownerState: Y,
41209
41205
  externalForwardedProps: {
41210
41206
  slots: E,
41211
41207
  slotProps: w
@@ -41218,7 +41214,7 @@ const FV = (e) => {
41218
41214
  });
41219
41215
  return /* @__PURE__ */ M.jsx(Tb, {
41220
41216
  slots: {
41221
- root: Y,
41217
+ root: W,
41222
41218
  input: k
41223
41219
  },
41224
41220
  slotProps: w,
@@ -41509,8 +41505,8 @@ const WV = (e) => {
41509
41505
  IconComponent: I,
41510
41506
  inputRef: P,
41511
41507
  labelId: U,
41512
- MenuProps: W = {},
41513
- multiple: Y,
41508
+ MenuProps: Y = {},
41509
+ multiple: W,
41514
41510
  name: k,
41515
41511
  onBlur: j,
41516
41512
  onChange: N,
@@ -41576,7 +41572,7 @@ const WV = (e) => {
41576
41572
  }, Nt = (qe) => (B) => {
41577
41573
  let te;
41578
41574
  if (B.currentTarget.hasAttribute("tabindex")) {
41579
- if (Y) {
41575
+ if (W) {
41580
41576
  te = Array.isArray(re) ? re.slice() : [];
41581
41577
  const ue = re.indexOf(qe.props.value);
41582
41578
  ue === -1 ? te.push(qe.props.value) : te.splice(ue, 1);
@@ -41592,7 +41588,7 @@ const WV = (e) => {
41592
41588
  }
41593
41589
  }), N($, qe);
41594
41590
  }
41595
- Y || Ne(!1, B);
41591
+ W || Ne(!1, B);
41596
41592
  }
41597
41593
  }, mt = (qe) => {
41598
41594
  L || [
@@ -41625,7 +41621,7 @@ const WV = (e) => {
41625
41621
  process.env.NODE_ENV !== "production" && yd.isFragment(qe) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
41626
41622
  `));
41627
41623
  let B;
41628
- if (Y) {
41624
+ if (W) {
41629
41625
  if (!Array.isArray(re))
41630
41626
  throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : rs(2));
41631
41627
  B = re.some((te) => W$(te, qe.props.value)), B && pn && vn.push(qe.props.children);
@@ -41646,12 +41642,12 @@ const WV = (e) => {
41646
41642
  });
41647
41643
  });
41648
41644
  process.env.NODE_ENV !== "production" && Oe.useEffect(() => {
41649
- if (!cn && !Y && re !== "") {
41645
+ if (!cn && !W && re !== "") {
41650
41646
  const qe = nt.map((B) => B.props.value);
41651
41647
  console.warn([`MUI: You have provided an out-of-range value \`${re}\` for the select ${k ? `(name="${k}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${qe.filter((B) => B != null).map((B) => `\`${B}\``).join(", ") || '""'}.`].join(`
41652
41648
  `));
41653
41649
  }
41654
- }, [cn, nt, Y, k, re]), pn && (Y ? vn.length === 0 ? it = null : it = vn.reduce((qe, B, te) => (qe.push(B), te < vn.length - 1 && qe.push(", "), qe), []) : it = un);
41650
+ }, [cn, nt, W, k, re]), pn && (W ? vn.length === 0 ? it = null : it = vn.reduce((qe, B, te) => (qe.push(B), te < vn.length - 1 && qe.push(", "), qe), []) : it = un);
41655
41651
  let ar = Q;
41656
41652
  !d && ze && Ve && (ar = ne.clientWidth);
41657
41653
  let ir;
@@ -41663,11 +41659,11 @@ const WV = (e) => {
41663
41659
  open: vt,
41664
41660
  error: A
41665
41661
  }, He = WV(rt), dn = {
41666
- ...W.PaperProps,
41667
- ...(An = W.slotProps) == null ? void 0 : An.paper
41662
+ ...Y.PaperProps,
41663
+ ...(An = Y.slotProps) == null ? void 0 : An.paper
41668
41664
  }, $n = {
41669
- ...W.MenuListProps,
41670
- ...(_n = W.slotProps) == null ? void 0 : _n.list
41665
+ ...Y.MenuListProps,
41666
+ ...(_n = Y.slotProps) == null ? void 0 : _n.list
41671
41667
  }, In = K3();
41672
41668
  return /* @__PURE__ */ M.jsxs(Oe.Fragment, {
41673
41669
  children: [/* @__PURE__ */ M.jsx(BV, {
@@ -41731,13 +41727,13 @@ const WV = (e) => {
41731
41727
  vertical: "top",
41732
41728
  horizontal: "center"
41733
41729
  },
41734
- ...W,
41730
+ ...Y,
41735
41731
  slotProps: {
41736
- ...W.slotProps,
41732
+ ...Y.slotProps,
41737
41733
  list: {
41738
41734
  "aria-labelledby": U,
41739
41735
  role: "listbox",
41740
- "aria-multiselectable": Y ? "true" : void 0,
41736
+ "aria-multiselectable": W ? "true" : void 0,
41741
41737
  disableListWrap: !0,
41742
41738
  id: In,
41743
41739
  ...$n
@@ -41934,8 +41930,8 @@ const YV = (e) => {
41934
41930
  label: I,
41935
41931
  labelId: P,
41936
41932
  MenuProps: U,
41937
- multiple: W = !1,
41938
- native: Y = !1,
41933
+ multiple: Y = !1,
41934
+ native: W = !1,
41939
41935
  onClose: k,
41940
41936
  onOpen: j,
41941
41937
  open: N,
@@ -41943,7 +41939,7 @@ const YV = (e) => {
41943
41939
  SelectDisplayProps: ee,
41944
41940
  variant: le = "outlined",
41945
41941
  ...ye
41946
- } = s, L = Y ? VA : BA, J = Np(), pe = Pp({
41942
+ } = s, L = W ? VA : BA, J = Np(), pe = Pp({
41947
41943
  props: s,
41948
41944
  muiFormControl: J,
41949
41945
  states: ["variant", "error"]
@@ -41978,8 +41974,8 @@ const YV = (e) => {
41978
41974
  variant: ce,
41979
41975
  type: void 0,
41980
41976
  // We render a select. We can ignore the type provided by the `Input`.
41981
- multiple: W,
41982
- ...Y ? {
41977
+ multiple: Y,
41978
+ ...W ? {
41983
41979
  id: w
41984
41980
  } : {
41985
41981
  autoWidth: c,
@@ -42000,7 +41996,7 @@ const YV = (e) => {
42000
41996
  classes: A ? ba(Te, A.classes) : Te,
42001
41997
  ...O ? O.props.inputProps : {}
42002
41998
  },
42003
- ...(W && Y || S) && ce === "outlined" ? {
41999
+ ...(Y && W || S) && ce === "outlined" ? {
42004
42000
  notched: !0
42005
42001
  } : {},
42006
42002
  ref: re,
@@ -42197,8 +42193,8 @@ const ZV = {
42197
42193
  helperText: I,
42198
42194
  id: P,
42199
42195
  InputLabelProps: U,
42200
- inputProps: W,
42201
- InputProps: Y,
42196
+ inputProps: Y,
42197
+ InputProps: W,
42202
42198
  inputRef: k,
42203
42199
  label: j,
42204
42200
  maxRows: N,
@@ -42235,9 +42231,9 @@ const ZV = {
42235
42231
  const Ve = K3(P), Ye = I && Ve ? `${Ve}-helper-text` : void 0, ze = j && Ve ? `${Ve}-label` : void 0, Q = ZV[se], oe = {
42236
42232
  slots: Te,
42237
42233
  slotProps: {
42238
- input: Y,
42234
+ input: W,
42239
42235
  inputLabel: U,
42240
- htmlInput: W,
42236
+ htmlInput: Y,
42241
42237
  formHelperText: O,
42242
42238
  select: Re,
42243
42239
  ...ge
@@ -42637,7 +42633,7 @@ const tj = sn(Ob)(({ theme: e }) => ({
42637
42633
  })), ij = ({ formComponent: e, formidavimHost: r }) => {
42638
42634
  const i = (e == null ? void 0 : e.props) || {}, s = i.propertyId, c = i.label ?? "Enter verification code", f = typeof i.length == "number" ? i.length : 6, d = typeof i.required == "string" ? i.required.toLowerCase() === "true" : !!i.required, v = i.currentValue, { getFlowValue: b, setFlowAndPatientValue: S, setFlowError: E, setDisableSubmitValue: w } = Or(), O = s ? b(s) : void 0, A = v && v.length === f ? v : typeof O == "string" && O.length === f ? O : "", [I, P] = Jt(
42639
42635
  A ? A.split("") : new Array(f).fill("")
42640
- ), [U, W] = Jt(!!(A && A.length === f)), [Y, k] = Jt(!1), [j, N] = Jt(null), [z, ee] = Jt(null), [le, ye] = Jt(!1), [L, J] = Jt(0), [pe, ce] = Jt(0), [Ee, me] = Jt(0), [Re, Te] = Jt(!1), ge = Xs([]), re = b("_phone"), K = b("email"), se = hv(r), V = (Q) => {
42636
+ ), [U, Y] = Jt(!!(A && A.length === f)), [W, k] = Jt(!1), [j, N] = Jt(null), [z, ee] = Jt(null), [le, ye] = Jt(!1), [L, J] = Jt(0), [pe, ce] = Jt(0), [Ee, me] = Jt(0), [Re, Te] = Jt(!1), ge = Xs([]), re = b("_phone"), K = b("email"), se = hv(r), V = (Q) => {
42641
42637
  const oe = Q.replace(/\D/g, "");
42642
42638
  return oe.length === 10 ? `+1${oe}` : Q;
42643
42639
  }, G = hr(async (Q, oe) => {
@@ -42663,9 +42659,9 @@ const tj = sn(Ob)(({ theme: e }) => ({
42663
42659
  if (!(Q.length !== f || !oe || Re)) {
42664
42660
  Te(!0), k(!0), N(null), ee(null);
42665
42661
  try {
42666
- await Se(oe, Q, Z) && s ? (W(!0), S(s, Q), E(s, null), w(!1), ee("Verification successful!"), J(0), ce(0), me(0)) : (N("The code you entered is incorrect. Please check your code and try again."), W(!1), s && E(s, "The code you entered is incorrect. Please check your code and try again."), Te(!1), d && w(!0));
42662
+ await Se(oe, Q, Z) && s ? (Y(!0), S(s, Q), E(s, null), w(!1), ee("Verification successful!"), J(0), ce(0), me(0)) : (N("The code you entered is incorrect. Please check your code and try again."), Y(!1), s && E(s, "The code you entered is incorrect. Please check your code and try again."), Te(!1), d && w(!0));
42667
42663
  } catch (we) {
42668
- console.error("OTP verification error:", we), N("Verification failed. Please try again."), W(!1), s && E(s, "Verification failed"), Te(!1);
42664
+ console.error("OTP verification error:", we), N("Verification failed. Please try again."), Y(!1), s && E(s, "Verification failed"), Te(!1);
42669
42665
  } finally {
42670
42666
  k(!1);
42671
42667
  }
@@ -42675,12 +42671,12 @@ const tj = sn(Ob)(({ theme: e }) => ({
42675
42671
  var we;
42676
42672
  if (U || oe.length > 1) return;
42677
42673
  const Z = [...I];
42678
- if (Z[Q] = oe, P(Z), W(!1), Te(!1), N(null), ee(null), oe && Q < f - 1 && ((we = ge.current[Q + 1]) == null || we.focus()), Z.join("").length === f) {
42674
+ if (Z[Q] = oe, P(Z), Y(!1), Te(!1), N(null), ee(null), oe && Q < f - 1 && ((we = ge.current[Q + 1]) == null || we.focus()), Z.join("").length === f) {
42679
42675
  const ne = Z.join(""), Ne = re || K, Ce = !!(K && !re);
42680
42676
  ne.length === f && Ne && !Re && (Te(!0), k(!0), N(null), ee(null), Se(Ne, ne, Ce).then((Fe) => {
42681
- Fe && s ? (W(!0), S(s, ne), E(s, null), w(!1), ee("Verification successful!"), J(0), ce(0), me(0)) : (N("The code you entered is incorrect. Please check your code and try again."), W(!1), s && E(s, "The code you entered is incorrect. Please check your code and try again."), Te(!1), d && w(!0));
42677
+ Fe && s ? (Y(!0), S(s, ne), E(s, null), w(!1), ee("Verification successful!"), J(0), ce(0), me(0)) : (N("The code you entered is incorrect. Please check your code and try again."), Y(!1), s && E(s, "The code you entered is incorrect. Please check your code and try again."), Te(!1), d && w(!0));
42682
42678
  }).catch((Fe) => {
42683
- console.error("OTP verification error:", Fe), N("Verification failed. Please try again."), W(!1), s && E(s, "Verification failed"), Te(!1), d && w(!0);
42679
+ console.error("OTP verification error:", Fe), N("Verification failed. Please try again."), Y(!1), s && E(s, "Verification failed"), Te(!1), d && w(!0);
42684
42680
  }).finally(() => {
42685
42681
  k(!1);
42686
42682
  }));
@@ -42695,12 +42691,12 @@ const tj = sn(Ob)(({ theme: e }) => ({
42695
42691
  const Z = Q.clipboardData.getData("text/plain").replace(/\D/g, "").slice(0, f);
42696
42692
  if (Z.length === f) {
42697
42693
  const ne = Z.split("");
42698
- P(ne), W(!1), Te(!1), N(null), ee(null);
42694
+ P(ne), Y(!1), Te(!1), N(null), ee(null);
42699
42695
  const Ne = ne.join(""), Ce = re || K, Fe = !!(K && !re);
42700
42696
  Ne.length === f && Ce && !Re && (Te(!0), k(!0), N(null), ee(null), Se(Ce, Ne, Fe).then((nt) => {
42701
- nt && s ? (W(!0), S(s, Ne), E(s, null), w(!1), ee("Verification successful!"), J(0), ce(0), me(0)) : (N("Invalid verification code. Please try again."), W(!1), s && E(s, "Invalid verification code"), Te(!1), d && w(!0));
42697
+ nt && s ? (Y(!0), S(s, Ne), E(s, null), w(!1), ee("Verification successful!"), J(0), ce(0), me(0)) : (N("Invalid verification code. Please try again."), Y(!1), s && E(s, "Invalid verification code"), Te(!1), d && w(!0));
42702
42698
  }).catch((nt) => {
42703
- console.error("OTP verification error:", nt), N("Verification failed. Please try again."), W(!1), s && E(s, "Verification failed"), Te(!1), d && w(!0);
42699
+ console.error("OTP verification error:", nt), N("Verification failed. Please try again."), Y(!1), s && E(s, "Verification failed"), Te(!1), d && w(!0);
42704
42700
  }).finally(() => {
42705
42701
  k(!1);
42706
42702
  })), (we = ge.current[f - 1]) == null || we.focus();
@@ -42736,7 +42732,7 @@ const tj = sn(Ob)(({ theme: e }) => ({
42736
42732
  w(d ? !U : !1);
42737
42733
  }, [U, d, w]), gn(() => {
42738
42734
  const Q = v && v.length === f ? v : typeof O == "string" && O.length === f ? O : "";
42739
- Q && Q.length === f && (P(Q.split("")), W(!0));
42735
+ Q && Q.length === f && (P(Q.split("")), Y(!0));
42740
42736
  }, [v, f, O]), gn(() => {
42741
42737
  ge.current[0] && !U && ge.current[0].focus();
42742
42738
  }, [U]), I.join("").length, /* @__PURE__ */ M.jsxs(tj, { children: [
@@ -42755,7 +42751,7 @@ const tj = sn(Ob)(({ theme: e }) => ({
42755
42751
  inputMode: "numeric"
42756
42752
  },
42757
42753
  variant: "outlined",
42758
- disabled: Y || U,
42754
+ disabled: W || U,
42759
42755
  verified: U
42760
42756
  },
42761
42757
  oe
@@ -43036,7 +43032,7 @@ const sj = _e.div`
43036
43032
  state: w.state || "",
43037
43033
  postcode: w.postcode || "",
43038
43034
  coordinates: w.coordinates
43039
- }), [I, P] = Jt([]), [U, W] = Jt(!1), [Y, k] = Jt(!1), [j, N] = Jt(!1), [z, ee] = Jt("prompt"), le = Xs(), ye = "pk.eyJ1IjoiYW50aG9ueS1pdmltIiwiYSI6ImNsdXY4M245OTAwcmoya3BiY3RwOHU2aGoifQ.WKeVR5UV446JNt1PxJgccg", L = (Te, ge) => {
43035
+ }), [I, P] = Jt([]), [U, Y] = Jt(!1), [W, k] = Jt(!1), [j, N] = Jt(!1), [z, ee] = Jt("prompt"), le = Xs(), ye = "pk.eyJ1IjoiYW50aG9ueS1pdmltIiwiYSI6ImNsdXY4M245OTAwcmoya3BiY3RwOHU2aGoifQ.WKeVR5UV446JNt1PxJgccg", L = (Te, ge) => {
43040
43036
  const re = { ...O, [Te]: ge };
43041
43037
  A(re), v(s, re), Te === "address1" && ge.length > 1 && J(ge);
43042
43038
  }, J = async (Te) => {
@@ -43067,7 +43063,7 @@ const sj = _e.div`
43067
43063
  const se = await fetch(K);
43068
43064
  if (se.ok) {
43069
43065
  const V = await se.json();
43070
- console.log("Mapbox v6 response:", V), P(V.features || []), W(!0);
43066
+ console.log("Mapbox v6 response:", V), P(V.features || []), Y(!0);
43071
43067
  } else {
43072
43068
  console.error("Mapbox API error:", se.status, se.statusText);
43073
43069
  const V = await se.text();
@@ -43108,11 +43104,11 @@ const sj = _e.div`
43108
43104
  lng: Te.geometry.coordinates[0]
43109
43105
  }
43110
43106
  };
43111
- console.log("Parsed address:", Q), A(Q), v(s, Q), W(!1), P([]);
43107
+ console.log("Parsed address:", Q), A(Q), v(s, Q), Y(!1), P([]);
43112
43108
  }, ce = () => !!(O.address1 && O.city && O.state && O.postcode);
43113
43109
  gn(() => {
43114
43110
  const Te = (ge) => {
43115
- ge.target.closest(".address-autofill-container") || W(!1);
43111
+ ge.target.closest(".address-autofill-container") || Y(!1);
43116
43112
  };
43117
43113
  return document.addEventListener("click", Te), () => document.removeEventListener("click", Te);
43118
43114
  }, []), gn(() => {
@@ -43120,9 +43116,9 @@ const sj = _e.div`
43120
43116
  showSuggestions: U,
43121
43117
  suggestionsCount: I.length,
43122
43118
  isAddress1Focused: j,
43123
- isLoading: Y
43119
+ isLoading: W
43124
43120
  });
43125
- }, [U, I.length, j, Y]), gn(() => {
43121
+ }, [U, I.length, j, W]), gn(() => {
43126
43122
  i && !ce() ? E(s, "Required") : E(s, null);
43127
43123
  }, [O.address1, O.city, O.state, O.postcode, i, s, E]), d(s);
43128
43124
  const Ee = S(s), me = !!Ee && Ee !== "Required", Re = ce();
@@ -43150,7 +43146,7 @@ const sj = _e.div`
43150
43146
  }
43151
43147
  ),
43152
43148
  /* @__PURE__ */ M.jsx(_i, { htmlFor: `${s}-address1`, children: "Address Line 1" }),
43153
- /* @__PURE__ */ M.jsx(uj, { $show: j && (U || Y), children: Y ? /* @__PURE__ */ M.jsx(dj, { children: "Loading suggestions..." }) : I.length === 0 ? /* @__PURE__ */ M.jsx(fj, { children: "No suggestions found." }) : I.map((Te, ge) => {
43149
+ /* @__PURE__ */ M.jsx(uj, { $show: j && (U || W), children: W ? /* @__PURE__ */ M.jsx(dj, { children: "Loading suggestions..." }) : I.length === 0 ? /* @__PURE__ */ M.jsx(fj, { children: "No suggestions found." }) : I.map((Te, ge) => {
43154
43150
  var re;
43155
43151
  return /* @__PURE__ */ M.jsx(
43156
43152
  cj,
@@ -43352,8 +43348,8 @@ const sj = _e.div`
43352
43348
  gn(() => {
43353
43349
  !O.current && f && (!I && f && b(i, f + " mg"), O.current = !0);
43354
43350
  }, [f]);
43355
- const W = (N) => P === 0 ? 0 : Math.round(N / P * 100), Y = (N) => P === 0 ? 0 : N / 100 * P, k = W(I), j = (N) => {
43356
- const z = Y(N);
43351
+ const Y = (N) => P === 0 ? 0 : Math.round(N / P * 100), W = (N) => P === 0 ? 0 : N / 100 * P, k = Y(I), j = (N) => {
43352
+ const z = W(N);
43357
43353
  Number(N) === 0 ? (b(i, 0), E(i, "Units must be greater than 0")) : (E(i, ""), b(i, z + " mg"));
43358
43354
  };
43359
43355
  return /* @__PURE__ */ M.jsxs(aM, { $visible: !0, children: [
@@ -43397,10 +43393,10 @@ const sj = _e.div`
43397
43393
  inlineCopy: S
43398
43394
  } = r || {}, E = typeof v == "string" ? parseInt(v, 10) : v;
43399
43395
  console.log("maxWidthRaw:", v, "maxWidth:", E);
43400
- const w = typeof f == "string" ? f.split(",").map((le) => le.trim()) : Array.isArray(f) ? f : ["pdf", "jpg", "jpeg", "png"], { getFlowValue: O, setFlowAndPatientValue: A, getFlowError: I, setFlowError: P, setDisableSubmitValue: U } = Or(), W = O(s), Y = I(s), k = !!Y && Y !== "Required", [j, N] = Jt(""), z = i === "true";
43396
+ const w = typeof f == "string" ? f.split(",").map((le) => le.trim()) : Array.isArray(f) ? f : ["pdf", "jpg", "jpeg", "png"], { getFlowValue: O, setFlowAndPatientValue: A, getFlowError: I, setFlowError: P, setDisableSubmitValue: U } = Or(), Y = O(s), W = I(s), k = !!W && W !== "Required", [j, N] = Jt(""), z = i === "true";
43401
43397
  gn(() => {
43402
- W ? b && Array.isArray(W) ? N(`${W.length} file(s) selected`) : !b && W && N("File selected") : N("");
43403
- }, [W, b]);
43398
+ Y ? b && Array.isArray(Y) ? N(`${Y.length} file(s) selected`) : !b && Y && N("File selected") : N("");
43399
+ }, [Y, b]);
43404
43400
  const ee = (le) => {
43405
43401
  const { files: ye } = le.target;
43406
43402
  if (!ye || ye.length === 0) {
@@ -43466,9 +43462,9 @@ const sj = _e.div`
43466
43462
  ),
43467
43463
  c && c !== "" && /* @__PURE__ */ M.jsx("span", { children: c }),
43468
43464
  j && /* @__PURE__ */ M.jsx("p", { className: "fileName", children: j }),
43469
- z && !W && !k ? /* @__PURE__ */ M.jsx(so, { $bottom: "-20px", $margin: "19% 0 0 15px", $visible: !0, children: "Required" }) : k ? /* @__PURE__ */ M.jsxs(Xo, { $bottom: "-20px", $margin: "19% 0 0 15px", $visible: !0, children: [
43465
+ z && !Y && !k ? /* @__PURE__ */ M.jsx(so, { $bottom: "-20px", $margin: "19% 0 0 15px", $visible: !0, children: "Required" }) : k ? /* @__PURE__ */ M.jsxs(Xo, { $bottom: "-20px", $margin: "19% 0 0 15px", $visible: !0, children: [
43470
43466
  /* @__PURE__ */ M.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "15", viewBox: "0 0 14 15", fill: "none", children: /* @__PURE__ */ M.jsx("path", { d: "M0.331707 7.50001C0.331707 11.1819 3.31647 14.1667 6.99837 14.1667C10.665 11.1819 13.665 7.50001C13.665 3.81811 10.6803 0.833344 6.99837 0.833344C3.31647 0.833344 0.331707 3.81811 0.331707 7.50001ZM3.8603 5.30475L4.80311 4.36194L10.1364 9.69527L9.19363 10.6381L3.8603 5.30475Z", fill: "#B94E36" }) }),
43471
- Y
43467
+ W
43472
43468
  ] }) : null,
43473
43469
  S && /* @__PURE__ */ M.jsx("div", { style: {
43474
43470
  position: "absolute",
@@ -43790,12 +43786,12 @@ const Wj = _e.div`
43790
43786
  const J = new ResizeObserver(L);
43791
43787
  return J.observe(ye), () => J.disconnect();
43792
43788
  }, [r.consentText]);
43793
- const W = () => {
43789
+ const Y = () => {
43794
43790
  const ye = A.current;
43795
43791
  if (!ye || f || !v) return;
43796
43792
  const { scrollTop: L, scrollHeight: J, clientHeight: pe } = ye;
43797
43793
  L + pe >= J - 0.625 && !f && d(!0);
43798
- }, Y = (ye) => {
43794
+ }, W = (ye) => {
43799
43795
  const { checked: L } = ye.target;
43800
43796
  E(L), L ? s(r.propertyId, (/* @__PURE__ */ new Date()).toISOString().split("T")[0]) : s(r.propertyId, null);
43801
43797
  }, k = (ye) => {
@@ -43812,7 +43808,7 @@ const Wj = _e.div`
43812
43808
  {
43813
43809
  ref: A,
43814
43810
  $height: r.height || "20rem",
43815
- onScroll: W,
43811
+ onScroll: Y,
43816
43812
  children: /* @__PURE__ */ M.jsx("div", { dangerouslySetInnerHTML: { __html: r.consentText } })
43817
43813
  }
43818
43814
  ),
@@ -43828,7 +43824,7 @@ const Wj = _e.div`
43828
43824
  {
43829
43825
  type: "checkbox",
43830
43826
  checked: S,
43831
- onChange: Y,
43827
+ onChange: W,
43832
43828
  disabled: j
43833
43829
  }
43834
43830
  ),
@@ -44153,9 +44149,9 @@ const Wj = _e.div`
44153
44149
  e(R5({ field: J, error: pe }));
44154
44150
  }, [e]), I = hr((J) => i[J], [i]), P = hr((J) => {
44155
44151
  e($5(J));
44156
- }, [e]), U = hr(() => s, [s]), W = hr((J, pe) => {
44152
+ }, [e]), U = hr(() => s, [s]), Y = hr((J, pe) => {
44157
44153
  e(F5({ [J]: pe }));
44158
- }, [e]), Y = hr((J) => {
44154
+ }, [e]), W = hr((J) => {
44159
44155
  const pe = {
44160
44156
  id: J.customerId ?? null,
44161
44157
  profile: J.data
@@ -44167,9 +44163,9 @@ const Wj = _e.div`
44167
44163
  e(k5(J));
44168
44164
  }, [e]), le = hr(() => f, [f]), ye = hr(
44169
44165
  (J, pe) => {
44170
- v(J, pe), W(J, pe);
44166
+ v(J, pe), Y(J, pe);
44171
44167
  },
44172
- [v, W]
44168
+ [v, Y]
44173
44169
  ), L = hr((J) => {
44174
44170
  const pe = {};
44175
44171
  return J.flowForms && J.flowForms.forEach((ce) => {
@@ -44198,8 +44194,8 @@ const Wj = _e.div`
44198
44194
  setDisableSubmitValue: P,
44199
44195
  getDisableSubmitValue: U,
44200
44196
  // Patient profile operations
44201
- setPatientValue: W,
44202
- setPatientValues: Y,
44197
+ setPatientValue: Y,
44198
+ setPatientValues: W,
44203
44199
  getPatientValue: k,
44204
44200
  getFullPatient: j,
44205
44201
  // Current flow and form operations
@@ -44349,15 +44345,15 @@ function aU() {
44349
44345
  [4, "iv"],
44350
44346
  [1, "i"]
44351
44347
  ], U = { M: 1e3, D: 500, C: 100, L: 50, X: 10, V: 5, I: 1 };
44352
- function W(Q) {
44348
+ function Y(Q) {
44353
44349
  for (var oe = 0; oe < P.length; oe++) {
44354
44350
  const Z = P[oe];
44355
44351
  if (Q >= Z[0])
44356
- return Z[1] + W(Q - Z[0]);
44352
+ return Z[1] + Y(Q - Z[0]);
44357
44353
  }
44358
44354
  return "";
44359
44355
  }
44360
- function Y(Q) {
44356
+ function W(Q) {
44361
44357
  for (var oe = 0, Z = 1, we = Q.length - 1; we >= 0; we--) {
44362
44358
  const ne = Q[we], Ne = U[ne];
44363
44359
  Ne < Z ? oe -= Ne : (Z = Ne, oe += Ne);
@@ -44400,7 +44396,7 @@ function aU() {
44400
44396
  Z = k(Q, oe.case === ee.UPPER ? "A" : "a");
44401
44397
  break;
44402
44398
  case z.ROMAN:
44403
- Z = W(Q), oe.case === ee.UPPER && (Z = Z.toUpperCase());
44399
+ Z = Y(Q), oe.case === ee.UPPER && (Z = Z.toUpperCase());
44404
44400
  break;
44405
44401
  case z.WORDS:
44406
44402
  Z = O(Q, oe.ordinal), oe.case === ee.UPPER ? Z = Z.toUpperCase() : oe.case === ee.LOWER && (Z = Z.toLowerCase());
@@ -44827,7 +44823,7 @@ function aU() {
44827
44823
  break;
44828
44824
  case z.ROMAN:
44829
44825
  oe.regex = Z ? "[MDCLXVI]+" : "[mdclxvi]+", oe.parse = function(we) {
44830
- return Y(Z ? we : we.toUpperCase());
44826
+ return W(Z ? we : we.toUpperCase());
44831
44827
  };
44832
44828
  break;
44833
44829
  case z.WORDS:
@@ -44933,7 +44929,7 @@ function aU() {
44933
44929
  (function() {
44934
44930
  var d = i("./utils");
44935
44931
  const v = (() => {
44936
- var b = d.isNumeric, S = d.isArrayOfStrings, E = d.isArrayOfNumbers, w = d.createSequence, O = d.isSequence, A = d.isFunction, I = d.isLambda, P = d.isPromise, U = d.getFunctionArity, W = d.isDeepEqual, Y = d.stringToArray;
44932
+ var b = d.isNumeric, S = d.isArrayOfStrings, E = d.isArrayOfNumbers, w = d.createSequence, O = d.isSequence, A = d.isFunction, I = d.isLambda, P = d.isPromise, U = d.getFunctionArity, Y = d.isDeepEqual, W = d.stringToArray;
44937
44933
  function k($) {
44938
44934
  if (!(typeof $ > "u")) {
44939
44935
  var F = 0;
@@ -44985,7 +44981,7 @@ function aU() {
44985
44981
  }
44986
44982
  function ye($, F, q) {
44987
44983
  if (!(typeof $ > "u")) {
44988
- var he = Y($), de = he.length;
44984
+ var he = W($), de = he.length;
44989
44985
  if (de + F < 0 && (F = 0), typeof q < "u") {
44990
44986
  if (q <= 0)
44991
44987
  return "";
@@ -45017,7 +45013,7 @@ function aU() {
45017
45013
  }
45018
45014
  function Ee($) {
45019
45015
  if (!(typeof $ > "u"))
45020
- return Y($).length;
45016
+ return W($).length;
45021
45017
  }
45022
45018
  function me($) {
45023
45019
  if (!(typeof $ > "u")) {
@@ -45762,7 +45758,7 @@ function aU() {
45762
45758
  return $;
45763
45759
  for (var F = O($) ? w() : [], q = 0; q < $.length; q++) {
45764
45760
  for (var he = $[q], de = !1, Ie = 0; Ie < F.length; Ie++)
45765
- if (W(he, F[Ie])) {
45761
+ if (Y(he, F[Ie])) {
45766
45762
  de = !0;
45767
45763
  break;
45768
45764
  }
@@ -45844,7 +45840,7 @@ function aU() {
45844
45840
  }).call(this, typeof lR < "u" ? lR : typeof self < "u" ? self : typeof window < "u" ? window : {});
45845
45841
  }, { "./utils": 6 }], 3: [function(i, s, c) {
45846
45842
  var f = i("./datetime"), d = i("./functions"), v = i("./utils"), b = i("./parser"), S = i("./signature"), E = function() {
45847
- var w = v.isNumeric, O = v.isArrayOfStrings, A = v.isArrayOfNumbers, I = v.createSequence, P = v.isSequence, U = v.isFunction, W = v.isLambda, Y = v.isIterable, k = v.isPromise, j = v.getFunctionArity, N = v.isDeepEqual, z = In(null);
45843
+ var w = v.isNumeric, O = v.isArrayOfStrings, A = v.isArrayOfNumbers, I = v.createSequence, P = v.isSequence, U = v.isFunction, Y = v.isLambda, W = v.isIterable, k = v.isPromise, j = v.getFunctionArity, N = v.isDeepEqual, z = In(null);
45848
45844
  async function ee(B, te, ue) {
45849
45845
  var $, F = ue.lookup(Symbol.for("jsonata.__evaluate_entry"));
45850
45846
  switch (F && await F(B, te, ue), B.type) {
@@ -46517,7 +46513,7 @@ function aU() {
46517
46513
  }
46518
46514
  async function it(B, te, ue, $) {
46519
46515
  var F;
46520
- for (F = await un(B, te, ue, $); W(F) && F.thunk === !0; ) {
46516
+ for (F = await un(B, te, ue, $); Y(F) && F.thunk === !0; ) {
46521
46517
  var q = await ee(F.body.procedure, F.input, F.environment);
46522
46518
  F.body.procedure.type === "variable" && (q.token = F.body.procedure.value), q.position = F.body.procedure.position;
46523
46519
  for (var he = [], de = 0; de < F.body.arguments.length; de++)
@@ -46530,14 +46526,14 @@ function aU() {
46530
46526
  var F;
46531
46527
  try {
46532
46528
  var q = te;
46533
- if (B && (q = cn(B.signature, te, ue)), W(B))
46529
+ if (B && (q = cn(B.signature, te, ue)), Y(B))
46534
46530
  F = await Rn(B, q);
46535
46531
  else if (B && B._jsonata_function === !0) {
46536
46532
  var he = {
46537
46533
  environment: $,
46538
46534
  input: ue
46539
46535
  };
46540
- F = B.implementation.apply(he, q), Y(F) && (F = F.next().value), k(F) && (F = await F);
46536
+ F = B.implementation.apply(he, q), W(F) && (F = F.next().value), k(F) && (F = await F);
46541
46537
  } else if (typeof B == "function")
46542
46538
  F = B.apply(ue, q), k(F) && (F = await F);
46543
46539
  else
@@ -46576,7 +46572,7 @@ function aU() {
46576
46572
  position: B.position,
46577
46573
  token: B.procedure.steps[0].value
46578
46574
  };
46579
- if (W(de))
46575
+ if (Y(de))
46580
46576
  $ = ar(de, F);
46581
46577
  else if (de && de._jsonata_function === !0)
46582
46578
  $ = ir(de.implementation, F);
@@ -46924,12 +46920,12 @@ function aU() {
46924
46920
  r: "\r",
46925
46921
  t: " "
46926
46922
  }, S = function(w) {
46927
- var O = 0, A = w.length, I = function(W, Y) {
46928
- var k = { type: W, value: Y, position: O };
46923
+ var O = 0, A = w.length, I = function(Y, W) {
46924
+ var k = { type: Y, value: W, position: O };
46929
46925
  return k;
46930
46926
  }, P = function() {
46931
- for (var W = O, Y = 0, k, j, N = function(ee) {
46932
- if (w.charAt(ee) === "/" && Y === 0) {
46927
+ for (var Y = O, W = 0, k, j, N = function(ee) {
46928
+ if (w.charAt(ee) === "/" && W === 0) {
46933
46929
  for (var le = 0; w.charAt(ee - (le + 1)) === "\\"; )
46934
46930
  le++;
46935
46931
  if (le % 2 === 0)
@@ -46939,69 +46935,69 @@ function aU() {
46939
46935
  }; O < A; ) {
46940
46936
  var z = w.charAt(O);
46941
46937
  if (N(O)) {
46942
- if (k = w.substring(W, O), k === "")
46938
+ if (k = w.substring(Y, O), k === "")
46943
46939
  throw {
46944
46940
  code: "S0301",
46945
46941
  stack: new Error().stack,
46946
46942
  position: O
46947
46943
  };
46948
- for (O++, z = w.charAt(O), W = O; z === "i" || z === "m"; )
46944
+ for (O++, z = w.charAt(O), Y = O; z === "i" || z === "m"; )
46949
46945
  O++, z = w.charAt(O);
46950
- return j = w.substring(W, O) + "g", new RegExp(k, j);
46946
+ return j = w.substring(Y, O) + "g", new RegExp(k, j);
46951
46947
  }
46952
- (z === "(" || z === "[" || z === "{") && w.charAt(O - 1) !== "\\" && Y++, (z === ")" || z === "]" || z === "}") && w.charAt(O - 1) !== "\\" && Y--, O++;
46948
+ (z === "(" || z === "[" || z === "{") && w.charAt(O - 1) !== "\\" && W++, (z === ")" || z === "]" || z === "}") && w.charAt(O - 1) !== "\\" && W--, O++;
46953
46949
  }
46954
46950
  throw {
46955
46951
  code: "S0302",
46956
46952
  stack: new Error().stack,
46957
46953
  position: O
46958
46954
  };
46959
- }, U = function(W) {
46955
+ }, U = function(Y) {
46960
46956
  if (O >= A) return null;
46961
- for (var Y = w.charAt(O); O < A && `
46962
- \r\v`.indexOf(Y) > -1; )
46963
- O++, Y = w.charAt(O);
46964
- if (Y === "/" && w.charAt(O + 1) === "*") {
46957
+ for (var W = w.charAt(O); O < A && `
46958
+ \r\v`.indexOf(W) > -1; )
46959
+ O++, W = w.charAt(O);
46960
+ if (W === "/" && w.charAt(O + 1) === "*") {
46965
46961
  var k = O;
46966
- for (O += 2, Y = w.charAt(O); !(Y === "*" && w.charAt(O + 1) === "/"); )
46967
- if (Y = w.charAt(++O), O >= A)
46962
+ for (O += 2, W = w.charAt(O); !(W === "*" && w.charAt(O + 1) === "/"); )
46963
+ if (W = w.charAt(++O), O >= A)
46968
46964
  throw {
46969
46965
  code: "S0106",
46970
46966
  stack: new Error().stack,
46971
46967
  position: k
46972
46968
  };
46973
- return O += 2, Y = w.charAt(O), U(W);
46969
+ return O += 2, W = w.charAt(O), U(Y);
46974
46970
  }
46975
- if (W !== !0 && Y === "/")
46971
+ if (Y !== !0 && W === "/")
46976
46972
  return O++, I("regex", P());
46977
- if (Y === "." && w.charAt(O + 1) === ".")
46973
+ if (W === "." && w.charAt(O + 1) === ".")
46978
46974
  return O += 2, I("operator", "..");
46979
- if (Y === ":" && w.charAt(O + 1) === "=")
46975
+ if (W === ":" && w.charAt(O + 1) === "=")
46980
46976
  return O += 2, I("operator", ":=");
46981
- if (Y === "!" && w.charAt(O + 1) === "=")
46977
+ if (W === "!" && w.charAt(O + 1) === "=")
46982
46978
  return O += 2, I("operator", "!=");
46983
- if (Y === ">" && w.charAt(O + 1) === "=")
46979
+ if (W === ">" && w.charAt(O + 1) === "=")
46984
46980
  return O += 2, I("operator", ">=");
46985
- if (Y === "<" && w.charAt(O + 1) === "=")
46981
+ if (W === "<" && w.charAt(O + 1) === "=")
46986
46982
  return O += 2, I("operator", "<=");
46987
- if (Y === "*" && w.charAt(O + 1) === "*")
46983
+ if (W === "*" && w.charAt(O + 1) === "*")
46988
46984
  return O += 2, I("operator", "**");
46989
- if (Y === "~" && w.charAt(O + 1) === ">")
46985
+ if (W === "~" && w.charAt(O + 1) === ">")
46990
46986
  return O += 2, I("operator", "~>");
46991
- if (Y === "?" && w.charAt(O + 1) === ":")
46987
+ if (W === "?" && w.charAt(O + 1) === ":")
46992
46988
  return O += 2, I("operator", "?:");
46993
- if (Y === "?" && w.charAt(O + 1) === "?")
46989
+ if (W === "?" && w.charAt(O + 1) === "?")
46994
46990
  return O += 2, I("operator", "??");
46995
- if (Object.prototype.hasOwnProperty.call(v, Y))
46996
- return O++, I("operator", Y);
46997
- if (Y === '"' || Y === "'") {
46998
- var j = Y;
46991
+ if (Object.prototype.hasOwnProperty.call(v, W))
46992
+ return O++, I("operator", W);
46993
+ if (W === '"' || W === "'") {
46994
+ var j = W;
46999
46995
  O++;
47000
46996
  for (var N = ""; O < A; ) {
47001
- if (Y = w.charAt(O), Y === "\\")
47002
- if (O++, Y = w.charAt(O), Object.prototype.hasOwnProperty.call(b, Y))
47003
- N += b[Y];
47004
- else if (Y === "u") {
46997
+ if (W = w.charAt(O), W === "\\")
46998
+ if (O++, W = w.charAt(O), Object.prototype.hasOwnProperty.call(b, W))
46999
+ N += b[W];
47000
+ else if (W === "u") {
47005
47001
  var z = w.substr(O + 1, 4);
47006
47002
  if (/^[0-9a-fA-F]+$/.test(z)) {
47007
47003
  var ee = parseInt(z, 16);
@@ -47017,12 +47013,12 @@ function aU() {
47017
47013
  code: "S0103",
47018
47014
  stack: new Error().stack,
47019
47015
  position: O,
47020
- token: Y
47016
+ token: W
47021
47017
  };
47022
47018
  else {
47023
- if (Y === j)
47019
+ if (W === j)
47024
47020
  return O++, I("string", N);
47025
- N += Y;
47021
+ N += W;
47026
47022
  }
47027
47023
  O++;
47028
47024
  }
@@ -47045,7 +47041,7 @@ function aU() {
47045
47041
  };
47046
47042
  }
47047
47043
  var J;
47048
- if (Y === "`") {
47044
+ if (W === "`") {
47049
47045
  O++;
47050
47046
  var pe = w.indexOf("`", O);
47051
47047
  if (pe !== -1)
@@ -47080,13 +47076,13 @@ function aU() {
47080
47076
  };
47081
47077
  return U;
47082
47078
  }, E = function(w, O) {
47083
- var A, I, P = {}, U = [], W = function() {
47079
+ var A, I, P = {}, U = [], Y = function() {
47084
47080
  var V = [];
47085
47081
  A.id !== "(end)" && V.push({ type: A.type, value: A.value, position: A.position });
47086
47082
  for (var G = I(); G !== null; )
47087
47083
  V.push(G), G = I();
47088
47084
  return V;
47089
- }, Y = {
47085
+ }, W = {
47090
47086
  nud: function() {
47091
47087
  var V = {
47092
47088
  code: "S0211",
@@ -47094,15 +47090,15 @@ function aU() {
47094
47090
  position: this.position
47095
47091
  };
47096
47092
  if (O)
47097
- return V.remaining = W(), V.type = "error", U.push(V), V;
47093
+ return V.remaining = Y(), V.type = "error", U.push(V), V;
47098
47094
  throw V.stack = new Error().stack, V;
47099
47095
  }
47100
47096
  }, k = function(V, G) {
47101
47097
  var Se = P[V];
47102
- return G = G || 0, Se ? G >= Se.lbp && (Se.lbp = G) : (Se = Object.create(Y), Se.id = Se.value = V, Se.lbp = G, P[V] = Se), Se;
47098
+ return G = G || 0, Se ? G >= Se.lbp && (Se.lbp = G) : (Se = Object.create(W), Se.id = Se.value = V, Se.lbp = G, P[V] = Se), Se;
47103
47099
  }, j = function(V) {
47104
47100
  if (O) {
47105
- V.remaining = W(), U.push(V);
47101
+ V.remaining = Y(), U.push(V);
47106
47102
  var G = P["(error)"];
47107
47103
  return A = Object.create(G), A.error = V, A.type = "(error)", A;
47108
47104
  } else
@@ -47187,7 +47183,7 @@ function aU() {
47187
47183
  arguments: [V]
47188
47184
  }, this.then = V, this.else = z(0), this;
47189
47185
  }), ye("(error)", 10, function(V) {
47190
- return this.lhs = V, this.error = A.error, this.remaining = W(), this.type = "error", this;
47186
+ return this.lhs = V, this.error = A.error, this.remaining = Y(), this.type = "error", this;
47191
47187
  }), L("*", function() {
47192
47188
  return this.type = "wildcard", this;
47193
47189
  }), L("**", function() {
@@ -47621,17 +47617,17 @@ function aU() {
47621
47617
  A.regex += I;
47622
47618
  break;
47623
47619
  case "(":
47624
- var W = U(S, E, "(", ")"), Y = S.substring(E + 1, W);
47625
- if (Y.indexOf("<") === -1)
47626
- O.regex = "[" + Y + "m]";
47620
+ var Y = U(S, E, "(", ")"), W = S.substring(E + 1, Y);
47621
+ if (W.indexOf("<") === -1)
47622
+ O.regex = "[" + W + "m]";
47627
47623
  else
47628
47624
  throw {
47629
47625
  code: "S0402",
47630
47626
  stack: new Error().stack,
47631
- value: Y,
47627
+ value: W,
47632
47628
  offset: E
47633
47629
  };
47634
- O.type = "(" + Y + ")", E = W, P();
47630
+ O.type = "(" + W + ")", E = Y, P();
47635
47631
  break;
47636
47632
  case "<":
47637
47633
  if (A.type === "a" || A.type === "f") {
@@ -47839,10 +47835,10 @@ function aU() {
47839
47835
  }
47840
47836
  return !1;
47841
47837
  }
47842
- function W(k) {
47838
+ function Y(k) {
47843
47839
  return typeof k == "object" && k !== null && "then" in k && typeof k.then == "function";
47844
47840
  }
47845
- function Y(k) {
47841
+ function W(k) {
47846
47842
  var j = [];
47847
47843
  for (let N of k)
47848
47844
  j.push(N);
@@ -47859,8 +47855,8 @@ function aU() {
47859
47855
  isIterable: P,
47860
47856
  getFunctionArity: O,
47861
47857
  isDeepEqual: U,
47862
- stringToArray: Y,
47863
- isPromise: W
47858
+ stringToArray: W,
47859
+ isPromise: Y
47864
47860
  };
47865
47861
  })();
47866
47862
  s.exports = f;
@@ -47969,7 +47965,7 @@ const WA = /* @__PURE__ */ KC(iU), lU = async (e, r, i) => {
47969
47965
  const s = r(i);
47970
47966
  return !(s == null || e.componentId === "checkbox-single" && s === !1 || typeof s == "string" && s.trim() === "" || Array.isArray(s) && s.length === 0);
47971
47967
  }, dU = ({ flow: e, isPreview: r, $bgColor: i, onSubmit: s, onNextStep: c, onPrevStep: f, onFormInit: d, shouldRedirect: v = !0, formidavimHost: b }) => {
47972
- const [S, E] = Jt(0), [w, O] = Jt([]), [A, I] = Jt(!0), { evaluateCondition: P } = sU(), { getFlowValue: U, getAllFlowData: W, setDisableSubmitValue: Y, getDisableSubmitValue: k, getFlowError: j, setCurrentFormValue: N, getAllFormData: z } = Or(), ee = W(), le = Xs(/* @__PURE__ */ new Set()), ye = async (ge) => {
47968
+ const [S, E] = Jt(0), [w, O] = Jt([]), [A, I] = Jt(!0), { evaluateCondition: P } = sU(), { getFlowValue: U, getAllFlowData: Y, setDisableSubmitValue: W, getDisableSubmitValue: k, getFlowError: j, setCurrentFormValue: N, getAllFormData: z } = Or(), ee = Y(), le = Xs(/* @__PURE__ */ new Set()), ye = async (ge) => {
47973
47969
  if (!ge) return [];
47974
47970
  const re = [];
47975
47971
  for (const K of ge) {
@@ -48007,9 +48003,9 @@ const WA = /* @__PURE__ */ KC(iU), lU = async (e, r, i) => {
48007
48003
  }, [e.flowForms, P]), gn(() => {
48008
48004
  if (!A && w.length > 0 && S < w.length) {
48009
48005
  const ge = w[S], re = (ge == null ? void 0 : ge.evaluatedFormComponents) || [], K = K$(re, U, j);
48010
- Y(!K);
48006
+ W(!K);
48011
48007
  }
48012
- }, [w, S, A, ee, U, Y]);
48008
+ }, [w, S, A, ee, U, W]);
48013
48009
  const L = w.length, J = w[S], pe = k();
48014
48010
  if (gn(() => {
48015
48011
  var ge;
@@ -48024,7 +48020,7 @@ const WA = /* @__PURE__ */ KC(iU), lU = async (e, r, i) => {
48024
48020
  const ce = w[0] === J, Ee = S === L - 1, me = (J == null ? void 0 : J.evaluatedFormComponents) || [], Re = () => {
48025
48021
  if (K$(me, U, j)) {
48026
48022
  if (J.submit) {
48027
- s({ flowData: W(), formData: z(me), flow: e, form: J }, v);
48023
+ s({ flowData: Y(), formData: z(me), flow: e, form: J }, v);
48028
48024
  return;
48029
48025
  }
48030
48026
  c && c({ formData: z(me), flow: e, form: J }), S < L - 1 && (E((re) => re + 1), setTimeout(() => {
@@ -48136,7 +48132,7 @@ const WA = /* @__PURE__ */ KC(iU), lU = async (e, r, i) => {
48136
48132
  return console.error("Error processing flow config templates:", s), e;
48137
48133
  }
48138
48134
  }, qA = ({ data: e, config: r, isPreview: i, onSubmit: s, onNextStep: c, onPrevStep: f, onFlowInit: d, onFormInit: v, shouldRedirect: b, formidavimHost: S }) => {
48139
- const { resetAndSetFlowValues: E, generateFormDataFromFlow: w, setPatientValues: O, getFullPatient: A, setCurrentFlowValue: I } = Or(), [P, U] = Jt(null), [W, Y] = Jt(!0), [k, j] = Jt(!1), N = async (ee, le = !1, ye = !1) => {
48135
+ const { resetAndSetFlowValues: E, generateFormDataFromFlow: w, setPatientValues: O, getFullPatient: A, setCurrentFlowValue: I } = Or(), [P, U] = Jt(null), [Y, W] = Jt(!0), [k, j] = Jt(!1), N = async (ee, le = !1, ye = !1) => {
48140
48136
  try {
48141
48137
  const L = await pU(r, ee);
48142
48138
  if (U(L), I(L), ye && d && (r != null && r.id) && (r != null && r.slug) && d({ flow: r }), le) {
@@ -48152,13 +48148,13 @@ const WA = /* @__PURE__ */ KC(iU), lU = async (e, r, i) => {
48152
48148
  };
48153
48149
  gn(() => {
48154
48150
  (async () => {
48155
- Y(!0), e && O(e), await N(e, !0, !0), j(!0), Y(!1);
48151
+ W(!0), e && O(e), await N(e, !0, !0), j(!0), W(!1);
48156
48152
  })();
48157
48153
  }, [e, r]);
48158
48154
  const z = A();
48159
48155
  return gn(() => {
48160
48156
  k && z && N(z, !1, !1);
48161
- }, [z, k]), W || !P ? /* @__PURE__ */ M.jsx("div", { children: "Processing form..." }) : /* @__PURE__ */ M.jsx(
48157
+ }, [z, k]), Y || !P ? /* @__PURE__ */ M.jsx("div", { children: "Processing form..." }) : /* @__PURE__ */ M.jsx(
48162
48158
  dU,
48163
48159
  {
48164
48160
  flow: P,
@@ -48332,15 +48328,15 @@ const CU = ({ formComponent: e, isPreview: r, boundary: i, isVisible: s = !0, fo
48332
48328
  padding: 20px 0px 20px;
48333
48329
  `, TU = ({ children: e, $bgColor: r }) => /* @__PURE__ */ M.jsx(Ep, { $overflow: "visible", $position: "static", $xSmall: !0, id: "MainFlowContainer", $bgColor: r || "white", $bRad: "0px", $marginBottom: "80px", $marginBottomMd: "0px", children: /* @__PURE__ */ M.jsx(EU, { onSubmit: (i) => i.preventDefault(), children: e }) }), OU = ({ dataFetcher: e = () => {
48334
48330
  }, children: r, configFetcher: i, isPreview: s = !1, onSubmit: c = () => Promise.resolve(), formidavimHost: f, version: d, flowName: v = "", onNextStep: b, onPrevStep: S, onFlowInit: E, onFormInit: w, onConfigFetchError: O, shouldRedirect: A, onFormidavimFallback: I }) => {
48335
- const P = hv(f), [U, W] = Jt({ config: null, data: null }), [Y, k] = Jt(!0);
48331
+ const P = hv(f), [U, Y] = Jt({ config: null, data: null }), [W, k] = Jt(!0);
48336
48332
  if (gn(() => {
48337
48333
  k(!0), (i ? i() : P.flowControllerGetBySlug(v, d).then(({ data: J }) => J)).then(async (J) => {
48338
48334
  const pe = e ? await e("flow") : null;
48339
- W({ config: J, data: pe }), k(!1);
48335
+ Y({ config: J, data: pe }), k(!1);
48340
48336
  }).catch((J) => {
48341
48337
  console.warn("configFetcher failed", J), O && O(J), k(!1);
48342
48338
  });
48343
- }, [v, d]), Y)
48339
+ }, [v, d]), W)
48344
48340
  return null;
48345
48341
  if (!U.config)
48346
48342
  return I && I(), /* @__PURE__ */ M.jsx(M.Fragment, { children: r });
@@ -48367,9 +48363,9 @@ const CU = ({ formComponent: e, isPreview: r, boundary: i, isVisible: s = !0, fo
48367
48363
  }
48368
48364
  ) });
48369
48365
  }, LU = ({ dataFetcher: e = () => Promise.resolve(null), children: r, configFetcher: i, pipelineFetcher: s, isPreview: c = !1, onSubmit: f = () => Promise.resolve(), formidavimHost: d, version: v, flowName: b = "", onNextStep: S, onPrevStep: E, onFlowInit: w, onFormInit: O, onPipelineInit: A, onNoFlowsAvailable: I, onConfigFetchError: P, onFormidavimFallback: U }) => {
48370
- const W = hv(d), [Y, k] = Jt({ config: null, data: null }), [j, N] = Jt([]), [z, ee] = Jt({}), [le, ye] = Jt(!0), [L, J] = Jt(!1), pe = Xs(/* @__PURE__ */ new Set());
48366
+ const Y = hv(d), [W, k] = Jt({ config: null, data: null }), [j, N] = Jt([]), [z, ee] = Jt({}), [le, ye] = Jt(!0), [L, J] = Jt(!1), pe = Xs(/* @__PURE__ */ new Set());
48371
48367
  gn(() => {
48372
- ye(!0), (s ? s() : W.pipelineControllerGetBySlug(b, v).then(({ data: se }) => se)).then(async (se) => {
48368
+ ye(!0), (s ? s() : Y.pipelineControllerGetBySlug(b, v).then(({ data: se }) => se)).then(async (se) => {
48373
48369
  const V = e ? await e("pipeline") : null;
48374
48370
  if (k({ config: se, data: V }), se != null && se.pipelineFlows && (await ce(se.pipelineFlows, V.data)).length === 0) {
48375
48371
  I && I();
@@ -48403,7 +48399,7 @@ const CU = ({ formComponent: e, isPreview: r, boundary: i, isVisible: s = !0, fo
48403
48399
  };
48404
48400
  if (le)
48405
48401
  return null;
48406
- if (!Y.config)
48402
+ if (!W.config)
48407
48403
  return /* @__PURE__ */ M.jsx(
48408
48404
  OU,
48409
48405
  {
@@ -48421,21 +48417,21 @@ const CU = ({ formComponent: e, isPreview: r, boundary: i, isVisible: s = !0, fo
48421
48417
  children: r
48422
48418
  }
48423
48419
  );
48424
- const Ee = (K) => K ? (se) => K({ ...se, pipeline: Y.config, flow: z }) : void 0, me = async (K) => {
48420
+ const Ee = (K) => K ? (se) => K({ ...se, pipeline: W.config, flow: z }) : void 0, me = async (K) => {
48425
48421
  var se;
48426
48422
  if (!L) {
48427
48423
  J(!0);
48428
48424
  try {
48429
- const V = { ...K, pipeline: Y.config }, G = await f(V), Se = e ? await e("pipeline") : null;
48430
- if ((se = Y.config) != null && se.pipelineFlows) {
48431
- const Ve = await ce(Y.config.pipelineFlows, Se.data, !1);
48425
+ const V = { ...K, pipeline: W.config }, G = await f(V), Se = e ? await e("pipeline") : null;
48426
+ if ((se = W.config) != null && se.pipelineFlows) {
48427
+ const Ve = await ce(W.config.pipelineFlows, Se.data, !1);
48432
48428
  if (Ve.length === 0 && G && typeof G == "function") {
48433
- J(!1), await G(Y.config);
48429
+ J(!1), await G(W.config);
48434
48430
  return;
48435
48431
  }
48436
48432
  k((ze) => ({ ...ze, data: Se })), N(Ve);
48437
48433
  } else if (k((Ve) => ({ ...Ve, data: Se })), G && typeof G == "function") {
48438
- J(!1), await G(Y.config);
48434
+ J(!1), await G(W.config);
48439
48435
  return;
48440
48436
  }
48441
48437
  } finally {
@@ -48454,7 +48450,7 @@ const CU = ({ formComponent: e, isPreview: r, boundary: i, isVisible: s = !0, fo
48454
48450
  return /* @__PURE__ */ M.jsx(QA, { children: /* @__PURE__ */ M.jsx(
48455
48451
  qA,
48456
48452
  {
48457
- data: Y.data,
48453
+ data: W.data,
48458
48454
  isPreview: c,
48459
48455
  config: z,
48460
48456
  onSubmit: me,